[03:02:40]OFD Sender: No OFD packet to send [03:02:45]OFD Sender: No OFD packet to send [03:02:50]OFD Sender: No OFD packet to send [03:02:55]OFD Sender: No OFD packet to send [03:03:00]OFD Sender: No OFD packet to send [03:03:05]OFD Sender: No OFD packet to send [03:03:10]OFD Sender: No OFD packet to send [03:03:15]OFD Sender: No OFD packet to send [03:03:20]OFD Sender: No OFD packet to send [03:03:25]OFD Sender: No OFD packet to send [03:03:30]OFD Sender: No OFD packet to send [03:03:35]OFD Sender: No OFD packet to send [03:03:40]OFD Sender: No OFD packet to send [03:03:45]OFD Sender: No OFD packet to send [03:03:50]OFD Sender: No OFD packet to send [03:03:55]OFD Sender: No OFD packet to send [03:04:00]OFD Sender: No OFD packet to send [03:04:05]OFD Sender: No OFD packet to send [03:04:10]OFD Sender: No OFD packet to send [03:04:15]OFD Sender: No OFD packet to send [03:04:20]OFD Sender: No OFD packet to send [03:04:25]OFD Sender: No OFD packet to send [03:04:30]OFD Sender: No OFD packet to send [03:04:35]OFD Sender: No OFD packet to send [03:04:40]OFD Sender: No OFD packet to send [03:04:45]OFD Sender: No OFD packet to send [03:04:50]OFD Sender: No OFD packet to send [03:04:55]OFD Sender: No OFD packet to send [03:05:00]OFD Sender: No OFD packet to send [03:05:05]OFD Sender: No OFD packet to send [03:05:10]OFD Sender: No OFD packet to send [03:05:15]OFD Sender: No OFD packet to send [03:05:20]OFD Sender: No OFD packet to send [03:05:25]OFD Sender: No OFD packet to send [03:05:30]OFD Sender: No OFD packet to send [03:05:35]OFD Sender: No OFD packet to send [03:05:40]OFD Sender: No OFD packet to send [03:05:45]OFD Sender: No OFD packet to send [03:05:50]OFD Sender: No OFD packet to send [03:05:55]OFD Sender: No OFD packet to send [03:06:00]OFD Sender: No OFD packet to send [03:06:05]OFD Sender: No OFD packet to send [03:06:10]OFD Sender: No OFD packet to send [03:06:15]OFD Sender: No OFD packet to send [03:06:20]OFD Sender: No OFD packet to send [03:06:25]OFD Sender: No OFD packet to send [03:06:30]OFD Sender: No OFD packet to send [03:06:35]OFD Sender: No OFD packet to send [03:06:40]OFD Sender: No OFD packet to send [03:06:45]OFD Sender: No OFD packet to send [03:06:50]OFD Sender: No OFD packet to send [03:06:55]OFD Sender: No OFD packet to send [03:07:00]OFD Sender: No OFD packet to send [03:07:05]OFD Sender: No OFD packet to send [03:07:10]OFD Sender: No OFD packet to send [03:07:15]OFD Sender: No OFD packet to send [03:07:20]OFD Sender: No OFD packet to send [03:07:25]OFD Sender: No OFD packet to send [03:07:30]OFD Sender: No OFD packet to send [03:07:35]OFD Sender: No OFD packet to send [03:07:40]OFD Sender: No OFD packet to send [03:07:45]OFD Sender: No OFD packet to send [03:07:50]OFD Sender: No OFD packet to send [03:07:55]OFD Sender: No OFD packet to send [03:08:00]OFD Sender: No OFD packet to send [03:08:05]OFD Sender: No OFD packet to send [03:08:10]OFD Sender: No OFD packet to send [03:08:15]OFD Sender: No OFD packet to send [03:08:20]OFD Sender: No OFD packet to send [03:08:25]OFD Sender: No OFD packet to send [03:08:30]OFD Sender: No OFD packet to send [03:08:35]OFD Sender: No OFD packet to send [03:08:40]OFD Sender: No OFD packet to send [03:08:45]OFD Sender: No OFD packet to send [03:08:50]OFD Sender: No OFD packet to send [03:08:55]OFD Sender: No OFD packet to send [03:09:00]OFD Sender: No OFD packet to send [03:09:05]OFD Sender: No OFD packet to send [03:09:10]OFD Sender: No OFD packet to send [03:09:15]OFD Sender: No OFD packet to send [03:09:20]OFD Sender: No OFD packet to send [03:09:25]OFD Sender: No OFD packet to send [03:09:30]OFD Sender: No OFD packet to send [03:09:35]OFD Sender: No OFD packet to send [03:09:40]OFD Sender: No OFD packet to send [03:09:45]OFD Sender: No OFD packet to send [03:09:50]OFD Sender: No OFD packet to send [03:09:55]OFD Sender: No OFD packet to send [03:10:00]OFD Sender: No OFD packet to send [03:10:05]OFD Sender: No OFD packet to send [03:10:10]OFD Sender: No OFD packet to send [03:10:15]OFD Sender: No OFD packet to send [03:10:20]OFD Sender: No OFD packet to send [03:10:25]OFD Sender: No OFD packet to send [03:10:30]OFD Sender: No OFD packet to send [03:10:35]OFD Sender: No OFD packet to send [03:10:40]OFD Sender: No OFD packet to send [03:10:45]OFD Sender: No OFD packet to send [03:10:50]OFD Sender: No OFD packet to send [03:10:55]OFD Sender: No OFD packet to send [03:11:00]OFD Sender: No OFD packet to send [03:11:05]OFD Sender: No OFD packet to send [03:11:10]OFD Sender: No OFD packet to send [03:11:15]OFD Sender: No OFD packet to send [03:11:20]OFD Sender: No OFD packet to send [03:11:25]OFD Sender: No OFD packet to send [03:11:30]OFD Sender: No OFD packet to send [03:11:35]OFD Sender: No OFD packet to send [03:11:40]OFD Sender: No OFD packet to send [03:11:45]OFD Sender: No OFD packet to send [03:11:50]OFD Sender: No OFD packet to send [03:11:55]OFD Sender: No OFD packet to send [03:12:00]OFD Sender: No OFD packet to send [03:12:05]OFD Sender: No OFD packet to send [03:12:10]OFD Sender: No OFD packet to send [03:12:15]OFD Sender: No OFD packet to send [03:12:20]OFD Sender: No OFD packet to send [03:12:25]OFD Sender: No OFD packet to send [03:12:30]OFD Sender: No OFD packet to send [03:12:33]accept exits with 8 [03:12:33]New connection [03:12:33]New thread 3066965348 created [03:12:33]Thread 3066821988 joined [03:12:33]Waiting for new connection... [03:12:33] Sock 8.Parse request [03:12:33]Sock 8.Check first char [03:12:33]Sock 8.First char is OK [03:12:33]request: POST /json_proto HTTP/1.0 [03:12:33]Method: POST [03:12:33]URL: /json_proto [03:12:33]Method is POST - this is cgi request [03:12:33]url: /json_proto [03:12:33]query_string will be loaded in cgi processing [03:12:33]execute_cgi json_proto POST (null) [03:12:33]execute_cgi path=json_proto method=POST [03:12:33]POST find Content-Length [03:12:33]Host: 172.17.44.195:8080 [03:12:33]Content-Length: 767 [03:12:33]Content-Type: application/json [03:12:33] [03:12:33]POST finish read [03:12:33]Found Content-Length = 767 [03:12:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962620", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:12:33]execute_script... [03:12: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)1962620", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:12:33]POST & json_proto [03:12:33]process_json_proto [03:12:33]json parsed OK: [03:12:33]protocol is kg_v1.0 [03:12:33]action value=close_receipt [03:12:33]process_action close_receipt [03:12:33]cmd_close_receipt [03:12:33]MH_GetDate [03:12:33]Write to MH i2c: F0 00 00 08 1C 13 [03:12:33]Write i2c OK [03:12:33]MH_I2C_Read... [03:12:33]Read from MH i2c: F0 [03:12:33]MH_I2C_Read... [03:12:33]Read from MH i2c: F0 09 00 [03:12:33]MH_I2C_Read... [03:12:33]Read from MH i2c: F0 09 00 08 1C 00 23 75 14 67 82 C9 CF 66 AF [03:12:33]GetLastDocTimeStamp 1729392694 [03:12:33]current date 1729393955 [03:12:33]FM_GetShiftState [03:12:33]SAM_PROTO_GetShiftState [03:12:33]wFMCommunicate request_size=4 [03:12:33]MH_SAM_APDU [03:12:33]CAPDU: 80 13 01 00 [03:12:33]Write to MH i2c: E2 08 00 09 1C 80 13 01 00 00 00 00 00 A2 [03:12:33]Write i2c OK [03:12:33]MH_I2C_Read... [03:12:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:12:33]Read from MH i2c: E2 [03:12:33]MH_I2C_Read... [03:12:33]Read from MH i2c: E2 0E 00 [03:12:33]MH_I2C_Read... [03:12:33]Read from MH i2c: E2 0E 00 09 1C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 BC [03:12:33]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [03:12:33]wFMCommunicate OK [03:12:33]SAM_PROTO_GetShiftState done [03:12:33]FM_GetShiftState done [03:12:33]opened in 1729383750 [03:12:33]opened+sec_in_day 1729470150 [03:12:33]quantity*price = 50041 [03:12:33]sum+1 = 50042 [03:12:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 17 20.10.2024 03:12 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 227169 ФПД: 247381734299686 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T031235&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227169&fm=247381734299686&tin=02508201610067®Number=0000000000091685&sum=50041 [03:12:34]StoreToDocumentArchive [03:12:34]shift 533 fd 227169 [03:12:34]save to /storage/0533/doc_00227169 [03:12:34]save last doc name /storage/0533/doc_00227169 to /storage/kkm_last_doc_name [03:12:34]save OK [03:12:34]Clear old archive folders... [03:12:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:12:34]tlvbuf is 0053B890 [03:12:34]SAM_PROTO_ClearQueue [03:12:34]wFMCommunicate request_size=4 [03:12:34]MH_SAM_APDU [03:12:34]CAPDU: 80 09 00 00 [03:12:34]Write to MH i2c: E2 08 00 16 1C 80 09 00 00 00 00 00 00 A4 [03:12:34]Write i2c OK [03:12:34]MH_I2C_Read... [03:12:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:12:34]Read from MH i2c: E2 [03:12:34]MH_I2C_Read... [03:12:34]Read from MH i2c: E2 03 00 [03:12:34]MH_I2C_Read... [03:12:34]Read from MH i2c: E2 03 00 16 1C 00 90 00 A6 [03:12:34]RAPDU: 90 00 [03:12:34]wFMCommunicate OK [03:12:34]SAM_PROTO_ClearQueue done [03:12:34]KKMCreateOFDPacket [03:12:34]OFDProtocolAddRootSTLVToBuf [03:12:34]FM_MakeSignedData [03:12:34]FM_MakeSignedData [03:12:34]SAM_PROTO_SignData [03:12:34]wFMCommunicate request_size=4 [03:12:34]MH_SAM_APDU [03:12:34]CAPDU: 80 0D 01 02 [03:12:34]Write to MH i2c: E2 08 00 17 1C 80 0D 01 02 00 00 00 00 AC [03:12:34]Write i2c OK [03:12:34]MH_I2C_Read... [03:12:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:12:34]Read from MH i2c: E2 [03:12:34]MH_I2C_Read... [03:12:34]Read from MH i2c: E2 03 00 [03:12:34]MH_I2C_Read... [03:12:34]Read from MH i2c: E2 03 00 17 1C 00 90 00 A7 [03:12:34]RAPDU: 90 00 [03:12:34]wFMCommunicate OK [03:12:34]wFMCommunicate request_size=255 [03:12:34]MH_SAM_APDU [03:12:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 23 75 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 61 77 03 00 35 04 06 00 E0 [03:12:34]Write to MH i2c: E2 02 01 18 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 23 75 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 61 77 03 00 35 04 06 00 E0 00 00 8B [03:12:34]Write i2c OK [03:12:34]MH_I2C_Read... [03:12:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:12:34]Read from MH i2c: E2 [03:12:34]MH_I2C_Read... [03:12:34]Read from MH i2c: E2 03 00 [03:12:34]MH_I2C_Read... [03:12:34]Read from MH i2c: E2 03 00 18 1C 00 90 00 A8 [03:12:34]RAPDU: 90 00 [03:12:34]wFMCommunicate OK [03:12:34]wFMCommunicate request_size=10 [03:12:34]MH_SAM_APDU [03:12:34]CAPDU: 80 0D 02 02 05 FE 0C 65 98 26 [03:12:34]Write to MH i2c: E2 0D 00 19 1C 80 0D 02 02 05 00 FE 0C 65 98 26 00 00 E6 [03:12:34]Write i2c OK [03:12:34]MH_I2C_Read... [03:12:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:12:34]Read from MH i2c: E2 [03:12:34]MH_I2C_Read... [03:12:34]Read from MH i2c: E2 03 00 [03:12:34]MH_I2C_Read... [03:12:34]Read from MH i2c: E2 03 00 19 1C 00 90 00 A9 [03:12:34]RAPDU: 90 00 [03:12:34]wFMCommunicate OK [03:12:34]wFMCommunicate request_size=4 [03:12:34]MH_SAM_APDU [03:12:34]CAPDU: 80 0D 03 02 [03:12:34]Write to MH i2c: E2 08 00 1A 1C 80 0D 03 02 00 00 00 00 B1 [03:12:34]Write i2c OK [03:12:34]MH_I2C_Read... [03:12:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:12:34]Read from MH i2c: E2 [03:12:34]MH_I2C_Read... [03:12:34]Read from MH i2c: E2 0B 00 [03:12:34]MH_I2C_Read... [03:12:34]Read from MH i2c: E2 0B 00 1A 1C 00 4A 46 73 CC 22 A7 30 EF 90 00 69 [03:12:34]RAPDU: 4A 46 73 CC 22 A7 30 EF 90 00 [03:12:34]wFMCommunicate OK [03:12:34]SAM_PROTO_SignData done [03:12:34]FM_MakeSignedData done [03:12:34]CreateOFDProtocolMessage [03:12:34]wFMCommunicate request_size=4 [03:12:34]MH_SAM_APDU [03:12:34]CAPDU: 80 11 00 00 [03:12:34]Write to MH i2c: E2 08 00 1B 1C 80 11 00 00 00 00 00 00 B1 [03:12:34]Write i2c OK [03:12:34]MH_I2C_Read... [03:12:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:12:34]Read from MH i2c: E2 [03:12:34]MH_I2C_Read... [03:12:34]Read from MH i2c: E2 17 00 [03:12:34]MH_I2C_Read... [03:12:34]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 33 39 90 00 08 [03:12:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [03:12:34]wFMCommunicate OK [03:12:34]CreateOFDProtocolMessage done [03:12:34]OFDSenderStorePacket 227169 [03:12:34]StoreOFDPacket docnum=227169 [03:12:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 3B 26 07 01 5A DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 23 75 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 61 77 03 00 35 04 06 00 E0 FE 0C 65 98 26 4A 46 73 CC 22 A7 30 EF [03:12:34]CheckFolder [03:12:34]dirname=/storage/ofd_packets [03:12:34]CheckFolder done [03:12:34]ProducePacketName [03:12:34]name=ofd_packets/00227169 [03:12:34]NVStorageSaveData ofd_packets/00227169 [03:12:34]File name is /storage/ofd_packets/00227169 [03:12:34]Write 301 bytes [03:12:34]NVStorageSaveData done [03:12:34]OFDSenderStorePacket done [03:12:34]KKMCreateOFDPacket done [03:12:34]NVStorageSaveData kkm_last_timestamp [03:12:34]File name is /storage/kkm_last_timestamp [03:12:34]Write 4 bytes [03:12:34]NVStorageSaveData done [03:12:34]ExternCall_PrintAddStr [03:12:34]wPrintStart [03:12:34]Write to MH i2c: 01 00 00 1C 1C 38 [03:12:34]Write i2c OK [03:12:34]MH_I2C_Read... [03:12:34]Read from MH i2c: 01 [03:12:34]MH_I2C_Read... [03:12:34]Read from MH i2c: 01 07 00 [03:12:34]MH_I2C_Read... [03:12:34]Read from MH i2c: 01 07 00 1C 1C 00 00 00 00 00 FF 0F 4D [03:12:34]RasterBufferAndPrint [03:12:34]line Счет N : (1)1962620 [03:12:34]line ИНН: 02508201610067 [03:12:34]line Контрольно-Кассовый Чек [03:12:34]line ПРОДАЖА [03:12:34]line ТРК (МРК, ГНК) : 53 [03:12:34]line Товар: 2710124130 [03:12:34]line Аи-92-К-5 [03:12:34]line 7.480 * 66.90 [03:12:34]line = 500.41 [03:12:34]line НДС 12% НСП 1% [03:12:34]line > о реализуемом товаре [03:12:34]line ИТОГО: 500.41 [03:12:34]line НСП 1% : 4.43 [03:12:34]line НДС 12% : 53.14 [03:12:34]line Наличными: 0.00 [03:12:34]line Безнал.: 500.41 [03:12:34]line Место: АЗС № 133 "Партнер Нефть" [03:12:34]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [03:12:34]line СНО: Общий режим [03:12:34]line Чек 17 20.10.2024 03:12 [03:12:34]line Смена: 533 ФФД: 1.0 [03:12:34]line ЗНМ: 0300000091 [03:12:34]line РНМ: 0000000000091685 [03:12:34]line Версия ККМ: 001 [03:12:34]line Платежная система: Mbank [03:12:34]line ФМ: 0000000000871839 [03:12:34]line ФД: 227169 [03:12:34]line ФПД: 247381734299686 [03:12:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T031235&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227169&fm=247381734299686&tin=02508201610067®Number=0000000000091685&sum=50041 [03:12:34]written 0, free lines is 4095 [03:12:34]OFD Sender: Processing packet 227169 [packets to send 38, broken 37] [03:12:34]ProducePacketName [03:12:34]name=ofd_packets/00227169 [03:12:34]OFD Sender: To server: pG, [03:12:34]CommunicateWithHost lk.salyk.kg:30040 [03:12:34]ConnectInit lk.salyk.kg [03:12:34]Connected sock=11 [03:12:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 3B 26 07 01 5A DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 23 75 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 61 77 03 00 35 04 06 00 E0 FE 0C 65 98 26 4A 46 73 CC 22 A7 30 EF [03:12: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 33 39 4F 00 00 00 BD 2B 47 00 66 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 61 77 03 00 F4 03 04 00 23 20 14 67 B6 04 01 00 00 D6 C4 A0 67 32 29 2E 08 [03:12:35]CommunicateWithHost err = 0 [03:12:35]CheckOFDResponse [03:12:35]1017 (14) - 77093643461234 [03:12:35]1041 (16) - 0000000000871839 [03:12:35]1040 (4) - 227169 [03:12:35]1012 (4) - 19.10.2024 21:09 [03:12:35]1206 (1) - 0 [03:12:35]OFD Sender: Remove packet 227169 [03:12:35]ProducePacketName [03:12:35]name=ofd_packets/00227169 [03:12:35]NVStorageDeleteData [03:12:35]Write to MH i2c: 01 00 00 44 1C 60 [03:12:35]Write i2c OK [03:12:35]MH_I2C_Read... [03:12:35]Read from MH i2c: 01 [03:12:35]MH_I2C_Read... [03:12:35]Read from MH i2c: 01 07 00 [03:12:35]MH_I2C_Read... [03:12:35]Read from MH i2c: 01 07 00 44 1C 00 00 00 00 00 32 0D A6 [03:12:35]RasterBufferAndPrint [03:12:35]line [03:12:35]line [03:12:35]line [03:12:35]line [03:12:35]line [03:12:35]written 0, free lines is 3387 [03:12:35]process_action close_receipt done [03:12:35]requested_data is exist [03:12:35]produce_requested_data [03:12:35]requested_item fm.sn is exist - process it [03:12:35]wFMCommunicate request_size=4 [03:12:35]MH_SAM_APDU [03:12:35]CAPDU: 80 11 00 00 [03:12:35]Write to MH i2c: E2 08 00 4B 1C 80 11 00 00 00 00 00 00 E1 [03:12:35]Write i2c OK [03:12:35]MH_I2C_Read... [03:12:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:12:35]Read from MH i2c: E2 [03:12:35]MH_I2C_Read... [03:12:35]Read from MH i2c: E2 17 00 [03:12:35]MH_I2C_Read... [03:12:35]Read from MH i2c: E2 17 00 4B 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 38 [03:12:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [03:12:35]wFMCommunicate OK [03:12:35]requested_item fd.num is exist - process it [03:12:35]SAM_PROTO_GetFieldsCounters [03:12:35]wFMCommunicate request_size=4 [03:12:35]MH_SAM_APDU [03:12:35]CAPDU: 80 13 00 00 [03:12:35]Write to MH i2c: E2 08 00 4C 1C 80 13 00 00 00 00 00 00 E4 [03:12:35]Write i2c OK [03:12:35]MH_I2C_Read... [03:12:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:12:35]Read from MH i2c: E2 [03:12:35]MH_I2C_Read... [03:12:35]Read from MH i2c: E2 62 00 [03:12:35]MH_I2C_Read... [03:12:35]Read from MH i2c: E2 62 00 4C 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 61 77 03 00 0E 04 04 00 15 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 32 [03:12:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 61 77 03 00 0E 04 04 00 15 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 [03:12:35]wFMCommunicate OK [03:12:35]SAM_PROTO_GetFieldsCounters done [03:12:35]requested_item shift.num is exist - process it [03:12:35]requested_item shift.opened is exist - process it [03:12:35]req_shift_opened [03:12:35]FM_GetShiftState [03:12:35]SAM_PROTO_GetShiftState [03:12:35]wFMCommunicate request_size=4 [03:12:35]MH_SAM_APDU [03:12:35]CAPDU: 80 13 01 00 [03:12:35]Write to MH i2c: E2 08 00 4D 1C 80 13 01 00 00 00 00 00 E6 [03:12:35]Write i2c OK [03:12:35]MH_I2C_Read... [03:12:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:12:35]Read from MH i2c: E2 [03:12:35]MH_I2C_Read... [03:12:35]Read from MH i2c: E2 0E 00 [03:12:35]MH_I2C_Read... [03:12:35]Read from MH i2c: E2 0E 00 4D 1C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 00 [03:12:35]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [03:12:35]wFMCommunicate OK [03:12:35]SAM_PROTO_GetShiftState done [03:12:35]FM_GetShiftState done [03:12:35]req_shift_opened done [03:12:35]requested_item shift.open_date is exist - process it [03:12:35]req_shift_open_date [03:12:35]req_shift_open_date done [03:12:35]produce_requested_data done [03:12:35]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227169,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [03:12:35]process_action_free close_receipt [03:12:35]json_value_free [03:12:35]json_value_free done [03:12:35]process_json_proto returns [03:12:35]Send response to host [03:12:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227169,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [03:12:35]free response buf [03:12:35]execute_script done [03:12:35]execute_script returns [03:12:35]free content buf [03:12:35]Sock 8.Close socket [03:12:35]Sock 8.Thread stoped [03:12:35]OFD Sender: No OFD packet to send [03:12:40]OFD Sender: No OFD packet to send [03:12:45]OFD Sender: No OFD packet to send [03:12:50]OFD Sender: No OFD packet to send [03:12:55]OFD Sender: No OFD packet to send [03:13:00]OFD Sender: No OFD packet to send [03:13:05]OFD Sender: No OFD packet to send [03:13:10]OFD Sender: No OFD packet to send [03:13:15]OFD Sender: No OFD packet to send [03:13:20]OFD Sender: No OFD packet to send [03:13:25]OFD Sender: No OFD packet to send [03:13:30]OFD Sender: No OFD packet to send [03:13:35]OFD Sender: No OFD packet to send [03:13:40]OFD Sender: No OFD packet to send [03:13:45]OFD Sender: No OFD packet to send [03:13:50]OFD Sender: No OFD packet to send [03:13:55]OFD Sender: No OFD packet to send [03:14:00]OFD Sender: No OFD packet to send [03:14:05]OFD Sender: No OFD packet to send [03:14:10]OFD Sender: No OFD packet to send [03:14:15]OFD Sender: No OFD packet to send [03:14:20]OFD Sender: No OFD packet to send [03:14:25]OFD Sender: No OFD packet to send [03:14:30]OFD Sender: No OFD packet to send [03:14:35]OFD Sender: No OFD packet to send [03:14:40]OFD Sender: No OFD packet to send [03:14:45]OFD Sender: No OFD packet to send [03:14:50]OFD Sender: No OFD packet to send [03:14:55]OFD Sender: No OFD packet to send [03:15:00]OFD Sender: No OFD packet to send [03:15:05]OFD Sender: No OFD packet to send [03:15:10]OFD Sender: No OFD packet to send [03:15:15]OFD Sender: No OFD packet to send [03:15:20]OFD Sender: No OFD packet to send [03:15:25]OFD Sender: No OFD packet to send [03:15:30]OFD Sender: No OFD packet to send [03:15:35]OFD Sender: No OFD packet to send [03:15:40]OFD Sender: No OFD packet to send [03:15:45]OFD Sender: No OFD packet to send [03:15:50]OFD Sender: No OFD packet to send [03:15:55]OFD Sender: No OFD packet to send [03:16:00]OFD Sender: No OFD packet to send [03:16:05]OFD Sender: No OFD packet to send [03:16:10]OFD Sender: No OFD packet to send [03:16:15]OFD Sender: No OFD packet to send [03:16:20]OFD Sender: No OFD packet to send [03:16:25]OFD Sender: No OFD packet to send [03:16:30]OFD Sender: No OFD packet to send [03:16:35]OFD Sender: No OFD packet to send [03:16:40]OFD Sender: No OFD packet to send [03:16:45]OFD Sender: No OFD packet to send [03:16:50]OFD Sender: No OFD packet to send [03:16:55]OFD Sender: No OFD packet to send [03:17:00]OFD Sender: No OFD packet to send [03:17:05]OFD Sender: No OFD packet to send [03:17:10]OFD Sender: No OFD packet to send [03:17:15]OFD Sender: No OFD packet to send [03:17:20]OFD Sender: No OFD packet to send [03:17:25]OFD Sender: No OFD packet to send [03:17:30]OFD Sender: No OFD packet to send [03:17:35]OFD Sender: No OFD packet to send [03:17:40]OFD Sender: No OFD packet to send [03:17:45]OFD Sender: No OFD packet to send [03:17:50]OFD Sender: No OFD packet to send [03:17:55]OFD Sender: No OFD packet to send [03:18:00]OFD Sender: No OFD packet to send [03:18:05]OFD Sender: No OFD packet to send [03:18:10]OFD Sender: No OFD packet to send [03:18:15]OFD Sender: No OFD packet to send [03:18:20]OFD Sender: No OFD packet to send [03:18:25]OFD Sender: No OFD packet to send [03:18:30]OFD Sender: No OFD packet to send [03:18:35]OFD Sender: No OFD packet to send [03:18:40]OFD Sender: No OFD packet to send [03:18:45]OFD Sender: No OFD packet to send [03:18:50]OFD Sender: No OFD packet to send [03:18:55]OFD Sender: No OFD packet to send [03:19:00]OFD Sender: No OFD packet to send [03:19:05]OFD Sender: No OFD packet to send [03:19:10]OFD Sender: No OFD packet to send [03:19:15]OFD Sender: No OFD packet to send [03:19:20]OFD Sender: No OFD packet to send [03:19:25]OFD Sender: No OFD packet to send [03:19:30]OFD Sender: No OFD packet to send [03:19:35]OFD Sender: No OFD packet to send [03:19:40]OFD Sender: No OFD packet to send [03:19:45]OFD Sender: No OFD packet to send [03:19:50]OFD Sender: No OFD packet to send [03:19:55]OFD Sender: No OFD packet to send [03:20:00]OFD Sender: No OFD packet to send [03:20:05]OFD Sender: No OFD packet to send [03:20:10]OFD Sender: No OFD packet to send [03:20:15]OFD Sender: No OFD packet to send [03:20:20]OFD Sender: No OFD packet to send [03:20:26]OFD Sender: No OFD packet to send [03:20:31]OFD Sender: No OFD packet to send [03:20:36]OFD Sender: No OFD packet to send [03:20:41]OFD Sender: No OFD packet to send [03:20:46]OFD Sender: No OFD packet to send [03:20:51]OFD Sender: No OFD packet to send [03:20:56]OFD Sender: No OFD packet to send [03:21:01]OFD Sender: No OFD packet to send [03:21:06]OFD Sender: No OFD packet to send [03:21:11]OFD Sender: No OFD packet to send [03:21:16]OFD Sender: No OFD packet to send [03:21:21]OFD Sender: No OFD packet to send [03:21:26]OFD Sender: No OFD packet to send [03:21:31]OFD Sender: No OFD packet to send [03:21:36]OFD Sender: No OFD packet to send [03:21:41]OFD Sender: No OFD packet to send [03:21:46]OFD Sender: No OFD packet to send [03:21:51]OFD Sender: No OFD packet to send [03:21:56]OFD Sender: No OFD packet to send [03:22:01]OFD Sender: No OFD packet to send [03:22:06]OFD Sender: No OFD packet to send [03:22:11]OFD Sender: No OFD packet to send [03:22:16]OFD Sender: No OFD packet to send [03:22:21]OFD Sender: No OFD packet to send [03:22:26]OFD Sender: No OFD packet to send [03:22:31]OFD Sender: No OFD packet to send [03:22:36]OFD Sender: No OFD packet to send [03:22:41]OFD Sender: No OFD packet to send [03:22:46]OFD Sender: No OFD packet to send [03:22:51]OFD Sender: No OFD packet to send [03:22:56]OFD Sender: No OFD packet to send [03:23:01]OFD Sender: No OFD packet to send [03:23:06]OFD Sender: No OFD packet to send [03:23:11]OFD Sender: No OFD packet to send [03:23:16]OFD Sender: No OFD packet to send [03:23:21]OFD Sender: No OFD packet to send [03:23:26]OFD Sender: No OFD packet to send [03:23:31]OFD Sender: No OFD packet to send [03:23:36]OFD Sender: No OFD packet to send [03:23:41]OFD Sender: No OFD packet to send [03:23:46]OFD Sender: No OFD packet to send [03:23:51]OFD Sender: No OFD packet to send [03:23:56]OFD Sender: No OFD packet to send [03:24:01]OFD Sender: No OFD packet to send [03:24:06]OFD Sender: No OFD packet to send [03:24:11]OFD Sender: No OFD packet to send [03:24:16]OFD Sender: No OFD packet to send [03:24:21]OFD Sender: No OFD packet to send [03:24:26]OFD Sender: No OFD packet to send [03:24:31]OFD Sender: No OFD packet to send [03:24:36]OFD Sender: No OFD packet to send [03:24:41]OFD Sender: No OFD packet to send [03:24:46]OFD Sender: No OFD packet to send [03:24:51]OFD Sender: No OFD packet to send [03:24:56]OFD Sender: No OFD packet to send [03:25:01]OFD Sender: No OFD packet to send [03:25:06]OFD Sender: No OFD packet to send [03:25:11]OFD Sender: No OFD packet to send [03:25:16]OFD Sender: No OFD packet to send [03:25:21]OFD Sender: No OFD packet to send [03:25:26]OFD Sender: No OFD packet to send [03:25:31]OFD Sender: No OFD packet to send [03:25:36]OFD Sender: No OFD packet to send [03:25:41]OFD Sender: No OFD packet to send [03:25:46]OFD Sender: No OFD packet to send [03:25:51]OFD Sender: No OFD packet to send [03:25:56]OFD Sender: No OFD packet to send [03:26:01]OFD Sender: No OFD packet to send [03:26:06]OFD Sender: No OFD packet to send [03:26:11]OFD Sender: No OFD packet to send [03:26:16]OFD Sender: No OFD packet to send [03:26:21]OFD Sender: No OFD packet to send [03:26:26]OFD Sender: No OFD packet to send [03:26:31]OFD Sender: No OFD packet to send [03:26:36]OFD Sender: No OFD packet to send [03:26:41]OFD Sender: No OFD packet to send [03:26:46]OFD Sender: No OFD packet to send [03:26:51]OFD Sender: No OFD packet to send [03:26:56]OFD Sender: No OFD packet to send [03:27:01]OFD Sender: No OFD packet to send [03:27:06]OFD Sender: No OFD packet to send [03:27:11]OFD Sender: No OFD packet to send [03:27:16]OFD Sender: No OFD packet to send [03:27:21]OFD Sender: No OFD packet to send [03:27:26]OFD Sender: No OFD packet to send [03:27:31]OFD Sender: No OFD packet to send [03:27:36]OFD Sender: No OFD packet to send [03:27:41]OFD Sender: No OFD packet to send [03:27:46]OFD Sender: No OFD packet to send [03:27:51]OFD Sender: No OFD packet to send [03:27:56]OFD Sender: No OFD packet to send [03:28:01]OFD Sender: No OFD packet to send [03:28:06]OFD Sender: No OFD packet to send [03:28:11]OFD Sender: No OFD packet to send [03:28:16]OFD Sender: No OFD packet to send [03:28:21]OFD Sender: No OFD packet to send [03:28:26]OFD Sender: No OFD packet to send [03:28:31]OFD Sender: No OFD packet to send [03:28:36]OFD Sender: No OFD packet to send [03:28:41]OFD Sender: No OFD packet to send [03:28:46]OFD Sender: No OFD packet to send [03:28:51]OFD Sender: No OFD packet to send [03:28:56]OFD Sender: No OFD packet to send [03:29:01]OFD Sender: No OFD packet to send [03:29:06]OFD Sender: No OFD packet to send [03:29:11]OFD Sender: No OFD packet to send [03:29:16]OFD Sender: No OFD packet to send [03:29:21]OFD Sender: No OFD packet to send [03:29:26]OFD Sender: No OFD packet to send [03:29:31]OFD Sender: No OFD packet to send [03:29:36]OFD Sender: No OFD packet to send [03:29:41]OFD Sender: No OFD packet to send [03:29:46]OFD Sender: No OFD packet to send [03:29:51]OFD Sender: No OFD packet to send [03:29:56]OFD Sender: No OFD packet to send [03:30:01]OFD Sender: No OFD packet to send [03:30:06]OFD Sender: No OFD packet to send [03:30:11]OFD Sender: No OFD packet to send [03:30:16]OFD Sender: No OFD packet to send [03:30:21]OFD Sender: No OFD packet to send [03:30:26]OFD Sender: No OFD packet to send [03:30:31]OFD Sender: No OFD packet to send [03:30:36]OFD Sender: No OFD packet to send [03:30:41]OFD Sender: No OFD packet to send [03:30:46]OFD Sender: No OFD packet to send [03:30:51]OFD Sender: No OFD packet to send [03:30:56]OFD Sender: No OFD packet to send [03:31:01]OFD Sender: No OFD packet to send [03:31:06]OFD Sender: No OFD packet to send [03:31:11]OFD Sender: No OFD packet to send [03:31:16]OFD Sender: No OFD packet to send [03:31:21]OFD Sender: No OFD packet to send [03:31:26]OFD Sender: No OFD packet to send [03:31:31]OFD Sender: No OFD packet to send [03:31:36]OFD Sender: No OFD packet to send [03:31:41]OFD Sender: No OFD packet to send [03:31:46]OFD Sender: No OFD packet to send [03:31:51]OFD Sender: No OFD packet to send [03:31:56]OFD Sender: No OFD packet to send [03:32:01]OFD Sender: No OFD packet to send [03:32:06]OFD Sender: No OFD packet to send [03:32:11]OFD Sender: No OFD packet to send [03:32:16]OFD Sender: No OFD packet to send [03:32:21]OFD Sender: No OFD packet to send [03:32:26]OFD Sender: No OFD packet to send [03:32:31]OFD Sender: No OFD packet to send [03:32:36]OFD Sender: No OFD packet to send [03:32:41]OFD Sender: No OFD packet to send [03:32:46]OFD Sender: No OFD packet to send [03:32:51]OFD Sender: No OFD packet to send [03:32:56]OFD Sender: No OFD packet to send [03:33:01]OFD Sender: No OFD packet to send [03:33:06]OFD Sender: No OFD packet to send [03:33:11]OFD Sender: No OFD packet to send [03:33:16]OFD Sender: No OFD packet to send [03:33:21]OFD Sender: No OFD packet to send [03:33:26]OFD Sender: No OFD packet to send [03:33:31]OFD Sender: No OFD packet to send [03:33:36]OFD Sender: No OFD packet to send [03:33:41]OFD Sender: No OFD packet to send [03:33:46]OFD Sender: No OFD packet to send [03:33:51]OFD Sender: No OFD packet to send [03:33:56]OFD Sender: No OFD packet to send [03:34:01]OFD Sender: No OFD packet to send [03:34:06]OFD Sender: No OFD packet to send [03:34:11]OFD Sender: No OFD packet to send [03:34:16]OFD Sender: No OFD packet to send [03:34:21]OFD Sender: No OFD packet to send [03:34:26]OFD Sender: No OFD packet to send [03:34:31]OFD Sender: No OFD packet to send [03:34:36]OFD Sender: No OFD packet to send [03:34:41]OFD Sender: No OFD packet to send [03:34:46]OFD Sender: No OFD packet to send [03:34:51]OFD Sender: No OFD packet to send [03:34:56]OFD Sender: No OFD packet to send [03:35:01]OFD Sender: No OFD packet to send [03:35:06]OFD Sender: No OFD packet to send [03:35:11]OFD Sender: No OFD packet to send [03:35:16]OFD Sender: No OFD packet to send [03:35:21]OFD Sender: No OFD packet to send [03:35:26]OFD Sender: No OFD packet to send [03:35:31]OFD Sender: No OFD packet to send [03:35:36]OFD Sender: No OFD packet to send [03:35:41]OFD Sender: No OFD packet to send [03:35:46]OFD Sender: No OFD packet to send [03:35:51]OFD Sender: No OFD packet to send [03:35:56]OFD Sender: No OFD packet to send [03:36:01]OFD Sender: No OFD packet to send [03:36:06]OFD Sender: No OFD packet to send [03:36:11]OFD Sender: No OFD packet to send [03:36:16]OFD Sender: No OFD packet to send [03:36:21]OFD Sender: No OFD packet to send [03:36:26]OFD Sender: No OFD packet to send [03:36:31]OFD Sender: No OFD packet to send [03:36:36]OFD Sender: No OFD packet to send [03:36:41]OFD Sender: No OFD packet to send [03:36:46]OFD Sender: No OFD packet to send [03:36:51]OFD Sender: No OFD packet to send [03:36:56]OFD Sender: No OFD packet to send [03:37:01]OFD Sender: No OFD packet to send [03:37:06]OFD Sender: No OFD packet to send [03:37:11]OFD Sender: No OFD packet to send [03:37:16]OFD Sender: No OFD packet to send [03:37:21]OFD Sender: No OFD packet to send [03:37:26]OFD Sender: No OFD packet to send [03:37:31]OFD Sender: No OFD packet to send [03:37:36]OFD Sender: No OFD packet to send [03:37:41]OFD Sender: No OFD packet to send [03:37:46]OFD Sender: No OFD packet to send [03:37:51]OFD Sender: No OFD packet to send [03:37:56]OFD Sender: No OFD packet to send [03:38:01]OFD Sender: No OFD packet to send [03:38:06]OFD Sender: No OFD packet to send [03:38:11]OFD Sender: No OFD packet to send [03:38:16]OFD Sender: No OFD packet to send [03:38:22]OFD Sender: No OFD packet to send [03:38:27]OFD Sender: No OFD packet to send [03:38:32]OFD Sender: No OFD packet to send [03:38:37]OFD Sender: No OFD packet to send [03:38:42]OFD Sender: No OFD packet to send [03:38:47]OFD Sender: No OFD packet to send [03:38:52]OFD Sender: No OFD packet to send [03:38:57]OFD Sender: No OFD packet to send [03:39:02]OFD Sender: No OFD packet to send [03:39:07]OFD Sender: No OFD packet to send [03:39:12]OFD Sender: No OFD packet to send [03:39:17]OFD Sender: No OFD packet to send [03:39:22]OFD Sender: No OFD packet to send [03:39:27]OFD Sender: No OFD packet to send [03:39:32]OFD Sender: No OFD packet to send [03:39:37]OFD Sender: No OFD packet to send [03:39:42]OFD Sender: No OFD packet to send [03:39:47]OFD Sender: No OFD packet to send [03:39:52]OFD Sender: No OFD packet to send [03:39:57]OFD Sender: No OFD packet to send [03:40:02]OFD Sender: No OFD packet to send [03:40:07]OFD Sender: No OFD packet to send [03:40:12]OFD Sender: No OFD packet to send [03:40:17]OFD Sender: No OFD packet to send [03:40:22]OFD Sender: No OFD packet to send [03:40:27]OFD Sender: No OFD packet to send [03:40:32]OFD Sender: No OFD packet to send [03:40:37]OFD Sender: No OFD packet to send [03:40:42]OFD Sender: No OFD packet to send [03:40:47]OFD Sender: No OFD packet to send [03:40:52]OFD Sender: No OFD packet to send [03:40:57]OFD Sender: No OFD packet to send [03:41:02]OFD Sender: No OFD packet to send [03:41:07]OFD Sender: No OFD packet to send [03:41:12]OFD Sender: No OFD packet to send [03:41:17]OFD Sender: No OFD packet to send [03:41:22]OFD Sender: No OFD packet to send [03:41:27]OFD Sender: No OFD packet to send [03:41:32]OFD Sender: No OFD packet to send [03:41:37]OFD Sender: No OFD packet to send [03:41:42]OFD Sender: No OFD packet to send [03:41:47]OFD Sender: No OFD packet to send [03:41:52]OFD Sender: No OFD packet to send [03:41:57]OFD Sender: No OFD packet to send [03:42:02]OFD Sender: No OFD packet to send [03:42:07]OFD Sender: No OFD packet to send [03:42:12]OFD Sender: No OFD packet to send [03:42:17]OFD Sender: No OFD packet to send [03:42:22]OFD Sender: No OFD packet to send [03:42:27]OFD Sender: No OFD packet to send [03:42:32]OFD Sender: No OFD packet to send [03:42:37]OFD Sender: No OFD packet to send [03:42:42]OFD Sender: No OFD packet to send [03:42:47]OFD Sender: No OFD packet to send [03:42:52]OFD Sender: No OFD packet to send [03:42:57]OFD Sender: No OFD packet to send [03:43:02]OFD Sender: No OFD packet to send [03:43:07]OFD Sender: No OFD packet to send [03:43:12]OFD Sender: No OFD packet to send [03:43:17]OFD Sender: No OFD packet to send [03:43:22]OFD Sender: No OFD packet to send [03:43:27]OFD Sender: No OFD packet to send [03:43:32]OFD Sender: No OFD packet to send [03:43:37]OFD Sender: No OFD packet to send [03:43:42]OFD Sender: No OFD packet to send [03:43:47]OFD Sender: No OFD packet to send [03:43:52]OFD Sender: No OFD packet to send [03:43:57]OFD Sender: No OFD packet to send [03:44:02]OFD Sender: No OFD packet to send [03:44:07]OFD Sender: No OFD packet to send [03:44:12]OFD Sender: No OFD packet to send [03:44:17]OFD Sender: No OFD packet to send [03:44:22]OFD Sender: No OFD packet to send [03:44:27]OFD Sender: No OFD packet to send [03:44:32]OFD Sender: No OFD packet to send [03:44:37]OFD Sender: No OFD packet to send [03:44:42]OFD Sender: No OFD packet to send [03:44:47]OFD Sender: No OFD packet to send [03:44:52]OFD Sender: No OFD packet to send [03:44:57]OFD Sender: No OFD packet to send [03:45:02]OFD Sender: No OFD packet to send [03:45:07]OFD Sender: No OFD packet to send [03:45:12]OFD Sender: No OFD packet to send [03:45:17]OFD Sender: No OFD packet to send [03:45:22]OFD Sender: No OFD packet to send [03:45:27]OFD Sender: No OFD packet to send [03:45:32]OFD Sender: No OFD packet to send [03:45:37]OFD Sender: No OFD packet to send [03:45:42]OFD Sender: No OFD packet to send [03:45:47]OFD Sender: No OFD packet to send [03:45:52]OFD Sender: No OFD packet to send [03:45:57]OFD Sender: No OFD packet to send [03:46:02]OFD Sender: No OFD packet to send [03:46:07]OFD Sender: No OFD packet to send [03:46:12]OFD Sender: No OFD packet to send [03:46:17]OFD Sender: No OFD packet to send [03:46:22]OFD Sender: No OFD packet to send [03:46:27]OFD Sender: No OFD packet to send [03:46:32]OFD Sender: No OFD packet to send [03:46:37]OFD Sender: No OFD packet to send [03:46:42]OFD Sender: No OFD packet to send [03:46:47]OFD Sender: No OFD packet to send [03:46:52]OFD Sender: No OFD packet to send [03:46:57]OFD Sender: No OFD packet to send [03:47:02]OFD Sender: No OFD packet to send [03:47:07]OFD Sender: No OFD packet to send [03:47:12]OFD Sender: No OFD packet to send [03:47:17]OFD Sender: No OFD packet to send [03:47:22]OFD Sender: No OFD packet to send [03:47:27]OFD Sender: No OFD packet to send [03:47:32]OFD Sender: No OFD packet to send [03:47:37]OFD Sender: No OFD packet to send [03:47:42]OFD Sender: No OFD packet to send [03:47:47]OFD Sender: No OFD packet to send [03:47:52]OFD Sender: No OFD packet to send [03:47:57]OFD Sender: No OFD packet to send [03:48:02]OFD Sender: No OFD packet to send [03:48:07]OFD Sender: No OFD packet to send [03:48:12]OFD Sender: No OFD packet to send [03:48:17]OFD Sender: No OFD packet to send [03:48:22]OFD Sender: No OFD packet to send [03:48:27]OFD Sender: No OFD packet to send [03:48:32]OFD Sender: No OFD packet to send [03:48:37]OFD Sender: No OFD packet to send [03:48:42]OFD Sender: No OFD packet to send [03:48:47]OFD Sender: No OFD packet to send [03:48:52]OFD Sender: No OFD packet to send [03:48:57]OFD Sender: No OFD packet to send [03:49:02]OFD Sender: No OFD packet to send [03:49:07]OFD Sender: No OFD packet to send [03:49:12]OFD Sender: No OFD packet to send [03:49:17]OFD Sender: No OFD packet to send [03:49:22]OFD Sender: No OFD packet to send [03:49:27]OFD Sender: No OFD packet to send [03:49:32]OFD Sender: No OFD packet to send [03:49:37]OFD Sender: No OFD packet to send [03:49:42]OFD Sender: No OFD packet to send [03:49:47]OFD Sender: No OFD packet to send [03:49:52]OFD Sender: No OFD packet to send [03:49:57]OFD Sender: No OFD packet to send [03:50:02]OFD Sender: No OFD packet to send [03:50:07]OFD Sender: No OFD packet to send [03:50:12]OFD Sender: No OFD packet to send [03:50:17]OFD Sender: No OFD packet to send [03:50:22]OFD Sender: No OFD packet to send [03:50:27]OFD Sender: No OFD packet to send [03:50:32]OFD Sender: No OFD packet to send [03:50:37]OFD Sender: No OFD packet to send [03:50:42]OFD Sender: No OFD packet to send [03:50:47]OFD Sender: No OFD packet to send [03:50:52]OFD Sender: No OFD packet to send [03:50:57]OFD Sender: No OFD packet to send [03:51:02]OFD Sender: No OFD packet to send [03:51:07]OFD Sender: No OFD packet to send [03:51:12]OFD Sender: No OFD packet to send [03:51:17]OFD Sender: No OFD packet to send [03:51:22]OFD Sender: No OFD packet to send [03:51:27]OFD Sender: No OFD packet to send [03:51:32]OFD Sender: No OFD packet to send [03:51:37]OFD Sender: No OFD packet to send [03:51:42]OFD Sender: No OFD packet to send [03:51:47]OFD Sender: No OFD packet to send [03:51:52]OFD Sender: No OFD packet to send [03:51:57]OFD Sender: No OFD packet to send [03:52:02]OFD Sender: No OFD packet to send [03:52:07]OFD Sender: No OFD packet to send [03:52:12]OFD Sender: No OFD packet to send [03:52:17]OFD Sender: No OFD packet to send [03:52:22]OFD Sender: No OFD packet to send [03:52:27]OFD Sender: No OFD packet to send [03:52:32]OFD Sender: No OFD packet to send [03:52:37]OFD Sender: No OFD packet to send [03:52:42]OFD Sender: No OFD packet to send [03:52:47]OFD Sender: No OFD packet to send [03:52:52]OFD Sender: No OFD packet to send [03:52:57]OFD Sender: No OFD packet to send [03:53:02]OFD Sender: No OFD packet to send [03:53:07]OFD Sender: No OFD packet to send [03:53:12]OFD Sender: No OFD packet to send [03:53:17]OFD Sender: No OFD packet to send [03:53:22]OFD Sender: No OFD packet to send [03:53:27]OFD Sender: No OFD packet to send [03:53:32]OFD Sender: No OFD packet to send [03:53:37]OFD Sender: No OFD packet to send [03:53:42]OFD Sender: No OFD packet to send [03:53:47]OFD Sender: No OFD packet to send [03:53:52]OFD Sender: No OFD packet to send [03:53:57]OFD Sender: No OFD packet to send [03:54:02]OFD Sender: No OFD packet to send [03:54:07]OFD Sender: No OFD packet to send [03:54:12]OFD Sender: No OFD packet to send [03:54:17]OFD Sender: No OFD packet to send [03:54:22]OFD Sender: No OFD packet to send [03:54:27]OFD Sender: No OFD packet to send [03:54:32]OFD Sender: No OFD packet to send [03:54:37]OFD Sender: No OFD packet to send [03:54:42]OFD Sender: No OFD packet to send [03:54:47]OFD Sender: No OFD packet to send [03:54:52]OFD Sender: No OFD packet to send [03:54:57]OFD Sender: No OFD packet to send [03:55:02]OFD Sender: No OFD packet to send [03:55:07]OFD Sender: No OFD packet to send [03:55:12]OFD Sender: No OFD packet to send [03:55:17]OFD Sender: No OFD packet to send [03:55:22]OFD Sender: No OFD packet to send [03:55:27]OFD Sender: No OFD packet to send [03:55:32]OFD Sender: No OFD packet to send [03:55:37]OFD Sender: No OFD packet to send [03:55:42]OFD Sender: No OFD packet to send [03:55:47]OFD Sender: No OFD packet to send [03:55:52]OFD Sender: No OFD packet to send [03:55:57]OFD Sender: No OFD packet to send [03:56:02]OFD Sender: No OFD packet to send [03:56:07]OFD Sender: No OFD packet to send [03:56:12]OFD Sender: No OFD packet to send [03:56:17]OFD Sender: No OFD packet to send [03:56:23]OFD Sender: No OFD packet to send [03:56:28]OFD Sender: No OFD packet to send [03:56:33]OFD Sender: No OFD packet to send [03:56:38]OFD Sender: No OFD packet to send [03:56:43]OFD Sender: No OFD packet to send [03:56:48]OFD Sender: No OFD packet to send [03:56:53]OFD Sender: No OFD packet to send [03:56:58]OFD Sender: No OFD packet to send [03:57:03]OFD Sender: No OFD packet to send [03:57:08]OFD Sender: No OFD packet to send [03:57:13]OFD Sender: No OFD packet to send [03:57:18]OFD Sender: No OFD packet to send [03:57:23]OFD Sender: No OFD packet to send [03:57:28]OFD Sender: No OFD packet to send [03:57:33]OFD Sender: No OFD packet to send [03:57:38]OFD Sender: No OFD packet to send [03:57:43]OFD Sender: No OFD packet to send [03:57:48]OFD Sender: No OFD packet to send [03:57:53]OFD Sender: No OFD packet to send [03:57:58]OFD Sender: No OFD packet to send [03:58:03]OFD Sender: No OFD packet to send [03:58:08]OFD Sender: No OFD packet to send [03:58:13]OFD Sender: No OFD packet to send [03:58:18]OFD Sender: No OFD packet to send [03:58:23]OFD Sender: No OFD packet to send [03:58:28]OFD Sender: No OFD packet to send [03:58:33]OFD Sender: No OFD packet to send [03:58:38]OFD Sender: No OFD packet to send [03:58:43]OFD Sender: No OFD packet to send [03:58:48]OFD Sender: No OFD packet to send [03:58:53]OFD Sender: No OFD packet to send [03:58:58]OFD Sender: No OFD packet to send [03:59:03]OFD Sender: No OFD packet to send [03:59:08]OFD Sender: No OFD packet to send [03:59:13]OFD Sender: No OFD packet to send [03:59:18]OFD Sender: No OFD packet to send [03:59:23]OFD Sender: No OFD packet to send [03:59:28]OFD Sender: No OFD packet to send [03:59:33]OFD Sender: No OFD packet to send [03:59:38]OFD Sender: No OFD packet to send [03:59:43]OFD Sender: No OFD packet to send [03:59:48]OFD Sender: No OFD packet to send [03:59:53]OFD Sender: No OFD packet to send [03:59:58]OFD Sender: No OFD packet to send [04:00:03]OFD Sender: No OFD packet to send [04:00:08]OFD Sender: No OFD packet to send [04:00:13]OFD Sender: No OFD packet to send [04:00:18]OFD Sender: No OFD packet to send [04:00:23]OFD Sender: No OFD packet to send [04:00:28]OFD Sender: No OFD packet to send [04:00:33]OFD Sender: No OFD packet to send [04:00:38]OFD Sender: No OFD packet to send [04:00:43]OFD Sender: No OFD packet to send [04:00:48]OFD Sender: No OFD packet to send [04:00:53]OFD Sender: No OFD packet to send [04:00:58]OFD Sender: No OFD packet to send [04:01:03]OFD Sender: No OFD packet to send [04:01:08]OFD Sender: No OFD packet to send [04:01:13]OFD Sender: No OFD packet to send [04:01:18]OFD Sender: No OFD packet to send [04:01:23]OFD Sender: No OFD packet to send [04:01:28]OFD Sender: No OFD packet to send [04:01:33]OFD Sender: No OFD packet to send [04:01:38]OFD Sender: No OFD packet to send [04:01:43]OFD Sender: No OFD packet to send [04:01:48]OFD Sender: No OFD packet to send [04:01:53]OFD Sender: No OFD packet to send [04:01:58]OFD Sender: No OFD packet to send [04:02:03]OFD Sender: No OFD packet to send [04:02:08]OFD Sender: No OFD packet to send [04:02:13]OFD Sender: No OFD packet to send [04:02:18]OFD Sender: No OFD packet to send [04:02:23]OFD Sender: No OFD packet to send [04:02:28]OFD Sender: No OFD packet to send [04:02:33]OFD Sender: No OFD packet to send [04:02:38]OFD Sender: No OFD packet to send [04:02:43]OFD Sender: No OFD packet to send [04:02:48]OFD Sender: No OFD packet to send [04:02:53]OFD Sender: No OFD packet to send [04:02:58]OFD Sender: No OFD packet to send [04:03:03]OFD Sender: No OFD packet to send [04:03:08]OFD Sender: No OFD packet to send [04:03:13]OFD Sender: No OFD packet to send [04:03:18]OFD Sender: No OFD packet to send [04:03:23]OFD Sender: No OFD packet to send [04:03:28]OFD Sender: No OFD packet to send [04:03:33]OFD Sender: No OFD packet to send [04:03:38]OFD Sender: No OFD packet to send [04:03:43]OFD Sender: No OFD packet to send [04:03:48]OFD Sender: No OFD packet to send [04:03:53]OFD Sender: No OFD packet to send [04:03:58]OFD Sender: No OFD packet to send [04:04:03]OFD Sender: No OFD packet to send [04:04:08]OFD Sender: No OFD packet to send [04:04:13]OFD Sender: No OFD packet to send [04:04:18]OFD Sender: No OFD packet to send [04:04:23]OFD Sender: No OFD packet to send [04:04:28]OFD Sender: No OFD packet to send [04:04:33]OFD Sender: No OFD packet to send [04:04:38]OFD Sender: No OFD packet to send [04:04:43]OFD Sender: No OFD packet to send [04:04:48]OFD Sender: No OFD packet to send [04:04:53]OFD Sender: No OFD packet to send [04:04:58]OFD Sender: No OFD packet to send [04:05:03]OFD Sender: No OFD packet to send [04:05:08]OFD Sender: No OFD packet to send [04:05:13]OFD Sender: No OFD packet to send [04:05:18]OFD Sender: No OFD packet to send [04:05:23]OFD Sender: No OFD packet to send [04:05:28]OFD Sender: No OFD packet to send [04:05:33]OFD Sender: No OFD packet to send [04:05:38]OFD Sender: No OFD packet to send [04:05:43]OFD Sender: No OFD packet to send [04:05:48]OFD Sender: No OFD packet to send [04:05:53]OFD Sender: No OFD packet to send [04:05:58]OFD Sender: No OFD packet to send [04:06:03]OFD Sender: No OFD packet to send [04:06:08]OFD Sender: No OFD packet to send [04:06:13]OFD Sender: No OFD packet to send [04:06:18]OFD Sender: No OFD packet to send [04:06:23]OFD Sender: No OFD packet to send [04:06:28]OFD Sender: No OFD packet to send [04:06:33]OFD Sender: No OFD packet to send [04:06:38]OFD Sender: No OFD packet to send [04:06:43]OFD Sender: No OFD packet to send [04:06:48]OFD Sender: No OFD packet to send [04:06:53]OFD Sender: No OFD packet to send [04:06:58]OFD Sender: No OFD packet to send [04:07:03]OFD Sender: No OFD packet to send [04:07:08]OFD Sender: No OFD packet to send [04:07:13]OFD Sender: No OFD packet to send [04:07:18]OFD Sender: No OFD packet to send [04:07:23]OFD Sender: No OFD packet to send [04:07:28]OFD Sender: No OFD packet to send [04:07:33]OFD Sender: No OFD packet to send [04:07:38]OFD Sender: No OFD packet to send [04:07:43]OFD Sender: No OFD packet to send [04:07:48]OFD Sender: No OFD packet to send [04:07:53]OFD Sender: No OFD packet to send [04:07:58]OFD Sender: No OFD packet to send [04:08:03]OFD Sender: No OFD packet to send [04:08:08]OFD Sender: No OFD packet to send [04:08:13]OFD Sender: No OFD packet to send [04:08:18]OFD Sender: No OFD packet to send [04:08:23]OFD Sender: No OFD packet to send [04:08:28]OFD Sender: No OFD packet to send [04:08:33]OFD Sender: No OFD packet to send [04:08:38]OFD Sender: No OFD packet to send [04:08:43]OFD Sender: No OFD packet to send [04:08:48]OFD Sender: No OFD packet to send [04:08:53]OFD Sender: No OFD packet to send [04:08:58]OFD Sender: No OFD packet to send [04:09:03]OFD Sender: No OFD packet to send [04:09:08]OFD Sender: No OFD packet to send [04:09:13]OFD Sender: No OFD packet to send [04:09:18]OFD Sender: No OFD packet to send [04:09:23]OFD Sender: No OFD packet to send [04:09:28]OFD Sender: No OFD packet to send [04:09:33]OFD Sender: No OFD packet to send [04:09:38]OFD Sender: No OFD packet to send [04:09:43]OFD Sender: No OFD packet to send [04:09:48]OFD Sender: No OFD packet to send [04:09:53]OFD Sender: No OFD packet to send [04:09:58]OFD Sender: No OFD packet to send [04:10:03]OFD Sender: No OFD packet to send [04:10:08]OFD Sender: No OFD packet to send [04:10:13]OFD Sender: No OFD packet to send [04:10:18]OFD Sender: No OFD packet to send [04:10:23]OFD Sender: No OFD packet to send [04:10:28]OFD Sender: No OFD packet to send [04:10:33]OFD Sender: No OFD packet to send [04:10:38]OFD Sender: No OFD packet to send [04:10:43]OFD Sender: No OFD packet to send [04:10:48]OFD Sender: No OFD packet to send [04:10:53]OFD Sender: No OFD packet to send [04:10:58]OFD Sender: No OFD packet to send [04:11:03]OFD Sender: No OFD packet to send [04:11:08]OFD Sender: No OFD packet to send [04:11:13]OFD Sender: No OFD packet to send [04:11:18]OFD Sender: No OFD packet to send [04:11:23]OFD Sender: No OFD packet to send [04:11:28]OFD Sender: No OFD packet to send [04:11:33]OFD Sender: No OFD packet to send [04:11:38]OFD Sender: No OFD packet to send [04:11:43]OFD Sender: No OFD packet to send [04:11:48]OFD Sender: No OFD packet to send [04:11:53]OFD Sender: No OFD packet to send [04:11:58]OFD Sender: No OFD packet to send [04:12:03]OFD Sender: No OFD packet to send [04:12:08]OFD Sender: No OFD packet to send [04:12:13]OFD Sender: No OFD packet to send [04:12:18]OFD Sender: No OFD packet to send [04:12:23]OFD Sender: No OFD packet to send [04:12:28]OFD Sender: No OFD packet to send [04:12:33]OFD Sender: No OFD packet to send [04:12:38]OFD Sender: No OFD packet to send [04:12:43]OFD Sender: No OFD packet to send [04:12:48]OFD Sender: No OFD packet to send [04:12:53]OFD Sender: No OFD packet to send [04:12:58]OFD Sender: No OFD packet to send [04:13:03]OFD Sender: No OFD packet to send [04:13:08]OFD Sender: No OFD packet to send [04:13:13]OFD Sender: No OFD packet to send [04:13:18]OFD Sender: No OFD packet to send [04:13:23]OFD Sender: No OFD packet to send [04:13:28]OFD Sender: No OFD packet to send [04:13:33]OFD Sender: No OFD packet to send [04:13:38]OFD Sender: No OFD packet to send [04:13:43]OFD Sender: No OFD packet to send [04:13:48]OFD Sender: No OFD packet to send [04:13:53]OFD Sender: No OFD packet to send [04:13:58]OFD Sender: No OFD packet to send [04:14:03]OFD Sender: No OFD packet to send [04:14:08]OFD Sender: No OFD packet to send [04:14:13]OFD Sender: No OFD packet to send [04:14:18]OFD Sender: No OFD packet to send [04:14:23]OFD Sender: No OFD packet to send [04:14:28]OFD Sender: No OFD packet to send [04:14:33]OFD Sender: No OFD packet to send [04:14:38]OFD Sender: No OFD packet to send [04:14:43]OFD Sender: No OFD packet to send [04:14:48]OFD Sender: No OFD packet to send [04:14:53]OFD Sender: No OFD packet to send [04:14:58]OFD Sender: No OFD packet to send [04:15:03]OFD Sender: No OFD packet to send [04:15:08]OFD Sender: No OFD packet to send [04:15:13]OFD Sender: No OFD packet to send [04:15:19]OFD Sender: No OFD packet to send [04:15:24]OFD Sender: No OFD packet to send [04:15:29]OFD Sender: No OFD packet to send [04:15:34]OFD Sender: No OFD packet to send [04:15:39]OFD Sender: No OFD packet to send [04:15:44]OFD Sender: No OFD packet to send [04:15:49]OFD Sender: No OFD packet to send [04:15:54]OFD Sender: No OFD packet to send [04:15:59]OFD Sender: No OFD packet to send [04:16:04]OFD Sender: No OFD packet to send [04:16:09]OFD Sender: No OFD packet to send [04:16:14]OFD Sender: No OFD packet to send [04:16:19]OFD Sender: No OFD packet to send [04:16:24]OFD Sender: No OFD packet to send [04:16:29]OFD Sender: No OFD packet to send [04:16:34]OFD Sender: No OFD packet to send [04:16:39]OFD Sender: No OFD packet to send [04:16:44]OFD Sender: No OFD packet to send [04:16:49]OFD Sender: No OFD packet to send [04:16:54]OFD Sender: No OFD packet to send [04:16:59]OFD Sender: No OFD packet to send [04:17:04]OFD Sender: No OFD packet to send [04:17:09]OFD Sender: No OFD packet to send [04:17:14]OFD Sender: No OFD packet to send [04:17:19]OFD Sender: No OFD packet to send [04:17:24]OFD Sender: No OFD packet to send [04:17:29]OFD Sender: No OFD packet to send [04:17:34]OFD Sender: No OFD packet to send [04:17:39]OFD Sender: No OFD packet to send [04:17:44]OFD Sender: No OFD packet to send [04:17:49]OFD Sender: No OFD packet to send [04:17:54]OFD Sender: No OFD packet to send [04:17:59]OFD Sender: No OFD packet to send [04:18:04]OFD Sender: No OFD packet to send [04:18:09]OFD Sender: No OFD packet to send [04:18:14]OFD Sender: No OFD packet to send [04:18:19]OFD Sender: No OFD packet to send [04:18:24]OFD Sender: No OFD packet to send [04:18:29]OFD Sender: No OFD packet to send [04:18:34]OFD Sender: No OFD packet to send [04:18:39]OFD Sender: No OFD packet to send [04:18:44]OFD Sender: No OFD packet to send [04:18:49]OFD Sender: No OFD packet to send [04:18:54]OFD Sender: No OFD packet to send [04:18:59]OFD Sender: No OFD packet to send [04:19:04]OFD Sender: No OFD packet to send [04:19:09]OFD Sender: No OFD packet to send [04:19:14]OFD Sender: No OFD packet to send [04:19:19]OFD Sender: No OFD packet to send [04:19:24]OFD Sender: No OFD packet to send [04:19:29]OFD Sender: No OFD packet to send [04:19:34]OFD Sender: No OFD packet to send [04:19:39]OFD Sender: No OFD packet to send [04:19:44]OFD Sender: No OFD packet to send [04:19:49]OFD Sender: No OFD packet to send [04:19:54]OFD Sender: No OFD packet to send [04:19:59]OFD Sender: No OFD packet to send [04:20:04]OFD Sender: No OFD packet to send [04:20:09]OFD Sender: No OFD packet to send [04:20:14]OFD Sender: No OFD packet to send [04:20:19]OFD Sender: No OFD packet to send [04:20:24]OFD Sender: No OFD packet to send [04:20:29]OFD Sender: No OFD packet to send [04:20:34]OFD Sender: No OFD packet to send [04:20:39]OFD Sender: No OFD packet to send [04:20:44]OFD Sender: No OFD packet to send [04:20:49]OFD Sender: No OFD packet to send [04:20:54]OFD Sender: No OFD packet to send [04:20:59]OFD Sender: No OFD packet to send [04:21:03]accept exits with 9 [04:21:03]New connection [04:21:03]New thread 3066821988 created [04:21:03]Thread 3066965348 joined [04:21:03]Waiting for new connection... [04:21:03] Sock 9.Parse request [04:21:03]Sock 9.Check first char [04:21:03]Sock 9.First char is OK [04:21:03]request: POST /json_proto HTTP/1.0 [04:21:03]Method: POST [04:21:03]URL: /json_proto [04:21:03]Method is POST - this is cgi request [04:21:03]url: /json_proto [04:21:03]query_string will be loaded in cgi processing [04:21:03]execute_cgi json_proto POST (null) [04:21:03]execute_cgi path=json_proto method=POST [04:21:03]POST find Content-Length [04:21:03]Host: 172.17.44.195:8080 [04:21:03]Content-Length: 683 [04:21:03]Content-Type: application/json [04:21:03] [04:21:03]POST finish read [04:21:03]Found Content-Length = 683 [04:21:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962621", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:21:03]execute_script... [04:21: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)1962621", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:21:03]POST & json_proto [04:21:03]process_json_proto [04:21:03]json parsed OK: [04:21:03]protocol is kg_v1.0 [04:21:03]action value=close_receipt [04:21:03]process_action close_receipt [04:21:03]cmd_close_receipt [04:21:03]MH_GetDate [04:21:03]Write to MH i2c: F0 00 00 4E 1C 59 [04:21:03]Write i2c OK [04:21:03]MH_I2C_Read... [04:21:03]Read from MH i2c: F0 [04:21:03]MH_I2C_Read... [04:21:03]Read from MH i2c: F0 09 00 [04:21:03]MH_I2C_Read... [04:21:03]Read from MH i2c: F0 09 00 4E 1C 00 32 85 14 67 82 C9 CF 66 14 [04:21:03]GetLastDocTimeStamp 1729393955 [04:21:03]current date 1729398066 [04:21:03]FM_GetShiftState [04:21:03]SAM_PROTO_GetShiftState [04:21:03]wFMCommunicate request_size=4 [04:21:03]MH_SAM_APDU [04:21:03]CAPDU: 80 13 01 00 [04:21:03]Write to MH i2c: E2 08 00 4F 1C 80 13 01 00 00 00 00 00 E8 [04:21:03]Write i2c OK [04:21:03]MH_I2C_Read... [04:21:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:21:03]Read from MH i2c: E2 [04:21:03]MH_I2C_Read... [04:21:03]Read from MH i2c: E2 0E 00 [04:21:03]MH_I2C_Read... [04:21:03]Read from MH i2c: E2 0E 00 4F 1C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 02 [04:21:03]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [04:21:03]wFMCommunicate OK [04:21:03]SAM_PROTO_GetShiftState done [04:21:03]FM_GetShiftState done [04:21:03]opened in 1729383750 [04:21:03]opened+sec_in_day 1729470150 [04:21:03]quantity*price = 100015 [04:21:03]sum+1 = 100017 [04:21:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 18 20.10.2024 04:21 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227170 ФПД: 152088160786377 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T042106&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227170&fm=152088160786377&tin=02508201610067®Number=0000000000091685&sum=100000 [04:21:04]StoreToDocumentArchive [04:21:04]shift 533 fd 227170 [04:21:04]save to /storage/0533/doc_00227170 [04:21:04]save last doc name /storage/0533/doc_00227170 to /storage/kkm_last_doc_name [04:21:04]save OK [04:21:04]Clear old archive folders... [04:21:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:21:04]tlvbuf is 00517130 [04:21:04]SAM_PROTO_ClearQueue [04:21:04]wFMCommunicate request_size=4 [04:21:04]MH_SAM_APDU [04:21:04]CAPDU: 80 09 00 00 [04:21:04]Write to MH i2c: E2 08 00 5C 1C 80 09 00 00 00 00 00 00 EA [04:21:04]Write i2c OK [04:21:04]MH_I2C_Read... [04:21:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:21:04]Read from MH i2c: E2 [04:21:04]MH_I2C_Read... [04:21:04]Read from MH i2c: E2 03 00 [04:21:04]MH_I2C_Read... [04:21:04]Read from MH i2c: E2 03 00 5C 1C 00 90 00 EC [04:21:04]RAPDU: 90 00 [04:21:04]wFMCommunicate OK [04:21:04]SAM_PROTO_ClearQueue done [04:21:04]KKMCreateOFDPacket [04:21:04]OFDProtocolAddRootSTLVToBuf [04:21:04]FM_MakeSignedData [04:21:04]FM_MakeSignedData [04:21:04]SAM_PROTO_SignData [04:21:04]wFMCommunicate request_size=4 [04:21:04]MH_SAM_APDU [04:21:04]CAPDU: 80 0D 01 02 [04:21:04]Write to MH i2c: E2 08 00 5D 1C 80 0D 01 02 00 00 00 00 F2 [04:21:04]Write i2c OK [04:21:04]MH_I2C_Read... [04:21:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:21:05]Read from MH i2c: E2 [04:21:05]MH_I2C_Read... [04:21:05]Read from MH i2c: E2 03 00 [04:21:05]MH_I2C_Read... [04:21:05]Read from MH i2c: E2 03 00 5D 1C 00 90 00 ED [04:21:05]RAPDU: 90 00 [04:21:05]wFMCommunicate OK [04:21:05]wFMCommunicate request_size=255 [04:21:05]MH_SAM_APDU [04:21:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 32 85 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 62 77 03 00 35 04 06 00 8A [04:21:05]Write to MH i2c: E2 02 01 5E 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 32 85 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 62 77 03 00 35 04 06 00 8A 00 00 44 [04:21:05]Write i2c OK [04:21:05]MH_I2C_Read... [04:21:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:21:05]Read from MH i2c: E2 [04:21:05]MH_I2C_Read... [04:21:05]Read from MH i2c: E2 03 00 [04:21:05]MH_I2C_Read... [04:21:05]Read from MH i2c: E2 03 00 5E 1C 00 90 00 EE [04:21:05]RAPDU: 90 00 [04:21:05]wFMCommunicate OK [04:21:05]wFMCommunicate request_size=10 [04:21:05]MH_SAM_APDU [04:21:05]CAPDU: 80 0D 02 02 05 52 C8 CC 57 C9 [04:21:05]Write to MH i2c: E2 0D 00 5F 1C 80 0D 02 02 05 00 52 C8 CC 57 C9 00 00 05 [04:21:05]Write i2c OK [04:21:05]MH_I2C_Read... [04:21:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:21:05]Read from MH i2c: E2 [04:21:05]MH_I2C_Read... [04:21:05]Read from MH i2c: E2 03 00 [04:21:05]MH_I2C_Read... [04:21:05]Read from MH i2c: E2 03 00 5F 1C 00 90 00 EF [04:21:05]RAPDU: 90 00 [04:21:05]wFMCommunicate OK [04:21:05]wFMCommunicate request_size=4 [04:21:05]MH_SAM_APDU [04:21:05]CAPDU: 80 0D 03 02 [04:21:05]Write to MH i2c: E2 08 00 60 1C 80 0D 03 02 00 00 00 00 F7 [04:21:05]Write i2c OK [04:21:05]MH_I2C_Read... [04:21:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:21:05]Read from MH i2c: E2 [04:21:05]MH_I2C_Read... [04:21:05]Read from MH i2c: E2 0B 00 [04:21:05]MH_I2C_Read... [04:21:05]Read from MH i2c: E2 0B 00 60 1C 00 A9 F9 CB 5B CE 99 9C 7A 90 00 3D [04:21:05]RAPDU: A9 F9 CB 5B CE 99 9C 7A 90 00 [04:21:05]wFMCommunicate OK [04:21:05]SAM_PROTO_SignData done [04:21:05]FM_MakeSignedData done [04:21:05]CreateOFDProtocolMessage [04:21:05]wFMCommunicate request_size=4 [04:21:05]MH_SAM_APDU [04:21:05]CAPDU: 80 11 00 00 [04:21:05]Write to MH i2c: E2 08 00 61 1C 80 11 00 00 00 00 00 00 F7 [04:21:05]Write i2c OK [04:21:05]MH_I2C_Read... [04:21:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:21:05]Read from MH i2c: E2 [04:21:05]MH_I2C_Read... [04:21:05]Read from MH i2c: E2 17 00 [04:21:05]MH_I2C_Read... [04:21:05]Read from MH i2c: E2 17 00 61 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 4E [04:21:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [04:21:05]wFMCommunicate OK [04:21:05]CreateOFDProtocolMessage done [04:21:05]OFDSenderStorePacket 227170 [04:21:05]StoreOFDPacket docnum=227170 [04:21:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 97 83 07 01 00 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 32 85 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 62 77 03 00 35 04 06 00 8A 52 C8 CC 57 C9 A9 F9 CB 5B CE 99 9C 7A [04:21:05]CheckFolder [04:21:05]dirname=/storage/ofd_packets [04:21:05]CheckFolder done [04:21:05]ProducePacketName [04:21:05]name=ofd_packets/00227170 [04:21:05]NVStorageSaveData ofd_packets/00227170 [04:21:05]File name is /storage/ofd_packets/00227170 [04:21:05]Write 301 bytes [04:21:05]NVStorageSaveData done [04:21:05]OFDSenderStorePacket done [04:21:05]KKMCreateOFDPacket done [04:21:05]NVStorageSaveData kkm_last_timestamp [04:21:05]File name is /storage/kkm_last_timestamp [04:21:05]Write 4 bytes [04:21:05]NVStorageSaveData done [04:21:05]ExternCall_PrintAddStr [04:21:05]wPrintStart [04:21:05]Write to MH i2c: 01 00 00 62 1C 7E [04:21:05]Write i2c OK [04:21:05]MH_I2C_Read... [04:21:05]Read from MH i2c: 01 [04:21:05]MH_I2C_Read... [04:21:05]Read from MH i2c: 01 07 00 [04:21:05]MH_I2C_Read... [04:21:05]Read from MH i2c: 01 07 00 62 1C 00 00 00 00 00 FF 0F 93 [04:21:05]RasterBufferAndPrint [04:21:05]line Счет N : (1)1962621 [04:21:05]line ИНН: 02508201610067 [04:21:05]line Контрольно-Кассовый Чек [04:21:05]line ПРОДАЖА [04:21:05]line ТРК (МРК, ГНК) : 43 [04:21:05]line Товар: 2710124130 [04:21:05]line Аи-92-К-5 [04:21:05]line 14.950 * 66.90 [04:21:05]line = 1000.16 [04:21:05]line НДС 12% НСП 1% [04:21:05]line > о реализуемом товаре [04:21:05]line ОКРУГЛЕНИЕ: -0.16 [04:21:05]line ИТОГО: 1000.00 [04:21:05]line Внесено: 1000.00 [04:21:05]line СДАЧА: 0.00 [04:21:05]line НСП 1% : 8.85 [04:21:05]line НДС 12% : 106.21 [04:21:05]line Наличными: 1000.00 [04:21:05]line Безнал.: 0.00 [04:21:05]line Место: АЗС № 133 "Партнер Нефть" [04:21:05]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [04:21:05]line СНО: Общий режим [04:21:05]line Чек 18 20.10.2024 04:21 [04:21:05]line Смена: 533 ФФД: 1.0 [04:21:05]line ЗНМ: 0300000091 [04:21:05]line РНМ: 0000000000091685 [04:21:05]line Версия ККМ: 001 [04:21:05]line ФМ: 0000000000871839 [04:21:05]line ФД: 227170 [04:21:05]line ФПД: 152088160786377 [04:21:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T042106&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227170&fm=152088160786377&tin=02508201610067®Number=0000000000091685&sum=100000 [04:21:05]written 0, free lines is 4095 [04:21:05]OFD Sender: Processing packet 227170 [packets to send 38, broken 37] [04:21:05]ProducePacketName [04:21:05]name=ofd_packets/00227170 [04:21:05]OFD Sender: To server: pG, [04:21:05]CommunicateWithHost lk.salyk.kg:30040 [04:21:05]ConnectInit lk.salyk.kg [04:21:05]Connected sock=10 [04:21: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 33 39 0F 01 00 00 97 83 07 01 00 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 32 85 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 62 77 03 00 35 04 06 00 8A 52 C8 CC 57 C9 A9 F9 CB 5B CE 99 9C 7A [04:21: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 33 39 4F 00 00 00 40 75 47 00 9A 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 33 39 10 04 04 00 62 77 03 00 F4 03 04 00 32 30 14 67 B6 04 01 00 00 DE C4 76 83 33 A3 C4 57 [04:21:06]CommunicateWithHost err = 0 [04:21:06]CheckOFDResponse [04:21:06]1017 (14) - 77093643461234 [04:21:06]1041 (16) - 0000000000871839 [04:21:06]1040 (4) - 227170 [04:21:06]1012 (4) - 19.10.2024 22:18 [04:21:06]1206 (1) - 0 [04:21:06]OFD Sender: Remove packet 227170 [04:21:06]ProducePacketName [04:21:06]name=ofd_packets/00227170 [04:21:06]NVStorageDeleteData [04:21:06]Write to MH i2c: 01 00 00 8C 1C A8 [04:21:06]Write i2c OK [04:21:06]MH_I2C_Read... [04:21:06]Read from MH i2c: 01 [04:21:06]MH_I2C_Read... [04:21:06]Read from MH i2c: 01 07 00 [04:21:06]MH_I2C_Read... [04:21:06]Read from MH i2c: 01 07 00 8C 1C 00 00 00 00 00 FE 0C B9 [04:21:06]RasterBufferAndPrint [04:21:06]line [04:21:06]line [04:21:06]line [04:21:06]line [04:21:06]line [04:21:06]written 0, free lines is 3335 [04:21:06]process_action close_receipt done [04:21:06]requested_data is exist [04:21:06]produce_requested_data [04:21:06]requested_item fm.sn is exist - process it [04:21:06]wFMCommunicate request_size=4 [04:21:06]MH_SAM_APDU [04:21:06]CAPDU: 80 11 00 00 [04:21:06]Write to MH i2c: E2 08 00 93 1C 80 11 00 00 00 00 00 00 29 [04:21:06]Write i2c OK [04:21:06]MH_I2C_Read... [04:21:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:21:06]Read from MH i2c: E2 [04:21:06]MH_I2C_Read... [04:21:06]Read from MH i2c: E2 17 00 [04:21:06]MH_I2C_Read... [04:21:06]Read from MH i2c: E2 17 00 93 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 80 [04:21:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [04:21:06]wFMCommunicate OK [04:21:06]requested_item fd.num is exist - process it [04:21:06]SAM_PROTO_GetFieldsCounters [04:21:06]wFMCommunicate request_size=4 [04:21:06]MH_SAM_APDU [04:21:06]CAPDU: 80 13 00 00 [04:21:06]Write to MH i2c: E2 08 00 94 1C 80 13 00 00 00 00 00 00 2C [04:21:06]Write i2c OK [04:21:06]MH_I2C_Read... [04:21:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:21:06]Read from MH i2c: E2 [04:21:06]MH_I2C_Read... [04:21:06]Read from MH i2c: E2 62 00 [04:21:06]MH_I2C_Read... [04:21:06]Read from MH i2c: E2 62 00 94 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 62 77 03 00 0E 04 04 00 15 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 7E [04:21:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 62 77 03 00 0E 04 04 00 15 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 [04:21:06]wFMCommunicate OK [04:21:06]SAM_PROTO_GetFieldsCounters done [04:21:06]requested_item shift.num is exist - process it [04:21:06]requested_item shift.opened is exist - process it [04:21:06]req_shift_opened [04:21:06]FM_GetShiftState [04:21:06]SAM_PROTO_GetShiftState [04:21:06]wFMCommunicate request_size=4 [04:21:06]MH_SAM_APDU [04:21:06]CAPDU: 80 13 01 00 [04:21:06]Write to MH i2c: E2 08 00 95 1C 80 13 01 00 00 00 00 00 2E [04:21:06]Write i2c OK [04:21:06]MH_I2C_Read... [04:21:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:21:06]Read from MH i2c: E2 [04:21:06]MH_I2C_Read... [04:21:06]Read from MH i2c: E2 0E 00 [04:21:06]MH_I2C_Read... [04:21:06]Read from MH i2c: E2 0E 00 95 1C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 48 [04:21:06]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [04:21:06]wFMCommunicate OK [04:21:06]SAM_PROTO_GetShiftState done [04:21:06]FM_GetShiftState done [04:21:06]req_shift_opened done [04:21:06]requested_item shift.open_date is exist - process it [04:21:06]req_shift_open_date [04:21:06]req_shift_open_date done [04:21:06]produce_requested_data done [04:21:06]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227170,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [04:21:06]process_action_free close_receipt [04:21:06]json_value_free [04:21:06]json_value_free done [04:21:06]process_json_proto returns [04:21:06]Send response to host [04:21:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227170,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [04:21:06]free response buf [04:21:06]execute_script done [04:21:06]execute_script returns [04:21:06]free content buf [04:21:06]Sock 9.Close socket [04:21:06]Sock 9.Thread stoped [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:20]accept exits with 8 [04:25:20]New connection [04:25:20]New thread 3066965348 created [04:25:20]Thread 3066821988 joined [04:25:20]Waiting for new connection... [04:25:20] Sock 8.Parse request [04:25:20]Sock 8.Check first char [04:25:20]Sock 8.First char is OK [04:25:20]request: POST /json_proto HTTP/1.0 [04:25:20]Method: POST [04:25:20]URL: /json_proto [04:25:20]Method is POST - this is cgi request [04:25:20]url: /json_proto [04:25:20]query_string will be loaded in cgi processing [04:25:20]execute_cgi json_proto POST (null) [04:25:20]execute_cgi path=json_proto method=POST [04:25:20]POST find Content-Length [04:25:20]Host: 172.17.44.195:8080 [04:25:20]Content-Length: 680 [04:25:20]Content-Type: application/json [04:25:20] [04:25:20]POST finish read [04:25:20]Found Content-Length = 680 [04:25:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962622", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:25:20]execute_script... [04:25: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)1962622", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:25:20]POST & json_proto [04:25:20]process_json_proto [04:25:20]json parsed OK: [04:25:20]protocol is kg_v1.0 [04:25:20]action value=close_receipt [04:25:20]process_action close_receipt [04:25:20]cmd_close_receipt [04:25:20]MH_GetDate [04:25:20]Write to MH i2c: F0 00 00 96 1C A1 [04:25:20]Write i2c OK [04:25:20]MH_I2C_Read... [04:25:20]Read from MH i2c: F0 [04:25:20]MH_I2C_Read... [04:25:20]Read from MH i2c: F0 09 00 [04:25:20]MH_I2C_Read... [04:25:20]Read from MH i2c: F0 09 00 96 1C 00 33 86 14 67 82 C9 CF 66 5E [04:25:20]GetLastDocTimeStamp 1729398066 [04:25:20]current date 1729398323 [04:25:20]FM_GetShiftState [04:25:20]SAM_PROTO_GetShiftState [04:25:20]wFMCommunicate request_size=4 [04:25:20]MH_SAM_APDU [04:25:20]CAPDU: 80 13 01 00 [04:25:20]Write to MH i2c: E2 08 00 97 1C 80 13 01 00 00 00 00 00 30 [04:25:20]Write i2c OK [04:25:20]MH_I2C_Read... [04:25:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:25:20]Read from MH i2c: E2 [04:25:20]MH_I2C_Read... [04:25:20]Read from MH i2c: E2 0E 00 [04:25:20]MH_I2C_Read... [04:25:20]Read from MH i2c: E2 0E 00 97 1C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 4A [04:25:20]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [04:25:20]wFMCommunicate OK [04:25:20]SAM_PROTO_GetShiftState done [04:25:20]FM_GetShiftState done [04:25:20]opened in 1729383750 [04:25:20]opened+sec_in_day 1729470150 [04:25:20]quantity*price = 150037 [04:25:20]sum+1 = 150039 [04:25:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 19 20.10.2024 04:25 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227171 ФПД: 104070695844208 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T042523&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227171&fm=104070695844208&tin=02508201610067®Number=0000000000091685&sum=150000 [04:25:21]StoreToDocumentArchive [04:25:21]shift 533 fd 227171 [04:25:21]save to /storage/0533/doc_00227171 [04:25:21]save last doc name /storage/0533/doc_00227171 to /storage/kkm_last_doc_name [04:25:21]save OK [04:25:21]Clear old archive folders... [04:25:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [04:25:21]tlvbuf is B6F5B230 [04:25:21]SAM_PROTO_ClearQueue [04:25:21]wFMCommunicate request_size=4 [04:25:21]MH_SAM_APDU [04:25:21]CAPDU: 80 09 00 00 [04:25:21]Write to MH i2c: E2 08 00 A4 1C 80 09 00 00 00 00 00 00 32 [04:25:21]Write i2c OK [04:25:21]MH_I2C_Read... [04:25:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:25:21]Read from MH i2c: E2 [04:25:21]MH_I2C_Read... [04:25:21]Read from MH i2c: E2 03 00 [04:25:21]MH_I2C_Read... [04:25:21]Read from MH i2c: E2 03 00 A4 1C 00 90 00 34 [04:25:21]RAPDU: 90 00 [04:25:21]wFMCommunicate OK [04:25:21]SAM_PROTO_ClearQueue done [04:25:21]KKMCreateOFDPacket [04:25:21]OFDProtocolAddRootSTLVToBuf [04:25:21]FM_MakeSignedData [04:25:21]FM_MakeSignedData [04:25:21]SAM_PROTO_SignData [04:25:21]wFMCommunicate request_size=4 [04:25:21]MH_SAM_APDU [04:25:21]CAPDU: 80 0D 01 02 [04:25:21]Write to MH i2c: E2 08 00 A5 1C 80 0D 01 02 00 00 00 00 3A [04:25:21]Write i2c OK [04:25:21]MH_I2C_Read... [04:25:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:25:21]Read from MH i2c: E2 [04:25:21]MH_I2C_Read... [04:25:21]Read from MH i2c: E2 03 00 [04:25:21]MH_I2C_Read... [04:25:21]Read from MH i2c: E2 03 00 A5 1C 00 90 00 35 [04:25:21]RAPDU: 90 00 [04:25:21]wFMCommunicate OK [04:25:21]wFMCommunicate request_size=255 [04:25:21]MH_SAM_APDU [04:25:21]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 33 86 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 63 77 03 00 35 04 06 00 5E A6 D8 DB [04:25:21]Write to MH i2c: E2 02 01 A6 1C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 33 86 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 63 77 03 00 35 04 06 00 5E A6 D8 DB 00 00 30 [04:25:21]Write i2c OK [04:25:21]MH_I2C_Read... [04:25:21]OFD Sender: No OFD packet to send [04:25:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:25:21]Read from MH i2c: E2 [04:25:21]MH_I2C_Read... [04:25:21]Read from MH i2c: E2 03 00 [04:25:21]MH_I2C_Read... [04:25:21]Read from MH i2c: E2 03 00 A6 1C 00 90 00 36 [04:25:21]RAPDU: 90 00 [04:25:21]wFMCommunicate OK [04:25:21]wFMCommunicate request_size=7 [04:25:21]MH_SAM_APDU [04:25:21]CAPDU: 80 0D 02 02 02 79 70 [04:25:21]Write to MH i2c: E2 0A 00 A7 1C 80 0D 02 02 02 00 79 70 00 00 2A [04:25:21]Write i2c OK [04:25:21]MH_I2C_Read... [04:25:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:25:21]Read from MH i2c: E2 [04:25:21]MH_I2C_Read... [04:25:21]Read from MH i2c: E2 03 00 [04:25:21]MH_I2C_Read... [04:25:21]Read from MH i2c: E2 03 00 A7 1C 00 90 00 37 [04:25:21]RAPDU: 90 00 [04:25:21]wFMCommunicate OK [04:25:21]wFMCommunicate request_size=4 [04:25:21]MH_SAM_APDU [04:25:21]CAPDU: 80 0D 03 02 [04:25:21]Write to MH i2c: E2 08 00 A8 1C 80 0D 03 02 00 00 00 00 3F [04:25:21]Write i2c OK [04:25:21]MH_I2C_Read... [04:25:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:25:21]Read from MH i2c: E2 [04:25:21]MH_I2C_Read... [04:25:21]Read from MH i2c: E2 0B 00 [04:25:21]MH_I2C_Read... [04:25:21]Read from MH i2c: E2 0B 00 A8 1C 00 F4 6B 19 D1 7C 0E A2 A5 90 00 5A [04:25:21]RAPDU: F4 6B 19 D1 7C 0E A2 A5 90 00 [04:25:21]wFMCommunicate OK [04:25:21]SAM_PROTO_SignData done [04:25:21]FM_MakeSignedData done [04:25:21]CreateOFDProtocolMessage [04:25:21]wFMCommunicate request_size=4 [04:25:21]MH_SAM_APDU [04:25:21]CAPDU: 80 11 00 00 [04:25:21]Write to MH i2c: E2 08 00 A9 1C 80 11 00 00 00 00 00 00 3F [04:25:21]Write i2c OK [04:25:21]MH_I2C_Read... [04:25:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:25:22]Read from MH i2c: E2 [04:25:22]MH_I2C_Read... [04:25:22]Read from MH i2c: E2 17 00 [04:25:22]MH_I2C_Read... [04:25:22]Read from MH i2c: E2 17 00 A9 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 96 [04:25:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [04:25:22]wFMCommunicate OK [04:25:22]CreateOFDProtocolMessage done [04:25:22]OFDSenderStorePacket 227171 [04:25:22]StoreOFDPacket docnum=227171 [04:25:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 35 C9 04 01 71 6C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 33 86 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 63 77 03 00 35 04 06 00 5E A6 D8 DB 79 70 F4 6B 19 D1 7C 0E A2 A5 [04:25:22]CheckFolder [04:25:22]dirname=/storage/ofd_packets [04:25:22]CheckFolder done [04:25:22]ProducePacketName [04:25:22]name=ofd_packets/00227171 [04:25:22]NVStorageSaveData ofd_packets/00227171 [04:25:22]File name is /storage/ofd_packets/00227171 [04:25:22]Write 298 bytes [04:25:22]NVStorageSaveData done [04:25:22]OFDSenderStorePacket done [04:25:22]KKMCreateOFDPacket done [04:25:22]NVStorageSaveData kkm_last_timestamp [04:25:22]File name is /storage/kkm_last_timestamp [04:25:22]Write 4 bytes [04:25:22]NVStorageSaveData done [04:25:22]ExternCall_PrintAddStr [04:25:22]wPrintStart [04:25:22]Write to MH i2c: 01 00 00 AA 1C C6 [04:25:22]Write i2c OK [04:25:22]MH_I2C_Read... [04:25:22]Read from MH i2c: 01 [04:25:22]MH_I2C_Read... [04:25:22]Read from MH i2c: 01 07 00 [04:25:22]MH_I2C_Read... [04:25:22]Read from MH i2c: 01 07 00 AA 1C 00 00 00 00 00 FF 0F DB [04:25:22]RasterBufferAndPrint [04:25:22]line Счет N : (1)1962622 [04:25:22]line ИНН: 02508201610067 [04:25:22]line Контрольно-Кассовый Чек [04:25:22]line ПРОДАЖА [04:25:22]line ТРК (МРК, ГНК) : 31 [04:25:22]line Товар: 2710194210 [04:25:22]line ДТ-К-5 [04:25:22]line 19.690 * 76.20 [04:25:22]line = 1500.38 [04:25:22]line НДС 12% НСП 1% [04:25:22]line > о реализуемом товаре [04:25:22]line ОКРУГЛЕНИЕ: -0.38 [04:25:22]line ИТОГО: 1500.00 [04:25:22]line Внесено: 1500.00 [04:25:22]line СДАЧА: 0.00 [04:25:22]line НСП 1% : 13.28 [04:25:22]line НДС 12% : 159.33 [04:25:22]line Наличными: 1500.00 [04:25:22]line Безнал.: 0.00 [04:25:22]line Место: АЗС № 133 "Партнер Нефть" [04:25:22]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [04:25:22]line СНО: Общий режим [04:25:22]line Чек 19 20.10.2024 04:25 [04:25:22]line Смена: 533 ФФД: 1.0 [04:25:22]line ЗНМ: 0300000091 [04:25:22]line РНМ: 0000000000091685 [04:25:22]line Версия ККМ: 001 [04:25:22]line ФМ: 0000000000871839 [04:25:22]line ФД: 227171 [04:25:22]line ФПД: 104070695844208 [04:25:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T042523&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227171&fm=104070695844208&tin=02508201610067®Number=0000000000091685&sum=150000 [04:25:22]OFD Sender: Processing packet 227171 [packets to send 38, broken 37] [04:25:22]ProducePacketName [04:25:22]name=ofd_packets/00227171 [04:25:22]OFD Sender: To server: pG, [04:25:22]CommunicateWithHost lk.salyk.kg:30040 [04:25:22]ConnectInit lk.salyk.kg [04:25:22]written 0, free lines is 4095 [04:25:22]Connected sock=10 [04:25:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 35 C9 04 01 71 6C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 33 86 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 63 77 03 00 35 04 06 00 5E A6 D8 DB 79 70 F4 6B 19 D1 7C 0E A2 A5 [04:25: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 33 39 4F 00 00 00 8E 36 47 00 D3 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 63 77 03 00 F4 03 04 00 33 31 14 67 B6 04 01 00 00 7E 36 15 42 4D BC 96 4E [04:25:22]CommunicateWithHost err = 0 [04:25:22]CheckOFDResponse [04:25:22]1017 (14) - 77093643461234 [04:25:22]1041 (16) - 0000000000871839 [04:25:22]1040 (4) - 227171 [04:25:22]1012 (4) - 19.10.2024 22:22 [04:25:22]1206 (1) - 0 [04:25:22]OFD Sender: Remove packet 227171 [04:25:22]ProducePacketName [04:25:22]name=ofd_packets/00227171 [04:25:22]NVStorageDeleteData [04:25:22]Write to MH i2c: 01 00 00 D4 1C F0 [04:25:22]Write i2c OK [04:25:22]MH_I2C_Read... [04:25:22]Read from MH i2c: 01 [04:25:22]MH_I2C_Read... [04:25:22]Read from MH i2c: 01 07 00 [04:25:22]MH_I2C_Read... [04:25:22]Read from MH i2c: 01 07 00 D4 1C 00 00 00 00 00 0E 0D 12 [04:25:22]RasterBufferAndPrint [04:25:22]line [04:25:22]line [04:25:22]line [04:25:22]line [04:25:22]line [04:25:22]written 0, free lines is 3348 [04:25:22]process_action close_receipt done [04:25:22]requested_data is exist [04:25:22]produce_requested_data [04:25:22]requested_item fm.sn is exist - process it [04:25:22]wFMCommunicate request_size=4 [04:25:22]MH_SAM_APDU [04:25:22]CAPDU: 80 11 00 00 [04:25:22]Write to MH i2c: E2 08 00 DB 1C 80 11 00 00 00 00 00 00 71 [04:25:22]Write i2c OK [04:25:22]MH_I2C_Read... [04:25:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:25:22]Read from MH i2c: E2 [04:25:22]MH_I2C_Read... [04:25:22]Read from MH i2c: E2 17 00 [04:25:22]MH_I2C_Read... [04:25:22]Read from MH i2c: E2 17 00 DB 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C8 [04:25:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [04:25:22]wFMCommunicate OK [04:25:22]requested_item fd.num is exist - process it [04:25:22]SAM_PROTO_GetFieldsCounters [04:25:22]wFMCommunicate request_size=4 [04:25:22]MH_SAM_APDU [04:25:22]CAPDU: 80 13 00 00 [04:25:22]Write to MH i2c: E2 08 00 DC 1C 80 13 00 00 00 00 00 00 74 [04:25:22]Write i2c OK [04:25:22]MH_I2C_Read... [04:25:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:25:23]Read from MH i2c: E2 [04:25:23]MH_I2C_Read... [04:25:23]Read from MH i2c: E2 62 00 [04:25:23]MH_I2C_Read... [04:25:23]Read from MH i2c: E2 62 00 DC 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 63 77 03 00 0E 04 04 00 15 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 CA [04:25:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 63 77 03 00 0E 04 04 00 15 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 [04:25:23]wFMCommunicate OK [04:25:23]SAM_PROTO_GetFieldsCounters done [04:25:23]requested_item shift.num is exist - process it [04:25:23]requested_item shift.opened is exist - process it [04:25:23]req_shift_opened [04:25:23]FM_GetShiftState [04:25:23]SAM_PROTO_GetShiftState [04:25:23]wFMCommunicate request_size=4 [04:25:23]MH_SAM_APDU [04:25:23]CAPDU: 80 13 01 00 [04:25:23]Write to MH i2c: E2 08 00 DD 1C 80 13 01 00 00 00 00 00 76 [04:25:23]Write i2c OK [04:25:23]MH_I2C_Read... [04:25:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:25:23]Read from MH i2c: E2 [04:25:23]MH_I2C_Read... [04:25:23]Read from MH i2c: E2 0E 00 [04:25:23]MH_I2C_Read... [04:25:23]Read from MH i2c: E2 0E 00 DD 1C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 90 [04:25:23]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [04:25:23]wFMCommunicate OK [04:25:23]SAM_PROTO_GetShiftState done [04:25:23]FM_GetShiftState done [04:25:23]req_shift_opened done [04:25:23]requested_item shift.open_date is exist - process it [04:25:23]req_shift_open_date [04:25:23]req_shift_open_date done [04:25:23]produce_requested_data done [04:25:23]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227171,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [04:25:23]process_action_free close_receipt [04:25:23]json_value_free [04:25:23]json_value_free done [04:25:23]process_json_proto returns [04:25:23]Send response to host [04:25:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227171,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [04:25:23]free response buf [04:25:23]execute_script done [04:25:23]execute_script returns [04:25:23]free content buf [04:25:23]Sock 8.Close socket [04:25:23]Sock 8.Thread stoped [04:25:23]OFD Sender: No OFD packet to send [04:25:28]OFD Sender: No OFD packet to send [04:25:33]OFD Sender: No OFD packet to send [04:25:38]OFD Sender: No OFD packet to send [04:25:43]OFD Sender: No OFD packet to send [04:25:48]OFD Sender: No OFD packet to send [04:25:53]OFD Sender: No OFD packet to send [04:25:58]OFD Sender: No OFD packet to send [04:26:03]OFD Sender: No OFD packet to send [04:26:08]OFD Sender: No OFD packet to send [04:26:13]OFD Sender: No OFD packet to send [04:26:18]OFD Sender: No OFD packet to send [04:26:23]OFD Sender: No OFD packet to send [04:26:28]OFD Sender: No OFD packet to send [04:26:33]OFD Sender: No OFD packet to send [04:26:38]OFD Sender: No OFD packet to send [04:26:43]OFD Sender: No OFD packet to send [04:26:48]OFD Sender: No OFD packet to send [04:26:53]OFD Sender: No OFD packet to send [04:26:58]OFD Sender: No OFD packet to send [04:27:03]OFD Sender: No OFD packet to send [04:27:08]OFD Sender: No OFD packet to send [04:27:13]OFD Sender: No OFD packet to send [04:27:18]OFD Sender: No OFD packet to send [04:27:23]OFD Sender: No OFD packet to send [04:27:28]OFD Sender: No OFD packet to send [04:27:33]OFD Sender: No OFD packet to send [04:27:38]OFD Sender: No OFD packet to send [04:27:43]OFD Sender: No OFD packet to send [04:27:48]OFD Sender: No OFD packet to send [04:27:53]OFD Sender: No OFD packet to send [04:27:58]OFD Sender: No OFD packet to send [04:28:03]OFD Sender: No OFD packet to send [04:28:08]OFD Sender: No OFD packet to send [04:28:13]OFD Sender: No OFD packet to send [04:28:18]OFD Sender: No OFD packet to send [04:28:23]OFD Sender: No OFD packet to send [04:28:28]OFD Sender: No OFD packet to send [04:28:33]OFD Sender: No OFD packet to send [04:28:38]OFD Sender: No OFD packet to send [04:28:43]OFD Sender: No OFD packet to send [04:28:48]OFD Sender: No OFD packet to send [04:28:53]OFD Sender: No OFD packet to send [04:28:58]OFD Sender: No OFD packet to send [04:29:03]OFD Sender: No OFD packet to send [04:29:08]OFD Sender: No OFD packet to send [04:29:13]OFD Sender: No OFD packet to send [04:29:18]OFD Sender: No OFD packet to send [04:29:23]OFD Sender: No OFD packet to send [04:29:28]OFD Sender: No OFD packet to send [04:29:33]OFD Sender: No OFD packet to send [04:29:38]OFD Sender: No OFD packet to send [04:29:43]OFD Sender: No OFD packet to send [04:29:48]OFD Sender: No OFD packet to send [04:29:53]OFD Sender: No OFD packet to send [04:29:58]OFD Sender: No OFD packet to send [04:30:03]OFD Sender: No OFD packet to send [04:30:08]OFD Sender: No OFD packet to send [04:30:13]OFD Sender: No OFD packet to send [04:30:18]OFD Sender: No OFD packet to send [04:30:23]OFD Sender: No OFD packet to send [04:30:28]OFD Sender: No OFD packet to send [04:30:33]OFD Sender: No OFD packet to send [04:30:38]OFD Sender: No OFD packet to send [04:30:43]OFD Sender: No OFD packet to send [04:30:48]OFD Sender: No OFD packet to send [04:30:53]OFD Sender: No OFD packet to send [04:30:58]OFD Sender: No OFD packet to send [04:31:03]OFD Sender: No OFD packet to send [04:31:08]OFD Sender: No OFD packet to send [04:31:13]OFD Sender: No OFD packet to send [04:31:18]OFD Sender: No OFD packet to send [04:31:23]OFD Sender: No OFD packet to send [04:31:28]OFD Sender: No OFD packet to send [04:31:33]OFD Sender: No OFD packet to send [04:31:38]OFD Sender: No OFD packet to send [04:31:43]OFD Sender: No OFD packet to send [04:31:48]OFD Sender: No OFD packet to send [04:31:53]OFD Sender: No OFD packet to send [04:31:58]OFD Sender: No OFD packet to send [04:32:03]OFD Sender: No OFD packet to send [04:32:08]OFD Sender: No OFD packet to send [04:32:13]OFD Sender: No OFD packet to send [04:32:18]OFD Sender: No OFD packet to send [04:32:23]OFD Sender: No OFD packet to send [04:32:28]OFD Sender: No OFD packet to send [04:32:33]OFD Sender: No OFD packet to send [04:32:38]OFD Sender: No OFD packet to send [04:32:43]OFD Sender: No OFD packet to send [04:32:48]OFD Sender: No OFD packet to send [04:32:53]OFD Sender: No OFD packet to send [04:32:58]OFD Sender: No OFD packet to send [04:33:03]OFD Sender: No OFD packet to send [04:33:08]OFD Sender: No OFD packet to send [04:33:13]OFD Sender: No OFD packet to send [04:33:18]OFD Sender: No OFD packet to send [04:33:23]OFD Sender: No OFD packet to send [04:33:28]OFD Sender: No OFD packet to send [04:33:33]OFD Sender: No OFD packet to send [04:33:38]OFD Sender: No OFD packet to send [04:33:43]OFD Sender: No OFD packet to send [04:33:48]OFD Sender: No OFD packet to send [04:33:53]OFD Sender: No OFD packet to send [04:33:58]OFD Sender: No OFD packet to send [04:34:03]OFD Sender: No OFD packet to send [04:34:08]OFD Sender: No OFD packet to send [04:34:13]OFD Sender: No OFD packet to send [04:34:18]OFD Sender: No OFD packet to send [04:34:23]OFD Sender: No OFD packet to send [04:34:28]OFD Sender: No OFD packet to send [04:34:33]OFD Sender: No OFD packet to send [04:34:38]OFD Sender: No OFD packet to send [04:34:43]OFD Sender: No OFD packet to send [04:34:48]OFD Sender: No OFD packet to send [04:34:53]OFD Sender: No OFD packet to send [04:34:58]OFD Sender: No OFD packet to send [04:35:03]OFD Sender: No OFD packet to send [04:35:08]OFD Sender: No OFD packet to send [04:35:13]OFD Sender: No OFD packet to send [04:35:18]OFD Sender: No OFD packet to send [04:35:23]OFD Sender: No OFD packet to send [04:35:28]OFD Sender: No OFD packet to send [04:35:33]OFD Sender: No OFD packet to send [04:35:38]OFD Sender: No OFD packet to send [04:35:43]OFD Sender: No OFD packet to send [04:35:48]OFD Sender: No OFD packet to send [04:35:53]OFD Sender: No OFD packet to send [04:35:58]OFD Sender: No OFD packet to send [04:36:03]OFD Sender: No OFD packet to send [04:36:08]OFD Sender: No OFD packet to send [04:36:13]OFD Sender: No OFD packet to send [04:36:18]OFD Sender: No OFD packet to send [04:36:23]OFD Sender: No OFD packet to send [04:36:28]OFD Sender: No OFD packet to send [04:36:33]OFD Sender: No OFD packet to send [04:36:38]OFD Sender: No OFD packet to send [04:36:43]OFD Sender: No OFD packet to send [04:36:48]OFD Sender: No OFD packet to send [04:36:53]OFD Sender: No OFD packet to send [04:36:58]OFD Sender: No OFD packet to send [04:37:03]OFD Sender: No OFD packet to send [04:37:08]OFD Sender: No OFD packet to send [04:37:13]OFD Sender: No OFD packet to send [04:37:18]OFD Sender: No OFD packet to send [04:37:23]OFD Sender: No OFD packet to send [04:37:28]OFD Sender: No OFD packet to send [04:37:33]OFD Sender: No OFD packet to send [04:37:38]OFD Sender: No OFD packet to send [04:37:43]OFD Sender: No OFD packet to send [04:37:48]OFD Sender: No OFD packet to send [04:37:53]OFD Sender: No OFD packet to send [04:37:58]OFD Sender: No OFD packet to send [04:38:03]OFD Sender: No OFD packet to send [04:38:08]OFD Sender: No OFD packet to send [04:38:13]OFD Sender: No OFD packet to send [04:38:18]OFD Sender: No OFD packet to send [04:38:23]OFD Sender: No OFD packet to send [04:38:28]OFD Sender: No OFD packet to send [04:38:33]OFD Sender: No OFD packet to send [04:38:38]OFD Sender: No OFD packet to send [04:38:43]OFD Sender: No OFD packet to send [04:38:48]OFD Sender: No OFD packet to send [04:38:53]OFD Sender: No OFD packet to send [04:38:58]OFD Sender: No OFD packet to send [04:39:03]OFD Sender: No OFD packet to send [04:39:08]OFD Sender: No OFD packet to send [04:39:13]OFD Sender: No OFD packet to send [04:39:18]OFD Sender: No OFD packet to send [04:39:23]OFD Sender: No OFD packet to send [04:39:28]OFD Sender: No OFD packet to send [04:39:33]OFD Sender: No OFD packet to send [04:39:38]OFD Sender: No OFD packet to send [04:39:43]OFD Sender: No OFD packet to send [04:39:48]OFD Sender: No OFD packet to send [04:39:53]OFD Sender: No OFD packet to send [04:39:58]OFD Sender: No OFD packet to send [04:40:03]OFD Sender: No OFD packet to send [04:40:08]OFD Sender: No OFD packet to send [04:40:13]OFD Sender: No OFD packet to send [04:40:18]OFD Sender: No OFD packet to send [04:40:23]OFD Sender: No OFD packet to send [04:40:28]OFD Sender: No OFD packet to send [04:40:34]OFD Sender: No OFD packet to send [04:40:39]OFD Sender: No OFD packet to send [04:40:44]OFD Sender: No OFD packet to send [04:40:49]OFD Sender: No OFD packet to send [04:40:54]OFD Sender: No OFD packet to send [04:40:59]OFD Sender: No OFD packet to send [04:41:04]OFD Sender: No OFD packet to send [04:41:09]OFD Sender: No OFD packet to send [04:41:14]OFD Sender: No OFD packet to send [04:41:19]OFD Sender: No OFD packet to send [04:41:24]OFD Sender: No OFD packet to send [04:41:29]OFD Sender: No OFD packet to send [04:41:34]OFD Sender: No OFD packet to send [04:41:39]OFD Sender: No OFD packet to send [04:41:44]OFD Sender: No OFD packet to send [04:41:49]OFD Sender: No OFD packet to send [04:41:54]OFD Sender: No OFD packet to send [04:41:59]OFD Sender: No OFD packet to send [04:42:04]OFD Sender: No OFD packet to send [04:42:09]OFD Sender: No OFD packet to send [04:42:14]OFD Sender: No OFD packet to send [04:42:19]OFD Sender: No OFD packet to send [04:42:24]OFD Sender: No OFD packet to send [04:42:29]OFD Sender: No OFD packet to send [04:42:34]OFD Sender: No OFD packet to send [04:42:39]OFD Sender: No OFD packet to send [04:42:44]OFD Sender: No OFD packet to send [04:42:49]OFD Sender: No OFD packet to send [04:42:54]OFD Sender: No OFD packet to send [04:42:59]OFD Sender: No OFD packet to send [04:43:04]OFD Sender: No OFD packet to send [04:43:09]OFD Sender: No OFD packet to send [04:43:14]OFD Sender: No OFD packet to send [04:43:19]OFD Sender: No OFD packet to send [04:43:24]OFD Sender: No OFD packet to send [04:43:29]OFD Sender: No OFD packet to send [04:43:34]OFD Sender: No OFD packet to send [04:43:39]OFD Sender: No OFD packet to send [04:43:44]OFD Sender: No OFD packet to send [04:43:49]OFD Sender: No OFD packet to send [04:43:54]OFD Sender: No OFD packet to send [04:43:59]OFD Sender: No OFD packet to send [04:44:04]OFD Sender: No OFD packet to send [04:44:09]OFD Sender: No OFD packet to send [04:44:14]OFD Sender: No OFD packet to send [04:44:19]OFD Sender: No OFD packet to send [04:44:24]OFD Sender: No OFD packet to send [04:44:29]OFD Sender: No OFD packet to send [04:44:34]OFD Sender: No OFD packet to send [04:44:39]OFD Sender: No OFD packet to send [04:44:44]OFD Sender: No OFD packet to send [04:44:49]OFD Sender: No OFD packet to send [04:44:54]OFD Sender: No OFD packet to send [04:44:59]OFD Sender: No OFD packet to send [04:45:04]OFD Sender: No OFD packet to send [04:45:09]OFD Sender: No OFD packet to send [04:45:14]OFD Sender: No OFD packet to send [04:45:19]OFD Sender: No OFD packet to send [04:45:24]OFD Sender: No OFD packet to send [04:45:29]OFD Sender: No OFD packet to send [04:45:34]OFD Sender: No OFD packet to send [04:45:39]OFD Sender: No OFD packet to send [04:45:44]OFD Sender: No OFD packet to send [04:45:49]OFD Sender: No OFD packet to send [04:45:54]OFD Sender: No OFD packet to send [04:45:59]OFD Sender: No OFD packet to send [04:46:04]OFD Sender: No OFD packet to send [04:46:09]OFD Sender: No OFD packet to send [04:46:14]OFD Sender: No OFD packet to send [04:46:19]OFD Sender: No OFD packet to send [04:46:24]OFD Sender: No OFD packet to send [04:46:29]OFD Sender: No OFD packet to send [04:46:34]OFD Sender: No OFD packet to send [04:46:39]OFD Sender: No OFD packet to send [04:46:44]OFD Sender: No OFD packet to send [04:46:49]OFD Sender: No OFD packet to send [04:46:54]OFD Sender: No OFD packet to send [04:46:59]OFD Sender: No OFD packet to send [04:47:04]OFD Sender: No OFD packet to send [04:47:09]OFD Sender: No OFD packet to send [04:47:14]OFD Sender: No OFD packet to send [04:47:19]OFD Sender: No OFD packet to send [04:47:24]OFD Sender: No OFD packet to send [04:47:29]OFD Sender: No OFD packet to send [04:47:34]OFD Sender: No OFD packet to send [04:47:39]OFD Sender: No OFD packet to send [04:47:44]OFD Sender: No OFD packet to send [04:47:49]OFD Sender: No OFD packet to send [04:47:54]OFD Sender: No OFD packet to send [04:47:59]OFD Sender: No OFD packet to send [04:48:04]OFD Sender: No OFD packet to send [04:48:09]OFD Sender: No OFD packet to send [04:48:14]OFD Sender: No OFD packet to send [04:48:19]OFD Sender: No OFD packet to send [04:48:24]OFD Sender: No OFD packet to send [04:48:29]OFD Sender: No OFD packet to send [04:48:34]OFD Sender: No OFD packet to send [04:48:39]OFD Sender: No OFD packet to send [04:48:44]OFD Sender: No OFD packet to send [04:48:49]OFD Sender: No OFD packet to send [04:48:54]OFD Sender: No OFD packet to send [04:48:59]OFD Sender: No OFD packet to send [04:49:04]OFD Sender: No OFD packet to send [04:49:09]OFD Sender: No OFD packet to send [04:49:14]OFD Sender: No OFD packet to send [04:49:19]OFD Sender: No OFD packet to send [04:49:24]OFD Sender: No OFD packet to send [04:49:29]OFD Sender: No OFD packet to send [04:49:34]OFD Sender: No OFD packet to send [04:49:39]OFD Sender: No OFD packet to send [04:49:44]OFD Sender: No OFD packet to send [04:49:49]OFD Sender: No OFD packet to send [04:49:54]OFD Sender: No OFD packet to send [04:49:59]OFD Sender: No OFD packet to send [04:50:04]OFD Sender: No OFD packet to send [04:50:09]OFD Sender: No OFD packet to send [04:50:14]OFD Sender: No OFD packet to send [04:50:19]OFD Sender: No OFD packet to send [04:50:24]OFD Sender: No OFD packet to send [04:50:29]OFD Sender: No OFD packet to send [04:50:34]OFD Sender: No OFD packet to send [04:50:39]OFD Sender: No OFD packet to send [04:50:44]OFD Sender: No OFD packet to send [04:50:49]OFD Sender: No OFD packet to send [04:50:54]OFD Sender: No OFD packet to send [04:50:59]OFD Sender: No OFD packet to send [04:51:04]OFD Sender: No OFD packet to send [04:51:09]OFD Sender: No OFD packet to send [04:51:14]OFD Sender: No OFD packet to send [04:51:19]OFD Sender: No OFD packet to send [04:51:24]OFD Sender: No OFD packet to send [04:51:29]OFD Sender: No OFD packet to send [04:51:34]OFD Sender: No OFD packet to send [04:51:39]OFD Sender: No OFD packet to send [04:51:44]OFD Sender: No OFD packet to send [04:51:49]OFD Sender: No OFD packet to send [04:51:54]OFD Sender: No OFD packet to send [04:51:59]OFD Sender: No OFD packet to send [04:52:04]OFD Sender: No OFD packet to send [04:52:09]OFD Sender: No OFD packet to send [04:52:14]OFD Sender: No OFD packet to send [04:52:19]OFD Sender: No OFD packet to send [04:52:24]OFD Sender: No OFD packet to send [04:52:29]OFD Sender: No OFD packet to send [04:52:34]OFD Sender: No OFD packet to send [04:52:39]OFD Sender: No OFD packet to send [04:52:44]OFD Sender: No OFD packet to send [04:52:49]OFD Sender: No OFD packet to send [04:52:54]OFD Sender: No OFD packet to send [04:52:59]OFD Sender: No OFD packet to send [04:53:04]OFD Sender: No OFD packet to send [04:53:09]OFD Sender: No OFD packet to send [04:53:14]OFD Sender: No OFD packet to send [04:53:19]OFD Sender: No OFD packet to send [04:53:24]OFD Sender: No OFD packet to send [04:53:29]OFD Sender: No OFD packet to send [04:53:34]OFD Sender: No OFD packet to send [04:53:39]OFD Sender: No OFD packet to send [04:53:44]OFD Sender: No OFD packet to send [04:53:49]OFD Sender: No OFD packet to send [04:53:54]OFD Sender: No OFD packet to send [04:53:59]OFD Sender: No OFD packet to send [04:54:04]OFD Sender: No OFD packet to send [04:54:09]OFD Sender: No OFD packet to send [04:54:14]OFD Sender: No OFD packet to send [04:54:19]OFD Sender: No OFD packet to send [04:54:24]OFD Sender: No OFD packet to send [04:54:29]OFD Sender: No OFD packet to send [04:54:34]OFD Sender: No OFD packet to send [04:54:39]OFD Sender: No OFD packet to send [04:54:44]OFD Sender: No OFD packet to send [04:54:49]OFD Sender: No OFD packet to send [04:54:54]OFD Sender: No OFD packet to send [04:54:59]OFD Sender: No OFD packet to send [04:55:04]OFD Sender: No OFD packet to send [04:55:09]OFD Sender: No OFD packet to send [04:55:14]OFD Sender: No OFD packet to send [04:55:19]OFD Sender: No OFD packet to send [04:55:24]OFD Sender: No OFD packet to send [04:55:29]OFD Sender: No OFD packet to send [04:55:34]OFD Sender: No OFD packet to send [04:55:39]OFD Sender: No OFD packet to send [04:55:44]OFD Sender: No OFD packet to send [04:55:49]OFD Sender: No OFD packet to send [04:55:54]OFD Sender: No OFD packet to send [04:55:59]OFD Sender: No OFD packet to send [04:56:04]OFD Sender: No OFD packet to send [04:56:09]OFD Sender: No OFD packet to send [04:56:14]OFD Sender: No OFD packet to send [04:56:19]OFD Sender: No OFD packet to send [04:56:24]OFD Sender: No OFD packet to send [04:56:29]OFD Sender: No OFD packet to send [04:56:34]OFD Sender: No OFD packet to send [04:56:39]OFD Sender: No OFD packet to send [04:56:44]OFD Sender: No OFD packet to send [04:56:49]OFD Sender: No OFD packet to send [04:56:54]OFD Sender: No OFD packet to send [04:56:59]OFD Sender: No OFD packet to send [04:57:04]OFD Sender: No OFD packet to send [04:57:09]OFD Sender: No OFD packet to send [04:57:14]OFD Sender: No OFD packet to send [04:57:19]OFD Sender: No OFD packet to send [04:57:24]OFD Sender: No OFD packet to send [04:57:29]OFD Sender: No OFD packet to send [04:57:34]OFD Sender: No OFD packet to send [04:57:39]OFD Sender: No OFD packet to send [04:57:44]OFD Sender: No OFD packet to send [04:57:49]OFD Sender: No OFD packet to send [04:57:54]OFD Sender: No OFD packet to send [04:57:59]OFD Sender: No OFD packet to send [04:58:04]OFD Sender: No OFD packet to send [04:58:06]accept exits with 9 [04:58:06]New connection [04:58:06]New thread 3066821988 created [04:58:06]Thread 3066965348 joined [04:58:06]Waiting for new connection... [04:58:06] Sock 9.Parse request [04:58:06]Sock 9.Check first char [04:58:06]Sock 9.First char is OK [04:58:06]request: POST /json_proto HTTP/1.0 [04:58:06]Method: POST [04:58:06]URL: /json_proto [04:58:06]Method is POST - this is cgi request [04:58:06]url: /json_proto [04:58:06]query_string will be loaded in cgi processing [04:58:06]execute_cgi json_proto POST (null) [04:58:06]execute_cgi path=json_proto method=POST [04:58:06]POST find Content-Length [04:58:06]Host: 172.17.44.195:8080 [04:58:06]Content-Length: 678 [04:58:06]Content-Type: application/json [04:58:06] [04:58:06]POST finish read [04:58:06]Found Content-Length = 678 [04:58:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962623", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:58:06]execute_script... [04:58: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)1962623", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:58:06]POST & json_proto [04:58:06]process_json_proto [04:58:06]json parsed OK: [04:58:06]protocol is kg_v1.0 [04:58:06]action value=close_receipt [04:58:06]process_action close_receipt [04:58:06]cmd_close_receipt [04:58:06]MH_GetDate [04:58:06]Write to MH i2c: F0 00 00 DE 1C E9 [04:58:06]Write i2c OK [04:58:06]MH_I2C_Read... [04:58:06]Read from MH i2c: F0 [04:58:06]MH_I2C_Read... [04:58:06]Read from MH i2c: F0 09 00 [04:58:06]MH_I2C_Read... [04:58:06]Read from MH i2c: F0 09 00 DE 1C 00 E1 8D 14 67 82 C9 CF 66 5B [04:58:06]GetLastDocTimeStamp 1729398323 [04:58:06]current date 1729400289 [04:58:06]FM_GetShiftState [04:58:06]SAM_PROTO_GetShiftState [04:58:06]wFMCommunicate request_size=4 [04:58:06]MH_SAM_APDU [04:58:06]CAPDU: 80 13 01 00 [04:58:06]Write to MH i2c: E2 08 00 DF 1C 80 13 01 00 00 00 00 00 78 [04:58:06]Write i2c OK [04:58:06]MH_I2C_Read... [04:58:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:58:06]Read from MH i2c: E2 [04:58:06]MH_I2C_Read... [04:58:06]Read from MH i2c: E2 0E 00 [04:58:06]MH_I2C_Read... [04:58:06]Read from MH i2c: E2 0E 00 DF 1C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 92 [04:58:06]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [04:58:06]wFMCommunicate OK [04:58:06]SAM_PROTO_GetShiftState done [04:58:06]FM_GetShiftState done [04:58:06]opened in 1729383750 [04:58:06]opened+sec_in_day 1729470150 [04:58:06]quantity*price = 50041 [04:58:06]sum+1 = 50042 [04:58:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 20 20.10.2024 04:58 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227172 ФПД: 245299471708337 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T045809&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227172&fm=245299471708337&tin=02508201610067®Number=0000000000091685&sum=50000 [04:58:07]StoreToDocumentArchive [04:58:07]shift 533 fd 227172 [04:58:07]save to /storage/0533/doc_00227172 [04:58:07]save last doc name /storage/0533/doc_00227172 to /storage/kkm_last_doc_name [04:58:07]save OK [04:58:07]Clear old archive folders... [04:58:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:58:07]tlvbuf is 00502320 [04:58:07]SAM_PROTO_ClearQueue [04:58:07]wFMCommunicate request_size=4 [04:58:07]MH_SAM_APDU [04:58:07]CAPDU: 80 09 00 00 [04:58:07]Write to MH i2c: E2 08 00 EC 1C 80 09 00 00 00 00 00 00 7A [04:58:07]Write i2c OK [04:58:07]MH_I2C_Read... [04:58:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:58:07]Read from MH i2c: E2 [04:58:07]MH_I2C_Read... [04:58:07]Read from MH i2c: E2 03 00 [04:58:07]MH_I2C_Read... [04:58:07]Read from MH i2c: E2 03 00 EC 1C 00 90 00 7C [04:58:07]RAPDU: 90 00 [04:58:07]wFMCommunicate OK [04:58:07]SAM_PROTO_ClearQueue done [04:58:07]KKMCreateOFDPacket [04:58:07]OFDProtocolAddRootSTLVToBuf [04:58:07]FM_MakeSignedData [04:58:07]FM_MakeSignedData [04:58:07]SAM_PROTO_SignData [04:58:07]wFMCommunicate request_size=4 [04:58:07]MH_SAM_APDU [04:58:07]CAPDU: 80 0D 01 02 [04:58:07]Write to MH i2c: E2 08 00 ED 1C 80 0D 01 02 00 00 00 00 82 [04:58:07]Write i2c OK [04:58:07]MH_I2C_Read... [04:58:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:58:07]Read from MH i2c: E2 [04:58:07]MH_I2C_Read... [04:58:07]Read from MH i2c: E2 03 00 [04:58:07]MH_I2C_Read... [04:58:07]Read from MH i2c: E2 03 00 ED 1C 00 90 00 7D [04:58:07]RAPDU: 90 00 [04:58:07]wFMCommunicate OK [04:58:07]wFMCommunicate request_size=255 [04:58:07]MH_SAM_APDU [04:58:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 E1 8D 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 64 77 03 00 35 04 06 00 DF [04:58:07]Write to MH i2c: E2 02 01 EE 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 E1 8D 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 64 77 03 00 35 04 06 00 DF 00 00 EA [04:58:07]Write i2c OK [04:58:07]MH_I2C_Read... [04:58:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:58:07]Read from MH i2c: E2 [04:58:07]MH_I2C_Read... [04:58:07]Read from MH i2c: E2 03 00 [04:58:07]MH_I2C_Read... [04:58:07]Read from MH i2c: E2 03 00 EE 1C 00 90 00 7E [04:58:07]RAPDU: 90 00 [04:58:07]wFMCommunicate OK [04:58:07]wFMCommunicate request_size=10 [04:58:07]MH_SAM_APDU [04:58:07]CAPDU: 80 0D 02 02 05 19 3B DF F0 B1 [04:58:07]Write to MH i2c: E2 0D 00 EF 1C 80 0D 02 02 05 00 19 3B DF F0 B1 00 00 63 [04:58:07]Write i2c OK [04:58:07]MH_I2C_Read... [04:58:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:58:07]Read from MH i2c: E2 [04:58:07]MH_I2C_Read... [04:58:07]Read from MH i2c: E2 03 00 [04:58:07]MH_I2C_Read... [04:58:07]Read from MH i2c: E2 03 00 EF 1C 00 90 00 7F [04:58:07]RAPDU: 90 00 [04:58:07]wFMCommunicate OK [04:58:07]wFMCommunicate request_size=4 [04:58:07]MH_SAM_APDU [04:58:07]CAPDU: 80 0D 03 02 [04:58:07]Write to MH i2c: E2 08 00 F0 1C 80 0D 03 02 00 00 00 00 87 [04:58:07]Write i2c OK [04:58:07]MH_I2C_Read... [04:58:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:58:07]Read from MH i2c: E2 [04:58:07]MH_I2C_Read... [04:58:07]Read from MH i2c: E2 0B 00 [04:58:07]MH_I2C_Read... [04:58:07]Read from MH i2c: E2 0B 00 F0 1C 00 12 98 60 28 E1 64 5E 09 90 00 66 [04:58:07]RAPDU: 12 98 60 28 E1 64 5E 09 90 00 [04:58:07]wFMCommunicate OK [04:58:07]SAM_PROTO_SignData done [04:58:07]FM_MakeSignedData done [04:58:07]CreateOFDProtocolMessage [04:58:07]wFMCommunicate request_size=4 [04:58:07]MH_SAM_APDU [04:58:07]CAPDU: 80 11 00 00 [04:58:07]Write to MH i2c: E2 08 00 F1 1C 80 11 00 00 00 00 00 00 87 [04:58:07]Write i2c OK [04:58:07]MH_I2C_Read... [04:58:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:58:07]Read from MH i2c: E2 [04:58:07]MH_I2C_Read... [04:58:07]Read from MH i2c: E2 17 00 [04:58:07]MH_I2C_Read... [04:58:07]Read from MH i2c: E2 17 00 F1 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 DE [04:58:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [04:58:07]wFMCommunicate OK [04:58:07]CreateOFDProtocolMessage done [04:58:07]OFDSenderStorePacket 227172 [04:58:07]StoreOFDPacket docnum=227172 [04:58:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 CA D7 07 01 B3 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 E1 8D 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 64 77 03 00 35 04 06 00 DF 19 3B DF F0 B1 12 98 60 28 E1 64 5E 09 [04:58:07]CheckFolder [04:58:07]dirname=/storage/ofd_packets [04:58:07]CheckFolder done [04:58:07]ProducePacketName [04:58:07]name=ofd_packets/00227172 [04:58:07]NVStorageSaveData ofd_packets/00227172 [04:58:07]File name is /storage/ofd_packets/00227172 [04:58:07]Write 301 bytes [04:58:07]NVStorageSaveData done [04:58:07]OFDSenderStorePacket done [04:58:07]KKMCreateOFDPacket done [04:58:07]NVStorageSaveData kkm_last_timestamp [04:58:07]File name is /storage/kkm_last_timestamp [04:58:07]Write 4 bytes [04:58:07]NVStorageSaveData done [04:58:07]ExternCall_PrintAddStr [04:58:07]wPrintStart [04:58:07]Write to MH i2c: 01 00 00 F2 1C 0E [04:58:07]Write i2c OK [04:58:07]MH_I2C_Read... [04:58:07]Read from MH i2c: 01 [04:58:07]MH_I2C_Read... [04:58:07]Read from MH i2c: 01 07 00 [04:58:07]MH_I2C_Read... [04:58:07]Read from MH i2c: 01 07 00 F2 1C 00 00 00 00 00 FF 0F 23 [04:58:07]RasterBufferAndPrint [04:58:07]line Счет N : (1)1962623 [04:58:07]line ИНН: 02508201610067 [04:58:07]line Контрольно-Кассовый Чек [04:58:07]line ПРОДАЖА [04:58:07]line ТРК (МРК, ГНК) : 33 [04:58:07]line Товар: 2710124130 [04:58:07]line Аи-92-К-5 [04:58:07]line 7.480 * 66.90 [04:58:07]line = 500.41 [04:58:07]line НДС 12% НСП 1% [04:58:07]line > о реализуемом товаре [04:58:07]line ОКРУГЛЕНИЕ: -0.41 [04:58:07]line ИТОГО: 500.00 [04:58:07]line Внесено: 500.00 [04:58:07]line СДАЧА: 0.00 [04:58:07]line НСП 1% : 4.43 [04:58:07]line НДС 12% : 53.14 [04:58:07]line Наличными: 500.00 [04:58:07]line Безнал.: 0.00 [04:58:07]line Место: АЗС № 133 "Партнер Нефть" [04:58:07]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [04:58:07]line СНО: Общий режим [04:58:07]line Чек 20 20.10.2024 04:58 [04:58:07]line Смена: 533 ФФД: 1.0 [04:58:07]line ЗНМ: 0300000091 [04:58:07]line РНМ: 0000000000091685 [04:58:07]line Версия ККМ: 001 [04:58:07]line ФМ: 0000000000871839 [04:58:07]line ФД: 227172 [04:58:07]line ФПД: 245299471708337 [04:58:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T045809&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227172&fm=245299471708337&tin=02508201610067®Number=0000000000091685&sum=50000 [04:58:08]OFD Sender: Processing packet 227172 [packets to send 38, broken 37] [04:58:08]ProducePacketName [04:58:08]name=ofd_packets/00227172 [04:58:08]OFD Sender: To server: pG, [04:58:08]CommunicateWithHost lk.salyk.kg:30040 [04:58:08]ConnectInit lk.salyk.kg [04:58:08]written 0, free lines is 4095 [04:58:08]Connected sock=10 [04:58: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 33 39 0F 01 00 00 CA D7 07 01 B3 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 E1 8D 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 64 77 03 00 35 04 06 00 DF 19 3B DF F0 B1 12 98 60 28 E1 64 5E 09 [04:58: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 33 39 4F 00 00 00 B7 6F 47 00 26 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 64 77 03 00 F4 03 04 00 E1 38 14 67 B6 04 01 00 00 F6 FE FE 82 28 59 DB 1C [04:58:08]CommunicateWithHost err = 0 [04:58:08]CheckOFDResponse [04:58:08]1017 (14) - 77093643461234 [04:58:08]1041 (16) - 0000000000871839 [04:58:08]1040 (4) - 227172 [04:58:08]1012 (4) - 19.10.2024 22:55 [04:58:08]1206 (1) - 0 [04:58:08]OFD Sender: Remove packet 227172 [04:58:08]ProducePacketName [04:58:08]name=ofd_packets/00227172 [04:58:08]NVStorageDeleteData [04:58:08]Write to MH i2c: 01 00 00 1C 1D 39 [04:58:08]Write i2c OK [04:58:08]MH_I2C_Read... [04:58:08]Read from MH i2c: 01 [04:58:08]MH_I2C_Read... [04:58:08]Read from MH i2c: 01 07 00 [04:58:08]MH_I2C_Read... [04:58:08]Read from MH i2c: 01 07 00 1C 1D 00 00 00 00 00 FF 0C 4B [04:58:08]RasterBufferAndPrint [04:58:08]line [04:58:08]line [04:58:08]line [04:58:08]line [04:58:08]line [04:58:08]written 0, free lines is 3333 [04:58:08]process_action close_receipt done [04:58:08]requested_data is exist [04:58:08]produce_requested_data [04:58:08]requested_item fm.sn is exist - process it [04:58:08]wFMCommunicate request_size=4 [04:58:08]MH_SAM_APDU [04:58:08]CAPDU: 80 11 00 00 [04:58:08]Write to MH i2c: E2 08 00 23 1D 80 11 00 00 00 00 00 00 BA [04:58:08]Write i2c OK [04:58:08]MH_I2C_Read... [04:58:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:58:08]Read from MH i2c: E2 [04:58:08]MH_I2C_Read... [04:58:08]Read from MH i2c: E2 17 00 [04:58:08]MH_I2C_Read... [04:58:08]Read from MH i2c: E2 17 00 23 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 11 [04:58:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [04:58:08]wFMCommunicate OK [04:58:08]requested_item fd.num is exist - process it [04:58:08]SAM_PROTO_GetFieldsCounters [04:58:08]wFMCommunicate request_size=4 [04:58:08]MH_SAM_APDU [04:58:08]CAPDU: 80 13 00 00 [04:58:08]Write to MH i2c: E2 08 00 24 1D 80 13 00 00 00 00 00 00 BD [04:58:08]Write i2c OK [04:58:08]MH_I2C_Read... [04:58:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:58:08]Read from MH i2c: E2 [04:58:08]MH_I2C_Read... [04:58:08]Read from MH i2c: E2 62 00 [04:58:08]MH_I2C_Read... [04:58:08]Read from MH i2c: E2 62 00 24 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 64 77 03 00 0E 04 04 00 15 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 17 [04:58: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 64 77 03 00 0E 04 04 00 15 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 [04:58:08]wFMCommunicate OK [04:58:08]SAM_PROTO_GetFieldsCounters done [04:58:08]requested_item shift.num is exist - process it [04:58:08]requested_item shift.opened is exist - process it [04:58:08]req_shift_opened [04:58:08]FM_GetShiftState [04:58:08]SAM_PROTO_GetShiftState [04:58:08]wFMCommunicate request_size=4 [04:58:08]MH_SAM_APDU [04:58:08]CAPDU: 80 13 01 00 [04:58:08]Write to MH i2c: E2 08 00 25 1D 80 13 01 00 00 00 00 00 BF [04:58:08]Write i2c OK [04:58:08]MH_I2C_Read... [04:58:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:58:08]Read from MH i2c: E2 [04:58:08]MH_I2C_Read... [04:58:08]Read from MH i2c: E2 0E 00 [04:58:08]MH_I2C_Read... [04:58:08]Read from MH i2c: E2 0E 00 25 1D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 D9 [04:58:08]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [04:58:08]wFMCommunicate OK [04:58:08]SAM_PROTO_GetShiftState done [04:58:08]FM_GetShiftState done [04:58:08]req_shift_opened done [04:58:08]requested_item shift.open_date is exist - process it [04:58:08]req_shift_open_date [04:58:08]req_shift_open_date done [04:58:08]produce_requested_data done [04:58:08]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227172,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [04:58:08]process_action_free close_receipt [04:58:08]json_value_free [04:58:08]json_value_free done [04:58:08]process_json_proto returns [04:58:08]Send response to host [04:58:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227172,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [04:58:08]free response buf [04:58:08]execute_script done [04:58:08]execute_script returns [04:58:08]free content buf [04:58:08]Sock 9.Close socket [04:58:08]Sock 9.Thread stoped [04:58:09]OFD Sender: No OFD packet to send [04:58:14]OFD Sender: No OFD packet to send [04:58:19]OFD Sender: No OFD packet to send [04:58:24]OFD Sender: No OFD packet to send [04:58:29]OFD Sender: No OFD packet to send [04:58:34]OFD Sender: No OFD packet to send [04:58:39]OFD Sender: No OFD packet to send [04:58:44]OFD Sender: No OFD packet to send [04:58:49]OFD Sender: No OFD packet to send [04:58:54]OFD Sender: No OFD packet to send [04:58:59]OFD Sender: No OFD packet to send [04:59:04]OFD Sender: No OFD packet to send [04:59:09]OFD Sender: No OFD packet to send [04:59:14]OFD Sender: No OFD packet to send [04:59:19]OFD Sender: No OFD packet to send [04:59:24]OFD Sender: No OFD packet to send [04:59:29]OFD Sender: No OFD packet to send [04:59:34]OFD Sender: No OFD packet to send [04:59:39]OFD Sender: No OFD packet to send [04:59:44]OFD Sender: No OFD packet to send [04:59:49]OFD Sender: No OFD packet to send [04:59:54]OFD Sender: No OFD packet to send [04:59:59]OFD Sender: No OFD packet to send [05:00:04]OFD Sender: No OFD packet to send [05:00:09]OFD Sender: No OFD packet to send [05:00:14]OFD Sender: No OFD packet to send [05:00:19]OFD Sender: No OFD packet to send [05:00:24]OFD Sender: No OFD packet to send [05:00:29]OFD Sender: No OFD packet to send [05:00:34]OFD Sender: No OFD packet to send [05:00:39]OFD Sender: No OFD packet to send [05:00:44]OFD Sender: No OFD packet to send [05:00:49]OFD Sender: No OFD packet to send [05:00:54]OFD Sender: No OFD packet to send [05:00:59]OFD Sender: No OFD packet to send [05:01:04]OFD Sender: No OFD packet to send [05:01:09]OFD Sender: No OFD packet to send [05:01:14]OFD Sender: No OFD packet to send [05:01:19]OFD Sender: No OFD packet to send [05:01:24]OFD Sender: No OFD packet to send [05:01:29]OFD Sender: No OFD packet to send [05:01:34]OFD Sender: No OFD packet to send [05:01:39]OFD Sender: No OFD packet to send [05:01:44]OFD Sender: No OFD packet to send [05:01:49]OFD Sender: No OFD packet to send [05:01:54]OFD Sender: No OFD packet to send [05:01:59]OFD Sender: No OFD packet to send [05:02:04]OFD Sender: No OFD packet to send [05:02:09]OFD Sender: No OFD packet to send [05:02:14]OFD Sender: No OFD packet to send [05:02:19]OFD Sender: No OFD packet to send [05:02:24]OFD Sender: No OFD packet to send [05:02:29]OFD Sender: No OFD packet to send [05:02:34]OFD Sender: No OFD packet to send [05:02:39]OFD Sender: No OFD packet to send [05:02:44]OFD Sender: No OFD packet to send [05:02:49]OFD Sender: No OFD packet to send [05:02:54]OFD Sender: No OFD packet to send [05:02:59]OFD Sender: No OFD packet to send [05:03:04]OFD Sender: No OFD packet to send [05:03:09]OFD Sender: No OFD packet to send [05:03:14]OFD Sender: No OFD packet to send [05:03:19]OFD Sender: No OFD packet to send [05:03:24]OFD Sender: No OFD packet to send [05:03:29]OFD Sender: No OFD packet to send [05:03:34]OFD Sender: No OFD packet to send [05:03:39]OFD Sender: No OFD packet to send [05:03:44]OFD Sender: No OFD packet to send [05:03:49]OFD Sender: No OFD packet to send [05:03:54]OFD Sender: No OFD packet to send [05:03:59]OFD Sender: No OFD packet to send [05:04:04]OFD Sender: No OFD packet to send [05:04:09]OFD Sender: No OFD packet to send [05:04:14]OFD Sender: No OFD packet to send [05:04:19]OFD Sender: No OFD packet to send [05:04:24]OFD Sender: No OFD packet to send [05:04:29]OFD Sender: No OFD packet to send [05:04:34]OFD Sender: No OFD packet to send [05:04:39]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:48]accept exits with 8 [05:15:48]New connection [05:15:48]New thread 3066965348 created [05:15:48]Thread 3066821988 joined [05:15:48]Waiting for new connection... [05:15:48] Sock 8.Parse request [05:15:48]Sock 8.Check first char [05:15:48]Sock 8.First char is OK [05:15:48]request: POST /json_proto HTTP/1.0 [05:15:48]Method: POST [05:15:48]URL: /json_proto [05:15:48]Method is POST - this is cgi request [05:15:48]url: /json_proto [05:15:48]query_string will be loaded in cgi processing [05:15:48]execute_cgi json_proto POST (null) [05:15:48]execute_cgi path=json_proto method=POST [05:15:48]POST find Content-Length [05:15:48]Host: 172.17.44.195:8080 [05:15:48]Content-Length: 683 [05:15:48]Content-Type: application/json [05:15:48] [05:15:48]POST finish read [05:15:48]Found Content-Length = 683 [05:15:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962624", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 55.310, "sum" : 3700.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3700.00, "total" : 3700.00, "payments": [ { "type": 0, "sum" : 3700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:15:48]execute_script... [05:15: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)1962624", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 55.310, "sum" : 3700.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3700.00, "total" : 3700.00, "payments": [ { "type": 0, "sum" : 3700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:15:48]POST & json_proto [05:15:48]process_json_proto [05:15:48]json parsed OK: [05:15:48]protocol is kg_v1.0 [05:15:48]action value=close_receipt [05:15:48]process_action close_receipt [05:15:48]cmd_close_receipt [05:15:48]MH_GetDate [05:15:48]Write to MH i2c: F0 00 00 26 1D 32 [05:15:48]Write i2c OK [05:15:48]MH_I2C_Read... [05:15:48]Read from MH i2c: F0 [05:15:48]MH_I2C_Read... [05:15:48]Read from MH i2c: F0 09 00 [05:15:48]MH_I2C_Read... [05:15:48]Read from MH i2c: F0 09 00 26 1D 00 07 92 14 67 82 C9 CF 66 CF [05:15:48]GetLastDocTimeStamp 1729400289 [05:15:48]current date 1729401351 [05:15:48]FM_GetShiftState [05:15:48]SAM_PROTO_GetShiftState [05:15:48]wFMCommunicate request_size=4 [05:15:48]MH_SAM_APDU [05:15:48]CAPDU: 80 13 01 00 [05:15:48]Write to MH i2c: E2 08 00 27 1D 80 13 01 00 00 00 00 00 C1 [05:15:48]Write i2c OK [05:15:48]MH_I2C_Read... [05:15:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:15:48]Read from MH i2c: E2 [05:15:48]MH_I2C_Read... [05:15:48]Read from MH i2c: E2 0E 00 [05:15:48]MH_I2C_Read... [05:15:48]Read from MH i2c: E2 0E 00 27 1D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 DB [05:15:48]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [05:15:48]wFMCommunicate OK [05:15:48]SAM_PROTO_GetShiftState done [05:15:48]FM_GetShiftState done [05:15:48]opened in 1729383750 [05:15:48]opened+sec_in_day 1729470150 [05:15:48]quantity*price = 370023 [05:15:48]sum+1 = 370025 [05:15:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 3700.00 Внесено: 3700.00 СДАЧА: 0.00 НСП 1% : 32.74 НДС 12% : 392.95 Наличными: 3700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 21 20.10.2024 05:15 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227173 ФПД: 13232867459310 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T051551&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227173&fm=13232867459310&tin=02508201610067®Number=0000000000091685&sum=370000 [05:15:49]StoreToDocumentArchive [05:15:49]shift 533 fd 227173 [05:15:49]save to /storage/0533/doc_00227173 [05:15:49]save last doc name /storage/0533/doc_00227173 to /storage/kkm_last_doc_name [05:15:49]save OK [05:15:49]Clear old archive folders... [05:15:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:15:49]tlvbuf is 005348C0 [05:15:49]SAM_PROTO_ClearQueue [05:15:49]wFMCommunicate request_size=4 [05:15:49]MH_SAM_APDU [05:15:49]CAPDU: 80 09 00 00 [05:15:49]Write to MH i2c: E2 08 00 34 1D 80 09 00 00 00 00 00 00 C3 [05:15:49]Write i2c OK [05:15:49]MH_I2C_Read... [05:15:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:15:49]Read from MH i2c: E2 [05:15:49]MH_I2C_Read... [05:15:49]Read from MH i2c: E2 03 00 [05:15:49]MH_I2C_Read... [05:15:49]Read from MH i2c: E2 03 00 34 1D 00 90 00 C5 [05:15:49]RAPDU: 90 00 [05:15:49]wFMCommunicate OK [05:15:49]SAM_PROTO_ClearQueue done [05:15:49]KKMCreateOFDPacket [05:15:49]OFDProtocolAddRootSTLVToBuf [05:15:49]FM_MakeSignedData [05:15:49]FM_MakeSignedData [05:15:49]SAM_PROTO_SignData [05:15:49]wFMCommunicate request_size=4 [05:15:49]MH_SAM_APDU [05:15:49]CAPDU: 80 0D 01 02 [05:15:49]Write to MH i2c: E2 08 00 35 1D 80 0D 01 02 00 00 00 00 CB [05:15:49]Write i2c OK [05:15:49]MH_I2C_Read... [05:15:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:15:49]Read from MH i2c: E2 [05:15:49]MH_I2C_Read... [05:15:49]Read from MH i2c: E2 03 00 [05:15:49]MH_I2C_Read... [05:15:49]Read from MH i2c: E2 03 00 35 1D 00 90 00 C6 [05:15:49]RAPDU: 90 00 [05:15:49]wFMCommunicate OK [05:15:49]wFMCommunicate request_size=255 [05:15:49]MH_SAM_APDU [05:15:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E D8 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 68 A5 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 A5 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CA 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 99 00 00 00 00 07 04 06 00 50 A5 05 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 07 92 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 65 77 03 00 35 04 06 00 0C [05:15:49]Write to MH i2c: E2 02 01 36 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E D8 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 68 A5 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 A5 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CA 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 99 00 00 00 00 07 04 06 00 50 A5 05 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 07 92 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 65 77 03 00 35 04 06 00 0C 00 00 1E [05:15:49]Write i2c OK [05:15:49]MH_I2C_Read... [05:15:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:15:49]Read from MH i2c: E2 [05:15:49]MH_I2C_Read... [05:15:49]Read from MH i2c: E2 03 00 [05:15:49]MH_I2C_Read... [05:15:49]Read from MH i2c: E2 03 00 36 1D 00 90 00 C7 [05:15:49]RAPDU: 90 00 [05:15:49]wFMCommunicate OK [05:15:49]wFMCommunicate request_size=10 [05:15:49]MH_SAM_APDU [05:15:49]CAPDU: 80 0D 02 02 05 09 04 5D 40 EE [05:15:49]Write to MH i2c: E2 0D 00 37 1D 80 0D 02 02 05 00 09 04 5D 40 EE 00 00 70 [05:15:49]Write i2c OK [05:15:49]MH_I2C_Read... [05:15:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:15:49]Read from MH i2c: E2 [05:15:49]MH_I2C_Read... [05:15:49]Read from MH i2c: E2 03 00 [05:15:49]MH_I2C_Read... [05:15:49]Read from MH i2c: E2 03 00 37 1D 00 90 00 C8 [05:15:49]RAPDU: 90 00 [05:15:49]wFMCommunicate OK [05:15:49]wFMCommunicate request_size=4 [05:15:49]MH_SAM_APDU [05:15:49]CAPDU: 80 0D 03 02 [05:15:49]Write to MH i2c: E2 08 00 38 1D 80 0D 03 02 00 00 00 00 D0 [05:15:49]Write i2c OK [05:15:49]MH_I2C_Read... [05:15:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:15:49]Read from MH i2c: E2 [05:15:49]MH_I2C_Read... [05:15:49]Read from MH i2c: E2 0B 00 [05:15:49]MH_I2C_Read... [05:15:49]Read from MH i2c: E2 0B 00 38 1D 00 3C 46 0D 05 2D 1E E6 BE 90 00 54 [05:15:49]RAPDU: 3C 46 0D 05 2D 1E E6 BE 90 00 [05:15:49]wFMCommunicate OK [05:15:49]SAM_PROTO_SignData done [05:15:49]FM_MakeSignedData done [05:15:49]CreateOFDProtocolMessage [05:15:49]wFMCommunicate request_size=4 [05:15:49]MH_SAM_APDU [05:15:49]CAPDU: 80 11 00 00 [05:15:49]Write to MH i2c: E2 08 00 39 1D 80 11 00 00 00 00 00 00 D0 [05:15:49]Write i2c OK [05:15:49]MH_I2C_Read... [05:15:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:15:49]Read from MH i2c: E2 [05:15:49]MH_I2C_Read... [05:15:49]Read from MH i2c: E2 17 00 [05:15:49]MH_I2C_Read... [05:15:49]Read from MH i2c: E2 17 00 39 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 27 [05:15:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [05:15:49]wFMCommunicate OK [05:15:49]CreateOFDProtocolMessage done [05:15:49]OFDSenderStorePacket 227173 [05:15:49]StoreOFDPacket docnum=227173 [05:15:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 4C BC 07 01 E4 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 35 FF 03 08 00 03 0E D8 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 68 A5 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 A5 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CA 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 99 00 00 00 00 07 04 06 00 50 A5 05 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 07 92 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 65 77 03 00 35 04 06 00 0C 09 04 5D 40 EE 3C 46 0D 05 2D 1E E6 BE [05:15:49]CheckFolder [05:15:49]dirname=/storage/ofd_packets [05:15:49]CheckFolder done [05:15:49]ProducePacketName [05:15:49]name=ofd_packets/00227173 [05:15:49]NVStorageSaveData ofd_packets/00227173 [05:15:49]File name is /storage/ofd_packets/00227173 [05:15:49]Write 301 bytes [05:15:49]NVStorageSaveData done [05:15:49]OFDSenderStorePacket done [05:15:49]KKMCreateOFDPacket done [05:15:49]NVStorageSaveData kkm_last_timestamp [05:15:49]File name is /storage/kkm_last_timestamp [05:15:49]Write 4 bytes [05:15:49]NVStorageSaveData done [05:15:49]ExternCall_PrintAddStr [05:15:49]wPrintStart [05:15:49]Write to MH i2c: 01 00 00 3A 1D 57 [05:15:49]Write i2c OK [05:15:49]MH_I2C_Read... [05:15:49]Read from MH i2c: 01 [05:15:49]MH_I2C_Read... [05:15:49]Read from MH i2c: 01 07 00 [05:15:49]MH_I2C_Read... [05:15:49]Read from MH i2c: 01 07 00 3A 1D 00 00 00 00 00 FF 0F 6C [05:15:49]RasterBufferAndPrint [05:15:49]line Счет N : (1)1962624 [05:15:49]line ИНН: 02508201610067 [05:15:49]line Контрольно-Кассовый Чек [05:15:49]line ПРОДАЖА [05:15:49]line ТРК (МРК, ГНК) : 33 [05:15:49]line Товар: 2710124130 [05:15:49]line Аи-92-К-5 [05:15:49]line 55.310 * 66.90 [05:15:49]line = 3700.24 [05:15:49]line НДС 12% НСП 1% [05:15:49]line > о реализуемом товаре [05:15:49]line ОКРУГЛЕНИЕ: -0.24 [05:15:49]line ИТОГО: 3700.00 [05:15:49]line Внесено: 3700.00 [05:15:49]line СДАЧА: 0.00 [05:15:49]line НСП 1% : 32.74 [05:15:49]line НДС 12% : 392.95 [05:15:49]line Наличными: 3700.00 [05:15:49]line Безнал.: 0.00 [05:15:49]line Место: АЗС № 133 "Партнер Нефть" [05:15:49]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [05:15:49]line СНО: Общий режим [05:15:49]line Чек 21 20.10.2024 05:15 [05:15:49]line Смена: 533 ФФД: 1.0 [05:15:49]line ЗНМ: 0300000091 [05:15:49]line РНМ: 0000000000091685 [05:15:49]line Версия ККМ: 001 [05:15:49]line ФМ: 0000000000871839 [05:15:49]line ФД: 227173 [05:15:49]line ФПД: 13232867459310 [05:15:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T051551&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227173&fm=13232867459310&tin=02508201610067®Number=0000000000091685&sum=370000 [05:15:49]written 0, free lines is 4095 [05:15:49]OFD Sender: Processing packet 227173 [packets to send 38, broken 37] [05:15:49]ProducePacketName [05:15:49]name=ofd_packets/00227173 [05:15:49]OFD Sender: To server: pG, [05:15:49]CommunicateWithHost lk.salyk.kg:30040 [05:15:49]ConnectInit lk.salyk.kg [05:15:49]Connected sock=10 [05:15:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 4C BC 07 01 E4 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 35 FF 03 08 00 03 0E D8 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 68 A5 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 A5 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CA 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 99 00 00 00 00 07 04 06 00 50 A5 05 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 07 92 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 65 77 03 00 35 04 06 00 0C 09 04 5D 40 EE 3C 46 0D 05 2D 1E E6 BE [05:15: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 33 39 4F 00 00 00 65 60 47 00 C4 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 33 39 10 04 04 00 65 77 03 00 F4 03 04 00 06 3D 14 67 B6 04 01 00 00 3C 03 6A 66 D4 02 11 9B [05:15:50]CommunicateWithHost err = 0 [05:15:50]CheckOFDResponse [05:15:50]1017 (14) - 77093643461234 [05:15:50]1041 (16) - 0000000000871839 [05:15:50]1040 (4) - 227173 [05:15:50]1012 (4) - 19.10.2024 23:13 [05:15:50]1206 (1) - 0 [05:15:50]OFD Sender: Remove packet 227173 [05:15:50]ProducePacketName [05:15:50]name=ofd_packets/00227173 [05:15:50]NVStorageDeleteData [05:15:50]Write to MH i2c: 01 00 00 64 1D 81 [05:15:50]Write i2c OK [05:15:50]MH_I2C_Read... [05:15:50]Read from MH i2c: 01 [05:15:50]MH_I2C_Read... [05:15:50]Read from MH i2c: 01 07 00 [05:15:50]MH_I2C_Read... [05:15:50]Read from MH i2c: 01 07 00 64 1D 00 00 00 00 00 11 0D A6 [05:15:50]RasterBufferAndPrint [05:15:50]line [05:15:50]line [05:15:50]line [05:15:50]line [05:15:50]line [05:15:50]written 0, free lines is 3351 [05:15:50]process_action close_receipt done [05:15:50]requested_data is exist [05:15:50]produce_requested_data [05:15:50]requested_item fm.sn is exist - process it [05:15:50]wFMCommunicate request_size=4 [05:15:50]MH_SAM_APDU [05:15:50]CAPDU: 80 11 00 00 [05:15:50]Write to MH i2c: E2 08 00 6B 1D 80 11 00 00 00 00 00 00 02 [05:15:50]Write i2c OK [05:15:50]MH_I2C_Read... [05:15:50]Read from MH i2c: E2 [05:15:50]MH_I2C_Read... [05:15:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:15:50]Read from MH i2c: E2 17 00 [05:15:50]MH_I2C_Read... [05:15:50]Read from MH i2c: E2 17 00 6B 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 59 [05:15:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [05:15:50]wFMCommunicate OK [05:15:50]requested_item fd.num is exist - process it [05:15:50]SAM_PROTO_GetFieldsCounters [05:15:50]wFMCommunicate request_size=4 [05:15:50]MH_SAM_APDU [05:15:50]CAPDU: 80 13 00 00 [05:15:50]Write to MH i2c: E2 08 00 6C 1D 80 13 00 00 00 00 00 00 05 [05:15:50]Write i2c OK [05:15:50]MH_I2C_Read... [05:15:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:15:50]Read from MH i2c: E2 [05:15:50]MH_I2C_Read... [05:15:50]Read from MH i2c: E2 62 00 [05:15:50]MH_I2C_Read... [05:15:50]Read from MH i2c: E2 62 00 6C 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 65 77 03 00 0E 04 04 00 15 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 63 [05:15:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 65 77 03 00 0E 04 04 00 15 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 [05:15:50]wFMCommunicate OK [05:15:50]SAM_PROTO_GetFieldsCounters done [05:15:50]requested_item shift.num is exist - process it [05:15:50]requested_item shift.opened is exist - process it [05:15:50]req_shift_opened [05:15:50]FM_GetShiftState [05:15:50]SAM_PROTO_GetShiftState [05:15:50]wFMCommunicate request_size=4 [05:15:50]MH_SAM_APDU [05:15:50]CAPDU: 80 13 01 00 [05:15:50]Write to MH i2c: E2 08 00 6D 1D 80 13 01 00 00 00 00 00 07 [05:15:50]Write i2c OK [05:15:50]MH_I2C_Read... [05:15:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:15:50]Read from MH i2c: E2 [05:15:50]MH_I2C_Read... [05:15:50]Read from MH i2c: E2 0E 00 [05:15:50]MH_I2C_Read... [05:15:50]Read from MH i2c: E2 0E 00 6D 1D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 21 [05:15:50]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [05:15:50]wFMCommunicate OK [05:15:50]SAM_PROTO_GetShiftState done [05:15:50]FM_GetShiftState done [05:15:50]req_shift_opened done [05:15:50]requested_item shift.open_date is exist - process it [05:15:50]req_shift_open_date [05:15:50]req_shift_open_date done [05:15:50]produce_requested_data done [05:15:50]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227173,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [05:15:50]process_action_free close_receipt [05:15:50]json_value_free [05:15:50]json_value_free done [05:15:50]process_json_proto returns [05:15:50]Send response to host [05:15:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227173,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [05:15:50]free response buf [05:15:50]execute_script done [05:15:50]execute_script returns [05:15:50]free content buf [05:15:50]Sock 8.Close socket [05:15:50]Sock 8.Thread stoped [05:15:50]OFD Sender: No OFD packet to send [05:15:55]OFD Sender: No OFD packet to send [05:16:00]OFD Sender: No OFD packet to send [05:16:05]OFD Sender: No OFD packet to send [05:16:10]OFD Sender: No OFD packet to send [05:16:15]OFD Sender: No OFD packet to send [05:16:20]OFD Sender: No OFD packet to send [05:16:25]OFD Sender: No OFD packet to send [05:16:30]OFD Sender: No OFD packet to send [05:16:35]OFD Sender: No OFD packet to send [05:16:40]OFD Sender: No OFD packet to send [05:16:45]OFD Sender: No OFD packet to send [05:16:50]OFD Sender: No OFD packet to send [05:16:55]OFD Sender: No OFD packet to send [05:17:00]OFD Sender: No OFD packet to send [05:17:05]OFD Sender: No OFD packet to send [05:17:10]OFD Sender: No OFD packet to send [05:17:15]OFD Sender: No OFD packet to send [05:17:20]OFD Sender: No OFD packet to send [05:17:25]OFD Sender: No OFD packet to send [05:17:30]OFD Sender: No OFD packet to send [05:17:35]OFD Sender: No OFD packet to send [05:17:40]OFD Sender: No OFD packet to send [05:17:45]OFD Sender: No OFD packet to send [05:17:50]OFD Sender: No OFD packet to send [05:17:55]OFD Sender: No OFD packet to send [05:18:00]OFD Sender: No OFD packet to send [05:18:05]OFD Sender: No OFD packet to send [05:18:10]OFD Sender: No OFD packet to send [05:18:15]OFD Sender: No OFD packet to send [05:18:20]OFD Sender: No OFD packet to send [05:18:25]OFD Sender: No OFD packet to send [05:18:30]OFD Sender: No OFD packet to send [05:18:35]OFD Sender: No OFD packet to send [05:18:40]OFD Sender: No OFD packet to send [05:18:45]OFD Sender: No OFD packet to send [05:18:50]OFD Sender: No OFD packet to send [05:18:55]OFD Sender: No OFD packet to send [05:19:00]OFD Sender: No OFD packet to send [05:19:05]OFD Sender: No OFD packet to send [05:19:10]OFD Sender: No OFD packet to send [05:19:15]OFD Sender: No OFD packet to send [05:19:20]OFD Sender: No OFD packet to send [05:19:25]OFD Sender: No OFD packet to send [05:19:30]OFD Sender: No OFD packet to send [05:19:35]OFD Sender: No OFD packet to send [05:19:40]OFD Sender: No OFD packet to send [05:19:42]accept exits with 9 [05:19:42]New connection [05:19:42]New thread 3066821988 created [05:19:42]Thread 3066965348 joined [05:19:42]Waiting for new connection... [05:19:42] Sock 9.Parse request [05:19:42]Sock 9.Check first char [05:19:42]Sock 9.First char is OK [05:19:42]request: POST /json_proto HTTP/1.0 [05:19:42]Method: POST [05:19:42]URL: /json_proto [05:19:42]Method is POST - this is cgi request [05:19:42]url: /json_proto [05:19:42]query_string will be loaded in cgi processing [05:19:42]execute_cgi json_proto POST (null) [05:19:42]execute_cgi path=json_proto method=POST [05:19:42]POST find Content-Length [05:19:42]Host: 172.17.44.195:8080 [05:19:42]Content-Length: 767 [05:19:42]Content-Type: application/json [05:19:42] [05:19:42]POST finish read [05:19:42]Found Content-Length = 767 [05:19:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962625", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 49.220, "sum" : 3750.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: Mbank", "payments": [ { "type": 1, "sum" : 3750.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:19:42]execute_script... [05:19:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962625", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 49.220, "sum" : 3750.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: Mbank", "payments": [ { "type": 1, "sum" : 3750.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:19:42]POST & json_proto [05:19:42]process_json_proto [05:19:42]json parsed OK: [05:19:42]protocol is kg_v1.0 [05:19:42]action value=close_receipt [05:19:42]process_action close_receipt [05:19:42]cmd_close_receipt [05:19:42]MH_GetDate [05:19:42]Write to MH i2c: F0 00 00 6E 1D 7A [05:19:42]Write i2c OK [05:19:42]MH_I2C_Read... [05:19:42]Read from MH i2c: F0 [05:19:42]MH_I2C_Read... [05:19:42]Read from MH i2c: F0 09 00 [05:19:42]MH_I2C_Read... [05:19:42]Read from MH i2c: F0 09 00 6E 1D 00 F1 92 14 67 82 C9 CF 66 01 [05:19:42]GetLastDocTimeStamp 1729401351 [05:19:42]current date 1729401585 [05:19:42]FM_GetShiftState [05:19:42]SAM_PROTO_GetShiftState [05:19:42]wFMCommunicate request_size=4 [05:19:42]MH_SAM_APDU [05:19:42]CAPDU: 80 13 01 00 [05:19:42]Write to MH i2c: E2 08 00 6F 1D 80 13 01 00 00 00 00 00 09 [05:19:42]Write i2c OK [05:19:42]MH_I2C_Read... [05:19:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:19:42]Read from MH i2c: E2 [05:19:42]MH_I2C_Read... [05:19:42]Read from MH i2c: E2 0E 00 [05:19:42]MH_I2C_Read... [05:19:42]Read from MH i2c: E2 0E 00 6F 1D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 23 [05:19:42]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [05:19:42]wFMCommunicate OK [05:19:42]SAM_PROTO_GetShiftState done [05:19:42]FM_GetShiftState done [05:19:42]opened in 1729383750 [05:19:42]opened+sec_in_day 1729470150 [05:19:42]quantity*price = 375056 [05:19:42]sum+1 = 375057 [05:19:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3750.56 НСП 1% : 33.19 НДС 12% : 398.29 Наличными: 0.00 Безнал.: 3750.56 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 22 20.10.2024 05:19 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 227174 ФПД: 13688578364989 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T051945&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227174&fm=13688578364989&tin=02508201610067®Number=0000000000091685&sum=375056 [05:19:43]StoreToDocumentArchive [05:19:43]shift 533 fd 227174 [05:19:43]save to /storage/0533/doc_00227174 [05:19:43]save last doc name /storage/0533/doc_00227174 to /storage/kkm_last_doc_name [05:19:43]save OK [05:19:43]Clear old archive folders... [05:19:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [05:19:43]tlvbuf is 0057B540 [05:19:43]SAM_PROTO_ClearQueue [05:19:43]wFMCommunicate request_size=4 [05:19:43]MH_SAM_APDU [05:19:43]CAPDU: 80 09 00 00 [05:19:43]Write to MH i2c: E2 08 00 7C 1D 80 09 00 00 00 00 00 00 0B [05:19:43]Write i2c OK [05:19:43]MH_I2C_Read... [05:19:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:19:44]Read from MH i2c: E2 [05:19:44]MH_I2C_Read... [05:19:44]Read from MH i2c: E2 03 00 [05:19:44]MH_I2C_Read... [05:19:44]Read from MH i2c: E2 03 00 7C 1D 00 90 00 0D [05:19:44]RAPDU: 90 00 [05:19:44]wFMCommunicate OK [05:19:44]SAM_PROTO_ClearQueue done [05:19:44]KKMCreateOFDPacket [05:19:44]OFDProtocolAddRootSTLVToBuf [05:19:44]FM_MakeSignedData [05:19:44]FM_MakeSignedData [05:19:44]SAM_PROTO_SignData [05:19:44]wFMCommunicate request_size=4 [05:19:44]MH_SAM_APDU [05:19:44]CAPDU: 80 0D 01 02 [05:19:44]Write to MH i2c: E2 08 00 7D 1D 80 0D 01 02 00 00 00 00 13 [05:19:44]Write i2c OK [05:19:44]MH_I2C_Read... [05:19:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:19:44]Read from MH i2c: E2 [05:19:44]MH_I2C_Read... [05:19:44]Read from MH i2c: E2 03 00 [05:19:44]MH_I2C_Read... [05:19:44]Read from MH i2c: E2 03 00 7D 1D 00 90 00 0E [05:19:44]RAPDU: 90 00 [05:19:44]wFMCommunicate OK [05:19:44]wFMCommunicate request_size=255 [05:19:44]MH_SAM_APDU [05:19: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 44 C0 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 10 B9 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 B9 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F7 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 9B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 B9 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 F1 92 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 66 77 03 00 35 04 06 00 0C 73 1E D9 [05:19:44]Write to MH i2c: E2 02 01 7E 1D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 44 C0 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 10 B9 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 B9 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F7 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 9B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 B9 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 F1 92 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 66 77 03 00 35 04 06 00 0C 73 1E D9 00 00 7B [05:19:44]Write i2c OK [05:19:44]MH_I2C_Read... [05:19:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:19:44]Read from MH i2c: E2 [05:19:44]MH_I2C_Read... [05:19:44]Read from MH i2c: E2 03 00 [05:19:44]MH_I2C_Read... [05:19:44]Read from MH i2c: E2 03 00 7E 1D 00 90 00 0F [05:19:44]RAPDU: 90 00 [05:19:44]wFMCommunicate OK [05:19:44]wFMCommunicate request_size=7 [05:19:44]MH_SAM_APDU [05:19:44]CAPDU: 80 0D 02 02 02 D6 3D [05:19:44]Write to MH i2c: E2 0A 00 7F 1D 80 0D 02 02 02 00 D6 3D 00 00 2D [05:19:44]Write i2c OK [05:19:44]MH_I2C_Read... [05:19:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:19:44]Read from MH i2c: E2 [05:19:44]MH_I2C_Read... [05:19:44]Read from MH i2c: E2 03 00 [05:19:44]MH_I2C_Read... [05:19:44]Read from MH i2c: E2 03 00 7F 1D 00 90 00 10 [05:19:44]RAPDU: 90 00 [05:19:44]wFMCommunicate OK [05:19:44]wFMCommunicate request_size=4 [05:19:44]MH_SAM_APDU [05:19:44]CAPDU: 80 0D 03 02 [05:19:44]Write to MH i2c: E2 08 00 80 1D 80 0D 03 02 00 00 00 00 18 [05:19:44]Write i2c OK [05:19:44]MH_I2C_Read... [05:19:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:19:44]Read from MH i2c: E2 [05:19:44]MH_I2C_Read... [05:19:44]Read from MH i2c: E2 0B 00 [05:19:44]MH_I2C_Read... [05:19:44]Read from MH i2c: E2 0B 00 80 1D 00 8B 99 B1 A4 14 97 4A C8 90 00 4F [05:19:44]RAPDU: 8B 99 B1 A4 14 97 4A C8 90 00 [05:19:44]wFMCommunicate OK [05:19:44]SAM_PROTO_SignData done [05:19:44]FM_MakeSignedData done [05:19:44]CreateOFDProtocolMessage [05:19:44]wFMCommunicate request_size=4 [05:19:44]MH_SAM_APDU [05:19:44]CAPDU: 80 11 00 00 [05:19:44]Write to MH i2c: E2 08 00 81 1D 80 11 00 00 00 00 00 00 18 [05:19:44]Write i2c OK [05:19:44]MH_I2C_Read... [05:19:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:19:44]Read from MH i2c: E2 [05:19:44]MH_I2C_Read... [05:19:44]Read from MH i2c: E2 17 00 [05:19:44]MH_I2C_Read... [05:19:44]Read from MH i2c: E2 17 00 81 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 6F [05:19:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [05:19:44]wFMCommunicate OK [05:19:44]CreateOFDProtocolMessage done [05:19:44]OFDSenderStorePacket 227174 [05:19:44]StoreOFDPacket docnum=227174 [05:19:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 8A 0E 04 01 2F 69 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 44 C0 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 10 B9 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 B9 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F7 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 9B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 B9 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 F1 92 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 66 77 03 00 35 04 06 00 0C 73 1E D9 D6 3D 8B 99 B1 A4 14 97 4A C8 [05:19:44]CheckFolder [05:19:44]dirname=/storage/ofd_packets [05:19:44]CheckFolder done [05:19:44]ProducePacketName [05:19:44]name=ofd_packets/00227174 [05:19:44]NVStorageSaveData ofd_packets/00227174 [05:19:44]File name is /storage/ofd_packets/00227174 [05:19:44]Write 298 bytes [05:19:44]NVStorageSaveData done [05:19:44]OFDSenderStorePacket done [05:19:44]KKMCreateOFDPacket done [05:19:44]NVStorageSaveData kkm_last_timestamp [05:19:44]File name is /storage/kkm_last_timestamp [05:19:44]Write 4 bytes [05:19:44]NVStorageSaveData done [05:19:44]ExternCall_PrintAddStr [05:19:44]wPrintStart [05:19:44]Write to MH i2c: 01 00 00 82 1D 9F [05:19:44]Write i2c OK [05:19:44]MH_I2C_Read... [05:19:44]Read from MH i2c: 01 [05:19:44]MH_I2C_Read... [05:19:44]Read from MH i2c: 01 07 00 [05:19:44]MH_I2C_Read... [05:19:44]Read from MH i2c: 01 07 00 82 1D 00 00 00 00 00 FF 0F B4 [05:19:44]RasterBufferAndPrint [05:19:44]line Счет N : (1)1962625 [05:19:44]line ИНН: 02508201610067 [05:19:44]line Контрольно-Кассовый Чек [05:19:44]line ПРОДАЖА [05:19:44]line ТРК (МРК, ГНК) : 41 [05:19:44]line Товар: 2710194210 [05:19:44]line ДТ-К-5 [05:19:44]line 49.220 * 76.20 [05:19:44]line = 3750.56 [05:19:44]line НДС 12% НСП 1% [05:19:44]line > о реализуемом товаре [05:19:44]line ИТОГО: 3750.56 [05:19:44]line НСП 1% : 33.19 [05:19:44]line НДС 12% : 398.29 [05:19:44]line Наличными: 0.00 [05:19:44]line Безнал.: 3750.56 [05:19:44]line Место: АЗС № 133 "Партнер Нефть" [05:19:44]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [05:19:44]line СНО: Общий режим [05:19:44]line Чек 22 20.10.2024 05:19 [05:19:44]line Смена: 533 ФФД: 1.0 [05:19:44]line ЗНМ: 0300000091 [05:19:44]line РНМ: 0000000000091685 [05:19:44]line Версия ККМ: 001 [05:19:44]line Платежная система: Mbank [05:19:44]line ФМ: 0000000000871839 [05:19:44]line ФД: 227174 [05:19:44]line ФПД: 13688578364989 [05:19:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T051945&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227174&fm=13688578364989&tin=02508201610067®Number=0000000000091685&sum=375056 [05:19:44]OFD Sender: Processing packet 227174 [packets to send 38, broken 37] [05:19:44]ProducePacketName [05:19:44]name=ofd_packets/00227174 [05:19:44]OFD Sender: To server: pG, [05:19:44]CommunicateWithHost lk.salyk.kg:30040 [05:19:44]ConnectInit lk.salyk.kg [05:19:44]written 0, free lines is 4095 [05:19:44]Connected sock=10 [05:19:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 8A 0E 04 01 2F 69 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 44 C0 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 10 B9 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 B9 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F7 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 9B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 B9 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 F1 92 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 66 77 03 00 35 04 06 00 0C 73 1E D9 D6 3D 8B 99 B1 A4 14 97 4A C8 [05:19: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 33 39 4F 00 00 00 2C 5D 47 00 89 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 33 39 10 04 04 00 66 77 03 00 F4 03 04 00 F1 3D 14 67 B6 04 01 00 00 84 E6 01 0A 63 DB EA 68 [05:19:45]CommunicateWithHost err = 0 [05:19:45]CheckOFDResponse [05:19:45]1017 (14) - 77093643461234 [05:19:45]1041 (16) - 0000000000871839 [05:19:45]1040 (4) - 227174 [05:19:45]1012 (4) - 19.10.2024 23:17 [05:19:45]1206 (1) - 0 [05:19:45]OFD Sender: Remove packet 227174 [05:19:45]ProducePacketName [05:19:45]name=ofd_packets/00227174 [05:19:45]NVStorageDeleteData [05:19:45]Write to MH i2c: 01 00 00 AA 1D C7 [05:19:45]Write i2c OK [05:19:45]MH_I2C_Read... [05:19:45]Read from MH i2c: 01 [05:19:45]MH_I2C_Read... [05:19:45]Read from MH i2c: 01 07 00 [05:19:45]MH_I2C_Read... [05:19:45]Read from MH i2c: 01 07 00 AA 1D 00 00 00 00 00 29 0D 04 [05:19:45]RasterBufferAndPrint [05:19:45]line [05:19:45]line [05:19:45]line [05:19:45]line [05:19:45]line [05:19:45]written 0, free lines is 3375 [05:19:45]process_action close_receipt done [05:19:45]requested_data is exist [05:19:45]produce_requested_data [05:19:45]requested_item fm.sn is exist - process it [05:19:45]wFMCommunicate request_size=4 [05:19:45]MH_SAM_APDU [05:19:45]CAPDU: 80 11 00 00 [05:19:45]Write to MH i2c: E2 08 00 B1 1D 80 11 00 00 00 00 00 00 48 [05:19:45]Write i2c OK [05:19:45]MH_I2C_Read... [05:19:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:19:45]Read from MH i2c: E2 [05:19:45]MH_I2C_Read... [05:19:45]Read from MH i2c: E2 17 00 [05:19:45]MH_I2C_Read... [05:19:45]Read from MH i2c: E2 17 00 B1 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 9F [05:19:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [05:19:45]wFMCommunicate OK [05:19:45]requested_item fd.num is exist - process it [05:19:45]SAM_PROTO_GetFieldsCounters [05:19:45]wFMCommunicate request_size=4 [05:19:45]MH_SAM_APDU [05:19:45]CAPDU: 80 13 00 00 [05:19:45]Write to MH i2c: E2 08 00 B2 1D 80 13 00 00 00 00 00 00 4B [05:19:45]Write i2c OK [05:19:45]MH_I2C_Read... [05:19:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:19:45]Read from MH i2c: E2 [05:19:45]MH_I2C_Read... [05:19:45]Read from MH i2c: E2 62 00 [05:19:45]MH_I2C_Read... [05:19:45]Read from MH i2c: E2 62 00 B2 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 66 77 03 00 0E 04 04 00 15 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 AD [05:19: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 66 77 03 00 0E 04 04 00 15 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 [05:19:45]wFMCommunicate OK [05:19:45]SAM_PROTO_GetFieldsCounters done [05:19:45]requested_item shift.num is exist - process it [05:19:45]requested_item shift.opened is exist - process it [05:19:45]req_shift_opened [05:19:45]FM_GetShiftState [05:19:45]SAM_PROTO_GetShiftState [05:19:45]wFMCommunicate request_size=4 [05:19:45]MH_SAM_APDU [05:19:45]CAPDU: 80 13 01 00 [05:19:45]Write to MH i2c: E2 08 00 B3 1D 80 13 01 00 00 00 00 00 4D [05:19:45]Write i2c OK [05:19:45]MH_I2C_Read... [05:19:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:19:45]Read from MH i2c: E2 [05:19:45]MH_I2C_Read... [05:19:45]Read from MH i2c: E2 0E 00 [05:19:45]MH_I2C_Read... [05:19:45]Read from MH i2c: E2 0E 00 B3 1D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 67 [05:19:45]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [05:19:45]wFMCommunicate OK [05:19:45]SAM_PROTO_GetShiftState done [05:19:45]FM_GetShiftState done [05:19:45]req_shift_opened done [05:19:45]requested_item shift.open_date is exist - process it [05:19:45]req_shift_open_date [05:19:45]req_shift_open_date done [05:19:45]produce_requested_data done [05:19:45]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227174,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [05:19:45]process_action_free close_receipt [05:19:45]json_value_free [05:19:45]json_value_free done [05:19:45]process_json_proto returns [05:19:45]Send response to host [05:19:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227174,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [05:19:45]free response buf [05:19:45]execute_script done [05:19:45]execute_script returns [05:19:45]free content buf [05:19:45]Sock 9.Close socket [05:19:45]Sock 9.Thread stoped [05:19:45]OFD Sender: No OFD packet to send [05:19:50]OFD Sender: No OFD packet to send [05:19:55]OFD Sender: No OFD packet to send [05:20:00]OFD Sender: No OFD packet to send [05:20:05]OFD Sender: No OFD packet to send [05:20:10]OFD Sender: No OFD packet to send [05:20:15]OFD Sender: No OFD packet to send [05:20:20]OFD Sender: No OFD packet to send [05:20:25]OFD Sender: No OFD packet to send [05:20:30]OFD Sender: No OFD packet to send [05:20:35]OFD Sender: No OFD packet to send [05:20:40]OFD Sender: No OFD packet to send [05:20:45]OFD Sender: No OFD packet to send [05:20:50]OFD Sender: No OFD packet to send [05:20:55]OFD Sender: No OFD packet to send [05:21:00]OFD Sender: No OFD packet to send [05:21:05]OFD Sender: No OFD packet to send [05:21:10]OFD Sender: No OFD packet to send [05:21:15]OFD Sender: No OFD packet to send [05:21:20]OFD Sender: No OFD packet to send [05:21:25]OFD Sender: No OFD packet to send [05:21:30]OFD Sender: No OFD packet to send [05:21:35]OFD Sender: No OFD packet to send [05:21:40]OFD Sender: No OFD packet to send [05:21:45]OFD Sender: No OFD packet to send [05:21:50]OFD Sender: No OFD packet to send [05:21:55]OFD Sender: No OFD packet to send [05:22:00]OFD Sender: No OFD packet to send [05:22:05]OFD Sender: No OFD packet to send [05:22:10]OFD Sender: No OFD packet to send [05:22:15]OFD Sender: No OFD packet to send [05:22:20]OFD Sender: No OFD packet to send [05:22:25]OFD Sender: No OFD packet to send [05:22:30]OFD Sender: No OFD packet to send [05:22:35]OFD Sender: No OFD packet to send [05:22:40]OFD Sender: No OFD packet to send [05:22:45]OFD Sender: No OFD packet to send [05:22:50]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:19]accept exits with 8 [05:25:19]New connection [05:25:19]New thread 3066965348 created [05:25:19]Thread 3066821988 joined [05:25:19]Waiting for new connection... [05:25:19] Sock 8.Parse request [05:25:19]Sock 8.Check first char [05:25:19]Sock 8.First char is OK [05:25:19]request: POST /json_proto HTTP/1.0 [05:25:19]Method: POST [05:25:19]URL: /json_proto [05:25:19]Method is POST - this is cgi request [05:25:19]url: /json_proto [05:25:19]query_string will be loaded in cgi processing [05:25:19]execute_cgi json_proto POST (null) [05:25:19]execute_cgi path=json_proto method=POST [05:25:19]POST find Content-Length [05:25:19]Host: 172.17.44.195:8080 [05:25:19]Content-Length: 678 [05:25:19]Content-Type: application/json [05:25:19] [05:25:19]POST finish read [05:25:19]Found Content-Length = 678 [05:25:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962626", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:25:19]execute_script... [05:25:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962626", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:25:19]POST & json_proto [05:25:19]process_json_proto [05:25:19]json parsed OK: [05:25:19]protocol is kg_v1.0 [05:25:19]action value=close_receipt [05:25:19]process_action close_receipt [05:25:19]cmd_close_receipt [05:25:19]MH_GetDate [05:25:19]Write to MH i2c: F0 00 00 B4 1D C0 [05:25:19]Write i2c OK [05:25:19]MH_I2C_Read... [05:25:19]Read from MH i2c: F0 [05:25:19]MH_I2C_Read... [05:25:19]Read from MH i2c: F0 09 00 [05:25:19]MH_I2C_Read... [05:25:19]Read from MH i2c: F0 09 00 B4 1D 00 42 94 14 67 82 C9 CF 66 9A [05:25:19]GetLastDocTimeStamp 1729401585 [05:25:19]current date 1729401922 [05:25:19]FM_GetShiftState [05:25:19]SAM_PROTO_GetShiftState [05:25:19]wFMCommunicate request_size=4 [05:25:19]MH_SAM_APDU [05:25:19]CAPDU: 80 13 01 00 [05:25:19]Write to MH i2c: E2 08 00 B5 1D 80 13 01 00 00 00 00 00 4F [05:25:19]Write i2c OK [05:25:19]MH_I2C_Read... [05:25:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:25:19]Read from MH i2c: E2 [05:25:19]MH_I2C_Read... [05:25:19]Read from MH i2c: E2 0E 00 [05:25:19]MH_I2C_Read... [05:25:19]Read from MH i2c: E2 0E 00 B5 1D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 69 [05:25:19]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [05:25:19]wFMCommunicate OK [05:25:19]SAM_PROTO_GetShiftState done [05:25:19]FM_GetShiftState done [05:25:19]opened in 1729383750 [05:25:19]opened+sec_in_day 1729470150 [05:25:19]quantity*price = 50041 [05:25:19]sum+1 = 50042 [05:25:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 23 20.10.2024 05:25 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227175 ФПД: 25138529724785 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T052522&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227175&fm=25138529724785&tin=02508201610067®Number=0000000000091685&sum=50000 [05:25:20]StoreToDocumentArchive [05:25:20]shift 533 fd 227175 [05:25:20]save to /storage/0533/doc_00227175 [05:25:20]save last doc name /storage/0533/doc_00227175 to /storage/kkm_last_doc_name [05:25:20]save OK [05:25:20]Clear old archive folders... [05:25:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:25:20]tlvbuf is B6EDD350 [05:25:20]SAM_PROTO_ClearQueue [05:25:20]wFMCommunicate request_size=4 [05:25:20]MH_SAM_APDU [05:25:20]CAPDU: 80 09 00 00 [05:25:20]Write to MH i2c: E2 08 00 C2 1D 80 09 00 00 00 00 00 00 51 [05:25:20]Write i2c OK [05:25:20]MH_I2C_Read... [05:25:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:25:20]Read from MH i2c: E2 [05:25:20]MH_I2C_Read... [05:25:20]Read from MH i2c: E2 03 00 [05:25:20]MH_I2C_Read... [05:25:20]Read from MH i2c: E2 03 00 C2 1D 00 90 00 53 [05:25:20]RAPDU: 90 00 [05:25:20]wFMCommunicate OK [05:25:20]SAM_PROTO_ClearQueue done [05:25:20]KKMCreateOFDPacket [05:25:20]OFDProtocolAddRootSTLVToBuf [05:25:20]FM_MakeSignedData [05:25:20]FM_MakeSignedData [05:25:20]SAM_PROTO_SignData [05:25:20]wFMCommunicate request_size=4 [05:25:20]MH_SAM_APDU [05:25:20]CAPDU: 80 0D 01 02 [05:25:20]Write to MH i2c: E2 08 00 C3 1D 80 0D 01 02 00 00 00 00 59 [05:25:20]Write i2c OK [05:25:20]MH_I2C_Read... [05:25:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:25:20]Read from MH i2c: E2 [05:25:20]MH_I2C_Read... [05:25:20]Read from MH i2c: E2 03 00 [05:25:20]MH_I2C_Read... [05:25:20]Read from MH i2c: E2 03 00 C3 1D 00 90 00 54 [05:25:20]RAPDU: 90 00 [05:25:20]wFMCommunicate OK [05:25:20]wFMCommunicate request_size=255 [05:25:20]MH_SAM_APDU [05:25:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 42 94 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 67 77 03 00 35 04 06 00 16 [05:25:20]Write to MH i2c: E2 02 01 C4 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 42 94 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 67 77 03 00 35 04 06 00 16 00 00 66 [05:25:20]Write i2c OK [05:25:20]MH_I2C_Read... [05:25:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:25:20]Read from MH i2c: E2 [05:25:20]MH_I2C_Read... [05:25:20]Read from MH i2c: E2 03 00 [05:25:20]MH_I2C_Read... [05:25:20]Read from MH i2c: E2 03 00 C4 1D 00 90 00 55 [05:25:20]RAPDU: 90 00 [05:25:20]wFMCommunicate OK [05:25:20]wFMCommunicate request_size=10 [05:25:20]MH_SAM_APDU [05:25:20]CAPDU: 80 0D 02 02 05 DD 05 22 69 71 [05:25:20]Write to MH i2c: E2 0D 00 C5 1D 80 0D 02 02 05 00 DD 05 22 69 71 00 00 44 [05:25:20]Write i2c OK [05:25:20]MH_I2C_Read... [05:25:20]OFD Sender: No OFD packet to send [05:25:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:25:20]Read from MH i2c: E2 [05:25:21]MH_I2C_Read... [05:25:21]Read from MH i2c: E2 03 00 [05:25:21]MH_I2C_Read... [05:25:21]Read from MH i2c: E2 03 00 C5 1D 00 90 00 56 [05:25:21]RAPDU: 90 00 [05:25:21]wFMCommunicate OK [05:25:21]wFMCommunicate request_size=4 [05:25:21]MH_SAM_APDU [05:25:21]CAPDU: 80 0D 03 02 [05:25:21]Write to MH i2c: E2 08 00 C6 1D 80 0D 03 02 00 00 00 00 5E [05:25:21]Write i2c OK [05:25:21]MH_I2C_Read... [05:25:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:25:21]Read from MH i2c: E2 [05:25:21]MH_I2C_Read... [05:25:21]Read from MH i2c: E2 0B 00 [05:25:21]MH_I2C_Read... [05:25:21]Read from MH i2c: E2 0B 00 C6 1D 00 9A 62 F0 73 97 7A 78 C9 90 00 10 [05:25:21]RAPDU: 9A 62 F0 73 97 7A 78 C9 90 00 [05:25:21]wFMCommunicate OK [05:25:21]SAM_PROTO_SignData done [05:25:21]FM_MakeSignedData done [05:25:21]CreateOFDProtocolMessage [05:25:21]wFMCommunicate request_size=4 [05:25:21]MH_SAM_APDU [05:25:21]CAPDU: 80 11 00 00 [05:25:21]Write to MH i2c: E2 08 00 C7 1D 80 11 00 00 00 00 00 00 5E [05:25:21]Write i2c OK [05:25:21]MH_I2C_Read... [05:25:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:25:21]Read from MH i2c: E2 [05:25:21]MH_I2C_Read... [05:25:21]Read from MH i2c: E2 17 00 [05:25:21]MH_I2C_Read... [05:25:21]Read from MH i2c: E2 17 00 C7 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B5 [05:25:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [05:25:21]wFMCommunicate OK [05:25:21]CreateOFDProtocolMessage done [05:25:21]OFDSenderStorePacket 227175 [05:25:21]StoreOFDPacket docnum=227175 [05:25:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 F5 6C 07 01 BC 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 42 94 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 67 77 03 00 35 04 06 00 16 DD 05 22 69 71 9A 62 F0 73 97 7A 78 C9 [05:25:21]CheckFolder [05:25:21]dirname=/storage/ofd_packets [05:25:21]CheckFolder done [05:25:21]ProducePacketName [05:25:21]name=ofd_packets/00227175 [05:25:21]NVStorageSaveData ofd_packets/00227175 [05:25:21]File name is /storage/ofd_packets/00227175 [05:25:21]Write 301 bytes [05:25:21]NVStorageSaveData done [05:25:21]OFDSenderStorePacket done [05:25:21]KKMCreateOFDPacket done [05:25:21]NVStorageSaveData kkm_last_timestamp [05:25:21]File name is /storage/kkm_last_timestamp [05:25:21]Write 4 bytes [05:25:21]NVStorageSaveData done [05:25:21]ExternCall_PrintAddStr [05:25:21]wPrintStart [05:25:21]Write to MH i2c: 01 00 00 C8 1D E5 [05:25:21]Write i2c OK [05:25:21]MH_I2C_Read... [05:25:21]Read from MH i2c: 01 [05:25:21]MH_I2C_Read... [05:25:21]Read from MH i2c: 01 07 00 [05:25:21]MH_I2C_Read... [05:25:21]Read from MH i2c: 01 07 00 C8 1D 00 00 00 00 00 FF 0F FA [05:25:21]RasterBufferAndPrint [05:25:21]line Счет N : (1)1962626 [05:25:21]line ИНН: 02508201610067 [05:25:21]line Контрольно-Кассовый Чек [05:25:21]line ПРОДАЖА [05:25:21]line ТРК (МРК, ГНК) : 53 [05:25:21]line Товар: 2710124130 [05:25:21]line Аи-92-К-5 [05:25:21]line 7.480 * 66.90 [05:25:21]line = 500.41 [05:25:21]line НДС 12% НСП 1% [05:25:21]line > о реализуемом товаре [05:25:21]line ОКРУГЛЕНИЕ: -0.41 [05:25:21]line ИТОГО: 500.00 [05:25:21]line Внесено: 500.00 [05:25:21]line СДАЧА: 0.00 [05:25:21]line НСП 1% : 4.43 [05:25:21]line НДС 12% : 53.14 [05:25:21]line Наличными: 500.00 [05:25:21]line Безнал.: 0.00 [05:25:21]line Место: АЗС № 133 "Партнер Нефть" [05:25:21]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [05:25:21]line СНО: Общий режим [05:25:21]line Чек 23 20.10.2024 05:25 [05:25:21]line Смена: 533 ФФД: 1.0 [05:25:21]line ЗНМ: 0300000091 [05:25:21]line РНМ: 0000000000091685 [05:25:21]line Версия ККМ: 001 [05:25:21]line ФМ: 0000000000871839 [05:25:21]line ФД: 227175 [05:25:21]line ФПД: 25138529724785 [05:25:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T052522&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227175&fm=25138529724785&tin=02508201610067®Number=0000000000091685&sum=50000 [05:25:21]OFD Sender: Processing packet 227175 [packets to send 38, broken 37] [05:25:21]ProducePacketName [05:25:21]name=ofd_packets/00227175 [05:25:21]OFD Sender: To server: pG, [05:25:21]CommunicateWithHost lk.salyk.kg:30040 [05:25:21]ConnectInit lk.salyk.kg [05:25:21]written 0, free lines is 4095 [05:25:21]Connected sock=10 [05:25:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 F5 6C 07 01 BC 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 42 94 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 67 77 03 00 35 04 06 00 16 DD 05 22 69 71 9A 62 F0 73 97 7A 78 C9 [05:25: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 33 39 4F 00 00 00 E4 44 47 00 EC 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 33 39 10 04 04 00 67 77 03 00 F4 03 04 00 42 3F 14 67 B6 04 01 00 00 56 06 4A 7E CB 96 95 61 [05:25:21]CommunicateWithHost err = 0 [05:25:21]CheckOFDResponse [05:25:21]1017 (14) - 77093643461234 [05:25:21]1041 (16) - 0000000000871839 [05:25:21]1040 (4) - 227175 [05:25:21]1012 (4) - 19.10.2024 23:22 [05:25:21]1206 (1) - 0 [05:25:21]OFD Sender: Remove packet 227175 [05:25:21]ProducePacketName [05:25:21]name=ofd_packets/00227175 [05:25:21]NVStorageDeleteData [05:25:21]Write to MH i2c: 01 00 00 F2 1D 0F [05:25:21]Write i2c OK [05:25:21]MH_I2C_Read... [05:25:21]Read from MH i2c: 01 [05:25:21]MH_I2C_Read... [05:25:21]Read from MH i2c: 01 07 00 [05:25:21]MH_I2C_Read... [05:25:21]Read from MH i2c: 01 07 00 F2 1D 00 00 00 00 00 0A 0D 2D [05:25:21]RasterBufferAndPrint [05:25:21]line [05:25:21]line [05:25:21]line [05:25:21]line [05:25:21]line [05:25:21]written 0, free lines is 3344 [05:25:21]process_action close_receipt done [05:25:21]requested_data is exist [05:25:21]produce_requested_data [05:25:21]requested_item fm.sn is exist - process it [05:25:21]wFMCommunicate request_size=4 [05:25:21]MH_SAM_APDU [05:25:21]CAPDU: 80 11 00 00 [05:25:21]Write to MH i2c: E2 08 00 F9 1D 80 11 00 00 00 00 00 00 90 [05:25:21]Write i2c OK [05:25:21]MH_I2C_Read... [05:25:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:25:21]Read from MH i2c: E2 [05:25:21]MH_I2C_Read... [05:25:21]Read from MH i2c: E2 17 00 [05:25:21]MH_I2C_Read... [05:25:21]Read from MH i2c: E2 17 00 F9 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E7 [05:25:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [05:25:21]wFMCommunicate OK [05:25:21]requested_item fd.num is exist - process it [05:25:21]SAM_PROTO_GetFieldsCounters [05:25:21]wFMCommunicate request_size=4 [05:25:21]MH_SAM_APDU [05:25:21]CAPDU: 80 13 00 00 [05:25:21]Write to MH i2c: E2 08 00 FA 1D 80 13 00 00 00 00 00 00 93 [05:25:21]Write i2c OK [05:25:21]MH_I2C_Read... [05:25:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:25:22]Read from MH i2c: E2 [05:25:22]MH_I2C_Read... [05:25:22]Read from MH i2c: E2 62 00 [05:25:22]MH_I2C_Read... [05:25:22]Read from MH i2c: E2 62 00 FA 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 67 77 03 00 0E 04 04 00 15 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 F9 [05:25: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 67 77 03 00 0E 04 04 00 15 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 [05:25:22]wFMCommunicate OK [05:25:22]SAM_PROTO_GetFieldsCounters done [05:25:22]requested_item shift.num is exist - process it [05:25:22]requested_item shift.opened is exist - process it [05:25:22]req_shift_opened [05:25:22]FM_GetShiftState [05:25:22]SAM_PROTO_GetShiftState [05:25:22]wFMCommunicate request_size=4 [05:25:22]MH_SAM_APDU [05:25:22]CAPDU: 80 13 01 00 [05:25:22]Write to MH i2c: E2 08 00 FB 1D 80 13 01 00 00 00 00 00 95 [05:25:22]Write i2c OK [05:25:22]MH_I2C_Read... [05:25:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:25:22]Read from MH i2c: E2 [05:25:22]MH_I2C_Read... [05:25:22]Read from MH i2c: E2 0E 00 [05:25:22]MH_I2C_Read... [05:25:22]Read from MH i2c: E2 0E 00 FB 1D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 AF [05:25:22]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [05:25:22]wFMCommunicate OK [05:25:22]SAM_PROTO_GetShiftState done [05:25:22]FM_GetShiftState done [05:25:22]req_shift_opened done [05:25:22]requested_item shift.open_date is exist - process it [05:25:22]req_shift_open_date [05:25:22]req_shift_open_date done [05:25:22]produce_requested_data done [05:25:22]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227175,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [05:25:22]process_action_free close_receipt [05:25:22]json_value_free [05:25:22]json_value_free done [05:25:22]process_json_proto returns [05:25:22]Send response to host [05:25:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227175,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [05:25:22]free response buf [05:25:22]execute_script done [05:25:22]execute_script returns [05:25:22]free content buf [05:25:22]Sock 8.Close socket [05:25:22]Sock 8.Thread stoped [05:25:22]OFD Sender: No OFD packet to send [05:25:27]OFD Sender: No OFD packet to send [05:25:32]OFD Sender: No OFD packet to send [05:25:37]OFD Sender: No OFD packet to send [05:25:42]OFD Sender: No OFD packet to send [05:25:47]OFD Sender: No OFD packet to send [05:25:52]OFD Sender: No OFD packet to send [05:25:57]OFD Sender: No OFD packet to send [05:26:02]OFD Sender: No OFD packet to send [05:26:07]OFD Sender: No OFD packet to send [05:26:12]OFD Sender: No OFD packet to send [05:26:17]OFD Sender: No OFD packet to send [05:26:22]OFD Sender: No OFD packet to send [05:26:27]OFD Sender: No OFD packet to send [05:26:32]OFD Sender: No OFD packet to send [05:26:37]OFD Sender: No OFD packet to send [05:26:42]OFD Sender: No OFD packet to send [05:26:47]OFD Sender: No OFD packet to send [05:26:52]OFD Sender: No OFD packet to send [05:26:57]OFD Sender: No OFD packet to send [05:27:02]OFD Sender: No OFD packet to send [05:27:07]OFD Sender: No OFD packet to send [05:27:12]OFD Sender: No OFD packet to send [05:27:17]OFD Sender: No OFD packet to send [05:27:22]OFD Sender: No OFD packet to send [05:27:27]OFD Sender: No OFD packet to send [05:27:32]OFD Sender: No OFD packet to send [05:27:37]OFD Sender: No OFD packet to send [05:27:42]OFD Sender: No OFD packet to send [05:27:47]OFD Sender: No OFD packet to send [05:27:52]OFD Sender: No OFD packet to send [05:27:57]OFD Sender: No OFD packet to send [05:28:02]OFD Sender: No OFD packet to send [05:28:07]OFD Sender: No OFD packet to send [05:28:12]OFD Sender: No OFD packet to send [05:28:17]OFD Sender: No OFD packet to send [05:28:22]OFD Sender: No OFD packet to send [05:28:27]OFD Sender: No OFD packet to send [05:28:32]OFD Sender: No OFD packet to send [05:28:37]OFD Sender: No OFD packet to send [05:28:42]OFD Sender: No OFD packet to send [05:28:47]OFD Sender: No OFD packet to send [05:28:52]OFD Sender: No OFD packet to send [05:28:57]OFD Sender: No OFD packet to send [05:29:02]OFD Sender: No OFD packet to send [05:29:07]OFD Sender: No OFD packet to send [05:29:12]OFD Sender: No OFD packet to send [05:29:17]OFD Sender: No OFD packet to send [05:29:22]OFD Sender: No OFD packet to send [05:29:27]OFD Sender: No OFD packet to send [05:29:32]OFD Sender: No OFD packet to send [05:29:37]OFD Sender: No OFD packet to send [05:29:42]OFD Sender: No OFD packet to send [05:29:47]OFD Sender: No OFD packet to send [05:29:52]OFD Sender: No OFD packet to send [05:29:57]OFD Sender: No OFD packet to send [05:30:02]OFD Sender: No OFD packet to send [05:30:07]OFD Sender: No OFD packet to send [05:30:12]OFD Sender: No OFD packet to send [05:30:17]OFD Sender: No OFD packet to send [05:30:22]OFD Sender: No OFD packet to send [05:30:27]OFD Sender: No OFD packet to send [05:30:32]OFD Sender: No OFD packet to send [05:30:37]OFD Sender: No OFD packet to send [05:30:42]OFD Sender: No OFD packet to send [05:30:47]OFD Sender: No OFD packet to send [05:30:52]OFD Sender: No OFD packet to send [05:30:57]OFD Sender: No OFD packet to send [05:31:02]OFD Sender: No OFD packet to send [05:31:07]OFD Sender: No OFD packet to send [05:31:12]OFD Sender: No OFD packet to send [05:31:17]OFD Sender: No OFD packet to send [05:31:22]OFD Sender: No OFD packet to send [05:31:27]OFD Sender: No OFD packet to send [05:31:32]OFD Sender: No OFD packet to send [05:31:37]OFD Sender: No OFD packet to send [05:31:42]OFD Sender: No OFD packet to send [05:31:47]OFD Sender: No OFD packet to send [05:31:52]OFD Sender: No OFD packet to send [05:31:57]OFD Sender: No OFD packet to send [05:32:02]OFD Sender: No OFD packet to send [05:32:07]OFD Sender: No OFD packet to send [05:32:12]OFD Sender: No OFD packet to send [05:32:17]OFD Sender: No OFD packet to send [05:32:22]OFD Sender: No OFD packet to send [05:32:27]OFD Sender: No OFD packet to send [05:32:32]OFD Sender: No OFD packet to send [05:32:37]OFD Sender: No OFD packet to send [05:32:42]OFD Sender: No OFD packet to send [05:32:47]OFD Sender: No OFD packet to send [05:32:52]OFD Sender: No OFD packet to send [05:32:57]OFD Sender: No OFD packet to send [05:33:02]OFD Sender: No OFD packet to send [05:33:07]OFD Sender: No OFD packet to send [05:33:12]OFD Sender: No OFD packet to send [05:33:17]OFD Sender: No OFD packet to send [05:33:22]OFD Sender: No OFD packet to send [05:33:27]OFD Sender: No OFD packet to send [05:33:32]OFD Sender: No OFD packet to send [05:33:37]OFD Sender: No OFD packet to send [05:33:42]OFD Sender: No OFD packet to send [05:33:47]OFD Sender: No OFD packet to send [05:33:52]OFD Sender: No OFD packet to send [05:33:57]OFD Sender: No OFD packet to send [05:34:02]OFD Sender: No OFD packet to send [05:34:07]OFD Sender: No OFD packet to send [05:34:12]OFD Sender: No OFD packet to send [05:34:17]OFD Sender: No OFD packet to send [05:34:22]OFD Sender: No OFD packet to send [05:34:27]OFD Sender: No OFD packet to send [05:34:32]OFD Sender: No OFD packet to send [05:34:37]OFD Sender: No OFD packet to send [05:34:42]OFD Sender: No OFD packet to send [05:34:47]OFD Sender: No OFD packet to send [05:34:52]OFD Sender: No OFD packet to send [05:34:57]OFD Sender: No OFD packet to send [05:35:02]OFD Sender: No OFD packet to send [05:35:07]OFD Sender: No OFD packet to send [05:35:12]OFD Sender: No OFD packet to send [05:35:17]OFD Sender: No OFD packet to send [05:35:22]OFD Sender: No OFD packet to send [05:35:27]OFD Sender: No OFD packet to send [05:35:32]OFD Sender: No OFD packet to send [05:35:37]OFD Sender: No OFD packet to send [05:35:42]OFD Sender: No OFD packet to send [05:35:47]OFD Sender: No OFD packet to send [05:35:52]OFD Sender: No OFD packet to send [05:35:57]OFD Sender: No OFD packet to send [05:36:02]OFD Sender: No OFD packet to send [05:36:07]OFD Sender: No OFD packet to send [05:36:12]OFD Sender: No OFD packet to send [05:36:17]OFD Sender: No OFD packet to send [05:36:22]OFD Sender: No OFD packet to send [05:36:27]OFD Sender: No OFD packet to send [05:36:32]OFD Sender: No OFD packet to send [05:36:37]OFD Sender: No OFD packet to send [05:36:42]OFD Sender: No OFD packet to send [05:36:47]OFD Sender: No OFD packet to send [05:36:52]OFD Sender: No OFD packet to send [05:36:57]OFD Sender: No OFD packet to send [05:37:02]OFD Sender: No OFD packet to send [05:37:07]OFD Sender: No OFD packet to send [05:37:12]OFD Sender: No OFD packet to send [05:37:17]OFD Sender: No OFD packet to send [05:37:22]OFD Sender: No OFD packet to send [05:37:27]OFD Sender: No OFD packet to send [05:37:32]OFD Sender: No OFD packet to send [05:37:37]OFD Sender: No OFD packet to send [05:37:42]OFD Sender: No OFD packet to send [05:37:47]OFD Sender: No OFD packet to send [05:37:52]OFD Sender: No OFD packet to send [05:37:57]OFD Sender: No OFD packet to send [05:38:02]OFD Sender: No OFD packet to send [05:38:07]OFD Sender: No OFD packet to send [05:38:12]OFD Sender: No OFD packet to send [05:38:17]OFD Sender: No OFD packet to send [05:38:22]OFD Sender: No OFD packet to send [05:38:27]OFD Sender: No OFD packet to send [05:38:32]OFD Sender: No OFD packet to send [05:38:37]OFD Sender: No OFD packet to send [05:38:42]OFD Sender: No OFD packet to send [05:38:47]OFD Sender: No OFD packet to send [05:38:52]OFD Sender: No OFD packet to send [05:38:57]OFD Sender: No OFD packet to send [05:39:02]OFD Sender: No OFD packet to send [05:39:08]OFD Sender: No OFD packet to send [05:39:13]OFD Sender: No OFD packet to send [05:39:18]OFD Sender: No OFD packet to send [05:39:23]OFD Sender: No OFD packet to send [05:39:28]OFD Sender: No OFD packet to send [05:39:33]OFD Sender: No OFD packet to send [05:39:38]OFD Sender: No OFD packet to send [05:39:43]OFD Sender: No OFD packet to send [05:39:48]OFD Sender: No OFD packet to send [05:39:53]OFD Sender: No OFD packet to send [05:39:58]OFD Sender: No OFD packet to send [05:40:03]OFD Sender: No OFD packet to send [05:40:08]OFD Sender: No OFD packet to send [05:40:13]OFD Sender: No OFD packet to send [05:40:18]OFD Sender: No OFD packet to send [05:40:23]OFD Sender: No OFD packet to send [05:40:28]OFD Sender: No OFD packet to send [05:40:33]OFD Sender: No OFD packet to send [05:40:38]OFD Sender: No OFD packet to send [05:40:43]OFD Sender: No OFD packet to send [05:40:48]OFD Sender: No OFD packet to send [05:40:53]OFD Sender: No OFD packet to send [05:40:58]OFD Sender: No OFD packet to send [05:41:03]OFD Sender: No OFD packet to send [05:41:08]OFD Sender: No OFD packet to send [05:41:13]OFD Sender: No OFD packet to send [05:41:18]OFD Sender: No OFD packet to send [05:41:23]OFD Sender: No OFD packet to send [05:41:28]OFD Sender: No OFD packet to send [05:41:33]OFD Sender: No OFD packet to send [05:41:38]OFD Sender: No OFD packet to send [05:41:43]OFD Sender: No OFD packet to send [05:41:48]OFD Sender: No OFD packet to send [05:41:53]OFD Sender: No OFD packet to send [05:41:58]OFD Sender: No OFD packet to send [05:42:03]OFD Sender: No OFD packet to send [05:42:08]OFD Sender: No OFD packet to send [05:42:13]OFD Sender: No OFD packet to send [05:42:18]OFD Sender: No OFD packet to send [05:42:23]OFD Sender: No OFD packet to send [05:42:28]OFD Sender: No OFD packet to send [05:42:33]OFD Sender: No OFD packet to send [05:42:38]OFD Sender: No OFD packet to send [05:42:43]OFD Sender: No OFD packet to send [05:42:45]accept exits with 9 [05:42:45]New connection [05:42:45]New thread 3066821988 created [05:42:45]Thread 3066965348 joined [05:42:45]Waiting for new connection... [05:42:45] Sock 9.Parse request [05:42:45]Sock 9.Check first char [05:42:45]Sock 9.First char is OK [05:42:45]request: POST /json_proto HTTP/1.0 [05:42:45]Method: POST [05:42:45]URL: /json_proto [05:42:45]Method is POST - this is cgi request [05:42:45]url: /json_proto [05:42:45]query_string will be loaded in cgi processing [05:42:45]execute_cgi json_proto POST (null) [05:42:45]execute_cgi path=json_proto method=POST [05:42:45]POST find Content-Length [05:42:45]Host: 172.17.44.195:8080 [05:42:45]Content-Length: 680 [05:42:45]Content-Type: application/json [05:42:45] [05:42:45]POST finish read [05:42:45]Found Content-Length = 680 [05:42:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962627", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:42:45]execute_script... [05:42: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)1962627", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:42:45]POST & json_proto [05:42:45]process_json_proto [05:42:45]json parsed OK: [05:42:45]protocol is kg_v1.0 [05:42:45]action value=close_receipt [05:42:45]process_action close_receipt [05:42:45]cmd_close_receipt [05:42:45]MH_GetDate [05:42:45]Write to MH i2c: F0 00 00 FC 1D 08 [05:42:45]Write i2c OK [05:42:45]MH_I2C_Read... [05:42:45]Read from MH i2c: F0 [05:42:45]MH_I2C_Read... [05:42:45]Read from MH i2c: F0 09 00 [05:42:45]MH_I2C_Read... [05:42:45]Read from MH i2c: F0 09 00 FC 1D 00 58 98 14 67 82 C9 CF 66 FC [05:42:45]GetLastDocTimeStamp 1729401922 [05:42:45]current date 1729402968 [05:42:45]FM_GetShiftState [05:42:45]SAM_PROTO_GetShiftState [05:42:45]wFMCommunicate request_size=4 [05:42:45]MH_SAM_APDU [05:42:45]CAPDU: 80 13 01 00 [05:42:45]Write to MH i2c: E2 08 00 FD 1D 80 13 01 00 00 00 00 00 97 [05:42:45]Write i2c OK [05:42:45]MH_I2C_Read... [05:42:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:42:45]Read from MH i2c: E2 [05:42:45]MH_I2C_Read... [05:42:45]Read from MH i2c: E2 0E 00 [05:42:45]MH_I2C_Read... [05:42:45]Read from MH i2c: E2 0E 00 FD 1D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 B1 [05:42:45]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [05:42:45]wFMCommunicate OK [05:42:45]SAM_PROTO_GetShiftState done [05:42:45]FM_GetShiftState done [05:42:45]opened in 1729383750 [05:42:45]opened+sec_in_day 1729470150 [05:42:45]quantity*price = 200025 [05:42:45]sum+1 = 200026 [05:42:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 24 20.10.2024 05:42 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227176 ФПД: 109819621760386 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T054248&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227176&fm=109819621760386&tin=02508201610067®Number=0000000000091685&sum=200000 [05:42:46]StoreToDocumentArchive [05:42:46]shift 533 fd 227176 [05:42:46]save to /storage/0533/doc_00227176 [05:42:46]save last doc name /storage/0533/doc_00227176 to /storage/kkm_last_doc_name [05:42:46]save OK [05:42:46]Clear old archive folders... [05:42:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [05:42:46]tlvbuf is 005133F0 [05:42:46]SAM_PROTO_ClearQueue [05:42:46]wFMCommunicate request_size=4 [05:42:46]MH_SAM_APDU [05:42:46]CAPDU: 80 09 00 00 [05:42:46]Write to MH i2c: E2 08 00 0A 1E 80 09 00 00 00 00 00 00 9A [05:42:46]Write i2c OK [05:42:46]MH_I2C_Read... [05:42:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:42:46]Read from MH i2c: E2 [05:42:46]MH_I2C_Read... [05:42:46]Read from MH i2c: E2 03 00 [05:42:46]MH_I2C_Read... [05:42:46]Read from MH i2c: E2 03 00 0A 1E 00 90 00 9C [05:42:46]RAPDU: 90 00 [05:42:46]wFMCommunicate OK [05:42:46]SAM_PROTO_ClearQueue done [05:42:46]KKMCreateOFDPacket [05:42:46]OFDProtocolAddRootSTLVToBuf [05:42:46]FM_MakeSignedData [05:42:46]FM_MakeSignedData [05:42:46]SAM_PROTO_SignData [05:42:46]wFMCommunicate request_size=4 [05:42:46]MH_SAM_APDU [05:42:46]CAPDU: 80 0D 01 02 [05:42:46]Write to MH i2c: E2 08 00 0B 1E 80 0D 01 02 00 00 00 00 A2 [05:42:46]Write i2c OK [05:42:46]MH_I2C_Read... [05:42:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:42:46]Read from MH i2c: E2 [05:42:46]MH_I2C_Read... [05:42:46]Read from MH i2c: E2 03 00 [05:42:46]MH_I2C_Read... [05:42:46]Read from MH i2c: E2 03 00 0B 1E 00 90 00 9D [05:42:46]RAPDU: 90 00 [05:42:46]wFMCommunicate OK [05:42:46]wFMCommunicate request_size=255 [05:42:46]MH_SAM_APDU [05:42:46]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 58 98 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 68 77 03 00 35 04 06 00 63 E1 5F 8B [05:42:46]Write to MH i2c: E2 02 01 0C 1E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 58 98 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 68 77 03 00 35 04 06 00 63 E1 5F 8B 00 00 C7 [05:42:46]Write i2c OK [05:42:46]MH_I2C_Read... [05:42:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:42:47]Read from MH i2c: E2 [05:42:47]MH_I2C_Read... [05:42:47]Read from MH i2c: E2 03 00 [05:42:47]MH_I2C_Read... [05:42:47]Read from MH i2c: E2 03 00 0C 1E 00 90 00 9E [05:42:47]RAPDU: 90 00 [05:42:47]wFMCommunicate OK [05:42:47]wFMCommunicate request_size=7 [05:42:47]MH_SAM_APDU [05:42:47]CAPDU: 80 0D 02 02 02 5D 82 [05:42:47]Write to MH i2c: E2 0A 00 0D 1E 80 0D 02 02 02 00 5D 82 00 00 88 [05:42:47]Write i2c OK [05:42:47]MH_I2C_Read... [05:42:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:42:47]Read from MH i2c: E2 [05:42:47]MH_I2C_Read... [05:42:47]Read from MH i2c: E2 03 00 [05:42:47]MH_I2C_Read... [05:42:47]Read from MH i2c: E2 03 00 0D 1E 00 90 00 9F [05:42:47]RAPDU: 90 00 [05:42:47]wFMCommunicate OK [05:42:47]wFMCommunicate request_size=4 [05:42:47]MH_SAM_APDU [05:42:47]CAPDU: 80 0D 03 02 [05:42:47]Write to MH i2c: E2 08 00 0E 1E 80 0D 03 02 00 00 00 00 A7 [05:42:47]Write i2c OK [05:42:47]MH_I2C_Read... [05:42:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:42:47]Read from MH i2c: E2 [05:42:47]MH_I2C_Read... [05:42:47]Read from MH i2c: E2 0B 00 [05:42:47]MH_I2C_Read... [05:42:47]Read from MH i2c: E2 0B 00 0E 1E 00 CC 25 E2 9A 37 FB D8 A0 90 00 BF [05:42:47]RAPDU: CC 25 E2 9A 37 FB D8 A0 90 00 [05:42:47]wFMCommunicate OK [05:42:47]SAM_PROTO_SignData done [05:42:47]FM_MakeSignedData done [05:42:47]CreateOFDProtocolMessage [05:42:47]wFMCommunicate request_size=4 [05:42:47]MH_SAM_APDU [05:42:47]CAPDU: 80 11 00 00 [05:42:47]Write to MH i2c: E2 08 00 0F 1E 80 11 00 00 00 00 00 00 A7 [05:42:47]Write i2c OK [05:42:47]MH_I2C_Read... [05:42:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:42:47]Read from MH i2c: E2 [05:42:47]MH_I2C_Read... [05:42:47]Read from MH i2c: E2 17 00 [05:42:47]MH_I2C_Read... [05:42:47]Read from MH i2c: E2 17 00 0F 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 FE [05:42:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [05:42:47]wFMCommunicate OK [05:42:47]CreateOFDProtocolMessage done [05:42:47]OFDSenderStorePacket 227176 [05:42:47]StoreOFDPacket docnum=227176 [05:42:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 34 9D 04 01 CE 2E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 58 98 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 68 77 03 00 35 04 06 00 63 E1 5F 8B 5D 82 CC 25 E2 9A 37 FB D8 A0 [05:42:47]CheckFolder [05:42:47]dirname=/storage/ofd_packets [05:42:47]CheckFolder done [05:42:47]ProducePacketName [05:42:47]name=ofd_packets/00227176 [05:42:47]NVStorageSaveData ofd_packets/00227176 [05:42:47]File name is /storage/ofd_packets/00227176 [05:42:47]Write 298 bytes [05:42:47]NVStorageSaveData done [05:42:47]OFDSenderStorePacket done [05:42:47]KKMCreateOFDPacket done [05:42:47]NVStorageSaveData kkm_last_timestamp [05:42:47]File name is /storage/kkm_last_timestamp [05:42:47]Write 4 bytes [05:42:47]NVStorageSaveData done [05:42:47]ExternCall_PrintAddStr [05:42:47]wPrintStart [05:42:47]Write to MH i2c: 01 00 00 10 1E 2E [05:42:47]Write i2c OK [05:42:47]MH_I2C_Read... [05:42:47]Read from MH i2c: 01 [05:42:47]MH_I2C_Read... [05:42:47]Read from MH i2c: 01 07 00 [05:42:47]MH_I2C_Read... [05:42:47]Read from MH i2c: 01 07 00 10 1E 00 00 00 00 00 FF 0F 43 [05:42:47]RasterBufferAndPrint [05:42:47]line Счет N : (1)1962627 [05:42:47]line ИНН: 02508201610067 [05:42:47]line Контрольно-Кассовый Чек [05:42:47]line ПРОДАЖА [05:42:47]line ТРК (МРК, ГНК) : 11 [05:42:47]line Товар: 2710194210 [05:42:47]line ДТ-К-5 [05:42:47]line 26.250 * 76.20 [05:42:47]line = 2000.25 [05:42:47]line НДС 12% НСП 1% [05:42:47]line > о реализуемом товаре [05:42:47]line ОКРУГЛЕНИЕ: -0.25 [05:42:47]line ИТОГО: 2000.00 [05:42:47]line Внесено: 2000.00 [05:42:47]line СДАЧА: 0.00 [05:42:47]line НСП 1% : 17.70 [05:42:47]line НДС 12% : 212.42 [05:42:47]line Наличными: 2000.00 [05:42:47]line Безнал.: 0.00 [05:42:47]line Место: АЗС № 133 "Партнер Нефть" [05:42:47]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [05:42:47]line СНО: Общий режим [05:42:47]line Чек 24 20.10.2024 05:42 [05:42:47]line Смена: 533 ФФД: 1.0 [05:42:47]line ЗНМ: 0300000091 [05:42:47]line РНМ: 0000000000091685 [05:42:47]line Версия ККМ: 001 [05:42:47]line ФМ: 0000000000871839 [05:42:47]line ФД: 227176 [05:42:47]line ФПД: 109819621760386 [05:42:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T054248&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227176&fm=109819621760386&tin=02508201610067®Number=0000000000091685&sum=200000 [05:42:47]OFD Sender: Processing packet 227176 [packets to send 38, broken 37] [05:42:47]ProducePacketName [05:42:47]name=ofd_packets/00227176 [05:42:47]OFD Sender: To server: pG, [05:42:47]CommunicateWithHost lk.salyk.kg:30040 [05:42:47]ConnectInit lk.salyk.kg [05:42:47]written 0, free lines is 4095 [05:42:47]Connected sock=10 [05:42: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 33 39 0C 01 00 00 34 9D 04 01 CE 2E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 58 98 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 68 77 03 00 35 04 06 00 63 E1 5F 8B 5D 82 CC 25 E2 9A 37 FB D8 A0 [05:42: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 33 39 4F 00 00 00 8B 78 47 00 30 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 33 39 10 04 04 00 68 77 03 00 F4 03 04 00 58 43 14 67 B6 04 01 00 00 33 BF 6C 50 96 75 E5 2C [05:42:48]CommunicateWithHost err = 0 [05:42:48]CheckOFDResponse [05:42:48]1017 (14) - 77093643461234 [05:42:48]1041 (16) - 0000000000871839 [05:42:48]1040 (4) - 227176 [05:42:48]1012 (4) - 19.10.2024 23:40 [05:42:48]1206 (1) - 0 [05:42:48]OFD Sender: Remove packet 227176 [05:42:48]ProducePacketName [05:42:48]name=ofd_packets/00227176 [05:42:48]NVStorageDeleteData [05:42:48]Write to MH i2c: 01 00 00 3A 1E 58 [05:42:48]Write i2c OK [05:42:48]MH_I2C_Read... [05:42:48]Read from MH i2c: 01 [05:42:48]MH_I2C_Read... [05:42:48]Read from MH i2c: 01 07 00 [05:42:48]MH_I2C_Read... [05:42:48]Read from MH i2c: 01 07 00 3A 1E 00 00 00 00 00 08 0D 74 [05:42:48]RasterBufferAndPrint [05:42:48]line [05:42:48]line [05:42:48]line [05:42:48]line [05:42:48]line [05:42:48]written 0, free lines is 3343 [05:42:48]process_action close_receipt done [05:42:48]requested_data is exist [05:42:48]produce_requested_data [05:42:48]requested_item fm.sn is exist - process it [05:42:48]wFMCommunicate request_size=4 [05:42:48]MH_SAM_APDU [05:42:48]CAPDU: 80 11 00 00 [05:42:48]Write to MH i2c: E2 08 00 41 1E 80 11 00 00 00 00 00 00 D9 [05:42:48]Write i2c OK [05:42:48]MH_I2C_Read... [05:42:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:42:48]Read from MH i2c: E2 [05:42:48]MH_I2C_Read... [05:42:48]Read from MH i2c: E2 17 00 [05:42:48]MH_I2C_Read... [05:42:48]Read from MH i2c: E2 17 00 41 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 30 [05:42:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [05:42:48]wFMCommunicate OK [05:42:48]requested_item fd.num is exist - process it [05:42:48]SAM_PROTO_GetFieldsCounters [05:42:48]wFMCommunicate request_size=4 [05:42:48]MH_SAM_APDU [05:42:48]CAPDU: 80 13 00 00 [05:42:48]Write to MH i2c: E2 08 00 42 1E 80 13 00 00 00 00 00 00 DC [05:42:48]Write i2c OK [05:42:48]MH_I2C_Read... [05:42:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:42:48]Read from MH i2c: E2 [05:42:48]MH_I2C_Read... [05:42:48]Read from MH i2c: E2 62 00 [05:42:48]MH_I2C_Read... [05:42:48]Read from MH i2c: E2 62 00 42 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 68 77 03 00 0E 04 04 00 15 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 46 [05:42: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 68 77 03 00 0E 04 04 00 15 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 [05:42:48]wFMCommunicate OK [05:42:48]SAM_PROTO_GetFieldsCounters done [05:42:48]requested_item shift.num is exist - process it [05:42:48]requested_item shift.opened is exist - process it [05:42:48]req_shift_opened [05:42:48]FM_GetShiftState [05:42:48]SAM_PROTO_GetShiftState [05:42:48]wFMCommunicate request_size=4 [05:42:48]MH_SAM_APDU [05:42:48]CAPDU: 80 13 01 00 [05:42:48]Write to MH i2c: E2 08 00 43 1E 80 13 01 00 00 00 00 00 DE [05:42:48]Write i2c OK [05:42:48]MH_I2C_Read... [05:42:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:42:48]Read from MH i2c: E2 [05:42:48]MH_I2C_Read... [05:42:48]Read from MH i2c: E2 0E 00 [05:42:48]MH_I2C_Read... [05:42:48]Read from MH i2c: E2 0E 00 43 1E 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 F8 [05:42:48]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [05:42:48]wFMCommunicate OK [05:42:48]SAM_PROTO_GetShiftState done [05:42:48]FM_GetShiftState done [05:42:48]req_shift_opened done [05:42:48]requested_item shift.open_date is exist - process it [05:42:48]req_shift_open_date [05:42:48]req_shift_open_date done [05:42:48]produce_requested_data done [05:42:48]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227176,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [05:42:48]process_action_free close_receipt [05:42:48]json_value_free [05:42:48]json_value_free done [05:42:48]process_json_proto returns [05:42:48]Send response to host [05:42:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227176,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [05:42:48]free response buf [05:42:48]execute_script done [05:42:48]execute_script returns [05:42:48]free content buf [05:42:48]Sock 9.Close socket [05:42:48]Sock 9.Thread stoped [05:42:48]OFD Sender: No OFD packet to send [05:42:53]OFD Sender: No OFD packet to send [05:42:58]OFD Sender: No OFD packet to send [05:43:03]OFD Sender: No OFD packet to send [05:43:08]OFD Sender: No OFD packet to send [05:43:13]OFD Sender: No OFD packet to send [05:43:18]OFD Sender: No OFD packet to send [05:43:23]OFD Sender: No OFD packet to send [05:43:28]OFD Sender: No OFD packet to send [05:43:33]OFD Sender: No OFD packet to send [05:43:38]OFD Sender: No OFD packet to send [05:43:43]OFD Sender: No OFD packet to send [05:43:48]OFD Sender: No OFD packet to send [05:43:53]OFD Sender: No OFD packet to send [05:43:58]OFD Sender: No OFD packet to send [05:44:03]OFD Sender: No OFD packet to send [05:44:08]OFD Sender: No OFD packet to send [05:44:13]OFD Sender: No OFD packet to send [05:44:18]OFD Sender: No OFD packet to send [05:44:23]OFD Sender: No OFD packet to send [05:44:28]OFD Sender: No OFD packet to send [05:44:33]OFD Sender: No OFD packet to send [05:44:38]OFD Sender: No OFD packet to send [05:44:43]OFD Sender: No OFD packet to send [05:44:48]OFD Sender: No OFD packet to send [05:44:53]OFD Sender: No OFD packet to send [05:44:58]OFD Sender: No OFD packet to send [05:45:03]OFD Sender: No OFD packet to send [05:45:08]OFD Sender: No OFD packet to send [05:45:13]OFD Sender: No OFD packet to send [05:45:18]OFD Sender: No OFD packet to send [05:45:23]OFD Sender: No OFD packet to send [05:45:28]OFD Sender: No OFD packet to send [05:45:33]OFD Sender: No OFD packet to send [05:45:38]OFD Sender: No OFD packet to send [05:45:43]OFD Sender: No OFD packet to send [05:45:48]OFD Sender: No OFD packet to send [05:45:53]OFD Sender: No OFD packet to send [05:45:58]OFD Sender: No OFD packet to send [05:46:03]OFD Sender: No OFD packet to send [05:46:08]OFD Sender: No OFD packet to send [05:46:13]OFD Sender: No OFD packet to send [05:46:18]OFD Sender: No OFD packet to send [05:46:23]OFD Sender: No OFD packet to send [05:46:28]OFD Sender: No OFD packet to send [05:46:33]OFD Sender: No OFD packet to send [05:46:38]OFD Sender: No OFD packet to send [05:46:43]OFD Sender: No OFD packet to send [05:46:48]OFD Sender: No OFD packet to send [05:46:53]OFD Sender: No OFD packet to send [05:46:58]OFD Sender: No OFD packet to send [05:47:03]OFD Sender: No OFD packet to send [05:47:08]OFD Sender: No OFD packet to send [05:47:13]OFD Sender: No OFD packet to send [05:47:18]OFD Sender: No OFD packet to send [05:47:23]OFD Sender: No OFD packet to send [05:47:28]OFD Sender: No OFD packet to send [05:47:33]OFD Sender: No OFD packet to send [05:47:38]OFD Sender: No OFD packet to send [05:47:43]OFD Sender: No OFD packet to send [05:47:48]OFD Sender: No OFD packet to send [05:47:53]OFD Sender: No OFD packet to send [05:47:58]OFD Sender: No OFD packet to send [05:48:03]OFD Sender: No OFD packet to send [05:48:08]OFD Sender: No OFD packet to send [05:48:13]OFD Sender: No OFD packet to send [05:48:18]OFD Sender: No OFD packet to send [05:48:23]OFD Sender: No OFD packet to send [05:48:28]OFD Sender: No OFD packet to send [05:48:33]OFD Sender: No OFD packet to send [05:48:38]OFD Sender: No OFD packet to send [05:48:43]OFD Sender: No OFD packet to send [05:48:48]OFD Sender: No OFD packet to send [05:48:53]OFD Sender: No OFD packet to send [05:48:58]OFD Sender: No OFD packet to send [05:49:03]OFD Sender: No OFD packet to send [05:49:08]OFD Sender: No OFD packet to send [05:49:13]OFD Sender: No OFD packet to send [05:49:18]OFD Sender: No OFD packet to send [05:49:23]OFD Sender: No OFD packet to send [05:49:28]OFD Sender: No OFD packet to send [05:49:33]OFD Sender: No OFD packet to send [05:49:38]OFD Sender: No OFD packet to send [05:49:43]OFD Sender: No OFD packet to send [05:49:48]OFD Sender: No OFD packet to send [05:49:53]OFD Sender: No OFD packet to send [05:49:58]OFD Sender: No OFD packet to send [05:50:03]OFD Sender: No OFD packet to send [05:50:08]OFD Sender: No OFD packet to send [05:50:13]OFD Sender: No OFD packet to send [05:50:18]OFD Sender: No OFD packet to send [05:50:23]OFD Sender: No OFD packet to send [05:50:28]OFD Sender: No OFD packet to send [05:50:33]OFD Sender: No OFD packet to send [05:50:38]OFD Sender: No OFD packet to send [05:50:43]OFD Sender: No OFD packet to send [05:50:48]OFD Sender: No OFD packet to send [05:50:53]OFD Sender: No OFD packet to send [05:50:58]OFD Sender: No OFD packet to send [05:51:03]OFD Sender: No OFD packet to send [05:51:08]OFD Sender: No OFD packet to send [05:51:13]OFD Sender: No OFD packet to send [05:51:19]OFD Sender: No OFD packet to send [05:51:24]OFD Sender: No OFD packet to send [05:51:29]OFD Sender: No OFD packet to send [05:51:34]OFD Sender: No OFD packet to send [05:51:39]OFD Sender: No OFD packet to send [05:51:44]OFD Sender: No OFD packet to send [05:51:49]OFD Sender: No OFD packet to send [05:51:54]OFD Sender: No OFD packet to send [05:51:59]OFD Sender: No OFD packet to send [05:52:04]OFD Sender: No OFD packet to send [05:52:09]OFD Sender: No OFD packet to send [05:52:14]OFD Sender: No OFD packet to send [05:52:19]OFD Sender: No OFD packet to send [05:52:24]OFD Sender: No OFD packet to send [05:52:29]OFD Sender: No OFD packet to send [05:52:34]OFD Sender: No OFD packet to send [05:52:39]OFD Sender: No OFD packet to send [05:52:44]OFD Sender: No OFD packet to send [05:52:49]OFD Sender: No OFD packet to send [05:52:54]OFD Sender: No OFD packet to send [05:52:59]OFD Sender: No OFD packet to send [05:53:04]OFD Sender: No OFD packet to send [05:53:09]OFD Sender: No OFD packet to send [05:53:14]OFD Sender: No OFD packet to send [05:53:19]OFD Sender: No OFD packet to send [05:53:24]OFD Sender: No OFD packet to send [05:53:29]OFD Sender: No OFD packet to send [05:53:34]OFD Sender: No OFD packet to send [05:53:39]OFD Sender: No OFD packet to send [05:53:44]OFD Sender: No OFD packet to send [05:53:49]OFD Sender: No OFD packet to send [05:53:54]OFD Sender: No OFD packet to send [05:53:59]OFD Sender: No OFD packet to send [05:54:04]OFD Sender: No OFD packet to send [05:54:09]OFD Sender: No OFD packet to send [05:54:14]OFD Sender: No OFD packet to send [05:54:19]OFD Sender: No OFD packet to send [05:54:24]OFD Sender: No OFD packet to send [05:54:29]OFD Sender: No OFD packet to send [05:54:34]OFD Sender: No OFD packet to send [05:54:39]OFD Sender: No OFD packet to send [05:54:44]OFD Sender: No OFD packet to send [05:54:49]OFD Sender: No OFD packet to send [05:54:54]OFD Sender: No OFD packet to send [05:54:59]OFD Sender: No OFD packet to send [05:55:04]OFD Sender: No OFD packet to send [05:55:09]OFD Sender: No OFD packet to send [05:55:14]OFD Sender: No OFD packet to send [05:55:19]OFD Sender: No OFD packet to send [05:55:24]OFD Sender: No OFD packet to send [05:55:29]OFD Sender: No OFD packet to send [05:55:34]OFD Sender: No OFD packet to send [05:55:39]OFD Sender: No OFD packet to send [05:55:44]OFD Sender: No OFD packet to send [05:55:49]OFD Sender: No OFD packet to send [05:55:54]OFD Sender: No OFD packet to send [05:55:59]OFD Sender: No OFD packet to send [05:56:04]OFD Sender: No OFD packet to send [05:56:09]OFD Sender: No OFD packet to send [05:56:14]OFD Sender: No OFD packet to send [05:56:19]OFD Sender: No OFD packet to send [05:56:24]OFD Sender: No OFD packet to send [05:56:29]OFD Sender: No OFD packet to send [05:56:34]OFD Sender: No OFD packet to send [05:56:39]OFD Sender: No OFD packet to send [05:56:44]OFD Sender: No OFD packet to send [05:56:49]OFD Sender: No OFD packet to send [05:56:54]OFD Sender: No OFD packet to send [05:56:59]OFD Sender: No OFD packet to send [05:57:04]OFD Sender: No OFD packet to send [05:57:09]OFD Sender: No OFD packet to send [05:57:14]OFD Sender: No OFD packet to send [05:57:19]OFD Sender: No OFD packet to send [05:57:24]OFD Sender: No OFD packet to send [05:57:29]OFD Sender: No OFD packet to send [05:57:34]OFD Sender: No OFD packet to send [05:57:39]OFD Sender: No OFD packet to send [05:57:44]OFD Sender: No OFD packet to send [05:57:49]OFD Sender: No OFD packet to send [05:57:54]OFD Sender: No OFD packet to send [05:57:59]OFD Sender: No OFD packet to send [05:58:04]OFD Sender: No OFD packet to send [05:58:09]OFD Sender: No OFD packet to send [05:58:14]OFD Sender: No OFD packet to send [05:58:19]OFD Sender: No OFD packet to send [05:58:24]OFD Sender: No OFD packet to send [05:58:29]OFD Sender: No OFD packet to send [05:58:34]OFD Sender: No OFD packet to send [05:58:39]OFD Sender: No OFD packet to send [05:58:40]accept exits with 8 [05:58:40]New connection [05:58:40]New thread 3066965348 created [05:58:40]Thread 3066821988 joined [05:58:40]Waiting for new connection... [05:58:40] Sock 8.Parse request [05:58:40]Sock 8.Check first char [05:58:40]Sock 8.First char is OK [05:58:40]request: POST /json_proto HTTP/1.0 [05:58:40]Method: POST [05:58:40]URL: /json_proto [05:58:40]Method is POST - this is cgi request [05:58:40]url: /json_proto [05:58:40]query_string will be loaded in cgi processing [05:58:40]execute_cgi json_proto POST (null) [05:58:40]execute_cgi path=json_proto method=POST [05:58:40]POST find Content-Length [05:58:40]Host: 172.17.44.195:8080 [05:58:40]Content-Length: 680 [05:58:40]Content-Type: application/json [05:58:40] [05:58:40]POST finish read [05:58:40]Found Content-Length = 680 [05:58:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962628", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:58:40]execute_script... [05:58: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)1962628", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:58:40]POST & json_proto [05:58:40]process_json_proto [05:58:40]json parsed OK: [05:58:40]protocol is kg_v1.0 [05:58:40]action value=close_receipt [05:58:40]process_action close_receipt [05:58:40]cmd_close_receipt [05:58:40]MH_GetDate [05:58:40]Write to MH i2c: F0 00 00 44 1E 51 [05:58:40]Write i2c OK [05:58:40]MH_I2C_Read... [05:58:40]Read from MH i2c: F0 [05:58:40]MH_I2C_Read... [05:58:40]Read from MH i2c: F0 09 00 [05:58:40]MH_I2C_Read... [05:58:40]Read from MH i2c: F0 09 00 44 1E 00 13 9C 14 67 82 C9 CF 66 04 [05:58:40]GetLastDocTimeStamp 1729402968 [05:58:40]current date 1729403923 [05:58:40]FM_GetShiftState [05:58:40]SAM_PROTO_GetShiftState [05:58:40]wFMCommunicate request_size=4 [05:58:40]MH_SAM_APDU [05:58:40]CAPDU: 80 13 01 00 [05:58:40]Write to MH i2c: E2 08 00 45 1E 80 13 01 00 00 00 00 00 E0 [05:58:40]Write i2c OK [05:58:40]MH_I2C_Read... [05:58:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:58:40]Read from MH i2c: E2 [05:58:40]MH_I2C_Read... [05:58:40]Read from MH i2c: E2 0E 00 [05:58:40]MH_I2C_Read... [05:58:40]Read from MH i2c: E2 0E 00 45 1E 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 FA [05:58:40]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [05:58:40]wFMCommunicate OK [05:58:40]SAM_PROTO_GetShiftState done [05:58:40]FM_GetShiftState done [05:58:40]opened in 1729383750 [05:58:40]opened+sec_in_day 1729470150 [05:58:40]quantity*price = 100050 [05:58:40]sum+1 = 100052 [05:58:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 25 20.10.2024 05:58 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227177 ФПД: 1009914242237 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T055843&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227177&fm=1009914242237&tin=02508201610067®Number=0000000000091685&sum=100000 [05:58:41]StoreToDocumentArchive [05:58:41]shift 533 fd 227177 [05:58:41]save to /storage/0533/doc_00227177 [05:58:41]save last doc name /storage/0533/doc_00227177 to /storage/kkm_last_doc_name [05:58:41]save OK [05:58:41]Clear old archive folders... [05:58:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [05:58:41]tlvbuf is 00534A00 [05:58:41]SAM_PROTO_ClearQueue [05:58:41]wFMCommunicate request_size=4 [05:58:41]MH_SAM_APDU [05:58:41]CAPDU: 80 09 00 00 [05:58:41]Write to MH i2c: E2 08 00 52 1E 80 09 00 00 00 00 00 00 E2 [05:58:41]Write i2c OK [05:58:41]MH_I2C_Read... [05:58:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:58:41]Read from MH i2c: E2 [05:58:41]MH_I2C_Read... [05:58:41]Read from MH i2c: E2 03 00 [05:58:41]MH_I2C_Read... [05:58:41]Read from MH i2c: E2 03 00 52 1E 00 90 00 E4 [05:58:41]RAPDU: 90 00 [05:58:41]wFMCommunicate OK [05:58:41]SAM_PROTO_ClearQueue done [05:58:41]KKMCreateOFDPacket [05:58:41]OFDProtocolAddRootSTLVToBuf [05:58:41]FM_MakeSignedData [05:58:41]FM_MakeSignedData [05:58:41]SAM_PROTO_SignData [05:58:41]wFMCommunicate request_size=4 [05:58:41]MH_SAM_APDU [05:58:41]CAPDU: 80 0D 01 02 [05:58:41]Write to MH i2c: E2 08 00 53 1E 80 0D 01 02 00 00 00 00 EA [05:58:41]Write i2c OK [05:58:41]MH_I2C_Read... [05:58:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:58:41]Read from MH i2c: E2 [05:58:41]MH_I2C_Read... [05:58:41]Read from MH i2c: E2 03 00 [05:58:41]MH_I2C_Read... [05:58:41]Read from MH i2c: E2 03 00 53 1E 00 90 00 E5 [05:58:41]RAPDU: 90 00 [05:58:41]wFMCommunicate OK [05:58:41]wFMCommunicate request_size=255 [05:58:41]MH_SAM_APDU [05:58: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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 13 9C 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 69 77 03 00 35 04 06 00 00 EB 23 94 [05:58:41]Write to MH i2c: E2 02 01 54 1E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 13 9C 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 69 77 03 00 35 04 06 00 00 EB 23 94 00 00 56 [05:58:41]Write i2c OK [05:58:41]MH_I2C_Read... [05:58:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:58:42]Read from MH i2c: E2 [05:58:42]MH_I2C_Read... [05:58:42]Read from MH i2c: E2 03 00 [05:58:42]MH_I2C_Read... [05:58:42]Read from MH i2c: E2 03 00 54 1E 00 90 00 E6 [05:58:42]RAPDU: 90 00 [05:58:42]wFMCommunicate OK [05:58:42]wFMCommunicate request_size=7 [05:58:42]MH_SAM_APDU [05:58:42]CAPDU: 80 0D 02 02 02 64 BD [05:58:42]Write to MH i2c: E2 0A 00 55 1E 80 0D 02 02 02 00 64 BD 00 00 12 [05:58:42]Write i2c OK [05:58:42]MH_I2C_Read... [05:58:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:58:42]Read from MH i2c: E2 [05:58:42]MH_I2C_Read... [05:58:42]Read from MH i2c: E2 03 00 [05:58:42]MH_I2C_Read... [05:58:42]Read from MH i2c: E2 03 00 55 1E 00 90 00 E7 [05:58:42]RAPDU: 90 00 [05:58:42]wFMCommunicate OK [05:58:42]wFMCommunicate request_size=4 [05:58:42]MH_SAM_APDU [05:58:42]CAPDU: 80 0D 03 02 [05:58:42]Write to MH i2c: E2 08 00 56 1E 80 0D 03 02 00 00 00 00 EF [05:58:42]Write i2c OK [05:58:42]MH_I2C_Read... [05:58:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:58:42]Read from MH i2c: E2 [05:58:42]MH_I2C_Read... [05:58:42]Read from MH i2c: E2 0B 00 [05:58:42]MH_I2C_Read... [05:58:42]Read from MH i2c: E2 0B 00 56 1E 00 BE 98 D1 CC C2 77 9E 45 90 00 FF [05:58:42]RAPDU: BE 98 D1 CC C2 77 9E 45 90 00 [05:58:42]wFMCommunicate OK [05:58:42]SAM_PROTO_SignData done [05:58:42]FM_MakeSignedData done [05:58:42]CreateOFDProtocolMessage [05:58:42]wFMCommunicate request_size=4 [05:58:42]MH_SAM_APDU [05:58:42]CAPDU: 80 11 00 00 [05:58:42]Write to MH i2c: E2 08 00 57 1E 80 11 00 00 00 00 00 00 EF [05:58:42]Write i2c OK [05:58:42]MH_I2C_Read... [05:58:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:58:42]Read from MH i2c: E2 [05:58:42]MH_I2C_Read... [05:58:42]Read from MH i2c: E2 17 00 [05:58:42]MH_I2C_Read... [05:58:42]Read from MH i2c: E2 17 00 57 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 46 [05:58:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [05:58:42]wFMCommunicate OK [05:58:42]CreateOFDProtocolMessage done [05:58:42]OFDSenderStorePacket 227177 [05:58:42]StoreOFDPacket docnum=227177 [05:58:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 B9 B5 04 01 BF 0C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 13 9C 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 69 77 03 00 35 04 06 00 00 EB 23 94 64 BD BE 98 D1 CC C2 77 9E 45 [05:58:42]CheckFolder [05:58:42]dirname=/storage/ofd_packets [05:58:42]CheckFolder done [05:58:42]ProducePacketName [05:58:42]name=ofd_packets/00227177 [05:58:42]NVStorageSaveData ofd_packets/00227177 [05:58:42]File name is /storage/ofd_packets/00227177 [05:58:42]Write 298 bytes [05:58:42]NVStorageSaveData done [05:58:42]OFDSenderStorePacket done [05:58:42]KKMCreateOFDPacket done [05:58:42]NVStorageSaveData kkm_last_timestamp [05:58:42]File name is /storage/kkm_last_timestamp [05:58:42]Write 4 bytes [05:58:42]NVStorageSaveData done [05:58:42]ExternCall_PrintAddStr [05:58:42]wPrintStart [05:58:42]Write to MH i2c: 01 00 00 58 1E 76 [05:58:42]Write i2c OK [05:58:42]MH_I2C_Read... [05:58:42]Read from MH i2c: 01 [05:58:42]MH_I2C_Read... [05:58:42]Read from MH i2c: 01 07 00 [05:58:42]MH_I2C_Read... [05:58:42]Read from MH i2c: 01 07 00 58 1E 00 00 00 00 00 FF 0F 8B [05:58:42]RasterBufferAndPrint [05:58:42]line Счет N : (1)1962628 [05:58:42]line ИНН: 02508201610067 [05:58:42]line Контрольно-Кассовый Чек [05:58:42]line ПРОДАЖА [05:58:42]line ТРК (МРК, ГНК) : 31 [05:58:42]line Товар: 2710194210 [05:58:42]line ДТ-К-5 [05:58:42]line 13.130 * 76.20 [05:58:42]line = 1000.51 [05:58:42]line НДС 12% НСП 1% [05:58:42]line > о реализуемом товаре [05:58:42]line ОКРУГЛЕНИЕ: -0.51 [05:58:42]line ИТОГО: 1000.00 [05:58:42]line Внесено: 1000.00 [05:58:42]line СДАЧА: 0.00 [05:58:42]line НСП 1% : 8.85 [05:58:42]line НДС 12% : 106.25 [05:58:42]line Наличными: 1000.00 [05:58:42]line Безнал.: 0.00 [05:58:42]line Место: АЗС № 133 "Партнер Нефть" [05:58:42]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [05:58:42]line СНО: Общий режим [05:58:42]line Чек 25 20.10.2024 05:58 [05:58:42]line Смена: 533 ФФД: 1.0 [05:58:42]line ЗНМ: 0300000091 [05:58:42]line РНМ: 0000000000091685 [05:58:42]line Версия ККМ: 001 [05:58:42]line ФМ: 0000000000871839 [05:58:42]line ФД: 227177 [05:58:42]line ФПД: 1009914242237 [05:58:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T055843&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227177&fm=1009914242237&tin=02508201610067®Number=0000000000091685&sum=100000 [05:58:42]OFD Sender: Processing packet 227177 [packets to send 38, broken 37] [05:58:42]ProducePacketName [05:58:42]name=ofd_packets/00227177 [05:58:42]OFD Sender: To server: pG, [05:58:42]CommunicateWithHost lk.salyk.kg:30040 [05:58:42]ConnectInit lk.salyk.kg [05:58:42]written 0, free lines is 4095 [05:58:42]Connected sock=10 [05:58:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 B9 B5 04 01 BF 0C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 13 9C 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 69 77 03 00 35 04 06 00 00 EB 23 94 64 BD BE 98 D1 CC C2 77 9E 45 [05:58: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 33 39 4F 00 00 00 63 FF 47 00 02 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 33 39 10 04 04 00 69 77 03 00 F4 03 04 00 13 47 14 67 B6 04 01 00 00 9C 1F 9B E7 05 1B 78 8D [05:58:43]CommunicateWithHost err = 0 [05:58:43]CheckOFDResponse [05:58:43]1017 (14) - 77093643461234 [05:58:43]1041 (16) - 0000000000871839 [05:58:43]1040 (4) - 227177 [05:58:43]1012 (4) - 19.10.2024 23:56 [05:58:43]1206 (1) - 0 [05:58:43]OFD Sender: Remove packet 227177 [05:58:43]ProducePacketName [05:58:43]name=ofd_packets/00227177 [05:58:43]NVStorageDeleteData [05:58:43]Write to MH i2c: 01 00 00 82 1E A0 [05:58:43]Write i2c OK [05:58:43]MH_I2C_Read... [05:58:43]Read from MH i2c: 01 [05:58:43]MH_I2C_Read... [05:58:43]Read from MH i2c: 01 07 00 [05:58:43]MH_I2C_Read... [05:58:43]Read from MH i2c: 01 07 00 82 1E 00 00 00 00 00 0B 0D BF [05:58:43]RasterBufferAndPrint [05:58:43]line [05:58:43]line [05:58:43]line [05:58:43]line [05:58:43]line [05:58:43]written 0, free lines is 3345 [05:58:43]process_action close_receipt done [05:58:43]requested_data is exist [05:58:43]produce_requested_data [05:58:43]requested_item fm.sn is exist - process it [05:58:43]wFMCommunicate request_size=4 [05:58:43]MH_SAM_APDU [05:58:43]CAPDU: 80 11 00 00 [05:58:43]Write to MH i2c: E2 08 00 89 1E 80 11 00 00 00 00 00 00 21 [05:58:43]Write i2c OK [05:58:43]MH_I2C_Read... [05:58:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:58:43]Read from MH i2c: E2 [05:58:43]MH_I2C_Read... [05:58:43]Read from MH i2c: E2 17 00 [05:58:43]MH_I2C_Read... [05:58:43]Read from MH i2c: E2 17 00 89 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 78 [05:58:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [05:58:43]wFMCommunicate OK [05:58:43]requested_item fd.num is exist - process it [05:58:43]SAM_PROTO_GetFieldsCounters [05:58:43]wFMCommunicate request_size=4 [05:58:43]MH_SAM_APDU [05:58:43]CAPDU: 80 13 00 00 [05:58:43]Write to MH i2c: E2 08 00 8A 1E 80 13 00 00 00 00 00 00 24 [05:58:43]Write i2c OK [05:58:43]MH_I2C_Read... [05:58:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:58:43]Read from MH i2c: E2 [05:58:43]MH_I2C_Read... [05:58:43]Read from MH i2c: E2 62 00 [05:58:43]MH_I2C_Read... [05:58:43]Read from MH i2c: E2 62 00 8A 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 69 77 03 00 0E 04 04 00 15 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 92 [05:58:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 69 77 03 00 0E 04 04 00 15 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 [05:58:43]wFMCommunicate OK [05:58:43]SAM_PROTO_GetFieldsCounters done [05:58:43]requested_item shift.num is exist - process it [05:58:43]requested_item shift.opened is exist - process it [05:58:43]req_shift_opened [05:58:43]FM_GetShiftState [05:58:43]SAM_PROTO_GetShiftState [05:58:43]wFMCommunicate request_size=4 [05:58:43]MH_SAM_APDU [05:58:43]CAPDU: 80 13 01 00 [05:58:43]Write to MH i2c: E2 08 00 8B 1E 80 13 01 00 00 00 00 00 26 [05:58:43]Write i2c OK [05:58:43]MH_I2C_Read... [05:58:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:58:43]Read from MH i2c: E2 [05:58:43]MH_I2C_Read... [05:58:43]Read from MH i2c: E2 0E 00 [05:58:43]MH_I2C_Read... [05:58:43]Read from MH i2c: E2 0E 00 8B 1E 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 40 [05:58:43]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [05:58:43]wFMCommunicate OK [05:58:43]SAM_PROTO_GetShiftState done [05:58:43]FM_GetShiftState done [05:58:43]req_shift_opened done [05:58:43]requested_item shift.open_date is exist - process it [05:58:43]req_shift_open_date [05:58:43]req_shift_open_date done [05:58:43]produce_requested_data done [05:58:43]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227177,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [05:58:43]process_action_free close_receipt [05:58:43]json_value_free [05:58:43]json_value_free done [05:58:43]process_json_proto returns [05:58:43]Send response to host [05:58:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227177,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [05:58:43]free response buf [05:58:43]execute_script done [05:58:43]execute_script returns [05:58:43]free content buf [05:58:43]Sock 8.Close socket [05:58:43]Sock 8.Thread stoped [05:58:43]OFD Sender: No OFD packet to send [05:58:48]OFD Sender: No OFD packet to send [05:58:53]OFD Sender: No OFD packet to send [05:58:58]OFD Sender: No OFD packet to send [05:59:03]OFD Sender: No OFD packet to send [05:59:08]OFD Sender: No OFD packet to send [05:59:13]OFD Sender: No OFD packet to send [05:59:18]OFD Sender: No OFD packet to send [05:59:23]OFD Sender: No OFD packet to send [05:59:28]OFD Sender: No OFD packet to send [05:59:33]OFD Sender: No OFD packet to send [05:59:38]OFD Sender: No OFD packet to send [05:59:43]OFD Sender: No OFD packet to send [05:59:48]OFD Sender: No OFD packet to send [05:59:53]OFD Sender: No OFD packet to send [05:59:58]OFD Sender: No OFD packet to send [06:00:03]OFD Sender: No OFD packet to send [06:00:08]OFD Sender: No OFD packet to send [06:00:13]OFD Sender: No OFD packet to send [06:00:18]OFD Sender: No OFD packet to send [06:00:23]OFD Sender: No OFD packet to send [06:00:28]OFD Sender: No OFD packet to send [06:00:33]OFD Sender: No OFD packet to send [06:00:38]OFD Sender: No OFD packet to send [06:00:43]OFD Sender: No OFD packet to send [06:00:48]OFD Sender: No OFD packet to send [06:00:53]OFD Sender: No OFD packet to send [06:00:58]OFD Sender: No OFD packet to send [06:01:03]OFD Sender: No OFD packet to send [06:01:08]OFD Sender: No OFD packet to send [06:01:13]OFD Sender: No OFD packet to send [06:01:18]OFD Sender: No OFD packet to send [06:01:23]OFD Sender: No OFD packet to send [06:01:28]OFD Sender: No OFD packet to send [06:01:33]OFD Sender: No OFD packet to send [06:01:38]OFD Sender: No OFD packet to send [06:01:43]OFD Sender: No OFD packet to send [06:01:48]OFD Sender: No OFD packet to send [06:01:53]OFD Sender: No OFD packet to send [06:01:58]OFD Sender: No OFD packet to send [06:02:03]OFD Sender: No OFD packet to send [06:02:08]OFD Sender: No OFD packet to send [06:02:13]OFD Sender: No OFD packet to send [06:02:18]OFD Sender: No OFD packet to send [06:02:23]OFD Sender: No OFD packet to send [06:02:28]OFD Sender: No OFD packet to send [06:02:33]OFD Sender: No OFD packet to send [06:02:38]OFD Sender: No OFD packet to send [06:02:43]OFD Sender: No OFD packet to send [06:02:48]OFD Sender: No OFD packet to send [06:02:53]OFD Sender: No OFD packet to send [06:02:58]OFD Sender: No OFD packet to send [06:03:03]OFD Sender: No OFD packet to send [06:03:08]OFD Sender: No OFD packet to send [06:03:13]OFD Sender: No OFD packet to send [06:03:18]OFD Sender: No OFD packet to send [06:03:23]OFD Sender: No OFD packet to send [06:03:28]OFD Sender: No OFD packet to send [06:03:29]accept exits with 9 [06:03:29]New connection [06:03:29]New thread 3066821988 created [06:03:29]Thread 3066965348 joined [06:03:29]Waiting for new connection... [06:03:29] Sock 9.Parse request [06:03:29]Sock 9.Check first char [06:03:29]Sock 9.First char is OK [06:03:29]request: POST /json_proto HTTP/1.0 [06:03:29]Method: POST [06:03:29]URL: /json_proto [06:03:29]Method is POST - this is cgi request [06:03:29]url: /json_proto [06:03:29]query_string will be loaded in cgi processing [06:03:29]execute_cgi json_proto POST (null) [06:03:29]execute_cgi path=json_proto method=POST [06:03:29]POST find Content-Length [06:03:29]Host: 172.17.44.195:8080 [06:03:29]Content-Length: 801 [06:03:29]Content-Type: application/json [06:03:29] [06:03:29]POST finish read [06:03:29]Found Content-Length = 801 [06:03:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962629", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4220996", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:03:29]execute_script... [06:03:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962629", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4220996", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:03:29]POST & json_proto [06:03:29]process_json_proto [06:03:29]json parsed OK: [06:03:29]protocol is kg_v1.0 [06:03:29]action value=close_receipt [06:03:29]process_action close_receipt [06:03:29]cmd_close_receipt [06:03:29]MH_GetDate [06:03:29]Write to MH i2c: F0 00 00 8C 1E 99 [06:03:29]Write i2c OK [06:03:29]MH_I2C_Read... [06:03:29]Read from MH i2c: F0 [06:03:29]MH_I2C_Read... [06:03:29]Read from MH i2c: F0 09 00 [06:03:29]MH_I2C_Read... [06:03:29]Read from MH i2c: F0 09 00 8C 1E 00 34 9D 14 67 82 C9 CF 66 6E [06:03:29]GetLastDocTimeStamp 1729403923 [06:03:29]current date 1729404212 [06:03:29]FM_GetShiftState [06:03:29]SAM_PROTO_GetShiftState [06:03:29]wFMCommunicate request_size=4 [06:03:29]MH_SAM_APDU [06:03:29]CAPDU: 80 13 01 00 [06:03:29]Write to MH i2c: E2 08 00 8D 1E 80 13 01 00 00 00 00 00 28 [06:03:29]Write i2c OK [06:03:29]MH_I2C_Read... [06:03:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:03:29]Read from MH i2c: E2 [06:03:29]MH_I2C_Read... [06:03:29]Read from MH i2c: E2 0E 00 [06:03:29]MH_I2C_Read... [06:03:29]Read from MH i2c: E2 0E 00 8D 1E 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 42 [06:03:29]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [06:03:29]wFMCommunicate OK [06:03:29]SAM_PROTO_GetShiftState done [06:03:29]FM_GetShiftState done [06:03:29]opened in 1729383750 [06:03:29]opened+sec_in_day 1729470150 [06:03:29]quantity*price = 0 [06:03:29]sum+1 = 1 [06:03:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 26 20.10.2024 06:03 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Талоны: Топливные Талоны 4220996 ФМ: 0000000000871839 ФД: 227178 ФПД: 213769112031098 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T060332&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227178&fm=213769112031098&tin=02508201610067®Number=0000000000091685&sum=0 [06:03:30]StoreToDocumentArchive [06:03:30]shift 533 fd 227178 [06:03:30]save to /storage/0533/doc_00227178 [06:03:30]save last doc name /storage/0533/doc_00227178 to /storage/kkm_last_doc_name [06:03:30]save OK [06:03:30]Clear old archive folders... [06:03:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:03:30]tlvbuf is B6DAB440 [06:03:30]SAM_PROTO_ClearQueue [06:03:30]wFMCommunicate request_size=4 [06:03:30]MH_SAM_APDU [06:03:30]CAPDU: 80 09 00 00 [06:03:30]Write to MH i2c: E2 08 00 9A 1E 80 09 00 00 00 00 00 00 2A [06:03:30]Write i2c OK [06:03:30]MH_I2C_Read... [06:03:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:03:30]Read from MH i2c: E2 [06:03:30]MH_I2C_Read... [06:03:30]Read from MH i2c: E2 03 00 [06:03:30]MH_I2C_Read... [06:03:30]Read from MH i2c: E2 03 00 9A 1E 00 90 00 2C [06:03:30]RAPDU: 90 00 [06:03:30]wFMCommunicate OK [06:03:30]SAM_PROTO_ClearQueue done [06:03:30]KKMCreateOFDPacket [06:03:30]OFDProtocolAddRootSTLVToBuf [06:03:30]FM_MakeSignedData [06:03:30]FM_MakeSignedData [06:03:30]SAM_PROTO_SignData [06:03:30]wFMCommunicate request_size=4 [06:03:30]MH_SAM_APDU [06:03:30]CAPDU: 80 0D 01 02 [06:03:30]Write to MH i2c: E2 08 00 9B 1E 80 0D 01 02 00 00 00 00 32 [06:03:30]Write i2c OK [06:03:30]MH_I2C_Read... [06:03:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:03:30]Read from MH i2c: E2 [06:03:30]MH_I2C_Read... [06:03:30]Read from MH i2c: E2 03 00 [06:03:30]MH_I2C_Read... [06:03:30]Read from MH i2c: E2 03 00 9B 1E 00 90 00 2D [06:03:30]RAPDU: 90 00 [06:03:30]wFMCommunicate OK [06:03:30]wFMCommunicate request_size=255 [06:03:30]MH_SAM_APDU [06:03:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1A 00 00 00 F4 03 04 00 34 9D 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6A 77 03 00 35 04 06 00 C2 [06:03:30]Write to MH i2c: E2 02 01 9C 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1A 00 00 00 F4 03 04 00 34 9D 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6A 77 03 00 35 04 06 00 C2 00 00 9E [06:03:30]Write i2c OK [06:03:30]MH_I2C_Read... [06:03:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:03:31]Read from MH i2c: E2 [06:03:31]MH_I2C_Read... [06:03:31]Read from MH i2c: E2 03 00 [06:03:31]MH_I2C_Read... [06:03:31]Read from MH i2c: E2 03 00 9C 1E 00 90 00 2E [06:03:31]RAPDU: 90 00 [06:03:31]wFMCommunicate OK [06:03:31]wFMCommunicate request_size=10 [06:03:31]MH_SAM_APDU [06:03:31]CAPDU: 80 0D 02 02 05 6B FF FC 8F 7A [06:03:31]Write to MH i2c: E2 0D 00 9D 1E 80 0D 02 02 05 00 6B FF FC 8F 7A 00 00 AE [06:03:31]Write i2c OK [06:03:31]MH_I2C_Read... [06:03:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:03:31]Read from MH i2c: E2 [06:03:31]MH_I2C_Read... [06:03:31]Read from MH i2c: E2 03 00 [06:03:31]MH_I2C_Read... [06:03:31]Read from MH i2c: E2 03 00 9D 1E 00 90 00 2F [06:03:31]RAPDU: 90 00 [06:03:31]wFMCommunicate OK [06:03:31]wFMCommunicate request_size=4 [06:03:31]MH_SAM_APDU [06:03:31]CAPDU: 80 0D 03 02 [06:03:31]Write to MH i2c: E2 08 00 9E 1E 80 0D 03 02 00 00 00 00 37 [06:03:31]Write i2c OK [06:03:31]MH_I2C_Read... [06:03:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:03:31]Read from MH i2c: E2 [06:03:31]MH_I2C_Read... [06:03:31]Read from MH i2c: E2 0B 00 [06:03:31]MH_I2C_Read... [06:03:31]Read from MH i2c: E2 0B 00 9E 1E 00 74 0D C2 C4 FC 46 0F 61 90 00 F1 [06:03:31]RAPDU: 74 0D C2 C4 FC 46 0F 61 90 00 [06:03:31]wFMCommunicate OK [06:03:31]SAM_PROTO_SignData done [06:03:31]FM_MakeSignedData done [06:03:31]CreateOFDProtocolMessage [06:03:31]wFMCommunicate request_size=4 [06:03:31]MH_SAM_APDU [06:03:31]CAPDU: 80 11 00 00 [06:03:31]Write to MH i2c: E2 08 00 9F 1E 80 11 00 00 00 00 00 00 37 [06:03:31]Write i2c OK [06:03:31]MH_I2C_Read... [06:03:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:03:31]Read from MH i2c: E2 [06:03:31]MH_I2C_Read... [06:03:31]Read from MH i2c: E2 17 00 [06:03:31]MH_I2C_Read... [06:03:31]Read from MH i2c: E2 17 00 9F 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 8E [06:03:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [06:03:31]wFMCommunicate OK [06:03:31]CreateOFDProtocolMessage done [06:03:31]OFDSenderStorePacket 227178 [06:03:31]StoreOFDPacket docnum=227178 [06:03:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 A1 54 07 01 E9 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 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 1A 00 00 00 F4 03 04 00 34 9D 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6A 77 03 00 35 04 06 00 C2 6B FF FC 8F 7A 74 0D C2 C4 FC 46 0F 61 [06:03:31]CheckFolder [06:03:31]dirname=/storage/ofd_packets [06:03:31]CheckFolder done [06:03:31]ProducePacketName [06:03:31]name=ofd_packets/00227178 [06:03:31]NVStorageSaveData ofd_packets/00227178 [06:03:31]File name is /storage/ofd_packets/00227178 [06:03:31]Write 301 bytes [06:03:31]NVStorageSaveData done [06:03:31]OFDSenderStorePacket done [06:03:31]KKMCreateOFDPacket done [06:03:31]NVStorageSaveData kkm_last_timestamp [06:03:31]File name is /storage/kkm_last_timestamp [06:03:31]Write 4 bytes [06:03:31]NVStorageSaveData done [06:03:31]ExternCall_PrintAddStr [06:03:31]wPrintStart [06:03:31]Write to MH i2c: 01 00 00 A0 1E BE [06:03:31]Write i2c OK [06:03:31]MH_I2C_Read... [06:03:31]Read from MH i2c: 01 [06:03:31]MH_I2C_Read... [06:03:31]Read from MH i2c: 01 07 00 [06:03:31]MH_I2C_Read... [06:03:31]Read from MH i2c: 01 07 00 A0 1E 00 00 00 00 00 FF 0F D3 [06:03:31]RasterBufferAndPrint [06:03:31]line Счет N : (1)1962629 [06:03:31]line ИНН: 02508201610067 [06:03:31]line Контрольно-Кассовый Чек [06:03:31]line ПРОДАЖА [06:03:31]line ТРК (МРК, ГНК) : 33 [06:03:31]line Товар: 2710124130 [06:03:31]line Аи-92-К-5 [06:03:31]line 10.000 * 0.00 [06:03:31]line = 0.00 [06:03:31]line НДС 12% НСП 1% [06:03:31]line > о реализуемом товаре [06:03:31]line ИТОГО: 0.00 [06:03:31]line НСП 1% : 0.00 [06:03:31]line НДС 12% : 0.00 [06:03:31]line Наличными: 0.00 [06:03:31]line Безнал.: 0.00 [06:03:31]line Место: АЗС № 133 "Партнер Нефть" [06:03:31]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [06:03:31]line СНО: Общий режим [06:03:31]line Чек 26 20.10.2024 06:03 [06:03:31]line Смена: 533 ФФД: 1.0 [06:03:31]line ЗНМ: 0300000091 [06:03:31]line РНМ: 0000000000091685 [06:03:31]line Версия ККМ: 001 [06:03:31]line Талоны: Топливные Талоны [06:03:31]line 4220996 [06:03:31]line ФМ: 0000000000871839 [06:03:31]line ФД: 227178 [06:03:31]line ФПД: 213769112031098 [06:03:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T060332&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227178&fm=213769112031098&tin=02508201610067®Number=0000000000091685&sum=0 [06:03:31]written 0, free lines is 4095 [06:03:31]OFD Sender: Processing packet 227178 [packets to send 38, broken 37] [06:03:31]ProducePacketName [06:03:31]name=ofd_packets/00227178 [06:03:31]OFD Sender: To server: pG, [06:03:31]CommunicateWithHost lk.salyk.kg:30040 [06:03:31]ConnectInit lk.salyk.kg [06:03:31]Connected sock=10 [06:03: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 33 39 0F 01 00 00 A1 54 07 01 E9 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 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 1A 00 00 00 F4 03 04 00 34 9D 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6A 77 03 00 35 04 06 00 C2 6B FF FC 8F 7A 74 0D C2 C4 FC 46 0F 61 [06:03: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 33 39 4F 00 00 00 EB B8 47 00 58 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6A 77 03 00 F4 03 04 00 34 48 14 67 B6 04 01 00 00 08 9F 8C 34 4C 06 FF 70 [06:03:31]CommunicateWithHost err = 0 [06:03:31]CheckOFDResponse [06:03:31]1017 (14) - 77093643461234 [06:03:31]1041 (16) - 0000000000871839 [06:03:31]1040 (4) - 227178 [06:03:31]1012 (4) - 20.10.2024 00:00 [06:03:31]1206 (1) - 0 [06:03:31]OFD Sender: Remove packet 227178 [06:03:31]ProducePacketName [06:03:31]name=ofd_packets/00227178 [06:03:31]NVStorageDeleteData [06:03:31]Write to MH i2c: 01 00 00 C9 1E E7 [06:03:31]Write i2c OK [06:03:31]MH_I2C_Read... [06:03:31]Read from MH i2c: 01 [06:03:31]MH_I2C_Read... [06:03:31]Read from MH i2c: 01 07 00 [06:03:31]MH_I2C_Read... [06:03:31]Read from MH i2c: 01 07 00 C9 1E 00 00 00 00 00 13 0D 0E [06:03:31]RasterBufferAndPrint [06:03:31]line [06:03:31]line [06:03:31]line [06:03:31]line [06:03:31]line [06:03:31]written 0, free lines is 3353 [06:03:31]process_action close_receipt done [06:03:31]requested_data is exist [06:03:31]produce_requested_data [06:03:31]requested_item fm.sn is exist - process it [06:03:31]wFMCommunicate request_size=4 [06:03:31]MH_SAM_APDU [06:03:31]CAPDU: 80 11 00 00 [06:03:31]Write to MH i2c: E2 08 00 D0 1E 80 11 00 00 00 00 00 00 68 [06:03:31]Write i2c OK [06:03:31]MH_I2C_Read... [06:03:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:03:31]Read from MH i2c: E2 [06:03:31]MH_I2C_Read... [06:03:31]Read from MH i2c: E2 17 00 [06:03:31]MH_I2C_Read... [06:03:31]Read from MH i2c: E2 17 00 D0 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 BF [06:03:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [06:03:31]wFMCommunicate OK [06:03:31]requested_item fd.num is exist - process it [06:03:31]SAM_PROTO_GetFieldsCounters [06:03:31]wFMCommunicate request_size=4 [06:03:31]MH_SAM_APDU [06:03:31]CAPDU: 80 13 00 00 [06:03:31]Write to MH i2c: E2 08 00 D1 1E 80 13 00 00 00 00 00 00 6B [06:03:31]Write i2c OK [06:03:31]MH_I2C_Read... [06:03:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:03:31]Read from MH i2c: E2 [06:03:31]MH_I2C_Read... [06:03:31]Read from MH i2c: E2 62 00 [06:03:31]MH_I2C_Read... [06:03:31]Read from MH i2c: E2 62 00 D1 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6A 77 03 00 0E 04 04 00 15 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 DD [06:03: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6A 77 03 00 0E 04 04 00 15 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 [06:03:31]wFMCommunicate OK [06:03:31]SAM_PROTO_GetFieldsCounters done [06:03:31]requested_item shift.num is exist - process it [06:03:31]requested_item shift.opened is exist - process it [06:03:31]req_shift_opened [06:03:31]FM_GetShiftState [06:03:31]SAM_PROTO_GetShiftState [06:03:31]wFMCommunicate request_size=4 [06:03:31]MH_SAM_APDU [06:03:31]CAPDU: 80 13 01 00 [06:03:31]Write to MH i2c: E2 08 00 D2 1E 80 13 01 00 00 00 00 00 6D [06:03:31]Write i2c OK [06:03:31]MH_I2C_Read... [06:03:32]Read from MH i2c: E2 [06:03:32]MH_I2C_Read... [06:03:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:03:32]Read from MH i2c: E2 0E 00 [06:03:32]MH_I2C_Read... [06:03:32]Read from MH i2c: E2 0E 00 D2 1E 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 87 [06:03:32]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [06:03:32]wFMCommunicate OK [06:03:32]SAM_PROTO_GetShiftState done [06:03:32]FM_GetShiftState done [06:03:32]req_shift_opened done [06:03:32]requested_item shift.open_date is exist - process it [06:03:32]req_shift_open_date [06:03:32]req_shift_open_date done [06:03:32]produce_requested_data done [06:03:32]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227178,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [06:03:32]process_action_free close_receipt [06:03:32]json_value_free [06:03:32]json_value_free done [06:03:32]process_json_proto returns [06:03:32]Send response to host [06:03:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227178,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [06:03:32]free response buf [06:03:32]execute_script done [06:03:32]execute_script returns [06:03:32]free content buf [06:03:32]Sock 9.Close socket [06:03:32]Sock 9.Thread stoped [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:18]accept exits with 8 [06:04:18]New connection [06:04:18]New thread 3066965348 created [06:04:18]Thread 3066821988 joined [06:04:18]Waiting for new connection... [06:04:18] Sock 8.Parse request [06:04:18]Sock 8.Check first char [06:04:18]Sock 8.First char is OK [06:04:18]request: POST /json_proto HTTP/1.0 [06:04:18]Method: POST [06:04:18]URL: /json_proto [06:04:18]Method is POST - this is cgi request [06:04:18]url: /json_proto [06:04:18]query_string will be loaded in cgi processing [06:04:18]execute_cgi json_proto POST (null) [06:04:18]execute_cgi path=json_proto method=POST [06:04:18]POST find Content-Length [06:04:18]Host: 172.17.44.195:8080 [06:04:18]Content-Length: 678 [06:04:18]Content-Type: application/json [06:04:18] [06:04:18]POST finish read [06:04:18]Found Content-Length = 678 [06:04:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962630", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:04:18]execute_script... [06:04: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)1962630", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:04:18]POST & json_proto [06:04:18]process_json_proto [06:04:18]json parsed OK: [06:04:18]protocol is kg_v1.0 [06:04:18]action value=close_receipt [06:04:18]process_action close_receipt [06:04:18]cmd_close_receipt [06:04:18]MH_GetDate [06:04:18]Write to MH i2c: F0 00 00 D3 1E E0 [06:04:18]Write i2c OK [06:04:18]MH_I2C_Read... [06:04:18]Read from MH i2c: F0 [06:04:18]MH_I2C_Read... [06:04:18]Read from MH i2c: F0 09 00 [06:04:18]MH_I2C_Read... [06:04:18]Read from MH i2c: F0 09 00 D3 1E 00 66 9D 14 67 82 C9 CF 66 E7 [06:04:18]GetLastDocTimeStamp 1729404212 [06:04:18]current date 1729404262 [06:04:18]FM_GetShiftState [06:04:18]SAM_PROTO_GetShiftState [06:04:18]wFMCommunicate request_size=4 [06:04:18]MH_SAM_APDU [06:04:18]CAPDU: 80 13 01 00 [06:04:18]Write to MH i2c: E2 08 00 D4 1E 80 13 01 00 00 00 00 00 6F [06:04:18]Write i2c OK [06:04:18]MH_I2C_Read... [06:04:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:04:18]Read from MH i2c: E2 [06:04:18]MH_I2C_Read... [06:04:18]Read from MH i2c: E2 0E 00 [06:04:18]MH_I2C_Read... [06:04:18]Read from MH i2c: E2 0E 00 D4 1E 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 89 [06:04:18]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [06:04:18]wFMCommunicate OK [06:04:18]SAM_PROTO_GetShiftState done [06:04:18]FM_GetShiftState done [06:04:18]opened in 1729383750 [06:04:18]opened+sec_in_day 1729470150 [06:04:18]quantity*price = 40006 [06:04:18]sum+1 = 40007 [06:04:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 27 20.10.2024 06:04 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227179 ФПД: 39786063653272 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T060422&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227179&fm=39786063653272&tin=02508201610067®Number=0000000000091685&sum=40000 [06:04:19]StoreToDocumentArchive [06:04:19]shift 533 fd 227179 [06:04:19]save to /storage/0533/doc_00227179 [06:04:19]save last doc name /storage/0533/doc_00227179 to /storage/kkm_last_doc_name [06:04:19]save OK [06:04:19]Clear old archive folders... [06:04:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:04:19]tlvbuf is 0053BF90 [06:04:19]SAM_PROTO_ClearQueue [06:04:19]wFMCommunicate request_size=4 [06:04:19]MH_SAM_APDU [06:04:19]CAPDU: 80 09 00 00 [06:04:19]Write to MH i2c: E2 08 00 E1 1E 80 09 00 00 00 00 00 00 71 [06:04:19]Write i2c OK [06:04:19]MH_I2C_Read... [06:04:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:04:19]Read from MH i2c: E2 [06:04:19]MH_I2C_Read... [06:04:19]Read from MH i2c: E2 03 00 [06:04:19]MH_I2C_Read... [06:04:19]Read from MH i2c: E2 03 00 E1 1E 00 90 00 73 [06:04:19]RAPDU: 90 00 [06:04:19]wFMCommunicate OK [06:04:19]SAM_PROTO_ClearQueue done [06:04:19]KKMCreateOFDPacket [06:04:19]OFDProtocolAddRootSTLVToBuf [06:04:19]FM_MakeSignedData [06:04:19]FM_MakeSignedData [06:04:19]SAM_PROTO_SignData [06:04:19]wFMCommunicate request_size=4 [06:04:19]MH_SAM_APDU [06:04:19]CAPDU: 80 0D 01 02 [06:04:19]Write to MH i2c: E2 08 00 E2 1E 80 0D 01 02 00 00 00 00 79 [06:04:19]Write i2c OK [06:04:19]MH_I2C_Read... [06:04:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:04:20]Read from MH i2c: E2 [06:04:20]MH_I2C_Read... [06:04:20]Read from MH i2c: E2 03 00 [06:04:20]MH_I2C_Read... [06:04:20]Read from MH i2c: E2 03 00 E2 1E 00 90 00 74 [06:04:20]RAPDU: 90 00 [06:04:20]wFMCommunicate OK [06:04:20]wFMCommunicate request_size=255 [06:04:20]MH_SAM_APDU [06:04:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 66 9D 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6B 77 03 00 35 04 06 00 24 [06:04:20]Write to MH i2c: E2 02 01 E3 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 66 9D 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6B 77 03 00 35 04 06 00 24 00 00 98 [06:04:20]Write i2c OK [06:04:20]MH_I2C_Read... [06:04:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:04:20]Read from MH i2c: E2 [06:04:20]MH_I2C_Read... [06:04:20]Read from MH i2c: E2 03 00 [06:04:20]MH_I2C_Read... [06:04:20]Read from MH i2c: E2 03 00 E3 1E 00 90 00 75 [06:04:20]RAPDU: 90 00 [06:04:20]wFMCommunicate OK [06:04:20]wFMCommunicate request_size=10 [06:04:20]MH_SAM_APDU [06:04:20]CAPDU: 80 0D 02 02 05 2F 6A 30 E9 98 [06:04:20]Write to MH i2c: E2 0D 00 E4 1E 80 0D 02 02 05 00 2F 6A 30 E9 98 00 00 D0 [06:04:20]Write i2c OK [06:04:20]MH_I2C_Read... [06:04:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:04:20]Read from MH i2c: E2 [06:04:20]MH_I2C_Read... [06:04:20]Read from MH i2c: E2 03 00 [06:04:20]MH_I2C_Read... [06:04:20]Read from MH i2c: E2 03 00 E4 1E 00 90 00 76 [06:04:20]RAPDU: 90 00 [06:04:20]wFMCommunicate OK [06:04:20]wFMCommunicate request_size=4 [06:04:20]MH_SAM_APDU [06:04:20]CAPDU: 80 0D 03 02 [06:04:20]Write to MH i2c: E2 08 00 E5 1E 80 0D 03 02 00 00 00 00 7E [06:04:20]Write i2c OK [06:04:20]MH_I2C_Read... [06:04:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:04:20]Read from MH i2c: E2 [06:04:20]MH_I2C_Read... [06:04:20]Read from MH i2c: E2 0B 00 [06:04:20]MH_I2C_Read... [06:04:20]Read from MH i2c: E2 0B 00 E5 1E 00 F4 1A E1 5A D1 25 0B 07 90 00 D0 [06:04:20]RAPDU: F4 1A E1 5A D1 25 0B 07 90 00 [06:04:20]wFMCommunicate OK [06:04:20]SAM_PROTO_SignData done [06:04:20]FM_MakeSignedData done [06:04:20]CreateOFDProtocolMessage [06:04:20]wFMCommunicate request_size=4 [06:04:20]MH_SAM_APDU [06:04:20]CAPDU: 80 11 00 00 [06:04:20]Write to MH i2c: E2 08 00 E6 1E 80 11 00 00 00 00 00 00 7E [06:04:20]Write i2c OK [06:04:20]MH_I2C_Read... [06:04:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:04:20]Read from MH i2c: E2 [06:04:20]MH_I2C_Read... [06:04:20]Read from MH i2c: E2 17 00 [06:04:20]MH_I2C_Read... [06:04:20]Read from MH i2c: E2 17 00 E6 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D5 [06:04:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [06:04:20]wFMCommunicate OK [06:04:20]CreateOFDProtocolMessage done [06:04:20]OFDSenderStorePacket 227179 [06:04:20]StoreOFDPacket docnum=227179 [06:04:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 50 1D 07 01 55 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 66 9D 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6B 77 03 00 35 04 06 00 24 2F 6A 30 E9 98 F4 1A E1 5A D1 25 0B 07 [06:04:20]CheckFolder [06:04:20]dirname=/storage/ofd_packets [06:04:20]CheckFolder done [06:04:20]ProducePacketName [06:04:20]name=ofd_packets/00227179 [06:04:20]NVStorageSaveData ofd_packets/00227179 [06:04:20]File name is /storage/ofd_packets/00227179 [06:04:20]Write 301 bytes [06:04:20]NVStorageSaveData done [06:04:20]OFDSenderStorePacket done [06:04:20]KKMCreateOFDPacket done [06:04:20]NVStorageSaveData kkm_last_timestamp [06:04:20]File name is /storage/kkm_last_timestamp [06:04:20]Write 4 bytes [06:04:20]NVStorageSaveData done [06:04:20]ExternCall_PrintAddStr [06:04:20]wPrintStart [06:04:20]Write to MH i2c: 01 00 00 E7 1E 05 [06:04:20]Write i2c OK [06:04:20]MH_I2C_Read... [06:04:20]Read from MH i2c: 01 [06:04:20]MH_I2C_Read... [06:04:20]Read from MH i2c: 01 07 00 [06:04:20]MH_I2C_Read... [06:04:20]Read from MH i2c: 01 07 00 E7 1E 00 00 00 00 00 FF 0F 1A [06:04:20]RasterBufferAndPrint [06:04:20]line Счет N : (1)1962630 [06:04:20]line ИНН: 02508201610067 [06:04:20]line Контрольно-Кассовый Чек [06:04:20]line ПРОДАЖА [06:04:20]line ТРК (МРК, ГНК) : 33 [06:04:20]line Товар: 2710124130 [06:04:20]line Аи-92-К-5 [06:04:20]line 5.980 * 66.90 [06:04:20]line = 400.06 [06:04:20]line НДС 12% НСП 1% [06:04:20]line > о реализуемом товаре [06:04:20]line ОКРУГЛЕНИЕ: -0.06 [06:04:20]line ИТОГО: 400.00 [06:04:20]line Внесено: 400.00 [06:04:20]line СДАЧА: 0.00 [06:04:20]line НСП 1% : 3.54 [06:04:20]line НДС 12% : 42.48 [06:04:20]line Наличными: 400.00 [06:04:20]line Безнал.: 0.00 [06:04:20]line Место: АЗС № 133 "Партнер Нефть" [06:04:20]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [06:04:20]line СНО: Общий режим [06:04:20]line Чек 27 20.10.2024 06:04 [06:04:20]line Смена: 533 ФФД: 1.0 [06:04:20]line ЗНМ: 0300000091 [06:04:20]line РНМ: 0000000000091685 [06:04:20]line Версия ККМ: 001 [06:04:20]line ФМ: 0000000000871839 [06:04:20]line ФД: 227179 [06:04:20]line ФПД: 39786063653272 [06:04:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T060422&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227179&fm=39786063653272&tin=02508201610067®Number=0000000000091685&sum=40000 [06:04:20]written 0, free lines is 4095 [06:04:20]OFD Sender: Processing packet 227179 [packets to send 38, broken 37] [06:04:20]ProducePacketName [06:04:20]name=ofd_packets/00227179 [06:04:20]OFD Sender: To server: pG, [06:04:20]CommunicateWithHost lk.salyk.kg:30040 [06:04:20]ConnectInit lk.salyk.kg [06:04:20]Connected sock=10 [06:04: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 33 39 0F 01 00 00 50 1D 07 01 55 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 66 9D 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6B 77 03 00 35 04 06 00 24 2F 6A 30 E9 98 F4 1A E1 5A D1 25 0B 07 [06:04:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 68 43 47 00 8A 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 33 39 10 04 04 00 6B 77 03 00 F4 03 04 00 65 48 14 67 B6 04 01 00 00 6E 26 6C AF 28 4B 61 C7 [06:04:20]CommunicateWithHost err = 0 [06:04:20]CheckOFDResponse [06:04:20]1017 (14) - 77093643461234 [06:04:20]1041 (16) - 0000000000871839 [06:04:20]1040 (4) - 227179 [06:04:20]1012 (4) - 20.10.2024 00:01 [06:04:20]1206 (1) - 0 [06:04:20]OFD Sender: Remove packet 227179 [06:04:20]ProducePacketName [06:04:20]name=ofd_packets/00227179 [06:04:20]NVStorageDeleteData [06:04:20]Write to MH i2c: 01 00 00 11 1F 30 [06:04:20]Write i2c OK [06:04:20]MH_I2C_Read... [06:04:20]Read from MH i2c: 01 [06:04:20]MH_I2C_Read... [06:04:20]Read from MH i2c: 01 07 00 [06:04:20]MH_I2C_Read... [06:04:20]Read from MH i2c: 01 07 00 11 1F 00 00 00 00 00 08 0D 4C [06:04:20]RasterBufferAndPrint [06:04:20]line [06:04:20]line [06:04:20]line [06:04:20]line [06:04:20]line [06:04:20]written 0, free lines is 3343 [06:04:20]process_action close_receipt done [06:04:20]requested_data is exist [06:04:20]produce_requested_data [06:04:20]requested_item fm.sn is exist - process it [06:04:20]wFMCommunicate request_size=4 [06:04:20]MH_SAM_APDU [06:04:20]CAPDU: 80 11 00 00 [06:04:20]Write to MH i2c: E2 08 00 18 1F 80 11 00 00 00 00 00 00 B1 [06:04:20]Write i2c OK [06:04:20]MH_I2C_Read... [06:04:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:04:21]Read from MH i2c: E2 [06:04:21]MH_I2C_Read... [06:04:21]Read from MH i2c: E2 17 00 [06:04:21]MH_I2C_Read... [06:04:21]Read from MH i2c: E2 17 00 18 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 08 [06:04:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [06:04:21]wFMCommunicate OK [06:04:21]requested_item fd.num is exist - process it [06:04:21]SAM_PROTO_GetFieldsCounters [06:04:21]wFMCommunicate request_size=4 [06:04:21]MH_SAM_APDU [06:04:21]CAPDU: 80 13 00 00 [06:04:21]Write to MH i2c: E2 08 00 19 1F 80 13 00 00 00 00 00 00 B4 [06:04:21]Write i2c OK [06:04:21]MH_I2C_Read... [06:04:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:04:21]Read from MH i2c: E2 [06:04:21]MH_I2C_Read... [06:04:21]Read from MH i2c: E2 62 00 [06:04:21]MH_I2C_Read... [06:04:21]Read from MH i2c: E2 62 00 19 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6B 77 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [06:04:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6B 77 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:04:21]wFMCommunicate OK [06:04:21]SAM_PROTO_GetFieldsCounters done [06:04:21]requested_item shift.num is exist - process it [06:04:21]requested_item shift.opened is exist - process it [06:04:21]req_shift_opened [06:04:21]FM_GetShiftState [06:04:21]SAM_PROTO_GetShiftState [06:04:21]wFMCommunicate request_size=4 [06:04:21]MH_SAM_APDU [06:04:21]CAPDU: 80 13 01 00 [06:04:21]Write to MH i2c: E2 08 00 1A 1F 80 13 01 00 00 00 00 00 B6 [06:04:21]Write i2c OK [06:04:21]MH_I2C_Read... [06:04:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:04:21]Read from MH i2c: E2 [06:04:21]MH_I2C_Read... [06:04:21]Read from MH i2c: E2 0E 00 [06:04:21]MH_I2C_Read... [06:04:21]Read from MH i2c: E2 0E 00 1A 1F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 D0 [06:04:21]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [06:04:21]wFMCommunicate OK [06:04:21]SAM_PROTO_GetShiftState done [06:04:21]FM_GetShiftState done [06:04:21]req_shift_opened done [06:04:21]requested_item shift.open_date is exist - process it [06:04:21]req_shift_open_date [06:04:21]req_shift_open_date done [06:04:21]produce_requested_data done [06:04:21]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227179,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [06:04:21]process_action_free close_receipt [06:04:21]json_value_free [06:04:21]json_value_free done [06:04:21]process_json_proto returns [06:04:21]Send response to host [06:04:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227179,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [06:04:21]free response buf [06:04:21]execute_script done [06:04:21]execute_script returns [06:04:21]free content buf [06:04:21]Sock 8.Close socket [06:04:21]Sock 8.Thread stoped [06:04:21]OFD Sender: No OFD packet to send [06:04:26]OFD Sender: No OFD packet to send [06:04:31]OFD Sender: No OFD packet to send [06:04:36]OFD Sender: No OFD packet to send [06:04:41]OFD Sender: No OFD packet to send [06:04:46]OFD Sender: No OFD packet to send [06:04:51]OFD Sender: No OFD packet to send [06:04:56]OFD Sender: No OFD packet to send [06:05:01]OFD Sender: No OFD packet to send [06:05:06]OFD Sender: No OFD packet to send [06:05:11]OFD Sender: No OFD packet to send [06:05:16]OFD Sender: No OFD packet to send [06:05:21]OFD Sender: No OFD packet to send [06:05:25]accept exits with 9 [06:05:25]New connection [06:05:25]New thread 3066821988 created [06:05:25]Thread 3066965348 joined [06:05:25]Waiting for new connection... [06:05:25] Sock 9.Parse request [06:05:25]Sock 9.Check first char [06:05:25]Sock 9.First char is OK [06:05:25]request: POST /json_proto HTTP/1.0 [06:05:25]Method: POST [06:05:25]URL: /json_proto [06:05:25]Method is POST - this is cgi request [06:05:25]url: /json_proto [06:05:25]query_string will be loaded in cgi processing [06:05:25]execute_cgi json_proto POST (null) [06:05:25]execute_cgi path=json_proto method=POST [06:05:25]POST find Content-Length [06:05:25]Host: 172.17.44.195:8080 [06:05:25]Content-Length: 678 [06:05:25]Content-Type: application/json [06:05:25] [06:05:25]POST finish read [06:05:25]Found Content-Length = 678 [06:05:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962631", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.340, "sum" : 290.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 290.00, "total" : 290.00, "payments": [ { "type": 0, "sum" : 290.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:05:25]execute_script... [06:05: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)1962631", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.340, "sum" : 290.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 290.00, "total" : 290.00, "payments": [ { "type": 0, "sum" : 290.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:05:25]POST & json_proto [06:05:25]process_json_proto [06:05:25]json parsed OK: [06:05:25]protocol is kg_v1.0 [06:05:25]action value=close_receipt [06:05:25]process_action close_receipt [06:05:25]cmd_close_receipt [06:05:25]MH_GetDate [06:05:25]Write to MH i2c: F0 00 00 1B 1F 29 [06:05:25]Write i2c OK [06:05:25]MH_I2C_Read... [06:05:25]Read from MH i2c: F0 [06:05:25]MH_I2C_Read... [06:05:25]Read from MH i2c: F0 09 00 [06:05:25]MH_I2C_Read... [06:05:25]Read from MH i2c: F0 09 00 1B 1F 00 A9 9D 14 67 82 C9 CF 66 73 [06:05:25]GetLastDocTimeStamp 1729404262 [06:05:25]current date 1729404329 [06:05:25]FM_GetShiftState [06:05:25]SAM_PROTO_GetShiftState [06:05:25]wFMCommunicate request_size=4 [06:05:25]MH_SAM_APDU [06:05:25]CAPDU: 80 13 01 00 [06:05:25]Write to MH i2c: E2 08 00 1C 1F 80 13 01 00 00 00 00 00 B8 [06:05:25]Write i2c OK [06:05:25]MH_I2C_Read... [06:05:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:05:25]Read from MH i2c: E2 [06:05:25]MH_I2C_Read... [06:05:25]Read from MH i2c: E2 0E 00 [06:05:25]MH_I2C_Read... [06:05:25]Read from MH i2c: E2 0E 00 1C 1F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 D2 [06:05:26]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [06:05:26]wFMCommunicate OK [06:05:26]SAM_PROTO_GetShiftState done [06:05:26]FM_GetShiftState done [06:05:26]opened in 1729383750 [06:05:26]opened+sec_in_day 1729470150 [06:05:26]quantity*price = 29034 [06:05:26]sum+1 = 29036 [06:05:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 290.00 Внесено: 290.00 СДАЧА: 0.00 НСП 1% : 2.57 НДС 12% : 30.83 Наличными: 290.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 28 20.10.2024 06:05 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227180 ФПД: 78018108385829 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T060529&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227180&fm=78018108385829&tin=02508201610067®Number=0000000000091685&sum=29000 [06:05:27]StoreToDocumentArchive [06:05:27]shift 533 fd 227180 [06:05:27]save to /storage/0533/doc_00227180 [06:05:27]save last doc name /storage/0533/doc_00227180 to /storage/kkm_last_doc_name [06:05:27]save OK [06:05:27]Clear old archive folders... [06:05:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:05:27]tlvbuf is B6F5B370 [06:05:27]SAM_PROTO_ClearQueue [06:05:27]wFMCommunicate request_size=4 [06:05:27]MH_SAM_APDU [06:05:27]CAPDU: 80 09 00 00 [06:05:27]Write to MH i2c: E2 08 00 29 1F 80 09 00 00 00 00 00 00 BA [06:05:27]Write i2c OK [06:05:27]MH_I2C_Read... [06:05:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:05:27]Read from MH i2c: E2 [06:05:27]MH_I2C_Read... [06:05:27]Read from MH i2c: E2 03 00 [06:05:27]MH_I2C_Read... [06:05:27]Read from MH i2c: E2 03 00 29 1F 00 90 00 BC [06:05:27]RAPDU: 90 00 [06:05:27]wFMCommunicate OK [06:05:27]SAM_PROTO_ClearQueue done [06:05:27]KKMCreateOFDPacket [06:05:27]OFDProtocolAddRootSTLVToBuf [06:05:27]FM_MakeSignedData [06:05:27]FM_MakeSignedData [06:05:27]SAM_PROTO_SignData [06:05:27]wFMCommunicate request_size=4 [06:05:27]MH_SAM_APDU [06:05:27]CAPDU: 80 0D 01 02 [06:05:27]Write to MH i2c: E2 08 00 2A 1F 80 0D 01 02 00 00 00 00 C2 [06:05:27]Write i2c OK [06:05:27]MH_I2C_Read... [06:05:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:05:27]Read from MH i2c: E2 [06:05:27]MH_I2C_Read... [06:05:27]Read from MH i2c: E2 03 00 [06:05:27]MH_I2C_Read... [06:05:27]Read from MH i2c: E2 03 00 2A 1F 00 90 00 BD [06:05:27]RAPDU: 90 00 [06:05:27]wFMCommunicate OK [06:05:27]wFMCommunicate request_size=255 [06:05:27]MH_SAM_APDU [06:05:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F4 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6B 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 A9 9D 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6C 77 03 00 35 04 06 00 46 [06:05:27]Write to MH i2c: E2 02 01 2B 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F4 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6B 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 A9 9D 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6C 77 03 00 35 04 06 00 46 00 00 9B [06:05:27]Write i2c OK [06:05:27]MH_I2C_Read... [06:05:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:05:27]Read from MH i2c: E2 [06:05:27]MH_I2C_Read... [06:05:27]Read from MH i2c: E2 03 00 [06:05:27]MH_I2C_Read... [06:05:27]Read from MH i2c: E2 03 00 2B 1F 00 90 00 BE [06:05:27]RAPDU: 90 00 [06:05:27]wFMCommunicate OK [06:05:27]wFMCommunicate request_size=10 [06:05:27]MH_SAM_APDU [06:05:27]CAPDU: 80 0D 02 02 05 F5 01 A2 EA 25 [06:05:27]Write to MH i2c: E2 0D 00 2C 1F 80 0D 02 02 05 00 F5 01 A2 EA 25 00 00 76 [06:05:27]Write i2c OK [06:05:27]MH_I2C_Read... [06:05:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:05:27]Read from MH i2c: E2 [06:05:27]MH_I2C_Read... [06:05:27]Read from MH i2c: E2 03 00 [06:05:27]MH_I2C_Read... [06:05:27]Read from MH i2c: E2 03 00 2C 1F 00 90 00 BF [06:05:27]RAPDU: 90 00 [06:05:27]wFMCommunicate OK [06:05:27]wFMCommunicate request_size=4 [06:05:27]MH_SAM_APDU [06:05:27]CAPDU: 80 0D 03 02 [06:05:27]Write to MH i2c: E2 08 00 2D 1F 80 0D 03 02 00 00 00 00 C7 [06:05:27]Write i2c OK [06:05:27]MH_I2C_Read... [06:05:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:05:27]Read from MH i2c: E2 [06:05:27]MH_I2C_Read... [06:05:27]Read from MH i2c: E2 0B 00 [06:05:27]MH_I2C_Read... [06:05:27]Read from MH i2c: E2 0B 00 2D 1F 00 0B DD 97 46 D1 E5 CD A2 90 00 B2 [06:05:27]RAPDU: 0B DD 97 46 D1 E5 CD A2 90 00 [06:05:27]wFMCommunicate OK [06:05:27]SAM_PROTO_SignData done [06:05:27]FM_MakeSignedData done [06:05:27]CreateOFDProtocolMessage [06:05:27]wFMCommunicate request_size=4 [06:05:27]MH_SAM_APDU [06:05:27]CAPDU: 80 11 00 00 [06:05:27]Write to MH i2c: E2 08 00 2E 1F 80 11 00 00 00 00 00 00 C7 [06:05:27]Write i2c OK [06:05:27]MH_I2C_Read... [06:05:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:05:27]Read from MH i2c: E2 [06:05:27]MH_I2C_Read... [06:05:27]Read from MH i2c: E2 17 00 [06:05:27]MH_I2C_Read... [06:05:27]Read from MH i2c: E2 17 00 2E 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 1E [06:05:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [06:05:27]wFMCommunicate OK [06:05:27]CreateOFDProtocolMessage done [06:05:27]OFDSenderStorePacket 227180 [06:05:27]StoreOFDPacket docnum=227180 [06:05:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 A3 9F 07 01 F2 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F4 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6B 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 A9 9D 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6C 77 03 00 35 04 06 00 46 F5 01 A2 EA 25 0B DD 97 46 D1 E5 CD A2 [06:05:27]CheckFolder [06:05:27]dirname=/storage/ofd_packets [06:05:27]CheckFolder done [06:05:27]ProducePacketName [06:05:27]name=ofd_packets/00227180 [06:05:27]NVStorageSaveData ofd_packets/00227180 [06:05:27]File name is /storage/ofd_packets/00227180 [06:05:27]Write 301 bytes [06:05:27]NVStorageSaveData done [06:05:27]OFDSenderStorePacket done [06:05:27]KKMCreateOFDPacket done [06:05:27]NVStorageSaveData kkm_last_timestamp [06:05:27]File name is /storage/kkm_last_timestamp [06:05:27]Write 4 bytes [06:05:27]NVStorageSaveData done [06:05:27]ExternCall_PrintAddStr [06:05:27]wPrintStart [06:05:27]Write to MH i2c: 01 00 00 2F 1F 4E [06:05:27]OFD Sender: Processing packet 227180 [packets to send 38, broken 37] [06:05:27]ProducePacketName [06:05:27]name=ofd_packets/00227180 [06:05:27]OFD Sender: To server: pG, [06:05:27]CommunicateWithHost lk.salyk.kg:30040 [06:05:27]ConnectInit lk.salyk.kg [06:05:27]Write i2c OK [06:05:27]MH_I2C_Read... [06:05:27]Read from MH i2c: 01 [06:05:27]MH_I2C_Read... [06:05:27]Read from MH i2c: 01 07 00 [06:05:27]MH_I2C_Read... [06:05:27]Read from MH i2c: 01 07 00 2F 1F 00 00 00 00 00 FF 0F 63 [06:05:27]RasterBufferAndPrint [06:05:27]line Счет N : (1)1962631 [06:05:27]line ИНН: 02508201610067 [06:05:27]line Контрольно-Кассовый Чек [06:05:27]line ПРОДАЖА [06:05:27]line ТРК (МРК, ГНК) : 53 [06:05:27]line Товар: 2710124130 [06:05:27]line Аи-92-К-5 [06:05:27]line 4.340 * 66.90 [06:05:27]line = 290.35 [06:05:27]line НДС 12% НСП 1% [06:05:27]line > о реализуемом товаре [06:05:27]line ОКРУГЛЕНИЕ: -0.35 [06:05:27]line ИТОГО: 290.00 [06:05:27]line Внесено: 290.00 [06:05:27]line СДАЧА: 0.00 [06:05:27]line НСП 1% : 2.57 [06:05:27]line НДС 12% : 30.83 [06:05:27]line Наличными: 290.00 [06:05:27]line Безнал.: 0.00 [06:05:27]line Место: АЗС № 133 "Партнер Нефть" [06:05:27]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [06:05:27]line СНО: Общий режим [06:05:27]line Чек 28 20.10.2024 06:05 [06:05:27]line Смена: 533 ФФД: 1.0 [06:05:27]line ЗНМ: 0300000091 [06:05:27]line РНМ: 0000000000091685 [06:05:27]line Версия ККМ: 001 [06:05:27]line ФМ: 0000000000871839 [06:05:27]line ФД: 227180 [06:05:27]line ФПД: 78018108385829 [06:05:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T060529&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227180&fm=78018108385829&tin=02508201610067®Number=0000000000091685&sum=29000 [06:05:28]Connected sock=10 [06:05: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 33 39 0F 01 00 00 A3 9F 07 01 F2 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F4 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6B 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 A9 9D 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6C 77 03 00 35 04 06 00 46 F5 01 A2 EA 25 0B DD 97 46 D1 E5 CD A2 [06:05:28]written 0, free lines is 4095 [06:05: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 33 39 4F 00 00 00 8C 70 47 00 09 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 33 39 10 04 04 00 6C 77 03 00 F4 03 04 00 A8 48 14 67 B6 04 01 00 00 CB 8E FB D2 73 4D 2E C5 [06:05:28]CommunicateWithHost err = 0 [06:05:28]CheckOFDResponse [06:05:28]1017 (14) - 77093643461234 [06:05:28]1041 (16) - 0000000000871839 [06:05:28]1040 (4) - 227180 [06:05:28]1012 (4) - 20.10.2024 00:02 [06:05:28]1206 (1) - 0 [06:05:28]OFD Sender: Remove packet 227180 [06:05:28]ProducePacketName [06:05:28]name=ofd_packets/00227180 [06:05:28]NVStorageDeleteData [06:05:28]Write to MH i2c: 01 00 00 59 1F 78 [06:05:28]Write i2c OK [06:05:28]MH_I2C_Read... [06:05:28]Read from MH i2c: 01 [06:05:28]MH_I2C_Read... [06:05:28]Read from MH i2c: 01 07 00 [06:05:28]MH_I2C_Read... [06:05:28]Read from MH i2c: 01 07 00 59 1F 00 00 00 00 00 13 0D 9F [06:05:28]RasterBufferAndPrint [06:05:28]line [06:05:28]line [06:05:28]line [06:05:28]line [06:05:28]line [06:05:28]written 0, free lines is 3353 [06:05:28]process_action close_receipt done [06:05:28]requested_data is exist [06:05:28]produce_requested_data [06:05:28]requested_item fm.sn is exist - process it [06:05:28]wFMCommunicate request_size=4 [06:05:28]MH_SAM_APDU [06:05:28]CAPDU: 80 11 00 00 [06:05:28]Write to MH i2c: E2 08 00 60 1F 80 11 00 00 00 00 00 00 F9 [06:05:28]Write i2c OK [06:05:28]MH_I2C_Read... [06:05:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:05:28]Read from MH i2c: E2 [06:05:28]MH_I2C_Read... [06:05:28]Read from MH i2c: E2 17 00 [06:05:28]MH_I2C_Read... [06:05:28]Read from MH i2c: E2 17 00 60 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 50 [06:05:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [06:05:28]wFMCommunicate OK [06:05:28]requested_item fd.num is exist - process it [06:05:28]SAM_PROTO_GetFieldsCounters [06:05:28]wFMCommunicate request_size=4 [06:05:28]MH_SAM_APDU [06:05:28]CAPDU: 80 13 00 00 [06:05:28]Write to MH i2c: E2 08 00 61 1F 80 13 00 00 00 00 00 00 FC [06:05:28]Write i2c OK [06:05:28]MH_I2C_Read... [06:05:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:05:28]Read from MH i2c: E2 [06:05:28]MH_I2C_Read... [06:05:28]Read from MH i2c: E2 62 00 [06:05:28]MH_I2C_Read... [06:05:28]Read from MH i2c: E2 62 00 61 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6C 77 03 00 0E 04 04 00 15 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 76 [06:05: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6C 77 03 00 0E 04 04 00 15 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 [06:05:28]wFMCommunicate OK [06:05:28]SAM_PROTO_GetFieldsCounters done [06:05:28]requested_item shift.num is exist - process it [06:05:28]requested_item shift.opened is exist - process it [06:05:28]req_shift_opened [06:05:28]FM_GetShiftState [06:05:28]SAM_PROTO_GetShiftState [06:05:28]wFMCommunicate request_size=4 [06:05:28]MH_SAM_APDU [06:05:28]CAPDU: 80 13 01 00 [06:05:28]Write to MH i2c: E2 08 00 62 1F 80 13 01 00 00 00 00 00 FE [06:05:28]Write i2c OK [06:05:28]MH_I2C_Read... [06:05:28]OFD Sender: No OFD packet to send [06:05:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:05:28]Read from MH i2c: E2 [06:05:28]MH_I2C_Read... [06:05:28]Read from MH i2c: E2 0E 00 [06:05:28]MH_I2C_Read... [06:05:28]Read from MH i2c: E2 0E 00 62 1F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 18 [06:05:28]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [06:05:28]wFMCommunicate OK [06:05:28]SAM_PROTO_GetShiftState done [06:05:28]FM_GetShiftState done [06:05:28]req_shift_opened done [06:05:28]requested_item shift.open_date is exist - process it [06:05:28]req_shift_open_date [06:05:28]req_shift_open_date done [06:05:28]produce_requested_data done [06:05:28]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227180,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [06:05:28]process_action_free close_receipt [06:05:28]json_value_free [06:05:28]json_value_free done [06:05:28]process_json_proto returns [06:05:28]Send response to host [06:05:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227180,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [06:05:28]free response buf [06:05:28]execute_script done [06:05:28]execute_script returns [06:05:28]free content buf [06:05:28]Sock 9.Close socket [06:05:28]Sock 9.Thread stoped [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:57]accept exits with 8 [06:05:57]New connection [06:05:57]New thread 3066965348 created [06:05:57]Thread 3066821988 joined [06:05:57]Waiting for new connection... [06:05:57] Sock 8.Parse request [06:05:57]Sock 8.Check first char [06:05:57]Sock 8.First char is OK [06:05:57]request: POST /json_proto HTTP/1.0 [06:05:57]Method: POST [06:05:57]URL: /json_proto [06:05:57]Method is POST - this is cgi request [06:05:57]url: /json_proto [06:05:57]query_string will be loaded in cgi processing [06:05:57]execute_cgi json_proto POST (null) [06:05:57]execute_cgi path=json_proto method=POST [06:05:57]POST find Content-Length [06:05:57]Host: 172.17.44.195:8080 [06:05:57]Content-Length: 680 [06:05:57]Content-Type: application/json [06:05:57] [06:05:57]POST finish read [06:05:57]Found Content-Length = 680 [06:05:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962632", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 18.380, "sum" : 1400.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:05:57]execute_script... [06:05: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)1962632", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 18.380, "sum" : 1400.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:05:57]POST & json_proto [06:05:57]process_json_proto [06:05:57]json parsed OK: [06:05:57]protocol is kg_v1.0 [06:05:57]action value=close_receipt [06:05:57]process_action close_receipt [06:05:57]cmd_close_receipt [06:05:57]MH_GetDate [06:05:57]Write to MH i2c: F0 00 00 63 1F 71 [06:05:57]Write i2c OK [06:05:57]MH_I2C_Read... [06:05:57]Read from MH i2c: F0 [06:05:57]MH_I2C_Read... [06:05:57]Read from MH i2c: F0 09 00 [06:05:57]MH_I2C_Read... [06:05:57]Read from MH i2c: F0 09 00 63 1F 00 C8 9D 14 67 82 C9 CF 66 DA [06:05:57]GetLastDocTimeStamp 1729404329 [06:05:57]current date 1729404360 [06:05:57]FM_GetShiftState [06:05:57]SAM_PROTO_GetShiftState [06:05:57]wFMCommunicate request_size=4 [06:05:57]MH_SAM_APDU [06:05:57]CAPDU: 80 13 01 00 [06:05:57]Write to MH i2c: E2 08 00 64 1F 80 13 01 00 00 00 00 00 00 [06:05:57]Write i2c OK [06:05:57]MH_I2C_Read... [06:05:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:05:57]Read from MH i2c: E2 [06:05:57]MH_I2C_Read... [06:05:57]Read from MH i2c: E2 0E 00 [06:05:57]MH_I2C_Read... [06:05:57]Read from MH i2c: E2 0E 00 64 1F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 1A [06:05:57]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [06:05:57]wFMCommunicate OK [06:05:57]SAM_PROTO_GetShiftState done [06:05:57]FM_GetShiftState done [06:05:57]opened in 1729383750 [06:05:57]opened+sec_in_day 1729470150 [06:05:57]quantity*price = 140055 [06:05:57]sum+1 = 140057 [06:05:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.73 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 29 20.10.2024 06:06 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227181 ФПД: 11632701969356 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T060600&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227181&fm=11632701969356&tin=02508201610067®Number=0000000000091685&sum=140000 [06:05:58]StoreToDocumentArchive [06:05:58]shift 533 fd 227181 [06:05:58]save to /storage/0533/doc_00227181 [06:05:58]save last doc name /storage/0533/doc_00227181 to /storage/kkm_last_doc_name [06:05:58]save OK [06:05:58]Clear old archive folders... [06:05:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:05:58]tlvbuf is B6F5BA80 [06:05:58]SAM_PROTO_ClearQueue [06:05:58]wFMCommunicate request_size=4 [06:05:58]MH_SAM_APDU [06:05:58]CAPDU: 80 09 00 00 [06:05:58]Write to MH i2c: E2 08 00 71 1F 80 09 00 00 00 00 00 00 02 [06:05:58]Write i2c OK [06:05:58]MH_I2C_Read... [06:05:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:05:58]Read from MH i2c: E2 [06:05:58]MH_I2C_Read... [06:05:58]Read from MH i2c: E2 03 00 [06:05:58]MH_I2C_Read... [06:05:58]Read from MH i2c: E2 03 00 71 1F 00 90 00 04 [06:05:58]RAPDU: 90 00 [06:05:58]wFMCommunicate OK [06:05:58]SAM_PROTO_ClearQueue done [06:05:58]KKMCreateOFDPacket [06:05:58]OFDProtocolAddRootSTLVToBuf [06:05:58]FM_MakeSignedData [06:05:58]FM_MakeSignedData [06:05:58]SAM_PROTO_SignData [06:05:58]wFMCommunicate request_size=4 [06:05:58]MH_SAM_APDU [06:05:58]CAPDU: 80 0D 01 02 [06:05:58]Write to MH i2c: E2 08 00 72 1F 80 0D 01 02 00 00 00 00 0A [06:05:58]Write i2c OK [06:05:58]MH_I2C_Read... [06:05:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:05:58]Read from MH i2c: E2 [06:05:58]MH_I2C_Read... [06:05:58]Read from MH i2c: E2 03 00 [06:05:58]MH_I2C_Read... [06:05:58]Read from MH i2c: E2 03 00 72 1F 00 90 00 05 [06:05:58]RAPDU: 90 00 [06:05:58]wFMCommunicate OK [06:05:58]wFMCommunicate request_size=255 [06:05:58]MH_SAM_APDU [06:05: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 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 C8 9D 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6D 77 03 00 35 04 06 00 0A 94 73 11 [06:05:58]Write to MH i2c: E2 02 01 73 1F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 C8 9D 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6D 77 03 00 35 04 06 00 0A 94 73 11 00 00 F3 [06:05:58]Write i2c OK [06:05:58]MH_I2C_Read... [06:05:58]OFD Sender: No OFD packet to send [06:05:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:05:58]Read from MH i2c: E2 [06:05:58]MH_I2C_Read... [06:05:58]Read from MH i2c: E2 03 00 [06:05:58]MH_I2C_Read... [06:05:58]Read from MH i2c: E2 03 00 73 1F 00 90 00 06 [06:05:58]RAPDU: 90 00 [06:05:58]wFMCommunicate OK [06:05:58]wFMCommunicate request_size=7 [06:05:58]MH_SAM_APDU [06:05:58]CAPDU: 80 0D 02 02 02 93 CC [06:05:58]Write to MH i2c: E2 0A 00 74 1F 80 0D 02 02 02 00 93 CC 00 00 70 [06:05:58]Write i2c OK [06:05:58]MH_I2C_Read... [06:05:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:05:58]Read from MH i2c: E2 [06:05:58]MH_I2C_Read... [06:05:58]Read from MH i2c: E2 03 00 [06:05:58]MH_I2C_Read... [06:05:58]Read from MH i2c: E2 03 00 74 1F 00 90 00 07 [06:05:58]RAPDU: 90 00 [06:05:58]wFMCommunicate OK [06:05:58]wFMCommunicate request_size=4 [06:05:58]MH_SAM_APDU [06:05:58]CAPDU: 80 0D 03 02 [06:05:58]Write to MH i2c: E2 08 00 75 1F 80 0D 03 02 00 00 00 00 0F [06:05:58]Write i2c OK [06:05:58]MH_I2C_Read... [06:05:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:05:58]Read from MH i2c: E2 [06:05:58]MH_I2C_Read... [06:05:58]Read from MH i2c: E2 0B 00 [06:05:58]MH_I2C_Read... [06:05:58]Read from MH i2c: E2 0B 00 75 1F 00 44 AC D7 EA D2 9D 22 01 90 00 53 [06:05:58]RAPDU: 44 AC D7 EA D2 9D 22 01 90 00 [06:05:58]wFMCommunicate OK [06:05:58]SAM_PROTO_SignData done [06:05:58]FM_MakeSignedData done [06:05:58]CreateOFDProtocolMessage [06:05:58]wFMCommunicate request_size=4 [06:05:58]MH_SAM_APDU [06:05:58]CAPDU: 80 11 00 00 [06:05:58]Write to MH i2c: E2 08 00 76 1F 80 11 00 00 00 00 00 00 0F [06:05:58]Write i2c OK [06:05:58]MH_I2C_Read... [06:05:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:05:58]Read from MH i2c: E2 [06:05:58]MH_I2C_Read... [06:05:58]Read from MH i2c: E2 17 00 [06:05:58]MH_I2C_Read... [06:05:58]Read from MH i2c: E2 17 00 76 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 66 [06:05:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [06:05:58]wFMCommunicate OK [06:05:58]CreateOFDProtocolMessage done [06:05:58]OFDSenderStorePacket 227181 [06:05:58]StoreOFDPacket docnum=227181 [06:05:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 A5 DE 04 01 3F BE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 C8 9D 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6D 77 03 00 35 04 06 00 0A 94 73 11 93 CC 44 AC D7 EA D2 9D 22 01 [06:05:58]CheckFolder [06:05:58]dirname=/storage/ofd_packets [06:05:58]CheckFolder done [06:05:58]ProducePacketName [06:05:58]name=ofd_packets/00227181 [06:05:58]NVStorageSaveData ofd_packets/00227181 [06:05:58]File name is /storage/ofd_packets/00227181 [06:05:58]Write 298 bytes [06:05:58]NVStorageSaveData done [06:05:58]OFDSenderStorePacket done [06:05:58]KKMCreateOFDPacket done [06:05:58]NVStorageSaveData kkm_last_timestamp [06:05:58]File name is /storage/kkm_last_timestamp [06:05:58]Write 4 bytes [06:05:58]NVStorageSaveData done [06:05:58]ExternCall_PrintAddStr [06:05:58]wPrintStart [06:05:58]Write to MH i2c: 01 00 00 77 1F 96 [06:05:58]Write i2c OK [06:05:58]MH_I2C_Read... [06:05:58]Read from MH i2c: 01 [06:05:58]MH_I2C_Read... [06:05:58]Read from MH i2c: 01 07 00 [06:05:58]MH_I2C_Read... [06:05:58]Read from MH i2c: 01 07 00 77 1F 00 00 00 00 00 FF 0F AB [06:05:58]RasterBufferAndPrint [06:05:58]line Счет N : (1)1962632 [06:05:58]line ИНН: 02508201610067 [06:05:58]line Контрольно-Кассовый Чек [06:05:58]line ПРОДАЖА [06:05:58]line ТРК (МРК, ГНК) : 11 [06:05:58]line Товар: 2710194210 [06:05:58]line ДТ-К-5 [06:05:58]line 18.380 * 76.20 [06:05:58]line = 1400.56 [06:05:58]line НДС 12% НСП 1% [06:05:58]line > о реализуемом товаре [06:05:58]line ОКРУГЛЕНИЕ: -0.56 [06:05:58]line ИТОГО: 1400.00 [06:05:58]line Внесено: 1400.00 [06:05:58]line СДАЧА: 0.00 [06:05:58]line НСП 1% : 12.39 [06:05:58]line НДС 12% : 148.73 [06:05:58]line Наличными: 1400.00 [06:05:58]line Безнал.: 0.00 [06:05:58]line Место: АЗС № 133 "Партнер Нефть" [06:05:58]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [06:05:58]line СНО: Общий режим [06:05:58]line Чек 29 20.10.2024 06:06 [06:05:58]line Смена: 533 ФФД: 1.0 [06:05:58]line ЗНМ: 0300000091 [06:05:58]line РНМ: 0000000000091685 [06:05:58]line Версия ККМ: 001 [06:05:58]line ФМ: 0000000000871839 [06:05:58]line ФД: 227181 [06:05:58]line ФПД: 11632701969356 [06:05:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T060600&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227181&fm=11632701969356&tin=02508201610067®Number=0000000000091685&sum=140000 [06:05:59]written 0, free lines is 4095 [06:05:59]OFD Sender: Processing packet 227181 [packets to send 38, broken 37] [06:05:59]ProducePacketName [06:05:59]name=ofd_packets/00227181 [06:05:59]OFD Sender: To server: pG, [06:05:59]CommunicateWithHost lk.salyk.kg:30040 [06:05:59]ConnectInit lk.salyk.kg [06:05:59]Connected sock=9 [06:05: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 33 39 0C 01 00 00 A5 DE 04 01 3F BE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 C8 9D 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6D 77 03 00 35 04 06 00 0A 94 73 11 93 CC 44 AC D7 EA D2 9D 22 01 [06:05: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 33 39 4F 00 00 00 8B 78 47 00 55 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 33 39 10 04 04 00 6D 77 03 00 F4 03 04 00 C8 48 14 67 B6 04 01 00 00 06 30 9F 17 80 CD 6D 48 [06:05:59]CommunicateWithHost err = 0 [06:05:59]CheckOFDResponse [06:05:59]1017 (14) - 77093643461234 [06:05:59]1041 (16) - 0000000000871839 [06:05:59]1040 (4) - 227181 [06:05:59]1012 (4) - 20.10.2024 00:03 [06:05:59]1206 (1) - 0 [06:05:59]OFD Sender: Remove packet 227181 [06:05:59]ProducePacketName [06:05:59]name=ofd_packets/00227181 [06:05:59]NVStorageDeleteData [06:05:59]Write to MH i2c: 01 00 00 A1 1F C0 [06:05:59]Write i2c OK [06:05:59]MH_I2C_Read... [06:05:59]Read from MH i2c: 01 [06:05:59]MH_I2C_Read... [06:05:59]Read from MH i2c: 01 07 00 [06:05:59]MH_I2C_Read... [06:05:59]Read from MH i2c: 01 07 00 A1 1F 00 00 00 00 00 0C 0D E0 [06:05:59]RasterBufferAndPrint [06:05:59]line [06:05:59]line [06:05:59]line [06:05:59]line [06:05:59]line [06:05:59]written 0, free lines is 3346 [06:05:59]process_action close_receipt done [06:05:59]requested_data is exist [06:05:59]produce_requested_data [06:05:59]requested_item fm.sn is exist - process it [06:05:59]wFMCommunicate request_size=4 [06:05:59]MH_SAM_APDU [06:05:59]CAPDU: 80 11 00 00 [06:05:59]Write to MH i2c: E2 08 00 A8 1F 80 11 00 00 00 00 00 00 41 [06:05:59]Write i2c OK [06:05:59]MH_I2C_Read... [06:05:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:05:59]Read from MH i2c: E2 [06:05:59]MH_I2C_Read... [06:05:59]Read from MH i2c: E2 17 00 [06:05:59]MH_I2C_Read... [06:05:59]Read from MH i2c: E2 17 00 A8 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 98 [06:05:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [06:05:59]wFMCommunicate OK [06:05:59]requested_item fd.num is exist - process it [06:05:59]SAM_PROTO_GetFieldsCounters [06:05:59]wFMCommunicate request_size=4 [06:05:59]MH_SAM_APDU [06:05:59]CAPDU: 80 13 00 00 [06:05:59]Write to MH i2c: E2 08 00 A9 1F 80 13 00 00 00 00 00 00 44 [06:05:59]Write i2c OK [06:05:59]MH_I2C_Read... [06:05:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:05:59]Read from MH i2c: E2 [06:05:59]MH_I2C_Read... [06:05:59]Read from MH i2c: E2 62 00 [06:05:59]MH_I2C_Read... [06:05:59]Read from MH i2c: E2 62 00 A9 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6D 77 03 00 0E 04 04 00 15 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 C2 [06:05: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6D 77 03 00 0E 04 04 00 15 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 [06:05:59]wFMCommunicate OK [06:05:59]SAM_PROTO_GetFieldsCounters done [06:05:59]requested_item shift.num is exist - process it [06:05:59]requested_item shift.opened is exist - process it [06:05:59]req_shift_opened [06:05:59]FM_GetShiftState [06:05:59]SAM_PROTO_GetShiftState [06:05:59]wFMCommunicate request_size=4 [06:05:59]MH_SAM_APDU [06:05:59]CAPDU: 80 13 01 00 [06:05:59]Write to MH i2c: E2 08 00 AA 1F 80 13 01 00 00 00 00 00 46 [06:05:59]Write i2c OK [06:05:59]MH_I2C_Read... [06:06:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:06:00]Read from MH i2c: E2 [06:06:00]MH_I2C_Read... [06:06:00]Read from MH i2c: E2 0E 00 [06:06:00]MH_I2C_Read... [06:06:00]Read from MH i2c: E2 0E 00 AA 1F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 60 [06:06:00]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [06:06:00]wFMCommunicate OK [06:06:00]SAM_PROTO_GetShiftState done [06:06:00]FM_GetShiftState done [06:06:00]req_shift_opened done [06:06:00]requested_item shift.open_date is exist - process it [06:06:00]req_shift_open_date [06:06:00]req_shift_open_date done [06:06:00]produce_requested_data done [06:06:00]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227181,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [06:06:00]process_action_free close_receipt [06:06:00]json_value_free [06:06:00]json_value_free done [06:06:00]process_json_proto returns [06:06:00]Send response to host [06:06:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227181,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [06:06:00]free response buf [06:06:00]execute_script done [06:06:00]execute_script returns [06:06:00]free content buf [06:06:00]Sock 8.Close socket [06:06:00]Sock 8.Thread stoped [06:06:00]OFD Sender: No OFD packet to send [06:06:05]OFD Sender: No OFD packet to send [06:06:10]OFD Sender: No OFD packet to send [06:06:15]OFD Sender: No OFD packet to send [06:06:20]OFD Sender: No OFD packet to send [06:06:25]OFD Sender: No OFD packet to send [06:06:30]OFD Sender: No OFD packet to send [06:06:35]OFD Sender: No OFD packet to send [06:06:40]OFD Sender: No OFD packet to send [06:06:45]OFD Sender: No OFD packet to send [06:06:50]OFD Sender: No OFD packet to send [06:06:55]OFD Sender: No OFD packet to send [06:07:00]OFD Sender: No OFD packet to send [06:07:05]OFD Sender: No OFD packet to send [06:07:10]OFD Sender: No OFD packet to send [06:07:15]OFD Sender: No OFD packet to send [06:07:20]OFD Sender: No OFD packet to send [06:07:25]OFD Sender: No OFD packet to send [06:07:30]OFD Sender: No OFD packet to send [06:07:35]OFD Sender: No OFD packet to send [06:07:40]OFD Sender: No OFD packet to send [06:07:45]OFD Sender: No OFD packet to send [06:07:50]OFD Sender: No OFD packet to send [06:07:55]OFD Sender: No OFD packet to send [06:08:00]OFD Sender: No OFD packet to send [06:08:05]OFD Sender: No OFD packet to send [06:08:09]accept exits with 10 [06:08:09]New connection [06:08:09]New thread 3066821988 created [06:08:09]Thread 3066965348 joined [06:08:09]Waiting for new connection... [06:08:09] Sock 10.Parse request [06:08:09]Sock 10.Check first char [06:08:09]Sock 10.First char is OK [06:08:09]request: POST /json_proto HTTP/1.0 [06:08:09]Method: POST [06:08:09]URL: /json_proto [06:08:09]Method is POST - this is cgi request [06:08:09]url: /json_proto [06:08:09]query_string will be loaded in cgi processing [06:08:09]execute_cgi json_proto POST (null) [06:08:09]execute_cgi path=json_proto method=POST [06:08:09]POST find Content-Length [06:08:09]Host: 172.17.44.195:8080 [06:08:09]Content-Length: 680 [06:08:09]Content-Type: application/json [06:08:09] [06:08:09]POST finish read [06:08:09]Found Content-Length = 680 [06:08:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962633", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:08:09]execute_script... [06:08:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962633", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:08:09]POST & json_proto [06:08:09]process_json_proto [06:08:09]json parsed OK: [06:08:09]protocol is kg_v1.0 [06:08:09]action value=close_receipt [06:08:09]process_action close_receipt [06:08:09]cmd_close_receipt [06:08:09]MH_GetDate [06:08:09]Write to MH i2c: F0 00 00 AB 1F B9 [06:08:09]Write i2c OK [06:08:09]MH_I2C_Read... [06:08:09]Read from MH i2c: F0 [06:08:09]MH_I2C_Read... [06:08:09]Read from MH i2c: F0 09 00 [06:08:09]MH_I2C_Read... [06:08:09]Read from MH i2c: F0 09 00 AB 1F 00 4C 9E 14 67 82 C9 CF 66 A7 [06:08:09]GetLastDocTimeStamp 1729404360 [06:08:09]current date 1729404492 [06:08:09]FM_GetShiftState [06:08:09]SAM_PROTO_GetShiftState [06:08:09]wFMCommunicate request_size=4 [06:08:09]MH_SAM_APDU [06:08:09]CAPDU: 80 13 01 00 [06:08:09]Write to MH i2c: E2 08 00 AC 1F 80 13 01 00 00 00 00 00 48 [06:08:09]Write i2c OK [06:08:09]MH_I2C_Read... [06:08:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:08:09]Read from MH i2c: E2 [06:08:09]MH_I2C_Read... [06:08:09]Read from MH i2c: E2 0E 00 [06:08:09]MH_I2C_Read... [06:08:09]Read from MH i2c: E2 0E 00 AC 1F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 62 [06:08:09]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [06:08:09]wFMCommunicate OK [06:08:09]SAM_PROTO_GetShiftState done [06:08:09]FM_GetShiftState done [06:08:09]opened in 1729383750 [06:08:09]opened+sec_in_day 1729470150 [06:08:09]quantity*price = 200025 [06:08:09]sum+1 = 200026 [06:08:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 30 20.10.2024 06:08 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227182 ФПД: 9654862232496 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T060812&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227182&fm=9654862232496&tin=02508201610067®Number=0000000000091685&sum=200000 [06:08:10]StoreToDocumentArchive [06:08:10]shift 533 fd 227182 [06:08:10]save to /storage/0533/doc_00227182 [06:08:10]save last doc name /storage/0533/doc_00227182 to /storage/kkm_last_doc_name [06:08:10]save OK [06:08:10]Clear old archive folders... [06:08:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:08:10]tlvbuf is 0053BA20 [06:08:10]SAM_PROTO_ClearQueue [06:08:10]wFMCommunicate request_size=4 [06:08:10]MH_SAM_APDU [06:08:10]CAPDU: 80 09 00 00 [06:08:10]Write to MH i2c: E2 08 00 B9 1F 80 09 00 00 00 00 00 00 4A [06:08:10]Write i2c OK [06:08:10]MH_I2C_Read... [06:08:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:08:10]Read from MH i2c: E2 [06:08:10]MH_I2C_Read... [06:08:10]Read from MH i2c: E2 03 00 [06:08:10]MH_I2C_Read... [06:08:10]Read from MH i2c: E2 03 00 B9 1F 00 90 00 4C [06:08:10]RAPDU: 90 00 [06:08:10]wFMCommunicate OK [06:08:10]SAM_PROTO_ClearQueue done [06:08:10]KKMCreateOFDPacket [06:08:10]OFDProtocolAddRootSTLVToBuf [06:08:10]FM_MakeSignedData [06:08:10]FM_MakeSignedData [06:08:10]SAM_PROTO_SignData [06:08:10]wFMCommunicate request_size=4 [06:08:10]MH_SAM_APDU [06:08:10]CAPDU: 80 0D 01 02 [06:08:10]Write to MH i2c: E2 08 00 BA 1F 80 0D 01 02 00 00 00 00 52 [06:08:10]Write i2c OK [06:08:10]MH_I2C_Read... [06:08:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:08:10]Read from MH i2c: E2 [06:08:10]MH_I2C_Read... [06:08:10]Read from MH i2c: E2 03 00 [06:08:10]MH_I2C_Read... [06:08:10]Read from MH i2c: E2 03 00 BA 1F 00 90 00 4D [06:08:10]RAPDU: 90 00 [06:08:10]wFMCommunicate OK [06:08:10]wFMCommunicate request_size=255 [06:08:10]MH_SAM_APDU [06:08:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 4C 9E 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6E 77 03 00 35 04 06 00 08 C7 F2 A2 [06:08:10]Write to MH i2c: E2 02 01 BB 1F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 4C 9E 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6E 77 03 00 35 04 06 00 08 C7 F2 A2 00 00 B2 [06:08:10]Write i2c OK [06:08:10]MH_I2C_Read... [06:08:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:08:11]Read from MH i2c: E2 [06:08:11]MH_I2C_Read... [06:08:11]Read from MH i2c: E2 03 00 [06:08:11]MH_I2C_Read... [06:08:11]Read from MH i2c: E2 03 00 BB 1F 00 90 00 4E [06:08:11]RAPDU: 90 00 [06:08:11]wFMCommunicate OK [06:08:11]wFMCommunicate request_size=7 [06:08:11]MH_SAM_APDU [06:08:11]CAPDU: 80 0D 02 02 02 3B B0 [06:08:11]Write to MH i2c: E2 0A 00 BC 1F 80 0D 02 02 02 00 3B B0 00 00 44 [06:08:11]Write i2c OK [06:08:11]MH_I2C_Read... [06:08:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:08:11]Read from MH i2c: E2 [06:08:11]MH_I2C_Read... [06:08:11]Read from MH i2c: E2 03 00 [06:08:11]MH_I2C_Read... [06:08:11]Read from MH i2c: E2 03 00 BC 1F 00 90 00 4F [06:08:11]RAPDU: 90 00 [06:08:11]wFMCommunicate OK [06:08:11]wFMCommunicate request_size=4 [06:08:11]MH_SAM_APDU [06:08:11]CAPDU: 80 0D 03 02 [06:08:11]Write to MH i2c: E2 08 00 BD 1F 80 0D 03 02 00 00 00 00 57 [06:08:11]Write i2c OK [06:08:11]MH_I2C_Read... [06:08:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:08:11]Read from MH i2c: E2 [06:08:11]MH_I2C_Read... [06:08:11]Read from MH i2c: E2 0B 00 [06:08:11]MH_I2C_Read... [06:08:11]Read from MH i2c: E2 0B 00 BD 1F 00 71 9B 7A DF 16 B9 66 A8 90 00 9A [06:08:11]RAPDU: 71 9B 7A DF 16 B9 66 A8 90 00 [06:08:11]wFMCommunicate OK [06:08:11]SAM_PROTO_SignData done [06:08:11]FM_MakeSignedData done [06:08:11]CreateOFDProtocolMessage [06:08:11]wFMCommunicate request_size=4 [06:08:11]MH_SAM_APDU [06:08:11]CAPDU: 80 11 00 00 [06:08:11]Write to MH i2c: E2 08 00 BE 1F 80 11 00 00 00 00 00 00 57 [06:08:11]Write i2c OK [06:08:11]MH_I2C_Read... [06:08:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:08:11]Read from MH i2c: E2 [06:08:11]MH_I2C_Read... [06:08:11]Read from MH i2c: E2 17 00 [06:08:11]MH_I2C_Read... [06:08:11]Read from MH i2c: E2 17 00 BE 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 AE [06:08:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [06:08:11]wFMCommunicate OK [06:08:11]CreateOFDProtocolMessage done [06:08:11]OFDSenderStorePacket 227182 [06:08:11]StoreOFDPacket docnum=227182 [06:08:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 9F BD 04 01 57 C5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 4C 9E 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6E 77 03 00 35 04 06 00 08 C7 F2 A2 3B B0 71 9B 7A DF 16 B9 66 A8 [06:08:11]CheckFolder [06:08:11]dirname=/storage/ofd_packets [06:08:11]CheckFolder done [06:08:11]ProducePacketName [06:08:11]name=ofd_packets/00227182 [06:08:11]NVStorageSaveData ofd_packets/00227182 [06:08:11]File name is /storage/ofd_packets/00227182 [06:08:11]Write 298 bytes [06:08:11]NVStorageSaveData done [06:08:11]OFDSenderStorePacket done [06:08:11]KKMCreateOFDPacket done [06:08:11]NVStorageSaveData kkm_last_timestamp [06:08:11]File name is /storage/kkm_last_timestamp [06:08:11]Write 4 bytes [06:08:11]NVStorageSaveData done [06:08:11]ExternCall_PrintAddStr [06:08:11]wPrintStart [06:08:11]Write to MH i2c: 01 00 00 BF 1F DE [06:08:11]Write i2c OK [06:08:11]MH_I2C_Read... [06:08:11]Read from MH i2c: 01 [06:08:11]MH_I2C_Read... [06:08:11]Read from MH i2c: 01 07 00 [06:08:11]MH_I2C_Read... [06:08:11]Read from MH i2c: 01 07 00 BF 1F 00 00 00 00 00 FF 0F F3 [06:08:11]RasterBufferAndPrint [06:08:11]line Счет N : (1)1962633 [06:08:11]line ИНН: 02508201610067 [06:08:11]line Контрольно-Кассовый Чек [06:08:11]line ПРОДАЖА [06:08:11]line ТРК (МРК, ГНК) : 31 [06:08:11]line Товар: 2710194210 [06:08:11]line ДТ-К-5 [06:08:11]line 26.250 * 76.20 [06:08:11]line = 2000.25 [06:08:11]line НДС 12% НСП 1% [06:08:11]line > о реализуемом товаре [06:08:11]line ОКРУГЛЕНИЕ: -0.25 [06:08:11]line ИТОГО: 2000.00 [06:08:11]line Внесено: 2000.00 [06:08:11]line СДАЧА: 0.00 [06:08:11]line НСП 1% : 17.70 [06:08:11]line НДС 12% : 212.42 [06:08:11]line Наличными: 2000.00 [06:08:11]line Безнал.: 0.00 [06:08:11]line Место: АЗС № 133 "Партнер Нефть" [06:08:11]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [06:08:11]line СНО: Общий режим [06:08:11]line Чек 30 20.10.2024 06:08 [06:08:11]line Смена: 533 ФФД: 1.0 [06:08:11]line ЗНМ: 0300000091 [06:08:11]line РНМ: 0000000000091685 [06:08:11]line Версия ККМ: 001 [06:08:11]line ФМ: 0000000000871839 [06:08:11]line ФД: 227182 [06:08:11]line ФПД: 9654862232496 [06:08:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T060812&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227182&fm=9654862232496&tin=02508201610067®Number=0000000000091685&sum=200000 [06:08:11]OFD Sender: Processing packet 227182 [packets to send 38, broken 37] [06:08:11]ProducePacketName [06:08:11]name=ofd_packets/00227182 [06:08:11]OFD Sender: To server: pG, [06:08:11]CommunicateWithHost lk.salyk.kg:30040 [06:08:11]ConnectInit lk.salyk.kg [06:08:11]written 0, free lines is 4095 [06:08:11]Connected sock=8 [06:08:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 9F BD 04 01 57 C5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 4C 9E 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6E 77 03 00 35 04 06 00 08 C7 F2 A2 3B B0 71 9B 7A DF 16 B9 66 A8 [06:08: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 33 39 4F 00 00 00 4A CB 47 00 B3 DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6E 77 03 00 F4 03 04 00 4C 49 14 67 B6 04 01 00 00 14 50 AB 4B D2 DD EC 16 [06:08:11]CommunicateWithHost err = 0 [06:08:11]CheckOFDResponse [06:08:11]1017 (14) - 77093643461234 [06:08:11]1041 (16) - 0000000000871839 [06:08:11]1040 (4) - 227182 [06:08:11]1012 (4) - 20.10.2024 00:05 [06:08:11]1206 (1) - 0 [06:08:11]OFD Sender: Remove packet 227182 [06:08:11]ProducePacketName [06:08:11]name=ofd_packets/00227182 [06:08:11]NVStorageDeleteData [06:08:12]Write to MH i2c: 01 00 00 E9 1F 08 [06:08:12]Write i2c OK [06:08:12]MH_I2C_Read... [06:08:12]Read from MH i2c: 01 [06:08:12]MH_I2C_Read... [06:08:12]Read from MH i2c: 01 07 00 [06:08:12]MH_I2C_Read... [06:08:12]Read from MH i2c: 01 07 00 E9 1F 00 00 00 00 00 14 0D 30 [06:08:12]RasterBufferAndPrint [06:08:12]line [06:08:12]line [06:08:12]line [06:08:12]line [06:08:12]line [06:08:12]written 0, free lines is 3358 [06:08:12]process_action close_receipt done [06:08:12]requested_data is exist [06:08:12]produce_requested_data [06:08:12]requested_item fm.sn is exist - process it [06:08:12]wFMCommunicate request_size=4 [06:08:12]MH_SAM_APDU [06:08:12]CAPDU: 80 11 00 00 [06:08:12]Write to MH i2c: E2 08 00 F0 1F 80 11 00 00 00 00 00 00 89 [06:08:12]Write i2c OK [06:08:12]MH_I2C_Read... [06:08:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:08:12]Read from MH i2c: E2 [06:08:12]MH_I2C_Read... [06:08:12]Read from MH i2c: E2 17 00 [06:08:12]MH_I2C_Read... [06:08:12]Read from MH i2c: E2 17 00 F0 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E0 [06:08:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [06:08:12]wFMCommunicate OK [06:08:12]requested_item fd.num is exist - process it [06:08:12]SAM_PROTO_GetFieldsCounters [06:08:12]wFMCommunicate request_size=4 [06:08:12]MH_SAM_APDU [06:08:12]CAPDU: 80 13 00 00 [06:08:12]Write to MH i2c: E2 08 00 F1 1F 80 13 00 00 00 00 00 00 8C [06:08:12]Write i2c OK [06:08:12]MH_I2C_Read... [06:08:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:08:12]Read from MH i2c: E2 [06:08:12]MH_I2C_Read... [06:08:12]Read from MH i2c: E2 62 00 [06:08:12]MH_I2C_Read... [06:08:12]Read from MH i2c: E2 62 00 F1 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6E 77 03 00 0E 04 04 00 15 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 0E [06:08: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6E 77 03 00 0E 04 04 00 15 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 [06:08:12]wFMCommunicate OK [06:08:12]SAM_PROTO_GetFieldsCounters done [06:08:12]requested_item shift.num is exist - process it [06:08:12]requested_item shift.opened is exist - process it [06:08:12]req_shift_opened [06:08:12]FM_GetShiftState [06:08:12]SAM_PROTO_GetShiftState [06:08:12]wFMCommunicate request_size=4 [06:08:12]MH_SAM_APDU [06:08:12]CAPDU: 80 13 01 00 [06:08:12]Write to MH i2c: E2 08 00 F2 1F 80 13 01 00 00 00 00 00 8E [06:08:12]Write i2c OK [06:08:12]MH_I2C_Read... [06:08:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:08:12]Read from MH i2c: E2 [06:08:12]MH_I2C_Read... [06:08:12]Read from MH i2c: E2 0E 00 [06:08:12]MH_I2C_Read... [06:08:12]Read from MH i2c: E2 0E 00 F2 1F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 A8 [06:08:12]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [06:08:12]wFMCommunicate OK [06:08:12]SAM_PROTO_GetShiftState done [06:08:12]FM_GetShiftState done [06:08:12]req_shift_opened done [06:08:12]requested_item shift.open_date is exist - process it [06:08:12]req_shift_open_date [06:08:12]req_shift_open_date done [06:08:12]produce_requested_data done [06:08:12]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227182,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [06:08:12]process_action_free close_receipt [06:08:12]json_value_free [06:08:12]json_value_free done [06:08:12]process_json_proto returns [06:08:12]Send response to host [06:08:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227182,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [06:08:12]free response buf [06:08:12]execute_script done [06:08:12]execute_script returns [06:08:12]free content buf [06:08:12]Sock 10.Close socket [06:08:12]Sock 10.Thread stoped [06:08:12]OFD Sender: No OFD packet to send [06:08:17]OFD Sender: No OFD packet to send [06:08:22]OFD Sender: No OFD packet to send [06:08:27]OFD Sender: No OFD packet to send [06:08:32]OFD Sender: No OFD packet to send [06:08:37]OFD Sender: No OFD packet to send [06:08:42]OFD Sender: No OFD packet to send [06:08:47]OFD Sender: No OFD packet to send [06:08:52]OFD Sender: No OFD packet to send [06:08:57]OFD Sender: No OFD packet to send [06:09:02]OFD Sender: No OFD packet to send [06:09:07]OFD Sender: No OFD packet to send [06:09:12]OFD Sender: No OFD packet to send [06:09:17]OFD Sender: No OFD packet to send [06:09:22]OFD Sender: No OFD packet to send [06:09:27]OFD Sender: No OFD packet to send [06:09:32]OFD Sender: No OFD packet to send [06:09:37]OFD Sender: No OFD packet to send [06:09:42]OFD Sender: No OFD packet to send [06:09:47]OFD Sender: No OFD packet to send [06:09:52]OFD Sender: No OFD packet to send [06:09:57]OFD Sender: No OFD packet to send [06:10:02]OFD Sender: No OFD packet to send [06:10:07]OFD Sender: No OFD packet to send [06:10:12]OFD Sender: No OFD packet to send [06:10:17]OFD Sender: No OFD packet to send [06:10:22]OFD Sender: No OFD packet to send [06:10:27]OFD Sender: No OFD packet to send [06:10:32]OFD Sender: No OFD packet to send [06:10:37]OFD Sender: No OFD packet to send [06:10:42]OFD Sender: No OFD packet to send [06:10:47]OFD Sender: No OFD packet to send [06:10:52]OFD Sender: No OFD packet to send [06:10:57]OFD Sender: No OFD packet to send [06:11:02]OFD Sender: No OFD packet to send [06:11:07]OFD Sender: No OFD packet to send [06:11:12]OFD Sender: No OFD packet to send [06:11:12]accept exits with 9 [06:11:12]New connection [06:11:12]New thread 3066965348 created [06:11:12]Thread 3066821988 joined [06:11:12]Waiting for new connection... [06:11:12] Sock 9.Parse request [06:11:12]Sock 9.Check first char [06:11:12]Sock 9.First char is OK [06:11:12]request: POST /json_proto HTTP/1.0 [06:11:12]Method: POST [06:11:12]URL: /json_proto [06:11:12]Method is POST - this is cgi request [06:11:12]url: /json_proto [06:11:12]query_string will be loaded in cgi processing [06:11:12]execute_cgi json_proto POST (null) [06:11:12]execute_cgi path=json_proto method=POST [06:11:12]POST find Content-Length [06:11:12]Host: 172.17.44.195:8080 [06:11:12]Content-Length: 680 [06:11:12]Content-Type: application/json [06:11:12] [06:11:12]POST finish read [06:11:12]Found Content-Length = 680 [06:11:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962634", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:11:12]execute_script... [06:11: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)1962634", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:11:12]POST & json_proto [06:11:12]process_json_proto [06:11:12]json parsed OK: [06:11:12]protocol is kg_v1.0 [06:11:12]action value=close_receipt [06:11:12]process_action close_receipt [06:11:12]cmd_close_receipt [06:11:12]MH_GetDate [06:11:12]Write to MH i2c: F0 00 00 F3 1F 01 [06:11:12]Write i2c OK [06:11:12]MH_I2C_Read... [06:11:12]Read from MH i2c: F0 [06:11:12]MH_I2C_Read... [06:11:12]Read from MH i2c: F0 09 00 [06:11:12]MH_I2C_Read... [06:11:12]Read from MH i2c: F0 09 00 F3 1F 00 03 9F 14 67 82 C9 CF 66 A7 [06:11:12]GetLastDocTimeStamp 1729404492 [06:11:12]current date 1729404675 [06:11:12]FM_GetShiftState [06:11:12]SAM_PROTO_GetShiftState [06:11:12]wFMCommunicate request_size=4 [06:11:12]MH_SAM_APDU [06:11:12]CAPDU: 80 13 01 00 [06:11:12]Write to MH i2c: E2 08 00 F4 1F 80 13 01 00 00 00 00 00 90 [06:11:12]Write i2c OK [06:11:12]MH_I2C_Read... [06:11:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:11:12]Read from MH i2c: E2 [06:11:12]MH_I2C_Read... [06:11:12]Read from MH i2c: E2 0E 00 [06:11:12]MH_I2C_Read... [06:11:12]Read from MH i2c: E2 0E 00 F4 1F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 AA [06:11:12]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [06:11:12]wFMCommunicate OK [06:11:12]SAM_PROTO_GetShiftState done [06:11:12]FM_GetShiftState done [06:11:12]opened in 1729383750 [06:11:12]opened+sec_in_day 1729470150 [06:11:12]quantity*price = 100050 [06:11:12]sum+1 = 100052 [06:11:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 31 20.10.2024 06:11 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227183 ФПД: 14526108352847 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T061115&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227183&fm=14526108352847&tin=02508201610067®Number=0000000000091685&sum=100000 [06:11:13]StoreToDocumentArchive [06:11:13]shift 533 fd 227183 [06:11:13]save to /storage/0533/doc_00227183 [06:11:13]save last doc name /storage/0533/doc_00227183 to /storage/kkm_last_doc_name [06:11:13]save OK [06:11:13]Clear old archive folders... [06:11:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:11:13]tlvbuf is 00530950 [06:11:13]SAM_PROTO_ClearQueue [06:11:13]wFMCommunicate request_size=4 [06:11:13]MH_SAM_APDU [06:11:13]CAPDU: 80 09 00 00 [06:11:13]Write to MH i2c: E2 08 00 01 20 80 09 00 00 00 00 00 00 93 [06:11:13]Write i2c OK [06:11:13]MH_I2C_Read... [06:11:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:11:13]Read from MH i2c: E2 [06:11:13]MH_I2C_Read... [06:11:13]Read from MH i2c: E2 03 00 [06:11:13]MH_I2C_Read... [06:11:13]Read from MH i2c: E2 03 00 01 20 00 90 00 95 [06:11:13]RAPDU: 90 00 [06:11:13]wFMCommunicate OK [06:11:13]SAM_PROTO_ClearQueue done [06:11:13]KKMCreateOFDPacket [06:11:13]OFDProtocolAddRootSTLVToBuf [06:11:13]FM_MakeSignedData [06:11:13]FM_MakeSignedData [06:11:13]SAM_PROTO_SignData [06:11:13]wFMCommunicate request_size=4 [06:11:13]MH_SAM_APDU [06:11:13]CAPDU: 80 0D 01 02 [06:11:13]Write to MH i2c: E2 08 00 02 20 80 0D 01 02 00 00 00 00 9B [06:11:13]Write i2c OK [06:11:13]MH_I2C_Read... [06:11:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:11:13]Read from MH i2c: E2 [06:11:13]MH_I2C_Read... [06:11:13]Read from MH i2c: E2 03 00 [06:11:13]MH_I2C_Read... [06:11:13]Read from MH i2c: E2 03 00 02 20 00 90 00 96 [06:11:13]RAPDU: 90 00 [06:11:13]wFMCommunicate OK [06:11:13]wFMCommunicate request_size=255 [06:11:13]MH_SAM_APDU [06:11:13]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 03 9F 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6F 77 03 00 35 04 06 00 0D 36 1F 87 [06:11:13]Write to MH i2c: E2 02 01 03 20 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 03 9F 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6F 77 03 00 35 04 06 00 0D 36 1F 87 00 00 4D [06:11:13]Write i2c OK [06:11:13]MH_I2C_Read... [06:11:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:11:14]Read from MH i2c: E2 [06:11:14]MH_I2C_Read... [06:11:14]Read from MH i2c: E2 03 00 [06:11:14]MH_I2C_Read... [06:11:14]Read from MH i2c: E2 03 00 03 20 00 90 00 97 [06:11:14]RAPDU: 90 00 [06:11:14]wFMCommunicate OK [06:11:14]wFMCommunicate request_size=7 [06:11:14]MH_SAM_APDU [06:11:14]CAPDU: 80 0D 02 02 02 41 4F [06:11:14]Write to MH i2c: E2 0A 00 04 20 80 0D 02 02 02 00 41 4F 00 00 32 [06:11:14]Write i2c OK [06:11:14]MH_I2C_Read... [06:11:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:11:14]Read from MH i2c: E2 [06:11:14]MH_I2C_Read... [06:11:14]Read from MH i2c: E2 03 00 [06:11:14]MH_I2C_Read... [06:11:14]Read from MH i2c: E2 03 00 04 20 00 90 00 98 [06:11:14]RAPDU: 90 00 [06:11:14]wFMCommunicate OK [06:11:14]wFMCommunicate request_size=4 [06:11:14]MH_SAM_APDU [06:11:14]CAPDU: 80 0D 03 02 [06:11:14]Write to MH i2c: E2 08 00 05 20 80 0D 03 02 00 00 00 00 A0 [06:11:14]Write i2c OK [06:11:14]MH_I2C_Read... [06:11:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:11:14]Read from MH i2c: E2 [06:11:14]MH_I2C_Read... [06:11:14]Read from MH i2c: E2 0B 00 [06:11:14]MH_I2C_Read... [06:11:14]Read from MH i2c: E2 0B 00 05 20 00 C4 C4 B3 34 3A E0 89 FA 90 00 AD [06:11:14]RAPDU: C4 C4 B3 34 3A E0 89 FA 90 00 [06:11:14]wFMCommunicate OK [06:11:14]SAM_PROTO_SignData done [06:11:14]FM_MakeSignedData done [06:11:14]CreateOFDProtocolMessage [06:11:14]wFMCommunicate request_size=4 [06:11:14]MH_SAM_APDU [06:11:14]CAPDU: 80 11 00 00 [06:11:14]Write to MH i2c: E2 08 00 06 20 80 11 00 00 00 00 00 00 A0 [06:11:14]Write i2c OK [06:11:14]MH_I2C_Read... [06:11:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:11:14]Read from MH i2c: E2 [06:11:14]MH_I2C_Read... [06:11:14]Read from MH i2c: E2 17 00 [06:11:14]MH_I2C_Read... [06:11:14]Read from MH i2c: E2 17 00 06 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F7 [06:11:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [06:11:14]wFMCommunicate OK [06:11:14]CreateOFDProtocolMessage done [06:11:14]OFDSenderStorePacket 227183 [06:11:14]StoreOFDPacket docnum=227183 [06:11:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 99 81 04 01 0C A0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 03 9F 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6F 77 03 00 35 04 06 00 0D 36 1F 87 41 4F C4 C4 B3 34 3A E0 89 FA [06:11:14]CheckFolder [06:11:14]dirname=/storage/ofd_packets [06:11:14]CheckFolder done [06:11:14]ProducePacketName [06:11:14]name=ofd_packets/00227183 [06:11:14]NVStorageSaveData ofd_packets/00227183 [06:11:14]File name is /storage/ofd_packets/00227183 [06:11:14]Write 298 bytes [06:11:14]NVStorageSaveData done [06:11:14]OFDSenderStorePacket done [06:11:14]KKMCreateOFDPacket done [06:11:14]NVStorageSaveData kkm_last_timestamp [06:11:14]File name is /storage/kkm_last_timestamp [06:11:14]Write 4 bytes [06:11:14]NVStorageSaveData done [06:11:14]ExternCall_PrintAddStr [06:11:14]wPrintStart [06:11:14]Write to MH i2c: 01 00 00 07 20 27 [06:11:14]Write i2c OK [06:11:14]MH_I2C_Read... [06:11:14]Read from MH i2c: 01 [06:11:14]MH_I2C_Read... [06:11:14]Read from MH i2c: 01 07 00 [06:11:14]MH_I2C_Read... [06:11:14]Read from MH i2c: 01 07 00 07 20 00 00 00 00 00 FF 0F 3C [06:11:14]RasterBufferAndPrint [06:11:14]line Счет N : (1)1962634 [06:11:14]line ИНН: 02508201610067 [06:11:14]line Контрольно-Кассовый Чек [06:11:14]line ПРОДАЖА [06:11:14]line ТРК (МРК, ГНК) : 41 [06:11:14]line Товар: 2710194210 [06:11:14]line ДТ-К-5 [06:11:14]line 13.130 * 76.20 [06:11:14]line = 1000.51 [06:11:14]line НДС 12% НСП 1% [06:11:14]line > о реализуемом товаре [06:11:14]line ОКРУГЛЕНИЕ: -0.51 [06:11:14]line ИТОГО: 1000.00 [06:11:14]line Внесено: 1000.00 [06:11:14]line СДАЧА: 0.00 [06:11:14]line НСП 1% : 8.85 [06:11:14]line НДС 12% : 106.25 [06:11:14]line Наличными: 1000.00 [06:11:14]line Безнал.: 0.00 [06:11:14]line Место: АЗС № 133 "Партнер Нефть" [06:11:14]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [06:11:14]line СНО: Общий режим [06:11:14]line Чек 31 20.10.2024 06:11 [06:11:14]line Смена: 533 ФФД: 1.0 [06:11:14]line ЗНМ: 0300000091 [06:11:14]line РНМ: 0000000000091685 [06:11:14]line Версия ККМ: 001 [06:11:14]line ФМ: 0000000000871839 [06:11:14]line ФД: 227183 [06:11:14]line ФПД: 14526108352847 [06:11:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T061115&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227183&fm=14526108352847&tin=02508201610067®Number=0000000000091685&sum=100000 [06:11:14]OFD Sender: Processing packet 227183 [packets to send 38, broken 37] [06:11:14]ProducePacketName [06:11:14]name=ofd_packets/00227183 [06:11:14]OFD Sender: To server: pG, [06:11:14]CommunicateWithHost lk.salyk.kg:30040 [06:11:14]ConnectInit lk.salyk.kg [06:11:14]written 0, free lines is 4095 [06:11:14]Connected sock=11 [06:11: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 33 39 0C 01 00 00 99 81 04 01 0C A0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 03 9F 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6F 77 03 00 35 04 06 00 0D 36 1F 87 41 4F C4 C4 B3 34 3A E0 89 FA [06:11: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 33 39 4F 00 00 00 D3 C4 47 00 FF 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6F 77 03 00 F4 03 04 00 03 4A 14 67 B6 04 01 00 00 E5 48 79 18 D6 8F 9F 10 [06:11:14]CommunicateWithHost err = 0 [06:11:14]CheckOFDResponse [06:11:14]1017 (14) - 77093643461234 [06:11:14]1041 (16) - 0000000000871839 [06:11:14]1040 (4) - 227183 [06:11:14]1012 (4) - 20.10.2024 00:08 [06:11:14]1206 (1) - 0 [06:11:14]OFD Sender: Remove packet 227183 [06:11:14]ProducePacketName [06:11:14]name=ofd_packets/00227183 [06:11:14]NVStorageDeleteData [06:11:15]Write to MH i2c: 01 00 00 31 20 51 [06:11:15]Write i2c OK [06:11:15]MH_I2C_Read... [06:11:15]Read from MH i2c: 01 [06:11:15]MH_I2C_Read... [06:11:15]Read from MH i2c: 01 07 00 [06:11:15]MH_I2C_Read... [06:11:15]Read from MH i2c: 01 07 00 31 20 00 00 00 00 00 19 0D 7E [06:11:15]RasterBufferAndPrint [06:11:15]line [06:11:15]line [06:11:15]line [06:11:15]line [06:11:15]line [06:11:15]written 0, free lines is 3359 [06:11:15]process_action close_receipt done [06:11:15]requested_data is exist [06:11:15]produce_requested_data [06:11:15]requested_item fm.sn is exist - process it [06:11:15]wFMCommunicate request_size=4 [06:11:15]MH_SAM_APDU [06:11:15]CAPDU: 80 11 00 00 [06:11:15]Write to MH i2c: E2 08 00 38 20 80 11 00 00 00 00 00 00 D2 [06:11:15]Write i2c OK [06:11:15]MH_I2C_Read... [06:11:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:11:15]Read from MH i2c: E2 [06:11:15]MH_I2C_Read... [06:11:15]Read from MH i2c: E2 17 00 [06:11:15]MH_I2C_Read... [06:11:15]Read from MH i2c: E2 17 00 38 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 29 [06:11:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [06:11:15]wFMCommunicate OK [06:11:15]requested_item fd.num is exist - process it [06:11:15]SAM_PROTO_GetFieldsCounters [06:11:15]wFMCommunicate request_size=4 [06:11:15]MH_SAM_APDU [06:11:15]CAPDU: 80 13 00 00 [06:11:15]Write to MH i2c: E2 08 00 39 20 80 13 00 00 00 00 00 00 D5 [06:11:15]Write i2c OK [06:11:15]MH_I2C_Read... [06:11:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:11:15]Read from MH i2c: E2 [06:11:15]MH_I2C_Read... [06:11:15]Read from MH i2c: E2 62 00 [06:11:15]MH_I2C_Read... [06:11:15]Read from MH i2c: E2 62 00 39 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6F 77 03 00 0E 04 04 00 15 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 5B [06:11: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6F 77 03 00 0E 04 04 00 15 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 [06:11:15]wFMCommunicate OK [06:11:15]SAM_PROTO_GetFieldsCounters done [06:11:15]requested_item shift.num is exist - process it [06:11:15]requested_item shift.opened is exist - process it [06:11:15]req_shift_opened [06:11:15]FM_GetShiftState [06:11:15]SAM_PROTO_GetShiftState [06:11:15]wFMCommunicate request_size=4 [06:11:15]MH_SAM_APDU [06:11:15]CAPDU: 80 13 01 00 [06:11:15]Write to MH i2c: E2 08 00 3A 20 80 13 01 00 00 00 00 00 D7 [06:11:15]Write i2c OK [06:11:15]MH_I2C_Read... [06:11:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:11:15]Read from MH i2c: E2 [06:11:15]MH_I2C_Read... [06:11:15]Read from MH i2c: E2 0E 00 [06:11:15]MH_I2C_Read... [06:11:15]Read from MH i2c: E2 0E 00 3A 20 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 F1 [06:11:15]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [06:11:15]wFMCommunicate OK [06:11:15]SAM_PROTO_GetShiftState done [06:11:15]FM_GetShiftState done [06:11:15]req_shift_opened done [06:11:15]requested_item shift.open_date is exist - process it [06:11:15]req_shift_open_date [06:11:15]req_shift_open_date done [06:11:15]produce_requested_data done [06:11:15]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227183,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [06:11:15]process_action_free close_receipt [06:11:15]json_value_free [06:11:15]json_value_free done [06:11:15]process_json_proto returns [06:11:15]Send response to host [06:11:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227183,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [06:11:15]free response buf [06:11:15]execute_script done [06:11:15]execute_script returns [06:11:15]free content buf [06:11:15]Sock 9.Close socket [06:11:15]Sock 9.Thread stoped [06:11:15]OFD Sender: No OFD packet to send [06:11:16]accept exits with 8 [06:11:16]New connection [06:11:16]New thread 3066821988 created [06:11:16]Thread 3066965348 joined [06:11:16]Waiting for new connection... [06:11:16] Sock 8.Parse request [06:11:16]Sock 8.Check first char [06:11:16]Sock 8.First char is OK [06:11:16]request: POST /json_proto HTTP/1.0 [06:11:16]Method: POST [06:11:16]URL: /json_proto [06:11:16]Method is POST - this is cgi request [06:11:16]url: /json_proto [06:11:16]query_string will be loaded in cgi processing [06:11:16]execute_cgi json_proto POST (null) [06:11:16]execute_cgi path=json_proto method=POST [06:11:16]POST find Content-Length [06:11:16]Host: 172.17.44.195:8080 [06:11:16]Content-Length: 678 [06:11:16]Content-Type: application/json [06:11:16] [06:11:16]POST finish read [06:11:16]Found Content-Length = 678 [06:11:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962635", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:11:16]execute_script... [06:11:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962635", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:11:16]POST & json_proto [06:11:16]process_json_proto [06:11:16]json parsed OK: [06:11:16]protocol is kg_v1.0 [06:11:16]action value=close_receipt [06:11:16]process_action close_receipt [06:11:16]cmd_close_receipt [06:11:16]MH_GetDate [06:11:16]Write to MH i2c: F0 00 00 3B 20 4A [06:11:16]Write i2c OK [06:11:16]MH_I2C_Read... [06:11:16]Read from MH i2c: F0 [06:11:16]MH_I2C_Read... [06:11:16]Read from MH i2c: F0 09 00 [06:11:16]MH_I2C_Read... [06:11:16]Read from MH i2c: F0 09 00 3B 20 00 08 9F 14 67 82 C9 CF 66 F5 [06:11:16]GetLastDocTimeStamp 1729404675 [06:11:16]current date 1729404680 [06:11:16]FM_GetShiftState [06:11:16]SAM_PROTO_GetShiftState [06:11:16]wFMCommunicate request_size=4 [06:11:16]MH_SAM_APDU [06:11:16]CAPDU: 80 13 01 00 [06:11:16]Write to MH i2c: E2 08 00 3C 20 80 13 01 00 00 00 00 00 D9 [06:11:16]Write i2c OK [06:11:16]MH_I2C_Read... [06:11:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:11:16]Read from MH i2c: E2 [06:11:16]MH_I2C_Read... [06:11:16]Read from MH i2c: E2 0E 00 [06:11:16]MH_I2C_Read... [06:11:16]Read from MH i2c: E2 0E 00 3C 20 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 F3 [06:11:16]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [06:11:16]wFMCommunicate OK [06:11:16]SAM_PROTO_GetShiftState done [06:11:16]FM_GetShiftState done [06:11:16]opened in 1729383750 [06:11:16]opened+sec_in_day 1729470150 [06:11:16]quantity*price = 50041 [06:11:16]sum+1 = 50042 [06:11:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 32 20.10.2024 06:11 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227184 ФПД: 81778873203731 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T061120&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227184&fm=81778873203731&tin=02508201610067®Number=0000000000091685&sum=50000 [06:11:18]StoreToDocumentArchive [06:11:18]shift 533 fd 227184 [06:11:18]save to /storage/0533/doc_00227184 [06:11:18]save last doc name /storage/0533/doc_00227184 to /storage/kkm_last_doc_name [06:11:18]save OK [06:11:18]Clear old archive folders... [06:11:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:11:18]tlvbuf is 005AFA40 [06:11:18]SAM_PROTO_ClearQueue [06:11:18]wFMCommunicate request_size=4 [06:11:18]MH_SAM_APDU [06:11:18]CAPDU: 80 09 00 00 [06:11:18]Write to MH i2c: E2 08 00 49 20 80 09 00 00 00 00 00 00 DB [06:11:18]Write i2c OK [06:11:18]MH_I2C_Read... [06:11:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:11:18]Read from MH i2c: E2 [06:11:18]MH_I2C_Read... [06:11:18]Read from MH i2c: E2 03 00 [06:11:18]MH_I2C_Read... [06:11:18]Read from MH i2c: E2 03 00 49 20 00 90 00 DD [06:11:18]RAPDU: 90 00 [06:11:18]wFMCommunicate OK [06:11:18]SAM_PROTO_ClearQueue done [06:11:18]KKMCreateOFDPacket [06:11:18]OFDProtocolAddRootSTLVToBuf [06:11:18]FM_MakeSignedData [06:11:18]FM_MakeSignedData [06:11:18]SAM_PROTO_SignData [06:11:18]wFMCommunicate request_size=4 [06:11:18]MH_SAM_APDU [06:11:18]CAPDU: 80 0D 01 02 [06:11:18]Write to MH i2c: E2 08 00 4A 20 80 0D 01 02 00 00 00 00 E3 [06:11:18]Write i2c OK [06:11:18]MH_I2C_Read... [06:11:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:11:18]Read from MH i2c: E2 [06:11:18]MH_I2C_Read... [06:11:18]Read from MH i2c: E2 03 00 [06:11:18]MH_I2C_Read... [06:11:18]Read from MH i2c: E2 03 00 4A 20 00 90 00 DE [06:11:18]RAPDU: 90 00 [06:11:18]wFMCommunicate OK [06:11:18]wFMCommunicate request_size=255 [06:11:18]MH_SAM_APDU [06:11:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 08 9F 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 70 77 03 00 35 04 06 00 4A [06:11:18]Write to MH i2c: E2 02 01 4B 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 08 9F 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 70 77 03 00 35 04 06 00 4A 00 00 07 [06:11:18]Write i2c OK [06:11:18]MH_I2C_Read... [06:11:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:11:18]Read from MH i2c: E2 [06:11:18]MH_I2C_Read... [06:11:18]Read from MH i2c: E2 03 00 [06:11:18]MH_I2C_Read... [06:11:18]Read from MH i2c: E2 03 00 4B 20 00 90 00 DF [06:11:18]RAPDU: 90 00 [06:11:18]wFMCommunicate OK [06:11:18]wFMCommunicate request_size=10 [06:11:18]MH_SAM_APDU [06:11:18]CAPDU: 80 0D 02 02 05 60 A0 AF FC 13 [06:11:18]Write to MH i2c: E2 0D 00 4C 20 80 0D 02 02 05 00 60 A0 AF FC 13 00 00 AE [06:11:18]Write i2c OK [06:11:18]MH_I2C_Read... [06:11:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:11:18]Read from MH i2c: E2 [06:11:18]MH_I2C_Read... [06:11:18]Read from MH i2c: E2 03 00 [06:11:18]MH_I2C_Read... [06:11:18]Read from MH i2c: E2 03 00 4C 20 00 90 00 E0 [06:11:18]RAPDU: 90 00 [06:11:18]wFMCommunicate OK [06:11:18]wFMCommunicate request_size=4 [06:11:18]MH_SAM_APDU [06:11:18]CAPDU: 80 0D 03 02 [06:11:18]Write to MH i2c: E2 08 00 4D 20 80 0D 03 02 00 00 00 00 E8 [06:11:18]Write i2c OK [06:11:18]MH_I2C_Read... [06:11:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:11:18]Read from MH i2c: E2 [06:11:18]MH_I2C_Read... [06:11:18]Read from MH i2c: E2 0B 00 [06:11:18]MH_I2C_Read... [06:11:18]Read from MH i2c: E2 0B 00 4D 20 00 F5 98 C1 6A CF 6E DE 9F 90 00 5B [06:11:18]RAPDU: F5 98 C1 6A CF 6E DE 9F 90 00 [06:11:18]wFMCommunicate OK [06:11:18]SAM_PROTO_SignData done [06:11:18]FM_MakeSignedData done [06:11:18]CreateOFDProtocolMessage [06:11:18]wFMCommunicate request_size=4 [06:11:18]MH_SAM_APDU [06:11:18]CAPDU: 80 11 00 00 [06:11:18]Write to MH i2c: E2 08 00 4E 20 80 11 00 00 00 00 00 00 E8 [06:11:18]Write i2c OK [06:11:18]MH_I2C_Read... [06:11:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:11:18]Read from MH i2c: E2 [06:11:18]MH_I2C_Read... [06:11:18]Read from MH i2c: E2 17 00 [06:11:18]MH_I2C_Read... [06:11:18]Read from MH i2c: E2 17 00 4E 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 3F [06:11:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [06:11:18]wFMCommunicate OK [06:11:18]CreateOFDProtocolMessage done [06:11:18]OFDSenderStorePacket 227184 [06:11:18]StoreOFDPacket docnum=227184 [06:11:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 1C D3 07 01 89 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 08 9F 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 70 77 03 00 35 04 06 00 4A 60 A0 AF FC 13 F5 98 C1 6A CF 6E DE 9F [06:11:18]CheckFolder [06:11:18]dirname=/storage/ofd_packets [06:11:18]CheckFolder done [06:11:18]ProducePacketName [06:11:18]name=ofd_packets/00227184 [06:11:18]NVStorageSaveData ofd_packets/00227184 [06:11:18]File name is /storage/ofd_packets/00227184 [06:11:18]Write 301 bytes [06:11:18]NVStorageSaveData done [06:11:18]OFDSenderStorePacket done [06:11:18]KKMCreateOFDPacket done [06:11:18]NVStorageSaveData kkm_last_timestamp [06:11:18]File name is /storage/kkm_last_timestamp [06:11:18]Write 4 bytes [06:11:18]NVStorageSaveData done [06:11:18]ExternCall_PrintAddStr [06:11:18]wPrintStart [06:11:18]Write to MH i2c: 01 00 00 4F 20 6F [06:11:18]Write i2c OK [06:11:18]MH_I2C_Read... [06:11:18]Read from MH i2c: 01 [06:11:18]MH_I2C_Read... [06:11:18]Read from MH i2c: 01 07 00 [06:11:18]MH_I2C_Read... [06:11:18]Read from MH i2c: 01 07 00 4F 20 00 00 00 00 00 FF 0F 84 [06:11:18]RasterBufferAndPrint [06:11:18]line Счет N : (1)1962635 [06:11:18]line ИНН: 02508201610067 [06:11:18]line Контрольно-Кассовый Чек [06:11:18]line ПРОДАЖА [06:11:18]line ТРК (МРК, ГНК) : 63 [06:11:18]line Товар: 2710124130 [06:11:18]line Аи-92-К-5 [06:11:18]line 7.480 * 66.90 [06:11:18]line = 500.41 [06:11:18]line НДС 12% НСП 1% [06:11:18]line > о реализуемом товаре [06:11:18]line ОКРУГЛЕНИЕ: -0.41 [06:11:18]line ИТОГО: 500.00 [06:11:18]line Внесено: 500.00 [06:11:18]line СДАЧА: 0.00 [06:11:18]line НСП 1% : 4.43 [06:11:18]line НДС 12% : 53.14 [06:11:18]line Наличными: 500.00 [06:11:18]line Безнал.: 0.00 [06:11:18]line Место: АЗС № 133 "Партнер Нефть" [06:11:18]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [06:11:18]line СНО: Общий режим [06:11:18]line Чек 32 20.10.2024 06:11 [06:11:18]line Смена: 533 ФФД: 1.0 [06:11:18]line ЗНМ: 0300000091 [06:11:18]line РНМ: 0000000000091685 [06:11:18]line Версия ККМ: 001 [06:11:18]line ФМ: 0000000000871839 [06:11:18]line ФД: 227184 [06:11:18]line ФПД: 81778873203731 [06:11:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T061120&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227184&fm=81778873203731&tin=02508201610067®Number=0000000000091685&sum=50000 [06:11:18]written 0, free lines is 4095 [06:11:18]OFD Sender: Processing packet 227184 [packets to send 38, broken 37] [06:11:18]ProducePacketName [06:11:18]name=ofd_packets/00227184 [06:11:18]OFD Sender: To server: pG, [06:11:18]CommunicateWithHost lk.salyk.kg:30040 [06:11:18]ConnectInit lk.salyk.kg [06:11:18]Connected sock=10 [06:11: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 33 39 0F 01 00 00 1C D3 07 01 89 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 08 9F 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 70 77 03 00 35 04 06 00 4A 60 A0 AF FC 13 F5 98 C1 6A CF 6E DE 9F [06:11: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 33 39 4F 00 00 00 2B B7 47 00 A9 B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 70 77 03 00 F4 03 04 00 07 4A 14 67 B6 04 01 00 00 5B 0A 44 77 8F 09 AF A4 [06:11:19]CommunicateWithHost err = 0 [06:11:19]CheckOFDResponse [06:11:19]1017 (14) - 77093643461234 [06:11:19]1041 (16) - 0000000000871839 [06:11:19]1040 (4) - 227184 [06:11:19]1012 (4) - 20.10.2024 00:08 [06:11:19]1206 (1) - 0 [06:11:19]OFD Sender: Remove packet 227184 [06:11:19]ProducePacketName [06:11:19]name=ofd_packets/00227184 [06:11:19]NVStorageDeleteData [06:11:19]Write to MH i2c: 01 00 00 79 20 99 [06:11:19]Write i2c OK [06:11:19]MH_I2C_Read... [06:11:19]Read from MH i2c: 01 [06:11:19]MH_I2C_Read... [06:11:19]Read from MH i2c: 01 07 00 [06:11:19]MH_I2C_Read... [06:11:19]Read from MH i2c: 01 07 00 79 20 00 00 00 00 00 07 0D B4 [06:11:19]RasterBufferAndPrint [06:11:19]line [06:11:19]line [06:11:19]line [06:11:19]line [06:11:19]line [06:11:19]written 0, free lines is 3350 [06:11:19]process_action close_receipt done [06:11:19]requested_data is exist [06:11:19]produce_requested_data [06:11:19]requested_item fm.sn is exist - process it [06:11:19]wFMCommunicate request_size=4 [06:11:19]MH_SAM_APDU [06:11:19]CAPDU: 80 11 00 00 [06:11:19]Write to MH i2c: E2 08 00 80 20 80 11 00 00 00 00 00 00 1A [06:11:19]Write i2c OK [06:11:19]MH_I2C_Read... [06:11:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:11:19]Read from MH i2c: E2 [06:11:19]MH_I2C_Read... [06:11:19]Read from MH i2c: E2 17 00 [06:11:19]MH_I2C_Read... [06:11:19]Read from MH i2c: E2 17 00 80 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 71 [06:11:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [06:11:19]wFMCommunicate OK [06:11:19]requested_item fd.num is exist - process it [06:11:19]SAM_PROTO_GetFieldsCounters [06:11:19]wFMCommunicate request_size=4 [06:11:19]MH_SAM_APDU [06:11:19]CAPDU: 80 13 00 00 [06:11:19]Write to MH i2c: E2 08 00 81 20 80 13 00 00 00 00 00 00 1D [06:11:19]Write i2c OK [06:11:19]MH_I2C_Read... [06:11:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:11:19]Read from MH i2c: E2 [06:11:19]MH_I2C_Read... [06:11:19]Read from MH i2c: E2 62 00 [06:11:19]MH_I2C_Read... [06:11:19]Read from MH i2c: E2 62 00 81 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 70 77 03 00 0E 04 04 00 15 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 A7 [06:11: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 70 77 03 00 0E 04 04 00 15 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 [06:11:19]wFMCommunicate OK [06:11:19]SAM_PROTO_GetFieldsCounters done [06:11:19]requested_item shift.num is exist - process it [06:11:19]requested_item shift.opened is exist - process it [06:11:19]req_shift_opened [06:11:19]FM_GetShiftState [06:11:19]SAM_PROTO_GetShiftState [06:11:19]wFMCommunicate request_size=4 [06:11:19]MH_SAM_APDU [06:11:19]CAPDU: 80 13 01 00 [06:11:19]Write to MH i2c: E2 08 00 82 20 80 13 01 00 00 00 00 00 1F [06:11:19]Write i2c OK [06:11:19]MH_I2C_Read... [06:11:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:11:19]Read from MH i2c: E2 [06:11:19]MH_I2C_Read... [06:11:19]Read from MH i2c: E2 0E 00 [06:11:19]MH_I2C_Read... [06:11:19]Read from MH i2c: E2 0E 00 82 20 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 39 [06:11:19]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [06:11:19]wFMCommunicate OK [06:11:19]SAM_PROTO_GetShiftState done [06:11:19]FM_GetShiftState done [06:11:19]req_shift_opened done [06:11:19]requested_item shift.open_date is exist - process it [06:11:19]req_shift_open_date [06:11:19]req_shift_open_date done [06:11:19]produce_requested_data done [06:11:19]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227184,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [06:11:19]process_action_free close_receipt [06:11:19]json_value_free [06:11:19]json_value_free done [06:11:19]process_json_proto returns [06:11:19]Send response to host [06:11:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227184,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [06:11:19]free response buf [06:11:19]execute_script done [06:11:19]execute_script returns [06:11:19]free content buf [06:11:19]Sock 8.Close socket [06:11:19]Sock 8.Thread stoped [06:11:19]OFD Sender: No OFD packet to send [06:11:24]OFD Sender: No OFD packet to send [06:11:29]OFD Sender: No OFD packet to send [06:11:34]OFD Sender: No OFD packet to send [06:11:39]OFD Sender: No OFD packet to send [06:11:44]OFD Sender: No OFD packet to send [06:11:49]OFD Sender: No OFD packet to send [06:11:54]OFD Sender: No OFD packet to send [06:11:59]OFD Sender: No OFD packet to send [06:12:04]OFD Sender: No OFD packet to send [06:12:09]OFD Sender: No OFD packet to send [06:12:14]OFD Sender: No OFD packet to send [06:12:19]OFD Sender: No OFD packet to send [06:12:24]OFD Sender: No OFD packet to send [06:12:29]OFD Sender: No OFD packet to send [06:12:34]OFD Sender: No OFD packet to send [06:12:39]OFD Sender: No OFD packet to send [06:12:44]OFD Sender: No OFD packet to send [06:12:49]OFD Sender: No OFD packet to send [06:12:54]OFD Sender: No OFD packet to send [06:12:59]OFD Sender: No OFD packet to send [06:13:04]OFD Sender: No OFD packet to send [06:13:09]OFD Sender: No OFD packet to send [06:13:14]OFD Sender: No OFD packet to send [06:13:19]OFD Sender: No OFD packet to send [06:13:24]OFD Sender: No OFD packet to send [06:13:29]OFD Sender: No OFD packet to send [06:13:34]OFD Sender: No OFD packet to send [06:13:39]OFD Sender: No OFD packet to send [06:13:44]OFD Sender: No OFD packet to send [06:13:49]OFD Sender: No OFD packet to send [06:13:54]OFD Sender: No OFD packet to send [06:13:59]OFD Sender: No OFD packet to send [06:14:04]OFD Sender: No OFD packet to send [06:14:09]OFD Sender: No OFD packet to send [06:14:14]OFD Sender: No OFD packet to send [06:14:19]OFD Sender: No OFD packet to send [06:14:24]OFD Sender: No OFD packet to send [06:14:29]OFD Sender: No OFD packet to send [06:14:34]OFD Sender: No OFD packet to send [06:14:39]OFD Sender: No OFD packet to send [06:14:44]OFD Sender: No OFD packet to send [06:14:49]OFD Sender: No OFD packet to send [06:14:52]accept exits with 9 [06:14:52]New connection [06:14:52]New thread 3066965348 created [06:14:52]Thread 3066821988 joined [06:14:52]Waiting for new connection... [06:14:52] Sock 9.Parse request [06:14:52]Sock 9.Check first char [06:14:52]Sock 9.First char is OK [06:14:52]request: POST /json_proto HTTP/1.0 [06:14:52]Method: POST [06:14:52]URL: /json_proto [06:14:52]Method is POST - this is cgi request [06:14:52]url: /json_proto [06:14:52]query_string will be loaded in cgi processing [06:14:52]execute_cgi json_proto POST (null) [06:14:52]execute_cgi path=json_proto method=POST [06:14:52]POST find Content-Length [06:14:52]Host: 172.17.44.195:8080 [06:14:52]Content-Length: 678 [06:14:52]Content-Type: application/json [06:14:52] [06:14:52]POST finish read [06:14:52]Found Content-Length = 678 [06:14:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962636", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:14:52]execute_script... [06:14:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962636", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:14:52]POST & json_proto [06:14:52]process_json_proto [06:14:52]json parsed OK: [06:14:52]protocol is kg_v1.0 [06:14:52]action value=close_receipt [06:14:52]process_action close_receipt [06:14:52]cmd_close_receipt [06:14:52]MH_GetDate [06:14:52]Write to MH i2c: F0 00 00 83 20 92 [06:14:52]Write i2c OK [06:14:52]MH_I2C_Read... [06:14:52]Read from MH i2c: F0 [06:14:52]MH_I2C_Read... [06:14:52]Read from MH i2c: F0 09 00 [06:14:52]MH_I2C_Read... [06:14:52]Read from MH i2c: F0 09 00 83 20 00 E0 9F 14 67 82 C9 CF 66 15 [06:14:52]GetLastDocTimeStamp 1729404680 [06:14:52]current date 1729404896 [06:14:52]FM_GetShiftState [06:14:52]SAM_PROTO_GetShiftState [06:14:52]wFMCommunicate request_size=4 [06:14:52]MH_SAM_APDU [06:14:52]CAPDU: 80 13 01 00 [06:14:52]Write to MH i2c: E2 08 00 84 20 80 13 01 00 00 00 00 00 21 [06:14:52]Write i2c OK [06:14:52]MH_I2C_Read... [06:14:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:14:52]Read from MH i2c: E2 [06:14:52]MH_I2C_Read... [06:14:52]Read from MH i2c: E2 0E 00 [06:14:52]MH_I2C_Read... [06:14:52]Read from MH i2c: E2 0E 00 84 20 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 3B [06:14:52]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [06:14:52]wFMCommunicate OK [06:14:52]SAM_PROTO_GetShiftState done [06:14:52]FM_GetShiftState done [06:14:52]opened in 1729383750 [06:14:52]opened+sec_in_day 1729470150 [06:14:52]quantity*price = 50041 [06:14:52]sum+1 = 50042 [06:14:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 33 20.10.2024 06:14 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227185 ФПД: 275321582476305 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T061456&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227185&fm=275321582476305&tin=02508201610067®Number=0000000000091685&sum=50000 [06:14:53]StoreToDocumentArchive [06:14:53]shift 533 fd 227185 [06:14:53]save to /storage/0533/doc_00227185 [06:14:53]save last doc name /storage/0533/doc_00227185 to /storage/kkm_last_doc_name [06:14:53]save OK [06:14:53]Clear old archive folders... [06:14:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:14:53]tlvbuf is 004EEFD0 [06:14:53]SAM_PROTO_ClearQueue [06:14:53]wFMCommunicate request_size=4 [06:14:53]MH_SAM_APDU [06:14:53]CAPDU: 80 09 00 00 [06:14:53]Write to MH i2c: E2 08 00 91 20 80 09 00 00 00 00 00 00 23 [06:14:53]Write i2c OK [06:14:53]MH_I2C_Read... [06:14:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:14:53]Read from MH i2c: E2 [06:14:53]MH_I2C_Read... [06:14:53]Read from MH i2c: E2 03 00 [06:14:53]MH_I2C_Read... [06:14:53]Read from MH i2c: E2 03 00 91 20 00 90 00 25 [06:14:53]RAPDU: 90 00 [06:14:53]wFMCommunicate OK [06:14:53]SAM_PROTO_ClearQueue done [06:14:53]KKMCreateOFDPacket [06:14:53]OFDProtocolAddRootSTLVToBuf [06:14:53]FM_MakeSignedData [06:14:53]FM_MakeSignedData [06:14:53]SAM_PROTO_SignData [06:14:53]wFMCommunicate request_size=4 [06:14:53]MH_SAM_APDU [06:14:53]CAPDU: 80 0D 01 02 [06:14:53]Write to MH i2c: E2 08 00 92 20 80 0D 01 02 00 00 00 00 2B [06:14:53]Write i2c OK [06:14:53]MH_I2C_Read... [06:14:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:14:53]Read from MH i2c: E2 [06:14:53]MH_I2C_Read... [06:14:53]Read from MH i2c: E2 03 00 [06:14:53]MH_I2C_Read... [06:14:53]Read from MH i2c: E2 03 00 92 20 00 90 00 26 [06:14:53]RAPDU: 90 00 [06:14:53]wFMCommunicate OK [06:14:53]wFMCommunicate request_size=255 [06:14:53]MH_SAM_APDU [06:14:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 E0 9F 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 71 77 03 00 35 04 06 00 FA [06:14:53]Write to MH i2c: E2 02 01 93 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 E0 9F 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 71 77 03 00 35 04 06 00 FA 00 00 D9 [06:14:53]Write i2c OK [06:14:53]MH_I2C_Read... [06:14:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:14:54]Read from MH i2c: E2 [06:14:54]MH_I2C_Read... [06:14:54]Read from MH i2c: E2 03 00 [06:14:54]MH_I2C_Read... [06:14:54]Read from MH i2c: E2 03 00 93 20 00 90 00 27 [06:14:54]RAPDU: 90 00 [06:14:54]wFMCommunicate OK [06:14:54]wFMCommunicate request_size=10 [06:14:54]MH_SAM_APDU [06:14:54]CAPDU: 80 0D 02 02 05 67 4D 1F 5C 11 [06:14:54]Write to MH i2c: E2 0D 00 94 20 80 0D 02 02 05 00 67 4D 1F 5C 11 00 00 78 [06:14:54]Write i2c OK [06:14:54]MH_I2C_Read... [06:14:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:14:54]Read from MH i2c: E2 [06:14:54]MH_I2C_Read... [06:14:54]Read from MH i2c: E2 03 00 [06:14:54]MH_I2C_Read... [06:14:54]Read from MH i2c: E2 03 00 94 20 00 90 00 28 [06:14:54]RAPDU: 90 00 [06:14:54]wFMCommunicate OK [06:14:54]wFMCommunicate request_size=4 [06:14:54]MH_SAM_APDU [06:14:54]CAPDU: 80 0D 03 02 [06:14:54]Write to MH i2c: E2 08 00 95 20 80 0D 03 02 00 00 00 00 30 [06:14:54]Write i2c OK [06:14:54]MH_I2C_Read... [06:14:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:14:54]Read from MH i2c: E2 [06:14:54]MH_I2C_Read... [06:14:54]Read from MH i2c: E2 0B 00 [06:14:54]MH_I2C_Read... [06:14:54]Read from MH i2c: E2 0B 00 95 20 00 7C D4 55 78 31 AB 6F 47 90 00 E0 [06:14:54]RAPDU: 7C D4 55 78 31 AB 6F 47 90 00 [06:14:54]wFMCommunicate OK [06:14:54]SAM_PROTO_SignData done [06:14:54]FM_MakeSignedData done [06:14:54]CreateOFDProtocolMessage [06:14:54]wFMCommunicate request_size=4 [06:14:54]MH_SAM_APDU [06:14:54]CAPDU: 80 11 00 00 [06:14:54]Write to MH i2c: E2 08 00 96 20 80 11 00 00 00 00 00 00 30 [06:14:54]Write i2c OK [06:14:54]MH_I2C_Read... [06:14:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:14:54]Read from MH i2c: E2 [06:14:54]MH_I2C_Read... [06:14:54]Read from MH i2c: E2 17 00 [06:14:54]MH_I2C_Read... [06:14:54]Read from MH i2c: E2 17 00 96 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 87 [06:14:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [06:14:54]wFMCommunicate OK [06:14:54]CreateOFDProtocolMessage done [06:14:54]OFDSenderStorePacket 227185 [06:14:54]StoreOFDPacket docnum=227185 [06:14:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 1C 1F 07 01 6F 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 E0 9F 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 71 77 03 00 35 04 06 00 FA 67 4D 1F 5C 11 7C D4 55 78 31 AB 6F 47 [06:14:54]CheckFolder [06:14:54]dirname=/storage/ofd_packets [06:14:54]CheckFolder done [06:14:54]ProducePacketName [06:14:54]name=ofd_packets/00227185 [06:14:54]NVStorageSaveData ofd_packets/00227185 [06:14:54]File name is /storage/ofd_packets/00227185 [06:14:54]Write 301 bytes [06:14:54]NVStorageSaveData done [06:14:54]OFDSenderStorePacket done [06:14:54]KKMCreateOFDPacket done [06:14:54]NVStorageSaveData kkm_last_timestamp [06:14:54]File name is /storage/kkm_last_timestamp [06:14:54]Write 4 bytes [06:14:54]NVStorageSaveData done [06:14:54]ExternCall_PrintAddStr [06:14:54]wPrintStart [06:14:54]Write to MH i2c: 01 00 00 97 20 B7 [06:14:54]Write i2c OK [06:14:54]MH_I2C_Read... [06:14:54]Read from MH i2c: 01 [06:14:54]MH_I2C_Read... [06:14:54]Read from MH i2c: 01 07 00 [06:14:54]MH_I2C_Read... [06:14:54]Read from MH i2c: 01 07 00 97 20 00 00 00 00 00 FF 0F CC [06:14:54]RasterBufferAndPrint [06:14:54]line Счет N : (1)1962636 [06:14:54]line ИНН: 02508201610067 [06:14:54]line Контрольно-Кассовый Чек [06:14:54]line ПРОДАЖА [06:14:54]line ТРК (МРК, ГНК) : 43 [06:14:54]line Товар: 2710124130 [06:14:54]line Аи-92-К-5 [06:14:54]line 7.480 * 66.90 [06:14:54]line = 500.41 [06:14:54]line НДС 12% НСП 1% [06:14:54]line > о реализуемом товаре [06:14:54]line ОКРУГЛЕНИЕ: -0.41 [06:14:54]line ИТОГО: 500.00 [06:14:54]line Внесено: 500.00 [06:14:54]line СДАЧА: 0.00 [06:14:54]line НСП 1% : 4.43 [06:14:54]line НДС 12% : 53.14 [06:14:54]line Наличными: 500.00 [06:14:54]line Безнал.: 0.00 [06:14:54]line Место: АЗС № 133 "Партнер Нефть" [06:14:54]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [06:14:54]line СНО: Общий режим [06:14:54]line Чек 33 20.10.2024 06:14 [06:14:54]line Смена: 533 ФФД: 1.0 [06:14:54]line ЗНМ: 0300000091 [06:14:54]line РНМ: 0000000000091685 [06:14:54]line Версия ККМ: 001 [06:14:54]line ФМ: 0000000000871839 [06:14:54]line ФД: 227185 [06:14:54]line ФПД: 275321582476305 [06:14:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T061456&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227185&fm=275321582476305&tin=02508201610067®Number=0000000000091685&sum=50000 [06:14:54]written 0, free lines is 4095 [06:14:54]OFD Sender: Processing packet 227185 [packets to send 38, broken 37] [06:14:54]ProducePacketName [06:14:54]name=ofd_packets/00227185 [06:14:54]OFD Sender: To server: pG, [06:14:54]CommunicateWithHost lk.salyk.kg:30040 [06:14:54]ConnectInit lk.salyk.kg [06:14:54]Connected sock=10 [06:14:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 1C 1F 07 01 6F 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 E0 9F 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 71 77 03 00 35 04 06 00 FA 67 4D 1F 5C 11 7C D4 55 78 31 AB 6F 47 [06:14: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 33 39 4F 00 00 00 ED 99 47 00 4D 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 33 39 10 04 04 00 71 77 03 00 F4 03 04 00 DF 4A 14 67 B6 04 01 00 00 88 A6 CB E9 7E 88 78 50 [06:14:55]CommunicateWithHost err = 0 [06:14:55]CheckOFDResponse [06:14:55]1017 (14) - 77093643461234 [06:14:55]1041 (16) - 0000000000871839 [06:14:55]1040 (4) - 227185 [06:14:55]1012 (4) - 20.10.2024 00:12 [06:14:55]1206 (1) - 0 [06:14:55]OFD Sender: Remove packet 227185 [06:14:55]ProducePacketName [06:14:55]name=ofd_packets/00227185 [06:14:55]NVStorageDeleteData [06:14:55]Write to MH i2c: 01 00 00 C1 20 E1 [06:14:55]Write i2c OK [06:14:55]MH_I2C_Read... [06:14:55]Read from MH i2c: 01 [06:14:55]MH_I2C_Read... [06:14:55]Read from MH i2c: 01 07 00 [06:14:55]MH_I2C_Read... [06:14:55]Read from MH i2c: 01 07 00 C1 20 00 00 00 00 00 02 0D F7 [06:14:55]RasterBufferAndPrint [06:14:55]line [06:14:55]line [06:14:55]line [06:14:55]line [06:14:55]line [06:14:55]written 0, free lines is 3339 [06:14:55]process_action close_receipt done [06:14:55]requested_data is exist [06:14:55]produce_requested_data [06:14:55]requested_item fm.sn is exist - process it [06:14:55]wFMCommunicate request_size=4 [06:14:55]MH_SAM_APDU [06:14:55]CAPDU: 80 11 00 00 [06:14:55]Write to MH i2c: E2 08 00 C8 20 80 11 00 00 00 00 00 00 62 [06:14:55]Write i2c OK [06:14:55]MH_I2C_Read... [06:14:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:14:55]Read from MH i2c: E2 [06:14:55]MH_I2C_Read... [06:14:55]Read from MH i2c: E2 17 00 [06:14:55]MH_I2C_Read... [06:14:55]Read from MH i2c: E2 17 00 C8 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B9 [06:14:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [06:14:55]wFMCommunicate OK [06:14:55]requested_item fd.num is exist - process it [06:14:55]SAM_PROTO_GetFieldsCounters [06:14:55]wFMCommunicate request_size=4 [06:14:55]MH_SAM_APDU [06:14:55]CAPDU: 80 13 00 00 [06:14:55]Write to MH i2c: E2 08 00 C9 20 80 13 00 00 00 00 00 00 65 [06:14:55]Write i2c OK [06:14:55]MH_I2C_Read... [06:14:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:14:55]Read from MH i2c: E2 [06:14:55]MH_I2C_Read... [06:14:55]Read from MH i2c: E2 62 00 [06:14:55]MH_I2C_Read... [06:14:55]Read from MH i2c: E2 62 00 C9 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 71 77 03 00 0E 04 04 00 15 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 F3 [06:14: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 71 77 03 00 0E 04 04 00 15 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 [06:14:55]wFMCommunicate OK [06:14:55]SAM_PROTO_GetFieldsCounters done [06:14:55]requested_item shift.num is exist - process it [06:14:55]requested_item shift.opened is exist - process it [06:14:55]req_shift_opened [06:14:55]FM_GetShiftState [06:14:55]SAM_PROTO_GetShiftState [06:14:55]wFMCommunicate request_size=4 [06:14:55]MH_SAM_APDU [06:14:55]CAPDU: 80 13 01 00 [06:14:55]Write to MH i2c: E2 08 00 CA 20 80 13 01 00 00 00 00 00 67 [06:14:55]Write i2c OK [06:14:55]MH_I2C_Read... [06:14:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:14:55]Read from MH i2c: E2 [06:14:55]MH_I2C_Read... [06:14:55]Read from MH i2c: E2 0E 00 [06:14:55]MH_I2C_Read... [06:14:55]Read from MH i2c: E2 0E 00 CA 20 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 81 [06:14:55]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [06:14:55]wFMCommunicate OK [06:14:55]SAM_PROTO_GetShiftState done [06:14:55]FM_GetShiftState done [06:14:55]req_shift_opened done [06:14:55]requested_item shift.open_date is exist - process it [06:14:55]req_shift_open_date [06:14:55]req_shift_open_date done [06:14:55]produce_requested_data done [06:14:55]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227185,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [06:14:55]process_action_free close_receipt [06:14:55]json_value_free [06:14:55]json_value_free done [06:14:55]process_json_proto returns [06:14:55]Send response to host [06:14:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227185,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [06:14:55]free response buf [06:14:55]execute_script done [06:14:55]execute_script returns [06:14:55]free content buf [06:14:55]Sock 9.Close socket [06:14:55]Sock 9.Thread stoped [06:14:55]OFD Sender: No OFD packet to send [06:15:00]OFD Sender: No OFD packet to send [06:15:05]OFD Sender: No OFD packet to send [06:15:10]OFD Sender: No OFD packet to send [06:15:15]OFD Sender: No OFD packet to send [06:15:20]OFD Sender: No OFD packet to send [06:15:25]OFD Sender: No OFD packet to send [06:15:30]OFD Sender: No OFD packet to send [06:15:35]OFD Sender: No OFD packet to send [06:15:40]OFD Sender: No OFD packet to send [06:15:45]OFD Sender: No OFD packet to send [06:15:50]OFD Sender: No OFD packet to send [06:15:55]OFD Sender: No OFD packet to send [06:16:00]OFD Sender: No OFD packet to send [06:16:05]OFD Sender: No OFD packet to send [06:16:10]OFD Sender: No OFD packet to send [06:16:15]OFD Sender: No OFD packet to send [06:16:20]OFD Sender: No OFD packet to send [06:16:25]OFD Sender: No OFD packet to send [06:16:30]OFD Sender: No OFD packet to send [06:16:35]OFD Sender: No OFD packet to send [06:16:40]OFD Sender: No OFD packet to send [06:16:45]OFD Sender: No OFD packet to send [06:16:50]OFD Sender: No OFD packet to send [06:16:55]OFD Sender: No OFD packet to send [06:17:00]OFD Sender: No OFD packet to send [06:17:05]OFD Sender: No OFD packet to send [06:17:10]OFD Sender: No OFD packet to send [06:17:15]OFD Sender: No OFD packet to send [06:17:20]OFD Sender: No OFD packet to send [06:17:25]OFD Sender: No OFD packet to send [06:17:30]OFD Sender: No OFD packet to send [06:17:35]OFD Sender: No OFD packet to send [06:17:40]OFD Sender: No OFD packet to send [06:17:45]OFD Sender: No OFD packet to send [06:17:50]OFD Sender: No OFD packet to send [06:17:55]OFD Sender: No OFD packet to send [06:18:00]OFD Sender: No OFD packet to send [06:18:05]OFD Sender: No OFD packet to send [06:18:10]OFD Sender: No OFD packet to send [06:18:15]OFD Sender: No OFD packet to send [06:18:20]OFD Sender: No OFD packet to send [06:18:25]OFD Sender: No OFD packet to send [06:18:30]OFD Sender: No OFD packet to send [06:18:35]OFD Sender: No OFD packet to send [06:18:35]accept exits with 8 [06:18:35]New connection [06:18:35]New thread 3066821988 created [06:18:35]Thread 3066965348 joined [06:18:35]Waiting for new connection... [06:18:35] Sock 8.Parse request [06:18:35]Sock 8.Check first char [06:18:35]Sock 8.First char is OK [06:18:35]request: POST /json_proto HTTP/1.0 [06:18:35]Method: POST [06:18:35]URL: /json_proto [06:18:35]Method is POST - this is cgi request [06:18:35]url: /json_proto [06:18:35]query_string will be loaded in cgi processing [06:18:35]execute_cgi json_proto POST (null) [06:18:35]execute_cgi path=json_proto method=POST [06:18:35]POST find Content-Length [06:18:35]Host: 172.17.44.195:8080 [06:18:35]Content-Length: 680 [06:18:35]Content-Type: application/json [06:18:35] [06:18:35]POST finish read [06:18:35]Found Content-Length = 680 [06:18:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962637", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:18:35]execute_script... [06:18: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)1962637", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:18:35]POST & json_proto [06:18:35]process_json_proto [06:18:35]json parsed OK: [06:18:35]protocol is kg_v1.0 [06:18:35]action value=close_receipt [06:18:35]process_action close_receipt [06:18:35]cmd_close_receipt [06:18:35]MH_GetDate [06:18:35]Write to MH i2c: F0 00 00 CB 20 DA [06:18:35]Write i2c OK [06:18:35]MH_I2C_Read... [06:18:35]Read from MH i2c: F0 [06:18:35]MH_I2C_Read... [06:18:35]Read from MH i2c: F0 09 00 [06:18:35]MH_I2C_Read... [06:18:35]Read from MH i2c: F0 09 00 CB 20 00 BF A0 14 67 82 C9 CF 66 3D [06:18:35]GetLastDocTimeStamp 1729404896 [06:18:35]current date 1729405119 [06:18:35]FM_GetShiftState [06:18:35]SAM_PROTO_GetShiftState [06:18:35]wFMCommunicate request_size=4 [06:18:35]MH_SAM_APDU [06:18:35]CAPDU: 80 13 01 00 [06:18:35]Write to MH i2c: E2 08 00 CC 20 80 13 01 00 00 00 00 00 69 [06:18:35]Write i2c OK [06:18:35]MH_I2C_Read... [06:18:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:18:35]Read from MH i2c: E2 [06:18:35]MH_I2C_Read... [06:18:35]Read from MH i2c: E2 0E 00 [06:18:35]MH_I2C_Read... [06:18:35]Read from MH i2c: E2 0E 00 CC 20 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 83 [06:18:35]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [06:18:35]wFMCommunicate OK [06:18:35]SAM_PROTO_GetShiftState done [06:18:35]FM_GetShiftState done [06:18:35]opened in 1729383750 [06:18:35]opened+sec_in_day 1729470150 [06:18:35]quantity*price = 250012 [06:18:35]sum+1 = 250013 [06:18:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.12 НДС 12% : 265.50 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 34 20.10.2024 06:18 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227186 ФПД: 205356486895752 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T061839&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227186&fm=205356486895752&tin=02508201610067®Number=0000000000091685&sum=250000 [06:18:37]StoreToDocumentArchive [06:18:37]shift 533 fd 227186 [06:18:37]save to /storage/0533/doc_00227186 [06:18:37]save last doc name /storage/0533/doc_00227186 to /storage/kkm_last_doc_name [06:18:37]save OK [06:18:37]Clear old archive folders... [06:18:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:18:37]tlvbuf is B6F5B930 [06:18:37]SAM_PROTO_ClearQueue [06:18:37]wFMCommunicate request_size=4 [06:18:37]MH_SAM_APDU [06:18:37]CAPDU: 80 09 00 00 [06:18:37]Write to MH i2c: E2 08 00 D9 20 80 09 00 00 00 00 00 00 6B [06:18:37]Write i2c OK [06:18:37]MH_I2C_Read... [06:18:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:18:37]Read from MH i2c: E2 [06:18:37]MH_I2C_Read... [06:18:37]Read from MH i2c: E2 03 00 [06:18:37]MH_I2C_Read... [06:18:37]Read from MH i2c: E2 03 00 D9 20 00 90 00 6D [06:18:37]RAPDU: 90 00 [06:18:37]wFMCommunicate OK [06:18:37]SAM_PROTO_ClearQueue done [06:18:37]KKMCreateOFDPacket [06:18:37]OFDProtocolAddRootSTLVToBuf [06:18:37]FM_MakeSignedData [06:18:37]FM_MakeSignedData [06:18:37]SAM_PROTO_SignData [06:18:37]wFMCommunicate request_size=4 [06:18:37]MH_SAM_APDU [06:18:37]CAPDU: 80 0D 01 02 [06:18:37]Write to MH i2c: E2 08 00 DA 20 80 0D 01 02 00 00 00 00 73 [06:18:37]Write i2c OK [06:18:37]MH_I2C_Read... [06:18:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:18:37]Read from MH i2c: E2 [06:18:37]MH_I2C_Read... [06:18:37]Read from MH i2c: E2 03 00 [06:18:37]MH_I2C_Read... [06:18:37]Read from MH i2c: E2 03 00 DA 20 00 90 00 6E [06:18:37]RAPDU: 90 00 [06:18:37]wFMCommunicate OK [06:18:37]wFMCommunicate request_size=255 [06:18:37]MH_SAM_APDU [06:18:37]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 BF A0 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 72 77 03 00 35 04 06 00 BA C5 48 74 [06:18:37]Write to MH i2c: E2 02 01 DB 20 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 BF A0 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 72 77 03 00 35 04 06 00 BA C5 48 74 00 00 9B [06:18:37]Write i2c OK [06:18:37]MH_I2C_Read... [06:18:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:18:37]Read from MH i2c: E2 [06:18:37]MH_I2C_Read... [06:18:37]Read from MH i2c: E2 03 00 [06:18:37]MH_I2C_Read... [06:18:37]Read from MH i2c: E2 03 00 DB 20 00 90 00 6F [06:18:37]RAPDU: 90 00 [06:18:37]wFMCommunicate OK [06:18:37]wFMCommunicate request_size=7 [06:18:37]MH_SAM_APDU [06:18:37]CAPDU: 80 0D 02 02 02 28 88 [06:18:37]Write to MH i2c: E2 0A 00 DC 20 80 0D 02 02 02 00 28 88 00 00 2A [06:18:37]Write i2c OK [06:18:37]MH_I2C_Read... [06:18:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:18:37]Read from MH i2c: E2 [06:18:37]MH_I2C_Read... [06:18:37]Read from MH i2c: E2 03 00 [06:18:37]MH_I2C_Read... [06:18:37]Read from MH i2c: E2 03 00 DC 20 00 90 00 70 [06:18:37]RAPDU: 90 00 [06:18:37]wFMCommunicate OK [06:18:37]wFMCommunicate request_size=4 [06:18:37]MH_SAM_APDU [06:18:37]CAPDU: 80 0D 03 02 [06:18:37]Write to MH i2c: E2 08 00 DD 20 80 0D 03 02 00 00 00 00 78 [06:18:37]Write i2c OK [06:18:37]MH_I2C_Read... [06:18:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:18:37]Read from MH i2c: E2 [06:18:37]MH_I2C_Read... [06:18:37]Read from MH i2c: E2 0B 00 [06:18:37]MH_I2C_Read... [06:18:37]Read from MH i2c: E2 0B 00 DD 20 00 E7 1C F6 E8 38 F6 12 20 90 00 BA [06:18:37]RAPDU: E7 1C F6 E8 38 F6 12 20 90 00 [06:18:37]wFMCommunicate OK [06:18:37]SAM_PROTO_SignData done [06:18:37]FM_MakeSignedData done [06:18:37]CreateOFDProtocolMessage [06:18:37]wFMCommunicate request_size=4 [06:18:37]MH_SAM_APDU [06:18:37]CAPDU: 80 11 00 00 [06:18:37]Write to MH i2c: E2 08 00 DE 20 80 11 00 00 00 00 00 00 78 [06:18:37]Write i2c OK [06:18:37]MH_I2C_Read... [06:18:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:18:37]Read from MH i2c: E2 [06:18:37]MH_I2C_Read... [06:18:37]Read from MH i2c: E2 17 00 [06:18:37]MH_I2C_Read... [06:18:37]Read from MH i2c: E2 17 00 DE 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 CF [06:18:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [06:18:37]wFMCommunicate OK [06:18:37]CreateOFDProtocolMessage done [06:18:37]OFDSenderStorePacket 227186 [06:18:37]StoreOFDPacket docnum=227186 [06:18:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 72 A5 04 01 90 8D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 BF A0 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 72 77 03 00 35 04 06 00 BA C5 48 74 28 88 E7 1C F6 E8 38 F6 12 20 [06:18:37]CheckFolder [06:18:37]dirname=/storage/ofd_packets [06:18:37]CheckFolder done [06:18:37]ProducePacketName [06:18:37]name=ofd_packets/00227186 [06:18:37]NVStorageSaveData ofd_packets/00227186 [06:18:37]File name is /storage/ofd_packets/00227186 [06:18:37]Write 298 bytes [06:18:37]NVStorageSaveData done [06:18:37]OFDSenderStorePacket done [06:18:37]KKMCreateOFDPacket done [06:18:37]NVStorageSaveData kkm_last_timestamp [06:18:37]File name is /storage/kkm_last_timestamp [06:18:37]Write 4 bytes [06:18:37]NVStorageSaveData done [06:18:37]ExternCall_PrintAddStr [06:18:37]wPrintStart [06:18:37]Write to MH i2c: 01 00 00 DF 20 FF [06:18:37]Write i2c OK [06:18:37]MH_I2C_Read... [06:18:37]Read from MH i2c: 01 [06:18:37]MH_I2C_Read... [06:18:37]Read from MH i2c: 01 07 00 [06:18:37]MH_I2C_Read... [06:18:37]Read from MH i2c: 01 07 00 DF 20 00 00 00 00 00 FF 0F 14 [06:18:37]RasterBufferAndPrint [06:18:37]line Счет N : (1)1962637 [06:18:37]line ИНН: 02508201610067 [06:18:37]line Контрольно-Кассовый Чек [06:18:37]line ПРОДАЖА [06:18:37]line ТРК (МРК, ГНК) : 21 [06:18:37]line Товар: 2710194210 [06:18:37]line ДТ-К-5 [06:18:37]line 32.810 * 76.20 [06:18:37]line = 2500.12 [06:18:37]line НДС 12% НСП 1% [06:18:37]line > о реализуемом товаре [06:18:37]line ОКРУГЛЕНИЕ: -0.12 [06:18:37]line ИТОГО: 2500.00 [06:18:37]line Внесено: 2500.00 [06:18:37]line СДАЧА: 0.00 [06:18:37]line НСП 1% : 22.12 [06:18:37]line НДС 12% : 265.50 [06:18:37]line Наличными: 2500.00 [06:18:37]line Безнал.: 0.00 [06:18:37]line Место: АЗС № 133 "Партнер Нефть" [06:18:37]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [06:18:37]line СНО: Общий режим [06:18:37]line Чек 34 20.10.2024 06:18 [06:18:37]line Смена: 533 ФФД: 1.0 [06:18:37]line ЗНМ: 0300000091 [06:18:37]line РНМ: 0000000000091685 [06:18:37]line Версия ККМ: 001 [06:18:37]line ФМ: 0000000000871839 [06:18:37]line ФД: 227186 [06:18:37]line ФПД: 205356486895752 [06:18:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T061839&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227186&fm=205356486895752&tin=02508201610067®Number=0000000000091685&sum=250000 [06:18:37]written 0, free lines is 4095 [06:18:37]OFD Sender: Processing packet 227186 [packets to send 38, broken 37] [06:18:37]ProducePacketName [06:18:37]name=ofd_packets/00227186 [06:18:37]OFD Sender: To server: pG, [06:18:37]CommunicateWithHost lk.salyk.kg:30040 [06:18:37]ConnectInit lk.salyk.kg [06:18:37]Connected sock=10 [06:18: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 33 39 0C 01 00 00 72 A5 04 01 90 8D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 BF A0 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 72 77 03 00 35 04 06 00 BA C5 48 74 28 88 E7 1C F6 E8 38 F6 12 20 [06:18: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 33 39 4F 00 00 00 00 63 47 00 61 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 33 39 10 04 04 00 72 77 03 00 F4 03 04 00 BE 4B 14 67 B6 04 01 00 00 04 5C 8C BD 87 28 9F A9 [06:18:37]CommunicateWithHost err = 0 [06:18:37]CheckOFDResponse [06:18:37]1017 (14) - 77093643461234 [06:18:37]1041 (16) - 0000000000871839 [06:18:37]1040 (4) - 227186 [06:18:37]1012 (4) - 20.10.2024 00:15 [06:18:37]1206 (1) - 0 [06:18:37]OFD Sender: Remove packet 227186 [06:18:37]ProducePacketName [06:18:37]name=ofd_packets/00227186 [06:18:37]NVStorageDeleteData [06:18:38]Write to MH i2c: 01 00 00 09 21 2A [06:18:38]Write i2c OK [06:18:38]MH_I2C_Read... [06:18:38]Read from MH i2c: 01 [06:18:38]MH_I2C_Read... [06:18:38]Read from MH i2c: 01 07 00 [06:18:38]MH_I2C_Read... [06:18:38]Read from MH i2c: 01 07 00 09 21 00 00 00 00 00 12 0D 50 [06:18:38]RasterBufferAndPrint [06:18:38]line [06:18:38]line [06:18:38]line [06:18:38]line [06:18:38]line [06:18:38]written 0, free lines is 3356 [06:18:38]process_action close_receipt done [06:18:38]requested_data is exist [06:18:38]produce_requested_data [06:18:38]requested_item fm.sn is exist - process it [06:18:38]wFMCommunicate request_size=4 [06:18:38]MH_SAM_APDU [06:18:38]CAPDU: 80 11 00 00 [06:18:38]Write to MH i2c: E2 08 00 10 21 80 11 00 00 00 00 00 00 AB [06:18:38]Write i2c OK [06:18:38]MH_I2C_Read... [06:18:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:18:38]Read from MH i2c: E2 [06:18:38]MH_I2C_Read... [06:18:38]Read from MH i2c: E2 17 00 [06:18:38]MH_I2C_Read... [06:18:38]Read from MH i2c: E2 17 00 10 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 02 [06:18:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [06:18:38]wFMCommunicate OK [06:18:38]requested_item fd.num is exist - process it [06:18:38]SAM_PROTO_GetFieldsCounters [06:18:38]wFMCommunicate request_size=4 [06:18:38]MH_SAM_APDU [06:18:38]CAPDU: 80 13 00 00 [06:18:38]Write to MH i2c: E2 08 00 11 21 80 13 00 00 00 00 00 00 AE [06:18:38]Write i2c OK [06:18:38]MH_I2C_Read... [06:18:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:18:38]Read from MH i2c: E2 [06:18:38]MH_I2C_Read... [06:18:38]Read from MH i2c: E2 62 00 [06:18:38]MH_I2C_Read... [06:18:38]Read from MH i2c: E2 62 00 11 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 72 77 03 00 0E 04 04 00 15 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 40 [06: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 72 77 03 00 0E 04 04 00 15 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 [06:18:38]wFMCommunicate OK [06:18:38]SAM_PROTO_GetFieldsCounters done [06:18:38]requested_item shift.num is exist - process it [06:18:38]requested_item shift.opened is exist - process it [06:18:38]req_shift_opened [06:18:38]FM_GetShiftState [06:18:38]SAM_PROTO_GetShiftState [06:18:38]wFMCommunicate request_size=4 [06:18:38]MH_SAM_APDU [06:18:38]CAPDU: 80 13 01 00 [06:18:38]Write to MH i2c: E2 08 00 12 21 80 13 01 00 00 00 00 00 B0 [06:18:38]Write i2c OK [06:18:38]MH_I2C_Read... [06:18:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:18:38]Read from MH i2c: E2 [06:18:38]MH_I2C_Read... [06:18:38]Read from MH i2c: E2 0E 00 [06:18:38]MH_I2C_Read... [06:18:38]Read from MH i2c: E2 0E 00 12 21 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 CA [06:18:38]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [06:18:38]wFMCommunicate OK [06:18:38]SAM_PROTO_GetShiftState done [06:18:38]FM_GetShiftState done [06:18:38]req_shift_opened done [06:18:38]requested_item shift.open_date is exist - process it [06:18:38]req_shift_open_date [06:18:38]req_shift_open_date done [06:18:38]produce_requested_data done [06:18:38]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227186,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [06:18:38]process_action_free close_receipt [06:18:38]json_value_free [06:18:38]json_value_free done [06:18:38]process_json_proto returns [06:18:38]Send response to host [06:18:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227186,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [06:18:38]free response buf [06:18:38]execute_script done [06:18:38]execute_script returns [06:18:38]free content buf [06:18:38]Sock 8.Close socket [06:18:38]Sock 8.Thread stoped [06:18:38]OFD Sender: No OFD packet to send [06:18:43]OFD Sender: No OFD packet to send [06:18:46]accept exits with 9 [06:18:46]New connection [06:18:46]New thread 3066965348 created [06:18:46]Thread 3066821988 joined [06:18:46]Waiting for new connection... [06:18:46] Sock 9.Parse request [06:18:46]Sock 9.Check first char [06:18:46]Sock 9.First char is OK [06:18:46]request: POST /json_proto HTTP/1.0 [06:18:46]Method: POST [06:18:46]URL: /json_proto [06:18:46]Method is POST - this is cgi request [06:18:46]url: /json_proto [06:18:46]query_string will be loaded in cgi processing [06:18:46]execute_cgi json_proto POST (null) [06:18:46]execute_cgi path=json_proto method=POST [06:18:46]POST find Content-Length [06:18:46]Host: 172.17.44.195:8080 [06:18:46]Content-Length: 683 [06:18:46]Content-Type: application/json [06:18:46] [06:18:46]POST finish read [06:18:46]Found Content-Length = 683 [06:18:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962638", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:18:46]execute_script... [06:18: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)1962638", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:18:46]POST & json_proto [06:18:46]process_json_proto [06:18:46]json parsed OK: [06:18:46]protocol is kg_v1.0 [06:18:46]action value=close_receipt [06:18:46]process_action close_receipt [06:18:46]cmd_close_receipt [06:18:46]MH_GetDate [06:18:46]Write to MH i2c: F0 00 00 13 21 23 [06:18:46]Write i2c OK [06:18:46]MH_I2C_Read... [06:18:46]Read from MH i2c: F0 [06:18:46]MH_I2C_Read... [06:18:46]Read from MH i2c: F0 09 00 [06:18:46]MH_I2C_Read... [06:18:46]Read from MH i2c: F0 09 00 13 21 00 CA A0 14 67 82 C9 CF 66 91 [06:18:46]GetLastDocTimeStamp 1729405119 [06:18:46]current date 1729405130 [06:18:46]FM_GetShiftState [06:18:46]SAM_PROTO_GetShiftState [06:18:46]wFMCommunicate request_size=4 [06:18:46]MH_SAM_APDU [06:18:46]CAPDU: 80 13 01 00 [06:18:46]Write to MH i2c: E2 08 00 14 21 80 13 01 00 00 00 00 00 B2 [06:18:46]Write i2c OK [06:18:46]MH_I2C_Read... [06:18:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:18:46]Read from MH i2c: E2 [06:18:46]MH_I2C_Read... [06:18:46]Read from MH i2c: E2 0E 00 [06:18:46]MH_I2C_Read... [06:18:46]Read from MH i2c: E2 0E 00 14 21 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 CC [06:18:46]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [06:18:46]wFMCommunicate OK [06:18:46]SAM_PROTO_GetShiftState done [06:18:46]FM_GetShiftState done [06:18:46]opened in 1729383750 [06:18:46]opened+sec_in_day 1729470150 [06:18:46]quantity*price = 100021 [06:18:46]sum+1 = 100023 [06:18:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 35 20.10.2024 06:18 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227187 ФПД: 262433763690890 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T061850&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227187&fm=262433763690890&tin=02508201610067®Number=0000000000091685&sum=100000 [06:18:47]StoreToDocumentArchive [06:18:47]shift 533 fd 227187 [06:18:47]save to /storage/0533/doc_00227187 [06:18:47]save last doc name /storage/0533/doc_00227187 to /storage/kkm_last_doc_name [06:18:47]save OK [06:18:47]Clear old archive folders... [06:18:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:18:47]tlvbuf is 004D69B0 [06:18:47]SAM_PROTO_ClearQueue [06:18:47]wFMCommunicate request_size=4 [06:18:47]MH_SAM_APDU [06:18:47]CAPDU: 80 09 00 00 [06:18:47]Write to MH i2c: E2 08 00 21 21 80 09 00 00 00 00 00 00 B4 [06:18:47]Write i2c OK [06:18:47]MH_I2C_Read... [06:18:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:18:48]Read from MH i2c: E2 [06:18:48]MH_I2C_Read... [06:18:48]Read from MH i2c: E2 03 00 [06:18:48]MH_I2C_Read... [06:18:48]Read from MH i2c: E2 03 00 21 21 00 90 00 B6 [06:18:48]RAPDU: 90 00 [06:18:48]wFMCommunicate OK [06:18:48]SAM_PROTO_ClearQueue done [06:18:48]KKMCreateOFDPacket [06:18:48]OFDProtocolAddRootSTLVToBuf [06:18:48]FM_MakeSignedData [06:18:48]FM_MakeSignedData [06:18:48]SAM_PROTO_SignData [06:18:48]wFMCommunicate request_size=4 [06:18:48]MH_SAM_APDU [06:18:48]CAPDU: 80 0D 01 02 [06:18:48]Write to MH i2c: E2 08 00 22 21 80 0D 01 02 00 00 00 00 BC [06:18:48]Write i2c OK [06:18:48]MH_I2C_Read... [06:18:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:18:48]Read from MH i2c: E2 [06:18:48]MH_I2C_Read... [06:18:48]Read from MH i2c: E2 03 00 [06:18:48]MH_I2C_Read... [06:18:48]Read from MH i2c: E2 03 00 22 21 00 90 00 B7 [06:18:48]RAPDU: 90 00 [06:18:48]wFMCommunicate OK [06:18:48]wFMCommunicate request_size=255 [06:18:48]MH_SAM_APDU [06:18: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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 CA A0 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 73 77 03 00 35 04 06 00 EE [06:18:48]Write to MH i2c: E2 02 01 23 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 CA A0 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 73 77 03 00 35 04 06 00 EE 00 00 6A [06:18:48]Write i2c OK [06:18:48]MH_I2C_Read... [06:18:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:18:48]Read from MH i2c: E2 [06:18:48]MH_I2C_Read... [06:18:48]Read from MH i2c: E2 03 00 [06:18:48]MH_I2C_Read... [06:18:48]Read from MH i2c: E2 03 00 23 21 00 90 00 B8 [06:18:48]RAPDU: 90 00 [06:18:48]wFMCommunicate OK [06:18:48]wFMCommunicate request_size=10 [06:18:48]MH_SAM_APDU [06:18:48]CAPDU: 80 0D 02 02 05 AE 9F 43 09 8A [06:18:48]Write to MH i2c: E2 0D 00 24 21 80 0D 02 02 05 00 AE 9F 43 09 8A 00 00 EC [06:18:48]Write i2c OK [06:18:48]MH_I2C_Read... [06:18:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:18:48]Read from MH i2c: E2 [06:18:48]MH_I2C_Read... [06:18:48]Read from MH i2c: E2 03 00 [06:18:48]MH_I2C_Read... [06:18:48]Read from MH i2c: E2 03 00 24 21 00 90 00 B9 [06:18:48]RAPDU: 90 00 [06:18:48]wFMCommunicate OK [06:18:48]wFMCommunicate request_size=4 [06:18:48]MH_SAM_APDU [06:18:48]CAPDU: 80 0D 03 02 [06:18:48]Write to MH i2c: E2 08 00 25 21 80 0D 03 02 00 00 00 00 C1 [06:18:48]Write i2c OK [06:18:48]MH_I2C_Read... [06:18:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:18:48]OFD Sender: No OFD packet to send [06:18:48]Read from MH i2c: E2 [06:18:48]MH_I2C_Read... [06:18:48]Read from MH i2c: E2 0B 00 [06:18:48]MH_I2C_Read... [06:18:48]Read from MH i2c: E2 0B 00 25 21 00 FE 59 82 45 BC 6D 1D A4 90 00 CA [06:18:48]RAPDU: FE 59 82 45 BC 6D 1D A4 90 00 [06:18:48]wFMCommunicate OK [06:18:48]SAM_PROTO_SignData done [06:18:48]FM_MakeSignedData done [06:18:48]CreateOFDProtocolMessage [06:18:48]wFMCommunicate request_size=4 [06:18:48]MH_SAM_APDU [06:18:48]CAPDU: 80 11 00 00 [06:18:48]Write to MH i2c: E2 08 00 26 21 80 11 00 00 00 00 00 00 C1 [06:18:48]Write i2c OK [06:18:48]MH_I2C_Read... [06:18:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:18:48]Read from MH i2c: E2 [06:18:48]MH_I2C_Read... [06:18:48]Read from MH i2c: E2 17 00 [06:18:48]MH_I2C_Read... [06:18:48]Read from MH i2c: E2 17 00 26 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 18 [06:18:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [06:18:48]wFMCommunicate OK [06:18:48]CreateOFDProtocolMessage done [06:18:48]OFDSenderStorePacket 227187 [06:18:48]StoreOFDPacket docnum=227187 [06:18:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 15 58 07 01 4D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 CA A0 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 73 77 03 00 35 04 06 00 EE AE 9F 43 09 8A FE 59 82 45 BC 6D 1D A4 [06:18:48]CheckFolder [06:18:48]dirname=/storage/ofd_packets [06:18:48]CheckFolder done [06:18:48]ProducePacketName [06:18:48]name=ofd_packets/00227187 [06:18:48]NVStorageSaveData ofd_packets/00227187 [06:18:48]File name is /storage/ofd_packets/00227187 [06:18:48]Write 301 bytes [06:18:48]NVStorageSaveData done [06:18:48]OFDSenderStorePacket done [06:18:48]KKMCreateOFDPacket done [06:18:48]NVStorageSaveData kkm_last_timestamp [06:18:48]File name is /storage/kkm_last_timestamp [06:18:48]Write 4 bytes [06:18:48]NVStorageSaveData done [06:18:48]ExternCall_PrintAddStr [06:18:48]wPrintStart [06:18:48]Write to MH i2c: 01 00 00 27 21 48 [06:18:48]Write i2c OK [06:18:48]MH_I2C_Read... [06:18:48]Read from MH i2c: 01 [06:18:48]MH_I2C_Read... [06:18:48]Read from MH i2c: 01 07 00 [06:18:48]MH_I2C_Read... [06:18:48]Read from MH i2c: 01 07 00 27 21 00 00 00 00 00 FF 0F 5D [06:18:48]RasterBufferAndPrint [06:18:48]line Счет N : (1)1962638 [06:18:48]line ИНН: 02508201610067 [06:18:48]line Контрольно-Кассовый Чек [06:18:48]line ПРОДАЖА [06:18:48]line ТРК (МРК, ГНК) : 44 [06:18:48]line Товар: 2710124500 [06:18:48]line Аи-95-К-5 [06:18:48]line 13.480 * 74.20 [06:18:48]line = 1000.22 [06:18:48]line НДС 12% НСП 1% [06:18:48]line > о реализуемом товаре [06:18:48]line ОКРУГЛЕНИЕ: -0.22 [06:18:48]line ИТОГО: 1000.00 [06:18:48]line Внесено: 1000.00 [06:18:48]line СДАЧА: 0.00 [06:18:48]line НСП 1% : 8.85 [06:18:48]line НДС 12% : 106.22 [06:18:48]line Наличными: 1000.00 [06:18:48]line Безнал.: 0.00 [06:18:48]line Место: АЗС № 133 "Партнер Нефть" [06:18:48]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [06:18:48]line СНО: Общий режим [06:18:48]line Чек 35 20.10.2024 06:18 [06:18:48]line Смена: 533 ФФД: 1.0 [06:18:48]line ЗНМ: 0300000091 [06:18:48]line РНМ: 0000000000091685 [06:18:48]line Версия ККМ: 001 [06:18:48]line ФМ: 0000000000871839 [06:18:48]line ФД: 227187 [06:18:48]line ФПД: 262433763690890 [06:18:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T061850&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227187&fm=262433763690890&tin=02508201610067®Number=0000000000091685&sum=100000 [06:18:48]written 0, free lines is 4095 [06:18:48]OFD Sender: Processing packet 227187 [packets to send 38, broken 37] [06:18:48]ProducePacketName [06:18:48]name=ofd_packets/00227187 [06:18:48]OFD Sender: To server: pG, [06:18:48]CommunicateWithHost lk.salyk.kg:30040 [06:18:48]ConnectInit lk.salyk.kg [06:18:48]Connected sock=10 [06:18: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 33 39 0F 01 00 00 15 58 07 01 4D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 CA A0 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 73 77 03 00 35 04 06 00 EE AE 9F 43 09 8A FE 59 82 45 BC 6D 1D A4 [06:18: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 33 39 4F 00 00 00 A4 97 47 00 BB BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 73 77 03 00 F4 03 04 00 C9 4B 14 67 B6 04 01 00 00 C0 B4 E7 B7 45 3D 87 07 [06:18:48]CommunicateWithHost err = 0 [06:18:48]CheckOFDResponse [06:18:48]1017 (14) - 77093643461234 [06:18:48]1041 (16) - 0000000000871839 [06:18:48]1040 (4) - 227187 [06:18:48]1012 (4) - 20.10.2024 00:16 [06:18:48]1206 (1) - 0 [06:18:48]OFD Sender: Remove packet 227187 [06:18:48]ProducePacketName [06:18:48]name=ofd_packets/00227187 [06:18:48]NVStorageDeleteData [06:18:49]Write to MH i2c: 01 00 00 51 21 72 [06:18:49]Write i2c OK [06:18:49]MH_I2C_Read... [06:18:49]Read from MH i2c: 01 [06:18:49]MH_I2C_Read... [06:18:49]Read from MH i2c: 01 07 00 [06:18:49]MH_I2C_Read... [06:18:49]Read from MH i2c: 01 07 00 51 21 00 00 00 00 00 1C 0D A2 [06:18:49]RasterBufferAndPrint [06:18:49]line [06:18:49]line [06:18:49]line [06:18:49]line [06:18:49]line [06:18:49]written 0, free lines is 3365 [06:18:49]process_action close_receipt done [06:18:49]requested_data is exist [06:18:49]produce_requested_data [06:18:49]requested_item fm.sn is exist - process it [06:18:49]wFMCommunicate request_size=4 [06:18:49]MH_SAM_APDU [06:18:49]CAPDU: 80 11 00 00 [06:18:49]Write to MH i2c: E2 08 00 58 21 80 11 00 00 00 00 00 00 F3 [06:18:49]Write i2c OK [06:18:49]MH_I2C_Read... [06:18:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:18:49]Read from MH i2c: E2 [06:18:49]MH_I2C_Read... [06:18:49]Read from MH i2c: E2 17 00 [06:18:49]MH_I2C_Read... [06:18:49]Read from MH i2c: E2 17 00 58 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 4A [06:18:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [06:18:49]wFMCommunicate OK [06:18:49]requested_item fd.num is exist - process it [06:18:49]SAM_PROTO_GetFieldsCounters [06:18:49]wFMCommunicate request_size=4 [06:18:49]MH_SAM_APDU [06:18:49]CAPDU: 80 13 00 00 [06:18:49]Write to MH i2c: E2 08 00 59 21 80 13 00 00 00 00 00 00 F6 [06:18:49]Write i2c OK [06:18:49]MH_I2C_Read... [06:18:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:18:49]Read from MH i2c: E2 [06:18:49]MH_I2C_Read... [06:18:49]Read from MH i2c: E2 62 00 [06:18:49]MH_I2C_Read... [06:18:49]Read from MH i2c: E2 62 00 59 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 73 77 03 00 0E 04 04 00 15 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 8C [06:18: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 73 77 03 00 0E 04 04 00 15 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 [06:18:49]wFMCommunicate OK [06:18:49]SAM_PROTO_GetFieldsCounters done [06:18:49]requested_item shift.num is exist - process it [06:18:49]requested_item shift.opened is exist - process it [06:18:49]req_shift_opened [06:18:49]FM_GetShiftState [06:18:49]SAM_PROTO_GetShiftState [06:18:49]wFMCommunicate request_size=4 [06:18:49]MH_SAM_APDU [06:18:49]CAPDU: 80 13 01 00 [06:18:49]Write to MH i2c: E2 08 00 5A 21 80 13 01 00 00 00 00 00 F8 [06:18:49]Write i2c OK [06:18:49]MH_I2C_Read... [06:18:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:18:49]Read from MH i2c: E2 [06:18:49]MH_I2C_Read... [06:18:49]Read from MH i2c: E2 0E 00 [06:18:49]MH_I2C_Read... [06:18:49]Read from MH i2c: E2 0E 00 5A 21 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 12 [06:18:49]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [06:18:49]wFMCommunicate OK [06:18:49]SAM_PROTO_GetShiftState done [06:18:49]FM_GetShiftState done [06:18:49]req_shift_opened done [06:18:49]requested_item shift.open_date is exist - process it [06:18:49]req_shift_open_date [06:18:49]req_shift_open_date done [06:18:49]produce_requested_data done [06:18:49]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227187,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [06:18:49]process_action_free close_receipt [06:18:49]json_value_free [06:18:49]json_value_free done [06:18:49]process_json_proto returns [06:18:49]Send response to host [06:18:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227187,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [06:18:49]free response buf [06:18:49]execute_script done [06:18:49]execute_script returns [06:18:49]free content buf [06:18:49]Sock 9.Close socket [06:18:49]Sock 9.Thread stoped [06:18:49]OFD Sender: No OFD packet to send [06:18:54]OFD Sender: No OFD packet to send [06:18:59]OFD Sender: No OFD packet to send [06:19:04]OFD Sender: No OFD packet to send [06:19:09]OFD Sender: No OFD packet to send [06:19:14]OFD Sender: No OFD packet to send [06:19:19]OFD Sender: No OFD packet to send [06:19:24]OFD Sender: No OFD packet to send [06:19:29]OFD Sender: No OFD packet to send [06:19:34]OFD Sender: No OFD packet to send [06:19:39]OFD Sender: No OFD packet to send [06:19:44]OFD Sender: No OFD packet to send [06:19:49]OFD Sender: No OFD packet to send [06:19:54]OFD Sender: No OFD packet to send [06:19:59]OFD Sender: No OFD packet to send [06:20:04]OFD Sender: No OFD packet to send [06:20:09]OFD Sender: No OFD packet to send [06:20:14]OFD Sender: No OFD packet to send [06:20:19]OFD Sender: No OFD packet to send [06:20:24]OFD Sender: No OFD packet to send [06:20:29]OFD Sender: No OFD packet to send [06:20:34]OFD Sender: No OFD packet to send [06:20:39]OFD Sender: No OFD packet to send [06:20:44]OFD Sender: No OFD packet to send [06:20:49]OFD Sender: No OFD packet to send [06:20:54]OFD Sender: No OFD packet to send [06:20:59]OFD Sender: No OFD packet to send [06:21:04]OFD Sender: No OFD packet to send [06:21:09]OFD Sender: No OFD packet to send [06:21:14]OFD Sender: No OFD packet to send [06:21:19]OFD Sender: No OFD packet to send [06:21:24]OFD Sender: No OFD packet to send [06:21:29]OFD Sender: No OFD packet to send [06:21:34]OFD Sender: No OFD packet to send [06:21:39]OFD Sender: No OFD packet to send [06:21:44]OFD Sender: No OFD packet to send [06:21:49]OFD Sender: No OFD packet to send [06:21:54]OFD Sender: No OFD packet to send [06:21:59]OFD Sender: No OFD packet to send [06:22:04]OFD Sender: No OFD packet to send [06:22:09]OFD Sender: No OFD packet to send [06:22:14]OFD Sender: No OFD packet to send [06:22:19]OFD Sender: No OFD packet to send [06:22:24]OFD Sender: No OFD packet to send [06:22:29]OFD Sender: No OFD packet to send [06:22:34]OFD Sender: No OFD packet to send [06:22:39]OFD Sender: No OFD packet to send [06:22:44]OFD Sender: No OFD packet to send [06:22:49]OFD Sender: No OFD packet to send [06:22:54]OFD Sender: No OFD packet to send [06:22:59]OFD Sender: No OFD packet to send [06:23:04]OFD Sender: No OFD packet to send [06:23:09]OFD Sender: No OFD packet to send [06:23:14]OFD Sender: No OFD packet to send [06:23:19]OFD Sender: No OFD packet to send [06:23:24]OFD Sender: No OFD packet to send [06:23:29]OFD Sender: No OFD packet to send [06:23:34]OFD Sender: No OFD packet to send [06:23:39]OFD Sender: No OFD packet to send [06:23:44]OFD Sender: No OFD packet to send [06:23:49]OFD Sender: No OFD packet to send [06:23:54]OFD Sender: No OFD packet to send [06:23:59]OFD Sender: No OFD packet to send [06:24:04]OFD Sender: No OFD packet to send [06:24:09]OFD Sender: No OFD packet to send [06:24:14]OFD Sender: No OFD packet to send [06:24:19]OFD Sender: No OFD packet to send [06:24:24]OFD Sender: No OFD packet to send [06:24:29]OFD Sender: No OFD packet to send [06:24:34]OFD Sender: No OFD packet to send [06:24:39]OFD Sender: No OFD packet to send [06:24:44]OFD Sender: No OFD packet to send [06:24:49]OFD Sender: No OFD packet to send [06:24:54]OFD Sender: No OFD packet to send [06:24:59]OFD Sender: No OFD packet to send [06:25:04]OFD Sender: No OFD packet to send [06:25:09]OFD Sender: No OFD packet to send [06:25:14]OFD Sender: No OFD packet to send [06:25:19]OFD Sender: No OFD packet to send [06:25:24]OFD Sender: No OFD packet to send [06:25:29]OFD Sender: No OFD packet to send [06:25:34]OFD Sender: No OFD packet to send [06:25:39]OFD Sender: No OFD packet to send [06:25:44]OFD Sender: No OFD packet to send [06:25:49]OFD Sender: No OFD packet to send [06:25:54]OFD Sender: No OFD packet to send [06:25:59]OFD Sender: No OFD packet to send [06:26:04]OFD Sender: No OFD packet to send [06:26:09]OFD Sender: No OFD packet to send [06:26:14]OFD Sender: No OFD packet to send [06:26:19]OFD Sender: No OFD packet to send [06:26:22]accept exits with 8 [06:26:22]New connection [06:26:22]New thread 3066821988 created [06:26:22]Thread 3066965348 joined [06:26:22]Waiting for new connection... [06:26:22] Sock 8.Parse request [06:26:22]Sock 8.Check first char [06:26:22]Sock 8.First char is OK [06:26:22]request: POST /json_proto HTTP/1.0 [06:26:22]Method: POST [06:26:22]URL: /json_proto [06:26:22]Method is POST - this is cgi request [06:26:22]url: /json_proto [06:26:22]query_string will be loaded in cgi processing [06:26:22]execute_cgi json_proto POST (null) [06:26:22]execute_cgi path=json_proto method=POST [06:26:22]POST find Content-Length [06:26:22]Host: 172.17.44.195:8080 [06:26:22]Content-Length: 683 [06:26:22]Content-Type: application/json [06:26:22] [06:26:22]POST finish read [06:26:22]Found Content-Length = 683 [06:26:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962639", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 22.910, "sum" : 1699.92, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1699.00, "payments": [ { "type": 0, "sum" : 1699.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:26:22]execute_script... [06:26: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)1962639", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 22.910, "sum" : 1699.92, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1699.00, "payments": [ { "type": 0, "sum" : 1699.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:26:22]POST & json_proto [06:26:22]process_json_proto [06:26:22]json parsed OK: [06:26:22]protocol is kg_v1.0 [06:26:22]action value=close_receipt [06:26:22]process_action close_receipt [06:26:22]cmd_close_receipt [06:26:22]MH_GetDate [06:26:22]Write to MH i2c: F0 00 00 5B 21 6B [06:26:22]Write i2c OK [06:26:22]MH_I2C_Read... [06:26:22]Read from MH i2c: F0 [06:26:22]MH_I2C_Read... [06:26:22]Read from MH i2c: F0 09 00 [06:26:22]MH_I2C_Read... [06:26:22]Read from MH i2c: F0 09 00 5B 21 00 91 A2 14 67 82 C9 CF 66 A2 [06:26:22]GetLastDocTimeStamp 1729405130 [06:26:22]current date 1729405585 [06:26:22]FM_GetShiftState [06:26:22]SAM_PROTO_GetShiftState [06:26:22]wFMCommunicate request_size=4 [06:26:22]MH_SAM_APDU [06:26:22]CAPDU: 80 13 01 00 [06:26:22]Write to MH i2c: E2 08 00 5C 21 80 13 01 00 00 00 00 00 FA [06:26:22]Write i2c OK [06:26:22]MH_I2C_Read... [06:26:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:26:22]Read from MH i2c: E2 [06:26:22]MH_I2C_Read... [06:26:22]Read from MH i2c: E2 0E 00 [06:26:22]MH_I2C_Read... [06:26:22]Read from MH i2c: E2 0E 00 5C 21 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 14 [06:26:22]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [06:26:22]wFMCommunicate OK [06:26:22]SAM_PROTO_GetShiftState done [06:26:22]FM_GetShiftState done [06:26:22]opened in 1729383750 [06:26:22]opened+sec_in_day 1729470150 [06:26:22]quantity*price = 169992 [06:26:22]sum+1 = 169993 [06:26:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.92 ИТОГО: 1699.00 Внесено: 2000.00 СДАЧА: 301.00 НСП 1% : 15.04 НДС 12% : 180.52 Наличными: 1699.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 36 20.10.2024 06:26 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227188 ФПД: 102037442641419 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T062625&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227188&fm=102037442641419&tin=02508201610067®Number=0000000000091685&sum=169900 [06:26:23]StoreToDocumentArchive [06:26:23]shift 533 fd 227188 [06:26:23]save to /storage/0533/doc_00227188 [06:26:23]save last doc name /storage/0533/doc_00227188 to /storage/kkm_last_doc_name [06:26:23]save OK [06:26:23]Clear old archive folders... [06:26:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:26:23]tlvbuf is B6F58820 [06:26:23]SAM_PROTO_ClearQueue [06:26:23]wFMCommunicate request_size=4 [06:26:23]MH_SAM_APDU [06:26:23]CAPDU: 80 09 00 00 [06:26:23]Write to MH i2c: E2 08 00 69 21 80 09 00 00 00 00 00 00 FC [06:26:23]Write i2c OK [06:26:23]MH_I2C_Read... [06:26:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:26:23]Read from MH i2c: E2 [06:26:23]MH_I2C_Read... [06:26:23]Read from MH i2c: E2 03 00 [06:26:23]MH_I2C_Read... [06:26:23]Read from MH i2c: E2 03 00 69 21 00 90 00 FE [06:26:23]RAPDU: 90 00 [06:26:23]wFMCommunicate OK [06:26:23]SAM_PROTO_ClearQueue done [06:26:23]KKMCreateOFDPacket [06:26:23]OFDProtocolAddRootSTLVToBuf [06:26:23]FM_MakeSignedData [06:26:23]FM_MakeSignedData [06:26:23]SAM_PROTO_SignData [06:26:23]wFMCommunicate request_size=4 [06:26:23]MH_SAM_APDU [06:26:23]CAPDU: 80 0D 01 02 [06:26:23]Write to MH i2c: E2 08 00 6A 21 80 0D 01 02 00 00 00 00 04 [06:26:23]Write i2c OK [06:26:23]MH_I2C_Read... [06:26:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:26:23]Read from MH i2c: E2 [06:26:23]MH_I2C_Read... [06:26:23]Read from MH i2c: E2 03 00 [06:26:23]MH_I2C_Read... [06:26:23]Read from MH i2c: E2 03 00 6A 21 00 90 00 FF [06:26:23]RAPDU: 90 00 [06:26:23]wFMCommunicate OK [06:26:23]wFMCommunicate request_size=255 [06:26:23]MH_SAM_APDU [06:26: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 7E 59 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 08 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 97 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 46 00 00 00 00 07 04 06 00 AC 97 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 91 A2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 74 77 03 00 35 04 06 00 5C [06:26:23]Write to MH i2c: E2 02 01 6B 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7E 59 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 08 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 97 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 46 00 00 00 00 07 04 06 00 AC 97 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 91 A2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 74 77 03 00 35 04 06 00 5C 00 00 17 [06:26:23]Write i2c OK [06:26:23]MH_I2C_Read... [06:26:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:26:23]Read from MH i2c: E2 [06:26:23]MH_I2C_Read... [06:26:23]Read from MH i2c: E2 03 00 [06:26:23]MH_I2C_Read... [06:26:23]Read from MH i2c: E2 03 00 6B 21 00 90 00 00 [06:26:23]RAPDU: 90 00 [06:26:23]wFMCommunicate OK [06:26:23]wFMCommunicate request_size=10 [06:26:23]MH_SAM_APDU [06:26:23]CAPDU: 80 0D 02 02 05 CD 71 85 BE 0B [06:26:23]Write to MH i2c: E2 0D 00 6C 21 80 0D 02 02 05 00 CD 71 85 BE 0B 00 00 9D [06:26:23]Write i2c OK [06:26:23]MH_I2C_Read... [06:26:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:26:23]Read from MH i2c: E2 [06:26:23]MH_I2C_Read... [06:26:23]Read from MH i2c: E2 03 00 [06:26:23]MH_I2C_Read... [06:26:23]Read from MH i2c: E2 03 00 6C 21 00 90 00 01 [06:26:23]RAPDU: 90 00 [06:26:23]wFMCommunicate OK [06:26:23]wFMCommunicate request_size=4 [06:26:23]MH_SAM_APDU [06:26:23]CAPDU: 80 0D 03 02 [06:26:23]Write to MH i2c: E2 08 00 6D 21 80 0D 03 02 00 00 00 00 09 [06:26:23]Write i2c OK [06:26:23]MH_I2C_Read... [06:26:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:26:23]Read from MH i2c: E2 [06:26:23]MH_I2C_Read... [06:26:23]Read from MH i2c: E2 0B 00 [06:26:23]MH_I2C_Read... [06:26:23]Read from MH i2c: E2 0B 00 6D 21 00 4E 4E 81 24 BC BE 86 8C 90 00 D7 [06:26:23]RAPDU: 4E 4E 81 24 BC BE 86 8C 90 00 [06:26:23]wFMCommunicate OK [06:26:23]SAM_PROTO_SignData done [06:26:23]FM_MakeSignedData done [06:26:23]CreateOFDProtocolMessage [06:26:23]wFMCommunicate request_size=4 [06:26:23]MH_SAM_APDU [06:26:23]CAPDU: 80 11 00 00 [06:26:23]Write to MH i2c: E2 08 00 6E 21 80 11 00 00 00 00 00 00 09 [06:26:23]Write i2c OK [06:26:23]MH_I2C_Read... [06:26:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:26:23]Read from MH i2c: E2 [06:26:23]MH_I2C_Read... [06:26:23]Read from MH i2c: E2 17 00 [06:26:23]MH_I2C_Read... [06:26:23]Read from MH i2c: E2 17 00 6E 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 60 [06:26:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [06:26:23]wFMCommunicate OK [06:26:23]CreateOFDProtocolMessage done [06:26:23]OFDSenderStorePacket 227188 [06:26:23]StoreOFDPacket docnum=227188 [06:26:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 01 58 07 01 C6 F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7E 59 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 08 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 97 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 46 00 00 00 00 07 04 06 00 AC 97 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 91 A2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 74 77 03 00 35 04 06 00 5C CD 71 85 BE 0B 4E 4E 81 24 BC BE 86 8C [06:26:23]CheckFolder [06:26:23]dirname=/storage/ofd_packets [06:26:23]CheckFolder done [06:26:23]ProducePacketName [06:26:23]name=ofd_packets/00227188 [06:26:23]NVStorageSaveData ofd_packets/00227188 [06:26:23]File name is /storage/ofd_packets/00227188 [06:26:23]Write 301 bytes [06:26:23]NVStorageSaveData done [06:26:23]OFDSenderStorePacket done [06:26:23]KKMCreateOFDPacket done [06:26:23]NVStorageSaveData kkm_last_timestamp [06:26:23]File name is /storage/kkm_last_timestamp [06:26:23]Write 4 bytes [06:26:23]NVStorageSaveData done [06:26:23]ExternCall_PrintAddStr [06:26:23]wPrintStart [06:26:23]Write to MH i2c: 01 00 00 6F 21 90 [06:26:23]Write i2c OK [06:26:23]MH_I2C_Read... [06:26:23]Read from MH i2c: 01 [06:26:23]MH_I2C_Read... [06:26:23]Read from MH i2c: 01 07 00 [06:26:23]MH_I2C_Read... [06:26:23]Read from MH i2c: 01 07 00 6F 21 00 00 00 00 00 FF 0F A5 [06:26:23]RasterBufferAndPrint [06:26:23]line Счет N : (1)1962639 [06:26:23]line ИНН: 02508201610067 [06:26:23]line Контрольно-Кассовый Чек [06:26:23]line ПРОДАЖА [06:26:23]line ТРК (МРК, ГНК) : 44 [06:26:23]line Товар: 2710124500 [06:26:23]line Аи-95-К-5 [06:26:23]line 22.910 * 74.20 [06:26:23]line = 1699.92 [06:26:23]line НДС 12% НСП 1% [06:26:23]line > о реализуемом товаре [06:26:23]line ОКРУГЛЕНИЕ: -0.92 [06:26:23]line ИТОГО: 1699.00 [06:26:23]line Внесено: 2000.00 [06:26:23]line СДАЧА: 301.00 [06:26:23]line НСП 1% : 15.04 [06:26:23]line НДС 12% : 180.52 [06:26:23]line Наличными: 1699.00 [06:26:23]line Безнал.: 0.00 [06:26:23]line Место: АЗС № 133 "Партнер Нефть" [06:26:23]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [06:26:23]line СНО: Общий режим [06:26:23]line Чек 36 20.10.2024 06:26 [06:26:23]line Смена: 533 ФФД: 1.0 [06:26:23]line ЗНМ: 0300000091 [06:26:23]line РНМ: 0000000000091685 [06:26:23]line Версия ККМ: 001 [06:26:23]line ФМ: 0000000000871839 [06:26:23]line ФД: 227188 [06:26:23]line ФПД: 102037442641419 [06:26:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T062625&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227188&fm=102037442641419&tin=02508201610067®Number=0000000000091685&sum=169900 [06:26:24]written 0, free lines is 4095 [06:26:24]OFD Sender: Processing packet 227188 [packets to send 38, broken 37] [06:26:24]ProducePacketName [06:26:24]name=ofd_packets/00227188 [06:26:24]OFD Sender: To server: pG, [06:26:24]CommunicateWithHost lk.salyk.kg:30040 [06:26:24]ConnectInit lk.salyk.kg [06:26:24]Connected sock=10 [06:26: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 33 39 0F 01 00 00 01 58 07 01 C6 F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7E 59 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 08 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 97 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 46 00 00 00 00 07 04 06 00 AC 97 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 91 A2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 74 77 03 00 35 04 06 00 5C CD 71 85 BE 0B 4E 4E 81 24 BC BE 86 8C [06:26: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 33 39 4F 00 00 00 0E CD 47 00 C0 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 33 39 10 04 04 00 74 77 03 00 F4 03 04 00 91 4D 14 67 B6 04 01 00 00 D0 A2 65 BA B1 B0 3A 2B [06:26:24]CommunicateWithHost err = 0 [06:26:24]CheckOFDResponse [06:26:24]1017 (14) - 77093643461234 [06:26:24]1041 (16) - 0000000000871839 [06:26:24]1040 (4) - 227188 [06:26:24]1012 (4) - 20.10.2024 00:23 [06:26:24]1206 (1) - 0 [06:26:24]OFD Sender: Remove packet 227188 [06:26:24]ProducePacketName [06:26:24]name=ofd_packets/00227188 [06:26:24]NVStorageDeleteData [06:26:24]Write to MH i2c: 01 00 00 99 21 BA [06:26:24]Write i2c OK [06:26:24]MH_I2C_Read... [06:26:24]Read from MH i2c: 01 [06:26:24]MH_I2C_Read... [06:26:24]Read from MH i2c: 01 07 00 [06:26:24]MH_I2C_Read... [06:26:24]Read from MH i2c: 01 07 00 99 21 00 00 00 00 00 16 0D E4 [06:26:24]RasterBufferAndPrint [06:26:24]line [06:26:24]line [06:26:24]line [06:26:24]line [06:26:24]line [06:26:24]written 0, free lines is 3357 [06:26:24]process_action close_receipt done [06:26:24]requested_data is exist [06:26:24]produce_requested_data [06:26:24]requested_item fm.sn is exist - process it [06:26:24]wFMCommunicate request_size=4 [06:26:24]MH_SAM_APDU [06:26:24]CAPDU: 80 11 00 00 [06:26:24]Write to MH i2c: E2 08 00 A0 21 80 11 00 00 00 00 00 00 3B [06:26:24]Write i2c OK [06:26:24]MH_I2C_Read... [06:26:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:26:24]Read from MH i2c: E2 [06:26:24]MH_I2C_Read... [06:26:24]Read from MH i2c: E2 17 00 [06:26:24]MH_I2C_Read... [06:26:24]Read from MH i2c: E2 17 00 A0 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 92 [06:26:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [06:26:24]wFMCommunicate OK [06:26:24]requested_item fd.num is exist - process it [06:26:24]SAM_PROTO_GetFieldsCounters [06:26:24]wFMCommunicate request_size=4 [06:26:24]MH_SAM_APDU [06:26:24]CAPDU: 80 13 00 00 [06:26:24]Write to MH i2c: E2 08 00 A1 21 80 13 00 00 00 00 00 00 3E [06:26:24]Write i2c OK [06:26:24]MH_I2C_Read... [06:26:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:26:24]Read from MH i2c: E2 [06:26:24]MH_I2C_Read... [06:26:24]Read from MH i2c: E2 62 00 [06:26:24]MH_I2C_Read... [06:26:24]Read from MH i2c: E2 62 00 A1 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 74 77 03 00 0E 04 04 00 15 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 D8 [06:26:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 74 77 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:26:24]wFMCommunicate OK [06:26:24]SAM_PROTO_GetFieldsCounters done [06:26:24]requested_item shift.num is exist - process it [06:26:24]requested_item shift.opened is exist - process it [06:26:24]req_shift_opened [06:26:24]FM_GetShiftState [06:26:24]SAM_PROTO_GetShiftState [06:26:24]wFMCommunicate request_size=4 [06:26:24]MH_SAM_APDU [06:26:24]CAPDU: 80 13 01 00 [06:26:24]Write to MH i2c: E2 08 00 A2 21 80 13 01 00 00 00 00 00 40 [06:26:24]Write i2c OK [06:26:24]MH_I2C_Read... [06:26:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:26:25]Read from MH i2c: E2 [06:26:25]MH_I2C_Read... [06:26:25]Read from MH i2c: E2 0E 00 [06:26:25]MH_I2C_Read... [06:26:25]Read from MH i2c: E2 0E 00 A2 21 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 5A [06:26:25]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [06:26:25]wFMCommunicate OK [06:26:25]SAM_PROTO_GetShiftState done [06:26:25]FM_GetShiftState done [06:26:25]req_shift_opened done [06:26:25]requested_item shift.open_date is exist - process it [06:26:25]req_shift_open_date [06:26:25]req_shift_open_date done [06:26:25]produce_requested_data done [06:26:25]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227188,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [06:26:25]process_action_free close_receipt [06:26:25]json_value_free [06:26:25]json_value_free done [06:26:25]process_json_proto returns [06:26:25]Send response to host [06:26:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227188,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [06:26:25]free response buf [06:26:25]execute_script done [06:26:25]execute_script returns [06:26:25]free content buf [06:26:25]Sock 8.Close socket [06:26:25]Sock 8.Thread stoped [06:26:25]OFD Sender: No OFD packet to send [06:26:30]OFD Sender: No OFD packet to send [06:26:35]OFD Sender: No OFD packet to send [06:26:40]OFD Sender: No OFD packet to send [06:26:45]OFD Sender: No OFD packet to send [06:26:50]OFD Sender: No OFD packet to send [06:26:55]OFD Sender: No OFD packet to send [06:27:00]OFD Sender: No OFD packet to send [06:27:05]OFD Sender: No OFD packet to send [06:27:10]OFD Sender: No OFD packet to send [06:27:15]OFD Sender: No OFD packet to send [06:27:20]OFD Sender: No OFD packet to send [06:27:25]OFD Sender: No OFD packet to send [06:27:30]OFD Sender: No OFD packet to send [06:27:35]OFD Sender: No OFD packet to send [06:27:40]OFD Sender: No OFD packet to send [06:27:45]OFD Sender: No OFD packet to send [06:27:50]OFD Sender: No OFD packet to send [06:27:55]OFD Sender: No OFD packet to send [06:28:00]OFD Sender: No OFD packet to send [06:28:05]OFD Sender: No OFD packet to send [06:28:10]OFD Sender: No OFD packet to send [06:28:15]OFD Sender: No OFD packet to send [06:28:20]OFD Sender: No OFD packet to send [06:28:25]OFD Sender: No OFD packet to send [06:28:30]OFD Sender: No OFD packet to send [06:28:35]OFD Sender: No OFD packet to send [06:28:40]OFD Sender: No OFD packet to send [06:28:45]OFD Sender: No OFD packet to send [06:28:50]OFD Sender: No OFD packet to send [06:28:55]OFD Sender: No OFD packet to send [06:29:00]OFD Sender: No OFD packet to send [06:29:05]OFD Sender: No OFD packet to send [06:29:10]OFD Sender: No OFD packet to send [06:29:15]OFD Sender: No OFD packet to send [06:29:20]OFD Sender: No OFD packet to send [06:29:25]OFD Sender: No OFD packet to send [06:29:30]OFD Sender: No OFD packet to send [06:29:35]OFD Sender: No OFD packet to send [06:29:40]OFD Sender: No OFD packet to send [06:29:45]OFD Sender: No OFD packet to send [06:29:50]OFD Sender: No OFD packet to send [06:29:55]OFD Sender: No OFD packet to send [06:30:00]OFD Sender: No OFD packet to send [06:30:05]OFD Sender: No OFD packet to send [06:30:07]accept exits with 9 [06:30:07]New connection [06:30:07]New thread 3066965348 created [06:30:07]Thread 3066821988 joined [06:30:07]Waiting for new connection... [06:30:07] Sock 9.Parse request [06:30:07]Sock 9.Check first char [06:30:07]Sock 9.First char is OK [06:30:07]request: POST /json_proto HTTP/1.0 [06:30:07]Method: POST [06:30:07]URL: /json_proto [06:30:07]Method is POST - this is cgi request [06:30:07]url: /json_proto [06:30:07]query_string will be loaded in cgi processing [06:30:07]execute_cgi json_proto POST (null) [06:30:07]execute_cgi path=json_proto method=POST [06:30:07]POST find Content-Length [06:30:07]Host: 172.17.44.195:8080 [06:30:07]Content-Length: 659 [06:30:07]Content-Type: application/json [06:30:07] [06:30:07]POST finish read [06:30:07]Found Content-Length = 659 [06:30:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962640", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 8.780, "sum" : 600.55, "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:30:07]execute_script... [06:30:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962640", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 8.780, "sum" : 600.55, "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:30:07]POST & json_proto [06:30:07]process_json_proto [06:30:07]json parsed OK: [06:30:07]protocol is kg_v1.0 [06:30:07]action value=close_receipt [06:30:07]process_action close_receipt [06:30:07]cmd_close_receipt [06:30:07]MH_GetDate [06:30:07]Write to MH i2c: F0 00 00 A3 21 B3 [06:30:07]Write i2c OK [06:30:07]MH_I2C_Read... [06:30:07]Read from MH i2c: F0 [06:30:07]MH_I2C_Read... [06:30:07]Read from MH i2c: F0 09 00 [06:30:07]MH_I2C_Read... [06:30:07]Read from MH i2c: F0 09 00 A3 21 00 72 A3 14 67 82 C9 CF 66 CC [06:30:07]GetLastDocTimeStamp 1729405585 [06:30:07]current date 1729405810 [06:30:07]FM_GetShiftState [06:30:07]SAM_PROTO_GetShiftState [06:30:07]wFMCommunicate request_size=4 [06:30:07]MH_SAM_APDU [06:30:07]CAPDU: 80 13 01 00 [06:30:07]Write to MH i2c: E2 08 00 A4 21 80 13 01 00 00 00 00 00 42 [06:30:07]Write i2c OK [06:30:07]MH_I2C_Read... [06:30:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:30:07]Read from MH i2c: E2 [06:30:07]MH_I2C_Read... [06:30:07]Read from MH i2c: E2 0E 00 [06:30:07]MH_I2C_Read... [06:30:07]Read from MH i2c: E2 0E 00 A4 21 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 5C [06:30:07]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [06:30:07]wFMCommunicate OK [06:30:07]SAM_PROTO_GetShiftState done [06:30:07]FM_GetShiftState done [06:30:07]opened in 1729383750 [06:30:07]opened+sec_in_day 1729470150 [06:30:07]quantity*price = 60055 [06:30:07]sum+1 = 60056 [06:30:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 37 20.10.2024 06:30 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227189 ФПД: 15149043588025 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T063010&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227189&fm=15149043588025&tin=02508201610067®Number=0000000000091685&sum=60000 [06:30:08]StoreToDocumentArchive [06:30:08]shift 533 fd 227189 [06:30:08]save to /storage/0533/doc_00227189 [06:30:08]save last doc name /storage/0533/doc_00227189 to /storage/kkm_last_doc_name [06:30:08]save OK [06:30:08]Clear old archive folders... [06:30:08]ProcessDocumentItem done err = 0, tmpTLVsize=244 [06:30:08]tlvbuf is 005350D0 [06:30:08]SAM_PROTO_ClearQueue [06:30:08]wFMCommunicate request_size=4 [06:30:08]MH_SAM_APDU [06:30:08]CAPDU: 80 09 00 00 [06:30:08]Write to MH i2c: E2 08 00 B1 21 80 09 00 00 00 00 00 00 44 [06:30:08]Write i2c OK [06:30:08]MH_I2C_Read... [06:30:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:30:08]Read from MH i2c: E2 [06:30:08]MH_I2C_Read... [06:30:08]Read from MH i2c: E2 03 00 [06:30:08]MH_I2C_Read... [06:30:08]Read from MH i2c: E2 03 00 B1 21 00 90 00 46 [06:30:08]RAPDU: 90 00 [06:30:08]wFMCommunicate OK [06:30:08]SAM_PROTO_ClearQueue done [06:30:08]KKMCreateOFDPacket [06:30:08]OFDProtocolAddRootSTLVToBuf [06:30:08]FM_MakeSignedData [06:30:08]FM_MakeSignedData [06:30:08]SAM_PROTO_SignData [06:30:08]wFMCommunicate request_size=4 [06:30:08]MH_SAM_APDU [06:30:08]CAPDU: 80 0D 01 02 [06:30:08]Write to MH i2c: E2 08 00 B2 21 80 0D 01 02 00 00 00 00 4C [06:30:08]Write i2c OK [06:30:08]MH_I2C_Read... [06:30:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:30:08]Read from MH i2c: E2 [06:30:08]MH_I2C_Read... [06:30:08]Read from MH i2c: E2 03 00 [06:30:08]MH_I2C_Read... [06:30:08]Read from MH i2c: E2 03 00 B2 21 00 90 00 47 [06:30:08]RAPDU: 90 00 [06:30:08]wFMCommunicate OK [06:30:08]wFMCommunicate request_size=253 [06:30:08]MH_SAM_APDU [06:30:08]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 72 A3 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 75 77 03 00 35 04 06 00 0D C7 29 5C 9B B9 [06:30:08]Write to MH i2c: E2 00 01 B3 21 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 72 A3 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 75 77 03 00 35 04 06 00 0D C7 29 5C 9B B9 00 00 DF [06:30:08]Write i2c OK [06:30:08]MH_I2C_Read... [06:30:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:30:08]Read from MH i2c: E2 [06:30:08]MH_I2C_Read... [06:30:08]Read from MH i2c: E2 03 00 [06:30:08]MH_I2C_Read... [06:30:08]Read from MH i2c: E2 03 00 B3 21 00 90 00 48 [06:30:08]RAPDU: 90 00 [06:30:08]wFMCommunicate OK [06:30:08]wFMCommunicate request_size=4 [06:30:08]MH_SAM_APDU [06:30:08]CAPDU: 80 0D 03 02 [06:30:08]Write to MH i2c: E2 08 00 B4 21 80 0D 03 02 00 00 00 00 50 [06:30:08]Write i2c OK [06:30:08]MH_I2C_Read... [06:30:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:30:08]Read from MH i2c: E2 [06:30:08]MH_I2C_Read... [06:30:08]Read from MH i2c: E2 0B 00 [06:30:08]MH_I2C_Read... [06:30:08]Read from MH i2c: E2 0B 00 B4 21 00 1C E0 6C AE 5D C4 A0 05 90 00 2D [06:30:08]RAPDU: 1C E0 6C AE 5D C4 A0 05 90 00 [06:30:08]wFMCommunicate OK [06:30:08]SAM_PROTO_SignData done [06:30:08]FM_MakeSignedData done [06:30:08]CreateOFDProtocolMessage [06:30:08]wFMCommunicate request_size=4 [06:30:08]MH_SAM_APDU [06:30:08]CAPDU: 80 11 00 00 [06:30:08]Write to MH i2c: E2 08 00 B5 21 80 11 00 00 00 00 00 00 50 [06:30:08]Write i2c OK [06:30:08]MH_I2C_Read... [06:30:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:30:08]Read from MH i2c: E2 [06:30:08]MH_I2C_Read... [06:30:08]Read from MH i2c: E2 17 00 [06:30:08]MH_I2C_Read... [06:30:08]Read from MH i2c: E2 17 00 B5 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A7 [06:30:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [06:30:08]wFMCommunicate OK [06:30:08]CreateOFDProtocolMessage done [06:30:08]OFDSenderStorePacket 227189 [06:30:08]StoreOFDPacket docnum=227189 [06:30:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 2E 8C 00 01 A3 13 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 72 A3 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 75 77 03 00 35 04 06 00 0D C7 29 5C 9B B9 1C E0 6C AE 5D C4 A0 05 [06:30:08]CheckFolder [06:30:08]dirname=/storage/ofd_packets [06:30:08]CheckFolder done [06:30:08]ProducePacketName [06:30:08]name=ofd_packets/00227189 [06:30:08]NVStorageSaveData ofd_packets/00227189 [06:30:08]File name is /storage/ofd_packets/00227189 [06:30:08]Write 294 bytes [06:30:08]NVStorageSaveData done [06:30:08]OFDSenderStorePacket done [06:30:08]KKMCreateOFDPacket done [06:30:08]NVStorageSaveData kkm_last_timestamp [06:30:08]File name is /storage/kkm_last_timestamp [06:30:08]Write 4 bytes [06:30:08]NVStorageSaveData done [06:30:08]ExternCall_PrintAddStr [06:30:08]wPrintStart [06:30:08]Write to MH i2c: 01 00 00 B6 21 D7 [06:30:08]Write i2c OK [06:30:08]MH_I2C_Read... [06:30:08]Read from MH i2c: 01 [06:30:08]MH_I2C_Read... [06:30:08]Read from MH i2c: 01 07 00 [06:30:08]MH_I2C_Read... [06:30:08]Read from MH i2c: 01 07 00 B6 21 00 00 00 00 00 FF 0F EC [06:30:08]RasterBufferAndPrint [06:30:08]line Счет N : (1)1962640 [06:30:08]line ИНН: 02508201610067 [06:30:08]line Контрольно-Кассовый Чек [06:30:08]line ПРОДАЖА [06:30:08]line ТРК (МРК, ГНК) : 62 [06:30:08]line Товар: 2710124130 [06:30:08]line SU-92 [06:30:08]line 8.780 * 68.40 [06:30:08]line = 600.55 [06:30:08]line НДС 12% НСП 1% [06:30:08]line > о реализуемом товаре [06:30:08]line ОКРУГЛЕНИЕ: -0.55 [06:30:08]line ИТОГО: 600.00 [06:30:08]line Внесено: 600.00 [06:30:08]line СДАЧА: 0.00 [06:30:08]line НСП 1% : 5.31 [06:30:08]line НДС 12% : 63.77 [06:30:08]line Наличными: 600.00 [06:30:08]line Безнал.: 0.00 [06:30:08]line Место: АЗС № 133 "Партнер Нефть" [06:30:08]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [06:30:08]line СНО: Общий режим [06:30:08]line Чек 37 20.10.2024 06:30 [06:30:08]line Смена: 533 ФФД: 1.0 [06:30:08]line ЗНМ: 0300000091 [06:30:08]line РНМ: 0000000000091685 [06:30:08]line Версия ККМ: 001 [06:30:08]line ФМ: 0000000000871839 [06:30:08]line ФД: 227189 [06:30:08]line ФПД: 15149043588025 [06:30:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T063010&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227189&fm=15149043588025&tin=02508201610067®Number=0000000000091685&sum=60000 [06:30:09]OFD Sender: Processing packet 227189 [packets to send 38, broken 37] [06:30:09]ProducePacketName [06:30:09]name=ofd_packets/00227189 [06:30:09]OFD Sender: To server: pG, [06:30:09]CommunicateWithHost lk.salyk.kg:30040 [06:30:09]ConnectInit lk.salyk.kg [06:30:09]written 0, free lines is 4095 [06:30:09]Connected sock=8 [06:30:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 2E 8C 00 01 A3 13 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 72 A3 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 75 77 03 00 35 04 06 00 0D C7 29 5C 9B B9 1C E0 6C AE 5D C4 A0 05 [06:30:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 18 A5 47 00 D0 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 33 39 10 04 04 00 75 77 03 00 F4 03 04 00 72 4E 14 67 B6 04 01 00 00 D1 57 C4 81 67 4C 65 36 [06:30:09]CommunicateWithHost err = 0 [06:30:09]CheckOFDResponse [06:30:09]1017 (14) - 77093643461234 [06:30:09]1041 (16) - 0000000000871839 [06:30:09]1040 (4) - 227189 [06:30:09]1012 (4) - 20.10.2024 00:27 [06:30:09]1206 (1) - 0 [06:30:09]OFD Sender: Remove packet 227189 [06:30:09]ProducePacketName [06:30:09]name=ofd_packets/00227189 [06:30:09]NVStorageDeleteData [06:30:09]Write to MH i2c: 01 00 00 E0 21 01 [06:30:09]Write i2c OK [06:30:09]MH_I2C_Read... [06:30:09]Read from MH i2c: 01 [06:30:09]MH_I2C_Read... [06:30:09]Read from MH i2c: 01 07 00 [06:30:09]MH_I2C_Read... [06:30:09]Read from MH i2c: 01 07 00 E0 21 00 00 00 00 00 1D 0D 32 [06:30:09]RasterBufferAndPrint [06:30:09]line [06:30:09]line [06:30:09]line [06:30:09]line [06:30:09]line [06:30:09]written 0, free lines is 3366 [06:30:09]process_action close_receipt done [06:30:09]requested_data is exist [06:30:09]produce_requested_data [06:30:09]requested_item fm.sn is exist - process it [06:30:09]wFMCommunicate request_size=4 [06:30:09]MH_SAM_APDU [06:30:09]CAPDU: 80 11 00 00 [06:30:09]Write to MH i2c: E2 08 00 E7 21 80 11 00 00 00 00 00 00 82 [06:30:09]Write i2c OK [06:30:09]MH_I2C_Read... [06:30:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:30:09]Read from MH i2c: E2 [06:30:09]MH_I2C_Read... [06:30:09]Read from MH i2c: E2 17 00 [06:30:09]MH_I2C_Read... [06:30:09]Read from MH i2c: E2 17 00 E7 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D9 [06:30:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [06:30:09]wFMCommunicate OK [06:30:09]requested_item fd.num is exist - process it [06:30:09]SAM_PROTO_GetFieldsCounters [06:30:09]wFMCommunicate request_size=4 [06:30:09]MH_SAM_APDU [06:30:09]CAPDU: 80 13 00 00 [06:30:09]Write to MH i2c: E2 08 00 E8 21 80 13 00 00 00 00 00 00 85 [06:30:09]Write i2c OK [06:30:09]MH_I2C_Read... [06:30:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:30:09]Read from MH i2c: E2 [06:30:09]MH_I2C_Read... [06:30:09]Read from MH i2c: E2 62 00 [06:30:09]MH_I2C_Read... [06:30:09]Read from MH i2c: E2 62 00 E8 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 75 77 03 00 0E 04 04 00 15 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 23 [06:30: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 75 77 03 00 0E 04 04 00 15 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 [06:30:09]wFMCommunicate OK [06:30:09]SAM_PROTO_GetFieldsCounters done [06:30:09]requested_item shift.num is exist - process it [06:30:09]requested_item shift.opened is exist - process it [06:30:09]req_shift_opened [06:30:09]FM_GetShiftState [06:30:09]SAM_PROTO_GetShiftState [06:30:09]wFMCommunicate request_size=4 [06:30:09]MH_SAM_APDU [06:30:09]CAPDU: 80 13 01 00 [06:30:09]Write to MH i2c: E2 08 00 E9 21 80 13 01 00 00 00 00 00 87 [06:30:09]Write i2c OK [06:30:09]MH_I2C_Read... [06:30:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:30:09]Read from MH i2c: E2 [06:30:09]MH_I2C_Read... [06:30:09]Read from MH i2c: E2 0E 00 [06:30:09]MH_I2C_Read... [06:30:09]Read from MH i2c: E2 0E 00 E9 21 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 A1 [06:30:09]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [06:30:09]wFMCommunicate OK [06:30:09]SAM_PROTO_GetShiftState done [06:30:09]FM_GetShiftState done [06:30:09]req_shift_opened done [06:30:09]requested_item shift.open_date is exist - process it [06:30:09]req_shift_open_date [06:30:09]req_shift_open_date done [06:30:09]produce_requested_data done [06:30:09]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227189,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [06:30:09]process_action_free close_receipt [06:30:09]json_value_free [06:30:09]json_value_free done [06:30:09]process_json_proto returns [06:30:09]Send response to host [06:30:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227189,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [06:30:09]free response buf [06:30:09]execute_script done [06:30:09]execute_script returns [06:30:09]free content buf [06:30:09]Sock 9.Close socket [06:30:09]Sock 9.Thread stoped [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:15]OFD Sender: No OFD packet to send [06:31:20]OFD Sender: No OFD packet to send [06:31:25]OFD Sender: No OFD packet to send [06:31:30]OFD Sender: No OFD packet to send [06:31:35]OFD Sender: No OFD packet to send [06:31:40]OFD Sender: No OFD packet to send [06:31:45]OFD Sender: No OFD packet to send [06:31:50]OFD Sender: No OFD packet to send [06:31:55]OFD Sender: No OFD packet to send [06:32:00]OFD Sender: No OFD packet to send [06:32:05]OFD Sender: No OFD packet to send [06:32:10]OFD Sender: No OFD packet to send [06:32:15]OFD Sender: No OFD packet to send [06:32:20]OFD Sender: No OFD packet to send [06:32:25]OFD Sender: No OFD packet to send [06:32:30]OFD Sender: No OFD packet to send [06:32:35]OFD Sender: No OFD packet to send [06:32:40]OFD Sender: No OFD packet to send [06:32:45]OFD Sender: No OFD packet to send [06:32:50]OFD Sender: No OFD packet to send [06:32:55]OFD Sender: No OFD packet to send [06:33:00]OFD Sender: No OFD packet to send [06:33:05]OFD Sender: No OFD packet to send [06:33:10]OFD Sender: No OFD packet to send [06:33:15]OFD Sender: No OFD packet to send [06:33:20]OFD Sender: No OFD packet to send [06:33:25]OFD Sender: No OFD packet to send [06:33:30]OFD Sender: No OFD packet to send [06:33:35]OFD Sender: No OFD packet to send [06:33:40]OFD Sender: No OFD packet to send [06:33:45]OFD Sender: No OFD packet to send [06:33:50]OFD Sender: No OFD packet to send [06:33:55]OFD Sender: No OFD packet to send [06:34:00]OFD Sender: No OFD packet to send [06:34:05]OFD Sender: No OFD packet to send [06:34:10]OFD Sender: No OFD packet to send [06:34:15]OFD Sender: No OFD packet to send [06:34:20]OFD Sender: No OFD packet to send [06:34:25]OFD Sender: No OFD packet to send [06:34:30]OFD Sender: No OFD packet to send [06:34:35]OFD Sender: No OFD packet to send [06:34:40]OFD Sender: No OFD packet to send [06:34:45]OFD Sender: No OFD packet to send [06:34:50]OFD Sender: No OFD packet to send [06:34:55]OFD Sender: No OFD packet to send [06:35:00]OFD Sender: No OFD packet to send [06:35:05]OFD Sender: No OFD packet to send [06:35:10]OFD Sender: No OFD packet to send [06:35:15]OFD Sender: No OFD packet to send [06:35:20]OFD Sender: No OFD packet to send [06:35:25]OFD Sender: No OFD packet to send [06:35:30]OFD Sender: No OFD packet to send [06:35:35]OFD Sender: No OFD packet to send [06:35:40]OFD Sender: No OFD packet to send [06:35:45]OFD Sender: No OFD packet to send [06:35:50]OFD Sender: No OFD packet to send [06:35:55]OFD Sender: No OFD packet to send [06:36:00]OFD Sender: No OFD packet to send [06:36:05]OFD Sender: No OFD packet to send [06:36:10]OFD Sender: No OFD packet to send [06:36:15]OFD Sender: No OFD packet to send [06:36:20]OFD Sender: No OFD packet to send [06:36:25]OFD Sender: No OFD packet to send [06:36:30]OFD Sender: No OFD packet to send [06:36:35]OFD Sender: No OFD packet to send [06:36:40]OFD Sender: No OFD packet to send [06:36:45]OFD Sender: No OFD packet to send [06:36:50]OFD Sender: No OFD packet to send [06:36:55]OFD Sender: No OFD packet to send [06:37:00]OFD Sender: No OFD packet to send [06:37:05]OFD Sender: No OFD packet to send [06:37:10]OFD Sender: No OFD packet to send [06:37:15]OFD Sender: No OFD packet to send [06:37:20]OFD Sender: No OFD packet to send [06:37:25]OFD Sender: No OFD packet to send [06:37:30]OFD Sender: No OFD packet to send [06:37:35]OFD Sender: No OFD packet to send [06:37:40]OFD Sender: No OFD packet to send [06:37:45]OFD Sender: No OFD packet to send [06:37:48]accept exits with 10 [06:37:48]New connection [06:37:48]New thread 3066821988 created [06:37:48]Thread 3066965348 joined [06:37:48]Waiting for new connection... [06:37:48] Sock 10.Parse request [06:37:48]Sock 10.Check first char [06:37:48]Sock 10.First char is OK [06:37:48]request: POST /json_proto HTTP/1.0 [06:37:48]Method: POST [06:37:48]URL: /json_proto [06:37:48]Method is POST - this is cgi request [06:37:48]url: /json_proto [06:37:48]query_string will be loaded in cgi processing [06:37:48]execute_cgi json_proto POST (null) [06:37:48]execute_cgi path=json_proto method=POST [06:37:48]POST find Content-Length [06:37:48]Host: 172.17.44.195:8080 [06:37:48]Content-Length: 678 [06:37:48]Content-Type: application/json [06:37:48] [06:37:48]POST finish read [06:37:48]Found Content-Length = 678 [06:37:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962642", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.800, "sum" : 120.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 120.00, "total" : 120.00, "payments": [ { "type": 0, "sum" : 120.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:37:48]execute_script... [06: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)1962642", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.800, "sum" : 120.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 120.00, "total" : 120.00, "payments": [ { "type": 0, "sum" : 120.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:37:48]POST & json_proto [06:37:48]process_json_proto [06:37:48]json parsed OK: [06:37:48]protocol is kg_v1.0 [06:37:48]action value=close_receipt [06:37:48]process_action close_receipt [06:37:48]cmd_close_receipt [06:37:48]MH_GetDate [06:37:48]Write to MH i2c: F0 00 00 EA 21 FA [06:37:48]Write i2c OK [06:37:48]MH_I2C_Read... [06:37:48]Read from MH i2c: F0 [06:37:48]MH_I2C_Read... [06:37:48]Read from MH i2c: F0 09 00 [06:37:48]MH_I2C_Read... [06:37:48]Read from MH i2c: F0 09 00 EA 21 00 40 A5 14 67 82 C9 CF 66 E3 [06:37:48]GetLastDocTimeStamp 1729405810 [06:37:48]current date 1729406272 [06:37:48]FM_GetShiftState [06:37:48]SAM_PROTO_GetShiftState [06:37:48]wFMCommunicate request_size=4 [06:37:48]MH_SAM_APDU [06:37:48]CAPDU: 80 13 01 00 [06:37:48]Write to MH i2c: E2 08 00 EB 21 80 13 01 00 00 00 00 00 89 [06:37:48]Write i2c OK [06:37:48]MH_I2C_Read... [06:37:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:37:48]Read from MH i2c: E2 [06:37:48]MH_I2C_Read... [06:37:48]Read from MH i2c: E2 0E 00 [06:37:48]MH_I2C_Read... [06:37:48]Read from MH i2c: E2 0E 00 EB 21 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 A3 [06:37:48]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [06:37:48]wFMCommunicate OK [06:37:48]SAM_PROTO_GetShiftState done [06:37:48]FM_GetShiftState done [06:37:48]opened in 1729383750 [06:37:48]opened+sec_in_day 1729470150 [06:37:48]quantity*price = 12042 [06:37:48]sum+1 = 12043 [06:37:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 120.00 Внесено: 120.00 СДАЧА: 0.00 НСП 1% : 1.07 НДС 12% : 12.79 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 38 20.10.2024 06:37 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227190 ФПД: 274952776008274 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T063752&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227190&fm=274952776008274&tin=02508201610067®Number=0000000000091685&sum=12000 [06:37:50]StoreToDocumentArchive [06:37:50]shift 533 fd 227190 [06:37:50]save to /storage/0533/doc_00227190 [06:37:50]save last doc name /storage/0533/doc_00227190 to /storage/kkm_last_doc_name [06:37:50]save OK [06:37:50]Clear old archive folders... [06:37:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:37:50]tlvbuf is 005312D0 [06:37:50]SAM_PROTO_ClearQueue [06:37:50]wFMCommunicate request_size=4 [06:37:50]MH_SAM_APDU [06:37:50]CAPDU: 80 09 00 00 [06:37:50]Write to MH i2c: E2 08 00 F8 21 80 09 00 00 00 00 00 00 8B [06:37:50]Write i2c OK [06:37:50]MH_I2C_Read... [06:37:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:37:50]Read from MH i2c: E2 [06:37:50]MH_I2C_Read... [06:37:50]Read from MH i2c: E2 03 00 [06:37:50]MH_I2C_Read... [06:37:50]Read from MH i2c: E2 03 00 F8 21 00 90 00 8D [06:37:50]RAPDU: 90 00 [06:37:50]wFMCommunicate OK [06:37:50]SAM_PROTO_ClearQueue done [06:37:50]KKMCreateOFDPacket [06:37:50]OFDProtocolAddRootSTLVToBuf [06:37:50]FM_MakeSignedData [06:37:50]FM_MakeSignedData [06:37:50]SAM_PROTO_SignData [06:37:50]wFMCommunicate request_size=4 [06:37:50]MH_SAM_APDU [06:37:50]CAPDU: 80 0D 01 02 [06:37:50]Write to MH i2c: E2 08 00 F9 21 80 0D 01 02 00 00 00 00 93 [06:37:50]Write i2c OK [06:37:50]MH_I2C_Read... [06:37:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:37:50]Read from MH i2c: E2 [06:37:50]MH_I2C_Read... [06:37:50]Read from MH i2c: E2 03 00 [06:37:50]MH_I2C_Read... [06:37:50]Read from MH i2c: E2 03 00 F9 21 00 90 00 8E [06:37:50]RAPDU: 90 00 [06:37:50]wFMCommunicate OK [06:37:50]wFMCommunicate request_size=255 [06:37:50]MH_SAM_APDU [06: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 35 FF 03 08 00 03 08 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0A 2F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 40 A5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 76 77 03 00 35 04 06 00 FA [06:37:50]Write to MH i2c: E2 02 01 FA 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 08 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0A 2F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 40 A5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 76 77 03 00 35 04 06 00 FA 00 00 3A [06:37:50]Write i2c OK [06:37:50]MH_I2C_Read... [06:37:50]OFD Sender: No OFD packet to send [06:37:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:37:50]Read from MH i2c: E2 [06:37:50]MH_I2C_Read... [06:37:50]Read from MH i2c: E2 03 00 [06:37:50]MH_I2C_Read... [06:37:50]Read from MH i2c: E2 03 00 FA 21 00 90 00 8F [06:37:50]RAPDU: 90 00 [06:37:50]wFMCommunicate OK [06:37:50]wFMCommunicate request_size=10 [06:37:50]MH_SAM_APDU [06:37:50]CAPDU: 80 0D 02 02 05 11 6E 8B 42 52 [06:37:50]Write to MH i2c: E2 0D 00 FB 21 80 0D 02 02 05 00 11 6E 8B 42 52 00 00 3E [06:37:50]Write i2c OK [06:37:50]MH_I2C_Read... [06:37:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:37:50]Read from MH i2c: E2 [06:37:50]MH_I2C_Read... [06:37:50]Read from MH i2c: E2 03 00 [06:37:50]MH_I2C_Read... [06:37:50]Read from MH i2c: E2 03 00 FB 21 00 90 00 90 [06:37:50]RAPDU: 90 00 [06:37:50]wFMCommunicate OK [06:37:50]wFMCommunicate request_size=4 [06:37:50]MH_SAM_APDU [06:37:50]CAPDU: 80 0D 03 02 [06:37:50]Write to MH i2c: E2 08 00 FC 21 80 0D 03 02 00 00 00 00 98 [06:37:50]Write i2c OK [06:37:50]MH_I2C_Read... [06:37:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:37:50]Read from MH i2c: E2 [06:37:50]MH_I2C_Read... [06:37:50]Read from MH i2c: E2 0B 00 [06:37:50]MH_I2C_Read... [06:37:50]Read from MH i2c: E2 0B 00 FC 21 00 17 9B DD 11 2B 4F 9E B7 90 00 08 [06:37:50]RAPDU: 17 9B DD 11 2B 4F 9E B7 90 00 [06:37:50]wFMCommunicate OK [06:37:50]SAM_PROTO_SignData done [06:37:50]FM_MakeSignedData done [06:37:50]CreateOFDProtocolMessage [06:37:50]wFMCommunicate request_size=4 [06:37:50]MH_SAM_APDU [06:37:50]CAPDU: 80 11 00 00 [06:37:50]Write to MH i2c: E2 08 00 FD 21 80 11 00 00 00 00 00 00 98 [06:37:50]Write i2c OK [06:37:50]MH_I2C_Read... [06:37:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:37:50]Read from MH i2c: E2 [06:37:50]MH_I2C_Read... [06:37:50]Read from MH i2c: E2 17 00 [06:37:50]MH_I2C_Read... [06:37:50]Read from MH i2c: E2 17 00 FD 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 EF [06:37:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [06:37:50]wFMCommunicate OK [06:37:50]CreateOFDProtocolMessage done [06:37:50]OFDSenderStorePacket 227190 [06:37:50]StoreOFDPacket docnum=227190 [06:37:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 09 4D 07 01 7A BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 08 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0A 2F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 40 A5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 76 77 03 00 35 04 06 00 FA 11 6E 8B 42 52 17 9B DD 11 2B 4F 9E B7 [06:37:50]CheckFolder [06:37:50]dirname=/storage/ofd_packets [06:37:50]CheckFolder done [06:37:50]ProducePacketName [06:37:50]name=ofd_packets/00227190 [06:37:50]NVStorageSaveData ofd_packets/00227190 [06:37:50]File name is /storage/ofd_packets/00227190 [06:37:50]Write 301 bytes [06:37:50]NVStorageSaveData done [06:37:50]OFDSenderStorePacket done [06:37:50]KKMCreateOFDPacket done [06:37:50]NVStorageSaveData kkm_last_timestamp [06:37:50]File name is /storage/kkm_last_timestamp [06:37:50]Write 4 bytes [06:37:50]NVStorageSaveData done [06:37:50]ExternCall_PrintAddStr [06:37:50]wPrintStart [06:37:50]Write to MH i2c: 01 00 00 FE 21 1F [06:37:50]Write i2c OK [06:37:50]MH_I2C_Read... [06:37:50]Read from MH i2c: 01 [06:37:50]MH_I2C_Read... [06:37:50]Read from MH i2c: 01 07 00 [06:37:50]MH_I2C_Read... [06:37:50]Read from MH i2c: 01 07 00 FE 21 00 00 00 00 00 FF 0F 34 [06:37:50]RasterBufferAndPrint [06:37:50]line Счет N : (1)1962642 [06:37:50]line ИНН: 02508201610067 [06:37:50]line Контрольно-Кассовый Чек [06:37:50]line ПРОДАЖА [06:37:50]line ТРК (МРК, ГНК) : 33 [06:37:50]line Товар: 2710124130 [06:37:50]line Аи-92-К-5 [06:37:50]line 1.800 * 66.90 [06:37:50]line = 120.42 [06:37:50]line НДС 12% НСП 1% [06:37:50]line > о реализуемом товаре [06:37:50]line ОКРУГЛЕНИЕ: -0.42 [06:37:50]line ИТОГО: 120.00 [06:37:50]line Внесено: 120.00 [06:37:50]line СДАЧА: 0.00 [06:37:50]line НСП 1% : 1.07 [06:37:50]line НДС 12% : 12.79 [06:37:50]line Наличными: 120.00 [06:37:50]line Безнал.: 0.00 [06:37:50]line Место: АЗС № 133 "Партнер Нефть" [06:37:50]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [06:37:50]line СНО: Общий режим [06:37:50]line Чек 38 20.10.2024 06:37 [06:37:50]line Смена: 533 ФФД: 1.0 [06:37:50]line ЗНМ: 0300000091 [06:37:50]line РНМ: 0000000000091685 [06:37:50]line Версия ККМ: 001 [06:37:50]line ФМ: 0000000000871839 [06:37:50]line ФД: 227190 [06:37:50]line ФПД: 274952776008274 [06:37:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T063752&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227190&fm=274952776008274&tin=02508201610067®Number=0000000000091685&sum=12000 [06:37:50]OFD Sender: Processing packet 227190 [packets to send 38, broken 37] [06:37:50]ProducePacketName [06:37:50]name=ofd_packets/00227190 [06:37:50]OFD Sender: To server: pG, [06:37:50]CommunicateWithHost lk.salyk.kg:30040 [06:37:50]ConnectInit lk.salyk.kg [06:37:50]written 0, free lines is 4095 [06:37:51]Connected sock=9 [06: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 33 39 0F 01 00 00 09 4D 07 01 7A BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 08 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0A 2F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 40 A5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 76 77 03 00 35 04 06 00 FA 11 6E 8B 42 52 17 9B DD 11 2B 4F 9E B7 [06: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 33 39 4F 00 00 00 6B 91 47 00 3E 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 76 77 03 00 F4 03 04 00 40 50 14 67 B6 04 01 00 00 EC A6 D7 14 D5 E3 AE DB [06:37:51]CommunicateWithHost err = 0 [06:37:51]CheckOFDResponse [06:37:51]1017 (14) - 77093643461234 [06:37:51]1041 (16) - 0000000000871839 [06:37:51]1040 (4) - 227190 [06:37:51]1012 (4) - 20.10.2024 00:35 [06:37:51]1206 (1) - 0 [06:37:51]OFD Sender: Remove packet 227190 [06:37:51]ProducePacketName [06:37:51]name=ofd_packets/00227190 [06:37:51]NVStorageDeleteData [06:37:51]Write to MH i2c: 01 00 00 28 22 4A [06:37:51]Write i2c OK [06:37:51]MH_I2C_Read... [06:37:51]Read from MH i2c: 01 [06:37:51]MH_I2C_Read... [06:37:51]Read from MH i2c: 01 07 00 [06:37:51]MH_I2C_Read... [06:37:51]Read from MH i2c: 01 07 00 28 22 00 00 00 00 00 12 0D 70 [06:37:51]RasterBufferAndPrint [06:37:51]line [06:37:51]line [06:37:51]line [06:37:51]line [06:37:51]line [06:37:51]written 0, free lines is 3352 [06:37:51]process_action close_receipt done [06:37:51]requested_data is exist [06:37:51]produce_requested_data [06:37:51]requested_item fm.sn is exist - process it [06:37:51]wFMCommunicate request_size=4 [06:37:51]MH_SAM_APDU [06:37:51]CAPDU: 80 11 00 00 [06:37:51]Write to MH i2c: E2 08 00 2F 22 80 11 00 00 00 00 00 00 CB [06:37:51]Write i2c OK [06:37:51]MH_I2C_Read... [06:37:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:37:51]Read from MH i2c: E2 [06:37:51]MH_I2C_Read... [06:37:51]Read from MH i2c: E2 17 00 [06:37:51]MH_I2C_Read... [06:37:51]Read from MH i2c: E2 17 00 2F 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 22 [06:37:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [06:37:51]wFMCommunicate OK [06:37:51]requested_item fd.num is exist - process it [06:37:51]SAM_PROTO_GetFieldsCounters [06:37:51]wFMCommunicate request_size=4 [06:37:51]MH_SAM_APDU [06:37:51]CAPDU: 80 13 00 00 [06:37:51]Write to MH i2c: E2 08 00 30 22 80 13 00 00 00 00 00 00 CE [06:37:51]Write i2c OK [06:37:51]MH_I2C_Read... [06:37:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:37:51]Read from MH i2c: E2 [06:37:51]MH_I2C_Read... [06:37:51]Read from MH i2c: E2 62 00 [06:37:51]MH_I2C_Read... [06:37:51]Read from MH i2c: E2 62 00 30 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 76 77 03 00 0E 04 04 00 15 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 70 [06:37:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 76 77 03 00 0E 04 04 00 15 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 [06:37:51]wFMCommunicate OK [06:37:51]SAM_PROTO_GetFieldsCounters done [06:37:51]requested_item shift.num is exist - process it [06:37:51]requested_item shift.opened is exist - process it [06:37:51]req_shift_opened [06:37:51]FM_GetShiftState [06:37:51]SAM_PROTO_GetShiftState [06:37:51]wFMCommunicate request_size=4 [06:37:51]MH_SAM_APDU [06:37:51]CAPDU: 80 13 01 00 [06:37:51]Write to MH i2c: E2 08 00 31 22 80 13 01 00 00 00 00 00 D0 [06:37:51]Write i2c OK [06:37:51]MH_I2C_Read... [06:37:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:37:51]Read from MH i2c: E2 [06:37:51]MH_I2C_Read... [06:37:51]Read from MH i2c: E2 0E 00 [06:37:51]MH_I2C_Read... [06:37:51]Read from MH i2c: E2 0E 00 31 22 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 EA [06:37:51]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [06:37:51]wFMCommunicate OK [06:37:51]SAM_PROTO_GetShiftState done [06:37:51]FM_GetShiftState done [06:37:51]req_shift_opened done [06:37:51]requested_item shift.open_date is exist - process it [06:37:51]req_shift_open_date [06:37:51]req_shift_open_date done [06:37:51]produce_requested_data done [06:37:51]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227190,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [06:37:51]process_action_free close_receipt [06:37:51]json_value_free [06:37:51]json_value_free done [06:37:51]process_json_proto returns [06:37:51]Send response to host [06:37:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227190,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [06:37:51]free response buf [06:37:51]execute_script done [06:37:51]execute_script returns [06:37:51]free content buf [06:37:51]Sock 10.Close socket [06:37:51]Sock 10.Thread stoped [06:37:51]OFD Sender: No OFD packet to send [06:37:56]OFD Sender: No OFD packet to send [06:38:01]OFD Sender: No OFD packet to send [06:38:06]OFD Sender: No OFD packet to send [06:38:11]OFD Sender: No OFD packet to send [06:38:16]OFD Sender: No OFD packet to send [06:38:21]OFD Sender: No OFD packet to send [06:38:26]OFD Sender: No OFD packet to send [06:38:31]OFD Sender: No OFD packet to send [06:38:36]OFD Sender: No OFD packet to send [06:38:41]OFD Sender: No OFD packet to send [06:38:46]OFD Sender: No OFD packet to send [06:38:51]OFD Sender: No OFD packet to send [06:38:56]OFD Sender: No OFD packet to send [06:39:01]OFD Sender: No OFD packet to send [06:39:06]OFD Sender: No OFD packet to send [06:39:11]OFD Sender: No OFD packet to send [06:39:16]OFD Sender: No OFD packet to send [06:39:21]OFD Sender: No OFD packet to send [06:39:26]OFD Sender: No OFD packet to send [06:39:31]OFD Sender: No OFD packet to send [06:39:36]OFD Sender: No OFD packet to send [06:39:41]OFD Sender: No OFD packet to send [06:39:46]OFD Sender: No OFD packet to send [06:39:51]OFD Sender: No OFD packet to send [06:39:56]OFD Sender: No OFD packet to send [06:40:01]OFD Sender: No OFD packet to send [06:40:06]OFD Sender: No OFD packet to send [06:40:11]OFD Sender: No OFD packet to send [06:40:16]OFD Sender: No OFD packet to send [06:40:21]OFD Sender: No OFD packet to send [06:40:26]OFD Sender: No OFD packet to send [06:40:31]OFD Sender: No OFD packet to send [06:40:36]OFD Sender: No OFD packet to send [06:40:41]OFD Sender: No OFD packet to send [06:40:46]OFD Sender: No OFD packet to send [06:40:51]OFD Sender: No OFD packet to send [06:40:56]OFD Sender: No OFD packet to send [06:41:01]OFD Sender: No OFD packet to send [06:41:06]OFD Sender: No OFD packet to send [06:41:11]OFD Sender: No OFD packet to send [06:41:16]OFD Sender: No OFD packet to send [06:41:21]OFD Sender: No OFD packet to send [06:41:26]OFD Sender: No OFD packet to send [06:41:31]OFD Sender: No OFD packet to send [06:41:36]OFD Sender: No OFD packet to send [06:41:41]OFD Sender: No OFD packet to send [06:41:46]OFD Sender: No OFD packet to send [06:41:51]OFD Sender: No OFD packet to send [06:41:56]OFD Sender: No OFD packet to send [06:42:01]OFD Sender: No OFD packet to send [06:42:06]OFD Sender: No OFD packet to send [06:42:11]OFD Sender: No OFD packet to send [06:42:17]OFD Sender: No OFD packet to send [06:42:22]OFD Sender: No OFD packet to send [06:42:27]OFD Sender: No OFD packet to send [06:42:32]OFD Sender: No OFD packet to send [06:42:37]OFD Sender: No OFD packet to send [06:42:42]OFD Sender: No OFD packet to send [06:42:47]OFD Sender: No OFD packet to send [06:42:52]OFD Sender: No OFD packet to send [06:42:57]OFD Sender: No OFD packet to send [06:43:02]OFD Sender: No OFD packet to send [06:43:07]OFD Sender: No OFD packet to send [06:43:12]OFD Sender: No OFD packet to send [06:43:17]OFD Sender: No OFD packet to send [06:43:22]OFD Sender: No OFD packet to send [06:43:27]OFD Sender: No OFD packet to send [06:43:32]OFD Sender: No OFD packet to send [06:43:37]OFD Sender: No OFD packet to send [06:43:42]OFD Sender: No OFD packet to send [06:43:47]OFD Sender: No OFD packet to send [06:43:52]OFD Sender: No OFD packet to send [06:43:57]OFD Sender: No OFD packet to send [06:44:02]OFD Sender: No OFD packet to send [06:44:07]OFD Sender: No OFD packet to send [06:44:12]OFD Sender: No OFD packet to send [06:44:17]OFD Sender: No OFD packet to send [06:44:22]OFD Sender: No OFD packet to send [06:44:27]OFD Sender: No OFD packet to send [06:44:32]OFD Sender: No OFD packet to send [06:44:37]OFD Sender: No OFD packet to send [06:44:42]OFD Sender: No OFD packet to send [06:44:47]OFD Sender: No OFD packet to send [06:44:52]OFD Sender: No OFD packet to send [06:44:57]OFD Sender: No OFD packet to send [06:45:02]OFD Sender: No OFD packet to send [06:45:07]OFD Sender: No OFD packet to send [06:45:12]OFD Sender: No OFD packet to send [06:45:17]OFD Sender: No OFD packet to send [06:45:22]OFD Sender: No OFD packet to send [06:45:27]OFD Sender: No OFD packet to send [06:45:32]OFD Sender: No OFD packet to send [06:45:37]OFD Sender: No OFD packet to send [06:45:42]OFD Sender: No OFD packet to send [06:45:47]OFD Sender: No OFD packet to send [06:45:52]OFD Sender: No OFD packet to send [06:45:57]OFD Sender: No OFD packet to send [06:46:02]OFD Sender: No OFD packet to send [06:46:07]OFD Sender: No OFD packet to send [06:46:12]OFD Sender: No OFD packet to send [06:46:17]OFD Sender: No OFD packet to send [06:46:22]OFD Sender: No OFD packet to send [06:46:27]OFD Sender: No OFD packet to send [06:46:32]OFD Sender: No OFD packet to send [06:46:37]OFD Sender: No OFD packet to send [06:46:42]OFD Sender: No OFD packet to send [06:46:47]OFD Sender: No OFD packet to send [06:46:52]OFD Sender: No OFD packet to send [06:46:57]OFD Sender: No OFD packet to send [06:47:02]OFD Sender: No OFD packet to send [06:47:07]OFD Sender: No OFD packet to send [06:47:12]OFD Sender: No OFD packet to send [06:47:17]OFD Sender: No OFD packet to send [06:47:22]OFD Sender: No OFD packet to send [06:47:27]OFD Sender: No OFD packet to send [06:47:32]OFD Sender: No OFD packet to send [06:47:37]OFD Sender: No OFD packet to send [06:47:42]OFD Sender: No OFD packet to send [06:47:47]OFD Sender: No OFD packet to send [06:47:52]OFD Sender: No OFD packet to send [06:47:57]OFD Sender: No OFD packet to send [06:48:02]OFD Sender: No OFD packet to send [06:48:07]OFD Sender: No OFD packet to send [06:48:12]OFD Sender: No OFD packet to send [06:48:17]OFD Sender: No OFD packet to send [06:48:22]OFD Sender: No OFD packet to send [06:48:27]OFD Sender: No OFD packet to send [06:48:29]accept exits with 8 [06:48:29]New connection [06:48:29]New thread 3066965348 created [06:48:29]Thread 3066821988 joined [06:48:29]Waiting for new connection... [06:48:29] Sock 8.Parse request [06:48:29]Sock 8.Check first char [06:48:29]Sock 8.First char is OK [06:48:29]request: POST /json_proto HTTP/1.0 [06:48:29]Method: POST [06:48:29]URL: /json_proto [06:48:29]Method is POST - this is cgi request [06:48:29]url: /json_proto [06:48:29]query_string will be loaded in cgi processing [06:48:29]execute_cgi json_proto POST (null) [06:48:29]execute_cgi path=json_proto method=POST [06:48:29]POST find Content-Length [06:48:29]Host: 172.17.44.195:8080 [06:48:29]Content-Length: 678 [06:48:29]Content-Type: application/json [06:48:29] [06:48:29]POST finish read [06:48:29]Found Content-Length = 678 [06:48:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962643", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:48:29]execute_script... [06:48: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)1962643", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:48:29]POST & json_proto [06:48:29]process_json_proto [06:48:29]json parsed OK: [06:48:29]protocol is kg_v1.0 [06:48:29]action value=close_receipt [06:48:29]process_action close_receipt [06:48:29]cmd_close_receipt [06:48:29]MH_GetDate [06:48:29]Write to MH i2c: F0 00 00 32 22 43 [06:48:29]Write i2c OK [06:48:29]MH_I2C_Read... [06:48:29]Read from MH i2c: F0 [06:48:29]MH_I2C_Read... [06:48:29]Read from MH i2c: F0 09 00 [06:48:29]MH_I2C_Read... [06:48:29]Read from MH i2c: F0 09 00 32 22 00 C0 A7 14 67 82 C9 CF 66 AE [06:48:29]GetLastDocTimeStamp 1729406272 [06:48:29]current date 1729406912 [06:48:29]FM_GetShiftState [06:48:29]SAM_PROTO_GetShiftState [06:48:29]wFMCommunicate request_size=4 [06:48:29]MH_SAM_APDU [06:48:29]CAPDU: 80 13 01 00 [06:48:29]Write to MH i2c: E2 08 00 33 22 80 13 01 00 00 00 00 00 D2 [06:48:29]Write i2c OK [06:48:29]MH_I2C_Read... [06:48:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:48:29]Read from MH i2c: E2 [06:48:29]MH_I2C_Read... [06:48:29]Read from MH i2c: E2 0E 00 [06:48:29]MH_I2C_Read... [06:48:29]Read from MH i2c: E2 0E 00 33 22 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 EC [06:48:29]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [06:48:29]wFMCommunicate OK [06:48:29]SAM_PROTO_GetShiftState done [06:48:29]FM_GetShiftState done [06:48:29]opened in 1729383750 [06:48:29]opened+sec_in_day 1729470150 [06:48:29]quantity*price = 40006 [06:48:29]sum+1 = 40007 [06:48:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 39 20.10.2024 06:48 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227191 ФПД: 264474924316236 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T064832&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227191&fm=264474924316236&tin=02508201610067®Number=0000000000091685&sum=40000 [06:48:30]StoreToDocumentArchive [06:48:30]shift 533 fd 227191 [06:48:30]save to /storage/0533/doc_00227191 [06:48:30]save last doc name /storage/0533/doc_00227191 to /storage/kkm_last_doc_name [06:48:30]save OK [06:48:30]Clear old archive folders... [06:48:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:48:30]tlvbuf is 004FDE50 [06:48:30]SAM_PROTO_ClearQueue [06:48:30]wFMCommunicate request_size=4 [06:48:30]MH_SAM_APDU [06:48:30]CAPDU: 80 09 00 00 [06:48:30]Write to MH i2c: E2 08 00 40 22 80 09 00 00 00 00 00 00 D4 [06:48:30]Write i2c OK [06:48:30]MH_I2C_Read... [06:48:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:48:30]Read from MH i2c: E2 [06:48:30]MH_I2C_Read... [06:48:30]Read from MH i2c: E2 03 00 [06:48:30]MH_I2C_Read... [06:48:30]Read from MH i2c: E2 03 00 40 22 00 90 00 D6 [06:48:30]RAPDU: 90 00 [06:48:30]wFMCommunicate OK [06:48:30]SAM_PROTO_ClearQueue done [06:48:30]KKMCreateOFDPacket [06:48:30]OFDProtocolAddRootSTLVToBuf [06:48:30]FM_MakeSignedData [06:48:30]FM_MakeSignedData [06:48:30]SAM_PROTO_SignData [06:48:30]wFMCommunicate request_size=4 [06:48:30]MH_SAM_APDU [06:48:30]CAPDU: 80 0D 01 02 [06:48:30]Write to MH i2c: E2 08 00 41 22 80 0D 01 02 00 00 00 00 DC [06:48:30]Write i2c OK [06:48:30]MH_I2C_Read... [06:48:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:48:30]Read from MH i2c: E2 [06:48:30]MH_I2C_Read... [06:48:30]Read from MH i2c: E2 03 00 [06:48:30]MH_I2C_Read... [06:48:30]Read from MH i2c: E2 03 00 41 22 00 90 00 D7 [06:48:30]RAPDU: 90 00 [06:48:30]wFMCommunicate OK [06:48:30]wFMCommunicate request_size=255 [06:48:30]MH_SAM_APDU [06:48:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 C0 A7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 77 77 03 00 35 04 06 00 F0 [06:48:30]Write to MH i2c: E2 02 01 42 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 C0 A7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 77 77 03 00 35 04 06 00 F0 00 00 43 [06:48:30]Write i2c OK [06:48:30]MH_I2C_Read... [06:48:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:48:30]Read from MH i2c: E2 [06:48:30]MH_I2C_Read... [06:48:30]Read from MH i2c: E2 03 00 [06:48:30]MH_I2C_Read... [06:48:30]Read from MH i2c: E2 03 00 42 22 00 90 00 D8 [06:48:30]RAPDU: 90 00 [06:48:30]wFMCommunicate OK [06:48:30]wFMCommunicate request_size=10 [06:48:30]MH_SAM_APDU [06:48:30]CAPDU: 80 0D 02 02 05 89 DD EA 76 4C [06:48:30]Write to MH i2c: E2 0D 00 43 22 80 0D 02 02 05 00 89 DD EA 76 4C 00 00 FB [06:48:30]Write i2c OK [06:48:30]MH_I2C_Read... [06:48:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:48:30]Read from MH i2c: E2 [06:48:30]MH_I2C_Read... [06:48:30]Read from MH i2c: E2 03 00 [06:48:30]MH_I2C_Read... [06:48:30]Read from MH i2c: E2 03 00 43 22 00 90 00 D9 [06:48:30]RAPDU: 90 00 [06:48:30]wFMCommunicate OK [06:48:30]wFMCommunicate request_size=4 [06:48:30]MH_SAM_APDU [06:48:30]CAPDU: 80 0D 03 02 [06:48:30]Write to MH i2c: E2 08 00 44 22 80 0D 03 02 00 00 00 00 E1 [06:48:30]Write i2c OK [06:48:30]MH_I2C_Read... [06:48:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:48:30]Read from MH i2c: E2 [06:48:30]MH_I2C_Read... [06:48:30]Read from MH i2c: E2 0B 00 [06:48:30]MH_I2C_Read... [06:48:30]Read from MH i2c: E2 0B 00 44 22 00 EF 4D D9 43 FB 51 6C D2 90 00 C4 [06:48:30]RAPDU: EF 4D D9 43 FB 51 6C D2 90 00 [06:48:30]wFMCommunicate OK [06:48:30]SAM_PROTO_SignData done [06:48:30]FM_MakeSignedData done [06:48:30]CreateOFDProtocolMessage [06:48:30]wFMCommunicate request_size=4 [06:48:30]MH_SAM_APDU [06:48:30]CAPDU: 80 11 00 00 [06:48:30]Write to MH i2c: E2 08 00 45 22 80 11 00 00 00 00 00 00 E1 [06:48:30]Write i2c OK [06:48:30]MH_I2C_Read... [06:48:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:48:30]Read from MH i2c: E2 [06:48:30]MH_I2C_Read... [06:48:30]Read from MH i2c: E2 17 00 [06:48:30]MH_I2C_Read... [06:48:30]Read from MH i2c: E2 17 00 45 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 38 [06:48:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [06:48:30]wFMCommunicate OK [06:48:30]CreateOFDProtocolMessage done [06:48:30]OFDSenderStorePacket 227191 [06:48:30]StoreOFDPacket docnum=227191 [06:48:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 6D 46 07 01 85 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 C0 A7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 77 77 03 00 35 04 06 00 F0 89 DD EA 76 4C EF 4D D9 43 FB 51 6C D2 [06:48:30]CheckFolder [06:48:30]dirname=/storage/ofd_packets [06:48:30]CheckFolder done [06:48:30]ProducePacketName [06:48:30]name=ofd_packets/00227191 [06:48:30]NVStorageSaveData ofd_packets/00227191 [06:48:30]File name is /storage/ofd_packets/00227191 [06:48:30]Write 301 bytes [06:48:30]NVStorageSaveData done [06:48:30]OFDSenderStorePacket done [06:48:30]KKMCreateOFDPacket done [06:48:30]NVStorageSaveData kkm_last_timestamp [06:48:30]File name is /storage/kkm_last_timestamp [06:48:30]Write 4 bytes [06:48:30]NVStorageSaveData done [06:48:30]ExternCall_PrintAddStr [06:48:30]wPrintStart [06:48:30]Write to MH i2c: 01 00 00 46 22 68 [06:48:30]Write i2c OK [06:48:30]MH_I2C_Read... [06:48:30]Read from MH i2c: 01 [06:48:30]MH_I2C_Read... [06:48:30]Read from MH i2c: 01 07 00 [06:48:30]MH_I2C_Read... [06:48:30]Read from MH i2c: 01 07 00 46 22 00 00 00 00 00 FF 0F 7D [06:48:30]RasterBufferAndPrint [06:48:30]line Счет N : (1)1962643 [06:48:30]line ИНН: 02508201610067 [06:48:30]line Контрольно-Кассовый Чек [06:48:30]line ПРОДАЖА [06:48:30]line ТРК (МРК, ГНК) : 43 [06:48:30]line Товар: 2710124130 [06:48:30]line Аи-92-К-5 [06:48:30]line 5.980 * 66.90 [06:48:30]line = 400.06 [06:48:30]line НДС 12% НСП 1% [06:48:30]line > о реализуемом товаре [06:48:30]line ОКРУГЛЕНИЕ: -0.06 [06:48:30]line ИТОГО: 400.00 [06:48:30]line Внесено: 400.00 [06:48:30]line СДАЧА: 0.00 [06:48:30]line НСП 1% : 3.54 [06:48:30]line НДС 12% : 42.48 [06:48:30]line Наличными: 400.00 [06:48:30]line Безнал.: 0.00 [06:48:30]line Место: АЗС № 133 "Партнер Нефть" [06:48:30]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [06:48:30]line СНО: Общий режим [06:48:30]line Чек 39 20.10.2024 06:48 [06:48:30]line Смена: 533 ФФД: 1.0 [06:48:30]line ЗНМ: 0300000091 [06:48:30]line РНМ: 0000000000091685 [06:48:30]line Версия ККМ: 001 [06:48:30]line ФМ: 0000000000871839 [06:48:30]line ФД: 227191 [06:48:30]line ФПД: 264474924316236 [06:48:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T064832&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227191&fm=264474924316236&tin=02508201610067®Number=0000000000091685&sum=40000 [06:48:31]written 0, free lines is 4095 [06:48:31]OFD Sender: Processing packet 227191 [packets to send 38, broken 37] [06:48:31]ProducePacketName [06:48:31]name=ofd_packets/00227191 [06:48:31]OFD Sender: To server: pG, [06:48:31]CommunicateWithHost lk.salyk.kg:30040 [06:48:31]ConnectInit lk.salyk.kg [06:48:31]Connected sock=10 [06:48: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 33 39 0F 01 00 00 6D 46 07 01 85 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 C0 A7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 77 77 03 00 35 04 06 00 F0 89 DD EA 76 4C EF 4D D9 43 FB 51 6C D2 [06:48: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 33 39 4F 00 00 00 DD 22 47 00 FF 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 77 77 03 00 F4 03 04 00 C0 52 14 67 B6 04 01 00 00 31 1E AE E5 07 EE 6E E3 [06:48:31]CommunicateWithHost err = 0 [06:48:31]CheckOFDResponse [06:48:31]1017 (14) - 77093643461234 [06:48:31]1041 (16) - 0000000000871839 [06:48:31]1040 (4) - 227191 [06:48:31]1012 (4) - 20.10.2024 00:45 [06:48:31]1206 (1) - 0 [06:48:31]OFD Sender: Remove packet 227191 [06:48:31]ProducePacketName [06:48:31]name=ofd_packets/00227191 [06:48:31]NVStorageDeleteData [06:48:31]Write to MH i2c: 01 00 00 70 22 92 [06:48:31]Write i2c OK [06:48:31]MH_I2C_Read... [06:48:31]Read from MH i2c: 01 [06:48:31]MH_I2C_Read... [06:48:31]Read from MH i2c: 01 07 00 [06:48:31]MH_I2C_Read... [06:48:31]Read from MH i2c: 01 07 00 70 22 00 00 00 00 00 1E 0D C4 [06:48:31]RasterBufferAndPrint [06:48:31]line [06:48:31]line [06:48:31]line [06:48:31]line [06:48:31]line [06:48:31]written 0, free lines is 3364 [06:48:31]process_action close_receipt done [06:48:31]requested_data is exist [06:48:31]produce_requested_data [06:48:31]requested_item fm.sn is exist - process it [06:48:31]wFMCommunicate request_size=4 [06:48:31]MH_SAM_APDU [06:48:31]CAPDU: 80 11 00 00 [06:48:31]Write to MH i2c: E2 08 00 77 22 80 11 00 00 00 00 00 00 13 [06:48:31]Write i2c OK [06:48:31]MH_I2C_Read... [06:48:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:48:31]Read from MH i2c: E2 [06:48:31]MH_I2C_Read... [06:48:31]Read from MH i2c: E2 17 00 [06:48:31]MH_I2C_Read... [06:48:31]Read from MH i2c: E2 17 00 77 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 6A [06:48:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [06:48:31]wFMCommunicate OK [06:48:31]requested_item fd.num is exist - process it [06:48:31]SAM_PROTO_GetFieldsCounters [06:48:31]wFMCommunicate request_size=4 [06:48:31]MH_SAM_APDU [06:48:31]CAPDU: 80 13 00 00 [06:48:31]Write to MH i2c: E2 08 00 78 22 80 13 00 00 00 00 00 00 16 [06:48:31]Write i2c OK [06:48:31]MH_I2C_Read... [06:48:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:48:31]Read from MH i2c: E2 [06:48:31]MH_I2C_Read... [06:48:31]Read from MH i2c: E2 62 00 [06:48:31]MH_I2C_Read... [06:48:31]Read from MH i2c: E2 62 00 78 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 77 77 03 00 0E 04 04 00 15 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 BC [06:48: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 77 77 03 00 0E 04 04 00 15 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 [06:48:31]wFMCommunicate OK [06:48:31]SAM_PROTO_GetFieldsCounters done [06:48:31]requested_item shift.num is exist - process it [06:48:31]requested_item shift.opened is exist - process it [06:48:31]req_shift_opened [06:48:31]FM_GetShiftState [06:48:31]SAM_PROTO_GetShiftState [06:48:31]wFMCommunicate request_size=4 [06:48:31]MH_SAM_APDU [06:48:31]CAPDU: 80 13 01 00 [06:48:31]Write to MH i2c: E2 08 00 79 22 80 13 01 00 00 00 00 00 18 [06:48:31]Write i2c OK [06:48:31]MH_I2C_Read... [06:48:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:48:31]Read from MH i2c: E2 [06:48:31]MH_I2C_Read... [06:48:31]Read from MH i2c: E2 0E 00 [06:48:31]MH_I2C_Read... [06:48:31]Read from MH i2c: E2 0E 00 79 22 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 32 [06:48:31]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [06:48:31]wFMCommunicate OK [06:48:31]SAM_PROTO_GetShiftState done [06:48:31]FM_GetShiftState done [06:48:31]req_shift_opened done [06:48:31]requested_item shift.open_date is exist - process it [06:48:31]req_shift_open_date [06:48:31]req_shift_open_date done [06:48:31]produce_requested_data done [06:48:31]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227191,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [06:48:31]process_action_free close_receipt [06:48:31]json_value_free [06:48:31]json_value_free done [06:48:31]process_json_proto returns [06:48:31]Send response to host [06:48:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227191,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [06:48:31]free response buf [06:48:31]execute_script done [06:48:31]execute_script returns [06:48:31]free content buf [06:48:31]Sock 8.Close socket [06:48:31]Sock 8.Thread stoped [06:48:31]OFD Sender: No OFD packet to send [06:48:36]OFD Sender: No OFD packet to send [06:48:41]OFD Sender: No OFD packet to send [06:48:47]OFD Sender: No OFD packet to send [06:48:52]OFD Sender: No OFD packet to send [06:48:57]OFD Sender: No OFD packet to send [06:49:02]OFD Sender: No OFD packet to send [06:49:07]OFD Sender: No OFD packet to send [06:49:12]OFD Sender: No OFD packet to send [06:49:17]OFD Sender: No OFD packet to send [06:49:22]OFD Sender: No OFD packet to send [06:49:27]OFD Sender: No OFD packet to send [06:49:32]OFD Sender: No OFD packet to send [06:49:37]OFD Sender: No OFD packet to send [06:49:42]OFD Sender: No OFD packet to send [06:49:47]OFD Sender: No OFD packet to send [06:49:52]OFD Sender: No OFD packet to send [06:49:57]OFD Sender: No OFD packet to send [06:50:01]accept exits with 9 [06:50:01]New connection [06:50:01]New thread 3066821988 created [06:50:01]Thread 3066965348 joined [06:50:01]Waiting for new connection... [06:50:01] Sock 9.Parse request [06:50:01]Sock 9.Check first char [06:50:01]Sock 9.First char is OK [06:50:01]request: POST /json_proto HTTP/1.0 [06:50:01]Method: POST [06:50:01]URL: /json_proto [06:50:01]Method is POST - this is cgi request [06:50:01]url: /json_proto [06:50:01]query_string will be loaded in cgi processing [06:50:01]execute_cgi json_proto POST (null) [06:50:01]execute_cgi path=json_proto method=POST [06:50:01]POST find Content-Length [06:50:01]Host: 172.17.44.195:8080 [06:50:01]Content-Length: 680 [06:50:01]Content-Type: application/json [06:50:01] [06:50:01]POST finish read [06:50:01]Found Content-Length = 680 [06:50:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962644", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 14.440, "sum" : 1100.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:50:01]execute_script... [06:50:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962644", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 14.440, "sum" : 1100.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:50:01]POST & json_proto [06:50:01]process_json_proto [06:50:01]json parsed OK: [06:50:01]protocol is kg_v1.0 [06:50:01]action value=close_receipt [06:50:01]process_action close_receipt [06:50:01]cmd_close_receipt [06:50:01]MH_GetDate [06:50:01]Write to MH i2c: F0 00 00 7A 22 8B [06:50:01]Write i2c OK [06:50:01]MH_I2C_Read... [06:50:01]Read from MH i2c: F0 [06:50:01]MH_I2C_Read... [06:50:01]Read from MH i2c: F0 09 00 [06:50:01]MH_I2C_Read... [06:50:01]Read from MH i2c: F0 09 00 7A 22 00 1D A8 14 67 82 C9 CF 66 54 [06:50:01]GetLastDocTimeStamp 1729406912 [06:50:01]current date 1729407005 [06:50:01]FM_GetShiftState [06:50:01]SAM_PROTO_GetShiftState [06:50:01]wFMCommunicate request_size=4 [06:50:01]MH_SAM_APDU [06:50:01]CAPDU: 80 13 01 00 [06:50:01]Write to MH i2c: E2 08 00 7B 22 80 13 01 00 00 00 00 00 1A [06:50:01]Write i2c OK [06:50:01]MH_I2C_Read... [06:50:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:50:01]Read from MH i2c: E2 [06:50:01]MH_I2C_Read... [06:50:01]Read from MH i2c: E2 0E 00 [06:50:01]MH_I2C_Read... [06:50:01]Read from MH i2c: E2 0E 00 7B 22 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 34 [06:50:01]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [06:50:01]wFMCommunicate OK [06:50:01]SAM_PROTO_GetShiftState done [06:50:01]FM_GetShiftState done [06:50:01]opened in 1729383750 [06:50:01]opened+sec_in_day 1729470150 [06:50:01]quantity*price = 110032 [06:50:01]sum+1 = 110034 [06:50:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 1100.00 Внесено: 1100.00 СДАЧА: 0.00 НСП 1% : 9.74 НДС 12% : 116.85 Наличными: 1100.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 40 20.10.2024 06:50 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227192 ФПД: 125870309443070 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T065005&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227192&fm=125870309443070&tin=02508201610067®Number=0000000000091685&sum=110000 [06:50:03]StoreToDocumentArchive [06:50:03]shift 533 fd 227192 [06:50:03]save to /storage/0533/doc_00227192 [06:50:03]save last doc name /storage/0533/doc_00227192 to /storage/kkm_last_doc_name [06:50:03]save OK [06:50:03]Clear old archive folders... [06:50:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:50:03]tlvbuf is 00508E20 [06:50:03]SAM_PROTO_ClearQueue [06:50:03]wFMCommunicate request_size=4 [06:50:03]MH_SAM_APDU [06:50:03]CAPDU: 80 09 00 00 [06:50:03]Write to MH i2c: E2 08 00 88 22 80 09 00 00 00 00 00 00 1C [06:50:03]Write i2c OK [06:50:03]MH_I2C_Read... [06:50:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:50:03]Read from MH i2c: E2 [06:50:03]MH_I2C_Read... [06:50:03]Read from MH i2c: E2 03 00 [06:50:03]MH_I2C_Read... [06:50:03]Read from MH i2c: E2 03 00 88 22 00 90 00 1E [06:50:03]RAPDU: 90 00 [06:50:03]wFMCommunicate OK [06:50:03]SAM_PROTO_ClearQueue done [06:50:03]KKMCreateOFDPacket [06:50:03]OFDProtocolAddRootSTLVToBuf [06:50:03]FM_MakeSignedData [06:50:03]FM_MakeSignedData [06:50:03]SAM_PROTO_SignData [06:50:03]wFMCommunicate request_size=4 [06:50:03]MH_SAM_APDU [06:50:03]CAPDU: 80 0D 01 02 [06:50:03]Write to MH i2c: E2 08 00 89 22 80 0D 01 02 00 00 00 00 24 [06:50:03]Write i2c OK [06:50:03]MH_I2C_Read... [06:50:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:50:03]Read from MH i2c: E2 [06:50:03]MH_I2C_Read... [06:50:03]Read from MH i2c: E2 03 00 [06:50:03]MH_I2C_Read... [06:50:03]Read from MH i2c: E2 03 00 89 22 00 90 00 1F [06:50:03]RAPDU: 90 00 [06:50:03]wFMCommunicate OK [06:50:03]wFMCommunicate request_size=255 [06:50:03]MH_SAM_APDU [06:50: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 68 38 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D1 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 1D A8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 78 77 03 00 35 04 06 00 72 7A 77 15 [06:50:03]Write to MH i2c: E2 02 01 8A 22 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 38 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D1 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 1D A8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 78 77 03 00 35 04 06 00 72 7A 77 15 00 00 D1 [06:50:03]Write i2c OK [06:50:03]MH_I2C_Read... [06:50:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:50:03]Read from MH i2c: E2 [06:50:03]MH_I2C_Read... [06:50:03]Read from MH i2c: E2 03 00 [06:50:03]MH_I2C_Read... [06:50:03]Read from MH i2c: E2 03 00 8A 22 00 90 00 20 [06:50:03]RAPDU: 90 00 [06:50:03]wFMCommunicate OK [06:50:03]wFMCommunicate request_size=7 [06:50:03]MH_SAM_APDU [06:50:03]CAPDU: 80 0D 02 02 02 05 FE [06:50:03]Write to MH i2c: E2 0A 00 8B 22 80 0D 02 02 02 00 05 FE 00 00 2E [06:50:03]Write i2c OK [06:50:03]MH_I2C_Read... [06:50:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:50:03]Read from MH i2c: E2 [06:50:03]MH_I2C_Read... [06:50:03]Read from MH i2c: E2 03 00 [06:50:03]MH_I2C_Read... [06:50:03]Read from MH i2c: E2 03 00 8B 22 00 90 00 21 [06:50:03]RAPDU: 90 00 [06:50:03]wFMCommunicate OK [06:50:03]wFMCommunicate request_size=4 [06:50:03]MH_SAM_APDU [06:50:03]CAPDU: 80 0D 03 02 [06:50:03]Write to MH i2c: E2 08 00 8C 22 80 0D 03 02 00 00 00 00 29 [06:50:03]Write i2c OK [06:50:03]MH_I2C_Read... [06:50:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:50:03]Read from MH i2c: E2 [06:50:03]MH_I2C_Read... [06:50:03]Read from MH i2c: E2 0B 00 [06:50:03]MH_I2C_Read... [06:50:03]Read from MH i2c: E2 0B 00 8C 22 00 AF 3A 8E 7A C8 70 8D A1 90 00 81 [06:50:03]RAPDU: AF 3A 8E 7A C8 70 8D A1 90 00 [06:50:03]wFMCommunicate OK [06:50:03]SAM_PROTO_SignData done [06:50:03]FM_MakeSignedData done [06:50:03]CreateOFDProtocolMessage [06:50:03]wFMCommunicate request_size=4 [06:50:03]MH_SAM_APDU [06:50:03]CAPDU: 80 11 00 00 [06:50:03]Write to MH i2c: E2 08 00 8D 22 80 11 00 00 00 00 00 00 29 [06:50:03]Write i2c OK [06:50:03]MH_I2C_Read... [06:50:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:50:03]Read from MH i2c: E2 [06:50:03]MH_I2C_Read... [06:50:03]Read from MH i2c: E2 17 00 [06:50:03]MH_I2C_Read... [06:50:03]Read from MH i2c: E2 17 00 8D 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 80 [06:50:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [06:50:03]wFMCommunicate OK [06:50:03]CreateOFDProtocolMessage done [06:50:03]OFDSenderStorePacket 227192 [06:50:03]StoreOFDPacket docnum=227192 [06:50:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 A3 DE 04 01 42 9E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 38 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D1 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 1D A8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 78 77 03 00 35 04 06 00 72 7A 77 15 05 FE AF 3A 8E 7A C8 70 8D A1 [06:50:03]CheckFolder [06:50:03]dirname=/storage/ofd_packets [06:50:03]CheckFolder done [06:50:03]ProducePacketName [06:50:03]name=ofd_packets/00227192 [06:50:03]NVStorageSaveData ofd_packets/00227192 [06:50:03]File name is /storage/ofd_packets/00227192 [06:50:03]Write 298 bytes [06:50:03]NVStorageSaveData done [06:50:03]OFDSenderStorePacket done [06:50:03]KKMCreateOFDPacket done [06:50:03]NVStorageSaveData kkm_last_timestamp [06:50:03]File name is /storage/kkm_last_timestamp [06:50:03]Write 4 bytes [06:50:03]NVStorageSaveData done [06:50:03]ExternCall_PrintAddStr [06:50:03]wPrintStart [06:50:03]Write to MH i2c: 01 00 00 8E 22 B0 [06:50:03]Write i2c OK [06:50:03]MH_I2C_Read... [06:50:03]Read from MH i2c: 01 [06:50:03]MH_I2C_Read... [06:50:03]Read from MH i2c: 01 07 00 [06:50:03]MH_I2C_Read... [06:50:03]Read from MH i2c: 01 07 00 8E 22 00 00 00 00 00 FF 0F C5 [06:50:03]RasterBufferAndPrint [06:50:03]line Счет N : (1)1962644 [06:50:03]line ИНН: 02508201610067 [06:50:03]line Контрольно-Кассовый Чек [06:50:03]line ПРОДАЖА [06:50:03]line ТРК (МРК, ГНК) : 11 [06:50:03]line Товар: 2710194210 [06:50:03]line ДТ-К-5 [06:50:03]line 14.440 * 76.20 [06:50:03]line = 1100.33 [06:50:03]line НДС 12% НСП 1% [06:50:03]line > о реализуемом товаре [06:50:03]line ОКРУГЛЕНИЕ: -0.33 [06:50:03]line ИТОГО: 1100.00 [06:50:03]line Внесено: 1100.00 [06:50:03]line СДАЧА: 0.00 [06:50:03]line НСП 1% : 9.74 [06:50:03]line НДС 12% : 116.85 [06:50:03]line Наличными: 1100.00 [06:50:03]line Безнал.: 0.00 [06:50:03]line Место: АЗС № 133 "Партнер Нефть" [06:50:03]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [06:50:03]line СНО: Общий режим [06:50:03]line Чек 40 20.10.2024 06:50 [06:50:03]line Смена: 533 ФФД: 1.0 [06:50:03]line ЗНМ: 0300000091 [06:50:03]line РНМ: 0000000000091685 [06:50:03]line Версия ККМ: 001 [06:50:03]line ФМ: 0000000000871839 [06:50:03]line ФД: 227192 [06:50:03]line ФПД: 125870309443070 [06:50:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T065005&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227192&fm=125870309443070&tin=02508201610067®Number=0000000000091685&sum=110000 [06:50:03]OFD Sender: Processing packet 227192 [packets to send 38, broken 37] [06:50:03]ProducePacketName [06:50:03]name=ofd_packets/00227192 [06:50:03]OFD Sender: To server: pG, [06:50:03]CommunicateWithHost lk.salyk.kg:30040 [06:50:03]ConnectInit lk.salyk.kg [06:50:03]written 0, free lines is 4095 [06:50:04]Connected sock=10 [06:50: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 33 39 0C 01 00 00 A3 DE 04 01 42 9E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 38 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D1 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 1D A8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 78 77 03 00 35 04 06 00 72 7A 77 15 05 FE AF 3A 8E 7A C8 70 8D A1 [06:50: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 33 39 4F 00 00 00 98 51 47 00 6A 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 33 39 10 04 04 00 78 77 03 00 F4 03 04 00 1D 53 14 67 B6 04 01 00 00 CC 8B 94 AA 0D 42 94 A1 [06:50:04]CommunicateWithHost err = 0 [06:50:04]CheckOFDResponse [06:50:04]1017 (14) - 77093643461234 [06:50:04]1041 (16) - 0000000000871839 [06:50:04]1040 (4) - 227192 [06:50:04]1012 (4) - 20.10.2024 00:47 [06:50:04]1206 (1) - 0 [06:50:04]OFD Sender: Remove packet 227192 [06:50:04]ProducePacketName [06:50:04]name=ofd_packets/00227192 [06:50:04]NVStorageDeleteData [06:50:04]Write to MH i2c: 01 00 00 B8 22 DA [06:50:04]Write i2c OK [06:50:04]MH_I2C_Read... [06:50:04]Read from MH i2c: 01 [06:50:04]MH_I2C_Read... [06:50:04]Read from MH i2c: 01 07 00 [06:50:04]MH_I2C_Read... [06:50:04]Read from MH i2c: 01 07 00 B8 22 00 00 00 00 00 13 0D 01 [06:50:04]RasterBufferAndPrint [06:50:04]line [06:50:04]line [06:50:04]line [06:50:04]line [06:50:04]line [06:50:04]written 0, free lines is 3353 [06:50:04]process_action close_receipt done [06:50:04]requested_data is exist [06:50:04]produce_requested_data [06:50:04]requested_item fm.sn is exist - process it [06:50:04]wFMCommunicate request_size=4 [06:50:04]MH_SAM_APDU [06:50:04]CAPDU: 80 11 00 00 [06:50:04]Write to MH i2c: E2 08 00 BF 22 80 11 00 00 00 00 00 00 5B [06:50:04]Write i2c OK [06:50:04]MH_I2C_Read... [06:50:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:50:04]Read from MH i2c: E2 [06:50:04]MH_I2C_Read... [06:50:04]Read from MH i2c: E2 17 00 [06:50:04]MH_I2C_Read... [06:50:04]Read from MH i2c: E2 17 00 BF 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B2 [06:50:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [06:50:04]wFMCommunicate OK [06:50:04]requested_item fd.num is exist - process it [06:50:04]SAM_PROTO_GetFieldsCounters [06:50:04]wFMCommunicate request_size=4 [06:50:04]MH_SAM_APDU [06:50:04]CAPDU: 80 13 00 00 [06:50:04]Write to MH i2c: E2 08 00 C0 22 80 13 00 00 00 00 00 00 5E [06:50:04]Write i2c OK [06:50:04]MH_I2C_Read... [06:50:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:50:04]Read from MH i2c: E2 [06:50:04]MH_I2C_Read... [06:50:04]Read from MH i2c: E2 62 00 [06:50:04]MH_I2C_Read... [06:50:04]Read from MH i2c: E2 62 00 C0 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 78 77 03 00 0E 04 04 00 15 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 08 [06:50:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 78 77 03 00 0E 04 04 00 15 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 [06:50:04]wFMCommunicate OK [06:50:04]SAM_PROTO_GetFieldsCounters done [06:50:04]requested_item shift.num is exist - process it [06:50:04]requested_item shift.opened is exist - process it [06:50:04]req_shift_opened [06:50:04]FM_GetShiftState [06:50:04]SAM_PROTO_GetShiftState [06:50:04]wFMCommunicate request_size=4 [06:50:04]MH_SAM_APDU [06:50:04]CAPDU: 80 13 01 00 [06:50:04]Write to MH i2c: E2 08 00 C1 22 80 13 01 00 00 00 00 00 60 [06:50:04]Write i2c OK [06:50:04]MH_I2C_Read... [06:50:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:50:04]Read from MH i2c: E2 [06:50:04]MH_I2C_Read... [06:50:04]Read from MH i2c: E2 0E 00 [06:50:04]MH_I2C_Read... [06:50:04]Read from MH i2c: E2 0E 00 C1 22 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 7A [06:50:04]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [06:50:04]wFMCommunicate OK [06:50:04]SAM_PROTO_GetShiftState done [06:50:04]FM_GetShiftState done [06:50:04]req_shift_opened done [06:50:04]requested_item shift.open_date is exist - process it [06:50:04]req_shift_open_date [06:50:04]req_shift_open_date done [06:50:04]produce_requested_data done [06:50:04]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227192,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [06:50:04]process_action_free close_receipt [06:50:04]json_value_free [06:50:04]json_value_free done [06:50:04]process_json_proto returns [06:50:04]Send response to host [06:50:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227192,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [06:50:04]free response buf [06:50:04]execute_script done [06:50:04]execute_script returns [06:50:04]free content buf [06:50:04]Sock 9.Close socket [06:50:04]Sock 9.Thread stoped [06:50:04]OFD Sender: No OFD packet to send [06:50:09]OFD Sender: No OFD packet to send [06:50:14]OFD Sender: No OFD packet to send [06:50:19]OFD Sender: No OFD packet to send [06:50:24]OFD Sender: No OFD packet to send [06:50:29]OFD Sender: No OFD packet to send [06:50:34]OFD Sender: No OFD packet to send [06:50:39]OFD Sender: No OFD packet to send [06:50:44]OFD Sender: No OFD packet to send [06:50:49]OFD Sender: No OFD packet to send [06:50:54]OFD Sender: No OFD packet to send [06:50:59]OFD Sender: No OFD packet to send [06:51:04]OFD Sender: No OFD packet to send [06:51:09]OFD Sender: No OFD packet to send [06:51:14]OFD Sender: No OFD packet to send [06:51:19]OFD Sender: No OFD packet to send [06:51:24]OFD Sender: No OFD packet to send [06:51:29]OFD Sender: No OFD packet to send [06:51:34]OFD Sender: No OFD packet to send [06:51:39]OFD Sender: No OFD packet to send [06:51:44]OFD Sender: No OFD packet to send [06:51:49]OFD Sender: No OFD packet to send [06:51:54]OFD Sender: No OFD packet to send [06:51:59]OFD Sender: No OFD packet to send [06:52:04]OFD Sender: No OFD packet to send [06:52:09]OFD Sender: No OFD packet to send [06:52:14]OFD Sender: No OFD packet to send [06:52:19]OFD Sender: No OFD packet to send [06:52:24]OFD Sender: No OFD packet to send [06:52:29]OFD Sender: No OFD packet to send [06:52:34]OFD Sender: No OFD packet to send [06:52:39]OFD Sender: No OFD packet to send [06:52:44]OFD Sender: No OFD packet to send [06:52:49]OFD Sender: No OFD packet to send [06:52:54]OFD Sender: No OFD packet to send [06:52:59]OFD Sender: No OFD packet to send [06:53:04]OFD Sender: No OFD packet to send [06:53:09]OFD Sender: No OFD packet to send [06:53:14]OFD Sender: No OFD packet to send [06:53:19]OFD Sender: No OFD packet to send [06:53:24]OFD Sender: No OFD packet to send [06:53:29]OFD Sender: No OFD packet to send [06:53:34]OFD Sender: No OFD packet to send [06:53:39]accept exits with 8 [06:53:39]New connection [06:53:39]New thread 3066965348 created [06:53:39]Thread 3066821988 joined [06:53:39]Waiting for new connection... [06:53:39] Sock 8.Parse request [06:53:39]Sock 8.Check first char [06:53:39]Sock 8.First char is OK [06:53:39]request: POST /json_proto HTTP/1.0 [06:53:39]Method: POST [06:53:39]URL: /json_proto [06:53:39]Method is POST - this is cgi request [06:53:39]url: /json_proto [06:53:39]query_string will be loaded in cgi processing [06:53:39]execute_cgi json_proto POST (null) [06:53:39]execute_cgi path=json_proto method=POST [06:53:39]POST find Content-Length [06:53:39]Host: 172.17.44.195:8080 [06:53:39]Content-Length: 678 [06:53:39]Content-Type: application/json [06:53:39] [06:53:39]POST finish read [06:53:39]Found Content-Length = 678 [06:53:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962645", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:53:39]execute_script... [06:53:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962645", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:53:39]POST & json_proto [06:53:39]process_json_proto [06:53:39]json parsed OK: [06:53:39]protocol is kg_v1.0 [06:53:39]action value=close_receipt [06:53:39]process_action close_receipt [06:53:39]cmd_close_receipt [06:53:39]MH_GetDate [06:53:39]Write to MH i2c: F0 00 00 C2 22 D3 [06:53:39]Write i2c OK [06:53:39]MH_I2C_Read... [06:53:39]Read from MH i2c: F0 [06:53:39]MH_I2C_Read... [06:53:39]Read from MH i2c: F0 09 00 [06:53:39]MH_I2C_Read... [06:53:39]Read from MH i2c: F0 09 00 C2 22 00 F7 A8 14 67 82 C9 CF 66 76 [06:53:39]GetLastDocTimeStamp 1729407005 [06:53:39]current date 1729407223 [06:53:39]FM_GetShiftState [06:53:39]SAM_PROTO_GetShiftState [06:53:39]wFMCommunicate request_size=4 [06:53:39]MH_SAM_APDU [06:53:39]CAPDU: 80 13 01 00 [06:53:39]Write to MH i2c: E2 08 00 C3 22 80 13 01 00 00 00 00 00 62 [06:53:39]Write i2c OK [06:53:39]MH_I2C_Read... [06:53:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:53:39]Read from MH i2c: E2 [06:53:39]MH_I2C_Read... [06:53:39]Read from MH i2c: E2 0E 00 [06:53:39]MH_I2C_Read... [06:53:39]Read from MH i2c: E2 0E 00 C3 22 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 7C [06:53:39]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [06:53:39]wFMCommunicate OK [06:53:39]SAM_PROTO_GetShiftState done [06:53:39]FM_GetShiftState done [06:53:39]opened in 1729383750 [06:53:39]opened+sec_in_day 1729470150 [06:53:39]quantity*price = 50041 [06:53:39]sum+1 = 50042 [06:53:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 41 20.10.2024 06:53 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227193 ФПД: 147004685057460 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T065343&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227193&fm=147004685057460&tin=02508201610067®Number=0000000000091685&sum=50000 [06:53:41]StoreToDocumentArchive [06:53:41]shift 533 fd 227193 [06:53:41]save to /storage/0533/doc_00227193 [06:53:41]save last doc name /storage/0533/doc_00227193 to /storage/kkm_last_doc_name [06:53:41]save OK [06:53:41]Clear old archive folders... [06:53:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:53:41]tlvbuf is 00534DD0 [06:53:41]SAM_PROTO_ClearQueue [06:53:41]wFMCommunicate request_size=4 [06:53:41]MH_SAM_APDU [06:53:41]CAPDU: 80 09 00 00 [06:53:41]Write to MH i2c: E2 08 00 D0 22 80 09 00 00 00 00 00 00 64 [06:53:41]Write i2c OK [06:53:41]MH_I2C_Read... [06:53:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:53:41]Read from MH i2c: E2 [06:53:41]MH_I2C_Read... [06:53:41]Read from MH i2c: E2 03 00 [06:53:41]MH_I2C_Read... [06:53:41]Read from MH i2c: E2 03 00 D0 22 00 90 00 66 [06:53:41]RAPDU: 90 00 [06:53:41]wFMCommunicate OK [06:53:41]SAM_PROTO_ClearQueue done [06:53:41]KKMCreateOFDPacket [06:53:41]OFDProtocolAddRootSTLVToBuf [06:53:41]FM_MakeSignedData [06:53:41]FM_MakeSignedData [06:53:41]SAM_PROTO_SignData [06:53:41]wFMCommunicate request_size=4 [06:53:41]MH_SAM_APDU [06:53:41]CAPDU: 80 0D 01 02 [06:53:41]Write to MH i2c: E2 08 00 D1 22 80 0D 01 02 00 00 00 00 6C [06:53:41]Write i2c OK [06:53:41]MH_I2C_Read... [06:53:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:53:41]Read from MH i2c: E2 [06:53:41]MH_I2C_Read... [06:53:41]Read from MH i2c: E2 03 00 [06:53:41]MH_I2C_Read... [06:53:41]Read from MH i2c: E2 03 00 D1 22 00 90 00 67 [06:53:41]RAPDU: 90 00 [06:53:41]wFMCommunicate OK [06:53:41]wFMCommunicate request_size=255 [06:53:41]MH_SAM_APDU [06:53:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 F7 A8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 79 77 03 00 35 04 06 00 85 [06:53:41]Write to MH i2c: E2 02 01 D2 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 F7 A8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 79 77 03 00 35 04 06 00 85 00 00 D5 [06:53:41]Write i2c OK [06:53:41]MH_I2C_Read... [06:53:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:53:41]Read from MH i2c: E2 [06:53:41]MH_I2C_Read... [06:53:41]Read from MH i2c: E2 03 00 [06:53:41]MH_I2C_Read... [06:53:41]Read from MH i2c: E2 03 00 D2 22 00 90 00 68 [06:53:41]RAPDU: 90 00 [06:53:41]wFMCommunicate OK [06:53:41]wFMCommunicate request_size=10 [06:53:41]MH_SAM_APDU [06:53:41]CAPDU: 80 0D 02 02 05 B3 32 08 7D B4 [06:53:41]Write to MH i2c: E2 0D 00 D3 22 80 0D 02 02 05 00 B3 32 08 7D B4 00 00 97 [06:53:41]Write i2c OK [06:53:41]MH_I2C_Read... [06:53:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:53:41]Read from MH i2c: E2 [06:53:41]MH_I2C_Read... [06:53:41]Read from MH i2c: E2 03 00 [06:53:41]MH_I2C_Read... [06:53:41]Read from MH i2c: E2 03 00 D3 22 00 90 00 69 [06:53:41]RAPDU: 90 00 [06:53:41]wFMCommunicate OK [06:53:41]wFMCommunicate request_size=4 [06:53:41]MH_SAM_APDU [06:53:41]CAPDU: 80 0D 03 02 [06:53:41]Write to MH i2c: E2 08 00 D4 22 80 0D 03 02 00 00 00 00 71 [06:53:41]Write i2c OK [06:53:41]MH_I2C_Read... [06:53:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:53:41]Read from MH i2c: E2 [06:53:41]MH_I2C_Read... [06:53:41]Read from MH i2c: E2 0B 00 [06:53:41]MH_I2C_Read... [06:53:41]Read from MH i2c: E2 0B 00 D4 22 00 70 C9 65 F3 FB E0 06 90 90 00 74 [06:53:41]RAPDU: 70 C9 65 F3 FB E0 06 90 90 00 [06:53:41]wFMCommunicate OK [06:53:41]SAM_PROTO_SignData done [06:53:41]FM_MakeSignedData done [06:53:41]CreateOFDProtocolMessage [06:53:41]wFMCommunicate request_size=4 [06:53:41]MH_SAM_APDU [06:53:41]CAPDU: 80 11 00 00 [06:53:41]Write to MH i2c: E2 08 00 D5 22 80 11 00 00 00 00 00 00 71 [06:53:41]Write i2c OK [06:53:41]MH_I2C_Read... [06:53:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:53:41]Read from MH i2c: E2 [06:53:41]MH_I2C_Read... [06:53:41]Read from MH i2c: E2 17 00 [06:53:41]MH_I2C_Read... [06:53:41]Read from MH i2c: E2 17 00 D5 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C8 [06:53:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [06:53:41]wFMCommunicate OK [06:53:41]CreateOFDProtocolMessage done [06:53:41]OFDSenderStorePacket 227193 [06:53:41]StoreOFDPacket docnum=227193 [06:53:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 ED D7 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 F7 A8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 79 77 03 00 35 04 06 00 85 B3 32 08 7D B4 70 C9 65 F3 FB E0 06 90 [06:53:41]CheckFolder [06:53:41]dirname=/storage/ofd_packets [06:53:41]CheckFolder done [06:53:41]ProducePacketName [06:53:41]name=ofd_packets/00227193 [06:53:41]NVStorageSaveData ofd_packets/00227193 [06:53:41]File name is /storage/ofd_packets/00227193 [06:53:41]Write 301 bytes [06:53:41]NVStorageSaveData done [06:53:41]OFDSenderStorePacket done [06:53:41]KKMCreateOFDPacket done [06:53:41]NVStorageSaveData kkm_last_timestamp [06:53:41]File name is /storage/kkm_last_timestamp [06:53:41]Write 4 bytes [06:53:41]NVStorageSaveData done [06:53:41]ExternCall_PrintAddStr [06:53:41]wPrintStart [06:53:41]Write to MH i2c: 01 00 00 D6 22 F8 [06:53:41]Write i2c OK [06:53:41]MH_I2C_Read... [06:53:41]Read from MH i2c: 01 [06:53:41]MH_I2C_Read... [06:53:41]Read from MH i2c: 01 07 00 [06:53:41]MH_I2C_Read... [06:53:41]Read from MH i2c: 01 07 00 D6 22 00 00 00 00 00 FF 0F 0D [06:53:41]RasterBufferAndPrint [06:53:41]line Счет N : (1)1962645 [06:53:41]line ИНН: 02508201610067 [06:53:41]line Контрольно-Кассовый Чек [06:53:41]line ПРОДАЖА [06:53:41]line ТРК (МРК, ГНК) : 33 [06:53:41]line Товар: 2710124130 [06:53:41]line Аи-92-К-5 [06:53:41]line 7.480 * 66.90 [06:53:41]line = 500.41 [06:53:41]line НДС 12% НСП 1% [06:53:41]line > о реализуемом товаре [06:53:41]line ОКРУГЛЕНИЕ: -0.41 [06:53:41]line ИТОГО: 500.00 [06:53:41]line Внесено: 500.00 [06:53:41]line СДАЧА: 0.00 [06:53:41]line НСП 1% : 4.43 [06:53:41]line НДС 12% : 53.14 [06:53:41]line Наличными: 500.00 [06:53:41]line Безнал.: 0.00 [06:53:41]line Место: АЗС № 133 "Партнер Нефть" [06:53:41]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [06:53:41]line СНО: Общий режим [06:53:41]line Чек 41 20.10.2024 06:53 [06:53:41]line Смена: 533 ФФД: 1.0 [06:53:41]line ЗНМ: 0300000091 [06:53:41]line РНМ: 0000000000091685 [06:53:41]line Версия ККМ: 001 [06:53:41]line ФМ: 0000000000871839 [06:53:41]line ФД: 227193 [06:53:41]line ФПД: 147004685057460 [06:53:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T065343&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227193&fm=147004685057460&tin=02508201610067®Number=0000000000091685&sum=50000 [06:53:41]OFD Sender: Processing packet 227193 [packets to send 38, broken 37] [06:53:41]ProducePacketName [06:53:41]name=ofd_packets/00227193 [06:53:41]OFD Sender: To server: pG, [06:53:41]CommunicateWithHost lk.salyk.kg:30040 [06:53:41]ConnectInit lk.salyk.kg [06:53:41]written 0, free lines is 4095 [06:53:42]Connected sock=10 [06: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 33 39 0F 01 00 00 ED D7 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 F7 A8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 79 77 03 00 35 04 06 00 85 B3 32 08 7D B4 70 C9 65 F3 FB E0 06 90 [06: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 33 39 4F 00 00 00 DB B2 47 00 D6 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 33 39 10 04 04 00 79 77 03 00 F4 03 04 00 F7 53 14 67 B6 04 01 00 00 82 1C 14 9D 3B 79 68 0C [06:53:42]CommunicateWithHost err = 0 [06:53:42]CheckOFDResponse [06:53:42]1017 (14) - 77093643461234 [06:53:42]1041 (16) - 0000000000871839 [06:53:42]1040 (4) - 227193 [06:53:42]1012 (4) - 20.10.2024 00:51 [06:53:42]1206 (1) - 0 [06:53:42]OFD Sender: Remove packet 227193 [06:53:42]ProducePacketName [06:53:42]name=ofd_packets/00227193 [06:53:42]NVStorageDeleteData [06:53:42]Write to MH i2c: 01 00 00 00 23 23 [06:53:42]Write i2c OK [06:53:42]MH_I2C_Read... [06:53:42]Read from MH i2c: 01 [06:53:42]MH_I2C_Read... [06:53:42]Read from MH i2c: 01 07 00 [06:53:42]MH_I2C_Read... [06:53:42]Read from MH i2c: 01 07 00 00 23 00 00 00 00 00 13 0D 4A [06:53:42]RasterBufferAndPrint [06:53:42]line [06:53:42]line [06:53:42]line [06:53:42]line [06:53:42]line [06:53:42]written 0, free lines is 3353 [06:53:42]process_action close_receipt done [06:53:42]requested_data is exist [06:53:42]produce_requested_data [06:53:42]requested_item fm.sn is exist - process it [06:53:42]wFMCommunicate request_size=4 [06:53:42]MH_SAM_APDU [06:53:42]CAPDU: 80 11 00 00 [06:53:42]Write to MH i2c: E2 08 00 07 23 80 11 00 00 00 00 00 00 A4 [06:53:42]Write i2c OK [06:53:42]MH_I2C_Read... [06:53:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:53:42]Read from MH i2c: E2 [06:53:42]MH_I2C_Read... [06:53:42]Read from MH i2c: E2 17 00 [06:53:42]MH_I2C_Read... [06:53:42]Read from MH i2c: E2 17 00 07 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 FB [06:53:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [06:53:42]wFMCommunicate OK [06:53:42]requested_item fd.num is exist - process it [06:53:42]SAM_PROTO_GetFieldsCounters [06:53:42]wFMCommunicate request_size=4 [06:53:42]MH_SAM_APDU [06:53:42]CAPDU: 80 13 00 00 [06:53:42]Write to MH i2c: E2 08 00 08 23 80 13 00 00 00 00 00 00 A7 [06:53:42]Write i2c OK [06:53:42]MH_I2C_Read... [06:53:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:53:42]Read from MH i2c: E2 [06:53:42]MH_I2C_Read... [06:53:42]Read from MH i2c: E2 62 00 [06:53:42]MH_I2C_Read... [06:53:42]Read from MH i2c: E2 62 00 08 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 79 77 03 00 0E 04 04 00 15 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 55 [06:53: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 79 77 03 00 0E 04 04 00 15 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 [06:53:42]wFMCommunicate OK [06:53:42]SAM_PROTO_GetFieldsCounters done [06:53:42]requested_item shift.num is exist - process it [06:53:42]requested_item shift.opened is exist - process it [06:53:42]req_shift_opened [06:53:42]FM_GetShiftState [06:53:42]SAM_PROTO_GetShiftState [06:53:42]wFMCommunicate request_size=4 [06:53:42]MH_SAM_APDU [06:53:42]CAPDU: 80 13 01 00 [06:53:42]Write to MH i2c: E2 08 00 09 23 80 13 01 00 00 00 00 00 A9 [06:53:42]Write i2c OK [06:53:42]MH_I2C_Read... [06:53:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:53:42]Read from MH i2c: E2 [06:53:42]MH_I2C_Read... [06:53:42]Read from MH i2c: E2 0E 00 [06:53:42]MH_I2C_Read... [06:53:42]Read from MH i2c: E2 0E 00 09 23 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 C3 [06:53:42]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [06:53:42]wFMCommunicate OK [06:53:42]SAM_PROTO_GetShiftState done [06:53:42]FM_GetShiftState done [06:53:42]req_shift_opened done [06:53:42]requested_item shift.open_date is exist - process it [06:53:42]req_shift_open_date [06:53:42]req_shift_open_date done [06:53:42]produce_requested_data done [06:53:42]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227193,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [06:53:42]process_action_free close_receipt [06:53:42]json_value_free [06:53:42]json_value_free done [06:53:42]process_json_proto returns [06:53:42]Send response to host [06:53:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227193,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [06:53:42]free response buf [06:53:42]execute_script done [06:53:42]execute_script returns [06:53:42]free content buf [06:53:42]Sock 8.Close socket [06:53:42]Sock 8.Thread stoped [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:08]accept exits with 9 [06:56:08]New connection [06:56:08]New thread 3066821988 created [06:56:08]Thread 3066965348 joined [06:56:08]Waiting for new connection... [06:56:08] Sock 9.Parse request [06:56:08]Sock 9.Check first char [06:56:08]Sock 9.First char is OK [06:56:08]request: POST /json_proto HTTP/1.0 [06:56:08]Method: POST [06:56:08]URL: /json_proto [06:56:08]Method is POST - this is cgi request [06:56:08]url: /json_proto [06:56:08]query_string will be loaded in cgi processing [06:56:08]execute_cgi json_proto POST (null) [06:56:08]execute_cgi path=json_proto method=POST [06:56:08]POST find Content-Length [06:56:08]Host: 172.17.44.195:8080 [06:56:08]Content-Length: 770 [06:56:08]Content-Type: application/json [06:56:08] [06:56:08]POST finish read [06:56:08]Found Content-Length = 770 [06:56:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962646", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:56:08]execute_script... [06:56:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962646", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:56:08]POST & json_proto [06:56:08]process_json_proto [06:56:08]json parsed OK: [06:56:08]protocol is kg_v1.0 [06:56:08]action value=close_receipt [06:56:08]process_action close_receipt [06:56:08]cmd_close_receipt [06:56:08]MH_GetDate [06:56:08]Write to MH i2c: F0 00 00 0A 23 1C [06:56:08]Write i2c OK [06:56:08]MH_I2C_Read... [06:56:08]Read from MH i2c: F0 [06:56:08]MH_I2C_Read... [06:56:08]Read from MH i2c: F0 09 00 [06:56:08]MH_I2C_Read... [06:56:08]Read from MH i2c: F0 09 00 0A 23 00 8B A9 14 67 82 C9 CF 66 54 [06:56:08]GetLastDocTimeStamp 1729407223 [06:56:08]current date 1729407371 [06:56:08]FM_GetShiftState [06:56:08]SAM_PROTO_GetShiftState [06:56:08]wFMCommunicate request_size=4 [06:56:08]MH_SAM_APDU [06:56:08]CAPDU: 80 13 01 00 [06:56:08]Write to MH i2c: E2 08 00 0B 23 80 13 01 00 00 00 00 00 AB [06:56:08]Write i2c OK [06:56:08]MH_I2C_Read... [06:56:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:56:08]Read from MH i2c: E2 [06:56:08]MH_I2C_Read... [06:56:08]Read from MH i2c: E2 0E 00 [06:56:08]MH_I2C_Read... [06:56:08]Read from MH i2c: E2 0E 00 0B 23 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 C5 [06:56:08]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [06:56:08]wFMCommunicate OK [06:56:08]SAM_PROTO_GetShiftState done [06:56:08]FM_GetShiftState done [06:56:08]opened in 1729383750 [06:56:08]opened+sec_in_day 1729470150 [06:56:08]quantity*price = 150056 [06:56:08]sum+1 = 150058 [06:56:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.57 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 0.00 Безнал.: 1500.57 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 42 20.10.2024 06:56 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 227194 ФПД: 95206742774298 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T065611&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227194&fm=95206742774298&tin=02508201610067®Number=0000000000091685&sum=150057 [06:56:09]StoreToDocumentArchive [06:56:09]shift 533 fd 227194 [06:56:09]save to /storage/0533/doc_00227194 [06:56:09]save last doc name /storage/0533/doc_00227194 to /storage/kkm_last_doc_name [06:56:09]save OK [06:56:09]Clear old archive folders... [06:56:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:56:09]tlvbuf is B6F5B7B0 [06:56:09]SAM_PROTO_ClearQueue [06:56:09]wFMCommunicate request_size=4 [06:56:09]MH_SAM_APDU [06:56:09]CAPDU: 80 09 00 00 [06:56:09]Write to MH i2c: E2 08 00 18 23 80 09 00 00 00 00 00 00 AD [06:56:09]Write i2c OK [06:56:09]MH_I2C_Read... [06:56:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:56:09]Read from MH i2c: E2 [06:56:09]MH_I2C_Read... [06:56:09]Read from MH i2c: E2 03 00 [06:56:09]MH_I2C_Read... [06:56:09]Read from MH i2c: E2 03 00 18 23 00 90 00 AF [06:56:09]RAPDU: 90 00 [06:56:09]wFMCommunicate OK [06:56:09]SAM_PROTO_ClearQueue done [06:56:09]KKMCreateOFDPacket [06:56:09]OFDProtocolAddRootSTLVToBuf [06:56:09]FM_MakeSignedData [06:56:09]FM_MakeSignedData [06:56:09]SAM_PROTO_SignData [06:56:09]wFMCommunicate request_size=4 [06:56:09]MH_SAM_APDU [06:56:09]CAPDU: 80 0D 01 02 [06:56:09]Write to MH i2c: E2 08 00 19 23 80 0D 01 02 00 00 00 00 B5 [06:56:09]Write i2c OK [06:56:09]MH_I2C_Read... [06:56:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:56:09]Read from MH i2c: E2 [06:56:09]MH_I2C_Read... [06:56:09]Read from MH i2c: E2 03 00 [06:56:09]MH_I2C_Read... [06:56:09]Read from MH i2c: E2 03 00 19 23 00 90 00 B0 [06:56:09]RAPDU: 90 00 [06:56:09]wFMCommunicate OK [06:56:09]wFMCommunicate request_size=255 [06:56:09]MH_SAM_APDU [06:56:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 8B A9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7A 77 03 00 35 04 06 00 56 [06:56:09]Write to MH i2c: E2 02 01 1A 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 8B A9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7A 77 03 00 35 04 06 00 56 00 00 43 [06:56:09]Write i2c OK [06:56:09]MH_I2C_Read... [06:56:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:56:09]Read from MH i2c: E2 [06:56:09]MH_I2C_Read... [06:56:09]Read from MH i2c: E2 03 00 [06:56:09]MH_I2C_Read... [06:56:09]Read from MH i2c: E2 03 00 1A 23 00 90 00 B1 [06:56:09]RAPDU: 90 00 [06:56:09]wFMCommunicate OK [06:56:09]wFMCommunicate request_size=10 [06:56:09]MH_SAM_APDU [06:56:09]CAPDU: 80 0D 02 02 05 97 0C 15 52 1A [06:56:09]Write to MH i2c: E2 0D 00 1B 23 80 0D 02 02 05 00 97 0C 15 52 1A 00 00 E6 [06:56:09]Write i2c OK [06:56:09]MH_I2C_Read... [06:56:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:56:09]Read from MH i2c: E2 [06:56:09]MH_I2C_Read... [06:56:09]Read from MH i2c: E2 03 00 [06:56:09]MH_I2C_Read... [06:56:09]Read from MH i2c: E2 03 00 1B 23 00 90 00 B2 [06:56:09]RAPDU: 90 00 [06:56:09]wFMCommunicate OK [06:56:09]wFMCommunicate request_size=4 [06:56:09]MH_SAM_APDU [06:56:09]CAPDU: 80 0D 03 02 [06:56:09]Write to MH i2c: E2 08 00 1C 23 80 0D 03 02 00 00 00 00 BA [06:56:09]Write i2c OK [06:56:09]MH_I2C_Read... [06:56:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:56:09]Read from MH i2c: E2 [06:56:09]MH_I2C_Read... [06:56:09]Read from MH i2c: E2 0B 00 [06:56:09]MH_I2C_Read... [06:56:09]Read from MH i2c: E2 0B 00 1C 23 00 42 31 A9 BC A5 6E 4F CE 90 00 C3 [06:56:09]RAPDU: 42 31 A9 BC A5 6E 4F CE 90 00 [06:56:09]wFMCommunicate OK [06:56:09]SAM_PROTO_SignData done [06:56:09]FM_MakeSignedData done [06:56:09]CreateOFDProtocolMessage [06:56:09]wFMCommunicate request_size=4 [06:56:09]MH_SAM_APDU [06:56:09]CAPDU: 80 11 00 00 [06:56:09]Write to MH i2c: E2 08 00 1D 23 80 11 00 00 00 00 00 00 BA [06:56:10]Write i2c OK [06:56:10]MH_I2C_Read... [06:56:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:56:10]Read from MH i2c: E2 [06:56:10]MH_I2C_Read... [06:56:10]Read from MH i2c: E2 17 00 [06:56:10]MH_I2C_Read... [06:56:10]Read from MH i2c: E2 17 00 1D 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 11 [06:56:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [06:56:10]wFMCommunicate OK [06:56:10]CreateOFDProtocolMessage done [06:56:10]OFDSenderStorePacket 227194 [06:56:10]StoreOFDPacket docnum=227194 [06:56:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 E4 11 07 01 76 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 8B A9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7A 77 03 00 35 04 06 00 56 97 0C 15 52 1A 42 31 A9 BC A5 6E 4F CE [06:56:10]CheckFolder [06:56:10]dirname=/storage/ofd_packets [06:56:10]CheckFolder done [06:56:10]ProducePacketName [06:56:10]name=ofd_packets/00227194 [06:56:10]NVStorageSaveData ofd_packets/00227194 [06:56:10]File name is /storage/ofd_packets/00227194 [06:56:10]Write 301 bytes [06:56:10]NVStorageSaveData done [06:56:10]OFDSenderStorePacket done [06:56:10]KKMCreateOFDPacket done [06:56:10]NVStorageSaveData kkm_last_timestamp [06:56:10]File name is /storage/kkm_last_timestamp [06:56:10]Write 4 bytes [06:56:10]NVStorageSaveData done [06:56:10]ExternCall_PrintAddStr [06:56:10]wPrintStart [06:56:10]Write to MH i2c: 01 00 00 1E 23 41 [06:56:10]Write i2c OK [06:56:10]MH_I2C_Read... [06:56:10]Read from MH i2c: 01 [06:56:10]MH_I2C_Read... [06:56:10]Read from MH i2c: 01 07 00 [06:56:10]MH_I2C_Read... [06:56:10]Read from MH i2c: 01 07 00 1E 23 00 00 00 00 00 FF 0F 56 [06:56:10]RasterBufferAndPrint [06:56:10]line Счет N : (1)1962646 [06:56:10]line ИНН: 02508201610067 [06:56:10]line Контрольно-Кассовый Чек [06:56:10]line ПРОДАЖА [06:56:10]line ТРК (МРК, ГНК) : 43 [06:56:10]line Товар: 2710124130 [06:56:10]line Аи-92-К-5 [06:56:10]line 22.430 * 66.90 [06:56:10]line = 1500.57 [06:56:10]line НДС 12% НСП 1% [06:56:10]line > о реализуемом товаре [06:56:10]line ИТОГО: 1500.57 [06:56:10]line НСП 1% : 13.28 [06:56:10]line НДС 12% : 159.35 [06:56:10]line Наличными: 0.00 [06:56:10]line Безнал.: 1500.57 [06:56:10]line Место: АЗС № 133 "Партнер Нефть" [06:56:10]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [06:56:10]line СНО: Общий режим [06:56:10]line Чек 42 20.10.2024 06:56 [06:56:10]line Смена: 533 ФФД: 1.0 [06:56:10]line ЗНМ: 0300000091 [06:56:10]line РНМ: 0000000000091685 [06:56:10]line Версия ККМ: 001 [06:56:10]line Платежная система: Mbank [06:56:10]line ФМ: 0000000000871839 [06:56:10]line ФД: 227194 [06:56:10]line ФПД: 95206742774298 [06:56:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T065611&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227194&fm=95206742774298&tin=02508201610067®Number=0000000000091685&sum=150057 [06:56:10]written 0, free lines is 4095 [06:56:10]OFD Sender: Processing packet 227194 [packets to send 38, broken 37] [06:56:10]ProducePacketName [06:56:10]name=ofd_packets/00227194 [06:56:10]OFD Sender: To server: pG, [06:56:10]CommunicateWithHost lk.salyk.kg:30040 [06:56:10]ConnectInit lk.salyk.kg [06:56:10]Connected sock=10 [06:56:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 E4 11 07 01 76 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 8B A9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7A 77 03 00 35 04 06 00 56 97 0C 15 52 1A 42 31 A9 BC A5 6E 4F CE [06:56:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 67 98 47 00 CD 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7A 77 03 00 F4 03 04 00 8B 54 14 67 B6 04 01 00 00 19 DE 46 B5 85 E3 47 EF [06:56:10]CommunicateWithHost err = 0 [06:56:10]CheckOFDResponse [06:56:10]1017 (14) - 77093643461234 [06:56:10]1041 (16) - 0000000000871839 [06:56:10]1040 (4) - 227194 [06:56:10]1012 (4) - 20.10.2024 00:53 [06:56:10]1206 (1) - 0 [06:56:10]OFD Sender: Remove packet 227194 [06:56:10]ProducePacketName [06:56:10]name=ofd_packets/00227194 [06:56:10]NVStorageDeleteData [06:56:10]Write to MH i2c: 01 00 00 46 23 69 [06:56:10]Write i2c OK [06:56:10]MH_I2C_Read... [06:56:10]Read from MH i2c: 01 [06:56:10]MH_I2C_Read... [06:56:10]Read from MH i2c: 01 07 00 [06:56:10]MH_I2C_Read... [06:56:10]Read from MH i2c: 01 07 00 46 23 00 00 00 00 00 34 0D B1 [06:56:10]RasterBufferAndPrint [06:56:10]line [06:56:10]line [06:56:10]line [06:56:10]line [06:56:10]line [06:56:10]written 0, free lines is 3387 [06:56:10]process_action close_receipt done [06:56:10]requested_data is exist [06:56:10]produce_requested_data [06:56:10]requested_item fm.sn is exist - process it [06:56:10]wFMCommunicate request_size=4 [06:56:10]MH_SAM_APDU [06:56:10]CAPDU: 80 11 00 00 [06:56:10]Write to MH i2c: E2 08 00 4D 23 80 11 00 00 00 00 00 00 EA [06:56:10]Write i2c OK [06:56:10]MH_I2C_Read... [06:56:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:56:10]Read from MH i2c: E2 [06:56:10]MH_I2C_Read... [06:56:10]Read from MH i2c: E2 17 00 [06:56:10]MH_I2C_Read... [06:56:10]Read from MH i2c: E2 17 00 4D 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 41 [06:56:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [06:56:10]wFMCommunicate OK [06:56:10]requested_item fd.num is exist - process it [06:56:10]SAM_PROTO_GetFieldsCounters [06:56:10]wFMCommunicate request_size=4 [06:56:10]MH_SAM_APDU [06:56:10]CAPDU: 80 13 00 00 [06:56:10]Write to MH i2c: E2 08 00 4E 23 80 13 00 00 00 00 00 00 ED [06:56:10]Write i2c OK [06:56:10]MH_I2C_Read... [06:56:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:56:10]Read from MH i2c: E2 [06:56:10]MH_I2C_Read... [06:56:10]Read from MH i2c: E2 62 00 [06:56:10]MH_I2C_Read... [06:56:10]Read from MH i2c: E2 62 00 4E 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 7A 77 03 00 0E 04 04 00 15 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 9F [06:56: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 7A 77 03 00 0E 04 04 00 15 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 [06:56:10]wFMCommunicate OK [06:56:10]SAM_PROTO_GetFieldsCounters done [06:56:10]requested_item shift.num is exist - process it [06:56:10]requested_item shift.opened is exist - process it [06:56:10]req_shift_opened [06:56:10]FM_GetShiftState [06:56:10]SAM_PROTO_GetShiftState [06:56:10]wFMCommunicate request_size=4 [06:56:10]MH_SAM_APDU [06:56:10]CAPDU: 80 13 01 00 [06:56:10]Write to MH i2c: E2 08 00 4F 23 80 13 01 00 00 00 00 00 EF [06:56:10]Write i2c OK [06:56:10]MH_I2C_Read... [06:56:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:56:10]Read from MH i2c: E2 [06:56:10]MH_I2C_Read... [06:56:10]Read from MH i2c: E2 0E 00 [06:56:10]MH_I2C_Read... [06:56:10]Read from MH i2c: E2 0E 00 4F 23 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 09 [06:56:10]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [06:56:10]wFMCommunicate OK [06:56:10]SAM_PROTO_GetShiftState done [06:56:10]FM_GetShiftState done [06:56:10]req_shift_opened done [06:56:10]requested_item shift.open_date is exist - process it [06:56:10]req_shift_open_date [06:56:10]req_shift_open_date done [06:56:10]produce_requested_data done [06:56:10]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227194,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [06:56:10]process_action_free close_receipt [06:56:10]json_value_free [06:56:10]json_value_free done [06:56:10]process_json_proto returns [06:56:10]Send response to host [06:56:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227194,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [06:56:10]free response buf [06:56:10]execute_script done [06:56:10]execute_script returns [06:56:10]free content buf [06:56:10]Sock 9.Close socket [06:56:10]Sock 9.Thread stoped [06:56:10]OFD Sender: No OFD packet to send [06:56:15]OFD Sender: No OFD packet to send [06:56:20]OFD Sender: No OFD packet to send [06:56:25]OFD Sender: No OFD packet to send [06:56:30]OFD Sender: No OFD packet to send [06:56:35]OFD Sender: No OFD packet to send [06:56:40]OFD Sender: No OFD packet to send [06:56:45]OFD Sender: No OFD packet to send [06:56:50]OFD Sender: No OFD packet to send [06:56:55]OFD Sender: No OFD packet to send [06:57:00]OFD Sender: No OFD packet to send [06:57:05]OFD Sender: No OFD packet to send [06:57:11]OFD Sender: No OFD packet to send [06:57:16]OFD Sender: No OFD packet to send [06:57:21]OFD Sender: No OFD packet to send [06:57:26]OFD Sender: No OFD packet to send [06:57:31]OFD Sender: No OFD packet to send [06:57:36]OFD Sender: No OFD packet to send [06:57:41]OFD Sender: No OFD packet to send [06:57:46]OFD Sender: No OFD packet to send [06:57:51]OFD Sender: No OFD packet to send [06:57:56]OFD Sender: No OFD packet to send [06:58:01]OFD Sender: No OFD packet to send [06:58:06]OFD Sender: No OFD packet to send [06:58:11]OFD Sender: No OFD packet to send [06:58:15]accept exits with 8 [06:58:15]New connection [06:58:15]New thread 3066965348 created [06:58:15]Thread 3066821988 joined [06:58:15]Waiting for new connection... [06:58:15] Sock 8.Parse request [06:58:15]Sock 8.Check first char [06:58:15]Sock 8.First char is OK [06:58:15]request: POST /json_proto HTTP/1.0 [06:58:15]Method: POST [06:58:15]URL: /json_proto [06:58:15]Method is POST - this is cgi request [06:58:15]url: /json_proto [06:58:15]query_string will be loaded in cgi processing [06:58:15]execute_cgi json_proto POST (null) [06:58:15]execute_cgi path=json_proto method=POST [06:58:15]POST find Content-Length [06:58:15]Host: 172.17.44.195:8080 [06:58:15]Content-Length: 770 [06:58:15]Content-Type: application/json [06:58:15] [06:58:15]POST finish read [06:58:15]Found Content-Length = 770 [06:58:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962647", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 24.260, "sum" : 1800.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1800.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:58:15]execute_script... [06:58:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962647", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 24.260, "sum" : 1800.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1800.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:58:15]POST & json_proto [06:58:15]process_json_proto [06:58:15]json parsed OK: [06:58:15]protocol is kg_v1.0 [06:58:15]action value=close_receipt [06:58:15]process_action close_receipt [06:58:15]cmd_close_receipt [06:58:15]MH_GetDate [06:58:15]Write to MH i2c: F0 00 00 50 23 62 [06:58:15]Write i2c OK [06:58:15]MH_I2C_Read... [06:58:15]Read from MH i2c: F0 [06:58:15]MH_I2C_Read... [06:58:15]Read from MH i2c: F0 09 00 [06:58:15]MH_I2C_Read... [06:58:15]Read from MH i2c: F0 09 00 50 23 00 0A AA 14 67 82 C9 CF 66 1A [06:58:15]GetLastDocTimeStamp 1729407371 [06:58:15]current date 1729407498 [06:58:15]FM_GetShiftState [06:58:15]SAM_PROTO_GetShiftState [06:58:15]wFMCommunicate request_size=4 [06:58:15]MH_SAM_APDU [06:58:15]CAPDU: 80 13 01 00 [06:58:15]Write to MH i2c: E2 08 00 51 23 80 13 01 00 00 00 00 00 F1 [06:58:15]Write i2c OK [06:58:15]MH_I2C_Read... [06:58:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:58:15]Read from MH i2c: E2 [06:58:15]MH_I2C_Read... [06:58:15]Read from MH i2c: E2 0E 00 [06:58:15]MH_I2C_Read... [06:58:15]Read from MH i2c: E2 0E 00 51 23 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 0B [06:58:15]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [06:58:15]wFMCommunicate OK [06:58:15]SAM_PROTO_GetShiftState done [06:58:15]FM_GetShiftState done [06:58:15]opened in 1729383750 [06:58:15]opened+sec_in_day 1729470150 [06:58:15]quantity*price = 180009 [06:58:15]sum+1 = 180010 [06:58:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1800.09 НСП 1% : 15.93 НДС 12% : 191.16 Наличными: 0.00 Безнал.: 1800.09 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 43 20.10.2024 06:58 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 227195 ФПД: 171850417426989 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T065818&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227195&fm=171850417426989&tin=02508201610067®Number=0000000000091685&sum=180009 [06:58:16]StoreToDocumentArchive [06:58:16]shift 533 fd 227195 [06:58:16]save to /storage/0533/doc_00227195 [06:58:16]save last doc name /storage/0533/doc_00227195 to /storage/kkm_last_doc_name [06:58:16]save OK [06:58:16]Clear old archive folders... [06:58:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:58:16]tlvbuf is 00553BD0 [06:58:16]SAM_PROTO_ClearQueue [06:58:16]wFMCommunicate request_size=4 [06:58:16]MH_SAM_APDU [06:58:16]CAPDU: 80 09 00 00 [06:58:16]Write to MH i2c: E2 08 00 5E 23 80 09 00 00 00 00 00 00 F3 [06:58:16]Write i2c OK [06:58:16]MH_I2C_Read... [06:58:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:58:16]Read from MH i2c: E2 [06:58:16]MH_I2C_Read... [06:58:16]Read from MH i2c: E2 03 00 [06:58:16]MH_I2C_Read... [06:58:16]Read from MH i2c: E2 03 00 5E 23 00 90 00 F5 [06:58:16]RAPDU: 90 00 [06:58:16]wFMCommunicate OK [06:58:16]SAM_PROTO_ClearQueue done [06:58:16]KKMCreateOFDPacket [06:58:16]OFDProtocolAddRootSTLVToBuf [06:58:16]FM_MakeSignedData [06:58:16]FM_MakeSignedData [06:58:16]SAM_PROTO_SignData [06:58:16]wFMCommunicate request_size=4 [06:58:16]MH_SAM_APDU [06:58:16]CAPDU: 80 0D 01 02 [06:58:16]Write to MH i2c: E2 08 00 5F 23 80 0D 01 02 00 00 00 00 FB [06:58:16]Write i2c OK [06:58:16]MH_I2C_Read... [06:58:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:58:16]Read from MH i2c: E2 [06:58:16]MH_I2C_Read... [06:58:16]Read from MH i2c: E2 03 00 [06:58:16]MH_I2C_Read... [06:58:16]Read from MH i2c: E2 03 00 5F 23 00 90 00 F6 [06:58:16]RAPDU: 90 00 [06:58:16]wFMCommunicate OK [06:58:16]wFMCommunicate request_size=255 [06:58:16]MH_SAM_APDU [06:58: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 C4 5E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 29 BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 0A AA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7B 77 03 00 35 04 06 00 9C [06:58:16]Write to MH i2c: E2 02 01 60 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C4 5E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 29 BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 0A AA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7B 77 03 00 35 04 06 00 9C 00 00 40 [06:58:16]Write i2c OK [06:58:16]MH_I2C_Read... [06:58:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:58:16]Read from MH i2c: E2 [06:58:16]MH_I2C_Read... [06:58:16]Read from MH i2c: E2 03 00 [06:58:16]MH_I2C_Read... [06:58:16]Read from MH i2c: E2 03 00 60 23 00 90 00 F7 [06:58:16]RAPDU: 90 00 [06:58:16]wFMCommunicate OK [06:58:16]wFMCommunicate request_size=10 [06:58:16]MH_SAM_APDU [06:58:16]CAPDU: 80 0D 02 02 05 4C 0B 15 D2 2D [06:58:16]Write to MH i2c: E2 0D 00 61 23 80 0D 02 02 05 00 4C 0B 15 D2 2D 00 00 73 [06:58:16]Write i2c OK [06:58:16]MH_I2C_Read... [06:58:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:58:16]Read from MH i2c: E2 [06:58:16]MH_I2C_Read... [06:58:16]Read from MH i2c: E2 03 00 [06:58:16]MH_I2C_Read... [06:58:16]Read from MH i2c: E2 03 00 61 23 00 90 00 F8 [06:58:16]RAPDU: 90 00 [06:58:16]wFMCommunicate OK [06:58:16]wFMCommunicate request_size=4 [06:58:16]MH_SAM_APDU [06:58:16]CAPDU: 80 0D 03 02 [06:58:16]Write to MH i2c: E2 08 00 62 23 80 0D 03 02 00 00 00 00 00 [06:58:16]Write i2c OK [06:58:16]MH_I2C_Read... [06:58:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:58:17]Read from MH i2c: E2 [06:58:17]MH_I2C_Read... [06:58:17]Read from MH i2c: E2 0B 00 [06:58:17]MH_I2C_Read... [06:58:17]Read from MH i2c: E2 0B 00 62 23 00 E1 A1 1D E5 D1 67 98 0C 90 00 61 [06:58:17]RAPDU: E1 A1 1D E5 D1 67 98 0C 90 00 [06:58:17]wFMCommunicate OK [06:58:17]SAM_PROTO_SignData done [06:58:17]FM_MakeSignedData done [06:58:17]CreateOFDProtocolMessage [06:58:17]wFMCommunicate request_size=4 [06:58:17]MH_SAM_APDU [06:58:17]CAPDU: 80 11 00 00 [06:58:17]Write to MH i2c: E2 08 00 63 23 80 11 00 00 00 00 00 00 00 [06:58:17]Write i2c OK [06:58:17]MH_I2C_Read... [06:58:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:58:17]Read from MH i2c: E2 [06:58:17]MH_I2C_Read... [06:58:17]Read from MH i2c: E2 17 00 [06:58:17]MH_I2C_Read... [06:58:17]Read from MH i2c: E2 17 00 63 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 57 [06:58:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [06:58:17]wFMCommunicate OK [06:58:17]CreateOFDProtocolMessage done [06:58:17]OFDSenderStorePacket 227195 [06:58:17]StoreOFDPacket docnum=227195 [06:58:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 8C F2 07 01 1F ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C4 5E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 29 BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 0A AA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7B 77 03 00 35 04 06 00 9C 4C 0B 15 D2 2D E1 A1 1D E5 D1 67 98 0C [06:58:17]CheckFolder [06:58:17]dirname=/storage/ofd_packets [06:58:17]CheckFolder done [06:58:17]ProducePacketName [06:58:17]name=ofd_packets/00227195 [06:58:17]NVStorageSaveData ofd_packets/00227195 [06:58:17]File name is /storage/ofd_packets/00227195 [06:58:17]Write 301 bytes [06:58:17]NVStorageSaveData done [06:58:17]OFDSenderStorePacket done [06:58:17]KKMCreateOFDPacket done [06:58:17]NVStorageSaveData kkm_last_timestamp [06:58:17]File name is /storage/kkm_last_timestamp [06:58:17]Write 4 bytes [06:58:17]OFD Sender: Processing packet 227195 [packets to send 38, broken 37] [06:58:17]ProducePacketName [06:58:17]name=ofd_packets/00227195 [06:58:17]OFD Sender: To server: pG, [06:58:17]CommunicateWithHost lk.salyk.kg:30040 [06:58:17]ConnectInit lk.salyk.kg [06:58:17]NVStorageSaveData done [06:58:17]ExternCall_PrintAddStr [06:58:17]wPrintStart [06:58:17]Write to MH i2c: 01 00 00 64 23 87 [06:58:17]Write i2c OK [06:58:17]MH_I2C_Read... [06:58:17]Read from MH i2c: 01 [06:58:17]MH_I2C_Read... [06:58:17]Read from MH i2c: 01 07 00 [06:58:17]MH_I2C_Read... [06:58:17]Read from MH i2c: 01 07 00 64 23 00 00 00 00 00 FF 0F 9C [06:58:17]RasterBufferAndPrint [06:58:17]line Счет N : (1)1962647 [06:58:17]line ИНН: 02508201610067 [06:58:17]line Контрольно-Кассовый Чек [06:58:17]line ПРОДАЖА [06:58:17]line ТРК (МРК, ГНК) : 34 [06:58:17]line Товар: 2710124500 [06:58:17]line Аи-95-К-5 [06:58:17]line 24.260 * 74.20 [06:58:17]line = 1800.09 [06:58:17]line НДС 12% НСП 1% [06:58:17]line > о реализуемом товаре [06:58:17]line ИТОГО: 1800.09 [06:58:17]line НСП 1% : 15.93 [06:58:17]line НДС 12% : 191.16 [06:58:17]line Наличными: 0.00 [06:58:17]line Безнал.: 1800.09 [06:58:17]line Место: АЗС № 133 "Партнер Нефть" [06:58:17]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [06:58:17]line СНО: Общий режим [06:58:17]line Чек 43 20.10.2024 06:58 [06:58:17]line Смена: 533 ФФД: 1.0 [06:58:17]line ЗНМ: 0300000091 [06:58:17]line РНМ: 0000000000091685 [06:58:17]line Версия ККМ: 001 [06:58:17]line Платежная система: Mbank [06:58:17]line ФМ: 0000000000871839 [06:58:17]line ФД: 227195 [06:58:17]line ФПД: 171850417426989 [06:58:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T065818&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227195&fm=171850417426989&tin=02508201610067®Number=0000000000091685&sum=180009 [06:58:17]Connected sock=10 [06:58:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 8C F2 07 01 1F ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C4 5E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 29 BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 0A AA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7B 77 03 00 35 04 06 00 9C 4C 0B 15 D2 2D E1 A1 1D E5 D1 67 98 0C [06:58:17]written 0, free lines is 4095 [06:58: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 33 39 4F 00 00 00 46 10 47 00 35 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 33 39 10 04 04 00 7B 77 03 00 F4 03 04 00 0A 55 14 67 B6 04 01 00 00 8D 48 14 01 31 2C 62 05 [06:58:17]CommunicateWithHost err = 0 [06:58:17]CheckOFDResponse [06:58:17]1017 (14) - 77093643461234 [06:58:17]1041 (16) - 0000000000871839 [06:58:17]1040 (4) - 227195 [06:58:17]1012 (4) - 20.10.2024 00:55 [06:58:17]1206 (1) - 0 [06:58:17]OFD Sender: Remove packet 227195 [06:58:17]ProducePacketName [06:58:17]name=ofd_packets/00227195 [06:58:17]NVStorageDeleteData [06:58:17]Write to MH i2c: 01 00 00 8C 23 AF [06:58:17]Write i2c OK [06:58:17]MH_I2C_Read... [06:58:17]Read from MH i2c: 01 [06:58:17]MH_I2C_Read... [06:58:17]Read from MH i2c: 01 07 00 [06:58:17]MH_I2C_Read... [06:58:17]Read from MH i2c: 01 07 00 8C 23 00 00 00 00 00 47 0D 0A [06:58:17]RasterBufferAndPrint [06:58:17]line [06:58:17]line [06:58:17]line [06:58:17]line [06:58:17]line [06:58:17]written 0, free lines is 3405 [06:58:17]process_action close_receipt done [06:58:17]requested_data is exist [06:58:17]produce_requested_data [06:58:17]requested_item fm.sn is exist - process it [06:58:17]wFMCommunicate request_size=4 [06:58:17]MH_SAM_APDU [06:58:17]CAPDU: 80 11 00 00 [06:58:17]Write to MH i2c: E2 08 00 93 23 80 11 00 00 00 00 00 00 30 [06:58:17]Write i2c OK [06:58:17]MH_I2C_Read... [06:58:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:58:17]Read from MH i2c: E2 [06:58:17]MH_I2C_Read... [06:58:17]Read from MH i2c: E2 17 00 [06:58:17]MH_I2C_Read... [06:58:17]Read from MH i2c: E2 17 00 93 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 87 [06:58:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [06:58:17]wFMCommunicate OK [06:58:17]requested_item fd.num is exist - process it [06:58:17]SAM_PROTO_GetFieldsCounters [06:58:17]wFMCommunicate request_size=4 [06:58:17]MH_SAM_APDU [06:58:17]CAPDU: 80 13 00 00 [06:58:17]Write to MH i2c: E2 08 00 94 23 80 13 00 00 00 00 00 00 33 [06:58:17]Write i2c OK [06:58:17]MH_I2C_Read... [06:58:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:58:18]Read from MH i2c: E2 [06:58:18]MH_I2C_Read... [06:58:18]Read from MH i2c: E2 62 00 [06:58:18]MH_I2C_Read... [06:58:18]OFD Sender: No OFD packet to send [06:58:18]Read from MH i2c: E2 62 00 94 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 7B 77 03 00 0E 04 04 00 15 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 E9 [06:58: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 7B 77 03 00 0E 04 04 00 15 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 [06:58:18]wFMCommunicate OK [06:58:18]SAM_PROTO_GetFieldsCounters done [06:58:18]requested_item shift.num is exist - process it [06:58:18]requested_item shift.opened is exist - process it [06:58:18]req_shift_opened [06:58:18]FM_GetShiftState [06:58:18]SAM_PROTO_GetShiftState [06:58:18]wFMCommunicate request_size=4 [06:58:18]MH_SAM_APDU [06:58:18]CAPDU: 80 13 01 00 [06:58:18]Write to MH i2c: E2 08 00 95 23 80 13 01 00 00 00 00 00 35 [06:58:18]Write i2c OK [06:58:18]MH_I2C_Read... [06:58:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:58:18]Read from MH i2c: E2 [06:58:18]MH_I2C_Read... [06:58:18]Read from MH i2c: E2 0E 00 [06:58:18]MH_I2C_Read... [06:58:18]Read from MH i2c: E2 0E 00 95 23 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 4F [06:58:18]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [06:58:18]wFMCommunicate OK [06:58:18]SAM_PROTO_GetShiftState done [06:58:18]FM_GetShiftState done [06:58:18]req_shift_opened done [06:58:18]requested_item shift.open_date is exist - process it [06:58:18]req_shift_open_date [06:58:18]req_shift_open_date done [06:58:18]produce_requested_data done [06:58:18]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227195,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [06:58:18]process_action_free close_receipt [06:58:18]json_value_free [06:58:18]json_value_free done [06:58:18]process_json_proto returns [06:58:18]Send response to host [06:58:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227195,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [06:58:18]free response buf [06:58:18]execute_script done [06:58:18]execute_script returns [06:58:18]free content buf [06:58:18]Sock 8.Close socket [06:58:18]Sock 8.Thread stoped [06:58:23]OFD Sender: No OFD packet to send [06:58:28]OFD Sender: No OFD packet to send [06:58:33]OFD Sender: No OFD packet to send [06:58:38]OFD Sender: No OFD packet to send [06:58:43]OFD Sender: No OFD packet to send [06:58:48]OFD Sender: No OFD packet to send [06:58:53]OFD Sender: No OFD packet to send [06:58:58]OFD Sender: No OFD packet to send [06:59:00]accept exits with 9 [06:59:00]New connection [06:59:00]New thread 3066821988 created [06:59:00]Thread 3066965348 joined [06:59:00]Waiting for new connection... [06:59:00] Sock 9.Parse request [06:59:00]Sock 9.Check first char [06:59:00]Sock 9.First char is OK [06:59:00]request: POST /json_proto HTTP/1.0 [06:59:00]Method: POST [06:59:00]URL: /json_proto [06:59:00]Method is POST - this is cgi request [06:59:00]url: /json_proto [06:59:00]query_string will be loaded in cgi processing [06:59:00]execute_cgi json_proto POST (null) [06:59:00]execute_cgi path=json_proto method=POST [06:59:00]POST find Content-Length [06:59:00]Host: 172.17.44.195:8080 [06:59:00]Content-Length: 683 [06:59:00]Content-Type: application/json [06:59:00] [06:59:00]POST finish read [06:59:00]Found Content-Length = 683 [06:59:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962648", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:59:00]execute_script... [06:59:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962648", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:59:00]POST & json_proto [06:59:00]process_json_proto [06:59:00]json parsed OK: [06:59:00]protocol is kg_v1.0 [06:59:00]action value=close_receipt [06:59:00]process_action close_receipt [06:59:00]cmd_close_receipt [06:59:00]MH_GetDate [06:59:00]Write to MH i2c: F0 00 00 96 23 A8 [06:59:00]Write i2c OK [06:59:00]MH_I2C_Read... [06:59:00]Read from MH i2c: F0 [06:59:00]MH_I2C_Read... [06:59:00]Read from MH i2c: F0 09 00 [06:59:00]MH_I2C_Read... [06:59:00]Read from MH i2c: F0 09 00 96 23 00 37 AA 14 67 82 C9 CF 66 8D [06:59:00]GetLastDocTimeStamp 1729407498 [06:59:00]current date 1729407543 [06:59:00]FM_GetShiftState [06:59:00]SAM_PROTO_GetShiftState [06:59:00]wFMCommunicate request_size=4 [06:59:00]MH_SAM_APDU [06:59:00]CAPDU: 80 13 01 00 [06:59:00]Write to MH i2c: E2 08 00 97 23 80 13 01 00 00 00 00 00 37 [06:59:00]Write i2c OK [06:59:00]MH_I2C_Read... [06:59:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:59:00]Read from MH i2c: E2 [06:59:00]MH_I2C_Read... [06:59:00]Read from MH i2c: E2 0E 00 [06:59:00]MH_I2C_Read... [06:59:00]Read from MH i2c: E2 0E 00 97 23 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 51 [06:59:00]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [06:59:00]wFMCommunicate OK [06:59:00]SAM_PROTO_GetShiftState done [06:59:00]FM_GetShiftState done [06:59:00]opened in 1729383750 [06:59:00]opened+sec_in_day 1729470150 [06:59:00]quantity*price = 200043 [06:59:00]sum+1 = 200044 [06:59:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 44 20.10.2024 06:59 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227196 ФПД: 21966707428998 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T065903&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227196&fm=21966707428998&tin=02508201610067®Number=0000000000091685&sum=200000 [06:59:01]StoreToDocumentArchive [06:59:01]shift 533 fd 227196 [06:59:01]save to /storage/0533/doc_00227196 [06:59:01]save last doc name /storage/0533/doc_00227196 to /storage/kkm_last_doc_name [06:59:01]save OK [06:59:01]Clear old archive folders... [06:59:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:59:01]tlvbuf is B6EDD770 [06:59:01]SAM_PROTO_ClearQueue [06:59:01]wFMCommunicate request_size=4 [06:59:01]MH_SAM_APDU [06:59:01]CAPDU: 80 09 00 00 [06:59:01]Write to MH i2c: E2 08 00 A4 23 80 09 00 00 00 00 00 00 39 [06:59:01]Write i2c OK [06:59:01]MH_I2C_Read... [06:59:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:59:01]Read from MH i2c: E2 [06:59:01]MH_I2C_Read... [06:59:01]Read from MH i2c: E2 03 00 [06:59:01]MH_I2C_Read... [06:59:01]Read from MH i2c: E2 03 00 A4 23 00 90 00 3B [06:59:01]RAPDU: 90 00 [06:59:01]wFMCommunicate OK [06:59:01]SAM_PROTO_ClearQueue done [06:59:01]KKMCreateOFDPacket [06:59:01]OFDProtocolAddRootSTLVToBuf [06:59:01]FM_MakeSignedData [06:59:01]FM_MakeSignedData [06:59:01]SAM_PROTO_SignData [06:59:01]wFMCommunicate request_size=4 [06:59:01]MH_SAM_APDU [06:59:01]CAPDU: 80 0D 01 02 [06:59:01]Write to MH i2c: E2 08 00 A5 23 80 0D 01 02 00 00 00 00 41 [06:59:01]Write i2c OK [06:59:01]MH_I2C_Read... [06:59:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:59:01]Read from MH i2c: E2 [06:59:01]MH_I2C_Read... [06:59:01]Read from MH i2c: E2 03 00 [06:59:01]MH_I2C_Read... [06:59:01]Read from MH i2c: E2 03 00 A5 23 00 90 00 3C [06:59:01]RAPDU: 90 00 [06:59:01]wFMCommunicate OK [06:59:01]wFMCommunicate request_size=255 [06:59:01]MH_SAM_APDU [06:59: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 37 AA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7C 77 03 00 35 04 06 00 13 [06:59:01]Write to MH i2c: E2 02 01 A6 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 37 AA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7C 77 03 00 35 04 06 00 13 00 00 28 [06:59:01]Write i2c OK [06:59:01]MH_I2C_Read... [06:59:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:59:01]Read from MH i2c: E2 [06:59:01]MH_I2C_Read... [06:59:01]Read from MH i2c: E2 03 00 [06:59:01]MH_I2C_Read... [06:59:01]Read from MH i2c: E2 03 00 A6 23 00 90 00 3D [06:59:01]RAPDU: 90 00 [06:59:01]wFMCommunicate OK [06:59:01]wFMCommunicate request_size=10 [06:59:01]MH_SAM_APDU [06:59:01]CAPDU: 80 0D 02 02 05 FA 85 CB 0E 86 [06:59:01]Write to MH i2c: E2 0D 00 A7 23 80 0D 02 02 05 00 FA 85 CB 0E 86 00 00 2C [06:59:01]Write i2c OK [06:59:01]MH_I2C_Read... [06:59:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:59:01]Read from MH i2c: E2 [06:59:01]MH_I2C_Read... [06:59:01]Read from MH i2c: E2 03 00 [06:59:01]MH_I2C_Read... [06:59:01]Read from MH i2c: E2 03 00 A7 23 00 90 00 3E [06:59:01]RAPDU: 90 00 [06:59:01]wFMCommunicate OK [06:59:01]wFMCommunicate request_size=4 [06:59:01]MH_SAM_APDU [06:59:01]CAPDU: 80 0D 03 02 [06:59:01]Write to MH i2c: E2 08 00 A8 23 80 0D 03 02 00 00 00 00 46 [06:59:01]Write i2c OK [06:59:01]MH_I2C_Read... [06:59:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:59:01]Read from MH i2c: E2 [06:59:01]MH_I2C_Read... [06:59:01]Read from MH i2c: E2 0B 00 [06:59:01]MH_I2C_Read... [06:59:01]Read from MH i2c: E2 0B 00 A8 23 00 DA DA 3C 70 7C 71 A7 77 90 00 B2 [06:59:01]RAPDU: DA DA 3C 70 7C 71 A7 77 90 00 [06:59:01]wFMCommunicate OK [06:59:01]SAM_PROTO_SignData done [06:59:01]FM_MakeSignedData done [06:59:01]CreateOFDProtocolMessage [06:59:01]wFMCommunicate request_size=4 [06:59:01]MH_SAM_APDU [06:59:01]CAPDU: 80 11 00 00 [06:59:01]Write to MH i2c: E2 08 00 A9 23 80 11 00 00 00 00 00 00 46 [06:59:01]Write i2c OK [06:59:01]MH_I2C_Read... [06:59:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:59:01]Read from MH i2c: E2 [06:59:01]MH_I2C_Read... [06:59:01]Read from MH i2c: E2 17 00 [06:59:01]MH_I2C_Read... [06:59:01]Read from MH i2c: E2 17 00 A9 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 9D [06:59:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [06:59:01]wFMCommunicate OK [06:59:01]CreateOFDProtocolMessage done [06:59:01]OFDSenderStorePacket 227196 [06:59:01]StoreOFDPacket docnum=227196 [06:59:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 0C B2 07 01 74 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 37 AA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7C 77 03 00 35 04 06 00 13 FA 85 CB 0E 86 DA DA 3C 70 7C 71 A7 77 [06:59:01]CheckFolder [06:59:01]dirname=/storage/ofd_packets [06:59:01]CheckFolder done [06:59:01]ProducePacketName [06:59:01]name=ofd_packets/00227196 [06:59:01]NVStorageSaveData ofd_packets/00227196 [06:59:01]File name is /storage/ofd_packets/00227196 [06:59:01]Write 301 bytes [06:59:01]NVStorageSaveData done [06:59:01]OFDSenderStorePacket done [06:59:01]KKMCreateOFDPacket done [06:59:01]NVStorageSaveData kkm_last_timestamp [06:59:01]File name is /storage/kkm_last_timestamp [06:59:01]Write 4 bytes [06:59:01]OFD Sender: Processing packet 227196 [packets to send 38, broken 37] [06:59:01]ProducePacketName [06:59:01]name=ofd_packets/00227196 [06:59:01]OFD Sender: To server: pG, [06:59:01]CommunicateWithHost lk.salyk.kg:30040 [06:59:01]ConnectInit lk.salyk.kg [06:59:01]NVStorageSaveData done [06:59:01]ExternCall_PrintAddStr [06:59:01]wPrintStart [06:59:01]Write to MH i2c: 01 00 00 AA 23 CD [06:59:01]Write i2c OK [06:59:01]MH_I2C_Read... [06:59:01]Read from MH i2c: 01 [06:59:01]MH_I2C_Read... [06:59:01]Read from MH i2c: 01 07 00 [06:59:01]MH_I2C_Read... [06:59:01]Read from MH i2c: 01 07 00 AA 23 00 00 00 00 00 FF 0F E2 [06:59:01]RasterBufferAndPrint [06:59:01]line Счет N : (1)1962648 [06:59:01]line ИНН: 02508201610067 [06:59:01]line Контрольно-Кассовый Чек [06:59:01]line ПРОДАЖА [06:59:01]line ТРК (МРК, ГНК) : 54 [06:59:01]line Товар: 2710124500 [06:59:01]line Аи-95-К-5 [06:59:01]line 26.960 * 74.20 [06:59:01]line = 2000.43 [06:59:01]line НДС 12% НСП 1% [06:59:01]line > о реализуемом товаре [06:59:01]line ОКРУГЛЕНИЕ: -0.43 [06:59:01]line ИТОГО: 2000.00 [06:59:01]line Внесено: 2000.00 [06:59:01]line СДАЧА: 0.00 [06:59:01]line НСП 1% : 17.70 [06:59:01]line НДС 12% : 212.43 [06:59:01]line Наличными: 2000.00 [06:59:01]line Безнал.: 0.00 [06:59:01]line Место: АЗС № 133 "Партнер Нефть" [06:59:01]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [06:59:01]line СНО: Общий режим [06:59:01]line Чек 44 20.10.2024 06:59 [06:59:01]line Смена: 533 ФФД: 1.0 [06:59:01]line ЗНМ: 0300000091 [06:59:01]line РНМ: 0000000000091685 [06:59:01]line Версия ККМ: 001 [06:59:01]line ФМ: 0000000000871839 [06:59:01]line ФД: 227196 [06:59:01]line ФПД: 21966707428998 [06:59:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T065903&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227196&fm=21966707428998&tin=02508201610067®Number=0000000000091685&sum=200000 [06:59:02]Connected sock=11 [06:59:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 0C B2 07 01 74 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 37 AA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7C 77 03 00 35 04 06 00 13 FA 85 CB 0E 86 DA DA 3C 70 7C 71 A7 77 [06:59:02]written 0, free lines is 4095 [06:59: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 33 39 4F 00 00 00 0E 70 47 00 E7 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 33 39 10 04 04 00 7C 77 03 00 F4 03 04 00 37 55 14 67 B6 04 01 00 00 46 84 AF 21 A1 C5 A3 21 [06:59:02]CommunicateWithHost err = 0 [06:59:02]CheckOFDResponse [06:59:02]1017 (14) - 77093643461234 [06:59:02]1041 (16) - 0000000000871839 [06:59:02]1040 (4) - 227196 [06:59:02]1012 (4) - 20.10.2024 00:56 [06:59:02]1206 (1) - 0 [06:59:02]OFD Sender: Remove packet 227196 [06:59:02]ProducePacketName [06:59:02]name=ofd_packets/00227196 [06:59:02]NVStorageDeleteData [06:59:02]Write to MH i2c: 01 00 00 D4 23 F7 [06:59:02]Write i2c OK [06:59:02]MH_I2C_Read... [06:59:02]Read from MH i2c: 01 [06:59:02]MH_I2C_Read... [06:59:02]Read from MH i2c: 01 07 00 [06:59:02]MH_I2C_Read... [06:59:02]Read from MH i2c: 01 07 00 D4 23 00 00 00 00 00 11 0D 1C [06:59:02]RasterBufferAndPrint [06:59:02]line [06:59:02]line [06:59:02]line [06:59:02]line [06:59:02]line [06:59:02]written 0, free lines is 3354 [06:59:02]process_action close_receipt done [06:59:02]requested_data is exist [06:59:02]produce_requested_data [06:59:02]requested_item fm.sn is exist - process it [06:59:02]wFMCommunicate request_size=4 [06:59:02]MH_SAM_APDU [06:59:02]CAPDU: 80 11 00 00 [06:59:02]Write to MH i2c: E2 08 00 DB 23 80 11 00 00 00 00 00 00 78 [06:59:02]Write i2c OK [06:59:02]MH_I2C_Read... [06:59:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:59:02]Read from MH i2c: E2 [06:59:02]MH_I2C_Read... [06:59:02]Read from MH i2c: E2 17 00 [06:59:02]MH_I2C_Read... [06:59:02]Read from MH i2c: E2 17 00 DB 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 CF [06:59:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [06:59:02]wFMCommunicate OK [06:59:02]requested_item fd.num is exist - process it [06:59:02]SAM_PROTO_GetFieldsCounters [06:59:02]wFMCommunicate request_size=4 [06:59:02]MH_SAM_APDU [06:59:02]CAPDU: 80 13 00 00 [06:59:02]Write to MH i2c: E2 08 00 DC 23 80 13 00 00 00 00 00 00 7B [06:59:02]Write i2c OK [06:59:02]MH_I2C_Read... [06:59:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:59:02]Read from MH i2c: E2 [06:59:02]MH_I2C_Read... [06:59:02]Read from MH i2c: E2 62 00 [06:59:02]MH_I2C_Read... [06:59:02]Read from MH i2c: E2 62 00 DC 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 7C 77 03 00 0E 04 04 00 15 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 35 [06:59:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 7C 77 03 00 0E 04 04 00 15 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 [06:59:02]wFMCommunicate OK [06:59:02]SAM_PROTO_GetFieldsCounters done [06:59:02]requested_item shift.num is exist - process it [06:59:02]requested_item shift.opened is exist - process it [06:59:02]req_shift_opened [06:59:02]FM_GetShiftState [06:59:02]SAM_PROTO_GetShiftState [06:59:02]wFMCommunicate request_size=4 [06:59:02]MH_SAM_APDU [06:59:02]CAPDU: 80 13 01 00 [06:59:02]Write to MH i2c: E2 08 00 DD 23 80 13 01 00 00 00 00 00 7D [06:59:02]OFD Sender: No OFD packet to send [06:59:02]Write i2c OK [06:59:02]MH_I2C_Read... [06:59:02]Read from MH i2c: E2 [06:59:02]MH_I2C_Read... [06:59:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:59:02]Read from MH i2c: E2 0E 00 [06:59:02]MH_I2C_Read... [06:59:02]Read from MH i2c: E2 0E 00 DD 23 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 97 [06:59:02]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [06:59:02]wFMCommunicate OK [06:59:02]SAM_PROTO_GetShiftState done [06:59:02]FM_GetShiftState done [06:59:02]req_shift_opened done [06:59:02]requested_item shift.open_date is exist - process it [06:59:02]req_shift_open_date [06:59:02]req_shift_open_date done [06:59:02]produce_requested_data done [06:59:02]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227196,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [06:59:02]process_action_free close_receipt [06:59:02]json_value_free [06:59:02]json_value_free done [06:59:02]process_json_proto returns [06:59:02]Send response to host [06:59:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227196,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [06:59:02]free response buf [06:59:02]execute_script done [06:59:02]execute_script returns [06:59:02]free content buf [06:59:02]Sock 9.Close socket [06:59:02]Sock 9.Thread stoped [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:18]OFD Sender: No OFD packet to send [07:01:23]OFD Sender: No OFD packet to send [07:01:28]OFD Sender: No OFD packet to send [07:01:33]OFD Sender: No OFD packet to send [07:01:38]OFD Sender: No OFD packet to send [07:01:43]OFD Sender: No OFD packet to send [07:01:48]OFD Sender: No OFD packet to send [07:01:53]OFD Sender: No OFD packet to send [07:01:58]OFD Sender: No OFD packet to send [07:02:03]OFD Sender: No OFD packet to send [07:02:08]OFD Sender: No OFD packet to send [07:02:13]OFD Sender: No OFD packet to send [07:02:18]OFD Sender: No OFD packet to send [07:02:23]OFD Sender: No OFD packet to send [07:02:28]OFD Sender: No OFD packet to send [07:02:33]OFD Sender: No OFD packet to send [07:02:38]OFD Sender: No OFD packet to send [07:02:43]OFD Sender: No OFD packet to send [07:02:48]OFD Sender: No OFD packet to send [07:02:53]OFD Sender: No OFD packet to send [07:02:58]OFD Sender: No OFD packet to send [07:03:03]OFD Sender: No OFD packet to send [07:03:08]OFD Sender: No OFD packet to send [07:03:13]OFD Sender: No OFD packet to send [07:03:18]OFD Sender: No OFD packet to send [07:03:23]OFD Sender: No OFD packet to send [07:03:23]accept exits with 8 [07:03:23]New connection [07:03:23]New thread 3066965348 created [07:03:23]Thread 3066821988 joined [07:03:23]Waiting for new connection... [07:03:23] Sock 8.Parse request [07:03:23]Sock 8.Check first char [07:03:23]Sock 8.First char is OK [07:03:23]request: POST /json_proto HTTP/1.0 [07:03:23]Method: POST [07:03:23]URL: /json_proto [07:03:23]Method is POST - this is cgi request [07:03:23]url: /json_proto [07:03:23]query_string will be loaded in cgi processing [07:03:23]execute_cgi json_proto POST (null) [07:03:23]execute_cgi path=json_proto method=POST [07:03:23]POST find Content-Length [07:03:23]Host: 172.17.44.195:8080 [07:03:23]Content-Length: 679 [07:03:23]Content-Type: application/json [07:03:23] [07:03:23]POST finish read [07:03:23]Found Content-Length = 679 [07:03:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962650", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.020, "sum" : 670.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:03:23]execute_script... [07:03: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)1962650", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.020, "sum" : 670.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:03:23]POST & json_proto [07:03:23]process_json_proto [07:03:23]json parsed OK: [07:03:23]protocol is kg_v1.0 [07:03:23]action value=close_receipt [07:03:23]process_action close_receipt [07:03:23]cmd_close_receipt [07:03:23]MH_GetDate [07:03:23]Write to MH i2c: F0 00 00 DE 23 F0 [07:03:23]Write i2c OK [07:03:23]MH_I2C_Read... [07:03:23]Read from MH i2c: F0 [07:03:23]MH_I2C_Read... [07:03:23]Read from MH i2c: F0 09 00 [07:03:23]MH_I2C_Read... [07:03:23]Read from MH i2c: F0 09 00 DE 23 00 3F AB 14 67 82 C9 CF 66 DE [07:03:23]GetLastDocTimeStamp 1729407543 [07:03:23]current date 1729407807 [07:03:23]FM_GetShiftState [07:03:23]SAM_PROTO_GetShiftState [07:03:23]wFMCommunicate request_size=4 [07:03:23]MH_SAM_APDU [07:03:23]CAPDU: 80 13 01 00 [07:03:23]Write to MH i2c: E2 08 00 DF 23 80 13 01 00 00 00 00 00 7F [07:03:23]Write i2c OK [07:03:23]MH_I2C_Read... [07:03:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:03:23]Read from MH i2c: E2 [07:03:23]MH_I2C_Read... [07:03:23]Read from MH i2c: E2 0E 00 [07:03:23]MH_I2C_Read... [07:03:23]Read from MH i2c: E2 0E 00 DF 23 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 99 [07:03:23]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [07:03:23]wFMCommunicate OK [07:03:23]SAM_PROTO_GetShiftState done [07:03:23]FM_GetShiftState done [07:03:23]opened in 1729383750 [07:03:23]opened+sec_in_day 1729470150 [07:03:23]quantity*price = 67033 [07:03:23]sum+1 = 67035 [07:03:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 670.00 Внесено: 670.00 СДАЧА: 0.00 НСП 1% : 5.93 НДС 12% : 71.19 Наличными: 670.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 45 20.10.2024 07:03 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227197 ФПД: 153727055407217 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T070327&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227197&fm=153727055407217&tin=02508201610067®Number=0000000000091685&sum=67000 [07:03:25]StoreToDocumentArchive [07:03:25]shift 533 fd 227197 [07:03:25]save to /storage/0533/doc_00227197 [07:03:25]save last doc name /storage/0533/doc_00227197 to /storage/kkm_last_doc_name [07:03:25]save OK [07:03:25]Clear old archive folders... [07:03:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:03:25]tlvbuf is 004FDDB0 [07:03:25]SAM_PROTO_ClearQueue [07:03:25]wFMCommunicate request_size=4 [07:03:25]MH_SAM_APDU [07:03:25]CAPDU: 80 09 00 00 [07:03:25]Write to MH i2c: E2 08 00 EC 23 80 09 00 00 00 00 00 00 81 [07:03:25]Write i2c OK [07:03:25]MH_I2C_Read... [07:03:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:03:25]Read from MH i2c: E2 [07:03:25]MH_I2C_Read... [07:03:25]Read from MH i2c: E2 03 00 [07:03:25]MH_I2C_Read... [07:03:25]Read from MH i2c: E2 03 00 EC 23 00 90 00 83 [07:03:25]RAPDU: 90 00 [07:03:25]wFMCommunicate OK [07:03:25]SAM_PROTO_ClearQueue done [07:03:25]KKMCreateOFDPacket [07:03:25]OFDProtocolAddRootSTLVToBuf [07:03:25]FM_MakeSignedData [07:03:25]FM_MakeSignedData [07:03:25]SAM_PROTO_SignData [07:03:25]wFMCommunicate request_size=4 [07:03:25]MH_SAM_APDU [07:03:25]CAPDU: 80 0D 01 02 [07:03:25]Write to MH i2c: E2 08 00 ED 23 80 0D 01 02 00 00 00 00 89 [07:03:25]Write i2c OK [07:03:25]MH_I2C_Read... [07:03:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:03:25]Read from MH i2c: E2 [07:03:25]MH_I2C_Read... [07:03:25]Read from MH i2c: E2 03 00 [07:03:25]MH_I2C_Read... [07:03:25]Read from MH i2c: E2 03 00 ED 23 00 90 00 84 [07:03:25]RAPDU: 90 00 [07:03:25]wFMCommunicate OK [07:03:25]wFMCommunicate request_size=255 [07:03:25]MH_SAM_APDU [07:03:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 3F AB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7D 77 03 00 35 04 06 00 8B [07:03:25]Write to MH i2c: E2 02 01 EE 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 3F AB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7D 77 03 00 35 04 06 00 8B 00 00 E6 [07:03:25]Write i2c OK [07:03:25]MH_I2C_Read... [07:03:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:03:25]Read from MH i2c: E2 [07:03:25]MH_I2C_Read... [07:03:25]Read from MH i2c: E2 03 00 [07:03:25]MH_I2C_Read... [07:03:25]Read from MH i2c: E2 03 00 EE 23 00 90 00 85 [07:03:25]RAPDU: 90 00 [07:03:25]wFMCommunicate OK [07:03:25]wFMCommunicate request_size=10 [07:03:25]MH_SAM_APDU [07:03:25]CAPDU: 80 0D 02 02 05 D0 5E 87 A8 71 [07:03:25]Write to MH i2c: E2 0D 00 EF 23 80 0D 02 02 05 00 D0 5E 87 A8 71 00 00 64 [07:03:25]Write i2c OK [07:03:25]MH_I2C_Read... [07:03:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:03:25]Read from MH i2c: E2 [07:03:25]MH_I2C_Read... [07:03:25]Read from MH i2c: E2 03 00 [07:03:25]MH_I2C_Read... [07:03:25]Read from MH i2c: E2 03 00 EF 23 00 90 00 86 [07:03:25]RAPDU: 90 00 [07:03:25]wFMCommunicate OK [07:03:25]wFMCommunicate request_size=4 [07:03:25]MH_SAM_APDU [07:03:25]CAPDU: 80 0D 03 02 [07:03:25]Write to MH i2c: E2 08 00 F0 23 80 0D 03 02 00 00 00 00 8E [07:03:25]Write i2c OK [07:03:25]MH_I2C_Read... [07:03:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:03:25]Read from MH i2c: E2 [07:03:25]MH_I2C_Read... [07:03:25]Read from MH i2c: E2 0B 00 [07:03:25]MH_I2C_Read... [07:03:25]Read from MH i2c: E2 0B 00 F0 23 00 96 75 18 C5 47 BE BE 0F 90 00 49 [07:03:25]RAPDU: 96 75 18 C5 47 BE BE 0F 90 00 [07:03:25]wFMCommunicate OK [07:03:25]SAM_PROTO_SignData done [07:03:25]FM_MakeSignedData done [07:03:25]CreateOFDProtocolMessage [07:03:25]wFMCommunicate request_size=4 [07:03:25]MH_SAM_APDU [07:03:25]CAPDU: 80 11 00 00 [07:03:25]Write to MH i2c: E2 08 00 F1 23 80 11 00 00 00 00 00 00 8E [07:03:25]Write i2c OK [07:03:25]MH_I2C_Read... [07:03:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:03:25]Read from MH i2c: E2 [07:03:25]MH_I2C_Read... [07:03:25]Read from MH i2c: E2 17 00 [07:03:25]MH_I2C_Read... [07:03:25]Read from MH i2c: E2 17 00 F1 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E5 [07:03:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:03:25]wFMCommunicate OK [07:03:25]CreateOFDProtocolMessage done [07:03:25]OFDSenderStorePacket 227197 [07:03:25]StoreOFDPacket docnum=227197 [07:03:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 E0 BF 07 01 7F 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 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 3F AB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7D 77 03 00 35 04 06 00 8B D0 5E 87 A8 71 96 75 18 C5 47 BE BE 0F [07:03:25]CheckFolder [07:03:25]dirname=/storage/ofd_packets [07:03:25]CheckFolder done [07:03:25]ProducePacketName [07:03:25]name=ofd_packets/00227197 [07:03:25]NVStorageSaveData ofd_packets/00227197 [07:03:25]File name is /storage/ofd_packets/00227197 [07:03:25]Write 301 bytes [07:03:25]NVStorageSaveData done [07:03:25]OFDSenderStorePacket done [07:03:25]KKMCreateOFDPacket done [07:03:25]NVStorageSaveData kkm_last_timestamp [07:03:25]File name is /storage/kkm_last_timestamp [07:03:25]Write 4 bytes [07:03:25]NVStorageSaveData done [07:03:25]ExternCall_PrintAddStr [07:03:25]wPrintStart [07:03:25]Write to MH i2c: 01 00 00 F2 23 15 [07:03:25]Write i2c OK [07:03:25]MH_I2C_Read... [07:03:25]Read from MH i2c: 01 [07:03:25]MH_I2C_Read... [07:03:25]Read from MH i2c: 01 07 00 [07:03:25]MH_I2C_Read... [07:03:25]Read from MH i2c: 01 07 00 F2 23 00 00 00 00 00 FF 0F 2A [07:03:25]RasterBufferAndPrint [07:03:25]line Счет N : (1)1962650 [07:03:25]line ИНН: 02508201610067 [07:03:25]line Контрольно-Кассовый Чек [07:03:25]line ПРОДАЖА [07:03:25]line ТРК (МРК, ГНК) : 43 [07:03:25]line Товар: 2710124130 [07:03:25]line Аи-92-К-5 [07:03:25]line 10.020 * 66.90 [07:03:25]line = 670.34 [07:03:25]line НДС 12% НСП 1% [07:03:25]line > о реализуемом товаре [07:03:25]line ОКРУГЛЕНИЕ: -0.34 [07:03:25]line ИТОГО: 670.00 [07:03:25]line Внесено: 670.00 [07:03:25]line СДАЧА: 0.00 [07:03:25]line НСП 1% : 5.93 [07:03:25]line НДС 12% : 71.19 [07:03:25]line Наличными: 670.00 [07:03:25]line Безнал.: 0.00 [07:03:25]line Место: АЗС № 133 "Партнер Нефть" [07:03:25]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [07:03:25]line СНО: Общий режим [07:03:25]line Чек 45 20.10.2024 07:03 [07:03:25]line Смена: 533 ФФД: 1.0 [07:03:25]line ЗНМ: 0300000091 [07:03:25]line РНМ: 0000000000091685 [07:03:25]line Версия ККМ: 001 [07:03:25]line ФМ: 0000000000871839 [07:03:25]line ФД: 227197 [07:03:25]line ФПД: 153727055407217 [07:03:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T070327&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227197&fm=153727055407217&tin=02508201610067®Number=0000000000091685&sum=67000 [07:03:25]written 0, free lines is 4095 [07:03:25]OFD Sender: Processing packet 227197 [packets to send 38, broken 37] [07:03:25]ProducePacketName [07:03:25]name=ofd_packets/00227197 [07:03:25]OFD Sender: To server: pG, [07:03:25]CommunicateWithHost lk.salyk.kg:30040 [07:03:25]ConnectInit lk.salyk.kg [07:03:25]Connected sock=10 [07:03: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 33 39 0F 01 00 00 E0 BF 07 01 7F 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 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 3F AB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7D 77 03 00 35 04 06 00 8B D0 5E 87 A8 71 96 75 18 C5 47 BE BE 0F [07:03: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 33 39 4F 00 00 00 76 52 47 00 1A 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 33 39 10 04 04 00 7D 77 03 00 F4 03 04 00 3F 56 14 67 B6 04 01 00 00 BF 39 AD 44 1C 48 17 9A [07:03:26]CommunicateWithHost err = 0 [07:03:26]CheckOFDResponse [07:03:26]1017 (14) - 77093643461234 [07:03:26]1041 (16) - 0000000000871839 [07:03:26]1040 (4) - 227197 [07:03:26]1012 (4) - 20.10.2024 01:00 [07:03:26]1206 (1) - 0 [07:03:26]OFD Sender: Remove packet 227197 [07:03:26]ProducePacketName [07:03:26]name=ofd_packets/00227197 [07:03:26]NVStorageDeleteData [07:03:26]Write to MH i2c: 01 00 00 1C 24 40 [07:03:26]Write i2c OK [07:03:26]MH_I2C_Read... [07:03:26]Read from MH i2c: 01 [07:03:26]MH_I2C_Read... [07:03:26]Read from MH i2c: 01 07 00 [07:03:26]MH_I2C_Read... [07:03:26]Read from MH i2c: 01 07 00 1C 24 00 00 00 00 00 19 0D 6D [07:03:26]RasterBufferAndPrint [07:03:26]line [07:03:26]line [07:03:26]line [07:03:26]line [07:03:26]line [07:03:26]written 0, free lines is 3359 [07:03:26]process_action close_receipt done [07:03:26]requested_data is exist [07:03:26]produce_requested_data [07:03:26]requested_item fm.sn is exist - process it [07:03:26]wFMCommunicate request_size=4 [07:03:26]MH_SAM_APDU [07:03:26]CAPDU: 80 11 00 00 [07:03:26]Write to MH i2c: E2 08 00 23 24 80 11 00 00 00 00 00 00 C1 [07:03:26]Write i2c OK [07:03:26]MH_I2C_Read... [07:03:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:03:26]Read from MH i2c: E2 [07:03:26]MH_I2C_Read... [07:03:26]Read from MH i2c: E2 17 00 [07:03:26]MH_I2C_Read... [07:03:26]Read from MH i2c: E2 17 00 23 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 18 [07:03:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:03:26]wFMCommunicate OK [07:03:26]requested_item fd.num is exist - process it [07:03:26]SAM_PROTO_GetFieldsCounters [07:03:26]wFMCommunicate request_size=4 [07:03:26]MH_SAM_APDU [07:03:26]CAPDU: 80 13 00 00 [07:03:26]Write to MH i2c: E2 08 00 24 24 80 13 00 00 00 00 00 00 C4 [07:03:26]Write i2c OK [07:03:26]MH_I2C_Read... [07:03:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:03:26]Read from MH i2c: E2 [07:03:26]MH_I2C_Read... [07:03:26]Read from MH i2c: E2 62 00 [07:03:26]MH_I2C_Read... [07:03:26]Read from MH i2c: E2 62 00 24 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 7D 77 03 00 0E 04 04 00 15 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 82 [07:03: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 7D 77 03 00 0E 04 04 00 15 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 [07:03:26]wFMCommunicate OK [07:03:26]SAM_PROTO_GetFieldsCounters done [07:03:26]requested_item shift.num is exist - process it [07:03:26]requested_item shift.opened is exist - process it [07:03:26]req_shift_opened [07:03:26]FM_GetShiftState [07:03:26]SAM_PROTO_GetShiftState [07:03:26]wFMCommunicate request_size=4 [07:03:26]MH_SAM_APDU [07:03:26]CAPDU: 80 13 01 00 [07:03:26]Write to MH i2c: E2 08 00 25 24 80 13 01 00 00 00 00 00 C6 [07:03:26]Write i2c OK [07:03:26]MH_I2C_Read... [07:03:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:03:26]Read from MH i2c: E2 [07:03:26]MH_I2C_Read... [07:03:26]Read from MH i2c: E2 0E 00 [07:03:26]MH_I2C_Read... [07:03:26]Read from MH i2c: E2 0E 00 25 24 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 E0 [07:03:26]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [07:03:26]wFMCommunicate OK [07:03:26]SAM_PROTO_GetShiftState done [07:03:26]FM_GetShiftState done [07:03:26]req_shift_opened done [07:03:26]requested_item shift.open_date is exist - process it [07:03:26]req_shift_open_date [07:03:26]req_shift_open_date done [07:03:26]produce_requested_data done [07:03:26]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227197,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [07:03:26]process_action_free close_receipt [07:03:26]json_value_free [07:03:26]json_value_free done [07:03:26]process_json_proto returns [07:03:26]Send response to host [07:03:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227197,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [07:03:26]free response buf [07:03:26]execute_script done [07:03:26]execute_script returns [07:03:26]free content buf [07:03:26]Sock 8.Close socket [07:03:26]Sock 8.Thread stoped [07:03:26]OFD Sender: No OFD packet to send [07:03:31]OFD Sender: No OFD packet to send [07:03:36]OFD Sender: No OFD packet to send [07:03:37]accept exits with 9 [07:03:37]New connection [07:03:37]New thread 3066821988 created [07:03:37]Thread 3066965348 joined [07:03:37]Waiting for new connection... [07:03:37] Sock 9.Parse request [07:03:37]Sock 9.Check first char [07:03:37]Sock 9.First char is OK [07:03:37]request: POST /json_proto HTTP/1.0 [07:03:37]Method: POST [07:03:37]URL: /json_proto [07:03:37]Method is POST - this is cgi request [07:03:37]url: /json_proto [07:03:37]query_string will be loaded in cgi processing [07:03:37]execute_cgi json_proto POST (null) [07:03:37]execute_cgi path=json_proto method=POST [07:03:37]POST find Content-Length [07:03:37]Host: 172.17.44.195:8080 [07:03:37]Content-Length: 680 [07:03:37]Content-Type: application/json [07:03:37] [07:03:37]POST finish read [07:03:37]Found Content-Length = 680 [07:03:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962649", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:03:37]execute_script... [07:03: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)1962649", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:03:37]POST & json_proto [07:03:37]process_json_proto [07:03:37]json parsed OK: [07:03:37]protocol is kg_v1.0 [07:03:37]action value=close_receipt [07:03:37]process_action close_receipt [07:03:37]cmd_close_receipt [07:03:37]MH_GetDate [07:03:37]Write to MH i2c: F0 00 00 26 24 39 [07:03:37]Write i2c OK [07:03:37]MH_I2C_Read... [07:03:37]Read from MH i2c: F0 [07:03:37]MH_I2C_Read... [07:03:37]Read from MH i2c: F0 09 00 [07:03:37]MH_I2C_Read... [07:03:37]Read from MH i2c: F0 09 00 26 24 00 4C AB 14 67 82 C9 CF 66 34 [07:03:37]GetLastDocTimeStamp 1729407807 [07:03:37]current date 1729407820 [07:03:37]FM_GetShiftState [07:03:37]SAM_PROTO_GetShiftState [07:03:37]wFMCommunicate request_size=4 [07:03:37]MH_SAM_APDU [07:03:37]CAPDU: 80 13 01 00 [07:03:37]Write to MH i2c: E2 08 00 27 24 80 13 01 00 00 00 00 00 C8 [07:03:37]Write i2c OK [07:03:37]MH_I2C_Read... [07:03:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:03:37]Read from MH i2c: E2 [07:03:37]MH_I2C_Read... [07:03:37]Read from MH i2c: E2 0E 00 [07:03:37]MH_I2C_Read... [07:03:37]Read from MH i2c: E2 0E 00 27 24 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 E2 [07:03:37]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [07:03:37]wFMCommunicate OK [07:03:37]SAM_PROTO_GetShiftState done [07:03:37]FM_GetShiftState done [07:03:37]opened in 1729383750 [07:03:37]opened+sec_in_day 1729470150 [07:03:37]quantity*price = 150037 [07:03:37]sum+1 = 150039 [07:03:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 46 20.10.2024 07:03 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227198 ФПД: 240161029180912 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T070341&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227198&fm=240161029180912&tin=02508201610067®Number=0000000000091685&sum=150000 [07:03:38]StoreToDocumentArchive [07:03:38]shift 533 fd 227198 [07:03:38]save to /storage/0533/doc_00227198 [07:03:38]save last doc name /storage/0533/doc_00227198 to /storage/kkm_last_doc_name [07:03:38]save OK [07:03:38]Clear old archive folders... [07:03:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:03:38]tlvbuf is 0053BB50 [07:03:38]SAM_PROTO_ClearQueue [07:03:38]wFMCommunicate request_size=4 [07:03:38]MH_SAM_APDU [07:03:38]CAPDU: 80 09 00 00 [07:03:38]Write to MH i2c: E2 08 00 34 24 80 09 00 00 00 00 00 00 CA [07:03:38]Write i2c OK [07:03:38]MH_I2C_Read... [07:03:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:03:38]Read from MH i2c: E2 [07:03:38]MH_I2C_Read... [07:03:38]Read from MH i2c: E2 03 00 [07:03:38]MH_I2C_Read... [07:03:38]Read from MH i2c: E2 03 00 34 24 00 90 00 CC [07:03:38]RAPDU: 90 00 [07:03:38]wFMCommunicate OK [07:03:38]SAM_PROTO_ClearQueue done [07:03:38]KKMCreateOFDPacket [07:03:38]OFDProtocolAddRootSTLVToBuf [07:03:38]FM_MakeSignedData [07:03:38]FM_MakeSignedData [07:03:38]SAM_PROTO_SignData [07:03:38]wFMCommunicate request_size=4 [07:03:38]MH_SAM_APDU [07:03:38]CAPDU: 80 0D 01 02 [07:03:38]Write to MH i2c: E2 08 00 35 24 80 0D 01 02 00 00 00 00 D2 [07:03:38]Write i2c OK [07:03:38]MH_I2C_Read... [07:03:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:03:38]Read from MH i2c: E2 [07:03:38]MH_I2C_Read... [07:03:38]Read from MH i2c: E2 03 00 [07:03:38]MH_I2C_Read... [07:03:38]Read from MH i2c: E2 03 00 35 24 00 90 00 CD [07:03:38]RAPDU: 90 00 [07:03:38]wFMCommunicate OK [07:03:38]wFMCommunicate request_size=255 [07:03:38]MH_SAM_APDU [07:03:38]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 4D AB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7E 77 03 00 35 04 06 00 DA 6C D8 D5 [07:03:38]Write to MH i2c: E2 02 01 36 24 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 4D AB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7E 77 03 00 35 04 06 00 DA 6C D8 D5 00 00 79 [07:03:38]Write i2c OK [07:03:38]MH_I2C_Read... [07:03:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:03:39]Read from MH i2c: E2 [07:03:39]MH_I2C_Read... [07:03:39]Read from MH i2c: E2 03 00 [07:03:39]MH_I2C_Read... [07:03:39]Read from MH i2c: E2 03 00 36 24 00 90 00 CE [07:03:39]RAPDU: 90 00 [07:03:39]wFMCommunicate OK [07:03:39]wFMCommunicate request_size=7 [07:03:39]MH_SAM_APDU [07:03:39]CAPDU: 80 0D 02 02 02 4D F0 [07:03:39]Write to MH i2c: E2 0A 00 37 24 80 0D 02 02 02 00 4D F0 00 00 16 [07:03:39]Write i2c OK [07:03:39]MH_I2C_Read... [07:03:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:03:39]Read from MH i2c: E2 [07:03:39]MH_I2C_Read... [07:03:39]Read from MH i2c: E2 03 00 [07:03:39]MH_I2C_Read... [07:03:39]Read from MH i2c: E2 03 00 37 24 00 90 00 CF [07:03:39]RAPDU: 90 00 [07:03:39]wFMCommunicate OK [07:03:39]wFMCommunicate request_size=4 [07:03:39]MH_SAM_APDU [07:03:39]CAPDU: 80 0D 03 02 [07:03:39]Write to MH i2c: E2 08 00 38 24 80 0D 03 02 00 00 00 00 D7 [07:03:39]Write i2c OK [07:03:39]MH_I2C_Read... [07:03:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:03:39]Read from MH i2c: E2 [07:03:39]MH_I2C_Read... [07:03:39]Read from MH i2c: E2 0B 00 [07:03:39]MH_I2C_Read... [07:03:39]Read from MH i2c: E2 0B 00 38 24 00 DD F9 22 2D B2 9B 7B 84 90 00 49 [07:03:39]RAPDU: DD F9 22 2D B2 9B 7B 84 90 00 [07:03:39]wFMCommunicate OK [07:03:39]SAM_PROTO_SignData done [07:03:39]FM_MakeSignedData done [07:03:39]CreateOFDProtocolMessage [07:03:39]wFMCommunicate request_size=4 [07:03:39]MH_SAM_APDU [07:03:39]CAPDU: 80 11 00 00 [07:03:39]Write to MH i2c: E2 08 00 39 24 80 11 00 00 00 00 00 00 D7 [07:03:39]Write i2c OK [07:03:39]MH_I2C_Read... [07:03:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:03:39]Read from MH i2c: E2 [07:03:39]MH_I2C_Read... [07:03:39]Read from MH i2c: E2 17 00 [07:03:39]MH_I2C_Read... [07:03:39]Read from MH i2c: E2 17 00 39 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 2E [07:03:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:03:39]wFMCommunicate OK [07:03:39]CreateOFDProtocolMessage done [07:03:39]OFDSenderStorePacket 227198 [07:03:39]StoreOFDPacket docnum=227198 [07:03:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 BE 65 04 01 98 93 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 4D AB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7E 77 03 00 35 04 06 00 DA 6C D8 D5 4D F0 DD F9 22 2D B2 9B 7B 84 [07:03:39]CheckFolder [07:03:39]dirname=/storage/ofd_packets [07:03:39]CheckFolder done [07:03:39]ProducePacketName [07:03:39]name=ofd_packets/00227198 [07:03:39]NVStorageSaveData ofd_packets/00227198 [07:03:39]File name is /storage/ofd_packets/00227198 [07:03:39]Write 298 bytes [07:03:39]NVStorageSaveData done [07:03:39]OFDSenderStorePacket done [07:03:39]KKMCreateOFDPacket done [07:03:39]NVStorageSaveData kkm_last_timestamp [07:03:39]File name is /storage/kkm_last_timestamp [07:03:39]Write 4 bytes [07:03:39]NVStorageSaveData done [07:03:39]ExternCall_PrintAddStr [07:03:39]wPrintStart [07:03:39]Write to MH i2c: 01 00 00 3A 24 5E [07:03:39]OFD Sender: Processing packet 227198 [packets to send 38, broken 37] [07:03:39]ProducePacketName [07:03:39]name=ofd_packets/00227198 [07:03:39]OFD Sender: To server: pG, [07:03:39]CommunicateWithHost lk.salyk.kg:30040 [07:03:39]ConnectInit lk.salyk.kg [07:03:39]Write i2c OK [07:03:39]MH_I2C_Read... [07:03:39]Read from MH i2c: 01 [07:03:39]MH_I2C_Read... [07:03:39]Read from MH i2c: 01 07 00 [07:03:39]MH_I2C_Read... [07:03:39]Read from MH i2c: 01 07 00 3A 24 00 00 00 00 00 FF 0F 73 [07:03:39]RasterBufferAndPrint [07:03:39]line Счет N : (1)1962649 [07:03:39]line ИНН: 02508201610067 [07:03:39]line Контрольно-Кассовый Чек [07:03:39]line ПРОДАЖА [07:03:39]line ТРК (МРК, ГНК) : 11 [07:03:39]line Товар: 2710194210 [07:03:39]line ДТ-К-5 [07:03:39]line 19.690 * 76.20 [07:03:39]line = 1500.38 [07:03:39]line НДС 12% НСП 1% [07:03:39]line > о реализуемом товаре [07:03:39]line ОКРУГЛЕНИЕ: -0.38 [07:03:39]line ИТОГО: 1500.00 [07:03:39]line Внесено: 1500.00 [07:03:39]line СДАЧА: 0.00 [07:03:39]line НСП 1% : 13.28 [07:03:39]line НДС 12% : 159.33 [07:03:39]line Наличными: 1500.00 [07:03:39]line Безнал.: 0.00 [07:03:39]line Место: АЗС № 133 "Партнер Нефть" [07:03:39]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [07:03:39]line СНО: Общий режим [07:03:39]line Чек 46 20.10.2024 07:03 [07:03:39]line Смена: 533 ФФД: 1.0 [07:03:39]line ЗНМ: 0300000091 [07:03:39]line РНМ: 0000000000091685 [07:03:39]line Версия ККМ: 001 [07:03:39]line ФМ: 0000000000871839 [07:03:39]line ФД: 227198 [07:03:39]line ФПД: 240161029180912 [07:03:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T070341&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227198&fm=240161029180912&tin=02508201610067®Number=0000000000091685&sum=150000 [07:03:39]Connected sock=10 [07:03: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 33 39 0C 01 00 00 BE 65 04 01 98 93 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 4D AB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7E 77 03 00 35 04 06 00 DA 6C D8 D5 4D F0 DD F9 22 2D B2 9B 7B 84 [07:03:39]written 0, free lines is 4095 [07:03: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 33 39 4F 00 00 00 EA 10 47 00 41 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 33 39 10 04 04 00 7E 77 03 00 F4 03 04 00 4C 56 14 67 B6 04 01 00 00 EC 1F 25 43 5F 14 A1 C9 [07:03:39]CommunicateWithHost err = 0 [07:03:39]CheckOFDResponse [07:03:39]1017 (14) - 77093643461234 [07:03:39]1041 (16) - 0000000000871839 [07:03:39]1040 (4) - 227198 [07:03:39]1012 (4) - 20.10.2024 01:01 [07:03:39]1206 (1) - 0 [07:03:39]OFD Sender: Remove packet 227198 [07:03:39]ProducePacketName [07:03:39]name=ofd_packets/00227198 [07:03:39]NVStorageDeleteData [07:03:40]Write to MH i2c: 01 00 00 64 24 88 [07:03:40]Write i2c OK [07:03:40]MH_I2C_Read... [07:03:40]Read from MH i2c: 01 [07:03:40]MH_I2C_Read... [07:03:40]Read from MH i2c: 01 07 00 [07:03:40]MH_I2C_Read... [07:03:40]Read from MH i2c: 01 07 00 64 24 00 00 00 00 00 0E 0D AA [07:03:40]RasterBufferAndPrint [07:03:40]line [07:03:40]line [07:03:40]line [07:03:40]line [07:03:40]line [07:03:40]written 0, free lines is 3351 [07:03:40]process_action close_receipt done [07:03:40]requested_data is exist [07:03:40]produce_requested_data [07:03:40]requested_item fm.sn is exist - process it [07:03:40]wFMCommunicate request_size=4 [07:03:40]MH_SAM_APDU [07:03:40]CAPDU: 80 11 00 00 [07:03:40]Write to MH i2c: E2 08 00 6B 24 80 11 00 00 00 00 00 00 09 [07:03:40]Write i2c OK [07:03:40]MH_I2C_Read... [07:03:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:03:40]Read from MH i2c: E2 [07:03:40]MH_I2C_Read... [07:03:40]Read from MH i2c: E2 17 00 [07:03:40]MH_I2C_Read... [07:03:40]Read from MH i2c: E2 17 00 6B 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 60 [07:03:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:03:40]wFMCommunicate OK [07:03:40]requested_item fd.num is exist - process it [07:03:40]SAM_PROTO_GetFieldsCounters [07:03:40]wFMCommunicate request_size=4 [07:03:40]MH_SAM_APDU [07:03:40]CAPDU: 80 13 00 00 [07:03:40]Write to MH i2c: E2 08 00 6C 24 80 13 00 00 00 00 00 00 0C [07:03:40]Write i2c OK [07:03:40]MH_I2C_Read... [07:03:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:03:40]OFD Sender: No OFD packet to send [07:03:40]Read from MH i2c: E2 [07:03:40]MH_I2C_Read... [07:03:40]Read from MH i2c: E2 62 00 [07:03:40]MH_I2C_Read... [07:03:40]Read from MH i2c: E2 62 00 6C 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 7E 77 03 00 0E 04 04 00 15 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 CE [07:03:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 7E 77 03 00 0E 04 04 00 15 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 [07:03:40]wFMCommunicate OK [07:03:40]SAM_PROTO_GetFieldsCounters done [07:03:40]requested_item shift.num is exist - process it [07:03:40]requested_item shift.opened is exist - process it [07:03:40]req_shift_opened [07:03:40]FM_GetShiftState [07:03:40]SAM_PROTO_GetShiftState [07:03:40]wFMCommunicate request_size=4 [07:03:40]MH_SAM_APDU [07:03:40]CAPDU: 80 13 01 00 [07:03:40]Write to MH i2c: E2 08 00 6D 24 80 13 01 00 00 00 00 00 0E [07:03:40]Write i2c OK [07:03:40]MH_I2C_Read... [07:03:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:03:40]Read from MH i2c: E2 [07:03:40]MH_I2C_Read... [07:03:40]Read from MH i2c: E2 0E 00 [07:03:40]MH_I2C_Read... [07:03:40]Read from MH i2c: E2 0E 00 6D 24 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 28 [07:03:40]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [07:03:40]wFMCommunicate OK [07:03:40]SAM_PROTO_GetShiftState done [07:03:40]FM_GetShiftState done [07:03:40]req_shift_opened done [07:03:40]requested_item shift.open_date is exist - process it [07:03:40]req_shift_open_date [07:03:40]req_shift_open_date done [07:03:40]produce_requested_data done [07:03:40]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227198,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [07:03:40]process_action_free close_receipt [07:03:40]json_value_free [07:03:40]json_value_free done [07:03:40]process_json_proto returns [07:03:40]Send response to host [07:03:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227198,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [07:03:40]free response buf [07:03:40]execute_script done [07:03:40]execute_script returns [07:03:40]free content buf [07:03:40]Sock 9.Close socket [07:03:40]Sock 9.Thread stoped [07:03:45]OFD Sender: No OFD packet to send [07:03:50]OFD Sender: No OFD packet to send [07:03:55]OFD Sender: No OFD packet to send [07:04:00]OFD Sender: No OFD packet to send [07:04:05]OFD Sender: No OFD packet to send [07:04:10]OFD Sender: No OFD packet to send [07:04:15]OFD Sender: No OFD packet to send [07:04:20]OFD Sender: No OFD packet to send [07:04:25]OFD Sender: No OFD packet to send [07:04:30]OFD Sender: No OFD packet to send [07:04:35]OFD Sender: No OFD packet to send [07:04:40]OFD Sender: No OFD packet to send [07:04:45]OFD Sender: No OFD packet to send [07:04:50]OFD Sender: No OFD packet to send [07:04:55]OFD Sender: No OFD packet to send [07:05:00]OFD Sender: No OFD packet to send [07:05:05]OFD Sender: No OFD packet to send [07:05:10]OFD Sender: No OFD packet to send [07:05:15]OFD Sender: No OFD packet to send [07:05:20]OFD Sender: No OFD packet to send [07:05:25]OFD Sender: No OFD packet to send [07:05:30]OFD Sender: No OFD packet to send [07:05:35]OFD Sender: No OFD packet to send [07:05:40]OFD Sender: No OFD packet to send [07:05:45]OFD Sender: No OFD packet to send [07:05:50]OFD Sender: No OFD packet to send [07:05:55]OFD Sender: No OFD packet to send [07:05:57]accept exits with 8 [07:05:57]New connection [07:05:57]New thread 3066965348 created [07:05:57]Thread 3066821988 joined [07:05:57]Waiting for new connection... [07:05:57] Sock 8.Parse request [07:05:57]Sock 8.Check first char [07:05:57]Sock 8.First char is OK [07:05:57]request: POST /json_proto HTTP/1.0 [07:05:57]Method: POST [07:05:57]URL: /json_proto [07:05:57]Method is POST - this is cgi request [07:05:57]url: /json_proto [07:05:57]query_string will be loaded in cgi processing [07:05:57]execute_cgi json_proto POST (null) [07:05:57]execute_cgi path=json_proto method=POST [07:05:57]POST find Content-Length [07:05:57]Host: 172.17.44.195:8080 [07:05:57]Content-Length: 683 [07:05:57]Content-Type: application/json [07:05:57] [07:05:57]POST finish read [07:05:57]Found Content-Length = 683 [07:05:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962651", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 20.180, "sum" : 1350.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1350.00, "total" : 1350.00, "payments": [ { "type": 0, "sum" : 1350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:05:57]execute_script... [07:05: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)1962651", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 20.180, "sum" : 1350.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1350.00, "total" : 1350.00, "payments": [ { "type": 0, "sum" : 1350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:05:57]POST & json_proto [07:05:57]process_json_proto [07:05:57]json parsed OK: [07:05:57]protocol is kg_v1.0 [07:05:57]action value=close_receipt [07:05:57]process_action close_receipt [07:05:57]cmd_close_receipt [07:05:57]MH_GetDate [07:05:57]Write to MH i2c: F0 00 00 6E 24 81 [07:05:57]Write i2c OK [07:05:57]MH_I2C_Read... [07:05:57]Read from MH i2c: F0 [07:05:57]MH_I2C_Read... [07:05:57]Read from MH i2c: F0 09 00 [07:05:57]MH_I2C_Read... [07:05:57]Read from MH i2c: F0 09 00 6E 24 00 D8 AB 14 67 82 C9 CF 66 08 [07:05:57]GetLastDocTimeStamp 1729407821 [07:05:57]current date 1729407960 [07:05:57]FM_GetShiftState [07:05:57]SAM_PROTO_GetShiftState [07:05:57]wFMCommunicate request_size=4 [07:05:57]MH_SAM_APDU [07:05:57]CAPDU: 80 13 01 00 [07:05:57]Write to MH i2c: E2 08 00 6F 24 80 13 01 00 00 00 00 00 10 [07:05:57]Write i2c OK [07:05:57]MH_I2C_Read... [07:05:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:05:57]Read from MH i2c: E2 [07:05:57]MH_I2C_Read... [07:05:57]Read from MH i2c: E2 0E 00 [07:05:57]MH_I2C_Read... [07:05:57]Read from MH i2c: E2 0E 00 6F 24 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 2A [07:05:57]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [07:05:57]wFMCommunicate OK [07:05:57]SAM_PROTO_GetShiftState done [07:05:57]FM_GetShiftState done [07:05:57]opened in 1729383750 [07:05:57]opened+sec_in_day 1729470150 [07:05:57]quantity*price = 135004 [07:05:57]sum+1 = 135005 [07:05:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 1350.00 Внесено: 1350.00 СДАЧА: 0.00 НСП 1% : 11.95 НДС 12% : 143.37 Наличными: 1350.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 47 20.10.2024 07:06 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227199 ФПД: 162829995478009 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T070600&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227199&fm=162829995478009&tin=02508201610067®Number=0000000000091685&sum=135000 [07:05:58]StoreToDocumentArchive [07:05:58]shift 533 fd 227199 [07:05:58]save to /storage/0533/doc_00227199 [07:05:58]save last doc name /storage/0533/doc_00227199 to /storage/kkm_last_doc_name [07:05:58]save OK [07:05:58]Clear old archive folders... [07:05:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:05:58]tlvbuf is 0059EDC0 [07:05:58]SAM_PROTO_ClearQueue [07:05:58]wFMCommunicate request_size=4 [07:05:58]MH_SAM_APDU [07:05:58]CAPDU: 80 09 00 00 [07:05:58]Write to MH i2c: E2 08 00 7C 24 80 09 00 00 00 00 00 00 12 [07:05:58]Write i2c OK [07:05:58]MH_I2C_Read... [07:05:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:05:58]Read from MH i2c: E2 [07:05:58]MH_I2C_Read... [07:05:58]Read from MH i2c: E2 03 00 [07:05:58]MH_I2C_Read... [07:05:58]Read from MH i2c: E2 03 00 7C 24 00 90 00 14 [07:05:58]RAPDU: 90 00 [07:05:58]wFMCommunicate OK [07:05:58]SAM_PROTO_ClearQueue done [07:05:58]KKMCreateOFDPacket [07:05:58]OFDProtocolAddRootSTLVToBuf [07:05:58]FM_MakeSignedData [07:05:58]FM_MakeSignedData [07:05:58]SAM_PROTO_SignData [07:05:58]wFMCommunicate request_size=4 [07:05:58]MH_SAM_APDU [07:05:58]CAPDU: 80 0D 01 02 [07:05:58]Write to MH i2c: E2 08 00 7D 24 80 0D 01 02 00 00 00 00 1A [07:05:58]Write i2c OK [07:05:58]MH_I2C_Read... [07:05:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:05:58]Read from MH i2c: E2 [07:05:58]MH_I2C_Read... [07:05:58]Read from MH i2c: E2 03 00 [07:05:58]MH_I2C_Read... [07:05:58]Read from MH i2c: E2 03 00 7D 24 00 90 00 15 [07:05:58]RAPDU: 90 00 [07:05:58]wFMCommunicate OK [07:05:58]wFMCommunicate request_size=255 [07:05:58]MH_SAM_APDU [07:05:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5C 0F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 0F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 01 38 00 00 00 00 07 04 06 00 58 0F 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 D8 AB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7F 77 03 00 35 04 06 00 94 [07:05:58]Write to MH i2c: E2 02 01 7E 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5C 0F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 0F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 01 38 00 00 00 00 07 04 06 00 58 0F 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 D8 AB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7F 77 03 00 35 04 06 00 94 00 00 82 [07:05:58]Write i2c OK [07:05:58]MH_I2C_Read... [07:05:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:05:58]Read from MH i2c: E2 [07:05:58]MH_I2C_Read... [07:05:58]Read from MH i2c: E2 03 00 [07:05:58]MH_I2C_Read... [07:05:58]Read from MH i2c: E2 03 00 7E 24 00 90 00 16 [07:05:58]RAPDU: 90 00 [07:05:58]wFMCommunicate OK [07:05:58]wFMCommunicate request_size=10 [07:05:58]MH_SAM_APDU [07:05:58]CAPDU: 80 0D 02 02 05 17 D0 0A 0B F9 [07:05:58]Write to MH i2c: E2 0D 00 7F 24 80 0D 02 02 05 00 17 D0 0A 0B F9 00 00 1C [07:05:58]Write i2c OK [07:05:58]MH_I2C_Read... [07:05:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:05:58]Read from MH i2c: E2 [07:05:58]MH_I2C_Read... [07:05:58]Read from MH i2c: E2 03 00 [07:05:58]MH_I2C_Read... [07:05:58]Read from MH i2c: E2 03 00 7F 24 00 90 00 17 [07:05:58]RAPDU: 90 00 [07:05:58]wFMCommunicate OK [07:05:58]wFMCommunicate request_size=4 [07:05:58]MH_SAM_APDU [07:05:58]CAPDU: 80 0D 03 02 [07:05:58]Write to MH i2c: E2 08 00 80 24 80 0D 03 02 00 00 00 00 1F [07:05:58]Write i2c OK [07:05:58]MH_I2C_Read... [07:05:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:05:58]Read from MH i2c: E2 [07:05:58]MH_I2C_Read... [07:05:58]Read from MH i2c: E2 0B 00 [07:05:58]MH_I2C_Read... [07:05:58]Read from MH i2c: E2 0B 00 80 24 00 7A 3D 07 D8 63 6E C9 42 90 00 92 [07:05:58]RAPDU: 7A 3D 07 D8 63 6E C9 42 90 00 [07:05:58]wFMCommunicate OK [07:05:58]SAM_PROTO_SignData done [07:05:58]FM_MakeSignedData done [07:05:58]CreateOFDProtocolMessage [07:05:58]wFMCommunicate request_size=4 [07:05:58]MH_SAM_APDU [07:05:58]CAPDU: 80 11 00 00 [07:05:58]Write to MH i2c: E2 08 00 81 24 80 11 00 00 00 00 00 00 1F [07:05:58]Write i2c OK [07:05:58]MH_I2C_Read... [07:05:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:05:59]Read from MH i2c: E2 [07:05:59]MH_I2C_Read... [07:05:59]Read from MH i2c: E2 17 00 [07:05:59]MH_I2C_Read... [07:05:59]Read from MH i2c: E2 17 00 81 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 76 [07:05:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:05:59]wFMCommunicate OK [07:05:59]CreateOFDProtocolMessage done [07:05:59]OFDSenderStorePacket 227199 [07:05:59]StoreOFDPacket docnum=227199 [07:05:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 7B 6A 07 01 B0 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5C 0F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 0F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 01 38 00 00 00 00 07 04 06 00 58 0F 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 D8 AB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7F 77 03 00 35 04 06 00 94 17 D0 0A 0B F9 7A 3D 07 D8 63 6E C9 42 [07:05:59]CheckFolder [07:05:59]dirname=/storage/ofd_packets [07:05:59]CheckFolder done [07:05:59]ProducePacketName [07:05:59]name=ofd_packets/00227199 [07:05:59]NVStorageSaveData ofd_packets/00227199 [07:05:59]File name is /storage/ofd_packets/00227199 [07:05:59]Write 301 bytes [07:05:59]NVStorageSaveData done [07:05:59]OFDSenderStorePacket done [07:05:59]KKMCreateOFDPacket done [07:05:59]NVStorageSaveData kkm_last_timestamp [07:05:59]File name is /storage/kkm_last_timestamp [07:05:59]Write 4 bytes [07:05:59]NVStorageSaveData done [07:05:59]ExternCall_PrintAddStr [07:05:59]wPrintStart [07:05:59]Write to MH i2c: 01 00 00 82 24 A6 [07:05:59]Write i2c OK [07:05:59]MH_I2C_Read... [07:05:59]Read from MH i2c: 01 [07:05:59]MH_I2C_Read... [07:05:59]Read from MH i2c: 01 07 00 [07:05:59]MH_I2C_Read... [07:05:59]Read from MH i2c: 01 07 00 82 24 00 00 00 00 00 FF 0F BB [07:05:59]RasterBufferAndPrint [07:05:59]line Счет N : (1)1962651 [07:05:59]line ИНН: 02508201610067 [07:05:59]line Контрольно-Кассовый Чек [07:05:59]line ПРОДАЖА [07:05:59]line ТРК (МРК, ГНК) : 33 [07:05:59]line Товар: 2710124130 [07:05:59]line Аи-92-К-5 [07:05:59]line 20.180 * 66.90 [07:05:59]line = 1350.04 [07:05:59]line НДС 12% НСП 1% [07:05:59]line > о реализуемом товаре [07:05:59]line ОКРУГЛЕНИЕ: -0.04 [07:05:59]line ИТОГО: 1350.00 [07:05:59]line Внесено: 1350.00 [07:05:59]line СДАЧА: 0.00 [07:05:59]line НСП 1% : 11.95 [07:05:59]line НДС 12% : 143.37 [07:05:59]line Наличными: 1350.00 [07:05:59]line Безнал.: 0.00 [07:05:59]line Место: АЗС № 133 "Партнер Нефть" [07:05:59]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [07:05:59]line СНО: Общий режим [07:05:59]line Чек 47 20.10.2024 07:06 [07:05:59]line Смена: 533 ФФД: 1.0 [07:05:59]line ЗНМ: 0300000091 [07:05:59]line РНМ: 0000000000091685 [07:05:59]line Версия ККМ: 001 [07:05:59]line ФМ: 0000000000871839 [07:05:59]line ФД: 227199 [07:05:59]line ФПД: 162829995478009 [07:05:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T070600&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227199&fm=162829995478009&tin=02508201610067®Number=0000000000091685&sum=135000 [07:05:59]OFD Sender: Processing packet 227199 [packets to send 38, broken 37] [07:05:59]ProducePacketName [07:05:59]name=ofd_packets/00227199 [07:05:59]OFD Sender: To server: pG, [07:05:59]CommunicateWithHost lk.salyk.kg:30040 [07:05:59]ConnectInit lk.salyk.kg [07:05:59]written 0, free lines is 4095 [07:05:59]Connected sock=10 [07:05: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 33 39 0F 01 00 00 7B 6A 07 01 B0 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5C 0F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 0F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 01 38 00 00 00 00 07 04 06 00 58 0F 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 D8 AB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7F 77 03 00 35 04 06 00 94 17 D0 0A 0B F9 7A 3D 07 D8 63 6E C9 42 [07:05: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 33 39 4F 00 00 00 97 40 47 00 6E 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 33 39 10 04 04 00 7F 77 03 00 F4 03 04 00 D8 56 14 67 B6 04 01 00 00 87 3A 3E E6 E0 DE FE 26 [07:05:59]CommunicateWithHost err = 0 [07:05:59]CheckOFDResponse [07:05:59]1017 (14) - 77093643461234 [07:05:59]1041 (16) - 0000000000871839 [07:05:59]1040 (4) - 227199 [07:05:59]1012 (4) - 20.10.2024 01:03 [07:05:59]1206 (1) - 0 [07:05:59]OFD Sender: Remove packet 227199 [07:05:59]ProducePacketName [07:05:59]name=ofd_packets/00227199 [07:05:59]NVStorageDeleteData [07:05:59]Write to MH i2c: 01 00 00 AC 24 D0 [07:05:59]Write i2c OK [07:05:59]MH_I2C_Read... [07:05:59]Read from MH i2c: 01 [07:05:59]MH_I2C_Read... [07:05:59]Read from MH i2c: 01 07 00 [07:05:59]MH_I2C_Read... [07:05:59]Read from MH i2c: 01 07 00 AC 24 00 00 00 00 00 20 0D 04 [07:05:59]RasterBufferAndPrint [07:05:59]line [07:05:59]line [07:05:59]line [07:05:59]line [07:05:59]line [07:05:59]written 0, free lines is 3369 [07:05:59]process_action close_receipt done [07:05:59]requested_data is exist [07:05:59]produce_requested_data [07:05:59]requested_item fm.sn is exist - process it [07:05:59]wFMCommunicate request_size=4 [07:05:59]MH_SAM_APDU [07:05:59]CAPDU: 80 11 00 00 [07:05:59]Write to MH i2c: E2 08 00 B3 24 80 11 00 00 00 00 00 00 51 [07:05:59]Write i2c OK [07:05:59]MH_I2C_Read... [07:05:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:05:59]Read from MH i2c: E2 [07:05:59]MH_I2C_Read... [07:05:59]Read from MH i2c: E2 17 00 [07:05:59]MH_I2C_Read... [07:05:59]Read from MH i2c: E2 17 00 B3 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A8 [07:05:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:05:59]wFMCommunicate OK [07:05:59]requested_item fd.num is exist - process it [07:05:59]SAM_PROTO_GetFieldsCounters [07:05:59]wFMCommunicate request_size=4 [07:05:59]MH_SAM_APDU [07:05:59]CAPDU: 80 13 00 00 [07:05:59]Write to MH i2c: E2 08 00 B4 24 80 13 00 00 00 00 00 00 54 [07:05:59]Write i2c OK [07:05:59]MH_I2C_Read... [07:06:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:06:00]Read from MH i2c: E2 [07:06:00]MH_I2C_Read... [07:06:00]Read from MH i2c: E2 62 00 [07:06:00]MH_I2C_Read... [07:06:00]Read from MH i2c: E2 62 00 B4 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 7F 77 03 00 0E 04 04 00 15 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 1A [07:06: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 7F 77 03 00 0E 04 04 00 15 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 [07:06:00]wFMCommunicate OK [07:06:00]SAM_PROTO_GetFieldsCounters done [07:06:00]requested_item shift.num is exist - process it [07:06:00]requested_item shift.opened is exist - process it [07:06:00]req_shift_opened [07:06:00]FM_GetShiftState [07:06:00]SAM_PROTO_GetShiftState [07:06:00]wFMCommunicate request_size=4 [07:06:00]MH_SAM_APDU [07:06:00]CAPDU: 80 13 01 00 [07:06:00]Write to MH i2c: E2 08 00 B5 24 80 13 01 00 00 00 00 00 56 [07:06:00]Write i2c OK [07:06:00]MH_I2C_Read... [07:06:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:06:00]Read from MH i2c: E2 [07:06:00]MH_I2C_Read... [07:06:00]Read from MH i2c: E2 0E 00 [07:06:00]MH_I2C_Read... [07:06:00]Read from MH i2c: E2 0E 00 B5 24 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 70 [07:06:00]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [07:06:00]wFMCommunicate OK [07:06:00]SAM_PROTO_GetShiftState done [07:06:00]FM_GetShiftState done [07:06:00]req_shift_opened done [07:06:00]requested_item shift.open_date is exist - process it [07:06:00]req_shift_open_date [07:06:00]req_shift_open_date done [07:06:00]produce_requested_data done [07:06:00]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227199,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [07:06:00]process_action_free close_receipt [07:06:00]json_value_free [07:06:00]json_value_free done [07:06:00]process_json_proto returns [07:06:00]Send response to host [07:06:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227199,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [07:06:00]free response buf [07:06:00]execute_script done [07:06:00]execute_script returns [07:06:00]free content buf [07:06:00]Sock 8.Close socket [07:06:00]Sock 8.Thread stoped [07:06:00]OFD Sender: No OFD packet to send [07:06:05]OFD Sender: No OFD packet to send [07:06:10]OFD Sender: No OFD packet to send [07:06:15]OFD Sender: No OFD packet to send [07:06:20]OFD Sender: No OFD packet to send [07:06:25]OFD Sender: No OFD packet to send [07:06:30]OFD Sender: No OFD packet to send [07:06:35]OFD Sender: No OFD packet to send [07:06:40]OFD Sender: No OFD packet to send [07:06:45]OFD Sender: No OFD packet to send [07:06:50]OFD Sender: No OFD packet to send [07:06:55]OFD Sender: No OFD packet to send [07:07:00]OFD Sender: No OFD packet to send [07:07:05]OFD Sender: No OFD packet to send [07:07:10]OFD Sender: No OFD packet to send [07:07:15]OFD Sender: No OFD packet to send [07:07:20]OFD Sender: No OFD packet to send [07:07:25]OFD Sender: No OFD packet to send [07:07:30]OFD Sender: No OFD packet to send [07:07:35]OFD Sender: No OFD packet to send [07:07:40]OFD Sender: No OFD packet to send [07:07:45]OFD Sender: No OFD packet to send [07:07:50]OFD Sender: No OFD packet to send [07:07:55]OFD Sender: No OFD packet to send [07:08:00]OFD Sender: No OFD packet to send [07:08:05]OFD Sender: No OFD packet to send [07:08:10]OFD Sender: No OFD packet to send [07:08:15]OFD Sender: No OFD packet to send [07:08:20]OFD Sender: No OFD packet to send [07:08:25]OFD Sender: No OFD packet to send [07:08:30]OFD Sender: No OFD packet to send [07:08:35]OFD Sender: No OFD packet to send [07:08:40]OFD Sender: No OFD packet to send [07:08:45]OFD Sender: No OFD packet to send [07:08:50]OFD Sender: No OFD packet to send [07:08:55]OFD Sender: No OFD packet to send [07:09:00]OFD Sender: No OFD packet to send [07:09:05]OFD Sender: No OFD packet to send [07:09:10]OFD Sender: No OFD packet to send [07:09:10]accept exits with 9 [07:09:10]New connection [07:09:10]New thread 3066821988 created [07:09:10]Thread 3066965348 joined [07:09:10]Waiting for new connection... [07:09:10] Sock 9.Parse request [07:09:10]Sock 9.Check first char [07:09:10]Sock 9.First char is OK [07:09:10]request: POST /json_proto HTTP/1.0 [07:09:10]Method: POST [07:09:10]URL: /json_proto [07:09:10]Method is POST - this is cgi request [07:09:10]url: /json_proto [07:09:10]query_string will be loaded in cgi processing [07:09:10]execute_cgi json_proto POST (null) [07:09:10]execute_cgi path=json_proto method=POST [07:09:10]POST find Content-Length [07:09:10]Host: 172.17.44.195:8080 [07:09:10]Content-Length: 678 [07:09:10]Content-Type: application/json [07:09:10] [07:09:10]POST finish read [07:09:10]Found Content-Length = 678 [07:09:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962652", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:09:10]execute_script... [07:09:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962652", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:09:10]POST & json_proto [07:09:10]process_json_proto [07:09:10]json parsed OK: [07:09:10]protocol is kg_v1.0 [07:09:10]action value=close_receipt [07:09:10]process_action close_receipt [07:09:10]cmd_close_receipt [07:09:10]MH_GetDate [07:09:10]Write to MH i2c: F0 00 00 B6 24 C9 [07:09:10]Write i2c OK [07:09:10]MH_I2C_Read... [07:09:10]Read from MH i2c: F0 [07:09:10]MH_I2C_Read... [07:09:10]Read from MH i2c: F0 09 00 [07:09:10]MH_I2C_Read... [07:09:10]Read from MH i2c: F0 09 00 B6 24 00 9A AC 14 67 82 C9 CF 66 13 [07:09:10]GetLastDocTimeStamp 1729407960 [07:09:10]current date 1729408154 [07:09:10]FM_GetShiftState [07:09:10]SAM_PROTO_GetShiftState [07:09:10]wFMCommunicate request_size=4 [07:09:10]MH_SAM_APDU [07:09:10]CAPDU: 80 13 01 00 [07:09:10]Write to MH i2c: E2 08 00 B7 24 80 13 01 00 00 00 00 00 58 [07:09:10]Write i2c OK [07:09:10]MH_I2C_Read... [07:09:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:09:10]Read from MH i2c: E2 [07:09:10]MH_I2C_Read... [07:09:10]Read from MH i2c: E2 0E 00 [07:09:10]MH_I2C_Read... [07:09:10]Read from MH i2c: E2 0E 00 B7 24 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 72 [07:09:10]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [07:09:10]wFMCommunicate OK [07:09:10]SAM_PROTO_GetShiftState done [07:09:10]FM_GetShiftState done [07:09:10]opened in 1729383750 [07:09:10]opened+sec_in_day 1729470150 [07:09:10]quantity*price = 50041 [07:09:10]sum+1 = 50042 [07:09:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 48 20.10.2024 07:09 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227200 ФПД: 77940566929232 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T070914&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227200&fm=77940566929232&tin=02508201610067®Number=0000000000091685&sum=50000 [07:09:12]StoreToDocumentArchive [07:09:12]shift 533 fd 227200 [07:09:12]save to /storage/0533/doc_00227200 [07:09:12]save last doc name /storage/0533/doc_00227200 to /storage/kkm_last_doc_name [07:09:12]save OK [07:09:12]Clear old archive folders... [07:09:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:09:12]tlvbuf is 004EF4E0 [07:09:12]SAM_PROTO_ClearQueue [07:09:12]wFMCommunicate request_size=4 [07:09:12]MH_SAM_APDU [07:09:12]CAPDU: 80 09 00 00 [07:09:12]Write to MH i2c: E2 08 00 C4 24 80 09 00 00 00 00 00 00 5A [07:09:12]Write i2c OK [07:09:12]MH_I2C_Read... [07:09:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:09:12]Read from MH i2c: E2 [07:09:12]MH_I2C_Read... [07:09:12]Read from MH i2c: E2 03 00 [07:09:12]MH_I2C_Read... [07:09:12]Read from MH i2c: E2 03 00 C4 24 00 90 00 5C [07:09:12]RAPDU: 90 00 [07:09:12]wFMCommunicate OK [07:09:12]SAM_PROTO_ClearQueue done [07:09:12]KKMCreateOFDPacket [07:09:12]OFDProtocolAddRootSTLVToBuf [07:09:12]FM_MakeSignedData [07:09:12]FM_MakeSignedData [07:09:12]SAM_PROTO_SignData [07:09:12]wFMCommunicate request_size=4 [07:09:12]MH_SAM_APDU [07:09:12]CAPDU: 80 0D 01 02 [07:09:12]Write to MH i2c: E2 08 00 C5 24 80 0D 01 02 00 00 00 00 62 [07:09:12]Write i2c OK [07:09:12]MH_I2C_Read... [07:09:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:09:12]Read from MH i2c: E2 [07:09:12]MH_I2C_Read... [07:09:12]Read from MH i2c: E2 03 00 [07:09:12]MH_I2C_Read... [07:09:12]Read from MH i2c: E2 03 00 C5 24 00 90 00 5D [07:09:12]RAPDU: 90 00 [07:09:12]wFMCommunicate OK [07:09:12]wFMCommunicate request_size=255 [07:09:12]MH_SAM_APDU [07:09:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 9A AC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 80 77 03 00 35 04 06 00 46 [07:09:12]Write to MH i2c: E2 02 01 C6 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 9A AC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 80 77 03 00 35 04 06 00 46 00 00 41 [07:09:12]Write i2c OK [07:09:12]MH_I2C_Read... [07:09:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:09:12]Read from MH i2c: E2 [07:09:12]MH_I2C_Read... [07:09:12]Read from MH i2c: E2 03 00 [07:09:12]MH_I2C_Read... [07:09:12]Read from MH i2c: E2 03 00 C6 24 00 90 00 5E [07:09:12]RAPDU: 90 00 [07:09:12]wFMCommunicate OK [07:09:12]wFMCommunicate request_size=10 [07:09:12]MH_SAM_APDU [07:09:12]CAPDU: 80 0D 02 02 05 E2 F3 CE 2F 50 [07:09:12]Write to MH i2c: E2 0D 00 C7 24 80 0D 02 02 05 00 E2 F3 CE 2F 50 00 00 91 [07:09:12]Write i2c OK [07:09:12]MH_I2C_Read... [07:09:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:09:12]Read from MH i2c: E2 [07:09:12]MH_I2C_Read... [07:09:12]Read from MH i2c: E2 03 00 [07:09:12]MH_I2C_Read... [07:09:12]Read from MH i2c: E2 03 00 C7 24 00 90 00 5F [07:09:12]RAPDU: 90 00 [07:09:12]wFMCommunicate OK [07:09:12]wFMCommunicate request_size=4 [07:09:12]MH_SAM_APDU [07:09:12]CAPDU: 80 0D 03 02 [07:09:12]Write to MH i2c: E2 08 00 C8 24 80 0D 03 02 00 00 00 00 67 [07:09:12]Write i2c OK [07:09:12]MH_I2C_Read... [07:09:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:09:12]Read from MH i2c: E2 [07:09:12]MH_I2C_Read... [07:09:12]Read from MH i2c: E2 0B 00 [07:09:12]MH_I2C_Read... [07:09:12]Read from MH i2c: E2 0B 00 C8 24 00 E5 92 DD 67 85 DE 57 B8 90 00 95 [07:09:12]RAPDU: E5 92 DD 67 85 DE 57 B8 90 00 [07:09:12]wFMCommunicate OK [07:09:12]SAM_PROTO_SignData done [07:09:12]FM_MakeSignedData done [07:09:12]CreateOFDProtocolMessage [07:09:12]wFMCommunicate request_size=4 [07:09:12]MH_SAM_APDU [07:09:12]CAPDU: 80 11 00 00 [07:09:12]Write to MH i2c: E2 08 00 C9 24 80 11 00 00 00 00 00 00 67 [07:09:12]Write i2c OK [07:09:12]MH_I2C_Read... [07:09:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:09:12]Read from MH i2c: E2 [07:09:12]MH_I2C_Read... [07:09:12]Read from MH i2c: E2 17 00 [07:09:12]MH_I2C_Read... [07:09:12]Read from MH i2c: E2 17 00 C9 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 BE [07:09:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:09:12]wFMCommunicate OK [07:09:12]CreateOFDProtocolMessage done [07:09:12]OFDSenderStorePacket 227200 [07:09:12]StoreOFDPacket docnum=227200 [07:09:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 69 7B 07 01 9A 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 9A AC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 80 77 03 00 35 04 06 00 46 E2 F3 CE 2F 50 E5 92 DD 67 85 DE 57 B8 [07:09:12]CheckFolder [07:09:12]dirname=/storage/ofd_packets [07:09:12]CheckFolder done [07:09:12]ProducePacketName [07:09:12]name=ofd_packets/00227200 [07:09:12]NVStorageSaveData ofd_packets/00227200 [07:09:12]File name is /storage/ofd_packets/00227200 [07:09:12]Write 301 bytes [07:09:12]NVStorageSaveData done [07:09:12]OFDSenderStorePacket done [07:09:12]KKMCreateOFDPacket done [07:09:12]NVStorageSaveData kkm_last_timestamp [07:09:12]File name is /storage/kkm_last_timestamp [07:09:12]Write 4 bytes [07:09:12]NVStorageSaveData done [07:09:12]ExternCall_PrintAddStr [07:09:12]wPrintStart [07:09:12]Write to MH i2c: 01 00 00 CA 24 EE [07:09:12]Write i2c OK [07:09:12]MH_I2C_Read... [07:09:12]Read from MH i2c: 01 [07:09:12]MH_I2C_Read... [07:09:12]Read from MH i2c: 01 07 00 [07:09:12]MH_I2C_Read... [07:09:12]Read from MH i2c: 01 07 00 CA 24 00 00 00 00 00 FF 0F 03 [07:09:12]RasterBufferAndPrint [07:09:12]line Счет N : (1)1962652 [07:09:12]line ИНН: 02508201610067 [07:09:12]line Контрольно-Кассовый Чек [07:09:12]line ПРОДАЖА [07:09:12]line ТРК (МРК, ГНК) : 33 [07:09:12]line Товар: 2710124130 [07:09:12]line Аи-92-К-5 [07:09:12]line 7.480 * 66.90 [07:09:12]line = 500.41 [07:09:12]line НДС 12% НСП 1% [07:09:12]line > о реализуемом товаре [07:09:12]line ОКРУГЛЕНИЕ: -0.41 [07:09:12]line ИТОГО: 500.00 [07:09:12]line Внесено: 500.00 [07:09:12]line СДАЧА: 0.00 [07:09:12]line НСП 1% : 4.43 [07:09:12]line НДС 12% : 53.14 [07:09:12]line Наличными: 500.00 [07:09:12]line Безнал.: 0.00 [07:09:12]line Место: АЗС № 133 "Партнер Нефть" [07:09:12]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [07:09:12]line СНО: Общий режим [07:09:12]line Чек 48 20.10.2024 07:09 [07:09:12]line Смена: 533 ФФД: 1.0 [07:09:12]line ЗНМ: 0300000091 [07:09:12]line РНМ: 0000000000091685 [07:09:12]line Версия ККМ: 001 [07:09:12]line ФМ: 0000000000871839 [07:09:12]line ФД: 227200 [07:09:12]line ФПД: 77940566929232 [07:09:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T070914&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227200&fm=77940566929232&tin=02508201610067®Number=0000000000091685&sum=50000 [07:09:12]OFD Sender: Processing packet 227200 [packets to send 38, broken 37] [07:09:12]ProducePacketName [07:09:12]name=ofd_packets/00227200 [07:09:12]OFD Sender: To server: pG, [07:09:12]CommunicateWithHost lk.salyk.kg:30040 [07:09:12]ConnectInit lk.salyk.kg [07:09:12]written 0, free lines is 4095 [07:09:13]Connected sock=10 [07:09: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 33 39 0F 01 00 00 69 7B 07 01 9A 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 9A AC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 80 77 03 00 35 04 06 00 46 E2 F3 CE 2F 50 E5 92 DD 67 85 DE 57 B8 [07:09: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 33 39 4F 00 00 00 9F 11 47 00 F2 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 80 77 03 00 F4 03 04 00 9A 57 14 67 B6 04 01 00 00 9C 12 68 55 6B 25 19 F8 [07:09:13]CommunicateWithHost err = 0 [07:09:13]CheckOFDResponse [07:09:13]1017 (14) - 77093643461234 [07:09:13]1041 (16) - 0000000000871839 [07:09:13]1040 (4) - 227200 [07:09:13]1012 (4) - 20.10.2024 01:06 [07:09:13]1206 (1) - 0 [07:09:13]OFD Sender: Remove packet 227200 [07:09:13]ProducePacketName [07:09:13]name=ofd_packets/00227200 [07:09:13]NVStorageDeleteData [07:09:13]Write to MH i2c: 01 00 00 F4 24 18 [07:09:13]Write i2c OK [07:09:13]MH_I2C_Read... [07:09:13]Read from MH i2c: 01 [07:09:13]MH_I2C_Read... [07:09:13]Read from MH i2c: 01 07 00 [07:09:13]MH_I2C_Read... [07:09:13]Read from MH i2c: 01 07 00 F4 24 00 00 00 00 00 12 0D 3E [07:09:13]RasterBufferAndPrint [07:09:13]line [07:09:13]line [07:09:13]line [07:09:13]line [07:09:13]line [07:09:13]written 0, free lines is 3352 [07:09:13]process_action close_receipt done [07:09:13]requested_data is exist [07:09:13]produce_requested_data [07:09:13]requested_item fm.sn is exist - process it [07:09:13]wFMCommunicate request_size=4 [07:09:13]MH_SAM_APDU [07:09:13]CAPDU: 80 11 00 00 [07:09:13]Write to MH i2c: E2 08 00 FB 24 80 11 00 00 00 00 00 00 99 [07:09:13]Write i2c OK [07:09:13]MH_I2C_Read... [07:09:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:09:13]Read from MH i2c: E2 [07:09:13]MH_I2C_Read... [07:09:13]Read from MH i2c: E2 17 00 [07:09:13]MH_I2C_Read... [07:09:13]Read from MH i2c: E2 17 00 FB 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F0 [07:09:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:09:13]wFMCommunicate OK [07:09:13]requested_item fd.num is exist - process it [07:09:13]SAM_PROTO_GetFieldsCounters [07:09:13]wFMCommunicate request_size=4 [07:09:13]MH_SAM_APDU [07:09:13]CAPDU: 80 13 00 00 [07:09:13]Write to MH i2c: E2 08 00 FC 24 80 13 00 00 00 00 00 00 9C [07:09:13]Write i2c OK [07:09:13]MH_I2C_Read... [07:09:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:09:13]Read from MH i2c: E2 [07:09:13]MH_I2C_Read... [07:09:13]Read from MH i2c: E2 62 00 [07:09:13]MH_I2C_Read... [07:09:13]Read from MH i2c: E2 62 00 FC 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 80 77 03 00 0E 04 04 00 15 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 66 [07:09: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 80 77 03 00 0E 04 04 00 15 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 [07:09:13]wFMCommunicate OK [07:09:13]SAM_PROTO_GetFieldsCounters done [07:09:13]requested_item shift.num is exist - process it [07:09:13]requested_item shift.opened is exist - process it [07:09:13]req_shift_opened [07:09:13]FM_GetShiftState [07:09:13]SAM_PROTO_GetShiftState [07:09:13]wFMCommunicate request_size=4 [07:09:13]MH_SAM_APDU [07:09:13]CAPDU: 80 13 01 00 [07:09:13]Write to MH i2c: E2 08 00 FD 24 80 13 01 00 00 00 00 00 9E [07:09:13]Write i2c OK [07:09:13]MH_I2C_Read... [07:09:13]Read from MH i2c: E2 [07:09:13]MH_I2C_Read... [07:09:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:09:13]Read from MH i2c: E2 0E 00 [07:09:13]MH_I2C_Read... [07:09:13]Read from MH i2c: E2 0E 00 FD 24 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 B8 [07:09:13]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [07:09:13]wFMCommunicate OK [07:09:13]SAM_PROTO_GetShiftState done [07:09:13]FM_GetShiftState done [07:09:13]req_shift_opened done [07:09:13]requested_item shift.open_date is exist - process it [07:09:13]req_shift_open_date [07:09:13]req_shift_open_date done [07:09:13]produce_requested_data done [07:09:13]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227200,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [07:09:13]process_action_free close_receipt [07:09:13]json_value_free [07:09:13]json_value_free done [07:09:13]process_json_proto returns [07:09:13]Send response to host [07:09:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227200,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [07:09:13]free response buf [07:09:13]execute_script done [07:09:13]execute_script returns [07:09:13]free content buf [07:09:13]Sock 9.Close socket [07:09:13]Sock 9.Thread stoped [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:59]OFD Sender: No OFD packet to send [07:13:04]OFD Sender: No OFD packet to send [07:13:09]OFD Sender: No OFD packet to send [07:13:14]OFD Sender: No OFD packet to send [07:13:19]OFD Sender: No OFD packet to send [07:13:24]OFD Sender: No OFD packet to send [07:13:29]OFD Sender: No OFD packet to send [07:13:34]OFD Sender: No OFD packet to send [07:13:39]OFD Sender: No OFD packet to send [07:13:44]OFD Sender: No OFD packet to send [07:13:49]OFD Sender: No OFD packet to send [07:13:54]OFD Sender: No OFD packet to send [07:13:59]OFD Sender: No OFD packet to send [07:14:04]OFD Sender: No OFD packet to send [07:14:09]OFD Sender: No OFD packet to send [07:14:14]OFD Sender: No OFD packet to send [07:14:19]OFD Sender: No OFD packet to send [07:14:24]OFD Sender: No OFD packet to send [07:14:29]OFD Sender: No OFD packet to send [07:14:34]OFD Sender: No OFD packet to send [07:14:39]OFD Sender: No OFD packet to send [07:14:44]OFD Sender: No OFD packet to send [07:14:49]OFD Sender: No OFD packet to send [07:14:54]OFD Sender: No OFD packet to send [07:14:59]OFD Sender: No OFD packet to send [07:15:03]accept exits with 8 [07:15:03]New connection [07:15:03]New thread 3066965348 created [07:15:03]Thread 3066821988 joined [07:15:03]Waiting for new connection... [07:15:03] Sock 8.Parse request [07:15:03]Sock 8.Check first char [07:15:03]Sock 8.First char is OK [07:15:03]request: POST /json_proto HTTP/1.0 [07:15:03]Method: POST [07:15:03]URL: /json_proto [07:15:03]Method is POST - this is cgi request [07:15:03]url: /json_proto [07:15:03]query_string will be loaded in cgi processing [07:15:03]execute_cgi json_proto POST (null) [07:15:03]execute_cgi path=json_proto method=POST [07:15:03]POST find Content-Length [07:15:03]Host: 172.17.44.195:8080 [07:15:03]Content-Length: 680 [07:15:03]Content-Type: application/json [07:15:03] [07:15:03]POST finish read [07:15:03]Found Content-Length = 680 [07:15:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962653", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:15:03]execute_script... [07:15: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)1962653", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:15:03]POST & json_proto [07:15:03]process_json_proto [07:15:03]json parsed OK: [07:15:03]protocol is kg_v1.0 [07:15:03]action value=close_receipt [07:15:03]process_action close_receipt [07:15:03]cmd_close_receipt [07:15:03]MH_GetDate [07:15:03]Write to MH i2c: F0 00 00 FE 24 11 [07:15:03]Write i2c OK [07:15:03]MH_I2C_Read... [07:15:03]Read from MH i2c: F0 [07:15:03]MH_I2C_Read... [07:15:03]Read from MH i2c: F0 09 00 [07:15:03]MH_I2C_Read... [07:15:03]Read from MH i2c: F0 09 00 FE 24 00 FA AD 14 67 82 C9 CF 66 BC [07:15:03]GetLastDocTimeStamp 1729408154 [07:15:03]current date 1729408506 [07:15:03]FM_GetShiftState [07:15:03]SAM_PROTO_GetShiftState [07:15:03]wFMCommunicate request_size=4 [07:15:03]MH_SAM_APDU [07:15:03]CAPDU: 80 13 01 00 [07:15:03]Write to MH i2c: E2 08 00 FF 24 80 13 01 00 00 00 00 00 A0 [07:15:03]Write i2c OK [07:15:03]MH_I2C_Read... [07:15:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:15:03]Read from MH i2c: E2 [07:15:03]MH_I2C_Read... [07:15:03]Read from MH i2c: E2 0E 00 [07:15:03]MH_I2C_Read... [07:15:03]Read from MH i2c: E2 0E 00 FF 24 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 BA [07:15:03]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [07:15:03]wFMCommunicate OK [07:15:03]SAM_PROTO_GetShiftState done [07:15:03]FM_GetShiftState done [07:15:03]opened in 1729383750 [07:15:03]opened+sec_in_day 1729470150 [07:15:03]quantity*price = 150037 [07:15:03]sum+1 = 150039 [07:15:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 49 20.10.2024 07:15 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227201 ФПД: 141376473265794 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T071506&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227201&fm=141376473265794&tin=02508201610067®Number=0000000000091685&sum=150000 [07:15:04]StoreToDocumentArchive [07:15:04]shift 533 fd 227201 [07:15:04]save to /storage/0533/doc_00227201 [07:15:04]save last doc name /storage/0533/doc_00227201 to /storage/kkm_last_doc_name [07:15:04]save OK [07:15:04]Clear old archive folders... [07:15:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:15:04]tlvbuf is 004EED20 [07:15:04]SAM_PROTO_ClearQueue [07:15:04]wFMCommunicate request_size=4 [07:15:04]MH_SAM_APDU [07:15:04]CAPDU: 80 09 00 00 [07:15:04]Write to MH i2c: E2 08 00 0C 25 80 09 00 00 00 00 00 00 A3 [07:15:04]Write i2c OK [07:15:04]MH_I2C_Read... [07:15:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:15:04]Read from MH i2c: E2 [07:15:04]MH_I2C_Read... [07:15:04]Read from MH i2c: E2 03 00 [07:15:04]MH_I2C_Read... [07:15:04]Read from MH i2c: E2 03 00 0C 25 00 90 00 A5 [07:15:04]RAPDU: 90 00 [07:15:04]wFMCommunicate OK [07:15:04]SAM_PROTO_ClearQueue done [07:15:04]KKMCreateOFDPacket [07:15:04]OFDProtocolAddRootSTLVToBuf [07:15:04]FM_MakeSignedData [07:15:04]FM_MakeSignedData [07:15:04]SAM_PROTO_SignData [07:15:04]wFMCommunicate request_size=4 [07:15:04]MH_SAM_APDU [07:15:04]CAPDU: 80 0D 01 02 [07:15:04]Write to MH i2c: E2 08 00 0D 25 80 0D 01 02 00 00 00 00 AB [07:15:04]Write i2c OK [07:15:04]MH_I2C_Read... [07:15:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:15:04]Read from MH i2c: E2 [07:15:04]MH_I2C_Read... [07:15:04]Read from MH i2c: E2 03 00 [07:15:04]MH_I2C_Read... [07:15:04]Read from MH i2c: E2 03 00 0D 25 00 90 00 A6 [07:15:04]RAPDU: 90 00 [07:15:04]wFMCommunicate OK [07:15:04]wFMCommunicate request_size=255 [07:15:04]MH_SAM_APDU [07:15: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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 FA AD 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 81 77 03 00 35 04 06 00 80 94 C6 77 [07:15:04]Write to MH i2c: E2 02 01 0E 25 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 FA AD 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 81 77 03 00 35 04 06 00 80 94 C6 77 00 00 65 [07:15:04]Write i2c OK [07:15:04]MH_I2C_Read... [07:15:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:15:04]Read from MH i2c: E2 [07:15:04]MH_I2C_Read... [07:15:04]Read from MH i2c: E2 03 00 [07:15:04]MH_I2C_Read... [07:15:04]Read from MH i2c: E2 03 00 0E 25 00 90 00 A7 [07:15:04]RAPDU: 90 00 [07:15:04]wFMCommunicate OK [07:15:04]wFMCommunicate request_size=7 [07:15:04]MH_SAM_APDU [07:15:04]CAPDU: 80 0D 02 02 02 F6 82 [07:15:04]Write to MH i2c: E2 0A 00 0F 25 80 0D 02 02 02 00 F6 82 00 00 2A [07:15:04]Write i2c OK [07:15:04]MH_I2C_Read... [07:15:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:15:04]Read from MH i2c: E2 [07:15:04]MH_I2C_Read... [07:15:04]Read from MH i2c: E2 03 00 [07:15:04]MH_I2C_Read... [07:15:04]Read from MH i2c: E2 03 00 0F 25 00 90 00 A8 [07:15:04]RAPDU: 90 00 [07:15:04]wFMCommunicate OK [07:15:04]wFMCommunicate request_size=4 [07:15:04]MH_SAM_APDU [07:15:04]CAPDU: 80 0D 03 02 [07:15:04]Write to MH i2c: E2 08 00 10 25 80 0D 03 02 00 00 00 00 B0 [07:15:04]Write i2c OK [07:15:04]MH_I2C_Read... [07:15:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:15:04]Read from MH i2c: E2 [07:15:04]MH_I2C_Read... [07:15:04]Read from MH i2c: E2 0B 00 [07:15:04]MH_I2C_Read... [07:15:04]Read from MH i2c: E2 0B 00 10 25 00 55 12 CD CD FF A7 33 99 90 00 24 [07:15:04]RAPDU: 55 12 CD CD FF A7 33 99 90 00 [07:15:04]wFMCommunicate OK [07:15:04]SAM_PROTO_SignData done [07:15:04]FM_MakeSignedData done [07:15:04]CreateOFDProtocolMessage [07:15:04]wFMCommunicate request_size=4 [07:15:04]MH_SAM_APDU [07:15:04]CAPDU: 80 11 00 00 [07:15:04]Write to MH i2c: E2 08 00 11 25 80 11 00 00 00 00 00 00 B0 [07:15:04]Write i2c OK [07:15:04]MH_I2C_Read... [07:15:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:15:04]Read from MH i2c: E2 [07:15:04]MH_I2C_Read... [07:15:04]Read from MH i2c: E2 17 00 [07:15:04]MH_I2C_Read... [07:15:04]Read from MH i2c: E2 17 00 11 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 07 [07:15:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:15:04]wFMCommunicate OK [07:15:04]CreateOFDProtocolMessage done [07:15:04]OFDSenderStorePacket 227201 [07:15:04]StoreOFDPacket docnum=227201 [07:15:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 82 6C 04 01 5D 5B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 FA AD 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 81 77 03 00 35 04 06 00 80 94 C6 77 F6 82 55 12 CD CD FF A7 33 99 [07:15:04]CheckFolder [07:15:04]dirname=/storage/ofd_packets [07:15:04]CheckFolder done [07:15:04]ProducePacketName [07:15:04]name=ofd_packets/00227201 [07:15:04]NVStorageSaveData ofd_packets/00227201 [07:15:04]File name is /storage/ofd_packets/00227201 [07:15:04]Write 298 bytes [07:15:04]NVStorageSaveData done [07:15:04]OFDSenderStorePacket done [07:15:04]KKMCreateOFDPacket done [07:15:04]NVStorageSaveData kkm_last_timestamp [07:15:04]File name is /storage/kkm_last_timestamp [07:15:04]Write 4 bytes [07:15:04]NVStorageSaveData done [07:15:04]ExternCall_PrintAddStr [07:15:04]wPrintStart [07:15:04]Write to MH i2c: 01 00 00 12 25 37 [07:15:04]Write i2c OK [07:15:04]MH_I2C_Read... [07:15:04]Read from MH i2c: 01 [07:15:04]MH_I2C_Read... [07:15:04]Read from MH i2c: 01 07 00 [07:15:04]MH_I2C_Read... [07:15:04]Read from MH i2c: 01 07 00 12 25 00 00 00 00 00 FF 0F 4C [07:15:04]RasterBufferAndPrint [07:15:04]line Счет N : (1)1962653 [07:15:04]line ИНН: 02508201610067 [07:15:04]line Контрольно-Кассовый Чек [07:15:04]line ПРОДАЖА [07:15:04]line ТРК (МРК, ГНК) : 31 [07:15:04]line Товар: 2710194210 [07:15:04]line ДТ-К-5 [07:15:04]line 19.690 * 76.20 [07:15:04]line = 1500.38 [07:15:04]line НДС 12% НСП 1% [07:15:04]line > о реализуемом товаре [07:15:04]line ОКРУГЛЕНИЕ: -0.38 [07:15:04]line ИТОГО: 1500.00 [07:15:04]line Внесено: 1500.00 [07:15:04]line СДАЧА: 0.00 [07:15:04]line НСП 1% : 13.28 [07:15:04]line НДС 12% : 159.33 [07:15:04]line Наличными: 1500.00 [07:15:04]line Безнал.: 0.00 [07:15:04]line Место: АЗС № 133 "Партнер Нефть" [07:15:04]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [07:15:04]line СНО: Общий режим [07:15:04]line Чек 49 20.10.2024 07:15 [07:15:04]line Смена: 533 ФФД: 1.0 [07:15:04]line ЗНМ: 0300000091 [07:15:04]line РНМ: 0000000000091685 [07:15:04]line Версия ККМ: 001 [07:15:04]line ФМ: 0000000000871839 [07:15:04]line ФД: 227201 [07:15:04]line ФПД: 141376473265794 [07:15:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T071506&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227201&fm=141376473265794&tin=02508201610067®Number=0000000000091685&sum=150000 [07:15:05]OFD Sender: Processing packet 227201 [packets to send 38, broken 37] [07:15:05]ProducePacketName [07:15:05]name=ofd_packets/00227201 [07:15:05]OFD Sender: To server: pG, [07:15:05]CommunicateWithHost lk.salyk.kg:30040 [07:15:05]ConnectInit lk.salyk.kg [07:15:05]written 0, free lines is 4095 [07:15:05]Connected sock=10 [07:15:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 82 6C 04 01 5D 5B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 FA AD 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 81 77 03 00 35 04 06 00 80 94 C6 77 F6 82 55 12 CD CD FF A7 33 99 [07:15:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 DF 89 47 00 95 B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 81 77 03 00 F4 03 04 00 FA 58 14 67 B6 04 01 00 00 19 D1 FE 4D FB 9D D5 F5 [07:15:05]CommunicateWithHost err = 0 [07:15:05]CheckOFDResponse [07:15:05]1017 (14) - 77093643461234 [07:15:05]1041 (16) - 0000000000871839 [07:15:05]1040 (4) - 227201 [07:15:05]1012 (4) - 20.10.2024 01:12 [07:15:05]1206 (1) - 0 [07:15:05]OFD Sender: Remove packet 227201 [07:15:05]ProducePacketName [07:15:05]name=ofd_packets/00227201 [07:15:05]NVStorageDeleteData [07:15:05]Write to MH i2c: 01 00 00 3C 25 61 [07:15:05]Write i2c OK [07:15:05]MH_I2C_Read... [07:15:05]Read from MH i2c: 01 [07:15:05]MH_I2C_Read... [07:15:05]Read from MH i2c: 01 07 00 [07:15:05]MH_I2C_Read... [07:15:05]Read from MH i2c: 01 07 00 3C 25 00 00 00 00 00 12 0D 87 [07:15:05]RasterBufferAndPrint [07:15:05]line [07:15:05]line [07:15:05]line [07:15:05]line [07:15:05]line [07:15:05]written 0, free lines is 3352 [07:15:05]process_action close_receipt done [07:15:05]requested_data is exist [07:15:05]produce_requested_data [07:15:05]requested_item fm.sn is exist - process it [07:15:05]wFMCommunicate request_size=4 [07:15:05]MH_SAM_APDU [07:15:05]CAPDU: 80 11 00 00 [07:15:05]Write to MH i2c: E2 08 00 43 25 80 11 00 00 00 00 00 00 E2 [07:15:05]Write i2c OK [07:15:05]MH_I2C_Read... [07:15:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:15:05]Read from MH i2c: E2 [07:15:05]MH_I2C_Read... [07:15:05]Read from MH i2c: E2 17 00 [07:15:05]MH_I2C_Read... [07:15:05]Read from MH i2c: E2 17 00 43 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 39 [07:15:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:15:05]wFMCommunicate OK [07:15:05]requested_item fd.num is exist - process it [07:15:05]SAM_PROTO_GetFieldsCounters [07:15:05]wFMCommunicate request_size=4 [07:15:05]MH_SAM_APDU [07:15:05]CAPDU: 80 13 00 00 [07:15:05]Write to MH i2c: E2 08 00 44 25 80 13 00 00 00 00 00 00 E5 [07:15:05]Write i2c OK [07:15:05]MH_I2C_Read... [07:15:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:15:05]Read from MH i2c: E2 [07:15:05]MH_I2C_Read... [07:15:05]Read from MH i2c: E2 62 00 [07:15:05]MH_I2C_Read... [07:15:05]Read from MH i2c: E2 62 00 44 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 81 77 03 00 0E 04 04 00 15 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 B3 [07:15: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 81 77 03 00 0E 04 04 00 15 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 [07:15:05]wFMCommunicate OK [07:15:05]SAM_PROTO_GetFieldsCounters done [07:15:05]requested_item shift.num is exist - process it [07:15:05]requested_item shift.opened is exist - process it [07:15:05]req_shift_opened [07:15:05]FM_GetShiftState [07:15:05]SAM_PROTO_GetShiftState [07:15:05]wFMCommunicate request_size=4 [07:15:05]MH_SAM_APDU [07:15:05]CAPDU: 80 13 01 00 [07:15:05]Write to MH i2c: E2 08 00 45 25 80 13 01 00 00 00 00 00 E7 [07:15:05]Write i2c OK [07:15:05]MH_I2C_Read... [07:15:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:15:05]Read from MH i2c: E2 [07:15:05]MH_I2C_Read... [07:15:05]Read from MH i2c: E2 0E 00 [07:15:05]MH_I2C_Read... [07:15:05]Read from MH i2c: E2 0E 00 45 25 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 01 [07:15:05]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [07:15:05]wFMCommunicate OK [07:15:05]SAM_PROTO_GetShiftState done [07:15:05]FM_GetShiftState done [07:15:05]req_shift_opened done [07:15:05]requested_item shift.open_date is exist - process it [07:15:05]req_shift_open_date [07:15:05]req_shift_open_date done [07:15:05]produce_requested_data done [07:15:05]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227201,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [07:15:05]process_action_free close_receipt [07:15:05]json_value_free [07:15:05]json_value_free done [07:15:05]process_json_proto returns [07:15:05]Send response to host [07:15:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227201,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [07:15:05]free response buf [07:15:05]execute_script done [07:15:05]execute_script returns [07:15:05]free content buf [07:15:05]Sock 8.Close socket [07:15:05]Sock 8.Thread stoped [07:15:05]OFD Sender: No OFD packet to send [07:15:10]OFD Sender: No OFD packet to send [07:15:15]OFD Sender: No OFD packet to send [07:15:20]OFD Sender: No OFD packet to send [07:15:25]OFD Sender: No OFD packet to send [07:15:30]OFD Sender: No OFD packet to send [07:15:35]OFD Sender: No OFD packet to send [07:15:40]OFD Sender: No OFD packet to send [07:15:45]OFD Sender: No OFD packet to send [07:15:50]OFD Sender: No OFD packet to send [07:15:55]OFD Sender: No OFD packet to send [07:16:00]OFD Sender: No OFD packet to send [07:16:05]OFD Sender: No OFD packet to send [07:16:10]OFD Sender: No OFD packet to send [07:16:15]OFD Sender: No OFD packet to send [07:16:20]OFD Sender: No OFD packet to send [07:16:25]OFD Sender: No OFD packet to send [07:16:30]OFD Sender: No OFD packet to send [07:16:35]OFD Sender: No OFD packet to send [07:16:41]OFD Sender: No OFD packet to send [07:16:46]OFD Sender: No OFD packet to send [07:16:51]OFD Sender: No OFD packet to send [07:16:56]OFD Sender: No OFD packet to send [07:17:01]OFD Sender: No OFD packet to send [07:17:06]OFD Sender: No OFD packet to send [07:17:11]OFD Sender: No OFD packet to send [07:17:16]OFD Sender: No OFD packet to send [07:17:21]OFD Sender: No OFD packet to send [07:17:26]OFD Sender: No OFD packet to send [07:17:31]OFD Sender: No OFD packet to send [07:17:36]OFD Sender: No OFD packet to send [07:17:41]OFD Sender: No OFD packet to send [07:17:46]OFD Sender: No OFD packet to send [07:17:51]OFD Sender: No OFD packet to send [07:17:56]OFD Sender: No OFD packet to send [07:18:01]OFD Sender: No OFD packet to send [07:18:06]OFD Sender: No OFD packet to send [07:18:07]accept exits with 9 [07:18:07]New connection [07:18:07]New thread 3066821988 created [07:18:07]Thread 3066965348 joined [07:18:07]Waiting for new connection... [07:18:07] Sock 9.Parse request [07:18:07]Sock 9.Check first char [07:18:07]Sock 9.First char is OK [07:18:07]request: POST /json_proto HTTP/1.0 [07:18:07]Method: POST [07:18:07]URL: /json_proto [07:18:07]Method is POST - this is cgi request [07:18:07]url: /json_proto [07:18:07]query_string will be loaded in cgi processing [07:18:07]execute_cgi json_proto POST (null) [07:18:07]execute_cgi path=json_proto method=POST [07:18:07]POST find Content-Length [07:18:07]Host: 172.17.44.195:8080 [07:18:07]Content-Length: 678 [07:18:07]Content-Type: application/json [07:18:07] [07:18:07]POST finish read [07:18:07]Found Content-Length = 678 [07:18:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962654", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:18:07]execute_script... [07:18:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962654", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:18:07]POST & json_proto [07:18:07]process_json_proto [07:18:07]json parsed OK: [07:18:07]protocol is kg_v1.0 [07:18:07]action value=close_receipt [07:18:07]process_action close_receipt [07:18:07]cmd_close_receipt [07:18:07]MH_GetDate [07:18:07]Write to MH i2c: F0 00 00 46 25 5A [07:18:07]Write i2c OK [07:18:07]MH_I2C_Read... [07:18:07]Read from MH i2c: F0 [07:18:07]MH_I2C_Read... [07:18:07]Read from MH i2c: F0 09 00 [07:18:07]MH_I2C_Read... [07:18:07]Read from MH i2c: F0 09 00 46 25 00 B3 AE 14 67 82 C9 CF 66 BF [07:18:07]GetLastDocTimeStamp 1729408506 [07:18:07]current date 1729408691 [07:18:07]FM_GetShiftState [07:18:07]SAM_PROTO_GetShiftState [07:18:07]wFMCommunicate request_size=4 [07:18:07]MH_SAM_APDU [07:18:07]CAPDU: 80 13 01 00 [07:18:07]Write to MH i2c: E2 08 00 47 25 80 13 01 00 00 00 00 00 E9 [07:18:07]Write i2c OK [07:18:07]MH_I2C_Read... [07:18:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:18:07]Read from MH i2c: E2 [07:18:07]MH_I2C_Read... [07:18:07]Read from MH i2c: E2 0E 00 [07:18:07]MH_I2C_Read... [07:18:07]Read from MH i2c: E2 0E 00 47 25 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 03 [07:18:07]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [07:18:07]wFMCommunicate OK [07:18:07]SAM_PROTO_GetShiftState done [07:18:07]FM_GetShiftState done [07:18:07]opened in 1729383750 [07:18:07]opened+sec_in_day 1729470150 [07:18:07]quantity*price = 70044 [07:18:07]sum+1 = 70046 [07:18:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 50 20.10.2024 07:18 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227202 ФПД: 58993768841781 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T071811&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227202&fm=58993768841781&tin=02508201610067®Number=0000000000091685&sum=70000 [07:18:08]StoreToDocumentArchive [07:18:08]shift 533 fd 227202 [07:18:08]save to /storage/0533/doc_00227202 [07:18:08]save last doc name /storage/0533/doc_00227202 to /storage/kkm_last_doc_name [07:18:08]save OK [07:18:08]Clear old archive folders... [07:18:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:18:08]tlvbuf is 0053C2D0 [07:18:08]SAM_PROTO_ClearQueue [07:18:08]wFMCommunicate request_size=4 [07:18:08]MH_SAM_APDU [07:18:08]CAPDU: 80 09 00 00 [07:18:08]Write to MH i2c: E2 08 00 54 25 80 09 00 00 00 00 00 00 EB [07:18:08]Write i2c OK [07:18:08]MH_I2C_Read... [07:18:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:18:08]Read from MH i2c: E2 [07:18:08]MH_I2C_Read... [07:18:08]Read from MH i2c: E2 03 00 [07:18:08]MH_I2C_Read... [07:18:08]Read from MH i2c: E2 03 00 54 25 00 90 00 ED [07:18:08]RAPDU: 90 00 [07:18:08]wFMCommunicate OK [07:18:08]SAM_PROTO_ClearQueue done [07:18:08]KKMCreateOFDPacket [07:18:08]OFDProtocolAddRootSTLVToBuf [07:18:08]FM_MakeSignedData [07:18:08]FM_MakeSignedData [07:18:08]SAM_PROTO_SignData [07:18:08]wFMCommunicate request_size=4 [07:18:08]MH_SAM_APDU [07:18:08]CAPDU: 80 0D 01 02 [07:18:08]Write to MH i2c: E2 08 00 55 25 80 0D 01 02 00 00 00 00 F3 [07:18:08]Write i2c OK [07:18:08]MH_I2C_Read... [07:18:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:18:08]Read from MH i2c: E2 [07:18:08]MH_I2C_Read... [07:18:08]Read from MH i2c: E2 03 00 [07:18:08]MH_I2C_Read... [07:18:08]Read from MH i2c: E2 03 00 55 25 00 90 00 EE [07:18:08]RAPDU: 90 00 [07:18:08]wFMCommunicate OK [07:18:08]wFMCommunicate request_size=255 [07:18:08]MH_SAM_APDU [07:18:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 32 00 00 00 F4 03 04 00 B3 AE 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 82 77 03 00 35 04 06 00 35 [07:18:08]Write to MH i2c: E2 02 01 56 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 32 00 00 00 F4 03 04 00 B3 AE 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 82 77 03 00 35 04 06 00 35 00 00 C7 [07:18:08]Write i2c OK [07:18:08]MH_I2C_Read... [07:18:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:18:08]Read from MH i2c: E2 [07:18:08]MH_I2C_Read... [07:18:08]Read from MH i2c: E2 03 00 [07:18:08]MH_I2C_Read... [07:18:08]Read from MH i2c: E2 03 00 56 25 00 90 00 EF [07:18:08]RAPDU: 90 00 [07:18:08]wFMCommunicate OK [07:18:08]wFMCommunicate request_size=10 [07:18:08]MH_SAM_APDU [07:18:08]CAPDU: 80 0D 02 02 05 A7 8E A2 C2 35 [07:18:08]Write to MH i2c: E2 0D 00 57 25 80 0D 02 02 05 00 A7 8E A2 C2 35 00 00 CE [07:18:08]Write i2c OK [07:18:08]MH_I2C_Read... [07:18:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:18:09]Read from MH i2c: E2 [07:18:09]MH_I2C_Read... [07:18:09]Read from MH i2c: E2 03 00 [07:18:09]MH_I2C_Read... [07:18:09]Read from MH i2c: E2 03 00 57 25 00 90 00 F0 [07:18:09]RAPDU: 90 00 [07:18:09]wFMCommunicate OK [07:18:09]wFMCommunicate request_size=4 [07:18:09]MH_SAM_APDU [07:18:09]CAPDU: 80 0D 03 02 [07:18:09]Write to MH i2c: E2 08 00 58 25 80 0D 03 02 00 00 00 00 F8 [07:18:09]Write i2c OK [07:18:09]MH_I2C_Read... [07:18:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:18:09]Read from MH i2c: E2 [07:18:09]MH_I2C_Read... [07:18:09]Read from MH i2c: E2 0B 00 [07:18:09]MH_I2C_Read... [07:18:09]Read from MH i2c: E2 0B 00 58 25 00 2F 26 13 15 6D 8F E7 E4 90 00 3D [07:18:09]RAPDU: 2F 26 13 15 6D 8F E7 E4 90 00 [07:18:09]wFMCommunicate OK [07:18:09]SAM_PROTO_SignData done [07:18:09]FM_MakeSignedData done [07:18:09]CreateOFDProtocolMessage [07:18:09]wFMCommunicate request_size=4 [07:18:09]MH_SAM_APDU [07:18:09]CAPDU: 80 11 00 00 [07:18:09]Write to MH i2c: E2 08 00 59 25 80 11 00 00 00 00 00 00 F8 [07:18:09]Write i2c OK [07:18:09]MH_I2C_Read... [07:18:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:18:09]Read from MH i2c: E2 [07:18:09]MH_I2C_Read... [07:18:09]Read from MH i2c: E2 17 00 [07:18:09]MH_I2C_Read... [07:18:09]Read from MH i2c: E2 17 00 59 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 4F [07:18:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:18:09]wFMCommunicate OK [07:18:09]CreateOFDProtocolMessage done [07:18:09]OFDSenderStorePacket 227202 [07:18:09]StoreOFDPacket docnum=227202 [07:18:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 0D D0 07 01 98 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 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 32 00 00 00 F4 03 04 00 B3 AE 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 82 77 03 00 35 04 06 00 35 A7 8E A2 C2 35 2F 26 13 15 6D 8F E7 E4 [07:18:09]CheckFolder [07:18:09]dirname=/storage/ofd_packets [07:18:09]CheckFolder done [07:18:09]ProducePacketName [07:18:09]name=ofd_packets/00227202 [07:18:09]NVStorageSaveData ofd_packets/00227202 [07:18:09]File name is /storage/ofd_packets/00227202 [07:18:09]Write 301 bytes [07:18:09]NVStorageSaveData done [07:18:09]OFDSenderStorePacket done [07:18:09]KKMCreateOFDPacket done [07:18:09]NVStorageSaveData kkm_last_timestamp [07:18:09]File name is /storage/kkm_last_timestamp [07:18:09]Write 4 bytes [07:18:09]NVStorageSaveData done [07:18:09]ExternCall_PrintAddStr [07:18:09]wPrintStart [07:18:09]Write to MH i2c: 01 00 00 5A 25 7F [07:18:09]Write i2c OK [07:18:09]MH_I2C_Read... [07:18:09]Read from MH i2c: 01 [07:18:09]MH_I2C_Read... [07:18:09]Read from MH i2c: 01 07 00 [07:18:09]MH_I2C_Read... [07:18:09]Read from MH i2c: 01 07 00 5A 25 00 00 00 00 00 FF 0F 94 [07:18:09]RasterBufferAndPrint [07:18:09]line Счет N : (1)1962654 [07:18:09]line ИНН: 02508201610067 [07:18:09]line Контрольно-Кассовый Чек [07:18:09]line ПРОДАЖА [07:18:09]line ТРК (МРК, ГНК) : 54 [07:18:09]line Товар: 2710124500 [07:18:09]line Аи-95-К-5 [07:18:09]line 9.440 * 74.20 [07:18:09]line = 700.45 [07:18:09]line НДС 12% НСП 1% [07:18:09]line > о реализуемом товаре [07:18:09]line ОКРУГЛЕНИЕ: -0.45 [07:18:09]line ИТОГО: 700.00 [07:18:09]line Внесено: 700.00 [07:18:09]line СДАЧА: 0.00 [07:18:09]line НСП 1% : 6.20 [07:18:09]line НДС 12% : 74.38 [07:18:09]line Наличными: 700.00 [07:18:09]line Безнал.: 0.00 [07:18:09]line Место: АЗС № 133 "Партнер Нефть" [07:18:09]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [07:18:09]line СНО: Общий режим [07:18:09]line Чек 50 20.10.2024 07:18 [07:18:09]line Смена: 533 ФФД: 1.0 [07:18:09]line ЗНМ: 0300000091 [07:18:09]line РНМ: 0000000000091685 [07:18:09]line Версия ККМ: 001 [07:18:09]line ФМ: 0000000000871839 [07:18:09]line ФД: 227202 [07:18:09]line ФПД: 58993768841781 [07:18:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T071811&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227202&fm=58993768841781&tin=02508201610067®Number=0000000000091685&sum=70000 [07:18:09]written 0, free lines is 4095 [07:18:09]OFD Sender: Processing packet 227202 [packets to send 38, broken 37] [07:18:09]ProducePacketName [07:18:09]name=ofd_packets/00227202 [07:18:09]OFD Sender: To server: pG, [07:18:09]CommunicateWithHost lk.salyk.kg:30040 [07:18:09]ConnectInit lk.salyk.kg [07:18:09]Connected sock=10 [07:18:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 0D D0 07 01 98 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 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 32 00 00 00 F4 03 04 00 B3 AE 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 82 77 03 00 35 04 06 00 35 A7 8E A2 C2 35 2F 26 13 15 6D 8F E7 E4 [07:18: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 33 39 4F 00 00 00 28 BB 47 00 35 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 82 77 03 00 F4 03 04 00 B2 59 14 67 B6 04 01 00 00 1B D0 AF 60 00 59 36 A5 [07:18:09]CommunicateWithHost err = 0 [07:18:09]CheckOFDResponse [07:18:09]1017 (14) - 77093643461234 [07:18:09]1041 (16) - 0000000000871839 [07:18:09]1040 (4) - 227202 [07:18:09]1012 (4) - 20.10.2024 01:15 [07:18:09]1206 (1) - 0 [07:18:09]OFD Sender: Remove packet 227202 [07:18:09]ProducePacketName [07:18:09]name=ofd_packets/00227202 [07:18:09]NVStorageDeleteData [07:18:09]Write to MH i2c: 01 00 00 84 25 A9 [07:18:09]Write i2c OK [07:18:09]MH_I2C_Read... [07:18:09]Read from MH i2c: 01 [07:18:09]MH_I2C_Read... [07:18:09]Read from MH i2c: 01 07 00 [07:18:09]MH_I2C_Read... [07:18:09]Read from MH i2c: 01 07 00 84 25 00 00 00 00 00 1A 0D D7 [07:18:09]RasterBufferAndPrint [07:18:09]line [07:18:09]line [07:18:09]line [07:18:09]line [07:18:09]line [07:18:09]written 0, free lines is 3361 [07:18:09]process_action close_receipt done [07:18:09]requested_data is exist [07:18:09]produce_requested_data [07:18:09]requested_item fm.sn is exist - process it [07:18:09]wFMCommunicate request_size=4 [07:18:09]MH_SAM_APDU [07:18:09]CAPDU: 80 11 00 00 [07:18:09]Write to MH i2c: E2 08 00 8B 25 80 11 00 00 00 00 00 00 2A [07:18:09]Write i2c OK [07:18:09]MH_I2C_Read... [07:18:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:18:09]Read from MH i2c: E2 [07:18:09]MH_I2C_Read... [07:18:09]Read from MH i2c: E2 17 00 [07:18:09]MH_I2C_Read... [07:18:09]Read from MH i2c: E2 17 00 8B 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 81 [07:18:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:18:09]wFMCommunicate OK [07:18:09]requested_item fd.num is exist - process it [07:18:09]SAM_PROTO_GetFieldsCounters [07:18:09]wFMCommunicate request_size=4 [07:18:09]MH_SAM_APDU [07:18:09]CAPDU: 80 13 00 00 [07:18:09]Write to MH i2c: E2 08 00 8C 25 80 13 00 00 00 00 00 00 2D [07:18:09]Write i2c OK [07:18:09]MH_I2C_Read... [07:18:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:18:09]Read from MH i2c: E2 [07:18:09]MH_I2C_Read... [07:18:09]Read from MH i2c: E2 62 00 [07:18:09]MH_I2C_Read... [07:18:09]Read from MH i2c: E2 62 00 8C 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 82 77 03 00 0E 04 04 00 15 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 FF [07:18: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 82 77 03 00 0E 04 04 00 15 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 [07:18:09]wFMCommunicate OK [07:18:09]SAM_PROTO_GetFieldsCounters done [07:18:09]requested_item shift.num is exist - process it [07:18:09]requested_item shift.opened is exist - process it [07:18:09]req_shift_opened [07:18:09]FM_GetShiftState [07:18:09]SAM_PROTO_GetShiftState [07:18:09]wFMCommunicate request_size=4 [07:18:09]MH_SAM_APDU [07:18:09]CAPDU: 80 13 01 00 [07:18:09]Write to MH i2c: E2 08 00 8D 25 80 13 01 00 00 00 00 00 2F [07:18:09]Write i2c OK [07:18:09]MH_I2C_Read... [07:18:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:18:09]Read from MH i2c: E2 [07:18:09]MH_I2C_Read... [07:18:09]Read from MH i2c: E2 0E 00 [07:18:09]MH_I2C_Read... [07:18:09]Read from MH i2c: E2 0E 00 8D 25 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 49 [07:18:09]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [07:18:09]wFMCommunicate OK [07:18:09]SAM_PROTO_GetShiftState done [07:18:09]FM_GetShiftState done [07:18:09]req_shift_opened done [07:18:09]requested_item shift.open_date is exist - process it [07:18:09]req_shift_open_date [07:18:09]req_shift_open_date done [07:18:09]produce_requested_data done [07:18:09]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227202,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [07:18:09]process_action_free close_receipt [07:18:09]json_value_free [07:18:09]json_value_free done [07:18:09]process_json_proto returns [07:18:09]Send response to host [07:18:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227202,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [07:18:09]free response buf [07:18:09]execute_script done [07:18:09]execute_script returns [07:18:09]free content buf [07:18:09]Sock 9.Close socket [07:18:09]Sock 9.Thread stoped [07:18:10]OFD Sender: No OFD packet to send [07:18:15]OFD Sender: No OFD packet to send [07:18:20]OFD Sender: No OFD packet to send [07:18:25]OFD Sender: No OFD packet to send [07:18:30]OFD Sender: No OFD packet to send [07:18:35]OFD Sender: No OFD packet to send [07:18:40]OFD Sender: No OFD packet to send [07:18:45]OFD Sender: No OFD packet to send [07:18:50]OFD Sender: No OFD packet to send [07:18:55]OFD Sender: No OFD packet to send [07:19:00]OFD Sender: No OFD packet to send [07:19:05]OFD Sender: No OFD packet to send [07:19:10]OFD Sender: No OFD packet to send [07:19:15]OFD Sender: No OFD packet to send [07:19:20]OFD Sender: No OFD packet to send [07:19:25]OFD Sender: No OFD packet to send [07:19:30]OFD Sender: No OFD packet to send [07:19:35]OFD Sender: No OFD packet to send [07:19:40]OFD Sender: No OFD packet to send [07:19:45]OFD Sender: No OFD packet to send [07:19:50]OFD Sender: No OFD packet to send [07:19:55]OFD Sender: No OFD packet to send [07:20:00]OFD Sender: No OFD packet to send [07:20:05]OFD Sender: No OFD packet to send [07:20:10]OFD Sender: No OFD packet to send [07:20:15]OFD Sender: No OFD packet to send [07:20:20]OFD Sender: No OFD packet to send [07:20:25]OFD Sender: No OFD packet to send [07:20:30]OFD Sender: No OFD packet to send [07:20:35]OFD Sender: No OFD packet to send [07:20:40]OFD Sender: No OFD packet to send [07:20:45]OFD Sender: No OFD packet to send [07:20:50]OFD Sender: No OFD packet to send [07:20:55]OFD Sender: No OFD packet to send [07:21:00]OFD Sender: No OFD packet to send [07:21:05]OFD Sender: No OFD packet to send [07:21:10]OFD Sender: No OFD packet to send [07:21:15]OFD Sender: No OFD packet to send [07:21:20]OFD Sender: No OFD packet to send [07:21:25]OFD Sender: No OFD packet to send [07:21:30]OFD Sender: No OFD packet to send [07:21:35]OFD Sender: No OFD packet to send [07:21:40]OFD Sender: No OFD packet to send [07:21:45]OFD Sender: No OFD packet to send [07:21:50]OFD Sender: No OFD packet to send [07:21:55]OFD Sender: No OFD packet to send [07:22:00]OFD Sender: No OFD packet to send [07:22:05]OFD Sender: No OFD packet to send [07:22:10]OFD Sender: No OFD packet to send [07:22:15]OFD Sender: No OFD packet to send [07:22:20]OFD Sender: No OFD packet to send [07:22:25]OFD Sender: No OFD packet to send [07:22:30]OFD Sender: No OFD packet to send [07:22:35]OFD Sender: No OFD packet to send [07:22:40]OFD Sender: No OFD packet to send [07:22:45]OFD Sender: No OFD packet to send [07:22:50]OFD Sender: No OFD packet to send [07:22:55]OFD Sender: No OFD packet to send [07:23:00]OFD Sender: No OFD packet to send [07:23:05]OFD Sender: No OFD packet to send [07:23:10]OFD Sender: No OFD packet to send [07:23:15]OFD Sender: No OFD packet to send [07:23:20]OFD Sender: No OFD packet to send [07:23:25]OFD Sender: No OFD packet to send [07:23:30]OFD Sender: No OFD packet to send [07:23:35]OFD Sender: No OFD packet to send [07:23:40]OFD Sender: No OFD packet to send [07:23:45]OFD Sender: No OFD packet to send [07:23:50]OFD Sender: No OFD packet to send [07:23:55]OFD Sender: No OFD packet to send [07:24:00]OFD Sender: No OFD packet to send [07:24:05]OFD Sender: No OFD packet to send [07:24:10]OFD Sender: No OFD packet to send [07:24:15]OFD Sender: No OFD packet to send [07:24:20]OFD Sender: No OFD packet to send [07:24:25]OFD Sender: No OFD packet to send [07:24:30]OFD Sender: No OFD packet to send [07:24:35]OFD Sender: No OFD packet to send [07:24:40]OFD Sender: No OFD packet to send [07:24:45]OFD Sender: No OFD packet to send [07:24:50]OFD Sender: No OFD packet to send [07:24:55]OFD Sender: No OFD packet to send [07:25:00]OFD Sender: No OFD packet to send [07:25:05]OFD Sender: No OFD packet to send [07:25:10]OFD Sender: No OFD packet to send [07:25:15]OFD Sender: No OFD packet to send [07:25:20]OFD Sender: No OFD packet to send [07:25:25]OFD Sender: No OFD packet to send [07:25:30]OFD Sender: No OFD packet to send [07:25:35]OFD Sender: No OFD packet to send [07:25:40]OFD Sender: No OFD packet to send [07:25:45]OFD Sender: No OFD packet to send [07:25:50]OFD Sender: No OFD packet to send [07:25:55]OFD Sender: No OFD packet to send [07:26:00]OFD Sender: No OFD packet to send [07:26:05]OFD Sender: No OFD packet to send [07:26:10]OFD Sender: No OFD packet to send [07:26:15]OFD Sender: No OFD packet to send [07:26:20]OFD Sender: No OFD packet to send [07:26:25]OFD Sender: No OFD packet to send [07:26:30]OFD Sender: No OFD packet to send [07:26:34]accept exits with 8 [07:26:34]New connection [07:26:34]New thread 3066965348 created [07:26:34]Thread 3066821988 joined [07:26:34]Waiting for new connection... [07:26:34] Sock 8.Parse request [07:26:34]Sock 8.Check first char [07:26:34]Sock 8.First char is OK [07:26:34]request: POST /json_proto HTTP/1.0 [07:26:34]Method: POST [07:26:34]URL: /json_proto [07:26:34]Method is POST - this is cgi request [07:26:34]url: /json_proto [07:26:34]query_string will be loaded in cgi processing [07:26:34]execute_cgi json_proto POST (null) [07:26:34]execute_cgi path=json_proto method=POST [07:26:34]POST find Content-Length [07:26:34]Host: 172.17.44.195:8080 [07:26:34]Content-Length: 675 [07:26:34]Content-Type: application/json [07:26:34] [07:26:34]POST finish read [07:26:34]Found Content-Length = 675 [07:26:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962655", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:26:34]execute_script... [07:26: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)1962655", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:26:34]POST & json_proto [07:26:34]process_json_proto [07:26:34]json parsed OK: [07:26:34]protocol is kg_v1.0 [07:26:34]action value=close_receipt [07:26:34]process_action close_receipt [07:26:34]cmd_close_receipt [07:26:34]MH_GetDate [07:26:34]Write to MH i2c: F0 00 00 8E 25 A2 [07:26:34]Write i2c OK [07:26:34]MH_I2C_Read... [07:26:34]Read from MH i2c: F0 [07:26:34]MH_I2C_Read... [07:26:34]Read from MH i2c: F0 09 00 [07:26:34]MH_I2C_Read... [07:26:34]Read from MH i2c: F0 09 00 8E 25 00 AE B0 14 67 82 C9 CF 66 04 [07:26:34]GetLastDocTimeStamp 1729408691 [07:26:34]current date 1729409198 [07:26:34]FM_GetShiftState [07:26:34]SAM_PROTO_GetShiftState [07:26:34]wFMCommunicate request_size=4 [07:26:34]MH_SAM_APDU [07:26:34]CAPDU: 80 13 01 00 [07:26:34]Write to MH i2c: E2 08 00 8F 25 80 13 01 00 00 00 00 00 31 [07:26:34]Write i2c OK [07:26:34]MH_I2C_Read... [07:26:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:26:34]Read from MH i2c: E2 [07:26:34]MH_I2C_Read... [07:26:34]Read from MH i2c: E2 0E 00 [07:26:34]MH_I2C_Read... [07:26:34]Read from MH i2c: E2 0E 00 8F 25 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 4B [07:26:34]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [07:26:34]wFMCommunicate OK [07:26:34]SAM_PROTO_GetShiftState done [07:26:34]FM_GetShiftState done [07:26:34]opened in 1729383750 [07:26:34]opened+sec_in_day 1729470150 [07:26:34]quantity*price = 50063 [07:26:34]sum+1 = 50064 [07:26:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 51 20.10.2024 07:26 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227203 ФПД: 226314008260731 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T072638&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227203&fm=226314008260731&tin=02508201610067®Number=0000000000091685&sum=50000 [07:26:36]StoreToDocumentArchive [07:26:36]shift 533 fd 227203 [07:26:36]save to /storage/0533/doc_00227203 [07:26:36]save last doc name /storage/0533/doc_00227203 to /storage/kkm_last_doc_name [07:26:36]save OK [07:26:36]Clear old archive folders... [07:26:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:26:36]tlvbuf is 0057AAC0 [07:26:36]SAM_PROTO_ClearQueue [07:26:36]wFMCommunicate request_size=4 [07:26:36]MH_SAM_APDU [07:26:36]CAPDU: 80 09 00 00 [07:26:36]Write to MH i2c: E2 08 00 9C 25 80 09 00 00 00 00 00 00 33 [07:26:36]Write i2c OK [07:26:36]MH_I2C_Read... [07:26:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:26:36]Read from MH i2c: E2 [07:26:36]MH_I2C_Read... [07:26:36]Read from MH i2c: E2 03 00 [07:26:36]MH_I2C_Read... [07:26:36]Read from MH i2c: E2 03 00 9C 25 00 90 00 35 [07:26:36]RAPDU: 90 00 [07:26:36]wFMCommunicate OK [07:26:36]SAM_PROTO_ClearQueue done [07:26:36]KKMCreateOFDPacket [07:26:36]OFDProtocolAddRootSTLVToBuf [07:26:36]FM_MakeSignedData [07:26:36]FM_MakeSignedData [07:26:36]SAM_PROTO_SignData [07:26:36]wFMCommunicate request_size=4 [07:26:36]MH_SAM_APDU [07:26:36]CAPDU: 80 0D 01 02 [07:26:36]Write to MH i2c: E2 08 00 9D 25 80 0D 01 02 00 00 00 00 3B [07:26:36]Write i2c OK [07:26:36]MH_I2C_Read... [07:26:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:26:36]Read from MH i2c: E2 [07:26:36]MH_I2C_Read... [07:26:36]Read from MH i2c: E2 03 00 [07:26:36]MH_I2C_Read... [07:26:36]Read from MH i2c: E2 03 00 9D 25 00 90 00 36 [07:26:36]RAPDU: 90 00 [07:26:36]wFMCommunicate OK [07:26:36]wFMCommunicate request_size=255 [07:26:36]MH_SAM_APDU [07:26:36]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 AE B0 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 83 77 03 00 35 04 06 00 CD D4 D6 11 [07:26:36]Write to MH i2c: E2 02 01 9E 25 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 AE B0 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 83 77 03 00 35 04 06 00 CD D4 D6 11 00 00 F8 [07:26:36]Write i2c OK [07:26:36]MH_I2C_Read... [07:26:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:26:36]Read from MH i2c: E2 [07:26:36]MH_I2C_Read... [07:26:36]Read from MH i2c: E2 03 00 [07:26:36]MH_I2C_Read... [07:26:36]Read from MH i2c: E2 03 00 9E 25 00 90 00 37 [07:26:36]RAPDU: 90 00 [07:26:36]wFMCommunicate OK [07:26:36]wFMCommunicate request_size=7 [07:26:36]MH_SAM_APDU [07:26:36]CAPDU: 80 0D 02 02 02 F0 7B [07:26:36]Write to MH i2c: E2 0A 00 9F 25 80 0D 02 02 02 00 F0 7B 00 00 AD [07:26:36]Write i2c OK [07:26:36]MH_I2C_Read... [07:26:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:26:36]Read from MH i2c: E2 [07:26:36]MH_I2C_Read... [07:26:36]Read from MH i2c: E2 03 00 [07:26:36]MH_I2C_Read... [07:26:36]Read from MH i2c: E2 03 00 9F 25 00 90 00 38 [07:26:36]RAPDU: 90 00 [07:26:36]wFMCommunicate OK [07:26:36]wFMCommunicate request_size=4 [07:26:36]MH_SAM_APDU [07:26:36]CAPDU: 80 0D 03 02 [07:26:36]Write to MH i2c: E2 08 00 A0 25 80 0D 03 02 00 00 00 00 40 [07:26:36]Write i2c OK [07:26:36]MH_I2C_Read... [07:26:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:26:36]Read from MH i2c: E2 [07:26:36]MH_I2C_Read... [07:26:36]Read from MH i2c: E2 0B 00 [07:26:36]MH_I2C_Read... [07:26:36]Read from MH i2c: E2 0B 00 A0 25 00 4F 0F 84 F2 26 18 62 80 90 00 35 [07:26:36]RAPDU: 4F 0F 84 F2 26 18 62 80 90 00 [07:26:36]wFMCommunicate OK [07:26:36]SAM_PROTO_SignData done [07:26:36]FM_MakeSignedData done [07:26:36]CreateOFDProtocolMessage [07:26:36]wFMCommunicate request_size=4 [07:26:36]MH_SAM_APDU [07:26:36]CAPDU: 80 11 00 00 [07:26:36]Write to MH i2c: E2 08 00 A1 25 80 11 00 00 00 00 00 00 40 [07:26:36]Write i2c OK [07:26:36]MH_I2C_Read... [07:26:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:26:36]Read from MH i2c: E2 [07:26:36]MH_I2C_Read... [07:26:36]Read from MH i2c: E2 17 00 [07:26:36]MH_I2C_Read... [07:26:36]Read from MH i2c: E2 17 00 A1 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 97 [07:26:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:26:36]wFMCommunicate OK [07:26:36]CreateOFDProtocolMessage done [07:26:36]OFDSenderStorePacket 227203 [07:26:36]StoreOFDPacket docnum=227203 [07:26:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 7C 07 04 01 96 27 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 AE B0 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 83 77 03 00 35 04 06 00 CD D4 D6 11 F0 7B 4F 0F 84 F2 26 18 62 80 [07:26:36]CheckFolder [07:26:36]dirname=/storage/ofd_packets [07:26:36]CheckFolder done [07:26:36]ProducePacketName [07:26:36]name=ofd_packets/00227203 [07:26:36]NVStorageSaveData ofd_packets/00227203 [07:26:36]File name is /storage/ofd_packets/00227203 [07:26:36]Write 298 bytes [07:26:36]NVStorageSaveData done [07:26:36]OFDSenderStorePacket done [07:26:36]KKMCreateOFDPacket done [07:26:36]NVStorageSaveData kkm_last_timestamp [07:26:36]File name is /storage/kkm_last_timestamp [07:26:36]Write 4 bytes [07:26:36]NVStorageSaveData done [07:26:36]ExternCall_PrintAddStr [07:26:36]wPrintStart [07:26:36]Write to MH i2c: 01 00 00 A2 25 C7 [07:26:36]Write i2c OK [07:26:36]MH_I2C_Read... [07:26:36]Read from MH i2c: 01 [07:26:36]MH_I2C_Read... [07:26:36]Read from MH i2c: 01 07 00 [07:26:36]MH_I2C_Read... [07:26:36]Read from MH i2c: 01 07 00 A2 25 00 00 00 00 00 FF 0F DC [07:26:36]RasterBufferAndPrint [07:26:36]line Счет N : (1)1962655 [07:26:36]line ИНН: 02508201610067 [07:26:36]line Контрольно-Кассовый Чек [07:26:36]line ПРОДАЖА [07:26:36]line ТРК (МРК, ГНК) : 11 [07:26:36]line Товар: 2710194210 [07:26:36]line ДТ-К-5 [07:26:36]line 6.570 * 76.20 [07:26:36]line = 500.63 [07:26:36]line НДС 12% НСП 1% [07:26:36]line > о реализуемом товаре [07:26:36]line ОКРУГЛЕНИЕ: -0.63 [07:26:36]line ИТОГО: 500.00 [07:26:36]line Внесено: 500.00 [07:26:36]line СДАЧА: 0.00 [07:26:36]line НСП 1% : 4.43 [07:26:36]line НДС 12% : 53.16 [07:26:36]line Наличными: 500.00 [07:26:36]line Безнал.: 0.00 [07:26:36]line Место: АЗС № 133 "Партнер Нефть" [07:26:36]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [07:26:36]line СНО: Общий режим [07:26:36]line Чек 51 20.10.2024 07:26 [07:26:36]line Смена: 533 ФФД: 1.0 [07:26:36]line ЗНМ: 0300000091 [07:26:36]line РНМ: 0000000000091685 [07:26:36]line Версия ККМ: 001 [07:26:36]line ФМ: 0000000000871839 [07:26:36]line ФД: 227203 [07:26:36]line ФПД: 226314008260731 [07:26:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T072638&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227203&fm=226314008260731&tin=02508201610067®Number=0000000000091685&sum=50000 [07:26:36]OFD Sender: Processing packet 227203 [packets to send 38, broken 37] [07:26:36]ProducePacketName [07:26:36]name=ofd_packets/00227203 [07:26:36]OFD Sender: To server: pG, [07:26:36]CommunicateWithHost lk.salyk.kg:30040 [07:26:36]ConnectInit lk.salyk.kg [07:26:36]written 0, free lines is 4095 [07:26:37]Connected sock=10 [07:26: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 33 39 0C 01 00 00 7C 07 04 01 96 27 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 AE B0 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 83 77 03 00 35 04 06 00 CD D4 D6 11 F0 7B 4F 0F 84 F2 26 18 62 80 [07:26: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 33 39 4F 00 00 00 2E 33 47 00 6C 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 33 39 10 04 04 00 83 77 03 00 F4 03 04 00 AE 5B 14 67 B6 04 01 00 00 51 6D A4 0B BD A5 7C 20 [07:26:37]CommunicateWithHost err = 0 [07:26:37]CheckOFDResponse [07:26:37]1017 (14) - 77093643461234 [07:26:37]1041 (16) - 0000000000871839 [07:26:37]1040 (4) - 227203 [07:26:37]1012 (4) - 20.10.2024 01:23 [07:26:37]1206 (1) - 0 [07:26:37]OFD Sender: Remove packet 227203 [07:26:37]ProducePacketName [07:26:37]name=ofd_packets/00227203 [07:26:37]NVStorageDeleteData [07:26:37]Write to MH i2c: 01 00 00 CC 25 F1 [07:26:37]Write i2c OK [07:26:37]MH_I2C_Read... [07:26:37]Read from MH i2c: 01 [07:26:37]MH_I2C_Read... [07:26:37]Read from MH i2c: 01 07 00 [07:26:37]MH_I2C_Read... [07:26:37]Read from MH i2c: 01 07 00 CC 25 00 00 00 00 00 09 0D 0E [07:26:37]RasterBufferAndPrint [07:26:37]line [07:26:37]line [07:26:37]line [07:26:37]line [07:26:37]line [07:26:37]written 0, free lines is 3344 [07:26:37]process_action close_receipt done [07:26:37]requested_data is exist [07:26:37]produce_requested_data [07:26:37]requested_item fm.sn is exist - process it [07:26:37]wFMCommunicate request_size=4 [07:26:37]MH_SAM_APDU [07:26:37]CAPDU: 80 11 00 00 [07:26:37]Write to MH i2c: E2 08 00 D3 25 80 11 00 00 00 00 00 00 72 [07:26:37]Write i2c OK [07:26:37]MH_I2C_Read... [07:26:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:26:37]Read from MH i2c: E2 [07:26:37]MH_I2C_Read... [07:26:37]Read from MH i2c: E2 17 00 [07:26:37]MH_I2C_Read... [07:26:37]Read from MH i2c: E2 17 00 D3 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C9 [07:26:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:26:37]wFMCommunicate OK [07:26:37]requested_item fd.num is exist - process it [07:26:37]SAM_PROTO_GetFieldsCounters [07:26:37]wFMCommunicate request_size=4 [07:26:37]MH_SAM_APDU [07:26:37]CAPDU: 80 13 00 00 [07:26:37]Write to MH i2c: E2 08 00 D4 25 80 13 00 00 00 00 00 00 75 [07:26:37]Write i2c OK [07:26:37]MH_I2C_Read... [07:26:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:26:37]Read from MH i2c: E2 [07:26:37]MH_I2C_Read... [07:26:37]Read from MH i2c: E2 62 00 [07:26:37]MH_I2C_Read... [07:26:37]Read from MH i2c: E2 62 00 D4 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 83 77 03 00 0E 04 04 00 15 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 4B [07:26: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 83 77 03 00 0E 04 04 00 15 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 [07:26:37]wFMCommunicate OK [07:26:37]SAM_PROTO_GetFieldsCounters done [07:26:37]requested_item shift.num is exist - process it [07:26:37]requested_item shift.opened is exist - process it [07:26:37]req_shift_opened [07:26:37]FM_GetShiftState [07:26:37]SAM_PROTO_GetShiftState [07:26:37]wFMCommunicate request_size=4 [07:26:37]MH_SAM_APDU [07:26:37]CAPDU: 80 13 01 00 [07:26:37]Write to MH i2c: E2 08 00 D5 25 80 13 01 00 00 00 00 00 77 [07:26:37]Write i2c OK [07:26:37]MH_I2C_Read... [07:26:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:26:37]Read from MH i2c: E2 [07:26:37]MH_I2C_Read... [07:26:37]Read from MH i2c: E2 0E 00 [07:26:37]MH_I2C_Read... [07:26:37]Read from MH i2c: E2 0E 00 D5 25 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 91 [07:26:37]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [07:26:37]wFMCommunicate OK [07:26:37]SAM_PROTO_GetShiftState done [07:26:37]FM_GetShiftState done [07:26:37]req_shift_opened done [07:26:37]requested_item shift.open_date is exist - process it [07:26:37]req_shift_open_date [07:26:37]req_shift_open_date done [07:26:37]produce_requested_data done [07:26:37]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227203,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [07:26:37]process_action_free close_receipt [07:26:37]json_value_free [07:26:37]json_value_free done [07:26:37]process_json_proto returns [07:26:37]Send response to host [07:26:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227203,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [07:26:37]free response buf [07:26:37]execute_script done [07:26:37]execute_script returns [07:26:37]free content buf [07:26:37]Sock 8.Close socket [07:26:37]Sock 8.Thread stoped [07:26:37]OFD Sender: No OFD packet to send [07:26:42]OFD Sender: No OFD packet to send [07:26:47]OFD Sender: No OFD packet to send [07:26:52]OFD Sender: No OFD packet to send [07:26:57]OFD Sender: No OFD packet to send [07:27:02]OFD Sender: No OFD packet to send [07:27:07]OFD Sender: No OFD packet to send [07:27:12]OFD Sender: No OFD packet to send [07:27:17]OFD Sender: No OFD packet to send [07:27:22]OFD Sender: No OFD packet to send [07:27:27]OFD Sender: No OFD packet to send [07:27:32]OFD Sender: No OFD packet to send [07:27:37]OFD Sender: No OFD packet to send [07:27:42]OFD Sender: No OFD packet to send [07:27:47]OFD Sender: No OFD packet to send [07:27:52]OFD Sender: No OFD packet to send [07:27:57]OFD Sender: No OFD packet to send [07:28:02]OFD Sender: No OFD packet to send [07:28:07]OFD Sender: No OFD packet to send [07:28:12]OFD Sender: No OFD packet to send [07:28:17]OFD Sender: No OFD packet to send [07:28:22]OFD Sender: No OFD packet to send [07:28:27]OFD Sender: No OFD packet to send [07:28:32]OFD Sender: No OFD packet to send [07:28:37]OFD Sender: No OFD packet to send [07:28:42]OFD Sender: No OFD packet to send [07:28:44]accept exits with 9 [07:28:44]New connection [07:28:44]New thread 3066821988 created [07:28:44]Thread 3066965348 joined [07:28:44]Waiting for new connection... [07:28:44] Sock 9.Parse request [07:28:44]Sock 9.Check first char [07:28:44]Sock 9.First char is OK [07:28:44]request: POST /json_proto HTTP/1.0 [07:28:44]Method: POST [07:28:44]URL: /json_proto [07:28:44]Method is POST - this is cgi request [07:28:44]url: /json_proto [07:28:44]query_string will be loaded in cgi processing [07:28:44]execute_cgi json_proto POST (null) [07:28:44]execute_cgi path=json_proto method=POST [07:28:44]POST find Content-Length [07:28:44]Host: 172.17.44.195:8080 [07:28:44]Content-Length: 679 [07:28:44]Content-Type: application/json [07:28:44] [07:28:44]POST finish read [07:28:44]Found Content-Length = 679 [07:28:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962657", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:28:44]execute_script... [07:28: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)1962657", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:28:44]POST & json_proto [07:28:44]process_json_proto [07:28:44]json parsed OK: [07:28:44]protocol is kg_v1.0 [07:28:44]action value=close_receipt [07:28:44]process_action close_receipt [07:28:44]cmd_close_receipt [07:28:44]MH_GetDate [07:28:44]Write to MH i2c: F0 00 00 D6 25 EA [07:28:44]Write i2c OK [07:28:44]MH_I2C_Read... [07:28:44]Read from MH i2c: F0 [07:28:44]MH_I2C_Read... [07:28:44]Read from MH i2c: F0 09 00 [07:28:44]MH_I2C_Read... [07:28:44]Read from MH i2c: F0 09 00 D6 25 00 30 B1 14 67 82 C9 CF 66 CF [07:28:44]GetLastDocTimeStamp 1729409198 [07:28:44]current date 1729409328 [07:28:44]FM_GetShiftState [07:28:44]SAM_PROTO_GetShiftState [07:28:44]wFMCommunicate request_size=4 [07:28:44]MH_SAM_APDU [07:28:44]CAPDU: 80 13 01 00 [07:28:44]Write to MH i2c: E2 08 00 D7 25 80 13 01 00 00 00 00 00 79 [07:28:44]Write i2c OK [07:28:44]MH_I2C_Read... [07:28:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:28:44]Read from MH i2c: E2 [07:28:44]MH_I2C_Read... [07:28:44]Read from MH i2c: E2 0E 00 [07:28:44]MH_I2C_Read... [07:28:44]Read from MH i2c: E2 0E 00 D7 25 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 93 [07:28:44]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [07:28:44]wFMCommunicate OK [07:28:44]SAM_PROTO_GetShiftState done [07:28:44]FM_GetShiftState done [07:28:44]opened in 1729383750 [07:28:44]opened+sec_in_day 1729470150 [07:28:44]quantity*price = 70044 [07:28:44]sum+1 = 70045 [07:28:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 52 20.10.2024 07:28 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227204 ФПД: 226964334554001 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T072848&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227204&fm=226964334554001&tin=02508201610067®Number=0000000000091685&sum=70000 [07:28:45]StoreToDocumentArchive [07:28:45]shift 533 fd 227204 [07:28:45]save to /storage/0533/doc_00227204 [07:28:45]save last doc name /storage/0533/doc_00227204 to /storage/kkm_last_doc_name [07:28:45]save OK [07:28:45]Clear old archive folders... [07:28:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:28:45]tlvbuf is 0059EAD0 [07:28:45]SAM_PROTO_ClearQueue [07:28:45]wFMCommunicate request_size=4 [07:28:45]MH_SAM_APDU [07:28:45]CAPDU: 80 09 00 00 [07:28:45]Write to MH i2c: E2 08 00 E4 25 80 09 00 00 00 00 00 00 7B [07:28:45]Write i2c OK [07:28:45]MH_I2C_Read... [07:28:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:28:45]Read from MH i2c: E2 [07:28:45]MH_I2C_Read... [07:28:45]Read from MH i2c: E2 03 00 [07:28:45]MH_I2C_Read... [07:28:45]Read from MH i2c: E2 03 00 E4 25 00 90 00 7D [07:28:45]RAPDU: 90 00 [07:28:45]wFMCommunicate OK [07:28:45]SAM_PROTO_ClearQueue done [07:28:45]KKMCreateOFDPacket [07:28:45]OFDProtocolAddRootSTLVToBuf [07:28:45]FM_MakeSignedData [07:28:45]FM_MakeSignedData [07:28:45]SAM_PROTO_SignData [07:28:45]wFMCommunicate request_size=4 [07:28:45]MH_SAM_APDU [07:28:45]CAPDU: 80 0D 01 02 [07:28:45]Write to MH i2c: E2 08 00 E5 25 80 0D 01 02 00 00 00 00 83 [07:28:45]Write i2c OK [07:28:45]MH_I2C_Read... [07:28:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:28:45]Read from MH i2c: E2 [07:28:45]MH_I2C_Read... [07:28:45]Read from MH i2c: E2 03 00 [07:28:45]MH_I2C_Read... [07:28:45]Read from MH i2c: E2 03 00 E5 25 00 90 00 7E [07:28:45]RAPDU: 90 00 [07:28:45]wFMCommunicate OK [07:28:45]wFMCommunicate request_size=255 [07:28:45]MH_SAM_APDU [07:28:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 30 B1 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 84 77 03 00 35 04 06 00 CE [07:28:45]Write to MH i2c: E2 02 01 E6 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 30 B1 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 84 77 03 00 35 04 06 00 CE 00 00 9D [07:28:45]Write i2c OK [07:28:45]MH_I2C_Read... [07:28:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:28:46]Read from MH i2c: E2 [07:28:46]MH_I2C_Read... [07:28:46]Read from MH i2c: E2 03 00 [07:28:46]MH_I2C_Read... [07:28:46]Read from MH i2c: E2 03 00 E6 25 00 90 00 7F [07:28:46]RAPDU: 90 00 [07:28:46]wFMCommunicate OK [07:28:46]wFMCommunicate request_size=10 [07:28:46]MH_SAM_APDU [07:28:46]CAPDU: 80 0D 02 02 05 6C 40 89 AB 91 [07:28:46]Write to MH i2c: E2 0D 00 E7 25 80 0D 02 02 05 00 6C 40 89 AB 91 00 00 01 [07:28:46]Write i2c OK [07:28:46]MH_I2C_Read... [07:28:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:28:46]Read from MH i2c: E2 [07:28:46]MH_I2C_Read... [07:28:46]Read from MH i2c: E2 03 00 [07:28:46]MH_I2C_Read... [07:28:46]Read from MH i2c: E2 03 00 E7 25 00 90 00 80 [07:28:46]RAPDU: 90 00 [07:28:46]wFMCommunicate OK [07:28:46]wFMCommunicate request_size=4 [07:28:46]MH_SAM_APDU [07:28:46]CAPDU: 80 0D 03 02 [07:28:46]Write to MH i2c: E2 08 00 E8 25 80 0D 03 02 00 00 00 00 88 [07:28:46]Write i2c OK [07:28:46]MH_I2C_Read... [07:28:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:28:46]Read from MH i2c: E2 [07:28:46]MH_I2C_Read... [07:28:46]Read from MH i2c: E2 0B 00 [07:28:46]MH_I2C_Read... [07:28:46]Read from MH i2c: E2 0B 00 E8 25 00 7D 3C 27 8E 17 0B F5 DC 90 00 EA [07:28:46]RAPDU: 7D 3C 27 8E 17 0B F5 DC 90 00 [07:28:46]wFMCommunicate OK [07:28:46]SAM_PROTO_SignData done [07:28:46]FM_MakeSignedData done [07:28:46]CreateOFDProtocolMessage [07:28:46]wFMCommunicate request_size=4 [07:28:46]MH_SAM_APDU [07:28:46]CAPDU: 80 11 00 00 [07:28:46]Write to MH i2c: E2 08 00 E9 25 80 11 00 00 00 00 00 00 88 [07:28:46]Write i2c OK [07:28:46]MH_I2C_Read... [07:28:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:28:46]Read from MH i2c: E2 [07:28:46]MH_I2C_Read... [07:28:46]Read from MH i2c: E2 17 00 [07:28:46]MH_I2C_Read... [07:28:46]Read from MH i2c: E2 17 00 E9 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 DF [07:28:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:28:46]wFMCommunicate OK [07:28:46]CreateOFDProtocolMessage done [07:28:46]OFDSenderStorePacket 227204 [07:28:46]StoreOFDPacket docnum=227204 [07:28:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 6A 7D 07 01 5D 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 30 B1 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 84 77 03 00 35 04 06 00 CE 6C 40 89 AB 91 7D 3C 27 8E 17 0B F5 DC [07:28:46]CheckFolder [07:28:46]dirname=/storage/ofd_packets [07:28:46]CheckFolder done [07:28:46]ProducePacketName [07:28:46]name=ofd_packets/00227204 [07:28:46]NVStorageSaveData ofd_packets/00227204 [07:28:46]File name is /storage/ofd_packets/00227204 [07:28:46]Write 301 bytes [07:28:46]NVStorageSaveData done [07:28:46]OFDSenderStorePacket done [07:28:46]KKMCreateOFDPacket done [07:28:46]NVStorageSaveData kkm_last_timestamp [07:28:46]File name is /storage/kkm_last_timestamp [07:28:46]Write 4 bytes [07:28:46]NVStorageSaveData done [07:28:46]ExternCall_PrintAddStr [07:28:46]wPrintStart [07:28:46]Write to MH i2c: 01 00 00 EA 25 0F [07:28:46]Write i2c OK [07:28:46]MH_I2C_Read... [07:28:46]Read from MH i2c: 01 [07:28:46]MH_I2C_Read... [07:28:46]Read from MH i2c: 01 07 00 [07:28:46]MH_I2C_Read... [07:28:46]Read from MH i2c: 01 07 00 EA 25 00 00 00 00 00 FF 0F 24 [07:28:46]RasterBufferAndPrint [07:28:46]line Счет N : (1)1962657 [07:28:46]line ИНН: 02508201610067 [07:28:46]line Контрольно-Кассовый Чек [07:28:46]line ПРОДАЖА [07:28:46]line ТРК (МРК, ГНК) : 33 [07:28:46]line Товар: 2710124130 [07:28:46]line Аи-92-К-5 [07:28:46]line 10.470 * 66.90 [07:28:46]line = 700.44 [07:28:46]line НДС 12% НСП 1% [07:28:46]line > о реализуемом товаре [07:28:46]line ОКРУГЛЕНИЕ: -0.44 [07:28:46]line ИТОГО: 700.00 [07:28:46]line Внесено: 700.00 [07:28:46]line СДАЧА: 0.00 [07:28:46]line НСП 1% : 6.20 [07:28:46]line НДС 12% : 74.38 [07:28:46]line Наличными: 700.00 [07:28:46]line Безнал.: 0.00 [07:28:46]line Место: АЗС № 133 "Партнер Нефть" [07:28:46]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [07:28:46]line СНО: Общий режим [07:28:46]line Чек 52 20.10.2024 07:28 [07:28:46]line Смена: 533 ФФД: 1.0 [07:28:46]line ЗНМ: 0300000091 [07:28:46]line РНМ: 0000000000091685 [07:28:46]line Версия ККМ: 001 [07:28:46]line ФМ: 0000000000871839 [07:28:46]line ФД: 227204 [07:28:46]line ФПД: 226964334554001 [07:28:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T072848&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227204&fm=226964334554001&tin=02508201610067®Number=0000000000091685&sum=70000 [07:28:46]written 0, free lines is 4095 [07:28:46]OFD Sender: Processing packet 227204 [packets to send 38, broken 37] [07:28:46]ProducePacketName [07:28:46]name=ofd_packets/00227204 [07:28:46]OFD Sender: To server: pG, [07:28:46]CommunicateWithHost lk.salyk.kg:30040 [07:28:46]ConnectInit lk.salyk.kg [07:28:46]Connected sock=11 [07:28: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 33 39 0F 01 00 00 6A 7D 07 01 5D 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 30 B1 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 84 77 03 00 35 04 06 00 CE 6C 40 89 AB 91 7D 3C 27 8E 17 0B F5 DC [07:28: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 33 39 4F 00 00 00 0C 9C 47 00 85 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 84 77 03 00 F4 03 04 00 2F 5C 14 67 B6 04 01 00 00 32 40 E7 72 1D F2 93 C0 [07:28:46]CommunicateWithHost err = 0 [07:28:46]CheckOFDResponse [07:28:46]1017 (14) - 77093643461234 [07:28:46]1041 (16) - 0000000000871839 [07:28:46]1040 (4) - 227204 [07:28:46]1012 (4) - 20.10.2024 01:26 [07:28:46]1206 (1) - 0 [07:28:46]OFD Sender: Remove packet 227204 [07:28:46]ProducePacketName [07:28:46]name=ofd_packets/00227204 [07:28:46]NVStorageDeleteData [07:28:46]Write to MH i2c: 01 00 00 14 26 3A [07:28:46]Write i2c OK [07:28:46]MH_I2C_Read... [07:28:46]Read from MH i2c: 01 [07:28:46]MH_I2C_Read... [07:28:46]Read from MH i2c: 01 07 00 [07:28:46]MH_I2C_Read... [07:28:46]Read from MH i2c: 01 07 00 14 26 00 00 00 00 00 0B 0D 59 [07:28:46]RasterBufferAndPrint [07:28:46]line [07:28:46]line [07:28:46]line [07:28:46]line [07:28:46]line [07:28:46]written 0, free lines is 3345 [07:28:46]process_action close_receipt done [07:28:46]requested_data is exist [07:28:46]produce_requested_data [07:28:46]requested_item fm.sn is exist - process it [07:28:46]wFMCommunicate request_size=4 [07:28:46]MH_SAM_APDU [07:28:46]CAPDU: 80 11 00 00 [07:28:46]Write to MH i2c: E2 08 00 1B 26 80 11 00 00 00 00 00 00 BB [07:28:46]Write i2c OK [07:28:46]MH_I2C_Read... [07:28:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:28:47]Read from MH i2c: E2 [07:28:47]MH_I2C_Read... [07:28:47]Read from MH i2c: E2 17 00 [07:28:47]MH_I2C_Read... [07:28:47]Read from MH i2c: E2 17 00 1B 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 12 [07:28:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:28:47]wFMCommunicate OK [07:28:47]requested_item fd.num is exist - process it [07:28:47]SAM_PROTO_GetFieldsCounters [07:28:47]wFMCommunicate request_size=4 [07:28:47]MH_SAM_APDU [07:28:47]CAPDU: 80 13 00 00 [07:28:47]Write to MH i2c: E2 08 00 1C 26 80 13 00 00 00 00 00 00 BE [07:28:47]Write i2c OK [07:28:47]MH_I2C_Read... [07:28:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:28:47]Read from MH i2c: E2 [07:28:47]MH_I2C_Read... [07:28:47]Read from MH i2c: E2 62 00 [07:28:47]MH_I2C_Read... [07:28:47]Read from MH i2c: E2 62 00 1C 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 84 77 03 00 0E 04 04 00 15 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 98 [07:28: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 84 77 03 00 0E 04 04 00 15 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 [07:28:47]wFMCommunicate OK [07:28:47]SAM_PROTO_GetFieldsCounters done [07:28:47]requested_item shift.num is exist - process it [07:28:47]requested_item shift.opened is exist - process it [07:28:47]req_shift_opened [07:28:47]FM_GetShiftState [07:28:47]SAM_PROTO_GetShiftState [07:28:47]wFMCommunicate request_size=4 [07:28:47]MH_SAM_APDU [07:28:47]CAPDU: 80 13 01 00 [07:28:47]Write to MH i2c: E2 08 00 1D 26 80 13 01 00 00 00 00 00 C0 [07:28:47]Write i2c OK [07:28:47]MH_I2C_Read... [07:28:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:28:47]Read from MH i2c: E2 [07:28:47]MH_I2C_Read... [07:28:47]Read from MH i2c: E2 0E 00 [07:28:47]MH_I2C_Read... [07:28:47]Read from MH i2c: E2 0E 00 1D 26 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 DA [07:28:47]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [07:28:47]wFMCommunicate OK [07:28:47]SAM_PROTO_GetShiftState done [07:28:47]FM_GetShiftState done [07:28:47]req_shift_opened done [07:28:47]requested_item shift.open_date is exist - process it [07:28:47]req_shift_open_date [07:28:47]req_shift_open_date done [07:28:47]produce_requested_data done [07:28:47]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227204,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [07:28:47]process_action_free close_receipt [07:28:47]json_value_free [07:28:47]json_value_free done [07:28:47]process_json_proto returns [07:28:47]Send response to host [07:28:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227204,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [07:28:47]free response buf [07:28:47]execute_script done [07:28:47]execute_script returns [07:28:47]free content buf [07:28:47]Sock 9.Close socket [07:28:47]Sock 9.Thread stoped [07:28:47]OFD Sender: No OFD packet to send [07:28:52]OFD Sender: No OFD packet to send [07:28:57]OFD Sender: No OFD packet to send [07:29:02]OFD Sender: No OFD packet to send [07:29:07]OFD Sender: No OFD packet to send [07:29:12]OFD Sender: No OFD packet to send [07:29:14]accept exits with 8 [07:29:14]New connection [07:29:14]New thread 3066965348 created [07:29:14]Thread 3066821988 joined [07:29:14]Waiting for new connection... [07:29:14] Sock 8.Parse request [07:29:14]Sock 8.Check first char [07:29:14]Sock 8.First char is OK [07:29:14]request: POST /json_proto HTTP/1.0 [07:29:14]Method: POST [07:29:14]URL: /json_proto [07:29:14]Method is POST - this is cgi request [07:29:14]url: /json_proto [07:29:14]query_string will be loaded in cgi processing [07:29:14]execute_cgi json_proto POST (null) [07:29:14]execute_cgi path=json_proto method=POST [07:29:14]POST find Content-Length [07:29:14]Host: 172.17.44.195:8080 [07:29:14]Content-Length: 767 [07:29:14]Content-Type: application/json [07:29:14] [07:29:14]POST finish read [07:29:14]Found Content-Length = 767 [07:29:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962658", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:29:14]execute_script... [07:29: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)1962658", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:29:14]POST & json_proto [07:29:14]process_json_proto [07:29:14]json parsed OK: [07:29:14]protocol is kg_v1.0 [07:29:14]action value=close_receipt [07:29:14]process_action close_receipt [07:29:14]cmd_close_receipt [07:29:14]MH_GetDate [07:29:14]Write to MH i2c: F0 00 00 1E 26 33 [07:29:14]Write i2c OK [07:29:14]MH_I2C_Read... [07:29:14]Read from MH i2c: F0 [07:29:14]MH_I2C_Read... [07:29:14]Read from MH i2c: F0 09 00 [07:29:14]MH_I2C_Read... [07:29:14]Read from MH i2c: F0 09 00 1E 26 00 4D B1 14 67 82 C9 CF 66 35 [07:29:14]GetLastDocTimeStamp 1729409328 [07:29:14]current date 1729409357 [07:29:14]FM_GetShiftState [07:29:14]SAM_PROTO_GetShiftState [07:29:14]wFMCommunicate request_size=4 [07:29:14]MH_SAM_APDU [07:29:14]CAPDU: 80 13 01 00 [07:29:14]Write to MH i2c: E2 08 00 1F 26 80 13 01 00 00 00 00 00 C2 [07:29:14]Write i2c OK [07:29:14]MH_I2C_Read... [07:29:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:29:14]Read from MH i2c: E2 [07:29:14]MH_I2C_Read... [07:29:14]Read from MH i2c: E2 0E 00 [07:29:14]MH_I2C_Read... [07:29:14]Read from MH i2c: E2 0E 00 1F 26 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 DC [07:29:14]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [07:29:14]wFMCommunicate OK [07:29:14]SAM_PROTO_GetShiftState done [07:29:14]FM_GetShiftState done [07:29:14]opened in 1729383750 [07:29:14]opened+sec_in_day 1729470150 [07:29:14]quantity*price = 50041 [07:29:14]sum+1 = 50042 [07:29:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 53 20.10.2024 07:29 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 227205 ФПД: 144709830177741 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T072917&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227205&fm=144709830177741&tin=02508201610067®Number=0000000000091685&sum=50041 [07:29:15]StoreToDocumentArchive [07:29:15]shift 533 fd 227205 [07:29:15]save to /storage/0533/doc_00227205 [07:29:15]save last doc name /storage/0533/doc_00227205 to /storage/kkm_last_doc_name [07:29:15]save OK [07:29:15]Clear old archive folders... [07:29:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:29:15]tlvbuf is 004EF490 [07:29:15]SAM_PROTO_ClearQueue [07:29:15]wFMCommunicate request_size=4 [07:29:15]MH_SAM_APDU [07:29:15]CAPDU: 80 09 00 00 [07:29:15]Write to MH i2c: E2 08 00 2C 26 80 09 00 00 00 00 00 00 C4 [07:29:15]Write i2c OK [07:29:15]MH_I2C_Read... [07:29:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:29:15]Read from MH i2c: E2 [07:29:15]MH_I2C_Read... [07:29:15]Read from MH i2c: E2 03 00 [07:29:15]MH_I2C_Read... [07:29:15]Read from MH i2c: E2 03 00 2C 26 00 90 00 C6 [07:29:15]RAPDU: 90 00 [07:29:15]wFMCommunicate OK [07:29:15]SAM_PROTO_ClearQueue done [07:29:15]KKMCreateOFDPacket [07:29:15]OFDProtocolAddRootSTLVToBuf [07:29:15]FM_MakeSignedData [07:29:15]FM_MakeSignedData [07:29:15]SAM_PROTO_SignData [07:29:15]wFMCommunicate request_size=4 [07:29:15]MH_SAM_APDU [07:29:15]CAPDU: 80 0D 01 02 [07:29:15]Write to MH i2c: E2 08 00 2D 26 80 0D 01 02 00 00 00 00 CC [07:29:15]Write i2c OK [07:29:15]MH_I2C_Read... [07:29:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:29:15]Read from MH i2c: E2 [07:29:15]MH_I2C_Read... [07:29:15]Read from MH i2c: E2 03 00 [07:29:15]MH_I2C_Read... [07:29:15]Read from MH i2c: E2 03 00 2D 26 00 90 00 C7 [07:29:15]RAPDU: 90 00 [07:29:15]wFMCommunicate OK [07:29:15]wFMCommunicate request_size=255 [07:29:15]MH_SAM_APDU [07:29:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 4D B1 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 85 77 03 00 35 04 06 00 83 [07:29:15]Write to MH i2c: E2 02 01 2E 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 4D B1 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 85 77 03 00 35 04 06 00 83 00 00 FC [07:29:15]Write i2c OK [07:29:15]MH_I2C_Read... [07:29:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:29:15]Read from MH i2c: E2 [07:29:15]MH_I2C_Read... [07:29:15]Read from MH i2c: E2 03 00 [07:29:15]MH_I2C_Read... [07:29:15]Read from MH i2c: E2 03 00 2E 26 00 90 00 C8 [07:29:15]RAPDU: 90 00 [07:29:15]wFMCommunicate OK [07:29:15]wFMCommunicate request_size=10 [07:29:15]MH_SAM_APDU [07:29:15]CAPDU: 80 0D 02 02 05 9C E2 05 F3 CD [07:29:15]Write to MH i2c: E2 0D 00 2F 26 80 0D 02 02 05 00 9C E2 05 F3 CD 00 00 1C [07:29:15]Write i2c OK [07:29:15]MH_I2C_Read... [07:29:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:29:15]Read from MH i2c: E2 [07:29:15]MH_I2C_Read... [07:29:15]Read from MH i2c: E2 03 00 [07:29:15]MH_I2C_Read... [07:29:15]Read from MH i2c: E2 03 00 2F 26 00 90 00 C9 [07:29:15]RAPDU: 90 00 [07:29:15]wFMCommunicate OK [07:29:15]wFMCommunicate request_size=4 [07:29:15]MH_SAM_APDU [07:29:15]CAPDU: 80 0D 03 02 [07:29:15]Write to MH i2c: E2 08 00 30 26 80 0D 03 02 00 00 00 00 D1 [07:29:15]Write i2c OK [07:29:15]MH_I2C_Read... [07:29:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:29:15]Read from MH i2c: E2 [07:29:15]MH_I2C_Read... [07:29:15]Read from MH i2c: E2 0B 00 [07:29:15]MH_I2C_Read... [07:29:15]Read from MH i2c: E2 0B 00 30 26 00 59 1D C1 07 B5 70 27 29 90 00 85 [07:29:15]RAPDU: 59 1D C1 07 B5 70 27 29 90 00 [07:29:15]wFMCommunicate OK [07:29:15]SAM_PROTO_SignData done [07:29:15]FM_MakeSignedData done [07:29:15]CreateOFDProtocolMessage [07:29:15]wFMCommunicate request_size=4 [07:29:15]MH_SAM_APDU [07:29:15]CAPDU: 80 11 00 00 [07:29:15]Write to MH i2c: E2 08 00 31 26 80 11 00 00 00 00 00 00 D1 [07:29:15]Write i2c OK [07:29:15]MH_I2C_Read... [07:29:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:29:15]Read from MH i2c: E2 [07:29:15]MH_I2C_Read... [07:29:15]Read from MH i2c: E2 17 00 [07:29:15]MH_I2C_Read... [07:29:15]Read from MH i2c: E2 17 00 31 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 28 [07:29:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:29:15]wFMCommunicate OK [07:29:15]CreateOFDProtocolMessage done [07:29:15]OFDSenderStorePacket 227205 [07:29:15]StoreOFDPacket docnum=227205 [07:29:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 B8 B4 07 01 3F 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 4D B1 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 85 77 03 00 35 04 06 00 83 9C E2 05 F3 CD 59 1D C1 07 B5 70 27 29 [07:29:15]CheckFolder [07:29:15]dirname=/storage/ofd_packets [07:29:15]CheckFolder done [07:29:15]ProducePacketName [07:29:15]name=ofd_packets/00227205 [07:29:15]NVStorageSaveData ofd_packets/00227205 [07:29:15]File name is /storage/ofd_packets/00227205 [07:29:15]Write 301 bytes [07:29:15]NVStorageSaveData done [07:29:15]OFDSenderStorePacket done [07:29:15]KKMCreateOFDPacket done [07:29:15]NVStorageSaveData kkm_last_timestamp [07:29:15]File name is /storage/kkm_last_timestamp [07:29:15]Write 4 bytes [07:29:15]NVStorageSaveData done [07:29:15]ExternCall_PrintAddStr [07:29:15]wPrintStart [07:29:15]Write to MH i2c: 01 00 00 32 26 58 [07:29:15]Write i2c OK [07:29:15]MH_I2C_Read... [07:29:15]Read from MH i2c: 01 [07:29:15]MH_I2C_Read... [07:29:15]Read from MH i2c: 01 07 00 [07:29:15]MH_I2C_Read... [07:29:15]Read from MH i2c: 01 07 00 32 26 00 00 00 00 00 FF 0F 6D [07:29:15]RasterBufferAndPrint [07:29:15]line Счет N : (1)1962658 [07:29:15]line ИНН: 02508201610067 [07:29:15]line Контрольно-Кассовый Чек [07:29:15]line ПРОДАЖА [07:29:15]line ТРК (МРК, ГНК) : 43 [07:29:15]line Товар: 2710124130 [07:29:15]line Аи-92-К-5 [07:29:15]line 7.480 * 66.90 [07:29:15]line = 500.41 [07:29:15]line НДС 12% НСП 1% [07:29:15]line > о реализуемом товаре [07:29:15]line ИТОГО: 500.41 [07:29:15]line НСП 1% : 4.43 [07:29:15]line НДС 12% : 53.14 [07:29:15]line Наличными: 0.00 [07:29:15]line Безнал.: 500.41 [07:29:15]line Место: АЗС № 133 "Партнер Нефть" [07:29:15]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [07:29:15]line СНО: Общий режим [07:29:15]line Чек 53 20.10.2024 07:29 [07:29:15]line Смена: 533 ФФД: 1.0 [07:29:15]line ЗНМ: 0300000091 [07:29:15]line РНМ: 0000000000091685 [07:29:15]line Версия ККМ: 001 [07:29:15]line Платежная система: Mbank [07:29:15]line ФМ: 0000000000871839 [07:29:15]line ФД: 227205 [07:29:15]line ФПД: 144709830177741 [07:29:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T072917&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227205&fm=144709830177741&tin=02508201610067®Number=0000000000091685&sum=50041 [07:29:15]written 0, free lines is 4095 [07:29:15]OFD Sender: Processing packet 227205 [packets to send 38, broken 37] [07:29:15]ProducePacketName [07:29:15]name=ofd_packets/00227205 [07:29:15]OFD Sender: To server: pG, [07:29:15]CommunicateWithHost lk.salyk.kg:30040 [07:29:15]ConnectInit lk.salyk.kg [07:29:15]Connected sock=10 [07:29:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 B8 B4 07 01 3F 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 4D B1 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 85 77 03 00 35 04 06 00 83 9C E2 05 F3 CD 59 1D C1 07 B5 70 27 29 [07:29:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 1F B6 47 00 6D 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 85 77 03 00 F4 03 04 00 4D 5C 14 67 B6 04 01 00 00 EE 08 6E 5F 16 8E 26 21 [07:29:16]CommunicateWithHost err = 0 [07:29:16]CheckOFDResponse [07:29:16]1017 (14) - 77093643461234 [07:29:16]1041 (16) - 0000000000871839 [07:29:16]1040 (4) - 227205 [07:29:16]1012 (4) - 20.10.2024 01:26 [07:29:16]1206 (1) - 0 [07:29:16]OFD Sender: Remove packet 227205 [07:29:16]ProducePacketName [07:29:16]name=ofd_packets/00227205 [07:29:16]NVStorageDeleteData [07:29:16]Write to MH i2c: 01 00 00 5A 26 80 [07:29:16]Write i2c OK [07:29:16]MH_I2C_Read... [07:29:16]Read from MH i2c: 01 [07:29:16]MH_I2C_Read... [07:29:16]Read from MH i2c: 01 07 00 [07:29:16]MH_I2C_Read... [07:29:16]Read from MH i2c: 01 07 00 5A 26 00 00 00 00 00 29 0D BD [07:29:16]RasterBufferAndPrint [07:29:16]line [07:29:16]line [07:29:16]line [07:29:16]line [07:29:16]line [07:29:16]written 0, free lines is 3375 [07:29:16]process_action close_receipt done [07:29:16]requested_data is exist [07:29:16]produce_requested_data [07:29:16]requested_item fm.sn is exist - process it [07:29:16]wFMCommunicate request_size=4 [07:29:16]MH_SAM_APDU [07:29:16]CAPDU: 80 11 00 00 [07:29:16]Write to MH i2c: E2 08 00 61 26 80 11 00 00 00 00 00 00 01 [07:29:16]Write i2c OK [07:29:16]MH_I2C_Read... [07:29:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:29:16]Read from MH i2c: E2 [07:29:16]MH_I2C_Read... [07:29:16]Read from MH i2c: E2 17 00 [07:29:16]MH_I2C_Read... [07:29:16]Read from MH i2c: E2 17 00 61 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 58 [07:29:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:29:16]wFMCommunicate OK [07:29:16]requested_item fd.num is exist - process it [07:29:16]SAM_PROTO_GetFieldsCounters [07:29:16]wFMCommunicate request_size=4 [07:29:16]MH_SAM_APDU [07:29:16]CAPDU: 80 13 00 00 [07:29:16]Write to MH i2c: E2 08 00 62 26 80 13 00 00 00 00 00 00 04 [07:29:16]Write i2c OK [07:29:16]MH_I2C_Read... [07:29:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:29:16]Read from MH i2c: E2 [07:29:16]MH_I2C_Read... [07:29:16]Read from MH i2c: E2 62 00 [07:29:16]MH_I2C_Read... [07:29:16]Read from MH i2c: E2 62 00 62 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 85 77 03 00 0E 04 04 00 15 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 E2 [07:29:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 85 77 03 00 0E 04 04 00 15 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 [07:29:16]wFMCommunicate OK [07:29:16]SAM_PROTO_GetFieldsCounters done [07:29:16]requested_item shift.num is exist - process it [07:29:16]requested_item shift.opened is exist - process it [07:29:16]req_shift_opened [07:29:16]FM_GetShiftState [07:29:16]SAM_PROTO_GetShiftState [07:29:16]wFMCommunicate request_size=4 [07:29:16]MH_SAM_APDU [07:29:16]CAPDU: 80 13 01 00 [07:29:16]Write to MH i2c: E2 08 00 63 26 80 13 01 00 00 00 00 00 06 [07:29:16]Write i2c OK [07:29:16]MH_I2C_Read... [07:29:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:29:16]Read from MH i2c: E2 [07:29:16]MH_I2C_Read... [07:29:16]Read from MH i2c: E2 0E 00 [07:29:16]MH_I2C_Read... [07:29:16]Read from MH i2c: E2 0E 00 63 26 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 20 [07:29:16]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [07:29:16]wFMCommunicate OK [07:29:16]SAM_PROTO_GetShiftState done [07:29:16]FM_GetShiftState done [07:29:16]req_shift_opened done [07:29:16]requested_item shift.open_date is exist - process it [07:29:16]req_shift_open_date [07:29:16]req_shift_open_date done [07:29:16]produce_requested_data done [07:29:16]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227205,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [07:29:16]process_action_free close_receipt [07:29:16]json_value_free [07:29:16]json_value_free done [07:29:16]process_json_proto returns [07:29:16]Send response to host [07:29:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227205,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [07:29:16]free response buf [07:29:16]execute_script done [07:29:16]execute_script returns [07:29:16]free content buf [07:29:16]Sock 8.Close socket [07:29:16]Sock 8.Thread stoped [07:29:16]OFD Sender: No OFD packet to send [07:29:21]OFD Sender: No OFD packet to send [07:29:26]OFD Sender: No OFD packet to send [07:29:31]OFD Sender: No OFD packet to send [07:29:36]OFD Sender: No OFD packet to send [07:29:41]OFD Sender: No OFD packet to send [07:29:46]OFD Sender: No OFD packet to send [07:29:51]OFD Sender: No OFD packet to send [07:29:56]OFD Sender: No OFD packet to send [07:30:01]OFD Sender: No OFD packet to send [07:30:06]OFD Sender: No OFD packet to send [07:30:11]OFD Sender: No OFD packet to send [07:30:16]OFD Sender: No OFD packet to send [07:30:21]OFD Sender: No OFD packet to send [07:30:26]OFD Sender: No OFD packet to send [07:30:31]OFD Sender: No OFD packet to send [07:30:36]OFD Sender: No OFD packet to send [07:30:41]OFD Sender: No OFD packet to send [07:30:46]OFD Sender: No OFD packet to send [07:30:51]OFD Sender: No OFD packet to send [07:30:56]OFD Sender: No OFD packet to send [07:31:01]OFD Sender: No OFD packet to send [07:31:06]OFD Sender: No OFD packet to send [07:31:11]OFD Sender: No OFD packet to send [07:31:16]OFD Sender: No OFD packet to send [07:31:21]OFD Sender: No OFD packet to send [07:31:26]OFD Sender: No OFD packet to send [07:31:31]OFD Sender: No OFD packet to send [07:31:36]OFD Sender: No OFD packet to send [07:31:41]OFD Sender: No OFD packet to send [07:31:46]OFD Sender: No OFD packet to send [07:31:51]OFD Sender: No OFD packet to send [07:31:56]OFD Sender: No OFD packet to send [07:32:01]OFD Sender: No OFD packet to send [07:32:04]accept exits with 9 [07:32:04]New connection [07:32:04]New thread 3066821988 created [07:32:04]Thread 3066965348 joined [07:32:04]Waiting for new connection... [07:32:04] Sock 9.Parse request [07:32:04]Sock 9.Check first char [07:32:04]Sock 9.First char is OK [07:32:04]request: POST /json_proto HTTP/1.0 [07:32:04]Method: POST [07:32:04]URL: /json_proto [07:32:04]Method is POST - this is cgi request [07:32:04]url: /json_proto [07:32:04]query_string will be loaded in cgi processing [07:32:04]execute_cgi json_proto POST (null) [07:32:04]execute_cgi path=json_proto method=POST [07:32:04]POST find Content-Length [07:32:04]Host: 172.17.44.195:8080 [07:32:04]Content-Length: 767 [07:32:04]Content-Type: application/json [07:32:04] [07:32:04]POST finish read [07:32:04]Found Content-Length = 767 [07:32:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962659", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:32:04]execute_script... [07:32: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)1962659", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:32:04]POST & json_proto [07:32:04]process_json_proto [07:32:04]json parsed OK: [07:32:04]protocol is kg_v1.0 [07:32:04]action value=close_receipt [07:32:04]process_action close_receipt [07:32:04]cmd_close_receipt [07:32:04]MH_GetDate [07:32:04]Write to MH i2c: F0 00 00 64 26 79 [07:32:04]Write i2c OK [07:32:04]MH_I2C_Read... [07:32:04]Read from MH i2c: F0 [07:32:04]MH_I2C_Read... [07:32:04]Read from MH i2c: F0 09 00 [07:32:04]MH_I2C_Read... [07:32:04]Read from MH i2c: F0 09 00 64 26 00 F8 B1 14 67 82 C9 CF 66 26 [07:32:04]GetLastDocTimeStamp 1729409357 [07:32:04]current date 1729409528 [07:32:04]FM_GetShiftState [07:32:04]SAM_PROTO_GetShiftState [07:32:04]wFMCommunicate request_size=4 [07:32:04]MH_SAM_APDU [07:32:04]CAPDU: 80 13 01 00 [07:32:04]Write to MH i2c: E2 08 00 65 26 80 13 01 00 00 00 00 00 08 [07:32:04]Write i2c OK [07:32:04]MH_I2C_Read... [07:32:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:32:04]Read from MH i2c: E2 [07:32:04]MH_I2C_Read... [07:32:04]Read from MH i2c: E2 0E 00 [07:32:04]MH_I2C_Read... [07:32:04]Read from MH i2c: E2 0E 00 65 26 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 22 [07:32:04]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [07:32:04]wFMCommunicate OK [07:32:04]SAM_PROTO_GetShiftState done [07:32:04]FM_GetShiftState done [07:32:04]opened in 1729383750 [07:32:04]opened+sec_in_day 1729470150 [07:32:04]quantity*price = 20003 [07:32:04]sum+1 = 20004 [07:32:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.03 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.03 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 54 20.10.2024 07:32 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 227206 ФПД: 196283678325338 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T073208&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227206&fm=196283678325338&tin=02508201610067®Number=0000000000091685&sum=20003 [07:32:05]StoreToDocumentArchive [07:32:05]shift 533 fd 227206 [07:32:05]save to /storage/0533/doc_00227206 [07:32:05]save last doc name /storage/0533/doc_00227206 to /storage/kkm_last_doc_name [07:32:05]save OK [07:32:05]Clear old archive folders... [07:32:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:32:05]tlvbuf is 00530B10 [07:32:05]SAM_PROTO_ClearQueue [07:32:05]wFMCommunicate request_size=4 [07:32:05]MH_SAM_APDU [07:32:05]CAPDU: 80 09 00 00 [07:32:05]Write to MH i2c: E2 08 00 72 26 80 09 00 00 00 00 00 00 0A [07:32:05]Write i2c OK [07:32:05]MH_I2C_Read... [07:32:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:32:05]Read from MH i2c: E2 [07:32:05]MH_I2C_Read... [07:32:05]Read from MH i2c: E2 03 00 [07:32:05]MH_I2C_Read... [07:32:05]Read from MH i2c: E2 03 00 72 26 00 90 00 0C [07:32:05]RAPDU: 90 00 [07:32:05]wFMCommunicate OK [07:32:05]SAM_PROTO_ClearQueue done [07:32:05]KKMCreateOFDPacket [07:32:05]OFDProtocolAddRootSTLVToBuf [07:32:05]FM_MakeSignedData [07:32:05]FM_MakeSignedData [07:32:05]SAM_PROTO_SignData [07:32:05]wFMCommunicate request_size=4 [07:32:05]MH_SAM_APDU [07:32:05]CAPDU: 80 0D 01 02 [07:32:05]Write to MH i2c: E2 08 00 73 26 80 0D 01 02 00 00 00 00 12 [07:32:05]Write i2c OK [07:32:05]MH_I2C_Read... [07:32:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:32:05]Read from MH i2c: E2 [07:32:05]MH_I2C_Read... [07:32:05]Read from MH i2c: E2 03 00 [07:32:05]MH_I2C_Read... [07:32:05]Read from MH i2c: E2 03 00 73 26 00 90 00 0D [07:32:05]RAPDU: 90 00 [07:32:05]wFMCommunicate OK [07:32:05]wFMCommunicate request_size=255 [07:32:05]MH_SAM_APDU [07:32:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 F8 B1 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 86 77 03 00 35 04 06 00 B2 [07:32:05]Write to MH i2c: E2 02 01 74 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 F8 B1 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 86 77 03 00 35 04 06 00 B2 00 00 94 [07:32:05]Write i2c OK [07:32:05]MH_I2C_Read... [07:32:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:32:05]Read from MH i2c: E2 [07:32:05]MH_I2C_Read... [07:32:05]Read from MH i2c: E2 03 00 [07:32:05]MH_I2C_Read... [07:32:05]Read from MH i2c: E2 03 00 74 26 00 90 00 0E [07:32:05]RAPDU: 90 00 [07:32:05]wFMCommunicate OK [07:32:05]wFMCommunicate request_size=10 [07:32:05]MH_SAM_APDU [07:32:05]CAPDU: 80 0D 02 02 05 84 DA EB FA 5A [07:32:05]Write to MH i2c: E2 0D 00 75 26 80 0D 02 02 05 00 84 DA EB FA 5A 00 00 BC [07:32:05]Write i2c OK [07:32:05]MH_I2C_Read... [07:32:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:32:06]Read from MH i2c: E2 [07:32:06]MH_I2C_Read... [07:32:06]Read from MH i2c: E2 03 00 [07:32:06]MH_I2C_Read... [07:32:06]Read from MH i2c: E2 03 00 75 26 00 90 00 0F [07:32:06]RAPDU: 90 00 [07:32:06]wFMCommunicate OK [07:32:06]wFMCommunicate request_size=4 [07:32:06]MH_SAM_APDU [07:32:06]CAPDU: 80 0D 03 02 [07:32:06]Write to MH i2c: E2 08 00 76 26 80 0D 03 02 00 00 00 00 17 [07:32:06]Write i2c OK [07:32:06]MH_I2C_Read... [07:32:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:32:06]Read from MH i2c: E2 [07:32:06]MH_I2C_Read... [07:32:06]Read from MH i2c: E2 0B 00 [07:32:06]MH_I2C_Read... [07:32:06]Read from MH i2c: E2 0B 00 76 26 00 5E 9F F4 56 F9 3A F4 90 90 00 16 [07:32:06]RAPDU: 5E 9F F4 56 F9 3A F4 90 90 00 [07:32:06]wFMCommunicate OK [07:32:06]SAM_PROTO_SignData done [07:32:06]FM_MakeSignedData done [07:32:06]CreateOFDProtocolMessage [07:32:06]wFMCommunicate request_size=4 [07:32:06]MH_SAM_APDU [07:32:06]CAPDU: 80 11 00 00 [07:32:06]Write to MH i2c: E2 08 00 77 26 80 11 00 00 00 00 00 00 17 [07:32:06]Write i2c OK [07:32:06]MH_I2C_Read... [07:32:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:32:06]Read from MH i2c: E2 [07:32:06]MH_I2C_Read... [07:32:06]Read from MH i2c: E2 17 00 [07:32:06]MH_I2C_Read... [07:32:06]Read from MH i2c: E2 17 00 77 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 6E [07:32:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:32:06]wFMCommunicate OK [07:32:06]CreateOFDProtocolMessage done [07:32:06]OFDSenderStorePacket 227206 [07:32:06]StoreOFDPacket docnum=227206 [07:32:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 1E AF 07 01 0A 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 F8 B1 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 86 77 03 00 35 04 06 00 B2 84 DA EB FA 5A 5E 9F F4 56 F9 3A F4 90 [07:32:06]CheckFolder [07:32:06]dirname=/storage/ofd_packets [07:32:06]CheckFolder done [07:32:06]ProducePacketName [07:32:06]name=ofd_packets/00227206 [07:32:06]NVStorageSaveData ofd_packets/00227206 [07:32:06]File name is /storage/ofd_packets/00227206 [07:32:06]Write 301 bytes [07:32:06]NVStorageSaveData done [07:32:06]OFDSenderStorePacket done [07:32:06]KKMCreateOFDPacket done [07:32:06]NVStorageSaveData kkm_last_timestamp [07:32:06]File name is /storage/kkm_last_timestamp [07:32:06]Write 4 bytes [07:32:06]NVStorageSaveData done [07:32:06]ExternCall_PrintAddStr [07:32:06]wPrintStart [07:32:06]Write to MH i2c: 01 00 00 78 26 9E [07:32:06]Write i2c OK [07:32:06]MH_I2C_Read... [07:32:06]Read from MH i2c: 01 [07:32:06]MH_I2C_Read... [07:32:06]Read from MH i2c: 01 07 00 [07:32:06]MH_I2C_Read... [07:32:06]Read from MH i2c: 01 07 00 78 26 00 00 00 00 00 FF 0F B3 [07:32:06]RasterBufferAndPrint [07:32:06]line Счет N : (1)1962659 [07:32:06]line ИНН: 02508201610067 [07:32:06]line Контрольно-Кассовый Чек [07:32:06]line ПРОДАЖА [07:32:06]line ТРК (МРК, ГНК) : 33 [07:32:06]line Товар: 2710124130 [07:32:06]line Аи-92-К-5 [07:32:06]line 2.990 * 66.90 [07:32:06]line = 200.03 [07:32:06]line НДС 12% НСП 1% [07:32:06]line > о реализуемом товаре [07:32:06]line ИТОГО: 200.03 [07:32:06]line НСП 1% : 1.77 [07:32:06]line НДС 12% : 21.24 [07:32:06]line Наличными: 0.00 [07:32:06]line Безнал.: 200.03 [07:32:06]line Место: АЗС № 133 "Партнер Нефть" [07:32:06]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [07:32:06]line СНО: Общий режим [07:32:06]line Чек 54 20.10.2024 07:32 [07:32:06]line Смена: 533 ФФД: 1.0 [07:32:06]line ЗНМ: 0300000091 [07:32:06]line РНМ: 0000000000091685 [07:32:06]line Версия ККМ: 001 [07:32:06]line Платежная система: Mbank [07:32:06]line ФМ: 0000000000871839 [07:32:06]line ФД: 227206 [07:32:06]line ФПД: 196283678325338 [07:32:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T073208&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227206&fm=196283678325338&tin=02508201610067®Number=0000000000091685&sum=20003 [07:32:06]OFD Sender: Processing packet 227206 [packets to send 38, broken 37] [07:32:06]ProducePacketName [07:32:06]name=ofd_packets/00227206 [07:32:06]OFD Sender: To server: pG, [07:32:06]CommunicateWithHost lk.salyk.kg:30040 [07:32:06]ConnectInit lk.salyk.kg [07:32:06]written 0, free lines is 4095 [07:32:06]Connected sock=10 [07:32: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 33 39 0F 01 00 00 1E AF 07 01 0A 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 F8 B1 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 86 77 03 00 35 04 06 00 B2 84 DA EB FA 5A 5E 9F F4 56 F9 3A F4 90 [07:32: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 33 39 4F 00 00 00 23 43 47 00 62 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 86 77 03 00 F4 03 04 00 F7 5C 14 67 B6 04 01 00 00 73 50 91 73 38 B2 DE 3F [07:32:06]CommunicateWithHost err = 0 [07:32:06]CheckOFDResponse [07:32:06]1017 (14) - 77093643461234 [07:32:06]1041 (16) - 0000000000871839 [07:32:06]1040 (4) - 227206 [07:32:06]1012 (4) - 20.10.2024 01:29 [07:32:06]1206 (1) - 0 [07:32:06]OFD Sender: Remove packet 227206 [07:32:06]ProducePacketName [07:32:06]name=ofd_packets/00227206 [07:32:06]NVStorageDeleteData [07:32:06]Write to MH i2c: 01 00 00 A0 26 C6 [07:32:06]Write i2c OK [07:32:06]MH_I2C_Read... [07:32:06]Read from MH i2c: 01 [07:32:06]MH_I2C_Read... [07:32:06]Read from MH i2c: 01 07 00 [07:32:06]MH_I2C_Read... [07:32:06]Read from MH i2c: 01 07 00 A0 26 00 00 00 00 00 3E 0D 18 [07:32:06]RasterBufferAndPrint [07:32:06]line [07:32:06]line [07:32:06]line [07:32:06]line [07:32:06]line [07:32:06]written 0, free lines is 3399 [07:32:06]process_action close_receipt done [07:32:06]requested_data is exist [07:32:06]produce_requested_data [07:32:06]requested_item fm.sn is exist - process it [07:32:06]wFMCommunicate request_size=4 [07:32:06]MH_SAM_APDU [07:32:06]CAPDU: 80 11 00 00 [07:32:06]Write to MH i2c: E2 08 00 A7 26 80 11 00 00 00 00 00 00 47 [07:32:06]Write i2c OK [07:32:06]MH_I2C_Read... [07:32:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:32:07]Read from MH i2c: E2 [07:32:07]MH_I2C_Read... [07:32:07]Read from MH i2c: E2 17 00 [07:32:07]MH_I2C_Read... [07:32:07]Read from MH i2c: E2 17 00 A7 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 9E [07:32:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:32:07]wFMCommunicate OK [07:32:07]requested_item fd.num is exist - process it [07:32:07]SAM_PROTO_GetFieldsCounters [07:32:07]wFMCommunicate request_size=4 [07:32:07]MH_SAM_APDU [07:32:07]CAPDU: 80 13 00 00 [07:32:07]Write to MH i2c: E2 08 00 A8 26 80 13 00 00 00 00 00 00 4A [07:32:07]Write i2c OK [07:32:07]MH_I2C_Read... [07:32:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:32:07]Read from MH i2c: E2 [07:32:07]MH_I2C_Read... [07:32:07]Read from MH i2c: E2 62 00 [07:32:07]MH_I2C_Read... [07:32:07]Read from MH i2c: E2 62 00 A8 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 86 77 03 00 0E 04 04 00 15 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 2C [07:32: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 86 77 03 00 0E 04 04 00 15 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 [07:32:07]wFMCommunicate OK [07:32:07]SAM_PROTO_GetFieldsCounters done [07:32:07]requested_item shift.num is exist - process it [07:32:07]requested_item shift.opened is exist - process it [07:32:07]req_shift_opened [07:32:07]FM_GetShiftState [07:32:07]SAM_PROTO_GetShiftState [07:32:07]wFMCommunicate request_size=4 [07:32:07]MH_SAM_APDU [07:32:07]CAPDU: 80 13 01 00 [07:32:07]Write to MH i2c: E2 08 00 A9 26 80 13 01 00 00 00 00 00 4C [07:32:07]Write i2c OK [07:32:07]MH_I2C_Read... [07:32:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:32:07]Read from MH i2c: E2 [07:32:07]MH_I2C_Read... [07:32:07]Read from MH i2c: E2 0E 00 [07:32:07]MH_I2C_Read... [07:32:07]Read from MH i2c: E2 0E 00 A9 26 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 66 [07:32:07]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [07:32:07]wFMCommunicate OK [07:32:07]SAM_PROTO_GetShiftState done [07:32:07]FM_GetShiftState done [07:32:07]req_shift_opened done [07:32:07]requested_item shift.open_date is exist - process it [07:32:07]req_shift_open_date [07:32:07]req_shift_open_date done [07:32:07]produce_requested_data done [07:32:07]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227206,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [07:32:07]process_action_free close_receipt [07:32:07]json_value_free [07:32:07]json_value_free done [07:32:07]process_json_proto returns [07:32:07]Send response to host [07:32:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227206,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [07:32:07]free response buf [07:32:07]execute_script done [07:32:07]execute_script returns [07:32:07]free content buf [07:32:07]Sock 9.Close socket [07:32:07]Sock 9.Thread stoped [07:32:07]OFD Sender: No OFD packet to send [07:32:12]OFD Sender: No OFD packet to send [07:32:17]OFD Sender: No OFD packet to send [07:32:22]OFD Sender: No OFD packet to send [07:32:27]OFD Sender: No OFD packet to send [07:32:29]accept exits with 8 [07:32:29]New connection [07:32:29]New thread 3066965348 created [07:32:29]Thread 3066821988 joined [07:32:29]Waiting for new connection... [07:32:29] Sock 8.Parse request [07:32:29]Sock 8.Check first char [07:32:29]Sock 8.First char is OK [07:32:29]request: POST /json_proto HTTP/1.0 [07:32:29]Method: POST [07:32:29]URL: /json_proto [07:32:29]Method is POST - this is cgi request [07:32:29]url: /json_proto [07:32:29]query_string will be loaded in cgi processing [07:32:29]execute_cgi json_proto POST (null) [07:32:29]execute_cgi path=json_proto method=POST [07:32:29]POST find Content-Length [07:32:29]Host: 172.17.44.195:8080 [07:32:29]Content-Length: 767 [07:32:29]Content-Type: application/json [07:32:29] [07:32:29]POST finish read [07:32:29]Found Content-Length = 767 [07:32:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962661", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:32:29]execute_script... [07: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)1962661", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:32:29]POST & json_proto [07:32:29]process_json_proto [07:32:29]json parsed OK: [07:32:29]protocol is kg_v1.0 [07:32:29]action value=close_receipt [07:32:29]process_action close_receipt [07:32:29]cmd_close_receipt [07:32:29]MH_GetDate [07:32:29]Write to MH i2c: F0 00 00 AA 26 BF [07:32:29]Write i2c OK [07:32:29]MH_I2C_Read... [07:32:29]Read from MH i2c: F0 [07:32:29]MH_I2C_Read... [07:32:29]Read from MH i2c: F0 09 00 [07:32:29]MH_I2C_Read... [07:32:29]Read from MH i2c: F0 09 00 AA 26 00 11 B2 14 67 82 C9 CF 66 86 [07:32:29]GetLastDocTimeStamp 1729409528 [07:32:29]current date 1729409553 [07:32:29]FM_GetShiftState [07:32:29]SAM_PROTO_GetShiftState [07:32:29]wFMCommunicate request_size=4 [07:32:29]MH_SAM_APDU [07:32:29]CAPDU: 80 13 01 00 [07:32:29]Write to MH i2c: E2 08 00 AB 26 80 13 01 00 00 00 00 00 4E [07:32:29]Write i2c OK [07:32:29]MH_I2C_Read... [07:32:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:32:29]Read from MH i2c: E2 [07:32:29]MH_I2C_Read... [07:32:29]Read from MH i2c: E2 0E 00 [07:32:29]MH_I2C_Read... [07:32:29]Read from MH i2c: E2 0E 00 AB 26 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 68 [07:32:29]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [07:32:29]wFMCommunicate OK [07:32:29]SAM_PROTO_GetShiftState done [07:32:29]FM_GetShiftState done [07:32:29]opened in 1729383750 [07:32:29]opened+sec_in_day 1729470150 [07:32:29]quantity*price = 70044 [07:32:29]sum+1 = 70046 [07:32:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.45 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.45 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 55 20.10.2024 07:32 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 227207 ФПД: 184367914858490 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T073233&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227207&fm=184367914858490&tin=02508201610067®Number=0000000000091685&sum=70045 [07:32:30]StoreToDocumentArchive [07:32:30]shift 533 fd 227207 [07:32:30]save to /storage/0533/doc_00227207 [07:32:30]save last doc name /storage/0533/doc_00227207 to /storage/kkm_last_doc_name [07:32:30]save OK [07:32:30]Clear old archive folders... [07:32:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:32:30]tlvbuf is B6F583F0 [07:32:30]SAM_PROTO_ClearQueue [07:32:30]wFMCommunicate request_size=4 [07:32:30]MH_SAM_APDU [07:32:30]CAPDU: 80 09 00 00 [07:32:30]Write to MH i2c: E2 08 00 B8 26 80 09 00 00 00 00 00 00 50 [07:32:30]Write i2c OK [07:32:30]MH_I2C_Read... [07:32:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:32:30]Read from MH i2c: E2 [07:32:30]MH_I2C_Read... [07:32:30]Read from MH i2c: E2 03 00 [07:32:30]MH_I2C_Read... [07:32:30]Read from MH i2c: E2 03 00 B8 26 00 90 00 52 [07:32:30]RAPDU: 90 00 [07:32:30]wFMCommunicate OK [07:32:30]SAM_PROTO_ClearQueue done [07:32:30]KKMCreateOFDPacket [07:32:30]OFDProtocolAddRootSTLVToBuf [07:32:30]FM_MakeSignedData [07:32:30]FM_MakeSignedData [07:32:30]SAM_PROTO_SignData [07:32:30]wFMCommunicate request_size=4 [07:32:30]MH_SAM_APDU [07:32:30]CAPDU: 80 0D 01 02 [07:32:30]Write to MH i2c: E2 08 00 B9 26 80 0D 01 02 00 00 00 00 58 [07:32:30]Write i2c OK [07:32:30]MH_I2C_Read... [07:32:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:32:30]Read from MH i2c: E2 [07:32:30]MH_I2C_Read... [07:32:30]Read from MH i2c: E2 03 00 [07:32:30]MH_I2C_Read... [07:32:30]Read from MH i2c: E2 03 00 B9 26 00 90 00 53 [07:32:30]RAPDU: 90 00 [07:32:30]wFMCommunicate OK [07:32:30]wFMCommunicate request_size=255 [07:32:30]MH_SAM_APDU [07: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9D 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 9D 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 11 B2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 87 77 03 00 35 04 06 00 A7 [07:32:30]Write to MH i2c: E2 02 01 BA 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9D 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 9D 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 11 B2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 87 77 03 00 35 04 06 00 A7 00 00 64 [07:32:30]Write i2c OK [07:32:30]MH_I2C_Read... [07:32:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:32:30]Read from MH i2c: E2 [07:32:30]MH_I2C_Read... [07:32:30]Read from MH i2c: E2 03 00 [07:32:30]MH_I2C_Read... [07:32:30]Read from MH i2c: E2 03 00 BA 26 00 90 00 54 [07:32:30]RAPDU: 90 00 [07:32:30]wFMCommunicate OK [07:32:30]wFMCommunicate request_size=10 [07:32:30]MH_SAM_APDU [07:32:30]CAPDU: 80 0D 02 02 05 AE 80 12 B7 FA [07:32:30]Write to MH i2c: E2 0D 00 BB 26 80 0D 02 02 05 00 AE 80 12 B7 FA 00 00 56 [07:32:30]Write i2c OK [07:32:30]MH_I2C_Read... [07:32:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:32:30]Read from MH i2c: E2 [07:32:30]MH_I2C_Read... [07:32:30]Read from MH i2c: E2 03 00 [07:32:30]MH_I2C_Read... [07:32:30]Read from MH i2c: E2 03 00 BB 26 00 90 00 55 [07:32:30]RAPDU: 90 00 [07:32:30]wFMCommunicate OK [07:32:30]wFMCommunicate request_size=4 [07:32:30]MH_SAM_APDU [07:32:30]CAPDU: 80 0D 03 02 [07:32:30]Write to MH i2c: E2 08 00 BC 26 80 0D 03 02 00 00 00 00 5D [07:32:31]Write i2c OK [07:32:31]MH_I2C_Read... [07:32:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:32:31]Read from MH i2c: E2 [07:32:31]MH_I2C_Read... [07:32:31]Read from MH i2c: E2 0B 00 [07:32:31]MH_I2C_Read... [07:32:31]Read from MH i2c: E2 0B 00 BC 26 00 5B 0B 68 12 AA 43 3F AD 90 00 17 [07:32:31]RAPDU: 5B 0B 68 12 AA 43 3F AD 90 00 [07:32:31]wFMCommunicate OK [07:32:31]SAM_PROTO_SignData done [07:32:31]FM_MakeSignedData done [07:32:31]CreateOFDProtocolMessage [07:32:31]wFMCommunicate request_size=4 [07:32:31]MH_SAM_APDU [07:32:31]CAPDU: 80 11 00 00 [07:32:31]Write to MH i2c: E2 08 00 BD 26 80 11 00 00 00 00 00 00 5D [07:32:31]Write i2c OK [07:32:31]MH_I2C_Read... [07:32:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:32:31]Read from MH i2c: E2 [07:32:31]MH_I2C_Read... [07:32:31]Read from MH i2c: E2 17 00 [07:32:31]MH_I2C_Read... [07:32:31]Read from MH i2c: E2 17 00 BD 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B4 [07:32:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:32:31]wFMCommunicate OK [07:32:31]CreateOFDProtocolMessage done [07:32:31]OFDSenderStorePacket 227207 [07:32:31]StoreOFDPacket docnum=227207 [07:32:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 17 7E 07 01 1C 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9D 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 9D 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 11 B2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 87 77 03 00 35 04 06 00 A7 AE 80 12 B7 FA 5B 0B 68 12 AA 43 3F AD [07:32:31]CheckFolder [07:32:31]dirname=/storage/ofd_packets [07:32:31]CheckFolder done [07:32:31]ProducePacketName [07:32:31]name=ofd_packets/00227207 [07:32:31]NVStorageSaveData ofd_packets/00227207 [07:32:31]File name is /storage/ofd_packets/00227207 [07:32:31]Write 301 bytes [07:32:31]NVStorageSaveData done [07:32:31]OFDSenderStorePacket done [07:32:31]KKMCreateOFDPacket done [07:32:31]NVStorageSaveData kkm_last_timestamp [07:32:31]File name is /storage/kkm_last_timestamp [07:32:31]Write 4 bytes [07:32:31]NVStorageSaveData done [07:32:31]ExternCall_PrintAddStr [07:32:31]wPrintStart [07:32:31]Write to MH i2c: 01 00 00 BE 26 E4 [07:32:31]Write i2c OK [07:32:31]MH_I2C_Read... [07:32:31]Read from MH i2c: 01 [07:32:31]MH_I2C_Read... [07:32:31]Read from MH i2c: 01 07 00 [07:32:31]MH_I2C_Read... [07:32:31]Read from MH i2c: 01 07 00 BE 26 00 00 00 00 00 FF 0F F9 [07:32:31]RasterBufferAndPrint [07:32:31]line Счет N : (1)1962661 [07:32:31]line ИНН: 02508201610067 [07:32:31]line Контрольно-Кассовый Чек [07:32:31]line ПРОДАЖА [07:32:31]line ТРК (МРК, ГНК) : 64 [07:32:31]line Товар: 2710124500 [07:32:31]line Аи-95-К-5 [07:32:31]line 9.440 * 74.20 [07:32:31]line = 700.45 [07:32:31]line НДС 12% НСП 1% [07:32:31]line > о реализуемом товаре [07:32:31]line ИТОГО: 700.45 [07:32:31]line НСП 1% : 6.20 [07:32:31]line НДС 12% : 74.38 [07:32:31]line Наличными: 0.00 [07:32:31]line Безнал.: 700.45 [07:32:31]line Место: АЗС № 133 "Партнер Нефть" [07:32:31]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [07:32:31]line СНО: Общий режим [07:32:31]line Чек 55 20.10.2024 07:32 [07:32:31]line Смена: 533 ФФД: 1.0 [07:32:31]line ЗНМ: 0300000091 [07:32:31]line РНМ: 0000000000091685 [07:32:31]line Версия ККМ: 001 [07:32:31]line Платежная система: Mbank [07:32:31]line ФМ: 0000000000871839 [07:32:31]line ФД: 227207 [07:32:31]line ФПД: 184367914858490 [07:32:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T073233&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227207&fm=184367914858490&tin=02508201610067®Number=0000000000091685&sum=70045 [07:32:31]written 0, free lines is 4095 [07:32:31]OFD Sender: Processing packet 227207 [packets to send 38, broken 37] [07:32:31]ProducePacketName [07:32:31]name=ofd_packets/00227207 [07:32:31]OFD Sender: To server: pG, [07:32:31]CommunicateWithHost lk.salyk.kg:30040 [07:32:31]ConnectInit lk.salyk.kg [07:32:31]Connected sock=10 [07: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 33 39 0F 01 00 00 17 7E 07 01 1C 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9D 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 9D 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 11 B2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 87 77 03 00 35 04 06 00 A7 AE 80 12 B7 FA 5B 0B 68 12 AA 43 3F AD [07: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 33 39 4F 00 00 00 2B 35 47 00 4B 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 33 39 10 04 04 00 87 77 03 00 F4 03 04 00 10 5D 14 67 B6 04 01 00 00 7C D3 18 83 98 B0 19 F2 [07:32:31]CommunicateWithHost err = 0 [07:32:31]CheckOFDResponse [07:32:31]1017 (14) - 77093643461234 [07:32:31]1041 (16) - 0000000000871839 [07:32:31]1040 (4) - 227207 [07:32:31]1012 (4) - 20.10.2024 01:29 [07:32:31]1206 (1) - 0 [07:32:31]OFD Sender: Remove packet 227207 [07:32:31]ProducePacketName [07:32:31]name=ofd_packets/00227207 [07:32:31]NVStorageDeleteData [07:32:31]Write to MH i2c: 01 00 00 E6 26 0C [07:32:31]Write i2c OK [07:32:31]MH_I2C_Read... [07:32:31]Read from MH i2c: 01 [07:32:31]MH_I2C_Read... [07:32:31]Read from MH i2c: 01 07 00 [07:32:31]MH_I2C_Read... [07:32:31]Read from MH i2c: 01 07 00 E6 26 00 00 00 00 00 35 0D 55 [07:32:31]RasterBufferAndPrint [07:32:31]line [07:32:31]line [07:32:31]line [07:32:31]line [07:32:31]line [07:32:31]written 0, free lines is 3388 [07:32:31]process_action close_receipt done [07:32:31]requested_data is exist [07:32:31]produce_requested_data [07:32:31]requested_item fm.sn is exist - process it [07:32:31]wFMCommunicate request_size=4 [07:32:31]MH_SAM_APDU [07:32:31]CAPDU: 80 11 00 00 [07:32:31]Write to MH i2c: E2 08 00 ED 26 80 11 00 00 00 00 00 00 8D [07:32:31]Write i2c OK [07:32:31]MH_I2C_Read... [07:32:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:32:31]Read from MH i2c: E2 [07:32:31]MH_I2C_Read... [07:32:31]Read from MH i2c: E2 17 00 [07:32:31]MH_I2C_Read... [07:32:31]Read from MH i2c: E2 17 00 ED 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E4 [07:32:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:32:31]wFMCommunicate OK [07:32:31]requested_item fd.num is exist - process it [07:32:31]SAM_PROTO_GetFieldsCounters [07:32:31]wFMCommunicate request_size=4 [07:32:31]MH_SAM_APDU [07:32:31]CAPDU: 80 13 00 00 [07:32:31]Write to MH i2c: E2 08 00 EE 26 80 13 00 00 00 00 00 00 90 [07:32:31]Write i2c OK [07:32:31]MH_I2C_Read... [07:32:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:32:31]Read from MH i2c: E2 [07:32:31]MH_I2C_Read... [07:32:31]Read from MH i2c: E2 62 00 [07:32:31]MH_I2C_Read... [07:32:31]Read from MH i2c: E2 62 00 EE 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 87 77 03 00 0E 04 04 00 15 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 76 [07: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 87 77 03 00 0E 04 04 00 15 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 [07:32:31]wFMCommunicate OK [07:32:31]SAM_PROTO_GetFieldsCounters done [07:32:31]requested_item shift.num is exist - process it [07:32:31]requested_item shift.opened is exist - process it [07:32:31]req_shift_opened [07:32:31]FM_GetShiftState [07:32:31]SAM_PROTO_GetShiftState [07:32:31]wFMCommunicate request_size=4 [07:32:31]MH_SAM_APDU [07:32:31]CAPDU: 80 13 01 00 [07:32:31]Write to MH i2c: E2 08 00 EF 26 80 13 01 00 00 00 00 00 92 [07:32:31]Write i2c OK [07:32:31]MH_I2C_Read... [07:32:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:32:31]Read from MH i2c: E2 [07:32:31]MH_I2C_Read... [07:32:31]Read from MH i2c: E2 0E 00 [07:32:31]MH_I2C_Read... [07:32:31]Read from MH i2c: E2 0E 00 EF 26 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 AC [07:32:31]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [07:32:31]wFMCommunicate OK [07:32:31]SAM_PROTO_GetShiftState done [07:32:31]FM_GetShiftState done [07:32:31]req_shift_opened done [07:32:31]requested_item shift.open_date is exist - process it [07:32:31]req_shift_open_date [07:32:31]req_shift_open_date done [07:32:31]produce_requested_data done [07:32:31]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227207,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [07:32:31]process_action_free close_receipt [07:32:31]json_value_free [07:32:31]json_value_free done [07:32:31]process_json_proto returns [07:32:31]Send response to host [07:32:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227207,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [07:32:31]free response buf [07:32:31]execute_script done [07:32:31]execute_script returns [07:32:31]free content buf [07:32:31]Sock 8.Close socket [07:32:31]Sock 8.Thread stoped [07:32:31]OFD Sender: No OFD packet to send [07:32:36]OFD Sender: No OFD packet to send [07:32:41]OFD Sender: No OFD packet to send [07:32:47]OFD Sender: No OFD packet to send [07:32:52]OFD Sender: No OFD packet to send [07:32:54]accept exits with 9 [07:32:54]New connection [07:32:54]New thread 3066821988 created [07:32:54]Thread 3066965348 joined [07:32:54]Waiting for new connection... [07:32:54] Sock 9.Parse request [07:32:54]Sock 9.Check first char [07:32:54]Sock 9.First char is OK [07:32:54]request: POST /json_proto HTTP/1.0 [07:32:54]Method: POST [07:32:54]URL: /json_proto [07:32:54]Method is POST - this is cgi request [07:32:54]url: /json_proto [07:32:54]query_string will be loaded in cgi processing [07:32:54]execute_cgi json_proto POST (null) [07:32:54]execute_cgi path=json_proto method=POST [07:32:54]POST find Content-Length [07:32:55]Host: 172.17.44.195:8080 [07:32:55]Content-Length: 683 [07:32:55]Content-Type: application/json [07:32:55] [07:32:55]POST finish read [07:32:55]Found Content-Length = 683 [07:32:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962660", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 37.370, "sum" : 2500.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:32:55]execute_script... [07: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)1962660", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 37.370, "sum" : 2500.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:32:55]POST & json_proto [07:32:55]process_json_proto [07:32:55]json parsed OK: [07:32:55]protocol is kg_v1.0 [07:32:55]action value=close_receipt [07:32:55]process_action close_receipt [07:32:55]cmd_close_receipt [07:32:55]MH_GetDate [07:32:55]Write to MH i2c: F0 00 00 F0 26 05 [07:32:55]Write i2c OK [07:32:55]MH_I2C_Read... [07:32:55]Read from MH i2c: F0 [07:32:55]MH_I2C_Read... [07:32:55]Read from MH i2c: F0 09 00 [07:32:55]MH_I2C_Read... [07:32:55]Read from MH i2c: F0 09 00 F0 26 00 2A B2 14 67 82 C9 CF 66 E5 [07:32:55]GetLastDocTimeStamp 1729409553 [07:32:55]current date 1729409578 [07:32:55]FM_GetShiftState [07:32:55]SAM_PROTO_GetShiftState [07:32:55]wFMCommunicate request_size=4 [07:32:55]MH_SAM_APDU [07:32:55]CAPDU: 80 13 01 00 [07:32:55]Write to MH i2c: E2 08 00 F1 26 80 13 01 00 00 00 00 00 94 [07:32:55]Write i2c OK [07:32:55]MH_I2C_Read... [07:32:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:32:55]Read from MH i2c: E2 [07:32:55]MH_I2C_Read... [07:32:55]Read from MH i2c: E2 0E 00 [07:32:55]MH_I2C_Read... [07:32:55]Read from MH i2c: E2 0E 00 F1 26 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 AE [07:32:55]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [07:32:55]wFMCommunicate OK [07:32:55]SAM_PROTO_GetShiftState done [07:32:55]FM_GetShiftState done [07:32:55]opened in 1729383750 [07:32:55]opened+sec_in_day 1729470150 [07:32:55]quantity*price = 250005 [07:32:55]sum+1 = 250006 [07:32:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.12 НДС 12% : 265.49 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 56 20.10.2024 07:32 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227208 ФПД: 155297787848637 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T073258&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227208&fm=155297787848637&tin=02508201610067®Number=0000000000091685&sum=250000 [07:32:56]StoreToDocumentArchive [07:32:56]shift 533 fd 227208 [07:32:56]save to /storage/0533/doc_00227208 [07:32:56]save last doc name /storage/0533/doc_00227208 to /storage/kkm_last_doc_name [07:32:56]save OK [07:32:56]Clear old archive folders... [07:32:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:32:56]tlvbuf is 00534BF0 [07:32:56]SAM_PROTO_ClearQueue [07:32:56]wFMCommunicate request_size=4 [07:32:56]MH_SAM_APDU [07:32:56]CAPDU: 80 09 00 00 [07:32:56]Write to MH i2c: E2 08 00 FE 26 80 09 00 00 00 00 00 00 96 [07:32:56]Write i2c OK [07:32:56]MH_I2C_Read... [07:32:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:32:56]Read from MH i2c: E2 [07:32:56]MH_I2C_Read... [07:32:56]Read from MH i2c: E2 03 00 [07:32:56]MH_I2C_Read... [07:32:56]Read from MH i2c: E2 03 00 FE 26 00 90 00 98 [07:32:56]RAPDU: 90 00 [07:32:56]wFMCommunicate OK [07:32:56]SAM_PROTO_ClearQueue done [07:32:56]KKMCreateOFDPacket [07:32:56]OFDProtocolAddRootSTLVToBuf [07:32:56]FM_MakeSignedData [07:32:56]FM_MakeSignedData [07:32:56]SAM_PROTO_SignData [07:32:56]wFMCommunicate request_size=4 [07:32:56]MH_SAM_APDU [07:32:56]CAPDU: 80 0D 01 02 [07:32:56]Write to MH i2c: E2 08 00 FF 26 80 0D 01 02 00 00 00 00 9E [07:32:56]Write i2c OK [07:32:56]MH_I2C_Read... [07:32:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:32:56]Read from MH i2c: E2 [07:32:56]MH_I2C_Read... [07:32:56]Read from MH i2c: E2 03 00 [07:32:56]MH_I2C_Read... [07:32:56]Read from MH i2c: E2 03 00 FF 26 00 90 00 99 [07:32:56]RAPDU: 90 00 [07:32:56]wFMCommunicate OK [07:32:56]wFMCommunicate request_size=255 [07:32:56]MH_SAM_APDU [07: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 35 FF 03 08 00 03 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 2A B2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 88 77 03 00 35 04 06 00 8D [07:32:56]Write to MH i2c: E2 02 01 00 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 2A B2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 88 77 03 00 35 04 06 00 8D 00 00 A3 [07:32:56]Write i2c OK [07:32:56]MH_I2C_Read... [07:32:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:32:56]Read from MH i2c: E2 [07:32:56]MH_I2C_Read... [07:32:56]Read from MH i2c: E2 03 00 [07:32:56]MH_I2C_Read... [07:32:56]Read from MH i2c: E2 03 00 00 27 00 90 00 9B [07:32:56]RAPDU: 90 00 [07:32:56]wFMCommunicate OK [07:32:56]wFMCommunicate request_size=10 [07:32:56]MH_SAM_APDU [07:32:56]CAPDU: 80 0D 02 02 05 3E 15 7A A7 BD [07:32:56]Write to MH i2c: E2 0D 00 01 27 80 0D 02 02 05 00 3E 15 7A A7 BD 00 00 DD [07:32:56]Write i2c OK [07:32:56]MH_I2C_Read... [07:32:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:32:56]Read from MH i2c: E2 [07:32:56]MH_I2C_Read... [07:32:56]Read from MH i2c: E2 03 00 [07:32:56]MH_I2C_Read... [07:32:56]Read from MH i2c: E2 03 00 01 27 00 90 00 9C [07:32:56]RAPDU: 90 00 [07:32:56]wFMCommunicate OK [07:32:56]wFMCommunicate request_size=4 [07:32:56]MH_SAM_APDU [07:32:56]CAPDU: 80 0D 03 02 [07:32:56]Write to MH i2c: E2 08 00 02 27 80 0D 03 02 00 00 00 00 A4 [07:32:56]Write i2c OK [07:32:56]MH_I2C_Read... [07:32:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:32:56]Read from MH i2c: E2 [07:32:56]MH_I2C_Read... [07:32:56]Read from MH i2c: E2 0B 00 [07:32:56]MH_I2C_Read... [07:32:56]Read from MH i2c: E2 0B 00 02 27 00 BE F5 04 F5 76 2D A1 B1 90 00 46 [07:32:56]RAPDU: BE F5 04 F5 76 2D A1 B1 90 00 [07:32:56]wFMCommunicate OK [07:32:56]SAM_PROTO_SignData done [07:32:56]FM_MakeSignedData done [07:32:56]CreateOFDProtocolMessage [07:32:56]wFMCommunicate request_size=4 [07:32:56]MH_SAM_APDU [07:32:56]CAPDU: 80 11 00 00 [07:32:56]Write to MH i2c: E2 08 00 03 27 80 11 00 00 00 00 00 00 A4 [07:32:56]Write i2c OK [07:32:56]MH_I2C_Read... [07:32:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:32:56]Read from MH i2c: E2 [07:32:56]MH_I2C_Read... [07:32:56]Read from MH i2c: E2 17 00 [07:32:56]MH_I2C_Read... [07:32:56]Read from MH i2c: E2 17 00 03 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 FB [07:32:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:32:56]wFMCommunicate OK [07:32:56]CreateOFDProtocolMessage done [07:32:56]OFDSenderStorePacket 227208 [07:32:56]StoreOFDPacket docnum=227208 [07:32:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 28 E7 07 01 26 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 2A B2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 88 77 03 00 35 04 06 00 8D 3E 15 7A A7 BD BE F5 04 F5 76 2D A1 B1 [07:32:56]CheckFolder [07:32:56]dirname=/storage/ofd_packets [07:32:56]CheckFolder done [07:32:56]ProducePacketName [07:32:56]name=ofd_packets/00227208 [07:32:56]NVStorageSaveData ofd_packets/00227208 [07:32:56]File name is /storage/ofd_packets/00227208 [07:32:56]Write 301 bytes [07:32:56]NVStorageSaveData done [07:32:56]OFDSenderStorePacket done [07:32:56]KKMCreateOFDPacket done [07:32:56]NVStorageSaveData kkm_last_timestamp [07:32:56]File name is /storage/kkm_last_timestamp [07:32:56]Write 4 bytes [07:32:56]NVStorageSaveData done [07:32:56]ExternCall_PrintAddStr [07:32:56]wPrintStart [07:32:56]Write to MH i2c: 01 00 00 04 27 2B [07:32:56]Write i2c OK [07:32:56]MH_I2C_Read... [07:32:56]Read from MH i2c: 01 [07:32:56]MH_I2C_Read... [07:32:56]Read from MH i2c: 01 07 00 [07:32:56]MH_I2C_Read... [07:32:56]Read from MH i2c: 01 07 00 04 27 00 00 00 00 00 FF 0F 40 [07:32:56]RasterBufferAndPrint [07:32:56]line Счет N : (1)1962660 [07:32:56]line ИНН: 02508201610067 [07:32:56]line Контрольно-Кассовый Чек [07:32:56]line ПРОДАЖА [07:32:56]line ТРК (МРК, ГНК) : 53 [07:32:56]line Товар: 2710124130 [07:32:56]line Аи-92-К-5 [07:32:56]line 37.370 * 66.90 [07:32:56]line = 2500.05 [07:32:56]line НДС 12% НСП 1% [07:32:56]line > о реализуемом товаре [07:32:56]line ОКРУГЛЕНИЕ: -0.05 [07:32:56]line ИТОГО: 2500.00 [07:32:56]line Внесено: 2500.00 [07:32:56]line СДАЧА: 0.00 [07:32:56]line НСП 1% : 22.12 [07:32:56]line НДС 12% : 265.49 [07:32:56]line Наличными: 2500.00 [07:32:56]line Безнал.: 0.00 [07:32:56]line Место: АЗС № 133 "Партнер Нефть" [07:32:56]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [07:32:56]line СНО: Общий режим [07:32:56]line Чек 56 20.10.2024 07:32 [07:32:56]line Смена: 533 ФФД: 1.0 [07:32:56]line ЗНМ: 0300000091 [07:32:56]line РНМ: 0000000000091685 [07:32:56]line Версия ККМ: 001 [07:32:56]line ФМ: 0000000000871839 [07:32:56]line ФД: 227208 [07:32:56]line ФПД: 155297787848637 [07:32:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T073258&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227208&fm=155297787848637&tin=02508201610067®Number=0000000000091685&sum=250000 [07:32:57]written 0, free lines is 4095 [07:32:57]OFD Sender: Processing packet 227208 [packets to send 38, broken 37] [07:32:57]ProducePacketName [07:32:57]name=ofd_packets/00227208 [07:32:57]OFD Sender: To server: pG, [07:32:57]CommunicateWithHost lk.salyk.kg:30040 [07:32:57]ConnectInit lk.salyk.kg [07:32:57]Connected sock=8 [07: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 33 39 0F 01 00 00 28 E7 07 01 26 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 2A B2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 88 77 03 00 35 04 06 00 8D 3E 15 7A A7 BD BE F5 04 F5 76 2D A1 B1 [07: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 33 39 4F 00 00 00 E8 84 47 00 EE 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 88 77 03 00 F4 03 04 00 2A 5D 14 67 B6 04 01 00 00 B5 04 85 81 65 62 B7 B3 [07:32:57]CommunicateWithHost err = 0 [07:32:57]CheckOFDResponse [07:32:57]1017 (14) - 77093643461234 [07:32:57]1041 (16) - 0000000000871839 [07:32:57]1040 (4) - 227208 [07:32:57]1012 (4) - 20.10.2024 01:30 [07:32:57]1206 (1) - 0 [07:32:57]OFD Sender: Remove packet 227208 [07:32:57]ProducePacketName [07:32:57]name=ofd_packets/00227208 [07:32:57]NVStorageDeleteData [07:32:57]Write to MH i2c: 01 00 00 2E 27 55 [07:32:57]Write i2c OK [07:32:57]MH_I2C_Read... [07:32:57]Read from MH i2c: 01 [07:32:57]MH_I2C_Read... [07:32:57]Read from MH i2c: 01 07 00 [07:32:57]MH_I2C_Read... [07:32:57]Read from MH i2c: 01 07 00 2E 27 00 00 00 00 00 0F 0D 78 [07:32:57]RasterBufferAndPrint [07:32:57]line [07:32:57]line [07:32:57]line [07:32:57]line [07:32:57]line [07:32:57]written 0, free lines is 3352 [07:32:57]process_action close_receipt done [07:32:57]requested_data is exist [07:32:57]produce_requested_data [07:32:57]requested_item fm.sn is exist - process it [07:32:57]wFMCommunicate request_size=4 [07:32:57]MH_SAM_APDU [07:32:57]CAPDU: 80 11 00 00 [07:32:57]Write to MH i2c: E2 08 00 35 27 80 11 00 00 00 00 00 00 D6 [07:32:57]Write i2c OK [07:32:57]MH_I2C_Read... [07:32:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:32:57]Read from MH i2c: E2 [07:32:57]MH_I2C_Read... [07:32:57]Read from MH i2c: E2 17 00 [07:32:57]MH_I2C_Read... [07:32:57]Read from MH i2c: E2 17 00 35 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 2D [07:32:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:32:57]wFMCommunicate OK [07:32:57]requested_item fd.num is exist - process it [07:32:57]SAM_PROTO_GetFieldsCounters [07:32:57]wFMCommunicate request_size=4 [07:32:57]MH_SAM_APDU [07:32:57]CAPDU: 80 13 00 00 [07:32:57]Write to MH i2c: E2 08 00 36 27 80 13 00 00 00 00 00 00 D9 [07:32:57]Write i2c OK [07:32:57]MH_I2C_Read... [07:32:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:32:57]Read from MH i2c: E2 [07:32:57]MH_I2C_Read... [07:32:57]Read from MH i2c: E2 62 00 [07:32:57]MH_I2C_Read... [07:32:57]Read from MH i2c: E2 62 00 36 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 88 77 03 00 0E 04 04 00 15 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 C3 [07:32: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 88 77 03 00 0E 04 04 00 15 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 [07:32:57]wFMCommunicate OK [07:32:57]SAM_PROTO_GetFieldsCounters done [07:32:57]requested_item shift.num is exist - process it [07:32:57]requested_item shift.opened is exist - process it [07:32:57]req_shift_opened [07:32:57]FM_GetShiftState [07:32:57]SAM_PROTO_GetShiftState [07:32:57]wFMCommunicate request_size=4 [07:32:57]MH_SAM_APDU [07:32:57]CAPDU: 80 13 01 00 [07:32:57]Write to MH i2c: E2 08 00 37 27 80 13 01 00 00 00 00 00 DB [07:32:57]Write i2c OK [07:32:57]MH_I2C_Read... [07:32:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:32:57]Read from MH i2c: E2 [07:32:57]MH_I2C_Read... [07:32:57]Read from MH i2c: E2 0E 00 [07:32:57]MH_I2C_Read... [07:32:57]Read from MH i2c: E2 0E 00 37 27 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 F5 [07:32:57]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [07:32:57]wFMCommunicate OK [07:32:57]SAM_PROTO_GetShiftState done [07:32:57]FM_GetShiftState done [07:32:57]req_shift_opened done [07:32:57]requested_item shift.open_date is exist - process it [07:32:57]req_shift_open_date [07:32:57]req_shift_open_date done [07:32:57]produce_requested_data done [07:32:57]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227208,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [07:32:57]process_action_free close_receipt [07:32:57]json_value_free [07:32:57]json_value_free done [07:32:57]process_json_proto returns [07:32:57]Send response to host [07:32:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227208,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [07:32:57]free response buf [07:32:57]execute_script done [07:32:57]execute_script returns [07:32:57]free content buf [07:32:57]Sock 9.Close socket [07:32:57]Sock 9.Thread stoped [07:32:57]OFD Sender: No OFD packet to send [07:33:02]OFD Sender: No OFD packet to send [07:33:07]OFD Sender: No OFD packet to send [07:33:12]OFD Sender: No OFD packet to send [07:33:17]OFD Sender: No OFD packet to send [07:33:22]OFD Sender: No OFD packet to send [07:33:27]OFD Sender: No OFD packet to send [07:33:32]OFD Sender: No OFD packet to send [07:33:37]OFD Sender: No OFD packet to send [07:33:42]OFD Sender: No OFD packet to send [07:33:47]OFD Sender: No OFD packet to send [07:33:49]accept exits with 10 [07:33:49]New connection [07:33:49]New thread 3066965348 created [07:33:49]Thread 3066821988 joined [07:33:49]Waiting for new connection... [07:33:49] Sock 10.Parse request [07:33:49]Sock 10.Check first char [07:33:49]Sock 10.First char is OK [07:33:49]request: POST /json_proto HTTP/1.0 [07:33:49]Method: POST [07:33:49]URL: /json_proto [07:33:49]Method is POST - this is cgi request [07:33:49]url: /json_proto [07:33:49]query_string will be loaded in cgi processing [07:33:49]execute_cgi json_proto POST (null) [07:33:49]execute_cgi path=json_proto method=POST [07:33:49]POST find Content-Length [07:33:49]Host: 172.17.44.195:8080 [07:33:49]Content-Length: 678 [07:33:49]Content-Type: application/json [07:33:49] [07:33:49]POST finish read [07:33:49]Found Content-Length = 678 [07:33:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962662", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:33:49]execute_script... [07:33: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)1962662", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:33:49]POST & json_proto [07:33:49]process_json_proto [07:33:49]json parsed OK: [07:33:49]protocol is kg_v1.0 [07:33:49]action value=close_receipt [07:33:49]process_action close_receipt [07:33:49]cmd_close_receipt [07:33:49]MH_GetDate [07:33:49]Write to MH i2c: F0 00 00 38 27 4E [07:33:49]Write i2c OK [07:33:49]MH_I2C_Read... [07:33:49]Read from MH i2c: F0 [07:33:49]MH_I2C_Read... [07:33:49]Read from MH i2c: F0 09 00 [07:33:49]MH_I2C_Read... [07:33:49]Read from MH i2c: F0 09 00 38 27 00 61 B2 14 67 82 C9 CF 66 65 [07:33:49]GetLastDocTimeStamp 1729409578 [07:33:49]current date 1729409633 [07:33:49]FM_GetShiftState [07:33:49]SAM_PROTO_GetShiftState [07:33:49]wFMCommunicate request_size=4 [07:33:49]MH_SAM_APDU [07:33:49]CAPDU: 80 13 01 00 [07:33:49]Write to MH i2c: E2 08 00 39 27 80 13 01 00 00 00 00 00 DD [07:33:49]Write i2c OK [07:33:49]MH_I2C_Read... [07:33:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:33:49]Read from MH i2c: E2 [07:33:49]MH_I2C_Read... [07:33:49]Read from MH i2c: E2 0E 00 [07:33:49]MH_I2C_Read... [07:33:49]Read from MH i2c: E2 0E 00 39 27 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 F7 [07:33:49]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [07:33:49]wFMCommunicate OK [07:33:49]SAM_PROTO_GetShiftState done [07:33:49]FM_GetShiftState done [07:33:49]opened in 1729383750 [07:33:49]opened+sec_in_day 1729470150 [07:33:49]quantity*price = 50041 [07:33:49]sum+1 = 50042 [07:33:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 57 20.10.2024 07:33 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227209 ФПД: 105964725197644 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T073353&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227209&fm=105964725197644&tin=02508201610067®Number=0000000000091685&sum=50000 [07:33:50]StoreToDocumentArchive [07:33:50]shift 533 fd 227209 [07:33:50]save to /storage/0533/doc_00227209 [07:33:50]save last doc name /storage/0533/doc_00227209 to /storage/kkm_last_doc_name [07:33:50]save OK [07:33:50]Clear old archive folders... [07:33:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:33:50]tlvbuf is 004D6B20 [07:33:50]SAM_PROTO_ClearQueue [07:33:50]wFMCommunicate request_size=4 [07:33:50]MH_SAM_APDU [07:33:50]CAPDU: 80 09 00 00 [07:33:50]Write to MH i2c: E2 08 00 46 27 80 09 00 00 00 00 00 00 DF [07:33:50]Write i2c OK [07:33:50]MH_I2C_Read... [07:33:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:33:51]Read from MH i2c: E2 [07:33:51]MH_I2C_Read... [07:33:51]Read from MH i2c: E2 03 00 [07:33:51]MH_I2C_Read... [07:33:51]Read from MH i2c: E2 03 00 46 27 00 90 00 E1 [07:33:51]RAPDU: 90 00 [07:33:51]wFMCommunicate OK [07:33:51]SAM_PROTO_ClearQueue done [07:33:51]KKMCreateOFDPacket [07:33:51]OFDProtocolAddRootSTLVToBuf [07:33:51]FM_MakeSignedData [07:33:51]FM_MakeSignedData [07:33:51]SAM_PROTO_SignData [07:33:51]wFMCommunicate request_size=4 [07:33:51]MH_SAM_APDU [07:33:51]CAPDU: 80 0D 01 02 [07:33:51]Write to MH i2c: E2 08 00 47 27 80 0D 01 02 00 00 00 00 E7 [07:33:51]Write i2c OK [07:33:51]MH_I2C_Read... [07:33:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:33:51]Read from MH i2c: E2 [07:33:51]MH_I2C_Read... [07:33:51]Read from MH i2c: E2 03 00 [07:33:51]MH_I2C_Read... [07:33:51]Read from MH i2c: E2 03 00 47 27 00 90 00 E2 [07:33:51]RAPDU: 90 00 [07:33:51]wFMCommunicate OK [07:33:51]wFMCommunicate request_size=255 [07:33:51]MH_SAM_APDU [07:33:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 61 B2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 89 77 03 00 35 04 06 00 60 [07:33:51]Write to MH i2c: E2 02 01 48 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 61 B2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 89 77 03 00 35 04 06 00 60 00 00 BF [07:33:51]Write i2c OK [07:33:51]MH_I2C_Read... [07:33:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:33:51]Read from MH i2c: E2 [07:33:51]MH_I2C_Read... [07:33:51]Read from MH i2c: E2 03 00 [07:33:51]MH_I2C_Read... [07:33:51]Read from MH i2c: E2 03 00 48 27 00 90 00 E3 [07:33:51]RAPDU: 90 00 [07:33:51]wFMCommunicate OK [07:33:51]wFMCommunicate request_size=10 [07:33:51]MH_SAM_APDU [07:33:51]CAPDU: 80 0D 02 02 05 5F D5 CD DB 4C [07:33:51]Write to MH i2c: E2 0D 00 49 27 80 0D 02 02 05 00 5F D5 CD DB 4C 00 00 1C [07:33:51]Write i2c OK [07:33:51]MH_I2C_Read... [07:33:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:33:51]Read from MH i2c: E2 [07:33:51]MH_I2C_Read... [07:33:51]Read from MH i2c: E2 03 00 [07:33:51]MH_I2C_Read... [07:33:51]Read from MH i2c: E2 03 00 49 27 00 90 00 E4 [07:33:51]RAPDU: 90 00 [07:33:51]wFMCommunicate OK [07:33:51]wFMCommunicate request_size=4 [07:33:51]MH_SAM_APDU [07:33:51]CAPDU: 80 0D 03 02 [07:33:51]Write to MH i2c: E2 08 00 4A 27 80 0D 03 02 00 00 00 00 EC [07:33:51]Write i2c OK [07:33:51]MH_I2C_Read... [07:33:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:33:51]Read from MH i2c: E2 [07:33:51]MH_I2C_Read... [07:33:51]Read from MH i2c: E2 0B 00 [07:33:51]MH_I2C_Read... [07:33:51]Read from MH i2c: E2 0B 00 4A 27 00 3A 1C B6 61 72 EF 7A 6B 90 00 A0 [07:33:51]RAPDU: 3A 1C B6 61 72 EF 7A 6B 90 00 [07:33:51]wFMCommunicate OK [07:33:51]SAM_PROTO_SignData done [07:33:51]FM_MakeSignedData done [07:33:51]CreateOFDProtocolMessage [07:33:51]wFMCommunicate request_size=4 [07:33:51]MH_SAM_APDU [07:33:51]CAPDU: 80 11 00 00 [07:33:51]Write to MH i2c: E2 08 00 4B 27 80 11 00 00 00 00 00 00 EC [07:33:51]Write i2c OK [07:33:51]MH_I2C_Read... [07:33:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:33:51]Read from MH i2c: E2 [07:33:51]MH_I2C_Read... [07:33:51]Read from MH i2c: E2 17 00 [07:33:51]MH_I2C_Read... [07:33:51]Read from MH i2c: E2 17 00 4B 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 43 [07:33:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:33:51]wFMCommunicate OK [07:33:51]CreateOFDProtocolMessage done [07:33:51]OFDSenderStorePacket 227209 [07:33:51]StoreOFDPacket docnum=227209 [07:33:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 77 22 07 01 DB A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 61 B2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 89 77 03 00 35 04 06 00 60 5F D5 CD DB 4C 3A 1C B6 61 72 EF 7A 6B [07:33:51]CheckFolder [07:33:51]dirname=/storage/ofd_packets [07:33:51]CheckFolder done [07:33:51]ProducePacketName [07:33:51]name=ofd_packets/00227209 [07:33:51]NVStorageSaveData ofd_packets/00227209 [07:33:51]File name is /storage/ofd_packets/00227209 [07:33:51]Write 301 bytes [07:33:51]NVStorageSaveData done [07:33:51]OFDSenderStorePacket done [07:33:51]KKMCreateOFDPacket done [07:33:51]NVStorageSaveData kkm_last_timestamp [07:33:51]File name is /storage/kkm_last_timestamp [07:33:51]Write 4 bytes [07:33:51]NVStorageSaveData done [07:33:51]ExternCall_PrintAddStr [07:33:51]wPrintStart [07:33:51]Write to MH i2c: 01 00 00 4C 27 73 [07:33:51]Write i2c OK [07:33:51]MH_I2C_Read... [07:33:51]Read from MH i2c: 01 [07:33:51]MH_I2C_Read... [07:33:51]Read from MH i2c: 01 07 00 [07:33:51]MH_I2C_Read... [07:33:51]Read from MH i2c: 01 07 00 4C 27 00 00 00 00 00 FF 0F 88 [07:33:51]RasterBufferAndPrint [07:33:51]line Счет N : (1)1962662 [07:33:51]line ИНН: 02508201610067 [07:33:51]line Контрольно-Кассовый Чек [07:33:51]line ПРОДАЖА [07:33:51]line ТРК (МРК, ГНК) : 43 [07:33:51]line Товар: 2710124130 [07:33:51]line Аи-92-К-5 [07:33:51]line 7.480 * 66.90 [07:33:51]line = 500.41 [07:33:51]line НДС 12% НСП 1% [07:33:51]line > о реализуемом товаре [07:33:51]line ОКРУГЛЕНИЕ: -0.41 [07:33:51]line ИТОГО: 500.00 [07:33:51]line Внесено: 500.00 [07:33:51]line СДАЧА: 0.00 [07:33:51]line НСП 1% : 4.43 [07:33:51]line НДС 12% : 53.14 [07:33:51]line Наличными: 500.00 [07:33:51]line Безнал.: 0.00 [07:33:51]line Место: АЗС № 133 "Партнер Нефть" [07:33:51]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [07:33:51]line СНО: Общий режим [07:33:51]line Чек 57 20.10.2024 07:33 [07:33:51]line Смена: 533 ФФД: 1.0 [07:33:51]line ЗНМ: 0300000091 [07:33:51]line РНМ: 0000000000091685 [07:33:51]line Версия ККМ: 001 [07:33:51]line ФМ: 0000000000871839 [07:33:51]line ФД: 227209 [07:33:51]line ФПД: 105964725197644 [07:33:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T073353&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227209&fm=105964725197644&tin=02508201610067®Number=0000000000091685&sum=50000 [07:33:51]written 0, free lines is 4095 [07:33:51]OFD Sender: Processing packet 227209 [packets to send 38, broken 37] [07:33:51]ProducePacketName [07:33:51]name=ofd_packets/00227209 [07:33:51]OFD Sender: To server: pG, [07:33:51]CommunicateWithHost lk.salyk.kg:30040 [07:33:51]ConnectInit lk.salyk.kg [07:33:51]Connected sock=9 [07:33: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 33 39 0F 01 00 00 77 22 07 01 DB A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 61 B2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 89 77 03 00 35 04 06 00 60 5F D5 CD DB 4C 3A 1C B6 61 72 EF 7A 6B [07:33: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 33 39 4F 00 00 00 25 61 47 00 A0 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 33 39 10 04 04 00 89 77 03 00 F4 03 04 00 60 5D 14 67 B6 04 01 00 00 B3 1D 4F 7B C7 76 2E A0 [07:33:51]CommunicateWithHost err = 0 [07:33:51]CheckOFDResponse [07:33:51]1017 (14) - 77093643461234 [07:33:51]1041 (16) - 0000000000871839 [07:33:51]1040 (4) - 227209 [07:33:51]1012 (4) - 20.10.2024 01:31 [07:33:51]1206 (1) - 0 [07:33:51]OFD Sender: Remove packet 227209 [07:33:51]ProducePacketName [07:33:51]name=ofd_packets/00227209 [07:33:51]NVStorageDeleteData [07:33:51]Write to MH i2c: 01 00 00 76 27 9D [07:33:51]Write i2c OK [07:33:51]MH_I2C_Read... [07:33:51]Read from MH i2c: 01 [07:33:51]MH_I2C_Read... [07:33:51]Read from MH i2c: 01 07 00 [07:33:51]MH_I2C_Read... [07:33:51]Read from MH i2c: 01 07 00 76 27 00 00 00 00 00 12 0D C3 [07:33:51]RasterBufferAndPrint [07:33:51]line [07:33:51]line [07:33:51]line [07:33:51]line [07:33:51]line [07:33:51]written 0, free lines is 3352 [07:33:52]process_action close_receipt done [07:33:52]requested_data is exist [07:33:52]produce_requested_data [07:33:52]requested_item fm.sn is exist - process it [07:33:52]wFMCommunicate request_size=4 [07:33:52]MH_SAM_APDU [07:33:52]CAPDU: 80 11 00 00 [07:33:52]Write to MH i2c: E2 08 00 7D 27 80 11 00 00 00 00 00 00 1E [07:33:52]Write i2c OK [07:33:52]MH_I2C_Read... [07:33:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:33:52]Read from MH i2c: E2 [07:33:52]MH_I2C_Read... [07:33:52]Read from MH i2c: E2 17 00 [07:33:52]MH_I2C_Read... [07:33:52]Read from MH i2c: E2 17 00 7D 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 75 [07:33:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:33:52]wFMCommunicate OK [07:33:52]requested_item fd.num is exist - process it [07:33:52]SAM_PROTO_GetFieldsCounters [07:33:52]wFMCommunicate request_size=4 [07:33:52]MH_SAM_APDU [07:33:52]CAPDU: 80 13 00 00 [07:33:52]Write to MH i2c: E2 08 00 7E 27 80 13 00 00 00 00 00 00 21 [07:33:52]Write i2c OK [07:33:52]MH_I2C_Read... [07:33:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:33:52]Read from MH i2c: E2 [07:33:52]MH_I2C_Read... [07:33:52]Read from MH i2c: E2 62 00 [07:33:52]MH_I2C_Read... [07:33:52]Read from MH i2c: E2 62 00 7E 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 89 77 03 00 0E 04 04 00 15 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 0F [07:33: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 89 77 03 00 0E 04 04 00 15 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 [07:33:52]wFMCommunicate OK [07:33:52]SAM_PROTO_GetFieldsCounters done [07:33:52]requested_item shift.num is exist - process it [07:33:52]requested_item shift.opened is exist - process it [07:33:52]req_shift_opened [07:33:52]FM_GetShiftState [07:33:52]SAM_PROTO_GetShiftState [07:33:52]wFMCommunicate request_size=4 [07:33:52]MH_SAM_APDU [07:33:52]CAPDU: 80 13 01 00 [07:33:52]Write to MH i2c: E2 08 00 7F 27 80 13 01 00 00 00 00 00 23 [07:33:52]Write i2c OK [07:33:52]MH_I2C_Read... [07:33:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:33:52]Read from MH i2c: E2 [07:33:52]MH_I2C_Read... [07:33:52]Read from MH i2c: E2 0E 00 [07:33:52]MH_I2C_Read... [07:33:52]Read from MH i2c: E2 0E 00 7F 27 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 3D [07:33:52]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [07:33:52]wFMCommunicate OK [07:33:52]SAM_PROTO_GetShiftState done [07:33:52]FM_GetShiftState done [07:33:52]req_shift_opened done [07:33:52]requested_item shift.open_date is exist - process it [07:33:52]req_shift_open_date [07:33:52]req_shift_open_date done [07:33:52]produce_requested_data done [07:33:52]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227209,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [07:33:52]process_action_free close_receipt [07:33:52]json_value_free [07:33:52]json_value_free done [07:33:52]process_json_proto returns [07:33:52]Send response to host [07:33:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227209,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [07:33:52]free response buf [07:33:52]execute_script done [07:33:52]execute_script returns [07:33:52]free content buf [07:33:52]Sock 10.Close socket [07:33:52]Sock 10.Thread stoped [07:33:52]OFD Sender: No OFD packet to send [07:33:57]OFD Sender: No OFD packet to send [07:34:02]OFD Sender: No OFD packet to send [07:34:07]OFD Sender: No OFD packet to send [07:34:12]OFD Sender: No OFD packet to send [07:34:17]OFD Sender: No OFD packet to send [07:34:22]OFD Sender: No OFD packet to send [07:34:27]OFD Sender: No OFD packet to send [07:34:32]OFD Sender: No OFD packet to send [07:34:37]OFD Sender: No OFD packet to send [07:34:42]OFD Sender: No OFD packet to send [07:34:47]OFD Sender: No OFD packet to send [07:34:52]OFD Sender: No OFD packet to send [07:34:57]OFD Sender: No OFD packet to send [07:35:02]OFD Sender: No OFD packet to send [07:35:07]OFD Sender: No OFD packet to send [07:35:12]OFD Sender: No OFD packet to send [07:35:17]OFD Sender: No OFD packet to send [07:35:21]accept exits with 8 [07:35:21]New connection [07:35:21]New thread 3066821988 created [07:35:21]Thread 3066965348 joined [07:35:21]Waiting for new connection... [07:35:21] Sock 8.Parse request [07:35:21]Sock 8.Check first char [07:35:21]Sock 8.First char is OK [07:35:21]request: POST /json_proto HTTP/1.0 [07:35:21]Method: POST [07:35:21]URL: /json_proto [07:35:21]Method is POST - this is cgi request [07:35:21]url: /json_proto [07:35:21]query_string will be loaded in cgi processing [07:35:21]execute_cgi json_proto POST (null) [07:35:21]execute_cgi path=json_proto method=POST [07:35:21]POST find Content-Length [07:35:21]Host: 172.17.44.195:8080 [07:35:21]Content-Length: 683 [07:35:21]Content-Type: application/json [07:35:21] [07:35:21]POST finish read [07:35:21]Found Content-Length = 683 [07:35:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962664", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:35:21]execute_script... [07:35: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)1962664", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:35:21]POST & json_proto [07:35:21]process_json_proto [07:35:21]json parsed OK: [07:35:21]protocol is kg_v1.0 [07:35:21]action value=close_receipt [07:35:21]process_action close_receipt [07:35:21]cmd_close_receipt [07:35:21]MH_GetDate [07:35:21]Write to MH i2c: F0 00 00 80 27 96 [07:35:21]Write i2c OK [07:35:21]MH_I2C_Read... [07:35:21]Read from MH i2c: F0 [07:35:21]MH_I2C_Read... [07:35:21]Read from MH i2c: F0 09 00 [07:35:21]MH_I2C_Read... [07:35:21]Read from MH i2c: F0 09 00 80 27 00 BD B2 14 67 82 C9 CF 66 09 [07:35:21]GetLastDocTimeStamp 1729409633 [07:35:21]current date 1729409725 [07:35:21]FM_GetShiftState [07:35:21]SAM_PROTO_GetShiftState [07:35:21]wFMCommunicate request_size=4 [07:35:21]MH_SAM_APDU [07:35:21]CAPDU: 80 13 01 00 [07:35:21]Write to MH i2c: E2 08 00 81 27 80 13 01 00 00 00 00 00 25 [07:35:21]Write i2c OK [07:35:21]MH_I2C_Read... [07:35:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:35:22]Read from MH i2c: E2 [07:35:22]MH_I2C_Read... [07:35:22]Read from MH i2c: E2 0E 00 [07:35:22]MH_I2C_Read... [07:35:22]Read from MH i2c: E2 0E 00 81 27 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 3F [07:35:22]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [07:35:22]wFMCommunicate OK [07:35:22]SAM_PROTO_GetShiftState done [07:35:22]FM_GetShiftState done [07:35:22]opened in 1729383750 [07:35:22]opened+sec_in_day 1729470150 [07:35:22]quantity*price = 100015 [07:35:22]sum+1 = 100017 [07:35:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 58 20.10.2024 07:35 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227210 ФПД: 152322842323439 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T073525&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227210&fm=152322842323439&tin=02508201610067®Number=0000000000091685&sum=100000 [07:35:23]StoreToDocumentArchive [07:35:23]shift 533 fd 227210 [07:35:23]save to /storage/0533/doc_00227210 [07:35:23]save last doc name /storage/0533/doc_00227210 to /storage/kkm_last_doc_name [07:35:23]save OK [07:35:23]Clear old archive folders... [07:35:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:35:23]tlvbuf is 00577370 [07:35:23]SAM_PROTO_ClearQueue [07:35:23]wFMCommunicate request_size=4 [07:35:23]MH_SAM_APDU [07:35:23]CAPDU: 80 09 00 00 [07:35:23]Write to MH i2c: E2 08 00 8E 27 80 09 00 00 00 00 00 00 27 [07:35:23]Write i2c OK [07:35:23]MH_I2C_Read... [07:35:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:35:23]Read from MH i2c: E2 [07:35:23]MH_I2C_Read... [07:35:23]Read from MH i2c: E2 03 00 [07:35:23]MH_I2C_Read... [07:35:23]Read from MH i2c: E2 03 00 8E 27 00 90 00 29 [07:35:23]RAPDU: 90 00 [07:35:23]wFMCommunicate OK [07:35:23]SAM_PROTO_ClearQueue done [07:35:23]KKMCreateOFDPacket [07:35:23]OFDProtocolAddRootSTLVToBuf [07:35:23]FM_MakeSignedData [07:35:23]FM_MakeSignedData [07:35:23]SAM_PROTO_SignData [07:35:23]wFMCommunicate request_size=4 [07:35:23]MH_SAM_APDU [07:35:23]CAPDU: 80 0D 01 02 [07:35:23]Write to MH i2c: E2 08 00 8F 27 80 0D 01 02 00 00 00 00 2F [07:35:23]Write i2c OK [07:35:23]MH_I2C_Read... [07:35:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:35:23]Read from MH i2c: E2 [07:35:23]MH_I2C_Read... [07:35:23]Read from MH i2c: E2 03 00 [07:35:23]MH_I2C_Read... [07:35:23]Read from MH i2c: E2 03 00 8F 27 00 90 00 2A [07:35:23]RAPDU: 90 00 [07:35:23]wFMCommunicate OK [07:35:23]wFMCommunicate request_size=255 [07:35:23]MH_SAM_APDU [07:35:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 BD B2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8A 77 03 00 35 04 06 00 8A [07:35:23]Write to MH i2c: E2 02 01 90 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 BD B2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8A 77 03 00 35 04 06 00 8A 00 00 89 [07:35:23]Write i2c OK [07:35:23]MH_I2C_Read... [07:35:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:35:23]Read from MH i2c: E2 [07:35:23]MH_I2C_Read... [07:35:23]Read from MH i2c: E2 03 00 [07:35:23]MH_I2C_Read... [07:35:23]Read from MH i2c: E2 03 00 90 27 00 90 00 2B [07:35:23]RAPDU: 90 00 [07:35:23]wFMCommunicate OK [07:35:23]wFMCommunicate request_size=10 [07:35:23]MH_SAM_APDU [07:35:23]CAPDU: 80 0D 02 02 05 89 6C E8 69 EF [07:35:23]Write to MH i2c: E2 0D 00 91 27 80 0D 02 02 05 00 89 6C E8 69 EF 00 00 71 [07:35:23]Write i2c OK [07:35:23]MH_I2C_Read... [07:35:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:35:23]Read from MH i2c: E2 [07:35:23]MH_I2C_Read... [07:35:23]Read from MH i2c: E2 03 00 [07:35:23]MH_I2C_Read... [07:35:23]Read from MH i2c: E2 03 00 91 27 00 90 00 2C [07:35:23]RAPDU: 90 00 [07:35:23]wFMCommunicate OK [07:35:23]wFMCommunicate request_size=4 [07:35:23]MH_SAM_APDU [07:35:23]CAPDU: 80 0D 03 02 [07:35:23]Write to MH i2c: E2 08 00 92 27 80 0D 03 02 00 00 00 00 34 [07:35:23]Write i2c OK [07:35:23]MH_I2C_Read... [07:35:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:35:23]Read from MH i2c: E2 [07:35:23]MH_I2C_Read... [07:35:23]Read from MH i2c: E2 0B 00 [07:35:23]MH_I2C_Read... [07:35:23]Read from MH i2c: E2 0B 00 92 27 00 1F 03 EF 2D C7 62 0A 8D 90 00 33 [07:35:23]RAPDU: 1F 03 EF 2D C7 62 0A 8D 90 00 [07:35:23]wFMCommunicate OK [07:35:23]SAM_PROTO_SignData done [07:35:23]FM_MakeSignedData done [07:35:23]CreateOFDProtocolMessage [07:35:23]wFMCommunicate request_size=4 [07:35:23]MH_SAM_APDU [07:35:23]CAPDU: 80 11 00 00 [07:35:23]Write to MH i2c: E2 08 00 93 27 80 11 00 00 00 00 00 00 34 [07:35:23]Write i2c OK [07:35:23]MH_I2C_Read... [07:35:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:35:23]Read from MH i2c: E2 [07:35:23]MH_I2C_Read... [07:35:23]Read from MH i2c: E2 17 00 [07:35:23]MH_I2C_Read... [07:35:23]Read from MH i2c: E2 17 00 93 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 8B [07:35:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:35:23]wFMCommunicate OK [07:35:23]CreateOFDProtocolMessage done [07:35:23]OFDSenderStorePacket 227210 [07:35:23]StoreOFDPacket docnum=227210 [07:35:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 18 C6 07 01 4C 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 BD B2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8A 77 03 00 35 04 06 00 8A 89 6C E8 69 EF 1F 03 EF 2D C7 62 0A 8D [07:35:23]CheckFolder [07:35:23]dirname=/storage/ofd_packets [07:35:23]CheckFolder done [07:35:23]ProducePacketName [07:35:23]name=ofd_packets/00227210 [07:35:23]NVStorageSaveData ofd_packets/00227210 [07:35:23]File name is /storage/ofd_packets/00227210 [07:35:23]Write 301 bytes [07:35:23]NVStorageSaveData done [07:35:23]OFDSenderStorePacket done [07:35:23]KKMCreateOFDPacket done [07:35:23]NVStorageSaveData kkm_last_timestamp [07:35:23]File name is /storage/kkm_last_timestamp [07:35:23]Write 4 bytes [07:35:23]NVStorageSaveData done [07:35:23]ExternCall_PrintAddStr [07:35:23]wPrintStart [07:35:23]Write to MH i2c: 01 00 00 94 27 BB [07:35:23]Write i2c OK [07:35:23]MH_I2C_Read... [07:35:23]Read from MH i2c: 01 [07:35:23]MH_I2C_Read... [07:35:23]Read from MH i2c: 01 07 00 [07:35:23]MH_I2C_Read... [07:35:23]Read from MH i2c: 01 07 00 94 27 00 00 00 00 00 FF 0F D0 [07:35:23]RasterBufferAndPrint [07:35:23]line Счет N : (1)1962664 [07:35:23]line ИНН: 02508201610067 [07:35:23]line Контрольно-Кассовый Чек [07:35:23]line ПРОДАЖА [07:35:23]line ТРК (МРК, ГНК) : 63 [07:35:23]line Товар: 2710124130 [07:35:23]line Аи-92-К-5 [07:35:23]line 14.950 * 66.90 [07:35:23]line = 1000.16 [07:35:23]line НДС 12% НСП 1% [07:35:23]line > о реализуемом товаре [07:35:23]line ОКРУГЛЕНИЕ: -0.16 [07:35:23]line ИТОГО: 1000.00 [07:35:23]line Внесено: 1000.00 [07:35:23]line СДАЧА: 0.00 [07:35:23]line НСП 1% : 8.85 [07:35:23]line НДС 12% : 106.21 [07:35:23]line Наличными: 1000.00 [07:35:23]line Безнал.: 0.00 [07:35:23]line Место: АЗС № 133 "Партнер Нефть" [07:35:23]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [07:35:23]line СНО: Общий режим [07:35:23]line Чек 58 20.10.2024 07:35 [07:35:23]line Смена: 533 ФФД: 1.0 [07:35:23]line ЗНМ: 0300000091 [07:35:23]line РНМ: 0000000000091685 [07:35:23]line Версия ККМ: 001 [07:35:23]line ФМ: 0000000000871839 [07:35:23]line ФД: 227210 [07:35:23]line ФПД: 152322842323439 [07:35:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T073525&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227210&fm=152322842323439&tin=02508201610067®Number=0000000000091685&sum=100000 [07:35:24]OFD Sender: Processing packet 227210 [packets to send 38, broken 37] [07:35:24]ProducePacketName [07:35:24]name=ofd_packets/00227210 [07:35:24]OFD Sender: To server: pG, [07:35:24]CommunicateWithHost lk.salyk.kg:30040 [07:35:24]ConnectInit lk.salyk.kg [07:35:24]written 0, free lines is 4095 [07:35:24]Connected sock=10 [07:35: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 33 39 0F 01 00 00 18 C6 07 01 4C 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 BD B2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8A 77 03 00 35 04 06 00 8A 89 6C E8 69 EF 1F 03 EF 2D C7 62 0A 8D [07:35: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 33 39 4F 00 00 00 E1 E4 47 00 0D F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8A 77 03 00 F4 03 04 00 BD 5D 14 67 B6 04 01 00 00 CF FD A4 FA 4C 19 10 4C [07:35:24]CommunicateWithHost err = 0 [07:35:24]CheckOFDResponse [07:35:24]1017 (14) - 77093643461234 [07:35:24]1041 (16) - 0000000000871839 [07:35:24]1040 (4) - 227210 [07:35:24]1012 (4) - 20.10.2024 01:32 [07:35:24]1206 (1) - 0 [07:35:24]OFD Sender: Remove packet 227210 [07:35:24]ProducePacketName [07:35:24]name=ofd_packets/00227210 [07:35:24]NVStorageDeleteData [07:35:24]Write to MH i2c: 01 00 00 BE 27 E5 [07:35:24]Write i2c OK [07:35:24]MH_I2C_Read... [07:35:24]Read from MH i2c: 01 [07:35:24]MH_I2C_Read... [07:35:24]Read from MH i2c: 01 07 00 [07:35:24]MH_I2C_Read... [07:35:24]Read from MH i2c: 01 07 00 BE 27 00 00 00 00 00 1B 0D 14 [07:35:24]RasterBufferAndPrint [07:35:24]line [07:35:24]line [07:35:24]line [07:35:24]line [07:35:24]line [07:35:24]written 0, free lines is 3361 [07:35:24]process_action close_receipt done [07:35:24]requested_data is exist [07:35:24]produce_requested_data [07:35:24]requested_item fm.sn is exist - process it [07:35:24]wFMCommunicate request_size=4 [07:35:24]MH_SAM_APDU [07:35:24]CAPDU: 80 11 00 00 [07:35:24]Write to MH i2c: E2 08 00 C5 27 80 11 00 00 00 00 00 00 66 [07:35:24]Write i2c OK [07:35:24]MH_I2C_Read... [07:35:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:35:24]Read from MH i2c: E2 [07:35:24]MH_I2C_Read... [07:35:24]Read from MH i2c: E2 17 00 [07:35:24]MH_I2C_Read... [07:35:24]Read from MH i2c: E2 17 00 C5 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 BD [07:35:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:35:24]wFMCommunicate OK [07:35:24]requested_item fd.num is exist - process it [07:35:24]SAM_PROTO_GetFieldsCounters [07:35:24]wFMCommunicate request_size=4 [07:35:24]MH_SAM_APDU [07:35:24]CAPDU: 80 13 00 00 [07:35:24]Write to MH i2c: E2 08 00 C6 27 80 13 00 00 00 00 00 00 69 [07:35:24]Write i2c OK [07:35:24]MH_I2C_Read... [07:35:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:35:24]Read from MH i2c: E2 [07:35:24]MH_I2C_Read... [07:35:24]Read from MH i2c: E2 62 00 [07:35:24]MH_I2C_Read... [07:35:24]Read from MH i2c: E2 62 00 C6 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 8A 77 03 00 0E 04 04 00 15 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 5B [07:35:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 8A 77 03 00 0E 04 04 00 15 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 [07:35:24]wFMCommunicate OK [07:35:24]SAM_PROTO_GetFieldsCounters done [07:35:24]requested_item shift.num is exist - process it [07:35:24]requested_item shift.opened is exist - process it [07:35:24]req_shift_opened [07:35:24]FM_GetShiftState [07:35:24]SAM_PROTO_GetShiftState [07:35:24]wFMCommunicate request_size=4 [07:35:24]MH_SAM_APDU [07:35:24]CAPDU: 80 13 01 00 [07:35:24]Write to MH i2c: E2 08 00 C7 27 80 13 01 00 00 00 00 00 6B [07:35:24]Write i2c OK [07:35:24]MH_I2C_Read... [07:35:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:35:24]Read from MH i2c: E2 [07:35:24]MH_I2C_Read... [07:35:24]Read from MH i2c: E2 0E 00 [07:35:24]MH_I2C_Read... [07:35:24]Read from MH i2c: E2 0E 00 C7 27 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 85 [07:35:24]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [07:35:24]wFMCommunicate OK [07:35:24]SAM_PROTO_GetShiftState done [07:35:24]FM_GetShiftState done [07:35:24]req_shift_opened done [07:35:24]requested_item shift.open_date is exist - process it [07:35:24]req_shift_open_date [07:35:24]req_shift_open_date done [07:35:24]produce_requested_data done [07:35:24]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227210,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [07:35:24]process_action_free close_receipt [07:35:24]json_value_free [07:35:24]json_value_free done [07:35:24]process_json_proto returns [07:35:24]Send response to host [07:35:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227210,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [07:35:24]free response buf [07:35:24]execute_script done [07:35:24]execute_script returns [07:35:24]free content buf [07:35:24]Sock 8.Close socket [07:35:24]Sock 8.Thread stoped [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:36]accept exits with 9 [07:35:36]New connection [07:35:36]New thread 3066965348 created [07:35:36]Thread 3066821988 joined [07:35:36]Waiting for new connection... [07:35:36] Sock 9.Parse request [07:35:36]Sock 9.Check first char [07:35:36]Sock 9.First char is OK [07:35:36]request: POST /json_proto HTTP/1.0 [07:35:36]Method: POST [07:35:36]URL: /json_proto [07:35:36]Method is POST - this is cgi request [07:35:36]url: /json_proto [07:35:36]query_string will be loaded in cgi processing [07:35:36]execute_cgi json_proto POST (null) [07:35:36]execute_cgi path=json_proto method=POST [07:35:36]POST find Content-Length [07:35:36]Host: 172.17.44.195:8080 [07:35:36]Content-Length: 664 [07:35:36]Content-Type: application/json [07:35:36] [07:35:36]POST finish read [07:35:36]Found Content-Length = 664 [07:35:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962663", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 29.240, "sum" : 2000.02, "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:35:36]execute_script... [07:35: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)1962663", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 29.240, "sum" : 2000.02, "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:35:36]POST & json_proto [07:35:36]process_json_proto [07:35:36]json parsed OK: [07:35:36]protocol is kg_v1.0 [07:35:36]action value=close_receipt [07:35:36]process_action close_receipt [07:35:36]cmd_close_receipt [07:35:36]MH_GetDate [07:35:36]Write to MH i2c: F0 00 00 C8 27 DE [07:35:36]Write i2c OK [07:35:36]MH_I2C_Read... [07:35:36]Read from MH i2c: F0 [07:35:36]MH_I2C_Read... [07:35:36]Read from MH i2c: F0 09 00 [07:35:36]MH_I2C_Read... [07:35:36]Read from MH i2c: F0 09 00 C8 27 00 CB B2 14 67 82 C9 CF 66 5F [07:35:36]GetLastDocTimeStamp 1729409725 [07:35:36]current date 1729409739 [07:35:36]FM_GetShiftState [07:35:36]SAM_PROTO_GetShiftState [07:35:36]wFMCommunicate request_size=4 [07:35:36]MH_SAM_APDU [07:35:36]CAPDU: 80 13 01 00 [07:35:36]Write to MH i2c: E2 08 00 C9 27 80 13 01 00 00 00 00 00 6D [07:35:36]Write i2c OK [07:35:36]MH_I2C_Read... [07:35:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:35:36]Read from MH i2c: E2 [07:35:36]MH_I2C_Read... [07:35:36]Read from MH i2c: E2 0E 00 [07:35:36]MH_I2C_Read... [07:35:36]Read from MH i2c: E2 0E 00 C9 27 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 87 [07:35:36]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [07:35:36]wFMCommunicate OK [07:35:36]SAM_PROTO_GetShiftState done [07:35:36]FM_GetShiftState done [07:35:36]opened in 1729383750 [07:35:36]opened+sec_in_day 1729470150 [07:35:36]quantity*price = 200001 [07:35:36]sum+1 = 200003 [07:35:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.39 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 59 20.10.2024 07:35 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227211 ФПД: 53051595488768 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T073539&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227211&fm=53051595488768&tin=02508201610067®Number=0000000000091685&sum=200000 [07:35:37]StoreToDocumentArchive [07:35:37]shift 533 fd 227211 [07:35:37]save to /storage/0533/doc_00227211 [07:35:37]save last doc name /storage/0533/doc_00227211 to /storage/kkm_last_doc_name [07:35:37]save OK [07:35:37]Clear old archive folders... [07:35:37]ProcessDocumentItem done err = 0, tmpTLVsize=244 [07:35:37]tlvbuf is 005D2510 [07:35:37]SAM_PROTO_ClearQueue [07:35:37]wFMCommunicate request_size=4 [07:35:37]MH_SAM_APDU [07:35:37]CAPDU: 80 09 00 00 [07:35:37]Write to MH i2c: E2 08 00 D6 27 80 09 00 00 00 00 00 00 6F [07:35:37]Write i2c OK [07:35:37]MH_I2C_Read... [07:35:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:35:37]Read from MH i2c: E2 [07:35:37]MH_I2C_Read... [07:35:37]Read from MH i2c: E2 03 00 [07:35:37]MH_I2C_Read... [07:35:37]Read from MH i2c: E2 03 00 D6 27 00 90 00 71 [07:35:37]RAPDU: 90 00 [07:35:37]wFMCommunicate OK [07:35:37]SAM_PROTO_ClearQueue done [07:35:37]KKMCreateOFDPacket [07:35:37]OFDProtocolAddRootSTLVToBuf [07:35:37]FM_MakeSignedData [07:35:37]FM_MakeSignedData [07:35:37]SAM_PROTO_SignData [07:35:37]wFMCommunicate request_size=4 [07:35:37]MH_SAM_APDU [07:35:37]CAPDU: 80 0D 01 02 [07:35:37]Write to MH i2c: E2 08 00 D7 27 80 0D 01 02 00 00 00 00 77 [07:35:37]Write i2c OK [07:35:37]MH_I2C_Read... [07:35:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:35:37]Read from MH i2c: E2 [07:35:37]MH_I2C_Read... [07:35:37]Read from MH i2c: E2 03 00 [07:35:37]MH_I2C_Read... [07:35:37]Read from MH i2c: E2 03 00 D7 27 00 90 00 72 [07:35:37]RAPDU: 90 00 [07:35:37]wFMCommunicate OK [07:35:37]wFMCommunicate request_size=253 [07:35:37]MH_SAM_APDU [07:35:37]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 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 F7 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 3B 00 00 00 F4 03 04 00 CB B2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8B 77 03 00 35 04 06 00 30 40 09 80 FE 00 [07:35:37]Write to MH i2c: E2 00 01 D8 27 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 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 F7 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 3B 00 00 00 F4 03 04 00 CB B2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8B 77 03 00 35 04 06 00 30 40 09 80 FE 00 00 00 24 [07:35:37]Write i2c OK [07:35:37]MH_I2C_Read... [07:35:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:35:37]Read from MH i2c: E2 [07:35:37]MH_I2C_Read... [07:35:37]Read from MH i2c: E2 03 00 [07:35:37]MH_I2C_Read... [07:35:37]Read from MH i2c: E2 03 00 D8 27 00 90 00 73 [07:35:37]RAPDU: 90 00 [07:35:37]wFMCommunicate OK [07:35:37]wFMCommunicate request_size=4 [07:35:37]MH_SAM_APDU [07:35:37]CAPDU: 80 0D 03 02 [07:35:37]Write to MH i2c: E2 08 00 D9 27 80 0D 03 02 00 00 00 00 7B [07:35:37]Write i2c OK [07:35:37]MH_I2C_Read... [07:35:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:35:37]Read from MH i2c: E2 [07:35:37]MH_I2C_Read... [07:35:37]Read from MH i2c: E2 0B 00 [07:35:37]MH_I2C_Read... [07:35:37]Read from MH i2c: E2 0B 00 D9 27 00 42 CD 9B 2B 19 E1 FF B7 90 00 01 [07:35:37]RAPDU: 42 CD 9B 2B 19 E1 FF B7 90 00 [07:35:37]wFMCommunicate OK [07:35:37]SAM_PROTO_SignData done [07:35:37]FM_MakeSignedData done [07:35:37]CreateOFDProtocolMessage [07:35:37]wFMCommunicate request_size=4 [07:35:37]MH_SAM_APDU [07:35:37]CAPDU: 80 11 00 00 [07:35:37]Write to MH i2c: E2 08 00 DA 27 80 11 00 00 00 00 00 00 7B [07:35:37]Write i2c OK [07:35:37]MH_I2C_Read... [07:35:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:35:37]Read from MH i2c: E2 [07:35:37]MH_I2C_Read... [07:35:37]Read from MH i2c: E2 17 00 [07:35:37]MH_I2C_Read... [07:35:37]Read from MH i2c: E2 17 00 DA 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D2 [07:35:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:35:37]wFMCommunicate OK [07:35:37]CreateOFDProtocolMessage done [07:35:37]OFDSenderStorePacket 227211 [07:35:37]StoreOFDPacket docnum=227211 [07:35:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 EC 74 00 01 64 08 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 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 F7 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 3B 00 00 00 F4 03 04 00 CB B2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8B 77 03 00 35 04 06 00 30 40 09 80 FE 00 42 CD 9B 2B 19 E1 FF B7 [07:35:37]CheckFolder [07:35:37]dirname=/storage/ofd_packets [07:35:37]CheckFolder done [07:35:37]ProducePacketName [07:35:37]name=ofd_packets/00227211 [07:35:37]NVStorageSaveData ofd_packets/00227211 [07:35:37]File name is /storage/ofd_packets/00227211 [07:35:37]Write 294 bytes [07:35:37]NVStorageSaveData done [07:35:37]OFDSenderStorePacket done [07:35:37]KKMCreateOFDPacket done [07:35:37]NVStorageSaveData kkm_last_timestamp [07:35:37]File name is /storage/kkm_last_timestamp [07:35:37]Write 4 bytes [07:35:37]NVStorageSaveData done [07:35:37]ExternCall_PrintAddStr [07:35:37]wPrintStart [07:35:37]Write to MH i2c: 01 00 00 DB 27 02 [07:35:37]Write i2c OK [07:35:37]MH_I2C_Read... [07:35:37]Read from MH i2c: 01 [07:35:37]MH_I2C_Read... [07:35:37]Read from MH i2c: 01 07 00 [07:35:37]MH_I2C_Read... [07:35:37]Read from MH i2c: 01 07 00 DB 27 00 00 00 00 00 FF 0F 17 [07:35:37]RasterBufferAndPrint [07:35:37]line Счет N : (1)1962663 [07:35:37]line ИНН: 02508201610067 [07:35:37]line Контрольно-Кассовый Чек [07:35:37]line ПРОДАЖА [07:35:37]line ТРК (МРК, ГНК) : 32 [07:35:37]line Товар: 2710124130 [07:35:37]line SU-92 [07:35:37]line 29.240 * 68.40 [07:35:37]line = 2000.02 [07:35:37]line НДС 12% НСП 1% [07:35:37]line > о реализуемом товаре [07:35:37]line ОКРУГЛЕНИЕ: -0.02 [07:35:37]line ИТОГО: 2000.00 [07:35:37]line Внесено: 2000.00 [07:35:37]line СДАЧА: 0.00 [07:35:37]line НСП 1% : 17.70 [07:35:37]line НДС 12% : 212.39 [07:35:37]line Наличными: 2000.00 [07:35:37]line Безнал.: 0.00 [07:35:37]line Место: АЗС № 133 "Партнер Нефть" [07:35:37]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [07:35:37]line СНО: Общий режим [07:35:37]line Чек 59 20.10.2024 07:35 [07:35:37]line Смена: 533 ФФД: 1.0 [07:35:37]line ЗНМ: 0300000091 [07:35:37]line РНМ: 0000000000091685 [07:35:37]line Версия ККМ: 001 [07:35:37]line ФМ: 0000000000871839 [07:35:37]line ФД: 227211 [07:35:37]line ФПД: 53051595488768 [07:35:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T073539&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227211&fm=53051595488768&tin=02508201610067®Number=0000000000091685&sum=200000 [07:35:37]written 0, free lines is 4095 [07:35:37]OFD Sender: Processing packet 227211 [packets to send 38, broken 37] [07:35:37]ProducePacketName [07:35:37]name=ofd_packets/00227211 [07:35:37]OFD Sender: To server: pG, [07:35:37]CommunicateWithHost lk.salyk.kg:30040 [07:35:37]ConnectInit lk.salyk.kg [07:35:37]Connected sock=10 [07:35:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 EC 74 00 01 64 08 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 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 F7 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 3B 00 00 00 F4 03 04 00 CB B2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8B 77 03 00 35 04 06 00 30 40 09 80 FE 00 42 CD 9B 2B 19 E1 FF B7 [07:35: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 33 39 4F 00 00 00 1B CA 47 00 43 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8B 77 03 00 F4 03 04 00 CB 5D 14 67 B6 04 01 00 00 1A C1 E1 47 7C BF F8 3C [07:35:38]CommunicateWithHost err = 0 [07:35:38]CheckOFDResponse [07:35:38]1017 (14) - 77093643461234 [07:35:38]1041 (16) - 0000000000871839 [07:35:38]1040 (4) - 227211 [07:35:38]1012 (4) - 20.10.2024 01:32 [07:35:38]1206 (1) - 0 [07:35:38]OFD Sender: Remove packet 227211 [07:35:38]ProducePacketName [07:35:38]name=ofd_packets/00227211 [07:35:38]NVStorageDeleteData [07:35:38]Write to MH i2c: 01 00 00 05 28 2D [07:35:38]Write i2c OK [07:35:38]MH_I2C_Read... [07:35:38]Read from MH i2c: 01 [07:35:38]MH_I2C_Read... [07:35:38]Read from MH i2c: 01 07 00 [07:35:38]MH_I2C_Read... [07:35:38]Read from MH i2c: 01 07 00 05 28 00 00 00 00 00 11 0D 52 [07:35:38]RasterBufferAndPrint [07:35:38]line [07:35:38]line [07:35:38]line [07:35:38]line [07:35:38]line [07:35:38]written 0, free lines is 3351 [07:35:38]process_action close_receipt done [07:35:38]requested_data is exist [07:35:38]produce_requested_data [07:35:38]requested_item fm.sn is exist - process it [07:35:38]wFMCommunicate request_size=4 [07:35:38]MH_SAM_APDU [07:35:38]CAPDU: 80 11 00 00 [07:35:38]Write to MH i2c: E2 08 00 0C 28 80 11 00 00 00 00 00 00 AE [07:35:38]Write i2c OK [07:35:38]MH_I2C_Read... [07:35:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:35:38]Read from MH i2c: E2 [07:35:38]MH_I2C_Read... [07:35:38]Read from MH i2c: E2 17 00 [07:35:38]MH_I2C_Read... [07:35:38]Read from MH i2c: E2 17 00 0C 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 05 [07:35:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:35:38]wFMCommunicate OK [07:35:38]requested_item fd.num is exist - process it [07:35:38]SAM_PROTO_GetFieldsCounters [07:35:38]wFMCommunicate request_size=4 [07:35:38]MH_SAM_APDU [07:35:38]CAPDU: 80 13 00 00 [07:35:38]Write to MH i2c: E2 08 00 0D 28 80 13 00 00 00 00 00 00 B1 [07:35:38]Write i2c OK [07:35:38]MH_I2C_Read... [07:35:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:35:38]Read from MH i2c: E2 [07:35:38]MH_I2C_Read... [07:35:38]Read from MH i2c: E2 62 00 [07:35:38]MH_I2C_Read... [07:35:38]Read from MH i2c: E2 62 00 0D 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 8B 77 03 00 0E 04 04 00 15 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 A7 [07:35: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 8B 77 03 00 0E 04 04 00 15 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 [07:35:38]wFMCommunicate OK [07:35:38]SAM_PROTO_GetFieldsCounters done [07:35:38]requested_item shift.num is exist - process it [07:35:38]requested_item shift.opened is exist - process it [07:35:38]req_shift_opened [07:35:38]FM_GetShiftState [07:35:38]SAM_PROTO_GetShiftState [07:35:38]wFMCommunicate request_size=4 [07:35:38]MH_SAM_APDU [07:35:38]CAPDU: 80 13 01 00 [07:35:38]Write to MH i2c: E2 08 00 0E 28 80 13 01 00 00 00 00 00 B3 [07:35:38]Write i2c OK [07:35:38]MH_I2C_Read... [07:35:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:35:38]Read from MH i2c: E2 [07:35:38]MH_I2C_Read... [07:35:38]Read from MH i2c: E2 0E 00 [07:35:38]MH_I2C_Read... [07:35:38]Read from MH i2c: E2 0E 00 0E 28 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 CD [07:35:38]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [07:35:38]wFMCommunicate OK [07:35:38]SAM_PROTO_GetShiftState done [07:35:38]FM_GetShiftState done [07:35:38]req_shift_opened done [07:35:38]requested_item shift.open_date is exist - process it [07:35:38]req_shift_open_date [07:35:38]req_shift_open_date done [07:35:38]produce_requested_data done [07:35:38]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227211,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [07:35:38]process_action_free close_receipt [07:35:38]json_value_free [07:35:38]json_value_free done [07:35:38]process_json_proto returns [07:35:38]Send response to host [07:35:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227211,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [07:35:38]free response buf [07:35:38]execute_script done [07:35:38]execute_script returns [07:35:38]free content buf [07:35:38]Sock 9.Close socket [07:35:38]Sock 9.Thread stoped [07:35:38]OFD Sender: No OFD packet to send [07:35:43]OFD Sender: No OFD packet to send [07:35:48]OFD Sender: No OFD packet to send [07:35:53]OFD Sender: No OFD packet to send [07:35:54]accept exits with 8 [07:35:54]New connection [07:35:54]New thread 3066821988 created [07:35:54]Thread 3066965348 joined [07:35:54]Waiting for new connection... [07:35:54] Sock 8.Parse request [07:35:54]Sock 8.Check first char [07:35:54]Sock 8.First char is OK [07:35:54]request: POST /json_proto HTTP/1.0 [07:35:54]Method: POST [07:35:54]URL: /json_proto [07:35:54]Method is POST - this is cgi request [07:35:54]url: /json_proto [07:35:54]query_string will be loaded in cgi processing [07:35:54]execute_cgi json_proto POST (null) [07:35:54]execute_cgi path=json_proto method=POST [07:35:54]POST find Content-Length [07:35:54]Host: 172.17.44.195:8080 [07:35:54]Content-Length: 678 [07:35:54]Content-Type: application/json [07:35:54] [07:35:54]POST finish read [07:35:54]Found Content-Length = 678 [07:35:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962665", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:35:54]execute_script... [07:35:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962665", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:35:54]POST & json_proto [07:35:54]process_json_proto [07:35:54]json parsed OK: [07:35:54]protocol is kg_v1.0 [07:35:54]action value=close_receipt [07:35:54]process_action close_receipt [07:35:54]cmd_close_receipt [07:35:54]MH_GetDate [07:35:54]Write to MH i2c: F0 00 00 0F 28 26 [07:35:54]Write i2c OK [07:35:54]MH_I2C_Read... [07:35:54]Read from MH i2c: F0 [07:35:54]MH_I2C_Read... [07:35:54]Read from MH i2c: F0 09 00 [07:35:54]MH_I2C_Read... [07:35:54]Read from MH i2c: F0 09 00 0F 28 00 DE B2 14 67 82 C9 CF 66 BA [07:35:54]GetLastDocTimeStamp 1729409739 [07:35:54]current date 1729409758 [07:35:54]FM_GetShiftState [07:35:54]SAM_PROTO_GetShiftState [07:35:54]wFMCommunicate request_size=4 [07:35:54]MH_SAM_APDU [07:35:54]CAPDU: 80 13 01 00 [07:35:54]Write to MH i2c: E2 08 00 10 28 80 13 01 00 00 00 00 00 B5 [07:35:54]Write i2c OK [07:35:54]MH_I2C_Read... [07:35:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:35:54]Read from MH i2c: E2 [07:35:54]MH_I2C_Read... [07:35:54]Read from MH i2c: E2 0E 00 [07:35:54]MH_I2C_Read... [07:35:54]Read from MH i2c: E2 0E 00 10 28 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 CF [07:35:54]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [07:35:54]wFMCommunicate OK [07:35:54]SAM_PROTO_GetShiftState done [07:35:54]FM_GetShiftState done [07:35:54]opened in 1729383750 [07:35:54]opened+sec_in_day 1729470150 [07:35:54]quantity*price = 50041 [07:35:54]sum+1 = 50042 [07:35:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 60 20.10.2024 07:35 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227212 ФПД: 129829447393030 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T073558&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227212&fm=129829447393030&tin=02508201610067®Number=0000000000091685&sum=50000 [07:35:55]StoreToDocumentArchive [07:35:55]shift 533 fd 227212 [07:35:55]save to /storage/0533/doc_00227212 [07:35:55]save last doc name /storage/0533/doc_00227212 to /storage/kkm_last_doc_name [07:35:55]save OK [07:35:55]Clear old archive folders... [07:35:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:35:55]tlvbuf is 0057AEF0 [07:35:55]SAM_PROTO_ClearQueue [07:35:55]wFMCommunicate request_size=4 [07:35:55]MH_SAM_APDU [07:35:55]CAPDU: 80 09 00 00 [07:35:55]Write to MH i2c: E2 08 00 1D 28 80 09 00 00 00 00 00 00 B7 [07:35:55]Write i2c OK [07:35:55]MH_I2C_Read... [07:35:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:35:55]Read from MH i2c: E2 [07:35:55]MH_I2C_Read... [07:35:55]Read from MH i2c: E2 03 00 [07:35:55]MH_I2C_Read... [07:35:55]Read from MH i2c: E2 03 00 1D 28 00 90 00 B9 [07:35:55]RAPDU: 90 00 [07:35:55]wFMCommunicate OK [07:35:55]SAM_PROTO_ClearQueue done [07:35:55]KKMCreateOFDPacket [07:35:55]OFDProtocolAddRootSTLVToBuf [07:35:55]FM_MakeSignedData [07:35:55]FM_MakeSignedData [07:35:55]SAM_PROTO_SignData [07:35:55]wFMCommunicate request_size=4 [07:35:55]MH_SAM_APDU [07:35:55]CAPDU: 80 0D 01 02 [07:35:55]Write to MH i2c: E2 08 00 1E 28 80 0D 01 02 00 00 00 00 BF [07:35:55]Write i2c OK [07:35:55]MH_I2C_Read... [07:35:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:35:55]Read from MH i2c: E2 [07:35:55]MH_I2C_Read... [07:35:55]Read from MH i2c: E2 03 00 [07:35:55]MH_I2C_Read... [07:35:55]Read from MH i2c: E2 03 00 1E 28 00 90 00 BA [07:35:55]RAPDU: 90 00 [07:35:55]wFMCommunicate OK [07:35:55]wFMCommunicate request_size=255 [07:35:55]MH_SAM_APDU [07:35:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 DE B2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8C 77 03 00 35 04 06 00 76 [07:35:55]Write to MH i2c: E2 02 01 1F 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 DE B2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8C 77 03 00 35 04 06 00 76 00 00 30 [07:35:55]Write i2c OK [07:35:55]MH_I2C_Read... [07:35:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:35:56]Read from MH i2c: E2 [07:35:56]MH_I2C_Read... [07:35:56]Read from MH i2c: E2 03 00 [07:35:56]MH_I2C_Read... [07:35:56]Read from MH i2c: E2 03 00 1F 28 00 90 00 BB [07:35:56]RAPDU: 90 00 [07:35:56]wFMCommunicate OK [07:35:56]wFMCommunicate request_size=10 [07:35:56]MH_SAM_APDU [07:35:56]CAPDU: 80 0D 02 02 05 14 46 17 DF 06 [07:35:56]Write to MH i2c: E2 0D 00 20 28 80 0D 02 02 05 00 14 46 17 DF 06 00 00 22 [07:35:56]Write i2c OK [07:35:56]MH_I2C_Read... [07:35:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:35:56]Read from MH i2c: E2 [07:35:56]MH_I2C_Read... [07:35:56]Read from MH i2c: E2 03 00 [07:35:56]MH_I2C_Read... [07:35:56]Read from MH i2c: E2 03 00 20 28 00 90 00 BC [07:35:56]RAPDU: 90 00 [07:35:56]wFMCommunicate OK [07:35:56]wFMCommunicate request_size=4 [07:35:56]MH_SAM_APDU [07:35:56]CAPDU: 80 0D 03 02 [07:35:56]Write to MH i2c: E2 08 00 21 28 80 0D 03 02 00 00 00 00 C4 [07:35:56]Write i2c OK [07:35:56]MH_I2C_Read... [07:35:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:35:56]Read from MH i2c: E2 [07:35:56]MH_I2C_Read... [07:35:56]Read from MH i2c: E2 0B 00 [07:35:56]MH_I2C_Read... [07:35:56]Read from MH i2c: E2 0B 00 21 28 00 96 C9 AD 68 BC 9D B3 2E 90 00 73 [07:35:56]RAPDU: 96 C9 AD 68 BC 9D B3 2E 90 00 [07:35:56]wFMCommunicate OK [07:35:56]SAM_PROTO_SignData done [07:35:56]FM_MakeSignedData done [07:35:56]CreateOFDProtocolMessage [07:35:56]wFMCommunicate request_size=4 [07:35:56]MH_SAM_APDU [07:35:56]CAPDU: 80 11 00 00 [07:35:56]Write to MH i2c: E2 08 00 22 28 80 11 00 00 00 00 00 00 C4 [07:35:56]Write i2c OK [07:35:56]MH_I2C_Read... [07:35:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:35:56]Read from MH i2c: E2 [07:35:56]MH_I2C_Read... [07:35:56]Read from MH i2c: E2 17 00 [07:35:56]MH_I2C_Read... [07:35:56]Read from MH i2c: E2 17 00 22 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 1B [07:35:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:35:56]wFMCommunicate OK [07:35:56]CreateOFDProtocolMessage done [07:35:56]OFDSenderStorePacket 227212 [07:35:56]StoreOFDPacket docnum=227212 [07:35:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 21 AC 07 01 50 AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 DE B2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8C 77 03 00 35 04 06 00 76 14 46 17 DF 06 96 C9 AD 68 BC 9D B3 2E [07:35:56]CheckFolder [07:35:56]dirname=/storage/ofd_packets [07:35:56]CheckFolder done [07:35:56]ProducePacketName [07:35:56]name=ofd_packets/00227212 [07:35:56]NVStorageSaveData ofd_packets/00227212 [07:35:56]File name is /storage/ofd_packets/00227212 [07:35:56]Write 301 bytes [07:35:56]NVStorageSaveData done [07:35:56]OFDSenderStorePacket done [07:35:56]KKMCreateOFDPacket done [07:35:56]NVStorageSaveData kkm_last_timestamp [07:35:56]File name is /storage/kkm_last_timestamp [07:35:56]Write 4 bytes [07:35:56]NVStorageSaveData done [07:35:56]ExternCall_PrintAddStr [07:35:56]wPrintStart [07:35:56]Write to MH i2c: 01 00 00 23 28 4B [07:35:56]Write i2c OK [07:35:56]MH_I2C_Read... [07:35:56]Read from MH i2c: 01 [07:35:56]MH_I2C_Read... [07:35:56]Read from MH i2c: 01 07 00 [07:35:56]MH_I2C_Read... [07:35:56]Read from MH i2c: 01 07 00 23 28 00 00 00 00 00 FF 0F 60 [07:35:56]RasterBufferAndPrint [07:35:56]line Счет N : (1)1962665 [07:35:56]line ИНН: 02508201610067 [07:35:56]line Контрольно-Кассовый Чек [07:35:56]line ПРОДАЖА [07:35:56]line ТРК (МРК, ГНК) : 53 [07:35:56]line Товар: 2710124130 [07:35:56]line Аи-92-К-5 [07:35:56]line 7.480 * 66.90 [07:35:56]line = 500.41 [07:35:56]line НДС 12% НСП 1% [07:35:56]line > о реализуемом товаре [07:35:56]line ОКРУГЛЕНИЕ: -0.41 [07:35:56]line ИТОГО: 500.00 [07:35:56]line Внесено: 500.00 [07:35:56]line СДАЧА: 0.00 [07:35:56]line НСП 1% : 4.43 [07:35:56]line НДС 12% : 53.14 [07:35:56]line Наличными: 500.00 [07:35:56]line Безнал.: 0.00 [07:35:56]line Место: АЗС № 133 "Партнер Нефть" [07:35:56]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [07:35:56]line СНО: Общий режим [07:35:56]line Чек 60 20.10.2024 07:35 [07:35:56]line Смена: 533 ФФД: 1.0 [07:35:56]line ЗНМ: 0300000091 [07:35:56]line РНМ: 0000000000091685 [07:35:56]line Версия ККМ: 001 [07:35:56]line ФМ: 0000000000871839 [07:35:56]line ФД: 227212 [07:35:56]line ФПД: 129829447393030 [07:35:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T073558&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227212&fm=129829447393030&tin=02508201610067®Number=0000000000091685&sum=50000 [07:35:56]OFD Sender: Processing packet 227212 [packets to send 38, broken 37] [07:35:56]ProducePacketName [07:35:56]name=ofd_packets/00227212 [07:35:56]OFD Sender: To server: pG, [07:35:56]CommunicateWithHost lk.salyk.kg:30040 [07:35:56]ConnectInit lk.salyk.kg [07:35:56]written 0, free lines is 4095 [07:35:56]Connected sock=10 [07:35:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 21 AC 07 01 50 AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 DE B2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8C 77 03 00 35 04 06 00 76 14 46 17 DF 06 96 C9 AD 68 BC 9D B3 2E [07:35:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 14 93 47 00 83 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8C 77 03 00 F4 03 04 00 DD 5D 14 67 B6 04 01 00 00 97 3E 43 04 8B F7 F7 0B [07:35:56]CommunicateWithHost err = 0 [07:35:56]CheckOFDResponse [07:35:56]1017 (14) - 77093643461234 [07:35:56]1041 (16) - 0000000000871839 [07:35:56]1040 (4) - 227212 [07:35:56]1012 (4) - 20.10.2024 01:33 [07:35:56]1206 (1) - 0 [07:35:56]OFD Sender: Remove packet 227212 [07:35:56]ProducePacketName [07:35:56]name=ofd_packets/00227212 [07:35:56]NVStorageDeleteData [07:35:57]Write to MH i2c: 01 00 00 4D 28 75 [07:35:57]Write i2c OK [07:35:57]MH_I2C_Read... [07:35:57]Read from MH i2c: 01 [07:35:57]MH_I2C_Read... [07:35:57]Read from MH i2c: 01 07 00 [07:35:57]MH_I2C_Read... [07:35:57]Read from MH i2c: 01 07 00 4D 28 00 00 00 00 00 16 0D 9F [07:35:57]RasterBufferAndPrint [07:35:57]line [07:35:57]line [07:35:57]line [07:35:57]line [07:35:57]line [07:35:57]written 0, free lines is 3356 [07:35:57]process_action close_receipt done [07:35:57]requested_data is exist [07:35:57]produce_requested_data [07:35:57]requested_item fm.sn is exist - process it [07:35:57]wFMCommunicate request_size=4 [07:35:57]MH_SAM_APDU [07:35:57]CAPDU: 80 11 00 00 [07:35:57]Write to MH i2c: E2 08 00 54 28 80 11 00 00 00 00 00 00 F6 [07:35:57]Write i2c OK [07:35:57]MH_I2C_Read... [07:35:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:35:57]Read from MH i2c: E2 [07:35:57]MH_I2C_Read... [07:35:57]Read from MH i2c: E2 17 00 [07:35:57]MH_I2C_Read... [07:35:57]Read from MH i2c: E2 17 00 54 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 4D [07:35:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:35:57]wFMCommunicate OK [07:35:57]requested_item fd.num is exist - process it [07:35:57]SAM_PROTO_GetFieldsCounters [07:35:57]wFMCommunicate request_size=4 [07:35:57]MH_SAM_APDU [07:35:57]CAPDU: 80 13 00 00 [07:35:57]Write to MH i2c: E2 08 00 55 28 80 13 00 00 00 00 00 00 F9 [07:35:57]Write i2c OK [07:35:57]MH_I2C_Read... [07:35:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:35:57]Read from MH i2c: E2 [07:35:57]MH_I2C_Read... [07:35:57]Read from MH i2c: E2 62 00 [07:35:57]MH_I2C_Read... [07:35:57]Read from MH i2c: E2 62 00 55 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 8C 77 03 00 0E 04 04 00 15 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 F3 [07:35: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 8C 77 03 00 0E 04 04 00 15 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 [07:35:57]wFMCommunicate OK [07:35:57]SAM_PROTO_GetFieldsCounters done [07:35:57]requested_item shift.num is exist - process it [07:35:57]requested_item shift.opened is exist - process it [07:35:57]req_shift_opened [07:35:57]FM_GetShiftState [07:35:57]SAM_PROTO_GetShiftState [07:35:57]wFMCommunicate request_size=4 [07:35:57]MH_SAM_APDU [07:35:57]CAPDU: 80 13 01 00 [07:35:57]Write to MH i2c: E2 08 00 56 28 80 13 01 00 00 00 00 00 FB [07:35:57]Write i2c OK [07:35:57]MH_I2C_Read... [07:35:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:35:57]Read from MH i2c: E2 [07:35:57]MH_I2C_Read... [07:35:57]Read from MH i2c: E2 0E 00 [07:35:57]MH_I2C_Read... [07:35:57]Read from MH i2c: E2 0E 00 56 28 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 15 [07:35:57]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [07:35:57]wFMCommunicate OK [07:35:57]SAM_PROTO_GetShiftState done [07:35:57]FM_GetShiftState done [07:35:57]req_shift_opened done [07:35:57]requested_item shift.open_date is exist - process it [07:35:57]req_shift_open_date [07:35:57]req_shift_open_date done [07:35:57]produce_requested_data done [07:35:57]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227212,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [07:35:57]process_action_free close_receipt [07:35:57]json_value_free [07:35:57]json_value_free done [07:35:57]process_json_proto returns [07:35:57]Send response to host [07:35:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227212,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [07:35:57]free response buf [07:35:57]execute_script done [07:35:57]execute_script returns [07:35:57]free content buf [07:35:57]Sock 8.Close socket [07:35:57]Sock 8.Thread stoped [07:35:57]OFD Sender: No OFD packet to send [07:36:02]OFD Sender: No OFD packet to send [07:36:07]OFD Sender: No OFD packet to send [07:36:12]OFD Sender: No OFD packet to send [07:36:17]OFD Sender: No OFD packet to send [07:36:22]OFD Sender: No OFD packet to send [07:36:27]OFD Sender: No OFD packet to send [07:36:32]OFD Sender: No OFD packet to send [07:36:37]OFD Sender: No OFD packet to send [07:36:42]OFD Sender: No OFD packet to send [07:36:47]OFD Sender: No OFD packet to send [07:36:52]OFD Sender: No OFD packet to send [07:36:57]OFD Sender: No OFD packet to send [07:37:02]OFD Sender: No OFD packet to send [07:37:07]OFD Sender: No OFD packet to send [07:37:12]OFD Sender: No OFD packet to send [07:37:17]OFD Sender: No OFD packet to send [07:37:22]OFD Sender: No OFD packet to send [07:37:27]OFD Sender: No OFD packet to send [07:37:32]OFD Sender: No OFD packet to send [07:37:37]OFD Sender: No OFD packet to send [07:37:42]OFD Sender: No OFD packet to send [07:37:47]OFD Sender: No OFD packet to send [07:37:52]OFD Sender: No OFD packet to send [07:37:57]OFD Sender: No OFD packet to send [07:38:02]OFD Sender: No OFD packet to send [07:38:07]OFD Sender: No OFD packet to send [07:38:12]OFD Sender: No OFD packet to send [07:38:17]OFD Sender: No OFD packet to send [07:38:22]OFD Sender: No OFD packet to send [07:38:27]OFD Sender: No OFD packet to send [07:38:32]OFD Sender: No OFD packet to send [07:38:37]OFD Sender: No OFD packet to send [07:38:42]OFD Sender: No OFD packet to send [07:38:47]OFD Sender: No OFD packet to send [07:38:52]OFD Sender: No OFD packet to send [07:38:57]OFD Sender: No OFD packet to send [07:39:02]OFD Sender: No OFD packet to send [07:39:05]accept exits with 9 [07:39:05]New connection [07:39:05]New thread 3066965348 created [07:39:05]Thread 3066821988 joined [07:39:05]Waiting for new connection... [07:39:05] Sock 9.Parse request [07:39:05]Sock 9.Check first char [07:39:05]Sock 9.First char is OK [07:39:05]request: POST /json_proto HTTP/1.0 [07:39:05]Method: POST [07:39:05]URL: /json_proto [07:39:05]Method is POST - this is cgi request [07:39:05]url: /json_proto [07:39:05]query_string will be loaded in cgi processing [07:39:05]execute_cgi json_proto POST (null) [07:39:05]execute_cgi path=json_proto method=POST [07:39:05]POST find Content-Length [07:39:05]Host: 172.17.44.195:8080 [07:39:05]Content-Length: 680 [07:39:05]Content-Type: application/json [07:39:05] [07:39:05]POST finish read [07:39:05]Found Content-Length = 680 [07:39:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962666", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:39:05]execute_script... [07:39:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962666", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:39:05]POST & json_proto [07:39:05]process_json_proto [07:39:05]json parsed OK: [07:39:05]protocol is kg_v1.0 [07:39:05]action value=close_receipt [07:39:05]process_action close_receipt [07:39:05]cmd_close_receipt [07:39:05]MH_GetDate [07:39:05]Write to MH i2c: F0 00 00 57 28 6E [07:39:05]Write i2c OK [07:39:05]MH_I2C_Read... [07:39:05]Read from MH i2c: F0 [07:39:05]MH_I2C_Read... [07:39:05]Read from MH i2c: F0 09 00 [07:39:05]MH_I2C_Read... [07:39:05]Read from MH i2c: F0 09 00 57 28 00 9D B3 14 67 82 C9 CF 66 C2 [07:39:05]GetLastDocTimeStamp 1729409758 [07:39:05]current date 1729409949 [07:39:05]FM_GetShiftState [07:39:05]SAM_PROTO_GetShiftState [07:39:05]wFMCommunicate request_size=4 [07:39:05]MH_SAM_APDU [07:39:05]CAPDU: 80 13 01 00 [07:39:05]Write to MH i2c: E2 08 00 58 28 80 13 01 00 00 00 00 00 FD [07:39:05]Write i2c OK [07:39:05]MH_I2C_Read... [07:39:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:39:05]Read from MH i2c: E2 [07:39:05]MH_I2C_Read... [07:39:05]Read from MH i2c: E2 0E 00 [07:39:05]MH_I2C_Read... [07:39:05]Read from MH i2c: E2 0E 00 58 28 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 17 [07:39:05]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [07:39:05]wFMCommunicate OK [07:39:05]SAM_PROTO_GetShiftState done [07:39:05]FM_GetShiftState done [07:39:05]opened in 1729383750 [07:39:05]opened+sec_in_day 1729470150 [07:39:05]quantity*price = 200025 [07:39:05]sum+1 = 200026 [07:39:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 61 20.10.2024 07:39 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227213 ФПД: 107959371358255 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T073909&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227213&fm=107959371358255&tin=02508201610067®Number=0000000000091685&sum=200000 [07:39:06]StoreToDocumentArchive [07:39:06]shift 533 fd 227213 [07:39:06]save to /storage/0533/doc_00227213 [07:39:06]save last doc name /storage/0533/doc_00227213 to /storage/kkm_last_doc_name [07:39:06]save OK [07:39:06]Clear old archive folders... [07:39:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:39:06]tlvbuf is 005D2CF0 [07:39:06]SAM_PROTO_ClearQueue [07:39:06]wFMCommunicate request_size=4 [07:39:06]MH_SAM_APDU [07:39:06]CAPDU: 80 09 00 00 [07:39:06]Write to MH i2c: E2 08 00 65 28 80 09 00 00 00 00 00 00 FF [07:39:06]Write i2c OK [07:39:06]MH_I2C_Read... [07:39:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:39:06]Read from MH i2c: E2 [07:39:06]MH_I2C_Read... [07:39:06]Read from MH i2c: E2 03 00 [07:39:06]MH_I2C_Read... [07:39:06]Read from MH i2c: E2 03 00 65 28 00 90 00 01 [07:39:06]RAPDU: 90 00 [07:39:06]wFMCommunicate OK [07:39:06]SAM_PROTO_ClearQueue done [07:39:06]KKMCreateOFDPacket [07:39:06]OFDProtocolAddRootSTLVToBuf [07:39:06]FM_MakeSignedData [07:39:06]FM_MakeSignedData [07:39:06]SAM_PROTO_SignData [07:39:06]wFMCommunicate request_size=4 [07:39:06]MH_SAM_APDU [07:39:06]CAPDU: 80 0D 01 02 [07:39:06]Write to MH i2c: E2 08 00 66 28 80 0D 01 02 00 00 00 00 07 [07:39:06]Write i2c OK [07:39:06]MH_I2C_Read... [07:39:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:39:06]Read from MH i2c: E2 [07:39:06]MH_I2C_Read... [07:39:06]Read from MH i2c: E2 03 00 [07:39:06]MH_I2C_Read... [07:39:06]Read from MH i2c: E2 03 00 66 28 00 90 00 02 [07:39:06]RAPDU: 90 00 [07:39:06]wFMCommunicate OK [07:39:06]wFMCommunicate request_size=255 [07:39:06]MH_SAM_APDU [07:39:06]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 9D B3 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8D 77 03 00 35 04 06 00 62 30 3F FA [07:39:06]Write to MH i2c: E2 02 01 67 28 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 9D B3 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8D 77 03 00 35 04 06 00 62 30 3F FA 00 00 73 [07:39:06]Write i2c OK [07:39:06]MH_I2C_Read... [07:39:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:39:06]Read from MH i2c: E2 [07:39:06]MH_I2C_Read... [07:39:06]Read from MH i2c: E2 03 00 [07:39:06]MH_I2C_Read... [07:39:06]Read from MH i2c: E2 03 00 67 28 00 90 00 03 [07:39:06]RAPDU: 90 00 [07:39:06]wFMCommunicate OK [07:39:06]wFMCommunicate request_size=7 [07:39:06]MH_SAM_APDU [07:39:06]CAPDU: 80 0D 02 02 02 E0 2F [07:39:06]Write to MH i2c: E2 0A 00 68 28 80 0D 02 02 02 00 E0 2F 00 00 1D [07:39:06]Write i2c OK [07:39:06]MH_I2C_Read... [07:39:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:39:06]Read from MH i2c: E2 [07:39:06]MH_I2C_Read... [07:39:06]Read from MH i2c: E2 03 00 [07:39:06]MH_I2C_Read... [07:39:06]Read from MH i2c: E2 03 00 68 28 00 90 00 04 [07:39:06]RAPDU: 90 00 [07:39:06]wFMCommunicate OK [07:39:06]wFMCommunicate request_size=4 [07:39:06]MH_SAM_APDU [07:39:06]CAPDU: 80 0D 03 02 [07:39:06]Write to MH i2c: E2 08 00 69 28 80 0D 03 02 00 00 00 00 0C [07:39:06]Write i2c OK [07:39:06]MH_I2C_Read... [07:39:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:39:07]Read from MH i2c: E2 [07:39:07]MH_I2C_Read... [07:39:07]Read from MH i2c: E2 0B 00 [07:39:07]MH_I2C_Read... [07:39:07]Read from MH i2c: E2 0B 00 69 28 00 95 1D A0 6C D1 49 FB 6A 90 00 4A [07:39:07]RAPDU: 95 1D A0 6C D1 49 FB 6A 90 00 [07:39:07]wFMCommunicate OK [07:39:07]SAM_PROTO_SignData done [07:39:07]FM_MakeSignedData done [07:39:07]CreateOFDProtocolMessage [07:39:07]wFMCommunicate request_size=4 [07:39:07]MH_SAM_APDU [07:39:07]CAPDU: 80 11 00 00 [07:39:07]Write to MH i2c: E2 08 00 6A 28 80 11 00 00 00 00 00 00 0C [07:39:07]Write i2c OK [07:39:07]MH_I2C_Read... [07:39:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:39:07]Read from MH i2c: E2 [07:39:07]MH_I2C_Read... [07:39:07]Read from MH i2c: E2 17 00 [07:39:07]MH_I2C_Read... [07:39:07]Read from MH i2c: E2 17 00 6A 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 63 [07:39:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:39:07]wFMCommunicate OK [07:39:07]CreateOFDProtocolMessage done [07:39:07]OFDSenderStorePacket 227213 [07:39:07]StoreOFDPacket docnum=227213 [07:39:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 5A 8B 04 01 9B 13 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 9D B3 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8D 77 03 00 35 04 06 00 62 30 3F FA E0 2F 95 1D A0 6C D1 49 FB 6A [07:39:07]CheckFolder [07:39:07]dirname=/storage/ofd_packets [07:39:07]CheckFolder done [07:39:07]ProducePacketName [07:39:07]name=ofd_packets/00227213 [07:39:07]NVStorageSaveData ofd_packets/00227213 [07:39:07]File name is /storage/ofd_packets/00227213 [07:39:07]Write 298 bytes [07:39:07]NVStorageSaveData done [07:39:07]OFDSenderStorePacket done [07:39:07]KKMCreateOFDPacket done [07:39:07]NVStorageSaveData kkm_last_timestamp [07:39:07]File name is /storage/kkm_last_timestamp [07:39:07]Write 4 bytes [07:39:07]NVStorageSaveData done [07:39:07]ExternCall_PrintAddStr [07:39:07]wPrintStart [07:39:07]Write to MH i2c: 01 00 00 6B 28 93 [07:39:07]Write i2c OK [07:39:07]MH_I2C_Read... [07:39:07]Read from MH i2c: 01 [07:39:07]MH_I2C_Read... [07:39:07]Read from MH i2c: 01 07 00 [07:39:07]MH_I2C_Read... [07:39:07]Read from MH i2c: 01 07 00 6B 28 00 00 00 00 00 FF 0F A8 [07:39:07]RasterBufferAndPrint [07:39:07]line Счет N : (1)1962666 [07:39:07]line ИНН: 02508201610067 [07:39:07]line Контрольно-Кассовый Чек [07:39:07]line ПРОДАЖА [07:39:07]line ТРК (МРК, ГНК) : 31 [07:39:07]line Товар: 2710194210 [07:39:07]line ДТ-К-5 [07:39:07]line 26.250 * 76.20 [07:39:07]line = 2000.25 [07:39:07]line НДС 12% НСП 1% [07:39:07]line > о реализуемом товаре [07:39:07]line ОКРУГЛЕНИЕ: -0.25 [07:39:07]line ИТОГО: 2000.00 [07:39:07]line Внесено: 2000.00 [07:39:07]line СДАЧА: 0.00 [07:39:07]line НСП 1% : 17.70 [07:39:07]line НДС 12% : 212.42 [07:39:07]line Наличными: 2000.00 [07:39:07]line Безнал.: 0.00 [07:39:07]line Место: АЗС № 133 "Партнер Нефть" [07:39:07]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [07:39:07]line СНО: Общий режим [07:39:07]line Чек 61 20.10.2024 07:39 [07:39:07]line Смена: 533 ФФД: 1.0 [07:39:07]line ЗНМ: 0300000091 [07:39:07]line РНМ: 0000000000091685 [07:39:07]line Версия ККМ: 001 [07:39:07]line ФМ: 0000000000871839 [07:39:07]line ФД: 227213 [07:39:07]line ФПД: 107959371358255 [07:39:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T073909&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227213&fm=107959371358255&tin=02508201610067®Number=0000000000091685&sum=200000 [07:39:07]OFD Sender: Processing packet 227213 [packets to send 38, broken 37] [07:39:07]ProducePacketName [07:39:07]name=ofd_packets/00227213 [07:39:07]OFD Sender: To server: pG, [07:39:07]CommunicateWithHost lk.salyk.kg:30040 [07:39:07]ConnectInit lk.salyk.kg [07:39:07]written 0, free lines is 4095 [07:39:07]Connected sock=8 [07: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 33 39 0C 01 00 00 5A 8B 04 01 9B 13 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 9D B3 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8D 77 03 00 35 04 06 00 62 30 3F FA E0 2F 95 1D A0 6C D1 49 FB 6A [07: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 33 39 4F 00 00 00 52 52 47 00 59 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 33 39 10 04 04 00 8D 77 03 00 F4 03 04 00 9C 5E 14 67 B6 04 01 00 00 F7 1F 0A 50 52 14 66 80 [07:39:07]CommunicateWithHost err = 0 [07:39:07]CheckOFDResponse [07:39:07]1017 (14) - 77093643461234 [07:39:07]1041 (16) - 0000000000871839 [07:39:07]1040 (4) - 227213 [07:39:07]1012 (4) - 20.10.2024 01:36 [07:39:07]1206 (1) - 0 [07:39:07]OFD Sender: Remove packet 227213 [07:39:07]ProducePacketName [07:39:07]name=ofd_packets/00227213 [07:39:07]NVStorageDeleteData [07:39:07]Write to MH i2c: 01 00 00 95 28 BD [07:39:07]Write i2c OK [07:39:07]MH_I2C_Read... [07:39:07]Read from MH i2c: 01 [07:39:07]MH_I2C_Read... [07:39:07]Read from MH i2c: 01 07 00 [07:39:07]MH_I2C_Read... [07:39:07]Read from MH i2c: 01 07 00 95 28 00 00 00 00 00 0B 0D DC [07:39:07]RasterBufferAndPrint [07:39:07]line [07:39:07]line [07:39:07]line [07:39:07]line [07:39:07]line [07:39:07]written 0, free lines is 3345 [07:39:07]process_action close_receipt done [07:39:07]requested_data is exist [07:39:07]produce_requested_data [07:39:07]requested_item fm.sn is exist - process it [07:39:07]wFMCommunicate request_size=4 [07:39:07]MH_SAM_APDU [07:39:07]CAPDU: 80 11 00 00 [07:39:07]Write to MH i2c: E2 08 00 9C 28 80 11 00 00 00 00 00 00 3E [07:39:07]Write i2c OK [07:39:07]MH_I2C_Read... [07:39:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:39:07]Read from MH i2c: E2 [07:39:07]MH_I2C_Read... [07:39:07]Read from MH i2c: E2 17 00 [07:39:07]MH_I2C_Read... [07:39:07]Read from MH i2c: E2 17 00 9C 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 95 [07:39:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:39:07]wFMCommunicate OK [07:39:07]requested_item fd.num is exist - process it [07:39:07]SAM_PROTO_GetFieldsCounters [07:39:07]wFMCommunicate request_size=4 [07:39:07]MH_SAM_APDU [07:39:07]CAPDU: 80 13 00 00 [07:39:07]Write to MH i2c: E2 08 00 9D 28 80 13 00 00 00 00 00 00 41 [07:39:07]Write i2c OK [07:39:07]MH_I2C_Read... [07:39:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:39:08]Read from MH i2c: E2 [07:39:08]MH_I2C_Read... [07:39:08]Read from MH i2c: E2 62 00 [07:39:08]MH_I2C_Read... [07:39:08]Read from MH i2c: E2 62 00 9D 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 8D 77 03 00 0E 04 04 00 15 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 3F [07: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 8D 77 03 00 0E 04 04 00 15 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 [07:39:08]wFMCommunicate OK [07:39:08]SAM_PROTO_GetFieldsCounters done [07:39:08]requested_item shift.num is exist - process it [07:39:08]requested_item shift.opened is exist - process it [07:39:08]req_shift_opened [07:39:08]FM_GetShiftState [07:39:08]SAM_PROTO_GetShiftState [07:39:08]wFMCommunicate request_size=4 [07:39:08]MH_SAM_APDU [07:39:08]CAPDU: 80 13 01 00 [07:39:08]Write to MH i2c: E2 08 00 9E 28 80 13 01 00 00 00 00 00 43 [07:39:08]Write i2c OK [07:39:08]MH_I2C_Read... [07:39:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:39:08]Read from MH i2c: E2 [07:39:08]MH_I2C_Read... [07:39:08]Read from MH i2c: E2 0E 00 [07:39:08]MH_I2C_Read... [07:39:08]Read from MH i2c: E2 0E 00 9E 28 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 5D [07:39:08]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [07:39:08]wFMCommunicate OK [07:39:08]SAM_PROTO_GetShiftState done [07:39:08]FM_GetShiftState done [07:39:08]req_shift_opened done [07:39:08]requested_item shift.open_date is exist - process it [07:39:08]req_shift_open_date [07:39:08]req_shift_open_date done [07:39:08]produce_requested_data done [07:39:08]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227213,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [07:39:08]process_action_free close_receipt [07:39:08]json_value_free [07:39:08]json_value_free done [07:39:08]process_json_proto returns [07:39:08]Send response to host [07:39:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227213,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [07:39:08]free response buf [07:39:08]execute_script done [07:39:08]execute_script returns [07:39:08]free content buf [07:39:08]Sock 9.Close socket [07:39:08]Sock 9.Thread stoped [07:39:08]OFD Sender: No OFD packet to send [07:39:13]OFD Sender: No OFD packet to send [07:39:18]OFD Sender: No OFD packet to send [07:39:23]OFD Sender: No OFD packet to send [07:39:28]OFD Sender: No OFD packet to send [07:39:33]OFD Sender: No OFD packet to send [07:39:38]OFD Sender: No OFD packet to send [07:39:43]OFD Sender: No OFD packet to send [07:39:48]OFD Sender: No OFD packet to send [07:39:53]OFD Sender: No OFD packet to send [07:39:58]OFD Sender: No OFD packet to send [07:40:03]OFD Sender: No OFD packet to send [07:40:08]OFD Sender: No OFD packet to send [07:40:13]OFD Sender: No OFD packet to send [07:40:18]OFD Sender: No OFD packet to send [07:40:23]OFD Sender: No OFD packet to send [07:40:28]OFD Sender: No OFD packet to send [07:40:33]OFD Sender: No OFD packet to send [07:40:38]OFD Sender: No OFD packet to send [07:40:43]OFD Sender: No OFD packet to send [07:40:48]OFD Sender: No OFD packet to send [07:40:53]OFD Sender: No OFD packet to send [07:40:58]OFD Sender: No OFD packet to send [07:41:03]OFD Sender: No OFD packet to send [07:41:08]OFD Sender: No OFD packet to send [07:41:13]OFD Sender: No OFD packet to send [07:41:18]OFD Sender: No OFD packet to send [07:41:23]OFD Sender: No OFD packet to send [07:41:28]OFD Sender: No OFD packet to send [07:41:33]OFD Sender: No OFD packet to send [07:41:38]OFD Sender: No OFD packet to send [07:41:43]OFD Sender: No OFD packet to send [07:41:48]OFD Sender: No OFD packet to send [07:41:53]OFD Sender: No OFD packet to send [07:41:58]OFD Sender: No OFD packet to send [07:42:03]OFD Sender: No OFD packet to send [07:42:08]OFD Sender: No OFD packet to send [07:42:13]OFD Sender: No OFD packet to send [07:42:18]OFD Sender: No OFD packet to send [07:42:23]OFD Sender: No OFD packet to send [07:42:28]OFD Sender: No OFD packet to send [07:42:33]OFD Sender: No OFD packet to send [07:42:38]OFD Sender: No OFD packet to send [07:42:43]OFD Sender: No OFD packet to send [07:42:48]OFD Sender: No OFD packet to send [07:42:53]OFD Sender: No OFD packet to send [07:42:54]accept exits with 10 [07:42:54]New connection [07:42:54]New thread 3066821988 created [07:42:54]Thread 3066965348 joined [07:42:54]Waiting for new connection... [07:42:54] Sock 10.Parse request [07:42:54]Sock 10.Check first char [07:42:54]Sock 10.First char is OK [07:42:54]request: POST /json_proto HTTP/1.0 [07:42:54]Method: POST [07:42:54]URL: /json_proto [07:42:54]Method is POST - this is cgi request [07:42:54]url: /json_proto [07:42:54]query_string will be loaded in cgi processing [07:42:54]execute_cgi json_proto POST (null) [07:42:54]execute_cgi path=json_proto method=POST [07:42:54]POST find Content-Length [07:42:54]Host: 172.17.44.195:8080 [07:42:54]Content-Length: 664 [07:42:54]Content-Type: application/json [07:42:54] [07:42:54]POST finish read [07:42:54]Found Content-Length = 664 [07:42:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962667", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 43.860, "sum" : 3000.02, "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" ] } } [07:42:54]execute_script... [07:42: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)1962667", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 43.860, "sum" : 3000.02, "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" ] } } [07:42:54]POST & json_proto [07:42:54]process_json_proto [07:42:54]json parsed OK: [07:42:54]protocol is kg_v1.0 [07:42:54]action value=close_receipt [07:42:54]process_action close_receipt [07:42:54]cmd_close_receipt [07:42:54]MH_GetDate [07:42:54]Write to MH i2c: F0 00 00 9F 28 B6 [07:42:54]Write i2c OK [07:42:54]MH_I2C_Read... [07:42:54]Read from MH i2c: F0 [07:42:54]MH_I2C_Read... [07:42:54]Read from MH i2c: F0 09 00 [07:42:54]MH_I2C_Read... [07:42:54]Read from MH i2c: F0 09 00 9F 28 00 81 B4 14 67 82 C9 CF 66 EF [07:42:54]GetLastDocTimeStamp 1729409949 [07:42:54]current date 1729410177 [07:42:54]FM_GetShiftState [07:42:54]SAM_PROTO_GetShiftState [07:42:54]wFMCommunicate request_size=4 [07:42:54]MH_SAM_APDU [07:42:54]CAPDU: 80 13 01 00 [07:42:54]Write to MH i2c: E2 08 00 A0 28 80 13 01 00 00 00 00 00 45 [07:42:54]Write i2c OK [07:42:54]MH_I2C_Read... [07:42:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:42:54]Read from MH i2c: E2 [07:42:54]MH_I2C_Read... [07:42:54]Read from MH i2c: E2 0E 00 [07:42:54]MH_I2C_Read... [07:42:54]Read from MH i2c: E2 0E 00 A0 28 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 5F [07:42:54]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [07:42:54]wFMCommunicate OK [07:42:54]SAM_PROTO_GetShiftState done [07:42:54]FM_GetShiftState done [07:42:54]opened in 1729383750 [07:42:54]opened+sec_in_day 1729470150 [07:42:54]quantity*price = 300002 [07:42:54]sum+1 = 300003 [07:42:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.59 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 62 20.10.2024 07:42 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227214 ФПД: 183504960819222 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T074258&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227214&fm=183504960819222&tin=02508201610067®Number=0000000000091685&sum=300000 [07:42:55]StoreToDocumentArchive [07:42:55]shift 533 fd 227214 [07:42:55]save to /storage/0533/doc_00227214 [07:42:55]save last doc name /storage/0533/doc_00227214 to /storage/kkm_last_doc_name [07:42:55]save OK [07:42:55]Clear old archive folders... [07:42:55]ProcessDocumentItem done err = 0, tmpTLVsize=244 [07:42:55]tlvbuf is 005D2620 [07:42:55]SAM_PROTO_ClearQueue [07:42:55]wFMCommunicate request_size=4 [07:42:55]MH_SAM_APDU [07:42:55]CAPDU: 80 09 00 00 [07:42:55]Write to MH i2c: E2 08 00 AD 28 80 09 00 00 00 00 00 00 47 [07:42:55]Write i2c OK [07:42:55]MH_I2C_Read... [07:42:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:42:55]Read from MH i2c: E2 [07:42:55]MH_I2C_Read... [07:42:55]Read from MH i2c: E2 03 00 [07:42:55]MH_I2C_Read... [07:42:55]Read from MH i2c: E2 03 00 AD 28 00 90 00 49 [07:42:55]RAPDU: 90 00 [07:42:55]wFMCommunicate OK [07:42:55]SAM_PROTO_ClearQueue done [07:42:55]KKMCreateOFDPacket [07:42:55]OFDProtocolAddRootSTLVToBuf [07:42:55]FM_MakeSignedData [07:42:55]FM_MakeSignedData [07:42:55]SAM_PROTO_SignData [07:42:55]wFMCommunicate request_size=4 [07:42:55]MH_SAM_APDU [07:42:55]CAPDU: 80 0D 01 02 [07:42:55]Write to MH i2c: E2 08 00 AE 28 80 0D 01 02 00 00 00 00 4F [07:42:55]Write i2c OK [07:42:55]MH_I2C_Read... [07:42:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:42:55]Read from MH i2c: E2 [07:42:55]MH_I2C_Read... [07:42:55]Read from MH i2c: E2 03 00 [07:42:55]MH_I2C_Read... [07:42:55]Read from MH i2c: E2 03 00 AE 28 00 90 00 4A [07:42:55]RAPDU: 90 00 [07:42:55]wFMCommunicate OK [07:42:55]wFMCommunicate request_size=253 [07:42:55]MH_SAM_APDU [07:42:55]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 54 AB 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 E2 93 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 73 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 3E 00 00 00 F4 03 04 00 82 B4 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8E 77 03 00 35 04 06 00 A6 E5 94 01 10 16 [07:42:55]Write to MH i2c: E2 00 01 AF 28 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 54 AB 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 E2 93 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 73 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 3E 00 00 00 F4 03 04 00 82 B4 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8E 77 03 00 35 04 06 00 A6 E5 94 01 10 16 00 00 F3 [07:42:55]Write i2c OK [07:42:55]MH_I2C_Read... [07:42:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:42:55]Read from MH i2c: E2 [07:42:55]MH_I2C_Read... [07:42:55]Read from MH i2c: E2 03 00 [07:42:55]MH_I2C_Read... [07:42:55]Read from MH i2c: E2 03 00 AF 28 00 90 00 4B [07:42:55]RAPDU: 90 00 [07:42:55]wFMCommunicate OK [07:42:55]wFMCommunicate request_size=4 [07:42:55]MH_SAM_APDU [07:42:55]CAPDU: 80 0D 03 02 [07:42:55]Write to MH i2c: E2 08 00 B0 28 80 0D 03 02 00 00 00 00 53 [07:42:55]Write i2c OK [07:42:55]MH_I2C_Read... [07:42:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:42:55]Read from MH i2c: E2 [07:42:55]MH_I2C_Read... [07:42:55]Read from MH i2c: E2 0B 00 [07:42:55]MH_I2C_Read... [07:42:55]Read from MH i2c: E2 0B 00 B0 28 00 18 AB ED 99 71 40 E0 CE 90 00 FC [07:42:55]RAPDU: 18 AB ED 99 71 40 E0 CE 90 00 [07:42:55]wFMCommunicate OK [07:42:55]SAM_PROTO_SignData done [07:42:55]FM_MakeSignedData done [07:42:55]CreateOFDProtocolMessage [07:42:55]wFMCommunicate request_size=4 [07:42:55]MH_SAM_APDU [07:42:55]CAPDU: 80 11 00 00 [07:42:55]Write to MH i2c: E2 08 00 B1 28 80 11 00 00 00 00 00 00 53 [07:42:55]Write i2c OK [07:42:55]MH_I2C_Read... [07:42:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:42:55]Read from MH i2c: E2 [07:42:55]MH_I2C_Read... [07:42:55]Read from MH i2c: E2 17 00 [07:42:55]MH_I2C_Read... [07:42:55]Read from MH i2c: E2 17 00 B1 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 AA [07:42:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:42:55]wFMCommunicate OK [07:42:55]CreateOFDProtocolMessage done [07:42:55]OFDSenderStorePacket 227214 [07:42:55]StoreOFDPacket docnum=227214 [07:42:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 13 65 00 01 73 3B 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 54 AB 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 E2 93 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 73 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 3E 00 00 00 F4 03 04 00 82 B4 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8E 77 03 00 35 04 06 00 A6 E5 94 01 10 16 18 AB ED 99 71 40 E0 CE [07:42:55]CheckFolder [07:42:55]dirname=/storage/ofd_packets [07:42:55]CheckFolder done [07:42:55]ProducePacketName [07:42:55]name=ofd_packets/00227214 [07:42:55]NVStorageSaveData ofd_packets/00227214 [07:42:55]File name is /storage/ofd_packets/00227214 [07:42:55]Write 294 bytes [07:42:55]NVStorageSaveData done [07:42:55]OFDSenderStorePacket done [07:42:55]KKMCreateOFDPacket done [07:42:55]NVStorageSaveData kkm_last_timestamp [07:42:55]File name is /storage/kkm_last_timestamp [07:42:55]Write 4 bytes [07:42:55]NVStorageSaveData done [07:42:55]ExternCall_PrintAddStr [07:42:55]wPrintStart [07:42:55]Write to MH i2c: 01 00 00 B2 28 DA [07:42:55]Write i2c OK [07:42:55]MH_I2C_Read... [07:42:55]Read from MH i2c: 01 [07:42:55]MH_I2C_Read... [07:42:55]Read from MH i2c: 01 07 00 [07:42:55]MH_I2C_Read... [07:42:55]Read from MH i2c: 01 07 00 B2 28 00 00 00 00 00 FF 0F EF [07:42:55]RasterBufferAndPrint [07:42:55]line Счет N : (1)1962667 [07:42:55]line ИНН: 02508201610067 [07:42:55]line Контрольно-Кассовый Чек [07:42:55]line ПРОДАЖА [07:42:55]line ТРК (МРК, ГНК) : 42 [07:42:55]line Товар: 2710124130 [07:42:55]line SU-92 [07:42:55]line 43.860 * 68.40 [07:42:55]line = 3000.02 [07:42:55]line НДС 12% НСП 1% [07:42:55]line > о реализуемом товаре [07:42:55]line ОКРУГЛЕНИЕ: -0.02 [07:42:55]line ИТОГО: 3000.00 [07:42:55]line Внесено: 3000.00 [07:42:55]line СДАЧА: 0.00 [07:42:55]line НСП 1% : 26.55 [07:42:55]line НДС 12% : 318.59 [07:42:55]line Наличными: 3000.00 [07:42:55]line Безнал.: 0.00 [07:42:55]line Место: АЗС № 133 "Партнер Нефть" [07:42:55]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [07:42:55]line СНО: Общий режим [07:42:55]line Чек 62 20.10.2024 07:42 [07:42:55]line Смена: 533 ФФД: 1.0 [07:42:55]line ЗНМ: 0300000091 [07:42:55]line РНМ: 0000000000091685 [07:42:55]line Версия ККМ: 001 [07:42:55]line ФМ: 0000000000871839 [07:42:55]line ФД: 227214 [07:42:55]line ФПД: 183504960819222 [07:42:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T074258&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227214&fm=183504960819222&tin=02508201610067®Number=0000000000091685&sum=300000 [07:42:56]OFD Sender: Processing packet 227214 [packets to send 38, broken 37] [07:42:56]ProducePacketName [07:42:56]name=ofd_packets/00227214 [07:42:56]OFD Sender: To server: pG, [07:42:56]CommunicateWithHost lk.salyk.kg:30040 [07:42:56]ConnectInit lk.salyk.kg [07:42:56]written 0, free lines is 4095 [07:42:56]Connected sock=9 [07:42:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 13 65 00 01 73 3B 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 54 AB 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 E2 93 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 73 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 3E 00 00 00 F4 03 04 00 82 B4 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8E 77 03 00 35 04 06 00 A6 E5 94 01 10 16 18 AB ED 99 71 40 E0 CE [07:42: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 33 39 4F 00 00 00 F4 C4 47 00 7D 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 33 39 10 04 04 00 8E 77 03 00 F4 03 04 00 81 5F 14 67 B6 04 01 00 00 AB EF 0B 5D 03 03 67 9A [07:42:56]CommunicateWithHost err = 0 [07:42:56]CheckOFDResponse [07:42:56]1017 (14) - 77093643461234 [07:42:56]1041 (16) - 0000000000871839 [07:42:56]1040 (4) - 227214 [07:42:56]1012 (4) - 20.10.2024 01:40 [07:42:56]1206 (1) - 0 [07:42:56]OFD Sender: Remove packet 227214 [07:42:56]ProducePacketName [07:42:56]name=ofd_packets/00227214 [07:42:56]NVStorageDeleteData [07:42:56]Write to MH i2c: 01 00 00 DC 28 04 [07:42:56]Write i2c OK [07:42:56]MH_I2C_Read... [07:42:56]Read from MH i2c: 01 [07:42:56]MH_I2C_Read... [07:42:56]Read from MH i2c: 01 07 00 [07:42:56]MH_I2C_Read... [07:42:56]Read from MH i2c: 01 07 00 DC 28 00 00 00 00 00 18 0D 30 [07:42:56]RasterBufferAndPrint [07:42:56]line [07:42:56]line [07:42:56]line [07:42:56]line [07:42:56]line [07:42:56]written 0, free lines is 3362 [07:42:56]process_action close_receipt done [07:42:56]requested_data is exist [07:42:56]produce_requested_data [07:42:56]requested_item fm.sn is exist - process it [07:42:56]wFMCommunicate request_size=4 [07:42:56]MH_SAM_APDU [07:42:56]CAPDU: 80 11 00 00 [07:42:56]Write to MH i2c: E2 08 00 E3 28 80 11 00 00 00 00 00 00 85 [07:42:56]Write i2c OK [07:42:56]MH_I2C_Read... [07:42:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:42:56]Read from MH i2c: E2 [07:42:56]MH_I2C_Read... [07:42:56]Read from MH i2c: E2 17 00 [07:42:56]MH_I2C_Read... [07:42:56]Read from MH i2c: E2 17 00 E3 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 DC [07:42:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:42:56]wFMCommunicate OK [07:42:56]requested_item fd.num is exist - process it [07:42:56]SAM_PROTO_GetFieldsCounters [07:42:56]wFMCommunicate request_size=4 [07:42:56]MH_SAM_APDU [07:42:56]CAPDU: 80 13 00 00 [07:42:56]Write to MH i2c: E2 08 00 E4 28 80 13 00 00 00 00 00 00 88 [07:42:56]Write i2c OK [07:42:56]MH_I2C_Read... [07:42:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:42:56]Read from MH i2c: E2 [07:42:56]MH_I2C_Read... [07:42:56]Read from MH i2c: E2 62 00 [07:42:56]MH_I2C_Read... [07:42:56]Read from MH i2c: E2 62 00 E4 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 8E 77 03 00 0E 04 04 00 15 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 8A [07:42:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 8E 77 03 00 0E 04 04 00 15 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 [07:42:56]wFMCommunicate OK [07:42:56]SAM_PROTO_GetFieldsCounters done [07:42:56]requested_item shift.num is exist - process it [07:42:56]requested_item shift.opened is exist - process it [07:42:56]req_shift_opened [07:42:56]FM_GetShiftState [07:42:56]SAM_PROTO_GetShiftState [07:42:56]wFMCommunicate request_size=4 [07:42:56]MH_SAM_APDU [07:42:56]CAPDU: 80 13 01 00 [07:42:56]Write to MH i2c: E2 08 00 E5 28 80 13 01 00 00 00 00 00 8A [07:42:56]Write i2c OK [07:42:56]MH_I2C_Read... [07:42:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:42:57]Read from MH i2c: E2 [07:42:57]MH_I2C_Read... [07:42:57]Read from MH i2c: E2 0E 00 [07:42:57]MH_I2C_Read... [07:42:57]Read from MH i2c: E2 0E 00 E5 28 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 A4 [07:42:57]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [07:42:57]wFMCommunicate OK [07:42:57]SAM_PROTO_GetShiftState done [07:42:57]FM_GetShiftState done [07:42:57]req_shift_opened done [07:42:57]requested_item shift.open_date is exist - process it [07:42:57]req_shift_open_date [07:42:57]req_shift_open_date done [07:42:57]produce_requested_data done [07:42:57]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227214,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [07:42:57]process_action_free close_receipt [07:42:57]json_value_free [07:42:57]json_value_free done [07:42:57]process_json_proto returns [07:42:57]Send response to host [07:42:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227214,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [07:42:57]free response buf [07:42:57]execute_script done [07:42:57]execute_script returns [07:42:57]free content buf [07:42:57]Sock 10.Close socket [07:42:57]Sock 10.Thread stoped [07:42:57]OFD Sender: No OFD packet to send [07:42:59]accept exits with 8 [07:42:59]New connection [07:42:59]New thread 3066965348 created [07:42:59]Thread 3066821988 joined [07:42:59]Waiting for new connection... [07:42:59] Sock 8.Parse request [07:42:59]Sock 8.Check first char [07:42:59]Sock 8.First char is OK [07:42:59]request: POST /json_proto HTTP/1.0 [07:42:59]Method: POST [07:42:59]URL: /json_proto [07:42:59]Method is POST - this is cgi request [07:42:59]url: /json_proto [07:42:59]query_string will be loaded in cgi processing [07:42:59]execute_cgi json_proto POST (null) [07:42:59]execute_cgi path=json_proto method=POST [07:42:59]POST find Content-Length [07:42:59]Host: 172.17.44.195:8080 [07:42:59]Content-Length: 678 [07:42:59]Content-Type: application/json [07:42:59] [07:42:59]POST finish read [07:42:59]Found Content-Length = 678 [07:42:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962668", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:42:59]execute_script... [07:42: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)1962668", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:42:59]POST & json_proto [07:42:59]process_json_proto [07:42:59]json parsed OK: [07:42:59]protocol is kg_v1.0 [07:42:59]action value=close_receipt [07:42:59]process_action close_receipt [07:42:59]cmd_close_receipt [07:42:59]MH_GetDate [07:42:59]Write to MH i2c: F0 00 00 E6 28 FD [07:42:59]Write i2c OK [07:42:59]MH_I2C_Read... [07:42:59]Read from MH i2c: F0 [07:42:59]MH_I2C_Read... [07:42:59]Read from MH i2c: F0 09 00 [07:42:59]MH_I2C_Read... [07:42:59]Read from MH i2c: F0 09 00 E6 28 00 87 B4 14 67 82 C9 CF 66 3C [07:42:59]GetLastDocTimeStamp 1729410178 [07:42:59]current date 1729410183 [07:42:59]FM_GetShiftState [07:42:59]SAM_PROTO_GetShiftState [07:42:59]wFMCommunicate request_size=4 [07:42:59]MH_SAM_APDU [07:42:59]CAPDU: 80 13 01 00 [07:42:59]Write to MH i2c: E2 08 00 E7 28 80 13 01 00 00 00 00 00 8C [07:42:59]Write i2c OK [07:42:59]MH_I2C_Read... [07:42:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:42:59]Read from MH i2c: E2 [07:42:59]MH_I2C_Read... [07:42:59]Read from MH i2c: E2 0E 00 [07:42:59]MH_I2C_Read... [07:42:59]Read from MH i2c: E2 0E 00 E7 28 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 A6 [07:42:59]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [07:42:59]wFMCommunicate OK [07:42:59]SAM_PROTO_GetShiftState done [07:42:59]FM_GetShiftState done [07:42:59]opened in 1729383750 [07:42:59]opened+sec_in_day 1729470150 [07:42:59]quantity*price = 50010 [07:42:59]sum+1 = 50012 [07:42:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 63 20.10.2024 07:43 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227215 ФПД: 70598065373893 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T074303&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227215&fm=70598065373893&tin=02508201610067®Number=0000000000091685&sum=50000 [07:43:00]StoreToDocumentArchive [07:43:00]shift 533 fd 227215 [07:43:00]save to /storage/0533/doc_00227215 [07:43:00]save last doc name /storage/0533/doc_00227215 to /storage/kkm_last_doc_name [07:43:00]save OK [07:43:00]Clear old archive folders... [07:43:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:43:00]tlvbuf is 004F25D0 [07:43:00]SAM_PROTO_ClearQueue [07:43:00]wFMCommunicate request_size=4 [07:43:00]MH_SAM_APDU [07:43:00]CAPDU: 80 09 00 00 [07:43:00]Write to MH i2c: E2 08 00 F4 28 80 09 00 00 00 00 00 00 8E [07:43:00]Write i2c OK [07:43:00]MH_I2C_Read... [07:43:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:43:00]Read from MH i2c: E2 [07:43:00]MH_I2C_Read... [07:43:00]Read from MH i2c: E2 03 00 [07:43:00]MH_I2C_Read... [07:43:00]Read from MH i2c: E2 03 00 F4 28 00 90 00 90 [07:43:00]RAPDU: 90 00 [07:43:00]wFMCommunicate OK [07:43:00]SAM_PROTO_ClearQueue done [07:43:00]KKMCreateOFDPacket [07:43:00]OFDProtocolAddRootSTLVToBuf [07:43:00]FM_MakeSignedData [07:43:00]FM_MakeSignedData [07:43:00]SAM_PROTO_SignData [07:43:00]wFMCommunicate request_size=4 [07:43:00]MH_SAM_APDU [07:43:00]CAPDU: 80 0D 01 02 [07:43:00]Write to MH i2c: E2 08 00 F5 28 80 0D 01 02 00 00 00 00 96 [07:43:00]Write i2c OK [07:43:00]MH_I2C_Read... [07:43:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:43:00]Read from MH i2c: E2 [07:43:00]MH_I2C_Read... [07:43:00]Read from MH i2c: E2 03 00 [07:43:00]MH_I2C_Read... [07:43:00]Read from MH i2c: E2 03 00 F5 28 00 90 00 91 [07:43:00]RAPDU: 90 00 [07:43:00]wFMCommunicate OK [07:43:00]wFMCommunicate request_size=255 [07:43:00]MH_SAM_APDU [07:43: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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 87 B4 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8F 77 03 00 35 04 06 00 40 [07:43:00]Write to MH i2c: E2 02 01 F6 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 87 B4 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8F 77 03 00 35 04 06 00 40 00 00 5A [07:43:00]Write i2c OK [07:43:00]MH_I2C_Read... [07:43:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:43:00]Read from MH i2c: E2 [07:43:00]MH_I2C_Read... [07:43:00]Read from MH i2c: E2 03 00 [07:43:00]MH_I2C_Read... [07:43:00]Read from MH i2c: E2 03 00 F6 28 00 90 00 92 [07:43:00]RAPDU: 90 00 [07:43:00]wFMCommunicate OK [07:43:00]wFMCommunicate request_size=10 [07:43:00]MH_SAM_APDU [07:43:00]CAPDU: 80 0D 02 02 05 35 64 9B C2 C5 [07:43:00]Write to MH i2c: E2 0D 00 F7 28 80 0D 02 02 05 00 35 64 9B C2 C5 00 00 5E [07:43:01]Write i2c OK [07:43:01]MH_I2C_Read... [07:43:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:43:01]Read from MH i2c: E2 [07:43:01]MH_I2C_Read... [07:43:01]Read from MH i2c: E2 03 00 [07:43:01]MH_I2C_Read... [07:43:01]Read from MH i2c: E2 03 00 F7 28 00 90 00 93 [07:43:01]RAPDU: 90 00 [07:43:01]wFMCommunicate OK [07:43:01]wFMCommunicate request_size=4 [07:43:01]MH_SAM_APDU [07:43:01]CAPDU: 80 0D 03 02 [07:43:01]Write to MH i2c: E2 08 00 F8 28 80 0D 03 02 00 00 00 00 9B [07:43:01]Write i2c OK [07:43:01]MH_I2C_Read... [07:43:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:43:01]Read from MH i2c: E2 [07:43:01]MH_I2C_Read... [07:43:01]Read from MH i2c: E2 0B 00 [07:43:01]MH_I2C_Read... [07:43:01]Read from MH i2c: E2 0B 00 F8 28 00 92 EC AE 49 64 28 97 1D 90 00 51 [07:43:01]RAPDU: 92 EC AE 49 64 28 97 1D 90 00 [07:43:01]wFMCommunicate OK [07:43:01]SAM_PROTO_SignData done [07:43:01]FM_MakeSignedData done [07:43:01]CreateOFDProtocolMessage [07:43:01]wFMCommunicate request_size=4 [07:43:01]MH_SAM_APDU [07:43:01]CAPDU: 80 11 00 00 [07:43:01]Write to MH i2c: E2 08 00 F9 28 80 11 00 00 00 00 00 00 9B [07:43:01]Write i2c OK [07:43:01]MH_I2C_Read... [07:43:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:43:01]Read from MH i2c: E2 [07:43:01]MH_I2C_Read... [07:43:01]Read from MH i2c: E2 17 00 [07:43:01]MH_I2C_Read... [07:43:01]Read from MH i2c: E2 17 00 F9 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F2 [07:43:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:43:01]wFMCommunicate OK [07:43:01]CreateOFDProtocolMessage done [07:43:01]OFDSenderStorePacket 227215 [07:43:01]StoreOFDPacket docnum=227215 [07:43:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 38 23 07 01 83 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 87 B4 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8F 77 03 00 35 04 06 00 40 35 64 9B C2 C5 92 EC AE 49 64 28 97 1D [07:43:01]CheckFolder [07:43:01]dirname=/storage/ofd_packets [07:43:01]CheckFolder done [07:43:01]ProducePacketName [07:43:01]name=ofd_packets/00227215 [07:43:01]NVStorageSaveData ofd_packets/00227215 [07:43:01]File name is /storage/ofd_packets/00227215 [07:43:01]Write 301 bytes [07:43:01]NVStorageSaveData done [07:43:01]OFDSenderStorePacket done [07:43:01]KKMCreateOFDPacket done [07:43:01]NVStorageSaveData kkm_last_timestamp [07:43:01]File name is /storage/kkm_last_timestamp [07:43:01]Write 4 bytes [07:43:01]NVStorageSaveData done [07:43:01]ExternCall_PrintAddStr [07:43:01]wPrintStart [07:43:01]Write to MH i2c: 01 00 00 FA 28 22 [07:43:01]Write i2c OK [07:43:01]MH_I2C_Read... [07:43:01]Read from MH i2c: 01 [07:43:01]MH_I2C_Read... [07:43:01]Read from MH i2c: 01 07 00 [07:43:01]MH_I2C_Read... [07:43:01]Read from MH i2c: 01 07 00 FA 28 00 00 00 00 00 FF 0F 37 [07:43:01]RasterBufferAndPrint [07:43:01]line Счет N : (1)1962668 [07:43:01]line ИНН: 02508201610067 [07:43:01]line Контрольно-Кассовый Чек [07:43:01]line ПРОДАЖА [07:43:01]line ТРК (МРК, ГНК) : 34 [07:43:01]line Товар: 2710124500 [07:43:01]line Аи-95-К-5 [07:43:01]line 6.740 * 74.20 [07:43:01]line = 500.11 [07:43:01]line НДС 12% НСП 1% [07:43:01]line > о реализуемом товаре [07:43:01]line ОКРУГЛЕНИЕ: -0.11 [07:43:01]line ИТОГО: 500.00 [07:43:01]line Внесено: 500.00 [07:43:01]line СДАЧА: 0.00 [07:43:01]line НСП 1% : 4.43 [07:43:01]line НДС 12% : 53.11 [07:43:01]line Наличными: 500.00 [07:43:01]line Безнал.: 0.00 [07:43:01]line Место: АЗС № 133 "Партнер Нефть" [07:43:01]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [07:43:01]line СНО: Общий режим [07:43:01]line Чек 63 20.10.2024 07:43 [07:43:01]line Смена: 533 ФФД: 1.0 [07:43:01]line ЗНМ: 0300000091 [07:43:01]line РНМ: 0000000000091685 [07:43:01]line Версия ККМ: 001 [07:43:01]line ФМ: 0000000000871839 [07:43:01]line ФД: 227215 [07:43:01]line ФПД: 70598065373893 [07:43:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T074303&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227215&fm=70598065373893&tin=02508201610067®Number=0000000000091685&sum=50000 [07:43:01]OFD Sender: Processing packet 227215 [packets to send 38, broken 37] [07:43:01]ProducePacketName [07:43:01]name=ofd_packets/00227215 [07:43:01]OFD Sender: To server: pG, [07:43:01]CommunicateWithHost lk.salyk.kg:30040 [07:43:01]ConnectInit lk.salyk.kg [07:43:01]written 0, free lines is 4095 [07:43:01]Connected sock=10 [07:43: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 33 39 0F 01 00 00 38 23 07 01 83 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 87 B4 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8F 77 03 00 35 04 06 00 40 35 64 9B C2 C5 92 EC AE 49 64 28 97 1D [07:43: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 33 39 4F 00 00 00 26 A4 47 00 8B 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8F 77 03 00 F4 03 04 00 86 5F 14 67 B6 04 01 00 00 07 8D 19 B8 4E B3 05 C6 [07:43:01]CommunicateWithHost err = 0 [07:43:01]CheckOFDResponse [07:43:01]1017 (14) - 77093643461234 [07:43:01]1041 (16) - 0000000000871839 [07:43:01]1040 (4) - 227215 [07:43:01]1012 (4) - 20.10.2024 01:40 [07:43:01]1206 (1) - 0 [07:43:01]OFD Sender: Remove packet 227215 [07:43:01]ProducePacketName [07:43:01]name=ofd_packets/00227215 [07:43:01]NVStorageDeleteData [07:43:01]Write to MH i2c: 01 00 00 24 29 4D [07:43:01]Write i2c OK [07:43:01]MH_I2C_Read... [07:43:01]Read from MH i2c: 01 [07:43:01]MH_I2C_Read... [07:43:01]Read from MH i2c: 01 07 00 [07:43:01]MH_I2C_Read... [07:43:01]Read from MH i2c: 01 07 00 24 29 00 00 00 00 00 10 0D 71 [07:43:01]RasterBufferAndPrint [07:43:01]line [07:43:01]line [07:43:01]line [07:43:01]line [07:43:01]line [07:43:01]written 0, free lines is 3359 [07:43:01]process_action close_receipt done [07:43:01]requested_data is exist [07:43:01]produce_requested_data [07:43:01]requested_item fm.sn is exist - process it [07:43:01]wFMCommunicate request_size=4 [07:43:01]MH_SAM_APDU [07:43:01]CAPDU: 80 11 00 00 [07:43:01]Write to MH i2c: E2 08 00 2B 29 80 11 00 00 00 00 00 00 CE [07:43:01]Write i2c OK [07:43:01]MH_I2C_Read... [07:43:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:43:01]Read from MH i2c: E2 [07:43:01]MH_I2C_Read... [07:43:01]Read from MH i2c: E2 17 00 [07:43:01]MH_I2C_Read... [07:43:01]Read from MH i2c: E2 17 00 2B 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 25 [07:43:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:43:01]wFMCommunicate OK [07:43:01]requested_item fd.num is exist - process it [07:43:01]SAM_PROTO_GetFieldsCounters [07:43:01]wFMCommunicate request_size=4 [07:43:01]MH_SAM_APDU [07:43:01]CAPDU: 80 13 00 00 [07:43:01]Write to MH i2c: E2 08 00 2C 29 80 13 00 00 00 00 00 00 D1 [07:43:01]Write i2c OK [07:43:01]MH_I2C_Read... [07:43:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:43:01]Read from MH i2c: E2 [07:43:01]MH_I2C_Read... [07:43:01]Read from MH i2c: E2 62 00 [07:43:01]MH_I2C_Read... [07:43:01]Read from MH i2c: E2 62 00 2C 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 8F 77 03 00 0E 04 04 00 15 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 D7 [07:43: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 8F 77 03 00 0E 04 04 00 15 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 [07:43:01]wFMCommunicate OK [07:43:01]SAM_PROTO_GetFieldsCounters done [07:43:01]requested_item shift.num is exist - process it [07:43:01]requested_item shift.opened is exist - process it [07:43:01]req_shift_opened [07:43:01]FM_GetShiftState [07:43:01]SAM_PROTO_GetShiftState [07:43:01]wFMCommunicate request_size=4 [07:43:01]MH_SAM_APDU [07:43:01]CAPDU: 80 13 01 00 [07:43:01]Write to MH i2c: E2 08 00 2D 29 80 13 01 00 00 00 00 00 D3 [07:43:01]Write i2c OK [07:43:01]MH_I2C_Read... [07:43:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:43:01]Read from MH i2c: E2 [07:43:01]MH_I2C_Read... [07:43:01]Read from MH i2c: E2 0E 00 [07:43:01]MH_I2C_Read... [07:43:01]Read from MH i2c: E2 0E 00 2D 29 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 ED [07:43:01]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [07:43:01]wFMCommunicate OK [07:43:01]SAM_PROTO_GetShiftState done [07:43:01]FM_GetShiftState done [07:43:01]req_shift_opened done [07:43:01]requested_item shift.open_date is exist - process it [07:43:01]req_shift_open_date [07:43:01]req_shift_open_date done [07:43:01]produce_requested_data done [07:43:01]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227215,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [07:43:01]process_action_free close_receipt [07:43:01]json_value_free [07:43:01]json_value_free done [07:43:01]process_json_proto returns [07:43:01]Send response to host [07:43:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227215,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [07:43:01]free response buf [07:43:01]execute_script done [07:43:01]execute_script returns [07:43:01]free content buf [07:43:01]Sock 8.Close socket [07:43:01]Sock 8.Thread stoped [07:43:02]OFD Sender: No OFD packet to send [07:43:07]OFD Sender: No OFD packet to send [07:43:12]OFD Sender: No OFD packet to send [07:43:17]OFD Sender: No OFD packet to send [07:43:22]OFD Sender: No OFD packet to send [07:43:27]OFD Sender: No OFD packet to send [07:43:32]OFD Sender: No OFD packet to send [07:43:36]accept exits with 9 [07:43:36]New connection [07:43:36]New thread 3066821988 created [07:43:36]Thread 3066965348 joined [07:43:36]Waiting for new connection... [07:43:36] Sock 9.Parse request [07:43:36]Sock 9.Check first char [07:43:36]Sock 9.First char is OK [07:43:36]request: POST /json_proto HTTP/1.0 [07:43:36]Method: POST [07:43:36]URL: /json_proto [07:43:36]Method is POST - this is cgi request [07:43:36]url: /json_proto [07:43:36]query_string will be loaded in cgi processing [07:43:36]execute_cgi json_proto POST (null) [07:43:36]execute_cgi path=json_proto method=POST [07:43:36]POST find Content-Length [07:43:36]Host: 172.17.44.195:8080 [07:43:36]Content-Length: 683 [07:43:36]Content-Type: application/json [07:43:36] [07:43:36]POST finish read [07:43:36]Found Content-Length = 683 [07:43:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962669", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:43:36]execute_script... [07:43:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962669", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:43:36]POST & json_proto [07:43:36]process_json_proto [07:43:36]json parsed OK: [07:43:36]protocol is kg_v1.0 [07:43:36]action value=close_receipt [07:43:36]process_action close_receipt [07:43:36]cmd_close_receipt [07:43:36]MH_GetDate [07:43:36]Write to MH i2c: F0 00 00 2E 29 46 [07:43:36]Write i2c OK [07:43:36]MH_I2C_Read... [07:43:36]Read from MH i2c: F0 [07:43:36]MH_I2C_Read... [07:43:36]Read from MH i2c: F0 09 00 [07:43:36]MH_I2C_Read... [07:43:36]Read from MH i2c: F0 09 00 2E 29 00 AB B4 14 67 82 C9 CF 66 A9 [07:43:36]GetLastDocTimeStamp 1729410183 [07:43:36]current date 1729410219 [07:43:36]FM_GetShiftState [07:43:36]SAM_PROTO_GetShiftState [07:43:36]wFMCommunicate request_size=4 [07:43:36]MH_SAM_APDU [07:43:36]CAPDU: 80 13 01 00 [07:43:36]Write to MH i2c: E2 08 00 2F 29 80 13 01 00 00 00 00 00 D5 [07:43:36]Write i2c OK [07:43:36]MH_I2C_Read... [07:43:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:43:36]Read from MH i2c: E2 [07:43:36]MH_I2C_Read... [07:43:36]Read from MH i2c: E2 0E 00 [07:43:36]MH_I2C_Read... [07:43:36]Read from MH i2c: E2 0E 00 2F 29 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 EF [07:43:36]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [07:43:36]wFMCommunicate OK [07:43:36]SAM_PROTO_GetShiftState done [07:43:36]FM_GetShiftState done [07:43:36]opened in 1729383750 [07:43:36]opened+sec_in_day 1729470150 [07:43:36]quantity*price = 100015 [07:43:36]sum+1 = 100017 [07:43:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 64 20.10.2024 07:43 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227216 ФПД: 52798707484029 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T074340&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227216&fm=52798707484029&tin=02508201610067®Number=0000000000091685&sum=100000 [07:43:37]StoreToDocumentArchive [07:43:37]shift 533 fd 227216 [07:43:37]save to /storage/0533/doc_00227216 [07:43:37]save last doc name /storage/0533/doc_00227216 to /storage/kkm_last_doc_name [07:43:37]save OK [07:43:37]Clear old archive folders... [07:43:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:43:37]tlvbuf is B6F5BA30 [07:43:37]SAM_PROTO_ClearQueue [07:43:37]wFMCommunicate request_size=4 [07:43:37]MH_SAM_APDU [07:43:37]CAPDU: 80 09 00 00 [07:43:37]Write to MH i2c: E2 08 00 3C 29 80 09 00 00 00 00 00 00 D7 [07:43:37]Write i2c OK [07:43:37]MH_I2C_Read... [07:43:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:43:37]Read from MH i2c: E2 [07:43:37]MH_I2C_Read... [07:43:37]Read from MH i2c: E2 03 00 [07:43:37]MH_I2C_Read... [07:43:37]Read from MH i2c: E2 03 00 3C 29 00 90 00 D9 [07:43:37]RAPDU: 90 00 [07:43:37]wFMCommunicate OK [07:43:37]SAM_PROTO_ClearQueue done [07:43:37]KKMCreateOFDPacket [07:43:37]OFDProtocolAddRootSTLVToBuf [07:43:37]FM_MakeSignedData [07:43:37]FM_MakeSignedData [07:43:37]SAM_PROTO_SignData [07:43:37]wFMCommunicate request_size=4 [07:43:37]MH_SAM_APDU [07:43:37]CAPDU: 80 0D 01 02 [07:43:37]Write to MH i2c: E2 08 00 3D 29 80 0D 01 02 00 00 00 00 DF [07:43:37]Write i2c OK [07:43:37]MH_I2C_Read... [07:43:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:43:37]Read from MH i2c: E2 [07:43:37]MH_I2C_Read... [07:43:37]Read from MH i2c: E2 03 00 [07:43:37]MH_I2C_Read... [07:43:37]Read from MH i2c: E2 03 00 3D 29 00 90 00 DA [07:43:37]RAPDU: 90 00 [07:43:37]wFMCommunicate OK [07:43:37]wFMCommunicate request_size=255 [07:43:37]MH_SAM_APDU [07:43:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 AC B4 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 90 77 03 00 35 04 06 00 30 [07:43:37]Write to MH i2c: E2 02 01 3E 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 AC B4 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 90 77 03 00 35 04 06 00 30 00 00 DC [07:43:37]Write i2c OK [07:43:37]MH_I2C_Read... [07:43:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:43:37]Read from MH i2c: E2 [07:43:37]MH_I2C_Read... [07:43:37]Read from MH i2c: E2 03 00 [07:43:37]MH_I2C_Read... [07:43:37]Read from MH i2c: E2 03 00 3E 29 00 90 00 DB [07:43:37]RAPDU: 90 00 [07:43:37]wFMCommunicate OK [07:43:37]wFMCommunicate request_size=10 [07:43:37]MH_SAM_APDU [07:43:37]CAPDU: 80 0D 02 02 05 05 28 34 45 7D [07:43:37]Write to MH i2c: E2 0D 00 3F 29 80 0D 02 02 05 00 05 28 34 45 7D 00 00 0F [07:43:37]Write i2c OK [07:43:37]MH_I2C_Read... [07:43:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:43:37]Read from MH i2c: E2 [07:43:37]MH_I2C_Read... [07:43:37]Read from MH i2c: E2 03 00 [07:43:37]MH_I2C_Read... [07:43:37]Read from MH i2c: E2 03 00 3F 29 00 90 00 DC [07:43:37]RAPDU: 90 00 [07:43:37]wFMCommunicate OK [07:43:37]wFMCommunicate request_size=4 [07:43:37]MH_SAM_APDU [07:43:37]CAPDU: 80 0D 03 02 [07:43:37]Write to MH i2c: E2 08 00 40 29 80 0D 03 02 00 00 00 00 E4 [07:43:37]Write i2c OK [07:43:37]MH_I2C_Read... [07:43:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:43:37]Read from MH i2c: E2 [07:43:37]MH_I2C_Read... [07:43:37]Read from MH i2c: E2 0B 00 [07:43:37]MH_I2C_Read... [07:43:37]Read from MH i2c: E2 0B 00 40 29 00 88 7B 06 68 4E 0E 45 C0 90 00 B7 [07:43:37]RAPDU: 88 7B 06 68 4E 0E 45 C0 90 00 [07:43:37]wFMCommunicate OK [07:43:37]SAM_PROTO_SignData done [07:43:37]FM_MakeSignedData done [07:43:37]CreateOFDProtocolMessage [07:43:37]wFMCommunicate request_size=4 [07:43:37]MH_SAM_APDU [07:43:37]CAPDU: 80 11 00 00 [07:43:37]Write to MH i2c: E2 08 00 41 29 80 11 00 00 00 00 00 00 E4 [07:43:37]Write i2c OK [07:43:37]MH_I2C_Read... [07:43:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:43:37]Read from MH i2c: E2 [07:43:37]MH_I2C_Read... [07:43:37]Read from MH i2c: E2 17 00 [07:43:37]MH_I2C_Read... [07:43:37]Read from MH i2c: E2 17 00 41 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 3B [07:43:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:43:37]wFMCommunicate OK [07:43:37]CreateOFDProtocolMessage done [07:43:37]OFDSenderStorePacket 227216 [07:43:37]StoreOFDPacket docnum=227216 [07:43:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 AD E3 07 01 08 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 AC B4 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 90 77 03 00 35 04 06 00 30 05 28 34 45 7D 88 7B 06 68 4E 0E 45 C0 [07:43:37]CheckFolder [07:43:37]dirname=/storage/ofd_packets [07:43:37]CheckFolder done [07:43:37]ProducePacketName [07:43:37]name=ofd_packets/00227216 [07:43:37]NVStorageSaveData ofd_packets/00227216 [07:43:37]File name is /storage/ofd_packets/00227216 [07:43:37]Write 301 bytes [07:43:37]NVStorageSaveData done [07:43:37]OFDSenderStorePacket done [07:43:37]KKMCreateOFDPacket done [07:43:37]NVStorageSaveData kkm_last_timestamp [07:43:37]File name is /storage/kkm_last_timestamp [07:43:37]Write 4 bytes [07:43:37]NVStorageSaveData done [07:43:37]ExternCall_PrintAddStr [07:43:37]wPrintStart [07:43:37]Write to MH i2c: 01 00 00 42 29 6B [07:43:37]Write i2c OK [07:43:37]MH_I2C_Read... [07:43:37]Read from MH i2c: 01 [07:43:37]MH_I2C_Read... [07:43:37]Read from MH i2c: 01 07 00 [07:43:37]MH_I2C_Read... [07:43:37]Read from MH i2c: 01 07 00 42 29 00 00 00 00 00 FF 0F 80 [07:43:37]RasterBufferAndPrint [07:43:37]line Счет N : (1)1962669 [07:43:37]line ИНН: 02508201610067 [07:43:37]line Контрольно-Кассовый Чек [07:43:37]line ПРОДАЖА [07:43:37]line ТРК (МРК, ГНК) : 63 [07:43:37]line Товар: 2710124130 [07:43:37]line Аи-92-К-5 [07:43:37]line 14.950 * 66.90 [07:43:37]line = 1000.16 [07:43:37]line НДС 12% НСП 1% [07:43:37]line > о реализуемом товаре [07:43:37]line ОКРУГЛЕНИЕ: -0.16 [07:43:37]line ИТОГО: 1000.00 [07:43:37]line Внесено: 1000.00 [07:43:37]line СДАЧА: 0.00 [07:43:37]line НСП 1% : 8.85 [07:43:37]line НДС 12% : 106.21 [07:43:37]line Наличными: 1000.00 [07:43:37]line Безнал.: 0.00 [07:43:37]line Место: АЗС № 133 "Партнер Нефть" [07:43:37]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [07:43:37]line СНО: Общий режим [07:43:37]line Чек 64 20.10.2024 07:43 [07:43:37]line Смена: 533 ФФД: 1.0 [07:43:37]line ЗНМ: 0300000091 [07:43:37]line РНМ: 0000000000091685 [07:43:37]line Версия ККМ: 001 [07:43:37]line ФМ: 0000000000871839 [07:43:37]line ФД: 227216 [07:43:37]line ФПД: 52798707484029 [07:43:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T074340&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227216&fm=52798707484029&tin=02508201610067®Number=0000000000091685&sum=100000 [07:43:38]written 0, free lines is 4095 [07:43:38]OFD Sender: Processing packet 227216 [packets to send 38, broken 37] [07:43:38]ProducePacketName [07:43:38]name=ofd_packets/00227216 [07:43:38]OFD Sender: To server: pG, [07:43:38]CommunicateWithHost lk.salyk.kg:30040 [07:43:38]ConnectInit lk.salyk.kg [07:43:38]Connected sock=10 [07:43: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 33 39 0F 01 00 00 AD E3 07 01 08 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 AC B4 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 90 77 03 00 35 04 06 00 30 05 28 34 45 7D 88 7B 06 68 4E 0E 45 C0 [07:43: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 33 39 4F 00 00 00 9D 20 47 00 0A 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 90 77 03 00 F4 03 04 00 AB 5F 14 67 B6 04 01 00 00 0F 56 40 4C 14 87 04 23 [07:43:38]CommunicateWithHost err = 0 [07:43:38]CheckOFDResponse [07:43:38]1017 (14) - 77093643461234 [07:43:38]1041 (16) - 0000000000871839 [07:43:38]1040 (4) - 227216 [07:43:38]1012 (4) - 20.10.2024 01:40 [07:43:38]1206 (1) - 0 [07:43:38]OFD Sender: Remove packet 227216 [07:43:38]ProducePacketName [07:43:38]name=ofd_packets/00227216 [07:43:38]NVStorageDeleteData [07:43:38]Write to MH i2c: 01 00 00 6C 29 95 [07:43:38]Write i2c OK [07:43:38]MH_I2C_Read... [07:43:38]Read from MH i2c: 01 [07:43:38]MH_I2C_Read... [07:43:38]Read from MH i2c: 01 07 00 [07:43:38]MH_I2C_Read... [07:43:38]Read from MH i2c: 01 07 00 6C 29 00 00 00 00 00 1C 0D C5 [07:43:38]RasterBufferAndPrint [07:43:38]line [07:43:38]line [07:43:38]line [07:43:38]line [07:43:38]line [07:43:38]written 0, free lines is 3365 [07:43:38]process_action close_receipt done [07:43:38]requested_data is exist [07:43:38]produce_requested_data [07:43:38]requested_item fm.sn is exist - process it [07:43:38]wFMCommunicate request_size=4 [07:43:38]MH_SAM_APDU [07:43:38]CAPDU: 80 11 00 00 [07:43:38]Write to MH i2c: E2 08 00 73 29 80 11 00 00 00 00 00 00 16 [07:43:38]Write i2c OK [07:43:38]MH_I2C_Read... [07:43:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:43:38]Read from MH i2c: E2 [07:43:38]MH_I2C_Read... [07:43:38]Read from MH i2c: E2 17 00 [07:43:38]MH_I2C_Read... [07:43:38]Read from MH i2c: E2 17 00 73 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 6D [07:43:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:43:38]wFMCommunicate OK [07:43:38]requested_item fd.num is exist - process it [07:43:38]SAM_PROTO_GetFieldsCounters [07:43:38]wFMCommunicate request_size=4 [07:43:38]MH_SAM_APDU [07:43:38]CAPDU: 80 13 00 00 [07:43:38]Write to MH i2c: E2 08 00 74 29 80 13 00 00 00 00 00 00 19 [07:43:38]Write i2c OK [07:43:38]MH_I2C_Read... [07:43:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:43:39]Read from MH i2c: E2 [07:43:39]MH_I2C_Read... [07:43:39]Read from MH i2c: E2 62 00 [07:43:39]MH_I2C_Read... [07:43:39]Read from MH i2c: E2 62 00 74 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 90 77 03 00 0E 04 04 00 15 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 23 [07:43:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 90 77 03 00 0E 04 04 00 15 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 [07:43:39]wFMCommunicate OK [07:43:39]SAM_PROTO_GetFieldsCounters done [07:43:39]requested_item shift.num is exist - process it [07:43:39]requested_item shift.opened is exist - process it [07:43:39]req_shift_opened [07:43:39]FM_GetShiftState [07:43:39]SAM_PROTO_GetShiftState [07:43:39]wFMCommunicate request_size=4 [07:43:39]MH_SAM_APDU [07:43:39]CAPDU: 80 13 01 00 [07:43:39]Write to MH i2c: E2 08 00 75 29 80 13 01 00 00 00 00 00 1B [07:43:39]Write i2c OK [07:43:39]MH_I2C_Read... [07:43:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:43:39]Read from MH i2c: E2 [07:43:39]MH_I2C_Read... [07:43:39]Read from MH i2c: E2 0E 00 [07:43:39]MH_I2C_Read... [07:43:39]Read from MH i2c: E2 0E 00 75 29 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 35 [07:43:39]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [07:43:39]wFMCommunicate OK [07:43:39]SAM_PROTO_GetShiftState done [07:43:39]FM_GetShiftState done [07:43:39]req_shift_opened done [07:43:39]requested_item shift.open_date is exist - process it [07:43:39]req_shift_open_date [07:43:39]req_shift_open_date done [07:43:39]produce_requested_data done [07:43:39]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227216,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [07:43:39]process_action_free close_receipt [07:43:39]json_value_free [07:43:39]json_value_free done [07:43:39]process_json_proto returns [07:43:39]Send response to host [07:43:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227216,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [07:43:39]free response buf [07:43:39]execute_script done [07:43:39]execute_script returns [07:43:39]free content buf [07:43:39]Sock 9.Close socket [07:43:39]Sock 9.Thread stoped [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:39]OFD Sender: No OFD packet to send [07:44:44]OFD Sender: No OFD packet to send [07:44:49]OFD Sender: No OFD packet to send [07:44:54]OFD Sender: No OFD packet to send [07:44:59]OFD Sender: No OFD packet to send [07:45:04]OFD Sender: No OFD packet to send [07:45:09]OFD Sender: No OFD packet to send [07:45:14]OFD Sender: No OFD packet to send [07:45:19]OFD Sender: No OFD packet to send [07:45:24]OFD Sender: No OFD packet to send [07:45:29]OFD Sender: No OFD packet to send [07:45:34]OFD Sender: No OFD packet to send [07:45:39]OFD Sender: No OFD packet to send [07:45:44]OFD Sender: No OFD packet to send [07:45:49]OFD Sender: No OFD packet to send [07:45:54]OFD Sender: No OFD packet to send [07:45:59]OFD Sender: No OFD packet to send [07:46:04]OFD Sender: No OFD packet to send [07:46:09]OFD Sender: No OFD packet to send [07:46:14]OFD Sender: No OFD packet to send [07:46:17]accept exits with 8 [07:46:17]New connection [07:46:17]New thread 3066965348 created [07:46:17]Thread 3066821988 joined [07:46:17]Waiting for new connection... [07:46:17] Sock 8.Parse request [07:46:17]Sock 8.Check first char [07:46:17]Sock 8.First char is OK [07:46:17]request: POST /json_proto HTTP/1.0 [07:46:17]Method: POST [07:46:17]URL: /json_proto [07:46:17]Method is POST - this is cgi request [07:46:17]url: /json_proto [07:46:17]query_string will be loaded in cgi processing [07:46:17]execute_cgi json_proto POST (null) [07:46:17]execute_cgi path=json_proto method=POST [07:46:17]POST find Content-Length [07:46:17]Host: 172.17.44.195:8080 [07:46:17]Content-Length: 683 [07:46:17]Content-Type: application/json [07:46:17] [07:46:17]POST finish read [07:46:17]Found Content-Length = 683 [07:46:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962671", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:46:17]execute_script... [07:46: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)1962671", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:46:17]POST & json_proto [07:46:17]process_json_proto [07:46:17]json parsed OK: [07:46:17]protocol is kg_v1.0 [07:46:17]action value=close_receipt [07:46:17]process_action close_receipt [07:46:17]cmd_close_receipt [07:46:17]MH_GetDate [07:46:17]Write to MH i2c: F0 00 00 76 29 8E [07:46:17]Write i2c OK [07:46:17]MH_I2C_Read... [07:46:17]Read from MH i2c: F0 [07:46:17]MH_I2C_Read... [07:46:17]Read from MH i2c: F0 09 00 [07:46:17]MH_I2C_Read... [07:46:17]Read from MH i2c: F0 09 00 76 29 00 4D B5 14 67 82 C9 CF 66 94 [07:46:17]GetLastDocTimeStamp 1729410220 [07:46:17]current date 1729410381 [07:46:17]FM_GetShiftState [07:46:17]SAM_PROTO_GetShiftState [07:46:17]wFMCommunicate request_size=4 [07:46:17]MH_SAM_APDU [07:46:17]CAPDU: 80 13 01 00 [07:46:17]Write to MH i2c: E2 08 00 77 29 80 13 01 00 00 00 00 00 1D [07:46:17]Write i2c OK [07:46:17]MH_I2C_Read... [07:46:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:46:17]Read from MH i2c: E2 [07:46:17]MH_I2C_Read... [07:46:17]Read from MH i2c: E2 0E 00 [07:46:17]MH_I2C_Read... [07:46:17]Read from MH i2c: E2 0E 00 77 29 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 37 [07:46:17]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [07:46:17]wFMCommunicate OK [07:46:17]SAM_PROTO_GetShiftState done [07:46:17]FM_GetShiftState done [07:46:17]opened in 1729383750 [07:46:17]opened+sec_in_day 1729470150 [07:46:17]quantity*price = 100015 [07:46:17]sum+1 = 100017 [07:46:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 65 20.10.2024 07:46 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227217 ФПД: 57916573736066 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T074621&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227217&fm=57916573736066&tin=02508201610067®Number=0000000000091685&sum=100000 [07:46:18]StoreToDocumentArchive [07:46:18]shift 533 fd 227217 [07:46:18]save to /storage/0533/doc_00227217 [07:46:18]save last doc name /storage/0533/doc_00227217 to /storage/kkm_last_doc_name [07:46:18]save OK [07:46:18]Clear old archive folders... [07:46:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:46:18]tlvbuf is 005D8AC0 [07:46:18]SAM_PROTO_ClearQueue [07:46:18]wFMCommunicate request_size=4 [07:46:18]MH_SAM_APDU [07:46:18]CAPDU: 80 09 00 00 [07:46:18]Write to MH i2c: E2 08 00 84 29 80 09 00 00 00 00 00 00 1F [07:46:18]Write i2c OK [07:46:18]MH_I2C_Read... [07:46:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:46:18]Read from MH i2c: E2 [07:46:18]MH_I2C_Read... [07:46:18]Read from MH i2c: E2 03 00 [07:46:18]MH_I2C_Read... [07:46:18]Read from MH i2c: E2 03 00 84 29 00 90 00 21 [07:46:18]RAPDU: 90 00 [07:46:18]wFMCommunicate OK [07:46:18]SAM_PROTO_ClearQueue done [07:46:18]KKMCreateOFDPacket [07:46:18]OFDProtocolAddRootSTLVToBuf [07:46:18]FM_MakeSignedData [07:46:18]FM_MakeSignedData [07:46:18]SAM_PROTO_SignData [07:46:18]wFMCommunicate request_size=4 [07:46:18]MH_SAM_APDU [07:46:18]CAPDU: 80 0D 01 02 [07:46:18]Write to MH i2c: E2 08 00 85 29 80 0D 01 02 00 00 00 00 27 [07:46:18]Write i2c OK [07:46:18]MH_I2C_Read... [07:46:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:46:18]Read from MH i2c: E2 [07:46:18]MH_I2C_Read... [07:46:18]Read from MH i2c: E2 03 00 [07:46:18]MH_I2C_Read... [07:46:18]Read from MH i2c: E2 03 00 85 29 00 90 00 22 [07:46:18]RAPDU: 90 00 [07:46:18]wFMCommunicate OK [07:46:18]wFMCommunicate request_size=255 [07:46:18]MH_SAM_APDU [07:46:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 4D B5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 91 77 03 00 35 04 06 00 34 [07:46:18]Write to MH i2c: E2 02 01 86 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 4D B5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 91 77 03 00 35 04 06 00 34 00 00 CC [07:46:18]Write i2c OK [07:46:18]MH_I2C_Read... [07:46:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:46:19]Read from MH i2c: E2 [07:46:19]MH_I2C_Read... [07:46:19]Read from MH i2c: E2 03 00 [07:46:19]MH_I2C_Read... [07:46:19]Read from MH i2c: E2 03 00 86 29 00 90 00 23 [07:46:19]RAPDU: 90 00 [07:46:19]wFMCommunicate OK [07:46:19]wFMCommunicate request_size=10 [07:46:19]MH_SAM_APDU [07:46:19]CAPDU: 80 0D 02 02 05 AC C0 CD DC 82 [07:46:19]Write to MH i2c: E2 0D 00 87 29 80 0D 02 02 05 00 AC C0 CD DC 82 00 00 CB [07:46:19]Write i2c OK [07:46:19]MH_I2C_Read... [07:46:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:46:19]Read from MH i2c: E2 [07:46:19]MH_I2C_Read... [07:46:19]Read from MH i2c: E2 03 00 [07:46:19]MH_I2C_Read... [07:46:19]Read from MH i2c: E2 03 00 87 29 00 90 00 24 [07:46:19]RAPDU: 90 00 [07:46:19]wFMCommunicate OK [07:46:19]wFMCommunicate request_size=4 [07:46:19]MH_SAM_APDU [07:46:19]CAPDU: 80 0D 03 02 [07:46:19]Write to MH i2c: E2 08 00 88 29 80 0D 03 02 00 00 00 00 2C [07:46:19]Write i2c OK [07:46:19]MH_I2C_Read... [07:46:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:46:19]Read from MH i2c: E2 [07:46:19]MH_I2C_Read... [07:46:19]Read from MH i2c: E2 0B 00 [07:46:19]MH_I2C_Read... [07:46:19]Read from MH i2c: E2 0B 00 88 29 00 C0 4C D0 B2 5F 3C 5C 94 90 00 46 [07:46:19]RAPDU: C0 4C D0 B2 5F 3C 5C 94 90 00 [07:46:19]wFMCommunicate OK [07:46:19]SAM_PROTO_SignData done [07:46:19]FM_MakeSignedData done [07:46:19]CreateOFDProtocolMessage [07:46:19]wFMCommunicate request_size=4 [07:46:19]MH_SAM_APDU [07:46:19]CAPDU: 80 11 00 00 [07:46:19]Write to MH i2c: E2 08 00 89 29 80 11 00 00 00 00 00 00 2C [07:46:19]Write i2c OK [07:46:19]MH_I2C_Read... [07:46:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:46:19]Read from MH i2c: E2 [07:46:19]MH_I2C_Read... [07:46:19]Read from MH i2c: E2 17 00 [07:46:19]MH_I2C_Read... [07:46:19]Read from MH i2c: E2 17 00 89 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 83 [07:46:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:46:19]wFMCommunicate OK [07:46:19]CreateOFDProtocolMessage done [07:46:19]OFDSenderStorePacket 227217 [07:46:19]StoreOFDPacket docnum=227217 [07:46:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 A3 41 07 01 53 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 4D B5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 91 77 03 00 35 04 06 00 34 AC C0 CD DC 82 C0 4C D0 B2 5F 3C 5C 94 [07:46:19]CheckFolder [07:46:19]dirname=/storage/ofd_packets [07:46:19]CheckFolder done [07:46:19]ProducePacketName [07:46:19]name=ofd_packets/00227217 [07:46:19]NVStorageSaveData ofd_packets/00227217 [07:46:19]File name is /storage/ofd_packets/00227217 [07:46:19]Write 301 bytes [07:46:19]NVStorageSaveData done [07:46:19]OFDSenderStorePacket done [07:46:19]KKMCreateOFDPacket done [07:46:19]NVStorageSaveData kkm_last_timestamp [07:46:19]File name is /storage/kkm_last_timestamp [07:46:19]Write 4 bytes [07:46:19]NVStorageSaveData done [07:46:19]ExternCall_PrintAddStr [07:46:19]wPrintStart [07:46:19]Write to MH i2c: 01 00 00 8A 29 B3 [07:46:19]Write i2c OK [07:46:19]MH_I2C_Read... [07:46:19]Read from MH i2c: 01 [07:46:19]MH_I2C_Read... [07:46:19]Read from MH i2c: 01 07 00 [07:46:19]MH_I2C_Read... [07:46:19]Read from MH i2c: 01 07 00 8A 29 00 00 00 00 00 FF 0F C8 [07:46:19]RasterBufferAndPrint [07:46:19]line Счет N : (1)1962671 [07:46:19]line ИНН: 02508201610067 [07:46:19]line Контрольно-Кассовый Чек [07:46:19]line ПРОДАЖА [07:46:19]line ТРК (МРК, ГНК) : 63 [07:46:19]line Товар: 2710124130 [07:46:19]line Аи-92-К-5 [07:46:19]line 14.950 * 66.90 [07:46:19]line = 1000.16 [07:46:19]line НДС 12% НСП 1% [07:46:19]line > о реализуемом товаре [07:46:19]line ОКРУГЛЕНИЕ: -0.16 [07:46:19]line ИТОГО: 1000.00 [07:46:19]line Внесено: 1000.00 [07:46:19]line СДАЧА: 0.00 [07:46:19]line НСП 1% : 8.85 [07:46:19]line НДС 12% : 106.21 [07:46:19]line Наличными: 1000.00 [07:46:19]line Безнал.: 0.00 [07:46:19]line Место: АЗС № 133 "Партнер Нефть" [07:46:19]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [07:46:19]line СНО: Общий режим [07:46:19]line Чек 65 20.10.2024 07:46 [07:46:19]line Смена: 533 ФФД: 1.0 [07:46:19]line ЗНМ: 0300000091 [07:46:19]line РНМ: 0000000000091685 [07:46:19]line Версия ККМ: 001 [07:46:19]line ФМ: 0000000000871839 [07:46:19]line ФД: 227217 [07:46:19]line ФПД: 57916573736066 [07:46:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T074621&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227217&fm=57916573736066&tin=02508201610067®Number=0000000000091685&sum=100000 [07:46:19]written 0, free lines is 4095 [07:46:19]OFD Sender: Processing packet 227217 [packets to send 38, broken 37] [07:46:19]ProducePacketName [07:46:19]name=ofd_packets/00227217 [07:46:19]OFD Sender: To server: pG, [07:46:19]CommunicateWithHost lk.salyk.kg:30040 [07:46:19]ConnectInit lk.salyk.kg [07:46:19]Connected sock=10 [07:46: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 33 39 0F 01 00 00 A3 41 07 01 53 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 4D B5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 91 77 03 00 35 04 06 00 34 AC C0 CD DC 82 C0 4C D0 B2 5F 3C 5C 94 [07:46:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 2E 18 47 00 E1 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 33 39 10 04 04 00 91 77 03 00 F4 03 04 00 4C 60 14 67 B6 04 01 00 00 D7 D6 57 76 ED CF BD 5F [07:46:19]CommunicateWithHost err = 0 [07:46:19]CheckOFDResponse [07:46:19]1017 (14) - 77093643461234 [07:46:19]1041 (16) - 0000000000871839 [07:46:19]1040 (4) - 227217 [07:46:19]1012 (4) - 20.10.2024 01:43 [07:46:19]1206 (1) - 0 [07:46:19]OFD Sender: Remove packet 227217 [07:46:19]ProducePacketName [07:46:19]name=ofd_packets/00227217 [07:46:19]NVStorageDeleteData [07:46:20]Write to MH i2c: 01 00 00 B4 29 DD [07:46:20]Write i2c OK [07:46:20]MH_I2C_Read... [07:46:20]Read from MH i2c: 01 [07:46:20]MH_I2C_Read... [07:46:20]Read from MH i2c: 01 07 00 [07:46:20]MH_I2C_Read... [07:46:20]Read from MH i2c: 01 07 00 B4 29 00 00 00 00 00 08 0D F9 [07:46:20]RasterBufferAndPrint [07:46:20]line [07:46:20]line [07:46:20]line [07:46:20]line [07:46:20]line [07:46:20]written 0, free lines is 3343 [07:46:20]process_action close_receipt done [07:46:20]requested_data is exist [07:46:20]produce_requested_data [07:46:20]requested_item fm.sn is exist - process it [07:46:20]wFMCommunicate request_size=4 [07:46:20]MH_SAM_APDU [07:46:20]CAPDU: 80 11 00 00 [07:46:20]Write to MH i2c: E2 08 00 BB 29 80 11 00 00 00 00 00 00 5E [07:46:20]Write i2c OK [07:46:20]MH_I2C_Read... [07:46:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:46:20]Read from MH i2c: E2 [07:46:20]MH_I2C_Read... [07:46:20]Read from MH i2c: E2 17 00 [07:46:20]MH_I2C_Read... [07:46:20]Read from MH i2c: E2 17 00 BB 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B5 [07:46:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:46:20]wFMCommunicate OK [07:46:20]requested_item fd.num is exist - process it [07:46:20]SAM_PROTO_GetFieldsCounters [07:46:20]wFMCommunicate request_size=4 [07:46:20]MH_SAM_APDU [07:46:20]CAPDU: 80 13 00 00 [07:46:20]Write to MH i2c: E2 08 00 BC 29 80 13 00 00 00 00 00 00 61 [07:46:20]Write i2c OK [07:46:20]MH_I2C_Read... [07:46:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:46:20]Read from MH i2c: E2 [07:46:20]MH_I2C_Read... [07:46:20]Read from MH i2c: E2 62 00 [07:46:20]MH_I2C_Read... [07:46:20]Read from MH i2c: E2 62 00 BC 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 91 77 03 00 0E 04 04 00 15 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 6F [07:46:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 91 77 03 00 0E 04 04 00 15 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 [07:46:20]wFMCommunicate OK [07:46:20]SAM_PROTO_GetFieldsCounters done [07:46:20]requested_item shift.num is exist - process it [07:46:20]requested_item shift.opened is exist - process it [07:46:20]req_shift_opened [07:46:20]FM_GetShiftState [07:46:20]SAM_PROTO_GetShiftState [07:46:20]wFMCommunicate request_size=4 [07:46:20]MH_SAM_APDU [07:46:20]CAPDU: 80 13 01 00 [07:46:20]Write to MH i2c: E2 08 00 BD 29 80 13 01 00 00 00 00 00 63 [07:46:20]Write i2c OK [07:46:20]MH_I2C_Read... [07:46:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:46:20]Read from MH i2c: E2 [07:46:20]MH_I2C_Read... [07:46:20]Read from MH i2c: E2 0E 00 [07:46:20]MH_I2C_Read... [07:46:20]Read from MH i2c: E2 0E 00 BD 29 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 7D [07:46:20]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [07:46:20]wFMCommunicate OK [07:46:20]SAM_PROTO_GetShiftState done [07:46:20]FM_GetShiftState done [07:46:20]req_shift_opened done [07:46:20]requested_item shift.open_date is exist - process it [07:46:20]req_shift_open_date [07:46:20]req_shift_open_date done [07:46:20]produce_requested_data done [07:46:20]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227217,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [07:46:20]process_action_free close_receipt [07:46:20]json_value_free [07:46:20]json_value_free done [07:46:20]process_json_proto returns [07:46:20]Send response to host [07:46:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227217,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [07:46:20]free response buf [07:46:20]execute_script done [07:46:20]execute_script returns [07:46:20]free content buf [07:46:20]Sock 8.Close socket [07:46:20]Sock 8.Thread stoped [07:46:20]OFD Sender: No OFD packet to send [07:46:24]accept exits with 9 [07:46:24]New connection [07:46:24]New thread 3066821988 created [07:46:24]Thread 3066965348 joined [07:46:24]Waiting for new connection... [07:46:24] Sock 9.Parse request [07:46:24]Sock 9.Check first char [07:46:24]Sock 9.First char is OK [07:46:24]request: POST /json_proto HTTP/1.0 [07:46:24]Method: POST [07:46:24]URL: /json_proto [07:46:24]Method is POST - this is cgi request [07:46:24]url: /json_proto [07:46:24]query_string will be loaded in cgi processing [07:46:24]execute_cgi json_proto POST (null) [07:46:24]execute_cgi path=json_proto method=POST [07:46:24]POST find Content-Length [07:46:24]Host: 172.17.44.195:8080 [07:46:24]Content-Length: 664 [07:46:24]Content-Type: application/json [07:46:24] [07:46:24]POST finish read [07:46:24]Found Content-Length = 664 [07:46:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962670", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 29.240, "sum" : 2000.02, "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:46:24]execute_script... [07: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)1962670", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 29.240, "sum" : 2000.02, "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:46:24]POST & json_proto [07:46:24]process_json_proto [07:46:24]json parsed OK: [07:46:24]protocol is kg_v1.0 [07:46:24]action value=close_receipt [07:46:24]process_action close_receipt [07:46:24]cmd_close_receipt [07:46:24]MH_GetDate [07:46:24]Write to MH i2c: F0 00 00 BE 29 D6 [07:46:24]Write i2c OK [07:46:24]MH_I2C_Read... [07:46:24]Read from MH i2c: F0 [07:46:24]MH_I2C_Read... [07:46:24]Read from MH i2c: F0 09 00 [07:46:24]MH_I2C_Read... [07:46:24]Read from MH i2c: F0 09 00 BE 29 00 54 B5 14 67 82 C9 CF 66 E3 [07:46:24]GetLastDocTimeStamp 1729410381 [07:46:24]current date 1729410388 [07:46:24]FM_GetShiftState [07:46:24]SAM_PROTO_GetShiftState [07:46:24]wFMCommunicate request_size=4 [07:46:24]MH_SAM_APDU [07:46:24]CAPDU: 80 13 01 00 [07:46:24]Write to MH i2c: E2 08 00 BF 29 80 13 01 00 00 00 00 00 65 [07:46:24]Write i2c OK [07:46:24]MH_I2C_Read... [07:46:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:46:24]Read from MH i2c: E2 [07:46:24]MH_I2C_Read... [07:46:24]Read from MH i2c: E2 0E 00 [07:46:24]MH_I2C_Read... [07:46:24]Read from MH i2c: E2 0E 00 BF 29 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 7F [07:46:24]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [07:46:24]wFMCommunicate OK [07:46:24]SAM_PROTO_GetShiftState done [07:46:24]FM_GetShiftState done [07:46:24]opened in 1729383750 [07:46:24]opened+sec_in_day 1729470150 [07:46:24]quantity*price = 200001 [07:46:24]sum+1 = 200003 [07:46:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.39 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 66 20.10.2024 07:46 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227218 ФПД: 165388887453039 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T074628&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227218&fm=165388887453039&tin=02508201610067®Number=0000000000091685&sum=200000 [07:46:26]StoreToDocumentArchive [07:46:26]shift 533 fd 227218 [07:46:26]save to /storage/0533/doc_00227218 [07:46:26]save last doc name /storage/0533/doc_00227218 to /storage/kkm_last_doc_name [07:46:26]save OK [07:46:26]Clear old archive folders... [07:46:26]ProcessDocumentItem done err = 0, tmpTLVsize=244 [07:46:26]tlvbuf is 005198C0 [07:46:26]SAM_PROTO_ClearQueue [07:46:26]wFMCommunicate request_size=4 [07:46:26]MH_SAM_APDU [07:46:26]CAPDU: 80 09 00 00 [07:46:26]Write to MH i2c: E2 08 00 CC 29 80 09 00 00 00 00 00 00 67 [07:46:26]Write i2c OK [07:46:26]MH_I2C_Read... [07:46:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:46:26]Read from MH i2c: E2 [07:46:26]MH_I2C_Read... [07:46:26]Read from MH i2c: E2 03 00 [07:46:26]MH_I2C_Read... [07:46:26]Read from MH i2c: E2 03 00 CC 29 00 90 00 69 [07:46:26]RAPDU: 90 00 [07:46:26]wFMCommunicate OK [07:46:26]SAM_PROTO_ClearQueue done [07:46:26]KKMCreateOFDPacket [07:46:26]OFDProtocolAddRootSTLVToBuf [07:46:26]FM_MakeSignedData [07:46:26]FM_MakeSignedData [07:46:26]SAM_PROTO_SignData [07:46:26]wFMCommunicate request_size=4 [07:46:26]MH_SAM_APDU [07:46:26]CAPDU: 80 0D 01 02 [07:46:26]Write to MH i2c: E2 08 00 CD 29 80 0D 01 02 00 00 00 00 6F [07:46:26]Write i2c OK [07:46:26]MH_I2C_Read... [07:46:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:46:26]Read from MH i2c: E2 [07:46:26]MH_I2C_Read... [07:46:26]Read from MH i2c: E2 03 00 [07:46:26]MH_I2C_Read... [07:46:26]Read from MH i2c: E2 03 00 CD 29 00 90 00 6A [07:46:26]RAPDU: 90 00 [07:46:26]wFMCommunicate OK [07:46:26]wFMCommunicate request_size=253 [07:46:26]MH_SAM_APDU [07:46:26]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 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 F7 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 42 00 00 00 F4 03 04 00 54 B5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 92 77 03 00 35 04 06 00 96 6B 99 E2 ED 6F [07:46:26]Write to MH i2c: E2 00 01 CE 29 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 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 F7 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 42 00 00 00 F4 03 04 00 54 B5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 92 77 03 00 35 04 06 00 96 6B 99 E2 ED 6F 00 00 97 [07:46:26]Write i2c OK [07:46:26]MH_I2C_Read... [07:46:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:46:26]Read from MH i2c: E2 [07:46:26]MH_I2C_Read... [07:46:26]Read from MH i2c: E2 03 00 [07:46:26]MH_I2C_Read... [07:46:26]Read from MH i2c: E2 03 00 CE 29 00 90 00 6B [07:46:26]RAPDU: 90 00 [07:46:26]wFMCommunicate OK [07:46:26]wFMCommunicate request_size=4 [07:46:26]MH_SAM_APDU [07:46:26]CAPDU: 80 0D 03 02 [07:46:26]Write to MH i2c: E2 08 00 CF 29 80 0D 03 02 00 00 00 00 73 [07:46:26]Write i2c OK [07:46:26]MH_I2C_Read... [07:46:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:46:26]Read from MH i2c: E2 [07:46:26]MH_I2C_Read... [07:46:26]Read from MH i2c: E2 0B 00 [07:46:26]MH_I2C_Read... [07:46:26]Read from MH i2c: E2 0B 00 CF 29 00 55 48 D2 44 4C AD 11 FA 90 00 2B [07:46:26]RAPDU: 55 48 D2 44 4C AD 11 FA 90 00 [07:46:26]wFMCommunicate OK [07:46:26]SAM_PROTO_SignData done [07:46:26]FM_MakeSignedData done [07:46:26]CreateOFDProtocolMessage [07:46:26]wFMCommunicate request_size=4 [07:46:26]MH_SAM_APDU [07:46:26]CAPDU: 80 11 00 00 [07:46:26]Write to MH i2c: E2 08 00 D0 29 80 11 00 00 00 00 00 00 73 [07:46:26]Write i2c OK [07:46:26]MH_I2C_Read... [07:46:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:46:26]Read from MH i2c: E2 [07:46:26]MH_I2C_Read... [07:46:26]Read from MH i2c: E2 17 00 [07:46:26]MH_I2C_Read... [07:46:26]Read from MH i2c: E2 17 00 D0 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 CA [07:46:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:46:26]wFMCommunicate OK [07:46:26]CreateOFDProtocolMessage done [07:46:26]OFDSenderStorePacket 227218 [07:46:26]StoreOFDPacket docnum=227218 [07:46:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 B0 EE 00 01 E2 99 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 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 F7 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 42 00 00 00 F4 03 04 00 54 B5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 92 77 03 00 35 04 06 00 96 6B 99 E2 ED 6F 55 48 D2 44 4C AD 11 FA [07:46:26]CheckFolder [07:46:26]dirname=/storage/ofd_packets [07:46:26]CheckFolder done [07:46:26]ProducePacketName [07:46:26]name=ofd_packets/00227218 [07:46:26]NVStorageSaveData ofd_packets/00227218 [07:46:26]File name is /storage/ofd_packets/00227218 [07:46:26]Write 294 bytes [07:46:26]NVStorageSaveData done [07:46:26]OFDSenderStorePacket done [07:46:26]KKMCreateOFDPacket done [07:46:26]NVStorageSaveData kkm_last_timestamp [07:46:26]File name is /storage/kkm_last_timestamp [07:46:26]Write 4 bytes [07:46:26]NVStorageSaveData done [07:46:26]ExternCall_PrintAddStr [07:46:26]wPrintStart [07:46:26]Write to MH i2c: 01 00 00 D1 29 FA [07:46:26]Write i2c OK [07:46:26]MH_I2C_Read... [07:46:26]Read from MH i2c: 01 [07:46:26]MH_I2C_Read... [07:46:26]Read from MH i2c: 01 07 00 [07:46:26]MH_I2C_Read... [07:46:26]Read from MH i2c: 01 07 00 D1 29 00 00 00 00 00 FF 0F 0F [07:46:26]RasterBufferAndPrint [07:46:26]line Счет N : (1)1962670 [07:46:26]line ИНН: 02508201610067 [07:46:26]line Контрольно-Кассовый Чек [07:46:26]line ПРОДАЖА [07:46:26]line ТРК (МРК, ГНК) : 42 [07:46:26]line Товар: 2710124130 [07:46:26]line SU-92 [07:46:26]line 29.240 * 68.40 [07:46:26]line = 2000.02 [07:46:26]line НДС 12% НСП 1% [07:46:26]line > о реализуемом товаре [07:46:26]line ОКРУГЛЕНИЕ: -0.02 [07:46:26]line ИТОГО: 2000.00 [07:46:26]line Внесено: 2000.00 [07:46:26]line СДАЧА: 0.00 [07:46:26]line НСП 1% : 17.70 [07:46:26]line НДС 12% : 212.39 [07:46:26]line Наличными: 2000.00 [07:46:26]line Безнал.: 0.00 [07:46:26]line Место: АЗС № 133 "Партнер Нефть" [07:46:26]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [07:46:26]line СНО: Общий режим [07:46:26]line Чек 66 20.10.2024 07:46 [07:46:26]line Смена: 533 ФФД: 1.0 [07:46:26]line ЗНМ: 0300000091 [07:46:26]line РНМ: 0000000000091685 [07:46:26]line Версия ККМ: 001 [07:46:26]line ФМ: 0000000000871839 [07:46:26]line ФД: 227218 [07:46:26]line ФПД: 165388887453039 [07:46:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T074628&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227218&fm=165388887453039&tin=02508201610067®Number=0000000000091685&sum=200000 [07:46:26]written 0, free lines is 4095 [07:46:26]OFD Sender: Processing packet 227218 [packets to send 38, broken 37] [07:46:26]ProducePacketName [07:46:26]name=ofd_packets/00227218 [07:46:26]OFD Sender: To server: pG, [07:46:26]CommunicateWithHost lk.salyk.kg:30040 [07:46:26]ConnectInit lk.salyk.kg [07:46:26]Connected sock=10 [07: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 33 39 08 01 00 00 B0 EE 00 01 E2 99 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 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 F7 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 42 00 00 00 F4 03 04 00 54 B5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 92 77 03 00 35 04 06 00 96 6B 99 E2 ED 6F 55 48 D2 44 4C AD 11 FA [07: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 33 39 4F 00 00 00 E7 EE 47 00 F0 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 92 77 03 00 F4 03 04 00 53 60 14 67 B6 04 01 00 00 2C F0 44 AE 5A 7E 22 51 [07:46:26]CommunicateWithHost err = 0 [07:46:26]CheckOFDResponse [07:46:26]1017 (14) - 77093643461234 [07:46:26]1041 (16) - 0000000000871839 [07:46:26]1040 (4) - 227218 [07:46:26]1012 (4) - 20.10.2024 01:43 [07:46:26]1206 (1) - 0 [07:46:26]OFD Sender: Remove packet 227218 [07:46:26]ProducePacketName [07:46:26]name=ofd_packets/00227218 [07:46:26]NVStorageDeleteData [07:46:27]Write to MH i2c: 01 00 00 FB 29 24 [07:46:27]Write i2c OK [07:46:27]MH_I2C_Read... [07:46:27]Read from MH i2c: 01 [07:46:27]MH_I2C_Read... [07:46:27]Read from MH i2c: 01 07 00 [07:46:27]MH_I2C_Read... [07:46:27]Read from MH i2c: 01 07 00 FB 29 00 00 00 00 00 14 0D 4C [07:46:27]RasterBufferAndPrint [07:46:27]line [07:46:27]line [07:46:27]line [07:46:27]line [07:46:27]line [07:46:27]written 0, free lines is 3360 [07:46:27]process_action close_receipt done [07:46:27]requested_data is exist [07:46:27]produce_requested_data [07:46:27]requested_item fm.sn is exist - process it [07:46:27]wFMCommunicate request_size=4 [07:46:27]MH_SAM_APDU [07:46:27]CAPDU: 80 11 00 00 [07:46:27]Write to MH i2c: E2 08 00 02 2A 80 11 00 00 00 00 00 00 A6 [07:46:27]Write i2c OK [07:46:27]MH_I2C_Read... [07:46:27]Read from MH i2c: E2 [07:46:27]MH_I2C_Read... [07:46:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:46:27]Read from MH i2c: E2 17 00 [07:46:27]MH_I2C_Read... [07:46:27]Read from MH i2c: E2 17 00 02 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 FD [07:46:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:46:27]wFMCommunicate OK [07:46:27]requested_item fd.num is exist - process it [07:46:27]SAM_PROTO_GetFieldsCounters [07:46:27]wFMCommunicate request_size=4 [07:46:27]MH_SAM_APDU [07:46:27]CAPDU: 80 13 00 00 [07:46:27]Write to MH i2c: E2 08 00 03 2A 80 13 00 00 00 00 00 00 A9 [07:46:27]Write i2c OK [07:46:27]MH_I2C_Read... [07:46:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:46:27]Read from MH i2c: E2 [07:46:27]MH_I2C_Read... [07:46:27]Read from MH i2c: E2 62 00 [07:46:27]MH_I2C_Read... [07:46:27]Read from MH i2c: E2 62 00 03 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 92 77 03 00 0E 04 04 00 15 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 BB [07:46: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 92 77 03 00 0E 04 04 00 15 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 [07:46:27]wFMCommunicate OK [07:46:27]SAM_PROTO_GetFieldsCounters done [07:46:27]requested_item shift.num is exist - process it [07:46:27]requested_item shift.opened is exist - process it [07:46:27]req_shift_opened [07:46:27]FM_GetShiftState [07:46:27]SAM_PROTO_GetShiftState [07:46:27]wFMCommunicate request_size=4 [07:46:27]MH_SAM_APDU [07:46:27]CAPDU: 80 13 01 00 [07:46:27]Write to MH i2c: E2 08 00 04 2A 80 13 01 00 00 00 00 00 AB [07:46:27]Write i2c OK [07:46:27]MH_I2C_Read... [07:46:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:46:27]Read from MH i2c: E2 [07:46:27]MH_I2C_Read... [07:46:27]Read from MH i2c: E2 0E 00 [07:46:27]MH_I2C_Read... [07:46:27]Read from MH i2c: E2 0E 00 04 2A 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 C5 [07:46:27]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [07:46:27]wFMCommunicate OK [07:46:27]SAM_PROTO_GetShiftState done [07:46:27]FM_GetShiftState done [07:46:27]req_shift_opened done [07:46:27]requested_item shift.open_date is exist - process it [07:46:27]req_shift_open_date [07:46:27]req_shift_open_date done [07:46:27]produce_requested_data done [07:46:27]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227218,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [07:46:27]process_action_free close_receipt [07:46:27]json_value_free [07:46:27]json_value_free done [07:46:27]process_json_proto returns [07:46:27]Send response to host [07:46:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227218,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [07:46:27]free response buf [07:46:27]execute_script done [07:46:27]execute_script returns [07:46:27]free content buf [07:46:27]Sock 9.Close socket [07:46:27]Sock 9.Thread stoped [07:46:27]OFD Sender: No OFD packet to send [07:46:32]OFD Sender: No OFD packet to send [07:46:37]OFD Sender: No OFD packet to send [07:46:42]OFD Sender: No OFD packet to send [07:46:47]OFD Sender: No OFD packet to send [07:46:52]OFD Sender: No OFD packet to send [07:46:57]OFD Sender: No OFD packet to send [07:47:02]OFD Sender: No OFD packet to send [07:47:07]OFD Sender: No OFD packet to send [07:47:12]OFD Sender: No OFD packet to send [07:47:17]OFD Sender: No OFD packet to send [07:47:22]OFD Sender: No OFD packet to send [07:47:27]OFD Sender: No OFD packet to send [07:47:32]OFD Sender: No OFD packet to send [07:47:37]OFD Sender: No OFD packet to send [07:47:42]OFD Sender: No OFD packet to send [07:47:47]OFD Sender: No OFD packet to send [07:47:52]OFD Sender: No OFD packet to send [07:47:57]OFD Sender: No OFD packet to send [07:48:02]OFD Sender: No OFD packet to send [07:48:07]OFD Sender: No OFD packet to send [07:48:12]OFD Sender: No OFD packet to send [07:48:17]OFD Sender: No OFD packet to send [07:48:22]OFD Sender: No OFD packet to send [07:48:27]OFD Sender: No OFD packet to send [07:48:32]OFD Sender: No OFD packet to send [07:48:37]OFD Sender: No OFD packet to send [07:48:42]OFD Sender: No OFD packet to send [07:48:47]OFD Sender: No OFD packet to send [07:48:52]OFD Sender: No OFD packet to send [07:48:57]OFD Sender: No OFD packet to send [07:49:02]OFD Sender: No OFD packet to send [07:49:07]OFD Sender: No OFD packet to send [07:49:12]OFD Sender: No OFD packet to send [07:49:17]OFD Sender: No OFD packet to send [07:49:22]OFD Sender: No OFD packet to send [07:49:27]OFD Sender: No OFD packet to send [07:49:32]OFD Sender: No OFD packet to send [07:49:37]OFD Sender: No OFD packet to send [07:49:42]OFD Sender: No OFD packet to send [07:49:47]OFD Sender: No OFD packet to send [07:49:52]OFD Sender: No OFD packet to send [07:49:57]OFD Sender: No OFD packet to send [07:50:02]OFD Sender: No OFD packet to send [07:50:07]OFD Sender: No OFD packet to send [07:50:12]OFD Sender: No OFD packet to send [07:50:17]OFD Sender: No OFD packet to send [07:50:22]OFD Sender: No OFD packet to send [07:50:27]OFD Sender: No OFD packet to send [07:50:32]OFD Sender: No OFD packet to send [07:50:37]OFD Sender: No OFD packet to send [07:50:42]OFD Sender: No OFD packet to send [07:50:47]OFD Sender: No OFD packet to send [07:50:52]OFD Sender: No OFD packet to send [07:50:57]OFD Sender: No OFD packet to send [07:51:02]OFD Sender: No OFD packet to send [07:51:07]OFD Sender: No OFD packet to send [07:51:12]OFD Sender: No OFD packet to send [07:51:17]OFD Sender: No OFD packet to send [07:51:22]OFD Sender: No OFD packet to send [07:51:27]OFD Sender: No OFD packet to send [07:51:32]OFD Sender: No OFD packet to send [07:51:37]OFD Sender: No OFD packet to send [07:51:42]OFD Sender: No OFD packet to send [07:51:47]OFD Sender: No OFD packet to send [07:51:52]OFD Sender: No OFD packet to send [07:51:57]OFD Sender: No OFD packet to send [07:52:02]OFD Sender: No OFD packet to send [07:52:07]OFD Sender: No OFD packet to send [07:52:12]OFD Sender: No OFD packet to send [07:52:17]OFD Sender: No OFD packet to send [07:52:22]OFD Sender: No OFD packet to send [07:52:27]OFD Sender: No OFD packet to send [07:52:32]OFD Sender: No OFD packet to send [07:52:37]OFD Sender: No OFD packet to send [07:52:42]OFD Sender: No OFD packet to send [07:52:47]OFD Sender: No OFD packet to send [07:52:52]OFD Sender: No OFD packet to send [07:52:57]OFD Sender: No OFD packet to send [07:53:02]OFD Sender: No OFD packet to send [07:53:07]OFD Sender: No OFD packet to send [07:53:12]OFD Sender: No OFD packet to send [07:53:17]OFD Sender: No OFD packet to send [07:53:22]OFD Sender: No OFD packet to send [07:53:27]OFD Sender: No OFD packet to send [07:53:32]OFD Sender: No OFD packet to send [07:53:37]OFD Sender: No OFD packet to send [07:53:40]accept exits with 8 [07:53:40]New connection [07:53:40]New thread 3066965348 created [07:53:40]Thread 3066821988 joined [07:53:40]Waiting for new connection... [07:53:40] Sock 8.Parse request [07:53:40]Sock 8.Check first char [07:53:40]Sock 8.First char is OK [07:53:40]request: POST /json_proto HTTP/1.0 [07:53:40]Method: POST [07:53:40]URL: /json_proto [07:53:40]Method is POST - this is cgi request [07:53:40]url: /json_proto [07:53:40]query_string will be loaded in cgi processing [07:53:40]execute_cgi json_proto POST (null) [07:53:40]execute_cgi path=json_proto method=POST [07:53:40]POST find Content-Length [07:53:40]Host: 172.17.44.195:8080 [07:53:40]Content-Length: 683 [07:53:40]Content-Type: application/json [07:53:40] [07:53:40]POST finish read [07:53:40]Found Content-Length = 683 [07:53:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962672", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:53:40]execute_script... [07: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)1962672", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:53:40]POST & json_proto [07:53:40]process_json_proto [07:53:40]json parsed OK: [07:53:40]protocol is kg_v1.0 [07:53:40]action value=close_receipt [07:53:40]process_action close_receipt [07:53:40]cmd_close_receipt [07:53:40]MH_GetDate [07:53:40]Write to MH i2c: F0 00 00 05 2A 1E [07:53:40]Write i2c OK [07:53:40]MH_I2C_Read... [07:53:40]Read from MH i2c: F0 [07:53:40]MH_I2C_Read... [07:53:40]Read from MH i2c: F0 09 00 [07:53:40]MH_I2C_Read... [07:53:40]Read from MH i2c: F0 09 00 05 2A 00 07 B7 14 67 82 C9 CF 66 E0 [07:53:40]GetLastDocTimeStamp 1729410388 [07:53:40]current date 1729410823 [07:53:40]FM_GetShiftState [07:53:40]SAM_PROTO_GetShiftState [07:53:40]wFMCommunicate request_size=4 [07:53:40]MH_SAM_APDU [07:53:40]CAPDU: 80 13 01 00 [07:53:40]Write to MH i2c: E2 08 00 06 2A 80 13 01 00 00 00 00 00 AD [07:53:40]Write i2c OK [07:53:40]MH_I2C_Read... [07:53:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:53:40]Read from MH i2c: E2 [07:53:40]MH_I2C_Read... [07:53:40]Read from MH i2c: E2 0E 00 [07:53:40]MH_I2C_Read... [07:53:40]Read from MH i2c: E2 0E 00 06 2A 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 C7 [07:53:40]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [07:53:40]wFMCommunicate OK [07:53:40]SAM_PROTO_GetShiftState done [07:53:40]FM_GetShiftState done [07:53:40]opened in 1729383750 [07:53:40]opened+sec_in_day 1729470150 [07:53:40]quantity*price = 100015 [07:53:40]sum+1 = 100017 [07:53:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 67 20.10.2024 07:53 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227219 ФПД: 144674803203631 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T075343&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227219&fm=144674803203631&tin=02508201610067®Number=0000000000091685&sum=100000 [07:53:41]StoreToDocumentArchive [07:53:41]shift 533 fd 227219 [07:53:41]save to /storage/0533/doc_00227219 [07:53:41]save last doc name /storage/0533/doc_00227219 to /storage/kkm_last_doc_name [07:53:41]save OK [07:53:41]Clear old archive folders... [07:53:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:53:41]tlvbuf is 00508E40 [07:53:41]SAM_PROTO_ClearQueue [07:53:41]wFMCommunicate request_size=4 [07:53:41]MH_SAM_APDU [07:53:41]CAPDU: 80 09 00 00 [07:53:41]Write to MH i2c: E2 08 00 13 2A 80 09 00 00 00 00 00 00 AF [07:53:41]Write i2c OK [07:53:41]MH_I2C_Read... [07:53:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:53:41]Read from MH i2c: E2 [07:53:41]MH_I2C_Read... [07:53:41]Read from MH i2c: E2 03 00 [07:53:41]MH_I2C_Read... [07:53:41]Read from MH i2c: E2 03 00 13 2A 00 90 00 B1 [07:53:41]RAPDU: 90 00 [07:53:41]wFMCommunicate OK [07:53:41]SAM_PROTO_ClearQueue done [07:53:41]KKMCreateOFDPacket [07:53:41]OFDProtocolAddRootSTLVToBuf [07:53:41]FM_MakeSignedData [07:53:41]FM_MakeSignedData [07:53:41]SAM_PROTO_SignData [07:53:41]wFMCommunicate request_size=4 [07:53:41]MH_SAM_APDU [07:53:41]CAPDU: 80 0D 01 02 [07:53:41]Write to MH i2c: E2 08 00 14 2A 80 0D 01 02 00 00 00 00 B7 [07:53:41]Write i2c OK [07:53:41]MH_I2C_Read... [07:53:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:53:41]Read from MH i2c: E2 [07:53:41]MH_I2C_Read... [07:53:41]Read from MH i2c: E2 03 00 [07:53:41]MH_I2C_Read... [07:53:41]Read from MH i2c: E2 03 00 14 2A 00 90 00 B2 [07:53:41]RAPDU: 90 00 [07:53:41]wFMCommunicate OK [07:53:41]wFMCommunicate request_size=255 [07:53:41]MH_SAM_APDU [07:53:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 07 B7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 93 77 03 00 35 04 06 00 83 [07:53:41]Write to MH i2c: E2 02 01 15 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 07 B7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 93 77 03 00 35 04 06 00 83 00 00 6B [07:53:41]Write i2c OK [07:53:41]MH_I2C_Read... [07:53:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:53:41]Read from MH i2c: E2 [07:53:41]MH_I2C_Read... [07:53:41]Read from MH i2c: E2 03 00 [07:53:41]MH_I2C_Read... [07:53:41]Read from MH i2c: E2 03 00 15 2A 00 90 00 B3 [07:53:41]RAPDU: 90 00 [07:53:41]wFMCommunicate OK [07:53:41]wFMCommunicate request_size=10 [07:53:41]MH_SAM_APDU [07:53:41]CAPDU: 80 0D 02 02 05 94 BA 40 BE 2F [07:53:41]Write to MH i2c: E2 0D 00 16 2A 80 0D 02 02 05 00 94 BA 40 BE 2F 00 00 3F [07:53:41]Write i2c OK [07:53:41]MH_I2C_Read... [07:53:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:53:41]Read from MH i2c: E2 [07:53:41]MH_I2C_Read... [07:53:41]Read from MH i2c: E2 03 00 [07:53:41]MH_I2C_Read... [07:53:41]Read from MH i2c: E2 03 00 16 2A 00 90 00 B4 [07:53:41]RAPDU: 90 00 [07:53:41]wFMCommunicate OK [07:53:41]wFMCommunicate request_size=4 [07:53:41]MH_SAM_APDU [07:53:41]CAPDU: 80 0D 03 02 [07:53:41]Write to MH i2c: E2 08 00 17 2A 80 0D 03 02 00 00 00 00 BC [07:53:41]Write i2c OK [07:53:41]MH_I2C_Read... [07:53:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:53:41]Read from MH i2c: E2 [07:53:41]MH_I2C_Read... [07:53:41]Read from MH i2c: E2 0B 00 [07:53:41]MH_I2C_Read... [07:53:41]Read from MH i2c: E2 0B 00 17 2A 00 2B 53 96 0C 3E FA D7 32 90 00 1E [07:53:41]RAPDU: 2B 53 96 0C 3E FA D7 32 90 00 [07:53:41]wFMCommunicate OK [07:53:41]SAM_PROTO_SignData done [07:53:41]FM_MakeSignedData done [07:53:41]CreateOFDProtocolMessage [07:53:41]wFMCommunicate request_size=4 [07:53:41]MH_SAM_APDU [07:53:41]CAPDU: 80 11 00 00 [07:53:41]Write to MH i2c: E2 08 00 18 2A 80 11 00 00 00 00 00 00 BC [07:53:41]Write i2c OK [07:53:41]MH_I2C_Read... [07:53:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:53:41]Read from MH i2c: E2 [07:53:41]MH_I2C_Read... [07:53:41]Read from MH i2c: E2 17 00 [07:53:41]MH_I2C_Read... [07:53:41]Read from MH i2c: E2 17 00 18 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 13 [07:53:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:53:41]wFMCommunicate OK [07:53:41]CreateOFDProtocolMessage done [07:53:41]OFDSenderStorePacket 227219 [07:53:41]StoreOFDPacket docnum=227219 [07:53:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 D1 F3 07 01 B3 D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 07 B7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 93 77 03 00 35 04 06 00 83 94 BA 40 BE 2F 2B 53 96 0C 3E FA D7 32 [07:53:41]CheckFolder [07:53:41]dirname=/storage/ofd_packets [07:53:41]CheckFolder done [07:53:41]ProducePacketName [07:53:41]name=ofd_packets/00227219 [07:53:41]NVStorageSaveData ofd_packets/00227219 [07:53:41]File name is /storage/ofd_packets/00227219 [07:53:41]Write 301 bytes [07:53:41]NVStorageSaveData done [07:53:41]OFDSenderStorePacket done [07:53:41]KKMCreateOFDPacket done [07:53:41]NVStorageSaveData kkm_last_timestamp [07:53:41]File name is /storage/kkm_last_timestamp [07:53:41]Write 4 bytes [07:53:41]NVStorageSaveData done [07:53:41]ExternCall_PrintAddStr [07:53:41]wPrintStart [07:53:41]Write to MH i2c: 01 00 00 19 2A 43 [07:53:41]Write i2c OK [07:53:41]MH_I2C_Read... [07:53:41]Read from MH i2c: 01 [07:53:41]MH_I2C_Read... [07:53:41]Read from MH i2c: 01 07 00 [07:53:41]MH_I2C_Read... [07:53:41]Read from MH i2c: 01 07 00 19 2A 00 00 00 00 00 FF 0F 58 [07:53:41]RasterBufferAndPrint [07:53:41]line Счет N : (1)1962672 [07:53:41]line ИНН: 02508201610067 [07:53:41]line Контрольно-Кассовый Чек [07:53:41]line ПРОДАЖА [07:53:41]line ТРК (МРК, ГНК) : 33 [07:53:41]line Товар: 2710124130 [07:53:41]line Аи-92-К-5 [07:53:41]line 14.950 * 66.90 [07:53:41]line = 1000.16 [07:53:41]line НДС 12% НСП 1% [07:53:41]line > о реализуемом товаре [07:53:41]line ОКРУГЛЕНИЕ: -0.16 [07:53:41]line ИТОГО: 1000.00 [07:53:41]line Внесено: 1000.00 [07:53:41]line СДАЧА: 0.00 [07:53:41]line НСП 1% : 8.85 [07:53:41]line НДС 12% : 106.21 [07:53:41]line Наличными: 1000.00 [07:53:41]line Безнал.: 0.00 [07:53:41]line Место: АЗС № 133 "Партнер Нефть" [07:53:41]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [07:53:41]line СНО: Общий режим [07:53:41]line Чек 67 20.10.2024 07:53 [07:53:41]line Смена: 533 ФФД: 1.0 [07:53:41]line ЗНМ: 0300000091 [07:53:41]line РНМ: 0000000000091685 [07:53:41]line Версия ККМ: 001 [07:53:41]line ФМ: 0000000000871839 [07:53:41]line ФД: 227219 [07:53:41]line ФПД: 144674803203631 [07:53:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T075343&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227219&fm=144674803203631&tin=02508201610067®Number=0000000000091685&sum=100000 [07:53:41]written 0, free lines is 4095 [07:53:41]OFD Sender: Processing packet 227219 [packets to send 38, broken 37] [07:53:41]ProducePacketName [07:53:41]name=ofd_packets/00227219 [07:53:41]OFD Sender: To server: pG, [07:53:41]CommunicateWithHost lk.salyk.kg:30040 [07:53:41]ConnectInit lk.salyk.kg [07:53:42]Connected sock=10 [07: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 33 39 0F 01 00 00 D1 F3 07 01 B3 D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 07 B7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 93 77 03 00 35 04 06 00 83 94 BA 40 BE 2F 2B 53 96 0C 3E FA D7 32 [07: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 33 39 4F 00 00 00 24 B1 47 00 74 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 93 77 03 00 F4 03 04 00 07 62 14 67 B6 04 01 00 00 88 CA AA 29 6E 52 29 3E [07:53:42]CommunicateWithHost err = 0 [07:53:42]CheckOFDResponse [07:53:42]1017 (14) - 77093643461234 [07:53:42]1041 (16) - 0000000000871839 [07:53:42]1040 (4) - 227219 [07:53:42]1012 (4) - 20.10.2024 01:51 [07:53:42]1206 (1) - 0 [07:53:42]OFD Sender: Remove packet 227219 [07:53:42]ProducePacketName [07:53:42]name=ofd_packets/00227219 [07:53:42]NVStorageDeleteData [07:53:42]Write to MH i2c: 01 00 00 43 2A 6D [07:53:42]Write i2c OK [07:53:42]MH_I2C_Read... [07:53:42]Read from MH i2c: 01 [07:53:42]MH_I2C_Read... [07:53:42]Read from MH i2c: 01 07 00 [07:53:42]MH_I2C_Read... [07:53:42]Read from MH i2c: 01 07 00 43 2A 00 00 00 00 00 0C 0D 8D [07:53:42]RasterBufferAndPrint [07:53:42]line [07:53:42]line [07:53:42]line [07:53:42]line [07:53:42]line [07:53:42]written 0, free lines is 3346 [07:53:42]process_action close_receipt done [07:53:42]requested_data is exist [07:53:42]produce_requested_data [07:53:42]requested_item fm.sn is exist - process it [07:53:42]wFMCommunicate request_size=4 [07:53:42]MH_SAM_APDU [07:53:42]CAPDU: 80 11 00 00 [07:53:42]Write to MH i2c: E2 08 00 4A 2A 80 11 00 00 00 00 00 00 EE [07:53:42]Write i2c OK [07:53:42]MH_I2C_Read... [07:53:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:53:42]Read from MH i2c: E2 [07:53:42]MH_I2C_Read... [07:53:42]Read from MH i2c: E2 17 00 [07:53:42]MH_I2C_Read... [07:53:42]Read from MH i2c: E2 17 00 4A 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 45 [07:53:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:53:42]wFMCommunicate OK [07:53:42]requested_item fd.num is exist - process it [07:53:42]SAM_PROTO_GetFieldsCounters [07:53:42]wFMCommunicate request_size=4 [07:53:42]MH_SAM_APDU [07:53:42]CAPDU: 80 13 00 00 [07:53:42]Write to MH i2c: E2 08 00 4B 2A 80 13 00 00 00 00 00 00 F1 [07:53:42]Write i2c OK [07:53:42]MH_I2C_Read... [07:53:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:53:42]Read from MH i2c: E2 [07:53:42]MH_I2C_Read... [07:53:42]Read from MH i2c: E2 62 00 [07:53:42]MH_I2C_Read... [07:53:42]Read from MH i2c: E2 62 00 4B 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 93 77 03 00 0E 04 04 00 15 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 07 [07:53: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 93 77 03 00 0E 04 04 00 15 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 [07:53:42]wFMCommunicate OK [07:53:42]SAM_PROTO_GetFieldsCounters done [07:53:42]requested_item shift.num is exist - process it [07:53:42]requested_item shift.opened is exist - process it [07:53:42]req_shift_opened [07:53:42]FM_GetShiftState [07:53:42]SAM_PROTO_GetShiftState [07:53:42]wFMCommunicate request_size=4 [07:53:42]MH_SAM_APDU [07:53:42]CAPDU: 80 13 01 00 [07:53:42]Write to MH i2c: E2 08 00 4C 2A 80 13 01 00 00 00 00 00 F3 [07:53:42]Write i2c OK [07:53:42]MH_I2C_Read... [07:53:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:53:42]Read from MH i2c: E2 [07:53:42]MH_I2C_Read... [07:53:42]Read from MH i2c: E2 0E 00 [07:53:42]MH_I2C_Read... [07:53:42]Read from MH i2c: E2 0E 00 4C 2A 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 0D [07:53:42]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [07:53:42]wFMCommunicate OK [07:53:42]SAM_PROTO_GetShiftState done [07:53:42]FM_GetShiftState done [07:53:42]req_shift_opened done [07:53:42]requested_item shift.open_date is exist - process it [07:53:42]req_shift_open_date [07:53:42]req_shift_open_date done [07:53:42]produce_requested_data done [07:53:42]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227219,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [07:53:42]process_action_free close_receipt [07:53:42]json_value_free [07:53:42]json_value_free done [07:53:42]process_json_proto returns [07:53:42]Send response to host [07:53:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227219,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [07:53:42]free response buf [07:53:42]execute_script done [07:53:42]execute_script returns [07:53:42]free content buf [07:53:42]Sock 8.Close socket [07:53:42]Sock 8.Thread stoped [07:53:42]OFD Sender: No OFD packet to send [07:53:47]OFD Sender: No OFD packet to send [07:53:52]OFD Sender: No OFD packet to send [07:53:57]OFD Sender: No OFD packet to send [07:54:02]OFD Sender: No OFD packet to send [07:54:07]OFD Sender: No OFD packet to send [07:54:12]OFD Sender: No OFD packet to send [07:54:17]OFD Sender: No OFD packet to send [07:54:22]OFD Sender: No OFD packet to send [07:54:27]OFD Sender: No OFD packet to send [07:54:32]OFD Sender: No OFD packet to send [07:54:37]OFD Sender: No OFD packet to send [07:54:42]OFD Sender: No OFD packet to send [07:54:47]OFD Sender: No OFD packet to send [07:54:52]OFD Sender: No OFD packet to send [07:54:57]OFD Sender: No OFD packet to send [07:55:02]OFD Sender: No OFD packet to send [07:55:07]OFD Sender: No OFD packet to send [07:55:12]OFD Sender: No OFD packet to send [07:55:17]OFD Sender: No OFD packet to send [07:55:19]accept exits with 9 [07:55:19]New connection [07:55:19]New thread 3066821988 created [07:55:19]Thread 3066965348 joined [07:55:19]Waiting for new connection... [07:55:19] Sock 9.Parse request [07:55:19]Sock 9.Check first char [07:55:19]Sock 9.First char is OK [07:55:19]request: POST /json_proto HTTP/1.0 [07:55:19]Method: POST [07:55:19]URL: /json_proto [07:55:19]Method is POST - this is cgi request [07:55:19]url: /json_proto [07:55:19]query_string will be loaded in cgi processing [07:55:19]execute_cgi json_proto POST (null) [07:55:19]execute_cgi path=json_proto method=POST [07:55:19]POST find Content-Length [07:55:19]Host: 172.17.44.195:8080 [07:55:19]Content-Length: 664 [07:55:19]Content-Type: application/json [07:55:19] [07:55:19]POST finish read [07:55:19]Found Content-Length = 664 [07:55:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962673", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 21.930, "sum" : 1500.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:55:19]execute_script... [07:55: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)1962673", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 21.930, "sum" : 1500.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:55:19]POST & json_proto [07:55:19]process_json_proto [07:55:19]json parsed OK: [07:55:19]protocol is kg_v1.0 [07:55:19]action value=close_receipt [07:55:19]process_action close_receipt [07:55:19]cmd_close_receipt [07:55:19]MH_GetDate [07:55:19]Write to MH i2c: F0 00 00 4D 2A 66 [07:55:19]Write i2c OK [07:55:19]MH_I2C_Read... [07:55:19]Read from MH i2c: F0 [07:55:19]MH_I2C_Read... [07:55:19]Read from MH i2c: F0 09 00 [07:55:19]MH_I2C_Read... [07:55:19]Read from MH i2c: F0 09 00 4D 2A 00 6A B7 14 67 82 C9 CF 66 8B [07:55:19]GetLastDocTimeStamp 1729410823 [07:55:19]current date 1729410922 [07:55:19]FM_GetShiftState [07:55:19]SAM_PROTO_GetShiftState [07:55:19]wFMCommunicate request_size=4 [07:55:19]MH_SAM_APDU [07:55:19]CAPDU: 80 13 01 00 [07:55:19]Write to MH i2c: E2 08 00 4E 2A 80 13 01 00 00 00 00 00 F5 [07:55:19]Write i2c OK [07:55:19]MH_I2C_Read... [07:55:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:55:19]Read from MH i2c: E2 [07:55:19]MH_I2C_Read... [07:55:19]Read from MH i2c: E2 0E 00 [07:55:19]MH_I2C_Read... [07:55:19]Read from MH i2c: E2 0E 00 4E 2A 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 0F [07:55:19]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [07:55:19]wFMCommunicate OK [07:55:19]SAM_PROTO_GetShiftState done [07:55:19]FM_GetShiftState done [07:55:19]opened in 1729383750 [07:55:19]opened+sec_in_day 1729470150 [07:55:19]quantity*price = 150001 [07:55:19]sum+1 = 150002 [07:55:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.27 НДС 12% : 159.29 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 68 20.10.2024 07:55 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227220 ФПД: 253330699582248 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T075522&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227220&fm=253330699582248&tin=02508201610067®Number=0000000000091685&sum=150000 [07:55:20]StoreToDocumentArchive [07:55:20]shift 533 fd 227220 [07:55:20]save to /storage/0533/doc_00227220 [07:55:20]save last doc name /storage/0533/doc_00227220 to /storage/kkm_last_doc_name [07:55:20]save OK [07:55:20]Clear old archive folders... [07:55:20]ProcessDocumentItem done err = 0, tmpTLVsize=244 [07:55:20]tlvbuf is 0059F2A0 [07:55:20]SAM_PROTO_ClearQueue [07:55:20]wFMCommunicate request_size=4 [07:55:20]MH_SAM_APDU [07:55:20]CAPDU: 80 09 00 00 [07:55:20]Write to MH i2c: E2 08 00 5B 2A 80 09 00 00 00 00 00 00 F7 [07:55:20]Write i2c OK [07:55:20]MH_I2C_Read... [07:55:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:55:20]Read from MH i2c: E2 [07:55:20]MH_I2C_Read... [07:55:20]Read from MH i2c: E2 03 00 [07:55:20]MH_I2C_Read... [07:55:20]Read from MH i2c: E2 03 00 5B 2A 00 90 00 F9 [07:55:20]RAPDU: 90 00 [07:55:20]wFMCommunicate OK [07:55:20]SAM_PROTO_ClearQueue done [07:55:20]KKMCreateOFDPacket [07:55:20]OFDProtocolAddRootSTLVToBuf [07:55:20]FM_MakeSignedData [07:55:20]FM_MakeSignedData [07:55:20]SAM_PROTO_SignData [07:55:20]wFMCommunicate request_size=4 [07:55:20]MH_SAM_APDU [07:55:20]CAPDU: 80 0D 01 02 [07:55:20]Write to MH i2c: E2 08 00 5C 2A 80 0D 01 02 00 00 00 00 FF [07:55:20]Write i2c OK [07:55:20]MH_I2C_Read... [07:55:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:55:20]Read from MH i2c: E2 [07:55:20]MH_I2C_Read... [07:55:20]Read from MH i2c: E2 03 00 [07:55:20]MH_I2C_Read... [07:55:20]Read from MH i2c: E2 03 00 5C 2A 00 90 00 FA [07:55:20]RAPDU: 90 00 [07:55:20]wFMCommunicate OK [07:55:20]wFMCommunicate request_size=253 [07:55:20]MH_SAM_APDU [07:55:20]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 AA 55 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 F1 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 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 44 00 00 00 F4 03 04 00 6A B7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 94 77 03 00 35 04 06 00 E6 67 26 5B FB 28 [07:55:20]Write to MH i2c: E2 00 01 5D 2A 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 AA 55 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 F1 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 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 44 00 00 00 F4 03 04 00 6A B7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 94 77 03 00 35 04 06 00 E6 67 26 5B FB 28 00 00 E3 [07:55:20]Write i2c OK [07:55:20]MH_I2C_Read... [07:55:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:55:20]Read from MH i2c: E2 [07:55:20]MH_I2C_Read... [07:55:20]Read from MH i2c: E2 03 00 [07:55:20]MH_I2C_Read... [07:55:20]Read from MH i2c: E2 03 00 5D 2A 00 90 00 FB [07:55:20]RAPDU: 90 00 [07:55:20]wFMCommunicate OK [07:55:20]wFMCommunicate request_size=4 [07:55:20]MH_SAM_APDU [07:55:20]CAPDU: 80 0D 03 02 [07:55:20]Write to MH i2c: E2 08 00 5E 2A 80 0D 03 02 00 00 00 00 03 [07:55:20]Write i2c OK [07:55:20]MH_I2C_Read... [07:55:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:55:20]Read from MH i2c: E2 [07:55:20]MH_I2C_Read... [07:55:20]Read from MH i2c: E2 0B 00 [07:55:20]MH_I2C_Read... [07:55:20]Read from MH i2c: E2 0B 00 5E 2A 00 BB 31 C7 5A 1F 3C 0F 83 90 00 FE [07:55:20]RAPDU: BB 31 C7 5A 1F 3C 0F 83 90 00 [07:55:20]wFMCommunicate OK [07:55:20]SAM_PROTO_SignData done [07:55:20]FM_MakeSignedData done [07:55:20]CreateOFDProtocolMessage [07:55:20]wFMCommunicate request_size=4 [07:55:20]MH_SAM_APDU [07:55:20]CAPDU: 80 11 00 00 [07:55:20]Write to MH i2c: E2 08 00 5F 2A 80 11 00 00 00 00 00 00 03 [07:55:20]Write i2c OK [07:55:20]MH_I2C_Read... [07:55:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:55:20]Read from MH i2c: E2 [07:55:20]MH_I2C_Read... [07:55:20]Read from MH i2c: E2 17 00 [07:55:20]MH_I2C_Read... [07:55:20]Read from MH i2c: E2 17 00 5F 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 5A [07:55:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:55:20]wFMCommunicate OK [07:55:20]CreateOFDProtocolMessage done [07:55:20]OFDSenderStorePacket 227220 [07:55:20]StoreOFDPacket docnum=227220 [07:55:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 BA DE 00 01 DA 43 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 AA 55 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 F1 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 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 44 00 00 00 F4 03 04 00 6A B7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 94 77 03 00 35 04 06 00 E6 67 26 5B FB 28 BB 31 C7 5A 1F 3C 0F 83 [07:55:20]CheckFolder [07:55:20]dirname=/storage/ofd_packets [07:55:20]CheckFolder done [07:55:20]ProducePacketName [07:55:20]name=ofd_packets/00227220 [07:55:20]NVStorageSaveData ofd_packets/00227220 [07:55:20]File name is /storage/ofd_packets/00227220 [07:55:20]Write 294 bytes [07:55:20]NVStorageSaveData done [07:55:20]OFDSenderStorePacket done [07:55:20]KKMCreateOFDPacket done [07:55:20]NVStorageSaveData kkm_last_timestamp [07:55:20]File name is /storage/kkm_last_timestamp [07:55:20]Write 4 bytes [07:55:20]NVStorageSaveData done [07:55:20]ExternCall_PrintAddStr [07:55:20]wPrintStart [07:55:20]Write to MH i2c: 01 00 00 60 2A 8A [07:55:20]Write i2c OK [07:55:20]MH_I2C_Read... [07:55:20]Read from MH i2c: 01 [07:55:20]MH_I2C_Read... [07:55:20]Read from MH i2c: 01 07 00 [07:55:20]MH_I2C_Read... [07:55:20]Read from MH i2c: 01 07 00 60 2A 00 00 00 00 00 FF 0F 9F [07:55:20]RasterBufferAndPrint [07:55:20]line Счет N : (1)1962673 [07:55:20]line ИНН: 02508201610067 [07:55:20]line Контрольно-Кассовый Чек [07:55:20]line ПРОДАЖА [07:55:20]line ТРК (МРК, ГНК) : 52 [07:55:20]line Товар: 2710124130 [07:55:20]line SU-92 [07:55:20]line 21.930 * 68.40 [07:55:20]line = 1500.01 [07:55:20]line НДС 12% НСП 1% [07:55:20]line > о реализуемом товаре [07:55:20]line ОКРУГЛЕНИЕ: -0.01 [07:55:20]line ИТОГО: 1500.00 [07:55:20]line Внесено: 1500.00 [07:55:20]line СДАЧА: 0.00 [07:55:20]line НСП 1% : 13.27 [07:55:20]line НДС 12% : 159.29 [07:55:20]line Наличными: 1500.00 [07:55:20]line Безнал.: 0.00 [07:55:20]line Место: АЗС № 133 "Партнер Нефть" [07:55:20]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [07:55:20]line СНО: Общий режим [07:55:20]line Чек 68 20.10.2024 07:55 [07:55:20]line Смена: 533 ФФД: 1.0 [07:55:20]line ЗНМ: 0300000091 [07:55:20]line РНМ: 0000000000091685 [07:55:20]line Версия ККМ: 001 [07:55:20]line ФМ: 0000000000871839 [07:55:20]line ФД: 227220 [07:55:20]line ФПД: 253330699582248 [07:55:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T075522&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227220&fm=253330699582248&tin=02508201610067®Number=0000000000091685&sum=150000 [07:55:21]OFD Sender: Processing packet 227220 [packets to send 38, broken 37] [07:55:21]ProducePacketName [07:55:21]name=ofd_packets/00227220 [07:55:21]OFD Sender: To server: pG, [07:55:21]CommunicateWithHost lk.salyk.kg:30040 [07:55:21]ConnectInit lk.salyk.kg [07:55:21]written 0, free lines is 4095 [07:55:21]Connected sock=10 [07:55: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 33 39 08 01 00 00 BA DE 00 01 DA 43 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 AA 55 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 F1 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 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 44 00 00 00 F4 03 04 00 6A B7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 94 77 03 00 35 04 06 00 E6 67 26 5B FB 28 BB 31 C7 5A 1F 3C 0F 83 [07:55: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 33 39 4F 00 00 00 43 01 47 00 E8 B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 94 77 03 00 F4 03 04 00 6A 62 14 67 B6 04 01 00 00 3A E1 08 E7 E6 FC C5 DE [07:55:21]CommunicateWithHost err = 0 [07:55:21]CheckOFDResponse [07:55:21]1017 (14) - 77093643461234 [07:55:21]1041 (16) - 0000000000871839 [07:55:21]1040 (4) - 227220 [07:55:21]1012 (4) - 20.10.2024 01:52 [07:55:21]1206 (1) - 0 [07:55:21]OFD Sender: Remove packet 227220 [07:55:21]ProducePacketName [07:55:21]name=ofd_packets/00227220 [07:55:21]NVStorageDeleteData [07:55:21]Write to MH i2c: 01 00 00 8A 2A B4 [07:55:21]Write i2c OK [07:55:21]MH_I2C_Read... [07:55:21]Read from MH i2c: 01 [07:55:21]MH_I2C_Read... [07:55:21]Read from MH i2c: 01 07 00 [07:55:21]MH_I2C_Read... [07:55:21]Read from MH i2c: 01 07 00 8A 2A 00 00 00 00 00 17 0D DF [07:55:21]RasterBufferAndPrint [07:55:21]line [07:55:21]line [07:55:21]line [07:55:21]line [07:55:21]line [07:55:21]written 0, free lines is 3358 [07:55:21]process_action close_receipt done [07:55:21]requested_data is exist [07:55:21]produce_requested_data [07:55:21]requested_item fm.sn is exist - process it [07:55:21]wFMCommunicate request_size=4 [07:55:21]MH_SAM_APDU [07:55:21]CAPDU: 80 11 00 00 [07:55:21]Write to MH i2c: E2 08 00 91 2A 80 11 00 00 00 00 00 00 35 [07:55:21]Write i2c OK [07:55:21]MH_I2C_Read... [07:55:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:55:21]Read from MH i2c: E2 [07:55:21]MH_I2C_Read... [07:55:21]Read from MH i2c: E2 17 00 [07:55:21]MH_I2C_Read... [07:55:21]Read from MH i2c: E2 17 00 91 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 8C [07:55:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [07:55:21]wFMCommunicate OK [07:55:21]requested_item fd.num is exist - process it [07:55:21]SAM_PROTO_GetFieldsCounters [07:55:21]wFMCommunicate request_size=4 [07:55:21]MH_SAM_APDU [07:55:21]CAPDU: 80 13 00 00 [07:55:21]Write to MH i2c: E2 08 00 92 2A 80 13 00 00 00 00 00 00 38 [07:55:21]Write i2c OK [07:55:21]MH_I2C_Read... [07:55:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:55:21]Read from MH i2c: E2 [07:55:21]MH_I2C_Read... [07:55:21]Read from MH i2c: E2 62 00 [07:55:21]MH_I2C_Read... [07:55:21]Read from MH i2c: E2 62 00 92 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 94 77 03 00 0E 04 04 00 15 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 52 [07:55: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 94 77 03 00 0E 04 04 00 15 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 [07:55:21]wFMCommunicate OK [07:55:21]SAM_PROTO_GetFieldsCounters done [07:55:21]requested_item shift.num is exist - process it [07:55:21]requested_item shift.opened is exist - process it [07:55:21]req_shift_opened [07:55:21]FM_GetShiftState [07:55:21]SAM_PROTO_GetShiftState [07:55:21]wFMCommunicate request_size=4 [07:55:21]MH_SAM_APDU [07:55:21]CAPDU: 80 13 01 00 [07:55:21]Write to MH i2c: E2 08 00 93 2A 80 13 01 00 00 00 00 00 3A [07:55:21]Write i2c OK [07:55:21]MH_I2C_Read... [07:55:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:55:21]Read from MH i2c: E2 [07:55:21]MH_I2C_Read... [07:55:21]Read from MH i2c: E2 0E 00 [07:55:21]MH_I2C_Read... [07:55:21]Read from MH i2c: E2 0E 00 93 2A 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 54 [07:55:21]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [07:55:21]wFMCommunicate OK [07:55:21]SAM_PROTO_GetShiftState done [07:55:21]FM_GetShiftState done [07:55:21]req_shift_opened done [07:55:21]requested_item shift.open_date is exist - process it [07:55:21]req_shift_open_date [07:55:21]req_shift_open_date done [07:55:21]produce_requested_data done [07:55:21]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227220,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [07:55:21]process_action_free close_receipt [07:55:21]json_value_free [07:55:21]json_value_free done [07:55:21]process_json_proto returns [07:55:21]Send response to host [07:55:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227220,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [07:55:21]free response buf [07:55:21]execute_script done [07:55:21]execute_script returns [07:55:21]free content buf [07:55:21]Sock 9.Close socket [07:55:21]Sock 9.Thread stoped [07:55:21]OFD Sender: No OFD packet to send [07:55:26]OFD Sender: No OFD packet to send [07:55:31]OFD Sender: No OFD packet to send [07:55:36]OFD Sender: No OFD packet to send [07:55:41]OFD Sender: No OFD packet to send [07:55:46]OFD Sender: No OFD packet to send [07:55:51]OFD Sender: No OFD packet to send [07:55:56]OFD Sender: No OFD packet to send [07:56:01]OFD Sender: No OFD packet to send [07:56:06]OFD Sender: No OFD packet to send [07:56:11]OFD Sender: No OFD packet to send [07:56:16]OFD Sender: No OFD packet to send [07:56:21]OFD Sender: No OFD packet to send [07:56:26]OFD Sender: No OFD packet to send [07:56:31]OFD Sender: No OFD packet to send [07:56:36]OFD Sender: No OFD packet to send [07:56:41]OFD Sender: No OFD packet to send [07:56:46]OFD Sender: No OFD packet to send [07:56:51]OFD Sender: No OFD packet to send [07:56:56]OFD Sender: No OFD packet to send [07:57:01]OFD Sender: No OFD packet to send [07:57:06]OFD Sender: No OFD packet to send [07:57:11]OFD Sender: No OFD packet to send [07:57:16]OFD Sender: No OFD packet to send [07:57:21]OFD Sender: No OFD packet to send [07:57:26]OFD Sender: No OFD packet to send [07:57:31]OFD Sender: No OFD packet to send [07:57:36]OFD Sender: No OFD packet to send [07:57:42]OFD Sender: No OFD packet to send [07:57:47]OFD Sender: No OFD packet to send [07:57:52]OFD Sender: No OFD packet to send [07:57:57]OFD Sender: No OFD packet to send [07:58:02]OFD Sender: No OFD packet to send [07:58:07]OFD Sender: No OFD packet to send [07:58:12]OFD Sender: No OFD packet to send [07:58:17]OFD Sender: No OFD packet to send [07:58:22]OFD Sender: No OFD packet to send [07:58:27]OFD Sender: No OFD packet to send [07:58:32]OFD Sender: No OFD packet to send [07:58:37]OFD Sender: No OFD packet to send [07:58:42]OFD Sender: No OFD packet to send [07:58:47]OFD Sender: No OFD packet to send [07:58:52]OFD Sender: No OFD packet to send [07:58:57]OFD Sender: No OFD packet to send [07:59:02]OFD Sender: No OFD packet to send [07:59:07]OFD Sender: No OFD packet to send [07:59:12]OFD Sender: No OFD packet to send [07:59:17]OFD Sender: No OFD packet to send [07:59:22]OFD Sender: No OFD packet to send [07:59:27]OFD Sender: No OFD packet to send [07:59:32]OFD Sender: No OFD packet to send [07:59:37]OFD Sender: No OFD packet to send [07:59:42]OFD Sender: No OFD packet to send [07:59:47]OFD Sender: No OFD packet to send [07:59:52]OFD Sender: No OFD packet to send [07:59:57]OFD Sender: No OFD packet to send [08:00:02]OFD Sender: No OFD packet to send [08:00:07]OFD Sender: No OFD packet to send [08:00:12]OFD Sender: No OFD packet to send [08:00:17]OFD Sender: No OFD packet to send [08:00:22]OFD Sender: No OFD packet to send [08:00:27]OFD Sender: No OFD packet to send [08:00:32]OFD Sender: No OFD packet to send [08:00:37]OFD Sender: No OFD packet to send [08:00:42]OFD Sender: No OFD packet to send [08:00:47]OFD Sender: No OFD packet to send [08:00:52]OFD Sender: No OFD packet to send [08:00:57]OFD Sender: No OFD packet to send [08:01:02]OFD Sender: No OFD packet to send [08:01:07]OFD Sender: No OFD packet to send [08:01:12]OFD Sender: No OFD packet to send [08:01:17]OFD Sender: No OFD packet to send [08:01:22]OFD Sender: No OFD packet to send [08:01:25]accept exits with 8 [08:01:25]New connection [08:01:25]New thread 3066965348 created [08:01:25]Thread 3066821988 joined [08:01:25]Waiting for new connection... [08:01:25] Sock 8.Parse request [08:01:25]Sock 8.Check first char [08:01:25]Sock 8.First char is OK [08:01:25]request: POST /json_proto HTTP/1.0 [08:01:25]Method: POST [08:01:25]URL: /json_proto [08:01:25]Method is POST - this is cgi request [08:01:25]url: /json_proto [08:01:25]query_string will be loaded in cgi processing [08:01:25]execute_cgi json_proto POST (null) [08:01:25]execute_cgi path=json_proto method=POST [08:01:25]POST find Content-Length [08:01:25]Host: 172.17.44.195:8080 [08:01:25]Content-Length: 664 [08:01:25]Content-Type: application/json [08:01:25] [08:01:25]POST finish read [08:01:25]Found Content-Length = 664 [08:01:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962675", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:01:25]execute_script... [08:01:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962675", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:01:25]POST & json_proto [08:01:25]process_json_proto [08:01:25]json parsed OK: [08:01:25]protocol is kg_v1.0 [08:01:25]action value=close_receipt [08:01:25]process_action close_receipt [08:01:25]cmd_close_receipt [08:01:25]MH_GetDate [08:01:25]Write to MH i2c: F0 00 00 94 2A AD [08:01:25]Write i2c OK [08:01:25]MH_I2C_Read... [08:01:25]Read from MH i2c: F0 [08:01:25]MH_I2C_Read... [08:01:25]Read from MH i2c: F0 09 00 [08:01:25]MH_I2C_Read... [08:01:25]Read from MH i2c: F0 09 00 94 2A 00 D9 B8 14 67 82 C9 CF 66 42 [08:01:25]GetLastDocTimeStamp 1729410922 [08:01:25]current date 1729411289 [08:01:25]FM_GetShiftState [08:01:25]SAM_PROTO_GetShiftState [08:01:25]wFMCommunicate request_size=4 [08:01:25]MH_SAM_APDU [08:01:25]CAPDU: 80 13 01 00 [08:01:25]Write to MH i2c: E2 08 00 95 2A 80 13 01 00 00 00 00 00 3C [08:01:25]Write i2c OK [08:01:25]MH_I2C_Read... [08:01:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:01:25]Read from MH i2c: E2 [08:01:25]MH_I2C_Read... [08:01:25]Read from MH i2c: E2 0E 00 [08:01:25]MH_I2C_Read... [08:01:25]Read from MH i2c: E2 0E 00 95 2A 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 56 [08:01:25]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:01:25]wFMCommunicate OK [08:01:25]SAM_PROTO_GetShiftState done [08:01:25]FM_GetShiftState done [08:01:25]opened in 1729383750 [08:01:25]opened+sec_in_day 1729470150 [08:01:25]quantity*price = 100000 [08:01:25]sum+1 = 100002 [08:01:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 69 20.10.2024 08:01 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227221 ФПД: 14216304166620 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T080129&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227221&fm=14216304166620&tin=02508201610067®Number=0000000000091685&sum=100000 [08:01:26]StoreToDocumentArchive [08:01:26]shift 533 fd 227221 [08:01:26]save to /storage/0533/doc_00227221 [08:01:26]save last doc name /storage/0533/doc_00227221 to /storage/kkm_last_doc_name [08:01:26]save OK [08:01:26]Clear old archive folders... [08:01:26]ProcessDocumentItem done err = 0, tmpTLVsize=244 [08:01:26]tlvbuf is 005D89B0 [08:01:26]SAM_PROTO_ClearQueue [08:01:26]wFMCommunicate request_size=4 [08:01:26]MH_SAM_APDU [08:01:26]CAPDU: 80 09 00 00 [08:01:26]Write to MH i2c: E2 08 00 A2 2A 80 09 00 00 00 00 00 00 3E [08:01:26]Write i2c OK [08:01:26]MH_I2C_Read... [08:01:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:01:26]Read from MH i2c: E2 [08:01:26]MH_I2C_Read... [08:01:26]Read from MH i2c: E2 03 00 [08:01:26]MH_I2C_Read... [08:01:26]Read from MH i2c: E2 03 00 A2 2A 00 90 00 40 [08:01:26]RAPDU: 90 00 [08:01:26]wFMCommunicate OK [08:01:26]SAM_PROTO_ClearQueue done [08:01:26]KKMCreateOFDPacket [08:01:26]OFDProtocolAddRootSTLVToBuf [08:01:26]FM_MakeSignedData [08:01:26]FM_MakeSignedData [08:01:26]SAM_PROTO_SignData [08:01:26]wFMCommunicate request_size=4 [08:01:26]MH_SAM_APDU [08:01:26]CAPDU: 80 0D 01 02 [08:01:26]Write to MH i2c: E2 08 00 A3 2A 80 0D 01 02 00 00 00 00 46 [08:01:26]Write i2c OK [08:01:26]MH_I2C_Read... [08:01:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:01:26]Read from MH i2c: E2 [08:01:26]MH_I2C_Read... [08:01:26]Read from MH i2c: E2 03 00 [08:01:26]MH_I2C_Read... [08:01:26]Read from MH i2c: E2 03 00 A3 2A 00 90 00 41 [08:01:26]RAPDU: 90 00 [08:01:26]wFMCommunicate OK [08:01:26]wFMCommunicate request_size=253 [08:01:26]MH_SAM_APDU [08:01:26]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 D9 B8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 95 77 03 00 35 04 06 00 0C ED FD C2 86 DC [08:01:27]Write to MH i2c: E2 00 01 A4 2A 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 D9 B8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 95 77 03 00 35 04 06 00 0C ED FD C2 86 DC 00 00 51 [08:01:27]Write i2c OK [08:01:27]MH_I2C_Read... [08:01:27]OFD Sender: No OFD packet to send [08:01:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:01:27]Read from MH i2c: E2 [08:01:27]MH_I2C_Read... [08:01:27]Read from MH i2c: E2 03 00 [08:01:27]MH_I2C_Read... [08:01:27]Read from MH i2c: E2 03 00 A4 2A 00 90 00 42 [08:01:27]RAPDU: 90 00 [08:01:27]wFMCommunicate OK [08:01:27]wFMCommunicate request_size=4 [08:01:27]MH_SAM_APDU [08:01:27]CAPDU: 80 0D 03 02 [08:01:27]Write to MH i2c: E2 08 00 A5 2A 80 0D 03 02 00 00 00 00 4A [08:01:27]Write i2c OK [08:01:27]MH_I2C_Read... [08:01:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:01:27]Read from MH i2c: E2 [08:01:27]MH_I2C_Read... [08:01:27]Read from MH i2c: E2 0B 00 [08:01:27]MH_I2C_Read... [08:01:27]Read from MH i2c: E2 0B 00 A5 2A 00 D1 40 41 04 FC 8F 9D D6 90 00 9F [08:01:27]RAPDU: D1 40 41 04 FC 8F 9D D6 90 00 [08:01:27]wFMCommunicate OK [08:01:27]SAM_PROTO_SignData done [08:01:27]FM_MakeSignedData done [08:01:27]CreateOFDProtocolMessage [08:01:27]wFMCommunicate request_size=4 [08:01:27]MH_SAM_APDU [08:01:27]CAPDU: 80 11 00 00 [08:01:27]Write to MH i2c: E2 08 00 A6 2A 80 11 00 00 00 00 00 00 4A [08:01:27]Write i2c OK [08:01:27]MH_I2C_Read... [08:01:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:01:27]Read from MH i2c: E2 [08:01:27]MH_I2C_Read... [08:01:27]Read from MH i2c: E2 17 00 [08:01:27]MH_I2C_Read... [08:01:27]Read from MH i2c: E2 17 00 A6 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A1 [08:01:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:01:27]wFMCommunicate OK [08:01:27]CreateOFDProtocolMessage done [08:01:27]OFDSenderStorePacket 227221 [08:01:27]StoreOFDPacket docnum=227221 [08:01:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 28 5B 00 01 FD 84 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 D9 B8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 95 77 03 00 35 04 06 00 0C ED FD C2 86 DC D1 40 41 04 FC 8F 9D D6 [08:01:27]CheckFolder [08:01:27]dirname=/storage/ofd_packets [08:01:27]CheckFolder done [08:01:27]ProducePacketName [08:01:27]name=ofd_packets/00227221 [08:01:27]NVStorageSaveData ofd_packets/00227221 [08:01:27]File name is /storage/ofd_packets/00227221 [08:01:27]Write 294 bytes [08:01:27]NVStorageSaveData done [08:01:27]OFDSenderStorePacket done [08:01:27]KKMCreateOFDPacket done [08:01:27]NVStorageSaveData kkm_last_timestamp [08:01:27]File name is /storage/kkm_last_timestamp [08:01:27]Write 4 bytes [08:01:27]NVStorageSaveData done [08:01:27]ExternCall_PrintAddStr [08:01:27]wPrintStart [08:01:27]Write to MH i2c: 01 00 00 A7 2A D1 [08:01:27]Write i2c OK [08:01:27]MH_I2C_Read... [08:01:27]Read from MH i2c: 01 [08:01:27]MH_I2C_Read... [08:01:27]Read from MH i2c: 01 07 00 [08:01:27]MH_I2C_Read... [08:01:27]Read from MH i2c: 01 07 00 A7 2A 00 00 00 00 00 FF 0F E6 [08:01:27]RasterBufferAndPrint [08:01:27]line Счет N : (1)1962675 [08:01:27]line ИНН: 02508201610067 [08:01:27]line Контрольно-Кассовый Чек [08:01:27]line ПРОДАЖА [08:01:27]line ТРК (МРК, ГНК) : 32 [08:01:27]line Товар: 2710124130 [08:01:27]line SU-92 [08:01:27]line 14.620 * 68.40 [08:01:27]line = 1000.01 [08:01:27]line НДС 12% НСП 1% [08:01:27]line > о реализуемом товаре [08:01:27]line ОКРУГЛЕНИЕ: -0.01 [08:01:27]line ИТОГО: 1000.00 [08:01:27]line Внесено: 1000.00 [08:01:27]line СДАЧА: 0.00 [08:01:27]line НСП 1% : 8.85 [08:01:27]line НДС 12% : 106.20 [08:01:27]line Наличными: 1000.00 [08:01:27]line Безнал.: 0.00 [08:01:27]line Место: АЗС № 133 "Партнер Нефть" [08:01:27]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [08:01:27]line СНО: Общий режим [08:01:27]line Чек 69 20.10.2024 08:01 [08:01:27]line Смена: 533 ФФД: 1.0 [08:01:27]line ЗНМ: 0300000091 [08:01:27]line РНМ: 0000000000091685 [08:01:27]line Версия ККМ: 001 [08:01:27]line ФМ: 0000000000871839 [08:01:27]line ФД: 227221 [08:01:27]line ФПД: 14216304166620 [08:01:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T080129&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227221&fm=14216304166620&tin=02508201610067®Number=0000000000091685&sum=100000 [08:01:27]OFD Sender: Processing packet 227221 [packets to send 38, broken 37] [08:01:27]ProducePacketName [08:01:27]name=ofd_packets/00227221 [08:01:27]OFD Sender: To server: pG, [08:01:27]CommunicateWithHost lk.salyk.kg:30040 [08:01:27]ConnectInit lk.salyk.kg [08:01:27]written 0, free lines is 4095 [08:01:27]Connected sock=10 [08:01:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 28 5B 00 01 FD 84 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 D9 B8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 95 77 03 00 35 04 06 00 0C ED FD C2 86 DC D1 40 41 04 FC 8F 9D D6 [08:01: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 33 39 4F 00 00 00 2E 5F 47 00 8C 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 95 77 03 00 F4 03 04 00 D9 63 14 67 B6 04 01 00 00 AA 17 93 01 08 33 5E 4E [08:01:28]CommunicateWithHost err = 0 [08:01:28]CheckOFDResponse [08:01:28]1017 (14) - 77093643461234 [08:01:28]1041 (16) - 0000000000871839 [08:01:28]1040 (4) - 227221 [08:01:28]1012 (4) - 20.10.2024 01:58 [08:01:28]1206 (1) - 0 [08:01:28]OFD Sender: Remove packet 227221 [08:01:28]ProducePacketName [08:01:28]name=ofd_packets/00227221 [08:01:28]NVStorageDeleteData [08:01:28]Write to MH i2c: 01 00 00 D1 2A FB [08:01:28]Write i2c OK [08:01:28]MH_I2C_Read... [08:01:28]Read from MH i2c: 01 [08:01:28]MH_I2C_Read... [08:01:28]Read from MH i2c: 01 07 00 [08:01:28]MH_I2C_Read... [08:01:28]Read from MH i2c: 01 07 00 D1 2A 00 00 00 00 00 11 0D 20 [08:01:28]RasterBufferAndPrint [08:01:28]line [08:01:28]line [08:01:28]line [08:01:28]line [08:01:28]line [08:01:28]written 0, free lines is 3354 [08:01:28]process_action close_receipt done [08:01:28]requested_data is exist [08:01:28]produce_requested_data [08:01:28]requested_item fm.sn is exist - process it [08:01:28]wFMCommunicate request_size=4 [08:01:28]MH_SAM_APDU [08:01:28]CAPDU: 80 11 00 00 [08:01:28]Write to MH i2c: E2 08 00 D8 2A 80 11 00 00 00 00 00 00 7C [08:01:28]Write i2c OK [08:01:28]MH_I2C_Read... [08:01:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:01:28]Read from MH i2c: E2 [08:01:28]MH_I2C_Read... [08:01:28]Read from MH i2c: E2 17 00 [08:01:28]MH_I2C_Read... [08:01:28]Read from MH i2c: E2 17 00 D8 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D3 [08:01:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:01:28]wFMCommunicate OK [08:01:28]requested_item fd.num is exist - process it [08:01:28]SAM_PROTO_GetFieldsCounters [08:01:28]wFMCommunicate request_size=4 [08:01:28]MH_SAM_APDU [08:01:28]CAPDU: 80 13 00 00 [08:01:28]Write to MH i2c: E2 08 00 D9 2A 80 13 00 00 00 00 00 00 7F [08:01:28]Write i2c OK [08:01:28]MH_I2C_Read... [08:01:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:01:28]Read from MH i2c: E2 [08:01:28]MH_I2C_Read... [08:01:28]Read from MH i2c: E2 62 00 [08:01:28]MH_I2C_Read... [08:01:28]Read from MH i2c: E2 62 00 D9 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 95 77 03 00 0E 04 04 00 15 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 9D [08:01: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 95 77 03 00 0E 04 04 00 15 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 [08:01:28]wFMCommunicate OK [08:01:28]SAM_PROTO_GetFieldsCounters done [08:01:28]requested_item shift.num is exist - process it [08:01:28]requested_item shift.opened is exist - process it [08:01:28]req_shift_opened [08:01:28]FM_GetShiftState [08:01:28]SAM_PROTO_GetShiftState [08:01:28]wFMCommunicate request_size=4 [08:01:28]MH_SAM_APDU [08:01:28]CAPDU: 80 13 01 00 [08:01:28]Write to MH i2c: E2 08 00 DA 2A 80 13 01 00 00 00 00 00 81 [08:01:28]Write i2c OK [08:01:28]MH_I2C_Read... [08:01:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:01:28]Read from MH i2c: E2 [08:01:28]MH_I2C_Read... [08:01:28]Read from MH i2c: E2 0E 00 [08:01:28]MH_I2C_Read... [08:01:28]Read from MH i2c: E2 0E 00 DA 2A 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 9B [08:01:28]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:01:28]wFMCommunicate OK [08:01:28]SAM_PROTO_GetShiftState done [08:01:28]FM_GetShiftState done [08:01:28]req_shift_opened done [08:01:28]requested_item shift.open_date is exist - process it [08:01:28]req_shift_open_date [08:01:28]req_shift_open_date done [08:01:28]produce_requested_data done [08:01:28]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227221,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [08:01:28]process_action_free close_receipt [08:01:28]json_value_free [08:01:28]json_value_free done [08:01:28]process_json_proto returns [08:01:28]Send response to host [08:01:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227221,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [08:01:28]free response buf [08:01:28]execute_script done [08:01:28]execute_script returns [08:01:28]free content buf [08:01:28]Sock 8.Close socket [08:01:28]Sock 8.Thread stoped [08:01:28]OFD Sender: No OFD packet to send [08:01:33]OFD Sender: No OFD packet to send [08:01:38]OFD Sender: No OFD packet to send [08:01:43]OFD Sender: No OFD packet to send [08:01:48]OFD Sender: No OFD packet to send [08:01:53]OFD Sender: No OFD packet to send [08:01:58]OFD Sender: No OFD packet to send [08:02:03]OFD Sender: No OFD packet to send [08:02:08]OFD Sender: No OFD packet to send [08:02:13]OFD Sender: No OFD packet to send [08:02:18]OFD Sender: No OFD packet to send [08:02:23]OFD Sender: No OFD packet to send [08:02:28]OFD Sender: No OFD packet to send [08:02:33]OFD Sender: No OFD packet to send [08:02:38]OFD Sender: No OFD packet to send [08:02:43]OFD Sender: No OFD packet to send [08:02:48]OFD Sender: No OFD packet to send [08:02:52]accept exits with 9 [08:02:52]New connection [08:02:52]New thread 3066821988 created [08:02:52]Thread 3066965348 joined [08:02:52]Waiting for new connection... [08:02:52] Sock 9.Parse request [08:02:52]Sock 9.Check first char [08:02:52]Sock 9.First char is OK [08:02:52]request: POST /json_proto HTTP/1.0 [08:02:52]Method: POST [08:02:52]URL: /json_proto [08:02:52]Method is POST - this is cgi request [08:02:52]url: /json_proto [08:02:52]query_string will be loaded in cgi processing [08:02:52]execute_cgi json_proto POST (null) [08:02:52]execute_cgi path=json_proto method=POST [08:02:52]POST find Content-Length [08:02:52]Host: 172.17.44.195:8080 [08:02:52]Content-Length: 683 [08:02:52]Content-Type: application/json [08:02:52] [08:02:52]POST finish read [08:02:52]Found Content-Length = 683 [08:02:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962674", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:02:52]execute_script... [08:02: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)1962674", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:02:52]POST & json_proto [08:02:52]process_json_proto [08:02:52]json parsed OK: [08:02:52]protocol is kg_v1.0 [08:02:52]action value=close_receipt [08:02:52]process_action close_receipt [08:02:52]cmd_close_receipt [08:02:52]MH_GetDate [08:02:52]Write to MH i2c: F0 00 00 DB 2A F4 [08:02:52]Write i2c OK [08:02:52]MH_I2C_Read... [08:02:52]Read from MH i2c: F0 [08:02:52]MH_I2C_Read... [08:02:52]Read from MH i2c: F0 09 00 [08:02:52]MH_I2C_Read... [08:02:52]Read from MH i2c: F0 09 00 DB 2A 00 30 B9 14 67 82 C9 CF 66 E1 [08:02:52]GetLastDocTimeStamp 1729411289 [08:02:52]current date 1729411376 [08:02:52]FM_GetShiftState [08:02:52]SAM_PROTO_GetShiftState [08:02:52]wFMCommunicate request_size=4 [08:02:52]MH_SAM_APDU [08:02:52]CAPDU: 80 13 01 00 [08:02:52]Write to MH i2c: E2 08 00 DC 2A 80 13 01 00 00 00 00 00 83 [08:02:52]Write i2c OK [08:02:52]MH_I2C_Read... [08:02:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:02:52]Read from MH i2c: E2 [08:02:52]MH_I2C_Read... [08:02:52]Read from MH i2c: E2 0E 00 [08:02:52]MH_I2C_Read... [08:02:52]Read from MH i2c: E2 0E 00 DC 2A 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 9D [08:02:52]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:02:52]wFMCommunicate OK [08:02:52]SAM_PROTO_GetShiftState done [08:02:52]FM_GetShiftState done [08:02:52]opened in 1729383750 [08:02:52]opened+sec_in_day 1729470150 [08:02:52]quantity*price = 200031 [08:02:52]sum+1 = 200032 [08:02:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 70 20.10.2024 08:02 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227222 ФПД: 218718572692376 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T080256&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227222&fm=218718572692376&tin=02508201610067®Number=0000000000091685&sum=200000 [08:02:53]StoreToDocumentArchive [08:02:53]shift 533 fd 227222 [08:02:53]save to /storage/0533/doc_00227222 [08:02:53]save last doc name /storage/0533/doc_00227222 to /storage/kkm_last_doc_name [08:02:53]save OK [08:02:53]Clear old archive folders... [08:02:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:02:53]tlvbuf is 00534B30 [08:02:53]SAM_PROTO_ClearQueue [08:02:53]wFMCommunicate request_size=4 [08:02:53]MH_SAM_APDU [08:02:53]CAPDU: 80 09 00 00 [08:02:53]Write to MH i2c: E2 08 00 E9 2A 80 09 00 00 00 00 00 00 85 [08:02:53]Write i2c OK [08:02:53]MH_I2C_Read... [08:02:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:02:53]Read from MH i2c: E2 [08:02:53]MH_I2C_Read... [08:02:53]Read from MH i2c: E2 03 00 [08:02:53]MH_I2C_Read... [08:02:53]Read from MH i2c: E2 03 00 E9 2A 00 90 00 87 [08:02:53]RAPDU: 90 00 [08:02:53]wFMCommunicate OK [08:02:53]SAM_PROTO_ClearQueue done [08:02:53]KKMCreateOFDPacket [08:02:53]OFDProtocolAddRootSTLVToBuf [08:02:53]FM_MakeSignedData [08:02:53]FM_MakeSignedData [08:02:53]SAM_PROTO_SignData [08:02:53]wFMCommunicate request_size=4 [08:02:53]MH_SAM_APDU [08:02:53]CAPDU: 80 0D 01 02 [08:02:53]Write to MH i2c: E2 08 00 EA 2A 80 0D 01 02 00 00 00 00 8D [08:02:53]Write i2c OK [08:02:53]MH_I2C_Read... [08:02:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:02:53]Read from MH i2c: E2 [08:02:53]MH_I2C_Read... [08:02:53]Read from MH i2c: E2 03 00 [08:02:53]MH_I2C_Read... [08:02:53]Read from MH i2c: E2 03 00 EA 2A 00 90 00 88 [08:02:53]RAPDU: 90 00 [08:02:53]wFMCommunicate OK [08:02:53]wFMCommunicate request_size=255 [08:02:53]MH_SAM_APDU [08:02:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 30 B9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 96 77 03 00 35 04 06 00 C6 [08:02:53]Write to MH i2c: E2 02 01 EB 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 30 B9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 96 77 03 00 35 04 06 00 C6 00 00 FD [08:02:53]Write i2c OK [08:02:53]MH_I2C_Read... [08:02:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:02:54]Read from MH i2c: E2 [08:02:54]MH_I2C_Read... [08:02:54]Read from MH i2c: E2 03 00 [08:02:54]MH_I2C_Read... [08:02:54]Read from MH i2c: E2 03 00 EB 2A 00 90 00 89 [08:02:54]RAPDU: 90 00 [08:02:54]wFMCommunicate OK [08:02:54]wFMCommunicate request_size=10 [08:02:54]MH_SAM_APDU [08:02:54]CAPDU: 80 0D 02 02 05 EC 62 D4 C3 98 [08:02:54]Write to MH i2c: E2 0D 00 EC 2A 80 0D 02 02 05 00 EC 62 D4 C3 98 00 00 17 [08:02:54]Write i2c OK [08:02:54]MH_I2C_Read... [08:02:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:02:54]Read from MH i2c: E2 [08:02:54]MH_I2C_Read... [08:02:54]Read from MH i2c: E2 03 00 [08:02:54]MH_I2C_Read... [08:02:54]Read from MH i2c: E2 03 00 EC 2A 00 90 00 8A [08:02:54]RAPDU: 90 00 [08:02:54]wFMCommunicate OK [08:02:54]wFMCommunicate request_size=4 [08:02:54]MH_SAM_APDU [08:02:54]CAPDU: 80 0D 03 02 [08:02:54]Write to MH i2c: E2 08 00 ED 2A 80 0D 03 02 00 00 00 00 92 [08:02:54]Write i2c OK [08:02:54]MH_I2C_Read... [08:02:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:02:54]Read from MH i2c: E2 [08:02:54]MH_I2C_Read... [08:02:54]Read from MH i2c: E2 0B 00 [08:02:54]MH_I2C_Read... [08:02:54]Read from MH i2c: E2 0B 00 ED 2A 00 4F 00 FB BE DA 7F BA 7F 90 00 2D [08:02:54]RAPDU: 4F 00 FB BE DA 7F BA 7F 90 00 [08:02:54]wFMCommunicate OK [08:02:54]SAM_PROTO_SignData done [08:02:54]FM_MakeSignedData done [08:02:54]CreateOFDProtocolMessage [08:02:54]wFMCommunicate request_size=4 [08:02:54]MH_SAM_APDU [08:02:54]CAPDU: 80 11 00 00 [08:02:54]Write to MH i2c: E2 08 00 EE 2A 80 11 00 00 00 00 00 00 92 [08:02:54]Write i2c OK [08:02:54]MH_I2C_Read... [08:02:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:02:54]Read from MH i2c: E2 [08:02:54]MH_I2C_Read... [08:02:54]Read from MH i2c: E2 17 00 [08:02:54]MH_I2C_Read... [08:02:54]Read from MH i2c: E2 17 00 EE 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E9 [08:02:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:02:54]wFMCommunicate OK [08:02:54]CreateOFDProtocolMessage done [08:02:54]OFDSenderStorePacket 227222 [08:02:54]StoreOFDPacket docnum=227222 [08:02:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 78 D7 07 01 3C 35 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 30 B9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 96 77 03 00 35 04 06 00 C6 EC 62 D4 C3 98 4F 00 FB BE DA 7F BA 7F [08:02:54]CheckFolder [08:02:54]dirname=/storage/ofd_packets [08:02:54]CheckFolder done [08:02:54]ProducePacketName [08:02:54]name=ofd_packets/00227222 [08:02:54]NVStorageSaveData ofd_packets/00227222 [08:02:54]File name is /storage/ofd_packets/00227222 [08:02:54]Write 301 bytes [08:02:54]NVStorageSaveData done [08:02:54]OFDSenderStorePacket done [08:02:54]KKMCreateOFDPacket done [08:02:54]NVStorageSaveData kkm_last_timestamp [08:02:54]File name is /storage/kkm_last_timestamp [08:02:54]Write 4 bytes [08:02:54]NVStorageSaveData done [08:02:54]ExternCall_PrintAddStr [08:02:54]wPrintStart [08:02:54]Write to MH i2c: 01 00 00 EF 2A 19 [08:02:54]Write i2c OK [08:02:54]MH_I2C_Read... [08:02:54]Read from MH i2c: 01 [08:02:54]MH_I2C_Read... [08:02:54]Read from MH i2c: 01 07 00 [08:02:54]MH_I2C_Read... [08:02:54]Read from MH i2c: 01 07 00 EF 2A 00 00 00 00 00 FF 0F 2E [08:02:54]RasterBufferAndPrint [08:02:54]line Счет N : (1)1962674 [08:02:54]line ИНН: 02508201610067 [08:02:54]line Контрольно-Кассовый Чек [08:02:54]line ПРОДАЖА [08:02:54]line ТРК (МРК, ГНК) : 43 [08:02:54]line Товар: 2710124130 [08:02:54]line Аи-92-К-5 [08:02:54]line 29.900 * 66.90 [08:02:54]line = 2000.31 [08:02:54]line НДС 12% НСП 1% [08:02:54]line > о реализуемом товаре [08:02:54]line ОКРУГЛЕНИЕ: -0.31 [08:02:54]line ИТОГО: 2000.00 [08:02:54]line Внесено: 2000.00 [08:02:54]line СДАЧА: 0.00 [08:02:54]line НСП 1% : 17.70 [08:02:54]line НДС 12% : 212.42 [08:02:54]line Наличными: 2000.00 [08:02:54]line Безнал.: 0.00 [08:02:54]line Место: АЗС № 133 "Партнер Нефть" [08:02:54]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [08:02:54]line СНО: Общий режим [08:02:54]line Чек 70 20.10.2024 08:02 [08:02:54]line Смена: 533 ФФД: 1.0 [08:02:54]line ЗНМ: 0300000091 [08:02:54]line РНМ: 0000000000091685 [08:02:54]line Версия ККМ: 001 [08:02:54]line ФМ: 0000000000871839 [08:02:54]line ФД: 227222 [08:02:54]line ФПД: 218718572692376 [08:02:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T080256&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227222&fm=218718572692376&tin=02508201610067®Number=0000000000091685&sum=200000 [08:02:54]written 0, free lines is 4095 [08:02:54]OFD Sender: Processing packet 227222 [packets to send 38, broken 37] [08:02:54]ProducePacketName [08:02:54]name=ofd_packets/00227222 [08:02:54]OFD Sender: To server: pG, [08:02:54]CommunicateWithHost lk.salyk.kg:30040 [08:02:54]ConnectInit lk.salyk.kg [08:02:54]Connected sock=11 [08:02: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 33 39 0F 01 00 00 78 D7 07 01 3C 35 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 30 B9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 96 77 03 00 35 04 06 00 C6 EC 62 D4 C3 98 4F 00 FB BE DA 7F BA 7F [08:02: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 33 39 4F 00 00 00 1F 40 47 00 3C 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 96 77 03 00 F4 03 04 00 2F 64 14 67 B6 04 01 00 00 C7 B0 5F E9 DF B9 EC AF [08:02:54]CommunicateWithHost err = 0 [08:02:54]CheckOFDResponse [08:02:54]1017 (14) - 77093643461234 [08:02:54]1041 (16) - 0000000000871839 [08:02:54]1040 (4) - 227222 [08:02:54]1012 (4) - 20.10.2024 02:00 [08:02:54]1206 (1) - 0 [08:02:54]OFD Sender: Remove packet 227222 [08:02:54]ProducePacketName [08:02:54]name=ofd_packets/00227222 [08:02:54]NVStorageDeleteData [08:02:54]Write to MH i2c: 01 00 00 19 2B 44 [08:02:54]Write i2c OK [08:02:54]MH_I2C_Read... [08:02:54]Read from MH i2c: 01 [08:02:54]MH_I2C_Read... [08:02:54]Read from MH i2c: 01 07 00 [08:02:54]MH_I2C_Read... [08:02:54]Read from MH i2c: 01 07 00 19 2B 00 00 00 00 00 10 0D 68 [08:02:54]RasterBufferAndPrint [08:02:54]line [08:02:54]line [08:02:54]line [08:02:54]line [08:02:54]line [08:02:54]written 0, free lines is 3350 [08:02:54]process_action close_receipt done [08:02:54]requested_data is exist [08:02:54]produce_requested_data [08:02:54]requested_item fm.sn is exist - process it [08:02:54]wFMCommunicate request_size=4 [08:02:54]MH_SAM_APDU [08:02:54]CAPDU: 80 11 00 00 [08:02:54]Write to MH i2c: E2 08 00 20 2B 80 11 00 00 00 00 00 00 C5 [08:02:54]Write i2c OK [08:02:54]MH_I2C_Read... [08:02:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:02:54]Read from MH i2c: E2 [08:02:54]MH_I2C_Read... [08:02:54]Read from MH i2c: E2 17 00 [08:02:54]MH_I2C_Read... [08:02:54]Read from MH i2c: E2 17 00 20 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 1C [08:02:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:02:54]wFMCommunicate OK [08:02:54]requested_item fd.num is exist - process it [08:02:54]SAM_PROTO_GetFieldsCounters [08:02:54]wFMCommunicate request_size=4 [08:02:54]MH_SAM_APDU [08:02:54]CAPDU: 80 13 00 00 [08:02:54]Write to MH i2c: E2 08 00 21 2B 80 13 00 00 00 00 00 00 C8 [08:02:54]Write i2c OK [08:02:54]MH_I2C_Read... [08:02:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:02:55]Read from MH i2c: E2 [08:02:55]MH_I2C_Read... [08:02:55]Read from MH i2c: E2 62 00 [08:02:55]MH_I2C_Read... [08:02:55]Read from MH i2c: E2 62 00 21 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 96 77 03 00 0E 04 04 00 15 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 EA [08:02:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 96 77 03 00 0E 04 04 00 15 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 [08:02:55]wFMCommunicate OK [08:02:55]SAM_PROTO_GetFieldsCounters done [08:02:55]requested_item shift.num is exist - process it [08:02:55]requested_item shift.opened is exist - process it [08:02:55]req_shift_opened [08:02:55]FM_GetShiftState [08:02:55]SAM_PROTO_GetShiftState [08:02:55]wFMCommunicate request_size=4 [08:02:55]MH_SAM_APDU [08:02:55]CAPDU: 80 13 01 00 [08:02:55]Write to MH i2c: E2 08 00 22 2B 80 13 01 00 00 00 00 00 CA [08:02:55]Write i2c OK [08:02:55]MH_I2C_Read... [08:02:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:02:55]Read from MH i2c: E2 [08:02:55]MH_I2C_Read... [08:02:55]Read from MH i2c: E2 0E 00 [08:02:55]MH_I2C_Read... [08:02:55]Read from MH i2c: E2 0E 00 22 2B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 E4 [08:02:55]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:02:55]wFMCommunicate OK [08:02:55]SAM_PROTO_GetShiftState done [08:02:55]FM_GetShiftState done [08:02:55]req_shift_opened done [08:02:55]requested_item shift.open_date is exist - process it [08:02:55]req_shift_open_date [08:02:55]req_shift_open_date done [08:02:55]produce_requested_data done [08:02:55]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227222,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [08:02:55]process_action_free close_receipt [08:02:55]json_value_free [08:02:55]json_value_free done [08:02:55]process_json_proto returns [08:02:55]Send response to host [08:02:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227222,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [08:02:55]free response buf [08:02:55]execute_script done [08:02:55]execute_script returns [08:02:55]free content buf [08:02:55]Sock 9.Close socket [08:02:55]Sock 9.Thread stoped [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:30]OFD Sender: No OFD packet to send [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:12]accept exits with 8 [08:07:12]New connection [08:07:12]New thread 3066965348 created [08:07:12]Thread 3066821988 joined [08:07:12]Waiting for new connection... [08:07:12] Sock 8.Parse request [08:07:12]Sock 8.Check first char [08:07:12]Sock 8.First char is OK [08:07:12]request: POST /json_proto HTTP/1.0 [08:07:12]Method: POST [08:07:12]URL: /json_proto [08:07:12]Method is POST - this is cgi request [08:07:12]url: /json_proto [08:07:12]query_string will be loaded in cgi processing [08:07:12]execute_cgi json_proto POST (null) [08:07:12]execute_cgi path=json_proto method=POST [08:07:12]POST find Content-Length [08:07:12]Host: 172.17.44.195:8080 [08:07:12]Content-Length: 679 [08:07:12]Content-Type: application/json [08:07:12] [08:07:12]POST finish read [08:07:12]Found Content-Length = 679 [08:07:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962676", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:07:12]execute_script... [08:07: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)1962676", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:07:12]POST & json_proto [08:07:12]process_json_proto [08:07:13]json parsed OK: [08:07:13]protocol is kg_v1.0 [08:07:13]action value=close_receipt [08:07:13]process_action close_receipt [08:07:13]cmd_close_receipt [08:07:13]MH_GetDate [08:07:13]Write to MH i2c: F0 00 00 23 2B 3D [08:07:13]Write i2c OK [08:07:13]MH_I2C_Read... [08:07:13]Read from MH i2c: F0 [08:07:13]MH_I2C_Read... [08:07:13]Read from MH i2c: F0 09 00 [08:07:13]MH_I2C_Read... [08:07:13]Read from MH i2c: F0 09 00 23 2B 00 34 BA 14 67 82 C9 CF 66 2F [08:07:13]GetLastDocTimeStamp 1729411376 [08:07:13]current date 1729411636 [08:07:13]FM_GetShiftState [08:07:13]SAM_PROTO_GetShiftState [08:07:13]wFMCommunicate request_size=4 [08:07:13]MH_SAM_APDU [08:07:13]CAPDU: 80 13 01 00 [08:07:13]Write to MH i2c: E2 08 00 24 2B 80 13 01 00 00 00 00 00 CC [08:07:13]Write i2c OK [08:07:13]MH_I2C_Read... [08:07:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:13]Read from MH i2c: E2 [08:07:13]MH_I2C_Read... [08:07:13]Read from MH i2c: E2 0E 00 [08:07:13]MH_I2C_Read... [08:07:13]Read from MH i2c: E2 0E 00 24 2B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 E6 [08:07:13]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:07:13]wFMCommunicate OK [08:07:13]SAM_PROTO_GetShiftState done [08:07:13]FM_GetShiftState done [08:07:13]opened in 1729383750 [08:07:13]opened+sec_in_day 1729470150 [08:07:13]quantity*price = 70044 [08:07:13]sum+1 = 70045 [08:07:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 71 20.10.2024 08:07 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227223 ФПД: 83857013194870 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T080716&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227223&fm=83857013194870&tin=02508201610067®Number=0000000000091685&sum=70000 [08:07:14]StoreToDocumentArchive [08:07:14]shift 533 fd 227223 [08:07:14]save to /storage/0533/doc_00227223 [08:07:14]save last doc name /storage/0533/doc_00227223 to /storage/kkm_last_doc_name [08:07:14]save OK [08:07:14]Clear old archive folders... [08:07:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:07:14]tlvbuf is B6F5B360 [08:07:14]SAM_PROTO_ClearQueue [08:07:14]wFMCommunicate request_size=4 [08:07:14]MH_SAM_APDU [08:07:14]CAPDU: 80 09 00 00 [08:07:14]Write to MH i2c: E2 08 00 31 2B 80 09 00 00 00 00 00 00 CE [08:07:14]Write i2c OK [08:07:14]MH_I2C_Read... [08:07:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:07:14]Read from MH i2c: E2 [08:07:14]MH_I2C_Read... [08:07:14]Read from MH i2c: E2 03 00 [08:07:14]MH_I2C_Read... [08:07:14]Read from MH i2c: E2 03 00 31 2B 00 90 00 D0 [08:07:14]RAPDU: 90 00 [08:07:14]wFMCommunicate OK [08:07:14]SAM_PROTO_ClearQueue done [08:07:14]KKMCreateOFDPacket [08:07:14]OFDProtocolAddRootSTLVToBuf [08:07:14]FM_MakeSignedData [08:07:14]FM_MakeSignedData [08:07:14]SAM_PROTO_SignData [08:07:14]wFMCommunicate request_size=4 [08:07:14]MH_SAM_APDU [08:07:14]CAPDU: 80 0D 01 02 [08:07:14]Write to MH i2c: E2 08 00 32 2B 80 0D 01 02 00 00 00 00 D6 [08:07:14]Write i2c OK [08:07:14]MH_I2C_Read... [08:07:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:07:14]Read from MH i2c: E2 [08:07:14]MH_I2C_Read... [08:07:14]Read from MH i2c: E2 03 00 [08:07:14]MH_I2C_Read... [08:07:14]Read from MH i2c: E2 03 00 32 2B 00 90 00 D1 [08:07:14]RAPDU: 90 00 [08:07:14]wFMCommunicate OK [08:07:14]wFMCommunicate request_size=255 [08:07:14]MH_SAM_APDU [08:07:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 34 BA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 97 77 03 00 35 04 06 00 4C [08:07:14]Write to MH i2c: E2 02 01 33 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 34 BA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 97 77 03 00 35 04 06 00 4C 00 00 A1 [08:07:14]Write i2c OK [08:07:14]MH_I2C_Read... [08:07:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:14]Read from MH i2c: E2 [08:07:14]MH_I2C_Read... [08:07:14]Read from MH i2c: E2 03 00 [08:07:14]MH_I2C_Read... [08:07:14]Read from MH i2c: E2 03 00 33 2B 00 90 00 D2 [08:07:14]RAPDU: 90 00 [08:07:14]wFMCommunicate OK [08:07:14]wFMCommunicate request_size=10 [08:07:14]MH_SAM_APDU [08:07:14]CAPDU: 80 0D 02 02 05 44 7B 7B C0 76 [08:07:14]Write to MH i2c: E2 0D 00 34 2B 80 0D 02 02 05 00 44 7B 7B C0 76 00 00 53 [08:07:14]Write i2c OK [08:07:14]MH_I2C_Read... [08:07:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:14]Read from MH i2c: E2 [08:07:14]MH_I2C_Read... [08:07:14]Read from MH i2c: E2 03 00 [08:07:14]MH_I2C_Read... [08:07:14]Read from MH i2c: E2 03 00 34 2B 00 90 00 D3 [08:07:14]RAPDU: 90 00 [08:07:14]wFMCommunicate OK [08:07:14]wFMCommunicate request_size=4 [08:07:14]MH_SAM_APDU [08:07:14]CAPDU: 80 0D 03 02 [08:07:14]Write to MH i2c: E2 08 00 35 2B 80 0D 03 02 00 00 00 00 DB [08:07:14]Write i2c OK [08:07:14]MH_I2C_Read... [08:07:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:07:14]Read from MH i2c: E2 [08:07:14]MH_I2C_Read... [08:07:14]Read from MH i2c: E2 0B 00 [08:07:14]MH_I2C_Read... [08:07:14]Read from MH i2c: E2 0B 00 35 2B 00 F0 56 F2 7F 85 D9 D8 25 90 00 EE [08:07:14]RAPDU: F0 56 F2 7F 85 D9 D8 25 90 00 [08:07:14]wFMCommunicate OK [08:07:14]SAM_PROTO_SignData done [08:07:14]FM_MakeSignedData done [08:07:14]CreateOFDProtocolMessage [08:07:14]wFMCommunicate request_size=4 [08:07:14]MH_SAM_APDU [08:07:14]CAPDU: 80 11 00 00 [08:07:14]Write to MH i2c: E2 08 00 36 2B 80 11 00 00 00 00 00 00 DB [08:07:14]Write i2c OK [08:07:14]MH_I2C_Read... [08:07:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:14]Read from MH i2c: E2 [08:07:14]MH_I2C_Read... [08:07:14]Read from MH i2c: E2 17 00 [08:07:14]MH_I2C_Read... [08:07:14]Read from MH i2c: E2 17 00 36 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 32 [08:07:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:07:14]wFMCommunicate OK [08:07:14]CreateOFDProtocolMessage done [08:07:14]OFDSenderStorePacket 227223 [08:07:14]StoreOFDPacket docnum=227223 [08:07:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 44 78 07 01 B3 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 34 BA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 97 77 03 00 35 04 06 00 4C 44 7B 7B C0 76 F0 56 F2 7F 85 D9 D8 25 [08:07:14]CheckFolder [08:07:14]dirname=/storage/ofd_packets [08:07:14]CheckFolder done [08:07:14]ProducePacketName [08:07:14]name=ofd_packets/00227223 [08:07:14]NVStorageSaveData ofd_packets/00227223 [08:07:14]File name is /storage/ofd_packets/00227223 [08:07:14]Write 301 bytes [08:07:14]NVStorageSaveData done [08:07:14]OFDSenderStorePacket done [08:07:14]KKMCreateOFDPacket done [08:07:14]NVStorageSaveData kkm_last_timestamp [08:07:14]File name is /storage/kkm_last_timestamp [08:07:14]Write 4 bytes [08:07:14]NVStorageSaveData done [08:07:14]ExternCall_PrintAddStr [08:07:14]wPrintStart [08:07:14]Write to MH i2c: 01 00 00 37 2B 62 [08:07:14]Write i2c OK [08:07:14]MH_I2C_Read... [08:07:14]Read from MH i2c: 01 [08:07:14]MH_I2C_Read... [08:07:14]Read from MH i2c: 01 07 00 [08:07:14]MH_I2C_Read... [08:07:14]Read from MH i2c: 01 07 00 37 2B 00 00 00 00 00 FF 0F 77 [08:07:14]RasterBufferAndPrint [08:07:14]line Счет N : (1)1962676 [08:07:14]line ИНН: 02508201610067 [08:07:14]line Контрольно-Кассовый Чек [08:07:14]line ПРОДАЖА [08:07:14]line ТРК (МРК, ГНК) : 53 [08:07:14]line Товар: 2710124130 [08:07:14]line Аи-92-К-5 [08:07:14]line 10.470 * 66.90 [08:07:14]line = 700.44 [08:07:14]line НДС 12% НСП 1% [08:07:14]line > о реализуемом товаре [08:07:14]line ОКРУГЛЕНИЕ: -0.44 [08:07:14]line ИТОГО: 700.00 [08:07:14]line Внесено: 700.00 [08:07:14]line СДАЧА: 0.00 [08:07:14]line НСП 1% : 6.20 [08:07:14]line НДС 12% : 74.38 [08:07:14]line Наличными: 700.00 [08:07:14]line Безнал.: 0.00 [08:07:14]line Место: АЗС № 133 "Партнер Нефть" [08:07:14]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [08:07:14]line СНО: Общий режим [08:07:14]line Чек 71 20.10.2024 08:07 [08:07:14]line Смена: 533 ФФД: 1.0 [08:07:14]line ЗНМ: 0300000091 [08:07:14]line РНМ: 0000000000091685 [08:07:14]line Версия ККМ: 001 [08:07:14]line ФМ: 0000000000871839 [08:07:14]line ФД: 227223 [08:07:14]line ФПД: 83857013194870 [08:07:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T080716&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227223&fm=83857013194870&tin=02508201610067®Number=0000000000091685&sum=70000 [08:07:15]OFD Sender: Processing packet 227223 [packets to send 38, broken 37] [08:07:15]ProducePacketName [08:07:15]name=ofd_packets/00227223 [08:07:15]OFD Sender: To server: pG, [08:07:15]CommunicateWithHost lk.salyk.kg:30040 [08:07:15]ConnectInit lk.salyk.kg [08:07:15]written 0, free lines is 4095 [08:07:15]Connected sock=10 [08:07:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 44 78 07 01 B3 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 34 BA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 97 77 03 00 35 04 06 00 4C 44 7B 7B C0 76 F0 56 F2 7F 85 D9 D8 25 [08:07:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 FB C2 47 00 A0 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 33 39 10 04 04 00 97 77 03 00 F4 03 04 00 34 65 14 67 B6 04 01 00 00 C7 56 F5 94 33 B1 94 43 [08:07:15]CommunicateWithHost err = 0 [08:07:15]CheckOFDResponse [08:07:15]1017 (14) - 77093643461234 [08:07:15]1041 (16) - 0000000000871839 [08:07:15]1040 (4) - 227223 [08:07:15]1012 (4) - 20.10.2024 02:04 [08:07:15]1206 (1) - 0 [08:07:15]OFD Sender: Remove packet 227223 [08:07:15]ProducePacketName [08:07:15]name=ofd_packets/00227223 [08:07:15]NVStorageDeleteData [08:07:15]Write to MH i2c: 01 00 00 61 2B 8C [08:07:15]Write i2c OK [08:07:15]MH_I2C_Read... [08:07:15]Read from MH i2c: 01 [08:07:15]MH_I2C_Read... [08:07:15]Read from MH i2c: 01 07 00 [08:07:15]MH_I2C_Read... [08:07:15]Read from MH i2c: 01 07 00 61 2B 00 00 00 00 00 12 0D B2 [08:07:15]RasterBufferAndPrint [08:07:15]line [08:07:15]line [08:07:15]line [08:07:15]line [08:07:15]line [08:07:15]written 0, free lines is 3352 [08:07:15]process_action close_receipt done [08:07:15]requested_data is exist [08:07:15]produce_requested_data [08:07:15]requested_item fm.sn is exist - process it [08:07:15]wFMCommunicate request_size=4 [08:07:15]MH_SAM_APDU [08:07:15]CAPDU: 80 11 00 00 [08:07:15]Write to MH i2c: E2 08 00 68 2B 80 11 00 00 00 00 00 00 0D [08:07:15]Write i2c OK [08:07:15]MH_I2C_Read... [08:07:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:15]Read from MH i2c: E2 [08:07:15]MH_I2C_Read... [08:07:15]Read from MH i2c: E2 17 00 [08:07:15]MH_I2C_Read... [08:07:15]Read from MH i2c: E2 17 00 68 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 64 [08:07:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:07:15]wFMCommunicate OK [08:07:15]requested_item fd.num is exist - process it [08:07:15]SAM_PROTO_GetFieldsCounters [08:07:15]wFMCommunicate request_size=4 [08:07:15]MH_SAM_APDU [08:07:15]CAPDU: 80 13 00 00 [08:07:15]Write to MH i2c: E2 08 00 69 2B 80 13 00 00 00 00 00 00 10 [08:07:15]Write i2c OK [08:07:15]MH_I2C_Read... [08:07:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:07:15]Read from MH i2c: E2 [08:07:15]MH_I2C_Read... [08:07:15]Read from MH i2c: E2 62 00 [08:07:15]MH_I2C_Read... [08:07:15]Read from MH i2c: E2 62 00 69 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 97 77 03 00 0E 04 04 00 15 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 36 [08:07: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 97 77 03 00 0E 04 04 00 15 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 [08:07:15]wFMCommunicate OK [08:07:15]SAM_PROTO_GetFieldsCounters done [08:07:15]requested_item shift.num is exist - process it [08:07:15]requested_item shift.opened is exist - process it [08:07:15]req_shift_opened [08:07:15]FM_GetShiftState [08:07:15]SAM_PROTO_GetShiftState [08:07:15]wFMCommunicate request_size=4 [08:07:15]MH_SAM_APDU [08:07:15]CAPDU: 80 13 01 00 [08:07:15]Write to MH i2c: E2 08 00 6A 2B 80 13 01 00 00 00 00 00 12 [08:07:15]Write i2c OK [08:07:15]MH_I2C_Read... [08:07:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:15]Read from MH i2c: E2 [08:07:15]MH_I2C_Read... [08:07:15]Read from MH i2c: E2 0E 00 [08:07:15]MH_I2C_Read... [08:07:15]Read from MH i2c: E2 0E 00 6A 2B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 2C [08:07:15]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:07:15]wFMCommunicate OK [08:07:15]SAM_PROTO_GetShiftState done [08:07:15]FM_GetShiftState done [08:07:15]req_shift_opened done [08:07:15]requested_item shift.open_date is exist - process it [08:07:15]req_shift_open_date [08:07:15]req_shift_open_date done [08:07:15]produce_requested_data done [08:07:15]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227223,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [08:07:15]process_action_free close_receipt [08:07:15]json_value_free [08:07:15]json_value_free done [08:07:15]process_json_proto returns [08:07:15]Send response to host [08:07:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227223,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [08:07:15]free response buf [08:07:15]execute_script done [08:07:15]execute_script returns [08:07:15]free content buf [08:07:15]Sock 8.Close socket [08:07:15]Sock 8.Thread stoped [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:42]accept exits with 9 [08:08:42]New connection [08:08:42]New thread 3066821988 created [08:08:42]Thread 3066965348 joined [08:08:42]Waiting for new connection... [08:08:42] Sock 9.Parse request [08:08:42]Sock 9.Check first char [08:08:42]Sock 9.First char is OK [08:08:42]request: POST /json_proto HTTP/1.0 [08:08:42]Method: POST [08:08:42]URL: /json_proto [08:08:42]Method is POST - this is cgi request [08:08:42]url: /json_proto [08:08:42]query_string will be loaded in cgi processing [08:08:42]execute_cgi json_proto POST (null) [08:08:42]execute_cgi path=json_proto method=POST [08:08:42]POST find Content-Length [08:08:42]Host: 172.17.44.195:8080 [08:08:42]Content-Length: 683 [08:08:42]Content-Type: application/json [08:08:42] [08:08:42]POST finish read [08:08:42]Found Content-Length = 683 [08:08:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962678", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:08:42]execute_script... [08:08:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962678", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:08:42]POST & json_proto [08:08:42]process_json_proto [08:08:42]json parsed OK: [08:08:42]protocol is kg_v1.0 [08:08:42]action value=close_receipt [08:08:42]process_action close_receipt [08:08:42]cmd_close_receipt [08:08:42]MH_GetDate [08:08:42]Write to MH i2c: F0 00 00 6B 2B 85 [08:08:42]Write i2c OK [08:08:42]MH_I2C_Read... [08:08:42]Read from MH i2c: F0 [08:08:42]MH_I2C_Read... [08:08:42]Read from MH i2c: F0 09 00 [08:08:42]MH_I2C_Read... [08:08:42]Read from MH i2c: F0 09 00 6B 2B 00 8E BA 14 67 82 C9 CF 66 D1 [08:08:42]GetLastDocTimeStamp 1729411636 [08:08:42]current date 1729411726 [08:08:42]FM_GetShiftState [08:08:42]SAM_PROTO_GetShiftState [08:08:42]wFMCommunicate request_size=4 [08:08:42]MH_SAM_APDU [08:08:42]CAPDU: 80 13 01 00 [08:08:42]Write to MH i2c: E2 08 00 6C 2B 80 13 01 00 00 00 00 00 14 [08:08:42]Write i2c OK [08:08:42]MH_I2C_Read... [08:08:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:08:42]Read from MH i2c: E2 [08:08:42]MH_I2C_Read... [08:08:42]Read from MH i2c: E2 0E 00 [08:08:42]MH_I2C_Read... [08:08:42]Read from MH i2c: E2 0E 00 6C 2B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 2E [08:08:42]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:08:42]wFMCommunicate OK [08:08:42]SAM_PROTO_GetShiftState done [08:08:42]FM_GetShiftState done [08:08:42]opened in 1729383750 [08:08:42]opened+sec_in_day 1729470150 [08:08:42]quantity*price = 100015 [08:08:42]sum+1 = 100017 [08:08:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 72 20.10.2024 08:08 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227224 ФПД: 119654325990897 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T080846&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227224&fm=119654325990897&tin=02508201610067®Number=0000000000091685&sum=100000 [08:08:44]StoreToDocumentArchive [08:08:44]shift 533 fd 227224 [08:08:44]save to /storage/0533/doc_00227224 [08:08:44]save last doc name /storage/0533/doc_00227224 to /storage/kkm_last_doc_name [08:08:44]save OK [08:08:44]Clear old archive folders... [08:08:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:08:44]tlvbuf is 00557CE0 [08:08:44]SAM_PROTO_ClearQueue [08:08:44]wFMCommunicate request_size=4 [08:08:44]MH_SAM_APDU [08:08:44]CAPDU: 80 09 00 00 [08:08:44]Write to MH i2c: E2 08 00 79 2B 80 09 00 00 00 00 00 00 16 [08:08:44]Write i2c OK [08:08:44]MH_I2C_Read... [08:08:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:08:44]Read from MH i2c: E2 [08:08:44]MH_I2C_Read... [08:08:44]Read from MH i2c: E2 03 00 [08:08:44]MH_I2C_Read... [08:08:44]Read from MH i2c: E2 03 00 79 2B 00 90 00 18 [08:08:44]RAPDU: 90 00 [08:08:44]wFMCommunicate OK [08:08:44]SAM_PROTO_ClearQueue done [08:08:44]KKMCreateOFDPacket [08:08:44]OFDProtocolAddRootSTLVToBuf [08:08:44]FM_MakeSignedData [08:08:44]FM_MakeSignedData [08:08:44]SAM_PROTO_SignData [08:08:44]wFMCommunicate request_size=4 [08:08:44]MH_SAM_APDU [08:08:44]CAPDU: 80 0D 01 02 [08:08:44]Write to MH i2c: E2 08 00 7A 2B 80 0D 01 02 00 00 00 00 1E [08:08:44]Write i2c OK [08:08:44]MH_I2C_Read... [08:08:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:08:44]Read from MH i2c: E2 [08:08:44]MH_I2C_Read... [08:08:44]Read from MH i2c: E2 03 00 [08:08:44]MH_I2C_Read... [08:08:44]Read from MH i2c: E2 03 00 7A 2B 00 90 00 19 [08:08:44]RAPDU: 90 00 [08:08:44]wFMCommunicate OK [08:08:44]wFMCommunicate request_size=255 [08:08:44]MH_SAM_APDU [08:08:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 8E BA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 98 77 03 00 35 04 06 00 6C [08:08:44]Write to MH i2c: E2 02 01 7B 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 8E BA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 98 77 03 00 35 04 06 00 6C 00 00 4F [08:08:44]Write i2c OK [08:08:44]MH_I2C_Read... [08:08:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:08:44]Read from MH i2c: E2 [08:08:44]MH_I2C_Read... [08:08:44]Read from MH i2c: E2 03 00 [08:08:44]MH_I2C_Read... [08:08:44]Read from MH i2c: E2 03 00 7B 2B 00 90 00 1A [08:08:44]RAPDU: 90 00 [08:08:44]wFMCommunicate OK [08:08:44]wFMCommunicate request_size=10 [08:08:44]MH_SAM_APDU [08:08:44]CAPDU: 80 0D 02 02 05 D3 31 98 B5 F1 [08:08:44]Write to MH i2c: E2 0D 00 7C 2B 80 0D 02 02 05 00 D3 31 98 B5 F1 00 00 6D [08:08:44]Write i2c OK [08:08:44]MH_I2C_Read... [08:08:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:08:44]Read from MH i2c: E2 [08:08:44]MH_I2C_Read... [08:08:44]Read from MH i2c: E2 03 00 [08:08:44]MH_I2C_Read... [08:08:44]Read from MH i2c: E2 03 00 7C 2B 00 90 00 1B [08:08:44]RAPDU: 90 00 [08:08:44]wFMCommunicate OK [08:08:44]wFMCommunicate request_size=4 [08:08:44]MH_SAM_APDU [08:08:44]CAPDU: 80 0D 03 02 [08:08:44]Write to MH i2c: E2 08 00 7D 2B 80 0D 03 02 00 00 00 00 23 [08:08:44]Write i2c OK [08:08:44]MH_I2C_Read... [08:08:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:08:44]Read from MH i2c: E2 [08:08:44]MH_I2C_Read... [08:08:44]Read from MH i2c: E2 0B 00 [08:08:44]MH_I2C_Read... [08:08:44]Read from MH i2c: E2 0B 00 7D 2B 00 3B 62 BF 75 9F F3 5D D3 90 00 B7 [08:08:44]RAPDU: 3B 62 BF 75 9F F3 5D D3 90 00 [08:08:44]wFMCommunicate OK [08:08:44]SAM_PROTO_SignData done [08:08:44]FM_MakeSignedData done [08:08:44]CreateOFDProtocolMessage [08:08:44]wFMCommunicate request_size=4 [08:08:44]MH_SAM_APDU [08:08:44]CAPDU: 80 11 00 00 [08:08:44]Write to MH i2c: E2 08 00 7E 2B 80 11 00 00 00 00 00 00 23 [08:08:44]Write i2c OK [08:08:44]MH_I2C_Read... [08:08:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:08:44]Read from MH i2c: E2 [08:08:44]MH_I2C_Read... [08:08:44]Read from MH i2c: E2 17 00 [08:08:44]MH_I2C_Read... [08:08:44]Read from MH i2c: E2 17 00 7E 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 7A [08:08:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:08:44]wFMCommunicate OK [08:08:44]CreateOFDProtocolMessage done [08:08:44]OFDSenderStorePacket 227224 [08:08:44]StoreOFDPacket docnum=227224 [08:08:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 5C 24 07 01 AF 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 8E BA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 98 77 03 00 35 04 06 00 6C D3 31 98 B5 F1 3B 62 BF 75 9F F3 5D D3 [08:08:44]CheckFolder [08:08:44]dirname=/storage/ofd_packets [08:08:44]CheckFolder done [08:08:44]ProducePacketName [08:08:44]name=ofd_packets/00227224 [08:08:44]NVStorageSaveData ofd_packets/00227224 [08:08:44]File name is /storage/ofd_packets/00227224 [08:08:44]Write 301 bytes [08:08:44]NVStorageSaveData done [08:08:44]OFDSenderStorePacket done [08:08:44]KKMCreateOFDPacket done [08:08:44]NVStorageSaveData kkm_last_timestamp [08:08:44]File name is /storage/kkm_last_timestamp [08:08:44]Write 4 bytes [08:08:44]NVStorageSaveData done [08:08:44]ExternCall_PrintAddStr [08:08:44]wPrintStart [08:08:44]Write to MH i2c: 01 00 00 7F 2B AA [08:08:44]Write i2c OK [08:08:44]MH_I2C_Read... [08:08:44]Read from MH i2c: 01 [08:08:44]MH_I2C_Read... [08:08:44]Read from MH i2c: 01 07 00 [08:08:44]MH_I2C_Read... [08:08:44]Read from MH i2c: 01 07 00 7F 2B 00 00 00 00 00 FF 0F BF [08:08:44]RasterBufferAndPrint [08:08:44]line Счет N : (1)1962678 [08:08:44]line ИНН: 02508201610067 [08:08:44]line Контрольно-Кассовый Чек [08:08:44]line ПРОДАЖА [08:08:44]line ТРК (МРК, ГНК) : 43 [08:08:44]line Товар: 2710124130 [08:08:44]line Аи-92-К-5 [08:08:44]line 14.950 * 66.90 [08:08:44]line = 1000.16 [08:08:44]line НДС 12% НСП 1% [08:08:44]line > о реализуемом товаре [08:08:44]line ОКРУГЛЕНИЕ: -0.16 [08:08:44]line ИТОГО: 1000.00 [08:08:44]line Внесено: 1000.00 [08:08:44]line СДАЧА: 0.00 [08:08:44]line НСП 1% : 8.85 [08:08:44]line НДС 12% : 106.21 [08:08:44]line Наличными: 1000.00 [08:08:44]line Безнал.: 0.00 [08:08:44]line Место: АЗС № 133 "Партнер Нефть" [08:08:44]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [08:08:44]line СНО: Общий режим [08:08:44]line Чек 72 20.10.2024 08:08 [08:08:44]line Смена: 533 ФФД: 1.0 [08:08:44]line ЗНМ: 0300000091 [08:08:44]line РНМ: 0000000000091685 [08:08:44]line Версия ККМ: 001 [08:08:44]line ФМ: 0000000000871839 [08:08:44]line ФД: 227224 [08:08:44]line ФПД: 119654325990897 [08:08:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T080846&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227224&fm=119654325990897&tin=02508201610067®Number=0000000000091685&sum=100000 [08:08:44]OFD Sender: Processing packet 227224 [packets to send 38, broken 37] [08:08:44]ProducePacketName [08:08:44]name=ofd_packets/00227224 [08:08:44]OFD Sender: To server: pG, [08:08:44]CommunicateWithHost lk.salyk.kg:30040 [08:08:44]ConnectInit lk.salyk.kg [08:08:44]written 0, free lines is 4095 [08:08:45]Connected sock=10 [08:08: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 33 39 0F 01 00 00 5C 24 07 01 AF 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 8E BA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 98 77 03 00 35 04 06 00 6C D3 31 98 B5 F1 3B 62 BF 75 9F F3 5D D3 [08:08: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 33 39 4F 00 00 00 53 44 47 00 F6 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 33 39 10 04 04 00 98 77 03 00 F4 03 04 00 8E 65 14 67 B6 04 01 00 00 F4 12 1D 8A 3A 08 08 D8 [08:08:45]CommunicateWithHost err = 0 [08:08:45]CheckOFDResponse [08:08:45]1017 (14) - 77093643461234 [08:08:45]1041 (16) - 0000000000871839 [08:08:45]1040 (4) - 227224 [08:08:45]1012 (4) - 20.10.2024 02:06 [08:08:45]1206 (1) - 0 [08:08:45]OFD Sender: Remove packet 227224 [08:08:45]ProducePacketName [08:08:45]name=ofd_packets/00227224 [08:08:45]NVStorageDeleteData [08:08:45]Write to MH i2c: 01 00 00 A9 2B D4 [08:08:45]Write i2c OK [08:08:45]MH_I2C_Read... [08:08:45]Read from MH i2c: 01 [08:08:45]MH_I2C_Read... [08:08:45]Read from MH i2c: 01 07 00 [08:08:45]MH_I2C_Read... [08:08:45]Read from MH i2c: 01 07 00 A9 2B 00 00 00 00 00 18 0D 00 [08:08:45]RasterBufferAndPrint [08:08:45]line [08:08:45]line [08:08:45]line [08:08:45]line [08:08:45]line [08:08:45]written 0, free lines is 3358 [08:08:45]process_action close_receipt done [08:08:45]requested_data is exist [08:08:45]produce_requested_data [08:08:45]requested_item fm.sn is exist - process it [08:08:45]wFMCommunicate request_size=4 [08:08:45]MH_SAM_APDU [08:08:45]CAPDU: 80 11 00 00 [08:08:45]Write to MH i2c: E2 08 00 B0 2B 80 11 00 00 00 00 00 00 55 [08:08:45]Write i2c OK [08:08:45]MH_I2C_Read... [08:08:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:08:45]Read from MH i2c: E2 [08:08:45]MH_I2C_Read... [08:08:45]Read from MH i2c: E2 17 00 [08:08:45]MH_I2C_Read... [08:08:45]Read from MH i2c: E2 17 00 B0 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 AC [08:08:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:08:45]wFMCommunicate OK [08:08:45]requested_item fd.num is exist - process it [08:08:45]SAM_PROTO_GetFieldsCounters [08:08:45]wFMCommunicate request_size=4 [08:08:45]MH_SAM_APDU [08:08:45]CAPDU: 80 13 00 00 [08:08:45]Write to MH i2c: E2 08 00 B1 2B 80 13 00 00 00 00 00 00 58 [08:08:45]Write i2c OK [08:08:45]MH_I2C_Read... [08:08:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:08:45]Read from MH i2c: E2 [08:08:45]MH_I2C_Read... [08:08:45]Read from MH i2c: E2 62 00 [08:08:45]MH_I2C_Read... [08:08:45]Read from MH i2c: E2 62 00 B1 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 98 77 03 00 0E 04 04 00 15 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 82 [08:08:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 98 77 03 00 0E 04 04 00 15 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 [08:08:45]wFMCommunicate OK [08:08:45]SAM_PROTO_GetFieldsCounters done [08:08:45]requested_item shift.num is exist - process it [08:08:45]requested_item shift.opened is exist - process it [08:08:45]req_shift_opened [08:08:45]FM_GetShiftState [08:08:45]SAM_PROTO_GetShiftState [08:08:45]wFMCommunicate request_size=4 [08:08:45]MH_SAM_APDU [08:08:45]CAPDU: 80 13 01 00 [08:08:45]Write to MH i2c: E2 08 00 B2 2B 80 13 01 00 00 00 00 00 5A [08:08:45]Write i2c OK [08:08:45]MH_I2C_Read... [08:08:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:08:45]Read from MH i2c: E2 [08:08:45]MH_I2C_Read... [08:08:45]Read from MH i2c: E2 0E 00 [08:08:45]MH_I2C_Read... [08:08:45]Read from MH i2c: E2 0E 00 B2 2B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 74 [08:08:45]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:08:45]wFMCommunicate OK [08:08:45]SAM_PROTO_GetShiftState done [08:08:45]FM_GetShiftState done [08:08:45]req_shift_opened done [08:08:45]requested_item shift.open_date is exist - process it [08:08:45]req_shift_open_date [08:08:45]req_shift_open_date done [08:08:45]produce_requested_data done [08:08:45]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227224,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [08:08:45]process_action_free close_receipt [08:08:45]json_value_free [08:08:45]json_value_free done [08:08:45]process_json_proto returns [08:08:45]Send response to host [08:08:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227224,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [08:08:45]free response buf [08:08:45]execute_script done [08:08:45]execute_script returns [08:08:45]free content buf [08:08:45]Sock 9.Close socket [08:08:45]Sock 9.Thread stoped [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:35]OFD Sender: No OFD packet to send [08:10:40]OFD Sender: No OFD packet to send [08:10:45]OFD Sender: No OFD packet to send [08:10:47]accept exits with 8 [08:10:47]New connection [08:10:47]New thread 3066965348 created [08:10:47]Thread 3066821988 joined [08:10:47]Waiting for new connection... [08:10:47] Sock 8.Parse request [08:10:47]Sock 8.Check first char [08:10:47]Sock 8.First char is OK [08:10:47]request: POST /json_proto HTTP/1.0 [08:10:47]Method: POST [08:10:47]URL: /json_proto [08:10:47]Method is POST - this is cgi request [08:10:47]url: /json_proto [08:10:47]query_string will be loaded in cgi processing [08:10:47]execute_cgi json_proto POST (null) [08:10:47]execute_cgi path=json_proto method=POST [08:10:47]POST find Content-Length [08:10:47]Host: 172.17.44.195:8080 [08:10:47]Content-Length: 678 [08:10:47]Content-Type: application/json [08:10:47] [08:10:47]POST finish read [08:10:47]Found Content-Length = 678 [08:10:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962679", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:10:47]execute_script... [08:10: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)1962679", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:10:47]POST & json_proto [08:10:47]process_json_proto [08:10:47]json parsed OK: [08:10:47]protocol is kg_v1.0 [08:10:47]action value=close_receipt [08:10:47]process_action close_receipt [08:10:47]cmd_close_receipt [08:10:47]MH_GetDate [08:10:47]Write to MH i2c: F0 00 00 B3 2B CD [08:10:47]Write i2c OK [08:10:47]MH_I2C_Read... [08:10:47]Read from MH i2c: F0 [08:10:47]MH_I2C_Read... [08:10:47]Read from MH i2c: F0 09 00 [08:10:47]MH_I2C_Read... [08:10:47]Read from MH i2c: F0 09 00 B3 2B 00 0B BB 14 67 82 C9 CF 66 97 [08:10:47]GetLastDocTimeStamp 1729411726 [08:10:47]current date 1729411851 [08:10:47]FM_GetShiftState [08:10:47]SAM_PROTO_GetShiftState [08:10:47]wFMCommunicate request_size=4 [08:10:47]MH_SAM_APDU [08:10:47]CAPDU: 80 13 01 00 [08:10:47]Write to MH i2c: E2 08 00 B4 2B 80 13 01 00 00 00 00 00 5C [08:10:47]Write i2c OK [08:10:47]MH_I2C_Read... [08:10:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:10:47]Read from MH i2c: E2 [08:10:47]MH_I2C_Read... [08:10:47]Read from MH i2c: E2 0E 00 [08:10:47]MH_I2C_Read... [08:10:47]Read from MH i2c: E2 0E 00 B4 2B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 76 [08:10:47]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:10:47]wFMCommunicate OK [08:10:47]SAM_PROTO_GetShiftState done [08:10:47]FM_GetShiftState done [08:10:47]opened in 1729383750 [08:10:47]opened+sec_in_day 1729470150 [08:10:47]quantity*price = 50041 [08:10:47]sum+1 = 50042 [08:10:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 73 20.10.2024 08:10 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227225 ФПД: 47150416023153 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T081051&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227225&fm=47150416023153&tin=02508201610067®Number=0000000000091685&sum=50000 [08:10:48]StoreToDocumentArchive [08:10:48]shift 533 fd 227225 [08:10:48]save to /storage/0533/doc_00227225 [08:10:48]save last doc name /storage/0533/doc_00227225 to /storage/kkm_last_doc_name [08:10:48]save OK [08:10:48]Clear old archive folders... [08:10:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:10:48]tlvbuf is 00516E30 [08:10:48]SAM_PROTO_ClearQueue [08:10:48]wFMCommunicate request_size=4 [08:10:48]MH_SAM_APDU [08:10:48]CAPDU: 80 09 00 00 [08:10:48]Write to MH i2c: E2 08 00 C1 2B 80 09 00 00 00 00 00 00 5E [08:10:48]Write i2c OK [08:10:48]MH_I2C_Read... [08:10:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:10:48]Read from MH i2c: E2 [08:10:48]MH_I2C_Read... [08:10:48]Read from MH i2c: E2 03 00 [08:10:48]MH_I2C_Read... [08:10:48]Read from MH i2c: E2 03 00 C1 2B 00 90 00 60 [08:10:48]RAPDU: 90 00 [08:10:48]wFMCommunicate OK [08:10:48]SAM_PROTO_ClearQueue done [08:10:48]KKMCreateOFDPacket [08:10:48]OFDProtocolAddRootSTLVToBuf [08:10:48]FM_MakeSignedData [08:10:48]FM_MakeSignedData [08:10:48]SAM_PROTO_SignData [08:10:48]wFMCommunicate request_size=4 [08:10:48]MH_SAM_APDU [08:10:48]CAPDU: 80 0D 01 02 [08:10:48]Write to MH i2c: E2 08 00 C2 2B 80 0D 01 02 00 00 00 00 66 [08:10:48]Write i2c OK [08:10:48]MH_I2C_Read... [08:10:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:10:48]Read from MH i2c: E2 [08:10:48]MH_I2C_Read... [08:10:48]Read from MH i2c: E2 03 00 [08:10:48]MH_I2C_Read... [08:10:48]Read from MH i2c: E2 03 00 C2 2B 00 90 00 61 [08:10:48]RAPDU: 90 00 [08:10:48]wFMCommunicate OK [08:10:48]wFMCommunicate request_size=255 [08:10:48]MH_SAM_APDU [08:10:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 0B BB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 99 77 03 00 35 04 06 00 2A [08:10:48]Write to MH i2c: E2 02 01 C3 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 0B BB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 99 77 03 00 35 04 06 00 2A 00 00 DB [08:10:48]Write i2c OK [08:10:48]MH_I2C_Read... [08:10:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:10:49]Read from MH i2c: E2 [08:10:49]MH_I2C_Read... [08:10:49]Read from MH i2c: E2 03 00 [08:10:49]MH_I2C_Read... [08:10:49]Read from MH i2c: E2 03 00 C3 2B 00 90 00 62 [08:10:49]RAPDU: 90 00 [08:10:49]wFMCommunicate OK [08:10:49]wFMCommunicate request_size=10 [08:10:49]MH_SAM_APDU [08:10:49]CAPDU: 80 0D 02 02 05 E2 0F CC 4E 71 [08:10:49]Write to MH i2c: E2 0D 00 C4 2B 80 0D 02 02 05 00 E2 0F CC 4E 71 00 00 EF [08:10:49]Write i2c OK [08:10:49]MH_I2C_Read... [08:10:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:10:49]Read from MH i2c: E2 [08:10:49]MH_I2C_Read... [08:10:49]Read from MH i2c: E2 03 00 [08:10:49]MH_I2C_Read... [08:10:49]Read from MH i2c: E2 03 00 C4 2B 00 90 00 63 [08:10:49]RAPDU: 90 00 [08:10:49]wFMCommunicate OK [08:10:49]wFMCommunicate request_size=4 [08:10:49]MH_SAM_APDU [08:10:49]CAPDU: 80 0D 03 02 [08:10:49]Write to MH i2c: E2 08 00 C5 2B 80 0D 03 02 00 00 00 00 6B [08:10:49]Write i2c OK [08:10:49]MH_I2C_Read... [08:10:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:10:49]Read from MH i2c: E2 [08:10:49]MH_I2C_Read... [08:10:49]Read from MH i2c: E2 0B 00 [08:10:49]MH_I2C_Read... [08:10:49]Read from MH i2c: E2 0B 00 C5 2B 00 9F A5 F1 7D C8 08 24 AF 90 00 C1 [08:10:49]RAPDU: 9F A5 F1 7D C8 08 24 AF 90 00 [08:10:49]wFMCommunicate OK [08:10:49]SAM_PROTO_SignData done [08:10:49]FM_MakeSignedData done [08:10:49]CreateOFDProtocolMessage [08:10:49]wFMCommunicate request_size=4 [08:10:49]MH_SAM_APDU [08:10:49]CAPDU: 80 11 00 00 [08:10:49]Write to MH i2c: E2 08 00 C6 2B 80 11 00 00 00 00 00 00 6B [08:10:49]Write i2c OK [08:10:49]MH_I2C_Read... [08:10:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:10:49]Read from MH i2c: E2 [08:10:49]MH_I2C_Read... [08:10:49]Read from MH i2c: E2 17 00 [08:10:49]MH_I2C_Read... [08:10:49]Read from MH i2c: E2 17 00 C6 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C2 [08:10:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:10:49]wFMCommunicate OK [08:10:49]CreateOFDProtocolMessage done [08:10:49]OFDSenderStorePacket 227225 [08:10:49]StoreOFDPacket docnum=227225 [08:10:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 43 7C 07 01 D4 ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 0B BB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 99 77 03 00 35 04 06 00 2A E2 0F CC 4E 71 9F A5 F1 7D C8 08 24 AF [08:10:49]CheckFolder [08:10:49]dirname=/storage/ofd_packets [08:10:49]CheckFolder done [08:10:49]ProducePacketName [08:10:49]name=ofd_packets/00227225 [08:10:49]NVStorageSaveData ofd_packets/00227225 [08:10:49]File name is /storage/ofd_packets/00227225 [08:10:49]Write 301 bytes [08:10:49]NVStorageSaveData done [08:10:49]OFDSenderStorePacket done [08:10:49]KKMCreateOFDPacket done [08:10:49]NVStorageSaveData kkm_last_timestamp [08:10:49]File name is /storage/kkm_last_timestamp [08:10:49]Write 4 bytes [08:10:49]NVStorageSaveData done [08:10:49]ExternCall_PrintAddStr [08:10:49]wPrintStart [08:10:49]Write to MH i2c: 01 00 00 C7 2B F2 [08:10:49]Write i2c OK [08:10:49]MH_I2C_Read... [08:10:49]Read from MH i2c: 01 [08:10:49]MH_I2C_Read... [08:10:49]Read from MH i2c: 01 07 00 [08:10:49]MH_I2C_Read... [08:10:49]Read from MH i2c: 01 07 00 C7 2B 00 00 00 00 00 FF 0F 07 [08:10:49]RasterBufferAndPrint [08:10:49]line Счет N : (1)1962679 [08:10:49]line ИНН: 02508201610067 [08:10:49]line Контрольно-Кассовый Чек [08:10:49]line ПРОДАЖА [08:10:49]line ТРК (МРК, ГНК) : 43 [08:10:49]line Товар: 2710124130 [08:10:49]line Аи-92-К-5 [08:10:49]line 7.480 * 66.90 [08:10:49]line = 500.41 [08:10:49]line НДС 12% НСП 1% [08:10:49]line > о реализуемом товаре [08:10:49]line ОКРУГЛЕНИЕ: -0.41 [08:10:49]line ИТОГО: 500.00 [08:10:49]line Внесено: 500.00 [08:10:49]line СДАЧА: 0.00 [08:10:49]line НСП 1% : 4.43 [08:10:49]line НДС 12% : 53.14 [08:10:49]line Наличными: 500.00 [08:10:49]line Безнал.: 0.00 [08:10:49]line Место: АЗС № 133 "Партнер Нефть" [08:10:49]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [08:10:49]line СНО: Общий режим [08:10:49]line Чек 73 20.10.2024 08:10 [08:10:49]line Смена: 533 ФФД: 1.0 [08:10:49]line ЗНМ: 0300000091 [08:10:49]line РНМ: 0000000000091685 [08:10:49]line Версия ККМ: 001 [08:10:49]line ФМ: 0000000000871839 [08:10:49]line ФД: 227225 [08:10:49]line ФПД: 47150416023153 [08:10:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T081051&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227225&fm=47150416023153&tin=02508201610067®Number=0000000000091685&sum=50000 [08:10:49]written 0, free lines is 4095 [08:10:49]OFD Sender: Processing packet 227225 [packets to send 38, broken 37] [08:10:49]ProducePacketName [08:10:49]name=ofd_packets/00227225 [08:10:49]OFD Sender: To server: pG, [08:10:49]CommunicateWithHost lk.salyk.kg:30040 [08:10:49]ConnectInit lk.salyk.kg [08:10:49]Connected sock=10 [08:10: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 33 39 0F 01 00 00 43 7C 07 01 D4 ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 0B BB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 99 77 03 00 35 04 06 00 2A E2 0F CC 4E 71 9F A5 F1 7D C8 08 24 AF [08:10: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 33 39 4F 00 00 00 4B D2 47 00 D0 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 33 39 10 04 04 00 99 77 03 00 F4 03 04 00 0A 66 14 67 B6 04 01 00 00 EF FC E7 0E 0B 37 B3 84 [08:10:49]CommunicateWithHost err = 0 [08:10:49]CheckOFDResponse [08:10:49]1017 (14) - 77093643461234 [08:10:49]1041 (16) - 0000000000871839 [08:10:49]1040 (4) - 227225 [08:10:49]1012 (4) - 20.10.2024 02:08 [08:10:49]1206 (1) - 0 [08:10:49]OFD Sender: Remove packet 227225 [08:10:49]ProducePacketName [08:10:49]name=ofd_packets/00227225 [08:10:49]NVStorageDeleteData [08:10:49]Write to MH i2c: 01 00 00 F1 2B 1C [08:10:49]Write i2c OK [08:10:49]MH_I2C_Read... [08:10:49]Read from MH i2c: 01 [08:10:49]MH_I2C_Read... [08:10:49]Read from MH i2c: 01 07 00 [08:10:49]MH_I2C_Read... [08:10:49]Read from MH i2c: 01 07 00 F1 2B 00 00 00 00 00 02 0D 32 [08:10:49]RasterBufferAndPrint [08:10:49]line [08:10:49]line [08:10:49]line [08:10:49]line [08:10:49]line [08:10:49]written 0, free lines is 3336 [08:10:49]process_action close_receipt done [08:10:49]requested_data is exist [08:10:49]produce_requested_data [08:10:49]requested_item fm.sn is exist - process it [08:10:49]wFMCommunicate request_size=4 [08:10:49]MH_SAM_APDU [08:10:49]CAPDU: 80 11 00 00 [08:10:49]Write to MH i2c: E2 08 00 F8 2B 80 11 00 00 00 00 00 00 9D [08:10:49]Write i2c OK [08:10:49]MH_I2C_Read... [08:10:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:10:50]Read from MH i2c: E2 [08:10:50]MH_I2C_Read... [08:10:50]Read from MH i2c: E2 17 00 [08:10:50]MH_I2C_Read... [08:10:50]Read from MH i2c: E2 17 00 F8 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F4 [08:10:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:10:50]wFMCommunicate OK [08:10:50]requested_item fd.num is exist - process it [08:10:50]SAM_PROTO_GetFieldsCounters [08:10:50]wFMCommunicate request_size=4 [08:10:50]MH_SAM_APDU [08:10:50]CAPDU: 80 13 00 00 [08:10:50]Write to MH i2c: E2 08 00 F9 2B 80 13 00 00 00 00 00 00 A0 [08:10:50]Write i2c OK [08:10:50]MH_I2C_Read... [08:10:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:10:50]Read from MH i2c: E2 [08:10:50]MH_I2C_Read... [08:10:50]Read from MH i2c: E2 62 00 [08:10:50]MH_I2C_Read... [08:10:50]Read from MH i2c: E2 62 00 F9 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 99 77 03 00 0E 04 04 00 15 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 CE [08:10: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 99 77 03 00 0E 04 04 00 15 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 [08:10:50]wFMCommunicate OK [08:10:50]SAM_PROTO_GetFieldsCounters done [08:10:50]requested_item shift.num is exist - process it [08:10:50]requested_item shift.opened is exist - process it [08:10:50]req_shift_opened [08:10:50]FM_GetShiftState [08:10:50]SAM_PROTO_GetShiftState [08:10:50]wFMCommunicate request_size=4 [08:10:50]MH_SAM_APDU [08:10:50]CAPDU: 80 13 01 00 [08:10:50]Write to MH i2c: E2 08 00 FA 2B 80 13 01 00 00 00 00 00 A2 [08:10:50]Write i2c OK [08:10:50]MH_I2C_Read... [08:10:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:10:50]Read from MH i2c: E2 [08:10:50]MH_I2C_Read... [08:10:50]Read from MH i2c: E2 0E 00 [08:10:50]MH_I2C_Read... [08:10:50]Read from MH i2c: E2 0E 00 FA 2B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 BC [08:10:50]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:10:50]wFMCommunicate OK [08:10:50]SAM_PROTO_GetShiftState done [08:10:50]FM_GetShiftState done [08:10:50]req_shift_opened done [08:10:50]requested_item shift.open_date is exist - process it [08:10:50]req_shift_open_date [08:10:50]req_shift_open_date done [08:10:50]produce_requested_data done [08:10:50]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227225,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [08:10:50]process_action_free close_receipt [08:10:50]json_value_free [08:10:50]json_value_free done [08:10:50]process_json_proto returns [08:10:50]Send response to host [08:10:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227225,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [08:10:50]free response buf [08:10:50]execute_script done [08:10:50]execute_script returns [08:10:50]free content buf [08:10:50]Sock 8.Close socket [08:10:50]Sock 8.Thread stoped [08:10:50]OFD Sender: No OFD packet to send [08:10:55]OFD Sender: No OFD packet to send [08:11:00]OFD Sender: No OFD packet to send [08:11:05]OFD Sender: No OFD packet to send [08:11:10]OFD Sender: No OFD packet to send [08:11:15]OFD Sender: No OFD packet to send [08:11:20]OFD Sender: No OFD packet to send [08:11:25]OFD Sender: No OFD packet to send [08:11:30]OFD Sender: No OFD packet to send [08:11:35]OFD Sender: No OFD packet to send [08:11:40]OFD Sender: No OFD packet to send [08:11:45]OFD Sender: No OFD packet to send [08:11:50]OFD Sender: No OFD packet to send [08:11:55]OFD Sender: No OFD packet to send [08:12:00]OFD Sender: No OFD packet to send [08:12:05]OFD Sender: No OFD packet to send [08:12:10]OFD Sender: No OFD packet to send [08:12:15]OFD Sender: No OFD packet to send [08:12:20]OFD Sender: No OFD packet to send [08:12:25]OFD Sender: No OFD packet to send [08:12:30]OFD Sender: No OFD packet to send [08:12:35]OFD Sender: No OFD packet to send [08:12:40]OFD Sender: No OFD packet to send [08:12:45]OFD Sender: No OFD packet to send [08:12:50]OFD Sender: No OFD packet to send [08:12:55]OFD Sender: No OFD packet to send [08:12:56]accept exits with 9 [08:12:56]New connection [08:12:56]New thread 3066821988 created [08:12:56]Thread 3066965348 joined [08:12:56]Waiting for new connection... [08:12:56] Sock 9.Parse request [08:12:56]Sock 9.Check first char [08:12:56]Sock 9.First char is OK [08:12:56]request: POST /json_proto HTTP/1.0 [08:12:56]Method: POST [08:12:56]URL: /json_proto [08:12:56]Method is POST - this is cgi request [08:12:56]url: /json_proto [08:12:56]query_string will be loaded in cgi processing [08:12:56]execute_cgi json_proto POST (null) [08:12:56]execute_cgi path=json_proto method=POST [08:12:56]POST find Content-Length [08:12:56]Host: 172.17.44.195:8080 [08:12:56]Content-Length: 679 [08:12:56]Content-Type: application/json [08:12:56] [08:12:56]POST finish read [08:12:56]Found Content-Length = 679 [08:12:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962680", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:12:56]execute_script... [08:12: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)1962680", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:12:56]POST & json_proto [08:12:56]process_json_proto [08:12:56]json parsed OK: [08:12:56]protocol is kg_v1.0 [08:12:56]action value=close_receipt [08:12:56]process_action close_receipt [08:12:56]cmd_close_receipt [08:12:56]MH_GetDate [08:12:56]Write to MH i2c: F0 00 00 FB 2B 15 [08:12:56]Write i2c OK [08:12:56]MH_I2C_Read... [08:12:56]Read from MH i2c: F0 [08:12:56]MH_I2C_Read... [08:12:56]Read from MH i2c: F0 09 00 [08:12:56]MH_I2C_Read... [08:12:56]Read from MH i2c: F0 09 00 FB 2B 00 8C BB 14 67 82 C9 CF 66 60 [08:12:56]GetLastDocTimeStamp 1729411851 [08:12:56]current date 1729411980 [08:12:56]FM_GetShiftState [08:12:56]SAM_PROTO_GetShiftState [08:12:56]wFMCommunicate request_size=4 [08:12:56]MH_SAM_APDU [08:12:56]CAPDU: 80 13 01 00 [08:12:56]Write to MH i2c: E2 08 00 FC 2B 80 13 01 00 00 00 00 00 A4 [08:12:56]Write i2c OK [08:12:56]MH_I2C_Read... [08:12:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:12:56]Read from MH i2c: E2 [08:12:56]MH_I2C_Read... [08:12:56]Read from MH i2c: E2 0E 00 [08:12:56]MH_I2C_Read... [08:12:56]Read from MH i2c: E2 0E 00 FC 2B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 BE [08:12:56]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:12:56]wFMCommunicate OK [08:12:56]SAM_PROTO_GetShiftState done [08:12:56]FM_GetShiftState done [08:12:56]opened in 1729383750 [08:12:56]opened+sec_in_day 1729470150 [08:12:56]quantity*price = 70044 [08:12:56]sum+1 = 70045 [08:12:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 74 20.10.2024 08:13 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227226 ФПД: 148889638332786 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T081300&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227226&fm=148889638332786&tin=02508201610067®Number=0000000000091685&sum=70000 [08:12:58]StoreToDocumentArchive [08:12:58]shift 533 fd 227226 [08:12:58]save to /storage/0533/doc_00227226 [08:12:58]save last doc name /storage/0533/doc_00227226 to /storage/kkm_last_doc_name [08:12:58]save OK [08:12:58]Clear old archive folders... [08:12:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:12:58]tlvbuf is 005FAEA0 [08:12:58]SAM_PROTO_ClearQueue [08:12:58]wFMCommunicate request_size=4 [08:12:58]MH_SAM_APDU [08:12:58]CAPDU: 80 09 00 00 [08:12:58]Write to MH i2c: E2 08 00 09 2C 80 09 00 00 00 00 00 00 A7 [08:12:58]Write i2c OK [08:12:58]MH_I2C_Read... [08:12:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:12:58]Read from MH i2c: E2 [08:12:58]MH_I2C_Read... [08:12:58]Read from MH i2c: E2 03 00 [08:12:58]MH_I2C_Read... [08:12:58]Read from MH i2c: E2 03 00 09 2C 00 90 00 A9 [08:12:58]RAPDU: 90 00 [08:12:58]wFMCommunicate OK [08:12:58]SAM_PROTO_ClearQueue done [08:12:58]KKMCreateOFDPacket [08:12:58]OFDProtocolAddRootSTLVToBuf [08:12:58]FM_MakeSignedData [08:12:58]FM_MakeSignedData [08:12:58]SAM_PROTO_SignData [08:12:58]wFMCommunicate request_size=4 [08:12:58]MH_SAM_APDU [08:12:58]CAPDU: 80 0D 01 02 [08:12:58]Write to MH i2c: E2 08 00 0A 2C 80 0D 01 02 00 00 00 00 AF [08:12:58]Write i2c OK [08:12:58]MH_I2C_Read... [08:12:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:12:58]Read from MH i2c: E2 [08:12:58]MH_I2C_Read... [08:12:58]Read from MH i2c: E2 03 00 [08:12:58]MH_I2C_Read... [08:12:58]Read from MH i2c: E2 03 00 0A 2C 00 90 00 AA [08:12:58]RAPDU: 90 00 [08:12:58]wFMCommunicate OK [08:12:58]wFMCommunicate request_size=255 [08:12:58]MH_SAM_APDU [08:12:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 8C BB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9A 77 03 00 35 04 06 00 87 [08:12:58]Write to MH i2c: E2 02 01 0B 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 8C BB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9A 77 03 00 35 04 06 00 87 00 00 14 [08:12:58]Write i2c OK [08:12:58]MH_I2C_Read... [08:12:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:12:58]Read from MH i2c: E2 [08:12:58]MH_I2C_Read... [08:12:58]Read from MH i2c: E2 03 00 [08:12:58]MH_I2C_Read... [08:12:58]Read from MH i2c: E2 03 00 0B 2C 00 90 00 AB [08:12:58]RAPDU: 90 00 [08:12:58]wFMCommunicate OK [08:12:58]wFMCommunicate request_size=10 [08:12:58]MH_SAM_APDU [08:12:58]CAPDU: 80 0D 02 02 05 6A 12 00 E9 72 [08:12:58]Write to MH i2c: E2 0D 00 0C 2C 80 0D 02 02 05 00 6A 12 00 E9 72 00 00 93 [08:12:58]Write i2c OK [08:12:58]MH_I2C_Read... [08:12:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:12:58]Read from MH i2c: E2 [08:12:58]MH_I2C_Read... [08:12:58]Read from MH i2c: E2 03 00 [08:12:58]MH_I2C_Read... [08:12:58]Read from MH i2c: E2 03 00 0C 2C 00 90 00 AC [08:12:58]RAPDU: 90 00 [08:12:58]wFMCommunicate OK [08:12:58]wFMCommunicate request_size=4 [08:12:58]MH_SAM_APDU [08:12:58]CAPDU: 80 0D 03 02 [08:12:58]Write to MH i2c: E2 08 00 0D 2C 80 0D 03 02 00 00 00 00 B4 [08:12:58]Write i2c OK [08:12:58]MH_I2C_Read... [08:12:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:12:58]Read from MH i2c: E2 [08:12:58]MH_I2C_Read... [08:12:58]Read from MH i2c: E2 0B 00 [08:12:58]MH_I2C_Read... [08:12:58]Read from MH i2c: E2 0B 00 0D 2C 00 77 5B D9 F6 41 7E D6 E2 90 00 CD [08:12:58]RAPDU: 77 5B D9 F6 41 7E D6 E2 90 00 [08:12:58]wFMCommunicate OK [08:12:58]SAM_PROTO_SignData done [08:12:58]FM_MakeSignedData done [08:12:58]CreateOFDProtocolMessage [08:12:58]wFMCommunicate request_size=4 [08:12:58]MH_SAM_APDU [08:12:58]CAPDU: 80 11 00 00 [08:12:58]Write to MH i2c: E2 08 00 0E 2C 80 11 00 00 00 00 00 00 B4 [08:12:58]Write i2c OK [08:12:58]MH_I2C_Read... [08:12:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:12:58]Read from MH i2c: E2 [08:12:58]MH_I2C_Read... [08:12:58]Read from MH i2c: E2 17 00 [08:12:58]MH_I2C_Read... [08:12:58]Read from MH i2c: E2 17 00 0E 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 0B [08:12:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:12:58]wFMCommunicate OK [08:12:58]CreateOFDProtocolMessage done [08:12:58]OFDSenderStorePacket 227226 [08:12:58]StoreOFDPacket docnum=227226 [08:12:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 31 B5 07 01 CD 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 8C BB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9A 77 03 00 35 04 06 00 87 6A 12 00 E9 72 77 5B D9 F6 41 7E D6 E2 [08:12:58]CheckFolder [08:12:58]dirname=/storage/ofd_packets [08:12:58]CheckFolder done [08:12:58]ProducePacketName [08:12:58]name=ofd_packets/00227226 [08:12:58]NVStorageSaveData ofd_packets/00227226 [08:12:58]File name is /storage/ofd_packets/00227226 [08:12:58]Write 301 bytes [08:12:58]NVStorageSaveData done [08:12:58]OFDSenderStorePacket done [08:12:58]KKMCreateOFDPacket done [08:12:58]NVStorageSaveData kkm_last_timestamp [08:12:58]File name is /storage/kkm_last_timestamp [08:12:58]Write 4 bytes [08:12:58]NVStorageSaveData done [08:12:58]ExternCall_PrintAddStr [08:12:58]wPrintStart [08:12:58]Write to MH i2c: 01 00 00 0F 2C 3B [08:12:58]Write i2c OK [08:12:58]MH_I2C_Read... [08:12:58]Read from MH i2c: 01 [08:12:58]MH_I2C_Read... [08:12:58]Read from MH i2c: 01 07 00 [08:12:58]MH_I2C_Read... [08:12:58]Read from MH i2c: 01 07 00 0F 2C 00 00 00 00 00 FF 0F 50 [08:12:58]RasterBufferAndPrint [08:12:58]line Счет N : (1)1962680 [08:12:58]line ИНН: 02508201610067 [08:12:58]line Контрольно-Кассовый Чек [08:12:58]line ПРОДАЖА [08:12:58]line ТРК (МРК, ГНК) : 33 [08:12:58]line Товар: 2710124130 [08:12:58]line Аи-92-К-5 [08:12:58]line 10.470 * 66.90 [08:12:58]line = 700.44 [08:12:58]line НДС 12% НСП 1% [08:12:58]line > о реализуемом товаре [08:12:58]line ОКРУГЛЕНИЕ: -0.44 [08:12:58]line ИТОГО: 700.00 [08:12:58]line Внесено: 700.00 [08:12:58]line СДАЧА: 0.00 [08:12:58]line НСП 1% : 6.20 [08:12:58]line НДС 12% : 74.38 [08:12:58]line Наличными: 700.00 [08:12:58]line Безнал.: 0.00 [08:12:58]line Место: АЗС № 133 "Партнер Нефть" [08:12:58]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [08:12:58]line СНО: Общий режим [08:12:58]line Чек 74 20.10.2024 08:13 [08:12:58]line Смена: 533 ФФД: 1.0 [08:12:58]line ЗНМ: 0300000091 [08:12:58]line РНМ: 0000000000091685 [08:12:58]line Версия ККМ: 001 [08:12:58]line ФМ: 0000000000871839 [08:12:58]line ФД: 227226 [08:12:58]line ФПД: 148889638332786 [08:12:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T081300&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227226&fm=148889638332786&tin=02508201610067®Number=0000000000091685&sum=70000 [08:12:58]OFD Sender: Processing packet 227226 [packets to send 38, broken 37] [08:12:58]ProducePacketName [08:12:58]name=ofd_packets/00227226 [08:12:58]OFD Sender: To server: pG, [08:12:58]CommunicateWithHost lk.salyk.kg:30040 [08:12:58]ConnectInit lk.salyk.kg [08:12:58]written 0, free lines is 4095 [08:12:58]Connected sock=10 [08:12: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 33 39 0F 01 00 00 31 B5 07 01 CD 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 8C BB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9A 77 03 00 35 04 06 00 87 6A 12 00 E9 72 77 5B D9 F6 41 7E D6 E2 [08:12: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 33 39 4F 00 00 00 A1 40 47 00 5B 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9A 77 03 00 F4 03 04 00 8C 66 14 67 B6 04 01 00 00 8D 5B 6A A9 0E C5 58 60 [08:12:59]CommunicateWithHost err = 0 [08:12:59]CheckOFDResponse [08:12:59]1017 (14) - 77093643461234 [08:12:59]1041 (16) - 0000000000871839 [08:12:59]1040 (4) - 227226 [08:12:59]1012 (4) - 20.10.2024 02:10 [08:12:59]1206 (1) - 0 [08:12:59]OFD Sender: Remove packet 227226 [08:12:59]ProducePacketName [08:12:59]name=ofd_packets/00227226 [08:12:59]NVStorageDeleteData [08:12:59]Write to MH i2c: 01 00 00 39 2C 65 [08:12:59]Write i2c OK [08:12:59]MH_I2C_Read... [08:12:59]Read from MH i2c: 01 [08:12:59]MH_I2C_Read... [08:12:59]Read from MH i2c: 01 07 00 [08:12:59]MH_I2C_Read... [08:12:59]Read from MH i2c: 01 07 00 39 2C 00 00 00 00 00 15 0D 8E [08:12:59]RasterBufferAndPrint [08:12:59]line [08:12:59]line [08:12:59]line [08:12:59]line [08:12:59]line [08:12:59]written 0, free lines is 3356 [08:12:59]process_action close_receipt done [08:12:59]requested_data is exist [08:12:59]produce_requested_data [08:12:59]requested_item fm.sn is exist - process it [08:12:59]wFMCommunicate request_size=4 [08:12:59]MH_SAM_APDU [08:12:59]CAPDU: 80 11 00 00 [08:12:59]Write to MH i2c: E2 08 00 40 2C 80 11 00 00 00 00 00 00 E6 [08:12:59]Write i2c OK [08:12:59]MH_I2C_Read... [08:12:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:12:59]Read from MH i2c: E2 [08:12:59]MH_I2C_Read... [08:12:59]Read from MH i2c: E2 17 00 [08:12:59]MH_I2C_Read... [08:12:59]Read from MH i2c: E2 17 00 40 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 3D [08:12:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:12:59]wFMCommunicate OK [08:12:59]requested_item fd.num is exist - process it [08:12:59]SAM_PROTO_GetFieldsCounters [08:12:59]wFMCommunicate request_size=4 [08:12:59]MH_SAM_APDU [08:12:59]CAPDU: 80 13 00 00 [08:12:59]Write to MH i2c: E2 08 00 41 2C 80 13 00 00 00 00 00 00 E9 [08:12:59]Write i2c OK [08:12:59]MH_I2C_Read... [08:12:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:12:59]Read from MH i2c: E2 [08:12:59]MH_I2C_Read... [08:12:59]Read from MH i2c: E2 62 00 [08:12:59]MH_I2C_Read... [08:12:59]Read from MH i2c: E2 62 00 41 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 9A 77 03 00 0E 04 04 00 15 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 1B [08:12:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 9A 77 03 00 0E 04 04 00 15 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 [08:12:59]wFMCommunicate OK [08:12:59]SAM_PROTO_GetFieldsCounters done [08:12:59]requested_item shift.num is exist - process it [08:12:59]requested_item shift.opened is exist - process it [08:12:59]req_shift_opened [08:12:59]FM_GetShiftState [08:12:59]SAM_PROTO_GetShiftState [08:12:59]wFMCommunicate request_size=4 [08:12:59]MH_SAM_APDU [08:12:59]CAPDU: 80 13 01 00 [08:12:59]Write to MH i2c: E2 08 00 42 2C 80 13 01 00 00 00 00 00 EB [08:12:59]Write i2c OK [08:12:59]MH_I2C_Read... [08:12:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:12:59]Read from MH i2c: E2 [08:12:59]MH_I2C_Read... [08:12:59]Read from MH i2c: E2 0E 00 [08:12:59]MH_I2C_Read... [08:12:59]Read from MH i2c: E2 0E 00 42 2C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 05 [08:12:59]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:12:59]wFMCommunicate OK [08:12:59]SAM_PROTO_GetShiftState done [08:12:59]FM_GetShiftState done [08:12:59]req_shift_opened done [08:12:59]requested_item shift.open_date is exist - process it [08:12:59]req_shift_open_date [08:12:59]req_shift_open_date done [08:12:59]produce_requested_data done [08:12:59]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227226,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [08:12:59]process_action_free close_receipt [08:12:59]json_value_free [08:12:59]json_value_free done [08:12:59]process_json_proto returns [08:12:59]Send response to host [08:12:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227226,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [08:12:59]free response buf [08:12:59]execute_script done [08:12:59]execute_script returns [08:12:59]free content buf [08:12:59]Sock 9.Close socket [08:12:59]Sock 9.Thread stoped [08:12:59]OFD Sender: No OFD packet to send [08:13:04]OFD Sender: No OFD packet to send [08:13:06]accept exits with 8 [08:13:06]New connection [08:13:06]New thread 3066965348 created [08:13:06]Thread 3066821988 joined [08:13:06]Waiting for new connection... [08:13:06] Sock 8.Parse request [08:13:06]Sock 8.Check first char [08:13:06]Sock 8.First char is OK [08:13:06]request: POST /json_proto HTTP/1.0 [08:13:06]Method: POST [08:13:06]URL: /json_proto [08:13:06]Method is POST - this is cgi request [08:13:06]url: /json_proto [08:13:06]query_string will be loaded in cgi processing [08:13:06]execute_cgi json_proto POST (null) [08:13:06]execute_cgi path=json_proto method=POST [08:13:06]POST find Content-Length [08:13:06]Host: 172.17.44.195:8080 [08:13:06]Content-Length: 755 [08:13:06]Content-Type: application/json [08:13:06] [08:13:06]POST finish read [08:13:06]Found Content-Length = 755 [08:13:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962681", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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\u000A30026563", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:13:06]execute_script... [08:13: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)1962681", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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\u000A30026563", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:13:06]POST & json_proto [08:13:06]process_json_proto [08:13:06]json parsed OK: [08:13:06]protocol is kg_v1.0 [08:13:06]action value=close_receipt [08:13:06]process_action close_receipt [08:13:06]cmd_close_receipt [08:13:06]MH_GetDate [08:13:06]Write to MH i2c: F0 00 00 43 2C 5E [08:13:06]Write i2c OK [08:13:06]MH_I2C_Read... [08:13:06]Read from MH i2c: F0 [08:13:06]MH_I2C_Read... [08:13:06]Read from MH i2c: F0 09 00 [08:13:06]MH_I2C_Read... [08:13:06]Read from MH i2c: F0 09 00 43 2C 00 96 BB 14 67 82 C9 CF 66 B3 [08:13:06]GetLastDocTimeStamp 1729411980 [08:13:06]current date 1729411990 [08:13:06]FM_GetShiftState [08:13:06]SAM_PROTO_GetShiftState [08:13:06]wFMCommunicate request_size=4 [08:13:06]MH_SAM_APDU [08:13:06]CAPDU: 80 13 01 00 [08:13:06]Write to MH i2c: E2 08 00 44 2C 80 13 01 00 00 00 00 00 ED [08:13:06]Write i2c OK [08:13:06]MH_I2C_Read... [08:13:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:07]Read from MH i2c: E2 [08:13:07]MH_I2C_Read... [08:13:07]Read from MH i2c: E2 0E 00 [08:13:07]MH_I2C_Read... [08:13:07]Read from MH i2c: E2 0E 00 44 2C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 07 [08:13:07]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:13:07]wFMCommunicate OK [08:13:07]SAM_PROTO_GetShiftState done [08:13:07]FM_GetShiftState done [08:13:07]opened in 1729383750 [08:13:07]opened+sec_in_day 1729470150 [08:13:07]quantity*price = 0 [08:13:07]sum+1 = 1 [08:13:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 75 20.10.2024 08:13 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Талоны: ТК ГПНА Online 30026563 ФМ: 0000000000871839 ФД: 227227 ФПД: 221338756448626 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T081310&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227227&fm=221338756448626&tin=02508201610067®Number=0000000000091685&sum=0 [08:13:08]StoreToDocumentArchive [08:13:08]shift 533 fd 227227 [08:13:08]save to /storage/0533/doc_00227227 [08:13:08]save last doc name /storage/0533/doc_00227227 to /storage/kkm_last_doc_name [08:13:08]save OK [08:13:08]Clear old archive folders... [08:13:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:13:08]tlvbuf is 00539930 [08:13:08]SAM_PROTO_ClearQueue [08:13:08]wFMCommunicate request_size=4 [08:13:08]MH_SAM_APDU [08:13:08]CAPDU: 80 09 00 00 [08:13:08]Write to MH i2c: E2 08 00 51 2C 80 09 00 00 00 00 00 00 EF [08:13:08]Write i2c OK [08:13:08]MH_I2C_Read... [08:13:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:13:08]Read from MH i2c: E2 [08:13:08]MH_I2C_Read... [08:13:08]Read from MH i2c: E2 03 00 [08:13:08]MH_I2C_Read... [08:13:08]Read from MH i2c: E2 03 00 51 2C 00 90 00 F1 [08:13:08]RAPDU: 90 00 [08:13:08]wFMCommunicate OK [08:13:08]SAM_PROTO_ClearQueue done [08:13:08]KKMCreateOFDPacket [08:13:08]OFDProtocolAddRootSTLVToBuf [08:13:08]FM_MakeSignedData [08:13:08]FM_MakeSignedData [08:13:08]SAM_PROTO_SignData [08:13:08]wFMCommunicate request_size=4 [08:13:08]MH_SAM_APDU [08:13:08]CAPDU: 80 0D 01 02 [08:13:08]Write to MH i2c: E2 08 00 52 2C 80 0D 01 02 00 00 00 00 F7 [08:13:08]Write i2c OK [08:13:08]MH_I2C_Read... [08:13:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:13:08]Read from MH i2c: E2 [08:13:08]MH_I2C_Read... [08:13:08]Read from MH i2c: E2 03 00 [08:13:08]MH_I2C_Read... [08:13:08]Read from MH i2c: E2 03 00 52 2C 00 90 00 F2 [08:13:08]RAPDU: 90 00 [08:13:08]wFMCommunicate OK [08:13:08]wFMCommunicate request_size=255 [08:13:08]MH_SAM_APDU [08:13:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 4B 00 00 00 F4 03 04 00 96 BB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9B 77 03 00 35 04 06 00 C9 [08:13:08]Write to MH i2c: E2 02 01 53 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 4B 00 00 00 F4 03 04 00 96 BB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9B 77 03 00 35 04 06 00 C9 00 00 E7 [08:13:08]Write i2c OK [08:13:08]MH_I2C_Read... [08:13:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:13:08]Read from MH i2c: E2 [08:13:08]MH_I2C_Read... [08:13:08]Read from MH i2c: E2 03 00 [08:13:08]MH_I2C_Read... [08:13:08]Read from MH i2c: E2 03 00 53 2C 00 90 00 F3 [08:13:08]RAPDU: 90 00 [08:13:08]wFMCommunicate OK [08:13:08]wFMCommunicate request_size=10 [08:13:08]MH_SAM_APDU [08:13:08]CAPDU: 80 0D 02 02 05 4E 71 F4 01 72 [08:13:08]Write to MH i2c: E2 0D 00 54 2C 80 0D 02 02 05 00 4E 71 F4 01 72 00 00 2A [08:13:08]Write i2c OK [08:13:08]MH_I2C_Read... [08:13:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:13:08]Read from MH i2c: E2 [08:13:08]MH_I2C_Read... [08:13:08]Read from MH i2c: E2 03 00 [08:13:08]MH_I2C_Read... [08:13:08]Read from MH i2c: E2 03 00 54 2C 00 90 00 F4 [08:13:08]RAPDU: 90 00 [08:13:08]wFMCommunicate OK [08:13:08]wFMCommunicate request_size=4 [08:13:08]MH_SAM_APDU [08:13:08]CAPDU: 80 0D 03 02 [08:13:08]Write to MH i2c: E2 08 00 55 2C 80 0D 03 02 00 00 00 00 FC [08:13:08]Write i2c OK [08:13:08]MH_I2C_Read... [08:13:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:13:08]Read from MH i2c: E2 [08:13:08]MH_I2C_Read... [08:13:08]Read from MH i2c: E2 0B 00 [08:13:08]MH_I2C_Read... [08:13:08]Read from MH i2c: E2 0B 00 55 2C 00 E7 AC 92 20 4F F2 35 F3 90 00 AB [08:13:08]RAPDU: E7 AC 92 20 4F F2 35 F3 90 00 [08:13:08]wFMCommunicate OK [08:13:08]SAM_PROTO_SignData done [08:13:08]FM_MakeSignedData done [08:13:08]CreateOFDProtocolMessage [08:13:08]wFMCommunicate request_size=4 [08:13:08]MH_SAM_APDU [08:13:08]CAPDU: 80 11 00 00 [08:13:08]Write to MH i2c: E2 08 00 56 2C 80 11 00 00 00 00 00 00 FC [08:13:08]Write i2c OK [08:13:08]MH_I2C_Read... [08:13:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:08]Read from MH i2c: E2 [08:13:08]MH_I2C_Read... [08:13:08]Read from MH i2c: E2 17 00 [08:13:08]MH_I2C_Read... [08:13:08]Read from MH i2c: E2 17 00 56 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 53 [08:13:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:13:08]wFMCommunicate OK [08:13:08]CreateOFDProtocolMessage done [08:13:08]OFDSenderStorePacket 227227 [08:13:08]StoreOFDPacket docnum=227227 [08:13:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 92 75 07 01 FF 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 4B 00 00 00 F4 03 04 00 96 BB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9B 77 03 00 35 04 06 00 C9 4E 71 F4 01 72 E7 AC 92 20 4F F2 35 F3 [08:13:08]CheckFolder [08:13:08]dirname=/storage/ofd_packets [08:13:08]CheckFolder done [08:13:08]ProducePacketName [08:13:08]name=ofd_packets/00227227 [08:13:08]NVStorageSaveData ofd_packets/00227227 [08:13:08]File name is /storage/ofd_packets/00227227 [08:13:08]Write 301 bytes [08:13:08]NVStorageSaveData done [08:13:08]OFDSenderStorePacket done [08:13:08]KKMCreateOFDPacket done [08:13:08]NVStorageSaveData kkm_last_timestamp [08:13:08]File name is /storage/kkm_last_timestamp [08:13:08]Write 4 bytes [08:13:08]NVStorageSaveData done [08:13:08]ExternCall_PrintAddStr [08:13:08]wPrintStart [08:13:08]Write to MH i2c: 01 00 00 57 2C 83 [08:13:08]Write i2c OK [08:13:08]MH_I2C_Read... [08:13:08]Read from MH i2c: 01 [08:13:08]MH_I2C_Read... [08:13:08]Read from MH i2c: 01 07 00 [08:13:08]MH_I2C_Read... [08:13:08]Read from MH i2c: 01 07 00 57 2C 00 00 00 00 00 FF 0F 98 [08:13:08]RasterBufferAndPrint [08:13:08]line Счет N : (1)1962681 [08:13:08]line ИНН: 02508201610067 [08:13:08]line Контрольно-Кассовый Чек [08:13:08]line ПРОДАЖА [08:13:08]line ТРК (МРК, ГНК) : 63 [08:13:08]line Товар: 2710124130 [08:13:08]line Аи-92-К-5 [08:13:08]line 15.000 * 0.00 [08:13:08]line = 0.00 [08:13:08]line НДС 12% НСП 1% [08:13:08]line > о реализуемом товаре [08:13:08]line ИТОГО: 0.00 [08:13:08]line НСП 1% : 0.00 [08:13:08]line НДС 12% : 0.00 [08:13:08]line Наличными: 0.00 [08:13:08]line Безнал.: 0.00 [08:13:08]line Место: АЗС № 133 "Партнер Нефть" [08:13:08]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [08:13:08]line СНО: Общий режим [08:13:08]line Чек 75 20.10.2024 08:13 [08:13:08]line Смена: 533 ФФД: 1.0 [08:13:08]line ЗНМ: 0300000091 [08:13:08]line РНМ: 0000000000091685 [08:13:08]line Версия ККМ: 001 [08:13:08]line Талоны: ТК ГПНА Online [08:13:08]line 30026563 [08:13:08]line ФМ: 0000000000871839 [08:13:08]line ФД: 227227 [08:13:08]line ФПД: 221338756448626 [08:13:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T081310&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227227&fm=221338756448626&tin=02508201610067®Number=0000000000091685&sum=0 [08:13:08]written 0, free lines is 4095 [08:13:08]OFD Sender: Processing packet 227227 [packets to send 38, broken 37] [08:13:08]ProducePacketName [08:13:08]name=ofd_packets/00227227 [08:13:08]OFD Sender: To server: pG, [08:13:08]CommunicateWithHost lk.salyk.kg:30040 [08:13:08]ConnectInit lk.salyk.kg [08:13:08]Connected sock=10 [08:13: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 33 39 0F 01 00 00 92 75 07 01 FF 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 4B 00 00 00 F4 03 04 00 96 BB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9B 77 03 00 35 04 06 00 C9 4E 71 F4 01 72 E7 AC 92 20 4F F2 35 F3 [08:13: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 33 39 4F 00 00 00 76 EF 47 00 3D 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 33 39 10 04 04 00 9B 77 03 00 F4 03 04 00 96 66 14 67 B6 04 01 00 00 44 24 4F D9 BC 0C 0A 7B [08:13:09]CommunicateWithHost err = 0 [08:13:09]CheckOFDResponse [08:13:09]1017 (14) - 77093643461234 [08:13:09]1041 (16) - 0000000000871839 [08:13:09]1040 (4) - 227227 [08:13:09]1012 (4) - 20.10.2024 02:10 [08:13:09]1206 (1) - 0 [08:13:09]OFD Sender: Remove packet 227227 [08:13:09]ProducePacketName [08:13:09]name=ofd_packets/00227227 [08:13:09]NVStorageDeleteData [08:13:09]Write to MH i2c: 01 00 00 80 2C AC [08:13:09]Write i2c OK [08:13:09]MH_I2C_Read... [08:13:09]Read from MH i2c: 01 [08:13:09]MH_I2C_Read... [08:13:09]Read from MH i2c: 01 07 00 [08:13:09]MH_I2C_Read... [08:13:09]Read from MH i2c: 01 07 00 80 2C 00 00 00 00 00 23 0D E3 [08:13:09]RasterBufferAndPrint [08:13:09]line [08:13:09]line [08:13:09]line [08:13:09]line [08:13:09]line [08:13:09]written 0, free lines is 3369 [08:13:09]process_action close_receipt done [08:13:09]requested_data is exist [08:13:09]produce_requested_data [08:13:09]requested_item fm.sn is exist - process it [08:13:09]wFMCommunicate request_size=4 [08:13:09]MH_SAM_APDU [08:13:09]CAPDU: 80 11 00 00 [08:13:09]Write to MH i2c: E2 08 00 87 2C 80 11 00 00 00 00 00 00 2D [08:13:09]Write i2c OK [08:13:09]MH_I2C_Read... [08:13:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:09]Read from MH i2c: E2 [08:13:09]MH_I2C_Read... [08:13:09]Read from MH i2c: E2 17 00 [08:13:09]MH_I2C_Read... [08:13:09]Read from MH i2c: E2 17 00 87 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 84 [08:13:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:13:09]wFMCommunicate OK [08:13:09]requested_item fd.num is exist - process it [08:13:09]SAM_PROTO_GetFieldsCounters [08:13:09]wFMCommunicate request_size=4 [08:13:09]MH_SAM_APDU [08:13:09]CAPDU: 80 13 00 00 [08:13:09]Write to MH i2c: E2 08 00 88 2C 80 13 00 00 00 00 00 00 30 [08:13:09]Write i2c OK [08:13:09]MH_I2C_Read... [08:13:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:13:09]Read from MH i2c: E2 [08:13:09]MH_I2C_Read... [08:13:09]Read from MH i2c: E2 62 00 [08:13:09]MH_I2C_Read... [08:13:09]Read from MH i2c: E2 62 00 88 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 9B 77 03 00 0E 04 04 00 15 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 66 [08:13:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 9B 77 03 00 0E 04 04 00 15 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 [08:13:09]wFMCommunicate OK [08:13:09]SAM_PROTO_GetFieldsCounters done [08:13:09]requested_item shift.num is exist - process it [08:13:09]requested_item shift.opened is exist - process it [08:13:09]req_shift_opened [08:13:09]FM_GetShiftState [08:13:09]SAM_PROTO_GetShiftState [08:13:09]wFMCommunicate request_size=4 [08:13:09]MH_SAM_APDU [08:13:09]CAPDU: 80 13 01 00 [08:13:09]Write to MH i2c: E2 08 00 89 2C 80 13 01 00 00 00 00 00 32 [08:13:09]Write i2c OK [08:13:09]MH_I2C_Read... [08:13:09]Read from MH i2c: E2 [08:13:09]MH_I2C_Read... [08:13:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:09]Read from MH i2c: E2 0E 00 [08:13:09]MH_I2C_Read... [08:13:09]Read from MH i2c: E2 0E 00 89 2C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 4C [08:13:09]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:13:09]wFMCommunicate OK [08:13:09]SAM_PROTO_GetShiftState done [08:13:09]FM_GetShiftState done [08:13:09]req_shift_opened done [08:13:09]requested_item shift.open_date is exist - process it [08:13:09]req_shift_open_date [08:13:09]req_shift_open_date done [08:13:09]produce_requested_data done [08:13:09]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227227,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [08:13:09]process_action_free close_receipt [08:13:09]json_value_free [08:13:09]json_value_free done [08:13:09]process_json_proto returns [08:13:09]Send response to host [08:13:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227227,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [08:13:09]free response buf [08:13:09]execute_script done [08:13:09]execute_script returns [08:13:09]free content buf [08:13:09]Sock 8.Close socket [08:13:09]Sock 8.Thread stoped [08:13:09]OFD Sender: No OFD packet to send [08:13:14]OFD Sender: No OFD packet to send [08:13:19]OFD Sender: No OFD packet to send [08:13:24]OFD Sender: No OFD packet to send [08:13:29]OFD Sender: No OFD packet to send [08:13:34]OFD Sender: No OFD packet to send [08:13:39]accept exits with 9 [08:13:39]New connection [08:13:39]New thread 3066821988 created [08:13:39]Thread 3066965348 joined [08:13:39]Waiting for new connection... [08:13:39] Sock 9.Parse request [08:13:39]Sock 9.Check first char [08:13:39]Sock 9.First char is OK [08:13:39]request: POST /json_proto HTTP/1.0 [08:13:39]Method: POST [08:13:39]URL: /json_proto [08:13:39]Method is POST - this is cgi request [08:13:39]url: /json_proto [08:13:39]query_string will be loaded in cgi processing [08:13:39]execute_cgi json_proto POST (null) [08:13:39]execute_cgi path=json_proto method=POST [08:13:39]POST find Content-Length [08:13:39]Host: 172.17.44.195:8080 [08:13:39]Content-Length: 678 [08:13:39]Content-Type: application/json [08:13:39] [08:13:39]POST finish read [08:13:39]Found Content-Length = 678 [08:13:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962683", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:13:39]execute_script... [08:13:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962683", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:13:39]POST & json_proto [08:13:39]process_json_proto [08:13:39]json parsed OK: [08:13:39]protocol is kg_v1.0 [08:13:39]action value=close_receipt [08:13:39]process_action close_receipt [08:13:39]cmd_close_receipt [08:13:39]MH_GetDate [08:13:39]Write to MH i2c: F0 00 00 8A 2C A5 [08:13:39]Write i2c OK [08:13:39]MH_I2C_Read... [08:13:39]Read from MH i2c: F0 [08:13:39]MH_I2C_Read... [08:13:39]Read from MH i2c: F0 09 00 [08:13:39]MH_I2C_Read... [08:13:39]Read from MH i2c: F0 09 00 8A 2C 00 B6 BB 14 67 82 C9 CF 66 1A [08:13:39]GetLastDocTimeStamp 1729411990 [08:13:39]current date 1729412022 [08:13:39]FM_GetShiftState [08:13:39]SAM_PROTO_GetShiftState [08:13:39]wFMCommunicate request_size=4 [08:13:39]MH_SAM_APDU [08:13:39]CAPDU: 80 13 01 00 [08:13:39]Write to MH i2c: E2 08 00 8B 2C 80 13 01 00 00 00 00 00 34 [08:13:39]Write i2c OK [08:13:39]MH_I2C_Read... [08:13:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:39]Read from MH i2c: E2 [08:13:39]MH_I2C_Read... [08:13:39]Read from MH i2c: E2 0E 00 [08:13:39]MH_I2C_Read... [08:13:39]Read from MH i2c: E2 0E 00 8B 2C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 4E [08:13:39]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:13:39]wFMCommunicate OK [08:13:39]SAM_PROTO_GetShiftState done [08:13:39]FM_GetShiftState done [08:13:39]opened in 1729383750 [08:13:39]opened+sec_in_day 1729470150 [08:13:39]quantity*price = 40006 [08:13:39]sum+1 = 40007 [08:13:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 76 20.10.2024 08:13 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227228 ФПД: 262943785006117 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T081342&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227228&fm=262943785006117&tin=02508201610067®Number=0000000000091685&sum=40000 [08:13:40]StoreToDocumentArchive [08:13:40]shift 533 fd 227228 [08:13:40]save to /storage/0533/doc_00227228 [08:13:40]save last doc name /storage/0533/doc_00227228 to /storage/kkm_last_doc_name [08:13:40]save OK [08:13:40]Clear old archive folders... [08:13:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:13:40]tlvbuf is 00505F70 [08:13:40]SAM_PROTO_ClearQueue [08:13:40]wFMCommunicate request_size=4 [08:13:40]MH_SAM_APDU [08:13:40]CAPDU: 80 09 00 00 [08:13:40]Write to MH i2c: E2 08 00 98 2C 80 09 00 00 00 00 00 00 36 [08:13:40]Write i2c OK [08:13:40]MH_I2C_Read... [08:13:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:13:40]Read from MH i2c: E2 [08:13:40]MH_I2C_Read... [08:13:40]Read from MH i2c: E2 03 00 [08:13:40]MH_I2C_Read... [08:13:40]Read from MH i2c: E2 03 00 98 2C 00 90 00 38 [08:13:40]RAPDU: 90 00 [08:13:40]wFMCommunicate OK [08:13:40]SAM_PROTO_ClearQueue done [08:13:40]KKMCreateOFDPacket [08:13:40]OFDProtocolAddRootSTLVToBuf [08:13:40]FM_MakeSignedData [08:13:40]FM_MakeSignedData [08:13:40]SAM_PROTO_SignData [08:13:40]wFMCommunicate request_size=4 [08:13:40]MH_SAM_APDU [08:13:40]CAPDU: 80 0D 01 02 [08:13:40]Write to MH i2c: E2 08 00 99 2C 80 0D 01 02 00 00 00 00 3E [08:13:40]Write i2c OK [08:13:40]MH_I2C_Read... [08:13:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:13:40]Read from MH i2c: E2 [08:13:40]MH_I2C_Read... [08:13:40]Read from MH i2c: E2 03 00 [08:13:40]MH_I2C_Read... [08:13:40]Read from MH i2c: E2 03 00 99 2C 00 90 00 39 [08:13:40]RAPDU: 90 00 [08:13:40]wFMCommunicate OK [08:13:40]wFMCommunicate request_size=255 [08:13:40]MH_SAM_APDU [08:13:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 B6 BB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9C 77 03 00 35 04 06 00 EF [08:13:40]Write to MH i2c: E2 02 01 9A 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 B6 BB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9C 77 03 00 35 04 06 00 EF 00 00 F8 [08:13:40]Write i2c OK [08:13:40]MH_I2C_Read... [08:13:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:13:40]Read from MH i2c: E2 [08:13:40]MH_I2C_Read... [08:13:40]Read from MH i2c: E2 03 00 [08:13:40]MH_I2C_Read... [08:13:40]Read from MH i2c: E2 03 00 9A 2C 00 90 00 3A [08:13:40]RAPDU: 90 00 [08:13:40]wFMCommunicate OK [08:13:40]wFMCommunicate request_size=10 [08:13:40]MH_SAM_APDU [08:13:40]CAPDU: 80 0D 02 02 05 25 5E E6 B4 25 [08:13:40]Write to MH i2c: E2 0D 00 9B 2C 80 0D 02 02 05 00 25 5E E6 B4 25 00 00 8D [08:13:40]Write i2c OK [08:13:40]MH_I2C_Read... [08:13:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:13:40]Read from MH i2c: E2 [08:13:40]MH_I2C_Read... [08:13:40]Read from MH i2c: E2 03 00 [08:13:40]MH_I2C_Read... [08:13:40]Read from MH i2c: E2 03 00 9B 2C 00 90 00 3B [08:13:40]RAPDU: 90 00 [08:13:40]wFMCommunicate OK [08:13:40]wFMCommunicate request_size=4 [08:13:40]MH_SAM_APDU [08:13:40]CAPDU: 80 0D 03 02 [08:13:40]Write to MH i2c: E2 08 00 9C 2C 80 0D 03 02 00 00 00 00 43 [08:13:40]Write i2c OK [08:13:40]MH_I2C_Read... [08:13:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:13:40]Read from MH i2c: E2 [08:13:40]MH_I2C_Read... [08:13:40]Read from MH i2c: E2 0B 00 [08:13:40]MH_I2C_Read... [08:13:40]Read from MH i2c: E2 0B 00 9C 2C 00 3D 10 40 DC F3 4A D7 3B 90 00 FC [08:13:40]RAPDU: 3D 10 40 DC F3 4A D7 3B 90 00 [08:13:40]wFMCommunicate OK [08:13:40]SAM_PROTO_SignData done [08:13:40]FM_MakeSignedData done [08:13:40]CreateOFDProtocolMessage [08:13:40]wFMCommunicate request_size=4 [08:13:40]MH_SAM_APDU [08:13:40]CAPDU: 80 11 00 00 [08:13:40]Write to MH i2c: E2 08 00 9D 2C 80 11 00 00 00 00 00 00 43 [08:13:40]Write i2c OK [08:13:40]MH_I2C_Read... [08:13:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:40]Read from MH i2c: E2 [08:13:40]MH_I2C_Read... [08:13:40]Read from MH i2c: E2 17 00 [08:13:40]MH_I2C_Read... [08:13:40]Read from MH i2c: E2 17 00 9D 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 9A [08:13:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:13:40]wFMCommunicate OK [08:13:40]CreateOFDProtocolMessage done [08:13:40]OFDSenderStorePacket 227228 [08:13:40]StoreOFDPacket docnum=227228 [08:13:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 48 FA 07 01 85 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 B6 BB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9C 77 03 00 35 04 06 00 EF 25 5E E6 B4 25 3D 10 40 DC F3 4A D7 3B [08:13:40]CheckFolder [08:13:40]dirname=/storage/ofd_packets [08:13:40]CheckFolder done [08:13:40]ProducePacketName [08:13:40]name=ofd_packets/00227228 [08:13:40]NVStorageSaveData ofd_packets/00227228 [08:13:40]File name is /storage/ofd_packets/00227228 [08:13:40]Write 301 bytes [08:13:40]NVStorageSaveData done [08:13:40]OFDSenderStorePacket done [08:13:40]KKMCreateOFDPacket done [08:13:40]NVStorageSaveData kkm_last_timestamp [08:13:40]File name is /storage/kkm_last_timestamp [08:13:40]Write 4 bytes [08:13:40]NVStorageSaveData done [08:13:40]ExternCall_PrintAddStr [08:13:40]wPrintStart [08:13:40]Write to MH i2c: 01 00 00 9E 2C CA [08:13:40]Write i2c OK [08:13:40]MH_I2C_Read... [08:13:40]Read from MH i2c: 01 [08:13:40]MH_I2C_Read... [08:13:40]Read from MH i2c: 01 07 00 [08:13:40]MH_I2C_Read... [08:13:40]Read from MH i2c: 01 07 00 9E 2C 00 00 00 00 00 FF 0F DF [08:13:40]RasterBufferAndPrint [08:13:40]line Счет N : (1)1962683 [08:13:40]line ИНН: 02508201610067 [08:13:40]line Контрольно-Кассовый Чек [08:13:40]line ПРОДАЖА [08:13:40]line ТРК (МРК, ГНК) : 53 [08:13:40]line Товар: 2710124130 [08:13:40]line Аи-92-К-5 [08:13:40]line 5.980 * 66.90 [08:13:40]line = 400.06 [08:13:40]line НДС 12% НСП 1% [08:13:40]line > о реализуемом товаре [08:13:40]line ОКРУГЛЕНИЕ: -0.06 [08:13:40]line ИТОГО: 400.00 [08:13:40]line Внесено: 400.00 [08:13:40]line СДАЧА: 0.00 [08:13:40]line НСП 1% : 3.54 [08:13:40]line НДС 12% : 42.48 [08:13:40]line Наличными: 400.00 [08:13:40]line Безнал.: 0.00 [08:13:40]line Место: АЗС № 133 "Партнер Нефть" [08:13:40]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [08:13:40]line СНО: Общий режим [08:13:40]line Чек 76 20.10.2024 08:13 [08:13:40]line Смена: 533 ФФД: 1.0 [08:13:40]line ЗНМ: 0300000091 [08:13:40]line РНМ: 0000000000091685 [08:13:40]line Версия ККМ: 001 [08:13:40]line ФМ: 0000000000871839 [08:13:40]line ФД: 227228 [08:13:40]line ФПД: 262943785006117 [08:13:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T081342&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227228&fm=262943785006117&tin=02508201610067®Number=0000000000091685&sum=40000 [08:13:41]OFD Sender: Processing packet 227228 [packets to send 38, broken 37] [08:13:41]ProducePacketName [08:13:41]name=ofd_packets/00227228 [08:13:41]OFD Sender: To server: pG, [08:13:41]CommunicateWithHost lk.salyk.kg:30040 [08:13:41]ConnectInit lk.salyk.kg [08:13:41]written 0, free lines is 4095 [08:13:41]Connected sock=10 [08:13:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 48 FA 07 01 85 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 B6 BB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9C 77 03 00 35 04 06 00 EF 25 5E E6 B4 25 3D 10 40 DC F3 4A D7 3B [08:13:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 52 0E 47 00 D5 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9C 77 03 00 F4 03 04 00 B6 66 14 67 B6 04 01 00 00 CA 24 3C D7 2B 74 7C F4 [08:13:41]CommunicateWithHost err = 0 [08:13:41]CheckOFDResponse [08:13:41]1017 (14) - 77093643461234 [08:13:41]1041 (16) - 0000000000871839 [08:13:41]1040 (4) - 227228 [08:13:41]1012 (4) - 20.10.2024 02:11 [08:13:41]1206 (1) - 0 [08:13:41]OFD Sender: Remove packet 227228 [08:13:41]ProducePacketName [08:13:41]name=ofd_packets/00227228 [08:13:41]NVStorageDeleteData [08:13:41]Write to MH i2c: 01 00 00 C8 2C F4 [08:13:41]Write i2c OK [08:13:41]MH_I2C_Read... [08:13:41]Read from MH i2c: 01 [08:13:41]MH_I2C_Read... [08:13:41]Read from MH i2c: 01 07 00 [08:13:41]MH_I2C_Read... [08:13:41]Read from MH i2c: 01 07 00 C8 2C 00 00 00 00 00 0D 0D 15 [08:13:41]RasterBufferAndPrint [08:13:41]line [08:13:41]line [08:13:41]line [08:13:41]line [08:13:41]line [08:13:41]written 0, free lines is 3347 [08:13:41]process_action close_receipt done [08:13:41]requested_data is exist [08:13:41]produce_requested_data [08:13:41]requested_item fm.sn is exist - process it [08:13:41]wFMCommunicate request_size=4 [08:13:41]MH_SAM_APDU [08:13:41]CAPDU: 80 11 00 00 [08:13:41]Write to MH i2c: E2 08 00 CF 2C 80 11 00 00 00 00 00 00 75 [08:13:41]Write i2c OK [08:13:41]MH_I2C_Read... [08:13:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:41]Read from MH i2c: E2 [08:13:41]MH_I2C_Read... [08:13:41]Read from MH i2c: E2 17 00 [08:13:41]MH_I2C_Read... [08:13:41]Read from MH i2c: E2 17 00 CF 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 CC [08:13:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:13:41]wFMCommunicate OK [08:13:41]requested_item fd.num is exist - process it [08:13:41]SAM_PROTO_GetFieldsCounters [08:13:41]wFMCommunicate request_size=4 [08:13:41]MH_SAM_APDU [08:13:41]CAPDU: 80 13 00 00 [08:13:41]Write to MH i2c: E2 08 00 D0 2C 80 13 00 00 00 00 00 00 78 [08:13:41]Write i2c OK [08:13:41]MH_I2C_Read... [08:13:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:13:41]Read from MH i2c: E2 [08:13:41]MH_I2C_Read... [08:13:41]Read from MH i2c: E2 62 00 [08:13:41]MH_I2C_Read... [08:13:41]Read from MH i2c: E2 62 00 D0 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 9C 77 03 00 0E 04 04 00 15 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 B2 [08:13: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 9C 77 03 00 0E 04 04 00 15 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 [08:13:41]wFMCommunicate OK [08:13:41]SAM_PROTO_GetFieldsCounters done [08:13:41]requested_item shift.num is exist - process it [08:13:41]requested_item shift.opened is exist - process it [08:13:41]req_shift_opened [08:13:41]FM_GetShiftState [08:13:41]SAM_PROTO_GetShiftState [08:13:41]wFMCommunicate request_size=4 [08:13:41]MH_SAM_APDU [08:13:41]CAPDU: 80 13 01 00 [08:13:41]Write to MH i2c: E2 08 00 D1 2C 80 13 01 00 00 00 00 00 7A [08:13:41]Write i2c OK [08:13:41]MH_I2C_Read... [08:13:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:41]Read from MH i2c: E2 [08:13:41]MH_I2C_Read... [08:13:41]Read from MH i2c: E2 0E 00 [08:13:41]MH_I2C_Read... [08:13:41]Read from MH i2c: E2 0E 00 D1 2C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 94 [08:13:41]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:13:41]wFMCommunicate OK [08:13:41]SAM_PROTO_GetShiftState done [08:13:41]FM_GetShiftState done [08:13:41]req_shift_opened done [08:13:41]requested_item shift.open_date is exist - process it [08:13:41]req_shift_open_date [08:13:41]req_shift_open_date done [08:13:41]produce_requested_data done [08:13:41]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227228,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [08:13:41]process_action_free close_receipt [08:13:41]json_value_free [08:13:41]json_value_free done [08:13:41]process_json_proto returns [08:13:41]Send response to host [08:13:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227228,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [08:13:41]free response buf [08:13:41]execute_script done [08:13:41]execute_script returns [08:13:41]free content buf [08:13:41]Sock 9.Close socket [08:13:41]Sock 9.Thread stoped [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:22]OFD Sender: No OFD packet to send [08:14:27]OFD Sender: No OFD packet to send [08:14:32]OFD Sender: No OFD packet to send [08:14:37]OFD Sender: No OFD packet to send [08:14:42]OFD Sender: No OFD packet to send [08:14:47]OFD Sender: No OFD packet to send [08:14:52]OFD Sender: No OFD packet to send [08:14:55]accept exits with 8 [08:14:55]New connection [08:14:55]New thread 3066965348 created [08:14:55]Thread 3066821988 joined [08:14:55]Waiting for new connection... [08:14:55] Sock 8.Parse request [08:14:55]Sock 8.Check first char [08:14:55]Sock 8.First char is OK [08:14:55]request: POST /json_proto HTTP/1.0 [08:14:55]Method: POST [08:14:55]URL: /json_proto [08:14:55]Method is POST - this is cgi request [08:14:55]url: /json_proto [08:14:55]query_string will be loaded in cgi processing [08:14:55]execute_cgi json_proto POST (null) [08:14:55]execute_cgi path=json_proto method=POST [08:14:55]POST find Content-Length [08:14:55]Host: 172.17.44.195:8080 [08:14:55]Content-Length: 683 [08:14:55]Content-Type: application/json [08:14:55] [08:14:55]POST finish read [08:14:55]Found Content-Length = 683 [08:14:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962685", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:14:55]execute_script... [08:14: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)1962685", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:14:55]POST & json_proto [08:14:55]process_json_proto [08:14:55]json parsed OK: [08:14:55]protocol is kg_v1.0 [08:14:55]action value=close_receipt [08:14:55]process_action close_receipt [08:14:55]cmd_close_receipt [08:14:55]MH_GetDate [08:14:55]Write to MH i2c: F0 00 00 D2 2C ED [08:14:55]Write i2c OK [08:14:55]MH_I2C_Read... [08:14:55]Read from MH i2c: F0 [08:14:55]MH_I2C_Read... [08:14:55]Read from MH i2c: F0 09 00 [08:14:55]MH_I2C_Read... [08:14:55]Read from MH i2c: F0 09 00 D2 2C 00 03 BC 14 67 82 C9 CF 66 B0 [08:14:55]GetLastDocTimeStamp 1729412022 [08:14:55]current date 1729412099 [08:14:55]FM_GetShiftState [08:14:55]SAM_PROTO_GetShiftState [08:14:55]wFMCommunicate request_size=4 [08:14:55]MH_SAM_APDU [08:14:55]CAPDU: 80 13 01 00 [08:14:55]Write to MH i2c: E2 08 00 D3 2C 80 13 01 00 00 00 00 00 7C [08:14:55]Write i2c OK [08:14:55]MH_I2C_Read... [08:14:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:14:55]Read from MH i2c: E2 [08:14:55]MH_I2C_Read... [08:14:55]Read from MH i2c: E2 0E 00 [08:14:55]MH_I2C_Read... [08:14:55]Read from MH i2c: E2 0E 00 D3 2C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 96 [08:14:55]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:14:55]wFMCommunicate OK [08:14:55]SAM_PROTO_GetShiftState done [08:14:55]FM_GetShiftState done [08:14:55]opened in 1729383750 [08:14:55]opened+sec_in_day 1729470150 [08:14:55]quantity*price = 100015 [08:14:55]sum+1 = 100017 [08:14:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 77 20.10.2024 08:14 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227229 ФПД: 150567252094182 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T081459&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227229&fm=150567252094182&tin=02508201610067®Number=0000000000091685&sum=100000 [08:14:56]StoreToDocumentArchive [08:14:56]shift 533 fd 227229 [08:14:56]save to /storage/0533/doc_00227229 [08:14:56]save last doc name /storage/0533/doc_00227229 to /storage/kkm_last_doc_name [08:14:56]save OK [08:14:56]Clear old archive folders... [08:14:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:14:56]tlvbuf is 00517130 [08:14:56]SAM_PROTO_ClearQueue [08:14:56]wFMCommunicate request_size=4 [08:14:56]MH_SAM_APDU [08:14:56]CAPDU: 80 09 00 00 [08:14:56]Write to MH i2c: E2 08 00 E0 2C 80 09 00 00 00 00 00 00 7E [08:14:56]Write i2c OK [08:14:56]MH_I2C_Read... [08:14:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:14:56]Read from MH i2c: E2 [08:14:56]MH_I2C_Read... [08:14:56]Read from MH i2c: E2 03 00 [08:14:56]MH_I2C_Read... [08:14:56]Read from MH i2c: E2 03 00 E0 2C 00 90 00 80 [08:14:56]RAPDU: 90 00 [08:14:56]wFMCommunicate OK [08:14:56]SAM_PROTO_ClearQueue done [08:14:56]KKMCreateOFDPacket [08:14:56]OFDProtocolAddRootSTLVToBuf [08:14:56]FM_MakeSignedData [08:14:56]FM_MakeSignedData [08:14:56]SAM_PROTO_SignData [08:14:56]wFMCommunicate request_size=4 [08:14:56]MH_SAM_APDU [08:14:56]CAPDU: 80 0D 01 02 [08:14:56]Write to MH i2c: E2 08 00 E1 2C 80 0D 01 02 00 00 00 00 86 [08:14:56]Write i2c OK [08:14:56]MH_I2C_Read... [08:14:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:14:56]Read from MH i2c: E2 [08:14:56]MH_I2C_Read... [08:14:56]Read from MH i2c: E2 03 00 [08:14:56]MH_I2C_Read... [08:14:56]Read from MH i2c: E2 03 00 E1 2C 00 90 00 81 [08:14:56]RAPDU: 90 00 [08:14:56]wFMCommunicate OK [08:14:56]wFMCommunicate request_size=255 [08:14:56]MH_SAM_APDU [08:14:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 03 BC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9D 77 03 00 35 04 06 00 88 [08:14:56]Write to MH i2c: E2 02 01 E2 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 03 BC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9D 77 03 00 35 04 06 00 88 00 00 54 [08:14:56]Write i2c OK [08:14:56]MH_I2C_Read... [08:14:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:14:56]Read from MH i2c: E2 [08:14:56]MH_I2C_Read... [08:14:56]Read from MH i2c: E2 03 00 [08:14:56]MH_I2C_Read... [08:14:56]Read from MH i2c: E2 03 00 E2 2C 00 90 00 82 [08:14:56]RAPDU: 90 00 [08:14:56]wFMCommunicate OK [08:14:56]wFMCommunicate request_size=10 [08:14:56]MH_SAM_APDU [08:14:56]CAPDU: 80 0D 02 02 05 F0 AB 93 6C E6 [08:14:56]Write to MH i2c: E2 0D 00 E3 2C 80 0D 02 02 05 00 F0 AB 93 6C E6 00 00 13 [08:14:56]Write i2c OK [08:14:56]MH_I2C_Read... [08:14:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:14:56]Read from MH i2c: E2 [08:14:56]MH_I2C_Read... [08:14:56]Read from MH i2c: E2 03 00 [08:14:56]MH_I2C_Read... [08:14:56]Read from MH i2c: E2 03 00 E3 2C 00 90 00 83 [08:14:56]RAPDU: 90 00 [08:14:56]wFMCommunicate OK [08:14:56]wFMCommunicate request_size=4 [08:14:56]MH_SAM_APDU [08:14:56]CAPDU: 80 0D 03 02 [08:14:56]Write to MH i2c: E2 08 00 E4 2C 80 0D 03 02 00 00 00 00 8B [08:14:56]Write i2c OK [08:14:56]MH_I2C_Read... [08:14:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:14:56]Read from MH i2c: E2 [08:14:56]MH_I2C_Read... [08:14:56]Read from MH i2c: E2 0B 00 [08:14:56]MH_I2C_Read... [08:14:56]Read from MH i2c: E2 0B 00 E4 2C 00 80 01 F5 6D BD 6E AA 9B 90 00 DF [08:14:56]RAPDU: 80 01 F5 6D BD 6E AA 9B 90 00 [08:14:56]wFMCommunicate OK [08:14:56]SAM_PROTO_SignData done [08:14:56]FM_MakeSignedData done [08:14:56]CreateOFDProtocolMessage [08:14:56]wFMCommunicate request_size=4 [08:14:56]MH_SAM_APDU [08:14:56]CAPDU: 80 11 00 00 [08:14:56]Write to MH i2c: E2 08 00 E5 2C 80 11 00 00 00 00 00 00 8B [08:14:56]Write i2c OK [08:14:56]MH_I2C_Read... [08:14:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:14:56]Read from MH i2c: E2 [08:14:56]MH_I2C_Read... [08:14:56]Read from MH i2c: E2 17 00 [08:14:56]MH_I2C_Read... [08:14:56]Read from MH i2c: E2 17 00 E5 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E2 [08:14:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:14:56]wFMCommunicate OK [08:14:56]CreateOFDProtocolMessage done [08:14:56]OFDSenderStorePacket 227229 [08:14:56]StoreOFDPacket docnum=227229 [08:14:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 DD A3 07 01 F7 BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 03 BC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9D 77 03 00 35 04 06 00 88 F0 AB 93 6C E6 80 01 F5 6D BD 6E AA 9B [08:14:56]CheckFolder [08:14:56]dirname=/storage/ofd_packets [08:14:56]CheckFolder done [08:14:56]ProducePacketName [08:14:56]name=ofd_packets/00227229 [08:14:56]NVStorageSaveData ofd_packets/00227229 [08:14:56]File name is /storage/ofd_packets/00227229 [08:14:56]Write 301 bytes [08:14:56]NVStorageSaveData done [08:14:56]OFDSenderStorePacket done [08:14:56]KKMCreateOFDPacket done [08:14:56]NVStorageSaveData kkm_last_timestamp [08:14:56]File name is /storage/kkm_last_timestamp [08:14:56]Write 4 bytes [08:14:56]NVStorageSaveData done [08:14:56]ExternCall_PrintAddStr [08:14:56]wPrintStart [08:14:56]Write to MH i2c: 01 00 00 E6 2C 12 [08:14:56]Write i2c OK [08:14:56]MH_I2C_Read... [08:14:56]Read from MH i2c: 01 [08:14:56]MH_I2C_Read... [08:14:56]Read from MH i2c: 01 07 00 [08:14:56]MH_I2C_Read... [08:14:56]Read from MH i2c: 01 07 00 E6 2C 00 00 00 00 00 FF 0F 27 [08:14:56]RasterBufferAndPrint [08:14:56]line Счет N : (1)1962685 [08:14:56]line ИНН: 02508201610067 [08:14:56]line Контрольно-Кассовый Чек [08:14:56]line ПРОДАЖА [08:14:56]line ТРК (МРК, ГНК) : 63 [08:14:56]line Товар: 2710124130 [08:14:56]line Аи-92-К-5 [08:14:56]line 14.950 * 66.90 [08:14:56]line = 1000.16 [08:14:56]line НДС 12% НСП 1% [08:14:56]line > о реализуемом товаре [08:14:56]line ОКРУГЛЕНИЕ: -0.16 [08:14:56]line ИТОГО: 1000.00 [08:14:56]line Внесено: 1000.00 [08:14:56]line СДАЧА: 0.00 [08:14:56]line НСП 1% : 8.85 [08:14:56]line НДС 12% : 106.21 [08:14:56]line Наличными: 1000.00 [08:14:56]line Безнал.: 0.00 [08:14:56]line Место: АЗС № 133 "Партнер Нефть" [08:14:56]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [08:14:56]line СНО: Общий режим [08:14:56]line Чек 77 20.10.2024 08:14 [08:14:56]line Смена: 533 ФФД: 1.0 [08:14:56]line ЗНМ: 0300000091 [08:14:56]line РНМ: 0000000000091685 [08:14:56]line Версия ККМ: 001 [08:14:56]line ФМ: 0000000000871839 [08:14:56]line ФД: 227229 [08:14:56]line ФПД: 150567252094182 [08:14:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T081459&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227229&fm=150567252094182&tin=02508201610067®Number=0000000000091685&sum=100000 [08:14:57]OFD Sender: Processing packet 227229 [packets to send 38, broken 37] [08:14:57]ProducePacketName [08:14:57]name=ofd_packets/00227229 [08:14:57]OFD Sender: To server: pG, [08:14:57]CommunicateWithHost lk.salyk.kg:30040 [08:14:57]ConnectInit lk.salyk.kg [08:14:57]written 0, free lines is 4095 [08:14:57]Connected sock=10 [08:14: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 33 39 0F 01 00 00 DD A3 07 01 F7 BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 03 BC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9D 77 03 00 35 04 06 00 88 F0 AB 93 6C E6 80 01 F5 6D BD 6E AA 9B [08:14: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 33 39 4F 00 00 00 70 AD 47 00 04 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 33 39 10 04 04 00 9D 77 03 00 F4 03 04 00 02 67 14 67 B6 04 01 00 00 82 8A 0B B5 18 DD D2 E1 [08:14:57]CommunicateWithHost err = 0 [08:14:57]CheckOFDResponse [08:14:57]1017 (14) - 77093643461234 [08:14:57]1041 (16) - 0000000000871839 [08:14:57]1040 (4) - 227229 [08:14:57]1012 (4) - 20.10.2024 02:12 [08:14:57]1206 (1) - 0 [08:14:57]OFD Sender: Remove packet 227229 [08:14:57]ProducePacketName [08:14:57]name=ofd_packets/00227229 [08:14:57]NVStorageDeleteData [08:14:57]Write to MH i2c: 01 00 00 10 2D 3D [08:14:57]Write i2c OK [08:14:57]MH_I2C_Read... [08:14:57]Read from MH i2c: 01 [08:14:57]MH_I2C_Read... [08:14:57]Read from MH i2c: 01 07 00 [08:14:57]MH_I2C_Read... [08:14:57]Read from MH i2c: 01 07 00 10 2D 00 00 00 00 00 1A 0D 6B [08:14:57]RasterBufferAndPrint [08:14:57]line [08:14:57]line [08:14:57]line [08:14:57]line [08:14:57]line [08:14:57]written 0, free lines is 3361 [08:14:57]process_action close_receipt done [08:14:57]requested_data is exist [08:14:57]produce_requested_data [08:14:57]requested_item fm.sn is exist - process it [08:14:57]wFMCommunicate request_size=4 [08:14:57]MH_SAM_APDU [08:14:57]CAPDU: 80 11 00 00 [08:14:57]Write to MH i2c: E2 08 00 17 2D 80 11 00 00 00 00 00 00 BE [08:14:57]Write i2c OK [08:14:57]MH_I2C_Read... [08:14:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:14:57]Read from MH i2c: E2 [08:14:57]MH_I2C_Read... [08:14:57]Read from MH i2c: E2 17 00 [08:14:57]MH_I2C_Read... [08:14:57]Read from MH i2c: E2 17 00 17 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 15 [08:14:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:14:57]wFMCommunicate OK [08:14:57]requested_item fd.num is exist - process it [08:14:57]SAM_PROTO_GetFieldsCounters [08:14:57]wFMCommunicate request_size=4 [08:14:57]MH_SAM_APDU [08:14:57]CAPDU: 80 13 00 00 [08:14:57]Write to MH i2c: E2 08 00 18 2D 80 13 00 00 00 00 00 00 C1 [08:14:57]Write i2c OK [08:14:57]MH_I2C_Read... [08:14:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:14:57]Read from MH i2c: E2 [08:14:57]MH_I2C_Read... [08:14:57]Read from MH i2c: E2 62 00 [08:14:57]MH_I2C_Read... [08:14:57]Read from MH i2c: E2 62 00 18 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 9D 77 03 00 0E 04 04 00 15 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 FF [08:14: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 9D 77 03 00 0E 04 04 00 15 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 [08:14:57]wFMCommunicate OK [08:14:57]SAM_PROTO_GetFieldsCounters done [08:14:57]requested_item shift.num is exist - process it [08:14:57]requested_item shift.opened is exist - process it [08:14:57]req_shift_opened [08:14:57]FM_GetShiftState [08:14:57]SAM_PROTO_GetShiftState [08:14:57]wFMCommunicate request_size=4 [08:14:57]MH_SAM_APDU [08:14:57]CAPDU: 80 13 01 00 [08:14:57]Write to MH i2c: E2 08 00 19 2D 80 13 01 00 00 00 00 00 C3 [08:14:57]Write i2c OK [08:14:57]MH_I2C_Read... [08:14:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:14:58]Read from MH i2c: E2 [08:14:58]MH_I2C_Read... [08:14:58]Read from MH i2c: E2 0E 00 [08:14:58]MH_I2C_Read... [08:14:58]Read from MH i2c: E2 0E 00 19 2D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 DD [08:14:58]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:14:58]wFMCommunicate OK [08:14:58]SAM_PROTO_GetShiftState done [08:14:58]FM_GetShiftState done [08:14:58]req_shift_opened done [08:14:58]requested_item shift.open_date is exist - process it [08:14:58]req_shift_open_date [08:14:58]req_shift_open_date done [08:14:58]produce_requested_data done [08:14:58]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227229,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [08:14:58]process_action_free close_receipt [08:14:58]json_value_free [08:14:58]json_value_free done [08:14:58]process_json_proto returns [08:14:58]Send response to host [08:14:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227229,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [08:14:58]free response buf [08:14:58]execute_script done [08:14:58]execute_script returns [08:14:58]free content buf [08:14:58]Sock 8.Close socket [08:14:58]Sock 8.Thread stoped [08:14:58]OFD Sender: No OFD packet to send [08:15:00]accept exits with 9 [08:15:00]New connection [08:15:00]New thread 3066821988 created [08:15:00]Thread 3066965348 joined [08:15:00]Waiting for new connection... [08:15:00] Sock 9.Parse request [08:15:00]Sock 9.Check first char [08:15:00]Sock 9.First char is OK [08:15:00]request: POST /json_proto HTTP/1.0 [08:15:00]Method: POST [08:15:00]URL: /json_proto [08:15:00]Method is POST - this is cgi request [08:15:00]url: /json_proto [08:15:00]query_string will be loaded in cgi processing [08:15:00]execute_cgi json_proto POST (null) [08:15:00]execute_cgi path=json_proto method=POST [08:15:00]POST find Content-Length [08:15:00]Host: 172.17.44.195:8080 [08:15:00]Content-Length: 678 [08:15:00]Content-Type: application/json [08:15:00] [08:15:00]POST finish read [08:15:00]Found Content-Length = 678 [08:15:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962686", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:15:00]execute_script... [08:15:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962686", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:15:00]POST & json_proto [08:15:00]process_json_proto [08:15:00]json parsed OK: [08:15:00]protocol is kg_v1.0 [08:15:00]action value=close_receipt [08:15:00]process_action close_receipt [08:15:00]cmd_close_receipt [08:15:00]MH_GetDate [08:15:00]Write to MH i2c: F0 00 00 1A 2D 36 [08:15:00]Write i2c OK [08:15:00]MH_I2C_Read... [08:15:00]Read from MH i2c: F0 [08:15:00]MH_I2C_Read... [08:15:00]Read from MH i2c: F0 09 00 [08:15:00]MH_I2C_Read... [08:15:00]Read from MH i2c: F0 09 00 1A 2D 00 08 BC 14 67 82 C9 CF 66 FE [08:15:00]GetLastDocTimeStamp 1729412099 [08:15:00]current date 1729412104 [08:15:00]FM_GetShiftState [08:15:00]SAM_PROTO_GetShiftState [08:15:00]wFMCommunicate request_size=4 [08:15:00]MH_SAM_APDU [08:15:00]CAPDU: 80 13 01 00 [08:15:00]Write to MH i2c: E2 08 00 1B 2D 80 13 01 00 00 00 00 00 C5 [08:15:00]Write i2c OK [08:15:00]MH_I2C_Read... [08:15:00]Read from MH i2c: E2 [08:15:00]MH_I2C_Read... [08:15:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:15:00]Read from MH i2c: E2 0E 00 [08:15:00]MH_I2C_Read... [08:15:00]Read from MH i2c: E2 0E 00 1B 2D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 DF [08:15:00]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:15:00]wFMCommunicate OK [08:15:00]SAM_PROTO_GetShiftState done [08:15:00]FM_GetShiftState done [08:15:00]opened in 1729383750 [08:15:00]opened+sec_in_day 1729470150 [08:15:00]quantity*price = 50041 [08:15:00]sum+1 = 50042 [08:15:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 78 20.10.2024 08:15 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227230 ФПД: 222490528518538 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T081504&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227230&fm=222490528518538&tin=02508201610067®Number=0000000000091685&sum=50000 [08:15:01]StoreToDocumentArchive [08:15:01]shift 533 fd 227230 [08:15:01]save to /storage/0533/doc_00227230 [08:15:01]save last doc name /storage/0533/doc_00227230 to /storage/kkm_last_doc_name [08:15:01]save OK [08:15:01]Clear old archive folders... [08:15:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:15:01]tlvbuf is 004F1A20 [08:15:01]SAM_PROTO_ClearQueue [08:15:01]wFMCommunicate request_size=4 [08:15:01]MH_SAM_APDU [08:15:01]CAPDU: 80 09 00 00 [08:15:01]Write to MH i2c: E2 08 00 28 2D 80 09 00 00 00 00 00 00 C7 [08:15:01]Write i2c OK [08:15:01]MH_I2C_Read... [08:15:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:15:02]Read from MH i2c: E2 [08:15:02]MH_I2C_Read... [08:15:02]Read from MH i2c: E2 03 00 [08:15:02]MH_I2C_Read... [08:15:02]Read from MH i2c: E2 03 00 28 2D 00 90 00 C9 [08:15:02]RAPDU: 90 00 [08:15:02]wFMCommunicate OK [08:15:02]SAM_PROTO_ClearQueue done [08:15:02]KKMCreateOFDPacket [08:15:02]OFDProtocolAddRootSTLVToBuf [08:15:02]FM_MakeSignedData [08:15:02]FM_MakeSignedData [08:15:02]SAM_PROTO_SignData [08:15:02]wFMCommunicate request_size=4 [08:15:02]MH_SAM_APDU [08:15:02]CAPDU: 80 0D 01 02 [08:15:02]Write to MH i2c: E2 08 00 29 2D 80 0D 01 02 00 00 00 00 CF [08:15:02]Write i2c OK [08:15:02]MH_I2C_Read... [08:15:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:15:02]Read from MH i2c: E2 [08:15:02]MH_I2C_Read... [08:15:02]Read from MH i2c: E2 03 00 [08:15:02]MH_I2C_Read... [08:15:02]Read from MH i2c: E2 03 00 29 2D 00 90 00 CA [08:15:02]RAPDU: 90 00 [08:15:02]wFMCommunicate OK [08:15:02]wFMCommunicate request_size=255 [08:15:02]MH_SAM_APDU [08:15:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 08 BC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9E 77 03 00 35 04 06 00 CA [08:15:02]Write to MH i2c: E2 02 01 2A 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 08 BC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9E 77 03 00 35 04 06 00 CA 00 00 EC [08:15:02]Write i2c OK [08:15:02]MH_I2C_Read... [08:15:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:15:02]Read from MH i2c: E2 [08:15:02]MH_I2C_Read... [08:15:02]Read from MH i2c: E2 03 00 [08:15:02]MH_I2C_Read... [08:15:02]Read from MH i2c: E2 03 00 2A 2D 00 90 00 CB [08:15:02]RAPDU: 90 00 [08:15:02]wFMCommunicate OK [08:15:02]wFMCommunicate request_size=10 [08:15:02]MH_SAM_APDU [08:15:02]CAPDU: 80 0D 02 02 05 5A 9C EB 11 8A [08:15:02]Write to MH i2c: E2 0D 00 2B 2D 80 0D 02 02 05 00 5A 9C EB 11 8A 00 00 58 [08:15:02]Write i2c OK [08:15:02]MH_I2C_Read... [08:15:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:15:02]Read from MH i2c: E2 [08:15:02]MH_I2C_Read... [08:15:02]Read from MH i2c: E2 03 00 [08:15:02]MH_I2C_Read... [08:15:02]Read from MH i2c: E2 03 00 2B 2D 00 90 00 CC [08:15:02]RAPDU: 90 00 [08:15:02]wFMCommunicate OK [08:15:02]wFMCommunicate request_size=4 [08:15:02]MH_SAM_APDU [08:15:02]CAPDU: 80 0D 03 02 [08:15:02]Write to MH i2c: E2 08 00 2C 2D 80 0D 03 02 00 00 00 00 D4 [08:15:02]Write i2c OK [08:15:02]MH_I2C_Read... [08:15:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:15:02]Read from MH i2c: E2 [08:15:02]MH_I2C_Read... [08:15:02]Read from MH i2c: E2 0B 00 [08:15:02]MH_I2C_Read... [08:15:02]Read from MH i2c: E2 0B 00 2C 2D 00 AC 7C 60 E1 8E EE C5 2E 90 00 AD [08:15:02]RAPDU: AC 7C 60 E1 8E EE C5 2E 90 00 [08:15:02]wFMCommunicate OK [08:15:02]SAM_PROTO_SignData done [08:15:02]FM_MakeSignedData done [08:15:02]CreateOFDProtocolMessage [08:15:02]wFMCommunicate request_size=4 [08:15:02]MH_SAM_APDU [08:15:02]CAPDU: 80 11 00 00 [08:15:02]Write to MH i2c: E2 08 00 2D 2D 80 11 00 00 00 00 00 00 D4 [08:15:02]Write i2c OK [08:15:02]MH_I2C_Read... [08:15:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:15:02]Read from MH i2c: E2 [08:15:02]MH_I2C_Read... [08:15:02]Read from MH i2c: E2 17 00 [08:15:02]MH_I2C_Read... [08:15:02]Read from MH i2c: E2 17 00 2D 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 2B [08:15:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:15:02]wFMCommunicate OK [08:15:02]CreateOFDProtocolMessage done [08:15:02]OFDSenderStorePacket 227230 [08:15:02]StoreOFDPacket docnum=227230 [08:15:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 AA A3 07 01 29 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 08 BC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9E 77 03 00 35 04 06 00 CA 5A 9C EB 11 8A AC 7C 60 E1 8E EE C5 2E [08:15:02]CheckFolder [08:15:02]dirname=/storage/ofd_packets [08:15:02]CheckFolder done [08:15:02]ProducePacketName [08:15:02]name=ofd_packets/00227230 [08:15:02]NVStorageSaveData ofd_packets/00227230 [08:15:02]File name is /storage/ofd_packets/00227230 [08:15:02]Write 301 bytes [08:15:02]NVStorageSaveData done [08:15:02]OFDSenderStorePacket done [08:15:02]KKMCreateOFDPacket done [08:15:02]NVStorageSaveData kkm_last_timestamp [08:15:02]File name is /storage/kkm_last_timestamp [08:15:02]Write 4 bytes [08:15:02]NVStorageSaveData done [08:15:02]ExternCall_PrintAddStr [08:15:02]wPrintStart [08:15:02]Write to MH i2c: 01 00 00 2E 2D 5B [08:15:02]Write i2c OK [08:15:02]MH_I2C_Read... [08:15:02]Read from MH i2c: 01 [08:15:02]MH_I2C_Read... [08:15:02]Read from MH i2c: 01 07 00 [08:15:02]MH_I2C_Read... [08:15:02]Read from MH i2c: 01 07 00 2E 2D 00 00 00 00 00 FF 0F 70 [08:15:02]RasterBufferAndPrint [08:15:02]line Счет N : (1)1962686 [08:15:02]line ИНН: 02508201610067 [08:15:02]line Контрольно-Кассовый Чек [08:15:02]line ПРОДАЖА [08:15:02]line ТРК (МРК, ГНК) : 33 [08:15:02]line Товар: 2710124130 [08:15:02]line Аи-92-К-5 [08:15:02]line 7.480 * 66.90 [08:15:02]line = 500.41 [08:15:02]line НДС 12% НСП 1% [08:15:02]line > о реализуемом товаре [08:15:02]line ОКРУГЛЕНИЕ: -0.41 [08:15:02]line ИТОГО: 500.00 [08:15:02]line Внесено: 500.00 [08:15:02]line СДАЧА: 0.00 [08:15:02]line НСП 1% : 4.43 [08:15:02]line НДС 12% : 53.14 [08:15:02]line Наличными: 500.00 [08:15:02]line Безнал.: 0.00 [08:15:02]line Место: АЗС № 133 "Партнер Нефть" [08:15:02]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [08:15:02]line СНО: Общий режим [08:15:02]line Чек 78 20.10.2024 08:15 [08:15:02]line Смена: 533 ФФД: 1.0 [08:15:02]line ЗНМ: 0300000091 [08:15:02]line РНМ: 0000000000091685 [08:15:02]line Версия ККМ: 001 [08:15:02]line ФМ: 0000000000871839 [08:15:02]line ФД: 227230 [08:15:02]line ФПД: 222490528518538 [08:15:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T081504&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227230&fm=222490528518538&tin=02508201610067®Number=0000000000091685&sum=50000 [08:15:02]written 0, free lines is 4095 [08:15:02]OFD Sender: Processing packet 227230 [packets to send 38, broken 37] [08:15:02]ProducePacketName [08:15:02]name=ofd_packets/00227230 [08:15:02]OFD Sender: To server: pG, [08:15:02]CommunicateWithHost lk.salyk.kg:30040 [08:15:02]ConnectInit lk.salyk.kg [08:15:02]Connected sock=10 [08:15: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 33 39 0F 01 00 00 AA A3 07 01 29 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 08 BC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9E 77 03 00 35 04 06 00 CA 5A 9C EB 11 8A AC 7C 60 E1 8E EE C5 2E [08:15: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 33 39 4F 00 00 00 BD 5F 47 00 B0 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 33 39 10 04 04 00 9E 77 03 00 F4 03 04 00 07 67 14 67 B6 04 01 00 00 03 B7 87 61 E2 52 13 F8 [08:15:02]CommunicateWithHost err = 0 [08:15:02]CheckOFDResponse [08:15:02]1017 (14) - 77093643461234 [08:15:02]1041 (16) - 0000000000871839 [08:15:02]1040 (4) - 227230 [08:15:02]1012 (4) - 20.10.2024 02:12 [08:15:02]1206 (1) - 0 [08:15:02]OFD Sender: Remove packet 227230 [08:15:02]ProducePacketName [08:15:02]name=ofd_packets/00227230 [08:15:02]NVStorageDeleteData [08:15:03]Write to MH i2c: 01 00 00 58 2D 85 [08:15:03]Write i2c OK [08:15:03]MH_I2C_Read... [08:15:03]Read from MH i2c: 01 [08:15:03]MH_I2C_Read... [08:15:03]Read from MH i2c: 01 07 00 [08:15:03]MH_I2C_Read... [08:15:03]Read from MH i2c: 01 07 00 58 2D 00 00 00 00 00 20 0D B9 [08:15:03]RasterBufferAndPrint [08:15:03]line [08:15:03]line [08:15:03]line [08:15:03]line [08:15:03]line [08:15:03]written 0, free lines is 3375 [08:15:03]process_action close_receipt done [08:15:03]requested_data is exist [08:15:03]produce_requested_data [08:15:03]requested_item fm.sn is exist - process it [08:15:03]wFMCommunicate request_size=4 [08:15:03]MH_SAM_APDU [08:15:03]CAPDU: 80 11 00 00 [08:15:03]Write to MH i2c: E2 08 00 5F 2D 80 11 00 00 00 00 00 00 06 [08:15:03]Write i2c OK [08:15:03]MH_I2C_Read... [08:15:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:15:03]Read from MH i2c: E2 [08:15:03]MH_I2C_Read... [08:15:03]Read from MH i2c: E2 17 00 [08:15:03]MH_I2C_Read... [08:15:03]Read from MH i2c: E2 17 00 5F 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 5D [08:15:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:15:03]wFMCommunicate OK [08:15:03]requested_item fd.num is exist - process it [08:15:03]SAM_PROTO_GetFieldsCounters [08:15:03]wFMCommunicate request_size=4 [08:15:03]MH_SAM_APDU [08:15:03]CAPDU: 80 13 00 00 [08:15:03]Write to MH i2c: E2 08 00 60 2D 80 13 00 00 00 00 00 00 09 [08:15:03]Write i2c OK [08:15:03]MH_I2C_Read... [08:15:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:15:03]Read from MH i2c: E2 [08:15:03]MH_I2C_Read... [08:15:03]Read from MH i2c: E2 62 00 [08:15:03]MH_I2C_Read... [08:15:03]Read from MH i2c: E2 62 00 60 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 9E 77 03 00 0E 04 04 00 15 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 4B [08:15:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 9E 77 03 00 0E 04 04 00 15 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 [08:15:03]wFMCommunicate OK [08:15:03]SAM_PROTO_GetFieldsCounters done [08:15:03]requested_item shift.num is exist - process it [08:15:03]requested_item shift.opened is exist - process it [08:15:03]req_shift_opened [08:15:03]FM_GetShiftState [08:15:03]SAM_PROTO_GetShiftState [08:15:03]wFMCommunicate request_size=4 [08:15:03]MH_SAM_APDU [08:15:03]CAPDU: 80 13 01 00 [08:15:03]Write to MH i2c: E2 08 00 61 2D 80 13 01 00 00 00 00 00 0B [08:15:03]Write i2c OK [08:15:03]MH_I2C_Read... [08:15:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:15:03]Read from MH i2c: E2 [08:15:03]MH_I2C_Read... [08:15:03]Read from MH i2c: E2 0E 00 [08:15:03]MH_I2C_Read... [08:15:03]Read from MH i2c: E2 0E 00 61 2D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 25 [08:15:03]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:15:03]wFMCommunicate OK [08:15:03]SAM_PROTO_GetShiftState done [08:15:03]FM_GetShiftState done [08:15:03]req_shift_opened done [08:15:03]requested_item shift.open_date is exist - process it [08:15:03]req_shift_open_date [08:15:03]req_shift_open_date done [08:15:03]produce_requested_data done [08:15:03]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227230,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [08:15:03]process_action_free close_receipt [08:15:03]json_value_free [08:15:03]json_value_free done [08:15:03]process_json_proto returns [08:15:03]Send response to host [08:15:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227230,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [08:15:03]free response buf [08:15:03]execute_script done [08:15:03]execute_script returns [08:15:03]free content buf [08:15:03]Sock 9.Close socket [08:15:03]Sock 9.Thread stoped [08:15:03]OFD Sender: No OFD packet to send [08:15:08]OFD Sender: No OFD packet to send [08:15:13]OFD Sender: No OFD packet to send [08:15:18]OFD Sender: No OFD packet to send [08:15:23]OFD Sender: No OFD packet to send [08:15:28]OFD Sender: No OFD packet to send [08:15:33]OFD Sender: No OFD packet to send [08:15:38]OFD Sender: No OFD packet to send [08:15:43]OFD Sender: No OFD packet to send [08:15:48]OFD Sender: No OFD packet to send [08:15:53]OFD Sender: No OFD packet to send [08:15:58]OFD Sender: No OFD packet to send [08:16:03]OFD Sender: No OFD packet to send [08:16:08]OFD Sender: No OFD packet to send [08:16:13]OFD Sender: No OFD packet to send [08:16:18]OFD Sender: No OFD packet to send [08:16:23]OFD Sender: No OFD packet to send [08:16:28]accept exits with 8 [08:16:28]New connection [08:16:28]New thread 3066965348 created [08:16:28]Thread 3066821988 joined [08:16:28]Waiting for new connection... [08:16:28] Sock 8.Parse request [08:16:28]Sock 8.Check first char [08:16:28]Sock 8.First char is OK [08:16:28]request: POST /json_proto HTTP/1.0 [08:16:28]Method: POST [08:16:28]URL: /json_proto [08:16:28]Method is POST - this is cgi request [08:16:28]url: /json_proto [08:16:28]query_string will be loaded in cgi processing [08:16:28]execute_cgi json_proto POST (null) [08:16:28]execute_cgi path=json_proto method=POST [08:16:28]POST find Content-Length [08:16:28]Host: 172.17.44.195:8080 [08:16:28]Content-Length: 678 [08:16:28]Content-Type: application/json [08:16:28] [08:16:28]POST finish read [08:16:28]Found Content-Length = 678 [08:16:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962687", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.700, "sum" : 180.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 180.00, "total" : 180.00, "payments": [ { "type": 0, "sum" : 180.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:16:28]execute_script... [08:16: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)1962687", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.700, "sum" : 180.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 180.00, "total" : 180.00, "payments": [ { "type": 0, "sum" : 180.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:16:28]POST & json_proto [08:16:28]process_json_proto [08:16:28]json parsed OK: [08:16:28]protocol is kg_v1.0 [08:16:28]action value=close_receipt [08:16:28]process_action close_receipt [08:16:28]cmd_close_receipt [08:16:28]MH_GetDate [08:16:28]Write to MH i2c: F0 00 00 62 2D 7E [08:16:28]Write i2c OK [08:16:28]MH_I2C_Read... [08:16:28]Read from MH i2c: F0 [08:16:28]MH_I2C_Read... [08:16:28]Read from MH i2c: F0 09 00 [08:16:28]MH_I2C_Read... [08:16:28]Read from MH i2c: F0 09 00 62 2D 00 5F BC 14 67 82 C9 CF 66 9D [08:16:28]GetLastDocTimeStamp 1729412104 [08:16:28]current date 1729412191 [08:16:28]FM_GetShiftState [08:16:28]SAM_PROTO_GetShiftState [08:16:28]wFMCommunicate request_size=4 [08:16:28]MH_SAM_APDU [08:16:28]CAPDU: 80 13 01 00 [08:16:28]Write to MH i2c: E2 08 00 63 2D 80 13 01 00 00 00 00 00 0D [08:16:28]Write i2c OK [08:16:28]MH_I2C_Read... [08:16:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:16:28]Read from MH i2c: E2 [08:16:28]MH_I2C_Read... [08:16:28]Read from MH i2c: E2 0E 00 [08:16:28]MH_I2C_Read... [08:16:28]Read from MH i2c: E2 0E 00 63 2D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 27 [08:16:28]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:16:28]wFMCommunicate OK [08:16:28]SAM_PROTO_GetShiftState done [08:16:28]FM_GetShiftState done [08:16:28]opened in 1729383750 [08:16:28]opened+sec_in_day 1729470150 [08:16:28]quantity*price = 18063 [08:16:28]sum+1 = 18064 [08:16:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 180.00 Внесено: 180.00 СДАЧА: 0.00 НСП 1% : 1.60 НДС 12% : 19.18 Наличными: 180.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 79 20.10.2024 08:16 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227231 ФПД: 150312916991948 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T081631&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227231&fm=150312916991948&tin=02508201610067®Number=0000000000091685&sum=18000 [08:16:29]StoreToDocumentArchive [08:16:29]shift 533 fd 227231 [08:16:29]save to /storage/0533/doc_00227231 [08:16:29]save last doc name /storage/0533/doc_00227231 to /storage/kkm_last_doc_name [08:16:29]save OK [08:16:29]Clear old archive folders... [08:16:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:16:29]tlvbuf is 00508F40 [08:16:29]SAM_PROTO_ClearQueue [08:16:29]wFMCommunicate request_size=4 [08:16:29]MH_SAM_APDU [08:16:29]CAPDU: 80 09 00 00 [08:16:29]Write to MH i2c: E2 08 00 70 2D 80 09 00 00 00 00 00 00 0F [08:16:29]Write i2c OK [08:16:29]MH_I2C_Read... [08:16:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:16:29]Read from MH i2c: E2 [08:16:29]MH_I2C_Read... [08:16:29]Read from MH i2c: E2 03 00 [08:16:29]MH_I2C_Read... [08:16:29]Read from MH i2c: E2 03 00 70 2D 00 90 00 11 [08:16:29]RAPDU: 90 00 [08:16:29]wFMCommunicate OK [08:16:29]SAM_PROTO_ClearQueue done [08:16:29]KKMCreateOFDPacket [08:16:29]OFDProtocolAddRootSTLVToBuf [08:16:29]FM_MakeSignedData [08:16:29]FM_MakeSignedData [08:16:29]SAM_PROTO_SignData [08:16:29]wFMCommunicate request_size=4 [08:16:29]MH_SAM_APDU [08:16:29]CAPDU: 80 0D 01 02 [08:16:29]Write to MH i2c: E2 08 00 71 2D 80 0D 01 02 00 00 00 00 17 [08:16:29]Write i2c OK [08:16:29]MH_I2C_Read... [08:16:29]Read from MH i2c: E2 [08:16:29]MH_I2C_Read... [08:16:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:16:29]Read from MH i2c: E2 03 00 [08:16:29]MH_I2C_Read... [08:16:29]Read from MH i2c: E2 03 00 71 2D 00 90 00 12 [08:16:29]RAPDU: 90 00 [08:16:29]wFMCommunicate OK [08:16:29]wFMCommunicate request_size=255 [08:16:29]MH_SAM_APDU [08:16:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8C 0A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8F 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 5F BC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9F 77 03 00 35 04 06 00 88 [08:16:29]Write to MH i2c: E2 02 01 72 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8C 0A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8F 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 5F BC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9F 77 03 00 35 04 06 00 88 00 00 BE [08:16:29]Write i2c OK [08:16:29]MH_I2C_Read... [08:16:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:16:29]Read from MH i2c: E2 [08:16:29]MH_I2C_Read... [08:16:29]Read from MH i2c: E2 03 00 [08:16:29]MH_I2C_Read... [08:16:29]Read from MH i2c: E2 03 00 72 2D 00 90 00 13 [08:16:29]RAPDU: 90 00 [08:16:29]wFMCommunicate OK [08:16:29]wFMCommunicate request_size=10 [08:16:29]MH_SAM_APDU [08:16:29]CAPDU: 80 0D 02 02 05 B5 74 05 BF CC [08:16:29]Write to MH i2c: E2 0D 00 73 2D 80 0D 02 02 05 00 B5 74 05 BF CC 00 00 DD [08:16:29]Write i2c OK [08:16:29]MH_I2C_Read... [08:16:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:16:29]Read from MH i2c: E2 [08:16:29]MH_I2C_Read... [08:16:29]Read from MH i2c: E2 03 00 [08:16:29]MH_I2C_Read... [08:16:29]Read from MH i2c: E2 03 00 73 2D 00 90 00 14 [08:16:29]RAPDU: 90 00 [08:16:29]wFMCommunicate OK [08:16:29]wFMCommunicate request_size=4 [08:16:29]MH_SAM_APDU [08:16:29]CAPDU: 80 0D 03 02 [08:16:29]Write to MH i2c: E2 08 00 74 2D 80 0D 03 02 00 00 00 00 1C [08:16:29]Write i2c OK [08:16:29]MH_I2C_Read... [08:16:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:16:29]Read from MH i2c: E2 [08:16:29]MH_I2C_Read... [08:16:29]Read from MH i2c: E2 0B 00 [08:16:29]MH_I2C_Read... [08:16:29]Read from MH i2c: E2 0B 00 74 2D 00 CF 67 7A 52 0A 1D 14 EF 90 00 49 [08:16:29]RAPDU: CF 67 7A 52 0A 1D 14 EF 90 00 [08:16:29]wFMCommunicate OK [08:16:29]SAM_PROTO_SignData done [08:16:29]FM_MakeSignedData done [08:16:29]CreateOFDProtocolMessage [08:16:29]wFMCommunicate request_size=4 [08:16:29]MH_SAM_APDU [08:16:29]CAPDU: 80 11 00 00 [08:16:29]Write to MH i2c: E2 08 00 75 2D 80 11 00 00 00 00 00 00 1C [08:16:29]Write i2c OK [08:16:29]MH_I2C_Read... [08:16:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:16:29]Read from MH i2c: E2 [08:16:29]MH_I2C_Read... [08:16:29]Read from MH i2c: E2 17 00 [08:16:29]MH_I2C_Read... [08:16:29]Read from MH i2c: E2 17 00 75 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 73 [08:16:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:16:29]wFMCommunicate OK [08:16:29]CreateOFDProtocolMessage done [08:16:29]OFDSenderStorePacket 227231 [08:16:29]StoreOFDPacket docnum=227231 [08:16:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 4A 40 07 01 0F 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8C 0A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8F 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 5F BC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9F 77 03 00 35 04 06 00 88 B5 74 05 BF CC CF 67 7A 52 0A 1D 14 EF [08:16:29]CheckFolder [08:16:29]dirname=/storage/ofd_packets [08:16:29]CheckFolder done [08:16:29]ProducePacketName [08:16:29]name=ofd_packets/00227231 [08:16:29]NVStorageSaveData ofd_packets/00227231 [08:16:29]File name is /storage/ofd_packets/00227231 [08:16:29]Write 301 bytes [08:16:29]NVStorageSaveData done [08:16:29]OFDSenderStorePacket done [08:16:29]KKMCreateOFDPacket done [08:16:29]NVStorageSaveData kkm_last_timestamp [08:16:29]File name is /storage/kkm_last_timestamp [08:16:29]Write 4 bytes [08:16:29]NVStorageSaveData done [08:16:29]ExternCall_PrintAddStr [08:16:29]wPrintStart [08:16:29]Write to MH i2c: 01 00 00 76 2D A3 [08:16:29]Write i2c OK [08:16:29]MH_I2C_Read... [08:16:29]Read from MH i2c: 01 [08:16:29]MH_I2C_Read... [08:16:29]Read from MH i2c: 01 07 00 [08:16:29]MH_I2C_Read... [08:16:29]Read from MH i2c: 01 07 00 76 2D 00 00 00 00 00 FF 0F B8 [08:16:29]RasterBufferAndPrint [08:16:29]line Счет N : (1)1962687 [08:16:29]line ИНН: 02508201610067 [08:16:29]line Контрольно-Кассовый Чек [08:16:29]line ПРОДАЖА [08:16:29]line ТРК (МРК, ГНК) : 43 [08:16:29]line Товар: 2710124130 [08:16:29]line Аи-92-К-5 [08:16:29]line 2.700 * 66.90 [08:16:29]line = 180.63 [08:16:29]line НДС 12% НСП 1% [08:16:29]line > о реализуемом товаре [08:16:29]line ОКРУГЛЕНИЕ: -0.63 [08:16:29]line ИТОГО: 180.00 [08:16:29]line Внесено: 180.00 [08:16:29]line СДАЧА: 0.00 [08:16:29]line НСП 1% : 1.60 [08:16:29]line НДС 12% : 19.18 [08:16:29]line Наличными: 180.00 [08:16:29]line Безнал.: 0.00 [08:16:29]line Место: АЗС № 133 "Партнер Нефть" [08:16:29]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [08:16:29]line СНО: Общий режим [08:16:29]line Чек 79 20.10.2024 08:16 [08:16:29]line Смена: 533 ФФД: 1.0 [08:16:29]line ЗНМ: 0300000091 [08:16:29]line РНМ: 0000000000091685 [08:16:29]line Версия ККМ: 001 [08:16:29]line ФМ: 0000000000871839 [08:16:29]line ФД: 227231 [08:16:29]line ФПД: 150312916991948 [08:16:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T081631&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227231&fm=150312916991948&tin=02508201610067®Number=0000000000091685&sum=18000 [08:16:30]OFD Sender: Processing packet 227231 [packets to send 38, broken 37] [08:16:30]ProducePacketName [08:16:30]name=ofd_packets/00227231 [08:16:30]OFD Sender: To server: pG, [08:16:30]CommunicateWithHost lk.salyk.kg:30040 [08:16:30]ConnectInit lk.salyk.kg [08:16:30]written 0, free lines is 4095 [08:16:30]Connected sock=10 [08:16: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 33 39 0F 01 00 00 4A 40 07 01 0F 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8C 0A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8F 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 5F BC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9F 77 03 00 35 04 06 00 88 B5 74 05 BF CC CF 67 7A 52 0A 1D 14 EF [08:16: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 33 39 4F 00 00 00 4A 76 47 00 D2 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 33 39 10 04 04 00 9F 77 03 00 F4 03 04 00 5F 67 14 67 B6 04 01 00 00 55 03 E1 81 65 5F D3 A6 [08:16:30]CommunicateWithHost err = 0 [08:16:30]CheckOFDResponse [08:16:30]1017 (14) - 77093643461234 [08:16:30]1041 (16) - 0000000000871839 [08:16:30]1040 (4) - 227231 [08:16:30]1012 (4) - 20.10.2024 02:13 [08:16:30]1206 (1) - 0 [08:16:30]OFD Sender: Remove packet 227231 [08:16:30]ProducePacketName [08:16:30]name=ofd_packets/00227231 [08:16:30]NVStorageDeleteData [08:16:30]Write to MH i2c: 01 00 00 A0 2D CD [08:16:30]Write i2c OK [08:16:30]MH_I2C_Read... [08:16:30]Read from MH i2c: 01 [08:16:30]MH_I2C_Read... [08:16:30]Read from MH i2c: 01 07 00 [08:16:30]MH_I2C_Read... [08:16:30]Read from MH i2c: 01 07 00 A0 2D 00 00 00 00 00 0E 0D EF [08:16:30]RasterBufferAndPrint [08:16:30]line [08:16:30]line [08:16:30]line [08:16:30]line [08:16:30]line [08:16:30]written 0, free lines is 3349 [08:16:30]process_action close_receipt done [08:16:30]requested_data is exist [08:16:30]produce_requested_data [08:16:30]requested_item fm.sn is exist - process it [08:16:30]wFMCommunicate request_size=4 [08:16:30]MH_SAM_APDU [08:16:30]CAPDU: 80 11 00 00 [08:16:30]Write to MH i2c: E2 08 00 A7 2D 80 11 00 00 00 00 00 00 4E [08:16:30]Write i2c OK [08:16:30]MH_I2C_Read... [08:16:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:16:30]Read from MH i2c: E2 [08:16:30]MH_I2C_Read... [08:16:30]Read from MH i2c: E2 17 00 [08:16:30]MH_I2C_Read... [08:16:30]Read from MH i2c: E2 17 00 A7 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A5 [08:16:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:16:30]wFMCommunicate OK [08:16:30]requested_item fd.num is exist - process it [08:16:30]SAM_PROTO_GetFieldsCounters [08:16:30]wFMCommunicate request_size=4 [08:16:30]MH_SAM_APDU [08:16:30]CAPDU: 80 13 00 00 [08:16:30]Write to MH i2c: E2 08 00 A8 2D 80 13 00 00 00 00 00 00 51 [08:16:30]Write i2c OK [08:16:30]MH_I2C_Read... [08:16:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:16:30]Read from MH i2c: E2 [08:16:30]MH_I2C_Read... [08:16:30]Read from MH i2c: E2 62 00 [08:16:30]MH_I2C_Read... [08:16:30]Read from MH i2c: E2 62 00 A8 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 9F 77 03 00 0E 04 04 00 15 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 97 [08:16:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 9F 77 03 00 0E 04 04 00 15 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 [08:16:30]wFMCommunicate OK [08:16:30]SAM_PROTO_GetFieldsCounters done [08:16:30]requested_item shift.num is exist - process it [08:16:30]requested_item shift.opened is exist - process it [08:16:30]req_shift_opened [08:16:30]FM_GetShiftState [08:16:30]SAM_PROTO_GetShiftState [08:16:30]wFMCommunicate request_size=4 [08:16:30]MH_SAM_APDU [08:16:30]CAPDU: 80 13 01 00 [08:16:30]Write to MH i2c: E2 08 00 A9 2D 80 13 01 00 00 00 00 00 53 [08:16:30]Write i2c OK [08:16:30]MH_I2C_Read... [08:16:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:16:30]Read from MH i2c: E2 [08:16:30]MH_I2C_Read... [08:16:30]Read from MH i2c: E2 0E 00 [08:16:30]MH_I2C_Read... [08:16:30]Read from MH i2c: E2 0E 00 A9 2D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 6D [08:16:30]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:16:30]wFMCommunicate OK [08:16:30]SAM_PROTO_GetShiftState done [08:16:30]FM_GetShiftState done [08:16:30]req_shift_opened done [08:16:30]requested_item shift.open_date is exist - process it [08:16:30]req_shift_open_date [08:16:30]req_shift_open_date done [08:16:30]produce_requested_data done [08:16:30]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227231,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [08:16:30]process_action_free close_receipt [08:16:30]json_value_free [08:16:30]json_value_free done [08:16:30]process_json_proto returns [08:16:30]Send response to host [08:16:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227231,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [08:16:30]free response buf [08:16:30]execute_script done [08:16:30]execute_script returns [08:16:30]free content buf [08:16:30]Sock 8.Close socket [08:16:30]Sock 8.Thread stoped [08:16:31]OFD Sender: No OFD packet to send [08:16:36]OFD Sender: No OFD packet to send [08:16:40]accept exits with 9 [08:16:40]New connection [08:16:40]New thread 3066821988 created [08:16:40]Thread 3066965348 joined [08:16:40]Waiting for new connection... [08:16:40] Sock 9.Parse request [08:16:40]Sock 9.Check first char [08:16:40]Sock 9.First char is OK [08:16:40]request: POST /json_proto HTTP/1.0 [08:16:40]Method: POST [08:16:40]URL: /json_proto [08:16:40]Method is POST - this is cgi request [08:16:40]url: /json_proto [08:16:40]query_string will be loaded in cgi processing [08:16:40]execute_cgi json_proto POST (null) [08:16:40]execute_cgi path=json_proto method=POST [08:16:40]POST find Content-Length [08:16:40]Host: 172.17.44.195:8080 [08:16:40]Content-Length: 660 [08:16:40]Content-Type: application/json [08:16:40] [08:16:40]POST finish read [08:16:40]Found Content-Length = 660 [08:16:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962688", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 12.430, "sum" : 850.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 850.00, "total" : 850.00, "payments": [ { "type": 0, "sum" : 850.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:16:40]execute_script... [08:16: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)1962688", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 12.430, "sum" : 850.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 850.00, "total" : 850.00, "payments": [ { "type": 0, "sum" : 850.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:16:40]POST & json_proto [08:16:40]process_json_proto [08:16:40]json parsed OK: [08:16:40]protocol is kg_v1.0 [08:16:40]action value=close_receipt [08:16:40]process_action close_receipt [08:16:40]cmd_close_receipt [08:16:40]MH_GetDate [08:16:40]Write to MH i2c: F0 00 00 AA 2D C6 [08:16:40]Write i2c OK [08:16:40]MH_I2C_Read... [08:16:40]Read from MH i2c: F0 [08:16:40]MH_I2C_Read... [08:16:40]Read from MH i2c: F0 09 00 [08:16:40]MH_I2C_Read... [08:16:40]Read from MH i2c: F0 09 00 AA 2D 00 6C BC 14 67 82 C9 CF 66 F2 [08:16:40]GetLastDocTimeStamp 1729412191 [08:16:40]current date 1729412204 [08:16:40]FM_GetShiftState [08:16:40]SAM_PROTO_GetShiftState [08:16:40]wFMCommunicate request_size=4 [08:16:40]MH_SAM_APDU [08:16:40]CAPDU: 80 13 01 00 [08:16:40]Write to MH i2c: E2 08 00 AB 2D 80 13 01 00 00 00 00 00 55 [08:16:40]Write i2c OK [08:16:40]MH_I2C_Read... [08:16:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:16:40]Read from MH i2c: E2 [08:16:40]MH_I2C_Read... [08:16:40]Read from MH i2c: E2 0E 00 [08:16:40]MH_I2C_Read... [08:16:40]Read from MH i2c: E2 0E 00 AB 2D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 6F [08:16:40]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:16:40]wFMCommunicate OK [08:16:40]SAM_PROTO_GetShiftState done [08:16:40]FM_GetShiftState done [08:16:40]opened in 1729383750 [08:16:40]opened+sec_in_day 1729470150 [08:16:40]quantity*price = 85021 [08:16:40]sum+1 = 85022 [08:16:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 850.00 Внесено: 850.00 СДАЧА: 0.00 НСП 1% : 7.52 НДС 12% : 90.29 Наличными: 850.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 80 20.10.2024 08:16 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227232 ФПД: 18697431986962 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T081644&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227232&fm=18697431986962&tin=02508201610067®Number=0000000000091685&sum=85000 [08:16:41]StoreToDocumentArchive [08:16:41]shift 533 fd 227232 [08:16:41]save to /storage/0533/doc_00227232 [08:16:41]save last doc name /storage/0533/doc_00227232 to /storage/kkm_last_doc_name [08:16:41]save OK [08:16:41]Clear old archive folders... [08:16:41]ProcessDocumentItem done err = 0, tmpTLVsize=244 [08:16:41]tlvbuf is 004FD780 [08:16:41]SAM_PROTO_ClearQueue [08:16:41]wFMCommunicate request_size=4 [08:16:41]MH_SAM_APDU [08:16:41]CAPDU: 80 09 00 00 [08:16:41]Write to MH i2c: E2 08 00 B8 2D 80 09 00 00 00 00 00 00 57 [08:16:41]Write i2c OK [08:16:41]MH_I2C_Read... [08:16:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:16:41]Read from MH i2c: E2 [08:16:41]MH_I2C_Read... [08:16:41]Read from MH i2c: E2 03 00 [08:16:41]MH_I2C_Read... [08:16:41]Read from MH i2c: E2 03 00 B8 2D 00 90 00 59 [08:16:41]RAPDU: 90 00 [08:16:41]wFMCommunicate OK [08:16:41]SAM_PROTO_ClearQueue done [08:16:41]KKMCreateOFDPacket [08:16:41]OFDProtocolAddRootSTLVToBuf [08:16:41]FM_MakeSignedData [08:16:41]FM_MakeSignedData [08:16:41]SAM_PROTO_SignData [08:16:41]wFMCommunicate request_size=4 [08:16:41]MH_SAM_APDU [08:16:41]CAPDU: 80 0D 01 02 [08:16:41]Write to MH i2c: E2 08 00 B9 2D 80 0D 01 02 00 00 00 00 5F [08:16:41]Write i2c OK [08:16:41]MH_I2C_Read... [08:16:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:16:42]Read from MH i2c: E2 [08:16:42]MH_I2C_Read... [08:16:42]Read from MH i2c: E2 03 00 [08:16:42]MH_I2C_Read... [08:16:42]Read from MH i2c: E2 03 00 B9 2D 00 90 00 5A [08:16:42]RAPDU: 90 00 [08:16:42]wFMCommunicate OK [08:16:42]wFMCommunicate request_size=253 [08:16:42]MH_SAM_APDU [08:16:42]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 30 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 1D 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 23 00 00 00 00 07 04 06 00 08 4C 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 6C BC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A0 77 03 00 35 04 06 00 11 01 55 CA B3 12 [08:16:42]Write to MH i2c: E2 00 01 BA 2D 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 30 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 1D 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 23 00 00 00 00 07 04 06 00 08 4C 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 6C BC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A0 77 03 00 35 04 06 00 11 01 55 CA B3 12 00 00 37 [08:16:42]Write i2c OK [08:16:42]MH_I2C_Read... [08:16:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:16:42]Read from MH i2c: E2 [08:16:42]MH_I2C_Read... [08:16:42]Read from MH i2c: E2 03 00 [08:16:42]MH_I2C_Read... [08:16:42]Read from MH i2c: E2 03 00 BA 2D 00 90 00 5B [08:16:42]RAPDU: 90 00 [08:16:42]wFMCommunicate OK [08:16:42]wFMCommunicate request_size=4 [08:16:42]MH_SAM_APDU [08:16:42]CAPDU: 80 0D 03 02 [08:16:42]Write to MH i2c: E2 08 00 BB 2D 80 0D 03 02 00 00 00 00 63 [08:16:42]Write i2c OK [08:16:42]MH_I2C_Read... [08:16:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:16:42]Read from MH i2c: E2 [08:16:42]MH_I2C_Read... [08:16:42]Read from MH i2c: E2 0B 00 [08:16:42]MH_I2C_Read... [08:16:42]Read from MH i2c: E2 0B 00 BB 2D 00 BE 4F 6A 78 F6 9F B8 73 90 00 13 [08:16:42]RAPDU: BE 4F 6A 78 F6 9F B8 73 90 00 [08:16:42]wFMCommunicate OK [08:16:42]SAM_PROTO_SignData done [08:16:42]FM_MakeSignedData done [08:16:42]CreateOFDProtocolMessage [08:16:42]wFMCommunicate request_size=4 [08:16:42]MH_SAM_APDU [08:16:42]CAPDU: 80 11 00 00 [08:16:42]Write to MH i2c: E2 08 00 BC 2D 80 11 00 00 00 00 00 00 63 [08:16:42]Write i2c OK [08:16:42]MH_I2C_Read... [08:16:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:16:42]Read from MH i2c: E2 [08:16:42]MH_I2C_Read... [08:16:42]Read from MH i2c: E2 17 00 [08:16:42]MH_I2C_Read... [08:16:42]Read from MH i2c: E2 17 00 BC 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 BA [08:16:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:16:42]wFMCommunicate OK [08:16:42]CreateOFDProtocolMessage done [08:16:42]OFDSenderStorePacket 227232 [08:16:42]StoreOFDPacket docnum=227232 [08:16:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 A9 2A 00 01 F5 67 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 30 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 1D 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 23 00 00 00 00 07 04 06 00 08 4C 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 6C BC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A0 77 03 00 35 04 06 00 11 01 55 CA B3 12 BE 4F 6A 78 F6 9F B8 73 [08:16:42]CheckFolder [08:16:42]dirname=/storage/ofd_packets [08:16:42]CheckFolder done [08:16:42]ProducePacketName [08:16:42]name=ofd_packets/00227232 [08:16:42]NVStorageSaveData ofd_packets/00227232 [08:16:42]File name is /storage/ofd_packets/00227232 [08:16:42]Write 294 bytes [08:16:42]NVStorageSaveData done [08:16:42]OFDSenderStorePacket done [08:16:42]KKMCreateOFDPacket done [08:16:42]NVStorageSaveData kkm_last_timestamp [08:16:42]File name is /storage/kkm_last_timestamp [08:16:42]Write 4 bytes [08:16:42]NVStorageSaveData done [08:16:42]ExternCall_PrintAddStr [08:16:42]wPrintStart [08:16:42]Write to MH i2c: 01 00 00 BD 2D EA [08:16:42]Write i2c OK [08:16:42]MH_I2C_Read... [08:16:42]Read from MH i2c: 01 [08:16:42]MH_I2C_Read... [08:16:42]Read from MH i2c: 01 07 00 [08:16:42]MH_I2C_Read... [08:16:42]Read from MH i2c: 01 07 00 BD 2D 00 00 00 00 00 FF 0F FF [08:16:42]RasterBufferAndPrint [08:16:42]line Счет N : (1)1962688 [08:16:42]line ИНН: 02508201610067 [08:16:42]line Контрольно-Кассовый Чек [08:16:42]line ПРОДАЖА [08:16:42]line ТРК (МРК, ГНК) : 52 [08:16:42]line Товар: 2710124130 [08:16:42]line SU-92 [08:16:42]line 12.430 * 68.40 [08:16:42]line = 850.21 [08:16:42]line НДС 12% НСП 1% [08:16:42]line > о реализуемом товаре [08:16:42]line ОКРУГЛЕНИЕ: -0.21 [08:16:42]line ИТОГО: 850.00 [08:16:42]line Внесено: 850.00 [08:16:42]line СДАЧА: 0.00 [08:16:42]line НСП 1% : 7.52 [08:16:42]line НДС 12% : 90.29 [08:16:42]line Наличными: 850.00 [08:16:42]line Безнал.: 0.00 [08:16:42]line Место: АЗС № 133 "Партнер Нефть" [08:16:42]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [08:16:42]line СНО: Общий режим [08:16:42]line Чек 80 20.10.2024 08:16 [08:16:42]line Смена: 533 ФФД: 1.0 [08:16:42]line ЗНМ: 0300000091 [08:16:42]line РНМ: 0000000000091685 [08:16:42]line Версия ККМ: 001 [08:16:42]line ФМ: 0000000000871839 [08:16:42]line ФД: 227232 [08:16:42]line ФПД: 18697431986962 [08:16:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T081644&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227232&fm=18697431986962&tin=02508201610067®Number=0000000000091685&sum=85000 [08:16:42]OFD Sender: Processing packet 227232 [packets to send 38, broken 37] [08:16:42]ProducePacketName [08:16:42]name=ofd_packets/00227232 [08:16:42]OFD Sender: To server: pG, [08:16:42]CommunicateWithHost lk.salyk.kg:30040 [08:16:42]ConnectInit lk.salyk.kg [08:16:42]written 0, free lines is 4095 [08:16:42]Connected sock=10 [08:16: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 33 39 08 01 00 00 A9 2A 00 01 F5 67 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 30 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 1D 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 23 00 00 00 00 07 04 06 00 08 4C 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 6C BC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A0 77 03 00 35 04 06 00 11 01 55 CA B3 12 BE 4F 6A 78 F6 9F B8 73 [08:16: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 33 39 4F 00 00 00 72 88 47 00 B4 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A0 77 03 00 F4 03 04 00 6C 67 14 67 B6 04 01 00 00 09 AB D7 2F 81 B2 DF 6C [08:16:43]CommunicateWithHost err = 0 [08:16:43]CheckOFDResponse [08:16:43]1017 (14) - 77093643461234 [08:16:43]1041 (16) - 0000000000871839 [08:16:43]1040 (4) - 227232 [08:16:43]1012 (4) - 20.10.2024 02:14 [08:16:43]1206 (1) - 0 [08:16:43]OFD Sender: Remove packet 227232 [08:16:43]ProducePacketName [08:16:43]name=ofd_packets/00227232 [08:16:43]NVStorageDeleteData [08:16:43]Write to MH i2c: 01 00 00 E7 2D 14 [08:16:43]Write i2c OK [08:16:43]MH_I2C_Read... [08:16:43]Read from MH i2c: 01 [08:16:43]MH_I2C_Read... [08:16:43]Read from MH i2c: 01 07 00 [08:16:43]MH_I2C_Read... [08:16:43]Read from MH i2c: 01 07 00 E7 2D 00 00 00 00 00 21 0D 49 [08:16:43]RasterBufferAndPrint [08:16:43]line [08:16:43]line [08:16:43]line [08:16:43]line [08:16:43]line [08:16:43]written 0, free lines is 3367 [08:16:43]process_action close_receipt done [08:16:43]requested_data is exist [08:16:43]produce_requested_data [08:16:43]requested_item fm.sn is exist - process it [08:16:43]wFMCommunicate request_size=4 [08:16:43]MH_SAM_APDU [08:16:43]CAPDU: 80 11 00 00 [08:16:43]Write to MH i2c: E2 08 00 EE 2D 80 11 00 00 00 00 00 00 95 [08:16:43]Write i2c OK [08:16:43]MH_I2C_Read... [08:16:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:16:43]Read from MH i2c: E2 [08:16:43]MH_I2C_Read... [08:16:43]Read from MH i2c: E2 17 00 [08:16:43]MH_I2C_Read... [08:16:43]Read from MH i2c: E2 17 00 EE 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 EC [08:16:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:16:43]wFMCommunicate OK [08:16:43]requested_item fd.num is exist - process it [08:16:43]SAM_PROTO_GetFieldsCounters [08:16:43]wFMCommunicate request_size=4 [08:16:43]MH_SAM_APDU [08:16:43]CAPDU: 80 13 00 00 [08:16:43]Write to MH i2c: E2 08 00 EF 2D 80 13 00 00 00 00 00 00 98 [08:16:43]Write i2c OK [08:16:43]MH_I2C_Read... [08:16:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:16:43]Read from MH i2c: E2 [08:16:43]MH_I2C_Read... [08:16:43]Read from MH i2c: E2 62 00 [08:16:43]MH_I2C_Read... [08:16:43]Read from MH i2c: E2 62 00 EF 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A0 77 03 00 0E 04 04 00 15 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 E2 [08:16: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A0 77 03 00 0E 04 04 00 15 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 [08:16:43]wFMCommunicate OK [08:16:43]SAM_PROTO_GetFieldsCounters done [08:16:43]requested_item shift.num is exist - process it [08:16:43]requested_item shift.opened is exist - process it [08:16:43]req_shift_opened [08:16:43]FM_GetShiftState [08:16:43]SAM_PROTO_GetShiftState [08:16:43]wFMCommunicate request_size=4 [08:16:43]MH_SAM_APDU [08:16:43]CAPDU: 80 13 01 00 [08:16:43]Write to MH i2c: E2 08 00 F0 2D 80 13 01 00 00 00 00 00 9A [08:16:43]Write i2c OK [08:16:43]MH_I2C_Read... [08:16:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:16:43]Read from MH i2c: E2 [08:16:43]MH_I2C_Read... [08:16:43]Read from MH i2c: E2 0E 00 [08:16:43]MH_I2C_Read... [08:16:43]Read from MH i2c: E2 0E 00 F0 2D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 B4 [08:16:43]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:16:43]wFMCommunicate OK [08:16:43]SAM_PROTO_GetShiftState done [08:16:43]FM_GetShiftState done [08:16:43]req_shift_opened done [08:16:43]requested_item shift.open_date is exist - process it [08:16:43]req_shift_open_date [08:16:43]req_shift_open_date done [08:16:43]produce_requested_data done [08:16:43]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227232,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [08:16:43]process_action_free close_receipt [08:16:43]json_value_free [08:16:43]json_value_free done [08:16:43]process_json_proto returns [08:16:43]Send response to host [08:16:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227232,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [08:16:43]free response buf [08:16:43]execute_script done [08:16:43]execute_script returns [08:16:43]free content buf [08:16:43]Sock 9.Close socket [08:16:43]Sock 9.Thread stoped [08:16:43]OFD Sender: No OFD packet to send [08:16:48]OFD Sender: No OFD packet to send [08:16:53]OFD Sender: No OFD packet to send [08:16:58]OFD Sender: No OFD packet to send [08:17:03]OFD Sender: No OFD packet to send [08:17:08]OFD Sender: No OFD packet to send [08:17:09]accept exits with 8 [08:17:09]New connection [08:17:09]New thread 3066965348 created [08:17:09]Thread 3066821988 joined [08:17:09]Waiting for new connection... [08:17:09] Sock 8.Parse request [08:17:09]Sock 8.Check first char [08:17:09]Sock 8.First char is OK [08:17:09]request: POST /json_proto HTTP/1.0 [08:17:09]Method: POST [08:17:09]URL: /json_proto [08:17:09]Method is POST - this is cgi request [08:17:09]url: /json_proto [08:17:09]query_string will be loaded in cgi processing [08:17:09]execute_cgi json_proto POST (null) [08:17:09]execute_cgi path=json_proto method=POST [08:17:09]POST find Content-Length [08:17:09]Host: 172.17.44.195:8080 [08:17:09]Content-Length: 678 [08:17:09]Content-Type: application/json [08:17:09] [08:17:09]POST finish read [08:17:09]Found Content-Length = 678 [08:17:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962689", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:17:09]execute_script... [08:17: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)1962689", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:17:09]POST & json_proto [08:17:09]process_json_proto [08:17:09]json parsed OK: [08:17:09]protocol is kg_v1.0 [08:17:09]action value=close_receipt [08:17:09]process_action close_receipt [08:17:09]cmd_close_receipt [08:17:09]MH_GetDate [08:17:09]Write to MH i2c: F0 00 00 F1 2D 0D [08:17:09]Write i2c OK [08:17:09]MH_I2C_Read... [08:17:09]Read from MH i2c: F0 [08:17:09]MH_I2C_Read... [08:17:09]Read from MH i2c: F0 09 00 [08:17:09]MH_I2C_Read... [08:17:09]Read from MH i2c: F0 09 00 F1 2D 00 89 BC 14 67 82 C9 CF 66 56 [08:17:09]GetLastDocTimeStamp 1729412204 [08:17:09]current date 1729412233 [08:17:09]FM_GetShiftState [08:17:09]SAM_PROTO_GetShiftState [08:17:09]wFMCommunicate request_size=4 [08:17:09]MH_SAM_APDU [08:17:09]CAPDU: 80 13 01 00 [08:17:09]Write to MH i2c: E2 08 00 F2 2D 80 13 01 00 00 00 00 00 9C [08:17:09]Write i2c OK [08:17:09]MH_I2C_Read... [08:17:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:17:09]Read from MH i2c: E2 [08:17:09]MH_I2C_Read... [08:17:09]Read from MH i2c: E2 0E 00 [08:17:09]MH_I2C_Read... [08:17:09]Read from MH i2c: E2 0E 00 F2 2D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 B6 [08:17:09]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:17:09]wFMCommunicate OK [08:17:09]SAM_PROTO_GetShiftState done [08:17:09]FM_GetShiftState done [08:17:09]opened in 1729383750 [08:17:09]opened+sec_in_day 1729470150 [08:17:09]quantity*price = 50041 [08:17:09]sum+1 = 50042 [08:17:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 81 20.10.2024 08:17 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227233 ФПД: 235741566376555 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T081713&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227233&fm=235741566376555&tin=02508201610067®Number=0000000000091685&sum=50000 [08:17:11]StoreToDocumentArchive [08:17:11]shift 533 fd 227233 [08:17:11]save to /storage/0533/doc_00227233 [08:17:11]save last doc name /storage/0533/doc_00227233 to /storage/kkm_last_doc_name [08:17:11]save OK [08:17:11]Clear old archive folders... [08:17:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:17:11]tlvbuf is 004FD780 [08:17:11]SAM_PROTO_ClearQueue [08:17:11]wFMCommunicate request_size=4 [08:17:11]MH_SAM_APDU [08:17:11]CAPDU: 80 09 00 00 [08:17:11]Write to MH i2c: E2 08 00 FF 2D 80 09 00 00 00 00 00 00 9E [08:17:11]Write i2c OK [08:17:11]MH_I2C_Read... [08:17:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:17:11]Read from MH i2c: E2 [08:17:11]MH_I2C_Read... [08:17:11]Read from MH i2c: E2 03 00 [08:17:11]MH_I2C_Read... [08:17:11]Read from MH i2c: E2 03 00 FF 2D 00 90 00 A0 [08:17:11]RAPDU: 90 00 [08:17:11]wFMCommunicate OK [08:17:11]SAM_PROTO_ClearQueue done [08:17:11]KKMCreateOFDPacket [08:17:11]OFDProtocolAddRootSTLVToBuf [08:17:11]FM_MakeSignedData [08:17:11]FM_MakeSignedData [08:17:11]SAM_PROTO_SignData [08:17:11]wFMCommunicate request_size=4 [08:17:11]MH_SAM_APDU [08:17:11]CAPDU: 80 0D 01 02 [08:17:11]Write to MH i2c: E2 08 00 00 2E 80 0D 01 02 00 00 00 00 A7 [08:17:11]Write i2c OK [08:17:11]MH_I2C_Read... [08:17:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:17:11]Read from MH i2c: E2 [08:17:11]MH_I2C_Read... [08:17:11]Read from MH i2c: E2 03 00 [08:17:11]MH_I2C_Read... [08:17:11]Read from MH i2c: E2 03 00 00 2E 00 90 00 A2 [08:17:11]RAPDU: 90 00 [08:17:11]wFMCommunicate OK [08:17:11]wFMCommunicate request_size=255 [08:17:11]MH_SAM_APDU [08:17:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 89 BC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A1 77 03 00 35 04 06 00 D6 [08:17:11]Write to MH i2c: E2 02 01 01 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 89 BC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A1 77 03 00 35 04 06 00 D6 00 00 57 [08:17:11]Write i2c OK [08:17:11]MH_I2C_Read... [08:17:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:17:11]Read from MH i2c: E2 [08:17:11]MH_I2C_Read... [08:17:11]Read from MH i2c: E2 03 00 [08:17:11]MH_I2C_Read... [08:17:11]Read from MH i2c: E2 03 00 01 2E 00 90 00 A3 [08:17:11]RAPDU: 90 00 [08:17:11]wFMCommunicate OK [08:17:11]wFMCommunicate request_size=10 [08:17:11]MH_SAM_APDU [08:17:11]CAPDU: 80 0D 02 02 05 67 DC 52 9A 6B [08:17:11]Write to MH i2c: E2 0D 00 02 2E 80 0D 02 02 05 00 67 DC 52 9A 6B 00 00 4E [08:17:11]Write i2c OK [08:17:11]MH_I2C_Read... [08:17:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:17:11]Read from MH i2c: E2 [08:17:11]MH_I2C_Read... [08:17:11]Read from MH i2c: E2 03 00 [08:17:11]MH_I2C_Read... [08:17:11]Read from MH i2c: E2 03 00 02 2E 00 90 00 A4 [08:17:11]RAPDU: 90 00 [08:17:11]wFMCommunicate OK [08:17:11]wFMCommunicate request_size=4 [08:17:11]MH_SAM_APDU [08:17:11]CAPDU: 80 0D 03 02 [08:17:11]Write to MH i2c: E2 08 00 03 2E 80 0D 03 02 00 00 00 00 AC [08:17:11]Write i2c OK [08:17:11]MH_I2C_Read... [08:17:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:17:11]Read from MH i2c: E2 [08:17:11]MH_I2C_Read... [08:17:11]Read from MH i2c: E2 0B 00 [08:17:11]MH_I2C_Read... [08:17:11]Read from MH i2c: E2 0B 00 03 2E 00 0E 3A 5D 3E 52 8C 0A E5 90 00 5D [08:17:11]RAPDU: 0E 3A 5D 3E 52 8C 0A E5 90 00 [08:17:11]wFMCommunicate OK [08:17:11]SAM_PROTO_SignData done [08:17:11]FM_MakeSignedData done [08:17:11]CreateOFDProtocolMessage [08:17:11]wFMCommunicate request_size=4 [08:17:11]MH_SAM_APDU [08:17:11]CAPDU: 80 11 00 00 [08:17:11]Write to MH i2c: E2 08 00 04 2E 80 11 00 00 00 00 00 00 AC [08:17:11]Write i2c OK [08:17:11]MH_I2C_Read... [08:17:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:17:11]Read from MH i2c: E2 [08:17:11]MH_I2C_Read... [08:17:11]Read from MH i2c: E2 17 00 [08:17:11]MH_I2C_Read... [08:17:11]Read from MH i2c: E2 17 00 04 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 03 [08:17:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:17:11]wFMCommunicate OK [08:17:11]CreateOFDProtocolMessage done [08:17:11]OFDSenderStorePacket 227233 [08:17:11]StoreOFDPacket docnum=227233 [08:17:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 21 96 07 01 4A 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 89 BC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A1 77 03 00 35 04 06 00 D6 67 DC 52 9A 6B 0E 3A 5D 3E 52 8C 0A E5 [08:17:11]CheckFolder [08:17:11]dirname=/storage/ofd_packets [08:17:11]CheckFolder done [08:17:11]ProducePacketName [08:17:11]name=ofd_packets/00227233 [08:17:11]NVStorageSaveData ofd_packets/00227233 [08:17:11]File name is /storage/ofd_packets/00227233 [08:17:11]Write 301 bytes [08:17:11]NVStorageSaveData done [08:17:11]OFDSenderStorePacket done [08:17:11]KKMCreateOFDPacket done [08:17:11]NVStorageSaveData kkm_last_timestamp [08:17:11]File name is /storage/kkm_last_timestamp [08:17:11]Write 4 bytes [08:17:11]OFD Sender: Processing packet 227233 [packets to send 38, broken 37] [08:17:11]ProducePacketName [08:17:11]name=ofd_packets/00227233 [08:17:11]OFD Sender: To server: pG, [08:17:11]CommunicateWithHost lk.salyk.kg:30040 [08:17:11]ConnectInit lk.salyk.kg [08:17:11]NVStorageSaveData done [08:17:11]ExternCall_PrintAddStr [08:17:11]wPrintStart [08:17:11]Write to MH i2c: 01 00 00 05 2E 33 [08:17:11]Write i2c OK [08:17:11]MH_I2C_Read... [08:17:11]Read from MH i2c: 01 [08:17:11]MH_I2C_Read... [08:17:11]Read from MH i2c: 01 07 00 [08:17:11]MH_I2C_Read... [08:17:11]Read from MH i2c: 01 07 00 05 2E 00 00 00 00 00 FF 0F 48 [08:17:11]RasterBufferAndPrint [08:17:11]line Счет N : (1)1962689 [08:17:11]line ИНН: 02508201610067 [08:17:11]line Контрольно-Кассовый Чек [08:17:11]line ПРОДАЖА [08:17:11]line ТРК (МРК, ГНК) : 33 [08:17:11]line Товар: 2710124130 [08:17:11]line Аи-92-К-5 [08:17:11]line 7.480 * 66.90 [08:17:11]line = 500.41 [08:17:11]line НДС 12% НСП 1% [08:17:11]line > о реализуемом товаре [08:17:11]line ОКРУГЛЕНИЕ: -0.41 [08:17:11]line ИТОГО: 500.00 [08:17:11]line Внесено: 500.00 [08:17:11]line СДАЧА: 0.00 [08:17:11]line НСП 1% : 4.43 [08:17:11]line НДС 12% : 53.14 [08:17:11]line Наличными: 500.00 [08:17:11]line Безнал.: 0.00 [08:17:11]line Место: АЗС № 133 "Партнер Нефть" [08:17:11]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [08:17:11]line СНО: Общий режим [08:17:11]line Чек 81 20.10.2024 08:17 [08:17:11]line Смена: 533 ФФД: 1.0 [08:17:11]line ЗНМ: 0300000091 [08:17:11]line РНМ: 0000000000091685 [08:17:11]line Версия ККМ: 001 [08:17:11]line ФМ: 0000000000871839 [08:17:11]line ФД: 227233 [08:17:11]line ФПД: 235741566376555 [08:17:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T081713&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227233&fm=235741566376555&tin=02508201610067®Number=0000000000091685&sum=50000 [08:17:11]written 0, free lines is 4095 [08:17:12]Write to MH i2c: 01 00 00 2F 2E 5D [08:17:12]Write i2c OK [08:17:12]MH_I2C_Read... [08:17:12]Read from MH i2c: 01 [08:17:12]MH_I2C_Read... [08:17:12]Read from MH i2c: 01 07 00 [08:17:12]MH_I2C_Read... [08:17:12]Read from MH i2c: 01 07 00 2F 2E 00 00 00 00 00 02 0D 73 [08:17:12]RasterBufferAndPrint [08:17:12]line [08:17:12]line [08:17:12]line [08:17:12]line [08:17:12]line [08:17:12]written 0, free lines is 3336 [08:17:12]process_action close_receipt done [08:17:12]requested_data is exist [08:17:12]produce_requested_data [08:17:12]requested_item fm.sn is exist - process it [08:17:12]wFMCommunicate request_size=4 [08:17:12]MH_SAM_APDU [08:17:12]CAPDU: 80 11 00 00 [08:17:12]Write to MH i2c: E2 08 00 36 2E 80 11 00 00 00 00 00 00 DE [08:17:12]Write i2c OK [08:17:12]MH_I2C_Read... [08:17:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:17:12]Read from MH i2c: E2 [08:17:12]MH_I2C_Read... [08:17:12]Read from MH i2c: E2 17 00 [08:17:12]MH_I2C_Read... [08:17:12]Read from MH i2c: E2 17 00 36 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 35 [08:17:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:17:12]wFMCommunicate OK [08:17:12]requested_item fd.num is exist - process it [08:17:12]SAM_PROTO_GetFieldsCounters [08:17:12]wFMCommunicate request_size=4 [08:17:12]MH_SAM_APDU [08:17:12]CAPDU: 80 13 00 00 [08:17:12]Write to MH i2c: E2 08 00 37 2E 80 13 00 00 00 00 00 00 E1 [08:17:12]Write i2c OK [08:17:12]MH_I2C_Read... [08:17:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:17:12]Read from MH i2c: E2 [08:17:12]MH_I2C_Read... [08:17:12]Read from MH i2c: E2 62 00 [08:17:12]MH_I2C_Read... [08:17:12]Read from MH i2c: E2 62 00 37 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A1 77 03 00 0E 04 04 00 15 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 2F [08:17: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A1 77 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:17:12]wFMCommunicate OK [08:17:12]SAM_PROTO_GetFieldsCounters done [08:17:12]requested_item shift.num is exist - process it [08:17:12]requested_item shift.opened is exist - process it [08:17:12]req_shift_opened [08:17:12]FM_GetShiftState [08:17:12]SAM_PROTO_GetShiftState [08:17:12]wFMCommunicate request_size=4 [08:17:12]MH_SAM_APDU [08:17:12]CAPDU: 80 13 01 00 [08:17:12]Write to MH i2c: E2 08 00 38 2E 80 13 01 00 00 00 00 00 E3 [08:17:12]Write i2c OK [08:17:12]MH_I2C_Read... [08:17:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:17:12]Read from MH i2c: E2 [08:17:12]MH_I2C_Read... [08:17:12]Read from MH i2c: E2 0E 00 [08:17:12]MH_I2C_Read... [08:17:12]Read from MH i2c: E2 0E 00 38 2E 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 FD [08:17:12]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:17:12]wFMCommunicate OK [08:17:12]SAM_PROTO_GetShiftState done [08:17:12]FM_GetShiftState done [08:17:12]req_shift_opened done [08:17:12]requested_item shift.open_date is exist - process it [08:17:12]req_shift_open_date [08:17:12]req_shift_open_date done [08:17:12]produce_requested_data done [08:17:12]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227233,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [08:17:12]process_action_free close_receipt [08:17:12]json_value_free [08:17:12]json_value_free done [08:17:12]process_json_proto returns [08:17:12]Send response to host [08:17:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227233,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [08:17:12]free response buf [08:17:12]execute_script done [08:17:12]execute_script returns [08:17:12]free content buf [08:17:12]Sock 8.Close socket [08:17:12]Sock 8.Thread stoped [08:19:23]ConnectInit Can't connect to host [08:19:23]CommunicateWithHost connect error [08:19:23]CommunicateWithHost err = -1 [08:19:23]OFD Sender: Server communicate error [08:19:28]OFD Sender: Processing packet 227233 [packets to send 38, broken 37] [08:19:28]ProducePacketName [08:19:28]name=ofd_packets/00227233 [08:19:28]OFD Sender: To server: pG, [08:19:28]CommunicateWithHost lk.salyk.kg:30040 [08:19:28]ConnectInit lk.salyk.kg [08:19:28]Connected sock=8 [08:19:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 21 96 07 01 4A 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 89 BC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A1 77 03 00 35 04 06 00 D6 67 DC 52 9A 6B 0E 3A 5D 3E 52 8C 0A E5 [08:19:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 D1 74 47 00 32 A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A1 77 03 00 F4 03 04 00 11 68 14 67 B6 04 01 00 00 93 B8 5A 2A B6 52 C0 21 [08:19:28]CommunicateWithHost err = 0 [08:19:28]CheckOFDResponse [08:19:28]1017 (14) - 77093643461234 [08:19:28]1041 (16) - 0000000000871839 [08:19:28]1040 (4) - 227233 [08:19:28]1012 (4) - 20.10.2024 02:16 [08:19:28]1206 (1) - 0 [08:19:28]OFD Sender: Remove packet 227233 [08:19:28]ProducePacketName [08:19:28]name=ofd_packets/00227233 [08:19:28]NVStorageDeleteData [08:19:29]OFD Sender: No OFD packet to send [08:19:34]OFD Sender: No OFD packet to send [08:19:39]OFD Sender: No OFD packet to send [08:19:44]OFD Sender: No OFD packet to send [08:19:49]OFD Sender: No OFD packet to send [08:19:54]OFD Sender: No OFD packet to send [08:19:59]OFD Sender: No OFD packet to send [08:20:04]OFD Sender: No OFD packet to send [08:20:09]OFD Sender: No OFD packet to send [08:20:14]OFD Sender: No OFD packet to send [08:20:19]OFD Sender: No OFD packet to send [08:20:24]OFD Sender: No OFD packet to send [08:20:29]OFD Sender: No OFD packet to send [08:20:34]OFD Sender: No OFD packet to send [08:20:39]OFD Sender: No OFD packet to send [08:20:44]OFD Sender: No OFD packet to send [08:20:49]OFD Sender: No OFD packet to send [08:20:54]OFD Sender: No OFD packet to send [08:20:59]OFD Sender: No OFD packet to send [08:21:04]OFD Sender: No OFD packet to send [08:21:09]OFD Sender: No OFD packet to send [08:21:14]OFD Sender: No OFD packet to send [08:21:19]OFD Sender: No OFD packet to send [08:21:24]OFD Sender: No OFD packet to send [08:21:29]OFD Sender: No OFD packet to send [08:21:34]OFD Sender: No OFD packet to send [08:21:39]OFD Sender: No OFD packet to send [08:21:44]OFD Sender: No OFD packet to send [08:21:49]OFD Sender: No OFD packet to send [08:21:54]OFD Sender: No OFD packet to send [08:21:59]OFD Sender: No OFD packet to send [08:22:04]OFD Sender: No OFD packet to send [08:22:09]OFD Sender: No OFD packet to send [08:22:14]OFD Sender: No OFD packet to send [08:22:19]OFD Sender: No OFD packet to send [08:22:24]OFD Sender: No OFD packet to send [08:22:29]OFD Sender: No OFD packet to send [08:22:34]OFD Sender: No OFD packet to send [08:22:37]accept exits with 9 [08:22:37]New connection [08:22:37]New thread 3066821988 created [08:22:37]Thread 3066965348 joined [08:22:37]Waiting for new connection... [08:22:37] Sock 9.Parse request [08:22:37]Sock 9.Check first char [08:22:37]Sock 9.First char is OK [08:22:37]request: POST /json_proto HTTP/1.0 [08:22:37]Method: POST [08:22:37]URL: /json_proto [08:22:37]Method is POST - this is cgi request [08:22:37]url: /json_proto [08:22:37]query_string will be loaded in cgi processing [08:22:37]execute_cgi json_proto POST (null) [08:22:37]execute_cgi path=json_proto method=POST [08:22:37]POST find Content-Length [08:22:37]Host: 172.17.44.195:8080 [08:22:37]Content-Length: 675 [08:22:37]Content-Type: application/json [08:22:37] [08:22:37]POST finish read [08:22:37]Found Content-Length = 675 [08:22:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962690", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:22:37]execute_script... [08:22: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)1962690", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:22:37]POST & json_proto [08:22:37]process_json_proto [08:22:37]json parsed OK: [08:22:37]protocol is kg_v1.0 [08:22:37]action value=close_receipt [08:22:37]process_action close_receipt [08:22:37]cmd_close_receipt [08:22:37]MH_GetDate [08:22:37]Write to MH i2c: F0 00 00 39 2E 56 [08:22:37]Write i2c OK [08:22:37]MH_I2C_Read... [08:22:37]Read from MH i2c: F0 [08:22:37]MH_I2C_Read... [08:22:37]Read from MH i2c: F0 09 00 [08:22:37]MH_I2C_Read... [08:22:37]Read from MH i2c: F0 09 00 39 2E 00 D1 BD 14 67 82 C9 CF 66 E8 [08:22:37]GetLastDocTimeStamp 1729412233 [08:22:37]current date 1729412561 [08:22:37]FM_GetShiftState [08:22:37]SAM_PROTO_GetShiftState [08:22:37]wFMCommunicate request_size=4 [08:22:37]MH_SAM_APDU [08:22:37]CAPDU: 80 13 01 00 [08:22:37]Write to MH i2c: E2 08 00 3A 2E 80 13 01 00 00 00 00 00 E5 [08:22:37]Write i2c OK [08:22:37]MH_I2C_Read... [08:22:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:22:37]Read from MH i2c: E2 [08:22:37]MH_I2C_Read... [08:22:37]Read from MH i2c: E2 0E 00 [08:22:37]MH_I2C_Read... [08:22:37]Read from MH i2c: E2 0E 00 3A 2E 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 FF [08:22:37]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:22:37]wFMCommunicate OK [08:22:37]SAM_PROTO_GetShiftState done [08:22:37]FM_GetShiftState done [08:22:37]opened in 1729383750 [08:22:37]opened+sec_in_day 1729470150 [08:22:37]quantity*price = 70027 [08:22:37]sum+1 = 70029 [08:22:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 82 20.10.2024 08:22 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227234 ФПД: 185077478079195 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T082241&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227234&fm=185077478079195&tin=02508201610067®Number=0000000000091685&sum=70000 [08:22:38]StoreToDocumentArchive [08:22:38]shift 533 fd 227234 [08:22:38]save to /storage/0533/doc_00227234 [08:22:38]save last doc name /storage/0533/doc_00227234 to /storage/kkm_last_doc_name [08:22:38]save OK [08:22:38]Clear old archive folders... [08:22:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:22:38]tlvbuf is 00594F20 [08:22:38]SAM_PROTO_ClearQueue [08:22:38]wFMCommunicate request_size=4 [08:22:38]MH_SAM_APDU [08:22:38]CAPDU: 80 09 00 00 [08:22:38]Write to MH i2c: E2 08 00 47 2E 80 09 00 00 00 00 00 00 E7 [08:22:38]Write i2c OK [08:22:38]MH_I2C_Read... [08:22:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:22:38]Read from MH i2c: E2 [08:22:38]MH_I2C_Read... [08:22:38]Read from MH i2c: E2 03 00 [08:22:38]MH_I2C_Read... [08:22:38]Read from MH i2c: E2 03 00 47 2E 00 90 00 E9 [08:22:38]RAPDU: 90 00 [08:22:38]wFMCommunicate OK [08:22:38]SAM_PROTO_ClearQueue done [08:22:38]KKMCreateOFDPacket [08:22:38]OFDProtocolAddRootSTLVToBuf [08:22:38]FM_MakeSignedData [08:22:38]FM_MakeSignedData [08:22:38]SAM_PROTO_SignData [08:22:38]wFMCommunicate request_size=4 [08:22:38]MH_SAM_APDU [08:22:38]CAPDU: 80 0D 01 02 [08:22:38]Write to MH i2c: E2 08 00 48 2E 80 0D 01 02 00 00 00 00 EF [08:22:38]Write i2c OK [08:22:38]MH_I2C_Read... [08:22:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:22:38]Read from MH i2c: E2 [08:22:38]MH_I2C_Read... [08:22:38]Read from MH i2c: E2 03 00 [08:22:38]MH_I2C_Read... [08:22:38]Read from MH i2c: E2 03 00 48 2E 00 90 00 EA [08:22:38]RAPDU: 90 00 [08:22:38]wFMCommunicate OK [08:22:38]wFMCommunicate request_size=255 [08:22:38]MH_SAM_APDU [08:22:38]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 D1 BD 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A2 77 03 00 35 04 06 00 A8 53 B5 56 [08:22:38]Write to MH i2c: E2 02 01 49 2E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 D1 BD 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A2 77 03 00 35 04 06 00 A8 53 B5 56 00 00 0C [08:22:38]Write i2c OK [08:22:38]MH_I2C_Read... [08:22:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:22:38]Read from MH i2c: E2 [08:22:38]MH_I2C_Read... [08:22:38]Read from MH i2c: E2 03 00 [08:22:38]MH_I2C_Read... [08:22:38]Read from MH i2c: E2 03 00 49 2E 00 90 00 EB [08:22:38]RAPDU: 90 00 [08:22:38]wFMCommunicate OK [08:22:38]wFMCommunicate request_size=7 [08:22:38]MH_SAM_APDU [08:22:38]CAPDU: 80 0D 02 02 02 3A DB [08:22:38]Write to MH i2c: E2 0A 00 4A 2E 80 0D 02 02 02 00 3A DB 00 00 0B [08:22:38]Write i2c OK [08:22:38]MH_I2C_Read... [08:22:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:22:38]Read from MH i2c: E2 [08:22:38]MH_I2C_Read... [08:22:38]Read from MH i2c: E2 03 00 [08:22:38]MH_I2C_Read... [08:22:38]Read from MH i2c: E2 03 00 4A 2E 00 90 00 EC [08:22:38]RAPDU: 90 00 [08:22:38]wFMCommunicate OK [08:22:38]wFMCommunicate request_size=4 [08:22:38]MH_SAM_APDU [08:22:38]CAPDU: 80 0D 03 02 [08:22:38]Write to MH i2c: E2 08 00 4B 2E 80 0D 03 02 00 00 00 00 F4 [08:22:38]Write i2c OK [08:22:38]MH_I2C_Read... [08:22:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:22:38]Read from MH i2c: E2 [08:22:38]MH_I2C_Read... [08:22:38]Read from MH i2c: E2 0B 00 [08:22:38]MH_I2C_Read... [08:22:38]Read from MH i2c: E2 0B 00 4B 2E 00 55 2C E2 38 71 C1 7C D1 90 00 0F [08:22:38]RAPDU: 55 2C E2 38 71 C1 7C D1 90 00 [08:22:38]wFMCommunicate OK [08:22:38]SAM_PROTO_SignData done [08:22:38]FM_MakeSignedData done [08:22:38]CreateOFDProtocolMessage [08:22:38]wFMCommunicate request_size=4 [08:22:38]MH_SAM_APDU [08:22:38]CAPDU: 80 11 00 00 [08:22:38]Write to MH i2c: E2 08 00 4C 2E 80 11 00 00 00 00 00 00 F4 [08:22:38]Write i2c OK [08:22:38]MH_I2C_Read... [08:22:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:22:38]Read from MH i2c: E2 [08:22:38]MH_I2C_Read... [08:22:38]Read from MH i2c: E2 17 00 [08:22:38]MH_I2C_Read... [08:22:38]Read from MH i2c: E2 17 00 4C 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 4B [08:22:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:22:38]wFMCommunicate OK [08:22:38]CreateOFDProtocolMessage done [08:22:38]OFDSenderStorePacket 227234 [08:22:38]StoreOFDPacket docnum=227234 [08:22:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 09 AF 04 01 60 CF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 D1 BD 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A2 77 03 00 35 04 06 00 A8 53 B5 56 3A DB 55 2C E2 38 71 C1 7C D1 [08:22:38]CheckFolder [08:22:38]dirname=/storage/ofd_packets [08:22:38]CheckFolder done [08:22:38]ProducePacketName [08:22:38]name=ofd_packets/00227234 [08:22:38]NVStorageSaveData ofd_packets/00227234 [08:22:38]File name is /storage/ofd_packets/00227234 [08:22:38]Write 298 bytes [08:22:38]NVStorageSaveData done [08:22:38]OFDSenderStorePacket done [08:22:38]KKMCreateOFDPacket done [08:22:38]NVStorageSaveData kkm_last_timestamp [08:22:38]File name is /storage/kkm_last_timestamp [08:22:38]Write 4 bytes [08:22:38]NVStorageSaveData done [08:22:38]ExternCall_PrintAddStr [08:22:38]wPrintStart [08:22:38]Write to MH i2c: 01 00 00 4D 2E 7B [08:22:38]Write i2c OK [08:22:38]MH_I2C_Read... [08:22:38]Read from MH i2c: 01 [08:22:38]MH_I2C_Read... [08:22:38]Read from MH i2c: 01 07 00 [08:22:38]MH_I2C_Read... [08:22:38]Read from MH i2c: 01 07 00 4D 2E 00 00 00 00 00 FF 0F 90 [08:22:38]RasterBufferAndPrint [08:22:38]line Счет N : (1)1962690 [08:22:38]line ИНН: 02508201610067 [08:22:38]line Контрольно-Кассовый Чек [08:22:38]line ПРОДАЖА [08:22:38]line ТРК (МРК, ГНК) : 31 [08:22:38]line Товар: 2710194210 [08:22:38]line ДТ-К-5 [08:22:38]line 9.190 * 76.20 [08:22:38]line = 700.28 [08:22:38]line НДС 12% НСП 1% [08:22:38]line > о реализуемом товаре [08:22:38]line ОКРУГЛЕНИЕ: -0.28 [08:22:38]line ИТОГО: 700.00 [08:22:38]line Внесено: 700.00 [08:22:38]line СДАЧА: 0.00 [08:22:38]line НСП 1% : 6.20 [08:22:38]line НДС 12% : 74.37 [08:22:38]line Наличными: 700.00 [08:22:38]line Безнал.: 0.00 [08:22:38]line Место: АЗС № 133 "Партнер Нефть" [08:22:38]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [08:22:38]line СНО: Общий режим [08:22:38]line Чек 82 20.10.2024 08:22 [08:22:38]line Смена: 533 ФФД: 1.0 [08:22:38]line ЗНМ: 0300000091 [08:22:38]line РНМ: 0000000000091685 [08:22:38]line Версия ККМ: 001 [08:22:38]line ФМ: 0000000000871839 [08:22:38]line ФД: 227234 [08:22:38]line ФПД: 185077478079195 [08:22:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T082241&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227234&fm=185077478079195&tin=02508201610067®Number=0000000000091685&sum=70000 [08:22:39]OFD Sender: Processing packet 227234 [packets to send 38, broken 37] [08:22:39]ProducePacketName [08:22:39]name=ofd_packets/00227234 [08:22:39]OFD Sender: To server: pG, [08:22:39]CommunicateWithHost lk.salyk.kg:30040 [08:22:39]ConnectInit lk.salyk.kg [08:22:39]written 0, free lines is 4095 [08:22:39]Connected sock=10 [08:22: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 33 39 0C 01 00 00 09 AF 04 01 60 CF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 D1 BD 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A2 77 03 00 35 04 06 00 A8 53 B5 56 3A DB 55 2C E2 38 71 C1 7C D1 [08:22: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 33 39 4F 00 00 00 89 8F 47 00 B3 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 33 39 10 04 04 00 A2 77 03 00 F4 03 04 00 D0 68 14 67 B6 04 01 00 00 C1 64 EF 17 3E FC ED 9B [08:22:39]CommunicateWithHost err = 0 [08:22:39]CheckOFDResponse [08:22:39]1017 (14) - 77093643461234 [08:22:39]1041 (16) - 0000000000871839 [08:22:39]1040 (4) - 227234 [08:22:39]1012 (4) - 20.10.2024 02:20 [08:22:39]1206 (1) - 0 [08:22:39]OFD Sender: Remove packet 227234 [08:22:39]ProducePacketName [08:22:39]name=ofd_packets/00227234 [08:22:39]NVStorageDeleteData [08:22:39]Write to MH i2c: 01 00 00 77 2E A5 [08:22:39]Write i2c OK [08:22:39]MH_I2C_Read... [08:22:39]Read from MH i2c: 01 [08:22:39]MH_I2C_Read... [08:22:39]Read from MH i2c: 01 07 00 [08:22:39]MH_I2C_Read... [08:22:39]Read from MH i2c: 01 07 00 77 2E 00 00 00 00 00 1A 0D D3 [08:22:39]RasterBufferAndPrint [08:22:39]line [08:22:39]line [08:22:39]line [08:22:39]line [08:22:39]line [08:22:39]written 0, free lines is 3360 [08:22:39]process_action close_receipt done [08:22:39]requested_data is exist [08:22:39]produce_requested_data [08:22:39]requested_item fm.sn is exist - process it [08:22:39]wFMCommunicate request_size=4 [08:22:39]MH_SAM_APDU [08:22:39]CAPDU: 80 11 00 00 [08:22:39]Write to MH i2c: E2 08 00 7E 2E 80 11 00 00 00 00 00 00 26 [08:22:39]Write i2c OK [08:22:39]MH_I2C_Read... [08:22:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:22:39]Read from MH i2c: E2 [08:22:39]MH_I2C_Read... [08:22:39]Read from MH i2c: E2 17 00 [08:22:39]MH_I2C_Read... [08:22:39]Read from MH i2c: E2 17 00 7E 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 7D [08:22:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:22:39]wFMCommunicate OK [08:22:39]requested_item fd.num is exist - process it [08:22:39]SAM_PROTO_GetFieldsCounters [08:22:39]wFMCommunicate request_size=4 [08:22:39]MH_SAM_APDU [08:22:39]CAPDU: 80 13 00 00 [08:22:39]Write to MH i2c: E2 08 00 7F 2E 80 13 00 00 00 00 00 00 29 [08:22:39]Write i2c OK [08:22:39]MH_I2C_Read... [08:22:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:22:39]Read from MH i2c: E2 [08:22:39]MH_I2C_Read... [08:22:39]Read from MH i2c: E2 62 00 [08:22:39]MH_I2C_Read... [08:22:39]Read from MH i2c: E2 62 00 7F 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A2 77 03 00 0E 04 04 00 15 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 7B [08:22: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A2 77 03 00 0E 04 04 00 15 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 [08:22:39]wFMCommunicate OK [08:22:39]SAM_PROTO_GetFieldsCounters done [08:22:39]requested_item shift.num is exist - process it [08:22:39]requested_item shift.opened is exist - process it [08:22:39]req_shift_opened [08:22:39]FM_GetShiftState [08:22:39]SAM_PROTO_GetShiftState [08:22:39]wFMCommunicate request_size=4 [08:22:39]MH_SAM_APDU [08:22:39]CAPDU: 80 13 01 00 [08:22:39]Write to MH i2c: E2 08 00 80 2E 80 13 01 00 00 00 00 00 2B [08:22:39]Write i2c OK [08:22:39]MH_I2C_Read... [08:22:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:22:40]Read from MH i2c: E2 [08:22:40]MH_I2C_Read... [08:22:40]Read from MH i2c: E2 0E 00 [08:22:40]MH_I2C_Read... [08:22:40]Read from MH i2c: E2 0E 00 80 2E 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 45 [08:22:40]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:22:40]wFMCommunicate OK [08:22:40]SAM_PROTO_GetShiftState done [08:22:40]FM_GetShiftState done [08:22:40]req_shift_opened done [08:22:40]requested_item shift.open_date is exist - process it [08:22:40]req_shift_open_date [08:22:40]req_shift_open_date done [08:22:40]produce_requested_data done [08:22:40]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227234,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [08:22:40]process_action_free close_receipt [08:22:40]json_value_free [08:22:40]json_value_free done [08:22:40]process_json_proto returns [08:22:40]Send response to host [08:22:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227234,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [08:22:40]free response buf [08:22:40]execute_script done [08:22:40]execute_script returns [08:22:40]free content buf [08:22:40]Sock 9.Close socket [08:22:40]Sock 9.Thread stoped [08:22:40]OFD Sender: No OFD packet to send [08:22:45]OFD Sender: No OFD packet to send [08:22:50]OFD Sender: No OFD packet to send [08:22:55]OFD Sender: No OFD packet to send [08:23:00]OFD Sender: No OFD packet to send [08:23:05]OFD Sender: No OFD packet to send [08:23:10]OFD Sender: No OFD packet to send [08:23:15]OFD Sender: No OFD packet to send [08:23:20]OFD Sender: No OFD packet to send [08:23:25]OFD Sender: No OFD packet to send [08:23:30]OFD Sender: No OFD packet to send [08:23:35]OFD Sender: No OFD packet to send [08:23:40]OFD Sender: No OFD packet to send [08:23:45]OFD Sender: No OFD packet to send [08:23:50]OFD Sender: No OFD packet to send [08:23:55]OFD Sender: No OFD packet to send [08:24:00]OFD Sender: No OFD packet to send [08:24:05]OFD Sender: No OFD packet to send [08:24:10]OFD Sender: No OFD packet to send [08:24:15]OFD Sender: No OFD packet to send [08:24:20]OFD Sender: No OFD packet to send [08:24:25]OFD Sender: No OFD packet to send [08:24:30]OFD Sender: No OFD packet to send [08:24:35]OFD Sender: No OFD packet to send [08:24:40]OFD Sender: No OFD packet to send [08:24:45]OFD Sender: No OFD packet to send [08:24:50]OFD Sender: No OFD packet to send [08:24:55]OFD Sender: No OFD packet to send [08:25:00]OFD Sender: No OFD packet to send [08:25:02]accept exits with 8 [08:25:02]New connection [08:25:02]New thread 3066965348 created [08:25:02]Thread 3066821988 joined [08:25:02]Waiting for new connection... [08:25:02] Sock 8.Parse request [08:25:02]Sock 8.Check first char [08:25:02]Sock 8.First char is OK [08:25:02]request: POST /json_proto HTTP/1.0 [08:25:02]Method: POST [08:25:02]URL: /json_proto [08:25:02]Method is POST - this is cgi request [08:25:02]url: /json_proto [08:25:02]query_string will be loaded in cgi processing [08:25:02]execute_cgi json_proto POST (null) [08:25:02]execute_cgi path=json_proto method=POST [08:25:02]POST find Content-Length [08:25:02]Host: 172.17.44.195:8080 [08:25:02]Content-Length: 683 [08:25:02]Content-Type: application/json [08:25:02] [08:25:02]POST finish read [08:25:02]Found Content-Length = 683 [08:25:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962691", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:25:02]execute_script... [08:25: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)1962691", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:25:02]POST & json_proto [08:25:02]process_json_proto [08:25:02]json parsed OK: [08:25:02]protocol is kg_v1.0 [08:25:02]action value=close_receipt [08:25:02]process_action close_receipt [08:25:02]cmd_close_receipt [08:25:02]MH_GetDate [08:25:02]Write to MH i2c: F0 00 00 81 2E 9E [08:25:02]Write i2c OK [08:25:02]MH_I2C_Read... [08:25:02]Read from MH i2c: F0 [08:25:02]MH_I2C_Read... [08:25:02]Read from MH i2c: F0 09 00 [08:25:02]MH_I2C_Read... [08:25:02]Read from MH i2c: F0 09 00 81 2E 00 62 BE 14 67 82 C9 CF 66 C2 [08:25:02]GetLastDocTimeStamp 1729412561 [08:25:02]current date 1729412706 [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 82 2E 80 13 01 00 00 00 00 00 2D [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 82 2E 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 47 [08:25:02]RAPDU: 09 00 01 46 4D 14 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]opened in 1729383750 [08:25:02]opened+sec_in_day 1729470150 [08:25:02]quantity*price = 100015 [08:25:02]sum+1 = 100017 [08:25:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 83 20.10.2024 08:25 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227235 ФПД: 197649394128551 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T082506&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227235&fm=197649394128551&tin=02508201610067®Number=0000000000091685&sum=100000 [08:25:03]StoreToDocumentArchive [08:25:03]shift 533 fd 227235 [08:25:03]save to /storage/0533/doc_00227235 [08:25:03]save last doc name /storage/0533/doc_00227235 to /storage/kkm_last_doc_name [08:25:03]save OK [08:25:03]Clear old archive folders... [08:25:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:25:03]tlvbuf is 005FA990 [08:25:03]SAM_PROTO_ClearQueue [08:25:03]wFMCommunicate request_size=4 [08:25:03]MH_SAM_APDU [08:25:03]CAPDU: 80 09 00 00 [08:25:03]Write to MH i2c: E2 08 00 8F 2E 80 09 00 00 00 00 00 00 2F [08:25:03]Write i2c OK [08:25:03]MH_I2C_Read... [08:25:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:25:03]Read from MH i2c: E2 [08:25:03]MH_I2C_Read... [08:25:03]Read from MH i2c: E2 03 00 [08:25:03]MH_I2C_Read... [08:25:03]Read from MH i2c: E2 03 00 8F 2E 00 90 00 31 [08:25:03]RAPDU: 90 00 [08:25:03]wFMCommunicate OK [08:25:03]SAM_PROTO_ClearQueue done [08:25:03]KKMCreateOFDPacket [08:25:03]OFDProtocolAddRootSTLVToBuf [08:25:03]FM_MakeSignedData [08:25:03]FM_MakeSignedData [08:25:03]SAM_PROTO_SignData [08:25:03]wFMCommunicate request_size=4 [08:25:03]MH_SAM_APDU [08:25:03]CAPDU: 80 0D 01 02 [08:25:03]Write to MH i2c: E2 08 00 90 2E 80 0D 01 02 00 00 00 00 37 [08:25:03]Write i2c OK [08:25:03]MH_I2C_Read... [08:25:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:25:03]Read from MH i2c: E2 [08:25:03]MH_I2C_Read... [08:25:03]Read from MH i2c: E2 03 00 [08:25:03]MH_I2C_Read... [08:25:03]Read from MH i2c: E2 03 00 90 2E 00 90 00 32 [08:25:03]RAPDU: 90 00 [08:25:03]wFMCommunicate OK [08:25:03]wFMCommunicate request_size=255 [08:25:03]MH_SAM_APDU [08:25:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 62 BE 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A3 77 03 00 35 04 06 00 B3 [08:25:03]Write to MH i2c: E2 02 01 91 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 62 BE 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A3 77 03 00 35 04 06 00 B3 00 00 9D [08:25:03]Write i2c OK [08:25:03]MH_I2C_Read... [08:25:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:25:04]Read from MH i2c: E2 [08:25:04]MH_I2C_Read... [08:25:04]Read from MH i2c: E2 03 00 [08:25:04]MH_I2C_Read... [08:25:04]Read from MH i2c: E2 03 00 91 2E 00 90 00 33 [08:25:04]RAPDU: 90 00 [08:25:04]wFMCommunicate OK [08:25:04]wFMCommunicate request_size=10 [08:25:04]MH_SAM_APDU [08:25:04]CAPDU: 80 0D 02 02 05 C2 D5 ED 56 A7 [08:25:04]Write to MH i2c: E2 0D 00 92 2E 80 0D 02 02 05 00 C2 D5 ED 56 A7 00 00 C5 [08:25:04]Write i2c OK [08:25:04]MH_I2C_Read... [08:25:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:25:04]Read from MH i2c: E2 [08:25:04]MH_I2C_Read... [08:25:04]Read from MH i2c: E2 03 00 [08:25:04]MH_I2C_Read... [08:25:04]Read from MH i2c: E2 03 00 92 2E 00 90 00 34 [08:25:04]RAPDU: 90 00 [08:25:04]wFMCommunicate OK [08:25:04]wFMCommunicate request_size=4 [08:25:04]MH_SAM_APDU [08:25:04]CAPDU: 80 0D 03 02 [08:25:04]Write to MH i2c: E2 08 00 93 2E 80 0D 03 02 00 00 00 00 3C [08:25:04]Write i2c OK [08:25:04]MH_I2C_Read... [08:25:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:25:04]Read from MH i2c: E2 [08:25:04]MH_I2C_Read... [08:25:04]Read from MH i2c: E2 0B 00 [08:25:04]MH_I2C_Read... [08:25:04]Read from MH i2c: E2 0B 00 93 2E 00 E9 47 39 39 FC 5E D9 0C 90 00 1E [08:25:04]RAPDU: E9 47 39 39 FC 5E D9 0C 90 00 [08:25:04]wFMCommunicate OK [08:25:04]SAM_PROTO_SignData done [08:25:04]FM_MakeSignedData done [08:25:04]CreateOFDProtocolMessage [08:25:04]wFMCommunicate request_size=4 [08:25:04]MH_SAM_APDU [08:25:04]CAPDU: 80 11 00 00 [08:25:04]Write to MH i2c: E2 08 00 94 2E 80 11 00 00 00 00 00 00 3C [08:25:04]Write i2c OK [08:25:04]MH_I2C_Read... [08:25:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:25:04]Read from MH i2c: E2 [08:25:04]MH_I2C_Read... [08:25:04]Read from MH i2c: E2 17 00 [08:25:04]MH_I2C_Read... [08:25:04]Read from MH i2c: E2 17 00 94 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 93 [08:25:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:25:04]wFMCommunicate OK [08:25:04]CreateOFDProtocolMessage done [08:25:04]OFDSenderStorePacket 227235 [08:25:04]StoreOFDPacket docnum=227235 [08:25:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 30 DE 07 01 D0 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 62 BE 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A3 77 03 00 35 04 06 00 B3 C2 D5 ED 56 A7 E9 47 39 39 FC 5E D9 0C [08:25:04]CheckFolder [08:25:04]dirname=/storage/ofd_packets [08:25:04]CheckFolder done [08:25:04]ProducePacketName [08:25:04]name=ofd_packets/00227235 [08:25:04]NVStorageSaveData ofd_packets/00227235 [08:25:04]File name is /storage/ofd_packets/00227235 [08:25:04]Write 301 bytes [08:25:04]NVStorageSaveData done [08:25:04]OFDSenderStorePacket done [08:25:04]KKMCreateOFDPacket done [08:25:04]NVStorageSaveData kkm_last_timestamp [08:25:04]File name is /storage/kkm_last_timestamp [08:25:04]Write 4 bytes [08:25:04]NVStorageSaveData done [08:25:04]ExternCall_PrintAddStr [08:25:04]wPrintStart [08:25:04]Write to MH i2c: 01 00 00 95 2E C3 [08:25:04]Write i2c OK [08:25:04]MH_I2C_Read... [08:25:04]Read from MH i2c: 01 [08:25:04]MH_I2C_Read... [08:25:04]Read from MH i2c: 01 07 00 [08:25:04]MH_I2C_Read... [08:25:04]Read from MH i2c: 01 07 00 95 2E 00 00 00 00 00 FF 0F D8 [08:25:04]RasterBufferAndPrint [08:25:04]line Счет N : (1)1962691 [08:25:04]line ИНН: 02508201610067 [08:25:04]line Контрольно-Кассовый Чек [08:25:04]line ПРОДАЖА [08:25:04]line ТРК (МРК, ГНК) : 43 [08:25:04]line Товар: 2710124130 [08:25:04]line Аи-92-К-5 [08:25:04]line 14.950 * 66.90 [08:25:04]line = 1000.16 [08:25:04]line НДС 12% НСП 1% [08:25:04]line > о реализуемом товаре [08:25:04]line ОКРУГЛЕНИЕ: -0.16 [08:25:04]line ИТОГО: 1000.00 [08:25:04]line Внесено: 1000.00 [08:25:04]line СДАЧА: 0.00 [08:25:04]line НСП 1% : 8.85 [08:25:04]line НДС 12% : 106.21 [08:25:04]line Наличными: 1000.00 [08:25:04]line Безнал.: 0.00 [08:25:04]line Место: АЗС № 133 "Партнер Нефть" [08:25:04]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [08:25:04]line СНО: Общий режим [08:25:04]line Чек 83 20.10.2024 08:25 [08:25:04]line Смена: 533 ФФД: 1.0 [08:25:04]line ЗНМ: 0300000091 [08:25:04]line РНМ: 0000000000091685 [08:25:04]line Версия ККМ: 001 [08:25:04]line ФМ: 0000000000871839 [08:25:04]line ФД: 227235 [08:25:04]line ФПД: 197649394128551 [08:25:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T082506&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227235&fm=197649394128551&tin=02508201610067®Number=0000000000091685&sum=100000 [08:25:04]OFD Sender: Processing packet 227235 [packets to send 38, broken 37] [08:25:04]ProducePacketName [08:25:04]name=ofd_packets/00227235 [08:25:04]OFD Sender: To server: pG, [08:25:04]CommunicateWithHost lk.salyk.kg:30040 [08:25:04]ConnectInit lk.salyk.kg [08:25:04]written 0, free lines is 4095 [08:25:04]Connected sock=10 [08:25:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 30 DE 07 01 D0 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 62 BE 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A3 77 03 00 35 04 06 00 B3 C2 D5 ED 56 A7 E9 47 39 39 FC 5E D9 0C [08:25:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 CE 64 47 00 B1 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 33 39 10 04 04 00 A3 77 03 00 F4 03 04 00 61 69 14 67 B6 04 01 00 00 AA 15 94 C5 A2 F7 95 E3 [08:25:04]CommunicateWithHost err = 0 [08:25:04]CheckOFDResponse [08:25:04]1017 (14) - 77093643461234 [08:25:04]1041 (16) - 0000000000871839 [08:25:04]1040 (4) - 227235 [08:25:04]1012 (4) - 20.10.2024 02:22 [08:25:04]1206 (1) - 0 [08:25:04]OFD Sender: Remove packet 227235 [08:25:04]ProducePacketName [08:25:04]name=ofd_packets/00227235 [08:25:04]NVStorageDeleteData [08:25:05]Write to MH i2c: 01 00 00 BF 2E ED [08:25:05]Write i2c OK [08:25:05]MH_I2C_Read... [08:25:05]Read from MH i2c: 01 [08:25:05]MH_I2C_Read... [08:25:05]Read from MH i2c: 01 07 00 [08:25:05]MH_I2C_Read... [08:25:05]Read from MH i2c: 01 07 00 BF 2E 00 00 00 00 00 19 0D 1A [08:25:05]RasterBufferAndPrint [08:25:05]line [08:25:05]line [08:25:05]line [08:25:05]line [08:25:05]line [08:25:05]written 0, free lines is 3359 [08:25:05]process_action close_receipt done [08:25:05]requested_data is exist [08:25:05]produce_requested_data [08:25:05]requested_item fm.sn is exist - process it [08:25:05]wFMCommunicate request_size=4 [08:25:05]MH_SAM_APDU [08:25:05]CAPDU: 80 11 00 00 [08:25:05]Write to MH i2c: E2 08 00 C6 2E 80 11 00 00 00 00 00 00 6E [08:25:05]Write i2c OK [08:25:05]MH_I2C_Read... [08:25:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:25:05]Read from MH i2c: E2 [08:25:05]MH_I2C_Read... [08:25:05]Read from MH i2c: E2 17 00 [08:25:05]MH_I2C_Read... [08:25:05]Read from MH i2c: E2 17 00 C6 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C5 [08:25:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:25:05]wFMCommunicate OK [08:25:05]requested_item fd.num is exist - process it [08:25:05]SAM_PROTO_GetFieldsCounters [08:25:05]wFMCommunicate request_size=4 [08:25:05]MH_SAM_APDU [08:25:05]CAPDU: 80 13 00 00 [08:25:05]Write to MH i2c: E2 08 00 C7 2E 80 13 00 00 00 00 00 00 71 [08:25:05]Write i2c OK [08:25:05]MH_I2C_Read... [08:25:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:25:05]Read from MH i2c: E2 [08:25:05]MH_I2C_Read... [08:25:05]Read from MH i2c: E2 62 00 [08:25:05]MH_I2C_Read... [08:25:05]Read from MH i2c: E2 62 00 C7 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A3 77 03 00 0E 04 04 00 15 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 C7 [08:25:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A3 77 03 00 0E 04 04 00 15 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 [08:25:05]wFMCommunicate OK [08:25:05]SAM_PROTO_GetFieldsCounters done [08:25:05]requested_item shift.num is exist - process it [08:25:05]requested_item shift.opened is exist - process it [08:25:05]req_shift_opened [08:25:05]FM_GetShiftState [08:25:05]SAM_PROTO_GetShiftState [08:25:05]wFMCommunicate request_size=4 [08:25:05]MH_SAM_APDU [08:25:05]CAPDU: 80 13 01 00 [08:25:05]Write to MH i2c: E2 08 00 C8 2E 80 13 01 00 00 00 00 00 73 [08:25:05]Write i2c OK [08:25:05]MH_I2C_Read... [08:25:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:25:05]Read from MH i2c: E2 [08:25:05]MH_I2C_Read... [08:25:05]Read from MH i2c: E2 0E 00 [08:25:05]MH_I2C_Read... [08:25:05]Read from MH i2c: E2 0E 00 C8 2E 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 8D [08:25:05]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:25:05]wFMCommunicate OK [08:25:05]SAM_PROTO_GetShiftState done [08:25:05]FM_GetShiftState done [08:25:05]req_shift_opened done [08:25:05]requested_item shift.open_date is exist - process it [08:25:05]req_shift_open_date [08:25:05]req_shift_open_date done [08:25:05]produce_requested_data done [08:25:05]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227235,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [08:25:05]process_action_free close_receipt [08:25:05]json_value_free [08:25:05]json_value_free done [08:25:05]process_json_proto returns [08:25:05]Send response to host [08:25:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227235,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [08:25:05]free response buf [08:25:05]execute_script done [08:25:05]execute_script returns [08:25:05]free content buf [08:25:05]Sock 8.Close socket [08:25:05]Sock 8.Thread stoped [08:25:05]OFD Sender: No OFD packet to send [08:25:10]OFD Sender: No OFD packet to send [08:25:15]OFD Sender: No OFD packet to send [08:25:20]OFD Sender: No OFD packet to send [08:25:25]OFD Sender: No OFD packet to send [08:25:30]OFD Sender: No OFD packet to send [08:25:35]OFD Sender: No OFD packet to send [08:25:40]OFD Sender: No OFD packet to send [08:25:45]OFD Sender: No OFD packet to send [08:25:50]OFD Sender: No OFD packet to send [08:25:55]OFD Sender: No OFD packet to send [08:26:00]OFD Sender: No OFD packet to send [08:26:05]OFD Sender: No OFD packet to send [08:26:10]OFD Sender: No OFD packet to send [08:26:12]accept exits with 9 [08:26:12]New connection [08:26:12]New thread 3066821988 created [08:26:12]Thread 3066965348 joined [08:26:12]Waiting for new connection... [08:26:12] Sock 9.Parse request [08:26:12]Sock 9.Check first char [08:26:12]Sock 9.First char is OK [08:26:12]request: POST /json_proto HTTP/1.0 [08:26:12]Method: POST [08:26:12]URL: /json_proto [08:26:12]Method is POST - this is cgi request [08:26:12]url: /json_proto [08:26:12]query_string will be loaded in cgi processing [08:26:12]execute_cgi json_proto POST (null) [08:26:12]execute_cgi path=json_proto method=POST [08:26:12]POST find Content-Length [08:26:12]Host: 172.17.44.195:8080 [08:26:12]Content-Length: 678 [08:26:12]Content-Type: application/json [08:26:12] [08:26:12]POST finish read [08:26:12]Found Content-Length = 678 [08:26:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962694", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:26:12]execute_script... [08: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)1962694", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:26:12]POST & json_proto [08:26:12]process_json_proto [08:26:12]json parsed OK: [08:26:12]protocol is kg_v1.0 [08:26:12]action value=close_receipt [08:26:12]process_action close_receipt [08:26:12]cmd_close_receipt [08:26:12]MH_GetDate [08:26:12]Write to MH i2c: F0 00 00 C9 2E E6 [08:26:12]Write i2c OK [08:26:12]MH_I2C_Read... [08:26:12]Read from MH i2c: F0 [08:26:12]MH_I2C_Read... [08:26:12]Read from MH i2c: F0 09 00 [08:26:12]MH_I2C_Read... [08:26:12]Read from MH i2c: F0 09 00 C9 2E 00 A8 BE 14 67 82 C9 CF 66 50 [08:26:12]GetLastDocTimeStamp 1729412706 [08:26:12]current date 1729412776 [08:26:12]FM_GetShiftState [08:26:12]SAM_PROTO_GetShiftState [08:26:12]wFMCommunicate request_size=4 [08:26:12]MH_SAM_APDU [08:26:12]CAPDU: 80 13 01 00 [08:26:12]Write to MH i2c: E2 08 00 CA 2E 80 13 01 00 00 00 00 00 75 [08:26:12]Write i2c OK [08:26:12]MH_I2C_Read... [08:26:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:26:12]Read from MH i2c: E2 [08:26:12]MH_I2C_Read... [08:26:12]Read from MH i2c: E2 0E 00 [08:26:12]MH_I2C_Read... [08:26:12]Read from MH i2c: E2 0E 00 CA 2E 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 8F [08:26:12]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:26:12]wFMCommunicate OK [08:26:12]SAM_PROTO_GetShiftState done [08:26:12]FM_GetShiftState done [08:26:12]opened in 1729383750 [08:26:12]opened+sec_in_day 1729470150 [08:26:12]quantity*price = 50041 [08:26:12]sum+1 = 50042 [08:26:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 84 20.10.2024 08:26 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227236 ФПД: 90823484034093 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T082616&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227236&fm=90823484034093&tin=02508201610067®Number=0000000000091685&sum=50000 [08:26:13]StoreToDocumentArchive [08:26:13]shift 533 fd 227236 [08:26:13]save to /storage/0533/doc_00227236 [08:26:13]save last doc name /storage/0533/doc_00227236 to /storage/kkm_last_doc_name [08:26:13]save OK [08:26:13]Clear old archive folders... [08:26:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:26:13]tlvbuf is 005168C0 [08:26:13]SAM_PROTO_ClearQueue [08:26:13]wFMCommunicate request_size=4 [08:26:13]MH_SAM_APDU [08:26:13]CAPDU: 80 09 00 00 [08:26:13]Write to MH i2c: E2 08 00 D7 2E 80 09 00 00 00 00 00 00 77 [08:26:13]Write i2c OK [08:26:13]MH_I2C_Read... [08:26:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:26:13]Read from MH i2c: E2 [08:26:13]MH_I2C_Read... [08:26:13]Read from MH i2c: E2 03 00 [08:26:13]MH_I2C_Read... [08:26:13]Read from MH i2c: E2 03 00 D7 2E 00 90 00 79 [08:26:13]RAPDU: 90 00 [08:26:13]wFMCommunicate OK [08:26:13]SAM_PROTO_ClearQueue done [08:26:13]KKMCreateOFDPacket [08:26:13]OFDProtocolAddRootSTLVToBuf [08:26:13]FM_MakeSignedData [08:26:13]FM_MakeSignedData [08:26:13]SAM_PROTO_SignData [08:26:13]wFMCommunicate request_size=4 [08:26:13]MH_SAM_APDU [08:26:13]CAPDU: 80 0D 01 02 [08:26:13]Write to MH i2c: E2 08 00 D8 2E 80 0D 01 02 00 00 00 00 7F [08:26:13]Write i2c OK [08:26:13]MH_I2C_Read... [08:26:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:26:13]Read from MH i2c: E2 [08:26:13]MH_I2C_Read... [08:26:13]Read from MH i2c: E2 03 00 [08:26:13]MH_I2C_Read... [08:26:13]Read from MH i2c: E2 03 00 D8 2E 00 90 00 7A [08:26:13]RAPDU: 90 00 [08:26:13]wFMCommunicate OK [08:26:13]wFMCommunicate request_size=255 [08:26:13]MH_SAM_APDU [08:26:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 A8 BE 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A4 77 03 00 35 04 06 00 52 [08:26:13]Write to MH i2c: E2 02 01 D9 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 A8 BE 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A4 77 03 00 35 04 06 00 52 00 00 D2 [08:26:14]Write i2c OK [08:26:14]MH_I2C_Read... [08:26:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:26:14]Read from MH i2c: E2 [08:26:14]MH_I2C_Read... [08:26:14]Read from MH i2c: E2 03 00 [08:26:14]MH_I2C_Read... [08:26:14]Read from MH i2c: E2 03 00 D9 2E 00 90 00 7B [08:26:14]RAPDU: 90 00 [08:26:14]wFMCommunicate OK [08:26:14]wFMCommunicate request_size=10 [08:26:14]MH_SAM_APDU [08:26:14]CAPDU: 80 0D 02 02 05 9A 7D 80 CC 2D [08:26:14]Write to MH i2c: E2 0D 00 DA 2E 80 0D 02 02 05 00 9A 7D 80 CC 2D 00 00 1C [08:26:14]Write i2c OK [08:26:14]MH_I2C_Read... [08:26:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:26:14]Read from MH i2c: E2 [08:26:14]MH_I2C_Read... [08:26:14]Read from MH i2c: E2 03 00 [08:26:14]MH_I2C_Read... [08:26:14]Read from MH i2c: E2 03 00 DA 2E 00 90 00 7C [08:26:14]RAPDU: 90 00 [08:26:14]wFMCommunicate OK [08:26:14]wFMCommunicate request_size=4 [08:26:14]MH_SAM_APDU [08:26:14]CAPDU: 80 0D 03 02 [08:26:14]Write to MH i2c: E2 08 00 DB 2E 80 0D 03 02 00 00 00 00 84 [08:26:14]Write i2c OK [08:26:14]MH_I2C_Read... [08:26:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:26:14]Read from MH i2c: E2 [08:26:14]MH_I2C_Read... [08:26:14]Read from MH i2c: E2 0B 00 [08:26:14]MH_I2C_Read... [08:26:14]Read from MH i2c: E2 0B 00 DB 2E 00 FC FB 3C 23 52 D9 DC 8F 90 00 71 [08:26:14]RAPDU: FC FB 3C 23 52 D9 DC 8F 90 00 [08:26:14]wFMCommunicate OK [08:26:14]SAM_PROTO_SignData done [08:26:14]FM_MakeSignedData done [08:26:14]CreateOFDProtocolMessage [08:26:14]wFMCommunicate request_size=4 [08:26:14]MH_SAM_APDU [08:26:14]CAPDU: 80 11 00 00 [08:26:14]Write to MH i2c: E2 08 00 DC 2E 80 11 00 00 00 00 00 00 84 [08:26:14]Write i2c OK [08:26:14]MH_I2C_Read... [08:26:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:26:14]Read from MH i2c: E2 [08:26:14]MH_I2C_Read... [08:26:14]Read from MH i2c: E2 17 00 [08:26:14]MH_I2C_Read... [08:26:14]Read from MH i2c: E2 17 00 DC 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 DB [08:26:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:26:14]wFMCommunicate OK [08:26:14]CreateOFDProtocolMessage done [08:26:14]OFDSenderStorePacket 227236 [08:26:14]StoreOFDPacket docnum=227236 [08:26:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 DC FD 07 01 BA 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 A8 BE 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A4 77 03 00 35 04 06 00 52 9A 7D 80 CC 2D FC FB 3C 23 52 D9 DC 8F [08:26:14]CheckFolder [08:26:14]dirname=/storage/ofd_packets [08:26:14]CheckFolder done [08:26:14]ProducePacketName [08:26:14]name=ofd_packets/00227236 [08:26:14]NVStorageSaveData ofd_packets/00227236 [08:26:14]File name is /storage/ofd_packets/00227236 [08:26:14]Write 301 bytes [08:26:14]NVStorageSaveData done [08:26:14]OFDSenderStorePacket done [08:26:14]KKMCreateOFDPacket done [08:26:14]NVStorageSaveData kkm_last_timestamp [08:26:14]File name is /storage/kkm_last_timestamp [08:26:14]Write 4 bytes [08:26:14]NVStorageSaveData done [08:26:14]ExternCall_PrintAddStr [08:26:14]wPrintStart [08:26:14]Write to MH i2c: 01 00 00 DD 2E 0B [08:26:14]Write i2c OK [08:26:14]MH_I2C_Read... [08:26:14]Read from MH i2c: 01 [08:26:14]MH_I2C_Read... [08:26:14]Read from MH i2c: 01 07 00 [08:26:14]MH_I2C_Read... [08:26:14]Read from MH i2c: 01 07 00 DD 2E 00 00 00 00 00 FF 0F 20 [08:26:14]RasterBufferAndPrint [08:26:14]line Счет N : (1)1962694 [08:26:14]line ИНН: 02508201610067 [08:26:14]line Контрольно-Кассовый Чек [08:26:14]line ПРОДАЖА [08:26:14]line ТРК (МРК, ГНК) : 53 [08:26:14]line Товар: 2710124130 [08:26:14]line Аи-92-К-5 [08:26:14]line 7.480 * 66.90 [08:26:14]line = 500.41 [08:26:14]line НДС 12% НСП 1% [08:26:14]line > о реализуемом товаре [08:26:14]line ОКРУГЛЕНИЕ: -0.41 [08:26:14]line ИТОГО: 500.00 [08:26:14]line Внесено: 500.00 [08:26:14]line СДАЧА: 0.00 [08:26:14]line НСП 1% : 4.43 [08:26:14]line НДС 12% : 53.14 [08:26:14]line Наличными: 500.00 [08:26:14]line Безнал.: 0.00 [08:26:14]line Место: АЗС № 133 "Партнер Нефть" [08:26:14]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [08:26:14]line СНО: Общий режим [08:26:14]line Чек 84 20.10.2024 08:26 [08:26:14]line Смена: 533 ФФД: 1.0 [08:26:14]line ЗНМ: 0300000091 [08:26:14]line РНМ: 0000000000091685 [08:26:14]line Версия ККМ: 001 [08:26:14]line ФМ: 0000000000871839 [08:26:14]line ФД: 227236 [08:26:14]line ФПД: 90823484034093 [08:26:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T082616&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227236&fm=90823484034093&tin=02508201610067®Number=0000000000091685&sum=50000 [08:26:14]written 0, free lines is 4095 [08:26:14]OFD Sender: Processing packet 227236 [packets to send 38, broken 37] [08:26:14]ProducePacketName [08:26:14]name=ofd_packets/00227236 [08:26:14]OFD Sender: To server: pG, [08:26:14]CommunicateWithHost lk.salyk.kg:30040 [08:26:14]ConnectInit lk.salyk.kg [08:26:14]Connected sock=10 [08: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 33 39 0F 01 00 00 DC FD 07 01 BA 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 A8 BE 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A4 77 03 00 35 04 06 00 52 9A 7D 80 CC 2D FC FB 3C 23 52 D9 DC 8F [08: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 33 39 4F 00 00 00 48 5F 47 00 3F 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A4 77 03 00 F4 03 04 00 A8 69 14 67 B6 04 01 00 00 D7 01 65 14 5A B5 6A 17 [08:26:15]CommunicateWithHost err = 0 [08:26:15]CheckOFDResponse [08:26:15]1017 (14) - 77093643461234 [08:26:15]1041 (16) - 0000000000871839 [08:26:15]1040 (4) - 227236 [08:26:15]1012 (4) - 20.10.2024 02:23 [08:26:15]1206 (1) - 0 [08:26:15]OFD Sender: Remove packet 227236 [08:26:15]ProducePacketName [08:26:15]name=ofd_packets/00227236 [08:26:15]NVStorageDeleteData [08:26:15]Write to MH i2c: 01 00 00 07 2F 36 [08:26:15]Write i2c OK [08:26:15]MH_I2C_Read... [08:26:15]Read from MH i2c: 01 [08:26:15]MH_I2C_Read... [08:26:15]Read from MH i2c: 01 07 00 [08:26:15]MH_I2C_Read... [08:26:15]Read from MH i2c: 01 07 00 07 2F 00 00 00 00 00 02 0D 4C [08:26:15]RasterBufferAndPrint [08:26:15]line [08:26:15]line [08:26:15]line [08:26:15]line [08:26:15]line [08:26:15]written 0, free lines is 3336 [08:26:15]process_action close_receipt done [08:26:15]requested_data is exist [08:26:15]produce_requested_data [08:26:15]requested_item fm.sn is exist - process it [08:26:15]wFMCommunicate request_size=4 [08:26:15]MH_SAM_APDU [08:26:15]CAPDU: 80 11 00 00 [08:26:15]Write to MH i2c: E2 08 00 0E 2F 80 11 00 00 00 00 00 00 B7 [08:26:15]Write i2c OK [08:26:15]MH_I2C_Read... [08:26:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:26:15]Read from MH i2c: E2 [08:26:15]MH_I2C_Read... [08:26:15]Read from MH i2c: E2 17 00 [08:26:15]MH_I2C_Read... [08:26:15]Read from MH i2c: E2 17 00 0E 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 0E [08:26:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:26:15]wFMCommunicate OK [08:26:15]requested_item fd.num is exist - process it [08:26:15]SAM_PROTO_GetFieldsCounters [08:26:15]wFMCommunicate request_size=4 [08:26:15]MH_SAM_APDU [08:26:15]CAPDU: 80 13 00 00 [08:26:15]Write to MH i2c: E2 08 00 0F 2F 80 13 00 00 00 00 00 00 BA [08:26:15]Write i2c OK [08:26:15]MH_I2C_Read... [08:26:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:26:15]Read from MH i2c: E2 [08:26:15]MH_I2C_Read... [08:26:15]Read from MH i2c: E2 62 00 [08:26:15]MH_I2C_Read... [08:26:15]Read from MH i2c: E2 62 00 0F 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A4 77 03 00 0E 04 04 00 15 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 14 [08:26: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A4 77 03 00 0E 04 04 00 15 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 [08:26:15]wFMCommunicate OK [08:26:15]SAM_PROTO_GetFieldsCounters done [08:26:15]requested_item shift.num is exist - process it [08:26:15]requested_item shift.opened is exist - process it [08:26:15]req_shift_opened [08:26:15]FM_GetShiftState [08:26:15]SAM_PROTO_GetShiftState [08:26:15]wFMCommunicate request_size=4 [08:26:15]MH_SAM_APDU [08:26:15]CAPDU: 80 13 01 00 [08:26:15]Write to MH i2c: E2 08 00 10 2F 80 13 01 00 00 00 00 00 BC [08:26:15]Write i2c OK [08:26:15]MH_I2C_Read... [08:26:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:26:15]Read from MH i2c: E2 [08:26:15]MH_I2C_Read... [08:26:15]Read from MH i2c: E2 0E 00 [08:26:15]MH_I2C_Read... [08:26:15]Read from MH i2c: E2 0E 00 10 2F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 D6 [08:26:15]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:26:15]wFMCommunicate OK [08:26:15]SAM_PROTO_GetShiftState done [08:26:15]FM_GetShiftState done [08:26:15]req_shift_opened done [08:26:15]requested_item shift.open_date is exist - process it [08:26:15]req_shift_open_date [08:26:15]req_shift_open_date done [08:26:15]produce_requested_data done [08:26:15]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227236,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [08:26:15]process_action_free close_receipt [08:26:15]json_value_free [08:26:15]json_value_free done [08:26:15]process_json_proto returns [08:26:15]Send response to host [08:26:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227236,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [08:26:15]free response buf [08:26:15]execute_script done [08:26:15]execute_script returns [08:26:15]free content buf [08:26:15]Sock 9.Close socket [08:26:15]Sock 9.Thread stoped [08:26:15]OFD Sender: No OFD packet to send [08:26:20]OFD Sender: No OFD packet to send [08:26:25]OFD Sender: No OFD packet to send [08:26:30]OFD Sender: No OFD packet to send [08:26:35]OFD Sender: No OFD packet to send [08:26:40]OFD Sender: No OFD packet to send [08:26:45]OFD Sender: No OFD packet to send [08:26:50]OFD Sender: No OFD packet to send [08:26:55]OFD Sender: No OFD packet to send [08:27:00]OFD Sender: No OFD packet to send [08:27:05]OFD Sender: No OFD packet to send [08:27:10]OFD Sender: No OFD packet to send [08:27:15]OFD Sender: No OFD packet to send [08:27:20]OFD Sender: No OFD packet to send [08:27:25]OFD Sender: No OFD packet to send [08:27:30]OFD Sender: No OFD packet to send [08:27:35]OFD Sender: No OFD packet to send [08:27:40]OFD Sender: No OFD packet to send [08:27:45]OFD Sender: No OFD packet to send [08:27:50]OFD Sender: No OFD packet to send [08:27:55]OFD Sender: No OFD packet to send [08:28:00]OFD Sender: No OFD packet to send [08:28:05]OFD Sender: No OFD packet to send [08:28:10]OFD Sender: No OFD packet to send [08:28:15]OFD Sender: No OFD packet to send [08:28:20]OFD Sender: No OFD packet to send [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:18]accept exits with 8 [08:29:18]New connection [08:29:18]New thread 3066965348 created [08:29:18]Thread 3066821988 joined [08:29:18]Waiting for new connection... [08:29:18] Sock 8.Parse request [08:29:18]Sock 8.Check first char [08:29:18]Sock 8.First char is OK [08:29:18]request: POST /json_proto HTTP/1.0 [08:29:18]Method: POST [08:29:18]URL: /json_proto [08:29:18]Method is POST - this is cgi request [08:29:18]url: /json_proto [08:29:18]query_string will be loaded in cgi processing [08:29:18]execute_cgi json_proto POST (null) [08:29:18]execute_cgi path=json_proto method=POST [08:29:18]POST find Content-Length [08:29:18]Host: 172.17.44.195:8080 [08:29:18]Content-Length: 660 [08:29:18]Content-Type: application/json [08:29:18] [08:29:18]POST finish read [08:29:18]Found Content-Length = 660 [08:29:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962695", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 10.240, "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" ] } } [08:29:18]execute_script... [08:29:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962695", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 10.240, "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" ] } } [08:29:18]POST & json_proto [08:29:18]process_json_proto [08:29:18]json parsed OK: [08:29:18]protocol is kg_v1.0 [08:29:18]action value=close_receipt [08:29:18]process_action close_receipt [08:29:18]cmd_close_receipt [08:29:18]MH_GetDate [08:29:18]Write to MH i2c: F0 00 00 11 2F 2F [08:29:18]Write i2c OK [08:29:18]MH_I2C_Read... [08:29:18]Read from MH i2c: F0 [08:29:18]MH_I2C_Read... [08:29:18]Read from MH i2c: F0 09 00 [08:29:18]MH_I2C_Read... [08:29:18]Read from MH i2c: F0 09 00 11 2F 00 62 BF 14 67 82 C9 CF 66 54 [08:29:18]GetLastDocTimeStamp 1729412776 [08:29:18]current date 1729412962 [08:29:18]FM_GetShiftState [08:29:18]SAM_PROTO_GetShiftState [08:29:18]wFMCommunicate request_size=4 [08:29:18]MH_SAM_APDU [08:29:18]CAPDU: 80 13 01 00 [08:29:18]Write to MH i2c: E2 08 00 12 2F 80 13 01 00 00 00 00 00 BE [08:29:18]Write i2c OK [08:29:18]MH_I2C_Read... [08:29:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:18]Read from MH i2c: E2 [08:29:18]MH_I2C_Read... [08:29:18]Read from MH i2c: E2 0E 00 [08:29:18]MH_I2C_Read... [08:29:18]Read from MH i2c: E2 0E 00 12 2F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 D8 [08:29:18]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:29:18]wFMCommunicate OK [08:29:18]SAM_PROTO_GetShiftState done [08:29:18]FM_GetShiftState done [08:29:18]opened in 1729383750 [08:29:18]opened+sec_in_day 1729470150 [08:29:18]quantity*price = 70041 [08:29:18]sum+1 = 70043 [08:29:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 85 20.10.2024 08:29 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227237 ФПД: 173374644224257 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T082922&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227237&fm=173374644224257&tin=02508201610067®Number=0000000000091685&sum=70000 [08:29:19]StoreToDocumentArchive [08:29:19]shift 533 fd 227237 [08:29:19]save to /storage/0533/doc_00227237 [08:29:19]save last doc name /storage/0533/doc_00227237 to /storage/kkm_last_doc_name [08:29:19]save OK [08:29:19]Clear old archive folders... [08:29:19]ProcessDocumentItem done err = 0, tmpTLVsize=244 [08:29:19]tlvbuf is 005348C0 [08:29:19]SAM_PROTO_ClearQueue [08:29:19]wFMCommunicate request_size=4 [08:29:19]MH_SAM_APDU [08:29:19]CAPDU: 80 09 00 00 [08:29:19]Write to MH i2c: E2 08 00 1F 2F 80 09 00 00 00 00 00 00 C0 [08:29:19]Write i2c OK [08:29:19]MH_I2C_Read... [08:29:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:29:19]Read from MH i2c: E2 [08:29:19]MH_I2C_Read... [08:29:19]Read from MH i2c: E2 03 00 [08:29:19]MH_I2C_Read... [08:29:19]Read from MH i2c: E2 03 00 1F 2F 00 90 00 C2 [08:29:19]RAPDU: 90 00 [08:29:19]wFMCommunicate OK [08:29:19]SAM_PROTO_ClearQueue done [08:29:19]KKMCreateOFDPacket [08:29:19]OFDProtocolAddRootSTLVToBuf [08:29:19]FM_MakeSignedData [08:29:19]FM_MakeSignedData [08:29:19]SAM_PROTO_SignData [08:29:19]wFMCommunicate request_size=4 [08:29:19]MH_SAM_APDU [08:29:19]CAPDU: 80 0D 01 02 [08:29:19]Write to MH i2c: E2 08 00 20 2F 80 0D 01 02 00 00 00 00 C8 [08:29:19]Write i2c OK [08:29:19]MH_I2C_Read... [08:29:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:29:19]Read from MH i2c: E2 [08:29:19]MH_I2C_Read... [08:29:19]Read from MH i2c: E2 03 00 [08:29:19]MH_I2C_Read... [08:29:19]Read from MH i2c: E2 03 00 20 2F 00 90 00 C3 [08:29:19]RAPDU: 90 00 [08:29:19]wFMCommunicate OK [08:29:19]wFMCommunicate request_size=253 [08:29:19]MH_SAM_APDU [08:29:19]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 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 55 00 00 00 F4 03 04 00 62 BF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A5 77 03 00 35 04 06 00 9D AE EE 15 01 01 [08:29:19]Write to MH i2c: E2 00 01 21 2F 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 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 55 00 00 00 F4 03 04 00 62 BF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A5 77 03 00 35 04 06 00 9D AE EE 15 01 01 00 00 42 [08:29:19]Write i2c OK [08:29:19]MH_I2C_Read... [08:29:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:29:19]Read from MH i2c: E2 [08:29:19]MH_I2C_Read... [08:29:19]Read from MH i2c: E2 03 00 [08:29:19]MH_I2C_Read... [08:29:19]Read from MH i2c: E2 03 00 21 2F 00 90 00 C4 [08:29:19]RAPDU: 90 00 [08:29:19]wFMCommunicate OK [08:29:19]wFMCommunicate request_size=4 [08:29:19]MH_SAM_APDU [08:29:19]CAPDU: 80 0D 03 02 [08:29:19]Write to MH i2c: E2 08 00 22 2F 80 0D 03 02 00 00 00 00 CC [08:29:19]Write i2c OK [08:29:19]MH_I2C_Read... [08:29:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:29:19]Read from MH i2c: E2 [08:29:19]MH_I2C_Read... [08:29:19]Read from MH i2c: E2 0B 00 [08:29:19]MH_I2C_Read... [08:29:19]Read from MH i2c: E2 0B 00 22 2F 00 18 6C CB 0F 59 7A 88 66 90 00 EC [08:29:19]RAPDU: 18 6C CB 0F 59 7A 88 66 90 00 [08:29:19]wFMCommunicate OK [08:29:19]SAM_PROTO_SignData done [08:29:19]FM_MakeSignedData done [08:29:19]CreateOFDProtocolMessage [08:29:19]wFMCommunicate request_size=4 [08:29:19]MH_SAM_APDU [08:29:19]CAPDU: 80 11 00 00 [08:29:19]Write to MH i2c: E2 08 00 23 2F 80 11 00 00 00 00 00 00 CC [08:29:19]Write i2c OK [08:29:19]MH_I2C_Read... [08:29:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:19]Read from MH i2c: E2 [08:29:19]MH_I2C_Read... [08:29:19]Read from MH i2c: E2 17 00 [08:29:19]MH_I2C_Read... [08:29:19]Read from MH i2c: E2 17 00 23 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 23 [08:29:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:29:19]wFMCommunicate OK [08:29:19]CreateOFDProtocolMessage done [08:29:19]OFDSenderStorePacket 227237 [08:29:19]StoreOFDPacket docnum=227237 [08:29:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 34 06 00 01 64 03 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 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 55 00 00 00 F4 03 04 00 62 BF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A5 77 03 00 35 04 06 00 9D AE EE 15 01 01 18 6C CB 0F 59 7A 88 66 [08:29:19]CheckFolder [08:29:19]dirname=/storage/ofd_packets [08:29:19]CheckFolder done [08:29:19]ProducePacketName [08:29:19]name=ofd_packets/00227237 [08:29:19]NVStorageSaveData ofd_packets/00227237 [08:29:19]File name is /storage/ofd_packets/00227237 [08:29:19]Write 294 bytes [08:29:19]NVStorageSaveData done [08:29:19]OFDSenderStorePacket done [08:29:19]KKMCreateOFDPacket done [08:29:19]NVStorageSaveData kkm_last_timestamp [08:29:19]File name is /storage/kkm_last_timestamp [08:29:19]Write 4 bytes [08:29:19]NVStorageSaveData done [08:29:19]ExternCall_PrintAddStr [08:29:19]wPrintStart [08:29:19]Write to MH i2c: 01 00 00 24 2F 53 [08:29:19]Write i2c OK [08:29:19]MH_I2C_Read... [08:29:19]Read from MH i2c: 01 [08:29:19]MH_I2C_Read... [08:29:19]Read from MH i2c: 01 07 00 [08:29:19]MH_I2C_Read... [08:29:19]Read from MH i2c: 01 07 00 24 2F 00 00 00 00 00 FF 0F 68 [08:29:19]RasterBufferAndPrint [08:29:19]line Счет N : (1)1962695 [08:29:19]line ИНН: 02508201610067 [08:29:19]line Контрольно-Кассовый Чек [08:29:19]line ПРОДАЖА [08:29:19]line ТРК (МРК, ГНК) : 42 [08:29:19]line Товар: 2710124130 [08:29:19]line SU-92 [08:29:19]line 10.240 * 68.40 [08:29:19]line = 700.42 [08:29:19]line НДС 12% НСП 1% [08:29:19]line > о реализуемом товаре [08:29:19]line ОКРУГЛЕНИЕ: -0.42 [08:29:19]line ИТОГО: 700.00 [08:29:19]line Внесено: 700.00 [08:29:19]line СДАЧА: 0.00 [08:29:19]line НСП 1% : 6.20 [08:29:19]line НДС 12% : 74.38 [08:29:19]line Наличными: 700.00 [08:29:19]line Безнал.: 0.00 [08:29:19]line Место: АЗС № 133 "Партнер Нефть" [08:29:19]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [08:29:19]line СНО: Общий режим [08:29:19]line Чек 85 20.10.2024 08:29 [08:29:19]line Смена: 533 ФФД: 1.0 [08:29:19]line ЗНМ: 0300000091 [08:29:19]line РНМ: 0000000000091685 [08:29:19]line Версия ККМ: 001 [08:29:19]line ФМ: 0000000000871839 [08:29:19]line ФД: 227237 [08:29:19]line ФПД: 173374644224257 [08:29:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T082922&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227237&fm=173374644224257&tin=02508201610067®Number=0000000000091685&sum=70000 [08:29:20]OFD Sender: Processing packet 227237 [packets to send 38, broken 37] [08:29:20]ProducePacketName [08:29:20]name=ofd_packets/00227237 [08:29:20]OFD Sender: To server: pG, [08:29:20]CommunicateWithHost lk.salyk.kg:30040 [08:29:20]ConnectInit lk.salyk.kg [08:29:20]written 0, free lines is 4095 [08:29:20]Connected sock=10 [08:29:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 34 06 00 01 64 03 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 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 55 00 00 00 F4 03 04 00 62 BF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A5 77 03 00 35 04 06 00 9D AE EE 15 01 01 18 6C CB 0F 59 7A 88 66 [08:29:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 B4 EE 47 00 D2 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 33 39 10 04 04 00 A5 77 03 00 F4 03 04 00 61 6A 14 67 B6 04 01 00 00 4B A0 9D D5 B3 42 92 FF [08:29:20]CommunicateWithHost err = 0 [08:29:20]CheckOFDResponse [08:29:20]1017 (14) - 77093643461234 [08:29:20]1041 (16) - 0000000000871839 [08:29:20]1040 (4) - 227237 [08:29:20]1012 (4) - 20.10.2024 02:26 [08:29:20]1206 (1) - 0 [08:29:20]OFD Sender: Remove packet 227237 [08:29:20]ProducePacketName [08:29:20]name=ofd_packets/00227237 [08:29:20]NVStorageDeleteData [08:29:20]Write to MH i2c: 01 00 00 4E 2F 7D [08:29:20]Write i2c OK [08:29:20]MH_I2C_Read... [08:29:20]Read from MH i2c: 01 [08:29:20]MH_I2C_Read... [08:29:20]Read from MH i2c: 01 07 00 [08:29:20]MH_I2C_Read... [08:29:20]Read from MH i2c: 01 07 00 4E 2F 00 00 00 00 00 0A 0D 9B [08:29:20]RasterBufferAndPrint [08:29:20]line [08:29:20]line [08:29:20]line [08:29:20]line [08:29:20]line [08:29:20]written 0, free lines is 3344 [08:29:20]process_action close_receipt done [08:29:20]requested_data is exist [08:29:20]produce_requested_data [08:29:20]requested_item fm.sn is exist - process it [08:29:20]wFMCommunicate request_size=4 [08:29:20]MH_SAM_APDU [08:29:20]CAPDU: 80 11 00 00 [08:29:20]Write to MH i2c: E2 08 00 55 2F 80 11 00 00 00 00 00 00 FE [08:29:20]Write i2c OK [08:29:20]MH_I2C_Read... [08:29:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:20]Read from MH i2c: E2 [08:29:20]MH_I2C_Read... [08:29:20]Read from MH i2c: E2 17 00 [08:29:20]MH_I2C_Read... [08:29:20]Read from MH i2c: E2 17 00 55 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 55 [08:29:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:29:20]wFMCommunicate OK [08:29:20]requested_item fd.num is exist - process it [08:29:20]SAM_PROTO_GetFieldsCounters [08:29:20]wFMCommunicate request_size=4 [08:29:20]MH_SAM_APDU [08:29:20]CAPDU: 80 13 00 00 [08:29:20]Write to MH i2c: E2 08 00 56 2F 80 13 00 00 00 00 00 00 01 [08:29:20]Write i2c OK [08:29:20]MH_I2C_Read... [08:29:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:29:20]Read from MH i2c: E2 [08:29:20]MH_I2C_Read... [08:29:20]Read from MH i2c: E2 62 00 [08:29:20]MH_I2C_Read... [08:29:20]Read from MH i2c: E2 62 00 56 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A5 77 03 00 0E 04 04 00 15 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 5F [08:29: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A5 77 03 00 0E 04 04 00 15 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 [08:29:20]wFMCommunicate OK [08:29:20]SAM_PROTO_GetFieldsCounters done [08:29:20]requested_item shift.num is exist - process it [08:29:20]requested_item shift.opened is exist - process it [08:29:20]req_shift_opened [08:29:20]FM_GetShiftState [08:29:20]SAM_PROTO_GetShiftState [08:29:20]wFMCommunicate request_size=4 [08:29:20]MH_SAM_APDU [08:29:20]CAPDU: 80 13 01 00 [08:29:20]Write to MH i2c: E2 08 00 57 2F 80 13 01 00 00 00 00 00 03 [08:29:20]Write i2c OK [08:29:20]MH_I2C_Read... [08:29:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:20]Read from MH i2c: E2 [08:29:20]MH_I2C_Read... [08:29:20]Read from MH i2c: E2 0E 00 [08:29:20]MH_I2C_Read... [08:29:20]Read from MH i2c: E2 0E 00 57 2F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 1D [08:29:20]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:29:20]wFMCommunicate OK [08:29:20]SAM_PROTO_GetShiftState done [08:29:20]FM_GetShiftState done [08:29:20]req_shift_opened done [08:29:20]requested_item shift.open_date is exist - process it [08:29:20]req_shift_open_date [08:29:20]req_shift_open_date done [08:29:20]produce_requested_data done [08:29:20]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227237,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [08:29:20]process_action_free close_receipt [08:29:20]json_value_free [08:29:20]json_value_free done [08:29:20]process_json_proto returns [08:29:20]Send response to host [08:29:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227237,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [08:29:20]free response buf [08:29:20]execute_script done [08:29:20]execute_script returns [08:29:20]free content buf [08:29:20]Sock 8.Close socket [08:29:20]Sock 8.Thread stoped [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]accept exits with 9 [08:29:50]New connection [08:29:50]New thread 3066821988 created [08:29:50]Thread 3066965348 joined [08:29:50]Waiting for new connection... [08:29:50] Sock 9.Parse request [08:29:50]Sock 9.Check first char [08:29:50]Sock 9.First char is OK [08:29:50]request: POST /json_proto HTTP/1.0 [08:29:50]Method: POST [08:29:50]URL: /json_proto [08:29:50]Method is POST - this is cgi request [08:29:50]url: /json_proto [08:29:50]query_string will be loaded in cgi processing [08:29:50]execute_cgi json_proto POST (null) [08:29:50]execute_cgi path=json_proto method=POST [08:29:50]POST find Content-Length [08:29:50]Host: 172.17.44.195:8080 [08:29:50]Content-Length: 678 [08:29:50]Content-Type: application/json [08:29:50] [08:29:50]POST finish read [08:29:50]Found Content-Length = 678 [08:29:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962696", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:50]execute_script... [08:29: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)1962696", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:50]POST & json_proto [08:29:50]process_json_proto [08:29:50]json parsed OK: [08:29:50]protocol is kg_v1.0 [08:29:50]action value=close_receipt [08:29:50]process_action close_receipt [08:29:50]cmd_close_receipt [08:29:50]MH_GetDate [08:29:50]Write to MH i2c: F0 00 00 58 2F 76 [08:29:50]Write i2c OK [08:29:50]MH_I2C_Read... [08:29:50]Read from MH i2c: F0 [08:29:50]MH_I2C_Read... [08:29:50]Read from MH i2c: F0 09 00 [08:29:50]MH_I2C_Read... [08:29:50]Read from MH i2c: F0 09 00 58 2F 00 82 BF 14 67 82 C9 CF 66 BB [08:29:50]GetLastDocTimeStamp 1729412962 [08:29:50]current date 1729412994 [08:29:50]FM_GetShiftState [08:29:50]SAM_PROTO_GetShiftState [08:29:50]wFMCommunicate request_size=4 [08:29:50]MH_SAM_APDU [08:29:50]CAPDU: 80 13 01 00 [08:29:50]Write to MH i2c: E2 08 00 59 2F 80 13 01 00 00 00 00 00 05 [08:29:50]Write i2c OK [08:29:50]MH_I2C_Read... [08:29:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:50]Read from MH i2c: E2 [08:29:50]MH_I2C_Read... [08:29:50]Read from MH i2c: E2 0E 00 [08:29:50]MH_I2C_Read... [08:29:50]Read from MH i2c: E2 0E 00 59 2F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 1F [08:29:50]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:29:50]wFMCommunicate OK [08:29:50]SAM_PROTO_GetShiftState done [08:29:50]FM_GetShiftState done [08:29:50]opened in 1729383750 [08:29:50]opened+sec_in_day 1729470150 [08:29:50]quantity*price = 40006 [08:29:50]sum+1 = 40007 [08:29:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 86 20.10.2024 08:29 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227238 ФПД: 12685959103419 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T082954&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227238&fm=12685959103419&tin=02508201610067®Number=0000000000091685&sum=40000 [08:29:51]StoreToDocumentArchive [08:29:51]shift 533 fd 227238 [08:29:51]save to /storage/0533/doc_00227238 [08:29:51]save last doc name /storage/0533/doc_00227238 to /storage/kkm_last_doc_name [08:29:51]save OK [08:29:51]Clear old archive folders... [08:29:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:29:51]tlvbuf is 005128A0 [08:29:51]SAM_PROTO_ClearQueue [08:29:51]wFMCommunicate request_size=4 [08:29:51]MH_SAM_APDU [08:29:51]CAPDU: 80 09 00 00 [08:29:51]Write to MH i2c: E2 08 00 66 2F 80 09 00 00 00 00 00 00 07 [08:29:51]Write i2c OK [08:29:51]MH_I2C_Read... [08:29:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:29:51]Read from MH i2c: E2 [08:29:51]MH_I2C_Read... [08:29:51]Read from MH i2c: E2 03 00 [08:29:51]MH_I2C_Read... [08:29:51]Read from MH i2c: E2 03 00 66 2F 00 90 00 09 [08:29:51]RAPDU: 90 00 [08:29:51]wFMCommunicate OK [08:29:51]SAM_PROTO_ClearQueue done [08:29:51]KKMCreateOFDPacket [08:29:51]OFDProtocolAddRootSTLVToBuf [08:29:51]FM_MakeSignedData [08:29:51]FM_MakeSignedData [08:29:51]SAM_PROTO_SignData [08:29:51]wFMCommunicate request_size=4 [08:29:51]MH_SAM_APDU [08:29:51]CAPDU: 80 0D 01 02 [08:29:51]Write to MH i2c: E2 08 00 67 2F 80 0D 01 02 00 00 00 00 0F [08:29:51]Write i2c OK [08:29:51]MH_I2C_Read... [08:29:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:29:51]Read from MH i2c: E2 [08:29:51]MH_I2C_Read... [08:29:51]Read from MH i2c: E2 03 00 [08:29:51]MH_I2C_Read... [08:29:51]Read from MH i2c: E2 03 00 67 2F 00 90 00 0A [08:29:51]RAPDU: 90 00 [08:29:51]wFMCommunicate OK [08:29:51]wFMCommunicate request_size=255 [08:29:51]MH_SAM_APDU [08:29:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 82 BF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A6 77 03 00 35 04 06 00 0B [08:29:51]Write to MH i2c: E2 02 01 68 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 82 BF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A6 77 03 00 35 04 06 00 0B 00 00 C9 [08:29:51]Write i2c OK [08:29:51]MH_I2C_Read... [08:29:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:29:52]Read from MH i2c: E2 [08:29:52]MH_I2C_Read... [08:29:52]Read from MH i2c: E2 03 00 [08:29:52]MH_I2C_Read... [08:29:52]Read from MH i2c: E2 03 00 68 2F 00 90 00 0B [08:29:52]RAPDU: 90 00 [08:29:52]wFMCommunicate OK [08:29:52]wFMCommunicate request_size=10 [08:29:52]MH_SAM_APDU [08:29:52]CAPDU: 80 0D 02 02 05 89 AE 16 03 BB [08:29:52]Write to MH i2c: E2 0D 00 69 2F 80 0D 02 02 05 00 89 AE 16 03 BB 00 00 27 [08:29:52]Write i2c OK [08:29:52]MH_I2C_Read... [08:29:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:29:52]Read from MH i2c: E2 [08:29:52]MH_I2C_Read... [08:29:52]Read from MH i2c: E2 03 00 [08:29:52]MH_I2C_Read... [08:29:52]Read from MH i2c: E2 03 00 69 2F 00 90 00 0C [08:29:52]RAPDU: 90 00 [08:29:52]wFMCommunicate OK [08:29:52]wFMCommunicate request_size=4 [08:29:52]MH_SAM_APDU [08:29:52]CAPDU: 80 0D 03 02 [08:29:52]Write to MH i2c: E2 08 00 6A 2F 80 0D 03 02 00 00 00 00 14 [08:29:52]Write i2c OK [08:29:52]MH_I2C_Read... [08:29:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:29:52]Read from MH i2c: E2 [08:29:52]MH_I2C_Read... [08:29:52]Read from MH i2c: E2 0B 00 [08:29:52]MH_I2C_Read... [08:29:52]Read from MH i2c: E2 0B 00 6A 2F 00 CB 89 0B 39 C3 CE 2A 40 90 00 A8 [08:29:52]RAPDU: CB 89 0B 39 C3 CE 2A 40 90 00 [08:29:52]wFMCommunicate OK [08:29:52]SAM_PROTO_SignData done [08:29:52]FM_MakeSignedData done [08:29:52]CreateOFDProtocolMessage [08:29:52]wFMCommunicate request_size=4 [08:29:52]MH_SAM_APDU [08:29:52]CAPDU: 80 11 00 00 [08:29:52]Write to MH i2c: E2 08 00 6B 2F 80 11 00 00 00 00 00 00 14 [08:29:52]Write i2c OK [08:29:52]MH_I2C_Read... [08:29:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:52]Read from MH i2c: E2 [08:29:52]MH_I2C_Read... [08:29:52]Read from MH i2c: E2 17 00 [08:29:52]MH_I2C_Read... [08:29:52]Read from MH i2c: E2 17 00 6B 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 6B [08:29:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:29:52]wFMCommunicate OK [08:29:52]CreateOFDProtocolMessage done [08:29:52]OFDSenderStorePacket 227238 [08:29:52]StoreOFDPacket docnum=227238 [08:29:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 3C D2 07 01 7A CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 82 BF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A6 77 03 00 35 04 06 00 0B 89 AE 16 03 BB CB 89 0B 39 C3 CE 2A 40 [08:29:52]CheckFolder [08:29:52]dirname=/storage/ofd_packets [08:29:52]CheckFolder done [08:29:52]ProducePacketName [08:29:52]name=ofd_packets/00227238 [08:29:52]NVStorageSaveData ofd_packets/00227238 [08:29:52]File name is /storage/ofd_packets/00227238 [08:29:52]Write 301 bytes [08:29:52]NVStorageSaveData done [08:29:52]OFDSenderStorePacket done [08:29:52]KKMCreateOFDPacket done [08:29:52]NVStorageSaveData kkm_last_timestamp [08:29:52]File name is /storage/kkm_last_timestamp [08:29:52]Write 4 bytes [08:29:52]NVStorageSaveData done [08:29:52]ExternCall_PrintAddStr [08:29:52]wPrintStart [08:29:52]Write to MH i2c: 01 00 00 6C 2F 9B [08:29:52]Write i2c OK [08:29:52]MH_I2C_Read... [08:29:52]Read from MH i2c: 01 [08:29:52]MH_I2C_Read... [08:29:52]Read from MH i2c: 01 07 00 [08:29:52]MH_I2C_Read... [08:29:52]Read from MH i2c: 01 07 00 6C 2F 00 00 00 00 00 FF 0F B0 [08:29:52]RasterBufferAndPrint [08:29:52]line Счет N : (1)1962696 [08:29:52]line ИНН: 02508201610067 [08:29:52]line Контрольно-Кассовый Чек [08:29:52]line ПРОДАЖА [08:29:52]line ТРК (МРК, ГНК) : 53 [08:29:52]line Товар: 2710124130 [08:29:52]line Аи-92-К-5 [08:29:52]line 5.980 * 66.90 [08:29:52]line = 400.06 [08:29:52]line НДС 12% НСП 1% [08:29:52]line > о реализуемом товаре [08:29:52]line ОКРУГЛЕНИЕ: -0.06 [08:29:52]line ИТОГО: 400.00 [08:29:52]line Внесено: 400.00 [08:29:52]line СДАЧА: 0.00 [08:29:52]line НСП 1% : 3.54 [08:29:52]line НДС 12% : 42.48 [08:29:52]line Наличными: 400.00 [08:29:52]line Безнал.: 0.00 [08:29:52]line Место: АЗС № 133 "Партнер Нефть" [08:29:52]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [08:29:52]line СНО: Общий режим [08:29:52]line Чек 86 20.10.2024 08:29 [08:29:52]line Смена: 533 ФФД: 1.0 [08:29:52]line ЗНМ: 0300000091 [08:29:52]line РНМ: 0000000000091685 [08:29:52]line Версия ККМ: 001 [08:29:52]line ФМ: 0000000000871839 [08:29:52]line ФД: 227238 [08:29:52]line ФПД: 12685959103419 [08:29:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T082954&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227238&fm=12685959103419&tin=02508201610067®Number=0000000000091685&sum=40000 [08:29:52]written 0, free lines is 4095 [08:29:52]OFD Sender: Processing packet 227238 [packets to send 38, broken 37] [08:29:52]ProducePacketName [08:29:52]name=ofd_packets/00227238 [08:29:52]OFD Sender: To server: pG, [08:29:52]CommunicateWithHost lk.salyk.kg:30040 [08:29:52]ConnectInit lk.salyk.kg [08:29:52]Connected sock=10 [08:29: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 33 39 0F 01 00 00 3C D2 07 01 7A CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 82 BF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A6 77 03 00 35 04 06 00 0B 89 AE 16 03 BB CB 89 0B 39 C3 CE 2A 40 [08:29: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 33 39 4F 00 00 00 B1 2E 47 00 AD 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A6 77 03 00 F4 03 04 00 82 6A 14 67 B6 04 01 00 00 D9 66 E3 77 68 FF 3A C9 [08:29:53]CommunicateWithHost err = 0 [08:29:53]CheckOFDResponse [08:29:53]1017 (14) - 77093643461234 [08:29:53]1041 (16) - 0000000000871839 [08:29:53]1040 (4) - 227238 [08:29:53]1012 (4) - 20.10.2024 02:27 [08:29:53]1206 (1) - 0 [08:29:53]OFD Sender: Remove packet 227238 [08:29:53]ProducePacketName [08:29:53]name=ofd_packets/00227238 [08:29:53]NVStorageDeleteData [08:29:53]Write to MH i2c: 01 00 00 96 2F C5 [08:29:53]Write i2c OK [08:29:53]MH_I2C_Read... [08:29:53]Read from MH i2c: 01 [08:29:53]MH_I2C_Read... [08:29:53]Read from MH i2c: 01 07 00 [08:29:53]MH_I2C_Read... [08:29:53]Read from MH i2c: 01 07 00 96 2F 00 00 00 00 00 0A 0D E3 [08:29:53]RasterBufferAndPrint [08:29:53]line [08:29:53]line [08:29:53]line [08:29:53]line [08:29:53]line [08:29:53]written 0, free lines is 3344 [08:29:53]process_action close_receipt done [08:29:53]requested_data is exist [08:29:53]produce_requested_data [08:29:53]requested_item fm.sn is exist - process it [08:29:53]wFMCommunicate request_size=4 [08:29:53]MH_SAM_APDU [08:29:53]CAPDU: 80 11 00 00 [08:29:53]Write to MH i2c: E2 08 00 9D 2F 80 11 00 00 00 00 00 00 46 [08:29:53]Write i2c OK [08:29:53]MH_I2C_Read... [08:29:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:53]Read from MH i2c: E2 [08:29:53]MH_I2C_Read... [08:29:53]Read from MH i2c: E2 17 00 [08:29:53]MH_I2C_Read... [08:29:53]Read from MH i2c: E2 17 00 9D 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 9D [08:29:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:29:53]wFMCommunicate OK [08:29:53]requested_item fd.num is exist - process it [08:29:53]SAM_PROTO_GetFieldsCounters [08:29:53]wFMCommunicate request_size=4 [08:29:53]MH_SAM_APDU [08:29:53]CAPDU: 80 13 00 00 [08:29:53]Write to MH i2c: E2 08 00 9E 2F 80 13 00 00 00 00 00 00 49 [08:29:53]Write i2c OK [08:29:53]MH_I2C_Read... [08:29:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:29:53]Read from MH i2c: E2 [08:29:53]MH_I2C_Read... [08:29:53]Read from MH i2c: E2 62 00 [08:29:53]MH_I2C_Read... [08:29:53]Read from MH i2c: E2 62 00 9E 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A6 77 03 00 0E 04 04 00 15 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 AB [08:29: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A6 77 03 00 0E 04 04 00 15 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 [08:29:53]wFMCommunicate OK [08:29:53]SAM_PROTO_GetFieldsCounters done [08:29:53]requested_item shift.num is exist - process it [08:29:53]requested_item shift.opened is exist - process it [08:29:53]req_shift_opened [08:29:53]FM_GetShiftState [08:29:53]SAM_PROTO_GetShiftState [08:29:53]wFMCommunicate request_size=4 [08:29:53]MH_SAM_APDU [08:29:53]CAPDU: 80 13 01 00 [08:29:53]Write to MH i2c: E2 08 00 9F 2F 80 13 01 00 00 00 00 00 4B [08:29:53]Write i2c OK [08:29:53]MH_I2C_Read... [08:29:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:53]Read from MH i2c: E2 [08:29:53]MH_I2C_Read... [08:29:53]Read from MH i2c: E2 0E 00 [08:29:53]MH_I2C_Read... [08:29:53]Read from MH i2c: E2 0E 00 9F 2F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 65 [08:29:53]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:29:53]wFMCommunicate OK [08:29:53]SAM_PROTO_GetShiftState done [08:29:53]FM_GetShiftState done [08:29:53]req_shift_opened done [08:29:53]requested_item shift.open_date is exist - process it [08:29:53]req_shift_open_date [08:29:53]req_shift_open_date done [08:29:53]produce_requested_data done [08:29:53]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227238,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [08:29:53]process_action_free close_receipt [08:29:53]json_value_free [08:29:53]json_value_free done [08:29:53]process_json_proto returns [08:29:53]Send response to host [08:29:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227238,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [08:29:53]free response buf [08:29:53]execute_script done [08:29:53]execute_script returns [08:29:53]free content buf [08:29:53]Sock 9.Close socket [08:29:53]Sock 9.Thread stoped [08:29:53]OFD Sender: No OFD packet to send [08:29:58]OFD Sender: No OFD packet to send [08:30:03]OFD Sender: No OFD packet to send [08:30:08]OFD Sender: No OFD packet to send [08:30:13]OFD Sender: No OFD packet to send [08:30:18]OFD Sender: No OFD packet to send [08:30:23]OFD Sender: No OFD packet to send [08:30:28]OFD Sender: No OFD packet to send [08:30:33]OFD Sender: No OFD packet to send [08:30:38]OFD Sender: No OFD packet to send [08:30:43]OFD Sender: No OFD packet to send [08:30:47]accept exits with 8 [08:30:47]New connection [08:30:47]New thread 3066965348 created [08:30:47]Thread 3066821988 joined [08:30:47]Waiting for new connection... [08:30:47] Sock 8.Parse request [08:30:47]Sock 8.Check first char [08:30:47]Sock 8.First char is OK [08:30:47]request: POST /json_proto HTTP/1.0 [08:30:47]Method: POST [08:30:47]URL: /json_proto [08:30:47]Method is POST - this is cgi request [08:30:47]url: /json_proto [08:30:47]query_string will be loaded in cgi processing [08:30:47]execute_cgi json_proto POST (null) [08:30:47]execute_cgi path=json_proto method=POST [08:30:47]POST find Content-Length [08:30:47]Host: 172.17.44.195:8080 [08:30:47]Content-Length: 767 [08:30:47]Content-Type: application/json [08:30:47] [08:30:47]POST finish read [08:30:47]Found Content-Length = 767 [08:30:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962697", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:30:47]execute_script... [08:30: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)1962697", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:30:47]POST & json_proto [08:30:47]process_json_proto [08:30:47]json parsed OK: [08:30:47]protocol is kg_v1.0 [08:30:47]action value=close_receipt [08:30:47]process_action close_receipt [08:30:47]cmd_close_receipt [08:30:47]MH_GetDate [08:30:47]Write to MH i2c: F0 00 00 A0 2F BE [08:30:47]Write i2c OK [08:30:47]MH_I2C_Read... [08:30:47]Read from MH i2c: F0 [08:30:47]MH_I2C_Read... [08:30:47]Read from MH i2c: F0 09 00 [08:30:47]MH_I2C_Read... [08:30:47]Read from MH i2c: F0 09 00 A0 2F 00 BB BF 14 67 82 C9 CF 66 3C [08:30:47]GetLastDocTimeStamp 1729412994 [08:30:47]current date 1729413051 [08:30:47]FM_GetShiftState [08:30:47]SAM_PROTO_GetShiftState [08:30:47]wFMCommunicate request_size=4 [08:30:47]MH_SAM_APDU [08:30:47]CAPDU: 80 13 01 00 [08:30:47]Write to MH i2c: E2 08 00 A1 2F 80 13 01 00 00 00 00 00 4D [08:30:47]Write i2c OK [08:30:47]MH_I2C_Read... [08:30:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:47]Read from MH i2c: E2 [08:30:47]MH_I2C_Read... [08:30:47]Read from MH i2c: E2 0E 00 [08:30:47]MH_I2C_Read... [08:30:47]Read from MH i2c: E2 0E 00 A1 2F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 67 [08:30:47]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:30:47]wFMCommunicate OK [08:30:47]SAM_PROTO_GetShiftState done [08:30:47]FM_GetShiftState done [08:30:47]opened in 1729383750 [08:30:47]opened+sec_in_day 1729470150 [08:30:47]quantity*price = 50041 [08:30:47]sum+1 = 50042 [08:30:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 87 20.10.2024 08:30 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 227239 ФПД: 257453315851731 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T083051&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227239&fm=257453315851731&tin=02508201610067®Number=0000000000091685&sum=50041 [08:30:48]StoreToDocumentArchive [08:30:48]shift 533 fd 227239 [08:30:48]save to /storage/0533/doc_00227239 [08:30:48]save last doc name /storage/0533/doc_00227239 to /storage/kkm_last_doc_name [08:30:48]save OK [08:30:48]Clear old archive folders... [08:30:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:30:48]tlvbuf is 005955F0 [08:30:48]SAM_PROTO_ClearQueue [08:30:48]wFMCommunicate request_size=4 [08:30:48]MH_SAM_APDU [08:30:48]CAPDU: 80 09 00 00 [08:30:48]Write to MH i2c: E2 08 00 AE 2F 80 09 00 00 00 00 00 00 4F [08:30:48]Write i2c OK [08:30:48]MH_I2C_Read... [08:30:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:30:48]Read from MH i2c: E2 [08:30:48]MH_I2C_Read... [08:30:48]Read from MH i2c: E2 03 00 [08:30:48]MH_I2C_Read... [08:30:48]OFD Sender: No OFD packet to send [08:30:48]Read from MH i2c: E2 03 00 AE 2F 00 90 00 51 [08:30:48]RAPDU: 90 00 [08:30:48]wFMCommunicate OK [08:30:48]SAM_PROTO_ClearQueue done [08:30:48]KKMCreateOFDPacket [08:30:48]OFDProtocolAddRootSTLVToBuf [08:30:48]FM_MakeSignedData [08:30:48]FM_MakeSignedData [08:30:48]SAM_PROTO_SignData [08:30:48]wFMCommunicate request_size=4 [08:30:48]MH_SAM_APDU [08:30:48]CAPDU: 80 0D 01 02 [08:30:48]Write to MH i2c: E2 08 00 AF 2F 80 0D 01 02 00 00 00 00 57 [08:30:48]Write i2c OK [08:30:48]MH_I2C_Read... [08:30:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:30:48]Read from MH i2c: E2 [08:30:48]MH_I2C_Read... [08:30:48]Read from MH i2c: E2 03 00 [08:30:48]MH_I2C_Read... [08:30:48]Read from MH i2c: E2 03 00 AF 2F 00 90 00 52 [08:30:48]RAPDU: 90 00 [08:30:48]wFMCommunicate OK [08:30:48]wFMCommunicate request_size=255 [08:30:48]MH_SAM_APDU [08:30:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 BB BF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A7 77 03 00 35 04 06 00 EA [08:30:48]Write to MH i2c: E2 02 01 B0 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 BB BF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A7 77 03 00 35 04 06 00 EA 00 00 AE [08:30:48]Write i2c OK [08:30:48]MH_I2C_Read... [08:30:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:48]Read from MH i2c: E2 [08:30:48]MH_I2C_Read... [08:30:48]Read from MH i2c: E2 03 00 [08:30:48]MH_I2C_Read... [08:30:48]Read from MH i2c: E2 03 00 B0 2F 00 90 00 53 [08:30:48]RAPDU: 90 00 [08:30:48]wFMCommunicate OK [08:30:48]wFMCommunicate request_size=10 [08:30:48]MH_SAM_APDU [08:30:48]CAPDU: 80 0D 02 02 05 27 05 70 05 D3 [08:30:48]Write to MH i2c: E2 0D 00 B1 2F 80 0D 02 02 05 00 27 05 70 05 D3 00 00 D8 [08:30:48]Write i2c OK [08:30:48]MH_I2C_Read... [08:30:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:49]Read from MH i2c: E2 [08:30:49]MH_I2C_Read... [08:30:49]Read from MH i2c: E2 03 00 [08:30:49]MH_I2C_Read... [08:30:49]Read from MH i2c: E2 03 00 B1 2F 00 90 00 54 [08:30:49]RAPDU: 90 00 [08:30:49]wFMCommunicate OK [08:30:49]wFMCommunicate request_size=4 [08:30:49]MH_SAM_APDU [08:30:49]CAPDU: 80 0D 03 02 [08:30:49]Write to MH i2c: E2 08 00 B2 2F 80 0D 03 02 00 00 00 00 5C [08:30:49]Write i2c OK [08:30:49]MH_I2C_Read... [08:30:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:30:49]Read from MH i2c: E2 [08:30:49]MH_I2C_Read... [08:30:49]Read from MH i2c: E2 0B 00 [08:30:49]MH_I2C_Read... [08:30:49]Read from MH i2c: E2 0B 00 B2 2F 00 72 E5 C1 6A F4 86 A5 53 90 00 51 [08:30:49]RAPDU: 72 E5 C1 6A F4 86 A5 53 90 00 [08:30:49]wFMCommunicate OK [08:30:49]SAM_PROTO_SignData done [08:30:49]FM_MakeSignedData done [08:30:49]CreateOFDProtocolMessage [08:30:49]wFMCommunicate request_size=4 [08:30:49]MH_SAM_APDU [08:30:49]CAPDU: 80 11 00 00 [08:30:49]Write to MH i2c: E2 08 00 B3 2F 80 11 00 00 00 00 00 00 5C [08:30:49]Write i2c OK [08:30:49]MH_I2C_Read... [08:30:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:49]Read from MH i2c: E2 [08:30:49]MH_I2C_Read... [08:30:49]Read from MH i2c: E2 17 00 [08:30:49]MH_I2C_Read... [08:30:49]Read from MH i2c: E2 17 00 B3 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B3 [08:30:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:30:49]wFMCommunicate OK [08:30:49]CreateOFDProtocolMessage done [08:30:49]OFDSenderStorePacket 227239 [08:30:49]StoreOFDPacket docnum=227239 [08:30:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 41 2D 07 01 AF 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 BB BF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A7 77 03 00 35 04 06 00 EA 27 05 70 05 D3 72 E5 C1 6A F4 86 A5 53 [08:30:49]CheckFolder [08:30:49]dirname=/storage/ofd_packets [08:30:49]CheckFolder done [08:30:49]ProducePacketName [08:30:49]name=ofd_packets/00227239 [08:30:49]NVStorageSaveData ofd_packets/00227239 [08:30:49]File name is /storage/ofd_packets/00227239 [08:30:49]Write 301 bytes [08:30:49]NVStorageSaveData done [08:30:49]OFDSenderStorePacket done [08:30:49]KKMCreateOFDPacket done [08:30:49]NVStorageSaveData kkm_last_timestamp [08:30:49]File name is /storage/kkm_last_timestamp [08:30:49]Write 4 bytes [08:30:49]NVStorageSaveData done [08:30:49]ExternCall_PrintAddStr [08:30:49]wPrintStart [08:30:49]Write to MH i2c: 01 00 00 B4 2F E3 [08:30:49]Write i2c OK [08:30:49]MH_I2C_Read... [08:30:49]Read from MH i2c: 01 [08:30:49]MH_I2C_Read... [08:30:49]Read from MH i2c: 01 07 00 [08:30:49]MH_I2C_Read... [08:30:49]Read from MH i2c: 01 07 00 B4 2F 00 00 00 00 00 FF 0F F8 [08:30:49]RasterBufferAndPrint [08:30:49]line Счет N : (1)1962697 [08:30:49]line ИНН: 02508201610067 [08:30:49]line Контрольно-Кассовый Чек [08:30:49]line ПРОДАЖА [08:30:49]line ТРК (МРК, ГНК) : 63 [08:30:49]line Товар: 2710124130 [08:30:49]line Аи-92-К-5 [08:30:49]line 7.480 * 66.90 [08:30:49]line = 500.41 [08:30:49]line НДС 12% НСП 1% [08:30:49]line > о реализуемом товаре [08:30:49]line ИТОГО: 500.41 [08:30:49]line НСП 1% : 4.43 [08:30:49]line НДС 12% : 53.14 [08:30:49]line Наличными: 0.00 [08:30:49]line Безнал.: 500.41 [08:30:49]line Место: АЗС № 133 "Партнер Нефть" [08:30:49]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [08:30:49]line СНО: Общий режим [08:30:49]line Чек 87 20.10.2024 08:30 [08:30:49]line Смена: 533 ФФД: 1.0 [08:30:49]line ЗНМ: 0300000091 [08:30:49]line РНМ: 0000000000091685 [08:30:49]line Версия ККМ: 001 [08:30:49]line Платежная система: Mbank [08:30:49]line ФМ: 0000000000871839 [08:30:49]line ФД: 227239 [08:30:49]line ФПД: 257453315851731 [08:30:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T083051&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227239&fm=257453315851731&tin=02508201610067®Number=0000000000091685&sum=50041 [08:30:49]written 0, free lines is 4095 [08:30:49]OFD Sender: Processing packet 227239 [packets to send 38, broken 37] [08:30:49]ProducePacketName [08:30:49]name=ofd_packets/00227239 [08:30:49]OFD Sender: To server: pG, [08:30:49]CommunicateWithHost lk.salyk.kg:30040 [08:30:49]ConnectInit lk.salyk.kg [08:30:49]Connected sock=10 [08:30: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 33 39 0F 01 00 00 41 2D 07 01 AF 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 BB BF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A7 77 03 00 35 04 06 00 EA 27 05 70 05 D3 72 E5 C1 6A F4 86 A5 53 [08:30: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 33 39 4F 00 00 00 93 14 47 00 39 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 33 39 10 04 04 00 A7 77 03 00 F4 03 04 00 BA 6A 14 67 B6 04 01 00 00 19 4A F0 5D B0 DE 6F 91 [08:30:49]CommunicateWithHost err = 0 [08:30:49]CheckOFDResponse [08:30:49]1017 (14) - 77093643461234 [08:30:49]1041 (16) - 0000000000871839 [08:30:49]1040 (4) - 227239 [08:30:49]1012 (4) - 20.10.2024 02:28 [08:30:49]1206 (1) - 0 [08:30:49]OFD Sender: Remove packet 227239 [08:30:49]ProducePacketName [08:30:49]name=ofd_packets/00227239 [08:30:49]NVStorageDeleteData [08:30:49]Write to MH i2c: 01 00 00 DC 2F 0B [08:30:49]Write i2c OK [08:30:49]MH_I2C_Read... [08:30:49]Read from MH i2c: 01 [08:30:49]MH_I2C_Read... [08:30:49]Read from MH i2c: 01 07 00 [08:30:49]MH_I2C_Read... [08:30:49]Read from MH i2c: 01 07 00 DC 2F 00 00 00 00 00 35 0D 54 [08:30:49]RasterBufferAndPrint [08:30:49]line [08:30:49]line [08:30:49]line [08:30:49]line [08:30:49]line [08:30:49]written 0, free lines is 3389 [08:30:49]process_action close_receipt done [08:30:49]requested_data is exist [08:30:49]produce_requested_data [08:30:49]requested_item fm.sn is exist - process it [08:30:49]wFMCommunicate request_size=4 [08:30:49]MH_SAM_APDU [08:30:49]CAPDU: 80 11 00 00 [08:30:49]Write to MH i2c: E2 08 00 E3 2F 80 11 00 00 00 00 00 00 8C [08:30:49]Write i2c OK [08:30:49]MH_I2C_Read... [08:30:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:49]Read from MH i2c: E2 [08:30:49]MH_I2C_Read... [08:30:49]Read from MH i2c: E2 17 00 [08:30:49]MH_I2C_Read... [08:30:49]Read from MH i2c: E2 17 00 E3 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E3 [08:30:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:30:49]wFMCommunicate OK [08:30:49]requested_item fd.num is exist - process it [08:30:49]SAM_PROTO_GetFieldsCounters [08:30:49]wFMCommunicate request_size=4 [08:30:49]MH_SAM_APDU [08:30:49]CAPDU: 80 13 00 00 [08:30:49]Write to MH i2c: E2 08 00 E4 2F 80 13 00 00 00 00 00 00 8F [08:30:49]Write i2c OK [08:30:49]MH_I2C_Read... [08:30:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:30:49]Read from MH i2c: E2 [08:30:49]MH_I2C_Read... [08:30:49]Read from MH i2c: E2 62 00 [08:30:49]MH_I2C_Read... [08:30:49]Read from MH i2c: E2 62 00 E4 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A7 77 03 00 0E 04 04 00 15 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 F5 [08:30: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A7 77 03 00 0E 04 04 00 15 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 [08:30:49]wFMCommunicate OK [08:30:49]SAM_PROTO_GetFieldsCounters done [08:30:49]requested_item shift.num is exist - process it [08:30:49]requested_item shift.opened is exist - process it [08:30:49]req_shift_opened [08:30:49]FM_GetShiftState [08:30:49]SAM_PROTO_GetShiftState [08:30:49]wFMCommunicate request_size=4 [08:30:49]MH_SAM_APDU [08:30:49]CAPDU: 80 13 01 00 [08:30:49]Write to MH i2c: E2 08 00 E5 2F 80 13 01 00 00 00 00 00 91 [08:30:49]Write i2c OK [08:30:49]MH_I2C_Read... [08:30:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:49]Read from MH i2c: E2 [08:30:49]MH_I2C_Read... [08:30:49]Read from MH i2c: E2 0E 00 [08:30:49]MH_I2C_Read... [08:30:49]Read from MH i2c: E2 0E 00 E5 2F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 AB [08:30:49]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:30:49]wFMCommunicate OK [08:30:49]SAM_PROTO_GetShiftState done [08:30:49]FM_GetShiftState done [08:30:49]req_shift_opened done [08:30:49]requested_item shift.open_date is exist - process it [08:30:49]req_shift_open_date [08:30:49]req_shift_open_date done [08:30:49]produce_requested_data done [08:30:49]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227239,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [08:30:49]process_action_free close_receipt [08:30:49]json_value_free [08:30:49]json_value_free done [08:30:49]process_json_proto returns [08:30:49]Send response to host [08:30:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227239,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [08:30:49]free response buf [08:30:49]execute_script done [08:30:49]execute_script returns [08:30:49]free content buf [08:30:49]Sock 8.Close socket [08:30:49]Sock 8.Thread stoped [08:30:49]OFD Sender: No OFD packet to send [08:30:54]OFD Sender: No OFD packet to send [08:30:59]OFD Sender: No OFD packet to send [08:31:04]OFD Sender: No OFD packet to send [08:31:09]OFD Sender: No OFD packet to send [08:31:14]OFD Sender: No OFD packet to send [08:31:19]OFD Sender: No OFD packet to send [08:31:24]OFD Sender: No OFD packet to send [08:31:29]OFD Sender: No OFD packet to send [08:31:34]OFD Sender: No OFD packet to send [08:31:39]OFD Sender: No OFD packet to send [08:31:44]OFD Sender: No OFD packet to send [08:31:49]OFD Sender: No OFD packet to send [08:31:55]OFD Sender: No OFD packet to send [08:32:00]OFD Sender: No OFD packet to send [08:32:05]OFD Sender: No OFD packet to send [08:32:10]OFD Sender: No OFD packet to send [08:32:15]OFD Sender: No OFD packet to send [08:32:20]OFD Sender: No OFD packet to send [08:32:25]OFD Sender: No OFD packet to send [08:32:30]OFD Sender: No OFD packet to send [08:32:35]OFD Sender: No OFD packet to send [08:32:40]OFD Sender: No OFD packet to send [08:32:45]OFD Sender: No OFD packet to send [08:32:50]OFD Sender: No OFD packet to send [08:32:55]OFD Sender: No OFD packet to send [08:33:00]OFD Sender: No OFD packet to send [08:33:05]OFD Sender: No OFD packet to send [08:33:10]OFD Sender: No OFD packet to send [08:33:11]accept exits with 9 [08:33:11]New connection [08:33:11]New thread 3066821988 created [08:33:11]Thread 3066965348 joined [08:33:11]Waiting for new connection... [08:33:11] Sock 9.Parse request [08:33:11]Sock 9.Check first char [08:33:11]Sock 9.First char is OK [08:33:11]request: POST /json_proto HTTP/1.0 [08:33:11]Method: POST [08:33:11]URL: /json_proto [08:33:11]Method is POST - this is cgi request [08:33:11]url: /json_proto [08:33:11]query_string will be loaded in cgi processing [08:33:11]execute_cgi json_proto POST (null) [08:33:11]execute_cgi path=json_proto method=POST [08:33:11]POST find Content-Length [08:33:11]Host: 172.17.44.195:8080 [08:33:11]Content-Length: 770 [08:33:11]Content-Type: application/json [08:33:11] [08:33:11]POST finish read [08:33:11]Found Content-Length = 770 [08:33:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962698", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:33:11]execute_script... [08:33: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)1962698", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:33:11]POST & json_proto [08:33:11]process_json_proto [08:33:11]json parsed OK: [08:33:11]protocol is kg_v1.0 [08:33:11]action value=close_receipt [08:33:11]process_action close_receipt [08:33:11]cmd_close_receipt [08:33:11]MH_GetDate [08:33:11]Write to MH i2c: F0 00 00 E6 2F 04 [08:33:11]Write i2c OK [08:33:11]MH_I2C_Read... [08:33:11]Read from MH i2c: F0 [08:33:11]MH_I2C_Read... [08:33:11]Read from MH i2c: F0 09 00 [08:33:11]MH_I2C_Read... [08:33:11]Read from MH i2c: F0 09 00 E6 2F 00 4B C0 14 67 82 C9 CF 66 13 [08:33:11]GetLastDocTimeStamp 1729413051 [08:33:11]current date 1729413195 [08:33:11]FM_GetShiftState [08:33:11]SAM_PROTO_GetShiftState [08:33:11]wFMCommunicate request_size=4 [08:33:11]MH_SAM_APDU [08:33:11]CAPDU: 80 13 01 00 [08:33:11]Write to MH i2c: E2 08 00 E7 2F 80 13 01 00 00 00 00 00 93 [08:33:11]Write i2c OK [08:33:11]MH_I2C_Read... [08:33:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:11]Read from MH i2c: E2 [08:33:11]MH_I2C_Read... [08:33:11]Read from MH i2c: E2 0E 00 [08:33:11]MH_I2C_Read... [08:33:11]Read from MH i2c: E2 0E 00 E7 2F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 AD [08:33:11]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:33:11]wFMCommunicate OK [08:33:11]SAM_PROTO_GetShiftState done [08:33:11]FM_GetShiftState done [08:33:11]opened in 1729383750 [08:33:11]opened+sec_in_day 1729470150 [08:33:11]quantity*price = 100015 [08:33:11]sum+1 = 100017 [08:33:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 88 20.10.2024 08:33 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 227240 ФПД: 168148213921175 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T083315&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227240&fm=168148213921175&tin=02508201610067®Number=0000000000091685&sum=100016 [08:33:12]StoreToDocumentArchive [08:33:12]shift 533 fd 227240 [08:33:12]save to /storage/0533/doc_00227240 [08:33:12]save last doc name /storage/0533/doc_00227240 to /storage/kkm_last_doc_name [08:33:12]save OK [08:33:12]Clear old archive folders... [08:33:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:33:12]tlvbuf is B6F584C0 [08:33:12]SAM_PROTO_ClearQueue [08:33:12]wFMCommunicate request_size=4 [08:33:12]MH_SAM_APDU [08:33:12]CAPDU: 80 09 00 00 [08:33:12]Write to MH i2c: E2 08 00 F4 2F 80 09 00 00 00 00 00 00 95 [08:33:12]Write i2c OK [08:33:12]MH_I2C_Read... [08:33:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:33:12]Read from MH i2c: E2 [08:33:12]MH_I2C_Read... [08:33:12]Read from MH i2c: E2 03 00 [08:33:12]MH_I2C_Read... [08:33:12]Read from MH i2c: E2 03 00 F4 2F 00 90 00 97 [08:33:12]RAPDU: 90 00 [08:33:12]wFMCommunicate OK [08:33:12]SAM_PROTO_ClearQueue done [08:33:12]KKMCreateOFDPacket [08:33:12]OFDProtocolAddRootSTLVToBuf [08:33:12]FM_MakeSignedData [08:33:12]FM_MakeSignedData [08:33:12]SAM_PROTO_SignData [08:33:12]wFMCommunicate request_size=4 [08:33:12]MH_SAM_APDU [08:33:12]CAPDU: 80 0D 01 02 [08:33:12]Write to MH i2c: E2 08 00 F5 2F 80 0D 01 02 00 00 00 00 9D [08:33:12]Write i2c OK [08:33:12]MH_I2C_Read... [08:33:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:33:12]Read from MH i2c: E2 [08:33:12]MH_I2C_Read... [08:33:12]Read from MH i2c: E2 03 00 [08:33:12]MH_I2C_Read... [08:33:12]Read from MH i2c: E2 03 00 F5 2F 00 90 00 98 [08:33:12]RAPDU: 90 00 [08:33:12]wFMCommunicate OK [08:33:12]wFMCommunicate request_size=255 [08:33:12]MH_SAM_APDU [08:33:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 4B C0 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A8 77 03 00 35 04 06 00 98 [08:33:12]Write to MH i2c: E2 02 01 F6 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 4B C0 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A8 77 03 00 35 04 06 00 98 00 00 FD [08:33:12]Write i2c OK [08:33:12]MH_I2C_Read... [08:33:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:33:12]Read from MH i2c: E2 [08:33:12]MH_I2C_Read... [08:33:12]Read from MH i2c: E2 03 00 [08:33:12]MH_I2C_Read... [08:33:12]Read from MH i2c: E2 03 00 F6 2F 00 90 00 99 [08:33:12]RAPDU: 90 00 [08:33:12]wFMCommunicate OK [08:33:12]wFMCommunicate request_size=10 [08:33:12]MH_SAM_APDU [08:33:12]CAPDU: 80 0D 02 02 05 EE 0E 8F 75 97 [08:33:12]Write to MH i2c: E2 0D 00 F7 2F 80 0D 02 02 05 00 EE 0E 8F 75 97 00 00 41 [08:33:12]Write i2c OK [08:33:12]MH_I2C_Read... [08:33:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:33:12]Read from MH i2c: E2 [08:33:12]MH_I2C_Read... [08:33:12]Read from MH i2c: E2 03 00 [08:33:12]MH_I2C_Read... [08:33:12]Read from MH i2c: E2 03 00 F7 2F 00 90 00 9A [08:33:12]RAPDU: 90 00 [08:33:12]wFMCommunicate OK [08:33:12]wFMCommunicate request_size=4 [08:33:12]MH_SAM_APDU [08:33:12]CAPDU: 80 0D 03 02 [08:33:12]Write to MH i2c: E2 08 00 F8 2F 80 0D 03 02 00 00 00 00 A2 [08:33:12]Write i2c OK [08:33:12]MH_I2C_Read... [08:33:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:33:12]Read from MH i2c: E2 [08:33:12]MH_I2C_Read... [08:33:12]Read from MH i2c: E2 0B 00 [08:33:12]MH_I2C_Read... [08:33:12]Read from MH i2c: E2 0B 00 F8 2F 00 B7 42 34 B7 06 75 5A F0 90 00 4C [08:33:12]RAPDU: B7 42 34 B7 06 75 5A F0 90 00 [08:33:12]wFMCommunicate OK [08:33:12]SAM_PROTO_SignData done [08:33:12]FM_MakeSignedData done [08:33:12]CreateOFDProtocolMessage [08:33:12]wFMCommunicate request_size=4 [08:33:12]MH_SAM_APDU [08:33:12]CAPDU: 80 11 00 00 [08:33:12]Write to MH i2c: E2 08 00 F9 2F 80 11 00 00 00 00 00 00 A2 [08:33:12]Write i2c OK [08:33:12]MH_I2C_Read... [08:33:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:13]Read from MH i2c: E2 [08:33:13]MH_I2C_Read... [08:33:13]Read from MH i2c: E2 17 00 [08:33:13]MH_I2C_Read... [08:33:13]Read from MH i2c: E2 17 00 F9 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F9 [08:33:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:33:13]wFMCommunicate OK [08:33:13]CreateOFDProtocolMessage done [08:33:13]OFDSenderStorePacket 227240 [08:33:13]StoreOFDPacket docnum=227240 [08:33:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 89 9D 07 01 9E 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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 4B C0 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A8 77 03 00 35 04 06 00 98 EE 0E 8F 75 97 B7 42 34 B7 06 75 5A F0 [08:33:13]CheckFolder [08:33:13]dirname=/storage/ofd_packets [08:33:13]CheckFolder done [08:33:13]ProducePacketName [08:33:13]name=ofd_packets/00227240 [08:33:13]NVStorageSaveData ofd_packets/00227240 [08:33:13]File name is /storage/ofd_packets/00227240 [08:33:13]Write 301 bytes [08:33:13]NVStorageSaveData done [08:33:13]OFDSenderStorePacket done [08:33:13]KKMCreateOFDPacket done [08:33:13]NVStorageSaveData kkm_last_timestamp [08:33:13]File name is /storage/kkm_last_timestamp [08:33:13]Write 4 bytes [08:33:13]NVStorageSaveData done [08:33:13]ExternCall_PrintAddStr [08:33:13]wPrintStart [08:33:13]Write to MH i2c: 01 00 00 FA 2F 29 [08:33:13]Write i2c OK [08:33:13]MH_I2C_Read... [08:33:13]Read from MH i2c: 01 [08:33:13]MH_I2C_Read... [08:33:13]Read from MH i2c: 01 07 00 [08:33:13]MH_I2C_Read... [08:33:13]Read from MH i2c: 01 07 00 FA 2F 00 00 00 00 00 FF 0F 3E [08:33:13]RasterBufferAndPrint [08:33:13]line Счет N : (1)1962698 [08:33:13]line ИНН: 02508201610067 [08:33:13]line Контрольно-Кассовый Чек [08:33:13]line ПРОДАЖА [08:33:13]line ТРК (МРК, ГНК) : 43 [08:33:13]line Товар: 2710124130 [08:33:13]line Аи-92-К-5 [08:33:13]line 14.950 * 66.90 [08:33:13]line = 1000.16 [08:33:13]line НДС 12% НСП 1% [08:33:13]line > о реализуемом товаре [08:33:13]line ИТОГО: 1000.16 [08:33:13]line НСП 1% : 8.85 [08:33:13]line НДС 12% : 106.21 [08:33:13]line Наличными: 0.00 [08:33:13]line Безнал.: 1000.16 [08:33:13]line Место: АЗС № 133 "Партнер Нефть" [08:33:13]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [08:33:13]line СНО: Общий режим [08:33:13]line Чек 88 20.10.2024 08:33 [08:33:13]line Смена: 533 ФФД: 1.0 [08:33:13]line ЗНМ: 0300000091 [08:33:13]line РНМ: 0000000000091685 [08:33:13]line Версия ККМ: 001 [08:33:13]line Платежная система: Mbank [08:33:13]line ФМ: 0000000000871839 [08:33:13]line ФД: 227240 [08:33:13]line ФПД: 168148213921175 [08:33:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T083315&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227240&fm=168148213921175&tin=02508201610067®Number=0000000000091685&sum=100016 [08:33:13]written 0, free lines is 4095 [08:33:13]OFD Sender: Processing packet 227240 [packets to send 38, broken 37] [08:33:13]ProducePacketName [08:33:13]name=ofd_packets/00227240 [08:33:13]OFD Sender: To server: pG, [08:33:13]CommunicateWithHost lk.salyk.kg:30040 [08:33:13]ConnectInit lk.salyk.kg [08:33:13]Write to MH i2c: 01 00 00 22 30 52 [08:33:13]Write i2c OK [08:33:13]MH_I2C_Read... [08:33:13]Read from MH i2c: 01 [08:33:13]MH_I2C_Read... [08:33:13]Connected sock=11 [08:33: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 33 39 0F 01 00 00 89 9D 07 01 9E 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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 4B C0 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A8 77 03 00 35 04 06 00 98 EE 0E 8F 75 97 B7 42 34 B7 06 75 5A F0 [08:33:13]Read from MH i2c: 01 07 00 [08:33:13]MH_I2C_Read... [08:33:13]Read from MH i2c: 01 07 00 22 30 00 00 00 00 00 21 0D 87 [08:33:13]RasterBufferAndPrint [08:33:13]line [08:33:13]line [08:33:13]line [08:33:13]line [08:33:13]line [08:33:13]written 0, free lines is 3408 [08:33:13]process_action close_receipt done [08:33:13]requested_data is exist [08:33:13]produce_requested_data [08:33:13]requested_item fm.sn is exist - process it [08:33:13]wFMCommunicate request_size=4 [08:33:13]MH_SAM_APDU [08:33:13]CAPDU: 80 11 00 00 [08:33:13]Write to MH i2c: E2 08 00 29 30 80 11 00 00 00 00 00 00 D3 [08:33:13]Write i2c OK [08:33:13]MH_I2C_Read... [08:33:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:13]Read from MH i2c: E2 [08:33:13]MH_I2C_Read... [08:33:13]Read from MH i2c: E2 17 00 [08:33:13]MH_I2C_Read... [08:33:13]Read from MH i2c: E2 17 00 29 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 2A [08:33:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:33:13]wFMCommunicate OK [08:33:13]requested_item fd.num is exist - process it [08:33:13]SAM_PROTO_GetFieldsCounters [08:33:13]wFMCommunicate request_size=4 [08:33:13]MH_SAM_APDU [08:33:13]CAPDU: 80 13 00 00 [08:33:13]Write to MH i2c: E2 08 00 2A 30 80 13 00 00 00 00 00 00 D6 [08:33:13]Write i2c OK [08:33:13]MH_I2C_Read... [08:33:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:33:13]Read from MH i2c: E2 [08:33:13]MH_I2C_Read... [08:33:13]Read from MH i2c: E2 62 00 [08:33:13]MH_I2C_Read... [08:33: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 33 39 4F 00 00 00 CC 9F 47 00 6F 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 33 39 10 04 04 00 A8 77 03 00 F4 03 04 00 4A 6B 14 67 B6 04 01 00 00 33 AB 09 81 7A CC C9 1E [08:33:13]CommunicateWithHost err = 0 [08:33:13]CheckOFDResponse [08:33:13]1017 (14) - 77093643461234 [08:33:13]1041 (16) - 0000000000871839 [08:33:13]1040 (4) - 227240 [08:33:13]1012 (4) - 20.10.2024 02:30 [08:33:13]1206 (1) - 0 [08:33:13]OFD Sender: Remove packet 227240 [08:33:13]ProducePacketName [08:33:13]name=ofd_packets/00227240 [08:33:13]NVStorageDeleteData [08:33:13]Read from MH i2c: E2 62 00 2A 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A8 77 03 00 0E 04 04 00 15 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 40 [08:33: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A8 77 03 00 0E 04 04 00 15 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 [08:33:13]wFMCommunicate OK [08:33:13]SAM_PROTO_GetFieldsCounters done [08:33:13]requested_item shift.num is exist - process it [08:33:13]requested_item shift.opened is exist - process it [08:33:13]req_shift_opened [08:33:13]FM_GetShiftState [08:33:13]SAM_PROTO_GetShiftState [08:33:13]wFMCommunicate request_size=4 [08:33:13]MH_SAM_APDU [08:33:13]CAPDU: 80 13 01 00 [08:33:13]Write to MH i2c: E2 08 00 2B 30 80 13 01 00 00 00 00 00 D8 [08:33:13]Write i2c OK [08:33:13]MH_I2C_Read... [08:33:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:13]Read from MH i2c: E2 [08:33:13]MH_I2C_Read... [08:33:13]Read from MH i2c: E2 0E 00 [08:33:13]MH_I2C_Read... [08:33:13]Read from MH i2c: E2 0E 00 2B 30 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 F2 [08:33:13]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:33:13]wFMCommunicate OK [08:33:13]SAM_PROTO_GetShiftState done [08:33:13]FM_GetShiftState done [08:33:13]req_shift_opened done [08:33:13]requested_item shift.open_date is exist - process it [08:33:13]req_shift_open_date [08:33:13]req_shift_open_date done [08:33:13]produce_requested_data done [08:33:13]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227240,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [08:33:13]process_action_free close_receipt [08:33:13]json_value_free [08:33:13]json_value_free done [08:33:13]process_json_proto returns [08:33:13]Send response to host [08:33:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227240,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [08:33:13]free response buf [08:33:13]execute_script done [08:33:13]execute_script returns [08:33:13]free content buf [08:33:13]Sock 9.Close socket [08:33:13]Sock 9.Thread stoped [08:33:14]OFD Sender: No OFD packet to send [08:33:19]OFD Sender: No OFD packet to send [08:33:24]OFD Sender: No OFD packet to send [08:33:29]OFD Sender: No OFD packet to send [08:33:34]OFD Sender: No OFD packet to send [08:33:39]OFD Sender: No OFD packet to send [08:33:44]OFD Sender: No OFD packet to send [08:33:49]OFD Sender: No OFD packet to send [08:33:54]OFD Sender: No OFD packet to send [08:33:59]OFD Sender: No OFD packet to send [08:34:04]OFD Sender: No OFD packet to send [08:34:09]OFD Sender: No OFD packet to send [08:34:14]OFD Sender: No OFD packet to send [08:34:19]OFD Sender: No OFD packet to send [08:34:24]OFD Sender: No OFD packet to send [08:34:29]OFD Sender: No OFD packet to send [08:34:34]OFD Sender: No OFD packet to send [08:34:39]OFD Sender: No OFD packet to send [08:34:44]OFD Sender: No OFD packet to send [08:34:49]OFD Sender: No OFD packet to send [08:34:54]OFD Sender: No OFD packet to send [08:34:59]OFD Sender: No OFD packet to send [08:35:04]OFD Sender: No OFD packet to send [08:35:09]OFD Sender: No OFD packet to send [08:35:14]OFD Sender: No OFD packet to send [08:35:19]OFD Sender: No OFD packet to send [08:35:24]OFD Sender: No OFD packet to send [08:35:29]OFD Sender: No OFD packet to send [08:35:34]OFD Sender: No OFD packet to send [08:35:39]OFD Sender: No OFD packet to send [08:35:43]accept exits with 8 [08:35:43]New connection [08:35:43]New thread 3066965348 created [08:35:43]Thread 3066821988 joined [08:35:43]Waiting for new connection... [08:35:43] Sock 8.Parse request [08:35:43]Sock 8.Check first char [08:35:43]Sock 8.First char is OK [08:35:43]request: POST /json_proto HTTP/1.0 [08:35:43]Method: POST [08:35:43]URL: /json_proto [08:35:43]Method is POST - this is cgi request [08:35:43]url: /json_proto [08:35:43]query_string will be loaded in cgi processing [08:35:43]execute_cgi json_proto POST (null) [08:35:43]execute_cgi path=json_proto method=POST [08:35:43]POST find Content-Length [08:35:43]Host: 172.17.44.195:8080 [08:35:43]Content-Length: 683 [08:35:43]Content-Type: application/json [08:35:43] [08:35:43]POST finish read [08:35:43]Found Content-Length = 683 [08:35:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962699", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:35:43]execute_script... [08:35: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)1962699", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:35:43]POST & json_proto [08:35:43]process_json_proto [08:35:43]json parsed OK: [08:35:43]protocol is kg_v1.0 [08:35:43]action value=close_receipt [08:35:43]process_action close_receipt [08:35:43]cmd_close_receipt [08:35:43]MH_GetDate [08:35:43]Write to MH i2c: F0 00 00 2C 30 4B [08:35:43]Write i2c OK [08:35:43]MH_I2C_Read... [08:35:43]Read from MH i2c: F0 [08:35:43]MH_I2C_Read... [08:35:43]Read from MH i2c: F0 09 00 [08:35:43]MH_I2C_Read... [08:35:43]Read from MH i2c: F0 09 00 2C 30 00 E3 C0 14 67 82 C9 CF 66 F2 [08:35:43]GetLastDocTimeStamp 1729413195 [08:35:43]current date 1729413347 [08:35:43]FM_GetShiftState [08:35:43]SAM_PROTO_GetShiftState [08:35:43]wFMCommunicate request_size=4 [08:35:43]MH_SAM_APDU [08:35:43]CAPDU: 80 13 01 00 [08:35:43]Write to MH i2c: E2 08 00 2D 30 80 13 01 00 00 00 00 00 DA [08:35:43]Write i2c OK [08:35:43]MH_I2C_Read... [08:35:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:35:43]Read from MH i2c: E2 [08:35:43]MH_I2C_Read... [08:35:43]Read from MH i2c: E2 0E 00 [08:35:43]MH_I2C_Read... [08:35:43]Read from MH i2c: E2 0E 00 2D 30 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 F4 [08:35:43]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:35:43]wFMCommunicate OK [08:35:43]SAM_PROTO_GetShiftState done [08:35:43]FM_GetShiftState done [08:35:43]opened in 1729383750 [08:35:43]opened+sec_in_day 1729470150 [08:35:43]quantity*price = 200043 [08:35:43]sum+1 = 200044 [08:35:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 89 20.10.2024 08:35 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227241 ФПД: 218024918798309 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T083547&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227241&fm=218024918798309&tin=02508201610067®Number=0000000000091685&sum=200000 [08:35:44]StoreToDocumentArchive [08:35:44]shift 533 fd 227241 [08:35:44]save to /storage/0533/doc_00227241 [08:35:44]save last doc name /storage/0533/doc_00227241 to /storage/kkm_last_doc_name [08:35:44]save OK [08:35:44]Clear old archive folders... [08:35:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:35:44]tlvbuf is B6F5B4E0 [08:35:44]SAM_PROTO_ClearQueue [08:35:44]wFMCommunicate request_size=4 [08:35:44]MH_SAM_APDU [08:35:44]CAPDU: 80 09 00 00 [08:35:44]Write to MH i2c: E2 08 00 3A 30 80 09 00 00 00 00 00 00 DC [08:35:44]Write i2c OK [08:35:44]MH_I2C_Read... [08:35:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:35:44]Read from MH i2c: E2 [08:35:44]MH_I2C_Read... [08:35:44]Read from MH i2c: E2 03 00 [08:35:44]MH_I2C_Read... [08:35:44]Read from MH i2c: E2 03 00 3A 30 00 90 00 DE [08:35:44]RAPDU: 90 00 [08:35:44]wFMCommunicate OK [08:35:44]SAM_PROTO_ClearQueue done [08:35:44]KKMCreateOFDPacket [08:35:44]OFDProtocolAddRootSTLVToBuf [08:35:44]FM_MakeSignedData [08:35:44]FM_MakeSignedData [08:35:44]SAM_PROTO_SignData [08:35:44]wFMCommunicate request_size=4 [08:35:44]MH_SAM_APDU [08:35:44]CAPDU: 80 0D 01 02 [08:35:44]Write to MH i2c: E2 08 00 3B 30 80 0D 01 02 00 00 00 00 E4 [08:35:44]Write i2c OK [08:35:44]MH_I2C_Read... [08:35:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:35:45]Read from MH i2c: E2 [08:35:45]MH_I2C_Read... [08:35:45]Read from MH i2c: E2 03 00 [08:35:45]MH_I2C_Read... [08:35:45]Read from MH i2c: E2 03 00 3B 30 00 90 00 DF [08:35:45]RAPDU: 90 00 [08:35:45]wFMCommunicate OK [08:35:45]wFMCommunicate request_size=255 [08:35:45]MH_SAM_APDU [08:35:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 E3 C0 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A9 77 03 00 35 04 06 00 C6 [08:35:45]Write to MH i2c: E2 02 01 3C 30 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 E3 C0 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A9 77 03 00 35 04 06 00 C6 00 00 9A [08:35:45]Write i2c OK [08:35:45]MH_I2C_Read... [08:35:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:35:45]Read from MH i2c: E2 [08:35:45]MH_I2C_Read... [08:35:45]Read from MH i2c: E2 03 00 [08:35:45]MH_I2C_Read... [08:35:45]Read from MH i2c: E2 03 00 3C 30 00 90 00 E0 [08:35:45]RAPDU: 90 00 [08:35:45]wFMCommunicate OK [08:35:45]wFMCommunicate request_size=10 [08:35:45]MH_SAM_APDU [08:35:45]CAPDU: 80 0D 02 02 05 4A E1 D6 4F E5 [08:35:45]Write to MH i2c: E2 0D 00 3D 30 80 0D 02 02 05 00 4A E1 D6 4F E5 00 00 26 [08:35:45]Write i2c OK [08:35:45]MH_I2C_Read... [08:35:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:35:45]Read from MH i2c: E2 [08:35:45]MH_I2C_Read... [08:35:45]Read from MH i2c: E2 03 00 [08:35:45]MH_I2C_Read... [08:35:45]Read from MH i2c: E2 03 00 3D 30 00 90 00 E1 [08:35:45]RAPDU: 90 00 [08:35:45]wFMCommunicate OK [08:35:45]wFMCommunicate request_size=4 [08:35:45]MH_SAM_APDU [08:35:45]CAPDU: 80 0D 03 02 [08:35:45]Write to MH i2c: E2 08 00 3E 30 80 0D 03 02 00 00 00 00 E9 [08:35:45]Write i2c OK [08:35:45]MH_I2C_Read... [08:35:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:35:45]Read from MH i2c: E2 [08:35:45]MH_I2C_Read... [08:35:45]Read from MH i2c: E2 0B 00 [08:35:45]MH_I2C_Read... [08:35:45]Read from MH i2c: E2 0B 00 3E 30 00 50 03 88 86 A2 3F 75 8C 90 00 2D [08:35:45]RAPDU: 50 03 88 86 A2 3F 75 8C 90 00 [08:35:45]wFMCommunicate OK [08:35:45]SAM_PROTO_SignData done [08:35:45]FM_MakeSignedData done [08:35:45]CreateOFDProtocolMessage [08:35:45]wFMCommunicate request_size=4 [08:35:45]MH_SAM_APDU [08:35:45]CAPDU: 80 11 00 00 [08:35:45]Write to MH i2c: E2 08 00 3F 30 80 11 00 00 00 00 00 00 E9 [08:35:45]Write i2c OK [08:35:45]MH_I2C_Read... [08:35:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:35:45]Read from MH i2c: E2 [08:35:45]MH_I2C_Read... [08:35:45]Read from MH i2c: E2 17 00 [08:35:45]MH_I2C_Read... [08:35:45]Read from MH i2c: E2 17 00 3F 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 40 [08:35:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:35:45]wFMCommunicate OK [08:35:45]CreateOFDProtocolMessage done [08:35:45]OFDSenderStorePacket 227241 [08:35:45]StoreOFDPacket docnum=227241 [08:35:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 CA E1 07 01 7A 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 E3 C0 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A9 77 03 00 35 04 06 00 C6 4A E1 D6 4F E5 50 03 88 86 A2 3F 75 8C [08:35:45]CheckFolder [08:35:45]dirname=/storage/ofd_packets [08:35:45]CheckFolder done [08:35:45]ProducePacketName [08:35:45]name=ofd_packets/00227241 [08:35:45]NVStorageSaveData ofd_packets/00227241 [08:35:45]File name is /storage/ofd_packets/00227241 [08:35:45]Write 301 bytes [08:35:45]NVStorageSaveData done [08:35:45]OFDSenderStorePacket done [08:35:45]KKMCreateOFDPacket done [08:35:45]NVStorageSaveData kkm_last_timestamp [08:35:45]File name is /storage/kkm_last_timestamp [08:35:45]Write 4 bytes [08:35:45]NVStorageSaveData done [08:35:45]ExternCall_PrintAddStr [08:35:45]wPrintStart [08:35:45]Write to MH i2c: 01 00 00 40 30 70 [08:35:45]Write i2c OK [08:35:45]MH_I2C_Read... [08:35:45]Read from MH i2c: 01 [08:35:45]MH_I2C_Read... [08:35:45]Read from MH i2c: 01 07 00 [08:35:45]MH_I2C_Read... [08:35:45]Read from MH i2c: 01 07 00 40 30 00 00 00 00 00 FF 0F 85 [08:35:45]RasterBufferAndPrint [08:35:45]line Счет N : (1)1962699 [08:35:45]line ИНН: 02508201610067 [08:35:45]line Контрольно-Кассовый Чек [08:35:45]line ПРОДАЖА [08:35:45]line ТРК (МРК, ГНК) : 54 [08:35:45]line Товар: 2710124500 [08:35:45]line Аи-95-К-5 [08:35:45]line 26.960 * 74.20 [08:35:45]line = 2000.43 [08:35:45]line НДС 12% НСП 1% [08:35:45]line > о реализуемом товаре [08:35:45]line ОКРУГЛЕНИЕ: -0.43 [08:35:45]line ИТОГО: 2000.00 [08:35:45]line Внесено: 2000.00 [08:35:45]line СДАЧА: 0.00 [08:35:45]line НСП 1% : 17.70 [08:35:45]line НДС 12% : 212.43 [08:35:45]line Наличными: 2000.00 [08:35:45]line Безнал.: 0.00 [08:35:45]line Место: АЗС № 133 "Партнер Нефть" [08:35:45]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [08:35:45]line СНО: Общий режим [08:35:45]line Чек 89 20.10.2024 08:35 [08:35:45]line Смена: 533 ФФД: 1.0 [08:35:45]line ЗНМ: 0300000091 [08:35:45]line РНМ: 0000000000091685 [08:35:45]line Версия ККМ: 001 [08:35:45]line ФМ: 0000000000871839 [08:35:45]line ФД: 227241 [08:35:45]line ФПД: 218024918798309 [08:35:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T083547&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227241&fm=218024918798309&tin=02508201610067®Number=0000000000091685&sum=200000 [08:35:45]OFD Sender: Processing packet 227241 [packets to send 38, broken 37] [08:35:45]ProducePacketName [08:35:45]name=ofd_packets/00227241 [08:35:45]OFD Sender: To server: pG, [08:35:45]CommunicateWithHost lk.salyk.kg:30040 [08:35:45]ConnectInit lk.salyk.kg [08:35:45]written 0, free lines is 4095 [08:35:45]Connected sock=10 [08:35: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 33 39 0F 01 00 00 CA E1 07 01 7A 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 E3 C0 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A9 77 03 00 35 04 06 00 C6 4A E1 D6 4F E5 50 03 88 86 A2 3F 75 8C [08:35: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 33 39 4F 00 00 00 0D F2 47 00 C4 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A9 77 03 00 F4 03 04 00 E3 6B 14 67 B6 04 01 00 00 21 69 FF F4 E8 CE A7 8A [08:35:46]CommunicateWithHost err = 0 [08:35:46]CheckOFDResponse [08:35:46]1017 (14) - 77093643461234 [08:35:46]1041 (16) - 0000000000871839 [08:35:46]1040 (4) - 227241 [08:35:46]1012 (4) - 20.10.2024 02:33 [08:35:46]1206 (1) - 0 [08:35:46]OFD Sender: Remove packet 227241 [08:35:46]ProducePacketName [08:35:46]name=ofd_packets/00227241 [08:35:46]NVStorageDeleteData [08:35:46]Write to MH i2c: 01 00 00 6A 30 9A [08:35:46]Write i2c OK [08:35:46]MH_I2C_Read... [08:35:46]Read from MH i2c: 01 [08:35:46]MH_I2C_Read... [08:35:46]Read from MH i2c: 01 07 00 [08:35:46]MH_I2C_Read... [08:35:46]Read from MH i2c: 01 07 00 6A 30 00 00 00 00 00 15 0D C3 [08:35:46]RasterBufferAndPrint [08:35:46]line [08:35:46]line [08:35:46]line [08:35:46]line [08:35:46]line [08:35:46]written 0, free lines is 3358 [08:35:46]process_action close_receipt done [08:35:46]requested_data is exist [08:35:46]produce_requested_data [08:35:46]requested_item fm.sn is exist - process it [08:35:46]wFMCommunicate request_size=4 [08:35:46]MH_SAM_APDU [08:35:46]CAPDU: 80 11 00 00 [08:35:46]Write to MH i2c: E2 08 00 71 30 80 11 00 00 00 00 00 00 1B [08:35:46]Write i2c OK [08:35:46]MH_I2C_Read... [08:35:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:35:46]Read from MH i2c: E2 [08:35:46]MH_I2C_Read... [08:35:46]Read from MH i2c: E2 17 00 [08:35:46]MH_I2C_Read... [08:35:46]Read from MH i2c: E2 17 00 71 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 72 [08:35:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:35:46]wFMCommunicate OK [08:35:46]requested_item fd.num is exist - process it [08:35:46]SAM_PROTO_GetFieldsCounters [08:35:46]wFMCommunicate request_size=4 [08:35:46]MH_SAM_APDU [08:35:46]CAPDU: 80 13 00 00 [08:35:46]Write to MH i2c: E2 08 00 72 30 80 13 00 00 00 00 00 00 1E [08:35:46]Write i2c OK [08:35:46]MH_I2C_Read... [08:35:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:35:46]Read from MH i2c: E2 [08:35:46]MH_I2C_Read... [08:35:46]Read from MH i2c: E2 62 00 [08:35:46]MH_I2C_Read... [08:35:46]Read from MH i2c: E2 62 00 72 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A9 77 03 00 0E 04 04 00 15 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 8C [08:35: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A9 77 03 00 0E 04 04 00 15 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 [08:35:46]wFMCommunicate OK [08:35:46]SAM_PROTO_GetFieldsCounters done [08:35:46]requested_item shift.num is exist - process it [08:35:46]requested_item shift.opened is exist - process it [08:35:46]req_shift_opened [08:35:46]FM_GetShiftState [08:35:46]SAM_PROTO_GetShiftState [08:35:46]wFMCommunicate request_size=4 [08:35:46]MH_SAM_APDU [08:35:46]CAPDU: 80 13 01 00 [08:35:46]Write to MH i2c: E2 08 00 73 30 80 13 01 00 00 00 00 00 20 [08:35:46]Write i2c OK [08:35:46]MH_I2C_Read... [08:35:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:35:46]Read from MH i2c: E2 [08:35:46]MH_I2C_Read... [08:35:46]Read from MH i2c: E2 0E 00 [08:35:46]MH_I2C_Read... [08:35:46]Read from MH i2c: E2 0E 00 73 30 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 3A [08:35:46]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:35:46]wFMCommunicate OK [08:35:46]SAM_PROTO_GetShiftState done [08:35:46]FM_GetShiftState done [08:35:46]req_shift_opened done [08:35:46]requested_item shift.open_date is exist - process it [08:35:46]req_shift_open_date [08:35:46]req_shift_open_date done [08:35:46]produce_requested_data done [08:35:46]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227241,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [08:35:46]process_action_free close_receipt [08:35:46]json_value_free [08:35:46]json_value_free done [08:35:46]process_json_proto returns [08:35:46]Send response to host [08:35:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227241,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [08:35:46]free response buf [08:35:46]execute_script done [08:35:46]execute_script returns [08:35:46]free content buf [08:35:46]Sock 8.Close socket [08:35:46]Sock 8.Thread stoped [08:35:46]OFD Sender: No OFD packet to send [08:35:51]OFD Sender: No OFD packet to send [08:35:51]accept exits with 9 [08:35:51]New connection [08:35:51]New thread 3066821988 created [08:35:51]Thread 3066965348 joined [08:35:51]Waiting for new connection... [08:35:51] Sock 9.Parse request [08:35:51]Sock 9.Check first char [08:35:51]Sock 9.First char is OK [08:35:51]request: POST /json_proto HTTP/1.0 [08:35:51]Method: POST [08:35:51]URL: /json_proto [08:35:51]Method is POST - this is cgi request [08:35:51]url: /json_proto [08:35:51]query_string will be loaded in cgi processing [08:35:51]execute_cgi json_proto POST (null) [08:35:51]execute_cgi path=json_proto method=POST [08:35:51]POST find Content-Length [08:35:51]Host: 172.17.44.195:8080 [08:35:51]Content-Length: 683 [08:35:51]Content-Type: application/json [08:35:51] [08:35:51]POST finish read [08:35:51]Found Content-Length = 683 [08:35:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962700", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:35:51]execute_script... [08:35: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)1962700", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:35:51]POST & json_proto [08:35:51]process_json_proto [08:35:51]json parsed OK: [08:35:51]protocol is kg_v1.0 [08:35:51]action value=close_receipt [08:35:51]process_action close_receipt [08:35:51]cmd_close_receipt [08:35:51]MH_GetDate [08:35:51]Write to MH i2c: F0 00 00 74 30 93 [08:35:51]Write i2c OK [08:35:51]MH_I2C_Read... [08:35:51]Read from MH i2c: F0 [08:35:51]MH_I2C_Read... [08:35:51]Read from MH i2c: F0 09 00 [08:35:51]MH_I2C_Read... [08:35:51]Read from MH i2c: F0 09 00 74 30 00 EB C0 14 67 82 C9 CF 66 42 [08:35:51]GetLastDocTimeStamp 1729413347 [08:35:51]current date 1729413355 [08:35:51]FM_GetShiftState [08:35:51]SAM_PROTO_GetShiftState [08:35:51]wFMCommunicate request_size=4 [08:35:51]MH_SAM_APDU [08:35:51]CAPDU: 80 13 01 00 [08:35:51]Write to MH i2c: E2 08 00 75 30 80 13 01 00 00 00 00 00 22 [08:35:51]Write i2c OK [08:35:51]MH_I2C_Read... [08:35:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:35:51]Read from MH i2c: E2 [08:35:51]MH_I2C_Read... [08:35:51]Read from MH i2c: E2 0E 00 [08:35:51]MH_I2C_Read... [08:35:51]Read from MH i2c: E2 0E 00 75 30 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 3C [08:35:51]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:35:51]wFMCommunicate OK [08:35:51]SAM_PROTO_GetShiftState done [08:35:51]FM_GetShiftState done [08:35:51]opened in 1729383750 [08:35:51]opened+sec_in_day 1729470150 [08:35:51]quantity*price = 100015 [08:35:51]sum+1 = 100017 [08:35:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 90 20.10.2024 08:35 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227242 ФПД: 8071860408591 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T083555&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227242&fm=8071860408591&tin=02508201610067®Number=0000000000091685&sum=100000 [08:35:52]StoreToDocumentArchive [08:35:52]shift 533 fd 227242 [08:35:52]save to /storage/0533/doc_00227242 [08:35:52]save last doc name /storage/0533/doc_00227242 to /storage/kkm_last_doc_name [08:35:52]save OK [08:35:52]Clear old archive folders... [08:35:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:35:52]tlvbuf is 00530D40 [08:35:52]SAM_PROTO_ClearQueue [08:35:52]wFMCommunicate request_size=4 [08:35:52]MH_SAM_APDU [08:35:52]CAPDU: 80 09 00 00 [08:35:52]Write to MH i2c: E2 08 00 82 30 80 09 00 00 00 00 00 00 24 [08:35:52]Write i2c OK [08:35:52]MH_I2C_Read... [08:35:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:35:53]Read from MH i2c: E2 [08:35:53]MH_I2C_Read... [08:35:53]Read from MH i2c: E2 03 00 [08:35:53]MH_I2C_Read... [08:35:53]Read from MH i2c: E2 03 00 82 30 00 90 00 26 [08:35:53]RAPDU: 90 00 [08:35:53]wFMCommunicate OK [08:35:53]SAM_PROTO_ClearQueue done [08:35:53]KKMCreateOFDPacket [08:35:53]OFDProtocolAddRootSTLVToBuf [08:35:53]FM_MakeSignedData [08:35:53]FM_MakeSignedData [08:35:53]SAM_PROTO_SignData [08:35:53]wFMCommunicate request_size=4 [08:35:53]MH_SAM_APDU [08:35:53]CAPDU: 80 0D 01 02 [08:35:53]Write to MH i2c: E2 08 00 83 30 80 0D 01 02 00 00 00 00 2C [08:35:53]Write i2c OK [08:35:53]MH_I2C_Read... [08:35:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:35:53]Read from MH i2c: E2 [08:35:53]MH_I2C_Read... [08:35:53]Read from MH i2c: E2 03 00 [08:35:53]MH_I2C_Read... [08:35:53]Read from MH i2c: E2 03 00 83 30 00 90 00 27 [08:35:53]RAPDU: 90 00 [08:35:53]wFMCommunicate OK [08:35:53]wFMCommunicate request_size=255 [08:35:53]MH_SAM_APDU [08:35:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 EB C0 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AA 77 03 00 35 04 06 00 07 [08:35:53]Write to MH i2c: E2 02 01 84 30 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 EB C0 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AA 77 03 00 35 04 06 00 07 00 00 7F [08:35:53]Write i2c OK [08:35:53]MH_I2C_Read... [08:35:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:35:53]Read from MH i2c: E2 [08:35:53]MH_I2C_Read... [08:35:53]Read from MH i2c: E2 03 00 [08:35:53]MH_I2C_Read... [08:35:53]Read from MH i2c: E2 03 00 84 30 00 90 00 28 [08:35:53]RAPDU: 90 00 [08:35:53]wFMCommunicate OK [08:35:53]wFMCommunicate request_size=10 [08:35:53]MH_SAM_APDU [08:35:53]CAPDU: 80 0D 02 02 05 57 60 5F 51 0F [08:35:53]Write to MH i2c: E2 0D 00 85 30 80 0D 02 02 05 00 57 60 5F 51 0F 00 00 AF [08:35:53]Write i2c OK [08:35:53]MH_I2C_Read... [08:35:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:35:53]Read from MH i2c: E2 [08:35:53]MH_I2C_Read... [08:35:53]Read from MH i2c: E2 03 00 [08:35:53]MH_I2C_Read... [08:35:53]Read from MH i2c: E2 03 00 85 30 00 90 00 29 [08:35:53]RAPDU: 90 00 [08:35:53]wFMCommunicate OK [08:35:53]wFMCommunicate request_size=4 [08:35:53]MH_SAM_APDU [08:35:53]CAPDU: 80 0D 03 02 [08:35:53]Write to MH i2c: E2 08 00 86 30 80 0D 03 02 00 00 00 00 31 [08:35:53]Write i2c OK [08:35:53]MH_I2C_Read... [08:35:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:35:53]Read from MH i2c: E2 [08:35:53]MH_I2C_Read... [08:35:53]Read from MH i2c: E2 0B 00 [08:35:53]MH_I2C_Read... [08:35:53]Read from MH i2c: E2 0B 00 86 30 00 35 34 45 CB 9F CD 2E DD 90 00 22 [08:35:53]RAPDU: 35 34 45 CB 9F CD 2E DD 90 00 [08:35:53]wFMCommunicate OK [08:35:53]SAM_PROTO_SignData done [08:35:53]FM_MakeSignedData done [08:35:53]CreateOFDProtocolMessage [08:35:53]wFMCommunicate request_size=4 [08:35:53]MH_SAM_APDU [08:35:53]CAPDU: 80 11 00 00 [08:35:53]Write to MH i2c: E2 08 00 87 30 80 11 00 00 00 00 00 00 31 [08:35:53]Write i2c OK [08:35:53]MH_I2C_Read... [08:35:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:35:53]Read from MH i2c: E2 [08:35:53]MH_I2C_Read... [08:35:53]Read from MH i2c: E2 17 00 [08:35:53]MH_I2C_Read... [08:35:53]Read from MH i2c: E2 17 00 87 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 88 [08:35:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:35:53]wFMCommunicate OK [08:35:53]CreateOFDProtocolMessage done [08:35:53]OFDSenderStorePacket 227242 [08:35:53]StoreOFDPacket docnum=227242 [08:35:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 E8 17 07 01 B4 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 EB C0 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AA 77 03 00 35 04 06 00 07 57 60 5F 51 0F 35 34 45 CB 9F CD 2E DD [08:35:53]CheckFolder [08:35:53]dirname=/storage/ofd_packets [08:35:53]CheckFolder done [08:35:53]ProducePacketName [08:35:53]name=ofd_packets/00227242 [08:35:53]NVStorageSaveData ofd_packets/00227242 [08:35:53]File name is /storage/ofd_packets/00227242 [08:35:53]Write 301 bytes [08:35:53]NVStorageSaveData done [08:35:53]OFDSenderStorePacket done [08:35:53]KKMCreateOFDPacket done [08:35:53]NVStorageSaveData kkm_last_timestamp [08:35:53]File name is /storage/kkm_last_timestamp [08:35:53]Write 4 bytes [08:35:53]NVStorageSaveData done [08:35:53]ExternCall_PrintAddStr [08:35:53]wPrintStart [08:35:53]Write to MH i2c: 01 00 00 88 30 B8 [08:35:53]Write i2c OK [08:35:53]MH_I2C_Read... [08:35:53]Read from MH i2c: 01 [08:35:53]MH_I2C_Read... [08:35:53]Read from MH i2c: 01 07 00 [08:35:53]MH_I2C_Read... [08:35:53]Read from MH i2c: 01 07 00 88 30 00 00 00 00 00 FF 0F CD [08:35:53]RasterBufferAndPrint [08:35:53]line Счет N : (1)1962700 [08:35:53]line ИНН: 02508201610067 [08:35:53]line Контрольно-Кассовый Чек [08:35:53]line ПРОДАЖА [08:35:53]line ТРК (МРК, ГНК) : 33 [08:35:53]line Товар: 2710124130 [08:35:53]line Аи-92-К-5 [08:35:53]line 14.950 * 66.90 [08:35:53]line = 1000.16 [08:35:53]line НДС 12% НСП 1% [08:35:53]line > о реализуемом товаре [08:35:53]line ОКРУГЛЕНИЕ: -0.16 [08:35:53]line ИТОГО: 1000.00 [08:35:53]line Внесено: 1000.00 [08:35:53]line СДАЧА: 0.00 [08:35:53]line НСП 1% : 8.85 [08:35:53]line НДС 12% : 106.21 [08:35:53]line Наличными: 1000.00 [08:35:53]line Безнал.: 0.00 [08:35:53]line Место: АЗС № 133 "Партнер Нефть" [08:35:53]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [08:35:53]line СНО: Общий режим [08:35:53]line Чек 90 20.10.2024 08:35 [08:35:53]line Смена: 533 ФФД: 1.0 [08:35:53]line ЗНМ: 0300000091 [08:35:53]line РНМ: 0000000000091685 [08:35:53]line Версия ККМ: 001 [08:35:53]line ФМ: 0000000000871839 [08:35:53]line ФД: 227242 [08:35:53]line ФПД: 8071860408591 [08:35:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T083555&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227242&fm=8071860408591&tin=02508201610067®Number=0000000000091685&sum=100000 [08:35:53]OFD Sender: Processing packet 227242 [packets to send 38, broken 37] [08:35:53]ProducePacketName [08:35:53]name=ofd_packets/00227242 [08:35:53]OFD Sender: To server: pG, [08:35:53]CommunicateWithHost lk.salyk.kg:30040 [08:35:53]ConnectInit lk.salyk.kg [08:35:53]written 0, free lines is 4095 [08:35:53]Connected sock=8 [08:35: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 33 39 0F 01 00 00 E8 17 07 01 B4 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 EB C0 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AA 77 03 00 35 04 06 00 07 57 60 5F 51 0F 35 34 45 CB 9F CD 2E DD [08:35: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 33 39 4F 00 00 00 E7 A5 47 00 A5 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 33 39 10 04 04 00 AA 77 03 00 F4 03 04 00 EA 6B 14 67 B6 04 01 00 00 C9 51 D9 AC 37 0C EA 13 [08:35:53]CommunicateWithHost err = 0 [08:35:53]CheckOFDResponse [08:35:53]1017 (14) - 77093643461234 [08:35:53]1041 (16) - 0000000000871839 [08:35:53]1040 (4) - 227242 [08:35:53]1012 (4) - 20.10.2024 02:33 [08:35:53]1206 (1) - 0 [08:35:53]OFD Sender: Remove packet 227242 [08:35:53]ProducePacketName [08:35:53]name=ofd_packets/00227242 [08:35:53]NVStorageDeleteData [08:35:53]Write to MH i2c: 01 00 00 B2 30 E2 [08:35:53]Write i2c OK [08:35:53]MH_I2C_Read... [08:35:53]Read from MH i2c: 01 [08:35:53]MH_I2C_Read... [08:35:53]Read from MH i2c: 01 07 00 [08:35:53]MH_I2C_Read... [08:35:53]Read from MH i2c: 01 07 00 B2 30 00 00 00 00 00 0A 0D 00 [08:35:53]RasterBufferAndPrint [08:35:54]line [08:35:54]line [08:35:54]line [08:35:54]line [08:35:54]line [08:35:54]written 0, free lines is 3347 [08:35:54]process_action close_receipt done [08:35:54]requested_data is exist [08:35:54]produce_requested_data [08:35:54]requested_item fm.sn is exist - process it [08:35:54]wFMCommunicate request_size=4 [08:35:54]MH_SAM_APDU [08:35:54]CAPDU: 80 11 00 00 [08:35:54]Write to MH i2c: E2 08 00 B9 30 80 11 00 00 00 00 00 00 63 [08:35:54]Write i2c OK [08:35:54]MH_I2C_Read... [08:35:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:35:54]Read from MH i2c: E2 [08:35:54]MH_I2C_Read... [08:35:54]Read from MH i2c: E2 17 00 [08:35:54]MH_I2C_Read... [08:35:54]Read from MH i2c: E2 17 00 B9 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 BA [08:35:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:35:54]wFMCommunicate OK [08:35:54]requested_item fd.num is exist - process it [08:35:54]SAM_PROTO_GetFieldsCounters [08:35:54]wFMCommunicate request_size=4 [08:35:54]MH_SAM_APDU [08:35:54]CAPDU: 80 13 00 00 [08:35:54]Write to MH i2c: E2 08 00 BA 30 80 13 00 00 00 00 00 00 66 [08:35:54]Write i2c OK [08:35:54]MH_I2C_Read... [08:35:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:35:54]Read from MH i2c: E2 [08:35:54]MH_I2C_Read... [08:35:54]Read from MH i2c: E2 62 00 [08:35:54]MH_I2C_Read... [08:35:54]Read from MH i2c: E2 62 00 BA 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 AA 77 03 00 0E 04 04 00 15 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 D8 [08:35: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 AA 77 03 00 0E 04 04 00 15 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 [08:35:54]wFMCommunicate OK [08:35:54]SAM_PROTO_GetFieldsCounters done [08:35:54]requested_item shift.num is exist - process it [08:35:54]requested_item shift.opened is exist - process it [08:35:54]req_shift_opened [08:35:54]FM_GetShiftState [08:35:54]SAM_PROTO_GetShiftState [08:35:54]wFMCommunicate request_size=4 [08:35:54]MH_SAM_APDU [08:35:54]CAPDU: 80 13 01 00 [08:35:54]Write to MH i2c: E2 08 00 BB 30 80 13 01 00 00 00 00 00 68 [08:35:54]Write i2c OK [08:35:54]MH_I2C_Read... [08:35:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:35:54]Read from MH i2c: E2 [08:35:54]MH_I2C_Read... [08:35:54]Read from MH i2c: E2 0E 00 [08:35:54]MH_I2C_Read... [08:35:54]Read from MH i2c: E2 0E 00 BB 30 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 82 [08:35:54]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:35:54]wFMCommunicate OK [08:35:54]SAM_PROTO_GetShiftState done [08:35:54]FM_GetShiftState done [08:35:54]req_shift_opened done [08:35:54]requested_item shift.open_date is exist - process it [08:35:54]req_shift_open_date [08:35:54]req_shift_open_date done [08:35:54]produce_requested_data done [08:35:54]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227242,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [08:35:54]process_action_free close_receipt [08:35:54]json_value_free [08:35:54]json_value_free done [08:35:54]process_json_proto returns [08:35:54]Send response to host [08:35:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227242,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [08:35:54]free response buf [08:35:54]execute_script done [08:35:54]execute_script returns [08:35:54]free content buf [08:35:54]Sock 9.Close socket [08:35:54]Sock 9.Thread stoped [08:35:54]OFD Sender: No OFD packet to send [08:35:59]OFD Sender: No OFD packet to send [08:36:04]OFD Sender: No OFD packet to send [08:36:09]OFD Sender: No OFD packet to send [08:36:14]OFD Sender: No OFD packet to send [08:36:19]OFD Sender: No OFD packet to send [08:36:24]OFD Sender: No OFD packet to send [08:36:29]OFD Sender: No OFD packet to send [08:36:34]OFD Sender: No OFD packet to send [08:36:39]OFD Sender: No OFD packet to send [08:36:44]OFD Sender: No OFD packet to send [08:36:49]OFD Sender: No OFD packet to send [08:36:54]OFD Sender: No OFD packet to send [08:36:59]OFD Sender: No OFD packet to send [08:37:04]OFD Sender: No OFD packet to send [08:37:09]OFD Sender: No OFD packet to send [08:37:14]OFD Sender: No OFD packet to send [08:37:19]OFD Sender: No OFD packet to send [08:37:24]OFD Sender: No OFD packet to send [08:37:29]OFD Sender: No OFD packet to send [08:37:34]OFD Sender: No OFD packet to send [08:37:39]OFD Sender: No OFD packet to send [08:37:44]OFD Sender: No OFD packet to send [08:37:49]OFD Sender: No OFD packet to send [08:37:54]OFD Sender: No OFD packet to send [08:37:59]OFD Sender: No OFD packet to send [08:38:04]OFD Sender: No OFD packet to send [08:38:09]OFD Sender: No OFD packet to send [08:38:14]OFD Sender: No OFD packet to send [08:38:19]OFD Sender: No OFD packet to send [08:38:24]OFD Sender: No OFD packet to send [08:38:29]OFD Sender: No OFD packet to send [08:38:34]OFD Sender: No OFD packet to send [08:38:39]OFD Sender: No OFD packet to send [08:38:44]OFD Sender: No OFD packet to send [08:38:49]OFD Sender: No OFD packet to send [08:38:54]OFD Sender: No OFD packet to send [08:38:59]OFD Sender: No OFD packet to send [08:39:04]OFD Sender: No OFD packet to send [08:39:09]OFD Sender: No OFD packet to send [08:39:14]OFD Sender: No OFD packet to send [08:39:19]OFD Sender: No OFD packet to send [08:39:24]OFD Sender: No OFD packet to send [08:39:29]OFD Sender: No OFD packet to send [08:39:34]OFD Sender: No OFD packet to send [08:39:39]OFD Sender: No OFD packet to send [08:39:44]OFD Sender: No OFD packet to send [08:39:49]OFD Sender: No OFD packet to send [08:39:54]OFD Sender: No OFD packet to send [08:39:59]OFD Sender: No OFD packet to send [08:40:04]OFD Sender: No OFD packet to send [08:40:09]OFD Sender: No OFD packet to send [08:40:14]OFD Sender: No OFD packet to send [08:40:19]OFD Sender: No OFD packet to send [08:40:24]OFD Sender: No OFD packet to send [08:40:29]OFD Sender: No OFD packet to send [08:40:34]OFD Sender: No OFD packet to send [08:40:35]accept exits with 10 [08:40:35]New connection [08:40:35]New thread 3066965348 created [08:40:35]Thread 3066821988 joined [08:40:35]Waiting for new connection... [08:40:35] Sock 10.Parse request [08:40:35]Sock 10.Check first char [08:40:35]Sock 10.First char is OK [08:40:35]request: POST /json_proto HTTP/1.0 [08:40:35]Method: POST [08:40:35]URL: /json_proto [08:40:35]Method is POST - this is cgi request [08:40:35]url: /json_proto [08:40:35]query_string will be loaded in cgi processing [08:40:35]execute_cgi json_proto POST (null) [08:40:35]execute_cgi path=json_proto method=POST [08:40:35]POST find Content-Length [08:40:35]Host: 172.17.44.195:8080 [08:40:35]Content-Length: 798 [08:40:35]Content-Type: application/json [08:40:35] [08:40:35]POST finish read [08:40:35]Found Content-Length = 798 [08:40:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962703", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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\u000A4381934", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:35]execute_script... [08:40:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962703", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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\u000A4381934", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:35]POST & json_proto [08:40:35]process_json_proto [08:40:35]json parsed OK: [08:40:35]protocol is kg_v1.0 [08:40:35]action value=close_receipt [08:40:35]process_action close_receipt [08:40:35]cmd_close_receipt [08:40:35]MH_GetDate [08:40:35]Write to MH i2c: F0 00 00 BC 30 DB [08:40:35]Write i2c OK [08:40:35]MH_I2C_Read... [08:40:35]Read from MH i2c: F0 [08:40:35]MH_I2C_Read... [08:40:35]Read from MH i2c: F0 09 00 [08:40:35]MH_I2C_Read... [08:40:35]Read from MH i2c: F0 09 00 BC 30 00 07 C2 14 67 82 C9 CF 66 A8 [08:40:35]GetLastDocTimeStamp 1729413355 [08:40:35]current date 1729413639 [08:40:35]FM_GetShiftState [08:40:35]SAM_PROTO_GetShiftState [08:40:35]wFMCommunicate request_size=4 [08:40:35]MH_SAM_APDU [08:40:35]CAPDU: 80 13 01 00 [08:40:35]Write to MH i2c: E2 08 00 BD 30 80 13 01 00 00 00 00 00 6A [08:40:35]Write i2c OK [08:40:35]MH_I2C_Read... [08:40:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:35]Read from MH i2c: E2 [08:40:35]MH_I2C_Read... [08:40:35]Read from MH i2c: E2 0E 00 [08:40:35]MH_I2C_Read... [08:40:35]Read from MH i2c: E2 0E 00 BD 30 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 84 [08:40:35]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:40:35]wFMCommunicate OK [08:40:35]SAM_PROTO_GetShiftState done [08:40:35]FM_GetShiftState done [08:40:35]opened in 1729383750 [08:40:35]opened+sec_in_day 1729470150 [08:40:35]quantity*price = 0 [08:40:35]sum+1 = 1 [08:40:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 91 20.10.2024 08:40 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Талоны: Топливные Талоны 4381934 ФМ: 0000000000871839 ФД: 227243 ФПД: 30906501747165 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T084039&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227243&fm=30906501747165&tin=02508201610067®Number=0000000000091685&sum=0 [08:40:36]StoreToDocumentArchive [08:40:36]shift 533 fd 227243 [08:40:36]save to /storage/0533/doc_00227243 [08:40:36]save last doc name /storage/0533/doc_00227243 to /storage/kkm_last_doc_name [08:40:36]save OK [08:40:36]Clear old archive folders... [08:40:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:40:36]tlvbuf is 005FA820 [08:40:36]SAM_PROTO_ClearQueue [08:40:36]wFMCommunicate request_size=4 [08:40:36]MH_SAM_APDU [08:40:36]CAPDU: 80 09 00 00 [08:40:36]Write to MH i2c: E2 08 00 CA 30 80 09 00 00 00 00 00 00 6C [08:40:36]Write i2c OK [08:40:36]MH_I2C_Read... [08:40:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:40:36]Read from MH i2c: E2 [08:40:36]MH_I2C_Read... [08:40:36]Read from MH i2c: E2 03 00 [08:40:36]MH_I2C_Read... [08:40:36]Read from MH i2c: E2 03 00 CA 30 00 90 00 6E [08:40:36]RAPDU: 90 00 [08:40:36]wFMCommunicate OK [08:40:36]SAM_PROTO_ClearQueue done [08:40:36]KKMCreateOFDPacket [08:40:36]OFDProtocolAddRootSTLVToBuf [08:40:36]FM_MakeSignedData [08:40:36]FM_MakeSignedData [08:40:36]SAM_PROTO_SignData [08:40:36]wFMCommunicate request_size=4 [08:40:36]MH_SAM_APDU [08:40:36]CAPDU: 80 0D 01 02 [08:40:36]Write to MH i2c: E2 08 00 CB 30 80 0D 01 02 00 00 00 00 74 [08:40:36]Write i2c OK [08:40:36]MH_I2C_Read... [08:40:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:40:36]Read from MH i2c: E2 [08:40:36]MH_I2C_Read... [08:40:36]Read from MH i2c: E2 03 00 [08:40:36]MH_I2C_Read... [08:40:36]Read from MH i2c: E2 03 00 CB 30 00 90 00 6F [08:40:36]RAPDU: 90 00 [08:40:36]wFMCommunicate OK [08:40:36]wFMCommunicate request_size=255 [08:40:36]MH_SAM_APDU [08:40:36]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 07 C2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AB 77 03 00 35 04 06 00 1C 1B FB 0E [08:40:36]Write to MH i2c: E2 02 01 CC 30 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 07 C2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AB 77 03 00 35 04 06 00 1C 1B FB 0E 00 00 62 [08:40:36]Write i2c OK [08:40:36]MH_I2C_Read... [08:40:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:36]Read from MH i2c: E2 [08:40:36]MH_I2C_Read... [08:40:36]Read from MH i2c: E2 03 00 [08:40:36]MH_I2C_Read... [08:40:36]Read from MH i2c: E2 03 00 CC 30 00 90 00 70 [08:40:36]RAPDU: 90 00 [08:40:36]wFMCommunicate OK [08:40:36]wFMCommunicate request_size=7 [08:40:36]MH_SAM_APDU [08:40:36]CAPDU: 80 0D 02 02 02 D1 DD [08:40:36]Write to MH i2c: E2 0A 00 CD 30 80 0D 02 02 02 00 D1 DD 00 00 29 [08:40:36]Write i2c OK [08:40:36]MH_I2C_Read... [08:40:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:36]Read from MH i2c: E2 [08:40:36]MH_I2C_Read... [08:40:36]Read from MH i2c: E2 03 00 [08:40:36]MH_I2C_Read... [08:40:36]Read from MH i2c: E2 03 00 CD 30 00 90 00 71 [08:40:36]RAPDU: 90 00 [08:40:36]wFMCommunicate OK [08:40:36]wFMCommunicate request_size=4 [08:40:36]MH_SAM_APDU [08:40:36]CAPDU: 80 0D 03 02 [08:40:36]Write to MH i2c: E2 08 00 CE 30 80 0D 03 02 00 00 00 00 79 [08:40:36]Write i2c OK [08:40:36]MH_I2C_Read... [08:40:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:40:36]Read from MH i2c: E2 [08:40:36]MH_I2C_Read... [08:40:36]Read from MH i2c: E2 0B 00 [08:40:36]MH_I2C_Read... [08:40:36]Read from MH i2c: E2 0B 00 CE 30 00 E9 3E 38 CA 8D D5 34 A8 90 00 E1 [08:40:36]RAPDU: E9 3E 38 CA 8D D5 34 A8 90 00 [08:40:36]wFMCommunicate OK [08:40:36]SAM_PROTO_SignData done [08:40:36]FM_MakeSignedData done [08:40:36]CreateOFDProtocolMessage [08:40:36]wFMCommunicate request_size=4 [08:40:36]MH_SAM_APDU [08:40:36]CAPDU: 80 11 00 00 [08:40:36]Write to MH i2c: E2 08 00 CF 30 80 11 00 00 00 00 00 00 79 [08:40:36]Write i2c OK [08:40:36]MH_I2C_Read... [08:40:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:37]Read from MH i2c: E2 [08:40:37]MH_I2C_Read... [08:40:37]Read from MH i2c: E2 17 00 [08:40:37]MH_I2C_Read... [08:40:37]Read from MH i2c: E2 17 00 CF 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D0 [08:40:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:40:37]wFMCommunicate OK [08:40:37]CreateOFDProtocolMessage done [08:40:37]OFDSenderStorePacket 227243 [08:40:37]StoreOFDPacket docnum=227243 [08:40:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 82 3C 04 01 92 1E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 07 C2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AB 77 03 00 35 04 06 00 1C 1B FB 0E D1 DD E9 3E 38 CA 8D D5 34 A8 [08:40:37]CheckFolder [08:40:37]dirname=/storage/ofd_packets [08:40:37]CheckFolder done [08:40:37]ProducePacketName [08:40:37]name=ofd_packets/00227243 [08:40:37]NVStorageSaveData ofd_packets/00227243 [08:40:37]File name is /storage/ofd_packets/00227243 [08:40:37]Write 298 bytes [08:40:37]NVStorageSaveData done [08:40:37]OFDSenderStorePacket done [08:40:37]KKMCreateOFDPacket done [08:40:37]NVStorageSaveData kkm_last_timestamp [08:40:37]File name is /storage/kkm_last_timestamp [08:40:37]Write 4 bytes [08:40:37]NVStorageSaveData done [08:40:37]ExternCall_PrintAddStr [08:40:37]wPrintStart [08:40:37]Write to MH i2c: 01 00 00 D0 30 00 [08:40:37]Write i2c OK [08:40:37]MH_I2C_Read... [08:40:37]Read from MH i2c: 01 [08:40:37]MH_I2C_Read... [08:40:37]Read from MH i2c: 01 07 00 [08:40:37]MH_I2C_Read... [08:40:37]Read from MH i2c: 01 07 00 D0 30 00 00 00 00 00 FF 0F 15 [08:40:37]RasterBufferAndPrint [08:40:37]line Счет N : (1)1962703 [08:40:37]line ИНН: 02508201610067 [08:40:37]line Контрольно-Кассовый Чек [08:40:37]line ПРОДАЖА [08:40:37]line ТРК (МРК, ГНК) : 11 [08:40:37]line Товар: 2710194210 [08:40:37]line ДТ-К-5 [08:40:37]line 20.000 * 0.00 [08:40:37]line = 0.00 [08:40:37]line НДС 12% НСП 1% [08:40:37]line > о реализуемом товаре [08:40:37]line ИТОГО: 0.00 [08:40:37]line НСП 1% : 0.00 [08:40:37]line НДС 12% : 0.00 [08:40:37]line Наличными: 0.00 [08:40:37]line Безнал.: 0.00 [08:40:37]line Место: АЗС № 133 "Партнер Нефть" [08:40:37]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [08:40:37]line СНО: Общий режим [08:40:37]line Чек 91 20.10.2024 08:40 [08:40:37]line Смена: 533 ФФД: 1.0 [08:40:37]line ЗНМ: 0300000091 [08:40:37]line РНМ: 0000000000091685 [08:40:37]line Версия ККМ: 001 [08:40:37]line Талоны: Топливные Талоны [08:40:37]line 4381934 [08:40:37]line ФМ: 0000000000871839 [08:40:37]line ФД: 227243 [08:40:37]line ФПД: 30906501747165 [08:40:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T084039&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227243&fm=30906501747165&tin=02508201610067®Number=0000000000091685&sum=0 [08:40:37]OFD Sender: Processing packet 227243 [packets to send 38, broken 37] [08:40:37]ProducePacketName [08:40:37]name=ofd_packets/00227243 [08:40:37]OFD Sender: To server: pG, [08:40:37]CommunicateWithHost lk.salyk.kg:30040 [08:40:37]ConnectInit lk.salyk.kg [08:40:37]written 0, free lines is 4095 [08:40:37]Connected sock=9 [08:40:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 82 3C 04 01 92 1E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 07 C2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AB 77 03 00 35 04 06 00 1C 1B FB 0E D1 DD E9 3E 38 CA 8D D5 34 A8 [08:40:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 AA 36 47 00 B3 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AB 77 03 00 F4 03 04 00 06 6D 14 67 B6 04 01 00 00 F5 C9 27 35 A1 64 65 5F [08:40:37]CommunicateWithHost err = 0 [08:40:37]CheckOFDResponse [08:40:37]1017 (14) - 77093643461234 [08:40:37]1041 (16) - 0000000000871839 [08:40:37]1040 (4) - 227243 [08:40:37]1012 (4) - 20.10.2024 02:37 [08:40:37]1206 (1) - 0 [08:40:37]OFD Sender: Remove packet 227243 [08:40:37]ProducePacketName [08:40:37]name=ofd_packets/00227243 [08:40:37]NVStorageDeleteData [08:40:37]Write to MH i2c: 01 00 00 F9 30 29 [08:40:37]Write i2c OK [08:40:37]MH_I2C_Read... [08:40:37]Read from MH i2c: 01 [08:40:37]MH_I2C_Read... [08:40:37]Read from MH i2c: 01 07 00 [08:40:37]MH_I2C_Read... [08:40:37]Read from MH i2c: 01 07 00 F9 30 00 00 00 00 00 04 0D 41 [08:40:37]RasterBufferAndPrint [08:40:37]line [08:40:37]line [08:40:37]line [08:40:37]line [08:40:37]line [08:40:37]written 0, free lines is 3339 [08:40:37]process_action close_receipt done [08:40:37]requested_data is exist [08:40:37]produce_requested_data [08:40:37]requested_item fm.sn is exist - process it [08:40:37]wFMCommunicate request_size=4 [08:40:37]MH_SAM_APDU [08:40:37]CAPDU: 80 11 00 00 [08:40:37]Write to MH i2c: E2 08 00 00 31 80 11 00 00 00 00 00 00 AB [08:40:37]Write i2c OK [08:40:37]MH_I2C_Read... [08:40:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:37]Read from MH i2c: E2 [08:40:37]MH_I2C_Read... [08:40:37]Read from MH i2c: E2 17 00 [08:40:37]MH_I2C_Read... [08:40:37]Read from MH i2c: E2 17 00 00 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 02 [08:40:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:40:37]wFMCommunicate OK [08:40:37]requested_item fd.num is exist - process it [08:40:37]SAM_PROTO_GetFieldsCounters [08:40:37]wFMCommunicate request_size=4 [08:40:37]MH_SAM_APDU [08:40:37]CAPDU: 80 13 00 00 [08:40:37]Write to MH i2c: E2 08 00 01 31 80 13 00 00 00 00 00 00 AE [08:40:37]Write i2c OK [08:40:37]MH_I2C_Read... [08:40:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:40:37]Read from MH i2c: E2 [08:40:37]MH_I2C_Read... [08:40:37]Read from MH i2c: E2 62 00 [08:40:37]MH_I2C_Read... [08:40:37]Read from MH i2c: E2 62 00 01 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 AB 77 03 00 0E 04 04 00 15 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 24 [08:40: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 AB 77 03 00 0E 04 04 00 15 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 [08:40:37]wFMCommunicate OK [08:40:37]SAM_PROTO_GetFieldsCounters done [08:40:37]requested_item shift.num is exist - process it [08:40:37]requested_item shift.opened is exist - process it [08:40:37]req_shift_opened [08:40:37]FM_GetShiftState [08:40:37]SAM_PROTO_GetShiftState [08:40:37]wFMCommunicate request_size=4 [08:40:37]MH_SAM_APDU [08:40:37]CAPDU: 80 13 01 00 [08:40:37]Write to MH i2c: E2 08 00 02 31 80 13 01 00 00 00 00 00 B0 [08:40:37]Write i2c OK [08:40:37]MH_I2C_Read... [08:40:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:38]Read from MH i2c: E2 [08:40:38]MH_I2C_Read... [08:40:38]Read from MH i2c: E2 0E 00 [08:40:38]MH_I2C_Read... [08:40:38]Read from MH i2c: E2 0E 00 02 31 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 CA [08:40:38]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:40:38]wFMCommunicate OK [08:40:38]SAM_PROTO_GetShiftState done [08:40:38]FM_GetShiftState done [08:40:38]req_shift_opened done [08:40:38]requested_item shift.open_date is exist - process it [08:40:38]req_shift_open_date [08:40:38]req_shift_open_date done [08:40:38]produce_requested_data done [08:40:38]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227243,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [08:40:38]process_action_free close_receipt [08:40:38]json_value_free [08:40:38]json_value_free done [08:40:38]process_json_proto returns [08:40:38]Send response to host [08:40:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227243,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [08:40:38]free response buf [08:40:38]execute_script done [08:40:38]execute_script returns [08:40:38]free content buf [08:40:38]Sock 10.Close socket [08:40:38]Sock 10.Thread stoped [08:40:38]OFD Sender: No OFD packet to send [08:40:43]OFD Sender: No OFD packet to send [08:40:46]accept exits with 8 [08:40:46]New connection [08:40:46]New thread 3066821988 created [08:40:46]Thread 3066965348 joined [08:40:46]Waiting for new connection... [08:40:46] Sock 8.Parse request [08:40:46]Sock 8.Check first char [08:40:46]Sock 8.First char is OK [08:40:46]request: POST /json_proto HTTP/1.0 [08:40:46]Method: POST [08:40:46]URL: /json_proto [08:40:46]Method is POST - this is cgi request [08:40:46]url: /json_proto [08:40:46]query_string will be loaded in cgi processing [08:40:46]execute_cgi json_proto POST (null) [08:40:46]execute_cgi path=json_proto method=POST [08:40:46]POST find Content-Length [08:40:46]Host: 172.17.44.195:8080 [08:40:46]Content-Length: 798 [08:40:46]Content-Type: application/json [08:40:46] [08:40:46]POST finish read [08:40:46]Found Content-Length = 798 [08:40:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962702", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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\u000A4381933", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:46]execute_script... [08: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)1962702", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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\u000A4381933", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:46]POST & json_proto [08:40:46]process_json_proto [08:40:46]json parsed OK: [08:40:46]protocol is kg_v1.0 [08:40:46]action value=close_receipt [08:40:46]process_action close_receipt [08:40:46]cmd_close_receipt [08:40:46]MH_GetDate [08:40:46]Write to MH i2c: F0 00 00 03 31 23 [08:40:46]Write i2c OK [08:40:46]MH_I2C_Read... [08:40:46]Read from MH i2c: F0 [08:40:46]MH_I2C_Read... [08:40:46]Read from MH i2c: F0 09 00 [08:40:46]MH_I2C_Read... [08:40:46]Read from MH i2c: F0 09 00 03 31 00 12 C2 14 67 82 C9 CF 66 FB [08:40:46]GetLastDocTimeStamp 1729413639 [08:40:46]current date 1729413650 [08:40:46]FM_GetShiftState [08:40:46]SAM_PROTO_GetShiftState [08:40:46]wFMCommunicate request_size=4 [08:40:46]MH_SAM_APDU [08:40:46]CAPDU: 80 13 01 00 [08:40:46]Write to MH i2c: E2 08 00 04 31 80 13 01 00 00 00 00 00 B2 [08:40:46]Write i2c OK [08:40:46]MH_I2C_Read... [08:40:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:46]Read from MH i2c: E2 [08:40:46]MH_I2C_Read... [08:40:46]Read from MH i2c: E2 0E 00 [08:40:46]MH_I2C_Read... [08:40:46]Read from MH i2c: E2 0E 00 04 31 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 CC [08:40:46]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:40:46]wFMCommunicate OK [08:40:46]SAM_PROTO_GetShiftState done [08:40:46]FM_GetShiftState done [08:40:46]opened in 1729383750 [08:40:46]opened+sec_in_day 1729470150 [08:40:46]quantity*price = 0 [08:40:46]sum+1 = 1 [08:40:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 92 20.10.2024 08:40 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Талоны: Топливные Талоны 4381933 ФМ: 0000000000871839 ФД: 227244 ФПД: 217251573550141 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T084050&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227244&fm=217251573550141&tin=02508201610067®Number=0000000000091685&sum=0 [08:40:47]StoreToDocumentArchive [08:40:47]shift 533 fd 227244 [08:40:47]save to /storage/0533/doc_00227244 [08:40:47]save last doc name /storage/0533/doc_00227244 to /storage/kkm_last_doc_name [08:40:47]save OK [08:40:47]Clear old archive folders... [08:40:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:40:47]tlvbuf is 00568D90 [08:40:47]SAM_PROTO_ClearQueue [08:40:47]wFMCommunicate request_size=4 [08:40:47]MH_SAM_APDU [08:40:47]CAPDU: 80 09 00 00 [08:40:47]Write to MH i2c: E2 08 00 11 31 80 09 00 00 00 00 00 00 B4 [08:40:47]Write i2c OK [08:40:47]MH_I2C_Read... [08:40:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:40:47]Read from MH i2c: E2 [08:40:47]MH_I2C_Read... [08:40:47]Read from MH i2c: E2 03 00 [08:40:47]MH_I2C_Read... [08:40:47]Read from MH i2c: E2 03 00 11 31 00 90 00 B6 [08:40:47]RAPDU: 90 00 [08:40:47]wFMCommunicate OK [08:40:47]SAM_PROTO_ClearQueue done [08:40:47]KKMCreateOFDPacket [08:40:47]OFDProtocolAddRootSTLVToBuf [08:40:47]FM_MakeSignedData [08:40:47]FM_MakeSignedData [08:40:47]SAM_PROTO_SignData [08:40:47]wFMCommunicate request_size=4 [08:40:47]MH_SAM_APDU [08:40:47]CAPDU: 80 0D 01 02 [08:40:47]Write to MH i2c: E2 08 00 12 31 80 0D 01 02 00 00 00 00 BC [08:40:47]Write i2c OK [08:40:47]MH_I2C_Read... [08:40:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:40:47]Read from MH i2c: E2 [08:40:47]MH_I2C_Read... [08:40:47]Read from MH i2c: E2 03 00 [08:40:47]MH_I2C_Read... [08:40:47]Read from MH i2c: E2 03 00 12 31 00 90 00 B7 [08:40:47]RAPDU: 90 00 [08:40:47]wFMCommunicate OK [08:40:47]wFMCommunicate request_size=255 [08:40:47]MH_SAM_APDU [08:40: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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 12 C2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AC 77 03 00 35 04 06 00 C5 96 D2 DE [08:40:47]Write to MH i2c: E2 02 01 13 31 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 12 C2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AC 77 03 00 35 04 06 00 C5 96 D2 DE 00 00 82 [08:40:47]Write i2c OK [08:40:47]MH_I2C_Read... [08:40:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:47]Read from MH i2c: E2 [08:40:47]MH_I2C_Read... [08:40:47]Read from MH i2c: E2 03 00 [08:40:47]MH_I2C_Read... [08:40:47]Read from MH i2c: E2 03 00 13 31 00 90 00 B8 [08:40:47]RAPDU: 90 00 [08:40:47]wFMCommunicate OK [08:40:47]wFMCommunicate request_size=7 [08:40:47]MH_SAM_APDU [08:40:47]CAPDU: 80 0D 02 02 02 4C 3D [08:40:47]Write to MH i2c: E2 0A 00 14 31 80 0D 02 02 02 00 4C 3D 00 00 4C [08:40:47]Write i2c OK [08:40:47]MH_I2C_Read... [08:40:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:47]Read from MH i2c: E2 [08:40:47]MH_I2C_Read... [08:40:47]Read from MH i2c: E2 03 00 [08:40:47]MH_I2C_Read... [08:40:47]Read from MH i2c: E2 03 00 14 31 00 90 00 B9 [08:40:47]RAPDU: 90 00 [08:40:47]wFMCommunicate OK [08:40:47]wFMCommunicate request_size=4 [08:40:47]MH_SAM_APDU [08:40:47]CAPDU: 80 0D 03 02 [08:40:47]Write to MH i2c: E2 08 00 15 31 80 0D 03 02 00 00 00 00 C1 [08:40:47]Write i2c OK [08:40:47]MH_I2C_Read... [08:40:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:40:47]Read from MH i2c: E2 [08:40:47]MH_I2C_Read... [08:40:47]Read from MH i2c: E2 0B 00 [08:40:47]MH_I2C_Read... [08:40:47]Read from MH i2c: E2 0B 00 15 31 00 AA 02 E0 B7 01 3C 5F B3 90 00 54 [08:40:47]RAPDU: AA 02 E0 B7 01 3C 5F B3 90 00 [08:40:47]wFMCommunicate OK [08:40:47]SAM_PROTO_SignData done [08:40:47]FM_MakeSignedData done [08:40:47]CreateOFDProtocolMessage [08:40:47]wFMCommunicate request_size=4 [08:40:47]MH_SAM_APDU [08:40:47]CAPDU: 80 11 00 00 [08:40:47]Write to MH i2c: E2 08 00 16 31 80 11 00 00 00 00 00 00 C1 [08:40:47]Write i2c OK [08:40:47]MH_I2C_Read... [08:40:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:47]Read from MH i2c: E2 [08:40:47]MH_I2C_Read... [08:40:47]Read from MH i2c: E2 17 00 [08:40:47]MH_I2C_Read... [08:40:47]Read from MH i2c: E2 17 00 16 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 18 [08:40:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:40:47]wFMCommunicate OK [08:40:47]CreateOFDProtocolMessage done [08:40:47]OFDSenderStorePacket 227244 [08:40:47]StoreOFDPacket docnum=227244 [08:40:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 B4 E1 04 01 B9 4B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 12 C2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AC 77 03 00 35 04 06 00 C5 96 D2 DE 4C 3D AA 02 E0 B7 01 3C 5F B3 [08:40:47]CheckFolder [08:40:47]dirname=/storage/ofd_packets [08:40:47]CheckFolder done [08:40:47]ProducePacketName [08:40:47]name=ofd_packets/00227244 [08:40:47]NVStorageSaveData ofd_packets/00227244 [08:40:47]File name is /storage/ofd_packets/00227244 [08:40:47]Write 298 bytes [08:40:47]NVStorageSaveData done [08:40:47]OFDSenderStorePacket done [08:40:47]KKMCreateOFDPacket done [08:40:47]NVStorageSaveData kkm_last_timestamp [08:40:47]File name is /storage/kkm_last_timestamp [08:40:47]Write 4 bytes [08:40:47]NVStorageSaveData done [08:40:47]ExternCall_PrintAddStr [08:40:47]wPrintStart [08:40:47]Write to MH i2c: 01 00 00 17 31 48 [08:40:47]Write i2c OK [08:40:47]MH_I2C_Read... [08:40:47]Read from MH i2c: 01 [08:40:47]MH_I2C_Read... [08:40:47]Read from MH i2c: 01 07 00 [08:40:47]MH_I2C_Read... [08:40:47]Read from MH i2c: 01 07 00 17 31 00 00 00 00 00 FF 0F 5D [08:40:47]RasterBufferAndPrint [08:40:47]line Счет N : (1)1962702 [08:40:47]line ИНН: 02508201610067 [08:40:47]line Контрольно-Кассовый Чек [08:40:47]line ПРОДАЖА [08:40:47]line ТРК (МРК, ГНК) : 21 [08:40:47]line Товар: 2710194210 [08:40:47]line ДТ-К-5 [08:40:47]line 20.000 * 0.00 [08:40:47]line = 0.00 [08:40:47]line НДС 12% НСП 1% [08:40:47]line > о реализуемом товаре [08:40:47]line ИТОГО: 0.00 [08:40:47]line НСП 1% : 0.00 [08:40:47]line НДС 12% : 0.00 [08:40:47]line Наличными: 0.00 [08:40:47]line Безнал.: 0.00 [08:40:47]line Место: АЗС № 133 "Партнер Нефть" [08:40:47]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [08:40:47]line СНО: Общий режим [08:40:47]line Чек 92 20.10.2024 08:40 [08:40:47]line Смена: 533 ФФД: 1.0 [08:40:47]line ЗНМ: 0300000091 [08:40:47]line РНМ: 0000000000091685 [08:40:47]line Версия ККМ: 001 [08:40:47]line Талоны: Топливные Талоны [08:40:47]line 4381933 [08:40:47]line ФМ: 0000000000871839 [08:40:47]line ФД: 227244 [08:40:47]line ФПД: 217251573550141 [08:40:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T084050&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227244&fm=217251573550141&tin=02508201610067®Number=0000000000091685&sum=0 [08:40:48]OFD Sender: Processing packet 227244 [packets to send 38, broken 37] [08:40:48]ProducePacketName [08:40:48]name=ofd_packets/00227244 [08:40:48]OFD Sender: To server: pG, [08:40:48]CommunicateWithHost lk.salyk.kg:30040 [08:40:48]ConnectInit lk.salyk.kg [08:40:48]written 0, free lines is 4095 [08:40:48]Connected sock=10 [08: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 33 39 0C 01 00 00 B4 E1 04 01 B9 4B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 12 C2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AC 77 03 00 35 04 06 00 C5 96 D2 DE 4C 3D AA 02 E0 B7 01 3C 5F B3 [08:40:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 38 E6 47 00 5B 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 33 39 10 04 04 00 AC 77 03 00 F4 03 04 00 11 6D 14 67 B6 04 01 00 00 4D A9 6B DE 7C 83 19 58 [08:40:48]CommunicateWithHost err = 0 [08:40:48]CheckOFDResponse [08:40:48]1017 (14) - 77093643461234 [08:40:48]1041 (16) - 0000000000871839 [08:40:48]1040 (4) - 227244 [08:40:48]1012 (4) - 20.10.2024 02:38 [08:40:48]1206 (1) - 0 [08:40:48]OFD Sender: Remove packet 227244 [08:40:48]ProducePacketName [08:40:48]name=ofd_packets/00227244 [08:40:48]NVStorageDeleteData [08:40:48]Write to MH i2c: 01 00 00 40 31 71 [08:40:48]Write i2c OK [08:40:48]MH_I2C_Read... [08:40:48]Read from MH i2c: 01 [08:40:48]MH_I2C_Read... [08:40:48]Read from MH i2c: 01 07 00 [08:40:48]MH_I2C_Read... [08:40:48]Read from MH i2c: 01 07 00 40 31 00 00 00 00 00 23 0D A8 [08:40:48]RasterBufferAndPrint [08:40:48]line [08:40:48]line [08:40:48]line [08:40:48]line [08:40:48]line [08:40:48]written 0, free lines is 3369 [08:40:48]process_action close_receipt done [08:40:48]requested_data is exist [08:40:48]produce_requested_data [08:40:48]requested_item fm.sn is exist - process it [08:40:48]wFMCommunicate request_size=4 [08:40:48]MH_SAM_APDU [08:40:48]CAPDU: 80 11 00 00 [08:40:48]Write to MH i2c: E2 08 00 47 31 80 11 00 00 00 00 00 00 F2 [08:40:48]Write i2c OK [08:40:48]MH_I2C_Read... [08:40:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:48]Read from MH i2c: E2 [08:40:48]MH_I2C_Read... [08:40:48]Read from MH i2c: E2 17 00 [08:40:48]MH_I2C_Read... [08:40:48]Read from MH i2c: E2 17 00 47 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 49 [08:40:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:40:48]wFMCommunicate OK [08:40:48]requested_item fd.num is exist - process it [08:40:48]SAM_PROTO_GetFieldsCounters [08:40:48]wFMCommunicate request_size=4 [08:40:48]MH_SAM_APDU [08:40:48]CAPDU: 80 13 00 00 [08:40:48]Write to MH i2c: E2 08 00 48 31 80 13 00 00 00 00 00 00 F5 [08:40:48]Write i2c OK [08:40:48]MH_I2C_Read... [08:40:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:40:48]Read from MH i2c: E2 [08:40:48]MH_I2C_Read... [08:40:48]Read from MH i2c: E2 62 00 [08:40:48]MH_I2C_Read... [08:40:48]Read from MH i2c: E2 62 00 48 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 AC 77 03 00 0E 04 04 00 15 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 6F [08:40: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 AC 77 03 00 0E 04 04 00 15 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 [08:40:48]wFMCommunicate OK [08:40:48]SAM_PROTO_GetFieldsCounters done [08:40:48]requested_item shift.num is exist - process it [08:40:48]requested_item shift.opened is exist - process it [08:40:48]req_shift_opened [08:40:48]FM_GetShiftState [08:40:48]SAM_PROTO_GetShiftState [08:40:48]wFMCommunicate request_size=4 [08:40:48]MH_SAM_APDU [08:40:48]CAPDU: 80 13 01 00 [08:40:48]Write to MH i2c: E2 08 00 49 31 80 13 01 00 00 00 00 00 F7 [08:40:48]Write i2c OK [08:40:48]MH_I2C_Read... [08:40:48]Read from MH i2c: E2 [08:40:48]MH_I2C_Read... [08:40:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:48]Read from MH i2c: E2 0E 00 [08:40:48]MH_I2C_Read... [08:40:48]Read from MH i2c: E2 0E 00 49 31 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 11 [08:40:48]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:40:48]wFMCommunicate OK [08:40:48]SAM_PROTO_GetShiftState done [08:40:48]FM_GetShiftState done [08:40:48]req_shift_opened done [08:40:48]requested_item shift.open_date is exist - process it [08:40:48]req_shift_open_date [08:40:48]req_shift_open_date done [08:40:48]produce_requested_data done [08:40:48]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227244,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [08:40:48]process_action_free close_receipt [08:40:48]json_value_free [08:40:48]json_value_free done [08:40:48]process_json_proto returns [08:40:48]Send response to host [08:40:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227244,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [08:40:48]free response buf [08:40:48]execute_script done [08:40:48]execute_script returns [08:40:48]free content buf [08:40:48]Sock 8.Close socket [08:40:48]Sock 8.Thread stoped [08:40:48]OFD Sender: No OFD packet to send [08:40:53]OFD Sender: No OFD packet to send [08:40:58]OFD Sender: No OFD packet to send [08:41:03]OFD Sender: No OFD packet to send [08:41:08]OFD Sender: No OFD packet to send [08:41:13]OFD Sender: No OFD packet to send [08:41:18]OFD Sender: No OFD packet to send [08:41:23]OFD Sender: No OFD packet to send [08:41:28]OFD Sender: No OFD packet to send [08:41:33]OFD Sender: No OFD packet to send [08:41:38]OFD Sender: No OFD packet to send [08:41:43]OFD Sender: No OFD packet to send [08:41:48]OFD Sender: No OFD packet to send [08:41:53]OFD Sender: No OFD packet to send [08:41:58]OFD Sender: No OFD packet to send [08:42:03]OFD Sender: No OFD packet to send [08:42:08]OFD Sender: No OFD packet to send [08:42:12]accept exits with 9 [08:42:12]New connection [08:42:12]New thread 3066965348 created [08:42:12]Thread 3066821988 joined [08:42:12]Waiting for new connection... [08:42:12] Sock 9.Parse request [08:42:12]Sock 9.Check first char [08:42:12]Sock 9.First char is OK [08:42:12]request: POST /json_proto HTTP/1.0 [08:42:12]Method: POST [08:42:12]URL: /json_proto [08:42:12]Method is POST - this is cgi request [08:42:12]url: /json_proto [08:42:12]query_string will be loaded in cgi processing [08:42:12]execute_cgi json_proto POST (null) [08:42:12]execute_cgi path=json_proto method=POST [08:42:12]POST find Content-Length [08:42:12]Host: 172.17.44.195:8080 [08:42:12]Content-Length: 676 [08:42:12]Content-Type: application/json [08:42:12] [08:42:12]POST finish read [08:42:12]Found Content-Length = 676 [08:42:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962704", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 11.290, "sum" : 860.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 860.00, "total" : 860.00, "payments": [ { "type": 0, "sum" : 860.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:42:12]execute_script... [08:42: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)1962704", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 11.290, "sum" : 860.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 860.00, "total" : 860.00, "payments": [ { "type": 0, "sum" : 860.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:42:12]POST & json_proto [08:42:12]process_json_proto [08:42:12]json parsed OK: [08:42:12]protocol is kg_v1.0 [08:42:12]action value=close_receipt [08:42:12]process_action close_receipt [08:42:12]cmd_close_receipt [08:42:12]MH_GetDate [08:42:12]Write to MH i2c: F0 00 00 4A 31 6A [08:42:12]Write i2c OK [08:42:12]MH_I2C_Read... [08:42:12]Read from MH i2c: F0 [08:42:12]MH_I2C_Read... [08:42:12]Read from MH i2c: F0 09 00 [08:42:12]MH_I2C_Read... [08:42:12]Read from MH i2c: F0 09 00 4A 31 00 68 C2 14 67 82 C9 CF 66 98 [08:42:12]GetLastDocTimeStamp 1729413650 [08:42:12]current date 1729413736 [08:42:12]FM_GetShiftState [08:42:12]SAM_PROTO_GetShiftState [08:42:12]wFMCommunicate request_size=4 [08:42:12]MH_SAM_APDU [08:42:12]CAPDU: 80 13 01 00 [08:42:12]Write to MH i2c: E2 08 00 4B 31 80 13 01 00 00 00 00 00 F9 [08:42:12]Write i2c OK [08:42:12]MH_I2C_Read... [08:42:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:42:13]Read from MH i2c: E2 [08:42:13]MH_I2C_Read... [08:42:13]Read from MH i2c: E2 0E 00 [08:42:13]MH_I2C_Read... [08:42:13]Read from MH i2c: E2 0E 00 4B 31 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 13 [08:42:13]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:42:13]wFMCommunicate OK [08:42:13]SAM_PROTO_GetShiftState done [08:42:13]FM_GetShiftState done [08:42:13]opened in 1729383750 [08:42:13]opened+sec_in_day 1729470150 [08:42:13]quantity*price = 86029 [08:42:13]sum+1 = 86031 [08:42:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 860.00 Внесено: 860.00 СДАЧА: 0.00 НСП 1% : 7.61 НДС 12% : 91.36 Наличными: 860.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 93 20.10.2024 08:42 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227245 ФПД: 256306259791119 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T084216&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227245&fm=256306259791119&tin=02508201610067®Number=0000000000091685&sum=86000 [08:42:14]StoreToDocumentArchive [08:42:14]shift 533 fd 227245 [08:42:14]save to /storage/0533/doc_00227245 [08:42:14]save last doc name /storage/0533/doc_00227245 to /storage/kkm_last_doc_name [08:42:14]save OK [08:42:14]Clear old archive folders... [08:42:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:42:14]tlvbuf is 005D8EF0 [08:42:14]SAM_PROTO_ClearQueue [08:42:14]wFMCommunicate request_size=4 [08:42:14]MH_SAM_APDU [08:42:14]CAPDU: 80 09 00 00 [08:42:14]Write to MH i2c: E2 08 00 58 31 80 09 00 00 00 00 00 00 FB [08:42:14]Write i2c OK [08:42:14]MH_I2C_Read... [08:42:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:42:14]Read from MH i2c: E2 [08:42:14]MH_I2C_Read... [08:42:14]Read from MH i2c: E2 03 00 [08:42:14]MH_I2C_Read... [08:42:14]Read from MH i2c: E2 03 00 58 31 00 90 00 FD [08:42:14]RAPDU: 90 00 [08:42:14]wFMCommunicate OK [08:42:14]SAM_PROTO_ClearQueue done [08:42:14]KKMCreateOFDPacket [08:42:14]OFDProtocolAddRootSTLVToBuf [08:42:14]FM_MakeSignedData [08:42:14]FM_MakeSignedData [08:42:14]SAM_PROTO_SignData [08:42:14]wFMCommunicate request_size=4 [08:42:14]MH_SAM_APDU [08:42:14]CAPDU: 80 0D 01 02 [08:42:14]Write to MH i2c: E2 08 00 59 31 80 0D 01 02 00 00 00 00 03 [08:42:14]Write i2c OK [08:42:14]MH_I2C_Read... [08:42:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:42:14]Read from MH i2c: E2 [08:42:14]MH_I2C_Read... [08:42:14]Read from MH i2c: E2 03 00 [08:42:14]MH_I2C_Read... [08:42:14]Read from MH i2c: E2 03 00 59 31 00 90 00 FE [08:42:14]RAPDU: 90 00 [08:42:14]wFMCommunicate OK [08:42:14]wFMCommunicate request_size=255 [08:42:14]MH_SAM_APDU [08:42: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 1A 2C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0E 50 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 4F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 23 00 00 00 00 07 04 06 00 F0 4F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 68 C2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AD 77 03 00 35 04 06 00 E9 1B F3 91 [08:42:14]Write to MH i2c: E2 02 01 5A 31 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1A 2C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0E 50 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 4F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 23 00 00 00 00 07 04 06 00 F0 4F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 68 C2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AD 77 03 00 35 04 06 00 E9 1B F3 91 00 00 04 [08:42:14]Write i2c OK [08:42:14]MH_I2C_Read... [08:42:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:42:14]Read from MH i2c: E2 [08:42:14]MH_I2C_Read... [08:42:14]Read from MH i2c: E2 03 00 [08:42:14]MH_I2C_Read... [08:42:14]Read from MH i2c: E2 03 00 5A 31 00 90 00 FF [08:42:14]RAPDU: 90 00 [08:42:14]wFMCommunicate OK [08:42:14]wFMCommunicate request_size=7 [08:42:14]MH_SAM_APDU [08:42:14]CAPDU: 80 0D 02 02 02 8D 0F [08:42:14]Write to MH i2c: E2 0A 00 5B 31 80 0D 02 02 02 00 8D 0F 00 00 A6 [08:42:14]Write i2c OK [08:42:14]MH_I2C_Read... [08:42:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:42:14]Read from MH i2c: E2 [08:42:14]MH_I2C_Read... [08:42:14]Read from MH i2c: E2 03 00 [08:42:14]MH_I2C_Read... [08:42:14]Read from MH i2c: E2 03 00 5B 31 00 90 00 00 [08:42:14]RAPDU: 90 00 [08:42:14]wFMCommunicate OK [08:42:14]wFMCommunicate request_size=4 [08:42:14]MH_SAM_APDU [08:42:14]CAPDU: 80 0D 03 02 [08:42:14]Write to MH i2c: E2 08 00 5C 31 80 0D 03 02 00 00 00 00 08 [08:42:14]Write i2c OK [08:42:14]MH_I2C_Read... [08:42:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:42:14]Read from MH i2c: E2 [08:42:14]MH_I2C_Read... [08:42:14]Read from MH i2c: E2 0B 00 [08:42:14]MH_I2C_Read... [08:42:14]Read from MH i2c: E2 0B 00 5C 31 00 F4 CD F7 43 B8 0D 8C 0D 90 00 62 [08:42:14]RAPDU: F4 CD F7 43 B8 0D 8C 0D 90 00 [08:42:14]wFMCommunicate OK [08:42:14]SAM_PROTO_SignData done [08:42:14]FM_MakeSignedData done [08:42:14]CreateOFDProtocolMessage [08:42:14]wFMCommunicate request_size=4 [08:42:14]MH_SAM_APDU [08:42:14]CAPDU: 80 11 00 00 [08:42:14]Write to MH i2c: E2 08 00 5D 31 80 11 00 00 00 00 00 00 08 [08:42:14]Write i2c OK [08:42:14]MH_I2C_Read... [08:42:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:42:14]Read from MH i2c: E2 [08:42:14]MH_I2C_Read... [08:42:14]Read from MH i2c: E2 17 00 [08:42:14]MH_I2C_Read... [08:42:14]Read from MH i2c: E2 17 00 5D 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 5F [08:42:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:42:14]wFMCommunicate OK [08:42:14]CreateOFDProtocolMessage done [08:42:14]OFDSenderStorePacket 227245 [08:42:14]StoreOFDPacket docnum=227245 [08:42:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 E9 8F 04 01 0B 85 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1A 2C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0E 50 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 4F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 23 00 00 00 00 07 04 06 00 F0 4F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 68 C2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AD 77 03 00 35 04 06 00 E9 1B F3 91 8D 0F F4 CD F7 43 B8 0D 8C 0D [08:42:14]CheckFolder [08:42:14]dirname=/storage/ofd_packets [08:42:14]CheckFolder done [08:42:14]ProducePacketName [08:42:14]name=ofd_packets/00227245 [08:42:14]NVStorageSaveData ofd_packets/00227245 [08:42:14]File name is /storage/ofd_packets/00227245 [08:42:14]Write 298 bytes [08:42:14]NVStorageSaveData done [08:42:14]OFDSenderStorePacket done [08:42:14]KKMCreateOFDPacket done [08:42:14]NVStorageSaveData kkm_last_timestamp [08:42:14]File name is /storage/kkm_last_timestamp [08:42:14]Write 4 bytes [08:42:14]NVStorageSaveData done [08:42:14]ExternCall_PrintAddStr [08:42:14]wPrintStart [08:42:14]Write to MH i2c: 01 00 00 5E 31 8F [08:42:14]Write i2c OK [08:42:14]MH_I2C_Read... [08:42:14]Read from MH i2c: 01 [08:42:14]MH_I2C_Read... [08:42:14]Read from MH i2c: 01 07 00 [08:42:14]MH_I2C_Read... [08:42:14]Read from MH i2c: 01 07 00 5E 31 00 00 00 00 00 FF 0F A4 [08:42:14]RasterBufferAndPrint [08:42:14]line Счет N : (1)1962704 [08:42:14]line ИНН: 02508201610067 [08:42:14]line Контрольно-Кассовый Чек [08:42:14]line ПРОДАЖА [08:42:14]line ТРК (МРК, ГНК) : 31 [08:42:14]line Товар: 2710194210 [08:42:14]line ДТ-К-5 [08:42:14]line 11.290 * 76.20 [08:42:14]line = 860.30 [08:42:14]line НДС 12% НСП 1% [08:42:14]line > о реализуемом товаре [08:42:14]line ОКРУГЛЕНИЕ: -0.30 [08:42:14]line ИТОГО: 860.00 [08:42:14]line Внесено: 860.00 [08:42:14]line СДАЧА: 0.00 [08:42:14]line НСП 1% : 7.61 [08:42:14]line НДС 12% : 91.36 [08:42:14]line Наличными: 860.00 [08:42:14]line Безнал.: 0.00 [08:42:14]line Место: АЗС № 133 "Партнер Нефть" [08:42:14]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [08:42:14]line СНО: Общий режим [08:42:14]line Чек 93 20.10.2024 08:42 [08:42:14]line Смена: 533 ФФД: 1.0 [08:42:14]line ЗНМ: 0300000091 [08:42:14]line РНМ: 0000000000091685 [08:42:14]line Версия ККМ: 001 [08:42:14]line ФМ: 0000000000871839 [08:42:14]line ФД: 227245 [08:42:14]line ФПД: 256306259791119 [08:42:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T084216&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227245&fm=256306259791119&tin=02508201610067®Number=0000000000091685&sum=86000 [08:42:14]written 0, free lines is 4095 [08:42:14]OFD Sender: Processing packet 227245 [packets to send 38, broken 37] [08:42:14]ProducePacketName [08:42:14]name=ofd_packets/00227245 [08:42:14]OFD Sender: To server: pG, [08:42:14]CommunicateWithHost lk.salyk.kg:30040 [08:42:14]ConnectInit lk.salyk.kg [08:42:14]Connected sock=8 [08:42:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 E9 8F 04 01 0B 85 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1A 2C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0E 50 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 4F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 23 00 00 00 00 07 04 06 00 F0 4F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 68 C2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AD 77 03 00 35 04 06 00 E9 1B F3 91 8D 0F F4 CD F7 43 B8 0D 8C 0D [08:42: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 33 39 4F 00 00 00 0B A7 47 00 07 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AD 77 03 00 F4 03 04 00 68 6D 14 67 B6 04 01 00 00 FB 05 3E 9F 9D 2E 4D 9F [08:42:15]CommunicateWithHost err = 0 [08:42:15]CheckOFDResponse [08:42:15]1017 (14) - 77093643461234 [08:42:15]1041 (16) - 0000000000871839 [08:42:15]1040 (4) - 227245 [08:42:15]1012 (4) - 20.10.2024 02:39 [08:42:15]1206 (1) - 0 [08:42:15]OFD Sender: Remove packet 227245 [08:42:15]ProducePacketName [08:42:15]name=ofd_packets/00227245 [08:42:15]NVStorageDeleteData [08:42:15]Write to MH i2c: 01 00 00 88 31 B9 [08:42:15]Write i2c OK [08:42:15]MH_I2C_Read... [08:42:15]Read from MH i2c: 01 [08:42:15]MH_I2C_Read... [08:42:15]Read from MH i2c: 01 07 00 [08:42:15]MH_I2C_Read... [08:42:15]Read from MH i2c: 01 07 00 88 31 00 00 00 00 00 0D 0D DA [08:42:15]RasterBufferAndPrint [08:42:15]line [08:42:15]line [08:42:15]line [08:42:15]line [08:42:15]line [08:42:15]written 0, free lines is 3347 [08:42:15]process_action close_receipt done [08:42:15]requested_data is exist [08:42:15]produce_requested_data [08:42:15]requested_item fm.sn is exist - process it [08:42:15]wFMCommunicate request_size=4 [08:42:15]MH_SAM_APDU [08:42:15]CAPDU: 80 11 00 00 [08:42:15]Write to MH i2c: E2 08 00 8F 31 80 11 00 00 00 00 00 00 3A [08:42:15]Write i2c OK [08:42:15]MH_I2C_Read... [08:42:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:42:15]Read from MH i2c: E2 [08:42:15]MH_I2C_Read... [08:42:15]Read from MH i2c: E2 17 00 [08:42:15]MH_I2C_Read... [08:42:15]Read from MH i2c: E2 17 00 8F 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 91 [08:42:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:42:15]wFMCommunicate OK [08:42:15]requested_item fd.num is exist - process it [08:42:15]SAM_PROTO_GetFieldsCounters [08:42:15]wFMCommunicate request_size=4 [08:42:15]MH_SAM_APDU [08:42:15]CAPDU: 80 13 00 00 [08:42:15]Write to MH i2c: E2 08 00 90 31 80 13 00 00 00 00 00 00 3D [08:42:15]Write i2c OK [08:42:15]MH_I2C_Read... [08:42:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:42:15]Read from MH i2c: E2 [08:42:15]MH_I2C_Read... [08:42:15]Read from MH i2c: E2 62 00 [08:42:15]MH_I2C_Read... [08:42:15]Read from MH i2c: E2 62 00 90 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 AD 77 03 00 0E 04 04 00 15 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 BB [08:42:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 AD 77 03 00 0E 04 04 00 15 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 [08:42:15]wFMCommunicate OK [08:42:15]SAM_PROTO_GetFieldsCounters done [08:42:15]requested_item shift.num is exist - process it [08:42:15]requested_item shift.opened is exist - process it [08:42:15]req_shift_opened [08:42:15]FM_GetShiftState [08:42:15]SAM_PROTO_GetShiftState [08:42:15]wFMCommunicate request_size=4 [08:42:15]MH_SAM_APDU [08:42:15]CAPDU: 80 13 01 00 [08:42:15]Write to MH i2c: E2 08 00 91 31 80 13 01 00 00 00 00 00 3F [08:42:15]Write i2c OK [08:42:15]MH_I2C_Read... [08:42:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:42:15]Read from MH i2c: E2 [08:42:15]MH_I2C_Read... [08:42:15]Read from MH i2c: E2 0E 00 [08:42:15]MH_I2C_Read... [08:42:15]Read from MH i2c: E2 0E 00 91 31 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 59 [08:42:15]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:42:15]wFMCommunicate OK [08:42:15]SAM_PROTO_GetShiftState done [08:42:15]FM_GetShiftState done [08:42:15]req_shift_opened done [08:42:15]requested_item shift.open_date is exist - process it [08:42:15]req_shift_open_date [08:42:15]req_shift_open_date done [08:42:15]produce_requested_data done [08:42:15]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227245,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [08:42:15]process_action_free close_receipt [08:42:15]json_value_free [08:42:15]json_value_free done [08:42:15]process_json_proto returns [08:42:15]Send response to host [08:42:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227245,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [08:42:15]free response buf [08:42:15]execute_script done [08:42:15]execute_script returns [08:42:15]free content buf [08:42:15]Sock 9.Close socket [08:42:15]Sock 9.Thread stoped [08:42:15]OFD Sender: No OFD packet to send [08:42:20]OFD Sender: No OFD packet to send [08:42:25]OFD Sender: No OFD packet to send [08:42:30]OFD Sender: No OFD packet to send [08:42:35]OFD Sender: No OFD packet to send [08:42:40]OFD Sender: No OFD packet to send [08:42:45]OFD Sender: No OFD packet to send [08:42:50]OFD Sender: No OFD packet to send [08:42:55]OFD Sender: No OFD packet to send [08:43:00]OFD Sender: No OFD packet to send [08:43:05]OFD Sender: No OFD packet to send [08:43:10]OFD Sender: No OFD packet to send [08:43:15]OFD Sender: No OFD packet to send [08:43:20]OFD Sender: No OFD packet to send [08:43:25]OFD Sender: No OFD packet to send [08:43:30]OFD Sender: No OFD packet to send [08:43:35]OFD Sender: No OFD packet to send [08:43:40]OFD Sender: No OFD packet to send [08:43:44]accept exits with 10 [08:43:44]New connection [08:43:44]New thread 3066821988 created [08:43:44]Thread 3066965348 joined [08:43:44]Waiting for new connection... [08:43:44] Sock 10.Parse request [08:43:44]Sock 10.Check first char [08:43:44]Sock 10.First char is OK [08:43:44]request: POST /json_proto HTTP/1.0 [08:43:44]Method: POST [08:43:44]URL: /json_proto [08:43:44]Method is POST - this is cgi request [08:43:44]url: /json_proto [08:43:44]query_string will be loaded in cgi processing [08:43:44]execute_cgi json_proto POST (null) [08:43:44]execute_cgi path=json_proto method=POST [08:43:44]POST find Content-Length [08:43:44]Host: 172.17.44.195:8080 [08:43:44]Content-Length: 675 [08:43:44]Content-Type: application/json [08:43:44] [08:43:44]POST finish read [08:43:44]Found Content-Length = 675 [08:43:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962705", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:43:44]execute_script... [08:43: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)1962705", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:43:44]POST & json_proto [08:43:44]process_json_proto [08:43:44]json parsed OK: [08:43:44]protocol is kg_v1.0 [08:43:44]action value=close_receipt [08:43:44]process_action close_receipt [08:43:44]cmd_close_receipt [08:43:44]MH_GetDate [08:43:44]Write to MH i2c: F0 00 00 92 31 B2 [08:43:44]Write i2c OK [08:43:44]MH_I2C_Read... [08:43:44]Read from MH i2c: F0 [08:43:44]MH_I2C_Read... [08:43:44]Read from MH i2c: F0 09 00 [08:43:44]MH_I2C_Read... [08:43:44]Read from MH i2c: F0 09 00 92 31 00 C4 C2 14 67 82 C9 CF 66 3C [08:43:44]GetLastDocTimeStamp 1729413736 [08:43:44]current date 1729413828 [08:43:44]FM_GetShiftState [08:43:44]SAM_PROTO_GetShiftState [08:43:44]wFMCommunicate request_size=4 [08:43:44]MH_SAM_APDU [08:43:44]CAPDU: 80 13 01 00 [08:43:44]Write to MH i2c: E2 08 00 93 31 80 13 01 00 00 00 00 00 41 [08:43:44]Write i2c OK [08:43:44]MH_I2C_Read... [08:43:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:43:44]Read from MH i2c: E2 [08:43:44]MH_I2C_Read... [08:43:44]Read from MH i2c: E2 0E 00 [08:43:44]MH_I2C_Read... [08:43:44]Read from MH i2c: E2 0E 00 93 31 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 5B [08:43:44]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:43:44]wFMCommunicate OK [08:43:44]SAM_PROTO_GetShiftState done [08:43:44]FM_GetShiftState done [08:43:44]opened in 1729383750 [08:43:44]opened+sec_in_day 1729470150 [08:43:44]quantity*price = 40005 [08:43:44]sum+1 = 40006 [08:43:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 94 20.10.2024 08:43 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227246 ФПД: 189166637751985 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T084348&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227246&fm=189166637751985&tin=02508201610067®Number=0000000000091685&sum=40000 [08:43:45]StoreToDocumentArchive [08:43:45]shift 533 fd 227246 [08:43:45]save to /storage/0533/doc_00227246 [08:43:45]save last doc name /storage/0533/doc_00227246 to /storage/kkm_last_doc_name [08:43:45]save OK [08:43:45]Clear old archive folders... [08:43:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:43:45]tlvbuf is 00508EF0 [08:43:45]SAM_PROTO_ClearQueue [08:43:45]wFMCommunicate request_size=4 [08:43:45]MH_SAM_APDU [08:43:45]CAPDU: 80 09 00 00 [08:43:45]Write to MH i2c: E2 08 00 A0 31 80 09 00 00 00 00 00 00 43 [08:43:45]Write i2c OK [08:43:45]MH_I2C_Read... [08:43:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:43:45]Read from MH i2c: E2 [08:43:45]MH_I2C_Read... [08:43:45]Read from MH i2c: E2 03 00 [08:43:45]MH_I2C_Read... [08:43:45]Read from MH i2c: E2 03 00 A0 31 00 90 00 45 [08:43:45]RAPDU: 90 00 [08:43:45]wFMCommunicate OK [08:43:45]SAM_PROTO_ClearQueue done [08:43:45]KKMCreateOFDPacket [08:43:45]OFDProtocolAddRootSTLVToBuf [08:43:45]FM_MakeSignedData [08:43:45]FM_MakeSignedData [08:43:45]SAM_PROTO_SignData [08:43:45]wFMCommunicate request_size=4 [08:43:45]MH_SAM_APDU [08:43:45]CAPDU: 80 0D 01 02 [08:43:45]Write to MH i2c: E2 08 00 A1 31 80 0D 01 02 00 00 00 00 4B [08:43:45]Write i2c OK [08:43:45]MH_I2C_Read... [08:43:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:43:45]Read from MH i2c: E2 [08:43:45]MH_I2C_Read... [08:43:45]Read from MH i2c: E2 03 00 [08:43:45]MH_I2C_Read... [08:43:45]Read from MH i2c: E2 03 00 A1 31 00 90 00 46 [08:43:45]RAPDU: 90 00 [08:43:45]wFMCommunicate OK [08:43:45]wFMCommunicate request_size=255 [08:43:45]MH_SAM_APDU [08:43: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 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 C4 C2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AE 77 03 00 35 04 06 00 AC 0B CA 3F [08:43:45]Write to MH i2c: E2 02 01 A2 31 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 C4 C2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AE 77 03 00 35 04 06 00 AC 0B CA 3F 00 00 29 [08:43:45]Write i2c OK [08:43:45]MH_I2C_Read... [08:43:45]OFD Sender: No OFD packet to send [08:43:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:43:45]Read from MH i2c: E2 [08:43:45]MH_I2C_Read... [08:43:45]Read from MH i2c: E2 03 00 [08:43:45]MH_I2C_Read... [08:43:45]Read from MH i2c: E2 03 00 A2 31 00 90 00 47 [08:43:45]RAPDU: 90 00 [08:43:45]wFMCommunicate OK [08:43:45]wFMCommunicate request_size=7 [08:43:45]MH_SAM_APDU [08:43:45]CAPDU: 80 0D 02 02 02 1E B1 [08:43:45]Write to MH i2c: E2 0A 00 A3 31 80 0D 02 02 02 00 1E B1 00 00 21 [08:43:45]Write i2c OK [08:43:45]MH_I2C_Read... [08:43:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:43:45]Read from MH i2c: E2 [08:43:45]MH_I2C_Read... [08:43:45]Read from MH i2c: E2 03 00 [08:43:45]MH_I2C_Read... [08:43:45]Read from MH i2c: E2 03 00 A3 31 00 90 00 48 [08:43:45]RAPDU: 90 00 [08:43:45]wFMCommunicate OK [08:43:45]wFMCommunicate request_size=4 [08:43:45]MH_SAM_APDU [08:43:45]CAPDU: 80 0D 03 02 [08:43:45]Write to MH i2c: E2 08 00 A4 31 80 0D 03 02 00 00 00 00 50 [08:43:45]Write i2c OK [08:43:45]MH_I2C_Read... [08:43:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:43:45]Read from MH i2c: E2 [08:43:45]MH_I2C_Read... [08:43:45]Read from MH i2c: E2 0B 00 [08:43:45]MH_I2C_Read... [08:43:45]Read from MH i2c: E2 0B 00 A4 31 00 C8 6E 55 14 2A 84 F0 4D 90 00 DB [08:43:45]RAPDU: C8 6E 55 14 2A 84 F0 4D 90 00 [08:43:45]wFMCommunicate OK [08:43:45]SAM_PROTO_SignData done [08:43:45]FM_MakeSignedData done [08:43:45]CreateOFDProtocolMessage [08:43:45]wFMCommunicate request_size=4 [08:43:45]MH_SAM_APDU [08:43:45]CAPDU: 80 11 00 00 [08:43:45]Write to MH i2c: E2 08 00 A5 31 80 11 00 00 00 00 00 00 50 [08:43:45]Write i2c OK [08:43:45]MH_I2C_Read... [08:43:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:43:45]Read from MH i2c: E2 [08:43:45]MH_I2C_Read... [08:43:45]Read from MH i2c: E2 17 00 [08:43:45]MH_I2C_Read... [08:43:45]Read from MH i2c: E2 17 00 A5 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A7 [08:43:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:43:45]wFMCommunicate OK [08:43:45]CreateOFDProtocolMessage done [08:43:45]OFDSenderStorePacket 227246 [08:43:45]StoreOFDPacket docnum=227246 [08:43:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 91 DC 04 01 65 BC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 C4 C2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AE 77 03 00 35 04 06 00 AC 0B CA 3F 1E B1 C8 6E 55 14 2A 84 F0 4D [08:43:45]CheckFolder [08:43:45]dirname=/storage/ofd_packets [08:43:45]CheckFolder done [08:43:45]ProducePacketName [08:43:45]name=ofd_packets/00227246 [08:43:45]NVStorageSaveData ofd_packets/00227246 [08:43:45]File name is /storage/ofd_packets/00227246 [08:43:45]Write 298 bytes [08:43:45]NVStorageSaveData done [08:43:45]OFDSenderStorePacket done [08:43:45]KKMCreateOFDPacket done [08:43:45]NVStorageSaveData kkm_last_timestamp [08:43:45]File name is /storage/kkm_last_timestamp [08:43:45]Write 4 bytes [08:43:45]NVStorageSaveData done [08:43:45]ExternCall_PrintAddStr [08:43:45]wPrintStart [08:43:45]Write to MH i2c: 01 00 00 A6 31 D7 [08:43:45]Write i2c OK [08:43:45]MH_I2C_Read... [08:43:45]Read from MH i2c: 01 [08:43:45]MH_I2C_Read... [08:43:45]Read from MH i2c: 01 07 00 [08:43:45]MH_I2C_Read... [08:43:45]Read from MH i2c: 01 07 00 A6 31 00 00 00 00 00 FF 0F EC [08:43:45]RasterBufferAndPrint [08:43:45]line Счет N : (1)1962705 [08:43:45]line ИНН: 02508201610067 [08:43:45]line Контрольно-Кассовый Чек [08:43:45]line ПРОДАЖА [08:43:45]line ТРК (МРК, ГНК) : 61 [08:43:45]line Товар: 2710194210 [08:43:45]line ДТ-К-5 [08:43:45]line 5.250 * 76.20 [08:43:45]line = 400.05 [08:43:45]line НДС 12% НСП 1% [08:43:45]line > о реализуемом товаре [08:43:45]line ОКРУГЛЕНИЕ: -0.05 [08:43:45]line ИТОГО: 400.00 [08:43:45]line Внесено: 400.00 [08:43:45]line СДАЧА: 0.00 [08:43:45]line НСП 1% : 3.54 [08:43:45]line НДС 12% : 42.48 [08:43:45]line Наличными: 400.00 [08:43:45]line Безнал.: 0.00 [08:43:45]line Место: АЗС № 133 "Партнер Нефть" [08:43:45]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [08:43:45]line СНО: Общий режим [08:43:45]line Чек 94 20.10.2024 08:43 [08:43:45]line Смена: 533 ФФД: 1.0 [08:43:45]line ЗНМ: 0300000091 [08:43:45]line РНМ: 0000000000091685 [08:43:45]line Версия ККМ: 001 [08:43:45]line ФМ: 0000000000871839 [08:43:45]line ФД: 227246 [08:43:45]line ФПД: 189166637751985 [08:43:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T084348&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227246&fm=189166637751985&tin=02508201610067®Number=0000000000091685&sum=40000 [08:43:46]OFD Sender: Processing packet 227246 [packets to send 38, broken 37] [08:43:46]ProducePacketName [08:43:46]name=ofd_packets/00227246 [08:43:46]OFD Sender: To server: pG, [08:43:46]CommunicateWithHost lk.salyk.kg:30040 [08:43:46]ConnectInit lk.salyk.kg [08:43:46]written 0, free lines is 4095 [08:43:46]Connected sock=9 [08:43: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 33 39 0C 01 00 00 91 DC 04 01 65 BC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 C4 C2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AE 77 03 00 35 04 06 00 AC 0B CA 3F 1E B1 C8 6E 55 14 2A 84 F0 4D [08: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 33 39 4F 00 00 00 67 6D 47 00 4B 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 33 39 10 04 04 00 AE 77 03 00 F4 03 04 00 C3 6D 14 67 B6 04 01 00 00 40 1A 76 2E 9F A2 80 7B [08:43:46]CommunicateWithHost err = 0 [08:43:46]CheckOFDResponse [08:43:46]1017 (14) - 77093643461234 [08:43:46]1041 (16) - 0000000000871839 [08:43:46]1040 (4) - 227246 [08:43:46]1012 (4) - 20.10.2024 02:41 [08:43:46]1206 (1) - 0 [08:43:46]OFD Sender: Remove packet 227246 [08:43:46]ProducePacketName [08:43:46]name=ofd_packets/00227246 [08:43:46]NVStorageDeleteData [08:43:46]Write to MH i2c: 01 00 00 D0 31 01 [08:43:46]Write i2c OK [08:43:46]MH_I2C_Read... [08:43:46]Read from MH i2c: 01 [08:43:46]MH_I2C_Read... [08:43:46]Read from MH i2c: 01 07 00 [08:43:46]MH_I2C_Read... [08:43:46]Read from MH i2c: 01 07 00 D0 31 00 00 00 00 00 02 0D 17 [08:43:46]RasterBufferAndPrint [08:43:46]line [08:43:46]line [08:43:46]line [08:43:46]line [08:43:46]line [08:43:46]written 0, free lines is 3336 [08:43:46]process_action close_receipt done [08:43:46]requested_data is exist [08:43:46]produce_requested_data [08:43:46]requested_item fm.sn is exist - process it [08:43:46]wFMCommunicate request_size=4 [08:43:46]MH_SAM_APDU [08:43:46]CAPDU: 80 11 00 00 [08:43:46]Write to MH i2c: E2 08 00 D7 31 80 11 00 00 00 00 00 00 82 [08:43:46]Write i2c OK [08:43:46]MH_I2C_Read... [08:43:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:43:46]Read from MH i2c: E2 [08:43:46]MH_I2C_Read... [08:43:46]Read from MH i2c: E2 17 00 [08:43:46]MH_I2C_Read... [08:43:46]Read from MH i2c: E2 17 00 D7 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D9 [08:43:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:43:46]wFMCommunicate OK [08:43:46]requested_item fd.num is exist - process it [08:43:46]SAM_PROTO_GetFieldsCounters [08:43:46]wFMCommunicate request_size=4 [08:43:46]MH_SAM_APDU [08:43:46]CAPDU: 80 13 00 00 [08:43:46]Write to MH i2c: E2 08 00 D8 31 80 13 00 00 00 00 00 00 85 [08:43:46]Write i2c OK [08:43:46]MH_I2C_Read... [08:43:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:43:46]Read from MH i2c: E2 [08:43:46]MH_I2C_Read... [08:43:46]Read from MH i2c: E2 62 00 [08:43:46]MH_I2C_Read... [08:43:46]Read from MH i2c: E2 62 00 D8 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 AE 77 03 00 0E 04 04 00 15 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 07 [08:43: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 AE 77 03 00 0E 04 04 00 15 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 [08:43:46]wFMCommunicate OK [08:43:46]SAM_PROTO_GetFieldsCounters done [08:43:46]requested_item shift.num is exist - process it [08:43:46]requested_item shift.opened is exist - process it [08:43:46]req_shift_opened [08:43:46]FM_GetShiftState [08:43:46]SAM_PROTO_GetShiftState [08:43:46]wFMCommunicate request_size=4 [08:43:46]MH_SAM_APDU [08:43:46]CAPDU: 80 13 01 00 [08:43:46]Write to MH i2c: E2 08 00 D9 31 80 13 01 00 00 00 00 00 87 [08:43:46]Write i2c OK [08:43:46]MH_I2C_Read... [08:43:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:43:47]Read from MH i2c: E2 [08:43:47]MH_I2C_Read... [08:43:47]Read from MH i2c: E2 0E 00 [08:43:47]MH_I2C_Read... [08:43:47]Read from MH i2c: E2 0E 00 D9 31 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 A1 [08:43:47]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:43:47]wFMCommunicate OK [08:43:47]SAM_PROTO_GetShiftState done [08:43:47]FM_GetShiftState done [08:43:47]req_shift_opened done [08:43:47]requested_item shift.open_date is exist - process it [08:43:47]req_shift_open_date [08:43:47]req_shift_open_date done [08:43:47]produce_requested_data done [08:43:47]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227246,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [08:43:47]process_action_free close_receipt [08:43:47]json_value_free [08:43:47]json_value_free done [08:43:47]process_json_proto returns [08:43:47]Send response to host [08:43:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227246,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [08:43:47]free response buf [08:43:47]execute_script done [08:43:47]execute_script returns [08:43:47]free content buf [08:43:47]Sock 10.Close socket [08:43:47]Sock 10.Thread stoped [08:43:47]OFD Sender: No OFD packet to send [08:43:52]OFD Sender: No OFD packet to send [08:43:57]OFD Sender: No OFD packet to send [08:44:02]OFD Sender: No OFD packet to send [08:44:07]OFD Sender: No OFD packet to send [08:44:10]accept exits with 8 [08:44:10]New connection [08:44:10]New thread 3066965348 created [08:44:10]Thread 3066821988 joined [08:44:10]Waiting for new connection... [08:44:10] Sock 8.Parse request [08:44:10]Sock 8.Check first char [08:44:10]Sock 8.First char is OK [08:44:10]request: POST /json_proto HTTP/1.0 [08:44:10]Method: POST [08:44:10]URL: /json_proto [08:44:10]Method is POST - this is cgi request [08:44:10]url: /json_proto [08:44:10]query_string will be loaded in cgi processing [08:44:10]execute_cgi json_proto POST (null) [08:44:10]execute_cgi path=json_proto method=POST [08:44:10]POST find Content-Length [08:44:10]Host: 172.17.44.195:8080 [08:44:10]Content-Length: 680 [08:44:10]Content-Type: application/json [08:44:10] [08:44:10]POST finish read [08:44:10]Found Content-Length = 680 [08:44:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962706", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:44:10]execute_script... [08:44:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962706", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:44:10]POST & json_proto [08:44:10]process_json_proto [08:44:10]json parsed OK: [08:44:10]protocol is kg_v1.0 [08:44:10]action value=close_receipt [08:44:10]process_action close_receipt [08:44:10]cmd_close_receipt [08:44:10]MH_GetDate [08:44:10]Write to MH i2c: F0 00 00 DA 31 FA [08:44:10]Write i2c OK [08:44:10]MH_I2C_Read... [08:44:10]Read from MH i2c: F0 [08:44:10]MH_I2C_Read... [08:44:10]Read from MH i2c: F0 09 00 [08:44:10]MH_I2C_Read... [08:44:10]Read from MH i2c: F0 09 00 DA 31 00 DE C2 14 67 82 C9 CF 66 9E [08:44:10]GetLastDocTimeStamp 1729413828 [08:44:10]current date 1729413854 [08:44:10]FM_GetShiftState [08:44:10]SAM_PROTO_GetShiftState [08:44:10]wFMCommunicate request_size=4 [08:44:10]MH_SAM_APDU [08:44:10]CAPDU: 80 13 01 00 [08:44:10]Write to MH i2c: E2 08 00 DB 31 80 13 01 00 00 00 00 00 89 [08:44:10]Write i2c OK [08:44:10]MH_I2C_Read... [08:44:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:10]Read from MH i2c: E2 [08:44:10]MH_I2C_Read... [08:44:10]Read from MH i2c: E2 0E 00 [08:44:10]MH_I2C_Read... [08:44:10]Read from MH i2c: E2 0E 00 DB 31 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 A3 [08:44:10]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:44:10]wFMCommunicate OK [08:44:10]SAM_PROTO_GetShiftState done [08:44:10]FM_GetShiftState done [08:44:10]opened in 1729383750 [08:44:10]opened+sec_in_day 1729470150 [08:44:10]quantity*price = 100050 [08:44:10]sum+1 = 100052 [08:44:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 95 20.10.2024 08:44 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227247 ФПД: 153219776720105 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T084414&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227247&fm=153219776720105&tin=02508201610067®Number=0000000000091685&sum=100000 [08:44:11]StoreToDocumentArchive [08:44:11]shift 533 fd 227247 [08:44:11]save to /storage/0533/doc_00227247 [08:44:11]save last doc name /storage/0533/doc_00227247 to /storage/kkm_last_doc_name [08:44:11]save OK [08:44:11]Clear old archive folders... [08:44:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:44:11]tlvbuf is B6EDD9F0 [08:44:11]SAM_PROTO_ClearQueue [08:44:11]wFMCommunicate request_size=4 [08:44:11]MH_SAM_APDU [08:44:11]CAPDU: 80 09 00 00 [08:44:11]Write to MH i2c: E2 08 00 E8 31 80 09 00 00 00 00 00 00 8B [08:44:11]Write i2c OK [08:44:11]MH_I2C_Read... [08:44:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:44:11]Read from MH i2c: E2 [08:44:11]MH_I2C_Read... [08:44:11]Read from MH i2c: E2 03 00 [08:44:11]MH_I2C_Read... [08:44:11]Read from MH i2c: E2 03 00 E8 31 00 90 00 8D [08:44:11]RAPDU: 90 00 [08:44:11]wFMCommunicate OK [08:44:11]SAM_PROTO_ClearQueue done [08:44:11]KKMCreateOFDPacket [08:44:11]OFDProtocolAddRootSTLVToBuf [08:44:11]FM_MakeSignedData [08:44:11]FM_MakeSignedData [08:44:11]SAM_PROTO_SignData [08:44:11]wFMCommunicate request_size=4 [08:44:11]MH_SAM_APDU [08:44:11]CAPDU: 80 0D 01 02 [08:44:11]Write to MH i2c: E2 08 00 E9 31 80 0D 01 02 00 00 00 00 93 [08:44:11]Write i2c OK [08:44:11]MH_I2C_Read... [08:44:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:44:11]Read from MH i2c: E2 [08:44:11]MH_I2C_Read... [08:44:11]Read from MH i2c: E2 03 00 [08:44:11]MH_I2C_Read... [08:44:11]Read from MH i2c: E2 03 00 E9 31 00 90 00 8E [08:44:11]RAPDU: 90 00 [08:44:11]wFMCommunicate OK [08:44:11]wFMCommunicate request_size=255 [08:44:11]MH_SAM_APDU [08:44:11]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 DE C2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AF 77 03 00 35 04 06 00 8B 5A 42 5D [08:44:11]Write to MH i2c: E2 02 01 EA 31 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 DE C2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AF 77 03 00 35 04 06 00 8B 5A 42 5D 00 00 5E [08:44:11]Write i2c OK [08:44:11]MH_I2C_Read... [08:44:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:11]Read from MH i2c: E2 [08:44:11]MH_I2C_Read... [08:44:11]Read from MH i2c: E2 03 00 [08:44:11]MH_I2C_Read... [08:44:11]Read from MH i2c: E2 03 00 EA 31 00 90 00 8F [08:44:11]RAPDU: 90 00 [08:44:11]wFMCommunicate OK [08:44:11]wFMCommunicate request_size=7 [08:44:11]MH_SAM_APDU [08:44:11]CAPDU: 80 0D 02 02 02 2C E9 [08:44:11]Write to MH i2c: E2 0A 00 EB 31 80 0D 02 02 02 00 2C E9 00 00 AF [08:44:11]Write i2c OK [08:44:11]MH_I2C_Read... [08:44:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:11]Read from MH i2c: E2 [08:44:11]MH_I2C_Read... [08:44:11]Read from MH i2c: E2 03 00 [08:44:11]MH_I2C_Read... [08:44:11]Read from MH i2c: E2 03 00 EB 31 00 90 00 90 [08:44:11]RAPDU: 90 00 [08:44:11]wFMCommunicate OK [08:44:11]wFMCommunicate request_size=4 [08:44:11]MH_SAM_APDU [08:44:11]CAPDU: 80 0D 03 02 [08:44:11]Write to MH i2c: E2 08 00 EC 31 80 0D 03 02 00 00 00 00 98 [08:44:11]Write i2c OK [08:44:11]MH_I2C_Read... [08:44:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:44:11]Read from MH i2c: E2 [08:44:11]MH_I2C_Read... [08:44:11]Read from MH i2c: E2 0B 00 [08:44:11]MH_I2C_Read... [08:44:11]Read from MH i2c: E2 0B 00 EC 31 00 34 BA 60 22 23 62 AE 4F 90 00 8B [08:44:11]RAPDU: 34 BA 60 22 23 62 AE 4F 90 00 [08:44:11]wFMCommunicate OK [08:44:11]SAM_PROTO_SignData done [08:44:11]FM_MakeSignedData done [08:44:11]CreateOFDProtocolMessage [08:44:11]wFMCommunicate request_size=4 [08:44:11]MH_SAM_APDU [08:44:11]CAPDU: 80 11 00 00 [08:44:11]Write to MH i2c: E2 08 00 ED 31 80 11 00 00 00 00 00 00 98 [08:44:11]Write i2c OK [08:44:11]MH_I2C_Read... [08:44:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:11]Read from MH i2c: E2 [08:44:11]MH_I2C_Read... [08:44:11]Read from MH i2c: E2 17 00 [08:44:11]MH_I2C_Read... [08:44:11]Read from MH i2c: E2 17 00 ED 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 EF [08:44:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:44:11]wFMCommunicate OK [08:44:11]CreateOFDProtocolMessage done [08:44:11]OFDSenderStorePacket 227247 [08:44:11]StoreOFDPacket docnum=227247 [08:44:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 82 56 04 01 42 8D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 DE C2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AF 77 03 00 35 04 06 00 8B 5A 42 5D 2C E9 34 BA 60 22 23 62 AE 4F [08:44:11]CheckFolder [08:44:11]dirname=/storage/ofd_packets [08:44:11]CheckFolder done [08:44:11]ProducePacketName [08:44:11]name=ofd_packets/00227247 [08:44:11]NVStorageSaveData ofd_packets/00227247 [08:44:11]File name is /storage/ofd_packets/00227247 [08:44:11]Write 298 bytes [08:44:11]NVStorageSaveData done [08:44:11]OFDSenderStorePacket done [08:44:11]KKMCreateOFDPacket done [08:44:11]NVStorageSaveData kkm_last_timestamp [08:44:11]File name is /storage/kkm_last_timestamp [08:44:11]Write 4 bytes [08:44:11]NVStorageSaveData done [08:44:11]ExternCall_PrintAddStr [08:44:11]wPrintStart [08:44:11]Write to MH i2c: 01 00 00 EE 31 1F [08:44:11]Write i2c OK [08:44:11]MH_I2C_Read... [08:44:11]Read from MH i2c: 01 [08:44:11]MH_I2C_Read... [08:44:11]Read from MH i2c: 01 07 00 [08:44:11]MH_I2C_Read... [08:44:11]Read from MH i2c: 01 07 00 EE 31 00 00 00 00 00 FF 0F 34 [08:44:11]RasterBufferAndPrint [08:44:11]line Счет N : (1)1962706 [08:44:11]line ИНН: 02508201610067 [08:44:11]line Контрольно-Кассовый Чек [08:44:11]line ПРОДАЖА [08:44:11]line ТРК (МРК, ГНК) : 51 [08:44:11]line Товар: 2710194210 [08:44:11]line ДТ-К-5 [08:44:11]line 13.130 * 76.20 [08:44:11]line = 1000.51 [08:44:11]line НДС 12% НСП 1% [08:44:11]line > о реализуемом товаре [08:44:11]line ОКРУГЛЕНИЕ: -0.51 [08:44:11]line ИТОГО: 1000.00 [08:44:11]line Внесено: 1000.00 [08:44:11]line СДАЧА: 0.00 [08:44:11]line НСП 1% : 8.85 [08:44:11]line НДС 12% : 106.25 [08:44:11]line Наличными: 1000.00 [08:44:11]line Безнал.: 0.00 [08:44:11]line Место: АЗС № 133 "Партнер Нефть" [08:44:11]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [08:44:11]line СНО: Общий режим [08:44:11]line Чек 95 20.10.2024 08:44 [08:44:11]line Смена: 533 ФФД: 1.0 [08:44:11]line ЗНМ: 0300000091 [08:44:11]line РНМ: 0000000000091685 [08:44:11]line Версия ККМ: 001 [08:44:11]line ФМ: 0000000000871839 [08:44:11]line ФД: 227247 [08:44:11]line ФПД: 153219776720105 [08:44:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T084414&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227247&fm=153219776720105&tin=02508201610067®Number=0000000000091685&sum=100000 [08:44:12]OFD Sender: Processing packet 227247 [packets to send 38, broken 37] [08:44:12]ProducePacketName [08:44:12]name=ofd_packets/00227247 [08:44:12]OFD Sender: To server: pG, [08:44:12]CommunicateWithHost lk.salyk.kg:30040 [08:44:12]ConnectInit lk.salyk.kg [08:44:12]written 0, free lines is 4095 [08:44:12]Connected sock=10 [08:44: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 33 39 0C 01 00 00 82 56 04 01 42 8D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 DE C2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AF 77 03 00 35 04 06 00 8B 5A 42 5D 2C E9 34 BA 60 22 23 62 AE 4F [08:44:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 6B 10 47 00 6E 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 33 39 10 04 04 00 AF 77 03 00 F4 03 04 00 DD 6D 14 67 B6 04 01 00 00 58 8D 72 FA F3 1C F7 A7 [08:44:12]CommunicateWithHost err = 0 [08:44:12]CheckOFDResponse [08:44:12]1017 (14) - 77093643461234 [08:44:12]1041 (16) - 0000000000871839 [08:44:12]1040 (4) - 227247 [08:44:12]1012 (4) - 20.10.2024 02:41 [08:44:12]1206 (1) - 0 [08:44:12]OFD Sender: Remove packet 227247 [08:44:12]ProducePacketName [08:44:12]name=ofd_packets/00227247 [08:44:12]NVStorageDeleteData [08:44:12]Write to MH i2c: 01 00 00 18 32 4A [08:44:12]Write i2c OK [08:44:12]MH_I2C_Read... [08:44:12]Read from MH i2c: 01 [08:44:12]MH_I2C_Read... [08:44:12]Read from MH i2c: 01 07 00 [08:44:12]MH_I2C_Read... [08:44:12]Read from MH i2c: 01 07 00 18 32 00 00 00 00 00 0E 0D 6C [08:44:12]RasterBufferAndPrint [08:44:12]line [08:44:12]line [08:44:12]line [08:44:12]line [08:44:12]line [08:44:12]written 0, free lines is 3348 [08:44:12]process_action close_receipt done [08:44:12]requested_data is exist [08:44:12]produce_requested_data [08:44:12]requested_item fm.sn is exist - process it [08:44:12]wFMCommunicate request_size=4 [08:44:12]MH_SAM_APDU [08:44:12]CAPDU: 80 11 00 00 [08:44:12]Write to MH i2c: E2 08 00 1F 32 80 11 00 00 00 00 00 00 CB [08:44:12]Write i2c OK [08:44:12]MH_I2C_Read... [08:44:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:12]Read from MH i2c: E2 [08:44:12]MH_I2C_Read... [08:44:12]Read from MH i2c: E2 17 00 [08:44:12]MH_I2C_Read... [08:44:12]Read from MH i2c: E2 17 00 1F 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 22 [08:44:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:44:12]wFMCommunicate OK [08:44:12]requested_item fd.num is exist - process it [08:44:12]SAM_PROTO_GetFieldsCounters [08:44:12]wFMCommunicate request_size=4 [08:44:12]MH_SAM_APDU [08:44:12]CAPDU: 80 13 00 00 [08:44:12]Write to MH i2c: E2 08 00 20 32 80 13 00 00 00 00 00 00 CE [08:44:12]Write i2c OK [08:44:12]MH_I2C_Read... [08:44:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:44:12]Read from MH i2c: E2 [08:44:12]MH_I2C_Read... [08:44:12]Read from MH i2c: E2 62 00 [08:44:12]MH_I2C_Read... [08:44:12]Read from MH i2c: E2 62 00 20 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 AF 77 03 00 0E 04 04 00 15 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 54 [08:44:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 AF 77 03 00 0E 04 04 00 15 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 [08:44:12]wFMCommunicate OK [08:44:12]SAM_PROTO_GetFieldsCounters done [08:44:12]requested_item shift.num is exist - process it [08:44:12]requested_item shift.opened is exist - process it [08:44:12]req_shift_opened [08:44:12]FM_GetShiftState [08:44:12]SAM_PROTO_GetShiftState [08:44:12]wFMCommunicate request_size=4 [08:44:12]MH_SAM_APDU [08:44:12]CAPDU: 80 13 01 00 [08:44:12]Write to MH i2c: E2 08 00 21 32 80 13 01 00 00 00 00 00 D0 [08:44:12]Write i2c OK [08:44:12]MH_I2C_Read... [08:44:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:12]Read from MH i2c: E2 [08:44:12]MH_I2C_Read... [08:44:12]Read from MH i2c: E2 0E 00 [08:44:12]MH_I2C_Read... [08:44:12]Read from MH i2c: E2 0E 00 21 32 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 EA [08:44:12]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:44:12]wFMCommunicate OK [08:44:12]SAM_PROTO_GetShiftState done [08:44:12]FM_GetShiftState done [08:44:12]req_shift_opened done [08:44:12]requested_item shift.open_date is exist - process it [08:44:12]req_shift_open_date [08:44:12]req_shift_open_date done [08:44:12]produce_requested_data done [08:44:12]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227247,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [08:44:12]process_action_free close_receipt [08:44:12]json_value_free [08:44:12]json_value_free done [08:44:12]process_json_proto returns [08:44:12]Send response to host [08:44:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227247,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [08:44:12]free response buf [08:44:12]execute_script done [08:44:12]execute_script returns [08:44:12]free content buf [08:44:12]Sock 8.Close socket [08:44:12]Sock 8.Thread stoped [08:44:12]OFD Sender: No OFD packet to send [08:44:17]OFD Sender: No OFD packet to send [08:44:22]OFD Sender: No OFD packet to send [08:44:27]OFD Sender: No OFD packet to send [08:44:32]OFD Sender: No OFD packet to send [08:44:37]OFD Sender: No OFD packet to send [08:44:43]OFD Sender: No OFD packet to send [08:44:48]OFD Sender: No OFD packet to send [08:44:53]OFD Sender: No OFD packet to send [08:44:58]OFD Sender: No OFD packet to send [08:45:03]OFD Sender: No OFD packet to send [08:45:08]OFD Sender: No OFD packet to send [08:45:13]OFD Sender: No OFD packet to send [08:45:18]OFD Sender: No OFD packet to send [08:45:23]OFD Sender: No OFD packet to send [08:45:25]accept exits with 9 [08:45:25]New connection [08:45:25]New thread 3066821988 created [08:45:25]Thread 3066965348 joined [08:45:25]Waiting for new connection... [08:45:25] Sock 9.Parse request [08:45:25]Sock 9.Check first char [08:45:25]Sock 9.First char is OK [08:45:25]request: POST /json_proto HTTP/1.0 [08:45:25]Method: POST [08:45:25]URL: /json_proto [08:45:25]Method is POST - this is cgi request [08:45:25]url: /json_proto [08:45:25]query_string will be loaded in cgi processing [08:45:25]execute_cgi json_proto POST (null) [08:45:25]execute_cgi path=json_proto method=POST [08:45:25]POST find Content-Length [08:45:25]Host: 172.17.44.195:8080 [08:45:25]Content-Length: 680 [08:45:25]Content-Type: application/json [08:45:25] [08:45:25]POST finish read [08:45:25]Found Content-Length = 680 [08:45:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962707", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.320, "sum" : 1014.98, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1014.00, "total" : 1014.00, "payments": [ { "type": 0, "sum" : 1014.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:45:25]execute_script... [08:45: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)1962707", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.320, "sum" : 1014.98, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1014.00, "total" : 1014.00, "payments": [ { "type": 0, "sum" : 1014.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:45:25]POST & json_proto [08:45:25]process_json_proto [08:45:25]json parsed OK: [08:45:25]protocol is kg_v1.0 [08:45:25]action value=close_receipt [08:45:25]process_action close_receipt [08:45:25]cmd_close_receipt [08:45:25]MH_GetDate [08:45:25]Write to MH i2c: F0 00 00 22 32 43 [08:45:25]Write i2c OK [08:45:25]MH_I2C_Read... [08:45:25]Read from MH i2c: F0 [08:45:25]MH_I2C_Read... [08:45:25]Read from MH i2c: F0 09 00 [08:45:25]MH_I2C_Read... [08:45:25]Read from MH i2c: F0 09 00 22 32 00 29 C3 14 67 82 C9 CF 66 33 [08:45:25]GetLastDocTimeStamp 1729413854 [08:45:25]current date 1729413929 [08:45:25]FM_GetShiftState [08:45:25]SAM_PROTO_GetShiftState [08:45:25]wFMCommunicate request_size=4 [08:45:25]MH_SAM_APDU [08:45:25]CAPDU: 80 13 01 00 [08:45:25]Write to MH i2c: E2 08 00 23 32 80 13 01 00 00 00 00 00 D2 [08:45:25]Write i2c OK [08:45:25]MH_I2C_Read... [08:45:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:45:25]Read from MH i2c: E2 [08:45:25]MH_I2C_Read... [08:45:25]Read from MH i2c: E2 0E 00 [08:45:25]MH_I2C_Read... [08:45:25]Read from MH i2c: E2 0E 00 23 32 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 EC [08:45:25]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:45:25]wFMCommunicate OK [08:45:25]SAM_PROTO_GetShiftState done [08:45:25]FM_GetShiftState done [08:45:25]opened in 1729383750 [08:45:25]opened+sec_in_day 1729470150 [08:45:25]quantity*price = 101498 [08:45:25]sum+1 = 101499 [08:45:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.98 ИТОГО: 1014.00 Внесено: 1014.00 СДАЧА: 0.00 НСП 1% : 8.98 НДС 12% : 107.78 Наличными: 1014.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 96 20.10.2024 08:45 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227248 ФПД: 51325681569639 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T084529&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227248&fm=51325681569639&tin=02508201610067®Number=0000000000091685&sum=101400 [08:45:26]StoreToDocumentArchive [08:45:26]shift 533 fd 227248 [08:45:26]save to /storage/0533/doc_00227248 [08:45:26]save last doc name /storage/0533/doc_00227248 to /storage/kkm_last_doc_name [08:45:26]save OK [08:45:26]Clear old archive folders... [08:45:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:45:26]tlvbuf is 0057B0A0 [08:45:26]SAM_PROTO_ClearQueue [08:45:26]wFMCommunicate request_size=4 [08:45:26]MH_SAM_APDU [08:45:26]CAPDU: 80 09 00 00 [08:45:26]Write to MH i2c: E2 08 00 30 32 80 09 00 00 00 00 00 00 D4 [08:45:26]Write i2c OK [08:45:26]MH_I2C_Read... [08:45:26]*** iso7816_exchange 80 09 00 00... 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 30 32 00 90 00 D6 [08:45:26]RAPDU: 90 00 [08:45:26]wFMCommunicate OK [08:45:26]SAM_PROTO_ClearQueue done [08:45:26]KKMCreateOFDPacket [08:45:26]OFDProtocolAddRootSTLVToBuf [08:45:26]FM_MakeSignedData [08:45:26]FM_MakeSignedData [08:45:26]SAM_PROTO_SignData [08:45:26]wFMCommunicate request_size=4 [08:45:26]MH_SAM_APDU [08:45:26]CAPDU: 80 0D 01 02 [08:45:26]Write to MH i2c: E2 08 00 31 32 80 0D 01 02 00 00 00 00 DC [08:45:26]Write i2c OK [08:45:26]MH_I2C_Read... [08:45:26]*** iso7816_exchange 80 0D 01 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 31 32 00 90 00 D7 [08:45:26]RAPDU: 90 00 [08:45:26]wFMCommunicate OK [08:45:26]wFMCommunicate request_size=255 [08:45:26]MH_SAM_APDU [08:45:26]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 08 34 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 7A 8C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 8C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 2A 00 00 00 00 07 04 06 00 18 8C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 29 C3 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B0 77 03 00 35 04 06 00 2E AE 31 04 [08:45:26]Write to MH i2c: E2 02 01 32 32 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 08 34 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 7A 8C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 8C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 2A 00 00 00 00 07 04 06 00 18 8C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 29 C3 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B0 77 03 00 35 04 06 00 2E AE 31 04 00 00 91 [08:45:27]Write i2c OK [08:45:27]MH_I2C_Read... [08:45:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:45:27]Read from MH i2c: E2 [08:45:27]MH_I2C_Read... [08:45:27]Read from MH i2c: E2 03 00 [08:45:27]MH_I2C_Read... [08:45:27]Read from MH i2c: E2 03 00 32 32 00 90 00 D8 [08:45:27]RAPDU: 90 00 [08:45:27]wFMCommunicate OK [08:45:27]wFMCommunicate request_size=7 [08:45:27]MH_SAM_APDU [08:45:27]CAPDU: 80 0D 02 02 02 8F 67 [08:45:27]Write to MH i2c: E2 0A 00 33 32 80 0D 02 02 02 00 8F 67 00 00 D9 [08:45:27]Write i2c OK [08:45:27]MH_I2C_Read... [08:45:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:45:27]Read from MH i2c: E2 [08:45:27]MH_I2C_Read... [08:45:27]Read from MH i2c: E2 03 00 [08:45:27]MH_I2C_Read... [08:45:27]Read from MH i2c: E2 03 00 33 32 00 90 00 D9 [08:45:27]RAPDU: 90 00 [08:45:27]wFMCommunicate OK [08:45:27]wFMCommunicate request_size=4 [08:45:27]MH_SAM_APDU [08:45:27]CAPDU: 80 0D 03 02 [08:45:27]Write to MH i2c: E2 08 00 34 32 80 0D 03 02 00 00 00 00 E1 [08:45:27]Write i2c OK [08:45:27]MH_I2C_Read... [08:45:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:45:27]Read from MH i2c: E2 [08:45:27]MH_I2C_Read... [08:45:27]Read from MH i2c: E2 0B 00 [08:45:27]MH_I2C_Read... [08:45:27]Read from MH i2c: E2 0B 00 34 32 00 95 95 96 CD E1 F8 B4 E1 90 00 DD [08:45:27]RAPDU: 95 95 96 CD E1 F8 B4 E1 90 00 [08:45:27]wFMCommunicate OK [08:45:27]SAM_PROTO_SignData done [08:45:27]FM_MakeSignedData done [08:45:27]CreateOFDProtocolMessage [08:45:27]wFMCommunicate request_size=4 [08:45:27]MH_SAM_APDU [08:45:27]CAPDU: 80 11 00 00 [08:45:27]Write to MH i2c: E2 08 00 35 32 80 11 00 00 00 00 00 00 E1 [08:45:27]Write i2c OK [08:45:27]MH_I2C_Read... [08:45:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:45:27]Read from MH i2c: E2 [08:45:27]MH_I2C_Read... [08:45:27]Read from MH i2c: E2 17 00 [08:45:27]MH_I2C_Read... [08:45:27]Read from MH i2c: E2 17 00 35 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 38 [08:45:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:45:27]wFMCommunicate OK [08:45:27]CreateOFDProtocolMessage done [08:45:27]OFDSenderStorePacket 227248 [08:45:27]StoreOFDPacket docnum=227248 [08:45:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 DF 2F 04 01 EE 28 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 08 34 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 7A 8C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 8C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 2A 00 00 00 00 07 04 06 00 18 8C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 29 C3 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B0 77 03 00 35 04 06 00 2E AE 31 04 8F 67 95 95 96 CD E1 F8 B4 E1 [08:45:27]CheckFolder [08:45:27]dirname=/storage/ofd_packets [08:45:27]CheckFolder done [08:45:27]ProducePacketName [08:45:27]name=ofd_packets/00227248 [08:45:27]NVStorageSaveData ofd_packets/00227248 [08:45:27]File name is /storage/ofd_packets/00227248 [08:45:27]Write 298 bytes [08:45:27]NVStorageSaveData done [08:45:27]OFDSenderStorePacket done [08:45:27]KKMCreateOFDPacket done [08:45:27]NVStorageSaveData kkm_last_timestamp [08:45:27]File name is /storage/kkm_last_timestamp [08:45:27]Write 4 bytes [08:45:27]NVStorageSaveData done [08:45:27]ExternCall_PrintAddStr [08:45:27]wPrintStart [08:45:27]Write to MH i2c: 01 00 00 36 32 68 [08:45:27]Write i2c OK [08:45:27]MH_I2C_Read... [08:45:27]Read from MH i2c: 01 [08:45:27]MH_I2C_Read... [08:45:27]Read from MH i2c: 01 07 00 [08:45:27]MH_I2C_Read... [08:45:27]Read from MH i2c: 01 07 00 36 32 00 00 00 00 00 FF 0F 7D [08:45:27]RasterBufferAndPrint [08:45:27]line Счет N : (1)1962707 [08:45:27]line ИНН: 02508201610067 [08:45:27]line Контрольно-Кассовый Чек [08:45:27]line ПРОДАЖА [08:45:27]line ТРК (МРК, ГНК) : 31 [08:45:27]line Товар: 2710194210 [08:45:27]line ДТ-К-5 [08:45:27]line 13.320 * 76.20 [08:45:27]line = 1014.98 [08:45:27]line НДС 12% НСП 1% [08:45:27]line > о реализуемом товаре [08:45:27]line ОКРУГЛЕНИЕ: -0.98 [08:45:27]line ИТОГО: 1014.00 [08:45:27]line Внесено: 1014.00 [08:45:27]line СДАЧА: 0.00 [08:45:27]line НСП 1% : 8.98 [08:45:27]line НДС 12% : 107.78 [08:45:27]line Наличными: 1014.00 [08:45:27]line Безнал.: 0.00 [08:45:27]line Место: АЗС № 133 "Партнер Нефть" [08:45:27]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [08:45:27]line СНО: Общий режим [08:45:27]line Чек 96 20.10.2024 08:45 [08:45:27]line Смена: 533 ФФД: 1.0 [08:45:27]line ЗНМ: 0300000091 [08:45:27]line РНМ: 0000000000091685 [08:45:27]line Версия ККМ: 001 [08:45:27]line ФМ: 0000000000871839 [08:45:27]line ФД: 227248 [08:45:27]line ФПД: 51325681569639 [08:45:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T084529&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227248&fm=51325681569639&tin=02508201610067®Number=0000000000091685&sum=101400 [08:45:27]OFD Sender: Processing packet 227248 [packets to send 38, broken 37] [08:45:27]ProducePacketName [08:45:27]name=ofd_packets/00227248 [08:45:27]OFD Sender: To server: pG, [08:45:27]CommunicateWithHost lk.salyk.kg:30040 [08:45:27]ConnectInit lk.salyk.kg [08:45:27]written 0, free lines is 4095 [08:45:27]Connected sock=10 [08:45:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 DF 2F 04 01 EE 28 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 08 34 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 7A 8C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 8C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 2A 00 00 00 00 07 04 06 00 18 8C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 29 C3 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B0 77 03 00 35 04 06 00 2E AE 31 04 8F 67 95 95 96 CD E1 F8 B4 E1 [08:45: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 33 39 4F 00 00 00 B4 C5 47 00 7C 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B0 77 03 00 F4 03 04 00 29 6E 14 67 B6 04 01 00 00 95 69 38 75 96 82 42 EC [08:45:28]CommunicateWithHost err = 0 [08:45:28]CheckOFDResponse [08:45:28]1017 (14) - 77093643461234 [08:45:28]1041 (16) - 0000000000871839 [08:45:28]1040 (4) - 227248 [08:45:28]1012 (4) - 20.10.2024 02:42 [08:45:28]1206 (1) - 0 [08:45:28]OFD Sender: Remove packet 227248 [08:45:28]ProducePacketName [08:45:28]name=ofd_packets/00227248 [08:45:28]NVStorageDeleteData [08:45:28]Write to MH i2c: 01 00 00 60 32 92 [08:45:28]Write i2c OK [08:45:28]MH_I2C_Read... [08:45:28]Read from MH i2c: 01 [08:45:28]MH_I2C_Read... [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 60 32 00 00 00 00 00 FD 0C A2 [08:45:28]RasterBufferAndPrint [08:45:28]line [08:45:28]line [08:45:28]line [08:45:28]line [08:45:28]line [08:45:28]written 0, free lines is 3331 [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 67 32 80 11 00 00 00 00 00 00 13 [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 67 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 6A [08:45:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 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 68 32 80 13 00 00 00 00 00 00 16 [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 68 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 B0 77 03 00 0E 04 04 00 15 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 A0 [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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 B0 77 03 00 0E 04 04 00 15 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 [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 69 32 80 13 01 00 00 00 00 00 18 [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 69 32 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 32 [08:45:28]RAPDU: 09 00 01 46 4D 14 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":"0000000000871839","fd.num":227248,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [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":"0000000000871839","fd.num":227248,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [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 9.Close socket [08:45:28]Sock 9.Thread stoped [08:45:28]OFD Sender: No OFD packet to send [08:45:33]OFD Sender: No OFD packet to send [08:45:38]OFD Sender: No OFD packet to send [08:45:43]OFD Sender: No OFD packet to send [08:45:48]OFD Sender: No OFD packet to send [08:45:53]OFD Sender: No OFD packet to send [08:45:58]OFD Sender: No OFD packet to send [08:46:03]OFD Sender: No OFD packet to send [08:46:08]OFD Sender: No OFD packet to send [08:46:13]OFD Sender: No OFD packet to send [08:46:18]OFD Sender: No OFD packet to send [08:46:23]OFD Sender: No OFD packet to send [08:46:23]accept exits with 8 [08:46:23]New connection [08:46:23]New thread 3066965348 created [08:46:23]Thread 3066821988 joined [08:46:23]Waiting for new connection... [08:46:23] Sock 8.Parse request [08:46:23]Sock 8.Check first char [08:46:23]Sock 8.First char is OK [08:46:23]request: POST /json_proto HTTP/1.0 [08:46:23]Method: POST [08:46:23]URL: /json_proto [08:46:23]Method is POST - this is cgi request [08:46:23]url: /json_proto [08:46:23]query_string will be loaded in cgi processing [08:46:23]execute_cgi json_proto POST (null) [08:46:23]execute_cgi path=json_proto method=POST [08:46:23]POST find Content-Length [08:46:23]Host: 172.17.44.195:8080 [08:46:23]Content-Length: 678 [08:46:23]Content-Type: application/json [08:46:23] [08:46:23]POST finish read [08:46:23]Found Content-Length = 678 [08:46:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962708", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:23]execute_script... [08:46: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)1962708", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:23]POST & json_proto [08:46:23]process_json_proto [08:46:23]json parsed OK: [08:46:23]protocol is kg_v1.0 [08:46:23]action value=close_receipt [08:46:23]process_action close_receipt [08:46:23]cmd_close_receipt [08:46:23]MH_GetDate [08:46:23]Write to MH i2c: F0 00 00 6A 32 8B [08:46:23]Write i2c OK [08:46:23]MH_I2C_Read... [08:46:23]Read from MH i2c: F0 [08:46:23]MH_I2C_Read... [08:46:23]Read from MH i2c: F0 09 00 [08:46:23]MH_I2C_Read... [08:46:23]Read from MH i2c: F0 09 00 6A 32 00 63 C3 14 67 82 C9 CF 66 B5 [08:46:23]GetLastDocTimeStamp 1729413929 [08:46:23]current date 1729413987 [08:46:23]FM_GetShiftState [08:46:23]SAM_PROTO_GetShiftState [08:46:23]wFMCommunicate request_size=4 [08:46:23]MH_SAM_APDU [08:46:23]CAPDU: 80 13 01 00 [08:46:23]Write to MH i2c: E2 08 00 6B 32 80 13 01 00 00 00 00 00 1A [08:46:23]Write i2c OK [08:46:23]MH_I2C_Read... [08:46:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:23]Read from MH i2c: E2 [08:46:23]MH_I2C_Read... [08:46:23]Read from MH i2c: E2 0E 00 [08:46:23]MH_I2C_Read... [08:46:23]Read from MH i2c: E2 0E 00 6B 32 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 34 [08:46:23]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:46:23]wFMCommunicate OK [08:46:23]SAM_PROTO_GetShiftState done [08:46:23]FM_GetShiftState done [08:46:23]opened in 1729383750 [08:46:23]opened+sec_in_day 1729470150 [08:46:23]quantity*price = 50041 [08:46:23]sum+1 = 50042 [08:46:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 97 20.10.2024 08:46 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227249 ФПД: 204856682822528 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T084627&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227249&fm=204856682822528&tin=02508201610067®Number=0000000000091685&sum=50000 [08:46:24]StoreToDocumentArchive [08:46:24]shift 533 fd 227249 [08:46:24]save to /storage/0533/doc_00227249 [08:46:24]save last doc name /storage/0533/doc_00227249 to /storage/kkm_last_doc_name [08:46:24]save OK [08:46:24]Clear old archive folders... [08:46:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:46:24]tlvbuf is 005D2AC0 [08:46:24]SAM_PROTO_ClearQueue [08:46:24]wFMCommunicate request_size=4 [08:46:24]MH_SAM_APDU [08:46:24]CAPDU: 80 09 00 00 [08:46:24]Write to MH i2c: E2 08 00 78 32 80 09 00 00 00 00 00 00 1C [08:46:24]Write i2c OK [08:46:24]MH_I2C_Read... [08:46:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:46:24]Read from MH i2c: E2 [08:46:24]MH_I2C_Read... [08:46:24]Read from MH i2c: E2 03 00 [08:46:24]MH_I2C_Read... [08:46:24]Read from MH i2c: E2 03 00 78 32 00 90 00 1E [08:46:24]RAPDU: 90 00 [08:46:24]wFMCommunicate OK [08:46:24]SAM_PROTO_ClearQueue done [08:46:24]KKMCreateOFDPacket [08:46:24]OFDProtocolAddRootSTLVToBuf [08:46:24]FM_MakeSignedData [08:46:24]FM_MakeSignedData [08:46:24]SAM_PROTO_SignData [08:46:24]wFMCommunicate request_size=4 [08:46:24]MH_SAM_APDU [08:46:24]CAPDU: 80 0D 01 02 [08:46:24]Write to MH i2c: E2 08 00 79 32 80 0D 01 02 00 00 00 00 24 [08:46:24]Write i2c OK [08:46:24]MH_I2C_Read... [08:46:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:46:24]Read from MH i2c: E2 [08:46:24]MH_I2C_Read... [08:46:24]Read from MH i2c: E2 03 00 [08:46:24]MH_I2C_Read... [08:46:24]Read from MH i2c: E2 03 00 79 32 00 90 00 1F [08:46:24]RAPDU: 90 00 [08:46:24]wFMCommunicate OK [08:46:24]wFMCommunicate request_size=255 [08:46:24]MH_SAM_APDU [08:46:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 63 C3 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B1 77 03 00 35 04 06 00 BA [08:46:24]Write to MH i2c: E2 02 01 7A 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 63 C3 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B1 77 03 00 35 04 06 00 BA 00 00 B9 [08:46:24]Write i2c OK [08:46:24]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 7A 32 00 90 00 20 [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 50 E9 CF 3B 80 [08:46:25]Write to MH i2c: E2 0D 00 7B 32 80 0D 02 02 05 00 50 E9 CF 3B 80 00 00 F4 [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 7B 32 00 90 00 21 [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 7C 32 80 0D 03 02 00 00 00 00 29 [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 7C 32 00 91 70 A1 D2 64 07 B1 B7 90 00 71 [08:46:25]RAPDU: 91 70 A1 D2 64 07 B1 B7 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 7D 32 80 11 00 00 00 00 00 00 29 [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 7D 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 80 [08:46:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:46:25]wFMCommunicate OK [08:46:25]CreateOFDProtocolMessage done [08:46:25]OFDSenderStorePacket 227249 [08:46:25]StoreOFDPacket docnum=227249 [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 33 39 0F 01 00 00 7A 7C 07 01 68 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 63 C3 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B1 77 03 00 35 04 06 00 BA 50 E9 CF 3B 80 91 70 A1 D2 64 07 B1 B7 [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/00227249 [08:46:25]NVStorageSaveData ofd_packets/00227249 [08:46:25]File name is /storage/ofd_packets/00227249 [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 7E 32 B0 [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 7E 32 00 00 00 00 00 FF 0F C5 [08:46:25]RasterBufferAndPrint [08:46:25]line Счет N : (1)1962708 [08:46:25]line ИНН: 02508201610067 [08:46:25]line Контрольно-Кассовый Чек [08:46:25]line ПРОДАЖА [08:46:25]line ТРК (МРК, ГНК) : 53 [08:46:25]line Товар: 2710124130 [08:46:25]line Аи-92-К-5 [08:46:25]line 7.480 * 66.90 [08:46:25]line = 500.41 [08:46:25]line НДС 12% НСП 1% [08:46:25]line > о реализуемом товаре [08:46:25]line ОКРУГЛЕНИЕ: -0.41 [08:46:25]line ИТОГО: 500.00 [08:46:25]line Внесено: 500.00 [08:46:25]line СДАЧА: 0.00 [08:46:25]line НСП 1% : 4.43 [08:46:25]line НДС 12% : 53.14 [08:46:25]line Наличными: 500.00 [08:46:25]line Безнал.: 0.00 [08:46:25]line Место: АЗС № 133 "Партнер Нефть" [08:46:25]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [08:46:25]line СНО: Общий режим [08:46:25]line Чек 97 20.10.2024 08:46 [08:46:25]line Смена: 533 ФФД: 1.0 [08:46:25]line ЗНМ: 0300000091 [08:46:25]line РНМ: 0000000000091685 [08:46:25]line Версия ККМ: 001 [08:46:25]line ФМ: 0000000000871839 [08:46:25]line ФД: 227249 [08:46:25]line ФПД: 204856682822528 [08:46:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T084627&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227249&fm=204856682822528&tin=02508201610067®Number=0000000000091685&sum=50000 [08:46:25]OFD Sender: Processing packet 227249 [packets to send 38, broken 37] [08:46:25]ProducePacketName [08:46:25]name=ofd_packets/00227249 [08:46:25]OFD Sender: To server: pG, [08:46:25]CommunicateWithHost lk.salyk.kg:30040 [08:46:25]ConnectInit lk.salyk.kg [08:46:25]written 0, free lines is 4095 [08:46:25]Connected sock=10 [08:46: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 33 39 0F 01 00 00 7A 7C 07 01 68 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 63 C3 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B1 77 03 00 35 04 06 00 BA 50 E9 CF 3B 80 91 70 A1 D2 64 07 B1 B7 [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 33 39 4F 00 00 00 37 97 47 00 C1 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 33 39 10 04 04 00 B1 77 03 00 F4 03 04 00 63 6E 14 67 B6 04 01 00 00 FE 83 AE 29 80 5D 52 D8 [08:46:26]CommunicateWithHost err = 0 [08:46:26]CheckOFDResponse [08:46:26]1017 (14) - 77093643461234 [08:46:26]1041 (16) - 0000000000871839 [08:46:26]1040 (4) - 227249 [08:46:26]1012 (4) - 20.10.2024 02:43 [08:46:26]1206 (1) - 0 [08:46:26]OFD Sender: Remove packet 227249 [08:46:26]ProducePacketName [08:46:26]name=ofd_packets/00227249 [08:46:26]NVStorageDeleteData [08:46:26]Write to MH i2c: 01 00 00 A8 32 DA [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 A8 32 00 00 00 00 00 12 0D 00 [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 3352 [08:46:26]process_action close_receipt done [08:46:26]requested_data is exist [08:46:26]produce_requested_data [08:46:26]requested_item fm.sn is exist - process it [08:46:26]wFMCommunicate request_size=4 [08:46:26]MH_SAM_APDU [08:46:26]CAPDU: 80 11 00 00 [08:46:26]Write to MH i2c: E2 08 00 AF 32 80 11 00 00 00 00 00 00 5B [08:46:26]Write i2c OK [08:46:26]MH_I2C_Read... [08:46:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:26]Read from MH i2c: E2 [08:46:26]MH_I2C_Read... [08:46:26]Read from MH i2c: E2 17 00 [08:46:26]MH_I2C_Read... [08:46:26]Read from MH i2c: E2 17 00 AF 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B2 [08:46:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:46:26]wFMCommunicate OK [08:46:26]requested_item fd.num is exist - process it [08:46:26]SAM_PROTO_GetFieldsCounters [08:46:26]wFMCommunicate request_size=4 [08:46:26]MH_SAM_APDU [08:46:26]CAPDU: 80 13 00 00 [08:46:26]Write to MH i2c: E2 08 00 B0 32 80 13 00 00 00 00 00 00 5E [08:46:26]Write i2c OK [08:46:26]MH_I2C_Read... [08:46:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:46:26]Read from MH i2c: E2 [08:46:26]MH_I2C_Read... [08:46:26]Read from MH i2c: E2 62 00 [08:46:26]MH_I2C_Read... [08:46:26]Read from MH i2c: E2 62 00 B0 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 B1 77 03 00 0E 04 04 00 15 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 EC [08:46: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 B1 77 03 00 0E 04 04 00 15 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 [08:46:26]wFMCommunicate OK [08:46:26]SAM_PROTO_GetFieldsCounters done [08:46:26]requested_item shift.num is exist - process it [08:46:26]requested_item shift.opened is exist - process it [08:46:26]req_shift_opened [08:46:26]FM_GetShiftState [08:46:26]SAM_PROTO_GetShiftState [08:46:26]wFMCommunicate request_size=4 [08:46:26]MH_SAM_APDU [08:46:26]CAPDU: 80 13 01 00 [08:46:26]Write to MH i2c: E2 08 00 B1 32 80 13 01 00 00 00 00 00 60 [08:46:26]Write i2c OK [08:46:26]MH_I2C_Read... [08:46:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:26]Read from MH i2c: E2 [08:46:26]MH_I2C_Read... [08:46:26]Read from MH i2c: E2 0E 00 [08:46:26]MH_I2C_Read... [08:46:26]Read from MH i2c: E2 0E 00 B1 32 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 7A [08:46:26]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:46:26]wFMCommunicate OK [08:46:26]SAM_PROTO_GetShiftState done [08:46:26]FM_GetShiftState done [08:46:26]req_shift_opened done [08:46:26]requested_item shift.open_date is exist - process it [08:46:26]req_shift_open_date [08:46:26]req_shift_open_date done [08:46:26]produce_requested_data done [08:46:26]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227249,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [08:46:26]process_action_free close_receipt [08:46:26]json_value_free [08:46:26]json_value_free done [08:46:26]process_json_proto returns [08:46:26]Send response to host [08:46:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227249,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [08:46:26]free response buf [08:46:26]execute_script done [08:46:26]execute_script returns [08:46:26]free content buf [08:46:26]Sock 8.Close socket [08:46:26]Sock 8.Thread stoped [08:46:26]OFD Sender: No OFD packet to send [08:46:31]OFD Sender: No OFD packet to send [08:46:36]OFD Sender: No OFD packet to send [08:46:41]OFD Sender: No OFD packet to send [08:46:46]OFD Sender: No OFD packet to send [08:46:51]OFD Sender: No OFD packet to send [08:46:53]accept exits with 9 [08:46:53]New connection [08:46:53]New thread 3066821988 created [08:46:53]Thread 3066965348 joined [08:46:53]Waiting for new connection... [08:46:53] Sock 9.Parse request [08:46:53]Sock 9.Check first char [08:46:53]Sock 9.First char is OK [08:46:53]request: POST /json_proto HTTP/1.0 [08:46:53]Method: POST [08:46:53]URL: /json_proto [08:46:53]Method is POST - this is cgi request [08:46:53]url: /json_proto [08:46:53]query_string will be loaded in cgi processing [08:46:53]execute_cgi json_proto POST (null) [08:46:53]execute_cgi path=json_proto method=POST [08:46:53]POST find Content-Length [08:46:53]Host: 172.17.44.195:8080 [08:46:53]Content-Length: 683 [08:46:53]Content-Type: application/json [08:46:53] [08:46:53]POST finish read [08:46:53]Found Content-Length = 683 [08:46:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962709", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:53]execute_script... [08:46: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)1962709", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:53]POST & json_proto [08:46:53]process_json_proto [08:46:53]json parsed OK: [08:46:53]protocol is kg_v1.0 [08:46:53]action value=close_receipt [08:46:53]process_action close_receipt [08:46:53]cmd_close_receipt [08:46:53]MH_GetDate [08:46:53]Write to MH i2c: F0 00 00 B2 32 D3 [08:46:53]Write i2c OK [08:46:53]MH_I2C_Read... [08:46:53]Read from MH i2c: F0 [08:46:53]MH_I2C_Read... [08:46:53]Read from MH i2c: F0 09 00 [08:46:53]MH_I2C_Read... [08:46:53]Read from MH i2c: F0 09 00 B2 32 00 81 C3 14 67 82 C9 CF 66 1B [08:46:53]GetLastDocTimeStamp 1729413987 [08:46:53]current date 1729414017 [08:46:53]FM_GetShiftState [08:46:53]SAM_PROTO_GetShiftState [08:46:53]wFMCommunicate request_size=4 [08:46:53]MH_SAM_APDU [08:46:53]CAPDU: 80 13 01 00 [08:46:53]Write to MH i2c: E2 08 00 B3 32 80 13 01 00 00 00 00 00 62 [08:46:53]Write i2c OK [08:46:53]MH_I2C_Read... [08:46:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:53]Read from MH i2c: E2 [08:46:53]MH_I2C_Read... [08:46:53]Read from MH i2c: E2 0E 00 [08:46:53]MH_I2C_Read... [08:46:53]Read from MH i2c: E2 0E 00 B3 32 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 7C [08:46:53]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:46:53]wFMCommunicate OK [08:46:53]SAM_PROTO_GetShiftState done [08:46:53]FM_GetShiftState done [08:46:53]opened in 1729383750 [08:46:53]opened+sec_in_day 1729470150 [08:46:53]quantity*price = 100015 [08:46:53]sum+1 = 100017 [08:46:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 98 20.10.2024 08:46 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227250 ФПД: 242269610192329 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T084657&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227250&fm=242269610192329&tin=02508201610067®Number=0000000000091685&sum=100000 [08:46:54]StoreToDocumentArchive [08:46:54]shift 533 fd 227250 [08:46:54]save to /storage/0533/doc_00227250 [08:46:54]save last doc name /storage/0533/doc_00227250 to /storage/kkm_last_doc_name [08:46:54]save OK [08:46:54]Clear old archive folders... [08:46:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:46:54]tlvbuf is B6DAB9A0 [08:46:54]SAM_PROTO_ClearQueue [08:46:54]wFMCommunicate request_size=4 [08:46:54]MH_SAM_APDU [08:46:54]CAPDU: 80 09 00 00 [08:46:54]Write to MH i2c: E2 08 00 C0 32 80 09 00 00 00 00 00 00 64 [08:46:54]Write i2c OK [08:46:54]MH_I2C_Read... [08:46:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:46:54]Read from MH i2c: E2 [08:46:54]MH_I2C_Read... [08:46:54]Read from MH i2c: E2 03 00 [08:46:54]MH_I2C_Read... [08:46:54]Read from MH i2c: E2 03 00 C0 32 00 90 00 66 [08:46:54]RAPDU: 90 00 [08:46:54]wFMCommunicate OK [08:46:54]SAM_PROTO_ClearQueue done [08:46:54]KKMCreateOFDPacket [08:46:54]OFDProtocolAddRootSTLVToBuf [08:46:54]FM_MakeSignedData [08:46:54]FM_MakeSignedData [08:46:54]SAM_PROTO_SignData [08:46:54]wFMCommunicate request_size=4 [08:46:54]MH_SAM_APDU [08:46:54]CAPDU: 80 0D 01 02 [08:46:54]Write to MH i2c: E2 08 00 C1 32 80 0D 01 02 00 00 00 00 6C [08:46:54]Write i2c OK [08:46:54]MH_I2C_Read... [08:46:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:46:54]Read from MH i2c: E2 [08:46:54]MH_I2C_Read... [08:46:54]Read from MH i2c: E2 03 00 [08:46:54]MH_I2C_Read... [08:46:54]Read from MH i2c: E2 03 00 C1 32 00 90 00 67 [08:46:54]RAPDU: 90 00 [08:46:54]wFMCommunicate OK [08:46:54]wFMCommunicate request_size=255 [08:46:54]MH_SAM_APDU [08:46:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 81 C3 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B2 77 03 00 35 04 06 00 DC [08:46:54]Write to MH i2c: E2 02 01 C2 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 81 C3 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B2 77 03 00 35 04 06 00 DC 00 00 3D [08:46:54]Write i2c OK [08:46:54]MH_I2C_Read... [08:46:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:55]Read from MH i2c: E2 [08:46:55]MH_I2C_Read... [08:46:55]Read from MH i2c: E2 03 00 [08:46:55]MH_I2C_Read... [08:46:55]Read from MH i2c: E2 03 00 C2 32 00 90 00 68 [08:46:55]RAPDU: 90 00 [08:46:55]wFMCommunicate OK [08:46:55]wFMCommunicate request_size=10 [08:46:55]MH_SAM_APDU [08:46:55]CAPDU: 80 0D 02 02 05 57 CA 0E 2D C9 [08:46:55]Write to MH i2c: E2 0D 00 C3 32 80 0D 02 02 05 00 57 CA 0E 2D C9 00 00 9E [08:46:55]Write i2c OK [08:46:55]MH_I2C_Read... [08:46:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:55]Read from MH i2c: E2 [08:46:55]MH_I2C_Read... [08:46:55]Read from MH i2c: E2 03 00 [08:46:55]MH_I2C_Read... [08:46:55]Read from MH i2c: E2 03 00 C3 32 00 90 00 69 [08:46:55]RAPDU: 90 00 [08:46:55]wFMCommunicate OK [08:46:55]wFMCommunicate request_size=4 [08:46:55]MH_SAM_APDU [08:46:55]CAPDU: 80 0D 03 02 [08:46:55]Write to MH i2c: E2 08 00 C4 32 80 0D 03 02 00 00 00 00 71 [08:46:55]Write i2c OK [08:46:55]MH_I2C_Read... [08:46:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:46:55]Read from MH i2c: E2 [08:46:55]MH_I2C_Read... [08:46:55]Read from MH i2c: E2 0B 00 [08:46:55]MH_I2C_Read... [08:46:55]Read from MH i2c: E2 0B 00 C4 32 00 0E 10 70 07 7D E6 B0 1A 90 00 34 [08:46:55]RAPDU: 0E 10 70 07 7D E6 B0 1A 90 00 [08:46:55]wFMCommunicate OK [08:46:55]SAM_PROTO_SignData done [08:46:55]FM_MakeSignedData done [08:46:55]CreateOFDProtocolMessage [08:46:55]wFMCommunicate request_size=4 [08:46:55]MH_SAM_APDU [08:46:55]CAPDU: 80 11 00 00 [08:46:55]Write to MH i2c: E2 08 00 C5 32 80 11 00 00 00 00 00 00 71 [08:46:55]Write i2c OK [08:46:55]MH_I2C_Read... [08:46:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:55]Read from MH i2c: E2 [08:46:55]MH_I2C_Read... [08:46:55]Read from MH i2c: E2 17 00 [08:46:55]MH_I2C_Read... [08:46:55]Read from MH i2c: E2 17 00 C5 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C8 [08:46:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:46:55]wFMCommunicate OK [08:46:55]CreateOFDProtocolMessage done [08:46:55]OFDSenderStorePacket 227250 [08:46:55]StoreOFDPacket docnum=227250 [08:46:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 9F 12 07 01 CF B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 81 C3 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B2 77 03 00 35 04 06 00 DC 57 CA 0E 2D C9 0E 10 70 07 7D E6 B0 1A [08:46:55]CheckFolder [08:46:55]dirname=/storage/ofd_packets [08:46:55]CheckFolder done [08:46:55]ProducePacketName [08:46:55]name=ofd_packets/00227250 [08:46:55]NVStorageSaveData ofd_packets/00227250 [08:46:55]File name is /storage/ofd_packets/00227250 [08:46:55]Write 301 bytes [08:46:55]NVStorageSaveData done [08:46:55]OFDSenderStorePacket done [08:46:55]KKMCreateOFDPacket done [08:46:55]NVStorageSaveData kkm_last_timestamp [08:46:55]File name is /storage/kkm_last_timestamp [08:46:55]Write 4 bytes [08:46:55]NVStorageSaveData done [08:46:55]OFD Sender: Processing packet 227250 [packets to send 38, broken 37] [08:46:55]ProducePacketName [08:46:55]name=ofd_packets/00227250 [08:46:55]OFD Sender: To server: pG, [08:46:55]CommunicateWithHost lk.salyk.kg:30040 [08:46:55]ConnectInit lk.salyk.kg [08:46:55]ExternCall_PrintAddStr [08:46:55]wPrintStart [08:46:55]Write to MH i2c: 01 00 00 C6 32 F8 [08:46:55]Write i2c OK [08:46:55]MH_I2C_Read... [08:46:55]Read from MH i2c: 01 [08:46:55]MH_I2C_Read... [08:46:55]Read from MH i2c: 01 07 00 [08:46:55]MH_I2C_Read... [08:46:55]Read from MH i2c: 01 07 00 C6 32 00 00 00 00 00 FF 0F 0D [08:46:55]RasterBufferAndPrint [08:46:55]line Счет N : (1)1962709 [08:46:55]line ИНН: 02508201610067 [08:46:55]line Контрольно-Кассовый Чек [08:46:55]line ПРОДАЖА [08:46:55]line ТРК (МРК, ГНК) : 43 [08:46:55]line Товар: 2710124130 [08:46:55]line Аи-92-К-5 [08:46:55]line 14.950 * 66.90 [08:46:55]line = 1000.16 [08:46:55]line НДС 12% НСП 1% [08:46:55]line > о реализуемом товаре [08:46:55]line ОКРУГЛЕНИЕ: -0.16 [08:46:55]line ИТОГО: 1000.00 [08:46:55]line Внесено: 1000.00 [08:46:55]line СДАЧА: 0.00 [08:46:55]line НСП 1% : 8.85 [08:46:55]line НДС 12% : 106.21 [08:46:55]line Наличными: 1000.00 [08:46:55]line Безнал.: 0.00 [08:46:55]line Место: АЗС № 133 "Партнер Нефть" [08:46:55]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [08:46:55]line СНО: Общий режим [08:46:55]line Чек 98 20.10.2024 08:46 [08:46:55]line Смена: 533 ФФД: 1.0 [08:46:55]line ЗНМ: 0300000091 [08:46:55]line РНМ: 0000000000091685 [08:46:55]line Версия ККМ: 001 [08:46:55]line ФМ: 0000000000871839 [08:46:55]line ФД: 227250 [08:46:55]line ФПД: 242269610192329 [08:46:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T084657&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227250&fm=242269610192329&tin=02508201610067®Number=0000000000091685&sum=100000 [08:46:55]Connected sock=11 [08:46: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 33 39 0F 01 00 00 9F 12 07 01 CF B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 81 C3 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B2 77 03 00 35 04 06 00 DC 57 CA 0E 2D C9 0E 10 70 07 7D E6 B0 1A [08:46:55]written 0, free lines is 4095 [08:46: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 33 39 4F 00 00 00 99 A6 47 00 28 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B2 77 03 00 F4 03 04 00 80 6E 14 67 B6 04 01 00 00 81 71 76 C3 A5 EA 03 03 [08:46:55]CommunicateWithHost err = 0 [08:46:55]CheckOFDResponse [08:46:55]1017 (14) - 77093643461234 [08:46:55]1041 (16) - 0000000000871839 [08:46:55]1040 (4) - 227250 [08:46:55]1012 (4) - 20.10.2024 02:44 [08:46:55]1206 (1) - 0 [08:46:55]OFD Sender: Remove packet 227250 [08:46:55]ProducePacketName [08:46:55]name=ofd_packets/00227250 [08:46:55]NVStorageDeleteData [08:46:56]Write to MH i2c: 01 00 00 F0 32 22 [08:46:56]Write i2c OK [08:46:56]MH_I2C_Read... [08:46:56]Read from MH i2c: 01 [08:46:56]MH_I2C_Read... [08:46:56]Read from MH i2c: 01 07 00 [08:46:56]MH_I2C_Read... [08:46:56]Read from MH i2c: 01 07 00 F0 32 00 00 00 00 00 14 0D 4A [08:46:56]RasterBufferAndPrint [08:46:56]line [08:46:56]line [08:46:56]line [08:46:56]line [08:46:56]line [08:46:56]written 0, free lines is 3354 [08:46:56]process_action close_receipt done [08:46:56]requested_data is exist [08:46:56]produce_requested_data [08:46:56]requested_item fm.sn is exist - process it [08:46:56]wFMCommunicate request_size=4 [08:46:56]MH_SAM_APDU [08:46:56]CAPDU: 80 11 00 00 [08:46:56]Write to MH i2c: E2 08 00 F7 32 80 11 00 00 00 00 00 00 A3 [08:46:56]Write i2c OK [08:46:56]MH_I2C_Read... [08:46:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:56]Read from MH i2c: E2 [08:46:56]MH_I2C_Read... [08:46:56]Read from MH i2c: E2 17 00 [08:46:56]MH_I2C_Read... [08:46:56]Read from MH i2c: E2 17 00 F7 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 FA [08:46:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:46:56]wFMCommunicate OK [08:46:56]requested_item fd.num is exist - process it [08:46:56]SAM_PROTO_GetFieldsCounters [08:46:56]wFMCommunicate request_size=4 [08:46:56]MH_SAM_APDU [08:46:56]CAPDU: 80 13 00 00 [08:46:56]Write to MH i2c: E2 08 00 F8 32 80 13 00 00 00 00 00 00 A6 [08:46:56]Write i2c OK [08:46:56]MH_I2C_Read... [08:46:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:46:56]Read from MH i2c: E2 [08:46:56]MH_I2C_Read... [08:46:56]Read from MH i2c: E2 62 00 [08:46:56]MH_I2C_Read... [08:46:56]Read from MH i2c: E2 62 00 F8 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 B2 77 03 00 0E 04 04 00 15 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 38 [08:46: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 B2 77 03 00 0E 04 04 00 15 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 [08:46:56]wFMCommunicate OK [08:46:56]SAM_PROTO_GetFieldsCounters done [08:46:56]requested_item shift.num is exist - process it [08:46:56]requested_item shift.opened is exist - process it [08:46:56]req_shift_opened [08:46:56]FM_GetShiftState [08:46:56]SAM_PROTO_GetShiftState [08:46:56]wFMCommunicate request_size=4 [08:46:56]MH_SAM_APDU [08:46:56]CAPDU: 80 13 01 00 [08:46:56]Write to MH i2c: E2 08 00 F9 32 80 13 01 00 00 00 00 00 A8 [08:46:56]OFD Sender: No OFD packet to send [08:46:56]Write i2c OK [08:46:56]MH_I2C_Read... [08:46:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:56]Read from MH i2c: E2 [08:46:56]MH_I2C_Read... [08:46:56]Read from MH i2c: E2 0E 00 [08:46:56]MH_I2C_Read... [08:46:56]Read from MH i2c: E2 0E 00 F9 32 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 C2 [08:46:56]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:46:56]wFMCommunicate OK [08:46:56]SAM_PROTO_GetShiftState done [08:46:56]FM_GetShiftState done [08:46:56]req_shift_opened done [08:46:56]requested_item shift.open_date is exist - process it [08:46:56]req_shift_open_date [08:46:56]req_shift_open_date done [08:46:56]produce_requested_data done [08:46:56]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227250,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [08:46:56]process_action_free close_receipt [08:46:56]json_value_free [08:46:56]json_value_free done [08:46:56]process_json_proto returns [08:46:56]Send response to host [08:46:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227250,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [08:46:56]free response buf [08:46:56]execute_script done [08:46:56]execute_script returns [08:46:56]free content buf [08:46:56]Sock 9.Close socket [08:46:56]Sock 9.Thread stoped [08:47:01]OFD Sender: No OFD packet to send [08:47:06]OFD Sender: No OFD packet to send [08:47:11]OFD Sender: No OFD packet to send [08:47:16]OFD Sender: No OFD packet to send [08:47:21]OFD Sender: No OFD packet to send [08:47:26]OFD Sender: No OFD packet to send [08:47:31]OFD Sender: No OFD packet to send [08:47:36]OFD Sender: No OFD packet to send [08:47:41]OFD Sender: No OFD packet to send [08:47:46]OFD Sender: No OFD packet to send [08:47:51]OFD Sender: No OFD packet to send [08:47:56]OFD Sender: No OFD packet to send [08:48:01]OFD Sender: No OFD packet to send [08:48:06]OFD Sender: No OFD packet to send [08:48:11]OFD Sender: No OFD packet to send [08:48:16]OFD Sender: No OFD packet to send [08:48:21]OFD Sender: No OFD packet to send [08:48:23]accept exits with 8 [08:48:23]New connection [08:48:23]New thread 3066965348 created [08:48:23]Thread 3066821988 joined [08:48:23]Waiting for new connection... [08:48:23] Sock 8.Parse request [08:48:23]Sock 8.Check first char [08:48:23]Sock 8.First char is OK [08:48:23]request: POST /json_proto HTTP/1.0 [08:48:23]Method: POST [08:48:23]URL: /json_proto [08:48:23]Method is POST - this is cgi request [08:48:23]url: /json_proto [08:48:23]query_string will be loaded in cgi processing [08:48:23]execute_cgi json_proto POST (null) [08:48:23]execute_cgi path=json_proto method=POST [08:48:23]POST find Content-Length [08:48:23]Host: 172.17.44.195:8080 [08:48:23]Content-Length: 659 [08:48:23]Content-Type: application/json [08:48:23] [08:48:23]POST finish read [08:48:23]Found Content-Length = 659 [08:48:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962710", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 5.850, "sum" : 400.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:48:23]execute_script... [08:48: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)1962710", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 5.850, "sum" : 400.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:48:23]POST & json_proto [08:48:23]process_json_proto [08:48:23]json parsed OK: [08:48:23]protocol is kg_v1.0 [08:48:23]action value=close_receipt [08:48:23]process_action close_receipt [08:48:23]cmd_close_receipt [08:48:23]MH_GetDate [08:48:23]Write to MH i2c: F0 00 00 FA 32 1B [08:48:23]Write i2c OK [08:48:23]MH_I2C_Read... [08:48:23]Read from MH i2c: F0 [08:48:23]MH_I2C_Read... [08:48:23]Read from MH i2c: F0 09 00 [08:48:23]MH_I2C_Read... [08:48:23]Read from MH i2c: F0 09 00 FA 32 00 DB C3 14 67 82 C9 CF 66 BD [08:48:23]GetLastDocTimeStamp 1729414017 [08:48:23]current date 1729414107 [08:48:23]FM_GetShiftState [08:48:23]SAM_PROTO_GetShiftState [08:48:23]wFMCommunicate request_size=4 [08:48:23]MH_SAM_APDU [08:48:23]CAPDU: 80 13 01 00 [08:48:23]Write to MH i2c: E2 08 00 FB 32 80 13 01 00 00 00 00 00 AA [08:48:23]Write i2c OK [08:48:23]MH_I2C_Read... [08:48:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:23]Read from MH i2c: E2 [08:48:23]MH_I2C_Read... [08:48:23]Read from MH i2c: E2 0E 00 [08:48:23]MH_I2C_Read... [08:48:23]Read from MH i2c: E2 0E 00 FB 32 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 C4 [08:48:23]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:48:23]wFMCommunicate OK [08:48:23]SAM_PROTO_GetShiftState done [08:48:23]FM_GetShiftState done [08:48:23]opened in 1729383750 [08:48:23]opened+sec_in_day 1729470150 [08:48:23]quantity*price = 40014 [08:48:23]sum+1 = 40015 [08:48:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.49 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 99 20.10.2024 08:48 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227251 ФПД: 178944297637601 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T084827&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227251&fm=178944297637601&tin=02508201610067®Number=0000000000091685&sum=40000 [08:48:24]StoreToDocumentArchive [08:48:24]shift 533 fd 227251 [08:48:24]save to /storage/0533/doc_00227251 [08:48:24]save last doc name /storage/0533/doc_00227251 to /storage/kkm_last_doc_name [08:48:24]save OK [08:48:24]Clear old archive folders... [08:48:24]ProcessDocumentItem done err = 0, tmpTLVsize=244 [08:48:24]tlvbuf is B6F5BA60 [08:48:24]SAM_PROTO_ClearQueue [08:48:24]wFMCommunicate request_size=4 [08:48:24]MH_SAM_APDU [08:48:24]CAPDU: 80 09 00 00 [08:48:24]Write to MH i2c: E2 08 00 08 33 80 09 00 00 00 00 00 00 AD [08:48:24]Write i2c OK [08:48:24]MH_I2C_Read... [08:48:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:48:25]Read from MH i2c: E2 [08:48:25]MH_I2C_Read... [08:48:25]Read from MH i2c: E2 03 00 [08:48:25]MH_I2C_Read... [08:48:25]Read from MH i2c: E2 03 00 08 33 00 90 00 AF [08:48:25]RAPDU: 90 00 [08:48:25]wFMCommunicate OK [08:48:25]SAM_PROTO_ClearQueue done [08:48:25]KKMCreateOFDPacket [08:48:25]OFDProtocolAddRootSTLVToBuf [08:48:25]FM_MakeSignedData [08:48:25]FM_MakeSignedData [08:48:25]SAM_PROTO_SignData [08:48:25]wFMCommunicate request_size=4 [08:48:25]MH_SAM_APDU [08:48:25]CAPDU: 80 0D 01 02 [08:48:25]Write to MH i2c: E2 08 00 09 33 80 0D 01 02 00 00 00 00 B5 [08:48:25]Write i2c OK [08:48:25]MH_I2C_Read... [08:48:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:48:25]Read from MH i2c: E2 [08:48:25]MH_I2C_Read... [08:48:25]Read from MH i2c: E2 03 00 [08:48:25]MH_I2C_Read... [08:48:25]Read from MH i2c: E2 03 00 09 33 00 90 00 B0 [08:48:25]RAPDU: 90 00 [08:48:25]wFMCommunicate OK [08:48:25]wFMCommunicate request_size=253 [08:48:25]MH_SAM_APDU [08:48:25]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 DB C3 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B3 77 03 00 35 04 06 00 A2 BF B7 4B 96 E1 [08:48:25]Write to MH i2c: E2 00 01 0A 33 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 DB C3 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B3 77 03 00 35 04 06 00 A2 BF B7 4B 96 E1 00 00 7F [08:48:25]Write i2c OK [08:48:25]MH_I2C_Read... [08:48:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:25]Read from MH i2c: E2 [08:48:25]MH_I2C_Read... [08:48:25]Read from MH i2c: E2 03 00 [08:48:25]MH_I2C_Read... [08:48:25]Read from MH i2c: E2 03 00 0A 33 00 90 00 B1 [08:48:25]RAPDU: 90 00 [08:48:25]wFMCommunicate OK [08:48:25]wFMCommunicate request_size=4 [08:48:25]MH_SAM_APDU [08:48:25]CAPDU: 80 0D 03 02 [08:48:25]Write to MH i2c: E2 08 00 0B 33 80 0D 03 02 00 00 00 00 B9 [08:48:25]Write i2c OK [08:48:25]MH_I2C_Read... [08:48:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:48:25]Read from MH i2c: E2 [08:48:25]MH_I2C_Read... [08:48:25]Read from MH i2c: E2 0B 00 [08:48:25]MH_I2C_Read... [08:48:25]Read from MH i2c: E2 0B 00 0B 33 00 A0 D7 38 8E C2 4E DF 20 90 00 06 [08:48:25]RAPDU: A0 D7 38 8E C2 4E DF 20 90 00 [08:48:25]wFMCommunicate OK [08:48:25]SAM_PROTO_SignData done [08:48:25]FM_MakeSignedData done [08:48:25]CreateOFDProtocolMessage [08:48:25]wFMCommunicate request_size=4 [08:48:25]MH_SAM_APDU [08:48:25]CAPDU: 80 11 00 00 [08:48:25]Write to MH i2c: E2 08 00 0C 33 80 11 00 00 00 00 00 00 B9 [08:48:25]Write i2c OK [08:48:25]MH_I2C_Read... [08:48:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:25]Read from MH i2c: E2 [08:48:25]MH_I2C_Read... [08:48:25]Read from MH i2c: E2 17 00 [08:48:25]MH_I2C_Read... [08:48:25]Read from MH i2c: E2 17 00 0C 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 10 [08:48:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:48:25]wFMCommunicate OK [08:48:25]CreateOFDProtocolMessage done [08:48:25]OFDSenderStorePacket 227251 [08:48:25]StoreOFDPacket docnum=227251 [08:48:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 DA 6C 00 01 82 23 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 DB C3 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B3 77 03 00 35 04 06 00 A2 BF B7 4B 96 E1 A0 D7 38 8E C2 4E DF 20 [08:48:25]CheckFolder [08:48:25]dirname=/storage/ofd_packets [08:48:25]CheckFolder done [08:48:25]ProducePacketName [08:48:25]name=ofd_packets/00227251 [08:48:25]NVStorageSaveData ofd_packets/00227251 [08:48:25]File name is /storage/ofd_packets/00227251 [08:48:25]Write 294 bytes [08:48:25]NVStorageSaveData done [08:48:25]OFDSenderStorePacket done [08:48:25]KKMCreateOFDPacket done [08:48:25]NVStorageSaveData kkm_last_timestamp [08:48:25]File name is /storage/kkm_last_timestamp [08:48:25]Write 4 bytes [08:48:25]NVStorageSaveData done [08:48:25]ExternCall_PrintAddStr [08:48:25]wPrintStart [08:48:25]Write to MH i2c: 01 00 00 0D 33 40 [08:48:25]Write i2c OK [08:48:25]MH_I2C_Read... [08:48:25]Read from MH i2c: 01 [08:48:25]MH_I2C_Read... [08:48:25]Read from MH i2c: 01 07 00 [08:48:25]MH_I2C_Read... [08:48:25]Read from MH i2c: 01 07 00 0D 33 00 00 00 00 00 FF 0F 55 [08:48:25]RasterBufferAndPrint [08:48:25]line Счет N : (1)1962710 [08:48:25]line ИНН: 02508201610067 [08:48:25]line Контрольно-Кассовый Чек [08:48:25]line ПРОДАЖА [08:48:25]line ТРК (МРК, ГНК) : 52 [08:48:25]line Товар: 2710124130 [08:48:25]line SU-92 [08:48:25]line 5.850 * 68.40 [08:48:25]line = 400.14 [08:48:25]line НДС 12% НСП 1% [08:48:25]line > о реализуемом товаре [08:48:25]line ОКРУГЛЕНИЕ: -0.14 [08:48:25]line ИТОГО: 400.00 [08:48:25]line Внесено: 400.00 [08:48:25]line СДАЧА: 0.00 [08:48:25]line НСП 1% : 3.54 [08:48:25]line НДС 12% : 42.49 [08:48:25]line Наличными: 400.00 [08:48:25]line Безнал.: 0.00 [08:48:25]line Место: АЗС № 133 "Партнер Нефть" [08:48:25]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [08:48:25]line СНО: Общий режим [08:48:25]line Чек 99 20.10.2024 08:48 [08:48:25]line Смена: 533 ФФД: 1.0 [08:48:25]line ЗНМ: 0300000091 [08:48:25]line РНМ: 0000000000091685 [08:48:25]line Версия ККМ: 001 [08:48:25]line ФМ: 0000000000871839 [08:48:25]line ФД: 227251 [08:48:25]line ФПД: 178944297637601 [08:48:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T084827&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227251&fm=178944297637601&tin=02508201610067®Number=0000000000091685&sum=40000 [08:48:25]OFD Sender: Processing packet 227251 [packets to send 38, broken 37] [08:48:25]ProducePacketName [08:48:25]name=ofd_packets/00227251 [08:48:25]OFD Sender: To server: pG, [08:48:25]CommunicateWithHost lk.salyk.kg:30040 [08:48:25]ConnectInit lk.salyk.kg [08:48:25]written 0, free lines is 4095 [08:48:25]Connected sock=10 [08:48: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 33 39 08 01 00 00 DA 6C 00 01 82 23 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 DB C3 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B3 77 03 00 35 04 06 00 A2 BF B7 4B 96 E1 A0 D7 38 8E C2 4E DF 20 [08:48: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 33 39 4F 00 00 00 5B 4A 47 00 12 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B3 77 03 00 F4 03 04 00 DB 6E 14 67 B6 04 01 00 00 F7 4F DA 77 FA AA 69 BD [08:48:26]CommunicateWithHost err = 0 [08:48:26]CheckOFDResponse [08:48:26]1017 (14) - 77093643461234 [08:48:26]1041 (16) - 0000000000871839 [08:48:26]1040 (4) - 227251 [08:48:26]1012 (4) - 20.10.2024 02:45 [08:48:26]1206 (1) - 0 [08:48:26]OFD Sender: Remove packet 227251 [08:48:26]ProducePacketName [08:48:26]name=ofd_packets/00227251 [08:48:26]NVStorageDeleteData [08:48:26]Write to MH i2c: 01 00 00 37 33 6A [08:48:26]Write i2c OK [08:48:26]MH_I2C_Read... [08:48:26]Read from MH i2c: 01 [08:48:26]MH_I2C_Read... [08:48:26]Read from MH i2c: 01 07 00 [08:48:26]MH_I2C_Read... [08:48:26]Read from MH i2c: 01 07 00 37 33 00 00 00 00 00 0A 0D 88 [08:48:26]RasterBufferAndPrint [08:48:26]line [08:48:26]line [08:48:26]line [08:48:26]line [08:48:26]line [08:48:26]written 0, free lines is 3344 [08:48:26]process_action close_receipt done [08:48:26]requested_data is exist [08:48:26]produce_requested_data [08:48:26]requested_item fm.sn is exist - process it [08:48:26]wFMCommunicate request_size=4 [08:48:26]MH_SAM_APDU [08:48:26]CAPDU: 80 11 00 00 [08:48:26]Write to MH i2c: E2 08 00 3E 33 80 11 00 00 00 00 00 00 EB [08:48:26]Write i2c OK [08:48:26]MH_I2C_Read... [08:48:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:26]Read from MH i2c: E2 [08:48:26]MH_I2C_Read... [08:48:26]Read from MH i2c: E2 17 00 [08:48:26]MH_I2C_Read... [08:48:26]Read from MH i2c: E2 17 00 3E 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 42 [08:48:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:48:26]wFMCommunicate OK [08:48:26]requested_item fd.num is exist - process it [08:48:26]SAM_PROTO_GetFieldsCounters [08:48:26]wFMCommunicate request_size=4 [08:48:26]MH_SAM_APDU [08:48:26]CAPDU: 80 13 00 00 [08:48:26]Write to MH i2c: E2 08 00 3F 33 80 13 00 00 00 00 00 00 EE [08:48:26]Write i2c OK [08:48:26]MH_I2C_Read... [08:48:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:48:26]Read from MH i2c: E2 [08:48:26]MH_I2C_Read... [08:48:26]Read from MH i2c: E2 62 00 [08:48:26]MH_I2C_Read... [08:48:26]Read from MH i2c: E2 62 00 3F 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 B3 77 03 00 0E 04 04 00 15 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 84 [08:48:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 B3 77 03 00 0E 04 04 00 15 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 [08:48:26]wFMCommunicate OK [08:48:26]SAM_PROTO_GetFieldsCounters done [08:48:26]requested_item shift.num is exist - process it [08:48:26]requested_item shift.opened is exist - process it [08:48:26]req_shift_opened [08:48:26]FM_GetShiftState [08:48:26]SAM_PROTO_GetShiftState [08:48:26]wFMCommunicate request_size=4 [08:48:26]MH_SAM_APDU [08:48:26]CAPDU: 80 13 01 00 [08:48:26]Write to MH i2c: E2 08 00 40 33 80 13 01 00 00 00 00 00 F0 [08:48:26]Write i2c OK [08:48:26]MH_I2C_Read... [08:48:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:26]Read from MH i2c: E2 [08:48:26]MH_I2C_Read... [08:48:26]Read from MH i2c: E2 0E 00 [08:48:26]MH_I2C_Read... [08:48:26]Read from MH i2c: E2 0E 00 40 33 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 0A [08:48:26]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:48:26]wFMCommunicate OK [08:48:26]SAM_PROTO_GetShiftState done [08:48:26]FM_GetShiftState done [08:48:26]req_shift_opened done [08:48:26]requested_item shift.open_date is exist - process it [08:48:26]req_shift_open_date [08:48:26]req_shift_open_date done [08:48:26]produce_requested_data done [08:48:26]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227251,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [08:48:26]process_action_free close_receipt [08:48:26]json_value_free [08:48:26]json_value_free done [08:48:26]process_json_proto returns [08:48:26]Send response to host [08:48:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227251,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [08:48:26]free response buf [08:48:26]execute_script done [08:48:26]execute_script returns [08:48:26]free content buf [08:48:26]Sock 8.Close socket [08:48:26]Sock 8.Thread stoped [08:48:26]OFD Sender: No OFD packet to send [08:48:31]OFD Sender: No OFD packet to send [08:48:36]OFD Sender: No OFD packet to send [08:48:41]OFD Sender: No OFD packet to send [08:48:46]OFD Sender: No OFD packet to send [08:48:51]OFD Sender: No OFD packet to send [08:48:56]OFD Sender: No OFD packet to send [08:49:01]OFD Sender: No OFD packet to send [08:49:06]OFD Sender: No OFD packet to send [08:49:11]OFD Sender: No OFD packet to send [08:49:16]OFD Sender: No OFD packet to send [08:49:21]OFD Sender: No OFD packet to send [08:49:26]OFD Sender: No OFD packet to send [08:49:31]OFD Sender: No OFD packet to send [08:49:36]OFD Sender: No OFD packet to send [08:49:41]OFD Sender: No OFD packet to send [08:49:46]OFD Sender: No OFD packet to send [08:49:51]OFD Sender: No OFD packet to send [08:49:56]OFD Sender: No OFD packet to send [08:50:01]OFD Sender: No OFD packet to send [08:50:06]OFD Sender: No OFD packet to send [08:50:11]OFD Sender: No OFD packet to send [08:50:16]OFD Sender: No OFD packet to send [08:50:21]OFD Sender: No OFD packet to send [08:50:24]accept exits with 9 [08:50:24]New connection [08:50:24]New thread 3066821988 created [08:50:24]Thread 3066965348 joined [08:50:24]Waiting for new connection... [08:50:24] Sock 9.Parse request [08:50:24]Sock 9.Check first char [08:50:24]Sock 9.First char is OK [08:50:24]request: POST /json_proto HTTP/1.0 [08:50:24]Method: POST [08:50:24]URL: /json_proto [08:50:24]Method is POST - this is cgi request [08:50:24]url: /json_proto [08:50:24]query_string will be loaded in cgi processing [08:50:24]execute_cgi json_proto POST (null) [08:50:24]execute_cgi path=json_proto method=POST [08:50:24]POST find Content-Length [08:50:24]Host: 172.17.44.195:8080 [08:50:24]Content-Length: 678 [08:50:24]Content-Type: application/json [08:50:24] [08:50:24]POST finish read [08:50:24]Found Content-Length = 678 [08:50:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962712", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:50:24]execute_script... [08:50: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)1962712", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:50:24]POST & json_proto [08:50:24]process_json_proto [08:50:24]json parsed OK: [08:50:24]protocol is kg_v1.0 [08:50:24]action value=close_receipt [08:50:24]process_action close_receipt [08:50:24]cmd_close_receipt [08:50:24]MH_GetDate [08:50:24]Write to MH i2c: F0 00 00 41 33 63 [08:50:24]Write i2c OK [08:50:24]MH_I2C_Read... [08:50:24]Read from MH i2c: F0 [08:50:24]MH_I2C_Read... [08:50:24]Read from MH i2c: F0 09 00 [08:50:24]MH_I2C_Read... [08:50:24]Read from MH i2c: F0 09 00 41 33 00 54 C4 14 67 82 C9 CF 66 7F [08:50:24]GetLastDocTimeStamp 1729414107 [08:50:24]current date 1729414228 [08:50:24]FM_GetShiftState [08:50:24]SAM_PROTO_GetShiftState [08:50:24]wFMCommunicate request_size=4 [08:50:24]MH_SAM_APDU [08:50:24]CAPDU: 80 13 01 00 [08:50:24]Write to MH i2c: E2 08 00 42 33 80 13 01 00 00 00 00 00 F2 [08:50:24]Write i2c OK [08:50:24]MH_I2C_Read... [08:50:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:24]Read from MH i2c: E2 [08:50:24]MH_I2C_Read... [08:50:24]Read from MH i2c: E2 0E 00 [08:50:24]MH_I2C_Read... [08:50:24]Read from MH i2c: E2 0E 00 42 33 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 0C [08:50:24]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:50:24]wFMCommunicate OK [08:50:24]SAM_PROTO_GetShiftState done [08:50:24]FM_GetShiftState done [08:50:24]opened in 1729383750 [08:50:24]opened+sec_in_day 1729470150 [08:50:24]quantity*price = 50041 [08:50:24]sum+1 = 50042 [08:50:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 100 20.10.2024 08:50 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227252 ФПД: 217609573999233 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T085028&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227252&fm=217609573999233&tin=02508201610067®Number=0000000000091685&sum=50000 [08:50:25]StoreToDocumentArchive [08:50:25]shift 533 fd 227252 [08:50:25]save to /storage/0533/doc_00227252 [08:50:25]save last doc name /storage/0533/doc_00227252 to /storage/kkm_last_doc_name [08:50:25]save OK [08:50:25]Clear old archive folders... [08:50:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:50:25]tlvbuf is 004F97B0 [08:50:25]SAM_PROTO_ClearQueue [08:50:25]wFMCommunicate request_size=4 [08:50:25]MH_SAM_APDU [08:50:25]CAPDU: 80 09 00 00 [08:50:25]Write to MH i2c: E2 08 00 4F 33 80 09 00 00 00 00 00 00 F4 [08:50:25]Write i2c OK [08:50:25]MH_I2C_Read... [08:50:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:50:25]Read from MH i2c: E2 [08:50:25]MH_I2C_Read... [08:50:25]Read from MH i2c: E2 03 00 [08:50:25]MH_I2C_Read... [08:50:25]Read from MH i2c: E2 03 00 4F 33 00 90 00 F6 [08:50:25]RAPDU: 90 00 [08:50:25]wFMCommunicate OK [08:50:25]SAM_PROTO_ClearQueue done [08:50:25]KKMCreateOFDPacket [08:50:25]OFDProtocolAddRootSTLVToBuf [08:50:25]FM_MakeSignedData [08:50:25]FM_MakeSignedData [08:50:25]SAM_PROTO_SignData [08:50:25]wFMCommunicate request_size=4 [08:50:25]MH_SAM_APDU [08:50:25]CAPDU: 80 0D 01 02 [08:50:25]Write to MH i2c: E2 08 00 50 33 80 0D 01 02 00 00 00 00 FC [08:50:25]Write i2c OK [08:50:25]MH_I2C_Read... [08:50:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:50:25]Read from MH i2c: E2 [08:50:25]MH_I2C_Read... [08:50:25]Read from MH i2c: E2 03 00 [08:50:25]MH_I2C_Read... [08:50:25]Read from MH i2c: E2 03 00 50 33 00 90 00 F7 [08:50:25]RAPDU: 90 00 [08:50:25]wFMCommunicate OK [08:50:25]wFMCommunicate request_size=255 [08:50:25]MH_SAM_APDU [08:50:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 54 C4 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B4 77 03 00 35 04 06 00 C5 [08:50:25]Write to MH i2c: E2 02 01 51 33 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 54 C4 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B4 77 03 00 35 04 06 00 C5 00 00 94 [08:50:25]Write i2c OK [08:50:25]MH_I2C_Read... [08:50:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:25]Read from MH i2c: E2 [08:50:25]MH_I2C_Read... [08:50:25]Read from MH i2c: E2 03 00 [08:50:25]MH_I2C_Read... [08:50:25]Read from MH i2c: E2 03 00 51 33 00 90 00 F8 [08:50:25]RAPDU: 90 00 [08:50:25]wFMCommunicate OK [08:50:25]wFMCommunicate request_size=10 [08:50:25]MH_SAM_APDU [08:50:25]CAPDU: 80 0D 02 02 05 EA 2D 5B A2 81 [08:50:25]Write to MH i2c: E2 0D 00 52 33 80 0D 02 02 05 00 EA 2D 5B A2 81 00 00 9E [08:50:25]Write i2c OK [08:50:25]MH_I2C_Read... [08:50:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:25]Read from MH i2c: E2 [08:50:25]MH_I2C_Read... [08:50:25]Read from MH i2c: E2 03 00 [08:50:25]MH_I2C_Read... [08:50:25]Read from MH i2c: E2 03 00 52 33 00 90 00 F9 [08:50:25]RAPDU: 90 00 [08:50:25]wFMCommunicate OK [08:50:25]wFMCommunicate request_size=4 [08:50:25]MH_SAM_APDU [08:50:25]CAPDU: 80 0D 03 02 [08:50:25]Write to MH i2c: E2 08 00 53 33 80 0D 03 02 00 00 00 00 01 [08:50:25]Write i2c OK [08:50:25]MH_I2C_Read... [08:50:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:50:25]Read from MH i2c: E2 [08:50:25]MH_I2C_Read... [08:50:25]Read from MH i2c: E2 0B 00 [08:50:25]MH_I2C_Read... [08:50:25]Read from MH i2c: E2 0B 00 53 33 00 99 8F 9B EC A9 42 ED 73 90 00 FC [08:50:25]RAPDU: 99 8F 9B EC A9 42 ED 73 90 00 [08:50:25]wFMCommunicate OK [08:50:25]SAM_PROTO_SignData done [08:50:25]FM_MakeSignedData done [08:50:25]CreateOFDProtocolMessage [08:50:25]wFMCommunicate request_size=4 [08:50:25]MH_SAM_APDU [08:50:25]CAPDU: 80 11 00 00 [08:50:25]Write to MH i2c: E2 08 00 54 33 80 11 00 00 00 00 00 00 01 [08:50:25]Write i2c OK [08:50:25]MH_I2C_Read... [08:50:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:25]Read from MH i2c: E2 [08:50:25]MH_I2C_Read... [08:50:25]Read from MH i2c: E2 17 00 [08:50:25]MH_I2C_Read... [08:50:25]Read from MH i2c: E2 17 00 54 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 58 [08:50:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:50:25]wFMCommunicate OK [08:50:25]CreateOFDProtocolMessage done [08:50:25]OFDSenderStorePacket 227252 [08:50:25]StoreOFDPacket docnum=227252 [08:50:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 0F 36 07 01 FC AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 54 C4 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B4 77 03 00 35 04 06 00 C5 EA 2D 5B A2 81 99 8F 9B EC A9 42 ED 73 [08:50:25]CheckFolder [08:50:25]dirname=/storage/ofd_packets [08:50:25]CheckFolder done [08:50:25]ProducePacketName [08:50:25]name=ofd_packets/00227252 [08:50:25]NVStorageSaveData ofd_packets/00227252 [08:50:25]File name is /storage/ofd_packets/00227252 [08:50:25]Write 301 bytes [08:50:25]NVStorageSaveData done [08:50:25]OFDSenderStorePacket done [08:50:25]KKMCreateOFDPacket done [08:50:25]NVStorageSaveData kkm_last_timestamp [08:50:25]File name is /storage/kkm_last_timestamp [08:50:25]Write 4 bytes [08:50:25]NVStorageSaveData done [08:50:25]ExternCall_PrintAddStr [08:50:25]wPrintStart [08:50:25]Write to MH i2c: 01 00 00 55 33 88 [08:50:25]Write i2c OK [08:50:25]MH_I2C_Read... [08:50:25]Read from MH i2c: 01 [08:50:25]MH_I2C_Read... [08:50:25]Read from MH i2c: 01 07 00 [08:50:25]MH_I2C_Read... [08:50:25]Read from MH i2c: 01 07 00 55 33 00 00 00 00 00 FF 0F 9D [08:50:25]RasterBufferAndPrint [08:50:25]line Счет N : (1)1962712 [08:50:25]line ИНН: 02508201610067 [08:50:25]line Контрольно-Кассовый Чек [08:50:25]line ПРОДАЖА [08:50:25]line ТРК (МРК, ГНК) : 43 [08:50:25]line Товар: 2710124130 [08:50:25]line Аи-92-К-5 [08:50:25]line 7.480 * 66.90 [08:50:25]line = 500.41 [08:50:25]line НДС 12% НСП 1% [08:50:25]line > о реализуемом товаре [08:50:25]line ОКРУГЛЕНИЕ: -0.41 [08:50:25]line ИТОГО: 500.00 [08:50:25]line Внесено: 500.00 [08:50:25]line СДАЧА: 0.00 [08:50:26]line НСП 1% : 4.43 [08:50:26]line НДС 12% : 53.14 [08:50:26]line Наличными: 500.00 [08:50:26]line Безнал.: 0.00 [08:50:26]line Место: АЗС № 133 "Партнер Нефть" [08:50:26]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [08:50:26]line СНО: Общий режим [08:50:26]line Чек 100 20.10.2024 08:50 [08:50:26]line Смена: 533 ФФД: 1.0 [08:50:26]line ЗНМ: 0300000091 [08:50:26]line РНМ: 0000000000091685 [08:50:26]line Версия ККМ: 001 [08:50:26]line ФМ: 0000000000871839 [08:50:26]line ФД: 227252 [08:50:26]line ФПД: 217609573999233 [08:50:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T085028&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227252&fm=217609573999233&tin=02508201610067®Number=0000000000091685&sum=50000 [08:50:26]OFD Sender: Processing packet 227252 [packets to send 38, broken 37] [08:50:26]ProducePacketName [08:50:26]name=ofd_packets/00227252 [08:50:26]OFD Sender: To server: pG, [08:50:26]CommunicateWithHost lk.salyk.kg:30040 [08:50:26]ConnectInit lk.salyk.kg [08:50:26]written 0, free lines is 4095 [08:50:26]Connected sock=10 [08:50: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 33 39 0F 01 00 00 0F 36 07 01 FC AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 54 C4 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B4 77 03 00 35 04 06 00 C5 EA 2D 5B A2 81 99 8F 9B EC A9 42 ED 73 [08:50: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 33 39 4F 00 00 00 DC C1 47 00 F5 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B4 77 03 00 F4 03 04 00 53 6F 14 67 B6 04 01 00 00 A9 F1 F8 82 21 E0 89 CE [08:50:26]CommunicateWithHost err = 0 [08:50:26]CheckOFDResponse [08:50:26]1017 (14) - 77093643461234 [08:50:26]1041 (16) - 0000000000871839 [08:50:26]1040 (4) - 227252 [08:50:26]1012 (4) - 20.10.2024 02:47 [08:50:26]1206 (1) - 0 [08:50:26]OFD Sender: Remove packet 227252 [08:50:26]ProducePacketName [08:50:26]name=ofd_packets/00227252 [08:50:26]NVStorageDeleteData [08:50:26]Write to MH i2c: 01 00 00 7F 33 B2 [08:50:26]Write i2c OK [08:50:26]MH_I2C_Read... [08:50:26]Read from MH i2c: 01 [08:50:26]MH_I2C_Read... [08:50:26]Read from MH i2c: 01 07 00 [08:50:26]MH_I2C_Read... [08:50:26]Read from MH i2c: 01 07 00 7F 33 00 00 00 00 00 0B 0D D1 [08:50:26]RasterBufferAndPrint [08:50:26]line [08:50:26]line [08:50:26]line [08:50:26]line [08:50:26]line [08:50:26]written 0, free lines is 3345 [08:50:26]process_action close_receipt done [08:50:26]requested_data is exist [08:50:26]produce_requested_data [08:50:26]requested_item fm.sn is exist - process it [08:50:26]wFMCommunicate request_size=4 [08:50:26]MH_SAM_APDU [08:50:26]CAPDU: 80 11 00 00 [08:50:26]Write to MH i2c: E2 08 00 86 33 80 11 00 00 00 00 00 00 33 [08:50:26]Write i2c OK [08:50:26]MH_I2C_Read... [08:50:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:26]Read from MH i2c: E2 [08:50:26]MH_I2C_Read... [08:50:26]Read from MH i2c: E2 17 00 [08:50:26]MH_I2C_Read... [08:50:26]Read from MH i2c: E2 17 00 86 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 8A [08:50:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:50:26]wFMCommunicate OK [08:50:26]requested_item fd.num is exist - process it [08:50:26]SAM_PROTO_GetFieldsCounters [08:50:26]wFMCommunicate request_size=4 [08:50:26]MH_SAM_APDU [08:50:26]CAPDU: 80 13 00 00 [08:50:26]Write to MH i2c: E2 08 00 87 33 80 13 00 00 00 00 00 00 36 [08:50:26]Write i2c OK [08:50:26]MH_I2C_Read... [08:50:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:50:26]Read from MH i2c: E2 [08:50:26]MH_I2C_Read... [08:50:26]Read from MH i2c: E2 62 00 [08:50:26]MH_I2C_Read... [08:50:26]Read from MH i2c: E2 62 00 87 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 B4 77 03 00 0E 04 04 00 15 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 D0 [08:50:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 B4 77 03 00 0E 04 04 00 15 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 [08:50:27]wFMCommunicate OK [08:50:27]SAM_PROTO_GetFieldsCounters done [08:50:27]requested_item shift.num is exist - process it [08:50:27]requested_item shift.opened is exist - process it [08:50:27]req_shift_opened [08:50:27]FM_GetShiftState [08:50:27]SAM_PROTO_GetShiftState [08:50:27]wFMCommunicate request_size=4 [08:50:27]MH_SAM_APDU [08:50:27]CAPDU: 80 13 01 00 [08:50:27]Write to MH i2c: E2 08 00 88 33 80 13 01 00 00 00 00 00 38 [08:50:27]Write i2c OK [08:50:27]MH_I2C_Read... [08:50:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:27]Read from MH i2c: E2 [08:50:27]MH_I2C_Read... [08:50:27]Read from MH i2c: E2 0E 00 [08:50:27]MH_I2C_Read... [08:50:27]Read from MH i2c: E2 0E 00 88 33 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 52 [08:50:27]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:50:27]wFMCommunicate OK [08:50:27]SAM_PROTO_GetShiftState done [08:50:27]FM_GetShiftState done [08:50:27]req_shift_opened done [08:50:27]requested_item shift.open_date is exist - process it [08:50:27]req_shift_open_date [08:50:27]req_shift_open_date done [08:50:27]produce_requested_data done [08:50:27]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227252,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [08:50:27]process_action_free close_receipt [08:50:27]json_value_free [08:50:27]json_value_free done [08:50:27]process_json_proto returns [08:50:27]Send response to host [08:50:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227252,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [08:50:27]free response buf [08:50:27]execute_script done [08:50:27]execute_script returns [08:50:27]free content buf [08:50:27]Sock 9.Close socket [08:50:27]Sock 9.Thread stoped [08:50:27]OFD Sender: No OFD packet to send [08:50:32]OFD Sender: No OFD packet to send [08:50:37]OFD Sender: No OFD packet to send [08:50:37]accept exits with 8 [08:50:37]New connection [08:50:37]New thread 3066965348 created [08:50:37]Thread 3066821988 joined [08:50:37]Waiting for new connection... [08:50:37] Sock 8.Parse request [08:50:37]Sock 8.Check first char [08:50:37]Sock 8.First char is OK [08:50:37]request: POST /json_proto HTTP/1.0 [08:50:37]Method: POST [08:50:37]URL: /json_proto [08:50:37]Method is POST - this is cgi request [08:50:37]url: /json_proto [08:50:37]query_string will be loaded in cgi processing [08:50:37]execute_cgi json_proto POST (null) [08:50:37]execute_cgi path=json_proto method=POST [08:50:37]POST find Content-Length [08:50:37]Host: 172.17.44.195:8080 [08:50:37]Content-Length: 793 [08:50:37]Content-Type: application/json [08:50:37] [08:50:37]POST finish read [08:50:37]Found Content-Length = 793 [08:50:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962711", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A31053", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:50:37]execute_script... [08:50: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)1962711", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A31053", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:50:37]POST & json_proto [08:50:37]process_json_proto [08:50:37]json parsed OK: [08:50:37]protocol is kg_v1.0 [08:50:37]action value=close_receipt [08:50:37]process_action close_receipt [08:50:37]cmd_close_receipt [08:50:37]MH_GetDate [08:50:37]Write to MH i2c: F0 00 00 89 33 AB [08:50:37]Write i2c OK [08:50:37]MH_I2C_Read... [08:50:37]Read from MH i2c: F0 [08:50:37]MH_I2C_Read... [08:50:37]Read from MH i2c: F0 09 00 [08:50:37]MH_I2C_Read... [08:50:37]Read from MH i2c: F0 09 00 89 33 00 61 C4 14 67 82 C9 CF 66 D4 [08:50:37]GetLastDocTimeStamp 1729414228 [08:50:37]current date 1729414241 [08:50:37]FM_GetShiftState [08:50:37]SAM_PROTO_GetShiftState [08:50:37]wFMCommunicate request_size=4 [08:50:37]MH_SAM_APDU [08:50:37]CAPDU: 80 13 01 00 [08:50:37]Write to MH i2c: E2 08 00 8A 33 80 13 01 00 00 00 00 00 3A [08:50:37]Write i2c OK [08:50:37]MH_I2C_Read... [08:50:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:37]Read from MH i2c: E2 [08:50:37]MH_I2C_Read... [08:50:37]Read from MH i2c: E2 0E 00 [08:50:37]MH_I2C_Read... [08:50:37]Read from MH i2c: E2 0E 00 8A 33 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 54 [08:50:37]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:50:37]wFMCommunicate OK [08:50:37]SAM_PROTO_GetShiftState done [08:50:37]FM_GetShiftState done [08:50:37]opened in 1729383750 [08:50:37]opened+sec_in_day 1729470150 [08:50:37]quantity*price = 0 [08:50:37]sum+1 = 1 [08:50:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 101 20.10.2024 08:50 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Талоны: Топливная Карта 31053 ФМ: 0000000000871839 ФД: 227253 ФПД: 55091739373274 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T085041&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227253&fm=55091739373274&tin=02508201610067®Number=0000000000091685&sum=0 [08:50:38]StoreToDocumentArchive [08:50:38]shift 533 fd 227253 [08:50:38]save to /storage/0533/doc_00227253 [08:50:38]save last doc name /storage/0533/doc_00227253 to /storage/kkm_last_doc_name [08:50:38]save OK [08:50:38]Clear old archive folders... [08:50:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:50:38]tlvbuf is 0059F2C0 [08:50:38]SAM_PROTO_ClearQueue [08:50:38]wFMCommunicate request_size=4 [08:50:38]MH_SAM_APDU [08:50:38]CAPDU: 80 09 00 00 [08:50:38]Write to MH i2c: E2 08 00 97 33 80 09 00 00 00 00 00 00 3C [08:50:38]Write i2c OK [08:50:38]MH_I2C_Read... [08:50:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:50:38]Read from MH i2c: E2 [08:50:38]MH_I2C_Read... [08:50:38]Read from MH i2c: E2 03 00 [08:50:38]MH_I2C_Read... [08:50:38]Read from MH i2c: E2 03 00 97 33 00 90 00 3E [08:50:38]RAPDU: 90 00 [08:50:38]wFMCommunicate OK [08:50:38]SAM_PROTO_ClearQueue done [08:50:38]KKMCreateOFDPacket [08:50:38]OFDProtocolAddRootSTLVToBuf [08:50:38]FM_MakeSignedData [08:50:38]FM_MakeSignedData [08:50:38]SAM_PROTO_SignData [08:50:38]wFMCommunicate request_size=4 [08:50:38]MH_SAM_APDU [08:50:38]CAPDU: 80 0D 01 02 [08:50:38]Write to MH i2c: E2 08 00 98 33 80 0D 01 02 00 00 00 00 44 [08:50:38]Write i2c OK [08:50:38]MH_I2C_Read... [08:50:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:50:38]Read from MH i2c: E2 [08:50:38]MH_I2C_Read... [08:50:38]Read from MH i2c: E2 03 00 [08:50:38]MH_I2C_Read... [08:50:38]Read from MH i2c: E2 03 00 98 33 00 90 00 3F [08:50:38]RAPDU: 90 00 [08:50:38]wFMCommunicate OK [08:50:38]wFMCommunicate request_size=255 [08:50:38]MH_SAM_APDU [08:50:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 65 00 00 00 F4 03 04 00 61 C4 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B5 77 03 00 35 04 06 00 32 [08:50:38]Write to MH i2c: E2 02 01 99 33 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 65 00 00 00 F4 03 04 00 61 C4 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B5 77 03 00 35 04 06 00 32 00 00 78 [08:50:38]Write i2c OK [08:50:38]MH_I2C_Read... [08:50:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:38]Read from MH i2c: E2 [08:50:38]MH_I2C_Read... [08:50:38]Read from MH i2c: E2 03 00 [08:50:38]MH_I2C_Read... [08:50:38]Read from MH i2c: E2 03 00 99 33 00 90 00 40 [08:50:38]RAPDU: 90 00 [08:50:38]wFMCommunicate OK [08:50:38]wFMCommunicate request_size=10 [08:50:38]MH_SAM_APDU [08:50:38]CAPDU: 80 0D 02 02 05 1B 0B 8E 2E DA [08:50:38]Write to MH i2c: E2 0D 00 9A 33 80 0D 02 02 05 00 1B 0B 8E 2E DA 00 00 0D [08:50:38]Write i2c OK [08:50:38]MH_I2C_Read... [08:50:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:38]Read from MH i2c: E2 [08:50:38]MH_I2C_Read... [08:50:38]Read from MH i2c: E2 03 00 [08:50:38]MH_I2C_Read... [08:50:38]Read from MH i2c: E2 03 00 9A 33 00 90 00 41 [08:50:38]RAPDU: 90 00 [08:50:38]wFMCommunicate OK [08:50:38]wFMCommunicate request_size=4 [08:50:38]MH_SAM_APDU [08:50:38]CAPDU: 80 0D 03 02 [08:50:38]Write to MH i2c: E2 08 00 9B 33 80 0D 03 02 00 00 00 00 49 [08:50:38]Write i2c OK [08:50:38]MH_I2C_Read... [08:50:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:50:38]Read from MH i2c: E2 [08:50:38]MH_I2C_Read... [08:50:38]Read from MH i2c: E2 0B 00 [08:50:38]MH_I2C_Read... [08:50:38]Read from MH i2c: E2 0B 00 9B 33 00 45 58 CE 5D A3 72 16 EA 90 00 27 [08:50:38]RAPDU: 45 58 CE 5D A3 72 16 EA 90 00 [08:50:38]wFMCommunicate OK [08:50:38]SAM_PROTO_SignData done [08:50:38]FM_MakeSignedData done [08:50:38]CreateOFDProtocolMessage [08:50:38]wFMCommunicate request_size=4 [08:50:38]MH_SAM_APDU [08:50:38]CAPDU: 80 11 00 00 [08:50:38]Write to MH i2c: E2 08 00 9C 33 80 11 00 00 00 00 00 00 49 [08:50:38]Write i2c OK [08:50:38]MH_I2C_Read... [08:50:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:39]Read from MH i2c: E2 [08:50:39]MH_I2C_Read... [08:50:39]Read from MH i2c: E2 17 00 [08:50:39]MH_I2C_Read... [08:50:39]Read from MH i2c: E2 17 00 9C 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A0 [08:50:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:50:39]wFMCommunicate OK [08:50:39]CreateOFDProtocolMessage done [08:50:39]OFDSenderStorePacket 227253 [08:50:39]StoreOFDPacket docnum=227253 [08:50:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 0D C8 07 01 30 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 65 00 00 00 F4 03 04 00 61 C4 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B5 77 03 00 35 04 06 00 32 1B 0B 8E 2E DA 45 58 CE 5D A3 72 16 EA [08:50:39]CheckFolder [08:50:39]dirname=/storage/ofd_packets [08:50:39]CheckFolder done [08:50:39]ProducePacketName [08:50:39]name=ofd_packets/00227253 [08:50:39]NVStorageSaveData ofd_packets/00227253 [08:50:39]File name is /storage/ofd_packets/00227253 [08:50:39]Write 301 bytes [08:50:39]NVStorageSaveData done [08:50:39]OFDSenderStorePacket done [08:50:39]KKMCreateOFDPacket done [08:50:39]NVStorageSaveData kkm_last_timestamp [08:50:39]File name is /storage/kkm_last_timestamp [08:50:39]Write 4 bytes [08:50:39]NVStorageSaveData done [08:50:39]OFD Sender: Processing packet 227253 [packets to send 38, broken 37] [08:50:39]ProducePacketName [08:50:39]name=ofd_packets/00227253 [08:50:39]OFD Sender: To server: pG, [08:50:39]CommunicateWithHost lk.salyk.kg:30040 [08:50:39]ConnectInit lk.salyk.kg [08:50:39]ExternCall_PrintAddStr [08:50:39]wPrintStart [08:50:39]Write to MH i2c: 01 00 00 9D 33 D0 [08:50:39]Write i2c OK [08:50:39]MH_I2C_Read... [08:50:39]Read from MH i2c: 01 [08:50:39]MH_I2C_Read... [08:50:39]Read from MH i2c: 01 07 00 [08:50:39]MH_I2C_Read... [08:50:39]Read from MH i2c: 01 07 00 9D 33 00 00 00 00 00 FF 0F E5 [08:50:39]RasterBufferAndPrint [08:50:39]line Счет N : (1)1962711 [08:50:39]line ИНН: 02508201610067 [08:50:39]line Контрольно-Кассовый Чек [08:50:39]line ПРОДАЖА [08:50:39]line ТРК (МРК, ГНК) : 33 [08:50:39]line Товар: 2710124130 [08:50:39]line Аи-92-К-5 [08:50:39]line 30.000 * 0.00 [08:50:39]line = 0.00 [08:50:39]line НДС 12% НСП 1% [08:50:39]line > о реализуемом товаре [08:50:39]line ИТОГО: 0.00 [08:50:39]line НСП 1% : 0.00 [08:50:39]line НДС 12% : 0.00 [08:50:39]line Наличными: 0.00 [08:50:39]line Безнал.: 0.00 [08:50:39]line Место: АЗС № 133 "Партнер Нефть" [08:50:39]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [08:50:39]line СНО: Общий режим [08:50:39]line Чек 101 20.10.2024 08:50 [08:50:39]line Смена: 533 ФФД: 1.0 [08:50:39]line ЗНМ: 0300000091 [08:50:39]line РНМ: 0000000000091685 [08:50:39]line Версия ККМ: 001 [08:50:39]line Талоны: Топливная Карта [08:50:39]line 31053 [08:50:39]line ФМ: 0000000000871839 [08:50:39]line ФД: 227253 [08:50:39]line ФПД: 55091739373274 [08:50:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T085041&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227253&fm=55091739373274&tin=02508201610067®Number=0000000000091685&sum=0 [08:50:39]Connected sock=11 [08:50: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 33 39 0F 01 00 00 0D C8 07 01 30 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 65 00 00 00 F4 03 04 00 61 C4 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B5 77 03 00 35 04 06 00 32 1B 0B 8E 2E DA 45 58 CE 5D A3 72 16 EA [08:50:39]written 0, free lines is 4095 [08:50: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 33 39 4F 00 00 00 75 75 47 00 4D 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 33 39 10 04 04 00 B5 77 03 00 F4 03 04 00 60 6F 14 67 B6 04 01 00 00 09 42 CF F1 37 2B 1B 1D [08:50:39]CommunicateWithHost err = 0 [08:50:39]CheckOFDResponse [08:50:39]1017 (14) - 77093643461234 [08:50:39]1041 (16) - 0000000000871839 [08:50:39]1040 (4) - 227253 [08:50:39]1012 (4) - 20.10.2024 02:48 [08:50:39]1206 (1) - 0 [08:50:39]OFD Sender: Remove packet 227253 [08:50:39]ProducePacketName [08:50:39]name=ofd_packets/00227253 [08:50:39]NVStorageDeleteData [08:50:39]Write to MH i2c: 01 00 00 C6 33 F9 [08:50:39]Write i2c OK [08:50:39]MH_I2C_Read... [08:50:39]Read from MH i2c: 01 [08:50:39]MH_I2C_Read... [08:50:39]Read from MH i2c: 01 07 00 [08:50:39]MH_I2C_Read... [08:50:39]Read from MH i2c: 01 07 00 C6 33 00 00 00 00 00 18 0D 25 [08:50:39]RasterBufferAndPrint [08:50:39]line [08:50:39]line [08:50:39]line [08:50:39]line [08:50:39]line [08:50:39]written 0, free lines is 3361 [08:50:39]process_action close_receipt done [08:50:39]requested_data is exist [08:50:39]produce_requested_data [08:50:39]requested_item fm.sn is exist - process it [08:50:39]wFMCommunicate request_size=4 [08:50:39]MH_SAM_APDU [08:50:39]CAPDU: 80 11 00 00 [08:50:39]Write to MH i2c: E2 08 00 CD 33 80 11 00 00 00 00 00 00 7A [08:50:39]Write i2c OK [08:50:39]MH_I2C_Read... [08:50:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:39]Read from MH i2c: E2 [08:50:39]MH_I2C_Read... [08:50:39]Read from MH i2c: E2 17 00 [08:50:39]MH_I2C_Read... [08:50:39]Read from MH i2c: E2 17 00 CD 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D1 [08:50:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:50:39]wFMCommunicate OK [08:50:39]requested_item fd.num is exist - process it [08:50:39]SAM_PROTO_GetFieldsCounters [08:50:39]wFMCommunicate request_size=4 [08:50:39]MH_SAM_APDU [08:50:39]CAPDU: 80 13 00 00 [08:50:39]Write to MH i2c: E2 08 00 CE 33 80 13 00 00 00 00 00 00 7D [08:50:39]Write i2c OK [08:50:39]MH_I2C_Read... [08:50:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:50:40]Read from MH i2c: E2 [08:50:40]MH_I2C_Read... [08:50:40]Read from MH i2c: E2 62 00 [08:50:40]MH_I2C_Read... [08:50:40]Read from MH i2c: E2 62 00 CE 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 B5 77 03 00 0E 04 04 00 15 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 1B [08:50:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 B5 77 03 00 0E 04 04 00 15 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 [08:50:40]wFMCommunicate OK [08:50:40]SAM_PROTO_GetFieldsCounters done [08:50:40]requested_item shift.num is exist - process it [08:50:40]requested_item shift.opened is exist - process it [08:50:40]req_shift_opened [08:50:40]FM_GetShiftState [08:50:40]SAM_PROTO_GetShiftState [08:50:40]wFMCommunicate request_size=4 [08:50:40]MH_SAM_APDU [08:50:40]CAPDU: 80 13 01 00 [08:50:40]Write to MH i2c: E2 08 00 CF 33 80 13 01 00 00 00 00 00 7F [08:50:40]Write i2c OK [08:50:40]MH_I2C_Read... [08:50:40]OFD Sender: No OFD packet to send [08:50:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:40]Read from MH i2c: E2 [08:50:40]MH_I2C_Read... [08:50:40]Read from MH i2c: E2 0E 00 [08:50:40]MH_I2C_Read... [08:50:40]Read from MH i2c: E2 0E 00 CF 33 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 99 [08:50:40]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:50:40]wFMCommunicate OK [08:50:40]SAM_PROTO_GetShiftState done [08:50:40]FM_GetShiftState done [08:50:40]req_shift_opened done [08:50:40]requested_item shift.open_date is exist - process it [08:50:40]req_shift_open_date [08:50:40]req_shift_open_date done [08:50:40]produce_requested_data done [08:50:40]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227253,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [08:50:40]process_action_free close_receipt [08:50:40]json_value_free [08:50:40]json_value_free done [08:50:40]process_json_proto returns [08:50:40]Send response to host [08:50:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227253,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [08:50:40]free response buf [08:50:40]execute_script done [08:50:40]execute_script returns [08:50:40]free content buf [08:50:40]Sock 8.Close socket [08:50:40]Sock 8.Thread stoped [08:50:45]OFD Sender: No OFD packet to send [08:50:50]OFD Sender: No OFD packet to send [08:50:55]OFD Sender: No OFD packet to send [08:51:00]OFD Sender: No OFD packet to send [08:51:05]OFD Sender: No OFD packet to send [08:51:10]OFD Sender: No OFD packet to send [08:51:15]OFD Sender: No OFD packet to send [08:51:20]OFD Sender: No OFD packet to send [08:51:25]OFD Sender: No OFD packet to send [08:51:30]OFD Sender: No OFD packet to send [08:51:35]OFD Sender: No OFD packet to send [08:51:40]OFD Sender: No OFD packet to send [08:51:45]OFD Sender: No OFD packet to send [08:51:50]OFD Sender: No OFD packet to send [08:51:55]OFD Sender: No OFD packet to send [08:52:00]OFD Sender: No OFD packet to send [08:52:05]OFD Sender: No OFD packet to send [08:52:10]OFD Sender: No OFD packet to send [08:52:15]OFD Sender: No OFD packet to send [08:52:20]OFD Sender: No OFD packet to send [08:52:25]OFD Sender: No OFD packet to send [08:52:30]OFD Sender: No OFD packet to send [08:52:35]OFD Sender: No OFD packet to send [08:52:37]accept exits with 9 [08:52:37]New connection [08:52:37]New thread 3066821988 created [08:52:37]Thread 3066965348 joined [08:52:37]Waiting for new connection... [08:52:37] Sock 9.Parse request [08:52:37]Sock 9.Check first char [08:52:37]Sock 9.First char is OK [08:52:37]request: POST /json_proto HTTP/1.0 [08:52:37]Method: POST [08:52:37]URL: /json_proto [08:52:37]Method is POST - this is cgi request [08:52:37]url: /json_proto [08:52:37]query_string will be loaded in cgi processing [08:52:37]execute_cgi json_proto POST (null) [08:52:37]execute_cgi path=json_proto method=POST [08:52:37]POST find Content-Length [08:52:37]Host: 172.17.44.195:8080 [08:52:37]Content-Length: 801 [08:52:37]Content-Type: application/json [08:52:37] [08:52:37]POST finish read [08:52:37]Found Content-Length = 801 [08:52:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962714", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4581971", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:52:37]execute_script... [08:52:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962714", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4581971", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:52:37]POST & json_proto [08:52:37]process_json_proto [08:52:37]json parsed OK: [08:52:37]protocol is kg_v1.0 [08:52:37]action value=close_receipt [08:52:37]process_action close_receipt [08:52:37]cmd_close_receipt [08:52:37]MH_GetDate [08:52:37]Write to MH i2c: F0 00 00 D0 33 F2 [08:52:37]Write i2c OK [08:52:37]MH_I2C_Read... [08:52:37]Read from MH i2c: F0 [08:52:37]MH_I2C_Read... [08:52:37]Read from MH i2c: F0 09 00 [08:52:37]MH_I2C_Read... [08:52:37]Read from MH i2c: F0 09 00 D0 33 00 D9 C4 14 67 82 C9 CF 66 93 [08:52:37]GetLastDocTimeStamp 1729414241 [08:52:37]current date 1729414361 [08:52:37]FM_GetShiftState [08:52:37]SAM_PROTO_GetShiftState [08:52:37]wFMCommunicate request_size=4 [08:52:37]MH_SAM_APDU [08:52:37]CAPDU: 80 13 01 00 [08:52:37]Write to MH i2c: E2 08 00 D1 33 80 13 01 00 00 00 00 00 81 [08:52:37]Write i2c OK [08:52:37]MH_I2C_Read... [08:52:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:37]Read from MH i2c: E2 [08:52:37]MH_I2C_Read... [08:52:37]Read from MH i2c: E2 0E 00 [08:52:37]MH_I2C_Read... [08:52:37]Read from MH i2c: E2 0E 00 D1 33 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 9B [08:52:37]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:52:37]wFMCommunicate OK [08:52:37]SAM_PROTO_GetShiftState done [08:52:37]FM_GetShiftState done [08:52:37]opened in 1729383750 [08:52:37]opened+sec_in_day 1729470150 [08:52:37]quantity*price = 0 [08:52:37]sum+1 = 1 [08:52:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 102 20.10.2024 08:52 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Талоны: Топливные Талоны 4581971 ФМ: 0000000000871839 ФД: 227254 ФПД: 126990800403311 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T085241&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227254&fm=126990800403311&tin=02508201610067®Number=0000000000091685&sum=0 [08:52:38]StoreToDocumentArchive [08:52:38]shift 533 fd 227254 [08:52:38]save to /storage/0533/doc_00227254 [08:52:38]save last doc name /storage/0533/doc_00227254 to /storage/kkm_last_doc_name [08:52:38]save OK [08:52:38]Clear old archive folders... [08:52:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:52:38]tlvbuf is 00554070 [08:52:38]SAM_PROTO_ClearQueue [08:52:38]wFMCommunicate request_size=4 [08:52:38]MH_SAM_APDU [08:52:38]CAPDU: 80 09 00 00 [08:52:38]Write to MH i2c: E2 08 00 DE 33 80 09 00 00 00 00 00 00 83 [08:52:38]Write i2c OK [08:52:38]MH_I2C_Read... [08:52:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:52:38]Read from MH i2c: E2 [08:52:38]MH_I2C_Read... [08:52:38]Read from MH i2c: E2 03 00 [08:52:38]MH_I2C_Read... [08:52:38]Read from MH i2c: E2 03 00 DE 33 00 90 00 85 [08:52:38]RAPDU: 90 00 [08:52:38]wFMCommunicate OK [08:52:38]SAM_PROTO_ClearQueue done [08:52:38]KKMCreateOFDPacket [08:52:38]OFDProtocolAddRootSTLVToBuf [08:52:38]FM_MakeSignedData [08:52:38]FM_MakeSignedData [08:52:38]SAM_PROTO_SignData [08:52:38]wFMCommunicate request_size=4 [08:52:38]MH_SAM_APDU [08:52:38]CAPDU: 80 0D 01 02 [08:52:38]Write to MH i2c: E2 08 00 DF 33 80 0D 01 02 00 00 00 00 8B [08:52:38]Write i2c OK [08:52:38]MH_I2C_Read... [08:52:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:52:38]Read from MH i2c: E2 [08:52:38]MH_I2C_Read... [08:52:38]Read from MH i2c: E2 03 00 [08:52:38]MH_I2C_Read... [08:52:38]Read from MH i2c: E2 03 00 DF 33 00 90 00 86 [08:52:38]RAPDU: 90 00 [08:52:38]wFMCommunicate OK [08:52:38]wFMCommunicate request_size=255 [08:52:38]MH_SAM_APDU [08:52:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 D9 C4 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B6 77 03 00 35 04 06 00 73 [08:52:38]Write to MH i2c: E2 02 01 E0 33 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 66 00 00 00 F4 03 04 00 D9 C4 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B6 77 03 00 35 04 06 00 73 00 00 0C [08:52:38]Write i2c OK [08:52:38]MH_I2C_Read... [08:52:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:39]Read from MH i2c: E2 [08:52:39]MH_I2C_Read... [08:52:39]Read from MH i2c: E2 03 00 [08:52:39]MH_I2C_Read... [08:52:39]Read from MH i2c: E2 03 00 E0 33 00 90 00 87 [08:52:39]RAPDU: 90 00 [08:52:39]wFMCommunicate OK [08:52:39]wFMCommunicate request_size=10 [08:52:39]MH_SAM_APDU [08:52:39]CAPDU: 80 0D 02 02 05 7F 59 8C 3B 6F [08:52:39]Write to MH i2c: E2 0D 00 E1 33 80 0D 02 02 05 00 7F 59 8C 3B 6F 00 00 A6 [08:52:39]Write i2c OK [08:52:39]MH_I2C_Read... [08:52:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:39]Read from MH i2c: E2 [08:52:39]MH_I2C_Read... [08:52:39]Read from MH i2c: E2 03 00 [08:52:39]MH_I2C_Read... [08:52:39]Read from MH i2c: E2 03 00 E1 33 00 90 00 88 [08:52:39]RAPDU: 90 00 [08:52:39]wFMCommunicate OK [08:52:39]wFMCommunicate request_size=4 [08:52:39]MH_SAM_APDU [08:52:39]CAPDU: 80 0D 03 02 [08:52:39]Write to MH i2c: E2 08 00 E2 33 80 0D 03 02 00 00 00 00 90 [08:52:39]Write i2c OK [08:52:39]MH_I2C_Read... [08:52:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:52:39]Read from MH i2c: E2 [08:52:39]MH_I2C_Read... [08:52:39]Read from MH i2c: E2 0B 00 [08:52:39]MH_I2C_Read... [08:52:39]Read from MH i2c: E2 0B 00 E2 33 00 4D F8 BA 43 15 17 40 F4 90 00 33 [08:52:39]RAPDU: 4D F8 BA 43 15 17 40 F4 90 00 [08:52:39]wFMCommunicate OK [08:52:39]SAM_PROTO_SignData done [08:52:39]FM_MakeSignedData done [08:52:39]CreateOFDProtocolMessage [08:52:39]wFMCommunicate request_size=4 [08:52:39]MH_SAM_APDU [08:52:39]CAPDU: 80 11 00 00 [08:52:39]Write to MH i2c: E2 08 00 E3 33 80 11 00 00 00 00 00 00 90 [08:52:39]Write i2c OK [08:52:39]MH_I2C_Read... [08:52:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:39]Read from MH i2c: E2 [08:52:39]MH_I2C_Read... [08:52:39]Read from MH i2c: E2 17 00 [08:52:39]MH_I2C_Read... [08:52:39]Read from MH i2c: E2 17 00 E3 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E7 [08:52:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:52:39]wFMCommunicate OK [08:52:39]CreateOFDProtocolMessage done [08:52:39]OFDSenderStorePacket 227254 [08:52:39]StoreOFDPacket docnum=227254 [08:52:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 B6 D9 07 01 9C 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 D9 C4 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B6 77 03 00 35 04 06 00 73 7F 59 8C 3B 6F 4D F8 BA 43 15 17 40 F4 [08:52:39]CheckFolder [08:52:39]dirname=/storage/ofd_packets [08:52:39]CheckFolder done [08:52:39]ProducePacketName [08:52:39]name=ofd_packets/00227254 [08:52:39]NVStorageSaveData ofd_packets/00227254 [08:52:39]File name is /storage/ofd_packets/00227254 [08:52:39]Write 301 bytes [08:52:39]NVStorageSaveData done [08:52:39]OFDSenderStorePacket done [08:52:39]KKMCreateOFDPacket done [08:52:39]NVStorageSaveData kkm_last_timestamp [08:52:39]File name is /storage/kkm_last_timestamp [08:52:39]Write 4 bytes [08:52:39]NVStorageSaveData done [08:52:39]ExternCall_PrintAddStr [08:52:39]wPrintStart [08:52:39]Write to MH i2c: 01 00 00 E4 33 17 [08:52:39]Write i2c OK [08:52:39]MH_I2C_Read... [08:52:39]Read from MH i2c: 01 [08:52:39]MH_I2C_Read... [08:52:39]Read from MH i2c: 01 07 00 [08:52:39]MH_I2C_Read... [08:52:39]Read from MH i2c: 01 07 00 E4 33 00 00 00 00 00 FF 0F 2C [08:52:39]RasterBufferAndPrint [08:52:39]line Счет N : (1)1962714 [08:52:39]line ИНН: 02508201610067 [08:52:39]line Контрольно-Кассовый Чек [08:52:39]line ПРОДАЖА [08:52:39]line ТРК (МРК, ГНК) : 53 [08:52:39]line Товар: 2710124130 [08:52:39]line Аи-92-К-5 [08:52:39]line 10.000 * 0.00 [08:52:39]line = 0.00 [08:52:39]line НДС 12% НСП 1% [08:52:39]line > о реализуемом товаре [08:52:39]line ИТОГО: 0.00 [08:52:39]line НСП 1% : 0.00 [08:52:39]line НДС 12% : 0.00 [08:52:39]line Наличными: 0.00 [08:52:39]line Безнал.: 0.00 [08:52:39]line Место: АЗС № 133 "Партнер Нефть" [08:52:39]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [08:52:39]line СНО: Общий режим [08:52:39]line Чек 102 20.10.2024 08:52 [08:52:39]line Смена: 533 ФФД: 1.0 [08:52:39]line ЗНМ: 0300000091 [08:52:39]line РНМ: 0000000000091685 [08:52:39]line Версия ККМ: 001 [08:52:39]line Талоны: Топливные Талоны [08:52:39]line 4581971 [08:52:39]line ФМ: 0000000000871839 [08:52:39]line ФД: 227254 [08:52:39]line ФПД: 126990800403311 [08:52:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T085241&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227254&fm=126990800403311&tin=02508201610067®Number=0000000000091685&sum=0 [08:52:39]written 0, free lines is 4095 [08:52:39]OFD Sender: Processing packet 227254 [packets to send 38, broken 37] [08:52:39]ProducePacketName [08:52:39]name=ofd_packets/00227254 [08:52:39]OFD Sender: To server: pG, [08:52:39]CommunicateWithHost lk.salyk.kg:30040 [08:52:39]ConnectInit lk.salyk.kg [08:52:39]Connected sock=10 [08:52:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 B6 D9 07 01 9C 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 D9 C4 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B6 77 03 00 35 04 06 00 73 7F 59 8C 3B 6F 4D F8 BA 43 15 17 40 F4 [08:52:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 50 CA 47 00 AB 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 33 39 10 04 04 00 B6 77 03 00 F4 03 04 00 D8 6F 14 67 B6 04 01 00 00 1D 4C 5D FC 0E EC 79 A9 [08:52:39]CommunicateWithHost err = 0 [08:52:39]CheckOFDResponse [08:52:39]1017 (14) - 77093643461234 [08:52:39]1041 (16) - 0000000000871839 [08:52:39]1040 (4) - 227254 [08:52:39]1012 (4) - 20.10.2024 02:50 [08:52:39]1206 (1) - 0 [08:52:39]OFD Sender: Remove packet 227254 [08:52:39]ProducePacketName [08:52:39]name=ofd_packets/00227254 [08:52:39]NVStorageDeleteData [08:52:39]Write to MH i2c: 01 00 00 0D 34 41 [08:52:39]Write i2c OK [08:52:39]MH_I2C_Read... [08:52:39]Read from MH i2c: 01 [08:52:39]MH_I2C_Read... [08:52:39]Read from MH i2c: 01 07 00 [08:52:39]MH_I2C_Read... [08:52:39]Read from MH i2c: 01 07 00 0D 34 00 00 00 00 00 16 0D 6B [08:52:39]RasterBufferAndPrint [08:52:39]line [08:52:39]line [08:52:39]line [08:52:39]line [08:52:39]line [08:52:39]written 0, free lines is 3356 [08:52:39]process_action close_receipt done [08:52:39]requested_data is exist [08:52:39]produce_requested_data [08:52:39]requested_item fm.sn is exist - process it [08:52:39]wFMCommunicate request_size=4 [08:52:39]MH_SAM_APDU [08:52:39]CAPDU: 80 11 00 00 [08:52:39]Write to MH i2c: E2 08 00 14 34 80 11 00 00 00 00 00 00 C2 [08:52:39]Write i2c OK [08:52:39]MH_I2C_Read... [08:52:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:39]Read from MH i2c: E2 [08:52:39]MH_I2C_Read... [08:52:39]Read from MH i2c: E2 17 00 [08:52:39]MH_I2C_Read... [08:52:39]Read from MH i2c: E2 17 00 14 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 19 [08:52:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:52:39]wFMCommunicate OK [08:52:39]requested_item fd.num is exist - process it [08:52:39]SAM_PROTO_GetFieldsCounters [08:52:39]wFMCommunicate request_size=4 [08:52:39]MH_SAM_APDU [08:52:39]CAPDU: 80 13 00 00 [08:52:39]Write to MH i2c: E2 08 00 15 34 80 13 00 00 00 00 00 00 C5 [08:52:39]Write i2c OK [08:52:39]MH_I2C_Read... [08:52:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:52:40]Read from MH i2c: E2 [08:52:40]MH_I2C_Read... [08:52:40]Read from MH i2c: E2 62 00 [08:52:40]MH_I2C_Read... [08:52:40]Read from MH i2c: E2 62 00 15 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 B6 77 03 00 0E 04 04 00 15 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 67 [08:52: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 B6 77 03 00 0E 04 04 00 15 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 [08:52:40]wFMCommunicate OK [08:52:40]SAM_PROTO_GetFieldsCounters done [08:52:40]requested_item shift.num is exist - process it [08:52:40]requested_item shift.opened is exist - process it [08:52:40]req_shift_opened [08:52:40]FM_GetShiftState [08:52:40]SAM_PROTO_GetShiftState [08:52:40]wFMCommunicate request_size=4 [08:52:40]MH_SAM_APDU [08:52:40]CAPDU: 80 13 01 00 [08:52:40]Write to MH i2c: E2 08 00 16 34 80 13 01 00 00 00 00 00 C7 [08:52:40]Write i2c OK [08:52:40]MH_I2C_Read... [08:52:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:40]Read from MH i2c: E2 [08:52:40]MH_I2C_Read... [08:52:40]Read from MH i2c: E2 0E 00 [08:52:40]MH_I2C_Read... [08:52:40]Read from MH i2c: E2 0E 00 16 34 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 E1 [08:52:40]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:52:40]wFMCommunicate OK [08:52:40]SAM_PROTO_GetShiftState done [08:52:40]FM_GetShiftState done [08:52:40]req_shift_opened done [08:52:40]requested_item shift.open_date is exist - process it [08:52:40]req_shift_open_date [08:52:40]req_shift_open_date done [08:52:40]produce_requested_data done [08:52:40]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227254,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [08:52:40]process_action_free close_receipt [08:52:40]json_value_free [08:52:40]json_value_free done [08:52:40]process_json_proto returns [08:52:40]Send response to host [08:52:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227254,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [08:52:40]free response buf [08:52:40]execute_script done [08:52:40]execute_script returns [08:52:40]free content buf [08:52:40]Sock 9.Close socket [08:52:40]Sock 9.Thread stoped [08:52:40]OFD Sender: No OFD packet to send [08:52:45]OFD Sender: No OFD packet to send [08:52:50]OFD Sender: No OFD packet to send [08:52:55]OFD Sender: No OFD packet to send [08:53:00]OFD Sender: No OFD packet to send [08:53:05]OFD Sender: No OFD packet to send [08:53:10]OFD Sender: No OFD packet to send [08:53:15]OFD Sender: No OFD packet to send [08:53:20]OFD Sender: No OFD packet to send [08:53:25]OFD Sender: No OFD packet to send [08:53:30]OFD Sender: No OFD packet to send [08:53:35]OFD Sender: No OFD packet to send [08:53:40]accept exits with 8 [08:53:40]New connection [08:53:40]New thread 3066965348 created [08:53:40]Thread 3066821988 joined [08:53:40]Waiting for new connection... [08:53:40] Sock 8.Parse request [08:53:40]Sock 8.Check first char [08:53:40]Sock 8.First char is OK [08:53:40]request: POST /json_proto HTTP/1.0 [08:53:40]Method: POST [08:53:40]URL: /json_proto [08:53:40]Method is POST - this is cgi request [08:53:40]url: /json_proto [08:53:40]query_string will be loaded in cgi processing [08:53:40]execute_cgi json_proto POST (null) [08:53:40]execute_cgi path=json_proto method=POST [08:53:40]POST find Content-Length [08:53:40]Host: 172.17.44.195:8080 [08:53:40]Content-Length: 660 [08:53:40]Content-Type: application/json [08:53:40] [08:53:40]POST finish read [08:53:40]Found Content-Length = 660 [08:53:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962715", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 10.240, "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" ] } } [08:53:40]execute_script... [08: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)1962715", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 10.240, "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" ] } } [08:53:40]POST & json_proto [08:53:40]process_json_proto [08:53:40]json parsed OK: [08:53:40]protocol is kg_v1.0 [08:53:40]action value=close_receipt [08:53:40]process_action close_receipt [08:53:40]cmd_close_receipt [08:53:40]MH_GetDate [08:53:40]Write to MH i2c: F0 00 00 17 34 3A [08:53:40]Write i2c OK [08:53:40]MH_I2C_Read... [08:53:40]Read from MH i2c: F0 [08:53:40]MH_I2C_Read... [08:53:40]Read from MH i2c: F0 09 00 [08:53:40]MH_I2C_Read... [08:53:40]Read from MH i2c: F0 09 00 17 34 00 18 C5 14 67 82 C9 CF 66 1B [08:53:40]GetLastDocTimeStamp 1729414361 [08:53:40]current date 1729414424 [08:53:40]FM_GetShiftState [08:53:40]SAM_PROTO_GetShiftState [08:53:40]wFMCommunicate request_size=4 [08:53:40]MH_SAM_APDU [08:53:40]CAPDU: 80 13 01 00 [08:53:40]Write to MH i2c: E2 08 00 18 34 80 13 01 00 00 00 00 00 C9 [08:53:40]Write i2c OK [08:53:40]MH_I2C_Read... [08:53:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:53:40]Read from MH i2c: E2 [08:53:40]MH_I2C_Read... [08:53:40]Read from MH i2c: E2 0E 00 [08:53:40]MH_I2C_Read... [08:53:40]Read from MH i2c: E2 0E 00 18 34 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 E3 [08:53:40]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:53:40]wFMCommunicate OK [08:53:40]SAM_PROTO_GetShiftState done [08:53:40]FM_GetShiftState done [08:53:40]opened in 1729383750 [08:53:40]opened+sec_in_day 1729470150 [08:53:40]quantity*price = 70041 [08:53:40]sum+1 = 70043 [08:53:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 103 20.10.2024 08:53 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227255 ФПД: 78624809492121 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T085344&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227255&fm=78624809492121&tin=02508201610067®Number=0000000000091685&sum=70000 [08:53:41]StoreToDocumentArchive [08:53:41]shift 533 fd 227255 [08:53:41]save to /storage/0533/doc_00227255 [08:53:41]save last doc name /storage/0533/doc_00227255 to /storage/kkm_last_doc_name [08:53:41]save OK [08:53:41]Clear old archive folders... [08:53:41]ProcessDocumentItem done err = 0, tmpTLVsize=244 [08:53:41]tlvbuf is 004F9900 [08:53:41]SAM_PROTO_ClearQueue [08:53:41]wFMCommunicate request_size=4 [08:53:41]MH_SAM_APDU [08:53:41]CAPDU: 80 09 00 00 [08:53:41]Write to MH i2c: E2 08 00 25 34 80 09 00 00 00 00 00 00 CB [08:53:41]Write i2c OK [08:53:41]MH_I2C_Read... [08:53:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:53:41]Read from MH i2c: E2 [08:53:41]MH_I2C_Read... [08:53:41]Read from MH i2c: E2 03 00 [08:53:41]MH_I2C_Read... [08:53:41]Read from MH i2c: E2 03 00 25 34 00 90 00 CD [08:53:41]RAPDU: 90 00 [08:53:41]wFMCommunicate OK [08:53:41]SAM_PROTO_ClearQueue done [08:53:41]KKMCreateOFDPacket [08:53:41]OFDProtocolAddRootSTLVToBuf [08:53:41]FM_MakeSignedData [08:53:41]FM_MakeSignedData [08:53:41]SAM_PROTO_SignData [08:53:41]wFMCommunicate request_size=4 [08:53:41]MH_SAM_APDU [08:53:41]CAPDU: 80 0D 01 02 [08:53:41]Write to MH i2c: E2 08 00 26 34 80 0D 01 02 00 00 00 00 D3 [08:53:41]Write i2c OK [08:53:41]MH_I2C_Read... [08:53:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:53:41]Read from MH i2c: E2 [08:53:41]MH_I2C_Read... [08:53:41]Read from MH i2c: E2 03 00 [08:53:41]MH_I2C_Read... [08:53:41]Read from MH i2c: E2 03 00 26 34 00 90 00 CE [08:53:41]RAPDU: 90 00 [08:53:41]wFMCommunicate OK [08:53:41]wFMCommunicate request_size=253 [08:53:41]MH_SAM_APDU [08:53:41]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 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 67 00 00 00 F4 03 04 00 18 C5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B7 77 03 00 35 04 06 00 47 82 43 D7 1E 99 [08:53:41]Write to MH i2c: E2 00 01 27 34 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 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 67 00 00 00 F4 03 04 00 18 C5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B7 77 03 00 35 04 06 00 47 82 43 D7 1E 99 00 00 77 [08:53:41]Write i2c OK [08:53:41]MH_I2C_Read... [08:53:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:53:41]Read from MH i2c: E2 [08:53:41]MH_I2C_Read... [08:53:41]Read from MH i2c: E2 03 00 [08:53:41]MH_I2C_Read... [08:53:41]Read from MH i2c: E2 03 00 27 34 00 90 00 CF [08:53:41]RAPDU: 90 00 [08:53:41]wFMCommunicate OK [08:53:41]wFMCommunicate request_size=4 [08:53:41]MH_SAM_APDU [08:53:41]CAPDU: 80 0D 03 02 [08:53:41]Write to MH i2c: E2 08 00 28 34 80 0D 03 02 00 00 00 00 D7 [08:53:41]Write i2c OK [08:53:41]MH_I2C_Read... [08:53:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:53:41]Read from MH i2c: E2 [08:53:41]MH_I2C_Read... [08:53:41]Read from MH i2c: E2 0B 00 [08:53:41]MH_I2C_Read... [08:53:41]Read from MH i2c: E2 0B 00 28 34 00 03 22 79 5C 9B 3F 39 6E 90 00 53 [08:53:41]RAPDU: 03 22 79 5C 9B 3F 39 6E 90 00 [08:53:41]wFMCommunicate OK [08:53:41]SAM_PROTO_SignData done [08:53:41]FM_MakeSignedData done [08:53:41]CreateOFDProtocolMessage [08:53:41]wFMCommunicate request_size=4 [08:53:41]MH_SAM_APDU [08:53:41]CAPDU: 80 11 00 00 [08:53:41]Write to MH i2c: E2 08 00 29 34 80 11 00 00 00 00 00 00 D7 [08:53:41]Write i2c OK [08:53:41]MH_I2C_Read... [08:53:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:53:41]Read from MH i2c: E2 [08:53:41]MH_I2C_Read... [08:53:41]Read from MH i2c: E2 17 00 [08:53:41]MH_I2C_Read... [08:53:41]Read from MH i2c: E2 17 00 29 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 2E [08:53:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:53:41]wFMCommunicate OK [08:53:41]CreateOFDProtocolMessage done [08:53:41]OFDSenderStorePacket 227255 [08:53:41]StoreOFDPacket docnum=227255 [08:53:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 FC 61 00 01 E0 90 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 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 67 00 00 00 F4 03 04 00 18 C5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B7 77 03 00 35 04 06 00 47 82 43 D7 1E 99 03 22 79 5C 9B 3F 39 6E [08:53:41]CheckFolder [08:53:41]dirname=/storage/ofd_packets [08:53:41]CheckFolder done [08:53:41]ProducePacketName [08:53:41]name=ofd_packets/00227255 [08:53:41]NVStorageSaveData ofd_packets/00227255 [08:53:41]File name is /storage/ofd_packets/00227255 [08:53:41]Write 294 bytes [08:53:41]NVStorageSaveData done [08:53:41]OFDSenderStorePacket done [08:53:41]KKMCreateOFDPacket done [08:53:41]NVStorageSaveData kkm_last_timestamp [08:53:41]File name is /storage/kkm_last_timestamp [08:53:41]Write 4 bytes [08:53:41]NVStorageSaveData done [08:53:41]ExternCall_PrintAddStr [08:53:41]wPrintStart [08:53:41]Write to MH i2c: 01 00 00 2A 34 5E [08:53:41]Write i2c OK [08:53:41]MH_I2C_Read... [08:53:41]Read from MH i2c: 01 [08:53:41]MH_I2C_Read... [08:53:41]Read from MH i2c: 01 07 00 [08:53:41]MH_I2C_Read... [08:53:41]Read from MH i2c: 01 07 00 2A 34 00 00 00 00 00 FF 0F 73 [08:53:41]RasterBufferAndPrint [08:53:41]line Счет N : (1)1962715 [08:53:41]line ИНН: 02508201610067 [08:53:41]line Контрольно-Кассовый Чек [08:53:41]line ПРОДАЖА [08:53:41]line ТРК (МРК, ГНК) : 42 [08:53:41]line Товар: 2710124130 [08:53:41]line SU-92 [08:53:41]line 10.240 * 68.40 [08:53:41]line = 700.42 [08:53:41]line НДС 12% НСП 1% [08:53:41]line > о реализуемом товаре [08:53:41]line ОКРУГЛЕНИЕ: -0.42 [08:53:41]line ИТОГО: 700.00 [08:53:41]line Внесено: 700.00 [08:53:41]line СДАЧА: 0.00 [08:53:41]line НСП 1% : 6.20 [08:53:41]line НДС 12% : 74.38 [08:53:41]line Наличными: 700.00 [08:53:41]line Безнал.: 0.00 [08:53:41]line Место: АЗС № 133 "Партнер Нефть" [08:53:41]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [08:53:41]line СНО: Общий режим [08:53:41]line Чек 103 20.10.2024 08:53 [08:53:41]line Смена: 533 ФФД: 1.0 [08:53:41]line ЗНМ: 0300000091 [08:53:41]line РНМ: 0000000000091685 [08:53:41]line Версия ККМ: 001 [08:53:41]line ФМ: 0000000000871839 [08:53:41]line ФД: 227255 [08:53:41]line ФПД: 78624809492121 [08:53:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T085344&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227255&fm=78624809492121&tin=02508201610067®Number=0000000000091685&sum=70000 [08:53:42]OFD Sender: Processing packet 227255 [packets to send 38, broken 37] [08:53:42]ProducePacketName [08:53:42]name=ofd_packets/00227255 [08:53:42]OFD Sender: To server: pG, [08:53:42]CommunicateWithHost lk.salyk.kg:30040 [08:53:42]ConnectInit lk.salyk.kg [08:53:42]written 0, free lines is 4095 [08:53:42]Connected sock=10 [08: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 33 39 08 01 00 00 FC 61 00 01 E0 90 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 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 67 00 00 00 F4 03 04 00 18 C5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B7 77 03 00 35 04 06 00 47 82 43 D7 1E 99 03 22 79 5C 9B 3F 39 6E [08: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 33 39 4F 00 00 00 D7 90 47 00 A8 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 33 39 10 04 04 00 B7 77 03 00 F4 03 04 00 17 70 14 67 B6 04 01 00 00 5F 39 C3 CE 8A 00 C7 70 [08:53:42]CommunicateWithHost err = 0 [08:53:42]CheckOFDResponse [08:53:42]1017 (14) - 77093643461234 [08:53:42]1041 (16) - 0000000000871839 [08:53:42]1040 (4) - 227255 [08:53:42]1012 (4) - 20.10.2024 02:51 [08:53:42]1206 (1) - 0 [08:53:42]OFD Sender: Remove packet 227255 [08:53:42]ProducePacketName [08:53:42]name=ofd_packets/00227255 [08:53:42]NVStorageDeleteData [08:53:42]Write to MH i2c: 01 00 00 54 34 88 [08:53:42]Write i2c OK [08:53:42]MH_I2C_Read... [08:53:42]Read from MH i2c: 01 [08:53:42]MH_I2C_Read... [08:53:42]Read from MH i2c: 01 07 00 [08:53:42]MH_I2C_Read... [08:53:42]Read from MH i2c: 01 07 00 54 34 00 00 00 00 00 02 0D 9E [08:53:42]RasterBufferAndPrint [08:53:42]line [08:53:42]line [08:53:42]line [08:53:42]line [08:53:42]line [08:53:42]written 0, free lines is 3336 [08:53:42]process_action close_receipt done [08:53:42]requested_data is exist [08:53:42]produce_requested_data [08:53:42]requested_item fm.sn is exist - process it [08:53:42]wFMCommunicate request_size=4 [08:53:42]MH_SAM_APDU [08:53:42]CAPDU: 80 11 00 00 [08:53:42]Write to MH i2c: E2 08 00 5B 34 80 11 00 00 00 00 00 00 09 [08:53:42]Write i2c OK [08:53:42]MH_I2C_Read... [08:53:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:53:42]Read from MH i2c: E2 [08:53:42]MH_I2C_Read... [08:53:42]Read from MH i2c: E2 17 00 [08:53:42]MH_I2C_Read... [08:53:42]Read from MH i2c: E2 17 00 5B 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 60 [08:53:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:53:42]wFMCommunicate OK [08:53:42]requested_item fd.num is exist - process it [08:53:42]SAM_PROTO_GetFieldsCounters [08:53:42]wFMCommunicate request_size=4 [08:53:42]MH_SAM_APDU [08:53:42]CAPDU: 80 13 00 00 [08:53:42]Write to MH i2c: E2 08 00 5C 34 80 13 00 00 00 00 00 00 0C [08:53:42]Write i2c OK [08:53:42]MH_I2C_Read... [08:53:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:53:42]Read from MH i2c: E2 [08:53:42]MH_I2C_Read... [08:53:42]Read from MH i2c: E2 62 00 [08:53:42]MH_I2C_Read... [08:53:42]Read from MH i2c: E2 62 00 5C 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 B7 77 03 00 0E 04 04 00 15 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 B2 [08:53: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 B7 77 03 00 0E 04 04 00 15 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 [08:53:42]wFMCommunicate OK [08:53:42]SAM_PROTO_GetFieldsCounters done [08:53:42]requested_item shift.num is exist - process it [08:53:42]requested_item shift.opened is exist - process it [08:53:42]req_shift_opened [08:53:42]FM_GetShiftState [08:53:42]SAM_PROTO_GetShiftState [08:53:42]wFMCommunicate request_size=4 [08:53:42]MH_SAM_APDU [08:53:42]CAPDU: 80 13 01 00 [08:53:42]Write to MH i2c: E2 08 00 5D 34 80 13 01 00 00 00 00 00 0E [08:53:42]Write i2c OK [08:53:42]MH_I2C_Read... [08:53:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:53:42]Read from MH i2c: E2 [08:53:42]MH_I2C_Read... [08:53:42]Read from MH i2c: E2 0E 00 [08:53:42]MH_I2C_Read... [08:53:42]Read from MH i2c: E2 0E 00 5D 34 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 28 [08:53:42]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:53:42]wFMCommunicate OK [08:53:42]SAM_PROTO_GetShiftState done [08:53:42]FM_GetShiftState done [08:53:42]req_shift_opened done [08:53:42]requested_item shift.open_date is exist - process it [08:53:42]req_shift_open_date [08:53:42]req_shift_open_date done [08:53:42]produce_requested_data done [08:53:42]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227255,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [08:53:42]process_action_free close_receipt [08:53:42]json_value_free [08:53:42]json_value_free done [08:53:42]process_json_proto returns [08:53:42]Send response to host [08:53:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227255,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [08:53:42]free response buf [08:53:42]execute_script done [08:53:42]execute_script returns [08:53:42]free content buf [08:53:42]Sock 8.Close socket [08:53:42]Sock 8.Thread stoped [08:53:42]OFD Sender: No OFD packet to send [08:53:43]accept exits with 9 [08:53:43]New connection [08:53:43]New thread 3066821988 created [08:53:43]Thread 3066965348 joined [08:53:43]Waiting for new connection... [08:53:43] Sock 9.Parse request [08:53:43]Sock 9.Check first char [08:53:43]Sock 9.First char is OK [08:53:43]request: POST /json_proto HTTP/1.0 [08:53:43]Method: POST [08:53:43]URL: /json_proto [08:53:43]Method is POST - this is cgi request [08:53:43]url: /json_proto [08:53:43]query_string will be loaded in cgi processing [08:53:43]execute_cgi json_proto POST (null) [08:53:43]execute_cgi path=json_proto method=POST [08:53:43]POST find Content-Length [08:53:43]Host: 172.17.44.195:8080 [08:53:43]Content-Length: 659 [08:53:43]Content-Type: application/json [08:53:43] [08:53:43]POST finish read [08:53:43]Found Content-Length = 659 [08:53:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962716", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 4.390, "sum" : 300.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:53:43]execute_script... [08:53: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)1962716", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 4.390, "sum" : 300.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:53:43]POST & json_proto [08:53:43]process_json_proto [08:53:43]json parsed OK: [08:53:43]protocol is kg_v1.0 [08:53:43]action value=close_receipt [08:53:43]process_action close_receipt [08:53:43]cmd_close_receipt [08:53:43]MH_GetDate [08:53:43]Write to MH i2c: F0 00 00 5E 34 81 [08:53:43]Write i2c OK [08:53:43]MH_I2C_Read... [08:53:43]Read from MH i2c: F0 [08:53:43]MH_I2C_Read... [08:53:43]Read from MH i2c: F0 09 00 [08:53:43]MH_I2C_Read... [08:53:43]Read from MH i2c: F0 09 00 5E 34 00 1B C5 14 67 82 C9 CF 66 65 [08:53:43]GetLastDocTimeStamp 1729414424 [08:53:43]current date 1729414427 [08:53:43]FM_GetShiftState [08:53:43]SAM_PROTO_GetShiftState [08:53:43]wFMCommunicate request_size=4 [08:53:43]MH_SAM_APDU [08:53:43]CAPDU: 80 13 01 00 [08:53:43]Write to MH i2c: E2 08 00 5F 34 80 13 01 00 00 00 00 00 10 [08:53:43]Write i2c OK [08:53:43]MH_I2C_Read... [08:53:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:53:43]Read from MH i2c: E2 [08:53:43]MH_I2C_Read... [08:53:43]Read from MH i2c: E2 0E 00 [08:53:43]MH_I2C_Read... [08:53:43]Read from MH i2c: E2 0E 00 5F 34 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 2A [08:53:43]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:53:43]wFMCommunicate OK [08:53:43]SAM_PROTO_GetShiftState done [08:53:43]FM_GetShiftState done [08:53:43]opened in 1729383750 [08:53:43]opened+sec_in_day 1729470150 [08:53:43]quantity*price = 30027 [08:53:43]sum+1 = 30029 [08:53:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 104 20.10.2024 08:53 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227256 ФПД: 125190694240151 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T085347&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227256&fm=125190694240151&tin=02508201610067®Number=0000000000091685&sum=30000 [08:53:44]StoreToDocumentArchive [08:53:44]shift 533 fd 227256 [08:53:44]save to /storage/0533/doc_00227256 [08:53:44]save last doc name /storage/0533/doc_00227256 to /storage/kkm_last_doc_name [08:53:44]save OK [08:53:44]Clear old archive folders... [08:53:44]ProcessDocumentItem done err = 0, tmpTLVsize=244 [08:53:44]tlvbuf is 00627180 [08:53:44]SAM_PROTO_ClearQueue [08:53:44]wFMCommunicate request_size=4 [08:53:44]MH_SAM_APDU [08:53:44]CAPDU: 80 09 00 00 [08:53:44]Write to MH i2c: E2 08 00 6C 34 80 09 00 00 00 00 00 00 12 [08:53:44]Write i2c OK [08:53:44]MH_I2C_Read... [08:53:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:53:44]Read from MH i2c: E2 [08:53:44]MH_I2C_Read... [08:53:44]Read from MH i2c: E2 03 00 [08:53:44]MH_I2C_Read... [08:53:44]Read from MH i2c: E2 03 00 6C 34 00 90 00 14 [08:53:44]RAPDU: 90 00 [08:53:44]wFMCommunicate OK [08:53:44]SAM_PROTO_ClearQueue done [08:53:44]KKMCreateOFDPacket [08:53:44]OFDProtocolAddRootSTLVToBuf [08:53:44]FM_MakeSignedData [08:53:44]FM_MakeSignedData [08:53:44]SAM_PROTO_SignData [08:53:44]wFMCommunicate request_size=4 [08:53:44]MH_SAM_APDU [08:53:44]CAPDU: 80 0D 01 02 [08:53:44]Write to MH i2c: E2 08 00 6D 34 80 0D 01 02 00 00 00 00 1A [08:53:44]Write i2c OK [08:53:44]MH_I2C_Read... [08:53:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:53:44]Read from MH i2c: E2 [08:53:44]MH_I2C_Read... [08:53:44]Read from MH i2c: E2 03 00 [08:53:44]MH_I2C_Read... [08:53:44]Read from MH i2c: E2 03 00 6D 34 00 90 00 15 [08:53:44]RAPDU: 90 00 [08:53:44]wFMCommunicate OK [08:53:44]wFMCommunicate request_size=253 [08:53:44]MH_SAM_APDU [08:53:44]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 75 0C 00 00 00 00 07 04 06 00 30 75 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 1B C5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B8 77 03 00 35 04 06 00 71 DC 3A DB FF 97 [08:53:44]Write to MH i2c: E2 00 01 6E 34 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 75 0C 00 00 00 00 07 04 06 00 30 75 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 1B C5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B8 77 03 00 35 04 06 00 71 DC 3A DB FF 97 00 00 7E [08:53:44]Write i2c OK [08:53:44]MH_I2C_Read... [08:53:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:53:44]Read from MH i2c: E2 [08:53:44]MH_I2C_Read... [08:53:44]Read from MH i2c: E2 03 00 [08:53:44]MH_I2C_Read... [08:53:44]Read from MH i2c: E2 03 00 6E 34 00 90 00 16 [08:53:44]RAPDU: 90 00 [08:53:44]wFMCommunicate OK [08:53:44]wFMCommunicate request_size=4 [08:53:44]MH_SAM_APDU [08:53:44]CAPDU: 80 0D 03 02 [08:53:44]Write to MH i2c: E2 08 00 6F 34 80 0D 03 02 00 00 00 00 1E [08:53:44]Write i2c OK [08:53:44]MH_I2C_Read... [08:53:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:53:44]Read from MH i2c: E2 [08:53:44]MH_I2C_Read... [08:53:44]Read from MH i2c: E2 0B 00 [08:53:44]MH_I2C_Read... [08:53:44]Read from MH i2c: E2 0B 00 6F 34 00 EA 4F 3B 4C D4 D0 3A E0 90 00 9D [08:53:44]RAPDU: EA 4F 3B 4C D4 D0 3A E0 90 00 [08:53:44]wFMCommunicate OK [08:53:44]SAM_PROTO_SignData done [08:53:44]FM_MakeSignedData done [08:53:44]CreateOFDProtocolMessage [08:53:44]wFMCommunicate request_size=4 [08:53:44]MH_SAM_APDU [08:53:44]CAPDU: 80 11 00 00 [08:53:44]Write to MH i2c: E2 08 00 70 34 80 11 00 00 00 00 00 00 1E [08:53:44]Write i2c OK [08:53:44]MH_I2C_Read... [08:53:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:53:44]Read from MH i2c: E2 [08:53:44]MH_I2C_Read... [08:53:44]Read from MH i2c: E2 17 00 [08:53:44]MH_I2C_Read... [08:53:44]Read from MH i2c: E2 17 00 70 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 75 [08:53:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:53:44]wFMCommunicate OK [08:53:44]CreateOFDProtocolMessage done [08:53:44]OFDSenderStorePacket 227256 [08:53:44]StoreOFDPacket docnum=227256 [08:53:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 F5 E6 00 01 CF 13 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 75 0C 00 00 00 00 07 04 06 00 30 75 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 1B C5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B8 77 03 00 35 04 06 00 71 DC 3A DB FF 97 EA 4F 3B 4C D4 D0 3A E0 [08:53:44]CheckFolder [08:53:44]dirname=/storage/ofd_packets [08:53:44]CheckFolder done [08:53:44]ProducePacketName [08:53:44]name=ofd_packets/00227256 [08:53:44]NVStorageSaveData ofd_packets/00227256 [08:53:44]File name is /storage/ofd_packets/00227256 [08:53:44]Write 294 bytes [08:53:44]NVStorageSaveData done [08:53:44]OFDSenderStorePacket done [08:53:44]KKMCreateOFDPacket done [08:53:44]NVStorageSaveData kkm_last_timestamp [08:53:44]File name is /storage/kkm_last_timestamp [08:53:44]Write 4 bytes [08:53:44]NVStorageSaveData done [08:53:44]ExternCall_PrintAddStr [08:53:44]wPrintStart [08:53:44]Write to MH i2c: 01 00 00 71 34 A5 [08:53:44]Write i2c OK [08:53:44]MH_I2C_Read... [08:53:44]Read from MH i2c: 01 [08:53:44]MH_I2C_Read... [08:53:44]Read from MH i2c: 01 07 00 [08:53:44]MH_I2C_Read... [08:53:44]Read from MH i2c: 01 07 00 71 34 00 00 00 00 00 FF 0F BA [08:53:44]RasterBufferAndPrint [08:53:44]line Счет N : (1)1962716 [08:53:44]line ИНН: 02508201610067 [08:53:44]line Контрольно-Кассовый Чек [08:53:44]line ПРОДАЖА [08:53:45]line ТРК (МРК, ГНК) : 52 [08:53:45]line Товар: 2710124130 [08:53:45]line SU-92 [08:53:45]line 4.390 * 68.40 [08:53:45]line = 300.28 [08:53:45]line НДС 12% НСП 1% [08:53:45]line > о реализуемом товаре [08:53:45]line ОКРУГЛЕНИЕ: -0.28 [08:53:45]line ИТОГО: 300.00 [08:53:45]line Внесено: 300.00 [08:53:45]line СДАЧА: 0.00 [08:53:45]line НСП 1% : 2.66 [08:53:45]line НДС 12% : 31.89 [08:53:45]line Наличными: 300.00 [08:53:45]line Безнал.: 0.00 [08:53:45]line Место: АЗС № 133 "Партнер Нефть" [08:53:45]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [08:53:45]line СНО: Общий режим [08:53:45]line Чек 104 20.10.2024 08:53 [08:53:45]line Смена: 533 ФФД: 1.0 [08:53:45]line ЗНМ: 0300000091 [08:53:45]line РНМ: 0000000000091685 [08:53:45]OFD Sender: Processing packet 227256 [packets to send 38, broken 37] [08:53:45]ProducePacketName [08:53:45]name=ofd_packets/00227256 [08:53:45]OFD Sender: To server: pG, [08:53:45]CommunicateWithHost lk.salyk.kg:30040 [08:53:45]ConnectInit lk.salyk.kg [08:53:45]line Версия ККМ: 001 [08:53:45]line ФМ: 0000000000871839 [08:53:45]line ФД: 227256 [08:53:45]line ФПД: 125190694240151 [08:53:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T085347&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227256&fm=125190694240151&tin=02508201610067®Number=0000000000091685&sum=30000 [08:53:45]written 0, free lines is 4095 [08:53:45]Connected sock=10 [08:53:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 F5 E6 00 01 CF 13 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 75 0C 00 00 00 00 07 04 06 00 30 75 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 1B C5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B8 77 03 00 35 04 06 00 71 DC 3A DB FF 97 EA 4F 3B 4C D4 D0 3A E0 [08:53: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 33 39 4F 00 00 00 B9 7C 47 00 A0 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 33 39 10 04 04 00 B8 77 03 00 F4 03 04 00 1A 70 14 67 B6 04 01 00 00 F6 50 BE B7 52 A4 94 6F [08:53:45]CommunicateWithHost err = 0 [08:53:45]CheckOFDResponse [08:53:45]1017 (14) - 77093643461234 [08:53:45]1041 (16) - 0000000000871839 [08:53:45]1040 (4) - 227256 [08:53:45]1012 (4) - 20.10.2024 02:51 [08:53:45]1206 (1) - 0 [08:53:45]OFD Sender: Remove packet 227256 [08:53:45]ProducePacketName [08:53:45]name=ofd_packets/00227256 [08:53:45]NVStorageDeleteData [08:53:45]Write to MH i2c: 01 00 00 9B 34 CF [08:53:45]Write i2c OK [08:53:45]MH_I2C_Read... [08:53:45]Read from MH i2c: 01 [08:53:45]MH_I2C_Read... [08:53:45]Read from MH i2c: 01 07 00 [08:53:45]MH_I2C_Read... [08:53:45]Read from MH i2c: 01 07 00 9B 34 00 00 00 00 00 0E 0D F1 [08:53:45]RasterBufferAndPrint [08:53:45]line [08:53:45]line [08:53:45]line [08:53:45]line [08:53:45]line [08:53:45]written 0, free lines is 3357 [08:53:45]process_action close_receipt done [08:53:45]requested_data is exist [08:53:45]produce_requested_data [08:53:45]requested_item fm.sn is exist - process it [08:53:45]wFMCommunicate request_size=4 [08:53:45]MH_SAM_APDU [08:53:45]CAPDU: 80 11 00 00 [08:53:45]Write to MH i2c: E2 08 00 A2 34 80 11 00 00 00 00 00 00 50 [08:53:45]Write i2c OK [08:53:45]MH_I2C_Read... [08:53:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:53:45]Read from MH i2c: E2 [08:53:45]MH_I2C_Read... [08:53:45]Read from MH i2c: E2 17 00 [08:53:45]MH_I2C_Read... [08:53:45]Read from MH i2c: E2 17 00 A2 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A7 [08:53:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:53:45]wFMCommunicate OK [08:53:45]requested_item fd.num is exist - process it [08:53:45]SAM_PROTO_GetFieldsCounters [08:53:45]wFMCommunicate request_size=4 [08:53:45]MH_SAM_APDU [08:53:45]CAPDU: 80 13 00 00 [08:53:45]Write to MH i2c: E2 08 00 A3 34 80 13 00 00 00 00 00 00 53 [08:53:45]Write i2c OK [08:53:45]MH_I2C_Read... [08:53:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:53:45]Read from MH i2c: E2 [08:53:45]MH_I2C_Read... [08:53:45]Read from MH i2c: E2 62 00 [08:53:45]MH_I2C_Read... [08:53:45]Read from MH i2c: E2 62 00 A3 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 B8 77 03 00 0E 04 04 00 15 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 FD [08:53: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 B8 77 03 00 0E 04 04 00 15 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 [08:53:45]wFMCommunicate OK [08:53:45]SAM_PROTO_GetFieldsCounters done [08:53:45]requested_item shift.num is exist - process it [08:53:45]requested_item shift.opened is exist - process it [08:53:45]req_shift_opened [08:53:45]FM_GetShiftState [08:53:45]SAM_PROTO_GetShiftState [08:53:45]wFMCommunicate request_size=4 [08:53:45]MH_SAM_APDU [08:53:45]CAPDU: 80 13 01 00 [08:53:45]Write to MH i2c: E2 08 00 A4 34 80 13 01 00 00 00 00 00 55 [08:53:45]Write i2c OK [08:53:45]MH_I2C_Read... [08:53:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:53:46]Read from MH i2c: E2 [08:53:46]MH_I2C_Read... [08:53:46]Read from MH i2c: E2 0E 00 [08:53:46]MH_I2C_Read... [08:53:46]Read from MH i2c: E2 0E 00 A4 34 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 6F [08:53:46]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:53:46]wFMCommunicate OK [08:53:46]SAM_PROTO_GetShiftState done [08:53:46]FM_GetShiftState done [08:53:46]req_shift_opened done [08:53:46]requested_item shift.open_date is exist - process it [08:53:46]req_shift_open_date [08:53:46]req_shift_open_date done [08:53:46]produce_requested_data done [08:53:46]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227256,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [08:53:46]process_action_free close_receipt [08:53:46]json_value_free [08:53:46]json_value_free done [08:53:46]process_json_proto returns [08:53:46]Send response to host [08:53:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227256,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [08:53:46]free response buf [08:53:46]execute_script done [08:53:46]execute_script returns [08:53:46]free content buf [08:53:46]Sock 9.Close socket [08:53:46]Sock 9.Thread stoped [08:53:46]OFD Sender: No OFD packet to send [08:53:51]OFD Sender: No OFD packet to send [08:53:56]OFD Sender: No OFD packet to send [08:54:01]OFD Sender: No OFD packet to send [08:54:06]OFD Sender: No OFD packet to send [08:54:11]OFD Sender: No OFD packet to send [08:54:16]OFD Sender: No OFD packet to send [08:54:21]OFD Sender: No OFD packet to send [08:54:26]OFD Sender: No OFD packet to send [08:54:31]OFD Sender: No OFD packet to send [08:54:36]OFD Sender: No OFD packet to send [08:54:41]OFD Sender: No OFD packet to send [08:54:46]OFD Sender: No OFD packet to send [08:54:51]OFD Sender: No OFD packet to send [08:54:56]OFD Sender: No OFD packet to send [08:55:01]OFD Sender: No OFD packet to send [08:55:06]OFD Sender: No OFD packet to send [08:55:11]OFD Sender: No OFD packet to send [08:55:16]OFD Sender: No OFD packet to send [08:55:21]OFD Sender: No OFD packet to send [08:55:26]OFD Sender: No OFD packet to send [08:55:31]OFD Sender: No OFD packet to send [08:55:36]OFD Sender: No OFD packet to send [08:55:39]accept exits with 8 [08:55:39]New connection [08:55:39]New thread 3066965348 created [08:55:39]Thread 3066821988 joined [08:55:39]Waiting for new connection... [08:55:39] Sock 8.Parse request [08:55:39]Sock 8.Check first char [08:55:39]Sock 8.First char is OK [08:55:39]request: POST /json_proto HTTP/1.0 [08:55:39]Method: POST [08:55:39]URL: /json_proto [08:55:39]Method is POST - this is cgi request [08:55:39]url: /json_proto [08:55:39]query_string will be loaded in cgi processing [08:55:39]execute_cgi json_proto POST (null) [08:55:39]execute_cgi path=json_proto method=POST [08:55:39]POST find Content-Length [08:55:39]Host: 172.17.44.195:8080 [08:55:39]Content-Length: 679 [08:55:39]Content-Type: application/json [08:55:39] [08:55:39]POST finish read [08:55:39]Found Content-Length = 679 [08:55:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962717", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:39]execute_script... [08:55:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962717", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:39]POST & json_proto [08:55:39]process_json_proto [08:55:39]json parsed OK: [08:55:39]protocol is kg_v1.0 [08:55:39]action value=close_receipt [08:55:39]process_action close_receipt [08:55:39]cmd_close_receipt [08:55:39]MH_GetDate [08:55:39]Write to MH i2c: F0 00 00 A5 34 C8 [08:55:39]Write i2c OK [08:55:39]MH_I2C_Read... [08:55:39]Read from MH i2c: F0 [08:55:39]MH_I2C_Read... [08:55:39]Read from MH i2c: F0 09 00 [08:55:39]MH_I2C_Read... [08:55:39]Read from MH i2c: F0 09 00 A5 34 00 8F C5 14 67 82 C9 CF 66 20 [08:55:39]GetLastDocTimeStamp 1729414427 [08:55:39]current date 1729414543 [08:55:39]FM_GetShiftState [08:55:39]SAM_PROTO_GetShiftState [08:55:39]wFMCommunicate request_size=4 [08:55:39]MH_SAM_APDU [08:55:39]CAPDU: 80 13 01 00 [08:55:39]Write to MH i2c: E2 08 00 A6 34 80 13 01 00 00 00 00 00 57 [08:55:39]Write i2c OK [08:55:39]MH_I2C_Read... [08:55:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:39]Read from MH i2c: E2 [08:55:39]MH_I2C_Read... [08:55:39]Read from MH i2c: E2 0E 00 [08:55:39]MH_I2C_Read... [08:55:39]Read from MH i2c: E2 0E 00 A6 34 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 71 [08:55:39]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:55:39]wFMCommunicate OK [08:55:39]SAM_PROTO_GetShiftState done [08:55:39]FM_GetShiftState done [08:55:39]opened in 1729383750 [08:55:39]opened+sec_in_day 1729470150 [08:55:39]quantity*price = 70044 [08:55:39]sum+1 = 70045 [08:55:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 105 20.10.2024 08:55 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227257 ФПД: 150415759861169 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T085543&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227257&fm=150415759861169&tin=02508201610067®Number=0000000000091685&sum=70000 [08:55:40]StoreToDocumentArchive [08:55:40]shift 533 fd 227257 [08:55:40]save to /storage/0533/doc_00227257 [08:55:40]save last doc name /storage/0533/doc_00227257 to /storage/kkm_last_doc_name [08:55:40]save OK [08:55:40]Clear old archive folders... [08:55:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:55:40]tlvbuf is B6F5B7C0 [08:55:40]SAM_PROTO_ClearQueue [08:55:40]wFMCommunicate request_size=4 [08:55:40]MH_SAM_APDU [08:55:40]CAPDU: 80 09 00 00 [08:55:40]Write to MH i2c: E2 08 00 B3 34 80 09 00 00 00 00 00 00 59 [08:55:40]Write i2c OK [08:55:40]MH_I2C_Read... [08:55:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:55:40]Read from MH i2c: E2 [08:55:40]MH_I2C_Read... [08:55:40]Read from MH i2c: E2 03 00 [08:55:40]MH_I2C_Read... [08:55:40]Read from MH i2c: E2 03 00 B3 34 00 90 00 5B [08:55:40]RAPDU: 90 00 [08:55:40]wFMCommunicate OK [08:55:40]SAM_PROTO_ClearQueue done [08:55:40]KKMCreateOFDPacket [08:55:40]OFDProtocolAddRootSTLVToBuf [08:55:40]FM_MakeSignedData [08:55:40]FM_MakeSignedData [08:55:40]SAM_PROTO_SignData [08:55:40]wFMCommunicate request_size=4 [08:55:40]MH_SAM_APDU [08:55:40]CAPDU: 80 0D 01 02 [08:55:40]Write to MH i2c: E2 08 00 B4 34 80 0D 01 02 00 00 00 00 61 [08:55:40]Write i2c OK [08:55:40]MH_I2C_Read... [08:55:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:55:40]Read from MH i2c: E2 [08:55:40]MH_I2C_Read... [08:55:40]Read from MH i2c: E2 03 00 [08:55:40]MH_I2C_Read... [08:55:40]Read from MH i2c: E2 03 00 B4 34 00 90 00 5C [08:55:40]RAPDU: 90 00 [08:55:40]wFMCommunicate OK [08:55:40]wFMCommunicate request_size=255 [08:55:40]MH_SAM_APDU [08:55:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 8F C5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B9 77 03 00 35 04 06 00 88 [08:55:40]Write to MH i2c: E2 02 01 B5 34 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 8F C5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B9 77 03 00 35 04 06 00 88 00 00 12 [08:55:40]Write i2c OK [08:55:40]MH_I2C_Read... [08:55:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:40]Read from MH i2c: E2 [08:55:40]MH_I2C_Read... [08:55:40]Read from MH i2c: E2 03 00 [08:55:40]MH_I2C_Read... [08:55:40]Read from MH i2c: E2 03 00 B5 34 00 90 00 5D [08:55:40]RAPDU: 90 00 [08:55:40]wFMCommunicate OK [08:55:40]wFMCommunicate request_size=10 [08:55:40]MH_SAM_APDU [08:55:40]CAPDU: 80 0D 02 02 05 CD 65 EF 65 B1 [08:55:40]Write to MH i2c: E2 0D 00 B6 34 80 0D 02 02 05 00 CD 65 EF 65 B1 00 00 A5 [08:55:40]Write i2c OK [08:55:40]MH_I2C_Read... [08:55:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:40]Read from MH i2c: E2 [08:55:40]MH_I2C_Read... [08:55:40]Read from MH i2c: E2 03 00 [08:55:40]MH_I2C_Read... [08:55:40]Read from MH i2c: E2 03 00 B6 34 00 90 00 5E [08:55:40]RAPDU: 90 00 [08:55:40]wFMCommunicate OK [08:55:40]wFMCommunicate request_size=4 [08:55:40]MH_SAM_APDU [08:55:40]CAPDU: 80 0D 03 02 [08:55:40]Write to MH i2c: E2 08 00 B7 34 80 0D 03 02 00 00 00 00 66 [08:55:40]Write i2c OK [08:55:40]MH_I2C_Read... [08:55:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:55:40]Read from MH i2c: E2 [08:55:40]MH_I2C_Read... [08:55:40]Read from MH i2c: E2 0B 00 [08:55:40]MH_I2C_Read... [08:55:40]Read from MH i2c: E2 0B 00 B7 34 00 E2 DF C6 87 A6 A9 15 45 90 00 1E [08:55:40]RAPDU: E2 DF C6 87 A6 A9 15 45 90 00 [08:55:40]wFMCommunicate OK [08:55:40]SAM_PROTO_SignData done [08:55:40]FM_MakeSignedData done [08:55:40]CreateOFDProtocolMessage [08:55:40]wFMCommunicate request_size=4 [08:55:40]MH_SAM_APDU [08:55:40]CAPDU: 80 11 00 00 [08:55:40]Write to MH i2c: E2 08 00 B8 34 80 11 00 00 00 00 00 00 66 [08:55:40]Write i2c OK [08:55:40]MH_I2C_Read... [08:55:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:40]Read from MH i2c: E2 [08:55:40]MH_I2C_Read... [08:55:40]Read from MH i2c: E2 17 00 [08:55:40]MH_I2C_Read... [08:55:40]Read from MH i2c: E2 17 00 B8 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 BD [08:55:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:55:40]wFMCommunicate OK [08:55:40]CreateOFDProtocolMessage done [08:55:40]OFDSenderStorePacket 227257 [08:55:40]StoreOFDPacket docnum=227257 [08:55:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 D0 B5 07 01 D1 F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 8F C5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B9 77 03 00 35 04 06 00 88 CD 65 EF 65 B1 E2 DF C6 87 A6 A9 15 45 [08:55:40]CheckFolder [08:55:40]dirname=/storage/ofd_packets [08:55:40]CheckFolder done [08:55:40]ProducePacketName [08:55:40]name=ofd_packets/00227257 [08:55:40]NVStorageSaveData ofd_packets/00227257 [08:55:40]File name is /storage/ofd_packets/00227257 [08:55:40]Write 301 bytes [08:55:40]NVStorageSaveData done [08:55:40]OFDSenderStorePacket done [08:55:40]KKMCreateOFDPacket done [08:55:40]NVStorageSaveData kkm_last_timestamp [08:55:40]File name is /storage/kkm_last_timestamp [08:55:40]Write 4 bytes [08:55:40]NVStorageSaveData done [08:55:40]ExternCall_PrintAddStr [08:55:40]wPrintStart [08:55:40]Write to MH i2c: 01 00 00 B9 34 ED [08:55:40]Write i2c OK [08:55:40]MH_I2C_Read... [08:55:40]Read from MH i2c: 01 [08:55:40]MH_I2C_Read... [08:55:40]Read from MH i2c: 01 07 00 [08:55:40]MH_I2C_Read... [08:55:40]Read from MH i2c: 01 07 00 B9 34 00 00 00 00 00 FF 0F 02 [08:55:40]RasterBufferAndPrint [08:55:40]line Счет N : (1)1962717 [08:55:40]line ИНН: 02508201610067 [08:55:40]line Контрольно-Кассовый Чек [08:55:40]line ПРОДАЖА [08:55:40]line ТРК (МРК, ГНК) : 33 [08:55:40]line Товар: 2710124130 [08:55:40]line Аи-92-К-5 [08:55:40]line 10.470 * 66.90 [08:55:40]line = 700.44 [08:55:40]line НДС 12% НСП 1% [08:55:40]line > о реализуемом товаре [08:55:40]line ОКРУГЛЕНИЕ: -0.44 [08:55:40]line ИТОГО: 700.00 [08:55:40]line Внесено: 700.00 [08:55:40]line СДАЧА: 0.00 [08:55:40]line НСП 1% : 6.20 [08:55:40]line НДС 12% : 74.38 [08:55:40]line Наличными: 700.00 [08:55:40]line Безнал.: 0.00 [08:55:40]line Место: АЗС № 133 "Партнер Нефть" [08:55:40]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [08:55:40]line СНО: Общий режим [08:55:40]line Чек 105 20.10.2024 08:55 [08:55:40]line Смена: 533 ФФД: 1.0 [08:55:40]line ЗНМ: 0300000091 [08:55:40]line РНМ: 0000000000091685 [08:55:40]line Версия ККМ: 001 [08:55:40]line ФМ: 0000000000871839 [08:55:40]line ФД: 227257 [08:55:40]line ФПД: 150415759861169 [08:55:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T085543&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227257&fm=150415759861169&tin=02508201610067®Number=0000000000091685&sum=70000 [08:55:40]written 0, free lines is 4095 [08:55:40]OFD Sender: Processing packet 227257 [packets to send 38, broken 37] [08:55:40]ProducePacketName [08:55:40]name=ofd_packets/00227257 [08:55:40]OFD Sender: To server: pG, [08:55:40]CommunicateWithHost lk.salyk.kg:30040 [08:55:40]ConnectInit lk.salyk.kg [08:55:40]Connected sock=10 [08:55: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 33 39 0F 01 00 00 D0 B5 07 01 D1 F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 8F C5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B9 77 03 00 35 04 06 00 88 CD 65 EF 65 B1 E2 DF C6 87 A6 A9 15 45 [08:55:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 57 38 47 00 BD F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B9 77 03 00 F4 03 04 00 8E 70 14 67 B6 04 01 00 00 A8 18 B5 1C DB 6B DB F8 [08:55:41]CommunicateWithHost err = 0 [08:55:41]CheckOFDResponse [08:55:41]1017 (14) - 77093643461234 [08:55:41]1041 (16) - 0000000000871839 [08:55:41]1040 (4) - 227257 [08:55:41]1012 (4) - 20.10.2024 02:53 [08:55:41]1206 (1) - 0 [08:55:41]OFD Sender: Remove packet 227257 [08:55:41]ProducePacketName [08:55:41]name=ofd_packets/00227257 [08:55:41]NVStorageDeleteData [08:55:41]Write to MH i2c: 01 00 00 E3 34 17 [08:55:41]Write i2c OK [08:55:41]MH_I2C_Read... [08:55:41]Read from MH i2c: 01 [08:55:41]MH_I2C_Read... [08:55:41]Read from MH i2c: 01 07 00 [08:55:41]MH_I2C_Read... [08:55:41]Read from MH i2c: 01 07 00 E3 34 00 00 00 00 00 11 0D 3C [08:55:41]RasterBufferAndPrint [08:55:41]line [08:55:41]line [08:55:41]line [08:55:41]line [08:55:41]line [08:55:41]written 0, free lines is 3351 [08:55:41]process_action close_receipt done [08:55:41]requested_data is exist [08:55:41]produce_requested_data [08:55:41]requested_item fm.sn is exist - process it [08:55:41]wFMCommunicate request_size=4 [08:55:41]MH_SAM_APDU [08:55:41]CAPDU: 80 11 00 00 [08:55:41]Write to MH i2c: E2 08 00 EA 34 80 11 00 00 00 00 00 00 98 [08:55:41]Write i2c OK [08:55:41]MH_I2C_Read... [08:55:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:41]Read from MH i2c: E2 [08:55:41]MH_I2C_Read... [08:55:41]Read from MH i2c: E2 17 00 [08:55:41]MH_I2C_Read... [08:55:41]Read from MH i2c: E2 17 00 EA 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 EF [08:55:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [08:55:41]wFMCommunicate OK [08:55:41]requested_item fd.num is exist - process it [08:55:41]SAM_PROTO_GetFieldsCounters [08:55:41]wFMCommunicate request_size=4 [08:55:41]MH_SAM_APDU [08:55:41]CAPDU: 80 13 00 00 [08:55:41]Write to MH i2c: E2 08 00 EB 34 80 13 00 00 00 00 00 00 9B [08:55:41]Write i2c OK [08:55:41]MH_I2C_Read... [08:55:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:55:41]Read from MH i2c: E2 [08:55:41]MH_I2C_Read... [08:55:41]Read from MH i2c: E2 62 00 [08:55:41]MH_I2C_Read... [08:55:41]Read from MH i2c: E2 62 00 EB 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 B9 77 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [08:55: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 B9 77 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:55:41]wFMCommunicate OK [08:55:41]SAM_PROTO_GetFieldsCounters done [08:55:41]requested_item shift.num is exist - process it [08:55:41]requested_item shift.opened is exist - process it [08:55:41]req_shift_opened [08:55:41]FM_GetShiftState [08:55:41]SAM_PROTO_GetShiftState [08:55:41]wFMCommunicate request_size=4 [08:55:41]MH_SAM_APDU [08:55:41]CAPDU: 80 13 01 00 [08:55:41]Write to MH i2c: E2 08 00 EC 34 80 13 01 00 00 00 00 00 9D [08:55:41]Write i2c OK [08:55:41]MH_I2C_Read... [08:55:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:41]Read from MH i2c: E2 [08:55:41]MH_I2C_Read... [08:55:41]Read from MH i2c: E2 0E 00 [08:55:41]MH_I2C_Read... [08:55:41]Read from MH i2c: E2 0E 00 EC 34 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 B7 [08:55:41]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [08:55:41]wFMCommunicate OK [08:55:41]SAM_PROTO_GetShiftState done [08:55:41]FM_GetShiftState done [08:55:41]req_shift_opened done [08:55:41]requested_item shift.open_date is exist - process it [08:55:41]req_shift_open_date [08:55:41]req_shift_open_date done [08:55:41]produce_requested_data done [08:55:41]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227257,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [08:55:41]process_action_free close_receipt [08:55:41]json_value_free [08:55:41]json_value_free done [08:55:41]process_json_proto returns [08:55:41]Send response to host [08:55:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227257,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [08:55:41]free response buf [08:55:41]execute_script done [08:55:41]execute_script returns [08:55:41]free content buf [08:55:41]Sock 8.Close socket [08:55:41]Sock 8.Thread stoped [08:55:41]OFD Sender: No OFD packet to send [08:55:46]OFD Sender: No OFD packet to send [08:55:51]OFD Sender: No OFD packet to send [08:55:56]OFD Sender: No OFD packet to send [08:56:01]OFD Sender: No OFD packet to send [08:56:06]OFD Sender: No OFD packet to send [08:56:11]OFD Sender: No OFD packet to send [08:56:16]OFD Sender: No OFD packet to send [08:56:21]OFD Sender: No OFD packet to send [08:56:26]OFD Sender: No OFD packet to send [08:56:31]OFD Sender: No OFD packet to send [08:56:36]OFD Sender: No OFD packet to send [08:56:41]OFD Sender: No OFD packet to send [08:56:46]OFD Sender: No OFD packet to send [08:56:51]OFD Sender: No OFD packet to send [08:56:56]OFD Sender: No OFD packet to send [08:57:01]OFD Sender: No OFD packet to send [08:57:06]OFD Sender: No OFD packet to send [08:57:11]OFD Sender: No OFD packet to send [08:57:16]OFD Sender: No OFD packet to send [08:57:21]OFD Sender: No OFD packet to send [08:57:26]OFD Sender: No OFD packet to send [08:57:31]OFD Sender: No OFD packet to send [08:57:36]OFD Sender: No OFD packet to send [08:57:41]OFD Sender: No OFD packet to send [08:57:46]OFD Sender: No OFD packet to send [08:57:51]OFD Sender: No OFD packet to send [08:57:56]OFD Sender: No OFD packet to send [08:58:01]OFD Sender: No OFD packet to send [08:58:06]OFD Sender: No OFD packet to send [08:58:11]OFD Sender: No OFD packet to send [08:58:16]OFD Sender: No OFD packet to send [08:58:21]OFD Sender: No OFD packet to send [08:58:26]OFD Sender: No OFD packet to send [08:58:31]OFD Sender: No OFD packet to send [08:58:36]OFD Sender: No OFD packet to send [08:58:41]OFD Sender: No OFD packet to send [08:58:46]OFD Sender: No OFD packet to send [08:58:51]OFD Sender: No OFD packet to send [08:58:56]OFD Sender: No OFD packet to send [08:59:01]OFD Sender: No OFD packet to send [08:59:06]OFD Sender: No OFD packet to send [08:59:11]OFD Sender: No OFD packet to send [08:59:16]OFD Sender: No OFD packet to send [08:59:21]OFD Sender: No OFD packet to send [08:59:26]OFD Sender: No OFD packet to send [08:59:31]OFD Sender: No OFD packet to send [08:59:36]OFD Sender: No OFD packet to send [08:59:41]OFD Sender: No OFD packet to send [08:59:46]OFD Sender: No OFD packet to send [08:59:51]OFD Sender: No OFD packet to send [08:59:56]OFD Sender: No OFD packet to send [09:00:01]OFD Sender: No OFD packet to send [09:00:06]OFD Sender: No OFD packet to send [09:00:11]OFD Sender: No OFD packet to send [09:00:16]OFD Sender: No OFD packet to send [09:00:21]OFD Sender: No OFD packet to send [09:00:26]OFD Sender: No OFD packet to send [09:00:31]OFD Sender: No OFD packet to send [09:00:36]OFD Sender: No OFD packet to send [09:00:41]OFD Sender: No OFD packet to send [09:00:46]OFD Sender: No OFD packet to send [09:00:51]OFD Sender: No OFD packet to send [09:00:56]OFD Sender: No OFD packet to send [09:01:01]OFD Sender: No OFD packet to send [09:01:06]OFD Sender: No OFD packet to send [09:01:11]OFD Sender: No OFD packet to send [09:01:16]OFD Sender: No OFD packet to send [09:01:21]OFD Sender: No OFD packet to send [09:01:26]OFD Sender: No OFD packet to send [09:01:31]OFD Sender: No OFD packet to send [09:01:36]OFD Sender: No OFD packet to send [09:01:41]OFD Sender: No OFD packet to send [09:01:46]OFD Sender: No OFD packet to send [09:01:51]OFD Sender: No OFD packet to send [09:01:56]OFD Sender: No OFD packet to send [09:02:01]OFD Sender: No OFD packet to send [09:02:06]OFD Sender: No OFD packet to send [09:02:11]OFD Sender: No OFD packet to send [09:02:16]OFD Sender: No OFD packet to send [09:02:21]OFD Sender: No OFD packet to send [09:02:26]OFD Sender: No OFD packet to send [09:02:31]OFD Sender: No OFD packet to send [09:02:36]OFD Sender: No OFD packet to send [09:02:41]OFD Sender: No OFD packet to send [09:02:46]OFD Sender: No OFD packet to send [09:02:52]OFD Sender: No OFD packet to send [09:02:57]OFD Sender: No OFD packet to send [09:03:02]OFD Sender: No OFD packet to send [09:03:07]OFD Sender: No OFD packet to send [09:03:12]OFD Sender: No OFD packet to send [09:03:17]OFD Sender: No OFD packet to send [09:03:22]OFD Sender: No OFD packet to send [09:03:27]OFD Sender: No OFD packet to send [09:03:32]OFD Sender: No OFD packet to send [09:03:37]OFD Sender: No OFD packet to send [09:03:42]OFD Sender: No OFD packet to send [09:03:47]OFD Sender: No OFD packet to send [09:03:52]OFD Sender: No OFD packet to send [09:03:57]OFD Sender: No OFD packet to send [09:04:02]OFD Sender: No OFD packet to send [09:04:07]OFD Sender: No OFD packet to send [09:04:12]OFD Sender: No OFD packet to send [09:04:17]OFD Sender: No OFD packet to send [09:04:18]accept exits with 9 [09:04:18]New connection [09:04:18]New thread 3066821988 created [09:04:18]Thread 3066965348 joined [09:04:18]Waiting for new connection... [09:04:18] Sock 9.Parse request [09:04:18]Sock 9.Check first char [09:04:18]Sock 9.First char is OK [09:04:18]request: POST /json_proto HTTP/1.0 [09:04:18]Method: POST [09:04:18]URL: /json_proto [09:04:18]Method is POST - this is cgi request [09:04:18]url: /json_proto [09:04:18]query_string will be loaded in cgi processing [09:04:18]execute_cgi json_proto POST (null) [09:04:18]execute_cgi path=json_proto method=POST [09:04:18]POST find Content-Length [09:04:18]Host: 172.17.44.195:8080 [09:04:18]Content-Length: 764 [09:04:18]Content-Type: application/json [09:04:18] [09:04:18]POST finish read [09:04:18]Found Content-Length = 764 [09:04:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962724", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:04:18]execute_script... [09:04: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)1962724", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:04:18]POST & json_proto [09:04:18]process_json_proto [09:04:18]json parsed OK: [09:04:18]protocol is kg_v1.0 [09:04:18]action value=close_receipt [09:04:18]process_action close_receipt [09:04:18]cmd_close_receipt [09:04:18]MH_GetDate [09:04:18]Write to MH i2c: F0 00 00 ED 34 10 [09:04:18]Write i2c OK [09:04:18]MH_I2C_Read... [09:04:18]Read from MH i2c: F0 [09:04:18]MH_I2C_Read... [09:04:18]Read from MH i2c: F0 09 00 [09:04:18]MH_I2C_Read... [09:04:18]Read from MH i2c: F0 09 00 ED 34 00 96 C7 14 67 82 C9 CF 66 71 [09:04:18]GetLastDocTimeStamp 1729414543 [09:04:18]current date 1729415062 [09:04:18]FM_GetShiftState [09:04:18]SAM_PROTO_GetShiftState [09:04:18]wFMCommunicate request_size=4 [09:04:18]MH_SAM_APDU [09:04:18]CAPDU: 80 13 01 00 [09:04:18]Write to MH i2c: E2 08 00 EE 34 80 13 01 00 00 00 00 00 9F [09:04:18]Write i2c OK [09:04:18]MH_I2C_Read... [09:04:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:04:19]Read from MH i2c: E2 [09:04:19]MH_I2C_Read... [09:04:19]Read from MH i2c: E2 0E 00 [09:04:19]MH_I2C_Read... [09:04:19]Read from MH i2c: E2 0E 00 EE 34 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 B9 [09:04:19]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:04:19]wFMCommunicate OK [09:04:19]SAM_PROTO_GetShiftState done [09:04:19]FM_GetShiftState done [09:04:19]opened in 1729383750 [09:04:19]opened+sec_in_day 1729470150 [09:04:19]quantity*price = 50063 [09:04:19]sum+1 = 50064 [09:04:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.63 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 0.00 Безнал.: 500.63 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 106 20.10.2024 09:04 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 227258 ФПД: 217510379406378 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T090423&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227258&fm=217510379406378&tin=02508201610067®Number=0000000000091685&sum=50063 [09:04:20]StoreToDocumentArchive [09:04:20]shift 533 fd 227258 [09:04:20]save to /storage/0533/doc_00227258 [09:04:20]save last doc name /storage/0533/doc_00227258 to /storage/kkm_last_doc_name [09:04:20]save OK [09:04:20]Clear old archive folders... [09:04:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:04:20]tlvbuf is 005089B0 [09:04:20]SAM_PROTO_ClearQueue [09:04:20]wFMCommunicate request_size=4 [09:04:20]MH_SAM_APDU [09:04:20]CAPDU: 80 09 00 00 [09:04:20]Write to MH i2c: E2 08 00 FB 34 80 09 00 00 00 00 00 00 A1 [09:04:20]Write i2c OK [09:04:20]MH_I2C_Read... [09:04:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:04:20]Read from MH i2c: E2 [09:04:20]MH_I2C_Read... [09:04:20]Read from MH i2c: E2 03 00 [09:04:20]MH_I2C_Read... [09:04:20]Read from MH i2c: E2 03 00 FB 34 00 90 00 A3 [09:04:20]RAPDU: 90 00 [09:04:20]wFMCommunicate OK [09:04:20]SAM_PROTO_ClearQueue done [09:04:20]KKMCreateOFDPacket [09:04:20]OFDProtocolAddRootSTLVToBuf [09:04:20]FM_MakeSignedData [09:04:20]FM_MakeSignedData [09:04:20]SAM_PROTO_SignData [09:04:20]wFMCommunicate request_size=4 [09:04:20]MH_SAM_APDU [09:04:20]CAPDU: 80 0D 01 02 [09:04:20]Write to MH i2c: E2 08 00 FC 34 80 0D 01 02 00 00 00 00 A9 [09:04:20]Write i2c OK [09:04:20]MH_I2C_Read... [09:04:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:04:20]Read from MH i2c: E2 [09:04:20]MH_I2C_Read... [09:04:20]Read from MH i2c: E2 03 00 [09:04:20]MH_I2C_Read... [09:04:20]Read from MH i2c: E2 03 00 FC 34 00 90 00 A4 [09:04:20]RAPDU: 90 00 [09:04:20]wFMCommunicate OK [09:04:20]wFMCommunicate request_size=255 [09:04:20]MH_SAM_APDU [09:04: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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 97 C7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BA 77 03 00 35 04 06 00 C5 D3 14 E6 [09:04:20]Write to MH i2c: E2 02 01 FD 34 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 97 C7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BA 77 03 00 35 04 06 00 C5 D3 14 E6 00 00 5C [09:04:20]Write i2c OK [09:04:20]MH_I2C_Read... [09:04:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:04:20]Read from MH i2c: E2 [09:04:20]MH_I2C_Read... [09:04:20]Read from MH i2c: E2 03 00 [09:04:20]MH_I2C_Read... [09:04:20]Read from MH i2c: E2 03 00 FD 34 00 90 00 A5 [09:04:20]RAPDU: 90 00 [09:04:20]wFMCommunicate OK [09:04:20]wFMCommunicate request_size=7 [09:04:20]MH_SAM_APDU [09:04:20]CAPDU: 80 0D 02 02 02 44 2A [09:04:20]Write to MH i2c: E2 0A 00 FE 34 80 0D 02 02 02 00 44 2A 00 00 1E [09:04:20]Write i2c OK [09:04:20]MH_I2C_Read... [09:04:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:04:20]Read from MH i2c: E2 [09:04:20]MH_I2C_Read... [09:04:20]Read from MH i2c: E2 03 00 [09:04:20]MH_I2C_Read... [09:04:20]Read from MH i2c: E2 03 00 FE 34 00 90 00 A6 [09:04:20]RAPDU: 90 00 [09:04:20]wFMCommunicate OK [09:04:20]wFMCommunicate request_size=4 [09:04:20]MH_SAM_APDU [09:04:20]CAPDU: 80 0D 03 02 [09:04:20]Write to MH i2c: E2 08 00 FF 34 80 0D 03 02 00 00 00 00 AE [09:04:20]Write i2c OK [09:04:20]MH_I2C_Read... [09:04:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:04:20]Read from MH i2c: E2 [09:04:20]MH_I2C_Read... [09:04:20]Read from MH i2c: E2 0B 00 [09:04:20]MH_I2C_Read... [09:04:20]Read from MH i2c: E2 0B 00 FF 34 00 E8 BD 02 73 A5 37 D0 F7 90 00 6C [09:04:20]RAPDU: E8 BD 02 73 A5 37 D0 F7 90 00 [09:04:20]wFMCommunicate OK [09:04:20]SAM_PROTO_SignData done [09:04:20]FM_MakeSignedData done [09:04:20]CreateOFDProtocolMessage [09:04:20]wFMCommunicate request_size=4 [09:04:20]MH_SAM_APDU [09:04:20]CAPDU: 80 11 00 00 [09:04:20]Write to MH i2c: E2 08 00 00 35 80 11 00 00 00 00 00 00 AF [09:04:20]Write i2c OK [09:04:20]MH_I2C_Read... [09:04:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:04:20]Read from MH i2c: E2 [09:04:20]MH_I2C_Read... [09:04:20]Read from MH i2c: E2 17 00 [09:04:20]MH_I2C_Read... [09:04:20]Read from MH i2c: E2 17 00 00 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 06 [09:04:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:04:20]wFMCommunicate OK [09:04:20]CreateOFDProtocolMessage done [09:04:20]OFDSenderStorePacket 227258 [09:04:20]StoreOFDPacket docnum=227258 [09:04:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 01 B5 04 01 D8 FD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 97 C7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BA 77 03 00 35 04 06 00 C5 D3 14 E6 44 2A E8 BD 02 73 A5 37 D0 F7 [09:04:20]CheckFolder [09:04:20]dirname=/storage/ofd_packets [09:04:20]CheckFolder done [09:04:20]ProducePacketName [09:04:20]name=ofd_packets/00227258 [09:04:20]NVStorageSaveData ofd_packets/00227258 [09:04:20]File name is /storage/ofd_packets/00227258 [09:04:20]Write 298 bytes [09:04:20]NVStorageSaveData done [09:04:20]OFDSenderStorePacket done [09:04:20]KKMCreateOFDPacket done [09:04:20]NVStorageSaveData kkm_last_timestamp [09:04:20]File name is /storage/kkm_last_timestamp [09:04:20]Write 4 bytes [09:04:20]NVStorageSaveData done [09:04:20]ExternCall_PrintAddStr [09:04:20]wPrintStart [09:04:20]Write to MH i2c: 01 00 00 01 35 36 [09:04:20]Write i2c OK [09:04:20]MH_I2C_Read... [09:04:20]Read from MH i2c: 01 [09:04:20]MH_I2C_Read... [09:04:20]Read from MH i2c: 01 07 00 [09:04:20]MH_I2C_Read... [09:04:20]Read from MH i2c: 01 07 00 01 35 00 00 00 00 00 FF 0F 4B [09:04:20]RasterBufferAndPrint [09:04:20]line Счет N : (1)1962724 [09:04:20]line ИНН: 02508201610067 [09:04:20]line Контрольно-Кассовый Чек [09:04:20]line ПРОДАЖА [09:04:20]line ТРК (МРК, ГНК) : 11 [09:04:20]line Товар: 2710194210 [09:04:20]line ДТ-К-5 [09:04:20]line 6.570 * 76.20 [09:04:20]line = 500.63 [09:04:20]line НДС 12% НСП 1% [09:04:20]line > о реализуемом товаре [09:04:20]line ИТОГО: 500.63 [09:04:20]line НСП 1% : 4.43 [09:04:20]line НДС 12% : 53.16 [09:04:20]line Наличными: 0.00 [09:04:20]line Безнал.: 500.63 [09:04:20]line Место: АЗС № 133 "Партнер Нефть" [09:04:20]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:04:20]line СНО: Общий режим [09:04:20]line Чек 106 20.10.2024 09:04 [09:04:20]line Смена: 533 ФФД: 1.0 [09:04:20]line ЗНМ: 0300000091 [09:04:20]line РНМ: 0000000000091685 [09:04:20]line Версия ККМ: 001 [09:04:20]line Платежная система: Mbank [09:04:20]line ФМ: 0000000000871839 [09:04:20]line ФД: 227258 [09:04:20]line ФПД: 217510379406378 [09:04:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T090423&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227258&fm=217510379406378&tin=02508201610067®Number=0000000000091685&sum=50063 [09:04:21]OFD Sender: Processing packet 227258 [packets to send 38, broken 37] [09:04:21]ProducePacketName [09:04:21]name=ofd_packets/00227258 [09:04:21]OFD Sender: To server: pG, [09:04:21]CommunicateWithHost lk.salyk.kg:30040 [09:04:21]ConnectInit lk.salyk.kg [09:04:21]written 0, free lines is 4095 [09:04:21]Connected sock=10 [09:04: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 33 39 0C 01 00 00 01 B5 04 01 D8 FD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 97 C7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BA 77 03 00 35 04 06 00 C5 D3 14 E6 44 2A E8 BD 02 73 A5 37 D0 F7 [09:04: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 33 39 4F 00 00 00 1D B8 47 00 16 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 33 39 10 04 04 00 BA 77 03 00 F4 03 04 00 96 72 14 67 B6 04 01 00 00 0C 32 68 78 48 05 37 1E [09:04:21]CommunicateWithHost err = 0 [09:04:21]CheckOFDResponse [09:04:21]1017 (14) - 77093643461234 [09:04:21]1041 (16) - 0000000000871839 [09:04:21]1040 (4) - 227258 [09:04:21]1012 (4) - 20.10.2024 03:01 [09:04:21]1206 (1) - 0 [09:04:21]OFD Sender: Remove packet 227258 [09:04:21]ProducePacketName [09:04:21]name=ofd_packets/00227258 [09:04:21]NVStorageDeleteData [09:04:21]Write to MH i2c: 01 00 00 29 35 5E [09:04:21]Write i2c OK [09:04:21]MH_I2C_Read... [09:04:21]Read from MH i2c: 01 [09:04:21]MH_I2C_Read... [09:04:21]Read from MH i2c: 01 07 00 [09:04:21]MH_I2C_Read... [09:04:21]Read from MH i2c: 01 07 00 29 35 00 00 00 00 00 22 0D 94 [09:04:21]RasterBufferAndPrint [09:04:21]line [09:04:21]line [09:04:21]line [09:04:21]line [09:04:21]line [09:04:21]written 0, free lines is 3368 [09:04:21]process_action close_receipt done [09:04:21]requested_data is exist [09:04:21]produce_requested_data [09:04:21]requested_item fm.sn is exist - process it [09:04:21]wFMCommunicate request_size=4 [09:04:21]MH_SAM_APDU [09:04:21]CAPDU: 80 11 00 00 [09:04:21]Write to MH i2c: E2 08 00 30 35 80 11 00 00 00 00 00 00 DF [09:04:21]Write i2c OK [09:04:21]MH_I2C_Read... [09:04:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:04:21]Read from MH i2c: E2 [09:04:21]MH_I2C_Read... [09:04:21]Read from MH i2c: E2 17 00 [09:04:21]MH_I2C_Read... [09:04:21]Read from MH i2c: E2 17 00 30 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 36 [09:04:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:04:21]wFMCommunicate OK [09:04:21]requested_item fd.num is exist - process it [09:04:21]SAM_PROTO_GetFieldsCounters [09:04:21]wFMCommunicate request_size=4 [09:04:21]MH_SAM_APDU [09:04:21]CAPDU: 80 13 00 00 [09:04:21]Write to MH i2c: E2 08 00 31 35 80 13 00 00 00 00 00 00 E2 [09:04:21]Write i2c OK [09:04:21]MH_I2C_Read... [09:04:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:04:21]Read from MH i2c: E2 [09:04:21]MH_I2C_Read... [09:04:21]Read from MH i2c: E2 62 00 [09:04:21]MH_I2C_Read... [09:04:21]Read from MH i2c: E2 62 00 31 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 BA 77 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 94 [09:04:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 BA 77 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:04:21]wFMCommunicate OK [09:04:21]SAM_PROTO_GetFieldsCounters done [09:04:21]requested_item shift.num is exist - process it [09:04:21]requested_item shift.opened is exist - process it [09:04:21]req_shift_opened [09:04:21]FM_GetShiftState [09:04:21]SAM_PROTO_GetShiftState [09:04:21]wFMCommunicate request_size=4 [09:04:21]MH_SAM_APDU [09:04:21]CAPDU: 80 13 01 00 [09:04:21]Write to MH i2c: E2 08 00 32 35 80 13 01 00 00 00 00 00 E4 [09:04:21]Write i2c OK [09:04:21]MH_I2C_Read... [09:04:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:04:21]Read from MH i2c: E2 [09:04:21]MH_I2C_Read... [09:04:21]Read from MH i2c: E2 0E 00 [09:04:21]MH_I2C_Read... [09:04:21]Read from MH i2c: E2 0E 00 32 35 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 FE [09:04:21]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:04:21]wFMCommunicate OK [09:04:21]SAM_PROTO_GetShiftState done [09:04:21]FM_GetShiftState done [09:04:21]req_shift_opened done [09:04:21]requested_item shift.open_date is exist - process it [09:04:21]req_shift_open_date [09:04:21]req_shift_open_date done [09:04:21]produce_requested_data done [09:04:21]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227258,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [09:04:21]process_action_free close_receipt [09:04:21]json_value_free [09:04:21]json_value_free done [09:04:21]process_json_proto returns [09:04:21]Send response to host [09:04:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227258,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [09:04:21]free response buf [09:04:21]execute_script done [09:04:21]execute_script returns [09:04:21]free content buf [09:04:21]Sock 9.Close socket [09:04:21]Sock 9.Thread stoped [09:04:21]OFD Sender: No OFD packet to send [09:04:26]OFD Sender: No OFD packet to send [09:04:31]OFD Sender: No OFD packet to send [09:04:36]OFD Sender: No OFD packet to send [09:04:41]OFD Sender: No OFD packet to send [09:04:46]OFD Sender: No OFD packet to send [09:04:51]OFD Sender: No OFD packet to send [09:04:56]OFD Sender: No OFD packet to send [09:05:01]OFD Sender: No OFD packet to send [09:05:06]OFD Sender: No OFD packet to send [09:05:11]OFD Sender: No OFD packet to send [09:05:16]OFD Sender: No OFD packet to send [09:05:21]OFD Sender: No OFD packet to send [09:05:25]accept exits with 8 [09:05:25]New connection [09:05:25]New thread 3066965348 created [09:05:25]Thread 3066821988 joined [09:05:25]Waiting for new connection... [09:05:25] Sock 8.Parse request [09:05:25]Sock 8.Check first char [09:05:25]Sock 8.First char is OK [09:05:25]request: POST /json_proto HTTP/1.0 [09:05:25]Method: POST [09:05:25]URL: /json_proto [09:05:25]Method is POST - this is cgi request [09:05:25]url: /json_proto [09:05:25]query_string will be loaded in cgi processing [09:05:25]execute_cgi json_proto POST (null) [09:05:25]execute_cgi path=json_proto method=POST [09:05:25]POST find Content-Length [09:05:25]Host: 172.17.44.195:8080 [09:05:25]Content-Length: 678 [09:05:25]Content-Type: application/json [09:05:25] [09:05:25]POST finish read [09:05:25]Found Content-Length = 678 [09:05:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962725", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:05:25]execute_script... [09:05: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)1962725", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:05:25]POST & json_proto [09:05:25]process_json_proto [09:05:25]json parsed OK: [09:05:25]protocol is kg_v1.0 [09:05:25]action value=close_receipt [09:05:25]process_action close_receipt [09:05:25]cmd_close_receipt [09:05:25]MH_GetDate [09:05:25]Write to MH i2c: F0 00 00 33 35 57 [09:05:25]Write i2c OK [09:05:25]MH_I2C_Read... [09:05:25]Read from MH i2c: F0 [09:05:25]MH_I2C_Read... [09:05:25]Read from MH i2c: F0 09 00 [09:05:25]MH_I2C_Read... [09:05:25]Read from MH i2c: F0 09 00 33 35 00 D9 C7 14 67 82 C9 CF 66 FB [09:05:25]GetLastDocTimeStamp 1729415063 [09:05:25]current date 1729415129 [09:05:25]FM_GetShiftState [09:05:25]SAM_PROTO_GetShiftState [09:05:25]wFMCommunicate request_size=4 [09:05:25]MH_SAM_APDU [09:05:25]CAPDU: 80 13 01 00 [09:05:25]Write to MH i2c: E2 08 00 34 35 80 13 01 00 00 00 00 00 E6 [09:05:25]Write i2c OK [09:05:25]MH_I2C_Read... [09:05:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:05:25]Read from MH i2c: E2 [09:05:25]MH_I2C_Read... [09:05:25]Read from MH i2c: E2 0E 00 [09:05:25]MH_I2C_Read... [09:05:25]Read from MH i2c: E2 0E 00 34 35 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 00 [09:05:25]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:05:25]wFMCommunicate OK [09:05:25]SAM_PROTO_GetShiftState done [09:05:25]FM_GetShiftState done [09:05:25]opened in 1729383750 [09:05:25]opened+sec_in_day 1729470150 [09:05:25]quantity*price = 50041 [09:05:25]sum+1 = 50042 [09:05:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 107 20.10.2024 09:05 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227259 ФПД: 128791841762293 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T090529&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227259&fm=128791841762293&tin=02508201610067®Number=0000000000091685&sum=50000 [09:05:26]StoreToDocumentArchive [09:05:26]shift 533 fd 227259 [09:05:26]save to /storage/0533/doc_00227259 [09:05:26]save last doc name /storage/0533/doc_00227259 to /storage/kkm_last_doc_name [09:05:26]save OK [09:05:26]Clear old archive folders... [09:05:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:05:26]tlvbuf is 00541790 [09:05:26]SAM_PROTO_ClearQueue [09:05:26]wFMCommunicate request_size=4 [09:05:26]MH_SAM_APDU [09:05:26]CAPDU: 80 09 00 00 [09:05:26]Write to MH i2c: E2 08 00 41 35 80 09 00 00 00 00 00 00 E8 [09:05:26]Write i2c OK [09:05:26]MH_I2C_Read... [09:05:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:05:26]Read from MH i2c: E2 [09:05:26]MH_I2C_Read... [09:05:26]Read from MH i2c: E2 03 00 [09:05:26]MH_I2C_Read... [09:05:26]Read from MH i2c: E2 03 00 41 35 00 90 00 EA [09:05:26]RAPDU: 90 00 [09:05:26]wFMCommunicate OK [09:05:26]SAM_PROTO_ClearQueue done [09:05:26]KKMCreateOFDPacket [09:05:26]OFDProtocolAddRootSTLVToBuf [09:05:26]FM_MakeSignedData [09:05:26]FM_MakeSignedData [09:05:26]SAM_PROTO_SignData [09:05:26]wFMCommunicate request_size=4 [09:05:26]MH_SAM_APDU [09:05:26]CAPDU: 80 0D 01 02 [09:05:26]Write to MH i2c: E2 08 00 42 35 80 0D 01 02 00 00 00 00 F0 [09:05:26]Write i2c OK [09:05:26]MH_I2C_Read... [09:05:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:05:26]Read from MH i2c: E2 [09:05:26]MH_I2C_Read... [09:05:26]Read from MH i2c: E2 03 00 [09:05:26]MH_I2C_Read... [09:05:26]Read from MH i2c: E2 03 00 42 35 00 90 00 EB [09:05:26]RAPDU: 90 00 [09:05:26]wFMCommunicate OK [09:05:26]wFMCommunicate request_size=255 [09:05:26]MH_SAM_APDU [09:05:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 D9 C7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BB 77 03 00 35 04 06 00 75 [09:05:26]Write to MH i2c: E2 02 01 43 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 D9 C7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BB 77 03 00 35 04 06 00 75 00 00 CE [09:05:26]Write i2c OK [09:05:26]MH_I2C_Read... [09:05:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:05:26]Read from MH i2c: E2 [09:05:26]MH_I2C_Read... [09:05:26]Read from MH i2c: E2 03 00 [09:05:26]MH_I2C_Read... [09:05:26]Read from MH i2c: E2 03 00 43 35 00 90 00 EC [09:05:26]RAPDU: 90 00 [09:05:26]wFMCommunicate OK [09:05:26]wFMCommunicate request_size=10 [09:05:26]MH_SAM_APDU [09:05:26]CAPDU: 80 0D 02 02 05 22 AF FA 6B F5 [09:05:26]Write to MH i2c: E2 0D 00 44 35 80 0D 02 02 05 00 22 AF FA 6B F5 00 00 28 [09:05:26]Write i2c OK [09:05:26]MH_I2C_Read... [09:05:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:05:26]Read from MH i2c: E2 [09:05:26]MH_I2C_Read... [09:05:26]Read from MH i2c: E2 03 00 [09:05:26]MH_I2C_Read... [09:05:26]Read from MH i2c: E2 03 00 44 35 00 90 00 ED [09:05:26]RAPDU: 90 00 [09:05:26]wFMCommunicate OK [09:05:26]wFMCommunicate request_size=4 [09:05:26]MH_SAM_APDU [09:05:26]CAPDU: 80 0D 03 02 [09:05:26]Write to MH i2c: E2 08 00 45 35 80 0D 03 02 00 00 00 00 F5 [09:05:26]Write i2c OK [09:05:26]MH_I2C_Read... [09:05:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:05:26]Read from MH i2c: E2 [09:05:26]MH_I2C_Read... [09:05:26]Read from MH i2c: E2 0B 00 [09:05:26]MH_I2C_Read... [09:05:26]Read from MH i2c: E2 0B 00 45 35 00 D8 53 7A 84 6D 48 57 68 90 00 93 [09:05:26]RAPDU: D8 53 7A 84 6D 48 57 68 90 00 [09:05:26]wFMCommunicate OK [09:05:26]SAM_PROTO_SignData done [09:05:26]FM_MakeSignedData done [09:05:26]CreateOFDProtocolMessage [09:05:26]wFMCommunicate request_size=4 [09:05:26]MH_SAM_APDU [09:05:26]CAPDU: 80 11 00 00 [09:05:26]Write to MH i2c: E2 08 00 46 35 80 11 00 00 00 00 00 00 F5 [09:05:26]Write i2c OK [09:05:26]MH_I2C_Read... [09:05:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:05:26]Read from MH i2c: E2 [09:05:26]MH_I2C_Read... [09:05:26]Read from MH i2c: E2 17 00 [09:05:26]MH_I2C_Read... [09:05:26]Read from MH i2c: E2 17 00 46 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 4C [09:05:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:05:26]wFMCommunicate OK [09:05:26]CreateOFDProtocolMessage done [09:05:26]OFDSenderStorePacket 227259 [09:05:26]StoreOFDPacket docnum=227259 [09:05:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 4A 0E 07 01 A6 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 D9 C7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BB 77 03 00 35 04 06 00 75 22 AF FA 6B F5 D8 53 7A 84 6D 48 57 68 [09:05:26]CheckFolder [09:05:26]dirname=/storage/ofd_packets [09:05:26]CheckFolder done [09:05:26]ProducePacketName [09:05:26]name=ofd_packets/00227259 [09:05:26]NVStorageSaveData ofd_packets/00227259 [09:05:26]File name is /storage/ofd_packets/00227259 [09:05:26]Write 301 bytes [09:05:26]NVStorageSaveData done [09:05:26]OFDSenderStorePacket done [09:05:26]KKMCreateOFDPacket done [09:05:26]NVStorageSaveData kkm_last_timestamp [09:05:26]File name is /storage/kkm_last_timestamp [09:05:26]Write 4 bytes [09:05:26]NVStorageSaveData done [09:05:26]OFD Sender: Processing packet 227259 [packets to send 38, broken 37] [09:05:26]ProducePacketName [09:05:26]name=ofd_packets/00227259 [09:05:26]OFD Sender: To server: pG, [09:05:26]CommunicateWithHost lk.salyk.kg:30040 [09:05:26]ConnectInit lk.salyk.kg [09:05:26]ExternCall_PrintAddStr [09:05:26]wPrintStart [09:05:26]Write to MH i2c: 01 00 00 47 35 7C [09:05:26]Write i2c OK [09:05:26]MH_I2C_Read... [09:05:26]Read from MH i2c: 01 [09:05:26]MH_I2C_Read... [09:05:26]Read from MH i2c: 01 07 00 [09:05:26]MH_I2C_Read... [09:05:26]Read from MH i2c: 01 07 00 47 35 00 00 00 00 00 FF 0F 91 [09:05:26]RasterBufferAndPrint [09:05:26]line Счет N : (1)1962725 [09:05:26]line ИНН: 02508201610067 [09:05:26]line Контрольно-Кассовый Чек [09:05:26]line ПРОДАЖА [09:05:26]line ТРК (МРК, ГНК) : 43 [09:05:26]line Товар: 2710124130 [09:05:26]line Аи-92-К-5 [09:05:26]line 7.480 * 66.90 [09:05:26]line = 500.41 [09:05:26]line НДС 12% НСП 1% [09:05:26]line > о реализуемом товаре [09:05:26]line ОКРУГЛЕНИЕ: -0.41 [09:05:26]line ИТОГО: 500.00 [09:05:26]line Внесено: 500.00 [09:05:26]line СДАЧА: 0.00 [09:05:26]line НСП 1% : 4.43 [09:05:26]line НДС 12% : 53.14 [09:05:26]line Наличными: 500.00 [09:05:26]line Безнал.: 0.00 [09:05:26]line Место: АЗС № 133 "Партнер Нефть" [09:05:26]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:05:26]line СНО: Общий режим [09:05:26]line Чек 107 20.10.2024 09:05 [09:05:26]line Смена: 533 ФФД: 1.0 [09:05:26]line ЗНМ: 0300000091 [09:05:26]line РНМ: 0000000000091685 [09:05:26]line Версия ККМ: 001 [09:05:26]line ФМ: 0000000000871839 [09:05:26]line ФД: 227259 [09:05:26]line ФПД: 128791841762293 [09:05:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T090529&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227259&fm=128791841762293&tin=02508201610067®Number=0000000000091685&sum=50000 [09:05:27]Connected sock=11 [09:05:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 4A 0E 07 01 A6 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 D9 C7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BB 77 03 00 35 04 06 00 75 22 AF FA 6B F5 D8 53 7A 84 6D 48 57 68 [09:05:27]written 0, free lines is 4095 [09:05: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 33 39 4F 00 00 00 0F D4 47 00 C6 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 33 39 10 04 04 00 BB 77 03 00 F4 03 04 00 D8 72 14 67 B6 04 01 00 00 7D 60 D6 4C 46 F6 0F 83 [09:05:27]CommunicateWithHost err = 0 [09:05:27]CheckOFDResponse [09:05:27]1017 (14) - 77093643461234 [09:05:27]1041 (16) - 0000000000871839 [09:05:27]1040 (4) - 227259 [09:05:27]1012 (4) - 20.10.2024 03:02 [09:05:27]1206 (1) - 0 [09:05:27]OFD Sender: Remove packet 227259 [09:05:27]ProducePacketName [09:05:27]name=ofd_packets/00227259 [09:05:27]NVStorageDeleteData [09:05:27]Write to MH i2c: 01 00 00 71 35 A6 [09:05:27]Write i2c OK [09:05:27]MH_I2C_Read... [09:05:27]Read from MH i2c: 01 [09:05:27]MH_I2C_Read... [09:05:27]Read from MH i2c: 01 07 00 [09:05:27]MH_I2C_Read... [09:05:27]Read from MH i2c: 01 07 00 71 35 00 00 00 00 00 02 0D BC [09:05:27]RasterBufferAndPrint [09:05:27]line [09:05:27]line [09:05:27]line [09:05:27]line [09:05:27]line [09:05:27]written 0, free lines is 3336 [09:05:27]process_action close_receipt done [09:05:27]requested_data is exist [09:05:27]produce_requested_data [09:05:27]requested_item fm.sn is exist - process it [09:05:27]wFMCommunicate request_size=4 [09:05:27]MH_SAM_APDU [09:05:27]CAPDU: 80 11 00 00 [09:05:27]Write to MH i2c: E2 08 00 78 35 80 11 00 00 00 00 00 00 27 [09:05:27]Write i2c OK [09:05:27]MH_I2C_Read... [09:05:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:05:27]Read from MH i2c: E2 [09:05:27]MH_I2C_Read... [09:05:27]Read from MH i2c: E2 17 00 [09:05:27]MH_I2C_Read... [09:05:27]Read from MH i2c: E2 17 00 78 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 7E [09:05:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:05:27]wFMCommunicate OK [09:05:27]requested_item fd.num is exist - process it [09:05:27]SAM_PROTO_GetFieldsCounters [09:05:27]wFMCommunicate request_size=4 [09:05:27]MH_SAM_APDU [09:05:27]CAPDU: 80 13 00 00 [09:05:27]Write to MH i2c: E2 08 00 79 35 80 13 00 00 00 00 00 00 2A [09:05:27]Write i2c OK [09:05:27]MH_I2C_Read... [09:05:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:05:27]Read from MH i2c: E2 [09:05:27]MH_I2C_Read... [09:05:27]Read from MH i2c: E2 62 00 [09:05:27]MH_I2C_Read... [09:05:27]Read from MH i2c: E2 62 00 79 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 BB 77 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [09:05: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 BB 77 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:05:27]wFMCommunicate OK [09:05:27]SAM_PROTO_GetFieldsCounters done [09:05:27]requested_item shift.num is exist - process it [09:05:27]requested_item shift.opened is exist - process it [09:05:27]req_shift_opened [09:05:27]FM_GetShiftState [09:05:27]SAM_PROTO_GetShiftState [09:05:27]wFMCommunicate request_size=4 [09:05:27]MH_SAM_APDU [09:05:27]CAPDU: 80 13 01 00 [09:05:27]Write to MH i2c: E2 08 00 7A 35 80 13 01 00 00 00 00 00 2C [09:05:27]Write i2c OK [09:05:27]MH_I2C_Read... [09:05:27]OFD Sender: No OFD packet to send [09:05:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:05:27]Read from MH i2c: E2 [09:05:27]MH_I2C_Read... [09:05:27]Read from MH i2c: E2 0E 00 [09:05:27]MH_I2C_Read... [09:05:27]Read from MH i2c: E2 0E 00 7A 35 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 46 [09:05:27]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:05:27]wFMCommunicate OK [09:05:27]SAM_PROTO_GetShiftState done [09:05:27]FM_GetShiftState done [09:05:27]req_shift_opened done [09:05:27]requested_item shift.open_date is exist - process it [09:05:27]req_shift_open_date [09:05:27]req_shift_open_date done [09:05:27]produce_requested_data done [09:05:27]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227259,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [09:05:27]process_action_free close_receipt [09:05:27]json_value_free [09:05:27]json_value_free done [09:05:27]process_json_proto returns [09:05:27]Send response to host [09:05:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227259,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [09:05:27]free response buf [09:05:27]execute_script done [09:05:27]execute_script returns [09:05:27]free content buf [09:05:27]Sock 8.Close socket [09:05:27]Sock 8.Thread stoped [09:05:32]OFD Sender: No OFD packet to send [09:05:37]OFD Sender: No OFD packet to send [09:05:42]OFD Sender: No OFD packet to send [09:05:47]OFD Sender: No OFD packet to send [09:05:52]OFD Sender: No OFD packet to send [09:05:57]OFD Sender: No OFD packet to send [09:06:02]OFD Sender: No OFD packet to send [09:06:07]OFD Sender: No OFD packet to send [09:06:12]OFD Sender: No OFD packet to send [09:06:16]accept exits with 9 [09:06:16]New connection [09:06:16]New thread 3066821988 created [09:06:16]Thread 3066965348 joined [09:06:16]Waiting for new connection... [09:06:16] Sock 9.Parse request [09:06:16]Sock 9.Check first char [09:06:16]Sock 9.First char is OK [09:06:16]request: POST /json_proto HTTP/1.0 [09:06:16]Method: POST [09:06:16]URL: /json_proto [09:06:16]Method is POST - this is cgi request [09:06:16]url: /json_proto [09:06:16]query_string will be loaded in cgi processing [09:06:16]execute_cgi json_proto POST (null) [09:06:16]execute_cgi path=json_proto method=POST [09:06:16]POST find Content-Length [09:06:16]Host: 172.17.44.195:8080 [09:06:16]Content-Length: 793 [09:06:16]Content-Type: application/json [09:06:16] [09:06:16]POST finish read [09:06:16]Found Content-Length = 793 [09:06:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962726", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00886", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:16]execute_script... [09:06: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)1962726", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00886", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:16]POST & json_proto [09:06:16]process_json_proto [09:06:16]json parsed OK: [09:06:16]protocol is kg_v1.0 [09:06:16]action value=close_receipt [09:06:16]process_action close_receipt [09:06:16]cmd_close_receipt [09:06:16]MH_GetDate [09:06:16]Write to MH i2c: F0 00 00 7B 35 9F [09:06:16]Write i2c OK [09:06:16]MH_I2C_Read... [09:06:16]Read from MH i2c: F0 [09:06:16]MH_I2C_Read... [09:06:16]Read from MH i2c: F0 09 00 [09:06:16]MH_I2C_Read... [09:06:16]Read from MH i2c: F0 09 00 7B 35 00 0D C8 14 67 82 C9 CF 66 78 [09:06:16]GetLastDocTimeStamp 1729415129 [09:06:16]current date 1729415181 [09:06:16]FM_GetShiftState [09:06:16]SAM_PROTO_GetShiftState [09:06:16]wFMCommunicate request_size=4 [09:06:16]MH_SAM_APDU [09:06:16]CAPDU: 80 13 01 00 [09:06:16]Write to MH i2c: E2 08 00 7C 35 80 13 01 00 00 00 00 00 2E [09:06:16]Write i2c OK [09:06:16]MH_I2C_Read... [09:06:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:17]Read from MH i2c: E2 [09:06:17]MH_I2C_Read... [09:06:17]Read from MH i2c: E2 0E 00 [09:06:17]MH_I2C_Read... [09:06:17]Read from MH i2c: E2 0E 00 7C 35 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 48 [09:06:17]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:06:17]wFMCommunicate OK [09:06:17]SAM_PROTO_GetShiftState done [09:06:17]FM_GetShiftState done [09:06:17]opened in 1729383750 [09:06:17]opened+sec_in_day 1729470150 [09:06:17]quantity*price = 0 [09:06:17]sum+1 = 1 [09:06:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 108 20.10.2024 09:06 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Талоны: Топливная Карта 00886 ФМ: 0000000000871839 ФД: 227260 ФПД: 156499508106890 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T090621&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227260&fm=156499508106890&tin=02508201610067®Number=0000000000091685&sum=0 [09:06:18]StoreToDocumentArchive [09:06:18]shift 533 fd 227260 [09:06:18]save to /storage/0533/doc_00227260 [09:06:18]save last doc name /storage/0533/doc_00227260 to /storage/kkm_last_doc_name [09:06:18]save OK [09:06:18]Clear old archive folders... [09:06:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:06:18]tlvbuf is 004F97B0 [09:06:18]SAM_PROTO_ClearQueue [09:06:18]wFMCommunicate request_size=4 [09:06:18]MH_SAM_APDU [09:06:18]CAPDU: 80 09 00 00 [09:06:18]Write to MH i2c: E2 08 00 89 35 80 09 00 00 00 00 00 00 30 [09:06:18]Write i2c OK [09:06:18]MH_I2C_Read... [09:06:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:06:18]Read from MH i2c: E2 [09:06:18]MH_I2C_Read... [09:06:18]Read from MH i2c: E2 03 00 [09:06:18]MH_I2C_Read... [09:06:18]Read from MH i2c: E2 03 00 89 35 00 90 00 32 [09:06:18]RAPDU: 90 00 [09:06:18]wFMCommunicate OK [09:06:18]SAM_PROTO_ClearQueue done [09:06:18]KKMCreateOFDPacket [09:06:18]OFDProtocolAddRootSTLVToBuf [09:06:18]FM_MakeSignedData [09:06:18]FM_MakeSignedData [09:06:18]SAM_PROTO_SignData [09:06:18]wFMCommunicate request_size=4 [09:06:18]MH_SAM_APDU [09:06:18]CAPDU: 80 0D 01 02 [09:06:18]Write to MH i2c: E2 08 00 8A 35 80 0D 01 02 00 00 00 00 38 [09:06:18]Write i2c OK [09:06:18]MH_I2C_Read... [09:06:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:06:18]Read from MH i2c: E2 [09:06:18]MH_I2C_Read... [09:06:18]Read from MH i2c: E2 03 00 [09:06:18]MH_I2C_Read... [09:06:18]Read from MH i2c: E2 03 00 8A 35 00 90 00 33 [09:06:18]RAPDU: 90 00 [09:06:18]wFMCommunicate OK [09:06:18]wFMCommunicate request_size=255 [09:06:18]MH_SAM_APDU [09:06:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 6C 00 00 00 F4 03 04 00 0D C8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BC 77 03 00 35 04 06 00 8E [09:06:18]Write to MH i2c: E2 02 01 8B 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 6C 00 00 00 F4 03 04 00 0D C8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BC 77 03 00 35 04 06 00 8E 00 00 18 [09:06:18]Write i2c OK [09:06:18]MH_I2C_Read... [09:06:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:18]Read from MH i2c: E2 [09:06:18]MH_I2C_Read... [09:06:18]Read from MH i2c: E2 03 00 [09:06:18]MH_I2C_Read... [09:06:18]Read from MH i2c: E2 03 00 8B 35 00 90 00 34 [09:06:18]RAPDU: 90 00 [09:06:18]wFMCommunicate OK [09:06:18]wFMCommunicate request_size=10 [09:06:18]MH_SAM_APDU [09:06:18]CAPDU: 80 0D 02 02 05 55 E1 96 96 8A [09:06:18]Write to MH i2c: E2 0D 00 8C 35 80 0D 02 02 05 00 55 E1 96 96 8A 00 00 31 [09:06:18]Write i2c OK [09:06:18]MH_I2C_Read... [09:06:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:18]Read from MH i2c: E2 [09:06:18]MH_I2C_Read... [09:06:18]Read from MH i2c: E2 03 00 [09:06:18]MH_I2C_Read... [09:06:18]Read from MH i2c: E2 03 00 8C 35 00 90 00 35 [09:06:18]RAPDU: 90 00 [09:06:18]wFMCommunicate OK [09:06:18]wFMCommunicate request_size=4 [09:06:18]MH_SAM_APDU [09:06:18]CAPDU: 80 0D 03 02 [09:06:18]Write to MH i2c: E2 08 00 8D 35 80 0D 03 02 00 00 00 00 3D [09:06:18]Write i2c OK [09:06:18]MH_I2C_Read... [09:06:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:06:18]Read from MH i2c: E2 [09:06:18]MH_I2C_Read... [09:06:18]Read from MH i2c: E2 0B 00 [09:06:18]MH_I2C_Read... [09:06:18]Read from MH i2c: E2 0B 00 8D 35 00 0A D8 60 CF 6A 90 AB 47 90 00 3B [09:06:18]RAPDU: 0A D8 60 CF 6A 90 AB 47 90 00 [09:06:18]wFMCommunicate OK [09:06:18]SAM_PROTO_SignData done [09:06:18]FM_MakeSignedData done [09:06:18]CreateOFDProtocolMessage [09:06:18]wFMCommunicate request_size=4 [09:06:18]MH_SAM_APDU [09:06:18]CAPDU: 80 11 00 00 [09:06:18]Write to MH i2c: E2 08 00 8E 35 80 11 00 00 00 00 00 00 3D [09:06:18]Write i2c OK [09:06:18]MH_I2C_Read... [09:06:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:18]Read from MH i2c: E2 [09:06:18]MH_I2C_Read... [09:06:18]Read from MH i2c: E2 17 00 [09:06:18]MH_I2C_Read... [09:06:18]Read from MH i2c: E2 17 00 8E 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 94 [09:06:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:06:18]wFMCommunicate OK [09:06:18]CreateOFDProtocolMessage done [09:06:18]OFDSenderStorePacket 227260 [09:06:18]StoreOFDPacket docnum=227260 [09:06:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 27 7D 07 01 C4 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 6C 00 00 00 F4 03 04 00 0D C8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BC 77 03 00 35 04 06 00 8E 55 E1 96 96 8A 0A D8 60 CF 6A 90 AB 47 [09:06:18]CheckFolder [09:06:18]dirname=/storage/ofd_packets [09:06:18]CheckFolder done [09:06:18]ProducePacketName [09:06:18]name=ofd_packets/00227260 [09:06:18]NVStorageSaveData ofd_packets/00227260 [09:06:18]File name is /storage/ofd_packets/00227260 [09:06:18]Write 301 bytes [09:06:18]NVStorageSaveData done [09:06:18]OFDSenderStorePacket done [09:06:18]KKMCreateOFDPacket done [09:06:18]NVStorageSaveData kkm_last_timestamp [09:06:18]File name is /storage/kkm_last_timestamp [09:06:18]Write 4 bytes [09:06:18]NVStorageSaveData done [09:06:18]ExternCall_PrintAddStr [09:06:18]wPrintStart [09:06:18]Write to MH i2c: 01 00 00 8F 35 C4 [09:06:18]Write i2c OK [09:06:18]MH_I2C_Read... [09:06:18]Read from MH i2c: 01 [09:06:18]MH_I2C_Read... [09:06:18]Read from MH i2c: 01 07 00 [09:06:18]MH_I2C_Read... [09:06:18]Read from MH i2c: 01 07 00 8F 35 00 00 00 00 00 FF 0F D9 [09:06:18]RasterBufferAndPrint [09:06:18]line Счет N : (1)1962726 [09:06:18]line ИНН: 02508201610067 [09:06:18]line Контрольно-Кассовый Чек [09:06:18]line ПРОДАЖА [09:06:18]line ТРК (МРК, ГНК) : 53 [09:06:18]line Товар: 2710124130 [09:06:18]line Аи-92-К-5 [09:06:18]line 10.000 * 0.00 [09:06:18]line = 0.00 [09:06:18]line НДС 12% НСП 1% [09:06:18]line > о реализуемом товаре [09:06:18]line ИТОГО: 0.00 [09:06:18]line НСП 1% : 0.00 [09:06:18]line НДС 12% : 0.00 [09:06:18]line Наличными: 0.00 [09:06:18]line Безнал.: 0.00 [09:06:18]line Место: АЗС № 133 "Партнер Нефть" [09:06:18]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:06:18]line СНО: Общий режим [09:06:18]line Чек 108 20.10.2024 09:06 [09:06:18]line Смена: 533 ФФД: 1.0 [09:06:18]line ЗНМ: 0300000091 [09:06:18]line РНМ: 0000000000091685 [09:06:18]line Версия ККМ: 001 [09:06:18]line Талоны: Топливная Карта [09:06:18]line 00886 [09:06:18]line ФМ: 0000000000871839 [09:06:18]line ФД: 227260 [09:06:18]line ФПД: 156499508106890 [09:06:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T090621&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227260&fm=156499508106890&tin=02508201610067®Number=0000000000091685&sum=0 [09:06:18]written 0, free lines is 4095 [09:06:18]OFD Sender: Processing packet 227260 [packets to send 38, broken 37] [09:06:18]ProducePacketName [09:06:18]name=ofd_packets/00227260 [09:06:19]OFD Sender: To server: pG, [09:06:19]CommunicateWithHost lk.salyk.kg:30040 [09:06:19]ConnectInit lk.salyk.kg [09:06:19]Write to MH i2c: 01 00 00 B8 35 ED [09:06:19]Write i2c OK [09:06:19]MH_I2C_Read... [09:06:19]Read from MH i2c: 01 [09:06:19]MH_I2C_Read... [09:06:19]Read from MH i2c: 01 07 00 [09:06:19]MH_I2C_Read... [09:06:19]Read from MH i2c: 01 07 00 B8 35 00 00 00 00 00 18 0D 19 [09:06:19]RasterBufferAndPrint [09:06:19]line [09:06:19]line [09:06:19]line [09:06:19]line [09:06:19]line [09:06:19]Connected sock=10 [09:06: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 33 39 0F 01 00 00 27 7D 07 01 C4 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 6C 00 00 00 F4 03 04 00 0D C8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BC 77 03 00 35 04 06 00 8E 55 E1 96 96 8A 0A D8 60 CF 6A 90 AB 47 [09:06:19]written 0, free lines is 3358 [09:06:19]process_action close_receipt done [09:06:19]requested_data is exist [09:06:19]produce_requested_data [09:06:19]requested_item fm.sn is exist - process it [09:06:19]wFMCommunicate request_size=4 [09:06:19]MH_SAM_APDU [09:06:19]CAPDU: 80 11 00 00 [09:06:19]Write to MH i2c: E2 08 00 BF 35 80 11 00 00 00 00 00 00 6E [09:06:19]Write i2c OK [09:06:19]MH_I2C_Read... [09:06:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:19]Read from MH i2c: E2 [09:06:19]MH_I2C_Read... [09:06:19]Read from MH i2c: E2 17 00 [09:06:19]MH_I2C_Read... [09:06:19]Read from MH i2c: E2 17 00 BF 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C5 [09:06:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:06:19]wFMCommunicate OK [09:06:19]requested_item fd.num is exist - process it [09:06:19]SAM_PROTO_GetFieldsCounters [09:06:19]wFMCommunicate request_size=4 [09:06:19]MH_SAM_APDU [09:06:19]CAPDU: 80 13 00 00 [09:06:19]Write to MH i2c: E2 08 00 C0 35 80 13 00 00 00 00 00 00 71 [09:06:19]Write i2c OK [09:06:19]MH_I2C_Read... [09:06:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:06:19]Read from MH i2c: E2 [09:06:19]MH_I2C_Read... [09:06:19]Read from MH i2c: E2 62 00 [09:06:19]MH_I2C_Read... [09:06:19]Read from MH i2c: E2 62 00 C0 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 BC 77 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [09:06: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 BC 77 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:06:19]wFMCommunicate OK [09:06:19]SAM_PROTO_GetFieldsCounters done [09:06:19]requested_item shift.num is exist - process it [09:06:19]requested_item shift.opened is exist - process it [09:06:19]req_shift_opened [09:06:19]FM_GetShiftState [09:06:19]SAM_PROTO_GetShiftState [09:06:19]wFMCommunicate request_size=4 [09:06:19]MH_SAM_APDU [09:06:19]CAPDU: 80 13 01 00 [09:06:19]Write to MH i2c: E2 08 00 C1 35 80 13 01 00 00 00 00 00 73 [09:06:19]Write i2c OK [09:06:19]MH_I2C_Read... [09:06: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 33 39 4F 00 00 00 53 DD 47 00 D6 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 33 39 10 04 04 00 BC 77 03 00 F4 03 04 00 0C 73 14 67 B6 04 01 00 00 61 AF 0E 78 58 63 68 F0 [09:06:19]CommunicateWithHost err = 0 [09:06:19]CheckOFDResponse [09:06:19]1017 (14) - 77093643461234 [09:06:19]1041 (16) - 0000000000871839 [09:06:19]1040 (4) - 227260 [09:06:19]1012 (4) - 20.10.2024 03:03 [09:06:19]1206 (1) - 0 [09:06:19]OFD Sender: Remove packet 227260 [09:06:19]ProducePacketName [09:06:19]name=ofd_packets/00227260 [09:06:19]NVStorageDeleteData [09:06:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:19]Read from MH i2c: E2 [09:06:19]MH_I2C_Read... [09:06:19]Read from MH i2c: E2 0E 00 [09:06:19]MH_I2C_Read... [09:06:19]Read from MH i2c: E2 0E 00 C1 35 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 8D [09:06:19]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:06:19]wFMCommunicate OK [09:06:19]SAM_PROTO_GetShiftState done [09:06:19]FM_GetShiftState done [09:06:19]req_shift_opened done [09:06:19]requested_item shift.open_date is exist - process it [09:06:19]req_shift_open_date [09:06:19]req_shift_open_date done [09:06:19]produce_requested_data done [09:06:19]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227260,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [09:06:19]process_action_free close_receipt [09:06:19]json_value_free [09:06:19]json_value_free done [09:06:19]process_json_proto returns [09:06:19]Send response to host [09:06:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227260,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [09:06:19]free response buf [09:06:19]execute_script done [09:06:19]execute_script returns [09:06:19]free content buf [09:06:19]Sock 9.Close socket [09:06:19]Sock 9.Thread stoped [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:18]accept exits with 8 [09:07:18]New connection [09:07:18]New thread 3066965348 created [09:07:18]Thread 3066821988 joined [09:07:18]Waiting for new connection... [09:07:18] Sock 8.Parse request [09:07:18]Sock 8.Check first char [09:07:18]Sock 8.First char is OK [09:07:18]request: POST /json_proto HTTP/1.0 [09:07:18]Method: POST [09:07:18]URL: /json_proto [09:07:18]Method is POST - this is cgi request [09:07:18]url: /json_proto [09:07:18]query_string will be loaded in cgi processing [09:07:18]execute_cgi json_proto POST (null) [09:07:18]execute_cgi path=json_proto method=POST [09:07:18]POST find Content-Length [09:07:18]Host: 172.17.44.195:8080 [09:07:18]Content-Length: 678 [09:07:18]Content-Type: application/json [09:07:18] [09:07:18]POST finish read [09:07:18]Found Content-Length = 678 [09:07:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962728", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:07:18]execute_script... [09:07:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962728", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:07:18]POST & json_proto [09:07:18]process_json_proto [09:07:18]json parsed OK: [09:07:18]protocol is kg_v1.0 [09:07:18]action value=close_receipt [09:07:18]process_action close_receipt [09:07:18]cmd_close_receipt [09:07:18]MH_GetDate [09:07:18]Write to MH i2c: F0 00 00 C2 35 E6 [09:07:18]Write i2c OK [09:07:18]MH_I2C_Read... [09:07:18]Read from MH i2c: F0 [09:07:18]MH_I2C_Read... [09:07:18]Read from MH i2c: F0 09 00 [09:07:18]MH_I2C_Read... [09:07:18]Read from MH i2c: F0 09 00 C2 35 00 4A C8 14 67 82 C9 CF 66 FC [09:07:18]GetLastDocTimeStamp 1729415181 [09:07:18]current date 1729415242 [09:07:18]FM_GetShiftState [09:07:18]SAM_PROTO_GetShiftState [09:07:18]wFMCommunicate request_size=4 [09:07:18]MH_SAM_APDU [09:07:18]CAPDU: 80 13 01 00 [09:07:18]Write to MH i2c: E2 08 00 C3 35 80 13 01 00 00 00 00 00 75 [09:07:18]Write i2c OK [09:07:18]MH_I2C_Read... [09:07:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:07:18]Read from MH i2c: E2 [09:07:18]MH_I2C_Read... [09:07:18]Read from MH i2c: E2 0E 00 [09:07:18]MH_I2C_Read... [09:07:18]Read from MH i2c: E2 0E 00 C3 35 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 8F [09:07:18]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:07:18]wFMCommunicate OK [09:07:18]SAM_PROTO_GetShiftState done [09:07:18]FM_GetShiftState done [09:07:18]opened in 1729383750 [09:07:18]opened+sec_in_day 1729470150 [09:07:18]quantity*price = 50041 [09:07:18]sum+1 = 50042 [09:07:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 109 20.10.2024 09:07 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227261 ФПД: 76764952140674 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T090722&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227261&fm=76764952140674&tin=02508201610067®Number=0000000000091685&sum=50000 [09:07:19]StoreToDocumentArchive [09:07:19]shift 533 fd 227261 [09:07:19]save to /storage/0533/doc_00227261 [09:07:19]save last doc name /storage/0533/doc_00227261 to /storage/kkm_last_doc_name [09:07:19]save OK [09:07:19]Clear old archive folders... [09:07:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:07:19]tlvbuf is 005D90B0 [09:07:19]SAM_PROTO_ClearQueue [09:07:19]wFMCommunicate request_size=4 [09:07:19]MH_SAM_APDU [09:07:19]CAPDU: 80 09 00 00 [09:07:19]Write to MH i2c: E2 08 00 D0 35 80 09 00 00 00 00 00 00 77 [09:07:19]Write i2c OK [09:07:19]MH_I2C_Read... [09:07:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:07:19]Read from MH i2c: E2 [09:07:19]MH_I2C_Read... [09:07:19]Read from MH i2c: E2 03 00 [09:07:19]MH_I2C_Read... [09:07:19]Read from MH i2c: E2 03 00 D0 35 00 90 00 79 [09:07:19]RAPDU: 90 00 [09:07:19]wFMCommunicate OK [09:07:19]SAM_PROTO_ClearQueue done [09:07:19]KKMCreateOFDPacket [09:07:19]OFDProtocolAddRootSTLVToBuf [09:07:19]FM_MakeSignedData [09:07:19]FM_MakeSignedData [09:07:19]SAM_PROTO_SignData [09:07:19]wFMCommunicate request_size=4 [09:07:19]MH_SAM_APDU [09:07:19]CAPDU: 80 0D 01 02 [09:07:19]Write to MH i2c: E2 08 00 D1 35 80 0D 01 02 00 00 00 00 7F [09:07:19]Write i2c OK [09:07:19]MH_I2C_Read... [09:07:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:07:19]Read from MH i2c: E2 [09:07:19]MH_I2C_Read... [09:07:19]Read from MH i2c: E2 03 00 [09:07:19]MH_I2C_Read... [09:07:19]Read from MH i2c: E2 03 00 D1 35 00 90 00 7A [09:07:19]RAPDU: 90 00 [09:07:19]wFMCommunicate OK [09:07:19]wFMCommunicate request_size=255 [09:07:19]MH_SAM_APDU [09:07:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 4A C8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BD 77 03 00 35 04 06 00 45 [09:07:19]Write to MH i2c: E2 02 01 D2 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 4A C8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BD 77 03 00 35 04 06 00 45 00 00 A3 [09:07:19]Write i2c OK [09:07:19]MH_I2C_Read... [09:07:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:07:19]Read from MH i2c: E2 [09:07:19]MH_I2C_Read... [09:07:19]Read from MH i2c: E2 03 00 [09:07:19]MH_I2C_Read... [09:07:19]Read from MH i2c: E2 03 00 D2 35 00 90 00 7B [09:07:19]RAPDU: 90 00 [09:07:19]wFMCommunicate OK [09:07:19]wFMCommunicate request_size=10 [09:07:19]MH_SAM_APDU [09:07:19]CAPDU: 80 0D 02 02 05 D1 3B B4 1B 82 [09:07:19]Write to MH i2c: E2 0D 00 D3 35 80 0D 02 02 05 00 D1 3B B4 1B 82 00 00 E9 [09:07:19]Write i2c OK [09:07:19]MH_I2C_Read... [09:07:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:07:19]Read from MH i2c: E2 [09:07:19]MH_I2C_Read... [09:07:19]Read from MH i2c: E2 03 00 [09:07:19]MH_I2C_Read... [09:07:19]Read from MH i2c: E2 03 00 D3 35 00 90 00 7C [09:07:19]RAPDU: 90 00 [09:07:19]wFMCommunicate OK [09:07:19]wFMCommunicate request_size=4 [09:07:19]MH_SAM_APDU [09:07:19]CAPDU: 80 0D 03 02 [09:07:19]Write to MH i2c: E2 08 00 D4 35 80 0D 03 02 00 00 00 00 84 [09:07:19]Write i2c OK [09:07:19]MH_I2C_Read... [09:07:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:07:19]Read from MH i2c: E2 [09:07:19]MH_I2C_Read... [09:07:19]Read from MH i2c: E2 0B 00 [09:07:19]MH_I2C_Read... [09:07:19]Read from MH i2c: E2 0B 00 D4 35 00 6D DD 07 D6 B8 34 C9 3B 90 00 9C [09:07:19]RAPDU: 6D DD 07 D6 B8 34 C9 3B 90 00 [09:07:19]wFMCommunicate OK [09:07:19]SAM_PROTO_SignData done [09:07:19]FM_MakeSignedData done [09:07:19]CreateOFDProtocolMessage [09:07:19]wFMCommunicate request_size=4 [09:07:19]MH_SAM_APDU [09:07:19]CAPDU: 80 11 00 00 [09:07:19]Write to MH i2c: E2 08 00 D5 35 80 11 00 00 00 00 00 00 84 [09:07:19]Write i2c OK [09:07:19]MH_I2C_Read... [09:07:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:07:19]Read from MH i2c: E2 [09:07:19]MH_I2C_Read... [09:07:19]Read from MH i2c: E2 17 00 [09:07:19]MH_I2C_Read... [09:07:19]Read from MH i2c: E2 17 00 D5 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 DB [09:07:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:07:19]wFMCommunicate OK [09:07:19]CreateOFDProtocolMessage done [09:07:19]OFDSenderStorePacket 227261 [09:07:19]StoreOFDPacket docnum=227261 [09:07:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 16 B9 07 01 A8 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 4A C8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BD 77 03 00 35 04 06 00 45 D1 3B B4 1B 82 6D DD 07 D6 B8 34 C9 3B [09:07:19]CheckFolder [09:07:19]dirname=/storage/ofd_packets [09:07:19]CheckFolder done [09:07:19]ProducePacketName [09:07:19]name=ofd_packets/00227261 [09:07:19]NVStorageSaveData ofd_packets/00227261 [09:07:19]File name is /storage/ofd_packets/00227261 [09:07:19]Write 301 bytes [09:07:19]NVStorageSaveData done [09:07:19]OFDSenderStorePacket done [09:07:19]KKMCreateOFDPacket done [09:07:19]NVStorageSaveData kkm_last_timestamp [09:07:19]File name is /storage/kkm_last_timestamp [09:07:19]Write 4 bytes [09:07:19]NVStorageSaveData done [09:07:19]ExternCall_PrintAddStr [09:07:19]wPrintStart [09:07:19]Write to MH i2c: 01 00 00 D6 35 0B [09:07:19]Write i2c OK [09:07:19]MH_I2C_Read... [09:07:19]Read from MH i2c: 01 [09:07:19]MH_I2C_Read... [09:07:19]Read from MH i2c: 01 07 00 [09:07:19]MH_I2C_Read... [09:07:19]Read from MH i2c: 01 07 00 D6 35 00 00 00 00 00 FF 0F 20 [09:07:19]RasterBufferAndPrint [09:07:19]line Счет N : (1)1962728 [09:07:19]line ИНН: 02508201610067 [09:07:19]line Контрольно-Кассовый Чек [09:07:19]line ПРОДАЖА [09:07:19]line ТРК (МРК, ГНК) : 63 [09:07:19]line Товар: 2710124130 [09:07:19]line Аи-92-К-5 [09:07:19]line 7.480 * 66.90 [09:07:19]line = 500.41 [09:07:19]line НДС 12% НСП 1% [09:07:19]line > о реализуемом товаре [09:07:19]line ОКРУГЛЕНИЕ: -0.41 [09:07:19]line ИТОГО: 500.00 [09:07:19]line Внесено: 500.00 [09:07:19]line СДАЧА: 0.00 [09:07:19]line НСП 1% : 4.43 [09:07:19]line НДС 12% : 53.14 [09:07:19]line Наличными: 500.00 [09:07:19]line Безнал.: 0.00 [09:07:19]line Место: АЗС № 133 "Партнер Нефть" [09:07:19]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:07:19]line СНО: Общий режим [09:07:19]line Чек 109 20.10.2024 09:07 [09:07:19]line Смена: 533 ФФД: 1.0 [09:07:19]line ЗНМ: 0300000091 [09:07:19]line РНМ: 0000000000091685 [09:07:19]line Версия ККМ: 001 [09:07:19]line ФМ: 0000000000871839 [09:07:19]line ФД: 227261 [09:07:19]line ФПД: 76764952140674 [09:07:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T090722&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227261&fm=76764952140674&tin=02508201610067®Number=0000000000091685&sum=50000 [09:07:20]written 0, free lines is 4095 [09:07:20]OFD Sender: Processing packet 227261 [packets to send 38, broken 37] [09:07:20]ProducePacketName [09:07:20]name=ofd_packets/00227261 [09:07:20]OFD Sender: To server: pG, [09:07:20]CommunicateWithHost lk.salyk.kg:30040 [09:07:20]ConnectInit lk.salyk.kg [09:07:20]Connected sock=10 [09:07:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 16 B9 07 01 A8 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 4A C8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BD 77 03 00 35 04 06 00 45 D1 3B B4 1B 82 6D DD 07 D6 B8 34 C9 3B [09:07: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 33 39 4F 00 00 00 96 CC 47 00 36 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 33 39 10 04 04 00 BD 77 03 00 F4 03 04 00 49 73 14 67 B6 04 01 00 00 59 6C 8B D3 28 8A AC 29 [09:07:20]CommunicateWithHost err = 0 [09:07:20]CheckOFDResponse [09:07:20]1017 (14) - 77093643461234 [09:07:20]1041 (16) - 0000000000871839 [09:07:20]1040 (4) - 227261 [09:07:20]1012 (4) - 20.10.2024 03:04 [09:07:20]1206 (1) - 0 [09:07:20]OFD Sender: Remove packet 227261 [09:07:20]ProducePacketName [09:07:20]name=ofd_packets/00227261 [09:07:20]NVStorageDeleteData [09:07:20]Write to MH i2c: 01 00 00 00 36 36 [09:07:20]Write i2c OK [09:07:20]MH_I2C_Read... [09:07:20]Read from MH i2c: 01 [09:07:20]MH_I2C_Read... [09:07:20]Read from MH i2c: 01 07 00 [09:07:20]MH_I2C_Read... [09:07:20]Read from MH i2c: 01 07 00 00 36 00 00 00 00 00 FB 0C 44 [09:07:20]RasterBufferAndPrint [09:07:20]line [09:07:20]line [09:07:20]line [09:07:20]line [09:07:20]line [09:07:20]written 0, free lines is 3330 [09:07:20]process_action close_receipt done [09:07:20]requested_data is exist [09:07:20]produce_requested_data [09:07:20]requested_item fm.sn is exist - process it [09:07:20]wFMCommunicate request_size=4 [09:07:20]MH_SAM_APDU [09:07:20]CAPDU: 80 11 00 00 [09:07:20]Write to MH i2c: E2 08 00 07 36 80 11 00 00 00 00 00 00 B7 [09:07:20]Write i2c OK [09:07:20]MH_I2C_Read... [09:07:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:07:20]Read from MH i2c: E2 [09:07:20]MH_I2C_Read... [09:07:20]Read from MH i2c: E2 17 00 [09:07:20]MH_I2C_Read... [09:07:20]Read from MH i2c: E2 17 00 07 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 0E [09:07:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:07:20]wFMCommunicate OK [09:07:20]requested_item fd.num is exist - process it [09:07:20]SAM_PROTO_GetFieldsCounters [09:07:20]wFMCommunicate request_size=4 [09:07:20]MH_SAM_APDU [09:07:20]CAPDU: 80 13 00 00 [09:07:20]Write to MH i2c: E2 08 00 08 36 80 13 00 00 00 00 00 00 BA [09:07:20]Write i2c OK [09:07:20]MH_I2C_Read... [09:07:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:07:20]Read from MH i2c: E2 [09:07:20]MH_I2C_Read... [09:07:20]Read from MH i2c: E2 62 00 [09:07:20]MH_I2C_Read... [09:07:20]Read from MH i2c: E2 62 00 08 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 BD 77 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [09:07:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 BD 77 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:07:20]wFMCommunicate OK [09:07:20]SAM_PROTO_GetFieldsCounters done [09:07:20]requested_item shift.num is exist - process it [09:07:20]requested_item shift.opened is exist - process it [09:07:20]req_shift_opened [09:07:20]FM_GetShiftState [09:07:20]SAM_PROTO_GetShiftState [09:07:20]wFMCommunicate request_size=4 [09:07:20]MH_SAM_APDU [09:07:20]CAPDU: 80 13 01 00 [09:07:20]Write to MH i2c: E2 08 00 09 36 80 13 01 00 00 00 00 00 BC [09:07:20]Write i2c OK [09:07:20]MH_I2C_Read... [09:07:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:07:20]Read from MH i2c: E2 [09:07:20]MH_I2C_Read... [09:07:20]Read from MH i2c: E2 0E 00 [09:07:20]MH_I2C_Read... [09:07:20]Read from MH i2c: E2 0E 00 09 36 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 D6 [09:07:20]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:07:20]wFMCommunicate OK [09:07:20]SAM_PROTO_GetShiftState done [09:07:20]FM_GetShiftState done [09:07:20]req_shift_opened done [09:07:20]requested_item shift.open_date is exist - process it [09:07:20]req_shift_open_date [09:07:20]req_shift_open_date done [09:07:20]produce_requested_data done [09:07:20]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227261,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [09:07:20]process_action_free close_receipt [09:07:20]json_value_free [09:07:20]json_value_free done [09:07:20]process_json_proto returns [09:07:20]Send response to host [09:07:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227261,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [09:07:20]free response buf [09:07:20]execute_script done [09:07:20]execute_script returns [09:07:20]free content buf [09:07:20]Sock 8.Close socket [09:07:20]Sock 8.Thread stoped [09:07:20]OFD Sender: No OFD packet to send [09:07:25]OFD Sender: No OFD packet to send [09:07:30]OFD Sender: No OFD packet to send [09:07:35]OFD Sender: No OFD packet to send [09:07:40]OFD Sender: No OFD packet to send [09:07:45]OFD Sender: No OFD packet to send [09:07:49]accept exits with 9 [09:07:49]New connection [09:07:49]New thread 3066821988 created [09:07:49]Thread 3066965348 joined [09:07:49]Waiting for new connection... [09:07:49] Sock 9.Parse request [09:07:49]Sock 9.Check first char [09:07:49]Sock 9.First char is OK [09:07:49]request: POST /json_proto HTTP/1.0 [09:07:49]Method: POST [09:07:49]URL: /json_proto [09:07:49]Method is POST - this is cgi request [09:07:49]url: /json_proto [09:07:49]query_string will be loaded in cgi processing [09:07:49]execute_cgi json_proto POST (null) [09:07:49]execute_cgi path=json_proto method=POST [09:07:49]POST find Content-Length [09:07:49]Host: 172.17.44.195:8080 [09:07:49]Content-Length: 679 [09:07:49]Content-Type: application/json [09:07:49] [09:07:49]POST finish read [09:07:49]Found Content-Length = 679 [09:07:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962727", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:07:49]execute_script... [09:07: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)1962727", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:07:49]POST & json_proto [09:07:49]process_json_proto [09:07:49]json parsed OK: [09:07:49]protocol is kg_v1.0 [09:07:49]action value=close_receipt [09:07:49]process_action close_receipt [09:07:49]cmd_close_receipt [09:07:49]MH_GetDate [09:07:49]Write to MH i2c: F0 00 00 0A 36 2F [09:07:49]Write i2c OK [09:07:49]MH_I2C_Read... [09:07:49]Read from MH i2c: F0 [09:07:49]MH_I2C_Read... [09:07:49]Read from MH i2c: F0 09 00 [09:07:49]MH_I2C_Read... [09:07:49]Read from MH i2c: F0 09 00 0A 36 00 69 C8 14 67 82 C9 CF 66 64 [09:07:49]GetLastDocTimeStamp 1729415242 [09:07:49]current date 1729415273 [09:07:49]FM_GetShiftState [09:07:49]SAM_PROTO_GetShiftState [09:07:49]wFMCommunicate request_size=4 [09:07:49]MH_SAM_APDU [09:07:49]CAPDU: 80 13 01 00 [09:07:49]Write to MH i2c: E2 08 00 0B 36 80 13 01 00 00 00 00 00 BE [09:07:49]Write i2c OK [09:07:49]MH_I2C_Read... [09:07:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:07:49]Read from MH i2c: E2 [09:07:49]MH_I2C_Read... [09:07:49]Read from MH i2c: E2 0E 00 [09:07:49]MH_I2C_Read... [09:07:49]Read from MH i2c: E2 0E 00 0B 36 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 D8 [09:07:49]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:07:49]wFMCommunicate OK [09:07:49]SAM_PROTO_GetShiftState done [09:07:49]FM_GetShiftState done [09:07:49]opened in 1729383750 [09:07:49]opened+sec_in_day 1729470150 [09:07:49]quantity*price = 70044 [09:07:49]sum+1 = 70045 [09:07:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 110 20.10.2024 09:07 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227262 ФПД: 19338771155040 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T090753&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227262&fm=19338771155040&tin=02508201610067®Number=0000000000091685&sum=70000 [09:07:50]StoreToDocumentArchive [09:07:50]shift 533 fd 227262 [09:07:50]save to /storage/0533/doc_00227262 [09:07:50]save last doc name /storage/0533/doc_00227262 to /storage/kkm_last_doc_name [09:07:50]save OK [09:07:50]Clear old archive folders... [09:07:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:07:50]tlvbuf is B6F5B570 [09:07:50]SAM_PROTO_ClearQueue [09:07:50]wFMCommunicate request_size=4 [09:07:50]MH_SAM_APDU [09:07:50]CAPDU: 80 09 00 00 [09:07:50]Write to MH i2c: E2 08 00 18 36 80 09 00 00 00 00 00 00 C0 [09:07:50]Write i2c OK [09:07:50]MH_I2C_Read... [09:07:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:07:50]Read from MH i2c: E2 [09:07:50]MH_I2C_Read... [09:07:50]Read from MH i2c: E2 03 00 [09:07:50]MH_I2C_Read... [09:07:50]Read from MH i2c: E2 03 00 18 36 00 90 00 C2 [09:07:50]RAPDU: 90 00 [09:07:50]wFMCommunicate OK [09:07:50]SAM_PROTO_ClearQueue done [09:07:50]KKMCreateOFDPacket [09:07:50]OFDProtocolAddRootSTLVToBuf [09:07:50]FM_MakeSignedData [09:07:50]FM_MakeSignedData [09:07:50]SAM_PROTO_SignData [09:07:50]wFMCommunicate request_size=4 [09:07:50]MH_SAM_APDU [09:07:50]CAPDU: 80 0D 01 02 [09:07:50]Write to MH i2c: E2 08 00 19 36 80 0D 01 02 00 00 00 00 C8 [09:07:50]Write i2c OK [09:07:50]MH_I2C_Read... [09:07:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:07:50]Read from MH i2c: E2 [09:07:50]MH_I2C_Read... [09:07:50]Read from MH i2c: E2 03 00 [09:07:50]MH_I2C_Read... [09:07:50]Read from MH i2c: E2 03 00 19 36 00 90 00 C3 [09:07:50]RAPDU: 90 00 [09:07:50]wFMCommunicate OK [09:07:50]wFMCommunicate request_size=255 [09:07:50]MH_SAM_APDU [09:07:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 69 C8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BE 77 03 00 35 04 06 00 11 [09:07:50]Write to MH i2c: E2 02 01 1A 36 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 69 C8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BE 77 03 00 35 04 06 00 11 00 00 E9 [09:07:50]Write i2c OK [09:07:50]MH_I2C_Read... [09:07:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:07:50]Read from MH i2c: E2 [09:07:50]MH_I2C_Read... [09:07:50]Read from MH i2c: E2 03 00 [09:07:50]MH_I2C_Read... [09:07:50]Read from MH i2c: E2 03 00 1A 36 00 90 00 C4 [09:07:50]RAPDU: 90 00 [09:07:50]wFMCommunicate OK [09:07:50]wFMCommunicate request_size=10 [09:07:50]MH_SAM_APDU [09:07:50]CAPDU: 80 0D 02 02 05 96 A8 95 C8 60 [09:07:50]Write to MH i2c: E2 0D 00 1B 36 80 0D 02 02 05 00 96 A8 95 C8 60 00 00 D0 [09:07:50]Write i2c OK [09:07:50]MH_I2C_Read... [09:07:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:07:50]Read from MH i2c: E2 [09:07:50]MH_I2C_Read... [09:07:50]Read from MH i2c: E2 03 00 [09:07:50]MH_I2C_Read... [09:07:50]Read from MH i2c: E2 03 00 1B 36 00 90 00 C5 [09:07:50]RAPDU: 90 00 [09:07:50]wFMCommunicate OK [09:07:50]wFMCommunicate request_size=4 [09:07:50]MH_SAM_APDU [09:07:50]CAPDU: 80 0D 03 02 [09:07:50]Write to MH i2c: E2 08 00 1C 36 80 0D 03 02 00 00 00 00 CD [09:07:50]Write i2c OK [09:07:50]MH_I2C_Read... [09:07:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:07:51]Read from MH i2c: E2 [09:07:51]MH_I2C_Read... [09:07:51]Read from MH i2c: E2 0B 00 [09:07:51]MH_I2C_Read... [09:07:51]Read from MH i2c: E2 0B 00 1C 36 00 70 2E 44 92 5E C4 16 27 90 00 A1 [09:07:51]RAPDU: 70 2E 44 92 5E C4 16 27 90 00 [09:07:51]wFMCommunicate OK [09:07:51]SAM_PROTO_SignData done [09:07:51]FM_MakeSignedData done [09:07:51]CreateOFDProtocolMessage [09:07:51]wFMCommunicate request_size=4 [09:07:51]MH_SAM_APDU [09:07:51]CAPDU: 80 11 00 00 [09:07:51]Write to MH i2c: E2 08 00 1D 36 80 11 00 00 00 00 00 00 CD [09:07:51]Write i2c OK [09:07:51]MH_I2C_Read... [09:07:51]OFD Sender: No OFD packet to send [09:07:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:07:51]Read from MH i2c: E2 [09:07:51]MH_I2C_Read... [09:07:51]Read from MH i2c: E2 17 00 [09:07:51]MH_I2C_Read... [09:07:51]Read from MH i2c: E2 17 00 1D 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 24 [09:07:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:07:51]wFMCommunicate OK [09:07:51]CreateOFDProtocolMessage done [09:07:51]OFDSenderStorePacket 227262 [09:07:51]StoreOFDPacket docnum=227262 [09:07:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 C5 6F 07 01 E3 C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 69 C8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BE 77 03 00 35 04 06 00 11 96 A8 95 C8 60 70 2E 44 92 5E C4 16 27 [09:07:51]CheckFolder [09:07:51]dirname=/storage/ofd_packets [09:07:51]CheckFolder done [09:07:51]ProducePacketName [09:07:51]name=ofd_packets/00227262 [09:07:51]NVStorageSaveData ofd_packets/00227262 [09:07:51]File name is /storage/ofd_packets/00227262 [09:07:51]Write 301 bytes [09:07:51]NVStorageSaveData done [09:07:51]OFDSenderStorePacket done [09:07:51]KKMCreateOFDPacket done [09:07:51]NVStorageSaveData kkm_last_timestamp [09:07:51]File name is /storage/kkm_last_timestamp [09:07:51]Write 4 bytes [09:07:51]NVStorageSaveData done [09:07:51]ExternCall_PrintAddStr [09:07:51]wPrintStart [09:07:51]Write to MH i2c: 01 00 00 1E 36 54 [09:07:51]Write i2c OK [09:07:51]MH_I2C_Read... [09:07:51]Read from MH i2c: 01 [09:07:51]MH_I2C_Read... [09:07:51]Read from MH i2c: 01 07 00 [09:07:51]MH_I2C_Read... [09:07:51]Read from MH i2c: 01 07 00 1E 36 00 00 00 00 00 FF 0F 69 [09:07:51]RasterBufferAndPrint [09:07:51]line Счет N : (1)1962727 [09:07:51]line ИНН: 02508201610067 [09:07:51]line Контрольно-Кассовый Чек [09:07:51]line ПРОДАЖА [09:07:51]line ТРК (МРК, ГНК) : 33 [09:07:51]line Товар: 2710124130 [09:07:51]line Аи-92-К-5 [09:07:51]line 10.470 * 66.90 [09:07:51]line = 700.44 [09:07:51]line НДС 12% НСП 1% [09:07:51]line > о реализуемом товаре [09:07:51]line ОКРУГЛЕНИЕ: -0.44 [09:07:51]line ИТОГО: 700.00 [09:07:51]line Внесено: 700.00 [09:07:51]line СДАЧА: 0.00 [09:07:51]line НСП 1% : 6.20 [09:07:51]line НДС 12% : 74.38 [09:07:51]line Наличными: 700.00 [09:07:51]line Безнал.: 0.00 [09:07:51]line Место: АЗС № 133 "Партнер Нефть" [09:07:51]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:07:51]line СНО: Общий режим [09:07:51]line Чек 110 20.10.2024 09:07 [09:07:51]line Смена: 533 ФФД: 1.0 [09:07:51]line ЗНМ: 0300000091 [09:07:51]line РНМ: 0000000000091685 [09:07:51]line Версия ККМ: 001 [09:07:51]line ФМ: 0000000000871839 [09:07:51]line ФД: 227262 [09:07:51]line ФПД: 19338771155040 [09:07:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T090753&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227262&fm=19338771155040&tin=02508201610067®Number=0000000000091685&sum=70000 [09:07:51]OFD Sender: Processing packet 227262 [packets to send 38, broken 37] [09:07:51]ProducePacketName [09:07:51]name=ofd_packets/00227262 [09:07:51]OFD Sender: To server: pG, [09:07:51]CommunicateWithHost lk.salyk.kg:30040 [09:07:51]ConnectInit lk.salyk.kg [09:07:51]written 0, free lines is 4095 [09:07:51]Connected sock=10 [09:07: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 33 39 0F 01 00 00 C5 6F 07 01 E3 C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 69 C8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BE 77 03 00 35 04 06 00 11 96 A8 95 C8 60 70 2E 44 92 5E C4 16 27 [09:07: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 33 39 4F 00 00 00 02 AB 47 00 04 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 33 39 10 04 04 00 BE 77 03 00 F4 03 04 00 68 73 14 67 B6 04 01 00 00 E4 51 93 56 F0 BD 8F B1 [09:07:51]CommunicateWithHost err = 0 [09:07:51]CheckOFDResponse [09:07:51]1017 (14) - 77093643461234 [09:07:51]1041 (16) - 0000000000871839 [09:07:51]1040 (4) - 227262 [09:07:51]1012 (4) - 20.10.2024 03:05 [09:07:51]1206 (1) - 0 [09:07:51]OFD Sender: Remove packet 227262 [09:07:51]ProducePacketName [09:07:51]name=ofd_packets/00227262 [09:07:51]NVStorageDeleteData [09:07:51]Write to MH i2c: 01 00 00 48 36 7E [09:07:51]Write i2c OK [09:07:51]MH_I2C_Read... [09:07:51]Read from MH i2c: 01 [09:07:51]MH_I2C_Read... [09:07:51]Read from MH i2c: 01 07 00 [09:07:51]MH_I2C_Read... [09:07:51]Read from MH i2c: 01 07 00 48 36 00 00 00 00 00 02 0D 94 [09:07:51]RasterBufferAndPrint [09:07:51]line [09:07:51]line [09:07:51]line [09:07:51]line [09:07:51]line [09:07:51]written 0, free lines is 3336 [09:07:51]process_action close_receipt done [09:07:51]requested_data is exist [09:07:51]produce_requested_data [09:07:51]requested_item fm.sn is exist - process it [09:07:51]wFMCommunicate request_size=4 [09:07:51]MH_SAM_APDU [09:07:51]CAPDU: 80 11 00 00 [09:07:51]Write to MH i2c: E2 08 00 4F 36 80 11 00 00 00 00 00 00 FF [09:07:51]Write i2c OK [09:07:51]MH_I2C_Read... [09:07:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:07:51]Read from MH i2c: E2 [09:07:51]MH_I2C_Read... [09:07:51]Read from MH i2c: E2 17 00 [09:07:51]MH_I2C_Read... [09:07:51]Read from MH i2c: E2 17 00 4F 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 56 [09:07:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:07:51]wFMCommunicate OK [09:07:51]requested_item fd.num is exist - process it [09:07:51]SAM_PROTO_GetFieldsCounters [09:07:51]wFMCommunicate request_size=4 [09:07:51]MH_SAM_APDU [09:07:51]CAPDU: 80 13 00 00 [09:07:51]Write to MH i2c: E2 08 00 50 36 80 13 00 00 00 00 00 00 02 [09:07:51]Write i2c OK [09:07:51]MH_I2C_Read... [09:07:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:07:52]Read from MH i2c: E2 [09:07:52]MH_I2C_Read... [09:07:52]Read from MH i2c: E2 62 00 [09:07:52]MH_I2C_Read... [09:07:52]Read from MH i2c: E2 62 00 50 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 BE 77 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [09:07: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 BE 77 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:07:52]wFMCommunicate OK [09:07:52]SAM_PROTO_GetFieldsCounters done [09:07:52]requested_item shift.num is exist - process it [09:07:52]requested_item shift.opened is exist - process it [09:07:52]req_shift_opened [09:07:52]FM_GetShiftState [09:07:52]SAM_PROTO_GetShiftState [09:07:52]wFMCommunicate request_size=4 [09:07:52]MH_SAM_APDU [09:07:52]CAPDU: 80 13 01 00 [09:07:52]Write to MH i2c: E2 08 00 51 36 80 13 01 00 00 00 00 00 04 [09:07:52]Write i2c OK [09:07:52]MH_I2C_Read... [09:07:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:07:52]Read from MH i2c: E2 [09:07:52]MH_I2C_Read... [09:07:52]Read from MH i2c: E2 0E 00 [09:07:52]MH_I2C_Read... [09:07:52]Read from MH i2c: E2 0E 00 51 36 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 1E [09:07:52]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:07:52]wFMCommunicate OK [09:07:52]SAM_PROTO_GetShiftState done [09:07:52]FM_GetShiftState done [09:07:52]req_shift_opened done [09:07:52]requested_item shift.open_date is exist - process it [09:07:52]req_shift_open_date [09:07:52]req_shift_open_date done [09:07:52]produce_requested_data done [09:07:52]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227262,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [09:07:52]process_action_free close_receipt [09:07:52]json_value_free [09:07:52]json_value_free done [09:07:52]process_json_proto returns [09:07:52]Send response to host [09:07:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227262,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [09:07:52]free response buf [09:07:52]execute_script done [09:07:52]execute_script returns [09:07:52]free content buf [09:07:52]Sock 9.Close socket [09:07:52]Sock 9.Thread stoped [09:07:52]OFD Sender: No OFD packet to send [09:07:57]OFD Sender: No OFD packet to send [09:08:02]OFD Sender: No OFD packet to send [09:08:07]OFD Sender: No OFD packet to send [09:08:12]OFD Sender: No OFD packet to send [09:08:17]OFD Sender: No OFD packet to send [09:08:22]OFD Sender: No OFD packet to send [09:08:27]OFD Sender: No OFD packet to send [09:08:32]OFD Sender: No OFD packet to send [09:08:37]OFD Sender: No OFD packet to send [09:08:42]OFD Sender: No OFD packet to send [09:08:47]OFD Sender: No OFD packet to send [09:08:51]accept exits with 8 [09:08:51]New connection [09:08:51]New thread 3066965348 created [09:08:51]Thread 3066821988 joined [09:08:51]Waiting for new connection... [09:08:51] Sock 8.Parse request [09:08:51]Sock 8.Check first char [09:08:51]Sock 8.First char is OK [09:08:51]request: POST /json_proto HTTP/1.0 [09:08:51]Method: POST [09:08:51]URL: /json_proto [09:08:51]Method is POST - this is cgi request [09:08:51]url: /json_proto [09:08:51]query_string will be loaded in cgi processing [09:08:51]execute_cgi json_proto POST (null) [09:08:51]execute_cgi path=json_proto method=POST [09:08:51]POST find Content-Length [09:08:51]Host: 172.17.44.195:8080 [09:08:51]Content-Length: 770 [09:08:51]Content-Type: application/json [09:08:51] [09:08:51]POST finish read [09:08:51]Found Content-Length = 770 [09:08:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962729", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:51]execute_script... [09:08: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)1962729", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:51]POST & json_proto [09:08:51]process_json_proto [09:08:51]json parsed OK: [09:08:51]protocol is kg_v1.0 [09:08:51]action value=close_receipt [09:08:51]process_action close_receipt [09:08:51]cmd_close_receipt [09:08:51]MH_GetDate [09:08:51]Write to MH i2c: F0 00 00 52 36 77 [09:08:51]Write i2c OK [09:08:51]MH_I2C_Read... [09:08:51]Read from MH i2c: F0 [09:08:51]MH_I2C_Read... [09:08:51]Read from MH i2c: F0 09 00 [09:08:51]MH_I2C_Read... [09:08:51]Read from MH i2c: F0 09 00 52 36 00 A7 C8 14 67 82 C9 CF 66 EA [09:08:51]GetLastDocTimeStamp 1729415273 [09:08:51]current date 1729415335 [09:08:51]FM_GetShiftState [09:08:51]SAM_PROTO_GetShiftState [09:08:51]wFMCommunicate request_size=4 [09:08:51]MH_SAM_APDU [09:08:51]CAPDU: 80 13 01 00 [09:08:51]Write to MH i2c: E2 08 00 53 36 80 13 01 00 00 00 00 00 06 [09:08:51]Write i2c OK [09:08:51]MH_I2C_Read... [09:08:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:51]Read from MH i2c: E2 [09:08:51]MH_I2C_Read... [09:08:51]Read from MH i2c: E2 0E 00 [09:08:51]MH_I2C_Read... [09:08:51]Read from MH i2c: E2 0E 00 53 36 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 20 [09:08:51]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:08:51]wFMCommunicate OK [09:08:51]SAM_PROTO_GetShiftState done [09:08:51]FM_GetShiftState done [09:08:51]opened in 1729383750 [09:08:51]opened+sec_in_day 1729470150 [09:08:51]quantity*price = 100015 [09:08:51]sum+1 = 100017 [09:08:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 111 20.10.2024 09:08 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 227263 ФПД: 187114636498627 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T090855&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227263&fm=187114636498627&tin=02508201610067®Number=0000000000091685&sum=100016 [09:08:52]StoreToDocumentArchive [09:08:52]shift 533 fd 227263 [09:08:52]save to /storage/0533/doc_00227263 [09:08:52]save last doc name /storage/0533/doc_00227263 to /storage/kkm_last_doc_name [09:08:52]save OK [09:08:52]Clear old archive folders... [09:08:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:08:52]tlvbuf is 005FAE80 [09:08:52]SAM_PROTO_ClearQueue [09:08:52]wFMCommunicate request_size=4 [09:08:52]MH_SAM_APDU [09:08:52]CAPDU: 80 09 00 00 [09:08:52]Write to MH i2c: E2 08 00 60 36 80 09 00 00 00 00 00 00 08 [09:08:52]Write i2c OK [09:08:52]MH_I2C_Read... [09:08:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:08:52]Read from MH i2c: E2 [09:08:52]MH_I2C_Read... [09:08:52]Read from MH i2c: E2 03 00 [09:08:52]MH_I2C_Read... [09:08:52]Read from MH i2c: E2 03 00 60 36 00 90 00 0A [09:08:52]RAPDU: 90 00 [09:08:52]wFMCommunicate OK [09:08:52]SAM_PROTO_ClearQueue done [09:08:52]KKMCreateOFDPacket [09:08:52]OFDProtocolAddRootSTLVToBuf [09:08:52]FM_MakeSignedData [09:08:52]FM_MakeSignedData [09:08:52]SAM_PROTO_SignData [09:08:52]wFMCommunicate request_size=4 [09:08:52]MH_SAM_APDU [09:08:52]CAPDU: 80 0D 01 02 [09:08:52]Write to MH i2c: E2 08 00 61 36 80 0D 01 02 00 00 00 00 10 [09:08:52]Write i2c OK [09:08:52]MH_I2C_Read... [09:08:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:08:53]Read from MH i2c: E2 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: E2 03 00 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: E2 03 00 61 36 00 90 00 0B [09:08:53]RAPDU: 90 00 [09:08:53]wFMCommunicate OK [09:08:53]wFMCommunicate request_size=255 [09:08:53]MH_SAM_APDU [09:08:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 A7 C8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BF 77 03 00 35 04 06 00 AA [09:08:53]Write to MH i2c: E2 02 01 62 36 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 A7 C8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BF 77 03 00 35 04 06 00 AA 00 00 14 [09:08:53]Write i2c OK [09:08:53]MH_I2C_Read... [09:08:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:53]Read from MH i2c: E2 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: E2 03 00 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: E2 03 00 62 36 00 90 00 0C [09:08:53]RAPDU: 90 00 [09:08:53]wFMCommunicate OK [09:08:53]wFMCommunicate request_size=10 [09:08:53]MH_SAM_APDU [09:08:53]CAPDU: 80 0D 02 02 05 2E 05 70 D6 C3 [09:08:53]Write to MH i2c: E2 0D 00 63 36 80 0D 02 02 05 00 2E 05 70 D6 C3 00 00 59 [09:08:53]Write i2c OK [09:08:53]MH_I2C_Read... [09:08:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:53]Read from MH i2c: E2 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: E2 03 00 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: E2 03 00 63 36 00 90 00 0D [09:08:53]RAPDU: 90 00 [09:08:53]wFMCommunicate OK [09:08:53]wFMCommunicate request_size=4 [09:08:53]MH_SAM_APDU [09:08:53]CAPDU: 80 0D 03 02 [09:08:53]Write to MH i2c: E2 08 00 64 36 80 0D 03 02 00 00 00 00 15 [09:08:53]Write i2c OK [09:08:53]MH_I2C_Read... [09:08:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:08:53]Read from MH i2c: E2 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: E2 0B 00 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: E2 0B 00 64 36 00 AB 3E B4 91 80 44 B2 13 90 00 CD [09:08:53]RAPDU: AB 3E B4 91 80 44 B2 13 90 00 [09:08:53]wFMCommunicate OK [09:08:53]SAM_PROTO_SignData done [09:08:53]FM_MakeSignedData done [09:08:53]CreateOFDProtocolMessage [09:08:53]wFMCommunicate request_size=4 [09:08:53]MH_SAM_APDU [09:08:53]CAPDU: 80 11 00 00 [09:08:53]Write to MH i2c: E2 08 00 65 36 80 11 00 00 00 00 00 00 15 [09:08:53]Write i2c OK [09:08:53]MH_I2C_Read... [09:08:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:53]Read from MH i2c: E2 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: E2 17 00 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: E2 17 00 65 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 6C [09:08:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:08:53]wFMCommunicate OK [09:08:53]CreateOFDProtocolMessage done [09:08:53]OFDSenderStorePacket 227263 [09:08:53]StoreOFDPacket docnum=227263 [09:08:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 94 D6 07 01 E4 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 A7 C8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BF 77 03 00 35 04 06 00 AA 2E 05 70 D6 C3 AB 3E B4 91 80 44 B2 13 [09:08:53]CheckFolder [09:08:53]dirname=/storage/ofd_packets [09:08:53]CheckFolder done [09:08:53]ProducePacketName [09:08:53]name=ofd_packets/00227263 [09:08:53]NVStorageSaveData ofd_packets/00227263 [09:08:53]File name is /storage/ofd_packets/00227263 [09:08:53]Write 301 bytes [09:08:53]NVStorageSaveData done [09:08:53]OFDSenderStorePacket done [09:08:53]KKMCreateOFDPacket done [09:08:53]NVStorageSaveData kkm_last_timestamp [09:08:53]File name is /storage/kkm_last_timestamp [09:08:53]Write 4 bytes [09:08:53]NVStorageSaveData done [09:08:53]ExternCall_PrintAddStr [09:08:53]wPrintStart [09:08:53]Write to MH i2c: 01 00 00 66 36 9C [09:08:53]Write i2c OK [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: 01 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: 01 07 00 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: 01 07 00 66 36 00 00 00 00 00 FF 0F B1 [09:08:53]RasterBufferAndPrint [09:08:53]line Счет N : (1)1962729 [09:08:53]line ИНН: 02508201610067 [09:08:53]line Контрольно-Кассовый Чек [09:08:53]line ПРОДАЖА [09:08:53]line ТРК (МРК, ГНК) : 43 [09:08:53]line Товар: 2710124130 [09:08:53]line Аи-92-К-5 [09:08:53]line 14.950 * 66.90 [09:08:53]line = 1000.16 [09:08:53]line НДС 12% НСП 1% [09:08:53]line > о реализуемом товаре [09:08:53]line ИТОГО: 1000.16 [09:08:53]line НСП 1% : 8.85 [09:08:53]line НДС 12% : 106.21 [09:08:53]line Наличными: 0.00 [09:08:53]line Безнал.: 1000.16 [09:08:53]line Место: АЗС № 133 "Партнер Нефть" [09:08:53]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:08:53]line СНО: Общий режим [09:08:53]line Чек 111 20.10.2024 09:08 [09:08:53]line Смена: 533 ФФД: 1.0 [09:08:53]line ЗНМ: 0300000091 [09:08:53]line РНМ: 0000000000091685 [09:08:53]line Версия ККМ: 001 [09:08:53]line Платежная система: Mbank [09:08:53]line ФМ: 0000000000871839 [09:08:53]line ФД: 227263 [09:08:53]line ФПД: 187114636498627 [09:08:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T090855&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227263&fm=187114636498627&tin=02508201610067®Number=0000000000091685&sum=100016 [09:08:53]written 0, free lines is 4095 [09:08:53]OFD Sender: Processing packet 227263 [packets to send 38, broken 37] [09:08:53]ProducePacketName [09:08:53]name=ofd_packets/00227263 [09:08:53]OFD Sender: To server: pG, [09:08:53]CommunicateWithHost lk.salyk.kg:30040 [09:08:53]ConnectInit lk.salyk.kg [09:08:53]Connected sock=10 [09:08: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 33 39 0F 01 00 00 94 D6 07 01 E4 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 A7 C8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BF 77 03 00 35 04 06 00 AA 2E 05 70 D6 C3 AB 3E B4 91 80 44 B2 13 [09:08: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 33 39 4F 00 00 00 1F E6 47 00 BC 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 33 39 10 04 04 00 BF 77 03 00 F4 03 04 00 A6 73 14 67 B6 04 01 00 00 8A 3D C4 D4 F6 B7 62 86 [09:08:53]CommunicateWithHost err = 0 [09:08:53]CheckOFDResponse [09:08:53]1017 (14) - 77093643461234 [09:08:53]1041 (16) - 0000000000871839 [09:08:53]1040 (4) - 227263 [09:08:53]1012 (4) - 20.10.2024 03:06 [09:08:53]1206 (1) - 0 [09:08:53]OFD Sender: Remove packet 227263 [09:08:53]ProducePacketName [09:08:53]name=ofd_packets/00227263 [09:08:53]NVStorageDeleteData [09:08:53]Write to MH i2c: 01 00 00 8E 36 C4 [09:08:53]Write i2c OK [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: 01 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: 01 07 00 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: 01 07 00 8E 36 00 00 00 00 00 3B 0D 13 [09:08:53]RasterBufferAndPrint [09:08:53]line [09:08:53]line [09:08:53]line [09:08:53]line [09:08:53]line [09:08:53]written 0, free lines is 3395 [09:08:53]process_action close_receipt done [09:08:53]requested_data is exist [09:08:53]produce_requested_data [09:08:53]requested_item fm.sn is exist - process it [09:08:53]wFMCommunicate request_size=4 [09:08:53]MH_SAM_APDU [09:08:53]CAPDU: 80 11 00 00 [09:08:53]Write to MH i2c: E2 08 00 95 36 80 11 00 00 00 00 00 00 45 [09:08:53]Write i2c OK [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: E2 [09:08:53]MH_I2C_Read... [09:08:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:53]Read from MH i2c: E2 17 00 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: E2 17 00 95 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 9C [09:08:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:08:54]wFMCommunicate OK [09:08:54]requested_item fd.num is exist - process it [09:08:54]SAM_PROTO_GetFieldsCounters [09:08:54]wFMCommunicate request_size=4 [09:08:54]MH_SAM_APDU [09:08:54]CAPDU: 80 13 00 00 [09:08:54]Write to MH i2c: E2 08 00 96 36 80 13 00 00 00 00 00 00 48 [09:08:54]Write i2c OK [09:08:54]MH_I2C_Read... [09:08:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:08:54]Read from MH i2c: E2 [09:08:54]MH_I2C_Read... [09:08:54]Read from MH i2c: E2 62 00 [09:08:54]MH_I2C_Read... [09:08:54]Read from MH i2c: E2 62 00 96 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 BF 77 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 0E [09:08: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 BF 77 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:08:54]wFMCommunicate OK [09:08:54]SAM_PROTO_GetFieldsCounters done [09:08:54]requested_item shift.num is exist - process it [09:08:54]requested_item shift.opened is exist - process it [09:08:54]req_shift_opened [09:08:54]FM_GetShiftState [09:08:54]SAM_PROTO_GetShiftState [09:08:54]wFMCommunicate request_size=4 [09:08:54]MH_SAM_APDU [09:08:54]CAPDU: 80 13 01 00 [09:08:54]Write to MH i2c: E2 08 00 97 36 80 13 01 00 00 00 00 00 4A [09:08:54]Write i2c OK [09:08:54]MH_I2C_Read... [09:08:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:54]Read from MH i2c: E2 [09:08:54]MH_I2C_Read... [09:08:54]Read from MH i2c: E2 0E 00 [09:08:54]MH_I2C_Read... [09:08:54]Read from MH i2c: E2 0E 00 97 36 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 64 [09:08:54]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:08:54]wFMCommunicate OK [09:08:54]SAM_PROTO_GetShiftState done [09:08:54]FM_GetShiftState done [09:08:54]req_shift_opened done [09:08:54]requested_item shift.open_date is exist - process it [09:08:54]req_shift_open_date [09:08:54]req_shift_open_date done [09:08:54]produce_requested_data done [09:08:54]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227263,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [09:08:54]process_action_free close_receipt [09:08:54]json_value_free [09:08:54]json_value_free done [09:08:54]process_json_proto returns [09:08:54]Send response to host [09:08:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227263,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [09:08:54]free response buf [09:08:54]execute_script done [09:08:54]execute_script returns [09:08:54]free content buf [09:08:54]Sock 8.Close socket [09:08:54]Sock 8.Thread stoped [09:08:54]OFD Sender: No OFD packet to send [09:08:59]OFD Sender: No OFD packet to send [09:09:04]OFD Sender: No OFD packet to send [09:09:09]OFD Sender: No OFD packet to send [09:09:14]OFD Sender: No OFD packet to send [09:09:19]OFD Sender: No OFD packet to send [09:09:24]OFD Sender: No OFD packet to send [09:09:29]OFD Sender: No OFD packet to send [09:09:34]OFD Sender: No OFD packet to send [09:09:39]OFD Sender: No OFD packet to send [09:09:44]OFD Sender: No OFD packet to send [09:09:49]OFD Sender: No OFD packet to send [09:09:54]OFD Sender: No OFD packet to send [09:09:59]OFD Sender: No OFD packet to send [09:10:04]OFD Sender: No OFD packet to send [09:10:09]OFD Sender: No OFD packet to send [09:10:14]OFD Sender: No OFD packet to send [09:10:19]OFD Sender: No OFD packet to send [09:10:24]OFD Sender: No OFD packet to send [09:10:29]OFD Sender: No OFD packet to send [09:10:34]OFD Sender: No OFD packet to send [09:10:39]OFD Sender: No OFD packet to send [09:10:44]OFD Sender: No OFD packet to send [09:10:49]OFD Sender: No OFD packet to send [09:10:54]OFD Sender: No OFD packet to send [09:10:59]OFD Sender: No OFD packet to send [09:11:04]OFD Sender: No OFD packet to send [09:11:09]OFD Sender: No OFD packet to send [09:11:14]OFD Sender: No OFD packet to send [09:11:19]OFD Sender: No OFD packet to send [09:11:24]OFD Sender: No OFD packet to send [09:11:29]OFD Sender: No OFD packet to send [09:11:34]OFD Sender: No OFD packet to send [09:11:39]OFD Sender: No OFD packet to send [09:11:44]OFD Sender: No OFD packet to send [09:11:49]OFD Sender: No OFD packet to send [09:11:54]OFD Sender: No OFD packet to send [09:11:59]OFD Sender: No OFD packet to send [09:12:04]OFD Sender: No OFD packet to send [09:12:09]OFD Sender: No OFD packet to send [09:12:14]OFD Sender: No OFD packet to send [09:12:19]OFD Sender: No OFD packet to send [09:12:24]OFD Sender: No OFD packet to send [09:12:29]OFD Sender: No OFD packet to send [09:12:34]OFD Sender: No OFD packet to send [09:12:39]OFD Sender: No OFD packet to send [09:12:44]OFD Sender: No OFD packet to send [09:12:49]OFD Sender: No OFD packet to send [09:12:54]OFD Sender: No OFD packet to send [09:12:59]OFD Sender: No OFD packet to send [09:13:04]OFD Sender: No OFD packet to send [09:13:09]OFD Sender: No OFD packet to send [09:13:14]OFD Sender: No OFD packet to send [09:13:19]OFD Sender: No OFD packet to send [09:13:24]OFD Sender: No OFD packet to send [09:13:29]OFD Sender: No OFD packet to send [09:13:34]OFD Sender: No OFD packet to send [09:13:39]OFD Sender: No OFD packet to send [09:13:40]accept exits with 9 [09:13:40]New connection [09:13:40]New thread 3066821988 created [09:13:40]Thread 3066965348 joined [09:13:40]Waiting for new connection... [09:13:40] Sock 9.Parse request [09:13:40]Sock 9.Check first char [09:13:40]Sock 9.First char is OK [09:13:40]request: POST /json_proto HTTP/1.0 [09:13:40]Method: POST [09:13:40]URL: /json_proto [09:13:40]Method is POST - this is cgi request [09:13:40]url: /json_proto [09:13:40]query_string will be loaded in cgi processing [09:13:40]execute_cgi json_proto POST (null) [09:13:40]execute_cgi path=json_proto method=POST [09:13:40]POST find Content-Length [09:13:40]Host: 172.17.44.195:8080 [09:13:40]Content-Length: 678 [09:13:40]Content-Type: application/json [09:13:40] [09:13:40]POST finish read [09:13:40]Found Content-Length = 678 [09:13:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962732", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:13:40]execute_script... [09:13: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)1962732", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:13:40]POST & json_proto [09:13:40]process_json_proto [09:13:40]json parsed OK: [09:13:40]protocol is kg_v1.0 [09:13:40]action value=close_receipt [09:13:40]process_action close_receipt [09:13:40]cmd_close_receipt [09:13:40]MH_GetDate [09:13:40]Write to MH i2c: F0 00 00 98 36 BD [09:13:40]Write i2c OK [09:13:40]MH_I2C_Read... [09:13:40]Read from MH i2c: F0 [09:13:40]MH_I2C_Read... [09:13:40]Read from MH i2c: F0 09 00 [09:13:40]MH_I2C_Read... [09:13:40]Read from MH i2c: F0 09 00 98 36 00 C8 C9 14 67 82 C9 CF 66 52 [09:13:40]GetLastDocTimeStamp 1729415335 [09:13:40]current date 1729415624 [09:13:40]FM_GetShiftState [09:13:40]SAM_PROTO_GetShiftState [09:13:40]wFMCommunicate request_size=4 [09:13:40]MH_SAM_APDU [09:13:40]CAPDU: 80 13 01 00 [09:13:40]Write to MH i2c: E2 08 00 99 36 80 13 01 00 00 00 00 00 4C [09:13:40]Write i2c OK [09:13:40]MH_I2C_Read... [09:13:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:40]Read from MH i2c: E2 [09:13:40]MH_I2C_Read... [09:13:40]Read from MH i2c: E2 0E 00 [09:13:40]MH_I2C_Read... [09:13:40]Read from MH i2c: E2 0E 00 99 36 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 66 [09:13:40]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:13:40]wFMCommunicate OK [09:13:40]SAM_PROTO_GetShiftState done [09:13:40]FM_GetShiftState done [09:13:40]opened in 1729383750 [09:13:40]opened+sec_in_day 1729470150 [09:13:40]quantity*price = 50041 [09:13:40]sum+1 = 50042 [09:13:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 112 20.10.2024 09:13 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227264 ФПД: 3196917854424 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T091344&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227264&fm=3196917854424&tin=02508201610067®Number=0000000000091685&sum=50000 [09:13:41]StoreToDocumentArchive [09:13:41]shift 533 fd 227264 [09:13:41]save to /storage/0533/doc_00227264 [09:13:41]save last doc name /storage/0533/doc_00227264 to /storage/kkm_last_doc_name [09:13:41]save OK [09:13:41]Clear old archive folders... [09:13:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:13:41]tlvbuf is 00541710 [09:13:41]SAM_PROTO_ClearQueue [09:13:41]wFMCommunicate request_size=4 [09:13:41]MH_SAM_APDU [09:13:41]CAPDU: 80 09 00 00 [09:13:41]Write to MH i2c: E2 08 00 A6 36 80 09 00 00 00 00 00 00 4E [09:13:41]Write i2c OK [09:13:41]MH_I2C_Read... [09:13:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:13:41]Read from MH i2c: E2 [09:13:41]MH_I2C_Read... [09:13:41]Read from MH i2c: E2 03 00 [09:13:41]MH_I2C_Read... [09:13:41]Read from MH i2c: E2 03 00 A6 36 00 90 00 50 [09:13:41]RAPDU: 90 00 [09:13:41]wFMCommunicate OK [09:13:41]SAM_PROTO_ClearQueue done [09:13:41]KKMCreateOFDPacket [09:13:41]OFDProtocolAddRootSTLVToBuf [09:13:41]FM_MakeSignedData [09:13:41]FM_MakeSignedData [09:13:41]SAM_PROTO_SignData [09:13:41]wFMCommunicate request_size=4 [09:13:41]MH_SAM_APDU [09:13:41]CAPDU: 80 0D 01 02 [09:13:41]Write to MH i2c: E2 08 00 A7 36 80 0D 01 02 00 00 00 00 56 [09:13:41]Write i2c OK [09:13:41]MH_I2C_Read... [09:13:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:13:41]Read from MH i2c: E2 [09:13:41]MH_I2C_Read... [09:13:41]Read from MH i2c: E2 03 00 [09:13:41]MH_I2C_Read... [09:13:41]Read from MH i2c: E2 03 00 A7 36 00 90 00 51 [09:13:41]RAPDU: 90 00 [09:13:41]wFMCommunicate OK [09:13:41]wFMCommunicate request_size=255 [09:13:41]MH_SAM_APDU [09:13:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 C8 C9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C0 77 03 00 35 04 06 00 02 [09:13:41]Write to MH i2c: E2 02 01 A8 36 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 C8 C9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C0 77 03 00 35 04 06 00 02 00 00 BC [09:13:41]Write i2c OK [09:13:41]MH_I2C_Read... [09:13:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:42]Read from MH i2c: E2 [09:13:42]MH_I2C_Read... [09:13:42]Read from MH i2c: E2 03 00 [09:13:42]MH_I2C_Read... [09:13:42]Read from MH i2c: E2 03 00 A8 36 00 90 00 52 [09:13:42]RAPDU: 90 00 [09:13:42]wFMCommunicate OK [09:13:42]wFMCommunicate request_size=10 [09:13:42]MH_SAM_APDU [09:13:42]CAPDU: 80 0D 02 02 05 E8 57 27 30 D8 [09:13:42]Write to MH i2c: E2 0D 00 A9 36 80 0D 02 02 05 00 E8 57 27 30 D8 00 00 D1 [09:13:42]Write i2c OK [09:13:42]MH_I2C_Read... [09:13:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:42]Read from MH i2c: E2 [09:13:42]MH_I2C_Read... [09:13:42]Read from MH i2c: E2 03 00 [09:13:42]MH_I2C_Read... [09:13:42]Read from MH i2c: E2 03 00 A9 36 00 90 00 53 [09:13:42]RAPDU: 90 00 [09:13:42]wFMCommunicate OK [09:13:42]wFMCommunicate request_size=4 [09:13:42]MH_SAM_APDU [09:13:42]CAPDU: 80 0D 03 02 [09:13:42]Write to MH i2c: E2 08 00 AA 36 80 0D 03 02 00 00 00 00 5B [09:13:42]Write i2c OK [09:13:42]MH_I2C_Read... [09:13:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:13:42]Read from MH i2c: E2 [09:13:42]MH_I2C_Read... [09:13:42]Read from MH i2c: E2 0B 00 [09:13:42]MH_I2C_Read... [09:13:42]Read from MH i2c: E2 0B 00 AA 36 00 68 5A D9 65 4F 0E 4F EB 90 00 F3 [09:13:42]RAPDU: 68 5A D9 65 4F 0E 4F EB 90 00 [09:13:42]wFMCommunicate OK [09:13:42]SAM_PROTO_SignData done [09:13:42]FM_MakeSignedData done [09:13:42]CreateOFDProtocolMessage [09:13:42]wFMCommunicate request_size=4 [09:13:42]MH_SAM_APDU [09:13:42]CAPDU: 80 11 00 00 [09:13:42]Write to MH i2c: E2 08 00 AB 36 80 11 00 00 00 00 00 00 5B [09:13:42]Write i2c OK [09:13:42]MH_I2C_Read... [09:13:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:42]Read from MH i2c: E2 [09:13:42]MH_I2C_Read... [09:13:42]Read from MH i2c: E2 17 00 [09:13:42]MH_I2C_Read... [09:13:42]Read from MH i2c: E2 17 00 AB 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B2 [09:13:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:13:42]wFMCommunicate OK [09:13:42]CreateOFDProtocolMessage done [09:13:42]OFDSenderStorePacket 227264 [09:13:42]StoreOFDPacket docnum=227264 [09:13:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 8C 02 07 01 58 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 C8 C9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C0 77 03 00 35 04 06 00 02 E8 57 27 30 D8 68 5A D9 65 4F 0E 4F EB [09:13:42]CheckFolder [09:13:42]dirname=/storage/ofd_packets [09:13:42]CheckFolder done [09:13:42]ProducePacketName [09:13:42]name=ofd_packets/00227264 [09:13:42]NVStorageSaveData ofd_packets/00227264 [09:13:42]File name is /storage/ofd_packets/00227264 [09:13:42]Write 301 bytes [09:13:42]NVStorageSaveData done [09:13:42]OFDSenderStorePacket done [09:13:42]KKMCreateOFDPacket done [09:13:42]NVStorageSaveData kkm_last_timestamp [09:13:42]File name is /storage/kkm_last_timestamp [09:13:42]Write 4 bytes [09:13:42]NVStorageSaveData done [09:13:42]ExternCall_PrintAddStr [09:13:42]wPrintStart [09:13:42]Write to MH i2c: 01 00 00 AC 36 E2 [09:13:42]Write i2c OK [09:13:42]MH_I2C_Read... [09:13:42]Read from MH i2c: 01 [09:13:42]MH_I2C_Read... [09:13:42]Read from MH i2c: 01 07 00 [09:13:42]MH_I2C_Read... [09:13:42]Read from MH i2c: 01 07 00 AC 36 00 00 00 00 00 FF 0F F7 [09:13:42]RasterBufferAndPrint [09:13:42]line Счет N : (1)1962732 [09:13:42]line ИНН: 02508201610067 [09:13:42]line Контрольно-Кассовый Чек [09:13:42]line ПРОДАЖА [09:13:42]line ТРК (МРК, ГНК) : 53 [09:13:42]line Товар: 2710124130 [09:13:42]line Аи-92-К-5 [09:13:42]line 7.480 * 66.90 [09:13:42]line = 500.41 [09:13:42]line НДС 12% НСП 1% [09:13:42]line > о реализуемом товаре [09:13:42]line ОКРУГЛЕНИЕ: -0.41 [09:13:42]line ИТОГО: 500.00 [09:13:42]line Внесено: 500.00 [09:13:42]line СДАЧА: 0.00 [09:13:42]line НСП 1% : 4.43 [09:13:42]line НДС 12% : 53.14 [09:13:42]line Наличными: 500.00 [09:13:42]line Безнал.: 0.00 [09:13:42]line Место: АЗС № 133 "Партнер Нефть" [09:13:42]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:13:42]line СНО: Общий режим [09:13:42]line Чек 112 20.10.2024 09:13 [09:13:42]line Смена: 533 ФФД: 1.0 [09:13:42]line ЗНМ: 0300000091 [09:13:42]line РНМ: 0000000000091685 [09:13:42]line Версия ККМ: 001 [09:13:42]line ФМ: 0000000000871839 [09:13:42]line ФД: 227264 [09:13:42]line ФПД: 3196917854424 [09:13:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T091344&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227264&fm=3196917854424&tin=02508201610067®Number=0000000000091685&sum=50000 [09:13:42]written 0, free lines is 4095 [09:13:42]OFD Sender: Processing packet 227264 [packets to send 38, broken 37] [09:13:42]ProducePacketName [09:13:42]name=ofd_packets/00227264 [09:13:42]OFD Sender: To server: pG, [09:13:42]CommunicateWithHost lk.salyk.kg:30040 [09:13:42]ConnectInit lk.salyk.kg [09:13:42]Connected sock=10 [09:13: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 33 39 0F 01 00 00 8C 02 07 01 58 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 C8 C9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C0 77 03 00 35 04 06 00 02 E8 57 27 30 D8 68 5A D9 65 4F 0E 4F EB [09:13: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 33 39 4F 00 00 00 0A 82 47 00 30 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 33 39 10 04 04 00 C0 77 03 00 F4 03 04 00 C8 74 14 67 B6 04 01 00 00 76 B3 B0 EE E1 33 28 14 [09:13:43]CommunicateWithHost err = 0 [09:13:43]CheckOFDResponse [09:13:43]1017 (14) - 77093643461234 [09:13:43]1041 (16) - 0000000000871839 [09:13:43]1040 (4) - 227264 [09:13:43]1012 (4) - 20.10.2024 03:11 [09:13:43]1206 (1) - 0 [09:13:43]OFD Sender: Remove packet 227264 [09:13:43]ProducePacketName [09:13:43]name=ofd_packets/00227264 [09:13:43]NVStorageDeleteData [09:13:43]Write to MH i2c: 01 00 00 D6 36 0C [09:13:43]Write i2c OK [09:13:43]MH_I2C_Read... [09:13:43]Read from MH i2c: 01 [09:13:43]MH_I2C_Read... [09:13:43]Read from MH i2c: 01 07 00 [09:13:43]MH_I2C_Read... [09:13:43]Read from MH i2c: 01 07 00 D6 36 00 00 00 00 00 01 0D 21 [09:13:43]RasterBufferAndPrint [09:13:43]line [09:13:43]line [09:13:43]line [09:13:43]line [09:13:43]line [09:13:43]written 0, free lines is 3335 [09:13:43]process_action close_receipt done [09:13:43]requested_data is exist [09:13:43]produce_requested_data [09:13:43]requested_item fm.sn is exist - process it [09:13:43]wFMCommunicate request_size=4 [09:13:43]MH_SAM_APDU [09:13:43]CAPDU: 80 11 00 00 [09:13:43]Write to MH i2c: E2 08 00 DD 36 80 11 00 00 00 00 00 00 8D [09:13:43]Write i2c OK [09:13:43]MH_I2C_Read... [09:13:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:43]Read from MH i2c: E2 [09:13:43]MH_I2C_Read... [09:13:43]Read from MH i2c: E2 17 00 [09:13:43]MH_I2C_Read... [09:13:43]Read from MH i2c: E2 17 00 DD 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E4 [09:13:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:13:43]wFMCommunicate OK [09:13:43]requested_item fd.num is exist - process it [09:13:43]SAM_PROTO_GetFieldsCounters [09:13:43]wFMCommunicate request_size=4 [09:13:43]MH_SAM_APDU [09:13:43]CAPDU: 80 13 00 00 [09:13:43]Write to MH i2c: E2 08 00 DE 36 80 13 00 00 00 00 00 00 90 [09:13:43]Write i2c OK [09:13:43]MH_I2C_Read... [09:13:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:13:43]Read from MH i2c: E2 [09:13:43]MH_I2C_Read... [09:13:43]Read from MH i2c: E2 62 00 [09:13:43]MH_I2C_Read... [09:13:43]Read from MH i2c: E2 62 00 DE 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 C0 77 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [09:13:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 C0 77 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:13:43]wFMCommunicate OK [09:13:43]SAM_PROTO_GetFieldsCounters done [09:13:43]requested_item shift.num is exist - process it [09:13:43]requested_item shift.opened is exist - process it [09:13:43]req_shift_opened [09:13:43]FM_GetShiftState [09:13:43]SAM_PROTO_GetShiftState [09:13:43]wFMCommunicate request_size=4 [09:13:43]MH_SAM_APDU [09:13:43]CAPDU: 80 13 01 00 [09:13:43]Write to MH i2c: E2 08 00 DF 36 80 13 01 00 00 00 00 00 92 [09:13:43]Write i2c OK [09:13:43]MH_I2C_Read... [09:13:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:43]Read from MH i2c: E2 [09:13:43]MH_I2C_Read... [09:13:43]Read from MH i2c: E2 0E 00 [09:13:43]MH_I2C_Read... [09:13:43]Read from MH i2c: E2 0E 00 DF 36 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 AC [09:13:43]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:13:43]wFMCommunicate OK [09:13:43]SAM_PROTO_GetShiftState done [09:13:43]FM_GetShiftState done [09:13:43]req_shift_opened done [09:13:43]requested_item shift.open_date is exist - process it [09:13:43]req_shift_open_date [09:13:43]req_shift_open_date done [09:13:43]produce_requested_data done [09:13:43]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227264,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [09:13:43]process_action_free close_receipt [09:13:43]json_value_free [09:13:43]json_value_free done [09:13:43]process_json_proto returns [09:13:43]Send response to host [09:13:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227264,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [09:13:43]free response buf [09:13:43]execute_script done [09:13:43]execute_script returns [09:13:43]free content buf [09:13:43]Sock 9.Close socket [09:13:43]Sock 9.Thread stoped [09:13:43]OFD Sender: No OFD packet to send [09:13:45]accept exits with 8 [09:13:45]New connection [09:13:45]New thread 3066965348 created [09:13:45]Thread 3066821988 joined [09:13:45]Waiting for new connection... [09:13:45] Sock 8.Parse request [09:13:45]Sock 8.Check first char [09:13:45]Sock 8.First char is OK [09:13:45]request: POST /json_proto HTTP/1.0 [09:13:45]Method: POST [09:13:45]URL: /json_proto [09:13:45]Method is POST - this is cgi request [09:13:45]url: /json_proto [09:13:45]query_string will be loaded in cgi processing [09:13:45]execute_cgi json_proto POST (null) [09:13:45]execute_cgi path=json_proto method=POST [09:13:45]POST find Content-Length [09:13:45]Host: 172.17.44.195:8080 [09:13:45]Content-Length: 678 [09:13:45]Content-Type: application/json [09:13:45] [09:13:45]POST finish read [09:13:45]Found Content-Length = 678 [09:13:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962731", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:13:45]execute_script... [09:13: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)1962731", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:13:45]POST & json_proto [09:13:45]process_json_proto [09:13:45]json parsed OK: [09:13:45]protocol is kg_v1.0 [09:13:45]action value=close_receipt [09:13:45]process_action close_receipt [09:13:45]cmd_close_receipt [09:13:45]MH_GetDate [09:13:45]Write to MH i2c: F0 00 00 E0 36 05 [09:13:45]Write i2c OK [09:13:45]MH_I2C_Read... [09:13:45]Read from MH i2c: F0 [09:13:45]MH_I2C_Read... [09:13:45]Read from MH i2c: F0 09 00 [09:13:45]MH_I2C_Read... [09:13:45]Read from MH i2c: F0 09 00 E0 36 00 CD C9 14 67 82 C9 CF 66 9F [09:13:45]GetLastDocTimeStamp 1729415624 [09:13:45]current date 1729415629 [09:13:45]FM_GetShiftState [09:13:45]SAM_PROTO_GetShiftState [09:13:45]wFMCommunicate request_size=4 [09:13:45]MH_SAM_APDU [09:13:45]CAPDU: 80 13 01 00 [09:13:45]Write to MH i2c: E2 08 00 E1 36 80 13 01 00 00 00 00 00 94 [09:13:45]Write i2c OK [09:13:45]MH_I2C_Read... [09:13:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:45]Read from MH i2c: E2 [09:13:45]MH_I2C_Read... [09:13:45]Read from MH i2c: E2 0E 00 [09:13:45]MH_I2C_Read... [09:13:45]Read from MH i2c: E2 0E 00 E1 36 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 AE [09:13:45]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:13:45]wFMCommunicate OK [09:13:45]SAM_PROTO_GetShiftState done [09:13:45]FM_GetShiftState done [09:13:45]opened in 1729383750 [09:13:45]opened+sec_in_day 1729470150 [09:13:45]quantity*price = 50041 [09:13:45]sum+1 = 50042 [09:13:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 113 20.10.2024 09:13 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227265 ФПД: 95433244300530 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T091349&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227265&fm=95433244300530&tin=02508201610067®Number=0000000000091685&sum=50000 [09:13:46]StoreToDocumentArchive [09:13:46]shift 533 fd 227265 [09:13:46]save to /storage/0533/doc_00227265 [09:13:46]save last doc name /storage/0533/doc_00227265 to /storage/kkm_last_doc_name [09:13:46]save OK [09:13:46]Clear old archive folders... [09:13:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:13:46]tlvbuf is 004EF0F0 [09:13:46]SAM_PROTO_ClearQueue [09:13:46]wFMCommunicate request_size=4 [09:13:46]MH_SAM_APDU [09:13:46]CAPDU: 80 09 00 00 [09:13:46]Write to MH i2c: E2 08 00 EE 36 80 09 00 00 00 00 00 00 96 [09:13:46]Write i2c OK [09:13:46]MH_I2C_Read... [09:13:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:13:46]Read from MH i2c: E2 [09:13:46]MH_I2C_Read... [09:13:46]Read from MH i2c: E2 03 00 [09:13:46]MH_I2C_Read... [09:13:46]Read from MH i2c: E2 03 00 EE 36 00 90 00 98 [09:13:46]RAPDU: 90 00 [09:13:46]wFMCommunicate OK [09:13:46]SAM_PROTO_ClearQueue done [09:13:46]KKMCreateOFDPacket [09:13:46]OFDProtocolAddRootSTLVToBuf [09:13:46]FM_MakeSignedData [09:13:46]FM_MakeSignedData [09:13:46]SAM_PROTO_SignData [09:13:46]wFMCommunicate request_size=4 [09:13:46]MH_SAM_APDU [09:13:46]CAPDU: 80 0D 01 02 [09:13:46]Write to MH i2c: E2 08 00 EF 36 80 0D 01 02 00 00 00 00 9E [09:13:46]Write i2c OK [09:13:46]MH_I2C_Read... [09:13:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:13:47]Read from MH i2c: E2 [09:13:47]MH_I2C_Read... [09:13:47]Read from MH i2c: E2 03 00 [09:13:47]MH_I2C_Read... [09:13:47]Read from MH i2c: E2 03 00 EF 36 00 90 00 99 [09:13:47]RAPDU: 90 00 [09:13:47]wFMCommunicate OK [09:13:47]wFMCommunicate request_size=255 [09:13:47]MH_SAM_APDU [09:13:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 CD C9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C1 77 03 00 35 04 06 00 56 [09:13:47]Write to MH i2c: E2 02 01 F0 36 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 CD C9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C1 77 03 00 35 04 06 00 56 00 00 5F [09:13:47]Write i2c OK [09:13:47]MH_I2C_Read... [09:13:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:47]Read from MH i2c: E2 [09:13:47]MH_I2C_Read... [09:13:47]Read from MH i2c: E2 03 00 [09:13:47]MH_I2C_Read... [09:13:47]Read from MH i2c: E2 03 00 F0 36 00 90 00 9A [09:13:47]RAPDU: 90 00 [09:13:47]wFMCommunicate OK [09:13:47]wFMCommunicate request_size=10 [09:13:47]MH_SAM_APDU [09:13:47]CAPDU: 80 0D 02 02 05 CB C8 A0 54 F2 [09:13:47]Write to MH i2c: E2 0D 00 F1 36 80 0D 02 02 05 00 CB C8 A0 54 F2 00 00 24 [09:13:47]Write i2c OK [09:13:47]MH_I2C_Read... [09:13:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:47]Read from MH i2c: E2 [09:13:47]MH_I2C_Read... [09:13:47]Read from MH i2c: E2 03 00 [09:13:47]MH_I2C_Read... [09:13:47]Read from MH i2c: E2 03 00 F1 36 00 90 00 9B [09:13:47]RAPDU: 90 00 [09:13:47]wFMCommunicate OK [09:13:47]wFMCommunicate request_size=4 [09:13:47]MH_SAM_APDU [09:13:47]CAPDU: 80 0D 03 02 [09:13:47]Write to MH i2c: E2 08 00 F2 36 80 0D 03 02 00 00 00 00 A3 [09:13:47]Write i2c OK [09:13:47]MH_I2C_Read... [09:13:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:13:47]Read from MH i2c: E2 [09:13:47]MH_I2C_Read... [09:13:47]Read from MH i2c: E2 0B 00 [09:13:47]MH_I2C_Read... [09:13:47]Read from MH i2c: E2 0B 00 F2 36 00 87 43 63 41 8A 1A 43 AD 90 00 A6 [09:13:47]RAPDU: 87 43 63 41 8A 1A 43 AD 90 00 [09:13:47]wFMCommunicate OK [09:13:47]SAM_PROTO_SignData done [09:13:47]FM_MakeSignedData done [09:13:47]CreateOFDProtocolMessage [09:13:47]wFMCommunicate request_size=4 [09:13:47]MH_SAM_APDU [09:13:47]CAPDU: 80 11 00 00 [09:13:47]Write to MH i2c: E2 08 00 F3 36 80 11 00 00 00 00 00 00 A3 [09:13:47]Write i2c OK [09:13:47]MH_I2C_Read... [09:13:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:47]Read from MH i2c: E2 [09:13:47]MH_I2C_Read... [09:13:47]Read from MH i2c: E2 17 00 [09:13:47]MH_I2C_Read... [09:13:47]Read from MH i2c: E2 17 00 F3 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 FA [09:13:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:13:47]wFMCommunicate OK [09:13:47]CreateOFDProtocolMessage done [09:13:47]OFDSenderStorePacket 227265 [09:13:47]StoreOFDPacket docnum=227265 [09:13:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 F4 EF 07 01 4E 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 CD C9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C1 77 03 00 35 04 06 00 56 CB C8 A0 54 F2 87 43 63 41 8A 1A 43 AD [09:13:47]CheckFolder [09:13:47]dirname=/storage/ofd_packets [09:13:47]CheckFolder done [09:13:47]ProducePacketName [09:13:47]name=ofd_packets/00227265 [09:13:47]NVStorageSaveData ofd_packets/00227265 [09:13:47]File name is /storage/ofd_packets/00227265 [09:13:47]Write 301 bytes [09:13:47]NVStorageSaveData done [09:13:47]OFDSenderStorePacket done [09:13:47]KKMCreateOFDPacket done [09:13:47]NVStorageSaveData kkm_last_timestamp [09:13:47]File name is /storage/kkm_last_timestamp [09:13:47]Write 4 bytes [09:13:47]NVStorageSaveData done [09:13:47]ExternCall_PrintAddStr [09:13:47]wPrintStart [09:13:47]Write to MH i2c: 01 00 00 F4 36 2A [09:13:47]Write i2c OK [09:13:47]MH_I2C_Read... [09:13:47]Read from MH i2c: 01 [09:13:47]MH_I2C_Read... [09:13:47]Read from MH i2c: 01 07 00 [09:13:47]MH_I2C_Read... [09:13:47]Read from MH i2c: 01 07 00 F4 36 00 00 00 00 00 FF 0F 3F [09:13:47]RasterBufferAndPrint [09:13:47]line Счет N : (1)1962731 [09:13:47]line ИНН: 02508201610067 [09:13:47]line Контрольно-Кассовый Чек [09:13:47]line ПРОДАЖА [09:13:47]line ТРК (МРК, ГНК) : 43 [09:13:47]line Товар: 2710124130 [09:13:47]line Аи-92-К-5 [09:13:47]line 7.480 * 66.90 [09:13:47]line = 500.41 [09:13:47]line НДС 12% НСП 1% [09:13:47]line > о реализуемом товаре [09:13:47]line ОКРУГЛЕНИЕ: -0.41 [09:13:47]line ИТОГО: 500.00 [09:13:47]line Внесено: 500.00 [09:13:47]line СДАЧА: 0.00 [09:13:47]line НСП 1% : 4.43 [09:13:47]line НДС 12% : 53.14 [09:13:47]line Наличными: 500.00 [09:13:47]line Безнал.: 0.00 [09:13:47]line Место: АЗС № 133 "Партнер Нефть" [09:13:47]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:13:47]line СНО: Общий режим [09:13:47]line Чек 113 20.10.2024 09:13 [09:13:47]line Смена: 533 ФФД: 1.0 [09:13:47]line ЗНМ: 0300000091 [09:13:47]line РНМ: 0000000000091685 [09:13:47]line Версия ККМ: 001 [09:13:47]line ФМ: 0000000000871839 [09:13:47]line ФД: 227265 [09:13:47]line ФПД: 95433244300530 [09:13:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T091349&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227265&fm=95433244300530&tin=02508201610067®Number=0000000000091685&sum=50000 [09:13:47]written 0, free lines is 4095 [09:13:47]OFD Sender: Processing packet 227265 [packets to send 38, broken 37] [09:13:47]ProducePacketName [09:13:47]name=ofd_packets/00227265 [09:13:47]OFD Sender: To server: pG, [09:13:47]CommunicateWithHost lk.salyk.kg:30040 [09:13:47]ConnectInit lk.salyk.kg [09:13:47]Connected sock=11 [09:13: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 33 39 0F 01 00 00 F4 EF 07 01 4E 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 CD C9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C1 77 03 00 35 04 06 00 56 CB C8 A0 54 F2 87 43 63 41 8A 1A 43 AD [09:13: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 33 39 4F 00 00 00 74 C9 47 00 79 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 33 39 10 04 04 00 C1 77 03 00 F4 03 04 00 CC 74 14 67 B6 04 01 00 00 07 6A B1 AD 31 07 94 89 [09:13:47]CommunicateWithHost err = 0 [09:13:47]CheckOFDResponse [09:13:47]1017 (14) - 77093643461234 [09:13:47]1041 (16) - 0000000000871839 [09:13:47]1040 (4) - 227265 [09:13:47]1012 (4) - 20.10.2024 03:11 [09:13:47]1206 (1) - 0 [09:13:47]OFD Sender: Remove packet 227265 [09:13:47]ProducePacketName [09:13:47]name=ofd_packets/00227265 [09:13:47]NVStorageDeleteData [09:13:47]Write to MH i2c: 01 00 00 1E 37 55 [09:13:47]Write i2c OK [09:13:47]MH_I2C_Read... [09:13:47]Read from MH i2c: 01 [09:13:47]MH_I2C_Read... [09:13:47]Read from MH i2c: 01 07 00 [09:13:47]MH_I2C_Read... [09:13:47]Read from MH i2c: 01 07 00 1E 37 00 00 00 00 00 1B 0D 84 [09:13:47]RasterBufferAndPrint [09:13:47]line [09:13:47]line [09:13:47]line [09:13:47]line [09:13:47]line [09:13:47]written 0, free lines is 3364 [09:13:47]process_action close_receipt done [09:13:47]requested_data is exist [09:13:47]produce_requested_data [09:13:47]requested_item fm.sn is exist - process it [09:13:47]wFMCommunicate request_size=4 [09:13:47]MH_SAM_APDU [09:13:47]CAPDU: 80 11 00 00 [09:13:47]Write to MH i2c: E2 08 00 25 37 80 11 00 00 00 00 00 00 D6 [09:13:47]Write i2c OK [09:13:47]MH_I2C_Read... [09:13:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:48]Read from MH i2c: E2 [09:13:48]MH_I2C_Read... [09:13:48]Read from MH i2c: E2 17 00 [09:13:48]MH_I2C_Read... [09:13:48]Read from MH i2c: E2 17 00 25 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 2D [09:13:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:13:48]wFMCommunicate OK [09:13:48]requested_item fd.num is exist - process it [09:13:48]SAM_PROTO_GetFieldsCounters [09:13:48]wFMCommunicate request_size=4 [09:13:48]MH_SAM_APDU [09:13:48]CAPDU: 80 13 00 00 [09:13:48]Write to MH i2c: E2 08 00 26 37 80 13 00 00 00 00 00 00 D9 [09:13:48]Write i2c OK [09:13:48]MH_I2C_Read... [09:13:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:13:48]Read from MH i2c: E2 [09:13:48]MH_I2C_Read... [09:13:48]Read from MH i2c: E2 62 00 [09:13:48]MH_I2C_Read... [09:13:48]Read from MH i2c: E2 62 00 26 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 C1 77 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 A7 [09:13: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 C1 77 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:13:48]wFMCommunicate OK [09:13:48]SAM_PROTO_GetFieldsCounters done [09:13:48]requested_item shift.num is exist - process it [09:13:48]requested_item shift.opened is exist - process it [09:13:48]req_shift_opened [09:13:48]FM_GetShiftState [09:13:48]SAM_PROTO_GetShiftState [09:13:48]wFMCommunicate request_size=4 [09:13:48]MH_SAM_APDU [09:13:48]CAPDU: 80 13 01 00 [09:13:48]Write to MH i2c: E2 08 00 27 37 80 13 01 00 00 00 00 00 DB [09:13:48]Write i2c OK [09:13:48]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 27 37 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 F5 [09:13:48]RAPDU: 09 00 01 46 4D 14 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]req_shift_opened done [09:13:48]requested_item shift.open_date is exist - process it [09:13:48]req_shift_open_date [09:13:48]req_shift_open_date done [09:13:48]produce_requested_data done [09:13:48]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227265,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [09:13:48]process_action_free close_receipt [09:13:48]json_value_free [09:13:48]json_value_free done [09:13:48]process_json_proto returns [09:13:48]Send response to host [09:13:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227265,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [09:13:48]free response buf [09:13:48]execute_script done [09:13:48]execute_script returns [09:13:48]free content buf [09:13:48]Sock 8.Close socket [09:13:48]Sock 8.Thread stoped [09:13:48]OFD Sender: No OFD packet to send [09:13:52]accept exits with 9 [09:13:52]New connection [09:13:52]New thread 3066821988 created [09:13:52]Thread 3066965348 joined [09:13:52]Waiting for new connection... [09:13:52] Sock 9.Parse request [09:13:52]Sock 9.Check first char [09:13:52]Sock 9.First char is OK [09:13:52]request: POST /json_proto HTTP/1.0 [09:13:52]Method: POST [09:13:52]URL: /json_proto [09:13:52]Method is POST - this is cgi request [09:13:52]url: /json_proto [09:13:52]query_string will be loaded in cgi processing [09:13:52]execute_cgi json_proto POST (null) [09:13:52]execute_cgi path=json_proto method=POST [09:13:52]POST find Content-Length [09:13:52]Host: 172.17.44.195:8080 [09:13:52]Content-Length: 678 [09:13:52]Content-Type: application/json [09:13:52] [09:13:52]POST finish read [09:13:52]Found Content-Length = 678 [09:13:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962733", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:13:52]execute_script... [09:13:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962733", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:13:52]POST & json_proto [09:13:52]process_json_proto [09:13:52]json parsed OK: [09:13:52]protocol is kg_v1.0 [09:13:52]action value=close_receipt [09:13:52]process_action close_receipt [09:13:52]cmd_close_receipt [09:13:52]MH_GetDate [09:13:52]Write to MH i2c: F0 00 00 28 37 4E [09:13:52]Write i2c OK [09:13:52]MH_I2C_Read... [09:13:52]Read from MH i2c: F0 [09:13:52]MH_I2C_Read... [09:13:52]Read from MH i2c: F0 09 00 [09:13:52]MH_I2C_Read... [09:13:52]Read from MH i2c: F0 09 00 28 37 00 D4 C9 14 67 82 C9 CF 66 EF [09:13:52]GetLastDocTimeStamp 1729415629 [09:13:52]current date 1729415636 [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 29 37 80 13 01 00 00 00 00 00 DD [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 29 37 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 F7 [09:13:52]RAPDU: 09 00 01 46 4D 14 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]opened in 1729383750 [09:13:52]opened+sec_in_day 1729470150 [09:13:52]quantity*price = 40006 [09:13:52]sum+1 = 40007 [09:13:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 114 20.10.2024 09:13 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227266 ФПД: 221647520602332 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T091356&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227266&fm=221647520602332&tin=02508201610067®Number=0000000000091685&sum=40000 [09:13:53]StoreToDocumentArchive [09:13:53]shift 533 fd 227266 [09:13:53]save to /storage/0533/doc_00227266 [09:13:53]save last doc name /storage/0533/doc_00227266 to /storage/kkm_last_doc_name [09:13:53]save OK [09:13:53]Clear old archive folders... [09:13:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:13:53]tlvbuf is 005DE890 [09:13:53]SAM_PROTO_ClearQueue [09:13:53]wFMCommunicate request_size=4 [09:13:53]MH_SAM_APDU [09:13:53]CAPDU: 80 09 00 00 [09:13:53]Write to MH i2c: E2 08 00 36 37 80 09 00 00 00 00 00 00 DF [09:13:53]Write i2c OK [09:13:53]MH_I2C_Read... [09:13:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:13:53]Read from MH i2c: E2 [09:13:53]MH_I2C_Read... [09:13:53]Read from MH i2c: E2 03 00 [09:13:53]MH_I2C_Read... [09:13:53]Read from MH i2c: E2 03 00 36 37 00 90 00 E1 [09:13:53]RAPDU: 90 00 [09:13:53]wFMCommunicate OK [09:13:53]SAM_PROTO_ClearQueue done [09:13:53]KKMCreateOFDPacket [09:13:53]OFDProtocolAddRootSTLVToBuf [09:13:53]FM_MakeSignedData [09:13:53]FM_MakeSignedData [09:13:53]SAM_PROTO_SignData [09:13:53]wFMCommunicate request_size=4 [09:13:53]MH_SAM_APDU [09:13:53]CAPDU: 80 0D 01 02 [09:13:53]Write to MH i2c: E2 08 00 37 37 80 0D 01 02 00 00 00 00 E7 [09:13:53]Write i2c OK [09:13:53]MH_I2C_Read... [09:13:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:13:53]Read from MH i2c: E2 [09:13:53]MH_I2C_Read... [09:13:53]Read from MH i2c: E2 03 00 [09:13:53]MH_I2C_Read... [09:13:53]Read from MH i2c: E2 03 00 37 37 00 90 00 E2 [09:13:53]RAPDU: 90 00 [09:13:53]wFMCommunicate OK [09:13:53]wFMCommunicate request_size=255 [09:13:53]MH_SAM_APDU [09:13:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 D4 C9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C2 77 03 00 35 04 06 00 C9 [09:13:53]Write to MH i2c: E2 02 01 38 37 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 D4 C9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C2 77 03 00 35 04 06 00 C9 00 00 F3 [09:13:53]Write i2c OK [09:13:53]MH_I2C_Read... [09:13:53]OFD Sender: No OFD packet to send [09:13:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:53]Read from MH i2c: E2 [09:13:53]MH_I2C_Read... [09:13:53]Read from MH i2c: E2 03 00 [09:13:53]MH_I2C_Read... [09:13:53]Read from MH i2c: E2 03 00 38 37 00 90 00 E3 [09:13:53]RAPDU: 90 00 [09:13:53]wFMCommunicate OK [09:13:53]wFMCommunicate request_size=10 [09:13:53]MH_SAM_APDU [09:13:53]CAPDU: 80 0D 02 02 05 96 55 BB 18 DC [09:13:53]Write to MH i2c: E2 0D 00 39 37 80 0D 02 02 05 00 96 55 BB 18 DC 00 00 8E [09:13:53]Write i2c OK [09:13:53]MH_I2C_Read... [09:13:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:53]Read from MH i2c: E2 [09:13:53]MH_I2C_Read... [09:13:53]Read from MH i2c: E2 03 00 [09:13:53]MH_I2C_Read... [09:13:53]Read from MH i2c: E2 03 00 39 37 00 90 00 E4 [09:13:53]RAPDU: 90 00 [09:13:53]wFMCommunicate OK [09:13:53]wFMCommunicate request_size=4 [09:13:53]MH_SAM_APDU [09:13:53]CAPDU: 80 0D 03 02 [09:13:53]Write to MH i2c: E2 08 00 3A 37 80 0D 03 02 00 00 00 00 EC [09:13:53]Write i2c OK [09:13:53]MH_I2C_Read... [09:13:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:13:53]Read from MH i2c: E2 [09:13:53]MH_I2C_Read... [09:13:53]Read from MH i2c: E2 0B 00 [09:13:53]MH_I2C_Read... [09:13:53]Read from MH i2c: E2 0B 00 3A 37 00 5C 55 03 B4 DF 74 95 09 90 00 46 [09:13:53]RAPDU: 5C 55 03 B4 DF 74 95 09 90 00 [09:13:53]wFMCommunicate OK [09:13:53]SAM_PROTO_SignData done [09:13:53]FM_MakeSignedData done [09:13:53]CreateOFDProtocolMessage [09:13:53]wFMCommunicate request_size=4 [09:13:53]MH_SAM_APDU [09:13:53]CAPDU: 80 11 00 00 [09:13:53]Write to MH i2c: E2 08 00 3B 37 80 11 00 00 00 00 00 00 EC [09:13:53]Write i2c OK [09:13:53]MH_I2C_Read... [09:13:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:53]Read from MH i2c: E2 [09:13:53]MH_I2C_Read... [09:13:53]Read from MH i2c: E2 17 00 [09:13:53]MH_I2C_Read... [09:13:53]Read from MH i2c: E2 17 00 3B 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 43 [09:13:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:13:53]wFMCommunicate OK [09:13:53]CreateOFDProtocolMessage done [09:13:53]OFDSenderStorePacket 227266 [09:13:53]StoreOFDPacket docnum=227266 [09:13:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 E2 C5 07 01 47 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 D4 C9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C2 77 03 00 35 04 06 00 C9 96 55 BB 18 DC 5C 55 03 B4 DF 74 95 09 [09:13:53]CheckFolder [09:13:53]dirname=/storage/ofd_packets [09:13:53]CheckFolder done [09:13:53]ProducePacketName [09:13:53]name=ofd_packets/00227266 [09:13:53]NVStorageSaveData ofd_packets/00227266 [09:13:53]File name is /storage/ofd_packets/00227266 [09:13:53]Write 301 bytes [09:13:53]NVStorageSaveData done [09:13:53]OFDSenderStorePacket done [09:13:53]KKMCreateOFDPacket done [09:13:53]NVStorageSaveData kkm_last_timestamp [09:13:53]File name is /storage/kkm_last_timestamp [09:13:53]Write 4 bytes [09:13:53]NVStorageSaveData done [09:13:53]ExternCall_PrintAddStr [09:13:53]wPrintStart [09:13:53]Write to MH i2c: 01 00 00 3C 37 73 [09:13:53]Write i2c OK [09:13:53]MH_I2C_Read... [09:13:53]Read from MH i2c: 01 [09:13:53]MH_I2C_Read... [09:13:53]Read from MH i2c: 01 07 00 [09:13:53]MH_I2C_Read... [09:13:53]Read from MH i2c: 01 07 00 3C 37 00 00 00 00 00 FF 0F 88 [09:13:53]RasterBufferAndPrint [09:13:53]line Счет N : (1)1962733 [09:13:53]line ИНН: 02508201610067 [09:13:53]line Контрольно-Кассовый Чек [09:13:53]line ПРОДАЖА [09:13:53]line ТРК (МРК, ГНК) : 33 [09:13:53]line Товар: 2710124130 [09:13:53]line Аи-92-К-5 [09:13:53]line 5.980 * 66.90 [09:13:53]line = 400.06 [09:13:53]line НДС 12% НСП 1% [09:13:53]line > о реализуемом товаре [09:13:53]line ОКРУГЛЕНИЕ: -0.06 [09:13:53]line ИТОГО: 400.00 [09:13:53]line Внесено: 400.00 [09:13:53]line СДАЧА: 0.00 [09:13:53]line НСП 1% : 3.54 [09:13:53]line НДС 12% : 42.48 [09:13:53]line Наличными: 400.00 [09:13:53]line Безнал.: 0.00 [09:13:53]line Место: АЗС № 133 "Партнер Нефть" [09:13:53]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:13:53]line СНО: Общий режим [09:13:53]line Чек 114 20.10.2024 09:13 [09:13:53]line Смена: 533 ФФД: 1.0 [09:13:53]line ЗНМ: 0300000091 [09:13:53]line РНМ: 0000000000091685 [09:13:53]line Версия ККМ: 001 [09:13:53]line ФМ: 0000000000871839 [09:13:53]line ФД: 227266 [09:13:53]line ФПД: 221647520602332 [09:13:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T091356&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227266&fm=221647520602332&tin=02508201610067®Number=0000000000091685&sum=40000 [09:13:53]written 0, free lines is 4095 [09:13:53]OFD Sender: Processing packet 227266 [packets to send 38, broken 37] [09:13:53]ProducePacketName [09:13:53]name=ofd_packets/00227266 [09:13:53]OFD Sender: To server: pG, [09:13:53]CommunicateWithHost lk.salyk.kg:30040 [09:13:53]ConnectInit lk.salyk.kg [09:13:54]Connected sock=10 [09:13:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 E2 C5 07 01 47 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 D4 C9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C2 77 03 00 35 04 06 00 C9 96 55 BB 18 DC 5C 55 03 B4 DF 74 95 09 [09:13:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 80 A7 47 00 B7 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 33 39 10 04 04 00 C2 77 03 00 F4 03 04 00 D3 74 14 67 B6 04 01 00 00 39 1F 39 47 80 5C F2 32 [09:13:54]CommunicateWithHost err = 0 [09:13:54]CheckOFDResponse [09:13:54]1017 (14) - 77093643461234 [09:13:54]1041 (16) - 0000000000871839 [09:13:54]1040 (4) - 227266 [09:13:54]1012 (4) - 20.10.2024 03:11 [09:13:54]1206 (1) - 0 [09:13:54]OFD Sender: Remove packet 227266 [09:13:54]ProducePacketName [09:13:54]name=ofd_packets/00227266 [09:13:54]NVStorageDeleteData [09:13:54]Write to MH i2c: 01 00 00 66 37 9D [09:13:54]Write i2c OK [09:13:54]MH_I2C_Read... [09:13:54]Read from MH i2c: 01 [09:13:54]MH_I2C_Read... [09:13:54]Read from MH i2c: 01 07 00 [09:13:54]MH_I2C_Read... [09:13:54]Read from MH i2c: 01 07 00 66 37 00 00 00 00 00 19 0D CA [09:13:54]RasterBufferAndPrint [09:13:54]line [09:13:54]line [09:13:54]line [09:13:54]line [09:13:54]line [09:13:54]written 0, free lines is 3371 [09:13:54]process_action close_receipt done [09:13:54]requested_data is exist [09:13:54]produce_requested_data [09:13:54]requested_item fm.sn is exist - process it [09:13:54]wFMCommunicate request_size=4 [09:13:54]MH_SAM_APDU [09:13:54]CAPDU: 80 11 00 00 [09:13:54]Write to MH i2c: E2 08 00 6D 37 80 11 00 00 00 00 00 00 1E [09:13:54]Write i2c OK [09:13:54]MH_I2C_Read... [09:13:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:54]Read from MH i2c: E2 [09:13:54]MH_I2C_Read... [09:13:54]Read from MH i2c: E2 17 00 [09:13:54]MH_I2C_Read... [09:13:54]Read from MH i2c: E2 17 00 6D 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 75 [09:13:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:13:54]wFMCommunicate OK [09:13:54]requested_item fd.num is exist - process it [09:13:54]SAM_PROTO_GetFieldsCounters [09:13:54]wFMCommunicate request_size=4 [09:13:54]MH_SAM_APDU [09:13:54]CAPDU: 80 13 00 00 [09:13:54]Write to MH i2c: E2 08 00 6E 37 80 13 00 00 00 00 00 00 21 [09:13:54]Write i2c OK [09:13:54]MH_I2C_Read... [09:13:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:13:54]Read from MH i2c: E2 [09:13:54]MH_I2C_Read... [09:13:54]Read from MH i2c: E2 62 00 [09:13:54]MH_I2C_Read... [09:13:54]Read from MH i2c: E2 62 00 6E 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 C2 77 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [09:13: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 C2 77 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:13:54]wFMCommunicate OK [09:13:54]SAM_PROTO_GetFieldsCounters done [09:13:54]requested_item shift.num is exist - process it [09:13:54]requested_item shift.opened is exist - process it [09:13:54]req_shift_opened [09:13:54]FM_GetShiftState [09:13:54]SAM_PROTO_GetShiftState [09:13:54]wFMCommunicate request_size=4 [09:13:54]MH_SAM_APDU [09:13:54]CAPDU: 80 13 01 00 [09:13:54]Write to MH i2c: E2 08 00 6F 37 80 13 01 00 00 00 00 00 23 [09:13:54]Write i2c OK [09:13:54]MH_I2C_Read... [09:13:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:54]Read from MH i2c: E2 [09:13:54]MH_I2C_Read... [09:13:54]Read from MH i2c: E2 0E 00 [09:13:54]MH_I2C_Read... [09:13:54]Read from MH i2c: E2 0E 00 6F 37 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 3D [09:13:54]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:13:54]wFMCommunicate OK [09:13:54]SAM_PROTO_GetShiftState done [09:13:54]FM_GetShiftState done [09:13:54]req_shift_opened done [09:13:54]requested_item shift.open_date is exist - process it [09:13:54]req_shift_open_date [09:13:54]req_shift_open_date done [09:13:54]produce_requested_data done [09:13:54]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227266,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [09:13:54]process_action_free close_receipt [09:13:54]json_value_free [09:13:54]json_value_free done [09:13:54]process_json_proto returns [09:13:54]Send response to host [09:13:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227266,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [09:13:54]free response buf [09:13:54]execute_script done [09:13:54]execute_script returns [09:13:54]free content buf [09:13:54]Sock 9.Close socket [09:13:54]Sock 9.Thread stoped [09:13:54]OFD Sender: No OFD packet to send [09:13:59]OFD Sender: No OFD packet to send [09:14:04]OFD Sender: No OFD packet to send [09:14:09]OFD Sender: No OFD packet to send [09:14:14]OFD Sender: No OFD packet to send [09:14:19]OFD Sender: No OFD packet to send [09:14:24]OFD Sender: No OFD packet to send [09:14:29]OFD Sender: No OFD packet to send [09:14:34]OFD Sender: No OFD packet to send [09:14:39]OFD Sender: No OFD packet to send [09:14:44]OFD Sender: No OFD packet to send [09:14:49]OFD Sender: No OFD packet to send [09:14:54]OFD Sender: No OFD packet to send [09:14:59]OFD Sender: No OFD packet to send [09:15:04]OFD Sender: No OFD packet to send [09:15:09]OFD Sender: No OFD packet to send [09:15:14]OFD Sender: No OFD packet to send [09:15:16]accept exits with 8 [09:15:16]New connection [09:15:16]New thread 3066965348 created [09:15:16]Thread 3066821988 joined [09:15:16]Waiting for new connection... [09:15:16] Sock 8.Parse request [09:15:16]Sock 8.Check first char [09:15:16]Sock 8.First char is OK [09:15:16]request: POST /json_proto HTTP/1.0 [09:15:16]Method: POST [09:15:16]URL: /json_proto [09:15:16]Method is POST - this is cgi request [09:15:16]url: /json_proto [09:15:16]query_string will be loaded in cgi processing [09:15:16]execute_cgi json_proto POST (null) [09:15:16]execute_cgi path=json_proto method=POST [09:15:16]POST find Content-Length [09:15:16]Host: 172.17.44.195:8080 [09:15:16]Content-Length: 798 [09:15:16]Content-Type: application/json [09:15:16] [09:15:16]POST finish read [09:15:16]Found Content-Length = 798 [09:15:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962734", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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\u000A4295179", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:16]execute_script... [09:15: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)1962734", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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\u000A4295179", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:16]POST & json_proto [09:15:16]process_json_proto [09:15:16]json parsed OK: [09:15:16]protocol is kg_v1.0 [09:15:16]action value=close_receipt [09:15:16]process_action close_receipt [09:15:16]cmd_close_receipt [09:15:16]MH_GetDate [09:15:16]Write to MH i2c: F0 00 00 70 37 96 [09:15:16]Write i2c OK [09:15:16]MH_I2C_Read... [09:15:16]Read from MH i2c: F0 [09:15:16]MH_I2C_Read... [09:15:16]Read from MH i2c: F0 09 00 [09:15:16]MH_I2C_Read... [09:15:16]Read from MH i2c: F0 09 00 70 37 00 28 CA 14 67 82 C9 CF 66 8C [09:15:16]GetLastDocTimeStamp 1729415636 [09:15:16]current date 1729415720 [09:15:16]FM_GetShiftState [09:15:16]SAM_PROTO_GetShiftState [09:15:16]wFMCommunicate request_size=4 [09:15:16]MH_SAM_APDU [09:15:16]CAPDU: 80 13 01 00 [09:15:16]Write to MH i2c: E2 08 00 71 37 80 13 01 00 00 00 00 00 25 [09:15:16]Write i2c OK [09:15:16]MH_I2C_Read... [09:15:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:16]Read from MH i2c: E2 [09:15:16]MH_I2C_Read... [09:15:16]Read from MH i2c: E2 0E 00 [09:15:16]MH_I2C_Read... [09:15:16]Read from MH i2c: E2 0E 00 71 37 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 3F [09:15:16]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:15:16]wFMCommunicate OK [09:15:16]SAM_PROTO_GetShiftState done [09:15:16]FM_GetShiftState done [09:15:16]opened in 1729383750 [09:15:16]opened+sec_in_day 1729470150 [09:15:16]quantity*price = 0 [09:15:16]sum+1 = 1 [09:15:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 115 20.10.2024 09:15 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Талоны: Топливные Талоны 4295179 ФМ: 0000000000871839 ФД: 227267 ФПД: 159613563324048 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T091520&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227267&fm=159613563324048&tin=02508201610067®Number=0000000000091685&sum=0 [09:15:17]StoreToDocumentArchive [09:15:17]shift 533 fd 227267 [09:15:17]save to /storage/0533/doc_00227267 [09:15:17]save last doc name /storage/0533/doc_00227267 to /storage/kkm_last_doc_name [09:15:17]save OK [09:15:17]Clear old archive folders... [09:15:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:15:17]tlvbuf is 0055D490 [09:15:17]SAM_PROTO_ClearQueue [09:15:17]wFMCommunicate request_size=4 [09:15:17]MH_SAM_APDU [09:15:17]CAPDU: 80 09 00 00 [09:15:17]Write to MH i2c: E2 08 00 7E 37 80 09 00 00 00 00 00 00 27 [09:15:17]Write i2c OK [09:15:17]MH_I2C_Read... [09:15:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:15:17]Read from MH i2c: E2 [09:15:17]MH_I2C_Read... [09:15:17]Read from MH i2c: E2 03 00 [09:15:17]MH_I2C_Read... [09:15:17]Read from MH i2c: E2 03 00 7E 37 00 90 00 29 [09:15:17]RAPDU: 90 00 [09:15:17]wFMCommunicate OK [09:15:17]SAM_PROTO_ClearQueue done [09:15:17]KKMCreateOFDPacket [09:15:17]OFDProtocolAddRootSTLVToBuf [09:15:17]FM_MakeSignedData [09:15:17]FM_MakeSignedData [09:15:17]SAM_PROTO_SignData [09:15:17]wFMCommunicate request_size=4 [09:15:17]MH_SAM_APDU [09:15:17]CAPDU: 80 0D 01 02 [09:15:17]Write to MH i2c: E2 08 00 7F 37 80 0D 01 02 00 00 00 00 2F [09:15:17]Write i2c OK [09:15:17]MH_I2C_Read... [09:15:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:15:17]Read from MH i2c: E2 [09:15:17]MH_I2C_Read... [09:15:17]Read from MH i2c: E2 03 00 [09:15:17]MH_I2C_Read... [09:15:17]Read from MH i2c: E2 03 00 7F 37 00 90 00 2A [09:15:17]RAPDU: 90 00 [09:15:17]wFMCommunicate OK [09:15:17]wFMCommunicate request_size=255 [09:15:17]MH_SAM_APDU [09:15: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 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 73 00 00 00 F4 03 04 00 28 CA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C3 77 03 00 35 04 06 00 91 2A ED BE [09:15:17]Write to MH i2c: E2 02 01 80 37 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 28 CA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C3 77 03 00 35 04 06 00 91 2A ED BE 00 00 65 [09:15:17]Write i2c OK [09:15:17]MH_I2C_Read... [09:15:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:17]Read from MH i2c: E2 [09:15:17]MH_I2C_Read... [09:15:17]Read from MH i2c: E2 03 00 [09:15:17]MH_I2C_Read... [09:15:17]Read from MH i2c: E2 03 00 80 37 00 90 00 2B [09:15:17]RAPDU: 90 00 [09:15:17]wFMCommunicate OK [09:15:17]wFMCommunicate request_size=7 [09:15:17]MH_SAM_APDU [09:15:17]CAPDU: 80 0D 02 02 02 46 90 [09:15:17]Write to MH i2c: E2 0A 00 81 37 80 0D 02 02 02 00 46 90 00 00 0C [09:15:17]Write i2c OK [09:15:17]MH_I2C_Read... [09:15:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:17]Read from MH i2c: E2 [09:15:17]MH_I2C_Read... [09:15:17]Read from MH i2c: E2 03 00 [09:15:17]MH_I2C_Read... [09:15:17]Read from MH i2c: E2 03 00 81 37 00 90 00 2C [09:15:17]RAPDU: 90 00 [09:15:17]wFMCommunicate OK [09:15:17]wFMCommunicate request_size=4 [09:15:17]MH_SAM_APDU [09:15:17]CAPDU: 80 0D 03 02 [09:15:17]Write to MH i2c: E2 08 00 82 37 80 0D 03 02 00 00 00 00 34 [09:15:17]Write i2c OK [09:15:17]MH_I2C_Read... [09:15:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:15:18]Read from MH i2c: E2 [09:15:18]MH_I2C_Read... [09:15:18]Read from MH i2c: E2 0B 00 [09:15:18]MH_I2C_Read... [09:15:18]Read from MH i2c: E2 0B 00 82 37 00 E0 F2 97 46 1B 7D 0F 25 90 00 B0 [09:15:18]RAPDU: E0 F2 97 46 1B 7D 0F 25 90 00 [09:15:18]wFMCommunicate OK [09:15:18]SAM_PROTO_SignData done [09:15:18]FM_MakeSignedData done [09:15:18]CreateOFDProtocolMessage [09:15:18]wFMCommunicate request_size=4 [09:15:18]MH_SAM_APDU [09:15:18]CAPDU: 80 11 00 00 [09:15:18]Write to MH i2c: E2 08 00 83 37 80 11 00 00 00 00 00 00 34 [09:15:18]Write i2c OK [09:15:18]MH_I2C_Read... [09:15:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:18]Read from MH i2c: E2 [09:15:18]MH_I2C_Read... [09:15:18]Read from MH i2c: E2 17 00 [09:15:18]MH_I2C_Read... [09:15:18]Read from MH i2c: E2 17 00 83 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 8B [09:15:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:15:18]wFMCommunicate OK [09:15:18]CreateOFDProtocolMessage done [09:15:18]OFDSenderStorePacket 227267 [09:15:18]StoreOFDPacket docnum=227267 [09:15:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 55 3F 04 01 32 E2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 73 00 00 00 F4 03 04 00 28 CA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C3 77 03 00 35 04 06 00 91 2A ED BE 46 90 E0 F2 97 46 1B 7D 0F 25 [09:15:18]CheckFolder [09:15:18]dirname=/storage/ofd_packets [09:15:18]CheckFolder done [09:15:18]ProducePacketName [09:15:18]name=ofd_packets/00227267 [09:15:18]NVStorageSaveData ofd_packets/00227267 [09:15:18]File name is /storage/ofd_packets/00227267 [09:15:18]Write 298 bytes [09:15:18]NVStorageSaveData done [09:15:18]OFDSenderStorePacket done [09:15:18]KKMCreateOFDPacket done [09:15:18]NVStorageSaveData kkm_last_timestamp [09:15:18]File name is /storage/kkm_last_timestamp [09:15:18]Write 4 bytes [09:15:18]NVStorageSaveData done [09:15:18]ExternCall_PrintAddStr [09:15:18]wPrintStart [09:15:18]Write to MH i2c: 01 00 00 84 37 BB [09:15:18]Write i2c OK [09:15:18]MH_I2C_Read... [09:15:18]Read from MH i2c: 01 [09:15:18]MH_I2C_Read... [09:15:18]Read from MH i2c: 01 07 00 [09:15:18]MH_I2C_Read... [09:15:18]Read from MH i2c: 01 07 00 84 37 00 00 00 00 00 FF 0F D0 [09:15:18]RasterBufferAndPrint [09:15:18]line Счет N : (1)1962734 [09:15:18]line ИНН: 02508201610067 [09:15:18]line Контрольно-Кассовый Чек [09:15:18]line ПРОДАЖА [09:15:18]line ТРК (МРК, ГНК) : 21 [09:15:18]line Товар: 2710194210 [09:15:18]line ДТ-К-5 [09:15:18]line 10.000 * 0.00 [09:15:18]line = 0.00 [09:15:18]line НДС 12% НСП 1% [09:15:18]line > о реализуемом товаре [09:15:18]line ИТОГО: 0.00 [09:15:18]line НСП 1% : 0.00 [09:15:18]line НДС 12% : 0.00 [09:15:18]line Наличными: 0.00 [09:15:18]line Безнал.: 0.00 [09:15:18]line Место: АЗС № 133 "Партнер Нефть" [09:15:18]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:15:18]line СНО: Общий режим [09:15:18]line Чек 115 20.10.2024 09:15 [09:15:18]line Смена: 533 ФФД: 1.0 [09:15:18]line ЗНМ: 0300000091 [09:15:18]line РНМ: 0000000000091685 [09:15:18]line Версия ККМ: 001 [09:15:18]line Талоны: Топливные Талоны [09:15:18]line 4295179 [09:15:18]line ФМ: 0000000000871839 [09:15:18]line ФД: 227267 [09:15:18]line ФПД: 159613563324048 [09:15:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T091520&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227267&fm=159613563324048&tin=02508201610067®Number=0000000000091685&sum=0 [09:15:18]OFD Sender: Processing packet 227267 [packets to send 38, broken 37] [09:15:18]ProducePacketName [09:15:18]name=ofd_packets/00227267 [09:15:18]OFD Sender: To server: pG, [09:15:18]CommunicateWithHost lk.salyk.kg:30040 [09:15:18]ConnectInit lk.salyk.kg [09:15:18]written 0, free lines is 4095 [09:15:18]Connected sock=10 [09:15: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 33 39 0C 01 00 00 55 3F 04 01 32 E2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 73 00 00 00 F4 03 04 00 28 CA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C3 77 03 00 35 04 06 00 91 2A ED BE 46 90 E0 F2 97 46 1B 7D 0F 25 [09:15: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 33 39 4F 00 00 00 33 5A 47 00 F0 BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C3 77 03 00 F4 03 04 00 27 75 14 67 B6 04 01 00 00 1C 6F D5 CA BB 43 90 0B [09:15:18]CommunicateWithHost err = 0 [09:15:18]CheckOFDResponse [09:15:18]1017 (14) - 77093643461234 [09:15:18]1041 (16) - 0000000000871839 [09:15:18]1040 (4) - 227267 [09:15:18]1012 (4) - 20.10.2024 03:12 [09:15:18]1206 (1) - 0 [09:15:18]OFD Sender: Remove packet 227267 [09:15:18]ProducePacketName [09:15:18]name=ofd_packets/00227267 [09:15:18]NVStorageDeleteData [09:15:18]Write to MH i2c: 01 00 00 AD 37 E4 [09:15:18]Write i2c OK [09:15:18]MH_I2C_Read... [09:15:18]Read from MH i2c: 01 [09:15:18]MH_I2C_Read... [09:15:18]Read from MH i2c: 01 07 00 [09:15:18]MH_I2C_Read... [09:15:18]Read from MH i2c: 01 07 00 AD 37 00 00 00 00 00 13 0D 0B [09:15:18]RasterBufferAndPrint [09:15:18]line [09:15:18]line [09:15:18]line [09:15:18]line [09:15:18]line [09:15:18]written 0, free lines is 3353 [09:15:18]process_action close_receipt done [09:15:18]requested_data is exist [09:15:18]produce_requested_data [09:15:18]requested_item fm.sn is exist - process it [09:15:18]wFMCommunicate request_size=4 [09:15:18]MH_SAM_APDU [09:15:18]CAPDU: 80 11 00 00 [09:15:18]Write to MH i2c: E2 08 00 B4 37 80 11 00 00 00 00 00 00 65 [09:15:18]Write i2c OK [09:15:18]MH_I2C_Read... [09:15:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:18]Read from MH i2c: E2 [09:15:18]MH_I2C_Read... [09:15:18]Read from MH i2c: E2 17 00 [09:15:18]MH_I2C_Read... [09:15:18]Read from MH i2c: E2 17 00 B4 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 BC [09:15:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:15:18]wFMCommunicate OK [09:15:18]requested_item fd.num is exist - process it [09:15:18]SAM_PROTO_GetFieldsCounters [09:15:18]wFMCommunicate request_size=4 [09:15:18]MH_SAM_APDU [09:15:18]CAPDU: 80 13 00 00 [09:15:18]Write to MH i2c: E2 08 00 B5 37 80 13 00 00 00 00 00 00 68 [09:15:18]Write i2c OK [09:15:18]MH_I2C_Read... [09:15:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:15:19]Read from MH i2c: E2 [09:15:19]MH_I2C_Read... [09:15:19]Read from MH i2c: E2 62 00 [09:15:19]MH_I2C_Read... [09:15:19]Read from MH i2c: E2 62 00 B5 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 C3 77 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 3E [09:15: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 C3 77 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:15:19]wFMCommunicate OK [09:15:19]SAM_PROTO_GetFieldsCounters done [09:15:19]requested_item shift.num is exist - process it [09:15:19]requested_item shift.opened is exist - process it [09:15:19]req_shift_opened [09:15:19]FM_GetShiftState [09:15:19]SAM_PROTO_GetShiftState [09:15:19]wFMCommunicate request_size=4 [09:15:19]MH_SAM_APDU [09:15:19]CAPDU: 80 13 01 00 [09:15:19]Write to MH i2c: E2 08 00 B6 37 80 13 01 00 00 00 00 00 6A [09:15:19]Write i2c OK [09:15:19]MH_I2C_Read... [09:15:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:19]Read from MH i2c: E2 [09:15:19]MH_I2C_Read... [09:15:19]Read from MH i2c: E2 0E 00 [09:15:19]MH_I2C_Read... [09:15:19]Read from MH i2c: E2 0E 00 B6 37 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 84 [09:15:19]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:15:19]wFMCommunicate OK [09:15:19]SAM_PROTO_GetShiftState done [09:15:19]FM_GetShiftState done [09:15:19]req_shift_opened done [09:15:19]requested_item shift.open_date is exist - process it [09:15:19]req_shift_open_date [09:15:19]req_shift_open_date done [09:15:19]produce_requested_data done [09:15:19]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227267,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [09:15:19]process_action_free close_receipt [09:15:19]json_value_free [09:15:19]json_value_free done [09:15:19]process_json_proto returns [09:15:19]Send response to host [09:15:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227267,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [09:15:19]free response buf [09:15:19]execute_script done [09:15:19]execute_script returns [09:15:19]free content buf [09:15:19]Sock 8.Close socket [09:15:19]Sock 8.Thread stoped [09:15:19]OFD Sender: No OFD packet to send [09:15:24]OFD Sender: No OFD packet to send [09:15:29]OFD Sender: No OFD packet to send [09:15:34]OFD Sender: No OFD packet to send [09:15:39]OFD Sender: No OFD packet to send [09:15:44]OFD Sender: No OFD packet to send [09:15:49]OFD Sender: No OFD packet to send [09:15:51]accept exits with 9 [09:15:51]New connection [09:15:51]New thread 3066821988 created [09:15:51]Thread 3066965348 joined [09:15:51]Waiting for new connection... [09:15:51] Sock 9.Parse request [09:15:51]Sock 9.Check first char [09:15:51]Sock 9.First char is OK [09:15:51]request: POST /json_proto HTTP/1.0 [09:15:51]Method: POST [09:15:51]URL: /json_proto [09:15:51]Method is POST - this is cgi request [09:15:51]url: /json_proto [09:15:51]query_string will be loaded in cgi processing [09:15:51]execute_cgi json_proto POST (null) [09:15:51]execute_cgi path=json_proto method=POST [09:15:51]POST find Content-Length [09:15:51]Host: 172.17.44.195:8080 [09:15:51]Content-Length: 979 [09:15:51]Content-Type: application/json [09:15:51] [09:15:51]POST finish read [09:15:51]Found Content-Length = 979 [09:15:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962730", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 66.490, "sum" : 5000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 133\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 66.49 \u0441\u043E\u043C", "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:51]execute_script... [09:15: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)1962730", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 66.490, "sum" : 5000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 133\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 66.49 \u0441\u043E\u043C", "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:51]POST & json_proto [09:15:51]process_json_proto [09:15:51]json parsed OK: [09:15:51]protocol is kg_v1.0 [09:15:51]action value=close_receipt [09:15:51]process_action close_receipt [09:15:51]cmd_close_receipt [09:15:51]MH_GetDate [09:15:51]Write to MH i2c: F0 00 00 B7 37 DD [09:15:51]Write i2c OK [09:15:51]MH_I2C_Read... [09:15:51]Read from MH i2c: F0 [09:15:51]MH_I2C_Read... [09:15:51]Read from MH i2c: F0 09 00 [09:15:51]MH_I2C_Read... [09:15:51]Read from MH i2c: F0 09 00 B7 37 00 4B CA 14 67 82 C9 CF 66 F6 [09:15:51]GetLastDocTimeStamp 1729415720 [09:15:51]current date 1729415755 [09:15:51]FM_GetShiftState [09:15:51]SAM_PROTO_GetShiftState [09:15:51]wFMCommunicate request_size=4 [09:15:51]MH_SAM_APDU [09:15:51]CAPDU: 80 13 01 00 [09:15:51]Write to MH i2c: E2 08 00 B8 37 80 13 01 00 00 00 00 00 6C [09:15:51]Write i2c OK [09:15:51]MH_I2C_Read... [09:15:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:51]Read from MH i2c: E2 [09:15:51]MH_I2C_Read... [09:15:51]Read from MH i2c: E2 0E 00 [09:15:51]MH_I2C_Read... [09:15:51]Read from MH i2c: E2 0E 00 B8 37 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 86 [09:15:51]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:15:51]wFMCommunicate OK [09:15:51]SAM_PROTO_GetShiftState done [09:15:51]FM_GetShiftState done [09:15:51]opened in 1729383750 [09:15:51]opened+sec_in_day 1729470150 [09:15:51]quantity*price = 500004 [09:15:51]sum+1 = 500006 [09:15:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 530.98 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 116 20.10.2024 09:15 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Дисконтная программа ДТ номер 133 сэкономлено 66.49 сом ФМ: 0000000000871839 ФД: 227268 ФПД: 274267462064440 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T091555&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227268&fm=274267462064440&tin=02508201610067®Number=0000000000091685&sum=500000 [09:15:52]StoreToDocumentArchive [09:15:52]shift 533 fd 227268 [09:15:52]save to /storage/0533/doc_00227268 [09:15:52]save last doc name /storage/0533/doc_00227268 to /storage/kkm_last_doc_name [09:15:52]save OK [09:15:52]Clear old archive folders... [09:15:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:15:52]tlvbuf is 0050F020 [09:15:52]SAM_PROTO_ClearQueue [09:15:52]wFMCommunicate request_size=4 [09:15:52]MH_SAM_APDU [09:15:52]CAPDU: 80 09 00 00 [09:15:52]Write to MH i2c: E2 08 00 C5 37 80 09 00 00 00 00 00 00 6E [09:15:52]Write i2c OK [09:15:52]MH_I2C_Read... [09:15:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:15:52]Read from MH i2c: E2 [09:15:52]MH_I2C_Read... [09:15:52]Read from MH i2c: E2 03 00 [09:15:52]MH_I2C_Read... [09:15:52]Read from MH i2c: E2 03 00 C5 37 00 90 00 70 [09:15:52]RAPDU: 90 00 [09:15:52]wFMCommunicate OK [09:15:52]SAM_PROTO_ClearQueue done [09:15:52]KKMCreateOFDPacket [09:15:52]OFDProtocolAddRootSTLVToBuf [09:15:52]FM_MakeSignedData [09:15:52]FM_MakeSignedData [09:15:52]SAM_PROTO_SignData [09:15:52]wFMCommunicate request_size=4 [09:15:52]MH_SAM_APDU [09:15:52]CAPDU: 80 0D 01 02 [09:15:52]Write to MH i2c: E2 08 00 C6 37 80 0D 01 02 00 00 00 00 76 [09:15:52]Write i2c OK [09:15:52]MH_I2C_Read... [09:15:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:15:52]Read from MH i2c: E2 [09:15:52]MH_I2C_Read... [09:15:52]Read from MH i2c: E2 03 00 [09:15:52]MH_I2C_Read... [09:15:52]Read from MH i2c: E2 03 00 C6 37 00 90 00 71 [09:15:52]RAPDU: 90 00 [09:15:52]wFMCommunicate OK [09:15:52]wFMCommunicate request_size=255 [09:15:52]MH_SAM_APDU [09:15: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 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 4B CA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C4 77 03 00 35 04 06 00 F9 71 DE A6 [09:15:52]Write to MH i2c: E2 02 01 C7 37 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 4B CA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C4 77 03 00 35 04 06 00 F9 71 DE A6 00 00 4D [09:15:52]Write i2c OK [09:15:52]MH_I2C_Read... [09:15:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:53]Read from MH i2c: E2 [09:15:53]MH_I2C_Read... [09:15:53]Read from MH i2c: E2 03 00 [09:15:53]MH_I2C_Read... [09:15:53]Read from MH i2c: E2 03 00 C7 37 00 90 00 72 [09:15:53]RAPDU: 90 00 [09:15:53]wFMCommunicate OK [09:15:53]wFMCommunicate request_size=7 [09:15:53]MH_SAM_APDU [09:15:53]CAPDU: 80 0D 02 02 02 59 38 [09:15:53]Write to MH i2c: E2 0A 00 C8 37 80 0D 02 02 02 00 59 38 00 00 0E [09:15:53]Write i2c OK [09:15:53]MH_I2C_Read... [09:15:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:53]Read from MH i2c: E2 [09:15:53]MH_I2C_Read... [09:15:53]Read from MH i2c: E2 03 00 [09:15:53]MH_I2C_Read... [09:15:53]Read from MH i2c: E2 03 00 C8 37 00 90 00 73 [09:15:53]RAPDU: 90 00 [09:15:53]wFMCommunicate OK [09:15:53]wFMCommunicate request_size=4 [09:15:53]MH_SAM_APDU [09:15:53]CAPDU: 80 0D 03 02 [09:15:53]Write to MH i2c: E2 08 00 C9 37 80 0D 03 02 00 00 00 00 7B [09:15:53]Write i2c OK [09:15:53]MH_I2C_Read... [09:15:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:15:53]Read from MH i2c: E2 [09:15:53]MH_I2C_Read... [09:15:53]Read from MH i2c: E2 0B 00 [09:15:53]MH_I2C_Read... [09:15:53]Read from MH i2c: E2 0B 00 C9 37 00 63 84 3E 8F B0 0E 67 7C 90 00 D1 [09:15:53]RAPDU: 63 84 3E 8F B0 0E 67 7C 90 00 [09:15:53]wFMCommunicate OK [09:15:53]SAM_PROTO_SignData done [09:15:53]FM_MakeSignedData done [09:15:53]CreateOFDProtocolMessage [09:15:53]wFMCommunicate request_size=4 [09:15:53]MH_SAM_APDU [09:15:53]CAPDU: 80 11 00 00 [09:15:53]Write to MH i2c: E2 08 00 CA 37 80 11 00 00 00 00 00 00 7B [09:15:53]Write i2c OK [09:15:53]MH_I2C_Read... [09:15:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:53]Read from MH i2c: E2 [09:15:53]MH_I2C_Read... [09:15:53]Read from MH i2c: E2 17 00 [09:15:53]MH_I2C_Read... [09:15:53]Read from MH i2c: E2 17 00 CA 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D2 [09:15:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:15:53]wFMCommunicate OK [09:15:53]CreateOFDProtocolMessage done [09:15:53]OFDSenderStorePacket 227268 [09:15:53]StoreOFDPacket docnum=227268 [09:15:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 02 FE 04 01 5C 15 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 4B CA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C4 77 03 00 35 04 06 00 F9 71 DE A6 59 38 63 84 3E 8F B0 0E 67 7C [09:15:53]CheckFolder [09:15:53]dirname=/storage/ofd_packets [09:15:53]CheckFolder done [09:15:53]ProducePacketName [09:15:53]name=ofd_packets/00227268 [09:15:53]NVStorageSaveData ofd_packets/00227268 [09:15:53]File name is /storage/ofd_packets/00227268 [09:15:53]Write 298 bytes [09:15:53]NVStorageSaveData done [09:15:53]OFDSenderStorePacket done [09:15:53]KKMCreateOFDPacket done [09:15:53]NVStorageSaveData kkm_last_timestamp [09:15:53]File name is /storage/kkm_last_timestamp [09:15:53]Write 4 bytes [09:15:53]NVStorageSaveData done [09:15:53]ExternCall_PrintAddStr [09:15:53]wPrintStart [09:15:53]Write to MH i2c: 01 00 00 CB 37 02 [09:15:53]Write i2c OK [09:15:53]MH_I2C_Read... [09:15:53]Read from MH i2c: 01 [09:15:53]MH_I2C_Read... [09:15:53]Read from MH i2c: 01 07 00 [09:15:53]MH_I2C_Read... [09:15:53]Read from MH i2c: 01 07 00 CB 37 00 00 00 00 00 FF 0F 17 [09:15:53]RasterBufferAndPrint [09:15:53]line Счет N : (1)1962730 [09:15:53]line ИНН: 02508201610067 [09:15:53]line Контрольно-Кассовый Чек [09:15:53]line ПРОДАЖА [09:15:53]line ТРК (МРК, ГНК) : 11 [09:15:53]line Товар: 2710194210 [09:15:53]line ДТ-К-5 [09:15:53]line 66.490 * 75.20 [09:15:53]line = 5000.05 [09:15:53]line НДС 12% НСП 1% [09:15:53]line > о реализуемом товаре [09:15:53]line ОКРУГЛЕНИЕ: -0.05 [09:15:53]line ИТОГО: 5000.00 [09:15:53]line Внесено: 5000.00 [09:15:53]line СДАЧА: 0.00 [09:15:53]line НСП 1% : 44.25 [09:15:53]line НДС 12% : 530.98 [09:15:53]line Наличными: 5000.00 [09:15:53]line Безнал.: 0.00 [09:15:53]line Место: АЗС № 133 "Партнер Нефть" [09:15:53]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:15:53]line СНО: Общий режим [09:15:53]line Чек 116 20.10.2024 09:15 [09:15:53]line Смена: 533 ФФД: 1.0 [09:15:53]line ЗНМ: 0300000091 [09:15:53]line РНМ: 0000000000091685 [09:15:53]line Версия ККМ: 001 [09:15:53]line [09:15:53]line Дисконтная программа [09:15:53]line ДТ [09:15:53]line номер 133 [09:15:53]line сэкономлено 66.49 сом [09:15:53]line ФМ: 0000000000871839 [09:15:53]line ФД: 227268 [09:15:53]line ФПД: 274267462064440 [09:15:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T091555&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227268&fm=274267462064440&tin=02508201610067®Number=0000000000091685&sum=500000 [09:15:53]OFD Sender: Processing packet 227268 [packets to send 38, broken 37] [09:15:53]ProducePacketName [09:15:53]name=ofd_packets/00227268 [09:15:53]OFD Sender: To server: pG, [09:15:53]CommunicateWithHost lk.salyk.kg:30040 [09:15:53]ConnectInit lk.salyk.kg [09:15:53]written 0, free lines is 4095 [09:15:53]Connected sock=10 [09:15:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 02 FE 04 01 5C 15 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 4B CA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C4 77 03 00 35 04 06 00 F9 71 DE A6 59 38 63 84 3E 8F B0 0E 67 7C [09:15: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 33 39 4F 00 00 00 8B C5 47 00 17 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 33 39 10 04 04 00 C4 77 03 00 F4 03 04 00 4B 75 14 67 B6 04 01 00 00 72 71 D9 65 C0 6A CB 03 [09:15:54]CommunicateWithHost err = 0 [09:15:54]CheckOFDResponse [09:15:54]1017 (14) - 77093643461234 [09:15:54]1041 (16) - 0000000000871839 [09:15:54]1040 (4) - 227268 [09:15:54]1012 (4) - 20.10.2024 03:13 [09:15:54]1206 (1) - 0 [09:15:54]OFD Sender: Remove packet 227268 [09:15:54]ProducePacketName [09:15:54]name=ofd_packets/00227268 [09:15:54]NVStorageDeleteData [09:15:54]Write to MH i2c: 01 00 00 FA 37 31 [09:15:54]Write i2c OK [09:15:54]MH_I2C_Read... [09:15:54]Read from MH i2c: 01 [09:15:54]MH_I2C_Read... [09:15:54]Read from MH i2c: 01 07 00 [09:15:54]MH_I2C_Read... [09:15:54]Read from MH i2c: 01 07 00 FA 37 00 00 00 00 00 B4 0C F8 [09:15:54]RasterBufferAndPrint [09:15:54]line [09:15:54]line [09:15:54]line [09:15:54]line [09:15:54]line [09:15:54]written 0, free lines is 3258 [09:15:54]process_action close_receipt done [09:15:54]requested_data is exist [09:15:54]produce_requested_data [09:15:54]requested_item fm.sn is exist - process it [09:15:54]wFMCommunicate request_size=4 [09:15:54]MH_SAM_APDU [09:15:54]CAPDU: 80 11 00 00 [09:15:54]Write to MH i2c: E2 08 00 01 38 80 11 00 00 00 00 00 00 B3 [09:15:54]Write i2c OK [09:15:54]MH_I2C_Read... [09:15:54]Read from MH i2c: E2 [09:15:54]MH_I2C_Read... [09:15:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:54]Read from MH i2c: E2 17 00 [09:15:54]MH_I2C_Read... [09:15:54]Read from MH i2c: E2 17 00 01 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 0A [09:15:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:15:54]wFMCommunicate OK [09:15:54]requested_item fd.num is exist - process it [09:15:54]SAM_PROTO_GetFieldsCounters [09:15:54]wFMCommunicate request_size=4 [09:15:54]MH_SAM_APDU [09:15:54]CAPDU: 80 13 00 00 [09:15:54]Write to MH i2c: E2 08 00 02 38 80 13 00 00 00 00 00 00 B6 [09:15:54]Write i2c OK [09:15:54]MH_I2C_Read... [09:15:54]Read from MH i2c: E2 [09:15:54]MH_I2C_Read... [09:15:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:15:54]Read from MH i2c: E2 62 00 [09:15:54]MH_I2C_Read... [09:15:54]Read from MH i2c: E2 62 00 02 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 C4 77 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [09: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 C4 77 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:15:54]wFMCommunicate OK [09:15:54]SAM_PROTO_GetFieldsCounters done [09:15:54]requested_item shift.num is exist - process it [09:15:54]requested_item shift.opened is exist - process it [09:15:54]req_shift_opened [09:15:54]FM_GetShiftState [09:15:54]SAM_PROTO_GetShiftState [09:15:54]wFMCommunicate request_size=4 [09:15:54]MH_SAM_APDU [09:15:54]CAPDU: 80 13 01 00 [09:15:54]Write to MH i2c: E2 08 00 03 38 80 13 01 00 00 00 00 00 B8 [09:15:54]Write i2c OK [09:15:54]MH_I2C_Read... [09:15:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:54]Read from MH i2c: E2 [09:15:54]MH_I2C_Read... [09:15:54]Read from MH i2c: E2 0E 00 [09:15:54]MH_I2C_Read... [09:15:54]Read from MH i2c: E2 0E 00 03 38 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 D2 [09:15:54]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:15:54]wFMCommunicate OK [09:15:54]SAM_PROTO_GetShiftState done [09:15:54]FM_GetShiftState done [09:15:54]req_shift_opened done [09:15:54]requested_item shift.open_date is exist - process it [09:15:54]req_shift_open_date [09:15:54]req_shift_open_date done [09:15:54]produce_requested_data done [09:15:54]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227268,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [09:15:54]process_action_free close_receipt [09:15:54]json_value_free [09:15:54]json_value_free done [09:15:54]process_json_proto returns [09:15:54]Send response to host [09:15:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227268,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [09:15:54]free response buf [09:15:54]execute_script done [09:15:54]execute_script returns [09:15:54]free content buf [09:15:54]Sock 9.Close socket [09:15:54]Sock 9.Thread stoped [09:15:54]OFD Sender: No OFD packet to send [09:15:54]accept exits with 8 [09:15:54]New connection [09:15:54]New thread 3066965348 created [09:15:54]Thread 3066821988 joined [09:15:54]Waiting for new connection... [09:15:54] Sock 8.Parse request [09:15:54]Sock 8.Check first char [09:15:54]Sock 8.First char is OK [09:15:54]request: POST /json_proto HTTP/1.0 [09:15:54]Method: POST [09:15:54]URL: /json_proto [09:15:54]Method is POST - this is cgi request [09:15:54]url: /json_proto [09:15:54]query_string will be loaded in cgi processing [09:15:54]execute_cgi json_proto POST (null) [09:15:54]execute_cgi path=json_proto method=POST [09:15:54]POST find Content-Length [09:15:54]Host: 172.17.44.195:8080 [09:15:54]Content-Length: 678 [09:15:54]Content-Type: application/json [09:15:54] [09:15:54]POST finish read [09:15:54]Found Content-Length = 678 [09:15:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962735", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:54]execute_script... [09:15: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)1962735", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:54]POST & json_proto [09:15:54]process_json_proto [09:15:54]json parsed OK: [09:15:54]protocol is kg_v1.0 [09:15:54]action value=close_receipt [09:15:54]process_action close_receipt [09:15:54]cmd_close_receipt [09:15:54]MH_GetDate [09:15:54]Write to MH i2c: F0 00 00 04 38 2B [09:15:54]Write i2c OK [09:15:54]MH_I2C_Read... [09:15:54]Read from MH i2c: F0 [09:15:54]MH_I2C_Read... [09:15:54]Read from MH i2c: F0 09 00 [09:15:54]MH_I2C_Read... [09:15:54]Read from MH i2c: F0 09 00 04 38 00 4E CA 14 67 82 C9 CF 66 47 [09:15:54]GetLastDocTimeStamp 1729415755 [09:15:54]current date 1729415758 [09:15:54]FM_GetShiftState [09:15:54]SAM_PROTO_GetShiftState [09:15:54]wFMCommunicate request_size=4 [09:15:54]MH_SAM_APDU [09:15:54]CAPDU: 80 13 01 00 [09:15:54]Write to MH i2c: E2 08 00 05 38 80 13 01 00 00 00 00 00 BA [09:15:54]Write i2c OK [09:15:54]MH_I2C_Read... [09:15:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:54]Read from MH i2c: E2 [09:15:54]MH_I2C_Read... [09:15:54]Read from MH i2c: E2 0E 00 [09:15:54]MH_I2C_Read... [09:15:54]Read from MH i2c: E2 0E 00 05 38 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 D4 [09:15:54]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:15:54]wFMCommunicate OK [09:15:54]SAM_PROTO_GetShiftState done [09:15:54]FM_GetShiftState done [09:15:54]opened in 1729383750 [09:15:54]opened+sec_in_day 1729470150 [09:15:54]quantity*price = 50041 [09:15:54]sum+1 = 50042 [09:15:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 117 20.10.2024 09:15 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227269 ФПД: 144148302562512 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T091558&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227269&fm=144148302562512&tin=02508201610067®Number=0000000000091685&sum=50000 [09:15:56]StoreToDocumentArchive [09:15:56]shift 533 fd 227269 [09:15:56]save to /storage/0533/doc_00227269 [09:15:56]save last doc name /storage/0533/doc_00227269 to /storage/kkm_last_doc_name [09:15:56]save OK [09:15:56]Clear old archive folders... [09:15:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:15:56]tlvbuf is 005DECF0 [09:15:56]SAM_PROTO_ClearQueue [09:15:56]wFMCommunicate request_size=4 [09:15:56]MH_SAM_APDU [09:15:56]CAPDU: 80 09 00 00 [09:15:56]Write to MH i2c: E2 08 00 12 38 80 09 00 00 00 00 00 00 BC [09:15:56]Write i2c OK [09:15:56]MH_I2C_Read... [09:15:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:15:56]Read from MH i2c: E2 [09:15:56]MH_I2C_Read... [09:15:56]Read from MH i2c: E2 03 00 [09:15:56]MH_I2C_Read... [09:15:56]Read from MH i2c: E2 03 00 12 38 00 90 00 BE [09:15:56]RAPDU: 90 00 [09:15:56]wFMCommunicate OK [09:15:56]SAM_PROTO_ClearQueue done [09:15:56]KKMCreateOFDPacket [09:15:56]OFDProtocolAddRootSTLVToBuf [09:15:56]FM_MakeSignedData [09:15:56]FM_MakeSignedData [09:15:56]SAM_PROTO_SignData [09:15:56]wFMCommunicate request_size=4 [09:15:56]MH_SAM_APDU [09:15:56]CAPDU: 80 0D 01 02 [09:15:56]Write to MH i2c: E2 08 00 13 38 80 0D 01 02 00 00 00 00 C4 [09:15:56]Write i2c OK [09:15:56]MH_I2C_Read... [09:15:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:15:56]Read from MH i2c: E2 [09:15:56]MH_I2C_Read... [09:15:56]Read from MH i2c: E2 03 00 [09:15:56]MH_I2C_Read... [09:15:56]Read from MH i2c: E2 03 00 13 38 00 90 00 BF [09:15:56]RAPDU: 90 00 [09:15:56]wFMCommunicate OK [09:15:56]wFMCommunicate request_size=255 [09:15:56]MH_SAM_APDU [09:15:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 4E CA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C5 77 03 00 35 04 06 00 83 [09:15:56]Write to MH i2c: E2 02 01 14 38 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 4E CA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C5 77 03 00 35 04 06 00 83 00 00 3C [09:15:56]Write i2c OK [09:15:56]MH_I2C_Read... [09:15:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:56]Read from MH i2c: E2 [09:15:56]MH_I2C_Read... [09:15:56]Read from MH i2c: E2 03 00 [09:15:56]MH_I2C_Read... [09:15:56]Read from MH i2c: E2 03 00 14 38 00 90 00 C0 [09:15:56]RAPDU: 90 00 [09:15:56]wFMCommunicate OK [09:15:56]wFMCommunicate request_size=10 [09:15:56]MH_SAM_APDU [09:15:56]CAPDU: 80 0D 02 02 05 1A 24 5E 84 D0 [09:15:56]Write to MH i2c: E2 0D 00 15 38 80 0D 02 02 05 00 1A 24 5E 84 D0 00 00 C1 [09:15:56]Write i2c OK [09:15:56]MH_I2C_Read... [09:15:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:56]Read from MH i2c: E2 [09:15:56]MH_I2C_Read... [09:15:56]Read from MH i2c: E2 03 00 [09:15:56]MH_I2C_Read... [09:15:56]Read from MH i2c: E2 03 00 15 38 00 90 00 C1 [09:15:56]RAPDU: 90 00 [09:15:56]wFMCommunicate OK [09:15:56]wFMCommunicate request_size=4 [09:15:56]MH_SAM_APDU [09:15:56]CAPDU: 80 0D 03 02 [09:15:56]Write to MH i2c: E2 08 00 16 38 80 0D 03 02 00 00 00 00 C9 [09:15:56]Write i2c OK [09:15:56]MH_I2C_Read... [09:15:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:15:56]Read from MH i2c: E2 [09:15:56]MH_I2C_Read... [09:15:56]Read from MH i2c: E2 0B 00 [09:15:56]MH_I2C_Read... [09:15:56]Read from MH i2c: E2 0B 00 16 38 00 3C 1F C8 4E 42 08 37 03 90 00 BF [09:15:56]RAPDU: 3C 1F C8 4E 42 08 37 03 90 00 [09:15:56]wFMCommunicate OK [09:15:56]SAM_PROTO_SignData done [09:15:56]FM_MakeSignedData done [09:15:56]CreateOFDProtocolMessage [09:15:56]wFMCommunicate request_size=4 [09:15:56]MH_SAM_APDU [09:15:56]CAPDU: 80 11 00 00 [09:15:56]Write to MH i2c: E2 08 00 17 38 80 11 00 00 00 00 00 00 C9 [09:15:56]Write i2c OK [09:15:56]MH_I2C_Read... [09:15:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:56]Read from MH i2c: E2 [09:15:56]MH_I2C_Read... [09:15:56]Read from MH i2c: E2 17 00 [09:15:56]MH_I2C_Read... [09:15:56]Read from MH i2c: E2 17 00 17 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 20 [09:15:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:15:57]wFMCommunicate OK [09:15:57]CreateOFDProtocolMessage done [09:15:57]OFDSenderStorePacket 227269 [09:15:57]StoreOFDPacket docnum=227269 [09:15:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 A3 BD 07 01 C7 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 4E CA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C5 77 03 00 35 04 06 00 83 1A 24 5E 84 D0 3C 1F C8 4E 42 08 37 03 [09:15:57]CheckFolder [09:15:57]dirname=/storage/ofd_packets [09:15:57]CheckFolder done [09:15:57]ProducePacketName [09:15:57]name=ofd_packets/00227269 [09:15:57]NVStorageSaveData ofd_packets/00227269 [09:15:57]File name is /storage/ofd_packets/00227269 [09:15:57]Write 301 bytes [09:15:57]NVStorageSaveData done [09:15:57]OFDSenderStorePacket done [09:15:57]KKMCreateOFDPacket done [09:15:57]NVStorageSaveData kkm_last_timestamp [09:15:57]File name is /storage/kkm_last_timestamp [09:15:57]Write 4 bytes [09:15:57]NVStorageSaveData done [09:15:57]ExternCall_PrintAddStr [09:15:57]wPrintStart [09:15:57]Write to MH i2c: 01 00 00 18 38 50 [09:15:57]Write i2c OK [09:15:57]MH_I2C_Read... [09:15:57]Read from MH i2c: 01 [09:15:57]MH_I2C_Read... [09:15:57]Read from MH i2c: 01 07 00 [09:15:57]MH_I2C_Read... [09:15:57]Read from MH i2c: 01 07 00 18 38 00 00 00 00 00 FF 0F 65 [09:15:57]RasterBufferAndPrint [09:15:57]line Счет N : (1)1962735 [09:15:57]line ИНН: 02508201610067 [09:15:57]line Контрольно-Кассовый Чек [09:15:57]line ПРОДАЖА [09:15:57]line ТРК (МРК, ГНК) : 43 [09:15:57]line Товар: 2710124130 [09:15:57]line Аи-92-К-5 [09:15:57]line 7.480 * 66.90 [09:15:57]line = 500.41 [09:15:57]line НДС 12% НСП 1% [09:15:57]line > о реализуемом товаре [09:15:57]line ОКРУГЛЕНИЕ: -0.41 [09:15:57]line ИТОГО: 500.00 [09:15:57]line Внесено: 500.00 [09:15:57]line СДАЧА: 0.00 [09:15:57]line НСП 1% : 4.43 [09:15:57]line НДС 12% : 53.14 [09:15:57]line Наличными: 500.00 [09:15:57]line Безнал.: 0.00 [09:15:57]line Место: АЗС № 133 "Партнер Нефть" [09:15:57]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:15:57]line СНО: Общий режим [09:15:57]line Чек 117 20.10.2024 09:15 [09:15:57]line Смена: 533 ФФД: 1.0 [09:15:57]line ЗНМ: 0300000091 [09:15:57]line РНМ: 0000000000091685 [09:15:57]line Версия ККМ: 001 [09:15:57]line ФМ: 0000000000871839 [09:15:57]line ФД: 227269 [09:15:57]line ФПД: 144148302562512 [09:15:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T091558&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227269&fm=144148302562512&tin=02508201610067®Number=0000000000091685&sum=50000 [09:15:57]OFD Sender: Processing packet 227269 [packets to send 38, broken 37] [09:15:57]ProducePacketName [09:15:57]name=ofd_packets/00227269 [09:15:57]OFD Sender: To server: pG, [09:15:57]CommunicateWithHost lk.salyk.kg:30040 [09:15:57]ConnectInit lk.salyk.kg [09:15:57]written 0, free lines is 4095 [09:15:57]Connected sock=10 [09:15:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 A3 BD 07 01 C7 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 4E CA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C5 77 03 00 35 04 06 00 83 1A 24 5E 84 D0 3C 1F C8 4E 42 08 37 03 [09:15: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 33 39 4F 00 00 00 E6 E3 47 00 DB 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C5 77 03 00 F4 03 04 00 4E 75 14 67 B6 04 01 00 00 03 D0 BD B3 13 A5 16 F3 [09:15:57]CommunicateWithHost err = 0 [09:15:57]CheckOFDResponse [09:15:57]1017 (14) - 77093643461234 [09:15:57]1041 (16) - 0000000000871839 [09:15:57]1040 (4) - 227269 [09:15:57]1012 (4) - 20.10.2024 03:13 [09:15:57]1206 (1) - 0 [09:15:57]OFD Sender: Remove packet 227269 [09:15:57]ProducePacketName [09:15:57]name=ofd_packets/00227269 [09:15:57]NVStorageDeleteData [09:15:57]Write to MH i2c: 01 00 00 42 38 7A [09:15:57]Write i2c OK [09:15:57]MH_I2C_Read... [09:15:57]Read from MH i2c: 01 [09:15:57]MH_I2C_Read... [09:15:57]Read from MH i2c: 01 07 00 [09:15:57]MH_I2C_Read... [09:15:57]Read from MH i2c: 01 07 00 42 38 00 00 00 00 00 0D 0D 9B [09:15:57]RasterBufferAndPrint [09:15:57]line [09:15:57]line [09:15:57]line [09:15:57]line [09:15:57]line [09:15:57]written 0, free lines is 3357 [09:15:57]process_action close_receipt done [09:15:57]requested_data is exist [09:15:57]produce_requested_data [09:15:57]requested_item fm.sn is exist - process it [09:15:57]wFMCommunicate request_size=4 [09:15:57]MH_SAM_APDU [09:15:57]CAPDU: 80 11 00 00 [09:15:57]Write to MH i2c: E2 08 00 49 38 80 11 00 00 00 00 00 00 FB [09:15:57]Write i2c OK [09:15:57]MH_I2C_Read... [09:15:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:57]Read from MH i2c: E2 [09:15:57]MH_I2C_Read... [09:15:57]Read from MH i2c: E2 17 00 [09:15:57]MH_I2C_Read... [09:15:57]Read from MH i2c: E2 17 00 49 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 52 [09:15:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:15:57]wFMCommunicate OK [09:15:57]requested_item fd.num is exist - process it [09:15:57]SAM_PROTO_GetFieldsCounters [09:15:57]wFMCommunicate request_size=4 [09:15:57]MH_SAM_APDU [09:15:57]CAPDU: 80 13 00 00 [09:15:57]Write to MH i2c: E2 08 00 4A 38 80 13 00 00 00 00 00 00 FE [09:15:57]Write i2c OK [09:15:57]MH_I2C_Read... [09:15:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:15:58]Read from MH i2c: E2 [09:15:58]MH_I2C_Read... [09:15:58]Read from MH i2c: E2 62 00 [09:15:58]MH_I2C_Read... [09:15:58]Read from MH i2c: E2 62 00 4A 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 C5 77 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [09:15: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 C5 77 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:15:58]wFMCommunicate OK [09:15:58]SAM_PROTO_GetFieldsCounters done [09:15:58]requested_item shift.num is exist - process it [09:15:58]requested_item shift.opened is exist - process it [09:15:58]req_shift_opened [09:15:58]FM_GetShiftState [09:15:58]SAM_PROTO_GetShiftState [09:15:58]wFMCommunicate request_size=4 [09:15:58]MH_SAM_APDU [09:15:58]CAPDU: 80 13 01 00 [09:15:58]Write to MH i2c: E2 08 00 4B 38 80 13 01 00 00 00 00 00 00 [09:15:58]Write i2c OK [09:15:58]MH_I2C_Read... [09:15:58]Read from MH i2c: E2 [09:15:58]MH_I2C_Read... [09:15:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:58]Read from MH i2c: E2 0E 00 [09:15:58]MH_I2C_Read... [09:15:58]Read from MH i2c: E2 0E 00 4B 38 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 1A [09:15:58]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:15:58]wFMCommunicate OK [09:15:58]SAM_PROTO_GetShiftState done [09:15:58]FM_GetShiftState done [09:15:58]req_shift_opened done [09:15:58]requested_item shift.open_date is exist - process it [09:15:58]req_shift_open_date [09:15:58]req_shift_open_date done [09:15:58]produce_requested_data done [09:15:58]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227269,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [09:15:58]process_action_free close_receipt [09:15:58]json_value_free [09:15:58]json_value_free done [09:15:58]process_json_proto returns [09:15:58]Send response to host [09:15:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227269,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [09:15:58]free response buf [09:15:58]execute_script done [09:15:58]execute_script returns [09:15:58]free content buf [09:15:58]Sock 8.Close socket [09:15:58]Sock 8.Thread stoped [09:15:58]OFD Sender: No OFD packet to send [09:15:58]accept exits with 9 [09:15:58]New connection [09:15:58]New thread 3066821988 created [09:15:58]Thread 3066965348 joined [09:15:58]Waiting for new connection... [09:15:58] Sock 9.Parse request [09:15:58]Sock 9.Check first char [09:15:58]Sock 9.First char is OK [09:15:58]request: POST /json_proto HTTP/1.0 [09:15:58]Method: POST [09:15:58]URL: /json_proto [09:15:58]Method is POST - this is cgi request [09:15:58]url: /json_proto [09:15:58]query_string will be loaded in cgi processing [09:15:58]execute_cgi json_proto POST (null) [09:15:58]execute_cgi path=json_proto method=POST [09:15:58]POST find Content-Length [09:15:58]Host: 172.17.44.195:8080 [09:15:58]Content-Length: 659 [09:15:58]Content-Type: application/json [09:15:58] [09:15:58]POST finish read [09:15:58]Found Content-Length = 659 [09:15:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962736", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 8.780, "sum" : 600.55, "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" ] } } [09:15:58]execute_script... [09:15: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)1962736", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 8.780, "sum" : 600.55, "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" ] } } [09:15:58]POST & json_proto [09:15:58]process_json_proto [09:15:58]json parsed OK: [09:15:58]protocol is kg_v1.0 [09:15:58]action value=close_receipt [09:15:58]process_action close_receipt [09:15:58]cmd_close_receipt [09:15:58]MH_GetDate [09:15:58]Write to MH i2c: F0 00 00 4C 38 73 [09:15:58]Write i2c OK [09:15:58]MH_I2C_Read... [09:15:58]Read from MH i2c: F0 [09:15:58]MH_I2C_Read... [09:15:58]Read from MH i2c: F0 09 00 [09:15:58]MH_I2C_Read... [09:15:58]Read from MH i2c: F0 09 00 4C 38 00 52 CA 14 67 82 C9 CF 66 93 [09:15:58]GetLastDocTimeStamp 1729415758 [09:15:58]current date 1729415762 [09:15:58]FM_GetShiftState [09:15:58]SAM_PROTO_GetShiftState [09:15:58]wFMCommunicate request_size=4 [09:15:58]MH_SAM_APDU [09:15:58]CAPDU: 80 13 01 00 [09:15:58]Write to MH i2c: E2 08 00 4D 38 80 13 01 00 00 00 00 00 02 [09:15:58]Write i2c OK [09:15:58]MH_I2C_Read... [09:15:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:58]Read from MH i2c: E2 [09:15:58]MH_I2C_Read... [09:15:58]Read from MH i2c: E2 0E 00 [09:15:58]MH_I2C_Read... [09:15:58]Read from MH i2c: E2 0E 00 4D 38 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 1C [09:15:58]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:15:58]wFMCommunicate OK [09:15:58]SAM_PROTO_GetShiftState done [09:15:58]FM_GetShiftState done [09:15:58]opened in 1729383750 [09:15:58]opened+sec_in_day 1729470150 [09:15:58]quantity*price = 60055 [09:15:58]sum+1 = 60056 [09:15:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 118 20.10.2024 09:16 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227270 ФПД: 190227695568366 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T091602&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227270&fm=190227695568366&tin=02508201610067®Number=0000000000091685&sum=60000 [09:15:59]StoreToDocumentArchive [09:15:59]shift 533 fd 227270 [09:15:59]save to /storage/0533/doc_00227270 [09:15:59]save last doc name /storage/0533/doc_00227270 to /storage/kkm_last_doc_name [09:15:59]save OK [09:15:59]Clear old archive folders... [09:15:59]ProcessDocumentItem done err = 0, tmpTLVsize=244 [09:15:59]tlvbuf is 004D3A30 [09:15:59]SAM_PROTO_ClearQueue [09:15:59]wFMCommunicate request_size=4 [09:15:59]MH_SAM_APDU [09:15:59]CAPDU: 80 09 00 00 [09:15:59]Write to MH i2c: E2 08 00 5A 38 80 09 00 00 00 00 00 00 04 [09:15:59]Write i2c OK [09:15:59]MH_I2C_Read... [09:15:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:15:59]Read from MH i2c: E2 [09:15:59]MH_I2C_Read... [09:15:59]Read from MH i2c: E2 03 00 [09:15:59]MH_I2C_Read... [09:15:59]Read from MH i2c: E2 03 00 5A 38 00 90 00 06 [09:15:59]RAPDU: 90 00 [09:15:59]wFMCommunicate OK [09:15:59]SAM_PROTO_ClearQueue done [09:15:59]KKMCreateOFDPacket [09:15:59]OFDProtocolAddRootSTLVToBuf [09:15:59]FM_MakeSignedData [09:15:59]FM_MakeSignedData [09:15:59]SAM_PROTO_SignData [09:15:59]wFMCommunicate request_size=4 [09:15:59]MH_SAM_APDU [09:15:59]CAPDU: 80 0D 01 02 [09:15:59]Write to MH i2c: E2 08 00 5B 38 80 0D 01 02 00 00 00 00 0C [09:15:59]Write i2c OK [09:15:59]MH_I2C_Read... [09:15:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:15:59]Read from MH i2c: E2 [09:15:59]MH_I2C_Read... [09:15:59]Read from MH i2c: E2 03 00 [09:15:59]MH_I2C_Read... [09:15:59]Read from MH i2c: E2 03 00 5B 38 00 90 00 07 [09:15:59]RAPDU: 90 00 [09:15:59]wFMCommunicate OK [09:15:59]wFMCommunicate request_size=253 [09:15:59]MH_SAM_APDU [09:15:59]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 52 CA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C6 77 03 00 35 04 06 00 AD 02 D6 38 85 EE [09:16:00]Write to MH i2c: E2 00 01 5C 38 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 52 CA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C6 77 03 00 35 04 06 00 AD 02 D6 38 85 EE 00 00 CB [09:16:00]Write i2c OK [09:16:00]MH_I2C_Read... [09:16:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:16:00]Read from MH i2c: E2 [09:16:00]MH_I2C_Read... [09:16:00]Read from MH i2c: E2 03 00 [09:16:00]MH_I2C_Read... [09:16:00]Read from MH i2c: E2 03 00 5C 38 00 90 00 08 [09:16:00]RAPDU: 90 00 [09:16:00]wFMCommunicate OK [09:16:00]wFMCommunicate request_size=4 [09:16:00]MH_SAM_APDU [09:16:00]CAPDU: 80 0D 03 02 [09:16:00]Write to MH i2c: E2 08 00 5D 38 80 0D 03 02 00 00 00 00 10 [09:16:00]Write i2c OK [09:16:00]MH_I2C_Read... [09:16:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:16:00]Read from MH i2c: E2 [09:16:00]MH_I2C_Read... [09:16:00]Read from MH i2c: E2 0B 00 [09:16:00]MH_I2C_Read... [09:16:00]Read from MH i2c: E2 0B 00 5D 38 00 7C A2 6E D7 E8 D2 17 53 90 00 98 [09:16:00]RAPDU: 7C A2 6E D7 E8 D2 17 53 90 00 [09:16:00]wFMCommunicate OK [09:16:00]SAM_PROTO_SignData done [09:16:00]FM_MakeSignedData done [09:16:00]CreateOFDProtocolMessage [09:16:00]wFMCommunicate request_size=4 [09:16:00]MH_SAM_APDU [09:16:00]CAPDU: 80 11 00 00 [09:16:00]Write to MH i2c: E2 08 00 5E 38 80 11 00 00 00 00 00 00 10 [09:16:00]Write i2c OK [09:16:00]MH_I2C_Read... [09:16:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:00]Read from MH i2c: E2 [09:16:00]MH_I2C_Read... [09:16:00]Read from MH i2c: E2 17 00 [09:16:00]MH_I2C_Read... [09:16:00]Read from MH i2c: E2 17 00 5E 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 67 [09:16:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:16:00]wFMCommunicate OK [09:16:00]CreateOFDProtocolMessage done [09:16:00]OFDSenderStorePacket 227270 [09:16:00]StoreOFDPacket docnum=227270 [09:16:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 C6 8C 00 01 C4 F5 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 52 CA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C6 77 03 00 35 04 06 00 AD 02 D6 38 85 EE 7C A2 6E D7 E8 D2 17 53 [09:16:00]CheckFolder [09:16:00]dirname=/storage/ofd_packets [09:16:00]CheckFolder done [09:16:00]ProducePacketName [09:16:00]name=ofd_packets/00227270 [09:16:00]NVStorageSaveData ofd_packets/00227270 [09:16:00]File name is /storage/ofd_packets/00227270 [09:16:00]Write 294 bytes [09:16:00]NVStorageSaveData done [09:16:00]OFDSenderStorePacket done [09:16:00]KKMCreateOFDPacket done [09:16:00]NVStorageSaveData kkm_last_timestamp [09:16:00]File name is /storage/kkm_last_timestamp [09:16:00]Write 4 bytes [09:16:00]NVStorageSaveData done [09:16:00]ExternCall_PrintAddStr [09:16:00]wPrintStart [09:16:00]Write to MH i2c: 01 00 00 5F 38 97 [09:16:00]Write i2c OK [09:16:00]MH_I2C_Read... [09:16:00]Read from MH i2c: 01 [09:16:00]MH_I2C_Read... [09:16:00]Read from MH i2c: 01 07 00 [09:16:00]MH_I2C_Read... [09:16:00]Read from MH i2c: 01 07 00 5F 38 00 00 00 00 00 FF 0F AC [09:16:00]RasterBufferAndPrint [09:16:00]line Счет N : (1)1962736 [09:16:00]line ИНН: 02508201610067 [09:16:00]line Контрольно-Кассовый Чек [09:16:00]line ПРОДАЖА [09:16:00]line ТРК (МРК, ГНК) : 52 [09:16:00]line Товар: 2710124130 [09:16:00]line SU-92 [09:16:00]line 8.780 * 68.40 [09:16:00]line = 600.55 [09:16:00]line НДС 12% НСП 1% [09:16:00]line > о реализуемом товаре [09:16:00]line ОКРУГЛЕНИЕ: -0.55 [09:16:00]line ИТОГО: 600.00 [09:16:00]line Внесено: 600.00 [09:16:00]line СДАЧА: 0.00 [09:16:00]line НСП 1% : 5.31 [09:16:00]line НДС 12% : 63.77 [09:16:00]line Наличными: 600.00 [09:16:00]line Безнал.: 0.00 [09:16:00]line Место: АЗС № 133 "Партнер Нефть" [09:16:00]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:16:00]line СНО: Общий режим [09:16:00]line Чек 118 20.10.2024 09:16 [09:16:00]line Смена: 533 ФФД: 1.0 [09:16:00]line ЗНМ: 0300000091 [09:16:00]line РНМ: 0000000000091685 [09:16:00]line Версия ККМ: 001 [09:16:00]line ФМ: 0000000000871839 [09:16:00]line ФД: 227270 [09:16:00]line ФПД: 190227695568366 [09:16:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T091602&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227270&fm=190227695568366&tin=02508201610067®Number=0000000000091685&sum=60000 [09:16:00]OFD Sender: Processing packet 227270 [packets to send 38, broken 37] [09:16:00]ProducePacketName [09:16:00]name=ofd_packets/00227270 [09:16:00]OFD Sender: To server: pG, [09:16:00]CommunicateWithHost lk.salyk.kg:30040 [09:16:00]ConnectInit lk.salyk.kg [09:16:00]written 0, free lines is 4095 [09:16:00]Connected sock=10 [09:16:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 C6 8C 00 01 C4 F5 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 52 CA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C6 77 03 00 35 04 06 00 AD 02 D6 38 85 EE 7C A2 6E D7 E8 D2 17 53 [09:16: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 33 39 4F 00 00 00 10 D3 47 00 BF 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 33 39 10 04 04 00 C6 77 03 00 F4 03 04 00 52 75 14 67 B6 04 01 00 00 3C 31 A9 82 F9 0A EF 2C [09:16:00]CommunicateWithHost err = 0 [09:16:00]CheckOFDResponse [09:16:00]1017 (14) - 77093643461234 [09:16:00]1041 (16) - 0000000000871839 [09:16:00]1040 (4) - 227270 [09:16:00]1012 (4) - 20.10.2024 03:13 [09:16:00]1206 (1) - 0 [09:16:00]OFD Sender: Remove packet 227270 [09:16:00]ProducePacketName [09:16:00]name=ofd_packets/00227270 [09:16:00]NVStorageDeleteData [09:16:01]Write to MH i2c: 01 00 00 89 38 C1 [09:16:01]Write i2c OK [09:16:01]MH_I2C_Read... [09:16:01]Read from MH i2c: 01 [09:16:01]MH_I2C_Read... [09:16:01]Read from MH i2c: 01 07 00 [09:16:01]MH_I2C_Read... [09:16:01]Read from MH i2c: 01 07 00 89 38 00 00 00 00 00 26 0D FB [09:16:01]RasterBufferAndPrint [09:16:01]line [09:16:01]line [09:16:01]line [09:16:01]line [09:16:01]line [09:16:01]written 0, free lines is 3390 [09:16:01]process_action close_receipt done [09:16:01]requested_data is exist [09:16:01]produce_requested_data [09:16:01]requested_item fm.sn is exist - process it [09:16:01]wFMCommunicate request_size=4 [09:16:01]MH_SAM_APDU [09:16:01]CAPDU: 80 11 00 00 [09:16:01]Write to MH i2c: E2 08 00 90 38 80 11 00 00 00 00 00 00 42 [09:16:01]Write i2c OK [09:16:01]MH_I2C_Read... [09:16:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:01]Read from MH i2c: E2 [09:16:01]MH_I2C_Read... [09:16:01]Read from MH i2c: E2 17 00 [09:16:01]MH_I2C_Read... [09:16:01]Read from MH i2c: E2 17 00 90 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 99 [09:16:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:16:01]wFMCommunicate OK [09:16:01]requested_item fd.num is exist - process it [09:16:01]SAM_PROTO_GetFieldsCounters [09:16:01]wFMCommunicate request_size=4 [09:16:01]MH_SAM_APDU [09:16:01]CAPDU: 80 13 00 00 [09:16:01]Write to MH i2c: E2 08 00 91 38 80 13 00 00 00 00 00 00 45 [09:16:01]Write i2c OK [09:16:01]MH_I2C_Read... [09:16:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:16:01]Read from MH i2c: E2 [09:16:01]MH_I2C_Read... [09:16:01]Read from MH i2c: E2 62 00 [09:16:01]MH_I2C_Read... [09:16:01]Read from MH i2c: E2 62 00 91 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 C6 77 03 00 0E 04 04 00 15 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 27 [09:16: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 C6 77 03 00 0E 04 04 00 15 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 [09:16:01]wFMCommunicate OK [09:16:01]SAM_PROTO_GetFieldsCounters done [09:16:01]requested_item shift.num is exist - process it [09:16:01]requested_item shift.opened is exist - process it [09:16:01]req_shift_opened [09:16:01]FM_GetShiftState [09:16:01]SAM_PROTO_GetShiftState [09:16:01]wFMCommunicate request_size=4 [09:16:01]MH_SAM_APDU [09:16:01]CAPDU: 80 13 01 00 [09:16:01]Write to MH i2c: E2 08 00 92 38 80 13 01 00 00 00 00 00 47 [09:16:01]Write i2c OK [09:16:01]MH_I2C_Read... [09:16:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:01]Read from MH i2c: E2 [09:16:01]MH_I2C_Read... [09:16:01]Read from MH i2c: E2 0E 00 [09:16:01]MH_I2C_Read... [09:16:01]Read from MH i2c: E2 0E 00 92 38 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 61 [09:16:01]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:16:01]wFMCommunicate OK [09:16:01]SAM_PROTO_GetShiftState done [09:16:01]FM_GetShiftState done [09:16:01]req_shift_opened done [09:16:01]requested_item shift.open_date is exist - process it [09:16:01]req_shift_open_date [09:16:01]req_shift_open_date done [09:16:01]produce_requested_data done [09:16:01]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227270,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [09:16:01]process_action_free close_receipt [09:16:01]json_value_free [09:16:01]json_value_free done [09:16:01]process_json_proto returns [09:16:01]Send response to host [09:16:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227270,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [09:16:01]free response buf [09:16:01]execute_script done [09:16:01]execute_script returns [09:16:01]free content buf [09:16:01]Sock 9.Close socket [09:16:01]Sock 9.Thread stoped [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:39]accept exits with 8 [09:16:39]New connection [09:16:39]New thread 3066965348 created [09:16:39]Thread 3066821988 joined [09:16:39]Waiting for new connection... [09:16:39] Sock 8.Parse request [09:16:39]Sock 8.Check first char [09:16:39]Sock 8.First char is OK [09:16:39]request: POST /json_proto HTTP/1.0 [09:16:39]Method: POST [09:16:39]URL: /json_proto [09:16:39]Method is POST - this is cgi request [09:16:39]url: /json_proto [09:16:39]query_string will be loaded in cgi processing [09:16:39]execute_cgi json_proto POST (null) [09:16:39]execute_cgi path=json_proto method=POST [09:16:39]POST find Content-Length [09:16:39]Host: 172.17.44.195:8080 [09:16:39]Content-Length: 676 [09:16:39]Content-Type: application/json [09:16:39] [09:16:39]POST finish read [09:16:39]Found Content-Length = 676 [09:16:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962738", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:39]execute_script... [09:16: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)1962738", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:39]POST & json_proto [09:16:39]process_json_proto [09:16:39]json parsed OK: [09:16:39]protocol is kg_v1.0 [09:16:39]action value=close_receipt [09:16:39]process_action close_receipt [09:16:39]cmd_close_receipt [09:16:39]MH_GetDate [09:16:39]Write to MH i2c: F0 00 00 93 38 BA [09:16:39]Write i2c OK [09:16:39]MH_I2C_Read... [09:16:39]Read from MH i2c: F0 [09:16:39]MH_I2C_Read... [09:16:39]Read from MH i2c: F0 09 00 [09:16:39]MH_I2C_Read... [09:16:39]Read from MH i2c: F0 09 00 93 38 00 7B CA 14 67 82 C9 CF 66 03 [09:16:39]GetLastDocTimeStamp 1729415762 [09:16:39]current date 1729415803 [09:16:39]FM_GetShiftState [09:16:39]SAM_PROTO_GetShiftState [09:16:39]wFMCommunicate request_size=4 [09:16:39]MH_SAM_APDU [09:16:39]CAPDU: 80 13 01 00 [09:16:39]Write to MH i2c: E2 08 00 94 38 80 13 01 00 00 00 00 00 49 [09:16:39]Write i2c OK [09:16:39]MH_I2C_Read... [09:16:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:39]Read from MH i2c: E2 [09:16:39]MH_I2C_Read... [09:16:39]Read from MH i2c: E2 0E 00 [09:16:39]MH_I2C_Read... [09:16:39]Read from MH i2c: E2 0E 00 94 38 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 63 [09:16:39]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:16:39]wFMCommunicate OK [09:16:39]SAM_PROTO_GetShiftState done [09:16:39]FM_GetShiftState done [09:16:39]opened in 1729383750 [09:16:39]opened+sec_in_day 1729470150 [09:16:39]quantity*price = 80010 [09:16:39]sum+1 = 80011 [09:16:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 119 20.10.2024 09:16 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227271 ФПД: 226122574777402 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T091643&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227271&fm=226122574777402&tin=02508201610067®Number=0000000000091685&sum=80000 [09:16:40]StoreToDocumentArchive [09:16:40]shift 533 fd 227271 [09:16:40]save to /storage/0533/doc_00227271 [09:16:40]save last doc name /storage/0533/doc_00227271 to /storage/kkm_last_doc_name [09:16:40]save OK [09:16:40]Clear old archive folders... [09:16:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:16:40]tlvbuf is 00534E00 [09:16:40]SAM_PROTO_ClearQueue [09:16:40]wFMCommunicate request_size=4 [09:16:40]MH_SAM_APDU [09:16:40]CAPDU: 80 09 00 00 [09:16:40]Write to MH i2c: E2 08 00 A1 38 80 09 00 00 00 00 00 00 4B [09:16:40]Write i2c OK [09:16:40]MH_I2C_Read... [09:16:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:16:40]Read from MH i2c: E2 [09:16:40]MH_I2C_Read... [09:16:40]Read from MH i2c: E2 03 00 [09:16:40]MH_I2C_Read... [09:16:40]Read from MH i2c: E2 03 00 A1 38 00 90 00 4D [09:16:40]RAPDU: 90 00 [09:16:40]wFMCommunicate OK [09:16:40]SAM_PROTO_ClearQueue done [09:16:40]KKMCreateOFDPacket [09:16:40]OFDProtocolAddRootSTLVToBuf [09:16:40]FM_MakeSignedData [09:16:40]FM_MakeSignedData [09:16:40]SAM_PROTO_SignData [09:16:40]wFMCommunicate request_size=4 [09:16:40]MH_SAM_APDU [09:16:40]CAPDU: 80 0D 01 02 [09:16:40]Write to MH i2c: E2 08 00 A2 38 80 0D 01 02 00 00 00 00 53 [09:16:40]Write i2c OK [09:16:40]MH_I2C_Read... [09:16:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:16:40]Read from MH i2c: E2 [09:16:40]MH_I2C_Read... [09:16:40]Read from MH i2c: E2 03 00 [09:16:40]MH_I2C_Read... [09:16:40]Read from MH i2c: E2 03 00 A2 38 00 90 00 4E [09:16:40]RAPDU: 90 00 [09:16:40]wFMCommunicate OK [09:16:40]wFMCommunicate request_size=255 [09:16:40]MH_SAM_APDU [09:16: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 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 7B CA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C7 77 03 00 35 04 06 00 CD A8 43 BE [09:16:40]Write to MH i2c: E2 02 01 A3 38 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 7B CA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C7 77 03 00 35 04 06 00 CD A8 43 BE 00 00 18 [09:16:40]Write i2c OK [09:16:40]MH_I2C_Read... [09:16:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:16:40]Read from MH i2c: E2 [09:16:40]MH_I2C_Read... [09:16:40]Read from MH i2c: E2 03 00 [09:16:40]MH_I2C_Read... [09:16:40]Read from MH i2c: E2 03 00 A3 38 00 90 00 4F [09:16:40]RAPDU: 90 00 [09:16:40]wFMCommunicate OK [09:16:40]wFMCommunicate request_size=7 [09:16:40]MH_SAM_APDU [09:16:40]CAPDU: 80 0D 02 02 02 CC 3A [09:16:40]Write to MH i2c: E2 0A 00 A4 38 80 0D 02 02 02 00 CC 3A 00 00 60 [09:16:40]Write i2c OK [09:16:40]MH_I2C_Read... [09:16:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:16:40]Read from MH i2c: E2 [09:16:40]MH_I2C_Read... [09:16:40]Read from MH i2c: E2 03 00 [09:16:40]MH_I2C_Read... [09:16:40]Read from MH i2c: E2 03 00 A4 38 00 90 00 50 [09:16:40]RAPDU: 90 00 [09:16:40]wFMCommunicate OK [09:16:40]wFMCommunicate request_size=4 [09:16:40]MH_SAM_APDU [09:16:40]CAPDU: 80 0D 03 02 [09:16:40]Write to MH i2c: E2 08 00 A5 38 80 0D 03 02 00 00 00 00 58 [09:16:40]Write i2c OK [09:16:40]MH_I2C_Read... [09:16:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:16:40]Read from MH i2c: E2 [09:16:40]MH_I2C_Read... [09:16:40]Read from MH i2c: E2 0B 00 [09:16:40]MH_I2C_Read... [09:16:40]Read from MH i2c: E2 0B 00 A5 38 00 41 A5 AC CB 16 04 5B 92 90 00 BD [09:16:40]RAPDU: 41 A5 AC CB 16 04 5B 92 90 00 [09:16:40]wFMCommunicate OK [09:16:40]SAM_PROTO_SignData done [09:16:40]FM_MakeSignedData done [09:16:40]CreateOFDProtocolMessage [09:16:40]wFMCommunicate request_size=4 [09:16:40]MH_SAM_APDU [09:16:40]CAPDU: 80 11 00 00 [09:16:40]Write to MH i2c: E2 08 00 A6 38 80 11 00 00 00 00 00 00 58 [09:16:40]Write i2c OK [09:16:40]MH_I2C_Read... [09:16:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:40]Read from MH i2c: E2 [09:16:40]MH_I2C_Read... [09:16:40]Read from MH i2c: E2 17 00 [09:16:40]MH_I2C_Read... [09:16:40]Read from MH i2c: E2 17 00 A6 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 AF [09:16:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:16:40]wFMCommunicate OK [09:16:40]CreateOFDProtocolMessage done [09:16:40]OFDSenderStorePacket 227271 [09:16:40]StoreOFDPacket docnum=227271 [09:16:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 E1 2E 04 01 0E 21 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 7B CA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C7 77 03 00 35 04 06 00 CD A8 43 BE CC 3A 41 A5 AC CB 16 04 5B 92 [09:16:40]CheckFolder [09:16:40]dirname=/storage/ofd_packets [09:16:40]CheckFolder done [09:16:40]ProducePacketName [09:16:40]name=ofd_packets/00227271 [09:16:40]NVStorageSaveData ofd_packets/00227271 [09:16:40]File name is /storage/ofd_packets/00227271 [09:16:40]Write 298 bytes [09:16:40]NVStorageSaveData done [09:16:40]OFDSenderStorePacket done [09:16:40]KKMCreateOFDPacket done [09:16:40]NVStorageSaveData kkm_last_timestamp [09:16:40]File name is /storage/kkm_last_timestamp [09:16:40]Write 4 bytes [09:16:40]NVStorageSaveData done [09:16:40]ExternCall_PrintAddStr [09:16:40]wPrintStart [09:16:40]Write to MH i2c: 01 00 00 A7 38 DF [09:16:40]Write i2c OK [09:16:40]MH_I2C_Read... [09:16:40]Read from MH i2c: 01 [09:16:40]MH_I2C_Read... [09:16:40]Read from MH i2c: 01 07 00 [09:16:40]MH_I2C_Read... [09:16:40]Read from MH i2c: 01 07 00 A7 38 00 00 00 00 00 FF 0F F4 [09:16:40]RasterBufferAndPrint [09:16:40]line Счет N : (1)1962738 [09:16:40]line ИНН: 02508201610067 [09:16:40]line Контрольно-Кассовый Чек [09:16:40]line ПРОДАЖА [09:16:40]line ТРК (МРК, ГНК) : 21 [09:16:40]line Товар: 2710194210 [09:16:40]line ДТ-К-5 [09:16:40]line 10.500 * 76.20 [09:16:40]line = 800.10 [09:16:40]line НДС 12% НСП 1% [09:16:40]line > о реализуемом товаре [09:16:40]line ОКРУГЛЕНИЕ: -0.10 [09:16:40]line ИТОГО: 800.00 [09:16:40]line Внесено: 800.00 [09:16:40]line СДАЧА: 0.00 [09:16:40]line НСП 1% : 7.08 [09:16:40]line НДС 12% : 84.97 [09:16:40]line Наличными: 800.00 [09:16:40]line Безнал.: 0.00 [09:16:40]line Место: АЗС № 133 "Партнер Нефть" [09:16:40]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:16:40]line СНО: Общий режим [09:16:40]line Чек 119 20.10.2024 09:16 [09:16:40]line Смена: 533 ФФД: 1.0 [09:16:40]line ЗНМ: 0300000091 [09:16:40]line РНМ: 0000000000091685 [09:16:40]line Версия ККМ: 001 [09:16:40]line ФМ: 0000000000871839 [09:16:40]line ФД: 227271 [09:16:40]line ФПД: 226122574777402 [09:16:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T091643&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227271&fm=226122574777402&tin=02508201610067®Number=0000000000091685&sum=80000 [09:16:41]OFD Sender: Processing packet 227271 [packets to send 38, broken 37] [09:16:41]ProducePacketName [09:16:41]name=ofd_packets/00227271 [09:16:41]OFD Sender: To server: pG, [09:16:41]CommunicateWithHost lk.salyk.kg:30040 [09:16:41]ConnectInit lk.salyk.kg [09:16:41]written 0, free lines is 4095 [09:16:41]Connected sock=10 [09:16: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 33 39 0C 01 00 00 E1 2E 04 01 0E 21 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 7B CA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C7 77 03 00 35 04 06 00 CD A8 43 BE CC 3A 41 A5 AC CB 16 04 5B 92 [09:16: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 33 39 4F 00 00 00 9F E8 47 00 0A 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 33 39 10 04 04 00 C7 77 03 00 F4 03 04 00 7A 75 14 67 B6 04 01 00 00 BF EF 0B E3 3E A7 43 F2 [09:16:41]CommunicateWithHost err = 0 [09:16:41]CheckOFDResponse [09:16:41]1017 (14) - 77093643461234 [09:16:41]1041 (16) - 0000000000871839 [09:16:41]1040 (4) - 227271 [09:16:41]1012 (4) - 20.10.2024 03:14 [09:16:41]1206 (1) - 0 [09:16:41]OFD Sender: Remove packet 227271 [09:16:41]ProducePacketName [09:16:41]name=ofd_packets/00227271 [09:16:41]NVStorageDeleteData [09:16:41]Write to MH i2c: 01 00 00 D1 38 09 [09:16:41]Write i2c OK [09:16:41]MH_I2C_Read... [09:16:41]Read from MH i2c: 01 [09:16:41]MH_I2C_Read... [09:16:41]Read from MH i2c: 01 07 00 [09:16:41]MH_I2C_Read... [09:16:41]Read from MH i2c: 01 07 00 D1 38 00 00 00 00 00 12 0D 2F [09:16:41]RasterBufferAndPrint [09:16:41]line [09:16:41]line [09:16:41]line [09:16:41]line [09:16:41]line [09:16:41]written 0, free lines is 3352 [09:16:41]process_action close_receipt done [09:16:41]requested_data is exist [09:16:41]produce_requested_data [09:16:41]requested_item fm.sn is exist - process it [09:16:41]wFMCommunicate request_size=4 [09:16:41]MH_SAM_APDU [09:16:41]CAPDU: 80 11 00 00 [09:16:41]Write to MH i2c: E2 08 00 D8 38 80 11 00 00 00 00 00 00 8A [09:16:41]Write i2c OK [09:16:41]MH_I2C_Read... [09:16:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:41]Read from MH i2c: E2 [09:16:41]MH_I2C_Read... [09:16:41]Read from MH i2c: E2 17 00 [09:16:41]MH_I2C_Read... [09:16:41]Read from MH i2c: E2 17 00 D8 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E1 [09:16:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:16:41]wFMCommunicate OK [09:16:41]requested_item fd.num is exist - process it [09:16:41]SAM_PROTO_GetFieldsCounters [09:16:41]wFMCommunicate request_size=4 [09:16:41]MH_SAM_APDU [09:16:41]CAPDU: 80 13 00 00 [09:16:41]Write to MH i2c: E2 08 00 D9 38 80 13 00 00 00 00 00 00 8D [09:16:41]Write i2c OK [09:16:41]MH_I2C_Read... [09:16:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:16:41]Read from MH i2c: E2 [09:16:41]MH_I2C_Read... [09:16:41]Read from MH i2c: E2 62 00 [09:16:41]MH_I2C_Read... [09:16:41]Read from MH i2c: E2 62 00 D9 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 C7 77 03 00 0E 04 04 00 15 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 73 [09: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 C7 77 03 00 0E 04 04 00 15 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 [09:16:41]wFMCommunicate OK [09:16:41]SAM_PROTO_GetFieldsCounters done [09:16:41]requested_item shift.num is exist - process it [09:16:41]requested_item shift.opened is exist - process it [09:16:41]req_shift_opened [09:16:41]FM_GetShiftState [09:16:41]SAM_PROTO_GetShiftState [09:16:41]wFMCommunicate request_size=4 [09:16:41]MH_SAM_APDU [09:16:41]CAPDU: 80 13 01 00 [09:16:41]Write to MH i2c: E2 08 00 DA 38 80 13 01 00 00 00 00 00 8F [09:16:41]Write i2c OK [09:16:41]MH_I2C_Read... [09:16:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:41]Read from MH i2c: E2 [09:16:41]MH_I2C_Read... [09:16:41]Read from MH i2c: E2 0E 00 [09:16:41]MH_I2C_Read... [09:16:41]Read from MH i2c: E2 0E 00 DA 38 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 A9 [09:16:41]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:16:41]wFMCommunicate OK [09:16:41]SAM_PROTO_GetShiftState done [09:16:41]FM_GetShiftState done [09:16:41]req_shift_opened done [09:16:41]requested_item shift.open_date is exist - process it [09:16:41]req_shift_open_date [09:16:41]req_shift_open_date done [09:16:41]produce_requested_data done [09:16:41]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227271,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [09:16:41]process_action_free close_receipt [09:16:41]json_value_free [09:16:41]json_value_free done [09:16:41]process_json_proto returns [09:16:41]Send response to host [09:16:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227271,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [09:16:41]free response buf [09:16:41]execute_script done [09:16:41]execute_script returns [09:16:41]free content buf [09:16:41]Sock 8.Close socket [09:16:41]Sock 8.Thread stoped [09:16:42]OFD Sender: No OFD packet to send [09:16:47]OFD Sender: No OFD packet to send [09:16:52]OFD Sender: No OFD packet to send [09:16:53]accept exits with 9 [09:16:53]New connection [09:16:53]New thread 3066821988 created [09:16:53]Thread 3066965348 joined [09:16:53]Waiting for new connection... [09:16:53] Sock 9.Parse request [09:16:53]Sock 9.Check first char [09:16:53]Sock 9.First char is OK [09:16:53]request: POST /json_proto HTTP/1.0 [09:16:53]Method: POST [09:16:53]URL: /json_proto [09:16:53]Method is POST - this is cgi request [09:16:53]url: /json_proto [09:16:53]query_string will be loaded in cgi processing [09:16:53]execute_cgi json_proto POST (null) [09:16:53]execute_cgi path=json_proto method=POST [09:16:53]POST find Content-Length [09:16:53]Host: 172.17.44.195:8080 [09:16:53]Content-Length: 680 [09:16:53]Content-Type: application/json [09:16:53] [09:16:53]POST finish read [09:16:53]Found Content-Length = 680 [09:16:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962737", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:53]execute_script... [09:16: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)1962737", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:53]POST & json_proto [09:16:53]process_json_proto [09:16:53]json parsed OK: [09:16:53]protocol is kg_v1.0 [09:16:53]action value=close_receipt [09:16:53]process_action close_receipt [09:16:53]cmd_close_receipt [09:16:53]MH_GetDate [09:16:53]Write to MH i2c: F0 00 00 DB 38 02 [09:16:53]Write i2c OK [09:16:53]MH_I2C_Read... [09:16:53]Read from MH i2c: F0 [09:16:53]MH_I2C_Read... [09:16:53]Read from MH i2c: F0 09 00 [09:16:53]MH_I2C_Read... [09:16:53]Read from MH i2c: F0 09 00 DB 38 00 89 CA 14 67 82 C9 CF 66 59 [09:16:53]GetLastDocTimeStamp 1729415803 [09:16:53]current date 1729415817 [09:16:53]FM_GetShiftState [09:16:53]SAM_PROTO_GetShiftState [09:16:53]wFMCommunicate request_size=4 [09:16:53]MH_SAM_APDU [09:16:53]CAPDU: 80 13 01 00 [09:16:53]Write to MH i2c: E2 08 00 DC 38 80 13 01 00 00 00 00 00 91 [09:16:53]Write i2c OK [09:16:53]MH_I2C_Read... [09:16:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:53]Read from MH i2c: E2 [09:16:53]MH_I2C_Read... [09:16:53]Read from MH i2c: E2 0E 00 [09:16:53]MH_I2C_Read... [09:16:53]Read from MH i2c: E2 0E 00 DC 38 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 AB [09:16:53]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:16:53]wFMCommunicate OK [09:16:53]SAM_PROTO_GetShiftState done [09:16:53]FM_GetShiftState done [09:16:53]opened in 1729383750 [09:16:53]opened+sec_in_day 1729470150 [09:16:53]quantity*price = 300075 [09:16:53]sum+1 = 300077 [09:16:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 120 20.10.2024 09:16 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227272 ФПД: 183247422496121 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T091657&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227272&fm=183247422496121&tin=02508201610067®Number=0000000000091685&sum=300000 [09:16:54]StoreToDocumentArchive [09:16:54]shift 533 fd 227272 [09:16:54]save to /storage/0533/doc_00227272 [09:16:54]save last doc name /storage/0533/doc_00227272 to /storage/kkm_last_doc_name [09:16:54]save OK [09:16:54]Clear old archive folders... [09:16:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:16:54]tlvbuf is 005FA9D0 [09:16:54]SAM_PROTO_ClearQueue [09:16:54]wFMCommunicate request_size=4 [09:16:54]MH_SAM_APDU [09:16:54]CAPDU: 80 09 00 00 [09:16:54]Write to MH i2c: E2 08 00 E9 38 80 09 00 00 00 00 00 00 93 [09:16:54]Write i2c OK [09:16:54]MH_I2C_Read... [09:16:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:16:54]Read from MH i2c: E2 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: E2 03 00 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: E2 03 00 E9 38 00 90 00 95 [09:16:54]RAPDU: 90 00 [09:16:54]wFMCommunicate OK [09:16:54]SAM_PROTO_ClearQueue done [09:16:54]KKMCreateOFDPacket [09:16:54]OFDProtocolAddRootSTLVToBuf [09:16:54]FM_MakeSignedData [09:16:54]FM_MakeSignedData [09:16:54]SAM_PROTO_SignData [09:16:54]wFMCommunicate request_size=4 [09:16:54]MH_SAM_APDU [09:16:54]CAPDU: 80 0D 01 02 [09:16:54]Write to MH i2c: E2 08 00 EA 38 80 0D 01 02 00 00 00 00 9B [09:16:54]Write i2c OK [09:16:54]MH_I2C_Read... [09:16:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:16:54]Read from MH i2c: E2 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: E2 03 00 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: E2 03 00 EA 38 00 90 00 96 [09:16:54]RAPDU: 90 00 [09:16:54]wFMCommunicate OK [09:16:54]wFMCommunicate request_size=255 [09:16:54]MH_SAM_APDU [09:16:54]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 89 CA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C8 77 03 00 35 04 06 00 A6 A9 9D 86 [09:16:54]Write to MH i2c: E2 02 01 EB 38 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 89 CA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C8 77 03 00 35 04 06 00 A6 A9 9D 86 00 00 70 [09:16:54]Write i2c OK [09:16:54]MH_I2C_Read... [09:16:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:16:55]Read from MH i2c: E2 [09:16:55]MH_I2C_Read... [09:16:55]Read from MH i2c: E2 03 00 [09:16:55]MH_I2C_Read... [09:16:55]Read from MH i2c: E2 03 00 EB 38 00 90 00 97 [09:16:55]RAPDU: 90 00 [09:16:55]wFMCommunicate OK [09:16:55]wFMCommunicate request_size=7 [09:16:55]MH_SAM_APDU [09:16:55]CAPDU: 80 0D 02 02 02 1D 79 [09:16:55]Write to MH i2c: E2 0A 00 EC 38 80 0D 02 02 02 00 1D 79 00 00 38 [09:16:55]Write i2c OK [09:16:55]MH_I2C_Read... [09:16:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:16:55]Read from MH i2c: E2 [09:16:55]MH_I2C_Read... [09:16:55]Read from MH i2c: E2 03 00 [09:16:55]MH_I2C_Read... [09:16:55]Read from MH i2c: E2 03 00 EC 38 00 90 00 98 [09:16:55]RAPDU: 90 00 [09:16:55]wFMCommunicate OK [09:16:55]wFMCommunicate request_size=4 [09:16:55]MH_SAM_APDU [09:16:55]CAPDU: 80 0D 03 02 [09:16:55]Write to MH i2c: E2 08 00 ED 38 80 0D 03 02 00 00 00 00 A0 [09:16:55]Write i2c OK [09:16:55]MH_I2C_Read... [09:16:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:16:55]Read from MH i2c: E2 [09:16:55]MH_I2C_Read... [09:16:55]Read from MH i2c: E2 0B 00 [09:16:55]MH_I2C_Read... [09:16:55]Read from MH i2c: E2 0B 00 ED 38 00 BA D6 D4 98 A8 17 5F A7 90 00 62 [09:16:55]RAPDU: BA D6 D4 98 A8 17 5F A7 90 00 [09:16:55]wFMCommunicate OK [09:16:55]SAM_PROTO_SignData done [09:16:55]FM_MakeSignedData done [09:16:55]CreateOFDProtocolMessage [09:16:55]wFMCommunicate request_size=4 [09:16:55]MH_SAM_APDU [09:16:55]CAPDU: 80 11 00 00 [09:16:55]Write to MH i2c: E2 08 00 EE 38 80 11 00 00 00 00 00 00 A0 [09:16:55]Write i2c OK [09:16:55]MH_I2C_Read... [09:16:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:55]Read from MH i2c: E2 [09:16:55]MH_I2C_Read... [09:16:55]Read from MH i2c: E2 17 00 [09:16:55]MH_I2C_Read... [09:16:55]Read from MH i2c: E2 17 00 EE 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F7 [09:16:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:16:55]wFMCommunicate OK [09:16:55]CreateOFDProtocolMessage done [09:16:55]OFDSenderStorePacket 227272 [09:16:55]StoreOFDPacket docnum=227272 [09:16:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 4F 6D 04 01 28 02 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 89 CA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C8 77 03 00 35 04 06 00 A6 A9 9D 86 1D 79 BA D6 D4 98 A8 17 5F A7 [09:16:55]CheckFolder [09:16:55]dirname=/storage/ofd_packets [09:16:55]CheckFolder done [09:16:55]ProducePacketName [09:16:55]name=ofd_packets/00227272 [09:16:55]NVStorageSaveData ofd_packets/00227272 [09:16:55]File name is /storage/ofd_packets/00227272 [09:16:55]Write 298 bytes [09:16:55]NVStorageSaveData done [09:16:55]OFDSenderStorePacket done [09:16:55]KKMCreateOFDPacket done [09:16:55]NVStorageSaveData kkm_last_timestamp [09:16:55]File name is /storage/kkm_last_timestamp [09:16:55]Write 4 bytes [09:16:55]NVStorageSaveData done [09:16:55]ExternCall_PrintAddStr [09:16:55]wPrintStart [09:16:55]Write to MH i2c: 01 00 00 EF 38 27 [09:16:55]Write i2c OK [09:16:55]MH_I2C_Read... [09:16:55]Read from MH i2c: 01 [09:16:55]MH_I2C_Read... [09:16:55]Read from MH i2c: 01 07 00 [09:16:55]MH_I2C_Read... [09:16:55]Read from MH i2c: 01 07 00 EF 38 00 00 00 00 00 FF 0F 3C [09:16:55]RasterBufferAndPrint [09:16:55]line Счет N : (1)1962737 [09:16:55]line ИНН: 02508201610067 [09:16:55]line Контрольно-Кассовый Чек [09:16:55]line ПРОДАЖА [09:16:55]line ТРК (МРК, ГНК) : 31 [09:16:55]line Товар: 2710194210 [09:16:55]line ДТ-К-5 [09:16:55]line 39.380 * 76.20 [09:16:55]line = 3000.76 [09:16:55]line НДС 12% НСП 1% [09:16:55]line > о реализуемом товаре [09:16:55]line ОКРУГЛЕНИЕ: -0.76 [09:16:55]line ИТОГО: 3000.00 [09:16:55]line Внесено: 3000.00 [09:16:55]line СДАЧА: 0.00 [09:16:55]line НСП 1% : 26.55 [09:16:55]line НДС 12% : 318.66 [09:16:55]line Наличными: 3000.00 [09:16:55]line Безнал.: 0.00 [09:16:55]line Место: АЗС № 133 "Партнер Нефть" [09:16:55]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:16:55]line СНО: Общий режим [09:16:55]line Чек 120 20.10.2024 09:16 [09:16:55]line Смена: 533 ФФД: 1.0 [09:16:55]line ЗНМ: 0300000091 [09:16:55]line РНМ: 0000000000091685 [09:16:55]line Версия ККМ: 001 [09:16:55]line ФМ: 0000000000871839 [09:16:55]line ФД: 227272 [09:16:55]line ФПД: 183247422496121 [09:16:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T091657&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227272&fm=183247422496121&tin=02508201610067®Number=0000000000091685&sum=300000 [09:16:55]OFD Sender: Processing packet 227272 [packets to send 38, broken 37] [09:16:55]ProducePacketName [09:16:55]name=ofd_packets/00227272 [09:16:55]OFD Sender: To server: pG, [09:16:55]CommunicateWithHost lk.salyk.kg:30040 [09:16:55]ConnectInit lk.salyk.kg [09:16:55]written 0, free lines is 4095 [09:16:55]Connected sock=10 [09:16:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 4F 6D 04 01 28 02 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 89 CA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C8 77 03 00 35 04 06 00 A6 A9 9D 86 1D 79 BA D6 D4 98 A8 17 5F A7 [09:16:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 38 1F 47 00 E5 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 33 39 10 04 04 00 C8 77 03 00 F4 03 04 00 89 75 14 67 B6 04 01 00 00 EE C9 E5 11 95 5A 4A 0C [09:16:56]CommunicateWithHost err = 0 [09:16:56]CheckOFDResponse [09:16:56]1017 (14) - 77093643461234 [09:16:56]1041 (16) - 0000000000871839 [09:16:56]1040 (4) - 227272 [09:16:56]1012 (4) - 20.10.2024 03:14 [09:16:56]1206 (1) - 0 [09:16:56]OFD Sender: Remove packet 227272 [09:16:56]ProducePacketName [09:16:56]name=ofd_packets/00227272 [09:16:56]NVStorageDeleteData [09:16:56]Write to MH i2c: 01 00 00 19 39 52 [09:16:56]Write i2c OK [09:16:56]MH_I2C_Read... [09:16:56]Read from MH i2c: 01 [09:16:56]MH_I2C_Read... [09:16:56]Read from MH i2c: 01 07 00 [09:16:56]MH_I2C_Read... [09:16:56]Read from MH i2c: 01 07 00 19 39 00 00 00 00 00 1E 0D 84 [09:16:56]RasterBufferAndPrint [09:16:56]line [09:16:56]line [09:16:56]line [09:16:56]line [09:16:56]line [09:16:56]written 0, free lines is 3367 [09:16:56]process_action close_receipt done [09:16:56]requested_data is exist [09:16:56]produce_requested_data [09:16:56]requested_item fm.sn is exist - process it [09:16:56]wFMCommunicate request_size=4 [09:16:56]MH_SAM_APDU [09:16:56]CAPDU: 80 11 00 00 [09:16:56]Write to MH i2c: E2 08 00 20 39 80 11 00 00 00 00 00 00 D3 [09:16:56]Write i2c OK [09:16:56]MH_I2C_Read... [09:16:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:56]Read from MH i2c: E2 [09:16:56]MH_I2C_Read... [09:16:56]Read from MH i2c: E2 17 00 [09:16:56]MH_I2C_Read... [09:16:56]Read from MH i2c: E2 17 00 20 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 2A [09:16:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:16:56]wFMCommunicate OK [09:16:56]requested_item fd.num is exist - process it [09:16:56]SAM_PROTO_GetFieldsCounters [09:16:56]wFMCommunicate request_size=4 [09:16:56]MH_SAM_APDU [09:16:56]CAPDU: 80 13 00 00 [09:16:56]Write to MH i2c: E2 08 00 21 39 80 13 00 00 00 00 00 00 D6 [09:16:56]Write i2c OK [09:16:56]MH_I2C_Read... [09:16:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:16:56]Read from MH i2c: E2 [09:16:56]MH_I2C_Read... [09:16:56]Read from MH i2c: E2 62 00 [09:16:56]MH_I2C_Read... [09:16:56]Read from MH i2c: E2 62 00 21 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 C8 77 03 00 0E 04 04 00 15 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 C0 [09:16:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 C8 77 03 00 0E 04 04 00 15 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 [09:16:56]wFMCommunicate OK [09:16:56]SAM_PROTO_GetFieldsCounters done [09:16:56]requested_item shift.num is exist - process it [09:16:56]requested_item shift.opened is exist - process it [09:16:56]req_shift_opened [09:16:56]FM_GetShiftState [09:16:56]SAM_PROTO_GetShiftState [09:16:56]wFMCommunicate request_size=4 [09:16:56]MH_SAM_APDU [09:16:56]CAPDU: 80 13 01 00 [09:16:56]Write to MH i2c: E2 08 00 22 39 80 13 01 00 00 00 00 00 D8 [09:16:56]Write i2c OK [09:16:56]MH_I2C_Read... [09:16:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:56]Read from MH i2c: E2 [09:16:56]MH_I2C_Read... [09:16:56]Read from MH i2c: E2 0E 00 [09:16:56]MH_I2C_Read... [09:16:56]Read from MH i2c: E2 0E 00 22 39 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 F2 [09:16:56]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:16:56]wFMCommunicate OK [09:16:56]SAM_PROTO_GetShiftState done [09:16:56]FM_GetShiftState done [09:16:56]req_shift_opened done [09:16:56]requested_item shift.open_date is exist - process it [09:16:56]req_shift_open_date [09:16:56]req_shift_open_date done [09:16:56]produce_requested_data done [09:16:56]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227272,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [09:16:56]process_action_free close_receipt [09:16:56]json_value_free [09:16:56]json_value_free done [09:16:56]process_json_proto returns [09:16:56]Send response to host [09:16:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227272,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [09:16:56]free response buf [09:16:56]execute_script done [09:16:56]execute_script returns [09:16:56]free content buf [09:16:56]Sock 9.Close socket [09:16:56]Sock 9.Thread stoped [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:16]OFD Sender: No OFD packet to send [09:18:21]OFD Sender: No OFD packet to send [09:18:26]OFD Sender: No OFD packet to send [09:18:31]OFD Sender: No OFD packet to send [09:18:36]OFD Sender: No OFD packet to send [09:18:41]OFD Sender: No OFD packet to send [09:18:46]OFD Sender: No OFD packet to send [09:18:51]OFD Sender: No OFD packet to send [09:18:56]OFD Sender: No OFD packet to send [09:19:01]OFD Sender: No OFD packet to send [09:19:06]OFD Sender: No OFD packet to send [09:19:11]OFD Sender: No OFD packet to send [09:19:12]accept exits with 8 [09:19:12]New connection [09:19:12]New thread 3066965348 created [09:19:12]Thread 3066821988 joined [09:19:12]Waiting for new connection... [09:19:12] Sock 8.Parse request [09:19:12]Sock 8.Check first char [09:19:12]Sock 8.First char is OK [09:19:12]request: POST /json_proto HTTP/1.0 [09:19:12]Method: POST [09:19:12]URL: /json_proto [09:19:12]Method is POST - this is cgi request [09:19:12]url: /json_proto [09:19:12]query_string will be loaded in cgi processing [09:19:12]execute_cgi json_proto POST (null) [09:19:12]execute_cgi path=json_proto method=POST [09:19:12]POST find Content-Length [09:19:12]Host: 172.17.44.195:8080 [09:19:12]Content-Length: 680 [09:19:12]Content-Type: application/json [09:19:12] [09:19:12]POST finish read [09:19:12]Found Content-Length = 680 [09:19:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962741", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:12]execute_script... [09:19: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)1962741", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:12]POST & json_proto [09:19:12]process_json_proto [09:19:12]json parsed OK: [09:19:12]protocol is kg_v1.0 [09:19:12]action value=close_receipt [09:19:12]process_action close_receipt [09:19:12]cmd_close_receipt [09:19:12]MH_GetDate [09:19:12]Write to MH i2c: F0 00 00 23 39 4B [09:19:12]Write i2c OK [09:19:12]MH_I2C_Read... [09:19:12]Read from MH i2c: F0 [09:19:12]MH_I2C_Read... [09:19:12]Read from MH i2c: F0 09 00 [09:19:12]MH_I2C_Read... [09:19:12]Read from MH i2c: F0 09 00 23 39 00 14 CB 14 67 82 C9 CF 66 2E [09:19:12]GetLastDocTimeStamp 1729415817 [09:19:12]current date 1729415956 [09:19:12]FM_GetShiftState [09:19:12]SAM_PROTO_GetShiftState [09:19:12]wFMCommunicate request_size=4 [09:19:12]MH_SAM_APDU [09:19:12]CAPDU: 80 13 01 00 [09:19:12]Write to MH i2c: E2 08 00 24 39 80 13 01 00 00 00 00 00 DA [09:19:12]Write i2c OK [09:19:12]MH_I2C_Read... [09:19:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:12]Read from MH i2c: E2 [09:19:12]MH_I2C_Read... [09:19:12]Read from MH i2c: E2 0E 00 [09:19:12]MH_I2C_Read... [09:19:12]Read from MH i2c: E2 0E 00 24 39 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 F4 [09:19:12]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:19:12]wFMCommunicate OK [09:19:12]SAM_PROTO_GetShiftState done [09:19:12]FM_GetShiftState done [09:19:12]opened in 1729383750 [09:19:12]opened+sec_in_day 1729470150 [09:19:12]quantity*price = 100050 [09:19:12]sum+1 = 100052 [09:19:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 121 20.10.2024 09:19 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227273 ФПД: 122772768826283 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T091916&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227273&fm=122772768826283&tin=02508201610067®Number=0000000000091685&sum=100000 [09:19:13]StoreToDocumentArchive [09:19:13]shift 533 fd 227273 [09:19:13]save to /storage/0533/doc_00227273 [09:19:13]save last doc name /storage/0533/doc_00227273 to /storage/kkm_last_doc_name [09:19:13]save OK [09:19:13]Clear old archive folders... [09:19:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:19:13]tlvbuf is 005D26E0 [09:19:13]SAM_PROTO_ClearQueue [09:19:13]wFMCommunicate request_size=4 [09:19:13]MH_SAM_APDU [09:19:13]CAPDU: 80 09 00 00 [09:19:13]Write to MH i2c: E2 08 00 31 39 80 09 00 00 00 00 00 00 DC [09:19:13]Write i2c OK [09:19:13]MH_I2C_Read... [09:19:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:19:13]Read from MH i2c: E2 [09:19:13]MH_I2C_Read... [09:19:13]Read from MH i2c: E2 03 00 [09:19:13]MH_I2C_Read... [09:19:13]Read from MH i2c: E2 03 00 31 39 00 90 00 DE [09:19:13]RAPDU: 90 00 [09:19:13]wFMCommunicate OK [09:19:13]SAM_PROTO_ClearQueue done [09:19:13]KKMCreateOFDPacket [09:19:13]OFDProtocolAddRootSTLVToBuf [09:19:13]FM_MakeSignedData [09:19:13]FM_MakeSignedData [09:19:13]SAM_PROTO_SignData [09:19:13]wFMCommunicate request_size=4 [09:19:13]MH_SAM_APDU [09:19:13]CAPDU: 80 0D 01 02 [09:19:13]Write to MH i2c: E2 08 00 32 39 80 0D 01 02 00 00 00 00 E4 [09:19:13]Write i2c OK [09:19:13]MH_I2C_Read... [09:19:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:19:13]Read from MH i2c: E2 [09:19:13]MH_I2C_Read... [09:19:13]Read from MH i2c: E2 03 00 [09:19:13]MH_I2C_Read... [09:19:13]Read from MH i2c: E2 03 00 32 39 00 90 00 DF [09:19:13]RAPDU: 90 00 [09:19:13]wFMCommunicate OK [09:19:13]wFMCommunicate request_size=255 [09:19:13]MH_SAM_APDU [09:19:13]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 14 CB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C9 77 03 00 35 04 06 00 6F A9 43 46 [09:19:13]Write to MH i2c: E2 02 01 33 39 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 14 CB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C9 77 03 00 35 04 06 00 6F A9 43 46 00 00 3F [09:19:13]Write i2c OK [09:19:13]MH_I2C_Read... [09:19:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:13]Read from MH i2c: E2 [09:19:13]MH_I2C_Read... [09:19:13]Read from MH i2c: E2 03 00 [09:19:13]MH_I2C_Read... [09:19:13]Read from MH i2c: E2 03 00 33 39 00 90 00 E0 [09:19:13]RAPDU: 90 00 [09:19:13]wFMCommunicate OK [09:19:13]wFMCommunicate request_size=7 [09:19:13]MH_SAM_APDU [09:19:13]CAPDU: 80 0D 02 02 02 23 AB [09:19:13]Write to MH i2c: E2 0A 00 34 39 80 0D 02 02 02 00 23 AB 00 00 B9 [09:19:13]Write i2c OK [09:19:13]MH_I2C_Read... [09:19:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:13]Read from MH i2c: E2 [09:19:13]MH_I2C_Read... [09:19:13]Read from MH i2c: E2 03 00 [09:19:13]MH_I2C_Read... [09:19:13]Read from MH i2c: E2 03 00 34 39 00 90 00 E1 [09:19:13]RAPDU: 90 00 [09:19:13]wFMCommunicate OK [09:19:13]wFMCommunicate request_size=4 [09:19:13]MH_SAM_APDU [09:19:13]CAPDU: 80 0D 03 02 [09:19:13]Write to MH i2c: E2 08 00 35 39 80 0D 03 02 00 00 00 00 E9 [09:19:13]Write i2c OK [09:19:13]MH_I2C_Read... [09:19:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:19:13]Read from MH i2c: E2 [09:19:13]MH_I2C_Read... [09:19:13]Read from MH i2c: E2 0B 00 [09:19:13]MH_I2C_Read... [09:19:13]Read from MH i2c: E2 0B 00 35 39 00 C5 B9 13 68 41 63 5D 75 90 00 59 [09:19:13]RAPDU: C5 B9 13 68 41 63 5D 75 90 00 [09:19:13]wFMCommunicate OK [09:19:13]SAM_PROTO_SignData done [09:19:13]FM_MakeSignedData done [09:19:13]CreateOFDProtocolMessage [09:19:13]wFMCommunicate request_size=4 [09:19:13]MH_SAM_APDU [09:19:13]CAPDU: 80 11 00 00 [09:19:13]Write to MH i2c: E2 08 00 36 39 80 11 00 00 00 00 00 00 E9 [09:19:13]Write i2c OK [09:19:13]MH_I2C_Read... [09:19:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:13]Read from MH i2c: E2 [09:19:13]MH_I2C_Read... [09:19:13]Read from MH i2c: E2 17 00 [09:19:13]MH_I2C_Read... [09:19:13]Read from MH i2c: E2 17 00 36 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 40 [09:19:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:19:13]wFMCommunicate OK [09:19:13]CreateOFDProtocolMessage done [09:19:13]OFDSenderStorePacket 227273 [09:19:13]StoreOFDPacket docnum=227273 [09:19:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 F3 CF 04 01 48 B3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 14 CB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C9 77 03 00 35 04 06 00 6F A9 43 46 23 AB C5 B9 13 68 41 63 5D 75 [09:19:13]CheckFolder [09:19:13]dirname=/storage/ofd_packets [09:19:13]CheckFolder done [09:19:13]ProducePacketName [09:19:13]name=ofd_packets/00227273 [09:19:13]NVStorageSaveData ofd_packets/00227273 [09:19:13]File name is /storage/ofd_packets/00227273 [09:19:13]Write 298 bytes [09:19:13]NVStorageSaveData done [09:19:13]OFDSenderStorePacket done [09:19:13]KKMCreateOFDPacket done [09:19:13]NVStorageSaveData kkm_last_timestamp [09:19:13]File name is /storage/kkm_last_timestamp [09:19:13]Write 4 bytes [09:19:13]NVStorageSaveData done [09:19:13]ExternCall_PrintAddStr [09:19:13]wPrintStart [09:19:13]Write to MH i2c: 01 00 00 37 39 70 [09:19:13]Write i2c OK [09:19:13]MH_I2C_Read... [09:19:13]Read from MH i2c: 01 [09:19:13]MH_I2C_Read... [09:19:13]Read from MH i2c: 01 07 00 [09:19:13]MH_I2C_Read... [09:19:13]Read from MH i2c: 01 07 00 37 39 00 00 00 00 00 FF 0F 85 [09:19:13]RasterBufferAndPrint [09:19:13]line Счет N : (1)1962741 [09:19:13]line ИНН: 02508201610067 [09:19:13]line Контрольно-Кассовый Чек [09:19:13]line ПРОДАЖА [09:19:13]line ТРК (МРК, ГНК) : 21 [09:19:13]line Товар: 2710194210 [09:19:13]line ДТ-К-5 [09:19:13]line 13.130 * 76.20 [09:19:13]line = 1000.51 [09:19:13]line НДС 12% НСП 1% [09:19:13]line > о реализуемом товаре [09:19:13]line ОКРУГЛЕНИЕ: -0.51 [09:19:13]line ИТОГО: 1000.00 [09:19:13]line Внесено: 1000.00 [09:19:13]line СДАЧА: 0.00 [09:19:13]line НСП 1% : 8.85 [09:19:13]line НДС 12% : 106.25 [09:19:13]line Наличными: 1000.00 [09:19:13]line Безнал.: 0.00 [09:19:13]line Место: АЗС № 133 "Партнер Нефть" [09:19:13]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:19:13]line СНО: Общий режим [09:19:13]line Чек 121 20.10.2024 09:19 [09:19:13]line Смена: 533 ФФД: 1.0 [09:19:13]line ЗНМ: 0300000091 [09:19:13]line РНМ: 0000000000091685 [09:19:13]line Версия ККМ: 001 [09:19:13]line ФМ: 0000000000871839 [09:19:13]line ФД: 227273 [09:19:13]line ФПД: 122772768826283 [09:19:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T091916&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227273&fm=122772768826283&tin=02508201610067®Number=0000000000091685&sum=100000 [09:19:14]OFD Sender: Processing packet 227273 [packets to send 38, broken 37] [09:19:14]ProducePacketName [09:19:14]name=ofd_packets/00227273 [09:19:14]OFD Sender: To server: pG, [09:19:14]CommunicateWithHost lk.salyk.kg:30040 [09:19:14]ConnectInit lk.salyk.kg [09:19:14]written 0, free lines is 4095 [09:19:14]Connected sock=10 [09:19: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 33 39 0C 01 00 00 F3 CF 04 01 48 B3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 14 CB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C9 77 03 00 35 04 06 00 6F A9 43 46 23 AB C5 B9 13 68 41 63 5D 75 [09:19: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 33 39 4F 00 00 00 87 21 47 00 12 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 33 39 10 04 04 00 C9 77 03 00 F4 03 04 00 13 76 14 67 B6 04 01 00 00 DA 31 CA AA A1 57 BB A2 [09:19:14]CommunicateWithHost err = 0 [09:19:14]CheckOFDResponse [09:19:14]1017 (14) - 77093643461234 [09:19:14]1041 (16) - 0000000000871839 [09:19:14]1040 (4) - 227273 [09:19:14]1012 (4) - 20.10.2024 03:16 [09:19:14]1206 (1) - 0 [09:19:14]OFD Sender: Remove packet 227273 [09:19:14]ProducePacketName [09:19:14]name=ofd_packets/00227273 [09:19:14]NVStorageDeleteData [09:19:14]Write to MH i2c: 01 00 00 61 39 9A [09:19:14]Write i2c OK [09:19:14]MH_I2C_Read... [09:19:14]Read from MH i2c: 01 [09:19:14]MH_I2C_Read... [09:19:14]Read from MH i2c: 01 07 00 [09:19:14]MH_I2C_Read... [09:19:14]Read from MH i2c: 01 07 00 61 39 00 00 00 00 00 0F 0D BD [09:19:14]RasterBufferAndPrint [09:19:14]line [09:19:14]line [09:19:14]line [09:19:14]line [09:19:14]line [09:19:14]written 0, free lines is 3349 [09:19:14]process_action close_receipt done [09:19:14]requested_data is exist [09:19:14]produce_requested_data [09:19:14]requested_item fm.sn is exist - process it [09:19:14]wFMCommunicate request_size=4 [09:19:14]MH_SAM_APDU [09:19:14]CAPDU: 80 11 00 00 [09:19:14]Write to MH i2c: E2 08 00 68 39 80 11 00 00 00 00 00 00 1B [09:19:14]Write i2c OK [09:19:14]MH_I2C_Read... [09:19:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:14]Read from MH i2c: E2 [09:19:14]MH_I2C_Read... [09:19:14]Read from MH i2c: E2 17 00 [09:19:14]MH_I2C_Read... [09:19:14]Read from MH i2c: E2 17 00 68 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 72 [09:19:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:19:14]wFMCommunicate OK [09:19:14]requested_item fd.num is exist - process it [09:19:14]SAM_PROTO_GetFieldsCounters [09:19:14]wFMCommunicate request_size=4 [09:19:14]MH_SAM_APDU [09:19:14]CAPDU: 80 13 00 00 [09:19:14]Write to MH i2c: E2 08 00 69 39 80 13 00 00 00 00 00 00 1E [09:19:14]Write i2c OK [09:19:14]MH_I2C_Read... [09:19:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:19:14]Read from MH i2c: E2 [09:19:14]MH_I2C_Read... [09:19:14]Read from MH i2c: E2 62 00 [09:19:14]MH_I2C_Read... [09:19:14]Read from MH i2c: E2 62 00 69 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 C9 77 03 00 0E 04 04 00 15 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 0C [09:19: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 C9 77 03 00 0E 04 04 00 15 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 [09:19:14]wFMCommunicate OK [09:19:14]SAM_PROTO_GetFieldsCounters done [09:19:14]requested_item shift.num is exist - process it [09:19:14]requested_item shift.opened is exist - process it [09:19:14]req_shift_opened [09:19:14]FM_GetShiftState [09:19:14]SAM_PROTO_GetShiftState [09:19:14]wFMCommunicate request_size=4 [09:19:14]MH_SAM_APDU [09:19:14]CAPDU: 80 13 01 00 [09:19:14]Write to MH i2c: E2 08 00 6A 39 80 13 01 00 00 00 00 00 20 [09:19:14]Write i2c OK [09:19:14]MH_I2C_Read... [09:19:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:14]Read from MH i2c: E2 [09:19:14]MH_I2C_Read... [09:19:14]Read from MH i2c: E2 0E 00 [09:19:14]MH_I2C_Read... [09:19:14]Read from MH i2c: E2 0E 00 6A 39 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 3A [09:19:14]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:19:14]wFMCommunicate OK [09:19:14]SAM_PROTO_GetShiftState done [09:19:14]FM_GetShiftState done [09:19:14]req_shift_opened done [09:19:14]requested_item shift.open_date is exist - process it [09:19:14]req_shift_open_date [09:19:14]req_shift_open_date done [09:19:14]produce_requested_data done [09:19:14]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227273,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [09:19:14]process_action_free close_receipt [09:19:14]json_value_free [09:19:14]json_value_free done [09:19:14]process_json_proto returns [09:19:14]Send response to host [09:19:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227273,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [09:19:14]free response buf [09:19:14]execute_script done [09:19:14]execute_script returns [09:19:14]free content buf [09:19:14]Sock 8.Close socket [09:19:14]Sock 8.Thread stoped [09:19:14]OFD Sender: No OFD packet to send [09:19:19]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:25]OFD Sender: No OFD packet to send [09:21:30]OFD Sender: No OFD packet to send [09:21:35]OFD Sender: No OFD packet to send [09:21:40]OFD Sender: No OFD packet to send [09:21:45]OFD Sender: No OFD packet to send [09:21:50]OFD Sender: No OFD packet to send [09:21:55]OFD Sender: No OFD packet to send [09:21:55]accept exits with 9 [09:21:55]New connection [09:21:55]New thread 3066821988 created [09:21:55]Thread 3066965348 joined [09:21:55]Waiting for new connection... [09:21:55] Sock 9.Parse request [09:21:55]Sock 9.Check first char [09:21:55]Sock 9.First char is OK [09:21:55]request: POST /json_proto HTTP/1.0 [09:21:55]Method: POST [09:21:55]URL: /json_proto [09:21:55]Method is POST - this is cgi request [09:21:55]url: /json_proto [09:21:55]query_string will be loaded in cgi processing [09:21:55]execute_cgi json_proto POST (null) [09:21:55]execute_cgi path=json_proto method=POST [09:21:55]POST find Content-Length [09:21:55]Host: 172.17.44.195:8080 [09:21:55]Content-Length: 767 [09:21:55]Content-Type: application/json [09:21:55] [09:21:55]POST finish read [09:21:55]Found Content-Length = 767 [09:21:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962742", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 250.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:21:55]execute_script... [09:21: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)1962742", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 250.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:21:55]POST & json_proto [09:21:55]process_json_proto [09:21:55]json parsed OK: [09:21:55]protocol is kg_v1.0 [09:21:55]action value=close_receipt [09:21:55]process_action close_receipt [09:21:55]cmd_close_receipt [09:21:55]MH_GetDate [09:21:55]Write to MH i2c: F0 00 00 6B 39 93 [09:21:55]Write i2c OK [09:21:55]MH_I2C_Read... [09:21:55]Read from MH i2c: F0 [09:21:55]MH_I2C_Read... [09:21:55]Read from MH i2c: F0 09 00 [09:21:55]MH_I2C_Read... [09:21:55]Read from MH i2c: F0 09 00 6B 39 00 B7 CB 14 67 82 C9 CF 66 19 [09:21:55]GetLastDocTimeStamp 1729415956 [09:21:55]current date 1729416119 [09:21:55]FM_GetShiftState [09:21:55]SAM_PROTO_GetShiftState [09:21:55]wFMCommunicate request_size=4 [09:21:55]MH_SAM_APDU [09:21:55]CAPDU: 80 13 01 00 [09:21:55]Write to MH i2c: E2 08 00 6C 39 80 13 01 00 00 00 00 00 22 [09:21:55]Write i2c OK [09:21:55]MH_I2C_Read... [09:21:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:55]Read from MH i2c: E2 [09:21:55]MH_I2C_Read... [09:21:55]Read from MH i2c: E2 0E 00 [09:21:55]MH_I2C_Read... [09:21:55]Read from MH i2c: E2 0E 00 6C 39 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 3C [09:21:55]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:21:55]wFMCommunicate OK [09:21:55]SAM_PROTO_GetShiftState done [09:21:55]FM_GetShiftState done [09:21:55]opened in 1729383750 [09:21:55]opened+sec_in_day 1729470150 [09:21:55]quantity*price = 25020 [09:21:55]sum+1 = 25022 [09:21:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 250.21 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 0.00 Безнал.: 250.21 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 122 20.10.2024 09:21 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 227274 ФПД: 155835772012567 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T092159&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227274&fm=155835772012567&tin=02508201610067®Number=0000000000091685&sum=25021 [09:21:56]StoreToDocumentArchive [09:21:56]shift 533 fd 227274 [09:21:56]save to /storage/0533/doc_00227274 [09:21:56]save last doc name /storage/0533/doc_00227274 to /storage/kkm_last_doc_name [09:21:56]save OK [09:21:56]Clear old archive folders... [09:21:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:21:56]tlvbuf is 005D8E10 [09:21:56]SAM_PROTO_ClearQueue [09:21:56]wFMCommunicate request_size=4 [09:21:56]MH_SAM_APDU [09:21:56]CAPDU: 80 09 00 00 [09:21:56]Write to MH i2c: E2 08 00 79 39 80 09 00 00 00 00 00 00 24 [09:21:56]Write i2c OK [09:21:56]MH_I2C_Read... [09:21:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:21:56]Read from MH i2c: E2 [09:21:56]MH_I2C_Read... [09:21:56]Read from MH i2c: E2 03 00 [09:21:56]MH_I2C_Read... [09:21:56]Read from MH i2c: E2 03 00 79 39 00 90 00 26 [09:21:56]RAPDU: 90 00 [09:21:56]wFMCommunicate OK [09:21:56]SAM_PROTO_ClearQueue done [09:21:56]KKMCreateOFDPacket [09:21:56]OFDProtocolAddRootSTLVToBuf [09:21:56]FM_MakeSignedData [09:21:56]FM_MakeSignedData [09:21:56]SAM_PROTO_SignData [09:21:56]wFMCommunicate request_size=4 [09:21:56]MH_SAM_APDU [09:21:56]CAPDU: 80 0D 01 02 [09:21:56]Write to MH i2c: E2 08 00 7A 39 80 0D 01 02 00 00 00 00 2C [09:21:56]Write i2c OK [09:21:56]MH_I2C_Read... [09:21:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:21:56]Read from MH i2c: E2 [09:21:56]MH_I2C_Read... [09:21:56]Read from MH i2c: E2 03 00 [09:21:56]MH_I2C_Read... [09:21:56]Read from MH i2c: E2 03 00 7A 39 00 90 00 27 [09:21:56]RAPDU: 90 00 [09:21:56]wFMCommunicate OK [09:21:56]wFMCommunicate request_size=255 [09:21:56]MH_SAM_APDU [09:21:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 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 00 00 00 00 00 00 39 04 06 00 BD 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 B7 CB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CA 77 03 00 35 04 06 00 8D [09:21:56]Write to MH i2c: E2 02 01 7B 39 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 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 00 00 00 00 00 00 39 04 06 00 BD 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 B7 CB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CA 77 03 00 35 04 06 00 8D 00 00 25 [09:21:56]Write i2c OK [09:21:56]MH_I2C_Read... [09:21:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:57]Read from MH i2c: E2 [09:21:57]MH_I2C_Read... [09:21:57]Read from MH i2c: E2 03 00 [09:21:57]MH_I2C_Read... [09:21:57]Read from MH i2c: E2 03 00 7B 39 00 90 00 28 [09:21:57]RAPDU: 90 00 [09:21:57]wFMCommunicate OK [09:21:57]wFMCommunicate request_size=10 [09:21:57]MH_SAM_APDU [09:21:57]CAPDU: 80 0D 02 02 05 BB 57 D5 88 17 [09:21:57]Write to MH i2c: E2 0D 00 7C 39 80 0D 02 02 05 00 BB 57 D5 88 17 00 00 BF [09:21:57]Write i2c OK [09:21:57]MH_I2C_Read... [09:21:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:57]Read from MH i2c: E2 [09:21:57]MH_I2C_Read... [09:21:57]Read from MH i2c: E2 03 00 [09:21:57]MH_I2C_Read... [09:21:57]Read from MH i2c: E2 03 00 7C 39 00 90 00 29 [09:21:57]RAPDU: 90 00 [09:21:57]wFMCommunicate OK [09:21:57]wFMCommunicate request_size=4 [09:21:57]MH_SAM_APDU [09:21:57]CAPDU: 80 0D 03 02 [09:21:57]Write to MH i2c: E2 08 00 7D 39 80 0D 03 02 00 00 00 00 31 [09:21:57]Write i2c OK [09:21:57]MH_I2C_Read... [09:21:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:21:57]Read from MH i2c: E2 [09:21:57]MH_I2C_Read... [09:21:57]Read from MH i2c: E2 0B 00 [09:21:57]MH_I2C_Read... [09:21:57]Read from MH i2c: E2 0B 00 7D 39 00 80 D2 61 1D C1 6D 96 94 90 00 5A [09:21:57]RAPDU: 80 D2 61 1D C1 6D 96 94 90 00 [09:21:57]wFMCommunicate OK [09:21:57]SAM_PROTO_SignData done [09:21:57]FM_MakeSignedData done [09:21:57]CreateOFDProtocolMessage [09:21:57]wFMCommunicate request_size=4 [09:21:57]MH_SAM_APDU [09:21:57]CAPDU: 80 11 00 00 [09:21:57]Write to MH i2c: E2 08 00 7E 39 80 11 00 00 00 00 00 00 31 [09:21:57]Write i2c OK [09:21:57]MH_I2C_Read... [09:21:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:57]Read from MH i2c: E2 [09:21:57]MH_I2C_Read... [09:21:57]Read from MH i2c: E2 17 00 [09:21:57]MH_I2C_Read... [09:21:57]Read from MH i2c: E2 17 00 7E 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 88 [09:21:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:21:57]wFMCommunicate OK [09:21:57]CreateOFDProtocolMessage done [09:21:57]OFDSenderStorePacket 227274 [09:21:57]StoreOFDPacket docnum=227274 [09:21:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 7D CC 07 01 0E D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 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 00 00 00 00 00 00 39 04 06 00 BD 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 B7 CB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CA 77 03 00 35 04 06 00 8D BB 57 D5 88 17 80 D2 61 1D C1 6D 96 94 [09:21:57]CheckFolder [09:21:57]dirname=/storage/ofd_packets [09:21:57]CheckFolder done [09:21:57]ProducePacketName [09:21:57]name=ofd_packets/00227274 [09:21:57]NVStorageSaveData ofd_packets/00227274 [09:21:57]File name is /storage/ofd_packets/00227274 [09:21:57]Write 301 bytes [09:21:57]NVStorageSaveData done [09:21:57]OFDSenderStorePacket done [09:21:57]KKMCreateOFDPacket done [09:21:57]NVStorageSaveData kkm_last_timestamp [09:21:57]File name is /storage/kkm_last_timestamp [09:21:57]Write 4 bytes [09:21:57]NVStorageSaveData done [09:21:57]ExternCall_PrintAddStr [09:21:57]wPrintStart [09:21:57]Write to MH i2c: 01 00 00 7F 39 B8 [09:21:57]Write i2c OK [09:21:57]MH_I2C_Read... [09:21:57]Read from MH i2c: 01 [09:21:57]MH_I2C_Read... [09:21:57]Read from MH i2c: 01 07 00 [09:21:57]MH_I2C_Read... [09:21:57]Read from MH i2c: 01 07 00 7F 39 00 00 00 00 00 FF 0F CD [09:21:57]RasterBufferAndPrint [09:21:57]line Счет N : (1)1962742 [09:21:57]line ИНН: 02508201610067 [09:21:57]line Контрольно-Кассовый Чек [09:21:57]line ПРОДАЖА [09:21:57]line ТРК (МРК, ГНК) : 33 [09:21:57]line Товар: 2710124130 [09:21:57]line Аи-92-К-5 [09:21:57]line 3.740 * 66.90 [09:21:57]line = 250.21 [09:21:57]line НДС 12% НСП 1% [09:21:57]line > о реализуемом товаре [09:21:57]line ИТОГО: 250.21 [09:21:57]line НСП 1% : 2.21 [09:21:57]line НДС 12% : 26.57 [09:21:57]line Наличными: 0.00 [09:21:57]line Безнал.: 250.21 [09:21:57]line Место: АЗС № 133 "Партнер Нефть" [09:21:57]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:21:57]line СНО: Общий режим [09:21:57]line Чек 122 20.10.2024 09:21 [09:21:57]line Смена: 533 ФФД: 1.0 [09:21:57]line ЗНМ: 0300000091 [09:21:57]line РНМ: 0000000000091685 [09:21:57]line Версия ККМ: 001 [09:21:57]line Платежная система: Mbank [09:21:57]line ФМ: 0000000000871839 [09:21:57]line ФД: 227274 [09:21:57]line ФПД: 155835772012567 [09:21:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T092159&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227274&fm=155835772012567&tin=02508201610067®Number=0000000000091685&sum=25021 [09:21:57]written 0, free lines is 4095 [09:21:57]OFD Sender: Processing packet 227274 [packets to send 38, broken 37] [09:21:57]ProducePacketName [09:21:57]name=ofd_packets/00227274 [09:21:57]OFD Sender: To server: pG, [09:21:57]CommunicateWithHost lk.salyk.kg:30040 [09:21:57]ConnectInit lk.salyk.kg [09:21:57]Connected sock=10 [09:21: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 33 39 0F 01 00 00 7D CC 07 01 0E D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 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 00 00 00 00 00 00 39 04 06 00 BD 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 B7 CB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CA 77 03 00 35 04 06 00 8D BB 57 D5 88 17 80 D2 61 1D C1 6D 96 94 [09:21:57]Write to MH i2c: 01 00 00 A7 39 E0 [09:21:57]Write i2c OK [09:21:57]MH_I2C_Read... [09:21:57]Read from MH i2c: 01 [09:21:57]MH_I2C_Read... [09:21:57]Read from MH i2c: 01 07 00 [09:21:57]MH_I2C_Read... [09:21:57]Read from MH i2c: 01 07 00 A7 39 00 00 00 00 00 43 0D 37 [09:21:57]RasterBufferAndPrint [09:21:57]line [09:21:57]line [09:21:57]line [09:21:57]line [09:21:57]line [09:21:57]written 0, free lines is 3401 [09:21:57]process_action close_receipt done [09:21:57]requested_data is exist [09:21:57]produce_requested_data [09:21:57]requested_item fm.sn is exist - process it [09:21:57]wFMCommunicate request_size=4 [09:21:57]MH_SAM_APDU [09:21:57]CAPDU: 80 11 00 00 [09:21:57]Write to MH i2c: E2 08 00 AE 39 80 11 00 00 00 00 00 00 61 [09:21:57]Write i2c OK [09:21:57]MH_I2C_Read... [09:21:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:57]Read from MH i2c: E2 [09:21:57]MH_I2C_Read... [09:21:57]Read from MH i2c: E2 17 00 [09:21:57]MH_I2C_Read... [09:21:57]Read from MH i2c: E2 17 00 AE 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B8 [09:21:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:21:57]wFMCommunicate OK [09:21:57]requested_item fd.num is exist - process it [09:21:57]SAM_PROTO_GetFieldsCounters [09:21:57]wFMCommunicate request_size=4 [09:21:57]MH_SAM_APDU [09:21:57]CAPDU: 80 13 00 00 [09:21:57]Write to MH i2c: E2 08 00 AF 39 80 13 00 00 00 00 00 00 64 [09:21:57]Write i2c OK [09:21:57]MH_I2C_Read... [09:21:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:21:58]Read from MH i2c: E2 [09:21:58]MH_I2C_Read... [09:21:58]Read from MH i2c: E2 62 00 [09:21:58]MH_I2C_Read... [09:21:58]Read from MH i2c: E2 62 00 AF 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 CA 77 03 00 0E 04 04 00 15 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 56 [09:21: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 CA 77 03 00 0E 04 04 00 15 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 [09:21:58]wFMCommunicate OK [09:21:58]SAM_PROTO_GetFieldsCounters done [09:21:58]requested_item shift.num is exist - process it [09:21:58]requested_item shift.opened is exist - process it [09:21:58]req_shift_opened [09:21:58]FM_GetShiftState [09:21:58]SAM_PROTO_GetShiftState [09:21:58]wFMCommunicate request_size=4 [09:21:58]MH_SAM_APDU [09:21:58]CAPDU: 80 13 01 00 [09:21:58]Write to MH i2c: E2 08 00 B0 39 80 13 01 00 00 00 00 00 66 [09:21: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 33 39 4F 00 00 00 81 AA 47 00 F9 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 33 39 10 04 04 00 CA 77 03 00 F4 03 04 00 B7 76 14 67 B6 04 01 00 00 03 38 11 BD 24 2A 28 18 [09:21:58]CommunicateWithHost err = 0 [09:21:58]CheckOFDResponse [09:21:58]1017 (14) - 77093643461234 [09:21:58]1041 (16) - 0000000000871839 [09:21:58]1040 (4) - 227274 [09:21:58]1012 (4) - 20.10.2024 03:19 [09:21:58]1206 (1) - 0 [09:21:58]OFD Sender: Remove packet 227274 [09:21:58]ProducePacketName [09:21:58]name=ofd_packets/00227274 [09:21:58]NVStorageDeleteData [09:21:58]Write i2c OK [09:21:58]MH_I2C_Read... [09:21:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:58]Read from MH i2c: E2 [09:21:58]MH_I2C_Read... [09:21:58]Read from MH i2c: E2 0E 00 [09:21:58]MH_I2C_Read... [09:21:58]Read from MH i2c: E2 0E 00 B0 39 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 80 [09:21:58]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:21:58]wFMCommunicate OK [09:21:58]SAM_PROTO_GetShiftState done [09:21:58]FM_GetShiftState done [09:21:58]req_shift_opened done [09:21:58]requested_item shift.open_date is exist - process it [09:21:58]req_shift_open_date [09:21:58]req_shift_open_date done [09:21:58]produce_requested_data done [09:21:58]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227274,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [09:21:58]process_action_free close_receipt [09:21:58]json_value_free [09:21:58]json_value_free done [09:21:58]process_json_proto returns [09:21:58]Send response to host [09:21:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227274,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [09:21:58]free response buf [09:21:58]execute_script done [09:21:58]execute_script returns [09:21:58]free content buf [09:21:58]Sock 9.Close socket [09:21:58]Sock 9.Thread stoped [09:21:58]OFD Sender: No OFD packet to send [09:22:03]OFD Sender: No OFD packet to send [09:22:08]OFD Sender: No OFD packet to send [09:22:13]OFD Sender: No OFD packet to send [09:22:18]OFD Sender: No OFD packet to send [09:22:23]OFD Sender: No OFD packet to send [09:22:28]OFD Sender: No OFD packet to send [09:22:33]OFD Sender: No OFD packet to send [09:22:38]OFD Sender: No OFD packet to send [09:22:39]accept exits with 8 [09:22:39]New connection [09:22:39]New thread 3066965348 created [09:22:39]Thread 3066821988 joined [09:22:39]Waiting for new connection... [09:22:39] Sock 8.Parse request [09:22:39]Sock 8.Check first char [09:22:39]Sock 8.First char is OK [09:22:39]request: POST /json_proto HTTP/1.0 [09:22:39]Method: POST [09:22:39]URL: /json_proto [09:22:39]Method is POST - this is cgi request [09:22:39]url: /json_proto [09:22:39]query_string will be loaded in cgi processing [09:22:39]execute_cgi json_proto POST (null) [09:22:39]execute_cgi path=json_proto method=POST [09:22:39]POST find Content-Length [09:22:39]Host: 172.17.44.195:8080 [09:22:39]Content-Length: 679 [09:22:39]Content-Type: application/json [09:22:39] [09:22:39]POST finish read [09:22:39]Found Content-Length = 679 [09:22:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962744", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:22:39]execute_script... [09:22: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)1962744", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:22:39]POST & json_proto [09:22:39]process_json_proto [09:22:39]json parsed OK: [09:22:39]protocol is kg_v1.0 [09:22:39]action value=close_receipt [09:22:39]process_action close_receipt [09:22:39]cmd_close_receipt [09:22:39]MH_GetDate [09:22:39]Write to MH i2c: F0 00 00 B1 39 D9 [09:22:39]Write i2c OK [09:22:39]MH_I2C_Read... [09:22:39]Read from MH i2c: F0 [09:22:39]MH_I2C_Read... [09:22:39]Read from MH i2c: F0 09 00 [09:22:39]MH_I2C_Read... [09:22:39]Read from MH i2c: F0 09 00 B1 39 00 E3 CB 14 67 82 C9 CF 66 8B [09:22:39]GetLastDocTimeStamp 1729416119 [09:22:39]current date 1729416163 [09:22:39]FM_GetShiftState [09:22:39]SAM_PROTO_GetShiftState [09:22:39]wFMCommunicate request_size=4 [09:22:39]MH_SAM_APDU [09:22:39]CAPDU: 80 13 01 00 [09:22:39]Write to MH i2c: E2 08 00 B2 39 80 13 01 00 00 00 00 00 68 [09:22:39]Write i2c OK [09:22:39]MH_I2C_Read... [09:22:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:39]Read from MH i2c: E2 [09:22:39]MH_I2C_Read... [09:22:39]Read from MH i2c: E2 0E 00 [09:22:39]MH_I2C_Read... [09:22:39]Read from MH i2c: E2 0E 00 B2 39 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 82 [09:22:39]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:22:39]wFMCommunicate OK [09:22:39]SAM_PROTO_GetShiftState done [09:22:39]FM_GetShiftState done [09:22:39]opened in 1729383750 [09:22:39]opened+sec_in_day 1729470150 [09:22:39]quantity*price = 70044 [09:22:39]sum+1 = 70045 [09:22:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 123 20.10.2024 09:22 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227275 ФПД: 147743611272634 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T092244&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227275&fm=147743611272634&tin=02508201610067®Number=0000000000091685&sum=70000 [09:22:41]StoreToDocumentArchive [09:22:41]shift 533 fd 227275 [09:22:41]save to /storage/0533/doc_00227275 [09:22:41]save last doc name /storage/0533/doc_00227275 to /storage/kkm_last_doc_name [09:22:41]save OK [09:22:41]Clear old archive folders... [09:22:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:22:41]tlvbuf is 00531270 [09:22:41]SAM_PROTO_ClearQueue [09:22:41]wFMCommunicate request_size=4 [09:22:41]MH_SAM_APDU [09:22:41]CAPDU: 80 09 00 00 [09:22:41]Write to MH i2c: E2 08 00 BF 39 80 09 00 00 00 00 00 00 6A [09:22:41]Write i2c OK [09:22:41]MH_I2C_Read... [09:22:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:22:41]Read from MH i2c: E2 [09:22:41]MH_I2C_Read... [09:22:41]Read from MH i2c: E2 03 00 [09:22:41]MH_I2C_Read... [09:22:41]Read from MH i2c: E2 03 00 BF 39 00 90 00 6C [09:22:41]RAPDU: 90 00 [09:22:41]wFMCommunicate OK [09:22:41]SAM_PROTO_ClearQueue done [09:22:41]KKMCreateOFDPacket [09:22:41]OFDProtocolAddRootSTLVToBuf [09:22:41]FM_MakeSignedData [09:22:41]FM_MakeSignedData [09:22:41]SAM_PROTO_SignData [09:22:41]wFMCommunicate request_size=4 [09:22:41]MH_SAM_APDU [09:22:41]CAPDU: 80 0D 01 02 [09:22:41]Write to MH i2c: E2 08 00 C0 39 80 0D 01 02 00 00 00 00 72 [09:22:41]Write i2c OK [09:22:41]MH_I2C_Read... [09:22:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:22:41]Read from MH i2c: E2 [09:22:41]MH_I2C_Read... [09:22:41]Read from MH i2c: E2 03 00 [09:22:41]MH_I2C_Read... [09:22:41]Read from MH i2c: E2 03 00 C0 39 00 90 00 6D [09:22:41]RAPDU: 90 00 [09:22:41]wFMCommunicate OK [09:22:41]wFMCommunicate request_size=255 [09:22:41]MH_SAM_APDU [09:22:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 E4 CB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CB 77 03 00 35 04 06 00 86 [09:22:41]Write to MH i2c: E2 02 01 C1 39 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 E4 CB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CB 77 03 00 35 04 06 00 86 00 00 A0 [09:22:41]Write i2c OK [09:22:41]MH_I2C_Read... [09:22:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:41]Read from MH i2c: E2 [09:22:41]MH_I2C_Read... [09:22:41]Read from MH i2c: E2 03 00 [09:22:41]MH_I2C_Read... [09:22:41]Read from MH i2c: E2 03 00 C1 39 00 90 00 6E [09:22:41]RAPDU: 90 00 [09:22:41]wFMCommunicate OK [09:22:41]wFMCommunicate request_size=10 [09:22:41]MH_SAM_APDU [09:22:41]CAPDU: 80 0D 02 02 05 5F 3D 77 BD BA [09:22:41]Write to MH i2c: E2 0D 00 C2 39 80 0D 02 02 05 00 5F 3D 77 BD BA 00 00 09 [09:22:41]Write i2c OK [09:22:41]MH_I2C_Read... [09:22:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:41]Read from MH i2c: E2 [09:22:41]MH_I2C_Read... [09:22:41]Read from MH i2c: E2 03 00 [09:22:41]MH_I2C_Read... [09:22:41]Read from MH i2c: E2 03 00 C2 39 00 90 00 6F [09:22:41]RAPDU: 90 00 [09:22:41]wFMCommunicate OK [09:22:41]wFMCommunicate request_size=4 [09:22:41]MH_SAM_APDU [09:22:41]CAPDU: 80 0D 03 02 [09:22:41]Write to MH i2c: E2 08 00 C3 39 80 0D 03 02 00 00 00 00 77 [09:22:41]Write i2c OK [09:22:41]MH_I2C_Read... [09:22:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:22:41]Read from MH i2c: E2 [09:22:41]MH_I2C_Read... [09:22:41]Read from MH i2c: E2 0B 00 [09:22:41]MH_I2C_Read... [09:22:41]Read from MH i2c: E2 0B 00 C3 39 00 34 FB 1C 45 80 07 B7 37 90 00 7D [09:22:41]RAPDU: 34 FB 1C 45 80 07 B7 37 90 00 [09:22:41]wFMCommunicate OK [09:22:41]SAM_PROTO_SignData done [09:22:41]FM_MakeSignedData done [09:22:41]CreateOFDProtocolMessage [09:22:41]wFMCommunicate request_size=4 [09:22:41]MH_SAM_APDU [09:22:41]CAPDU: 80 11 00 00 [09:22:41]Write to MH i2c: E2 08 00 C4 39 80 11 00 00 00 00 00 00 77 [09:22:41]Write i2c OK [09:22:41]MH_I2C_Read... [09:22:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:41]Read from MH i2c: E2 [09:22:41]MH_I2C_Read... [09:22:41]Read from MH i2c: E2 17 00 [09:22:41]MH_I2C_Read... [09:22:41]Read from MH i2c: E2 17 00 C4 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 CE [09:22:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:22:41]wFMCommunicate OK [09:22:41]CreateOFDProtocolMessage done [09:22:41]OFDSenderStorePacket 227275 [09:22:41]StoreOFDPacket docnum=227275 [09:22:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 A8 31 07 01 79 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 E4 CB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CB 77 03 00 35 04 06 00 86 5F 3D 77 BD BA 34 FB 1C 45 80 07 B7 37 [09:22:41]CheckFolder [09:22:41]dirname=/storage/ofd_packets [09:22:41]CheckFolder done [09:22:41]ProducePacketName [09:22:41]name=ofd_packets/00227275 [09:22:41]NVStorageSaveData ofd_packets/00227275 [09:22:41]File name is /storage/ofd_packets/00227275 [09:22:41]Write 301 bytes [09:22:41]NVStorageSaveData done [09:22:41]OFDSenderStorePacket done [09:22:41]KKMCreateOFDPacket done [09:22:41]NVStorageSaveData kkm_last_timestamp [09:22:41]File name is /storage/kkm_last_timestamp [09:22:41]Write 4 bytes [09:22:41]NVStorageSaveData done [09:22:41]ExternCall_PrintAddStr [09:22:41]wPrintStart [09:22:41]Write to MH i2c: 01 00 00 C5 39 FE [09:22:41]Write i2c OK [09:22:41]MH_I2C_Read... [09:22:41]Read from MH i2c: 01 [09:22:41]MH_I2C_Read... [09:22:41]Read from MH i2c: 01 07 00 [09:22:41]MH_I2C_Read... [09:22:41]Read from MH i2c: 01 07 00 C5 39 00 00 00 00 00 FF 0F 13 [09:22:41]RasterBufferAndPrint [09:22:41]line Счет N : (1)1962744 [09:22:41]line ИНН: 02508201610067 [09:22:41]line Контрольно-Кассовый Чек [09:22:41]line ПРОДАЖА [09:22:41]line ТРК (МРК, ГНК) : 63 [09:22:41]line Товар: 2710124130 [09:22:41]line Аи-92-К-5 [09:22:41]line 10.470 * 66.90 [09:22:41]line = 700.44 [09:22:41]line НДС 12% НСП 1% [09:22:41]line > о реализуемом товаре [09:22:41]line ОКРУГЛЕНИЕ: -0.44 [09:22:41]line ИТОГО: 700.00 [09:22:41]line Внесено: 700.00 [09:22:41]line СДАЧА: 0.00 [09:22:41]line НСП 1% : 6.20 [09:22:41]line НДС 12% : 74.38 [09:22:41]line Наличными: 700.00 [09:22:41]line Безнал.: 0.00 [09:22:41]line Место: АЗС № 133 "Партнер Нефть" [09:22:41]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:22:41]line СНО: Общий режим [09:22:41]line Чек 123 20.10.2024 09:22 [09:22:41]line Смена: 533 ФФД: 1.0 [09:22:41]line ЗНМ: 0300000091 [09:22:41]line РНМ: 0000000000091685 [09:22:41]line Версия ККМ: 001 [09:22:41]line ФМ: 0000000000871839 [09:22:41]line ФД: 227275 [09:22:41]line ФПД: 147743611272634 [09:22:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T092244&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227275&fm=147743611272634&tin=02508201610067®Number=0000000000091685&sum=70000 [09:22:41]written 0, free lines is 4095 [09:22:41]OFD Sender: Processing packet 227275 [packets to send 38, broken 37] [09:22:41]ProducePacketName [09:22:41]name=ofd_packets/00227275 [09:22:41]OFD Sender: To server: pG, [09:22:41]CommunicateWithHost lk.salyk.kg:30040 [09:22:41]ConnectInit lk.salyk.kg [09:22:41]Connected sock=10 [09:22: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 33 39 0F 01 00 00 A8 31 07 01 79 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 E4 CB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CB 77 03 00 35 04 06 00 86 5F 3D 77 BD BA 34 FB 1C 45 80 07 B7 37 [09:22: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 33 39 4F 00 00 00 E9 2C 47 00 F7 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 33 39 10 04 04 00 CB 77 03 00 F4 03 04 00 E3 76 14 67 B6 04 01 00 00 48 C8 3D 40 83 BF EA C6 [09:22:41]CommunicateWithHost err = 0 [09:22:41]CheckOFDResponse [09:22:41]1017 (14) - 77093643461234 [09:22:41]1041 (16) - 0000000000871839 [09:22:41]1040 (4) - 227275 [09:22:41]1012 (4) - 20.10.2024 03:20 [09:22:41]1206 (1) - 0 [09:22:41]OFD Sender: Remove packet 227275 [09:22:41]ProducePacketName [09:22:41]name=ofd_packets/00227275 [09:22:41]NVStorageDeleteData [09:22:42]Write to MH i2c: 01 00 00 EF 39 28 [09:22:42]Write i2c OK [09:22:42]MH_I2C_Read... [09:22:42]Read from MH i2c: 01 [09:22:42]MH_I2C_Read... [09:22:42]Read from MH i2c: 01 07 00 [09:22:42]MH_I2C_Read... [09:22:42]Read from MH i2c: 01 07 00 EF 39 00 00 00 00 00 0D 0D 49 [09:22:42]RasterBufferAndPrint [09:22:42]line [09:22:42]line [09:22:42]line [09:22:42]line [09:22:42]line [09:22:42]written 0, free lines is 3347 [09:22:42]process_action close_receipt done [09:22:42]requested_data is exist [09:22:42]produce_requested_data [09:22:42]requested_item fm.sn is exist - process it [09:22:42]wFMCommunicate request_size=4 [09:22:42]MH_SAM_APDU [09:22:42]CAPDU: 80 11 00 00 [09:22:42]Write to MH i2c: E2 08 00 F6 39 80 11 00 00 00 00 00 00 A9 [09:22:42]Write i2c OK [09:22:42]MH_I2C_Read... [09:22:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:42]Read from MH i2c: E2 [09:22:42]MH_I2C_Read... [09:22:42]Read from MH i2c: E2 17 00 [09:22:42]MH_I2C_Read... [09:22:42]Read from MH i2c: E2 17 00 F6 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 00 [09:22:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:22:42]wFMCommunicate OK [09:22:42]requested_item fd.num is exist - process it [09:22:42]SAM_PROTO_GetFieldsCounters [09:22:42]wFMCommunicate request_size=4 [09:22:42]MH_SAM_APDU [09:22:42]CAPDU: 80 13 00 00 [09:22:42]Write to MH i2c: E2 08 00 F7 39 80 13 00 00 00 00 00 00 AC [09:22:42]Write i2c OK [09:22:42]MH_I2C_Read... [09:22:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:22:42]Read from MH i2c: E2 [09:22:42]MH_I2C_Read... [09:22:42]Read from MH i2c: E2 62 00 [09:22:42]MH_I2C_Read... [09:22:42]Read from MH i2c: E2 62 00 F7 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 CB 77 03 00 0E 04 04 00 15 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 A2 [09:22: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 CB 77 03 00 0E 04 04 00 15 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 [09:22:42]wFMCommunicate OK [09:22:42]SAM_PROTO_GetFieldsCounters done [09:22:42]requested_item shift.num is exist - process it [09:22:42]requested_item shift.opened is exist - process it [09:22:42]req_shift_opened [09:22:42]FM_GetShiftState [09:22:42]SAM_PROTO_GetShiftState [09:22:42]wFMCommunicate request_size=4 [09:22:42]MH_SAM_APDU [09:22:42]CAPDU: 80 13 01 00 [09:22:42]Write to MH i2c: E2 08 00 F8 39 80 13 01 00 00 00 00 00 AE [09:22:42]Write i2c OK [09:22:42]MH_I2C_Read... [09:22:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:42]Read from MH i2c: E2 [09:22:42]MH_I2C_Read... [09:22:42]Read from MH i2c: E2 0E 00 [09:22:42]MH_I2C_Read... [09:22:42]Read from MH i2c: E2 0E 00 F8 39 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 C8 [09:22:42]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:22:42]wFMCommunicate OK [09:22:42]SAM_PROTO_GetShiftState done [09:22:42]FM_GetShiftState done [09:22:42]req_shift_opened done [09:22:42]requested_item shift.open_date is exist - process it [09:22:42]req_shift_open_date [09:22:42]req_shift_open_date done [09:22:42]produce_requested_data done [09:22:42]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227275,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [09:22:42]process_action_free close_receipt [09:22:42]json_value_free [09:22:42]json_value_free done [09:22:42]process_json_proto returns [09:22:42]Send response to host [09:22:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227275,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [09:22:42]free response buf [09:22:42]execute_script done [09:22:42]execute_script returns [09:22:42]free content buf [09:22:42]Sock 8.Close socket [09:22:42]Sock 8.Thread stoped [09:22:42]OFD Sender: No OFD packet to send [09:22:47]OFD Sender: No OFD packet to send [09:22:52]OFD Sender: No OFD packet to send [09:22:57]OFD Sender: No OFD packet to send [09:23:02]OFD Sender: No OFD packet to send [09:23:07]OFD Sender: No OFD packet to send [09:23:11]accept exits with 9 [09:23:11]New connection [09:23:11]New thread 3066821988 created [09:23:11]Thread 3066965348 joined [09:23:11]Waiting for new connection... [09:23:11] Sock 9.Parse request [09:23:11]Sock 9.Check first char [09:23:11]Sock 9.First char is OK [09:23:11]request: POST /json_proto HTTP/1.0 [09:23:11]Method: POST [09:23:11]URL: /json_proto [09:23:11]Method is POST - this is cgi request [09:23:11]url: /json_proto [09:23:11]query_string will be loaded in cgi processing [09:23:11]execute_cgi json_proto POST (null) [09:23:11]execute_cgi path=json_proto method=POST [09:23:11]POST find Content-Length [09:23:11]Host: 172.17.44.195:8080 [09:23:11]Content-Length: 664 [09:23:11]Content-Type: application/json [09:23:11] [09:23:11]POST finish read [09:23:11]Found Content-Length = 664 [09:23:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962743", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:23:11]execute_script... [09:23: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)1962743", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:23:11]POST & json_proto [09:23:11]process_json_proto [09:23:11]json parsed OK: [09:23:11]protocol is kg_v1.0 [09:23:11]action value=close_receipt [09:23:11]process_action close_receipt [09:23:11]cmd_close_receipt [09:23:11]MH_GetDate [09:23:11]Write to MH i2c: F0 00 00 F9 39 21 [09:23:11]Write i2c OK [09:23:11]MH_I2C_Read... [09:23:11]Read from MH i2c: F0 [09:23:11]MH_I2C_Read... [09:23:11]Read from MH i2c: F0 09 00 [09:23:11]MH_I2C_Read... [09:23:11]Read from MH i2c: F0 09 00 F9 39 00 03 CC 14 67 82 C9 CF 66 F4 [09:23:11]GetLastDocTimeStamp 1729416164 [09:23:11]current date 1729416195 [09:23:11]FM_GetShiftState [09:23:11]SAM_PROTO_GetShiftState [09:23:11]wFMCommunicate request_size=4 [09:23:11]MH_SAM_APDU [09:23:11]CAPDU: 80 13 01 00 [09:23:11]Write to MH i2c: E2 08 00 FA 39 80 13 01 00 00 00 00 00 B0 [09:23:11]Write i2c OK [09:23:11]MH_I2C_Read... [09:23:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:11]Read from MH i2c: E2 [09:23:11]MH_I2C_Read... [09:23:11]Read from MH i2c: E2 0E 00 [09:23:11]MH_I2C_Read... [09:23:11]Read from MH i2c: E2 0E 00 FA 39 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 CA [09:23:11]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:23:11]wFMCommunicate OK [09:23:11]SAM_PROTO_GetShiftState done [09:23:11]FM_GetShiftState done [09:23:11]opened in 1729383750 [09:23:11]opened+sec_in_day 1729470150 [09:23:11]quantity*price = 100000 [09:23:11]sum+1 = 100002 [09:23:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 124 20.10.2024 09:23 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227276 ФПД: 212387602187745 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T092315&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227276&fm=212387602187745&tin=02508201610067®Number=0000000000091685&sum=100000 [09:23:12]StoreToDocumentArchive [09:23:12]shift 533 fd 227276 [09:23:12]save to /storage/0533/doc_00227276 [09:23:12]save last doc name /storage/0533/doc_00227276 to /storage/kkm_last_doc_name [09:23:12]save OK [09:23:12]Clear old archive folders... [09:23:12]ProcessDocumentItem done err = 0, tmpTLVsize=244 [09:23:12]tlvbuf is 005FF390 [09:23:12]SAM_PROTO_ClearQueue [09:23:12]wFMCommunicate request_size=4 [09:23:12]MH_SAM_APDU [09:23:12]CAPDU: 80 09 00 00 [09:23:12]Write to MH i2c: E2 08 00 07 3A 80 09 00 00 00 00 00 00 B3 [09:23:12]Write i2c OK [09:23:12]MH_I2C_Read... [09:23:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:23:12]Read from MH i2c: E2 [09:23:12]MH_I2C_Read... [09:23:12]Read from MH i2c: E2 03 00 [09:23:12]MH_I2C_Read... [09:23:12]Read from MH i2c: E2 03 00 07 3A 00 90 00 B5 [09:23:12]RAPDU: 90 00 [09:23:12]wFMCommunicate OK [09:23:12]SAM_PROTO_ClearQueue done [09:23:12]KKMCreateOFDPacket [09:23:12]OFDProtocolAddRootSTLVToBuf [09:23:12]FM_MakeSignedData [09:23:12]FM_MakeSignedData [09:23:12]SAM_PROTO_SignData [09:23:12]wFMCommunicate request_size=4 [09:23:12]MH_SAM_APDU [09:23:12]CAPDU: 80 0D 01 02 [09:23:12]Write to MH i2c: E2 08 00 08 3A 80 0D 01 02 00 00 00 00 BB [09:23:12]Write i2c OK [09:23:12]MH_I2C_Read... [09:23:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:23:12]Read from MH i2c: E2 [09:23:12]MH_I2C_Read... [09:23:12]Read from MH i2c: E2 03 00 [09:23:12]MH_I2C_Read... [09:23:12]Read from MH i2c: E2 03 00 08 3A 00 90 00 B6 [09:23:12]RAPDU: 90 00 [09:23:12]wFMCommunicate OK [09:23:12]wFMCommunicate request_size=253 [09:23:12]MH_SAM_APDU [09:23:12]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 03 CC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CC 77 03 00 35 04 06 00 C1 2A 57 95 45 E1 [09:23:12]Write to MH i2c: E2 00 01 09 3A 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 03 CC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CC 77 03 00 35 04 06 00 C1 2A 57 95 45 E1 00 00 55 [09:23:12]Write i2c OK [09:23:12]MH_I2C_Read... [09:23:12]OFD Sender: No OFD packet to send [09:23:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:12]Read from MH i2c: E2 [09:23:12]MH_I2C_Read... [09:23:12]Read from MH i2c: E2 03 00 [09:23:12]MH_I2C_Read... [09:23:12]Read from MH i2c: E2 03 00 09 3A 00 90 00 B7 [09:23:12]RAPDU: 90 00 [09:23:12]wFMCommunicate OK [09:23:12]wFMCommunicate request_size=4 [09:23:12]MH_SAM_APDU [09:23:12]CAPDU: 80 0D 03 02 [09:23:12]Write to MH i2c: E2 08 00 0A 3A 80 0D 03 02 00 00 00 00 BF [09:23:12]Write i2c OK [09:23:12]MH_I2C_Read... [09:23:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:23:12]Read from MH i2c: E2 [09:23:12]MH_I2C_Read... [09:23:12]Read from MH i2c: E2 0B 00 [09:23:12]MH_I2C_Read... [09:23:12]Read from MH i2c: E2 0B 00 0A 3A 00 2A 77 A8 57 D2 4A DC 0D 90 00 65 [09:23:12]RAPDU: 2A 77 A8 57 D2 4A DC 0D 90 00 [09:23:12]wFMCommunicate OK [09:23:12]SAM_PROTO_SignData done [09:23:12]FM_MakeSignedData done [09:23:12]CreateOFDProtocolMessage [09:23:12]wFMCommunicate request_size=4 [09:23:12]MH_SAM_APDU [09:23:12]CAPDU: 80 11 00 00 [09:23:12]Write to MH i2c: E2 08 00 0B 3A 80 11 00 00 00 00 00 00 BF [09:23:12]Write i2c OK [09:23:12]MH_I2C_Read... [09:23:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:12]Read from MH i2c: E2 [09:23:12]MH_I2C_Read... [09:23:12]Read from MH i2c: E2 17 00 [09:23:12]MH_I2C_Read... [09:23:12]Read from MH i2c: E2 17 00 0B 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 16 [09:23:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:23:12]wFMCommunicate OK [09:23:12]CreateOFDProtocolMessage done [09:23:12]OFDSenderStorePacket 227276 [09:23:12]StoreOFDPacket docnum=227276 [09:23:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 D3 BD 00 01 11 45 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 03 CC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CC 77 03 00 35 04 06 00 C1 2A 57 95 45 E1 2A 77 A8 57 D2 4A DC 0D [09:23:12]CheckFolder [09:23:12]dirname=/storage/ofd_packets [09:23:12]CheckFolder done [09:23:12]ProducePacketName [09:23:12]name=ofd_packets/00227276 [09:23:12]NVStorageSaveData ofd_packets/00227276 [09:23:12]File name is /storage/ofd_packets/00227276 [09:23:12]Write 294 bytes [09:23:12]NVStorageSaveData done [09:23:12]OFDSenderStorePacket done [09:23:12]KKMCreateOFDPacket done [09:23:12]NVStorageSaveData kkm_last_timestamp [09:23:12]File name is /storage/kkm_last_timestamp [09:23:12]Write 4 bytes [09:23:12]NVStorageSaveData done [09:23:12]ExternCall_PrintAddStr [09:23:12]wPrintStart [09:23:12]Write to MH i2c: 01 00 00 0C 3A 46 [09:23:12]Write i2c OK [09:23:12]MH_I2C_Read... [09:23:12]Read from MH i2c: 01 [09:23:12]MH_I2C_Read... [09:23:12]Read from MH i2c: 01 07 00 [09:23:12]MH_I2C_Read... [09:23:12]Read from MH i2c: 01 07 00 0C 3A 00 00 00 00 00 FF 0F 5B [09:23:12]RasterBufferAndPrint [09:23:12]line Счет N : (1)1962743 [09:23:12]line ИНН: 02508201610067 [09:23:12]line Контрольно-Кассовый Чек [09:23:12]line ПРОДАЖА [09:23:12]line ТРК (МРК, ГНК) : 42 [09:23:12]line Товар: 2710124130 [09:23:12]line SU-92 [09:23:12]line 14.620 * 68.40 [09:23:12]line = 1000.01 [09:23:12]line НДС 12% НСП 1% [09:23:12]line > о реализуемом товаре [09:23:12]line ОКРУГЛЕНИЕ: -0.01 [09:23:12]line ИТОГО: 1000.00 [09:23:12]line Внесено: 1000.00 [09:23:12]line СДАЧА: 0.00 [09:23:12]line НСП 1% : 8.85 [09:23:12]line НДС 12% : 106.20 [09:23:12]line Наличными: 1000.00 [09:23:12]line Безнал.: 0.00 [09:23:12]line Место: АЗС № 133 "Партнер Нефть" [09:23:12]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:23:12]line СНО: Общий режим [09:23:12]line Чек 124 20.10.2024 09:23 [09:23:12]line Смена: 533 ФФД: 1.0 [09:23:12]line ЗНМ: 0300000091 [09:23:12]line РНМ: 0000000000091685 [09:23:12]line Версия ККМ: 001 [09:23:12]line ФМ: 0000000000871839 [09:23:12]line ФД: 227276 [09:23:12]line ФПД: 212387602187745 [09:23:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T092315&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227276&fm=212387602187745&tin=02508201610067®Number=0000000000091685&sum=100000 [09:23:12]written 0, free lines is 4095 [09:23:12]OFD Sender: Processing packet 227276 [packets to send 38, broken 37] [09:23:12]ProducePacketName [09:23:12]name=ofd_packets/00227276 [09:23:12]OFD Sender: To server: pG, [09:23:12]CommunicateWithHost lk.salyk.kg:30040 [09:23:12]ConnectInit lk.salyk.kg [09:23:13]Connected sock=10 [09:23: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 33 39 08 01 00 00 D3 BD 00 01 11 45 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 03 CC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CC 77 03 00 35 04 06 00 C1 2A 57 95 45 E1 2A 77 A8 57 D2 4A DC 0D [09:23: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 33 39 4F 00 00 00 80 8C 47 00 7C 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 33 39 10 04 04 00 CC 77 03 00 F4 03 04 00 02 77 14 67 B6 04 01 00 00 63 3D 68 FD 8E 3F E0 93 [09:23:13]CommunicateWithHost err = 0 [09:23:13]CheckOFDResponse [09:23:13]1017 (14) - 77093643461234 [09:23:13]1041 (16) - 0000000000871839 [09:23:13]1040 (4) - 227276 [09:23:13]1012 (4) - 20.10.2024 03:20 [09:23:13]1206 (1) - 0 [09:23:13]OFD Sender: Remove packet 227276 [09:23:13]ProducePacketName [09:23:13]name=ofd_packets/00227276 [09:23:13]NVStorageDeleteData [09:23:13]Write to MH i2c: 01 00 00 36 3A 70 [09:23:13]Write i2c OK [09:23:13]MH_I2C_Read... [09:23:13]Read from MH i2c: 01 [09:23:13]MH_I2C_Read... [09:23:13]Read from MH i2c: 01 07 00 [09:23:13]MH_I2C_Read... [09:23:13]Read from MH i2c: 01 07 00 36 3A 00 00 00 00 00 12 0D 96 [09:23:13]RasterBufferAndPrint [09:23:13]line [09:23:13]line [09:23:13]line [09:23:13]line [09:23:13]line [09:23:13]written 0, free lines is 3352 [09:23:13]process_action close_receipt done [09:23:13]requested_data is exist [09:23:13]produce_requested_data [09:23:13]requested_item fm.sn is exist - process it [09:23:13]wFMCommunicate request_size=4 [09:23:13]MH_SAM_APDU [09:23:13]CAPDU: 80 11 00 00 [09:23:13]Write to MH i2c: E2 08 00 3D 3A 80 11 00 00 00 00 00 00 F1 [09:23:13]Write i2c OK [09:23:13]MH_I2C_Read... [09:23:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:13]Read from MH i2c: E2 [09:23:13]MH_I2C_Read... [09:23:13]Read from MH i2c: E2 17 00 [09:23:13]MH_I2C_Read... [09:23:13]Read from MH i2c: E2 17 00 3D 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 48 [09:23:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:23:13]wFMCommunicate OK [09:23:13]requested_item fd.num is exist - process it [09:23:13]SAM_PROTO_GetFieldsCounters [09:23:13]wFMCommunicate request_size=4 [09:23:13]MH_SAM_APDU [09:23:13]CAPDU: 80 13 00 00 [09:23:13]Write to MH i2c: E2 08 00 3E 3A 80 13 00 00 00 00 00 00 F4 [09:23:13]Write i2c OK [09:23:13]MH_I2C_Read... [09:23:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:23:13]Read from MH i2c: E2 [09:23:13]MH_I2C_Read... [09:23:13]Read from MH i2c: E2 62 00 [09:23:13]MH_I2C_Read... [09:23:13]Read from MH i2c: E2 62 00 3E 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 CC 77 03 00 0E 04 04 00 15 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 EE [09:23: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 CC 77 03 00 0E 04 04 00 15 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 [09:23:13]wFMCommunicate OK [09:23:13]SAM_PROTO_GetFieldsCounters done [09:23:13]requested_item shift.num is exist - process it [09:23:13]requested_item shift.opened is exist - process it [09:23:13]req_shift_opened [09:23:13]FM_GetShiftState [09:23:13]SAM_PROTO_GetShiftState [09:23:13]wFMCommunicate request_size=4 [09:23:13]MH_SAM_APDU [09:23:13]CAPDU: 80 13 01 00 [09:23:13]Write to MH i2c: E2 08 00 3F 3A 80 13 01 00 00 00 00 00 F6 [09:23:13]Write i2c OK [09:23:13]MH_I2C_Read... [09:23:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:13]Read from MH i2c: E2 [09:23:13]MH_I2C_Read... [09:23:13]Read from MH i2c: E2 0E 00 [09:23:13]MH_I2C_Read... [09:23:13]Read from MH i2c: E2 0E 00 3F 3A 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 10 [09:23:13]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:23:13]wFMCommunicate OK [09:23:13]SAM_PROTO_GetShiftState done [09:23:13]FM_GetShiftState done [09:23:13]req_shift_opened done [09:23:13]requested_item shift.open_date is exist - process it [09:23:13]req_shift_open_date [09:23:13]req_shift_open_date done [09:23:13]produce_requested_data done [09:23:13]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227276,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [09:23:13]process_action_free close_receipt [09:23:13]json_value_free [09:23:13]json_value_free done [09:23:13]process_json_proto returns [09:23:13]Send response to host [09:23:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227276,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [09:23:13]free response buf [09:23:13]execute_script done [09:23:13]execute_script returns [09:23:13]free content buf [09:23:13]Sock 9.Close socket [09:23:13]Sock 9.Thread stoped [09:23:13]OFD Sender: No OFD packet to send [09:23:18]OFD Sender: No OFD packet to send [09:23:23]OFD Sender: No OFD packet to send [09:23:28]OFD Sender: No OFD packet to send [09:23:33]OFD Sender: No OFD packet to send [09:23:38]OFD Sender: No OFD packet to send [09:23:43]OFD Sender: No OFD packet to send [09:23:48]OFD Sender: No OFD packet to send [09:23:53]OFD Sender: No OFD packet to send [09:23:58]OFD Sender: No OFD packet to send [09:24:03]OFD Sender: No OFD packet to send [09:24:08]OFD Sender: No OFD packet to send [09:24:13]OFD Sender: No OFD packet to send [09:24:18]OFD Sender: No OFD packet to send [09:24:23]OFD Sender: No OFD packet to send [09:24:28]OFD Sender: No OFD packet to send [09:24:33]OFD Sender: No OFD packet to send [09:24:38]OFD Sender: No OFD packet to send [09:24:43]OFD Sender: No OFD packet to send [09:24:48]OFD Sender: No OFD packet to send [09:24:53]OFD Sender: No OFD packet to send [09:24:58]OFD Sender: No OFD packet to send [09:25:03]OFD Sender: No OFD packet to send [09:25:08]OFD Sender: No OFD packet to send [09:25:13]OFD Sender: No OFD packet to send [09:25:16]accept exits with 8 [09:25:16]New connection [09:25:16]New thread 3066965348 created [09:25:16]Thread 3066821988 joined [09:25:16]Waiting for new connection... [09:25:16] Sock 8.Parse request [09:25:16]Sock 8.Check first char [09:25:16]Sock 8.First char is OK [09:25:16]request: POST /json_proto HTTP/1.0 [09:25:16]Method: POST [09:25:16]URL: /json_proto [09:25:16]Method is POST - this is cgi request [09:25:16]url: /json_proto [09:25:16]query_string will be loaded in cgi processing [09:25:16]execute_cgi json_proto POST (null) [09:25:16]execute_cgi path=json_proto method=POST [09:25:16]POST find Content-Length [09:25:16]Host: 172.17.44.195:8080 [09:25:16]Content-Length: 678 [09:25:16]Content-Type: application/json [09:25:16] [09:25:16]POST finish read [09:25:16]Found Content-Length = 678 [09:25:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962747", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "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" ] } } [09:25:16]execute_script... [09:25: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)1962747", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "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" ] } } [09:25:16]POST & json_proto [09:25:16]process_json_proto [09:25:16]json parsed OK: [09:25:16]protocol is kg_v1.0 [09:25:16]action value=close_receipt [09:25:16]process_action close_receipt [09:25:16]cmd_close_receipt [09:25:16]MH_GetDate [09:25:16]Write to MH i2c: F0 00 00 40 3A 69 [09:25:16]Write i2c OK [09:25:16]MH_I2C_Read... [09:25:16]Read from MH i2c: F0 [09:25:16]MH_I2C_Read... [09:25:16]Read from MH i2c: F0 09 00 [09:25:16]MH_I2C_Read... [09:25:16]Read from MH i2c: F0 09 00 40 3A 00 80 CC 14 67 82 C9 CF 66 B9 [09:25:16]GetLastDocTimeStamp 1729416195 [09:25:16]current date 1729416320 [09:25:16]FM_GetShiftState [09:25:16]SAM_PROTO_GetShiftState [09:25:16]wFMCommunicate request_size=4 [09:25:16]MH_SAM_APDU [09:25:16]CAPDU: 80 13 01 00 [09:25:16]Write to MH i2c: E2 08 00 41 3A 80 13 01 00 00 00 00 00 F8 [09:25:16]Write i2c OK [09:25:16]MH_I2C_Read... [09:25:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:16]Read from MH i2c: E2 [09:25:16]MH_I2C_Read... [09:25:16]Read from MH i2c: E2 0E 00 [09:25:16]MH_I2C_Read... [09:25:16]Read from MH i2c: E2 0E 00 41 3A 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 12 [09:25:16]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:25:16]wFMCommunicate OK [09:25:16]SAM_PROTO_GetShiftState done [09:25:16]FM_GetShiftState done [09:25:16]opened in 1729383750 [09:25:16]opened+sec_in_day 1729470150 [09:25:16]quantity*price = 60027 [09:25:16]sum+1 = 60029 [09:25:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 125 20.10.2024 09:25 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227277 ФПД: 2348754458074 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T092520&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227277&fm=2348754458074&tin=02508201610067®Number=0000000000091685&sum=60000 [09:25:17]StoreToDocumentArchive [09:25:17]shift 533 fd 227277 [09:25:17]save to /storage/0533/doc_00227277 [09:25:17]save last doc name /storage/0533/doc_00227277 to /storage/kkm_last_doc_name [09:25:17]save OK [09:25:17]Clear old archive folders... [09:25:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:25:17]tlvbuf is 005D23A0 [09:25:17]SAM_PROTO_ClearQueue [09:25:17]wFMCommunicate request_size=4 [09:25:17]MH_SAM_APDU [09:25:17]CAPDU: 80 09 00 00 [09:25:17]Write to MH i2c: E2 08 00 4E 3A 80 09 00 00 00 00 00 00 FA [09:25:17]Write i2c OK [09:25:17]MH_I2C_Read... [09:25:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:25:17]Read from MH i2c: E2 [09:25:17]MH_I2C_Read... [09:25:17]Read from MH i2c: E2 03 00 [09:25:17]MH_I2C_Read... [09:25:17]Read from MH i2c: E2 03 00 4E 3A 00 90 00 FC [09:25:17]RAPDU: 90 00 [09:25:18]wFMCommunicate OK [09:25:18]SAM_PROTO_ClearQueue done [09:25:18]KKMCreateOFDPacket [09:25:18]OFDProtocolAddRootSTLVToBuf [09:25:18]FM_MakeSignedData [09:25:18]FM_MakeSignedData [09:25:18]SAM_PROTO_SignData [09:25:18]wFMCommunicate request_size=4 [09:25:18]MH_SAM_APDU [09:25:18]CAPDU: 80 0D 01 02 [09:25:18]Write to MH i2c: E2 08 00 4F 3A 80 0D 01 02 00 00 00 00 02 [09:25:18]Write i2c OK [09:25:18]MH_I2C_Read... [09:25:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:25:18]Read from MH i2c: E2 [09:25:18]MH_I2C_Read... [09:25:18]Read from MH i2c: E2 03 00 [09:25:18]MH_I2C_Read... [09:25:18]Read from MH i2c: E2 03 00 4F 3A 00 90 00 FD [09:25:18]RAPDU: 90 00 [09:25:18]wFMCommunicate OK [09:25:18]wFMCommunicate request_size=255 [09:25:18]MH_SAM_APDU [09:25: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 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 7D 00 00 00 F4 03 04 00 80 CC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CD 77 03 00 35 04 06 00 02 [09:25:18]Write to MH i2c: E2 02 01 50 3A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 7D 00 00 00 F4 03 04 00 80 CC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CD 77 03 00 35 04 06 00 02 00 00 9B [09:25:18]Write i2c OK [09:25:18]MH_I2C_Read... [09:25:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:18]Read from MH i2c: E2 [09:25:18]MH_I2C_Read... [09:25:18]Read from MH i2c: E2 03 00 [09:25:18]MH_I2C_Read... [09:25:18]Read from MH i2c: E2 03 00 50 3A 00 90 00 FE [09:25:18]RAPDU: 90 00 [09:25:18]wFMCommunicate OK [09:25:18]wFMCommunicate request_size=10 [09:25:18]MH_SAM_APDU [09:25:18]CAPDU: 80 0D 02 02 05 22 DC AC D5 DA [09:25:18]Write to MH i2c: E2 0D 00 51 3A 80 0D 02 02 05 00 22 DC AC D5 DA 00 00 68 [09:25:18]Write i2c OK [09:25:18]MH_I2C_Read... [09:25:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:18]Read from MH i2c: E2 [09:25:18]MH_I2C_Read... [09:25:18]Read from MH i2c: E2 03 00 [09:25:18]MH_I2C_Read... [09:25:18]Read from MH i2c: E2 03 00 51 3A 00 90 00 FF [09:25:18]RAPDU: 90 00 [09:25:18]wFMCommunicate OK [09:25:18]wFMCommunicate request_size=4 [09:25:18]MH_SAM_APDU [09:25:18]CAPDU: 80 0D 03 02 [09:25:18]Write to MH i2c: E2 08 00 52 3A 80 0D 03 02 00 00 00 00 07 [09:25:18]Write i2c OK [09:25:18]MH_I2C_Read... [09:25:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:25:18]Read from MH i2c: E2 [09:25:18]MH_I2C_Read... [09:25:18]Read from MH i2c: E2 0B 00 [09:25:18]MH_I2C_Read... [09:25:18]Read from MH i2c: E2 0B 00 52 3A 00 11 6A 44 BA F6 D6 98 15 90 00 FA [09:25:18]RAPDU: 11 6A 44 BA F6 D6 98 15 90 00 [09:25:18]wFMCommunicate OK [09:25:18]SAM_PROTO_SignData done [09:25:18]FM_MakeSignedData done [09:25:18]CreateOFDProtocolMessage [09:25:18]wFMCommunicate request_size=4 [09:25:18]MH_SAM_APDU [09:25:18]CAPDU: 80 11 00 00 [09:25:18]Write to MH i2c: E2 08 00 53 3A 80 11 00 00 00 00 00 00 07 [09:25:18]Write i2c OK [09:25:18]MH_I2C_Read... [09:25:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:18]Read from MH i2c: E2 [09:25:18]MH_I2C_Read... [09:25:18]Read from MH i2c: E2 17 00 [09:25:18]MH_I2C_Read... [09:25:18]Read from MH i2c: E2 17 00 53 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 5E [09:25:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:25:18]wFMCommunicate OK [09:25:18]CreateOFDProtocolMessage done [09:25:18]OFDSenderStorePacket 227277 [09:25:18]StoreOFDPacket docnum=227277 [09:25:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 BF BF 07 01 95 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 7D 00 00 00 F4 03 04 00 80 CC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CD 77 03 00 35 04 06 00 02 22 DC AC D5 DA 11 6A 44 BA F6 D6 98 15 [09:25:18]CheckFolder [09:25:18]dirname=/storage/ofd_packets [09:25:18]CheckFolder done [09:25:18]ProducePacketName [09:25:18]name=ofd_packets/00227277 [09:25:18]NVStorageSaveData ofd_packets/00227277 [09:25:18]File name is /storage/ofd_packets/00227277 [09:25:18]Write 301 bytes [09:25:18]NVStorageSaveData done [09:25:18]OFDSenderStorePacket done [09:25:18]KKMCreateOFDPacket done [09:25:18]NVStorageSaveData kkm_last_timestamp [09:25:18]File name is /storage/kkm_last_timestamp [09:25:18]Write 4 bytes [09:25:18]NVStorageSaveData done [09:25:18]ExternCall_PrintAddStr [09:25:18]wPrintStart [09:25:18]Write to MH i2c: 01 00 00 54 3A 8E [09:25:18]Write i2c OK [09:25:18]MH_I2C_Read... [09:25:18]Read from MH i2c: 01 [09:25:18]MH_I2C_Read... [09:25:18]Read from MH i2c: 01 07 00 [09:25:18]MH_I2C_Read... [09:25:18]Read from MH i2c: 01 07 00 54 3A 00 00 00 00 00 FF 0F A3 [09:25:18]RasterBufferAndPrint [09:25:18]line Счет N : (1)1962747 [09:25:18]line ИНН: 02508201610067 [09:25:18]line Контрольно-Кассовый Чек [09:25:18]line ПРОДАЖА [09:25:18]line ТРК (МРК, ГНК) : 34 [09:25:18]line Товар: 2710124500 [09:25:18]line Аи-95-К-5 [09:25:18]line 8.090 * 74.20 [09:25:18]line = 600.28 [09:25:18]line НДС 12% НСП 1% [09:25:18]line > о реализуемом товаре [09:25:18]line ОКРУГЛЕНИЕ: -0.28 [09:25:18]line ИТОГО: 600.00 [09:25:18]line Внесено: 600.00 [09:25:18]line СДАЧА: 0.00 [09:25:18]line НСП 1% : 5.31 [09:25:18]line НДС 12% : 63.75 [09:25:18]line Наличными: 600.00 [09:25:18]line Безнал.: 0.00 [09:25:18]line Место: АЗС № 133 "Партнер Нефть" [09:25:18]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:25:18]line СНО: Общий режим [09:25:18]line Чек 125 20.10.2024 09:25 [09:25:18]line Смена: 533 ФФД: 1.0 [09:25:18]line ЗНМ: 0300000091 [09:25:18]line РНМ: 0000000000091685 [09:25:18]line Версия ККМ: 001 [09:25:18]line ФМ: 0000000000871839 [09:25:18]line ФД: 227277 [09:25:18]line ФПД: 2348754458074 [09:25:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T092520&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227277&fm=2348754458074&tin=02508201610067®Number=0000000000091685&sum=60000 [09:25:18]written 0, free lines is 4095 [09:25:18]OFD Sender: Processing packet 227277 [packets to send 38, broken 37] [09:25:18]ProducePacketName [09:25:18]name=ofd_packets/00227277 [09:25:18]OFD Sender: To server: pG, [09:25:18]CommunicateWithHost lk.salyk.kg:30040 [09:25:18]ConnectInit lk.salyk.kg [09:25:18]Connected sock=10 [09:25: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 33 39 0F 01 00 00 BF BF 07 01 95 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 7D 00 00 00 F4 03 04 00 80 CC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CD 77 03 00 35 04 06 00 02 22 DC AC D5 DA 11 6A 44 BA F6 D6 98 15 [09:25: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 33 39 4F 00 00 00 D8 FA 47 00 95 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 33 39 10 04 04 00 CD 77 03 00 F4 03 04 00 7F 77 14 67 B6 04 01 00 00 0B 02 E0 D2 AC 8C D7 5D [09:25:18]CommunicateWithHost err = 0 [09:25:18]CheckOFDResponse [09:25:18]1017 (14) - 77093643461234 [09:25:18]1041 (16) - 0000000000871839 [09:25:18]1040 (4) - 227277 [09:25:18]1012 (4) - 20.10.2024 03:22 [09:25:18]1206 (1) - 0 [09:25:18]OFD Sender: Remove packet 227277 [09:25:18]ProducePacketName [09:25:18]name=ofd_packets/00227277 [09:25:18]NVStorageDeleteData [09:25:18]Write to MH i2c: 01 00 00 7E 3A B8 [09:25:18]Write i2c OK [09:25:18]MH_I2C_Read... [09:25:18]Read from MH i2c: 01 [09:25:18]MH_I2C_Read... [09:25:18]Read from MH i2c: 01 07 00 [09:25:18]MH_I2C_Read... [09:25:18]Read from MH i2c: 01 07 00 7E 3A 00 00 00 00 00 17 0D E3 [09:25:18]RasterBufferAndPrint [09:25:18]line [09:25:18]line [09:25:18]line [09:25:18]line [09:25:18]line [09:25:18]written 0, free lines is 3360 [09:25:18]process_action close_receipt done [09:25:18]requested_data is exist [09:25:18]produce_requested_data [09:25:18]requested_item fm.sn is exist - process it [09:25:18]wFMCommunicate request_size=4 [09:25:18]MH_SAM_APDU [09:25:18]CAPDU: 80 11 00 00 [09:25:18]Write to MH i2c: E2 08 00 85 3A 80 11 00 00 00 00 00 00 39 [09:25:18]Write i2c OK [09:25:18]MH_I2C_Read... [09:25:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:19]Read from MH i2c: E2 [09:25:19]MH_I2C_Read... [09:25:19]Read from MH i2c: E2 17 00 [09:25:19]MH_I2C_Read... [09:25:19]Read from MH i2c: E2 17 00 85 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 90 [09:25:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:25:19]wFMCommunicate OK [09:25:19]requested_item fd.num is exist - process it [09:25:19]SAM_PROTO_GetFieldsCounters [09:25:19]wFMCommunicate request_size=4 [09:25:19]MH_SAM_APDU [09:25:19]CAPDU: 80 13 00 00 [09:25:19]Write to MH i2c: E2 08 00 86 3A 80 13 00 00 00 00 00 00 3C [09:25:19]Write i2c OK [09:25:19]MH_I2C_Read... [09:25:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:25:19]Read from MH i2c: E2 [09:25:19]MH_I2C_Read... [09:25:19]Read from MH i2c: E2 62 00 [09:25:19]MH_I2C_Read... [09:25:19]Read from MH i2c: E2 62 00 86 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 CD 77 03 00 0E 04 04 00 15 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 3A [09:25: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 CD 77 03 00 0E 04 04 00 15 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 [09:25:19]wFMCommunicate OK [09:25:19]SAM_PROTO_GetFieldsCounters done [09:25:19]requested_item shift.num is exist - process it [09:25:19]requested_item shift.opened is exist - process it [09:25:19]req_shift_opened [09:25:19]FM_GetShiftState [09:25:19]SAM_PROTO_GetShiftState [09:25:19]wFMCommunicate request_size=4 [09:25:19]MH_SAM_APDU [09:25:19]CAPDU: 80 13 01 00 [09:25:19]Write to MH i2c: E2 08 00 87 3A 80 13 01 00 00 00 00 00 3E [09:25:19]Write i2c OK [09:25:19]MH_I2C_Read... [09:25:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:19]Read from MH i2c: E2 [09:25:19]MH_I2C_Read... [09:25:19]Read from MH i2c: E2 0E 00 [09:25:19]MH_I2C_Read... [09:25:19]Read from MH i2c: E2 0E 00 87 3A 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 58 [09:25:19]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:25:19]wFMCommunicate OK [09:25:19]SAM_PROTO_GetShiftState done [09:25:19]FM_GetShiftState done [09:25:19]req_shift_opened done [09:25:19]requested_item shift.open_date is exist - process it [09:25:19]req_shift_open_date [09:25:19]req_shift_open_date done [09:25:19]produce_requested_data done [09:25:19]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227277,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [09:25:19]process_action_free close_receipt [09:25:19]json_value_free [09:25:19]json_value_free done [09:25:19]process_json_proto returns [09:25:19]Send response to host [09:25:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227277,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [09:25:19]free response buf [09:25:19]execute_script done [09:25:19]execute_script returns [09:25:19]free content buf [09:25:19]Sock 8.Close socket [09:25:19]Sock 8.Thread stoped [09:25:19]OFD Sender: No OFD packet to send [09:25:19]accept exits with 9 [09:25:19]New connection [09:25:19]New thread 3066821988 created [09:25:19]Thread 3066965348 joined [09:25:19]Waiting for new connection... [09:25:19] Sock 9.Parse request [09:25:19]Sock 9.Check first char [09:25:19]Sock 9.First char is OK [09:25:19]request: POST /json_proto HTTP/1.0 [09:25:19]Method: POST [09:25:19]URL: /json_proto [09:25:19]Method is POST - this is cgi request [09:25:19]url: /json_proto [09:25:19]query_string will be loaded in cgi processing [09:25:19]execute_cgi json_proto POST (null) [09:25:19]execute_cgi path=json_proto method=POST [09:25:19]POST find Content-Length [09:25:19]Host: 172.17.44.195:8080 [09:25:19]Content-Length: 678 [09:25:19]Content-Type: application/json [09:25:19] [09:25:19]POST finish read [09:25:19]Found Content-Length = 678 [09:25:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962748", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:19]execute_script... [09:25:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962748", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:19]POST & json_proto [09:25:19]process_json_proto [09:25:19]json parsed OK: [09:25:19]protocol is kg_v1.0 [09:25:19]action value=close_receipt [09:25:19]process_action close_receipt [09:25:19]cmd_close_receipt [09:25:19]MH_GetDate [09:25:19]Write to MH i2c: F0 00 00 88 3A B1 [09:25:19]Write i2c OK [09:25:19]MH_I2C_Read... [09:25:19]Read from MH i2c: F0 [09:25:19]MH_I2C_Read... [09:25:19]Read from MH i2c: F0 09 00 [09:25:19]MH_I2C_Read... [09:25:19]Read from MH i2c: F0 09 00 88 3A 00 83 CC 14 67 82 C9 CF 66 04 [09:25:19]GetLastDocTimeStamp 1729416320 [09:25:19]current date 1729416323 [09:25:19]FM_GetShiftState [09:25:19]SAM_PROTO_GetShiftState [09:25:19]wFMCommunicate request_size=4 [09:25:19]MH_SAM_APDU [09:25:19]CAPDU: 80 13 01 00 [09:25:19]Write to MH i2c: E2 08 00 89 3A 80 13 01 00 00 00 00 00 40 [09:25:19]Write i2c OK [09:25:19]MH_I2C_Read... [09:25:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:19]Read from MH i2c: E2 [09:25:19]MH_I2C_Read... [09:25:19]Read from MH i2c: E2 0E 00 [09:25:19]MH_I2C_Read... [09:25:19]Read from MH i2c: E2 0E 00 89 3A 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 5A [09:25:19]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:25:19]wFMCommunicate OK [09:25:19]SAM_PROTO_GetShiftState done [09:25:19]FM_GetShiftState done [09:25:19]opened in 1729383750 [09:25:19]opened+sec_in_day 1729470150 [09:25:19]quantity*price = 60009 [09:25:19]sum+1 = 60010 [09:25:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 126 20.10.2024 09:25 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227278 ФПД: 140987002075897 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T092523&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227278&fm=140987002075897&tin=02508201610067®Number=0000000000091685&sum=60000 [09:25:20]StoreToDocumentArchive [09:25:20]shift 533 fd 227278 [09:25:20]save to /storage/0533/doc_00227278 [09:25:20]save last doc name /storage/0533/doc_00227278 to /storage/kkm_last_doc_name [09:25:20]save OK [09:25:20]Clear old archive folders... [09:25:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:25:20]tlvbuf is 006503A0 [09:25:20]SAM_PROTO_ClearQueue [09:25:20]wFMCommunicate request_size=4 [09:25:20]MH_SAM_APDU [09:25:20]CAPDU: 80 09 00 00 [09:25:20]Write to MH i2c: E2 08 00 96 3A 80 09 00 00 00 00 00 00 42 [09:25:20]Write i2c OK [09:25:20]MH_I2C_Read... [09:25:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:25:20]Read from MH i2c: E2 [09:25:20]MH_I2C_Read... [09:25:20]Read from MH i2c: E2 03 00 [09:25:20]MH_I2C_Read... [09:25:20]Read from MH i2c: E2 03 00 96 3A 00 90 00 44 [09:25:20]RAPDU: 90 00 [09:25:20]wFMCommunicate OK [09:25:20]SAM_PROTO_ClearQueue done [09:25:20]KKMCreateOFDPacket [09:25:20]OFDProtocolAddRootSTLVToBuf [09:25:20]FM_MakeSignedData [09:25:20]FM_MakeSignedData [09:25:20]SAM_PROTO_SignData [09:25:20]wFMCommunicate request_size=4 [09:25:20]MH_SAM_APDU [09:25:20]CAPDU: 80 0D 01 02 [09:25:20]Write to MH i2c: E2 08 00 97 3A 80 0D 01 02 00 00 00 00 4A [09:25:20]Write i2c OK [09:25:20]MH_I2C_Read... [09:25:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:25:20]Read from MH i2c: E2 [09:25:20]MH_I2C_Read... [09:25:20]Read from MH i2c: E2 03 00 [09:25:20]MH_I2C_Read... [09:25:20]Read from MH i2c: E2 03 00 97 3A 00 90 00 45 [09:25:20]RAPDU: 90 00 [09:25:20]wFMCommunicate OK [09:25:20]wFMCommunicate request_size=255 [09:25:20]MH_SAM_APDU [09:25:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 83 CC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CE 77 03 00 35 04 06 00 80 [09:25:20]Write to MH i2c: E2 02 01 98 3A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 83 CC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CE 77 03 00 35 04 06 00 80 00 00 E5 [09:25:20]Write i2c OK [09:25:20]MH_I2C_Read... [09:25:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:21]Read from MH i2c: E2 [09:25:21]MH_I2C_Read... [09:25:21]Read from MH i2c: E2 03 00 [09:25:21]MH_I2C_Read... [09:25:21]Read from MH i2c: E2 03 00 98 3A 00 90 00 46 [09:25:21]RAPDU: 90 00 [09:25:21]wFMCommunicate OK [09:25:21]wFMCommunicate request_size=10 [09:25:21]MH_SAM_APDU [09:25:21]CAPDU: 80 0D 02 02 05 3A 18 2D 3A F9 [09:25:21]Write to MH i2c: E2 0D 00 99 3A 80 0D 02 02 05 00 3A 18 2D 3A F9 00 00 09 [09:25:21]Write i2c OK [09:25:21]MH_I2C_Read... [09:25:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:21]Read from MH i2c: E2 [09:25:21]MH_I2C_Read... [09:25:21]Read from MH i2c: E2 03 00 [09:25:21]MH_I2C_Read... [09:25:21]Read from MH i2c: E2 03 00 99 3A 00 90 00 47 [09:25:21]RAPDU: 90 00 [09:25:21]wFMCommunicate OK [09:25:21]wFMCommunicate request_size=4 [09:25:21]MH_SAM_APDU [09:25:21]CAPDU: 80 0D 03 02 [09:25:21]Write to MH i2c: E2 08 00 9A 3A 80 0D 03 02 00 00 00 00 4F [09:25:21]Write i2c OK [09:25:21]MH_I2C_Read... [09:25:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:25:21]Read from MH i2c: E2 [09:25:21]MH_I2C_Read... [09:25:21]Read from MH i2c: E2 0B 00 [09:25:21]MH_I2C_Read... [09:25:21]Read from MH i2c: E2 0B 00 9A 3A 00 51 0C E7 87 FD 9C CD B3 90 00 34 [09:25:21]RAPDU: 51 0C E7 87 FD 9C CD B3 90 00 [09:25:21]wFMCommunicate OK [09:25:21]SAM_PROTO_SignData done [09:25:21]FM_MakeSignedData done [09:25:21]CreateOFDProtocolMessage [09:25:21]wFMCommunicate request_size=4 [09:25:21]MH_SAM_APDU [09:25:21]CAPDU: 80 11 00 00 [09:25:21]Write to MH i2c: E2 08 00 9B 3A 80 11 00 00 00 00 00 00 4F [09:25:21]Write i2c OK [09:25:21]MH_I2C_Read... [09:25:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:21]Read from MH i2c: E2 [09:25:21]MH_I2C_Read... [09:25:21]Read from MH i2c: E2 17 00 [09:25:21]MH_I2C_Read... [09:25:21]Read from MH i2c: E2 17 00 9B 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A6 [09:25:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:25:21]wFMCommunicate OK [09:25:21]CreateOFDProtocolMessage done [09:25:21]OFDSenderStorePacket 227278 [09:25:21]StoreOFDPacket docnum=227278 [09:25:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 5C 44 07 01 67 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 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 83 CC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CE 77 03 00 35 04 06 00 80 3A 18 2D 3A F9 51 0C E7 87 FD 9C CD B3 [09:25:21]CheckFolder [09:25:21]dirname=/storage/ofd_packets [09:25:21]CheckFolder done [09:25:21]ProducePacketName [09:25:21]name=ofd_packets/00227278 [09:25:21]NVStorageSaveData ofd_packets/00227278 [09:25:21]File name is /storage/ofd_packets/00227278 [09:25:21]Write 301 bytes [09:25:21]NVStorageSaveData done [09:25:21]OFDSenderStorePacket done [09:25:21]KKMCreateOFDPacket done [09:25:21]NVStorageSaveData kkm_last_timestamp [09:25:21]File name is /storage/kkm_last_timestamp [09:25:21]Write 4 bytes [09:25:21]NVStorageSaveData done [09:25:21]ExternCall_PrintAddStr [09:25:21]wPrintStart [09:25:21]Write to MH i2c: 01 00 00 9C 3A D6 [09:25:21]Write i2c OK [09:25:21]MH_I2C_Read... [09:25:21]Read from MH i2c: 01 [09:25:21]MH_I2C_Read... [09:25:21]Read from MH i2c: 01 07 00 [09:25:21]MH_I2C_Read... [09:25:21]Read from MH i2c: 01 07 00 9C 3A 00 00 00 00 00 FF 0F EB [09:25:21]RasterBufferAndPrint [09:25:21]line Счет N : (1)1962748 [09:25:21]line ИНН: 02508201610067 [09:25:21]line Контрольно-Кассовый Чек [09:25:21]line ПРОДАЖА [09:25:21]line ТРК (МРК, ГНК) : 63 [09:25:21]line Товар: 2710124130 [09:25:21]line Аи-92-К-5 [09:25:21]line 8.970 * 66.90 [09:25:21]line = 600.09 [09:25:21]line НДС 12% НСП 1% [09:25:21]line > о реализуемом товаре [09:25:21]line ОКРУГЛЕНИЕ: -0.09 [09:25:21]line ИТОГО: 600.00 [09:25:21]line Внесено: 600.00 [09:25:21]line СДАЧА: 0.00 [09:25:21]line НСП 1% : 5.31 [09:25:21]line НДС 12% : 63.73 [09:25:21]line Наличными: 600.00 [09:25:21]line Безнал.: 0.00 [09:25:21]line Место: АЗС № 133 "Партнер Нефть" [09:25:21]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:25:21]line СНО: Общий режим [09:25:21]line Чек 126 20.10.2024 09:25 [09:25:21]line Смена: 533 ФФД: 1.0 [09:25:21]line ЗНМ: 0300000091 [09:25:21]line РНМ: 0000000000091685 [09:25:21]line Версия ККМ: 001 [09:25:21]line ФМ: 0000000000871839 [09:25:21]line ФД: 227278 [09:25:21]line ФПД: 140987002075897 [09:25:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T092523&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227278&fm=140987002075897&tin=02508201610067®Number=0000000000091685&sum=60000 [09:25:21]written 0, free lines is 4095 [09:25:21]OFD Sender: Processing packet 227278 [packets to send 38, broken 37] [09:25:21]ProducePacketName [09:25:21]name=ofd_packets/00227278 [09:25:21]OFD Sender: To server: pG, [09:25:21]CommunicateWithHost lk.salyk.kg:30040 [09:25:21]ConnectInit lk.salyk.kg [09:25:21]Connected sock=10 [09:25:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 5C 44 07 01 67 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 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 83 CC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CE 77 03 00 35 04 06 00 80 3A 18 2D 3A F9 51 0C E7 87 FD 9C CD B3 [09:25: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 33 39 4F 00 00 00 B6 61 47 00 DA 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 33 39 10 04 04 00 CE 77 03 00 F4 03 04 00 83 77 14 67 B6 04 01 00 00 F8 7F B9 FB F0 A9 DF 07 [09:25:22]CommunicateWithHost err = 0 [09:25:22]CheckOFDResponse [09:25:22]1017 (14) - 77093643461234 [09:25:22]1041 (16) - 0000000000871839 [09:25:22]1040 (4) - 227278 [09:25:22]1012 (4) - 20.10.2024 03:22 [09:25:22]1206 (1) - 0 [09:25:22]OFD Sender: Remove packet 227278 [09:25:22]ProducePacketName [09:25:22]name=ofd_packets/00227278 [09:25:22]NVStorageDeleteData [09:25:22]Write to MH i2c: 01 00 00 C6 3A 00 [09:25:22]Write i2c OK [09:25:22]MH_I2C_Read... [09:25:22]Read from MH i2c: 01 [09:25:22]MH_I2C_Read... [09:25:22]Read from MH i2c: 01 07 00 [09:25:22]MH_I2C_Read... [09:25:22]Read from MH i2c: 01 07 00 C6 3A 00 00 00 00 00 0B 0D 1F [09:25:22]RasterBufferAndPrint [09:25:22]line [09:25:22]line [09:25:22]line [09:25:22]line [09:25:22]line [09:25:22]written 0, free lines is 3354 [09:25:22]process_action close_receipt done [09:25:22]requested_data is exist [09:25:22]produce_requested_data [09:25:22]requested_item fm.sn is exist - process it [09:25:22]wFMCommunicate request_size=4 [09:25:22]MH_SAM_APDU [09:25:22]CAPDU: 80 11 00 00 [09:25:22]Write to MH i2c: E2 08 00 CD 3A 80 11 00 00 00 00 00 00 81 [09:25:22]Write i2c OK [09:25:22]MH_I2C_Read... [09:25:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:22]Read from MH i2c: E2 [09:25:22]MH_I2C_Read... [09:25:22]Read from MH i2c: E2 17 00 [09:25:22]MH_I2C_Read... [09:25:22]Read from MH i2c: E2 17 00 CD 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D8 [09:25:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:25:22]wFMCommunicate OK [09:25:22]requested_item fd.num is exist - process it [09:25:22]SAM_PROTO_GetFieldsCounters [09:25:22]wFMCommunicate request_size=4 [09:25:22]MH_SAM_APDU [09:25:22]CAPDU: 80 13 00 00 [09:25:22]Write to MH i2c: E2 08 00 CE 3A 80 13 00 00 00 00 00 00 84 [09:25:22]Write i2c OK [09:25:22]MH_I2C_Read... [09:25:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:25:22]Read from MH i2c: E2 [09:25:22]MH_I2C_Read... [09:25:22]Read from MH i2c: E2 62 00 [09:25:22]MH_I2C_Read... [09:25:22]Read from MH i2c: E2 62 00 CE 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 CE 77 03 00 0E 04 04 00 15 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 86 [09:25: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 CE 77 03 00 0E 04 04 00 15 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 [09:25:22]wFMCommunicate OK [09:25:22]SAM_PROTO_GetFieldsCounters done [09:25:22]requested_item shift.num is exist - process it [09:25:22]requested_item shift.opened is exist - process it [09:25:22]req_shift_opened [09:25:22]FM_GetShiftState [09:25:22]SAM_PROTO_GetShiftState [09:25:22]wFMCommunicate request_size=4 [09:25:22]MH_SAM_APDU [09:25:22]CAPDU: 80 13 01 00 [09:25:22]Write to MH i2c: E2 08 00 CF 3A 80 13 01 00 00 00 00 00 86 [09:25:22]Write i2c OK [09:25:22]MH_I2C_Read... [09:25:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:22]Read from MH i2c: E2 [09:25:22]MH_I2C_Read... [09:25:22]Read from MH i2c: E2 0E 00 [09:25:22]MH_I2C_Read... [09:25:22]Read from MH i2c: E2 0E 00 CF 3A 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 A0 [09:25:22]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:25:22]wFMCommunicate OK [09:25:22]SAM_PROTO_GetShiftState done [09:25:22]FM_GetShiftState done [09:25:22]req_shift_opened done [09:25:22]requested_item shift.open_date is exist - process it [09:25:22]req_shift_open_date [09:25:22]req_shift_open_date done [09:25:22]produce_requested_data done [09:25:22]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227278,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [09:25:22]process_action_free close_receipt [09:25:22]json_value_free [09:25:22]json_value_free done [09:25:22]process_json_proto returns [09:25:22]Send response to host [09:25:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227278,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [09:25:22]free response buf [09:25:22]execute_script done [09:25:22]execute_script returns [09:25:22]free content buf [09:25:22]Sock 9.Close socket [09:25:22]Sock 9.Thread stoped [09:25:22]OFD Sender: No OFD packet to send [09:25:27]OFD Sender: No OFD packet to send [09:25:32]OFD Sender: No OFD packet to send [09:25:37]OFD Sender: No OFD packet to send [09:25:42]OFD Sender: No OFD packet to send [09:25:47]OFD Sender: No OFD packet to send [09:25:52]OFD Sender: No OFD packet to send [09:25:57]OFD Sender: No OFD packet to send [09:26:02]OFD Sender: No OFD packet to send [09:26:07]OFD Sender: No OFD packet to send [09:26:12]OFD Sender: No OFD packet to send [09:26:17]OFD Sender: No OFD packet to send [09:26:22]OFD Sender: No OFD packet to send [09:26:27]OFD Sender: No OFD packet to send [09:26:32]OFD Sender: No OFD packet to send [09:26:37]OFD Sender: No OFD packet to send [09:26:42]OFD Sender: No OFD packet to send [09:26:47]OFD Sender: No OFD packet to send [09:26:52]OFD Sender: No OFD packet to send [09:26:57]OFD Sender: No OFD packet to send [09:27:02]OFD Sender: No OFD packet to send [09:27:03]accept exits with 8 [09:27:03]New connection [09:27:03]New thread 3066965348 created [09:27:03]Thread 3066821988 joined [09:27:03]Waiting for new connection... [09:27:03] Sock 8.Parse request [09:27:03]Sock 8.Check first char [09:27:03]Sock 8.First char is OK [09:27:03]request: POST /json_proto HTTP/1.0 [09:27:03]Method: POST [09:27:03]URL: /json_proto [09:27:03]Method is POST - this is cgi request [09:27:03]url: /json_proto [09:27:03]query_string will be loaded in cgi processing [09:27:03]execute_cgi json_proto POST (null) [09:27:03]execute_cgi path=json_proto method=POST [09:27:03]POST find Content-Length [09:27:03]Host: 172.17.44.195:8080 [09:27:03]Content-Length: 683 [09:27:03]Content-Type: application/json [09:27:03] [09:27:03]POST finish read [09:27:03]Found Content-Length = 683 [09:27:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962749", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:27:03]execute_script... [09:27:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962749", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:27:03]POST & json_proto [09:27:03]process_json_proto [09:27:03]json parsed OK: [09:27:03]protocol is kg_v1.0 [09:27:03]action value=close_receipt [09:27:03]process_action close_receipt [09:27:03]cmd_close_receipt [09:27:03]MH_GetDate [09:27:03]Write to MH i2c: F0 00 00 D0 3A F9 [09:27:03]Write i2c OK [09:27:03]MH_I2C_Read... [09:27:03]Read from MH i2c: F0 [09:27:03]MH_I2C_Read... [09:27:03]Read from MH i2c: F0 09 00 [09:27:03]MH_I2C_Read... [09:27:03]Read from MH i2c: F0 09 00 D0 3A 00 EB CC 14 67 82 C9 CF 66 B4 [09:27:03]GetLastDocTimeStamp 1729416323 [09:27:03]current date 1729416427 [09:27:03]FM_GetShiftState [09:27:03]SAM_PROTO_GetShiftState [09:27:03]wFMCommunicate request_size=4 [09:27:03]MH_SAM_APDU [09:27:03]CAPDU: 80 13 01 00 [09:27:03]Write to MH i2c: E2 08 00 D1 3A 80 13 01 00 00 00 00 00 88 [09:27:03]Write i2c OK [09:27:03]MH_I2C_Read... [09:27:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:03]Read from MH i2c: E2 [09:27:03]MH_I2C_Read... [09:27:03]Read from MH i2c: E2 0E 00 [09:27:03]MH_I2C_Read... [09:27:03]Read from MH i2c: E2 0E 00 D1 3A 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 A2 [09:27:03]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:27:03]wFMCommunicate OK [09:27:03]SAM_PROTO_GetShiftState done [09:27:03]FM_GetShiftState done [09:27:03]opened in 1729383750 [09:27:03]opened+sec_in_day 1729470150 [09:27:03]quantity*price = 100015 [09:27:03]sum+1 = 100017 [09:27:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 127 20.10.2024 09:27 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227279 ФПД: 214766141563053 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T092708&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227279&fm=214766141563053&tin=02508201610067®Number=0000000000091685&sum=100000 [09:27:05]StoreToDocumentArchive [09:27:05]shift 533 fd 227279 [09:27:05]save to /storage/0533/doc_00227279 [09:27:05]save last doc name /storage/0533/doc_00227279 to /storage/kkm_last_doc_name [09:27:05]save OK [09:27:05]Clear old archive folders... [09:27:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:27:05]tlvbuf is 00512AA0 [09:27:05]SAM_PROTO_ClearQueue [09:27:05]wFMCommunicate request_size=4 [09:27:05]MH_SAM_APDU [09:27:05]CAPDU: 80 09 00 00 [09:27:05]Write to MH i2c: E2 08 00 DE 3A 80 09 00 00 00 00 00 00 8A [09:27:05]Write i2c OK [09:27:05]MH_I2C_Read... [09:27:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:27:05]Read from MH i2c: E2 [09:27:05]MH_I2C_Read... [09:27:05]Read from MH i2c: E2 03 00 [09:27:05]MH_I2C_Read... [09:27:05]Read from MH i2c: E2 03 00 DE 3A 00 90 00 8C [09:27:05]RAPDU: 90 00 [09:27:05]wFMCommunicate OK [09:27:05]SAM_PROTO_ClearQueue done [09:27:05]KKMCreateOFDPacket [09:27:05]OFDProtocolAddRootSTLVToBuf [09:27:05]FM_MakeSignedData [09:27:05]FM_MakeSignedData [09:27:05]SAM_PROTO_SignData [09:27:05]wFMCommunicate request_size=4 [09:27:05]MH_SAM_APDU [09:27:05]CAPDU: 80 0D 01 02 [09:27:05]Write to MH i2c: E2 08 00 DF 3A 80 0D 01 02 00 00 00 00 92 [09:27:05]Write i2c OK [09:27:05]MH_I2C_Read... [09:27:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:27:05]Read from MH i2c: E2 [09:27:05]MH_I2C_Read... [09:27:05]Read from MH i2c: E2 03 00 [09:27:05]MH_I2C_Read... [09:27:05]Read from MH i2c: E2 03 00 DF 3A 00 90 00 8D [09:27:05]RAPDU: 90 00 [09:27:05]wFMCommunicate OK [09:27:05]wFMCommunicate request_size=255 [09:27:05]MH_SAM_APDU [09:27:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 EC CC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CF 77 03 00 35 04 06 00 C3 [09:27:05]Write to MH i2c: E2 02 01 E0 3A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 EC CC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CF 77 03 00 35 04 06 00 C3 00 00 F8 [09:27:05]Write i2c OK [09:27:05]MH_I2C_Read... [09:27:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:05]Read from MH i2c: E2 [09:27:05]MH_I2C_Read... [09:27:05]Read from MH i2c: E2 03 00 [09:27:05]MH_I2C_Read... [09:27:05]Read from MH i2c: E2 03 00 E0 3A 00 90 00 8E [09:27:05]RAPDU: 90 00 [09:27:05]wFMCommunicate OK [09:27:05]wFMCommunicate request_size=10 [09:27:05]MH_SAM_APDU [09:27:05]CAPDU: 80 0D 02 02 05 54 23 93 E0 AD [09:27:05]Write to MH i2c: E2 0D 00 E1 3A 80 0D 02 02 05 00 54 23 93 E0 AD 00 00 36 [09:27:05]Write i2c OK [09:27:05]MH_I2C_Read... [09:27:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:05]Read from MH i2c: E2 [09:27:05]MH_I2C_Read... [09:27:05]Read from MH i2c: E2 03 00 [09:27:05]MH_I2C_Read... [09:27:05]Read from MH i2c: E2 03 00 E1 3A 00 90 00 8F [09:27:05]RAPDU: 90 00 [09:27:05]wFMCommunicate OK [09:27:05]wFMCommunicate request_size=4 [09:27:05]MH_SAM_APDU [09:27:05]CAPDU: 80 0D 03 02 [09:27:05]Write to MH i2c: E2 08 00 E2 3A 80 0D 03 02 00 00 00 00 97 [09:27:05]Write i2c OK [09:27:05]MH_I2C_Read... [09:27:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:27:05]Read from MH i2c: E2 [09:27:05]MH_I2C_Read... [09:27:05]Read from MH i2c: E2 0B 00 [09:27:05]MH_I2C_Read... [09:27:05]Read from MH i2c: E2 0B 00 E2 3A 00 37 59 C6 60 1A E7 48 6A 90 00 01 [09:27:05]RAPDU: 37 59 C6 60 1A E7 48 6A 90 00 [09:27:05]wFMCommunicate OK [09:27:05]SAM_PROTO_SignData done [09:27:05]FM_MakeSignedData done [09:27:05]CreateOFDProtocolMessage [09:27:05]wFMCommunicate request_size=4 [09:27:05]MH_SAM_APDU [09:27:05]CAPDU: 80 11 00 00 [09:27:05]Write to MH i2c: E2 08 00 E3 3A 80 11 00 00 00 00 00 00 97 [09:27:05]Write i2c OK [09:27:05]MH_I2C_Read... [09:27:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:05]Read from MH i2c: E2 [09:27:05]MH_I2C_Read... [09:27:05]Read from MH i2c: E2 17 00 [09:27:05]MH_I2C_Read... [09:27:05]Read from MH i2c: E2 17 00 E3 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 EE [09:27:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:27:05]wFMCommunicate OK [09:27:05]CreateOFDProtocolMessage done [09:27:05]OFDSenderStorePacket 227279 [09:27:05]StoreOFDPacket docnum=227279 [09:27:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 6E 4F 07 01 8F 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 EC CC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CF 77 03 00 35 04 06 00 C3 54 23 93 E0 AD 37 59 C6 60 1A E7 48 6A [09:27:05]CheckFolder [09:27:05]dirname=/storage/ofd_packets [09:27:05]CheckFolder done [09:27:05]ProducePacketName [09:27:05]name=ofd_packets/00227279 [09:27:05]NVStorageSaveData ofd_packets/00227279 [09:27:05]File name is /storage/ofd_packets/00227279 [09:27:05]Write 301 bytes [09:27:05]NVStorageSaveData done [09:27:05]OFDSenderStorePacket done [09:27:05]KKMCreateOFDPacket done [09:27:05]NVStorageSaveData kkm_last_timestamp [09:27:05]File name is /storage/kkm_last_timestamp [09:27:05]Write 4 bytes [09:27:05]NVStorageSaveData done [09:27:05]ExternCall_PrintAddStr [09:27:05]wPrintStart [09:27:05]Write to MH i2c: 01 00 00 E4 3A 1E [09:27:05]Write i2c OK [09:27:05]MH_I2C_Read... [09:27:05]Read from MH i2c: 01 [09:27:05]MH_I2C_Read... [09:27:05]Read from MH i2c: 01 07 00 [09:27:05]MH_I2C_Read... [09:27:05]Read from MH i2c: 01 07 00 E4 3A 00 00 00 00 00 FF 0F 33 [09:27:05]RasterBufferAndPrint [09:27:05]line Счет N : (1)1962749 [09:27:05]line ИНН: 02508201610067 [09:27:05]line Контрольно-Кассовый Чек [09:27:05]line ПРОДАЖА [09:27:05]line ТРК (МРК, ГНК) : 53 [09:27:05]line Товар: 2710124130 [09:27:05]line Аи-92-К-5 [09:27:05]line 14.950 * 66.90 [09:27:05]line = 1000.16 [09:27:05]line НДС 12% НСП 1% [09:27:05]line > о реализуемом товаре [09:27:05]line ОКРУГЛЕНИЕ: -0.16 [09:27:05]line ИТОГО: 1000.00 [09:27:05]line Внесено: 1000.00 [09:27:05]line СДАЧА: 0.00 [09:27:05]line НСП 1% : 8.85 [09:27:05]line НДС 12% : 106.21 [09:27:05]line Наличными: 1000.00 [09:27:05]line Безнал.: 0.00 [09:27:05]line Место: АЗС № 133 "Партнер Нефть" [09:27:05]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:27:05]line СНО: Общий режим [09:27:05]line Чек 127 20.10.2024 09:27 [09:27:05]line Смена: 533 ФФД: 1.0 [09:27:05]line ЗНМ: 0300000091 [09:27:05]line РНМ: 0000000000091685 [09:27:05]line Версия ККМ: 001 [09:27:05]line ФМ: 0000000000871839 [09:27:05]line ФД: 227279 [09:27:05]line ФПД: 214766141563053 [09:27:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T092708&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227279&fm=214766141563053&tin=02508201610067®Number=0000000000091685&sum=100000 [09:27:05]written 0, free lines is 4095 [09:27:05]OFD Sender: Processing packet 227279 [packets to send 38, broken 37] [09:27:05]ProducePacketName [09:27:05]name=ofd_packets/00227279 [09:27:05]OFD Sender: To server: pG, [09:27:05]CommunicateWithHost lk.salyk.kg:30040 [09:27:05]ConnectInit lk.salyk.kg [09:27:05]Connected sock=10 [09:27:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 6E 4F 07 01 8F 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 EC CC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CF 77 03 00 35 04 06 00 C3 54 23 93 E0 AD 37 59 C6 60 1A E7 48 6A [09:27: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 33 39 4F 00 00 00 3C 30 47 00 CD DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CF 77 03 00 F4 03 04 00 EB 77 14 67 B6 04 01 00 00 1F D1 40 DF 64 CD F3 9F [09:27:06]CommunicateWithHost err = 0 [09:27:06]CheckOFDResponse [09:27:06]1017 (14) - 77093643461234 [09:27:06]1041 (16) - 0000000000871839 [09:27:06]1040 (4) - 227279 [09:27:06]1012 (4) - 20.10.2024 03:24 [09:27:06]1206 (1) - 0 [09:27:06]OFD Sender: Remove packet 227279 [09:27:06]ProducePacketName [09:27:06]name=ofd_packets/00227279 [09:27:06]NVStorageDeleteData [09:27:06]Write to MH i2c: 01 00 00 0E 3B 49 [09:27:06]Write i2c OK [09:27:06]MH_I2C_Read... [09:27:06]Read from MH i2c: 01 [09:27:06]MH_I2C_Read... [09:27:06]Read from MH i2c: 01 07 00 [09:27:06]MH_I2C_Read... [09:27:06]Read from MH i2c: 01 07 00 0E 3B 00 00 00 00 00 05 0D 62 [09:27:06]RasterBufferAndPrint [09:27:06]line [09:27:06]line [09:27:06]line [09:27:06]line [09:27:06]line [09:27:06]written 0, free lines is 3340 [09:27:06]process_action close_receipt done [09:27:06]requested_data is exist [09:27:06]produce_requested_data [09:27:06]requested_item fm.sn is exist - process it [09:27:06]wFMCommunicate request_size=4 [09:27:06]MH_SAM_APDU [09:27:06]CAPDU: 80 11 00 00 [09:27:06]Write to MH i2c: E2 08 00 15 3B 80 11 00 00 00 00 00 00 CA [09:27:06]Write i2c OK [09:27:06]MH_I2C_Read... [09:27:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:06]Read from MH i2c: E2 [09:27:06]MH_I2C_Read... [09:27:06]Read from MH i2c: E2 17 00 [09:27:06]MH_I2C_Read... [09:27:06]Read from MH i2c: E2 17 00 15 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 21 [09:27:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:27:06]wFMCommunicate OK [09:27:06]requested_item fd.num is exist - process it [09:27:06]SAM_PROTO_GetFieldsCounters [09:27:06]wFMCommunicate request_size=4 [09:27:06]MH_SAM_APDU [09:27:06]CAPDU: 80 13 00 00 [09:27:06]Write to MH i2c: E2 08 00 16 3B 80 13 00 00 00 00 00 00 CD [09:27:06]Write i2c OK [09:27:06]MH_I2C_Read... [09:27:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:27:06]Read from MH i2c: E2 [09:27:06]MH_I2C_Read... [09:27:06]Read from MH i2c: E2 62 00 [09:27:06]MH_I2C_Read... [09:27:06]Read from MH i2c: E2 62 00 16 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 CF 77 03 00 0E 04 04 00 15 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 D3 [09:27: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 CF 77 03 00 0E 04 04 00 15 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 [09:27:06]wFMCommunicate OK [09:27:06]SAM_PROTO_GetFieldsCounters done [09:27:06]requested_item shift.num is exist - process it [09:27:06]requested_item shift.opened is exist - process it [09:27:06]req_shift_opened [09:27:06]FM_GetShiftState [09:27:06]SAM_PROTO_GetShiftState [09:27:06]wFMCommunicate request_size=4 [09:27:06]MH_SAM_APDU [09:27:06]CAPDU: 80 13 01 00 [09:27:06]Write to MH i2c: E2 08 00 17 3B 80 13 01 00 00 00 00 00 CF [09:27:06]Write i2c OK [09:27:06]MH_I2C_Read... [09:27:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:06]Read from MH i2c: E2 [09:27:06]MH_I2C_Read... [09:27:06]Read from MH i2c: E2 0E 00 [09:27:06]MH_I2C_Read... [09:27:06]Read from MH i2c: E2 0E 00 17 3B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 E9 [09:27:06]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:27:06]wFMCommunicate OK [09:27:06]SAM_PROTO_GetShiftState done [09:27:06]FM_GetShiftState done [09:27:06]req_shift_opened done [09:27:06]requested_item shift.open_date is exist - process it [09:27:06]req_shift_open_date [09:27:06]req_shift_open_date done [09:27:06]produce_requested_data done [09:27:06]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227279,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [09:27:06]process_action_free close_receipt [09:27:06]json_value_free [09:27:06]json_value_free done [09:27:06]process_json_proto returns [09:27:06]Send response to host [09:27:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227279,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [09:27:06]free response buf [09:27:06]execute_script done [09:27:06]execute_script returns [09:27:06]free content buf [09:27:06]Sock 8.Close socket [09:27:06]Sock 8.Thread stoped [09:27:06]OFD Sender: No OFD packet to send [09:27:11]OFD Sender: No OFD packet to send [09:27:16]OFD Sender: No OFD packet to send [09:27:21]OFD Sender: No OFD packet to send [09:27:26]OFD Sender: No OFD packet to send [09:27:31]OFD Sender: No OFD packet to send [09:27:36]OFD Sender: No OFD packet to send [09:27:41]OFD Sender: No OFD packet to send [09:27:46]OFD Sender: No OFD packet to send [09:27:51]OFD Sender: No OFD packet to send [09:27:56]OFD Sender: No OFD packet to send [09:28:01]OFD Sender: No OFD packet to send [09:28:06]accept exits with 9 [09:28:06]New connection [09:28:06]New thread 3066821988 created [09:28:06]Thread 3066965348 joined [09:28:06]Waiting for new connection... [09:28:06] Sock 9.Parse request [09:28:06]Sock 9.Check first char [09:28:06]Sock 9.First char is OK [09:28:06]request: POST /json_proto HTTP/1.0 [09:28:06]Method: POST [09:28:06]URL: /json_proto [09:28:06]Method is POST - this is cgi request [09:28:06]url: /json_proto [09:28:06]query_string will be loaded in cgi processing [09:28:06]execute_cgi json_proto POST (null) [09:28:06]execute_cgi path=json_proto method=POST [09:28:06]POST find Content-Length [09:28:06]Host: 172.17.44.195:8080 [09:28:06]Content-Length: 678 [09:28:06]Content-Type: application/json [09:28:06] [09:28:06]POST finish read [09:28:06]Found Content-Length = 678 [09:28:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962750", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:06]execute_script... [09:28: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)1962750", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:06]POST & json_proto [09:28:06]process_json_proto [09:28:06]json parsed OK: [09:28:06]protocol is kg_v1.0 [09:28:06]action value=close_receipt [09:28:06]process_action close_receipt [09:28:06]cmd_close_receipt [09:28:06]MH_GetDate [09:28:06]Write to MH i2c: F0 00 00 18 3B 42 [09:28:06]Write i2c OK [09:28:06]MH_I2C_Read... [09:28:06]Read from MH i2c: F0 [09:28:06]MH_I2C_Read... [09:28:06]Read from MH i2c: F0 09 00 [09:28:06]MH_I2C_Read... [09:28:06]Read from MH i2c: F0 09 00 18 3B 00 2A CD 14 67 82 C9 CF 66 3D [09:28:06]GetLastDocTimeStamp 1729416428 [09:28:06]current date 1729416490 [09:28:06]FM_GetShiftState [09:28:06]SAM_PROTO_GetShiftState [09:28:06]wFMCommunicate request_size=4 [09:28:06]MH_SAM_APDU [09:28:06]CAPDU: 80 13 01 00 [09:28:06]Write to MH i2c: E2 08 00 19 3B 80 13 01 00 00 00 00 00 D1 [09:28:06]Write i2c OK [09:28:06]MH_I2C_Read... [09:28:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:06]Read from MH i2c: E2 [09:28:06]MH_I2C_Read... [09:28:06]Read from MH i2c: E2 0E 00 [09:28:06]MH_I2C_Read... [09:28:06]Read from MH i2c: E2 0E 00 19 3B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 EB [09:28:06]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:28:06]wFMCommunicate OK [09:28:06]SAM_PROTO_GetShiftState done [09:28:06]FM_GetShiftState done [09:28:06]opened in 1729383750 [09:28:06]opened+sec_in_day 1729470150 [09:28:06]quantity*price = 50041 [09:28:06]sum+1 = 50042 [09:28:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 128 20.10.2024 09:28 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227280 ФПД: 225314510038000 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T092810&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227280&fm=225314510038000&tin=02508201610067®Number=0000000000091685&sum=50000 [09:28:07]StoreToDocumentArchive [09:28:07]shift 533 fd 227280 [09:28:07]save to /storage/0533/doc_00227280 [09:28:07]save last doc name /storage/0533/doc_00227280 to /storage/kkm_last_doc_name [09:28:07]save OK [09:28:07]Clear old archive folders... [09:28:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:28:07]tlvbuf is 00512920 [09:28:07]SAM_PROTO_ClearQueue [09:28:07]wFMCommunicate request_size=4 [09:28:07]MH_SAM_APDU [09:28:07]CAPDU: 80 09 00 00 [09:28:07]Write to MH i2c: E2 08 00 26 3B 80 09 00 00 00 00 00 00 D3 [09:28:07]Write i2c OK [09:28:07]MH_I2C_Read... [09:28:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:28:07]Read from MH i2c: E2 [09:28:07]MH_I2C_Read... [09:28:07]Read from MH i2c: E2 03 00 [09:28:07]MH_I2C_Read... [09:28:07]Read from MH i2c: E2 03 00 26 3B 00 90 00 D5 [09:28:07]RAPDU: 90 00 [09:28:07]wFMCommunicate OK [09:28:07]SAM_PROTO_ClearQueue done [09:28:07]KKMCreateOFDPacket [09:28:07]OFDProtocolAddRootSTLVToBuf [09:28:07]FM_MakeSignedData [09:28:07]FM_MakeSignedData [09:28:07]SAM_PROTO_SignData [09:28:07]wFMCommunicate request_size=4 [09:28:07]MH_SAM_APDU [09:28:07]CAPDU: 80 0D 01 02 [09:28:07]Write to MH i2c: E2 08 00 27 3B 80 0D 01 02 00 00 00 00 DB [09:28:07]Write i2c OK [09:28:07]MH_I2C_Read... [09:28:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:28:07]Read from MH i2c: E2 [09:28:07]MH_I2C_Read... [09:28:07]Read from MH i2c: E2 03 00 [09:28:07]MH_I2C_Read... [09:28:07]Read from MH i2c: E2 03 00 27 3B 00 90 00 D6 [09:28:07]RAPDU: 90 00 [09:28:07]wFMCommunicate OK [09:28:07]wFMCommunicate request_size=255 [09:28:07]MH_SAM_APDU [09:28:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 2A CD 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D0 77 03 00 35 04 06 00 CC [09:28:07]Write to MH i2c: E2 02 01 28 3B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 2A CD 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D0 77 03 00 35 04 06 00 CC 00 00 91 [09:28:07]Write i2c OK [09:28:07]MH_I2C_Read... [09:28:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:08]Read from MH i2c: E2 [09:28:08]MH_I2C_Read... [09:28:08]Read from MH i2c: E2 03 00 [09:28:08]MH_I2C_Read... [09:28:08]Read from MH i2c: E2 03 00 28 3B 00 90 00 D7 [09:28:08]RAPDU: 90 00 [09:28:08]wFMCommunicate OK [09:28:08]wFMCommunicate request_size=10 [09:28:08]MH_SAM_APDU [09:28:08]CAPDU: 80 0D 02 02 05 EC 1F 55 63 F0 [09:28:08]Write to MH i2c: E2 0D 00 29 3B 80 0D 02 02 05 00 EC 1F 55 63 F0 00 00 9B [09:28:08]Write i2c OK [09:28:08]MH_I2C_Read... [09:28:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:08]Read from MH i2c: E2 [09:28:08]MH_I2C_Read... [09:28:08]Read from MH i2c: E2 03 00 [09:28:08]MH_I2C_Read... [09:28:08]Read from MH i2c: E2 03 00 29 3B 00 90 00 D8 [09:28:08]RAPDU: 90 00 [09:28:08]wFMCommunicate OK [09:28:08]wFMCommunicate request_size=4 [09:28:08]MH_SAM_APDU [09:28:08]CAPDU: 80 0D 03 02 [09:28:08]Write to MH i2c: E2 08 00 2A 3B 80 0D 03 02 00 00 00 00 E0 [09:28:08]Write i2c OK [09:28:08]MH_I2C_Read... [09:28:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:28:08]Read from MH i2c: E2 [09:28:08]MH_I2C_Read... [09:28:08]Read from MH i2c: E2 0B 00 [09:28:08]MH_I2C_Read... [09:28:08]Read from MH i2c: E2 0B 00 2A 3B 00 67 22 67 D7 F4 F8 4B AE 90 00 8D [09:28:08]RAPDU: 67 22 67 D7 F4 F8 4B AE 90 00 [09:28:08]wFMCommunicate OK [09:28:08]SAM_PROTO_SignData done [09:28:08]FM_MakeSignedData done [09:28:08]CreateOFDProtocolMessage [09:28:08]wFMCommunicate request_size=4 [09:28:08]MH_SAM_APDU [09:28:08]CAPDU: 80 11 00 00 [09:28:08]Write to MH i2c: E2 08 00 2B 3B 80 11 00 00 00 00 00 00 E0 [09:28:08]Write i2c OK [09:28:08]MH_I2C_Read... [09:28:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:08]Read from MH i2c: E2 [09:28:08]MH_I2C_Read... [09:28:08]Read from MH i2c: E2 17 00 [09:28:08]MH_I2C_Read... [09:28:08]Read from MH i2c: E2 17 00 2B 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 37 [09:28:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:28:08]wFMCommunicate OK [09:28:08]CreateOFDProtocolMessage done [09:28:08]OFDSenderStorePacket 227280 [09:28:08]StoreOFDPacket docnum=227280 [09:28:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 A1 9B 07 01 11 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 2A CD 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D0 77 03 00 35 04 06 00 CC EC 1F 55 63 F0 67 22 67 D7 F4 F8 4B AE [09:28:08]CheckFolder [09:28:08]dirname=/storage/ofd_packets [09:28:08]CheckFolder done [09:28:08]ProducePacketName [09:28:08]name=ofd_packets/00227280 [09:28:08]NVStorageSaveData ofd_packets/00227280 [09:28:08]File name is /storage/ofd_packets/00227280 [09:28:08]Write 301 bytes [09:28:08]NVStorageSaveData done [09:28:08]OFDSenderStorePacket done [09:28:08]KKMCreateOFDPacket done [09:28:08]NVStorageSaveData kkm_last_timestamp [09:28:08]File name is /storage/kkm_last_timestamp [09:28:08]Write 4 bytes [09:28:08]NVStorageSaveData done [09:28:08]ExternCall_PrintAddStr [09:28:08]wPrintStart [09:28:08]Write to MH i2c: 01 00 00 2C 3B 67 [09:28:08]Write i2c OK [09:28:08]MH_I2C_Read... [09:28:08]Read from MH i2c: 01 [09:28:08]MH_I2C_Read... [09:28:08]Read from MH i2c: 01 07 00 [09:28:08]MH_I2C_Read... [09:28:08]Read from MH i2c: 01 07 00 2C 3B 00 00 00 00 00 FF 0F 7C [09:28:08]RasterBufferAndPrint [09:28:08]line Счет N : (1)1962750 [09:28:08]line ИНН: 02508201610067 [09:28:08]line Контрольно-Кассовый Чек [09:28:08]line ПРОДАЖА [09:28:08]line ТРК (МРК, ГНК) : 43 [09:28:08]line Товар: 2710124130 [09:28:08]line Аи-92-К-5 [09:28:08]line 7.480 * 66.90 [09:28:08]line = 500.41 [09:28:08]line НДС 12% НСП 1% [09:28:08]line > о реализуемом товаре [09:28:08]line ОКРУГЛЕНИЕ: -0.41 [09:28:08]line ИТОГО: 500.00 [09:28:08]line Внесено: 500.00 [09:28:08]line СДАЧА: 0.00 [09:28:08]line НСП 1% : 4.43 [09:28:08]line НДС 12% : 53.14 [09:28:08]line Наличными: 500.00 [09:28:08]line Безнал.: 0.00 [09:28:08]line Место: АЗС № 133 "Партнер Нефть" [09:28:08]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:28:08]line СНО: Общий режим [09:28:08]line Чек 128 20.10.2024 09:28 [09:28:08]line Смена: 533 ФФД: 1.0 [09:28:08]line ЗНМ: 0300000091 [09:28:08]line РНМ: 0000000000091685 [09:28:08]line Версия ККМ: 001 [09:28:08]line ФМ: 0000000000871839 [09:28:08]line ФД: 227280 [09:28:08]line ФПД: 225314510038000 [09:28:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T092810&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227280&fm=225314510038000&tin=02508201610067®Number=0000000000091685&sum=50000 [09:28:08]written 0, free lines is 4095 [09:28:08]OFD Sender: Processing packet 227280 [packets to send 38, broken 37] [09:28:08]ProducePacketName [09:28:08]name=ofd_packets/00227280 [09:28:08]OFD Sender: To server: pG, [09:28:08]CommunicateWithHost lk.salyk.kg:30040 [09:28:08]ConnectInit lk.salyk.kg [09:28:08]Connected sock=11 [09:28: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 33 39 0F 01 00 00 A1 9B 07 01 11 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 2A CD 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D0 77 03 00 35 04 06 00 CC EC 1F 55 63 F0 67 22 67 D7 F4 F8 4B AE [09:28: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 33 39 4F 00 00 00 01 F4 47 00 D8 A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D0 77 03 00 F4 03 04 00 2A 78 14 67 B6 04 01 00 00 52 AB AF 55 47 CB 05 DA [09:28:09]CommunicateWithHost err = 0 [09:28:09]CheckOFDResponse [09:28:09]1017 (14) - 77093643461234 [09:28:09]1041 (16) - 0000000000871839 [09:28:09]1040 (4) - 227280 [09:28:09]1012 (4) - 20.10.2024 03:25 [09:28:09]1206 (1) - 0 [09:28:09]OFD Sender: Remove packet 227280 [09:28:09]ProducePacketName [09:28:09]name=ofd_packets/00227280 [09:28:09]NVStorageDeleteData [09:28:09]Write to MH i2c: 01 00 00 56 3B 91 [09:28:09]Write i2c OK [09:28:09]MH_I2C_Read... [09:28:09]Read from MH i2c: 01 [09:28:09]MH_I2C_Read... [09:28:09]Read from MH i2c: 01 07 00 [09:28:09]MH_I2C_Read... [09:28:09]Read from MH i2c: 01 07 00 56 3B 00 00 00 00 00 02 0D A7 [09:28:09]RasterBufferAndPrint [09:28:09]line [09:28:09]line [09:28:09]line [09:28:09]line [09:28:09]line [09:28:09]written 0, free lines is 3336 [09:28:09]process_action close_receipt done [09:28:09]requested_data is exist [09:28:09]produce_requested_data [09:28:09]requested_item fm.sn is exist - process it [09:28:09]wFMCommunicate request_size=4 [09:28:09]MH_SAM_APDU [09:28:09]CAPDU: 80 11 00 00 [09:28:09]Write to MH i2c: E2 08 00 5D 3B 80 11 00 00 00 00 00 00 12 [09:28:09]Write i2c OK [09:28:09]MH_I2C_Read... [09:28:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:09]Read from MH i2c: E2 [09:28:09]MH_I2C_Read... [09:28:09]Read from MH i2c: E2 17 00 [09:28:09]MH_I2C_Read... [09:28:09]Read from MH i2c: E2 17 00 5D 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 69 [09:28:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:28:09]wFMCommunicate OK [09:28:09]requested_item fd.num is exist - process it [09:28:09]SAM_PROTO_GetFieldsCounters [09:28:09]wFMCommunicate request_size=4 [09:28:09]MH_SAM_APDU [09:28:09]CAPDU: 80 13 00 00 [09:28:09]Write to MH i2c: E2 08 00 5E 3B 80 13 00 00 00 00 00 00 15 [09:28:09]Write i2c OK [09:28:09]MH_I2C_Read... [09:28:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:28:09]Read from MH i2c: E2 [09:28:09]MH_I2C_Read... [09:28:09]Read from MH i2c: E2 62 00 [09:28:09]MH_I2C_Read... [09:28:09]Read from MH i2c: E2 62 00 5E 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 D0 77 03 00 0E 04 04 00 15 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 1F [09:28: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 D0 77 03 00 0E 04 04 00 15 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 [09:28:09]wFMCommunicate OK [09:28:09]SAM_PROTO_GetFieldsCounters done [09:28:09]requested_item shift.num is exist - process it [09:28:09]requested_item shift.opened is exist - process it [09:28:09]req_shift_opened [09:28:09]FM_GetShiftState [09:28:09]SAM_PROTO_GetShiftState [09:28:09]wFMCommunicate request_size=4 [09:28:09]MH_SAM_APDU [09:28:09]CAPDU: 80 13 01 00 [09:28:09]Write to MH i2c: E2 08 00 5F 3B 80 13 01 00 00 00 00 00 17 [09:28:09]Write i2c OK [09:28:09]MH_I2C_Read... [09:28:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:09]Read from MH i2c: E2 [09:28:09]MH_I2C_Read... [09:28:09]Read from MH i2c: E2 0E 00 [09:28:09]MH_I2C_Read... [09:28:09]Read from MH i2c: E2 0E 00 5F 3B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 31 [09:28:09]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:28:09]wFMCommunicate OK [09:28:09]SAM_PROTO_GetShiftState done [09:28:09]FM_GetShiftState done [09:28:09]req_shift_opened done [09:28:09]requested_item shift.open_date is exist - process it [09:28:09]req_shift_open_date [09:28:09]req_shift_open_date done [09:28:09]produce_requested_data done [09:28:09]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227280,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [09:28:09]process_action_free close_receipt [09:28:09]json_value_free [09:28:09]json_value_free done [09:28:09]process_json_proto returns [09:28:09]Send response to host [09:28:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227280,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [09:28:09]free response buf [09:28:09]execute_script done [09:28:09]execute_script returns [09:28:09]free content buf [09:28:09]Sock 9.Close socket [09:28:09]Sock 9.Thread stoped [09:28:09]OFD Sender: No OFD packet to send [09:28:14]OFD Sender: No OFD packet to send [09:28:19]OFD Sender: No OFD packet to send [09:28:24]OFD Sender: No OFD packet to send [09:28:29]OFD Sender: No OFD packet to send [09:28:34]OFD Sender: No OFD packet to send [09:28:39]OFD Sender: No OFD packet to send [09:28:42]accept exits with 10 [09:28:42]New connection [09:28:42]New thread 3066965348 created [09:28:42]Thread 3066821988 joined [09:28:42]Waiting for new connection... [09:28:42] Sock 10.Parse request [09:28:42]Sock 10.Check first char [09:28:42]Sock 10.First char is OK [09:28:42]request: POST /json_proto HTTP/1.0 [09:28:42]Method: POST [09:28:42]URL: /json_proto [09:28:42]Method is POST - this is cgi request [09:28:42]url: /json_proto [09:28:42]query_string will be loaded in cgi processing [09:28:42]execute_cgi json_proto POST (null) [09:28:42]execute_cgi path=json_proto method=POST [09:28:42]POST find Content-Length [09:28:42]Host: 172.17.44.195:8080 [09:28:42]Content-Length: 680 [09:28:42]Content-Type: application/json [09:28:42] [09:28:42]POST finish read [09:28:42]Found Content-Length = 680 [09:28:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962751", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:42]execute_script... [09:28: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)1962751", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:42]POST & json_proto [09:28:42]process_json_proto [09:28:42]json parsed OK: [09:28:42]protocol is kg_v1.0 [09:28:42]action value=close_receipt [09:28:42]process_action close_receipt [09:28:42]cmd_close_receipt [09:28:42]MH_GetDate [09:28:42]Write to MH i2c: F0 00 00 60 3B 8A [09:28:42]Write i2c OK [09:28:42]MH_I2C_Read... [09:28:42]Read from MH i2c: F0 [09:28:42]MH_I2C_Read... [09:28:42]Read from MH i2c: F0 09 00 [09:28:42]MH_I2C_Read... [09:28:42]Read from MH i2c: F0 09 00 60 3B 00 4E CD 14 67 82 C9 CF 66 A9 [09:28:42]GetLastDocTimeStamp 1729416490 [09:28:42]current date 1729416526 [09:28:42]FM_GetShiftState [09:28:42]SAM_PROTO_GetShiftState [09:28:42]wFMCommunicate request_size=4 [09:28:42]MH_SAM_APDU [09:28:42]CAPDU: 80 13 01 00 [09:28:42]Write to MH i2c: E2 08 00 61 3B 80 13 01 00 00 00 00 00 19 [09:28:42]Write i2c OK [09:28:42]MH_I2C_Read... [09:28:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:42]Read from MH i2c: E2 [09:28:42]MH_I2C_Read... [09:28:42]Read from MH i2c: E2 0E 00 [09:28:42]MH_I2C_Read... [09:28:42]Read from MH i2c: E2 0E 00 61 3B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 33 [09:28:42]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:28:42]wFMCommunicate OK [09:28:42]SAM_PROTO_GetShiftState done [09:28:42]FM_GetShiftState done [09:28:42]opened in 1729383750 [09:28:42]opened+sec_in_day 1729470150 [09:28:42]quantity*price = 100050 [09:28:42]sum+1 = 100052 [09:28:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 129 20.10.2024 09:28 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227281 ФПД: 90683632444725 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T092846&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227281&fm=90683632444725&tin=02508201610067®Number=0000000000091685&sum=100000 [09:28:43]StoreToDocumentArchive [09:28:43]shift 533 fd 227281 [09:28:43]save to /storage/0533/doc_00227281 [09:28:43]save last doc name /storage/0533/doc_00227281 to /storage/kkm_last_doc_name [09:28:43]save OK [09:28:43]Clear old archive folders... [09:28:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:28:43]tlvbuf is 005FA820 [09:28:43]SAM_PROTO_ClearQueue [09:28:43]wFMCommunicate request_size=4 [09:28:43]MH_SAM_APDU [09:28:43]CAPDU: 80 09 00 00 [09:28:43]Write to MH i2c: E2 08 00 6E 3B 80 09 00 00 00 00 00 00 1B [09:28:43]Write i2c OK [09:28:43]MH_I2C_Read... [09:28:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:28:43]Read from MH i2c: E2 [09:28:43]MH_I2C_Read... [09:28:43]Read from MH i2c: E2 03 00 [09:28:43]MH_I2C_Read... [09:28:43]Read from MH i2c: E2 03 00 6E 3B 00 90 00 1D [09:28:43]RAPDU: 90 00 [09:28:43]wFMCommunicate OK [09:28:43]SAM_PROTO_ClearQueue done [09:28:43]KKMCreateOFDPacket [09:28:43]OFDProtocolAddRootSTLVToBuf [09:28:43]FM_MakeSignedData [09:28:43]FM_MakeSignedData [09:28:43]SAM_PROTO_SignData [09:28:43]wFMCommunicate request_size=4 [09:28:43]MH_SAM_APDU [09:28:43]CAPDU: 80 0D 01 02 [09:28:43]Write to MH i2c: E2 08 00 6F 3B 80 0D 01 02 00 00 00 00 23 [09:28:43]Write i2c OK [09:28:43]MH_I2C_Read... [09:28:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:28:44]Read from MH i2c: E2 [09:28:44]MH_I2C_Read... [09:28:44]Read from MH i2c: E2 03 00 [09:28:44]MH_I2C_Read... [09:28:44]Read from MH i2c: E2 03 00 6F 3B 00 90 00 1E [09:28:44]RAPDU: 90 00 [09:28:44]wFMCommunicate OK [09:28:44]wFMCommunicate request_size=255 [09:28:44]MH_SAM_APDU [09:28:44]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 4E CD 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D1 77 03 00 35 04 06 00 52 79 ED B2 [09:28:44]Write to MH i2c: E2 02 01 70 3B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 4E CD 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D1 77 03 00 35 04 06 00 52 79 ED B2 00 00 93 [09:28:44]Write i2c OK [09:28:44]MH_I2C_Read... [09:28:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:44]Read from MH i2c: E2 [09:28:44]MH_I2C_Read... [09:28:44]Read from MH i2c: E2 03 00 [09:28:44]MH_I2C_Read... [09:28:44]Read from MH i2c: E2 03 00 70 3B 00 90 00 1F [09:28:44]RAPDU: 90 00 [09:28:44]wFMCommunicate OK [09:28:44]wFMCommunicate request_size=7 [09:28:44]MH_SAM_APDU [09:28:44]CAPDU: 80 0D 02 02 02 E5 35 [09:28:44]Write to MH i2c: E2 0A 00 71 3B 80 0D 02 02 02 00 E5 35 00 00 44 [09:28:44]Write i2c OK [09:28:44]MH_I2C_Read... [09:28:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:44]Read from MH i2c: E2 [09:28:44]MH_I2C_Read... [09:28:44]Read from MH i2c: E2 03 00 [09:28:44]MH_I2C_Read... [09:28:44]Read from MH i2c: E2 03 00 71 3B 00 90 00 20 [09:28:44]RAPDU: 90 00 [09:28:44]wFMCommunicate OK [09:28:44]wFMCommunicate request_size=4 [09:28:44]MH_SAM_APDU [09:28:44]CAPDU: 80 0D 03 02 [09:28:44]Write to MH i2c: E2 08 00 72 3B 80 0D 03 02 00 00 00 00 28 [09:28:44]Write i2c OK [09:28:44]MH_I2C_Read... [09:28:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:28:44]Read from MH i2c: E2 [09:28:44]MH_I2C_Read... [09:28:44]Read from MH i2c: E2 0B 00 [09:28:44]MH_I2C_Read... [09:28:44]Read from MH i2c: E2 0B 00 72 3B 00 F2 8E 74 86 56 F9 44 A2 90 00 D8 [09:28:44]RAPDU: F2 8E 74 86 56 F9 44 A2 90 00 [09:28:44]wFMCommunicate OK [09:28:44]SAM_PROTO_SignData done [09:28:44]FM_MakeSignedData done [09:28:44]CreateOFDProtocolMessage [09:28:44]wFMCommunicate request_size=4 [09:28:44]MH_SAM_APDU [09:28:44]CAPDU: 80 11 00 00 [09:28:44]Write to MH i2c: E2 08 00 73 3B 80 11 00 00 00 00 00 00 28 [09:28:44]Write i2c OK [09:28:44]MH_I2C_Read... [09:28:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:44]Read from MH i2c: E2 [09:28:44]MH_I2C_Read... [09:28:44]Read from MH i2c: E2 17 00 [09:28:44]MH_I2C_Read... [09:28:44]Read from MH i2c: E2 17 00 73 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 7F [09:28:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:28:44]wFMCommunicate OK [09:28:44]CreateOFDProtocolMessage done [09:28:44]OFDSenderStorePacket 227281 [09:28:44]StoreOFDPacket docnum=227281 [09:28:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 68 67 04 01 CA 1A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 4E CD 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D1 77 03 00 35 04 06 00 52 79 ED B2 E5 35 F2 8E 74 86 56 F9 44 A2 [09:28:44]CheckFolder [09:28:44]dirname=/storage/ofd_packets [09:28:44]CheckFolder done [09:28:44]ProducePacketName [09:28:44]name=ofd_packets/00227281 [09:28:44]NVStorageSaveData ofd_packets/00227281 [09:28:44]File name is /storage/ofd_packets/00227281 [09:28:44]Write 298 bytes [09:28:44]NVStorageSaveData done [09:28:44]OFDSenderStorePacket done [09:28:44]KKMCreateOFDPacket done [09:28:44]NVStorageSaveData kkm_last_timestamp [09:28:44]File name is /storage/kkm_last_timestamp [09:28:44]Write 4 bytes [09:28:44]NVStorageSaveData done [09:28:44]ExternCall_PrintAddStr [09:28:44]wPrintStart [09:28:44]Write to MH i2c: 01 00 00 74 3B AF [09:28:44]Write i2c OK [09:28:44]MH_I2C_Read... [09:28:44]Read from MH i2c: 01 [09:28:44]MH_I2C_Read... [09:28:44]Read from MH i2c: 01 07 00 [09:28:44]MH_I2C_Read... [09:28:44]Read from MH i2c: 01 07 00 74 3B 00 00 00 00 00 FF 0F C4 [09:28:44]RasterBufferAndPrint [09:28:44]line Счет N : (1)1962751 [09:28:44]line ИНН: 02508201610067 [09:28:44]line Контрольно-Кассовый Чек [09:28:44]line ПРОДАЖА [09:28:44]line ТРК (МРК, ГНК) : 21 [09:28:44]line Товар: 2710194210 [09:28:44]line ДТ-К-5 [09:28:44]line 13.130 * 76.20 [09:28:44]line = 1000.51 [09:28:44]line НДС 12% НСП 1% [09:28:44]line > о реализуемом товаре [09:28:44]line ОКРУГЛЕНИЕ: -0.51 [09:28:44]line ИТОГО: 1000.00 [09:28:44]line Внесено: 1000.00 [09:28:44]line СДАЧА: 0.00 [09:28:44]line НСП 1% : 8.85 [09:28:44]line НДС 12% : 106.25 [09:28:44]line Наличными: 1000.00 [09:28:44]line Безнал.: 0.00 [09:28:44]line Место: АЗС № 133 "Партнер Нефть" [09:28:44]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:28:44]line СНО: Общий режим [09:28:44]line Чек 129 20.10.2024 09:28 [09:28:44]line Смена: 533 ФФД: 1.0 [09:28:44]line ЗНМ: 0300000091 [09:28:44]line РНМ: 0000000000091685 [09:28:44]line Версия ККМ: 001 [09:28:44]line ФМ: 0000000000871839 [09:28:44]line ФД: 227281 [09:28:44]line ФПД: 90683632444725 [09:28:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T092846&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227281&fm=90683632444725&tin=02508201610067®Number=0000000000091685&sum=100000 [09:28:44]OFD Sender: Processing packet 227281 [packets to send 38, broken 37] [09:28:44]ProducePacketName [09:28:44]name=ofd_packets/00227281 [09:28:44]OFD Sender: To server: pG, [09:28:44]CommunicateWithHost lk.salyk.kg:30040 [09:28:44]ConnectInit lk.salyk.kg [09:28:44]written 0, free lines is 4095 [09:28:44]Connected sock=9 [09:28: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 33 39 0C 01 00 00 68 67 04 01 CA 1A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 4E CD 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D1 77 03 00 35 04 06 00 52 79 ED B2 E5 35 F2 8E 74 86 56 F9 44 A2 [09:28: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 33 39 4F 00 00 00 C4 9E 47 00 64 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D1 77 03 00 F4 03 04 00 4E 78 14 67 B6 04 01 00 00 49 74 BC 36 A9 43 AE 80 [09:28:45]CommunicateWithHost err = 0 [09:28:45]CheckOFDResponse [09:28:45]1017 (14) - 77093643461234 [09:28:45]1041 (16) - 0000000000871839 [09:28:45]1040 (4) - 227281 [09:28:45]1012 (4) - 20.10.2024 03:26 [09:28:45]1206 (1) - 0 [09:28:45]OFD Sender: Remove packet 227281 [09:28:45]ProducePacketName [09:28:45]name=ofd_packets/00227281 [09:28:45]NVStorageDeleteData [09:28:45]Write to MH i2c: 01 00 00 9E 3B D9 [09:28:45]Write i2c OK [09:28:45]MH_I2C_Read... [09:28:45]Read from MH i2c: 01 [09:28:45]MH_I2C_Read... [09:28:45]Read from MH i2c: 01 07 00 [09:28:45]MH_I2C_Read... [09:28:45]Read from MH i2c: 01 07 00 9E 3B 00 00 00 00 00 05 0D F2 [09:28:45]RasterBufferAndPrint [09:28:45]line [09:28:45]line [09:28:45]line [09:28:45]line [09:28:45]line [09:28:45]written 0, free lines is 3339 [09:28:45]process_action close_receipt done [09:28:45]requested_data is exist [09:28:45]produce_requested_data [09:28:45]requested_item fm.sn is exist - process it [09:28:45]wFMCommunicate request_size=4 [09:28:45]MH_SAM_APDU [09:28:45]CAPDU: 80 11 00 00 [09:28:45]Write to MH i2c: E2 08 00 A5 3B 80 11 00 00 00 00 00 00 5A [09:28:45]Write i2c OK [09:28:45]MH_I2C_Read... [09:28:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:45]Read from MH i2c: E2 [09:28:45]MH_I2C_Read... [09:28:45]Read from MH i2c: E2 17 00 [09:28:45]MH_I2C_Read... [09:28:45]Read from MH i2c: E2 17 00 A5 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B1 [09:28:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:28:45]wFMCommunicate OK [09:28:45]requested_item fd.num is exist - process it [09:28:45]SAM_PROTO_GetFieldsCounters [09:28:45]wFMCommunicate request_size=4 [09:28:45]MH_SAM_APDU [09:28:45]CAPDU: 80 13 00 00 [09:28:45]Write to MH i2c: E2 08 00 A6 3B 80 13 00 00 00 00 00 00 5D [09:28:45]Write i2c OK [09:28:45]MH_I2C_Read... [09:28:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:28:45]Read from MH i2c: E2 [09:28:45]MH_I2C_Read... [09:28:45]Read from MH i2c: E2 62 00 [09:28:45]MH_I2C_Read... [09:28:45]Read from MH i2c: E2 62 00 A6 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 D1 77 03 00 0E 04 04 00 15 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 6B [09:28:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 D1 77 03 00 0E 04 04 00 15 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 [09:28:45]wFMCommunicate OK [09:28:45]SAM_PROTO_GetFieldsCounters done [09:28:45]requested_item shift.num is exist - process it [09:28:45]requested_item shift.opened is exist - process it [09:28:45]req_shift_opened [09:28:45]FM_GetShiftState [09:28:45]SAM_PROTO_GetShiftState [09:28:45]wFMCommunicate request_size=4 [09:28:45]MH_SAM_APDU [09:28:45]CAPDU: 80 13 01 00 [09:28:45]Write to MH i2c: E2 08 00 A7 3B 80 13 01 00 00 00 00 00 5F [09:28:45]Write i2c OK [09:28:45]MH_I2C_Read... [09:28:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:45]Read from MH i2c: E2 [09:28:45]MH_I2C_Read... [09:28:45]Read from MH i2c: E2 0E 00 [09:28:45]MH_I2C_Read... [09:28:45]Read from MH i2c: E2 0E 00 A7 3B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 79 [09:28:45]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:28:45]wFMCommunicate OK [09:28:45]SAM_PROTO_GetShiftState done [09:28:45]FM_GetShiftState done [09:28:45]req_shift_opened done [09:28:45]requested_item shift.open_date is exist - process it [09:28:45]req_shift_open_date [09:28:45]req_shift_open_date done [09:28:45]produce_requested_data done [09:28:45]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227281,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [09:28:45]process_action_free close_receipt [09:28:45]json_value_free [09:28:45]json_value_free done [09:28:45]process_json_proto returns [09:28:45]Send response to host [09:28:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227281,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [09:28:45]free response buf [09:28:45]execute_script done [09:28:45]execute_script returns [09:28:45]free content buf [09:28:45]Sock 10.Close socket [09:28:45]Sock 10.Thread stoped [09:28:45]OFD Sender: No OFD packet to send [09:28:50]OFD Sender: No OFD packet to send [09:28:55]OFD Sender: No OFD packet to send [09:29:00]OFD Sender: No OFD packet to send [09:29:05]OFD Sender: No OFD packet to send [09:29:10]OFD Sender: No OFD packet to send [09:29:15]OFD Sender: No OFD packet to send [09:29:20]OFD Sender: No OFD packet to send [09:29:25]OFD Sender: No OFD packet to send [09:29:30]OFD Sender: No OFD packet to send [09:29:35]OFD Sender: No OFD packet to send [09:29:40]OFD Sender: No OFD packet to send [09:29:45]OFD Sender: No OFD packet to send [09:29:50]OFD Sender: No OFD packet to send [09:29:55]OFD Sender: No OFD packet to send [09:30:00]OFD Sender: No OFD packet to send [09:30:05]OFD Sender: No OFD packet to send [09:30:10]OFD Sender: No OFD packet to send [09:30:15]OFD Sender: No OFD packet to send [09:30:20]OFD Sender: No OFD packet to send [09:30:25]OFD Sender: No OFD packet to send [09:30:28]accept exits with 8 [09:30:28]New connection [09:30:28]New thread 3066821988 created [09:30:28]Thread 3066965348 joined [09:30:28]Waiting for new connection... [09:30:28] Sock 8.Parse request [09:30:28]Sock 8.Check first char [09:30:28]Sock 8.First char is OK [09:30:28]request: POST /json_proto HTTP/1.0 [09:30:28]Method: POST [09:30:28]URL: /json_proto [09:30:28]Method is POST - this is cgi request [09:30:28]url: /json_proto [09:30:28]query_string will be loaded in cgi processing [09:30:28]execute_cgi json_proto POST (null) [09:30:28]execute_cgi path=json_proto method=POST [09:30:28]POST find Content-Length [09:30:28]Host: 172.17.44.195:8080 [09:30:28]Content-Length: 680 [09:30:28]Content-Type: application/json [09:30:28] [09:30:28]POST finish read [09:30:28]Found Content-Length = 680 [09:30:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962752", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:28]execute_script... [09:30: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)1962752", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:28]POST & json_proto [09:30:28]process_json_proto [09:30:28]json parsed OK: [09:30:28]protocol is kg_v1.0 [09:30:28]action value=close_receipt [09:30:28]process_action close_receipt [09:30:28]cmd_close_receipt [09:30:28]MH_GetDate [09:30:28]Write to MH i2c: F0 00 00 A8 3B D2 [09:30:28]Write i2c OK [09:30:28]MH_I2C_Read... [09:30:28]Read from MH i2c: F0 [09:30:28]MH_I2C_Read... [09:30:28]Read from MH i2c: F0 09 00 [09:30:28]MH_I2C_Read... [09:30:28]Read from MH i2c: F0 09 00 A8 3B 00 B8 CD 14 67 82 C9 CF 66 5B [09:30:28]GetLastDocTimeStamp 1729416526 [09:30:28]current date 1729416632 [09:30:28]FM_GetShiftState [09:30:28]SAM_PROTO_GetShiftState [09:30:28]wFMCommunicate request_size=4 [09:30:28]MH_SAM_APDU [09:30:28]CAPDU: 80 13 01 00 [09:30:28]Write to MH i2c: E2 08 00 A9 3B 80 13 01 00 00 00 00 00 61 [09:30:28]Write i2c OK [09:30:28]MH_I2C_Read... [09:30:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:28]Read from MH i2c: E2 [09:30:28]MH_I2C_Read... [09:30:28]Read from MH i2c: E2 0E 00 [09:30:28]MH_I2C_Read... [09:30:28]Read from MH i2c: E2 0E 00 A9 3B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 7B [09:30:28]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:30:28]wFMCommunicate OK [09:30:28]SAM_PROTO_GetShiftState done [09:30:28]FM_GetShiftState done [09:30:28]opened in 1729383750 [09:30:28]opened+sec_in_day 1729470150 [09:30:28]quantity*price = 150037 [09:30:28]sum+1 = 150039 [09:30:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 130 20.10.2024 09:30 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227282 ФПД: 34699676874050 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T093032&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227282&fm=34699676874050&tin=02508201610067®Number=0000000000091685&sum=150000 [09:30:29]StoreToDocumentArchive [09:30:29]shift 533 fd 227282 [09:30:29]save to /storage/0533/doc_00227282 [09:30:29]save last doc name /storage/0533/doc_00227282 to /storage/kkm_last_doc_name [09:30:29]save OK [09:30:29]Clear old archive folders... [09:30:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:30:29]tlvbuf is 004E8340 [09:30:29]SAM_PROTO_ClearQueue [09:30:29]wFMCommunicate request_size=4 [09:30:29]MH_SAM_APDU [09:30:29]CAPDU: 80 09 00 00 [09:30:29]Write to MH i2c: E2 08 00 B6 3B 80 09 00 00 00 00 00 00 63 [09:30:29]Write i2c OK [09:30:29]MH_I2C_Read... [09:30:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:30:29]Read from MH i2c: E2 [09:30:29]MH_I2C_Read... [09:30:29]Read from MH i2c: E2 03 00 [09:30:29]MH_I2C_Read... [09:30:29]Read from MH i2c: E2 03 00 B6 3B 00 90 00 65 [09:30:29]RAPDU: 90 00 [09:30:29]wFMCommunicate OK [09:30:29]SAM_PROTO_ClearQueue done [09:30:29]KKMCreateOFDPacket [09:30:29]OFDProtocolAddRootSTLVToBuf [09:30:29]FM_MakeSignedData [09:30:29]FM_MakeSignedData [09:30:29]SAM_PROTO_SignData [09:30:29]wFMCommunicate request_size=4 [09:30:29]MH_SAM_APDU [09:30:29]CAPDU: 80 0D 01 02 [09:30:29]Write to MH i2c: E2 08 00 B7 3B 80 0D 01 02 00 00 00 00 6B [09:30:29]Write i2c OK [09:30:29]MH_I2C_Read... [09:30:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:30:29]Read from MH i2c: E2 [09:30:29]MH_I2C_Read... [09:30:29]Read from MH i2c: E2 03 00 [09:30:29]MH_I2C_Read... [09:30:29]Read from MH i2c: E2 03 00 B7 3B 00 90 00 66 [09:30:29]RAPDU: 90 00 [09:30:29]wFMCommunicate OK [09:30:29]wFMCommunicate request_size=255 [09:30:29]MH_SAM_APDU [09:30:29]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 B8 CD 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D2 77 03 00 35 04 06 00 1F 8F 25 E9 [09:30:29]Write to MH i2c: E2 02 01 B8 3B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 B8 CD 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D2 77 03 00 35 04 06 00 1F 8F 25 E9 00 00 10 [09:30:29]Write i2c OK [09:30:29]MH_I2C_Read... [09:30:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:29]Read from MH i2c: E2 [09:30:29]MH_I2C_Read... [09:30:29]Read from MH i2c: E2 03 00 [09:30:29]MH_I2C_Read... [09:30:29]Read from MH i2c: E2 03 00 B8 3B 00 90 00 67 [09:30:29]RAPDU: 90 00 [09:30:29]wFMCommunicate OK [09:30:29]wFMCommunicate request_size=7 [09:30:29]MH_SAM_APDU [09:30:29]CAPDU: 80 0D 02 02 02 F5 42 [09:30:29]Write to MH i2c: E2 0A 00 B9 3B 80 0D 02 02 02 00 F5 42 00 00 A9 [09:30:29]Write i2c OK [09:30:29]MH_I2C_Read... [09:30:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:29]Read from MH i2c: E2 [09:30:29]MH_I2C_Read... [09:30:29]Read from MH i2c: E2 03 00 [09:30:29]MH_I2C_Read... [09:30:29]Read from MH i2c: E2 03 00 B9 3B 00 90 00 68 [09:30:29]RAPDU: 90 00 [09:30:29]wFMCommunicate OK [09:30:29]wFMCommunicate request_size=4 [09:30:29]MH_SAM_APDU [09:30:29]CAPDU: 80 0D 03 02 [09:30:29]Write to MH i2c: E2 08 00 BA 3B 80 0D 03 02 00 00 00 00 70 [09:30:29]Write i2c OK [09:30:29]MH_I2C_Read... [09:30:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:30:29]Read from MH i2c: E2 [09:30:29]MH_I2C_Read... [09:30:29]Read from MH i2c: E2 0B 00 [09:30:29]MH_I2C_Read... [09:30:29]Read from MH i2c: E2 0B 00 BA 3B 00 28 A6 30 52 A5 AB 5B F5 90 00 61 [09:30:29]RAPDU: 28 A6 30 52 A5 AB 5B F5 90 00 [09:30:29]wFMCommunicate OK [09:30:29]SAM_PROTO_SignData done [09:30:29]FM_MakeSignedData done [09:30:29]CreateOFDProtocolMessage [09:30:29]wFMCommunicate request_size=4 [09:30:29]MH_SAM_APDU [09:30:29]CAPDU: 80 11 00 00 [09:30:29]Write to MH i2c: E2 08 00 BB 3B 80 11 00 00 00 00 00 00 70 [09:30:29]Write i2c OK [09:30:29]MH_I2C_Read... [09:30:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:29]Read from MH i2c: E2 [09:30:29]MH_I2C_Read... [09:30:29]Read from MH i2c: E2 17 00 [09:30:29]MH_I2C_Read... [09:30:29]Read from MH i2c: E2 17 00 BB 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C7 [09:30:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:30:29]wFMCommunicate OK [09:30:29]CreateOFDProtocolMessage done [09:30:29]OFDSenderStorePacket 227282 [09:30:29]StoreOFDPacket docnum=227282 [09:30:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 07 9E 04 01 9D F3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 B8 CD 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D2 77 03 00 35 04 06 00 1F 8F 25 E9 F5 42 28 A6 30 52 A5 AB 5B F5 [09:30:29]CheckFolder [09:30:29]dirname=/storage/ofd_packets [09:30:29]CheckFolder done [09:30:29]ProducePacketName [09:30:29]name=ofd_packets/00227282 [09:30:29]NVStorageSaveData ofd_packets/00227282 [09:30:29]File name is /storage/ofd_packets/00227282 [09:30:29]Write 298 bytes [09:30:29]NVStorageSaveData done [09:30:29]OFDSenderStorePacket done [09:30:29]KKMCreateOFDPacket done [09:30:29]NVStorageSaveData kkm_last_timestamp [09:30:29]File name is /storage/kkm_last_timestamp [09:30:29]Write 4 bytes [09:30:29]NVStorageSaveData done [09:30:29]ExternCall_PrintAddStr [09:30:29]wPrintStart [09:30:29]Write to MH i2c: 01 00 00 BC 3B F7 [09:30:29]Write i2c OK [09:30:29]MH_I2C_Read... [09:30:29]Read from MH i2c: 01 [09:30:29]MH_I2C_Read... [09:30:29]Read from MH i2c: 01 07 00 [09:30:29]MH_I2C_Read... [09:30:29]Read from MH i2c: 01 07 00 BC 3B 00 00 00 00 00 FF 0F 0C [09:30:29]RasterBufferAndPrint [09:30:29]line Счет N : (1)1962752 [09:30:29]line ИНН: 02508201610067 [09:30:29]line Контрольно-Кассовый Чек [09:30:29]line ПРОДАЖА [09:30:29]line ТРК (МРК, ГНК) : 51 [09:30:29]line Товар: 2710194210 [09:30:29]line ДТ-К-5 [09:30:29]line 19.690 * 76.20 [09:30:29]line = 1500.38 [09:30:29]line НДС 12% НСП 1% [09:30:29]line > о реализуемом товаре [09:30:29]line ОКРУГЛЕНИЕ: -0.38 [09:30:29]line ИТОГО: 1500.00 [09:30:29]line Внесено: 1500.00 [09:30:29]line СДАЧА: 0.00 [09:30:29]line НСП 1% : 13.28 [09:30:29]line НДС 12% : 159.33 [09:30:29]line Наличными: 1500.00 [09:30:29]line Безнал.: 0.00 [09:30:29]line Место: АЗС № 133 "Партнер Нефть" [09:30:29]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:30:29]line СНО: Общий режим [09:30:29]line Чек 130 20.10.2024 09:30 [09:30:29]line Смена: 533 ФФД: 1.0 [09:30:29]line ЗНМ: 0300000091 [09:30:29]line РНМ: 0000000000091685 [09:30:29]line Версия ККМ: 001 [09:30:29]line ФМ: 0000000000871839 [09:30:29]line ФД: 227282 [09:30:29]line ФПД: 34699676874050 [09:30:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T093032&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227282&fm=34699676874050&tin=02508201610067®Number=0000000000091685&sum=150000 [09:30:30]OFD Sender: Processing packet 227282 [packets to send 38, broken 37] [09:30:30]ProducePacketName [09:30:30]name=ofd_packets/00227282 [09:30:30]OFD Sender: To server: pG, [09:30:30]CommunicateWithHost lk.salyk.kg:30040 [09:30:30]ConnectInit lk.salyk.kg [09:30:30]written 0, free lines is 4095 [09:30:30]Connected sock=10 [09:30: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 33 39 0C 01 00 00 07 9E 04 01 9D F3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 B8 CD 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D2 77 03 00 35 04 06 00 1F 8F 25 E9 F5 42 28 A6 30 52 A5 AB 5B F5 [09:30: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 33 39 4F 00 00 00 D4 42 47 00 3F 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 33 39 10 04 04 00 D2 77 03 00 F4 03 04 00 B7 78 14 67 B6 04 01 00 00 E9 6C 7A 10 DC 02 B8 FA [09:30:30]CommunicateWithHost err = 0 [09:30:30]CheckOFDResponse [09:30:30]1017 (14) - 77093643461234 [09:30:30]1041 (16) - 0000000000871839 [09:30:30]1040 (4) - 227282 [09:30:30]1012 (4) - 20.10.2024 03:27 [09:30:30]1206 (1) - 0 [09:30:30]OFD Sender: Remove packet 227282 [09:30:30]ProducePacketName [09:30:30]name=ofd_packets/00227282 [09:30:30]NVStorageDeleteData [09:30:30]Write to MH i2c: 01 00 00 E6 3B 21 [09:30:30]Write i2c OK [09:30:30]MH_I2C_Read... [09:30:30]Read from MH i2c: 01 [09:30:30]MH_I2C_Read... [09:30:30]Read from MH i2c: 01 07 00 [09:30:30]MH_I2C_Read... [09:30:30]Read from MH i2c: 01 07 00 E6 3B 00 00 00 00 00 FF 0C 33 [09:30:30]RasterBufferAndPrint [09:30:30]line [09:30:30]line [09:30:30]line [09:30:30]line [09:30:30]line [09:30:30]written 0, free lines is 3333 [09:30:30]process_action close_receipt done [09:30:30]requested_data is exist [09:30:30]produce_requested_data [09:30:30]requested_item fm.sn is exist - process it [09:30:30]wFMCommunicate request_size=4 [09:30:30]MH_SAM_APDU [09:30:30]CAPDU: 80 11 00 00 [09:30:30]Write to MH i2c: E2 08 00 ED 3B 80 11 00 00 00 00 00 00 A2 [09:30:30]Write i2c OK [09:30:30]MH_I2C_Read... [09:30:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:30]Read from MH i2c: E2 [09:30:30]MH_I2C_Read... [09:30:30]Read from MH i2c: E2 17 00 [09:30:30]MH_I2C_Read... [09:30:30]Read from MH i2c: E2 17 00 ED 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F9 [09:30:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:30:30]wFMCommunicate OK [09:30:30]requested_item fd.num is exist - process it [09:30:30]SAM_PROTO_GetFieldsCounters [09:30:30]wFMCommunicate request_size=4 [09:30:30]MH_SAM_APDU [09:30:30]CAPDU: 80 13 00 00 [09:30:30]Write to MH i2c: E2 08 00 EE 3B 80 13 00 00 00 00 00 00 A5 [09:30:30]Write i2c OK [09:30:30]MH_I2C_Read... [09:30:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:30:30]Read from MH i2c: E2 [09:30:30]MH_I2C_Read... [09:30:30]Read from MH i2c: E2 62 00 [09:30:30]MH_I2C_Read... [09:30:30]Read from MH i2c: E2 62 00 EE 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 D2 77 03 00 0E 04 04 00 15 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 B7 [09:30:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 D2 77 03 00 0E 04 04 00 15 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 [09:30:30]wFMCommunicate OK [09:30:30]SAM_PROTO_GetFieldsCounters done [09:30:30]requested_item shift.num is exist - process it [09:30:30]requested_item shift.opened is exist - process it [09:30:30]req_shift_opened [09:30:30]FM_GetShiftState [09:30:30]SAM_PROTO_GetShiftState [09:30:30]wFMCommunicate request_size=4 [09:30:30]MH_SAM_APDU [09:30:30]CAPDU: 80 13 01 00 [09:30:30]Write to MH i2c: E2 08 00 EF 3B 80 13 01 00 00 00 00 00 A7 [09:30:30]Write i2c OK [09:30:30]MH_I2C_Read... [09:30:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:30]Read from MH i2c: E2 [09:30:30]MH_I2C_Read... [09:30:30]Read from MH i2c: E2 0E 00 [09:30:30]MH_I2C_Read... [09:30:30]Read from MH i2c: E2 0E 00 EF 3B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 C1 [09:30:30]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:30:30]wFMCommunicate OK [09:30:30]SAM_PROTO_GetShiftState done [09:30:30]FM_GetShiftState done [09:30:30]req_shift_opened done [09:30:30]requested_item shift.open_date is exist - process it [09:30:30]req_shift_open_date [09:30:30]req_shift_open_date done [09:30:30]produce_requested_data done [09:30:30]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227282,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [09:30:30]process_action_free close_receipt [09:30:30]json_value_free [09:30:30]json_value_free done [09:30:30]process_json_proto returns [09:30:30]Send response to host [09:30:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227282,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [09:30:30]free response buf [09:30:30]execute_script done [09:30:30]execute_script returns [09:30:30]free content buf [09:30:30]Sock 8.Close socket [09:30:30]Sock 8.Thread stoped [09:30:31]OFD Sender: No OFD packet to send [09:30:36]OFD Sender: No OFD packet to send [09:30:39]accept exits with 9 [09:30:39]New connection [09:30:39]New thread 3066965348 created [09:30:39]Thread 3066821988 joined [09:30:39]Waiting for new connection... [09:30:39] Sock 9.Parse request [09:30:39]Sock 9.Check first char [09:30:39]Sock 9.First char is OK [09:30:39]request: POST /json_proto HTTP/1.0 [09:30:39]Method: POST [09:30:39]URL: /json_proto [09:30:39]Method is POST - this is cgi request [09:30:39]url: /json_proto [09:30:39]query_string will be loaded in cgi processing [09:30:39]execute_cgi json_proto POST (null) [09:30:39]execute_cgi path=json_proto method=POST [09:30:39]POST find Content-Length [09:30:39]Host: 172.17.44.195:8080 [09:30:39]Content-Length: 683 [09:30:39]Content-Type: application/json [09:30:39] [09:30:39]POST finish read [09:30:39]Found Content-Length = 683 [09:30:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962753", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:39]execute_script... [09:30: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)1962753", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:39]POST & json_proto [09:30:39]process_json_proto [09:30:39]json parsed OK: [09:30:39]protocol is kg_v1.0 [09:30:39]action value=close_receipt [09:30:39]process_action close_receipt [09:30:39]cmd_close_receipt [09:30:39]MH_GetDate [09:30:39]Write to MH i2c: F0 00 00 F0 3B 1A [09:30:39]Write i2c OK [09:30:39]MH_I2C_Read... [09:30:39]Read from MH i2c: F0 [09:30:39]MH_I2C_Read... [09:30:39]Read from MH i2c: F0 09 00 [09:30:39]MH_I2C_Read... [09:30:39]Read from MH i2c: F0 09 00 F0 3B 00 C3 CD 14 67 82 C9 CF 66 AE [09:30:39]GetLastDocTimeStamp 1729416632 [09:30:39]current date 1729416643 [09:30:39]FM_GetShiftState [09:30:39]SAM_PROTO_GetShiftState [09:30:39]wFMCommunicate request_size=4 [09:30:39]MH_SAM_APDU [09:30:39]CAPDU: 80 13 01 00 [09:30:39]Write to MH i2c: E2 08 00 F1 3B 80 13 01 00 00 00 00 00 A9 [09:30:39]Write i2c OK [09:30:39]MH_I2C_Read... [09:30:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:39]Read from MH i2c: E2 [09:30:39]MH_I2C_Read... [09:30:39]Read from MH i2c: E2 0E 00 [09:30:39]MH_I2C_Read... [09:30:39]Read from MH i2c: E2 0E 00 F1 3B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 C3 [09:30:39]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:30:39]wFMCommunicate OK [09:30:39]SAM_PROTO_GetShiftState done [09:30:39]FM_GetShiftState done [09:30:39]opened in 1729383750 [09:30:39]opened+sec_in_day 1729470150 [09:30:39]quantity*price = 100021 [09:30:39]sum+1 = 100023 [09:30:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 131 20.10.2024 09:30 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227283 ФПД: 194069147370779 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T093043&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227283&fm=194069147370779&tin=02508201610067®Number=0000000000091685&sum=100000 [09:30:40]StoreToDocumentArchive [09:30:40]shift 533 fd 227283 [09:30:40]save to /storage/0533/doc_00227283 [09:30:40]save last doc name /storage/0533/doc_00227283 to /storage/kkm_last_doc_name [09:30:40]save OK [09:30:40]Clear old archive folders... [09:30:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:30:40]tlvbuf is 00516F50 [09:30:40]SAM_PROTO_ClearQueue [09:30:40]wFMCommunicate request_size=4 [09:30:40]MH_SAM_APDU [09:30:40]CAPDU: 80 09 00 00 [09:30:40]Write to MH i2c: E2 08 00 FE 3B 80 09 00 00 00 00 00 00 AB [09:30:40]Write i2c OK [09:30:40]MH_I2C_Read... [09:30:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:30:40]Read from MH i2c: E2 [09:30:40]MH_I2C_Read... [09:30:40]Read from MH i2c: E2 03 00 [09:30:40]MH_I2C_Read... [09:30:40]Read from MH i2c: E2 03 00 FE 3B 00 90 00 AD [09:30:40]RAPDU: 90 00 [09:30:40]wFMCommunicate OK [09:30:40]SAM_PROTO_ClearQueue done [09:30:40]KKMCreateOFDPacket [09:30:40]OFDProtocolAddRootSTLVToBuf [09:30:40]FM_MakeSignedData [09:30:40]FM_MakeSignedData [09:30:40]SAM_PROTO_SignData [09:30:40]wFMCommunicate request_size=4 [09:30:40]MH_SAM_APDU [09:30:40]CAPDU: 80 0D 01 02 [09:30:40]Write to MH i2c: E2 08 00 FF 3B 80 0D 01 02 00 00 00 00 B3 [09:30:40]Write i2c OK [09:30:40]MH_I2C_Read... [09:30:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:30:40]Read from MH i2c: E2 [09:30:40]MH_I2C_Read... [09:30:40]Read from MH i2c: E2 03 00 [09:30:40]MH_I2C_Read... [09:30:40]Read from MH i2c: E2 03 00 FF 3B 00 90 00 AE [09:30:40]RAPDU: 90 00 [09:30:40]wFMCommunicate OK [09:30:40]wFMCommunicate request_size=255 [09:30:40]MH_SAM_APDU [09:30: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 C3 CD 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D3 77 03 00 35 04 06 00 B0 [09:30:40]Write to MH i2c: E2 02 01 00 3C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 C3 CD 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D3 77 03 00 35 04 06 00 B0 00 00 0A [09:30:40]Write i2c OK [09:30:40]MH_I2C_Read... [09:30:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:40]Read from MH i2c: E2 [09:30:40]MH_I2C_Read... [09:30:40]Read from MH i2c: E2 03 00 [09:30:40]MH_I2C_Read... [09:30:40]Read from MH i2c: E2 03 00 00 3C 00 90 00 B0 [09:30:40]RAPDU: 90 00 [09:30:40]wFMCommunicate OK [09:30:40]wFMCommunicate request_size=10 [09:30:40]MH_SAM_APDU [09:30:40]CAPDU: 80 0D 02 02 05 81 3E 97 45 1B [09:30:40]Write to MH i2c: E2 0D 00 01 3C 80 0D 02 02 05 00 81 3E 97 45 1B 00 00 77 [09:30:40]Write i2c OK [09:30:40]MH_I2C_Read... [09:30:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:40]Read from MH i2c: E2 [09:30:40]MH_I2C_Read... [09:30:40]Read from MH i2c: E2 03 00 [09:30:40]MH_I2C_Read... [09:30:40]Read from MH i2c: E2 03 00 01 3C 00 90 00 B1 [09:30:40]RAPDU: 90 00 [09:30:40]wFMCommunicate OK [09:30:40]wFMCommunicate request_size=4 [09:30:40]MH_SAM_APDU [09:30:40]CAPDU: 80 0D 03 02 [09:30:40]Write to MH i2c: E2 08 00 02 3C 80 0D 03 02 00 00 00 00 B9 [09:30:40]Write i2c OK [09:30:40]MH_I2C_Read... [09:30:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:30:40]Read from MH i2c: E2 [09:30:40]MH_I2C_Read... [09:30:40]Read from MH i2c: E2 0B 00 [09:30:40]MH_I2C_Read... [09:30:40]Read from MH i2c: E2 0B 00 02 3C 00 14 62 2B 20 64 7F AC 09 90 00 13 [09:30:40]RAPDU: 14 62 2B 20 64 7F AC 09 90 00 [09:30:40]wFMCommunicate OK [09:30:40]SAM_PROTO_SignData done [09:30:40]FM_MakeSignedData done [09:30:40]CreateOFDProtocolMessage [09:30:40]wFMCommunicate request_size=4 [09:30:40]MH_SAM_APDU [09:30:40]CAPDU: 80 11 00 00 [09:30:40]Write to MH i2c: E2 08 00 03 3C 80 11 00 00 00 00 00 00 B9 [09:30:40]Write i2c OK [09:30:40]MH_I2C_Read... [09:30:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:40]Read from MH i2c: E2 [09:30:40]MH_I2C_Read... [09:30:40]Read from MH i2c: E2 17 00 [09:30:40]MH_I2C_Read... [09:30:40]Read from MH i2c: E2 17 00 03 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 10 [09:30:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:30:40]wFMCommunicate OK [09:30:40]CreateOFDProtocolMessage done [09:30:40]OFDSenderStorePacket 227283 [09:30:40]StoreOFDPacket docnum=227283 [09:30:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 BD E2 07 01 BA AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 C3 CD 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D3 77 03 00 35 04 06 00 B0 81 3E 97 45 1B 14 62 2B 20 64 7F AC 09 [09:30:40]CheckFolder [09:30:40]dirname=/storage/ofd_packets [09:30:40]CheckFolder done [09:30:40]ProducePacketName [09:30:40]name=ofd_packets/00227283 [09:30:40]NVStorageSaveData ofd_packets/00227283 [09:30:40]File name is /storage/ofd_packets/00227283 [09:30:40]Write 301 bytes [09:30:40]NVStorageSaveData done [09:30:40]OFDSenderStorePacket done [09:30:40]KKMCreateOFDPacket done [09:30:40]NVStorageSaveData kkm_last_timestamp [09:30:40]File name is /storage/kkm_last_timestamp [09:30:40]Write 4 bytes [09:30:40]NVStorageSaveData done [09:30:40]ExternCall_PrintAddStr [09:30:40]wPrintStart [09:30:40]Write to MH i2c: 01 00 00 04 3C 40 [09:30:40]Write i2c OK [09:30:40]MH_I2C_Read... [09:30:40]Read from MH i2c: 01 [09:30:40]MH_I2C_Read... [09:30:40]Read from MH i2c: 01 07 00 [09:30:40]MH_I2C_Read... [09:30:40]Read from MH i2c: 01 07 00 04 3C 00 00 00 00 00 FF 0F 55 [09:30:40]RasterBufferAndPrint [09:30:40]line Счет N : (1)1962753 [09:30:40]line ИНН: 02508201610067 [09:30:40]line Контрольно-Кассовый Чек [09:30:40]line ПРОДАЖА [09:30:40]line ТРК (МРК, ГНК) : 34 [09:30:40]line Товар: 2710124500 [09:30:40]line Аи-95-К-5 [09:30:40]line 13.480 * 74.20 [09:30:40]line = 1000.22 [09:30:40]line НДС 12% НСП 1% [09:30:40]line > о реализуемом товаре [09:30:40]line ОКРУГЛЕНИЕ: -0.22 [09:30:40]line ИТОГО: 1000.00 [09:30:40]line Внесено: 1000.00 [09:30:40]line СДАЧА: 0.00 [09:30:40]line НСП 1% : 8.85 [09:30:40]line НДС 12% : 106.22 [09:30:40]line Наличными: 1000.00 [09:30:40]line Безнал.: 0.00 [09:30:40]line Место: АЗС № 133 "Партнер Нефть" [09:30:40]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:30:40]line СНО: Общий режим [09:30:40]line Чек 131 20.10.2024 09:30 [09:30:40]line Смена: 533 ФФД: 1.0 [09:30:40]line ЗНМ: 0300000091 [09:30:40]line РНМ: 0000000000091685 [09:30:40]line Версия ККМ: 001 [09:30:40]line ФМ: 0000000000871839 [09:30:40]line ФД: 227283 [09:30:40]line ФПД: 194069147370779 [09:30:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T093043&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227283&fm=194069147370779&tin=02508201610067®Number=0000000000091685&sum=100000 [09:30:40]written 0, free lines is 4095 [09:30:41]OFD Sender: Processing packet 227283 [packets to send 38, broken 37] [09:30:41]ProducePacketName [09:30:41]name=ofd_packets/00227283 [09:30:41]OFD Sender: To server: pG, [09:30:41]CommunicateWithHost lk.salyk.kg:30040 [09:30:41]ConnectInit lk.salyk.kg [09:30:41]Connected sock=10 [09:30: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 33 39 0F 01 00 00 BD E2 07 01 BA AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 C3 CD 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D3 77 03 00 35 04 06 00 B0 81 3E 97 45 1B 14 62 2B 20 64 7F AC 09 [09:30: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 33 39 4F 00 00 00 5F 3A 47 00 42 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 33 39 10 04 04 00 D3 77 03 00 F4 03 04 00 C2 78 14 67 B6 04 01 00 00 C8 58 EB D0 70 75 DD 79 [09:30:41]CommunicateWithHost err = 0 [09:30:41]CheckOFDResponse [09:30:41]1017 (14) - 77093643461234 [09:30:41]1041 (16) - 0000000000871839 [09:30:41]1040 (4) - 227283 [09:30:41]1012 (4) - 20.10.2024 03:28 [09:30:41]1206 (1) - 0 [09:30:41]OFD Sender: Remove packet 227283 [09:30:41]ProducePacketName [09:30:41]name=ofd_packets/00227283 [09:30:41]NVStorageDeleteData [09:30:41]Write to MH i2c: 01 00 00 2E 3C 6A [09:30:41]Write i2c OK [09:30:41]MH_I2C_Read... [09:30:41]Read from MH i2c: 01 [09:30:41]MH_I2C_Read... [09:30:41]Read from MH i2c: 01 07 00 [09:30:41]MH_I2C_Read... [09:30:41]Read from MH i2c: 01 07 00 2E 3C 00 00 00 00 00 0C 0D 8A [09:30:41]RasterBufferAndPrint [09:30:41]line [09:30:41]line [09:30:41]line [09:30:41]line [09:30:41]line [09:30:41]written 0, free lines is 3352 [09:30:41]process_action close_receipt done [09:30:41]requested_data is exist [09:30:41]produce_requested_data [09:30:41]requested_item fm.sn is exist - process it [09:30:41]wFMCommunicate request_size=4 [09:30:41]MH_SAM_APDU [09:30:41]CAPDU: 80 11 00 00 [09:30:41]Write to MH i2c: E2 08 00 35 3C 80 11 00 00 00 00 00 00 EB [09:30:41]Write i2c OK [09:30:41]MH_I2C_Read... [09:30:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:41]Read from MH i2c: E2 [09:30:41]MH_I2C_Read... [09:30:41]Read from MH i2c: E2 17 00 [09:30:41]MH_I2C_Read... [09:30:41]Read from MH i2c: E2 17 00 35 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 42 [09:30:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:30:41]wFMCommunicate OK [09:30:41]requested_item fd.num is exist - process it [09:30:41]SAM_PROTO_GetFieldsCounters [09:30:41]wFMCommunicate request_size=4 [09:30:41]MH_SAM_APDU [09:30:41]CAPDU: 80 13 00 00 [09:30:41]Write to MH i2c: E2 08 00 36 3C 80 13 00 00 00 00 00 00 EE [09:30:41]Write i2c OK [09:30:41]MH_I2C_Read... [09:30:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:30:41]Read from MH i2c: E2 [09:30:41]MH_I2C_Read... [09:30:41]Read from MH i2c: E2 62 00 [09:30:41]MH_I2C_Read... [09:30:41]Read from MH i2c: E2 62 00 36 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 D3 77 03 00 0E 04 04 00 15 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 04 [09:30:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 D3 77 03 00 0E 04 04 00 15 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 [09:30:41]wFMCommunicate OK [09:30:41]SAM_PROTO_GetFieldsCounters done [09:30:41]requested_item shift.num is exist - process it [09:30:41]requested_item shift.opened is exist - process it [09:30:41]req_shift_opened [09:30:41]FM_GetShiftState [09:30:41]SAM_PROTO_GetShiftState [09:30:41]wFMCommunicate request_size=4 [09:30:41]MH_SAM_APDU [09:30:41]CAPDU: 80 13 01 00 [09:30:41]Write to MH i2c: E2 08 00 37 3C 80 13 01 00 00 00 00 00 F0 [09:30:41]Write i2c OK [09:30:41]MH_I2C_Read... [09:30:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:41]Read from MH i2c: E2 [09:30:41]MH_I2C_Read... [09:30:41]Read from MH i2c: E2 0E 00 [09:30:41]MH_I2C_Read... [09:30:41]Read from MH i2c: E2 0E 00 37 3C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 0A [09:30:41]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:30:41]wFMCommunicate OK [09:30:41]SAM_PROTO_GetShiftState done [09:30:41]FM_GetShiftState done [09:30:41]req_shift_opened done [09:30:41]requested_item shift.open_date is exist - process it [09:30:41]req_shift_open_date [09:30:41]req_shift_open_date done [09:30:41]produce_requested_data done [09:30:41]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227283,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [09:30:41]process_action_free close_receipt [09:30:41]json_value_free [09:30:41]json_value_free done [09:30:41]process_json_proto returns [09:30:41]Send response to host [09:30:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227283,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [09:30:41]free response buf [09:30:41]execute_script done [09:30:41]execute_script returns [09:30:41]free content buf [09:30:41]Sock 9.Close socket [09:30:41]Sock 9.Thread stoped [09:30:41]OFD Sender: No OFD packet to send [09:30:46]OFD Sender: No OFD packet to send [09:30:51]OFD Sender: No OFD packet to send [09:30:56]OFD Sender: No OFD packet to send [09:31:01]OFD Sender: No OFD packet to send [09:31:06]OFD Sender: No OFD packet to send [09:31:11]OFD Sender: No OFD packet to send [09:31:16]OFD Sender: No OFD packet to send [09:31:21]OFD Sender: No OFD packet to send [09:31:26]OFD Sender: No OFD packet to send [09:31:31]OFD Sender: No OFD packet to send [09:31:36]OFD Sender: No OFD packet to send [09:31:41]OFD Sender: No OFD packet to send [09:31:46]OFD Sender: No OFD packet to send [09:31:51]OFD Sender: No OFD packet to send [09:31:56]OFD Sender: No OFD packet to send [09:32:01]OFD Sender: No OFD packet to send [09:32:06]OFD Sender: No OFD packet to send [09:32:11]OFD Sender: No OFD packet to send [09:32:16]OFD Sender: No OFD packet to send [09:32:21]OFD Sender: No OFD packet to send [09:32:26]OFD Sender: No OFD packet to send [09:32:31]OFD Sender: No OFD packet to send [09:32:36]OFD Sender: No OFD packet to send [09:32:41]OFD Sender: No OFD packet to send [09:32:46]OFD Sender: No OFD packet to send [09:32:51]OFD Sender: No OFD packet to send [09:32:56]OFD Sender: No OFD packet to send [09:32:58]accept exits with 8 [09:32:58]New connection [09:32:58]New thread 3066821988 created [09:32:58]Thread 3066965348 joined [09:32:58]Waiting for new connection... [09:32:58] Sock 8.Parse request [09:32:58]Sock 8.Check first char [09:32:58]Sock 8.First char is OK [09:32:58]request: POST /json_proto HTTP/1.0 [09:32:58]Method: POST [09:32:58]URL: /json_proto [09:32:58]Method is POST - this is cgi request [09:32:58]url: /json_proto [09:32:58]query_string will be loaded in cgi processing [09:32:58]execute_cgi json_proto POST (null) [09:32:58]execute_cgi path=json_proto method=POST [09:32:58]POST find Content-Length [09:32:58]Host: 172.17.44.195:8080 [09:32:58]Content-Length: 679 [09:32:58]Content-Type: application/json [09:32:58] [09:32:58]POST finish read [09:32:58]Found Content-Length = 679 [09:32:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962754", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.990, "sum" : 815.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 815.00, "total" : 815.00, "payments": [ { "type": 0, "sum" : 815.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:58]execute_script... [09:32: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)1962754", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.990, "sum" : 815.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 815.00, "total" : 815.00, "payments": [ { "type": 0, "sum" : 815.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:58]POST & json_proto [09:32:58]process_json_proto [09:32:58]json parsed OK: [09:32:58]protocol is kg_v1.0 [09:32:58]action value=close_receipt [09:32:58]process_action close_receipt [09:32:58]cmd_close_receipt [09:32:58]MH_GetDate [09:32:58]Write to MH i2c: F0 00 00 38 3C 63 [09:32:58]Write i2c OK [09:32:58]MH_I2C_Read... [09:32:58]Read from MH i2c: F0 [09:32:58]MH_I2C_Read... [09:32:58]Read from MH i2c: F0 09 00 [09:32:58]MH_I2C_Read... [09:32:58]Read from MH i2c: F0 09 00 38 3C 00 4E CE 14 67 82 C9 CF 66 83 [09:32:58]GetLastDocTimeStamp 1729416643 [09:32:58]current date 1729416782 [09:32:58]FM_GetShiftState [09:32:58]SAM_PROTO_GetShiftState [09:32:58]wFMCommunicate request_size=4 [09:32:58]MH_SAM_APDU [09:32:58]CAPDU: 80 13 01 00 [09:32:58]Write to MH i2c: E2 08 00 39 3C 80 13 01 00 00 00 00 00 F2 [09:32:58]Write i2c OK [09:32:58]MH_I2C_Read... [09:32:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:58]Read from MH i2c: E2 [09:32:58]MH_I2C_Read... [09:32:58]Read from MH i2c: E2 0E 00 [09:32:58]MH_I2C_Read... [09:32:58]Read from MH i2c: E2 0E 00 39 3C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 0C [09:32:58]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:32:58]wFMCommunicate OK [09:32:58]SAM_PROTO_GetShiftState done [09:32:58]FM_GetShiftState done [09:32:58]opened in 1729383750 [09:32:58]opened+sec_in_day 1729470150 [09:32:58]quantity*price = 81545 [09:32:58]sum+1 = 81547 [09:32:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 815.00 Внесено: 815.00 СДАЧА: 0.00 НСП 1% : 7.22 НДС 12% : 86.60 Наличными: 815.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 132 20.10.2024 09:33 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227284 ФПД: 266868674776962 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T093302&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227284&fm=266868674776962&tin=02508201610067®Number=0000000000091685&sum=81500 [09:32:59]StoreToDocumentArchive [09:32:59]shift 533 fd 227284 [09:32:59]save to /storage/0533/doc_00227284 [09:32:59]save last doc name /storage/0533/doc_00227284 to /storage/kkm_last_doc_name [09:32:59]save OK [09:32:59]Clear old archive folders... [09:32:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:32:59]tlvbuf is 005951A0 [09:32:59]SAM_PROTO_ClearQueue [09:32:59]wFMCommunicate request_size=4 [09:32:59]MH_SAM_APDU [09:32:59]CAPDU: 80 09 00 00 [09:32:59]Write to MH i2c: E2 08 00 46 3C 80 09 00 00 00 00 00 00 F4 [09:32:59]Write i2c OK [09:32:59]MH_I2C_Read... [09:32:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:32:59]Read from MH i2c: E2 [09:32:59]MH_I2C_Read... [09:32:59]Read from MH i2c: E2 03 00 [09:32:59]MH_I2C_Read... [09:32:59]Read from MH i2c: E2 03 00 46 3C 00 90 00 F6 [09:32:59]RAPDU: 90 00 [09:32:59]wFMCommunicate OK [09:32:59]SAM_PROTO_ClearQueue done [09:32:59]KKMCreateOFDPacket [09:32:59]OFDProtocolAddRootSTLVToBuf [09:32:59]FM_MakeSignedData [09:32:59]FM_MakeSignedData [09:32:59]SAM_PROTO_SignData [09:32:59]wFMCommunicate request_size=4 [09:32:59]MH_SAM_APDU [09:32:59]CAPDU: 80 0D 01 02 [09:32:59]Write to MH i2c: E2 08 00 47 3C 80 0D 01 02 00 00 00 00 FC [09:32:59]Write i2c OK [09:32:59]MH_I2C_Read... [09:32:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:32:59]Read from MH i2c: E2 [09:32:59]MH_I2C_Read... [09:32:59]Read from MH i2c: E2 03 00 [09:32:59]MH_I2C_Read... [09:32:59]Read from MH i2c: E2 03 00 47 3C 00 90 00 F7 [09:32:59]RAPDU: 90 00 [09:32:59]wFMCommunicate OK [09:32:59]wFMCommunicate request_size=255 [09:32:59]MH_SAM_APDU [09:32: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 EE 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8A 3E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 3E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D2 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 21 00 00 00 00 07 04 06 00 5C 3E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 4E CE 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D4 77 03 00 35 04 06 00 F2 [09:32:59]Write to MH i2c: E2 02 01 48 3C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 EE 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8A 3E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 3E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D2 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 21 00 00 00 00 07 04 06 00 5C 3E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 4E CE 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D4 77 03 00 35 04 06 00 F2 00 00 7C [09:32:59]Write i2c OK [09:32:59]MH_I2C_Read... [09:32:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:59]Read from MH i2c: E2 [09:32:59]MH_I2C_Read... [09:32:59]Read from MH i2c: E2 03 00 [09:32:59]MH_I2C_Read... [09:32:59]Read from MH i2c: E2 03 00 48 3C 00 90 00 F8 [09:32:59]RAPDU: 90 00 [09:32:59]wFMCommunicate OK [09:32:59]wFMCommunicate request_size=10 [09:32:59]MH_SAM_APDU [09:32:59]CAPDU: 80 0D 02 02 05 B7 34 8F CF 82 [09:32:59]Write to MH i2c: E2 0D 00 49 3C 80 0D 02 02 05 00 B7 34 8F CF 82 00 00 D4 [09:32:59]Write i2c OK [09:32:59]MH_I2C_Read... [09:32:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:59]Read from MH i2c: E2 [09:32:59]MH_I2C_Read... [09:32:59]Read from MH i2c: E2 03 00 [09:32:59]MH_I2C_Read... [09:32:59]Read from MH i2c: E2 03 00 49 3C 00 90 00 F9 [09:32:59]RAPDU: 90 00 [09:32:59]wFMCommunicate OK [09:32:59]wFMCommunicate request_size=4 [09:32:59]MH_SAM_APDU [09:32:59]CAPDU: 80 0D 03 02 [09:32:59]Write to MH i2c: E2 08 00 4A 3C 80 0D 03 02 00 00 00 00 01 [09:32:59]Write i2c OK [09:32:59]MH_I2C_Read... [09:32:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:32:59]Read from MH i2c: E2 [09:32:59]MH_I2C_Read... [09:32:59]Read from MH i2c: E2 0B 00 [09:32:59]MH_I2C_Read... [09:32:59]Read from MH i2c: E2 0B 00 4A 3C 00 AB 24 6E 5E 5E 9C 4C 85 90 00 68 [09:32:59]RAPDU: AB 24 6E 5E 5E 9C 4C 85 90 00 [09:32:59]wFMCommunicate OK [09:32:59]SAM_PROTO_SignData done [09:32:59]FM_MakeSignedData done [09:32:59]CreateOFDProtocolMessage [09:32:59]wFMCommunicate request_size=4 [09:32:59]MH_SAM_APDU [09:32:59]CAPDU: 80 11 00 00 [09:32:59]Write to MH i2c: E2 08 00 4B 3C 80 11 00 00 00 00 00 00 01 [09:32:59]Write i2c OK [09:32:59]MH_I2C_Read... [09:32:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:59]Read from MH i2c: E2 [09:32:59]MH_I2C_Read... [09:32:59]Read from MH i2c: E2 17 00 [09:32:59]MH_I2C_Read... [09:32:59]Read from MH i2c: E2 17 00 4B 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 58 [09:32:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:32:59]wFMCommunicate OK [09:32:59]CreateOFDProtocolMessage done [09:32:59]OFDSenderStorePacket 227284 [09:32:59]StoreOFDPacket docnum=227284 [09:32:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 15 52 07 01 25 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 EE 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8A 3E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 3E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D2 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 21 00 00 00 00 07 04 06 00 5C 3E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 4E CE 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D4 77 03 00 35 04 06 00 F2 B7 34 8F CF 82 AB 24 6E 5E 5E 9C 4C 85 [09:32:59]CheckFolder [09:32:59]dirname=/storage/ofd_packets [09:32:59]CheckFolder done [09:32:59]ProducePacketName [09:33:00]name=ofd_packets/00227284 [09:33:00]NVStorageSaveData ofd_packets/00227284 [09:33:00]File name is /storage/ofd_packets/00227284 [09:33:00]Write 301 bytes [09:33:00]NVStorageSaveData done [09:33:00]OFDSenderStorePacket done [09:33:00]KKMCreateOFDPacket done [09:33:00]NVStorageSaveData kkm_last_timestamp [09:33:00]File name is /storage/kkm_last_timestamp [09:33:00]Write 4 bytes [09:33:00]NVStorageSaveData done [09:33:00]ExternCall_PrintAddStr [09:33:00]wPrintStart [09:33:00]Write to MH i2c: 01 00 00 4C 3C 88 [09:33:00]Write i2c OK [09:33:00]MH_I2C_Read... [09:33:00]Read from MH i2c: 01 [09:33:00]MH_I2C_Read... [09:33:00]Read from MH i2c: 01 07 00 [09:33:00]MH_I2C_Read... [09:33:00]Read from MH i2c: 01 07 00 4C 3C 00 00 00 00 00 FF 0F 9D [09:33:00]RasterBufferAndPrint [09:33:00]line Счет N : (1)1962754 [09:33:00]line ИНН: 02508201610067 [09:33:00]line Контрольно-Кассовый Чек [09:33:00]line ПРОДАЖА [09:33:00]line ТРК (МРК, ГНК) : 44 [09:33:00]line Товар: 2710124500 [09:33:00]line Аи-95-К-5 [09:33:00]line 10.990 * 74.20 [09:33:00]line = 815.46 [09:33:00]line НДС 12% НСП 1% [09:33:00]line > о реализуемом товаре [09:33:00]line ОКРУГЛЕНИЕ: -0.46 [09:33:00]line ИТОГО: 815.00 [09:33:00]line Внесено: 815.00 [09:33:00]line СДАЧА: 0.00 [09:33:00]line НСП 1% : 7.22 [09:33:00]line НДС 12% : 86.60 [09:33:00]line Наличными: 815.00 [09:33:00]line Безнал.: 0.00 [09:33:00]line Место: АЗС № 133 "Партнер Нефть" [09:33:00]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:33:00]line СНО: Общий режим [09:33:00]line Чек 132 20.10.2024 09:33 [09:33:00]line Смена: 533 ФФД: 1.0 [09:33:00]line ЗНМ: 0300000091 [09:33:00]line РНМ: 0000000000091685 [09:33:00]line Версия ККМ: 001 [09:33:00]line ФМ: 0000000000871839 [09:33:00]line ФД: 227284 [09:33:00]line ФПД: 266868674776962 [09:33:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T093302&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227284&fm=266868674776962&tin=02508201610067®Number=0000000000091685&sum=81500 [09:33:00]written 0, free lines is 4095 [09:33:00]OFD Sender: Processing packet 227284 [packets to send 38, broken 37] [09:33:00]ProducePacketName [09:33:00]name=ofd_packets/00227284 [09:33:00]OFD Sender: To server: pG, [09:33:00]CommunicateWithHost lk.salyk.kg:30040 [09:33:00]ConnectInit lk.salyk.kg [09:33:00]Connected sock=10 [09:33: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 33 39 0F 01 00 00 15 52 07 01 25 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 EE 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8A 3E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 3E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D2 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 21 00 00 00 00 07 04 06 00 5C 3E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 4E CE 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D4 77 03 00 35 04 06 00 F2 B7 34 8F CF 82 AB 24 6E 5E 5E 9C 4C 85 [09:33: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 33 39 4F 00 00 00 3E E0 47 00 9E 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 33 39 10 04 04 00 D4 77 03 00 F4 03 04 00 4D 79 14 67 B6 04 01 00 00 F7 83 2E E3 4D 62 87 8F [09:33:00]CommunicateWithHost err = 0 [09:33:00]CheckOFDResponse [09:33:00]1017 (14) - 77093643461234 [09:33:00]1041 (16) - 0000000000871839 [09:33:00]1040 (4) - 227284 [09:33:00]1012 (4) - 20.10.2024 03:30 [09:33:00]1206 (1) - 0 [09:33:00]OFD Sender: Remove packet 227284 [09:33:00]ProducePacketName [09:33:00]name=ofd_packets/00227284 [09:33:00]NVStorageDeleteData [09:33:00]Write to MH i2c: 01 00 00 76 3C B2 [09:33:00]Write i2c OK [09:33:00]MH_I2C_Read... [09:33:00]Read from MH i2c: 01 [09:33:00]MH_I2C_Read... [09:33:00]Read from MH i2c: 01 07 00 [09:33:00]MH_I2C_Read... [09:33:00]Read from MH i2c: 01 07 00 76 3C 00 00 00 00 00 06 0D CC [09:33:00]RasterBufferAndPrint [09:33:00]line [09:33:00]line [09:33:00]line [09:33:00]line [09:33:00]line [09:33:00]written 0, free lines is 3340 [09:33:00]process_action close_receipt done [09:33:00]requested_data is exist [09:33:00]produce_requested_data [09:33:00]requested_item fm.sn is exist - process it [09:33:00]wFMCommunicate request_size=4 [09:33:00]MH_SAM_APDU [09:33:00]CAPDU: 80 11 00 00 [09:33:00]Write to MH i2c: E2 08 00 7D 3C 80 11 00 00 00 00 00 00 33 [09:33:00]Write i2c OK [09:33:00]MH_I2C_Read... [09:33:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:00]Read from MH i2c: E2 [09:33:00]MH_I2C_Read... [09:33:00]Read from MH i2c: E2 17 00 [09:33:00]MH_I2C_Read... [09:33:00]Read from MH i2c: E2 17 00 7D 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 8A [09:33:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:33:00]wFMCommunicate OK [09:33:00]requested_item fd.num is exist - process it [09:33:00]SAM_PROTO_GetFieldsCounters [09:33:00]wFMCommunicate request_size=4 [09:33:00]MH_SAM_APDU [09:33:00]CAPDU: 80 13 00 00 [09:33:00]Write to MH i2c: E2 08 00 7E 3C 80 13 00 00 00 00 00 00 36 [09:33:00]Write i2c OK [09:33:00]MH_I2C_Read... [09:33:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:33:00]Read from MH i2c: E2 [09:33:00]MH_I2C_Read... [09:33:00]Read from MH i2c: E2 62 00 [09:33:00]MH_I2C_Read... [09:33:00]Read from MH i2c: E2 62 00 7E 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 D4 77 03 00 0E 04 04 00 15 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 50 [09:33:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 D4 77 03 00 0E 04 04 00 15 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 [09:33:00]wFMCommunicate OK [09:33:00]SAM_PROTO_GetFieldsCounters done [09:33:00]requested_item shift.num is exist - process it [09:33:00]requested_item shift.opened is exist - process it [09:33:00]req_shift_opened [09:33:00]FM_GetShiftState [09:33:00]SAM_PROTO_GetShiftState [09:33:00]wFMCommunicate request_size=4 [09:33:00]MH_SAM_APDU [09:33:00]CAPDU: 80 13 01 00 [09:33:00]Write to MH i2c: E2 08 00 7F 3C 80 13 01 00 00 00 00 00 38 [09:33:01]Write i2c OK [09:33:01]MH_I2C_Read... [09:33:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:01]Read from MH i2c: E2 [09:33:01]MH_I2C_Read... [09:33:01]Read from MH i2c: E2 0E 00 [09:33:01]MH_I2C_Read... [09:33:01]Read from MH i2c: E2 0E 00 7F 3C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 52 [09:33:01]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:33:01]wFMCommunicate OK [09:33:01]SAM_PROTO_GetShiftState done [09:33:01]FM_GetShiftState done [09:33:01]req_shift_opened done [09:33:01]requested_item shift.open_date is exist - process it [09:33:01]req_shift_open_date [09:33:01]req_shift_open_date done [09:33:01]produce_requested_data done [09:33:01]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227284,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [09:33:01]process_action_free close_receipt [09:33:01]json_value_free [09:33:01]json_value_free done [09:33:01]process_json_proto returns [09:33:01]Send response to host [09:33:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227284,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [09:33:01]free response buf [09:33:01]execute_script done [09:33:01]execute_script returns [09:33:01]free content buf [09:33:01]Sock 8.Close socket [09:33:01]Sock 8.Thread stoped [09:33:01]OFD Sender: No OFD packet to send [09:33:06]OFD Sender: No OFD packet to send [09:33:11]OFD Sender: No OFD packet to send [09:33:16]OFD Sender: No OFD packet to send [09:33:21]OFD Sender: No OFD packet to send [09:33:26]OFD Sender: No OFD packet to send [09:33:31]OFD Sender: No OFD packet to send [09:33:36]OFD Sender: No OFD packet to send [09:33:41]OFD Sender: No OFD packet to send [09:33:46]OFD Sender: No OFD packet to send [09:33:51]OFD Sender: No OFD packet to send [09:33:52]accept exits with 9 [09:33:52]New connection [09:33:52]New thread 3066965348 created [09:33:52]Thread 3066821988 joined [09:33:52]Waiting for new connection... [09:33:52] Sock 9.Parse request [09:33:52]Sock 9.Check first char [09:33:52]Sock 9.First char is OK [09:33:52]request: POST /json_proto HTTP/1.0 [09:33:52]Method: POST [09:33:52]URL: /json_proto [09:33:52]Method is POST - this is cgi request [09:33:52]url: /json_proto [09:33:52]query_string will be loaded in cgi processing [09:33:52]execute_cgi json_proto POST (null) [09:33:52]execute_cgi path=json_proto method=POST [09:33:52]POST find Content-Length [09:33:52]Host: 172.17.44.195:8080 [09:33:52]Content-Length: 680 [09:33:52]Content-Type: application/json [09:33:52] [09:33:52]POST finish read [09:33:52]Found Content-Length = 680 [09:33:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962755", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:52]execute_script... [09:33:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962755", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:52]POST & json_proto [09:33:52]process_json_proto [09:33:52]json parsed OK: [09:33:52]protocol is kg_v1.0 [09:33:52]action value=close_receipt [09:33:52]process_action close_receipt [09:33:52]cmd_close_receipt [09:33:52]MH_GetDate [09:33:52]Write to MH i2c: F0 00 00 80 3C AB [09:33:52]Write i2c OK [09:33:52]MH_I2C_Read... [09:33:52]Read from MH i2c: F0 [09:33:52]MH_I2C_Read... [09:33:52]Read from MH i2c: F0 09 00 [09:33:52]MH_I2C_Read... [09:33:52]Read from MH i2c: F0 09 00 80 3C 00 84 CE 14 67 82 C9 CF 66 01 [09:33:52]GetLastDocTimeStamp 1729416782 [09:33:52]current date 1729416836 [09:33:52]FM_GetShiftState [09:33:52]SAM_PROTO_GetShiftState [09:33:52]wFMCommunicate request_size=4 [09:33:52]MH_SAM_APDU [09:33:52]CAPDU: 80 13 01 00 [09:33:52]Write to MH i2c: E2 08 00 81 3C 80 13 01 00 00 00 00 00 3A [09:33:52]Write i2c OK [09:33:52]MH_I2C_Read... [09:33:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:52]Read from MH i2c: E2 [09:33:52]MH_I2C_Read... [09:33:52]Read from MH i2c: E2 0E 00 [09:33:52]MH_I2C_Read... [09:33:52]Read from MH i2c: E2 0E 00 81 3C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 54 [09:33:52]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:33:52]wFMCommunicate OK [09:33:52]SAM_PROTO_GetShiftState done [09:33:52]FM_GetShiftState done [09:33:52]opened in 1729383750 [09:33:52]opened+sec_in_day 1729470150 [09:33:52]quantity*price = 200025 [09:33:52]sum+1 = 200026 [09:33:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 133 20.10.2024 09:33 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227285 ФПД: 26111084012947 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T093356&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227285&fm=26111084012947&tin=02508201610067®Number=0000000000091685&sum=200000 [09:33:53]StoreToDocumentArchive [09:33:53]shift 533 fd 227285 [09:33:53]save to /storage/0533/doc_00227285 [09:33:53]save last doc name /storage/0533/doc_00227285 to /storage/kkm_last_doc_name [09:33:53]save OK [09:33:53]Clear old archive folders... [09:33:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:33:53]tlvbuf is 0050F370 [09:33:53]SAM_PROTO_ClearQueue [09:33:53]wFMCommunicate request_size=4 [09:33:53]MH_SAM_APDU [09:33:53]CAPDU: 80 09 00 00 [09:33:53]Write to MH i2c: E2 08 00 8E 3C 80 09 00 00 00 00 00 00 3C [09:33:53]Write i2c OK [09:33:53]MH_I2C_Read... [09:33:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:33:53]Read from MH i2c: E2 [09:33:53]MH_I2C_Read... [09:33:53]Read from MH i2c: E2 03 00 [09:33:53]MH_I2C_Read... [09:33:53]Read from MH i2c: E2 03 00 8E 3C 00 90 00 3E [09:33:53]RAPDU: 90 00 [09:33:53]wFMCommunicate OK [09:33:53]SAM_PROTO_ClearQueue done [09:33:53]KKMCreateOFDPacket [09:33:53]OFDProtocolAddRootSTLVToBuf [09:33:53]FM_MakeSignedData [09:33:53]FM_MakeSignedData [09:33:53]SAM_PROTO_SignData [09:33:53]wFMCommunicate request_size=4 [09:33:53]MH_SAM_APDU [09:33:53]CAPDU: 80 0D 01 02 [09:33:53]Write to MH i2c: E2 08 00 8F 3C 80 0D 01 02 00 00 00 00 44 [09:33:53]Write i2c OK [09:33:53]MH_I2C_Read... [09:33:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:33:53]Read from MH i2c: E2 [09:33:53]MH_I2C_Read... [09:33:53]Read from MH i2c: E2 03 00 [09:33:53]MH_I2C_Read... [09:33:53]Read from MH i2c: E2 03 00 8F 3C 00 90 00 3F [09:33:53]RAPDU: 90 00 [09:33:53]wFMCommunicate OK [09:33:53]wFMCommunicate request_size=255 [09:33:53]MH_SAM_APDU [09:33:53]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 84 CE 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D5 77 03 00 35 04 06 00 17 BF 75 E3 [09:33:53]Write to MH i2c: E2 02 01 90 3C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 84 CE 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D5 77 03 00 35 04 06 00 17 BF 75 E3 00 00 A5 [09:33:53]Write i2c OK [09:33:53]MH_I2C_Read... [09:33:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:54]Read from MH i2c: E2 [09:33:54]MH_I2C_Read... [09:33:54]Read from MH i2c: E2 03 00 [09:33:54]MH_I2C_Read... [09:33:54]Read from MH i2c: E2 03 00 90 3C 00 90 00 40 [09:33:54]RAPDU: 90 00 [09:33:54]wFMCommunicate OK [09:33:54]wFMCommunicate request_size=7 [09:33:54]MH_SAM_APDU [09:33:54]CAPDU: 80 0D 02 02 02 25 93 [09:33:54]Write to MH i2c: E2 0A 00 91 3C 80 0D 02 02 02 00 25 93 00 00 03 [09:33:54]Write i2c OK [09:33:54]MH_I2C_Read... [09:33:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:54]Read from MH i2c: E2 [09:33:54]MH_I2C_Read... [09:33:54]Read from MH i2c: E2 03 00 [09:33:54]MH_I2C_Read... [09:33:54]Read from MH i2c: E2 03 00 91 3C 00 90 00 41 [09:33:54]RAPDU: 90 00 [09:33:54]wFMCommunicate OK [09:33:54]wFMCommunicate request_size=4 [09:33:54]MH_SAM_APDU [09:33:54]CAPDU: 80 0D 03 02 [09:33:54]Write to MH i2c: E2 08 00 92 3C 80 0D 03 02 00 00 00 00 49 [09:33:54]Write i2c OK [09:33:54]MH_I2C_Read... [09:33:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:33:54]Read from MH i2c: E2 [09:33:54]MH_I2C_Read... [09:33:54]Read from MH i2c: E2 0B 00 [09:33:54]MH_I2C_Read... [09:33:54]Read from MH i2c: E2 0B 00 92 3C 00 9E 22 9A F9 43 66 07 71 90 00 BE [09:33:54]RAPDU: 9E 22 9A F9 43 66 07 71 90 00 [09:33:54]wFMCommunicate OK [09:33:54]SAM_PROTO_SignData done [09:33:54]FM_MakeSignedData done [09:33:54]CreateOFDProtocolMessage [09:33:54]wFMCommunicate request_size=4 [09:33:54]MH_SAM_APDU [09:33:54]CAPDU: 80 11 00 00 [09:33:54]Write to MH i2c: E2 08 00 93 3C 80 11 00 00 00 00 00 00 49 [09:33:54]Write i2c OK [09:33:54]MH_I2C_Read... [09:33:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:54]Read from MH i2c: E2 [09:33:54]MH_I2C_Read... [09:33:54]Read from MH i2c: E2 17 00 [09:33:54]MH_I2C_Read... [09:33:54]Read from MH i2c: E2 17 00 93 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A0 [09:33:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:33:54]wFMCommunicate OK [09:33:54]CreateOFDProtocolMessage done [09:33:54]OFDSenderStorePacket 227285 [09:33:54]StoreOFDPacket docnum=227285 [09:33:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 6B 83 04 01 D0 64 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 84 CE 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D5 77 03 00 35 04 06 00 17 BF 75 E3 25 93 9E 22 9A F9 43 66 07 71 [09:33:54]CheckFolder [09:33:54]dirname=/storage/ofd_packets [09:33:54]CheckFolder done [09:33:54]ProducePacketName [09:33:54]name=ofd_packets/00227285 [09:33:54]NVStorageSaveData ofd_packets/00227285 [09:33:54]File name is /storage/ofd_packets/00227285 [09:33:54]Write 298 bytes [09:33:54]NVStorageSaveData done [09:33:54]OFDSenderStorePacket done [09:33:54]KKMCreateOFDPacket done [09:33:54]NVStorageSaveData kkm_last_timestamp [09:33:54]File name is /storage/kkm_last_timestamp [09:33:54]Write 4 bytes [09:33:54]NVStorageSaveData done [09:33:54]ExternCall_PrintAddStr [09:33:54]wPrintStart [09:33:54]Write to MH i2c: 01 00 00 94 3C D0 [09:33:54]Write i2c OK [09:33:54]MH_I2C_Read... [09:33:54]Read from MH i2c: 01 [09:33:54]MH_I2C_Read... [09:33:54]Read from MH i2c: 01 07 00 [09:33:54]MH_I2C_Read... [09:33:54]Read from MH i2c: 01 07 00 94 3C 00 00 00 00 00 FF 0F E5 [09:33:54]RasterBufferAndPrint [09:33:54]line Счет N : (1)1962755 [09:33:54]line ИНН: 02508201610067 [09:33:54]line Контрольно-Кассовый Чек [09:33:54]line ПРОДАЖА [09:33:54]line ТРК (МРК, ГНК) : 11 [09:33:54]line Товар: 2710194210 [09:33:54]line ДТ-К-5 [09:33:54]line 26.250 * 76.20 [09:33:54]line = 2000.25 [09:33:54]line НДС 12% НСП 1% [09:33:54]line > о реализуемом товаре [09:33:54]line ОКРУГЛЕНИЕ: -0.25 [09:33:54]line ИТОГО: 2000.00 [09:33:54]line Внесено: 2000.00 [09:33:54]line СДАЧА: 0.00 [09:33:54]line НСП 1% : 17.70 [09:33:54]line НДС 12% : 212.42 [09:33:54]line Наличными: 2000.00 [09:33:54]line Безнал.: 0.00 [09:33:54]line Место: АЗС № 133 "Партнер Нефть" [09:33:54]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:33:54]line СНО: Общий режим [09:33:54]line Чек 133 20.10.2024 09:33 [09:33:54]line Смена: 533 ФФД: 1.0 [09:33:54]line ЗНМ: 0300000091 [09:33:54]line РНМ: 0000000000091685 [09:33:54]line Версия ККМ: 001 [09:33:54]line ФМ: 0000000000871839 [09:33:54]line ФД: 227285 [09:33:54]line ФПД: 26111084012947 [09:33:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T093356&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227285&fm=26111084012947&tin=02508201610067®Number=0000000000091685&sum=200000 [09:33:54]OFD Sender: Processing packet 227285 [packets to send 38, broken 37] [09:33:54]ProducePacketName [09:33:54]name=ofd_packets/00227285 [09:33:54]OFD Sender: To server: pG, [09:33:54]CommunicateWithHost lk.salyk.kg:30040 [09:33:54]ConnectInit lk.salyk.kg [09:33:54]written 0, free lines is 4095 [09:33:54]Connected sock=10 [09:33:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 6B 83 04 01 D0 64 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 84 CE 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D5 77 03 00 35 04 06 00 17 BF 75 E3 25 93 9E 22 9A F9 43 66 07 71 [09:33:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 1B BD 47 00 61 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 33 39 10 04 04 00 D5 77 03 00 F4 03 04 00 84 79 14 67 B6 04 01 00 00 0B 98 B7 61 9D 4A 35 EC [09:33:55]CommunicateWithHost err = 0 [09:33:55]CheckOFDResponse [09:33:55]1017 (14) - 77093643461234 [09:33:55]1041 (16) - 0000000000871839 [09:33:55]1040 (4) - 227285 [09:33:55]1012 (4) - 20.10.2024 03:31 [09:33:55]1206 (1) - 0 [09:33:55]OFD Sender: Remove packet 227285 [09:33:55]ProducePacketName [09:33:55]name=ofd_packets/00227285 [09:33:55]NVStorageDeleteData [09:33:55]Write to MH i2c: 01 00 00 BE 3C FA [09:33:55]Write i2c OK [09:33:55]MH_I2C_Read... [09:33:55]Read from MH i2c: 01 [09:33:55]MH_I2C_Read... [09:33:55]Read from MH i2c: 01 07 00 [09:33:55]MH_I2C_Read... [09:33:55]Read from MH i2c: 01 07 00 BE 3C 00 00 00 00 00 FD 0C 0A [09:33:55]RasterBufferAndPrint [09:33:55]line [09:33:55]line [09:33:55]line [09:33:55]line [09:33:55]line [09:33:55]written 0, free lines is 3331 [09:33:55]process_action close_receipt done [09:33:55]requested_data is exist [09:33:55]produce_requested_data [09:33:55]requested_item fm.sn is exist - process it [09:33:55]wFMCommunicate request_size=4 [09:33:55]MH_SAM_APDU [09:33:55]CAPDU: 80 11 00 00 [09:33:55]Write to MH i2c: E2 08 00 C5 3C 80 11 00 00 00 00 00 00 7B [09:33:55]Write i2c OK [09:33:55]MH_I2C_Read... [09:33:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:55]Read from MH i2c: E2 [09:33:55]MH_I2C_Read... [09:33:55]Read from MH i2c: E2 17 00 [09:33:55]MH_I2C_Read... [09:33:55]Read from MH i2c: E2 17 00 C5 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D2 [09:33:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:33:55]wFMCommunicate OK [09:33:55]requested_item fd.num is exist - process it [09:33:55]SAM_PROTO_GetFieldsCounters [09:33:55]wFMCommunicate request_size=4 [09:33:55]MH_SAM_APDU [09:33:55]CAPDU: 80 13 00 00 [09:33:55]Write to MH i2c: E2 08 00 C6 3C 80 13 00 00 00 00 00 00 7E [09:33:55]Write i2c OK [09:33:55]MH_I2C_Read... [09:33:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:33:55]Read from MH i2c: E2 [09:33:55]MH_I2C_Read... [09:33:55]Read from MH i2c: E2 62 00 [09:33:55]MH_I2C_Read... [09:33:55]Read from MH i2c: E2 62 00 C6 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 D5 77 03 00 0E 04 04 00 15 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 9C [09:33:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 D5 77 03 00 0E 04 04 00 15 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 [09:33:55]wFMCommunicate OK [09:33:55]SAM_PROTO_GetFieldsCounters done [09:33:55]requested_item shift.num is exist - process it [09:33:55]requested_item shift.opened is exist - process it [09:33:55]req_shift_opened [09:33:55]FM_GetShiftState [09:33:55]SAM_PROTO_GetShiftState [09:33:55]wFMCommunicate request_size=4 [09:33:55]MH_SAM_APDU [09:33:55]CAPDU: 80 13 01 00 [09:33:55]Write to MH i2c: E2 08 00 C7 3C 80 13 01 00 00 00 00 00 80 [09:33:55]Write i2c OK [09:33:55]MH_I2C_Read... [09:33:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:55]Read from MH i2c: E2 [09:33:55]MH_I2C_Read... [09:33:55]Read from MH i2c: E2 0E 00 [09:33:55]MH_I2C_Read... [09:33:55]Read from MH i2c: E2 0E 00 C7 3C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 9A [09:33:55]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:33:55]wFMCommunicate OK [09:33:55]SAM_PROTO_GetShiftState done [09:33:55]FM_GetShiftState done [09:33:55]req_shift_opened done [09:33:55]requested_item shift.open_date is exist - process it [09:33:55]req_shift_open_date [09:33:55]req_shift_open_date done [09:33:55]produce_requested_data done [09:33:55]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227285,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [09:33:55]process_action_free close_receipt [09:33:55]json_value_free [09:33:55]json_value_free done [09:33:55]process_json_proto returns [09:33:55]Send response to host [09:33:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227285,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [09:33:55]free response buf [09:33:55]execute_script done [09:33:55]execute_script returns [09:33:55]free content buf [09:33:55]Sock 9.Close socket [09:33:55]Sock 9.Thread stoped [09:33:55]OFD Sender: No OFD packet to send [09:34:00]OFD Sender: No OFD packet to send [09:34:05]OFD Sender: No OFD packet to send [09:34:10]OFD Sender: No OFD packet to send [09:34:15]OFD Sender: No OFD packet to send [09:34:20]OFD Sender: No OFD packet to send [09:34:25]accept exits with 8 [09:34:25]New connection [09:34:25]New thread 3066821988 created [09:34:25]Thread 3066965348 joined [09:34:25]Waiting for new connection... [09:34:25] Sock 8.Parse request [09:34:25]Sock 8.Check first char [09:34:25]Sock 8.First char is OK [09:34:25]request: POST /json_proto HTTP/1.0 [09:34:25]Method: POST [09:34:25]URL: /json_proto [09:34:25]Method is POST - this is cgi request [09:34:25]url: /json_proto [09:34:25]query_string will be loaded in cgi processing [09:34:25]execute_cgi json_proto POST (null) [09:34:25]execute_cgi path=json_proto method=POST [09:34:25]POST find Content-Length [09:34:25]Host: 172.17.44.195:8080 [09:34:25]Content-Length: 680 [09:34:25]Content-Type: application/json [09:34:25] [09:34:25]POST finish read [09:34:25]Found Content-Length = 680 [09:34:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962756", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:34:25]execute_script... [09:34: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)1962756", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:34:25]POST & json_proto [09:34:25]process_json_proto [09:34:25]json parsed OK: [09:34:25]protocol is kg_v1.0 [09:34:25]action value=close_receipt [09:34:25]process_action close_receipt [09:34:25]cmd_close_receipt [09:34:25]MH_GetDate [09:34:25]Write to MH i2c: F0 00 00 C8 3C F3 [09:34:25]Write i2c OK [09:34:25]MH_I2C_Read... [09:34:25]Read from MH i2c: F0 [09:34:25]MH_I2C_Read... [09:34:25]Read from MH i2c: F0 09 00 [09:34:25]MH_I2C_Read... [09:34:25]Read from MH i2c: F0 09 00 C8 3C 00 A5 CE 14 67 82 C9 CF 66 6A [09:34:25]GetLastDocTimeStamp 1729416836 [09:34:25]current date 1729416869 [09:34:25]FM_GetShiftState [09:34:25]SAM_PROTO_GetShiftState [09:34:25]wFMCommunicate request_size=4 [09:34:25]MH_SAM_APDU [09:34:25]CAPDU: 80 13 01 00 [09:34:25]Write to MH i2c: E2 08 00 C9 3C 80 13 01 00 00 00 00 00 82 [09:34:25]Write i2c OK [09:34:25]MH_I2C_Read... [09:34:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:34:25]Read from MH i2c: E2 [09:34:25]MH_I2C_Read... [09:34:25]Read from MH i2c: E2 0E 00 [09:34:25]MH_I2C_Read... [09:34:25]Read from MH i2c: E2 0E 00 C9 3C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 9C [09:34:25]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:34:25]wFMCommunicate OK [09:34:25]SAM_PROTO_GetShiftState done [09:34:25]FM_GetShiftState done [09:34:25]opened in 1729383750 [09:34:25]opened+sec_in_day 1729470150 [09:34:25]quantity*price = 150037 [09:34:25]sum+1 = 150039 [09:34:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 134 20.10.2024 09:34 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227286 ФПД: 56245875116259 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T093429&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227286&fm=56245875116259&tin=02508201610067®Number=0000000000091685&sum=150000 [09:34:26]StoreToDocumentArchive [09:34:26]shift 533 fd 227286 [09:34:26]save to /storage/0533/doc_00227286 [09:34:26]save last doc name /storage/0533/doc_00227286 to /storage/kkm_last_doc_name [09:34:26]save OK [09:34:26]Clear old archive folders... [09:34:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:34:26]tlvbuf is 004EF550 [09:34:26]SAM_PROTO_ClearQueue [09:34:26]wFMCommunicate request_size=4 [09:34:26]MH_SAM_APDU [09:34:26]CAPDU: 80 09 00 00 [09:34:26]Write to MH i2c: E2 08 00 D6 3C 80 09 00 00 00 00 00 00 84 [09:34:26]Write i2c OK [09:34:26]MH_I2C_Read... [09:34:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:34:26]Read from MH i2c: E2 [09:34:26]MH_I2C_Read... [09:34:26]Read from MH i2c: E2 03 00 [09:34:26]MH_I2C_Read... [09:34:26]Read from MH i2c: E2 03 00 D6 3C 00 90 00 86 [09:34:26]RAPDU: 90 00 [09:34:26]wFMCommunicate OK [09:34:26]SAM_PROTO_ClearQueue done [09:34:26]KKMCreateOFDPacket [09:34:26]OFDProtocolAddRootSTLVToBuf [09:34:26]FM_MakeSignedData [09:34:26]FM_MakeSignedData [09:34:26]SAM_PROTO_SignData [09:34:26]wFMCommunicate request_size=4 [09:34:26]MH_SAM_APDU [09:34:26]CAPDU: 80 0D 01 02 [09:34:26]Write to MH i2c: E2 08 00 D7 3C 80 0D 01 02 00 00 00 00 8C [09:34:26]Write i2c OK [09:34:26]MH_I2C_Read... [09:34:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:34:26]Read from MH i2c: E2 [09:34:26]MH_I2C_Read... [09:34:26]Read from MH i2c: E2 03 00 [09:34:26]MH_I2C_Read... [09:34:26]Read from MH i2c: E2 03 00 D7 3C 00 90 00 87 [09:34:26]RAPDU: 90 00 [09:34:26]wFMCommunicate OK [09:34:26]wFMCommunicate request_size=255 [09:34:26]MH_SAM_APDU [09:34:26]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 A5 CE 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D6 77 03 00 35 04 06 00 33 27 C3 68 [09:34:26]Write to MH i2c: E2 02 01 D8 3C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 A5 CE 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D6 77 03 00 35 04 06 00 33 27 C3 68 00 00 F0 [09:34:26]Write i2c OK [09:34:26]MH_I2C_Read... [09:34:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:34:27]Read from MH i2c: E2 [09:34:27]MH_I2C_Read... [09:34:27]Read from MH i2c: E2 03 00 [09:34:27]MH_I2C_Read... [09:34:27]Read from MH i2c: E2 03 00 D8 3C 00 90 00 88 [09:34:27]RAPDU: 90 00 [09:34:27]wFMCommunicate OK [09:34:27]wFMCommunicate request_size=7 [09:34:27]MH_SAM_APDU [09:34:27]CAPDU: 80 0D 02 02 02 08 E3 [09:34:27]Write to MH i2c: E2 0A 00 D9 3C 80 0D 02 02 02 00 08 E3 00 00 7E [09:34:27]Write i2c OK [09:34:27]MH_I2C_Read... [09:34:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:34:27]Read from MH i2c: E2 [09:34:27]MH_I2C_Read... [09:34:27]Read from MH i2c: E2 03 00 [09:34:27]MH_I2C_Read... [09:34:27]Read from MH i2c: E2 03 00 D9 3C 00 90 00 89 [09:34:27]RAPDU: 90 00 [09:34:27]wFMCommunicate OK [09:34:27]wFMCommunicate request_size=4 [09:34:27]MH_SAM_APDU [09:34:27]CAPDU: 80 0D 03 02 [09:34:27]Write to MH i2c: E2 08 00 DA 3C 80 0D 03 02 00 00 00 00 91 [09:34:27]Write i2c OK [09:34:27]MH_I2C_Read... [09:34:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:34:27]Read from MH i2c: E2 [09:34:27]MH_I2C_Read... [09:34:27]Read from MH i2c: E2 0B 00 [09:34:27]MH_I2C_Read... [09:34:27]Read from MH i2c: E2 0B 00 DA 3C 00 63 41 F2 78 02 B7 2A C5 90 00 48 [09:34:27]RAPDU: 63 41 F2 78 02 B7 2A C5 90 00 [09:34:27]wFMCommunicate OK [09:34:27]SAM_PROTO_SignData done [09:34:27]FM_MakeSignedData done [09:34:27]CreateOFDProtocolMessage [09:34:27]wFMCommunicate request_size=4 [09:34:27]MH_SAM_APDU [09:34:27]CAPDU: 80 11 00 00 [09:34:27]Write to MH i2c: E2 08 00 DB 3C 80 11 00 00 00 00 00 00 91 [09:34:27]Write i2c OK [09:34:27]MH_I2C_Read... [09:34:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:34:27]Read from MH i2c: E2 [09:34:27]MH_I2C_Read... [09:34:27]Read from MH i2c: E2 17 00 [09:34:27]MH_I2C_Read... [09:34:27]Read from MH i2c: E2 17 00 DB 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E8 [09:34:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:34:27]wFMCommunicate OK [09:34:27]CreateOFDProtocolMessage done [09:34:27]OFDSenderStorePacket 227286 [09:34:27]StoreOFDPacket docnum=227286 [09:34:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 CD 73 04 01 2C BF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 A5 CE 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D6 77 03 00 35 04 06 00 33 27 C3 68 08 E3 63 41 F2 78 02 B7 2A C5 [09:34:27]CheckFolder [09:34:27]dirname=/storage/ofd_packets [09:34:27]CheckFolder done [09:34:27]ProducePacketName [09:34:27]name=ofd_packets/00227286 [09:34:27]NVStorageSaveData ofd_packets/00227286 [09:34:27]File name is /storage/ofd_packets/00227286 [09:34:27]Write 298 bytes [09:34:27]NVStorageSaveData done [09:34:27]OFDSenderStorePacket done [09:34:27]KKMCreateOFDPacket done [09:34:27]NVStorageSaveData kkm_last_timestamp [09:34:27]File name is /storage/kkm_last_timestamp [09:34:27]Write 4 bytes [09:34:27]NVStorageSaveData done [09:34:27]ExternCall_PrintAddStr [09:34:27]wPrintStart [09:34:27]Write to MH i2c: 01 00 00 DC 3C 18 [09:34:27]Write i2c OK [09:34:27]MH_I2C_Read... [09:34:27]Read from MH i2c: 01 [09:34:27]MH_I2C_Read... [09:34:27]Read from MH i2c: 01 07 00 [09:34:27]MH_I2C_Read... [09:34:27]Read from MH i2c: 01 07 00 DC 3C 00 00 00 00 00 FF 0F 2D [09:34:27]RasterBufferAndPrint [09:34:27]line Счет N : (1)1962756 [09:34:27]line ИНН: 02508201610067 [09:34:27]line Контрольно-Кассовый Чек [09:34:27]line ПРОДАЖА [09:34:27]line ТРК (МРК, ГНК) : 21 [09:34:27]line Товар: 2710194210 [09:34:27]line ДТ-К-5 [09:34:27]line 19.690 * 76.20 [09:34:27]line = 1500.38 [09:34:27]line НДС 12% НСП 1% [09:34:27]line > о реализуемом товаре [09:34:27]line ОКРУГЛЕНИЕ: -0.38 [09:34:27]line ИТОГО: 1500.00 [09:34:27]line Внесено: 1500.00 [09:34:27]line СДАЧА: 0.00 [09:34:27]line НСП 1% : 13.28 [09:34:27]line НДС 12% : 159.33 [09:34:27]line Наличными: 1500.00 [09:34:27]line Безнал.: 0.00 [09:34:27]line Место: АЗС № 133 "Партнер Нефть" [09:34:27]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:34:27]line СНО: Общий режим [09:34:27]line Чек 134 20.10.2024 09:34 [09:34:27]line Смена: 533 ФФД: 1.0 [09:34:27]line ЗНМ: 0300000091 [09:34:27]line РНМ: 0000000000091685 [09:34:27]line Версия ККМ: 001 [09:34:27]line ФМ: 0000000000871839 [09:34:27]line ФД: 227286 [09:34:27]line ФПД: 56245875116259 [09:34:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T093429&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227286&fm=56245875116259&tin=02508201610067®Number=0000000000091685&sum=150000 [09:34:27]OFD Sender: Processing packet 227286 [packets to send 38, broken 37] [09:34:27]ProducePacketName [09:34:27]name=ofd_packets/00227286 [09:34:27]OFD Sender: To server: pG, [09:34:27]CommunicateWithHost lk.salyk.kg:30040 [09:34:27]ConnectInit lk.salyk.kg [09:34:27]written 0, free lines is 4095 [09:34:27]Connected sock=9 [09:34:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 CD 73 04 01 2C BF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 A5 CE 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D6 77 03 00 35 04 06 00 33 27 C3 68 08 E3 63 41 F2 78 02 B7 2A C5 [09:34: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 33 39 4F 00 00 00 F2 04 47 00 85 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D6 77 03 00 F4 03 04 00 A4 79 14 67 B6 04 01 00 00 8B 85 3A 17 5A 70 65 1B [09:34:27]CommunicateWithHost err = 0 [09:34:27]CheckOFDResponse [09:34:27]1017 (14) - 77093643461234 [09:34:27]1041 (16) - 0000000000871839 [09:34:27]1040 (4) - 227286 [09:34:27]1012 (4) - 20.10.2024 03:31 [09:34:27]1206 (1) - 0 [09:34:27]OFD Sender: Remove packet 227286 [09:34:27]ProducePacketName [09:34:27]name=ofd_packets/00227286 [09:34:27]NVStorageDeleteData [09:34:27]Write to MH i2c: 01 00 00 06 3D 43 [09:34:27]Write i2c OK [09:34:27]MH_I2C_Read... [09:34:27]Read from MH i2c: 01 [09:34:27]MH_I2C_Read... [09:34:27]Read from MH i2c: 01 07 00 [09:34:27]MH_I2C_Read... [09:34:27]Read from MH i2c: 01 07 00 06 3D 00 00 00 00 00 1D 0D 74 [09:34:27]RasterBufferAndPrint [09:34:27]line [09:34:27]line [09:34:27]line [09:34:27]line [09:34:27]line [09:34:27]written 0, free lines is 3362 [09:34:27]process_action close_receipt done [09:34:27]requested_data is exist [09:34:27]produce_requested_data [09:34:27]requested_item fm.sn is exist - process it [09:34:27]wFMCommunicate request_size=4 [09:34:27]MH_SAM_APDU [09:34:27]CAPDU: 80 11 00 00 [09:34:27]Write to MH i2c: E2 08 00 0D 3D 80 11 00 00 00 00 00 00 C4 [09:34:27]Write i2c OK [09:34:27]MH_I2C_Read... [09:34:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:34:27]Read from MH i2c: E2 [09:34:27]MH_I2C_Read... [09:34:27]Read from MH i2c: E2 17 00 [09:34:27]MH_I2C_Read... [09:34:27]Read from MH i2c: E2 17 00 0D 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 1B [09:34:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:34:27]wFMCommunicate OK [09:34:27]requested_item fd.num is exist - process it [09:34:27]SAM_PROTO_GetFieldsCounters [09:34:27]wFMCommunicate request_size=4 [09:34:27]MH_SAM_APDU [09:34:27]CAPDU: 80 13 00 00 [09:34:27]Write to MH i2c: E2 08 00 0E 3D 80 13 00 00 00 00 00 00 C7 [09:34:27]Write i2c OK [09:34:27]MH_I2C_Read... [09:34:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:34:27]Read from MH i2c: E2 [09:34:27]MH_I2C_Read... [09:34:27]Read from MH i2c: E2 62 00 [09:34:27]MH_I2C_Read... [09:34:27]Read from MH i2c: E2 62 00 0E 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 D6 77 03 00 0E 04 04 00 15 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 E9 [09:34: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 D6 77 03 00 0E 04 04 00 15 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 [09:34:27]wFMCommunicate OK [09:34:27]SAM_PROTO_GetFieldsCounters done [09:34:27]requested_item shift.num is exist - process it [09:34:27]requested_item shift.opened is exist - process it [09:34:27]req_shift_opened [09:34:27]FM_GetShiftState [09:34:27]SAM_PROTO_GetShiftState [09:34:27]wFMCommunicate request_size=4 [09:34:27]MH_SAM_APDU [09:34:27]CAPDU: 80 13 01 00 [09:34:27]Write to MH i2c: E2 08 00 0F 3D 80 13 01 00 00 00 00 00 C9 [09:34:27]Write i2c OK [09:34:27]MH_I2C_Read... [09:34:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:34:27]Read from MH i2c: E2 [09:34:27]MH_I2C_Read... [09:34:27]Read from MH i2c: E2 0E 00 [09:34:27]MH_I2C_Read... [09:34:27]Read from MH i2c: E2 0E 00 0F 3D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 E3 [09:34:27]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:34:27]wFMCommunicate OK [09:34:27]SAM_PROTO_GetShiftState done [09:34:27]FM_GetShiftState done [09:34:27]req_shift_opened done [09:34:27]requested_item shift.open_date is exist - process it [09:34:27]req_shift_open_date [09:34:27]req_shift_open_date done [09:34:27]produce_requested_data done [09:34:27]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227286,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [09:34:27]process_action_free close_receipt [09:34:27]json_value_free [09:34:27]json_value_free done [09:34:27]process_json_proto returns [09:34:27]Send response to host [09:34:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227286,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [09:34:27]free response buf [09:34:27]execute_script done [09:34:27]execute_script returns [09:34:27]free content buf [09:34:27]Sock 8.Close socket [09:34:27]Sock 8.Thread stoped [09:34:27]OFD Sender: No OFD packet to send [09:34:33]OFD Sender: No OFD packet to send [09:34:38]OFD Sender: No OFD packet to send [09:34:38]accept exits with 10 [09:34:38]New connection [09:34:38]New thread 3066965348 created [09:34:38]Thread 3066821988 joined [09:34:38]Waiting for new connection... [09:34:38] Sock 10.Parse request [09:34:38]Sock 10.Check first char [09:34:38]Sock 10.First char is OK [09:34:38]request: POST /json_proto HTTP/1.0 [09:34:38]Method: POST [09:34:38]URL: /json_proto [09:34:38]Method is POST - this is cgi request [09:34:38]url: /json_proto [09:34:38]query_string will be loaded in cgi processing [09:34:38]execute_cgi json_proto POST (null) [09:34:38]execute_cgi path=json_proto method=POST [09:34:38]POST find Content-Length [09:34:38]Host: 172.17.44.195:8080 [09:34:38]Content-Length: 621 [09:34:38]Content-Type: application/json [09:34:38] [09:34:38]POST finish read [09:34:38]Found Content-Length = 621 [09:34:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962757", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:34:38]execute_script... [09:34: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)1962757", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:34:38]POST & json_proto [09:34:38]process_json_proto [09:34:38]json parsed OK: [09:34:38]protocol is kg_v1.0 [09:34:38]action value=close_receipt [09:34:38]process_action close_receipt [09:34:38]cmd_close_receipt [09:34:38]MH_GetDate [09:34:38]Write to MH i2c: F0 00 00 10 3D 3C [09:34:38]Write i2c OK [09:34:38]MH_I2C_Read... [09:34:38]Read from MH i2c: F0 [09:34:38]MH_I2C_Read... [09:34:38]Read from MH i2c: F0 09 00 [09:34:38]MH_I2C_Read... [09:34:38]Read from MH i2c: F0 09 00 10 3D 00 B2 CE 14 67 82 C9 CF 66 C0 [09:34:38]GetLastDocTimeStamp 1729416869 [09:34:38]current date 1729416882 [09:34:38]FM_GetShiftState [09:34:38]SAM_PROTO_GetShiftState [09:34:38]wFMCommunicate request_size=4 [09:34:38]MH_SAM_APDU [09:34:38]CAPDU: 80 13 01 00 [09:34:38]Write to MH i2c: E2 08 00 11 3D 80 13 01 00 00 00 00 00 CB [09:34:38]Write i2c OK [09:34:38]MH_I2C_Read... [09:34:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:34:38]Read from MH i2c: E2 [09:34:38]MH_I2C_Read... [09:34:38]Read from MH i2c: E2 0E 00 [09:34:38]MH_I2C_Read... [09:34:38]Read from MH i2c: E2 0E 00 11 3D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 E5 [09:34:38]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:34:38]wFMCommunicate OK [09:34:38]SAM_PROTO_GetShiftState done [09:34:38]FM_GetShiftState done [09:34:38]opened in 1729383750 [09:34:38]opened+sec_in_day 1729470150 [09:34:38]quantity*price = 50000 [09:34:38]sum+1 = 50001 [09:34:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 135 20.10.2024 09:34 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227287 ФПД: 11994617615464 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T093442&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227287&fm=11994617615464&tin=02508201610067®Number=0000000000091685&sum=50000 [09:34:39]StoreToDocumentArchive [09:34:39]shift 533 fd 227287 [09:34:39]save to /storage/0533/doc_00227287 [09:34:39]save last doc name /storage/0533/doc_00227287 to /storage/kkm_last_doc_name [09:34:39]save OK [09:34:39]Clear old archive folders... [09:34:39]ProcessDocumentItem done err = 0, tmpTLVsize=244 [09:34:39]tlvbuf is B6DAB1F0 [09:34:39]SAM_PROTO_ClearQueue [09:34:39]wFMCommunicate request_size=4 [09:34:39]MH_SAM_APDU [09:34:39]CAPDU: 80 09 00 00 [09:34:39]Write to MH i2c: E2 08 00 1E 3D 80 09 00 00 00 00 00 00 CD [09:34:39]Write i2c OK [09:34:39]MH_I2C_Read... [09:34:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:34:39]Read from MH i2c: E2 [09:34:39]MH_I2C_Read... [09:34:39]Read from MH i2c: E2 03 00 [09:34:39]MH_I2C_Read... [09:34:39]Read from MH i2c: E2 03 00 1E 3D 00 90 00 CF [09:34:39]RAPDU: 90 00 [09:34:39]wFMCommunicate OK [09:34:39]SAM_PROTO_ClearQueue done [09:34:39]KKMCreateOFDPacket [09:34:39]OFDProtocolAddRootSTLVToBuf [09:34:39]FM_MakeSignedData [09:34:39]FM_MakeSignedData [09:34:39]SAM_PROTO_SignData [09:34:39]wFMCommunicate request_size=4 [09:34:39]MH_SAM_APDU [09:34:39]CAPDU: 80 0D 01 02 [09:34:39]Write to MH i2c: E2 08 00 1F 3D 80 0D 01 02 00 00 00 00 D5 [09:34:39]Write i2c OK [09:34:39]MH_I2C_Read... [09:34:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:34:39]Read from MH i2c: E2 [09:34:39]MH_I2C_Read... [09:34:39]Read from MH i2c: E2 03 00 [09:34:39]MH_I2C_Read... [09:34:39]Read from MH i2c: E2 03 00 1F 3D 00 90 00 D0 [09:34:39]RAPDU: 90 00 [09:34:39]wFMCommunicate OK [09:34:39]wFMCommunicate request_size=253 [09:34:39]MH_SAM_APDU [09:34:39]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 B2 CE 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D7 77 03 00 35 04 06 00 0A E8 B6 EC 14 68 [09:34:39]Write to MH i2c: E2 00 01 20 3D 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 B2 CE 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D7 77 03 00 35 04 06 00 0A E8 B6 EC 14 68 00 00 D1 [09:34:39]Write i2c OK [09:34:39]MH_I2C_Read... [09:34:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:34:40]Read from MH i2c: E2 [09:34:40]MH_I2C_Read... [09:34:40]Read from MH i2c: E2 03 00 [09:34:40]MH_I2C_Read... [09:34:40]Read from MH i2c: E2 03 00 20 3D 00 90 00 D1 [09:34:40]RAPDU: 90 00 [09:34:40]wFMCommunicate OK [09:34:40]wFMCommunicate request_size=4 [09:34:40]MH_SAM_APDU [09:34:40]CAPDU: 80 0D 03 02 [09:34:40]Write to MH i2c: E2 08 00 21 3D 80 0D 03 02 00 00 00 00 D9 [09:34:40]Write i2c OK [09:34:40]MH_I2C_Read... [09:34:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:34:40]Read from MH i2c: E2 [09:34:40]MH_I2C_Read... [09:34:40]Read from MH i2c: E2 0B 00 [09:34:40]MH_I2C_Read... [09:34:40]Read from MH i2c: E2 0B 00 21 3D 00 3F 82 E5 2D 44 70 49 D5 90 00 7F [09:34:40]RAPDU: 3F 82 E5 2D 44 70 49 D5 90 00 [09:34:40]wFMCommunicate OK [09:34:40]SAM_PROTO_SignData done [09:34:40]FM_MakeSignedData done [09:34:40]CreateOFDProtocolMessage [09:34:40]wFMCommunicate request_size=4 [09:34:40]MH_SAM_APDU [09:34:40]CAPDU: 80 11 00 00 [09:34:40]Write to MH i2c: E2 08 00 22 3D 80 11 00 00 00 00 00 00 D9 [09:34:40]Write i2c OK [09:34:40]MH_I2C_Read... [09:34:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:34:40]Read from MH i2c: E2 [09:34:40]MH_I2C_Read... [09:34:40]Read from MH i2c: E2 17 00 [09:34:40]MH_I2C_Read... [09:34:40]Read from MH i2c: E2 17 00 22 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 30 [09:34:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:34:40]wFMCommunicate OK [09:34:40]CreateOFDProtocolMessage done [09:34:40]OFDSenderStorePacket 227287 [09:34:40]StoreOFDPacket docnum=227287 [09:34:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 0C 98 00 01 34 54 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 B2 CE 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D7 77 03 00 35 04 06 00 0A E8 B6 EC 14 68 3F 82 E5 2D 44 70 49 D5 [09:34:40]CheckFolder [09:34:40]dirname=/storage/ofd_packets [09:34:40]CheckFolder done [09:34:40]ProducePacketName [09:34:40]name=ofd_packets/00227287 [09:34:40]NVStorageSaveData ofd_packets/00227287 [09:34:40]File name is /storage/ofd_packets/00227287 [09:34:40]Write 294 bytes [09:34:40]NVStorageSaveData done [09:34:40]OFDSenderStorePacket done [09:34:40]KKMCreateOFDPacket done [09:34:40]NVStorageSaveData kkm_last_timestamp [09:34:40]File name is /storage/kkm_last_timestamp [09:34:40]Write 4 bytes [09:34:40]NVStorageSaveData done [09:34:40]ExternCall_PrintAddStr [09:34:40]wPrintStart [09:34:40]Write to MH i2c: 01 00 00 23 3D 60 [09:34:40]Write i2c OK [09:34:40]MH_I2C_Read... [09:34:40]Read from MH i2c: 01 [09:34:40]MH_I2C_Read... [09:34:40]Read from MH i2c: 01 07 00 [09:34:40]MH_I2C_Read... [09:34:40]Read from MH i2c: 01 07 00 23 3D 00 00 00 00 00 FF 0F 75 [09:34:40]RasterBufferAndPrint [09:34:40]line Счет N : (1)1962757 [09:34:40]line ИНН: 02508201610067 [09:34:40]line Контрольно-Кассовый Чек [09:34:40]line ПРОДАЖА [09:34:40]line ТРК (МРК, ГНК) : 52 [09:34:40]line Товар: 2710124130 [09:34:40]line SU-92 [09:34:40]line 7.310 * 68.40 [09:34:40]line = 500.00 [09:34:40]line НДС 12% НСП 1% [09:34:40]line > о реализуемом товаре [09:34:40]line ИТОГО: 500.00 [09:34:40]line НСП 1% : 4.42 [09:34:40]line НДС 12% : 53.10 [09:34:40]line Наличными: 500.00 [09:34:40]line Безнал.: 0.00 [09:34:40]line Место: АЗС № 133 "Партнер Нефть" [09:34:40]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:34:40]line СНО: Общий режим [09:34:40]line Чек 135 20.10.2024 09:34 [09:34:40]line Смена: 533 ФФД: 1.0 [09:34:40]line ЗНМ: 0300000091 [09:34:40]line РНМ: 0000000000091685 [09:34:40]line Версия ККМ: 001 [09:34:40]line ФМ: 0000000000871839 [09:34:40]line ФД: 227287 [09:34:40]line ФПД: 11994617615464 [09:34:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T093442&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227287&fm=11994617615464&tin=02508201610067®Number=0000000000091685&sum=50000 [09:34:40]written 0, free lines is 4095 [09:34:40]OFD Sender: Processing packet 227287 [packets to send 38, broken 37] [09:34:40]ProducePacketName [09:34:40]name=ofd_packets/00227287 [09:34:40]OFD Sender: To server: pG, [09:34:40]CommunicateWithHost lk.salyk.kg:30040 [09:34:40]ConnectInit lk.salyk.kg [09:34:40]Connected sock=9 [09:34: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 33 39 08 01 00 00 0C 98 00 01 34 54 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 B2 CE 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D7 77 03 00 35 04 06 00 0A E8 B6 EC 14 68 3F 82 E5 2D 44 70 49 D5 [09:34: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 33 39 4F 00 00 00 FA B4 47 00 F4 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 33 39 10 04 04 00 D7 77 03 00 F4 03 04 00 B1 79 14 67 B6 04 01 00 00 47 FD B4 14 3B 29 1E BE [09:34:40]CommunicateWithHost err = 0 [09:34:40]CheckOFDResponse [09:34:40]1017 (14) - 77093643461234 [09:34:40]1041 (16) - 0000000000871839 [09:34:40]1040 (4) - 227287 [09:34:40]1012 (4) - 20.10.2024 03:32 [09:34:40]1206 (1) - 0 [09:34:40]OFD Sender: Remove packet 227287 [09:34:40]ProducePacketName [09:34:40]name=ofd_packets/00227287 [09:34:40]NVStorageDeleteData [09:34:40]Write to MH i2c: 01 00 00 4A 3D 87 [09:34:40]Write i2c OK [09:34:40]MH_I2C_Read... [09:34:40]Read from MH i2c: 01 [09:34:40]MH_I2C_Read... [09:34:40]Read from MH i2c: 01 07 00 [09:34:40]MH_I2C_Read... [09:34:40]Read from MH i2c: 01 07 00 4A 3D 00 00 00 00 00 3D 0D D8 [09:34:40]RasterBufferAndPrint [09:34:40]line [09:34:40]line [09:34:40]line [09:34:40]line [09:34:40]line [09:34:40]written 0, free lines is 3398 [09:34:40]process_action close_receipt done [09:34:40]requested_data is exist [09:34:40]produce_requested_data [09:34:40]requested_item fm.sn is exist - process it [09:34:40]wFMCommunicate request_size=4 [09:34:40]MH_SAM_APDU [09:34:40]CAPDU: 80 11 00 00 [09:34:40]Write to MH i2c: E2 08 00 51 3D 80 11 00 00 00 00 00 00 08 [09:34:40]Write i2c OK [09:34:40]MH_I2C_Read... [09:34:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:34:40]Read from MH i2c: E2 [09:34:40]MH_I2C_Read... [09:34:40]Read from MH i2c: E2 17 00 [09:34:40]MH_I2C_Read... [09:34:40]Read from MH i2c: E2 17 00 51 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 5F [09:34:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:34:40]wFMCommunicate OK [09:34:40]requested_item fd.num is exist - process it [09:34:40]SAM_PROTO_GetFieldsCounters [09:34:40]wFMCommunicate request_size=4 [09:34:40]MH_SAM_APDU [09:34:40]CAPDU: 80 13 00 00 [09:34:40]Write to MH i2c: E2 08 00 52 3D 80 13 00 00 00 00 00 00 0B [09:34:40]Write i2c OK [09:34:40]MH_I2C_Read... [09:34:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:34:40]Read from MH i2c: E2 [09:34:40]MH_I2C_Read... [09:34:40]Read from MH i2c: E2 62 00 [09:34:40]MH_I2C_Read... [09:34:40]Read from MH i2c: E2 62 00 52 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 D7 77 03 00 0E 04 04 00 15 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 31 [09:34: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 D7 77 03 00 0E 04 04 00 15 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 [09:34:41]wFMCommunicate OK [09:34:41]SAM_PROTO_GetFieldsCounters done [09:34:41]requested_item shift.num is exist - process it [09:34:41]requested_item shift.opened is exist - process it [09:34:41]req_shift_opened [09:34:41]FM_GetShiftState [09:34:41]SAM_PROTO_GetShiftState [09:34:41]wFMCommunicate request_size=4 [09:34:41]MH_SAM_APDU [09:34:41]CAPDU: 80 13 01 00 [09:34:41]Write to MH i2c: E2 08 00 53 3D 80 13 01 00 00 00 00 00 0D [09:34:41]Write i2c OK [09:34:41]MH_I2C_Read... [09:34:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:34:41]Read from MH i2c: E2 [09:34:41]MH_I2C_Read... [09:34:41]Read from MH i2c: E2 0E 00 [09:34:41]MH_I2C_Read... [09:34:41]Read from MH i2c: E2 0E 00 53 3D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 27 [09:34:41]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:34:41]wFMCommunicate OK [09:34:41]SAM_PROTO_GetShiftState done [09:34:41]FM_GetShiftState done [09:34:41]req_shift_opened done [09:34:41]requested_item shift.open_date is exist - process it [09:34:41]req_shift_open_date [09:34:41]req_shift_open_date done [09:34:41]produce_requested_data done [09:34:41]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227287,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [09:34:41]process_action_free close_receipt [09:34:41]json_value_free [09:34:41]json_value_free done [09:34:41]process_json_proto returns [09:34:41]Send response to host [09:34:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227287,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [09:34:41]free response buf [09:34:41]execute_script done [09:34:41]execute_script returns [09:34:41]free content buf [09:34:41]Sock 10.Close socket [09:34:41]Sock 10.Thread stoped [09:34:41]OFD Sender: No OFD packet to send [09:34:46]OFD Sender: No OFD packet to send [09:34:51]OFD Sender: No OFD packet to send [09:34:56]OFD Sender: No OFD packet to send [09:35:01]OFD Sender: No OFD packet to send [09:35:06]OFD Sender: No OFD packet to send [09:35:11]OFD Sender: No OFD packet to send [09:35:16]OFD Sender: No OFD packet to send [09:35:21]OFD Sender: No OFD packet to send [09:35:26]OFD Sender: No OFD packet to send [09:35:31]OFD Sender: No OFD packet to send [09:35:36]OFD Sender: No OFD packet to send [09:35:41]OFD Sender: No OFD packet to send [09:35:46]OFD Sender: No OFD packet to send [09:35:51]OFD Sender: No OFD packet to send [09:35:56]OFD Sender: No OFD packet to send [09:36:01]OFD Sender: No OFD packet to send [09:36:06]OFD Sender: No OFD packet to send [09:36:11]OFD Sender: No OFD packet to send [09:36:16]OFD Sender: No OFD packet to send [09:36:21]OFD Sender: No OFD packet to send [09:36:23]accept exits with 8 [09:36:23]New connection [09:36:23]New thread 3066821988 created [09:36:23]Thread 3066965348 joined [09:36:23]Waiting for new connection... [09:36:23] Sock 8.Parse request [09:36:23]Sock 8.Check first char [09:36:23]Sock 8.First char is OK [09:36:23]request: POST /json_proto HTTP/1.0 [09:36:23]Method: POST [09:36:23]URL: /json_proto [09:36:23]Method is POST - this is cgi request [09:36:23]url: /json_proto [09:36:23]query_string will be loaded in cgi processing [09:36:23]execute_cgi json_proto POST (null) [09:36:23]execute_cgi path=json_proto method=POST [09:36:23]POST find Content-Length [09:36:23]Host: 172.17.44.195:8080 [09:36:23]Content-Length: 675 [09:36:23]Content-Type: application/json [09:36:23] [09:36:23]POST finish read [09:36:23]Found Content-Length = 675 [09:36:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962758", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:23]execute_script... [09:36:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962758", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:23]POST & json_proto [09:36:23]process_json_proto [09:36:23]json parsed OK: [09:36:23]protocol is kg_v1.0 [09:36:23]action value=close_receipt [09:36:23]process_action close_receipt [09:36:23]cmd_close_receipt [09:36:23]MH_GetDate [09:36:23]Write to MH i2c: F0 00 00 54 3D 80 [09:36:23]Write i2c OK [09:36:23]MH_I2C_Read... [09:36:23]Read from MH i2c: F0 [09:36:23]MH_I2C_Read... [09:36:23]Read from MH i2c: F0 09 00 [09:36:23]MH_I2C_Read... [09:36:23]Read from MH i2c: F0 09 00 54 3D 00 1B CF 14 67 82 C9 CF 66 6E [09:36:23]GetLastDocTimeStamp 1729416882 [09:36:23]current date 1729416987 [09:36:23]FM_GetShiftState [09:36:23]SAM_PROTO_GetShiftState [09:36:23]wFMCommunicate request_size=4 [09:36:23]MH_SAM_APDU [09:36:23]CAPDU: 80 13 01 00 [09:36:23]Write to MH i2c: E2 08 00 55 3D 80 13 01 00 00 00 00 00 0F [09:36:23]Write i2c OK [09:36:23]MH_I2C_Read... [09:36:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:23]Read from MH i2c: E2 [09:36:23]MH_I2C_Read... [09:36:23]Read from MH i2c: E2 0E 00 [09:36:23]MH_I2C_Read... [09:36:23]Read from MH i2c: E2 0E 00 55 3D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 29 [09:36:23]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:36:23]wFMCommunicate OK [09:36:23]SAM_PROTO_GetShiftState done [09:36:23]FM_GetShiftState done [09:36:23]opened in 1729383750 [09:36:23]opened+sec_in_day 1729470150 [09:36:23]quantity*price = 40005 [09:36:23]sum+1 = 40006 [09:36:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 136 20.10.2024 09:36 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227288 ФПД: 29058825326869 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T093627&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227288&fm=29058825326869&tin=02508201610067®Number=0000000000091685&sum=40000 [09:36:24]StoreToDocumentArchive [09:36:24]shift 533 fd 227288 [09:36:24]save to /storage/0533/doc_00227288 [09:36:24]save last doc name /storage/0533/doc_00227288 to /storage/kkm_last_doc_name [09:36:24]save OK [09:36:24]Clear old archive folders... [09:36:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:36:24]tlvbuf is B6DAB690 [09:36:24]SAM_PROTO_ClearQueue [09:36:24]wFMCommunicate request_size=4 [09:36:24]MH_SAM_APDU [09:36:24]CAPDU: 80 09 00 00 [09:36:24]Write to MH i2c: E2 08 00 62 3D 80 09 00 00 00 00 00 00 11 [09:36:24]Write i2c OK [09:36:24]MH_I2C_Read... [09:36:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:36:24]Read from MH i2c: E2 [09:36:24]MH_I2C_Read... [09:36:24]Read from MH i2c: E2 03 00 [09:36:24]MH_I2C_Read... [09:36:24]Read from MH i2c: E2 03 00 62 3D 00 90 00 13 [09:36:24]RAPDU: 90 00 [09:36:24]wFMCommunicate OK [09:36:24]SAM_PROTO_ClearQueue done [09:36:24]KKMCreateOFDPacket [09:36:24]OFDProtocolAddRootSTLVToBuf [09:36:24]FM_MakeSignedData [09:36:24]FM_MakeSignedData [09:36:24]SAM_PROTO_SignData [09:36:24]wFMCommunicate request_size=4 [09:36:24]MH_SAM_APDU [09:36:24]CAPDU: 80 0D 01 02 [09:36:24]Write to MH i2c: E2 08 00 63 3D 80 0D 01 02 00 00 00 00 19 [09:36:24]Write i2c OK [09:36:24]MH_I2C_Read... [09:36:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:36:24]Read from MH i2c: E2 [09:36:24]MH_I2C_Read... [09:36:24]Read from MH i2c: E2 03 00 [09:36:24]MH_I2C_Read... [09:36:24]Read from MH i2c: E2 03 00 63 3D 00 90 00 14 [09:36:24]RAPDU: 90 00 [09:36:24]wFMCommunicate OK [09:36:24]wFMCommunicate request_size=255 [09:36:24]MH_SAM_APDU [09:36: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 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 1B CF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D8 77 03 00 35 04 06 00 1A 6D C8 F6 [09:36:24]Write to MH i2c: E2 02 01 64 3D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 1B CF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D8 77 03 00 35 04 06 00 1A 6D C8 F6 00 00 34 [09:36:24]Write i2c OK [09:36:24]MH_I2C_Read... [09:36:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:25]Read from MH i2c: E2 [09:36:25]MH_I2C_Read... [09:36:25]Read from MH i2c: E2 03 00 [09:36:25]MH_I2C_Read... [09:36:25]Read from MH i2c: E2 03 00 64 3D 00 90 00 15 [09:36:25]RAPDU: 90 00 [09:36:25]wFMCommunicate OK [09:36:25]wFMCommunicate request_size=7 [09:36:25]MH_SAM_APDU [09:36:25]CAPDU: 80 0D 02 02 02 11 15 [09:36:25]Write to MH i2c: E2 0A 00 65 3D 80 0D 02 02 02 00 11 15 00 00 46 [09:36:25]Write i2c OK [09:36:25]MH_I2C_Read... [09:36:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:25]Read from MH i2c: E2 [09:36:25]MH_I2C_Read... [09:36:25]Read from MH i2c: E2 03 00 [09:36:25]MH_I2C_Read... [09:36:25]Read from MH i2c: E2 03 00 65 3D 00 90 00 16 [09:36:25]RAPDU: 90 00 [09:36:25]wFMCommunicate OK [09:36:25]wFMCommunicate request_size=4 [09:36:25]MH_SAM_APDU [09:36:25]CAPDU: 80 0D 03 02 [09:36:25]Write to MH i2c: E2 08 00 66 3D 80 0D 03 02 00 00 00 00 1E [09:36:25]Write i2c OK [09:36:25]MH_I2C_Read... [09:36:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:36:25]Read from MH i2c: E2 [09:36:25]MH_I2C_Read... [09:36:25]Read from MH i2c: E2 0B 00 [09:36:25]MH_I2C_Read... [09:36:25]Read from MH i2c: E2 0B 00 66 3D 00 44 59 4D B1 83 A9 0B 8D 90 00 7E [09:36:25]RAPDU: 44 59 4D B1 83 A9 0B 8D 90 00 [09:36:25]wFMCommunicate OK [09:36:25]SAM_PROTO_SignData done [09:36:25]FM_MakeSignedData done [09:36:25]CreateOFDProtocolMessage [09:36:25]wFMCommunicate request_size=4 [09:36:25]MH_SAM_APDU [09:36:25]CAPDU: 80 11 00 00 [09:36:25]Write to MH i2c: E2 08 00 67 3D 80 11 00 00 00 00 00 00 1E [09:36:25]Write i2c OK [09:36:25]MH_I2C_Read... [09:36:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:25]Read from MH i2c: E2 [09:36:25]MH_I2C_Read... [09:36:25]Read from MH i2c: E2 17 00 [09:36:25]MH_I2C_Read... [09:36:25]Read from MH i2c: E2 17 00 67 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 75 [09:36:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:36:25]wFMCommunicate OK [09:36:25]CreateOFDProtocolMessage done [09:36:25]OFDSenderStorePacket 227288 [09:36:25]StoreOFDPacket docnum=227288 [09:36:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 6E B6 04 01 5C B5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 1B CF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D8 77 03 00 35 04 06 00 1A 6D C8 F6 11 15 44 59 4D B1 83 A9 0B 8D [09:36:25]CheckFolder [09:36:25]dirname=/storage/ofd_packets [09:36:25]CheckFolder done [09:36:25]ProducePacketName [09:36:25]name=ofd_packets/00227288 [09:36:25]NVStorageSaveData ofd_packets/00227288 [09:36:25]File name is /storage/ofd_packets/00227288 [09:36:25]Write 298 bytes [09:36:25]NVStorageSaveData done [09:36:25]OFDSenderStorePacket done [09:36:25]KKMCreateOFDPacket done [09:36:25]NVStorageSaveData kkm_last_timestamp [09:36:25]File name is /storage/kkm_last_timestamp [09:36:25]Write 4 bytes [09:36:25]NVStorageSaveData done [09:36:25]ExternCall_PrintAddStr [09:36:25]wPrintStart [09:36:25]Write to MH i2c: 01 00 00 68 3D A5 [09:36:25]Write i2c OK [09:36:25]MH_I2C_Read... [09:36:25]Read from MH i2c: 01 [09:36:25]MH_I2C_Read... [09:36:25]Read from MH i2c: 01 07 00 [09:36:25]MH_I2C_Read... [09:36:25]Read from MH i2c: 01 07 00 68 3D 00 00 00 00 00 FF 0F BA [09:36:25]RasterBufferAndPrint [09:36:25]line Счет N : (1)1962758 [09:36:25]line ИНН: 02508201610067 [09:36:25]line Контрольно-Кассовый Чек [09:36:25]line ПРОДАЖА [09:36:25]line ТРК (МРК, ГНК) : 31 [09:36:25]line Товар: 2710194210 [09:36:25]line ДТ-К-5 [09:36:25]line 5.250 * 76.20 [09:36:25]line = 400.05 [09:36:25]line НДС 12% НСП 1% [09:36:25]line > о реализуемом товаре [09:36:25]line ОКРУГЛЕНИЕ: -0.05 [09:36:25]line ИТОГО: 400.00 [09:36:25]line Внесено: 400.00 [09:36:25]line СДАЧА: 0.00 [09:36:25]line НСП 1% : 3.54 [09:36:25]line НДС 12% : 42.48 [09:36:25]line Наличными: 400.00 [09:36:25]line Безнал.: 0.00 [09:36:25]line Место: АЗС № 133 "Партнер Нефть" [09:36:25]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:36:25]line СНО: Общий режим [09:36:25]line Чек 136 20.10.2024 09:36 [09:36:25]line Смена: 533 ФФД: 1.0 [09:36:25]line ЗНМ: 0300000091 [09:36:25]line РНМ: 0000000000091685 [09:36:25]line Версия ККМ: 001 [09:36:25]line ФМ: 0000000000871839 [09:36:25]line ФД: 227288 [09:36:25]line ФПД: 29058825326869 [09:36:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T093627&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227288&fm=29058825326869&tin=02508201610067®Number=0000000000091685&sum=40000 [09:36:25]OFD Sender: Processing packet 227288 [packets to send 38, broken 37] [09:36:25]ProducePacketName [09:36:25]name=ofd_packets/00227288 [09:36:25]OFD Sender: To server: pG, [09:36:25]CommunicateWithHost lk.salyk.kg:30040 [09:36:25]ConnectInit lk.salyk.kg [09:36:25]written 0, free lines is 4095 [09:36:25]Connected sock=10 [09:36:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 6E B6 04 01 5C B5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 1B CF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D8 77 03 00 35 04 06 00 1A 6D C8 F6 11 15 44 59 4D B1 83 A9 0B 8D [09:36:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 6A 8B 47 00 A9 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D8 77 03 00 F4 03 04 00 1B 7A 14 67 B6 04 01 00 00 66 1E 96 EF 6F 07 65 AB [09:36:25]CommunicateWithHost err = 0 [09:36:25]CheckOFDResponse [09:36:25]1017 (14) - 77093643461234 [09:36:25]1041 (16) - 0000000000871839 [09:36:25]1040 (4) - 227288 [09:36:25]1012 (4) - 20.10.2024 03:33 [09:36:25]1206 (1) - 0 [09:36:25]OFD Sender: Remove packet 227288 [09:36:25]ProducePacketName [09:36:25]name=ofd_packets/00227288 [09:36:25]NVStorageDeleteData [09:36:26]Write to MH i2c: 01 00 00 92 3D CF [09:36:26]Write i2c OK [09:36:26]MH_I2C_Read... [09:36:26]Read from MH i2c: 01 [09:36:26]MH_I2C_Read... [09:36:26]Read from MH i2c: 01 07 00 [09:36:26]MH_I2C_Read... [09:36:26]Read from MH i2c: 01 07 00 92 3D 00 00 00 00 00 12 0D F5 [09:36:26]RasterBufferAndPrint [09:36:26]line [09:36:26]line [09:36:26]line [09:36:26]line [09:36:26]line [09:36:26]written 0, free lines is 3352 [09:36:26]process_action close_receipt done [09:36:26]requested_data is exist [09:36:26]produce_requested_data [09:36:26]requested_item fm.sn is exist - process it [09:36:26]wFMCommunicate request_size=4 [09:36:26]MH_SAM_APDU [09:36:26]CAPDU: 80 11 00 00 [09:36:26]Write to MH i2c: E2 08 00 99 3D 80 11 00 00 00 00 00 00 50 [09:36:26]Write i2c OK [09:36:26]MH_I2C_Read... [09:36:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:26]Read from MH i2c: E2 [09:36:26]MH_I2C_Read... [09:36:26]Read from MH i2c: E2 17 00 [09:36:26]MH_I2C_Read... [09:36:26]Read from MH i2c: E2 17 00 99 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A7 [09:36:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:36:26]wFMCommunicate OK [09:36:26]requested_item fd.num is exist - process it [09:36:26]SAM_PROTO_GetFieldsCounters [09:36:26]wFMCommunicate request_size=4 [09:36:26]MH_SAM_APDU [09:36:26]CAPDU: 80 13 00 00 [09:36:26]Write to MH i2c: E2 08 00 9A 3D 80 13 00 00 00 00 00 00 53 [09:36:26]Write i2c OK [09:36:26]MH_I2C_Read... [09:36:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:36:26]Read from MH i2c: E2 [09:36:26]MH_I2C_Read... [09:36:26]Read from MH i2c: E2 62 00 [09:36:26]MH_I2C_Read... [09:36:26]Read from MH i2c: E2 62 00 9A 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 D8 77 03 00 0E 04 04 00 15 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 7D [09:36: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 D8 77 03 00 0E 04 04 00 15 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 [09:36:26]wFMCommunicate OK [09:36:26]SAM_PROTO_GetFieldsCounters done [09:36:26]requested_item shift.num is exist - process it [09:36:26]requested_item shift.opened is exist - process it [09:36:26]req_shift_opened [09:36:26]FM_GetShiftState [09:36:26]SAM_PROTO_GetShiftState [09:36:26]wFMCommunicate request_size=4 [09:36:26]MH_SAM_APDU [09:36:26]CAPDU: 80 13 01 00 [09:36:26]Write to MH i2c: E2 08 00 9B 3D 80 13 01 00 00 00 00 00 55 [09:36:26]Write i2c OK [09:36:26]MH_I2C_Read... [09:36:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:26]Read from MH i2c: E2 [09:36:26]MH_I2C_Read... [09:36:26]Read from MH i2c: E2 0E 00 [09:36:26]MH_I2C_Read... [09:36:26]Read from MH i2c: E2 0E 00 9B 3D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 6F [09:36:26]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:36:26]wFMCommunicate OK [09:36:26]SAM_PROTO_GetShiftState done [09:36:26]FM_GetShiftState done [09:36:26]req_shift_opened done [09:36:26]requested_item shift.open_date is exist - process it [09:36:26]req_shift_open_date [09:36:26]req_shift_open_date done [09:36:26]produce_requested_data done [09:36:26]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227288,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [09:36:26]process_action_free close_receipt [09:36:26]json_value_free [09:36:26]json_value_free done [09:36:26]process_json_proto returns [09:36:26]Send response to host [09:36:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227288,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [09:36:26]free response buf [09:36:26]execute_script done [09:36:26]execute_script returns [09:36:26]free content buf [09:36:26]Sock 8.Close socket [09:36:26]Sock 8.Thread stoped [09:36:26]OFD Sender: No OFD packet to send [09:36:31]OFD Sender: No OFD packet to send [09:36:36]OFD Sender: No OFD packet to send [09:36:41]OFD Sender: No OFD packet to send [09:36:46]OFD Sender: No OFD packet to send [09:36:51]OFD Sender: No OFD packet to send [09:36:54]accept exits with 9 [09:36:54]New connection [09:36:54]New thread 3066965348 created [09:36:54]Thread 3066821988 joined [09:36:54]Waiting for new connection... [09:36:54] Sock 9.Parse request [09:36:54]Sock 9.Check first char [09:36:54]Sock 9.First char is OK [09:36:54]request: POST /json_proto HTTP/1.0 [09:36:54]Method: POST [09:36:54]URL: /json_proto [09:36:54]Method is POST - this is cgi request [09:36:54]url: /json_proto [09:36:54]query_string will be loaded in cgi processing [09:36:54]execute_cgi json_proto POST (null) [09:36:54]execute_cgi path=json_proto method=POST [09:36:54]POST find Content-Length [09:36:54]Host: 172.17.44.195:8080 [09:36:54]Content-Length: 678 [09:36:54]Content-Type: application/json [09:36:54] [09:36:54]POST finish read [09:36:54]Found Content-Length = 678 [09:36:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962759", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:54]execute_script... [09:36: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)1962759", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:54]POST & json_proto [09:36:54]process_json_proto [09:36:54]json parsed OK: [09:36:54]protocol is kg_v1.0 [09:36:54]action value=close_receipt [09:36:54]process_action close_receipt [09:36:54]cmd_close_receipt [09:36:54]MH_GetDate [09:36:54]Write to MH i2c: F0 00 00 9C 3D C8 [09:36:54]Write i2c OK [09:36:54]MH_I2C_Read... [09:36:54]Read from MH i2c: F0 [09:36:54]MH_I2C_Read... [09:36:54]Read from MH i2c: F0 09 00 [09:36:54]MH_I2C_Read... [09:36:54]Read from MH i2c: F0 09 00 9C 3D 00 3B CF 14 67 82 C9 CF 66 D6 [09:36:54]GetLastDocTimeStamp 1729416987 [09:36:54]current date 1729417019 [09:36:54]FM_GetShiftState [09:36:54]SAM_PROTO_GetShiftState [09:36:54]wFMCommunicate request_size=4 [09:36:54]MH_SAM_APDU [09:36:54]CAPDU: 80 13 01 00 [09:36:54]Write to MH i2c: E2 08 00 9D 3D 80 13 01 00 00 00 00 00 57 [09:36:54]Write i2c OK [09:36:54]MH_I2C_Read... [09:36:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:54]Read from MH i2c: E2 [09:36:54]MH_I2C_Read... [09:36:54]Read from MH i2c: E2 0E 00 [09:36:54]MH_I2C_Read... [09:36:54]Read from MH i2c: E2 0E 00 9D 3D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 71 [09:36:54]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:36:54]wFMCommunicate OK [09:36:54]SAM_PROTO_GetShiftState done [09:36:54]FM_GetShiftState done [09:36:54]opened in 1729383750 [09:36:54]opened+sec_in_day 1729470150 [09:36:54]quantity*price = 30038 [09:36:54]sum+1 = 30039 [09:36:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 137 20.10.2024 09:36 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227289 ФПД: 138263173421793 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T093659&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227289&fm=138263173421793&tin=02508201610067®Number=0000000000091685&sum=30000 [09:36:56]StoreToDocumentArchive [09:36:56]shift 533 fd 227289 [09:36:56]save to /storage/0533/doc_00227289 [09:36:56]save last doc name /storage/0533/doc_00227289 to /storage/kkm_last_doc_name [09:36:56]save OK [09:36:56]Clear old archive folders... [09:36:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:36:56]tlvbuf is 0053BE90 [09:36:56]SAM_PROTO_ClearQueue [09:36:56]wFMCommunicate request_size=4 [09:36:56]MH_SAM_APDU [09:36:56]CAPDU: 80 09 00 00 [09:36:56]Write to MH i2c: E2 08 00 AA 3D 80 09 00 00 00 00 00 00 59 [09:36:56]Write i2c OK [09:36:56]MH_I2C_Read... [09:36:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:36:56]Read from MH i2c: E2 [09:36:56]MH_I2C_Read... [09:36:56]Read from MH i2c: E2 03 00 [09:36:56]MH_I2C_Read... [09:36:56]Read from MH i2c: E2 03 00 AA 3D 00 90 00 5B [09:36:56]RAPDU: 90 00 [09:36:56]wFMCommunicate OK [09:36:56]SAM_PROTO_ClearQueue done [09:36:56]KKMCreateOFDPacket [09:36:56]OFDProtocolAddRootSTLVToBuf [09:36:56]FM_MakeSignedData [09:36:56]FM_MakeSignedData [09:36:56]SAM_PROTO_SignData [09:36:56]wFMCommunicate request_size=4 [09:36:56]MH_SAM_APDU [09:36:56]CAPDU: 80 0D 01 02 [09:36:56]Write to MH i2c: E2 08 00 AB 3D 80 0D 01 02 00 00 00 00 61 [09:36:56]Write i2c OK [09:36:56]MH_I2C_Read... [09:36:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:36:56]Read from MH i2c: E2 [09:36:56]MH_I2C_Read... [09:36:56]Read from MH i2c: E2 03 00 [09:36:56]MH_I2C_Read... [09:36:56]Read from MH i2c: E2 03 00 AB 3D 00 90 00 5C [09:36:56]RAPDU: 90 00 [09:36:56]wFMCommunicate OK [09:36:56]wFMCommunicate request_size=255 [09:36:56]MH_SAM_APDU [09:36:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 3B CF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D9 77 03 00 35 04 06 00 7D [09:36:56]Write to MH i2c: E2 02 01 AC 3D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 3B CF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D9 77 03 00 35 04 06 00 7D 00 00 E1 [09:36:56]Write i2c OK [09:36:56]MH_I2C_Read... [09:36:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:56]Read from MH i2c: E2 [09:36:56]MH_I2C_Read... [09:36:56]Read from MH i2c: E2 03 00 [09:36:56]MH_I2C_Read... [09:36:56]Read from MH i2c: E2 03 00 AC 3D 00 90 00 5D [09:36:56]RAPDU: 90 00 [09:36:56]wFMCommunicate OK [09:36:56]wFMCommunicate request_size=10 [09:36:56]MH_SAM_APDU [09:36:56]CAPDU: 80 0D 02 02 05 BF E7 56 5A E1 [09:36:56]Write to MH i2c: E2 0D 00 AD 3D 80 0D 02 02 05 00 BF E7 56 5A E1 00 00 A5 [09:36:56]Write i2c OK [09:36:56]MH_I2C_Read... [09:36:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:56]Read from MH i2c: E2 [09:36:56]MH_I2C_Read... [09:36:56]Read from MH i2c: E2 03 00 [09:36:56]MH_I2C_Read... [09:36:56]Read from MH i2c: E2 03 00 AD 3D 00 90 00 5E [09:36:56]RAPDU: 90 00 [09:36:56]wFMCommunicate OK [09:36:56]wFMCommunicate request_size=4 [09:36:56]MH_SAM_APDU [09:36:56]CAPDU: 80 0D 03 02 [09:36:56]Write to MH i2c: E2 08 00 AE 3D 80 0D 03 02 00 00 00 00 66 [09:36:56]Write i2c OK [09:36:56]MH_I2C_Read... [09:36:56]OFD Sender: No OFD packet to send [09:36:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:36:56]Read from MH i2c: E2 [09:36:56]MH_I2C_Read... [09:36:56]Read from MH i2c: E2 0B 00 [09:36:56]MH_I2C_Read... [09:36:56]Read from MH i2c: E2 0B 00 AE 3D 00 16 5B A1 9B 27 7F B0 B5 90 00 1F [09:36:56]RAPDU: 16 5B A1 9B 27 7F B0 B5 90 00 [09:36:56]wFMCommunicate OK [09:36:56]SAM_PROTO_SignData done [09:36:56]FM_MakeSignedData done [09:36:56]CreateOFDProtocolMessage [09:36:56]wFMCommunicate request_size=4 [09:36:56]MH_SAM_APDU [09:36:56]CAPDU: 80 11 00 00 [09:36:56]Write to MH i2c: E2 08 00 AF 3D 80 11 00 00 00 00 00 00 66 [09:36:56]Write i2c OK [09:36:56]MH_I2C_Read... [09:36:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:56]Read from MH i2c: E2 [09:36:56]MH_I2C_Read... [09:36:56]Read from MH i2c: E2 17 00 [09:36:56]MH_I2C_Read... [09:36:56]Read from MH i2c: E2 17 00 AF 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 BD [09:36:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:36:56]wFMCommunicate OK [09:36:56]CreateOFDProtocolMessage done [09:36:56]OFDSenderStorePacket 227289 [09:36:56]StoreOFDPacket docnum=227289 [09:36:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 F2 C2 07 01 4E AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 3B CF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D9 77 03 00 35 04 06 00 7D BF E7 56 5A E1 16 5B A1 9B 27 7F B0 B5 [09:36:56]CheckFolder [09:36:56]dirname=/storage/ofd_packets [09:36:56]CheckFolder done [09:36:56]ProducePacketName [09:36:56]name=ofd_packets/00227289 [09:36:56]NVStorageSaveData ofd_packets/00227289 [09:36:56]File name is /storage/ofd_packets/00227289 [09:36:56]Write 301 bytes [09:36:56]NVStorageSaveData done [09:36:56]OFDSenderStorePacket done [09:36:56]KKMCreateOFDPacket done [09:36:56]NVStorageSaveData kkm_last_timestamp [09:36:56]File name is /storage/kkm_last_timestamp [09:36:56]Write 4 bytes [09:36:56]NVStorageSaveData done [09:36:56]ExternCall_PrintAddStr [09:36:56]wPrintStart [09:36:56]Write to MH i2c: 01 00 00 B0 3D ED [09:36:56]Write i2c OK [09:36:56]MH_I2C_Read... [09:36:56]Read from MH i2c: 01 [09:36:56]MH_I2C_Read... [09:36:56]Read from MH i2c: 01 07 00 [09:36:56]MH_I2C_Read... [09:36:56]Read from MH i2c: 01 07 00 B0 3D 00 00 00 00 00 FF 0F 02 [09:36:56]RasterBufferAndPrint [09:36:56]line Счет N : (1)1962759 [09:36:56]line ИНН: 02508201610067 [09:36:56]line Контрольно-Кассовый Чек [09:36:56]line ПРОДАЖА [09:36:56]line ТРК (МРК, ГНК) : 53 [09:36:56]line Товар: 2710124130 [09:36:56]line Аи-92-К-5 [09:36:56]line 4.490 * 66.90 [09:36:56]line = 300.38 [09:36:56]line НДС 12% НСП 1% [09:36:56]line > о реализуемом товаре [09:36:56]line ОКРУГЛЕНИЕ: -0.38 [09:36:56]line ИТОГО: 300.00 [09:36:56]line Внесено: 300.00 [09:36:56]line СДАЧА: 0.00 [09:36:56]line НСП 1% : 2.66 [09:36:56]line НДС 12% : 31.90 [09:36:56]line Наличными: 300.00 [09:36:56]line Безнал.: 0.00 [09:36:56]line Место: АЗС № 133 "Партнер Нефть" [09:36:56]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:36:56]line СНО: Общий режим [09:36:56]line Чек 137 20.10.2024 09:36 [09:36:56]line Смена: 533 ФФД: 1.0 [09:36:56]line ЗНМ: 0300000091 [09:36:56]line РНМ: 0000000000091685 [09:36:56]line Версия ККМ: 001 [09:36:56]line ФМ: 0000000000871839 [09:36:56]line ФД: 227289 [09:36:56]line ФПД: 138263173421793 [09:36:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T093659&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227289&fm=138263173421793&tin=02508201610067®Number=0000000000091685&sum=30000 [09:36:57]OFD Sender: Processing packet 227289 [packets to send 38, broken 37] [09:36:57]ProducePacketName [09:36:57]name=ofd_packets/00227289 [09:36:57]OFD Sender: To server: pG, [09:36:57]CommunicateWithHost lk.salyk.kg:30040 [09:36:57]ConnectInit lk.salyk.kg [09:36:57]written 0, free lines is 4095 [09:36:57]Connected sock=10 [09:36:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 F2 C2 07 01 4E AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 3B CF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D9 77 03 00 35 04 06 00 7D BF E7 56 5A E1 16 5B A1 9B 27 7F B0 B5 [09:36:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 33 4E 47 00 B8 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 33 39 10 04 04 00 D9 77 03 00 F4 03 04 00 3A 7A 14 67 B6 04 01 00 00 86 E8 34 CA 29 03 8D BE [09:36:57]CommunicateWithHost err = 0 [09:36:57]CheckOFDResponse [09:36:57]1017 (14) - 77093643461234 [09:36:57]1041 (16) - 0000000000871839 [09:36:57]1040 (4) - 227289 [09:36:57]1012 (4) - 20.10.2024 03:34 [09:36:57]1206 (1) - 0 [09:36:57]OFD Sender: Remove packet 227289 [09:36:57]ProducePacketName [09:36:57]name=ofd_packets/00227289 [09:36:57]NVStorageDeleteData [09:36:57]Write to MH i2c: 01 00 00 DA 3D 17 [09:36:57]Write i2c OK [09:36:57]MH_I2C_Read... [09:36:57]Read from MH i2c: 01 [09:36:57]MH_I2C_Read... [09:36:57]Read from MH i2c: 01 07 00 [09:36:57]MH_I2C_Read... [09:36:57]Read from MH i2c: 01 07 00 DA 3D 00 00 00 00 00 17 0D 42 [09:36:57]RasterBufferAndPrint [09:36:57]line [09:36:57]line [09:36:57]line [09:36:57]line [09:36:57]line [09:36:57]written 0, free lines is 3357 [09:36:57]process_action close_receipt done [09:36:57]requested_data is exist [09:36:57]produce_requested_data [09:36:57]requested_item fm.sn is exist - process it [09:36:57]wFMCommunicate request_size=4 [09:36:57]MH_SAM_APDU [09:36:57]CAPDU: 80 11 00 00 [09:36:57]Write to MH i2c: E2 08 00 E1 3D 80 11 00 00 00 00 00 00 98 [09:36:57]Write i2c OK [09:36:57]MH_I2C_Read... [09:36:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:57]Read from MH i2c: E2 [09:36:57]MH_I2C_Read... [09:36:57]Read from MH i2c: E2 17 00 [09:36:57]MH_I2C_Read... [09:36:57]Read from MH i2c: E2 17 00 E1 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 EF [09:36:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:36:57]wFMCommunicate OK [09:36:57]requested_item fd.num is exist - process it [09:36:57]SAM_PROTO_GetFieldsCounters [09:36:57]wFMCommunicate request_size=4 [09:36:57]MH_SAM_APDU [09:36:57]CAPDU: 80 13 00 00 [09:36:57]Write to MH i2c: E2 08 00 E2 3D 80 13 00 00 00 00 00 00 9B [09:36:57]Write i2c OK [09:36:57]MH_I2C_Read... [09:36:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:36:57]Read from MH i2c: E2 [09:36:57]MH_I2C_Read... [09:36:57]Read from MH i2c: E2 62 00 [09:36:57]MH_I2C_Read... [09:36:57]Read from MH i2c: E2 62 00 E2 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 D9 77 03 00 0E 04 04 00 15 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 C9 [09:36:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 D9 77 03 00 0E 04 04 00 15 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 [09:36:57]wFMCommunicate OK [09:36:57]SAM_PROTO_GetFieldsCounters done [09:36:57]requested_item shift.num is exist - process it [09:36:57]requested_item shift.opened is exist - process it [09:36:57]req_shift_opened [09:36:57]FM_GetShiftState [09:36:57]SAM_PROTO_GetShiftState [09:36:57]wFMCommunicate request_size=4 [09:36:57]MH_SAM_APDU [09:36:57]CAPDU: 80 13 01 00 [09:36:57]Write to MH i2c: E2 08 00 E3 3D 80 13 01 00 00 00 00 00 9D [09:36:57]Write i2c OK [09:36:57]MH_I2C_Read... [09:36:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:57]Read from MH i2c: E2 [09:36:57]MH_I2C_Read... [09:36:57]Read from MH i2c: E2 0E 00 [09:36:57]MH_I2C_Read... [09:36:57]Read from MH i2c: E2 0E 00 E3 3D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 B7 [09:36:57]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:36:57]wFMCommunicate OK [09:36:57]SAM_PROTO_GetShiftState done [09:36:57]FM_GetShiftState done [09:36:57]req_shift_opened done [09:36:57]requested_item shift.open_date is exist - process it [09:36:57]req_shift_open_date [09:36:57]req_shift_open_date done [09:36:57]produce_requested_data done [09:36:57]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227289,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [09:36:57]process_action_free close_receipt [09:36:57]json_value_free [09:36:57]json_value_free done [09:36:57]process_json_proto returns [09:36:57]Send response to host [09:36:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227289,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [09:36:57]free response buf [09:36:57]execute_script done [09:36:57]execute_script returns [09:36:57]free content buf [09:36:57]Sock 9.Close socket [09:36:57]Sock 9.Thread stoped [09:36:57]OFD Sender: No OFD packet to send [09:37:02]OFD Sender: No OFD packet to send [09:37:07]OFD Sender: No OFD packet to send [09:37:12]OFD Sender: No OFD packet to send [09:37:17]OFD Sender: No OFD packet to send [09:37:22]accept exits with 8 [09:37:22]New connection [09:37:22]New thread 3066821988 created [09:37:22]Thread 3066965348 joined [09:37:22]Waiting for new connection... [09:37:22] Sock 8.Parse request [09:37:22]Sock 8.Check first char [09:37:22]Sock 8.First char is OK [09:37:22]request: POST /json_proto HTTP/1.0 [09:37:22]Method: POST [09:37:22]URL: /json_proto [09:37:22]Method is POST - this is cgi request [09:37:22]url: /json_proto [09:37:22]query_string will be loaded in cgi processing [09:37:22]execute_cgi json_proto POST (null) [09:37:22]execute_cgi path=json_proto method=POST [09:37:22]POST find Content-Length [09:37:22]Host: 172.17.44.195:8080 [09:37:22]Content-Length: 680 [09:37:22]Content-Type: application/json [09:37:22] [09:37:22]POST finish read [09:37:22]Found Content-Length = 680 [09:37:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962760", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:37:22]execute_script... [09:37: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)1962760", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:37:22]POST & json_proto [09:37:22]process_json_proto [09:37:22]json parsed OK: [09:37:22]protocol is kg_v1.0 [09:37:22]action value=close_receipt [09:37:22]process_action close_receipt [09:37:22]cmd_close_receipt [09:37:22]MH_GetDate [09:37:22]Write to MH i2c: F0 00 00 E4 3D 10 [09:37:22]Write i2c OK [09:37:22]MH_I2C_Read... [09:37:22]Read from MH i2c: F0 [09:37:22]MH_I2C_Read... [09:37:22]Read from MH i2c: F0 09 00 [09:37:22]MH_I2C_Read... [09:37:22]Read from MH i2c: F0 09 00 E4 3D 00 56 CF 14 67 82 C9 CF 66 39 [09:37:22]GetLastDocTimeStamp 1729417019 [09:37:22]current date 1729417046 [09:37:22]FM_GetShiftState [09:37:22]SAM_PROTO_GetShiftState [09:37:22]wFMCommunicate request_size=4 [09:37:22]MH_SAM_APDU [09:37:22]CAPDU: 80 13 01 00 [09:37:22]Write to MH i2c: E2 08 00 E5 3D 80 13 01 00 00 00 00 00 9F [09:37:22]Write i2c OK [09:37:22]MH_I2C_Read... [09:37:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:22]Read from MH i2c: E2 [09:37:22]MH_I2C_Read... [09:37:22]Read from MH i2c: E2 0E 00 [09:37:22]MH_I2C_Read... [09:37:22]Read from MH i2c: E2 0E 00 E5 3D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 B9 [09:37:22]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:37:22]wFMCommunicate OK [09:37:22]SAM_PROTO_GetShiftState done [09:37:22]FM_GetShiftState done [09:37:22]opened in 1729383750 [09:37:22]opened+sec_in_day 1729470150 [09:37:22]quantity*price = 150037 [09:37:22]sum+1 = 150039 [09:37:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 138 20.10.2024 09:37 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227290 ФПД: 257900753052386 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T093726&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227290&fm=257900753052386&tin=02508201610067®Number=0000000000091685&sum=150000 [09:37:23]StoreToDocumentArchive [09:37:23]shift 533 fd 227290 [09:37:23]save to /storage/0533/doc_00227290 [09:37:23]save last doc name /storage/0533/doc_00227290 to /storage/kkm_last_doc_name [09:37:23]save OK [09:37:23]Clear old archive folders... [09:37:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:37:23]tlvbuf is 005168C0 [09:37:23]SAM_PROTO_ClearQueue [09:37:23]wFMCommunicate request_size=4 [09:37:23]MH_SAM_APDU [09:37:23]CAPDU: 80 09 00 00 [09:37:23]Write to MH i2c: E2 08 00 F2 3D 80 09 00 00 00 00 00 00 A1 [09:37:23]Write i2c OK [09:37:23]MH_I2C_Read... [09:37:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:37:23]Read from MH i2c: E2 [09:37:23]MH_I2C_Read... [09:37:23]Read from MH i2c: E2 03 00 [09:37:23]MH_I2C_Read... [09:37:23]Read from MH i2c: E2 03 00 F2 3D 00 90 00 A3 [09:37:23]RAPDU: 90 00 [09:37:23]wFMCommunicate OK [09:37:23]SAM_PROTO_ClearQueue done [09:37:23]KKMCreateOFDPacket [09:37:23]OFDProtocolAddRootSTLVToBuf [09:37:23]FM_MakeSignedData [09:37:23]FM_MakeSignedData [09:37:23]SAM_PROTO_SignData [09:37:23]wFMCommunicate request_size=4 [09:37:23]MH_SAM_APDU [09:37:23]CAPDU: 80 0D 01 02 [09:37:23]Write to MH i2c: E2 08 00 F3 3D 80 0D 01 02 00 00 00 00 A9 [09:37:23]Write i2c OK [09:37:23]MH_I2C_Read... [09:37:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:37:23]Read from MH i2c: E2 [09:37:23]MH_I2C_Read... [09:37:23]Read from MH i2c: E2 03 00 [09:37:23]MH_I2C_Read... [09:37:23]Read from MH i2c: E2 03 00 F3 3D 00 90 00 A4 [09:37:23]RAPDU: 90 00 [09:37:23]wFMCommunicate OK [09:37:23]wFMCommunicate request_size=255 [09:37:23]MH_SAM_APDU [09:37:23]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 56 CF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DA 77 03 00 35 04 06 00 EA 8F 32 C5 [09:37:23]Write to MH i2c: E2 02 01 F4 3D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 56 CF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DA 77 03 00 35 04 06 00 EA 8F 32 C5 00 00 B2 [09:37:23]Write i2c OK [09:37:23]MH_I2C_Read... [09:37:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:23]Read from MH i2c: E2 [09:37:23]MH_I2C_Read... [09:37:23]Read from MH i2c: E2 03 00 [09:37:23]MH_I2C_Read... [09:37:23]Read from MH i2c: E2 03 00 F4 3D 00 90 00 A5 [09:37:23]RAPDU: 90 00 [09:37:23]wFMCommunicate OK [09:37:23]wFMCommunicate request_size=7 [09:37:23]MH_SAM_APDU [09:37:23]CAPDU: 80 0D 02 02 02 E2 E2 [09:37:23]Write to MH i2c: E2 0A 00 F5 3D 80 0D 02 02 02 00 E2 E2 00 00 74 [09:37:23]Write i2c OK [09:37:23]MH_I2C_Read... [09:37:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:23]Read from MH i2c: E2 [09:37:23]MH_I2C_Read... [09:37:23]Read from MH i2c: E2 03 00 [09:37:23]MH_I2C_Read... [09:37:23]Read from MH i2c: E2 03 00 F5 3D 00 90 00 A6 [09:37:23]RAPDU: 90 00 [09:37:23]wFMCommunicate OK [09:37:23]wFMCommunicate request_size=4 [09:37:23]MH_SAM_APDU [09:37:23]CAPDU: 80 0D 03 02 [09:37:23]Write to MH i2c: E2 08 00 F6 3D 80 0D 03 02 00 00 00 00 AE [09:37:23]Write i2c OK [09:37:23]MH_I2C_Read... [09:37:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:37:23]Read from MH i2c: E2 [09:37:23]MH_I2C_Read... [09:37:23]Read from MH i2c: E2 0B 00 [09:37:23]MH_I2C_Read... [09:37:23]Read from MH i2c: E2 0B 00 F6 3D 00 F7 FF 65 A5 60 20 7B 06 90 00 B0 [09:37:23]RAPDU: F7 FF 65 A5 60 20 7B 06 90 00 [09:37:23]wFMCommunicate OK [09:37:23]SAM_PROTO_SignData done [09:37:23]FM_MakeSignedData done [09:37:23]CreateOFDProtocolMessage [09:37:23]wFMCommunicate request_size=4 [09:37:23]MH_SAM_APDU [09:37:23]CAPDU: 80 11 00 00 [09:37:23]Write to MH i2c: E2 08 00 F7 3D 80 11 00 00 00 00 00 00 AE [09:37:23]Write i2c OK [09:37:23]MH_I2C_Read... [09:37:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:23]Read from MH i2c: E2 [09:37:23]MH_I2C_Read... [09:37:23]Read from MH i2c: E2 17 00 [09:37:23]MH_I2C_Read... [09:37:23]Read from MH i2c: E2 17 00 F7 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 05 [09:37:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:37:23]wFMCommunicate OK [09:37:23]CreateOFDProtocolMessage done [09:37:23]OFDSenderStorePacket 227290 [09:37:23]StoreOFDPacket docnum=227290 [09:37:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 AE 98 04 01 5E 4A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 56 CF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DA 77 03 00 35 04 06 00 EA 8F 32 C5 E2 E2 F7 FF 65 A5 60 20 7B 06 [09:37:23]CheckFolder [09:37:23]dirname=/storage/ofd_packets [09:37:23]CheckFolder done [09:37:23]ProducePacketName [09:37:23]name=ofd_packets/00227290 [09:37:23]NVStorageSaveData ofd_packets/00227290 [09:37:23]File name is /storage/ofd_packets/00227290 [09:37:23]Write 298 bytes [09:37:23]NVStorageSaveData done [09:37:23]OFDSenderStorePacket done [09:37:23]KKMCreateOFDPacket done [09:37:23]NVStorageSaveData kkm_last_timestamp [09:37:23]File name is /storage/kkm_last_timestamp [09:37:23]Write 4 bytes [09:37:23]NVStorageSaveData done [09:37:23]ExternCall_PrintAddStr [09:37:23]wPrintStart [09:37:23]Write to MH i2c: 01 00 00 F8 3D 35 [09:37:23]Write i2c OK [09:37:23]MH_I2C_Read... [09:37:23]Read from MH i2c: 01 [09:37:23]MH_I2C_Read... [09:37:23]Read from MH i2c: 01 07 00 [09:37:23]MH_I2C_Read... [09:37:23]Read from MH i2c: 01 07 00 F8 3D 00 00 00 00 00 FF 0F 4A [09:37:23]RasterBufferAndPrint [09:37:23]line Счет N : (1)1962760 [09:37:23]line ИНН: 02508201610067 [09:37:23]line Контрольно-Кассовый Чек [09:37:23]line ПРОДАЖА [09:37:23]line ТРК (МРК, ГНК) : 21 [09:37:23]line Товар: 2710194210 [09:37:23]line ДТ-К-5 [09:37:23]line 19.690 * 76.20 [09:37:23]line = 1500.38 [09:37:23]line НДС 12% НСП 1% [09:37:23]line > о реализуемом товаре [09:37:23]line ОКРУГЛЕНИЕ: -0.38 [09:37:23]line ИТОГО: 1500.00 [09:37:23]line Внесено: 1500.00 [09:37:23]line СДАЧА: 0.00 [09:37:23]line НСП 1% : 13.28 [09:37:23]line НДС 12% : 159.33 [09:37:23]line Наличными: 1500.00 [09:37:23]line Безнал.: 0.00 [09:37:23]line Место: АЗС № 133 "Партнер Нефть" [09:37:23]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:37:23]line СНО: Общий режим [09:37:23]line Чек 138 20.10.2024 09:37 [09:37:23]line Смена: 533 ФФД: 1.0 [09:37:23]line ЗНМ: 0300000091 [09:37:23]line РНМ: 0000000000091685 [09:37:23]line Версия ККМ: 001 [09:37:23]line ФМ: 0000000000871839 [09:37:23]line ФД: 227290 [09:37:23]line ФПД: 257900753052386 [09:37:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T093726&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227290&fm=257900753052386&tin=02508201610067®Number=0000000000091685&sum=150000 [09:37:24]OFD Sender: Processing packet 227290 [packets to send 38, broken 37] [09:37:24]ProducePacketName [09:37:24]name=ofd_packets/00227290 [09:37:24]OFD Sender: To server: pG, [09:37:24]CommunicateWithHost lk.salyk.kg:30040 [09:37:24]ConnectInit lk.salyk.kg [09:37:24]written 0, free lines is 4095 [09:37:24]Connected sock=10 [09:37: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 33 39 0C 01 00 00 AE 98 04 01 5E 4A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 56 CF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DA 77 03 00 35 04 06 00 EA 8F 32 C5 E2 E2 F7 FF 65 A5 60 20 7B 06 [09:37: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 33 39 4F 00 00 00 93 44 47 00 E8 AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DA 77 03 00 F4 03 04 00 55 7A 14 67 B6 04 01 00 00 D4 2E B0 3F F6 59 AF 9C [09:37:24]CommunicateWithHost err = 0 [09:37:24]CheckOFDResponse [09:37:24]1017 (14) - 77093643461234 [09:37:24]1041 (16) - 0000000000871839 [09:37:24]1040 (4) - 227290 [09:37:24]1012 (4) - 20.10.2024 03:34 [09:37:24]1206 (1) - 0 [09:37:24]OFD Sender: Remove packet 227290 [09:37:24]ProducePacketName [09:37:24]name=ofd_packets/00227290 [09:37:24]NVStorageDeleteData [09:37:24]Write to MH i2c: 01 00 00 22 3E 60 [09:37:24]Write i2c OK [09:37:24]MH_I2C_Read... [09:37:24]Read from MH i2c: 01 [09:37:24]MH_I2C_Read... [09:37:24]Read from MH i2c: 01 07 00 [09:37:24]MH_I2C_Read... [09:37:24]Read from MH i2c: 01 07 00 22 3E 00 00 00 00 00 02 0D 76 [09:37:24]RasterBufferAndPrint [09:37:24]line [09:37:24]line [09:37:24]line [09:37:24]line [09:37:24]line [09:37:24]written 0, free lines is 3336 [09:37:24]process_action close_receipt done [09:37:24]requested_data is exist [09:37:24]produce_requested_data [09:37:24]requested_item fm.sn is exist - process it [09:37:24]wFMCommunicate request_size=4 [09:37:24]MH_SAM_APDU [09:37:24]CAPDU: 80 11 00 00 [09:37:24]Write to MH i2c: E2 08 00 29 3E 80 11 00 00 00 00 00 00 E1 [09:37:24]Write i2c OK [09:37:24]MH_I2C_Read... [09:37:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:24]Read from MH i2c: E2 [09:37:24]MH_I2C_Read... [09:37:24]Read from MH i2c: E2 17 00 [09:37:24]MH_I2C_Read... [09:37:24]Read from MH i2c: E2 17 00 29 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 38 [09:37:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:37:24]wFMCommunicate OK [09:37:24]requested_item fd.num is exist - process it [09:37:24]SAM_PROTO_GetFieldsCounters [09:37:24]wFMCommunicate request_size=4 [09:37:24]MH_SAM_APDU [09:37:24]CAPDU: 80 13 00 00 [09:37:24]Write to MH i2c: E2 08 00 2A 3E 80 13 00 00 00 00 00 00 E4 [09:37:24]Write i2c OK [09:37:24]MH_I2C_Read... [09:37:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:37:24]Read from MH i2c: E2 [09:37:24]MH_I2C_Read... [09:37:24]Read from MH i2c: E2 62 00 [09:37:24]MH_I2C_Read... [09:37:24]Read from MH i2c: E2 62 00 2A 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 DA 77 03 00 0E 04 04 00 15 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 16 [09:37:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 DA 77 03 00 0E 04 04 00 15 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 [09:37:24]wFMCommunicate OK [09:37:24]SAM_PROTO_GetFieldsCounters done [09:37:24]requested_item shift.num is exist - process it [09:37:24]requested_item shift.opened is exist - process it [09:37:24]req_shift_opened [09:37:24]FM_GetShiftState [09:37:24]SAM_PROTO_GetShiftState [09:37:24]wFMCommunicate request_size=4 [09:37:24]MH_SAM_APDU [09:37:24]CAPDU: 80 13 01 00 [09:37:24]Write to MH i2c: E2 08 00 2B 3E 80 13 01 00 00 00 00 00 E6 [09:37:24]Write i2c OK [09:37:24]MH_I2C_Read... [09:37:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:24]Read from MH i2c: E2 [09:37:24]MH_I2C_Read... [09:37:24]Read from MH i2c: E2 0E 00 [09:37:24]MH_I2C_Read... [09:37:24]Read from MH i2c: E2 0E 00 2B 3E 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 00 [09:37:24]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:37:24]wFMCommunicate OK [09:37:24]SAM_PROTO_GetShiftState done [09:37:24]FM_GetShiftState done [09:37:24]req_shift_opened done [09:37:24]requested_item shift.open_date is exist - process it [09:37:24]req_shift_open_date [09:37:24]req_shift_open_date done [09:37:24]produce_requested_data done [09:37:24]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227290,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [09:37:24]process_action_free close_receipt [09:37:24]json_value_free [09:37:24]json_value_free done [09:37:24]process_json_proto returns [09:37:24]Send response to host [09:37:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227290,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [09:37:24]free response buf [09:37:24]execute_script done [09:37:24]execute_script returns [09:37:24]free content buf [09:37:24]Sock 8.Close socket [09:37:24]Sock 8.Thread stoped [09:37:24]OFD Sender: No OFD packet to send [09:37:29]OFD Sender: No OFD packet to send [09:37:34]OFD Sender: No OFD packet to send [09:37:39]OFD Sender: No OFD packet to send [09:37:44]OFD Sender: No OFD packet to send [09:37:49]accept exits with 9 [09:37:49]New connection [09:37:49]New thread 3066965348 created [09:37:49]Thread 3066821988 joined [09:37:49]Waiting for new connection... [09:37:49] Sock 9.Parse request [09:37:49]Sock 9.Check first char [09:37:49]Sock 9.First char is OK [09:37:49]request: POST /json_proto HTTP/1.0 [09:37:49]Method: POST [09:37:49]URL: /json_proto [09:37:49]Method is POST - this is cgi request [09:37:49]url: /json_proto [09:37:49]query_string will be loaded in cgi processing [09:37:49]execute_cgi json_proto POST (null) [09:37:49]execute_cgi path=json_proto method=POST [09:37:49]POST find Content-Length [09:37:49]Host: 172.17.44.195:8080 [09:37:49]Content-Length: 683 [09:37:49]Content-Type: application/json [09:37:49] [09:37:49]POST finish read [09:37:49]Found Content-Length = 683 [09:37:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962761", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:37:49]execute_script... [09:37: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)1962761", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:37:49]POST & json_proto [09:37:49]process_json_proto [09:37:49]json parsed OK: [09:37:49]protocol is kg_v1.0 [09:37:49]action value=close_receipt [09:37:49]process_action close_receipt [09:37:49]cmd_close_receipt [09:37:49]MH_GetDate [09:37:49]Write to MH i2c: F0 00 00 2C 3E 59 [09:37:49]Write i2c OK [09:37:49]MH_I2C_Read... [09:37:49]Read from MH i2c: F0 [09:37:49]MH_I2C_Read... [09:37:49]Read from MH i2c: F0 09 00 [09:37:49]MH_I2C_Read... [09:37:49]Read from MH i2c: F0 09 00 2C 3E 00 71 CF 14 67 82 C9 CF 66 9D [09:37:49]GetLastDocTimeStamp 1729417046 [09:37:49]current date 1729417073 [09:37:49]FM_GetShiftState [09:37:49]SAM_PROTO_GetShiftState [09:37:49]wFMCommunicate request_size=4 [09:37:49]MH_SAM_APDU [09:37:49]CAPDU: 80 13 01 00 [09:37:49]Write to MH i2c: E2 08 00 2D 3E 80 13 01 00 00 00 00 00 E8 [09:37:49]Write i2c OK [09:37:49]MH_I2C_Read... [09:37:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:49]Read from MH i2c: E2 [09:37:49]MH_I2C_Read... [09:37:49]Read from MH i2c: E2 0E 00 [09:37:49]MH_I2C_Read... [09:37:49]Read from MH i2c: E2 0E 00 2D 3E 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 02 [09:37:49]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:37:49]wFMCommunicate OK [09:37:49]SAM_PROTO_GetShiftState done [09:37:49]FM_GetShiftState done [09:37:49]opened in 1729383750 [09:37:49]opened+sec_in_day 1729470150 [09:37:49]quantity*price = 100015 [09:37:49]sum+1 = 100017 [09:37:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 139 20.10.2024 09:37 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227291 ФПД: 172066630763851 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T093753&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227291&fm=172066630763851&tin=02508201610067®Number=0000000000091685&sum=100000 [09:37:50]StoreToDocumentArchive [09:37:50]shift 533 fd 227291 [09:37:50]save to /storage/0533/doc_00227291 [09:37:50]save last doc name /storage/0533/doc_00227291 to /storage/kkm_last_doc_name [09:37:50]save OK [09:37:50]Clear old archive folders... [09:37:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:37:50]tlvbuf is 00531110 [09:37:50]SAM_PROTO_ClearQueue [09:37:50]wFMCommunicate request_size=4 [09:37:50]MH_SAM_APDU [09:37:50]CAPDU: 80 09 00 00 [09:37:50]Write to MH i2c: E2 08 00 3A 3E 80 09 00 00 00 00 00 00 EA [09:37:50]Write i2c OK [09:37:50]MH_I2C_Read... [09:37:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:37:50]Read from MH i2c: E2 [09:37:50]MH_I2C_Read... [09:37:50]Read from MH i2c: E2 03 00 [09:37:50]MH_I2C_Read... [09:37:50]Read from MH i2c: E2 03 00 3A 3E 00 90 00 EC [09:37:50]RAPDU: 90 00 [09:37:50]wFMCommunicate OK [09:37:50]SAM_PROTO_ClearQueue done [09:37:50]KKMCreateOFDPacket [09:37:50]OFDProtocolAddRootSTLVToBuf [09:37:50]FM_MakeSignedData [09:37:50]FM_MakeSignedData [09:37:50]SAM_PROTO_SignData [09:37:50]wFMCommunicate request_size=4 [09:37:50]MH_SAM_APDU [09:37:50]CAPDU: 80 0D 01 02 [09:37:50]Write to MH i2c: E2 08 00 3B 3E 80 0D 01 02 00 00 00 00 F2 [09:37:50]Write i2c OK [09:37:50]MH_I2C_Read... [09:37:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:37:50]Read from MH i2c: E2 [09:37:50]MH_I2C_Read... [09:37:50]Read from MH i2c: E2 03 00 [09:37:50]MH_I2C_Read... [09:37:50]Read from MH i2c: E2 03 00 3B 3E 00 90 00 ED [09:37:50]RAPDU: 90 00 [09:37:50]wFMCommunicate OK [09:37:50]wFMCommunicate request_size=255 [09:37:50]MH_SAM_APDU [09: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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 71 CF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DB 77 03 00 35 04 06 00 9C [09:37:50]Write to MH i2c: E2 02 01 3C 3E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 71 CF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DB 77 03 00 35 04 06 00 9C 00 00 D1 [09:37:50]Write i2c OK [09:37:50]MH_I2C_Read... [09:37:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:50]Read from MH i2c: E2 [09:37:50]MH_I2C_Read... [09:37:50]Read from MH i2c: E2 03 00 [09:37:50]MH_I2C_Read... [09:37:50]Read from MH i2c: E2 03 00 3C 3E 00 90 00 EE [09:37:50]RAPDU: 90 00 [09:37:50]wFMCommunicate OK [09:37:50]wFMCommunicate request_size=10 [09:37:50]MH_SAM_APDU [09:37:50]CAPDU: 80 0D 02 02 05 7E 62 67 85 4B [09:37:50]Write to MH i2c: E2 0D 00 3D 3E 80 0D 02 02 05 00 7E 62 67 85 4B 00 00 16 [09:37:50]Write i2c OK [09:37:50]MH_I2C_Read... [09:37:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:50]Read from MH i2c: E2 [09:37:50]MH_I2C_Read... [09:37:50]Read from MH i2c: E2 03 00 [09:37:50]MH_I2C_Read... [09:37:50]Read from MH i2c: E2 03 00 3D 3E 00 90 00 EF [09:37:50]RAPDU: 90 00 [09:37:50]wFMCommunicate OK [09:37:50]wFMCommunicate request_size=4 [09:37:50]MH_SAM_APDU [09:37:50]CAPDU: 80 0D 03 02 [09:37:50]Write to MH i2c: E2 08 00 3E 3E 80 0D 03 02 00 00 00 00 F7 [09:37:50]Write i2c OK [09:37:50]MH_I2C_Read... [09:37:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:37:50]Read from MH i2c: E2 [09:37:50]MH_I2C_Read... [09:37:50]Read from MH i2c: E2 0B 00 [09:37:50]MH_I2C_Read... [09:37:50]Read from MH i2c: E2 0B 00 3E 3E 00 D3 AF 1C A9 10 2D 53 64 90 00 33 [09:37:50]RAPDU: D3 AF 1C A9 10 2D 53 64 90 00 [09:37:50]wFMCommunicate OK [09:37:50]SAM_PROTO_SignData done [09:37:50]FM_MakeSignedData done [09:37:50]CreateOFDProtocolMessage [09:37:50]wFMCommunicate request_size=4 [09:37:50]MH_SAM_APDU [09:37:50]CAPDU: 80 11 00 00 [09:37:50]Write to MH i2c: E2 08 00 3F 3E 80 11 00 00 00 00 00 00 F7 [09:37:50]Write i2c OK [09:37:50]MH_I2C_Read... [09:37:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:50]Read from MH i2c: E2 [09:37:50]MH_I2C_Read... [09:37:50]Read from MH i2c: E2 17 00 [09:37:50]MH_I2C_Read... [09:37:50]Read from MH i2c: E2 17 00 3F 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 4E [09:37:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:37:50]wFMCommunicate OK [09:37:50]CreateOFDProtocolMessage done [09:37:50]OFDSenderStorePacket 227291 [09:37:50]StoreOFDPacket docnum=227291 [09:37:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 A2 9E 07 01 4F 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 71 CF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DB 77 03 00 35 04 06 00 9C 7E 62 67 85 4B D3 AF 1C A9 10 2D 53 64 [09:37:50]CheckFolder [09:37:50]dirname=/storage/ofd_packets [09:37:50]CheckFolder done [09:37:50]ProducePacketName [09:37:50]name=ofd_packets/00227291 [09:37:50]NVStorageSaveData ofd_packets/00227291 [09:37:50]File name is /storage/ofd_packets/00227291 [09:37:50]Write 301 bytes [09:37:50]NVStorageSaveData done [09:37:50]OFDSenderStorePacket done [09:37:50]KKMCreateOFDPacket done [09:37:50]NVStorageSaveData kkm_last_timestamp [09:37:50]File name is /storage/kkm_last_timestamp [09:37:50]Write 4 bytes [09:37:50]NVStorageSaveData done [09:37:50]ExternCall_PrintAddStr [09:37:50]wPrintStart [09:37:50]Write to MH i2c: 01 00 00 40 3E 7E [09:37:50]Write i2c OK [09:37:50]MH_I2C_Read... [09:37:50]Read from MH i2c: 01 [09:37:50]MH_I2C_Read... [09:37:50]Read from MH i2c: 01 07 00 [09:37:50]MH_I2C_Read... [09:37:50]Read from MH i2c: 01 07 00 40 3E 00 00 00 00 00 FF 0F 93 [09:37:50]RasterBufferAndPrint [09:37:50]line Счет N : (1)1962761 [09:37:50]line ИНН: 02508201610067 [09:37:50]line Контрольно-Кассовый Чек [09:37:50]line ПРОДАЖА [09:37:50]line ТРК (МРК, ГНК) : 43 [09:37:50]line Товар: 2710124130 [09:37:50]line Аи-92-К-5 [09:37:50]line 14.950 * 66.90 [09:37:50]line = 1000.16 [09:37:50]line НДС 12% НСП 1% [09:37:50]line > о реализуемом товаре [09:37:50]line ОКРУГЛЕНИЕ: -0.16 [09:37:50]line ИТОГО: 1000.00 [09:37:50]line Внесено: 1000.00 [09:37:50]line СДАЧА: 0.00 [09:37:50]line НСП 1% : 8.85 [09:37:50]line НДС 12% : 106.21 [09:37:50]line Наличными: 1000.00 [09:37:50]line Безнал.: 0.00 [09:37:50]line Место: АЗС № 133 "Партнер Нефть" [09:37:50]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:37:50]line СНО: Общий режим [09:37:50]line Чек 139 20.10.2024 09:37 [09:37:50]line Смена: 533 ФФД: 1.0 [09:37:50]line ЗНМ: 0300000091 [09:37:50]line РНМ: 0000000000091685 [09:37:50]line Версия ККМ: 001 [09:37:50]line ФМ: 0000000000871839 [09:37:50]line ФД: 227291 [09:37:50]line ФПД: 172066630763851 [09:37:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T093753&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227291&fm=172066630763851&tin=02508201610067®Number=0000000000091685&sum=100000 [09:37:51]OFD Sender: Processing packet 227291 [packets to send 38, broken 37] [09:37:51]ProducePacketName [09:37:51]name=ofd_packets/00227291 [09:37:51]OFD Sender: To server: pG, [09:37:51]CommunicateWithHost lk.salyk.kg:30040 [09:37:51]ConnectInit lk.salyk.kg [09:37:51]written 0, free lines is 4095 [09:37:51]Connected sock=10 [09: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 33 39 0F 01 00 00 A2 9E 07 01 4F 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 71 CF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DB 77 03 00 35 04 06 00 9C 7E 62 67 85 4B D3 AF 1C A9 10 2D 53 64 [09: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 33 39 4F 00 00 00 F3 6A 47 00 C4 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DB 77 03 00 F4 03 04 00 70 7A 14 67 B6 04 01 00 00 81 98 14 8A A8 F3 5E 20 [09:37:51]CommunicateWithHost err = 0 [09:37:51]CheckOFDResponse [09:37:51]1017 (14) - 77093643461234 [09:37:51]1041 (16) - 0000000000871839 [09:37:51]1040 (4) - 227291 [09:37:51]1012 (4) - 20.10.2024 03:35 [09:37:51]1206 (1) - 0 [09:37:51]OFD Sender: Remove packet 227291 [09:37:51]ProducePacketName [09:37:51]name=ofd_packets/00227291 [09:37:51]NVStorageDeleteData [09:37:51]Write to MH i2c: 01 00 00 6A 3E A8 [09:37:51]Write i2c OK [09:37:51]MH_I2C_Read... [09:37:51]Read from MH i2c: 01 [09:37:51]MH_I2C_Read... [09:37:51]Read from MH i2c: 01 07 00 [09:37:51]MH_I2C_Read... [09:37:51]Read from MH i2c: 01 07 00 6A 3E 00 00 00 00 00 02 0D BE [09:37:51]RasterBufferAndPrint [09:37:51]line [09:37:51]line [09:37:51]line [09:37:51]line [09:37:51]line [09:37:51]written 0, free lines is 3336 [09:37:51]process_action close_receipt done [09:37:51]requested_data is exist [09:37:51]produce_requested_data [09:37:51]requested_item fm.sn is exist - process it [09:37:51]wFMCommunicate request_size=4 [09:37:51]MH_SAM_APDU [09:37:51]CAPDU: 80 11 00 00 [09:37:51]Write to MH i2c: E2 08 00 71 3E 80 11 00 00 00 00 00 00 29 [09:37:51]Write i2c OK [09:37:51]MH_I2C_Read... [09:37:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:51]Read from MH i2c: E2 [09:37:51]MH_I2C_Read... [09:37:51]Read from MH i2c: E2 17 00 [09:37:51]MH_I2C_Read... [09:37:51]Read from MH i2c: E2 17 00 71 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 80 [09:37:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:37:51]wFMCommunicate OK [09:37:51]requested_item fd.num is exist - process it [09:37:51]SAM_PROTO_GetFieldsCounters [09:37:51]wFMCommunicate request_size=4 [09:37:51]MH_SAM_APDU [09:37:51]CAPDU: 80 13 00 00 [09:37:51]Write to MH i2c: E2 08 00 72 3E 80 13 00 00 00 00 00 00 2C [09:37:51]Write i2c OK [09:37:51]MH_I2C_Read... [09:37:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:37:51]Read from MH i2c: E2 [09:37:51]MH_I2C_Read... [09:37:51]Read from MH i2c: E2 62 00 [09:37:51]MH_I2C_Read... [09:37:51]Read from MH i2c: E2 62 00 72 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 DB 77 03 00 0E 04 04 00 15 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 62 [09:37:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 DB 77 03 00 0E 04 04 00 15 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 [09:37:51]wFMCommunicate OK [09:37:51]SAM_PROTO_GetFieldsCounters done [09:37:51]requested_item shift.num is exist - process it [09:37:51]requested_item shift.opened is exist - process it [09:37:51]req_shift_opened [09:37:51]FM_GetShiftState [09:37:51]SAM_PROTO_GetShiftState [09:37:51]wFMCommunicate request_size=4 [09:37:51]MH_SAM_APDU [09:37:51]CAPDU: 80 13 01 00 [09:37:51]Write to MH i2c: E2 08 00 73 3E 80 13 01 00 00 00 00 00 2E [09:37:51]Write i2c OK [09:37:51]MH_I2C_Read... [09:37:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:51]Read from MH i2c: E2 [09:37:51]MH_I2C_Read... [09:37:51]Read from MH i2c: E2 0E 00 [09:37:51]MH_I2C_Read... [09:37:51]Read from MH i2c: E2 0E 00 73 3E 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 48 [09:37:51]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:37:51]wFMCommunicate OK [09:37:51]SAM_PROTO_GetShiftState done [09:37:51]FM_GetShiftState done [09:37:51]req_shift_opened done [09:37:51]requested_item shift.open_date is exist - process it [09:37:51]req_shift_open_date [09:37:51]req_shift_open_date done [09:37:51]produce_requested_data done [09:37:51]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227291,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [09:37:51]process_action_free close_receipt [09:37:51]json_value_free [09:37:51]json_value_free done [09:37:51]process_json_proto returns [09:37:51]Send response to host [09:37:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227291,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [09:37:51]free response buf [09:37:51]execute_script done [09:37:51]execute_script returns [09:37:51]free content buf [09:37:51]Sock 9.Close socket [09:37:51]Sock 9.Thread stoped [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:12]OFD Sender: No OFD packet to send [09:38:17]OFD Sender: No OFD packet to send [09:38:22]OFD Sender: No OFD packet to send [09:38:27]OFD Sender: No OFD packet to send [09:38:32]OFD Sender: No OFD packet to send [09:38:37]OFD Sender: No OFD packet to send [09:38:42]OFD Sender: No OFD packet to send [09:38:47]OFD Sender: No OFD packet to send [09:38:52]OFD Sender: No OFD packet to send [09:38:57]OFD Sender: No OFD packet to send [09:38:58]accept exits with 8 [09:38:58]New connection [09:38:58]New thread 3066821988 created [09:38:58]Thread 3066965348 joined [09:38:58]Waiting for new connection... [09:38:58] Sock 8.Parse request [09:38:58]Sock 8.Check first char [09:38:58]Sock 8.First char is OK [09:38:58]request: POST /json_proto HTTP/1.0 [09:38:58]Method: POST [09:38:58]URL: /json_proto [09:38:58]Method is POST - this is cgi request [09:38:58]url: /json_proto [09:38:58]query_string will be loaded in cgi processing [09:38:58]execute_cgi json_proto POST (null) [09:38:58]execute_cgi path=json_proto method=POST [09:38:58]POST find Content-Length [09:38:58]Host: 172.17.44.195:8080 [09:38:58]Content-Length: 683 [09:38:58]Content-Type: application/json [09:38:58] [09:38:58]POST finish read [09:38:58]Found Content-Length = 683 [09:38:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962762", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:38:58]execute_script... [09:38: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)1962762", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:38:58]POST & json_proto [09:38:58]process_json_proto [09:38:58]json parsed OK: [09:38:58]protocol is kg_v1.0 [09:38:58]action value=close_receipt [09:38:58]process_action close_receipt [09:38:58]cmd_close_receipt [09:38:58]MH_GetDate [09:38:58]Write to MH i2c: F0 00 00 74 3E A1 [09:38:58]Write i2c OK [09:38:58]MH_I2C_Read... [09:38:58]Read from MH i2c: F0 [09:38:58]MH_I2C_Read... [09:38:58]Read from MH i2c: F0 09 00 [09:38:58]MH_I2C_Read... [09:38:58]Read from MH i2c: F0 09 00 74 3E 00 B6 CF 14 67 82 C9 CF 66 2A [09:38:58]GetLastDocTimeStamp 1729417073 [09:38:58]current date 1729417142 [09:38:58]FM_GetShiftState [09:38:58]SAM_PROTO_GetShiftState [09:38:58]wFMCommunicate request_size=4 [09:38:58]MH_SAM_APDU [09:38:58]CAPDU: 80 13 01 00 [09:38:58]Write to MH i2c: E2 08 00 75 3E 80 13 01 00 00 00 00 00 30 [09:38:58]Write i2c OK [09:38:58]MH_I2C_Read... [09:38:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:38:58]Read from MH i2c: E2 [09:38:58]MH_I2C_Read... [09:38:58]Read from MH i2c: E2 0E 00 [09:38:58]MH_I2C_Read... [09:38:58]Read from MH i2c: E2 0E 00 75 3E 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 4A [09:38:58]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:38:58]wFMCommunicate OK [09:38:58]SAM_PROTO_GetShiftState done [09:38:58]FM_GetShiftState done [09:38:58]opened in 1729383750 [09:38:58]opened+sec_in_day 1729470150 [09:38:58]quantity*price = 100021 [09:38:58]sum+1 = 100023 [09:38:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 140 20.10.2024 09:39 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227292 ФПД: 30115683441108 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T093903&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227292&fm=30115683441108&tin=02508201610067®Number=0000000000091685&sum=100000 [09:38:59]StoreToDocumentArchive [09:38:59]shift 533 fd 227292 [09:38:59]save to /storage/0533/doc_00227292 [09:38:59]save last doc name /storage/0533/doc_00227292 to /storage/kkm_last_doc_name [09:38:59]save OK [09:38:59]Clear old archive folders... [09:39:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:39:00]tlvbuf is B6DAB0F0 [09:39:00]SAM_PROTO_ClearQueue [09:39:00]wFMCommunicate request_size=4 [09:39:00]MH_SAM_APDU [09:39:00]CAPDU: 80 09 00 00 [09:39:00]Write to MH i2c: E2 08 00 82 3E 80 09 00 00 00 00 00 00 32 [09:39:00]Write i2c OK [09:39:00]MH_I2C_Read... [09:39:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:39:00]Read from MH i2c: E2 [09:39:00]MH_I2C_Read... [09:39:00]Read from MH i2c: E2 03 00 [09:39:00]MH_I2C_Read... [09:39:00]Read from MH i2c: E2 03 00 82 3E 00 90 00 34 [09:39:00]RAPDU: 90 00 [09:39:00]wFMCommunicate OK [09:39:00]SAM_PROTO_ClearQueue done [09:39:00]KKMCreateOFDPacket [09:39:00]OFDProtocolAddRootSTLVToBuf [09:39:00]FM_MakeSignedData [09:39:00]FM_MakeSignedData [09:39:00]SAM_PROTO_SignData [09:39:00]wFMCommunicate request_size=4 [09:39:00]MH_SAM_APDU [09:39:00]CAPDU: 80 0D 01 02 [09:39:00]Write to MH i2c: E2 08 00 83 3E 80 0D 01 02 00 00 00 00 3A [09:39:00]Write i2c OK [09:39:00]MH_I2C_Read... [09:39:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:39:00]Read from MH i2c: E2 [09:39:00]MH_I2C_Read... [09:39:00]Read from MH i2c: E2 03 00 [09:39:00]MH_I2C_Read... [09:39:00]Read from MH i2c: E2 03 00 83 3E 00 90 00 35 [09:39:00]RAPDU: 90 00 [09:39:00]wFMCommunicate OK [09:39:00]wFMCommunicate request_size=255 [09:39:00]MH_SAM_APDU [09:39:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 B7 CF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DC 77 03 00 35 04 06 00 1B [09:39:00]Write to MH i2c: E2 02 01 84 3E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 B7 CF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DC 77 03 00 35 04 06 00 1B 00 00 03 [09:39:00]Write i2c OK [09:39:00]MH_I2C_Read... [09:39:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:00]Read from MH i2c: E2 [09:39:00]MH_I2C_Read... [09:39:00]Read from MH i2c: E2 03 00 [09:39:00]MH_I2C_Read... [09:39:00]Read from MH i2c: E2 03 00 84 3E 00 90 00 36 [09:39:00]RAPDU: 90 00 [09:39:00]wFMCommunicate OK [09:39:00]wFMCommunicate request_size=10 [09:39:00]MH_SAM_APDU [09:39:00]CAPDU: 80 0D 02 02 05 63 DA 9D 19 D4 [09:39:00]Write to MH i2c: E2 0D 00 85 3E 80 0D 02 02 05 00 63 DA 9D 19 D4 00 00 0E [09:39:00]Write i2c OK [09:39:00]MH_I2C_Read... [09:39:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:00]Read from MH i2c: E2 [09:39:00]MH_I2C_Read... [09:39:00]Read from MH i2c: E2 03 00 [09:39:00]MH_I2C_Read... [09:39:00]Read from MH i2c: E2 03 00 85 3E 00 90 00 37 [09:39:00]RAPDU: 90 00 [09:39:00]wFMCommunicate OK [09:39:00]wFMCommunicate request_size=4 [09:39:00]MH_SAM_APDU [09:39:00]CAPDU: 80 0D 03 02 [09:39:00]Write to MH i2c: E2 08 00 86 3E 80 0D 03 02 00 00 00 00 3F [09:39:00]Write i2c OK [09:39:00]MH_I2C_Read... [09:39:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:39:00]Read from MH i2c: E2 [09:39:00]MH_I2C_Read... [09:39:00]Read from MH i2c: E2 0B 00 [09:39:00]MH_I2C_Read... [09:39:00]Read from MH i2c: E2 0B 00 86 3E 00 9E FB 95 78 87 72 AC EF 90 00 7A [09:39:00]RAPDU: 9E FB 95 78 87 72 AC EF 90 00 [09:39:00]wFMCommunicate OK [09:39:00]SAM_PROTO_SignData done [09:39:00]FM_MakeSignedData done [09:39:00]CreateOFDProtocolMessage [09:39:00]wFMCommunicate request_size=4 [09:39:00]MH_SAM_APDU [09:39:00]CAPDU: 80 11 00 00 [09:39:00]Write to MH i2c: E2 08 00 87 3E 80 11 00 00 00 00 00 00 3F [09:39:00]Write i2c OK [09:39:00]MH_I2C_Read... [09:39:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:00]Read from MH i2c: E2 [09:39:00]MH_I2C_Read... [09:39:00]Read from MH i2c: E2 17 00 [09:39:00]MH_I2C_Read... [09:39:00]Read from MH i2c: E2 17 00 87 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 96 [09:39:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:39:00]wFMCommunicate OK [09:39:00]CreateOFDProtocolMessage done [09:39:00]OFDSenderStorePacket 227292 [09:39:00]StoreOFDPacket docnum=227292 [09:39:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 62 EA 07 01 AE 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 B7 CF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DC 77 03 00 35 04 06 00 1B 63 DA 9D 19 D4 9E FB 95 78 87 72 AC EF [09:39:00]CheckFolder [09:39:00]dirname=/storage/ofd_packets [09:39:00]CheckFolder done [09:39:00]ProducePacketName [09:39:00]name=ofd_packets/00227292 [09:39:00]NVStorageSaveData ofd_packets/00227292 [09:39:00]File name is /storage/ofd_packets/00227292 [09:39:00]Write 301 bytes [09:39:00]NVStorageSaveData done [09:39:00]OFDSenderStorePacket done [09:39:00]KKMCreateOFDPacket done [09:39:00]NVStorageSaveData kkm_last_timestamp [09:39:00]File name is /storage/kkm_last_timestamp [09:39:00]Write 4 bytes [09:39:00]NVStorageSaveData done [09:39:00]ExternCall_PrintAddStr [09:39:00]wPrintStart [09:39:00]Write to MH i2c: 01 00 00 88 3E C6 [09:39:00]Write i2c OK [09:39:00]MH_I2C_Read... [09:39:00]Read from MH i2c: 01 [09:39:00]MH_I2C_Read... [09:39:00]Read from MH i2c: 01 07 00 [09:39:00]MH_I2C_Read... [09:39:00]Read from MH i2c: 01 07 00 88 3E 00 00 00 00 00 FF 0F DB [09:39:00]RasterBufferAndPrint [09:39:00]line Счет N : (1)1962762 [09:39:00]line ИНН: 02508201610067 [09:39:00]line Контрольно-Кассовый Чек [09:39:00]line ПРОДАЖА [09:39:00]line ТРК (МРК, ГНК) : 34 [09:39:00]line Товар: 2710124500 [09:39:00]line Аи-95-К-5 [09:39:00]line 13.480 * 74.20 [09:39:00]line = 1000.22 [09:39:00]line НДС 12% НСП 1% [09:39:00]line > о реализуемом товаре [09:39:00]line ОКРУГЛЕНИЕ: -0.22 [09:39:00]line ИТОГО: 1000.00 [09:39:00]line Внесено: 1000.00 [09:39:00]line СДАЧА: 0.00 [09:39:00]line НСП 1% : 8.85 [09:39:00]line НДС 12% : 106.22 [09:39:00]line Наличными: 1000.00 [09:39:00]line Безнал.: 0.00 [09:39:00]line Место: АЗС № 133 "Партнер Нефть" [09:39:00]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:39:00]line СНО: Общий режим [09:39:00]line Чек 140 20.10.2024 09:39 [09:39:00]line Смена: 533 ФФД: 1.0 [09:39:00]line ЗНМ: 0300000091 [09:39:00]line РНМ: 0000000000091685 [09:39:00]line Версия ККМ: 001 [09:39:00]line ФМ: 0000000000871839 [09:39:00]line ФД: 227292 [09:39:00]line ФПД: 30115683441108 [09:39:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T093903&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227292&fm=30115683441108&tin=02508201610067®Number=0000000000091685&sum=100000 [09:39:00]written 0, free lines is 4095 [09:39:00]OFD Sender: Processing packet 227292 [packets to send 38, broken 37] [09:39:00]ProducePacketName [09:39:00]name=ofd_packets/00227292 [09:39:00]OFD Sender: To server: pG, [09:39:00]CommunicateWithHost lk.salyk.kg:30040 [09:39:00]ConnectInit lk.salyk.kg [09:39:00]Connected sock=10 [09:39: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 33 39 0F 01 00 00 62 EA 07 01 AE 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 B7 CF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DC 77 03 00 35 04 06 00 1B 63 DA 9D 19 D4 9E FB 95 78 87 72 AC EF [09:39: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 33 39 4F 00 00 00 B4 95 47 00 C8 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 33 39 10 04 04 00 DC 77 03 00 F4 03 04 00 B6 7A 14 67 B6 04 01 00 00 64 B6 90 FE 3F 89 77 3D [09:39:01]CommunicateWithHost err = 0 [09:39:01]CheckOFDResponse [09:39:01]1017 (14) - 77093643461234 [09:39:01]1041 (16) - 0000000000871839 [09:39:01]1040 (4) - 227292 [09:39:01]1012 (4) - 20.10.2024 03:36 [09:39:01]1206 (1) - 0 [09:39:01]OFD Sender: Remove packet 227292 [09:39:01]ProducePacketName [09:39:01]name=ofd_packets/00227292 [09:39:01]NVStorageDeleteData [09:39:01]Write to MH i2c: 01 00 00 B2 3E F0 [09:39:01]Write i2c OK [09:39:01]MH_I2C_Read... [09:39:01]Read from MH i2c: 01 [09:39:01]MH_I2C_Read... [09:39:01]Read from MH i2c: 01 07 00 [09:39:01]MH_I2C_Read... [09:39:01]Read from MH i2c: 01 07 00 B2 3E 00 00 00 00 00 FE 0C 01 [09:39:01]RasterBufferAndPrint [09:39:01]line [09:39:01]line [09:39:01]line [09:39:01]line [09:39:01]line [09:39:01]written 0, free lines is 3332 [09:39:01]process_action close_receipt done [09:39:01]requested_data is exist [09:39:01]produce_requested_data [09:39:01]requested_item fm.sn is exist - process it [09:39:01]wFMCommunicate request_size=4 [09:39:01]MH_SAM_APDU [09:39:01]CAPDU: 80 11 00 00 [09:39:01]Write to MH i2c: E2 08 00 B9 3E 80 11 00 00 00 00 00 00 71 [09:39:01]Write i2c OK [09:39:01]MH_I2C_Read... [09:39:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:01]Read from MH i2c: E2 [09:39:01]MH_I2C_Read... [09:39:01]Read from MH i2c: E2 17 00 [09:39:01]MH_I2C_Read... [09:39:01]Read from MH i2c: E2 17 00 B9 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C8 [09:39:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:39:01]wFMCommunicate OK [09:39:01]requested_item fd.num is exist - process it [09:39:01]SAM_PROTO_GetFieldsCounters [09:39:01]wFMCommunicate request_size=4 [09:39:01]MH_SAM_APDU [09:39:01]CAPDU: 80 13 00 00 [09:39:01]Write to MH i2c: E2 08 00 BA 3E 80 13 00 00 00 00 00 00 74 [09:39:01]Write i2c OK [09:39:01]MH_I2C_Read... [09:39:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:39:01]Read from MH i2c: E2 [09:39:01]MH_I2C_Read... [09:39:01]Read from MH i2c: E2 62 00 [09:39:01]MH_I2C_Read... [09:39:01]Read from MH i2c: E2 62 00 BA 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 DC 77 03 00 0E 04 04 00 15 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 AE [09:39: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 DC 77 03 00 0E 04 04 00 15 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 [09:39:01]wFMCommunicate OK [09:39:01]SAM_PROTO_GetFieldsCounters done [09:39:01]requested_item shift.num is exist - process it [09:39:01]requested_item shift.opened is exist - process it [09:39:01]req_shift_opened [09:39:01]FM_GetShiftState [09:39:01]SAM_PROTO_GetShiftState [09:39:01]wFMCommunicate request_size=4 [09:39:01]MH_SAM_APDU [09:39:01]CAPDU: 80 13 01 00 [09:39:01]Write to MH i2c: E2 08 00 BB 3E 80 13 01 00 00 00 00 00 76 [09:39:01]Write i2c OK [09:39:01]MH_I2C_Read... [09:39:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:01]Read from MH i2c: E2 [09:39:01]MH_I2C_Read... [09:39:01]Read from MH i2c: E2 0E 00 [09:39:01]MH_I2C_Read... [09:39:01]Read from MH i2c: E2 0E 00 BB 3E 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 90 [09:39:01]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:39:01]wFMCommunicate OK [09:39:01]SAM_PROTO_GetShiftState done [09:39:01]FM_GetShiftState done [09:39:01]req_shift_opened done [09:39:01]requested_item shift.open_date is exist - process it [09:39:01]req_shift_open_date [09:39:01]req_shift_open_date done [09:39:01]produce_requested_data done [09:39:01]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227292,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [09:39:01]process_action_free close_receipt [09:39:01]json_value_free [09:39:01]json_value_free done [09:39:01]process_json_proto returns [09:39:01]Send response to host [09:39:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227292,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [09:39:01]free response buf [09:39:01]execute_script done [09:39:01]execute_script returns [09:39:01]free content buf [09:39:01]Sock 8.Close socket [09:39:01]Sock 8.Thread stoped [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:15]accept exits with 9 [09:39:15]New connection [09:39:15]New thread 3066965348 created [09:39:15]Thread 3066821988 joined [09:39:15]Waiting for new connection... [09:39:15] Sock 9.Parse request [09:39:15]Sock 9.Check first char [09:39:15]Sock 9.First char is OK [09:39:15]request: POST /json_proto HTTP/1.0 [09:39:15]Method: POST [09:39:15]URL: /json_proto [09:39:15]Method is POST - this is cgi request [09:39:15]url: /json_proto [09:39:15]query_string will be loaded in cgi processing [09:39:15]execute_cgi json_proto POST (null) [09:39:15]execute_cgi path=json_proto method=POST [09:39:15]POST find Content-Length [09:39:15]Host: 172.17.44.195:8080 [09:39:15]Content-Length: 683 [09:39:15]Content-Type: application/json [09:39:15] [09:39:15]POST finish read [09:39:15]Found Content-Length = 683 [09:39:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962763", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:15]execute_script... [09:39:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962763", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:15]POST & json_proto [09:39:15]process_json_proto [09:39:15]json parsed OK: [09:39:15]protocol is kg_v1.0 [09:39:15]action value=close_receipt [09:39:15]process_action close_receipt [09:39:15]cmd_close_receipt [09:39:15]MH_GetDate [09:39:15]Write to MH i2c: F0 00 00 BC 3E E9 [09:39:15]Write i2c OK [09:39:15]MH_I2C_Read... [09:39:15]Read from MH i2c: F0 [09:39:15]MH_I2C_Read... [09:39:15]Read from MH i2c: F0 09 00 [09:39:15]MH_I2C_Read... [09:39:15]Read from MH i2c: F0 09 00 BC 3E 00 C7 CF 14 67 82 C9 CF 66 83 [09:39:15]GetLastDocTimeStamp 1729417143 [09:39:15]current date 1729417159 [09:39:15]FM_GetShiftState [09:39:15]SAM_PROTO_GetShiftState [09:39:15]wFMCommunicate request_size=4 [09:39:15]MH_SAM_APDU [09:39:15]CAPDU: 80 13 01 00 [09:39:15]Write to MH i2c: E2 08 00 BD 3E 80 13 01 00 00 00 00 00 78 [09:39:15]Write i2c OK [09:39:15]MH_I2C_Read... [09:39:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:15]Read from MH i2c: E2 [09:39:15]MH_I2C_Read... [09:39:15]Read from MH i2c: E2 0E 00 [09:39:15]MH_I2C_Read... [09:39:15]Read from MH i2c: E2 0E 00 BD 3E 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 92 [09:39:15]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:39:15]wFMCommunicate OK [09:39:15]SAM_PROTO_GetShiftState done [09:39:15]FM_GetShiftState done [09:39:15]opened in 1729383750 [09:39:15]opened+sec_in_day 1729470150 [09:39:15]quantity*price = 100021 [09:39:15]sum+1 = 100023 [09:39:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 141 20.10.2024 09:39 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227293 ФПД: 119887987629937 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T093919&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227293&fm=119887987629937&tin=02508201610067®Number=0000000000091685&sum=100000 [09:39:16]StoreToDocumentArchive [09:39:16]shift 533 fd 227293 [09:39:16]save to /storage/0533/doc_00227293 [09:39:16]save last doc name /storage/0533/doc_00227293 to /storage/kkm_last_doc_name [09:39:16]save OK [09:39:16]Clear old archive folders... [09:39:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:39:16]tlvbuf is 00558130 [09:39:16]SAM_PROTO_ClearQueue [09:39:16]wFMCommunicate request_size=4 [09:39:16]MH_SAM_APDU [09:39:16]CAPDU: 80 09 00 00 [09:39:16]Write to MH i2c: E2 08 00 CA 3E 80 09 00 00 00 00 00 00 7A [09:39:16]Write i2c OK [09:39:16]MH_I2C_Read... [09:39:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:39:16]Read from MH i2c: E2 [09:39:16]MH_I2C_Read... [09:39:16]Read from MH i2c: E2 03 00 [09:39:16]MH_I2C_Read... [09:39:16]Read from MH i2c: E2 03 00 CA 3E 00 90 00 7C [09:39:16]RAPDU: 90 00 [09:39:16]wFMCommunicate OK [09:39:16]SAM_PROTO_ClearQueue done [09:39:16]KKMCreateOFDPacket [09:39:16]OFDProtocolAddRootSTLVToBuf [09:39:16]FM_MakeSignedData [09:39:16]FM_MakeSignedData [09:39:16]SAM_PROTO_SignData [09:39:16]wFMCommunicate request_size=4 [09:39:16]MH_SAM_APDU [09:39:16]CAPDU: 80 0D 01 02 [09:39:16]Write to MH i2c: E2 08 00 CB 3E 80 0D 01 02 00 00 00 00 82 [09:39:16]Write i2c OK [09:39:16]MH_I2C_Read... [09:39:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:39:16]Read from MH i2c: E2 [09:39:16]MH_I2C_Read... [09:39:16]Read from MH i2c: E2 03 00 [09:39:16]MH_I2C_Read... [09:39:16]Read from MH i2c: E2 03 00 CB 3E 00 90 00 7D [09:39:16]RAPDU: 90 00 [09:39:16]wFMCommunicate OK [09:39:16]wFMCommunicate request_size=255 [09:39:16]MH_SAM_APDU [09:39:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 C7 CF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DD 77 03 00 35 04 06 00 6D [09:39:16]Write to MH i2c: E2 02 01 CC 3E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 C7 CF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DD 77 03 00 35 04 06 00 6D 00 00 AF [09:39:16]Write i2c OK [09:39:16]MH_I2C_Read... [09:39:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:16]Read from MH i2c: E2 [09:39:16]MH_I2C_Read... [09:39:16]Read from MH i2c: E2 03 00 [09:39:16]MH_I2C_Read... [09:39:16]Read from MH i2c: E2 03 00 CC 3E 00 90 00 7E [09:39:16]RAPDU: 90 00 [09:39:16]wFMCommunicate OK [09:39:16]wFMCommunicate request_size=10 [09:39:16]MH_SAM_APDU [09:39:16]CAPDU: 80 0D 02 02 05 09 98 EA 5F 71 [09:39:16]Write to MH i2c: E2 0D 00 CD 3E 80 0D 02 02 05 00 09 98 EA 5F 71 00 00 EA [09:39:16]Write i2c OK [09:39:16]MH_I2C_Read... [09:39:16]OFD Sender: No OFD packet to send [09:39:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:16]Read from MH i2c: E2 [09:39:16]MH_I2C_Read... [09:39:16]Read from MH i2c: E2 03 00 [09:39:16]MH_I2C_Read... [09:39:16]Read from MH i2c: E2 03 00 CD 3E 00 90 00 7F [09:39:16]RAPDU: 90 00 [09:39:16]wFMCommunicate OK [09:39:16]wFMCommunicate request_size=4 [09:39:16]MH_SAM_APDU [09:39:16]CAPDU: 80 0D 03 02 [09:39:16]Write to MH i2c: E2 08 00 CE 3E 80 0D 03 02 00 00 00 00 87 [09:39:16]Write i2c OK [09:39:16]MH_I2C_Read... [09:39:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:39:16]Read from MH i2c: E2 [09:39:16]MH_I2C_Read... [09:39:16]Read from MH i2c: E2 0B 00 [09:39:16]MH_I2C_Read... [09:39:16]Read from MH i2c: E2 0B 00 CE 3E 00 CE 3F 15 52 CB B6 29 5D 90 00 03 [09:39:16]RAPDU: CE 3F 15 52 CB B6 29 5D 90 00 [09:39:16]wFMCommunicate OK [09:39:16]SAM_PROTO_SignData done [09:39:16]FM_MakeSignedData done [09:39:16]CreateOFDProtocolMessage [09:39:16]wFMCommunicate request_size=4 [09:39:16]MH_SAM_APDU [09:39:16]CAPDU: 80 11 00 00 [09:39:16]Write to MH i2c: E2 08 00 CF 3E 80 11 00 00 00 00 00 00 87 [09:39:16]Write i2c OK [09:39:16]MH_I2C_Read... [09:39:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:16]Read from MH i2c: E2 [09:39:16]MH_I2C_Read... [09:39:16]Read from MH i2c: E2 17 00 [09:39:16]MH_I2C_Read... [09:39:16]Read from MH i2c: E2 17 00 CF 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 DE [09:39:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:39:16]wFMCommunicate OK [09:39:16]CreateOFDProtocolMessage done [09:39:16]OFDSenderStorePacket 227293 [09:39:16]StoreOFDPacket docnum=227293 [09:39:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 BE 63 07 01 10 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 C7 CF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DD 77 03 00 35 04 06 00 6D 09 98 EA 5F 71 CE 3F 15 52 CB B6 29 5D [09:39:16]CheckFolder [09:39:16]dirname=/storage/ofd_packets [09:39:16]CheckFolder done [09:39:16]ProducePacketName [09:39:16]name=ofd_packets/00227293 [09:39:16]NVStorageSaveData ofd_packets/00227293 [09:39:16]File name is /storage/ofd_packets/00227293 [09:39:16]Write 301 bytes [09:39:16]NVStorageSaveData done [09:39:16]OFDSenderStorePacket done [09:39:16]KKMCreateOFDPacket done [09:39:16]NVStorageSaveData kkm_last_timestamp [09:39:16]File name is /storage/kkm_last_timestamp [09:39:16]Write 4 bytes [09:39:16]NVStorageSaveData done [09:39:16]ExternCall_PrintAddStr [09:39:16]wPrintStart [09:39:16]Write to MH i2c: 01 00 00 D0 3E 0E [09:39:16]Write i2c OK [09:39:16]MH_I2C_Read... [09:39:16]Read from MH i2c: 01 [09:39:16]MH_I2C_Read... [09:39:16]Read from MH i2c: 01 07 00 [09:39:16]MH_I2C_Read... [09:39:16]Read from MH i2c: 01 07 00 D0 3E 00 00 00 00 00 FF 0F 23 [09:39:16]RasterBufferAndPrint [09:39:16]line Счет N : (1)1962763 [09:39:16]line ИНН: 02508201610067 [09:39:16]line Контрольно-Кассовый Чек [09:39:16]line ПРОДАЖА [09:39:16]line ТРК (МРК, ГНК) : 44 [09:39:16]line Товар: 2710124500 [09:39:16]line Аи-95-К-5 [09:39:16]line 13.480 * 74.20 [09:39:16]line = 1000.22 [09:39:16]line НДС 12% НСП 1% [09:39:16]line > о реализуемом товаре [09:39:16]line ОКРУГЛЕНИЕ: -0.22 [09:39:16]line ИТОГО: 1000.00 [09:39:16]line Внесено: 1000.00 [09:39:16]line СДАЧА: 0.00 [09:39:16]line НСП 1% : 8.85 [09:39:16]line НДС 12% : 106.22 [09:39:16]line Наличными: 1000.00 [09:39:16]line Безнал.: 0.00 [09:39:16]line Место: АЗС № 133 "Партнер Нефть" [09:39:16]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:39:16]line СНО: Общий режим [09:39:16]line Чек 141 20.10.2024 09:39 [09:39:16]line Смена: 533 ФФД: 1.0 [09:39:16]line ЗНМ: 0300000091 [09:39:16]line РНМ: 0000000000091685 [09:39:17]line Версия ККМ: 001 [09:39:17]line ФМ: 0000000000871839 [09:39:17]line ФД: 227293 [09:39:17]line ФПД: 119887987629937 [09:39:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T093919&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227293&fm=119887987629937&tin=02508201610067®Number=0000000000091685&sum=100000 [09:39:17]OFD Sender: Processing packet 227293 [packets to send 38, broken 37] [09:39:17]ProducePacketName [09:39:17]name=ofd_packets/00227293 [09:39:17]OFD Sender: To server: pG, [09:39:17]CommunicateWithHost lk.salyk.kg:30040 [09:39:17]ConnectInit lk.salyk.kg [09:39:17]written 0, free lines is 4095 [09:39:17]Connected sock=10 [09:39:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 BE 63 07 01 10 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 C7 CF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DD 77 03 00 35 04 06 00 6D 09 98 EA 5F 71 CE 3F 15 52 CB B6 29 5D [09:39: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 33 39 4F 00 00 00 B7 A9 47 00 1B 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DD 77 03 00 F4 03 04 00 C6 7A 14 67 B6 04 01 00 00 8A A1 DD D9 2C 9D B8 08 [09:39:17]CommunicateWithHost err = 0 [09:39:17]CheckOFDResponse [09:39:17]1017 (14) - 77093643461234 [09:39:17]1041 (16) - 0000000000871839 [09:39:17]1040 (4) - 227293 [09:39:17]1012 (4) - 20.10.2024 03:36 [09:39:17]1206 (1) - 0 [09:39:17]OFD Sender: Remove packet 227293 [09:39:17]ProducePacketName [09:39:17]name=ofd_packets/00227293 [09:39:17]NVStorageDeleteData [09:39:17]Write to MH i2c: 01 00 00 FA 3E 38 [09:39:17]Write i2c OK [09:39:17]MH_I2C_Read... [09:39:17]Read from MH i2c: 01 [09:39:17]MH_I2C_Read... [09:39:17]Read from MH i2c: 01 07 00 [09:39:17]MH_I2C_Read... [09:39:17]Read from MH i2c: 01 07 00 FA 3E 00 00 00 00 00 09 0D 55 [09:39:17]RasterBufferAndPrint [09:39:17]line [09:39:17]line [09:39:17]line [09:39:17]line [09:39:17]line [09:39:17]written 0, free lines is 3343 [09:39:17]process_action close_receipt done [09:39:17]requested_data is exist [09:39:17]produce_requested_data [09:39:17]requested_item fm.sn is exist - process it [09:39:17]wFMCommunicate request_size=4 [09:39:17]MH_SAM_APDU [09:39:17]CAPDU: 80 11 00 00 [09:39:17]Write to MH i2c: E2 08 00 01 3F 80 11 00 00 00 00 00 00 BA [09:39:17]Write i2c OK [09:39:17]MH_I2C_Read... [09:39:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:17]Read from MH i2c: E2 [09:39:17]MH_I2C_Read... [09:39:17]Read from MH i2c: E2 17 00 [09:39:17]MH_I2C_Read... [09:39:17]Read from MH i2c: E2 17 00 01 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 11 [09:39:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:39:17]wFMCommunicate OK [09:39:17]requested_item fd.num is exist - process it [09:39:17]SAM_PROTO_GetFieldsCounters [09:39:17]wFMCommunicate request_size=4 [09:39:17]MH_SAM_APDU [09:39:17]CAPDU: 80 13 00 00 [09:39:17]Write to MH i2c: E2 08 00 02 3F 80 13 00 00 00 00 00 00 BD [09:39:17]Write i2c OK [09:39:17]MH_I2C_Read... [09:39:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:39:17]Read from MH i2c: E2 [09:39:17]MH_I2C_Read... [09:39:17]Read from MH i2c: E2 62 00 [09:39:17]MH_I2C_Read... [09:39:17]Read from MH i2c: E2 62 00 02 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 DD 77 03 00 0E 04 04 00 15 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 FB [09:39:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 DD 77 03 00 0E 04 04 00 15 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 [09:39:17]wFMCommunicate OK [09:39:17]SAM_PROTO_GetFieldsCounters done [09:39:17]requested_item shift.num is exist - process it [09:39:17]requested_item shift.opened is exist - process it [09:39:17]req_shift_opened [09:39:17]FM_GetShiftState [09:39:17]SAM_PROTO_GetShiftState [09:39:17]wFMCommunicate request_size=4 [09:39:17]MH_SAM_APDU [09:39:17]CAPDU: 80 13 01 00 [09:39:17]Write to MH i2c: E2 08 00 03 3F 80 13 01 00 00 00 00 00 BF [09:39:17]Write i2c OK [09:39:17]MH_I2C_Read... [09:39:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:17]Read from MH i2c: E2 [09:39:17]MH_I2C_Read... [09:39:17]Read from MH i2c: E2 0E 00 [09:39:17]MH_I2C_Read... [09:39:17]Read from MH i2c: E2 0E 00 03 3F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 D9 [09:39:17]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:39:17]wFMCommunicate OK [09:39:17]SAM_PROTO_GetShiftState done [09:39:17]FM_GetShiftState done [09:39:17]req_shift_opened done [09:39:17]requested_item shift.open_date is exist - process it [09:39:17]req_shift_open_date [09:39:17]req_shift_open_date done [09:39:17]produce_requested_data done [09:39:17]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227293,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [09:39:17]process_action_free close_receipt [09:39:17]json_value_free [09:39:17]json_value_free done [09:39:17]process_json_proto returns [09:39:17]Send response to host [09:39:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227293,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [09:39:17]free response buf [09:39:17]execute_script done [09:39:17]execute_script returns [09:39:17]free content buf [09:39:17]Sock 9.Close socket [09:39:17]Sock 9.Thread stoped [09:39:18]OFD Sender: No OFD packet to send [09:39:23]OFD Sender: No OFD packet to send [09:39:28]OFD Sender: No OFD packet to send [09:39:30]accept exits with 8 [09:39:30]New connection [09:39:30]New thread 3066821988 created [09:39:30]Thread 3066965348 joined [09:39:30]Waiting for new connection... [09:39:30] Sock 8.Parse request [09:39:30]Sock 8.Check first char [09:39:30]Sock 8.First char is OK [09:39:30]request: POST /json_proto HTTP/1.0 [09:39:30]Method: POST [09:39:30]URL: /json_proto [09:39:30]Method is POST - this is cgi request [09:39:30]url: /json_proto [09:39:30]query_string will be loaded in cgi processing [09:39:30]execute_cgi json_proto POST (null) [09:39:30]execute_cgi path=json_proto method=POST [09:39:30]POST find Content-Length [09:39:30]Host: 172.17.44.195:8080 [09:39:30]Content-Length: 678 [09:39:30]Content-Type: application/json [09:39:30] [09:39:30]POST finish read [09:39:30]Found Content-Length = 678 [09:39:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962764", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:30]execute_script... [09:39: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)1962764", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:30]POST & json_proto [09:39:30]process_json_proto [09:39:30]json parsed OK: [09:39:30]protocol is kg_v1.0 [09:39:30]action value=close_receipt [09:39:30]process_action close_receipt [09:39:30]cmd_close_receipt [09:39:30]MH_GetDate [09:39:30]Write to MH i2c: F0 00 00 04 3F 32 [09:39:30]Write i2c OK [09:39:30]MH_I2C_Read... [09:39:30]Read from MH i2c: F0 [09:39:30]MH_I2C_Read... [09:39:30]Read from MH i2c: F0 09 00 [09:39:30]MH_I2C_Read... [09:39:30]Read from MH i2c: F0 09 00 04 3F 00 D7 CF 14 67 82 C9 CF 66 DC [09:39:30]GetLastDocTimeStamp 1729417159 [09:39:30]current date 1729417175 [09:39:30]FM_GetShiftState [09:39:30]SAM_PROTO_GetShiftState [09:39:30]wFMCommunicate request_size=4 [09:39:30]MH_SAM_APDU [09:39:30]CAPDU: 80 13 01 00 [09:39:30]Write to MH i2c: E2 08 00 05 3F 80 13 01 00 00 00 00 00 C1 [09:39:30]Write i2c OK [09:39:30]MH_I2C_Read... [09:39:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:31]Read from MH i2c: E2 [09:39:31]MH_I2C_Read... [09:39:31]Read from MH i2c: E2 0E 00 [09:39:31]MH_I2C_Read... [09:39:31]Read from MH i2c: E2 0E 00 05 3F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 DB [09:39:31]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:39:31]wFMCommunicate OK [09:39:31]SAM_PROTO_GetShiftState done [09:39:31]FM_GetShiftState done [09:39:31]opened in 1729383750 [09:39:31]opened+sec_in_day 1729470150 [09:39:31]quantity*price = 50041 [09:39:31]sum+1 = 50042 [09:39:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 142 20.10.2024 09:39 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227294 ФПД: 83313368382558 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T093935&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227294&fm=83313368382558&tin=02508201610067®Number=0000000000091685&sum=50000 [09:39:32]StoreToDocumentArchive [09:39:32]shift 533 fd 227294 [09:39:32]save to /storage/0533/doc_00227294 [09:39:32]save last doc name /storage/0533/doc_00227294 to /storage/kkm_last_doc_name [09:39:32]save OK [09:39:32]Clear old archive folders... [09:39:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:39:32]tlvbuf is 0065C490 [09:39:32]SAM_PROTO_ClearQueue [09:39:32]wFMCommunicate request_size=4 [09:39:32]MH_SAM_APDU [09:39:32]CAPDU: 80 09 00 00 [09:39:32]Write to MH i2c: E2 08 00 12 3F 80 09 00 00 00 00 00 00 C3 [09:39:32]Write i2c OK [09:39:32]MH_I2C_Read... [09:39:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:39:32]Read from MH i2c: E2 [09:39:32]MH_I2C_Read... [09:39:32]Read from MH i2c: E2 03 00 [09:39:32]MH_I2C_Read... [09:39:32]Read from MH i2c: E2 03 00 12 3F 00 90 00 C5 [09:39:32]RAPDU: 90 00 [09:39:32]wFMCommunicate OK [09:39:32]SAM_PROTO_ClearQueue done [09:39:32]KKMCreateOFDPacket [09:39:32]OFDProtocolAddRootSTLVToBuf [09:39:32]FM_MakeSignedData [09:39:32]FM_MakeSignedData [09:39:32]SAM_PROTO_SignData [09:39:32]wFMCommunicate request_size=4 [09:39:32]MH_SAM_APDU [09:39:32]CAPDU: 80 0D 01 02 [09:39:32]Write to MH i2c: E2 08 00 13 3F 80 0D 01 02 00 00 00 00 CB [09:39:32]Write i2c OK [09:39:32]MH_I2C_Read... [09:39:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:39:32]Read from MH i2c: E2 [09:39:32]MH_I2C_Read... [09:39:32]Read from MH i2c: E2 03 00 [09:39:32]MH_I2C_Read... [09:39:32]Read from MH i2c: E2 03 00 13 3F 00 90 00 C6 [09:39:32]RAPDU: 90 00 [09:39:32]wFMCommunicate OK [09:39:32]wFMCommunicate request_size=255 [09:39:32]MH_SAM_APDU [09:39:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 D7 CF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DE 77 03 00 35 04 06 00 4B [09:39:32]Write to MH i2c: E2 02 01 14 3F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 D7 CF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DE 77 03 00 35 04 06 00 4B 00 00 CB [09:39:32]Write i2c OK [09:39:32]MH_I2C_Read... [09:39:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:32]Read from MH i2c: E2 [09:39:32]MH_I2C_Read... [09:39:32]Read from MH i2c: E2 03 00 [09:39:32]MH_I2C_Read... [09:39:32]Read from MH i2c: E2 03 00 14 3F 00 90 00 C7 [09:39:32]RAPDU: 90 00 [09:39:32]wFMCommunicate OK [09:39:32]wFMCommunicate request_size=10 [09:39:32]MH_SAM_APDU [09:39:32]CAPDU: 80 0D 02 02 05 C5 E7 BA 3C 5E [09:39:32]Write to MH i2c: E2 0D 00 15 3F 80 0D 02 02 05 00 C5 E7 BA 3C 5E 00 00 D8 [09:39:32]Write i2c OK [09:39:32]MH_I2C_Read... [09:39:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:32]Read from MH i2c: E2 [09:39:32]MH_I2C_Read... [09:39:32]Read from MH i2c: E2 03 00 [09:39:32]MH_I2C_Read... [09:39:32]Read from MH i2c: E2 03 00 15 3F 00 90 00 C8 [09:39:32]RAPDU: 90 00 [09:39:32]wFMCommunicate OK [09:39:32]wFMCommunicate request_size=4 [09:39:32]MH_SAM_APDU [09:39:32]CAPDU: 80 0D 03 02 [09:39:32]Write to MH i2c: E2 08 00 16 3F 80 0D 03 02 00 00 00 00 D0 [09:39:32]Write i2c OK [09:39:32]MH_I2C_Read... [09:39:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:39:32]Read from MH i2c: E2 [09:39:32]MH_I2C_Read... [09:39:32]Read from MH i2c: E2 0B 00 [09:39:32]MH_I2C_Read... [09:39:32]Read from MH i2c: E2 0B 00 16 3F 00 5A 36 3F DC B7 08 23 EE 90 00 4C [09:39:32]RAPDU: 5A 36 3F DC B7 08 23 EE 90 00 [09:39:32]wFMCommunicate OK [09:39:32]SAM_PROTO_SignData done [09:39:32]FM_MakeSignedData done [09:39:32]CreateOFDProtocolMessage [09:39:32]wFMCommunicate request_size=4 [09:39:32]MH_SAM_APDU [09:39:32]CAPDU: 80 11 00 00 [09:39:32]Write to MH i2c: E2 08 00 17 3F 80 11 00 00 00 00 00 00 D0 [09:39:32]Write i2c OK [09:39:32]MH_I2C_Read... [09:39:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:32]Read from MH i2c: E2 [09:39:32]MH_I2C_Read... [09:39:32]Read from MH i2c: E2 17 00 [09:39:32]MH_I2C_Read... [09:39:32]Read from MH i2c: E2 17 00 17 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 27 [09:39:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:39:32]wFMCommunicate OK [09:39:32]CreateOFDProtocolMessage done [09:39:32]OFDSenderStorePacket 227294 [09:39:32]StoreOFDPacket docnum=227294 [09:39:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 27 81 07 01 50 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 D7 CF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DE 77 03 00 35 04 06 00 4B C5 E7 BA 3C 5E 5A 36 3F DC B7 08 23 EE [09:39:32]CheckFolder [09:39:32]dirname=/storage/ofd_packets [09:39:32]CheckFolder done [09:39:32]ProducePacketName [09:39:32]name=ofd_packets/00227294 [09:39:32]NVStorageSaveData ofd_packets/00227294 [09:39:32]File name is /storage/ofd_packets/00227294 [09:39:32]Write 301 bytes [09:39:32]NVStorageSaveData done [09:39:32]OFDSenderStorePacket done [09:39:32]KKMCreateOFDPacket done [09:39:32]NVStorageSaveData kkm_last_timestamp [09:39:32]File name is /storage/kkm_last_timestamp [09:39:32]Write 4 bytes [09:39:32]NVStorageSaveData done [09:39:32]ExternCall_PrintAddStr [09:39:32]wPrintStart [09:39:32]Write to MH i2c: 01 00 00 18 3F 57 [09:39:32]Write i2c OK [09:39:32]MH_I2C_Read... [09:39:32]Read from MH i2c: 01 [09:39:32]MH_I2C_Read... [09:39:32]Read from MH i2c: 01 07 00 [09:39:32]MH_I2C_Read... [09:39:32]Read from MH i2c: 01 07 00 18 3F 00 00 00 00 00 FF 0F 6C [09:39:32]RasterBufferAndPrint [09:39:32]line Счет N : (1)1962764 [09:39:32]line ИНН: 02508201610067 [09:39:32]line Контрольно-Кассовый Чек [09:39:32]line ПРОДАЖА [09:39:32]line ТРК (МРК, ГНК) : 53 [09:39:32]line Товар: 2710124130 [09:39:32]line Аи-92-К-5 [09:39:32]line 7.480 * 66.90 [09:39:32]line = 500.41 [09:39:32]line НДС 12% НСП 1% [09:39:32]line > о реализуемом товаре [09:39:32]line ОКРУГЛЕНИЕ: -0.41 [09:39:32]line ИТОГО: 500.00 [09:39:32]line Внесено: 500.00 [09:39:32]line СДАЧА: 0.00 [09:39:32]line НСП 1% : 4.43 [09:39:32]line НДС 12% : 53.14 [09:39:32]line Наличными: 500.00 [09:39:32]line Безнал.: 0.00 [09:39:32]line Место: АЗС № 133 "Партнер Нефть" [09:39:32]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:39:32]line СНО: Общий режим [09:39:32]line Чек 142 20.10.2024 09:39 [09:39:32]line Смена: 533 ФФД: 1.0 [09:39:32]line ЗНМ: 0300000091 [09:39:32]line РНМ: 0000000000091685 [09:39:32]line Версия ККМ: 001 [09:39:32]line ФМ: 0000000000871839 [09:39:32]line ФД: 227294 [09:39:32]line ФПД: 83313368382558 [09:39:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T093935&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227294&fm=83313368382558&tin=02508201610067®Number=0000000000091685&sum=50000 [09:39:33]OFD Sender: Processing packet 227294 [packets to send 38, broken 37] [09:39:33]ProducePacketName [09:39:33]name=ofd_packets/00227294 [09:39:33]OFD Sender: To server: pG, [09:39:33]CommunicateWithHost lk.salyk.kg:30040 [09:39:33]ConnectInit lk.salyk.kg [09:39:33]written 0, free lines is 4095 [09:39:33]Connected sock=10 [09: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 33 39 0F 01 00 00 27 81 07 01 50 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 D7 CF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DE 77 03 00 35 04 06 00 4B C5 E7 BA 3C 5E 5A 36 3F DC B7 08 23 EE [09: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 33 39 4F 00 00 00 58 94 47 00 D8 DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DE 77 03 00 F4 03 04 00 D6 7A 14 67 B6 04 01 00 00 DA 5D 95 62 D5 5B F0 5F [09:39:33]CommunicateWithHost err = 0 [09:39:33]CheckOFDResponse [09:39:33]1017 (14) - 77093643461234 [09:39:33]1041 (16) - 0000000000871839 [09:39:33]1040 (4) - 227294 [09:39:33]1012 (4) - 20.10.2024 03:36 [09:39:33]1206 (1) - 0 [09:39:33]OFD Sender: Remove packet 227294 [09:39:33]ProducePacketName [09:39:33]name=ofd_packets/00227294 [09:39:33]NVStorageDeleteData [09:39:33]Write to MH i2c: 01 00 00 42 3F 81 [09:39:33]Write i2c OK [09:39:33]MH_I2C_Read... [09:39:33]Read from MH i2c: 01 [09:39:33]MH_I2C_Read... [09:39:33]Read from MH i2c: 01 07 00 [09:39:33]MH_I2C_Read... [09:39:33]Read from MH i2c: 01 07 00 42 3F 00 00 00 00 00 02 0D 97 [09:39:33]RasterBufferAndPrint [09:39:33]line [09:39:33]line [09:39:33]line [09:39:33]line [09:39:33]line [09:39:33]written 0, free lines is 3336 [09:39:33]process_action close_receipt done [09:39:33]requested_data is exist [09:39:33]produce_requested_data [09:39:33]requested_item fm.sn is exist - process it [09:39:33]wFMCommunicate request_size=4 [09:39:33]MH_SAM_APDU [09:39:33]CAPDU: 80 11 00 00 [09:39:33]Write to MH i2c: E2 08 00 49 3F 80 11 00 00 00 00 00 00 02 [09:39:33]Write i2c OK [09:39:33]MH_I2C_Read... [09:39:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:33]Read from MH i2c: E2 [09:39:33]MH_I2C_Read... [09:39:33]Read from MH i2c: E2 17 00 [09:39:33]MH_I2C_Read... [09:39:33]Read from MH i2c: E2 17 00 49 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 59 [09:39:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:39:33]wFMCommunicate OK [09:39:33]requested_item fd.num is exist - process it [09:39:33]SAM_PROTO_GetFieldsCounters [09:39:33]wFMCommunicate request_size=4 [09:39:33]MH_SAM_APDU [09:39:33]CAPDU: 80 13 00 00 [09:39:33]Write to MH i2c: E2 08 00 4A 3F 80 13 00 00 00 00 00 00 05 [09:39:33]Write i2c OK [09:39:33]MH_I2C_Read... [09:39:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:39:33]Read from MH i2c: E2 [09:39:33]MH_I2C_Read... [09:39:33]Read from MH i2c: E2 62 00 [09:39:33]MH_I2C_Read... [09:39:33]Read from MH i2c: E2 62 00 4A 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 DE 77 03 00 0E 04 04 00 15 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 47 [09:39: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 DE 77 03 00 0E 04 04 00 15 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 [09:39:33]wFMCommunicate OK [09:39:33]SAM_PROTO_GetFieldsCounters done [09:39:33]requested_item shift.num is exist - process it [09:39:33]requested_item shift.opened is exist - process it [09:39:33]req_shift_opened [09:39:33]FM_GetShiftState [09:39:33]SAM_PROTO_GetShiftState [09:39:33]wFMCommunicate request_size=4 [09:39:33]MH_SAM_APDU [09:39:33]CAPDU: 80 13 01 00 [09:39:33]Write to MH i2c: E2 08 00 4B 3F 80 13 01 00 00 00 00 00 07 [09:39:33]Write i2c OK [09:39:33]MH_I2C_Read... [09:39:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:33]Read from MH i2c: E2 [09:39:33]MH_I2C_Read... [09:39:33]Read from MH i2c: E2 0E 00 [09:39:33]MH_I2C_Read... [09:39:33]Read from MH i2c: E2 0E 00 4B 3F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 21 [09:39:33]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:39:33]wFMCommunicate OK [09:39:33]SAM_PROTO_GetShiftState done [09:39:33]FM_GetShiftState done [09:39:33]req_shift_opened done [09:39:33]requested_item shift.open_date is exist - process it [09:39:33]req_shift_open_date [09:39:33]req_shift_open_date done [09:39:33]produce_requested_data done [09:39:33]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227294,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [09:39:33]process_action_free close_receipt [09:39:33]json_value_free [09:39:33]json_value_free done [09:39:33]process_json_proto returns [09:39:33]Send response to host [09:39:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227294,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [09:39:33]free response buf [09:39:33]execute_script done [09:39:33]execute_script returns [09:39:33]free content buf [09:39:33]Sock 8.Close socket [09:39:33]Sock 8.Thread stoped [09:39:33]OFD Sender: No OFD packet to send [09:39:38]OFD Sender: No OFD packet to send [09:39:43]OFD Sender: No OFD packet to send [09:39:48]OFD Sender: No OFD packet to send [09:39:53]OFD Sender: No OFD packet to send [09:39:58]OFD Sender: No OFD packet to send [09:40:03]OFD Sender: No OFD packet to send [09:40:08]OFD Sender: No OFD packet to send [09:40:13]OFD Sender: No OFD packet to send [09:40:16]accept exits with 9 [09:40:16]New connection [09:40:16]New thread 3066965348 created [09:40:16]Thread 3066821988 joined [09:40:16]Waiting for new connection... [09:40:16] Sock 9.Parse request [09:40:16]Sock 9.Check first char [09:40:16]Sock 9.First char is OK [09:40:16]request: POST /json_proto HTTP/1.0 [09:40:16]Method: POST [09:40:16]URL: /json_proto [09:40:16]Method is POST - this is cgi request [09:40:16]url: /json_proto [09:40:16]query_string will be loaded in cgi processing [09:40:16]execute_cgi json_proto POST (null) [09:40:16]execute_cgi path=json_proto method=POST [09:40:16]POST find Content-Length [09:40:16]Host: 172.17.44.195:8080 [09:40:16]Content-Length: 678 [09:40:16]Content-Type: application/json [09:40:16] [09:40:16]POST finish read [09:40:16]Found Content-Length = 678 [09:40:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962766", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:16]execute_script... [09:40:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962766", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:16]POST & json_proto [09:40:16]process_json_proto [09:40:16]json parsed OK: [09:40:16]protocol is kg_v1.0 [09:40:16]action value=close_receipt [09:40:16]process_action close_receipt [09:40:16]cmd_close_receipt [09:40:16]MH_GetDate [09:40:16]Write to MH i2c: F0 00 00 4C 3F 7A [09:40:16]Write i2c OK [09:40:16]MH_I2C_Read... [09:40:16]Read from MH i2c: F0 [09:40:16]MH_I2C_Read... [09:40:16]Read from MH i2c: F0 09 00 [09:40:16]MH_I2C_Read... [09:40:16]Read from MH i2c: F0 09 00 4C 3F 00 04 D0 14 67 82 C9 CF 66 52 [09:40:16]GetLastDocTimeStamp 1729417175 [09:40:16]current date 1729417220 [09:40:16]FM_GetShiftState [09:40:16]SAM_PROTO_GetShiftState [09:40:16]wFMCommunicate request_size=4 [09:40:16]MH_SAM_APDU [09:40:16]CAPDU: 80 13 01 00 [09:40:16]Write to MH i2c: E2 08 00 4D 3F 80 13 01 00 00 00 00 00 09 [09:40:16]Write i2c OK [09:40:16]MH_I2C_Read... [09:40:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:16]Read from MH i2c: E2 [09:40:16]MH_I2C_Read... [09:40:16]Read from MH i2c: E2 0E 00 [09:40:16]MH_I2C_Read... [09:40:16]Read from MH i2c: E2 0E 00 4D 3F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 23 [09:40:16]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:40:16]wFMCommunicate OK [09:40:16]SAM_PROTO_GetShiftState done [09:40:16]FM_GetShiftState done [09:40:16]opened in 1729383750 [09:40:16]opened+sec_in_day 1729470150 [09:40:16]quantity*price = 50041 [09:40:16]sum+1 = 50042 [09:40:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 143 20.10.2024 09:40 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227295 ФПД: 242619263109464 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T094020&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227295&fm=242619263109464&tin=02508201610067®Number=0000000000091685&sum=50000 [09:40:17]StoreToDocumentArchive [09:40:17]shift 533 fd 227295 [09:40:17]save to /storage/0533/doc_00227295 [09:40:17]save last doc name /storage/0533/doc_00227295 to /storage/kkm_last_doc_name [09:40:17]save OK [09:40:17]Clear old archive folders... [09:40:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:40:17]tlvbuf is 0057A8B0 [09:40:17]SAM_PROTO_ClearQueue [09:40:17]wFMCommunicate request_size=4 [09:40:17]MH_SAM_APDU [09:40:17]CAPDU: 80 09 00 00 [09:40:17]Write to MH i2c: E2 08 00 5A 3F 80 09 00 00 00 00 00 00 0B [09:40:17]Write i2c OK [09:40:17]MH_I2C_Read... [09:40:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:40:17]Read from MH i2c: E2 [09:40:17]MH_I2C_Read... [09:40:17]Read from MH i2c: E2 03 00 [09:40:17]MH_I2C_Read... [09:40:17]Read from MH i2c: E2 03 00 5A 3F 00 90 00 0D [09:40:17]RAPDU: 90 00 [09:40:17]wFMCommunicate OK [09:40:17]SAM_PROTO_ClearQueue done [09:40:17]KKMCreateOFDPacket [09:40:17]OFDProtocolAddRootSTLVToBuf [09:40:17]FM_MakeSignedData [09:40:17]FM_MakeSignedData [09:40:17]SAM_PROTO_SignData [09:40:17]wFMCommunicate request_size=4 [09:40:17]MH_SAM_APDU [09:40:17]CAPDU: 80 0D 01 02 [09:40:17]Write to MH i2c: E2 08 00 5B 3F 80 0D 01 02 00 00 00 00 13 [09:40:17]Write i2c OK [09:40:17]MH_I2C_Read... [09:40:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:40:17]Read from MH i2c: E2 [09:40:17]MH_I2C_Read... [09:40:17]Read from MH i2c: E2 03 00 [09:40:17]MH_I2C_Read... [09:40:17]Read from MH i2c: E2 03 00 5B 3F 00 90 00 0E [09:40:17]RAPDU: 90 00 [09:40:17]wFMCommunicate OK [09:40:17]wFMCommunicate request_size=255 [09:40:17]MH_SAM_APDU [09:40:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 04 D0 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DF 77 03 00 35 04 06 00 DC [09:40:17]Write to MH i2c: E2 02 01 5C 3F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 04 D0 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DF 77 03 00 35 04 06 00 DC 00 00 D4 [09:40:17]Write i2c OK [09:40:17]MH_I2C_Read... [09:40:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:17]Read from MH i2c: E2 [09:40:17]MH_I2C_Read... [09:40:17]Read from MH i2c: E2 03 00 [09:40:17]MH_I2C_Read... [09:40:17]Read from MH i2c: E2 03 00 5C 3F 00 90 00 0F [09:40:17]RAPDU: 90 00 [09:40:17]wFMCommunicate OK [09:40:17]wFMCommunicate request_size=10 [09:40:17]MH_SAM_APDU [09:40:17]CAPDU: 80 0D 02 02 05 A9 32 FE 49 58 [09:40:17]Write to MH i2c: E2 0D 00 5D 3F 80 0D 02 02 05 00 A9 32 FE 49 58 00 00 9A [09:40:17]Write i2c OK [09:40:17]MH_I2C_Read... [09:40:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:17]Read from MH i2c: E2 [09:40:17]MH_I2C_Read... [09:40:17]Read from MH i2c: E2 03 00 [09:40:17]MH_I2C_Read... [09:40:17]Read from MH i2c: E2 03 00 5D 3F 00 90 00 10 [09:40:17]RAPDU: 90 00 [09:40:17]wFMCommunicate OK [09:40:17]wFMCommunicate request_size=4 [09:40:17]MH_SAM_APDU [09:40:17]CAPDU: 80 0D 03 02 [09:40:17]Write to MH i2c: E2 08 00 5E 3F 80 0D 03 02 00 00 00 00 18 [09:40:17]Write i2c OK [09:40:17]MH_I2C_Read... [09:40:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:40:17]Read from MH i2c: E2 [09:40:17]MH_I2C_Read... [09:40:17]Read from MH i2c: E2 0B 00 [09:40:17]MH_I2C_Read... [09:40:17]Read from MH i2c: E2 0B 00 5E 3F 00 40 E0 87 EF 84 CB 45 D5 90 00 18 [09:40:17]RAPDU: 40 E0 87 EF 84 CB 45 D5 90 00 [09:40:17]wFMCommunicate OK [09:40:17]SAM_PROTO_SignData done [09:40:17]FM_MakeSignedData done [09:40:17]CreateOFDProtocolMessage [09:40:17]wFMCommunicate request_size=4 [09:40:17]MH_SAM_APDU [09:40:17]CAPDU: 80 11 00 00 [09:40:17]Write to MH i2c: E2 08 00 5F 3F 80 11 00 00 00 00 00 00 18 [09:40:17]Write i2c OK [09:40:17]MH_I2C_Read... [09:40:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:17]Read from MH i2c: E2 [09:40:17]MH_I2C_Read... [09:40:17]Read from MH i2c: E2 17 00 [09:40:17]MH_I2C_Read... [09:40:17]Read from MH i2c: E2 17 00 5F 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 6F [09:40:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:40:17]wFMCommunicate OK [09:40:17]CreateOFDProtocolMessage done [09:40:17]OFDSenderStorePacket 227295 [09:40:17]StoreOFDPacket docnum=227295 [09:40:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 61 A4 07 01 7B 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 04 D0 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DF 77 03 00 35 04 06 00 DC A9 32 FE 49 58 40 E0 87 EF 84 CB 45 D5 [09:40:17]CheckFolder [09:40:17]dirname=/storage/ofd_packets [09:40:17]CheckFolder done [09:40:17]ProducePacketName [09:40:17]name=ofd_packets/00227295 [09:40:17]NVStorageSaveData ofd_packets/00227295 [09:40:17]File name is /storage/ofd_packets/00227295 [09:40:17]Write 301 bytes [09:40:17]NVStorageSaveData done [09:40:17]OFDSenderStorePacket done [09:40:17]KKMCreateOFDPacket done [09:40:17]NVStorageSaveData kkm_last_timestamp [09:40:17]File name is /storage/kkm_last_timestamp [09:40:17]Write 4 bytes [09:40:17]NVStorageSaveData done [09:40:17]OFD Sender: Processing packet 227295 [packets to send 38, broken 37] [09:40:17]ProducePacketName [09:40:17]name=ofd_packets/00227295 [09:40:17]OFD Sender: To server: pG, [09:40:17]CommunicateWithHost lk.salyk.kg:30040 [09:40:17]ConnectInit lk.salyk.kg [09:40:17]ExternCall_PrintAddStr [09:40:17]wPrintStart [09:40:17]Write to MH i2c: 01 00 00 60 3F 9F [09:40:17]Write i2c OK [09:40:17]MH_I2C_Read... [09:40:17]Read from MH i2c: 01 [09:40:17]MH_I2C_Read... [09:40:17]Read from MH i2c: 01 07 00 [09:40:17]MH_I2C_Read... [09:40:17]Read from MH i2c: 01 07 00 60 3F 00 00 00 00 00 FF 0F B4 [09:40:17]RasterBufferAndPrint [09:40:17]line Счет N : (1)1962766 [09:40:17]line ИНН: 02508201610067 [09:40:17]line Контрольно-Кассовый Чек [09:40:17]line ПРОДАЖА [09:40:17]line ТРК (МРК, ГНК) : 63 [09:40:17]line Товар: 2710124130 [09:40:17]line Аи-92-К-5 [09:40:17]line 7.480 * 66.90 [09:40:17]line = 500.41 [09:40:17]line НДС 12% НСП 1% [09:40:17]line > о реализуемом товаре [09:40:17]line ОКРУГЛЕНИЕ: -0.41 [09:40:17]line ИТОГО: 500.00 [09:40:17]line Внесено: 500.00 [09:40:17]line СДАЧА: 0.00 [09:40:17]line НСП 1% : 4.43 [09:40:17]line НДС 12% : 53.14 [09:40:17]line Наличными: 500.00 [09:40:17]line Безнал.: 0.00 [09:40:17]line Место: АЗС № 133 "Партнер Нефть" [09:40:17]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:40:17]line СНО: Общий режим [09:40:17]line Чек 143 20.10.2024 09:40 [09:40:17]line Смена: 533 ФФД: 1.0 [09:40:17]line ЗНМ: 0300000091 [09:40:17]line РНМ: 0000000000091685 [09:40:17]line Версия ККМ: 001 [09:40:17]line ФМ: 0000000000871839 [09:40:17]line ФД: 227295 [09:40:17]line ФПД: 242619263109464 [09:40:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T094020&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227295&fm=242619263109464&tin=02508201610067®Number=0000000000091685&sum=50000 [09:40:18]Connected sock=11 [09:40:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 61 A4 07 01 7B 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 04 D0 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DF 77 03 00 35 04 06 00 DC A9 32 FE 49 58 40 E0 87 EF 84 CB 45 D5 [09:40:18]written 0, free lines is 4095 [09:40: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 33 39 4F 00 00 00 7D 95 47 00 AB 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 33 39 10 04 04 00 DF 77 03 00 F4 03 04 00 03 7B 14 67 B6 04 01 00 00 F3 92 25 E2 9E 1F B3 C2 [09:40:18]CommunicateWithHost err = 0 [09:40:18]CheckOFDResponse [09:40:18]1017 (14) - 77093643461234 [09:40:18]1041 (16) - 0000000000871839 [09:40:18]1040 (4) - 227295 [09:40:18]1012 (4) - 20.10.2024 03:37 [09:40:18]1206 (1) - 0 [09:40:18]OFD Sender: Remove packet 227295 [09:40:18]ProducePacketName [09:40:18]name=ofd_packets/00227295 [09:40:18]NVStorageDeleteData [09:40:18]Write to MH i2c: 01 00 00 8A 3F C9 [09:40:18]Write i2c OK [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: 01 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: 01 07 00 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: 01 07 00 8A 3F 00 00 00 00 00 0C 0D E9 [09:40:18]RasterBufferAndPrint [09:40:18]line [09:40:18]line [09:40:18]line [09:40:18]line [09:40:18]line [09:40:18]written 0, free lines is 3346 [09:40:18]process_action close_receipt done [09:40:18]requested_data is exist [09:40:18]produce_requested_data [09:40:18]requested_item fm.sn is exist - process it [09:40:18]wFMCommunicate request_size=4 [09:40:18]MH_SAM_APDU [09:40:18]CAPDU: 80 11 00 00 [09:40:18]Write to MH i2c: E2 08 00 91 3F 80 11 00 00 00 00 00 00 4A [09:40:18]Write i2c OK [09:40:18]MH_I2C_Read... [09:40:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:18]Read from MH i2c: E2 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 17 00 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 17 00 91 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A1 [09:40:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:40:18]wFMCommunicate OK [09:40:18]requested_item fd.num is exist - process it [09:40:18]SAM_PROTO_GetFieldsCounters [09:40:18]wFMCommunicate request_size=4 [09:40:18]MH_SAM_APDU [09:40:18]CAPDU: 80 13 00 00 [09:40:18]Write to MH i2c: E2 08 00 92 3F 80 13 00 00 00 00 00 00 4D [09:40:18]Write i2c OK [09:40:18]MH_I2C_Read... [09:40:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:40:18]Read from MH i2c: E2 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 62 00 [09:40:18]MH_I2C_Read... [09:40:18]OFD Sender: No OFD packet to send [09:40:18]Read from MH i2c: E2 62 00 92 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 DF 77 03 00 0E 04 04 00 15 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 93 [09:40: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 DF 77 03 00 0E 04 04 00 15 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 [09:40:18]wFMCommunicate OK [09:40:18]SAM_PROTO_GetFieldsCounters done [09:40:18]requested_item shift.num is exist - process it [09:40:18]requested_item shift.opened is exist - process it [09:40:18]req_shift_opened [09:40:18]FM_GetShiftState [09:40:18]SAM_PROTO_GetShiftState [09:40:18]wFMCommunicate request_size=4 [09:40:18]MH_SAM_APDU [09:40:18]CAPDU: 80 13 01 00 [09:40:18]Write to MH i2c: E2 08 00 93 3F 80 13 01 00 00 00 00 00 4F [09:40:18]Write i2c OK [09:40:18]MH_I2C_Read... [09:40:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:18]Read from MH i2c: E2 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 0E 00 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 0E 00 93 3F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 69 [09:40:18]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:40:18]wFMCommunicate OK [09:40:18]SAM_PROTO_GetShiftState done [09:40:18]FM_GetShiftState done [09:40:18]req_shift_opened done [09:40:18]requested_item shift.open_date is exist - process it [09:40:18]req_shift_open_date [09:40:18]req_shift_open_date done [09:40:18]produce_requested_data done [09:40:18]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227295,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [09:40:18]process_action_free close_receipt [09:40:18]json_value_free [09:40:18]json_value_free done [09:40:18]process_json_proto returns [09:40:18]Send response to host [09:40:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227295,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [09:40:18]free response buf [09:40:18]execute_script done [09:40:18]execute_script returns [09:40:18]free content buf [09:40:18]Sock 9.Close socket [09:40:18]Sock 9.Thread stoped [09:40:23]OFD Sender: No OFD packet to send [09:40:28]OFD Sender: No OFD packet to send [09:40:32]accept exits with 8 [09:40:32]New connection [09:40:32]New thread 3066821988 created [09:40:32]Thread 3066965348 joined [09:40:32]Waiting for new connection... [09:40:32] Sock 8.Parse request [09:40:32]Sock 8.Check first char [09:40:32]Sock 8.First char is OK [09:40:32]request: POST /json_proto HTTP/1.0 [09:40:32]Method: POST [09:40:32]URL: /json_proto [09:40:32]Method is POST - this is cgi request [09:40:32]url: /json_proto [09:40:32]query_string will be loaded in cgi processing [09:40:32]execute_cgi json_proto POST (null) [09:40:32]execute_cgi path=json_proto method=POST [09:40:32]POST find Content-Length [09:40:32]Host: 172.17.44.195:8080 [09:40:32]Content-Length: 680 [09:40:32]Content-Type: application/json [09:40:32] [09:40:32]POST finish read [09:40:32]Found Content-Length = 680 [09:40:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962765", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:32]execute_script... [09:40: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)1962765", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:32]POST & json_proto [09:40:32]process_json_proto [09:40:32]json parsed OK: [09:40:32]protocol is kg_v1.0 [09:40:32]action value=close_receipt [09:40:32]process_action close_receipt [09:40:32]cmd_close_receipt [09:40:32]MH_GetDate [09:40:32]Write to MH i2c: F0 00 00 94 3F C2 [09:40:32]Write i2c OK [09:40:32]MH_I2C_Read... [09:40:32]Read from MH i2c: F0 [09:40:32]MH_I2C_Read... [09:40:32]Read from MH i2c: F0 09 00 [09:40:32]MH_I2C_Read... [09:40:32]Read from MH i2c: F0 09 00 94 3F 00 14 D0 14 67 82 C9 CF 66 AA [09:40:32]GetLastDocTimeStamp 1729417220 [09:40:32]current date 1729417236 [09:40:32]FM_GetShiftState [09:40:32]SAM_PROTO_GetShiftState [09:40:32]wFMCommunicate request_size=4 [09:40:32]MH_SAM_APDU [09:40:32]CAPDU: 80 13 01 00 [09:40:32]Write to MH i2c: E2 08 00 95 3F 80 13 01 00 00 00 00 00 51 [09:40:32]Write i2c OK [09:40:32]MH_I2C_Read... [09:40:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:32]Read from MH i2c: E2 [09:40:32]MH_I2C_Read... [09:40:32]Read from MH i2c: E2 0E 00 [09:40:32]MH_I2C_Read... [09:40:32]Read from MH i2c: E2 0E 00 95 3F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 6B [09:40:32]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:40:32]wFMCommunicate OK [09:40:32]SAM_PROTO_GetShiftState done [09:40:32]FM_GetShiftState done [09:40:32]opened in 1729383750 [09:40:32]opened+sec_in_day 1729470150 [09:40:32]quantity*price = 200025 [09:40:32]sum+1 = 200026 [09:40:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 144 20.10.2024 09:40 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227296 ФПД: 100687209423450 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T094036&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227296&fm=100687209423450&tin=02508201610067®Number=0000000000091685&sum=200000 [09:40:33]StoreToDocumentArchive [09:40:33]shift 533 fd 227296 [09:40:33]save to /storage/0533/doc_00227296 [09:40:33]save last doc name /storage/0533/doc_00227296 to /storage/kkm_last_doc_name [09:40:33]save OK [09:40:33]Clear old archive folders... [09:40:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:40:33]tlvbuf is 004D6540 [09:40:33]SAM_PROTO_ClearQueue [09:40:33]wFMCommunicate request_size=4 [09:40:33]MH_SAM_APDU [09:40:33]CAPDU: 80 09 00 00 [09:40:33]Write to MH i2c: E2 08 00 A2 3F 80 09 00 00 00 00 00 00 53 [09:40:33]Write i2c OK [09:40:33]MH_I2C_Read... [09:40:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:40:33]Read from MH i2c: E2 [09:40:33]MH_I2C_Read... [09:40:33]Read from MH i2c: E2 03 00 [09:40:33]MH_I2C_Read... [09:40:33]Read from MH i2c: E2 03 00 A2 3F 00 90 00 55 [09:40:33]RAPDU: 90 00 [09:40:33]wFMCommunicate OK [09:40:33]SAM_PROTO_ClearQueue done [09:40:33]KKMCreateOFDPacket [09:40:33]OFDProtocolAddRootSTLVToBuf [09:40:33]FM_MakeSignedData [09:40:33]FM_MakeSignedData [09:40:33]SAM_PROTO_SignData [09:40:33]wFMCommunicate request_size=4 [09:40:33]MH_SAM_APDU [09:40:33]CAPDU: 80 0D 01 02 [09:40:33]Write to MH i2c: E2 08 00 A3 3F 80 0D 01 02 00 00 00 00 5B [09:40:33]Write i2c OK [09:40:33]MH_I2C_Read... [09:40:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:40:33]Read from MH i2c: E2 [09:40:33]MH_I2C_Read... [09:40:33]Read from MH i2c: E2 03 00 [09:40:33]MH_I2C_Read... [09:40:33]Read from MH i2c: E2 03 00 A3 3F 00 90 00 56 [09:40:33]RAPDU: 90 00 [09:40:33]wFMCommunicate OK [09:40:33]wFMCommunicate request_size=255 [09:40:33]MH_SAM_APDU [09:40: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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 14 D0 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E0 77 03 00 35 04 06 00 5B 93 11 59 [09:40:33]Write to MH i2c: E2 02 01 A4 3F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 14 D0 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E0 77 03 00 35 04 06 00 5B 93 11 59 00 00 8E [09:40:33]Write i2c OK [09:40:33]MH_I2C_Read... [09:40:33]OFD Sender: No OFD packet to send [09:40:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:34]Read from MH i2c: E2 [09:40:34]MH_I2C_Read... [09:40:34]Read from MH i2c: E2 03 00 [09:40:34]MH_I2C_Read... [09:40:34]Read from MH i2c: E2 03 00 A4 3F 00 90 00 57 [09:40:34]RAPDU: 90 00 [09:40:34]wFMCommunicate OK [09:40:34]wFMCommunicate request_size=7 [09:40:34]MH_SAM_APDU [09:40:34]CAPDU: 80 0D 02 02 02 E2 5A [09:40:34]Write to MH i2c: E2 0A 00 A5 3F 80 0D 02 02 02 00 E2 5A 00 00 9E [09:40:34]Write i2c OK [09:40:34]MH_I2C_Read... [09:40:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:34]Read from MH i2c: E2 [09:40:34]MH_I2C_Read... [09:40:34]Read from MH i2c: E2 03 00 [09:40:34]MH_I2C_Read... [09:40:34]Read from MH i2c: E2 03 00 A5 3F 00 90 00 58 [09:40:34]RAPDU: 90 00 [09:40:34]wFMCommunicate OK [09:40:34]wFMCommunicate request_size=4 [09:40:34]MH_SAM_APDU [09:40:34]CAPDU: 80 0D 03 02 [09:40:34]Write to MH i2c: E2 08 00 A6 3F 80 0D 03 02 00 00 00 00 60 [09:40:34]Write i2c OK [09:40:34]MH_I2C_Read... [09:40:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:40:34]Read from MH i2c: E2 [09:40:34]MH_I2C_Read... [09:40:34]Read from MH i2c: E2 0B 00 [09:40:34]MH_I2C_Read... [09:40:34]Read from MH i2c: E2 0B 00 A6 3F 00 38 DB 41 1E C9 D7 35 5D 90 00 05 [09:40:34]RAPDU: 38 DB 41 1E C9 D7 35 5D 90 00 [09:40:34]wFMCommunicate OK [09:40:34]SAM_PROTO_SignData done [09:40:34]FM_MakeSignedData done [09:40:34]CreateOFDProtocolMessage [09:40:34]wFMCommunicate request_size=4 [09:40:34]MH_SAM_APDU [09:40:34]CAPDU: 80 11 00 00 [09:40:34]Write to MH i2c: E2 08 00 A7 3F 80 11 00 00 00 00 00 00 60 [09:40:34]Write i2c OK [09:40:34]MH_I2C_Read... [09:40:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:34]Read from MH i2c: E2 [09:40:34]MH_I2C_Read... [09:40:34]Read from MH i2c: E2 17 00 [09:40:34]MH_I2C_Read... [09:40:34]Read from MH i2c: E2 17 00 A7 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B7 [09:40:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:40:34]wFMCommunicate OK [09:40:34]CreateOFDProtocolMessage done [09:40:34]OFDSenderStorePacket 227296 [09:40:34]StoreOFDPacket docnum=227296 [09:40:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 E8 E1 04 01 E8 54 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 14 D0 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E0 77 03 00 35 04 06 00 5B 93 11 59 E2 5A 38 DB 41 1E C9 D7 35 5D [09:40:34]CheckFolder [09:40:34]dirname=/storage/ofd_packets [09:40:34]CheckFolder done [09:40:34]ProducePacketName [09:40:34]name=ofd_packets/00227296 [09:40:34]NVStorageSaveData ofd_packets/00227296 [09:40:34]File name is /storage/ofd_packets/00227296 [09:40:34]Write 298 bytes [09:40:34]NVStorageSaveData done [09:40:34]OFDSenderStorePacket done [09:40:34]KKMCreateOFDPacket done [09:40:34]NVStorageSaveData kkm_last_timestamp [09:40:34]File name is /storage/kkm_last_timestamp [09:40:34]Write 4 bytes [09:40:34]NVStorageSaveData done [09:40:34]ExternCall_PrintAddStr [09:40:34]wPrintStart [09:40:34]Write to MH i2c: 01 00 00 A8 3F E7 [09:40:34]Write i2c OK [09:40:34]MH_I2C_Read... [09:40:34]Read from MH i2c: 01 [09:40:34]MH_I2C_Read... [09:40:34]Read from MH i2c: 01 07 00 [09:40:34]MH_I2C_Read... [09:40:34]Read from MH i2c: 01 07 00 A8 3F 00 00 00 00 00 FF 0F FC [09:40:34]RasterBufferAndPrint [09:40:34]line Счет N : (1)1962765 [09:40:34]line ИНН: 02508201610067 [09:40:34]line Контрольно-Кассовый Чек [09:40:34]line ПРОДАЖА [09:40:34]line ТРК (МРК, ГНК) : 21 [09:40:34]line Товар: 2710194210 [09:40:34]line ДТ-К-5 [09:40:34]line 26.250 * 76.20 [09:40:34]line = 2000.25 [09:40:34]line НДС 12% НСП 1% [09:40:34]line > о реализуемом товаре [09:40:34]line ОКРУГЛЕНИЕ: -0.25 [09:40:34]line ИТОГО: 2000.00 [09:40:34]line Внесено: 2000.00 [09:40:34]line СДАЧА: 0.00 [09:40:34]line НСП 1% : 17.70 [09:40:34]line НДС 12% : 212.42 [09:40:34]line Наличными: 2000.00 [09:40:34]line Безнал.: 0.00 [09:40:34]line Место: АЗС № 133 "Партнер Нефть" [09:40:34]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:40:34]line СНО: Общий режим [09:40:34]line Чек 144 20.10.2024 09:40 [09:40:34]line Смена: 533 ФФД: 1.0 [09:40:34]line ЗНМ: 0300000091 [09:40:34]line РНМ: 0000000000091685 [09:40:34]line Версия ККМ: 001 [09:40:34]line ФМ: 0000000000871839 [09:40:34]line ФД: 227296 [09:40:34]line ФПД: 100687209423450 [09:40:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T094036&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227296&fm=100687209423450&tin=02508201610067®Number=0000000000091685&sum=200000 [09:40:34]OFD Sender: Processing packet 227296 [packets to send 38, broken 37] [09:40:34]ProducePacketName [09:40:34]name=ofd_packets/00227296 [09:40:34]OFD Sender: To server: pG, [09:40:34]CommunicateWithHost lk.salyk.kg:30040 [09:40:34]ConnectInit lk.salyk.kg [09:40:34]written 0, free lines is 4095 [09:40:34]Connected sock=10 [09:40: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 33 39 0C 01 00 00 E8 E1 04 01 E8 54 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 14 D0 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E0 77 03 00 35 04 06 00 5B 93 11 59 E2 5A 38 DB 41 1E C9 D7 35 5D [09:40: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 33 39 4F 00 00 00 C3 30 47 00 9B 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E0 77 03 00 F4 03 04 00 13 7B 14 67 B6 04 01 00 00 44 19 04 E1 21 31 71 F4 [09:40:34]CommunicateWithHost err = 0 [09:40:34]CheckOFDResponse [09:40:34]1017 (14) - 77093643461234 [09:40:34]1041 (16) - 0000000000871839 [09:40:34]1040 (4) - 227296 [09:40:34]1012 (4) - 20.10.2024 03:37 [09:40:34]1206 (1) - 0 [09:40:34]OFD Sender: Remove packet 227296 [09:40:34]ProducePacketName [09:40:34]name=ofd_packets/00227296 [09:40:34]NVStorageDeleteData [09:40:34]Write to MH i2c: 01 00 00 D2 3F 11 [09:40:34]Write i2c OK [09:40:34]MH_I2C_Read... [09:40:34]Read from MH i2c: 01 [09:40:34]MH_I2C_Read... [09:40:34]Read from MH i2c: 01 07 00 [09:40:34]MH_I2C_Read... [09:40:34]Read from MH i2c: 01 07 00 D2 3F 00 00 00 00 00 0C 0D 31 [09:40:34]RasterBufferAndPrint [09:40:34]line [09:40:34]line [09:40:34]line [09:40:34]line [09:40:34]line [09:40:34]written 0, free lines is 3346 [09:40:34]process_action close_receipt done [09:40:34]requested_data is exist [09:40:34]produce_requested_data [09:40:34]requested_item fm.sn is exist - process it [09:40:34]wFMCommunicate request_size=4 [09:40:34]MH_SAM_APDU [09:40:34]CAPDU: 80 11 00 00 [09:40:34]Write to MH i2c: E2 08 00 D9 3F 80 11 00 00 00 00 00 00 92 [09:40:34]Write i2c OK [09:40:34]MH_I2C_Read... [09:40:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:35]Read from MH i2c: E2 [09:40:35]MH_I2C_Read... [09:40:35]Read from MH i2c: E2 17 00 [09:40:35]MH_I2C_Read... [09:40:35]Read from MH i2c: E2 17 00 D9 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E9 [09:40:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:40:35]wFMCommunicate OK [09:40:35]requested_item fd.num is exist - process it [09:40:35]SAM_PROTO_GetFieldsCounters [09:40:35]wFMCommunicate request_size=4 [09:40:35]MH_SAM_APDU [09:40:35]CAPDU: 80 13 00 00 [09:40:35]Write to MH i2c: E2 08 00 DA 3F 80 13 00 00 00 00 00 00 95 [09:40:35]Write i2c OK [09:40:35]MH_I2C_Read... [09:40:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:40:35]Read from MH i2c: E2 [09:40:35]MH_I2C_Read... [09:40:35]Read from MH i2c: E2 62 00 [09:40:35]MH_I2C_Read... [09:40:35]Read from MH i2c: E2 62 00 DA 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 E0 77 03 00 0E 04 04 00 15 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 DF [09:40: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 E0 77 03 00 0E 04 04 00 15 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 [09:40:35]wFMCommunicate OK [09:40:35]SAM_PROTO_GetFieldsCounters done [09:40:35]requested_item shift.num is exist - process it [09:40:35]requested_item shift.opened is exist - process it [09:40:35]req_shift_opened [09:40:35]FM_GetShiftState [09:40:35]SAM_PROTO_GetShiftState [09:40:35]wFMCommunicate request_size=4 [09:40:35]MH_SAM_APDU [09:40:35]CAPDU: 80 13 01 00 [09:40:35]Write to MH i2c: E2 08 00 DB 3F 80 13 01 00 00 00 00 00 97 [09:40:35]Write i2c OK [09:40:35]MH_I2C_Read... [09:40:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:35]Read from MH i2c: E2 [09:40:35]MH_I2C_Read... [09:40:35]Read from MH i2c: E2 0E 00 [09:40:35]MH_I2C_Read... [09:40:35]Read from MH i2c: E2 0E 00 DB 3F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 B1 [09:40:35]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:40:35]wFMCommunicate OK [09:40:35]SAM_PROTO_GetShiftState done [09:40:35]FM_GetShiftState done [09:40:35]req_shift_opened done [09:40:35]requested_item shift.open_date is exist - process it [09:40:35]req_shift_open_date [09:40:35]req_shift_open_date done [09:40:35]produce_requested_data done [09:40:35]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227296,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [09:40:35]process_action_free close_receipt [09:40:35]json_value_free [09:40:35]json_value_free done [09:40:35]process_json_proto returns [09:40:35]Send response to host [09:40:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227296,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [09:40:35]free response buf [09:40:35]execute_script done [09:40:35]execute_script returns [09:40:35]free content buf [09:40:35]Sock 8.Close socket [09:40:35]Sock 8.Thread stoped [09:40:35]OFD Sender: No OFD packet to send [09:40:40]OFD Sender: No OFD packet to send [09:40:43]accept exits with 9 [09:40:43]New connection [09:40:43]New thread 3066965348 created [09:40:43]Thread 3066821988 joined [09:40:43]Waiting for new connection... [09:40:43] Sock 9.Parse request [09:40:43]Sock 9.Check first char [09:40:43]Sock 9.First char is OK [09:40:43]request: POST /json_proto HTTP/1.0 [09:40:43]Method: POST [09:40:43]URL: /json_proto [09:40:43]Method is POST - this is cgi request [09:40:43]url: /json_proto [09:40:43]query_string will be loaded in cgi processing [09:40:43]execute_cgi json_proto POST (null) [09:40:43]execute_cgi path=json_proto method=POST [09:40:43]POST find Content-Length [09:40:43]Host: 172.17.44.195:8080 [09:40:43]Content-Length: 680 [09:40:43]Content-Type: application/json [09:40:43] [09:40:43]POST finish read [09:40:43]Found Content-Length = 680 [09:40:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962767", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:43]execute_script... [09:40: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)1962767", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:43]POST & json_proto [09:40:43]process_json_proto [09:40:43]json parsed OK: [09:40:43]protocol is kg_v1.0 [09:40:43]action value=close_receipt [09:40:43]process_action close_receipt [09:40:43]cmd_close_receipt [09:40:43]MH_GetDate [09:40:43]Write to MH i2c: F0 00 00 DC 3F 0A [09:40:43]Write i2c OK [09:40:43]MH_I2C_Read... [09:40:43]Read from MH i2c: F0 [09:40:43]MH_I2C_Read... [09:40:43]Read from MH i2c: F0 09 00 [09:40:43]MH_I2C_Read... [09:40:43]Read from MH i2c: F0 09 00 DC 3F 00 1F D0 14 67 82 C9 CF 66 FD [09:40:43]GetLastDocTimeStamp 1729417236 [09:40:43]current date 1729417247 [09:40:43]FM_GetShiftState [09:40:43]SAM_PROTO_GetShiftState [09:40:43]wFMCommunicate request_size=4 [09:40:43]MH_SAM_APDU [09:40:43]CAPDU: 80 13 01 00 [09:40:43]Write to MH i2c: E2 08 00 DD 3F 80 13 01 00 00 00 00 00 99 [09:40:43]Write i2c OK [09:40:43]MH_I2C_Read... [09:40:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:43]Read from MH i2c: E2 [09:40:43]MH_I2C_Read... [09:40:43]Read from MH i2c: E2 0E 00 [09:40:43]MH_I2C_Read... [09:40:43]Read from MH i2c: E2 0E 00 DD 3F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 B3 [09:40:43]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:40:43]wFMCommunicate OK [09:40:43]SAM_PROTO_GetShiftState done [09:40:43]FM_GetShiftState done [09:40:43]opened in 1729383750 [09:40:43]opened+sec_in_day 1729470150 [09:40:43]quantity*price = 100050 [09:40:43]sum+1 = 100052 [09:40:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 145 20.10.2024 09:40 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227297 ФПД: 278201585509127 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T094047&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227297&fm=278201585509127&tin=02508201610067®Number=0000000000091685&sum=100000 [09:40:44]StoreToDocumentArchive [09:40:44]shift 533 fd 227297 [09:40:44]save to /storage/0533/doc_00227297 [09:40:44]save last doc name /storage/0533/doc_00227297 to /storage/kkm_last_doc_name [09:40:44]save OK [09:40:44]Clear old archive folders... [09:40:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:40:44]tlvbuf is 005FAE80 [09:40:44]SAM_PROTO_ClearQueue [09:40:44]wFMCommunicate request_size=4 [09:40:44]MH_SAM_APDU [09:40:44]CAPDU: 80 09 00 00 [09:40:44]Write to MH i2c: E2 08 00 EA 3F 80 09 00 00 00 00 00 00 9B [09:40:44]Write i2c OK [09:40:44]MH_I2C_Read... [09:40:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:40:44]Read from MH i2c: E2 [09:40:44]MH_I2C_Read... [09:40:44]Read from MH i2c: E2 03 00 [09:40:44]MH_I2C_Read... [09:40:44]Read from MH i2c: E2 03 00 EA 3F 00 90 00 9D [09:40:44]RAPDU: 90 00 [09:40:44]wFMCommunicate OK [09:40:44]SAM_PROTO_ClearQueue done [09:40:44]KKMCreateOFDPacket [09:40:44]OFDProtocolAddRootSTLVToBuf [09:40:44]FM_MakeSignedData [09:40:44]FM_MakeSignedData [09:40:44]SAM_PROTO_SignData [09:40:44]wFMCommunicate request_size=4 [09:40:44]MH_SAM_APDU [09:40:44]CAPDU: 80 0D 01 02 [09:40:44]Write to MH i2c: E2 08 00 EB 3F 80 0D 01 02 00 00 00 00 A3 [09:40:44]Write i2c OK [09:40:44]MH_I2C_Read... [09:40:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:40:44]Read from MH i2c: E2 [09:40:44]MH_I2C_Read... [09:40:44]Read from MH i2c: E2 03 00 [09:40:44]MH_I2C_Read... [09:40:44]Read from MH i2c: E2 03 00 EB 3F 00 90 00 9E [09:40:44]RAPDU: 90 00 [09:40:44]wFMCommunicate OK [09:40:44]wFMCommunicate request_size=255 [09:40:44]MH_SAM_APDU [09:40:44]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 1F D0 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E1 77 03 00 35 04 06 00 FD 05 DA AE [09:40:44]Write to MH i2c: E2 02 01 EC 3F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 1F D0 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E1 77 03 00 35 04 06 00 FD 05 DA AE 00 00 27 [09:40:44]Write i2c OK [09:40:44]MH_I2C_Read... [09:40:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:45]Read from MH i2c: E2 [09:40:45]MH_I2C_Read... [09:40:45]Read from MH i2c: E2 03 00 [09:40:45]MH_I2C_Read... [09:40:45]Read from MH i2c: E2 03 00 EC 3F 00 90 00 9F [09:40:45]RAPDU: 90 00 [09:40:45]wFMCommunicate OK [09:40:45]wFMCommunicate request_size=7 [09:40:45]MH_SAM_APDU [09:40:45]CAPDU: 80 0D 02 02 02 23 07 [09:40:45]Write to MH i2c: E2 0A 00 ED 3F 80 0D 02 02 02 00 23 07 00 00 D4 [09:40:45]Write i2c OK [09:40:45]MH_I2C_Read... [09:40:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:45]Read from MH i2c: E2 [09:40:45]MH_I2C_Read... [09:40:45]Read from MH i2c: E2 03 00 [09:40:45]MH_I2C_Read... [09:40:45]Read from MH i2c: E2 03 00 ED 3F 00 90 00 A0 [09:40:45]RAPDU: 90 00 [09:40:45]wFMCommunicate OK [09:40:45]wFMCommunicate request_size=4 [09:40:45]MH_SAM_APDU [09:40:45]CAPDU: 80 0D 03 02 [09:40:45]Write to MH i2c: E2 08 00 EE 3F 80 0D 03 02 00 00 00 00 A8 [09:40:45]Write i2c OK [09:40:45]MH_I2C_Read... [09:40:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:40:45]Read from MH i2c: E2 [09:40:45]MH_I2C_Read... [09:40:45]Read from MH i2c: E2 0B 00 [09:40:45]MH_I2C_Read... [09:40:45]Read from MH i2c: E2 0B 00 EE 3F 00 6A AB 15 F9 88 28 F6 71 90 00 E3 [09:40:45]RAPDU: 6A AB 15 F9 88 28 F6 71 90 00 [09:40:45]wFMCommunicate OK [09:40:45]SAM_PROTO_SignData done [09:40:45]FM_MakeSignedData done [09:40:45]CreateOFDProtocolMessage [09:40:45]wFMCommunicate request_size=4 [09:40:45]MH_SAM_APDU [09:40:45]CAPDU: 80 11 00 00 [09:40:45]Write to MH i2c: E2 08 00 EF 3F 80 11 00 00 00 00 00 00 A8 [09:40:45]Write i2c OK [09:40:45]MH_I2C_Read... [09:40:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:45]Read from MH i2c: E2 [09:40:45]MH_I2C_Read... [09:40:45]Read from MH i2c: E2 17 00 [09:40:45]MH_I2C_Read... [09:40:45]Read from MH i2c: E2 17 00 EF 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 FF [09:40:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:40:45]wFMCommunicate OK [09:40:45]CreateOFDProtocolMessage done [09:40:45]OFDSenderStorePacket 227297 [09:40:45]StoreOFDPacket docnum=227297 [09:40:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 00 99 04 01 EE FA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 1F D0 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E1 77 03 00 35 04 06 00 FD 05 DA AE 23 07 6A AB 15 F9 88 28 F6 71 [09:40:45]CheckFolder [09:40:45]dirname=/storage/ofd_packets [09:40:45]CheckFolder done [09:40:45]ProducePacketName [09:40:45]name=ofd_packets/00227297 [09:40:45]NVStorageSaveData ofd_packets/00227297 [09:40:45]File name is /storage/ofd_packets/00227297 [09:40:45]Write 298 bytes [09:40:45]NVStorageSaveData done [09:40:45]OFDSenderStorePacket done [09:40:45]KKMCreateOFDPacket done [09:40:45]NVStorageSaveData kkm_last_timestamp [09:40:45]File name is /storage/kkm_last_timestamp [09:40:45]Write 4 bytes [09:40:45]NVStorageSaveData done [09:40:45]ExternCall_PrintAddStr [09:40:45]wPrintStart [09:40:45]Write to MH i2c: 01 00 00 F0 3F 2F [09:40:45]Write i2c OK [09:40:45]MH_I2C_Read... [09:40:45]Read from MH i2c: 01 [09:40:45]MH_I2C_Read... [09:40:45]Read from MH i2c: 01 07 00 [09:40:45]MH_I2C_Read... [09:40:45]Read from MH i2c: 01 07 00 F0 3F 00 00 00 00 00 FF 0F 44 [09:40:45]RasterBufferAndPrint [09:40:45]line Счет N : (1)1962767 [09:40:45]line ИНН: 02508201610067 [09:40:45]line Контрольно-Кассовый Чек [09:40:45]line ПРОДАЖА [09:40:45]line ТРК (МРК, ГНК) : 11 [09:40:45]line Товар: 2710194210 [09:40:45]line ДТ-К-5 [09:40:45]line 13.130 * 76.20 [09:40:45]line = 1000.51 [09:40:45]line НДС 12% НСП 1% [09:40:45]line > о реализуемом товаре [09:40:45]line ОКРУГЛЕНИЕ: -0.51 [09:40:45]line ИТОГО: 1000.00 [09:40:45]line Внесено: 1000.00 [09:40:45]line СДАЧА: 0.00 [09:40:45]line НСП 1% : 8.85 [09:40:45]line НДС 12% : 106.25 [09:40:45]line Наличными: 1000.00 [09:40:45]line Безнал.: 0.00 [09:40:45]line Место: АЗС № 133 "Партнер Нефть" [09:40:45]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:40:45]line СНО: Общий режим [09:40:45]line Чек 145 20.10.2024 09:40 [09:40:45]line Смена: 533 ФФД: 1.0 [09:40:45]line ЗНМ: 0300000091 [09:40:45]line РНМ: 0000000000091685 [09:40:45]line Версия ККМ: 001 [09:40:45]line ФМ: 0000000000871839 [09:40:45]line ФД: 227297 [09:40:45]line ФПД: 278201585509127 [09:40:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T094047&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227297&fm=278201585509127&tin=02508201610067®Number=0000000000091685&sum=100000 [09:40:45]written 0, free lines is 4095 [09:40:45]OFD Sender: Processing packet 227297 [packets to send 38, broken 37] [09:40:45]ProducePacketName [09:40:45]name=ofd_packets/00227297 [09:40:45]OFD Sender: To server: pG, [09:40:45]CommunicateWithHost lk.salyk.kg:30040 [09:40:45]ConnectInit lk.salyk.kg [09:40:45]Connected sock=10 [09:40: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 33 39 0C 01 00 00 00 99 04 01 EE FA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 1F D0 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E1 77 03 00 35 04 06 00 FD 05 DA AE 23 07 6A AB 15 F9 88 28 F6 71 [09:40: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 33 39 4F 00 00 00 26 32 47 00 21 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 33 39 10 04 04 00 E1 77 03 00 F4 03 04 00 1E 7B 14 67 B6 04 01 00 00 FC 2F 1E 82 C8 02 E3 81 [09:40:45]CommunicateWithHost err = 0 [09:40:45]CheckOFDResponse [09:40:45]1017 (14) - 77093643461234 [09:40:45]1041 (16) - 0000000000871839 [09:40:45]1040 (4) - 227297 [09:40:45]1012 (4) - 20.10.2024 03:38 [09:40:45]1206 (1) - 0 [09:40:45]OFD Sender: Remove packet 227297 [09:40:45]ProducePacketName [09:40:45]name=ofd_packets/00227297 [09:40:45]NVStorageDeleteData [09:40:45]Write to MH i2c: 01 00 00 1A 40 5A [09:40:45]Write i2c OK [09:40:45]MH_I2C_Read... [09:40:45]Read from MH i2c: 01 [09:40:45]MH_I2C_Read... [09:40:45]Read from MH i2c: 01 07 00 [09:40:45]MH_I2C_Read... [09:40:45]Read from MH i2c: 01 07 00 1A 40 00 00 00 00 00 09 0D 77 [09:40:45]RasterBufferAndPrint [09:40:45]line [09:40:45]line [09:40:45]line [09:40:45]line [09:40:45]line [09:40:45]written 0, free lines is 3349 [09:40:45]process_action close_receipt done [09:40:45]requested_data is exist [09:40:45]produce_requested_data [09:40:45]requested_item fm.sn is exist - process it [09:40:45]wFMCommunicate request_size=4 [09:40:45]MH_SAM_APDU [09:40:45]CAPDU: 80 11 00 00 [09:40:45]Write to MH i2c: E2 08 00 21 40 80 11 00 00 00 00 00 00 DB [09:40:45]Write i2c OK [09:40:45]MH_I2C_Read... [09:40:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:45]Read from MH i2c: E2 [09:40:45]MH_I2C_Read... [09:40:45]Read from MH i2c: E2 17 00 [09:40:45]MH_I2C_Read... [09:40:45]Read from MH i2c: E2 17 00 21 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 32 [09:40:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:40:45]wFMCommunicate OK [09:40:45]requested_item fd.num is exist - process it [09:40:45]SAM_PROTO_GetFieldsCounters [09:40:45]wFMCommunicate request_size=4 [09:40:45]MH_SAM_APDU [09:40:45]CAPDU: 80 13 00 00 [09:40:45]Write to MH i2c: E2 08 00 22 40 80 13 00 00 00 00 00 00 DE [09:40:45]Write i2c OK [09:40:45]MH_I2C_Read... [09:40:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:40:46]Read from MH i2c: E2 [09:40:46]MH_I2C_Read... [09:40:46]Read from MH i2c: E2 62 00 [09:40:46]MH_I2C_Read... [09:40:46]Read from MH i2c: E2 62 00 22 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 E1 77 03 00 0E 04 04 00 15 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 2C [09:40: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 E1 77 03 00 0E 04 04 00 15 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 [09:40:46]wFMCommunicate OK [09:40:46]SAM_PROTO_GetFieldsCounters done [09:40:46]requested_item shift.num is exist - process it [09:40:46]requested_item shift.opened is exist - process it [09:40:46]req_shift_opened [09:40:46]FM_GetShiftState [09:40:46]SAM_PROTO_GetShiftState [09:40:46]wFMCommunicate request_size=4 [09:40:46]MH_SAM_APDU [09:40:46]CAPDU: 80 13 01 00 [09:40:46]Write to MH i2c: E2 08 00 23 40 80 13 01 00 00 00 00 00 E0 [09:40:46]Write i2c OK [09:40:46]MH_I2C_Read... [09:40:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:46]Read from MH i2c: E2 [09:40:46]MH_I2C_Read... [09:40:46]Read from MH i2c: E2 0E 00 [09:40:46]MH_I2C_Read... [09:40:46]Read from MH i2c: E2 0E 00 23 40 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 FA [09:40:46]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:40:46]wFMCommunicate OK [09:40:46]SAM_PROTO_GetShiftState done [09:40:46]FM_GetShiftState done [09:40:46]req_shift_opened done [09:40:46]requested_item shift.open_date is exist - process it [09:40:46]req_shift_open_date [09:40:46]req_shift_open_date done [09:40:46]produce_requested_data done [09:40:46]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227297,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [09:40:46]process_action_free close_receipt [09:40:46]json_value_free [09:40:46]json_value_free done [09:40:46]process_json_proto returns [09:40:46]Send response to host [09:40:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227297,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [09:40:46]free response buf [09:40:46]execute_script done [09:40:46]execute_script returns [09:40:46]free content buf [09:40:46]Sock 9.Close socket [09:40:46]Sock 9.Thread stoped [09:40:46]OFD Sender: No OFD packet to send [09:40:51]OFD Sender: No OFD packet to send [09:40:56]OFD Sender: No OFD packet to send [09:41:01]OFD Sender: No OFD packet to send [09:41:06]OFD Sender: No OFD packet to send [09:41:11]OFD Sender: No OFD packet to send [09:41:16]OFD Sender: No OFD packet to send [09:41:21]OFD Sender: No OFD packet to send [09:41:26]OFD Sender: No OFD packet to send [09:41:31]OFD Sender: No OFD packet to send [09:41:36]OFD Sender: No OFD packet to send [09:41:41]OFD Sender: No OFD packet to send [09:41:46]OFD Sender: No OFD packet to send [09:41:51]OFD Sender: No OFD packet to send [09:41:56]OFD Sender: No OFD packet to send [09:42:01]OFD Sender: No OFD packet to send [09:42:06]OFD Sender: No OFD packet to send [09:42:11]OFD Sender: No OFD packet to send [09:42:16]OFD Sender: No OFD packet to send [09:42:21]OFD Sender: No OFD packet to send [09:42:26]OFD Sender: No OFD packet to send [09:42:31]OFD Sender: No OFD packet to send [09:42:36]OFD Sender: No OFD packet to send [09:42:39]accept exits with 8 [09:42:39]New connection [09:42:39]New thread 3066821988 created [09:42:39]Thread 3066965348 joined [09:42:39]Waiting for new connection... [09:42:39] Sock 8.Parse request [09:42:39]Sock 8.Check first char [09:42:39]Sock 8.First char is OK [09:42:39]request: POST /json_proto HTTP/1.0 [09:42:39]Method: POST [09:42:39]URL: /json_proto [09:42:39]Method is POST - this is cgi request [09:42:39]url: /json_proto [09:42:39]query_string will be loaded in cgi processing [09:42:39]execute_cgi json_proto POST (null) [09:42:39]execute_cgi path=json_proto method=POST [09:42:39]POST find Content-Length [09:42:39]Host: 172.17.44.195:8080 [09:42:39]Content-Length: 680 [09:42:39]Content-Type: application/json [09:42:39] [09:42:39]POST finish read [09:42:39]Found Content-Length = 680 [09:42:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962768", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:39]execute_script... [09:42: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)1962768", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:39]POST & json_proto [09:42:39]process_json_proto [09:42:39]json parsed OK: [09:42:39]protocol is kg_v1.0 [09:42:39]action value=close_receipt [09:42:39]process_action close_receipt [09:42:39]cmd_close_receipt [09:42:39]MH_GetDate [09:42:39]Write to MH i2c: F0 00 00 24 40 53 [09:42:39]Write i2c OK [09:42:39]MH_I2C_Read... [09:42:39]Read from MH i2c: F0 [09:42:39]MH_I2C_Read... [09:42:39]Read from MH i2c: F0 09 00 [09:42:39]MH_I2C_Read... [09:42:39]Read from MH i2c: F0 09 00 24 40 00 93 D0 14 67 82 C9 CF 66 BA [09:42:39]GetLastDocTimeStamp 1729417247 [09:42:39]current date 1729417363 [09:42:39]FM_GetShiftState [09:42:39]SAM_PROTO_GetShiftState [09:42:39]wFMCommunicate request_size=4 [09:42:39]MH_SAM_APDU [09:42:39]CAPDU: 80 13 01 00 [09:42:39]Write to MH i2c: E2 08 00 25 40 80 13 01 00 00 00 00 00 E2 [09:42:39]Write i2c OK [09:42:39]MH_I2C_Read... [09:42:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:39]Read from MH i2c: E2 [09:42:39]MH_I2C_Read... [09:42:39]Read from MH i2c: E2 0E 00 [09:42:39]MH_I2C_Read... [09:42:39]Read from MH i2c: E2 0E 00 25 40 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 FC [09:42:39]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:42:39]wFMCommunicate OK [09:42:39]SAM_PROTO_GetShiftState done [09:42:39]FM_GetShiftState done [09:42:39]opened in 1729383750 [09:42:39]opened+sec_in_day 1729470150 [09:42:39]quantity*price = 100050 [09:42:39]sum+1 = 100052 [09:42:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 146 20.10.2024 09:42 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227298 ФПД: 273754531633542 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T094243&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227298&fm=273754531633542&tin=02508201610067®Number=0000000000091685&sum=100000 [09:42:40]StoreToDocumentArchive [09:42:40]shift 533 fd 227298 [09:42:40]save to /storage/0533/doc_00227298 [09:42:40]save last doc name /storage/0533/doc_00227298 to /storage/kkm_last_doc_name [09:42:40]save OK [09:42:40]Clear old archive folders... [09:42:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:42:40]tlvbuf is B6F58130 [09:42:40]SAM_PROTO_ClearQueue [09:42:40]wFMCommunicate request_size=4 [09:42:40]MH_SAM_APDU [09:42:40]CAPDU: 80 09 00 00 [09:42:40]Write to MH i2c: E2 08 00 32 40 80 09 00 00 00 00 00 00 E4 [09:42:40]Write i2c OK [09:42:40]MH_I2C_Read... [09:42:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:42:40]Read from MH i2c: E2 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: E2 03 00 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: E2 03 00 32 40 00 90 00 E6 [09:42:40]RAPDU: 90 00 [09:42:40]wFMCommunicate OK [09:42:40]SAM_PROTO_ClearQueue done [09:42:40]KKMCreateOFDPacket [09:42:40]OFDProtocolAddRootSTLVToBuf [09:42:40]FM_MakeSignedData [09:42:40]FM_MakeSignedData [09:42:40]SAM_PROTO_SignData [09:42:40]wFMCommunicate request_size=4 [09:42:40]MH_SAM_APDU [09:42:40]CAPDU: 80 0D 01 02 [09:42:40]Write to MH i2c: E2 08 00 33 40 80 0D 01 02 00 00 00 00 EC [09:42:40]Write i2c OK [09:42:40]MH_I2C_Read... [09:42:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:42:40]Read from MH i2c: E2 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: E2 03 00 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: E2 03 00 33 40 00 90 00 E7 [09:42:40]RAPDU: 90 00 [09:42:40]wFMCommunicate OK [09:42:40]wFMCommunicate request_size=255 [09:42:40]MH_SAM_APDU [09:42: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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 93 D0 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E2 77 03 00 35 04 06 00 F8 FA 71 9D [09:42:40]Write to MH i2c: E2 02 01 34 40 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 93 D0 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E2 77 03 00 35 04 06 00 F8 FA 71 9D 00 00 5C [09:42:40]Write i2c OK [09:42:40]MH_I2C_Read... [09:42:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:40]Read from MH i2c: E2 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: E2 03 00 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: E2 03 00 34 40 00 90 00 E8 [09:42:40]RAPDU: 90 00 [09:42:40]wFMCommunicate OK [09:42:40]wFMCommunicate request_size=7 [09:42:40]MH_SAM_APDU [09:42:40]CAPDU: 80 0D 02 02 02 19 86 [09:42:40]Write to MH i2c: E2 0A 00 35 40 80 0D 02 02 02 00 19 86 00 00 92 [09:42:40]Write i2c OK [09:42:40]MH_I2C_Read... [09:42:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:40]Read from MH i2c: E2 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: E2 03 00 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: E2 03 00 35 40 00 90 00 E9 [09:42:40]RAPDU: 90 00 [09:42:40]wFMCommunicate OK [09:42:40]wFMCommunicate request_size=4 [09:42:40]MH_SAM_APDU [09:42:40]CAPDU: 80 0D 03 02 [09:42:40]Write to MH i2c: E2 08 00 36 40 80 0D 03 02 00 00 00 00 F1 [09:42:40]Write i2c OK [09:42:40]MH_I2C_Read... [09:42:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:42:40]Read from MH i2c: E2 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: E2 0B 00 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: E2 0B 00 36 40 00 93 C6 CC 69 48 7F 32 1D 90 00 96 [09:42:40]RAPDU: 93 C6 CC 69 48 7F 32 1D 90 00 [09:42:40]wFMCommunicate OK [09:42:40]SAM_PROTO_SignData done [09:42:40]FM_MakeSignedData done [09:42:40]CreateOFDProtocolMessage [09:42:40]wFMCommunicate request_size=4 [09:42:40]MH_SAM_APDU [09:42:40]CAPDU: 80 11 00 00 [09:42:40]Write to MH i2c: E2 08 00 37 40 80 11 00 00 00 00 00 00 F1 [09:42:40]Write i2c OK [09:42:40]MH_I2C_Read... [09:42:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:40]Read from MH i2c: E2 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: E2 17 00 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: E2 17 00 37 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 48 [09:42:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:42:40]wFMCommunicate OK [09:42:40]CreateOFDProtocolMessage done [09:42:40]OFDSenderStorePacket 227298 [09:42:40]StoreOFDPacket docnum=227298 [09:42:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 63 0F 04 01 52 F7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 93 D0 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E2 77 03 00 35 04 06 00 F8 FA 71 9D 19 86 93 C6 CC 69 48 7F 32 1D [09:42:40]CheckFolder [09:42:40]dirname=/storage/ofd_packets [09:42:40]CheckFolder done [09:42:40]ProducePacketName [09:42:40]name=ofd_packets/00227298 [09:42:40]NVStorageSaveData ofd_packets/00227298 [09:42:40]File name is /storage/ofd_packets/00227298 [09:42:40]Write 298 bytes [09:42:40]NVStorageSaveData done [09:42:40]OFDSenderStorePacket done [09:42:40]KKMCreateOFDPacket done [09:42:40]NVStorageSaveData kkm_last_timestamp [09:42:40]File name is /storage/kkm_last_timestamp [09:42:40]Write 4 bytes [09:42:40]NVStorageSaveData done [09:42:40]ExternCall_PrintAddStr [09:42:40]wPrintStart [09:42:40]Write to MH i2c: 01 00 00 38 40 78 [09:42:40]Write i2c OK [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: 01 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: 01 07 00 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: 01 07 00 38 40 00 00 00 00 00 FF 0F 8D [09:42:40]RasterBufferAndPrint [09:42:40]line Счет N : (1)1962768 [09:42:40]line ИНН: 02508201610067 [09:42:40]line Контрольно-Кассовый Чек [09:42:40]line ПРОДАЖА [09:42:40]line ТРК (МРК, ГНК) : 31 [09:42:40]line Товар: 2710194210 [09:42:40]line ДТ-К-5 [09:42:40]line 13.130 * 76.20 [09:42:40]line = 1000.51 [09:42:40]line НДС 12% НСП 1% [09:42:40]line > о реализуемом товаре [09:42:40]line ОКРУГЛЕНИЕ: -0.51 [09:42:40]line ИТОГО: 1000.00 [09:42:40]line Внесено: 1000.00 [09:42:40]line СДАЧА: 0.00 [09:42:40]line НСП 1% : 8.85 [09:42:40]line НДС 12% : 106.25 [09:42:40]line Наличными: 1000.00 [09:42:40]line Безнал.: 0.00 [09:42:40]line Место: АЗС № 133 "Партнер Нефть" [09:42:40]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:42:40]line СНО: Общий режим [09:42:40]line Чек 146 20.10.2024 09:42 [09:42:40]line Смена: 533 ФФД: 1.0 [09:42:40]line ЗНМ: 0300000091 [09:42:40]line РНМ: 0000000000091685 [09:42:40]line Версия ККМ: 001 [09:42:40]line ФМ: 0000000000871839 [09:42:40]line ФД: 227298 [09:42:40]line ФПД: 273754531633542 [09:42:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T094243&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227298&fm=273754531633542&tin=02508201610067®Number=0000000000091685&sum=100000 [09:42:41]OFD Sender: Processing packet 227298 [packets to send 38, broken 37] [09:42:41]ProducePacketName [09:42:41]name=ofd_packets/00227298 [09:42:41]OFD Sender: To server: pG, [09:42:41]CommunicateWithHost lk.salyk.kg:30040 [09:42:41]ConnectInit lk.salyk.kg [09:42:41]written 0, free lines is 4095 [09:42:41]Connected sock=10 [09:42: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 33 39 0C 01 00 00 63 0F 04 01 52 F7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 93 D0 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E2 77 03 00 35 04 06 00 F8 FA 71 9D 19 86 93 C6 CC 69 48 7F 32 1D [09:42: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 33 39 4F 00 00 00 D9 01 47 00 CC 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 33 39 10 04 04 00 E2 77 03 00 F4 03 04 00 92 7B 14 67 B6 04 01 00 00 9F 46 2F 9E 2B 44 15 57 [09:42:41]CommunicateWithHost err = 0 [09:42:41]CheckOFDResponse [09:42:41]1017 (14) - 77093643461234 [09:42:41]1041 (16) - 0000000000871839 [09:42:41]1040 (4) - 227298 [09:42:41]1012 (4) - 20.10.2024 03:40 [09:42:41]1206 (1) - 0 [09:42:41]OFD Sender: Remove packet 227298 [09:42:41]ProducePacketName [09:42:41]name=ofd_packets/00227298 [09:42:41]NVStorageDeleteData [09:42:41]Write to MH i2c: 01 00 00 62 40 A2 [09:42:41]Write i2c OK [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: 01 [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: 01 07 00 [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: 01 07 00 62 40 00 00 00 00 00 02 0D B8 [09:42:41]RasterBufferAndPrint [09:42:41]line [09:42:41]line [09:42:41]line [09:42:41]line [09:42:41]line [09:42:41]written 0, free lines is 3336 [09:42:41]process_action close_receipt done [09:42:41]requested_data is exist [09:42:41]produce_requested_data [09:42:41]requested_item fm.sn is exist - process it [09:42:41]wFMCommunicate request_size=4 [09:42:41]MH_SAM_APDU [09:42:41]CAPDU: 80 11 00 00 [09:42:41]Write to MH i2c: E2 08 00 69 40 80 11 00 00 00 00 00 00 23 [09:42:41]Write i2c OK [09:42:41]MH_I2C_Read... [09:42:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:41]Read from MH i2c: E2 [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: E2 17 00 [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: E2 17 00 69 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 7A [09:42:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:42:41]wFMCommunicate OK [09:42:41]requested_item fd.num is exist - process it [09:42:41]SAM_PROTO_GetFieldsCounters [09:42:41]wFMCommunicate request_size=4 [09:42:41]MH_SAM_APDU [09:42:41]CAPDU: 80 13 00 00 [09:42:41]Write to MH i2c: E2 08 00 6A 40 80 13 00 00 00 00 00 00 26 [09:42:41]Write i2c OK [09:42:41]MH_I2C_Read... [09:42:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:42:41]Read from MH i2c: E2 [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: E2 62 00 [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: E2 62 00 6A 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 E2 77 03 00 0E 04 04 00 15 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 78 [09:42: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 E2 77 03 00 0E 04 04 00 15 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 [09:42:41]wFMCommunicate OK [09:42:41]SAM_PROTO_GetFieldsCounters done [09:42:41]requested_item shift.num is exist - process it [09:42:41]requested_item shift.opened is exist - process it [09:42:41]req_shift_opened [09:42:41]FM_GetShiftState [09:42:41]SAM_PROTO_GetShiftState [09:42:41]wFMCommunicate request_size=4 [09:42:41]MH_SAM_APDU [09:42:41]CAPDU: 80 13 01 00 [09:42:41]Write to MH i2c: E2 08 00 6B 40 80 13 01 00 00 00 00 00 28 [09:42:41]Write i2c OK [09:42:41]MH_I2C_Read... [09:42:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:41]Read from MH i2c: E2 [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: E2 0E 00 [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: E2 0E 00 6B 40 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 42 [09:42:41]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:42:41]wFMCommunicate OK [09:42:41]SAM_PROTO_GetShiftState done [09:42:41]FM_GetShiftState done [09:42:41]req_shift_opened done [09:42:41]requested_item shift.open_date is exist - process it [09:42:41]req_shift_open_date [09:42:41]req_shift_open_date done [09:42:41]produce_requested_data done [09:42:41]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227298,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [09:42:41]process_action_free close_receipt [09:42:41]json_value_free [09:42:41]json_value_free done [09:42:41]process_json_proto returns [09:42:41]Send response to host [09:42:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227298,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [09:42:41]free response buf [09:42:41]execute_script done [09:42:41]execute_script returns [09:42:41]free content buf [09:42:41]Sock 8.Close socket [09:42:41]Sock 8.Thread stoped [09:42:42]OFD Sender: No OFD packet to send [09:42:43]accept exits with 9 [09:42:43]New connection [09:42:43]New thread 3066965348 created [09:42:43]Thread 3066821988 joined [09:42:43]Waiting for new connection... [09:42:43] Sock 9.Parse request [09:42:43]Sock 9.Check first char [09:42:43]Sock 9.First char is OK [09:42:43]request: POST /json_proto HTTP/1.0 [09:42:43]Method: POST [09:42:43]URL: /json_proto [09:42:43]Method is POST - this is cgi request [09:42:43]url: /json_proto [09:42:43]query_string will be loaded in cgi processing [09:42:43]execute_cgi json_proto POST (null) [09:42:43]execute_cgi path=json_proto method=POST [09:42:43]POST find Content-Length [09:42:43]Host: 172.17.44.195:8080 [09:42:43]Content-Length: 678 [09:42:43]Content-Type: application/json [09:42:43] [09:42:43]POST finish read [09:42:43]Found Content-Length = 678 [09:42:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962769", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:43]execute_script... [09:42: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)1962769", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:43]POST & json_proto [09:42:43]process_json_proto [09:42:43]json parsed OK: [09:42:43]protocol is kg_v1.0 [09:42:43]action value=close_receipt [09:42:43]process_action close_receipt [09:42:43]cmd_close_receipt [09:42:43]MH_GetDate [09:42:43]Write to MH i2c: F0 00 00 6C 40 9B [09:42:43]Write i2c OK [09:42:43]MH_I2C_Read... [09:42:43]Read from MH i2c: F0 [09:42:43]MH_I2C_Read... [09:42:43]Read from MH i2c: F0 09 00 [09:42:43]MH_I2C_Read... [09:42:43]Read from MH i2c: F0 09 00 6C 40 00 97 D0 14 67 82 C9 CF 66 06 [09:42:43]GetLastDocTimeStamp 1729417363 [09:42:43]current date 1729417367 [09:42:43]FM_GetShiftState [09:42:43]SAM_PROTO_GetShiftState [09:42:43]wFMCommunicate request_size=4 [09:42:43]MH_SAM_APDU [09:42:43]CAPDU: 80 13 01 00 [09:42:43]Write to MH i2c: E2 08 00 6D 40 80 13 01 00 00 00 00 00 2A [09:42:43]Write i2c OK [09:42:43]MH_I2C_Read... [09:42:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:43]Read from MH i2c: E2 [09:42:43]MH_I2C_Read... [09:42:43]Read from MH i2c: E2 0E 00 [09:42:43]MH_I2C_Read... [09:42:43]Read from MH i2c: E2 0E 00 6D 40 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 44 [09:42:43]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:42:43]wFMCommunicate OK [09:42:43]SAM_PROTO_GetShiftState done [09:42:43]FM_GetShiftState done [09:42:43]opened in 1729383750 [09:42:43]opened+sec_in_day 1729470150 [09:42:43]quantity*price = 50041 [09:42:43]sum+1 = 50042 [09:42:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 147 20.10.2024 09:42 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227299 ФПД: 6538379440228 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T094247&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227299&fm=6538379440228&tin=02508201610067®Number=0000000000091685&sum=50000 [09:42:44]StoreToDocumentArchive [09:42:44]shift 533 fd 227299 [09:42:44]save to /storage/0533/doc_00227299 [09:42:44]save last doc name /storage/0533/doc_00227299 to /storage/kkm_last_doc_name [09:42:44]save OK [09:42:44]Clear old archive folders... [09:42:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:42:44]tlvbuf is 00635A80 [09:42:44]SAM_PROTO_ClearQueue [09:42:44]wFMCommunicate request_size=4 [09:42:44]MH_SAM_APDU [09:42:44]CAPDU: 80 09 00 00 [09:42:44]Write to MH i2c: E2 08 00 7A 40 80 09 00 00 00 00 00 00 2C [09:42:44]Write i2c OK [09:42:44]MH_I2C_Read... [09:42:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:42:44]Read from MH i2c: E2 [09:42:44]MH_I2C_Read... [09:42:44]Read from MH i2c: E2 03 00 [09:42:44]MH_I2C_Read... [09:42:44]Read from MH i2c: E2 03 00 7A 40 00 90 00 2E [09:42:44]RAPDU: 90 00 [09:42:44]wFMCommunicate OK [09:42:44]SAM_PROTO_ClearQueue done [09:42:44]KKMCreateOFDPacket [09:42:44]OFDProtocolAddRootSTLVToBuf [09:42:44]FM_MakeSignedData [09:42:44]FM_MakeSignedData [09:42:44]SAM_PROTO_SignData [09:42:44]wFMCommunicate request_size=4 [09:42:44]MH_SAM_APDU [09:42:44]CAPDU: 80 0D 01 02 [09:42:44]Write to MH i2c: E2 08 00 7B 40 80 0D 01 02 00 00 00 00 34 [09:42:44]Write i2c OK [09:42:44]MH_I2C_Read... [09:42:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:42:44]Read from MH i2c: E2 [09:42:44]MH_I2C_Read... [09:42:44]Read from MH i2c: E2 03 00 [09:42:44]MH_I2C_Read... [09:42:44]Read from MH i2c: E2 03 00 7B 40 00 90 00 2F [09:42:44]RAPDU: 90 00 [09:42:44]wFMCommunicate OK [09:42:44]wFMCommunicate request_size=255 [09:42:44]MH_SAM_APDU [09:42:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 97 D0 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E3 77 03 00 35 04 06 00 05 [09:42:44]Write to MH i2c: E2 02 01 7C 40 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 97 D0 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E3 77 03 00 35 04 06 00 05 00 00 B9 [09:42:44]Write i2c OK [09:42:44]MH_I2C_Read... [09:42:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:45]Read from MH i2c: E2 [09:42:45]MH_I2C_Read... [09:42:45]Read from MH i2c: E2 03 00 [09:42:45]MH_I2C_Read... [09:42:45]Read from MH i2c: E2 03 00 7C 40 00 90 00 30 [09:42:45]RAPDU: 90 00 [09:42:45]wFMCommunicate OK [09:42:45]wFMCommunicate request_size=10 [09:42:45]MH_SAM_APDU [09:42:45]CAPDU: 80 0D 02 02 05 F2 55 C8 B0 64 [09:42:45]Write to MH i2c: E2 0D 00 7D 40 80 0D 02 02 05 00 F2 55 C8 B0 64 00 00 64 [09:42:45]Write i2c OK [09:42:45]MH_I2C_Read... [09:42:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:45]Read from MH i2c: E2 [09:42:45]MH_I2C_Read... [09:42:45]Read from MH i2c: E2 03 00 [09:42:45]MH_I2C_Read... [09:42:45]Read from MH i2c: E2 03 00 7D 40 00 90 00 31 [09:42:45]RAPDU: 90 00 [09:42:45]wFMCommunicate OK [09:42:45]wFMCommunicate request_size=4 [09:42:45]MH_SAM_APDU [09:42:45]CAPDU: 80 0D 03 02 [09:42:45]Write to MH i2c: E2 08 00 7E 40 80 0D 03 02 00 00 00 00 39 [09:42:45]Write i2c OK [09:42:45]MH_I2C_Read... [09:42:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:42:45]Read from MH i2c: E2 [09:42:45]MH_I2C_Read... [09:42:45]Read from MH i2c: E2 0B 00 [09:42:45]MH_I2C_Read... [09:42:45]Read from MH i2c: E2 0B 00 7E 40 00 C3 7C 30 8A 64 44 37 17 90 00 29 [09:42:45]RAPDU: C3 7C 30 8A 64 44 37 17 90 00 [09:42:45]wFMCommunicate OK [09:42:45]SAM_PROTO_SignData done [09:42:45]FM_MakeSignedData done [09:42:45]CreateOFDProtocolMessage [09:42:45]wFMCommunicate request_size=4 [09:42:45]MH_SAM_APDU [09:42:45]CAPDU: 80 11 00 00 [09:42:45]Write to MH i2c: E2 08 00 7F 40 80 11 00 00 00 00 00 00 39 [09:42:45]Write i2c OK [09:42:45]MH_I2C_Read... [09:42:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:45]Read from MH i2c: E2 [09:42:45]MH_I2C_Read... [09:42:45]Read from MH i2c: E2 17 00 [09:42:45]MH_I2C_Read... [09:42:45]Read from MH i2c: E2 17 00 7F 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 90 [09:42:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:42:45]wFMCommunicate OK [09:42:45]CreateOFDProtocolMessage done [09:42:45]OFDSenderStorePacket 227299 [09:42:45]StoreOFDPacket docnum=227299 [09:42:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 4F BC 07 01 98 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 97 D0 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E3 77 03 00 35 04 06 00 05 F2 55 C8 B0 64 C3 7C 30 8A 64 44 37 17 [09:42:45]CheckFolder [09:42:45]dirname=/storage/ofd_packets [09:42:45]CheckFolder done [09:42:45]ProducePacketName [09:42:45]name=ofd_packets/00227299 [09:42:45]NVStorageSaveData ofd_packets/00227299 [09:42:45]File name is /storage/ofd_packets/00227299 [09:42:45]Write 301 bytes [09:42:45]NVStorageSaveData done [09:42:45]OFDSenderStorePacket done [09:42:45]KKMCreateOFDPacket done [09:42:45]NVStorageSaveData kkm_last_timestamp [09:42:45]File name is /storage/kkm_last_timestamp [09:42:45]Write 4 bytes [09:42:45]NVStorageSaveData done [09:42:45]ExternCall_PrintAddStr [09:42:45]wPrintStart [09:42:45]Write to MH i2c: 01 00 00 80 40 C0 [09:42:45]Write i2c OK [09:42:45]MH_I2C_Read... [09:42:45]Read from MH i2c: 01 [09:42:45]MH_I2C_Read... [09:42:45]Read from MH i2c: 01 07 00 [09:42:45]MH_I2C_Read... [09:42:45]Read from MH i2c: 01 07 00 80 40 00 00 00 00 00 FF 0F D5 [09:42:45]RasterBufferAndPrint [09:42:45]line Счет N : (1)1962769 [09:42:45]line ИНН: 02508201610067 [09:42:45]line Контрольно-Кассовый Чек [09:42:45]line ПРОДАЖА [09:42:45]line ТРК (МРК, ГНК) : 53 [09:42:45]line Товар: 2710124130 [09:42:45]line Аи-92-К-5 [09:42:45]line 7.480 * 66.90 [09:42:45]line = 500.41 [09:42:45]line НДС 12% НСП 1% [09:42:45]line > о реализуемом товаре [09:42:45]line ОКРУГЛЕНИЕ: -0.41 [09:42:45]line ИТОГО: 500.00 [09:42:45]line Внесено: 500.00 [09:42:45]line СДАЧА: 0.00 [09:42:45]line НСП 1% : 4.43 [09:42:45]line НДС 12% : 53.14 [09:42:45]line Наличными: 500.00 [09:42:45]line Безнал.: 0.00 [09:42:45]line Место: АЗС № 133 "Партнер Нефть" [09:42:45]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:42:45]line СНО: Общий режим [09:42:45]line Чек 147 20.10.2024 09:42 [09:42:45]line Смена: 533 ФФД: 1.0 [09:42:45]line ЗНМ: 0300000091 [09:42:45]line РНМ: 0000000000091685 [09:42:45]line Версия ККМ: 001 [09:42:45]line ФМ: 0000000000871839 [09:42:45]line ФД: 227299 [09:42:45]line ФПД: 6538379440228 [09:42:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T094247&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227299&fm=6538379440228&tin=02508201610067®Number=0000000000091685&sum=50000 [09:42:45]written 0, free lines is 4095 [09:42:45]OFD Sender: Processing packet 227299 [packets to send 38, broken 37] [09:42:45]ProducePacketName [09:42:45]name=ofd_packets/00227299 [09:42:45]OFD Sender: To server: pG, [09:42:45]CommunicateWithHost lk.salyk.kg:30040 [09:42:45]ConnectInit lk.salyk.kg [09:42:45]Connected sock=10 [09:42: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 33 39 0F 01 00 00 4F BC 07 01 98 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 97 D0 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E3 77 03 00 35 04 06 00 05 F2 55 C8 B0 64 C3 7C 30 8A 64 44 37 17 [09:42: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 33 39 4F 00 00 00 00 8D 47 00 06 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E3 77 03 00 F4 03 04 00 96 7B 14 67 B6 04 01 00 00 19 7D B8 1D E2 2C 84 2A [09:42:45]CommunicateWithHost err = 0 [09:42:45]CheckOFDResponse [09:42:45]1017 (14) - 77093643461234 [09:42:45]1041 (16) - 0000000000871839 [09:42:45]1040 (4) - 227299 [09:42:45]1012 (4) - 20.10.2024 03:40 [09:42:45]1206 (1) - 0 [09:42:45]OFD Sender: Remove packet 227299 [09:42:45]ProducePacketName [09:42:45]name=ofd_packets/00227299 [09:42:45]NVStorageDeleteData [09:42:45]Write to MH i2c: 01 00 00 AA 40 EA [09:42:45]Write i2c OK [09:42:45]MH_I2C_Read... [09:42:45]Read from MH i2c: 01 [09:42:45]MH_I2C_Read... [09:42:45]Read from MH i2c: 01 07 00 [09:42:45]MH_I2C_Read... [09:42:45]Read from MH i2c: 01 07 00 AA 40 00 00 00 00 00 01 0D FF [09:42:45]RasterBufferAndPrint [09:42:45]line [09:42:45]line [09:42:45]line [09:42:45]line [09:42:45]line [09:42:45]written 0, free lines is 3344 [09:42:45]process_action close_receipt done [09:42:45]requested_data is exist [09:42:45]produce_requested_data [09:42:45]requested_item fm.sn is exist - process it [09:42:45]wFMCommunicate request_size=4 [09:42:45]MH_SAM_APDU [09:42:45]CAPDU: 80 11 00 00 [09:42:45]Write to MH i2c: E2 08 00 B1 40 80 11 00 00 00 00 00 00 6B [09:42:45]Write i2c OK [09:42:45]MH_I2C_Read... [09:42:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:45]Read from MH i2c: E2 [09:42:45]MH_I2C_Read... [09:42:45]Read from MH i2c: E2 17 00 [09:42:45]MH_I2C_Read... [09:42:45]Read from MH i2c: E2 17 00 B1 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C2 [09:42:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:42:45]wFMCommunicate OK [09:42:45]requested_item fd.num is exist - process it [09:42:45]SAM_PROTO_GetFieldsCounters [09:42:45]wFMCommunicate request_size=4 [09:42:45]MH_SAM_APDU [09:42:45]CAPDU: 80 13 00 00 [09:42:45]Write to MH i2c: E2 08 00 B2 40 80 13 00 00 00 00 00 00 6E [09:42:45]Write i2c OK [09:42:45]MH_I2C_Read... [09:42:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:42:46]Read from MH i2c: E2 [09:42:46]MH_I2C_Read... [09:42:46]Read from MH i2c: E2 62 00 [09:42:46]MH_I2C_Read... [09:42:46]Read from MH i2c: E2 62 00 B2 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 E3 77 03 00 0E 04 04 00 15 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 C4 [09:42: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 E3 77 03 00 0E 04 04 00 15 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 [09:42:46]wFMCommunicate OK [09:42:46]SAM_PROTO_GetFieldsCounters done [09:42:46]requested_item shift.num is exist - process it [09:42:46]requested_item shift.opened is exist - process it [09:42:46]req_shift_opened [09:42:46]FM_GetShiftState [09:42:46]SAM_PROTO_GetShiftState [09:42:46]wFMCommunicate request_size=4 [09:42:46]MH_SAM_APDU [09:42:46]CAPDU: 80 13 01 00 [09:42:46]Write to MH i2c: E2 08 00 B3 40 80 13 01 00 00 00 00 00 70 [09:42:46]Write i2c OK [09:42:46]MH_I2C_Read... [09:42:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:46]Read from MH i2c: E2 [09:42:46]MH_I2C_Read... [09:42:46]Read from MH i2c: E2 0E 00 [09:42:46]MH_I2C_Read... [09:42:46]Read from MH i2c: E2 0E 00 B3 40 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 8A [09:42:46]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:42:46]wFMCommunicate OK [09:42:46]SAM_PROTO_GetShiftState done [09:42:46]FM_GetShiftState done [09:42:46]req_shift_opened done [09:42:46]requested_item shift.open_date is exist - process it [09:42:46]req_shift_open_date [09:42:46]req_shift_open_date done [09:42:46]produce_requested_data done [09:42:46]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227299,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [09:42:46]process_action_free close_receipt [09:42:46]json_value_free [09:42:46]json_value_free done [09:42:46]process_json_proto returns [09:42:46]Send response to host [09:42:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227299,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [09:42:46]free response buf [09:42:46]execute_script done [09:42:46]execute_script returns [09:42:46]free content buf [09:42:46]Sock 9.Close socket [09:42:46]Sock 9.Thread stoped [09:42:46]OFD Sender: No OFD packet to send [09:42:51]OFD Sender: No OFD packet to send [09:42:56]OFD Sender: No OFD packet to send [09:43:01]OFD Sender: No OFD packet to send [09:43:06]OFD Sender: No OFD packet to send [09:43:11]OFD Sender: No OFD packet to send [09:43:16]OFD Sender: No OFD packet to send [09:43:21]OFD Sender: No OFD packet to send [09:43:26]OFD Sender: No OFD packet to send [09:43:31]OFD Sender: No OFD packet to send [09:43:36]OFD Sender: No OFD packet to send [09:43:41]OFD Sender: No OFD packet to send [09:43:44]accept exits with 8 [09:43:44]New connection [09:43:44]New thread 3066821988 created [09:43:44]Thread 3066965348 joined [09:43:44]Waiting for new connection... [09:43:44] Sock 8.Parse request [09:43:44]Sock 8.Check first char [09:43:44]Sock 8.First char is OK [09:43:44]request: POST /json_proto HTTP/1.0 [09:43:44]Method: POST [09:43:44]URL: /json_proto [09:43:44]Method is POST - this is cgi request [09:43:44]url: /json_proto [09:43:44]query_string will be loaded in cgi processing [09:43:44]execute_cgi json_proto POST (null) [09:43:44]execute_cgi path=json_proto method=POST [09:43:44]POST find Content-Length [09:43:44]Host: 172.17.44.195:8080 [09:43:44]Content-Length: 621 [09:43:44]Content-Type: application/json [09:43:44] [09:43:44]POST finish read [09:43:44]Found Content-Length = 621 [09:43:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962771", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:44]execute_script... [09:43: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)1962771", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:44]POST & json_proto [09:43:44]process_json_proto [09:43:44]json parsed OK: [09:43:44]protocol is kg_v1.0 [09:43:44]action value=close_receipt [09:43:44]process_action close_receipt [09:43:44]cmd_close_receipt [09:43:44]MH_GetDate [09:43:44]Write to MH i2c: F0 00 00 B4 40 E3 [09:43:44]Write i2c OK [09:43:44]MH_I2C_Read... [09:43:44]Read from MH i2c: F0 [09:43:44]MH_I2C_Read... [09:43:44]Read from MH i2c: F0 09 00 [09:43:44]MH_I2C_Read... [09:43:44]Read from MH i2c: F0 09 00 B4 40 00 D4 D0 14 67 82 C9 CF 66 8B [09:43:44]GetLastDocTimeStamp 1729417367 [09:43:44]current date 1729417428 [09:43:44]FM_GetShiftState [09:43:44]SAM_PROTO_GetShiftState [09:43:44]wFMCommunicate request_size=4 [09:43:44]MH_SAM_APDU [09:43:44]CAPDU: 80 13 01 00 [09:43:44]Write to MH i2c: E2 08 00 B5 40 80 13 01 00 00 00 00 00 72 [09:43:44]Write i2c OK [09:43:44]MH_I2C_Read... [09:43:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:44]Read from MH i2c: E2 [09:43:44]MH_I2C_Read... [09:43:44]Read from MH i2c: E2 0E 00 [09:43:44]MH_I2C_Read... [09:43:44]Read from MH i2c: E2 0E 00 B5 40 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 8C [09:43:44]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:43:44]wFMCommunicate OK [09:43:44]SAM_PROTO_GetShiftState done [09:43:44]FM_GetShiftState done [09:43:44]opened in 1729383750 [09:43:44]opened+sec_in_day 1729470150 [09:43:44]quantity*price = 50000 [09:43:44]sum+1 = 50001 [09:43:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 148 20.10.2024 09:43 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227300 ФПД: 78092186997975 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T094348&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227300&fm=78092186997975&tin=02508201610067®Number=0000000000091685&sum=50000 [09:43:45]StoreToDocumentArchive [09:43:45]shift 533 fd 227300 [09:43:45]save to /storage/0533/doc_00227300 [09:43:45]save last doc name /storage/0533/doc_00227300 to /storage/kkm_last_doc_name [09:43:45]save OK [09:43:45]Clear old archive folders... [09:43:45]ProcessDocumentItem done err = 0, tmpTLVsize=244 [09:43:45]tlvbuf is B6F58800 [09:43:45]SAM_PROTO_ClearQueue [09:43:45]wFMCommunicate request_size=4 [09:43:45]MH_SAM_APDU [09:43:45]CAPDU: 80 09 00 00 [09:43:45]Write to MH i2c: E2 08 00 C2 40 80 09 00 00 00 00 00 00 74 [09:43:45]Write i2c OK [09:43:45]MH_I2C_Read... [09:43:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:43:45]Read from MH i2c: E2 [09:43:45]MH_I2C_Read... [09:43:45]Read from MH i2c: E2 03 00 [09:43:45]MH_I2C_Read... [09:43:45]Read from MH i2c: E2 03 00 C2 40 00 90 00 76 [09:43:45]RAPDU: 90 00 [09:43:45]wFMCommunicate OK [09:43:45]SAM_PROTO_ClearQueue done [09:43:45]KKMCreateOFDPacket [09:43:45]OFDProtocolAddRootSTLVToBuf [09:43:45]FM_MakeSignedData [09:43:45]FM_MakeSignedData [09:43:45]SAM_PROTO_SignData [09:43:45]wFMCommunicate request_size=4 [09:43:45]MH_SAM_APDU [09:43:45]CAPDU: 80 0D 01 02 [09:43:45]Write to MH i2c: E2 08 00 C3 40 80 0D 01 02 00 00 00 00 7C [09:43:45]Write i2c OK [09:43:45]MH_I2C_Read... [09:43:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:43:45]Read from MH i2c: E2 [09:43:45]MH_I2C_Read... [09:43:45]Read from MH i2c: E2 03 00 [09:43:45]MH_I2C_Read... [09:43:45]Read from MH i2c: E2 03 00 C3 40 00 90 00 77 [09:43:45]RAPDU: 90 00 [09:43:45]wFMCommunicate OK [09:43:45]wFMCommunicate request_size=253 [09:43:45]MH_SAM_APDU [09:43:45]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 D4 D0 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E4 77 03 00 35 04 06 00 47 06 41 10 D4 D7 [09:43:45]Write to MH i2c: E2 00 01 C4 40 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 D4 D0 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E4 77 03 00 35 04 06 00 47 06 41 10 D4 D7 00 00 EF [09:43:45]Write i2c OK [09:43:45]MH_I2C_Read... [09:43:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:45]Read from MH i2c: E2 [09:43:45]MH_I2C_Read... [09:43:45]Read from MH i2c: E2 03 00 [09:43:45]MH_I2C_Read... [09:43:45]Read from MH i2c: E2 03 00 C4 40 00 90 00 78 [09:43:45]RAPDU: 90 00 [09:43:45]wFMCommunicate OK [09:43:45]wFMCommunicate request_size=4 [09:43:45]MH_SAM_APDU [09:43:45]CAPDU: 80 0D 03 02 [09:43:45]Write to MH i2c: E2 08 00 C5 40 80 0D 03 02 00 00 00 00 80 [09:43:45]Write i2c OK [09:43:45]MH_I2C_Read... [09:43:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:43:45]Read from MH i2c: E2 [09:43:45]MH_I2C_Read... [09:43:45]Read from MH i2c: E2 0B 00 [09:43:45]MH_I2C_Read... [09:43:45]Read from MH i2c: E2 0B 00 C5 40 00 1A FC E5 7D 4D 03 6D 9D 90 00 53 [09:43:45]RAPDU: 1A FC E5 7D 4D 03 6D 9D 90 00 [09:43:45]wFMCommunicate OK [09:43:45]SAM_PROTO_SignData done [09:43:45]FM_MakeSignedData done [09:43:45]CreateOFDProtocolMessage [09:43:45]wFMCommunicate request_size=4 [09:43:45]MH_SAM_APDU [09:43:45]CAPDU: 80 11 00 00 [09:43:45]Write to MH i2c: E2 08 00 C6 40 80 11 00 00 00 00 00 00 80 [09:43:45]Write i2c OK [09:43:45]MH_I2C_Read... [09:43:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:45]Read from MH i2c: E2 [09:43:45]MH_I2C_Read... [09:43:45]Read from MH i2c: E2 17 00 [09:43:45]MH_I2C_Read... [09:43:45]Read from MH i2c: E2 17 00 C6 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D7 [09:43:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:43:45]wFMCommunicate OK [09:43:45]CreateOFDProtocolMessage done [09:43:45]OFDSenderStorePacket 227300 [09:43:45]StoreOFDPacket docnum=227300 [09:43:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 80 50 00 01 87 01 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 D4 D0 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E4 77 03 00 35 04 06 00 47 06 41 10 D4 D7 1A FC E5 7D 4D 03 6D 9D [09:43:45]CheckFolder [09:43:45]dirname=/storage/ofd_packets [09:43:45]CheckFolder done [09:43:45]ProducePacketName [09:43:45]name=ofd_packets/00227300 [09:43:45]NVStorageSaveData ofd_packets/00227300 [09:43:45]File name is /storage/ofd_packets/00227300 [09:43:45]Write 294 bytes [09:43:45]NVStorageSaveData done [09:43:45]OFDSenderStorePacket done [09:43:45]KKMCreateOFDPacket done [09:43:45]NVStorageSaveData kkm_last_timestamp [09:43:45]File name is /storage/kkm_last_timestamp [09:43:45]Write 4 bytes [09:43:45]NVStorageSaveData done [09:43:45]ExternCall_PrintAddStr [09:43:45]wPrintStart [09:43:45]Write to MH i2c: 01 00 00 C7 40 07 [09:43:45]Write i2c OK [09:43:45]MH_I2C_Read... [09:43:45]Read from MH i2c: 01 [09:43:45]MH_I2C_Read... [09:43:45]Read from MH i2c: 01 07 00 [09:43:45]MH_I2C_Read... [09:43:45]Read from MH i2c: 01 07 00 C7 40 00 00 00 00 00 FF 0F 1C [09:43:45]RasterBufferAndPrint [09:43:45]line Счет N : (1)1962771 [09:43:45]line ИНН: 02508201610067 [09:43:45]line Контрольно-Кассовый Чек [09:43:45]line ПРОДАЖА [09:43:45]line ТРК (МРК, ГНК) : 62 [09:43:45]line Товар: 2710124130 [09:43:45]line SU-92 [09:43:45]line 7.310 * 68.40 [09:43:45]line = 500.00 [09:43:45]line НДС 12% НСП 1% [09:43:45]line > о реализуемом товаре [09:43:45]line ИТОГО: 500.00 [09:43:45]line НСП 1% : 4.42 [09:43:45]line НДС 12% : 53.10 [09:43:45]line Наличными: 500.00 [09:43:45]line Безнал.: 0.00 [09:43:45]line Место: АЗС № 133 "Партнер Нефть" [09:43:45]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:43:45]line СНО: Общий режим [09:43:45]line Чек 148 20.10.2024 09:43 [09:43:45]line Смена: 533 ФФД: 1.0 [09:43:45]line ЗНМ: 0300000091 [09:43:45]line РНМ: 0000000000091685 [09:43:45]line Версия ККМ: 001 [09:43:45]line ФМ: 0000000000871839 [09:43:45]line ФД: 227300 [09:43:45]line ФПД: 78092186997975 [09:43:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T094348&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227300&fm=78092186997975&tin=02508201610067®Number=0000000000091685&sum=50000 [09:43:46]OFD Sender: Processing packet 227300 [packets to send 38, broken 37] [09:43:46]ProducePacketName [09:43:46]name=ofd_packets/00227300 [09:43:46]OFD Sender: To server: pG, [09:43:46]CommunicateWithHost lk.salyk.kg:30040 [09:43:46]ConnectInit lk.salyk.kg [09:43:46]written 0, free lines is 4095 [09:43:46]Connected sock=10 [09:43: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 33 39 08 01 00 00 80 50 00 01 87 01 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 D4 D0 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E4 77 03 00 35 04 06 00 47 06 41 10 D4 D7 1A FC E5 7D 4D 03 6D 9D [09: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 33 39 4F 00 00 00 13 25 47 00 4A 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E4 77 03 00 F4 03 04 00 D3 7B 14 67 B6 04 01 00 00 64 F4 86 C6 79 E8 7A 10 [09:43:46]CommunicateWithHost err = 0 [09:43:46]CheckOFDResponse [09:43:46]1017 (14) - 77093643461234 [09:43:46]1041 (16) - 0000000000871839 [09:43:46]1040 (4) - 227300 [09:43:46]1012 (4) - 20.10.2024 03:41 [09:43:46]1206 (1) - 0 [09:43:46]OFD Sender: Remove packet 227300 [09:43:46]ProducePacketName [09:43:46]name=ofd_packets/00227300 [09:43:46]NVStorageDeleteData [09:43:46]Write to MH i2c: 01 00 00 EE 40 2E [09:43:46]Write i2c OK [09:43:46]MH_I2C_Read... [09:43:46]Read from MH i2c: 01 [09:43:46]MH_I2C_Read... [09:43:46]Read from MH i2c: 01 07 00 [09:43:46]MH_I2C_Read... [09:43:46]Read from MH i2c: 01 07 00 EE 40 00 00 00 00 00 31 0D 73 [09:43:46]RasterBufferAndPrint [09:43:46]line [09:43:46]line [09:43:46]line [09:43:46]line [09:43:46]line [09:43:46]written 0, free lines is 3384 [09:43:46]process_action close_receipt done [09:43:46]requested_data is exist [09:43:46]produce_requested_data [09:43:46]requested_item fm.sn is exist - process it [09:43:46]wFMCommunicate request_size=4 [09:43:46]MH_SAM_APDU [09:43:46]CAPDU: 80 11 00 00 [09:43:46]Write to MH i2c: E2 08 00 F5 40 80 11 00 00 00 00 00 00 AF [09:43:46]Write i2c OK [09:43:46]MH_I2C_Read... [09:43:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:46]Read from MH i2c: E2 [09:43:46]MH_I2C_Read... [09:43:46]Read from MH i2c: E2 17 00 [09:43:46]MH_I2C_Read... [09:43:46]Read from MH i2c: E2 17 00 F5 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 06 [09:43:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:43:46]wFMCommunicate OK [09:43:46]requested_item fd.num is exist - process it [09:43:46]SAM_PROTO_GetFieldsCounters [09:43:46]wFMCommunicate request_size=4 [09:43:46]MH_SAM_APDU [09:43:46]CAPDU: 80 13 00 00 [09:43:46]Write to MH i2c: E2 08 00 F6 40 80 13 00 00 00 00 00 00 B2 [09:43:46]Write i2c OK [09:43:46]MH_I2C_Read... [09:43:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:43:46]Read from MH i2c: E2 [09:43:46]MH_I2C_Read... [09:43:46]Read from MH i2c: E2 62 00 [09:43:46]MH_I2C_Read... [09:43:46]Read from MH i2c: E2 62 00 F6 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 E4 77 03 00 0E 04 04 00 15 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 0C [09:43: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 E4 77 03 00 0E 04 04 00 15 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 [09:43:46]wFMCommunicate OK [09:43:46]SAM_PROTO_GetFieldsCounters done [09:43:46]requested_item shift.num is exist - process it [09:43:46]requested_item shift.opened is exist - process it [09:43:46]req_shift_opened [09:43:46]FM_GetShiftState [09:43:46]SAM_PROTO_GetShiftState [09:43:46]wFMCommunicate request_size=4 [09:43:46]MH_SAM_APDU [09:43:46]CAPDU: 80 13 01 00 [09:43:46]Write to MH i2c: E2 08 00 F7 40 80 13 01 00 00 00 00 00 B4 [09:43:46]Write i2c OK [09:43:46]MH_I2C_Read... [09:43:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:46]Read from MH i2c: E2 [09:43:46]MH_I2C_Read... [09:43:46]Read from MH i2c: E2 0E 00 [09:43:46]MH_I2C_Read... [09:43:46]Read from MH i2c: E2 0E 00 F7 40 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 CE [09:43:46]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:43:46]wFMCommunicate OK [09:43:46]SAM_PROTO_GetShiftState done [09:43:46]FM_GetShiftState done [09:43:46]req_shift_opened done [09:43:46]requested_item shift.open_date is exist - process it [09:43:46]req_shift_open_date [09:43:46]req_shift_open_date done [09:43:46]produce_requested_data done [09:43:46]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227300,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [09:43:46]process_action_free close_receipt [09:43:46]json_value_free [09:43:46]json_value_free done [09:43:46]process_json_proto returns [09:43:46]Send response to host [09:43:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227300,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [09:43:46]free response buf [09:43:46]execute_script done [09:43:46]execute_script returns [09:43:46]free content buf [09:43:46]Sock 8.Close socket [09:43:46]Sock 8.Thread stoped [09:43:46]OFD Sender: No OFD packet to send [09:43:47]accept exits with 9 [09:43:47]New connection [09:43:47]New thread 3066965348 created [09:43:47]Thread 3066821988 joined [09:43:47]Waiting for new connection... [09:43:47] Sock 9.Parse request [09:43:47]Sock 9.Check first char [09:43:47]Sock 9.First char is OK [09:43:47]request: POST /json_proto HTTP/1.0 [09:43:47]Method: POST [09:43:47]URL: /json_proto [09:43:47]Method is POST - this is cgi request [09:43:47]url: /json_proto [09:43:47]query_string will be loaded in cgi processing [09:43:47]execute_cgi json_proto POST (null) [09:43:47]execute_cgi path=json_proto method=POST [09:43:47]POST find Content-Length [09:43:47]Host: 172.17.44.195:8080 [09:43:47]Content-Length: 678 [09:43:47]Content-Type: application/json [09:43:47] [09:43:47]POST finish read [09:43:47]Found Content-Length = 678 [09:43:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962770", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:47]execute_script... [09:43: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)1962770", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:47]POST & json_proto [09:43:47]process_json_proto [09:43:47]json parsed OK: [09:43:47]protocol is kg_v1.0 [09:43:47]action value=close_receipt [09:43:47]process_action close_receipt [09:43:47]cmd_close_receipt [09:43:47]MH_GetDate [09:43:47]Write to MH i2c: F0 00 00 F8 40 27 [09:43:47]Write i2c OK [09:43:47]MH_I2C_Read... [09:43:47]Read from MH i2c: F0 [09:43:47]MH_I2C_Read... [09:43:47]Read from MH i2c: F0 09 00 [09:43:47]MH_I2C_Read... [09:43:47]Read from MH i2c: F0 09 00 F8 40 00 D7 D0 14 67 82 C9 CF 66 D2 [09:43:47]GetLastDocTimeStamp 1729417428 [09:43:47]current date 1729417431 [09:43:47]FM_GetShiftState [09:43:47]SAM_PROTO_GetShiftState [09:43:47]wFMCommunicate request_size=4 [09:43:47]MH_SAM_APDU [09:43:47]CAPDU: 80 13 01 00 [09:43:47]Write to MH i2c: E2 08 00 F9 40 80 13 01 00 00 00 00 00 B6 [09:43:47]Write i2c OK [09:43:47]MH_I2C_Read... [09:43:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:47]Read from MH i2c: E2 [09:43:47]MH_I2C_Read... [09:43:47]Read from MH i2c: E2 0E 00 [09:43:47]MH_I2C_Read... [09:43:47]Read from MH i2c: E2 0E 00 F9 40 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 D0 [09:43:47]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:43:47]wFMCommunicate OK [09:43:47]SAM_PROTO_GetShiftState done [09:43:47]FM_GetShiftState done [09:43:47]opened in 1729383750 [09:43:47]opened+sec_in_day 1729470150 [09:43:47]quantity*price = 35055 [09:43:47]sum+1 = 35057 [09:43:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 149 20.10.2024 09:43 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227301 ФПД: 92386671922086 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T094351&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227301&fm=92386671922086&tin=02508201610067®Number=0000000000091685&sum=35000 [09:43:49]StoreToDocumentArchive [09:43:49]shift 533 fd 227301 [09:43:49]save to /storage/0533/doc_00227301 [09:43:49]save last doc name /storage/0533/doc_00227301 to /storage/kkm_last_doc_name [09:43:49]save OK [09:43:49]Clear old archive folders... [09:43:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:43:49]tlvbuf is 00633630 [09:43:49]SAM_PROTO_ClearQueue [09:43:49]wFMCommunicate request_size=4 [09:43:49]MH_SAM_APDU [09:43:49]CAPDU: 80 09 00 00 [09:43:49]Write to MH i2c: E2 08 00 06 41 80 09 00 00 00 00 00 00 B9 [09:43:49]Write i2c OK [09:43:49]MH_I2C_Read... [09:43:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:43:49]Read from MH i2c: E2 [09:43:49]MH_I2C_Read... [09:43:49]Read from MH i2c: E2 03 00 [09:43:49]MH_I2C_Read... [09:43:49]Read from MH i2c: E2 03 00 06 41 00 90 00 BB [09:43:49]RAPDU: 90 00 [09:43:49]wFMCommunicate OK [09:43:49]SAM_PROTO_ClearQueue done [09:43:49]KKMCreateOFDPacket [09:43:49]OFDProtocolAddRootSTLVToBuf [09:43:49]FM_MakeSignedData [09:43:49]FM_MakeSignedData [09:43:49]SAM_PROTO_SignData [09:43:49]wFMCommunicate request_size=4 [09:43:49]MH_SAM_APDU [09:43:49]CAPDU: 80 0D 01 02 [09:43:49]Write to MH i2c: E2 08 00 07 41 80 0D 01 02 00 00 00 00 C1 [09:43:49]Write i2c OK [09:43:49]MH_I2C_Read... [09:43:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:43:49]Read from MH i2c: E2 [09:43:49]MH_I2C_Read... [09:43:49]Read from MH i2c: E2 03 00 [09:43:49]MH_I2C_Read... [09:43:49]Read from MH i2c: E2 03 00 07 41 00 90 00 BC [09:43:49]RAPDU: 90 00 [09:43:49]wFMCommunicate OK [09:43:49]wFMCommunicate request_size=255 [09:43:49]MH_SAM_APDU [09:43:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 D7 D0 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E5 77 03 00 35 04 06 00 54 [09:43:49]Write to MH i2c: E2 02 01 08 41 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 D7 D0 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E5 77 03 00 35 04 06 00 54 00 00 E4 [09:43:49]Write i2c OK [09:43:49]MH_I2C_Read... [09:43:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:49]Read from MH i2c: E2 [09:43:49]MH_I2C_Read... [09:43:49]Read from MH i2c: E2 03 00 [09:43:49]MH_I2C_Read... [09:43:49]Read from MH i2c: E2 03 00 08 41 00 90 00 BD [09:43:49]RAPDU: 90 00 [09:43:49]wFMCommunicate OK [09:43:49]wFMCommunicate request_size=10 [09:43:49]MH_SAM_APDU [09:43:49]CAPDU: 80 0D 02 02 05 06 72 C3 0B A6 [09:43:49]Write to MH i2c: E2 0D 00 09 41 80 0D 02 02 05 00 06 72 C3 0B A6 00 00 BA [09:43:49]Write i2c OK [09:43:49]MH_I2C_Read... [09:43:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:49]Read from MH i2c: E2 [09:43:49]MH_I2C_Read... [09:43:49]Read from MH i2c: E2 03 00 [09:43:49]MH_I2C_Read... [09:43:49]Read from MH i2c: E2 03 00 09 41 00 90 00 BE [09:43:49]RAPDU: 90 00 [09:43:49]wFMCommunicate OK [09:43:49]wFMCommunicate request_size=4 [09:43:49]MH_SAM_APDU [09:43:49]CAPDU: 80 0D 03 02 [09:43:49]Write to MH i2c: E2 08 00 0A 41 80 0D 03 02 00 00 00 00 C6 [09:43:49]Write i2c OK [09:43:49]MH_I2C_Read... [09:43:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:43:49]Read from MH i2c: E2 [09:43:49]MH_I2C_Read... [09:43:49]Read from MH i2c: E2 0B 00 [09:43:49]MH_I2C_Read... [09:43:49]Read from MH i2c: E2 0B 00 0A 41 00 77 12 F1 D3 8C 02 5A 88 90 00 84 [09:43:49]RAPDU: 77 12 F1 D3 8C 02 5A 88 90 00 [09:43:49]wFMCommunicate OK [09:43:49]SAM_PROTO_SignData done [09:43:49]FM_MakeSignedData done [09:43:49]CreateOFDProtocolMessage [09:43:49]wFMCommunicate request_size=4 [09:43:49]MH_SAM_APDU [09:43:49]CAPDU: 80 11 00 00 [09:43:49]Write to MH i2c: E2 08 00 0B 41 80 11 00 00 00 00 00 00 C6 [09:43:49]Write i2c OK [09:43:49]MH_I2C_Read... [09:43:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:49]Read from MH i2c: E2 [09:43:49]MH_I2C_Read... [09:43:49]Read from MH i2c: E2 17 00 [09:43:49]MH_I2C_Read... [09:43:49]Read from MH i2c: E2 17 00 0B 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 1D [09:43:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:43:49]wFMCommunicate OK [09:43:49]CreateOFDProtocolMessage done [09:43:49]OFDSenderStorePacket 227301 [09:43:49]StoreOFDPacket docnum=227301 [09:43:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 7B 0C 07 01 44 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 D7 D0 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E5 77 03 00 35 04 06 00 54 06 72 C3 0B A6 77 12 F1 D3 8C 02 5A 88 [09:43:49]CheckFolder [09:43:49]dirname=/storage/ofd_packets [09:43:49]CheckFolder done [09:43:49]ProducePacketName [09:43:49]name=ofd_packets/00227301 [09:43:49]NVStorageSaveData ofd_packets/00227301 [09:43:49]File name is /storage/ofd_packets/00227301 [09:43:49]Write 301 bytes [09:43:49]NVStorageSaveData done [09:43:49]OFDSenderStorePacket done [09:43:49]KKMCreateOFDPacket done [09:43:49]NVStorageSaveData kkm_last_timestamp [09:43:49]File name is /storage/kkm_last_timestamp [09:43:49]Write 4 bytes [09:43:49]NVStorageSaveData done [09:43:49]ExternCall_PrintAddStr [09:43:49]wPrintStart [09:43:49]Write to MH i2c: 01 00 00 0C 41 4D [09:43:49]Write i2c OK [09:43:49]MH_I2C_Read... [09:43:49]Read from MH i2c: 01 [09:43:49]MH_I2C_Read... [09:43:49]Read from MH i2c: 01 07 00 [09:43:49]MH_I2C_Read... [09:43:49]Read from MH i2c: 01 07 00 0C 41 00 00 00 00 00 FF 0F 62 [09:43:49]RasterBufferAndPrint [09:43:49]line Счет N : (1)1962770 [09:43:49]line ИНН: 02508201610067 [09:43:49]line Контрольно-Кассовый Чек [09:43:49]line ПРОДАЖА [09:43:49]line ТРК (МРК, ГНК) : 43 [09:43:49]line Товар: 2710124130 [09:43:49]line Аи-92-К-5 [09:43:49]line 5.240 * 66.90 [09:43:49]line = 350.56 [09:43:49]line НДС 12% НСП 1% [09:43:49]line > о реализуемом товаре [09:43:49]line ОКРУГЛЕНИЕ: -0.56 [09:43:49]line ИТОГО: 350.00 [09:43:49]line Внесено: 350.00 [09:43:49]line СДАЧА: 0.00 [09:43:49]line НСП 1% : 3.10 [09:43:49]line НДС 12% : 37.23 [09:43:49]line Наличными: 350.00 [09:43:49]line Безнал.: 0.00 [09:43:49]line Место: АЗС № 133 "Партнер Нефть" [09:43:49]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:43:49]line СНО: Общий режим [09:43:49]line Чек 149 20.10.2024 09:43 [09:43:49]line Смена: 533 ФФД: 1.0 [09:43:49]line ЗНМ: 0300000091 [09:43:49]line РНМ: 0000000000091685 [09:43:49]line Версия ККМ: 001 [09:43:49]line ФМ: 0000000000871839 [09:43:49]line ФД: 227301 [09:43:49]line ФПД: 92386671922086 [09:43:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T094351&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227301&fm=92386671922086&tin=02508201610067®Number=0000000000091685&sum=35000 [09:43:49]written 0, free lines is 4095 [09:43:49]OFD Sender: Processing packet 227301 [packets to send 38, broken 37] [09:43:49]ProducePacketName [09:43:49]name=ofd_packets/00227301 [09:43:49]OFD Sender: To server: pG, [09:43:49]CommunicateWithHost lk.salyk.kg:30040 [09:43:49]ConnectInit lk.salyk.kg [09:43:49]Connected sock=10 [09:43: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 33 39 0F 01 00 00 7B 0C 07 01 44 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 D7 D0 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E5 77 03 00 35 04 06 00 54 06 72 C3 0B A6 77 12 F1 D3 8C 02 5A 88 [09:43: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 33 39 4F 00 00 00 9B 45 47 00 C0 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E5 77 03 00 F4 03 04 00 D7 7B 14 67 B6 04 01 00 00 A0 FD 25 08 56 F0 00 B4 [09:43:50]CommunicateWithHost err = 0 [09:43:50]CheckOFDResponse [09:43:50]1017 (14) - 77093643461234 [09:43:50]1041 (16) - 0000000000871839 [09:43:50]1040 (4) - 227301 [09:43:50]1012 (4) - 20.10.2024 03:41 [09:43:50]1206 (1) - 0 [09:43:50]OFD Sender: Remove packet 227301 [09:43:50]ProducePacketName [09:43:50]name=ofd_packets/00227301 [09:43:50]NVStorageDeleteData [09:43:50]Write to MH i2c: 01 00 00 36 41 77 [09:43:50]Write i2c OK [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: 01 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: 01 07 00 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: 01 07 00 36 41 00 00 00 00 00 15 0D A0 [09:43:50]RasterBufferAndPrint [09:43:50]line [09:43:50]line [09:43:50]line [09:43:50]line [09:43:50]line [09:43:50]written 0, free lines is 3364 [09:43:50]process_action close_receipt done [09:43:50]requested_data is exist [09:43:50]produce_requested_data [09:43:50]requested_item fm.sn is exist - process it [09:43:50]wFMCommunicate request_size=4 [09:43:50]MH_SAM_APDU [09:43:50]CAPDU: 80 11 00 00 [09:43:50]Write to MH i2c: E2 08 00 3D 41 80 11 00 00 00 00 00 00 F8 [09:43:50]Write i2c OK [09:43:50]MH_I2C_Read... [09:43:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:50]Read from MH i2c: E2 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: E2 17 00 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: E2 17 00 3D 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 4F [09:43:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:43:50]wFMCommunicate OK [09:43:50]requested_item fd.num is exist - process it [09:43:50]SAM_PROTO_GetFieldsCounters [09:43:50]wFMCommunicate request_size=4 [09:43:50]MH_SAM_APDU [09:43:50]CAPDU: 80 13 00 00 [09:43:50]Write to MH i2c: E2 08 00 3E 41 80 13 00 00 00 00 00 00 FB [09:43:50]Write i2c OK [09:43:50]MH_I2C_Read... [09:43:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:43:50]Read from MH i2c: E2 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: E2 62 00 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: E2 62 00 3E 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 E5 77 03 00 0E 04 04 00 15 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 59 [09:43: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 E5 77 03 00 0E 04 04 00 15 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 [09:43:50]wFMCommunicate OK [09:43:50]SAM_PROTO_GetFieldsCounters done [09:43:50]requested_item shift.num is exist - process it [09:43:50]requested_item shift.opened is exist - process it [09:43:50]req_shift_opened [09:43:50]FM_GetShiftState [09:43:50]SAM_PROTO_GetShiftState [09:43:50]wFMCommunicate request_size=4 [09:43:50]MH_SAM_APDU [09:43:50]CAPDU: 80 13 01 00 [09:43:50]Write to MH i2c: E2 08 00 3F 41 80 13 01 00 00 00 00 00 FD [09:43:50]Write i2c OK [09:43:50]MH_I2C_Read... [09:43:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:50]Read from MH i2c: E2 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: E2 0E 00 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: E2 0E 00 3F 41 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 17 [09:43:50]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:43:50]wFMCommunicate OK [09:43:50]SAM_PROTO_GetShiftState done [09:43:50]FM_GetShiftState done [09:43:50]req_shift_opened done [09:43:50]requested_item shift.open_date is exist - process it [09:43:50]req_shift_open_date [09:43:50]req_shift_open_date done [09:43:50]produce_requested_data done [09:43:50]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227301,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [09:43:50]process_action_free close_receipt [09:43:50]json_value_free [09:43:50]json_value_free done [09:43:50]process_json_proto returns [09:43:50]Send response to host [09:43:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227301,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [09:43:50]free response buf [09:43:50]execute_script done [09:43:50]execute_script returns [09:43:50]free content buf [09:43:50]Sock 9.Close socket [09:43:50]Sock 9.Thread stoped [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:25]OFD Sender: No OFD packet to send [09:46:30]OFD Sender: No OFD packet to send [09:46:35]OFD Sender: No OFD packet to send [09:46:40]OFD Sender: No OFD packet to send [09:46:45]OFD Sender: No OFD packet to send [09:46:50]OFD Sender: No OFD packet to send [09:46:55]OFD Sender: No OFD packet to send [09:47:00]OFD Sender: No OFD packet to send [09:47:05]OFD Sender: No OFD packet to send [09:47:10]OFD Sender: No OFD packet to send [09:47:15]OFD Sender: No OFD packet to send [09:47:20]OFD Sender: No OFD packet to send [09:47:25]OFD Sender: No OFD packet to send [09:47:30]OFD Sender: No OFD packet to send [09:47:35]OFD Sender: No OFD packet to send [09:47:40]OFD Sender: No OFD packet to send [09:47:45]OFD Sender: No OFD packet to send [09:47:50]OFD Sender: No OFD packet to send [09:47:55]OFD Sender: No OFD packet to send [09:48:00]OFD Sender: No OFD packet to send [09:48:05]OFD Sender: No OFD packet to send [09:48:10]OFD Sender: No OFD packet to send [09:48:15]OFD Sender: No OFD packet to send [09:48:20]OFD Sender: No OFD packet to send [09:48:25]OFD Sender: No OFD packet to send [09:48:28]accept exits with 8 [09:48:28]New connection [09:48:28]New thread 3066821988 created [09:48:28]Thread 3066965348 joined [09:48:28]Waiting for new connection... [09:48:28] Sock 8.Parse request [09:48:28]Sock 8.Check first char [09:48:28]Sock 8.First char is OK [09:48:28]request: POST /json_proto HTTP/1.0 [09:48:28]Method: POST [09:48:28]URL: /json_proto [09:48:28]Method is POST - this is cgi request [09:48:28]url: /json_proto [09:48:28]query_string will be loaded in cgi processing [09:48:28]execute_cgi json_proto POST (null) [09:48:28]execute_cgi path=json_proto method=POST [09:48:28]POST find Content-Length [09:48:28]Host: 172.17.44.195:8080 [09:48:28]Content-Length: 678 [09:48:28]Content-Type: application/json [09:48:28] [09:48:28]POST finish read [09:48:28]Found Content-Length = 678 [09:48:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962772", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:28]execute_script... [09:48: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)1962772", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:28]POST & json_proto [09:48:28]process_json_proto [09:48:28]json parsed OK: [09:48:28]protocol is kg_v1.0 [09:48:28]action value=close_receipt [09:48:28]process_action close_receipt [09:48:28]cmd_close_receipt [09:48:28]MH_GetDate [09:48:28]Write to MH i2c: F0 00 00 40 41 70 [09:48:28]Write i2c OK [09:48:28]MH_I2C_Read... [09:48:28]Read from MH i2c: F0 [09:48:28]MH_I2C_Read... [09:48:28]Read from MH i2c: F0 09 00 [09:48:28]MH_I2C_Read... [09:48:28]Read from MH i2c: F0 09 00 40 41 00 F0 D1 14 67 82 C9 CF 66 35 [09:48:28]GetLastDocTimeStamp 1729417431 [09:48:28]current date 1729417712 [09:48:28]FM_GetShiftState [09:48:28]SAM_PROTO_GetShiftState [09:48:28]wFMCommunicate request_size=4 [09:48:28]MH_SAM_APDU [09:48:28]CAPDU: 80 13 01 00 [09:48:28]Write to MH i2c: E2 08 00 41 41 80 13 01 00 00 00 00 00 FF [09:48:28]Write i2c OK [09:48:28]MH_I2C_Read... [09:48:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:28]Read from MH i2c: E2 [09:48:28]MH_I2C_Read... [09:48:28]Read from MH i2c: E2 0E 00 [09:48:28]MH_I2C_Read... [09:48:28]Read from MH i2c: E2 0E 00 41 41 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 19 [09:48:28]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:48:28]wFMCommunicate OK [09:48:28]SAM_PROTO_GetShiftState done [09:48:28]FM_GetShiftState done [09:48:28]opened in 1729383750 [09:48:28]opened+sec_in_day 1729470150 [09:48:28]quantity*price = 50041 [09:48:28]sum+1 = 50042 [09:48:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 150 20.10.2024 09:48 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227302 ФПД: 52844104608785 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T094832&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227302&fm=52844104608785&tin=02508201610067®Number=0000000000091685&sum=50000 [09:48:29]StoreToDocumentArchive [09:48:29]shift 533 fd 227302 [09:48:29]save to /storage/0533/doc_00227302 [09:48:29]save last doc name /storage/0533/doc_00227302 to /storage/kkm_last_doc_name [09:48:29]save OK [09:48:29]Clear old archive folders... [09:48:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:48:29]tlvbuf is 004DE900 [09:48:29]SAM_PROTO_ClearQueue [09:48:29]wFMCommunicate request_size=4 [09:48:29]MH_SAM_APDU [09:48:29]CAPDU: 80 09 00 00 [09:48:29]Write to MH i2c: E2 08 00 4E 41 80 09 00 00 00 00 00 00 01 [09:48:29]Write i2c OK [09:48:29]MH_I2C_Read... [09:48:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:48:29]Read from MH i2c: E2 [09:48:29]MH_I2C_Read... [09:48:29]Read from MH i2c: E2 03 00 [09:48:29]MH_I2C_Read... [09:48:29]Read from MH i2c: E2 03 00 4E 41 00 90 00 03 [09:48:29]RAPDU: 90 00 [09:48:29]wFMCommunicate OK [09:48:29]SAM_PROTO_ClearQueue done [09:48:29]KKMCreateOFDPacket [09:48:29]OFDProtocolAddRootSTLVToBuf [09:48:29]FM_MakeSignedData [09:48:29]FM_MakeSignedData [09:48:29]SAM_PROTO_SignData [09:48:29]wFMCommunicate request_size=4 [09:48:29]MH_SAM_APDU [09:48:29]CAPDU: 80 0D 01 02 [09:48:29]Write to MH i2c: E2 08 00 4F 41 80 0D 01 02 00 00 00 00 09 [09:48:29]Write i2c OK [09:48:29]MH_I2C_Read... [09:48:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:48:29]Read from MH i2c: E2 [09:48:29]MH_I2C_Read... [09:48:29]Read from MH i2c: E2 03 00 [09:48:29]MH_I2C_Read... [09:48:29]Read from MH i2c: E2 03 00 4F 41 00 90 00 04 [09:48:29]RAPDU: 90 00 [09:48:29]wFMCommunicate OK [09:48:29]wFMCommunicate request_size=255 [09:48:29]MH_SAM_APDU [09:48:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 F0 D1 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E6 77 03 00 35 04 06 00 30 [09:48:29]Write to MH i2c: E2 02 01 50 41 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 F0 D1 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E6 77 03 00 35 04 06 00 30 00 00 19 [09:48:29]Write i2c OK [09:48:29]MH_I2C_Read... [09:48:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:30]Read from MH i2c: E2 [09:48:30]MH_I2C_Read... [09:48:30]Read from MH i2c: E2 03 00 [09:48:30]MH_I2C_Read... [09:48:30]Read from MH i2c: E2 03 00 50 41 00 90 00 05 [09:48:30]RAPDU: 90 00 [09:48:30]wFMCommunicate OK [09:48:30]wFMCommunicate request_size=10 [09:48:30]MH_SAM_APDU [09:48:30]CAPDU: 80 0D 02 02 05 0F BA 15 6C 11 [09:48:30]Write to MH i2c: E2 0D 00 51 41 80 0D 02 02 05 00 0F BA 15 6C 11 00 00 71 [09:48:30]Write i2c OK [09:48:30]MH_I2C_Read... [09:48:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:30]Read from MH i2c: E2 [09:48:30]MH_I2C_Read... [09:48:30]Read from MH i2c: E2 03 00 [09:48:30]MH_I2C_Read... [09:48:30]Read from MH i2c: E2 03 00 51 41 00 90 00 06 [09:48:30]RAPDU: 90 00 [09:48:30]wFMCommunicate OK [09:48:30]wFMCommunicate request_size=4 [09:48:30]MH_SAM_APDU [09:48:30]CAPDU: 80 0D 03 02 [09:48:30]Write to MH i2c: E2 08 00 52 41 80 0D 03 02 00 00 00 00 0E [09:48:30]Write i2c OK [09:48:30]MH_I2C_Read... [09:48:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:48:30]Read from MH i2c: E2 [09:48:30]MH_I2C_Read... [09:48:30]Read from MH i2c: E2 0B 00 [09:48:30]MH_I2C_Read... [09:48:30]Read from MH i2c: E2 0B 00 52 41 00 96 49 DA C4 35 4C B5 84 90 00 46 [09:48:30]RAPDU: 96 49 DA C4 35 4C B5 84 90 00 [09:48:30]wFMCommunicate OK [09:48:30]SAM_PROTO_SignData done [09:48:30]FM_MakeSignedData done [09:48:30]CreateOFDProtocolMessage [09:48:30]wFMCommunicate request_size=4 [09:48:30]MH_SAM_APDU [09:48:30]CAPDU: 80 11 00 00 [09:48:30]Write to MH i2c: E2 08 00 53 41 80 11 00 00 00 00 00 00 0E [09:48:30]Write i2c OK [09:48:30]MH_I2C_Read... [09:48:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:30]Read from MH i2c: E2 [09:48:30]MH_I2C_Read... [09:48:30]Read from MH i2c: E2 17 00 [09:48:30]MH_I2C_Read... [09:48:30]Read from MH i2c: E2 17 00 53 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 65 [09:48:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:48:30]wFMCommunicate OK [09:48:30]CreateOFDProtocolMessage done [09:48:30]OFDSenderStorePacket 227302 [09:48:30]StoreOFDPacket docnum=227302 [09:48:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 16 54 07 01 E2 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 F0 D1 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E6 77 03 00 35 04 06 00 30 0F BA 15 6C 11 96 49 DA C4 35 4C B5 84 [09:48:30]CheckFolder [09:48:30]dirname=/storage/ofd_packets [09:48:30]CheckFolder done [09:48:30]ProducePacketName [09:48:30]name=ofd_packets/00227302 [09:48:30]NVStorageSaveData ofd_packets/00227302 [09:48:30]File name is /storage/ofd_packets/00227302 [09:48:30]Write 301 bytes [09:48:30]NVStorageSaveData done [09:48:30]OFDSenderStorePacket done [09:48:30]KKMCreateOFDPacket done [09:48:30]NVStorageSaveData kkm_last_timestamp [09:48:30]File name is /storage/kkm_last_timestamp [09:48:30]Write 4 bytes [09:48:30]NVStorageSaveData done [09:48:30]ExternCall_PrintAddStr [09:48:30]wPrintStart [09:48:30]Write to MH i2c: 01 00 00 54 41 95 [09:48:30]Write i2c OK [09:48:30]MH_I2C_Read... [09:48:30]Read from MH i2c: 01 [09:48:30]MH_I2C_Read... [09:48:30]Read from MH i2c: 01 07 00 [09:48:30]MH_I2C_Read... [09:48:30]Read from MH i2c: 01 07 00 54 41 00 00 00 00 00 FF 0F AA [09:48:30]RasterBufferAndPrint [09:48:30]line Счет N : (1)1962772 [09:48:30]line ИНН: 02508201610067 [09:48:30]line Контрольно-Кассовый Чек [09:48:30]line ПРОДАЖА [09:48:30]line ТРК (МРК, ГНК) : 53 [09:48:30]line Товар: 2710124130 [09:48:30]line Аи-92-К-5 [09:48:30]line 7.480 * 66.90 [09:48:30]line = 500.41 [09:48:30]line НДС 12% НСП 1% [09:48:30]line > о реализуемом товаре [09:48:30]line ОКРУГЛЕНИЕ: -0.41 [09:48:30]line ИТОГО: 500.00 [09:48:30]line Внесено: 500.00 [09:48:30]line СДАЧА: 0.00 [09:48:30]line НСП 1% : 4.43 [09:48:30]line НДС 12% : 53.14 [09:48:30]line Наличными: 500.00 [09:48:30]line Безнал.: 0.00 [09:48:30]line Место: АЗС № 133 "Партнер Нефть" [09:48:30]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:48:30]line СНО: Общий режим [09:48:30]line Чек 150 20.10.2024 09:48 [09:48:30]line Смена: 533 ФФД: 1.0 [09:48:30]line ЗНМ: 0300000091 [09:48:30]line РНМ: 0000000000091685 [09:48:30]line Версия ККМ: 001 [09:48:30]line ФМ: 0000000000871839 [09:48:30]line ФД: 227302 [09:48:30]line ФПД: 52844104608785 [09:48:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T094832&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227302&fm=52844104608785&tin=02508201610067®Number=0000000000091685&sum=50000 [09:48:30]OFD Sender: Processing packet 227302 [packets to send 38, broken 37] [09:48:30]ProducePacketName [09:48:30]name=ofd_packets/00227302 [09:48:30]OFD Sender: To server: pG, [09:48:30]CommunicateWithHost lk.salyk.kg:30040 [09:48:30]ConnectInit lk.salyk.kg [09:48:30]written 0, free lines is 4095 [09:48:30]Connected sock=10 [09:48: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 33 39 0F 01 00 00 16 54 07 01 E2 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 F0 D1 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E6 77 03 00 35 04 06 00 30 0F BA 15 6C 11 96 49 DA C4 35 4C B5 84 [09:48: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 33 39 4F 00 00 00 18 EE 47 00 A6 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 33 39 10 04 04 00 E6 77 03 00 F4 03 04 00 F0 7C 14 67 B6 04 01 00 00 F9 A1 CE 68 B7 E2 F9 AF [09:48:30]CommunicateWithHost err = 0 [09:48:30]CheckOFDResponse [09:48:30]1017 (14) - 77093643461234 [09:48:30]1041 (16) - 0000000000871839 [09:48:30]1040 (4) - 227302 [09:48:30]1012 (4) - 20.10.2024 03:45 [09:48:30]1206 (1) - 0 [09:48:30]OFD Sender: Remove packet 227302 [09:48:30]ProducePacketName [09:48:30]name=ofd_packets/00227302 [09:48:30]NVStorageDeleteData [09:48:30]Write to MH i2c: 01 00 00 7E 41 BF [09:48:30]Write i2c OK [09:48:30]MH_I2C_Read... [09:48:30]Read from MH i2c: 01 [09:48:30]MH_I2C_Read... [09:48:30]Read from MH i2c: 01 07 00 [09:48:30]MH_I2C_Read... [09:48:30]Read from MH i2c: 01 07 00 7E 41 00 00 00 00 00 FF 0C D1 [09:48:30]RasterBufferAndPrint [09:48:30]line [09:48:30]line [09:48:30]line [09:48:30]line [09:48:30]line [09:48:30]written 0, free lines is 3332 [09:48:30]process_action close_receipt done [09:48:30]requested_data is exist [09:48:30]produce_requested_data [09:48:30]requested_item fm.sn is exist - process it [09:48:30]wFMCommunicate request_size=4 [09:48:30]MH_SAM_APDU [09:48:30]CAPDU: 80 11 00 00 [09:48:30]Write to MH i2c: E2 08 00 85 41 80 11 00 00 00 00 00 00 40 [09:48:31]Write i2c OK [09:48:31]MH_I2C_Read... [09:48:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:31]Read from MH i2c: E2 [09:48:31]MH_I2C_Read... [09:48:31]Read from MH i2c: E2 17 00 [09:48:31]MH_I2C_Read... [09:48:31]Read from MH i2c: E2 17 00 85 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 97 [09:48:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:48:31]wFMCommunicate OK [09:48:31]requested_item fd.num is exist - process it [09:48:31]SAM_PROTO_GetFieldsCounters [09:48:31]wFMCommunicate request_size=4 [09:48:31]MH_SAM_APDU [09:48:31]CAPDU: 80 13 00 00 [09:48:31]Write to MH i2c: E2 08 00 86 41 80 13 00 00 00 00 00 00 43 [09:48:31]Write i2c OK [09:48:31]MH_I2C_Read... [09:48:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:48:31]Read from MH i2c: E2 [09:48:31]MH_I2C_Read... [09:48:31]Read from MH i2c: E2 62 00 [09:48:31]MH_I2C_Read... [09:48:31]Read from MH i2c: E2 62 00 86 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 E6 77 03 00 0E 04 04 00 15 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 A5 [09:48: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 E6 77 03 00 0E 04 04 00 15 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 [09:48:31]wFMCommunicate OK [09:48:31]SAM_PROTO_GetFieldsCounters done [09:48:31]requested_item shift.num is exist - process it [09:48:31]requested_item shift.opened is exist - process it [09:48:31]req_shift_opened [09:48:31]FM_GetShiftState [09:48:31]SAM_PROTO_GetShiftState [09:48:31]wFMCommunicate request_size=4 [09:48:31]MH_SAM_APDU [09:48:31]CAPDU: 80 13 01 00 [09:48:31]Write to MH i2c: E2 08 00 87 41 80 13 01 00 00 00 00 00 45 [09:48:31]Write i2c OK [09:48:31]MH_I2C_Read... [09:48:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:31]Read from MH i2c: E2 [09:48:31]MH_I2C_Read... [09:48:31]Read from MH i2c: E2 0E 00 [09:48:31]MH_I2C_Read... [09:48:31]Read from MH i2c: E2 0E 00 87 41 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 5F [09:48:31]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:48:31]wFMCommunicate OK [09:48:31]SAM_PROTO_GetShiftState done [09:48:31]FM_GetShiftState done [09:48:31]req_shift_opened done [09:48:31]requested_item shift.open_date is exist - process it [09:48:31]req_shift_open_date [09:48:31]req_shift_open_date done [09:48:31]produce_requested_data done [09:48:31]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227302,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [09:48:31]process_action_free close_receipt [09:48:31]json_value_free [09:48:31]json_value_free done [09:48:31]process_json_proto returns [09:48:31]Send response to host [09:48:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227302,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [09:48:31]free response buf [09:48:31]execute_script done [09:48:31]execute_script returns [09:48:31]free content buf [09:48:31]Sock 8.Close socket [09:48:31]Sock 8.Thread stoped [09:48:31]OFD Sender: No OFD packet to send [09:48:36]OFD Sender: No OFD packet to send [09:48:41]OFD Sender: No OFD packet to send [09:48:46]OFD Sender: No OFD packet to send [09:48:51]OFD Sender: No OFD packet to send [09:48:56]OFD Sender: No OFD packet to send [09:49:01]OFD Sender: No OFD packet to send [09:49:06]OFD Sender: No OFD packet to send [09:49:11]OFD Sender: No OFD packet to send [09:49:16]OFD Sender: No OFD packet to send [09:49:21]OFD Sender: No OFD packet to send [09:49:26]OFD Sender: No OFD packet to send [09:49:29]accept exits with 9 [09:49:29]New connection [09:49:29]New thread 3066965348 created [09:49:29]Thread 3066821988 joined [09:49:29]Waiting for new connection... [09:49:29] Sock 9.Parse request [09:49:29]Sock 9.Check first char [09:49:29]Sock 9.First char is OK [09:49:29]request: POST /json_proto HTTP/1.0 [09:49:29]Method: POST [09:49:29]URL: /json_proto [09:49:29]Method is POST - this is cgi request [09:49:29]url: /json_proto [09:49:29]query_string will be loaded in cgi processing [09:49:29]execute_cgi json_proto POST (null) [09:49:29]execute_cgi path=json_proto method=POST [09:49:29]POST find Content-Length [09:49:29]Host: 172.17.44.195:8080 [09:49:29]Content-Length: 678 [09:49:29]Content-Type: application/json [09:49:29] [09:49:29]POST finish read [09:49:29]Found Content-Length = 678 [09:49:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962774", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:49:29]execute_script... [09:49:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962774", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:49:29]POST & json_proto [09:49:29]process_json_proto [09:49:29]json parsed OK: [09:49:29]protocol is kg_v1.0 [09:49:29]action value=close_receipt [09:49:29]process_action close_receipt [09:49:29]cmd_close_receipt [09:49:29]MH_GetDate [09:49:29]Write to MH i2c: F0 00 00 88 41 B8 [09:49:29]Write i2c OK [09:49:29]MH_I2C_Read... [09:49:29]Read from MH i2c: F0 [09:49:29]MH_I2C_Read... [09:49:29]Read from MH i2c: F0 09 00 [09:49:29]MH_I2C_Read... [09:49:29]Read from MH i2c: F0 09 00 88 41 00 2D D2 14 67 82 C9 CF 66 BB [09:49:29]GetLastDocTimeStamp 1729417712 [09:49:29]current date 1729417773 [09:49:29]FM_GetShiftState [09:49:29]SAM_PROTO_GetShiftState [09:49:29]wFMCommunicate request_size=4 [09:49:29]MH_SAM_APDU [09:49:29]CAPDU: 80 13 01 00 [09:49:29]Write to MH i2c: E2 08 00 89 41 80 13 01 00 00 00 00 00 47 [09:49:29]Write i2c OK [09:49:29]MH_I2C_Read... [09:49:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:29]Read from MH i2c: E2 [09:49:29]MH_I2C_Read... [09:49:29]Read from MH i2c: E2 0E 00 [09:49:29]MH_I2C_Read... [09:49:29]Read from MH i2c: E2 0E 00 89 41 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 61 [09:49:29]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:49:29]wFMCommunicate OK [09:49:29]SAM_PROTO_GetShiftState done [09:49:29]FM_GetShiftState done [09:49:29]opened in 1729383750 [09:49:29]opened+sec_in_day 1729470150 [09:49:29]quantity*price = 50041 [09:49:29]sum+1 = 50042 [09:49:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 151 20.10.2024 09:49 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227303 ФПД: 256216586234892 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T094933&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227303&fm=256216586234892&tin=02508201610067®Number=0000000000091685&sum=50000 [09:49:30]StoreToDocumentArchive [09:49:30]shift 533 fd 227303 [09:49:30]save to /storage/0533/doc_00227303 [09:49:30]save last doc name /storage/0533/doc_00227303 to /storage/kkm_last_doc_name [09:49:30]save OK [09:49:30]Clear old archive folders... [09:49:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:49:30]tlvbuf is 0057B3E0 [09:49:30]SAM_PROTO_ClearQueue [09:49:30]wFMCommunicate request_size=4 [09:49:30]MH_SAM_APDU [09:49:30]CAPDU: 80 09 00 00 [09:49:30]Write to MH i2c: E2 08 00 96 41 80 09 00 00 00 00 00 00 49 [09:49:30]Write i2c OK [09:49:30]MH_I2C_Read... [09:49:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:49:30]Read from MH i2c: E2 [09:49:30]MH_I2C_Read... [09:49:30]Read from MH i2c: E2 03 00 [09:49:30]MH_I2C_Read... [09:49:30]Read from MH i2c: E2 03 00 96 41 00 90 00 4B [09:49:30]RAPDU: 90 00 [09:49:30]wFMCommunicate OK [09:49:30]SAM_PROTO_ClearQueue done [09:49:30]KKMCreateOFDPacket [09:49:30]OFDProtocolAddRootSTLVToBuf [09:49:30]FM_MakeSignedData [09:49:30]FM_MakeSignedData [09:49:30]SAM_PROTO_SignData [09:49:30]wFMCommunicate request_size=4 [09:49:30]MH_SAM_APDU [09:49:30]CAPDU: 80 0D 01 02 [09:49:30]Write to MH i2c: E2 08 00 97 41 80 0D 01 02 00 00 00 00 51 [09:49:30]Write i2c OK [09:49:30]MH_I2C_Read... [09:49:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:49:30]Read from MH i2c: E2 [09:49:30]MH_I2C_Read... [09:49:30]Read from MH i2c: E2 03 00 [09:49:30]MH_I2C_Read... [09:49:30]Read from MH i2c: E2 03 00 97 41 00 90 00 4C [09:49:30]RAPDU: 90 00 [09:49:30]wFMCommunicate OK [09:49:30]wFMCommunicate request_size=255 [09:49:30]MH_SAM_APDU [09:49:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 2D D2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E7 77 03 00 35 04 06 00 E9 [09:49:30]Write to MH i2c: E2 02 01 98 41 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 2D D2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E7 77 03 00 35 04 06 00 E9 00 00 5A [09:49:30]Write i2c OK [09:49:30]MH_I2C_Read... [09:49:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:31]Read from MH i2c: E2 [09:49:31]MH_I2C_Read... [09:49:31]Read from MH i2c: E2 03 00 [09:49:31]MH_I2C_Read... [09:49:31]Read from MH i2c: E2 03 00 98 41 00 90 00 4D [09:49:31]RAPDU: 90 00 [09:49:31]wFMCommunicate OK [09:49:31]wFMCommunicate request_size=10 [09:49:31]MH_SAM_APDU [09:49:31]CAPDU: 80 0D 02 02 05 07 12 9B AC 0C [09:49:31]Write to MH i2c: E2 0D 00 99 41 80 0D 02 02 05 00 07 12 9B AC 0C 00 00 CA [09:49:31]Write i2c OK [09:49:31]MH_I2C_Read... [09:49:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:31]Read from MH i2c: E2 [09:49:31]MH_I2C_Read... [09:49:31]Read from MH i2c: E2 03 00 [09:49:31]MH_I2C_Read... [09:49:31]Read from MH i2c: E2 03 00 99 41 00 90 00 4E [09:49:31]RAPDU: 90 00 [09:49:31]wFMCommunicate OK [09:49:31]wFMCommunicate request_size=4 [09:49:31]MH_SAM_APDU [09:49:31]CAPDU: 80 0D 03 02 [09:49:31]Write to MH i2c: E2 08 00 9A 41 80 0D 03 02 00 00 00 00 56 [09:49:31]Write i2c OK [09:49:31]MH_I2C_Read... [09:49:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:49:31]Read from MH i2c: E2 [09:49:31]MH_I2C_Read... [09:49:31]Read from MH i2c: E2 0B 00 [09:49:31]MH_I2C_Read... [09:49:31]Read from MH i2c: E2 0B 00 9A 41 00 0E E5 A1 A0 48 9F BF 59 90 00 8A [09:49:31]RAPDU: 0E E5 A1 A0 48 9F BF 59 90 00 [09:49:31]wFMCommunicate OK [09:49:31]SAM_PROTO_SignData done [09:49:31]FM_MakeSignedData done [09:49:31]CreateOFDProtocolMessage [09:49:31]wFMCommunicate request_size=4 [09:49:31]MH_SAM_APDU [09:49:31]CAPDU: 80 11 00 00 [09:49:31]Write to MH i2c: E2 08 00 9B 41 80 11 00 00 00 00 00 00 56 [09:49:31]Write i2c OK [09:49:31]MH_I2C_Read... [09:49:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:31]Read from MH i2c: E2 [09:49:31]MH_I2C_Read... [09:49:31]Read from MH i2c: E2 17 00 [09:49:31]MH_I2C_Read... [09:49:31]Read from MH i2c: E2 17 00 9B 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 AD [09:49:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:49:31]wFMCommunicate OK [09:49:31]CreateOFDProtocolMessage done [09:49:31]OFDSenderStorePacket 227303 [09:49:31]StoreOFDPacket docnum=227303 [09:49:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 55 82 07 01 93 A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 2D D2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E7 77 03 00 35 04 06 00 E9 07 12 9B AC 0C 0E E5 A1 A0 48 9F BF 59 [09:49:31]CheckFolder [09:49:31]dirname=/storage/ofd_packets [09:49:31]CheckFolder done [09:49:31]ProducePacketName [09:49:31]name=ofd_packets/00227303 [09:49:31]NVStorageSaveData ofd_packets/00227303 [09:49:31]File name is /storage/ofd_packets/00227303 [09:49:31]Write 301 bytes [09:49:31]NVStorageSaveData done [09:49:31]OFDSenderStorePacket done [09:49:31]KKMCreateOFDPacket done [09:49:31]NVStorageSaveData kkm_last_timestamp [09:49:31]File name is /storage/kkm_last_timestamp [09:49:31]Write 4 bytes [09:49:31]NVStorageSaveData done [09:49:31]ExternCall_PrintAddStr [09:49:31]wPrintStart [09:49:31]Write to MH i2c: 01 00 00 9C 41 DD [09:49:31]Write i2c OK [09:49:31]MH_I2C_Read... [09:49:31]Read from MH i2c: 01 [09:49:31]MH_I2C_Read... [09:49:31]Read from MH i2c: 01 07 00 [09:49:31]MH_I2C_Read... [09:49:31]Read from MH i2c: 01 07 00 9C 41 00 00 00 00 00 FF 0F F2 [09:49:31]RasterBufferAndPrint [09:49:31]line Счет N : (1)1962774 [09:49:31]line ИНН: 02508201610067 [09:49:31]line Контрольно-Кассовый Чек [09:49:31]line ПРОДАЖА [09:49:31]line ТРК (МРК, ГНК) : 63 [09:49:31]line Товар: 2710124130 [09:49:31]line Аи-92-К-5 [09:49:31]line 7.480 * 66.90 [09:49:31]line = 500.41 [09:49:31]line НДС 12% НСП 1% [09:49:31]line > о реализуемом товаре [09:49:31]line ОКРУГЛЕНИЕ: -0.41 [09:49:31]line ИТОГО: 500.00 [09:49:31]line Внесено: 500.00 [09:49:31]line СДАЧА: 0.00 [09:49:31]line НСП 1% : 4.43 [09:49:31]line НДС 12% : 53.14 [09:49:31]line Наличными: 500.00 [09:49:31]line Безнал.: 0.00 [09:49:31]line Место: АЗС № 133 "Партнер Нефть" [09:49:31]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:49:31]line СНО: Общий режим [09:49:31]line Чек 151 20.10.2024 09:49 [09:49:31]line Смена: 533 ФФД: 1.0 [09:49:31]line ЗНМ: 0300000091 [09:49:31]line РНМ: 0000000000091685 [09:49:31]line Версия ККМ: 001 [09:49:31]line ФМ: 0000000000871839 [09:49:31]line ФД: 227303 [09:49:31]line ФПД: 256216586234892 [09:49:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T094933&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227303&fm=256216586234892&tin=02508201610067®Number=0000000000091685&sum=50000 [09:49:31]written 0, free lines is 4095 [09:49:31]OFD Sender: Processing packet 227303 [packets to send 38, broken 37] [09:49:31]ProducePacketName [09:49:31]name=ofd_packets/00227303 [09:49:31]OFD Sender: To server: pG, [09:49:31]CommunicateWithHost lk.salyk.kg:30040 [09:49:31]ConnectInit lk.salyk.kg [09:49:31]Connected sock=8 [09:49: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 33 39 0F 01 00 00 55 82 07 01 93 A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 2D D2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E7 77 03 00 35 04 06 00 E9 07 12 9B AC 0C 0E E5 A1 A0 48 9F BF 59 [09:49: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 33 39 4F 00 00 00 13 25 47 00 2F 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 33 39 10 04 04 00 E7 77 03 00 F4 03 04 00 2D 7D 14 67 B6 04 01 00 00 A0 F1 99 62 87 4F 6F ED [09:49:31]CommunicateWithHost err = 0 [09:49:31]CheckOFDResponse [09:49:31]1017 (14) - 77093643461234 [09:49:31]1041 (16) - 0000000000871839 [09:49:31]1040 (4) - 227303 [09:49:31]1012 (4) - 20.10.2024 03:46 [09:49:31]1206 (1) - 0 [09:49:31]OFD Sender: Remove packet 227303 [09:49:31]ProducePacketName [09:49:31]name=ofd_packets/00227303 [09:49:31]NVStorageDeleteData [09:49:32]Write to MH i2c: 01 00 00 C6 41 07 [09:49:32]Write i2c OK [09:49:32]MH_I2C_Read... [09:49:32]Read from MH i2c: 01 [09:49:32]MH_I2C_Read... [09:49:32]Read from MH i2c: 01 07 00 [09:49:32]MH_I2C_Read... [09:49:32]Read from MH i2c: 01 07 00 C6 41 00 00 00 00 00 02 0D 1D [09:49:32]RasterBufferAndPrint [09:49:32]line [09:49:32]line [09:49:32]line [09:49:32]line [09:49:32]line [09:49:32]written 0, free lines is 3336 [09:49:32]process_action close_receipt done [09:49:32]requested_data is exist [09:49:32]produce_requested_data [09:49:32]requested_item fm.sn is exist - process it [09:49:32]wFMCommunicate request_size=4 [09:49:32]MH_SAM_APDU [09:49:32]CAPDU: 80 11 00 00 [09:49:32]Write to MH i2c: E2 08 00 CD 41 80 11 00 00 00 00 00 00 88 [09:49:32]Write i2c OK [09:49:32]MH_I2C_Read... [09:49:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:32]Read from MH i2c: E2 [09:49:32]MH_I2C_Read... [09:49:32]Read from MH i2c: E2 17 00 [09:49:32]MH_I2C_Read... [09:49:32]Read from MH i2c: E2 17 00 CD 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 DF [09:49:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:49:32]wFMCommunicate OK [09:49:32]requested_item fd.num is exist - process it [09:49:32]SAM_PROTO_GetFieldsCounters [09:49:32]wFMCommunicate request_size=4 [09:49:32]MH_SAM_APDU [09:49:32]CAPDU: 80 13 00 00 [09:49:32]Write to MH i2c: E2 08 00 CE 41 80 13 00 00 00 00 00 00 8B [09:49:32]Write i2c OK [09:49:32]MH_I2C_Read... [09:49:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:49:32]Read from MH i2c: E2 [09:49:32]MH_I2C_Read... [09:49:32]Read from MH i2c: E2 62 00 [09:49:32]MH_I2C_Read... [09:49:32]Read from MH i2c: E2 62 00 CE 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 E7 77 03 00 0E 04 04 00 15 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 F1 [09:49: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 E7 77 03 00 0E 04 04 00 15 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 [09:49:32]wFMCommunicate OK [09:49:32]SAM_PROTO_GetFieldsCounters done [09:49:32]requested_item shift.num is exist - process it [09:49:32]requested_item shift.opened is exist - process it [09:49:32]req_shift_opened [09:49:32]FM_GetShiftState [09:49:32]SAM_PROTO_GetShiftState [09:49:32]wFMCommunicate request_size=4 [09:49:32]MH_SAM_APDU [09:49:32]CAPDU: 80 13 01 00 [09:49:32]Write to MH i2c: E2 08 00 CF 41 80 13 01 00 00 00 00 00 8D [09:49:32]Write i2c OK [09:49:32]MH_I2C_Read... [09:49:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:32]Read from MH i2c: E2 [09:49:32]MH_I2C_Read... [09:49:32]Read from MH i2c: E2 0E 00 [09:49:32]MH_I2C_Read... [09:49:32]Read from MH i2c: E2 0E 00 CF 41 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 A7 [09:49:32]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:49:32]wFMCommunicate OK [09:49:32]SAM_PROTO_GetShiftState done [09:49:32]FM_GetShiftState done [09:49:32]req_shift_opened done [09:49:32]requested_item shift.open_date is exist - process it [09:49:32]req_shift_open_date [09:49:32]req_shift_open_date done [09:49:32]produce_requested_data done [09:49:32]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227303,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [09:49:32]process_action_free close_receipt [09:49:32]json_value_free [09:49:32]json_value_free done [09:49:32]process_json_proto returns [09:49:32]Send response to host [09:49:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227303,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [09:49:32]free response buf [09:49:32]execute_script done [09:49:32]execute_script returns [09:49:32]free content buf [09:49:32]Sock 9.Close socket [09:49:32]Sock 9.Thread stoped [09:49:32]OFD Sender: No OFD packet to send [09:49:34]accept exits with 10 [09:49:34]New connection [09:49:34]New thread 3066821988 created [09:49:34]Thread 3066965348 joined [09:49:34]Waiting for new connection... [09:49:34] Sock 10.Parse request [09:49:34]Sock 10.Check first char [09:49:34]Sock 10.First char is OK [09:49:34]request: POST /json_proto HTTP/1.0 [09:49:34]Method: POST [09:49:34]URL: /json_proto [09:49:34]Method is POST - this is cgi request [09:49:34]url: /json_proto [09:49:34]query_string will be loaded in cgi processing [09:49:34]execute_cgi json_proto POST (null) [09:49:34]execute_cgi path=json_proto method=POST [09:49:34]POST find Content-Length [09:49:34]Host: 172.17.44.195:8080 [09:49:34]Content-Length: 683 [09:49:34]Content-Type: application/json [09:49:34] [09:49:34]POST finish read [09:49:34]Found Content-Length = 683 [09:49:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962773", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:49:34]execute_script... [09:49:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962773", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:49:34]POST & json_proto [09:49:34]process_json_proto [09:49:34]json parsed OK: [09:49:34]protocol is kg_v1.0 [09:49:34]action value=close_receipt [09:49:34]process_action close_receipt [09:49:34]cmd_close_receipt [09:49:34]MH_GetDate [09:49:34]Write to MH i2c: F0 00 00 D0 41 00 [09:49:34]Write i2c OK [09:49:34]MH_I2C_Read... [09:49:34]Read from MH i2c: F0 [09:49:34]MH_I2C_Read... [09:49:34]Read from MH i2c: F0 09 00 [09:49:34]MH_I2C_Read... [09:49:34]Read from MH i2c: F0 09 00 D0 41 00 32 D2 14 67 82 C9 CF 66 08 [09:49:34]GetLastDocTimeStamp 1729417773 [09:49:34]current date 1729417778 [09:49:34]FM_GetShiftState [09:49:34]SAM_PROTO_GetShiftState [09:49:34]wFMCommunicate request_size=4 [09:49:34]MH_SAM_APDU [09:49:34]CAPDU: 80 13 01 00 [09:49:34]Write to MH i2c: E2 08 00 D1 41 80 13 01 00 00 00 00 00 8F [09:49:34]Write i2c OK [09:49:34]MH_I2C_Read... [09:49:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:34]Read from MH i2c: E2 [09:49:34]MH_I2C_Read... [09:49:34]Read from MH i2c: E2 0E 00 [09:49:34]MH_I2C_Read... [09:49:34]Read from MH i2c: E2 0E 00 D1 41 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 A9 [09:49:34]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:49:34]wFMCommunicate OK [09:49:34]SAM_PROTO_GetShiftState done [09:49:34]FM_GetShiftState done [09:49:34]opened in 1729383750 [09:49:34]opened+sec_in_day 1729470150 [09:49:34]quantity*price = 100021 [09:49:34]sum+1 = 100023 [09:49:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 152 20.10.2024 09:49 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227304 ФПД: 85566524110637 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T094938&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227304&fm=85566524110637&tin=02508201610067®Number=0000000000091685&sum=100000 [09:49:35]StoreToDocumentArchive [09:49:35]shift 533 fd 227304 [09:49:35]save to /storage/0533/doc_00227304 [09:49:35]save last doc name /storage/0533/doc_00227304 to /storage/kkm_last_doc_name [09:49:35]save OK [09:49:35]Clear old archive folders... [09:49:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:49:35]tlvbuf is 004FD6F0 [09:49:35]SAM_PROTO_ClearQueue [09:49:35]wFMCommunicate request_size=4 [09:49:35]MH_SAM_APDU [09:49:35]CAPDU: 80 09 00 00 [09:49:35]Write to MH i2c: E2 08 00 DE 41 80 09 00 00 00 00 00 00 91 [09:49:35]Write i2c OK [09:49:35]MH_I2C_Read... [09:49:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:49:35]Read from MH i2c: E2 [09:49:35]MH_I2C_Read... [09:49:35]Read from MH i2c: E2 03 00 [09:49:35]MH_I2C_Read... [09:49:35]Read from MH i2c: E2 03 00 DE 41 00 90 00 93 [09:49:35]RAPDU: 90 00 [09:49:35]wFMCommunicate OK [09:49:35]SAM_PROTO_ClearQueue done [09:49:35]KKMCreateOFDPacket [09:49:35]OFDProtocolAddRootSTLVToBuf [09:49:35]FM_MakeSignedData [09:49:35]FM_MakeSignedData [09:49:35]SAM_PROTO_SignData [09:49:35]wFMCommunicate request_size=4 [09:49:35]MH_SAM_APDU [09:49:35]CAPDU: 80 0D 01 02 [09:49:35]Write to MH i2c: E2 08 00 DF 41 80 0D 01 02 00 00 00 00 99 [09:49:35]Write i2c OK [09:49:35]MH_I2C_Read... [09:49:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:49:35]Read from MH i2c: E2 [09:49:35]MH_I2C_Read... [09:49:35]Read from MH i2c: E2 03 00 [09:49:35]MH_I2C_Read... [09:49:35]Read from MH i2c: E2 03 00 DF 41 00 90 00 94 [09:49:35]RAPDU: 90 00 [09:49:35]wFMCommunicate OK [09:49:35]wFMCommunicate request_size=255 [09:49:35]MH_SAM_APDU [09:49:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 32 D2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E8 77 03 00 35 04 06 00 4D [09:49:35]Write to MH i2c: E2 02 01 E0 41 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 32 D2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E8 77 03 00 35 04 06 00 4D 00 00 2A [09:49:35]Write i2c OK [09:49:35]MH_I2C_Read... [09:49:36]Read from MH i2c: E2 [09:49:36]MH_I2C_Read... [09:49:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:36]Read from MH i2c: E2 03 00 [09:49:36]MH_I2C_Read... [09:49:36]Read from MH i2c: E2 03 00 E0 41 00 90 00 95 [09:49:36]RAPDU: 90 00 [09:49:36]wFMCommunicate OK [09:49:36]wFMCommunicate request_size=10 [09:49:36]MH_SAM_APDU [09:49:36]CAPDU: 80 0D 02 02 05 D2 82 46 37 2D [09:49:36]Write to MH i2c: E2 0D 00 E1 41 80 0D 02 02 05 00 D2 82 46 37 2D 00 00 A4 [09:49:36]Write i2c OK [09:49:36]MH_I2C_Read... [09:49:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:36]Read from MH i2c: E2 [09:49:36]MH_I2C_Read... [09:49:36]Read from MH i2c: E2 03 00 [09:49:36]MH_I2C_Read... [09:49:36]Read from MH i2c: E2 03 00 E1 41 00 90 00 96 [09:49:36]RAPDU: 90 00 [09:49:36]wFMCommunicate OK [09:49:36]wFMCommunicate request_size=4 [09:49:36]MH_SAM_APDU [09:49:36]CAPDU: 80 0D 03 02 [09:49:36]Write to MH i2c: E2 08 00 E2 41 80 0D 03 02 00 00 00 00 9E [09:49:36]Write i2c OK [09:49:36]MH_I2C_Read... [09:49:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:49:36]Read from MH i2c: E2 [09:49:36]MH_I2C_Read... [09:49:36]Read from MH i2c: E2 0B 00 [09:49:36]MH_I2C_Read... [09:49:36]Read from MH i2c: E2 0B 00 E2 41 00 ED 65 2C 08 EE D9 60 44 90 00 90 [09:49:36]RAPDU: ED 65 2C 08 EE D9 60 44 90 00 [09:49:36]wFMCommunicate OK [09:49:36]SAM_PROTO_SignData done [09:49:36]FM_MakeSignedData done [09:49:36]CreateOFDProtocolMessage [09:49:36]wFMCommunicate request_size=4 [09:49:36]MH_SAM_APDU [09:49:36]CAPDU: 80 11 00 00 [09:49:36]Write to MH i2c: E2 08 00 E3 41 80 11 00 00 00 00 00 00 9E [09:49:36]Write i2c OK [09:49:36]MH_I2C_Read... [09:49:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:36]Read from MH i2c: E2 [09:49:36]MH_I2C_Read... [09:49:36]Read from MH i2c: E2 17 00 [09:49:36]MH_I2C_Read... [09:49:36]Read from MH i2c: E2 17 00 E3 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F5 [09:49:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:49:36]wFMCommunicate OK [09:49:36]CreateOFDProtocolMessage done [09:49:36]OFDSenderStorePacket 227304 [09:49:36]StoreOFDPacket docnum=227304 [09:49:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 F2 26 07 01 72 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 32 D2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E8 77 03 00 35 04 06 00 4D D2 82 46 37 2D ED 65 2C 08 EE D9 60 44 [09:49:36]CheckFolder [09:49:36]dirname=/storage/ofd_packets [09:49:36]CheckFolder done [09:49:36]ProducePacketName [09:49:36]name=ofd_packets/00227304 [09:49:36]NVStorageSaveData ofd_packets/00227304 [09:49:36]File name is /storage/ofd_packets/00227304 [09:49:36]Write 301 bytes [09:49:36]NVStorageSaveData done [09:49:36]OFDSenderStorePacket done [09:49:36]KKMCreateOFDPacket done [09:49:36]NVStorageSaveData kkm_last_timestamp [09:49:36]File name is /storage/kkm_last_timestamp [09:49:36]Write 4 bytes [09:49:36]NVStorageSaveData done [09:49:36]ExternCall_PrintAddStr [09:49:36]wPrintStart [09:49:36]Write to MH i2c: 01 00 00 E4 41 25 [09:49:36]Write i2c OK [09:49:36]MH_I2C_Read... [09:49:36]Read from MH i2c: 01 [09:49:36]MH_I2C_Read... [09:49:36]Read from MH i2c: 01 07 00 [09:49:36]MH_I2C_Read... [09:49:36]Read from MH i2c: 01 07 00 E4 41 00 00 00 00 00 FF 0F 3A [09:49:36]RasterBufferAndPrint [09:49:36]line Счет N : (1)1962773 [09:49:36]line ИНН: 02508201610067 [09:49:36]line Контрольно-Кассовый Чек [09:49:36]line ПРОДАЖА [09:49:36]line ТРК (МРК, ГНК) : 44 [09:49:36]line Товар: 2710124500 [09:49:36]line Аи-95-К-5 [09:49:36]line 13.480 * 74.20 [09:49:36]line = 1000.22 [09:49:36]line НДС 12% НСП 1% [09:49:36]line > о реализуемом товаре [09:49:36]line ОКРУГЛЕНИЕ: -0.22 [09:49:36]line ИТОГО: 1000.00 [09:49:36]line Внесено: 1000.00 [09:49:36]line СДАЧА: 0.00 [09:49:36]line НСП 1% : 8.85 [09:49:36]line НДС 12% : 106.22 [09:49:36]line Наличными: 1000.00 [09:49:36]line Безнал.: 0.00 [09:49:36]line Место: АЗС № 133 "Партнер Нефть" [09:49:36]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:49:36]line СНО: Общий режим [09:49:36]line Чек 152 20.10.2024 09:49 [09:49:36]line Смена: 533 ФФД: 1.0 [09:49:36]line ЗНМ: 0300000091 [09:49:36]line РНМ: 0000000000091685 [09:49:36]line Версия ККМ: 001 [09:49:36]line ФМ: 0000000000871839 [09:49:36]line ФД: 227304 [09:49:36]line ФПД: 85566524110637 [09:49:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T094938&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227304&fm=85566524110637&tin=02508201610067®Number=0000000000091685&sum=100000 [09:49:36]written 0, free lines is 4095 [09:49:36]OFD Sender: Processing packet 227304 [packets to send 38, broken 37] [09:49:36]ProducePacketName [09:49:36]name=ofd_packets/00227304 [09:49:36]OFD Sender: To server: pG, [09:49:36]CommunicateWithHost lk.salyk.kg:30040 [09:49:36]ConnectInit lk.salyk.kg [09:49:36]Connected sock=9 [09:49:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 F2 26 07 01 72 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 32 D2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E8 77 03 00 35 04 06 00 4D D2 82 46 37 2D ED 65 2C 08 EE D9 60 44 [09:49: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 33 39 4F 00 00 00 20 4F 47 00 9B 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 33 39 10 04 04 00 E8 77 03 00 F4 03 04 00 31 7D 14 67 B6 04 01 00 00 04 5A 64 3C 0A 9B FB C9 [09:49:36]CommunicateWithHost err = 0 [09:49:36]CheckOFDResponse [09:49:36]1017 (14) - 77093643461234 [09:49:36]1041 (16) - 0000000000871839 [09:49:36]1040 (4) - 227304 [09:49:36]1012 (4) - 20.10.2024 03:46 [09:49:36]1206 (1) - 0 [09:49:36]OFD Sender: Remove packet 227304 [09:49:36]ProducePacketName [09:49:36]name=ofd_packets/00227304 [09:49:36]NVStorageDeleteData [09:49:36]Write to MH i2c: 01 00 00 0E 42 50 [09:49:36]Write i2c OK [09:49:36]MH_I2C_Read... [09:49:36]Read from MH i2c: 01 [09:49:36]MH_I2C_Read... [09:49:36]Read from MH i2c: 01 07 00 [09:49:36]MH_I2C_Read... [09:49:36]Read from MH i2c: 01 07 00 0E 42 00 00 00 00 00 14 0D 78 [09:49:36]RasterBufferAndPrint [09:49:36]line [09:49:36]line [09:49:36]line [09:49:36]line [09:49:36]line [09:49:36]written 0, free lines is 3363 [09:49:36]process_action close_receipt done [09:49:36]requested_data is exist [09:49:36]produce_requested_data [09:49:36]requested_item fm.sn is exist - process it [09:49:36]wFMCommunicate request_size=4 [09:49:36]MH_SAM_APDU [09:49:36]CAPDU: 80 11 00 00 [09:49:36]Write to MH i2c: E2 08 00 15 42 80 11 00 00 00 00 00 00 D1 [09:49:36]Write i2c OK [09:49:36]MH_I2C_Read... [09:49:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:36]Read from MH i2c: E2 [09:49:36]MH_I2C_Read... [09:49:36]Read from MH i2c: E2 17 00 [09:49:36]MH_I2C_Read... [09:49:36]Read from MH i2c: E2 17 00 15 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 28 [09:49:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:49:36]wFMCommunicate OK [09:49:36]requested_item fd.num is exist - process it [09:49:36]SAM_PROTO_GetFieldsCounters [09:49:36]wFMCommunicate request_size=4 [09:49:36]MH_SAM_APDU [09:49:36]CAPDU: 80 13 00 00 [09:49:36]Write to MH i2c: E2 08 00 16 42 80 13 00 00 00 00 00 00 D4 [09:49:36]Write i2c OK [09:49:36]MH_I2C_Read... [09:49:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:49:36]Read from MH i2c: E2 [09:49:36]MH_I2C_Read... [09:49:36]Read from MH i2c: E2 62 00 [09:49:36]MH_I2C_Read... [09:49:36]Read from MH i2c: E2 62 00 16 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 E8 77 03 00 0E 04 04 00 15 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 3E [09:49: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 E8 77 03 00 0E 04 04 00 15 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 [09:49:37]wFMCommunicate OK [09:49:37]SAM_PROTO_GetFieldsCounters done [09:49:37]requested_item shift.num is exist - process it [09:49:37]requested_item shift.opened is exist - process it [09:49:37]req_shift_opened [09:49:37]FM_GetShiftState [09:49:37]SAM_PROTO_GetShiftState [09:49:37]wFMCommunicate request_size=4 [09:49:37]MH_SAM_APDU [09:49:37]CAPDU: 80 13 01 00 [09:49:37]Write to MH i2c: E2 08 00 17 42 80 13 01 00 00 00 00 00 D6 [09:49:37]Write i2c OK [09:49:37]MH_I2C_Read... [09:49:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:37]Read from MH i2c: E2 [09:49:37]MH_I2C_Read... [09:49:37]Read from MH i2c: E2 0E 00 [09:49:37]MH_I2C_Read... [09:49:37]Read from MH i2c: E2 0E 00 17 42 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 F0 [09:49:37]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:49:37]wFMCommunicate OK [09:49:37]SAM_PROTO_GetShiftState done [09:49:37]FM_GetShiftState done [09:49:37]req_shift_opened done [09:49:37]requested_item shift.open_date is exist - process it [09:49:37]req_shift_open_date [09:49:37]req_shift_open_date done [09:49:37]produce_requested_data done [09:49:37]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227304,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [09:49:37]process_action_free close_receipt [09:49:37]json_value_free [09:49:37]json_value_free done [09:49:37]process_json_proto returns [09:49:37]Send response to host [09:49:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227304,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [09:49:37]free response buf [09:49:37]execute_script done [09:49:37]execute_script returns [09:49:37]free content buf [09:49:37]Sock 10.Close socket [09:49:37]Sock 10.Thread stoped [09:49:37]OFD Sender: No OFD packet to send [09:49:42]OFD Sender: No OFD packet to send [09:49:47]OFD Sender: No OFD packet to send [09:49:52]OFD Sender: No OFD packet to send [09:49:57]OFD Sender: No OFD packet to send [09:50:02]OFD Sender: No OFD packet to send [09:50:07]OFD Sender: No OFD packet to send [09:50:08]accept exits with 8 [09:50:08]New connection [09:50:08]New thread 3066965348 created [09:50:08]Thread 3066821988 joined [09:50:08]Waiting for new connection... [09:50:08] Sock 8.Parse request [09:50:08]Sock 8.Check first char [09:50:08]Sock 8.First char is OK [09:50:08]request: POST /json_proto HTTP/1.0 [09:50:08]Method: POST [09:50:08]URL: /json_proto [09:50:08]Method is POST - this is cgi request [09:50:08]url: /json_proto [09:50:08]query_string will be loaded in cgi processing [09:50:08]execute_cgi json_proto POST (null) [09:50:08]execute_cgi path=json_proto method=POST [09:50:08]POST find Content-Length [09:50:08]Host: 172.17.44.195:8080 [09:50:08]Content-Length: 678 [09:50:08]Content-Type: application/json [09:50:08] [09:50:08]POST finish read [09:50:08]Found Content-Length = 678 [09:50:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962775", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:50:08]execute_script... [09:50: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)1962775", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:50:08]POST & json_proto [09:50:08]process_json_proto [09:50:08]json parsed OK: [09:50:08]protocol is kg_v1.0 [09:50:08]action value=close_receipt [09:50:08]process_action close_receipt [09:50:08]cmd_close_receipt [09:50:08]MH_GetDate [09:50:08]Write to MH i2c: F0 00 00 18 42 49 [09:50:08]Write i2c OK [09:50:08]MH_I2C_Read... [09:50:08]Read from MH i2c: F0 [09:50:08]MH_I2C_Read... [09:50:08]Read from MH i2c: F0 09 00 [09:50:08]MH_I2C_Read... [09:50:08]Read from MH i2c: F0 09 00 18 42 00 55 D2 14 67 82 C9 CF 66 74 [09:50:08]GetLastDocTimeStamp 1729417778 [09:50:08]current date 1729417813 [09:50:08]FM_GetShiftState [09:50:08]SAM_PROTO_GetShiftState [09:50:08]wFMCommunicate request_size=4 [09:50:08]MH_SAM_APDU [09:50:08]CAPDU: 80 13 01 00 [09:50:08]Write to MH i2c: E2 08 00 19 42 80 13 01 00 00 00 00 00 D8 [09:50:08]Write i2c OK [09:50:08]MH_I2C_Read... [09:50:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:08]Read from MH i2c: E2 [09:50:08]MH_I2C_Read... [09:50:08]Read from MH i2c: E2 0E 00 [09:50:08]MH_I2C_Read... [09:50:08]Read from MH i2c: E2 0E 00 19 42 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 F2 [09:50:08]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:50:08]wFMCommunicate OK [09:50:08]SAM_PROTO_GetShiftState done [09:50:08]FM_GetShiftState done [09:50:08]opened in 1729383750 [09:50:08]opened+sec_in_day 1729470150 [09:50:08]quantity*price = 40006 [09:50:08]sum+1 = 40007 [09:50:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 153 20.10.2024 09:50 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227305 ФПД: 58116629882747 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T095013&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227305&fm=58116629882747&tin=02508201610067®Number=0000000000091685&sum=40000 [09:50:10]StoreToDocumentArchive [09:50:10]shift 533 fd 227305 [09:50:10]save to /storage/0533/doc_00227305 [09:50:10]save last doc name /storage/0533/doc_00227305 to /storage/kkm_last_doc_name [09:50:10]save OK [09:50:10]Clear old archive folders... [09:50:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:50:10]tlvbuf is 00569540 [09:50:10]SAM_PROTO_ClearQueue [09:50:10]wFMCommunicate request_size=4 [09:50:10]MH_SAM_APDU [09:50:10]CAPDU: 80 09 00 00 [09:50:10]Write to MH i2c: E2 08 00 26 42 80 09 00 00 00 00 00 00 DA [09:50:10]Write i2c OK [09:50:10]MH_I2C_Read... [09:50:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:50:10]Read from MH i2c: E2 [09:50:10]MH_I2C_Read... [09:50:10]Read from MH i2c: E2 03 00 [09:50:10]MH_I2C_Read... [09:50:10]Read from MH i2c: E2 03 00 26 42 00 90 00 DC [09:50:10]RAPDU: 90 00 [09:50:10]wFMCommunicate OK [09:50:10]SAM_PROTO_ClearQueue done [09:50:10]KKMCreateOFDPacket [09:50:10]OFDProtocolAddRootSTLVToBuf [09:50:10]FM_MakeSignedData [09:50:10]FM_MakeSignedData [09:50:10]SAM_PROTO_SignData [09:50:10]wFMCommunicate request_size=4 [09:50:10]MH_SAM_APDU [09:50:10]CAPDU: 80 0D 01 02 [09:50:10]Write to MH i2c: E2 08 00 27 42 80 0D 01 02 00 00 00 00 E2 [09:50:10]Write i2c OK [09:50:10]MH_I2C_Read... [09:50:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:50:10]Read from MH i2c: E2 [09:50:10]MH_I2C_Read... [09:50:10]Read from MH i2c: E2 03 00 [09:50:10]MH_I2C_Read... [09:50:10]Read from MH i2c: E2 03 00 27 42 00 90 00 DD [09:50:10]RAPDU: 90 00 [09:50:10]wFMCommunicate OK [09:50:10]wFMCommunicate request_size=255 [09:50:10]MH_SAM_APDU [09:50:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 55 D2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E9 77 03 00 35 04 06 00 34 [09:50:10]Write to MH i2c: E2 02 01 28 42 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 55 D2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E9 77 03 00 35 04 06 00 34 00 00 31 [09:50:10]Write i2c OK [09:50:10]MH_I2C_Read... [09:50:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:10]Read from MH i2c: E2 [09:50:10]MH_I2C_Read... [09:50:10]Read from MH i2c: E2 03 00 [09:50:10]MH_I2C_Read... [09:50:10]Read from MH i2c: E2 03 00 28 42 00 90 00 DE [09:50:10]RAPDU: 90 00 [09:50:10]wFMCommunicate OK [09:50:10]wFMCommunicate request_size=10 [09:50:10]MH_SAM_APDU [09:50:10]CAPDU: 80 0D 02 02 05 DB 55 14 67 7B [09:50:10]Write to MH i2c: E2 0D 00 29 42 80 0D 02 02 05 00 DB 55 14 67 7B 00 00 15 [09:50:10]Write i2c OK [09:50:10]MH_I2C_Read... [09:50:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:10]Read from MH i2c: E2 [09:50:10]MH_I2C_Read... [09:50:10]Read from MH i2c: E2 03 00 [09:50:10]MH_I2C_Read... [09:50:10]Read from MH i2c: E2 03 00 29 42 00 90 00 DF [09:50:10]RAPDU: 90 00 [09:50:10]wFMCommunicate OK [09:50:10]wFMCommunicate request_size=4 [09:50:10]MH_SAM_APDU [09:50:10]CAPDU: 80 0D 03 02 [09:50:10]Write to MH i2c: E2 08 00 2A 42 80 0D 03 02 00 00 00 00 E7 [09:50:10]Write i2c OK [09:50:10]MH_I2C_Read... [09:50:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:50:10]Read from MH i2c: E2 [09:50:10]MH_I2C_Read... [09:50:10]Read from MH i2c: E2 0B 00 [09:50:10]MH_I2C_Read... [09:50:10]Read from MH i2c: E2 0B 00 2A 42 00 11 08 0D FC BA 70 8A 4C 90 00 0A [09:50:10]RAPDU: 11 08 0D FC BA 70 8A 4C 90 00 [09:50:10]wFMCommunicate OK [09:50:10]SAM_PROTO_SignData done [09:50:10]FM_MakeSignedData done [09:50:10]CreateOFDProtocolMessage [09:50:10]wFMCommunicate request_size=4 [09:50:10]MH_SAM_APDU [09:50:10]CAPDU: 80 11 00 00 [09:50:10]Write to MH i2c: E2 08 00 2B 42 80 11 00 00 00 00 00 00 E7 [09:50:10]Write i2c OK [09:50:10]MH_I2C_Read... [09:50:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:10]Read from MH i2c: E2 [09:50:10]MH_I2C_Read... [09:50:10]Read from MH i2c: E2 17 00 [09:50:10]MH_I2C_Read... [09:50:10]Read from MH i2c: E2 17 00 2B 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 3E [09:50:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:50:10]wFMCommunicate OK [09:50:10]CreateOFDProtocolMessage done [09:50:10]OFDSenderStorePacket 227305 [09:50:10]StoreOFDPacket docnum=227305 [09:50:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 01 D3 07 01 78 C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 55 D2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E9 77 03 00 35 04 06 00 34 DB 55 14 67 7B 11 08 0D FC BA 70 8A 4C [09:50:10]CheckFolder [09:50:10]dirname=/storage/ofd_packets [09:50:10]CheckFolder done [09:50:10]ProducePacketName [09:50:10]name=ofd_packets/00227305 [09:50:10]NVStorageSaveData ofd_packets/00227305 [09:50:10]File name is /storage/ofd_packets/00227305 [09:50:10]Write 301 bytes [09:50:10]NVStorageSaveData done [09:50:10]OFDSenderStorePacket done [09:50:10]KKMCreateOFDPacket done [09:50:10]NVStorageSaveData kkm_last_timestamp [09:50:10]File name is /storage/kkm_last_timestamp [09:50:10]Write 4 bytes [09:50:10]NVStorageSaveData done [09:50:10]ExternCall_PrintAddStr [09:50:10]wPrintStart [09:50:10]Write to MH i2c: 01 00 00 2C 42 6E [09:50:10]Write i2c OK [09:50:10]MH_I2C_Read... [09:50:10]Read from MH i2c: 01 [09:50:10]MH_I2C_Read... [09:50:10]Read from MH i2c: 01 07 00 [09:50:10]MH_I2C_Read... [09:50:10]Read from MH i2c: 01 07 00 2C 42 00 00 00 00 00 FF 0F 83 [09:50:10]RasterBufferAndPrint [09:50:10]line Счет N : (1)1962775 [09:50:10]line ИНН: 02508201610067 [09:50:10]line Контрольно-Кассовый Чек [09:50:10]line ПРОДАЖА [09:50:10]line ТРК (МРК, ГНК) : 33 [09:50:10]line Товар: 2710124130 [09:50:10]line Аи-92-К-5 [09:50:10]line 5.980 * 66.90 [09:50:10]line = 400.06 [09:50:10]line НДС 12% НСП 1% [09:50:10]line > о реализуемом товаре [09:50:10]line ОКРУГЛЕНИЕ: -0.06 [09:50:10]line ИТОГО: 400.00 [09:50:10]line Внесено: 400.00 [09:50:10]line СДАЧА: 0.00 [09:50:10]line НСП 1% : 3.54 [09:50:10]line НДС 12% : 42.48 [09:50:10]line Наличными: 400.00 [09:50:10]line Безнал.: 0.00 [09:50:10]line Место: АЗС № 133 "Партнер Нефть" [09:50:10]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:50:10]line СНО: Общий режим [09:50:10]line Чек 153 20.10.2024 09:50 [09:50:10]line Смена: 533 ФФД: 1.0 [09:50:10]line ЗНМ: 0300000091 [09:50:10]line РНМ: 0000000000091685 [09:50:10]line Версия ККМ: 001 [09:50:10]line ФМ: 0000000000871839 [09:50:10]line ФД: 227305 [09:50:10]line ФПД: 58116629882747 [09:50:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T095013&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227305&fm=58116629882747&tin=02508201610067®Number=0000000000091685&sum=40000 [09:50:10]OFD Sender: Processing packet 227305 [packets to send 38, broken 37] [09:50:10]ProducePacketName [09:50:10]name=ofd_packets/00227305 [09:50:10]OFD Sender: To server: pG, [09:50:10]CommunicateWithHost lk.salyk.kg:30040 [09:50:10]ConnectInit lk.salyk.kg [09:50:10]written 0, free lines is 4095 [09:50:11]Connected sock=10 [09:50:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 01 D3 07 01 78 C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 55 D2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E9 77 03 00 35 04 06 00 34 DB 55 14 67 7B 11 08 0D FC BA 70 8A 4C [09:50: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 33 39 4F 00 00 00 5B 62 47 00 6B 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 33 39 10 04 04 00 E9 77 03 00 F4 03 04 00 54 7D 14 67 B6 04 01 00 00 4C 0B F1 F9 3C 17 2B 70 [09:50:11]CommunicateWithHost err = 0 [09:50:11]CheckOFDResponse [09:50:11]1017 (14) - 77093643461234 [09:50:11]1041 (16) - 0000000000871839 [09:50:11]1040 (4) - 227305 [09:50:11]1012 (4) - 20.10.2024 03:47 [09:50:11]1206 (1) - 0 [09:50:11]OFD Sender: Remove packet 227305 [09:50:11]ProducePacketName [09:50:11]name=ofd_packets/00227305 [09:50:11]NVStorageDeleteData [09:50:11]Write to MH i2c: 01 00 00 56 42 98 [09:50:11]Write i2c OK [09:50:11]MH_I2C_Read... [09:50:11]Read from MH i2c: 01 [09:50:11]MH_I2C_Read... [09:50:11]Read from MH i2c: 01 07 00 [09:50:11]MH_I2C_Read... [09:50:11]Read from MH i2c: 01 07 00 56 42 00 00 00 00 00 02 0D AE [09:50:11]RasterBufferAndPrint [09:50:11]line [09:50:11]line [09:50:11]line [09:50:11]line [09:50:11]line [09:50:11]written 0, free lines is 3336 [09:50:11]process_action close_receipt done [09:50:11]requested_data is exist [09:50:11]produce_requested_data [09:50:11]requested_item fm.sn is exist - process it [09:50:11]wFMCommunicate request_size=4 [09:50:11]MH_SAM_APDU [09:50:11]CAPDU: 80 11 00 00 [09:50:11]Write to MH i2c: E2 08 00 5D 42 80 11 00 00 00 00 00 00 19 [09:50:11]Write i2c OK [09:50:11]MH_I2C_Read... [09:50:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:11]Read from MH i2c: E2 [09:50:11]MH_I2C_Read... [09:50:11]Read from MH i2c: E2 17 00 [09:50:11]MH_I2C_Read... [09:50:11]Read from MH i2c: E2 17 00 5D 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 70 [09:50:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:50:11]wFMCommunicate OK [09:50:11]requested_item fd.num is exist - process it [09:50:11]SAM_PROTO_GetFieldsCounters [09:50:11]wFMCommunicate request_size=4 [09:50:11]MH_SAM_APDU [09:50:11]CAPDU: 80 13 00 00 [09:50:11]Write to MH i2c: E2 08 00 5E 42 80 13 00 00 00 00 00 00 1C [09:50:11]Write i2c OK [09:50:11]MH_I2C_Read... [09:50:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:50:11]Read from MH i2c: E2 [09:50:11]MH_I2C_Read... [09:50:11]Read from MH i2c: E2 62 00 [09:50:11]MH_I2C_Read... [09:50:11]Read from MH i2c: E2 62 00 5E 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 E9 77 03 00 0E 04 04 00 15 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 8A [09:50: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 E9 77 03 00 0E 04 04 00 15 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 [09:50:11]wFMCommunicate OK [09:50:11]SAM_PROTO_GetFieldsCounters done [09:50:11]requested_item shift.num is exist - process it [09:50:11]requested_item shift.opened is exist - process it [09:50:11]req_shift_opened [09:50:11]FM_GetShiftState [09:50:11]SAM_PROTO_GetShiftState [09:50:11]wFMCommunicate request_size=4 [09:50:11]MH_SAM_APDU [09:50:11]CAPDU: 80 13 01 00 [09:50:11]Write to MH i2c: E2 08 00 5F 42 80 13 01 00 00 00 00 00 1E [09:50:11]Write i2c OK [09:50:11]MH_I2C_Read... [09:50:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:11]Read from MH i2c: E2 [09:50:11]MH_I2C_Read... [09:50:11]Read from MH i2c: E2 0E 00 [09:50:11]MH_I2C_Read... [09:50:11]Read from MH i2c: E2 0E 00 5F 42 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 38 [09:50:11]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:50:11]wFMCommunicate OK [09:50:11]SAM_PROTO_GetShiftState done [09:50:11]FM_GetShiftState done [09:50:11]req_shift_opened done [09:50:11]requested_item shift.open_date is exist - process it [09:50:11]req_shift_open_date [09:50:11]req_shift_open_date done [09:50:11]produce_requested_data done [09:50:11]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227305,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [09:50:11]process_action_free close_receipt [09:50:11]json_value_free [09:50:11]json_value_free done [09:50:11]process_json_proto returns [09:50:11]Send response to host [09:50:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227305,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [09:50:11]free response buf [09:50:11]execute_script done [09:50:11]execute_script returns [09:50:11]free content buf [09:50:11]Sock 8.Close socket [09:50:11]Sock 8.Thread stoped [09:50:11]OFD Sender: No OFD packet to send [09:50:16]OFD Sender: No OFD packet to send [09:50:21]OFD Sender: No OFD packet to send [09:50:26]OFD Sender: No OFD packet to send [09:50:31]OFD Sender: No OFD packet to send [09:50:36]OFD Sender: No OFD packet to send [09:50:41]OFD Sender: No OFD packet to send [09:50:46]OFD Sender: No OFD packet to send [09:50:51]OFD Sender: No OFD packet to send [09:50:56]OFD Sender: No OFD packet to send [09:51:01]OFD Sender: No OFD packet to send [09:51:06]OFD Sender: No OFD packet to send [09:51:11]OFD Sender: No OFD packet to send [09:51:15]accept exits with 9 [09:51:15]New connection [09:51:15]New thread 3066821988 created [09:51:15]Thread 3066965348 joined [09:51:15]Waiting for new connection... [09:51:15] Sock 9.Parse request [09:51:15]Sock 9.Check first char [09:51:15]Sock 9.First char is OK [09:51:15]request: POST /json_proto HTTP/1.0 [09:51:15]Method: POST [09:51:15]URL: /json_proto [09:51:15]Method is POST - this is cgi request [09:51:15]url: /json_proto [09:51:15]query_string will be loaded in cgi processing [09:51:15]execute_cgi json_proto POST (null) [09:51:15]execute_cgi path=json_proto method=POST [09:51:15]POST find Content-Length [09:51:15]Host: 172.17.44.195:8080 [09:51:15]Content-Length: 680 [09:51:15]Content-Type: application/json [09:51:15] [09:51:15]POST finish read [09:51:15]Found Content-Length = 680 [09:51:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962776", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:15]execute_script... [09:51: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)1962776", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:15]POST & json_proto [09:51:15]process_json_proto [09:51:15]json parsed OK: [09:51:15]protocol is kg_v1.0 [09:51:15]action value=close_receipt [09:51:15]process_action close_receipt [09:51:15]cmd_close_receipt [09:51:15]MH_GetDate [09:51:15]Write to MH i2c: F0 00 00 60 42 91 [09:51:15]Write i2c OK [09:51:15]MH_I2C_Read... [09:51:15]Read from MH i2c: F0 [09:51:15]MH_I2C_Read... [09:51:15]Read from MH i2c: F0 09 00 [09:51:15]MH_I2C_Read... [09:51:15]Read from MH i2c: F0 09 00 60 42 00 98 D2 14 67 82 C9 CF 66 FF [09:51:15]GetLastDocTimeStamp 1729417813 [09:51:15]current date 1729417880 [09:51:15]FM_GetShiftState [09:51:15]SAM_PROTO_GetShiftState [09:51:15]wFMCommunicate request_size=4 [09:51:15]MH_SAM_APDU [09:51:15]CAPDU: 80 13 01 00 [09:51:15]Write to MH i2c: E2 08 00 61 42 80 13 01 00 00 00 00 00 20 [09:51:15]Write i2c OK [09:51:15]MH_I2C_Read... [09:51:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:15]Read from MH i2c: E2 [09:51:15]MH_I2C_Read... [09:51:15]Read from MH i2c: E2 0E 00 [09:51:15]MH_I2C_Read... [09:51:15]Read from MH i2c: E2 0E 00 61 42 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 3A [09:51:15]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:51:15]wFMCommunicate OK [09:51:15]SAM_PROTO_GetShiftState done [09:51:15]FM_GetShiftState done [09:51:15]opened in 1729383750 [09:51:15]opened+sec_in_day 1729470150 [09:51:15]quantity*price = 200025 [09:51:15]sum+1 = 200026 [09:51:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 154 20.10.2024 09:51 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227306 ФПД: 78431536127735 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T095120&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227306&fm=78431536127735&tin=02508201610067®Number=0000000000091685&sum=200000 [09:51:17]StoreToDocumentArchive [09:51:17]shift 533 fd 227306 [09:51:17]save to /storage/0533/doc_00227306 [09:51:17]save last doc name /storage/0533/doc_00227306 to /storage/kkm_last_doc_name [09:51:17]save OK [09:51:17]Clear old archive folders... [09:51:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:51:17]tlvbuf is 005D22D0 [09:51:17]SAM_PROTO_ClearQueue [09:51:17]wFMCommunicate request_size=4 [09:51:17]MH_SAM_APDU [09:51:17]CAPDU: 80 09 00 00 [09:51:17]Write to MH i2c: E2 08 00 6E 42 80 09 00 00 00 00 00 00 22 [09:51:17]Write i2c OK [09:51:17]MH_I2C_Read... [09:51:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:51:17]Read from MH i2c: E2 [09:51:17]MH_I2C_Read... [09:51:17]Read from MH i2c: E2 03 00 [09:51:17]MH_I2C_Read... [09:51:17]Read from MH i2c: E2 03 00 6E 42 00 90 00 24 [09:51:17]RAPDU: 90 00 [09:51:17]wFMCommunicate OK [09:51:17]SAM_PROTO_ClearQueue done [09:51:17]KKMCreateOFDPacket [09:51:17]OFDProtocolAddRootSTLVToBuf [09:51:17]FM_MakeSignedData [09:51:17]FM_MakeSignedData [09:51:17]SAM_PROTO_SignData [09:51:17]wFMCommunicate request_size=4 [09:51:17]MH_SAM_APDU [09:51:17]CAPDU: 80 0D 01 02 [09:51:17]Write to MH i2c: E2 08 00 6F 42 80 0D 01 02 00 00 00 00 2A [09:51:17]Write i2c OK [09:51:17]MH_I2C_Read... [09:51:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:51:17]Read from MH i2c: E2 [09:51:17]MH_I2C_Read... [09:51:17]Read from MH i2c: E2 03 00 [09:51:17]MH_I2C_Read... [09:51:17]Read from MH i2c: E2 03 00 6F 42 00 90 00 25 [09:51:17]RAPDU: 90 00 [09:51:17]wFMCommunicate OK [09:51:17]wFMCommunicate request_size=255 [09:51:17]MH_SAM_APDU [09:51: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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 98 D2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EA 77 03 00 35 04 06 00 47 55 43 D9 [09:51:17]Write to MH i2c: E2 02 01 70 42 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 98 D2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EA 77 03 00 35 04 06 00 47 55 43 D9 00 00 57 [09:51:17]Write i2c OK [09:51:17]MH_I2C_Read... [09:51:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:17]Read from MH i2c: E2 [09:51:17]MH_I2C_Read... [09:51:17]Read from MH i2c: E2 03 00 [09:51:17]MH_I2C_Read... [09:51:17]Read from MH i2c: E2 03 00 70 42 00 90 00 26 [09:51:17]RAPDU: 90 00 [09:51:17]wFMCommunicate OK [09:51:17]wFMCommunicate request_size=7 [09:51:17]MH_SAM_APDU [09:51:17]CAPDU: 80 0D 02 02 02 9E F7 [09:51:17]Write to MH i2c: E2 0A 00 71 42 80 0D 02 02 02 00 9E F7 00 00 C6 [09:51:17]Write i2c OK [09:51:17]MH_I2C_Read... [09:51:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:17]Read from MH i2c: E2 [09:51:17]MH_I2C_Read... [09:51:17]Read from MH i2c: E2 03 00 [09:51:17]MH_I2C_Read... [09:51:17]Read from MH i2c: E2 03 00 71 42 00 90 00 27 [09:51:17]RAPDU: 90 00 [09:51:17]wFMCommunicate OK [09:51:17]wFMCommunicate request_size=4 [09:51:17]MH_SAM_APDU [09:51:17]CAPDU: 80 0D 03 02 [09:51:17]Write to MH i2c: E2 08 00 72 42 80 0D 03 02 00 00 00 00 2F [09:51:17]Write i2c OK [09:51:17]MH_I2C_Read... [09:51:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:51:17]Read from MH i2c: E2 [09:51:17]MH_I2C_Read... [09:51:17]Read from MH i2c: E2 0B 00 [09:51:17]MH_I2C_Read... [09:51:17]Read from MH i2c: E2 0B 00 72 42 00 11 BD 3A 9A 7D 2C 7D 8B 90 00 83 [09:51:17]RAPDU: 11 BD 3A 9A 7D 2C 7D 8B 90 00 [09:51:17]wFMCommunicate OK [09:51:17]SAM_PROTO_SignData done [09:51:17]FM_MakeSignedData done [09:51:17]CreateOFDProtocolMessage [09:51:17]wFMCommunicate request_size=4 [09:51:17]MH_SAM_APDU [09:51:17]CAPDU: 80 11 00 00 [09:51:17]Write to MH i2c: E2 08 00 73 42 80 11 00 00 00 00 00 00 2F [09:51:17]Write i2c OK [09:51:17]MH_I2C_Read... [09:51:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:17]Read from MH i2c: E2 [09:51:17]MH_I2C_Read... [09:51:17]Read from MH i2c: E2 17 00 [09:51:17]MH_I2C_Read... [09:51:17]Read from MH i2c: E2 17 00 73 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 86 [09:51:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:51:17]wFMCommunicate OK [09:51:17]CreateOFDProtocolMessage done [09:51:17]OFDSenderStorePacket 227306 [09:51:17]StoreOFDPacket docnum=227306 [09:51:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 DE 05 04 01 67 36 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 98 D2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EA 77 03 00 35 04 06 00 47 55 43 D9 9E F7 11 BD 3A 9A 7D 2C 7D 8B [09:51:17]CheckFolder [09:51:17]dirname=/storage/ofd_packets [09:51:17]CheckFolder done [09:51:17]ProducePacketName [09:51:17]name=ofd_packets/00227306 [09:51:17]NVStorageSaveData ofd_packets/00227306 [09:51:17]File name is /storage/ofd_packets/00227306 [09:51:17]Write 298 bytes [09:51:17]NVStorageSaveData done [09:51:17]OFDSenderStorePacket done [09:51:17]KKMCreateOFDPacket done [09:51:17]NVStorageSaveData kkm_last_timestamp [09:51:17]File name is /storage/kkm_last_timestamp [09:51:17]Write 4 bytes [09:51:17]NVStorageSaveData done [09:51:17]ExternCall_PrintAddStr [09:51:17]wPrintStart [09:51:17]Write to MH i2c: 01 00 00 74 42 B6 [09:51:17]Write i2c OK [09:51:17]MH_I2C_Read... [09:51:17]Read from MH i2c: 01 [09:51:17]MH_I2C_Read... [09:51:17]Read from MH i2c: 01 07 00 [09:51:17]MH_I2C_Read... [09:51:17]Read from MH i2c: 01 07 00 74 42 00 00 00 00 00 FF 0F CB [09:51:17]RasterBufferAndPrint [09:51:17]line Счет N : (1)1962776 [09:51:17]line ИНН: 02508201610067 [09:51:17]line Контрольно-Кассовый Чек [09:51:17]line ПРОДАЖА [09:51:17]line ТРК (МРК, ГНК) : 21 [09:51:17]line Товар: 2710194210 [09:51:17]line ДТ-К-5 [09:51:17]line 26.250 * 76.20 [09:51:17]line = 2000.25 [09:51:17]line НДС 12% НСП 1% [09:51:17]line > о реализуемом товаре [09:51:17]line ОКРУГЛЕНИЕ: -0.25 [09:51:17]line ИТОГО: 2000.00 [09:51:17]line Внесено: 2000.00 [09:51:17]line СДАЧА: 0.00 [09:51:17]line НСП 1% : 17.70 [09:51:17]line НДС 12% : 212.42 [09:51:17]line Наличными: 2000.00 [09:51:17]line Безнал.: 0.00 [09:51:17]line Место: АЗС № 133 "Партнер Нефть" [09:51:17]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:51:17]line СНО: Общий режим [09:51:17]line Чек 154 20.10.2024 09:51 [09:51:17]line Смена: 533 ФФД: 1.0 [09:51:17]line ЗНМ: 0300000091 [09:51:17]line РНМ: 0000000000091685 [09:51:17]line Версия ККМ: 001 [09:51:17]line ФМ: 0000000000871839 [09:51:17]line ФД: 227306 [09:51:17]line ФПД: 78431536127735 [09:51:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T095120&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227306&fm=78431536127735&tin=02508201610067®Number=0000000000091685&sum=200000 [09:51:17]OFD Sender: Processing packet 227306 [packets to send 38, broken 37] [09:51:17]ProducePacketName [09:51:17]name=ofd_packets/00227306 [09:51:17]OFD Sender: To server: pG, [09:51:17]CommunicateWithHost lk.salyk.kg:30040 [09:51:17]ConnectInit lk.salyk.kg [09:51:17]written 0, free lines is 4095 [09:51:17]Connected sock=10 [09:51: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 33 39 0C 01 00 00 DE 05 04 01 67 36 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 98 D2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EA 77 03 00 35 04 06 00 47 55 43 D9 9E F7 11 BD 3A 9A 7D 2C 7D 8B [09:51: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 33 39 4F 00 00 00 95 09 47 00 1D 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 33 39 10 04 04 00 EA 77 03 00 F4 03 04 00 97 7D 14 67 B6 04 01 00 00 1B 1A D5 1C 78 B2 7A 84 [09:51:18]CommunicateWithHost err = 0 [09:51:18]CheckOFDResponse [09:51:18]1017 (14) - 77093643461234 [09:51:18]1041 (16) - 0000000000871839 [09:51:18]1040 (4) - 227306 [09:51:18]1012 (4) - 20.10.2024 03:48 [09:51:18]1206 (1) - 0 [09:51:18]OFD Sender: Remove packet 227306 [09:51:18]ProducePacketName [09:51:18]name=ofd_packets/00227306 [09:51:18]NVStorageDeleteData [09:51:18]Write to MH i2c: 01 00 00 9E 42 E0 [09:51:18]Write i2c OK [09:51:18]MH_I2C_Read... [09:51:18]Read from MH i2c: 01 [09:51:18]MH_I2C_Read... [09:51:18]Read from MH i2c: 01 07 00 [09:51:18]MH_I2C_Read... [09:51:18]Read from MH i2c: 01 07 00 9E 42 00 00 00 00 00 0B 0D FF [09:51:18]RasterBufferAndPrint [09:51:18]line [09:51:18]line [09:51:18]line [09:51:18]line [09:51:18]line [09:51:18]written 0, free lines is 3345 [09:51:18]process_action close_receipt done [09:51:18]requested_data is exist [09:51:18]produce_requested_data [09:51:18]requested_item fm.sn is exist - process it [09:51:18]wFMCommunicate request_size=4 [09:51:18]MH_SAM_APDU [09:51:18]CAPDU: 80 11 00 00 [09:51:18]Write to MH i2c: E2 08 00 A5 42 80 11 00 00 00 00 00 00 61 [09:51:18]Write i2c OK [09:51:18]MH_I2C_Read... [09:51:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:18]Read from MH i2c: E2 [09:51:18]MH_I2C_Read... [09:51:18]Read from MH i2c: E2 17 00 [09:51:18]MH_I2C_Read... [09:51:18]Read from MH i2c: E2 17 00 A5 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B8 [09:51:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:51:18]wFMCommunicate OK [09:51:18]requested_item fd.num is exist - process it [09:51:18]SAM_PROTO_GetFieldsCounters [09:51:18]wFMCommunicate request_size=4 [09:51:18]MH_SAM_APDU [09:51:18]CAPDU: 80 13 00 00 [09:51:18]Write to MH i2c: E2 08 00 A6 42 80 13 00 00 00 00 00 00 64 [09:51:18]Write i2c OK [09:51:18]MH_I2C_Read... [09:51:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:51:18]Read from MH i2c: E2 [09:51:18]MH_I2C_Read... [09:51:18]Read from MH i2c: E2 62 00 [09:51:18]MH_I2C_Read... [09:51:18]Read from MH i2c: E2 62 00 A6 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 EA 77 03 00 0E 04 04 00 15 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 D6 [09:51:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 EA 77 03 00 0E 04 04 00 15 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 [09:51:18]wFMCommunicate OK [09:51:18]SAM_PROTO_GetFieldsCounters done [09:51:18]requested_item shift.num is exist - process it [09:51:18]requested_item shift.opened is exist - process it [09:51:18]req_shift_opened [09:51:18]FM_GetShiftState [09:51:18]SAM_PROTO_GetShiftState [09:51:18]wFMCommunicate request_size=4 [09:51:18]MH_SAM_APDU [09:51:18]CAPDU: 80 13 01 00 [09:51:18]Write to MH i2c: E2 08 00 A7 42 80 13 01 00 00 00 00 00 66 [09:51:18]Write i2c OK [09:51:18]MH_I2C_Read... [09:51:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:18]Read from MH i2c: E2 [09:51:18]MH_I2C_Read... [09:51:18]Read from MH i2c: E2 0E 00 [09:51:18]MH_I2C_Read... [09:51:18]Read from MH i2c: E2 0E 00 A7 42 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 80 [09:51:18]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:51:18]wFMCommunicate OK [09:51:18]SAM_PROTO_GetShiftState done [09:51:18]FM_GetShiftState done [09:51:18]req_shift_opened done [09:51:18]requested_item shift.open_date is exist - process it [09:51:18]req_shift_open_date [09:51:18]req_shift_open_date done [09:51:18]produce_requested_data done [09:51:18]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227306,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [09:51:18]process_action_free close_receipt [09:51:18]json_value_free [09:51:18]json_value_free done [09:51:18]process_json_proto returns [09:51:18]Send response to host [09:51:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227306,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [09:51:18]free response buf [09:51:18]execute_script done [09:51:18]execute_script returns [09:51:18]free content buf [09:51:18]Sock 9.Close socket [09:51:18]Sock 9.Thread stoped [09:51:18]OFD Sender: No OFD packet to send [09:51:23]OFD Sender: No OFD packet to send [09:51:28]OFD Sender: No OFD packet to send [09:51:33]OFD Sender: No OFD packet to send [09:51:38]OFD Sender: No OFD packet to send [09:51:43]OFD Sender: No OFD packet to send [09:51:48]OFD Sender: No OFD packet to send [09:51:53]OFD Sender: No OFD packet to send [09:51:58]OFD Sender: No OFD packet to send [09:52:03]OFD Sender: No OFD packet to send [09:52:08]OFD Sender: No OFD packet to send [09:52:13]OFD Sender: No OFD packet to send [09:52:18]OFD Sender: No OFD packet to send [09:52:23]OFD Sender: No OFD packet to send [09:52:28]OFD Sender: No OFD packet to send [09:52:33]OFD Sender: No OFD packet to send [09:52:38]OFD Sender: No OFD packet to send [09:52:43]OFD Sender: No OFD packet to send [09:52:48]OFD Sender: No OFD packet to send [09:52:53]OFD Sender: No OFD packet to send [09:52:58]OFD Sender: No OFD packet to send [09:53:00]accept exits with 8 [09:53:00]New connection [09:53:00]New thread 3066965348 created [09:53:00]Thread 3066821988 joined [09:53:00]Waiting for new connection... [09:53:00] Sock 8.Parse request [09:53:00]Sock 8.Check first char [09:53:00]Sock 8.First char is OK [09:53:00]request: POST /json_proto HTTP/1.0 [09:53:00]Method: POST [09:53:00]URL: /json_proto [09:53:00]Method is POST - this is cgi request [09:53:00]url: /json_proto [09:53:00]query_string will be loaded in cgi processing [09:53:00]execute_cgi json_proto POST (null) [09:53:00]execute_cgi path=json_proto method=POST [09:53:00]POST find Content-Length [09:53:00]Host: 172.17.44.195:8080 [09:53:00]Content-Length: 659 [09:53:00]Content-Type: application/json [09:53:00] [09:53:00]POST finish read [09:53:00]Found Content-Length = 659 [09:53:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962780", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 8.780, "sum" : 600.55, "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" ] } } [09:53:00]execute_script... [09:53:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962780", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 8.780, "sum" : 600.55, "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" ] } } [09:53:00]POST & json_proto [09:53:00]process_json_proto [09:53:00]json parsed OK: [09:53:00]protocol is kg_v1.0 [09:53:00]action value=close_receipt [09:53:00]process_action close_receipt [09:53:00]cmd_close_receipt [09:53:00]MH_GetDate [09:53:00]Write to MH i2c: F0 00 00 A8 42 D9 [09:53:00]Write i2c OK [09:53:00]MH_I2C_Read... [09:53:00]Read from MH i2c: F0 [09:53:00]MH_I2C_Read... [09:53:00]Read from MH i2c: F0 09 00 [09:53:00]MH_I2C_Read... [09:53:00]Read from MH i2c: F0 09 00 A8 42 00 00 D3 14 67 82 C9 CF 66 B0 [09:53:00]GetLastDocTimeStamp 1729417880 [09:53:00]current date 1729417984 [09:53:00]FM_GetShiftState [09:53:00]SAM_PROTO_GetShiftState [09:53:00]wFMCommunicate request_size=4 [09:53:00]MH_SAM_APDU [09:53:00]CAPDU: 80 13 01 00 [09:53:00]Write to MH i2c: E2 08 00 A9 42 80 13 01 00 00 00 00 00 68 [09:53:00]Write i2c OK [09:53:00]MH_I2C_Read... [09:53:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:00]Read from MH i2c: E2 [09:53:00]MH_I2C_Read... [09:53:00]Read from MH i2c: E2 0E 00 [09:53:00]MH_I2C_Read... [09:53:00]Read from MH i2c: E2 0E 00 A9 42 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 82 [09:53:00]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:53:00]wFMCommunicate OK [09:53:00]SAM_PROTO_GetShiftState done [09:53:00]FM_GetShiftState done [09:53:00]opened in 1729383750 [09:53:00]opened+sec_in_day 1729470150 [09:53:00]quantity*price = 60055 [09:53:00]sum+1 = 60056 [09:53:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 155 20.10.2024 09:53 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227307 ФПД: 222830827228071 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T095304&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227307&fm=222830827228071&tin=02508201610067®Number=0000000000091685&sum=60000 [09:53:01]StoreToDocumentArchive [09:53:01]shift 533 fd 227307 [09:53:01]save to /storage/0533/doc_00227307 [09:53:01]save last doc name /storage/0533/doc_00227307 to /storage/kkm_last_doc_name [09:53:01]save OK [09:53:01]Clear old archive folders... [09:53:01]ProcessDocumentItem done err = 0, tmpTLVsize=244 [09:53:01]tlvbuf is 00668A70 [09:53:01]SAM_PROTO_ClearQueue [09:53:01]wFMCommunicate request_size=4 [09:53:01]MH_SAM_APDU [09:53:01]CAPDU: 80 09 00 00 [09:53:01]Write to MH i2c: E2 08 00 B6 42 80 09 00 00 00 00 00 00 6A [09:53:01]Write i2c OK [09:53:01]MH_I2C_Read... [09:53:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:53:01]Read from MH i2c: E2 [09:53:01]MH_I2C_Read... [09:53:01]Read from MH i2c: E2 03 00 [09:53:01]MH_I2C_Read... [09:53:01]Read from MH i2c: E2 03 00 B6 42 00 90 00 6C [09:53:01]RAPDU: 90 00 [09:53:01]wFMCommunicate OK [09:53:01]SAM_PROTO_ClearQueue done [09:53:01]KKMCreateOFDPacket [09:53:01]OFDProtocolAddRootSTLVToBuf [09:53:01]FM_MakeSignedData [09:53:01]FM_MakeSignedData [09:53:01]SAM_PROTO_SignData [09:53:01]wFMCommunicate request_size=4 [09:53:01]MH_SAM_APDU [09:53:01]CAPDU: 80 0D 01 02 [09:53:01]Write to MH i2c: E2 08 00 B7 42 80 0D 01 02 00 00 00 00 72 [09:53:01]Write i2c OK [09:53:01]MH_I2C_Read... [09:53:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:53:01]Read from MH i2c: E2 [09:53:01]MH_I2C_Read... [09:53:01]Read from MH i2c: E2 03 00 [09:53:01]MH_I2C_Read... [09:53:01]Read from MH i2c: E2 03 00 B7 42 00 90 00 6D [09:53:01]RAPDU: 90 00 [09:53:01]wFMCommunicate OK [09:53:01]wFMCommunicate request_size=253 [09:53:01]MH_SAM_APDU [09:53:01]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 00 D3 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EB 77 03 00 35 04 06 00 CA A9 D8 4D 4B A7 [09:53:01]Write to MH i2c: E2 00 01 B8 42 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 00 D3 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EB 77 03 00 35 04 06 00 CA A9 D8 4D 4B A7 00 00 8C [09:53:01]Write i2c OK [09:53:01]MH_I2C_Read... [09:53:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:01]Read from MH i2c: E2 [09:53:01]MH_I2C_Read... [09:53:01]Read from MH i2c: E2 03 00 [09:53:01]MH_I2C_Read... [09:53:01]Read from MH i2c: E2 03 00 B8 42 00 90 00 6E [09:53:01]RAPDU: 90 00 [09:53:01]wFMCommunicate OK [09:53:01]wFMCommunicate request_size=4 [09:53:01]MH_SAM_APDU [09:53:01]CAPDU: 80 0D 03 02 [09:53:01]Write to MH i2c: E2 08 00 B9 42 80 0D 03 02 00 00 00 00 76 [09:53:01]Write i2c OK [09:53:01]MH_I2C_Read... [09:53:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:53:01]Read from MH i2c: E2 [09:53:01]MH_I2C_Read... [09:53:01]Read from MH i2c: E2 0B 00 [09:53:01]MH_I2C_Read... [09:53:01]Read from MH i2c: E2 0B 00 B9 42 00 E7 97 4E B1 42 CE A7 59 90 00 04 [09:53:01]RAPDU: E7 97 4E B1 42 CE A7 59 90 00 [09:53:01]wFMCommunicate OK [09:53:01]SAM_PROTO_SignData done [09:53:01]FM_MakeSignedData done [09:53:01]CreateOFDProtocolMessage [09:53:01]wFMCommunicate request_size=4 [09:53:01]MH_SAM_APDU [09:53:01]CAPDU: 80 11 00 00 [09:53:01]Write to MH i2c: E2 08 00 BA 42 80 11 00 00 00 00 00 00 76 [09:53:01]Write i2c OK [09:53:01]MH_I2C_Read... [09:53:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:01]Read from MH i2c: E2 [09:53:01]MH_I2C_Read... [09:53:01]Read from MH i2c: E2 17 00 [09:53:01]MH_I2C_Read... [09:53:01]Read from MH i2c: E2 17 00 BA 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 CD [09:53:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:53:01]wFMCommunicate OK [09:53:01]CreateOFDProtocolMessage done [09:53:01]OFDSenderStorePacket 227307 [09:53:01]StoreOFDPacket docnum=227307 [09:53:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 4F AA 00 01 31 F3 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 00 D3 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EB 77 03 00 35 04 06 00 CA A9 D8 4D 4B A7 E7 97 4E B1 42 CE A7 59 [09:53:01]CheckFolder [09:53:01]dirname=/storage/ofd_packets [09:53:01]CheckFolder done [09:53:01]ProducePacketName [09:53:01]name=ofd_packets/00227307 [09:53:01]NVStorageSaveData ofd_packets/00227307 [09:53:01]File name is /storage/ofd_packets/00227307 [09:53:01]Write 294 bytes [09:53:01]NVStorageSaveData done [09:53:01]OFDSenderStorePacket done [09:53:01]KKMCreateOFDPacket done [09:53:01]NVStorageSaveData kkm_last_timestamp [09:53:01]File name is /storage/kkm_last_timestamp [09:53:01]Write 4 bytes [09:53:01]NVStorageSaveData done [09:53:01]ExternCall_PrintAddStr [09:53:01]wPrintStart [09:53:01]Write to MH i2c: 01 00 00 BB 42 FD [09:53:01]Write i2c OK [09:53:01]MH_I2C_Read... [09:53:01]Read from MH i2c: 01 [09:53:01]MH_I2C_Read... [09:53:01]Read from MH i2c: 01 07 00 [09:53:01]MH_I2C_Read... [09:53:01]Read from MH i2c: 01 07 00 BB 42 00 00 00 00 00 FF 0F 12 [09:53:01]RasterBufferAndPrint [09:53:01]line Счет N : (1)1962780 [09:53:01]line ИНН: 02508201610067 [09:53:01]line Контрольно-Кассовый Чек [09:53:01]line ПРОДАЖА [09:53:01]line ТРК (МРК, ГНК) : 32 [09:53:01]line Товар: 2710124130 [09:53:01]line SU-92 [09:53:01]line 8.780 * 68.40 [09:53:01]line = 600.55 [09:53:01]line НДС 12% НСП 1% [09:53:01]line > о реализуемом товаре [09:53:01]line ОКРУГЛЕНИЕ: -0.55 [09:53:01]line ИТОГО: 600.00 [09:53:01]line Внесено: 600.00 [09:53:01]line СДАЧА: 0.00 [09:53:01]line НСП 1% : 5.31 [09:53:01]line НДС 12% : 63.77 [09:53:01]line Наличными: 600.00 [09:53:01]line Безнал.: 0.00 [09:53:01]line Место: АЗС № 133 "Партнер Нефть" [09:53:01]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:53:01]line СНО: Общий режим [09:53:01]line Чек 155 20.10.2024 09:53 [09:53:01]line Смена: 533 ФФД: 1.0 [09:53:01]line ЗНМ: 0300000091 [09:53:01]line РНМ: 0000000000091685 [09:53:01]line Версия ККМ: 001 [09:53:01]line ФМ: 0000000000871839 [09:53:01]line ФД: 227307 [09:53:01]line ФПД: 222830827228071 [09:53:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T095304&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227307&fm=222830827228071&tin=02508201610067®Number=0000000000091685&sum=60000 [09:53:02]OFD Sender: Processing packet 227307 [packets to send 38, broken 37] [09:53:02]ProducePacketName [09:53:02]name=ofd_packets/00227307 [09:53:02]OFD Sender: To server: pG, [09:53:02]CommunicateWithHost lk.salyk.kg:30040 [09:53:02]ConnectInit lk.salyk.kg [09:53:02]written 0, free lines is 4095 [09:53:02]Connected sock=10 [09:53:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 4F AA 00 01 31 F3 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 00 D3 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EB 77 03 00 35 04 06 00 CA A9 D8 4D 4B A7 E7 97 4E B1 42 CE A7 59 [09:53:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 2D 82 47 00 B2 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EB 77 03 00 F4 03 04 00 FF 7D 14 67 B6 04 01 00 00 0C 30 87 65 FA B8 30 0D [09:53:02]CommunicateWithHost err = 0 [09:53:02]CheckOFDResponse [09:53:02]1017 (14) - 77093643461234 [09:53:02]1041 (16) - 0000000000871839 [09:53:02]1040 (4) - 227307 [09:53:02]1012 (4) - 20.10.2024 03:50 [09:53:02]1206 (1) - 0 [09:53:02]OFD Sender: Remove packet 227307 [09:53:02]ProducePacketName [09:53:02]name=ofd_packets/00227307 [09:53:02]NVStorageDeleteData [09:53:02]Write to MH i2c: 01 00 00 E5 42 27 [09:53:02]Write i2c OK [09:53:02]MH_I2C_Read... [09:53:02]Read from MH i2c: 01 [09:53:02]MH_I2C_Read... [09:53:02]Read from MH i2c: 01 07 00 [09:53:02]MH_I2C_Read... [09:53:02]Read from MH i2c: 01 07 00 E5 42 00 00 00 00 00 FF 0C 39 [09:53:02]RasterBufferAndPrint [09:53:02]line [09:53:02]line [09:53:02]line [09:53:02]line [09:53:02]line [09:53:02]written 0, free lines is 3333 [09:53:02]process_action close_receipt done [09:53:02]requested_data is exist [09:53:02]produce_requested_data [09:53:02]requested_item fm.sn is exist - process it [09:53:02]wFMCommunicate request_size=4 [09:53:02]MH_SAM_APDU [09:53:02]CAPDU: 80 11 00 00 [09:53:02]Write to MH i2c: E2 08 00 EC 42 80 11 00 00 00 00 00 00 A8 [09:53:02]Write i2c OK [09:53:02]MH_I2C_Read... [09:53:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:02]Read from MH i2c: E2 [09:53:02]MH_I2C_Read... [09:53:02]Read from MH i2c: E2 17 00 [09:53:02]MH_I2C_Read... [09:53:02]Read from MH i2c: E2 17 00 EC 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 FF [09:53:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:53:02]wFMCommunicate OK [09:53:02]requested_item fd.num is exist - process it [09:53:02]SAM_PROTO_GetFieldsCounters [09:53:02]wFMCommunicate request_size=4 [09:53:02]MH_SAM_APDU [09:53:02]CAPDU: 80 13 00 00 [09:53:02]Write to MH i2c: E2 08 00 ED 42 80 13 00 00 00 00 00 00 AB [09:53:02]Write i2c OK [09:53:02]MH_I2C_Read... [09:53:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:53:02]Read from MH i2c: E2 [09:53:02]MH_I2C_Read... [09:53:02]Read from MH i2c: E2 62 00 [09:53:02]MH_I2C_Read... [09:53:02]Read from MH i2c: E2 62 00 ED 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 EB 77 03 00 0E 04 04 00 15 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 21 [09: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 EB 77 03 00 0E 04 04 00 15 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 [09:53:02]wFMCommunicate OK [09:53:02]SAM_PROTO_GetFieldsCounters done [09:53:02]requested_item shift.num is exist - process it [09:53:02]requested_item shift.opened is exist - process it [09:53:02]req_shift_opened [09:53:02]FM_GetShiftState [09:53:02]SAM_PROTO_GetShiftState [09:53:02]wFMCommunicate request_size=4 [09:53:02]MH_SAM_APDU [09:53:02]CAPDU: 80 13 01 00 [09:53:02]Write to MH i2c: E2 08 00 EE 42 80 13 01 00 00 00 00 00 AD [09:53:02]Write i2c OK [09:53:02]MH_I2C_Read... [09:53:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:02]Read from MH i2c: E2 [09:53:02]MH_I2C_Read... [09:53:02]Read from MH i2c: E2 0E 00 [09:53:02]MH_I2C_Read... [09:53:02]Read from MH i2c: E2 0E 00 EE 42 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 C7 [09:53:02]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:53:02]wFMCommunicate OK [09:53:02]SAM_PROTO_GetShiftState done [09:53:02]FM_GetShiftState done [09:53:02]req_shift_opened done [09:53:02]requested_item shift.open_date is exist - process it [09:53:02]req_shift_open_date [09:53:02]req_shift_open_date done [09:53:02]produce_requested_data done [09:53:02]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227307,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [09:53:02]process_action_free close_receipt [09:53:02]json_value_free [09:53:02]json_value_free done [09:53:02]process_json_proto returns [09:53:02]Send response to host [09:53:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227307,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [09:53:02]free response buf [09:53:02]execute_script done [09:53:02]execute_script returns [09:53:02]free content buf [09:53:02]Sock 8.Close socket [09:53:02]Sock 8.Thread stoped [09:53:03]OFD Sender: No OFD packet to send [09:53:08]OFD Sender: No OFD packet to send [09:53:13]OFD Sender: No OFD packet to send [09:53:18]OFD Sender: No OFD packet to send [09:53:23]OFD Sender: No OFD packet to send [09:53:28]OFD Sender: No OFD packet to send [09:53:33]OFD Sender: No OFD packet to send [09:53:38]OFD Sender: No OFD packet to send [09:53:43]OFD Sender: No OFD packet to send [09:53:48]OFD Sender: No OFD packet to send [09:53:53]OFD Sender: No OFD packet to send [09:53:53]accept exits with 9 [09:53:53]New connection [09:53:53]New thread 3066821988 created [09:53:53]Thread 3066965348 joined [09:53:53]Waiting for new connection... [09:53:53] Sock 9.Parse request [09:53:53]Sock 9.Check first char [09:53:53]Sock 9.First char is OK [09:53:53]request: POST /json_proto HTTP/1.0 [09:53:53]Method: POST [09:53:53]URL: /json_proto [09:53:53]Method is POST - this is cgi request [09:53:53]url: /json_proto [09:53:53]query_string will be loaded in cgi processing [09:53:53]execute_cgi json_proto POST (null) [09:53:53]execute_cgi path=json_proto method=POST [09:53:53]POST find Content-Length [09:53:53]Host: 172.17.44.195:8080 [09:53:53]Content-Length: 683 [09:53:53]Content-Type: application/json [09:53:53] [09:53:53]POST finish read [09:53:53]Found Content-Length = 683 [09:53:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962781", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:53]execute_script... [09:53:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962781", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:53]POST & json_proto [09:53:53]process_json_proto [09:53:53]json parsed OK: [09:53:53]protocol is kg_v1.0 [09:53:53]action value=close_receipt [09:53:53]process_action close_receipt [09:53:53]cmd_close_receipt [09:53:53]MH_GetDate [09:53:53]Write to MH i2c: F0 00 00 EF 42 20 [09:53:53]Write i2c OK [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: F0 [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: F0 09 00 [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: F0 09 00 EF 42 00 35 D3 14 67 82 C9 CF 66 2C [09:53:53]GetLastDocTimeStamp 1729417984 [09:53:53]current date 1729418037 [09:53:53]FM_GetShiftState [09:53:53]SAM_PROTO_GetShiftState [09:53:53]wFMCommunicate request_size=4 [09:53:53]MH_SAM_APDU [09:53:53]CAPDU: 80 13 01 00 [09:53:53]Write to MH i2c: E2 08 00 F0 42 80 13 01 00 00 00 00 00 AF [09:53:53]Write i2c OK [09:53:53]MH_I2C_Read... [09:53:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:53]Read from MH i2c: E2 [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: E2 0E 00 [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: E2 0E 00 F0 42 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 C9 [09:53:53]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:53:53]wFMCommunicate OK [09:53:53]SAM_PROTO_GetShiftState done [09:53:53]FM_GetShiftState done [09:53:53]opened in 1729383750 [09:53:53]opened+sec_in_day 1729470150 [09:53:53]quantity*price = 100015 [09:53:53]sum+1 = 100017 [09:53:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 156 20.10.2024 09:53 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227308 ФПД: 39249796140664 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T095357&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227308&fm=39249796140664&tin=02508201610067®Number=0000000000091685&sum=100000 [09:53:54]StoreToDocumentArchive [09:53:54]shift 533 fd 227308 [09:53:54]save to /storage/0533/doc_00227308 [09:53:54]save last doc name /storage/0533/doc_00227308 to /storage/kkm_last_doc_name [09:53:54]save OK [09:53:54]Clear old archive folders... [09:53:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:53:54]tlvbuf is 004E3D40 [09:53:54]SAM_PROTO_ClearQueue [09:53:54]wFMCommunicate request_size=4 [09:53:54]MH_SAM_APDU [09:53:54]CAPDU: 80 09 00 00 [09:53:54]Write to MH i2c: E2 08 00 FD 42 80 09 00 00 00 00 00 00 B1 [09:53:54]Write i2c OK [09:53:54]MH_I2C_Read... [09:53:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:53:54]Read from MH i2c: E2 [09:53:54]MH_I2C_Read... [09:53:54]Read from MH i2c: E2 03 00 [09:53:54]MH_I2C_Read... [09:53:54]Read from MH i2c: E2 03 00 FD 42 00 90 00 B3 [09:53:54]RAPDU: 90 00 [09:53:54]wFMCommunicate OK [09:53:54]SAM_PROTO_ClearQueue done [09:53:54]KKMCreateOFDPacket [09:53:54]OFDProtocolAddRootSTLVToBuf [09:53:54]FM_MakeSignedData [09:53:54]FM_MakeSignedData [09:53:54]SAM_PROTO_SignData [09:53:54]wFMCommunicate request_size=4 [09:53:54]MH_SAM_APDU [09:53:54]CAPDU: 80 0D 01 02 [09:53:54]Write to MH i2c: E2 08 00 FE 42 80 0D 01 02 00 00 00 00 B9 [09:53:54]Write i2c OK [09:53:54]MH_I2C_Read... [09:53:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:53:54]Read from MH i2c: E2 [09:53:54]MH_I2C_Read... [09:53:54]Read from MH i2c: E2 03 00 [09:53:54]MH_I2C_Read... [09:53:54]Read from MH i2c: E2 03 00 FE 42 00 90 00 B4 [09:53:54]RAPDU: 90 00 [09:53:54]wFMCommunicate OK [09:53:54]wFMCommunicate request_size=255 [09:53:54]MH_SAM_APDU [09:53:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 35 D3 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EC 77 03 00 35 04 06 00 23 [09:53:54]Write to MH i2c: E2 02 01 FF 42 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 35 D3 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EC 77 03 00 35 04 06 00 23 00 00 09 [09:53:54]Write i2c OK [09:53:54]MH_I2C_Read... [09:53:54]Read from MH i2c: E2 [09:53:54]MH_I2C_Read... [09:53:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:54]Read from MH i2c: E2 03 00 [09:53:54]MH_I2C_Read... [09:53:54]Read from MH i2c: E2 03 00 FF 42 00 90 00 B5 [09:53:54]RAPDU: 90 00 [09:53:54]wFMCommunicate OK [09:53:54]wFMCommunicate request_size=10 [09:53:54]MH_SAM_APDU [09:53:54]CAPDU: 80 0D 02 02 05 B2 8E 28 0E 78 [09:53:54]Write to MH i2c: E2 0D 00 00 43 80 0D 02 02 05 00 B2 8E 28 0E 78 00 00 B5 [09:53:54]Write i2c OK [09:53:54]MH_I2C_Read... [09:53:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:54]Read from MH i2c: E2 [09:53:54]MH_I2C_Read... [09:53:54]Read from MH i2c: E2 03 00 [09:53:54]MH_I2C_Read... [09:53:54]Read from MH i2c: E2 03 00 00 43 00 90 00 B7 [09:53:54]RAPDU: 90 00 [09:53:54]wFMCommunicate OK [09:53:54]wFMCommunicate request_size=4 [09:53:54]MH_SAM_APDU [09:53:54]CAPDU: 80 0D 03 02 [09:53:54]Write to MH i2c: E2 08 00 01 43 80 0D 03 02 00 00 00 00 BF [09:53:54]Write i2c OK [09:53:54]MH_I2C_Read... [09:53:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:53:55]Read from MH i2c: E2 [09:53:55]MH_I2C_Read... [09:53:55]Read from MH i2c: E2 0B 00 [09:53:55]MH_I2C_Read... [09:53:55]Read from MH i2c: E2 0B 00 01 43 00 D3 87 7E 8C 30 19 C6 62 90 00 95 [09:53:55]RAPDU: D3 87 7E 8C 30 19 C6 62 90 00 [09:53:55]wFMCommunicate OK [09:53:55]SAM_PROTO_SignData done [09:53:55]FM_MakeSignedData done [09:53:55]CreateOFDProtocolMessage [09:53:55]wFMCommunicate request_size=4 [09:53:55]MH_SAM_APDU [09:53:55]CAPDU: 80 11 00 00 [09:53:55]Write to MH i2c: E2 08 00 02 43 80 11 00 00 00 00 00 00 BF [09:53:55]Write i2c OK [09:53:55]MH_I2C_Read... [09:53:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:55]Read from MH i2c: E2 [09:53:55]MH_I2C_Read... [09:53:55]Read from MH i2c: E2 17 00 [09:53:55]MH_I2C_Read... [09:53:55]Read from MH i2c: E2 17 00 02 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 16 [09:53:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:53:55]wFMCommunicate OK [09:53:55]CreateOFDProtocolMessage done [09:53:55]OFDSenderStorePacket 227308 [09:53:55]StoreOFDPacket docnum=227308 [09:53:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 3C 81 07 01 DE E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 35 D3 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EC 77 03 00 35 04 06 00 23 B2 8E 28 0E 78 D3 87 7E 8C 30 19 C6 62 [09:53:55]CheckFolder [09:53:55]dirname=/storage/ofd_packets [09:53:55]CheckFolder done [09:53:55]ProducePacketName [09:53:55]name=ofd_packets/00227308 [09:53:55]NVStorageSaveData ofd_packets/00227308 [09:53:55]File name is /storage/ofd_packets/00227308 [09:53:55]Write 301 bytes [09:53:55]NVStorageSaveData done [09:53:55]OFDSenderStorePacket done [09:53:55]KKMCreateOFDPacket done [09:53:55]NVStorageSaveData kkm_last_timestamp [09:53:55]File name is /storage/kkm_last_timestamp [09:53:55]Write 4 bytes [09:53:55]NVStorageSaveData done [09:53:55]ExternCall_PrintAddStr [09:53:55]wPrintStart [09:53:55]Write to MH i2c: 01 00 00 03 43 46 [09:53:55]Write i2c OK [09:53:55]MH_I2C_Read... [09:53:55]Read from MH i2c: 01 [09:53:55]MH_I2C_Read... [09:53:55]Read from MH i2c: 01 07 00 [09:53:55]MH_I2C_Read... [09:53:55]Read from MH i2c: 01 07 00 03 43 00 00 00 00 00 FF 0F 5B [09:53:55]RasterBufferAndPrint [09:53:55]line Счет N : (1)1962781 [09:53:55]line ИНН: 02508201610067 [09:53:55]line Контрольно-Кассовый Чек [09:53:55]line ПРОДАЖА [09:53:55]line ТРК (МРК, ГНК) : 43 [09:53:55]line Товар: 2710124130 [09:53:55]line Аи-92-К-5 [09:53:55]line 14.950 * 66.90 [09:53:55]line = 1000.16 [09:53:55]line НДС 12% НСП 1% [09:53:55]line > о реализуемом товаре [09:53:55]line ОКРУГЛЕНИЕ: -0.16 [09:53:55]line ИТОГО: 1000.00 [09:53:55]line Внесено: 1000.00 [09:53:55]line СДАЧА: 0.00 [09:53:55]line НСП 1% : 8.85 [09:53:55]line НДС 12% : 106.21 [09:53:55]line Наличными: 1000.00 [09:53:55]line Безнал.: 0.00 [09:53:55]line Место: АЗС № 133 "Партнер Нефть" [09:53:55]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:53:55]line СНО: Общий режим [09:53:55]line Чек 156 20.10.2024 09:53 [09:53:55]line Смена: 533 ФФД: 1.0 [09:53:55]line ЗНМ: 0300000091 [09:53:55]line РНМ: 0000000000091685 [09:53:55]line Версия ККМ: 001 [09:53:55]line ФМ: 0000000000871839 [09:53:55]line ФД: 227308 [09:53:55]line ФПД: 39249796140664 [09:53:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T095357&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227308&fm=39249796140664&tin=02508201610067®Number=0000000000091685&sum=100000 [09:53:55]OFD Sender: Processing packet 227308 [packets to send 38, broken 37] [09:53:55]ProducePacketName [09:53:55]name=ofd_packets/00227308 [09:53:55]OFD Sender: To server: pG, [09:53:55]CommunicateWithHost lk.salyk.kg:30040 [09:53:55]ConnectInit lk.salyk.kg [09:53:55]written 0, free lines is 4095 [09:53:55]Connected sock=10 [09:53:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 3C 81 07 01 DE E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 35 D3 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EC 77 03 00 35 04 06 00 23 B2 8E 28 0E 78 D3 87 7E 8C 30 19 C6 62 [09:53:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 D8 A5 47 00 ED 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 33 39 10 04 04 00 EC 77 03 00 F4 03 04 00 34 7E 14 67 B6 04 01 00 00 DD 6C 67 C4 35 76 0C 4F [09:53:55]CommunicateWithHost err = 0 [09:53:55]CheckOFDResponse [09:53:55]1017 (14) - 77093643461234 [09:53:55]1041 (16) - 0000000000871839 [09:53:55]1040 (4) - 227308 [09:53:55]1012 (4) - 20.10.2024 03:51 [09:53:55]1206 (1) - 0 [09:53:55]OFD Sender: Remove packet 227308 [09:53:55]ProducePacketName [09:53:55]name=ofd_packets/00227308 [09:53:55]NVStorageDeleteData [09:53:55]Write to MH i2c: 01 00 00 2D 43 70 [09:53:55]Write i2c OK [09:53:55]MH_I2C_Read... [09:53:55]Read from MH i2c: 01 [09:53:55]MH_I2C_Read... [09:53:55]Read from MH i2c: 01 07 00 [09:53:55]MH_I2C_Read... [09:53:55]Read from MH i2c: 01 07 00 2D 43 00 00 00 00 00 05 0D 89 [09:53:55]RasterBufferAndPrint [09:53:55]line [09:53:55]line [09:53:55]line [09:53:55]line [09:53:55]line [09:53:55]written 0, free lines is 3339 [09:53:55]process_action close_receipt done [09:53:55]requested_data is exist [09:53:55]produce_requested_data [09:53:55]requested_item fm.sn is exist - process it [09:53:55]wFMCommunicate request_size=4 [09:53:55]MH_SAM_APDU [09:53:55]CAPDU: 80 11 00 00 [09:53:55]Write to MH i2c: E2 08 00 34 43 80 11 00 00 00 00 00 00 F1 [09:53:55]Write i2c OK [09:53:55]MH_I2C_Read... [09:53:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:55]Read from MH i2c: E2 [09:53:55]MH_I2C_Read... [09:53:55]Read from MH i2c: E2 17 00 [09:53:55]MH_I2C_Read... [09:53:55]Read from MH i2c: E2 17 00 34 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 48 [09:53:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:53:55]wFMCommunicate OK [09:53:55]requested_item fd.num is exist - process it [09:53:55]SAM_PROTO_GetFieldsCounters [09:53:55]wFMCommunicate request_size=4 [09:53:55]MH_SAM_APDU [09:53:55]CAPDU: 80 13 00 00 [09:53:55]Write to MH i2c: E2 08 00 35 43 80 13 00 00 00 00 00 00 F4 [09:53:55]Write i2c OK [09:53:55]MH_I2C_Read... [09:53:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:53:56]Read from MH i2c: E2 [09:53:56]MH_I2C_Read... [09:53:56]Read from MH i2c: E2 62 00 [09:53:56]MH_I2C_Read... [09:53:56]Read from MH i2c: E2 62 00 35 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 EC 77 03 00 0E 04 04 00 15 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 6E [09:53: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 EC 77 03 00 0E 04 04 00 15 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 [09:53:56]wFMCommunicate OK [09:53:56]SAM_PROTO_GetFieldsCounters done [09:53:56]requested_item shift.num is exist - process it [09:53:56]requested_item shift.opened is exist - process it [09:53:56]req_shift_opened [09:53:56]FM_GetShiftState [09:53:56]SAM_PROTO_GetShiftState [09:53:56]wFMCommunicate request_size=4 [09:53:56]MH_SAM_APDU [09:53:56]CAPDU: 80 13 01 00 [09:53:56]Write to MH i2c: E2 08 00 36 43 80 13 01 00 00 00 00 00 F6 [09:53:56]Write i2c OK [09:53:56]MH_I2C_Read... [09:53:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:56]Read from MH i2c: E2 [09:53:56]MH_I2C_Read... [09:53:56]Read from MH i2c: E2 0E 00 [09:53:56]MH_I2C_Read... [09:53:56]Read from MH i2c: E2 0E 00 36 43 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 10 [09:53:56]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:53:56]wFMCommunicate OK [09:53:56]SAM_PROTO_GetShiftState done [09:53:56]FM_GetShiftState done [09:53:56]req_shift_opened done [09:53:56]requested_item shift.open_date is exist - process it [09:53:56]req_shift_open_date [09:53:56]req_shift_open_date done [09:53:56]produce_requested_data done [09:53:56]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227308,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [09:53:56]process_action_free close_receipt [09:53:56]json_value_free [09:53:56]json_value_free done [09:53:56]process_json_proto returns [09:53:56]Send response to host [09:53:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227308,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [09:53:56]free response buf [09:53:56]execute_script done [09:53:56]execute_script returns [09:53:56]free content buf [09:53:56]Sock 9.Close socket [09:53:56]Sock 9.Thread stoped [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:38]accept exits with 8 [09:54:38]New connection [09:54:38]New thread 3066965348 created [09:54:38]Thread 3066821988 joined [09:54:38]Waiting for new connection... [09:54:38] Sock 8.Parse request [09:54:38]Sock 8.Check first char [09:54:38]Sock 8.First char is OK [09:54:38]request: POST /json_proto HTTP/1.0 [09:54:38]Method: POST [09:54:38]URL: /json_proto [09:54:38]Method is POST - this is cgi request [09:54:38]url: /json_proto [09:54:38]query_string will be loaded in cgi processing [09:54:38]execute_cgi json_proto POST (null) [09:54:38]execute_cgi path=json_proto method=POST [09:54:38]POST find Content-Length [09:54:38]Host: 172.17.44.195:8080 [09:54:38]Content-Length: 683 [09:54:38]Content-Type: application/json [09:54:38] [09:54:38]POST finish read [09:54:38]Found Content-Length = 683 [09:54:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962782", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:54:38]execute_script... [09:54:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962782", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:54:38]POST & json_proto [09:54:38]process_json_proto [09:54:38]json parsed OK: [09:54:38]protocol is kg_v1.0 [09:54:38]action value=close_receipt [09:54:38]process_action close_receipt [09:54:38]cmd_close_receipt [09:54:38]MH_GetDate [09:54:38]Write to MH i2c: F0 00 00 37 43 69 [09:54:38]Write i2c OK [09:54:38]MH_I2C_Read... [09:54:38]Read from MH i2c: F0 [09:54:38]MH_I2C_Read... [09:54:38]Read from MH i2c: F0 09 00 [09:54:38]MH_I2C_Read... [09:54:38]Read from MH i2c: F0 09 00 37 43 00 62 D3 14 67 82 C9 CF 66 A2 [09:54:38]GetLastDocTimeStamp 1729418037 [09:54:38]current date 1729418082 [09:54:38]FM_GetShiftState [09:54:38]SAM_PROTO_GetShiftState [09:54:38]wFMCommunicate request_size=4 [09:54:38]MH_SAM_APDU [09:54:38]CAPDU: 80 13 01 00 [09:54:38]Write to MH i2c: E2 08 00 38 43 80 13 01 00 00 00 00 00 F8 [09:54:38]Write i2c OK [09:54:38]MH_I2C_Read... [09:54:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:38]Read from MH i2c: E2 [09:54:38]MH_I2C_Read... [09:54:38]Read from MH i2c: E2 0E 00 [09:54:38]MH_I2C_Read... [09:54:38]Read from MH i2c: E2 0E 00 38 43 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 12 [09:54:38]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:54:38]wFMCommunicate OK [09:54:38]SAM_PROTO_GetShiftState done [09:54:38]FM_GetShiftState done [09:54:38]opened in 1729383750 [09:54:38]opened+sec_in_day 1729470150 [09:54:38]quantity*price = 100021 [09:54:38]sum+1 = 100023 [09:54:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 157 20.10.2024 09:54 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227309 ФПД: 271138115844367 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T095442&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227309&fm=271138115844367&tin=02508201610067®Number=0000000000091685&sum=100000 [09:54:39]StoreToDocumentArchive [09:54:39]shift 533 fd 227309 [09:54:39]save to /storage/0533/doc_00227309 [09:54:39]save last doc name /storage/0533/doc_00227309 to /storage/kkm_last_doc_name [09:54:39]save OK [09:54:39]Clear old archive folders... [09:54:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:54:39]tlvbuf is 00541630 [09:54:39]SAM_PROTO_ClearQueue [09:54:39]wFMCommunicate request_size=4 [09:54:39]MH_SAM_APDU [09:54:39]CAPDU: 80 09 00 00 [09:54:39]Write to MH i2c: E2 08 00 45 43 80 09 00 00 00 00 00 00 FA [09:54:39]Write i2c OK [09:54:39]MH_I2C_Read... [09:54:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:54:39]Read from MH i2c: E2 [09:54:39]MH_I2C_Read... [09:54:39]Read from MH i2c: E2 03 00 [09:54:39]MH_I2C_Read... [09:54:39]Read from MH i2c: E2 03 00 45 43 00 90 00 FC [09:54:39]RAPDU: 90 00 [09:54:39]wFMCommunicate OK [09:54:39]SAM_PROTO_ClearQueue done [09:54:39]KKMCreateOFDPacket [09:54:39]OFDProtocolAddRootSTLVToBuf [09:54:39]FM_MakeSignedData [09:54:39]FM_MakeSignedData [09:54:39]SAM_PROTO_SignData [09:54:39]wFMCommunicate request_size=4 [09:54:39]MH_SAM_APDU [09:54:39]CAPDU: 80 0D 01 02 [09:54:39]Write to MH i2c: E2 08 00 46 43 80 0D 01 02 00 00 00 00 02 [09:54:39]Write i2c OK [09:54:39]MH_I2C_Read... [09:54:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:54:39]Read from MH i2c: E2 [09:54:39]MH_I2C_Read... [09:54:39]Read from MH i2c: E2 03 00 [09:54:39]MH_I2C_Read... [09:54:39]Read from MH i2c: E2 03 00 46 43 00 90 00 FD [09:54:39]RAPDU: 90 00 [09:54:39]wFMCommunicate OK [09:54:39]wFMCommunicate request_size=255 [09:54:39]MH_SAM_APDU [09:54:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 62 D3 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 ED 77 03 00 35 04 06 00 F6 [09:54:39]Write to MH i2c: E2 02 01 47 43 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 62 D3 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 ED 77 03 00 35 04 06 00 F6 00 00 77 [09:54:39]Write i2c OK [09:54:39]MH_I2C_Read... [09:54:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:40]Read from MH i2c: E2 [09:54:40]MH_I2C_Read... [09:54:40]Read from MH i2c: E2 03 00 [09:54:40]MH_I2C_Read... [09:54:40]Read from MH i2c: E2 03 00 47 43 00 90 00 FE [09:54:40]RAPDU: 90 00 [09:54:40]wFMCommunicate OK [09:54:40]wFMCommunicate request_size=10 [09:54:40]MH_SAM_APDU [09:54:40]CAPDU: 80 0D 02 02 05 99 43 14 79 0F [09:54:40]Write to MH i2c: E2 0D 00 48 43 80 0D 02 02 05 00 99 43 14 79 0F 00 00 87 [09:54:40]Write i2c OK [09:54:40]MH_I2C_Read... [09:54:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:40]Read from MH i2c: E2 [09:54:40]MH_I2C_Read... [09:54:40]Read from MH i2c: E2 03 00 [09:54:40]MH_I2C_Read... [09:54:40]Read from MH i2c: E2 03 00 48 43 00 90 00 FF [09:54:40]RAPDU: 90 00 [09:54:40]wFMCommunicate OK [09:54:40]wFMCommunicate request_size=4 [09:54:40]MH_SAM_APDU [09:54:40]CAPDU: 80 0D 03 02 [09:54:40]Write to MH i2c: E2 08 00 49 43 80 0D 03 02 00 00 00 00 07 [09:54:40]Write i2c OK [09:54:40]MH_I2C_Read... [09:54:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:54:40]Read from MH i2c: E2 [09:54:40]MH_I2C_Read... [09:54:40]Read from MH i2c: E2 0B 00 [09:54:40]MH_I2C_Read... [09:54:40]Read from MH i2c: E2 0B 00 49 43 00 FC 1D E1 34 81 5B FE FB 90 00 0B [09:54:40]RAPDU: FC 1D E1 34 81 5B FE FB 90 00 [09:54:40]wFMCommunicate OK [09:54:40]SAM_PROTO_SignData done [09:54:40]FM_MakeSignedData done [09:54:40]CreateOFDProtocolMessage [09:54:40]wFMCommunicate request_size=4 [09:54:40]MH_SAM_APDU [09:54:40]CAPDU: 80 11 00 00 [09:54:40]Write to MH i2c: E2 08 00 4A 43 80 11 00 00 00 00 00 00 07 [09:54:40]Write i2c OK [09:54:40]MH_I2C_Read... [09:54:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:40]Read from MH i2c: E2 [09:54:40]MH_I2C_Read... [09:54:40]Read from MH i2c: E2 17 00 [09:54:40]MH_I2C_Read... [09:54:40]Read from MH i2c: E2 17 00 4A 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 5E [09:54:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:54:40]wFMCommunicate OK [09:54:40]CreateOFDProtocolMessage done [09:54:40]OFDSenderStorePacket 227309 [09:54:40]StoreOFDPacket docnum=227309 [09:54:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 5C 8E 07 01 3A C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 62 D3 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 ED 77 03 00 35 04 06 00 F6 99 43 14 79 0F FC 1D E1 34 81 5B FE FB [09:54:40]CheckFolder [09:54:40]dirname=/storage/ofd_packets [09:54:40]CheckFolder done [09:54:40]ProducePacketName [09:54:40]name=ofd_packets/00227309 [09:54:40]NVStorageSaveData ofd_packets/00227309 [09:54:40]File name is /storage/ofd_packets/00227309 [09:54:40]Write 301 bytes [09:54:40]NVStorageSaveData done [09:54:40]OFDSenderStorePacket done [09:54:40]KKMCreateOFDPacket done [09:54:40]NVStorageSaveData kkm_last_timestamp [09:54:40]File name is /storage/kkm_last_timestamp [09:54:40]Write 4 bytes [09:54:40]NVStorageSaveData done [09:54:40]ExternCall_PrintAddStr [09:54:40]wPrintStart [09:54:40]Write to MH i2c: 01 00 00 4B 43 8E [09:54:40]OFD Sender: Processing packet 227309 [packets to send 38, broken 37] [09:54:40]ProducePacketName [09:54:40]name=ofd_packets/00227309 [09:54:40]OFD Sender: To server: pG, [09:54:40]CommunicateWithHost lk.salyk.kg:30040 [09:54:40]ConnectInit lk.salyk.kg [09:54:40]Write i2c OK [09:54:40]MH_I2C_Read... [09:54:40]Read from MH i2c: 01 [09:54:40]MH_I2C_Read... [09:54:40]Read from MH i2c: 01 07 00 [09:54:40]MH_I2C_Read... [09:54:40]Read from MH i2c: 01 07 00 4B 43 00 00 00 00 00 FF 0F A3 [09:54:40]RasterBufferAndPrint [09:54:40]line Счет N : (1)1962782 [09:54:40]line ИНН: 02508201610067 [09:54:40]line Контрольно-Кассовый Чек [09:54:40]line ПРОДАЖА [09:54:40]line ТРК (МРК, ГНК) : 54 [09:54:40]line Товар: 2710124500 [09:54:40]line Аи-95-К-5 [09:54:40]line 13.480 * 74.20 [09:54:40]line = 1000.22 [09:54:40]line НДС 12% НСП 1% [09:54:40]line > о реализуемом товаре [09:54:40]line ОКРУГЛЕНИЕ: -0.22 [09:54:40]line ИТОГО: 1000.00 [09:54:40]line Внесено: 1000.00 [09:54:40]line СДАЧА: 0.00 [09:54:40]line НСП 1% : 8.85 [09:54:40]line НДС 12% : 106.22 [09:54:40]line Наличными: 1000.00 [09:54:40]line Безнал.: 0.00 [09:54:40]line Место: АЗС № 133 "Партнер Нефть" [09:54:40]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:54:40]line СНО: Общий режим [09:54:40]line Чек 157 20.10.2024 09:54 [09:54:40]line Смена: 533 ФФД: 1.0 [09:54:40]line ЗНМ: 0300000091 [09:54:40]line РНМ: 0000000000091685 [09:54:40]line Версия ККМ: 001 [09:54:40]line ФМ: 0000000000871839 [09:54:40]line ФД: 227309 [09:54:40]line ФПД: 271138115844367 [09:54:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T095442&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227309&fm=271138115844367&tin=02508201610067®Number=0000000000091685&sum=100000 [09:54:40]Connected sock=10 [09:54:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 5C 8E 07 01 3A C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 62 D3 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 ED 77 03 00 35 04 06 00 F6 99 43 14 79 0F FC 1D E1 34 81 5B FE FB [09:54:40]written 0, free lines is 4095 [09:54:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 76 1A 47 00 98 E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 ED 77 03 00 F4 03 04 00 62 7E 14 67 B6 04 01 00 00 DC 42 36 5A 48 D2 61 EF [09:54:40]CommunicateWithHost err = 0 [09:54:40]CheckOFDResponse [09:54:40]1017 (14) - 77093643461234 [09:54:40]1041 (16) - 0000000000871839 [09:54:40]1040 (4) - 227309 [09:54:40]1012 (4) - 20.10.2024 03:52 [09:54:40]1206 (1) - 0 [09:54:40]OFD Sender: Remove packet 227309 [09:54:40]ProducePacketName [09:54:40]name=ofd_packets/00227309 [09:54:40]NVStorageDeleteData [09:54:41]Write to MH i2c: 01 00 00 75 43 B8 [09:54:41]Write i2c OK [09:54:41]MH_I2C_Read... [09:54:41]Read from MH i2c: 01 [09:54:41]MH_I2C_Read... [09:54:41]Read from MH i2c: 01 07 00 [09:54:41]MH_I2C_Read... [09:54:41]Read from MH i2c: 01 07 00 75 43 00 00 00 00 00 0D 0D D9 [09:54:41]RasterBufferAndPrint [09:54:41]line [09:54:41]line [09:54:41]line [09:54:41]line [09:54:41]line [09:54:41]written 0, free lines is 3350 [09:54:41]process_action close_receipt done [09:54:41]requested_data is exist [09:54:41]produce_requested_data [09:54:41]requested_item fm.sn is exist - process it [09:54:41]wFMCommunicate request_size=4 [09:54:41]MH_SAM_APDU [09:54:41]CAPDU: 80 11 00 00 [09:54:41]Write to MH i2c: E2 08 00 7C 43 80 11 00 00 00 00 00 00 39 [09:54:41]Write i2c OK [09:54:41]MH_I2C_Read... [09:54:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:41]Read from MH i2c: E2 [09:54:41]MH_I2C_Read... [09:54:41]Read from MH i2c: E2 17 00 [09:54:41]MH_I2C_Read... [09:54:41]Read from MH i2c: E2 17 00 7C 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 90 [09:54:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:54:41]wFMCommunicate OK [09:54:41]requested_item fd.num is exist - process it [09:54:41]SAM_PROTO_GetFieldsCounters [09:54:41]wFMCommunicate request_size=4 [09:54:41]MH_SAM_APDU [09:54:41]CAPDU: 80 13 00 00 [09:54:41]Write to MH i2c: E2 08 00 7D 43 80 13 00 00 00 00 00 00 3C [09:54:41]Write i2c OK [09:54:41]MH_I2C_Read... [09:54:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:54:41]Read from MH i2c: E2 [09:54:41]MH_I2C_Read... [09:54:41]Read from MH i2c: E2 62 00 [09:54:41]MH_I2C_Read... [09:54:41]Read from MH i2c: E2 62 00 7D 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 ED 77 03 00 0E 04 04 00 15 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 BA [09:54:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 ED 77 03 00 0E 04 04 00 15 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 [09:54:41]wFMCommunicate OK [09:54:41]SAM_PROTO_GetFieldsCounters done [09:54:41]requested_item shift.num is exist - process it [09:54:41]requested_item shift.opened is exist - process it [09:54:41]req_shift_opened [09:54:41]FM_GetShiftState [09:54:41]SAM_PROTO_GetShiftState [09:54:41]wFMCommunicate request_size=4 [09:54:41]MH_SAM_APDU [09:54:41]CAPDU: 80 13 01 00 [09:54:41]Write to MH i2c: E2 08 00 7E 43 80 13 01 00 00 00 00 00 3E [09:54:41]OFD Sender: No OFD packet to send [09:54:41]Write i2c OK [09:54:41]MH_I2C_Read... [09:54:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:41]Read from MH i2c: E2 [09:54:41]MH_I2C_Read... [09:54:41]Read from MH i2c: E2 0E 00 [09:54:41]MH_I2C_Read... [09:54:41]Read from MH i2c: E2 0E 00 7E 43 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 58 [09:54:41]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:54:41]wFMCommunicate OK [09:54:41]SAM_PROTO_GetShiftState done [09:54:41]FM_GetShiftState done [09:54:41]req_shift_opened done [09:54:41]requested_item shift.open_date is exist - process it [09:54:41]req_shift_open_date [09:54:41]req_shift_open_date done [09:54:41]produce_requested_data done [09:54:41]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227309,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [09:54:41]process_action_free close_receipt [09:54:41]json_value_free [09:54:41]json_value_free done [09:54:41]process_json_proto returns [09:54:41]Send response to host [09:54:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227309,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [09:54:41]free response buf [09:54:41]execute_script done [09:54:41]execute_script returns [09:54:41]free content buf [09:54:41]Sock 8.Close socket [09:54:41]Sock 8.Thread stoped [09:54:46]OFD Sender: No OFD packet to send [09:54:51]OFD Sender: No OFD packet to send [09:54:56]OFD Sender: No OFD packet to send [09:55:01]OFD Sender: No OFD packet to send [09:55:06]OFD Sender: No OFD packet to send [09:55:11]OFD Sender: No OFD packet to send [09:55:16]accept exits with 9 [09:55:16]New connection [09:55:16]New thread 3066821988 created [09:55:16]Thread 3066965348 joined [09:55:16]Waiting for new connection... [09:55:16] Sock 9.Parse request [09:55:16]Sock 9.Check first char [09:55:16]Sock 9.First char is OK [09:55:16]request: POST /json_proto HTTP/1.0 [09:55:16]Method: POST [09:55:16]URL: /json_proto [09:55:16]Method is POST - this is cgi request [09:55:16]url: /json_proto [09:55:16]query_string will be loaded in cgi processing [09:55:16]execute_cgi json_proto POST (null) [09:55:16]execute_cgi path=json_proto method=POST [09:55:16]POST find Content-Length [09:55:16]Host: 172.17.44.195:8080 [09:55:16]Content-Length: 678 [09:55:16]Content-Type: application/json [09:55:16] [09:55:16]POST finish read [09:55:16]Found Content-Length = 678 [09:55:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962783", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:16]execute_script... [09:55:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962783", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:16]POST & json_proto [09:55:16]process_json_proto [09:55:16]json parsed OK: [09:55:16]protocol is kg_v1.0 [09:55:16]action value=close_receipt [09:55:16]process_action close_receipt [09:55:16]cmd_close_receipt [09:55:16]MH_GetDate [09:55:16]Write to MH i2c: F0 00 00 7F 43 B1 [09:55:16]Write i2c OK [09:55:16]MH_I2C_Read... [09:55:16]Read from MH i2c: F0 [09:55:16]MH_I2C_Read... [09:55:16]Read from MH i2c: F0 09 00 [09:55:16]MH_I2C_Read... [09:55:16]Read from MH i2c: F0 09 00 7F 43 00 88 D3 14 67 82 C9 CF 66 10 [09:55:16]GetLastDocTimeStamp 1729418082 [09:55:16]current date 1729418120 [09:55:16]FM_GetShiftState [09:55:16]SAM_PROTO_GetShiftState [09:55:16]wFMCommunicate request_size=4 [09:55:16]MH_SAM_APDU [09:55:16]CAPDU: 80 13 01 00 [09:55:16]Write to MH i2c: E2 08 00 80 43 80 13 01 00 00 00 00 00 40 [09:55:16]Write i2c OK [09:55:16]MH_I2C_Read... [09:55:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:16]Read from MH i2c: E2 [09:55:16]MH_I2C_Read... [09:55:16]Read from MH i2c: E2 0E 00 [09:55:16]MH_I2C_Read... [09:55:16]Read from MH i2c: E2 0E 00 80 43 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 5A [09:55:16]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:55:16]wFMCommunicate OK [09:55:16]SAM_PROTO_GetShiftState done [09:55:16]FM_GetShiftState done [09:55:16]opened in 1729383750 [09:55:16]opened+sec_in_day 1729470150 [09:55:16]quantity*price = 50041 [09:55:16]sum+1 = 50042 [09:55:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 158 20.10.2024 09:55 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227310 ФПД: 160222263816272 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T095520&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227310&fm=160222263816272&tin=02508201610067®Number=0000000000091685&sum=50000 [09:55:17]StoreToDocumentArchive [09:55:17]shift 533 fd 227310 [09:55:17]save to /storage/0533/doc_00227310 [09:55:17]save last doc name /storage/0533/doc_00227310 to /storage/kkm_last_doc_name [09:55:17]save OK [09:55:17]Clear old archive folders... [09:55:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:55:17]tlvbuf is 004EEFC0 [09:55:17]SAM_PROTO_ClearQueue [09:55:17]wFMCommunicate request_size=4 [09:55:17]MH_SAM_APDU [09:55:17]CAPDU: 80 09 00 00 [09:55:17]Write to MH i2c: E2 08 00 8D 43 80 09 00 00 00 00 00 00 42 [09:55:17]Write i2c OK [09:55:17]MH_I2C_Read... [09:55:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:55:17]Read from MH i2c: E2 [09:55:17]MH_I2C_Read... [09:55:17]Read from MH i2c: E2 03 00 [09:55:17]MH_I2C_Read... [09:55:17]Read from MH i2c: E2 03 00 8D 43 00 90 00 44 [09:55:17]RAPDU: 90 00 [09:55:17]wFMCommunicate OK [09:55:17]SAM_PROTO_ClearQueue done [09:55:17]KKMCreateOFDPacket [09:55:17]OFDProtocolAddRootSTLVToBuf [09:55:17]FM_MakeSignedData [09:55:17]FM_MakeSignedData [09:55:17]SAM_PROTO_SignData [09:55:17]wFMCommunicate request_size=4 [09:55:17]MH_SAM_APDU [09:55:17]CAPDU: 80 0D 01 02 [09:55:17]Write to MH i2c: E2 08 00 8E 43 80 0D 01 02 00 00 00 00 4A [09:55:17]Write i2c OK [09:55:17]MH_I2C_Read... [09:55:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:55:17]Read from MH i2c: E2 [09:55:17]MH_I2C_Read... [09:55:17]Read from MH i2c: E2 03 00 [09:55:17]MH_I2C_Read... [09:55:17]Read from MH i2c: E2 03 00 8E 43 00 90 00 45 [09:55:17]RAPDU: 90 00 [09:55:17]wFMCommunicate OK [09:55:17]wFMCommunicate request_size=255 [09:55:17]MH_SAM_APDU [09:55:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 88 D3 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EE 77 03 00 35 04 06 00 91 [09:55:17]Write to MH i2c: E2 02 01 8F 43 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 88 D3 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EE 77 03 00 35 04 06 00 91 00 00 65 [09:55:17]Write i2c OK [09:55:17]MH_I2C_Read... [09:55:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:17]Read from MH i2c: E2 [09:55:17]MH_I2C_Read... [09:55:17]Read from MH i2c: E2 03 00 [09:55:17]MH_I2C_Read... [09:55:17]Read from MH i2c: E2 03 00 8F 43 00 90 00 46 [09:55:17]RAPDU: 90 00 [09:55:17]wFMCommunicate OK [09:55:17]wFMCommunicate request_size=10 [09:55:17]MH_SAM_APDU [09:55:17]CAPDU: 80 0D 02 02 05 B8 A7 1E B0 50 [09:55:17]Write to MH i2c: E2 0D 00 90 43 80 0D 02 02 05 00 B8 A7 1E B0 50 00 00 D4 [09:55:17]Write i2c OK [09:55:17]MH_I2C_Read... [09:55:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:17]Read from MH i2c: E2 [09:55:17]MH_I2C_Read... [09:55:17]Read from MH i2c: E2 03 00 [09:55:17]MH_I2C_Read... [09:55:17]Read from MH i2c: E2 03 00 90 43 00 90 00 47 [09:55:17]RAPDU: 90 00 [09:55:17]wFMCommunicate OK [09:55:17]wFMCommunicate request_size=4 [09:55:17]MH_SAM_APDU [09:55:17]CAPDU: 80 0D 03 02 [09:55:17]Write to MH i2c: E2 08 00 91 43 80 0D 03 02 00 00 00 00 4F [09:55:17]Write i2c OK [09:55:17]MH_I2C_Read... [09:55:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:55:17]Read from MH i2c: E2 [09:55:17]MH_I2C_Read... [09:55:17]Read from MH i2c: E2 0B 00 [09:55:17]MH_I2C_Read... [09:55:17]Read from MH i2c: E2 0B 00 91 43 00 9C E4 65 6F 9E 42 40 D8 90 00 9C [09:55:17]RAPDU: 9C E4 65 6F 9E 42 40 D8 90 00 [09:55:17]wFMCommunicate OK [09:55:17]SAM_PROTO_SignData done [09:55:17]FM_MakeSignedData done [09:55:17]CreateOFDProtocolMessage [09:55:17]wFMCommunicate request_size=4 [09:55:17]MH_SAM_APDU [09:55:17]CAPDU: 80 11 00 00 [09:55:17]Write to MH i2c: E2 08 00 92 43 80 11 00 00 00 00 00 00 4F [09:55:17]Write i2c OK [09:55:17]MH_I2C_Read... [09:55:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:17]Read from MH i2c: E2 [09:55:17]MH_I2C_Read... [09:55:17]Read from MH i2c: E2 17 00 [09:55:17]MH_I2C_Read... [09:55:17]Read from MH i2c: E2 17 00 92 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A6 [09:55:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:55:17]wFMCommunicate OK [09:55:17]CreateOFDProtocolMessage done [09:55:17]OFDSenderStorePacket 227310 [09:55:17]StoreOFDPacket docnum=227310 [09:55:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 07 89 07 01 52 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 88 D3 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EE 77 03 00 35 04 06 00 91 B8 A7 1E B0 50 9C E4 65 6F 9E 42 40 D8 [09:55:17]CheckFolder [09:55:17]dirname=/storage/ofd_packets [09:55:17]CheckFolder done [09:55:17]ProducePacketName [09:55:17]name=ofd_packets/00227310 [09:55:17]NVStorageSaveData ofd_packets/00227310 [09:55:17]File name is /storage/ofd_packets/00227310 [09:55:17]Write 301 bytes [09:55:17]NVStorageSaveData done [09:55:17]OFDSenderStorePacket done [09:55:17]KKMCreateOFDPacket done [09:55:17]NVStorageSaveData kkm_last_timestamp [09:55:17]File name is /storage/kkm_last_timestamp [09:55:17]Write 4 bytes [09:55:17]OFD Sender: Processing packet 227310 [packets to send 38, broken 37] [09:55:17]ProducePacketName [09:55:17]name=ofd_packets/00227310 [09:55:17]OFD Sender: To server: pG, [09:55:17]CommunicateWithHost lk.salyk.kg:30040 [09:55:17]ConnectInit lk.salyk.kg [09:55:17]NVStorageSaveData done [09:55:17]ExternCall_PrintAddStr [09:55:17]wPrintStart [09:55:17]Write to MH i2c: 01 00 00 93 43 D6 [09:55:17]Write i2c OK [09:55:17]MH_I2C_Read... [09:55:18]Read from MH i2c: 01 [09:55:18]MH_I2C_Read... [09:55:18]Read from MH i2c: 01 07 00 [09:55:18]MH_I2C_Read... [09:55:18]Read from MH i2c: 01 07 00 93 43 00 00 00 00 00 FF 0F EB [09:55:18]RasterBufferAndPrint [09:55:18]line Счет N : (1)1962783 [09:55:18]line ИНН: 02508201610067 [09:55:18]line Контрольно-Кассовый Чек [09:55:18]line ПРОДАЖА [09:55:18]line ТРК (МРК, ГНК) : 33 [09:55:18]line Товар: 2710124130 [09:55:18]line Аи-92-К-5 [09:55:18]line 7.480 * 66.90 [09:55:18]line = 500.41 [09:55:18]line НДС 12% НСП 1% [09:55:18]line > о реализуемом товаре [09:55:18]line ОКРУГЛЕНИЕ: -0.41 [09:55:18]line ИТОГО: 500.00 [09:55:18]line Внесено: 500.00 [09:55:18]line СДАЧА: 0.00 [09:55:18]line НСП 1% : 4.43 [09:55:18]line НДС 12% : 53.14 [09:55:18]line Наличными: 500.00 [09:55:18]line Безнал.: 0.00 [09:55:18]line Место: АЗС № 133 "Партнер Нефть" [09:55:18]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:55:18]line СНО: Общий режим [09:55:18]line Чек 158 20.10.2024 09:55 [09:55:18]line Смена: 533 ФФД: 1.0 [09:55:18]line ЗНМ: 0300000091 [09:55:18]line РНМ: 0000000000091685 [09:55:18]line Версия ККМ: 001 [09:55:18]line ФМ: 0000000000871839 [09:55:18]line ФД: 227310 [09:55:18]line ФПД: 160222263816272 [09:55:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T095520&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227310&fm=160222263816272&tin=02508201610067®Number=0000000000091685&sum=50000 [09:55:18]Connected sock=11 [09:55:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 07 89 07 01 52 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 88 D3 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EE 77 03 00 35 04 06 00 91 B8 A7 1E B0 50 9C E4 65 6F 9E 42 40 D8 [09:55:18]written 0, free lines is 4095 [09:55:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 C9 ED 47 00 FB 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EE 77 03 00 F4 03 04 00 87 7E 14 67 B6 04 01 00 00 D5 EC 5E B2 A8 EE 22 97 [09:55:18]CommunicateWithHost err = 0 [09:55:18]CheckOFDResponse [09:55:18]1017 (14) - 77093643461234 [09:55:18]1041 (16) - 0000000000871839 [09:55:18]1040 (4) - 227310 [09:55:18]1012 (4) - 20.10.2024 03:52 [09:55:18]1206 (1) - 0 [09:55:18]OFD Sender: Remove packet 227310 [09:55:18]ProducePacketName [09:55:18]name=ofd_packets/00227310 [09:55:18]NVStorageDeleteData [09:55:18]Write to MH i2c: 01 00 00 BD 43 00 [09:55:18]Write i2c OK [09:55:18]MH_I2C_Read... [09:55:18]Read from MH i2c: 01 [09:55:18]MH_I2C_Read... [09:55:18]Read from MH i2c: 01 07 00 [09:55:18]MH_I2C_Read... [09:55:18]Read from MH i2c: 01 07 00 BD 43 00 00 00 00 00 0F 0D 23 [09:55:18]RasterBufferAndPrint [09:55:18]line [09:55:18]line [09:55:18]line [09:55:18]line [09:55:18]line [09:55:18]written 0, free lines is 3349 [09:55:18]process_action close_receipt done [09:55:18]requested_data is exist [09:55:18]produce_requested_data [09:55:18]requested_item fm.sn is exist - process it [09:55:18]wFMCommunicate request_size=4 [09:55:18]MH_SAM_APDU [09:55:18]CAPDU: 80 11 00 00 [09:55:18]Write to MH i2c: E2 08 00 C4 43 80 11 00 00 00 00 00 00 81 [09:55:18]Write i2c OK [09:55:18]MH_I2C_Read... [09:55:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:18]Read from MH i2c: E2 [09:55:18]MH_I2C_Read... [09:55:18]Read from MH i2c: E2 17 00 [09:55:18]MH_I2C_Read... [09:55:18]Read from MH i2c: E2 17 00 C4 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D8 [09:55:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:55:18]wFMCommunicate OK [09:55:18]requested_item fd.num is exist - process it [09:55:18]SAM_PROTO_GetFieldsCounters [09:55:18]wFMCommunicate request_size=4 [09:55:18]MH_SAM_APDU [09:55:18]CAPDU: 80 13 00 00 [09:55:18]Write to MH i2c: E2 08 00 C5 43 80 13 00 00 00 00 00 00 84 [09:55:18]Write i2c OK [09:55:18]MH_I2C_Read... [09:55:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:55:19]Read from MH i2c: E2 [09:55:19]MH_I2C_Read... [09:55:19]Read from MH i2c: E2 62 00 [09:55:19]MH_I2C_Read... [09:55:19]Read from MH i2c: E2 62 00 C5 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 EE 77 03 00 0E 04 04 00 15 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 06 [09:55: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 EE 77 03 00 0E 04 04 00 15 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 [09:55:19]wFMCommunicate OK [09:55:19]SAM_PROTO_GetFieldsCounters done [09:55:19]requested_item shift.num is exist - process it [09:55:19]requested_item shift.opened is exist - process it [09:55:19]req_shift_opened [09:55:19]FM_GetShiftState [09:55:19]SAM_PROTO_GetShiftState [09:55:19]wFMCommunicate request_size=4 [09:55:19]MH_SAM_APDU [09:55:19]CAPDU: 80 13 01 00 [09:55:19]Write to MH i2c: E2 08 00 C6 43 80 13 01 00 00 00 00 00 86 [09:55:19]Write i2c OK [09:55:19]MH_I2C_Read... [09:55:19]OFD Sender: No OFD packet to send [09:55:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:19]Read from MH i2c: E2 [09:55:19]MH_I2C_Read... [09:55:19]Read from MH i2c: E2 0E 00 [09:55:19]MH_I2C_Read... [09:55:19]Read from MH i2c: E2 0E 00 C6 43 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 A0 [09:55:19]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:55:19]wFMCommunicate OK [09:55:19]SAM_PROTO_GetShiftState done [09:55:19]FM_GetShiftState done [09:55:19]req_shift_opened done [09:55:19]requested_item shift.open_date is exist - process it [09:55:19]req_shift_open_date [09:55:19]req_shift_open_date done [09:55:19]produce_requested_data done [09:55:19]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227310,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [09:55:19]process_action_free close_receipt [09:55:19]json_value_free [09:55:19]json_value_free done [09:55:19]process_json_proto returns [09:55:19]Send response to host [09:55:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227310,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [09:55:19]free response buf [09:55:19]execute_script done [09:55:19]execute_script returns [09:55:19]free content buf [09:55:19]Sock 9.Close socket [09:55:19]Sock 9.Thread stoped [09:55:24]OFD Sender: No OFD packet to send [09:55:29]OFD Sender: No OFD packet to send [09:55:34]OFD Sender: No OFD packet to send [09:55:39]OFD Sender: No OFD packet to send [09:55:44]OFD Sender: No OFD packet to send [09:55:49]OFD Sender: No OFD packet to send [09:55:54]OFD Sender: No OFD packet to send [09:55:59]OFD Sender: No OFD packet to send [09:56:04]OFD Sender: No OFD packet to send [09:56:09]OFD Sender: No OFD packet to send [09:56:14]OFD Sender: No OFD packet to send [09:56:19]OFD Sender: No OFD packet to send [09:56:24]OFD Sender: No OFD packet to send [09:56:29]OFD Sender: No OFD packet to send [09:56:34]OFD Sender: No OFD packet to send [09:56:39]OFD Sender: No OFD packet to send [09:56:44]OFD Sender: No OFD packet to send [09:56:49]OFD Sender: No OFD packet to send [09:56:54]OFD Sender: No OFD packet to send [09:56:59]OFD Sender: No OFD packet to send [09:57:04]OFD Sender: No OFD packet to send [09:57:09]OFD Sender: No OFD packet to send [09:57:14]OFD Sender: No OFD packet to send [09:57:15]accept exits with 8 [09:57:15]New connection [09:57:15]New thread 3066965348 created [09:57:15]Thread 3066821988 joined [09:57:15]Waiting for new connection... [09:57:15] Sock 8.Parse request [09:57:15]Sock 8.Check first char [09:57:15]Sock 8.First char is OK [09:57:15]request: POST /json_proto HTTP/1.0 [09:57:15]Method: POST [09:57:15]URL: /json_proto [09:57:15]Method is POST - this is cgi request [09:57:15]url: /json_proto [09:57:15]query_string will be loaded in cgi processing [09:57:15]execute_cgi json_proto POST (null) [09:57:15]execute_cgi path=json_proto method=POST [09:57:15]POST find Content-Length [09:57:15]Host: 172.17.44.195:8080 [09:57:15]Content-Length: 683 [09:57:15]Content-Type: application/json [09:57:15] [09:57:15]POST finish read [09:57:15]Found Content-Length = 683 [09:57:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962785", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:57:15]execute_script... [09:57: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)1962785", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:57:15]POST & json_proto [09:57:15]process_json_proto [09:57:15]json parsed OK: [09:57:15]protocol is kg_v1.0 [09:57:15]action value=close_receipt [09:57:15]process_action close_receipt [09:57:15]cmd_close_receipt [09:57:15]MH_GetDate [09:57:15]Write to MH i2c: F0 00 00 C7 43 F9 [09:57:15]Write i2c OK [09:57:15]MH_I2C_Read... [09:57:15]Read from MH i2c: F0 [09:57:15]MH_I2C_Read... [09:57:15]Read from MH i2c: F0 09 00 [09:57:15]MH_I2C_Read... [09:57:15]Read from MH i2c: F0 09 00 C7 43 00 FF D3 14 67 82 C9 CF 66 CF [09:57:15]GetLastDocTimeStamp 1729418120 [09:57:15]current date 1729418239 [09:57:15]FM_GetShiftState [09:57:15]SAM_PROTO_GetShiftState [09:57:15]wFMCommunicate request_size=4 [09:57:15]MH_SAM_APDU [09:57:15]CAPDU: 80 13 01 00 [09:57:15]Write to MH i2c: E2 08 00 C8 43 80 13 01 00 00 00 00 00 88 [09:57:15]Write i2c OK [09:57:15]MH_I2C_Read... [09:57:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:15]Read from MH i2c: E2 [09:57:15]MH_I2C_Read... [09:57:15]Read from MH i2c: E2 0E 00 [09:57:15]MH_I2C_Read... [09:57:15]Read from MH i2c: E2 0E 00 C8 43 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 A2 [09:57:15]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:57:15]wFMCommunicate OK [09:57:15]SAM_PROTO_GetShiftState done [09:57:15]FM_GetShiftState done [09:57:15]opened in 1729383750 [09:57:15]opened+sec_in_day 1729470150 [09:57:15]quantity*price = 100021 [09:57:15]sum+1 = 100023 [09:57:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 159 20.10.2024 09:57 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227311 ФПД: 114938595750675 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T095719&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227311&fm=114938595750675&tin=02508201610067®Number=0000000000091685&sum=100000 [09:57:16]StoreToDocumentArchive [09:57:16]shift 533 fd 227311 [09:57:16]save to /storage/0533/doc_00227311 [09:57:16]save last doc name /storage/0533/doc_00227311 to /storage/kkm_last_doc_name [09:57:16]save OK [09:57:16]Clear old archive folders... [09:57:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:57:16]tlvbuf is 004FDC30 [09:57:16]SAM_PROTO_ClearQueue [09:57:16]wFMCommunicate request_size=4 [09:57:16]MH_SAM_APDU [09:57:16]CAPDU: 80 09 00 00 [09:57:16]Write to MH i2c: E2 08 00 D5 43 80 09 00 00 00 00 00 00 8A [09:57:16]Write i2c OK [09:57:16]MH_I2C_Read... [09:57:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:57:16]Read from MH i2c: E2 [09:57:16]MH_I2C_Read... [09:57:16]Read from MH i2c: E2 03 00 [09:57:16]MH_I2C_Read... [09:57:16]Read from MH i2c: E2 03 00 D5 43 00 90 00 8C [09:57:16]RAPDU: 90 00 [09:57:16]wFMCommunicate OK [09:57:16]SAM_PROTO_ClearQueue done [09:57:16]KKMCreateOFDPacket [09:57:16]OFDProtocolAddRootSTLVToBuf [09:57:16]FM_MakeSignedData [09:57:16]FM_MakeSignedData [09:57:16]SAM_PROTO_SignData [09:57:16]wFMCommunicate request_size=4 [09:57:16]MH_SAM_APDU [09:57:16]CAPDU: 80 0D 01 02 [09:57:16]Write to MH i2c: E2 08 00 D6 43 80 0D 01 02 00 00 00 00 92 [09:57:16]Write i2c OK [09:57:16]MH_I2C_Read... [09:57:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:57:16]Read from MH i2c: E2 [09:57:16]MH_I2C_Read... [09:57:16]Read from MH i2c: E2 03 00 [09:57:16]MH_I2C_Read... [09:57:16]Read from MH i2c: E2 03 00 D6 43 00 90 00 8D [09:57:16]RAPDU: 90 00 [09:57:16]wFMCommunicate OK [09:57:16]wFMCommunicate request_size=255 [09:57:16]MH_SAM_APDU [09:57: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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 FF D3 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EF 77 03 00 35 04 06 00 68 [09:57:16]Write to MH i2c: E2 02 01 D7 43 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 FF D3 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EF 77 03 00 35 04 06 00 68 00 00 1A [09:57:16]Write i2c OK [09:57:16]MH_I2C_Read... [09:57:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:17]Read from MH i2c: E2 [09:57:17]MH_I2C_Read... [09:57:17]Read from MH i2c: E2 03 00 [09:57:17]MH_I2C_Read... [09:57:17]Read from MH i2c: E2 03 00 D7 43 00 90 00 8E [09:57:17]RAPDU: 90 00 [09:57:17]wFMCommunicate OK [09:57:17]wFMCommunicate request_size=10 [09:57:17]MH_SAM_APDU [09:57:17]CAPDU: 80 0D 02 02 05 89 3A 2B B3 13 [09:57:17]Write to MH i2c: E2 0D 00 D8 43 80 0D 02 02 05 00 89 3A 2B B3 13 00 00 53 [09:57:17]Write i2c OK [09:57:17]MH_I2C_Read... [09:57:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:17]Read from MH i2c: E2 [09:57:17]MH_I2C_Read... [09:57:17]Read from MH i2c: E2 03 00 [09:57:17]MH_I2C_Read... [09:57:17]Read from MH i2c: E2 03 00 D8 43 00 90 00 8F [09:57:17]RAPDU: 90 00 [09:57:17]wFMCommunicate OK [09:57:17]wFMCommunicate request_size=4 [09:57:17]MH_SAM_APDU [09:57:17]CAPDU: 80 0D 03 02 [09:57:17]Write to MH i2c: E2 08 00 D9 43 80 0D 03 02 00 00 00 00 97 [09:57:17]Write i2c OK [09:57:17]MH_I2C_Read... [09:57:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:57:17]Read from MH i2c: E2 [09:57:17]MH_I2C_Read... [09:57:17]Read from MH i2c: E2 0B 00 [09:57:17]MH_I2C_Read... [09:57:17]Read from MH i2c: E2 0B 00 D9 43 00 BC A9 5D 40 79 C3 6D D6 90 00 19 [09:57:17]RAPDU: BC A9 5D 40 79 C3 6D D6 90 00 [09:57:17]wFMCommunicate OK [09:57:17]SAM_PROTO_SignData done [09:57:17]FM_MakeSignedData done [09:57:17]CreateOFDProtocolMessage [09:57:17]wFMCommunicate request_size=4 [09:57:17]MH_SAM_APDU [09:57:17]CAPDU: 80 11 00 00 [09:57:17]Write to MH i2c: E2 08 00 DA 43 80 11 00 00 00 00 00 00 97 [09:57:17]Write i2c OK [09:57:17]MH_I2C_Read... [09:57:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:17]Read from MH i2c: E2 [09:57:17]MH_I2C_Read... [09:57:17]Read from MH i2c: E2 17 00 [09:57:17]MH_I2C_Read... [09:57:17]Read from MH i2c: E2 17 00 DA 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 EE [09:57:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:57:17]wFMCommunicate OK [09:57:17]CreateOFDProtocolMessage done [09:57:17]OFDSenderStorePacket 227311 [09:57:17]StoreOFDPacket docnum=227311 [09:57:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 E4 DD 07 01 90 E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 FF D3 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EF 77 03 00 35 04 06 00 68 89 3A 2B B3 13 BC A9 5D 40 79 C3 6D D6 [09:57:17]CheckFolder [09:57:17]dirname=/storage/ofd_packets [09:57:17]CheckFolder done [09:57:17]ProducePacketName [09:57:17]name=ofd_packets/00227311 [09:57:17]NVStorageSaveData ofd_packets/00227311 [09:57:17]File name is /storage/ofd_packets/00227311 [09:57:17]Write 301 bytes [09:57:17]NVStorageSaveData done [09:57:17]OFDSenderStorePacket done [09:57:17]KKMCreateOFDPacket done [09:57:17]NVStorageSaveData kkm_last_timestamp [09:57:17]File name is /storage/kkm_last_timestamp [09:57:17]Write 4 bytes [09:57:17]NVStorageSaveData done [09:57:17]ExternCall_PrintAddStr [09:57:17]wPrintStart [09:57:17]Write to MH i2c: 01 00 00 DB 43 1E [09:57:17]Write i2c OK [09:57:17]MH_I2C_Read... [09:57:17]Read from MH i2c: 01 [09:57:17]MH_I2C_Read... [09:57:17]Read from MH i2c: 01 07 00 [09:57:17]MH_I2C_Read... [09:57:17]Read from MH i2c: 01 07 00 DB 43 00 00 00 00 00 FF 0F 33 [09:57:17]RasterBufferAndPrint [09:57:17]line Счет N : (1)1962785 [09:57:17]line ИНН: 02508201610067 [09:57:17]line Контрольно-Кассовый Чек [09:57:17]line ПРОДАЖА [09:57:17]line ТРК (МРК, ГНК) : 54 [09:57:17]line Товар: 2710124500 [09:57:17]line Аи-95-К-5 [09:57:17]line 13.480 * 74.20 [09:57:17]line = 1000.22 [09:57:17]line НДС 12% НСП 1% [09:57:17]line > о реализуемом товаре [09:57:17]line ОКРУГЛЕНИЕ: -0.22 [09:57:17]line ИТОГО: 1000.00 [09:57:17]line Внесено: 1000.00 [09:57:17]line СДАЧА: 0.00 [09:57:17]line НСП 1% : 8.85 [09:57:17]line НДС 12% : 106.22 [09:57:17]line Наличными: 1000.00 [09:57:17]line Безнал.: 0.00 [09:57:17]line Место: АЗС № 133 "Партнер Нефть" [09:57:17]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:57:17]line СНО: Общий режим [09:57:17]line Чек 159 20.10.2024 09:57 [09:57:17]line Смена: 533 ФФД: 1.0 [09:57:17]line ЗНМ: 0300000091 [09:57:17]line РНМ: 0000000000091685 [09:57:17]line Версия ККМ: 001 [09:57:17]line ФМ: 0000000000871839 [09:57:17]line ФД: 227311 [09:57:17]line ФПД: 114938595750675 [09:57:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T095719&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227311&fm=114938595750675&tin=02508201610067®Number=0000000000091685&sum=100000 [09:57:17]OFD Sender: Processing packet 227311 [packets to send 38, broken 37] [09:57:17]ProducePacketName [09:57:17]name=ofd_packets/00227311 [09:57:17]OFD Sender: To server: pG, [09:57:17]CommunicateWithHost lk.salyk.kg:30040 [09:57:17]ConnectInit lk.salyk.kg [09:57:17]written 0, free lines is 4095 [09:57:17]Connected sock=10 [09: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 33 39 0F 01 00 00 E4 DD 07 01 90 E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 FF D3 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EF 77 03 00 35 04 06 00 68 89 3A 2B B3 13 BC A9 5D 40 79 C3 6D D6 [09: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 33 39 4F 00 00 00 C5 88 47 00 CB 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EF 77 03 00 F4 03 04 00 FF 7E 14 67 B6 04 01 00 00 D8 E6 96 FF 94 C8 00 79 [09:57:17]CommunicateWithHost err = 0 [09:57:17]CheckOFDResponse [09:57:17]1017 (14) - 77093643461234 [09:57:17]1041 (16) - 0000000000871839 [09:57:17]1040 (4) - 227311 [09:57:17]1012 (4) - 20.10.2024 03:54 [09:57:17]1206 (1) - 0 [09:57:17]OFD Sender: Remove packet 227311 [09:57:17]ProducePacketName [09:57:17]name=ofd_packets/00227311 [09:57:17]NVStorageDeleteData [09:57:18]Write to MH i2c: 01 00 00 05 44 49 [09:57:18]Write i2c OK [09:57:18]MH_I2C_Read... [09:57:18]Read from MH i2c: 01 [09:57:18]MH_I2C_Read... [09:57:18]Read from MH i2c: 01 07 00 [09:57:18]MH_I2C_Read... [09:57:18]Read from MH i2c: 01 07 00 05 44 00 00 00 00 00 0B 0D 68 [09:57:18]RasterBufferAndPrint [09:57:18]line [09:57:18]line [09:57:18]line [09:57:18]line [09:57:18]line [09:57:18]written 0, free lines is 3345 [09:57:18]process_action close_receipt done [09:57:18]requested_data is exist [09:57:18]produce_requested_data [09:57:18]requested_item fm.sn is exist - process it [09:57:18]wFMCommunicate request_size=4 [09:57:18]MH_SAM_APDU [09:57:18]CAPDU: 80 11 00 00 [09:57:18]Write to MH i2c: E2 08 00 0C 44 80 11 00 00 00 00 00 00 CA [09:57:18]Write i2c OK [09:57:18]MH_I2C_Read... [09:57:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:18]Read from MH i2c: E2 [09:57:18]MH_I2C_Read... [09:57:18]Read from MH i2c: E2 17 00 [09:57:18]MH_I2C_Read... [09:57:18]Read from MH i2c: E2 17 00 0C 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 21 [09:57:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:57:18]wFMCommunicate OK [09:57:18]requested_item fd.num is exist - process it [09:57:18]SAM_PROTO_GetFieldsCounters [09:57:18]wFMCommunicate request_size=4 [09:57:18]MH_SAM_APDU [09:57:18]CAPDU: 80 13 00 00 [09:57:18]Write to MH i2c: E2 08 00 0D 44 80 13 00 00 00 00 00 00 CD [09:57:18]Write i2c OK [09:57:18]MH_I2C_Read... [09:57:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:57:18]Read from MH i2c: E2 [09:57:18]MH_I2C_Read... [09:57:18]Read from MH i2c: E2 62 00 [09:57:18]MH_I2C_Read... [09:57:18]Read from MH i2c: E2 62 00 0D 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 EF 77 03 00 0E 04 04 00 15 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 53 [09: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 EF 77 03 00 0E 04 04 00 15 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 [09:57:18]wFMCommunicate OK [09:57:18]SAM_PROTO_GetFieldsCounters done [09:57:18]requested_item shift.num is exist - process it [09:57:18]requested_item shift.opened is exist - process it [09:57:18]req_shift_opened [09:57:18]FM_GetShiftState [09:57:18]SAM_PROTO_GetShiftState [09:57:18]wFMCommunicate request_size=4 [09:57:18]MH_SAM_APDU [09:57:18]CAPDU: 80 13 01 00 [09:57:18]Write to MH i2c: E2 08 00 0E 44 80 13 01 00 00 00 00 00 CF [09:57:18]Write i2c OK [09:57:18]MH_I2C_Read... [09:57:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:18]Read from MH i2c: E2 [09:57:18]MH_I2C_Read... [09:57:18]Read from MH i2c: E2 0E 00 [09:57:18]MH_I2C_Read... [09:57:18]Read from MH i2c: E2 0E 00 0E 44 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 E9 [09:57:18]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:57:18]wFMCommunicate OK [09:57:18]SAM_PROTO_GetShiftState done [09:57:18]FM_GetShiftState done [09:57:18]req_shift_opened done [09:57:18]requested_item shift.open_date is exist - process it [09:57:18]req_shift_open_date [09:57:18]req_shift_open_date done [09:57:18]produce_requested_data done [09:57:18]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227311,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [09:57:18]process_action_free close_receipt [09:57:18]json_value_free [09:57:18]json_value_free done [09:57:18]process_json_proto returns [09:57:18]Send response to host [09:57:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227311,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [09:57:18]free response buf [09:57:18]execute_script done [09:57:18]execute_script returns [09:57:18]free content buf [09:57:18]Sock 8.Close socket [09:57:18]Sock 8.Thread stoped [09:57:18]OFD Sender: No OFD packet to send [09:57:23]OFD Sender: No OFD packet to send [09:57:28]OFD Sender: No OFD packet to send [09:57:33]OFD Sender: No OFD packet to send [09:57:38]OFD Sender: No OFD packet to send [09:57:43]OFD Sender: No OFD packet to send [09:57:48]OFD Sender: No OFD packet to send [09:57:53]OFD Sender: No OFD packet to send [09:57:58]OFD Sender: No OFD packet to send [09:58:03]OFD Sender: No OFD packet to send [09:58:08]OFD Sender: No OFD packet to send [09:58:13]OFD Sender: No OFD packet to send [09:58:16]accept exits with 9 [09:58:16]New connection [09:58:16]New thread 3066821988 created [09:58:16]Thread 3066965348 joined [09:58:16]Waiting for new connection... [09:58:16] Sock 9.Parse request [09:58:16]Sock 9.Check first char [09:58:16]Sock 9.First char is OK [09:58:16]request: POST /json_proto HTTP/1.0 [09:58:16]Method: POST [09:58:16]URL: /json_proto [09:58:16]Method is POST - this is cgi request [09:58:16]url: /json_proto [09:58:16]query_string will be loaded in cgi processing [09:58:16]execute_cgi json_proto POST (null) [09:58:16]execute_cgi path=json_proto method=POST [09:58:16]POST find Content-Length [09:58:16]Host: 172.17.44.195:8080 [09:58:16]Content-Length: 679 [09:58:16]Content-Type: application/json [09:58:16] [09:58:16]POST finish read [09:58:16]Found Content-Length = 679 [09:58:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962786", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:16]execute_script... [09:58: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)1962786", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:16]POST & json_proto [09:58:16]process_json_proto [09:58:16]json parsed OK: [09:58:16]protocol is kg_v1.0 [09:58:16]action value=close_receipt [09:58:16]process_action close_receipt [09:58:16]cmd_close_receipt [09:58:16]MH_GetDate [09:58:16]Write to MH i2c: F0 00 00 0F 44 42 [09:58:16]Write i2c OK [09:58:16]MH_I2C_Read... [09:58:16]Read from MH i2c: F0 [09:58:16]MH_I2C_Read... [09:58:16]Read from MH i2c: F0 09 00 [09:58:16]MH_I2C_Read... [09:58:16]Read from MH i2c: F0 09 00 0F 44 00 3C D4 14 67 82 C9 CF 66 56 [09:58:16]GetLastDocTimeStamp 1729418239 [09:58:16]current date 1729418300 [09:58:16]FM_GetShiftState [09:58:16]SAM_PROTO_GetShiftState [09:58:16]wFMCommunicate request_size=4 [09:58:16]MH_SAM_APDU [09:58:16]CAPDU: 80 13 01 00 [09:58:16]Write to MH i2c: E2 08 00 10 44 80 13 01 00 00 00 00 00 D1 [09:58:16]Write i2c OK [09:58:16]MH_I2C_Read... [09:58:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:16]Read from MH i2c: E2 [09:58:16]MH_I2C_Read... [09:58:16]Read from MH i2c: E2 0E 00 [09:58:16]MH_I2C_Read... [09:58:16]Read from MH i2c: E2 0E 00 10 44 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 EB [09:58:16]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:58:16]wFMCommunicate OK [09:58:16]SAM_PROTO_GetShiftState done [09:58:16]FM_GetShiftState done [09:58:16]opened in 1729383750 [09:58:16]opened+sec_in_day 1729470150 [09:58:16]quantity*price = 70044 [09:58:16]sum+1 = 70045 [09:58:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 160 20.10.2024 09:58 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227312 ФПД: 224779720364834 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T095820&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227312&fm=224779720364834&tin=02508201610067®Number=0000000000091685&sum=70000 [09:58:17]StoreToDocumentArchive [09:58:17]shift 533 fd 227312 [09:58:17]save to /storage/0533/doc_00227312 [09:58:17]save last doc name /storage/0533/doc_00227312 to /storage/kkm_last_doc_name [09:58:17]save OK [09:58:17]Clear old archive folders... [09:58:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:58:17]tlvbuf is 004FD870 [09:58:17]SAM_PROTO_ClearQueue [09:58:17]wFMCommunicate request_size=4 [09:58:17]MH_SAM_APDU [09:58:17]CAPDU: 80 09 00 00 [09:58:17]Write to MH i2c: E2 08 00 1D 44 80 09 00 00 00 00 00 00 D3 [09:58:17]Write i2c OK [09:58:17]MH_I2C_Read... [09:58:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:58:17]Read from MH i2c: E2 [09:58:17]MH_I2C_Read... [09:58:17]Read from MH i2c: E2 03 00 [09:58:17]MH_I2C_Read... [09:58:17]Read from MH i2c: E2 03 00 1D 44 00 90 00 D5 [09:58:17]RAPDU: 90 00 [09:58:17]wFMCommunicate OK [09:58:17]SAM_PROTO_ClearQueue done [09:58:17]KKMCreateOFDPacket [09:58:17]OFDProtocolAddRootSTLVToBuf [09:58:17]FM_MakeSignedData [09:58:17]FM_MakeSignedData [09:58:17]SAM_PROTO_SignData [09:58:17]wFMCommunicate request_size=4 [09:58:17]MH_SAM_APDU [09:58:17]CAPDU: 80 0D 01 02 [09:58:17]Write to MH i2c: E2 08 00 1E 44 80 0D 01 02 00 00 00 00 DB [09:58:17]Write i2c OK [09:58:17]MH_I2C_Read... [09:58:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:58:17]Read from MH i2c: E2 [09:58:17]MH_I2C_Read... [09:58:17]Read from MH i2c: E2 03 00 [09:58:17]MH_I2C_Read... [09:58:17]Read from MH i2c: E2 03 00 1E 44 00 90 00 D6 [09:58:17]RAPDU: 90 00 [09:58:17]wFMCommunicate OK [09:58:17]wFMCommunicate request_size=255 [09:58:17]MH_SAM_APDU [09:58:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 3C D4 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F0 77 03 00 35 04 06 00 CC [09:58:17]Write to MH i2c: E2 02 01 1F 44 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 3C D4 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F0 77 03 00 35 04 06 00 CC 00 00 FA [09:58:17]Write i2c OK [09:58:17]MH_I2C_Read... [09:58:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:18]Read from MH i2c: E2 [09:58:18]MH_I2C_Read... [09:58:18]Read from MH i2c: E2 03 00 [09:58:18]MH_I2C_Read... [09:58:18]Read from MH i2c: E2 03 00 1F 44 00 90 00 D7 [09:58:18]RAPDU: 90 00 [09:58:18]wFMCommunicate OK [09:58:18]wFMCommunicate request_size=10 [09:58:18]MH_SAM_APDU [09:58:18]CAPDU: 80 0D 02 02 05 6F 9B 62 93 22 [09:58:18]Write to MH i2c: E2 0D 00 20 44 80 0D 02 02 05 00 6F 9B 62 93 22 00 00 09 [09:58:18]Write i2c OK [09:58:18]MH_I2C_Read... [09:58:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:18]Read from MH i2c: E2 [09:58:18]MH_I2C_Read... [09:58:18]Read from MH i2c: E2 03 00 [09:58:18]MH_I2C_Read... [09:58:18]Read from MH i2c: E2 03 00 20 44 00 90 00 D8 [09:58:18]RAPDU: 90 00 [09:58:18]wFMCommunicate OK [09:58:18]wFMCommunicate request_size=4 [09:58:18]MH_SAM_APDU [09:58:18]CAPDU: 80 0D 03 02 [09:58:18]Write to MH i2c: E2 08 00 21 44 80 0D 03 02 00 00 00 00 E0 [09:58:18]Write i2c OK [09:58:18]MH_I2C_Read... [09:58:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:58:18]Read from MH i2c: E2 [09:58:18]MH_I2C_Read... [09:58:18]Read from MH i2c: E2 0B 00 [09:58:18]MH_I2C_Read... [09:58:18]Read from MH i2c: E2 0B 00 21 44 00 A0 89 FF E4 7A 35 D2 DB 90 00 49 [09:58:18]RAPDU: A0 89 FF E4 7A 35 D2 DB 90 00 [09:58:18]wFMCommunicate OK [09:58:18]SAM_PROTO_SignData done [09:58:18]FM_MakeSignedData done [09:58:18]CreateOFDProtocolMessage [09:58:18]wFMCommunicate request_size=4 [09:58:18]MH_SAM_APDU [09:58:18]CAPDU: 80 11 00 00 [09:58:18]Write to MH i2c: E2 08 00 22 44 80 11 00 00 00 00 00 00 E0 [09:58:18]Write i2c OK [09:58:18]MH_I2C_Read... [09:58:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:18]Read from MH i2c: E2 [09:58:18]MH_I2C_Read... [09:58:18]Read from MH i2c: E2 17 00 [09:58:18]MH_I2C_Read... [09:58:18]Read from MH i2c: E2 17 00 22 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 37 [09:58:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:58:18]wFMCommunicate OK [09:58:18]CreateOFDProtocolMessage done [09:58:18]OFDSenderStorePacket 227312 [09:58:18]StoreOFDPacket docnum=227312 [09:58:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 0D 9B 07 01 13 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 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 3C D4 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F0 77 03 00 35 04 06 00 CC 6F 9B 62 93 22 A0 89 FF E4 7A 35 D2 DB [09:58:18]CheckFolder [09:58:18]dirname=/storage/ofd_packets [09:58:18]CheckFolder done [09:58:18]ProducePacketName [09:58:18]name=ofd_packets/00227312 [09:58:18]NVStorageSaveData ofd_packets/00227312 [09:58:18]File name is /storage/ofd_packets/00227312 [09:58:18]Write 301 bytes [09:58:18]NVStorageSaveData done [09:58:18]OFDSenderStorePacket done [09:58:18]KKMCreateOFDPacket done [09:58:18]NVStorageSaveData kkm_last_timestamp [09:58:18]File name is /storage/kkm_last_timestamp [09:58:18]Write 4 bytes [09:58:18]NVStorageSaveData done [09:58:18]ExternCall_PrintAddStr [09:58:18]wPrintStart [09:58:18]Write to MH i2c: 01 00 00 23 44 67 [09:58:18]Write i2c OK [09:58:18]MH_I2C_Read... [09:58:18]Read from MH i2c: 01 [09:58:18]MH_I2C_Read... [09:58:18]Read from MH i2c: 01 07 00 [09:58:18]MH_I2C_Read... [09:58:18]Read from MH i2c: 01 07 00 23 44 00 00 00 00 00 FF 0F 7C [09:58:18]RasterBufferAndPrint [09:58:18]line Счет N : (1)1962786 [09:58:18]line ИНН: 02508201610067 [09:58:18]line Контрольно-Кассовый Чек [09:58:18]line ПРОДАЖА [09:58:18]line ТРК (МРК, ГНК) : 33 [09:58:18]line Товар: 2710124130 [09:58:18]line Аи-92-К-5 [09:58:18]line 10.470 * 66.90 [09:58:18]line = 700.44 [09:58:18]line НДС 12% НСП 1% [09:58:18]line > о реализуемом товаре [09:58:18]line ОКРУГЛЕНИЕ: -0.44 [09:58:18]line ИТОГО: 700.00 [09:58:18]line Внесено: 700.00 [09:58:18]line СДАЧА: 0.00 [09:58:18]line НСП 1% : 6.20 [09:58:18]line НДС 12% : 74.38 [09:58:18]line Наличными: 700.00 [09:58:18]line Безнал.: 0.00 [09:58:18]line Место: АЗС № 133 "Партнер Нефть" [09:58:18]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:58:18]line СНО: Общий режим [09:58:18]line Чек 160 20.10.2024 09:58 [09:58:18]line Смена: 533 ФФД: 1.0 [09:58:18]line ЗНМ: 0300000091 [09:58:18]line РНМ: 0000000000091685 [09:58:18]line Версия ККМ: 001 [09:58:18]line ФМ: 0000000000871839 [09:58:18]line ФД: 227312 [09:58:18]line ФПД: 224779720364834 [09:58:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T095820&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227312&fm=224779720364834&tin=02508201610067®Number=0000000000091685&sum=70000 [09:58:18]written 0, free lines is 4095 [09:58:18]OFD Sender: Processing packet 227312 [packets to send 38, broken 37] [09:58:18]ProducePacketName [09:58:18]name=ofd_packets/00227312 [09:58:18]OFD Sender: To server: pG, [09:58:18]CommunicateWithHost lk.salyk.kg:30040 [09:58:18]ConnectInit lk.salyk.kg [09:58:18]Connected sock=10 [09:58: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 33 39 0F 01 00 00 0D 9B 07 01 13 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 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 3C D4 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F0 77 03 00 35 04 06 00 CC 6F 9B 62 93 22 A0 89 FF E4 7A 35 D2 DB [09:58:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 2C 3E 47 00 C0 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F0 77 03 00 F4 03 04 00 3B 7F 14 67 B6 04 01 00 00 DF 53 5E 53 37 42 BC 90 [09:58:18]CommunicateWithHost err = 0 [09:58:18]CheckOFDResponse [09:58:18]1017 (14) - 77093643461234 [09:58:18]1041 (16) - 0000000000871839 [09:58:18]1040 (4) - 227312 [09:58:18]1012 (4) - 20.10.2024 03:55 [09:58:18]1206 (1) - 0 [09:58:18]OFD Sender: Remove packet 227312 [09:58:18]ProducePacketName [09:58:18]name=ofd_packets/00227312 [09:58:18]NVStorageDeleteData [09:58:18]Write to MH i2c: 01 00 00 4D 44 91 [09:58:18]Write i2c OK [09:58:18]MH_I2C_Read... [09:58:18]Read from MH i2c: 01 [09:58:18]MH_I2C_Read... [09:58:18]Read from MH i2c: 01 07 00 [09:58:18]MH_I2C_Read... [09:58:18]Read from MH i2c: 01 07 00 4D 44 00 00 00 00 00 0A 0D AF [09:58:18]RasterBufferAndPrint [09:58:18]line [09:58:18]line [09:58:18]line [09:58:18]line [09:58:18]line [09:58:18]written 0, free lines is 3344 [09:58:18]process_action close_receipt done [09:58:18]requested_data is exist [09:58:18]produce_requested_data [09:58:18]requested_item fm.sn is exist - process it [09:58:18]wFMCommunicate request_size=4 [09:58:18]MH_SAM_APDU [09:58:18]CAPDU: 80 11 00 00 [09:58:18]Write to MH i2c: E2 08 00 54 44 80 11 00 00 00 00 00 00 12 [09:58:18]Write i2c OK [09:58:18]MH_I2C_Read... [09:58:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:18]Read from MH i2c: E2 [09:58:18]MH_I2C_Read... [09:58:18]Read from MH i2c: E2 17 00 [09:58:18]MH_I2C_Read... [09:58:18]Read from MH i2c: E2 17 00 54 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 69 [09:58:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:58:18]wFMCommunicate OK [09:58:18]requested_item fd.num is exist - process it [09:58:18]SAM_PROTO_GetFieldsCounters [09:58:18]wFMCommunicate request_size=4 [09:58:18]MH_SAM_APDU [09:58:18]CAPDU: 80 13 00 00 [09:58:18]Write to MH i2c: E2 08 00 55 44 80 13 00 00 00 00 00 00 15 [09:58:18]Write i2c OK [09:58:18]MH_I2C_Read... [09:58:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:58:19]Read from MH i2c: E2 [09:58:19]MH_I2C_Read... [09:58:19]Read from MH i2c: E2 62 00 [09:58:19]MH_I2C_Read... [09:58:19]Read from MH i2c: E2 62 00 55 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F0 77 03 00 0E 04 04 00 15 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 9F [09:58:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F0 77 03 00 0E 04 04 00 15 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 [09:58:19]wFMCommunicate OK [09:58:19]SAM_PROTO_GetFieldsCounters done [09:58:19]requested_item shift.num is exist - process it [09:58:19]requested_item shift.opened is exist - process it [09:58:19]req_shift_opened [09:58:19]FM_GetShiftState [09:58:19]SAM_PROTO_GetShiftState [09:58:19]wFMCommunicate request_size=4 [09:58:19]MH_SAM_APDU [09:58:19]CAPDU: 80 13 01 00 [09:58:19]Write to MH i2c: E2 08 00 56 44 80 13 01 00 00 00 00 00 17 [09:58:19]Write i2c OK [09:58:19]MH_I2C_Read... [09:58:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:19]Read from MH i2c: E2 [09:58:19]MH_I2C_Read... [09:58:19]Read from MH i2c: E2 0E 00 [09:58:19]MH_I2C_Read... [09:58:19]Read from MH i2c: E2 0E 00 56 44 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 31 [09:58:19]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:58:19]wFMCommunicate OK [09:58:19]SAM_PROTO_GetShiftState done [09:58:19]FM_GetShiftState done [09:58:19]req_shift_opened done [09:58:19]requested_item shift.open_date is exist - process it [09:58:19]req_shift_open_date [09:58:19]req_shift_open_date done [09:58:19]produce_requested_data done [09:58:19]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227312,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [09:58:19]process_action_free close_receipt [09:58:19]json_value_free [09:58:19]json_value_free done [09:58:19]process_json_proto returns [09:58:19]Send response to host [09:58:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227312,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [09:58:19]free response buf [09:58:19]execute_script done [09:58:19]execute_script returns [09:58:19]free content buf [09:58:19]Sock 9.Close socket [09:58:19]Sock 9.Thread stoped [09:58:19]OFD Sender: No OFD packet to send [09:58:24]OFD Sender: No OFD packet to send [09:58:29]OFD Sender: No OFD packet to send [09:58:34]OFD Sender: No OFD packet to send [09:58:39]OFD Sender: No OFD packet to send [09:58:42]accept exits with 8 [09:58:42]New connection [09:58:42]New thread 3066965348 created [09:58:42]Thread 3066821988 joined [09:58:42]Waiting for new connection... [09:58:42] Sock 8.Parse request [09:58:42]Sock 8.Check first char [09:58:42]Sock 8.First char is OK [09:58:42]request: POST /json_proto HTTP/1.0 [09:58:42]Method: POST [09:58:42]URL: /json_proto [09:58:42]Method is POST - this is cgi request [09:58:42]url: /json_proto [09:58:42]query_string will be loaded in cgi processing [09:58:42]execute_cgi json_proto POST (null) [09:58:42]execute_cgi path=json_proto method=POST [09:58:42]POST find Content-Length [09:58:42]Host: 172.17.44.195:8080 [09:58:42]Content-Length: 981 [09:58:42]Content-Type: application/json [09:58:42] [09:58:42]POST finish read [09:58:42]Found Content-Length = 981 [09:58:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962784", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 106.390, "sum" : 8000.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 133\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 106.39 \u0441\u043E\u043C", "deposit" : 8000.00, "total" : 8000.00, "payments": [ { "type": 0, "sum" : 8000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:42]execute_script... [09:58: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)1962784", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 106.390, "sum" : 8000.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 133\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 106.39 \u0441\u043E\u043C", "deposit" : 8000.00, "total" : 8000.00, "payments": [ { "type": 0, "sum" : 8000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:42]POST & json_proto [09:58:42]process_json_proto [09:58:42]json parsed OK: [09:58:42]protocol is kg_v1.0 [09:58:42]action value=close_receipt [09:58:42]process_action close_receipt [09:58:42]cmd_close_receipt [09:58:42]MH_GetDate [09:58:42]Write to MH i2c: F0 00 00 57 44 8A [09:58:42]Write i2c OK [09:58:42]MH_I2C_Read... [09:58:42]Read from MH i2c: F0 [09:58:42]MH_I2C_Read... [09:58:42]Read from MH i2c: F0 09 00 [09:58:42]MH_I2C_Read... [09:58:42]Read from MH i2c: F0 09 00 57 44 00 56 D4 14 67 82 C9 CF 66 B8 [09:58:42]GetLastDocTimeStamp 1729418300 [09:58:42]current date 1729418326 [09:58:42]FM_GetShiftState [09:58:42]SAM_PROTO_GetShiftState [09:58:42]wFMCommunicate request_size=4 [09:58:42]MH_SAM_APDU [09:58:42]CAPDU: 80 13 01 00 [09:58:42]Write to MH i2c: E2 08 00 58 44 80 13 01 00 00 00 00 00 19 [09:58:42]Write i2c OK [09:58:42]MH_I2C_Read... [09:58:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:42]Read from MH i2c: E2 [09:58:42]MH_I2C_Read... [09:58:42]Read from MH i2c: E2 0E 00 [09:58:42]MH_I2C_Read... [09:58:42]Read from MH i2c: E2 0E 00 58 44 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 33 [09:58:42]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:58:42]wFMCommunicate OK [09:58:42]SAM_PROTO_GetShiftState done [09:58:42]FM_GetShiftState done [09:58:42]opened in 1729383750 [09:58:42]opened+sec_in_day 1729470150 [09:58:42]quantity*price = 800052 [09:58:42]sum+1 = 800054 [09:58:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 8000.00 Внесено: 8000.00 СДАЧА: 0.00 НСП 1% : 70.80 НДС 12% : 849.61 Наличными: 8000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 161 20.10.2024 09:58 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Дисконтная программа ДТ номер 133 сэкономлено 106.39 сом ФМ: 0000000000871839 ФД: 227313 ФПД: 226984940014913 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T095846&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227313&fm=226984940014913&tin=02508201610067®Number=0000000000091685&sum=800000 [09:58:43]StoreToDocumentArchive [09:58:43]shift 533 fd 227313 [09:58:43]save to /storage/0533/doc_00227313 [09:58:43]save last doc name /storage/0533/doc_00227313 to /storage/kkm_last_doc_name [09:58:43]save OK [09:58:43]Clear old archive folders... [09:58:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:58:43]tlvbuf is 004D6A80 [09:58:43]SAM_PROTO_ClearQueue [09:58:43]wFMCommunicate request_size=4 [09:58:43]MH_SAM_APDU [09:58:43]CAPDU: 80 09 00 00 [09:58:43]Write to MH i2c: E2 08 00 65 44 80 09 00 00 00 00 00 00 1B [09:58:43]Write i2c OK [09:58:43]MH_I2C_Read... [09:58:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:58:43]Read from MH i2c: E2 [09:58:43]MH_I2C_Read... [09:58:43]Read from MH i2c: E2 03 00 [09:58:43]MH_I2C_Read... [09:58:43]Read from MH i2c: E2 03 00 65 44 00 90 00 1D [09:58:43]RAPDU: 90 00 [09:58:43]wFMCommunicate OK [09:58:43]SAM_PROTO_ClearQueue done [09:58:43]KKMCreateOFDPacket [09:58:43]OFDProtocolAddRootSTLVToBuf [09:58:43]FM_MakeSignedData [09:58:43]FM_MakeSignedData [09:58:43]SAM_PROTO_SignData [09:58:43]wFMCommunicate request_size=4 [09:58:43]MH_SAM_APDU [09:58:43]CAPDU: 80 0D 01 02 [09:58:43]Write to MH i2c: E2 08 00 66 44 80 0D 01 02 00 00 00 00 23 [09:58:43]Write i2c OK [09:58:43]MH_I2C_Read... [09:58:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:58:43]Read from MH i2c: E2 [09:58:43]MH_I2C_Read... [09:58:43]Read from MH i2c: E2 03 00 [09:58:43]MH_I2C_Read... [09:58:43]Read from MH i2c: E2 03 00 66 44 00 90 00 1E [09:58:43]RAPDU: 90 00 [09:58:43]wFMCommunicate OK [09:58:43]wFMCommunicate request_size=255 [09:58:43]MH_SAM_APDU [09:58: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 96 9F 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 35 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 56 D4 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F1 77 03 00 35 04 06 00 CE 71 0C B8 [09:58:43]Write to MH i2c: E2 02 01 67 44 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 96 9F 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 35 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 56 D4 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F1 77 03 00 35 04 06 00 CE 71 0C B8 00 00 EE [09:58:43]Write i2c OK [09:58:43]MH_I2C_Read... [09:58:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:43]Read from MH i2c: E2 [09:58:43]MH_I2C_Read... [09:58:43]Read from MH i2c: E2 03 00 [09:58:43]MH_I2C_Read... [09:58:43]Read from MH i2c: E2 03 00 67 44 00 90 00 1F [09:58:43]RAPDU: 90 00 [09:58:43]wFMCommunicate OK [09:58:43]wFMCommunicate request_size=7 [09:58:43]MH_SAM_APDU [09:58:43]CAPDU: 80 0D 02 02 02 0D 41 [09:58:43]Write to MH i2c: E2 0A 00 68 44 80 0D 02 02 02 00 0D 41 00 00 78 [09:58:43]Write i2c OK [09:58:43]MH_I2C_Read... [09:58:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:43]Read from MH i2c: E2 [09:58:43]MH_I2C_Read... [09:58:43]Read from MH i2c: E2 03 00 [09:58:43]MH_I2C_Read... [09:58:43]Read from MH i2c: E2 03 00 68 44 00 90 00 20 [09:58:43]RAPDU: 90 00 [09:58:43]wFMCommunicate OK [09:58:43]wFMCommunicate request_size=4 [09:58:43]MH_SAM_APDU [09:58:43]CAPDU: 80 0D 03 02 [09:58:43]Write to MH i2c: E2 08 00 69 44 80 0D 03 02 00 00 00 00 28 [09:58:43]Write i2c OK [09:58:43]MH_I2C_Read... [09:58:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:58:43]Read from MH i2c: E2 [09:58:43]MH_I2C_Read... [09:58:43]Read from MH i2c: E2 0B 00 [09:58:43]MH_I2C_Read... [09:58:43]Read from MH i2c: E2 0B 00 69 44 00 06 A3 14 01 6D 3D F4 F0 90 00 75 [09:58:43]RAPDU: 06 A3 14 01 6D 3D F4 F0 90 00 [09:58:43]wFMCommunicate OK [09:58:43]SAM_PROTO_SignData done [09:58:43]FM_MakeSignedData done [09:58:43]CreateOFDProtocolMessage [09:58:43]wFMCommunicate request_size=4 [09:58:43]MH_SAM_APDU [09:58:43]CAPDU: 80 11 00 00 [09:58:43]Write to MH i2c: E2 08 00 6A 44 80 11 00 00 00 00 00 00 28 [09:58:43]Write i2c OK [09:58:43]MH_I2C_Read... [09:58:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:43]Read from MH i2c: E2 [09:58:43]MH_I2C_Read... [09:58:43]Read from MH i2c: E2 17 00 [09:58:43]MH_I2C_Read... [09:58:43]Read from MH i2c: E2 17 00 6A 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 7F [09:58:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:58:43]wFMCommunicate OK [09:58:43]CreateOFDProtocolMessage done [09:58:43]OFDSenderStorePacket 227313 [09:58:43]StoreOFDPacket docnum=227313 [09:58:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 6F 66 04 01 C3 C5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 96 9F 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 35 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 56 D4 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F1 77 03 00 35 04 06 00 CE 71 0C B8 0D 41 06 A3 14 01 6D 3D F4 F0 [09:58:43]CheckFolder [09:58:43]dirname=/storage/ofd_packets [09:58:43]CheckFolder done [09:58:43]ProducePacketName [09:58:43]name=ofd_packets/00227313 [09:58:43]NVStorageSaveData ofd_packets/00227313 [09:58:43]File name is /storage/ofd_packets/00227313 [09:58:43]Write 298 bytes [09:58:43]NVStorageSaveData done [09:58:43]OFDSenderStorePacket done [09:58:43]KKMCreateOFDPacket done [09:58:43]NVStorageSaveData kkm_last_timestamp [09:58:43]File name is /storage/kkm_last_timestamp [09:58:43]Write 4 bytes [09:58:43]NVStorageSaveData done [09:58:43]ExternCall_PrintAddStr [09:58:43]wPrintStart [09:58:43]Write to MH i2c: 01 00 00 6B 44 AF [09:58:43]Write i2c OK [09:58:43]MH_I2C_Read... [09:58:43]Read from MH i2c: 01 [09:58:43]MH_I2C_Read... [09:58:43]Read from MH i2c: 01 07 00 [09:58:43]MH_I2C_Read... [09:58:43]Read from MH i2c: 01 07 00 6B 44 00 00 00 00 00 FF 0F C4 [09:58:43]RasterBufferAndPrint [09:58:43]line Счет N : (1)1962784 [09:58:43]line ИНН: 02508201610067 [09:58:43]line Контрольно-Кассовый Чек [09:58:43]line ПРОДАЖА [09:58:43]line ТРК (МРК, ГНК) : 41 [09:58:43]line Товар: 2710194210 [09:58:43]line ДТ-К-5 [09:58:43]line 106.390 * 75.20 [09:58:43]line = 8000.53 [09:58:43]line НДС 12% НСП 1% [09:58:43]line > о реализуемом товаре [09:58:43]line ОКРУГЛЕНИЕ: -0.53 [09:58:43]line ИТОГО: 8000.00 [09:58:43]line Внесено: 8000.00 [09:58:43]line СДАЧА: 0.00 [09:58:43]line НСП 1% : 70.80 [09:58:43]line НДС 12% : 849.61 [09:58:43]line Наличными: 8000.00 [09:58:43]line Безнал.: 0.00 [09:58:43]line Место: АЗС № 133 "Партнер Нефть" [09:58:43]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [09:58:43]line СНО: Общий режим [09:58:43]line Чек 161 20.10.2024 09:58 [09:58:43]line Смена: 533 ФФД: 1.0 [09:58:43]line ЗНМ: 0300000091 [09:58:43]line РНМ: 0000000000091685 [09:58:43]line Версия ККМ: 001 [09:58:43]line [09:58:43]line Дисконтная программа [09:58:43]line ДТ [09:58:43]line номер 133 [09:58:43]line сэкономлено 106.39 сом [09:58:43]line ФМ: 0000000000871839 [09:58:43]line ФД: 227313 [09:58:43]line ФПД: 226984940014913 [09:58:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T095846&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227313&fm=226984940014913&tin=02508201610067®Number=0000000000091685&sum=800000 [09:58:44]OFD Sender: Processing packet 227313 [packets to send 38, broken 37] [09:58:44]ProducePacketName [09:58:44]name=ofd_packets/00227313 [09:58:44]OFD Sender: To server: pG, [09:58:44]CommunicateWithHost lk.salyk.kg:30040 [09:58:44]ConnectInit lk.salyk.kg [09:58:44]written 0, free lines is 4095 [09:58:44]Connected sock=10 [09:58: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 33 39 0C 01 00 00 6F 66 04 01 C3 C5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 96 9F 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 35 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 56 D4 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F1 77 03 00 35 04 06 00 CE 71 0C B8 0D 41 06 A3 14 01 6D 3D F4 F0 [09:58: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 33 39 4F 00 00 00 81 C9 47 00 93 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 33 39 10 04 04 00 F1 77 03 00 F4 03 04 00 55 7F 14 67 B6 04 01 00 00 F2 88 F2 65 44 A9 E4 53 [09:58:44]CommunicateWithHost err = 0 [09:58:44]CheckOFDResponse [09:58:44]1017 (14) - 77093643461234 [09:58:44]1041 (16) - 0000000000871839 [09:58:44]1040 (4) - 227313 [09:58:44]1012 (4) - 20.10.2024 03:56 [09:58:44]1206 (1) - 0 [09:58:44]OFD Sender: Remove packet 227313 [09:58:44]ProducePacketName [09:58:44]name=ofd_packets/00227313 [09:58:44]NVStorageDeleteData [09:58:44]Write to MH i2c: 01 00 00 9A 44 DE [09:58:44]Write i2c OK [09:58:44]MH_I2C_Read... [09:58:44]Read from MH i2c: 01 [09:58:44]MH_I2C_Read... [09:58:44]Read from MH i2c: 01 07 00 [09:58:44]MH_I2C_Read... [09:58:44]Read from MH i2c: 01 07 00 9A 44 00 00 00 00 00 B5 0C A6 [09:58:44]RasterBufferAndPrint [09:58:44]line [09:58:44]line [09:58:44]line [09:58:44]line [09:58:44]line [09:58:44]written 0, free lines is 3259 [09:58:44]process_action close_receipt done [09:58:44]requested_data is exist [09:58:44]produce_requested_data [09:58:44]requested_item fm.sn is exist - process it [09:58:44]wFMCommunicate request_size=4 [09:58:44]MH_SAM_APDU [09:58:44]CAPDU: 80 11 00 00 [09:58:44]Write to MH i2c: E2 08 00 A1 44 80 11 00 00 00 00 00 00 5F [09:58:44]Write i2c OK [09:58:44]MH_I2C_Read... [09:58:44]Read from MH i2c: E2 [09:58:44]MH_I2C_Read... [09:58:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:44]Read from MH i2c: E2 17 00 [09:58:44]MH_I2C_Read... [09:58:44]Read from MH i2c: E2 17 00 A1 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B6 [09:58:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [09:58:44]wFMCommunicate OK [09:58:44]requested_item fd.num is exist - process it [09:58:44]SAM_PROTO_GetFieldsCounters [09:58:44]wFMCommunicate request_size=4 [09:58:44]MH_SAM_APDU [09:58:44]CAPDU: 80 13 00 00 [09:58:44]Write to MH i2c: E2 08 00 A2 44 80 13 00 00 00 00 00 00 62 [09:58:44]Write i2c OK [09:58:44]MH_I2C_Read... [09:58:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:58:44]Read from MH i2c: E2 [09:58:44]MH_I2C_Read... [09:58:44]Read from MH i2c: E2 62 00 [09:58:44]MH_I2C_Read... [09:58:44]Read from MH i2c: E2 62 00 A2 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F1 77 03 00 0E 04 04 00 15 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 F0 [09:58: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F1 77 03 00 0E 04 04 00 15 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 [09:58:44]wFMCommunicate OK [09:58:44]SAM_PROTO_GetFieldsCounters done [09:58:44]requested_item shift.num is exist - process it [09:58:44]requested_item shift.opened is exist - process it [09:58:44]req_shift_opened [09:58:44]FM_GetShiftState [09:58:44]SAM_PROTO_GetShiftState [09:58:44]wFMCommunicate request_size=4 [09:58:44]MH_SAM_APDU [09:58:44]CAPDU: 80 13 01 00 [09:58:44]Write to MH i2c: E2 08 00 A3 44 80 13 01 00 00 00 00 00 64 [09:58:44]Write i2c OK [09:58:44]MH_I2C_Read... [09:58:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:44]Read from MH i2c: E2 [09:58:44]MH_I2C_Read... [09:58:44]Read from MH i2c: E2 0E 00 [09:58:44]MH_I2C_Read... [09:58:44]Read from MH i2c: E2 0E 00 A3 44 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 7E [09:58:44]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [09:58:44]wFMCommunicate OK [09:58:44]SAM_PROTO_GetShiftState done [09:58:44]FM_GetShiftState done [09:58:44]req_shift_opened done [09:58:44]requested_item shift.open_date is exist - process it [09:58:44]req_shift_open_date [09:58:44]req_shift_open_date done [09:58:44]produce_requested_data done [09:58:44]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227313,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [09:58:44]process_action_free close_receipt [09:58:44]json_value_free [09:58:44]json_value_free done [09:58:44]process_json_proto returns [09:58:44]Send response to host [09:58:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227313,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [09:58:44]free response buf [09:58:44]execute_script done [09:58:44]execute_script returns [09:58:44]free content buf [09:58:44]Sock 8.Close socket [09:58:44]Sock 8.Thread stoped [09:58:44]OFD Sender: No OFD packet to send [09:58:49]OFD Sender: No OFD packet to send [09:58:54]OFD Sender: No OFD packet to send [09:59:00]OFD Sender: No OFD packet to send [09:59:05]OFD Sender: No OFD packet to send [09:59:10]OFD Sender: No OFD packet to send [09:59:15]OFD Sender: No OFD packet to send [09:59:20]OFD Sender: No OFD packet to send [09:59:25]OFD Sender: No OFD packet to send [09:59:30]OFD Sender: No OFD packet to send [09:59:35]OFD Sender: No OFD packet to send [09:59:40]OFD Sender: No OFD packet to send [09:59:45]OFD Sender: No OFD packet to send [09:59:50]OFD Sender: No OFD packet to send [09:59:55]OFD Sender: No OFD packet to send [10:00:00]OFD Sender: No OFD packet to send [10:00:05]OFD Sender: No OFD packet to send [10:00:10]OFD Sender: No OFD packet to send [10:00:15]OFD Sender: No OFD packet to send [10:00:20]OFD Sender: No OFD packet to send [10:00:25]OFD Sender: No OFD packet to send [10:00:30]OFD Sender: No OFD packet to send [10:00:35]OFD Sender: No OFD packet to send [10:00:40]OFD Sender: No OFD packet to send [10:00:45]OFD Sender: No OFD packet to send [10:00:50]OFD Sender: No OFD packet to send [10:00:55]OFD Sender: No OFD packet to send [10:01:00]OFD Sender: No OFD packet to send [10:01:05]OFD Sender: No OFD packet to send [10:01:10]OFD Sender: No OFD packet to send [10:01:11]accept exits with 9 [10:01:11]New connection [10:01:11]New thread 3066821988 created [10:01:11]Thread 3066965348 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.44.195:8080 [10:01:11]Content-Length: 767 [10:01:11]Content-Type: application/json [10:01:11] [10:01:11]POST finish read [10:01:11]Found Content-Length = 767 [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)1962787", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 44.990, "sum" : 3428.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: Mbank", "payments": [ { "type": 1, "sum" : 3428.24 } ] } , "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)1962787", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 44.990, "sum" : 3428.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: Mbank", "payments": [ { "type": 1, "sum" : 3428.24 } ] } , "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 A4 44 D7 [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 A4 44 00 EC D4 14 67 82 C9 CF 66 9B [10:01:11]GetLastDocTimeStamp 1729418326 [10:01:11]current date 1729418476 [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 A5 44 80 13 01 00 00 00 00 00 66 [10:01:11]Write i2c OK [10:01:11]MH_I2C_Read... [10:01:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:12]Read from MH i2c: E2 [10:01:12]MH_I2C_Read... [10:01:12]Read from MH i2c: E2 0E 00 [10:01:12]MH_I2C_Read... [10:01:12]Read from MH i2c: E2 0E 00 A5 44 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 80 [10:01:12]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:01:12]wFMCommunicate OK [10:01:12]SAM_PROTO_GetShiftState done [10:01:12]FM_GetShiftState done [10:01:12]opened in 1729383750 [10:01:12]opened+sec_in_day 1729470150 [10:01:12]quantity*price = 342823 [10:01:12]sum+1 = 342825 [10:01:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3428.24 НСП 1% : 30.34 НДС 12% : 364.06 Наличными: 0.00 Безнал.: 3428.24 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 162 20.10.2024 10:01 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 227314 ФПД: 147813303624835 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T100116&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227314&fm=147813303624835&tin=02508201610067®Number=0000000000091685&sum=342824 [10:01:13]StoreToDocumentArchive [10:01:13]shift 533 fd 227314 [10:01:13]save to /storage/0533/doc_00227314 [10:01:13]save last doc name /storage/0533/doc_00227314 to /storage/kkm_last_doc_name [10:01:13]save OK [10:01:13]Clear old archive folders... [10:01:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:01:13]tlvbuf is 00594B60 [10:01:13]SAM_PROTO_ClearQueue [10:01:13]wFMCommunicate request_size=4 [10:01:13]MH_SAM_APDU [10:01:13]CAPDU: 80 09 00 00 [10:01:13]Write to MH i2c: E2 08 00 B2 44 80 09 00 00 00 00 00 00 68 [10:01:13]Write i2c OK [10:01:13]MH_I2C_Read... [10:01:13]*** iso7816_exchange 80 09 00 00... 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 B2 44 00 90 00 6A [10:01:13]RAPDU: 90 00 [10:01:13]wFMCommunicate OK [10:01:13]SAM_PROTO_ClearQueue done [10:01:13]KKMCreateOFDPacket [10:01:13]OFDProtocolAddRootSTLVToBuf [10:01:13]FM_MakeSignedData [10:01:13]FM_MakeSignedData [10:01:13]SAM_PROTO_SignData [10:01:13]wFMCommunicate request_size=4 [10:01:13]MH_SAM_APDU [10:01:13]CAPDU: 80 0D 01 02 [10:01:13]Write to MH i2c: E2 08 00 B3 44 80 0D 01 02 00 00 00 00 70 [10:01:13]Write i2c OK [10:01:13]MH_I2C_Read... [10:01:13]*** iso7816_exchange 80 0D 01 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 B3 44 00 90 00 6B [10:01:13]RAPDU: 90 00 [10:01:13]wFMCommunicate OK [10:01:13]wFMCommunicate request_size=255 [10:01:13]MH_SAM_APDU [10:01:13]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE AF 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 28 3B 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3B 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 8E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 28 3B 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 EC D4 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F2 77 03 00 35 04 06 00 86 6F 77 74 [10:01:13]Write to MH i2c: E2 02 01 B4 44 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 AF 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 28 3B 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3B 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 8E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 28 3B 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 EC D4 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F2 77 03 00 35 04 06 00 86 6F 77 74 00 00 44 [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 B4 44 00 90 00 6C [10:01:13]RAPDU: 90 00 [10:01:13]wFMCommunicate OK [10:01:13]wFMCommunicate request_size=7 [10:01:13]MH_SAM_APDU [10:01:13]CAPDU: 80 0D 02 02 02 A4 83 [10:01:13]Write to MH i2c: E2 0A 00 B5 44 80 0D 02 02 02 00 A4 83 00 00 9E [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 B5 44 00 90 00 6D [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 B6 44 80 0D 03 02 00 00 00 00 75 [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 B6 44 00 91 5C 66 3F C3 F3 D5 E9 90 00 7C [10:01:13]RAPDU: 91 5C 66 3F C3 F3 D5 E9 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 B7 44 80 11 00 00 00 00 00 00 75 [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 B7 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 CC [10:01:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:01:13]wFMCommunicate OK [10:01:13]CreateOFDProtocolMessage done [10:01:13]OFDSenderStorePacket 227314 [10:01:13]StoreOFDPacket docnum=227314 [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 33 39 0C 01 00 00 BE 8D 04 01 D7 2B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE AF 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 28 3B 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3B 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 8E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 28 3B 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 EC D4 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F2 77 03 00 35 04 06 00 86 6F 77 74 A4 83 91 5C 66 3F C3 F3 D5 E9 [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/00227314 [10:01:13]NVStorageSaveData ofd_packets/00227314 [10:01:13]File name is /storage/ofd_packets/00227314 [10:01:13]Write 298 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 B8 44 FC [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 B8 44 00 00 00 00 00 FF 0F 11 [10:01:13]RasterBufferAndPrint [10:01:13]line Счет N : (1)1962787 [10:01:13]line ИНН: 02508201610067 [10:01:13]line Контрольно-Кассовый Чек [10:01:13]line ПРОДАЖА [10:01:13]line ТРК (МРК, ГНК) : 61 [10:01:13]line Товар: 2710194210 [10:01:13]line ДТ-К-5 [10:01:13]line 44.990 * 76.20 [10:01:13]line = 3428.24 [10:01:13]line НДС 12% НСП 1% [10:01:13]line > о реализуемом товаре [10:01:13]line ИТОГО: 3428.24 [10:01:13]line НСП 1% : 30.34 [10:01:13]line НДС 12% : 364.06 [10:01:13]line Наличными: 0.00 [10:01:13]line Безнал.: 3428.24 [10:01:13]line Место: АЗС № 133 "Партнер Нефть" [10:01:13]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:01:13]line СНО: Общий режим [10:01:13]line Чек 162 20.10.2024 10:01 [10:01:13]line Смена: 533 ФФД: 1.0 [10:01:13]line ЗНМ: 0300000091 [10:01:13]line РНМ: 0000000000091685 [10:01:13]line Версия ККМ: 001 [10:01:13]line Платежная система: Mbank [10:01:13]line ФМ: 0000000000871839 [10:01:13]line ФД: 227314 [10:01:13]line ФПД: 147813303624835 [10:01:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T100116&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227314&fm=147813303624835&tin=02508201610067®Number=0000000000091685&sum=342824 [10:01:13]written 0, free lines is 4095 [10:01:13]OFD Sender: Processing packet 227314 [packets to send 38, broken 37] [10:01:13]ProducePacketName [10:01:13]name=ofd_packets/00227314 [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 33 39 0C 01 00 00 BE 8D 04 01 D7 2B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE AF 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 28 3B 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3B 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 8E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 28 3B 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 EC D4 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F2 77 03 00 35 04 06 00 86 6F 77 74 A4 83 91 5C 66 3F C3 F3 D5 E9 [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 33 39 4F 00 00 00 C2 16 47 00 58 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 33 39 10 04 04 00 F2 77 03 00 F4 03 04 00 EB 7F 14 67 B6 04 01 00 00 BD 52 E6 5A 2F 63 0F C9 [10:01:14]CommunicateWithHost err = 0 [10:01:14]CheckOFDResponse [10:01:14]1017 (14) - 77093643461234 [10:01:14]1041 (16) - 0000000000871839 [10:01:14]1040 (4) - 227314 [10:01:14]1012 (4) - 20.10.2024 03:58 [10:01:14]1206 (1) - 0 [10:01:14]OFD Sender: Remove packet 227314 [10:01:14]ProducePacketName [10:01:14]name=ofd_packets/00227314 [10:01:14]NVStorageDeleteData [10:01:14]Write to MH i2c: 01 00 00 E0 44 24 [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 E0 44 00 00 00 00 00 2A 0D 62 [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 3376 [10:01:14]process_action close_receipt done [10:01:14]requested_data is exist [10:01:14]produce_requested_data [10:01:14]requested_item fm.sn is exist - process it [10:01:14]wFMCommunicate request_size=4 [10:01:14]MH_SAM_APDU [10:01:14]CAPDU: 80 11 00 00 [10:01:14]Write to MH i2c: E2 08 00 E7 44 80 11 00 00 00 00 00 00 A5 [10:01:14]Write i2c OK [10:01:14]MH_I2C_Read... [10:01:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:14]Read from MH i2c: E2 [10:01:14]MH_I2C_Read... [10:01:14]Read from MH i2c: E2 17 00 [10:01:14]MH_I2C_Read... [10:01:14]Read from MH i2c: E2 17 00 E7 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 FC [10:01:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:01:14]wFMCommunicate OK [10:01:14]requested_item fd.num is exist - process it [10:01:14]SAM_PROTO_GetFieldsCounters [10:01:14]wFMCommunicate request_size=4 [10:01:14]MH_SAM_APDU [10:01:14]CAPDU: 80 13 00 00 [10:01:14]Write to MH i2c: E2 08 00 E8 44 80 13 00 00 00 00 00 00 A8 [10:01:14]Write i2c OK [10:01:14]MH_I2C_Read... [10:01:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:01:14]Read from MH i2c: E2 [10:01:14]MH_I2C_Read... [10:01:14]Read from MH i2c: E2 62 00 [10:01:14]MH_I2C_Read... [10:01:14]Read from MH i2c: E2 62 00 E8 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F2 77 03 00 0E 04 04 00 15 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 3A [10:01:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F2 77 03 00 0E 04 04 00 15 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 [10:01:14]wFMCommunicate OK [10:01:14]SAM_PROTO_GetFieldsCounters done [10:01:14]requested_item shift.num is exist - process it [10:01:14]requested_item shift.opened is exist - process it [10:01:14]req_shift_opened [10:01:14]FM_GetShiftState [10:01:14]SAM_PROTO_GetShiftState [10:01:14]wFMCommunicate request_size=4 [10:01:14]MH_SAM_APDU [10:01:14]CAPDU: 80 13 01 00 [10:01:14]Write to MH i2c: E2 08 00 E9 44 80 13 01 00 00 00 00 00 AA [10:01:14]Write i2c OK [10:01:14]MH_I2C_Read... [10:01:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:14]Read from MH i2c: E2 [10:01:14]MH_I2C_Read... [10:01:14]Read from MH i2c: E2 0E 00 [10:01:14]MH_I2C_Read... [10:01:14]Read from MH i2c: E2 0E 00 E9 44 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 C4 [10:01:14]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:01:14]wFMCommunicate OK [10:01:14]SAM_PROTO_GetShiftState done [10:01:14]FM_GetShiftState done [10:01:14]req_shift_opened done [10:01:14]requested_item shift.open_date is exist - process it [10:01:14]req_shift_open_date [10:01:14]req_shift_open_date done [10:01:14]produce_requested_data done [10:01:14]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227314,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [10:01:14]process_action_free close_receipt [10:01:14]json_value_free [10:01:14]json_value_free done [10:01:14]process_json_proto returns [10:01:14]Send response to host [10:01:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227314,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [10:01:14]free response buf [10:01:14]execute_script done [10:01:14]execute_script returns [10:01:14]free content buf [10:01:14]Sock 9.Close socket [10:01:14]Sock 9.Thread stoped [10:01:14]OFD Sender: No OFD packet to send [10:01:19]OFD Sender: No OFD packet to send [10:01:24]OFD Sender: No OFD packet to send [10:01:29]OFD Sender: No OFD packet to send [10:01:34]OFD Sender: No OFD packet to send [10:01:39]OFD Sender: No OFD packet to send [10:01:44]OFD Sender: No OFD packet to send [10:01:49]OFD Sender: No OFD packet to send [10:01:54]OFD Sender: No OFD packet to send [10:01:57]accept exits with 8 [10:01:57]New connection [10:01:57]New thread 3066965348 created [10:01:57]Thread 3066821988 joined [10:01:57]Waiting for new connection... [10:01:57] Sock 8.Parse request [10:01:57]Sock 8.Check first char [10:01:57]Sock 8.First char is OK [10:01:57]request: POST /json_proto HTTP/1.0 [10:01:57]Method: POST [10:01:57]URL: /json_proto [10:01:57]Method is POST - this is cgi request [10:01:57]url: /json_proto [10:01:57]query_string will be loaded in cgi processing [10:01:57]execute_cgi json_proto POST (null) [10:01:57]execute_cgi path=json_proto method=POST [10:01:57]POST find Content-Length [10:01:57]Host: 172.17.44.195:8080 [10:01:57]Content-Length: 678 [10:01:57]Content-Type: application/json [10:01:57] [10:01:57]POST finish read [10:01:57]Found Content-Length = 678 [10:01:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962788", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 6.730, "sum" : 450.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:57]execute_script... [10:01: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)1962788", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 6.730, "sum" : 450.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:57]POST & json_proto [10:01:57]process_json_proto [10:01:57]json parsed OK: [10:01:57]protocol is kg_v1.0 [10:01:57]action value=close_receipt [10:01:57]process_action close_receipt [10:01:57]cmd_close_receipt [10:01:57]MH_GetDate [10:01:57]Write to MH i2c: F0 00 00 EA 44 1D [10:01:57]Write i2c OK [10:01:57]MH_I2C_Read... [10:01:57]Read from MH i2c: F0 [10:01:57]MH_I2C_Read... [10:01:57]Read from MH i2c: F0 09 00 [10:01:57]MH_I2C_Read... [10:01:57]Read from MH i2c: F0 09 00 EA 44 00 19 D5 14 67 82 C9 CF 66 0F [10:01:57]GetLastDocTimeStamp 1729418476 [10:01:57]current date 1729418521 [10:01:57]FM_GetShiftState [10:01:57]SAM_PROTO_GetShiftState [10:01:57]wFMCommunicate request_size=4 [10:01:57]MH_SAM_APDU [10:01:57]CAPDU: 80 13 01 00 [10:01:57]Write to MH i2c: E2 08 00 EB 44 80 13 01 00 00 00 00 00 AC [10:01:57]Write i2c OK [10:01:57]MH_I2C_Read... [10:01:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:57]Read from MH i2c: E2 [10:01:57]MH_I2C_Read... [10:01:57]Read from MH i2c: E2 0E 00 [10:01:57]MH_I2C_Read... [10:01:57]Read from MH i2c: E2 0E 00 EB 44 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 C6 [10:01:57]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:01:57]wFMCommunicate OK [10:01:57]SAM_PROTO_GetShiftState done [10:01:57]FM_GetShiftState done [10:01:57]opened in 1729383750 [10:01:57]opened+sec_in_day 1729470150 [10:01:57]quantity*price = 45023 [10:01:57]sum+1 = 45025 [10:01:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 450.00 Внесено: 450.00 СДАЧА: 0.00 НСП 1% : 3.98 НДС 12% : 47.81 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 163 20.10.2024 10:02 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227315 ФПД: 79629428089962 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T100201&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227315&fm=79629428089962&tin=02508201610067®Number=0000000000091685&sum=45000 [10:01:58]StoreToDocumentArchive [10:01:58]shift 533 fd 227315 [10:01:58]save to /storage/0533/doc_00227315 [10:01:58]save last doc name /storage/0533/doc_00227315 to /storage/kkm_last_doc_name [10:01:58]save OK [10:01:58]Clear old archive folders... [10:01:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:01:58]tlvbuf is 005129C0 [10:01:58]SAM_PROTO_ClearQueue [10:01:58]wFMCommunicate request_size=4 [10:01:58]MH_SAM_APDU [10:01:58]CAPDU: 80 09 00 00 [10:01:58]Write to MH i2c: E2 08 00 F8 44 80 09 00 00 00 00 00 00 AE [10:01:58]Write i2c OK [10:01:58]MH_I2C_Read... [10:01:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:01:58]Read from MH i2c: E2 [10:01:58]MH_I2C_Read... [10:01:58]Read from MH i2c: E2 03 00 [10:01:58]MH_I2C_Read... [10:01:58]Read from MH i2c: E2 03 00 F8 44 00 90 00 B0 [10:01:58]RAPDU: 90 00 [10:01:58]wFMCommunicate OK [10:01:58]SAM_PROTO_ClearQueue done [10:01:58]KKMCreateOFDPacket [10:01:58]OFDProtocolAddRootSTLVToBuf [10:01:58]FM_MakeSignedData [10:01:58]FM_MakeSignedData [10:01:58]SAM_PROTO_SignData [10:01:58]wFMCommunicate request_size=4 [10:01:58]MH_SAM_APDU [10:01:58]CAPDU: 80 0D 01 02 [10:01:58]Write to MH i2c: E2 08 00 F9 44 80 0D 01 02 00 00 00 00 B6 [10:01:58]Write i2c OK [10:01:58]MH_I2C_Read... [10:01:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:01:58]Read from MH i2c: E2 [10:01:58]MH_I2C_Read... [10:01:58]Read from MH i2c: E2 03 00 [10:01:58]MH_I2C_Read... [10:01:58]Read from MH i2c: E2 03 00 F9 44 00 90 00 B1 [10:01:58]RAPDU: 90 00 [10:01:58]wFMCommunicate OK [10:01:58]wFMCommunicate request_size=255 [10:01:58]MH_SAM_APDU [10:01:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 19 D5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F3 77 03 00 35 04 06 00 48 [10:01:58]Write to MH i2c: E2 02 01 FA 44 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 19 D5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F3 77 03 00 35 04 06 00 48 00 00 0B [10:01:58]Write i2c OK [10:01:58]MH_I2C_Read... [10:01:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:58]Read from MH i2c: E2 [10:01:58]MH_I2C_Read... [10:01:58]Read from MH i2c: E2 03 00 [10:01:58]MH_I2C_Read... [10:01:58]Read from MH i2c: E2 03 00 FA 44 00 90 00 B2 [10:01:58]RAPDU: 90 00 [10:01:58]wFMCommunicate OK [10:01:58]wFMCommunicate request_size=10 [10:01:58]MH_SAM_APDU [10:01:58]CAPDU: 80 0D 02 02 05 6C 2B C6 64 6A [10:01:58]Write to MH i2c: E2 0D 00 FB 44 80 0D 02 02 05 00 6C 2B C6 64 6A 00 00 EE [10:01:58]Write i2c OK [10:01:58]MH_I2C_Read... [10:01:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:58]Read from MH i2c: E2 [10:01:58]MH_I2C_Read... [10:01:58]Read from MH i2c: E2 03 00 [10:01:58]MH_I2C_Read... [10:01:58]Read from MH i2c: E2 03 00 FB 44 00 90 00 B3 [10:01:58]RAPDU: 90 00 [10:01:58]wFMCommunicate OK [10:01:58]wFMCommunicate request_size=4 [10:01:58]MH_SAM_APDU [10:01:58]CAPDU: 80 0D 03 02 [10:01:58]Write to MH i2c: E2 08 00 FC 44 80 0D 03 02 00 00 00 00 BB [10:01:58]Write i2c OK [10:01:58]MH_I2C_Read... [10:01:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:01:58]Read from MH i2c: E2 [10:01:58]MH_I2C_Read... [10:01:58]Read from MH i2c: E2 0B 00 [10:01:58]MH_I2C_Read... [10:01:58]Read from MH i2c: E2 0B 00 FC 44 00 D3 A8 09 25 68 B1 2D 8D 90 00 38 [10:01:58]RAPDU: D3 A8 09 25 68 B1 2D 8D 90 00 [10:01:58]wFMCommunicate OK [10:01:58]SAM_PROTO_SignData done [10:01:58]FM_MakeSignedData done [10:01:58]CreateOFDProtocolMessage [10:01:58]wFMCommunicate request_size=4 [10:01:58]MH_SAM_APDU [10:01:58]CAPDU: 80 11 00 00 [10:01:58]Write to MH i2c: E2 08 00 FD 44 80 11 00 00 00 00 00 00 BB [10:01:58]Write i2c OK [10:01:58]MH_I2C_Read... [10:01:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:58]Read from MH i2c: E2 [10:01:58]MH_I2C_Read... [10:01:58]Read from MH i2c: E2 17 00 [10:01:58]MH_I2C_Read... [10:01:58]Read from MH i2c: E2 17 00 FD 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 12 [10:01:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:01:58]wFMCommunicate OK [10:01:58]CreateOFDProtocolMessage done [10:01:58]OFDSenderStorePacket 227315 [10:01:58]StoreOFDPacket docnum=227315 [10:01:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 59 93 07 01 B3 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 19 D5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F3 77 03 00 35 04 06 00 48 6C 2B C6 64 6A D3 A8 09 25 68 B1 2D 8D [10:01:58]CheckFolder [10:01:58]dirname=/storage/ofd_packets [10:01:58]CheckFolder done [10:01:58]ProducePacketName [10:01:58]name=ofd_packets/00227315 [10:01:58]NVStorageSaveData ofd_packets/00227315 [10:01:58]File name is /storage/ofd_packets/00227315 [10:01:58]Write 301 bytes [10:01:58]NVStorageSaveData done [10:01:58]OFDSenderStorePacket done [10:01:58]KKMCreateOFDPacket done [10:01:58]NVStorageSaveData kkm_last_timestamp [10:01:58]File name is /storage/kkm_last_timestamp [10:01:58]Write 4 bytes [10:01:58]NVStorageSaveData done [10:01:58]ExternCall_PrintAddStr [10:01:58]wPrintStart [10:01:58]Write to MH i2c: 01 00 00 FE 44 42 [10:01:58]Write i2c OK [10:01:58]MH_I2C_Read... [10:01:58]Read from MH i2c: 01 [10:01:58]MH_I2C_Read... [10:01:58]Read from MH i2c: 01 07 00 [10:01:58]MH_I2C_Read... [10:01:58]Read from MH i2c: 01 07 00 FE 44 00 00 00 00 00 FF 0F 57 [10:01:58]RasterBufferAndPrint [10:01:58]line Счет N : (1)1962788 [10:01:58]line ИНН: 02508201610067 [10:01:58]line Контрольно-Кассовый Чек [10:01:58]line ПРОДАЖА [10:01:58]line ТРК (МРК, ГНК) : 53 [10:01:58]line Товар: 2710124130 [10:01:58]line Аи-92-К-5 [10:01:58]line 6.730 * 66.90 [10:01:58]line = 450.24 [10:01:58]line НДС 12% НСП 1% [10:01:58]line > о реализуемом товаре [10:01:58]line ОКРУГЛЕНИЕ: -0.24 [10:01:58]line ИТОГО: 450.00 [10:01:58]line Внесено: 450.00 [10:01:58]line СДАЧА: 0.00 [10:01:58]line НСП 1% : 3.98 [10:01:58]line НДС 12% : 47.81 [10:01:58]line Наличными: 450.00 [10:01:58]line Безнал.: 0.00 [10:01:58]line Место: АЗС № 133 "Партнер Нефть" [10:01:58]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:01:58]line СНО: Общий режим [10:01:58]line Чек 163 20.10.2024 10:02 [10:01:58]line Смена: 533 ФФД: 1.0 [10:01:58]line ЗНМ: 0300000091 [10:01:58]line РНМ: 0000000000091685 [10:01:58]line Версия ККМ: 001 [10:01:58]line ФМ: 0000000000871839 [10:01:58]line ФД: 227315 [10:01:58]line ФПД: 79629428089962 [10:01:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T100201&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227315&fm=79629428089962&tin=02508201610067®Number=0000000000091685&sum=45000 [10:01:59]written 0, free lines is 4095 [10:01:59]OFD Sender: Processing packet 227315 [packets to send 38, broken 37] [10:01:59]ProducePacketName [10:01:59]name=ofd_packets/00227315 [10:01:59]OFD Sender: To server: pG, [10:01:59]CommunicateWithHost lk.salyk.kg:30040 [10:01:59]ConnectInit lk.salyk.kg [10:01:59]Connected sock=10 [10:01: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 33 39 0F 01 00 00 59 93 07 01 B3 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 19 D5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F3 77 03 00 35 04 06 00 48 6C 2B C6 64 6A D3 A8 09 25 68 B1 2D 8D [10:01: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 33 39 4F 00 00 00 A9 59 47 00 03 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F3 77 03 00 F4 03 04 00 18 80 14 67 B6 04 01 00 00 9A EE 22 38 14 19 14 C5 [10:01:59]CommunicateWithHost err = 0 [10:01:59]CheckOFDResponse [10:01:59]1017 (14) - 77093643461234 [10:01:59]1041 (16) - 0000000000871839 [10:01:59]1040 (4) - 227315 [10:01:59]1012 (4) - 20.10.2024 03:59 [10:01:59]1206 (1) - 0 [10:01:59]OFD Sender: Remove packet 227315 [10:01:59]ProducePacketName [10:01:59]name=ofd_packets/00227315 [10:01:59]NVStorageDeleteData [10:01:59]Write to MH i2c: 01 00 00 28 45 6D [10:01:59]Write i2c OK [10:01:59]MH_I2C_Read... [10:01:59]Read from MH i2c: 01 [10:01:59]MH_I2C_Read... [10:01:59]Read from MH i2c: 01 07 00 [10:01:59]MH_I2C_Read... [10:01:59]Read from MH i2c: 01 07 00 28 45 00 00 00 00 00 09 0D 8A [10:01:59]RasterBufferAndPrint [10:01:59]line [10:01:59]line [10:01:59]line [10:01:59]line [10:01:59]line [10:01:59]written 0, free lines is 3343 [10:01:59]process_action close_receipt done [10:01:59]requested_data is exist [10:01:59]produce_requested_data [10:01:59]requested_item fm.sn is exist - process it [10:01:59]wFMCommunicate request_size=4 [10:01:59]MH_SAM_APDU [10:01:59]CAPDU: 80 11 00 00 [10:01:59]Write to MH i2c: E2 08 00 2F 45 80 11 00 00 00 00 00 00 EE [10:01:59]Write i2c OK [10:01:59]MH_I2C_Read... [10:01:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:59]Read from MH i2c: E2 [10:01:59]MH_I2C_Read... [10:01:59]Read from MH i2c: E2 17 00 [10:01:59]MH_I2C_Read... [10:01:59]Read from MH i2c: E2 17 00 2F 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 45 [10:01:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:01:59]wFMCommunicate OK [10:01:59]requested_item fd.num is exist - process it [10:01:59]SAM_PROTO_GetFieldsCounters [10:01:59]wFMCommunicate request_size=4 [10:01:59]MH_SAM_APDU [10:01:59]CAPDU: 80 13 00 00 [10:01:59]Write to MH i2c: E2 08 00 30 45 80 13 00 00 00 00 00 00 F1 [10:01:59]Write i2c OK [10:01:59]MH_I2C_Read... [10:01:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:01:59]Read from MH i2c: E2 [10:01:59]MH_I2C_Read... [10:01:59]Read from MH i2c: E2 62 00 [10:01:59]MH_I2C_Read... [10:01:59]Read from MH i2c: E2 62 00 30 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F3 77 03 00 0E 04 04 00 15 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 87 [10:01: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F3 77 03 00 0E 04 04 00 15 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 [10:01:59]wFMCommunicate OK [10:01:59]SAM_PROTO_GetFieldsCounters done [10:01:59]requested_item shift.num is exist - process it [10:01:59]requested_item shift.opened is exist - process it [10:01:59]req_shift_opened [10:01:59]FM_GetShiftState [10:01:59]SAM_PROTO_GetShiftState [10:01:59]wFMCommunicate request_size=4 [10:01:59]MH_SAM_APDU [10:01:59]CAPDU: 80 13 01 00 [10:01:59]Write to MH i2c: E2 08 00 31 45 80 13 01 00 00 00 00 00 F3 [10:01:59]Write i2c OK [10:01:59]MH_I2C_Read... [10:01:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:59]Read from MH i2c: E2 [10:01:59]MH_I2C_Read... [10:01:59]Read from MH i2c: E2 0E 00 [10:01:59]MH_I2C_Read... [10:01:59]Read from MH i2c: E2 0E 00 31 45 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 0D [10:01:59]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:01:59]wFMCommunicate OK [10:01:59]SAM_PROTO_GetShiftState done [10:01:59]FM_GetShiftState done [10:01:59]req_shift_opened done [10:01:59]requested_item shift.open_date is exist - process it [10:01:59]req_shift_open_date [10:01:59]req_shift_open_date done [10:01:59]produce_requested_data done [10:01:59]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227315,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [10:01:59]process_action_free close_receipt [10:01:59]json_value_free [10:01:59]json_value_free done [10:01:59]process_json_proto returns [10:01:59]Send response to host [10:01:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227315,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [10:01:59]free response buf [10:01:59]execute_script done [10:01:59]execute_script returns [10:01:59]free content buf [10:01:59]Sock 8.Close socket [10:01:59]Sock 8.Thread stoped [10:02:00]OFD Sender: No OFD packet to send [10:02:05]OFD Sender: No OFD packet to send [10:02:10]OFD Sender: No OFD packet to send [10:02:15]OFD Sender: No OFD packet to send [10:02:20]OFD Sender: No OFD packet to send [10:02:25]OFD Sender: No OFD packet to send [10:02:30]OFD Sender: No OFD packet to send [10:02:35]OFD Sender: No OFD packet to send [10:02:40]OFD Sender: No OFD packet to send [10:02:45]OFD Sender: No OFD packet to send [10:02:50]OFD Sender: No OFD packet to send [10:02:55]OFD Sender: No OFD packet to send [10:03:00]OFD Sender: No OFD packet to send [10:03:05]OFD Sender: No OFD packet to send [10:03:06]accept exits with 9 [10:03:06]New connection [10:03:06]New thread 3066821988 created [10:03:06]Thread 3066965348 joined [10:03:06]Waiting for new connection... [10:03:06] Sock 9.Parse request [10:03:06]Sock 9.Check first char [10:03:06]Sock 9.First char is OK [10:03:06]request: POST /json_proto HTTP/1.0 [10:03:06]Method: POST [10:03:06]URL: /json_proto [10:03:06]Method is POST - this is cgi request [10:03:06]url: /json_proto [10:03:06]query_string will be loaded in cgi processing [10:03:06]execute_cgi json_proto POST (null) [10:03:06]execute_cgi path=json_proto method=POST [10:03:06]POST find Content-Length [10:03:06]Host: 172.17.44.195:8080 [10:03:06]Content-Length: 683 [10:03:06]Content-Type: application/json [10:03:06] [10:03:06]POST finish read [10:03:06]Found Content-Length = 683 [10:03:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962790", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:03:06]execute_script... [10:03: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)1962790", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:03:06]POST & json_proto [10:03:06]process_json_proto [10:03:06]json parsed OK: [10:03:06]protocol is kg_v1.0 [10:03:06]action value=close_receipt [10:03:06]process_action close_receipt [10:03:06]cmd_close_receipt [10:03:06]MH_GetDate [10:03:06]Write to MH i2c: F0 00 00 32 45 66 [10:03:06]Write i2c OK [10:03:06]MH_I2C_Read... [10:03:06]Read from MH i2c: F0 [10:03:06]MH_I2C_Read... [10:03:06]Read from MH i2c: F0 09 00 [10:03:06]MH_I2C_Read... [10:03:06]Read from MH i2c: F0 09 00 32 45 00 5E D5 14 67 82 C9 CF 66 9D [10:03:06]GetLastDocTimeStamp 1729418521 [10:03:06]current date 1729418590 [10:03:06]FM_GetShiftState [10:03:06]SAM_PROTO_GetShiftState [10:03:06]wFMCommunicate request_size=4 [10:03:06]MH_SAM_APDU [10:03:06]CAPDU: 80 13 01 00 [10:03:06]Write to MH i2c: E2 08 00 33 45 80 13 01 00 00 00 00 00 F5 [10:03:06]Write i2c OK [10:03:06]MH_I2C_Read... [10:03:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:06]Read from MH i2c: E2 [10:03:06]MH_I2C_Read... [10:03:06]Read from MH i2c: E2 0E 00 [10:03:06]MH_I2C_Read... [10:03:06]Read from MH i2c: E2 0E 00 33 45 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 0F [10:03:06]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:03:06]wFMCommunicate OK [10:03:06]SAM_PROTO_GetShiftState done [10:03:06]FM_GetShiftState done [10:03:06]opened in 1729383750 [10:03:06]opened+sec_in_day 1729470150 [10:03:06]quantity*price = 100015 [10:03:06]sum+1 = 100017 [10:03:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 164 20.10.2024 10:03 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227316 ФПД: 94821543692184 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T100310&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227316&fm=94821543692184&tin=02508201610067®Number=0000000000091685&sum=100000 [10:03:07]StoreToDocumentArchive [10:03:07]shift 533 fd 227316 [10:03:07]save to /storage/0533/doc_00227316 [10:03:07]save last doc name /storage/0533/doc_00227316 to /storage/kkm_last_doc_name [10:03:07]save OK [10:03:07]Clear old archive folders... [10:03:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:03:07]tlvbuf is 00512A00 [10:03:07]SAM_PROTO_ClearQueue [10:03:07]wFMCommunicate request_size=4 [10:03:07]MH_SAM_APDU [10:03:07]CAPDU: 80 09 00 00 [10:03:07]Write to MH i2c: E2 08 00 40 45 80 09 00 00 00 00 00 00 F7 [10:03:07]Write i2c OK [10:03:07]MH_I2C_Read... [10:03:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:03:07]Read from MH i2c: E2 [10:03:07]MH_I2C_Read... [10:03:07]Read from MH i2c: E2 03 00 [10:03:07]MH_I2C_Read... [10:03:07]Read from MH i2c: E2 03 00 40 45 00 90 00 F9 [10:03:07]RAPDU: 90 00 [10:03:07]wFMCommunicate OK [10:03:07]SAM_PROTO_ClearQueue done [10:03:07]KKMCreateOFDPacket [10:03:07]OFDProtocolAddRootSTLVToBuf [10:03:07]FM_MakeSignedData [10:03:07]FM_MakeSignedData [10:03:07]SAM_PROTO_SignData [10:03:07]wFMCommunicate request_size=4 [10:03:07]MH_SAM_APDU [10:03:07]CAPDU: 80 0D 01 02 [10:03:07]Write to MH i2c: E2 08 00 41 45 80 0D 01 02 00 00 00 00 FF [10:03:07]Write i2c OK [10:03:07]MH_I2C_Read... [10:03:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:03:07]Read from MH i2c: E2 [10:03:07]MH_I2C_Read... [10:03:07]Read from MH i2c: E2 03 00 [10:03:07]MH_I2C_Read... [10:03:07]Read from MH i2c: E2 03 00 41 45 00 90 00 FA [10:03:07]RAPDU: 90 00 [10:03:07]wFMCommunicate OK [10:03:07]wFMCommunicate request_size=255 [10:03:07]MH_SAM_APDU [10:03:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 5E D5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F4 77 03 00 35 04 06 00 56 [10:03:07]Write to MH i2c: E2 02 01 42 45 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 5E D5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F4 77 03 00 35 04 06 00 56 00 00 BD [10:03:07]Write i2c OK [10:03:07]MH_I2C_Read... [10:03:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:07]Read from MH i2c: E2 [10:03:07]MH_I2C_Read... [10:03:07]Read from MH i2c: E2 03 00 [10:03:07]MH_I2C_Read... [10:03:07]Read from MH i2c: E2 03 00 42 45 00 90 00 FB [10:03:07]RAPDU: 90 00 [10:03:07]wFMCommunicate OK [10:03:07]wFMCommunicate request_size=10 [10:03:07]MH_SAM_APDU [10:03:07]CAPDU: 80 0D 02 02 05 3D 5C 6D C7 98 [10:03:07]Write to MH i2c: E2 0D 00 43 45 80 0D 02 02 05 00 3D 5C 6D C7 98 00 00 71 [10:03:07]Write i2c OK [10:03:07]MH_I2C_Read... [10:03:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:07]Read from MH i2c: E2 [10:03:07]MH_I2C_Read... [10:03:07]Read from MH i2c: E2 03 00 [10:03:07]MH_I2C_Read... [10:03:07]Read from MH i2c: E2 03 00 43 45 00 90 00 FC [10:03:07]RAPDU: 90 00 [10:03:07]wFMCommunicate OK [10:03:07]wFMCommunicate request_size=4 [10:03:07]MH_SAM_APDU [10:03:07]CAPDU: 80 0D 03 02 [10:03:07]Write to MH i2c: E2 08 00 44 45 80 0D 03 02 00 00 00 00 04 [10:03:07]Write i2c OK [10:03:07]MH_I2C_Read... [10:03:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:03:07]Read from MH i2c: E2 [10:03:07]MH_I2C_Read... [10:03:07]Read from MH i2c: E2 0B 00 [10:03:07]MH_I2C_Read... [10:03:07]Read from MH i2c: E2 0B 00 44 45 00 D7 DE 40 60 20 EC 42 D1 90 00 79 [10:03:07]RAPDU: D7 DE 40 60 20 EC 42 D1 90 00 [10:03:07]wFMCommunicate OK [10:03:07]SAM_PROTO_SignData done [10:03:07]FM_MakeSignedData done [10:03:07]CreateOFDProtocolMessage [10:03:07]wFMCommunicate request_size=4 [10:03:07]MH_SAM_APDU [10:03:07]CAPDU: 80 11 00 00 [10:03:07]Write to MH i2c: E2 08 00 45 45 80 11 00 00 00 00 00 00 04 [10:03:07]Write i2c OK [10:03:07]MH_I2C_Read... [10:03:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:07]Read from MH i2c: E2 [10:03:07]MH_I2C_Read... [10:03:07]Read from MH i2c: E2 17 00 [10:03:07]MH_I2C_Read... [10:03:07]Read from MH i2c: E2 17 00 45 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 5B [10:03:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:03:07]wFMCommunicate OK [10:03:07]CreateOFDProtocolMessage done [10:03:07]OFDSenderStorePacket 227316 [10:03:07]StoreOFDPacket docnum=227316 [10:03:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 4A FE 07 01 66 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 5E D5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F4 77 03 00 35 04 06 00 56 3D 5C 6D C7 98 D7 DE 40 60 20 EC 42 D1 [10:03:07]CheckFolder [10:03:07]dirname=/storage/ofd_packets [10:03:07]CheckFolder done [10:03:07]ProducePacketName [10:03:07]name=ofd_packets/00227316 [10:03:07]NVStorageSaveData ofd_packets/00227316 [10:03:07]File name is /storage/ofd_packets/00227316 [10:03:07]Write 301 bytes [10:03:07]NVStorageSaveData done [10:03:07]OFDSenderStorePacket done [10:03:07]KKMCreateOFDPacket done [10:03:07]NVStorageSaveData kkm_last_timestamp [10:03:07]File name is /storage/kkm_last_timestamp [10:03:07]Write 4 bytes [10:03:07]NVStorageSaveData done [10:03:07]ExternCall_PrintAddStr [10:03:07]wPrintStart [10:03:07]Write to MH i2c: 01 00 00 46 45 8B [10:03:07]Write i2c OK [10:03:07]MH_I2C_Read... [10:03:07]Read from MH i2c: 01 [10:03:07]MH_I2C_Read... [10:03:07]Read from MH i2c: 01 07 00 [10:03:07]MH_I2C_Read... [10:03:07]Read from MH i2c: 01 07 00 46 45 00 00 00 00 00 FF 0F A0 [10:03:07]RasterBufferAndPrint [10:03:07]line Счет N : (1)1962790 [10:03:07]line ИНН: 02508201610067 [10:03:07]line Контрольно-Кассовый Чек [10:03:07]line ПРОДАЖА [10:03:07]line ТРК (МРК, ГНК) : 43 [10:03:07]line Товар: 2710124130 [10:03:07]line Аи-92-К-5 [10:03:07]line 14.950 * 66.90 [10:03:07]line = 1000.16 [10:03:07]line НДС 12% НСП 1% [10:03:07]line > о реализуемом товаре [10:03:07]line ОКРУГЛЕНИЕ: -0.16 [10:03:07]line ИТОГО: 1000.00 [10:03:07]line Внесено: 1000.00 [10:03:07]line СДАЧА: 0.00 [10:03:07]line НСП 1% : 8.85 [10:03:07]line НДС 12% : 106.21 [10:03:07]line Наличными: 1000.00 [10:03:07]line Безнал.: 0.00 [10:03:07]line Место: АЗС № 133 "Партнер Нефть" [10:03:07]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:03:07]line СНО: Общий режим [10:03:07]line Чек 164 20.10.2024 10:03 [10:03:07]line Смена: 533 ФФД: 1.0 [10:03:07]line ЗНМ: 0300000091 [10:03:07]line РНМ: 0000000000091685 [10:03:07]line Версия ККМ: 001 [10:03:07]line ФМ: 0000000000871839 [10:03:07]line ФД: 227316 [10:03:07]line ФПД: 94821543692184 [10:03:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T100310&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227316&fm=94821543692184&tin=02508201610067®Number=0000000000091685&sum=100000 [10:03:08]written 0, free lines is 4095 [10:03:08]OFD Sender: Processing packet 227316 [packets to send 38, broken 37] [10:03:08]ProducePacketName [10:03:08]name=ofd_packets/00227316 [10:03:08]OFD Sender: To server: pG, [10:03:08]CommunicateWithHost lk.salyk.kg:30040 [10:03:08]ConnectInit lk.salyk.kg [10:03:08]Connected sock=10 [10:03:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 4A FE 07 01 66 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 5E D5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F4 77 03 00 35 04 06 00 56 3D 5C 6D C7 98 D7 DE 40 60 20 EC 42 D1 [10:03:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 D9 52 47 00 CA C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F4 77 03 00 F4 03 04 00 5D 80 14 67 B6 04 01 00 00 08 FD 43 F2 19 5C 6F 3C [10:03:08]CommunicateWithHost err = 0 [10:03:08]CheckOFDResponse [10:03:08]1017 (14) - 77093643461234 [10:03:08]1041 (16) - 0000000000871839 [10:03:08]1040 (4) - 227316 [10:03:08]1012 (4) - 20.10.2024 04:00 [10:03:08]1206 (1) - 0 [10:03:08]OFD Sender: Remove packet 227316 [10:03:08]ProducePacketName [10:03:08]name=ofd_packets/00227316 [10:03:08]NVStorageDeleteData [10:03:08]Write to MH i2c: 01 00 00 70 45 B5 [10:03:08]Write i2c OK [10:03:08]MH_I2C_Read... [10:03:08]Read from MH i2c: 01 [10:03:08]MH_I2C_Read... [10:03:08]Read from MH i2c: 01 07 00 [10:03:08]MH_I2C_Read... [10:03:08]Read from MH i2c: 01 07 00 70 45 00 00 00 00 00 0E 0D D7 [10:03:08]RasterBufferAndPrint [10:03:08]line [10:03:08]line [10:03:08]line [10:03:08]line [10:03:08]line [10:03:08]written 0, free lines is 3351 [10:03:08]process_action close_receipt done [10:03:08]requested_data is exist [10:03:08]produce_requested_data [10:03:08]requested_item fm.sn is exist - process it [10:03:08]wFMCommunicate request_size=4 [10:03:08]MH_SAM_APDU [10:03:08]CAPDU: 80 11 00 00 [10:03:08]Write to MH i2c: E2 08 00 77 45 80 11 00 00 00 00 00 00 36 [10:03:08]Write i2c OK [10:03:08]MH_I2C_Read... [10:03:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:08]Read from MH i2c: E2 [10:03:08]MH_I2C_Read... [10:03:08]Read from MH i2c: E2 17 00 [10:03:08]MH_I2C_Read... [10:03:08]Read from MH i2c: E2 17 00 77 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 8D [10:03:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:03:08]wFMCommunicate OK [10:03:08]requested_item fd.num is exist - process it [10:03:08]SAM_PROTO_GetFieldsCounters [10:03:08]wFMCommunicate request_size=4 [10:03:08]MH_SAM_APDU [10:03:08]CAPDU: 80 13 00 00 [10:03:08]Write to MH i2c: E2 08 00 78 45 80 13 00 00 00 00 00 00 39 [10:03:08]Write i2c OK [10:03:08]MH_I2C_Read... [10:03:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:03:08]Read from MH i2c: E2 [10:03:08]MH_I2C_Read... [10:03:08]Read from MH i2c: E2 62 00 [10:03:08]MH_I2C_Read... [10:03:08]Read from MH i2c: E2 62 00 78 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F4 77 03 00 0E 04 04 00 15 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 D3 [10:03: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F4 77 03 00 0E 04 04 00 15 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 [10:03:08]wFMCommunicate OK [10:03:08]SAM_PROTO_GetFieldsCounters done [10:03:08]requested_item shift.num is exist - process it [10:03:08]requested_item shift.opened is exist - process it [10:03:08]req_shift_opened [10:03:08]FM_GetShiftState [10:03:08]SAM_PROTO_GetShiftState [10:03:08]wFMCommunicate request_size=4 [10:03:08]MH_SAM_APDU [10:03:08]CAPDU: 80 13 01 00 [10:03:08]Write to MH i2c: E2 08 00 79 45 80 13 01 00 00 00 00 00 3B [10:03:08]Write i2c OK [10:03:08]MH_I2C_Read... [10:03:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:09]Read from MH i2c: E2 [10:03:09]MH_I2C_Read... [10:03:09]Read from MH i2c: E2 0E 00 [10:03:09]MH_I2C_Read... [10:03:09]Read from MH i2c: E2 0E 00 79 45 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 55 [10:03:09]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:03:09]wFMCommunicate OK [10:03:09]SAM_PROTO_GetShiftState done [10:03:09]FM_GetShiftState done [10:03:09]req_shift_opened done [10:03:09]requested_item shift.open_date is exist - process it [10:03:09]req_shift_open_date [10:03:09]req_shift_open_date done [10:03:09]produce_requested_data done [10:03:09]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227316,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [10:03:09]process_action_free close_receipt [10:03:09]json_value_free [10:03:09]json_value_free done [10:03:09]process_json_proto returns [10:03:09]Send response to host [10:03:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227316,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [10:03:09]free response buf [10:03:09]execute_script done [10:03:09]execute_script returns [10:03:09]free content buf [10:03:09]Sock 9.Close socket [10:03:09]Sock 9.Thread stoped [10:03:09]OFD Sender: No OFD packet to send [10:03:13]int [10:03:13]Write to MH i2c: 01 00 00 7A 45 BF [10:03:13]*** FLAG_PRN_PAP1 set [10:03:13]Write i2c OK [10:03:13]MH_I2C_Read... [10:03:13]Read from MH i2c: 01 [10:03:13]MH_I2C_Read... [10:03:13]Read from MH i2c: 01 07 00 [10:03:13]MH_I2C_Read... [10:03:13]Read from MH i2c: 01 07 00 7A 45 00 01 00 00 00 FF 0F D5 [10:03:13]state=0 [10:03:13]No paper [10:03:13]int [10:03:13]Write to MH i2c: 01 00 00 7B 45 C0 [10:03:13]*** FLAG_PRN_PAP2 set [10:03:13]Write i2c OK [10:03:13]MH_I2C_Read... [10:03:13]Read from MH i2c: 01 [10:03:13]MH_I2C_Read... [10:03:13]Read from MH i2c: 01 07 00 [10:03:13]MH_I2C_Read... [10:03:13]Read from MH i2c: 01 07 00 7B 45 00 03 00 00 00 FF 0F D8 [10:03:13]state=0 [10:03:13]No paper [10:03:13]Cover opened [10:03:14]OFD Sender: No OFD packet to send [10:03:18]int [10:03:18]Write to MH i2c: 01 00 00 7C 45 C1 [10:03:18]*** FLAG_PRN_PAP1 reset [10:03:18]*** FLAG_PRN_PAP2 reset [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 7C 45 00 00 00 00 00 FF 0F D6 [10:03:18]state=3 [10:03:18]Cover closed [10:03:19]OFD Sender: No OFD packet to send [10:03:24]OFD Sender: No OFD packet to send [10:03:29]OFD Sender: No OFD packet to send [10:03:34]OFD Sender: No OFD packet to send [10:03:39]OFD Sender: No OFD packet to send [10:03:44]OFD Sender: No OFD packet to send [10:03:49]OFD Sender: No OFD packet to send [10:03:54]OFD Sender: No OFD packet to send [10:03:59]OFD Sender: No OFD packet to send [10:04:04]OFD Sender: No OFD packet to send [10:04:09]OFD Sender: No OFD packet to send [10:04:14]OFD Sender: No OFD packet to send [10:04:19]OFD Sender: No OFD packet to send [10:04:24]OFD Sender: No OFD packet to send [10:04:29]OFD Sender: No OFD packet to send [10:04:29]accept exits with 8 [10:04:29]New connection [10:04:29]New thread 3066965348 created [10:04:29]Thread 3066821988 joined [10:04:29]Waiting for new connection... [10:04:29] Sock 8.Parse request [10:04:29]Sock 8.Check first char [10:04:29]Sock 8.First char is OK [10:04:29]request: POST /json_proto HTTP/1.0 [10:04:29]Method: POST [10:04:29]URL: /json_proto [10:04:29]Method is POST - this is cgi request [10:04:29]url: /json_proto [10:04:29]query_string will be loaded in cgi processing [10:04:29]execute_cgi json_proto POST (null) [10:04:29]execute_cgi path=json_proto method=POST [10:04:29]POST find Content-Length [10:04:29]Host: 172.17.44.195:8080 [10:04:29]Content-Length: 680 [10:04:29]Content-Type: application/json [10:04:29] [10:04:29]POST finish read [10:04:29]Found Content-Length = 680 [10:04:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962791", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:29]execute_script... [10:04: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)1962791", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:29]POST & json_proto [10:04:29]process_json_proto [10:04:29]json parsed OK: [10:04:29]protocol is kg_v1.0 [10:04:29]action value=close_receipt [10:04:29]process_action close_receipt [10:04:29]cmd_close_receipt [10:04:29]MH_GetDate [10:04:29]Write to MH i2c: F0 00 00 7D 45 B1 [10:04:29]Write i2c OK [10:04:29]MH_I2C_Read... [10:04:29]Read from MH i2c: F0 [10:04:29]MH_I2C_Read... [10:04:29]Read from MH i2c: F0 09 00 [10:04:29]MH_I2C_Read... [10:04:29]Read from MH i2c: F0 09 00 7D 45 00 B1 D5 14 67 82 C9 CF 66 3B [10:04:29]GetLastDocTimeStamp 1729418590 [10:04:29]current date 1729418673 [10:04:29]FM_GetShiftState [10:04:29]SAM_PROTO_GetShiftState [10:04:29]wFMCommunicate request_size=4 [10:04:29]MH_SAM_APDU [10:04:29]CAPDU: 80 13 01 00 [10:04:29]Write to MH i2c: E2 08 00 7E 45 80 13 01 00 00 00 00 00 40 [10:04:29]Write i2c OK [10:04:29]MH_I2C_Read... [10:04:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:29]Read from MH i2c: E2 [10:04:29]MH_I2C_Read... [10:04:29]Read from MH i2c: E2 0E 00 [10:04:29]MH_I2C_Read... [10:04:29]Read from MH i2c: E2 0E 00 7E 45 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 5A [10:04:29]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:04:29]wFMCommunicate OK [10:04:29]SAM_PROTO_GetShiftState done [10:04:29]FM_GetShiftState done [10:04:29]opened in 1729383750 [10:04:29]opened+sec_in_day 1729470150 [10:04:29]quantity*price = 100050 [10:04:29]sum+1 = 100052 [10:04:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 165 20.10.2024 10:04 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227317 ФПД: 56171594806773 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T100433&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227317&fm=56171594806773&tin=02508201610067®Number=0000000000091685&sum=100000 [10:04:30]StoreToDocumentArchive [10:04:30]shift 533 fd 227317 [10:04:30]save to /storage/0533/doc_00227317 [10:04:30]save last doc name /storage/0533/doc_00227317 to /storage/kkm_last_doc_name [10:04:30]save OK [10:04:30]Clear old archive folders... [10:04:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:04:30]tlvbuf is 00568F70 [10:04:30]SAM_PROTO_ClearQueue [10:04:30]wFMCommunicate request_size=4 [10:04:30]MH_SAM_APDU [10:04:30]CAPDU: 80 09 00 00 [10:04:30]Write to MH i2c: E2 08 00 8B 45 80 09 00 00 00 00 00 00 42 [10:04:30]Write i2c OK [10:04:30]MH_I2C_Read... [10:04:30]Read from MH i2c: E2 [10:04:30]MH_I2C_Read... [10:04:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:04:30]Read from MH i2c: E2 03 00 [10:04:30]MH_I2C_Read... [10:04:30]Read from MH i2c: E2 03 00 8B 45 00 90 00 44 [10:04:30]RAPDU: 90 00 [10:04:30]wFMCommunicate OK [10:04:30]SAM_PROTO_ClearQueue done [10:04:30]KKMCreateOFDPacket [10:04:30]OFDProtocolAddRootSTLVToBuf [10:04:30]FM_MakeSignedData [10:04:30]FM_MakeSignedData [10:04:30]SAM_PROTO_SignData [10:04:30]wFMCommunicate request_size=4 [10:04:30]MH_SAM_APDU [10:04:30]CAPDU: 80 0D 01 02 [10:04:30]Write to MH i2c: E2 08 00 8C 45 80 0D 01 02 00 00 00 00 4A [10:04:30]Write i2c OK [10:04:30]MH_I2C_Read... [10:04:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:04:30]Read from MH i2c: E2 [10:04:30]MH_I2C_Read... [10:04:30]Read from MH i2c: E2 03 00 [10:04:30]MH_I2C_Read... [10:04:30]Read from MH i2c: E2 03 00 8C 45 00 90 00 45 [10:04:30]RAPDU: 90 00 [10:04:30]wFMCommunicate OK [10:04:30]wFMCommunicate request_size=255 [10:04:30]MH_SAM_APDU [10:04:30]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 B1 D5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F5 77 03 00 35 04 06 00 33 16 77 F4 [10:04:30]Write to MH i2c: E2 02 01 8D 45 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 B1 D5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F5 77 03 00 35 04 06 00 33 16 77 F4 00 00 B7 [10:04:30]Write i2c OK [10:04:30]MH_I2C_Read... [10:04:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:31]Read from MH i2c: E2 [10:04:31]MH_I2C_Read... [10:04:31]Read from MH i2c: E2 03 00 [10:04:31]MH_I2C_Read... [10:04:31]Read from MH i2c: E2 03 00 8D 45 00 90 00 46 [10:04:31]RAPDU: 90 00 [10:04:31]wFMCommunicate OK [10:04:31]wFMCommunicate request_size=7 [10:04:31]MH_SAM_APDU [10:04:31]CAPDU: 80 0D 02 02 02 75 F5 [10:04:31]Write to MH i2c: E2 0A 00 8E 45 80 0D 02 02 02 00 75 F5 00 00 BB [10:04:31]Write i2c OK [10:04:31]MH_I2C_Read... [10:04:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:31]Read from MH i2c: E2 [10:04:31]MH_I2C_Read... [10:04:31]Read from MH i2c: E2 03 00 [10:04:31]MH_I2C_Read... [10:04:31]Read from MH i2c: E2 03 00 8E 45 00 90 00 47 [10:04:31]RAPDU: 90 00 [10:04:31]wFMCommunicate OK [10:04:31]wFMCommunicate request_size=4 [10:04:31]MH_SAM_APDU [10:04:31]CAPDU: 80 0D 03 02 [10:04:31]Write to MH i2c: E2 08 00 8F 45 80 0D 03 02 00 00 00 00 4F [10:04:31]Write i2c OK [10:04:31]MH_I2C_Read... [10:04:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:04:31]Read from MH i2c: E2 [10:04:31]MH_I2C_Read... [10:04:31]Read from MH i2c: E2 0B 00 [10:04:31]MH_I2C_Read... [10:04:31]Read from MH i2c: E2 0B 00 8F 45 00 A8 46 A3 DC 9E 22 16 F3 90 00 86 [10:04:31]RAPDU: A8 46 A3 DC 9E 22 16 F3 90 00 [10:04:31]wFMCommunicate OK [10:04:31]SAM_PROTO_SignData done [10:04:31]FM_MakeSignedData done [10:04:31]CreateOFDProtocolMessage [10:04:31]wFMCommunicate request_size=4 [10:04:31]MH_SAM_APDU [10:04:31]CAPDU: 80 11 00 00 [10:04:31]Write to MH i2c: E2 08 00 90 45 80 11 00 00 00 00 00 00 4F [10:04:31]Write i2c OK [10:04:31]MH_I2C_Read... [10:04:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:31]Read from MH i2c: E2 [10:04:31]MH_I2C_Read... [10:04:31]Read from MH i2c: E2 17 00 [10:04:31]MH_I2C_Read... [10:04:31]Read from MH i2c: E2 17 00 90 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A6 [10:04:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:04:31]wFMCommunicate OK [10:04:31]CreateOFDProtocolMessage done [10:04:31]OFDSenderStorePacket 227317 [10:04:31]StoreOFDPacket docnum=227317 [10:04:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 E2 A0 04 01 42 46 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 B1 D5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F5 77 03 00 35 04 06 00 33 16 77 F4 75 F5 A8 46 A3 DC 9E 22 16 F3 [10:04:31]CheckFolder [10:04:31]dirname=/storage/ofd_packets [10:04:31]CheckFolder done [10:04:31]ProducePacketName [10:04:31]name=ofd_packets/00227317 [10:04:31]NVStorageSaveData ofd_packets/00227317 [10:04:31]File name is /storage/ofd_packets/00227317 [10:04:31]Write 298 bytes [10:04:31]NVStorageSaveData done [10:04:31]OFDSenderStorePacket done [10:04:31]KKMCreateOFDPacket done [10:04:31]NVStorageSaveData kkm_last_timestamp [10:04:31]File name is /storage/kkm_last_timestamp [10:04:31]Write 4 bytes [10:04:31]NVStorageSaveData done [10:04:31]ExternCall_PrintAddStr [10:04:31]wPrintStart [10:04:31]Write to MH i2c: 01 00 00 91 45 D6 [10:04:31]Write i2c OK [10:04:31]MH_I2C_Read... [10:04:31]Read from MH i2c: 01 [10:04:31]MH_I2C_Read... [10:04:31]Read from MH i2c: 01 07 00 [10:04:31]MH_I2C_Read... [10:04:31]Read from MH i2c: 01 07 00 91 45 00 00 00 00 00 FF 0F EB [10:04:31]RasterBufferAndPrint [10:04:31]line Счет N : (1)1962791 [10:04:31]line ИНН: 02508201610067 [10:04:31]line Контрольно-Кассовый Чек [10:04:31]line ПРОДАЖА [10:04:31]line ТРК (МРК, ГНК) : 11 [10:04:31]line Товар: 2710194210 [10:04:31]line ДТ-К-5 [10:04:31]line 13.130 * 76.20 [10:04:31]line = 1000.51 [10:04:31]line НДС 12% НСП 1% [10:04:31]line > о реализуемом товаре [10:04:31]line ОКРУГЛЕНИЕ: -0.51 [10:04:31]line ИТОГО: 1000.00 [10:04:31]line Внесено: 1000.00 [10:04:31]line СДАЧА: 0.00 [10:04:31]line НСП 1% : 8.85 [10:04:31]line НДС 12% : 106.25 [10:04:31]line Наличными: 1000.00 [10:04:31]line Безнал.: 0.00 [10:04:31]line Место: АЗС № 133 "Партнер Нефть" [10:04:31]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:04:31]line СНО: Общий режим [10:04:31]line Чек 165 20.10.2024 10:04 [10:04:31]line Смена: 533 ФФД: 1.0 [10:04:31]line ЗНМ: 0300000091 [10:04:31]line РНМ: 0000000000091685 [10:04:31]line Версия ККМ: 001 [10:04:31]line ФМ: 0000000000871839 [10:04:31]line ФД: 227317 [10:04:31]line ФПД: 56171594806773 [10:04:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T100433&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227317&fm=56171594806773&tin=02508201610067®Number=0000000000091685&sum=100000 [10:04:31]OFD Sender: Processing packet 227317 [packets to send 38, broken 37] [10:04:31]ProducePacketName [10:04:31]name=ofd_packets/00227317 [10:04:31]OFD Sender: To server: pG, [10:04:31]CommunicateWithHost lk.salyk.kg:30040 [10:04:31]ConnectInit lk.salyk.kg [10:04:31]written 0, free lines is 4095 [10:04:31]Connected sock=10 [10:04: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 33 39 0C 01 00 00 E2 A0 04 01 42 46 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 B1 D5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F5 77 03 00 35 04 06 00 33 16 77 F4 75 F5 A8 46 A3 DC 9E 22 16 F3 [10:04: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 33 39 4F 00 00 00 D6 7C 47 00 0B 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 33 39 10 04 04 00 F5 77 03 00 F4 03 04 00 B1 80 14 67 B6 04 01 00 00 20 2C EC 5C 9E 40 C9 81 [10:04:31]CommunicateWithHost err = 0 [10:04:31]CheckOFDResponse [10:04:31]1017 (14) - 77093643461234 [10:04:31]1041 (16) - 0000000000871839 [10:04:31]1040 (4) - 227317 [10:04:31]1012 (4) - 20.10.2024 04:01 [10:04:31]1206 (1) - 0 [10:04:31]OFD Sender: Remove packet 227317 [10:04:31]ProducePacketName [10:04:31]name=ofd_packets/00227317 [10:04:31]NVStorageDeleteData [10:04:32]Write to MH i2c: 01 00 00 BB 45 00 [10:04:32]Write i2c OK [10:04:32]MH_I2C_Read... [10:04:32]Read from MH i2c: 01 [10:04:32]MH_I2C_Read... [10:04:32]Read from MH i2c: 01 07 00 [10:04:32]MH_I2C_Read... [10:04:32]Read from MH i2c: 01 07 00 BB 45 00 00 00 00 00 0A 0D 1E [10:04:32]RasterBufferAndPrint [10:04:32]line [10:04:32]line [10:04:32]line [10:04:32]line [10:04:32]line [10:04:32]written 0, free lines is 3344 [10:04:32]process_action close_receipt done [10:04:32]requested_data is exist [10:04:32]produce_requested_data [10:04:32]requested_item fm.sn is exist - process it [10:04:32]wFMCommunicate request_size=4 [10:04:32]MH_SAM_APDU [10:04:32]CAPDU: 80 11 00 00 [10:04:32]Write to MH i2c: E2 08 00 C2 45 80 11 00 00 00 00 00 00 81 [10:04:32]Write i2c OK [10:04:32]MH_I2C_Read... [10:04:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:32]Read from MH i2c: E2 [10:04:32]MH_I2C_Read... [10:04:32]Read from MH i2c: E2 17 00 [10:04:32]MH_I2C_Read... [10:04:32]Read from MH i2c: E2 17 00 C2 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D8 [10:04:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:04:32]wFMCommunicate OK [10:04:32]requested_item fd.num is exist - process it [10:04:32]SAM_PROTO_GetFieldsCounters [10:04:32]wFMCommunicate request_size=4 [10:04:32]MH_SAM_APDU [10:04:32]CAPDU: 80 13 00 00 [10:04:32]Write to MH i2c: E2 08 00 C3 45 80 13 00 00 00 00 00 00 84 [10:04:32]Write i2c OK [10:04:32]MH_I2C_Read... [10:04:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:04:32]Read from MH i2c: E2 [10:04:32]MH_I2C_Read... [10:04:32]Read from MH i2c: E2 62 00 [10:04:32]MH_I2C_Read... [10:04:32]Read from MH i2c: E2 62 00 C3 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F5 77 03 00 0E 04 04 00 15 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 22 [10:04:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F5 77 03 00 0E 04 04 00 15 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 [10:04:32]wFMCommunicate OK [10:04:32]SAM_PROTO_GetFieldsCounters done [10:04:32]requested_item shift.num is exist - process it [10:04:32]requested_item shift.opened is exist - process it [10:04:32]req_shift_opened [10:04:32]FM_GetShiftState [10:04:32]SAM_PROTO_GetShiftState [10:04:32]wFMCommunicate request_size=4 [10:04:32]MH_SAM_APDU [10:04:32]CAPDU: 80 13 01 00 [10:04:32]Write to MH i2c: E2 08 00 C4 45 80 13 01 00 00 00 00 00 86 [10:04:32]Write i2c OK [10:04:32]MH_I2C_Read... [10:04:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:32]Read from MH i2c: E2 [10:04:32]MH_I2C_Read... [10:04:32]Read from MH i2c: E2 0E 00 [10:04:32]MH_I2C_Read... [10:04:32]Read from MH i2c: E2 0E 00 C4 45 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 A0 [10:04:32]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:04:32]wFMCommunicate OK [10:04:32]SAM_PROTO_GetShiftState done [10:04:32]FM_GetShiftState done [10:04:32]req_shift_opened done [10:04:32]requested_item shift.open_date is exist - process it [10:04:32]req_shift_open_date [10:04:32]req_shift_open_date done [10:04:32]produce_requested_data done [10:04:32]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227317,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [10:04:32]process_action_free close_receipt [10:04:32]json_value_free [10:04:32]json_value_free done [10:04:32]process_json_proto returns [10:04:32]Send response to host [10:04:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227317,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [10:04:32]free response buf [10:04:32]execute_script done [10:04:32]execute_script returns [10:04:32]free content buf [10:04:32]Sock 8.Close socket [10:04:32]Sock 8.Thread stoped [10:04:32]OFD Sender: No OFD packet to send [10:04:37]OFD Sender: No OFD packet to send [10:04:42]OFD Sender: No OFD packet to send [10:04:47]OFD Sender: No OFD packet to send [10:04:49]accept exits with 9 [10:04:49]New connection [10:04:49]New thread 3066821988 created [10:04:49]Thread 3066965348 joined [10:04:49]Waiting for new connection... [10:04:49] Sock 9.Parse request [10:04:49]Sock 9.Check first char [10:04:49]Sock 9.First char is OK [10:04:49]request: POST /json_proto HTTP/1.0 [10:04:49]Method: POST [10:04:49]URL: /json_proto [10:04:49]Method is POST - this is cgi request [10:04:49]url: /json_proto [10:04:49]query_string will be loaded in cgi processing [10:04:49]execute_cgi json_proto POST (null) [10:04:49]execute_cgi path=json_proto method=POST [10:04:49]POST find Content-Length [10:04:49]Host: 172.17.44.195:8080 [10:04:49]Content-Length: 678 [10:04:49]Content-Type: application/json [10:04:49] [10:04:49]POST finish read [10:04:49]Found Content-Length = 678 [10:04:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962792", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:49]execute_script... [10:04:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962792", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:49]POST & json_proto [10:04:49]process_json_proto [10:04:49]json parsed OK: [10:04:49]protocol is kg_v1.0 [10:04:49]action value=close_receipt [10:04:49]process_action close_receipt [10:04:49]cmd_close_receipt [10:04:49]MH_GetDate [10:04:49]Write to MH i2c: F0 00 00 C5 45 F9 [10:04:49]Write i2c OK [10:04:49]MH_I2C_Read... [10:04:49]Read from MH i2c: F0 [10:04:49]MH_I2C_Read... [10:04:49]Read from MH i2c: F0 09 00 [10:04:49]MH_I2C_Read... [10:04:49]Read from MH i2c: F0 09 00 C5 45 00 C5 D5 14 67 82 C9 CF 66 97 [10:04:49]GetLastDocTimeStamp 1729418673 [10:04:49]current date 1729418693 [10:04:49]FM_GetShiftState [10:04:49]SAM_PROTO_GetShiftState [10:04:49]wFMCommunicate request_size=4 [10:04:49]MH_SAM_APDU [10:04:49]CAPDU: 80 13 01 00 [10:04:49]Write to MH i2c: E2 08 00 C6 45 80 13 01 00 00 00 00 00 88 [10:04:49]Write i2c OK [10:04:49]MH_I2C_Read... [10:04:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:49]Read from MH i2c: E2 [10:04:49]MH_I2C_Read... [10:04:49]Read from MH i2c: E2 0E 00 [10:04:49]MH_I2C_Read... [10:04:49]Read from MH i2c: E2 0E 00 C6 45 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 A2 [10:04:49]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:04:49]wFMCommunicate OK [10:04:49]SAM_PROTO_GetShiftState done [10:04:49]FM_GetShiftState done [10:04:49]opened in 1729383750 [10:04:49]opened+sec_in_day 1729470150 [10:04:49]quantity*price = 50041 [10:04:49]sum+1 = 50042 [10:04:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 166 20.10.2024 10:04 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227318 ФПД: 265319754662329 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T100453&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227318&fm=265319754662329&tin=02508201610067®Number=0000000000091685&sum=50000 [10:04:50]StoreToDocumentArchive [10:04:50]shift 533 fd 227318 [10:04:50]save to /storage/0533/doc_00227318 [10:04:50]save last doc name /storage/0533/doc_00227318 to /storage/kkm_last_doc_name [10:04:50]save OK [10:04:50]Clear old archive folders... [10:04:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:04:50]tlvbuf is 004DA9F0 [10:04:50]SAM_PROTO_ClearQueue [10:04:50]wFMCommunicate request_size=4 [10:04:50]MH_SAM_APDU [10:04:50]CAPDU: 80 09 00 00 [10:04:50]Write to MH i2c: E2 08 00 D3 45 80 09 00 00 00 00 00 00 8A [10:04:50]Write i2c OK [10:04:50]MH_I2C_Read... [10:04:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:04:50]Read from MH i2c: E2 [10:04:50]MH_I2C_Read... [10:04:50]Read from MH i2c: E2 03 00 [10:04:50]MH_I2C_Read... [10:04:50]Read from MH i2c: E2 03 00 D3 45 00 90 00 8C [10:04:50]RAPDU: 90 00 [10:04:50]wFMCommunicate OK [10:04:50]SAM_PROTO_ClearQueue done [10:04:50]KKMCreateOFDPacket [10:04:50]OFDProtocolAddRootSTLVToBuf [10:04:50]FM_MakeSignedData [10:04:50]FM_MakeSignedData [10:04:50]SAM_PROTO_SignData [10:04:50]wFMCommunicate request_size=4 [10:04:50]MH_SAM_APDU [10:04:50]CAPDU: 80 0D 01 02 [10:04:50]Write to MH i2c: E2 08 00 D4 45 80 0D 01 02 00 00 00 00 92 [10:04:50]Write i2c OK [10:04:50]MH_I2C_Read... [10:04:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:04:50]Read from MH i2c: E2 [10:04:50]MH_I2C_Read... [10:04:50]Read from MH i2c: E2 03 00 [10:04:50]MH_I2C_Read... [10:04:50]Read from MH i2c: E2 03 00 D4 45 00 90 00 8D [10:04:50]RAPDU: 90 00 [10:04:50]wFMCommunicate OK [10:04:50]wFMCommunicate request_size=255 [10:04:50]MH_SAM_APDU [10:04:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 C5 D5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F6 77 03 00 35 04 06 00 F1 [10:04:50]Write to MH i2c: E2 02 01 D5 45 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 C5 D5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F6 77 03 00 35 04 06 00 F1 00 00 5C [10:04:50]Write i2c OK [10:04:50]MH_I2C_Read... [10:04:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:50]Read from MH i2c: E2 [10:04:50]MH_I2C_Read... [10:04:50]Read from MH i2c: E2 03 00 [10:04:50]MH_I2C_Read... [10:04:50]Read from MH i2c: E2 03 00 D5 45 00 90 00 8E [10:04:50]RAPDU: 90 00 [10:04:50]wFMCommunicate OK [10:04:50]wFMCommunicate request_size=10 [10:04:50]MH_SAM_APDU [10:04:50]CAPDU: 80 0D 02 02 05 4E 91 BA 81 B9 [10:04:50]Write to MH i2c: E2 0D 00 D6 45 80 0D 02 02 05 00 4E 91 BA 81 B9 00 00 72 [10:04:50]Write i2c OK [10:04:50]MH_I2C_Read... [10:04:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:51]Read from MH i2c: E2 [10:04:51]MH_I2C_Read... [10:04:51]Read from MH i2c: E2 03 00 [10:04:51]MH_I2C_Read... [10:04:51]Read from MH i2c: E2 03 00 D6 45 00 90 00 8F [10:04:51]RAPDU: 90 00 [10:04:51]wFMCommunicate OK [10:04:51]wFMCommunicate request_size=4 [10:04:51]MH_SAM_APDU [10:04:51]CAPDU: 80 0D 03 02 [10:04:51]Write to MH i2c: E2 08 00 D7 45 80 0D 03 02 00 00 00 00 97 [10:04:51]Write i2c OK [10:04:51]MH_I2C_Read... [10:04:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:04:51]Read from MH i2c: E2 [10:04:51]MH_I2C_Read... [10:04:51]Read from MH i2c: E2 0B 00 [10:04:51]MH_I2C_Read... [10:04:51]Read from MH i2c: E2 0B 00 D7 45 00 19 A0 07 9C CE E8 3A 87 90 00 6B [10:04:51]RAPDU: 19 A0 07 9C CE E8 3A 87 90 00 [10:04:51]wFMCommunicate OK [10:04:51]SAM_PROTO_SignData done [10:04:51]FM_MakeSignedData done [10:04:51]CreateOFDProtocolMessage [10:04:51]wFMCommunicate request_size=4 [10:04:51]MH_SAM_APDU [10:04:51]CAPDU: 80 11 00 00 [10:04:51]Write to MH i2c: E2 08 00 D8 45 80 11 00 00 00 00 00 00 97 [10:04:51]Write i2c OK [10:04:51]MH_I2C_Read... [10:04:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:51]Read from MH i2c: E2 [10:04:51]MH_I2C_Read... [10:04:51]Read from MH i2c: E2 17 00 [10:04:51]MH_I2C_Read... [10:04:51]Read from MH i2c: E2 17 00 D8 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 EE [10:04:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:04:51]wFMCommunicate OK [10:04:51]CreateOFDProtocolMessage done [10:04:51]OFDSenderStorePacket 227318 [10:04:51]StoreOFDPacket docnum=227318 [10:04:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 A3 18 07 01 9F 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 C5 D5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F6 77 03 00 35 04 06 00 F1 4E 91 BA 81 B9 19 A0 07 9C CE E8 3A 87 [10:04:51]CheckFolder [10:04:51]dirname=/storage/ofd_packets [10:04:51]CheckFolder done [10:04:51]ProducePacketName [10:04:51]name=ofd_packets/00227318 [10:04:51]NVStorageSaveData ofd_packets/00227318 [10:04:51]File name is /storage/ofd_packets/00227318 [10:04:51]Write 301 bytes [10:04:51]NVStorageSaveData done [10:04:51]OFDSenderStorePacket done [10:04:51]KKMCreateOFDPacket done [10:04:51]NVStorageSaveData kkm_last_timestamp [10:04:51]File name is /storage/kkm_last_timestamp [10:04:51]Write 4 bytes [10:04:51]NVStorageSaveData done [10:04:51]ExternCall_PrintAddStr [10:04:51]wPrintStart [10:04:51]Write to MH i2c: 01 00 00 D9 45 1E [10:04:51]Write i2c OK [10:04:51]MH_I2C_Read... [10:04:51]Read from MH i2c: 01 [10:04:51]MH_I2C_Read... [10:04:51]Read from MH i2c: 01 07 00 [10:04:51]MH_I2C_Read... [10:04:51]Read from MH i2c: 01 07 00 D9 45 00 00 00 00 00 FF 0F 33 [10:04:51]RasterBufferAndPrint [10:04:51]line Счет N : (1)1962792 [10:04:51]line ИНН: 02508201610067 [10:04:51]line Контрольно-Кассовый Чек [10:04:51]line ПРОДАЖА [10:04:51]line ТРК (МРК, ГНК) : 53 [10:04:51]line Товар: 2710124130 [10:04:51]line Аи-92-К-5 [10:04:51]line 7.480 * 66.90 [10:04:51]line = 500.41 [10:04:51]line НДС 12% НСП 1% [10:04:51]line > о реализуемом товаре [10:04:51]line ОКРУГЛЕНИЕ: -0.41 [10:04:51]line ИТОГО: 500.00 [10:04:51]line Внесено: 500.00 [10:04:51]line СДАЧА: 0.00 [10:04:51]line НСП 1% : 4.43 [10:04:51]line НДС 12% : 53.14 [10:04:51]line Наличными: 500.00 [10:04:51]line Безнал.: 0.00 [10:04:51]line Место: АЗС № 133 "Партнер Нефть" [10:04:51]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:04:51]line СНО: Общий режим [10:04:51]line Чек 166 20.10.2024 10:04 [10:04:51]line Смена: 533 ФФД: 1.0 [10:04:51]line ЗНМ: 0300000091 [10:04:51]line РНМ: 0000000000091685 [10:04:51]line Версия ККМ: 001 [10:04:51]line ФМ: 0000000000871839 [10:04:51]line ФД: 227318 [10:04:51]line ФПД: 265319754662329 [10:04:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T100453&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227318&fm=265319754662329&tin=02508201610067®Number=0000000000091685&sum=50000 [10:04:51]OFD Sender: Processing packet 227318 [packets to send 38, broken 37] [10:04:51]ProducePacketName [10:04:51]name=ofd_packets/00227318 [10:04:51]OFD Sender: To server: pG, [10:04:51]CommunicateWithHost lk.salyk.kg:30040 [10:04:51]ConnectInit lk.salyk.kg [10:04:51]written 0, free lines is 4095 [10:04:51]Connected sock=10 [10:04:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 A3 18 07 01 9F 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 C5 D5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F6 77 03 00 35 04 06 00 F1 4E 91 BA 81 B9 19 A0 07 9C CE E8 3A 87 [10:04:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 64 46 47 00 62 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 33 39 10 04 04 00 F6 77 03 00 F4 03 04 00 C4 80 14 67 B6 04 01 00 00 C1 96 DD B6 FE F7 C2 6E [10:04:51]CommunicateWithHost err = 0 [10:04:51]CheckOFDResponse [10:04:51]1017 (14) - 77093643461234 [10:04:51]1041 (16) - 0000000000871839 [10:04:51]1040 (4) - 227318 [10:04:51]1012 (4) - 20.10.2024 04:02 [10:04:51]1206 (1) - 0 [10:04:51]OFD Sender: Remove packet 227318 [10:04:51]ProducePacketName [10:04:51]name=ofd_packets/00227318 [10:04:51]NVStorageDeleteData [10:04:51]Write to MH i2c: 01 00 00 03 46 49 [10:04:51]Write i2c OK [10:04:51]MH_I2C_Read... [10:04:51]Read from MH i2c: 01 [10:04:51]MH_I2C_Read... [10:04:51]Read from MH i2c: 01 07 00 [10:04:51]MH_I2C_Read... [10:04:51]Read from MH i2c: 01 07 00 03 46 00 00 00 00 00 0A 0D 67 [10:04:51]RasterBufferAndPrint [10:04:51]line [10:04:51]line [10:04:51]line [10:04:51]line [10:04:51]line [10:04:51]written 0, free lines is 3344 [10:04:51]process_action close_receipt done [10:04:51]requested_data is exist [10:04:51]produce_requested_data [10:04:51]requested_item fm.sn is exist - process it [10:04:51]wFMCommunicate request_size=4 [10:04:51]MH_SAM_APDU [10:04:51]CAPDU: 80 11 00 00 [10:04:51]Write to MH i2c: E2 08 00 0A 46 80 11 00 00 00 00 00 00 CA [10:04:51]Write i2c OK [10:04:51]MH_I2C_Read... [10:04:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:51]Read from MH i2c: E2 [10:04:51]MH_I2C_Read... [10:04:51]Read from MH i2c: E2 17 00 [10:04:51]MH_I2C_Read... [10:04:51]Read from MH i2c: E2 17 00 0A 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 21 [10:04:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:04:51]wFMCommunicate OK [10:04:51]requested_item fd.num is exist - process it [10:04:51]SAM_PROTO_GetFieldsCounters [10:04:51]wFMCommunicate request_size=4 [10:04:51]MH_SAM_APDU [10:04:51]CAPDU: 80 13 00 00 [10:04:51]Write to MH i2c: E2 08 00 0B 46 80 13 00 00 00 00 00 00 CD [10:04:51]Write i2c OK [10:04:51]MH_I2C_Read... [10:04:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:04:52]Read from MH i2c: E2 [10:04:52]MH_I2C_Read... [10:04:52]Read from MH i2c: E2 62 00 [10:04:52]MH_I2C_Read... [10:04:52]Read from MH i2c: E2 62 00 0B 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F6 77 03 00 0E 04 04 00 15 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 [10:04: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F6 77 03 00 0E 04 04 00 15 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 [10:04:52]wFMCommunicate OK [10:04:52]SAM_PROTO_GetFieldsCounters done [10:04:52]requested_item shift.num is exist - process it [10:04:52]requested_item shift.opened is exist - process it [10:04:52]req_shift_opened [10:04:52]FM_GetShiftState [10:04:52]SAM_PROTO_GetShiftState [10:04:52]wFMCommunicate request_size=4 [10:04:52]MH_SAM_APDU [10:04:52]CAPDU: 80 13 01 00 [10:04:52]Write to MH i2c: E2 08 00 0C 46 80 13 01 00 00 00 00 00 CF [10:04:52]Write i2c OK [10:04:52]MH_I2C_Read... [10:04:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:52]Read from MH i2c: E2 [10:04:52]MH_I2C_Read... [10:04:52]Read from MH i2c: E2 0E 00 [10:04:52]MH_I2C_Read... [10:04:52]Read from MH i2c: E2 0E 00 0C 46 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 E9 [10:04:52]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:04:52]wFMCommunicate OK [10:04:52]SAM_PROTO_GetShiftState done [10:04:52]FM_GetShiftState done [10:04:52]req_shift_opened done [10:04:52]requested_item shift.open_date is exist - process it [10:04:52]req_shift_open_date [10:04:52]req_shift_open_date done [10:04:52]produce_requested_data done [10:04:52]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227318,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [10:04:52]process_action_free close_receipt [10:04:52]json_value_free [10:04:52]json_value_free done [10:04:52]process_json_proto returns [10:04:52]Send response to host [10:04:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227318,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [10:04:52]free response buf [10:04:52]execute_script done [10:04:52]execute_script returns [10:04:52]free content buf [10:04:52]Sock 9.Close socket [10:04:52]Sock 9.Thread stoped [10:04:52]OFD Sender: No OFD packet to send [10:04:57]OFD Sender: No OFD packet to send [10:05:02]OFD Sender: No OFD packet to send [10:05:07]OFD Sender: No OFD packet to send [10:05:12]OFD Sender: No OFD packet to send [10:05:17]OFD Sender: No OFD packet to send [10:05:22]OFD Sender: No OFD packet to send [10:05:27]OFD Sender: No OFD packet to send [10:05:32]OFD Sender: No OFD packet to send [10:05:37]OFD Sender: No OFD packet to send [10:05:42]OFD Sender: No OFD packet to send [10:05:47]OFD Sender: No OFD packet to send [10:05:52]OFD Sender: No OFD packet to send [10:05:57]OFD Sender: No OFD packet to send [10:06:02]OFD Sender: No OFD packet to send [10:06:07]OFD Sender: No OFD packet to send [10:06:12]OFD Sender: No OFD packet to send [10:06:17]OFD Sender: No OFD packet to send [10:06:22]OFD Sender: No OFD packet to send [10:06:27]OFD Sender: No OFD packet to send [10:06:32]OFD Sender: No OFD packet to send [10:06:37]OFD Sender: No OFD packet to send [10:06:42]OFD Sender: No OFD packet to send [10:06:47]OFD Sender: No OFD packet to send [10:06:52]OFD Sender: No OFD packet to send [10:06:57]OFD Sender: No OFD packet to send [10:07:02]OFD Sender: No OFD packet to send [10:07:07]OFD Sender: No OFD packet to send [10:07:12]OFD Sender: No OFD packet to send [10:07:17]OFD Sender: No OFD packet to send [10:07:22]accept exits with 8 [10:07:22]New connection [10:07:22]New thread 3066965348 created [10:07:22]Thread 3066821988 joined [10:07:22]Waiting for new connection... [10:07:22] Sock 8.Parse request [10:07:22]Sock 8.Check first char [10:07:22]Sock 8.First char is OK [10:07:22]request: POST /json_proto HTTP/1.0 [10:07:22]Method: POST [10:07:22]URL: /json_proto [10:07:22]Method is POST - this is cgi request [10:07:22]url: /json_proto [10:07:22]query_string will be loaded in cgi processing [10:07:22]execute_cgi json_proto POST (null) [10:07:22]execute_cgi path=json_proto method=POST [10:07:22]POST find Content-Length [10:07:22]Host: 172.17.44.195:8080 [10:07:22]Content-Length: 680 [10:07:22]Content-Type: application/json [10:07:22] [10:07:22]POST finish read [10:07:22]Found Content-Length = 680 [10:07:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962793", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:07:22]execute_script... [10:07: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)1962793", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:07:22]POST & json_proto [10:07:22]process_json_proto [10:07:22]json parsed OK: [10:07:22]protocol is kg_v1.0 [10:07:22]action value=close_receipt [10:07:22]process_action close_receipt [10:07:22]cmd_close_receipt [10:07:22]MH_GetDate [10:07:22]Write to MH i2c: F0 00 00 0D 46 42 [10:07:22]Write i2c OK [10:07:22]MH_I2C_Read... [10:07:22]Read from MH i2c: F0 [10:07:22]MH_I2C_Read... [10:07:22]Read from MH i2c: F0 09 00 [10:07:22]MH_I2C_Read... [10:07:22]Read from MH i2c: F0 09 00 0D 46 00 5E D6 14 67 82 C9 CF 66 7A [10:07:22]GetLastDocTimeStamp 1729418693 [10:07:22]current date 1729418846 [10:07:22]FM_GetShiftState [10:07:22]SAM_PROTO_GetShiftState [10:07:22]wFMCommunicate request_size=4 [10:07:22]MH_SAM_APDU [10:07:22]CAPDU: 80 13 01 00 [10:07:22]Write to MH i2c: E2 08 00 0E 46 80 13 01 00 00 00 00 00 D1 [10:07:22]Write i2c OK [10:07:22]MH_I2C_Read... [10:07:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:22]Read from MH i2c: E2 [10:07:22]MH_I2C_Read... [10:07:22]Read from MH i2c: E2 0E 00 [10:07:22]MH_I2C_Read... [10:07:22]Read from MH i2c: E2 0E 00 0E 46 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 EB [10:07:22]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:07:22]wFMCommunicate OK [10:07:22]SAM_PROTO_GetShiftState done [10:07:22]FM_GetShiftState done [10:07:22]opened in 1729383750 [10:07:22]opened+sec_in_day 1729470150 [10:07:22]quantity*price = 200025 [10:07:22]sum+1 = 200026 [10:07:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 167 20.10.2024 10:07 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227319 ФПД: 21561606245800 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T100726&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227319&fm=21561606245800&tin=02508201610067®Number=0000000000091685&sum=200000 [10:07:23]StoreToDocumentArchive [10:07:23]shift 533 fd 227319 [10:07:23]save to /storage/0533/doc_00227319 [10:07:23]save last doc name /storage/0533/doc_00227319 to /storage/kkm_last_doc_name [10:07:23]save OK [10:07:23]Clear old archive folders... [10:07:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:07:23]tlvbuf is 004FDA10 [10:07:23]SAM_PROTO_ClearQueue [10:07:23]wFMCommunicate request_size=4 [10:07:23]MH_SAM_APDU [10:07:23]CAPDU: 80 09 00 00 [10:07:23]Write to MH i2c: E2 08 00 1B 46 80 09 00 00 00 00 00 00 D3 [10:07:23]Write i2c OK [10:07:23]MH_I2C_Read... [10:07:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:07:23]Read from MH i2c: E2 [10:07:23]MH_I2C_Read... [10:07:23]Read from MH i2c: E2 03 00 [10:07:23]MH_I2C_Read... [10:07:23]Read from MH i2c: E2 03 00 1B 46 00 90 00 D5 [10:07:23]RAPDU: 90 00 [10:07:23]wFMCommunicate OK [10:07:23]SAM_PROTO_ClearQueue done [10:07:23]KKMCreateOFDPacket [10:07:23]OFDProtocolAddRootSTLVToBuf [10:07:23]FM_MakeSignedData [10:07:23]FM_MakeSignedData [10:07:23]SAM_PROTO_SignData [10:07:23]wFMCommunicate request_size=4 [10:07:23]MH_SAM_APDU [10:07:23]CAPDU: 80 0D 01 02 [10:07:23]Write to MH i2c: E2 08 00 1C 46 80 0D 01 02 00 00 00 00 DB [10:07:23]Write i2c OK [10:07:23]MH_I2C_Read... [10:07:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:07:23]Read from MH i2c: E2 [10:07:23]MH_I2C_Read... [10:07:23]Read from MH i2c: E2 03 00 [10:07:23]MH_I2C_Read... [10:07:23]Read from MH i2c: E2 03 00 1C 46 00 90 00 D6 [10:07:23]RAPDU: 90 00 [10:07:23]wFMCommunicate OK [10:07:23]wFMCommunicate request_size=255 [10:07:23]MH_SAM_APDU [10:07:23]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 5E D6 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F7 77 03 00 35 04 06 00 13 9C 33 E1 [10:07:23]Write to MH i2c: E2 02 01 1D 46 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 5E D6 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F7 77 03 00 35 04 06 00 13 9C 33 E1 00 00 F7 [10:07:23]Write i2c OK [10:07:23]MH_I2C_Read... [10:07:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:23]Read from MH i2c: E2 [10:07:23]MH_I2C_Read... [10:07:23]Read from MH i2c: E2 03 00 [10:07:23]MH_I2C_Read... [10:07:23]Read from MH i2c: E2 03 00 1D 46 00 90 00 D7 [10:07:23]RAPDU: 90 00 [10:07:23]wFMCommunicate OK [10:07:23]wFMCommunicate request_size=7 [10:07:23]MH_SAM_APDU [10:07:23]CAPDU: 80 0D 02 02 02 8D A8 [10:07:23]Write to MH i2c: E2 0A 00 1E 46 80 0D 02 02 02 00 8D A8 00 00 17 [10:07:23]Write i2c OK [10:07:23]MH_I2C_Read... [10:07:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:23]Read from MH i2c: E2 [10:07:23]MH_I2C_Read... [10:07:23]Read from MH i2c: E2 03 00 [10:07:23]MH_I2C_Read... [10:07:23]Read from MH i2c: E2 03 00 1E 46 00 90 00 D8 [10:07:23]RAPDU: 90 00 [10:07:23]wFMCommunicate OK [10:07:23]wFMCommunicate request_size=4 [10:07:23]MH_SAM_APDU [10:07:23]CAPDU: 80 0D 03 02 [10:07:23]Write to MH i2c: E2 08 00 1F 46 80 0D 03 02 00 00 00 00 E0 [10:07:23]Write i2c OK [10:07:23]MH_I2C_Read... [10:07:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:07:24]Read from MH i2c: E2 [10:07:24]MH_I2C_Read... [10:07:24]Read from MH i2c: E2 0B 00 [10:07:24]MH_I2C_Read... [10:07:24]Read from MH i2c: E2 0B 00 1F 46 00 79 C2 3D 4C F9 F1 E6 59 90 00 CE [10:07:24]RAPDU: 79 C2 3D 4C F9 F1 E6 59 90 00 [10:07:24]wFMCommunicate OK [10:07:24]SAM_PROTO_SignData done [10:07:24]FM_MakeSignedData done [10:07:24]CreateOFDProtocolMessage [10:07:24]wFMCommunicate request_size=4 [10:07:24]MH_SAM_APDU [10:07:24]CAPDU: 80 11 00 00 [10:07:24]Write to MH i2c: E2 08 00 20 46 80 11 00 00 00 00 00 00 E0 [10:07:24]Write i2c OK [10:07:24]MH_I2C_Read... [10:07:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:24]Read from MH i2c: E2 [10:07:24]MH_I2C_Read... [10:07:24]Read from MH i2c: E2 17 00 [10:07:24]MH_I2C_Read... [10:07:24]Read from MH i2c: E2 17 00 20 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 37 [10:07:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:07:24]wFMCommunicate OK [10:07:24]CreateOFDProtocolMessage done [10:07:24]OFDSenderStorePacket 227319 [10:07:24]StoreOFDPacket docnum=227319 [10:07:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 48 AA 04 01 97 7C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 5E D6 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F7 77 03 00 35 04 06 00 13 9C 33 E1 8D A8 79 C2 3D 4C F9 F1 E6 59 [10:07:24]CheckFolder [10:07:24]dirname=/storage/ofd_packets [10:07:24]CheckFolder done [10:07:24]ProducePacketName [10:07:24]name=ofd_packets/00227319 [10:07:24]NVStorageSaveData ofd_packets/00227319 [10:07:24]File name is /storage/ofd_packets/00227319 [10:07:24]Write 298 bytes [10:07:24]NVStorageSaveData done [10:07:24]OFDSenderStorePacket done [10:07:24]KKMCreateOFDPacket done [10:07:24]NVStorageSaveData kkm_last_timestamp [10:07:24]File name is /storage/kkm_last_timestamp [10:07:24]Write 4 bytes [10:07:24]NVStorageSaveData done [10:07:24]ExternCall_PrintAddStr [10:07:24]wPrintStart [10:07:24]Write to MH i2c: 01 00 00 21 46 67 [10:07:24]Write i2c OK [10:07:24]MH_I2C_Read... [10:07:24]Read from MH i2c: 01 [10:07:24]MH_I2C_Read... [10:07:24]Read from MH i2c: 01 07 00 [10:07:24]MH_I2C_Read... [10:07:24]Read from MH i2c: 01 07 00 21 46 00 00 00 00 00 FF 0F 7C [10:07:24]RasterBufferAndPrint [10:07:24]line Счет N : (1)1962793 [10:07:24]line ИНН: 02508201610067 [10:07:24]line Контрольно-Кассовый Чек [10:07:24]line ПРОДАЖА [10:07:24]line ТРК (МРК, ГНК) : 21 [10:07:24]line Товар: 2710194210 [10:07:24]line ДТ-К-5 [10:07:24]line 26.250 * 76.20 [10:07:24]line = 2000.25 [10:07:24]line НДС 12% НСП 1% [10:07:24]line > о реализуемом товаре [10:07:24]line ОКРУГЛЕНИЕ: -0.25 [10:07:24]line ИТОГО: 2000.00 [10:07:24]line Внесено: 2000.00 [10:07:24]line СДАЧА: 0.00 [10:07:24]line НСП 1% : 17.70 [10:07:24]line НДС 12% : 212.42 [10:07:24]line Наличными: 2000.00 [10:07:24]line Безнал.: 0.00 [10:07:24]line Место: АЗС № 133 "Партнер Нефть" [10:07:24]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:07:24]line СНО: Общий режим [10:07:24]line Чек 167 20.10.2024 10:07 [10:07:24]line Смена: 533 ФФД: 1.0 [10:07:24]line ЗНМ: 0300000091 [10:07:24]line РНМ: 0000000000091685 [10:07:24]line Версия ККМ: 001 [10:07:24]line ФМ: 0000000000871839 [10:07:24]line ФД: 227319 [10:07:24]line ФПД: 21561606245800 [10:07:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T100726&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227319&fm=21561606245800&tin=02508201610067®Number=0000000000091685&sum=200000 [10:07:24]OFD Sender: Processing packet 227319 [packets to send 38, broken 37] [10:07:24]ProducePacketName [10:07:24]name=ofd_packets/00227319 [10:07:24]OFD Sender: To server: pG, [10:07:24]CommunicateWithHost lk.salyk.kg:30040 [10:07:24]ConnectInit lk.salyk.kg [10:07:24]written 0, free lines is 4095 [10:07:24]Connected sock=10 [10:07: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 33 39 0C 01 00 00 48 AA 04 01 97 7C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 5E D6 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F7 77 03 00 35 04 06 00 13 9C 33 E1 8D A8 79 C2 3D 4C F9 F1 E6 59 [10:07: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 33 39 4F 00 00 00 AB 2F 47 00 D0 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 33 39 10 04 04 00 F7 77 03 00 F4 03 04 00 5D 81 14 67 B6 04 01 00 00 8D 20 05 DB C8 7F AC 5C [10:07:24]CommunicateWithHost err = 0 [10:07:24]CheckOFDResponse [10:07:24]1017 (14) - 77093643461234 [10:07:24]1041 (16) - 0000000000871839 [10:07:24]1040 (4) - 227319 [10:07:24]1012 (4) - 20.10.2024 04:04 [10:07:24]1206 (1) - 0 [10:07:24]OFD Sender: Remove packet 227319 [10:07:24]ProducePacketName [10:07:24]name=ofd_packets/00227319 [10:07:24]NVStorageDeleteData [10:07:24]Write to MH i2c: 01 00 00 4B 46 91 [10:07:24]Write i2c OK [10:07:24]MH_I2C_Read... [10:07:24]Read from MH i2c: 01 [10:07:24]MH_I2C_Read... [10:07:24]Read from MH i2c: 01 07 00 [10:07:24]MH_I2C_Read... [10:07:24]Read from MH i2c: 01 07 00 4B 46 00 00 00 00 00 02 0D A7 [10:07:24]RasterBufferAndPrint [10:07:24]line [10:07:24]line [10:07:24]line [10:07:24]line [10:07:24]line [10:07:24]written 0, free lines is 3336 [10:07:24]process_action close_receipt done [10:07:24]requested_data is exist [10:07:24]produce_requested_data [10:07:24]requested_item fm.sn is exist - process it [10:07:24]wFMCommunicate request_size=4 [10:07:24]MH_SAM_APDU [10:07:24]CAPDU: 80 11 00 00 [10:07:24]Write to MH i2c: E2 08 00 52 46 80 11 00 00 00 00 00 00 12 [10:07:24]Write i2c OK [10:07:24]MH_I2C_Read... [10:07:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:24]Read from MH i2c: E2 [10:07:24]MH_I2C_Read... [10:07:24]Read from MH i2c: E2 17 00 [10:07:24]MH_I2C_Read... [10:07:24]Read from MH i2c: E2 17 00 52 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 69 [10:07:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:07:24]wFMCommunicate OK [10:07:24]requested_item fd.num is exist - process it [10:07:24]SAM_PROTO_GetFieldsCounters [10:07:24]wFMCommunicate request_size=4 [10:07:24]MH_SAM_APDU [10:07:24]CAPDU: 80 13 00 00 [10:07:24]Write to MH i2c: E2 08 00 53 46 80 13 00 00 00 00 00 00 15 [10:07:24]Write i2c OK [10:07:24]MH_I2C_Read... [10:07:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:07:25]Read from MH i2c: E2 [10:07:25]MH_I2C_Read... [10:07:25]Read from MH i2c: E2 62 00 [10:07:25]MH_I2C_Read... [10:07:25]Read from MH i2c: E2 62 00 53 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F7 77 03 00 0E 04 04 00 15 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 BB [10:07: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F7 77 03 00 0E 04 04 00 15 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 [10:07:25]wFMCommunicate OK [10:07:25]SAM_PROTO_GetFieldsCounters done [10:07:25]requested_item shift.num is exist - process it [10:07:25]requested_item shift.opened is exist - process it [10:07:25]req_shift_opened [10:07:25]FM_GetShiftState [10:07:25]SAM_PROTO_GetShiftState [10:07:25]wFMCommunicate request_size=4 [10:07:25]MH_SAM_APDU [10:07:25]CAPDU: 80 13 01 00 [10:07:25]Write to MH i2c: E2 08 00 54 46 80 13 01 00 00 00 00 00 17 [10:07:25]Write i2c OK [10:07:25]MH_I2C_Read... [10:07:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:25]Read from MH i2c: E2 [10:07:25]MH_I2C_Read... [10:07:25]Read from MH i2c: E2 0E 00 [10:07:25]MH_I2C_Read... [10:07:25]Read from MH i2c: E2 0E 00 54 46 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 31 [10:07:25]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:07:25]wFMCommunicate OK [10:07:25]SAM_PROTO_GetShiftState done [10:07:25]FM_GetShiftState done [10:07:25]req_shift_opened done [10:07:25]requested_item shift.open_date is exist - process it [10:07:25]req_shift_open_date [10:07:25]req_shift_open_date done [10:07:25]produce_requested_data done [10:07:25]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227319,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [10:07:25]process_action_free close_receipt [10:07:25]json_value_free [10:07:25]json_value_free done [10:07:25]process_json_proto returns [10:07:25]Send response to host [10:07:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227319,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [10:07:25]free response buf [10:07:25]execute_script done [10:07:25]execute_script returns [10:07:25]free content buf [10:07:25]Sock 8.Close socket [10:07:25]Sock 8.Thread stoped [10:07:25]OFD Sender: No OFD packet to send [10:07:30]OFD Sender: No OFD packet to send [10:07:35]OFD Sender: No OFD packet to send [10:07:40]OFD Sender: No OFD packet to send [10:07:45]OFD Sender: No OFD packet to send [10:07:50]OFD Sender: No OFD packet to send [10:07:55]OFD Sender: No OFD packet to send [10:08:00]OFD Sender: No OFD packet to send [10:08:05]OFD Sender: No OFD packet to send [10:08:10]OFD Sender: No OFD packet to send [10:08:15]OFD Sender: No OFD packet to send [10:08:20]OFD Sender: No OFD packet to send [10:08:25]OFD Sender: No OFD packet to send [10:08:30]OFD Sender: No OFD packet to send [10:08:35]OFD Sender: No OFD packet to send [10:08:40]OFD Sender: No OFD packet to send [10:08:45]OFD Sender: No OFD packet to send [10:08:50]OFD Sender: No OFD packet to send [10:08:55]OFD Sender: No OFD packet to send [10:09:00]OFD Sender: No OFD packet to send [10:09:05]OFD Sender: No OFD packet to send [10:09:10]OFD Sender: No OFD packet to send [10:09:15]OFD Sender: No OFD packet to send [10:09:20]OFD Sender: No OFD packet to send [10:09:20]accept exits with 9 [10:09:20]New connection [10:09:20]New thread 3066821988 created [10:09:20]Thread 3066965348 joined [10:09:20]Waiting for new connection... [10:09:20] Sock 9.Parse request [10:09:20]Sock 9.Check first char [10:09:20]Sock 9.First char is OK [10:09:20]request: POST /json_proto HTTP/1.0 [10:09:20]Method: POST [10:09:20]URL: /json_proto [10:09:20]Method is POST - this is cgi request [10:09:20]url: /json_proto [10:09:20]query_string will be loaded in cgi processing [10:09:20]execute_cgi json_proto POST (null) [10:09:20]execute_cgi path=json_proto method=POST [10:09:20]POST find Content-Length [10:09:20]Host: 172.17.44.195:8080 [10:09:20]Content-Length: 770 [10:09:20]Content-Type: application/json [10:09:20] [10:09:20]POST finish read [10:09:20]Found Content-Length = 770 [10:09:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962802", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 53.910, "sum" : 4000.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: Mbank", "payments": [ { "type": 1, "sum" : 4000.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:20]execute_script... [10:09: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)1962802", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 53.910, "sum" : 4000.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: Mbank", "payments": [ { "type": 1, "sum" : 4000.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:20]POST & json_proto [10:09:20]process_json_proto [10:09:20]json parsed OK: [10:09:20]protocol is kg_v1.0 [10:09:20]action value=close_receipt [10:09:20]process_action close_receipt [10:09:20]cmd_close_receipt [10:09:20]MH_GetDate [10:09:20]Write to MH i2c: F0 00 00 55 46 8A [10:09:20]Write i2c OK [10:09:20]MH_I2C_Read... [10:09:20]Read from MH i2c: F0 [10:09:20]MH_I2C_Read... [10:09:20]Read from MH i2c: F0 09 00 [10:09:20]MH_I2C_Read... [10:09:20]Read from MH i2c: F0 09 00 55 46 00 D4 D6 14 67 82 C9 CF 66 38 [10:09:20]GetLastDocTimeStamp 1729418846 [10:09:20]current date 1729418964 [10:09:20]FM_GetShiftState [10:09:20]SAM_PROTO_GetShiftState [10:09:20]wFMCommunicate request_size=4 [10:09:20]MH_SAM_APDU [10:09:20]CAPDU: 80 13 01 00 [10:09:20]Write to MH i2c: E2 08 00 56 46 80 13 01 00 00 00 00 00 19 [10:09:20]Write i2c OK [10:09:20]MH_I2C_Read... [10:09:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:20]Read from MH i2c: E2 [10:09:20]MH_I2C_Read... [10:09:20]Read from MH i2c: E2 0E 00 [10:09:20]MH_I2C_Read... [10:09:20]Read from MH i2c: E2 0E 00 56 46 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 33 [10:09:20]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:09:20]wFMCommunicate OK [10:09:20]SAM_PROTO_GetShiftState done [10:09:20]FM_GetShiftState done [10:09:20]opened in 1729383750 [10:09:20]opened+sec_in_day 1729470150 [10:09:20]quantity*price = 400012 [10:09:20]sum+1 = 400013 [10:09:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4000.12 НСП 1% : 35.40 НДС 12% : 424.79 Наличными: 0.00 Безнал.: 4000.12 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 168 20.10.2024 10:09 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 227320 ФПД: 105403900822444 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T100924&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227320&fm=105403900822444&tin=02508201610067®Number=0000000000091685&sum=400012 [10:09:21]StoreToDocumentArchive [10:09:21]shift 533 fd 227320 [10:09:21]save to /storage/0533/doc_00227320 [10:09:21]save last doc name /storage/0533/doc_00227320 to /storage/kkm_last_doc_name [10:09:21]save OK [10:09:21]Clear old archive folders... [10:09:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:09:21]tlvbuf is 0053BA60 [10:09:21]SAM_PROTO_ClearQueue [10:09:21]wFMCommunicate request_size=4 [10:09:21]MH_SAM_APDU [10:09:21]CAPDU: 80 09 00 00 [10:09:21]Write to MH i2c: E2 08 00 63 46 80 09 00 00 00 00 00 00 1B [10:09:21]Write i2c OK [10:09:21]MH_I2C_Read... [10:09:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:09:21]Read from MH i2c: E2 [10:09:21]MH_I2C_Read... [10:09:21]Read from MH i2c: E2 03 00 [10:09:21]MH_I2C_Read... [10:09:21]Read from MH i2c: E2 03 00 63 46 00 90 00 1D [10:09:21]RAPDU: 90 00 [10:09:21]wFMCommunicate OK [10:09:21]SAM_PROTO_ClearQueue done [10:09:21]KKMCreateOFDPacket [10:09:21]OFDProtocolAddRootSTLVToBuf [10:09:21]FM_MakeSignedData [10:09:21]FM_MakeSignedData [10:09:21]SAM_PROTO_SignData [10:09:21]wFMCommunicate request_size=4 [10:09:21]MH_SAM_APDU [10:09:21]CAPDU: 80 0D 01 02 [10:09:21]Write to MH i2c: E2 08 00 64 46 80 0D 01 02 00 00 00 00 23 [10:09:21]Write i2c OK [10:09:21]MH_I2C_Read... [10:09:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:09:21]Read from MH i2c: E2 [10:09:21]MH_I2C_Read... [10:09:21]Read from MH i2c: E2 03 00 [10:09:21]MH_I2C_Read... [10:09:21]Read from MH i2c: E2 03 00 64 46 00 90 00 1E [10:09:21]RAPDU: 90 00 [10:09:21]wFMCommunicate OK [10:09:21]wFMCommunicate request_size=255 [10:09:21]MH_SAM_APDU [10:09: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 96 D2 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8C 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 D4 D6 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F8 77 03 00 35 04 06 00 5F [10:09:21]Write to MH i2c: E2 02 01 65 46 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 96 D2 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8C 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 D4 D6 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F8 77 03 00 35 04 06 00 5F 00 00 E7 [10:09:21]Write i2c OK [10:09:21]MH_I2C_Read... [10:09:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:22]Read from MH i2c: E2 [10:09:22]MH_I2C_Read... [10:09:22]Read from MH i2c: E2 03 00 [10:09:22]MH_I2C_Read... [10:09:22]Read from MH i2c: E2 03 00 65 46 00 90 00 1F [10:09:22]RAPDU: 90 00 [10:09:22]wFMCommunicate OK [10:09:22]wFMCommunicate request_size=10 [10:09:22]MH_SAM_APDU [10:09:22]CAPDU: 80 0D 02 02 05 DD 42 11 03 AC [10:09:22]Write to MH i2c: E2 0D 00 66 46 80 0D 02 02 05 00 DD 42 11 03 AC 00 00 0F [10:09:22]Write i2c OK [10:09:22]MH_I2C_Read... [10:09:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:22]Read from MH i2c: E2 [10:09:22]MH_I2C_Read... [10:09:22]Read from MH i2c: E2 03 00 [10:09:22]MH_I2C_Read... [10:09:22]Read from MH i2c: E2 03 00 66 46 00 90 00 20 [10:09:22]RAPDU: 90 00 [10:09:22]wFMCommunicate OK [10:09:22]wFMCommunicate request_size=4 [10:09:22]MH_SAM_APDU [10:09:22]CAPDU: 80 0D 03 02 [10:09:22]Write to MH i2c: E2 08 00 67 46 80 0D 03 02 00 00 00 00 28 [10:09:22]Write i2c OK [10:09:22]MH_I2C_Read... [10:09:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:09:22]Read from MH i2c: E2 [10:09:22]MH_I2C_Read... [10:09:22]Read from MH i2c: E2 0B 00 [10:09:22]MH_I2C_Read... [10:09:22]Read from MH i2c: E2 0B 00 67 46 00 00 28 C3 6B 54 23 59 AF 90 00 FE [10:09:22]RAPDU: 00 28 C3 6B 54 23 59 AF 90 00 [10:09:22]wFMCommunicate OK [10:09:22]SAM_PROTO_SignData done [10:09:22]FM_MakeSignedData done [10:09:22]CreateOFDProtocolMessage [10:09:22]wFMCommunicate request_size=4 [10:09:22]MH_SAM_APDU [10:09:22]CAPDU: 80 11 00 00 [10:09:22]Write to MH i2c: E2 08 00 68 46 80 11 00 00 00 00 00 00 28 [10:09:22]Write i2c OK [10:09:22]MH_I2C_Read... [10:09:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:22]Read from MH i2c: E2 [10:09:22]MH_I2C_Read... [10:09:22]Read from MH i2c: E2 17 00 [10:09:22]MH_I2C_Read... [10:09:22]Read from MH i2c: E2 17 00 68 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 7F [10:09:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:09:22]wFMCommunicate OK [10:09:22]CreateOFDProtocolMessage done [10:09:22]OFDSenderStorePacket 227320 [10:09:22]StoreOFDPacket docnum=227320 [10:09:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 84 82 07 01 CE 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 96 D2 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8C 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 D4 D6 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F8 77 03 00 35 04 06 00 5F DD 42 11 03 AC 00 28 C3 6B 54 23 59 AF [10:09:22]CheckFolder [10:09:22]dirname=/storage/ofd_packets [10:09:22]CheckFolder done [10:09:22]ProducePacketName [10:09:22]name=ofd_packets/00227320 [10:09:22]NVStorageSaveData ofd_packets/00227320 [10:09:22]File name is /storage/ofd_packets/00227320 [10:09:22]Write 301 bytes [10:09:22]NVStorageSaveData done [10:09:22]OFDSenderStorePacket done [10:09:22]KKMCreateOFDPacket done [10:09:22]NVStorageSaveData kkm_last_timestamp [10:09:22]File name is /storage/kkm_last_timestamp [10:09:22]Write 4 bytes [10:09:22]NVStorageSaveData done [10:09:22]ExternCall_PrintAddStr [10:09:22]wPrintStart [10:09:22]Write to MH i2c: 01 00 00 69 46 AF [10:09:22]Write i2c OK [10:09:22]MH_I2C_Read... [10:09:22]Read from MH i2c: 01 [10:09:22]MH_I2C_Read... [10:09:22]Read from MH i2c: 01 07 00 [10:09:22]MH_I2C_Read... [10:09:22]Read from MH i2c: 01 07 00 69 46 00 00 00 00 00 FF 0F C4 [10:09:22]RasterBufferAndPrint [10:09:22]line Счет N : (1)1962802 [10:09:22]line ИНН: 02508201610067 [10:09:22]line Контрольно-Кассовый Чек [10:09:22]line ПРОДАЖА [10:09:22]line ТРК (МРК, ГНК) : 64 [10:09:22]line Товар: 2710124500 [10:09:22]line Аи-95-К-5 [10:09:22]line 53.910 * 74.20 [10:09:22]line = 4000.12 [10:09:22]line НДС 12% НСП 1% [10:09:22]line > о реализуемом товаре [10:09:22]line ИТОГО: 4000.12 [10:09:22]line НСП 1% : 35.40 [10:09:22]line НДС 12% : 424.79 [10:09:22]line Наличными: 0.00 [10:09:22]line Безнал.: 4000.12 [10:09:22]line Место: АЗС № 133 "Партнер Нефть" [10:09:22]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:09:22]line СНО: Общий режим [10:09:22]line Чек 168 20.10.2024 10:09 [10:09:22]line Смена: 533 ФФД: 1.0 [10:09:22]line ЗНМ: 0300000091 [10:09:22]line РНМ: 0000000000091685 [10:09:22]line Версия ККМ: 001 [10:09:22]line Платежная система: Mbank [10:09:22]line ФМ: 0000000000871839 [10:09:22]line ФД: 227320 [10:09:22]line ФПД: 105403900822444 [10:09:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T100924&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227320&fm=105403900822444&tin=02508201610067®Number=0000000000091685&sum=400012 [10:09:22]written 0, free lines is 4095 [10:09:22]OFD Sender: Processing packet 227320 [packets to send 38, broken 37] [10:09:22]ProducePacketName [10:09:22]name=ofd_packets/00227320 [10:09:22]OFD Sender: To server: pG, [10:09:22]CommunicateWithHost lk.salyk.kg:30040 [10:09:22]ConnectInit lk.salyk.kg [10:09:22]Connected sock=10 [10:09:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 84 82 07 01 CE 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 96 D2 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8C 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 D4 D6 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F8 77 03 00 35 04 06 00 5F DD 42 11 03 AC 00 28 C3 6B 54 23 59 AF [10:09:22]Write to MH i2c: 01 00 00 91 46 D7 [10:09:22]Write i2c OK [10:09:22]MH_I2C_Read... [10:09:22]Read from MH i2c: 01 [10:09:22]MH_I2C_Read... [10:09:22]Read from MH i2c: 01 07 00 [10:09:22]MH_I2C_Read... [10:09:22]Read from MH i2c: 01 07 00 91 46 00 00 00 00 00 3B 0D 26 [10:09:22]RasterBufferAndPrint [10:09:22]line [10:09:22]line [10:09:22]line [10:09:22]line [10:09:22]line [10:09:22]written 0, free lines is 3395 [10:09:22]process_action close_receipt done [10:09:22]requested_data is exist [10:09:22]produce_requested_data [10:09:22]requested_item fm.sn is exist - process it [10:09:22]wFMCommunicate request_size=4 [10:09:22]MH_SAM_APDU [10:09:22]CAPDU: 80 11 00 00 [10:09:22]Write to MH i2c: E2 08 00 98 46 80 11 00 00 00 00 00 00 58 [10:09:22]Write i2c OK [10:09:22]MH_I2C_Read... [10:09:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:22]Read from MH i2c: E2 [10:09:22]MH_I2C_Read... [10:09:22]Read from MH i2c: E2 17 00 [10:09:22]MH_I2C_Read... [10:09:22]Read from MH i2c: E2 17 00 98 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 AF [10:09:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:09:22]wFMCommunicate OK [10:09:22]requested_item fd.num is exist - process it [10:09:22]SAM_PROTO_GetFieldsCounters [10:09:22]wFMCommunicate request_size=4 [10:09:22]MH_SAM_APDU [10:09:22]CAPDU: 80 13 00 00 [10:09:22]Write to MH i2c: E2 08 00 99 46 80 13 00 00 00 00 00 00 5B [10:09:22]Write i2c OK [10:09:22]MH_I2C_Read... [10:09:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:09: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 33 39 4F 00 00 00 D6 23 47 00 73 DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F8 77 03 00 F4 03 04 00 D4 81 14 67 B6 04 01 00 00 BC 01 FE 2E 26 94 B7 BA [10:09:22]CommunicateWithHost err = 0 [10:09:22]CheckOFDResponse [10:09:22]1017 (14) - 77093643461234 [10:09:22]1041 (16) - 0000000000871839 [10:09:22]1040 (4) - 227320 [10:09:22]1012 (4) - 20.10.2024 04:06 [10:09:22]1206 (1) - 0 [10:09:22]OFD Sender: Remove packet 227320 [10:09:22]ProducePacketName [10:09:22]name=ofd_packets/00227320 [10:09:22]NVStorageDeleteData [10:09:22]Read from MH i2c: E2 [10:09:22]MH_I2C_Read... [10:09:22]Read from MH i2c: E2 62 00 [10:09:22]MH_I2C_Read... [10:09:22]Read from MH i2c: E2 62 00 99 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F8 77 03 00 0E 04 04 00 15 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 05 [10:09: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F8 77 03 00 0E 04 04 00 15 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 [10:09:23]wFMCommunicate OK [10:09:23]SAM_PROTO_GetFieldsCounters done [10:09:23]requested_item shift.num is exist - process it [10:09:23]requested_item shift.opened is exist - process it [10:09:23]req_shift_opened [10:09:23]FM_GetShiftState [10:09:23]SAM_PROTO_GetShiftState [10:09:23]wFMCommunicate request_size=4 [10:09:23]MH_SAM_APDU [10:09:23]CAPDU: 80 13 01 00 [10:09:23]Write to MH i2c: E2 08 00 9A 46 80 13 01 00 00 00 00 00 5D [10:09:23]Write i2c OK [10:09:23]MH_I2C_Read... [10:09:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:23]Read from MH i2c: E2 [10:09:23]MH_I2C_Read... [10:09:23]Read from MH i2c: E2 0E 00 [10:09:23]MH_I2C_Read... [10:09:23]Read from MH i2c: E2 0E 00 9A 46 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 77 [10:09:23]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:09:23]wFMCommunicate OK [10:09:23]SAM_PROTO_GetShiftState done [10:09:23]FM_GetShiftState done [10:09:23]req_shift_opened done [10:09:23]requested_item shift.open_date is exist - process it [10:09:23]req_shift_open_date [10:09:23]req_shift_open_date done [10:09:23]produce_requested_data done [10:09:23]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227320,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [10:09:23]process_action_free close_receipt [10:09:23]json_value_free [10:09:23]json_value_free done [10:09:23]process_json_proto returns [10:09:23]Send response to host [10:09:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227320,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [10:09:23]free response buf [10:09:23]execute_script done [10:09:23]execute_script returns [10:09:23]free content buf [10:09:23]Sock 9.Close socket [10:09:23]Sock 9.Thread stoped [10:09:23]OFD Sender: No OFD packet to send [10:09:26]accept exits with 8 [10:09:26]New connection [10:09:26]New thread 3066965348 created [10:09:26]Thread 3066821988 joined [10:09:26]Waiting for new connection... [10:09:26] Sock 8.Parse request [10:09:26]Sock 8.Check first char [10:09:26]Sock 8.First char is OK [10:09:26]request: POST /json_proto HTTP/1.0 [10:09:26]Method: POST [10:09:26]URL: /json_proto [10:09:26]Method is POST - this is cgi request [10:09:26]url: /json_proto [10:09:26]query_string will be loaded in cgi processing [10:09:26]execute_cgi json_proto POST (null) [10:09:26]execute_cgi path=json_proto method=POST [10:09:26]POST find Content-Length [10:09:26]Host: 172.17.44.195:8080 [10:09:26]Content-Length: 678 [10:09:26]Content-Type: application/json [10:09:26] [10:09:26]POST finish read [10:09:26]Found Content-Length = 678 [10:09:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962805", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 6.280, "sum" : 420.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 420.00, "total" : 420.00, "payments": [ { "type": 0, "sum" : 420.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:26]execute_script... [10:09: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)1962805", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 6.280, "sum" : 420.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 420.00, "total" : 420.00, "payments": [ { "type": 0, "sum" : 420.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:26]POST & json_proto [10:09:26]process_json_proto [10:09:26]json parsed OK: [10:09:26]protocol is kg_v1.0 [10:09:26]action value=close_receipt [10:09:26]process_action close_receipt [10:09:26]cmd_close_receipt [10:09:26]MH_GetDate [10:09:26]Write to MH i2c: F0 00 00 9B 46 D0 [10:09:26]Write i2c OK [10:09:26]MH_I2C_Read... [10:09:26]Read from MH i2c: F0 [10:09:26]MH_I2C_Read... [10:09:26]Read from MH i2c: F0 09 00 [10:09:26]MH_I2C_Read... [10:09:26]Read from MH i2c: F0 09 00 9B 46 00 DB D6 14 67 82 C9 CF 66 85 [10:09:26]GetLastDocTimeStamp 1729418964 [10:09:26]current date 1729418971 [10:09:26]FM_GetShiftState [10:09:26]SAM_PROTO_GetShiftState [10:09:26]wFMCommunicate request_size=4 [10:09:26]MH_SAM_APDU [10:09:26]CAPDU: 80 13 01 00 [10:09:26]Write to MH i2c: E2 08 00 9C 46 80 13 01 00 00 00 00 00 5F [10:09:26]Write i2c OK [10:09:26]MH_I2C_Read... [10:09:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:26]Read from MH i2c: E2 [10:09:26]MH_I2C_Read... [10:09:26]Read from MH i2c: E2 0E 00 [10:09:26]MH_I2C_Read... [10:09:26]Read from MH i2c: E2 0E 00 9C 46 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 79 [10:09:26]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:09:26]wFMCommunicate OK [10:09:26]SAM_PROTO_GetShiftState done [10:09:26]FM_GetShiftState done [10:09:26]opened in 1729383750 [10:09:26]opened+sec_in_day 1729470150 [10:09:26]quantity*price = 42013 [10:09:26]sum+1 = 42014 [10:09:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 420.00 Внесено: 420.00 СДАЧА: 0.00 НСП 1% : 3.72 НДС 12% : 44.62 Наличными: 420.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 169 20.10.2024 10:09 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227321 ФПД: 5499253400072 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T100931&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227321&fm=5499253400072&tin=02508201610067®Number=0000000000091685&sum=42000 [10:09:28]StoreToDocumentArchive [10:09:28]shift 533 fd 227321 [10:09:28]save to /storage/0533/doc_00227321 [10:09:28]save last doc name /storage/0533/doc_00227321 to /storage/kkm_last_doc_name [10:09:28]save OK [10:09:28]Clear old archive folders... [10:09:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:09:28]tlvbuf is 0069BC60 [10:09:28]SAM_PROTO_ClearQueue [10:09:28]wFMCommunicate request_size=4 [10:09:28]MH_SAM_APDU [10:09:28]CAPDU: 80 09 00 00 [10:09:28]Write to MH i2c: E2 08 00 A9 46 80 09 00 00 00 00 00 00 61 [10:09:28]Write i2c OK [10:09:28]MH_I2C_Read... [10:09:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:09:28]Read from MH i2c: E2 [10:09:28]MH_I2C_Read... [10:09:28]Read from MH i2c: E2 03 00 [10:09:28]MH_I2C_Read... [10:09:28]Read from MH i2c: E2 03 00 A9 46 00 90 00 63 [10:09:28]RAPDU: 90 00 [10:09:28]wFMCommunicate OK [10:09:28]SAM_PROTO_ClearQueue done [10:09:28]KKMCreateOFDPacket [10:09:28]OFDProtocolAddRootSTLVToBuf [10:09:28]FM_MakeSignedData [10:09:28]FM_MakeSignedData [10:09:28]SAM_PROTO_SignData [10:09:28]wFMCommunicate request_size=4 [10:09:28]MH_SAM_APDU [10:09:28]CAPDU: 80 0D 01 02 [10:09:28]Write to MH i2c: E2 08 00 AA 46 80 0D 01 02 00 00 00 00 69 [10:09:28]Write i2c OK [10:09:28]MH_I2C_Read... [10:09:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:09:28]Read from MH i2c: E2 [10:09:28]MH_I2C_Read... [10:09:28]Read from MH i2c: E2 03 00 [10:09:28]MH_I2C_Read... [10:09:28]Read from MH i2c: E2 03 00 AA 46 00 90 00 64 [10:09:28]RAPDU: 90 00 [10:09:28]wFMCommunicate OK [10:09:28]wFMCommunicate request_size=255 [10:09:28]MH_SAM_APDU [10:09:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 18 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1D A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 DB D6 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F9 77 03 00 35 04 06 00 05 [10:09:28]Write to MH i2c: E2 02 01 AB 46 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 18 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1D A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 DB D6 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F9 77 03 00 35 04 06 00 05 00 00 D8 [10:09:28]Write i2c OK [10:09:28]MH_I2C_Read... [10:09:28]OFD Sender: No OFD packet to send [10:09:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:28]Read from MH i2c: E2 [10:09:28]MH_I2C_Read... [10:09:28]Read from MH i2c: E2 03 00 [10:09:28]MH_I2C_Read... [10:09:28]Read from MH i2c: E2 03 00 AB 46 00 90 00 65 [10:09:28]RAPDU: 90 00 [10:09:28]wFMCommunicate OK [10:09:28]wFMCommunicate request_size=10 [10:09:28]MH_SAM_APDU [10:09:28]CAPDU: 80 0D 02 02 05 00 65 0B A2 08 [10:09:28]Write to MH i2c: E2 0D 00 AC 46 80 0D 02 02 05 00 00 65 0B A2 08 00 00 90 [10:09:28]Write i2c OK [10:09:28]MH_I2C_Read... [10:09:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:28]Read from MH i2c: E2 [10:09:28]MH_I2C_Read... [10:09:28]Read from MH i2c: E2 03 00 [10:09:28]MH_I2C_Read... [10:09:28]Read from MH i2c: E2 03 00 AC 46 00 90 00 66 [10:09:28]RAPDU: 90 00 [10:09:28]wFMCommunicate OK [10:09:28]wFMCommunicate request_size=4 [10:09:28]MH_SAM_APDU [10:09:28]CAPDU: 80 0D 03 02 [10:09:28]Write to MH i2c: E2 08 00 AD 46 80 0D 03 02 00 00 00 00 6E [10:09:28]Write i2c OK [10:09:28]MH_I2C_Read... [10:09:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:09:28]Read from MH i2c: E2 [10:09:28]MH_I2C_Read... [10:09:28]Read from MH i2c: E2 0B 00 [10:09:28]MH_I2C_Read... [10:09:28]Read from MH i2c: E2 0B 00 AD 46 00 0A 65 16 F0 4C FD AE 10 90 00 EB [10:09:28]RAPDU: 0A 65 16 F0 4C FD AE 10 90 00 [10:09:28]wFMCommunicate OK [10:09:28]SAM_PROTO_SignData done [10:09:28]FM_MakeSignedData done [10:09:28]CreateOFDProtocolMessage [10:09:28]wFMCommunicate request_size=4 [10:09:28]MH_SAM_APDU [10:09:28]CAPDU: 80 11 00 00 [10:09:28]Write to MH i2c: E2 08 00 AE 46 80 11 00 00 00 00 00 00 6E [10:09:28]Write i2c OK [10:09:28]MH_I2C_Read... [10:09:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:28]Read from MH i2c: E2 [10:09:28]MH_I2C_Read... [10:09:28]Read from MH i2c: E2 17 00 [10:09:28]MH_I2C_Read... [10:09:28]Read from MH i2c: E2 17 00 AE 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C5 [10:09:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:09:28]wFMCommunicate OK [10:09:28]CreateOFDProtocolMessage done [10:09:28]OFDSenderStorePacket 227321 [10:09:28]StoreOFDPacket docnum=227321 [10:09:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 7D 53 07 01 CB 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 18 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1D A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 DB D6 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F9 77 03 00 35 04 06 00 05 00 65 0B A2 08 0A 65 16 F0 4C FD AE 10 [10:09:28]CheckFolder [10:09:28]dirname=/storage/ofd_packets [10:09:28]CheckFolder done [10:09:28]ProducePacketName [10:09:28]name=ofd_packets/00227321 [10:09:28]NVStorageSaveData ofd_packets/00227321 [10:09:28]File name is /storage/ofd_packets/00227321 [10:09:28]Write 301 bytes [10:09:28]NVStorageSaveData done [10:09:28]OFDSenderStorePacket done [10:09:28]KKMCreateOFDPacket done [10:09:28]NVStorageSaveData kkm_last_timestamp [10:09:28]File name is /storage/kkm_last_timestamp [10:09:28]Write 4 bytes [10:09:28]NVStorageSaveData done [10:09:28]ExternCall_PrintAddStr [10:09:28]wPrintStart [10:09:28]Write to MH i2c: 01 00 00 AF 46 F5 [10:09:28]Write i2c OK [10:09:28]MH_I2C_Read... [10:09:28]Read from MH i2c: 01 [10:09:28]MH_I2C_Read... [10:09:28]Read from MH i2c: 01 07 00 [10:09:28]MH_I2C_Read... [10:09:28]Read from MH i2c: 01 07 00 AF 46 00 00 00 00 00 FF 0F 0A [10:09:28]RasterBufferAndPrint [10:09:28]line Счет N : (1)1962805 [10:09:28]line ИНН: 02508201610067 [10:09:28]line Контрольно-Кассовый Чек [10:09:28]line ПРОДАЖА [10:09:28]line ТРК (МРК, ГНК) : 53 [10:09:28]line Товар: 2710124130 [10:09:28]line Аи-92-К-5 [10:09:28]line 6.280 * 66.90 [10:09:28]line = 420.13 [10:09:28]line НДС 12% НСП 1% [10:09:28]line > о реализуемом товаре [10:09:28]line ОКРУГЛЕНИЕ: -0.13 [10:09:28]line ИТОГО: 420.00 [10:09:28]line Внесено: 420.00 [10:09:28]line СДАЧА: 0.00 [10:09:28]line НСП 1% : 3.72 [10:09:28]line НДС 12% : 44.62 [10:09:28]line Наличными: 420.00 [10:09:28]line Безнал.: 0.00 [10:09:28]line Место: АЗС № 133 "Партнер Нефть" [10:09:28]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:09:28]line СНО: Общий режим [10:09:28]line Чек 169 20.10.2024 10:09 [10:09:28]line Смена: 533 ФФД: 1.0 [10:09:28]line ЗНМ: 0300000091 [10:09:28]line РНМ: 0000000000091685 [10:09:28]line Версия ККМ: 001 [10:09:28]line ФМ: 0000000000871839 [10:09:28]line ФД: 227321 [10:09:28]line ФПД: 5499253400072 [10:09:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T100931&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227321&fm=5499253400072&tin=02508201610067®Number=0000000000091685&sum=42000 [10:09:28]written 0, free lines is 4095 [10:09:28]OFD Sender: Processing packet 227321 [packets to send 38, broken 37] [10:09:28]ProducePacketName [10:09:28]name=ofd_packets/00227321 [10:09:28]OFD Sender: To server: pG, [10:09:28]CommunicateWithHost lk.salyk.kg:30040 [10:09:28]ConnectInit lk.salyk.kg [10:09:28]Connected sock=10 [10:09: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 33 39 0F 01 00 00 7D 53 07 01 CB 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 18 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1D A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 DB D6 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F9 77 03 00 35 04 06 00 05 00 65 0B A2 08 0A 65 16 F0 4C FD AE 10 [10:09: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 33 39 4F 00 00 00 CE 64 47 00 92 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 33 39 10 04 04 00 F9 77 03 00 F4 03 04 00 DA 81 14 67 B6 04 01 00 00 A9 FC 18 F0 C3 32 44 DF [10:09:29]CommunicateWithHost err = 0 [10:09:29]CheckOFDResponse [10:09:29]1017 (14) - 77093643461234 [10:09:29]1041 (16) - 0000000000871839 [10:09:29]1040 (4) - 227321 [10:09:29]1012 (4) - 20.10.2024 04:06 [10:09:29]1206 (1) - 0 [10:09:29]OFD Sender: Remove packet 227321 [10:09:29]ProducePacketName [10:09:29]name=ofd_packets/00227321 [10:09:29]NVStorageDeleteData [10:09:29]Write to MH i2c: 01 00 00 D9 46 1F [10:09:29]Write i2c OK [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: 01 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: 01 07 00 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: 01 07 00 D9 46 00 00 00 00 00 0D 0D 40 [10:09:29]RasterBufferAndPrint [10:09:29]line [10:09:29]line [10:09:29]line [10:09:29]line [10:09:29]line [10:09:29]written 0, free lines is 3357 [10:09:29]process_action close_receipt done [10:09:29]requested_data is exist [10:09:29]produce_requested_data [10:09:29]requested_item fm.sn is exist - process it [10:09:29]wFMCommunicate request_size=4 [10:09:29]MH_SAM_APDU [10:09:29]CAPDU: 80 11 00 00 [10:09:29]Write to MH i2c: E2 08 00 E0 46 80 11 00 00 00 00 00 00 A0 [10:09:29]Write i2c OK [10:09:29]MH_I2C_Read... [10:09:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:29]Read from MH i2c: E2 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: E2 17 00 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: E2 17 00 E0 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F7 [10:09:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:09:29]wFMCommunicate OK [10:09:29]requested_item fd.num is exist - process it [10:09:29]SAM_PROTO_GetFieldsCounters [10:09:29]wFMCommunicate request_size=4 [10:09:29]MH_SAM_APDU [10:09:29]CAPDU: 80 13 00 00 [10:09:29]Write to MH i2c: E2 08 00 E1 46 80 13 00 00 00 00 00 00 A3 [10:09:29]Write i2c OK [10:09:29]MH_I2C_Read... [10:09:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:09:29]Read from MH i2c: E2 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: E2 62 00 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: E2 62 00 E1 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F9 77 03 00 0E 04 04 00 15 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 51 [10:09:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F9 77 03 00 0E 04 04 00 15 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 [10:09:29]wFMCommunicate OK [10:09:29]SAM_PROTO_GetFieldsCounters done [10:09:29]requested_item shift.num is exist - process it [10:09:29]requested_item shift.opened is exist - process it [10:09:29]req_shift_opened [10:09:29]FM_GetShiftState [10:09:29]SAM_PROTO_GetShiftState [10:09:29]wFMCommunicate request_size=4 [10:09:29]MH_SAM_APDU [10:09:29]CAPDU: 80 13 01 00 [10:09:29]Write to MH i2c: E2 08 00 E2 46 80 13 01 00 00 00 00 00 A5 [10:09:29]Write i2c OK [10:09:29]MH_I2C_Read... [10:09:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:29]Read from MH i2c: E2 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: E2 0E 00 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: E2 0E 00 E2 46 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 BF [10:09:29]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:09:29]wFMCommunicate OK [10:09:29]SAM_PROTO_GetShiftState done [10:09:29]FM_GetShiftState done [10:09:29]req_shift_opened done [10:09:29]requested_item shift.open_date is exist - process it [10:09:29]req_shift_open_date [10:09:29]req_shift_open_date done [10:09:29]produce_requested_data done [10:09:29]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227321,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [10:09:29]process_action_free close_receipt [10:09:29]json_value_free [10:09:29]json_value_free done [10:09:29]process_json_proto returns [10:09:29]Send response to host [10:09:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227321,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [10:09:29]free response buf [10:09:29]execute_script done [10:09:29]execute_script returns [10:09:29]free content buf [10:09:29]Sock 8.Close socket [10:09:29]Sock 8.Thread stoped [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:34]OFD Sender: No OFD packet to send [10:10:39]OFD Sender: No OFD packet to send [10:10:44]OFD Sender: No OFD packet to send [10:10:49]OFD Sender: No OFD packet to send [10:10:54]OFD Sender: No OFD packet to send [10:10:59]OFD Sender: No OFD packet to send [10:11:04]OFD Sender: No OFD packet to send [10:11:09]OFD Sender: No OFD packet to send [10:11:14]OFD Sender: No OFD packet to send [10:11:19]OFD Sender: No OFD packet to send [10:11:24]OFD Sender: No OFD packet to send [10:11:27]accept exits with 9 [10:11:27]New connection [10:11:27]New thread 3066821988 created [10:11:27]Thread 3066965348 joined [10:11:27]Waiting for new connection... [10:11:27] Sock 9.Parse request [10:11:27]Sock 9.Check first char [10:11:27]Sock 9.First char is OK [10:11:27]request: POST /json_proto HTTP/1.0 [10:11:27]Method: POST [10:11:27]URL: /json_proto [10:11:27]Method is POST - this is cgi request [10:11:27]url: /json_proto [10:11:27]query_string will be loaded in cgi processing [10:11:27]execute_cgi json_proto POST (null) [10:11:27]execute_cgi path=json_proto method=POST [10:11:27]POST find Content-Length [10:11:27]Host: 172.17.44.195:8080 [10:11:27]Content-Length: 679 [10:11:27]Content-Type: application/json [10:11:27] [10:11:27]POST finish read [10:11:27]Found Content-Length = 679 [10:11:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962806", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:27]execute_script... [10:11: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)1962806", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:27]POST & json_proto [10:11:27]process_json_proto [10:11:27]json parsed OK: [10:11:27]protocol is kg_v1.0 [10:11:27]action value=close_receipt [10:11:27]process_action close_receipt [10:11:27]cmd_close_receipt [10:11:27]MH_GetDate [10:11:27]Write to MH i2c: F0 00 00 E3 46 18 [10:11:27]Write i2c OK [10:11:27]MH_I2C_Read... [10:11:27]Read from MH i2c: F0 [10:11:27]MH_I2C_Read... [10:11:27]Read from MH i2c: F0 09 00 [10:11:27]MH_I2C_Read... [10:11:27]Read from MH i2c: F0 09 00 E3 46 00 53 D7 14 67 82 C9 CF 66 46 [10:11:27]GetLastDocTimeStamp 1729418971 [10:11:27]current date 1729419091 [10:11:27]FM_GetShiftState [10:11:27]SAM_PROTO_GetShiftState [10:11:27]wFMCommunicate request_size=4 [10:11:27]MH_SAM_APDU [10:11:27]CAPDU: 80 13 01 00 [10:11:27]Write to MH i2c: E2 08 00 E4 46 80 13 01 00 00 00 00 00 A7 [10:11:27]Write i2c OK [10:11:27]MH_I2C_Read... [10:11:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:27]Read from MH i2c: E2 [10:11:27]MH_I2C_Read... [10:11:27]Read from MH i2c: E2 0E 00 [10:11:27]MH_I2C_Read... [10:11:27]Read from MH i2c: E2 0E 00 E4 46 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 C1 [10:11:27]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:11:27]wFMCommunicate OK [10:11:27]SAM_PROTO_GetShiftState done [10:11:27]FM_GetShiftState done [10:11:27]opened in 1729383750 [10:11:27]opened+sec_in_day 1729470150 [10:11:27]quantity*price = 70044 [10:11:27]sum+1 = 70045 [10:11:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 170 20.10.2024 10:11 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227322 ФПД: 197043593582488 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101131&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227322&fm=197043593582488&tin=02508201610067®Number=0000000000091685&sum=70000 [10:11:28]StoreToDocumentArchive [10:11:28]shift 533 fd 227322 [10:11:28]save to /storage/0533/doc_00227322 [10:11:28]save last doc name /storage/0533/doc_00227322 to /storage/kkm_last_doc_name [10:11:28]save OK [10:11:28]Clear old archive folders... [10:11:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:11:28]tlvbuf is 00569770 [10:11:28]SAM_PROTO_ClearQueue [10:11:28]wFMCommunicate request_size=4 [10:11:28]MH_SAM_APDU [10:11:28]CAPDU: 80 09 00 00 [10:11:28]Write to MH i2c: E2 08 00 F1 46 80 09 00 00 00 00 00 00 A9 [10:11:28]Write i2c OK [10:11:28]MH_I2C_Read... [10:11:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:11:28]Read from MH i2c: E2 [10:11:28]MH_I2C_Read... [10:11:28]Read from MH i2c: E2 03 00 [10:11:28]MH_I2C_Read... [10:11:28]Read from MH i2c: E2 03 00 F1 46 00 90 00 AB [10:11:28]RAPDU: 90 00 [10:11:28]wFMCommunicate OK [10:11:28]SAM_PROTO_ClearQueue done [10:11:28]KKMCreateOFDPacket [10:11:28]OFDProtocolAddRootSTLVToBuf [10:11:28]FM_MakeSignedData [10:11:28]FM_MakeSignedData [10:11:28]SAM_PROTO_SignData [10:11:28]wFMCommunicate request_size=4 [10:11:28]MH_SAM_APDU [10:11:28]CAPDU: 80 0D 01 02 [10:11:28]Write to MH i2c: E2 08 00 F2 46 80 0D 01 02 00 00 00 00 B1 [10:11:28]Write i2c OK [10:11:28]MH_I2C_Read... [10:11:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:11:28]Read from MH i2c: E2 [10:11:28]MH_I2C_Read... [10:11:28]Read from MH i2c: E2 03 00 [10:11:28]MH_I2C_Read... [10:11:28]Read from MH i2c: E2 03 00 F2 46 00 90 00 AC [10:11:28]RAPDU: 90 00 [10:11:28]wFMCommunicate OK [10:11:28]wFMCommunicate request_size=255 [10:11:28]MH_SAM_APDU [10:11:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 53 D7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FA 77 03 00 35 04 06 00 B3 [10:11:28]Write to MH i2c: E2 02 01 F3 46 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 53 D7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FA 77 03 00 35 04 06 00 B3 00 00 E5 [10:11:28]Write i2c OK [10:11:28]MH_I2C_Read... [10:11:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:28]Read from MH i2c: E2 [10:11:28]MH_I2C_Read... [10:11:28]Read from MH i2c: E2 03 00 [10:11:28]MH_I2C_Read... [10:11:28]Read from MH i2c: E2 03 00 F3 46 00 90 00 AD [10:11:28]RAPDU: 90 00 [10:11:28]wFMCommunicate OK [10:11:28]wFMCommunicate request_size=10 [10:11:28]MH_SAM_APDU [10:11:28]CAPDU: 80 0D 02 02 05 35 C9 66 97 98 [10:11:28]Write to MH i2c: E2 0D 00 F4 46 80 0D 02 02 05 00 35 C9 66 97 98 00 00 51 [10:11:28]Write i2c OK [10:11:28]MH_I2C_Read... [10:11:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:28]Read from MH i2c: E2 [10:11:28]MH_I2C_Read... [10:11:28]Read from MH i2c: E2 03 00 [10:11:28]MH_I2C_Read... [10:11:28]Read from MH i2c: E2 03 00 F4 46 00 90 00 AE [10:11:28]RAPDU: 90 00 [10:11:28]wFMCommunicate OK [10:11:28]wFMCommunicate request_size=4 [10:11:28]MH_SAM_APDU [10:11:28]CAPDU: 80 0D 03 02 [10:11:28]Write to MH i2c: E2 08 00 F5 46 80 0D 03 02 00 00 00 00 B6 [10:11:28]Write i2c OK [10:11:28]MH_I2C_Read... [10:11:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:11:28]Read from MH i2c: E2 [10:11:28]MH_I2C_Read... [10:11:28]Read from MH i2c: E2 0B 00 [10:11:28]MH_I2C_Read... [10:11:28]Read from MH i2c: E2 0B 00 F5 46 00 79 DC 16 A2 6D 6F 7E A7 90 00 C5 [10:11:28]RAPDU: 79 DC 16 A2 6D 6F 7E A7 90 00 [10:11:28]wFMCommunicate OK [10:11:28]SAM_PROTO_SignData done [10:11:28]FM_MakeSignedData done [10:11:28]CreateOFDProtocolMessage [10:11:28]wFMCommunicate request_size=4 [10:11:28]MH_SAM_APDU [10:11:28]CAPDU: 80 11 00 00 [10:11:28]Write to MH i2c: E2 08 00 F6 46 80 11 00 00 00 00 00 00 B6 [10:11:28]Write i2c OK [10:11:28]MH_I2C_Read... [10:11:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:28]Read from MH i2c: E2 [10:11:28]MH_I2C_Read... [10:11:28]Read from MH i2c: E2 17 00 [10:11:28]MH_I2C_Read... [10:11:28]Read from MH i2c: E2 17 00 F6 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 0D [10:11:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:11:28]wFMCommunicate OK [10:11:28]CreateOFDProtocolMessage done [10:11:28]OFDSenderStorePacket 227322 [10:11:28]StoreOFDPacket docnum=227322 [10:11:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 4D CA 07 01 F4 A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 53 D7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FA 77 03 00 35 04 06 00 B3 35 C9 66 97 98 79 DC 16 A2 6D 6F 7E A7 [10:11:28]CheckFolder [10:11:28]dirname=/storage/ofd_packets [10:11:28]CheckFolder done [10:11:28]ProducePacketName [10:11:28]name=ofd_packets/00227322 [10:11:28]NVStorageSaveData ofd_packets/00227322 [10:11:28]File name is /storage/ofd_packets/00227322 [10:11:28]Write 301 bytes [10:11:28]NVStorageSaveData done [10:11:28]OFDSenderStorePacket done [10:11:28]KKMCreateOFDPacket done [10:11:28]NVStorageSaveData kkm_last_timestamp [10:11:28]File name is /storage/kkm_last_timestamp [10:11:28]Write 4 bytes [10:11:28]NVStorageSaveData done [10:11:28]ExternCall_PrintAddStr [10:11:28]wPrintStart [10:11:28]Write to MH i2c: 01 00 00 F7 46 3D [10:11:28]Write i2c OK [10:11:28]MH_I2C_Read... [10:11:28]Read from MH i2c: 01 [10:11:28]MH_I2C_Read... [10:11:28]Read from MH i2c: 01 07 00 [10:11:28]MH_I2C_Read... [10:11:28]Read from MH i2c: 01 07 00 F7 46 00 00 00 00 00 FF 0F 52 [10:11:28]RasterBufferAndPrint [10:11:28]line Счет N : (1)1962806 [10:11:28]line ИНН: 02508201610067 [10:11:28]line Контрольно-Кассовый Чек [10:11:28]line ПРОДАЖА [10:11:28]line ТРК (МРК, ГНК) : 43 [10:11:28]line Товар: 2710124130 [10:11:28]line Аи-92-К-5 [10:11:28]line 10.470 * 66.90 [10:11:28]line = 700.44 [10:11:28]line НДС 12% НСП 1% [10:11:28]line > о реализуемом товаре [10:11:28]line ОКРУГЛЕНИЕ: -0.44 [10:11:28]line ИТОГО: 700.00 [10:11:28]line Внесено: 700.00 [10:11:28]line СДАЧА: 0.00 [10:11:28]line НСП 1% : 6.20 [10:11:28]line НДС 12% : 74.38 [10:11:28]line Наличными: 700.00 [10:11:28]line Безнал.: 0.00 [10:11:28]line Место: АЗС № 133 "Партнер Нефть" [10:11:28]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:11:28]line СНО: Общий режим [10:11:28]line Чек 170 20.10.2024 10:11 [10:11:28]line Смена: 533 ФФД: 1.0 [10:11:28]line ЗНМ: 0300000091 [10:11:28]line РНМ: 0000000000091685 [10:11:28]line Версия ККМ: 001 [10:11:28]line ФМ: 0000000000871839 [10:11:28]line ФД: 227322 [10:11:28]line ФПД: 197043593582488 [10:11:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101131&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227322&fm=197043593582488&tin=02508201610067®Number=0000000000091685&sum=70000 [10:11:29]OFD Sender: Processing packet 227322 [packets to send 38, broken 37] [10:11:29]ProducePacketName [10:11:29]name=ofd_packets/00227322 [10:11:29]OFD Sender: To server: pG, [10:11:29]CommunicateWithHost lk.salyk.kg:30040 [10:11:29]ConnectInit lk.salyk.kg [10:11:29]written 0, free lines is 4095 [10:11:29]Connected sock=8 [10:11: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 33 39 0F 01 00 00 4D CA 07 01 F4 A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 53 D7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FA 77 03 00 35 04 06 00 B3 35 C9 66 97 98 79 DC 16 A2 6D 6F 7E A7 [10:11: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 33 39 4F 00 00 00 C3 63 47 00 BE 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 33 39 10 04 04 00 FA 77 03 00 F4 03 04 00 52 82 14 67 B6 04 01 00 00 8A 04 E2 AD FB 0C 2E 42 [10:11:29]CommunicateWithHost err = 0 [10:11:29]CheckOFDResponse [10:11:29]1017 (14) - 77093643461234 [10:11:29]1041 (16) - 0000000000871839 [10:11:29]1040 (4) - 227322 [10:11:29]1012 (4) - 20.10.2024 04:08 [10:11:29]1206 (1) - 0 [10:11:29]OFD Sender: Remove packet 227322 [10:11:29]ProducePacketName [10:11:29]name=ofd_packets/00227322 [10:11:29]NVStorageDeleteData [10:11:29]Write to MH i2c: 01 00 00 21 47 68 [10:11:29]Write i2c OK [10:11:29]MH_I2C_Read... [10:11:29]Read from MH i2c: 01 [10:11:29]MH_I2C_Read... [10:11:29]Read from MH i2c: 01 07 00 [10:11:29]MH_I2C_Read... [10:11:29]Read from MH i2c: 01 07 00 21 47 00 00 00 00 00 0A 0D 86 [10:11:29]RasterBufferAndPrint [10:11:29]line [10:11:29]line [10:11:29]line [10:11:29]line [10:11:29]line [10:11:29]written 0, free lines is 3344 [10:11:29]process_action close_receipt done [10:11:29]requested_data is exist [10:11:29]produce_requested_data [10:11:29]requested_item fm.sn is exist - process it [10:11:29]wFMCommunicate request_size=4 [10:11:29]MH_SAM_APDU [10:11:29]CAPDU: 80 11 00 00 [10:11:29]Write to MH i2c: E2 08 00 28 47 80 11 00 00 00 00 00 00 E9 [10:11:29]Write i2c OK [10:11:29]MH_I2C_Read... [10:11:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:29]Read from MH i2c: E2 [10:11:29]MH_I2C_Read... [10:11:29]Read from MH i2c: E2 17 00 [10:11:29]MH_I2C_Read... [10:11:29]Read from MH i2c: E2 17 00 28 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 40 [10:11:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:11:29]wFMCommunicate OK [10:11:29]requested_item fd.num is exist - process it [10:11:29]SAM_PROTO_GetFieldsCounters [10:11:29]wFMCommunicate request_size=4 [10:11:29]MH_SAM_APDU [10:11:29]CAPDU: 80 13 00 00 [10:11:29]Write to MH i2c: E2 08 00 29 47 80 13 00 00 00 00 00 00 EC [10:11:29]Write i2c OK [10:11:29]MH_I2C_Read... [10:11:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:11:30]Read from MH i2c: E2 [10:11:30]MH_I2C_Read... [10:11:30]Read from MH i2c: E2 62 00 [10:11:30]MH_I2C_Read... [10:11:30]Read from MH i2c: E2 62 00 29 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 FA 77 03 00 0E 04 04 00 15 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 9E [10:11: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 FA 77 03 00 0E 04 04 00 15 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 [10:11:30]wFMCommunicate OK [10:11:30]SAM_PROTO_GetFieldsCounters done [10:11:30]requested_item shift.num is exist - process it [10:11:30]requested_item shift.opened is exist - process it [10:11:30]req_shift_opened [10:11:30]FM_GetShiftState [10:11:30]SAM_PROTO_GetShiftState [10:11:30]wFMCommunicate request_size=4 [10:11:30]MH_SAM_APDU [10:11:30]CAPDU: 80 13 01 00 [10:11:30]Write to MH i2c: E2 08 00 2A 47 80 13 01 00 00 00 00 00 EE [10:11:30]Write i2c OK [10:11:30]MH_I2C_Read... [10:11:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:30]Read from MH i2c: E2 [10:11:30]MH_I2C_Read... [10:11:30]Read from MH i2c: E2 0E 00 [10:11:30]MH_I2C_Read... [10:11:30]Read from MH i2c: E2 0E 00 2A 47 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 08 [10:11:30]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:11:30]wFMCommunicate OK [10:11:30]SAM_PROTO_GetShiftState done [10:11:30]FM_GetShiftState done [10:11:30]req_shift_opened done [10:11:30]requested_item shift.open_date is exist - process it [10:11:30]req_shift_open_date [10:11:30]req_shift_open_date done [10:11:30]produce_requested_data done [10:11:30]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227322,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [10:11:30]process_action_free close_receipt [10:11:30]json_value_free [10:11:30]json_value_free done [10:11:30]process_json_proto returns [10:11:30]Send response to host [10:11:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227322,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [10:11:30]free response buf [10:11:30]execute_script done [10:11:30]execute_script returns [10:11:30]free content buf [10:11:30]Sock 9.Close socket [10:11:30]Sock 9.Thread stoped [10:11:30]OFD Sender: No OFD packet to send [10:11:35]OFD Sender: No OFD packet to send [10:11:40]OFD Sender: No OFD packet to send [10:11:45]OFD Sender: No OFD packet to send [10:11:50]OFD Sender: No OFD packet to send [10:11:55]OFD Sender: No OFD packet to send [10:12:00]OFD Sender: No OFD packet to send [10:12:05]OFD Sender: No OFD packet to send [10:12:10]OFD Sender: No OFD packet to send [10:12:15]OFD Sender: No OFD packet to send [10:12:20]OFD Sender: No OFD packet to send [10:12:25]OFD Sender: No OFD packet to send [10:12:30]OFD Sender: No OFD packet to send [10:12:31]accept exits with 10 [10:12:31]New connection [10:12:31]New thread 3066965348 created [10:12:31]Thread 3066821988 joined [10:12:31]Waiting for new connection... [10:12:31] Sock 10.Parse request [10:12:31]Sock 10.Check first char [10:12:31]Sock 10.First char is OK [10:12:31]request: POST /json_proto HTTP/1.0 [10:12:31]Method: POST [10:12:31]URL: /json_proto [10:12:31]Method is POST - this is cgi request [10:12:31]url: /json_proto [10:12:31]query_string will be loaded in cgi processing [10:12:31]execute_cgi json_proto POST (null) [10:12:31]execute_cgi path=json_proto method=POST [10:12:31]POST find Content-Length [10:12:31]Host: 172.17.44.195:8080 [10:12:31]Content-Length: 678 [10:12:31]Content-Type: application/json [10:12:31] [10:12:31]POST finish read [10:12:31]Found Content-Length = 678 [10:12:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962808", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:31]execute_script... [10:12: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)1962808", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:31]POST & json_proto [10:12:31]process_json_proto [10:12:31]json parsed OK: [10:12:31]protocol is kg_v1.0 [10:12:31]action value=close_receipt [10:12:31]process_action close_receipt [10:12:31]cmd_close_receipt [10:12:31]MH_GetDate [10:12:31]Write to MH i2c: F0 00 00 2B 47 61 [10:12:31]Write i2c OK [10:12:31]MH_I2C_Read... [10:12:31]Read from MH i2c: F0 [10:12:31]MH_I2C_Read... [10:12:31]Read from MH i2c: F0 09 00 [10:12:31]MH_I2C_Read... [10:12:31]Read from MH i2c: F0 09 00 2B 47 00 93 D7 14 67 82 C9 CF 66 CF [10:12:31]GetLastDocTimeStamp 1729419091 [10:12:31]current date 1729419155 [10:12:31]FM_GetShiftState [10:12:31]SAM_PROTO_GetShiftState [10:12:31]wFMCommunicate request_size=4 [10:12:31]MH_SAM_APDU [10:12:31]CAPDU: 80 13 01 00 [10:12:31]Write to MH i2c: E2 08 00 2C 47 80 13 01 00 00 00 00 00 F0 [10:12:31]Write i2c OK [10:12:31]MH_I2C_Read... [10:12:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:31]Read from MH i2c: E2 [10:12:31]MH_I2C_Read... [10:12:31]Read from MH i2c: E2 0E 00 [10:12:31]MH_I2C_Read... [10:12:31]Read from MH i2c: E2 0E 00 2C 47 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 0A [10:12:31]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:12:31]wFMCommunicate OK [10:12:31]SAM_PROTO_GetShiftState done [10:12:31]FM_GetShiftState done [10:12:31]opened in 1729383750 [10:12:31]opened+sec_in_day 1729470150 [10:12:31]quantity*price = 60009 [10:12:31]sum+1 = 60010 [10:12:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 171 20.10.2024 10:12 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227323 ФПД: 161954619697343 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101235&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227323&fm=161954619697343&tin=02508201610067®Number=0000000000091685&sum=60000 [10:12:32]StoreToDocumentArchive [10:12:32]shift 533 fd 227323 [10:12:32]save to /storage/0533/doc_00227323 [10:12:32]save last doc name /storage/0533/doc_00227323 to /storage/kkm_last_doc_name [10:12:32]save OK [10:12:32]Clear old archive folders... [10:12:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:12:32]tlvbuf is 004D66E0 [10:12:32]SAM_PROTO_ClearQueue [10:12:32]wFMCommunicate request_size=4 [10:12:32]MH_SAM_APDU [10:12:32]CAPDU: 80 09 00 00 [10:12:32]Write to MH i2c: E2 08 00 39 47 80 09 00 00 00 00 00 00 F2 [10:12:32]Write i2c OK [10:12:32]MH_I2C_Read... [10:12:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:12:32]Read from MH i2c: E2 [10:12:32]MH_I2C_Read... [10:12:32]Read from MH i2c: E2 03 00 [10:12:32]MH_I2C_Read... [10:12:32]Read from MH i2c: E2 03 00 39 47 00 90 00 F4 [10:12:32]RAPDU: 90 00 [10:12:32]wFMCommunicate OK [10:12:32]SAM_PROTO_ClearQueue done [10:12:32]KKMCreateOFDPacket [10:12:32]OFDProtocolAddRootSTLVToBuf [10:12:32]FM_MakeSignedData [10:12:32]FM_MakeSignedData [10:12:32]SAM_PROTO_SignData [10:12:32]wFMCommunicate request_size=4 [10:12:32]MH_SAM_APDU [10:12:32]CAPDU: 80 0D 01 02 [10:12:32]Write to MH i2c: E2 08 00 3A 47 80 0D 01 02 00 00 00 00 FA [10:12:32]Write i2c OK [10:12:32]MH_I2C_Read... [10:12:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:12:32]Read from MH i2c: E2 [10:12:32]MH_I2C_Read... [10:12:32]Read from MH i2c: E2 03 00 [10:12:32]MH_I2C_Read... [10:12:32]Read from MH i2c: E2 03 00 3A 47 00 90 00 F5 [10:12:32]RAPDU: 90 00 [10:12:32]wFMCommunicate OK [10:12:32]wFMCommunicate request_size=255 [10:12:32]MH_SAM_APDU [10:12:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 93 D7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FB 77 03 00 35 04 06 00 93 [10:12:32]Write to MH i2c: E2 02 01 3B 47 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 93 D7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FB 77 03 00 35 04 06 00 93 00 00 1D [10:12:32]Write i2c OK [10:12:32]MH_I2C_Read... [10:12:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:32]Read from MH i2c: E2 [10:12:32]MH_I2C_Read... [10:12:32]Read from MH i2c: E2 03 00 [10:12:32]MH_I2C_Read... [10:12:32]Read from MH i2c: E2 03 00 3B 47 00 90 00 F6 [10:12:32]RAPDU: 90 00 [10:12:32]wFMCommunicate OK [10:12:32]wFMCommunicate request_size=10 [10:12:32]MH_SAM_APDU [10:12:32]CAPDU: 80 0D 02 02 05 4B FF 93 A8 BF [10:12:32]Write to MH i2c: E2 0D 00 3C 47 80 0D 02 02 05 00 4B FF 93 A8 BF 00 00 4B [10:12:32]Write i2c OK [10:12:32]MH_I2C_Read... [10:12:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:32]Read from MH i2c: E2 [10:12:32]MH_I2C_Read... [10:12:32]Read from MH i2c: E2 03 00 [10:12:32]MH_I2C_Read... [10:12:32]Read from MH i2c: E2 03 00 3C 47 00 90 00 F7 [10:12:32]RAPDU: 90 00 [10:12:32]wFMCommunicate OK [10:12:32]wFMCommunicate request_size=4 [10:12:32]MH_SAM_APDU [10:12:32]CAPDU: 80 0D 03 02 [10:12:32]Write to MH i2c: E2 08 00 3D 47 80 0D 03 02 00 00 00 00 FF [10:12:32]Write i2c OK [10:12:32]MH_I2C_Read... [10:12:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:12:32]Read from MH i2c: E2 [10:12:32]MH_I2C_Read... [10:12:32]Read from MH i2c: E2 0B 00 [10:12:32]MH_I2C_Read... [10:12:32]Read from MH i2c: E2 0B 00 3D 47 00 53 3C 5E ED F2 AB 1A 7F 90 00 10 [10:12:32]RAPDU: 53 3C 5E ED F2 AB 1A 7F 90 00 [10:12:32]wFMCommunicate OK [10:12:32]SAM_PROTO_SignData done [10:12:32]FM_MakeSignedData done [10:12:32]CreateOFDProtocolMessage [10:12:32]wFMCommunicate request_size=4 [10:12:32]MH_SAM_APDU [10:12:32]CAPDU: 80 11 00 00 [10:12:32]Write to MH i2c: E2 08 00 3E 47 80 11 00 00 00 00 00 00 FF [10:12:32]Write i2c OK [10:12:32]MH_I2C_Read... [10:12:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:33]Read from MH i2c: E2 [10:12:33]MH_I2C_Read... [10:12:33]Read from MH i2c: E2 17 00 [10:12:33]MH_I2C_Read... [10:12:33]Read from MH i2c: E2 17 00 3E 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 56 [10:12:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:12:33]wFMCommunicate OK [10:12:33]CreateOFDProtocolMessage done [10:12:33]OFDSenderStorePacket 227323 [10:12:33]StoreOFDPacket docnum=227323 [10:12:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 E3 C2 07 01 C6 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 93 D7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FB 77 03 00 35 04 06 00 93 4B FF 93 A8 BF 53 3C 5E ED F2 AB 1A 7F [10:12:33]CheckFolder [10:12:33]dirname=/storage/ofd_packets [10:12:33]CheckFolder done [10:12:33]ProducePacketName [10:12:33]name=ofd_packets/00227323 [10:12:33]NVStorageSaveData ofd_packets/00227323 [10:12:33]File name is /storage/ofd_packets/00227323 [10:12:33]Write 301 bytes [10:12:33]NVStorageSaveData done [10:12:33]OFDSenderStorePacket done [10:12:33]KKMCreateOFDPacket done [10:12:33]NVStorageSaveData kkm_last_timestamp [10:12:33]File name is /storage/kkm_last_timestamp [10:12:33]Write 4 bytes [10:12:33]NVStorageSaveData done [10:12:33]ExternCall_PrintAddStr [10:12:33]wPrintStart [10:12:33]Write to MH i2c: 01 00 00 3F 47 86 [10:12:33]Write i2c OK [10:12:33]MH_I2C_Read... [10:12:33]Read from MH i2c: 01 [10:12:33]MH_I2C_Read... [10:12:33]Read from MH i2c: 01 07 00 [10:12:33]MH_I2C_Read... [10:12:33]Read from MH i2c: 01 07 00 3F 47 00 00 00 00 00 FF 0F 9B [10:12:33]RasterBufferAndPrint [10:12:33]line Счет N : (1)1962808 [10:12:33]line ИНН: 02508201610067 [10:12:33]line Контрольно-Кассовый Чек [10:12:33]line ПРОДАЖА [10:12:33]line ТРК (МРК, ГНК) : 63 [10:12:33]line Товар: 2710124130 [10:12:33]line Аи-92-К-5 [10:12:33]line 8.970 * 66.90 [10:12:33]line = 600.09 [10:12:33]line НДС 12% НСП 1% [10:12:33]line > о реализуемом товаре [10:12:33]line ОКРУГЛЕНИЕ: -0.09 [10:12:33]line ИТОГО: 600.00 [10:12:33]line Внесено: 600.00 [10:12:33]line СДАЧА: 0.00 [10:12:33]line НСП 1% : 5.31 [10:12:33]line НДС 12% : 63.73 [10:12:33]line Наличными: 600.00 [10:12:33]line Безнал.: 0.00 [10:12:33]line Место: АЗС № 133 "Партнер Нефть" [10:12:33]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:12:33]line СНО: Общий режим [10:12:33]line Чек 171 20.10.2024 10:12 [10:12:33]line Смена: 533 ФФД: 1.0 [10:12:33]line ЗНМ: 0300000091 [10:12:33]line РНМ: 0000000000091685 [10:12:33]line Версия ККМ: 001 [10:12:33]line ФМ: 0000000000871839 [10:12:33]line ФД: 227323 [10:12:33]line ФПД: 161954619697343 [10:12:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101235&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227323&fm=161954619697343&tin=02508201610067®Number=0000000000091685&sum=60000 [10:12:33]OFD Sender: Processing packet 227323 [packets to send 38, broken 37] [10:12:33]ProducePacketName [10:12:33]name=ofd_packets/00227323 [10:12:33]OFD Sender: To server: pG, [10:12:33]CommunicateWithHost lk.salyk.kg:30040 [10:12:33]ConnectInit lk.salyk.kg [10:12:33]written 0, free lines is 4095 [10:12:33]Connected sock=9 [10:12:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 E3 C2 07 01 C6 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 93 D7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FB 77 03 00 35 04 06 00 93 4B FF 93 A8 BF 53 3C 5E ED F2 AB 1A 7F [10:12: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 33 39 4F 00 00 00 29 DA 47 00 FE 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FB 77 03 00 F4 03 04 00 92 82 14 67 B6 04 01 00 00 C3 4C 68 4A 36 89 2E 15 [10:12:33]CommunicateWithHost err = 0 [10:12:33]CheckOFDResponse [10:12:33]1017 (14) - 77093643461234 [10:12:33]1041 (16) - 0000000000871839 [10:12:33]1040 (4) - 227323 [10:12:33]1012 (4) - 20.10.2024 04:09 [10:12:33]1206 (1) - 0 [10:12:33]OFD Sender: Remove packet 227323 [10:12:33]ProducePacketName [10:12:33]name=ofd_packets/00227323 [10:12:33]NVStorageDeleteData [10:12:33]Write to MH i2c: 01 00 00 69 47 B0 [10:12:33]Write i2c OK [10:12:33]MH_I2C_Read... [10:12:33]Read from MH i2c: 01 [10:12:33]MH_I2C_Read... [10:12:33]Read from MH i2c: 01 07 00 [10:12:33]MH_I2C_Read... [10:12:33]Read from MH i2c: 01 07 00 69 47 00 00 00 00 00 1C 0D E0 [10:12:33]RasterBufferAndPrint [10:12:33]line [10:12:33]line [10:12:33]line [10:12:33]line [10:12:33]line [10:12:33]written 0, free lines is 3365 [10:12:33]process_action close_receipt done [10:12:33]requested_data is exist [10:12:33]produce_requested_data [10:12:33]requested_item fm.sn is exist - process it [10:12:33]wFMCommunicate request_size=4 [10:12:33]MH_SAM_APDU [10:12:33]CAPDU: 80 11 00 00 [10:12:33]Write to MH i2c: E2 08 00 70 47 80 11 00 00 00 00 00 00 31 [10:12:33]Write i2c OK [10:12:33]MH_I2C_Read... [10:12:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:33]Read from MH i2c: E2 [10:12:33]MH_I2C_Read... [10:12:33]Read from MH i2c: E2 17 00 [10:12:33]MH_I2C_Read... [10:12:33]Read from MH i2c: E2 17 00 70 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 88 [10:12:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:12:33]wFMCommunicate OK [10:12:33]requested_item fd.num is exist - process it [10:12:33]SAM_PROTO_GetFieldsCounters [10:12:33]wFMCommunicate request_size=4 [10:12:33]MH_SAM_APDU [10:12:33]CAPDU: 80 13 00 00 [10:12:33]Write to MH i2c: E2 08 00 71 47 80 13 00 00 00 00 00 00 34 [10:12:33]Write i2c OK [10:12:33]MH_I2C_Read... [10:12:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:12:34]Read from MH i2c: E2 [10:12:34]MH_I2C_Read... [10:12:34]Read from MH i2c: E2 62 00 [10:12:34]MH_I2C_Read... [10:12:34]Read from MH i2c: E2 62 00 71 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 FB 77 03 00 0E 04 04 00 15 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 EA [10:12: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 FB 77 03 00 0E 04 04 00 15 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 [10:12:34]wFMCommunicate OK [10:12:34]SAM_PROTO_GetFieldsCounters done [10:12:34]requested_item shift.num is exist - process it [10:12:34]requested_item shift.opened is exist - process it [10:12:34]req_shift_opened [10:12:34]FM_GetShiftState [10:12:34]SAM_PROTO_GetShiftState [10:12:34]wFMCommunicate request_size=4 [10:12:34]MH_SAM_APDU [10:12:34]CAPDU: 80 13 01 00 [10:12:34]Write to MH i2c: E2 08 00 72 47 80 13 01 00 00 00 00 00 36 [10:12:34]Write i2c OK [10:12:34]MH_I2C_Read... [10:12:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:34]Read from MH i2c: E2 [10:12:34]MH_I2C_Read... [10:12:34]Read from MH i2c: E2 0E 00 [10:12:34]MH_I2C_Read... [10:12:34]Read from MH i2c: E2 0E 00 72 47 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 50 [10:12:34]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:12:34]wFMCommunicate OK [10:12:34]SAM_PROTO_GetShiftState done [10:12:34]FM_GetShiftState done [10:12:34]req_shift_opened done [10:12:34]requested_item shift.open_date is exist - process it [10:12:34]req_shift_open_date [10:12:34]req_shift_open_date done [10:12:34]produce_requested_data done [10:12:34]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227323,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [10:12:34]process_action_free close_receipt [10:12:34]json_value_free [10:12:34]json_value_free done [10:12:34]process_json_proto returns [10:12:34]Send response to host [10:12:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227323,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [10:12:34]free response buf [10:12:34]execute_script done [10:12:34]execute_script returns [10:12:34]free content buf [10:12:34]Sock 10.Close socket [10:12:34]Sock 10.Thread stoped [10:12:34]OFD Sender: No OFD packet to send [10:12:39]OFD Sender: No OFD packet to send [10:12:44]OFD Sender: No OFD packet to send [10:12:49]OFD Sender: No OFD packet to send [10:12:54]OFD Sender: No OFD packet to send [10:12:55]accept exits with 8 [10:12:55]New connection [10:12:55]New thread 3066821988 created [10:12:55]Thread 3066965348 joined [10:12:55]Waiting for new connection... [10:12:55] Sock 8.Parse request [10:12:55]Sock 8.Check first char [10:12:55]Sock 8.First char is OK [10:12:55]request: POST /json_proto HTTP/1.0 [10:12:55]Method: POST [10:12:55]URL: /json_proto [10:12:55]Method is POST - this is cgi request [10:12:55]url: /json_proto [10:12:55]query_string will be loaded in cgi processing [10:12:55]execute_cgi json_proto POST (null) [10:12:55]execute_cgi path=json_proto method=POST [10:12:55]POST find Content-Length [10:12:55]Host: 172.17.44.195:8080 [10:12:55]Content-Length: 678 [10:12:55]Content-Type: application/json [10:12:55] [10:12:55]POST finish read [10:12:55]Found Content-Length = 678 [10:12:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962809", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:55]execute_script... [10:12: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)1962809", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:55]POST & json_proto [10:12:55]process_json_proto [10:12:55]json parsed OK: [10:12:55]protocol is kg_v1.0 [10:12:55]action value=close_receipt [10:12:55]process_action close_receipt [10:12:55]cmd_close_receipt [10:12:55]MH_GetDate [10:12:55]Write to MH i2c: F0 00 00 73 47 A9 [10:12:55]Write i2c OK [10:12:55]MH_I2C_Read... [10:12:55]Read from MH i2c: F0 [10:12:55]MH_I2C_Read... [10:12:55]Read from MH i2c: F0 09 00 [10:12:55]MH_I2C_Read... [10:12:55]Read from MH i2c: F0 09 00 73 47 00 AB D7 14 67 82 C9 CF 66 2F [10:12:55]GetLastDocTimeStamp 1729419155 [10:12:55]current date 1729419179 [10:12:55]FM_GetShiftState [10:12:55]SAM_PROTO_GetShiftState [10:12:55]wFMCommunicate request_size=4 [10:12:55]MH_SAM_APDU [10:12:55]CAPDU: 80 13 01 00 [10:12:55]Write to MH i2c: E2 08 00 74 47 80 13 01 00 00 00 00 00 38 [10:12:55]Write i2c OK [10:12:55]MH_I2C_Read... [10:12:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:55]Read from MH i2c: E2 [10:12:55]MH_I2C_Read... [10:12:55]Read from MH i2c: E2 0E 00 [10:12:55]MH_I2C_Read... [10:12:55]Read from MH i2c: E2 0E 00 74 47 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 52 [10:12:55]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:12:55]wFMCommunicate OK [10:12:55]SAM_PROTO_GetShiftState done [10:12:55]FM_GetShiftState done [10:12:55]opened in 1729383750 [10:12:55]opened+sec_in_day 1729470150 [10:12:55]quantity*price = 25020 [10:12:55]sum+1 = 25022 [10:12:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 172 20.10.2024 10:12 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227324 ФПД: 14972882167137 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101259&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227324&fm=14972882167137&tin=02508201610067®Number=0000000000091685&sum=25000 [10:12:56]StoreToDocumentArchive [10:12:56]shift 533 fd 227324 [10:12:56]save to /storage/0533/doc_00227324 [10:12:56]save last doc name /storage/0533/doc_00227324 to /storage/kkm_last_doc_name [10:12:56]save OK [10:12:56]Clear old archive folders... [10:12:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:12:56]tlvbuf is B6F580E0 [10:12:56]SAM_PROTO_ClearQueue [10:12:56]wFMCommunicate request_size=4 [10:12:56]MH_SAM_APDU [10:12:56]CAPDU: 80 09 00 00 [10:12:56]Write to MH i2c: E2 08 00 81 47 80 09 00 00 00 00 00 00 3A [10:12:56]Write i2c OK [10:12:56]MH_I2C_Read... [10:12:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:12:56]Read from MH i2c: E2 [10:12:56]MH_I2C_Read... [10:12:56]Read from MH i2c: E2 03 00 [10:12:56]MH_I2C_Read... [10:12:56]Read from MH i2c: E2 03 00 81 47 00 90 00 3C [10:12:56]RAPDU: 90 00 [10:12:56]wFMCommunicate OK [10:12:56]SAM_PROTO_ClearQueue done [10:12:56]KKMCreateOFDPacket [10:12:56]OFDProtocolAddRootSTLVToBuf [10:12:56]FM_MakeSignedData [10:12:56]FM_MakeSignedData [10:12:56]SAM_PROTO_SignData [10:12:56]wFMCommunicate request_size=4 [10:12:56]MH_SAM_APDU [10:12:56]CAPDU: 80 0D 01 02 [10:12:56]Write to MH i2c: E2 08 00 82 47 80 0D 01 02 00 00 00 00 42 [10:12:56]Write i2c OK [10:12:56]MH_I2C_Read... [10:12:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:12:56]Read from MH i2c: E2 [10:12:56]MH_I2C_Read... [10:12:56]Read from MH i2c: E2 03 00 [10:12:56]MH_I2C_Read... [10:12:56]Read from MH i2c: E2 03 00 82 47 00 90 00 3D [10:12:56]RAPDU: 90 00 [10:12:56]wFMCommunicate OK [10:12:56]wFMCommunicate request_size=255 [10:12:56]MH_SAM_APDU [10:12:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 AB D7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FC 77 03 00 35 04 06 00 0D [10:12:56]Write to MH i2c: E2 02 01 83 47 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 AB D7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FC 77 03 00 35 04 06 00 0D 00 00 F5 [10:12:56]Write i2c OK [10:12:56]MH_I2C_Read... [10:12:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:56]Read from MH i2c: E2 [10:12:56]MH_I2C_Read... [10:12:56]Read from MH i2c: E2 03 00 [10:12:56]MH_I2C_Read... [10:12:56]Read from MH i2c: E2 03 00 83 47 00 90 00 3E [10:12:56]RAPDU: 90 00 [10:12:56]wFMCommunicate OK [10:12:56]wFMCommunicate request_size=10 [10:12:56]MH_SAM_APDU [10:12:56]CAPDU: 80 0D 02 02 05 9E 25 52 A5 61 [10:12:56]Write to MH i2c: E2 0D 00 84 47 80 0D 02 02 05 00 9E 25 52 A5 61 00 00 6A [10:12:56]Write i2c OK [10:12:56]MH_I2C_Read... [10:12:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:56]Read from MH i2c: E2 [10:12:56]MH_I2C_Read... [10:12:56]Read from MH i2c: E2 03 00 [10:12:56]MH_I2C_Read... [10:12:56]Read from MH i2c: E2 03 00 84 47 00 90 00 3F [10:12:56]RAPDU: 90 00 [10:12:56]wFMCommunicate OK [10:12:56]wFMCommunicate request_size=4 [10:12:56]MH_SAM_APDU [10:12:56]CAPDU: 80 0D 03 02 [10:12:56]Write to MH i2c: E2 08 00 85 47 80 0D 03 02 00 00 00 00 47 [10:12:56]Write i2c OK [10:12:56]MH_I2C_Read... [10:12:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:12:56]Read from MH i2c: E2 [10:12:56]MH_I2C_Read... [10:12:56]Read from MH i2c: E2 0B 00 [10:12:56]MH_I2C_Read... [10:12:56]Read from MH i2c: E2 0B 00 85 47 00 C4 D3 95 A8 5A EE EF 65 90 00 B8 [10:12:56]RAPDU: C4 D3 95 A8 5A EE EF 65 90 00 [10:12:56]wFMCommunicate OK [10:12:56]SAM_PROTO_SignData done [10:12:56]FM_MakeSignedData done [10:12:56]CreateOFDProtocolMessage [10:12:56]wFMCommunicate request_size=4 [10:12:56]MH_SAM_APDU [10:12:56]CAPDU: 80 11 00 00 [10:12:56]Write to MH i2c: E2 08 00 86 47 80 11 00 00 00 00 00 00 47 [10:12:56]Write i2c OK [10:12:56]MH_I2C_Read... [10:12:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:56]Read from MH i2c: E2 [10:12:56]MH_I2C_Read... [10:12:56]Read from MH i2c: E2 17 00 [10:12:56]MH_I2C_Read... [10:12:56]Read from MH i2c: E2 17 00 86 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 9E [10:12:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:12:56]wFMCommunicate OK [10:12:56]CreateOFDProtocolMessage done [10:12:56]OFDSenderStorePacket 227324 [10:12:56]StoreOFDPacket docnum=227324 [10:12:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 1A 1C 07 01 0E F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 AB D7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FC 77 03 00 35 04 06 00 0D 9E 25 52 A5 61 C4 D3 95 A8 5A EE EF 65 [10:12:56]CheckFolder [10:12:56]dirname=/storage/ofd_packets [10:12:56]CheckFolder done [10:12:56]ProducePacketName [10:12:56]name=ofd_packets/00227324 [10:12:56]NVStorageSaveData ofd_packets/00227324 [10:12:56]File name is /storage/ofd_packets/00227324 [10:12:56]Write 301 bytes [10:12:56]NVStorageSaveData done [10:12:56]OFDSenderStorePacket done [10:12:56]KKMCreateOFDPacket done [10:12:56]NVStorageSaveData kkm_last_timestamp [10:12:56]File name is /storage/kkm_last_timestamp [10:12:56]Write 4 bytes [10:12:56]NVStorageSaveData done [10:12:56]ExternCall_PrintAddStr [10:12:56]wPrintStart [10:12:56]Write to MH i2c: 01 00 00 87 47 CE [10:12:56]Write i2c OK [10:12:56]MH_I2C_Read... [10:12:56]Read from MH i2c: 01 [10:12:56]MH_I2C_Read... [10:12:56]Read from MH i2c: 01 07 00 [10:12:56]MH_I2C_Read... [10:12:56]Read from MH i2c: 01 07 00 87 47 00 00 00 00 00 FF 0F E3 [10:12:56]RasterBufferAndPrint [10:12:56]line Счет N : (1)1962809 [10:12:56]line ИНН: 02508201610067 [10:12:56]line Контрольно-Кассовый Чек [10:12:56]line ПРОДАЖА [10:12:56]line ТРК (МРК, ГНК) : 43 [10:12:56]line Товар: 2710124130 [10:12:56]line Аи-92-К-5 [10:12:56]line 3.740 * 66.90 [10:12:56]line = 250.21 [10:12:56]line НДС 12% НСП 1% [10:12:56]line > о реализуемом товаре [10:12:56]line ОКРУГЛЕНИЕ: -0.21 [10:12:56]line ИТОГО: 250.00 [10:12:56]line Внесено: 250.00 [10:12:56]line СДАЧА: 0.00 [10:12:56]line НСП 1% : 2.21 [10:12:56]line НДС 12% : 26.57 [10:12:56]line Наличными: 250.00 [10:12:56]line Безнал.: 0.00 [10:12:56]line Место: АЗС № 133 "Партнер Нефть" [10:12:56]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:12:56]line СНО: Общий режим [10:12:56]line Чек 172 20.10.2024 10:12 [10:12:56]line Смена: 533 ФФД: 1.0 [10:12:56]line ЗНМ: 0300000091 [10:12:56]line РНМ: 0000000000091685 [10:12:56]line Версия ККМ: 001 [10:12:56]line ФМ: 0000000000871839 [10:12:56]line ФД: 227324 [10:12:56]line ФПД: 14972882167137 [10:12:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101259&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227324&fm=14972882167137&tin=02508201610067®Number=0000000000091685&sum=25000 [10:12:57]written 0, free lines is 4095 [10:12:57]OFD Sender: Processing packet 227324 [packets to send 38, broken 37] [10:12:57]ProducePacketName [10:12:57]name=ofd_packets/00227324 [10:12:57]OFD Sender: To server: pG, [10:12:57]CommunicateWithHost lk.salyk.kg:30040 [10:12:57]ConnectInit lk.salyk.kg [10:12:57]Connected sock=11 [10:12:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 1A 1C 07 01 0E F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 AB D7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FC 77 03 00 35 04 06 00 0D 9E 25 52 A5 61 C4 D3 95 A8 5A EE EF 65 [10:12:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 A6 F5 47 00 66 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 33 39 10 04 04 00 FC 77 03 00 F4 03 04 00 AA 82 14 67 B6 04 01 00 00 FD 67 C3 94 C3 DA BB A4 [10:12:57]CommunicateWithHost err = 0 [10:12:57]CheckOFDResponse [10:12:57]1017 (14) - 77093643461234 [10:12:57]1041 (16) - 0000000000871839 [10:12:57]1040 (4) - 227324 [10:12:57]1012 (4) - 20.10.2024 04:10 [10:12:57]1206 (1) - 0 [10:12:57]OFD Sender: Remove packet 227324 [10:12:57]ProducePacketName [10:12:57]name=ofd_packets/00227324 [10:12:57]NVStorageDeleteData [10:12:57]Write to MH i2c: 01 00 00 B1 47 F8 [10:12:57]Write i2c OK [10:12:57]MH_I2C_Read... [10:12:57]Read from MH i2c: 01 [10:12:57]MH_I2C_Read... [10:12:57]Read from MH i2c: 01 07 00 [10:12:57]MH_I2C_Read... [10:12:57]Read from MH i2c: 01 07 00 B1 47 00 00 00 00 00 12 0D 1E [10:12:57]RasterBufferAndPrint [10:12:57]line [10:12:57]line [10:12:57]line [10:12:57]line [10:12:57]line [10:12:57]written 0, free lines is 3352 [10:12:57]process_action close_receipt done [10:12:57]requested_data is exist [10:12:57]produce_requested_data [10:12:57]requested_item fm.sn is exist - process it [10:12:57]wFMCommunicate request_size=4 [10:12:57]MH_SAM_APDU [10:12:57]CAPDU: 80 11 00 00 [10:12:57]Write to MH i2c: E2 08 00 B8 47 80 11 00 00 00 00 00 00 79 [10:12:57]Write i2c OK [10:12:57]MH_I2C_Read... [10:12:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:57]Read from MH i2c: E2 [10:12:57]MH_I2C_Read... [10:12:57]Read from MH i2c: E2 17 00 [10:12:57]MH_I2C_Read... [10:12:57]Read from MH i2c: E2 17 00 B8 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D0 [10:12:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:12:57]wFMCommunicate OK [10:12:57]requested_item fd.num is exist - process it [10:12:57]SAM_PROTO_GetFieldsCounters [10:12:57]wFMCommunicate request_size=4 [10:12:57]MH_SAM_APDU [10:12:57]CAPDU: 80 13 00 00 [10:12:57]Write to MH i2c: E2 08 00 B9 47 80 13 00 00 00 00 00 00 7C [10:12:57]Write i2c OK [10:12:57]MH_I2C_Read... [10:12:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:12:57]Read from MH i2c: E2 [10:12:57]MH_I2C_Read... [10:12:57]Read from MH i2c: E2 62 00 [10:12:57]MH_I2C_Read... [10:12:57]Read from MH i2c: E2 62 00 B9 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 FC 77 03 00 0E 04 04 00 15 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 36 [10:12: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 FC 77 03 00 0E 04 04 00 15 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 [10:12:57]wFMCommunicate OK [10:12:57]SAM_PROTO_GetFieldsCounters done [10:12:57]requested_item shift.num is exist - process it [10:12:57]requested_item shift.opened is exist - process it [10:12:57]req_shift_opened [10:12:57]FM_GetShiftState [10:12:57]SAM_PROTO_GetShiftState [10:12:57]wFMCommunicate request_size=4 [10:12:57]MH_SAM_APDU [10:12:57]CAPDU: 80 13 01 00 [10:12:57]Write to MH i2c: E2 08 00 BA 47 80 13 01 00 00 00 00 00 7E [10:12:57]Write i2c OK [10:12:57]MH_I2C_Read... [10:12:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:58]Read from MH i2c: E2 [10:12:58]MH_I2C_Read... [10:12:58]Read from MH i2c: E2 0E 00 [10:12:58]MH_I2C_Read... [10:12:58]Read from MH i2c: E2 0E 00 BA 47 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 98 [10:12:58]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:12:58]wFMCommunicate OK [10:12:58]SAM_PROTO_GetShiftState done [10:12:58]FM_GetShiftState done [10:12:58]req_shift_opened done [10:12:58]requested_item shift.open_date is exist - process it [10:12:58]req_shift_open_date [10:12:58]req_shift_open_date done [10:12:58]produce_requested_data done [10:12:58]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227324,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [10:12:58]process_action_free close_receipt [10:12:58]json_value_free [10:12:58]json_value_free done [10:12:58]process_json_proto returns [10:12:58]Send response to host [10:12:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227324,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [10:12:58]free response buf [10:12:58]execute_script done [10:12:58]execute_script returns [10:12:58]free content buf [10:12:58]Sock 8.Close socket [10:12:58]Sock 8.Thread stoped [10:12:58]OFD Sender: No OFD packet to send [10:13:03]OFD Sender: No OFD packet to send [10:13:08]OFD Sender: No OFD packet to send [10:13:13]OFD Sender: No OFD packet to send [10:13:18]OFD Sender: No OFD packet to send [10:13:23]OFD Sender: No OFD packet to send [10:13:28]OFD Sender: No OFD packet to send [10:13:33]OFD Sender: No OFD packet to send [10:13:38]OFD Sender: No OFD packet to send [10:13:43]OFD Sender: No OFD packet to send [10:13:48]OFD Sender: No OFD packet to send [10:13:53]OFD Sender: No OFD packet to send [10:13:58]OFD Sender: No OFD packet to send [10:14:03]OFD Sender: No OFD packet to send [10:14:08]OFD Sender: No OFD packet to send [10:14:13]OFD Sender: No OFD packet to send [10:14:18]OFD Sender: No OFD packet to send [10:14:23]OFD Sender: No OFD packet to send [10:14:28]OFD Sender: No OFD packet to send [10:14:33]OFD Sender: No OFD packet to send [10:14:38]OFD Sender: No OFD packet to send [10:14:43]OFD Sender: No OFD packet to send [10:14:48]OFD Sender: No OFD packet to send [10:14:53]OFD Sender: No OFD packet to send [10:14:58]OFD Sender: No OFD packet to send [10:15:03]OFD Sender: No OFD packet to send [10:15:08]OFD Sender: No OFD packet to send [10:15:13]OFD Sender: No OFD packet to send [10:15:18]OFD Sender: No OFD packet to send [10:15:23]OFD Sender: No OFD packet to send [10:15:25]accept exits with 9 [10:15:25]New connection [10:15:25]New thread 3066965348 created [10:15:25]Thread 3066821988 joined [10:15:25]Waiting for new connection... [10:15:25] Sock 9.Parse request [10:15:25]Sock 9.Check first char [10:15:25]Sock 9.First char is OK [10:15:25]request: POST /json_proto HTTP/1.0 [10:15:25]Method: POST [10:15:25]URL: /json_proto [10:15:25]Method is POST - this is cgi request [10:15:25]url: /json_proto [10:15:25]query_string will be loaded in cgi processing [10:15:25]execute_cgi json_proto POST (null) [10:15:25]execute_cgi path=json_proto method=POST [10:15:25]POST find Content-Length [10:15:25]Host: 172.17.44.195:8080 [10:15:25]Content-Length: 664 [10:15:25]Content-Type: application/json [10:15:25] [10:15:25]POST finish read [10:15:25]Found Content-Length = 664 [10:15:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962811", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:15:25]execute_script... [10:15: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)1962811", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:15:25]POST & json_proto [10:15:25]process_json_proto [10:15:25]json parsed OK: [10:15:25]protocol is kg_v1.0 [10:15:25]action value=close_receipt [10:15:25]process_action close_receipt [10:15:25]cmd_close_receipt [10:15:25]MH_GetDate [10:15:25]Write to MH i2c: F0 00 00 BB 47 F1 [10:15:25]Write i2c OK [10:15:25]MH_I2C_Read... [10:15:25]Read from MH i2c: F0 [10:15:25]MH_I2C_Read... [10:15:25]Read from MH i2c: F0 09 00 [10:15:25]MH_I2C_Read... [10:15:25]Read from MH i2c: F0 09 00 BB 47 00 41 D8 14 67 82 C9 CF 66 0E [10:15:25]GetLastDocTimeStamp 1729419179 [10:15:25]current date 1729419329 [10:15:25]FM_GetShiftState [10:15:25]SAM_PROTO_GetShiftState [10:15:25]wFMCommunicate request_size=4 [10:15:25]MH_SAM_APDU [10:15:25]CAPDU: 80 13 01 00 [10:15:25]Write to MH i2c: E2 08 00 BC 47 80 13 01 00 00 00 00 00 80 [10:15:25]Write i2c OK [10:15:25]MH_I2C_Read... [10:15:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:25]Read from MH i2c: E2 [10:15:25]MH_I2C_Read... [10:15:25]Read from MH i2c: E2 0E 00 [10:15:25]MH_I2C_Read... [10:15:25]Read from MH i2c: E2 0E 00 BC 47 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 9A [10:15:25]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:15:25]wFMCommunicate OK [10:15:25]SAM_PROTO_GetShiftState done [10:15:25]FM_GetShiftState done [10:15:25]opened in 1729383750 [10:15:25]opened+sec_in_day 1729470150 [10:15:25]quantity*price = 100000 [10:15:25]sum+1 = 100002 [10:15:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 173 20.10.2024 10:15 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227325 ФПД: 54140804002642 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101529&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227325&fm=54140804002642&tin=02508201610067®Number=0000000000091685&sum=100000 [10:15:26]StoreToDocumentArchive [10:15:26]shift 533 fd 227325 [10:15:26]save to /storage/0533/doc_00227325 [10:15:26]save last doc name /storage/0533/doc_00227325 to /storage/kkm_last_doc_name [10:15:26]save OK [10:15:26]Clear old archive folders... [10:15:26]ProcessDocumentItem done err = 0, tmpTLVsize=244 [10:15:26]tlvbuf is 00594B20 [10:15:26]SAM_PROTO_ClearQueue [10:15:26]wFMCommunicate request_size=4 [10:15:26]MH_SAM_APDU [10:15:26]CAPDU: 80 09 00 00 [10:15:26]Write to MH i2c: E2 08 00 C9 47 80 09 00 00 00 00 00 00 82 [10:15:26]Write i2c OK [10:15:26]MH_I2C_Read... [10:15:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:15:26]Read from MH i2c: E2 [10:15:26]MH_I2C_Read... [10:15:26]Read from MH i2c: E2 03 00 [10:15:26]MH_I2C_Read... [10:15:26]Read from MH i2c: E2 03 00 C9 47 00 90 00 84 [10:15:26]RAPDU: 90 00 [10:15:26]wFMCommunicate OK [10:15:26]SAM_PROTO_ClearQueue done [10:15:26]KKMCreateOFDPacket [10:15:26]OFDProtocolAddRootSTLVToBuf [10:15:26]FM_MakeSignedData [10:15:26]FM_MakeSignedData [10:15:26]SAM_PROTO_SignData [10:15:26]wFMCommunicate request_size=4 [10:15:26]MH_SAM_APDU [10:15:26]CAPDU: 80 0D 01 02 [10:15:26]Write to MH i2c: E2 08 00 CA 47 80 0D 01 02 00 00 00 00 8A [10:15:26]Write i2c OK [10:15:26]MH_I2C_Read... [10:15:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:15:26]Read from MH i2c: E2 [10:15:26]MH_I2C_Read... [10:15:26]Read from MH i2c: E2 03 00 [10:15:26]MH_I2C_Read... [10:15:26]Read from MH i2c: E2 03 00 CA 47 00 90 00 85 [10:15:26]RAPDU: 90 00 [10:15:26]wFMCommunicate OK [10:15:26]wFMCommunicate request_size=253 [10:15:26]MH_SAM_APDU [10:15:26]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 41 D8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FD 77 03 00 35 04 06 00 31 3D A3 63 F3 52 [10:15:26]Write to MH i2c: E2 00 01 CB 47 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 41 D8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FD 77 03 00 35 04 06 00 31 3D A3 63 F3 52 00 00 8C [10:15:26]Write i2c OK [10:15:26]MH_I2C_Read... [10:15:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:27]Read from MH i2c: E2 [10:15:27]MH_I2C_Read... [10:15:27]Read from MH i2c: E2 03 00 [10:15:27]MH_I2C_Read... [10:15:27]Read from MH i2c: E2 03 00 CB 47 00 90 00 86 [10:15:27]RAPDU: 90 00 [10:15:27]wFMCommunicate OK [10:15:27]wFMCommunicate request_size=4 [10:15:27]MH_SAM_APDU [10:15:27]CAPDU: 80 0D 03 02 [10:15:27]Write to MH i2c: E2 08 00 CC 47 80 0D 03 02 00 00 00 00 8E [10:15:27]Write i2c OK [10:15:27]MH_I2C_Read... [10:15:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:15:27]Read from MH i2c: E2 [10:15:27]MH_I2C_Read... [10:15:27]Read from MH i2c: E2 0B 00 [10:15:27]MH_I2C_Read... [10:15:27]Read from MH i2c: E2 0B 00 CC 47 00 75 94 18 30 EB 30 75 71 90 00 E1 [10:15:27]RAPDU: 75 94 18 30 EB 30 75 71 90 00 [10:15:27]wFMCommunicate OK [10:15:27]SAM_PROTO_SignData done [10:15:27]FM_MakeSignedData done [10:15:27]CreateOFDProtocolMessage [10:15:27]wFMCommunicate request_size=4 [10:15:27]MH_SAM_APDU [10:15:27]CAPDU: 80 11 00 00 [10:15:27]Write to MH i2c: E2 08 00 CD 47 80 11 00 00 00 00 00 00 8E [10:15:27]Write i2c OK [10:15:27]MH_I2C_Read... [10:15:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:27]Read from MH i2c: E2 [10:15:27]MH_I2C_Read... [10:15:27]Read from MH i2c: E2 17 00 [10:15:27]MH_I2C_Read... [10:15:27]Read from MH i2c: E2 17 00 CD 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E5 [10:15:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:15:27]wFMCommunicate OK [10:15:27]CreateOFDProtocolMessage done [10:15:27]OFDSenderStorePacket 227325 [10:15:27]StoreOFDPacket docnum=227325 [10:15:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 9F 83 00 01 E6 01 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 41 D8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FD 77 03 00 35 04 06 00 31 3D A3 63 F3 52 75 94 18 30 EB 30 75 71 [10:15:27]CheckFolder [10:15:27]dirname=/storage/ofd_packets [10:15:27]CheckFolder done [10:15:27]ProducePacketName [10:15:27]name=ofd_packets/00227325 [10:15:27]NVStorageSaveData ofd_packets/00227325 [10:15:27]File name is /storage/ofd_packets/00227325 [10:15:27]Write 294 bytes [10:15:27]NVStorageSaveData done [10:15:27]OFDSenderStorePacket done [10:15:27]KKMCreateOFDPacket done [10:15:27]NVStorageSaveData kkm_last_timestamp [10:15:27]File name is /storage/kkm_last_timestamp [10:15:27]Write 4 bytes [10:15:27]NVStorageSaveData done [10:15:27]ExternCall_PrintAddStr [10:15:27]wPrintStart [10:15:27]Write to MH i2c: 01 00 00 CE 47 15 [10:15:27]Write i2c OK [10:15:27]MH_I2C_Read... [10:15:27]Read from MH i2c: 01 [10:15:27]MH_I2C_Read... [10:15:27]Read from MH i2c: 01 07 00 [10:15:27]MH_I2C_Read... [10:15:27]Read from MH i2c: 01 07 00 CE 47 00 00 00 00 00 FF 0F 2A [10:15:27]RasterBufferAndPrint [10:15:27]line Счет N : (1)1962811 [10:15:27]line ИНН: 02508201610067 [10:15:27]line Контрольно-Кассовый Чек [10:15:27]line ПРОДАЖА [10:15:27]line ТРК (МРК, ГНК) : 62 [10:15:27]line Товар: 2710124130 [10:15:27]line SU-92 [10:15:27]line 14.620 * 68.40 [10:15:27]line = 1000.01 [10:15:27]line НДС 12% НСП 1% [10:15:27]line > о реализуемом товаре [10:15:27]line ОКРУГЛЕНИЕ: -0.01 [10:15:27]line ИТОГО: 1000.00 [10:15:27]line Внесено: 1000.00 [10:15:27]line СДАЧА: 0.00 [10:15:27]line НСП 1% : 8.85 [10:15:27]line НДС 12% : 106.20 [10:15:27]line Наличными: 1000.00 [10:15:27]line Безнал.: 0.00 [10:15:27]line Место: АЗС № 133 "Партнер Нефть" [10:15:27]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:15:27]line СНО: Общий режим [10:15:27]line Чек 173 20.10.2024 10:15 [10:15:27]line Смена: 533 ФФД: 1.0 [10:15:27]line ЗНМ: 0300000091 [10:15:27]line РНМ: 0000000000091685 [10:15:27]line Версия ККМ: 001 [10:15:27]line ФМ: 0000000000871839 [10:15:27]line ФД: 227325 [10:15:27]line ФПД: 54140804002642 [10:15:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101529&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227325&fm=54140804002642&tin=02508201610067®Number=0000000000091685&sum=100000 [10:15:27]OFD Sender: Processing packet 227325 [packets to send 38, broken 37] [10:15:27]ProducePacketName [10:15:27]name=ofd_packets/00227325 [10:15:27]OFD Sender: To server: pG, [10:15:27]CommunicateWithHost lk.salyk.kg:30040 [10:15:27]ConnectInit lk.salyk.kg [10:15:27]written 0, free lines is 4095 [10:15:27]Connected sock=8 [10:15: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 33 39 08 01 00 00 9F 83 00 01 E6 01 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 41 D8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FD 77 03 00 35 04 06 00 31 3D A3 63 F3 52 75 94 18 30 EB 30 75 71 [10:15: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 33 39 4F 00 00 00 E3 9D 47 00 31 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FD 77 03 00 F4 03 04 00 41 83 14 67 B6 04 01 00 00 A3 36 77 C7 A6 73 3E 08 [10:15:27]CommunicateWithHost err = 0 [10:15:27]CheckOFDResponse [10:15:27]1017 (14) - 77093643461234 [10:15:27]1041 (16) - 0000000000871839 [10:15:27]1040 (4) - 227325 [10:15:27]1012 (4) - 20.10.2024 04:12 [10:15:27]1206 (1) - 0 [10:15:27]OFD Sender: Remove packet 227325 [10:15:27]ProducePacketName [10:15:27]name=ofd_packets/00227325 [10:15:27]NVStorageDeleteData [10:15:28]Write to MH i2c: 01 00 00 F8 47 3F [10:15:28]Write i2c OK [10:15:28]MH_I2C_Read... [10:15:28]Read from MH i2c: 01 [10:15:28]MH_I2C_Read... [10:15:28]Read from MH i2c: 01 07 00 [10:15:28]MH_I2C_Read... [10:15:28]Read from MH i2c: 01 07 00 F8 47 00 00 00 00 00 0A 0D 5D [10:15:28]RasterBufferAndPrint [10:15:28]line [10:15:28]line [10:15:28]line [10:15:28]line [10:15:28]line [10:15:28]written 0, free lines is 3344 [10:15:28]process_action close_receipt done [10:15:28]requested_data is exist [10:15:28]produce_requested_data [10:15:28]requested_item fm.sn is exist - process it [10:15:28]wFMCommunicate request_size=4 [10:15:28]MH_SAM_APDU [10:15:28]CAPDU: 80 11 00 00 [10:15:28]Write to MH i2c: E2 08 00 FF 47 80 11 00 00 00 00 00 00 C0 [10:15:28]Write i2c OK [10:15:28]MH_I2C_Read... [10:15:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:28]Read from MH i2c: E2 [10:15:28]MH_I2C_Read... [10:15:28]Read from MH i2c: E2 17 00 [10:15:28]MH_I2C_Read... [10:15:28]Read from MH i2c: E2 17 00 FF 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 17 [10:15:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:15:28]wFMCommunicate OK [10:15:28]requested_item fd.num is exist - process it [10:15:28]SAM_PROTO_GetFieldsCounters [10:15:28]wFMCommunicate request_size=4 [10:15:28]MH_SAM_APDU [10:15:28]CAPDU: 80 13 00 00 [10:15:28]Write to MH i2c: E2 08 00 00 48 80 13 00 00 00 00 00 00 C4 [10:15:28]Write i2c OK [10:15:28]MH_I2C_Read... [10:15:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:15:28]Read from MH i2c: E2 [10:15:28]MH_I2C_Read... [10:15:28]Read from MH i2c: E2 62 00 [10:15:28]MH_I2C_Read... [10:15:28]Read from MH i2c: E2 62 00 00 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 FD 77 03 00 0E 04 04 00 15 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 82 [10:15:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 FD 77 03 00 0E 04 04 00 15 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 [10:15:28]wFMCommunicate OK [10:15:28]SAM_PROTO_GetFieldsCounters done [10:15:28]requested_item shift.num is exist - process it [10:15:28]requested_item shift.opened is exist - process it [10:15:28]req_shift_opened [10:15:28]FM_GetShiftState [10:15:28]SAM_PROTO_GetShiftState [10:15:28]wFMCommunicate request_size=4 [10:15:28]MH_SAM_APDU [10:15:28]CAPDU: 80 13 01 00 [10:15:28]Write to MH i2c: E2 08 00 01 48 80 13 01 00 00 00 00 00 C6 [10:15:28]Write i2c OK [10:15:28]MH_I2C_Read... [10:15:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:28]Read from MH i2c: E2 [10:15:28]MH_I2C_Read... [10:15:28]Read from MH i2c: E2 0E 00 [10:15:28]MH_I2C_Read... [10:15:28]Read from MH i2c: E2 0E 00 01 48 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 E0 [10:15:28]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:15:28]wFMCommunicate OK [10:15:28]SAM_PROTO_GetShiftState done [10:15:28]FM_GetShiftState done [10:15:28]req_shift_opened done [10:15:28]requested_item shift.open_date is exist - process it [10:15:28]req_shift_open_date [10:15:28]req_shift_open_date done [10:15:28]produce_requested_data done [10:15:28]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227325,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [10:15:28]process_action_free close_receipt [10:15:28]json_value_free [10:15:28]json_value_free done [10:15:28]process_json_proto returns [10:15:28]Send response to host [10:15:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227325,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [10:15:28]free response buf [10:15:28]execute_script done [10:15:28]execute_script returns [10:15:28]free content buf [10:15:28]Sock 9.Close socket [10:15:28]Sock 9.Thread stoped [10:15:28]OFD Sender: No OFD packet to send [10:15:33]OFD Sender: No OFD packet to send [10:15:38]OFD Sender: No OFD packet to send [10:15:43]OFD Sender: No OFD packet to send [10:15:48]OFD Sender: No OFD packet to send [10:15:53]OFD Sender: No OFD packet to send [10:15:58]OFD Sender: No OFD packet to send [10:16:03]OFD Sender: No OFD packet to send [10:16:08]OFD Sender: No OFD packet to send [10:16:13]OFD Sender: No OFD packet to send [10:16:18]OFD Sender: No OFD packet to send [10:16:18]accept exits with 10 [10:16:18]New connection [10:16:18]New thread 3066821988 created [10:16:18]Thread 3066965348 joined [10:16:18]Waiting for new connection... [10:16:18] Sock 10.Parse request [10:16:18]Sock 10.Check first char [10:16:18]Sock 10.First char is OK [10:16:18]request: POST /json_proto HTTP/1.0 [10:16:18]Method: POST [10:16:18]URL: /json_proto [10:16:18]Method is POST - this is cgi request [10:16:18]url: /json_proto [10:16:18]query_string will be loaded in cgi processing [10:16:18]execute_cgi json_proto POST (null) [10:16:18]execute_cgi path=json_proto method=POST [10:16:18]POST find Content-Length [10:16:18]Host: 172.17.44.195:8080 [10:16:18]Content-Length: 683 [10:16:18]Content-Type: application/json [10:16:18] [10:16:18]POST finish read [10:16:18]Found Content-Length = 683 [10:16:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962812", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:18]execute_script... [10:16: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)1962812", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:18]POST & json_proto [10:16:18]process_json_proto [10:16:18]json parsed OK: [10:16:18]protocol is kg_v1.0 [10:16:18]action value=close_receipt [10:16:18]process_action close_receipt [10:16:18]cmd_close_receipt [10:16:18]MH_GetDate [10:16:18]Write to MH i2c: F0 00 00 02 48 39 [10:16:18]Write i2c OK [10:16:18]MH_I2C_Read... [10:16:18]Read from MH i2c: F0 [10:16:18]MH_I2C_Read... [10:16:18]Read from MH i2c: F0 09 00 [10:16:18]MH_I2C_Read... [10:16:18]Read from MH i2c: F0 09 00 02 48 00 77 D8 14 67 82 C9 CF 66 8C [10:16:18]GetLastDocTimeStamp 1729419329 [10:16:18]current date 1729419383 [10:16:18]FM_GetShiftState [10:16:18]SAM_PROTO_GetShiftState [10:16:18]wFMCommunicate request_size=4 [10:16:18]MH_SAM_APDU [10:16:18]CAPDU: 80 13 01 00 [10:16:18]Write to MH i2c: E2 08 00 03 48 80 13 01 00 00 00 00 00 C8 [10:16:18]Write i2c OK [10:16:18]MH_I2C_Read... [10:16:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:18]Read from MH i2c: E2 [10:16:18]MH_I2C_Read... [10:16:18]Read from MH i2c: E2 0E 00 [10:16:18]MH_I2C_Read... [10:16:18]Read from MH i2c: E2 0E 00 03 48 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 E2 [10:16:18]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:16:18]wFMCommunicate OK [10:16:18]SAM_PROTO_GetShiftState done [10:16:18]FM_GetShiftState done [10:16:18]opened in 1729383750 [10:16:18]opened+sec_in_day 1729470150 [10:16:18]quantity*price = 100015 [10:16:18]sum+1 = 100017 [10:16:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 174 20.10.2024 10:16 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227326 ФПД: 169850203141596 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101623&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227326&fm=169850203141596&tin=02508201610067®Number=0000000000091685&sum=100000 [10:16:19]StoreToDocumentArchive [10:16:19]shift 533 fd 227326 [10:16:19]save to /storage/0533/doc_00227326 [10:16:19]save last doc name /storage/0533/doc_00227326 to /storage/kkm_last_doc_name [10:16:19]save OK [10:16:19]Clear old archive folders... [10:16:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:16:19]tlvbuf is B6F580E0 [10:16:19]SAM_PROTO_ClearQueue [10:16:19]wFMCommunicate request_size=4 [10:16:19]MH_SAM_APDU [10:16:19]CAPDU: 80 09 00 00 [10:16:19]Write to MH i2c: E2 08 00 10 48 80 09 00 00 00 00 00 00 CA [10:16:19]Write i2c OK [10:16:19]MH_I2C_Read... [10:16:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:16:19]Read from MH i2c: E2 [10:16:19]MH_I2C_Read... [10:16:19]Read from MH i2c: E2 03 00 [10:16:19]MH_I2C_Read... [10:16:19]Read from MH i2c: E2 03 00 10 48 00 90 00 CC [10:16:19]RAPDU: 90 00 [10:16:19]wFMCommunicate OK [10:16:19]SAM_PROTO_ClearQueue done [10:16:19]KKMCreateOFDPacket [10:16:19]OFDProtocolAddRootSTLVToBuf [10:16:19]FM_MakeSignedData [10:16:19]FM_MakeSignedData [10:16:19]SAM_PROTO_SignData [10:16:19]wFMCommunicate request_size=4 [10:16:19]MH_SAM_APDU [10:16:19]CAPDU: 80 0D 01 02 [10:16:19]Write to MH i2c: E2 08 00 11 48 80 0D 01 02 00 00 00 00 D2 [10:16:19]Write i2c OK [10:16:19]MH_I2C_Read... [10:16:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:16:19]Read from MH i2c: E2 [10:16:19]MH_I2C_Read... [10:16:19]Read from MH i2c: E2 03 00 [10:16:19]MH_I2C_Read... [10:16:19]Read from MH i2c: E2 03 00 11 48 00 90 00 CD [10:16:19]RAPDU: 90 00 [10:16:19]wFMCommunicate OK [10:16:19]wFMCommunicate request_size=255 [10:16:19]MH_SAM_APDU [10:16:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 77 D8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FE 77 03 00 35 04 06 00 9A [10:16:20]Write to MH i2c: E2 02 01 12 48 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 77 D8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FE 77 03 00 35 04 06 00 9A 00 00 04 [10:16:20]Write i2c OK [10:16:20]MH_I2C_Read... [10:16:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:20]Read from MH i2c: E2 [10:16:20]MH_I2C_Read... [10:16:20]Read from MH i2c: E2 03 00 [10:16:20]MH_I2C_Read... [10:16:20]Read from MH i2c: E2 03 00 12 48 00 90 00 CE [10:16:20]RAPDU: 90 00 [10:16:20]wFMCommunicate OK [10:16:20]wFMCommunicate request_size=10 [10:16:20]MH_SAM_APDU [10:16:20]CAPDU: 80 0D 02 02 05 7A 55 05 F5 DC [10:16:20]Write to MH i2c: E2 0D 00 13 48 80 0D 02 02 05 00 7A 55 05 F5 DC 00 00 84 [10:16:20]Write i2c OK [10:16:20]MH_I2C_Read... [10:16:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:20]Read from MH i2c: E2 [10:16:20]MH_I2C_Read... [10:16:20]Read from MH i2c: E2 03 00 [10:16:20]MH_I2C_Read... [10:16:20]Read from MH i2c: E2 03 00 13 48 00 90 00 CF [10:16:20]RAPDU: 90 00 [10:16:20]wFMCommunicate OK [10:16:20]wFMCommunicate request_size=4 [10:16:20]MH_SAM_APDU [10:16:20]CAPDU: 80 0D 03 02 [10:16:20]Write to MH i2c: E2 08 00 14 48 80 0D 03 02 00 00 00 00 D7 [10:16:20]Write i2c OK [10:16:20]MH_I2C_Read... [10:16:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:16:20]Read from MH i2c: E2 [10:16:20]MH_I2C_Read... [10:16:20]Read from MH i2c: E2 0B 00 [10:16:20]MH_I2C_Read... [10:16:20]Read from MH i2c: E2 0B 00 14 48 00 30 7A 22 E9 A7 EC BB B2 90 00 8D [10:16:20]RAPDU: 30 7A 22 E9 A7 EC BB B2 90 00 [10:16:20]wFMCommunicate OK [10:16:20]SAM_PROTO_SignData done [10:16:20]FM_MakeSignedData done [10:16:20]CreateOFDProtocolMessage [10:16:20]wFMCommunicate request_size=4 [10:16:20]MH_SAM_APDU [10:16:20]CAPDU: 80 11 00 00 [10:16:20]Write to MH i2c: E2 08 00 15 48 80 11 00 00 00 00 00 00 D7 [10:16:20]Write i2c OK [10:16:20]MH_I2C_Read... [10:16:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:20]Read from MH i2c: E2 [10:16:20]MH_I2C_Read... [10:16:20]Read from MH i2c: E2 17 00 [10:16:20]MH_I2C_Read... [10:16:20]Read from MH i2c: E2 17 00 15 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 2E [10:16:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:16:20]wFMCommunicate OK [10:16:20]CreateOFDProtocolMessage done [10:16:20]OFDSenderStorePacket 227326 [10:16:20]StoreOFDPacket docnum=227326 [10:16:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 20 37 07 01 8D 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 77 D8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FE 77 03 00 35 04 06 00 9A 7A 55 05 F5 DC 30 7A 22 E9 A7 EC BB B2 [10:16:20]CheckFolder [10:16:20]dirname=/storage/ofd_packets [10:16:20]CheckFolder done [10:16:20]ProducePacketName [10:16:20]name=ofd_packets/00227326 [10:16:20]NVStorageSaveData ofd_packets/00227326 [10:16:20]File name is /storage/ofd_packets/00227326 [10:16:20]Write 301 bytes [10:16:20]NVStorageSaveData done [10:16:20]OFDSenderStorePacket done [10:16:20]KKMCreateOFDPacket done [10:16:20]NVStorageSaveData kkm_last_timestamp [10:16:20]File name is /storage/kkm_last_timestamp [10:16:20]Write 4 bytes [10:16:20]NVStorageSaveData done [10:16:20]ExternCall_PrintAddStr [10:16:20]wPrintStart [10:16:20]Write to MH i2c: 01 00 00 16 48 5E [10:16:20]Write i2c OK [10:16:20]MH_I2C_Read... [10:16:20]Read from MH i2c: 01 [10:16:20]MH_I2C_Read... [10:16:20]Read from MH i2c: 01 07 00 [10:16:20]MH_I2C_Read... [10:16:20]Read from MH i2c: 01 07 00 16 48 00 00 00 00 00 FF 0F 73 [10:16:20]RasterBufferAndPrint [10:16:20]line Счет N : (1)1962812 [10:16:20]line ИНН: 02508201610067 [10:16:20]line Контрольно-Кассовый Чек [10:16:20]line ПРОДАЖА [10:16:20]line ТРК (МРК, ГНК) : 53 [10:16:20]line Товар: 2710124130 [10:16:20]line Аи-92-К-5 [10:16:20]line 14.950 * 66.90 [10:16:20]line = 1000.16 [10:16:20]line НДС 12% НСП 1% [10:16:20]line > о реализуемом товаре [10:16:20]line ОКРУГЛЕНИЕ: -0.16 [10:16:20]line ИТОГО: 1000.00 [10:16:20]line Внесено: 1000.00 [10:16:20]line СДАЧА: 0.00 [10:16:20]line НСП 1% : 8.85 [10:16:20]line НДС 12% : 106.21 [10:16:20]line Наличными: 1000.00 [10:16:20]line Безнал.: 0.00 [10:16:20]line Место: АЗС № 133 "Партнер Нефть" [10:16:20]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:16:20]line СНО: Общий режим [10:16:20]line Чек 174 20.10.2024 10:16 [10:16:20]line Смена: 533 ФФД: 1.0 [10:16:20]line ЗНМ: 0300000091 [10:16:20]line РНМ: 0000000000091685 [10:16:20]line Версия ККМ: 001 [10:16:20]line ФМ: 0000000000871839 [10:16:20]line ФД: 227326 [10:16:20]line ФПД: 169850203141596 [10:16:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101623&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227326&fm=169850203141596&tin=02508201610067®Number=0000000000091685&sum=100000 [10:16:20]written 0, free lines is 4095 [10:16:20]OFD Sender: Processing packet 227326 [packets to send 38, broken 37] [10:16:20]ProducePacketName [10:16:20]name=ofd_packets/00227326 [10:16:20]OFD Sender: To server: pG, [10:16:20]CommunicateWithHost lk.salyk.kg:30040 [10:16:20]ConnectInit lk.salyk.kg [10:16:20]Connected sock=9 [10:16:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 20 37 07 01 8D 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 77 D8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FE 77 03 00 35 04 06 00 9A 7A 55 05 F5 DC 30 7A 22 E9 A7 EC BB B2 [10:16: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 33 39 4F 00 00 00 A1 B6 47 00 4C 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 33 39 10 04 04 00 FE 77 03 00 F4 03 04 00 76 83 14 67 B6 04 01 00 00 AC 6F C7 A2 4C 46 B5 48 [10:16:20]CommunicateWithHost err = 0 [10:16:20]CheckOFDResponse [10:16:20]1017 (14) - 77093643461234 [10:16:20]1041 (16) - 0000000000871839 [10:16:20]1040 (4) - 227326 [10:16:20]1012 (4) - 20.10.2024 04:13 [10:16:20]1206 (1) - 0 [10:16:20]OFD Sender: Remove packet 227326 [10:16:20]ProducePacketName [10:16:20]name=ofd_packets/00227326 [10:16:20]NVStorageDeleteData [10:16:20]Write to MH i2c: 01 00 00 40 48 88 [10:16:20]Write i2c OK [10:16:20]MH_I2C_Read... [10:16:20]Read from MH i2c: 01 [10:16:20]MH_I2C_Read... [10:16:20]Read from MH i2c: 01 07 00 [10:16:20]MH_I2C_Read... [10:16:20]Read from MH i2c: 01 07 00 40 48 00 00 00 00 00 16 0D B2 [10:16:20]RasterBufferAndPrint [10:16:20]line [10:16:20]line [10:16:20]line [10:16:20]line [10:16:20]line [10:16:20]written 0, free lines is 3356 [10:16:20]process_action close_receipt done [10:16:20]requested_data is exist [10:16:20]produce_requested_data [10:16:20]requested_item fm.sn is exist - process it [10:16:20]wFMCommunicate request_size=4 [10:16:20]MH_SAM_APDU [10:16:20]CAPDU: 80 11 00 00 [10:16:20]Write to MH i2c: E2 08 00 47 48 80 11 00 00 00 00 00 00 09 [10:16:20]Write i2c OK [10:16:20]MH_I2C_Read... [10:16:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:20]Read from MH i2c: E2 [10:16:20]MH_I2C_Read... [10:16:20]Read from MH i2c: E2 17 00 [10:16:20]MH_I2C_Read... [10:16:20]Read from MH i2c: E2 17 00 47 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 60 [10:16:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:16:20]wFMCommunicate OK [10:16:20]requested_item fd.num is exist - process it [10:16:20]SAM_PROTO_GetFieldsCounters [10:16:20]wFMCommunicate request_size=4 [10:16:20]MH_SAM_APDU [10:16:20]CAPDU: 80 13 00 00 [10:16:20]Write to MH i2c: E2 08 00 48 48 80 13 00 00 00 00 00 00 0C [10:16:20]Write i2c OK [10:16:20]MH_I2C_Read... [10:16:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:16:21]Read from MH i2c: E2 [10:16:21]MH_I2C_Read... [10:16:21]Read from MH i2c: E2 62 00 [10:16:21]MH_I2C_Read... [10:16:21]Read from MH i2c: E2 62 00 48 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 FE 77 03 00 0E 04 04 00 15 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 CE [10:16:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 FE 77 03 00 0E 04 04 00 15 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 [10:16:21]wFMCommunicate OK [10:16:21]SAM_PROTO_GetFieldsCounters done [10:16:21]requested_item shift.num is exist - process it [10:16:21]requested_item shift.opened is exist - process it [10:16:21]req_shift_opened [10:16:21]FM_GetShiftState [10:16:21]SAM_PROTO_GetShiftState [10:16:21]wFMCommunicate request_size=4 [10:16:21]MH_SAM_APDU [10:16:21]CAPDU: 80 13 01 00 [10:16:21]Write to MH i2c: E2 08 00 49 48 80 13 01 00 00 00 00 00 0E [10:16:21]Write i2c OK [10:16:21]MH_I2C_Read... [10:16:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:21]Read from MH i2c: E2 [10:16:21]MH_I2C_Read... [10:16:21]Read from MH i2c: E2 0E 00 [10:16:21]MH_I2C_Read... [10:16:21]Read from MH i2c: E2 0E 00 49 48 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 28 [10:16:21]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:16:21]wFMCommunicate OK [10:16:21]SAM_PROTO_GetShiftState done [10:16:21]FM_GetShiftState done [10:16:21]req_shift_opened done [10:16:21]requested_item shift.open_date is exist - process it [10:16:21]req_shift_open_date [10:16:21]req_shift_open_date done [10:16:21]produce_requested_data done [10:16:21]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227326,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [10:16:21]process_action_free close_receipt [10:16:21]json_value_free [10:16:21]json_value_free done [10:16:21]process_json_proto returns [10:16:21]Send response to host [10:16:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227326,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [10:16:21]free response buf [10:16:21]execute_script done [10:16:21]execute_script returns [10:16:21]free content buf [10:16:21]Sock 10.Close socket [10:16:21]Sock 10.Thread stoped [10:16:21]OFD Sender: No OFD packet to send [10:16:26]OFD Sender: No OFD packet to send [10:16:30]accept exits with 8 [10:16:30]New connection [10:16:30]New thread 3066965348 created [10:16:30]Thread 3066821988 joined [10:16:30]Waiting for new connection... [10:16:30] Sock 8.Parse request [10:16:30]Sock 8.Check first char [10:16:30]Sock 8.First char is OK [10:16:30]request: POST /json_proto HTTP/1.0 [10:16:30]Method: POST [10:16:30]URL: /json_proto [10:16:30]Method is POST - this is cgi request [10:16:30]url: /json_proto [10:16:30]query_string will be loaded in cgi processing [10:16:30]execute_cgi json_proto POST (null) [10:16:30]execute_cgi path=json_proto method=POST [10:16:30]POST find Content-Length [10:16:30]Host: 172.17.44.195:8080 [10:16:30]Content-Length: 683 [10:16:30]Content-Type: application/json [10:16:30] [10:16:30]POST finish read [10:16:30]Found Content-Length = 683 [10:16:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962813", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:30]execute_script... [10:16:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962813", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:30]POST & json_proto [10:16:30]process_json_proto [10:16:30]json parsed OK: [10:16:30]protocol is kg_v1.0 [10:16:30]action value=close_receipt [10:16:30]process_action close_receipt [10:16:30]cmd_close_receipt [10:16:30]MH_GetDate [10:16:30]Write to MH i2c: F0 00 00 4A 48 81 [10:16:30]Write i2c OK [10:16:30]MH_I2C_Read... [10:16:30]Read from MH i2c: F0 [10:16:30]MH_I2C_Read... [10:16:30]Read from MH i2c: F0 09 00 [10:16:30]MH_I2C_Read... [10:16:30]Read from MH i2c: F0 09 00 4A 48 00 83 D8 14 67 82 C9 CF 66 E0 [10:16:30]GetLastDocTimeStamp 1729419383 [10:16:30]current date 1729419395 [10:16:30]FM_GetShiftState [10:16:30]SAM_PROTO_GetShiftState [10:16:30]wFMCommunicate request_size=4 [10:16:30]MH_SAM_APDU [10:16:30]CAPDU: 80 13 01 00 [10:16:30]Write to MH i2c: E2 08 00 4B 48 80 13 01 00 00 00 00 00 10 [10:16:30]Write i2c OK [10:16:30]MH_I2C_Read... [10:16:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:30]Read from MH i2c: E2 [10:16:30]MH_I2C_Read... [10:16:30]Read from MH i2c: E2 0E 00 [10:16:30]MH_I2C_Read... [10:16:30]Read from MH i2c: E2 0E 00 4B 48 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 2A [10:16:30]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:16:30]wFMCommunicate OK [10:16:30]SAM_PROTO_GetShiftState done [10:16:30]FM_GetShiftState done [10:16:30]opened in 1729383750 [10:16:30]opened+sec_in_day 1729470150 [10:16:30]quantity*price = 100021 [10:16:30]sum+1 = 100023 [10:16:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 175 20.10.2024 10:16 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227327 ФПД: 72509166672094 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101635&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227327&fm=72509166672094&tin=02508201610067®Number=0000000000091685&sum=100000 [10:16:32]StoreToDocumentArchive [10:16:32]shift 533 fd 227327 [10:16:32]save to /storage/0533/doc_00227327 [10:16:32]save last doc name /storage/0533/doc_00227327 to /storage/kkm_last_doc_name [10:16:32]save OK [10:16:32]Clear old archive folders... [10:16:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:16:32]tlvbuf is 00534AF0 [10:16:32]SAM_PROTO_ClearQueue [10:16:32]wFMCommunicate request_size=4 [10:16:32]MH_SAM_APDU [10:16:32]CAPDU: 80 09 00 00 [10:16:32]Write to MH i2c: E2 08 00 58 48 80 09 00 00 00 00 00 00 12 [10:16:32]Write i2c OK [10:16:32]MH_I2C_Read... [10:16:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:16:32]Read from MH i2c: E2 [10:16:32]MH_I2C_Read... [10:16:32]Read from MH i2c: E2 03 00 [10:16:32]MH_I2C_Read... [10:16:32]Read from MH i2c: E2 03 00 58 48 00 90 00 14 [10:16:32]RAPDU: 90 00 [10:16:32]wFMCommunicate OK [10:16:32]SAM_PROTO_ClearQueue done [10:16:32]KKMCreateOFDPacket [10:16:32]OFDProtocolAddRootSTLVToBuf [10:16:32]FM_MakeSignedData [10:16:32]FM_MakeSignedData [10:16:32]SAM_PROTO_SignData [10:16:32]wFMCommunicate request_size=4 [10:16:32]MH_SAM_APDU [10:16:32]CAPDU: 80 0D 01 02 [10:16:32]Write to MH i2c: E2 08 00 59 48 80 0D 01 02 00 00 00 00 1A [10:16:32]Write i2c OK [10:16:32]MH_I2C_Read... [10:16:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:16:32]Read from MH i2c: E2 [10:16:32]MH_I2C_Read... [10:16:32]Read from MH i2c: E2 03 00 [10:16:32]MH_I2C_Read... [10:16:32]Read from MH i2c: E2 03 00 59 48 00 90 00 15 [10:16:32]RAPDU: 90 00 [10:16:32]wFMCommunicate OK [10:16:32]wFMCommunicate request_size=255 [10:16:32]MH_SAM_APDU [10:16:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 83 D8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FF 77 03 00 35 04 06 00 41 [10:16:32]Write to MH i2c: E2 02 01 5A 48 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 83 D8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FF 77 03 00 35 04 06 00 41 00 00 24 [10:16:32]Write i2c OK [10:16:32]MH_I2C_Read... [10:16:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:32]Read from MH i2c: E2 [10:16:32]MH_I2C_Read... [10:16:32]Read from MH i2c: E2 03 00 [10:16:32]MH_I2C_Read... [10:16:32]Read from MH i2c: E2 03 00 5A 48 00 90 00 16 [10:16:32]RAPDU: 90 00 [10:16:32]wFMCommunicate OK [10:16:32]wFMCommunicate request_size=10 [10:16:32]MH_SAM_APDU [10:16:32]CAPDU: 80 0D 02 02 05 F2 5B 1F 58 DE [10:16:32]Write to MH i2c: E2 0D 00 5B 48 80 0D 02 02 05 00 F2 5B 1F 58 DE 00 00 C9 [10:16:32]Write i2c OK [10:16:32]MH_I2C_Read... [10:16:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:32]Read from MH i2c: E2 [10:16:32]MH_I2C_Read... [10:16:32]Read from MH i2c: E2 03 00 [10:16:32]MH_I2C_Read... [10:16:32]Read from MH i2c: E2 03 00 5B 48 00 90 00 17 [10:16:32]RAPDU: 90 00 [10:16:32]wFMCommunicate OK [10:16:32]wFMCommunicate request_size=4 [10:16:32]MH_SAM_APDU [10:16:32]CAPDU: 80 0D 03 02 [10:16:32]Write to MH i2c: E2 08 00 5C 48 80 0D 03 02 00 00 00 00 1F [10:16:32]Write i2c OK [10:16:32]MH_I2C_Read... [10:16:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:16:32]Read from MH i2c: E2 [10:16:32]MH_I2C_Read... [10:16:32]Read from MH i2c: E2 0B 00 [10:16:32]MH_I2C_Read... [10:16:32]Read from MH i2c: E2 0B 00 5C 48 00 41 AC 9B 8E FE 8B A8 60 90 00 C7 [10:16:32]RAPDU: 41 AC 9B 8E FE 8B A8 60 90 00 [10:16:32]wFMCommunicate OK [10:16:32]SAM_PROTO_SignData done [10:16:32]FM_MakeSignedData done [10:16:32]CreateOFDProtocolMessage [10:16:32]wFMCommunicate request_size=4 [10:16:32]MH_SAM_APDU [10:16:32]CAPDU: 80 11 00 00 [10:16:32]Write to MH i2c: E2 08 00 5D 48 80 11 00 00 00 00 00 00 1F [10:16:32]Write i2c OK [10:16:32]MH_I2C_Read... [10:16:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:32]Read from MH i2c: E2 [10:16:32]MH_I2C_Read... [10:16:32]Read from MH i2c: E2 17 00 [10:16:32]MH_I2C_Read... [10:16:32]Read from MH i2c: E2 17 00 5D 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 76 [10:16:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:16:32]wFMCommunicate OK [10:16:32]CreateOFDProtocolMessage done [10:16:32]OFDSenderStorePacket 227327 [10:16:32]StoreOFDPacket docnum=227327 [10:16:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 92 6D 07 01 D0 A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 83 D8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FF 77 03 00 35 04 06 00 41 F2 5B 1F 58 DE 41 AC 9B 8E FE 8B A8 60 [10:16:32]CheckFolder [10:16:32]dirname=/storage/ofd_packets [10:16:32]CheckFolder done [10:16:32]ProducePacketName [10:16:32]name=ofd_packets/00227327 [10:16:32]NVStorageSaveData ofd_packets/00227327 [10:16:32]File name is /storage/ofd_packets/00227327 [10:16:32]Write 301 bytes [10:16:32]NVStorageSaveData done [10:16:32]OFDSenderStorePacket done [10:16:32]KKMCreateOFDPacket done [10:16:32]NVStorageSaveData kkm_last_timestamp [10:16:32]File name is /storage/kkm_last_timestamp [10:16:32]Write 4 bytes [10:16:32]NVStorageSaveData done [10:16:32]ExternCall_PrintAddStr [10:16:32]wPrintStart [10:16:32]Write to MH i2c: 01 00 00 5E 48 A6 [10:16:32]Write i2c OK [10:16:32]MH_I2C_Read... [10:16:32]Read from MH i2c: 01 [10:16:32]MH_I2C_Read... [10:16:32]Read from MH i2c: 01 07 00 [10:16:32]MH_I2C_Read... [10:16:32]Read from MH i2c: 01 07 00 5E 48 00 00 00 00 00 FF 0F BB [10:16:32]RasterBufferAndPrint [10:16:32]line Счет N : (1)1962813 [10:16:32]line ИНН: 02508201610067 [10:16:32]line Контрольно-Кассовый Чек [10:16:32]line ПРОДАЖА [10:16:32]line ТРК (МРК, ГНК) : 44 [10:16:32]line Товар: 2710124500 [10:16:32]line Аи-95-К-5 [10:16:32]line 13.480 * 74.20 [10:16:32]line = 1000.22 [10:16:32]line НДС 12% НСП 1% [10:16:32]line > о реализуемом товаре [10:16:32]line ОКРУГЛЕНИЕ: -0.22 [10:16:32]line ИТОГО: 1000.00 [10:16:32]line Внесено: 1000.00 [10:16:32]line СДАЧА: 0.00 [10:16:32]line НСП 1% : 8.85 [10:16:32]line НДС 12% : 106.22 [10:16:32]line Наличными: 1000.00 [10:16:32]line Безнал.: 0.00 [10:16:32]line Место: АЗС № 133 "Партнер Нефть" [10:16:32]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:16:32]line СНО: Общий режим [10:16:32]line Чек 175 20.10.2024 10:16 [10:16:32]line Смена: 533 ФФД: 1.0 [10:16:32]line ЗНМ: 0300000091 [10:16:32]line РНМ: 0000000000091685 [10:16:32]line Версия ККМ: 001 [10:16:32]line ФМ: 0000000000871839 [10:16:32]line ФД: 227327 [10:16:32]line ФПД: 72509166672094 [10:16:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101635&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227327&fm=72509166672094&tin=02508201610067®Number=0000000000091685&sum=100000 [10:16:32]written 0, free lines is 4095 [10:16:32]OFD Sender: Processing packet 227327 [packets to send 38, broken 37] [10:16:32]ProducePacketName [10:16:32]name=ofd_packets/00227327 [10:16:32]OFD Sender: To server: pG, [10:16:32]CommunicateWithHost lk.salyk.kg:30040 [10:16:32]ConnectInit lk.salyk.kg [10:16:32]Connected sock=10 [10:16:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 92 6D 07 01 D0 A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 83 D8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FF 77 03 00 35 04 06 00 41 F2 5B 1F 58 DE 41 AC 9B 8E FE 8B A8 60 [10:16: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 33 39 4F 00 00 00 C3 33 47 00 29 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 33 39 10 04 04 00 FF 77 03 00 F4 03 04 00 82 83 14 67 B6 04 01 00 00 CC 19 4B 20 5E 3E 7B A1 [10:16:32]CommunicateWithHost err = 0 [10:16:32]CheckOFDResponse [10:16:32]1017 (14) - 77093643461234 [10:16:32]1041 (16) - 0000000000871839 [10:16:32]1040 (4) - 227327 [10:16:32]1012 (4) - 20.10.2024 04:13 [10:16:32]1206 (1) - 0 [10:16:32]OFD Sender: Remove packet 227327 [10:16:32]ProducePacketName [10:16:32]name=ofd_packets/00227327 [10:16:32]NVStorageDeleteData [10:16:33]Write to MH i2c: 01 00 00 88 48 D0 [10:16:33]Write i2c OK [10:16:33]MH_I2C_Read... [10:16:33]Read from MH i2c: 01 [10:16:33]MH_I2C_Read... [10:16:33]Read from MH i2c: 01 07 00 [10:16:33]MH_I2C_Read... [10:16:33]Read from MH i2c: 01 07 00 88 48 00 00 00 00 00 19 0D FD [10:16:33]RasterBufferAndPrint [10:16:33]line [10:16:33]line [10:16:33]line [10:16:33]line [10:16:33]line [10:16:33]written 0, free lines is 3365 [10:16:33]process_action close_receipt done [10:16:33]requested_data is exist [10:16:33]produce_requested_data [10:16:33]requested_item fm.sn is exist - process it [10:16:33]wFMCommunicate request_size=4 [10:16:33]MH_SAM_APDU [10:16:33]CAPDU: 80 11 00 00 [10:16:33]Write to MH i2c: E2 08 00 8F 48 80 11 00 00 00 00 00 00 51 [10:16:33]Write i2c OK [10:16:33]MH_I2C_Read... [10:16:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:33]Read from MH i2c: E2 [10:16:33]MH_I2C_Read... [10:16:33]Read from MH i2c: E2 17 00 [10:16:33]MH_I2C_Read... [10:16:33]Read from MH i2c: E2 17 00 8F 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A8 [10:16:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:16:33]wFMCommunicate OK [10:16:33]requested_item fd.num is exist - process it [10:16:33]SAM_PROTO_GetFieldsCounters [10:16:33]wFMCommunicate request_size=4 [10:16:33]MH_SAM_APDU [10:16:33]CAPDU: 80 13 00 00 [10:16:33]Write to MH i2c: E2 08 00 90 48 80 13 00 00 00 00 00 00 54 [10:16:33]Write i2c OK [10:16:33]MH_I2C_Read... [10:16:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:16:33]Read from MH i2c: E2 [10:16:33]MH_I2C_Read... [10:16:33]Read from MH i2c: E2 62 00 [10:16:33]MH_I2C_Read... [10:16:33]Read from MH i2c: E2 62 00 90 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 FF 77 03 00 0E 04 04 00 15 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 1A [10:16: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 FF 77 03 00 0E 04 04 00 15 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 [10:16:33]wFMCommunicate OK [10:16:33]SAM_PROTO_GetFieldsCounters done [10:16:33]requested_item shift.num is exist - process it [10:16:33]requested_item shift.opened is exist - process it [10:16:33]req_shift_opened [10:16:33]FM_GetShiftState [10:16:33]SAM_PROTO_GetShiftState [10:16:33]wFMCommunicate request_size=4 [10:16:33]MH_SAM_APDU [10:16:33]CAPDU: 80 13 01 00 [10:16:33]Write to MH i2c: E2 08 00 91 48 80 13 01 00 00 00 00 00 56 [10:16:33]Write i2c OK [10:16:33]MH_I2C_Read... [10:16:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:33]Read from MH i2c: E2 [10:16:33]MH_I2C_Read... [10:16:33]Read from MH i2c: E2 0E 00 [10:16:33]MH_I2C_Read... [10:16:33]Read from MH i2c: E2 0E 00 91 48 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 70 [10:16:33]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:16:33]wFMCommunicate OK [10:16:33]SAM_PROTO_GetShiftState done [10:16:33]FM_GetShiftState done [10:16:33]req_shift_opened done [10:16:33]requested_item shift.open_date is exist - process it [10:16:33]req_shift_open_date [10:16:33]req_shift_open_date done [10:16:33]produce_requested_data done [10:16:33]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227327,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [10:16:33]process_action_free close_receipt [10:16:33]json_value_free [10:16:33]json_value_free done [10:16:33]process_json_proto returns [10:16:33]Send response to host [10:16:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227327,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [10:16:33]free response buf [10:16:33]execute_script done [10:16:33]execute_script returns [10:16:33]free content buf [10:16:33]Sock 8.Close socket [10:16:33]Sock 8.Thread stoped [10:16:33]OFD Sender: No OFD packet to send [10:16:36]accept exits with 9 [10:16:36]New connection [10:16:36]New thread 3066821988 created [10:16:36]Thread 3066965348 joined [10:16:36]Waiting for new connection... [10:16:36] Sock 9.Parse request [10:16:36]Sock 9.Check first char [10:16:36]Sock 9.First char is OK [10:16:36]request: POST /json_proto HTTP/1.0 [10:16:36]Method: POST [10:16:36]URL: /json_proto [10:16:36]Method is POST - this is cgi request [10:16:36]url: /json_proto [10:16:36]query_string will be loaded in cgi processing [10:16:36]execute_cgi json_proto POST (null) [10:16:36]execute_cgi path=json_proto method=POST [10:16:36]POST find Content-Length [10:16:36]Host: 172.17.44.195:8080 [10:16:36]Content-Length: 680 [10:16:36]Content-Type: application/json [10:16:36] [10:16:36]POST finish read [10:16:36]Found Content-Length = 680 [10:16:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962807", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 78.750, "sum" : 6000.75, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 6000.00, "payments": [ { "type": 0, "sum" : 6000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:36]execute_script... [10:16:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962807", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 78.750, "sum" : 6000.75, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 6000.00, "payments": [ { "type": 0, "sum" : 6000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:36]POST & json_proto [10:16:36]process_json_proto [10:16:36]json parsed OK: [10:16:36]protocol is kg_v1.0 [10:16:36]action value=close_receipt [10:16:36]process_action close_receipt [10:16:36]cmd_close_receipt [10:16:36]MH_GetDate [10:16:36]Write to MH i2c: F0 00 00 92 48 C9 [10:16:36]Write i2c OK [10:16:36]MH_I2C_Read... [10:16:36]Read from MH i2c: F0 [10:16:36]MH_I2C_Read... [10:16:36]Read from MH i2c: F0 09 00 [10:16:36]MH_I2C_Read... [10:16:36]Read from MH i2c: F0 09 00 92 48 00 88 D8 14 67 82 C9 CF 66 2D [10:16:36]GetLastDocTimeStamp 1729419395 [10:16:36]current date 1729419400 [10:16:36]FM_GetShiftState [10:16:36]SAM_PROTO_GetShiftState [10:16:36]wFMCommunicate request_size=4 [10:16:36]MH_SAM_APDU [10:16:36]CAPDU: 80 13 01 00 [10:16:36]Write to MH i2c: E2 08 00 93 48 80 13 01 00 00 00 00 00 58 [10:16:36]Write i2c OK [10:16:36]MH_I2C_Read... [10:16:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:36]Read from MH i2c: E2 [10:16:36]MH_I2C_Read... [10:16:36]Read from MH i2c: E2 0E 00 [10:16:36]MH_I2C_Read... [10:16:36]Read from MH i2c: E2 0E 00 93 48 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 72 [10:16:36]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:16:36]wFMCommunicate OK [10:16:36]SAM_PROTO_GetShiftState done [10:16:36]FM_GetShiftState done [10:16:36]opened in 1729383750 [10:16:36]opened+sec_in_day 1729470150 [10:16:36]quantity*price = 600075 [10:16:36]sum+1 = 600076 [10:16:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.75 ИТОГО: 6000.00 Внесено: 6000.00 СДАЧА: 0.00 НСП 1% : 53.10 НДС 12% : 637.25 Наличными: 6000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 176 20.10.2024 10:16 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227328 ФПД: 20602957912617 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101640&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227328&fm=20602957912617&tin=02508201610067®Number=0000000000091685&sum=600000 [10:16:37]StoreToDocumentArchive [10:16:37]shift 533 fd 227328 [10:16:37]save to /storage/0533/doc_00227328 [10:16:37]save last doc name /storage/0533/doc_00227328 to /storage/kkm_last_doc_name [10:16:37]save OK [10:16:37]Clear old archive folders... [10:16:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:16:37]tlvbuf is 005DE1D0 [10:16:37]SAM_PROTO_ClearQueue [10:16:37]wFMCommunicate request_size=4 [10:16:37]MH_SAM_APDU [10:16:37]CAPDU: 80 09 00 00 [10:16:37]Write to MH i2c: E2 08 00 A0 48 80 09 00 00 00 00 00 00 5A [10:16:37]Write i2c OK [10:16:37]MH_I2C_Read... [10:16:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:16:37]Read from MH i2c: E2 [10:16:37]MH_I2C_Read... [10:16:37]Read from MH i2c: E2 03 00 [10:16:37]MH_I2C_Read... [10:16:37]Read from MH i2c: E2 03 00 A0 48 00 90 00 5C [10:16:37]RAPDU: 90 00 [10:16:37]wFMCommunicate OK [10:16:37]SAM_PROTO_ClearQueue done [10:16:37]KKMCreateOFDPacket [10:16:37]OFDProtocolAddRootSTLVToBuf [10:16:37]FM_MakeSignedData [10:16:37]FM_MakeSignedData [10:16:37]SAM_PROTO_SignData [10:16:37]wFMCommunicate request_size=4 [10:16:37]MH_SAM_APDU [10:16:37]CAPDU: 80 0D 01 02 [10:16:37]Write to MH i2c: E2 08 00 A1 48 80 0D 01 02 00 00 00 00 62 [10:16:37]Write i2c OK [10:16:37]MH_I2C_Read... [10:16:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:16:37]Read from MH i2c: E2 [10:16:37]MH_I2C_Read... [10:16:37]Read from MH i2c: E2 03 00 [10:16:37]MH_I2C_Read... [10:16:37]Read from MH i2c: E2 03 00 A1 48 00 90 00 5D [10:16:37]RAPDU: 90 00 [10:16:37]wFMCommunicate OK [10:16:37]wFMCommunicate request_size=255 [10:16:37]MH_SAM_APDU [10:16:37]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 33 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0B 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 88 D8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 00 78 03 00 35 04 06 00 12 BC FF FC [10:16:37]Write to MH i2c: E2 02 01 A2 48 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 33 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0B 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 88 D8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 00 78 03 00 35 04 06 00 12 BC FF FC 00 00 33 [10:16:37]Write i2c OK [10:16:37]MH_I2C_Read... [10:16:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:37]Read from MH i2c: E2 [10:16:37]MH_I2C_Read... [10:16:37]Read from MH i2c: E2 03 00 [10:16:37]MH_I2C_Read... [10:16:37]Read from MH i2c: E2 03 00 A2 48 00 90 00 5E [10:16:37]RAPDU: 90 00 [10:16:37]wFMCommunicate OK [10:16:37]wFMCommunicate request_size=7 [10:16:37]MH_SAM_APDU [10:16:37]CAPDU: 80 0D 02 02 02 DA 29 [10:16:37]Write to MH i2c: E2 0A 00 A3 48 80 0D 02 02 02 00 DA 29 00 00 6C [10:16:37]Write i2c OK [10:16:37]MH_I2C_Read... [10:16:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:37]Read from MH i2c: E2 [10:16:37]MH_I2C_Read... [10:16:37]Read from MH i2c: E2 03 00 [10:16:37]MH_I2C_Read... [10:16:37]Read from MH i2c: E2 03 00 A3 48 00 90 00 5F [10:16:37]RAPDU: 90 00 [10:16:37]wFMCommunicate OK [10:16:37]wFMCommunicate request_size=4 [10:16:37]MH_SAM_APDU [10:16:37]CAPDU: 80 0D 03 02 [10:16:37]Write to MH i2c: E2 08 00 A4 48 80 0D 03 02 00 00 00 00 67 [10:16:37]Write i2c OK [10:16:37]MH_I2C_Read... [10:16:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:16:37]Read from MH i2c: E2 [10:16:37]MH_I2C_Read... [10:16:37]Read from MH i2c: E2 0B 00 [10:16:37]MH_I2C_Read... [10:16:37]Read from MH i2c: E2 0B 00 A4 48 00 3C 76 69 B4 D2 D0 DB 7F 90 00 33 [10:16:37]RAPDU: 3C 76 69 B4 D2 D0 DB 7F 90 00 [10:16:37]wFMCommunicate OK [10:16:37]SAM_PROTO_SignData done [10:16:37]FM_MakeSignedData done [10:16:37]CreateOFDProtocolMessage [10:16:37]wFMCommunicate request_size=4 [10:16:37]MH_SAM_APDU [10:16:37]CAPDU: 80 11 00 00 [10:16:37]Write to MH i2c: E2 08 00 A5 48 80 11 00 00 00 00 00 00 67 [10:16:37]Write i2c OK [10:16:37]MH_I2C_Read... [10:16:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:37]Read from MH i2c: E2 [10:16:37]MH_I2C_Read... [10:16:37]Read from MH i2c: E2 17 00 [10:16:37]MH_I2C_Read... [10:16:37]Read from MH i2c: E2 17 00 A5 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 BE [10:16:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:16:37]wFMCommunicate OK [10:16:37]CreateOFDProtocolMessage done [10:16:37]OFDSenderStorePacket 227328 [10:16:37]StoreOFDPacket docnum=227328 [10:16:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 C0 33 04 01 4A BD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 33 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0B 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 88 D8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 00 78 03 00 35 04 06 00 12 BC FF FC DA 29 3C 76 69 B4 D2 D0 DB 7F [10:16:37]CheckFolder [10:16:37]dirname=/storage/ofd_packets [10:16:37]CheckFolder done [10:16:37]ProducePacketName [10:16:37]name=ofd_packets/00227328 [10:16:37]NVStorageSaveData ofd_packets/00227328 [10:16:37]File name is /storage/ofd_packets/00227328 [10:16:37]Write 298 bytes [10:16:37]NVStorageSaveData done [10:16:37]OFDSenderStorePacket done [10:16:37]KKMCreateOFDPacket done [10:16:37]NVStorageSaveData kkm_last_timestamp [10:16:37]File name is /storage/kkm_last_timestamp [10:16:37]Write 4 bytes [10:16:37]NVStorageSaveData done [10:16:37]ExternCall_PrintAddStr [10:16:37]wPrintStart [10:16:37]Write to MH i2c: 01 00 00 A6 48 EE [10:16:37]Write i2c OK [10:16:37]MH_I2C_Read... [10:16:37]Read from MH i2c: 01 [10:16:37]MH_I2C_Read... [10:16:37]Read from MH i2c: 01 07 00 [10:16:37]MH_I2C_Read... [10:16:37]OFD Sender: Processing packet 227328 [packets to send 38, broken 37] [10:16:37]ProducePacketName [10:16:37]name=ofd_packets/00227328 [10:16:37]OFD Sender: To server: pG, [10:16:37]CommunicateWithHost lk.salyk.kg:30040 [10:16:37]ConnectInit lk.salyk.kg [10:16:37]Read from MH i2c: 01 07 00 A6 48 00 00 00 00 00 FF 0F 03 [10:16:37]RasterBufferAndPrint [10:16:37]line Счет N : (1)1962807 [10:16:37]line ИНН: 02508201610067 [10:16:37]line Контрольно-Кассовый Чек [10:16:37]line ПРОДАЖА [10:16:37]line ТРК (МРК, ГНК) : 31 [10:16:37]line Товар: 2710194210 [10:16:37]line ДТ-К-5 [10:16:37]line 78.750 * 76.20 [10:16:37]line = 6000.75 [10:16:37]line НДС 12% НСП 1% [10:16:37]line > о реализуемом товаре [10:16:37]line ОКРУГЛЕНИЕ: -0.75 [10:16:38]line ИТОГО: 6000.00 [10:16:38]line Внесено: 6000.00 [10:16:38]line СДАЧА: 0.00 [10:16:38]line НСП 1% : 53.10 [10:16:38]line НДС 12% : 637.25 [10:16:38]line Наличными: 6000.00 [10:16:38]line Безнал.: 0.00 [10:16:38]line Место: АЗС № 133 "Партнер Нефть" [10:16:38]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:16:38]line СНО: Общий режим [10:16:38]line Чек 176 20.10.2024 10:16 [10:16:38]line Смена: 533 ФФД: 1.0 [10:16:38]line ЗНМ: 0300000091 [10:16:38]line РНМ: 0000000000091685 [10:16:38]line Версия ККМ: 001 [10:16:38]line ФМ: 0000000000871839 [10:16:38]line ФД: 227328 [10:16:38]line ФПД: 20602957912617 [10:16:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101640&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227328&fm=20602957912617&tin=02508201610067®Number=0000000000091685&sum=600000 [10:16:38]Connected sock=10 [10:16:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 C0 33 04 01 4A BD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 33 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0B 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 written 0, free lines is 4095 [10:16:38]EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 88 D8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 00 78 03 00 35 04 06 00 12 BC FF FC DA 29 3C 76 69 B4 D2 D0 DB 7F [10:16: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 33 39 4F 00 00 00 F2 67 47 00 A9 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 33 39 10 04 04 00 00 78 03 00 F4 03 04 00 87 83 14 67 B6 04 01 00 00 0F EA 38 B1 DA 00 3B D7 [10:16:38]CommunicateWithHost err = 0 [10:16:38]CheckOFDResponse [10:16:38]1017 (14) - 77093643461234 [10:16:38]1041 (16) - 0000000000871839 [10:16:38]1040 (4) - 227328 [10:16:38]1012 (4) - 20.10.2024 04:13 [10:16:38]1206 (1) - 0 [10:16:38]OFD Sender: Remove packet 227328 [10:16:38]ProducePacketName [10:16:38]name=ofd_packets/00227328 [10:16:38]NVStorageDeleteData [10:16:38]Write to MH i2c: 01 00 00 D0 48 18 [10:16:38]Write i2c OK [10:16:38]MH_I2C_Read... [10:16:38]Read from MH i2c: 01 [10:16:38]MH_I2C_Read... [10:16:38]Read from MH i2c: 01 07 00 [10:16:38]MH_I2C_Read... [10:16:38]Read from MH i2c: 01 07 00 D0 48 00 00 00 00 00 08 0D 34 [10:16:38]RasterBufferAndPrint [10:16:38]line [10:16:38]line [10:16:38]line [10:16:38]line [10:16:38]line [10:16:38]written 0, free lines is 3354 [10:16:38]process_action close_receipt done [10:16:38]requested_data is exist [10:16:38]produce_requested_data [10:16:38]requested_item fm.sn is exist - process it [10:16:38]wFMCommunicate request_size=4 [10:16:38]MH_SAM_APDU [10:16:38]CAPDU: 80 11 00 00 [10:16:38]Write to MH i2c: E2 08 00 D7 48 80 11 00 00 00 00 00 00 99 [10:16:38]Write i2c OK [10:16:38]MH_I2C_Read... [10:16:38]Read from MH i2c: E2 [10:16:38]MH_I2C_Read... [10:16:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:38]Read from MH i2c: E2 17 00 [10:16:38]MH_I2C_Read... [10:16:38]Read from MH i2c: E2 17 00 D7 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F0 [10:16:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:16:38]wFMCommunicate OK [10:16:38]requested_item fd.num is exist - process it [10:16:38]SAM_PROTO_GetFieldsCounters [10:16:38]wFMCommunicate request_size=4 [10:16:38]MH_SAM_APDU [10:16:38]CAPDU: 80 13 00 00 [10:16:38]Write to MH i2c: E2 08 00 D8 48 80 13 00 00 00 00 00 00 9C [10:16:38]Write i2c OK [10:16:38]MH_I2C_Read... [10:16:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:16:39]Read from MH i2c: E2 [10:16:39]MH_I2C_Read... [10:16:39]Read from MH i2c: E2 62 00 [10:16:39]MH_I2C_Read... [10:16:39]Read from MH i2c: E2 62 00 D8 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 00 78 03 00 0E 04 04 00 15 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 67 [10:16: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 00 78 03 00 0E 04 04 00 15 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 [10:16:39]wFMCommunicate OK [10:16:39]SAM_PROTO_GetFieldsCounters done [10:16:39]requested_item shift.num is exist - process it [10:16:39]requested_item shift.opened is exist - process it [10:16:39]req_shift_opened [10:16:39]FM_GetShiftState [10:16:39]SAM_PROTO_GetShiftState [10:16:39]wFMCommunicate request_size=4 [10:16:39]MH_SAM_APDU [10:16:39]CAPDU: 80 13 01 00 [10:16:39]Write to MH i2c: E2 08 00 D9 48 80 13 01 00 00 00 00 00 9E [10:16:39]OFD Sender: No OFD packet to send [10:16:39]Write i2c OK [10:16:39]MH_I2C_Read... [10:16:39]Read from MH i2c: E2 [10:16:39]MH_I2C_Read... [10:16:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:39]Read from MH i2c: E2 0E 00 [10:16:39]MH_I2C_Read... [10:16:39]Read from MH i2c: E2 0E 00 D9 48 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 B8 [10:16:39]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:16:39]wFMCommunicate OK [10:16:39]SAM_PROTO_GetShiftState done [10:16:39]FM_GetShiftState done [10:16:39]req_shift_opened done [10:16:39]requested_item shift.open_date is exist - process it [10:16:39]req_shift_open_date [10:16:39]req_shift_open_date done [10:16:39]produce_requested_data done [10:16:39]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227328,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [10:16:39]process_action_free close_receipt [10:16:39]json_value_free [10:16:39]json_value_free done [10:16:39]process_json_proto returns [10:16:39]Send response to host [10:16:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227328,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [10:16:39]free response buf [10:16:39]execute_script done [10:16:39]execute_script returns [10:16:39]free content buf [10:16:39]Sock 9.Close socket [10:16:39]Sock 9.Thread stoped [10:16:44]OFD Sender: No OFD packet to send [10:16:49]OFD Sender: No OFD packet to send [10:16:54]OFD Sender: No OFD packet to send [10:16:59]OFD Sender: No OFD packet to send [10:17:04]OFD Sender: No OFD packet to send [10:17:09]OFD Sender: No OFD packet to send [10:17:14]OFD Sender: No OFD packet to send [10:17:19]OFD Sender: No OFD packet to send [10:17:24]OFD Sender: No OFD packet to send [10:17:29]OFD Sender: No OFD packet to send [10:17:34]OFD Sender: No OFD packet to send [10:17:39]OFD Sender: No OFD packet to send [10:17:44]OFD Sender: No OFD packet to send [10:17:49]OFD Sender: No OFD packet to send [10:17:50]accept exits with 8 [10:17:50]New connection [10:17:50]New thread 3066965348 created [10:17:50]Thread 3066821988 joined [10:17:50]Waiting for new connection... [10:17:50] Sock 8.Parse request [10:17:50]Sock 8.Check first char [10:17:50]Sock 8.First char is OK [10:17:50]request: POST /json_proto HTTP/1.0 [10:17:50]Method: POST [10:17:50]URL: /json_proto [10:17:50]Method is POST - this is cgi request [10:17:50]url: /json_proto [10:17:50]query_string will be loaded in cgi processing [10:17:50]execute_cgi json_proto POST (null) [10:17:50]execute_cgi path=json_proto method=POST [10:17:50]POST find Content-Length [10:17:50]Host: 172.17.44.195:8080 [10:17:50]Content-Length: 678 [10:17:50]Content-Type: application/json [10:17:50] [10:17:50]POST finish read [10:17:50]Found Content-Length = 678 [10:17:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962814", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:17:50]execute_script... [10:17: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)1962814", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:17:50]POST & json_proto [10:17:50]process_json_proto [10:17:50]json parsed OK: [10:17:50]protocol is kg_v1.0 [10:17:50]action value=close_receipt [10:17:50]process_action close_receipt [10:17:50]cmd_close_receipt [10:17:50]MH_GetDate [10:17:50]Write to MH i2c: F0 00 00 DA 48 11 [10:17:50]Write i2c OK [10:17:50]MH_I2C_Read... [10:17:50]Read from MH i2c: F0 [10:17:50]MH_I2C_Read... [10:17:50]Read from MH i2c: F0 09 00 [10:17:50]MH_I2C_Read... [10:17:50]Read from MH i2c: F0 09 00 DA 48 00 D3 D8 14 67 82 C9 CF 66 C0 [10:17:50]GetLastDocTimeStamp 1729419400 [10:17:50]current date 1729419475 [10:17:50]FM_GetShiftState [10:17:50]SAM_PROTO_GetShiftState [10:17:50]wFMCommunicate request_size=4 [10:17:50]MH_SAM_APDU [10:17:50]CAPDU: 80 13 01 00 [10:17:50]Write to MH i2c: E2 08 00 DB 48 80 13 01 00 00 00 00 00 A0 [10:17:50]Write i2c OK [10:17:50]MH_I2C_Read... [10:17:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:50]Read from MH i2c: E2 [10:17:50]MH_I2C_Read... [10:17:50]Read from MH i2c: E2 0E 00 [10:17:50]MH_I2C_Read... [10:17:50]Read from MH i2c: E2 0E 00 DB 48 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 BA [10:17:50]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:17:50]wFMCommunicate OK [10:17:50]SAM_PROTO_GetShiftState done [10:17:50]FM_GetShiftState done [10:17:50]opened in 1729383750 [10:17:50]opened+sec_in_day 1729470150 [10:17:50]quantity*price = 30038 [10:17:50]sum+1 = 30039 [10:17:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 177 20.10.2024 10:17 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227329 ФПД: 261000100136418 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101755&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227329&fm=261000100136418&tin=02508201610067®Number=0000000000091685&sum=30000 [10:17:52]StoreToDocumentArchive [10:17:52]shift 533 fd 227329 [10:17:52]save to /storage/0533/doc_00227329 [10:17:52]save last doc name /storage/0533/doc_00227329 to /storage/kkm_last_doc_name [10:17:52]save OK [10:17:52]Clear old archive folders... [10:17:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:17:52]tlvbuf is 0059EA40 [10:17:52]SAM_PROTO_ClearQueue [10:17:52]wFMCommunicate request_size=4 [10:17:52]MH_SAM_APDU [10:17:52]CAPDU: 80 09 00 00 [10:17:52]Write to MH i2c: E2 08 00 E8 48 80 09 00 00 00 00 00 00 A2 [10:17:52]Write i2c OK [10:17:52]MH_I2C_Read... [10:17:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:17:52]Read from MH i2c: E2 [10:17:52]MH_I2C_Read... [10:17:52]Read from MH i2c: E2 03 00 [10:17:52]MH_I2C_Read... [10:17:52]Read from MH i2c: E2 03 00 E8 48 00 90 00 A4 [10:17:52]RAPDU: 90 00 [10:17:52]wFMCommunicate OK [10:17:52]SAM_PROTO_ClearQueue done [10:17:52]KKMCreateOFDPacket [10:17:52]OFDProtocolAddRootSTLVToBuf [10:17:52]FM_MakeSignedData [10:17:52]FM_MakeSignedData [10:17:52]SAM_PROTO_SignData [10:17:52]wFMCommunicate request_size=4 [10:17:52]MH_SAM_APDU [10:17:52]CAPDU: 80 0D 01 02 [10:17:52]Write to MH i2c: E2 08 00 E9 48 80 0D 01 02 00 00 00 00 AA [10:17:52]Write i2c OK [10:17:52]MH_I2C_Read... [10:17:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:17:52]Read from MH i2c: E2 [10:17:52]MH_I2C_Read... [10:17:52]Read from MH i2c: E2 03 00 [10:17:52]MH_I2C_Read... [10:17:52]Read from MH i2c: E2 03 00 E9 48 00 90 00 A5 [10:17:52]RAPDU: 90 00 [10:17:52]wFMCommunicate OK [10:17:52]wFMCommunicate request_size=255 [10:17:52]MH_SAM_APDU [10:17:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 D3 D8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 01 78 03 00 35 04 06 00 ED [10:17:52]Write to MH i2c: E2 02 01 EA 48 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 D3 D8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 01 78 03 00 35 04 06 00 ED 00 00 8C [10:17:52]Write i2c OK [10:17:52]MH_I2C_Read... [10:17:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:52]Read from MH i2c: E2 [10:17:52]MH_I2C_Read... [10:17:52]Read from MH i2c: E2 03 00 [10:17:52]MH_I2C_Read... [10:17:52]Read from MH i2c: E2 03 00 EA 48 00 90 00 A6 [10:17:52]RAPDU: 90 00 [10:17:52]wFMCommunicate OK [10:17:52]wFMCommunicate request_size=10 [10:17:52]MH_SAM_APDU [10:17:52]CAPDU: 80 0D 02 02 05 60 D2 41 45 E2 [10:17:52]Write to MH i2c: E2 0D 00 EB 48 80 0D 02 02 05 00 60 D2 41 45 E2 00 00 51 [10:17:52]Write i2c OK [10:17:52]MH_I2C_Read... [10:17:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:52]Read from MH i2c: E2 [10:17:52]MH_I2C_Read... [10:17:52]Read from MH i2c: E2 03 00 [10:17:52]MH_I2C_Read... [10:17:52]Read from MH i2c: E2 03 00 EB 48 00 90 00 A7 [10:17:52]RAPDU: 90 00 [10:17:52]wFMCommunicate OK [10:17:52]wFMCommunicate request_size=4 [10:17:52]MH_SAM_APDU [10:17:52]CAPDU: 80 0D 03 02 [10:17:52]Write to MH i2c: E2 08 00 EC 48 80 0D 03 02 00 00 00 00 AF [10:17:52]Write i2c OK [10:17:52]MH_I2C_Read... [10:17:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:17:52]Read from MH i2c: E2 [10:17:52]MH_I2C_Read... [10:17:52]Read from MH i2c: E2 0B 00 [10:17:52]MH_I2C_Read... [10:17:52]Read from MH i2c: E2 0B 00 EC 48 00 D0 56 B8 58 C0 2C 2E 33 90 00 33 [10:17:52]RAPDU: D0 56 B8 58 C0 2C 2E 33 90 00 [10:17:52]wFMCommunicate OK [10:17:52]SAM_PROTO_SignData done [10:17:52]FM_MakeSignedData done [10:17:52]CreateOFDProtocolMessage [10:17:52]wFMCommunicate request_size=4 [10:17:52]MH_SAM_APDU [10:17:52]CAPDU: 80 11 00 00 [10:17:52]Write to MH i2c: E2 08 00 ED 48 80 11 00 00 00 00 00 00 AF [10:17:52]Write i2c OK [10:17:52]MH_I2C_Read... [10:17:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:52]Read from MH i2c: E2 [10:17:52]MH_I2C_Read... [10:17:52]Read from MH i2c: E2 17 00 [10:17:52]MH_I2C_Read... [10:17:52]Read from MH i2c: E2 17 00 ED 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 06 [10:17:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:17:52]wFMCommunicate OK [10:17:52]CreateOFDProtocolMessage done [10:17:52]OFDSenderStorePacket 227329 [10:17:52]StoreOFDPacket docnum=227329 [10:17:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 2C 2C 07 01 42 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 D3 D8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 01 78 03 00 35 04 06 00 ED 60 D2 41 45 E2 D0 56 B8 58 C0 2C 2E 33 [10:17:52]CheckFolder [10:17:52]dirname=/storage/ofd_packets [10:17:52]CheckFolder done [10:17:52]ProducePacketName [10:17:52]name=ofd_packets/00227329 [10:17:52]NVStorageSaveData ofd_packets/00227329 [10:17:52]File name is /storage/ofd_packets/00227329 [10:17:52]Write 301 bytes [10:17:52]NVStorageSaveData done [10:17:52]OFDSenderStorePacket done [10:17:52]KKMCreateOFDPacket done [10:17:52]NVStorageSaveData kkm_last_timestamp [10:17:52]File name is /storage/kkm_last_timestamp [10:17:52]Write 4 bytes [10:17:52]NVStorageSaveData done [10:17:52]ExternCall_PrintAddStr [10:17:52]wPrintStart [10:17:52]Write to MH i2c: 01 00 00 EE 48 36 [10:17:52]Write i2c OK [10:17:52]MH_I2C_Read... [10:17:52]Read from MH i2c: 01 [10:17:52]MH_I2C_Read... [10:17:52]Read from MH i2c: 01 07 00 [10:17:52]MH_I2C_Read... [10:17:52]Read from MH i2c: 01 07 00 EE 48 00 00 00 00 00 FF 0F 4B [10:17:52]RasterBufferAndPrint [10:17:52]line Счет N : (1)1962814 [10:17:52]line ИНН: 02508201610067 [10:17:52]line Контрольно-Кассовый Чек [10:17:52]line ПРОДАЖА [10:17:52]line ТРК (МРК, ГНК) : 63 [10:17:52]line Товар: 2710124130 [10:17:52]line Аи-92-К-5 [10:17:52]line 4.490 * 66.90 [10:17:52]line = 300.38 [10:17:52]line НДС 12% НСП 1% [10:17:52]line > о реализуемом товаре [10:17:52]line ОКРУГЛЕНИЕ: -0.38 [10:17:52]line ИТОГО: 300.00 [10:17:52]line Внесено: 300.00 [10:17:52]line СДАЧА: 0.00 [10:17:52]line НСП 1% : 2.66 [10:17:52]line НДС 12% : 31.90 [10:17:52]line Наличными: 300.00 [10:17:52]line Безнал.: 0.00 [10:17:52]line Место: АЗС № 133 "Партнер Нефть" [10:17:52]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:17:52]line СНО: Общий режим [10:17:52]line Чек 177 20.10.2024 10:17 [10:17:52]line Смена: 533 ФФД: 1.0 [10:17:52]line ЗНМ: 0300000091 [10:17:52]line РНМ: 0000000000091685 [10:17:52]line Версия ККМ: 001 [10:17:52]line ФМ: 0000000000871839 [10:17:52]line ФД: 227329 [10:17:52]line ФПД: 261000100136418 [10:17:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101755&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227329&fm=261000100136418&tin=02508201610067®Number=0000000000091685&sum=30000 [10:17:52]OFD Sender: Processing packet 227329 [packets to send 38, broken 37] [10:17:52]ProducePacketName [10:17:52]name=ofd_packets/00227329 [10:17:52]OFD Sender: To server: pG, [10:17:52]CommunicateWithHost lk.salyk.kg:30040 [10:17:52]ConnectInit lk.salyk.kg [10:17:52]written 0, free lines is 4095 [10:17:53]Connected sock=10 [10:17: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 33 39 0F 01 00 00 2C 2C 07 01 42 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 D3 D8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 01 78 03 00 35 04 06 00 ED 60 D2 41 45 E2 D0 56 B8 58 C0 2C 2E 33 [10:17: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 33 39 4F 00 00 00 DE 56 47 00 CB DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 01 78 03 00 F4 03 04 00 D2 83 14 67 B6 04 01 00 00 E4 48 BA 7F 28 77 FA DC [10:17:53]CommunicateWithHost err = 0 [10:17:53]CheckOFDResponse [10:17:53]1017 (14) - 77093643461234 [10:17:53]1041 (16) - 0000000000871839 [10:17:53]1040 (4) - 227329 [10:17:53]1012 (4) - 20.10.2024 04:15 [10:17:53]1206 (1) - 0 [10:17:53]OFD Sender: Remove packet 227329 [10:17:53]ProducePacketName [10:17:53]name=ofd_packets/00227329 [10:17:53]NVStorageDeleteData [10:17:53]Write to MH i2c: 01 00 00 18 49 61 [10:17:53]Write i2c OK [10:17:53]MH_I2C_Read... [10:17:53]Read from MH i2c: 01 [10:17:53]MH_I2C_Read... [10:17:53]Read from MH i2c: 01 07 00 [10:17:53]MH_I2C_Read... [10:17:53]Read from MH i2c: 01 07 00 18 49 00 00 00 00 00 0A 0D 7F [10:17:53]RasterBufferAndPrint [10:17:53]line [10:17:53]line [10:17:53]line [10:17:53]line [10:17:53]line [10:17:53]written 0, free lines is 3344 [10:17:53]process_action close_receipt done [10:17:53]requested_data is exist [10:17:53]produce_requested_data [10:17:53]requested_item fm.sn is exist - process it [10:17:53]wFMCommunicate request_size=4 [10:17:53]MH_SAM_APDU [10:17:53]CAPDU: 80 11 00 00 [10:17:53]Write to MH i2c: E2 08 00 1F 49 80 11 00 00 00 00 00 00 E2 [10:17:53]Write i2c OK [10:17:53]MH_I2C_Read... [10:17:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:53]Read from MH i2c: E2 [10:17:53]MH_I2C_Read... [10:17:53]Read from MH i2c: E2 17 00 [10:17:53]MH_I2C_Read... [10:17:53]Read from MH i2c: E2 17 00 1F 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 39 [10:17:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:17:53]wFMCommunicate OK [10:17:53]requested_item fd.num is exist - process it [10:17:53]SAM_PROTO_GetFieldsCounters [10:17:53]wFMCommunicate request_size=4 [10:17:53]MH_SAM_APDU [10:17:53]CAPDU: 80 13 00 00 [10:17:53]Write to MH i2c: E2 08 00 20 49 80 13 00 00 00 00 00 00 E5 [10:17:53]Write i2c OK [10:17:53]MH_I2C_Read... [10:17:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:17:53]Read from MH i2c: E2 [10:17:53]MH_I2C_Read... [10:17:53]Read from MH i2c: E2 62 00 [10:17:53]MH_I2C_Read... [10:17:53]Read from MH i2c: E2 62 00 20 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 01 78 03 00 0E 04 04 00 15 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 B4 [10:17: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 01 78 03 00 0E 04 04 00 15 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 [10:17:53]wFMCommunicate OK [10:17:53]SAM_PROTO_GetFieldsCounters done [10:17:53]requested_item shift.num is exist - process it [10:17:53]requested_item shift.opened is exist - process it [10:17:53]req_shift_opened [10:17:53]FM_GetShiftState [10:17:53]SAM_PROTO_GetShiftState [10:17:53]wFMCommunicate request_size=4 [10:17:53]MH_SAM_APDU [10:17:53]CAPDU: 80 13 01 00 [10:17:53]Write to MH i2c: E2 08 00 21 49 80 13 01 00 00 00 00 00 E7 [10:17:53]Write i2c OK [10:17:53]MH_I2C_Read... [10:17:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:53]Read from MH i2c: E2 [10:17:53]MH_I2C_Read... [10:17:53]Read from MH i2c: E2 0E 00 [10:17:53]MH_I2C_Read... [10:17:53]Read from MH i2c: E2 0E 00 21 49 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 01 [10:17:53]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:17:53]wFMCommunicate OK [10:17:53]SAM_PROTO_GetShiftState done [10:17:53]FM_GetShiftState done [10:17:53]req_shift_opened done [10:17:53]requested_item shift.open_date is exist - process it [10:17:53]req_shift_open_date [10:17:53]req_shift_open_date done [10:17:53]produce_requested_data done [10:17:53]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227329,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [10:17:53]process_action_free close_receipt [10:17:53]json_value_free [10:17:53]json_value_free done [10:17:53]process_json_proto returns [10:17:53]Send response to host [10:17:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227329,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [10:17:53]free response buf [10:17:53]execute_script done [10:17:53]execute_script returns [10:17:53]free content buf [10:17:53]Sock 8.Close socket [10:17:53]Sock 8.Thread stoped [10:17:53]OFD Sender: No OFD packet to send [10:17:58]OFD Sender: No OFD packet to send [10:18:03]OFD Sender: No OFD packet to send [10:18:08]OFD Sender: No OFD packet to send [10:18:13]OFD Sender: No OFD packet to send [10:18:18]OFD Sender: No OFD packet to send [10:18:23]OFD Sender: No OFD packet to send [10:18:28]OFD Sender: No OFD packet to send [10:18:33]OFD Sender: No OFD packet to send [10:18:38]OFD Sender: No OFD packet to send [10:18:43]OFD Sender: No OFD packet to send [10:18:48]OFD Sender: No OFD packet to send [10:18:53]OFD Sender: No OFD packet to send [10:18:58]OFD Sender: No OFD packet to send [10:19:03]OFD Sender: No OFD packet to send [10:19:08]OFD Sender: No OFD packet to send [10:19:09]accept exits with 9 [10:19:09]New connection [10:19:09]New thread 3066821988 created [10:19:09]Thread 3066965348 joined [10:19:09]Waiting for new connection... [10:19:09] Sock 9.Parse request [10:19:09]Sock 9.Check first char [10:19:09]Sock 9.First char is OK [10:19:09]request: POST /json_proto HTTP/1.0 [10:19:09]Method: POST [10:19:09]URL: /json_proto [10:19:09]Method is POST - this is cgi request [10:19:09]url: /json_proto [10:19:09]query_string will be loaded in cgi processing [10:19:09]execute_cgi json_proto POST (null) [10:19:09]execute_cgi path=json_proto method=POST [10:19:09]POST find Content-Length [10:19:09]Host: 172.17.44.195:8080 [10:19:09]Content-Length: 678 [10:19:09]Content-Type: application/json [10:19:09] [10:19:09]POST finish read [10:19:09]Found Content-Length = 678 [10:19:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962816", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:09]execute_script... [10:19:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962816", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:09]POST & json_proto [10:19:09]process_json_proto [10:19:09]json parsed OK: [10:19:09]protocol is kg_v1.0 [10:19:09]action value=close_receipt [10:19:09]process_action close_receipt [10:19:09]cmd_close_receipt [10:19:09]MH_GetDate [10:19:09]Write to MH i2c: F0 00 00 22 49 5A [10:19:09]Write i2c OK [10:19:09]MH_I2C_Read... [10:19:09]Read from MH i2c: F0 [10:19:09]MH_I2C_Read... [10:19:09]Read from MH i2c: F0 09 00 [10:19:09]MH_I2C_Read... [10:19:09]Read from MH i2c: F0 09 00 22 49 00 21 D9 14 67 82 C9 CF 66 58 [10:19:09]GetLastDocTimeStamp 1729419475 [10:19:09]current date 1729419553 [10:19:09]FM_GetShiftState [10:19:09]SAM_PROTO_GetShiftState [10:19:09]wFMCommunicate request_size=4 [10:19:09]MH_SAM_APDU [10:19:09]CAPDU: 80 13 01 00 [10:19:09]Write to MH i2c: E2 08 00 23 49 80 13 01 00 00 00 00 00 E9 [10:19:09]Write i2c OK [10:19:09]MH_I2C_Read... [10:19:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:09]Read from MH i2c: E2 [10:19:09]MH_I2C_Read... [10:19:09]Read from MH i2c: E2 0E 00 [10:19:09]MH_I2C_Read... [10:19:09]Read from MH i2c: E2 0E 00 23 49 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 03 [10:19:09]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:19:09]wFMCommunicate OK [10:19:09]SAM_PROTO_GetShiftState done [10:19:09]FM_GetShiftState done [10:19:09]opened in 1729383750 [10:19:09]opened+sec_in_day 1729470150 [10:19:09]quantity*price = 50041 [10:19:09]sum+1 = 50042 [10:19:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 178 20.10.2024 10:19 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227330 ФПД: 199081873686138 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101913&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227330&fm=199081873686138&tin=02508201610067®Number=0000000000091685&sum=50000 [10:19:10]StoreToDocumentArchive [10:19:10]shift 533 fd 227330 [10:19:10]save to /storage/0533/doc_00227330 [10:19:10]save last doc name /storage/0533/doc_00227330 to /storage/kkm_last_doc_name [10:19:10]save OK [10:19:10]Clear old archive folders... [10:19:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:19:10]tlvbuf is 00541E40 [10:19:10]SAM_PROTO_ClearQueue [10:19:10]wFMCommunicate request_size=4 [10:19:10]MH_SAM_APDU [10:19:10]CAPDU: 80 09 00 00 [10:19:10]Write to MH i2c: E2 08 00 30 49 80 09 00 00 00 00 00 00 EB [10:19:10]Write i2c OK [10:19:10]MH_I2C_Read... [10:19:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:19:10]Read from MH i2c: E2 [10:19:10]MH_I2C_Read... [10:19:10]Read from MH i2c: E2 03 00 [10:19:10]MH_I2C_Read... [10:19:10]Read from MH i2c: E2 03 00 30 49 00 90 00 ED [10:19:10]RAPDU: 90 00 [10:19:10]wFMCommunicate OK [10:19:10]SAM_PROTO_ClearQueue done [10:19:10]KKMCreateOFDPacket [10:19:10]OFDProtocolAddRootSTLVToBuf [10:19:10]FM_MakeSignedData [10:19:10]FM_MakeSignedData [10:19:10]SAM_PROTO_SignData [10:19:10]wFMCommunicate request_size=4 [10:19:10]MH_SAM_APDU [10:19:10]CAPDU: 80 0D 01 02 [10:19:10]Write to MH i2c: E2 08 00 31 49 80 0D 01 02 00 00 00 00 F3 [10:19:10]Write i2c OK [10:19:10]MH_I2C_Read... [10:19:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:19:10]Read from MH i2c: E2 [10:19:10]MH_I2C_Read... [10:19:10]Read from MH i2c: E2 03 00 [10:19:10]MH_I2C_Read... [10:19:10]Read from MH i2c: E2 03 00 31 49 00 90 00 EE [10:19:10]RAPDU: 90 00 [10:19:10]wFMCommunicate OK [10:19:10]wFMCommunicate request_size=255 [10:19:10]MH_SAM_APDU [10:19:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 21 D9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 02 78 03 00 35 04 06 00 B5 [10:19:10]Write to MH i2c: E2 02 01 32 49 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 21 D9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 02 78 03 00 35 04 06 00 B5 00 00 FA [10:19:10]Write i2c OK [10:19:10]MH_I2C_Read... [10:19:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:10]Read from MH i2c: E2 [10:19:10]MH_I2C_Read... [10:19:10]Read from MH i2c: E2 03 00 [10:19:10]MH_I2C_Read... [10:19:10]Read from MH i2c: E2 03 00 32 49 00 90 00 EF [10:19:10]RAPDU: 90 00 [10:19:10]wFMCommunicate OK [10:19:10]wFMCommunicate request_size=10 [10:19:10]MH_SAM_APDU [10:19:10]CAPDU: 80 0D 02 02 05 10 5C 5C BE 7A [10:19:10]Write to MH i2c: E2 0D 00 33 49 80 0D 02 02 05 00 10 5C 5C BE 7A 00 00 00 [10:19:10]Write i2c OK [10:19:10]MH_I2C_Read... [10:19:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:10]Read from MH i2c: E2 [10:19:10]MH_I2C_Read... [10:19:10]Read from MH i2c: E2 03 00 [10:19:10]MH_I2C_Read... [10:19:10]Read from MH i2c: E2 03 00 33 49 00 90 00 F0 [10:19:10]RAPDU: 90 00 [10:19:10]wFMCommunicate OK [10:19:10]wFMCommunicate request_size=4 [10:19:10]MH_SAM_APDU [10:19:10]CAPDU: 80 0D 03 02 [10:19:10]Write to MH i2c: E2 08 00 34 49 80 0D 03 02 00 00 00 00 F8 [10:19:10]Write i2c OK [10:19:10]MH_I2C_Read... [10:19:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:19:10]Read from MH i2c: E2 [10:19:10]MH_I2C_Read... [10:19:10]Read from MH i2c: E2 0B 00 [10:19:10]MH_I2C_Read... [10:19:10]Read from MH i2c: E2 0B 00 34 49 00 EA 62 0C 6F 71 B9 AA 1D 90 00 B1 [10:19:10]RAPDU: EA 62 0C 6F 71 B9 AA 1D 90 00 [10:19:10]wFMCommunicate OK [10:19:10]SAM_PROTO_SignData done [10:19:10]FM_MakeSignedData done [10:19:10]CreateOFDProtocolMessage [10:19:10]wFMCommunicate request_size=4 [10:19:10]MH_SAM_APDU [10:19:10]CAPDU: 80 11 00 00 [10:19:10]Write to MH i2c: E2 08 00 35 49 80 11 00 00 00 00 00 00 F8 [10:19:10]Write i2c OK [10:19:10]MH_I2C_Read... [10:19:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:10]Read from MH i2c: E2 [10:19:10]MH_I2C_Read... [10:19:10]Read from MH i2c: E2 17 00 [10:19:10]MH_I2C_Read... [10:19:10]Read from MH i2c: E2 17 00 35 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 4F [10:19:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:19:10]wFMCommunicate OK [10:19:10]CreateOFDProtocolMessage done [10:19:10]OFDSenderStorePacket 227330 [10:19:10]StoreOFDPacket docnum=227330 [10:19:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 28 6C 07 01 98 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 21 D9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 02 78 03 00 35 04 06 00 B5 10 5C 5C BE 7A EA 62 0C 6F 71 B9 AA 1D [10:19:10]CheckFolder [10:19:10]dirname=/storage/ofd_packets [10:19:10]CheckFolder done [10:19:10]ProducePacketName [10:19:10]name=ofd_packets/00227330 [10:19:10]NVStorageSaveData ofd_packets/00227330 [10:19:10]File name is /storage/ofd_packets/00227330 [10:19:10]Write 301 bytes [10:19:10]NVStorageSaveData done [10:19:10]OFDSenderStorePacket done [10:19:10]KKMCreateOFDPacket done [10:19:10]NVStorageSaveData kkm_last_timestamp [10:19:10]File name is /storage/kkm_last_timestamp [10:19:10]Write 4 bytes [10:19:10]NVStorageSaveData done [10:19:10]ExternCall_PrintAddStr [10:19:10]wPrintStart [10:19:10]Write to MH i2c: 01 00 00 36 49 7F [10:19:10]Write i2c OK [10:19:10]MH_I2C_Read... [10:19:10]Read from MH i2c: 01 [10:19:10]MH_I2C_Read... [10:19:10]Read from MH i2c: 01 07 00 [10:19:10]MH_I2C_Read... [10:19:10]Read from MH i2c: 01 07 00 36 49 00 00 00 00 00 FF 0F 94 [10:19:10]RasterBufferAndPrint [10:19:10]line Счет N : (1)1962816 [10:19:10]line ИНН: 02508201610067 [10:19:10]line Контрольно-Кассовый Чек [10:19:10]line ПРОДАЖА [10:19:10]line ТРК (МРК, ГНК) : 53 [10:19:10]line Товар: 2710124130 [10:19:10]line Аи-92-К-5 [10:19:10]line 7.480 * 66.90 [10:19:10]line = 500.41 [10:19:10]line НДС 12% НСП 1% [10:19:10]line > о реализуемом товаре [10:19:10]line ОКРУГЛЕНИЕ: -0.41 [10:19:10]line ИТОГО: 500.00 [10:19:10]line Внесено: 500.00 [10:19:10]line СДАЧА: 0.00 [10:19:10]line НСП 1% : 4.43 [10:19:10]line НДС 12% : 53.14 [10:19:10]line Наличными: 500.00 [10:19:10]line Безнал.: 0.00 [10:19:10]line Место: АЗС № 133 "Партнер Нефть" [10:19:10]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:19:10]line СНО: Общий режим [10:19:10]line Чек 178 20.10.2024 10:19 [10:19:10]line Смена: 533 ФФД: 1.0 [10:19:10]line ЗНМ: 0300000091 [10:19:10]line РНМ: 0000000000091685 [10:19:10]line Версия ККМ: 001 [10:19:10]line ФМ: 0000000000871839 [10:19:10]line ФД: 227330 [10:19:10]line ФПД: 199081873686138 [10:19:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101913&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227330&fm=199081873686138&tin=02508201610067®Number=0000000000091685&sum=50000 [10:19:11]written 0, free lines is 4095 [10:19:11]OFD Sender: Processing packet 227330 [packets to send 38, broken 37] [10:19:11]ProducePacketName [10:19:11]name=ofd_packets/00227330 [10:19:11]OFD Sender: To server: pG, [10:19:11]CommunicateWithHost lk.salyk.kg:30040 [10:19:11]ConnectInit lk.salyk.kg [10:19:11]Connected sock=10 [10:19:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 28 6C 07 01 98 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 21 D9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 02 78 03 00 35 04 06 00 B5 10 5C 5C BE 7A EA 62 0C 6F 71 B9 AA 1D [10:19: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 33 39 4F 00 00 00 77 33 47 00 97 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 02 78 03 00 F4 03 04 00 20 84 14 67 B6 04 01 00 00 A0 37 9D D0 94 3E 03 02 [10:19:11]CommunicateWithHost err = 0 [10:19:11]CheckOFDResponse [10:19:11]1017 (14) - 77093643461234 [10:19:11]1041 (16) - 0000000000871839 [10:19:11]1040 (4) - 227330 [10:19:11]1012 (4) - 20.10.2024 04:16 [10:19:11]1206 (1) - 0 [10:19:11]OFD Sender: Remove packet 227330 [10:19:11]ProducePacketName [10:19:11]name=ofd_packets/00227330 [10:19:11]NVStorageDeleteData [10:19:11]Write to MH i2c: 01 00 00 60 49 A9 [10:19:11]Write i2c OK [10:19:11]MH_I2C_Read... [10:19:11]Read from MH i2c: 01 [10:19:11]MH_I2C_Read... [10:19:11]Read from MH i2c: 01 07 00 [10:19:11]MH_I2C_Read... [10:19:11]Read from MH i2c: 01 07 00 60 49 00 00 00 00 00 06 0D C3 [10:19:11]RasterBufferAndPrint [10:19:11]line [10:19:11]line [10:19:11]line [10:19:11]line [10:19:11]line [10:19:11]written 0, free lines is 3343 [10:19:11]process_action close_receipt done [10:19:11]requested_data is exist [10:19:11]produce_requested_data [10:19:11]requested_item fm.sn is exist - process it [10:19:11]wFMCommunicate request_size=4 [10:19:11]MH_SAM_APDU [10:19:11]CAPDU: 80 11 00 00 [10:19:11]Write to MH i2c: E2 08 00 67 49 80 11 00 00 00 00 00 00 2A [10:19:11]Write i2c OK [10:19:11]MH_I2C_Read... [10:19:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:11]Read from MH i2c: E2 [10:19:11]MH_I2C_Read... [10:19:11]Read from MH i2c: E2 17 00 [10:19:11]MH_I2C_Read... [10:19:11]Read from MH i2c: E2 17 00 67 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 81 [10:19:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:19:11]wFMCommunicate OK [10:19:11]requested_item fd.num is exist - process it [10:19:11]SAM_PROTO_GetFieldsCounters [10:19:11]wFMCommunicate request_size=4 [10:19:11]MH_SAM_APDU [10:19:11]CAPDU: 80 13 00 00 [10:19:11]Write to MH i2c: E2 08 00 68 49 80 13 00 00 00 00 00 00 2D [10:19:11]Write i2c OK [10:19:11]MH_I2C_Read... [10:19:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:19:11]Read from MH i2c: E2 [10:19:11]MH_I2C_Read... [10:19:11]Read from MH i2c: E2 62 00 [10:19:11]MH_I2C_Read... [10:19:11]Read from MH i2c: E2 62 00 68 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 02 78 03 00 0E 04 04 00 15 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 00 [10:19: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 02 78 03 00 0E 04 04 00 15 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 [10:19:11]wFMCommunicate OK [10:19:11]SAM_PROTO_GetFieldsCounters done [10:19:11]requested_item shift.num is exist - process it [10:19:11]requested_item shift.opened is exist - process it [10:19:11]req_shift_opened [10:19:11]FM_GetShiftState [10:19:11]SAM_PROTO_GetShiftState [10:19:11]wFMCommunicate request_size=4 [10:19:11]MH_SAM_APDU [10:19:11]CAPDU: 80 13 01 00 [10:19:11]Write to MH i2c: E2 08 00 69 49 80 13 01 00 00 00 00 00 2F [10:19:11]Write i2c OK [10:19:11]MH_I2C_Read... [10:19:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:11]Read from MH i2c: E2 [10:19:11]MH_I2C_Read... [10:19:11]Read from MH i2c: E2 0E 00 [10:19:11]MH_I2C_Read... [10:19:11]Read from MH i2c: E2 0E 00 69 49 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 49 [10:19:11]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:19:11]wFMCommunicate OK [10:19:11]SAM_PROTO_GetShiftState done [10:19:11]FM_GetShiftState done [10:19:11]req_shift_opened done [10:19:11]requested_item shift.open_date is exist - process it [10:19:11]req_shift_open_date [10:19:11]req_shift_open_date done [10:19:11]produce_requested_data done [10:19:11]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227330,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [10:19:11]process_action_free close_receipt [10:19:11]json_value_free [10:19:11]json_value_free done [10:19:11]process_json_proto returns [10:19:11]Send response to host [10:19:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227330,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [10:19:11]free response buf [10:19:11]execute_script done [10:19:11]execute_script returns [10:19:11]free content buf [10:19:11]Sock 9.Close socket [10:19:11]Sock 9.Thread stoped [10:19:11]OFD Sender: No OFD packet to send [10:19:16]OFD Sender: No OFD packet to send [10:19:21]OFD Sender: No OFD packet to send [10:19:26]OFD Sender: No OFD packet to send [10:19:31]OFD Sender: No OFD packet to send [10:19:36]OFD Sender: No OFD packet to send [10:19:41]OFD Sender: No OFD packet to send [10:19:46]OFD Sender: No OFD packet to send [10:19:51]OFD Sender: No OFD packet to send [10:19:56]OFD Sender: No OFD packet to send [10:20:01]OFD Sender: No OFD packet to send [10:20:06]OFD Sender: No OFD packet to send [10:20:11]OFD Sender: No OFD packet to send [10:20:16]OFD Sender: No OFD packet to send [10:20:21]OFD Sender: No OFD packet to send [10:20:26]OFD Sender: No OFD packet to send [10:20:31]OFD Sender: No OFD packet to send [10:20:36]OFD Sender: No OFD packet to send [10:20:41]OFD Sender: No OFD packet to send [10:20:46]OFD Sender: No OFD packet to send [10:20:51]OFD Sender: No OFD packet to send [10:20:55]accept exits with 8 [10:20:55]New connection [10:20:55]New thread 3066965348 created [10:20:55]Thread 3066821988 joined [10:20:55]Waiting for new connection... [10:20:55] Sock 8.Parse request [10:20:55]Sock 8.Check first char [10:20:55]Sock 8.First char is OK [10:20:55]request: POST /json_proto HTTP/1.0 [10:20:55]Method: POST [10:20:55]URL: /json_proto [10:20:55]Method is POST - this is cgi request [10:20:55]url: /json_proto [10:20:55]query_string will be loaded in cgi processing [10:20:55]execute_cgi json_proto POST (null) [10:20:55]execute_cgi path=json_proto method=POST [10:20:55]POST find Content-Length [10:20:55]Host: 172.17.44.195:8080 [10:20:55]Content-Length: 680 [10:20:55]Content-Type: application/json [10:20:55] [10:20:55]POST finish read [10:20:55]Found Content-Length = 680 [10:20:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962817", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:55]execute_script... [10:20: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)1962817", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:55]POST & json_proto [10:20:55]process_json_proto [10:20:55]json parsed OK: [10:20:55]protocol is kg_v1.0 [10:20:55]action value=close_receipt [10:20:55]process_action close_receipt [10:20:55]cmd_close_receipt [10:20:55]MH_GetDate [10:20:55]Write to MH i2c: F0 00 00 6A 49 A2 [10:20:55]Write i2c OK [10:20:55]MH_I2C_Read... [10:20:55]Read from MH i2c: F0 [10:20:55]MH_I2C_Read... [10:20:55]Read from MH i2c: F0 09 00 [10:20:55]MH_I2C_Read... [10:20:55]Read from MH i2c: F0 09 00 6A 49 00 8B D9 14 67 82 C9 CF 66 0A [10:20:55]GetLastDocTimeStamp 1729419553 [10:20:55]current date 1729419659 [10:20:55]FM_GetShiftState [10:20:55]SAM_PROTO_GetShiftState [10:20:55]wFMCommunicate request_size=4 [10:20:55]MH_SAM_APDU [10:20:55]CAPDU: 80 13 01 00 [10:20:55]Write to MH i2c: E2 08 00 6B 49 80 13 01 00 00 00 00 00 31 [10:20:55]Write i2c OK [10:20:55]MH_I2C_Read... [10:20:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:55]Read from MH i2c: E2 [10:20:55]MH_I2C_Read... [10:20:55]Read from MH i2c: E2 0E 00 [10:20:55]MH_I2C_Read... [10:20:55]Read from MH i2c: E2 0E 00 6B 49 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 4B [10:20:55]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:20:55]wFMCommunicate OK [10:20:55]SAM_PROTO_GetShiftState done [10:20:55]FM_GetShiftState done [10:20:55]opened in 1729383750 [10:20:55]opened+sec_in_day 1729470150 [10:20:55]quantity*price = 100050 [10:20:55]sum+1 = 100052 [10:20:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 179 20.10.2024 10:20 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227331 ФПД: 140180897584543 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T102059&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227331&fm=140180897584543&tin=02508201610067®Number=0000000000091685&sum=100000 [10:20:56]StoreToDocumentArchive [10:20:56]shift 533 fd 227331 [10:20:56]save to /storage/0533/doc_00227331 [10:20:56]save last doc name /storage/0533/doc_00227331 to /storage/kkm_last_doc_name [10:20:56]save OK [10:20:56]Clear old archive folders... [10:20:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:20:56]tlvbuf is 0053B890 [10:20:56]SAM_PROTO_ClearQueue [10:20:56]wFMCommunicate request_size=4 [10:20:56]MH_SAM_APDU [10:20:56]CAPDU: 80 09 00 00 [10:20:56]Write to MH i2c: E2 08 00 78 49 80 09 00 00 00 00 00 00 33 [10:20:56]Write i2c OK [10:20:56]MH_I2C_Read... [10:20:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:20:56]Read from MH i2c: E2 [10:20:56]MH_I2C_Read... [10:20:56]Read from MH i2c: E2 03 00 [10:20:56]MH_I2C_Read... [10:20:56]Read from MH i2c: E2 03 00 78 49 00 90 00 35 [10:20:56]RAPDU: 90 00 [10:20:56]wFMCommunicate OK [10:20:56]SAM_PROTO_ClearQueue done [10:20:56]KKMCreateOFDPacket [10:20:56]OFDProtocolAddRootSTLVToBuf [10:20:56]FM_MakeSignedData [10:20:56]FM_MakeSignedData [10:20:56]SAM_PROTO_SignData [10:20:56]wFMCommunicate request_size=4 [10:20:56]MH_SAM_APDU [10:20:56]CAPDU: 80 0D 01 02 [10:20:56]Write to MH i2c: E2 08 00 79 49 80 0D 01 02 00 00 00 00 3B [10:20:56]Write i2c OK [10:20:56]MH_I2C_Read... [10:20:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:20:56]Read from MH i2c: E2 [10:20:56]MH_I2C_Read... [10:20:56]Read from MH i2c: E2 03 00 [10:20:56]MH_I2C_Read... [10:20:56]Read from MH i2c: E2 03 00 79 49 00 90 00 36 [10:20:56]RAPDU: 90 00 [10:20:56]wFMCommunicate OK [10:20:56]wFMCommunicate request_size=255 [10:20:56]MH_SAM_APDU [10:20:56]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 8B D9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 03 78 03 00 35 04 06 00 7F 7E 68 9A [10:20:56]Write to MH i2c: E2 02 01 7A 49 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 8B D9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 03 78 03 00 35 04 06 00 7F 7E 68 9A 00 00 EE [10:20:56]Write i2c OK [10:20:56]MH_I2C_Read... [10:20:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:56]Read from MH i2c: E2 [10:20:56]MH_I2C_Read... [10:20:56]Read from MH i2c: E2 03 00 [10:20:56]MH_I2C_Read... [10:20:56]Read from MH i2c: E2 03 00 7A 49 00 90 00 37 [10:20:56]RAPDU: 90 00 [10:20:56]wFMCommunicate OK [10:20:56]wFMCommunicate request_size=7 [10:20:56]MH_SAM_APDU [10:20:56]CAPDU: 80 0D 02 02 02 D5 9F [10:20:56]Write to MH i2c: E2 0A 00 7B 49 80 0D 02 02 02 00 D5 9F 00 00 B6 [10:20:56]Write i2c OK [10:20:56]MH_I2C_Read... [10:20:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:56]Read from MH i2c: E2 [10:20:56]MH_I2C_Read... [10:20:56]Read from MH i2c: E2 03 00 [10:20:56]MH_I2C_Read... [10:20:56]Read from MH i2c: E2 03 00 7B 49 00 90 00 38 [10:20:56]RAPDU: 90 00 [10:20:56]wFMCommunicate OK [10:20:56]wFMCommunicate request_size=4 [10:20:56]MH_SAM_APDU [10:20:56]CAPDU: 80 0D 03 02 [10:20:56]Write to MH i2c: E2 08 00 7C 49 80 0D 03 02 00 00 00 00 40 [10:20:56]Write i2c OK [10:20:56]MH_I2C_Read... [10:20:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:20:56]Read from MH i2c: E2 [10:20:56]MH_I2C_Read... [10:20:56]Read from MH i2c: E2 0B 00 [10:20:56]MH_I2C_Read... [10:20:56]Read from MH i2c: E2 0B 00 7C 49 00 56 F0 98 98 7D B9 AA 20 90 00 B7 [10:20:56]RAPDU: 56 F0 98 98 7D B9 AA 20 90 00 [10:20:56]wFMCommunicate OK [10:20:56]SAM_PROTO_SignData done [10:20:56]FM_MakeSignedData done [10:20:56]CreateOFDProtocolMessage [10:20:56]wFMCommunicate request_size=4 [10:20:56]MH_SAM_APDU [10:20:56]CAPDU: 80 11 00 00 [10:20:56]Write to MH i2c: E2 08 00 7D 49 80 11 00 00 00 00 00 00 40 [10:20:56]Write i2c OK [10:20:56]MH_I2C_Read... [10:20:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:56]Read from MH i2c: E2 [10:20:56]MH_I2C_Read... [10:20:56]Read from MH i2c: E2 17 00 [10:20:56]MH_I2C_Read... [10:20:56]Read from MH i2c: E2 17 00 7D 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 97 [10:20:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:20:56]wFMCommunicate OK [10:20:56]CreateOFDProtocolMessage done [10:20:56]OFDSenderStorePacket 227331 [10:20:56]StoreOFDPacket docnum=227331 [10:20:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 1E FF 04 01 8A BE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 8B D9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 03 78 03 00 35 04 06 00 7F 7E 68 9A D5 9F 56 F0 98 98 7D B9 AA 20 [10:20:56]CheckFolder [10:20:56]dirname=/storage/ofd_packets [10:20:56]CheckFolder done [10:20:56]ProducePacketName [10:20:56]name=ofd_packets/00227331 [10:20:56]NVStorageSaveData ofd_packets/00227331 [10:20:56]File name is /storage/ofd_packets/00227331 [10:20:56]Write 298 bytes [10:20:56]NVStorageSaveData done [10:20:56]OFDSenderStorePacket done [10:20:56]KKMCreateOFDPacket done [10:20:56]NVStorageSaveData kkm_last_timestamp [10:20:56]File name is /storage/kkm_last_timestamp [10:20:56]Write 4 bytes [10:20:56]NVStorageSaveData done [10:20:56]ExternCall_PrintAddStr [10:20:56]wPrintStart [10:20:56]Write to MH i2c: 01 00 00 7E 49 C7 [10:20:56]Write i2c OK [10:20:56]MH_I2C_Read... [10:20:56]Read from MH i2c: 01 [10:20:56]MH_I2C_Read... [10:20:56]Read from MH i2c: 01 07 00 [10:20:56]MH_I2C_Read... [10:20:56]Read from MH i2c: 01 07 00 7E 49 00 00 00 00 00 FF 0F DC [10:20:56]RasterBufferAndPrint [10:20:56]line Счет N : (1)1962817 [10:20:56]line ИНН: 02508201610067 [10:20:56]line Контрольно-Кассовый Чек [10:20:56]line ПРОДАЖА [10:20:56]line ТРК (МРК, ГНК) : 11 [10:20:56]line Товар: 2710194210 [10:20:56]line ДТ-К-5 [10:20:56]line 13.130 * 76.20 [10:20:56]line = 1000.51 [10:20:56]line НДС 12% НСП 1% [10:20:56]line > о реализуемом товаре [10:20:56]line ОКРУГЛЕНИЕ: -0.51 [10:20:56]line ИТОГО: 1000.00 [10:20:56]line Внесено: 1000.00 [10:20:56]line СДАЧА: 0.00 [10:20:56]line НСП 1% : 8.85 [10:20:56]line НДС 12% : 106.25 [10:20:56]line Наличными: 1000.00 [10:20:56]line Безнал.: 0.00 [10:20:56]line Место: АЗС № 133 "Партнер Нефть" [10:20:56]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:20:56]line СНО: Общий режим [10:20:56]line Чек 179 20.10.2024 10:20 [10:20:56]line Смена: 533 ФФД: 1.0 [10:20:56]line ЗНМ: 0300000091 [10:20:56]line РНМ: 0000000000091685 [10:20:56]line Версия ККМ: 001 [10:20:56]line ФМ: 0000000000871839 [10:20:56]line ФД: 227331 [10:20:56]line ФПД: 140180897584543 [10:20:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T102059&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227331&fm=140180897584543&tin=02508201610067®Number=0000000000091685&sum=100000 [10:20:57]OFD Sender: Processing packet 227331 [packets to send 38, broken 37] [10:20:57]ProducePacketName [10:20:57]name=ofd_packets/00227331 [10:20:57]OFD Sender: To server: pG, [10:20:57]CommunicateWithHost lk.salyk.kg:30040 [10:20:57]ConnectInit lk.salyk.kg [10:20:57]written 0, free lines is 4095 [10:20:57]Connected sock=10 [10:20: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 33 39 0C 01 00 00 1E FF 04 01 8A BE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 8B D9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 03 78 03 00 35 04 06 00 7F 7E 68 9A D5 9F 56 F0 98 98 7D B9 AA 20 [10:20: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 33 39 4F 00 00 00 9B 45 47 00 86 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 33 39 10 04 04 00 03 78 03 00 F4 03 04 00 8A 84 14 67 B6 04 01 00 00 8B F0 B8 24 34 E4 DB 38 [10:20:57]CommunicateWithHost err = 0 [10:20:57]CheckOFDResponse [10:20:57]1017 (14) - 77093643461234 [10:20:57]1041 (16) - 0000000000871839 [10:20:57]1040 (4) - 227331 [10:20:57]1012 (4) - 20.10.2024 04:18 [10:20:57]1206 (1) - 0 [10:20:57]OFD Sender: Remove packet 227331 [10:20:57]ProducePacketName [10:20:57]name=ofd_packets/00227331 [10:20:57]NVStorageDeleteData [10:20:57]Write to MH i2c: 01 00 00 A8 49 F1 [10:20:57]Write i2c OK [10:20:57]MH_I2C_Read... [10:20:57]Read from MH i2c: 01 [10:20:57]MH_I2C_Read... [10:20:57]Read from MH i2c: 01 07 00 [10:20:57]MH_I2C_Read... [10:20:57]Read from MH i2c: 01 07 00 A8 49 00 00 00 00 00 15 0D 1A [10:20:57]RasterBufferAndPrint [10:20:57]line [10:20:57]line [10:20:57]line [10:20:57]line [10:20:57]line [10:20:57]written 0, free lines is 3356 [10:20:57]process_action close_receipt done [10:20:57]requested_data is exist [10:20:57]produce_requested_data [10:20:57]requested_item fm.sn is exist - process it [10:20:57]wFMCommunicate request_size=4 [10:20:57]MH_SAM_APDU [10:20:57]CAPDU: 80 11 00 00 [10:20:57]Write to MH i2c: E2 08 00 AF 49 80 11 00 00 00 00 00 00 72 [10:20:57]Write i2c OK [10:20:57]MH_I2C_Read... [10:20:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:57]Read from MH i2c: E2 [10:20:57]MH_I2C_Read... [10:20:57]Read from MH i2c: E2 17 00 [10:20:57]MH_I2C_Read... [10:20:57]Read from MH i2c: E2 17 00 AF 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C9 [10:20:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:20:57]wFMCommunicate OK [10:20:57]requested_item fd.num is exist - process it [10:20:57]SAM_PROTO_GetFieldsCounters [10:20:57]wFMCommunicate request_size=4 [10:20:57]MH_SAM_APDU [10:20:57]CAPDU: 80 13 00 00 [10:20:57]Write to MH i2c: E2 08 00 B0 49 80 13 00 00 00 00 00 00 75 [10:20:57]Write i2c OK [10:20:57]MH_I2C_Read... [10:20:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:20:57]Read from MH i2c: E2 [10:20:57]MH_I2C_Read... [10:20:57]Read from MH i2c: E2 62 00 [10:20:57]MH_I2C_Read... [10:20:57]Read from MH i2c: E2 62 00 B0 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 03 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 4C [10:20: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 03 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:20:57]wFMCommunicate OK [10:20:57]SAM_PROTO_GetFieldsCounters done [10:20:57]requested_item shift.num is exist - process it [10:20:57]requested_item shift.opened is exist - process it [10:20:57]req_shift_opened [10:20:57]FM_GetShiftState [10:20:57]SAM_PROTO_GetShiftState [10:20:57]wFMCommunicate request_size=4 [10:20:57]MH_SAM_APDU [10:20:57]CAPDU: 80 13 01 00 [10:20:57]Write to MH i2c: E2 08 00 B1 49 80 13 01 00 00 00 00 00 77 [10:20:57]Write i2c OK [10:20:57]MH_I2C_Read... [10:20:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:57]Read from MH i2c: E2 [10:20:57]MH_I2C_Read... [10:20:57]Read from MH i2c: E2 0E 00 [10:20:57]MH_I2C_Read... [10:20:57]Read from MH i2c: E2 0E 00 B1 49 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 91 [10:20:57]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:20:57]wFMCommunicate OK [10:20:57]SAM_PROTO_GetShiftState done [10:20:57]FM_GetShiftState done [10:20:57]req_shift_opened done [10:20:57]requested_item shift.open_date is exist - process it [10:20:57]req_shift_open_date [10:20:57]req_shift_open_date done [10:20:57]produce_requested_data done [10:20:57]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227331,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [10:20:57]process_action_free close_receipt [10:20:57]json_value_free [10:20:57]json_value_free done [10:20:57]process_json_proto returns [10:20:57]Send response to host [10:20:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227331,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [10:20:57]free response buf [10:20:57]execute_script done [10:20:57]execute_script returns [10:20:57]free content buf [10:20:57]Sock 8.Close socket [10:20:57]Sock 8.Thread stoped [10:20:57]OFD Sender: No OFD packet to send [10:21:02]OFD Sender: No OFD packet to send [10:21:07]OFD Sender: No OFD packet to send [10:21:12]OFD Sender: No OFD packet to send [10:21:17]OFD Sender: No OFD packet to send [10:21:22]OFD Sender: No OFD packet to send [10:21:27]OFD Sender: No OFD packet to send [10:21:32]OFD Sender: No OFD packet to send [10:21:37]OFD Sender: No OFD packet to send [10:21:42]OFD Sender: No OFD packet to send [10:21:47]OFD Sender: No OFD packet to send [10:21:52]OFD Sender: No OFD packet to send [10:21:57]OFD Sender: No OFD packet to send [10:22:02]accept exits with 9 [10:22:02]New connection [10:22:02]New thread 3066821988 created [10:22:02]Thread 3066965348 joined [10:22:02]Waiting for new connection... [10:22:02] Sock 9.Parse request [10:22:02]Sock 9.Check first char [10:22:02]Sock 9.First char is OK [10:22:02]request: POST /json_proto HTTP/1.0 [10:22:02]Method: POST [10:22:02]URL: /json_proto [10:22:02]Method is POST - this is cgi request [10:22:02]url: /json_proto [10:22:02]query_string will be loaded in cgi processing [10:22:02]execute_cgi json_proto POST (null) [10:22:02]execute_cgi path=json_proto method=POST [10:22:02]POST find Content-Length [10:22:02]Host: 172.17.44.195:8080 [10:22:02]Content-Length: 683 [10:22:02]Content-Type: application/json [10:22:02] [10:22:02]POST finish read [10:22:02]Found Content-Length = 683 [10:22:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962815", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:02]execute_script... [10:22: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)1962815", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:02]POST & json_proto [10:22:02]process_json_proto [10:22:02]json parsed OK: [10:22:02]protocol is kg_v1.0 [10:22:02]action value=close_receipt [10:22:02]process_action close_receipt [10:22:02]cmd_close_receipt [10:22:02]MH_GetDate [10:22:02]Write to MH i2c: F0 00 00 B2 49 EA [10:22:02]Write i2c OK [10:22:02]MH_I2C_Read... [10:22:02]Read from MH i2c: F0 [10:22:02]MH_I2C_Read... [10:22:02]Read from MH i2c: F0 09 00 [10:22:02]MH_I2C_Read... [10:22:02]Read from MH i2c: F0 09 00 B2 49 00 CE D9 14 67 82 C9 CF 66 95 [10:22:02]GetLastDocTimeStamp 1729419659 [10:22:02]current date 1729419726 [10:22:02]FM_GetShiftState [10:22:02]SAM_PROTO_GetShiftState [10:22:02]wFMCommunicate request_size=4 [10:22:02]MH_SAM_APDU [10:22:02]CAPDU: 80 13 01 00 [10:22:02]Write to MH i2c: E2 08 00 B3 49 80 13 01 00 00 00 00 00 79 [10:22:02]Write i2c OK [10:22:02]MH_I2C_Read... [10:22:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:02]Read from MH i2c: E2 [10:22:02]MH_I2C_Read... [10:22:02]Read from MH i2c: E2 0E 00 [10:22:02]MH_I2C_Read... [10:22:02]Read from MH i2c: E2 0E 00 B3 49 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 93 [10:22:02]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:22:02]wFMCommunicate OK [10:22:02]SAM_PROTO_GetShiftState done [10:22:02]FM_GetShiftState done [10:22:02]opened in 1729383750 [10:22:02]opened+sec_in_day 1729470150 [10:22:02]quantity*price = 100015 [10:22:02]sum+1 = 100017 [10:22:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 180 20.10.2024 10:22 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227332 ФПД: 94114497673850 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T102206&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227332&fm=94114497673850&tin=02508201610067®Number=0000000000091685&sum=100000 [10:22:03]StoreToDocumentArchive [10:22:03]shift 533 fd 227332 [10:22:03]save to /storage/0533/doc_00227332 [10:22:03]save last doc name /storage/0533/doc_00227332 to /storage/kkm_last_doc_name [10:22:03]save OK [10:22:03]Clear old archive folders... [10:22:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:22:03]tlvbuf is 00614F30 [10:22:03]SAM_PROTO_ClearQueue [10:22:03]wFMCommunicate request_size=4 [10:22:03]MH_SAM_APDU [10:22:03]CAPDU: 80 09 00 00 [10:22:03]Write to MH i2c: E2 08 00 C0 49 80 09 00 00 00 00 00 00 7B [10:22:03]Write i2c OK [10:22:03]MH_I2C_Read... [10:22:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:22:03]Read from MH i2c: E2 [10:22:03]MH_I2C_Read... [10:22:03]Read from MH i2c: E2 03 00 [10:22:03]MH_I2C_Read... [10:22:03]Read from MH i2c: E2 03 00 C0 49 00 90 00 7D [10:22:03]RAPDU: 90 00 [10:22:03]wFMCommunicate OK [10:22:03]SAM_PROTO_ClearQueue done [10:22:03]KKMCreateOFDPacket [10:22:03]OFDProtocolAddRootSTLVToBuf [10:22:03]FM_MakeSignedData [10:22:03]FM_MakeSignedData [10:22:03]SAM_PROTO_SignData [10:22:03]wFMCommunicate request_size=4 [10:22:03]MH_SAM_APDU [10:22:03]CAPDU: 80 0D 01 02 [10:22:03]Write to MH i2c: E2 08 00 C1 49 80 0D 01 02 00 00 00 00 83 [10:22:03]Write i2c OK [10:22:03]MH_I2C_Read... [10:22:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:22:03]Read from MH i2c: E2 [10:22:03]MH_I2C_Read... [10:22:03]Read from MH i2c: E2 03 00 [10:22:03]MH_I2C_Read... [10:22:03]Read from MH i2c: E2 03 00 C1 49 00 90 00 7E [10:22:03]RAPDU: 90 00 [10:22:03]wFMCommunicate OK [10:22:03]wFMCommunicate request_size=255 [10:22:03]MH_SAM_APDU [10:22:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 CE D9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 04 78 03 00 35 04 06 00 55 [10:22:03]Write to MH i2c: E2 02 01 C2 49 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 CE D9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 04 78 03 00 35 04 06 00 55 00 00 D5 [10:22:03]Write i2c OK [10:22:03]MH_I2C_Read... [10:22:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:03]Read from MH i2c: E2 [10:22:03]MH_I2C_Read... [10:22:03]Read from MH i2c: E2 03 00 [10:22:03]MH_I2C_Read... [10:22:03]Read from MH i2c: E2 03 00 C2 49 00 90 00 7F [10:22:03]RAPDU: 90 00 [10:22:03]wFMCommunicate OK [10:22:03]wFMCommunicate request_size=10 [10:22:03]MH_SAM_APDU [10:22:03]CAPDU: 80 0D 02 02 05 98 BD 33 BA 7A [10:22:03]Write to MH i2c: E2 0D 00 C3 49 80 0D 02 02 05 00 98 BD 33 BA 7A 00 00 4C [10:22:03]Write i2c OK [10:22:03]MH_I2C_Read... [10:22:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:03]Read from MH i2c: E2 [10:22:03]MH_I2C_Read... [10:22:03]Read from MH i2c: E2 03 00 [10:22:03]MH_I2C_Read... [10:22:03]Read from MH i2c: E2 03 00 C3 49 00 90 00 80 [10:22:03]RAPDU: 90 00 [10:22:03]wFMCommunicate OK [10:22:03]wFMCommunicate request_size=4 [10:22:03]MH_SAM_APDU [10:22:03]CAPDU: 80 0D 03 02 [10:22:03]Write to MH i2c: E2 08 00 C4 49 80 0D 03 02 00 00 00 00 88 [10:22:03]Write i2c OK [10:22:03]MH_I2C_Read... [10:22:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:22:03]Read from MH i2c: E2 [10:22:03]MH_I2C_Read... [10:22:03]Read from MH i2c: E2 0B 00 [10:22:03]MH_I2C_Read... [10:22:03]Read from MH i2c: E2 0B 00 C4 49 00 CE DF 19 8F 6D 7C 34 46 90 00 41 [10:22:03]RAPDU: CE DF 19 8F 6D 7C 34 46 90 00 [10:22:03]wFMCommunicate OK [10:22:03]SAM_PROTO_SignData done [10:22:03]FM_MakeSignedData done [10:22:03]CreateOFDProtocolMessage [10:22:03]wFMCommunicate request_size=4 [10:22:03]MH_SAM_APDU [10:22:03]CAPDU: 80 11 00 00 [10:22:03]Write to MH i2c: E2 08 00 C5 49 80 11 00 00 00 00 00 00 88 [10:22:03]Write i2c OK [10:22:03]MH_I2C_Read... [10:22:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:03]Read from MH i2c: E2 [10:22:03]MH_I2C_Read... [10:22:03]Read from MH i2c: E2 17 00 [10:22:03]MH_I2C_Read... [10:22:03]Read from MH i2c: E2 17 00 C5 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 DF [10:22:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:22:03]wFMCommunicate OK [10:22:03]CreateOFDProtocolMessage done [10:22:03]OFDSenderStorePacket 227332 [10:22:03]StoreOFDPacket docnum=227332 [10:22:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 AA 99 07 01 33 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 CE D9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 04 78 03 00 35 04 06 00 55 98 BD 33 BA 7A CE DF 19 8F 6D 7C 34 46 [10:22:03]CheckFolder [10:22:03]dirname=/storage/ofd_packets [10:22:03]CheckFolder done [10:22:03]ProducePacketName [10:22:03]name=ofd_packets/00227332 [10:22:03]NVStorageSaveData ofd_packets/00227332 [10:22:03]File name is /storage/ofd_packets/00227332 [10:22:03]Write 301 bytes [10:22:03]NVStorageSaveData done [10:22:03]OFDSenderStorePacket done [10:22:03]KKMCreateOFDPacket done [10:22:03]NVStorageSaveData kkm_last_timestamp [10:22:03]File name is /storage/kkm_last_timestamp [10:22:03]Write 4 bytes [10:22:03]NVStorageSaveData done [10:22:03]ExternCall_PrintAddStr [10:22:03]wPrintStart [10:22:03]Write to MH i2c: 01 00 00 C6 49 0F [10:22:03]Write i2c OK [10:22:03]MH_I2C_Read... [10:22:03]Read from MH i2c: 01 [10:22:03]MH_I2C_Read... [10:22:03]Read from MH i2c: 01 07 00 [10:22:03]MH_I2C_Read... [10:22:03]Read from MH i2c: 01 07 00 C6 49 00 00 00 00 00 FF 0F 24 [10:22:03]RasterBufferAndPrint [10:22:03]line Счет N : (1)1962815 [10:22:03]line ИНН: 02508201610067 [10:22:03]line Контрольно-Кассовый Чек [10:22:03]line ПРОДАЖА [10:22:03]line ТРК (МРК, ГНК) : 43 [10:22:03]line Товар: 2710124130 [10:22:03]line Аи-92-К-5 [10:22:03]line 14.950 * 66.90 [10:22:03]line = 1000.16 [10:22:03]line НДС 12% НСП 1% [10:22:03]line > о реализуемом товаре [10:22:03]line ОКРУГЛЕНИЕ: -0.16 [10:22:03]line ИТОГО: 1000.00 [10:22:03]line Внесено: 1000.00 [10:22:03]line СДАЧА: 0.00 [10:22:03]line НСП 1% : 8.85 [10:22:03]line НДС 12% : 106.21 [10:22:03]line Наличными: 1000.00 [10:22:03]line Безнал.: 0.00 [10:22:03]line Место: АЗС № 133 "Партнер Нефть" [10:22:03]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:22:03]line СНО: Общий режим [10:22:03]line Чек 180 20.10.2024 10:22 [10:22:03]line Смена: 533 ФФД: 1.0 [10:22:03]line ЗНМ: 0300000091 [10:22:03]line РНМ: 0000000000091685 [10:22:03]line Версия ККМ: 001 [10:22:03]line ФМ: 0000000000871839 [10:22:03]line ФД: 227332 [10:22:03]line ФПД: 94114497673850 [10:22:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T102206&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227332&fm=94114497673850&tin=02508201610067®Number=0000000000091685&sum=100000 [10:22:04]OFD Sender: Processing packet 227332 [packets to send 38, broken 37] [10:22:04]ProducePacketName [10:22:04]name=ofd_packets/00227332 [10:22:04]OFD Sender: To server: pG, [10:22:04]CommunicateWithHost lk.salyk.kg:30040 [10:22:04]ConnectInit lk.salyk.kg [10:22:04]written 0, free lines is 4095 [10:22:04]Connected sock=10 [10:22: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 33 39 0F 01 00 00 AA 99 07 01 33 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 CE D9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 04 78 03 00 35 04 06 00 55 98 BD 33 BA 7A CE DF 19 8F 6D 7C 34 46 [10:22: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 33 39 4F 00 00 00 AE 26 47 00 18 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 33 39 10 04 04 00 04 78 03 00 F4 03 04 00 CD 84 14 67 B6 04 01 00 00 5F FF 4D 4A 02 13 A9 03 [10:22:04]CommunicateWithHost err = 0 [10:22:04]CheckOFDResponse [10:22:04]1017 (14) - 77093643461234 [10:22:04]1041 (16) - 0000000000871839 [10:22:04]1040 (4) - 227332 [10:22:04]1012 (4) - 20.10.2024 04:19 [10:22:04]1206 (1) - 0 [10:22:04]OFD Sender: Remove packet 227332 [10:22:04]ProducePacketName [10:22:04]name=ofd_packets/00227332 [10:22:04]NVStorageDeleteData [10:22:04]Write to MH i2c: 01 00 00 F0 49 39 [10:22:04]Write i2c OK [10:22:04]MH_I2C_Read... [10:22:04]Read from MH i2c: 01 [10:22:04]MH_I2C_Read... [10:22:04]Read from MH i2c: 01 07 00 [10:22:04]MH_I2C_Read... [10:22:04]Read from MH i2c: 01 07 00 F0 49 00 00 00 00 00 18 0D 65 [10:22:04]RasterBufferAndPrint [10:22:04]line [10:22:04]line [10:22:04]line [10:22:04]line [10:22:04]line [10:22:04]written 0, free lines is 3358 [10:22:04]process_action close_receipt done [10:22:04]requested_data is exist [10:22:04]produce_requested_data [10:22:04]requested_item fm.sn is exist - process it [10:22:04]wFMCommunicate request_size=4 [10:22:04]MH_SAM_APDU [10:22:04]CAPDU: 80 11 00 00 [10:22:04]Write to MH i2c: E2 08 00 F7 49 80 11 00 00 00 00 00 00 BA [10:22:04]Write i2c OK [10:22:04]MH_I2C_Read... [10:22:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:04]Read from MH i2c: E2 [10:22:04]MH_I2C_Read... [10:22:04]Read from MH i2c: E2 17 00 [10:22:04]MH_I2C_Read... [10:22:04]Read from MH i2c: E2 17 00 F7 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 11 [10:22:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:22:04]wFMCommunicate OK [10:22:04]requested_item fd.num is exist - process it [10:22:04]SAM_PROTO_GetFieldsCounters [10:22:04]wFMCommunicate request_size=4 [10:22:04]MH_SAM_APDU [10:22:04]CAPDU: 80 13 00 00 [10:22:04]Write to MH i2c: E2 08 00 F8 49 80 13 00 00 00 00 00 00 BD [10:22:04]Write i2c OK [10:22:04]MH_I2C_Read... [10:22:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:22:04]Read from MH i2c: E2 [10:22:04]MH_I2C_Read... [10:22:04]Read from MH i2c: E2 62 00 [10:22:04]MH_I2C_Read... [10:22:04]Read from MH i2c: E2 62 00 F8 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 04 78 03 00 0E 04 04 00 15 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 98 [10:22: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 04 78 03 00 0E 04 04 00 15 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 [10:22:04]wFMCommunicate OK [10:22:04]SAM_PROTO_GetFieldsCounters done [10:22:04]requested_item shift.num is exist - process it [10:22:04]requested_item shift.opened is exist - process it [10:22:04]req_shift_opened [10:22:04]FM_GetShiftState [10:22:04]SAM_PROTO_GetShiftState [10:22:04]wFMCommunicate request_size=4 [10:22:04]MH_SAM_APDU [10:22:04]CAPDU: 80 13 01 00 [10:22:04]Write to MH i2c: E2 08 00 F9 49 80 13 01 00 00 00 00 00 BF [10:22:04]Write i2c OK [10:22:04]MH_I2C_Read... [10:22:04]Read from MH i2c: E2 [10:22:04]MH_I2C_Read... [10:22:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:04]Read from MH i2c: E2 0E 00 [10:22:04]MH_I2C_Read... [10:22:04]Read from MH i2c: E2 0E 00 F9 49 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 D9 [10:22:04]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:22:04]wFMCommunicate OK [10:22:04]SAM_PROTO_GetShiftState done [10:22:04]FM_GetShiftState done [10:22:04]req_shift_opened done [10:22:04]requested_item shift.open_date is exist - process it [10:22:04]req_shift_open_date [10:22:04]req_shift_open_date done [10:22:04]produce_requested_data done [10:22:04]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227332,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [10:22:04]process_action_free close_receipt [10:22:04]json_value_free [10:22:04]json_value_free done [10:22:04]process_json_proto returns [10:22:04]Send response to host [10:22:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227332,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [10:22:04]free response buf [10:22:04]execute_script done [10:22:04]execute_script returns [10:22:04]free content buf [10:22:04]Sock 9.Close socket [10:22:04]Sock 9.Thread stoped [10:22:04]OFD Sender: No OFD packet to send [10:22:09]OFD Sender: No OFD packet to send [10:22:14]OFD Sender: No OFD packet to send [10:22:19]OFD Sender: No OFD packet to send [10:22:24]OFD Sender: No OFD packet to send [10:22:29]OFD Sender: No OFD packet to send [10:22:34]OFD Sender: No OFD packet to send [10:22:39]accept exits with 8 [10:22:39]New connection [10:22:39]New thread 3066965348 created [10:22:39]Thread 3066821988 joined [10:22:39]Waiting for new connection... [10:22:39] Sock 8.Parse request [10:22:39]Sock 8.Check first char [10:22:39]Sock 8.First char is OK [10:22:39]request: POST /json_proto HTTP/1.0 [10:22:39]Method: POST [10:22:39]URL: /json_proto [10:22:39]Method is POST - this is cgi request [10:22:39]url: /json_proto [10:22:39]query_string will be loaded in cgi processing [10:22:39]execute_cgi json_proto POST (null) [10:22:39]execute_cgi path=json_proto method=POST [10:22:39]POST find Content-Length [10:22:39]Host: 172.17.44.195:8080 [10:22:39]Content-Length: 755 [10:22:39]Content-Type: application/json [10:22:39] [10:22:39]POST finish read [10:22:39]Found Content-Length = 755 [10:22:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962818", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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\u000A30100996", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:39]execute_script... [10:22: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)1962818", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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\u000A30100996", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:39]POST & json_proto [10:22:39]process_json_proto [10:22:39]json parsed OK: [10:22:39]protocol is kg_v1.0 [10:22:39]action value=close_receipt [10:22:39]process_action close_receipt [10:22:39]cmd_close_receipt [10:22:39]MH_GetDate [10:22:39]Write to MH i2c: F0 00 00 FA 49 32 [10:22:39]Write i2c OK [10:22:39]MH_I2C_Read... [10:22:39]Read from MH i2c: F0 [10:22:39]MH_I2C_Read... [10:22:39]Read from MH i2c: F0 09 00 [10:22:39]MH_I2C_Read... [10:22:39]Read from MH i2c: F0 09 00 FA 49 00 F3 D9 14 67 82 C9 CF 66 02 [10:22:39]GetLastDocTimeStamp 1729419726 [10:22:39]current date 1729419763 [10:22:39]FM_GetShiftState [10:22:39]SAM_PROTO_GetShiftState [10:22:39]wFMCommunicate request_size=4 [10:22:39]MH_SAM_APDU [10:22:39]CAPDU: 80 13 01 00 [10:22:39]Write to MH i2c: E2 08 00 FB 49 80 13 01 00 00 00 00 00 C1 [10:22:39]Write i2c OK [10:22:39]MH_I2C_Read... [10:22:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:39]Read from MH i2c: E2 [10:22:39]MH_I2C_Read... [10:22:39]Read from MH i2c: E2 0E 00 [10:22:39]MH_I2C_Read... [10:22:39]Read from MH i2c: E2 0E 00 FB 49 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 DB [10:22:39]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:22:39]wFMCommunicate OK [10:22:39]SAM_PROTO_GetShiftState done [10:22:39]FM_GetShiftState done [10:22:39]opened in 1729383750 [10:22:39]opened+sec_in_day 1729470150 [10:22:39]quantity*price = 0 [10:22:39]sum+1 = 1 [10:22:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 181 20.10.2024 10:22 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Талоны: ТК ГПНА Online 30100996 ФМ: 0000000000871839 ФД: 227333 ФПД: 246010936030751 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T102243&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227333&fm=246010936030751&tin=02508201610067®Number=0000000000091685&sum=0 [10:22:40]StoreToDocumentArchive [10:22:40]shift 533 fd 227333 [10:22:40]save to /storage/0533/doc_00227333 [10:22:40]save last doc name /storage/0533/doc_00227333 to /storage/kkm_last_doc_name [10:22:40]save OK [10:22:40]Clear old archive folders... [10:22:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:22:40]tlvbuf is 0057A8B0 [10:22:40]SAM_PROTO_ClearQueue [10:22:40]wFMCommunicate request_size=4 [10:22:40]MH_SAM_APDU [10:22:40]CAPDU: 80 09 00 00 [10:22:40]Write to MH i2c: E2 08 00 08 4A 80 09 00 00 00 00 00 00 C4 [10:22:40]Write i2c OK [10:22:40]MH_I2C_Read... [10:22:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:22:40]Read from MH i2c: E2 [10:22:40]MH_I2C_Read... [10:22:40]Read from MH i2c: E2 03 00 [10:22:40]MH_I2C_Read... [10:22:40]Read from MH i2c: E2 03 00 08 4A 00 90 00 C6 [10:22:40]RAPDU: 90 00 [10:22:40]wFMCommunicate OK [10:22:40]SAM_PROTO_ClearQueue done [10:22:40]KKMCreateOFDPacket [10:22:40]OFDProtocolAddRootSTLVToBuf [10:22:40]FM_MakeSignedData [10:22:40]FM_MakeSignedData [10:22:40]SAM_PROTO_SignData [10:22:40]wFMCommunicate request_size=4 [10:22:40]MH_SAM_APDU [10:22:40]CAPDU: 80 0D 01 02 [10:22:40]Write to MH i2c: E2 08 00 09 4A 80 0D 01 02 00 00 00 00 CC [10:22:40]Write i2c OK [10:22:40]MH_I2C_Read... [10:22:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:22:40]Read from MH i2c: E2 [10:22:40]MH_I2C_Read... [10:22:40]Read from MH i2c: E2 03 00 [10:22:40]MH_I2C_Read... [10:22:40]Read from MH i2c: E2 03 00 09 4A 00 90 00 C7 [10:22:40]RAPDU: 90 00 [10:22:40]wFMCommunicate OK [10:22:40]wFMCommunicate request_size=255 [10:22:40]MH_SAM_APDU [10:22:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 B5 00 00 00 F4 03 04 00 F3 D9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 05 78 03 00 35 04 06 00 DF [10:22:40]Write to MH i2c: E2 02 01 0A 4A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 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 B5 00 00 00 F4 03 04 00 F3 D9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 05 78 03 00 35 04 06 00 DF 00 00 22 [10:22:40]Write i2c OK [10:22:40]MH_I2C_Read... [10:22:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:40]Read from MH i2c: E2 [10:22:40]MH_I2C_Read... [10:22:40]Read from MH i2c: E2 03 00 [10:22:40]MH_I2C_Read... [10:22:40]Read from MH i2c: E2 03 00 0A 4A 00 90 00 C8 [10:22:40]RAPDU: 90 00 [10:22:40]wFMCommunicate OK [10:22:40]wFMCommunicate request_size=10 [10:22:40]MH_SAM_APDU [10:22:40]CAPDU: 80 0D 02 02 05 BE E2 73 F6 1F [10:22:40]Write to MH i2c: E2 0D 00 0B 4A 80 0D 02 02 05 00 BE E2 73 F6 1F 00 00 01 [10:22:40]Write i2c OK [10:22:40]MH_I2C_Read... [10:22:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:40]Read from MH i2c: E2 [10:22:40]MH_I2C_Read... [10:22:40]Read from MH i2c: E2 03 00 [10:22:40]MH_I2C_Read... [10:22:40]Read from MH i2c: E2 03 00 0B 4A 00 90 00 C9 [10:22:40]RAPDU: 90 00 [10:22:40]wFMCommunicate OK [10:22:40]wFMCommunicate request_size=4 [10:22:40]MH_SAM_APDU [10:22:40]CAPDU: 80 0D 03 02 [10:22:40]Write to MH i2c: E2 08 00 0C 4A 80 0D 03 02 00 00 00 00 D1 [10:22:40]Write i2c OK [10:22:40]MH_I2C_Read... [10:22:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:22:40]Read from MH i2c: E2 [10:22:40]MH_I2C_Read... [10:22:40]Read from MH i2c: E2 0B 00 [10:22:40]MH_I2C_Read... [10:22:40]Read from MH i2c: E2 0B 00 0C 4A 00 15 5A DA 5C 18 0D 3C 55 90 00 2D [10:22:40]RAPDU: 15 5A DA 5C 18 0D 3C 55 90 00 [10:22:40]wFMCommunicate OK [10:22:40]SAM_PROTO_SignData done [10:22:40]FM_MakeSignedData done [10:22:40]CreateOFDProtocolMessage [10:22:40]wFMCommunicate request_size=4 [10:22:40]MH_SAM_APDU [10:22:40]CAPDU: 80 11 00 00 [10:22:40]Write to MH i2c: E2 08 00 0D 4A 80 11 00 00 00 00 00 00 D1 [10:22:40]Write i2c OK [10:22:40]MH_I2C_Read... [10:22:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:40]Read from MH i2c: E2 [10:22:40]MH_I2C_Read... [10:22:40]Read from MH i2c: E2 17 00 [10:22:40]MH_I2C_Read... [10:22:40]Read from MH i2c: E2 17 00 0D 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 28 [10:22:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:22:40]wFMCommunicate OK [10:22:40]CreateOFDProtocolMessage done [10:22:40]OFDSenderStorePacket 227333 [10:22:40]StoreOFDPacket docnum=227333 [10:22:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 B4 5F 07 01 30 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 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 B5 00 00 00 F4 03 04 00 F3 D9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 05 78 03 00 35 04 06 00 DF BE E2 73 F6 1F 15 5A DA 5C 18 0D 3C 55 [10:22:40]CheckFolder [10:22:40]dirname=/storage/ofd_packets [10:22:40]CheckFolder done [10:22:40]ProducePacketName [10:22:40]name=ofd_packets/00227333 [10:22:40]NVStorageSaveData ofd_packets/00227333 [10:22:40]File name is /storage/ofd_packets/00227333 [10:22:40]Write 301 bytes [10:22:40]NVStorageSaveData done [10:22:40]OFDSenderStorePacket done [10:22:40]KKMCreateOFDPacket done [10:22:40]NVStorageSaveData kkm_last_timestamp [10:22:40]File name is /storage/kkm_last_timestamp [10:22:40]Write 4 bytes [10:22:40]NVStorageSaveData done [10:22:40]ExternCall_PrintAddStr [10:22:40]wPrintStart [10:22:40]Write to MH i2c: 01 00 00 0E 4A 58 [10:22:40]OFD Sender: Processing packet 227333 [packets to send 38, broken 37] [10:22:40]ProducePacketName [10:22:40]name=ofd_packets/00227333 [10:22:40]OFD Sender: To server: pG, [10:22:40]CommunicateWithHost lk.salyk.kg:30040 [10:22:40]ConnectInit lk.salyk.kg [10:22:40]Write i2c OK [10:22:40]MH_I2C_Read... [10:22:40]Read from MH i2c: 01 [10:22:40]MH_I2C_Read... [10:22:40]Read from MH i2c: 01 07 00 [10:22:40]MH_I2C_Read... [10:22:40]Read from MH i2c: 01 07 00 0E 4A 00 00 00 00 00 FF 0F 6D [10:22:40]RasterBufferAndPrint [10:22:40]line Счет N : (1)1962818 [10:22:40]line ИНН: 02508201610067 [10:22:40]line Контрольно-Кассовый Чек [10:22:40]line ПРОДАЖА [10:22:40]line ТРК (МРК, ГНК) : 63 [10:22:40]line Товар: 2710124130 [10:22:40]line Аи-92-К-5 [10:22:40]line 15.000 * 0.00 [10:22:40]line = 0.00 [10:22:40]line НДС 12% НСП 1% [10:22:40]line > о реализуемом товаре [10:22:40]line ИТОГО: 0.00 [10:22:40]line НСП 1% : 0.00 [10:22:40]line НДС 12% : 0.00 [10:22:40]line Наличными: 0.00 [10:22:40]line Безнал.: 0.00 [10:22:40]line Место: АЗС № 133 "Партнер Нефть" [10:22:40]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:22:40]line СНО: Общий режим [10:22:40]line Чек 181 20.10.2024 10:22 [10:22:40]line Смена: 533 ФФД: 1.0 [10:22:40]line ЗНМ: 0300000091 [10:22:40]line РНМ: 0000000000091685 [10:22:40]line Версия ККМ: 001 [10:22:40]line Талоны: ТК ГПНА Online [10:22:40]line 30100996 [10:22:40]line ФМ: 0000000000871839 [10:22:40]line ФД: 227333 [10:22:40]line ФПД: 246010936030751 [10:22:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T102243&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227333&fm=246010936030751&tin=02508201610067®Number=0000000000091685&sum=0 [10:22:40]written 0, free lines is 4095 [10:22:40]Connected sock=9 [10:22: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 33 39 0F 01 00 00 B4 5F 07 01 30 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 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 B5 00 00 00 F4 03 04 00 F3 D9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 05 78 03 00 35 04 06 00 DF BE E2 73 F6 1F 15 5A DA 5C 18 0D 3C 55 [10:22: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 33 39 4F 00 00 00 A3 84 47 00 40 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 33 39 10 04 04 00 05 78 03 00 F4 03 04 00 F2 84 14 67 B6 04 01 00 00 12 74 8D 6C DF DC DA 19 [10:22:41]CommunicateWithHost err = 0 [10:22:41]CheckOFDResponse [10:22:41]1017 (14) - 77093643461234 [10:22:41]1041 (16) - 0000000000871839 [10:22:41]1040 (4) - 227333 [10:22:41]1012 (4) - 20.10.2024 04:20 [10:22:41]1206 (1) - 0 [10:22:41]OFD Sender: Remove packet 227333 [10:22:41]ProducePacketName [10:22:41]name=ofd_packets/00227333 [10:22:41]NVStorageDeleteData [10:22:41]Write to MH i2c: 01 00 00 37 4A 81 [10:22:41]Write i2c OK [10:22:41]MH_I2C_Read... [10:22:41]Read from MH i2c: 01 [10:22:41]MH_I2C_Read... [10:22:41]Read from MH i2c: 01 07 00 [10:22:41]MH_I2C_Read... [10:22:41]Read from MH i2c: 01 07 00 37 4A 00 00 00 00 00 1D 0D B2 [10:22:41]RasterBufferAndPrint [10:22:41]line [10:22:41]line [10:22:41]line [10:22:41]line [10:22:41]line [10:22:41]written 0, free lines is 3366 [10:22:41]process_action close_receipt done [10:22:41]requested_data is exist [10:22:41]produce_requested_data [10:22:41]requested_item fm.sn is exist - process it [10:22:41]wFMCommunicate request_size=4 [10:22:41]MH_SAM_APDU [10:22:41]CAPDU: 80 11 00 00 [10:22:41]Write to MH i2c: E2 08 00 3E 4A 80 11 00 00 00 00 00 00 02 [10:22:41]Write i2c OK [10:22:41]MH_I2C_Read... [10:22:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:41]Read from MH i2c: E2 [10:22:41]MH_I2C_Read... [10:22:41]Read from MH i2c: E2 17 00 [10:22:41]MH_I2C_Read... [10:22:41]Read from MH i2c: E2 17 00 3E 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 59 [10:22:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:22:41]wFMCommunicate OK [10:22:41]requested_item fd.num is exist - process it [10:22:41]SAM_PROTO_GetFieldsCounters [10:22:41]wFMCommunicate request_size=4 [10:22:41]MH_SAM_APDU [10:22:41]CAPDU: 80 13 00 00 [10:22:41]Write to MH i2c: E2 08 00 3F 4A 80 13 00 00 00 00 00 00 05 [10:22:41]Write i2c OK [10:22:41]MH_I2C_Read... [10:22:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:22:41]Read from MH i2c: E2 [10:22:41]MH_I2C_Read... [10:22:41]Read from MH i2c: E2 62 00 [10:22:41]MH_I2C_Read... [10:22:41]Read from MH i2c: E2 62 00 3F 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 05 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [10:22: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 05 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:22:41]wFMCommunicate OK [10:22:41]SAM_PROTO_GetFieldsCounters done [10:22:41]requested_item shift.num is exist - process it [10:22:41]requested_item shift.opened is exist - process it [10:22:41]req_shift_opened [10:22:41]FM_GetShiftState [10:22:41]SAM_PROTO_GetShiftState [10:22:41]wFMCommunicate request_size=4 [10:22:41]MH_SAM_APDU [10:22:41]CAPDU: 80 13 01 00 [10:22:41]Write to MH i2c: E2 08 00 40 4A 80 13 01 00 00 00 00 00 07 [10:22:41]Write i2c OK [10:22:41]MH_I2C_Read... [10:22:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:41]Read from MH i2c: E2 [10:22:41]MH_I2C_Read... [10:22:41]Read from MH i2c: E2 0E 00 [10:22:41]MH_I2C_Read... [10:22:41]Read from MH i2c: E2 0E 00 40 4A 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 21 [10:22:41]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:22:41]wFMCommunicate OK [10:22:41]SAM_PROTO_GetShiftState done [10:22:41]FM_GetShiftState done [10:22:41]req_shift_opened done [10:22:41]requested_item shift.open_date is exist - process it [10:22:41]req_shift_open_date [10:22:41]req_shift_open_date done [10:22:41]produce_requested_data done [10:22:41]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227333,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [10:22:41]process_action_free close_receipt [10:22:41]json_value_free [10:22:41]json_value_free done [10:22:41]process_json_proto returns [10:22:41]Send response to host [10:22:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227333,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [10:22:41]free response buf [10:22:41]execute_script done [10:22:41]execute_script returns [10:22:41]free content buf [10:22:41]Sock 8.Close socket [10:22:41]Sock 8.Thread stoped [10:22:41]OFD Sender: No OFD packet to send [10:22:46]OFD Sender: No OFD packet to send [10:22:51]OFD Sender: No OFD packet to send [10:22:56]OFD Sender: No OFD packet to send [10:23:01]OFD Sender: No OFD packet to send [10:23:06]OFD Sender: No OFD packet to send [10:23:11]OFD Sender: No OFD packet to send [10:23:16]OFD Sender: No OFD packet to send [10:23:21]OFD Sender: No OFD packet to send [10:23:26]OFD Sender: No OFD packet to send [10:23:31]OFD Sender: No OFD packet to send [10:23:36]OFD Sender: No OFD packet to send [10:23:41]OFD Sender: No OFD packet to send [10:23:46]OFD Sender: No OFD packet to send [10:23:51]OFD Sender: No OFD packet to send [10:23:56]OFD Sender: No OFD packet to send [10:24:01]OFD Sender: No OFD packet to send [10:24:06]OFD Sender: No OFD packet to send [10:24:11]OFD Sender: No OFD packet to send [10:24:16]OFD Sender: No OFD packet to send [10:24:21]OFD Sender: No OFD packet to send [10:24:26]OFD Sender: No OFD packet to send [10:24:31]OFD Sender: No OFD packet to send [10:24:36]OFD Sender: No OFD packet to send [10:24:41]OFD Sender: No OFD packet to send [10:24:46]OFD Sender: No OFD packet to send [10:24:51]OFD Sender: No OFD packet to send [10:24:56]OFD Sender: No OFD packet to send [10:25:01]OFD Sender: No OFD packet to send [10:25:06]OFD Sender: No OFD packet to send [10:25:11]OFD Sender: No OFD packet to send [10:25:16]OFD Sender: No OFD packet to send [10:25: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:00]accept exits with 10 [10:26:00]New connection [10:26:00]New thread 3066821988 created [10:26:00]Thread 3066965348 joined [10:26:00]Waiting for new connection... [10:26:00] Sock 10.Parse request [10:26:00]Sock 10.Check first char [10:26:00]Sock 10.First char is OK [10:26:00]request: POST /json_proto HTTP/1.0 [10:26:00]Method: POST [10:26:00]URL: /json_proto [10:26:00]Method is POST - this is cgi request [10:26:00]url: /json_proto [10:26:00]query_string will be loaded in cgi processing [10:26:00]execute_cgi json_proto POST (null) [10:26:00]execute_cgi path=json_proto method=POST [10:26:00]POST find Content-Length [10:26:00]Host: 172.17.44.195:8080 [10:26:00]Content-Length: 680 [10:26:00]Content-Type: application/json [10:26:00] [10:26:00]POST finish read [10:26:00]Found Content-Length = 680 [10:26:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962819", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:00]execute_script... [10:26: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)1962819", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:00]POST & json_proto [10:26:00]process_json_proto [10:26:00]json parsed OK: [10:26:00]protocol is kg_v1.0 [10:26:00]action value=close_receipt [10:26:00]process_action close_receipt [10:26:00]cmd_close_receipt [10:26:00]MH_GetDate [10:26:00]Write to MH i2c: F0 00 00 41 4A 7A [10:26:00]Write i2c OK [10:26:00]MH_I2C_Read... [10:26:00]Read from MH i2c: F0 [10:26:00]MH_I2C_Read... [10:26:00]Read from MH i2c: F0 09 00 [10:26:00]MH_I2C_Read... [10:26:00]Read from MH i2c: F0 09 00 41 4A 00 BC DA 14 67 82 C9 CF 66 14 [10:26:00]GetLastDocTimeStamp 1729419763 [10:26:00]current date 1729419964 [10:26:00]FM_GetShiftState [10:26:00]SAM_PROTO_GetShiftState [10:26:00]wFMCommunicate request_size=4 [10:26:00]MH_SAM_APDU [10:26:00]CAPDU: 80 13 01 00 [10:26:00]Write to MH i2c: E2 08 00 42 4A 80 13 01 00 00 00 00 00 09 [10:26:00]Write i2c OK [10:26:00]MH_I2C_Read... [10:26:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:00]Read from MH i2c: E2 [10:26:00]MH_I2C_Read... [10:26:00]Read from MH i2c: E2 0E 00 [10:26:00]MH_I2C_Read... [10:26:00]Read from MH i2c: E2 0E 00 42 4A 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 23 [10:26:00]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:26:00]wFMCommunicate OK [10:26:00]SAM_PROTO_GetShiftState done [10:26:00]FM_GetShiftState done [10:26:00]opened in 1729383750 [10:26:00]opened+sec_in_day 1729470150 [10:26:00]quantity*price = 100050 [10:26:00]sum+1 = 100052 [10:26:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 182 20.10.2024 10:26 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227334 ФПД: 151256608364194 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T102604&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227334&fm=151256608364194&tin=02508201610067®Number=0000000000091685&sum=100000 [10:26:01]StoreToDocumentArchive [10:26:01]shift 533 fd 227334 [10:26:01]save to /storage/0533/doc_00227334 [10:26:01]save last doc name /storage/0533/doc_00227334 to /storage/kkm_last_doc_name [10:26:01]save OK [10:26:01]Clear old archive folders... [10:26:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:26:01]tlvbuf is 00569790 [10:26:01]SAM_PROTO_ClearQueue [10:26:01]wFMCommunicate request_size=4 [10:26:01]MH_SAM_APDU [10:26:01]CAPDU: 80 09 00 00 [10:26:01]Write to MH i2c: E2 08 00 4F 4A 80 09 00 00 00 00 00 00 0B [10:26:01]Write i2c OK [10:26:01]MH_I2C_Read... [10:26:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:26:01]Read from MH i2c: E2 [10:26:01]MH_I2C_Read... [10:26:01]Read from MH i2c: E2 03 00 [10:26:01]MH_I2C_Read... [10:26:01]Read from MH i2c: E2 03 00 4F 4A 00 90 00 0D [10:26:01]RAPDU: 90 00 [10:26:01]wFMCommunicate OK [10:26:01]SAM_PROTO_ClearQueue done [10:26:01]KKMCreateOFDPacket [10:26:01]OFDProtocolAddRootSTLVToBuf [10:26:01]FM_MakeSignedData [10:26:01]FM_MakeSignedData [10:26:01]SAM_PROTO_SignData [10:26:01]wFMCommunicate request_size=4 [10:26:01]MH_SAM_APDU [10:26:01]CAPDU: 80 0D 01 02 [10:26:01]Write to MH i2c: E2 08 00 50 4A 80 0D 01 02 00 00 00 00 13 [10:26:01]Write i2c OK [10:26:01]MH_I2C_Read... [10:26:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:26:01]Read from MH i2c: E2 [10:26:01]MH_I2C_Read... [10:26:01]Read from MH i2c: E2 03 00 [10:26:01]MH_I2C_Read... [10:26:01]Read from MH i2c: E2 03 00 50 4A 00 90 00 0E [10:26:01]RAPDU: 90 00 [10:26:01]wFMCommunicate OK [10:26:01]wFMCommunicate request_size=255 [10:26:01]MH_SAM_APDU [10:26:01]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 BC DA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 06 78 03 00 35 04 06 00 89 91 2C 69 [10:26:01]Write to MH i2c: E2 02 01 51 4A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 BC DA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 06 78 03 00 35 04 06 00 89 91 2C 69 00 00 AE [10:26:01]Write i2c OK [10:26:01]MH_I2C_Read... [10:26:01]OFD Sender: No OFD packet to send [10:26:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:01]Read from MH i2c: E2 [10:26:01]MH_I2C_Read... [10:26:01]Read from MH i2c: E2 03 00 [10:26:01]MH_I2C_Read... [10:26:01]Read from MH i2c: E2 03 00 51 4A 00 90 00 0F [10:26:01]RAPDU: 90 00 [10:26:01]wFMCommunicate OK [10:26:01]wFMCommunicate request_size=7 [10:26:01]MH_SAM_APDU [10:26:01]CAPDU: 80 0D 02 02 02 56 A2 [10:26:01]Write to MH i2c: E2 0A 00 52 4A 80 0D 02 02 02 00 56 A2 00 00 12 [10:26:01]Write i2c OK [10:26:01]MH_I2C_Read... [10:26:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:01]Read from MH i2c: E2 [10:26:01]MH_I2C_Read... [10:26:01]Read from MH i2c: E2 03 00 [10:26:01]MH_I2C_Read... [10:26:01]Read from MH i2c: E2 03 00 52 4A 00 90 00 10 [10:26:01]RAPDU: 90 00 [10:26:01]wFMCommunicate OK [10:26:01]wFMCommunicate request_size=4 [10:26:01]MH_SAM_APDU [10:26:01]CAPDU: 80 0D 03 02 [10:26:01]Write to MH i2c: E2 08 00 53 4A 80 0D 03 02 00 00 00 00 18 [10:26:01]Write i2c OK [10:26:01]MH_I2C_Read... [10:26:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:26:02]Read from MH i2c: E2 [10:26:02]MH_I2C_Read... [10:26:02]Read from MH i2c: E2 0B 00 [10:26:02]MH_I2C_Read... [10:26:02]Read from MH i2c: E2 0B 00 53 4A 00 D2 91 9F 96 CC B6 76 37 90 00 E0 [10:26:02]RAPDU: D2 91 9F 96 CC B6 76 37 90 00 [10:26:02]wFMCommunicate OK [10:26:02]SAM_PROTO_SignData done [10:26:02]FM_MakeSignedData done [10:26:02]CreateOFDProtocolMessage [10:26:02]wFMCommunicate request_size=4 [10:26:02]MH_SAM_APDU [10:26:02]CAPDU: 80 11 00 00 [10:26:02]Write to MH i2c: E2 08 00 54 4A 80 11 00 00 00 00 00 00 18 [10:26:02]Write i2c OK [10:26:02]MH_I2C_Read... [10:26:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:02]Read from MH i2c: E2 [10:26:02]MH_I2C_Read... [10:26:02]Read from MH i2c: E2 17 00 [10:26:02]MH_I2C_Read... [10:26:02]Read from MH i2c: E2 17 00 54 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 6F [10:26:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:26:02]wFMCommunicate OK [10:26:02]CreateOFDProtocolMessage done [10:26:02]OFDSenderStorePacket 227334 [10:26:02]StoreOFDPacket docnum=227334 [10:26:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 AC 7D 04 01 73 8E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 BC DA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 06 78 03 00 35 04 06 00 89 91 2C 69 56 A2 D2 91 9F 96 CC B6 76 37 [10:26:02]CheckFolder [10:26:02]dirname=/storage/ofd_packets [10:26:02]CheckFolder done [10:26:02]ProducePacketName [10:26:02]name=ofd_packets/00227334 [10:26:02]NVStorageSaveData ofd_packets/00227334 [10:26:02]File name is /storage/ofd_packets/00227334 [10:26:02]Write 298 bytes [10:26:02]NVStorageSaveData done [10:26:02]OFDSenderStorePacket done [10:26:02]KKMCreateOFDPacket done [10:26:02]NVStorageSaveData kkm_last_timestamp [10:26:02]File name is /storage/kkm_last_timestamp [10:26:02]Write 4 bytes [10:26:02]NVStorageSaveData done [10:26:02]ExternCall_PrintAddStr [10:26:02]wPrintStart [10:26:02]Write to MH i2c: 01 00 00 55 4A 9F [10:26:02]Write i2c OK [10:26:02]MH_I2C_Read... [10:26:02]Read from MH i2c: 01 [10:26:02]MH_I2C_Read... [10:26:02]Read from MH i2c: 01 07 00 [10:26:02]MH_I2C_Read... [10:26:02]Read from MH i2c: 01 07 00 55 4A 00 00 00 00 00 FF 0F B4 [10:26:02]RasterBufferAndPrint [10:26:02]line Счет N : (1)1962819 [10:26:02]line ИНН: 02508201610067 [10:26:02]line Контрольно-Кассовый Чек [10:26:02]line ПРОДАЖА [10:26:02]line ТРК (МРК, ГНК) : 21 [10:26:02]line Товар: 2710194210 [10:26:02]line ДТ-К-5 [10:26:02]line 13.130 * 76.20 [10:26:02]line = 1000.51 [10:26:02]line НДС 12% НСП 1% [10:26:02]line > о реализуемом товаре [10:26:02]line ОКРУГЛЕНИЕ: -0.51 [10:26:02]line ИТОГО: 1000.00 [10:26:02]line Внесено: 1000.00 [10:26:02]line СДАЧА: 0.00 [10:26:02]line НСП 1% : 8.85 [10:26:02]line НДС 12% : 106.25 [10:26:02]line Наличными: 1000.00 [10:26:02]line Безнал.: 0.00 [10:26:02]line Место: АЗС № 133 "Партнер Нефть" [10:26:02]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:26:02]line СНО: Общий режим [10:26:02]line Чек 182 20.10.2024 10:26 [10:26:02]line Смена: 533 ФФД: 1.0 [10:26:02]line ЗНМ: 0300000091 [10:26:02]line РНМ: 0000000000091685 [10:26:02]line Версия ККМ: 001 [10:26:02]line ФМ: 0000000000871839 [10:26:02]line ФД: 227334 [10:26:02]line ФПД: 151256608364194 [10:26:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T102604&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227334&fm=151256608364194&tin=02508201610067®Number=0000000000091685&sum=100000 [10:26:02]OFD Sender: Processing packet 227334 [packets to send 38, broken 37] [10:26:02]ProducePacketName [10:26:02]name=ofd_packets/00227334 [10:26:02]OFD Sender: To server: pG, [10:26:02]CommunicateWithHost lk.salyk.kg:30040 [10:26:02]ConnectInit lk.salyk.kg [10:26:02]written 0, free lines is 4095 [10:26:02]Connected sock=8 [10:26: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 33 39 0C 01 00 00 AC 7D 04 01 73 8E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 BC DA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 06 78 03 00 35 04 06 00 89 91 2C 69 56 A2 D2 91 9F 96 CC B6 76 37 [10:26:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 C0 F6 47 00 02 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 33 39 10 04 04 00 06 78 03 00 F4 03 04 00 BB 85 14 67 B6 04 01 00 00 AC DC F5 D7 E3 69 5A C5 [10:26:02]CommunicateWithHost err = 0 [10:26:02]CheckOFDResponse [10:26:02]1017 (14) - 77093643461234 [10:26:02]1041 (16) - 0000000000871839 [10:26:02]1040 (4) - 227334 [10:26:02]1012 (4) - 20.10.2024 04:23 [10:26:02]1206 (1) - 0 [10:26:02]OFD Sender: Remove packet 227334 [10:26:02]ProducePacketName [10:26:02]name=ofd_packets/00227334 [10:26:02]NVStorageDeleteData [10:26:02]Write to MH i2c: 01 00 00 7F 4A C9 [10:26:02]Write i2c OK [10:26:02]MH_I2C_Read... [10:26:02]Read from MH i2c: 01 [10:26:02]MH_I2C_Read... [10:26:02]Read from MH i2c: 01 07 00 [10:26:02]MH_I2C_Read... [10:26:02]Read from MH i2c: 01 07 00 7F 4A 00 00 00 00 00 06 0D E3 [10:26:02]RasterBufferAndPrint [10:26:02]line [10:26:02]line [10:26:02]line [10:26:02]line [10:26:02]line [10:26:02]written 0, free lines is 3340 [10:26:02]process_action close_receipt done [10:26:02]requested_data is exist [10:26:02]produce_requested_data [10:26:02]requested_item fm.sn is exist - process it [10:26:02]wFMCommunicate request_size=4 [10:26:02]MH_SAM_APDU [10:26:02]CAPDU: 80 11 00 00 [10:26:02]Write to MH i2c: E2 08 00 86 4A 80 11 00 00 00 00 00 00 4A [10:26:02]Write i2c OK [10:26:02]MH_I2C_Read... [10:26:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:02]Read from MH i2c: E2 [10:26:02]MH_I2C_Read... [10:26:02]Read from MH i2c: E2 17 00 [10:26:02]MH_I2C_Read... [10:26:02]Read from MH i2c: E2 17 00 86 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A1 [10:26:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:26:02]wFMCommunicate OK [10:26:02]requested_item fd.num is exist - process it [10:26:02]SAM_PROTO_GetFieldsCounters [10:26:02]wFMCommunicate request_size=4 [10:26:02]MH_SAM_APDU [10:26:02]CAPDU: 80 13 00 00 [10:26:02]Write to MH i2c: E2 08 00 87 4A 80 13 00 00 00 00 00 00 4D [10:26:02]Write i2c OK [10:26:02]MH_I2C_Read... [10:26:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:26:03]Read from MH i2c: E2 [10:26:03]MH_I2C_Read... [10:26:03]Read from MH i2c: E2 62 00 [10:26:03]MH_I2C_Read... [10:26:03]Read from MH i2c: E2 62 00 87 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 06 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [10:26:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 06 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:26:03]wFMCommunicate OK [10:26:03]SAM_PROTO_GetFieldsCounters done [10:26:03]requested_item shift.num is exist - process it [10:26:03]requested_item shift.opened is exist - process it [10:26:03]req_shift_opened [10:26:03]FM_GetShiftState [10:26:03]SAM_PROTO_GetShiftState [10:26:03]wFMCommunicate request_size=4 [10:26:03]MH_SAM_APDU [10:26:03]CAPDU: 80 13 01 00 [10:26:03]Write to MH i2c: E2 08 00 88 4A 80 13 01 00 00 00 00 00 4F [10:26:03]Write i2c OK [10:26:03]MH_I2C_Read... [10:26:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:03]Read from MH i2c: E2 [10:26:03]MH_I2C_Read... [10:26:03]Read from MH i2c: E2 0E 00 [10:26:03]MH_I2C_Read... [10:26:03]Read from MH i2c: E2 0E 00 88 4A 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 69 [10:26:03]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:26:03]wFMCommunicate OK [10:26:03]SAM_PROTO_GetShiftState done [10:26:03]FM_GetShiftState done [10:26:03]req_shift_opened done [10:26:03]requested_item shift.open_date is exist - process it [10:26:03]req_shift_open_date [10:26:03]req_shift_open_date done [10:26:03]produce_requested_data done [10:26:03]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227334,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [10:26:03]process_action_free close_receipt [10:26:03]json_value_free [10:26:03]json_value_free done [10:26:03]process_json_proto returns [10:26:03]Send response to host [10:26:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227334,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [10:26:03]free response buf [10:26:03]execute_script done [10:26:03]execute_script returns [10:26:03]free content buf [10:26:03]Sock 10.Close socket [10:26:03]Sock 10.Thread stoped [10:26:03]OFD Sender: No OFD packet to send [10:26:08]OFD Sender: No OFD packet to send [10:26:13]OFD Sender: No OFD packet to send [10:26:18]OFD Sender: No OFD packet to send [10:26:23]OFD Sender: No OFD packet to send [10:26:28]OFD Sender: No OFD packet to send [10:26:33]OFD Sender: No OFD packet to send [10:26:38]OFD Sender: No OFD packet to send [10:26:43]OFD Sender: No OFD packet to send [10:26:48]OFD Sender: No OFD packet to send [10:26:53]OFD Sender: No OFD packet to send [10:26:58]OFD Sender: No OFD packet to send [10:27:03]OFD Sender: No OFD packet to send [10:27:08]OFD Sender: No OFD packet to send [10:27:13]OFD Sender: No OFD packet to send [10:27:18]OFD Sender: No OFD packet to send [10:27:23]OFD Sender: No OFD packet to send [10:27:28]OFD Sender: No OFD packet to send [10:27:33]OFD Sender: No OFD packet to send [10:27:38]OFD Sender: No OFD packet to send [10:27:43]OFD Sender: No OFD packet to send [10:27:47]accept exits with 9 [10:27:47]New connection [10:27:47]New thread 3066965348 created [10:27:47]Thread 3066821988 joined [10:27:47]Waiting for new connection... [10:27:47] Sock 9.Parse request [10:27:47]Sock 9.Check first char [10:27:47]Sock 9.First char is OK [10:27:47]request: POST /json_proto HTTP/1.0 [10:27:47]Method: POST [10:27:47]URL: /json_proto [10:27:47]Method is POST - this is cgi request [10:27:47]url: /json_proto [10:27:47]query_string will be loaded in cgi processing [10:27:47]execute_cgi json_proto POST (null) [10:27:47]execute_cgi path=json_proto method=POST [10:27:47]POST find Content-Length [10:27:47]Host: 172.17.44.195:8080 [10:27:47]Content-Length: 683 [10:27:47]Content-Type: application/json [10:27:47] [10:27:47]POST finish read [10:27:47]Found Content-Length = 683 [10:27:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962820", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:47]execute_script... [10:27:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962820", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:47]POST & json_proto [10:27:47]process_json_proto [10:27:47]json parsed OK: [10:27:47]protocol is kg_v1.0 [10:27:47]action value=close_receipt [10:27:47]process_action close_receipt [10:27:47]cmd_close_receipt [10:27:47]MH_GetDate [10:27:47]Write to MH i2c: F0 00 00 89 4A C2 [10:27:47]Write i2c OK [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: F0 [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: F0 09 00 [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: F0 09 00 89 4A 00 27 DB 14 67 82 C9 CF 66 C8 [10:27:47]GetLastDocTimeStamp 1729419964 [10:27:47]current date 1729420071 [10:27:47]FM_GetShiftState [10:27:47]SAM_PROTO_GetShiftState [10:27:47]wFMCommunicate request_size=4 [10:27:47]MH_SAM_APDU [10:27:47]CAPDU: 80 13 01 00 [10:27:47]Write to MH i2c: E2 08 00 8A 4A 80 13 01 00 00 00 00 00 51 [10:27:47]Write i2c OK [10:27:47]MH_I2C_Read... [10:27:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:47]Read from MH i2c: E2 [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: E2 0E 00 [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: E2 0E 00 8A 4A 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 6B [10:27:47]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:27:47]wFMCommunicate OK [10:27:47]SAM_PROTO_GetShiftState done [10:27:47]FM_GetShiftState done [10:27:47]opened in 1729383750 [10:27:47]opened+sec_in_day 1729470150 [10:27:47]quantity*price = 200043 [10:27:47]sum+1 = 200044 [10:27:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 183 20.10.2024 10:27 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227335 ФПД: 95299574025319 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T102751&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227335&fm=95299574025319&tin=02508201610067®Number=0000000000091685&sum=200000 [10:27:47]StoreToDocumentArchive [10:27:47]shift 533 fd 227335 [10:27:47]save to /storage/0533/doc_00227335 [10:27:47]save last doc name /storage/0533/doc_00227335 to /storage/kkm_last_doc_name [10:27:47]save OK [10:27:47]Clear old archive folders... [10:27:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:27:47]tlvbuf is 0057B1A0 [10:27:47]SAM_PROTO_ClearQueue [10:27:47]wFMCommunicate request_size=4 [10:27:47]MH_SAM_APDU [10:27:47]CAPDU: 80 09 00 00 [10:27:47]Write to MH i2c: E2 08 00 97 4A 80 09 00 00 00 00 00 00 53 [10:27:47]Write i2c OK [10:27:47]MH_I2C_Read... [10:27:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:27:47]Read from MH i2c: E2 [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: E2 03 00 [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: E2 03 00 97 4A 00 90 00 55 [10:27:47]RAPDU: 90 00 [10:27:47]wFMCommunicate OK [10:27:47]SAM_PROTO_ClearQueue done [10:27:47]KKMCreateOFDPacket [10:27:47]OFDProtocolAddRootSTLVToBuf [10:27:47]FM_MakeSignedData [10:27:47]FM_MakeSignedData [10:27:47]SAM_PROTO_SignData [10:27:47]wFMCommunicate request_size=4 [10:27:47]MH_SAM_APDU [10:27:47]CAPDU: 80 0D 01 02 [10:27:47]Write to MH i2c: E2 08 00 98 4A 80 0D 01 02 00 00 00 00 5B [10:27:47]Write i2c OK [10:27:47]MH_I2C_Read... [10:27:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:27:47]Read from MH i2c: E2 [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: E2 03 00 [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: E2 03 00 98 4A 00 90 00 56 [10:27:47]RAPDU: 90 00 [10:27:47]wFMCommunicate OK [10:27:47]wFMCommunicate request_size=255 [10:27:47]MH_SAM_APDU [10:27:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 27 DB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 07 78 03 00 35 04 06 00 56 [10:27:47]Write to MH i2c: E2 02 01 99 4A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 27 DB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 07 78 03 00 35 04 06 00 56 00 00 BD [10:27:47]Write i2c OK [10:27:47]MH_I2C_Read... [10:27:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:48]Read from MH i2c: E2 [10:27:48]MH_I2C_Read... [10:27:48]Read from MH i2c: E2 03 00 [10:27:48]MH_I2C_Read... [10:27:48]Read from MH i2c: E2 03 00 99 4A 00 90 00 57 [10:27:48]RAPDU: 90 00 [10:27:48]wFMCommunicate OK [10:27:48]wFMCommunicate request_size=10 [10:27:48]MH_SAM_APDU [10:27:48]CAPDU: 80 0D 02 02 05 AC A9 41 CC 67 [10:27:48]Write to MH i2c: E2 0D 00 9A 4A 80 0D 02 02 05 00 AC A9 41 CC 67 00 00 31 [10:27:48]Write i2c OK [10:27:48]MH_I2C_Read... [10:27:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:48]Read from MH i2c: E2 [10:27:48]MH_I2C_Read... [10:27:48]Read from MH i2c: E2 03 00 [10:27:48]MH_I2C_Read... [10:27:48]Read from MH i2c: E2 03 00 9A 4A 00 90 00 58 [10:27:48]RAPDU: 90 00 [10:27:48]wFMCommunicate OK [10:27:48]wFMCommunicate request_size=4 [10:27:48]MH_SAM_APDU [10:27:48]CAPDU: 80 0D 03 02 [10:27:48]Write to MH i2c: E2 08 00 9B 4A 80 0D 03 02 00 00 00 00 60 [10:27:48]Write i2c OK [10:27:48]MH_I2C_Read... [10:27:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:27:48]Read from MH i2c: E2 [10:27:48]MH_I2C_Read... [10:27:48]Read from MH i2c: E2 0B 00 [10:27:48]MH_I2C_Read... [10:27:48]Read from MH i2c: E2 0B 00 9B 4A 00 DB 10 EC F5 61 B7 7B 94 90 00 54 [10:27:48]RAPDU: DB 10 EC F5 61 B7 7B 94 90 00 [10:27:48]wFMCommunicate OK [10:27:48]SAM_PROTO_SignData done [10:27:48]FM_MakeSignedData done [10:27:48]CreateOFDProtocolMessage [10:27:48]wFMCommunicate request_size=4 [10:27:48]MH_SAM_APDU [10:27:48]CAPDU: 80 11 00 00 [10:27:48]Write to MH i2c: E2 08 00 9C 4A 80 11 00 00 00 00 00 00 60 [10:27:48]Write i2c OK [10:27:48]MH_I2C_Read... [10:27:48]OFD Sender: No OFD packet to send [10:27:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:48]Read from MH i2c: E2 [10:27:48]MH_I2C_Read... [10:27:48]Read from MH i2c: E2 17 00 [10:27:48]MH_I2C_Read... [10:27:48]Read from MH i2c: E2 17 00 9C 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B7 [10:27:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:27:48]wFMCommunicate OK [10:27:48]CreateOFDProtocolMessage done [10:27:48]OFDSenderStorePacket 227335 [10:27:48]StoreOFDPacket docnum=227335 [10:27:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 F3 4E 07 01 F6 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 27 DB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 07 78 03 00 35 04 06 00 56 AC A9 41 CC 67 DB 10 EC F5 61 B7 7B 94 [10:27:48]CheckFolder [10:27:48]dirname=/storage/ofd_packets [10:27:48]CheckFolder done [10:27:48]ProducePacketName [10:27:48]name=ofd_packets/00227335 [10:27:48]NVStorageSaveData ofd_packets/00227335 [10:27:48]File name is /storage/ofd_packets/00227335 [10:27:48]Write 301 bytes [10:27:48]NVStorageSaveData done [10:27:48]OFDSenderStorePacket done [10:27:48]KKMCreateOFDPacket done [10:27:48]NVStorageSaveData kkm_last_timestamp [10:27:48]File name is /storage/kkm_last_timestamp [10:27:48]Write 4 bytes [10:27:48]NVStorageSaveData done [10:27:48]ExternCall_PrintAddStr [10:27:48]wPrintStart [10:27:48]Write to MH i2c: 01 00 00 9D 4A E7 [10:27:48]Write i2c OK [10:27:48]MH_I2C_Read... [10:27:48]Read from MH i2c: 01 [10:27:48]MH_I2C_Read... [10:27:48]Read from MH i2c: 01 07 00 [10:27:48]MH_I2C_Read... [10:27:48]Read from MH i2c: 01 07 00 9D 4A 00 00 00 00 00 FF 0F FC [10:27:48]RasterBufferAndPrint [10:27:48]line Счет N : (1)1962820 [10:27:48]line ИНН: 02508201610067 [10:27:48]line Контрольно-Кассовый Чек [10:27:48]line ПРОДАЖА [10:27:48]line ТРК (МРК, ГНК) : 54 [10:27:48]line Товар: 2710124500 [10:27:48]line Аи-95-К-5 [10:27:48]line 26.960 * 74.20 [10:27:48]line = 2000.43 [10:27:48]line НДС 12% НСП 1% [10:27:48]line > о реализуемом товаре [10:27:48]line ОКРУГЛЕНИЕ: -0.43 [10:27:48]line ИТОГО: 2000.00 [10:27:48]line Внесено: 2000.00 [10:27:48]line СДАЧА: 0.00 [10:27:48]line НСП 1% : 17.70 [10:27:48]line НДС 12% : 212.43 [10:27:48]line Наличными: 2000.00 [10:27:48]line Безнал.: 0.00 [10:27:48]line Место: АЗС № 133 "Партнер Нефть" [10:27:48]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:27:48]line СНО: Общий режим [10:27:48]line Чек 183 20.10.2024 10:27 [10:27:48]line Смена: 533 ФФД: 1.0 [10:27:48]line ЗНМ: 0300000091 [10:27:48]line РНМ: 0000000000091685 [10:27:48]line Версия ККМ: 001 [10:27:48]line ФМ: 0000000000871839 [10:27:48]line ФД: 227335 [10:27:48]line ФПД: 95299574025319 [10:27:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T102751&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227335&fm=95299574025319&tin=02508201610067®Number=0000000000091685&sum=200000 [10:27:48]OFD Sender: Processing packet 227335 [packets to send 38, broken 37] [10:27:48]ProducePacketName [10:27:48]name=ofd_packets/00227335 [10:27:48]OFD Sender: To server: pG, [10:27:48]CommunicateWithHost lk.salyk.kg:30040 [10:27:48]ConnectInit lk.salyk.kg [10:27:48]written 0, free lines is 4095 [10:27:48]Connected sock=10 [10:27:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 F3 4E 07 01 F6 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 27 DB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 07 78 03 00 35 04 06 00 56 AC A9 41 CC 67 DB 10 EC F5 61 B7 7B 94 [10:27: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 33 39 4F 00 00 00 B1 6A 47 00 51 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 33 39 10 04 04 00 07 78 03 00 F4 03 04 00 26 86 14 67 B6 04 01 00 00 2B 94 B9 59 65 CF 54 DC [10:27:49]CommunicateWithHost err = 0 [10:27:49]CheckOFDResponse [10:27:49]1017 (14) - 77093643461234 [10:27:49]1041 (16) - 0000000000871839 [10:27:49]1040 (4) - 227335 [10:27:49]1012 (4) - 20.10.2024 04:25 [10:27:49]1206 (1) - 0 [10:27:49]OFD Sender: Remove packet 227335 [10:27:49]ProducePacketName [10:27:49]name=ofd_packets/00227335 [10:27:49]NVStorageDeleteData [10:27:49]Write to MH i2c: 01 00 00 C7 4A 11 [10:27:49]Write i2c OK [10:27:49]MH_I2C_Read... [10:27:49]Read from MH i2c: 01 [10:27:49]MH_I2C_Read... [10:27:49]Read from MH i2c: 01 07 00 [10:27:49]MH_I2C_Read... [10:27:49]Read from MH i2c: 01 07 00 C7 4A 00 00 00 00 00 14 0D 39 [10:27:49]RasterBufferAndPrint [10:27:49]line [10:27:49]line [10:27:49]line [10:27:49]line [10:27:49]line [10:27:49]written 0, free lines is 3358 [10:27:49]process_action close_receipt done [10:27:49]requested_data is exist [10:27:49]produce_requested_data [10:27:49]requested_item fm.sn is exist - process it [10:27:49]wFMCommunicate request_size=4 [10:27:49]MH_SAM_APDU [10:27:49]CAPDU: 80 11 00 00 [10:27:49]Write to MH i2c: E2 08 00 CE 4A 80 11 00 00 00 00 00 00 92 [10:27:49]Write i2c OK [10:27:49]MH_I2C_Read... [10:27:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:49]Read from MH i2c: E2 [10:27:49]MH_I2C_Read... [10:27:49]Read from MH i2c: E2 17 00 [10:27:49]MH_I2C_Read... [10:27:49]Read from MH i2c: E2 17 00 CE 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E9 [10:27:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:27:49]wFMCommunicate OK [10:27:49]requested_item fd.num is exist - process it [10:27:49]SAM_PROTO_GetFieldsCounters [10:27:49]wFMCommunicate request_size=4 [10:27:49]MH_SAM_APDU [10:27:49]CAPDU: 80 13 00 00 [10:27:49]Write to MH i2c: E2 08 00 CF 4A 80 13 00 00 00 00 00 00 95 [10:27:49]Write i2c OK [10:27:49]MH_I2C_Read... [10:27:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:27:49]Read from MH i2c: E2 [10:27:49]MH_I2C_Read... [10:27:49]Read from MH i2c: E2 62 00 [10:27:49]MH_I2C_Read... [10:27:49]Read from MH i2c: E2 62 00 CF 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 07 78 03 00 0E 04 04 00 15 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 7C [10:27: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 07 78 03 00 0E 04 04 00 15 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 [10:27:49]wFMCommunicate OK [10:27:49]SAM_PROTO_GetFieldsCounters done [10:27:49]requested_item shift.num is exist - process it [10:27:49]requested_item shift.opened is exist - process it [10:27:49]req_shift_opened [10:27:49]FM_GetShiftState [10:27:49]SAM_PROTO_GetShiftState [10:27:49]wFMCommunicate request_size=4 [10:27:49]MH_SAM_APDU [10:27:49]CAPDU: 80 13 01 00 [10:27:49]Write to MH i2c: E2 08 00 D0 4A 80 13 01 00 00 00 00 00 97 [10:27:49]Write i2c OK [10:27:49]MH_I2C_Read... [10:27:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:49]Read from MH i2c: E2 [10:27:49]MH_I2C_Read... [10:27:49]Read from MH i2c: E2 0E 00 [10:27:49]MH_I2C_Read... [10:27:49]Read from MH i2c: E2 0E 00 D0 4A 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 B1 [10:27:49]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:27:49]wFMCommunicate OK [10:27:49]SAM_PROTO_GetShiftState done [10:27:49]FM_GetShiftState done [10:27:49]req_shift_opened done [10:27:49]requested_item shift.open_date is exist - process it [10:27:49]req_shift_open_date [10:27:49]req_shift_open_date done [10:27:49]produce_requested_data done [10:27:49]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227335,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [10:27:49]process_action_free close_receipt [10:27:49]json_value_free [10:27:49]json_value_free done [10:27:49]process_json_proto returns [10:27:49]Send response to host [10:27:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227335,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [10:27:49]free response buf [10:27:49]execute_script done [10:27:49]execute_script returns [10:27:49]free content buf [10:27:49]Sock 9.Close socket [10:27:49]Sock 9.Thread stoped [10:27:49]OFD Sender: No OFD packet to send [10:27:54]OFD Sender: No OFD packet to send [10:27:59]OFD Sender: No OFD packet to send [10:28:04]OFD Sender: No OFD packet to send [10:28:09]OFD Sender: No OFD packet to send [10:28:14]OFD Sender: No OFD packet to send [10:28:19]OFD Sender: No OFD packet to send [10:28:24]OFD Sender: No OFD packet to send [10:28:29]OFD Sender: No OFD packet to send [10:28:34]OFD Sender: No OFD packet to send [10:28:39]OFD Sender: No OFD packet to send [10:28:44]OFD Sender: No OFD packet to send [10:28:49]OFD Sender: No OFD packet to send [10:28:54]OFD Sender: No OFD packet to send [10:28:59]OFD Sender: No OFD packet to send [10:29:04]OFD Sender: No OFD packet to send [10:29:09]OFD Sender: No OFD packet to send [10:29:14]OFD Sender: No OFD packet to send [10:29:19]OFD Sender: No OFD packet to send [10:29:20]accept exits with 8 [10:29:20]New connection [10:29:20]New thread 3066821988 created [10:29:20]Thread 3066965348 joined [10:29:20]Waiting for new connection... [10:29:20] Sock 8.Parse request [10:29:20]Sock 8.Check first char [10:29:20]Sock 8.First char is OK [10:29:20]request: POST /json_proto HTTP/1.0 [10:29:20]Method: POST [10:29:20]URL: /json_proto [10:29:20]Method is POST - this is cgi request [10:29:20]url: /json_proto [10:29:20]query_string will be loaded in cgi processing [10:29:20]execute_cgi json_proto POST (null) [10:29:20]execute_cgi path=json_proto method=POST [10:29:20]POST find Content-Length [10:29:20]Host: 172.17.44.195:8080 [10:29:20]Content-Length: 675 [10:29:20]Content-Type: application/json [10:29:20] [10:29:20]POST finish read [10:29:20]Found Content-Length = 675 [10:29:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962821", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 3.940, "sum" : 300.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:20]execute_script... [10:29: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)1962821", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 3.940, "sum" : 300.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:20]POST & json_proto [10:29:20]process_json_proto [10:29:20]json parsed OK: [10:29:20]protocol is kg_v1.0 [10:29:20]action value=close_receipt [10:29:20]process_action close_receipt [10:29:20]cmd_close_receipt [10:29:20]MH_GetDate [10:29:20]Write to MH i2c: F0 00 00 D1 4A 0A [10:29:20]Write i2c OK [10:29:20]MH_I2C_Read... [10:29:20]Read from MH i2c: F0 [10:29:20]MH_I2C_Read... [10:29:20]Read from MH i2c: F0 09 00 [10:29:20]MH_I2C_Read... [10:29:20]Read from MH i2c: F0 09 00 D1 4A 00 84 DB 14 67 82 C9 CF 66 6D [10:29:20]GetLastDocTimeStamp 1729420071 [10:29:20]current date 1729420164 [10:29:20]FM_GetShiftState [10:29:20]SAM_PROTO_GetShiftState [10:29:20]wFMCommunicate request_size=4 [10:29:20]MH_SAM_APDU [10:29:20]CAPDU: 80 13 01 00 [10:29:20]Write to MH i2c: E2 08 00 D2 4A 80 13 01 00 00 00 00 00 99 [10:29:20]Write i2c OK [10:29:20]MH_I2C_Read... [10:29:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:20]Read from MH i2c: E2 [10:29:20]MH_I2C_Read... [10:29:20]Read from MH i2c: E2 0E 00 [10:29:20]MH_I2C_Read... [10:29:20]Read from MH i2c: E2 0E 00 D2 4A 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 B3 [10:29:20]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:29:20]wFMCommunicate OK [10:29:20]SAM_PROTO_GetShiftState done [10:29:20]FM_GetShiftState done [10:29:20]opened in 1729383750 [10:29:20]opened+sec_in_day 1729470150 [10:29:20]quantity*price = 30022 [10:29:20]sum+1 = 30024 [10:29:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.88 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 184 20.10.2024 10:29 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227336 ФПД: 223036917172616 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T102924&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227336&fm=223036917172616&tin=02508201610067®Number=0000000000091685&sum=30000 [10:29:21]StoreToDocumentArchive [10:29:21]shift 533 fd 227336 [10:29:21]save to /storage/0533/doc_00227336 [10:29:21]save last doc name /storage/0533/doc_00227336 to /storage/kkm_last_doc_name [10:29:21]save OK [10:29:21]Clear old archive folders... [10:29:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:29:21]tlvbuf is 00508F50 [10:29:21]SAM_PROTO_ClearQueue [10:29:21]wFMCommunicate request_size=4 [10:29:21]MH_SAM_APDU [10:29:21]CAPDU: 80 09 00 00 [10:29:21]Write to MH i2c: E2 08 00 DF 4A 80 09 00 00 00 00 00 00 9B [10:29:21]Write i2c OK [10:29:21]MH_I2C_Read... [10:29:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:29:21]Read from MH i2c: E2 [10:29:21]MH_I2C_Read... [10:29:21]Read from MH i2c: E2 03 00 [10:29:21]MH_I2C_Read... [10:29:21]Read from MH i2c: E2 03 00 DF 4A 00 90 00 9D [10:29:21]RAPDU: 90 00 [10:29:21]wFMCommunicate OK [10:29:21]SAM_PROTO_ClearQueue done [10:29:21]KKMCreateOFDPacket [10:29:21]OFDProtocolAddRootSTLVToBuf [10:29:21]FM_MakeSignedData [10:29:21]FM_MakeSignedData [10:29:21]SAM_PROTO_SignData [10:29:21]wFMCommunicate request_size=4 [10:29:21]MH_SAM_APDU [10:29:21]CAPDU: 80 0D 01 02 [10:29:21]Write to MH i2c: E2 08 00 E0 4A 80 0D 01 02 00 00 00 00 A3 [10:29:21]Write i2c OK [10:29:21]MH_I2C_Read... [10:29:21]Read from MH i2c: E2 [10:29:21]MH_I2C_Read... [10:29:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:29:21]Read from MH i2c: E2 03 00 [10:29:21]MH_I2C_Read... [10:29:21]Read from MH i2c: E2 03 00 E0 4A 00 90 00 9E [10:29:21]RAPDU: 90 00 [10:29:21]wFMCommunicate OK [10:29:21]wFMCommunicate request_size=255 [10:29:21]MH_SAM_APDU [10:29:21]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 84 DB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 08 78 03 00 35 04 06 00 CA D9 D4 38 [10:29:21]Write to MH i2c: E2 02 01 E1 4A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 84 DB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 08 78 03 00 35 04 06 00 CA D9 D4 38 00 00 C8 [10:29:21]Write i2c OK [10:29:21]MH_I2C_Read... [10:29:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:21]Read from MH i2c: E2 [10:29:21]MH_I2C_Read... [10:29:21]Read from MH i2c: E2 03 00 [10:29:21]MH_I2C_Read... [10:29:21]Read from MH i2c: E2 03 00 E1 4A 00 90 00 9F [10:29:21]RAPDU: 90 00 [10:29:21]wFMCommunicate OK [10:29:21]wFMCommunicate request_size=7 [10:29:21]MH_SAM_APDU [10:29:21]CAPDU: 80 0D 02 02 02 49 88 [10:29:21]Write to MH i2c: E2 0A 00 E2 4A 80 0D 02 02 02 00 49 88 00 00 7B [10:29:21]Write i2c OK [10:29:21]MH_I2C_Read... [10:29:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:21]Read from MH i2c: E2 [10:29:21]MH_I2C_Read... [10:29:21]Read from MH i2c: E2 03 00 [10:29:21]MH_I2C_Read... [10:29:21]Read from MH i2c: E2 03 00 E2 4A 00 90 00 A0 [10:29:21]RAPDU: 90 00 [10:29:21]wFMCommunicate OK [10:29:21]wFMCommunicate request_size=4 [10:29:21]MH_SAM_APDU [10:29:21]CAPDU: 80 0D 03 02 [10:29:21]Write to MH i2c: E2 08 00 E3 4A 80 0D 03 02 00 00 00 00 A8 [10:29:21]Write i2c OK [10:29:21]MH_I2C_Read... [10:29:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:29:21]Read from MH i2c: E2 [10:29:21]MH_I2C_Read... [10:29:21]Read from MH i2c: E2 0B 00 [10:29:21]MH_I2C_Read... [10:29:21]Read from MH i2c: E2 0B 00 E3 4A 00 22 31 D7 60 C2 6C FC 64 90 00 C1 [10:29:21]RAPDU: 22 31 D7 60 C2 6C FC 64 90 00 [10:29:21]wFMCommunicate OK [10:29:21]SAM_PROTO_SignData done [10:29:21]FM_MakeSignedData done [10:29:21]CreateOFDProtocolMessage [10:29:21]wFMCommunicate request_size=4 [10:29:21]MH_SAM_APDU [10:29:21]CAPDU: 80 11 00 00 [10:29:21]Write to MH i2c: E2 08 00 E4 4A 80 11 00 00 00 00 00 00 A8 [10:29:21]Write i2c OK [10:29:21]MH_I2C_Read... [10:29:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:21]Read from MH i2c: E2 [10:29:21]MH_I2C_Read... [10:29:21]Read from MH i2c: E2 17 00 [10:29:21]MH_I2C_Read... [10:29:21]Read from MH i2c: E2 17 00 E4 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 FF [10:29:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:29:21]wFMCommunicate OK [10:29:21]CreateOFDProtocolMessage done [10:29:21]OFDSenderStorePacket 227336 [10:29:21]StoreOFDPacket docnum=227336 [10:29:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 E5 98 04 01 2A 61 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 84 DB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 08 78 03 00 35 04 06 00 CA D9 D4 38 49 88 22 31 D7 60 C2 6C FC 64 [10:29:21]CheckFolder [10:29:21]dirname=/storage/ofd_packets [10:29:21]CheckFolder done [10:29:21]ProducePacketName [10:29:21]name=ofd_packets/00227336 [10:29:21]NVStorageSaveData ofd_packets/00227336 [10:29:21]File name is /storage/ofd_packets/00227336 [10:29:21]Write 298 bytes [10:29:21]NVStorageSaveData done [10:29:21]OFDSenderStorePacket done [10:29:21]KKMCreateOFDPacket done [10:29:21]NVStorageSaveData kkm_last_timestamp [10:29:21]File name is /storage/kkm_last_timestamp [10:29:21]Write 4 bytes [10:29:21]NVStorageSaveData done [10:29:21]ExternCall_PrintAddStr [10:29:21]wPrintStart [10:29:21]Write to MH i2c: 01 00 00 E5 4A 2F [10:29:21]Write i2c OK [10:29:21]MH_I2C_Read... [10:29:21]Read from MH i2c: 01 [10:29:21]MH_I2C_Read... [10:29:21]Read from MH i2c: 01 07 00 [10:29:21]MH_I2C_Read... [10:29:21]Read from MH i2c: 01 07 00 E5 4A 00 00 00 00 00 FF 0F 44 [10:29:21]RasterBufferAndPrint [10:29:21]line Счет N : (1)1962821 [10:29:21]line ИНН: 02508201610067 [10:29:21]line Контрольно-Кассовый Чек [10:29:21]line ПРОДАЖА [10:29:21]line ТРК (МРК, ГНК) : 31 [10:29:21]line Товар: 2710194210 [10:29:21]line ДТ-К-5 [10:29:21]line 3.940 * 76.20 [10:29:21]line = 300.23 [10:29:21]line НДС 12% НСП 1% [10:29:21]line > о реализуемом товаре [10:29:21]line ОКРУГЛЕНИЕ: -0.23 [10:29:21]line ИТОГО: 300.00 [10:29:21]line Внесено: 300.00 [10:29:21]line СДАЧА: 0.00 [10:29:21]line НСП 1% : 2.66 [10:29:21]line НДС 12% : 31.88 [10:29:21]line Наличными: 300.00 [10:29:21]line Безнал.: 0.00 [10:29:21]line Место: АЗС № 133 "Партнер Нефть" [10:29:21]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:29:21]line СНО: Общий режим [10:29:21]line Чек 184 20.10.2024 10:29 [10:29:21]line Смена: 533 ФФД: 1.0 [10:29:21]line ЗНМ: 0300000091 [10:29:21]line РНМ: 0000000000091685 [10:29:21]line Версия ККМ: 001 [10:29:21]line ФМ: 0000000000871839 [10:29:21]line ФД: 227336 [10:29:21]line ФПД: 223036917172616 [10:29:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T102924&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227336&fm=223036917172616&tin=02508201610067®Number=0000000000091685&sum=30000 [10:29:22]OFD Sender: Processing packet 227336 [packets to send 38, broken 37] [10:29:22]ProducePacketName [10:29:22]name=ofd_packets/00227336 [10:29:22]OFD Sender: To server: pG, [10:29:22]CommunicateWithHost lk.salyk.kg:30040 [10:29:22]ConnectInit lk.salyk.kg [10:29:22]written 0, free lines is 4095 [10:29:22]Connected sock=10 [10:29:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 E5 98 04 01 2A 61 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 84 DB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 08 78 03 00 35 04 06 00 CA D9 D4 38 49 88 22 31 D7 60 C2 6C FC 64 [10:29: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 33 39 4F 00 00 00 81 B2 47 00 EC DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 08 78 03 00 F4 03 04 00 83 86 14 67 B6 04 01 00 00 FE 7D 5A 9C 15 6C DE 0A [10:29:22]CommunicateWithHost err = 0 [10:29:22]CheckOFDResponse [10:29:22]1017 (14) - 77093643461234 [10:29:22]1041 (16) - 0000000000871839 [10:29:22]1040 (4) - 227336 [10:29:22]1012 (4) - 20.10.2024 04:26 [10:29:22]1206 (1) - 0 [10:29:22]OFD Sender: Remove packet 227336 [10:29:22]ProducePacketName [10:29:22]name=ofd_packets/00227336 [10:29:22]NVStorageDeleteData [10:29:22]Write to MH i2c: 01 00 00 0F 4B 5A [10:29:22]Write i2c OK [10:29:22]MH_I2C_Read... [10:29:22]Read from MH i2c: 01 [10:29:22]MH_I2C_Read... [10:29:22]Read from MH i2c: 01 07 00 [10:29:22]MH_I2C_Read... [10:29:22]Read from MH i2c: 01 07 00 0F 4B 00 00 00 00 00 0D 0D 7B [10:29:22]RasterBufferAndPrint [10:29:22]line [10:29:22]line [10:29:22]line [10:29:22]line [10:29:22]line [10:29:22]written 0, free lines is 3347 [10:29:22]process_action close_receipt done [10:29:22]requested_data is exist [10:29:22]produce_requested_data [10:29:22]requested_item fm.sn is exist - process it [10:29:22]wFMCommunicate request_size=4 [10:29:22]MH_SAM_APDU [10:29:22]CAPDU: 80 11 00 00 [10:29:22]Write to MH i2c: E2 08 00 16 4B 80 11 00 00 00 00 00 00 DB [10:29:22]Write i2c OK [10:29:22]MH_I2C_Read... [10:29:22]Read from MH i2c: E2 [10:29:22]MH_I2C_Read... [10:29:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:22]Read from MH i2c: E2 17 00 [10:29:22]MH_I2C_Read... [10:29:22]Read from MH i2c: E2 17 00 16 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 32 [10:29:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:29:22]wFMCommunicate OK [10:29:22]requested_item fd.num is exist - process it [10:29:22]SAM_PROTO_GetFieldsCounters [10:29:22]wFMCommunicate request_size=4 [10:29:22]MH_SAM_APDU [10:29:22]CAPDU: 80 13 00 00 [10:29:22]Write to MH i2c: E2 08 00 17 4B 80 13 00 00 00 00 00 00 DE [10:29:22]Write i2c OK [10:29:22]MH_I2C_Read... [10:29:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:29:22]Read from MH i2c: E2 [10:29:22]MH_I2C_Read... [10:29:22]Read from MH i2c: E2 62 00 [10:29:22]MH_I2C_Read... [10:29:22]Read from MH i2c: E2 62 00 17 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 08 78 03 00 0E 04 04 00 15 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 C9 [10:29:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 08 78 03 00 0E 04 04 00 15 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 [10:29:22]wFMCommunicate OK [10:29:22]SAM_PROTO_GetFieldsCounters done [10:29:22]requested_item shift.num is exist - process it [10:29:22]requested_item shift.opened is exist - process it [10:29:22]req_shift_opened [10:29:22]FM_GetShiftState [10:29:22]SAM_PROTO_GetShiftState [10:29:22]wFMCommunicate request_size=4 [10:29:22]MH_SAM_APDU [10:29:22]CAPDU: 80 13 01 00 [10:29:22]Write to MH i2c: E2 08 00 18 4B 80 13 01 00 00 00 00 00 E0 [10:29:22]Write i2c OK [10:29:22]MH_I2C_Read... [10:29:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:22]Read from MH i2c: E2 [10:29:22]MH_I2C_Read... [10:29:22]Read from MH i2c: E2 0E 00 [10:29:22]MH_I2C_Read... [10:29:22]Read from MH i2c: E2 0E 00 18 4B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 FA [10:29:22]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:29:22]wFMCommunicate OK [10:29:22]SAM_PROTO_GetShiftState done [10:29:22]FM_GetShiftState done [10:29:22]req_shift_opened done [10:29:22]requested_item shift.open_date is exist - process it [10:29:22]req_shift_open_date [10:29:22]req_shift_open_date done [10:29:22]produce_requested_data done [10:29:22]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227336,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [10:29:22]process_action_free close_receipt [10:29:22]json_value_free [10:29:22]json_value_free done [10:29:22]process_json_proto returns [10:29:22]Send response to host [10:29:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227336,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [10:29:22]free response buf [10:29:22]execute_script done [10:29:22]execute_script returns [10:29:22]free content buf [10:29:22]Sock 8.Close socket [10:29:22]Sock 8.Thread stoped [10:29:22]OFD Sender: No OFD packet to send [10:29:27]OFD Sender: No OFD packet to send [10:29:32]OFD Sender: No OFD packet to send [10:29:37]OFD Sender: No OFD packet to send [10:29:42]OFD Sender: No OFD packet to send [10:29:46]accept exits with 9 [10:29:46]New connection [10:29:46]New thread 3066965348 created [10:29:46]Thread 3066821988 joined [10:29:46]Waiting for new connection... [10:29:46] Sock 9.Parse request [10:29:46]Sock 9.Check first char [10:29:46]Sock 9.First char is OK [10:29:46]request: POST /json_proto HTTP/1.0 [10:29:46]Method: POST [10:29:46]URL: /json_proto [10:29:46]Method is POST - this is cgi request [10:29:46]url: /json_proto [10:29:46]query_string will be loaded in cgi processing [10:29:46]execute_cgi json_proto POST (null) [10:29:46]execute_cgi path=json_proto method=POST [10:29:46]POST find Content-Length [10:29:46]Host: 172.17.44.195:8080 [10:29:46]Content-Length: 678 [10:29:46]Content-Type: application/json [10:29:46] [10:29:46]POST finish read [10:29:46]Found Content-Length = 678 [10:29:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962822", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:46]execute_script... [10:29: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)1962822", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:46]POST & json_proto [10:29:46]process_json_proto [10:29:46]json parsed OK: [10:29:46]protocol is kg_v1.0 [10:29:46]action value=close_receipt [10:29:46]process_action close_receipt [10:29:46]cmd_close_receipt [10:29:46]MH_GetDate [10:29:46]Write to MH i2c: F0 00 00 19 4B 53 [10:29:46]Write i2c OK [10:29:46]MH_I2C_Read... [10:29:46]Read from MH i2c: F0 [10:29:46]MH_I2C_Read... [10:29:46]Read from MH i2c: F0 09 00 [10:29:46]MH_I2C_Read... [10:29:46]Read from MH i2c: F0 09 00 19 4B 00 9E DB 14 67 82 C9 CF 66 D0 [10:29:46]GetLastDocTimeStamp 1729420164 [10:29:46]current date 1729420190 [10:29:46]FM_GetShiftState [10:29:46]SAM_PROTO_GetShiftState [10:29:46]wFMCommunicate request_size=4 [10:29:46]MH_SAM_APDU [10:29:46]CAPDU: 80 13 01 00 [10:29:46]Write to MH i2c: E2 08 00 1A 4B 80 13 01 00 00 00 00 00 E2 [10:29:46]Write i2c OK [10:29:46]MH_I2C_Read... [10:29:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:46]Read from MH i2c: E2 [10:29:46]MH_I2C_Read... [10:29:46]Read from MH i2c: E2 0E 00 [10:29:46]MH_I2C_Read... [10:29:46]Read from MH i2c: E2 0E 00 1A 4B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 FC [10:29:46]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:29:46]wFMCommunicate OK [10:29:46]SAM_PROTO_GetShiftState done [10:29:46]FM_GetShiftState done [10:29:46]opened in 1729383750 [10:29:46]opened+sec_in_day 1729470150 [10:29:46]quantity*price = 50041 [10:29:46]sum+1 = 50042 [10:29:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 185 20.10.2024 10:29 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227337 ФПД: 228315470839712 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T102950&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227337&fm=228315470839712&tin=02508201610067®Number=0000000000091685&sum=50000 [10:29:47]StoreToDocumentArchive [10:29:47]shift 533 fd 227337 [10:29:47]save to /storage/0533/doc_00227337 [10:29:47]save last doc name /storage/0533/doc_00227337 to /storage/kkm_last_doc_name [10:29:47]save OK [10:29:47]Clear old archive folders... [10:29:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:29:47]tlvbuf is 005130B0 [10:29:47]SAM_PROTO_ClearQueue [10:29:47]wFMCommunicate request_size=4 [10:29:47]MH_SAM_APDU [10:29:47]CAPDU: 80 09 00 00 [10:29:47]Write to MH i2c: E2 08 00 27 4B 80 09 00 00 00 00 00 00 E4 [10:29:47]Write i2c OK [10:29:47]MH_I2C_Read... [10:29:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:29:47]Read from MH i2c: E2 [10:29:47]MH_I2C_Read... [10:29:47]Read from MH i2c: E2 03 00 [10:29:47]MH_I2C_Read... [10:29:47]Read from MH i2c: E2 03 00 27 4B 00 90 00 E6 [10:29:47]RAPDU: 90 00 [10:29:47]wFMCommunicate OK [10:29:47]SAM_PROTO_ClearQueue done [10:29:47]KKMCreateOFDPacket [10:29:47]OFDProtocolAddRootSTLVToBuf [10:29:47]FM_MakeSignedData [10:29:47]FM_MakeSignedData [10:29:47]SAM_PROTO_SignData [10:29:47]wFMCommunicate request_size=4 [10:29:47]MH_SAM_APDU [10:29:47]CAPDU: 80 0D 01 02 [10:29:47]Write to MH i2c: E2 08 00 28 4B 80 0D 01 02 00 00 00 00 EC [10:29:47]Write i2c OK [10:29:47]MH_I2C_Read... [10:29:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:29:47]Read from MH i2c: E2 [10:29:47]MH_I2C_Read... [10:29:47]Read from MH i2c: E2 03 00 [10:29:47]MH_I2C_Read... [10:29:47]Read from MH i2c: E2 03 00 28 4B 00 90 00 E7 [10:29:47]RAPDU: 90 00 [10:29:47]wFMCommunicate OK [10:29:47]wFMCommunicate request_size=255 [10:29:47]MH_SAM_APDU [10:29:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 9E DB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 09 78 03 00 35 04 06 00 CF [10:29:47]Write to MH i2c: E2 02 01 29 4B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 9E DB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 09 78 03 00 35 04 06 00 CF 00 00 9A [10:29:47]Write i2c OK [10:29:47]MH_I2C_Read... [10:29:47]OFD Sender: No OFD packet to send [10:29:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:48]Read from MH i2c: E2 [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: E2 03 00 [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: E2 03 00 29 4B 00 90 00 E8 [10:29:48]RAPDU: 90 00 [10:29:48]wFMCommunicate OK [10:29:48]wFMCommunicate request_size=10 [10:29:48]MH_SAM_APDU [10:29:48]CAPDU: 80 0D 02 02 05 A6 D6 89 3F A0 [10:29:48]Write to MH i2c: E2 0D 00 2A 4B 80 0D 02 02 05 00 A6 D6 89 3F A0 00 00 DD [10:29:48]Write i2c OK [10:29:48]MH_I2C_Read... [10:29:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:48]Read from MH i2c: E2 [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: E2 03 00 [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: E2 03 00 2A 4B 00 90 00 E9 [10:29:48]RAPDU: 90 00 [10:29:48]wFMCommunicate OK [10:29:48]wFMCommunicate request_size=4 [10:29:48]MH_SAM_APDU [10:29:48]CAPDU: 80 0D 03 02 [10:29:48]Write to MH i2c: E2 08 00 2B 4B 80 0D 03 02 00 00 00 00 F1 [10:29:48]Write i2c OK [10:29:48]MH_I2C_Read... [10:29:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:29:48]Read from MH i2c: E2 [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: E2 0B 00 [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: E2 0B 00 2B 4B 00 6C 7F 39 A6 C8 97 44 C9 90 00 28 [10:29:48]RAPDU: 6C 7F 39 A6 C8 97 44 C9 90 00 [10:29:48]wFMCommunicate OK [10:29:48]SAM_PROTO_SignData done [10:29:48]FM_MakeSignedData done [10:29:48]CreateOFDProtocolMessage [10:29:48]wFMCommunicate request_size=4 [10:29:48]MH_SAM_APDU [10:29:48]CAPDU: 80 11 00 00 [10:29:48]Write to MH i2c: E2 08 00 2C 4B 80 11 00 00 00 00 00 00 F1 [10:29:48]Write i2c OK [10:29:48]MH_I2C_Read... [10:29:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:48]Read from MH i2c: E2 [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: E2 17 00 [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: E2 17 00 2C 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 48 [10:29:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:29:48]wFMCommunicate OK [10:29:48]CreateOFDProtocolMessage done [10:29:48]OFDSenderStorePacket 227337 [10:29:48]StoreOFDPacket docnum=227337 [10:29:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 46 7C 07 01 D7 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 9E DB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 09 78 03 00 35 04 06 00 CF A6 D6 89 3F A0 6C 7F 39 A6 C8 97 44 C9 [10:29:48]CheckFolder [10:29:48]dirname=/storage/ofd_packets [10:29:48]CheckFolder done [10:29:48]ProducePacketName [10:29:48]name=ofd_packets/00227337 [10:29:48]NVStorageSaveData ofd_packets/00227337 [10:29:48]File name is /storage/ofd_packets/00227337 [10:29:48]Write 301 bytes [10:29:48]NVStorageSaveData done [10:29:48]OFDSenderStorePacket done [10:29:48]KKMCreateOFDPacket done [10:29:48]NVStorageSaveData kkm_last_timestamp [10:29:48]File name is /storage/kkm_last_timestamp [10:29:48]Write 4 bytes [10:29:48]NVStorageSaveData done [10:29:48]ExternCall_PrintAddStr [10:29:48]wPrintStart [10:29:48]Write to MH i2c: 01 00 00 2D 4B 78 [10:29:48]Write i2c OK [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: 01 [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: 01 07 00 [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: 01 07 00 2D 4B 00 00 00 00 00 FF 0F 8D [10:29:48]RasterBufferAndPrint [10:29:48]line Счет N : (1)1962822 [10:29:48]line ИНН: 02508201610067 [10:29:48]line Контрольно-Кассовый Чек [10:29:48]line ПРОДАЖА [10:29:48]line ТРК (МРК, ГНК) : 63 [10:29:48]line Товар: 2710124130 [10:29:48]line Аи-92-К-5 [10:29:48]line 7.480 * 66.90 [10:29:48]line = 500.41 [10:29:48]line НДС 12% НСП 1% [10:29:48]line > о реализуемом товаре [10:29:48]line ОКРУГЛЕНИЕ: -0.41 [10:29:48]line ИТОГО: 500.00 [10:29:48]line Внесено: 500.00 [10:29:48]line СДАЧА: 0.00 [10:29:48]line НСП 1% : 4.43 [10:29:48]line НДС 12% : 53.14 [10:29:48]line Наличными: 500.00 [10:29:48]line Безнал.: 0.00 [10:29:48]line Место: АЗС № 133 "Партнер Нефть" [10:29:48]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:29:48]line СНО: Общий режим [10:29:48]line Чек 185 20.10.2024 10:29 [10:29:48]line Смена: 533 ФФД: 1.0 [10:29:48]line ЗНМ: 0300000091 [10:29:48]line РНМ: 0000000000091685 [10:29:48]line Версия ККМ: 001 [10:29:48]line ФМ: 0000000000871839 [10:29:48]line ФД: 227337 [10:29:48]line ФПД: 228315470839712 [10:29:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T102950&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227337&fm=228315470839712&tin=02508201610067®Number=0000000000091685&sum=50000 [10:29:48]OFD Sender: Processing packet 227337 [packets to send 38, broken 37] [10:29:48]ProducePacketName [10:29:48]name=ofd_packets/00227337 [10:29:48]OFD Sender: To server: pG, [10:29:48]CommunicateWithHost lk.salyk.kg:30040 [10:29:48]ConnectInit lk.salyk.kg [10:29:48]written 0, free lines is 4095 [10:29:48]Connected sock=10 [10:29: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 33 39 0F 01 00 00 46 7C 07 01 D7 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 9E DB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 09 78 03 00 35 04 06 00 CF A6 D6 89 3F A0 6C 7F 39 A6 C8 97 44 C9 [10:29: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 33 39 4F 00 00 00 2A 04 47 00 17 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 33 39 10 04 04 00 09 78 03 00 F4 03 04 00 9E 86 14 67 B6 04 01 00 00 04 35 EB 03 DA 8A 48 CB [10:29:48]CommunicateWithHost err = 0 [10:29:48]CheckOFDResponse [10:29:48]1017 (14) - 77093643461234 [10:29:48]1041 (16) - 0000000000871839 [10:29:48]1040 (4) - 227337 [10:29:48]1012 (4) - 20.10.2024 04:27 [10:29:48]1206 (1) - 0 [10:29:48]OFD Sender: Remove packet 227337 [10:29:48]ProducePacketName [10:29:48]name=ofd_packets/00227337 [10:29:48]NVStorageDeleteData [10:29:48]Write to MH i2c: 01 00 00 57 4B A2 [10:29:48]Write i2c OK [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: 01 [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: 01 07 00 [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: 01 07 00 57 4B 00 00 00 00 00 13 0D C9 [10:29:48]RasterBufferAndPrint [10:29:48]line [10:29:48]line [10:29:48]line [10:29:48]line [10:29:48]line [10:29:48]written 0, free lines is 3353 [10:29:49]process_action close_receipt done [10:29:49]requested_data is exist [10:29:49]produce_requested_data [10:29:49]requested_item fm.sn is exist - process it [10:29:49]wFMCommunicate request_size=4 [10:29:49]MH_SAM_APDU [10:29:49]CAPDU: 80 11 00 00 [10:29:49]Write to MH i2c: E2 08 00 5E 4B 80 11 00 00 00 00 00 00 23 [10:29:49]Write i2c OK [10:29:49]MH_I2C_Read... [10:29:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:49]Read from MH i2c: E2 [10:29:49]MH_I2C_Read... [10:29:49]Read from MH i2c: E2 17 00 [10:29:49]MH_I2C_Read... [10:29:49]Read from MH i2c: E2 17 00 5E 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 7A [10:29:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:29:49]wFMCommunicate OK [10:29:49]requested_item fd.num is exist - process it [10:29:49]SAM_PROTO_GetFieldsCounters [10:29:49]wFMCommunicate request_size=4 [10:29:49]MH_SAM_APDU [10:29:49]CAPDU: 80 13 00 00 [10:29:49]Write to MH i2c: E2 08 00 5F 4B 80 13 00 00 00 00 00 00 26 [10:29:49]Write i2c OK [10:29:49]MH_I2C_Read... [10:29:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:29:49]Read from MH i2c: E2 [10:29:49]MH_I2C_Read... [10:29:49]Read from MH i2c: E2 62 00 [10:29:49]MH_I2C_Read... [10:29:49]Read from MH i2c: E2 62 00 5F 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 09 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [10:29: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 09 78 03 00 0E 04 04 00 15 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 [10:29:49]wFMCommunicate OK [10:29:49]SAM_PROTO_GetFieldsCounters done [10:29:49]requested_item shift.num is exist - process it [10:29:49]requested_item shift.opened is exist - process it [10:29:49]req_shift_opened [10:29:49]FM_GetShiftState [10:29:49]SAM_PROTO_GetShiftState [10:29:49]wFMCommunicate request_size=4 [10:29:49]MH_SAM_APDU [10:29:49]CAPDU: 80 13 01 00 [10:29:49]Write to MH i2c: E2 08 00 60 4B 80 13 01 00 00 00 00 00 28 [10:29:49]Write i2c OK [10:29:49]MH_I2C_Read... [10:29:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:49]Read from MH i2c: E2 [10:29:49]MH_I2C_Read... [10:29:49]Read from MH i2c: E2 0E 00 [10:29:49]MH_I2C_Read... [10:29:49]Read from MH i2c: E2 0E 00 60 4B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 42 [10:29:49]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:29:49]wFMCommunicate OK [10:29:49]SAM_PROTO_GetShiftState done [10:29:49]FM_GetShiftState done [10:29:49]req_shift_opened done [10:29:49]requested_item shift.open_date is exist - process it [10:29:49]req_shift_open_date [10:29:49]req_shift_open_date done [10:29:49]produce_requested_data done [10:29:49]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227337,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [10:29:49]process_action_free close_receipt [10:29:49]json_value_free [10:29:49]json_value_free done [10:29:49]process_json_proto returns [10:29:49]Send response to host [10:29:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227337,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [10:29:49]free response buf [10:29:49]execute_script done [10:29:49]execute_script returns [10:29:49]free content buf [10:29:49]Sock 9.Close socket [10:29:49]Sock 9.Thread stoped [10:29:49]OFD Sender: No OFD packet to send [10:29:54]OFD Sender: No OFD packet to send [10:29:59]OFD Sender: No OFD packet to send [10:30:04]OFD Sender: No OFD packet to send [10:30:09]OFD Sender: No OFD packet to send [10:30:14]OFD Sender: No OFD packet to send [10:30:19]OFD Sender: No OFD packet to send [10:30:24]OFD Sender: No OFD packet to send [10:30:29]OFD Sender: No OFD packet to send [10:30:34]OFD Sender: No OFD packet to send [10:30:39]OFD Sender: No OFD packet to send [10:30:44]OFD Sender: No OFD packet to send [10:30:49]OFD Sender: No OFD packet to send [10:30:54]OFD Sender: No OFD packet to send [10:30:59]OFD Sender: No OFD packet to send [10:31:04]OFD Sender: No OFD packet to send [10:31:09]OFD Sender: No OFD packet to send [10:31:14]OFD Sender: No OFD packet to send [10:31:19]OFD Sender: No OFD packet to send [10:31:24]OFD Sender: No OFD packet to send [10:31:29]OFD Sender: No OFD packet to send [10:31:34]OFD Sender: No OFD packet to send [10:31:35]accept exits with 8 [10:31:35]New connection [10:31:35]New thread 3066821988 created [10:31:35]Thread 3066965348 joined [10:31:35]Waiting for new connection... [10:31:35] Sock 8.Parse request [10:31:35]Sock 8.Check first char [10:31:35]Sock 8.First char is OK [10:31:35]request: POST /json_proto HTTP/1.0 [10:31:35]Method: POST [10:31:35]URL: /json_proto [10:31:35]Method is POST - this is cgi request [10:31:35]url: /json_proto [10:31:35]query_string will be loaded in cgi processing [10:31:35]execute_cgi json_proto POST (null) [10:31:35]execute_cgi path=json_proto method=POST [10:31:35]POST find Content-Length [10:31:35]Host: 172.17.44.195:8080 [10:31:35]Content-Length: 678 [10:31:35]Content-Type: application/json [10:31:35] [10:31:35]POST finish read [10:31:35]Found Content-Length = 678 [10:31:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962823", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "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:31:35]execute_script... [10:31:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962823", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "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:31:35]POST & json_proto [10:31:35]process_json_proto [10:31:35]json parsed OK: [10:31:35]protocol is kg_v1.0 [10:31:35]action value=close_receipt [10:31:35]process_action close_receipt [10:31:35]cmd_close_receipt [10:31:35]MH_GetDate [10:31:35]Write to MH i2c: F0 00 00 61 4B 9B [10:31:35]Write i2c OK [10:31:35]MH_I2C_Read... [10:31:35]Read from MH i2c: F0 [10:31:35]MH_I2C_Read... [10:31:35]Read from MH i2c: F0 09 00 [10:31:35]MH_I2C_Read... [10:31:35]Read from MH i2c: F0 09 00 61 4B 00 0B DC 14 67 82 C9 CF 66 86 [10:31:35]GetLastDocTimeStamp 1729420190 [10:31:35]current date 1729420299 [10:31:35]FM_GetShiftState [10:31:35]SAM_PROTO_GetShiftState [10:31:35]wFMCommunicate request_size=4 [10:31:35]MH_SAM_APDU [10:31:35]CAPDU: 80 13 01 00 [10:31:35]Write to MH i2c: E2 08 00 62 4B 80 13 01 00 00 00 00 00 2A [10:31:35]Write i2c OK [10:31:35]MH_I2C_Read... [10:31:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:35]Read from MH i2c: E2 [10:31:35]MH_I2C_Read... [10:31:35]Read from MH i2c: E2 0E 00 [10:31:35]MH_I2C_Read... [10:31:35]Read from MH i2c: E2 0E 00 62 4B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 44 [10:31:35]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:31:35]wFMCommunicate OK [10:31:35]SAM_PROTO_GetShiftState done [10:31:35]FM_GetShiftState done [10:31:35]opened in 1729383750 [10:31:35]opened+sec_in_day 1729470150 [10:31:35]quantity*price = 60027 [10:31:35]sum+1 = 60029 [10:31:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 186 20.10.2024 10:31 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227338 ФПД: 34576111835583 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T103139&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227338&fm=34576111835583&tin=02508201610067®Number=0000000000091685&sum=60000 [10:31:36]StoreToDocumentArchive [10:31:36]shift 533 fd 227338 [10:31:36]save to /storage/0533/doc_00227338 [10:31:36]save last doc name /storage/0533/doc_00227338 to /storage/kkm_last_doc_name [10:31:36]save OK [10:31:36]Clear old archive folders... [10:31:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:31:36]tlvbuf is 004E84C0 [10:31:36]SAM_PROTO_ClearQueue [10:31:36]wFMCommunicate request_size=4 [10:31:36]MH_SAM_APDU [10:31:36]CAPDU: 80 09 00 00 [10:31:36]Write to MH i2c: E2 08 00 6F 4B 80 09 00 00 00 00 00 00 2C [10:31:36]Write i2c OK [10:31:36]MH_I2C_Read... [10:31:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:31:36]Read from MH i2c: E2 [10:31:36]MH_I2C_Read... [10:31:36]Read from MH i2c: E2 03 00 [10:31:36]MH_I2C_Read... [10:31:36]Read from MH i2c: E2 03 00 6F 4B 00 90 00 2E [10:31:36]RAPDU: 90 00 [10:31:36]wFMCommunicate OK [10:31:36]SAM_PROTO_ClearQueue done [10:31:36]KKMCreateOFDPacket [10:31:36]OFDProtocolAddRootSTLVToBuf [10:31:36]FM_MakeSignedData [10:31:36]FM_MakeSignedData [10:31:36]SAM_PROTO_SignData [10:31:36]wFMCommunicate request_size=4 [10:31:36]MH_SAM_APDU [10:31:36]CAPDU: 80 0D 01 02 [10:31:36]Write to MH i2c: E2 08 00 70 4B 80 0D 01 02 00 00 00 00 34 [10:31:36]Write i2c OK [10:31:36]MH_I2C_Read... [10:31:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:31:36]Read from MH i2c: E2 [10:31:36]MH_I2C_Read... [10:31:36]Read from MH i2c: E2 03 00 [10:31:36]MH_I2C_Read... [10:31:36]Read from MH i2c: E2 03 00 70 4B 00 90 00 2F [10:31:36]RAPDU: 90 00 [10:31:36]wFMCommunicate OK [10:31:36]wFMCommunicate request_size=255 [10:31:36]MH_SAM_APDU [10:31:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 BA 00 00 00 F4 03 04 00 0B DC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0A 78 03 00 35 04 06 00 1F [10:31:36]Write to MH i2c: E2 02 01 71 4B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 BA 00 00 00 F4 03 04 00 0B DC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0A 78 03 00 35 04 06 00 1F 00 00 00 [10:31:36]Write i2c OK [10:31:36]MH_I2C_Read... [10:31:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:36]Read from MH i2c: E2 [10:31:36]MH_I2C_Read... [10:31:36]Read from MH i2c: E2 03 00 [10:31:36]MH_I2C_Read... [10:31:36]Read from MH i2c: E2 03 00 71 4B 00 90 00 30 [10:31:36]RAPDU: 90 00 [10:31:36]wFMCommunicate OK [10:31:36]wFMCommunicate request_size=10 [10:31:36]MH_SAM_APDU [10:31:36]CAPDU: 80 0D 02 02 05 72 60 DD 19 BF [10:31:36]Write to MH i2c: E2 0D 00 72 4B 80 0D 02 02 05 00 72 60 DD 19 BF 00 00 C8 [10:31:36]Write i2c OK [10:31:36]MH_I2C_Read... [10:31:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:36]Read from MH i2c: E2 [10:31:36]MH_I2C_Read... [10:31:36]Read from MH i2c: E2 03 00 [10:31:36]MH_I2C_Read... [10:31:36]Read from MH i2c: E2 03 00 72 4B 00 90 00 31 [10:31:36]RAPDU: 90 00 [10:31:36]wFMCommunicate OK [10:31:36]wFMCommunicate request_size=4 [10:31:36]MH_SAM_APDU [10:31:36]CAPDU: 80 0D 03 02 [10:31:36]Write to MH i2c: E2 08 00 73 4B 80 0D 03 02 00 00 00 00 39 [10:31:36]Write i2c OK [10:31:36]MH_I2C_Read... [10:31:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:31:36]Read from MH i2c: E2 [10:31:36]MH_I2C_Read... [10:31:36]Read from MH i2c: E2 0B 00 [10:31:36]MH_I2C_Read... [10:31:36]Read from MH i2c: E2 0B 00 73 4B 00 36 CB 17 6D AB 5C AE 96 90 00 0A [10:31:36]RAPDU: 36 CB 17 6D AB 5C AE 96 90 00 [10:31:36]wFMCommunicate OK [10:31:36]SAM_PROTO_SignData done [10:31:36]FM_MakeSignedData done [10:31:36]CreateOFDProtocolMessage [10:31:36]wFMCommunicate request_size=4 [10:31:36]MH_SAM_APDU [10:31:36]CAPDU: 80 11 00 00 [10:31:36]Write to MH i2c: E2 08 00 74 4B 80 11 00 00 00 00 00 00 39 [10:31:36]Write i2c OK [10:31:36]MH_I2C_Read... [10:31:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:36]Read from MH i2c: E2 [10:31:36]MH_I2C_Read... [10:31:36]Read from MH i2c: E2 17 00 [10:31:36]MH_I2C_Read... [10:31:36]Read from MH i2c: E2 17 00 74 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 90 [10:31:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:31:36]wFMCommunicate OK [10:31:36]CreateOFDProtocolMessage done [10:31:36]OFDSenderStorePacket 227338 [10:31:36]StoreOFDPacket docnum=227338 [10:31:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 42 21 07 01 00 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 BA 00 00 00 F4 03 04 00 0B DC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0A 78 03 00 35 04 06 00 1F 72 60 DD 19 BF 36 CB 17 6D AB 5C AE 96 [10:31:36]CheckFolder [10:31:36]dirname=/storage/ofd_packets [10:31:36]CheckFolder done [10:31:36]ProducePacketName [10:31:36]name=ofd_packets/00227338 [10:31:36]NVStorageSaveData ofd_packets/00227338 [10:31:36]File name is /storage/ofd_packets/00227338 [10:31:36]Write 301 bytes [10:31:36]NVStorageSaveData done [10:31:36]OFDSenderStorePacket done [10:31:36]KKMCreateOFDPacket done [10:31:36]NVStorageSaveData kkm_last_timestamp [10:31:36]File name is /storage/kkm_last_timestamp [10:31:36]Write 4 bytes [10:31:36]NVStorageSaveData done [10:31:36]ExternCall_PrintAddStr [10:31:36]wPrintStart [10:31:36]Write to MH i2c: 01 00 00 75 4B C0 [10:31:36]Write i2c OK [10:31:36]MH_I2C_Read... [10:31:36]Read from MH i2c: 01 [10:31:36]MH_I2C_Read... [10:31:36]Read from MH i2c: 01 07 00 [10:31:36]MH_I2C_Read... [10:31:36]Read from MH i2c: 01 07 00 75 4B 00 00 00 00 00 FF 0F D5 [10:31:36]RasterBufferAndPrint [10:31:36]line Счет N : (1)1962823 [10:31:36]line ИНН: 02508201610067 [10:31:36]line Контрольно-Кассовый Чек [10:31:36]line ПРОДАЖА [10:31:36]line ТРК (МРК, ГНК) : 34 [10:31:36]line Товар: 2710124500 [10:31:36]line Аи-95-К-5 [10:31:36]line 8.090 * 74.20 [10:31:36]line = 600.28 [10:31:36]line НДС 12% НСП 1% [10:31:36]line > о реализуемом товаре [10:31:36]line ОКРУГЛЕНИЕ: -0.28 [10:31:36]line ИТОГО: 600.00 [10:31:36]line Внесено: 600.00 [10:31:36]line СДАЧА: 0.00 [10:31:36]line НСП 1% : 5.31 [10:31:36]line НДС 12% : 63.75 [10:31:36]line Наличными: 600.00 [10:31:36]line Безнал.: 0.00 [10:31:36]line Место: АЗС № 133 "Партнер Нефть" [10:31:36]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:31:36]line СНО: Общий режим [10:31:36]line Чек 186 20.10.2024 10:31 [10:31:36]line Смена: 533 ФФД: 1.0 [10:31:36]line ЗНМ: 0300000091 [10:31:36]line РНМ: 0000000000091685 [10:31:36]line Версия ККМ: 001 [10:31:36]line ФМ: 0000000000871839 [10:31:36]line ФД: 227338 [10:31:36]line ФПД: 34576111835583 [10:31:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T103139&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227338&fm=34576111835583&tin=02508201610067®Number=0000000000091685&sum=60000 [10:31:36]written 0, free lines is 4095 [10:31:37]OFD Sender: Processing packet 227338 [packets to send 38, broken 37] [10:31:37]ProducePacketName [10:31:37]name=ofd_packets/00227338 [10:31:37]OFD Sender: To server: pG, [10:31:37]CommunicateWithHost lk.salyk.kg:30040 [10:31:37]ConnectInit lk.salyk.kg [10:31:37]Connected sock=10 [10:31:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 42 21 07 01 00 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 BA 00 00 00 F4 03 04 00 0B DC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0A 78 03 00 35 04 06 00 1F 72 60 DD 19 BF 36 CB 17 6D AB 5C AE 96 [10:31:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 28 93 47 00 0A 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0A 78 03 00 F4 03 04 00 0A 87 14 67 B6 04 01 00 00 1B 42 E9 DA 08 6C 71 18 [10:31:37]CommunicateWithHost err = 0 [10:31:37]CheckOFDResponse [10:31:37]1017 (14) - 77093643461234 [10:31:37]1041 (16) - 0000000000871839 [10:31:37]1040 (4) - 227338 [10:31:37]1012 (4) - 20.10.2024 04:28 [10:31:37]1206 (1) - 0 [10:31:37]OFD Sender: Remove packet 227338 [10:31:37]ProducePacketName [10:31:37]name=ofd_packets/00227338 [10:31:37]NVStorageDeleteData [10:31:37]Write to MH i2c: 01 00 00 9F 4B EA [10:31:37]Write i2c OK [10:31:37]MH_I2C_Read... [10:31:37]Read from MH i2c: 01 [10:31:37]MH_I2C_Read... [10:31:37]Read from MH i2c: 01 07 00 [10:31:37]MH_I2C_Read... [10:31:37]Read from MH i2c: 01 07 00 9F 4B 00 00 00 00 00 14 0D 12 [10:31:37]RasterBufferAndPrint [10:31:37]line [10:31:37]line [10:31:37]line [10:31:37]line [10:31:37]line [10:31:37]written 0, free lines is 3354 [10:31:37]process_action close_receipt done [10:31:37]requested_data is exist [10:31:37]produce_requested_data [10:31:37]requested_item fm.sn is exist - process it [10:31:37]wFMCommunicate request_size=4 [10:31:37]MH_SAM_APDU [10:31:37]CAPDU: 80 11 00 00 [10:31:37]Write to MH i2c: E2 08 00 A6 4B 80 11 00 00 00 00 00 00 6B [10:31:37]Write i2c OK [10:31:37]MH_I2C_Read... [10:31:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:37]Read from MH i2c: E2 [10:31:37]MH_I2C_Read... [10:31:37]Read from MH i2c: E2 17 00 [10:31:37]MH_I2C_Read... [10:31:37]Read from MH i2c: E2 17 00 A6 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C2 [10:31:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:31:37]wFMCommunicate OK [10:31:37]requested_item fd.num is exist - process it [10:31:37]SAM_PROTO_GetFieldsCounters [10:31:37]wFMCommunicate request_size=4 [10:31:37]MH_SAM_APDU [10:31:37]CAPDU: 80 13 00 00 [10:31:37]Write to MH i2c: E2 08 00 A7 4B 80 13 00 00 00 00 00 00 6E [10:31:37]Write i2c OK [10:31:37]MH_I2C_Read... [10:31:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:31:37]Read from MH i2c: E2 [10:31:37]MH_I2C_Read... [10:31:37]Read from MH i2c: E2 62 00 [10:31:37]MH_I2C_Read... [10:31:37]Read from MH i2c: E2 62 00 A7 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 0A 78 03 00 0E 04 04 00 15 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 61 [10:31: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 0A 78 03 00 0E 04 04 00 15 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 [10:31:37]wFMCommunicate OK [10:31:37]SAM_PROTO_GetFieldsCounters done [10:31:37]requested_item shift.num is exist - process it [10:31:37]requested_item shift.opened is exist - process it [10:31:37]req_shift_opened [10:31:37]FM_GetShiftState [10:31:37]SAM_PROTO_GetShiftState [10:31:37]wFMCommunicate request_size=4 [10:31:37]MH_SAM_APDU [10:31:37]CAPDU: 80 13 01 00 [10:31:37]Write to MH i2c: E2 08 00 A8 4B 80 13 01 00 00 00 00 00 70 [10:31:37]Write i2c OK [10:31:37]MH_I2C_Read... [10:31:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:37]Read from MH i2c: E2 [10:31:37]MH_I2C_Read... [10:31:37]Read from MH i2c: E2 0E 00 [10:31:37]MH_I2C_Read... [10:31:37]Read from MH i2c: E2 0E 00 A8 4B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 8A [10:31:37]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:31:37]wFMCommunicate OK [10:31:37]SAM_PROTO_GetShiftState done [10:31:37]FM_GetShiftState done [10:31:37]req_shift_opened done [10:31:37]requested_item shift.open_date is exist - process it [10:31:37]req_shift_open_date [10:31:37]req_shift_open_date done [10:31:37]produce_requested_data done [10:31:37]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227338,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [10:31:37]process_action_free close_receipt [10:31:37]json_value_free [10:31:37]json_value_free done [10:31:37]process_json_proto returns [10:31:37]Send response to host [10:31:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227338,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [10:31:37]free response buf [10:31:37]execute_script done [10:31:37]execute_script returns [10:31:37]free content buf [10:31:37]Sock 8.Close socket [10:31:37]Sock 8.Thread stoped [10:31:37]OFD Sender: No OFD packet to send [10:31:42]OFD Sender: No OFD packet to send [10:31:47]OFD Sender: No OFD packet to send [10:31:52]OFD Sender: No OFD packet to send [10:31:57]OFD Sender: No OFD packet to send [10:32:02]accept exits with 9 [10:32:02]New connection [10:32:02]New thread 3066965348 created [10:32:02]Thread 3066821988 joined [10:32:02]Waiting for new connection... [10:32:02] Sock 9.Parse request [10:32:02]Sock 9.Check first char [10:32:02]Sock 9.First char is OK [10:32:02]request: POST /json_proto HTTP/1.0 [10:32:02]Method: POST [10:32:02]URL: /json_proto [10:32:02]Method is POST - this is cgi request [10:32:02]url: /json_proto [10:32:02]query_string will be loaded in cgi processing [10:32:02]execute_cgi json_proto POST (null) [10:32:02]execute_cgi path=json_proto method=POST [10:32:02]POST find Content-Length [10:32:02]Host: 172.17.44.195:8080 [10:32:02]Content-Length: 678 [10:32:02]Content-Type: application/json [10:32:02] [10:32:02]POST finish read [10:32:02]Found Content-Length = 678 [10:32:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962825", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:02]execute_script... [10:32: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)1962825", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:02]POST & json_proto [10:32:02]process_json_proto [10:32:02]json parsed OK: [10:32:02]protocol is kg_v1.0 [10:32:02]action value=close_receipt [10:32:02]process_action close_receipt [10:32:02]cmd_close_receipt [10:32:02]MH_GetDate [10:32:02]Write to MH i2c: F0 00 00 A9 4B E3 [10:32:02]Write i2c OK [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: F0 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: F0 09 00 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: F0 09 00 A9 4B 00 27 DC 14 67 82 C9 CF 66 EA [10:32:02]GetLastDocTimeStamp 1729420299 [10:32:02]current date 1729420327 [10:32:02]FM_GetShiftState [10:32:02]SAM_PROTO_GetShiftState [10:32:02]wFMCommunicate request_size=4 [10:32:02]MH_SAM_APDU [10:32:02]CAPDU: 80 13 01 00 [10:32:02]Write to MH i2c: E2 08 00 AA 4B 80 13 01 00 00 00 00 00 72 [10:32:02]Write i2c OK [10:32:02]MH_I2C_Read... [10:32:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:02]Read from MH i2c: E2 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 0E 00 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 0E 00 AA 4B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 8C [10:32:02]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:32:02]wFMCommunicate OK [10:32:02]SAM_PROTO_GetShiftState done [10:32:02]FM_GetShiftState done [10:32:02]opened in 1729383750 [10:32:02]opened+sec_in_day 1729470150 [10:32:02]quantity*price = 50041 [10:32:02]sum+1 = 50042 [10:32:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 187 20.10.2024 10:32 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227339 ФПД: 197799864679561 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T103207&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227339&fm=197799864679561&tin=02508201610067®Number=0000000000091685&sum=50000 [10:32:03]StoreToDocumentArchive [10:32:03]shift 533 fd 227339 [10:32:03]save to /storage/0533/doc_00227339 [10:32:03]save last doc name /storage/0533/doc_00227339 to /storage/kkm_last_doc_name [10:32:03]save OK [10:32:03]Clear old archive folders... [10:32:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:32:03]tlvbuf is 00633A90 [10:32:03]SAM_PROTO_ClearQueue [10:32:03]wFMCommunicate request_size=4 [10:32:03]MH_SAM_APDU [10:32:03]CAPDU: 80 09 00 00 [10:32:03]Write to MH i2c: E2 08 00 B7 4B 80 09 00 00 00 00 00 00 74 [10:32:03]Write i2c OK [10:32:03]MH_I2C_Read... [10:32:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:32:03]Read from MH i2c: E2 [10:32:03]MH_I2C_Read... [10:32:03]Read from MH i2c: E2 03 00 [10:32:03]MH_I2C_Read... [10:32:03]Read from MH i2c: E2 03 00 B7 4B 00 90 00 76 [10:32:03]RAPDU: 90 00 [10:32:03]wFMCommunicate OK [10:32:03]SAM_PROTO_ClearQueue done [10:32:03]KKMCreateOFDPacket [10:32:03]OFDProtocolAddRootSTLVToBuf [10:32:03]FM_MakeSignedData [10:32:03]FM_MakeSignedData [10:32:03]SAM_PROTO_SignData [10:32:03]wFMCommunicate request_size=4 [10:32:03]MH_SAM_APDU [10:32:03]CAPDU: 80 0D 01 02 [10:32:03]Write to MH i2c: E2 08 00 B8 4B 80 0D 01 02 00 00 00 00 7C [10:32:03]Write i2c OK [10:32:03]MH_I2C_Read... [10:32:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:32:04]Read from MH i2c: E2 [10:32:04]MH_I2C_Read... [10:32:04]Read from MH i2c: E2 03 00 [10:32:04]MH_I2C_Read... [10:32:04]Read from MH i2c: E2 03 00 B8 4B 00 90 00 77 [10:32:04]RAPDU: 90 00 [10:32:04]wFMCommunicate OK [10:32:04]wFMCommunicate request_size=255 [10:32:04]MH_SAM_APDU [10:32:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 27 DC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0B 78 03 00 35 04 06 00 B3 [10:32:04]Write to MH i2c: E2 02 01 B9 4B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 27 DC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0B 78 03 00 35 04 06 00 B3 00 00 9C [10:32:04]Write i2c OK [10:32:04]MH_I2C_Read... [10:32:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:04]Read from MH i2c: E2 [10:32:04]MH_I2C_Read... [10:32:04]Read from MH i2c: E2 03 00 [10:32:04]MH_I2C_Read... [10:32:04]Read from MH i2c: E2 03 00 B9 4B 00 90 00 78 [10:32:04]RAPDU: 90 00 [10:32:04]wFMCommunicate OK [10:32:04]wFMCommunicate request_size=10 [10:32:04]MH_SAM_APDU [10:32:04]CAPDU: 80 0D 02 02 05 E5 DE AB BC 89 [10:32:04]Write to MH i2c: E2 0D 00 BA 4B 80 0D 02 02 05 00 E5 DE AB BC 89 00 00 3C [10:32:04]Write i2c OK [10:32:04]MH_I2C_Read... [10:32:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:04]Read from MH i2c: E2 [10:32:04]MH_I2C_Read... [10:32:04]Read from MH i2c: E2 03 00 [10:32:04]MH_I2C_Read... [10:32:04]Read from MH i2c: E2 03 00 BA 4B 00 90 00 79 [10:32:04]RAPDU: 90 00 [10:32:04]wFMCommunicate OK [10:32:04]wFMCommunicate request_size=4 [10:32:04]MH_SAM_APDU [10:32:04]CAPDU: 80 0D 03 02 [10:32:04]Write to MH i2c: E2 08 00 BB 4B 80 0D 03 02 00 00 00 00 81 [10:32:04]Write i2c OK [10:32:04]MH_I2C_Read... [10:32:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:32:04]Read from MH i2c: E2 [10:32:04]MH_I2C_Read... [10:32:04]Read from MH i2c: E2 0B 00 [10:32:04]MH_I2C_Read... [10:32:04]Read from MH i2c: E2 0B 00 BB 4B 00 AA 5C B4 29 3F DC 7F E8 90 00 E7 [10:32:04]RAPDU: AA 5C B4 29 3F DC 7F E8 90 00 [10:32:04]wFMCommunicate OK [10:32:04]SAM_PROTO_SignData done [10:32:04]FM_MakeSignedData done [10:32:04]CreateOFDProtocolMessage [10:32:04]wFMCommunicate request_size=4 [10:32:04]MH_SAM_APDU [10:32:04]CAPDU: 80 11 00 00 [10:32:04]Write to MH i2c: E2 08 00 BC 4B 80 11 00 00 00 00 00 00 81 [10:32:04]Write i2c OK [10:32:04]MH_I2C_Read... [10:32:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:04]Read from MH i2c: E2 [10:32:04]MH_I2C_Read... [10:32:04]Read from MH i2c: E2 17 00 [10:32:04]MH_I2C_Read... [10:32:04]Read from MH i2c: E2 17 00 BC 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D8 [10:32:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:32:04]wFMCommunicate OK [10:32:04]CreateOFDProtocolMessage done [10:32:04]OFDSenderStorePacket 227339 [10:32:04]StoreOFDPacket docnum=227339 [10:32:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 89 5D 07 01 AB B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 27 DC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0B 78 03 00 35 04 06 00 B3 E5 DE AB BC 89 AA 5C B4 29 3F DC 7F E8 [10:32:04]CheckFolder [10:32:04]dirname=/storage/ofd_packets [10:32:04]CheckFolder done [10:32:04]ProducePacketName [10:32:04]name=ofd_packets/00227339 [10:32:04]NVStorageSaveData ofd_packets/00227339 [10:32:04]File name is /storage/ofd_packets/00227339 [10:32:04]Write 301 bytes [10:32:04]NVStorageSaveData done [10:32:04]OFDSenderStorePacket done [10:32:04]KKMCreateOFDPacket done [10:32:04]NVStorageSaveData kkm_last_timestamp [10:32:04]File name is /storage/kkm_last_timestamp [10:32:04]Write 4 bytes [10:32:04]NVStorageSaveData done [10:32:04]ExternCall_PrintAddStr [10:32:04]wPrintStart [10:32:04]Write to MH i2c: 01 00 00 BD 4B 08 [10:32:04]Write i2c OK [10:32:04]MH_I2C_Read... [10:32:04]Read from MH i2c: 01 [10:32:04]MH_I2C_Read... [10:32:04]Read from MH i2c: 01 07 00 [10:32:04]MH_I2C_Read... [10:32:04]Read from MH i2c: 01 07 00 BD 4B 00 00 00 00 00 FF 0F 1D [10:32:04]RasterBufferAndPrint [10:32:04]line Счет N : (1)1962825 [10:32:04]line ИНН: 02508201610067 [10:32:04]line Контрольно-Кассовый Чек [10:32:04]line ПРОДАЖА [10:32:04]line ТРК (МРК, ГНК) : 63 [10:32:04]line Товар: 2710124130 [10:32:04]line Аи-92-К-5 [10:32:04]line 7.480 * 66.90 [10:32:04]line = 500.41 [10:32:04]line НДС 12% НСП 1% [10:32:04]line > о реализуемом товаре [10:32:04]line ОКРУГЛЕНИЕ: -0.41 [10:32:04]line ИТОГО: 500.00 [10:32:04]line Внесено: 500.00 [10:32:04]line СДАЧА: 0.00 [10:32:04]line НСП 1% : 4.43 [10:32:04]line НДС 12% : 53.14 [10:32:04]line Наличными: 500.00 [10:32:04]line Безнал.: 0.00 [10:32:04]line Место: АЗС № 133 "Партнер Нефть" [10:32:04]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:32:04]line СНО: Общий режим [10:32:04]line Чек 187 20.10.2024 10:32 [10:32:04]line Смена: 533 ФФД: 1.0 [10:32:04]line ЗНМ: 0300000091 [10:32:04]line РНМ: 0000000000091685 [10:32:04]line Версия ККМ: 001 [10:32:04]line ФМ: 0000000000871839 [10:32:04]line ФД: 227339 [10:32:04]line ФПД: 197799864679561 [10:32:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T103207&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227339&fm=197799864679561&tin=02508201610067®Number=0000000000091685&sum=50000 [10:32:04]written 0, free lines is 4095 [10:32:04]OFD Sender: Processing packet 227339 [packets to send 38, broken 37] [10:32:04]ProducePacketName [10:32:04]name=ofd_packets/00227339 [10:32:04]OFD Sender: To server: pG, [10:32:04]CommunicateWithHost lk.salyk.kg:30040 [10:32:04]ConnectInit lk.salyk.kg [10:32:04]Connected sock=10 [10:32: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 33 39 0F 01 00 00 89 5D 07 01 AB B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 27 DC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0B 78 03 00 35 04 06 00 B3 E5 DE AB BC 89 AA 5C B4 29 3F DC 7F E8 [10:32: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 33 39 4F 00 00 00 80 80 47 00 02 CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0B 78 03 00 F4 03 04 00 26 87 14 67 B6 04 01 00 00 17 EF A3 06 17 39 DD 57 [10:32:05]CommunicateWithHost err = 0 [10:32:05]CheckOFDResponse [10:32:05]1017 (14) - 77093643461234 [10:32:05]1041 (16) - 0000000000871839 [10:32:05]1040 (4) - 227339 [10:32:05]1012 (4) - 20.10.2024 04:29 [10:32:05]1206 (1) - 0 [10:32:05]OFD Sender: Remove packet 227339 [10:32:05]ProducePacketName [10:32:05]name=ofd_packets/00227339 [10:32:05]NVStorageDeleteData [10:32:05]Write to MH i2c: 01 00 00 E7 4B 32 [10:32:05]Write i2c OK [10:32:05]MH_I2C_Read... [10:32:05]Read from MH i2c: 01 [10:32:05]MH_I2C_Read... [10:32:05]Read from MH i2c: 01 07 00 [10:32:05]MH_I2C_Read... [10:32:05]Read from MH i2c: 01 07 00 E7 4B 00 00 00 00 00 04 0D 4A [10:32:05]RasterBufferAndPrint [10:32:05]line [10:32:05]line [10:32:05]line [10:32:05]line [10:32:05]line [10:32:05]written 0, free lines is 3338 [10:32:05]process_action close_receipt done [10:32:05]requested_data is exist [10:32:05]produce_requested_data [10:32:05]requested_item fm.sn is exist - process it [10:32:05]wFMCommunicate request_size=4 [10:32:05]MH_SAM_APDU [10:32:05]CAPDU: 80 11 00 00 [10:32:05]Write to MH i2c: E2 08 00 EE 4B 80 11 00 00 00 00 00 00 B3 [10:32:05]Write i2c OK [10:32:05]MH_I2C_Read... [10:32:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:05]Read from MH i2c: E2 [10:32:05]MH_I2C_Read... [10:32:05]Read from MH i2c: E2 17 00 [10:32:05]MH_I2C_Read... [10:32:05]Read from MH i2c: E2 17 00 EE 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 0A [10:32:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:32:05]wFMCommunicate OK [10:32:05]requested_item fd.num is exist - process it [10:32:05]SAM_PROTO_GetFieldsCounters [10:32:05]wFMCommunicate request_size=4 [10:32:05]MH_SAM_APDU [10:32:05]CAPDU: 80 13 00 00 [10:32:05]Write to MH i2c: E2 08 00 EF 4B 80 13 00 00 00 00 00 00 B6 [10:32:05]Write i2c OK [10:32:05]MH_I2C_Read... [10:32:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:32:05]Read from MH i2c: E2 [10:32:05]MH_I2C_Read... [10:32:05]Read from MH i2c: E2 62 00 [10:32:05]MH_I2C_Read... [10:32:05]Read from MH i2c: E2 62 00 EF 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 0B 78 03 00 0E 04 04 00 15 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 AD [10:32: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 0B 78 03 00 0E 04 04 00 15 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 [10:32:05]wFMCommunicate OK [10:32:05]SAM_PROTO_GetFieldsCounters done [10:32:05]requested_item shift.num is exist - process it [10:32:05]requested_item shift.opened is exist - process it [10:32:05]req_shift_opened [10:32:05]FM_GetShiftState [10:32:05]SAM_PROTO_GetShiftState [10:32:05]wFMCommunicate request_size=4 [10:32:05]MH_SAM_APDU [10:32:05]CAPDU: 80 13 01 00 [10:32:05]Write to MH i2c: E2 08 00 F0 4B 80 13 01 00 00 00 00 00 B8 [10:32:05]Write i2c OK [10:32:05]MH_I2C_Read... [10:32:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:05]Read from MH i2c: E2 [10:32:05]MH_I2C_Read... [10:32:05]Read from MH i2c: E2 0E 00 [10:32:05]MH_I2C_Read... [10:32:05]Read from MH i2c: E2 0E 00 F0 4B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 D2 [10:32:05]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:32:05]wFMCommunicate OK [10:32:05]SAM_PROTO_GetShiftState done [10:32:05]FM_GetShiftState done [10:32:05]req_shift_opened done [10:32:05]requested_item shift.open_date is exist - process it [10:32:05]req_shift_open_date [10:32:05]req_shift_open_date done [10:32:05]produce_requested_data done [10:32:05]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227339,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [10:32:05]process_action_free close_receipt [10:32:05]json_value_free [10:32:05]json_value_free done [10:32:05]process_json_proto returns [10:32:05]Send response to host [10:32:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227339,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [10:32:05]free response buf [10:32:05]execute_script done [10:32:05]execute_script returns [10:32:05]free content buf [10:32:05]Sock 9.Close socket [10:32:05]Sock 9.Thread stoped [10:32:05]OFD Sender: No OFD packet to send [10:32:08]accept exits with 8 [10:32:08]New connection [10:32:08]New thread 3066821988 created [10:32:08]Thread 3066965348 joined [10:32:08]Waiting for new connection... [10:32:08] Sock 8.Parse request [10:32:08]Sock 8.Check first char [10:32:08]Sock 8.First char is OK [10:32:08]request: POST /json_proto HTTP/1.0 [10:32:08]Method: POST [10:32:08]URL: /json_proto [10:32:08]Method is POST - this is cgi request [10:32:08]url: /json_proto [10:32:08]query_string will be loaded in cgi processing [10:32:08]execute_cgi json_proto POST (null) [10:32:08]execute_cgi path=json_proto method=POST [10:32:08]POST find Content-Length [10:32:08]Host: 172.17.44.195:8080 [10:32:08]Content-Length: 680 [10:32:08]Content-Type: application/json [10:32:08] [10:32:08]POST finish read [10:32:08]Found Content-Length = 680 [10:32:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962824", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:08]execute_script... [10:32: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)1962824", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:08]POST & json_proto [10:32:08]process_json_proto [10:32:08]json parsed OK: [10:32:08]protocol is kg_v1.0 [10:32:08]action value=close_receipt [10:32:08]process_action close_receipt [10:32:08]cmd_close_receipt [10:32:08]MH_GetDate [10:32:08]Write to MH i2c: F0 00 00 F1 4B 2B [10:32:08]Write i2c OK [10:32:08]MH_I2C_Read... [10:32:08]Read from MH i2c: F0 [10:32:08]MH_I2C_Read... [10:32:08]Read from MH i2c: F0 09 00 [10:32:08]MH_I2C_Read... [10:32:08]Read from MH i2c: F0 09 00 F1 4B 00 2C DC 14 67 82 C9 CF 66 37 [10:32:08]GetLastDocTimeStamp 1729420327 [10:32:08]current date 1729420332 [10:32:08]FM_GetShiftState [10:32:08]SAM_PROTO_GetShiftState [10:32:08]wFMCommunicate request_size=4 [10:32:08]MH_SAM_APDU [10:32:08]CAPDU: 80 13 01 00 [10:32:08]Write to MH i2c: E2 08 00 F2 4B 80 13 01 00 00 00 00 00 BA [10:32:08]Write i2c OK [10:32:08]MH_I2C_Read... [10:32:08]Read from MH i2c: E2 [10:32:08]MH_I2C_Read... [10:32:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:08]Read from MH i2c: E2 0E 00 [10:32:08]MH_I2C_Read... [10:32:08]Read from MH i2c: E2 0E 00 F2 4B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 D4 [10:32:08]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:32:08]wFMCommunicate OK [10:32:08]SAM_PROTO_GetShiftState done [10:32:08]FM_GetShiftState done [10:32:08]opened in 1729383750 [10:32:08]opened+sec_in_day 1729470150 [10:32:08]quantity*price = 100050 [10:32:08]sum+1 = 100052 [10:32:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 188 20.10.2024 10:32 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227340 ФПД: 180871756867529 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T103213&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227340&fm=180871756867529&tin=02508201610067®Number=0000000000091685&sum=100000 [10:32:09]StoreToDocumentArchive [10:32:09]shift 533 fd 227340 [10:32:09]save to /storage/0533/doc_00227340 [10:32:09]save last doc name /storage/0533/doc_00227340 to /storage/kkm_last_doc_name [10:32:09]save OK [10:32:09]Clear old archive folders... [10:32:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:32:09]tlvbuf is 00512AF0 [10:32:09]SAM_PROTO_ClearQueue [10:32:09]wFMCommunicate request_size=4 [10:32:09]MH_SAM_APDU [10:32:09]CAPDU: 80 09 00 00 [10:32:09]Write to MH i2c: E2 08 00 FF 4B 80 09 00 00 00 00 00 00 BC [10:32:09]Write i2c OK [10:32:09]MH_I2C_Read... [10:32:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:32:09]Read from MH i2c: E2 [10:32:09]MH_I2C_Read... [10:32:09]Read from MH i2c: E2 03 00 [10:32:09]MH_I2C_Read... [10:32:09]Read from MH i2c: E2 03 00 FF 4B 00 90 00 BE [10:32:09]RAPDU: 90 00 [10:32:09]wFMCommunicate OK [10:32:09]SAM_PROTO_ClearQueue done [10:32:09]KKMCreateOFDPacket [10:32:09]OFDProtocolAddRootSTLVToBuf [10:32:09]FM_MakeSignedData [10:32:09]FM_MakeSignedData [10:32:09]SAM_PROTO_SignData [10:32:09]wFMCommunicate request_size=4 [10:32:09]MH_SAM_APDU [10:32:09]CAPDU: 80 0D 01 02 [10:32:09]Write to MH i2c: E2 08 00 00 4C 80 0D 01 02 00 00 00 00 C5 [10:32:09]Write i2c OK [10:32:09]MH_I2C_Read... [10:32:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:32:10]Read from MH i2c: E2 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: E2 03 00 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: E2 03 00 00 4C 00 90 00 C0 [10:32:10]RAPDU: 90 00 [10:32:10]wFMCommunicate OK [10:32:10]wFMCommunicate request_size=255 [10:32:10]MH_SAM_APDU [10:32:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 2D DC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0C 78 03 00 35 04 06 00 A4 80 7C D1 [10:32:10]Write to MH i2c: E2 02 01 01 4C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 2D DC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0C 78 03 00 35 04 06 00 A4 80 7C D1 00 00 A1 [10:32:10]Write i2c OK [10:32:10]MH_I2C_Read... [10:32:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:10]Read from MH i2c: E2 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: E2 03 00 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: E2 03 00 01 4C 00 90 00 C1 [10:32:10]RAPDU: 90 00 [10:32:10]wFMCommunicate OK [10:32:10]wFMCommunicate request_size=7 [10:32:10]MH_SAM_APDU [10:32:10]CAPDU: 80 0D 02 02 02 67 C9 [10:32:10]Write to MH i2c: E2 0A 00 02 4C 80 0D 02 02 02 00 67 C9 00 00 FC [10:32:10]Write i2c OK [10:32:10]MH_I2C_Read... [10:32:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:10]Read from MH i2c: E2 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: E2 03 00 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: E2 03 00 02 4C 00 90 00 C2 [10:32:10]RAPDU: 90 00 [10:32:10]wFMCommunicate OK [10:32:10]wFMCommunicate request_size=4 [10:32:10]MH_SAM_APDU [10:32:10]CAPDU: 80 0D 03 02 [10:32:10]Write to MH i2c: E2 08 00 03 4C 80 0D 03 02 00 00 00 00 CA [10:32:10]Write i2c OK [10:32:10]MH_I2C_Read... [10:32:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:32:10]Read from MH i2c: E2 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: E2 0B 00 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: E2 0B 00 03 4C 00 70 20 DF F7 EA C2 F0 F5 90 00 C2 [10:32:10]RAPDU: 70 20 DF F7 EA C2 F0 F5 90 00 [10:32:10]wFMCommunicate OK [10:32:10]SAM_PROTO_SignData done [10:32:10]FM_MakeSignedData done [10:32:10]CreateOFDProtocolMessage [10:32:10]wFMCommunicate request_size=4 [10:32:10]MH_SAM_APDU [10:32:10]CAPDU: 80 11 00 00 [10:32:10]Write to MH i2c: E2 08 00 04 4C 80 11 00 00 00 00 00 00 CA [10:32:10]Write i2c OK [10:32:10]MH_I2C_Read... [10:32:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:10]Read from MH i2c: E2 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: E2 17 00 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: E2 17 00 04 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 21 [10:32:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:32:10]wFMCommunicate OK [10:32:10]CreateOFDProtocolMessage done [10:32:10]OFDSenderStorePacket 227340 [10:32:10]StoreOFDPacket docnum=227340 [10:32:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 9F D2 04 01 05 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 2D DC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0C 78 03 00 35 04 06 00 A4 80 7C D1 67 C9 70 20 DF F7 EA C2 F0 F5 [10:32:10]CheckFolder [10:32:10]dirname=/storage/ofd_packets [10:32:10]CheckFolder done [10:32:10]ProducePacketName [10:32:10]name=ofd_packets/00227340 [10:32:10]NVStorageSaveData ofd_packets/00227340 [10:32:10]File name is /storage/ofd_packets/00227340 [10:32:10]Write 298 bytes [10:32:10]NVStorageSaveData done [10:32:10]OFDSenderStorePacket done [10:32:10]KKMCreateOFDPacket done [10:32:10]NVStorageSaveData kkm_last_timestamp [10:32:10]File name is /storage/kkm_last_timestamp [10:32:10]Write 4 bytes [10:32:10]NVStorageSaveData done [10:32:10]ExternCall_PrintAddStr [10:32:10]wPrintStart [10:32:10]Write to MH i2c: 01 00 00 05 4C 51 [10:32:10]Write i2c OK [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: 01 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: 01 07 00 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: 01 07 00 05 4C 00 00 00 00 00 FF 0F 66 [10:32:10]RasterBufferAndPrint [10:32:10]line Счет N : (1)1962824 [10:32:10]line ИНН: 02508201610067 [10:32:10]line Контрольно-Кассовый Чек [10:32:10]line ПРОДАЖА [10:32:10]line ТРК (МРК, ГНК) : 41 [10:32:10]line Товар: 2710194210 [10:32:10]line ДТ-К-5 [10:32:10]line 13.130 * 76.20 [10:32:10]line = 1000.51 [10:32:10]line НДС 12% НСП 1% [10:32:10]line > о реализуемом товаре [10:32:10]line ОКРУГЛЕНИЕ: -0.51 [10:32:10]line ИТОГО: 1000.00 [10:32:10]line Внесено: 1000.00 [10:32:10]line СДАЧА: 0.00 [10:32:10]line НСП 1% : 8.85 [10:32:10]line НДС 12% : 106.25 [10:32:10]line Наличными: 1000.00 [10:32:10]line Безнал.: 0.00 [10:32:10]line Место: АЗС № 133 "Партнер Нефть" [10:32:10]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:32:10]line СНО: Общий режим [10:32:10]line Чек 188 20.10.2024 10:32 [10:32:10]line Смена: 533 ФФД: 1.0 [10:32:10]line ЗНМ: 0300000091 [10:32:10]line РНМ: 0000000000091685 [10:32:10]line Версия ККМ: 001 [10:32:10]line ФМ: 0000000000871839 [10:32:10]line ФД: 227340 [10:32:10]line ФПД: 180871756867529 [10:32:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T103213&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227340&fm=180871756867529&tin=02508201610067®Number=0000000000091685&sum=100000 [10:32:10]written 0, free lines is 4095 [10:32:10]OFD Sender: Processing packet 227340 [packets to send 38, broken 37] [10:32:10]ProducePacketName [10:32:10]name=ofd_packets/00227340 [10:32:10]OFD Sender: To server: pG, [10:32:10]CommunicateWithHost lk.salyk.kg:30040 [10:32:10]ConnectInit lk.salyk.kg [10:32:10]Connected sock=10 [10:32: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 33 39 0C 01 00 00 9F D2 04 01 05 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 2D DC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0C 78 03 00 35 04 06 00 A4 80 7C D1 67 C9 70 20 DF F7 EA C2 F0 F5 [10:32: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 33 39 4F 00 00 00 1B 60 47 00 FB 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 33 39 10 04 04 00 0C 78 03 00 F4 03 04 00 2C 87 14 67 B6 04 01 00 00 8D 39 84 59 2D 31 85 8F [10:32:10]CommunicateWithHost err = 0 [10:32:10]CheckOFDResponse [10:32:10]1017 (14) - 77093643461234 [10:32:10]1041 (16) - 0000000000871839 [10:32:10]1040 (4) - 227340 [10:32:10]1012 (4) - 20.10.2024 04:29 [10:32:10]1206 (1) - 0 [10:32:10]OFD Sender: Remove packet 227340 [10:32:10]ProducePacketName [10:32:10]name=ofd_packets/00227340 [10:32:10]NVStorageDeleteData [10:32:10]Write to MH i2c: 01 00 00 2F 4C 7B [10:32:10]Write i2c OK [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: 01 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: 01 07 00 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: 01 07 00 2F 4C 00 00 00 00 00 0E 0D 9D [10:32:10]RasterBufferAndPrint [10:32:10]line [10:32:10]line [10:32:10]line [10:32:10]line [10:32:10]line [10:32:10]written 0, free lines is 3354 [10:32:10]process_action close_receipt done [10:32:10]requested_data is exist [10:32:10]produce_requested_data [10:32:10]requested_item fm.sn is exist - process it [10:32:10]wFMCommunicate request_size=4 [10:32:10]MH_SAM_APDU [10:32:10]CAPDU: 80 11 00 00 [10:32:10]Write to MH i2c: E2 08 00 36 4C 80 11 00 00 00 00 00 00 FC [10:32:10]Write i2c OK [10:32:10]MH_I2C_Read... [10:32:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:11]Read from MH i2c: E2 [10:32:11]MH_I2C_Read... [10:32:11]Read from MH i2c: E2 17 00 [10:32:11]MH_I2C_Read... [10:32:11]Read from MH i2c: E2 17 00 36 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 53 [10:32:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:32:11]wFMCommunicate OK [10:32:11]requested_item fd.num is exist - process it [10:32:11]SAM_PROTO_GetFieldsCounters [10:32:11]wFMCommunicate request_size=4 [10:32:11]MH_SAM_APDU [10:32:11]CAPDU: 80 13 00 00 [10:32:11]Write to MH i2c: E2 08 00 37 4C 80 13 00 00 00 00 00 00 FF [10:32:11]Write i2c OK [10:32:11]MH_I2C_Read... [10:32:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:32:11]Read from MH i2c: E2 [10:32:11]MH_I2C_Read... [10:32:11]Read from MH i2c: E2 62 00 [10:32:11]MH_I2C_Read... [10:32:11]Read from MH i2c: E2 62 00 37 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 0C 78 03 00 0E 04 04 00 15 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 FA [10:32:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 0C 78 03 00 0E 04 04 00 15 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 [10:32:11]wFMCommunicate OK [10:32:11]SAM_PROTO_GetFieldsCounters done [10:32:11]requested_item shift.num is exist - process it [10:32:11]requested_item shift.opened is exist - process it [10:32:11]req_shift_opened [10:32:11]FM_GetShiftState [10:32:11]SAM_PROTO_GetShiftState [10:32:11]wFMCommunicate request_size=4 [10:32:11]MH_SAM_APDU [10:32:11]CAPDU: 80 13 01 00 [10:32:11]Write to MH i2c: E2 08 00 38 4C 80 13 01 00 00 00 00 00 01 [10:32:11]Write i2c OK [10:32:11]MH_I2C_Read... [10:32:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:11]Read from MH i2c: E2 [10:32:11]MH_I2C_Read... [10:32:11]Read from MH i2c: E2 0E 00 [10:32:11]MH_I2C_Read... [10:32:11]Read from MH i2c: E2 0E 00 38 4C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 1B [10:32:11]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:32:11]wFMCommunicate OK [10:32:11]SAM_PROTO_GetShiftState done [10:32:11]FM_GetShiftState done [10:32:11]req_shift_opened done [10:32:11]requested_item shift.open_date is exist - process it [10:32:11]req_shift_open_date [10:32:11]req_shift_open_date done [10:32:11]produce_requested_data done [10:32:11]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227340,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [10:32:11]process_action_free close_receipt [10:32:11]json_value_free [10:32:11]json_value_free done [10:32:11]process_json_proto returns [10:32:11]Send response to host [10:32:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227340,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [10:32:11]free response buf [10:32:11]execute_script done [10:32:11]execute_script returns [10:32:11]free content buf [10:32:11]Sock 8.Close socket [10:32:11]Sock 8.Thread stoped [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:36]OFD Sender: No OFD packet to send [10:32:41]OFD Sender: No OFD packet to send [10:32:46]OFD Sender: No OFD packet to send [10:32:51]OFD Sender: No OFD packet to send [10:32:56]OFD Sender: No OFD packet to send [10:33:01]OFD Sender: No OFD packet to send [10:33:06]OFD Sender: No OFD packet to send [10:33:11]OFD Sender: No OFD packet to send [10:33:16]OFD Sender: No OFD packet to send [10:33:21]OFD Sender: No OFD packet to send [10:33:26]OFD Sender: No OFD packet to send [10:33:31]OFD Sender: No OFD packet to send [10:33:36]OFD Sender: No OFD packet to send [10:33:41]OFD Sender: No OFD packet to send [10:33:46]OFD Sender: No OFD packet to send [10:33:51]OFD Sender: No OFD packet to send [10:33:56]OFD Sender: No OFD packet to send [10:34:01]OFD Sender: No OFD packet to send [10:34:06]OFD Sender: No OFD packet to send [10:34:11]OFD Sender: No OFD packet to send [10:34:14]accept exits with 9 [10:34:14]New connection [10:34:14]New thread 3066965348 created [10:34:14]Thread 3066821988 joined [10:34:14]Waiting for new connection... [10:34:14] Sock 9.Parse request [10:34:14]Sock 9.Check first char [10:34:14]Sock 9.First char is OK [10:34:14]request: POST /json_proto HTTP/1.0 [10:34:14]Method: POST [10:34:14]URL: /json_proto [10:34:14]Method is POST - this is cgi request [10:34:14]url: /json_proto [10:34:14]query_string will be loaded in cgi processing [10:34:14]execute_cgi json_proto POST (null) [10:34:14]execute_cgi path=json_proto method=POST [10:34:14]POST find Content-Length [10:34:14]Host: 172.17.44.195:8080 [10:34:14]Content-Length: 678 [10:34:14]Content-Type: application/json [10:34:14] [10:34:14]POST finish read [10:34:14]Found Content-Length = 678 [10:34:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962827", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:14]execute_script... [10:34: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)1962827", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:14]POST & json_proto [10:34:14]process_json_proto [10:34:14]json parsed OK: [10:34:14]protocol is kg_v1.0 [10:34:14]action value=close_receipt [10:34:14]process_action close_receipt [10:34:14]cmd_close_receipt [10:34:14]MH_GetDate [10:34:14]Write to MH i2c: F0 00 00 39 4C 74 [10:34:14]Write i2c OK [10:34:14]MH_I2C_Read... [10:34:14]Read from MH i2c: F0 [10:34:14]MH_I2C_Read... [10:34:14]Read from MH i2c: F0 09 00 [10:34:14]MH_I2C_Read... [10:34:14]Read from MH i2c: F0 09 00 39 4C 00 AA DC 14 67 82 C9 CF 66 FE [10:34:14]GetLastDocTimeStamp 1729420333 [10:34:14]current date 1729420458 [10:34:14]FM_GetShiftState [10:34:14]SAM_PROTO_GetShiftState [10:34:14]wFMCommunicate request_size=4 [10:34:14]MH_SAM_APDU [10:34:14]CAPDU: 80 13 01 00 [10:34:14]Write to MH i2c: E2 08 00 3A 4C 80 13 01 00 00 00 00 00 03 [10:34:14]Write i2c OK [10:34:14]MH_I2C_Read... [10:34:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:14]Read from MH i2c: E2 [10:34:14]MH_I2C_Read... [10:34:14]Read from MH i2c: E2 0E 00 [10:34:14]MH_I2C_Read... [10:34:14]Read from MH i2c: E2 0E 00 3A 4C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 1D [10:34:14]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:34:14]wFMCommunicate OK [10:34:14]SAM_PROTO_GetShiftState done [10:34:14]FM_GetShiftState done [10:34:14]opened in 1729383750 [10:34:14]opened+sec_in_day 1729470150 [10:34:14]quantity*price = 60009 [10:34:14]sum+1 = 60010 [10:34:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 189 20.10.2024 10:34 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227341 ФПД: 245351678199014 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T103418&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227341&fm=245351678199014&tin=02508201610067®Number=0000000000091685&sum=60000 [10:34:15]StoreToDocumentArchive [10:34:15]shift 533 fd 227341 [10:34:15]save to /storage/0533/doc_00227341 [10:34:15]save last doc name /storage/0533/doc_00227341 to /storage/kkm_last_doc_name [10:34:15]save OK [10:34:15]Clear old archive folders... [10:34:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:34:15]tlvbuf is 0053BF50 [10:34:15]SAM_PROTO_ClearQueue [10:34:15]wFMCommunicate request_size=4 [10:34:15]MH_SAM_APDU [10:34:15]CAPDU: 80 09 00 00 [10:34:15]Write to MH i2c: E2 08 00 47 4C 80 09 00 00 00 00 00 00 05 [10:34:15]Write i2c OK [10:34:15]MH_I2C_Read... [10:34:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:34:15]Read from MH i2c: E2 [10:34:15]MH_I2C_Read... [10:34:15]Read from MH i2c: E2 03 00 [10:34:15]MH_I2C_Read... [10:34:15]Read from MH i2c: E2 03 00 47 4C 00 90 00 07 [10:34:15]RAPDU: 90 00 [10:34:15]wFMCommunicate OK [10:34:15]SAM_PROTO_ClearQueue done [10:34:15]KKMCreateOFDPacket [10:34:15]OFDProtocolAddRootSTLVToBuf [10:34:15]FM_MakeSignedData [10:34:15]FM_MakeSignedData [10:34:15]SAM_PROTO_SignData [10:34:15]wFMCommunicate request_size=4 [10:34:15]MH_SAM_APDU [10:34:15]CAPDU: 80 0D 01 02 [10:34:15]Write to MH i2c: E2 08 00 48 4C 80 0D 01 02 00 00 00 00 0D [10:34:15]Write i2c OK [10:34:15]MH_I2C_Read... [10:34:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:34:15]Read from MH i2c: E2 [10:34:15]MH_I2C_Read... [10:34:15]Read from MH i2c: E2 03 00 [10:34:15]MH_I2C_Read... [10:34:15]Read from MH i2c: E2 03 00 48 4C 00 90 00 08 [10:34:15]RAPDU: 90 00 [10:34:15]wFMCommunicate OK [10:34:15]wFMCommunicate request_size=255 [10:34:15]MH_SAM_APDU [10:34:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 AA DC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0D 78 03 00 35 04 06 00 DF [10:34:15]Write to MH i2c: E2 02 01 49 4C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 AA DC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0D 78 03 00 35 04 06 00 DF 00 00 BD [10:34:15]Write i2c OK [10:34:15]MH_I2C_Read... [10:34:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:15]Read from MH i2c: E2 [10:34:15]MH_I2C_Read... [10:34:15]Read from MH i2c: E2 03 00 [10:34:15]MH_I2C_Read... [10:34:15]Read from MH i2c: E2 03 00 49 4C 00 90 00 09 [10:34:15]RAPDU: 90 00 [10:34:15]wFMCommunicate OK [10:34:15]wFMCommunicate request_size=10 [10:34:15]MH_SAM_APDU [10:34:15]CAPDU: 80 0D 02 02 05 25 63 9F C4 E6 [10:34:15]Write to MH i2c: E2 0D 00 4A 4C 80 0D 02 02 05 00 25 63 9F C4 E6 00 00 EB [10:34:15]Write i2c OK [10:34:15]MH_I2C_Read... [10:34:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:15]Read from MH i2c: E2 [10:34:15]MH_I2C_Read... [10:34:15]Read from MH i2c: E2 03 00 [10:34:15]MH_I2C_Read... [10:34:15]Read from MH i2c: E2 03 00 4A 4C 00 90 00 0A [10:34:15]RAPDU: 90 00 [10:34:15]wFMCommunicate OK [10:34:15]wFMCommunicate request_size=4 [10:34:15]MH_SAM_APDU [10:34:15]CAPDU: 80 0D 03 02 [10:34:15]Write to MH i2c: E2 08 00 4B 4C 80 0D 03 02 00 00 00 00 12 [10:34:15]Write i2c OK [10:34:15]MH_I2C_Read... [10:34:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:34:15]Read from MH i2c: E2 [10:34:15]MH_I2C_Read... [10:34:15]Read from MH i2c: E2 0B 00 [10:34:15]MH_I2C_Read... [10:34:15]Read from MH i2c: E2 0B 00 4B 4C 00 50 87 1D 6A 46 57 BD EB 90 00 B6 [10:34:15]RAPDU: 50 87 1D 6A 46 57 BD EB 90 00 [10:34:15]wFMCommunicate OK [10:34:15]SAM_PROTO_SignData done [10:34:15]FM_MakeSignedData done [10:34:15]CreateOFDProtocolMessage [10:34:15]wFMCommunicate request_size=4 [10:34:15]MH_SAM_APDU [10:34:15]CAPDU: 80 11 00 00 [10:34:15]Write to MH i2c: E2 08 00 4C 4C 80 11 00 00 00 00 00 00 12 [10:34:15]Write i2c OK [10:34:15]MH_I2C_Read... [10:34:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:15]Read from MH i2c: E2 [10:34:15]MH_I2C_Read... [10:34:15]Read from MH i2c: E2 17 00 [10:34:15]MH_I2C_Read... [10:34:15]Read from MH i2c: E2 17 00 4C 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 69 [10:34:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:34:15]wFMCommunicate OK [10:34:15]CreateOFDProtocolMessage done [10:34:15]OFDSenderStorePacket 227341 [10:34:15]StoreOFDPacket docnum=227341 [10:34:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 25 FE 07 01 CD 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 AA DC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0D 78 03 00 35 04 06 00 DF 25 63 9F C4 E6 50 87 1D 6A 46 57 BD EB [10:34:15]CheckFolder [10:34:15]dirname=/storage/ofd_packets [10:34:15]CheckFolder done [10:34:15]ProducePacketName [10:34:15]name=ofd_packets/00227341 [10:34:15]NVStorageSaveData ofd_packets/00227341 [10:34:15]File name is /storage/ofd_packets/00227341 [10:34:15]Write 301 bytes [10:34:15]NVStorageSaveData done [10:34:15]OFDSenderStorePacket done [10:34:15]KKMCreateOFDPacket done [10:34:15]NVStorageSaveData kkm_last_timestamp [10:34:15]File name is /storage/kkm_last_timestamp [10:34:15]Write 4 bytes [10:34:15]NVStorageSaveData done [10:34:15]ExternCall_PrintAddStr [10:34:15]wPrintStart [10:34:15]Write to MH i2c: 01 00 00 4D 4C 99 [10:34:15]Write i2c OK [10:34:15]MH_I2C_Read... [10:34:15]Read from MH i2c: 01 [10:34:15]MH_I2C_Read... [10:34:15]Read from MH i2c: 01 07 00 [10:34:15]MH_I2C_Read... [10:34:15]Read from MH i2c: 01 07 00 4D 4C 00 00 00 00 00 FF 0F AE [10:34:15]RasterBufferAndPrint [10:34:15]line Счет N : (1)1962827 [10:34:15]line ИНН: 02508201610067 [10:34:15]line Контрольно-Кассовый Чек [10:34:15]line ПРОДАЖА [10:34:15]line ТРК (МРК, ГНК) : 33 [10:34:15]line Товар: 2710124130 [10:34:15]line Аи-92-К-5 [10:34:15]line 8.970 * 66.90 [10:34:15]line = 600.09 [10:34:15]line НДС 12% НСП 1% [10:34:15]line > о реализуемом товаре [10:34:15]line ОКРУГЛЕНИЕ: -0.09 [10:34:15]line ИТОГО: 600.00 [10:34:15]line Внесено: 600.00 [10:34:15]line СДАЧА: 0.00 [10:34:15]line НСП 1% : 5.31 [10:34:15]line НДС 12% : 63.73 [10:34:15]line Наличными: 600.00 [10:34:15]line Безнал.: 0.00 [10:34:15]line Место: АЗС № 133 "Партнер Нефть" [10:34:15]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:34:15]line СНО: Общий режим [10:34:15]line Чек 189 20.10.2024 10:34 [10:34:15]line Смена: 533 ФФД: 1.0 [10:34:15]line ЗНМ: 0300000091 [10:34:15]line РНМ: 0000000000091685 [10:34:15]line Версия ККМ: 001 [10:34:15]line ФМ: 0000000000871839 [10:34:15]line ФД: 227341 [10:34:15]line ФПД: 245351678199014 [10:34:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T103418&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227341&fm=245351678199014&tin=02508201610067®Number=0000000000091685&sum=60000 [10:34:16]OFD Sender: Processing packet 227341 [packets to send 38, broken 37] [10:34:16]ProducePacketName [10:34:16]name=ofd_packets/00227341 [10:34:16]OFD Sender: To server: pG, [10:34:16]CommunicateWithHost lk.salyk.kg:30040 [10:34:16]ConnectInit lk.salyk.kg [10:34:16]written 0, free lines is 4095 [10:34:16]Connected sock=10 [10:34: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 33 39 0F 01 00 00 25 FE 07 01 CD 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 AA DC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0D 78 03 00 35 04 06 00 DF 25 63 9F C4 E6 50 87 1D 6A 46 57 BD EB [10:34: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 33 39 4F 00 00 00 01 C4 47 00 D1 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0D 78 03 00 F4 03 04 00 A9 87 14 67 B6 04 01 00 00 41 8C F5 07 A9 F0 EB 47 [10:34:16]CommunicateWithHost err = 0 [10:34:16]CheckOFDResponse [10:34:16]1017 (14) - 77093643461234 [10:34:16]1041 (16) - 0000000000871839 [10:34:16]1040 (4) - 227341 [10:34:16]1012 (4) - 20.10.2024 04:31 [10:34:16]1206 (1) - 0 [10:34:16]OFD Sender: Remove packet 227341 [10:34:16]ProducePacketName [10:34:16]name=ofd_packets/00227341 [10:34:16]NVStorageDeleteData [10:34:16]Write to MH i2c: 01 00 00 77 4C C3 [10:34:16]Write i2c OK [10:34:16]MH_I2C_Read... [10:34:16]Read from MH i2c: 01 [10:34:16]MH_I2C_Read... [10:34:16]Read from MH i2c: 01 07 00 [10:34:16]MH_I2C_Read... [10:34:16]Read from MH i2c: 01 07 00 77 4C 00 00 00 00 00 0C 0D E3 [10:34:16]RasterBufferAndPrint [10:34:16]line [10:34:16]line [10:34:16]line [10:34:16]line [10:34:16]line [10:34:16]written 0, free lines is 3349 [10:34:16]process_action close_receipt done [10:34:16]requested_data is exist [10:34:16]produce_requested_data [10:34:16]requested_item fm.sn is exist - process it [10:34:16]wFMCommunicate request_size=4 [10:34:16]MH_SAM_APDU [10:34:16]CAPDU: 80 11 00 00 [10:34:16]Write to MH i2c: E2 08 00 7E 4C 80 11 00 00 00 00 00 00 44 [10:34:16]Write i2c OK [10:34:16]MH_I2C_Read... [10:34:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:16]Read from MH i2c: E2 [10:34:16]MH_I2C_Read... [10:34:16]Read from MH i2c: E2 17 00 [10:34:16]MH_I2C_Read... [10:34:16]Read from MH i2c: E2 17 00 7E 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 9B [10:34:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:34:16]wFMCommunicate OK [10:34:16]requested_item fd.num is exist - process it [10:34:16]SAM_PROTO_GetFieldsCounters [10:34:16]wFMCommunicate request_size=4 [10:34:16]MH_SAM_APDU [10:34:16]CAPDU: 80 13 00 00 [10:34:16]Write to MH i2c: E2 08 00 7F 4C 80 13 00 00 00 00 00 00 47 [10:34:16]Write i2c OK [10:34:16]MH_I2C_Read... [10:34:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:34:16]Read from MH i2c: E2 [10:34:16]MH_I2C_Read... [10:34:16]Read from MH i2c: E2 62 00 [10:34:16]MH_I2C_Read... [10:34:16]Read from MH i2c: E2 62 00 7F 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 0D 78 03 00 0E 04 04 00 15 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 46 [10:34: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 0D 78 03 00 0E 04 04 00 15 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 [10:34:16]wFMCommunicate OK [10:34:16]SAM_PROTO_GetFieldsCounters done [10:34:16]requested_item shift.num is exist - process it [10:34:16]requested_item shift.opened is exist - process it [10:34:16]req_shift_opened [10:34:16]FM_GetShiftState [10:34:16]SAM_PROTO_GetShiftState [10:34:16]wFMCommunicate request_size=4 [10:34:16]MH_SAM_APDU [10:34:16]CAPDU: 80 13 01 00 [10:34:16]Write to MH i2c: E2 08 00 80 4C 80 13 01 00 00 00 00 00 49 [10:34:16]Write i2c OK [10:34:16]MH_I2C_Read... [10:34:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:17]Read from MH i2c: E2 [10:34:17]MH_I2C_Read... [10:34:17]Read from MH i2c: E2 0E 00 [10:34:17]MH_I2C_Read... [10:34:17]Read from MH i2c: E2 0E 00 80 4C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 63 [10:34:17]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:34:17]wFMCommunicate OK [10:34:17]SAM_PROTO_GetShiftState done [10:34:17]FM_GetShiftState done [10:34:17]req_shift_opened done [10:34:17]requested_item shift.open_date is exist - process it [10:34:17]req_shift_open_date [10:34:17]req_shift_open_date done [10:34:17]produce_requested_data done [10:34:17]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227341,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [10:34:17]process_action_free close_receipt [10:34:17]json_value_free [10:34:17]json_value_free done [10:34:17]process_json_proto returns [10:34:17]Send response to host [10:34:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227341,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [10:34:17]free response buf [10:34:17]execute_script done [10:34:17]execute_script returns [10:34:17]free content buf [10:34:17]Sock 9.Close socket [10:34:17]Sock 9.Thread stoped [10:34:17]OFD Sender: No OFD packet to send [10:34:22]OFD Sender: No OFD packet to send [10:34:26]accept exits with 8 [10:34:26]New connection [10:34:26]New thread 3066821988 created [10:34:26]Thread 3066965348 joined [10:34:26]Waiting for new connection... [10:34:26] Sock 8.Parse request [10:34:26]Sock 8.Check first char [10:34:26]Sock 8.First char is OK [10:34:26]request: POST /json_proto HTTP/1.0 [10:34:26]Method: POST [10:34:26]URL: /json_proto [10:34:26]Method is POST - this is cgi request [10:34:26]url: /json_proto [10:34:26]query_string will be loaded in cgi processing [10:34:26]execute_cgi json_proto POST (null) [10:34:26]execute_cgi path=json_proto method=POST [10:34:26]POST find Content-Length [10:34:26]Host: 172.17.44.195:8080 [10:34:26]Content-Length: 683 [10:34:26]Content-Type: application/json [10:34:26] [10:34:26]POST finish read [10:34:26]Found Content-Length = 683 [10:34:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962826", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:26]execute_script... [10:34: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)1962826", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:26]POST & json_proto [10:34:26]process_json_proto [10:34:26]json parsed OK: [10:34:26]protocol is kg_v1.0 [10:34:26]action value=close_receipt [10:34:26]process_action close_receipt [10:34:26]cmd_close_receipt [10:34:26]MH_GetDate [10:34:26]Write to MH i2c: F0 00 00 81 4C BC [10:34:26]Write i2c OK [10:34:26]MH_I2C_Read... [10:34:26]Read from MH i2c: F0 [10:34:26]MH_I2C_Read... [10:34:26]Read from MH i2c: F0 09 00 [10:34:26]MH_I2C_Read... [10:34:26]Read from MH i2c: F0 09 00 81 4C 00 B7 DC 14 67 82 C9 CF 66 53 [10:34:26]GetLastDocTimeStamp 1729420458 [10:34:26]current date 1729420471 [10:34:26]FM_GetShiftState [10:34:26]SAM_PROTO_GetShiftState [10:34:26]wFMCommunicate request_size=4 [10:34:26]MH_SAM_APDU [10:34:26]CAPDU: 80 13 01 00 [10:34:26]Write to MH i2c: E2 08 00 82 4C 80 13 01 00 00 00 00 00 4B [10:34:26]Write i2c OK [10:34:26]MH_I2C_Read... [10:34:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:26]Read from MH i2c: E2 [10:34:26]MH_I2C_Read... [10:34:26]Read from MH i2c: E2 0E 00 [10:34:26]MH_I2C_Read... [10:34:26]Read from MH i2c: E2 0E 00 82 4C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 65 [10:34:26]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:34:26]wFMCommunicate OK [10:34:26]SAM_PROTO_GetShiftState done [10:34:26]FM_GetShiftState done [10:34:26]opened in 1729383750 [10:34:26]opened+sec_in_day 1729470150 [10:34:26]quantity*price = 100021 [10:34:26]sum+1 = 100023 [10:34:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 190 20.10.2024 10:34 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227342 ФПД: 237695590519634 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T103431&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227342&fm=237695590519634&tin=02508201610067®Number=0000000000091685&sum=100000 [10:34:27]StoreToDocumentArchive [10:34:27]shift 533 fd 227342 [10:34:27]save to /storage/0533/doc_00227342 [10:34:27]save last doc name /storage/0533/doc_00227342 to /storage/kkm_last_doc_name [10:34:27]save OK [10:34:27]Clear old archive folders... [10:34:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:34:28]tlvbuf is B6EDDAB0 [10:34:28]SAM_PROTO_ClearQueue [10:34:28]wFMCommunicate request_size=4 [10:34:28]MH_SAM_APDU [10:34:28]CAPDU: 80 09 00 00 [10:34:28]Write to MH i2c: E2 08 00 8F 4C 80 09 00 00 00 00 00 00 4D [10:34:28]Write i2c OK [10:34:28]MH_I2C_Read... [10:34:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:34:28]Read from MH i2c: E2 [10:34:28]MH_I2C_Read... [10:34:28]Read from MH i2c: E2 03 00 [10:34:28]MH_I2C_Read... [10:34:28]Read from MH i2c: E2 03 00 8F 4C 00 90 00 4F [10:34:28]RAPDU: 90 00 [10:34:28]wFMCommunicate OK [10:34:28]SAM_PROTO_ClearQueue done [10:34:28]KKMCreateOFDPacket [10:34:28]OFDProtocolAddRootSTLVToBuf [10:34:28]FM_MakeSignedData [10:34:28]FM_MakeSignedData [10:34:28]SAM_PROTO_SignData [10:34:28]wFMCommunicate request_size=4 [10:34:28]MH_SAM_APDU [10:34:28]CAPDU: 80 0D 01 02 [10:34:28]Write to MH i2c: E2 08 00 90 4C 80 0D 01 02 00 00 00 00 55 [10:34:28]Write i2c OK [10:34:28]MH_I2C_Read... [10:34:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:34:28]Read from MH i2c: E2 [10:34:28]MH_I2C_Read... [10:34:28]Read from MH i2c: E2 03 00 [10:34:28]MH_I2C_Read... [10:34:28]Read from MH i2c: E2 03 00 90 4C 00 90 00 50 [10:34:28]RAPDU: 90 00 [10:34:28]wFMCommunicate OK [10:34:28]wFMCommunicate request_size=255 [10:34:28]MH_SAM_APDU [10:34: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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 B7 DC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0E 78 03 00 35 04 06 00 D8 [10:34:28]Write to MH i2c: E2 02 01 91 4C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 B7 DC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0E 78 03 00 35 04 06 00 D8 00 00 4D [10:34:28]Write i2c OK [10:34:28]MH_I2C_Read... [10:34:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:28]Read from MH i2c: E2 [10:34:28]MH_I2C_Read... [10:34:28]Read from MH i2c: E2 03 00 [10:34:28]MH_I2C_Read... [10:34:28]Read from MH i2c: E2 03 00 91 4C 00 90 00 51 [10:34:28]RAPDU: 90 00 [10:34:28]wFMCommunicate OK [10:34:28]wFMCommunicate request_size=10 [10:34:28]MH_SAM_APDU [10:34:28]CAPDU: 80 0D 02 02 05 2E D1 3C D3 52 [10:34:28]Write to MH i2c: E2 0D 00 92 4C 80 0D 02 02 05 00 2E D1 3C D3 52 00 00 C2 [10:34:28]Write i2c OK [10:34:28]MH_I2C_Read... [10:34:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:28]Read from MH i2c: E2 [10:34:28]MH_I2C_Read... [10:34:28]Read from MH i2c: E2 03 00 [10:34:28]MH_I2C_Read... [10:34:28]Read from MH i2c: E2 03 00 92 4C 00 90 00 52 [10:34:28]RAPDU: 90 00 [10:34:28]wFMCommunicate OK [10:34:28]wFMCommunicate request_size=4 [10:34:28]MH_SAM_APDU [10:34:28]CAPDU: 80 0D 03 02 [10:34:28]Write to MH i2c: E2 08 00 93 4C 80 0D 03 02 00 00 00 00 5A [10:34:28]Write i2c OK [10:34:28]MH_I2C_Read... [10:34:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:34:28]Read from MH i2c: E2 [10:34:28]MH_I2C_Read... [10:34:28]Read from MH i2c: E2 0B 00 [10:34:28]MH_I2C_Read... [10:34:28]Read from MH i2c: E2 0B 00 93 4C 00 3B A6 16 DC 54 4D FE 8A 90 00 57 [10:34:28]RAPDU: 3B A6 16 DC 54 4D FE 8A 90 00 [10:34:28]wFMCommunicate OK [10:34:28]SAM_PROTO_SignData done [10:34:28]FM_MakeSignedData done [10:34:28]CreateOFDProtocolMessage [10:34:28]wFMCommunicate request_size=4 [10:34:28]MH_SAM_APDU [10:34:28]CAPDU: 80 11 00 00 [10:34:28]Write to MH i2c: E2 08 00 94 4C 80 11 00 00 00 00 00 00 5A [10:34:28]Write i2c OK [10:34:28]MH_I2C_Read... [10:34:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:28]Read from MH i2c: E2 [10:34:28]MH_I2C_Read... [10:34:28]Read from MH i2c: E2 17 00 [10:34:28]MH_I2C_Read... [10:34:28]Read from MH i2c: E2 17 00 94 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B1 [10:34:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:34:28]wFMCommunicate OK [10:34:28]CreateOFDProtocolMessage done [10:34:28]OFDSenderStorePacket 227342 [10:34:28]StoreOFDPacket docnum=227342 [10:34:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 FA B2 07 01 18 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 B7 DC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0E 78 03 00 35 04 06 00 D8 2E D1 3C D3 52 3B A6 16 DC 54 4D FE 8A [10:34:28]CheckFolder [10:34:28]dirname=/storage/ofd_packets [10:34:28]CheckFolder done [10:34:28]ProducePacketName [10:34:28]name=ofd_packets/00227342 [10:34:28]NVStorageSaveData ofd_packets/00227342 [10:34:28]File name is /storage/ofd_packets/00227342 [10:34:28]Write 301 bytes [10:34:28]NVStorageSaveData done [10:34:28]OFDSenderStorePacket done [10:34:28]KKMCreateOFDPacket done [10:34:28]NVStorageSaveData kkm_last_timestamp [10:34:28]File name is /storage/kkm_last_timestamp [10:34:28]Write 4 bytes [10:34:28]NVStorageSaveData done [10:34:28]ExternCall_PrintAddStr [10:34:28]wPrintStart [10:34:28]Write to MH i2c: 01 00 00 95 4C E1 [10:34:28]Write i2c OK [10:34:28]MH_I2C_Read... [10:34:28]Read from MH i2c: 01 [10:34:28]MH_I2C_Read... [10:34:28]Read from MH i2c: 01 07 00 [10:34:28]MH_I2C_Read... [10:34:28]Read from MH i2c: 01 07 00 95 4C 00 00 00 00 00 FF 0F F6 [10:34:28]RasterBufferAndPrint [10:34:28]line Счет N : (1)1962826 [10:34:28]line ИНН: 02508201610067 [10:34:28]line Контрольно-Кассовый Чек [10:34:28]line ПРОДАЖА [10:34:28]line ТРК (МРК, ГНК) : 54 [10:34:28]line Товар: 2710124500 [10:34:28]line Аи-95-К-5 [10:34:28]line 13.480 * 74.20 [10:34:28]line = 1000.22 [10:34:28]line НДС 12% НСП 1% [10:34:28]line > о реализуемом товаре [10:34:28]line ОКРУГЛЕНИЕ: -0.22 [10:34:28]line ИТОГО: 1000.00 [10:34:28]line Внесено: 1000.00 [10:34:28]line СДАЧА: 0.00 [10:34:28]line НСП 1% : 8.85 [10:34:28]line НДС 12% : 106.22 [10:34:28]line Наличными: 1000.00 [10:34:28]line Безнал.: 0.00 [10:34:28]line Место: АЗС № 133 "Партнер Нефть" [10:34:28]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:34:28]line СНО: Общий режим [10:34:28]line Чек 190 20.10.2024 10:34 [10:34:28]line Смена: 533 ФФД: 1.0 [10:34:28]line ЗНМ: 0300000091 [10:34:28]line РНМ: 0000000000091685 [10:34:28]line Версия ККМ: 001 [10:34:28]line ФМ: 0000000000871839 [10:34:28]line ФД: 227342 [10:34:28]line ФПД: 237695590519634 [10:34:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T103431&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227342&fm=237695590519634&tin=02508201610067®Number=0000000000091685&sum=100000 [10:34:28]written 0, free lines is 4095 [10:34:28]OFD Sender: Processing packet 227342 [packets to send 38, broken 37] [10:34:28]ProducePacketName [10:34:28]name=ofd_packets/00227342 [10:34:28]OFD Sender: To server: pG, [10:34:28]CommunicateWithHost lk.salyk.kg:30040 [10:34:28]ConnectInit lk.salyk.kg [10:34:28]Connected sock=10 [10:34: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 33 39 0F 01 00 00 FA B2 07 01 18 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 B7 DC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0E 78 03 00 35 04 06 00 D8 2E D1 3C D3 52 3B A6 16 DC 54 4D FE 8A [10:34: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 33 39 4F 00 00 00 58 3E 47 00 05 F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0E 78 03 00 F4 03 04 00 B6 87 14 67 B6 04 01 00 00 AD 7C 5B 7A 7D C9 93 A9 [10:34:28]CommunicateWithHost err = 0 [10:34:28]CheckOFDResponse [10:34:28]1017 (14) - 77093643461234 [10:34:28]1041 (16) - 0000000000871839 [10:34:28]1040 (4) - 227342 [10:34:28]1012 (4) - 20.10.2024 04:31 [10:34:28]1206 (1) - 0 [10:34:28]OFD Sender: Remove packet 227342 [10:34:28]ProducePacketName [10:34:28]name=ofd_packets/00227342 [10:34:28]NVStorageDeleteData [10:34:29]Write to MH i2c: 01 00 00 BF 4C 0B [10:34:29]Write i2c OK [10:34:29]MH_I2C_Read... [10:34:29]Read from MH i2c: 01 [10:34:29]MH_I2C_Read... [10:34:29]Read from MH i2c: 01 07 00 [10:34:29]MH_I2C_Read... [10:34:29]Read from MH i2c: 01 07 00 BF 4C 00 00 00 00 00 1B 0D 3A [10:34:29]RasterBufferAndPrint [10:34:29]line [10:34:29]line [10:34:29]line [10:34:29]line [10:34:29]line [10:34:29]written 0, free lines is 3364 [10:34:29]process_action close_receipt done [10:34:29]requested_data is exist [10:34:29]produce_requested_data [10:34:29]requested_item fm.sn is exist - process it [10:34:29]wFMCommunicate request_size=4 [10:34:29]MH_SAM_APDU [10:34:29]CAPDU: 80 11 00 00 [10:34:29]Write to MH i2c: E2 08 00 C6 4C 80 11 00 00 00 00 00 00 8C [10:34:29]Write i2c OK [10:34:29]MH_I2C_Read... [10:34:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:29]Read from MH i2c: E2 [10:34:29]MH_I2C_Read... [10:34:29]Read from MH i2c: E2 17 00 [10:34:29]MH_I2C_Read... [10:34:29]Read from MH i2c: E2 17 00 C6 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E3 [10:34:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:34:29]wFMCommunicate OK [10:34:29]requested_item fd.num is exist - process it [10:34:29]SAM_PROTO_GetFieldsCounters [10:34:29]wFMCommunicate request_size=4 [10:34:29]MH_SAM_APDU [10:34:29]CAPDU: 80 13 00 00 [10:34:29]Write to MH i2c: E2 08 00 C7 4C 80 13 00 00 00 00 00 00 8F [10:34:29]Write i2c OK [10:34:29]MH_I2C_Read... [10:34:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:34:29]Read from MH i2c: E2 [10:34:29]MH_I2C_Read... [10:34:29]Read from MH i2c: E2 62 00 [10:34:29]MH_I2C_Read... [10:34:29]Read from MH i2c: E2 62 00 C7 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 0E 78 03 00 0E 04 04 00 15 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 92 [10:34: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 0E 78 03 00 0E 04 04 00 15 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 [10:34:29]wFMCommunicate OK [10:34:29]SAM_PROTO_GetFieldsCounters done [10:34:29]requested_item shift.num is exist - process it [10:34:29]requested_item shift.opened is exist - process it [10:34:29]req_shift_opened [10:34:29]FM_GetShiftState [10:34:29]SAM_PROTO_GetShiftState [10:34:29]wFMCommunicate request_size=4 [10:34:29]MH_SAM_APDU [10:34:29]CAPDU: 80 13 01 00 [10:34:29]Write to MH i2c: E2 08 00 C8 4C 80 13 01 00 00 00 00 00 91 [10:34:29]Write i2c OK [10:34:29]MH_I2C_Read... [10:34:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:29]Read from MH i2c: E2 [10:34:29]MH_I2C_Read... [10:34:29]Read from MH i2c: E2 0E 00 [10:34:29]MH_I2C_Read... [10:34:29]Read from MH i2c: E2 0E 00 C8 4C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 AB [10:34:29]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:34:29]wFMCommunicate OK [10:34:29]SAM_PROTO_GetShiftState done [10:34:29]FM_GetShiftState done [10:34:29]req_shift_opened done [10:34:29]requested_item shift.open_date is exist - process it [10:34:29]req_shift_open_date [10:34:29]req_shift_open_date done [10:34:29]produce_requested_data done [10:34:29]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227342,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [10:34:29]process_action_free close_receipt [10:34:29]json_value_free [10:34:29]json_value_free done [10:34:29]process_json_proto returns [10:34:29]Send response to host [10:34:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227342,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [10:34:29]free response buf [10:34:29]execute_script done [10:34:29]execute_script returns [10:34:29]free content buf [10:34:29]Sock 8.Close socket [10:34:29]Sock 8.Thread stoped [10:34:29]OFD Sender: No OFD packet to send [10:34:34]OFD Sender: No OFD packet to send [10:34:39]OFD Sender: No OFD packet to send [10:34:44]OFD Sender: No OFD packet to send [10:34:49]OFD Sender: No OFD packet to send [10:34:54]OFD Sender: No OFD packet to send [10:34:59]OFD Sender: No OFD packet to send [10:35:04]OFD Sender: No OFD packet to send [10:35:09]OFD Sender: No OFD packet to send [10:35:14]OFD Sender: No OFD packet to send [10:35:19]OFD Sender: No OFD packet to send [10:35:24]OFD Sender: No OFD packet to send [10:35:29]OFD Sender: No OFD packet to send [10:35:29]accept exits with 9 [10:35:29]New connection [10:35:29]New thread 3066965348 created [10:35:29]Thread 3066821988 joined [10:35:29]Waiting for new connection... [10:35:29] Sock 9.Parse request [10:35:29]Sock 9.Check first char [10:35:29]Sock 9.First char is OK [10:35:29]request: POST /json_proto HTTP/1.0 [10:35:29]Method: POST [10:35:29]URL: /json_proto [10:35:29]Method is POST - this is cgi request [10:35:29]url: /json_proto [10:35:29]query_string will be loaded in cgi processing [10:35:29]execute_cgi json_proto POST (null) [10:35:29]execute_cgi path=json_proto method=POST [10:35:29]POST find Content-Length [10:35:29]Host: 172.17.44.195:8080 [10:35:29]Content-Length: 678 [10:35:29]Content-Type: application/json [10:35:29] [10:35:29]POST finish read [10:35:29]Found Content-Length = 678 [10:35:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962828", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:29]execute_script... [10:35: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)1962828", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:29]POST & json_proto [10:35:29]process_json_proto [10:35:29]json parsed OK: [10:35:29]protocol is kg_v1.0 [10:35:29]action value=close_receipt [10:35:29]process_action close_receipt [10:35:29]cmd_close_receipt [10:35:29]MH_GetDate [10:35:29]Write to MH i2c: F0 00 00 C9 4C 04 [10:35:29]Write i2c OK [10:35:29]MH_I2C_Read... [10:35:29]Read from MH i2c: F0 [10:35:29]MH_I2C_Read... [10:35:29]Read from MH i2c: F0 09 00 [10:35:29]MH_I2C_Read... [10:35:29]Read from MH i2c: F0 09 00 C9 4C 00 F6 DC 14 67 82 C9 CF 66 DA [10:35:29]GetLastDocTimeStamp 1729420471 [10:35:29]current date 1729420534 [10:35:29]FM_GetShiftState [10:35:29]SAM_PROTO_GetShiftState [10:35:29]wFMCommunicate request_size=4 [10:35:29]MH_SAM_APDU [10:35:29]CAPDU: 80 13 01 00 [10:35:29]Write to MH i2c: E2 08 00 CA 4C 80 13 01 00 00 00 00 00 93 [10:35:29]Write i2c OK [10:35:29]MH_I2C_Read... [10:35:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:29]Read from MH i2c: E2 [10:35:29]MH_I2C_Read... [10:35:29]Read from MH i2c: E2 0E 00 [10:35:29]MH_I2C_Read... [10:35:29]Read from MH i2c: E2 0E 00 CA 4C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 AD [10:35:29]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:35:29]wFMCommunicate OK [10:35:29]SAM_PROTO_GetShiftState done [10:35:29]FM_GetShiftState done [10:35:29]opened in 1729383750 [10:35:29]opened+sec_in_day 1729470150 [10:35:29]quantity*price = 50041 [10:35:29]sum+1 = 50042 [10:35:29]Check (price>sum+1) || (price+1 о реализуемом товаре [10:48:59]line ОКРУГЛЕНИЕ: -0.41 [10:48:59]line ИТОГО: 500.00 [10:48:59]line Внесено: 500.00 [10:48:59]line СДАЧА: 0.00 [10:48:59]line НСП 1% : 4.43 [10:48:59]line НДС 12% : 53.14 [10:48:59]line Наличными: 500.00 [10:48:59]line Безнал.: 0.00 [10:48:59]line Место: АЗС № 133 "Партнер Нефть" [10:48:59]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:48:59]line СНО: Общий режим [10:48:59]line Чек 191 20.10.2024 10:35 [10:48:59]line Смена: 533 ФФД: 1.0 [10:48:59]line ЗНМ: 0300000091 [10:48:59]line РНМ: 0000000000091685 [10:48:59]line Версия ККМ: 001 [10:48:59]line ФМ: 0000000000871839 [10:48:59]line ФД: 227343 [10:48:59]line ФПД: 43399832252188 [10:48:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T103534&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227343&fm=43399832252188&tin=02508201610067®Number=0000000000091685&sum=50000 [10:48:59]written 0, free lines is 4095 [10:48:59]OFD Sender: No OFD packet to send [10:48:59]Write to MH i2c: 01 00 00 47 00 47 [10:48:59]Write i2c OK [10:48:59]MH_I2C_Read... [10:48:59]Read from MH i2c: 01 [10:48:59]MH_I2C_Read... [10:48:59]Read from MH i2c: 01 07 00 [10:48:59]MH_I2C_Read... [10:48:59]Read from MH i2c: 01 07 00 47 00 00 00 00 00 00 01 0D 5C [10:48:59]RasterBufferAndPrint [10:48:59]line [10:48:59]line [10:48:59]line [10:48:59]line [10:48:59]line [10:48:59]written 0, free lines is 3338 [10:48:59]process_action print_doc done [10:48:59]requested_data is exist [10:48:59]produce_requested_data [10:48:59]produce_requested_data return (null) [10:48:59]process_action_free print_doc [10:48:59]json_value_free [10:48:59]json_value_free done [10:48:59]process_json_proto returns [10:48:59]Send response to host [10:48:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [10:48:59]free response buf [10:48:59]execute_script done [10:48:59]execute_script returns [10:48:59]free content buf [10:48:59]Sock 8.Close socket [10:48:59]Sock 8.Thread stoped [10:48:59]accept exits with 9 [10:48:59]New connection [10:48:59]New thread 3066543460 created [10:48:59]Thread 3066686820 joined [10:48:59]Waiting for new connection... [10:48:59] Sock 9.Parse request [10:48:59]Sock 9.Check first char [10:48:59]Sock 9.First char is OK [10:48:59]request: POST /json_proto HTTP/1.0 [10:48:59]Method: POST [10:48:59]URL: /json_proto [10:48:59]Method is POST - this is cgi request [10:48:59]url: /json_proto [10:48:59]query_string will be loaded in cgi processing [10:48:59]execute_cgi json_proto POST (null) [10:48:59]execute_cgi path=json_proto method=POST [10:48:59]POST find Content-Length [10:48:59]Host: 172.17.44.195:8080 [10:48:59]Content-Length: 215 [10:48:59]Content-Type: application/json [10:48:59] [10:48:59]POST finish read [10:48:59]Found Content-Length = 215 [10:48:59]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" ] } } [10:48:59]execute_script... [10:48:59]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" ] } } [10:48:59]POST & json_proto [10:48:59]process_json_proto [10:48:59]json parsed OK: [10:48:59]protocol is kg_v1.0 [10:48:59]action value=get_value [10:48:59]process_action get_value [10:48:59]cmd_get_value [10:48:59]process_action get_value done [10:48:59]requested_data is exist [10:48:59]produce_requested_data [10:48:59]requested_item kkm.sn is exist - process it [10:48:59]requested_item kkm.ver is exist - process it [10:48:59]requested_item fm.sn is exist - process it [10:48:59]wFMCommunicate request_size=4 [10:48:59]MH_SAM_APDU [10:48:59]CAPDU: 80 11 00 00 [10:48:59]Write to MH i2c: E2 08 00 4E 00 80 11 00 00 00 00 00 00 C8 [10:48:59]Write i2c OK [10:48:59]MH_I2C_Read... [10:48:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:59]Read from MH i2c: E2 [10:48:59]MH_I2C_Read... [10:48:59]Read from MH i2c: E2 17 00 [10:48:59]MH_I2C_Read... [10:48:59]Read from MH i2c: E2 17 00 4E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 1F [10:48:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:48:59]wFMCommunicate OK [10:48:59]requested_item fd.num is exist - process it [10:48:59]SAM_PROTO_GetFieldsCounters [10:48:59]wFMCommunicate request_size=4 [10:48:59]MH_SAM_APDU [10:48:59]CAPDU: 80 13 00 00 [10:48:59]Write to MH i2c: E2 08 00 4F 00 80 13 00 00 00 00 00 00 CB [10:48:59]Write i2c OK [10:48:59]MH_I2C_Read... [10:49:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:49:00]Read from MH i2c: E2 [10:49:00]MH_I2C_Read... [10:49:00]Read from MH i2c: E2 62 00 [10:49:00]MH_I2C_Read... [10:49:00]Read from MH i2c: E2 62 00 4F 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 0F 78 03 00 0E 04 04 00 15 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 D2 [10:49:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 0F 78 03 00 0E 04 04 00 15 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 [10:49:00]wFMCommunicate OK [10:49:00]SAM_PROTO_GetFieldsCounters done [10:49:00]requested_item shift.num is exist - process it [10:49:00]requested_item shift.opened is exist - process it [10:49:00]req_shift_opened [10:49:00]FM_GetShiftState [10:49:00]SAM_PROTO_GetShiftState [10:49:00]wFMCommunicate request_size=4 [10:49:00]MH_SAM_APDU [10:49:00]CAPDU: 80 13 01 00 [10:49:00]Write to MH i2c: E2 08 00 50 00 80 13 01 00 00 00 00 00 CD [10:49:00]Write i2c OK [10:49:00]MH_I2C_Read... [10:49:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:00]Read from MH i2c: E2 [10:49:00]MH_I2C_Read... [10:49:00]Read from MH i2c: E2 0E 00 [10:49:00]MH_I2C_Read... [10:49:00]Read from MH i2c: E2 0E 00 50 00 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 E7 [10:49:00]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:49:00]wFMCommunicate OK [10:49:00]SAM_PROTO_GetShiftState done [10:49:00]FM_GetShiftState done [10:49:00]req_shift_opened done [10:49:00]requested_item shift.open_date is exist - process it [10:49:00]req_shift_open_date [10:49:00]req_shift_open_date done [10:49:00]produce_requested_data done [10:49:00]produce_requested_data return {"kkm.sn":"0300000091","kkm.ver":"001","fm.sn":"0000000000871839","fd.num":227343,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [10:49:00]process_action_free get_value [10:49:00]json_value_free [10:49:00]json_value_free done [10:49:00]process_json_proto returns [10:49:00]Send response to host [10:49:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000091","kkm.ver":"001","fm.sn":"0000000000871839","fd.num":227343,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [10:49:00]free response buf [10:49:00]execute_script done [10:49:00]execute_script returns [10:49:00]free content buf [10:49:00]Sock 9.Close socket [10:49:00]Sock 9.Thread stoped [10:49:00]accept exits with 8 [10:49:00]New connection [10:49:00]New thread 3066686820 created [10:49:00]Thread 3066543460 joined [10:49:00]Waiting for new connection... [10:49:00] Sock 8.Parse request [10:49:00]Sock 8.Check first char [10:49:00]Sock 8.First char is OK [10:49:00]request: POST /json_proto HTTP/1.0 [10:49:00]Method: POST [10:49:00]URL: /json_proto [10:49:00]Method is POST - this is cgi request [10:49:00]url: /json_proto [10:49:00]query_string will be loaded in cgi processing [10:49:00]execute_cgi json_proto POST (null) [10:49:00]execute_cgi path=json_proto method=POST [10:49:00]POST find Content-Length [10:49:00]Host: 172.17.44.195:8080 [10:49:00]Content-Length: 331 [10:49:00]Content-Type: application/json [10:49:00] [10:49:00]POST finish read [10:49:00]Found Content-Length = 331 [10:49:00]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" ] } } [10:49:00]execute_script... [10:49:00]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" ] } } [10:49:00]POST & json_proto [10:49:00]process_json_proto [10:49:00]json parsed OK: [10:49:00]protocol is kg_v1.0 [10:49:00]action value=get_value [10:49:00]process_action get_value [10:49:00]cmd_get_value [10:49:00]process_action get_value done [10:49:00]requested_data is exist [10:49:00]produce_requested_data [10:49:00]requested_item fm.sale.total is exist - process it [10:49:00]SAM_PROTO_GetFMData [10:49:00]wFMCommunicate request_size=4 [10:49:00]MH_SAM_APDU [10:49:00]CAPDU: 80 13 03 00 [10:49:00]Write to MH i2c: E2 08 00 51 00 80 13 03 00 00 00 00 00 D0 [10:49:00]Write i2c OK [10:49:00]MH_I2C_Read... [10:49:00]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [10:49:00]Read from MH i2c: E2 [10:49:00]MH_I2C_Read... [10:49:00]Read from MH i2c: E2 FD 00 [10:49:00]MH_I2C_Read... [10:49:00]Read from MH i2c: E2 FD 00 51 00 00 C5 04 85 04 C1 04 6E 04 04 00 E5 73 03 00 69 04 A3 00 6F 04 04 00 F6 6C 03 00 B1 04 05 00 55 1B 2F C3 04 70 04 05 00 60 9C 00 4A 04 72 04 04 00 F5 7E 2E 79 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 DB 45 83 81 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 29 C4 CA 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 EF 06 00 00 B1 04 04 00 C8 99 CF 1E 70 04 04 00 C8 99 CF 1E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 79 B4 45 03 EF 03 09 90 00 69 [10:49:00]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 E5 73 03 00 69 04 A3 00 6F 04 04 00 F6 6C 03 00 B1 04 05 00 55 1B 2F C3 04 70 04 05 00 60 9C 00 4A 04 72 04 04 00 F5 7E 2E 79 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 DB 45 83 81 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 29 C4 CA 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 EF 06 00 00 B1 04 04 00 C8 99 CF 1E 70 04 04 00 C8 99 CF 1E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 79 B4 45 03 EF 03 09 90 00 [10:49:00]wFMCommunicate OK [10:49:00]wFMCommunicate request_size=4 [10:49:00]MH_SAM_APDU [10:49:00]CAPDU: 80 17 00 00 [10:49:00]Write to MH i2c: E2 08 00 52 00 80 17 00 00 00 00 00 00 D2 [10:49:00]Write i2c OK [10:49:00]MH_I2C_Read... [10:49:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:49:00]Read from MH i2c: E2 [10:49:00]MH_I2C_Read... [10:49:00]Read from MH i2c: E2 FD 00 [10:49:00]MH_I2C_Read... [10:49:00]Read from MH i2c: E2 FD 00 52 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8E CE 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 29 [10:49:00]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8E CE 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [10:49:01]wFMCommunicate OK [10:49:01]wFMCommunicate request_size=4 [10:49:01]MH_SAM_APDU [10:49:01]CAPDU: 80 17 00 00 [10:49:01]Write to MH i2c: E2 08 00 53 00 80 17 00 00 00 00 00 00 D3 [10:49:01]Write i2c OK [10:49:01]MH_I2C_Read... [10:49:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:49:01]Read from MH i2c: E2 [10:49:01]MH_I2C_Read... [10:49:01]Read from MH i2c: E2 FD 00 [10:49:01]MH_I2C_Read... [10:49:01]Read from MH i2c: E2 FD 00 53 00 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 E5 [10:49:01]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [10:49:01]wFMCommunicate OK [10:49:01]wFMCommunicate request_size=4 [10:49:01]MH_SAM_APDU [10:49:01]CAPDU: 80 17 00 00 [10:49:01]Write to MH i2c: E2 08 00 54 00 80 17 00 00 00 00 00 00 D4 [10:49:01]Write i2c OK [10:49:01]MH_I2C_Read... [10:49:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:49:01]Read from MH i2c: E2 [10:49:01]MH_I2C_Read... [10:49:01]Read from MH i2c: E2 FD 00 [10:49:01]MH_I2C_Read... [10:49:01]Read from MH i2c: E2 FD 00 54 00 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 60 [10:49:01]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [10:49:01]wFMCommunicate OK [10:49:01]wFMCommunicate request_size=4 [10:49:01]MH_SAM_APDU [10:49:01]CAPDU: 80 17 00 00 [10:49:01]Write to MH i2c: E2 08 00 55 00 80 17 00 00 00 00 00 00 D5 [10:49:01]Write i2c OK [10:49:01]MH_I2C_Read... [10:49:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [10:49:01]Read from MH i2c: E2 [10:49:01]MH_I2C_Read... [10:49:01]Read from MH i2c: E2 E2 00 [10:49:02]MH_I2C_Read... [10:49:02]Read from MH i2c: E2 E2 00 55 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 B3 [10:49:02]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [10:49:02]wFMCommunicate OK [10:49:02]SAM_PROTO_GetFMData done [10:49:02]requested_item fm.sale_refund.total is exist - process it [10:49:02]requested_item fm.buy.total is exist - process it [10:49:02]requested_item shift.sale.total is exist - process it [10:49:02]SAM_PROTO_GetShiftData [10:49:02]wFMCommunicate request_size=4 [10:49:02]MH_SAM_APDU [10:49:02]CAPDU: 80 13 02 00 [10:49:02]Write to MH i2c: E2 08 00 56 00 80 13 02 00 00 00 00 00 D4 [10:49:02]Write i2c OK [10:49:02]MH_I2C_Read... [10:49:02]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [10:49:02]Read from MH i2c: E2 [10:49:02]MH_I2C_Read... [10:49:02]Read from MH i2c: E2 FD 00 [10:49:02]MH_I2C_Read... [10:49:02]Read from MH i2c: E2 FD 00 56 00 00 B1 04 AA 04 AD 04 6E 04 04 00 BF 00 00 00 69 04 9E 00 6F 04 04 00 BF 00 00 00 B1 04 04 00 BF 91 39 01 70 04 04 00 90 FB 13 01 72 04 03 00 2F 96 25 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 CC 4E 21 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 89 C6 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 C8 [10:49:02]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 BF 00 00 00 69 04 9E 00 6F 04 04 00 BF 00 00 00 B1 04 04 00 BF 91 39 01 70 04 04 00 90 FB 13 01 72 04 03 00 2F 96 25 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 CC 4E 21 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 89 C6 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [10:49:02]wFMCommunicate OK [10:49:02]wFMCommunicate request_size=4 [10:49:02]MH_SAM_APDU [10:49:02]CAPDU: 80 17 00 00 [10:49:02]Write to MH i2c: E2 08 00 57 00 80 17 00 00 00 00 00 00 D7 [10:49:02]Write i2c OK [10:49:02]MH_I2C_Read... [10:49:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:49:03]Read from MH i2c: E2 [10:49:03]MH_I2C_Read... [10:49:03]Read from MH i2c: E2 FD 00 [10:49:03]MH_I2C_Read... [10:49:03]Read from MH i2c: E2 FD 00 57 00 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 F0 [10:49:03]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [10:49:03]wFMCommunicate OK [10:49:03]wFMCommunicate request_size=4 [10:49:03]MH_SAM_APDU [10:49:03]CAPDU: 80 17 00 00 [10:49:03]Write to MH i2c: E2 08 00 58 00 80 17 00 00 00 00 00 00 D8 [10:49:03]Write i2c OK [10:49:03]MH_I2C_Read... [10:49:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:49:03]Read from MH i2c: E2 [10:49:03]MH_I2C_Read... [10:49:03]Read from MH i2c: E2 FD 00 [10:49:03]MH_I2C_Read... [10:49:03]Read from MH i2c: E2 FD 00 58 00 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 91 [10:49:03]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [10:49:03]wFMCommunicate OK [10:49:03]wFMCommunicate request_size=4 [10:49:03]MH_SAM_APDU [10:49:03]CAPDU: 80 17 00 00 [10:49:03]Write to MH i2c: E2 08 00 59 00 80 17 00 00 00 00 00 00 D9 [10:49:03]Write i2c OK [10:49:03]MH_I2C_Read... [10:49:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:49:03]Read from MH i2c: E2 [10:49:03]MH_I2C_Read... [10:49:03]Read from MH i2c: E2 FD 00 [10:49:03]MH_I2C_Read... [10:49:03]Read from MH i2c: E2 FD 00 59 00 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 51 [10:49:04]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [10:49:04]wFMCommunicate OK [10:49:04]wFMCommunicate request_size=4 [10:49:04]MH_SAM_APDU [10:49:04]CAPDU: 80 17 00 00 [10:49:04]Write to MH i2c: E2 08 00 5A 00 80 17 00 00 00 00 00 00 DA [10:49:04]Write i2c OK [10:49:04]MH_I2C_Read... [10:49:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [10:49:04]Read from MH i2c: E2 [10:49:04]MH_I2C_Read... [10:49:04]Read from MH i2c: E2 CE 00 [10:49:04]MH_I2C_Read... [10:49:04]Read from MH i2c: E2 CE 00 5A 00 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 BF [10:49:04]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [10:49:04]wFMCommunicate OK [10:49:04]SAM_PROTO_GetShiftData done [10:49:04]requested_item shift.sale.total_cash is exist - process it [10:49:04]requested_item shift.sale_refund.total is exist - process it [10:49:04]requested_item shift.sale_refund.total_cash is exist - process it [10:49:04]requested_item shift.buy.total is exist - process it [10:49:04]requested_item shift.buy.total_cash is exist - process it [10:49:04]produce_requested_data done [10:49:04]produce_requested_data return {"fm.sale.total":204545134.93,"fm.sale_refund.total":5169218.00,"fm.buy.total":0.00,"shift.sale.total":205500.79,"shift.sale.total_cash":180868.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} [10:49:04]process_action_free get_value [10:49:04]json_value_free [10:49:04]json_value_free done [10:49:04]process_json_proto returns [10:49:04]Send response to host [10:49:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":204545134.93,"fm.sale_refund.total":5169218.00,"fm.buy.total":0.00,"shift.sale.total":205500.79,"shift.sale.total_cash":180868.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}}} [10:49:04]free response buf [10:49:04]execute_script done [10:49:04]execute_script returns [10:49:04]free content buf [10:49:04]Sock 8.Close socket [10:49:04]Sock 8.Thread stoped [10:49:04]OFD Sender: No OFD packet to send [10:49:04]accept exits with 9 [10:49:04]New connection [10:49:04]New thread 3066543460 created [10:49:04]Thread 3066686820 joined [10:49:04]Waiting for new connection... [10:49:04] Sock 9.Parse request [10:49:04]Sock 9.Check first char [10:49:04]Sock 9.First char is OK [10:49:04]request: POST /json_proto HTTP/1.0 [10:49:04]Method: POST [10:49:04]URL: /json_proto [10:49:04]Method is POST - this is cgi request [10:49:04]url: /json_proto [10:49:04]query_string will be loaded in cgi processing [10:49:04]execute_cgi json_proto POST (null) [10:49:04]execute_cgi path=json_proto method=POST [10:49:04]POST find Content-Length [10:49:04]Host: 172.17.44.195:8080 [10:49:04]Content-Length: 215 [10:49:04]Content-Type: application/json [10:49:04] [10:49:04]POST finish read [10:49:04]Found Content-Length = 215 [10:49:04]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" ] } } [10:49:04]execute_script... [10:49:04]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" ] } } [10:49:04]POST & json_proto [10:49:04]process_json_proto [10:49:04]json parsed OK: [10:49:04]protocol is kg_v1.0 [10:49:04]action value=get_value [10:49:04]process_action get_value [10:49:04]cmd_get_value [10:49:04]process_action get_value done [10:49:04]requested_data is exist [10:49:04]produce_requested_data [10:49:04]requested_item kkm.sn is exist - process it [10:49:04]requested_item kkm.ver is exist - process it [10:49:04]requested_item fm.sn is exist - process it [10:49:04]wFMCommunicate request_size=4 [10:49:04]MH_SAM_APDU [10:49:04]CAPDU: 80 11 00 00 [10:49:04]Write to MH i2c: E2 08 00 5B 00 80 11 00 00 00 00 00 00 D5 [10:49:04]Write i2c OK [10:49:04]MH_I2C_Read... [10:49:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:04]Read from MH i2c: E2 [10:49:04]MH_I2C_Read... [10:49:04]Read from MH i2c: E2 17 00 [10:49:04]MH_I2C_Read... [10:49:04]Read from MH i2c: E2 17 00 5B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 2C [10:49:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:49:04]wFMCommunicate OK [10:49:04]requested_item fd.num is exist - process it [10:49:04]SAM_PROTO_GetFieldsCounters [10:49:04]wFMCommunicate request_size=4 [10:49:04]MH_SAM_APDU [10:49:04]CAPDU: 80 13 00 00 [10:49:04]Write to MH i2c: E2 08 00 5C 00 80 13 00 00 00 00 00 00 D8 [10:49:04]Write i2c OK [10:49:04]MH_I2C_Read... [10:49:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:49:05]Read from MH i2c: E2 [10:49:05]MH_I2C_Read... [10:49:05]Read from MH i2c: E2 62 00 [10:49:05]MH_I2C_Read... [10:49:05]Read from MH i2c: E2 62 00 5C 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 0F 78 03 00 0E 04 04 00 15 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 DF [10:49: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 0F 78 03 00 0E 04 04 00 15 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 [10:49:05]wFMCommunicate OK [10:49:05]SAM_PROTO_GetFieldsCounters done [10:49:05]requested_item shift.num is exist - process it [10:49:05]requested_item shift.opened is exist - process it [10:49:05]req_shift_opened [10:49:05]FM_GetShiftState [10:49:05]SAM_PROTO_GetShiftState [10:49:05]wFMCommunicate request_size=4 [10:49:05]MH_SAM_APDU [10:49:05]CAPDU: 80 13 01 00 [10:49:05]Write to MH i2c: E2 08 00 5D 00 80 13 01 00 00 00 00 00 DA [10:49:05]Write i2c OK [10:49:05]MH_I2C_Read... [10:49:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:05]Read from MH i2c: E2 [10:49:05]MH_I2C_Read... [10:49:05]Read from MH i2c: E2 0E 00 [10:49:05]MH_I2C_Read... [10:49:05]Read from MH i2c: E2 0E 00 5D 00 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 F4 [10:49:05]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:49:05]wFMCommunicate OK [10:49:05]SAM_PROTO_GetShiftState done [10:49:05]FM_GetShiftState done [10:49:05]req_shift_opened done [10:49:05]requested_item shift.open_date is exist - process it [10:49:05]req_shift_open_date [10:49:05]req_shift_open_date done [10:49:05]produce_requested_data done [10:49:05]produce_requested_data return {"kkm.sn":"0300000091","kkm.ver":"001","fm.sn":"0000000000871839","fd.num":227343,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [10:49:05]process_action_free get_value [10:49:05]json_value_free [10:49:05]json_value_free done [10:49:05]process_json_proto returns [10:49:05]Send response to host [10:49:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000091","kkm.ver":"001","fm.sn":"0000000000871839","fd.num":227343,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [10:49:05]free response buf [10:49:05]execute_script done [10:49:05]execute_script returns [10:49:05]free content buf [10:49:05]Sock 9.Close socket [10:49:05]Sock 9.Thread stoped [10:49:05]accept exits with 8 [10:49:05]New connection [10:49:05]New thread 3066686820 created [10:49:05]Thread 3066543460 joined [10:49:05]Waiting for new connection... [10:49:05] Sock 8.Parse request [10:49:05]Sock 8.Check first char [10:49:05]Sock 8.First char is OK [10:49:05]request: POST /json_proto HTTP/1.0 [10:49:05]Method: POST [10:49:05]URL: /json_proto [10:49:05]Method is POST - this is cgi request [10:49:05]url: /json_proto [10:49:05]query_string will be loaded in cgi processing [10:49:05]execute_cgi json_proto POST (null) [10:49:05]execute_cgi path=json_proto method=POST [10:49:05]POST find Content-Length [10:49:05]Host: 172.17.44.195:8080 [10:49:05]Content-Length: 331 [10:49:05]Content-Type: application/json [10:49:05] [10:49:05]POST finish read [10:49:05]Found Content-Length = 331 [10:49:05]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" ] } } [10:49:05]execute_script... [10:49:05]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" ] } } [10:49:05]POST & json_proto [10:49:05]process_json_proto [10:49:05]json parsed OK: [10:49:05]protocol is kg_v1.0 [10:49:05]action value=get_value [10:49:05]process_action get_value [10:49:05]cmd_get_value [10:49:05]process_action get_value done [10:49:05]requested_data is exist [10:49:05]produce_requested_data [10:49:05]requested_item fm.sale.total is exist - process it [10:49:05]SAM_PROTO_GetFMData [10:49:05]wFMCommunicate request_size=4 [10:49:05]MH_SAM_APDU [10:49:05]CAPDU: 80 13 03 00 [10:49:05]Write to MH i2c: E2 08 00 5E 00 80 13 03 00 00 00 00 00 DD [10:49:05]Write i2c OK [10:49:05]MH_I2C_Read... [10:49:05]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [10:49:05]Read from MH i2c: E2 [10:49:05]MH_I2C_Read... [10:49:05]Read from MH i2c: E2 FD 00 [10:49:05]MH_I2C_Read... [10:49:05]Read from MH i2c: E2 FD 00 5E 00 00 C5 04 85 04 C1 04 6E 04 04 00 E5 73 03 00 69 04 A3 00 6F 04 04 00 F6 6C 03 00 B1 04 05 00 55 1B 2F C3 04 70 04 05 00 60 9C 00 4A 04 72 04 04 00 F5 7E 2E 79 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 DB 45 83 81 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 29 C4 CA 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 EF 06 00 00 B1 04 04 00 C8 99 CF 1E 70 04 04 00 C8 99 CF 1E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 79 B4 45 03 EF 03 09 90 00 76 [10:49:05]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 E5 73 03 00 69 04 A3 00 6F 04 04 00 F6 6C 03 00 B1 04 05 00 55 1B 2F C3 04 70 04 05 00 60 9C 00 4A 04 72 04 04 00 F5 7E 2E 79 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 DB 45 83 81 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 29 C4 CA 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 EF 06 00 00 B1 04 04 00 C8 99 CF 1E 70 04 04 00 C8 99 CF 1E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 79 B4 45 03 EF 03 09 90 00 [10:49:05]wFMCommunicate OK [10:49:05]wFMCommunicate request_size=4 [10:49:05]MH_SAM_APDU [10:49:05]CAPDU: 80 17 00 00 [10:49:05]Write to MH i2c: E2 08 00 5F 00 80 17 00 00 00 00 00 00 DF [10:49:05]Write i2c OK [10:49:05]MH_I2C_Read... [10:49:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:49:06]Read from MH i2c: E2 [10:49:06]MH_I2C_Read... [10:49:06]Read from MH i2c: E2 FD 00 [10:49:06]MH_I2C_Read... [10:49:06]Read from MH i2c: E2 FD 00 5F 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8E CE 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 36 [10:49:06]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8E CE 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [10:49:06]wFMCommunicate OK [10:49:06]wFMCommunicate request_size=4 [10:49:06]MH_SAM_APDU [10:49:06]CAPDU: 80 17 00 00 [10:49:06]Write to MH i2c: E2 08 00 60 00 80 17 00 00 00 00 00 00 E0 [10:49:06]Write i2c OK [10:49:06]MH_I2C_Read... [10:49:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:49:06]Read from MH i2c: E2 [10:49:06]MH_I2C_Read... [10:49:06]Read from MH i2c: E2 FD 00 [10:49:06]MH_I2C_Read... [10:49:06]Read from MH i2c: E2 FD 00 60 00 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 F2 [10:49:06]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [10:49:06]wFMCommunicate OK [10:49:06]wFMCommunicate request_size=4 [10:49:06]MH_SAM_APDU [10:49:06]CAPDU: 80 17 00 00 [10:49:06]Write to MH i2c: E2 08 00 61 00 80 17 00 00 00 00 00 00 E1 [10:49:06]Write i2c OK [10:49:06]MH_I2C_Read... [10:49:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:49:06]Read from MH i2c: E2 [10:49:06]MH_I2C_Read... [10:49:06]Read from MH i2c: E2 FD 00 [10:49:06]MH_I2C_Read... [10:49:06]Read from MH i2c: E2 FD 00 61 00 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 6D [10:49:07]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [10:49:07]wFMCommunicate OK [10:49:07]wFMCommunicate request_size=4 [10:49:07]MH_SAM_APDU [10:49:07]CAPDU: 80 17 00 00 [10:49:07]Write to MH i2c: E2 08 00 62 00 80 17 00 00 00 00 00 00 E2 [10:49:07]Write i2c OK [10:49:07]MH_I2C_Read... [10:49:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [10:49:07]Read from MH i2c: E2 [10:49:07]MH_I2C_Read... [10:49:07]Read from MH i2c: E2 E2 00 [10:49:07]MH_I2C_Read... [10:49:07]Read from MH i2c: E2 E2 00 62 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C0 [10:49:07]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [10:49:07]wFMCommunicate OK [10:49:07]SAM_PROTO_GetFMData done [10:49:07]requested_item fm.sale_refund.total is exist - process it [10:49:07]requested_item fm.buy.total is exist - process it [10:49:07]requested_item shift.sale.total is exist - process it [10:49:07]SAM_PROTO_GetShiftData [10:49:07]wFMCommunicate request_size=4 [10:49:07]MH_SAM_APDU [10:49:07]CAPDU: 80 13 02 00 [10:49:07]Write to MH i2c: E2 08 00 63 00 80 13 02 00 00 00 00 00 E1 [10:49:07]Write i2c OK [10:49:07]MH_I2C_Read... [10:49:08]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [10:49:08]Read from MH i2c: E2 [10:49:08]MH_I2C_Read... [10:49:08]Read from MH i2c: E2 FD 00 [10:49:08]MH_I2C_Read... [10:49:08]Read from MH i2c: E2 FD 00 63 00 00 B1 04 AA 04 AD 04 6E 04 04 00 BF 00 00 00 69 04 9E 00 6F 04 04 00 BF 00 00 00 B1 04 04 00 BF 91 39 01 70 04 04 00 90 FB 13 01 72 04 03 00 2F 96 25 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 CC 4E 21 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 89 C6 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 D5 [10:49:08]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 BF 00 00 00 69 04 9E 00 6F 04 04 00 BF 00 00 00 B1 04 04 00 BF 91 39 01 70 04 04 00 90 FB 13 01 72 04 03 00 2F 96 25 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 CC 4E 21 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 89 C6 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [10:49:08]wFMCommunicate OK [10:49:08]wFMCommunicate request_size=4 [10:49:08]MH_SAM_APDU [10:49:08]CAPDU: 80 17 00 00 [10:49:08]Write to MH i2c: E2 08 00 64 00 80 17 00 00 00 00 00 00 E4 [10:49:08]Write i2c OK [10:49:08]MH_I2C_Read... [10:49:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:49:08]Read from MH i2c: E2 [10:49:08]MH_I2C_Read... [10:49:08]Read from MH i2c: E2 FD 00 [10:49:08]MH_I2C_Read... [10:49:08]Read from MH i2c: E2 FD 00 64 00 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 FD [10:49:08]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [10:49:08]wFMCommunicate OK [10:49:08]wFMCommunicate request_size=4 [10:49:08]MH_SAM_APDU [10:49:08]CAPDU: 80 17 00 00 [10:49:08]Write to MH i2c: E2 08 00 65 00 80 17 00 00 00 00 00 00 E5 [10:49:08]Write i2c OK [10:49:08]MH_I2C_Read... [10:49:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:49:09]Read from MH i2c: E2 [10:49:09]MH_I2C_Read... [10:49:09]Read from MH i2c: E2 FD 00 [10:49:09]MH_I2C_Read... [10:49:09]Read from MH i2c: E2 FD 00 65 00 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 9E [10:49:09]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [10:49:09]wFMCommunicate OK [10:49:09]wFMCommunicate request_size=4 [10:49:09]MH_SAM_APDU [10:49:09]CAPDU: 80 17 00 00 [10:49:09]Write to MH i2c: E2 08 00 66 00 80 17 00 00 00 00 00 00 E6 [10:49:09]Write i2c OK [10:49:09]MH_I2C_Read... [10:49:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:49:09]Read from MH i2c: E2 [10:49:09]MH_I2C_Read... [10:49:09]Read from MH i2c: E2 FD 00 [10:49:09]MH_I2C_Read... [10:49:09]Read from MH i2c: E2 FD 00 66 00 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 5E [10:49:09]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [10:49:09]wFMCommunicate OK [10:49:09]wFMCommunicate request_size=4 [10:49:09]MH_SAM_APDU [10:49:09]CAPDU: 80 17 00 00 [10:49:09]Write to MH i2c: E2 08 00 67 00 80 17 00 00 00 00 00 00 E7 [10:49:09]OFD Sender: No OFD packet to send [10:49:09]Write i2c OK [10:49:09]MH_I2C_Read... [10:49:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [10:49:10]Read from MH i2c: E2 [10:49:10]MH_I2C_Read... [10:49:10]Read from MH i2c: E2 CE 00 [10:49:10]MH_I2C_Read... [10:49:10]Read from MH i2c: E2 CE 00 67 00 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 CC [10:49:10]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [10:49:10]wFMCommunicate OK [10:49:10]SAM_PROTO_GetShiftData done [10:49:10]requested_item shift.sale.total_cash is exist - process it [10:49:10]requested_item shift.sale_refund.total is exist - process it [10:49:10]requested_item shift.sale_refund.total_cash is exist - process it [10:49:10]requested_item shift.buy.total is exist - process it [10:49:10]requested_item shift.buy.total_cash is exist - process it [10:49:10]produce_requested_data done [10:49:10]produce_requested_data return {"fm.sale.total":204545134.93,"fm.sale_refund.total":5169218.00,"fm.buy.total":0.00,"shift.sale.total":205500.79,"shift.sale.total_cash":180868.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} [10:49:10]process_action_free get_value [10:49:10]json_value_free [10:49:10]json_value_free done [10:49:10]process_json_proto returns [10:49:10]Send response to host [10:49:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":204545134.93,"fm.sale_refund.total":5169218.00,"fm.buy.total":0.00,"shift.sale.total":205500.79,"shift.sale.total_cash":180868.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}}} [10:49:10]free response buf [10:49:10]execute_script done [10:49:10]execute_script returns [10:49:10]free content buf [10:49:10]Sock 8.Close socket [10:49:10]Sock 8.Thread stoped [10:49:10]accept exits with 9 [10:49:10]New connection [10:49:10]New thread 3066543460 created [10:49:10]Thread 3066686820 joined [10:49:10]Waiting for new connection... [10:49:10] Sock 9.Parse request [10:49:10]Sock 9.Check first char [10:49:10]Sock 9.First char is OK [10:49:10]request: POST /json_proto HTTP/1.0 [10:49:10]Method: POST [10:49:10]URL: /json_proto [10:49:10]Method is POST - this is cgi request [10:49:10]url: /json_proto [10:49:10]query_string will be loaded in cgi processing [10:49:10]execute_cgi json_proto POST (null) [10:49:10]execute_cgi path=json_proto method=POST [10:49:10]POST find Content-Length [10:49:10]Host: 172.17.44.195:8080 [10:49:10]Content-Length: 215 [10:49:10]Content-Type: application/json [10:49:10] [10:49:10]POST finish read [10:49:10]Found Content-Length = 215 [10:49:10]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" ] } } [10:49:10]execute_script... [10:49:10]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" ] } } [10:49:10]POST & json_proto [10:49:10]process_json_proto [10:49:10]json parsed OK: [10:49:10]protocol is kg_v1.0 [10:49:10]action value=get_value [10:49:10]process_action get_value [10:49:10]cmd_get_value [10:49:10]process_action get_value done [10:49:10]requested_data is exist [10:49:10]produce_requested_data [10:49:10]requested_item kkm.sn is exist - process it [10:49:10]requested_item kkm.ver is exist - process it [10:49:10]requested_item fm.sn is exist - process it [10:49:10]wFMCommunicate request_size=4 [10:49:10]MH_SAM_APDU [10:49:10]CAPDU: 80 11 00 00 [10:49:10]Write to MH i2c: E2 08 00 68 00 80 11 00 00 00 00 00 00 E2 [10:49:10]Write i2c OK [10:49:10]MH_I2C_Read... [10:49:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:10]Read from MH i2c: E2 [10:49:10]MH_I2C_Read... [10:49:10]Read from MH i2c: E2 17 00 [10:49:10]MH_I2C_Read... [10:49:10]Read from MH i2c: E2 17 00 68 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 39 [10:49:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:49:10]wFMCommunicate OK [10:49:10]requested_item fd.num is exist - process it [10:49:10]SAM_PROTO_GetFieldsCounters [10:49:10]wFMCommunicate request_size=4 [10:49:10]MH_SAM_APDU [10:49:10]CAPDU: 80 13 00 00 [10:49:10]Write to MH i2c: E2 08 00 69 00 80 13 00 00 00 00 00 00 E5 [10:49:10]Write i2c OK [10:49:10]MH_I2C_Read... [10:49:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:49:10]Read from MH i2c: E2 [10:49:10]MH_I2C_Read... [10:49:10]Read from MH i2c: E2 62 00 [10:49:10]MH_I2C_Read... [10:49:10]Read from MH i2c: E2 62 00 69 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 0F 78 03 00 0E 04 04 00 15 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 EC [10:49:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 0F 78 03 00 0E 04 04 00 15 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 [10:49:10]wFMCommunicate OK [10:49:10]SAM_PROTO_GetFieldsCounters done [10:49:10]requested_item shift.num is exist - process it [10:49:10]requested_item shift.opened is exist - process it [10:49:10]req_shift_opened [10:49:10]FM_GetShiftState [10:49:10]SAM_PROTO_GetShiftState [10:49:10]wFMCommunicate request_size=4 [10:49:10]MH_SAM_APDU [10:49:10]CAPDU: 80 13 01 00 [10:49:10]Write to MH i2c: E2 08 00 6A 00 80 13 01 00 00 00 00 00 E7 [10:49:10]Write i2c OK [10:49:10]MH_I2C_Read... [10:49:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:10]Read from MH i2c: E2 [10:49:10]MH_I2C_Read... [10:49:10]Read from MH i2c: E2 0E 00 [10:49:10]MH_I2C_Read... [10:49:10]Read from MH i2c: E2 0E 00 6A 00 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 01 [10:49:10]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:49:10]wFMCommunicate OK [10:49:10]SAM_PROTO_GetShiftState done [10:49:10]FM_GetShiftState done [10:49:10]req_shift_opened done [10:49:10]requested_item shift.open_date is exist - process it [10:49:10]req_shift_open_date [10:49:10]req_shift_open_date done [10:49:10]produce_requested_data done [10:49:10]produce_requested_data return {"kkm.sn":"0300000091","kkm.ver":"001","fm.sn":"0000000000871839","fd.num":227343,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [10:49:10]process_action_free get_value [10:49:10]json_value_free [10:49:10]json_value_free done [10:49:10]process_json_proto returns [10:49:10]Send response to host [10:49:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000091","kkm.ver":"001","fm.sn":"0000000000871839","fd.num":227343,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [10:49:10]free response buf [10:49:10]execute_script done [10:49:10]execute_script returns [10:49:10]free content buf [10:49:10]Sock 9.Close socket [10:49:10]Sock 9.Thread stoped [10:49:10]accept exits with 8 [10:49:10]New connection [10:49:10]New thread 3066686820 created [10:49:10]Thread 3066543460 joined [10:49:10]Waiting for new connection... [10:49:10] Sock 8.Parse request [10:49:10]Sock 8.Check first char [10:49:10]Sock 8.First char is OK [10:49:10]request: POST /json_proto HTTP/1.0 [10:49:10]Method: POST [10:49:10]URL: /json_proto [10:49:10]Method is POST - this is cgi request [10:49:10]url: /json_proto [10:49:10]query_string will be loaded in cgi processing [10:49:10]execute_cgi json_proto POST (null) [10:49:10]execute_cgi path=json_proto method=POST [10:49:10]POST find Content-Length [10:49:10]Host: 172.17.44.195:8080 [10:49:10]Content-Length: 331 [10:49:10]Content-Type: application/json [10:49:10] [10:49:10]POST finish read [10:49:10]Found Content-Length = 331 [10:49:10]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" ] } } [10:49:10]execute_script... [10:49:10]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" ] } } [10:49:10]POST & json_proto [10:49:10]process_json_proto [10:49:10]json parsed OK: [10:49:10]protocol is kg_v1.0 [10:49:10]action value=get_value [10:49:10]process_action get_value [10:49:10]cmd_get_value [10:49:10]process_action get_value done [10:49:10]requested_data is exist [10:49:10]produce_requested_data [10:49:10]requested_item fm.sale.total is exist - process it [10:49:10]SAM_PROTO_GetFMData [10:49:10]wFMCommunicate request_size=4 [10:49:10]MH_SAM_APDU [10:49:10]CAPDU: 80 13 03 00 [10:49:10]Write to MH i2c: E2 08 00 6B 00 80 13 03 00 00 00 00 00 EA [10:49:10]Write i2c OK [10:49:10]MH_I2C_Read... [10:49:11]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [10:49:11]Read from MH i2c: E2 [10:49:11]MH_I2C_Read... [10:49:11]Read from MH i2c: E2 FD 00 [10:49:11]MH_I2C_Read... [10:49:11]Read from MH i2c: E2 FD 00 6B 00 00 C5 04 85 04 C1 04 6E 04 04 00 E5 73 03 00 69 04 A3 00 6F 04 04 00 F6 6C 03 00 B1 04 05 00 55 1B 2F C3 04 70 04 05 00 60 9C 00 4A 04 72 04 04 00 F5 7E 2E 79 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 DB 45 83 81 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 29 C4 CA 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 EF 06 00 00 B1 04 04 00 C8 99 CF 1E 70 04 04 00 C8 99 CF 1E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 79 B4 45 03 EF 03 09 90 00 83 [10:49:11]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 E5 73 03 00 69 04 A3 00 6F 04 04 00 F6 6C 03 00 B1 04 05 00 55 1B 2F C3 04 70 04 05 00 60 9C 00 4A 04 72 04 04 00 F5 7E 2E 79 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 DB 45 83 81 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 29 C4 CA 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 EF 06 00 00 B1 04 04 00 C8 99 CF 1E 70 04 04 00 C8 99 CF 1E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 79 B4 45 03 EF 03 09 90 00 [10:49:11]wFMCommunicate OK [10:49:11]wFMCommunicate request_size=4 [10:49:11]MH_SAM_APDU [10:49:11]CAPDU: 80 17 00 00 [10:49:11]Write to MH i2c: E2 08 00 6C 00 80 17 00 00 00 00 00 00 EC [10:49:11]Write i2c OK [10:49:11]MH_I2C_Read... [10:49:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:49:11]Read from MH i2c: E2 [10:49:11]MH_I2C_Read... [10:49:11]Read from MH i2c: E2 FD 00 [10:49:11]MH_I2C_Read... [10:49:11]Read from MH i2c: E2 FD 00 6C 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8E CE 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 43 [10:49:12]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8E CE 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [10:49:12]wFMCommunicate OK [10:49:12]wFMCommunicate request_size=4 [10:49:12]MH_SAM_APDU [10:49:12]CAPDU: 80 17 00 00 [10:49:12]Write to MH i2c: E2 08 00 6D 00 80 17 00 00 00 00 00 00 ED [10:49:12]Write i2c OK [10:49:12]MH_I2C_Read... [10:49:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:49:12]Read from MH i2c: E2 [10:49:12]MH_I2C_Read... [10:49:12]Read from MH i2c: E2 FD 00 [10:49:12]MH_I2C_Read... [10:49:12]Read from MH i2c: E2 FD 00 6D 00 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 FF [10:49:12]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [10:49:12]wFMCommunicate OK [10:49:12]wFMCommunicate request_size=4 [10:49:12]MH_SAM_APDU [10:49:12]CAPDU: 80 17 00 00 [10:49:12]Write to MH i2c: E2 08 00 6E 00 80 17 00 00 00 00 00 00 EE [10:49:12]Write i2c OK [10:49:12]MH_I2C_Read... [10:49:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:49:12]Read from MH i2c: E2 [10:49:12]MH_I2C_Read... [10:49:12]Read from MH i2c: E2 FD 00 [10:49:12]MH_I2C_Read... [10:49:13]Read from MH i2c: E2 FD 00 6E 00 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 7A [10:49:13]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [10:49:13]wFMCommunicate OK [10:49:13]wFMCommunicate request_size=4 [10:49:13]MH_SAM_APDU [10:49:13]CAPDU: 80 17 00 00 [10:49:13]Write to MH i2c: E2 08 00 6F 00 80 17 00 00 00 00 00 00 EF [10:49:13]Write i2c OK [10:49:13]MH_I2C_Read... [10:49:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [10:49:13]Read from MH i2c: E2 [10:49:13]MH_I2C_Read... [10:49:13]Read from MH i2c: E2 E2 00 [10:49:13]MH_I2C_Read... [10:49:13]Read from MH i2c: E2 E2 00 6F 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 CD [10:49:13]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [10:49:13]wFMCommunicate OK [10:49:13]SAM_PROTO_GetFMData done [10:49:13]requested_item fm.sale_refund.total is exist - process it [10:49:13]requested_item fm.buy.total is exist - process it [10:49:13]requested_item shift.sale.total is exist - process it [10:49:13]SAM_PROTO_GetShiftData [10:49:13]wFMCommunicate request_size=4 [10:49:13]MH_SAM_APDU [10:49:13]CAPDU: 80 13 02 00 [10:49:13]Write to MH i2c: E2 08 00 70 00 80 13 02 00 00 00 00 00 EE [10:49:13]Write i2c OK [10:49:13]MH_I2C_Read... [10:49:14]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [10:49:14]Read from MH i2c: E2 [10:49:14]MH_I2C_Read... [10:49:14]Read from MH i2c: E2 FD 00 [10:49:14]MH_I2C_Read... [10:49:14]Read from MH i2c: E2 FD 00 70 00 00 B1 04 AA 04 AD 04 6E 04 04 00 BF 00 00 00 69 04 9E 00 6F 04 04 00 BF 00 00 00 B1 04 04 00 BF 91 39 01 70 04 04 00 90 FB 13 01 72 04 03 00 2F 96 25 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 CC 4E 21 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 89 C6 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 E2 [10:49:14]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 BF 00 00 00 69 04 9E 00 6F 04 04 00 BF 00 00 00 B1 04 04 00 BF 91 39 01 70 04 04 00 90 FB 13 01 72 04 03 00 2F 96 25 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 CC 4E 21 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 89 C6 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [10:49:14]wFMCommunicate OK [10:49:14]wFMCommunicate request_size=4 [10:49:14]MH_SAM_APDU [10:49:14]CAPDU: 80 17 00 00 [10:49:14]Write to MH i2c: E2 08 00 71 00 80 17 00 00 00 00 00 00 F1 [10:49:14]Write i2c OK [10:49:14]MH_I2C_Read... [10:49:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:49:14]Read from MH i2c: E2 [10:49:14]MH_I2C_Read... [10:49:14]Read from MH i2c: E2 FD 00 [10:49:14]MH_I2C_Read... [10:49:14]Read from MH i2c: E2 FD 00 71 00 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 0A [10:49:14]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 OFD Sender: No OFD packet to send [10:49:15]01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [10:49:15]wFMCommunicate OK [10:49:15]wFMCommunicate request_size=4 [10:49:15]MH_SAM_APDU [10:49:15]CAPDU: 80 17 00 00 [10:49:15]Write to MH i2c: E2 08 00 72 00 80 17 00 00 00 00 00 00 F2 [10:49:15]Write i2c OK [10:49:15]MH_I2C_Read... [10:49:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:49:15]Read from MH i2c: E2 [10:49:15]MH_I2C_Read... [10:49:15]Read from MH i2c: E2 FD 00 [10:49:15]MH_I2C_Read... [10:49:15]Read from MH i2c: E2 FD 00 72 00 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 AB [10:49:15]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [10:49:15]wFMCommunicate OK [10:49:15]wFMCommunicate request_size=4 [10:49:15]MH_SAM_APDU [10:49:15]CAPDU: 80 17 00 00 [10:49:15]Write to MH i2c: E2 08 00 73 00 80 17 00 00 00 00 00 00 F3 [10:49:15]Write i2c OK [10:49:15]MH_I2C_Read... [10:49:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:49:16]Read from MH i2c: E2 [10:49:16]MH_I2C_Read... [10:49:16]Read from MH i2c: E2 FD 00 [10:49:16]MH_I2C_Read... [10:49:16]Read from MH i2c: E2 FD 00 73 00 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 6B [10:49:16]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [10:49:16]wFMCommunicate OK [10:49:16]wFMCommunicate request_size=4 [10:49:16]MH_SAM_APDU [10:49:16]CAPDU: 80 17 00 00 [10:49:16]Write to MH i2c: E2 08 00 74 00 80 17 00 00 00 00 00 00 F4 [10:49:16]Write i2c OK [10:49:16]MH_I2C_Read... [10:49:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [10:49:16]Read from MH i2c: E2 [10:49:16]MH_I2C_Read... [10:49:16]Read from MH i2c: E2 CE 00 [10:49:16]MH_I2C_Read... [10:49:16]Read from MH i2c: E2 CE 00 74 00 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 D9 [10:49:16]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [10:49:16]wFMCommunicate OK [10:49:16]SAM_PROTO_GetShiftData done [10:49:16]requested_item shift.sale.total_cash is exist - process it [10:49:16]requested_item shift.sale_refund.total is exist - process it [10:49:16]requested_item shift.sale_refund.total_cash is exist - process it [10:49:16]requested_item shift.buy.total is exist - process it [10:49:16]requested_item shift.buy.total_cash is exist - process it [10:49:16]produce_requested_data done [10:49:16]produce_requested_data return {"fm.sale.total":204545134.93,"fm.sale_refund.total":5169218.00,"fm.buy.total":0.00,"shift.sale.total":205500.79,"shift.sale.total_cash":180868.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} [10:49:16]process_action_free get_value [10:49:16]json_value_free [10:49:16]json_value_free done [10:49:16]process_json_proto returns [10:49:16]Send response to host [10:49:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":204545134.93,"fm.sale_refund.total":5169218.00,"fm.buy.total":0.00,"shift.sale.total":205500.79,"shift.sale.total_cash":180868.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}}} [10:49:16]free response buf [10:49:16]execute_script done [10:49:16]execute_script returns [10:49:16]free content buf [10:49:16]Sock 8.Close socket [10:49:16]Sock 8.Thread stoped [10:49:17]accept exits with 9 [10:49:17]New connection [10:49:17]New thread 3066543460 created [10:49:17]Thread 3066686820 joined [10:49:17]Waiting for new connection... [10:49:17] Sock 9.Parse request [10:49:17]Sock 9.Check first char [10:49:17]Sock 9.First char is OK [10:49:17]request: POST /json_proto HTTP/1.0 [10:49:17]Method: POST [10:49:17]URL: /json_proto [10:49:17]Method is POST - this is cgi request [10:49:17]url: /json_proto [10:49:17]query_string will be loaded in cgi processing [10:49:17]execute_cgi json_proto POST (null) [10:49:17]execute_cgi path=json_proto method=POST [10:49:17]POST find Content-Length [10:49:17]Host: 172.17.44.195:8080 [10:49:17]Content-Length: 215 [10:49:17]Content-Type: application/json [10:49:17] [10:49:17]POST finish read [10:49:17]Found Content-Length = 215 [10:49:17]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" ] } } [10:49:17]execute_script... [10:49:17]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" ] } } [10:49:17]POST & json_proto [10:49:17]process_json_proto [10:49:17]json parsed OK: [10:49:17]protocol is kg_v1.0 [10:49:17]action value=get_value [10:49:17]process_action get_value [10:49:17]cmd_get_value [10:49:17]process_action get_value done [10:49:17]requested_data is exist [10:49:17]produce_requested_data [10:49:17]requested_item kkm.sn is exist - process it [10:49:17]requested_item kkm.ver is exist - process it [10:49:17]requested_item fm.sn is exist - process it [10:49:17]wFMCommunicate request_size=4 [10:49:17]MH_SAM_APDU [10:49:17]CAPDU: 80 11 00 00 [10:49:17]Write to MH i2c: E2 08 00 75 00 80 11 00 00 00 00 00 00 EF [10:49:17]Write i2c OK [10:49:17]MH_I2C_Read... [10:49:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:17]Read from MH i2c: E2 [10:49:17]MH_I2C_Read... [10:49:17]Read from MH i2c: E2 17 00 [10:49:17]MH_I2C_Read... [10:49:17]Read from MH i2c: E2 17 00 75 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 46 [10:49:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:49:17]wFMCommunicate OK [10:49:17]requested_item fd.num is exist - process it [10:49:17]SAM_PROTO_GetFieldsCounters [10:49:17]wFMCommunicate request_size=4 [10:49:17]MH_SAM_APDU [10:49:17]CAPDU: 80 13 00 00 [10:49:17]Write to MH i2c: E2 08 00 76 00 80 13 00 00 00 00 00 00 F2 [10:49:17]Write i2c OK [10:49:17]MH_I2C_Read... [10:49:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:49:17]Read from MH i2c: E2 [10:49:17]MH_I2C_Read... [10:49:17]Read from MH i2c: E2 62 00 [10:49:17]MH_I2C_Read... [10:49:17]Read from MH i2c: E2 62 00 76 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 0F 78 03 00 0E 04 04 00 15 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 F9 [10:49: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 0F 78 03 00 0E 04 04 00 15 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 [10:49:17]wFMCommunicate OK [10:49:17]SAM_PROTO_GetFieldsCounters done [10:49:17]requested_item shift.num is exist - process it [10:49:17]requested_item shift.opened is exist - process it [10:49:17]req_shift_opened [10:49:17]FM_GetShiftState [10:49:17]SAM_PROTO_GetShiftState [10:49:17]wFMCommunicate request_size=4 [10:49:17]MH_SAM_APDU [10:49:17]CAPDU: 80 13 01 00 [10:49:17]Write to MH i2c: E2 08 00 77 00 80 13 01 00 00 00 00 00 F4 [10:49:17]Write i2c OK [10:49:17]MH_I2C_Read... [10:49:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:17]Read from MH i2c: E2 [10:49:17]MH_I2C_Read... [10:49:17]Read from MH i2c: E2 0E 00 [10:49:17]MH_I2C_Read... [10:49:17]Read from MH i2c: E2 0E 00 77 00 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 0E [10:49:17]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:49:17]wFMCommunicate OK [10:49:17]SAM_PROTO_GetShiftState done [10:49:17]FM_GetShiftState done [10:49:17]req_shift_opened done [10:49:17]requested_item shift.open_date is exist - process it [10:49:17]req_shift_open_date [10:49:17]req_shift_open_date done [10:49:17]produce_requested_data done [10:49:17]produce_requested_data return {"kkm.sn":"0300000091","kkm.ver":"001","fm.sn":"0000000000871839","fd.num":227343,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [10:49:17]process_action_free get_value [10:49:17]json_value_free [10:49:17]json_value_free done [10:49:17]process_json_proto returns [10:49:17]Send response to host [10:49:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000091","kkm.ver":"001","fm.sn":"0000000000871839","fd.num":227343,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [10:49:17]free response buf [10:49:17]execute_script done [10:49:17]execute_script returns [10:49:17]free content buf [10:49:17]Sock 9.Close socket [10:49:17]Sock 9.Thread stoped [10:49:17]accept exits with 8 [10:49:17]New connection [10:49:17]New thread 3066686820 created [10:49:17]Thread 3066543460 joined [10:49:17]Waiting for new connection... [10:49:17] Sock 8.Parse request [10:49:17]Sock 8.Check first char [10:49:17]Sock 8.First char is OK [10:49:17]request: POST /json_proto HTTP/1.0 [10:49:17]Method: POST [10:49:17]URL: /json_proto [10:49:17]Method is POST - this is cgi request [10:49:17]url: /json_proto [10:49:17]query_string will be loaded in cgi processing [10:49:17]execute_cgi json_proto POST (null) [10:49:17]execute_cgi path=json_proto method=POST [10:49:17]POST find Content-Length [10:49:17]Host: 172.17.44.195:8080 [10:49:17]Content-Length: 331 [10:49:17]Content-Type: application/json [10:49:17] [10:49:17]POST finish read [10:49:17]Found Content-Length = 331 [10:49:17]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" ] } } [10:49:17]execute_script... [10:49:17]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" ] } } [10:49:17]POST & json_proto [10:49:17]process_json_proto [10:49:17]json parsed OK: [10:49:17]protocol is kg_v1.0 [10:49:17]action value=get_value [10:49:17]process_action get_value [10:49:17]cmd_get_value [10:49:17]process_action get_value done [10:49:17]requested_data is exist [10:49:17]produce_requested_data [10:49:17]requested_item fm.sale.total is exist - process it [10:49:17]SAM_PROTO_GetFMData [10:49:17]wFMCommunicate request_size=4 [10:49:17]MH_SAM_APDU [10:49:17]CAPDU: 80 13 03 00 [10:49:17]Write to MH i2c: E2 08 00 78 00 80 13 03 00 00 00 00 00 F7 [10:49:17]Write i2c OK [10:49:17]MH_I2C_Read... [10:49:18]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [10:49:18]Read from MH i2c: E2 [10:49:18]MH_I2C_Read... [10:49:18]Read from MH i2c: E2 FD 00 [10:49:18]MH_I2C_Read... [10:49:18]Read from MH i2c: E2 FD 00 78 00 00 C5 04 85 04 C1 04 6E 04 04 00 E5 73 03 00 69 04 A3 00 6F 04 04 00 F6 6C 03 00 B1 04 05 00 55 1B 2F C3 04 70 04 05 00 60 9C 00 4A 04 72 04 04 00 F5 7E 2E 79 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 DB 45 83 81 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 29 C4 CA 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 EF 06 00 00 B1 04 04 00 C8 99 CF 1E 70 04 04 00 C8 99 CF 1E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 79 B4 45 03 EF 03 09 90 00 90 [10:49:18]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 E5 73 03 00 69 04 A3 00 6F 04 04 00 F6 6C 03 00 B1 04 05 00 55 1B 2F C3 04 70 04 05 00 60 9C 00 4A 04 72 04 04 00 F5 7E 2E 79 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 DB 45 83 81 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 29 C4 CA 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 EF 06 00 00 B1 04 04 00 C8 99 CF 1E 70 04 04 00 C8 99 CF 1E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 79 B4 45 03 EF 03 09 90 00 [10:49:18]wFMCommunicate OK [10:49:18]wFMCommunicate request_size=4 [10:49:18]MH_SAM_APDU [10:49:18]CAPDU: 80 17 00 00 [10:49:18]Write to MH i2c: E2 08 00 79 00 80 17 00 00 00 00 00 00 F9 [10:49:18]Write i2c OK [10:49:18]MH_I2C_Read... [10:49:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:49:18]Read from MH i2c: E2 [10:49:18]MH_I2C_Read... [10:49:18]Read from MH i2c: E2 FD 00 [10:49:18]MH_I2C_Read... [10:49:18]Read from MH i2c: E2 FD 00 79 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8E CE 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 50 [10:49:19]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8E CE 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [10:49:19]wFMCommunicate OK [10:49:19]wFMCommunicate request_size=4 [10:49:19]MH_SAM_APDU [10:49:19]CAPDU: 80 17 00 00 [10:49:19]Write to MH i2c: E2 08 00 7A 00 80 17 00 00 00 00 00 00 FA [10:49:19]Write i2c OK [10:49:19]MH_I2C_Read... [10:49:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:49:19]Read from MH i2c: E2 [10:49:19]MH_I2C_Read... [10:49:19]Read from MH i2c: E2 FD 00 [10:49:19]MH_I2C_Read... [10:49:19]Read from MH i2c: E2 FD 00 7A 00 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 0C [10:49:19]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [10:49:19]wFMCommunicate OK [10:49:19]wFMCommunicate request_size=4 [10:49:19]MH_SAM_APDU [10:49:19]CAPDU: 80 17 00 00 [10:49:19]Write to MH i2c: E2 08 00 7B 00 80 17 00 00 00 00 00 00 FB [10:49:19]Write i2c OK [10:49:19]MH_I2C_Read... [10:49:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:49:20]Read from MH i2c: E2 [10:49:20]MH_I2C_Read... [10:49:20]Read from MH i2c: E2 FD 00 [10:49:20]MH_I2C_Read... [10:49:20]Read from MH i2c: E2 FD 00 7B 00 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 87 [10:49:20]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 OFD Sender: No OFD packet to send [10:49:20]09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [10:49:20]wFMCommunicate OK [10:49:20]wFMCommunicate request_size=4 [10:49:20]MH_SAM_APDU [10:49:20]CAPDU: 80 17 00 00 [10:49:20]Write to MH i2c: E2 08 00 7C 00 80 17 00 00 00 00 00 00 FC [10:49:20]Write i2c OK [10:49:20]MH_I2C_Read... [10:49:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [10:49:20]Read from MH i2c: E2 [10:49:20]MH_I2C_Read... [10:49:20]Read from MH i2c: E2 E2 00 [10:49:20]MH_I2C_Read... [10:49:20]Read from MH i2c: E2 E2 00 7C 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 DA [10:49:20]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [10:49:21]wFMCommunicate OK [10:49:21]SAM_PROTO_GetFMData done [10:49:21]requested_item fm.sale_refund.total is exist - process it [10:49:21]requested_item fm.buy.total is exist - process it [10:49:21]requested_item shift.sale.total is exist - process it [10:49:21]SAM_PROTO_GetShiftData [10:49:21]wFMCommunicate request_size=4 [10:49:21]MH_SAM_APDU [10:49:21]CAPDU: 80 13 02 00 [10:49:21]Write to MH i2c: E2 08 00 7D 00 80 13 02 00 00 00 00 00 FB [10:49:21]Write i2c OK [10:49:21]MH_I2C_Read... [10:49:21]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [10:49:21]Read from MH i2c: E2 [10:49:21]MH_I2C_Read... [10:49:21]Read from MH i2c: E2 FD 00 [10:49:21]MH_I2C_Read... [10:49:21]Read from MH i2c: E2 FD 00 7D 00 00 B1 04 AA 04 AD 04 6E 04 04 00 BF 00 00 00 69 04 9E 00 6F 04 04 00 BF 00 00 00 B1 04 04 00 BF 91 39 01 70 04 04 00 90 FB 13 01 72 04 03 00 2F 96 25 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 CC 4E 21 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 89 C6 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 EF [10:49:21]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 BF 00 00 00 69 04 9E 00 6F 04 04 00 BF 00 00 00 B1 04 04 00 BF 91 39 01 70 04 04 00 90 FB 13 01 72 04 03 00 2F 96 25 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 CC 4E 21 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 89 C6 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [10:49:21]wFMCommunicate OK [10:49:21]wFMCommunicate request_size=4 [10:49:21]MH_SAM_APDU [10:49:21]CAPDU: 80 17 00 00 [10:49:21]Write to MH i2c: E2 08 00 7E 00 80 17 00 00 00 00 00 00 FE [10:49:21]Write i2c OK [10:49:21]MH_I2C_Read... [10:49:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:49:22]Read from MH i2c: E2 [10:49:22]MH_I2C_Read... [10:49:22]Read from MH i2c: E2 FD 00 [10:49:22]MH_I2C_Read... [10:49:22]Read from MH i2c: E2 FD 00 7E 00 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 17 [10:49:22]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [10:49:22]wFMCommunicate OK [10:49:22]wFMCommunicate request_size=4 [10:49:22]MH_SAM_APDU [10:49:22]CAPDU: 80 17 00 00 [10:49:22]Write to MH i2c: E2 08 00 7F 00 80 17 00 00 00 00 00 00 FF [10:49:22]Write i2c OK [10:49:22]MH_I2C_Read... [10:49:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:49:22]Read from MH i2c: E2 [10:49:22]MH_I2C_Read... [10:49:22]Read from MH i2c: E2 FD 00 [10:49:22]MH_I2C_Read... [10:49:22]Read from MH i2c: E2 FD 00 7F 00 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 B8 [10:49:23]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [10:49:23]wFMCommunicate OK [10:49:23]wFMCommunicate request_size=4 [10:49:23]MH_SAM_APDU [10:49:23]CAPDU: 80 17 00 00 [10:49:23]Write to MH i2c: E2 08 00 80 00 80 17 00 00 00 00 00 00 00 [10:49:23]Write i2c OK [10:49:23]MH_I2C_Read... [10:49:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:49:23]Read from MH i2c: E2 [10:49:23]MH_I2C_Read... [10:49:23]Read from MH i2c: E2 FD 00 [10:49:23]MH_I2C_Read... [10:49:23]Read from MH i2c: E2 FD 00 80 00 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 78 [10:49:23]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [10:49:23]wFMCommunicate OK [10:49:23]wFMCommunicate request_size=4 [10:49:23]MH_SAM_APDU [10:49:23]CAPDU: 80 17 00 00 [10:49:23]Write to MH i2c: E2 08 00 81 00 80 17 00 00 00 00 00 00 01 [10:49:23]Write i2c OK [10:49:23]MH_I2C_Read... [10:49:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [10:49:24]Read from MH i2c: E2 [10:49:24]MH_I2C_Read... [10:49:24]Read from MH i2c: E2 CE 00 [10:49:24]MH_I2C_Read... [10:49:24]Read from MH i2c: E2 CE 00 81 00 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 E6 [10:49:24]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [10:49:24]wFMCommunicate OK [10:49:24]SAM_PROTO_GetShiftData done [10:49:24]requested_item shift.sale.total_cash is exist - process it [10:49:24]requested_item shift.sale_refund.total is exist - process it [10:49:24]requested_item shift.sale_refund.total_cash is exist - process it [10:49:24]requested_item shift.buy.total is exist - process it [10:49:24]requested_item shift.buy.total_cash is exist - process it [10:49:24]produce_requested_data done [10:49:24]produce_requested_data return {"fm.sale.total":204545134.93,"fm.sale_refund.total":5169218.00,"fm.buy.total":0.00,"shift.sale.total":205500.79,"shift.sale.total_cash":180868.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} [10:49:24]process_action_free get_value [10:49:24]json_value_free [10:49:24]json_value_free done [10:49:24]process_json_proto returns [10:49:24]Send response to host [10:49:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":204545134.93,"fm.sale_refund.total":5169218.00,"fm.buy.total":0.00,"shift.sale.total":205500.79,"shift.sale.total_cash":180868.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}}} [10:49:24]free response buf [10:49:24]execute_script done [10:49:24]execute_script returns [10:49:24]free content buf [10:49:24]Sock 8.Close socket [10:49:24]Sock 8.Thread stoped [10:49:24]accept exits with 9 [10:49:24]New connection [10:49:24]New thread 3066543460 created [10:49:24]Thread 3066686820 joined [10:49:24]Waiting for new connection... [10:49:24] Sock 9.Parse request [10:49:24]Sock 9.Check first char [10:49:24]Sock 9.First char is OK [10:49:24]request: POST /json_proto HTTP/1.0 [10:49:24]Method: POST [10:49:24]URL: /json_proto [10:49:24]Method is POST - this is cgi request [10:49:24]url: /json_proto [10:49:24]query_string will be loaded in cgi processing [10:49:24]execute_cgi json_proto POST (null) [10:49:24]execute_cgi path=json_proto method=POST [10:49:24]POST find Content-Length [10:49:24]Host: 172.17.44.195:8080 [10:49:24]Content-Length: 679 [10:49:24]Content-Type: application/json [10:49:24] [10:49:24]POST finish read [10:49:24]Found Content-Length = 679 [10:49:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962829", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:24]execute_script... [10:49: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)1962829", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:24]POST & json_proto [10:49:24]process_json_proto [10:49:24]json parsed OK: [10:49:24]protocol is kg_v1.0 [10:49:24]action value=close_receipt [10:49:24]process_action close_receipt [10:49:24]cmd_close_receipt [10:49:24]MH_GetDate [10:49:24]Write to MH i2c: F0 00 00 82 00 71 [10:49:24]Write i2c OK [10:49:24]MH_I2C_Read... [10:49:24]Read from MH i2c: F0 [10:49:24]MH_I2C_Read... [10:49:24]Read from MH i2c: F0 09 00 [10:49:24]MH_I2C_Read... [10:49:24]Read from MH i2c: F0 09 00 82 00 00 35 E0 14 67 82 C9 CF 66 8A [10:49:24]GetLastDocTimeStamp 1729420534 [10:49:24]current date 1729421365 [10:49:24]FM_GetShiftState [10:49:24]SAM_PROTO_GetShiftState [10:49:24]wFMCommunicate request_size=4 [10:49:24]MH_SAM_APDU [10:49:24]CAPDU: 80 13 01 00 [10:49:24]Write to MH i2c: E2 08 00 83 00 80 13 01 00 00 00 00 00 00 [10:49:24]Write i2c OK [10:49:24]MH_I2C_Read... [10:49:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:24]Read from MH i2c: E2 [10:49:24]MH_I2C_Read... [10:49:24]Read from MH i2c: E2 0E 00 [10:49:24]MH_I2C_Read... [10:49:24]Read from MH i2c: E2 0E 00 83 00 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 1A [10:49:24]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:49:24]wFMCommunicate OK [10:49:24]SAM_PROTO_GetShiftState done [10:49:24]FM_GetShiftState done [10:49:24]opened in 1729383750 [10:49:24]opened+sec_in_day 1729470150 [10:49:24]quantity*price = 70044 [10:49:24]sum+1 = 70045 [10:49:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 192 20.10.2024 10:49 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227344 ФПД: 216764884006449 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T104925&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227344&fm=216764884006449&tin=02508201610067®Number=0000000000091685&sum=70000 [10:49:26]StoreToDocumentArchive [10:49:26]shift 533 fd 227344 [10:49:26]save to /storage/0533/doc_00227344 [10:49:26]save last doc name /storage/0533/doc_00227344 to /storage/kkm_last_doc_name [10:49:26]save OK [10:49:26]Clear old archive folders... [10:49:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:49:26]tlvbuf is 0189D830 [10:49:26]SAM_PROTO_ClearQueue [10:49:26]wFMCommunicate request_size=4 [10:49:26]MH_SAM_APDU [10:49:26]CAPDU: 80 09 00 00 [10:49:26]Write to MH i2c: E2 08 00 90 00 80 09 00 00 00 00 00 00 02 [10:49:26]Write i2c OK [10:49:26]MH_I2C_Read... [10:49:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:49:26]Read from MH i2c: E2 [10:49:26]MH_I2C_Read... [10:49:26]Read from MH i2c: E2 03 00 [10:49:26]MH_I2C_Read... [10:49:26]Read from MH i2c: E2 03 00 90 00 00 90 00 04 [10:49:26]RAPDU: 90 00 [10:49:26]wFMCommunicate OK [10:49:26]SAM_PROTO_ClearQueue done [10:49:26]KKMCreateOFDPacket [10:49:26]OFDProtocolAddRootSTLVToBuf [10:49:26]FM_MakeSignedData [10:49:26]FM_MakeSignedData [10:49:26]SAM_PROTO_SignData [10:49:26]wFMCommunicate request_size=4 [10:49:26]MH_SAM_APDU [10:49:26]CAPDU: 80 0D 01 02 [10:49:26]Write to MH i2c: E2 08 00 91 00 80 0D 01 02 00 00 00 00 0A [10:49:26]Write i2c OK [10:49:26]MH_I2C_Read... [10:49:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:49:26]Read from MH i2c: E2 [10:49:26]MH_I2C_Read... [10:49:26]Read from MH i2c: E2 03 00 [10:49:26]MH_I2C_Read... [10:49:26]Read from MH i2c: E2 03 00 91 00 00 90 00 05 [10:49:26]RAPDU: 90 00 [10:49:26]wFMCommunicate OK [10:49:26]wFMCommunicate request_size=255 [10:49:26]MH_SAM_APDU [10:49:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 35 E0 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 10 78 03 00 35 04 06 00 C5 [10:49:27]Write to MH i2c: E2 02 01 92 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 35 E0 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 10 78 03 00 35 04 06 00 C5 00 00 68 [10:49:27]Write i2c OK [10:49:27]MH_I2C_Read... [10:49:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:27]Read from MH i2c: E2 [10:49:27]MH_I2C_Read... [10:49:27]Read from MH i2c: E2 03 00 [10:49:27]MH_I2C_Read... [10:49:27]Read from MH i2c: E2 03 00 92 00 00 90 00 06 [10:49:27]RAPDU: 90 00 [10:49:27]wFMCommunicate OK [10:49:27]wFMCommunicate request_size=10 [10:49:27]MH_SAM_APDU [10:49:27]CAPDU: 80 0D 02 02 05 25 81 E9 36 31 [10:49:27]Write to MH i2c: E2 0D 00 93 00 80 0D 02 02 05 00 25 81 E9 36 31 00 00 0D [10:49:27]Write i2c OK [10:49:27]MH_I2C_Read... [10:49:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:27]Read from MH i2c: E2 [10:49:27]MH_I2C_Read... [10:49:27]Read from MH i2c: E2 03 00 [10:49:27]MH_I2C_Read... [10:49:27]Read from MH i2c: E2 03 00 93 00 00 90 00 07 [10:49:27]RAPDU: 90 00 [10:49:27]wFMCommunicate OK [10:49:27]wFMCommunicate request_size=4 [10:49:27]MH_SAM_APDU [10:49:27]CAPDU: 80 0D 03 02 [10:49:27]Write to MH i2c: E2 08 00 94 00 80 0D 03 02 00 00 00 00 0F [10:49:27]Write i2c OK [10:49:27]MH_I2C_Read... [10:49:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:49:27]Read from MH i2c: E2 [10:49:27]MH_I2C_Read... [10:49:27]Read from MH i2c: E2 0B 00 [10:49:27]MH_I2C_Read... [10:49:27]Read from MH i2c: E2 0B 00 94 00 00 70 E4 A5 C9 78 65 6A 40 90 00 59 [10:49:27]RAPDU: 70 E4 A5 C9 78 65 6A 40 90 00 [10:49:27]wFMCommunicate OK [10:49:27]SAM_PROTO_SignData done [10:49:27]FM_MakeSignedData done [10:49:27]CreateOFDProtocolMessage [10:49:27]wFMCommunicate request_size=4 [10:49:27]MH_SAM_APDU [10:49:27]CAPDU: 80 11 00 00 [10:49:27]Write to MH i2c: E2 08 00 95 00 80 11 00 00 00 00 00 00 0F [10:49:27]Write i2c OK [10:49:27]MH_I2C_Read... [10:49:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:27]Read from MH i2c: E2 [10:49:27]MH_I2C_Read... [10:49:27]Read from MH i2c: E2 17 00 [10:49:27]MH_I2C_Read... [10:49:27]Read from MH i2c: E2 17 00 95 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 66 [10:49:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:49:27]wFMCommunicate OK [10:49:27]CreateOFDProtocolMessage done [10:49:27]OFDSenderStorePacket 227344 [10:49:27]StoreOFDPacket docnum=227344 [10:49:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 EB DD 07 01 95 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 35 E0 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 10 78 03 00 35 04 06 00 C5 25 81 E9 36 31 70 E4 A5 C9 78 65 6A 40 [10:49:27]CheckFolder [10:49:27]dirname=/storage/ofd_packets [10:49:27]CheckFolder done [10:49:27]ProducePacketName [10:49:27]name=ofd_packets/00227344 [10:49:27]NVStorageSaveData ofd_packets/00227344 [10:49:27]File name is /storage/ofd_packets/00227344 [10:49:27]Write 301 bytes [10:49:27]NVStorageSaveData done [10:49:27]OFDSenderStorePacket done [10:49:27]KKMCreateOFDPacket done [10:49:27]NVStorageSaveData kkm_last_timestamp [10:49:27]File name is /storage/kkm_last_timestamp [10:49:27]Write 4 bytes [10:49:27]NVStorageSaveData done [10:49:27]ExternCall_PrintAddStr [10:49:28]wPrintStart [10:49:28]Write to MH i2c: 01 00 00 96 00 96 [10:49:28]Write i2c OK [10:49:28]MH_I2C_Read... [10:49:28]Read from MH i2c: 01 [10:49:28]MH_I2C_Read... [10:49:28]Read from MH i2c: 01 07 00 [10:49:28]MH_I2C_Read... [10:49:28]Read from MH i2c: 01 07 00 96 00 00 00 00 00 00 FF 0F AB [10:49:28]RasterBufferAndPrint [10:49:28]line Счет N : (1)1962829 [10:49:28]line ИНН: 02508201610067 [10:49:28]line Контрольно-Кассовый Чек [10:49:28]line ПРОДАЖА [10:49:28]line ТРК (МРК, ГНК) : 63 [10:49:28]line Товар: 2710124130 [10:49:28]line Аи-92-К-5 [10:49:28]line 10.470 * 66.90 [10:49:28]line = 700.44 [10:49:28]line НДС 12% НСП 1% [10:49:28]line > о реализуемом товаре [10:49:28]line ОКРУГЛЕНИЕ: -0.44 [10:49:28]line ИТОГО: 700.00 [10:49:28]line Внесено: 700.00 [10:49:28]line СДАЧА: 0.00 [10:49:28]line НСП 1% : 6.20 [10:49:28]line НДС 12% : 74.38 [10:49:28]line Наличными: 700.00 [10:49:28]line Безнал.: 0.00 [10:49:28]line Место: АЗС № 133 "Партнер Нефть" [10:49:28]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:49:28]line СНО: Общий режим [10:49:28]line Чек 192 20.10.2024 10:49 [10:49:28]line Смена: 533 ФФД: 1.0 [10:49:28]line ЗНМ: 0300000091 [10:49:28]line РНМ: 0000000000091685 [10:49:28]line Версия ККМ: 001 [10:49:28]line ФМ: 0000000000871839 [10:49:28]line ФД: 227344 [10:49:28]line ФПД: 216764884006449 [10:49:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T104925&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227344&fm=216764884006449&tin=02508201610067®Number=0000000000091685&sum=70000 [10:49:28]written 0, free lines is 4095 [10:49:28]OFD Sender: Processing packet 227344 [packets to send 38, broken 37] [10:49:28]ProducePacketName [10:49:28]name=ofd_packets/00227344 [10:49:28]OFD Sender: To server: pG, [10:49:28]CommunicateWithHost lk.salyk.kg:30040 [10:49:28]ConnectInit lk.salyk.kg [10:49:28]Connected sock=8 [10:49:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 EB DD 07 01 95 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 35 E0 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 10 78 03 00 35 04 06 00 C5 25 81 E9 36 31 70 E4 A5 C9 78 65 6A 40 [10:49:28]Write to MH i2c: 01 00 00 C0 00 C0 [10:49:28]Write i2c OK [10:49:28]MH_I2C_Read... [10:49:28]Read from MH i2c: 01 [10:49:28]MH_I2C_Read... [10:49:28]Read from MH i2c: 01 07 00 [10:49:28]MH_I2C_Read... [10:49:28]Read from MH i2c: 01 07 00 C0 00 00 00 00 00 00 1A 0D EE [10:49:28]RasterBufferAndPrint [10:49:28]line [10:49:28]line [10:49:28]line [10:49:28]line [10:49:28]line [10:49:28]written 0, free lines is 3402 [10:49:28]process_action close_receipt done [10:49:28]requested_data is exist [10:49:28]produce_requested_data [10:49:28]requested_item fm.sn is exist - process it [10:49:28]wFMCommunicate request_size=4 [10:49:28]MH_SAM_APDU [10:49:28]CAPDU: 80 11 00 00 [10:49:28]Write to MH i2c: E2 08 00 C7 00 80 11 00 00 00 00 00 00 41 [10:49:28]Write i2c OK [10:49:28]MH_I2C_Read... [10:49:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:28]Read from MH i2c: E2 [10:49:28]MH_I2C_Read... [10:49:28]Read from MH i2c: E2 17 00 [10:49:28]MH_I2C_Read... [10:49:28]Read from MH i2c: E2 17 00 C7 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 98 [10:49:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:49:28]wFMCommunicate OK [10:49:28]requested_item fd.num is exist - process it [10:49:28]SAM_PROTO_GetFieldsCounters [10:49:28]wFMCommunicate request_size=4 [10:49:28]MH_SAM_APDU [10:49:28]CAPDU: 80 13 00 00 [10:49:28]Write to MH i2c: E2 08 00 C8 00 80 13 00 00 00 00 00 00 44 [10:49:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 EE 78 47 00 27 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 33 39 10 04 04 00 10 78 03 00 F4 03 04 00 36 8B 14 67 B6 04 01 Write i2c OK [10:49:28]00 MH_I2C_Read... [10:49:28]00 Read from MH i2c: 0A E2 *** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:49:28] [10:49:28]A6 MH_I2C_Read... [10:49:28]7D 9D 9E 46 A1 29 [10:49:28]CommunicateWithHost err = 0 [10:49:28]CheckOFDResponse [10:49:28]1017 (14) - 77093643461234 [10:49:28]1041 (16) - 0000000000871839 [10:49:28]1040 (4) - 227344 [10:49:28]1012 (4) - 20.10.2024 04:46 [10:49:28]Read from MH i2c: 1206 (1) - 0 [10:49:28]E2 OFD Sender: Remove packet 227344 [10:49:28]62 ProducePacketName [10:49:28]00 name=ofd_packets/00227344 [10:49:28] [10:49:28]NVStorageDeleteData [10:49:28]MH_I2C_Read... [10:49:29]Read from MH i2c: E2 62 00 C8 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 10 78 03 00 0E 04 04 00 15 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 4F [10:49: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 10 78 03 00 0E 04 04 00 15 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 [10:49:29]wFMCommunicate OK [10:49:29]SAM_PROTO_GetFieldsCounters done [10:49:29]requested_item shift.num is exist - process it [10:49:29]requested_item shift.opened is exist - process it [10:49:29]req_shift_opened [10:49:29]FM_GetShiftState [10:49:29]SAM_PROTO_GetShiftState [10:49:29]wFMCommunicate request_size=4 [10:49:29]MH_SAM_APDU [10:49:29]CAPDU: 80 13 01 00 [10:49:29]Write to MH i2c: E2 08 00 C9 00 80 13 01 00 00 00 00 00 46 [10:49:29]Write i2c OK [10:49:29]MH_I2C_Read... [10:49:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:29]Read from MH i2c: E2 [10:49:29]MH_I2C_Read... [10:49:29]Read from MH i2c: E2 0E 00 [10:49:29]MH_I2C_Read... [10:49:29]Read from MH i2c: E2 0E 00 C9 00 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 60 [10:49:29]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:49:29]wFMCommunicate OK [10:49:29]SAM_PROTO_GetShiftState done [10:49:29]FM_GetShiftState done [10:49:29]req_shift_opened done [10:49:29]requested_item shift.open_date is exist - process it [10:49:29]req_shift_open_date [10:49:29]req_shift_open_date done [10:49:29]produce_requested_data done [10:49:29]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227344,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [10:49:29]process_action_free close_receipt [10:49:29]json_value_free [10:49:29]json_value_free done [10:49:29]process_json_proto returns [10:49:29]Send response to host [10:49:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227344,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [10:49:29]free response buf [10:49:29]execute_script done [10:49:29]execute_script returns [10:49:29]free content buf [10:49:29]Sock 9.Close socket [10:49:29]Sock 9.Thread stoped [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:24]OFD Sender: No OFD packet to send [10:51:29]OFD Sender: No OFD packet to send [10:51:34]OFD Sender: No OFD packet to send [10:51:39]OFD Sender: No OFD packet to send [10:51:44]OFD Sender: No OFD packet to send [10:51:49]OFD Sender: No OFD packet to send [10:51:54]OFD Sender: No OFD packet to send [10:51:59]OFD Sender: No OFD packet to send [10:52:04]OFD Sender: No OFD packet to send [10:52:05]accept exits with 10 [10:52:05]New connection [10:52:05]New thread 3066686820 created [10:52:05]Thread 3066543460 joined [10:52:05]Waiting for new connection... [10:52:05] Sock 10.Parse request [10:52:05]Sock 10.Check first char [10:52:05]Sock 10.First char is OK [10:52:05]request: POST /json_proto HTTP/1.0 [10:52:05]Method: POST [10:52:05]URL: /json_proto [10:52:05]Method is POST - this is cgi request [10:52:05]url: /json_proto [10:52:05]query_string will be loaded in cgi processing [10:52:05]execute_cgi json_proto POST (null) [10:52:05]execute_cgi path=json_proto method=POST [10:52:05]POST find Content-Length [10:52:05]Host: 172.17.44.195:8080 [10:52:05]Content-Length: 678 [10:52:05]Content-Type: application/json [10:52:05] [10:52:05]POST finish read [10:52:05]Found Content-Length = 678 [10:52:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962850", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.950, "sum" : 130.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 130.00, "total" : 130.00, "payments": [ { "type": 0, "sum" : 130.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:05]execute_script... [10:52:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962850", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.950, "sum" : 130.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 130.00, "total" : 130.00, "payments": [ { "type": 0, "sum" : 130.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:05]POST & json_proto [10:52:05]process_json_proto [10:52:05]json parsed OK: [10:52:05]protocol is kg_v1.0 [10:52:05]action value=close_receipt [10:52:05]process_action close_receipt [10:52:05]cmd_close_receipt [10:52:05]MH_GetDate [10:52:05]Write to MH i2c: F0 00 00 CA 00 B9 [10:52:05]Write i2c OK [10:52:05]MH_I2C_Read... [10:52:05]Read from MH i2c: F0 [10:52:05]MH_I2C_Read... [10:52:05]Read from MH i2c: F0 09 00 [10:52:05]MH_I2C_Read... [10:52:05]Read from MH i2c: F0 09 00 CA 00 00 D6 E0 14 67 82 C9 CF 66 73 [10:52:05]GetLastDocTimeStamp 1729421365 [10:52:05]current date 1729421526 [10:52:05]FM_GetShiftState [10:52:05]SAM_PROTO_GetShiftState [10:52:05]wFMCommunicate request_size=4 [10:52:05]MH_SAM_APDU [10:52:05]CAPDU: 80 13 01 00 [10:52:05]Write to MH i2c: E2 08 00 CB 00 80 13 01 00 00 00 00 00 48 [10:52:05]Write i2c OK [10:52:05]MH_I2C_Read... [10:52:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:05]Read from MH i2c: E2 [10:52:05]MH_I2C_Read... [10:52:05]Read from MH i2c: E2 0E 00 [10:52:05]MH_I2C_Read... [10:52:05]Read from MH i2c: E2 0E 00 CB 00 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 62 [10:52:05]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:52:05]wFMCommunicate OK [10:52:05]SAM_PROTO_GetShiftState done [10:52:05]FM_GetShiftState done [10:52:05]opened in 1729383750 [10:52:05]opened+sec_in_day 1729470150 [10:52:05]quantity*price = 13045 [10:52:05]sum+1 = 13047 [10:52:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 130.00 Внесено: 130.00 СДАЧА: 0.00 НСП 1% : 1.15 НДС 12% : 13.85 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 193 20.10.2024 10:52 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227345 ФПД: 132986992831513 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105206&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227345&fm=132986992831513&tin=02508201610067®Number=0000000000091685&sum=13000 [10:52:07]StoreToDocumentArchive [10:52:07]shift 533 fd 227345 [10:52:07]save to /storage/0533/doc_00227345 [10:52:07]save last doc name /storage/0533/doc_00227345 to /storage/kkm_last_doc_name [10:52:07]save OK [10:52:07]Clear old archive folders... [10:52:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:52:07]tlvbuf is 0194D320 [10:52:07]SAM_PROTO_ClearQueue [10:52:07]wFMCommunicate request_size=4 [10:52:07]MH_SAM_APDU [10:52:07]CAPDU: 80 09 00 00 [10:52:07]Write to MH i2c: E2 08 00 D8 00 80 09 00 00 00 00 00 00 4A [10:52:07]Write i2c OK [10:52:07]MH_I2C_Read... [10:52:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:52:07]Read from MH i2c: E2 [10:52:07]MH_I2C_Read... [10:52:07]Read from MH i2c: E2 03 00 [10:52:07]MH_I2C_Read... [10:52:07]Read from MH i2c: E2 03 00 D8 00 00 90 00 4C [10:52:07]RAPDU: 90 00 [10:52:07]wFMCommunicate OK [10:52:07]SAM_PROTO_ClearQueue done [10:52:07]KKMCreateOFDPacket [10:52:07]OFDProtocolAddRootSTLVToBuf [10:52:07]FM_MakeSignedData [10:52:07]FM_MakeSignedData [10:52:07]SAM_PROTO_SignData [10:52:07]wFMCommunicate request_size=4 [10:52:07]MH_SAM_APDU [10:52:07]CAPDU: 80 0D 01 02 [10:52:07]Write to MH i2c: E2 08 00 D9 00 80 0D 01 02 00 00 00 00 52 [10:52:07]Write i2c OK [10:52:07]MH_I2C_Read... [10:52:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:52:07]Read from MH i2c: E2 [10:52:07]MH_I2C_Read... [10:52:07]Read from MH i2c: E2 03 00 [10:52:07]MH_I2C_Read... [10:52:07]Read from MH i2c: E2 03 00 D9 00 00 90 00 4D [10:52:07]RAPDU: 90 00 [10:52:07]wFMCommunicate OK [10:52:07]wFMCommunicate request_size=255 [10:52:07]MH_SAM_APDU [10:52:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 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 C1 00 00 00 F4 03 04 00 D6 E0 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 11 78 03 00 35 04 06 00 78 [10:52:07]Write to MH i2c: E2 02 01 DA 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 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 C1 00 00 00 F4 03 04 00 D6 E0 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 11 78 03 00 35 04 06 00 78 00 00 4F [10:52:07]Write i2c OK [10:52:07]MH_I2C_Read... [10:52:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:07]Read from MH i2c: E2 [10:52:07]MH_I2C_Read... [10:52:07]Read from MH i2c: E2 03 00 [10:52:07]MH_I2C_Read... [10:52:07]Read from MH i2c: E2 03 00 DA 00 00 90 00 4E [10:52:07]RAPDU: 90 00 [10:52:07]wFMCommunicate OK [10:52:07]wFMCommunicate request_size=10 [10:52:07]MH_SAM_APDU [10:52:07]CAPDU: 80 0D 02 02 05 F3 72 77 AC 19 [10:52:07]Write to MH i2c: E2 0D 00 DB 00 80 0D 02 02 05 00 F3 72 77 AC 19 00 00 00 [10:52:07]Write i2c OK [10:52:07]MH_I2C_Read... [10:52:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:07]Read from MH i2c: E2 [10:52:07]MH_I2C_Read... [10:52:07]Read from MH i2c: E2 03 00 [10:52:07]MH_I2C_Read... [10:52:07]Read from MH i2c: E2 03 00 DB 00 00 90 00 4F [10:52:07]RAPDU: 90 00 [10:52:07]wFMCommunicate OK [10:52:07]wFMCommunicate request_size=4 [10:52:07]MH_SAM_APDU [10:52:07]CAPDU: 80 0D 03 02 [10:52:07]Write to MH i2c: E2 08 00 DC 00 80 0D 03 02 00 00 00 00 57 [10:52:07]Write i2c OK [10:52:07]MH_I2C_Read... [10:52:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:52:07]Read from MH i2c: E2 [10:52:07]MH_I2C_Read... [10:52:07]Read from MH i2c: E2 0B 00 [10:52:07]MH_I2C_Read... [10:52:07]Read from MH i2c: E2 0B 00 DC 00 00 8E 3B 93 60 A1 88 C9 47 90 00 4D [10:52:07]RAPDU: 8E 3B 93 60 A1 88 C9 47 90 00 [10:52:07]wFMCommunicate OK [10:52:07]SAM_PROTO_SignData done [10:52:07]FM_MakeSignedData done [10:52:07]CreateOFDProtocolMessage [10:52:07]wFMCommunicate request_size=4 [10:52:07]MH_SAM_APDU [10:52:07]CAPDU: 80 11 00 00 [10:52:07]Write to MH i2c: E2 08 00 DD 00 80 11 00 00 00 00 00 00 57 [10:52:07]Write i2c OK [10:52:07]MH_I2C_Read... [10:52:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:07]Read from MH i2c: E2 [10:52:07]MH_I2C_Read... [10:52:07]Read from MH i2c: E2 17 00 [10:52:07]MH_I2C_Read... [10:52:07]Read from MH i2c: E2 17 00 DD 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 AE [10:52:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:52:07]wFMCommunicate OK [10:52:07]CreateOFDProtocolMessage done [10:52:07]OFDSenderStorePacket 227345 [10:52:07]StoreOFDPacket docnum=227345 [10:52:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 9F 88 07 01 28 E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 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 C1 00 00 00 F4 03 04 00 D6 E0 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 11 78 03 00 35 04 06 00 78 F3 72 77 AC 19 8E 3B 93 60 A1 88 C9 47 [10:52:07]CheckFolder [10:52:07]dirname=/storage/ofd_packets [10:52:07]CheckFolder done [10:52:07]ProducePacketName [10:52:07]name=ofd_packets/00227345 [10:52:07]NVStorageSaveData ofd_packets/00227345 [10:52:07]File name is /storage/ofd_packets/00227345 [10:52:07]Write 301 bytes [10:52:07]NVStorageSaveData done [10:52:07]OFDSenderStorePacket done [10:52:07]KKMCreateOFDPacket done [10:52:07]NVStorageSaveData kkm_last_timestamp [10:52:07]File name is /storage/kkm_last_timestamp [10:52:07]Write 4 bytes [10:52:07]NVStorageSaveData done [10:52:07]ExternCall_PrintAddStr [10:52:07]wPrintStart [10:52:07]Write to MH i2c: 01 00 00 DE 00 DE [10:52:07]OFD Sender: Processing packet 227345 [packets to send 38, broken 37] [10:52:07]ProducePacketName [10:52:07]name=ofd_packets/00227345 [10:52:07]OFD Sender: To server: pG, [10:52:07]CommunicateWithHost lk.salyk.kg:30040 [10:52:07]ConnectInit lk.salyk.kg [10:52:07]Write i2c OK [10:52:07]MH_I2C_Read... [10:52:07]Read from MH i2c: 01 [10:52:07]MH_I2C_Read... [10:52:07]Read from MH i2c: 01 07 00 [10:52:07]MH_I2C_Read... [10:52:07]Read from MH i2c: 01 07 00 DE 00 00 00 00 00 00 FF 0F F3 [10:52:07]RasterBufferAndPrint [10:52:07]line Счет N : (1)1962850 [10:52:07]line ИНН: 02508201610067 [10:52:07]line Контрольно-Кассовый Чек [10:52:07]line ПРОДАЖА [10:52:07]line ТРК (МРК, ГНК) : 43 [10:52:07]line Товар: 2710124130 [10:52:07]line Аи-92-К-5 [10:52:07]line 1.950 * 66.90 [10:52:07]line = 130.46 [10:52:07]line НДС 12% НСП 1% [10:52:07]line > о реализуемом товаре [10:52:07]line ОКРУГЛЕНИЕ: -0.46 [10:52:07]line ИТОГО: 130.00 [10:52:07]line Внесено: 130.00 [10:52:07]line СДАЧА: 0.00 [10:52:07]line НСП 1% : 1.15 [10:52:07]line НДС 12% : 13.85 [10:52:07]line Наличными: 130.00 [10:52:07]line Безнал.: 0.00 [10:52:07]line Место: АЗС № 133 "Партнер Нефть" [10:52:07]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:52:07]line СНО: Общий режим [10:52:07]line Чек 193 20.10.2024 10:52 [10:52:07]line Смена: 533 ФФД: 1.0 [10:52:07]line ЗНМ: 0300000091 [10:52:07]line РНМ: 0000000000091685 [10:52:07]line Версия ККМ: 001 [10:52:07]line ФМ: 0000000000871839 [10:52:07]line ФД: 227345 [10:52:07]line ФПД: 132986992831513 [10:52:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105206&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227345&fm=132986992831513&tin=02508201610067®Number=0000000000091685&sum=13000 [10:52:07]Connected sock=9 [10:52: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 33 39 0F 01 00 00 9F 88 07 01 28 E2 5A 03 01 00 03 00 FB written 0, free lines is 4095 [10:52:07]00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 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 C1 00 00 00 F4 03 04 00 D6 E0 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 11 78 03 00 35 04 06 00 78 F3 72 77 AC 19 8E 3B 93 60 A1 88 C9 47 [10:52: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 33 39 4F 00 00 00 22 D4 47 00 BE 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 33 39 10 04 04 00 11 78 03 00 F4 03 04 00 D5 8B 14 67 B6 04 01 00 00 87 86 FD E6 0D 79 7B D2 [10:52:08]CommunicateWithHost err = 0 [10:52:08]CheckOFDResponse [10:52:08]1017 (14) - 77093643461234 [10:52:08]1041 (16) - 0000000000871839 [10:52:08]1040 (4) - 227345 [10:52:08]1012 (4) - 20.10.2024 04:49 [10:52:08]1206 (1) - 0 [10:52:08]OFD Sender: Remove packet 227345 [10:52:08]ProducePacketName [10:52:08]name=ofd_packets/00227345 [10:52:08]NVStorageDeleteData [10:52:08]Write to MH i2c: 01 00 00 08 01 09 [10:52:08]Write i2c OK [10:52:08]MH_I2C_Read... [10:52:08]Read from MH i2c: 01 [10:52:08]MH_I2C_Read... [10:52:08]Read from MH i2c: 01 07 00 [10:52:08]MH_I2C_Read... [10:52:08]Read from MH i2c: 01 07 00 08 01 00 00 00 00 00 F7 0C 13 [10:52:08]RasterBufferAndPrint [10:52:08]line [10:52:08]line [10:52:08]line [10:52:08]line [10:52:08]line [10:52:08]written 0, free lines is 3326 [10:52:08]process_action close_receipt done [10:52:08]requested_data is exist [10:52:08]produce_requested_data [10:52:08]requested_item fm.sn is exist - process it [10:52:08]wFMCommunicate request_size=4 [10:52:08]MH_SAM_APDU [10:52:08]CAPDU: 80 11 00 00 [10:52:08]Write to MH i2c: E2 08 00 0F 01 80 11 00 00 00 00 00 00 8A [10:52:08]Write i2c OK [10:52:08]MH_I2C_Read... [10:52:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:08]Read from MH i2c: E2 [10:52:08]MH_I2C_Read... [10:52:08]Read from MH i2c: E2 17 00 [10:52:08]MH_I2C_Read... [10:52:08]Read from MH i2c: E2 17 00 0F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E1 [10:52:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:52:08]wFMCommunicate OK [10:52:08]requested_item fd.num is exist - process it [10:52:08]SAM_PROTO_GetFieldsCounters [10:52:08]wFMCommunicate request_size=4 [10:52:08]MH_SAM_APDU [10:52:08]CAPDU: 80 13 00 00 [10:52:08]Write to MH i2c: E2 08 00 10 01 80 13 00 00 00 00 00 00 8D [10:52:08]Write i2c OK [10:52:08]MH_I2C_Read... [10:52:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:52:08]Read from MH i2c: E2 [10:52:08]MH_I2C_Read... [10:52:08]Read from MH i2c: E2 62 00 [10:52:08]MH_I2C_Read... [10:52:08]Read from MH i2c: E2 62 00 10 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 11 78 03 00 0E 04 04 00 15 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 9C [10:52:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 11 78 03 00 0E 04 04 00 15 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 [10:52:08]wFMCommunicate OK [10:52:08]SAM_PROTO_GetFieldsCounters done [10:52:08]requested_item shift.num is exist - process it [10:52:08]requested_item shift.opened is exist - process it [10:52:08]req_shift_opened [10:52:08]FM_GetShiftState [10:52:08]SAM_PROTO_GetShiftState [10:52:08]wFMCommunicate request_size=4 [10:52:08]MH_SAM_APDU [10:52:08]CAPDU: 80 13 01 00 [10:52:08]Write to MH i2c: E2 08 00 11 01 80 13 01 00 00 00 00 00 8F [10:52:08]Write i2c OK [10:52:08]MH_I2C_Read... [10:52:08]OFD Sender: No OFD packet to send [10:52:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:08]Read from MH i2c: E2 [10:52:08]MH_I2C_Read... [10:52:08]Read from MH i2c: E2 0E 00 [10:52:08]MH_I2C_Read... [10:52:08]Read from MH i2c: E2 0E 00 11 01 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 A9 [10:52:08]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:52:08]wFMCommunicate OK [10:52:08]SAM_PROTO_GetShiftState done [10:52:08]FM_GetShiftState done [10:52:08]req_shift_opened done [10:52:08]requested_item shift.open_date is exist - process it [10:52:08]req_shift_open_date [10:52:08]req_shift_open_date done [10:52:08]produce_requested_data done [10:52:08]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227345,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [10:52:08]process_action_free close_receipt [10:52:08]json_value_free [10:52:08]json_value_free done [10:52:08]process_json_proto returns [10:52:08]Send response to host [10:52:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227345,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [10:52:08]free response buf [10:52:08]execute_script done [10:52:08]execute_script returns [10:52:08]free content buf [10:52:08]Sock 10.Close socket [10:52:08]Sock 10.Thread stoped [10:52:13]OFD Sender: No OFD packet to send [10:52:18]OFD Sender: No OFD packet to send [10:52:23]OFD Sender: No OFD packet to send [10:52:28]OFD Sender: No OFD packet to send [10:52:33]OFD Sender: No OFD packet to send [10:52:38]OFD Sender: No OFD packet to send [10:52:43]OFD Sender: No OFD packet to send [10:52:48]OFD Sender: No OFD packet to send [10:52:53]OFD Sender: No OFD packet to send [10:52:58]OFD Sender: No OFD packet to send [10:53:03]OFD Sender: No OFD packet to send [10:53:08]OFD Sender: No OFD packet to send [10:53:13]OFD Sender: No OFD packet to send [10:53:18]OFD Sender: No OFD packet to send [10:53:23]OFD Sender: No OFD packet to send [10:53:28]OFD Sender: No OFD packet to send [10:53:33]OFD Sender: No OFD packet to send [10:53:38]OFD Sender: No OFD packet to send [10:53:43]OFD Sender: No OFD packet to send [10:53:48]OFD Sender: No OFD packet to send [10:53:53]OFD Sender: No OFD packet to send [10:53:58]OFD Sender: No OFD packet to send [10:54:03]OFD Sender: No OFD packet to send [10:54:08]OFD Sender: No OFD packet to send [10:54:13]OFD Sender: No OFD packet to send [10:54:18]OFD Sender: No OFD packet to send [10:54:23]OFD Sender: No OFD packet to send [10:54:28]OFD Sender: No OFD packet to send [10:54:33]OFD Sender: No OFD packet to send [10:54:34]accept exits with 8 [10:54:34]New connection [10:54:34]New thread 3066543460 created [10:54:34]Thread 3066686820 joined [10:54:34]Waiting for new connection... [10:54:34] Sock 8.Parse request [10:54:34]Sock 8.Check first char [10:54:34]Sock 8.First char is OK [10:54:34]request: POST /json_proto HTTP/1.0 [10:54:34]Method: POST [10:54:34]URL: /json_proto [10:54:34]Method is POST - this is cgi request [10:54:34]url: /json_proto [10:54:34]query_string will be loaded in cgi processing [10:54:34]execute_cgi json_proto POST (null) [10:54:34]execute_cgi path=json_proto method=POST [10:54:34]POST find Content-Length [10:54:34]Host: 172.17.44.195:8080 [10:54:34]Content-Length: 678 [10:54:34]Content-Type: application/json [10:54:34] [10:54:34]POST finish read [10:54:34]Found Content-Length = 678 [10:54:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962851", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:34]execute_script... [10:54: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)1962851", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:34]POST & json_proto [10:54:34]process_json_proto [10:54:34]json parsed OK: [10:54:34]protocol is kg_v1.0 [10:54:34]action value=close_receipt [10:54:34]process_action close_receipt [10:54:34]cmd_close_receipt [10:54:34]MH_GetDate [10:54:34]Write to MH i2c: F0 00 00 12 01 02 [10:54:34]Write i2c OK [10:54:34]MH_I2C_Read... [10:54:34]Read from MH i2c: F0 [10:54:34]MH_I2C_Read... [10:54:34]Read from MH i2c: F0 09 00 [10:54:34]MH_I2C_Read... [10:54:34]Read from MH i2c: F0 09 00 12 01 00 6B E1 14 67 82 C9 CF 66 52 [10:54:34]GetLastDocTimeStamp 1729421526 [10:54:34]current date 1729421675 [10:54:34]FM_GetShiftState [10:54:34]SAM_PROTO_GetShiftState [10:54:34]wFMCommunicate request_size=4 [10:54:34]MH_SAM_APDU [10:54:34]CAPDU: 80 13 01 00 [10:54:34]Write to MH i2c: E2 08 00 13 01 80 13 01 00 00 00 00 00 91 [10:54:34]Write i2c OK [10:54:34]MH_I2C_Read... [10:54:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:34]Read from MH i2c: E2 [10:54:34]MH_I2C_Read... [10:54:34]Read from MH i2c: E2 0E 00 [10:54:34]MH_I2C_Read... [10:54:34]Read from MH i2c: E2 0E 00 13 01 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 AB [10:54:34]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:54:34]wFMCommunicate OK [10:54:34]SAM_PROTO_GetShiftState done [10:54:34]FM_GetShiftState done [10:54:34]opened in 1729383750 [10:54:34]opened+sec_in_day 1729470150 [10:54:34]quantity*price = 60009 [10:54:34]sum+1 = 60010 [10:54:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 194 20.10.2024 10:54 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227346 ФПД: 6319382368443 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105435&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227346&fm=6319382368443&tin=02508201610067®Number=0000000000091685&sum=60000 [10:54:36]StoreToDocumentArchive [10:54:36]shift 533 fd 227346 [10:54:36]save to /storage/0533/doc_00227346 [10:54:36]save last doc name /storage/0533/doc_00227346 to /storage/kkm_last_doc_name [10:54:36]save OK [10:54:36]Clear old archive folders... [10:54:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:54:36]tlvbuf is 0184D2A0 [10:54:36]SAM_PROTO_ClearQueue [10:54:36]wFMCommunicate request_size=4 [10:54:36]MH_SAM_APDU [10:54:36]CAPDU: 80 09 00 00 [10:54:36]Write to MH i2c: E2 08 00 20 01 80 09 00 00 00 00 00 00 93 [10:54:36]Write i2c OK [10:54:36]MH_I2C_Read... [10:54:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:54:36]Read from MH i2c: E2 [10:54:36]MH_I2C_Read... [10:54:36]Read from MH i2c: E2 03 00 [10:54:36]MH_I2C_Read... [10:54:36]Read from MH i2c: E2 03 00 20 01 00 90 00 95 [10:54:36]RAPDU: 90 00 [10:54:36]wFMCommunicate OK [10:54:36]SAM_PROTO_ClearQueue done [10:54:36]KKMCreateOFDPacket [10:54:36]OFDProtocolAddRootSTLVToBuf [10:54:36]FM_MakeSignedData [10:54:36]FM_MakeSignedData [10:54:36]SAM_PROTO_SignData [10:54:36]wFMCommunicate request_size=4 [10:54:36]MH_SAM_APDU [10:54:36]CAPDU: 80 0D 01 02 [10:54:36]Write to MH i2c: E2 08 00 21 01 80 0D 01 02 00 00 00 00 9B [10:54:36]Write i2c OK [10:54:36]MH_I2C_Read... [10:54:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:54:36]Read from MH i2c: E2 [10:54:36]MH_I2C_Read... [10:54:36]Read from MH i2c: E2 03 00 [10:54:36]MH_I2C_Read... [10:54:36]Read from MH i2c: E2 03 00 21 01 00 90 00 96 [10:54:36]RAPDU: 90 00 [10:54:36]wFMCommunicate OK [10:54:36]wFMCommunicate request_size=255 [10:54:36]MH_SAM_APDU [10:54:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 6B E1 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 12 78 03 00 35 04 06 00 05 [10:54:36]Write to MH i2c: E2 02 01 22 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 6B E1 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 12 78 03 00 35 04 06 00 05 00 00 41 [10:54:36]Write i2c OK [10:54:36]MH_I2C_Read... [10:54:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:36]Read from MH i2c: E2 [10:54:36]MH_I2C_Read... [10:54:36]Read from MH i2c: E2 03 00 [10:54:36]MH_I2C_Read... [10:54:36]Read from MH i2c: E2 03 00 22 01 00 90 00 97 [10:54:36]RAPDU: 90 00 [10:54:36]wFMCommunicate OK [10:54:36]wFMCommunicate request_size=10 [10:54:36]MH_SAM_APDU [10:54:36]CAPDU: 80 0D 02 02 05 BF 58 8A 90 BB [10:54:36]Write to MH i2c: E2 0D 00 23 01 80 0D 02 02 05 00 BF 58 8A 90 BB 00 00 94 [10:54:36]Write i2c OK [10:54:36]MH_I2C_Read... [10:54:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:36]Read from MH i2c: E2 [10:54:36]MH_I2C_Read... [10:54:36]Read from MH i2c: E2 03 00 [10:54:36]MH_I2C_Read... [10:54:36]Read from MH i2c: E2 03 00 23 01 00 90 00 98 [10:54:36]RAPDU: 90 00 [10:54:36]wFMCommunicate OK [10:54:36]wFMCommunicate request_size=4 [10:54:36]MH_SAM_APDU [10:54:36]CAPDU: 80 0D 03 02 [10:54:36]Write to MH i2c: E2 08 00 24 01 80 0D 03 02 00 00 00 00 A0 [10:54:36]Write i2c OK [10:54:36]MH_I2C_Read... [10:54:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:54:36]Read from MH i2c: E2 [10:54:36]MH_I2C_Read... [10:54:36]Read from MH i2c: E2 0B 00 [10:54:36]MH_I2C_Read... [10:54:36]Read from MH i2c: E2 0B 00 24 01 00 88 29 24 5E CC 9D C4 D9 90 00 DA [10:54:36]RAPDU: 88 29 24 5E CC 9D C4 D9 90 00 [10:54:36]wFMCommunicate OK [10:54:36]SAM_PROTO_SignData done [10:54:36]FM_MakeSignedData done [10:54:36]CreateOFDProtocolMessage [10:54:36]wFMCommunicate request_size=4 [10:54:36]MH_SAM_APDU [10:54:36]CAPDU: 80 11 00 00 [10:54:36]Write to MH i2c: E2 08 00 25 01 80 11 00 00 00 00 00 00 A0 [10:54:36]Write i2c OK [10:54:36]MH_I2C_Read... [10:54:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:36]Read from MH i2c: E2 [10:54:36]MH_I2C_Read... [10:54:36]Read from MH i2c: E2 17 00 [10:54:36]MH_I2C_Read... [10:54:36]Read from MH i2c: E2 17 00 25 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F7 [10:54:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:54:36]wFMCommunicate OK [10:54:36]CreateOFDProtocolMessage done [10:54:36]OFDSenderStorePacket 227346 [10:54:36]StoreOFDPacket docnum=227346 [10:54:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 D1 48 07 01 7F 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 6B E1 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 12 78 03 00 35 04 06 00 05 BF 58 8A 90 BB 88 29 24 5E CC 9D C4 D9 [10:54:36]CheckFolder [10:54:36]dirname=/storage/ofd_packets [10:54:36]CheckFolder done [10:54:36]ProducePacketName [10:54:36]name=ofd_packets/00227346 [10:54:36]NVStorageSaveData ofd_packets/00227346 [10:54:36]File name is /storage/ofd_packets/00227346 [10:54:36]Write 301 bytes [10:54:36]NVStorageSaveData done [10:54:36]OFDSenderStorePacket done [10:54:36]KKMCreateOFDPacket done [10:54:36]NVStorageSaveData kkm_last_timestamp [10:54:36]File name is /storage/kkm_last_timestamp [10:54:36]Write 4 bytes [10:54:36]NVStorageSaveData done [10:54:36]ExternCall_PrintAddStr [10:54:36]wPrintStart [10:54:36]Write to MH i2c: 01 00 00 26 01 27 [10:54:36]Write i2c OK [10:54:36]MH_I2C_Read... [10:54:36]Read from MH i2c: 01 [10:54:36]MH_I2C_Read... [10:54:36]Read from MH i2c: 01 07 00 [10:54:36]MH_I2C_Read... [10:54:36]Read from MH i2c: 01 07 00 26 01 00 00 00 00 00 FF 0F 3C [10:54:36]RasterBufferAndPrint [10:54:36]line Счет N : (1)1962851 [10:54:36]line ИНН: 02508201610067 [10:54:36]line Контрольно-Кассовый Чек [10:54:36]line ПРОДАЖА [10:54:36]line ТРК (МРК, ГНК) : 53 [10:54:36]line Товар: 2710124130 [10:54:36]line Аи-92-К-5 [10:54:36]line 8.970 * 66.90 [10:54:36]line = 600.09 [10:54:36]line НДС 12% НСП 1% [10:54:36]line > о реализуемом товаре [10:54:36]line ОКРУГЛЕНИЕ: -0.09 [10:54:36]line ИТОГО: 600.00 [10:54:36]line Внесено: 600.00 [10:54:36]line СДАЧА: 0.00 [10:54:36]line НСП 1% : 5.31 [10:54:36]line НДС 12% : 63.73 [10:54:36]line Наличными: 600.00 [10:54:36]line Безнал.: 0.00 [10:54:36]line Место: АЗС № 133 "Партнер Нефть" [10:54:36]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:54:36]line СНО: Общий режим [10:54:36]line Чек 194 20.10.2024 10:54 [10:54:36]line Смена: 533 ФФД: 1.0 [10:54:36]line ЗНМ: 0300000091 [10:54:36]line РНМ: 0000000000091685 [10:54:36]line Версия ККМ: 001 [10:54:36]line ФМ: 0000000000871839 [10:54:36]line ФД: 227346 [10:54:36]line ФПД: 6319382368443 [10:54:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105435&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227346&fm=6319382368443&tin=02508201610067®Number=0000000000091685&sum=60000 [10:54:36]written 0, free lines is 4095 [10:54:36]OFD Sender: Processing packet 227346 [packets to send 38, broken 37] [10:54:36]ProducePacketName [10:54:36]name=ofd_packets/00227346 [10:54:36]OFD Sender: To server: pG, [10:54:36]CommunicateWithHost lk.salyk.kg:30040 [10:54:36]ConnectInit lk.salyk.kg [10:54:36]Connected sock=10 [10:54: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 33 39 0F 01 00 00 D1 48 07 01 7F 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 6B E1 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 12 78 03 00 35 04 06 00 05 BF 58 8A 90 BB 88 29 24 5E CC 9D C4 D9 [10:54: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 33 39 4F 00 00 00 5D CD 47 00 C1 DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 12 78 03 00 F4 03 04 00 6A 8C 14 67 B6 04 01 00 00 C0 0F EB D6 72 93 2C ED [10:54:37]CommunicateWithHost err = 0 [10:54:37]CheckOFDResponse [10:54:37]1017 (14) - 77093643461234 [10:54:37]1041 (16) - 0000000000871839 [10:54:37]1040 (4) - 227346 [10:54:37]1012 (4) - 20.10.2024 04:51 [10:54:37]1206 (1) - 0 [10:54:37]OFD Sender: Remove packet 227346 [10:54:37]ProducePacketName [10:54:37]name=ofd_packets/00227346 [10:54:37]NVStorageDeleteData [10:54:37]Write to MH i2c: 01 00 00 50 01 51 [10:54:37]Write i2c OK [10:54:37]MH_I2C_Read... [10:54:37]Read from MH i2c: 01 [10:54:37]MH_I2C_Read... [10:54:37]Read from MH i2c: 01 07 00 [10:54:37]MH_I2C_Read... [10:54:37]Read from MH i2c: 01 07 00 50 01 00 00 00 00 00 FA 0C 5E [10:54:37]RasterBufferAndPrint [10:54:37]line [10:54:37]line [10:54:37]line [10:54:37]line [10:54:37]line [10:54:37]written 0, free lines is 3329 [10:54:37]process_action close_receipt done [10:54:37]requested_data is exist [10:54:37]produce_requested_data [10:54:37]requested_item fm.sn is exist - process it [10:54:37]wFMCommunicate request_size=4 [10:54:37]MH_SAM_APDU [10:54:37]CAPDU: 80 11 00 00 [10:54:37]Write to MH i2c: E2 08 00 57 01 80 11 00 00 00 00 00 00 D2 [10:54:37]Write i2c OK [10:54:37]MH_I2C_Read... [10:54:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:37]Read from MH i2c: E2 [10:54:37]MH_I2C_Read... [10:54:37]Read from MH i2c: E2 17 00 [10:54:37]MH_I2C_Read... [10:54:37]Read from MH i2c: E2 17 00 57 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 29 [10:54:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:54:37]wFMCommunicate OK [10:54:37]requested_item fd.num is exist - process it [10:54:37]SAM_PROTO_GetFieldsCounters [10:54:37]wFMCommunicate request_size=4 [10:54:37]MH_SAM_APDU [10:54:37]CAPDU: 80 13 00 00 [10:54:37]Write to MH i2c: E2 08 00 58 01 80 13 00 00 00 00 00 00 D5 [10:54:37]Write i2c OK [10:54:37]MH_I2C_Read... [10:54:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:54:37]Read from MH i2c: E2 [10:54:37]MH_I2C_Read... [10:54:37]Read from MH i2c: E2 62 00 [10:54:37]MH_I2C_Read... [10:54:37]Read from MH i2c: E2 62 00 58 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 12 78 03 00 0E 04 04 00 15 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 E8 [10:54: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 12 78 03 00 0E 04 04 00 15 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 [10:54:37]wFMCommunicate OK [10:54:37]SAM_PROTO_GetFieldsCounters done [10:54:37]requested_item shift.num is exist - process it [10:54:37]requested_item shift.opened is exist - process it [10:54:37]req_shift_opened [10:54:37]FM_GetShiftState [10:54:37]SAM_PROTO_GetShiftState [10:54:37]wFMCommunicate request_size=4 [10:54:37]MH_SAM_APDU [10:54:37]CAPDU: 80 13 01 00 [10:54:37]Write to MH i2c: E2 08 00 59 01 80 13 01 00 00 00 00 00 D7 [10:54:37]Write i2c OK [10:54:37]MH_I2C_Read... [10:54:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:37]Read from MH i2c: E2 [10:54:37]MH_I2C_Read... [10:54:37]Read from MH i2c: E2 0E 00 [10:54:37]MH_I2C_Read... [10:54:37]Read from MH i2c: E2 0E 00 59 01 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 F1 [10:54:37]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:54:37]wFMCommunicate OK [10:54:37]SAM_PROTO_GetShiftState done [10:54:37]FM_GetShiftState done [10:54:37]req_shift_opened done [10:54:37]requested_item shift.open_date is exist - process it [10:54:37]req_shift_open_date [10:54:37]req_shift_open_date done [10:54:37]produce_requested_data done [10:54:37]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227346,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [10:54:37]process_action_free close_receipt [10:54:37]json_value_free [10:54:37]json_value_free done [10:54:37]process_json_proto returns [10:54:37]Send response to host [10:54:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227346,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [10:54:37]free response buf [10:54:37]execute_script done [10:54:37]execute_script returns [10:54:37]free content buf [10:54:37]Sock 8.Close socket [10:54:37]Sock 8.Thread stoped [10:54:37]OFD Sender: No OFD packet to send [10:54:42]OFD Sender: No OFD packet to send [10:54:47]OFD Sender: No OFD packet to send [10:54:52]OFD Sender: No OFD packet to send [10:54:57]OFD Sender: No OFD packet to send [10:55:02]OFD Sender: No OFD packet to send [10:55:07]OFD Sender: No OFD packet to send [10:55:12]OFD Sender: No OFD packet to send [10:55:17]OFD Sender: No OFD packet to send [10:55:22]OFD Sender: No OFD packet to send [10:55:27]OFD Sender: No OFD packet to send [10:55:32]OFD Sender: No OFD packet to send [10:55:37]OFD Sender: No OFD packet to send [10:55:42]OFD Sender: No OFD packet to send [10:55:47]OFD Sender: No OFD packet to send [10:55:52]OFD Sender: No OFD packet to send [10:55:57]OFD Sender: No OFD packet to send [10:56:02]OFD Sender: No OFD packet to send [10:56:07]OFD Sender: No OFD packet to send [10:56:08]accept exits with 9 [10:56:08]New connection [10:56:08]New thread 3066686820 created [10:56:08]Thread 3066543460 joined [10:56:08]Waiting for new connection... [10:56:08] Sock 9.Parse request [10:56:08]Sock 9.Check first char [10:56:08]Sock 9.First char is OK [10:56:08]request: POST /json_proto HTTP/1.0 [10:56:08]Method: POST [10:56:08]URL: /json_proto [10:56:08]Method is POST - this is cgi request [10:56:08]url: /json_proto [10:56:08]query_string will be loaded in cgi processing [10:56:08]execute_cgi json_proto POST (null) [10:56:08]execute_cgi path=json_proto method=POST [10:56:08]POST find Content-Length [10:56:08]Host: 172.17.44.195:8080 [10:56:08]Content-Length: 767 [10:56:08]Content-Type: application/json [10:56:08] [10:56:08]POST finish read [10:56:08]Found Content-Length = 767 [10:56:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962852", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:56:08]execute_script... [10:56:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962852", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:56:08]POST & json_proto [10:56:08]process_json_proto [10:56:08]json parsed OK: [10:56:08]protocol is kg_v1.0 [10:56:08]action value=close_receipt [10:56:08]process_action close_receipt [10:56:08]cmd_close_receipt [10:56:08]MH_GetDate [10:56:08]Write to MH i2c: F0 00 00 5A 01 4A [10:56:08]Write i2c OK [10:56:08]MH_I2C_Read... [10:56:08]Read from MH i2c: F0 [10:56:08]MH_I2C_Read... [10:56:08]Read from MH i2c: F0 09 00 [10:56:08]MH_I2C_Read... [10:56:08]Read from MH i2c: F0 09 00 5A 01 00 C9 E1 14 67 82 C9 CF 66 F8 [10:56:08]GetLastDocTimeStamp 1729421675 [10:56:08]current date 1729421769 [10:56:08]FM_GetShiftState [10:56:08]SAM_PROTO_GetShiftState [10:56:08]wFMCommunicate request_size=4 [10:56:08]MH_SAM_APDU [10:56:08]CAPDU: 80 13 01 00 [10:56:08]Write to MH i2c: E2 08 00 5B 01 80 13 01 00 00 00 00 00 D9 [10:56:08]Write i2c OK [10:56:08]MH_I2C_Read... [10:56:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:08]Read from MH i2c: E2 [10:56:08]MH_I2C_Read... [10:56:08]Read from MH i2c: E2 0E 00 [10:56:08]MH_I2C_Read... [10:56:08]Read from MH i2c: E2 0E 00 5B 01 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 F3 [10:56:08]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:56:08]wFMCommunicate OK [10:56:08]SAM_PROTO_GetShiftState done [10:56:08]FM_GetShiftState done [10:56:08]opened in 1729383750 [10:56:08]opened+sec_in_day 1729470150 [10:56:08]quantity*price = 20003 [10:56:08]sum+1 = 20004 [10:56:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.03 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.03 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 195 20.10.2024 10:56 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 227347 ФПД: 221089197069229 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105609&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227347&fm=221089197069229&tin=02508201610067®Number=0000000000091685&sum=20003 [10:56:09]StoreToDocumentArchive [10:56:09]shift 533 fd 227347 [10:56:09]save to /storage/0533/doc_00227347 [10:56:09]save last doc name /storage/0533/doc_00227347 to /storage/kkm_last_doc_name [10:56:09]save OK [10:56:09]Clear old archive folders... [10:56:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:56:09]tlvbuf is 01879A10 [10:56:09]SAM_PROTO_ClearQueue [10:56:09]wFMCommunicate request_size=4 [10:56:09]MH_SAM_APDU [10:56:09]CAPDU: 80 09 00 00 [10:56:09]Write to MH i2c: E2 08 00 68 01 80 09 00 00 00 00 00 00 DB [10:56:09]Write i2c OK [10:56:09]MH_I2C_Read... [10:56:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:56:10]Read from MH i2c: E2 [10:56:10]MH_I2C_Read... [10:56:10]Read from MH i2c: E2 03 00 [10:56:10]MH_I2C_Read... [10:56:10]Read from MH i2c: E2 03 00 68 01 00 90 00 DD [10:56:10]RAPDU: 90 00 [10:56:10]wFMCommunicate OK [10:56:10]SAM_PROTO_ClearQueue done [10:56:10]KKMCreateOFDPacket [10:56:10]OFDProtocolAddRootSTLVToBuf [10:56:10]FM_MakeSignedData [10:56:10]FM_MakeSignedData [10:56:10]SAM_PROTO_SignData [10:56:10]wFMCommunicate request_size=4 [10:56:10]MH_SAM_APDU [10:56:10]CAPDU: 80 0D 01 02 [10:56:10]Write to MH i2c: E2 08 00 69 01 80 0D 01 02 00 00 00 00 E3 [10:56:10]Write i2c OK [10:56:10]MH_I2C_Read... [10:56:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:56:10]Read from MH i2c: E2 [10:56:10]MH_I2C_Read... [10:56:10]Read from MH i2c: E2 03 00 [10:56:10]MH_I2C_Read... [10:56:10]Read from MH i2c: E2 03 00 69 01 00 90 00 DE [10:56:10]RAPDU: 90 00 [10:56:10]wFMCommunicate OK [10:56:10]wFMCommunicate request_size=255 [10:56:10]MH_SAM_APDU [10:56:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 C9 E1 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 13 78 03 00 35 04 06 00 C9 [10:56:10]Write to MH i2c: E2 02 01 6A 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 C9 E1 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 13 78 03 00 35 04 06 00 C9 00 00 98 [10:56:10]Write i2c OK [10:56:10]MH_I2C_Read... [10:56:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:10]Read from MH i2c: E2 [10:56:10]MH_I2C_Read... [10:56:10]Read from MH i2c: E2 03 00 [10:56:10]MH_I2C_Read... [10:56:10]Read from MH i2c: E2 03 00 6A 01 00 90 00 DF [10:56:10]RAPDU: 90 00 [10:56:10]wFMCommunicate OK [10:56:10]wFMCommunicate request_size=10 [10:56:10]MH_SAM_APDU [10:56:10]CAPDU: 80 0D 02 02 05 14 57 0E 13 AD [10:56:10]Write to MH i2c: E2 0D 00 6B 01 80 0D 02 02 05 00 14 57 0E 13 AD 00 00 29 [10:56:10]Write i2c OK [10:56:10]MH_I2C_Read... [10:56:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:10]Read from MH i2c: E2 [10:56:10]MH_I2C_Read... [10:56:10]Read from MH i2c: E2 03 00 [10:56:10]MH_I2C_Read... [10:56:10]Read from MH i2c: E2 03 00 6B 01 00 90 00 E0 [10:56:10]RAPDU: 90 00 [10:56:10]wFMCommunicate OK [10:56:10]wFMCommunicate request_size=4 [10:56:10]MH_SAM_APDU [10:56:10]CAPDU: 80 0D 03 02 [10:56:10]Write to MH i2c: E2 08 00 6C 01 80 0D 03 02 00 00 00 00 E8 [10:56:10]Write i2c OK [10:56:10]MH_I2C_Read... [10:56:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:56:10]Read from MH i2c: E2 [10:56:10]MH_I2C_Read... [10:56:10]Read from MH i2c: E2 0B 00 [10:56:10]MH_I2C_Read... [10:56:10]Read from MH i2c: E2 0B 00 6C 01 00 03 92 A2 02 B1 59 EE E3 90 00 FD [10:56:10]RAPDU: 03 92 A2 02 B1 59 EE E3 90 00 [10:56:10]wFMCommunicate OK [10:56:10]SAM_PROTO_SignData done [10:56:10]FM_MakeSignedData done [10:56:10]CreateOFDProtocolMessage [10:56:10]wFMCommunicate request_size=4 [10:56:10]MH_SAM_APDU [10:56:10]CAPDU: 80 11 00 00 [10:56:10]Write to MH i2c: E2 08 00 6D 01 80 11 00 00 00 00 00 00 E8 [10:56:10]Write i2c OK [10:56:10]MH_I2C_Read... [10:56:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:10]Read from MH i2c: E2 [10:56:10]MH_I2C_Read... [10:56:10]Read from MH i2c: E2 17 00 [10:56:10]MH_I2C_Read... [10:56:10]Read from MH i2c: E2 17 00 6D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 3F [10:56:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:56:10]wFMCommunicate OK [10:56:10]CreateOFDProtocolMessage done [10:56:10]OFDSenderStorePacket 227347 [10:56:10]StoreOFDPacket docnum=227347 [10:56:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 37 9B 07 01 54 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 C9 E1 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 13 78 03 00 35 04 06 00 C9 14 57 0E 13 AD 03 92 A2 02 B1 59 EE E3 [10:56:10]CheckFolder [10:56:10]dirname=/storage/ofd_packets [10:56:10]CheckFolder done [10:56:10]ProducePacketName [10:56:10]name=ofd_packets/00227347 [10:56:10]NVStorageSaveData ofd_packets/00227347 [10:56:10]File name is /storage/ofd_packets/00227347 [10:56:10]Write 301 bytes [10:56:10]NVStorageSaveData done [10:56:10]OFDSenderStorePacket done [10:56:10]KKMCreateOFDPacket done [10:56:10]NVStorageSaveData kkm_last_timestamp [10:56:10]File name is /storage/kkm_last_timestamp [10:56:10]Write 4 bytes [10:56:10]NVStorageSaveData done [10:56:10]ExternCall_PrintAddStr [10:56:10]wPrintStart [10:56:10]Write to MH i2c: 01 00 00 6E 01 6F [10:56:10]Write i2c OK [10:56:10]MH_I2C_Read... [10:56:10]Read from MH i2c: 01 [10:56:10]MH_I2C_Read... [10:56:10]Read from MH i2c: 01 07 00 [10:56:10]MH_I2C_Read... [10:56:10]Read from MH i2c: 01 07 00 6E 01 00 00 00 00 00 FF 0F 84 [10:56:10]RasterBufferAndPrint [10:56:10]line Счет N : (1)1962852 [10:56:10]line ИНН: 02508201610067 [10:56:10]line Контрольно-Кассовый Чек [10:56:10]line ПРОДАЖА [10:56:10]line ТРК (МРК, ГНК) : 33 [10:56:10]line Товар: 2710124130 [10:56:10]line Аи-92-К-5 [10:56:10]line 2.990 * 66.90 [10:56:10]line = 200.03 [10:56:10]line НДС 12% НСП 1% [10:56:10]line > о реализуемом товаре [10:56:10]line ИТОГО: 200.03 [10:56:10]line НСП 1% : 1.77 [10:56:10]line НДС 12% : 21.24 [10:56:10]line Наличными: 0.00 [10:56:10]line Безнал.: 200.03 [10:56:10]line Место: АЗС № 133 "Партнер Нефть" [10:56:10]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:56:10]line СНО: Общий режим [10:56:10]line Чек 195 20.10.2024 10:56 [10:56:10]line Смена: 533 ФФД: 1.0 [10:56:10]line ЗНМ: 0300000091 [10:56:10]line РНМ: 0000000000091685 [10:56:10]line Версия ККМ: 001 [10:56:10]line Платежная система: Mbank [10:56:10]line ФМ: 0000000000871839 [10:56:10]line ФД: 227347 [10:56:10]line ФПД: 221089197069229 [10:56:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105609&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227347&fm=221089197069229&tin=02508201610067®Number=0000000000091685&sum=20003 [10:56:10]written 0, free lines is 4095 [10:56:10]OFD Sender: Processing packet 227347 [packets to send 38, broken 37] [10:56:10]ProducePacketName [10:56:10]name=ofd_packets/00227347 [10:56:10]OFD Sender: To server: pG, [10:56:10]CommunicateWithHost lk.salyk.kg:30040 [10:56:10]ConnectInit lk.salyk.kg [10:56:10]Connected sock=10 [10:56:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 37 9B 07 01 54 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 C9 E1 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 13 78 03 00 35 04 06 00 C9 14 57 0E 13 AD 03 92 A2 02 B1 59 EE E3 [10:56:10]Write to MH i2c: 01 00 00 96 01 97 [10:56:10]Write i2c OK [10:56:10]MH_I2C_Read... [10:56:10]Read from MH i2c: 01 [10:56:10]MH_I2C_Read... [10:56:10]Read from MH i2c: 01 07 00 [10:56:10]MH_I2C_Read... [10:56:10]Read from MH i2c: 01 07 00 96 01 00 00 00 00 00 2A 0D D5 [10:56:10]RasterBufferAndPrint [10:56:10]line [10:56:10]line [10:56:10]line [10:56:10]line [10:56:10]line [10:56:10]written 0, free lines is 3376 [10:56:10]process_action close_receipt done [10:56:10]requested_data is exist [10:56:10]produce_requested_data [10:56:10]requested_item fm.sn is exist - process it [10:56:10]wFMCommunicate request_size=4 [10:56:10]MH_SAM_APDU [10:56:10]CAPDU: 80 11 00 00 [10:56:10]Write to MH i2c: E2 08 00 9D 01 80 11 00 00 00 00 00 00 18 [10:56:10]Write i2c OK [10:56:10]MH_I2C_Read... [10:56:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:11]Read from MH i2c: E2 [10:56:11]MH_I2C_Read... [10:56:11]Read from MH i2c: E2 17 00 [10:56:11]MH_I2C_Read... [10:56:11]Read from MH i2c: E2 17 00 9D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 6F [10:56:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:56:11]wFMCommunicate OK [10:56:11]requested_item fd.num is exist - process it [10:56:11]SAM_PROTO_GetFieldsCounters [10:56:11]wFMCommunicate request_size=4 [10:56:11]MH_SAM_APDU [10:56:11]CAPDU: 80 13 00 00 [10:56:11]Write to MH i2c: E2 08 00 9E 01 80 13 00 00 00 00 00 00 1B [10:56:11]Write i2c OK [10:56:11]MH_I2C_Read... [10:56: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 33 39 4F 00 00 00 B5 52 47 00 83 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 13 78 03 00 F4 03 04 00 C8 8C 14 67 B6 04 01 00 00 68 05 C4 B6 81 CB 43 92 [10:56:11]CommunicateWithHost err = 0 [10:56:11]CheckOFDResponse [10:56:11]1017 (14) - 77093643461234 [10:56:11]1041 (16) - 0000000000871839 [10:56:11]1040 (4) - 227347 [10:56:11]1012 (4) - 20.10.2024 04:53 [10:56:11]1206 (1) - 0 [10:56:11]OFD Sender: Remove packet 227347 [10:56:11]ProducePacketName [10:56:11]name=ofd_packets/00227347 [10:56:11]NVStorageDeleteData [10:56:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:56:11]Read from MH i2c: E2 [10:56:11]MH_I2C_Read... [10:56:11]Read from MH i2c: E2 62 00 [10:56:11]MH_I2C_Read... [10:56:11]Read from MH i2c: E2 62 00 9E 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 13 78 03 00 0E 04 04 00 15 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 32 [10:56:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 13 78 03 00 0E 04 04 00 15 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 [10:56:11]wFMCommunicate OK [10:56:11]SAM_PROTO_GetFieldsCounters done [10:56:11]requested_item shift.num is exist - process it [10:56:11]requested_item shift.opened is exist - process it [10:56:11]req_shift_opened [10:56:11]FM_GetShiftState [10:56:11]SAM_PROTO_GetShiftState [10:56:11]wFMCommunicate request_size=4 [10:56:11]MH_SAM_APDU [10:56:11]CAPDU: 80 13 01 00 [10:56:11]Write to MH i2c: E2 08 00 9F 01 80 13 01 00 00 00 00 00 1D [10:56:11]Write i2c OK [10:56:11]MH_I2C_Read... [10:56:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:11]Read from MH i2c: E2 [10:56:11]MH_I2C_Read... [10:56:11]Read from MH i2c: E2 0E 00 [10:56:11]MH_I2C_Read... [10:56:11]Read from MH i2c: E2 0E 00 9F 01 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 37 [10:56:11]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:56:11]wFMCommunicate OK [10:56:11]SAM_PROTO_GetShiftState done [10:56:11]FM_GetShiftState done [10:56:11]req_shift_opened done [10:56:11]requested_item shift.open_date is exist - process it [10:56:11]req_shift_open_date [10:56:11]req_shift_open_date done [10:56:11]produce_requested_data done [10:56:11]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227347,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [10:56:11]process_action_free close_receipt [10:56:11]json_value_free [10:56:11]json_value_free done [10:56:11]process_json_proto returns [10:56:11]Send response to host [10:56:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227347,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [10:56:11]free response buf [10:56:11]execute_script done [10:56:11]execute_script returns [10:56:11]free content buf [10:56:11]Sock 9.Close socket [10:56:11]Sock 9.Thread stoped [10:56:11]OFD Sender: No OFD packet to send [10:56:16]OFD Sender: No OFD packet to send [10:56:21]OFD Sender: No OFD packet to send [10:56:26]accept exits with 8 [10:56:26]New connection [10:56:26]New thread 3066543460 created [10:56:26]Thread 3066686820 joined [10:56:26]Waiting for new connection... [10:56:26] Sock 8.Parse request [10:56:26]Sock 8.Check first char [10:56:26]Sock 8.First char is OK [10:56:26]request: POST /json_proto HTTP/1.0 [10:56:26]Method: POST [10:56:26]URL: /json_proto [10:56:26]Method is POST - this is cgi request [10:56:26]url: /json_proto [10:56:26]query_string will be loaded in cgi processing [10:56:26]execute_cgi json_proto POST (null) [10:56:26]execute_cgi path=json_proto method=POST [10:56:26]POST find Content-Length [10:56:26]Host: 172.17.44.195:8080 [10:56:26]Content-Length: 675 [10:56:26]Content-Type: application/json [10:56:26] [10:56:26]POST finish read [10:56:26]Found Content-Length = 675 [10:56:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962853", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:56:26]execute_script... [10:56: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)1962853", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:56:26]POST & json_proto [10:56:26]process_json_proto [10:56:26]json parsed OK: [10:56:26]protocol is kg_v1.0 [10:56:26]action value=close_receipt [10:56:26]process_action close_receipt [10:56:26]cmd_close_receipt [10:56:26]MH_GetDate [10:56:26]Write to MH i2c: F0 00 00 A0 01 90 [10:56:26]Write i2c OK [10:56:26]MH_I2C_Read... [10:56:26]Read from MH i2c: F0 [10:56:26]MH_I2C_Read... [10:56:26]Read from MH i2c: F0 09 00 [10:56:26]MH_I2C_Read... [10:56:26]Read from MH i2c: F0 09 00 A0 01 00 DA E1 14 67 82 C9 CF 66 4F [10:56:26]GetLastDocTimeStamp 1729421769 [10:56:26]current date 1729421786 [10:56:26]FM_GetShiftState [10:56:26]SAM_PROTO_GetShiftState [10:56:26]wFMCommunicate request_size=4 [10:56:26]MH_SAM_APDU [10:56:26]CAPDU: 80 13 01 00 [10:56:26]Write to MH i2c: E2 08 00 A1 01 80 13 01 00 00 00 00 00 1F [10:56:26]Write i2c OK [10:56:26]MH_I2C_Read... [10:56:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:26]Read from MH i2c: E2 [10:56:26]MH_I2C_Read... [10:56:26]Read from MH i2c: E2 0E 00 [10:56:26]MH_I2C_Read... [10:56:26]Read from MH i2c: E2 0E 00 A1 01 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 39 [10:56:26]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:56:26]wFMCommunicate OK [10:56:26]SAM_PROTO_GetShiftState done [10:56:26]FM_GetShiftState done [10:56:26]opened in 1729383750 [10:56:26]opened+sec_in_day 1729470150 [10:56:26]quantity*price = 50063 [10:56:26]sum+1 = 50064 [10:56:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 196 20.10.2024 10:56 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227348 ФПД: 232679254425486 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105626&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227348&fm=232679254425486&tin=02508201610067®Number=0000000000091685&sum=50000 [10:56:27]StoreToDocumentArchive [10:56:27]shift 533 fd 227348 [10:56:27]save to /storage/0533/doc_00227348 [10:56:27]save last doc name /storage/0533/doc_00227348 to /storage/kkm_last_doc_name [10:56:27]save OK [10:56:27]Clear old archive folders... [10:56:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:56:27]tlvbuf is B6D67890 [10:56:27]SAM_PROTO_ClearQueue [10:56:27]wFMCommunicate request_size=4 [10:56:27]MH_SAM_APDU [10:56:27]CAPDU: 80 09 00 00 [10:56:27]Write to MH i2c: E2 08 00 AE 01 80 09 00 00 00 00 00 00 21 [10:56:27]Write i2c OK [10:56:27]MH_I2C_Read... [10:56:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:56:27]Read from MH i2c: E2 [10:56:27]MH_I2C_Read... [10:56:27]Read from MH i2c: E2 03 00 [10:56:27]MH_I2C_Read... [10:56:27]Read from MH i2c: E2 03 00 AE 01 00 90 00 23 [10:56:27]RAPDU: 90 00 [10:56:27]wFMCommunicate OK [10:56:27]SAM_PROTO_ClearQueue done [10:56:27]KKMCreateOFDPacket [10:56:27]OFDProtocolAddRootSTLVToBuf [10:56:27]FM_MakeSignedData [10:56:27]FM_MakeSignedData [10:56:27]SAM_PROTO_SignData [10:56:27]wFMCommunicate request_size=4 [10:56:27]MH_SAM_APDU [10:56:27]CAPDU: 80 0D 01 02 [10:56:27]Write to MH i2c: E2 08 00 AF 01 80 0D 01 02 00 00 00 00 29 [10:56:27]Write i2c OK [10:56:27]MH_I2C_Read... [10:56:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:56:27]Read from MH i2c: E2 [10:56:27]MH_I2C_Read... [10:56:27]Read from MH i2c: E2 03 00 [10:56:27]MH_I2C_Read... [10:56:27]Read from MH i2c: E2 03 00 AF 01 00 90 00 24 [10:56:27]RAPDU: 90 00 [10:56:27]wFMCommunicate OK [10:56:27]wFMCommunicate request_size=255 [10:56:27]MH_SAM_APDU [10:56:27]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 DA E1 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 14 78 03 00 35 04 06 00 D3 9E DC 4E [10:56:27]Write to MH i2c: E2 02 01 B0 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 DA E1 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 14 78 03 00 35 04 06 00 D3 9E DC 4E 00 00 79 [10:56:27]Write i2c OK [10:56:27]MH_I2C_Read... [10:56:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:27]Read from MH i2c: E2 [10:56:27]MH_I2C_Read... [10:56:27]Read from MH i2c: E2 03 00 [10:56:27]MH_I2C_Read... [10:56:27]Read from MH i2c: E2 03 00 B0 01 00 90 00 25 [10:56:27]RAPDU: 90 00 [10:56:27]wFMCommunicate OK [10:56:27]wFMCommunicate request_size=7 [10:56:27]MH_SAM_APDU [10:56:27]CAPDU: 80 0D 02 02 02 7F 8E [10:56:27]Write to MH i2c: E2 0A 00 B1 01 80 0D 02 02 02 00 7F 8E 00 00 3D [10:56:27]Write i2c OK [10:56:27]MH_I2C_Read... [10:56:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:27]Read from MH i2c: E2 [10:56:27]MH_I2C_Read... [10:56:27]Read from MH i2c: E2 03 00 [10:56:27]MH_I2C_Read... [10:56:27]Read from MH i2c: E2 03 00 B1 01 00 90 00 26 [10:56:27]RAPDU: 90 00 [10:56:27]wFMCommunicate OK [10:56:27]wFMCommunicate request_size=4 [10:56:27]MH_SAM_APDU [10:56:27]CAPDU: 80 0D 03 02 [10:56:27]Write to MH i2c: E2 08 00 B2 01 80 0D 03 02 00 00 00 00 2E [10:56:27]Write i2c OK [10:56:27]MH_I2C_Read... [10:56:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:56:27]Read from MH i2c: E2 [10:56:27]MH_I2C_Read... [10:56:27]Read from MH i2c: E2 0B 00 [10:56:27]MH_I2C_Read... [10:56:27]Read from MH i2c: E2 0B 00 B2 01 00 91 00 A5 63 1C A4 8D 64 90 00 79 [10:56:27]RAPDU: 91 00 A5 63 1C A4 8D 64 90 00 [10:56:27]wFMCommunicate OK [10:56:27]SAM_PROTO_SignData done [10:56:27]FM_MakeSignedData done [10:56:27]CreateOFDProtocolMessage [10:56:27]wFMCommunicate request_size=4 [10:56:27]MH_SAM_APDU [10:56:27]CAPDU: 80 11 00 00 [10:56:27]Write to MH i2c: E2 08 00 B3 01 80 11 00 00 00 00 00 00 2E [10:56:27]Write i2c OK [10:56:27]MH_I2C_Read... [10:56:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:27]Read from MH i2c: E2 [10:56:27]MH_I2C_Read... [10:56:27]Read from MH i2c: E2 17 00 [10:56:27]MH_I2C_Read... [10:56:27]Read from MH i2c: E2 17 00 B3 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 85 [10:56:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:56:27]wFMCommunicate OK [10:56:27]CreateOFDProtocolMessage done [10:56:27]OFDSenderStorePacket 227348 [10:56:27]StoreOFDPacket docnum=227348 [10:56:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 47 8D 04 01 C5 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 DA E1 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 14 78 03 00 35 04 06 00 D3 9E DC 4E 7F 8E 91 00 A5 63 1C A4 8D 64 [10:56:27]CheckFolder [10:56:27]dirname=/storage/ofd_packets [10:56:27]CheckFolder done [10:56:27]ProducePacketName [10:56:27]name=ofd_packets/00227348 [10:56:27]NVStorageSaveData ofd_packets/00227348 [10:56:27]File name is /storage/ofd_packets/00227348 [10:56:27]Write 298 bytes [10:56:27]NVStorageSaveData done [10:56:27]OFDSenderStorePacket done [10:56:27]KKMCreateOFDPacket done [10:56:27]NVStorageSaveData kkm_last_timestamp [10:56:27]File name is /storage/kkm_last_timestamp [10:56:27]Write 4 bytes [10:56:27]NVStorageSaveData done [10:56:27]ExternCall_PrintAddStr [10:56:27]wPrintStart [10:56:27]Write to MH i2c: 01 00 00 B4 01 B5 [10:56:27]Write i2c OK [10:56:27]MH_I2C_Read... [10:56:27]Read from MH i2c: 01 [10:56:27]MH_I2C_Read... [10:56:27]Read from MH i2c: 01 07 00 [10:56:27]MH_I2C_Read... [10:56:27]Read from MH i2c: 01 07 00 B4 01 00 00 00 00 00 FF 0F CA [10:56:27]RasterBufferAndPrint [10:56:27]line Счет N : (1)1962853 [10:56:27]line ИНН: 02508201610067 [10:56:27]line Контрольно-Кассовый Чек [10:56:27]line ПРОДАЖА [10:56:27]line ТРК (МРК, ГНК) : 11 [10:56:27]line Товар: 2710194210 [10:56:27]line ДТ-К-5 [10:56:27]line 6.570 * 76.20 [10:56:27]line = 500.63 [10:56:27]line НДС 12% НСП 1% [10:56:27]line > о реализуемом товаре [10:56:27]line ОКРУГЛЕНИЕ: -0.63 [10:56:27]line ИТОГО: 500.00 [10:56:27]line Внесено: 500.00 [10:56:27]line СДАЧА: 0.00 [10:56:27]line НСП 1% : 4.43 [10:56:27]line НДС 12% : 53.16 [10:56:27]line Наличными: 500.00 [10:56:27]line Безнал.: 0.00 [10:56:27]line Место: АЗС № 133 "Партнер Нефть" [10:56:27]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:56:27]line СНО: Общий режим [10:56:27]line Чек 196 20.10.2024 10:56 [10:56:27]line Смена: 533 ФФД: 1.0 [10:56:27]line ЗНМ: 0300000091 [10:56:28]line РНМ: 0000000000091685 [10:56:28]line Версия ККМ: 001 [10:56:28]line ФМ: 0000000000871839 [10:56:28]line ФД: 227348 [10:56:28]line ФПД: 232679254425486 [10:56:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105626&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227348&fm=232679254425486&tin=02508201610067®Number=0000000000091685&sum=50000 [10:56:28]OFD Sender: Processing packet 227348 [packets to send 38, broken 37] [10:56:28]ProducePacketName [10:56:28]name=ofd_packets/00227348 [10:56:28]OFD Sender: To server: pG, [10:56:28]CommunicateWithHost lk.salyk.kg:30040 [10:56:28]ConnectInit lk.salyk.kg [10:56:28]written 0, free lines is 4095 [10:56:28]Connected sock=10 [10:56: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 33 39 0C 01 00 00 47 8D 04 01 C5 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 DA E1 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 14 78 03 00 35 04 06 00 D3 9E DC 4E 7F 8E 91 00 A5 63 1C A4 8D 64 [10:56: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 33 39 4F 00 00 00 B3 B5 47 00 CE 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 33 39 10 04 04 00 14 78 03 00 F4 03 04 00 DA 8C 14 67 B6 04 01 00 00 62 55 7C 53 9C A2 44 C0 [10:56:28]CommunicateWithHost err = 0 [10:56:28]CheckOFDResponse [10:56:28]1017 (14) - 77093643461234 [10:56:28]1041 (16) - 0000000000871839 [10:56:28]1040 (4) - 227348 [10:56:28]1012 (4) - 20.10.2024 04:53 [10:56:28]1206 (1) - 0 [10:56:28]OFD Sender: Remove packet 227348 [10:56:28]ProducePacketName [10:56:28]name=ofd_packets/00227348 [10:56:28]NVStorageDeleteData [10:56:28]Write to MH i2c: 01 00 00 DE 01 DF [10:56:28]Write i2c OK [10:56:28]MH_I2C_Read... [10:56:28]Read from MH i2c: 01 [10:56:28]MH_I2C_Read... [10:56:28]Read from MH i2c: 01 07 00 [10:56:28]MH_I2C_Read... [10:56:28]Read from MH i2c: 01 07 00 DE 01 00 00 00 00 00 08 0D FB [10:56:28]RasterBufferAndPrint [10:56:28]line [10:56:28]line [10:56:28]line [10:56:28]line [10:56:28]line [10:56:28]written 0, free lines is 3342 [10:56:28]process_action close_receipt done [10:56:28]requested_data is exist [10:56:28]produce_requested_data [10:56:28]requested_item fm.sn is exist - process it [10:56:28]wFMCommunicate request_size=4 [10:56:28]MH_SAM_APDU [10:56:28]CAPDU: 80 11 00 00 [10:56:28]Write to MH i2c: E2 08 00 E5 01 80 11 00 00 00 00 00 00 60 [10:56:28]Write i2c OK [10:56:28]MH_I2C_Read... [10:56:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:28]Read from MH i2c: E2 [10:56:28]MH_I2C_Read... [10:56:28]Read from MH i2c: E2 17 00 [10:56:28]MH_I2C_Read... [10:56:28]Read from MH i2c: E2 17 00 E5 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B7 [10:56:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:56:28]wFMCommunicate OK [10:56:28]requested_item fd.num is exist - process it [10:56:28]SAM_PROTO_GetFieldsCounters [10:56:28]wFMCommunicate request_size=4 [10:56:28]MH_SAM_APDU [10:56:28]CAPDU: 80 13 00 00 [10:56:28]Write to MH i2c: E2 08 00 E6 01 80 13 00 00 00 00 00 00 63 [10:56:28]Write i2c OK [10:56:28]MH_I2C_Read... [10:56:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:56:28]Read from MH i2c: E2 [10:56:28]MH_I2C_Read... [10:56:28]Read from MH i2c: E2 62 00 [10:56:28]MH_I2C_Read... [10:56:28]Read from MH i2c: E2 62 00 E6 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 14 78 03 00 0E 04 04 00 15 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 7E [10:56:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 14 78 03 00 0E 04 04 00 15 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 [10:56:28]wFMCommunicate OK [10:56:28]SAM_PROTO_GetFieldsCounters done [10:56:28]requested_item shift.num is exist - process it [10:56:28]requested_item shift.opened is exist - process it [10:56:28]req_shift_opened [10:56:28]FM_GetShiftState [10:56:28]SAM_PROTO_GetShiftState [10:56:28]wFMCommunicate request_size=4 [10:56:28]MH_SAM_APDU [10:56:28]CAPDU: 80 13 01 00 [10:56:28]Write to MH i2c: E2 08 00 E7 01 80 13 01 00 00 00 00 00 65 [10:56:28]Write i2c OK [10:56:28]MH_I2C_Read... [10:56:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:28]Read from MH i2c: E2 [10:56:28]MH_I2C_Read... [10:56:28]Read from MH i2c: E2 0E 00 [10:56:28]MH_I2C_Read... [10:56:28]Read from MH i2c: E2 0E 00 E7 01 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 7F [10:56:28]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:56:28]wFMCommunicate OK [10:56:28]SAM_PROTO_GetShiftState done [10:56:28]FM_GetShiftState done [10:56:28]req_shift_opened done [10:56:28]requested_item shift.open_date is exist - process it [10:56:28]req_shift_open_date [10:56:28]req_shift_open_date done [10:56:28]produce_requested_data done [10:56:28]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227348,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [10:56:28]process_action_free close_receipt [10:56:28]json_value_free [10:56:28]json_value_free done [10:56:28]process_json_proto returns [10:56:28]Send response to host [10:56:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227348,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [10:56:28]free response buf [10:56:28]execute_script done [10:56:28]execute_script returns [10:56:28]free content buf [10:56:28]Sock 8.Close socket [10:56:28]Sock 8.Thread stoped [10:56:29]OFD Sender: No OFD packet to send [10:56:34]OFD Sender: No OFD packet to send [10:56:39]OFD Sender: No OFD packet to send [10:56:44]OFD Sender: No OFD packet to send [10:56:49]OFD Sender: No OFD packet to send [10:56:53]accept exits with 9 [10:56:53]New connection [10:56:53]New thread 3066686820 created [10:56:53]Thread 3066543460 joined [10:56:53]Waiting for new connection... [10:56:53] Sock 9.Parse request [10:56:53]Sock 9.Check first char [10:56:53]Sock 9.First char is OK [10:56:53]request: POST /json_proto HTTP/1.0 [10:56:53]Method: POST [10:56:53]URL: /json_proto [10:56:53]Method is POST - this is cgi request [10:56:53]url: /json_proto [10:56:53]query_string will be loaded in cgi processing [10:56:53]execute_cgi json_proto POST (null) [10:56:53]execute_cgi path=json_proto method=POST [10:56:53]POST find Content-Length [10:56:53]Host: 172.17.44.195:8080 [10:56:53]Content-Length: 770 [10:56:53]Content-Type: application/json [10:56:53] [10:56:53]POST finish read [10:56:53]Found Content-Length = 770 [10:56:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962854", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:56:53]execute_script... [10:56: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)1962854", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:56:53]POST & json_proto [10:56:53]process_json_proto [10:56:53]json parsed OK: [10:56:53]protocol is kg_v1.0 [10:56:53]action value=close_receipt [10:56:53]process_action close_receipt [10:56:53]cmd_close_receipt [10:56:53]MH_GetDate [10:56:53]Write to MH i2c: F0 00 00 E8 01 D8 [10:56:53]Write i2c OK [10:56:53]MH_I2C_Read... [10:56:53]Read from MH i2c: F0 [10:56:53]MH_I2C_Read... [10:56:53]Read from MH i2c: F0 09 00 [10:56:53]MH_I2C_Read... [10:56:53]Read from MH i2c: F0 09 00 E8 01 00 F6 E1 14 67 82 C9 CF 66 B3 [10:56:53]GetLastDocTimeStamp 1729421786 [10:56:53]current date 1729421814 [10:56:53]FM_GetShiftState [10:56:53]SAM_PROTO_GetShiftState [10:56:53]wFMCommunicate request_size=4 [10:56:53]MH_SAM_APDU [10:56:53]CAPDU: 80 13 01 00 [10:56:53]Write to MH i2c: E2 08 00 E9 01 80 13 01 00 00 00 00 00 67 [10:56:53]Write i2c OK [10:56:53]MH_I2C_Read... [10:56:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:53]Read from MH i2c: E2 [10:56:53]MH_I2C_Read... [10:56:53]Read from MH i2c: E2 0E 00 [10:56:53]MH_I2C_Read... [10:56:53]Read from MH i2c: E2 0E 00 E9 01 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 81 [10:56:53]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:56:53]wFMCommunicate OK [10:56:53]SAM_PROTO_GetShiftState done [10:56:53]FM_GetShiftState done [10:56:53]opened in 1729383750 [10:56:53]opened+sec_in_day 1729470150 [10:56:53]quantity*price = 100015 [10:56:53]sum+1 = 100017 [10:56:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 197 20.10.2024 10:56 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 227349 ФПД: 121486391461422 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105654&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227349&fm=121486391461422&tin=02508201610067®Number=0000000000091685&sum=100016 [10:56:54]StoreToDocumentArchive [10:56:54]shift 533 fd 227349 [10:56:54]save to /storage/0533/doc_00227349 [10:56:54]save last doc name /storage/0533/doc_00227349 to /storage/kkm_last_doc_name [10:56:54]save OK [10:56:54]Clear old archive folders... [10:56:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:56:54]tlvbuf is B6D67750 [10:56:54]SAM_PROTO_ClearQueue [10:56:54]wFMCommunicate request_size=4 [10:56:54]MH_SAM_APDU [10:56:54]CAPDU: 80 09 00 00 [10:56:54]Write to MH i2c: E2 08 00 F6 01 80 09 00 00 00 00 00 00 69 [10:56:54]Write i2c OK [10:56:54]MH_I2C_Read... [10:56:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:56:54]Read from MH i2c: E2 [10:56:54]MH_I2C_Read... [10:56:54]Read from MH i2c: E2 03 00 [10:56:54]MH_I2C_Read... [10:56:54]Read from MH i2c: E2 03 00 F6 01 00 90 00 6B [10:56:54]RAPDU: 90 00 [10:56:54]wFMCommunicate OK [10:56:54]SAM_PROTO_ClearQueue done [10:56:54]KKMCreateOFDPacket [10:56:54]OFDProtocolAddRootSTLVToBuf [10:56:54]FM_MakeSignedData [10:56:54]FM_MakeSignedData [10:56:54]SAM_PROTO_SignData [10:56:54]wFMCommunicate request_size=4 [10:56:54]MH_SAM_APDU [10:56:54]CAPDU: 80 0D 01 02 [10:56:54]Write to MH i2c: E2 08 00 F7 01 80 0D 01 02 00 00 00 00 71 [10:56:54]Write i2c OK [10:56:54]MH_I2C_Read... [10:56:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:56:54]Read from MH i2c: E2 [10:56:54]MH_I2C_Read... [10:56:54]Read from MH i2c: E2 03 00 [10:56:54]MH_I2C_Read... [10:56:54]Read from MH i2c: E2 03 00 F7 01 00 90 00 6C [10:56:54]RAPDU: 90 00 [10:56:54]wFMCommunicate OK [10:56:54]wFMCommunicate request_size=255 [10:56:54]MH_SAM_APDU [10: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 F6 E1 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 15 78 03 00 35 04 06 00 6E [10:56:54]Write to MH i2c: E2 02 01 F8 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 F6 E1 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 15 78 03 00 35 04 06 00 6E 00 00 4E [10:56:54]Write i2c OK [10:56:54]MH_I2C_Read... [10:56:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:55]Read from MH i2c: E2 [10:56:55]MH_I2C_Read... [10:56:55]Read from MH i2c: E2 03 00 [10:56:55]MH_I2C_Read... [10:56:55]Read from MH i2c: E2 03 00 F8 01 00 90 00 6D [10:56:55]RAPDU: 90 00 [10:56:55]wFMCommunicate OK [10:56:55]wFMCommunicate request_size=10 [10:56:55]MH_SAM_APDU [10:56:55]CAPDU: 80 0D 02 02 05 7D C1 35 46 2E [10:56:55]Write to MH i2c: E2 0D 00 F9 01 80 0D 02 02 05 00 7D C1 35 46 2E 00 00 65 [10:56:55]Write i2c OK [10:56:55]MH_I2C_Read... [10:56:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:55]Read from MH i2c: E2 [10:56:55]MH_I2C_Read... [10:56:55]Read from MH i2c: E2 03 00 [10:56:55]MH_I2C_Read... [10:56:55]Read from MH i2c: E2 03 00 F9 01 00 90 00 6E [10:56:55]RAPDU: 90 00 [10:56:55]wFMCommunicate OK [10:56:55]wFMCommunicate request_size=4 [10:56:55]MH_SAM_APDU [10:56:55]CAPDU: 80 0D 03 02 [10:56:55]Write to MH i2c: E2 08 00 FA 01 80 0D 03 02 00 00 00 00 76 [10:56:55]Write i2c OK [10:56:55]MH_I2C_Read... [10:56:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:56:55]Read from MH i2c: E2 [10:56:55]MH_I2C_Read... [10:56:55]Read from MH i2c: E2 0B 00 [10:56:55]MH_I2C_Read... [10:56:55]Read from MH i2c: E2 0B 00 FA 01 00 A7 D0 16 9D 2C 48 46 E1 90 00 3C [10:56:55]RAPDU: A7 D0 16 9D 2C 48 46 E1 90 00 [10:56:55]wFMCommunicate OK [10:56:55]SAM_PROTO_SignData done [10:56:55]FM_MakeSignedData done [10:56:55]CreateOFDProtocolMessage [10:56:55]wFMCommunicate request_size=4 [10:56:55]MH_SAM_APDU [10:56:55]CAPDU: 80 11 00 00 [10:56:55]Write to MH i2c: E2 08 00 FB 01 80 11 00 00 00 00 00 00 76 [10:56:55]Write i2c OK [10:56:55]MH_I2C_Read... [10:56:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:55]Read from MH i2c: E2 [10:56:55]MH_I2C_Read... [10:56:55]Read from MH i2c: E2 17 00 [10:56:55]MH_I2C_Read... [10:56:55]Read from MH i2c: E2 17 00 FB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 CD [10:56:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:56:55]wFMCommunicate OK [10:56:55]CreateOFDProtocolMessage done [10:56:55]OFDSenderStorePacket 227349 [10:56:55]StoreOFDPacket docnum=227349 [10:56:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 D9 F1 07 01 ED 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 F6 E1 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 15 78 03 00 35 04 06 00 6E 7D C1 35 46 2E A7 D0 16 9D 2C 48 46 E1 [10:56:55]CheckFolder [10:56:55]dirname=/storage/ofd_packets [10:56:55]CheckFolder done [10:56:55]ProducePacketName [10:56:55]name=ofd_packets/00227349 [10:56:55]NVStorageSaveData ofd_packets/00227349 [10:56:55]File name is /storage/ofd_packets/00227349 [10:56:55]Write 301 bytes [10:56:55]NVStorageSaveData done [10:56:55]OFDSenderStorePacket done [10:56:55]KKMCreateOFDPacket done [10:56:55]NVStorageSaveData kkm_last_timestamp [10:56:55]File name is /storage/kkm_last_timestamp [10:56:55]Write 4 bytes [10:56:55]NVStorageSaveData done [10:56:55]ExternCall_PrintAddStr [10:56:55]wPrintStart [10:56:55]Write to MH i2c: 01 00 00 FC 01 FD [10:56:55]Write i2c OK [10:56:55]MH_I2C_Read... [10:56:55]Read from MH i2c: 01 [10:56:55]MH_I2C_Read... [10:56:55]Read from MH i2c: 01 07 00 [10:56:55]MH_I2C_Read... [10:56:55]Read from MH i2c: 01 07 00 FC 01 00 00 00 00 00 FF 0F 12 [10:56:55]RasterBufferAndPrint [10:56:55]line Счет N : (1)1962854 [10:56:55]line ИНН: 02508201610067 [10:56:55]line Контрольно-Кассовый Чек [10:56:55]line ПРОДАЖА [10:56:55]line ТРК (МРК, ГНК) : 43 [10:56:55]line Товар: 2710124130 [10:56:55]line Аи-92-К-5 [10:56:55]line 14.950 * 66.90 [10:56:55]line = 1000.16 [10:56:55]line НДС 12% НСП 1% [10:56:55]line > о реализуемом товаре [10:56:55]line ИТОГО: 1000.16 [10:56:55]line НСП 1% : 8.85 [10:56:55]line НДС 12% : 106.21 [10:56:55]line Наличными: 0.00 [10:56:55]line Безнал.: 1000.16 [10:56:55]line Место: АЗС № 133 "Партнер Нефть" [10:56:55]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:56:55]line СНО: Общий режим [10:56:55]line Чек 197 20.10.2024 10:56 [10:56:55]line Смена: 533 ФФД: 1.0 [10:56:55]line ЗНМ: 0300000091 [10:56:55]line РНМ: 0000000000091685 [10:56:55]line Версия ККМ: 001 [10:56:55]line Платежная система: Mbank [10:56:55]line ФМ: 0000000000871839 [10:56:55]line ФД: 227349 [10:56:55]line ФПД: 121486391461422 [10:56:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105654&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227349&fm=121486391461422&tin=02508201610067®Number=0000000000091685&sum=100016 [10:56:55]written 0, free lines is 4095 [10:56:55]OFD Sender: Processing packet 227349 [packets to send 38, broken 37] [10:56:55]ProducePacketName [10:56:55]name=ofd_packets/00227349 [10:56:55]OFD Sender: To server: pG, [10:56:55]CommunicateWithHost lk.salyk.kg:30040 [10:56:55]ConnectInit lk.salyk.kg [10:56:55]Connected sock=10 [10:56:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 D9 F1 07 01 ED 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 F6 E1 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 15 78 03 00 35 04 06 00 6E 7D C1 35 46 2E A7 D0 16 9D 2C 48 46 E1 [10: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 33 39 4F 00 00 00 72 06 47 00 28 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 15 78 03 00 F4 03 04 00 F5 8C 14 67 B6 04 01 00 00 39 B8 D2 25 F4 3D 3D DD [10:56:55]CommunicateWithHost err = 0 [10:56:55]CheckOFDResponse [10:56:55]1017 (14) - 77093643461234 [10:56:55]1041 (16) - 0000000000871839 [10:56:55]1040 (4) - 227349 [10:56:55]1012 (4) - 20.10.2024 04:54 [10:56:55]1206 (1) - 0 [10:56:55]OFD Sender: Remove packet 227349 [10:56:55]ProducePacketName [10:56:55]name=ofd_packets/00227349 [10:56:55]NVStorageDeleteData [10:56:55]Write to MH i2c: 01 00 00 24 02 26 [10:56:55]Write i2c OK [10:56:55]MH_I2C_Read... [10:56:55]Read from MH i2c: 01 [10:56:55]MH_I2C_Read... [10:56:55]Read from MH i2c: 01 07 00 [10:56:55]MH_I2C_Read... [10:56:55]Read from MH i2c: 01 07 00 24 02 00 00 00 00 00 36 0D 70 [10:56:55]RasterBufferAndPrint [10:56:55]line [10:56:55]line [10:56:55]line [10:56:55]line [10:56:55]line [10:56:55]written 0, free lines is 3388 [10:56:55]process_action close_receipt done [10:56:55]requested_data is exist [10:56:55]produce_requested_data [10:56:55]requested_item fm.sn is exist - process it [10:56:55]wFMCommunicate request_size=4 [10:56:55]MH_SAM_APDU [10:56:55]CAPDU: 80 11 00 00 [10:56:55]Write to MH i2c: E2 08 00 2B 02 80 11 00 00 00 00 00 00 A7 [10:56:55]Write i2c OK [10:56:55]MH_I2C_Read... [10:56:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:55]Read from MH i2c: E2 [10:56:55]MH_I2C_Read... [10:56:55]Read from MH i2c: E2 17 00 [10:56:55]MH_I2C_Read... [10:56:55]Read from MH i2c: E2 17 00 2B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 FE [10:56:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:56:55]wFMCommunicate OK [10:56:55]requested_item fd.num is exist - process it [10:56:55]SAM_PROTO_GetFieldsCounters [10:56:55]wFMCommunicate request_size=4 [10:56:55]MH_SAM_APDU [10:56:55]CAPDU: 80 13 00 00 [10:56:55]Write to MH i2c: E2 08 00 2C 02 80 13 00 00 00 00 00 00 AA [10:56:55]Write i2c OK [10:56:55]MH_I2C_Read... [10:56:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:56:55]Read from MH i2c: E2 [10:56:55]MH_I2C_Read... [10:56:55]Read from MH i2c: E2 62 00 [10:56:55]MH_I2C_Read... [10:56:55]Read from MH i2c: E2 62 00 2C 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 15 78 03 00 0E 04 04 00 15 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 C9 [10:56: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 15 78 03 00 0E 04 04 00 15 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 [10:56:55]wFMCommunicate OK [10:56:55]SAM_PROTO_GetFieldsCounters done [10:56:55]requested_item shift.num is exist - process it [10:56:55]requested_item shift.opened is exist - process it [10:56:55]req_shift_opened [10:56:55]FM_GetShiftState [10:56:55]SAM_PROTO_GetShiftState [10:56:55]wFMCommunicate request_size=4 [10:56:55]MH_SAM_APDU [10:56:55]CAPDU: 80 13 01 00 [10:56:55]Write to MH i2c: E2 08 00 2D 02 80 13 01 00 00 00 00 00 AC [10:56:55]Write i2c OK [10:56:55]MH_I2C_Read... [10:56:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:55]Read from MH i2c: E2 [10:56:55]MH_I2C_Read... [10:56:55]Read from MH i2c: E2 0E 00 [10:56:55]MH_I2C_Read... [10:56:55]Read from MH i2c: E2 0E 00 2D 02 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 C6 [10:56:55]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:56:55]wFMCommunicate OK [10:56:55]SAM_PROTO_GetShiftState done [10:56:55]FM_GetShiftState done [10:56:55]req_shift_opened done [10:56:55]requested_item shift.open_date is exist - process it [10:56:55]req_shift_open_date [10:56:55]req_shift_open_date done [10:56:55]produce_requested_data done [10:56:55]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227349,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [10:56:55]process_action_free close_receipt [10:56:55]json_value_free [10:56:55]json_value_free done [10:56:55]process_json_proto returns [10:56:55]Send response to host [10:56:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227349,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [10:56:55]free response buf [10:56:55]execute_script done [10:56:55]execute_script returns [10:56:55]free content buf [10:56:55]Sock 9.Close socket [10:56:55]Sock 9.Thread stoped [10:56:56]OFD Sender: No OFD packet to send [10:57:01]OFD Sender: No OFD packet to send [10:57:06]OFD Sender: No OFD packet to send [10:57:11]OFD Sender: No OFD packet to send [10:57:16]OFD Sender: No OFD packet to send [10:57:17]accept exits with 8 [10:57:17]New connection [10:57:17]New thread 3066543460 created [10:57:17]Thread 3066686820 joined [10:57:17]Waiting for new connection... [10:57:17] Sock 8.Parse request [10:57:17]Sock 8.Check first char [10:57:17]Sock 8.First char is OK [10:57:17]request: POST /json_proto HTTP/1.0 [10:57:17]Method: POST [10:57:17]URL: /json_proto [10:57:17]Method is POST - this is cgi request [10:57:17]url: /json_proto [10:57:17]query_string will be loaded in cgi processing [10:57:17]execute_cgi json_proto POST (null) [10:57:17]execute_cgi path=json_proto method=POST [10:57:17]POST find Content-Length [10:57:17]Host: 172.17.44.195:8080 [10:57:17]Content-Length: 683 [10:57:17]Content-Type: application/json [10:57:17] [10:57:17]POST finish read [10:57:17]Found Content-Length = 683 [10:57:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962855", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:57:17]execute_script... [10:57: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)1962855", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:57:17]POST & json_proto [10:57:17]process_json_proto [10:57:17]json parsed OK: [10:57:17]protocol is kg_v1.0 [10:57:17]action value=close_receipt [10:57:17]process_action close_receipt [10:57:17]cmd_close_receipt [10:57:17]MH_GetDate [10:57:17]Write to MH i2c: F0 00 00 2E 02 1F [10:57:17]Write i2c OK [10:57:17]MH_I2C_Read... [10:57:17]Read from MH i2c: F0 [10:57:17]MH_I2C_Read... [10:57:17]Read from MH i2c: F0 09 00 [10:57:17]MH_I2C_Read... [10:57:17]Read from MH i2c: F0 09 00 2E 02 00 0D E2 14 67 82 C9 CF 66 12 [10:57:17]GetLastDocTimeStamp 1729421814 [10:57:17]current date 1729421837 [10:57:17]FM_GetShiftState [10:57:17]SAM_PROTO_GetShiftState [10:57:17]wFMCommunicate request_size=4 [10:57:17]MH_SAM_APDU [10:57:17]CAPDU: 80 13 01 00 [10:57:17]Write to MH i2c: E2 08 00 2F 02 80 13 01 00 00 00 00 00 AE [10:57:17]Write i2c OK [10:57:17]MH_I2C_Read... [10:57:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:17]Read from MH i2c: E2 [10:57:17]MH_I2C_Read... [10:57:17]Read from MH i2c: E2 0E 00 [10:57:17]MH_I2C_Read... [10:57:17]Read from MH i2c: E2 0E 00 2F 02 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 C8 [10:57:17]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:57:17]wFMCommunicate OK [10:57:17]SAM_PROTO_GetShiftState done [10:57:17]FM_GetShiftState done [10:57:17]opened in 1729383750 [10:57:17]opened+sec_in_day 1729470150 [10:57:17]quantity*price = 100015 [10:57:17]sum+1 = 100017 [10:57:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 198 20.10.2024 10:57 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227350 ФПД: 137804370535437 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105717&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227350&fm=137804370535437&tin=02508201610067®Number=0000000000091685&sum=100000 [10:57:18]StoreToDocumentArchive [10:57:18]shift 533 fd 227350 [10:57:18]save to /storage/0533/doc_00227350 [10:57:18]save last doc name /storage/0533/doc_00227350 to /storage/kkm_last_doc_name [10:57:18]save OK [10:57:18]Clear old archive folders... [10:57:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:57:18]tlvbuf is 018478B0 [10:57:18]SAM_PROTO_ClearQueue [10:57:18]wFMCommunicate request_size=4 [10:57:18]MH_SAM_APDU [10:57:18]CAPDU: 80 09 00 00 [10:57:18]Write to MH i2c: E2 08 00 3C 02 80 09 00 00 00 00 00 00 B0 [10:57:18]Write i2c OK [10:57:18]MH_I2C_Read... [10:57:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:57:18]Read from MH i2c: E2 [10:57:18]MH_I2C_Read... [10:57:18]Read from MH i2c: E2 03 00 [10:57:18]MH_I2C_Read... [10:57:18]Read from MH i2c: E2 03 00 3C 02 00 90 00 B2 [10:57:18]RAPDU: 90 00 [10:57:18]wFMCommunicate OK [10:57:18]SAM_PROTO_ClearQueue done [10:57:18]KKMCreateOFDPacket [10:57:18]OFDProtocolAddRootSTLVToBuf [10:57:18]FM_MakeSignedData [10:57:18]FM_MakeSignedData [10:57:18]SAM_PROTO_SignData [10:57:18]wFMCommunicate request_size=4 [10:57:18]MH_SAM_APDU [10:57:18]CAPDU: 80 0D 01 02 [10:57:18]Write to MH i2c: E2 08 00 3D 02 80 0D 01 02 00 00 00 00 B8 [10:57:18]Write i2c OK [10:57:18]MH_I2C_Read... [10:57:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:57:18]Read from MH i2c: E2 [10:57:18]MH_I2C_Read... [10:57:18]Read from MH i2c: E2 03 00 [10:57:18]MH_I2C_Read... [10:57:18]Read from MH i2c: E2 03 00 3D 02 00 90 00 B3 [10:57:18]RAPDU: 90 00 [10:57:18]wFMCommunicate OK [10:57:18]wFMCommunicate request_size=255 [10:57:18]MH_SAM_APDU [10:57:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 0D E2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 16 78 03 00 35 04 06 00 7D [10:57:18]Write to MH i2c: E2 02 01 3E 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 0D E2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 16 78 03 00 35 04 06 00 7D 00 00 9E [10:57:18]Write i2c OK [10:57:18]MH_I2C_Read... [10:57:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:18]Read from MH i2c: E2 [10:57:18]MH_I2C_Read... [10:57:18]Read from MH i2c: E2 03 00 [10:57:18]MH_I2C_Read... [10:57:18]Read from MH i2c: E2 03 00 3E 02 00 90 00 B4 [10:57:18]RAPDU: 90 00 [10:57:18]wFMCommunicate OK [10:57:18]wFMCommunicate request_size=10 [10:57:18]MH_SAM_APDU [10:57:18]CAPDU: 80 0D 02 02 05 55 14 8D E4 0D [10:57:18]Write to MH i2c: E2 0D 00 3F 02 80 0D 02 02 05 00 55 14 8D E4 0D 00 00 AC [10:57:18]Write i2c OK [10:57:18]MH_I2C_Read... [10:57:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:18]Read from MH i2c: E2 [10:57:18]MH_I2C_Read... [10:57:18]Read from MH i2c: E2 03 00 [10:57:18]MH_I2C_Read... [10:57:18]Read from MH i2c: E2 03 00 3F 02 00 90 00 B5 [10:57:18]RAPDU: 90 00 [10:57:18]wFMCommunicate OK [10:57:18]wFMCommunicate request_size=4 [10:57:18]MH_SAM_APDU [10:57:18]CAPDU: 80 0D 03 02 [10:57:18]Write to MH i2c: E2 08 00 40 02 80 0D 03 02 00 00 00 00 BD [10:57:18]Write i2c OK [10:57:18]MH_I2C_Read... [10:57:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:57:18]Read from MH i2c: E2 [10:57:18]MH_I2C_Read... [10:57:18]Read from MH i2c: E2 0B 00 [10:57:18]MH_I2C_Read... [10:57:18]Read from MH i2c: E2 0B 00 40 02 00 8A 9F 65 77 D3 07 48 42 90 00 27 [10:57:18]RAPDU: 8A 9F 65 77 D3 07 48 42 90 00 [10:57:18]wFMCommunicate OK [10:57:18]SAM_PROTO_SignData done [10:57:18]FM_MakeSignedData done [10:57:18]CreateOFDProtocolMessage [10:57:18]wFMCommunicate request_size=4 [10:57:18]MH_SAM_APDU [10:57:18]CAPDU: 80 11 00 00 [10:57:18]Write to MH i2c: E2 08 00 41 02 80 11 00 00 00 00 00 00 BD [10:57:18]Write i2c OK [10:57:18]MH_I2C_Read... [10:57:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:18]Read from MH i2c: E2 [10:57:18]MH_I2C_Read... [10:57:18]Read from MH i2c: E2 17 00 [10:57:18]MH_I2C_Read... [10:57:18]Read from MH i2c: E2 17 00 41 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 14 [10:57:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:57:18]wFMCommunicate OK [10:57:18]CreateOFDProtocolMessage done [10:57:18]OFDSenderStorePacket 227350 [10:57:18]StoreOFDPacket docnum=227350 [10:57:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 91 A1 07 01 CD 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 0D E2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 16 78 03 00 35 04 06 00 7D 55 14 8D E4 0D 8A 9F 65 77 D3 07 48 42 [10:57:18]CheckFolder [10:57:18]dirname=/storage/ofd_packets [10:57:18]CheckFolder done [10:57:18]ProducePacketName [10:57:18]name=ofd_packets/00227350 [10:57:18]NVStorageSaveData ofd_packets/00227350 [10:57:18]File name is /storage/ofd_packets/00227350 [10:57:18]Write 301 bytes [10:57:18]NVStorageSaveData done [10:57:18]OFDSenderStorePacket done [10:57:18]KKMCreateOFDPacket done [10:57:18]NVStorageSaveData kkm_last_timestamp [10:57:18]File name is /storage/kkm_last_timestamp [10:57:18]Write 4 bytes [10:57:18]NVStorageSaveData done [10:57:18]OFD Sender: Processing packet 227350 [packets to send 38, broken 37] [10:57:18]ProducePacketName [10:57:18]name=ofd_packets/00227350 [10:57:18]OFD Sender: To server: pG, [10:57:18]CommunicateWithHost lk.salyk.kg:30040 [10:57:18]ConnectInit lk.salyk.kg [10:57:18]ExternCall_PrintAddStr [10:57:18]wPrintStart [10:57:18]Write to MH i2c: 01 00 00 42 02 44 [10:57:18]Write i2c OK [10:57:18]MH_I2C_Read... [10:57:18]Read from MH i2c: 01 [10:57:18]MH_I2C_Read... [10:57:18]Read from MH i2c: 01 07 00 [10:57:18]MH_I2C_Read... [10:57:18]Read from MH i2c: 01 07 00 42 02 00 00 00 00 00 FF 0F 59 [10:57:18]RasterBufferAndPrint [10:57:18]line Счет N : (1)1962855 [10:57:18]line ИНН: 02508201610067 [10:57:18]line Контрольно-Кассовый Чек [10:57:18]line ПРОДАЖА [10:57:18]line ТРК (МРК, ГНК) : 53 [10:57:18]line Товар: 2710124130 [10:57:18]line Аи-92-К-5 [10:57:18]line 14.950 * 66.90 [10:57:18]line = 1000.16 [10:57:18]line НДС 12% НСП 1% [10:57:18]line > о реализуемом товаре [10:57:18]line ОКРУГЛЕНИЕ: -0.16 [10:57:18]line ИТОГО: 1000.00 [10:57:18]line Внесено: 1000.00 [10:57:18]line СДАЧА: 0.00 [10:57:18]line НСП 1% : 8.85 [10:57:18]line НДС 12% : 106.21 [10:57:18]line Наличными: 1000.00 [10:57:18]line Безнал.: 0.00 [10:57:18]line Место: АЗС № 133 "Партнер Нефть" [10:57:18]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [10:57:18]line СНО: Общий режим [10:57:18]line Чек 198 20.10.2024 10:57 [10:57:18]line Смена: 533 ФФД: 1.0 [10:57:18]line ЗНМ: 0300000091 [10:57:18]line РНМ: 0000000000091685 [10:57:18]line Версия ККМ: 001 [10:57:18]line ФМ: 0000000000871839 [10:57:18]line ФД: 227350 [10:57:18]line ФПД: 137804370535437 [10:57:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105717&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227350&fm=137804370535437&tin=02508201610067®Number=0000000000091685&sum=100000 [10:57:19]Connected sock=11 [10:57: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 33 39 0F 01 00 00 91 A1 07 01 CD 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 0D E2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 16 78 03 00 35 04 06 00 7D 55 14 8D E4 0D 8A 9F 65 77 D3 07 48 42 [10:57:19]written 0, free lines is 4095 [10:57: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 33 39 4F 00 00 00 4B BE 47 00 30 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 16 78 03 00 F4 03 04 00 0C 8D 14 67 B6 04 01 00 00 0D 47 B1 26 21 5D 4A 40 [10:57:19]CommunicateWithHost err = 0 [10:57:19]CheckOFDResponse [10:57:19]1017 (14) - 77093643461234 [10:57:19]1041 (16) - 0000000000871839 [10:57:19]1040 (4) - 227350 [10:57:19]1012 (4) - 20.10.2024 04:54 [10:57:19]1206 (1) - 0 [10:57:19]OFD Sender: Remove packet 227350 [10:57:19]ProducePacketName [10:57:19]name=ofd_packets/00227350 [10:57:19]NVStorageDeleteData [10:57:19]Write to MH i2c: 01 00 00 6C 02 6E [10:57:19]Write i2c OK [10:57:19]MH_I2C_Read... [10:57:19]Read from MH i2c: 01 [10:57:19]MH_I2C_Read... [10:57:19]Read from MH i2c: 01 07 00 [10:57:19]MH_I2C_Read... [10:57:19]Read from MH i2c: 01 07 00 6C 02 00 00 00 00 00 0D 0D 8F [10:57:19]RasterBufferAndPrint [10:57:19]line [10:57:19]line [10:57:19]line [10:57:19]line [10:57:19]line [10:57:19]written 0, free lines is 3347 [10:57:19]process_action close_receipt done [10:57:19]requested_data is exist [10:57:19]produce_requested_data [10:57:19]requested_item fm.sn is exist - process it [10:57:19]wFMCommunicate request_size=4 [10:57:19]MH_SAM_APDU [10:57:19]CAPDU: 80 11 00 00 [10:57:19]Write to MH i2c: E2 08 00 73 02 80 11 00 00 00 00 00 00 EF [10:57:19]Write i2c OK [10:57:19]MH_I2C_Read... [10:57:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:19]Read from MH i2c: E2 [10:57:19]MH_I2C_Read... [10:57:19]Read from MH i2c: E2 17 00 [10:57:19]MH_I2C_Read... [10:57:19]Read from MH i2c: E2 17 00 73 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 46 [10:57:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [10:57:19]wFMCommunicate OK [10:57:19]requested_item fd.num is exist - process it [10:57:19]SAM_PROTO_GetFieldsCounters [10:57:19]wFMCommunicate request_size=4 [10:57:19]MH_SAM_APDU [10:57:19]CAPDU: 80 13 00 00 [10:57:19]Write to MH i2c: E2 08 00 74 02 80 13 00 00 00 00 00 00 F2 [10:57:19]Write i2c OK [10:57:19]MH_I2C_Read... [10:57:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:57:19]Read from MH i2c: E2 [10:57:19]MH_I2C_Read... [10:57:19]Read from MH i2c: E2 62 00 [10:57:19]MH_I2C_Read... [10:57:19]Read from MH i2c: E2 62 00 74 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 16 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [10:57: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 16 78 03 00 0E 04 04 00 15 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 [10:57:19]wFMCommunicate OK [10:57:19]SAM_PROTO_GetFieldsCounters done [10:57:19]requested_item shift.num is exist - process it [10:57:19]requested_item shift.opened is exist - process it [10:57:19]req_shift_opened [10:57:19]FM_GetShiftState [10:57:19]SAM_PROTO_GetShiftState [10:57:19]wFMCommunicate request_size=4 [10:57:19]MH_SAM_APDU [10:57:19]CAPDU: 80 13 01 00 [10:57:19]Write to MH i2c: E2 08 00 75 02 80 13 01 00 00 00 00 00 F4 [10:57:19]Write i2c OK [10:57:19]MH_I2C_Read... [10:57:19]OFD Sender: No OFD packet to send [10:57:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:19]Read from MH i2c: E2 [10:57:19]MH_I2C_Read... [10:57:19]Read from MH i2c: E2 0E 00 [10:57:19]MH_I2C_Read... [10:57:19]Read from MH i2c: E2 0E 00 75 02 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 0E [10:57:19]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [10:57:19]wFMCommunicate OK [10:57:19]SAM_PROTO_GetShiftState done [10:57:19]FM_GetShiftState done [10:57:19]req_shift_opened done [10:57:19]requested_item shift.open_date is exist - process it [10:57:19]req_shift_open_date [10:57:19]req_shift_open_date done [10:57:19]produce_requested_data done [10:57:19]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227350,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [10:57:19]process_action_free close_receipt [10:57:19]json_value_free [10:57:19]json_value_free done [10:57:19]process_json_proto returns [10:57:19]Send response to host [10:57:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227350,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [10:57:19]free response buf [10:57:19]execute_script done [10:57:19]execute_script returns [10:57:19]free content buf [10:57:19]Sock 8.Close socket [10:57:19]Sock 8.Thread stoped [10:57:24]OFD Sender: No OFD packet to send [10:57:29]OFD Sender: No OFD packet to send [10:57:34]OFD Sender: No OFD packet to send [10:57:39]OFD Sender: No OFD packet to send [10:57:44]OFD Sender: No OFD packet to send [10:57:49]OFD Sender: No OFD packet to send [10:57:54]OFD Sender: No OFD packet to send [10:57:59]OFD Sender: No OFD packet to send [10:58:04]OFD Sender: No OFD packet to send [10:58:09]OFD Sender: No OFD packet to send [10:58:14]OFD Sender: No OFD packet to send [10:58:19]OFD Sender: No OFD packet to send [10:58:24]OFD Sender: No OFD packet to send [10:58:29]OFD Sender: No OFD packet to send [10:58:34]OFD Sender: No OFD packet to send [10:58:39]OFD Sender: No OFD packet to send [10:58:44]OFD Sender: No OFD packet to send [10:58:49]OFD Sender: No OFD packet to send [10:58:54]OFD Sender: No OFD packet to send [10:58:59]OFD Sender: No OFD packet to send [10:59:04]OFD Sender: No OFD packet to send [10:59:09]OFD Sender: No OFD packet to send [10:59:14]OFD Sender: No OFD packet to send [10:59:19]OFD Sender: No OFD packet to send [10:59:24]OFD Sender: No OFD packet to send [10:59:29]OFD Sender: No OFD packet to send [10:59:34]OFD Sender: No OFD packet to send [10:59:39]OFD Sender: No OFD packet to send [10:59:44]OFD Sender: No OFD packet to send [10:59:49]OFD Sender: No OFD packet to send [10:59:54]OFD Sender: No OFD packet to send [10:59:59]OFD Sender: No OFD packet to send [11:00:04]OFD Sender: No OFD packet to send [11:00:09]OFD Sender: No OFD packet to send [11:00:14]OFD Sender: No OFD packet to send [11:00:19]OFD Sender: No OFD packet to send [11:00:24]OFD Sender: No OFD packet to send [11:00:29]OFD Sender: No OFD packet to send [11:00:34]OFD Sender: No OFD packet to send [11:00:39]OFD Sender: No OFD packet to send [11:00:44]OFD Sender: No OFD packet to send [11:00:49]OFD Sender: No OFD packet to send [11:00:54]OFD Sender: No OFD packet to send [11:00:59]OFD Sender: No OFD packet to send [11:01:04]OFD Sender: No OFD packet to send [11:01:09]OFD Sender: No OFD packet to send [11:01:14]OFD Sender: No OFD packet to send [11:01:19]OFD Sender: No OFD packet to send [11:01:24]OFD Sender: No OFD packet to send [11:01: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:05]OFD Sender: No OFD packet to send [11:02:10]OFD Sender: No OFD packet to send [11:02:15]OFD Sender: No OFD packet to send [11:02:20]OFD Sender: No OFD packet to send [11:02:25]OFD Sender: No OFD packet to send [11:02:30]OFD Sender: No OFD packet to send [11:02:30]accept exits with 9 [11:02:30]New connection [11:02:30]New thread 3066686820 created [11:02:30]Thread 3066543460 joined [11:02:30]Waiting for new connection... [11:02:30] Sock 9.Parse request [11:02:30]Sock 9.Check first char [11:02:30]Sock 9.First char is OK [11:02:30]request: POST /json_proto HTTP/1.0 [11:02:30]Method: POST [11:02:30]URL: /json_proto [11:02:30]Method is POST - this is cgi request [11:02:30]url: /json_proto [11:02:30]query_string will be loaded in cgi processing [11:02:30]execute_cgi json_proto POST (null) [11:02:30]execute_cgi path=json_proto method=POST [11:02:30]POST find Content-Length [11:02:30]Host: 172.17.44.195:8080 [11:02:30]Content-Length: 678 [11:02:30]Content-Type: application/json [11:02:30] [11:02:30]POST finish read [11:02:30]Found Content-Length = 678 [11:02:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962858", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:30]execute_script... [11:02: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)1962858", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:30]POST & json_proto [11:02:30]process_json_proto [11:02:30]json parsed OK: [11:02:30]protocol is kg_v1.0 [11:02:30]action value=close_receipt [11:02:30]process_action close_receipt [11:02:30]cmd_close_receipt [11:02:30]MH_GetDate [11:02:30]Write to MH i2c: F0 00 00 76 02 67 [11:02:30]Write i2c OK [11:02:30]MH_I2C_Read... [11:02:30]Read from MH i2c: F0 [11:02:30]MH_I2C_Read... [11:02:30]Read from MH i2c: F0 09 00 [11:02:30]MH_I2C_Read... [11:02:30]Read from MH i2c: F0 09 00 76 02 00 46 E3 14 67 82 C9 CF 66 94 [11:02:30]GetLastDocTimeStamp 1729421837 [11:02:30]current date 1729422150 [11:02:30]FM_GetShiftState [11:02:30]SAM_PROTO_GetShiftState [11:02:30]wFMCommunicate request_size=4 [11:02:30]MH_SAM_APDU [11:02:30]CAPDU: 80 13 01 00 [11:02:30]Write to MH i2c: E2 08 00 77 02 80 13 01 00 00 00 00 00 F6 [11:02:30]Write i2c OK [11:02:30]MH_I2C_Read... [11:02:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:30]Read from MH i2c: E2 [11:02:30]MH_I2C_Read... [11:02:30]Read from MH i2c: E2 0E 00 [11:02:30]MH_I2C_Read... [11:02:30]Read from MH i2c: E2 0E 00 77 02 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 10 [11:02:30]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:02:30]wFMCommunicate OK [11:02:30]SAM_PROTO_GetShiftState done [11:02:30]FM_GetShiftState done [11:02:30]opened in 1729383750 [11:02:30]opened+sec_in_day 1729470150 [11:02:30]quantity*price = 30038 [11:02:30]sum+1 = 30039 [11:02:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 199 20.10.2024 11:02 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227351 ФПД: 184534956757867 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T110230&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227351&fm=184534956757867&tin=02508201610067®Number=0000000000091685&sum=30000 [11:02:31]StoreToDocumentArchive [11:02:31]shift 533 fd 227351 [11:02:31]save to /storage/0533/doc_00227351 [11:02:31]save last doc name /storage/0533/doc_00227351 to /storage/kkm_last_doc_name [11:02:31]save OK [11:02:31]Clear old archive folders... [11:02:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:02:31]tlvbuf is 0183D380 [11:02:31]SAM_PROTO_ClearQueue [11:02:31]wFMCommunicate request_size=4 [11:02:31]MH_SAM_APDU [11:02:31]CAPDU: 80 09 00 00 [11:02:31]Write to MH i2c: E2 08 00 84 02 80 09 00 00 00 00 00 00 F8 [11:02:31]Write i2c OK [11:02:31]MH_I2C_Read... [11:02:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:02:31]Read from MH i2c: E2 [11:02:31]MH_I2C_Read... [11:02:31]Read from MH i2c: E2 03 00 [11:02:31]MH_I2C_Read... [11:02:31]Read from MH i2c: E2 03 00 84 02 00 90 00 FA [11:02:31]RAPDU: 90 00 [11:02:31]wFMCommunicate OK [11:02:31]SAM_PROTO_ClearQueue done [11:02:31]KKMCreateOFDPacket [11:02:31]OFDProtocolAddRootSTLVToBuf [11:02:31]FM_MakeSignedData [11:02:31]FM_MakeSignedData [11:02:31]SAM_PROTO_SignData [11:02:31]wFMCommunicate request_size=4 [11:02:31]MH_SAM_APDU [11:02:31]CAPDU: 80 0D 01 02 [11:02:31]Write to MH i2c: E2 08 00 85 02 80 0D 01 02 00 00 00 00 00 [11:02:31]Write i2c OK [11:02:31]MH_I2C_Read... [11:02:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:02:31]Read from MH i2c: E2 [11:02:31]MH_I2C_Read... [11:02:31]Read from MH i2c: E2 03 00 [11:02:31]MH_I2C_Read... [11:02:31]Read from MH i2c: E2 03 00 85 02 00 90 00 FB [11:02:31]RAPDU: 90 00 [11:02:31]wFMCommunicate OK [11:02:31]wFMCommunicate request_size=255 [11:02:31]MH_SAM_APDU [11:02:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 46 E3 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 17 78 03 00 35 04 06 00 A7 [11:02:31]Write to MH i2c: E2 02 01 86 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 46 E3 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 17 78 03 00 35 04 06 00 A7 00 00 46 [11:02:31]Write i2c OK [11:02:31]MH_I2C_Read... [11:02:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:31]Read from MH i2c: E2 [11:02:31]MH_I2C_Read... [11:02:31]Read from MH i2c: E2 03 00 [11:02:31]MH_I2C_Read... [11:02:31]Read from MH i2c: E2 03 00 86 02 00 90 00 FC [11:02:31]RAPDU: 90 00 [11:02:31]wFMCommunicate OK [11:02:31]wFMCommunicate request_size=10 [11:02:31]MH_SAM_APDU [11:02:31]CAPDU: 80 0D 02 02 05 D5 64 8B D3 6B [11:02:31]Write to MH i2c: E2 0D 00 87 02 80 0D 02 02 05 00 D5 64 8B D3 6B 00 00 0F [11:02:31]Write i2c OK [11:02:31]MH_I2C_Read... [11:02:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:31]Read from MH i2c: E2 [11:02:31]MH_I2C_Read... [11:02:31]Read from MH i2c: E2 03 00 [11:02:31]MH_I2C_Read... [11:02:31]Read from MH i2c: E2 03 00 87 02 00 90 00 FD [11:02:31]RAPDU: 90 00 [11:02:31]wFMCommunicate OK [11:02:31]wFMCommunicate request_size=4 [11:02:31]MH_SAM_APDU [11:02:31]CAPDU: 80 0D 03 02 [11:02:31]Write to MH i2c: E2 08 00 88 02 80 0D 03 02 00 00 00 00 05 [11:02:31]Write i2c OK [11:02:31]MH_I2C_Read... [11:02:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:02:31]Read from MH i2c: E2 [11:02:31]MH_I2C_Read... [11:02:31]Read from MH i2c: E2 0B 00 [11:02:31]MH_I2C_Read... [11:02:31]Read from MH i2c: E2 0B 00 88 02 00 B8 7E 6A B3 41 56 6B B6 90 00 11 [11:02:31]RAPDU: B8 7E 6A B3 41 56 6B B6 90 00 [11:02:31]wFMCommunicate OK [11:02:31]SAM_PROTO_SignData done [11:02:31]FM_MakeSignedData done [11:02:31]CreateOFDProtocolMessage [11:02:31]wFMCommunicate request_size=4 [11:02:31]MH_SAM_APDU [11:02:31]CAPDU: 80 11 00 00 [11:02:31]Write to MH i2c: E2 08 00 89 02 80 11 00 00 00 00 00 00 05 [11:02:31]Write i2c OK [11:02:31]MH_I2C_Read... [11:02:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:31]Read from MH i2c: E2 [11:02:31]MH_I2C_Read... [11:02:31]Read from MH i2c: E2 17 00 [11:02:31]MH_I2C_Read... [11:02:31]Read from MH i2c: E2 17 00 89 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 5C [11:02:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:02:31]wFMCommunicate OK [11:02:31]CreateOFDProtocolMessage done [11:02:31]OFDSenderStorePacket 227351 [11:02:31]StoreOFDPacket docnum=227351 [11:02:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 24 2B 07 01 3E 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 46 E3 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 17 78 03 00 35 04 06 00 A7 D5 64 8B D3 6B B8 7E 6A B3 41 56 6B B6 [11:02:31]CheckFolder [11:02:31]dirname=/storage/ofd_packets [11:02:31]CheckFolder done [11:02:31]ProducePacketName [11:02:31]name=ofd_packets/00227351 [11:02:31]NVStorageSaveData ofd_packets/00227351 [11:02:31]File name is /storage/ofd_packets/00227351 [11:02:31]Write 301 bytes [11:02:31]NVStorageSaveData done [11:02:31]OFDSenderStorePacket done [11:02:31]KKMCreateOFDPacket done [11:02:31]NVStorageSaveData kkm_last_timestamp [11:02:31]File name is /storage/kkm_last_timestamp [11:02:31]Write 4 bytes [11:02:31]NVStorageSaveData done [11:02:31]ExternCall_PrintAddStr [11:02:31]wPrintStart [11:02:31]Write to MH i2c: 01 00 00 8A 02 8C [11:02:31]Write i2c OK [11:02:31]MH_I2C_Read... [11:02:31]Read from MH i2c: 01 [11:02:31]MH_I2C_Read... [11:02:31]Read from MH i2c: 01 07 00 [11:02:31]MH_I2C_Read... [11:02:31]Read from MH i2c: 01 07 00 8A 02 00 00 00 00 00 FF 0F A1 [11:02:31]RasterBufferAndPrint [11:02:31]line Счет N : (1)1962858 [11:02:31]line ИНН: 02508201610067 [11:02:31]line Контрольно-Кассовый Чек [11:02:31]line ПРОДАЖА [11:02:31]line ТРК (МРК, ГНК) : 53 [11:02:31]line Товар: 2710124130 [11:02:31]line Аи-92-К-5 [11:02:31]line 4.490 * 66.90 [11:02:31]line = 300.38 [11:02:31]line НДС 12% НСП 1% [11:02:31]line > о реализуемом товаре [11:02:31]line ОКРУГЛЕНИЕ: -0.38 [11:02:31]line ИТОГО: 300.00 [11:02:31]line Внесено: 300.00 [11:02:31]line СДАЧА: 0.00 [11:02:31]line НСП 1% : 2.66 [11:02:31]line НДС 12% : 31.90 [11:02:31]line Наличными: 300.00 [11:02:31]line Безнал.: 0.00 [11:02:31]line Место: АЗС № 133 "Партнер Нефть" [11:02:31]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:02:31]line СНО: Общий режим [11:02:31]line Чек 199 20.10.2024 11:02 [11:02:31]line Смена: 533 ФФД: 1.0 [11:02:31]line ЗНМ: 0300000091 [11:02:31]line РНМ: 0000000000091685 [11:02:31]line Версия ККМ: 001 [11:02:31]line ФМ: 0000000000871839 [11:02:31]line ФД: 227351 [11:02:31]line ФПД: 184534956757867 [11:02:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T110230&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227351&fm=184534956757867&tin=02508201610067®Number=0000000000091685&sum=30000 [11:02:32]written 0, free lines is 4095 [11:02:32]OFD Sender: Processing packet 227351 [packets to send 38, broken 37] [11:02:32]ProducePacketName [11:02:32]name=ofd_packets/00227351 [11:02:32]OFD Sender: To server: pG, [11:02:32]CommunicateWithHost lk.salyk.kg:30040 [11:02:32]ConnectInit lk.salyk.kg [11:02:32]Connected sock=10 [11:02: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 33 39 0F 01 00 00 24 2B 07 01 3E 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 46 E3 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 17 78 03 00 35 04 06 00 A7 D5 64 8B D3 6B B8 7E 6A B3 41 56 6B B6 [11:02: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 33 39 4F 00 00 00 B5 29 47 00 BA 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 33 39 10 04 04 00 17 78 03 00 F4 03 04 00 45 8E 14 67 B6 04 01 00 00 3F FD 27 5B 1F 7C CF 99 [11:02:32]CommunicateWithHost err = 0 [11:02:32]CheckOFDResponse [11:02:32]1017 (14) - 77093643461234 [11:02:32]1041 (16) - 0000000000871839 [11:02:32]1040 (4) - 227351 [11:02:32]1012 (4) - 20.10.2024 04:59 [11:02:32]1206 (1) - 0 [11:02:32]OFD Sender: Remove packet 227351 [11:02:32]ProducePacketName [11:02:32]name=ofd_packets/00227351 [11:02:32]NVStorageDeleteData [11:02:32]Write to MH i2c: 01 00 00 B4 02 B6 [11:02:32]Write i2c OK [11:02:32]MH_I2C_Read... [11:02:32]Read from MH i2c: 01 [11:02:32]MH_I2C_Read... [11:02:32]Read from MH i2c: 01 07 00 [11:02:32]MH_I2C_Read... [11:02:32]Read from MH i2c: 01 07 00 B4 02 00 00 00 00 00 10 0D DA [11:02:32]RasterBufferAndPrint [11:02:32]line [11:02:32]line [11:02:32]line [11:02:32]line [11:02:32]line [11:02:32]written 0, free lines is 3350 [11:02:32]process_action close_receipt done [11:02:32]requested_data is exist [11:02:32]produce_requested_data [11:02:32]requested_item fm.sn is exist - process it [11:02:32]wFMCommunicate request_size=4 [11:02:32]MH_SAM_APDU [11:02:32]CAPDU: 80 11 00 00 [11:02:32]Write to MH i2c: E2 08 00 BB 02 80 11 00 00 00 00 00 00 37 [11:02:32]Write i2c OK [11:02:32]MH_I2C_Read... [11:02:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:32]Read from MH i2c: E2 [11:02:32]MH_I2C_Read... [11:02:32]Read from MH i2c: E2 17 00 [11:02:32]MH_I2C_Read... [11:02:32]Read from MH i2c: E2 17 00 BB 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 8E [11:02:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:02:32]wFMCommunicate OK [11:02:32]requested_item fd.num is exist - process it [11:02:32]SAM_PROTO_GetFieldsCounters [11:02:32]wFMCommunicate request_size=4 [11:02:32]MH_SAM_APDU [11:02:32]CAPDU: 80 13 00 00 [11:02:32]Write to MH i2c: E2 08 00 BC 02 80 13 00 00 00 00 00 00 3A [11:02:32]Write i2c OK [11:02:32]MH_I2C_Read... [11:02:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:02:32]Read from MH i2c: E2 [11:02:32]MH_I2C_Read... [11:02:32]Read from MH i2c: E2 62 00 [11:02:32]MH_I2C_Read... [11:02:32]Read from MH i2c: E2 62 00 BC 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 17 78 03 00 0E 04 04 00 15 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 61 [11:02: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 17 78 03 00 0E 04 04 00 15 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 [11:02:32]wFMCommunicate OK [11:02:32]SAM_PROTO_GetFieldsCounters done [11:02:32]requested_item shift.num is exist - process it [11:02:32]requested_item shift.opened is exist - process it [11:02:32]req_shift_opened [11:02:32]FM_GetShiftState [11:02:32]SAM_PROTO_GetShiftState [11:02:32]wFMCommunicate request_size=4 [11:02:32]MH_SAM_APDU [11:02:32]CAPDU: 80 13 01 00 [11:02:32]Write to MH i2c: E2 08 00 BD 02 80 13 01 00 00 00 00 00 3C [11:02:32]Write i2c OK [11:02:32]MH_I2C_Read... [11:02:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:32]Read from MH i2c: E2 [11:02:32]MH_I2C_Read... [11:02:32]Read from MH i2c: E2 0E 00 [11:02:32]MH_I2C_Read... [11:02:32]Read from MH i2c: E2 0E 00 BD 02 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 56 [11:02:32]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:02:32]wFMCommunicate OK [11:02:32]SAM_PROTO_GetShiftState done [11:02:32]FM_GetShiftState done [11:02:32]req_shift_opened done [11:02:32]requested_item shift.open_date is exist - process it [11:02:32]req_shift_open_date [11:02:32]req_shift_open_date done [11:02:32]produce_requested_data done [11:02:32]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227351,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [11:02:32]process_action_free close_receipt [11:02:32]json_value_free [11:02:32]json_value_free done [11:02:32]process_json_proto returns [11:02:32]Send response to host [11:02:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227351,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [11:02:32]free response buf [11:02:32]execute_script done [11:02:32]execute_script returns [11:02:32]free content buf [11:02:32]Sock 9.Close socket [11:02:32]Sock 9.Thread stoped [11:02:32]OFD Sender: No OFD packet to send [11:02:37]OFD Sender: No OFD packet to send [11:02:42]OFD Sender: No OFD packet to send [11:02:47]OFD Sender: No OFD packet to send [11:02:52]OFD Sender: No OFD packet to send [11:02:57]OFD Sender: No OFD packet to send [11:03:03]OFD Sender: No OFD packet to send [11:03:08]OFD Sender: No OFD packet to send [11:03:13]OFD Sender: No OFD packet to send [11:03:18]OFD Sender: No OFD packet to send [11:03:23]OFD Sender: No OFD packet to send [11:03:28]OFD Sender: No OFD packet to send [11:03:33]OFD Sender: No OFD packet to send [11:03:38]OFD Sender: No OFD packet to send [11:03:43]OFD Sender: No OFD packet to send [11:03:48]OFD Sender: No OFD packet to send [11:03:53]OFD Sender: No OFD packet to send [11:03:58]OFD Sender: No OFD packet to send [11:04:03]OFD Sender: No OFD packet to send [11:04:08]OFD Sender: No OFD packet to send [11:04:13]OFD Sender: No OFD packet to send [11:04:18]OFD Sender: No OFD packet to send [11:04:23]OFD Sender: No OFD packet to send [11:04:28]OFD Sender: No OFD packet to send [11:04:33]OFD Sender: No OFD packet to send [11:04:38]OFD Sender: No OFD packet to send [11:04:43]OFD Sender: No OFD packet to send [11:04:48]OFD Sender: No OFD packet to send [11:04:53]OFD Sender: No OFD packet to send [11:04:58]OFD Sender: No OFD packet to send [11:05:03]OFD Sender: No OFD packet to send [11:05:08]OFD Sender: No OFD packet to send [11:05:13]OFD Sender: No OFD packet to send [11:05:18]OFD Sender: No OFD packet to send [11:05:23]OFD Sender: No OFD packet to send [11:05:28]OFD Sender: No OFD packet to send [11:05:33]OFD Sender: No OFD packet to send [11:05:38]OFD Sender: No OFD packet to send [11:05:43]OFD Sender: No OFD packet to send [11:05:48]OFD Sender: No OFD packet to send [11:05:53]OFD Sender: No OFD packet to send [11:05:58]OFD Sender: No OFD packet to send [11:06:03]OFD Sender: No OFD packet to send [11:06:08]OFD Sender: No OFD packet to send [11:06:13]OFD Sender: No OFD packet to send [11:06:18]OFD Sender: No OFD packet to send [11:06:23]OFD Sender: No OFD packet to send [11:06:28]OFD Sender: No OFD packet to send [11:06:33]OFD Sender: No OFD packet to send [11:06:38]OFD Sender: No OFD packet to send [11:06:43]OFD Sender: No OFD packet to send [11:06:47]accept exits with 8 [11:06:47]New connection [11:06:47]New thread 3066543460 created [11:06:47]Thread 3066686820 joined [11:06:47]Waiting for new connection... [11:06:47] Sock 8.Parse request [11:06:47]Sock 8.Check first char [11:06:47]Sock 8.First char is OK [11:06:47]request: POST /json_proto HTTP/1.0 [11:06:47]Method: POST [11:06:47]URL: /json_proto [11:06:47]Method is POST - this is cgi request [11:06:47]url: /json_proto [11:06:47]query_string will be loaded in cgi processing [11:06:47]execute_cgi json_proto POST (null) [11:06:47]execute_cgi path=json_proto method=POST [11:06:47]POST find Content-Length [11:06:47]Host: 172.17.44.195:8080 [11:06:47]Content-Length: 621 [11:06:47]Content-Type: application/json [11:06:47] [11:06:47]POST finish read [11:06:47]Found Content-Length = 621 [11:06:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962864", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:06:47]execute_script... [11:06: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)1962864", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:06:47]POST & json_proto [11:06:47]process_json_proto [11:06:47]json parsed OK: [11:06:47]protocol is kg_v1.0 [11:06:47]action value=close_receipt [11:06:47]process_action close_receipt [11:06:47]cmd_close_receipt [11:06:47]MH_GetDate [11:06:47]Write to MH i2c: F0 00 00 BE 02 AF [11:06:47]Write i2c OK [11:06:47]MH_I2C_Read... [11:06:47]Read from MH i2c: F0 [11:06:47]MH_I2C_Read... [11:06:47]Read from MH i2c: F0 09 00 [11:06:47]MH_I2C_Read... [11:06:47]Read from MH i2c: F0 09 00 BE 02 00 48 E4 14 67 82 C9 CF 66 DF [11:06:47]GetLastDocTimeStamp 1729422150 [11:06:47]current date 1729422408 [11:06:47]FM_GetShiftState [11:06:47]SAM_PROTO_GetShiftState [11:06:47]wFMCommunicate request_size=4 [11:06:47]MH_SAM_APDU [11:06:47]CAPDU: 80 13 01 00 [11:06:47]Write to MH i2c: E2 08 00 BF 02 80 13 01 00 00 00 00 00 3E [11:06:47]Write i2c OK [11:06:47]MH_I2C_Read... [11:06:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:47]Read from MH i2c: E2 [11:06:47]MH_I2C_Read... [11:06:47]Read from MH i2c: E2 0E 00 [11:06:47]MH_I2C_Read... [11:06:47]Read from MH i2c: E2 0E 00 BF 02 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 58 [11:06:47]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:06:47]wFMCommunicate OK [11:06:47]SAM_PROTO_GetShiftState done [11:06:47]FM_GetShiftState done [11:06:47]opened in 1729383750 [11:06:47]opened+sec_in_day 1729470150 [11:06:47]quantity*price = 50000 [11:06:47]sum+1 = 50001 [11:06:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 200 20.10.2024 11:06 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227352 ФПД: 153900290833154 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T110648&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227352&fm=153900290833154&tin=02508201610067®Number=0000000000091685&sum=50000 [11:06:48]StoreToDocumentArchive [11:06:48]shift 533 fd 227352 [11:06:48]save to /storage/0533/doc_00227352 [11:06:48]save last doc name /storage/0533/doc_00227352 to /storage/kkm_last_doc_name [11:06:48]save OK [11:06:48]Clear old archive folders... [11:06:48]ProcessDocumentItem done err = 0, tmpTLVsize=244 [11:06:48]tlvbuf is 01849CA0 [11:06:48]SAM_PROTO_ClearQueue [11:06:48]wFMCommunicate request_size=4 [11:06:48]MH_SAM_APDU [11:06:48]CAPDU: 80 09 00 00 [11:06:48]Write to MH i2c: E2 08 00 CC 02 80 09 00 00 00 00 00 00 40 [11:06:48]Write i2c OK [11:06:48]MH_I2C_Read... [11:06:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:06:48]Read from MH i2c: E2 [11:06:48]MH_I2C_Read... [11:06:48]Read from MH i2c: E2 03 00 [11:06:48]MH_I2C_Read... [11:06:48]Read from MH i2c: E2 03 00 CC 02 00 90 00 42 [11:06:48]RAPDU: 90 00 [11:06:48]wFMCommunicate OK [11:06:48]SAM_PROTO_ClearQueue done [11:06:48]KKMCreateOFDPacket [11:06:48]OFDProtocolAddRootSTLVToBuf [11:06:48]FM_MakeSignedData [11:06:48]FM_MakeSignedData [11:06:48]SAM_PROTO_SignData [11:06:48]wFMCommunicate request_size=4 [11:06:48]MH_SAM_APDU [11:06:48]CAPDU: 80 0D 01 02 [11:06:48]Write to MH i2c: E2 08 00 CD 02 80 0D 01 02 00 00 00 00 48 [11:06:48]Write i2c OK [11:06:48]MH_I2C_Read... [11:06:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:06:48]Read from MH i2c: E2 [11:06:48]MH_I2C_Read... [11:06:48]Read from MH i2c: E2 03 00 [11:06:48]MH_I2C_Read... [11:06:48]Read from MH i2c: E2 03 00 CD 02 00 90 00 43 [11:06:48]RAPDU: 90 00 [11:06:48]wFMCommunicate OK [11:06:48]wFMCommunicate request_size=253 [11:06:48]MH_SAM_APDU [11:06:48]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 48 E4 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 18 78 03 00 35 04 06 00 8B F8 B4 2A 7B 02 [11:06:48]Write to MH i2c: E2 00 01 CE 02 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 48 E4 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 18 78 03 00 35 04 06 00 8B F8 B4 2A 7B 02 00 00 41 [11:06:48]Write i2c OK [11:06:48]MH_I2C_Read... [11:06:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:49]Read from MH i2c: E2 [11:06:49]MH_I2C_Read... [11:06:49]Read from MH i2c: E2 03 00 [11:06:49]MH_I2C_Read... [11:06:49]Read from MH i2c: E2 03 00 CE 02 00 90 00 44 [11:06:49]RAPDU: 90 00 [11:06:49]wFMCommunicate OK [11:06:49]wFMCommunicate request_size=4 [11:06:49]MH_SAM_APDU [11:06:49]CAPDU: 80 0D 03 02 [11:06:49]Write to MH i2c: E2 08 00 CF 02 80 0D 03 02 00 00 00 00 4C [11:06:49]Write i2c OK [11:06:49]MH_I2C_Read... [11:06:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:06:49]Read from MH i2c: E2 [11:06:49]MH_I2C_Read... [11:06:49]Read from MH i2c: E2 0B 00 [11:06:49]MH_I2C_Read... [11:06:49]Read from MH i2c: E2 0B 00 CF 02 00 BB BB 2B AF E1 C0 8E 55 90 00 21 [11:06:49]RAPDU: BB BB 2B AF E1 C0 8E 55 90 00 [11:06:49]wFMCommunicate OK [11:06:49]SAM_PROTO_SignData done [11:06:49]FM_MakeSignedData done [11:06:49]CreateOFDProtocolMessage [11:06:49]wFMCommunicate request_size=4 [11:06:49]MH_SAM_APDU [11:06:49]CAPDU: 80 11 00 00 [11:06:49]Write to MH i2c: E2 08 00 D0 02 80 11 00 00 00 00 00 00 4C [11:06:49]Write i2c OK [11:06:49]MH_I2C_Read... [11:06:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:49]Read from MH i2c: E2 [11:06:49]MH_I2C_Read... [11:06:49]Read from MH i2c: E2 17 00 [11:06:49]MH_I2C_Read... [11:06:49]Read from MH i2c: E2 17 00 D0 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A3 [11:06:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:06:49]wFMCommunicate OK [11:06:49]CreateOFDProtocolMessage done [11:06:49]OFDSenderStorePacket 227352 [11:06:49]StoreOFDPacket docnum=227352 [11:06:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 CB D7 00 01 94 70 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 48 E4 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 18 78 03 00 35 04 06 00 8B F8 B4 2A 7B 02 BB BB 2B AF E1 C0 8E 55 [11:06:49]CheckFolder [11:06:49]dirname=/storage/ofd_packets [11:06:49]CheckFolder done [11:06:49]ProducePacketName [11:06:49]name=ofd_packets/00227352 [11:06:49]NVStorageSaveData ofd_packets/00227352 [11:06:49]File name is /storage/ofd_packets/00227352 [11:06:49]Write 294 bytes [11:06:49]NVStorageSaveData done [11:06:49]OFDSenderStorePacket done [11:06:49]KKMCreateOFDPacket done [11:06:49]NVStorageSaveData kkm_last_timestamp [11:06:49]File name is /storage/kkm_last_timestamp [11:06:49]Write 4 bytes [11:06:49]NVStorageSaveData done [11:06:49]ExternCall_PrintAddStr [11:06:49]wPrintStart [11:06:49]Write to MH i2c: 01 00 00 D1 02 D3 [11:06:49]Write i2c OK [11:06:49]MH_I2C_Read... [11:06:49]Read from MH i2c: 01 [11:06:49]MH_I2C_Read... [11:06:49]Read from MH i2c: 01 07 00 [11:06:49]MH_I2C_Read... [11:06:49]Read from MH i2c: 01 07 00 D1 02 00 00 00 00 00 FF 0F E8 [11:06:49]RasterBufferAndPrint [11:06:49]line Счет N : (1)1962864 [11:06:49]line ИНН: 02508201610067 [11:06:49]line Контрольно-Кассовый Чек [11:06:49]line ПРОДАЖА [11:06:49]line ТРК (МРК, ГНК) : 62 [11:06:49]line Товар: 2710124130 [11:06:49]line SU-92 [11:06:49]line 7.310 * 68.40 [11:06:49]line = 500.00 [11:06:49]line НДС 12% НСП 1% [11:06:49]line > о реализуемом товаре [11:06:49]line ИТОГО: 500.00 [11:06:49]line НСП 1% : 4.42 [11:06:49]line НДС 12% : 53.10 [11:06:49]line Наличными: 500.00 [11:06:49]line Безнал.: 0.00 [11:06:49]line Место: АЗС № 133 "Партнер Нефть" [11:06:49]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:06:49]line СНО: Общий режим [11:06:49]line Чек 200 20.10.2024 11:06 [11:06:49]line Смена: 533 ФФД: 1.0 [11:06:49]line ЗНМ: 0300000091 [11:06:49]line РНМ: 0000000000091685 [11:06:49]line Версия ККМ: 001 [11:06:49]line ФМ: 0000000000871839 [11:06:49]line ФД: 227352 [11:06:49]line ФПД: 153900290833154 [11:06:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T110648&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227352&fm=153900290833154&tin=02508201610067®Number=0000000000091685&sum=50000 [11:06:49]OFD Sender: Processing packet 227352 [packets to send 38, broken 37] [11:06:49]ProducePacketName [11:06:49]name=ofd_packets/00227352 [11:06:49]OFD Sender: To server: pG, [11:06:49]CommunicateWithHost lk.salyk.kg:30040 [11:06:49]ConnectInit lk.salyk.kg [11:06:49]written 0, free lines is 4095 [11:06:49]Connected sock=10 [11:06: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 33 39 08 01 00 00 CB D7 00 01 94 70 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 48 E4 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 18 78 03 00 35 04 06 00 8B F8 B4 2A 7B 02 BB BB 2B AF E1 C0 8E 55 [11:06: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 33 39 4F 00 00 00 79 AD 47 00 5A 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 33 39 10 04 04 00 18 78 03 00 F4 03 04 00 47 8F 14 67 B6 04 01 00 00 88 33 BB 5E 52 28 16 B7 [11:06:49]CommunicateWithHost err = 0 [11:06:49]CheckOFDResponse [11:06:49]1017 (14) - 77093643461234 [11:06:49]1041 (16) - 0000000000871839 [11:06:49]1040 (4) - 227352 [11:06:49]1012 (4) - 20.10.2024 05:04 [11:06:49]1206 (1) - 0 [11:06:49]OFD Sender: Remove packet 227352 [11:06:49]ProducePacketName [11:06:49]name=ofd_packets/00227352 [11:06:49]NVStorageDeleteData [11:06:49]Write to MH i2c: 01 00 00 F8 02 FA [11:06:49]Write i2c OK [11:06:49]MH_I2C_Read... [11:06:49]Read from MH i2c: 01 [11:06:49]MH_I2C_Read... [11:06:49]Read from MH i2c: 01 07 00 [11:06:49]MH_I2C_Read... [11:06:49]Read from MH i2c: 01 07 00 F8 02 00 00 00 00 00 45 0D 53 [11:06:49]RasterBufferAndPrint [11:06:49]line [11:06:49]line [11:06:49]line [11:06:49]line [11:06:49]line [11:06:49]written 0, free lines is 3403 [11:06:49]process_action close_receipt done [11:06:49]requested_data is exist [11:06:49]produce_requested_data [11:06:49]requested_item fm.sn is exist - process it [11:06:49]wFMCommunicate request_size=4 [11:06:49]MH_SAM_APDU [11:06:49]CAPDU: 80 11 00 00 [11:06:49]Write to MH i2c: E2 08 00 FF 02 80 11 00 00 00 00 00 00 7B [11:06:49]Write i2c OK [11:06:49]MH_I2C_Read... [11:06:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:49]Read from MH i2c: E2 [11:06:49]MH_I2C_Read... [11:06:49]Read from MH i2c: E2 17 00 [11:06:49]MH_I2C_Read... [11:06:49]Read from MH i2c: E2 17 00 FF 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D2 [11:06:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:06:49]wFMCommunicate OK [11:06:49]requested_item fd.num is exist - process it [11:06:49]SAM_PROTO_GetFieldsCounters [11:06:49]wFMCommunicate request_size=4 [11:06:49]MH_SAM_APDU [11:06:49]CAPDU: 80 13 00 00 [11:06:49]Write to MH i2c: E2 08 00 00 03 80 13 00 00 00 00 00 00 7F [11:06:49]Write i2c OK [11:06:49]MH_I2C_Read... [11:06:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:06:50]Read from MH i2c: E2 [11:06:50]MH_I2C_Read... [11:06:50]Read from MH i2c: E2 62 00 [11:06:50]MH_I2C_Read... [11:06:50]Read from MH i2c: E2 62 00 00 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 18 78 03 00 0E 04 04 00 15 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 AA [11:06: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 18 78 03 00 0E 04 04 00 15 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 [11:06:50]wFMCommunicate OK [11:06:50]SAM_PROTO_GetFieldsCounters done [11:06:50]requested_item shift.num is exist - process it [11:06:50]requested_item shift.opened is exist - process it [11:06:50]req_shift_opened [11:06:50]FM_GetShiftState [11:06:50]SAM_PROTO_GetShiftState [11:06:50]wFMCommunicate request_size=4 [11:06:50]MH_SAM_APDU [11:06:50]CAPDU: 80 13 01 00 [11:06:50]Write to MH i2c: E2 08 00 01 03 80 13 01 00 00 00 00 00 81 [11:06:50]Write i2c OK [11:06:50]MH_I2C_Read... [11:06:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:50]Read from MH i2c: E2 [11:06:50]MH_I2C_Read... [11:06:50]Read from MH i2c: E2 0E 00 [11:06:50]MH_I2C_Read... [11:06:50]Read from MH i2c: E2 0E 00 01 03 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 9B [11:06:50]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:06:50]wFMCommunicate OK [11:06:50]SAM_PROTO_GetShiftState done [11:06:50]FM_GetShiftState done [11:06:50]req_shift_opened done [11:06:50]requested_item shift.open_date is exist - process it [11:06:50]req_shift_open_date [11:06:50]req_shift_open_date done [11:06:50]produce_requested_data done [11:06:50]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227352,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [11:06:50]process_action_free close_receipt [11:06:50]json_value_free [11:06:50]json_value_free done [11:06:50]process_json_proto returns [11:06:50]Send response to host [11:06:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227352,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [11:06:50]free response buf [11:06:50]execute_script done [11:06:50]execute_script returns [11:06:50]free content buf [11:06:50]Sock 8.Close socket [11:06:50]Sock 8.Thread stoped [11:06:50]OFD Sender: No OFD packet to send [11:06:50]accept exits with 9 [11:06:50]New connection [11:06:50]New thread 3066686820 created [11:06:50]Thread 3066543460 joined [11:06:50]Waiting for new connection... [11:06:50] Sock 9.Parse request [11:06:50]Sock 9.Check first char [11:06:50]Sock 9.First char is OK [11:06:50]request: POST /json_proto HTTP/1.0 [11:06:50]Method: POST [11:06:50]URL: /json_proto [11:06:50]Method is POST - this is cgi request [11:06:50]url: /json_proto [11:06:50]query_string will be loaded in cgi processing [11:06:50]execute_cgi json_proto POST (null) [11:06:50]execute_cgi path=json_proto method=POST [11:06:50]POST find Content-Length [11:06:50]Host: 172.17.44.195:8080 [11:06:50]Content-Length: 748 [11:06:50]Content-Type: application/json [11:06:50] [11:06:50]POST finish read [11:06:50]Found Content-Length = 748 [11:06:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962863", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:06:50]execute_script... [11:06: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)1962863", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:06:50]POST & json_proto [11:06:50]process_json_proto [11:06:50]json parsed OK: [11:06:50]protocol is kg_v1.0 [11:06:50]action value=close_receipt [11:06:50]process_action close_receipt [11:06:50]cmd_close_receipt [11:06:50]MH_GetDate [11:06:50]Write to MH i2c: F0 00 00 02 03 F4 [11:06:50]Write i2c OK [11:06:50]MH_I2C_Read... [11:06:50]Read from MH i2c: F0 [11:06:50]MH_I2C_Read... [11:06:50]Read from MH i2c: F0 09 00 [11:06:50]MH_I2C_Read... [11:06:50]Read from MH i2c: F0 09 00 02 03 00 4B E4 14 67 82 C9 CF 66 27 [11:06:50]GetLastDocTimeStamp 1729422408 [11:06:50]current date 1729422411 [11:06:50]FM_GetShiftState [11:06:50]SAM_PROTO_GetShiftState [11:06:50]wFMCommunicate request_size=4 [11:06:50]MH_SAM_APDU [11:06:50]CAPDU: 80 13 01 00 [11:06:50]Write to MH i2c: E2 08 00 03 03 80 13 01 00 00 00 00 00 83 [11:06:50]Write i2c OK [11:06:50]MH_I2C_Read... [11:06:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:50]Read from MH i2c: E2 [11:06:50]MH_I2C_Read... [11:06:50]Read from MH i2c: E2 0E 00 [11:06:50]MH_I2C_Read... [11:06:50]Read from MH i2c: E2 0E 00 03 03 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 9D [11:06:50]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:06:50]wFMCommunicate OK [11:06:50]SAM_PROTO_GetShiftState done [11:06:50]FM_GetShiftState done [11:06:50]opened in 1729383750 [11:06:50]opened+sec_in_day 1729470150 [11:06:50]quantity*price = 50000 [11:06:50]sum+1 = 50001 [11:06:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 0.00 Безнал.: 500.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 201 20.10.2024 11:06 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 227353 ФПД: 219550666613715 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T110651&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227353&fm=219550666613715&tin=02508201610067®Number=0000000000091685&sum=50000 [11:06:51]StoreToDocumentArchive [11:06:51]shift 533 fd 227353 [11:06:51]save to /storage/0533/doc_00227353 [11:06:51]save last doc name /storage/0533/doc_00227353 to /storage/kkm_last_doc_name [11:06:51]save OK [11:06:51]Clear old archive folders... [11:06:51]ProcessDocumentItem done err = 0, tmpTLVsize=244 [11:06:51]tlvbuf is 01864E80 [11:06:51]SAM_PROTO_ClearQueue [11:06:51]wFMCommunicate request_size=4 [11:06:51]MH_SAM_APDU [11:06:51]CAPDU: 80 09 00 00 [11:06:51]Write to MH i2c: E2 08 00 10 03 80 09 00 00 00 00 00 00 85 [11:06:51]Write i2c OK [11:06:51]MH_I2C_Read... [11:06:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:06:51]Read from MH i2c: E2 [11:06:51]MH_I2C_Read... [11:06:51]Read from MH i2c: E2 03 00 [11:06:51]MH_I2C_Read... [11:06:51]Read from MH i2c: E2 03 00 10 03 00 90 00 87 [11:06:51]RAPDU: 90 00 [11:06:51]wFMCommunicate OK [11:06:51]SAM_PROTO_ClearQueue done [11:06:51]KKMCreateOFDPacket [11:06:51]OFDProtocolAddRootSTLVToBuf [11:06:51]FM_MakeSignedData [11:06:51]FM_MakeSignedData [11:06:51]SAM_PROTO_SignData [11:06:51]wFMCommunicate request_size=4 [11:06:51]MH_SAM_APDU [11:06:51]CAPDU: 80 0D 01 02 [11:06:51]Write to MH i2c: E2 08 00 11 03 80 0D 01 02 00 00 00 00 8D [11:06:51]Write i2c OK [11:06:51]MH_I2C_Read... [11:06:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:06:51]Read from MH i2c: E2 [11:06:51]MH_I2C_Read... [11:06:51]Read from MH i2c: E2 03 00 [11:06:51]MH_I2C_Read... [11:06:51]Read from MH i2c: E2 03 00 11 03 00 90 00 88 [11:06:51]RAPDU: 90 00 [11:06:51]wFMCommunicate OK [11:06:51]wFMCommunicate request_size=253 [11:06:51]MH_SAM_APDU [11:06:51]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 4B E4 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 19 78 03 00 35 04 06 00 C7 AE 1F 7E 63 D3 [11:06:51]Write to MH i2c: E2 00 01 12 03 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 4B E4 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 19 78 03 00 35 04 06 00 C7 AE 1F 7E 63 D3 00 00 F5 [11:06:51]Write i2c OK [11:06:51]MH_I2C_Read... [11:06:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:52]Read from MH i2c: E2 [11:06:52]MH_I2C_Read... [11:06:52]Read from MH i2c: E2 03 00 [11:06:52]MH_I2C_Read... [11:06:52]Read from MH i2c: E2 03 00 12 03 00 90 00 89 [11:06:52]RAPDU: 90 00 [11:06:52]wFMCommunicate OK [11:06:52]wFMCommunicate request_size=4 [11:06:52]MH_SAM_APDU [11:06:52]CAPDU: 80 0D 03 02 [11:06:52]Write to MH i2c: E2 08 00 13 03 80 0D 03 02 00 00 00 00 91 [11:06:52]Write i2c OK [11:06:52]MH_I2C_Read... [11:06:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:06:52]Read from MH i2c: E2 [11:06:52]MH_I2C_Read... [11:06:52]Read from MH i2c: E2 0B 00 [11:06:52]MH_I2C_Read... [11:06:52]Read from MH i2c: E2 0B 00 13 03 00 33 49 84 C5 4C D6 35 65 90 00 13 [11:06:52]RAPDU: 33 49 84 C5 4C D6 35 65 90 00 [11:06:52]wFMCommunicate OK [11:06:52]SAM_PROTO_SignData done [11:06:52]FM_MakeSignedData done [11:06:52]CreateOFDProtocolMessage [11:06:52]wFMCommunicate request_size=4 [11:06:52]MH_SAM_APDU [11:06:52]CAPDU: 80 11 00 00 [11:06:52]Write to MH i2c: E2 08 00 14 03 80 11 00 00 00 00 00 00 91 [11:06:52]Write i2c OK [11:06:52]MH_I2C_Read... [11:06:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:52]Read from MH i2c: E2 [11:06:52]MH_I2C_Read... [11:06:52]Read from MH i2c: E2 17 00 [11:06:52]MH_I2C_Read... [11:06:52]Read from MH i2c: E2 17 00 14 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E8 [11:06:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:06:52]wFMCommunicate OK [11:06:52]CreateOFDProtocolMessage done [11:06:52]OFDSenderStorePacket 227353 [11:06:52]StoreOFDPacket docnum=227353 [11:06:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 4B 04 00 01 24 44 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 4B E4 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 19 78 03 00 35 04 06 00 C7 AE 1F 7E 63 D3 33 49 84 C5 4C D6 35 65 [11:06:52]CheckFolder [11:06:52]dirname=/storage/ofd_packets [11:06:52]CheckFolder done [11:06:52]ProducePacketName [11:06:52]name=ofd_packets/00227353 [11:06:52]NVStorageSaveData ofd_packets/00227353 [11:06:52]File name is /storage/ofd_packets/00227353 [11:06:52]Write 294 bytes [11:06:52]NVStorageSaveData done [11:06:52]OFDSenderStorePacket done [11:06:52]KKMCreateOFDPacket done [11:06:52]NVStorageSaveData kkm_last_timestamp [11:06:52]File name is /storage/kkm_last_timestamp [11:06:52]Write 4 bytes [11:06:52]NVStorageSaveData done [11:06:52]ExternCall_PrintAddStr [11:06:52]wPrintStart [11:06:52]Write to MH i2c: 01 00 00 15 03 18 [11:06:52]Write i2c OK [11:06:52]MH_I2C_Read... [11:06:52]Read from MH i2c: 01 [11:06:52]MH_I2C_Read... [11:06:52]Read from MH i2c: 01 07 00 [11:06:52]MH_I2C_Read... [11:06:52]Read from MH i2c: 01 07 00 15 03 00 00 00 00 00 FF 0F 2D [11:06:52]RasterBufferAndPrint [11:06:52]line Счет N : (1)1962863 [11:06:52]line ИНН: 02508201610067 [11:06:52]line Контрольно-Кассовый Чек [11:06:52]line ПРОДАЖА [11:06:52]line ТРК (МРК, ГНК) : 42 [11:06:52]line Товар: 2710124130 [11:06:52]line SU-92 [11:06:52]line 7.310 * 68.40 [11:06:52]line = 500.00 [11:06:52]line НДС 12% НСП 1% [11:06:52]line > о реализуемом товаре [11:06:52]line ИТОГО: 500.00 [11:06:52]line НСП 1% : 4.42 [11:06:52]line НДС 12% : 53.10 [11:06:52]line Наличными: 0.00 [11:06:52]line Безнал.: 500.00 [11:06:52]line Место: АЗС № 133 "Партнер Нефть" [11:06:52]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:06:52]line СНО: Общий режим [11:06:52]line Чек 201 20.10.2024 11:06 [11:06:52]line Смена: 533 ФФД: 1.0 [11:06:52]line ЗНМ: 0300000091 [11:06:52]line РНМ: 0000000000091685 [11:06:52]line Версия ККМ: 001 [11:06:52]line Платежная система: Mbank [11:06:52]line ФМ: 0000000000871839 [11:06:52]line ФД: 227353 [11:06:52]line ФПД: 219550666613715 [11:06:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T110651&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227353&fm=219550666613715&tin=02508201610067®Number=0000000000091685&sum=50000 [11:06:52]written 0, free lines is 4095 [11:06:52]OFD Sender: Processing packet 227353 [packets to send 38, broken 37] [11:06:52]ProducePacketName [11:06:52]name=ofd_packets/00227353 [11:06:52]OFD Sender: To server: pG, [11:06:52]CommunicateWithHost lk.salyk.kg:30040 [11:06:52]ConnectInit lk.salyk.kg [11:06:52]Connected sock=8 [11:06: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 33 39 08 01 00 00 4B 04 00 01 24 44 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 4B E4 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 19 78 03 00 35 04 06 00 C7 AE 1F 7E 63 D3 33 49 84 C5 4C D6 35 65 [11:06: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 33 39 4F 00 00 00 E4 DD 47 00 A9 F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 19 78 03 00 F4 03 04 00 4A 8F 14 67 B6 04 01 00 00 9B 9F 51 FC CD B8 35 04 [11:06:53]CommunicateWithHost err = 0 [11:06:53]CheckOFDResponse [11:06:53]1017 (14) - 77093643461234 [11:06:53]1041 (16) - 0000000000871839 [11:06:53]1040 (4) - 227353 [11:06:53]1012 (4) - 20.10.2024 05:04 [11:06:53]1206 (1) - 0 [11:06:53]OFD Sender: Remove packet 227353 [11:06:53]ProducePacketName [11:06:53]name=ofd_packets/00227353 [11:06:53]NVStorageDeleteData [11:06:53]Write to MH i2c: 01 00 00 3D 03 40 [11:06:53]Write i2c OK [11:06:53]MH_I2C_Read... [11:06:53]Read from MH i2c: 01 [11:06:53]MH_I2C_Read... [11:06:53]Read from MH i2c: 01 07 00 [11:06:53]MH_I2C_Read... [11:06:53]Read from MH i2c: 01 07 00 3D 03 00 00 00 00 00 33 0D 87 [11:06:53]RasterBufferAndPrint [11:06:53]line [11:06:53]line [11:06:53]line [11:06:53]line [11:06:53]line [11:06:53]written 0, free lines is 3392 [11:06:53]process_action close_receipt done [11:06:53]requested_data is exist [11:06:53]produce_requested_data [11:06:53]requested_item fm.sn is exist - process it [11:06:53]wFMCommunicate request_size=4 [11:06:53]MH_SAM_APDU [11:06:53]CAPDU: 80 11 00 00 [11:06:53]Write to MH i2c: E2 08 00 44 03 80 11 00 00 00 00 00 00 C1 [11:06:53]Write i2c OK [11:06:53]MH_I2C_Read... [11:06:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:53]Read from MH i2c: E2 [11:06:53]MH_I2C_Read... [11:06:53]Read from MH i2c: E2 17 00 [11:06:53]MH_I2C_Read... [11:06:53]Read from MH i2c: E2 17 00 44 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 18 [11:06:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:06:53]wFMCommunicate OK [11:06:53]requested_item fd.num is exist - process it [11:06:53]SAM_PROTO_GetFieldsCounters [11:06:53]wFMCommunicate request_size=4 [11:06:53]MH_SAM_APDU [11:06:53]CAPDU: 80 13 00 00 [11:06:53]Write to MH i2c: E2 08 00 45 03 80 13 00 00 00 00 00 00 C4 [11:06:53]Write i2c OK [11:06:53]MH_I2C_Read... [11:06:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:06:53]Read from MH i2c: E2 [11:06:53]MH_I2C_Read... [11:06:53]Read from MH i2c: E2 62 00 [11:06:53]MH_I2C_Read... [11:06:53]Read from MH i2c: E2 62 00 45 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 19 78 03 00 0E 04 04 00 15 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 F3 [11:06: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 19 78 03 00 0E 04 04 00 15 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 [11:06:53]wFMCommunicate OK [11:06:53]SAM_PROTO_GetFieldsCounters done [11:06:53]requested_item shift.num is exist - process it [11:06:53]requested_item shift.opened is exist - process it [11:06:53]req_shift_opened [11:06:53]FM_GetShiftState [11:06:53]SAM_PROTO_GetShiftState [11:06:53]wFMCommunicate request_size=4 [11:06:53]MH_SAM_APDU [11:06:53]CAPDU: 80 13 01 00 [11:06:53]Write to MH i2c: E2 08 00 46 03 80 13 01 00 00 00 00 00 C6 [11:06:53]Write i2c OK [11:06:53]MH_I2C_Read... [11:06:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:53]Read from MH i2c: E2 [11:06:53]MH_I2C_Read... [11:06:53]Read from MH i2c: E2 0E 00 [11:06:53]MH_I2C_Read... [11:06:53]Read from MH i2c: E2 0E 00 46 03 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 E0 [11:06:53]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:06:53]wFMCommunicate OK [11:06:53]SAM_PROTO_GetShiftState done [11:06:53]FM_GetShiftState done [11:06:53]req_shift_opened done [11:06:53]requested_item shift.open_date is exist - process it [11:06:53]req_shift_open_date [11:06:53]req_shift_open_date done [11:06:53]produce_requested_data done [11:06:53]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227353,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [11:06:53]process_action_free close_receipt [11:06:53]json_value_free [11:06:53]json_value_free done [11:06:53]process_json_proto returns [11:06:53]Send response to host [11:06:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227353,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [11:06:53]free response buf [11:06:53]execute_script done [11:06:53]execute_script returns [11:06:53]free content buf [11:06:53]Sock 9.Close socket [11:06:53]Sock 9.Thread stoped [11:06:53]OFD Sender: No OFD packet to send [11:06:58]OFD Sender: No OFD packet to send [11:07:03]OFD Sender: No OFD packet to send [11:07:08]OFD Sender: No OFD packet to send [11:07:13]OFD Sender: No OFD packet to send [11:07:18]OFD Sender: No OFD packet to send [11:07:23]OFD Sender: No OFD packet to send [11:07:28]OFD Sender: No OFD packet to send [11:07:33]OFD Sender: No OFD packet to send [11:07:38]OFD Sender: No OFD packet to send [11:07:43]OFD Sender: No OFD packet to send [11:07:48]OFD Sender: No OFD packet to send [11:07:53]OFD Sender: No OFD packet to send [11:07:58]OFD Sender: No OFD packet to send [11:08:03]OFD Sender: No OFD packet to send [11:08:08]OFD Sender: No OFD packet to send [11:08:13]OFD Sender: No OFD packet to send [11:08:18]OFD Sender: No OFD packet to send [11:08:23]OFD Sender: No OFD packet to send [11:08:28]OFD Sender: No OFD packet to send [11:08:33]OFD Sender: No OFD packet to send [11:08:38]OFD Sender: No OFD packet to send [11:08:43]OFD Sender: No OFD packet to send [11:08:48]OFD Sender: No OFD packet to send [11:08:53]OFD Sender: No OFD packet to send [11:08:58]OFD Sender: No OFD packet to send [11:09:03]OFD Sender: No OFD packet to send [11:09:08]OFD Sender: No OFD packet to send [11:09:13]OFD Sender: No OFD packet to send [11:09:18]OFD Sender: No OFD packet to send [11:09:23]OFD Sender: No OFD packet to send [11:09:28]OFD Sender: No OFD packet to send [11:09:33]OFD Sender: No OFD packet to send [11:09:38]OFD Sender: No OFD packet to send [11:09:43]OFD Sender: No OFD packet to send [11:09:48]OFD Sender: No OFD packet to send [11:09:53]OFD Sender: No OFD packet to send [11:09:58]OFD Sender: No OFD packet to send [11:10:03]OFD Sender: No OFD packet to send [11:10:08]OFD Sender: No OFD packet to send [11:10:13]OFD Sender: No OFD packet to send [11:10:18]OFD Sender: No OFD packet to send [11:10:23]OFD Sender: No OFD packet to send [11:10:28]OFD Sender: No OFD packet to send [11:10:33]accept exits with 10 [11:10:33]New connection [11:10:33]New thread 3066543460 created [11:10:33]Thread 3066686820 joined [11:10:33]Waiting for new connection... [11:10:33] Sock 10.Parse request [11:10:33]Sock 10.Check first char [11:10:33]Sock 10.First char is OK [11:10:33]request: POST /json_proto HTTP/1.0 [11:10:33]Method: POST [11:10:33]URL: /json_proto [11:10:33]Method is POST - this is cgi request [11:10:33]url: /json_proto [11:10:33]query_string will be loaded in cgi processing [11:10:33]execute_cgi json_proto POST (null) [11:10:33]execute_cgi path=json_proto method=POST [11:10:33]POST find Content-Length [11:10:33]Host: 172.17.44.195:8080 [11:10:33]Content-Length: 683 [11:10:33]Content-Type: application/json [11:10:33] [11:10:33]POST finish read [11:10:33]Found Content-Length = 683 [11:10:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962868", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:33]execute_script... [11: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)1962868", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:33]POST & json_proto [11:10:33]process_json_proto [11:10:33]json parsed OK: [11:10:33]protocol is kg_v1.0 [11:10:33]action value=close_receipt [11:10:33]process_action close_receipt [11:10:33]cmd_close_receipt [11:10:33]MH_GetDate [11:10:33]Write to MH i2c: F0 00 00 47 03 39 [11:10:33]Write i2c OK [11:10:33]MH_I2C_Read... [11:10:33]Read from MH i2c: F0 [11:10:33]MH_I2C_Read... [11:10:33]Read from MH i2c: F0 09 00 [11:10:33]MH_I2C_Read... [11:10:33]Read from MH i2c: F0 09 00 47 03 00 2A E5 14 67 82 C9 CF 66 4C [11:10:33]GetLastDocTimeStamp 1729422411 [11:10:33]current date 1729422634 [11:10:33]FM_GetShiftState [11:10:33]SAM_PROTO_GetShiftState [11:10:33]wFMCommunicate request_size=4 [11:10:33]MH_SAM_APDU [11:10:33]CAPDU: 80 13 01 00 [11:10:33]Write to MH i2c: E2 08 00 48 03 80 13 01 00 00 00 00 00 C8 [11:10:33]Write i2c OK [11:10:33]MH_I2C_Read... [11:10:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:33]Read from MH i2c: E2 [11:10:33]MH_I2C_Read... [11:10:33]Read from MH i2c: E2 0E 00 [11:10:33]MH_I2C_Read... [11:10:33]Read from MH i2c: E2 0E 00 48 03 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 E2 [11:10:33]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:10:33]wFMCommunicate OK [11:10:33]SAM_PROTO_GetShiftState done [11:10:33]FM_GetShiftState done [11:10:33]opened in 1729383750 [11:10:33]opened+sec_in_day 1729470150 [11:10:33]quantity*price = 100021 [11:10:33]sum+1 = 100023 [11:10:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 202 20.10.2024 11:10 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227354 ФПД: 199250988447735 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111034&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227354&fm=199250988447735&tin=02508201610067®Number=0000000000091685&sum=100000 [11:10:34]StoreToDocumentArchive [11:10:34]shift 533 fd 227354 [11:10:34]save to /storage/0533/doc_00227354 [11:10:34]save last doc name /storage/0533/doc_00227354 to /storage/kkm_last_doc_name [11:10:34]save OK [11:10:34]Clear old archive folders... [11:10:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:10:34]tlvbuf is 01854300 [11:10:34]SAM_PROTO_ClearQueue [11:10:34]wFMCommunicate request_size=4 [11:10:34]MH_SAM_APDU [11:10:34]CAPDU: 80 09 00 00 [11:10:34]Write to MH i2c: E2 08 00 55 03 80 09 00 00 00 00 00 00 CA [11:10:34]Write i2c OK [11:10:34]MH_I2C_Read... [11:10:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:10:34]Read from MH i2c: E2 [11:10:34]MH_I2C_Read... [11:10:34]Read from MH i2c: E2 03 00 [11:10:34]MH_I2C_Read... [11:10:34]Read from MH i2c: E2 03 00 55 03 00 90 00 CC [11:10:34]RAPDU: 90 00 [11:10:34]wFMCommunicate OK [11:10:34]SAM_PROTO_ClearQueue done [11:10:34]KKMCreateOFDPacket [11:10:34]OFDProtocolAddRootSTLVToBuf [11:10:34]FM_MakeSignedData [11:10:34]FM_MakeSignedData [11:10:34]SAM_PROTO_SignData [11:10:34]wFMCommunicate request_size=4 [11:10:34]MH_SAM_APDU [11:10:34]CAPDU: 80 0D 01 02 [11:10:34]Write to MH i2c: E2 08 00 56 03 80 0D 01 02 00 00 00 00 D2 [11:10:34]Write i2c OK [11:10:34]MH_I2C_Read... [11:10:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:10:34]Read from MH i2c: E2 [11:10:34]MH_I2C_Read... [11:10:34]Read from MH i2c: E2 03 00 [11:10:34]MH_I2C_Read... [11:10:34]Read from MH i2c: E2 03 00 56 03 00 90 00 CD [11:10:34]RAPDU: 90 00 [11:10:34]wFMCommunicate OK [11:10:34]wFMCommunicate request_size=255 [11:10:34]MH_SAM_APDU [11:10: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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 2A E5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1A 78 03 00 35 04 06 00 B5 [11:10:34]Write to MH i2c: E2 02 01 57 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 2A E5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1A 78 03 00 35 04 06 00 B5 00 00 3B [11:10:34]Write i2c OK [11:10:34]MH_I2C_Read... [11:10:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:35]Read from MH i2c: E2 [11:10:35]MH_I2C_Read... [11:10:35]Read from MH i2c: E2 03 00 [11:10:35]MH_I2C_Read... [11:10:35]Read from MH i2c: E2 03 00 57 03 00 90 00 CE [11:10:35]RAPDU: 90 00 [11:10:35]wFMCommunicate OK [11:10:35]wFMCommunicate request_size=10 [11:10:35]MH_SAM_APDU [11:10:35]CAPDU: 80 0D 02 02 05 37 BC 63 37 F7 [11:10:35]Write to MH i2c: E2 0D 00 58 03 80 0D 02 02 05 00 37 BC 63 37 F7 00 00 63 [11:10:35]Write i2c OK [11:10:35]MH_I2C_Read... [11:10:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:35]Read from MH i2c: E2 [11:10:35]MH_I2C_Read... [11:10:35]Read from MH i2c: E2 03 00 [11:10:35]MH_I2C_Read... [11:10:35]Read from MH i2c: E2 03 00 58 03 00 90 00 CF [11:10:35]RAPDU: 90 00 [11:10:35]wFMCommunicate OK [11:10:35]wFMCommunicate request_size=4 [11:10:35]MH_SAM_APDU [11:10:35]CAPDU: 80 0D 03 02 [11:10:35]Write to MH i2c: E2 08 00 59 03 80 0D 03 02 00 00 00 00 D7 [11:10:35]Write i2c OK [11:10:35]MH_I2C_Read... [11:10:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:10:35]Read from MH i2c: E2 [11:10:35]MH_I2C_Read... [11:10:35]Read from MH i2c: E2 0B 00 [11:10:35]MH_I2C_Read... [11:10:35]Read from MH i2c: E2 0B 00 59 03 00 74 B3 97 74 62 14 BF FD 90 00 3C [11:10:35]RAPDU: 74 B3 97 74 62 14 BF FD 90 00 [11:10:35]wFMCommunicate OK [11:10:35]SAM_PROTO_SignData done [11:10:35]FM_MakeSignedData done [11:10:35]CreateOFDProtocolMessage [11:10:35]wFMCommunicate request_size=4 [11:10:35]MH_SAM_APDU [11:10:35]CAPDU: 80 11 00 00 [11:10:35]Write to MH i2c: E2 08 00 5A 03 80 11 00 00 00 00 00 00 D7 [11:10:35]Write i2c OK [11:10:35]MH_I2C_Read... [11:10:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:35]Read from MH i2c: E2 [11:10:35]MH_I2C_Read... [11:10:35]Read from MH i2c: E2 17 00 [11:10:35]MH_I2C_Read... [11:10:35]Read from MH i2c: E2 17 00 5A 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 2E [11:10:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:10:35]wFMCommunicate OK [11:10:35]CreateOFDProtocolMessage done [11:10:35]OFDSenderStorePacket 227354 [11:10:35]StoreOFDPacket docnum=227354 [11:10:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 AD 25 07 01 01 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 2A E5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1A 78 03 00 35 04 06 00 B5 37 BC 63 37 F7 74 B3 97 74 62 14 BF FD [11:10:35]CheckFolder [11:10:35]dirname=/storage/ofd_packets [11:10:35]CheckFolder done [11:10:35]ProducePacketName [11:10:35]name=ofd_packets/00227354 [11:10:35]NVStorageSaveData ofd_packets/00227354 [11:10:35]File name is /storage/ofd_packets/00227354 [11:10:35]Write 301 bytes [11:10:35]NVStorageSaveData done [11:10:35]OFDSenderStorePacket done [11:10:35]KKMCreateOFDPacket done [11:10:35]NVStorageSaveData kkm_last_timestamp [11:10:35]File name is /storage/kkm_last_timestamp [11:10:35]Write 4 bytes [11:10:35]NVStorageSaveData done [11:10:35]ExternCall_PrintAddStr [11:10:35]wPrintStart [11:10:35]Write to MH i2c: 01 00 00 5B 03 5E [11:10:35]Write i2c OK [11:10:35]MH_I2C_Read... [11:10:35]Read from MH i2c: 01 [11:10:35]MH_I2C_Read... [11:10:35]Read from MH i2c: 01 07 00 [11:10:35]MH_I2C_Read... [11:10:35]Read from MH i2c: 01 07 00 5B 03 00 00 00 00 00 FF 0F 73 [11:10:35]RasterBufferAndPrint [11:10:35]line Счет N : (1)1962868 [11:10:35]line ИНН: 02508201610067 [11:10:35]line Контрольно-Кассовый Чек [11:10:35]line ПРОДАЖА [11:10:35]line ТРК (МРК, ГНК) : 64 [11:10:35]line Товар: 2710124500 [11:10:35]line Аи-95-К-5 [11:10:35]line 13.480 * 74.20 [11:10:35]line = 1000.22 [11:10:35]line НДС 12% НСП 1% [11:10:35]line > о реализуемом товаре [11:10:35]line ОКРУГЛЕНИЕ: -0.22 [11:10:35]line ИТОГО: 1000.00 [11:10:35]line Внесено: 1000.00 [11:10:35]line СДАЧА: 0.00 [11:10:35]line НСП 1% : 8.85 [11:10:35]line НДС 12% : 106.22 [11:10:35]line Наличными: 1000.00 [11:10:35]line Безнал.: 0.00 [11:10:35]line Место: АЗС № 133 "Партнер Нефть" [11:10:35]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:10:35]line СНО: Общий режим [11:10:35]line Чек 202 20.10.2024 11:10 [11:10:35]line Смена: 533 ФФД: 1.0 [11:10:35]line ЗНМ: 0300000091 [11:10:35]line РНМ: 0000000000091685 [11:10:35]line Версия ККМ: 001 [11:10:35]line ФМ: 0000000000871839 [11:10:35]line ФД: 227354 [11:10:35]line ФПД: 199250988447735 [11:10:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111034&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227354&fm=199250988447735&tin=02508201610067®Number=0000000000091685&sum=100000 [11:10:35]OFD Sender: Processing packet 227354 [packets to send 38, broken 37] [11:10:35]ProducePacketName [11:10:35]name=ofd_packets/00227354 [11:10:35]OFD Sender: To server: pG, [11:10:35]CommunicateWithHost lk.salyk.kg:30040 [11:10:35]ConnectInit lk.salyk.kg [11:10:35]written 0, free lines is 4095 [11:10:35]Connected sock=9 [11: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 33 39 0F 01 00 00 AD 25 07 01 01 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 2A E5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1A 78 03 00 35 04 06 00 B5 37 BC 63 37 F7 74 B3 97 74 62 14 BF FD [11: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 33 39 4F 00 00 00 A7 3E 47 00 15 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 33 39 10 04 04 00 1A 78 03 00 F4 03 04 00 29 90 14 67 B6 04 01 00 00 BE 7B FB B5 7E 34 43 DD [11:10:36]CommunicateWithHost err = 0 [11:10:36]CheckOFDResponse [11:10:36]1017 (14) - 77093643461234 [11:10:36]1041 (16) - 0000000000871839 [11:10:36]1040 (4) - 227354 [11:10:36]1012 (4) - 20.10.2024 05:07 [11:10:36]1206 (1) - 0 [11:10:36]OFD Sender: Remove packet 227354 [11:10:36]ProducePacketName [11:10:36]name=ofd_packets/00227354 [11:10:36]NVStorageDeleteData [11:10:36]Write to MH i2c: 01 00 00 85 03 88 [11:10:36]Write i2c OK [11:10:36]MH_I2C_Read... [11:10:36]Read from MH i2c: 01 [11:10:36]MH_I2C_Read... [11:10:36]Read from MH i2c: 01 07 00 [11:10:36]MH_I2C_Read... [11:10:36]Read from MH i2c: 01 07 00 85 03 00 00 00 00 00 15 0D B1 [11:10:36]RasterBufferAndPrint [11:10:36]line [11:10:36]line [11:10:36]line [11:10:36]line [11:10:36]line [11:10:36]written 0, free lines is 3355 [11:10:36]process_action close_receipt done [11:10:36]requested_data is exist [11:10:36]produce_requested_data [11:10:36]requested_item fm.sn is exist - process it [11:10:36]wFMCommunicate request_size=4 [11:10:36]MH_SAM_APDU [11:10:36]CAPDU: 80 11 00 00 [11:10:36]Write to MH i2c: E2 08 00 8C 03 80 11 00 00 00 00 00 00 09 [11:10:36]Write i2c OK [11:10:36]MH_I2C_Read... [11:10:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:36]Read from MH i2c: E2 [11:10:36]MH_I2C_Read... [11:10:36]Read from MH i2c: E2 17 00 [11:10:36]MH_I2C_Read... [11:10:36]Read from MH i2c: E2 17 00 8C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 60 [11:10:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:10:36]wFMCommunicate OK [11:10:36]requested_item fd.num is exist - process it [11:10:36]SAM_PROTO_GetFieldsCounters [11:10:36]wFMCommunicate request_size=4 [11:10:36]MH_SAM_APDU [11:10:36]CAPDU: 80 13 00 00 [11:10:36]Write to MH i2c: E2 08 00 8D 03 80 13 00 00 00 00 00 00 0C [11:10:36]Write i2c OK [11:10:36]MH_I2C_Read... [11:10:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:10:36]Read from MH i2c: E2 [11:10:36]MH_I2C_Read... [11:10:36]Read from MH i2c: E2 62 00 [11:10:36]MH_I2C_Read... [11:10:36]Read from MH i2c: E2 62 00 8D 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 1A 78 03 00 0E 04 04 00 15 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 3F [11:10: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 1A 78 03 00 0E 04 04 00 15 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 [11:10:36]wFMCommunicate OK [11:10:36]SAM_PROTO_GetFieldsCounters done [11:10:36]requested_item shift.num is exist - process it [11:10:36]requested_item shift.opened is exist - process it [11:10:36]req_shift_opened [11:10:36]FM_GetShiftState [11:10:36]SAM_PROTO_GetShiftState [11:10:36]wFMCommunicate request_size=4 [11:10:36]MH_SAM_APDU [11:10:36]CAPDU: 80 13 01 00 [11:10:36]Write to MH i2c: E2 08 00 8E 03 80 13 01 00 00 00 00 00 0E [11:10:36]Write i2c OK [11:10:36]MH_I2C_Read... [11:10:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:36]Read from MH i2c: E2 [11:10:36]MH_I2C_Read... [11:10:36]Read from MH i2c: E2 0E 00 [11:10:36]MH_I2C_Read... [11:10:36]Read from MH i2c: E2 0E 00 8E 03 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 28 [11:10:36]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:10:36]wFMCommunicate OK [11:10:36]SAM_PROTO_GetShiftState done [11:10:36]FM_GetShiftState done [11:10:36]req_shift_opened done [11:10:36]requested_item shift.open_date is exist - process it [11:10:36]req_shift_open_date [11:10:36]req_shift_open_date done [11:10:36]produce_requested_data done [11:10:36]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227354,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [11:10:36]process_action_free close_receipt [11:10:36]json_value_free [11:10:36]json_value_free done [11:10:36]process_json_proto returns [11:10:36]Send response to host [11:10:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227354,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [11:10:36]free response buf [11:10:36]execute_script done [11:10:36]execute_script returns [11:10:36]free content buf [11:10:36]Sock 10.Close socket [11:10:36]Sock 10.Thread stoped [11:10:36]OFD Sender: No OFD packet to send [11:10:41]OFD Sender: No OFD packet to send [11:10:46]OFD Sender: No OFD packet to send [11:10:51]OFD Sender: No OFD packet to send [11:10:56]OFD Sender: No OFD packet to send [11:11:01]OFD Sender: No OFD packet to send [11:11:06]OFD Sender: No OFD packet to send [11:11:11]OFD Sender: No OFD packet to send [11:11:16]OFD Sender: No OFD packet to send [11:11:21]OFD Sender: No OFD packet to send [11:11:26]OFD Sender: No OFD packet to send [11:11:31]accept exits with 8 [11:11:31]New connection [11:11:31]New thread 3066686820 created [11:11:31]Thread 3066543460 joined [11:11:31]Waiting for new connection... [11:11:31] Sock 8.Parse request [11:11:31]Sock 8.Check first char [11:11:31]Sock 8.First char is OK [11:11:31]request: POST /json_proto HTTP/1.0 [11:11:31]Method: POST [11:11:31]URL: /json_proto [11:11:31]Method is POST - this is cgi request [11:11:31]url: /json_proto [11:11:31]query_string will be loaded in cgi processing [11:11:31]execute_cgi json_proto POST (null) [11:11:31]execute_cgi path=json_proto method=POST [11:11:31]POST find Content-Length [11:11:31]Host: 172.17.44.195:8080 [11:11:31]Content-Length: 675 [11:11:31]Content-Type: application/json [11:11:31] [11:11:31]POST finish read [11:11:31]Found Content-Length = 675 [11:11:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962870", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:31]execute_script... [11:11: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)1962870", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:31]POST & json_proto [11:11:31]process_json_proto [11:11:31]json parsed OK: [11:11:31]protocol is kg_v1.0 [11:11:31]action value=close_receipt [11:11:31]process_action close_receipt [11:11:31]cmd_close_receipt [11:11:31]MH_GetDate [11:11:31]Write to MH i2c: F0 00 00 8F 03 81 [11:11:31]Write i2c OK [11:11:31]MH_I2C_Read... [11:11:31]Read from MH i2c: F0 [11:11:31]MH_I2C_Read... [11:11:31]Read from MH i2c: F0 09 00 [11:11:31]MH_I2C_Read... [11:11:31]Read from MH i2c: F0 09 00 8F 03 00 63 E5 14 67 82 C9 CF 66 CD [11:11:31]GetLastDocTimeStamp 1729422634 [11:11:31]current date 1729422691 [11:11:31]FM_GetShiftState [11:11:31]SAM_PROTO_GetShiftState [11:11:31]wFMCommunicate request_size=4 [11:11:31]MH_SAM_APDU [11:11:31]CAPDU: 80 13 01 00 [11:11:31]Write to MH i2c: E2 08 00 90 03 80 13 01 00 00 00 00 00 10 [11:11:31]Write i2c OK [11:11:31]MH_I2C_Read... [11:11:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:31]Read from MH i2c: E2 [11:11:31]MH_I2C_Read... [11:11:31]Read from MH i2c: E2 0E 00 [11:11:31]MH_I2C_Read... [11:11:31]Read from MH i2c: E2 0E 00 90 03 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 2A [11:11:31]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:11:31]wFMCommunicate OK [11:11:31]SAM_PROTO_GetShiftState done [11:11:31]FM_GetShiftState done [11:11:31]opened in 1729383750 [11:11:31]opened+sec_in_day 1729470150 [11:11:31]quantity*price = 50063 [11:11:31]sum+1 = 50064 [11:11:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 203 20.10.2024 11:11 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227355 ФПД: 549348977205 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111131&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227355&fm=549348977205&tin=02508201610067®Number=0000000000091685&sum=50000 [11:11:32]StoreToDocumentArchive [11:11:32]shift 533 fd 227355 [11:11:32]save to /storage/0533/doc_00227355 [11:11:32]save last doc name /storage/0533/doc_00227355 to /storage/kkm_last_doc_name [11:11:32]save OK [11:11:32]Clear old archive folders... [11:11:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:11:32]tlvbuf is 0183DA10 [11:11:32]SAM_PROTO_ClearQueue [11:11:32]wFMCommunicate request_size=4 [11:11:32]MH_SAM_APDU [11:11:32]CAPDU: 80 09 00 00 [11:11:32]Write to MH i2c: E2 08 00 9D 03 80 09 00 00 00 00 00 00 12 [11:11:32]Write i2c OK [11:11:32]MH_I2C_Read... [11:11:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:11:32]Read from MH i2c: E2 [11:11:32]MH_I2C_Read... [11:11:32]Read from MH i2c: E2 03 00 [11:11:32]MH_I2C_Read... [11:11:32]Read from MH i2c: E2 03 00 9D 03 00 90 00 14 [11:11:32]RAPDU: 90 00 [11:11:32]wFMCommunicate OK [11:11:32]SAM_PROTO_ClearQueue done [11:11:32]KKMCreateOFDPacket [11:11:32]OFDProtocolAddRootSTLVToBuf [11:11:32]FM_MakeSignedData [11:11:32]FM_MakeSignedData [11:11:32]SAM_PROTO_SignData [11:11:32]wFMCommunicate request_size=4 [11:11:32]MH_SAM_APDU [11:11:32]CAPDU: 80 0D 01 02 [11:11:32]Write to MH i2c: E2 08 00 9E 03 80 0D 01 02 00 00 00 00 1A [11:11:32]Write i2c OK [11:11:32]MH_I2C_Read... [11:11:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:11:32]Read from MH i2c: E2 [11:11:32]MH_I2C_Read... [11:11:32]Read from MH i2c: E2 03 00 [11:11:32]MH_I2C_Read... [11:11:32]Read from MH i2c: E2 03 00 9E 03 00 90 00 15 [11:11:32]RAPDU: 90 00 [11:11:32]wFMCommunicate OK [11:11:32]wFMCommunicate request_size=255 [11:11:32]MH_SAM_APDU [11:11: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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 63 E5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1B 78 03 00 35 04 06 00 00 7F E7 C0 [11:11:32]Write to MH i2c: E2 02 01 9F 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 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 63 E5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1B 78 03 00 35 04 06 00 00 7F E7 C0 00 00 90 [11:11:32]Write i2c OK [11:11:32]MH_I2C_Read... [11:11:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:32]Read from MH i2c: E2 [11:11:32]MH_I2C_Read... [11:11:32]Read from MH i2c: E2 03 00 [11:11:32]MH_I2C_Read... [11:11:32]Read from MH i2c: E2 03 00 9F 03 00 90 00 16 [11:11:32]RAPDU: 90 00 [11:11:32]wFMCommunicate OK [11:11:32]wFMCommunicate request_size=7 [11:11:32]MH_SAM_APDU [11:11:32]CAPDU: 80 0D 02 02 02 2A 35 [11:11:32]Write to MH i2c: E2 0A 00 A0 03 80 0D 02 02 02 00 2A 35 00 00 80 [11:11:32]Write i2c OK [11:11:32]MH_I2C_Read... [11:11:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:32]Read from MH i2c: E2 [11:11:32]MH_I2C_Read... [11:11:32]Read from MH i2c: E2 03 00 [11:11:32]MH_I2C_Read... [11:11:32]Read from MH i2c: E2 03 00 A0 03 00 90 00 17 [11:11:32]RAPDU: 90 00 [11:11:32]wFMCommunicate OK [11:11:32]wFMCommunicate request_size=4 [11:11:32]MH_SAM_APDU [11:11:32]CAPDU: 80 0D 03 02 [11:11:32]Write to MH i2c: E2 08 00 A1 03 80 0D 03 02 00 00 00 00 1F [11:11:32]Write i2c OK [11:11:32]MH_I2C_Read... [11:11:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:11:32]Read from MH i2c: E2 [11:11:32]MH_I2C_Read... [11:11:32]Read from MH i2c: E2 0B 00 [11:11:32]MH_I2C_Read... [11:11:32]Read from MH i2c: E2 0B 00 A1 03 00 A6 52 23 24 00 EA CB 55 90 00 69 [11:11:32]RAPDU: A6 52 23 24 00 EA CB 55 90 00 [11:11:32]wFMCommunicate OK [11:11:32]SAM_PROTO_SignData done [11:11:32]FM_MakeSignedData done [11:11:32]CreateOFDProtocolMessage [11:11:32]wFMCommunicate request_size=4 [11:11:32]MH_SAM_APDU [11:11:32]CAPDU: 80 11 00 00 [11:11:32]Write to MH i2c: E2 08 00 A2 03 80 11 00 00 00 00 00 00 1F [11:11:32]Write i2c OK [11:11:32]MH_I2C_Read... [11:11:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:32]Read from MH i2c: E2 [11:11:32]MH_I2C_Read... [11:11:32]Read from MH i2c: E2 17 00 [11:11:32]MH_I2C_Read... [11:11:32]Read from MH i2c: E2 17 00 A2 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 76 [11:11:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:11:32]wFMCommunicate OK [11:11:32]CreateOFDProtocolMessage done [11:11:32]OFDSenderStorePacket 227355 [11:11:32]StoreOFDPacket docnum=227355 [11:11:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 3E 89 04 01 AF 81 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 63 E5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1B 78 03 00 35 04 06 00 00 7F E7 C0 2A 35 A6 52 23 24 00 EA CB 55 [11:11:32]CheckFolder [11:11:32]dirname=/storage/ofd_packets [11:11:32]CheckFolder done [11:11:32]ProducePacketName [11:11:32]name=ofd_packets/00227355 [11:11:32]NVStorageSaveData ofd_packets/00227355 [11:11:32]File name is /storage/ofd_packets/00227355 [11:11:32]Write 298 bytes [11:11:32]NVStorageSaveData done [11:11:32]OFDSenderStorePacket done [11:11:32]KKMCreateOFDPacket done [11:11:32]NVStorageSaveData kkm_last_timestamp [11:11:32]File name is /storage/kkm_last_timestamp [11:11:32]Write 4 bytes [11:11:32]NVStorageSaveData done [11:11:32]ExternCall_PrintAddStr [11:11:32]wPrintStart [11:11:32]Write to MH i2c: 01 00 00 A3 03 A6 [11:11:32]Write i2c OK [11:11:32]MH_I2C_Read... [11:11:32]Read from MH i2c: 01 [11:11:32]MH_I2C_Read... [11:11:32]Read from MH i2c: 01 07 00 [11:11:32]MH_I2C_Read... [11:11:32]Read from MH i2c: 01 07 00 A3 03 00 00 00 00 00 FF 0F BB [11:11:32]RasterBufferAndPrint [11:11:32]line Счет N : (1)1962870 [11:11:32]line ИНН: 02508201610067 [11:11:32]line Контрольно-Кассовый Чек [11:11:32]line ПРОДАЖА [11:11:32]line ТРК (МРК, ГНК) : 31 [11:11:32]line Товар: 2710194210 [11:11:32]line ДТ-К-5 [11:11:32]line 6.570 * 76.20 [11:11:32]line = 500.63 [11:11:32]line НДС 12% НСП 1% [11:11:32]line > о реализуемом товаре [11:11:32]line ОКРУГЛЕНИЕ: -0.63 [11:11:32]line ИТОГО: 500.00 [11:11:32]line Внесено: 500.00 [11:11:32]line СДАЧА: 0.00 [11:11:32]line НСП 1% : 4.43 [11:11:32]line НДС 12% : 53.16 [11:11:32]line Наличными: 500.00 [11:11:32]line Безнал.: 0.00 [11:11:32]line Место: АЗС № 133 "Партнер Нефть" [11:11:32]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:11:32]line СНО: Общий режим [11:11:32]line Чек 203 20.10.2024 11:11 [11:11:32]line Смена: 533 ФФД: 1.0 [11:11:32]line ЗНМ: 0300000091 [11:11:32]line РНМ: 0000000000091685 [11:11:32]line Версия ККМ: 001 [11:11:32]line ФМ: 0000000000871839 [11:11:32]line ФД: 227355 [11:11:32]line ФПД: 549348977205 [11:11:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111131&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227355&fm=549348977205&tin=02508201610067®Number=0000000000091685&sum=50000 [11:11:33]OFD Sender: Processing packet 227355 [packets to send 38, broken 37] [11:11:33]ProducePacketName [11:11:33]name=ofd_packets/00227355 [11:11:33]OFD Sender: To server: pG, [11:11:33]CommunicateWithHost lk.salyk.kg:30040 [11:11:33]ConnectInit lk.salyk.kg [11:11:33]written 0, free lines is 4095 [11:11:33]Connected sock=10 [11:11: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 33 39 0C 01 00 00 3E 89 04 01 AF 81 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 63 E5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1B 78 03 00 35 04 06 00 00 7F E7 C0 2A 35 A6 52 23 24 00 EA CB 55 [11:11: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 33 39 4F 00 00 00 B2 C3 47 00 B9 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 33 39 10 04 04 00 1B 78 03 00 F4 03 04 00 63 90 14 67 B6 04 01 00 00 DC A7 BD B2 06 4D AB 57 [11:11:33]CommunicateWithHost err = 0 [11:11:33]CheckOFDResponse [11:11:33]1017 (14) - 77093643461234 [11:11:33]1041 (16) - 0000000000871839 [11:11:33]1040 (4) - 227355 [11:11:33]1012 (4) - 20.10.2024 05:08 [11:11:33]1206 (1) - 0 [11:11:33]OFD Sender: Remove packet 227355 [11:11:33]ProducePacketName [11:11:33]name=ofd_packets/00227355 [11:11:33]NVStorageDeleteData [11:11:33]Write to MH i2c: 01 00 00 CD 03 D0 [11:11:33]Write i2c OK [11:11:33]MH_I2C_Read... [11:11:33]Read from MH i2c: 01 [11:11:33]MH_I2C_Read... [11:11:33]Read from MH i2c: 01 07 00 [11:11:33]MH_I2C_Read... [11:11:33]Read from MH i2c: 01 07 00 CD 03 00 00 00 00 00 02 0D E6 [11:11:33]RasterBufferAndPrint [11:11:33]line [11:11:33]line [11:11:33]line [11:11:33]line [11:11:33]line [11:11:33]written 0, free lines is 3336 [11:11:33]process_action close_receipt done [11:11:33]requested_data is exist [11:11:33]produce_requested_data [11:11:33]requested_item fm.sn is exist - process it [11:11:33]wFMCommunicate request_size=4 [11:11:33]MH_SAM_APDU [11:11:33]CAPDU: 80 11 00 00 [11:11:33]Write to MH i2c: E2 08 00 D4 03 80 11 00 00 00 00 00 00 51 [11:11:33]Write i2c OK [11:11:33]MH_I2C_Read... [11:11:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:33]Read from MH i2c: E2 [11:11:33]MH_I2C_Read... [11:11:33]Read from MH i2c: E2 17 00 [11:11:33]MH_I2C_Read... [11:11:33]Read from MH i2c: E2 17 00 D4 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A8 [11:11:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:11:33]wFMCommunicate OK [11:11:33]requested_item fd.num is exist - process it [11:11:33]SAM_PROTO_GetFieldsCounters [11:11:33]wFMCommunicate request_size=4 [11:11:33]MH_SAM_APDU [11:11:33]CAPDU: 80 13 00 00 [11:11:33]Write to MH i2c: E2 08 00 D5 03 80 13 00 00 00 00 00 00 54 [11:11:33]Write i2c OK [11:11:33]MH_I2C_Read... [11:11:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:11:33]Read from MH i2c: E2 [11:11:33]MH_I2C_Read... [11:11:33]Read from MH i2c: E2 62 00 [11:11:33]MH_I2C_Read... [11:11:33]Read from MH i2c: E2 62 00 D5 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 1B 78 03 00 0E 04 04 00 15 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 8B [11:11: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 1B 78 03 00 0E 04 04 00 15 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 [11:11:33]wFMCommunicate OK [11:11:33]SAM_PROTO_GetFieldsCounters done [11:11:33]requested_item shift.num is exist - process it [11:11:33]requested_item shift.opened is exist - process it [11:11:33]req_shift_opened [11:11:33]FM_GetShiftState [11:11:33]SAM_PROTO_GetShiftState [11:11:33]wFMCommunicate request_size=4 [11:11:33]MH_SAM_APDU [11:11:33]CAPDU: 80 13 01 00 [11:11:33]Write to MH i2c: E2 08 00 D6 03 80 13 01 00 00 00 00 00 56 [11:11:33]Write i2c OK [11:11:33]MH_I2C_Read... [11:11:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:33]Read from MH i2c: E2 [11:11:33]MH_I2C_Read... [11:11:33]Read from MH i2c: E2 0E 00 [11:11:33]MH_I2C_Read... [11:11:33]Read from MH i2c: E2 0E 00 D6 03 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 70 [11:11:33]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:11:33]wFMCommunicate OK [11:11:33]SAM_PROTO_GetShiftState done [11:11:33]FM_GetShiftState done [11:11:33]req_shift_opened done [11:11:33]requested_item shift.open_date is exist - process it [11:11:33]req_shift_open_date [11:11:33]req_shift_open_date done [11:11:33]produce_requested_data done [11:11:33]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227355,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [11:11:33]process_action_free close_receipt [11:11:33]json_value_free [11:11:33]json_value_free done [11:11:33]process_json_proto returns [11:11:33]Send response to host [11:11:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227355,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [11:11:33]free response buf [11:11:33]execute_script done [11:11:33]execute_script returns [11:11:33]free content buf [11:11:33]Sock 8.Close socket [11:11:33]Sock 8.Thread stoped [11:11:34]OFD Sender: No OFD packet to send [11:11:39]OFD Sender: No OFD packet to send [11:11:44]OFD Sender: No OFD packet to send [11:11:49]OFD Sender: No OFD packet to send [11:11:54]OFD Sender: No OFD packet to send [11:11:59]OFD Sender: No OFD packet to send [11:12:04]OFD Sender: No OFD packet to send [11:12:09]OFD Sender: No OFD packet to send [11:12:14]OFD Sender: No OFD packet to send [11:12:19]OFD Sender: No OFD packet to send [11:12:24]OFD Sender: No OFD packet to send [11:12:29]OFD Sender: No OFD packet to send [11:12:34]OFD Sender: No OFD packet to send [11:12:39]OFD Sender: No OFD packet to send [11:12:44]OFD Sender: No OFD packet to send [11:12:49]OFD Sender: No OFD packet to send [11:12:54]OFD Sender: No OFD packet to send [11:12:58]accept exits with 9 [11:12:58]New connection [11:12:58]New thread 3066543460 created [11:12:58]Thread 3066686820 joined [11:12:58]Waiting for new connection... [11:12:58] Sock 9.Parse request [11:12:58]Sock 9.Check first char [11:12:58]Sock 9.First char is OK [11:12:58]request: POST /json_proto HTTP/1.0 [11:12:58]Method: POST [11:12:58]URL: /json_proto [11:12:58]Method is POST - this is cgi request [11:12:58]url: /json_proto [11:12:58]query_string will be loaded in cgi processing [11:12:58]execute_cgi json_proto POST (null) [11:12:58]execute_cgi path=json_proto method=POST [11:12:58]POST find Content-Length [11:12:58]Host: 172.17.44.195:8080 [11:12:58]Content-Length: 664 [11:12:58]Content-Type: application/json [11:12:58] [11:12:58]POST finish read [11:12:59]Found Content-Length = 664 [11:12:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962872", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:12:59]execute_script... [11:12:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962872", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:12:59]POST & json_proto [11:12:59]process_json_proto [11:12:59]json parsed OK: [11:12:59]protocol is kg_v1.0 [11:12:59]action value=close_receipt [11:12:59]process_action close_receipt [11:12:59]cmd_close_receipt [11:12:59]MH_GetDate [11:12:59]Write to MH i2c: F0 00 00 D7 03 C9 [11:12:59]Write i2c OK [11:12:59]MH_I2C_Read... [11:12:59]Read from MH i2c: F0 [11:12:59]MH_I2C_Read... [11:12:59]Read from MH i2c: F0 09 00 [11:12:59]MH_I2C_Read... [11:12:59]Read from MH i2c: F0 09 00 D7 03 00 BB E5 14 67 82 C9 CF 66 6D [11:12:59]GetLastDocTimeStamp 1729422691 [11:12:59]current date 1729422779 [11:12:59]FM_GetShiftState [11:12:59]SAM_PROTO_GetShiftState [11:12:59]wFMCommunicate request_size=4 [11:12:59]MH_SAM_APDU [11:12:59]CAPDU: 80 13 01 00 [11:12:59]Write to MH i2c: E2 08 00 D8 03 80 13 01 00 00 00 00 00 58 [11:12:59]Write i2c OK [11:12:59]MH_I2C_Read... [11:12:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:59]Read from MH i2c: E2 [11:12:59]MH_I2C_Read... [11:12:59]Read from MH i2c: E2 0E 00 [11:12:59]MH_I2C_Read... [11:12:59]Read from MH i2c: E2 0E 00 D8 03 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 72 [11:12:59]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:12:59]wFMCommunicate OK [11:12:59]SAM_PROTO_GetShiftState done [11:12:59]FM_GetShiftState done [11:12:59]opened in 1729383750 [11:12:59]opened+sec_in_day 1729470150 [11:12:59]quantity*price = 100000 [11:12:59]sum+1 = 100002 [11:12:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 204 20.10.2024 11:12 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227356 ФПД: 201948518049531 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111259&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227356&fm=201948518049531&tin=02508201610067®Number=0000000000091685&sum=100000 [11:13:00]StoreToDocumentArchive [11:13:00]shift 533 fd 227356 [11:13:00]save to /storage/0533/doc_00227356 [11:13:00]save last doc name /storage/0533/doc_00227356 to /storage/kkm_last_doc_name [11:13:00]save OK [11:13:00]Clear old archive folders... [11:13:00]ProcessDocumentItem done err = 0, tmpTLVsize=244 [11:13:00]tlvbuf is B6E80A00 [11:13:00]SAM_PROTO_ClearQueue [11:13:00]wFMCommunicate request_size=4 [11:13:00]MH_SAM_APDU [11:13:00]CAPDU: 80 09 00 00 [11:13:00]Write to MH i2c: E2 08 00 E5 03 80 09 00 00 00 00 00 00 5A [11:13:00]Write i2c OK [11:13:00]MH_I2C_Read... [11:13:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:13:00]Read from MH i2c: E2 [11:13:00]MH_I2C_Read... [11:13:00]Read from MH i2c: E2 03 00 [11:13:00]MH_I2C_Read... [11:13:00]Read from MH i2c: E2 03 00 E5 03 00 90 00 5C [11:13:00]RAPDU: 90 00 [11:13:00]wFMCommunicate OK [11:13:00]SAM_PROTO_ClearQueue done [11:13:00]KKMCreateOFDPacket [11:13:00]OFDProtocolAddRootSTLVToBuf [11:13:00]FM_MakeSignedData [11:13:00]FM_MakeSignedData [11:13:00]SAM_PROTO_SignData [11:13:00]wFMCommunicate request_size=4 [11:13:00]MH_SAM_APDU [11:13:00]CAPDU: 80 0D 01 02 [11:13:00]Write to MH i2c: E2 08 00 E6 03 80 0D 01 02 00 00 00 00 62 [11:13:00]Write i2c OK [11:13:00]MH_I2C_Read... [11:13:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:13:00]Read from MH i2c: E2 [11:13:00]MH_I2C_Read... [11:13:00]Read from MH i2c: E2 03 00 [11:13:00]MH_I2C_Read... [11:13:00]Read from MH i2c: E2 03 00 E6 03 00 90 00 5D [11:13:00]RAPDU: 90 00 [11:13:00]wFMCommunicate OK [11:13:00]wFMCommunicate request_size=253 [11:13:00]MH_SAM_APDU [11:13:00]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 BB E5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1C 78 03 00 35 04 06 00 B7 AB CD AE 66 FB [11:13:00]Write to MH i2c: E2 00 01 E7 03 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 BB E5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1C 78 03 00 35 04 06 00 B7 AB CD AE 66 FB 00 00 AF [11:13:00]Write i2c OK [11:13:00]MH_I2C_Read... [11:13:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:00]Read from MH i2c: E2 [11:13:00]MH_I2C_Read... [11:13:00]Read from MH i2c: E2 03 00 [11:13:00]MH_I2C_Read... [11:13:00]Read from MH i2c: E2 03 00 E7 03 00 90 00 5E [11:13:00]RAPDU: 90 00 [11:13:00]wFMCommunicate OK [11:13:00]wFMCommunicate request_size=4 [11:13:00]MH_SAM_APDU [11:13:00]CAPDU: 80 0D 03 02 [11:13:00]Write to MH i2c: E2 08 00 E8 03 80 0D 03 02 00 00 00 00 66 [11:13:00]Write i2c OK [11:13:00]MH_I2C_Read... [11:13:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:13:00]Read from MH i2c: E2 [11:13:00]MH_I2C_Read... [11:13:00]Read from MH i2c: E2 0B 00 [11:13:00]MH_I2C_Read... [11:13:00]Read from MH i2c: E2 0B 00 E8 03 00 73 5F 4C C9 A7 7C 94 5C 90 00 61 [11:13:00]RAPDU: 73 5F 4C C9 A7 7C 94 5C 90 00 [11:13:00]wFMCommunicate OK [11:13:00]SAM_PROTO_SignData done [11:13:00]FM_MakeSignedData done [11:13:00]CreateOFDProtocolMessage [11:13:00]wFMCommunicate request_size=4 [11:13:00]MH_SAM_APDU [11:13:00]CAPDU: 80 11 00 00 [11:13:00]Write to MH i2c: E2 08 00 E9 03 80 11 00 00 00 00 00 00 66 [11:13:00]Write i2c OK [11:13:00]MH_I2C_Read... [11:13:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:00]Read from MH i2c: E2 [11:13:00]MH_I2C_Read... [11:13:00]Read from MH i2c: E2 17 00 [11:13:00]MH_I2C_Read... [11:13:00]Read from MH i2c: E2 17 00 E9 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 BD [11:13:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:13:00]wFMCommunicate OK [11:13:00]CreateOFDProtocolMessage done [11:13:00]OFDSenderStorePacket 227356 [11:13:00]StoreOFDPacket docnum=227356 [11:13:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 64 E1 00 01 3A 4F 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 BB E5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1C 78 03 00 35 04 06 00 B7 AB CD AE 66 FB 73 5F 4C C9 A7 7C 94 5C [11:13:00]CheckFolder [11:13:00]dirname=/storage/ofd_packets [11:13:00]CheckFolder done [11:13:00]ProducePacketName [11:13:00]name=ofd_packets/00227356 [11:13:00]NVStorageSaveData ofd_packets/00227356 [11:13:00]File name is /storage/ofd_packets/00227356 [11:13:00]Write 294 bytes [11:13:00]NVStorageSaveData done [11:13:00]OFDSenderStorePacket done [11:13:00]KKMCreateOFDPacket done [11:13:00]NVStorageSaveData kkm_last_timestamp [11:13:00]File name is /storage/kkm_last_timestamp [11:13:00]Write 4 bytes [11:13:00]NVStorageSaveData done [11:13:00]ExternCall_PrintAddStr [11:13:00]wPrintStart [11:13:00]Write to MH i2c: 01 00 00 EA 03 ED [11:13:00]Write i2c OK [11:13:00]MH_I2C_Read... [11:13:00]Read from MH i2c: 01 [11:13:00]MH_I2C_Read... [11:13:00]Read from MH i2c: 01 07 00 [11:13:00]MH_I2C_Read... [11:13:00]Read from MH i2c: 01 07 00 EA 03 00 00 00 00 00 FF 0F 02 [11:13:00]RasterBufferAndPrint [11:13:00]line Счет N : (1)1962872 [11:13:00]line ИНН: 02508201610067 [11:13:00]line Контрольно-Кассовый Чек [11:13:00]line ПРОДАЖА [11:13:00]line ТРК (МРК, ГНК) : 62 [11:13:00]line Товар: 2710124130 [11:13:00]line SU-92 [11:13:00]line 14.620 * 68.40 [11:13:00]line = 1000.01 [11:13:00]line НДС 12% НСП 1% [11:13:00]line > о реализуемом товаре [11:13:00]line ОКРУГЛЕНИЕ: -0.01 [11:13:00]line ИТОГО: 1000.00 [11:13:00]line Внесено: 1000.00 [11:13:00]line СДАЧА: 0.00 [11:13:00]line НСП 1% : 8.85 [11:13:00]line НДС 12% : 106.20 [11:13:00]line Наличными: 1000.00 [11:13:00]line Безнал.: 0.00 [11:13:00]line Место: АЗС № 133 "Партнер Нефть" [11:13:00]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:13:00]line СНО: Общий режим [11:13:00]line Чек 204 20.10.2024 11:12 [11:13:00]line Смена: 533 ФФД: 1.0 [11:13:00]line ЗНМ: 0300000091 [11:13:00]line РНМ: 0000000000091685 [11:13:00]line Версия ККМ: 001 [11:13:00]line ФМ: 0000000000871839 [11:13:00]line ФД: 227356 [11:13:00]line ФПД: 201948518049531 [11:13:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111259&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227356&fm=201948518049531&tin=02508201610067®Number=0000000000091685&sum=100000 [11:13:00]OFD Sender: Processing packet 227356 [packets to send 38, broken 37] [11:13:00]ProducePacketName [11:13:00]name=ofd_packets/00227356 [11:13:00]OFD Sender: To server: pG, [11:13:00]CommunicateWithHost lk.salyk.kg:30040 [11:13:00]ConnectInit lk.salyk.kg [11:13:00]written 0, free lines is 4095 [11:13:01]Connected sock=10 [11:13: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 33 39 08 01 00 00 64 E1 00 01 3A 4F 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 BB E5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1C 78 03 00 35 04 06 00 B7 AB CD AE 66 FB 73 5F 4C C9 A7 7C 94 5C [11:13: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 33 39 4F 00 00 00 DB 7B 47 00 27 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 33 39 10 04 04 00 1C 78 03 00 F4 03 04 00 BA 90 14 67 B6 04 01 00 00 A8 20 BB F7 97 61 33 DF [11:13:01]CommunicateWithHost err = 0 [11:13:01]CheckOFDResponse [11:13:01]1017 (14) - 77093643461234 [11:13:01]1041 (16) - 0000000000871839 [11:13:01]1040 (4) - 227356 [11:13:01]1012 (4) - 20.10.2024 05:10 [11:13:01]1206 (1) - 0 [11:13:01]OFD Sender: Remove packet 227356 [11:13:01]ProducePacketName [11:13:01]name=ofd_packets/00227356 [11:13:01]NVStorageDeleteData [11:13:01]Write to MH i2c: 01 00 00 14 04 18 [11:13:01]Write i2c OK [11:13:01]MH_I2C_Read... [11:13:01]Read from MH i2c: 01 [11:13:01]MH_I2C_Read... [11:13:01]Read from MH i2c: 01 07 00 [11:13:01]MH_I2C_Read... [11:13:01]Read from MH i2c: 01 07 00 14 04 00 00 00 00 00 04 0D 30 [11:13:01]RasterBufferAndPrint [11:13:01]line [11:13:01]line [11:13:01]line [11:13:01]line [11:13:01]line [11:13:01]written 0, free lines is 3338 [11:13:01]process_action close_receipt done [11:13:01]requested_data is exist [11:13:01]produce_requested_data [11:13:01]requested_item fm.sn is exist - process it [11:13:01]wFMCommunicate request_size=4 [11:13:01]MH_SAM_APDU [11:13:01]CAPDU: 80 11 00 00 [11:13:01]Write to MH i2c: E2 08 00 1B 04 80 11 00 00 00 00 00 00 99 [11:13:01]Write i2c OK [11:13:01]MH_I2C_Read... [11:13:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:01]Read from MH i2c: E2 [11:13:01]MH_I2C_Read... [11:13:01]Read from MH i2c: E2 17 00 [11:13:01]MH_I2C_Read... [11:13:01]Read from MH i2c: E2 17 00 1B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F0 [11:13:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:13:01]wFMCommunicate OK [11:13:01]requested_item fd.num is exist - process it [11:13:01]SAM_PROTO_GetFieldsCounters [11:13:01]wFMCommunicate request_size=4 [11:13:01]MH_SAM_APDU [11:13:01]CAPDU: 80 13 00 00 [11:13:01]Write to MH i2c: E2 08 00 1C 04 80 13 00 00 00 00 00 00 9C [11:13:01]Write i2c OK [11:13:01]MH_I2C_Read... [11:13:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:13:01]Read from MH i2c: E2 [11:13:01]MH_I2C_Read... [11:13:01]Read from MH i2c: E2 62 00 [11:13:01]MH_I2C_Read... [11:13:01]Read from MH i2c: E2 62 00 1C 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 1C 78 03 00 0E 04 04 00 15 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 D7 [11:13: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 1C 78 03 00 0E 04 04 00 15 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 [11:13:01]wFMCommunicate OK [11:13:01]SAM_PROTO_GetFieldsCounters done [11:13:01]requested_item shift.num is exist - process it [11:13:01]requested_item shift.opened is exist - process it [11:13:01]req_shift_opened [11:13:01]FM_GetShiftState [11:13:01]SAM_PROTO_GetShiftState [11:13:01]wFMCommunicate request_size=4 [11:13:01]MH_SAM_APDU [11:13:01]CAPDU: 80 13 01 00 [11:13:01]Write to MH i2c: E2 08 00 1D 04 80 13 01 00 00 00 00 00 9E [11:13:01]Write i2c OK [11:13:01]MH_I2C_Read... [11:13:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:01]Read from MH i2c: E2 [11:13:01]MH_I2C_Read... [11:13:01]Read from MH i2c: E2 0E 00 [11:13:01]MH_I2C_Read... [11:13:01]Read from MH i2c: E2 0E 00 1D 04 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 B8 [11:13:01]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:13:01]wFMCommunicate OK [11:13:01]SAM_PROTO_GetShiftState done [11:13:01]FM_GetShiftState done [11:13:01]req_shift_opened done [11:13:01]requested_item shift.open_date is exist - process it [11:13:01]req_shift_open_date [11:13:01]req_shift_open_date done [11:13:01]produce_requested_data done [11:13:01]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227356,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [11:13:01]process_action_free close_receipt [11:13:01]json_value_free [11:13:01]json_value_free done [11:13:01]process_json_proto returns [11:13:01]Send response to host [11:13:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227356,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [11:13:01]free response buf [11:13:01]execute_script done [11:13:01]execute_script returns [11:13:01]free content buf [11:13:01]Sock 9.Close socket [11:13:01]Sock 9.Thread stoped [11:13:01]OFD Sender: No OFD packet to send [11:13:01]accept exits with 8 [11:13:01]New connection [11:13:01]New thread 3066686820 created [11:13:01]Thread 3066543460 joined [11:13:01]Waiting for new connection... [11:13:01] Sock 8.Parse request [11:13:01]Sock 8.Check first char [11:13:01]Sock 8.First char is OK [11:13:01]request: POST /json_proto HTTP/1.0 [11:13:01]Method: POST [11:13:01]URL: /json_proto [11:13:01]Method is POST - this is cgi request [11:13:01]url: /json_proto [11:13:01]query_string will be loaded in cgi processing [11:13:01]execute_cgi json_proto POST (null) [11:13:01]execute_cgi path=json_proto method=POST [11:13:01]POST find Content-Length [11:13:01]Host: 172.17.44.195:8080 [11:13:01]Content-Length: 678 [11:13:01]Content-Type: application/json [11:13:01] [11:13:01]POST finish read [11:13:01]Found Content-Length = 678 [11:13:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962871", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:01]execute_script... [11:13: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)1962871", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:01]POST & json_proto [11:13:01]process_json_proto [11:13:01]json parsed OK: [11:13:01]protocol is kg_v1.0 [11:13:01]action value=close_receipt [11:13:01]process_action close_receipt [11:13:01]cmd_close_receipt [11:13:01]MH_GetDate [11:13:01]Write to MH i2c: F0 00 00 1E 04 11 [11:13:01]Write i2c OK [11:13:01]MH_I2C_Read... [11:13:01]Read from MH i2c: F0 [11:13:01]MH_I2C_Read... [11:13:01]Read from MH i2c: F0 09 00 [11:13:01]MH_I2C_Read... [11:13:01]Read from MH i2c: F0 09 00 1E 04 00 BE E5 14 67 82 C9 CF 66 B8 [11:13:01]GetLastDocTimeStamp 1729422779 [11:13:01]current date 1729422782 [11:13:01]FM_GetShiftState [11:13:01]SAM_PROTO_GetShiftState [11:13:01]wFMCommunicate request_size=4 [11:13:01]MH_SAM_APDU [11:13:01]CAPDU: 80 13 01 00 [11:13:01]Write to MH i2c: E2 08 00 1F 04 80 13 01 00 00 00 00 00 A0 [11:13:01]Write i2c OK [11:13:01]MH_I2C_Read... [11:13:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:02]Read from MH i2c: E2 [11:13:02]MH_I2C_Read... [11:13:02]Read from MH i2c: E2 0E 00 [11:13:02]MH_I2C_Read... [11:13:02]Read from MH i2c: E2 0E 00 1F 04 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 BA [11:13:02]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:13:02]wFMCommunicate OK [11:13:02]SAM_PROTO_GetShiftState done [11:13:02]FM_GetShiftState done [11:13:02]opened in 1729383750 [11:13:02]opened+sec_in_day 1729470150 [11:13:02]quantity*price = 50041 [11:13:02]sum+1 = 50042 [11:13:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 205 20.10.2024 11:13 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227357 ФПД: 100180528885958 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111302&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227357&fm=100180528885958&tin=02508201610067®Number=0000000000091685&sum=50000 [11:13:03]StoreToDocumentArchive [11:13:03]shift 533 fd 227357 [11:13:03]save to /storage/0533/doc_00227357 [11:13:03]save last doc name /storage/0533/doc_00227357 to /storage/kkm_last_doc_name [11:13:03]save OK [11:13:03]Clear old archive folders... [11:13:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:13:03]tlvbuf is B6F17520 [11:13:03]SAM_PROTO_ClearQueue [11:13:03]wFMCommunicate request_size=4 [11:13:03]MH_SAM_APDU [11:13:03]CAPDU: 80 09 00 00 [11:13:03]Write to MH i2c: E2 08 00 2C 04 80 09 00 00 00 00 00 00 A2 [11:13:03]Write i2c OK [11:13:03]MH_I2C_Read... [11:13:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:13:03]Read from MH i2c: E2 [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: E2 03 00 [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: E2 03 00 2C 04 00 90 00 A4 [11:13:03]RAPDU: 90 00 [11:13:03]wFMCommunicate OK [11:13:03]SAM_PROTO_ClearQueue done [11:13:03]KKMCreateOFDPacket [11:13:03]OFDProtocolAddRootSTLVToBuf [11:13:03]FM_MakeSignedData [11:13:03]FM_MakeSignedData [11:13:03]SAM_PROTO_SignData [11:13:03]wFMCommunicate request_size=4 [11:13:03]MH_SAM_APDU [11:13:03]CAPDU: 80 0D 01 02 [11:13:03]Write to MH i2c: E2 08 00 2D 04 80 0D 01 02 00 00 00 00 AA [11:13:03]Write i2c OK [11:13:03]MH_I2C_Read... [11:13:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:13:03]Read from MH i2c: E2 [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: E2 03 00 [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: E2 03 00 2D 04 00 90 00 A5 [11:13:03]RAPDU: 90 00 [11:13:03]wFMCommunicate OK [11:13:03]wFMCommunicate request_size=255 [11:13:03]MH_SAM_APDU [11:13:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 BE E5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1D 78 03 00 35 04 06 00 5B [11:13:03]Write to MH i2c: E2 02 01 2E 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 BE E5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1D 78 03 00 35 04 06 00 5B 00 00 36 [11:13:03]Write i2c OK [11:13:03]MH_I2C_Read... [11:13:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:03]Read from MH i2c: E2 [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: E2 03 00 [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: E2 03 00 2E 04 00 90 00 A6 [11:13:03]RAPDU: 90 00 [11:13:03]wFMCommunicate OK [11:13:03]wFMCommunicate request_size=10 [11:13:03]MH_SAM_APDU [11:13:03]CAPDU: 80 0D 02 02 05 1D 18 D6 70 C6 [11:13:03]Write to MH i2c: E2 0D 00 2F 04 80 0D 02 02 05 00 1D 18 D6 70 C6 00 00 F8 [11:13:03]Write i2c OK [11:13:03]MH_I2C_Read... [11:13:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:03]Read from MH i2c: E2 [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: E2 03 00 [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: E2 03 00 2F 04 00 90 00 A7 [11:13:03]RAPDU: 90 00 [11:13:03]wFMCommunicate OK [11:13:03]wFMCommunicate request_size=4 [11:13:03]MH_SAM_APDU [11:13:03]CAPDU: 80 0D 03 02 [11:13:03]Write to MH i2c: E2 08 00 30 04 80 0D 03 02 00 00 00 00 AF [11:13:03]Write i2c OK [11:13:03]MH_I2C_Read... [11:13:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:13:03]Read from MH i2c: E2 [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: E2 0B 00 [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: E2 0B 00 30 04 00 69 95 EA D9 EE 9E 93 BD 90 00 4D [11:13:03]RAPDU: 69 95 EA D9 EE 9E 93 BD 90 00 [11:13:03]wFMCommunicate OK [11:13:03]SAM_PROTO_SignData done [11:13:03]FM_MakeSignedData done [11:13:03]CreateOFDProtocolMessage [11:13:03]wFMCommunicate request_size=4 [11:13:03]MH_SAM_APDU [11:13:03]CAPDU: 80 11 00 00 [11:13:03]Write to MH i2c: E2 08 00 31 04 80 11 00 00 00 00 00 00 AF [11:13:03]Write i2c OK [11:13:03]MH_I2C_Read... [11:13:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:03]Read from MH i2c: E2 [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: E2 17 00 [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: E2 17 00 31 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 06 [11:13:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:13:03]wFMCommunicate OK [11:13:03]CreateOFDProtocolMessage done [11:13:03]OFDSenderStorePacket 227357 [11:13:03]StoreOFDPacket docnum=227357 [11:13:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 B5 89 07 01 5A 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 BE E5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1D 78 03 00 35 04 06 00 5B 1D 18 D6 70 C6 69 95 EA D9 EE 9E 93 BD [11:13:04]CheckFolder [11:13:04]dirname=/storage/ofd_packets [11:13:04]CheckFolder done [11:13:04]ProducePacketName [11:13:04]name=ofd_packets/00227357 [11:13:04]NVStorageSaveData ofd_packets/00227357 [11:13:04]File name is /storage/ofd_packets/00227357 [11:13:04]Write 301 bytes [11:13:04]NVStorageSaveData done [11:13:04]OFDSenderStorePacket done [11:13:04]KKMCreateOFDPacket done [11:13:04]NVStorageSaveData kkm_last_timestamp [11:13:04]File name is /storage/kkm_last_timestamp [11:13:04]Write 4 bytes [11:13:04]NVStorageSaveData done [11:13:04]ExternCall_PrintAddStr [11:13:04]wPrintStart [11:13:04]Write to MH i2c: 01 00 00 32 04 36 [11:13:04]Write i2c OK [11:13:04]MH_I2C_Read... [11:13:04]Read from MH i2c: 01 [11:13:04]MH_I2C_Read... [11:13:04]Read from MH i2c: 01 07 00 [11:13:04]MH_I2C_Read... [11:13:04]Read from MH i2c: 01 07 00 32 04 00 00 00 00 00 FF 0F 4B [11:13:04]RasterBufferAndPrint [11:13:04]line Счет N : (1)1962871 [11:13:04]line ИНН: 02508201610067 [11:13:04]line Контрольно-Кассовый Чек [11:13:04]line ПРОДАЖА [11:13:04]line ТРК (МРК, ГНК) : 43 [11:13:04]line Товар: 2710124130 [11:13:04]line Аи-92-К-5 [11:13:04]line 7.480 * 66.90 [11:13:04]line = 500.41 [11:13:04]line НДС 12% НСП 1% [11:13:04]line > о реализуемом товаре [11:13:04]line ОКРУГЛЕНИЕ: -0.41 [11:13:04]line ИТОГО: 500.00 [11:13:04]line Внесено: 500.00 [11:13:04]line СДАЧА: 0.00 [11:13:04]line НСП 1% : 4.43 [11:13:04]line НДС 12% : 53.14 [11:13:04]line Наличными: 500.00 [11:13:04]line Безнал.: 0.00 [11:13:04]line Место: АЗС № 133 "Партнер Нефть" [11:13:04]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:13:04]line СНО: Общий режим [11:13:04]line Чек 205 20.10.2024 11:13 [11:13:04]line Смена: 533 ФФД: 1.0 [11:13:04]line ЗНМ: 0300000091 [11:13:04]line РНМ: 0000000000091685 [11:13:04]line Версия ККМ: 001 [11:13:04]line ФМ: 0000000000871839 [11:13:04]line ФД: 227357 [11:13:04]line ФПД: 100180528885958 [11:13:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111302&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227357&fm=100180528885958&tin=02508201610067®Number=0000000000091685&sum=50000 [11:13:04]written 0, free lines is 4095 [11:13:04]OFD Sender: Processing packet 227357 [packets to send 38, broken 37] [11:13:04]ProducePacketName [11:13:04]name=ofd_packets/00227357 [11:13:04]OFD Sender: To server: pG, [11:13:04]CommunicateWithHost lk.salyk.kg:30040 [11:13:04]ConnectInit lk.salyk.kg [11:13:04]Connected sock=10 [11:13: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 33 39 0F 01 00 00 B5 89 07 01 5A 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 BE E5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1D 78 03 00 35 04 06 00 5B 1D 18 D6 70 C6 69 95 EA D9 EE 9E 93 BD [11:13: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 33 39 4F 00 00 00 52 CB 47 00 3F 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1D 78 03 00 F4 03 04 00 BE 90 14 67 B6 04 01 00 00 EC 58 2B 84 68 43 F8 1D [11:13:04]CommunicateWithHost err = 0 [11:13:04]CheckOFDResponse [11:13:04]1017 (14) - 77093643461234 [11:13:04]1041 (16) - 0000000000871839 [11:13:04]1040 (4) - 227357 [11:13:04]1012 (4) - 20.10.2024 05:10 [11:13:04]1206 (1) - 0 [11:13:04]OFD Sender: Remove packet 227357 [11:13:04]ProducePacketName [11:13:04]name=ofd_packets/00227357 [11:13:04]NVStorageDeleteData [11:13:04]Write to MH i2c: 01 00 00 5C 04 60 [11:13:04]Write i2c OK [11:13:04]MH_I2C_Read... [11:13:04]Read from MH i2c: 01 [11:13:04]MH_I2C_Read... [11:13:04]Read from MH i2c: 01 07 00 [11:13:04]MH_I2C_Read... [11:13:04]Read from MH i2c: 01 07 00 5C 04 00 00 00 00 00 19 0D 8D [11:13:04]RasterBufferAndPrint [11:13:04]line [11:13:04]line [11:13:04]line [11:13:04]line [11:13:04]line [11:13:04]written 0, free lines is 3365 [11:13:04]process_action close_receipt done [11:13:04]requested_data is exist [11:13:04]produce_requested_data [11:13:04]requested_item fm.sn is exist - process it [11:13:04]wFMCommunicate request_size=4 [11:13:04]MH_SAM_APDU [11:13:04]CAPDU: 80 11 00 00 [11:13:04]Write to MH i2c: E2 08 00 63 04 80 11 00 00 00 00 00 00 E1 [11:13:04]Write i2c OK [11:13:04]MH_I2C_Read... [11:13:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:04]Read from MH i2c: E2 [11:13:04]MH_I2C_Read... [11:13:04]Read from MH i2c: E2 17 00 [11:13:04]MH_I2C_Read... [11:13:04]Read from MH i2c: E2 17 00 63 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 38 [11:13:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:13:04]wFMCommunicate OK [11:13:04]requested_item fd.num is exist - process it [11:13:04]SAM_PROTO_GetFieldsCounters [11:13:04]wFMCommunicate request_size=4 [11:13:04]MH_SAM_APDU [11:13:04]CAPDU: 80 13 00 00 [11:13:04]Write to MH i2c: E2 08 00 64 04 80 13 00 00 00 00 00 00 E4 [11:13:04]Write i2c OK [11:13:04]MH_I2C_Read... [11:13:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:13:04]Read from MH i2c: E2 [11:13:04]MH_I2C_Read... [11:13:04]Read from MH i2c: E2 62 00 [11:13:04]MH_I2C_Read... [11:13:04]Read from MH i2c: E2 62 00 64 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 1D 78 03 00 0E 04 04 00 15 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 23 [11:13: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 1D 78 03 00 0E 04 04 00 15 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 [11:13:04]wFMCommunicate OK [11:13:04]SAM_PROTO_GetFieldsCounters done [11:13:04]requested_item shift.num is exist - process it [11:13:04]requested_item shift.opened is exist - process it [11:13:04]req_shift_opened [11:13:04]FM_GetShiftState [11:13:04]SAM_PROTO_GetShiftState [11:13:04]wFMCommunicate request_size=4 [11:13:04]MH_SAM_APDU [11:13:04]CAPDU: 80 13 01 00 [11:13:04]Write to MH i2c: E2 08 00 65 04 80 13 01 00 00 00 00 00 E6 [11:13:04]Write i2c OK [11:13:04]MH_I2C_Read... [11:13:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:05]Read from MH i2c: E2 [11:13:05]MH_I2C_Read... [11:13:05]Read from MH i2c: E2 0E 00 [11:13:05]MH_I2C_Read... [11:13:05]Read from MH i2c: E2 0E 00 65 04 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 00 [11:13:05]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:13:05]wFMCommunicate OK [11:13:05]SAM_PROTO_GetShiftState done [11:13:05]FM_GetShiftState done [11:13:05]req_shift_opened done [11:13:05]requested_item shift.open_date is exist - process it [11:13:05]req_shift_open_date [11:13:05]req_shift_open_date done [11:13:05]produce_requested_data done [11:13:05]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227357,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [11:13:05]process_action_free close_receipt [11:13:05]json_value_free [11:13:05]json_value_free done [11:13:05]process_json_proto returns [11:13:05]Send response to host [11:13:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227357,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [11:13:05]free response buf [11:13:05]execute_script done [11:13:05]execute_script returns [11:13:05]free content buf [11:13:05]Sock 8.Close socket [11:13:05]Sock 8.Thread stoped [11:13:05]OFD Sender: No OFD packet to send [11:13:10]OFD Sender: No OFD packet to send [11:13:15]OFD Sender: No OFD packet to send [11:13:20]OFD Sender: No OFD packet to send [11:13:25]OFD Sender: No OFD packet to send [11:13:30]OFD Sender: No OFD packet to send [11:13:35]OFD Sender: No OFD packet to send [11:13:40]OFD Sender: No OFD packet to send [11:13:45]OFD Sender: No OFD packet to send [11:13:50]OFD Sender: No OFD packet to send [11:13:55]OFD Sender: No OFD packet to send [11:14:00]OFD Sender: No OFD packet to send [11:14:05]accept exits with 9 [11:14:05]New connection [11:14:05]New thread 3066543460 created [11:14:05]Thread 3066686820 joined [11:14:05]Waiting for new connection... [11:14:05] Sock 9.Parse request [11:14:05]Sock 9.Check first char [11:14:05]Sock 9.First char is OK [11:14:05]request: POST /json_proto HTTP/1.0 [11:14:05]Method: POST [11:14:05]URL: /json_proto [11:14:05]Method is POST - this is cgi request [11:14:05]url: /json_proto [11:14:05]query_string will be loaded in cgi processing [11:14:05]execute_cgi json_proto POST (null) [11:14:05]execute_cgi path=json_proto method=POST [11:14:05]POST find Content-Length [11:14:05]Host: 172.17.44.195:8080 [11:14:05]Content-Length: 678 [11:14:05]Content-Type: application/json [11:14:05] [11:14:05]POST finish read [11:14:05]Found Content-Length = 678 [11:14:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962873", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:05]execute_script... [11:14:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962873", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:05]POST & json_proto [11:14:05]process_json_proto [11:14:05]json parsed OK: [11:14:05]protocol is kg_v1.0 [11:14:05]action value=close_receipt [11:14:05]process_action close_receipt [11:14:05]cmd_close_receipt [11:14:05]MH_GetDate [11:14:05]Write to MH i2c: F0 00 00 66 04 59 [11:14:05]Write i2c OK [11:14:05]MH_I2C_Read... [11:14:05]Read from MH i2c: F0 [11:14:05]MH_I2C_Read... [11:14:05]Read from MH i2c: F0 09 00 [11:14:05]MH_I2C_Read... [11:14:05]Read from MH i2c: F0 09 00 66 04 00 FD E5 14 67 82 C9 CF 66 3F [11:14:05]GetLastDocTimeStamp 1729422782 [11:14:05]current date 1729422845 [11:14:05]FM_GetShiftState [11:14:05]SAM_PROTO_GetShiftState [11:14:05]wFMCommunicate request_size=4 [11:14:05]MH_SAM_APDU [11:14:05]CAPDU: 80 13 01 00 [11:14:05]Write to MH i2c: E2 08 00 67 04 80 13 01 00 00 00 00 00 E8 [11:14:05]Write i2c OK [11:14:05]MH_I2C_Read... [11:14:05]OFD Sender: No OFD packet to send [11:14:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:05]Read from MH i2c: E2 [11:14:05]MH_I2C_Read... [11:14:05]Read from MH i2c: E2 0E 00 [11:14:05]MH_I2C_Read... [11:14:05]Read from MH i2c: E2 0E 00 67 04 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 02 [11:14:05]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:14:05]wFMCommunicate OK [11:14:05]SAM_PROTO_GetShiftState done [11:14:05]FM_GetShiftState done [11:14:05]opened in 1729383750 [11:14:05]opened+sec_in_day 1729470150 [11:14:05]quantity*price = 50010 [11:14:05]sum+1 = 50012 [11:14:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 206 20.10.2024 11:14 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227358 ФПД: 232985885630327 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111405&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227358&fm=232985885630327&tin=02508201610067®Number=0000000000091685&sum=50000 [11:14:06]StoreToDocumentArchive [11:14:06]shift 533 fd 227358 [11:14:06]save to /storage/0533/doc_00227358 [11:14:06]save last doc name /storage/0533/doc_00227358 to /storage/kkm_last_doc_name [11:14:06]save OK [11:14:06]Clear old archive folders... [11:14:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:14:06]tlvbuf is 0183BCB0 [11:14:06]SAM_PROTO_ClearQueue [11:14:06]wFMCommunicate request_size=4 [11:14:06]MH_SAM_APDU [11:14:06]CAPDU: 80 09 00 00 [11:14:06]Write to MH i2c: E2 08 00 74 04 80 09 00 00 00 00 00 00 EA [11:14:06]Write i2c OK [11:14:06]MH_I2C_Read... [11:14:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:14:06]Read from MH i2c: E2 [11:14:06]MH_I2C_Read... [11:14:06]Read from MH i2c: E2 03 00 [11:14:06]MH_I2C_Read... [11:14:06]Read from MH i2c: E2 03 00 74 04 00 90 00 EC [11:14:06]RAPDU: 90 00 [11:14:06]wFMCommunicate OK [11:14:06]SAM_PROTO_ClearQueue done [11:14:06]KKMCreateOFDPacket [11:14:06]OFDProtocolAddRootSTLVToBuf [11:14:06]FM_MakeSignedData [11:14:06]FM_MakeSignedData [11:14:06]SAM_PROTO_SignData [11:14:06]wFMCommunicate request_size=4 [11:14:06]MH_SAM_APDU [11:14:06]CAPDU: 80 0D 01 02 [11:14:06]Write to MH i2c: E2 08 00 75 04 80 0D 01 02 00 00 00 00 F2 [11:14:06]Write i2c OK [11:14:06]MH_I2C_Read... [11:14:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:14:06]Read from MH i2c: E2 [11:14:06]MH_I2C_Read... [11:14:06]Read from MH i2c: E2 03 00 [11:14:06]MH_I2C_Read... [11:14:06]Read from MH i2c: E2 03 00 75 04 00 90 00 ED [11:14:06]RAPDU: 90 00 [11:14:06]wFMCommunicate OK [11:14:06]wFMCommunicate request_size=255 [11:14:06]MH_SAM_APDU [11:14:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 FD E5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1E 78 03 00 35 04 06 00 D3 [11:14:06]Write to MH i2c: E2 02 01 76 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 FD E5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1E 78 03 00 35 04 06 00 D3 00 00 0F [11:14:06]Write i2c OK [11:14:06]MH_I2C_Read... [11:14:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:06]Read from MH i2c: E2 [11:14:06]MH_I2C_Read... [11:14:06]Read from MH i2c: E2 03 00 [11:14:06]MH_I2C_Read... [11:14:06]Read from MH i2c: E2 03 00 76 04 00 90 00 EE [11:14:06]RAPDU: 90 00 [11:14:06]wFMCommunicate OK [11:14:06]wFMCommunicate request_size=10 [11:14:06]MH_SAM_APDU [11:14:06]CAPDU: 80 0D 02 02 05 E6 40 F3 5F 77 [11:14:06]Write to MH i2c: E2 0D 00 77 04 80 0D 02 02 05 00 E6 40 F3 5F 77 00 00 EE [11:14:06]Write i2c OK [11:14:06]MH_I2C_Read... [11:14:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:06]Read from MH i2c: E2 [11:14:06]MH_I2C_Read... [11:14:06]Read from MH i2c: E2 03 00 [11:14:06]MH_I2C_Read... [11:14:06]Read from MH i2c: E2 03 00 77 04 00 90 00 EF [11:14:06]RAPDU: 90 00 [11:14:06]wFMCommunicate OK [11:14:06]wFMCommunicate request_size=4 [11:14:06]MH_SAM_APDU [11:14:06]CAPDU: 80 0D 03 02 [11:14:06]Write to MH i2c: E2 08 00 78 04 80 0D 03 02 00 00 00 00 F7 [11:14:06]Write i2c OK [11:14:06]MH_I2C_Read... [11:14:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:14:06]Read from MH i2c: E2 [11:14:06]MH_I2C_Read... [11:14:06]Read from MH i2c: E2 0B 00 [11:14:06]MH_I2C_Read... [11:14:06]Read from MH i2c: E2 0B 00 78 04 00 48 E9 54 B9 1A 9B 7C 39 90 00 A0 [11:14:06]RAPDU: 48 E9 54 B9 1A 9B 7C 39 90 00 [11:14:06]wFMCommunicate OK [11:14:06]SAM_PROTO_SignData done [11:14:06]FM_MakeSignedData done [11:14:06]CreateOFDProtocolMessage [11:14:06]wFMCommunicate request_size=4 [11:14:06]MH_SAM_APDU [11:14:06]CAPDU: 80 11 00 00 [11:14:06]Write to MH i2c: E2 08 00 79 04 80 11 00 00 00 00 00 00 F7 [11:14:06]Write i2c OK [11:14:06]MH_I2C_Read... [11:14:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:06]Read from MH i2c: E2 [11:14:06]MH_I2C_Read... [11:14:06]Read from MH i2c: E2 17 00 [11:14:06]MH_I2C_Read... [11:14:06]Read from MH i2c: E2 17 00 79 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 4E [11:14:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:14:06]wFMCommunicate OK [11:14:06]CreateOFDProtocolMessage done [11:14:06]OFDSenderStorePacket 227358 [11:14:06]StoreOFDPacket docnum=227358 [11:14:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 77 05 07 01 CC 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 FD E5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1E 78 03 00 35 04 06 00 D3 E6 40 F3 5F 77 48 E9 54 B9 1A 9B 7C 39 [11:14:06]CheckFolder [11:14:06]dirname=/storage/ofd_packets [11:14:06]CheckFolder done [11:14:06]ProducePacketName [11:14:06]name=ofd_packets/00227358 [11:14:06]NVStorageSaveData ofd_packets/00227358 [11:14:06]File name is /storage/ofd_packets/00227358 [11:14:06]Write 301 bytes [11:14:06]NVStorageSaveData done [11:14:06]OFDSenderStorePacket done [11:14:06]KKMCreateOFDPacket done [11:14:06]NVStorageSaveData kkm_last_timestamp [11:14:06]File name is /storage/kkm_last_timestamp [11:14:06]Write 4 bytes [11:14:06]NVStorageSaveData done [11:14:06]ExternCall_PrintAddStr [11:14:06]wPrintStart [11:14:06]Write to MH i2c: 01 00 00 7A 04 7E [11:14:06]Write i2c OK [11:14:06]MH_I2C_Read... [11:14:06]Read from MH i2c: 01 [11:14:06]MH_I2C_Read... [11:14:06]Read from MH i2c: 01 07 00 [11:14:06]MH_I2C_Read... [11:14:06]Read from MH i2c: 01 07 00 7A 04 00 00 00 00 00 FF 0F 93 [11:14:06]RasterBufferAndPrint [11:14:06]line Счет N : (1)1962873 [11:14:06]line ИНН: 02508201610067 [11:14:06]line Контрольно-Кассовый Чек [11:14:06]line ПРОДАЖА [11:14:06]line ТРК (МРК, ГНК) : 34 [11:14:06]line Товар: 2710124500 [11:14:06]line Аи-95-К-5 [11:14:06]line 6.740 * 74.20 [11:14:06]line = 500.11 [11:14:06]line НДС 12% НСП 1% [11:14:06]line > о реализуемом товаре [11:14:06]line ОКРУГЛЕНИЕ: -0.11 [11:14:06]line ИТОГО: 500.00 [11:14:06]line Внесено: 500.00 [11:14:06]line СДАЧА: 0.00 [11:14:06]line НСП 1% : 4.43 [11:14:06]line НДС 12% : 53.11 [11:14:06]line Наличными: 500.00 [11:14:06]line Безнал.: 0.00 [11:14:06]line Место: АЗС № 133 "Партнер Нефть" [11:14:06]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:14:06]line СНО: Общий режим [11:14:06]line Чек 206 20.10.2024 11:14 [11:14:06]line Смена: 533 ФФД: 1.0 [11:14:06]line ЗНМ: 0300000091 [11:14:06]line РНМ: 0000000000091685 [11:14:06]line Версия ККМ: 001 [11:14:06]line ФМ: 0000000000871839 [11:14:06]line ФД: 227358 [11:14:06]line ФПД: 232985885630327 [11:14:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111405&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227358&fm=232985885630327&tin=02508201610067®Number=0000000000091685&sum=50000 [11:14:07]OFD Sender: Processing packet 227358 [packets to send 38, broken 37] [11:14:07]ProducePacketName [11:14:07]name=ofd_packets/00227358 [11:14:07]OFD Sender: To server: pG, [11:14:07]CommunicateWithHost lk.salyk.kg:30040 [11:14:07]ConnectInit lk.salyk.kg [11:14:07]written 0, free lines is 4095 [11:14:07]Connected sock=10 [11:14: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 33 39 0F 01 00 00 77 05 07 01 CC 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 FD E5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1E 78 03 00 35 04 06 00 D3 E6 40 F3 5F 77 48 E9 54 B9 1A 9B 7C 39 [11:14: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 33 39 4F 00 00 00 84 CC 47 00 25 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1E 78 03 00 F4 03 04 00 FD 90 14 67 B6 04 01 00 00 CB 47 18 F5 D0 95 28 22 [11:14:07]CommunicateWithHost err = 0 [11:14:07]CheckOFDResponse [11:14:07]1017 (14) - 77093643461234 [11:14:07]1041 (16) - 0000000000871839 [11:14:07]1040 (4) - 227358 [11:14:07]1012 (4) - 20.10.2024 05:11 [11:14:07]1206 (1) - 0 [11:14:07]OFD Sender: Remove packet 227358 [11:14:07]ProducePacketName [11:14:07]name=ofd_packets/00227358 [11:14:07]NVStorageDeleteData [11:14:07]Write to MH i2c: 01 00 00 A4 04 A8 [11:14:07]Write i2c OK [11:14:07]MH_I2C_Read... [11:14:07]Read from MH i2c: 01 [11:14:07]MH_I2C_Read... [11:14:07]Read from MH i2c: 01 07 00 [11:14:07]MH_I2C_Read... [11:14:07]Read from MH i2c: 01 07 00 A4 04 00 00 00 00 00 06 0D C2 [11:14:07]RasterBufferAndPrint [11:14:07]line [11:14:07]line [11:14:07]line [11:14:07]line [11:14:07]line [11:14:07]written 0, free lines is 3340 [11:14:07]process_action close_receipt done [11:14:07]requested_data is exist [11:14:07]produce_requested_data [11:14:07]requested_item fm.sn is exist - process it [11:14:07]wFMCommunicate request_size=4 [11:14:07]MH_SAM_APDU [11:14:07]CAPDU: 80 11 00 00 [11:14:07]Write to MH i2c: E2 08 00 AB 04 80 11 00 00 00 00 00 00 29 [11:14:07]Write i2c OK [11:14:07]MH_I2C_Read... [11:14:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:07]Read from MH i2c: E2 [11:14:07]MH_I2C_Read... [11:14:07]Read from MH i2c: E2 17 00 [11:14:07]MH_I2C_Read... [11:14:07]Read from MH i2c: E2 17 00 AB 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 80 [11:14:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:14:07]wFMCommunicate OK [11:14:07]requested_item fd.num is exist - process it [11:14:07]SAM_PROTO_GetFieldsCounters [11:14:07]wFMCommunicate request_size=4 [11:14:07]MH_SAM_APDU [11:14:07]CAPDU: 80 13 00 00 [11:14:07]Write to MH i2c: E2 08 00 AC 04 80 13 00 00 00 00 00 00 2C [11:14:07]Write i2c OK [11:14:07]MH_I2C_Read... [11:14:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:14:07]Read from MH i2c: E2 [11:14:07]MH_I2C_Read... [11:14:07]Read from MH i2c: E2 62 00 [11:14:07]MH_I2C_Read... [11:14:07]Read from MH i2c: E2 62 00 AC 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 1E 78 03 00 0E 04 04 00 15 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 6F [11:14: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 1E 78 03 00 0E 04 04 00 15 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 [11:14:07]wFMCommunicate OK [11:14:07]SAM_PROTO_GetFieldsCounters done [11:14:07]requested_item shift.num is exist - process it [11:14:07]requested_item shift.opened is exist - process it [11:14:07]req_shift_opened [11:14:07]FM_GetShiftState [11:14:07]SAM_PROTO_GetShiftState [11:14:07]wFMCommunicate request_size=4 [11:14:07]MH_SAM_APDU [11:14:07]CAPDU: 80 13 01 00 [11:14:07]Write to MH i2c: E2 08 00 AD 04 80 13 01 00 00 00 00 00 2E [11:14:07]Write i2c OK [11:14:07]MH_I2C_Read... [11:14:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:07]Read from MH i2c: E2 [11:14:07]MH_I2C_Read... [11:14:07]Read from MH i2c: E2 0E 00 [11:14:07]MH_I2C_Read... [11:14:07]Read from MH i2c: E2 0E 00 AD 04 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 48 [11:14:07]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:14:07]wFMCommunicate OK [11:14:07]SAM_PROTO_GetShiftState done [11:14:07]FM_GetShiftState done [11:14:07]req_shift_opened done [11:14:07]requested_item shift.open_date is exist - process it [11:14:07]req_shift_open_date [11:14:07]req_shift_open_date done [11:14:07]produce_requested_data done [11:14:07]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227358,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [11:14:07]process_action_free close_receipt [11:14:07]json_value_free [11:14:07]json_value_free done [11:14:07]process_json_proto returns [11:14:07]Send response to host [11:14:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227358,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [11:14:07]free response buf [11:14:07]execute_script done [11:14:07]execute_script returns [11:14:07]free content buf [11:14:07]Sock 9.Close socket [11:14:07]Sock 9.Thread stoped [11:14:07]OFD Sender: No OFD packet to send [11:14:12]OFD Sender: No OFD packet to send [11:14:17]OFD Sender: No OFD packet to send [11:14:23]OFD Sender: No OFD packet to send [11:14:28]OFD Sender: No OFD packet to send [11:14:33]OFD Sender: No OFD packet to send [11:14:38]OFD Sender: No OFD packet to send [11:14:40]accept exits with 8 [11:14:40]New connection [11:14:40]New thread 3066686820 created [11:14:40]Thread 3066543460 joined [11:14:40]Waiting for new connection... [11:14:40] Sock 8.Parse request [11:14:40]Sock 8.Check first char [11:14:40]Sock 8.First char is OK [11:14:40]request: POST /json_proto HTTP/1.0 [11:14:40]Method: POST [11:14:40]URL: /json_proto [11:14:40]Method is POST - this is cgi request [11:14:40]url: /json_proto [11:14:40]query_string will be loaded in cgi processing [11:14:40]execute_cgi json_proto POST (null) [11:14:40]execute_cgi path=json_proto method=POST [11:14:40]POST find Content-Length [11:14:40]Host: 172.17.44.195:8080 [11:14:40]Content-Length: 678 [11:14:40]Content-Type: application/json [11:14:40] [11:14:40]POST finish read [11:14:40]Found Content-Length = 678 [11:14:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962874", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:40]execute_script... [11:14: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)1962874", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:40]POST & json_proto [11:14:40]process_json_proto [11:14:40]json parsed OK: [11:14:40]protocol is kg_v1.0 [11:14:40]action value=close_receipt [11:14:40]process_action close_receipt [11:14:40]cmd_close_receipt [11:14:40]MH_GetDate [11:14:40]Write to MH i2c: F0 00 00 AE 04 A1 [11:14:40]Write i2c OK [11:14:40]MH_I2C_Read... [11:14:40]Read from MH i2c: F0 [11:14:40]MH_I2C_Read... [11:14:40]Read from MH i2c: F0 09 00 [11:14:40]MH_I2C_Read... [11:14:40]Read from MH i2c: F0 09 00 AE 04 00 21 E6 14 67 82 C9 CF 66 AC [11:14:40]GetLastDocTimeStamp 1729422845 [11:14:40]current date 1729422881 [11:14:40]FM_GetShiftState [11:14:40]SAM_PROTO_GetShiftState [11:14:40]wFMCommunicate request_size=4 [11:14:40]MH_SAM_APDU [11:14:40]CAPDU: 80 13 01 00 [11:14:40]Write to MH i2c: E2 08 00 AF 04 80 13 01 00 00 00 00 00 30 [11:14:40]Write i2c OK [11:14:40]MH_I2C_Read... [11:14:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:40]Read from MH i2c: E2 [11:14:40]MH_I2C_Read... [11:14:40]Read from MH i2c: E2 0E 00 [11:14:40]MH_I2C_Read... [11:14:40]Read from MH i2c: E2 0E 00 AF 04 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 4A [11:14:40]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:14:40]wFMCommunicate OK [11:14:40]SAM_PROTO_GetShiftState done [11:14:40]FM_GetShiftState done [11:14:40]opened in 1729383750 [11:14:40]opened+sec_in_day 1729470150 [11:14:40]quantity*price = 50041 [11:14:40]sum+1 = 50042 [11:14:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 207 20.10.2024 11:14 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227359 ФПД: 45393838200587 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111441&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227359&fm=45393838200587&tin=02508201610067®Number=0000000000091685&sum=50000 [11:14:41]StoreToDocumentArchive [11:14:41]shift 533 fd 227359 [11:14:41]save to /storage/0533/doc_00227359 [11:14:41]save last doc name /storage/0533/doc_00227359 to /storage/kkm_last_doc_name [11:14:41]save OK [11:14:41]Clear old archive folders... [11:14:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:14:41]tlvbuf is 0194D030 [11:14:41]SAM_PROTO_ClearQueue [11:14:41]wFMCommunicate request_size=4 [11:14:41]MH_SAM_APDU [11:14:41]CAPDU: 80 09 00 00 [11:14:41]Write to MH i2c: E2 08 00 BC 04 80 09 00 00 00 00 00 00 32 [11:14:41]Write i2c OK [11:14:41]MH_I2C_Read... [11:14:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:14:41]Read from MH i2c: E2 [11:14:41]MH_I2C_Read... [11:14:41]Read from MH i2c: E2 03 00 [11:14:41]MH_I2C_Read... [11:14:41]Read from MH i2c: E2 03 00 BC 04 00 90 00 34 [11:14:41]RAPDU: 90 00 [11:14:41]wFMCommunicate OK [11:14:41]SAM_PROTO_ClearQueue done [11:14:41]KKMCreateOFDPacket [11:14:41]OFDProtocolAddRootSTLVToBuf [11:14:41]FM_MakeSignedData [11:14:41]FM_MakeSignedData [11:14:41]SAM_PROTO_SignData [11:14:41]wFMCommunicate request_size=4 [11:14:41]MH_SAM_APDU [11:14:41]CAPDU: 80 0D 01 02 [11:14:41]Write to MH i2c: E2 08 00 BD 04 80 0D 01 02 00 00 00 00 3A [11:14:41]Write i2c OK [11:14:41]MH_I2C_Read... [11:14:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:14:41]Read from MH i2c: E2 [11:14:41]MH_I2C_Read... [11:14:41]Read from MH i2c: E2 03 00 [11:14:41]MH_I2C_Read... [11:14:41]Read from MH i2c: E2 03 00 BD 04 00 90 00 35 [11:14:41]RAPDU: 90 00 [11:14:41]wFMCommunicate OK [11:14:41]wFMCommunicate request_size=255 [11:14:41]MH_SAM_APDU [11:14:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 21 E6 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1F 78 03 00 35 04 06 00 29 [11:14:41]Write to MH i2c: E2 02 01 BE 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 21 E6 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1F 78 03 00 35 04 06 00 29 00 00 FC [11:14:41]Write i2c OK [11:14:41]MH_I2C_Read... [11:14:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:42]Read from MH i2c: E2 [11:14:42]MH_I2C_Read... [11:14:42]Read from MH i2c: E2 03 00 [11:14:42]MH_I2C_Read... [11:14:42]Read from MH i2c: E2 03 00 BE 04 00 90 00 36 [11:14:42]RAPDU: 90 00 [11:14:42]wFMCommunicate OK [11:14:42]wFMCommunicate request_size=10 [11:14:42]MH_SAM_APDU [11:14:42]CAPDU: 80 0D 02 02 05 49 13 99 D7 0B [11:14:42]Write to MH i2c: E2 0D 00 BF 04 80 0D 02 02 05 00 49 13 99 D7 0B 00 00 1E [11:14:42]Write i2c OK [11:14:42]MH_I2C_Read... [11:14:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:42]Read from MH i2c: E2 [11:14:42]MH_I2C_Read... [11:14:42]Read from MH i2c: E2 03 00 [11:14:42]MH_I2C_Read... [11:14:42]Read from MH i2c: E2 03 00 BF 04 00 90 00 37 [11:14:42]RAPDU: 90 00 [11:14:42]wFMCommunicate OK [11:14:42]wFMCommunicate request_size=4 [11:14:42]MH_SAM_APDU [11:14:42]CAPDU: 80 0D 03 02 [11:14:42]Write to MH i2c: E2 08 00 C0 04 80 0D 03 02 00 00 00 00 3F [11:14:42]Write i2c OK [11:14:42]MH_I2C_Read... [11:14:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:14:42]Read from MH i2c: E2 [11:14:42]MH_I2C_Read... [11:14:42]Read from MH i2c: E2 0B 00 [11:14:42]MH_I2C_Read... [11:14:42]Read from MH i2c: E2 0B 00 C0 04 00 EB 62 9C 59 F6 85 42 75 90 00 B4 [11:14:42]RAPDU: EB 62 9C 59 F6 85 42 75 90 00 [11:14:42]wFMCommunicate OK [11:14:42]SAM_PROTO_SignData done [11:14:42]FM_MakeSignedData done [11:14:42]CreateOFDProtocolMessage [11:14:42]wFMCommunicate request_size=4 [11:14:42]MH_SAM_APDU [11:14:42]CAPDU: 80 11 00 00 [11:14:42]Write to MH i2c: E2 08 00 C1 04 80 11 00 00 00 00 00 00 3F [11:14:42]Write i2c OK [11:14:42]MH_I2C_Read... [11:14:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:42]Read from MH i2c: E2 [11:14:42]MH_I2C_Read... [11:14:42]Read from MH i2c: E2 17 00 [11:14:42]MH_I2C_Read... [11:14:42]Read from MH i2c: E2 17 00 C1 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 96 [11:14:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:14:42]wFMCommunicate OK [11:14:42]CreateOFDProtocolMessage done [11:14:42]OFDSenderStorePacket 227359 [11:14:42]StoreOFDPacket docnum=227359 [11:14:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 23 3B 07 01 A5 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 21 E6 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1F 78 03 00 35 04 06 00 29 49 13 99 D7 0B EB 62 9C 59 F6 85 42 75 [11:14:42]CheckFolder [11:14:42]dirname=/storage/ofd_packets [11:14:42]CheckFolder done [11:14:42]ProducePacketName [11:14:42]name=ofd_packets/00227359 [11:14:42]NVStorageSaveData ofd_packets/00227359 [11:14:42]File name is /storage/ofd_packets/00227359 [11:14:42]Write 301 bytes [11:14:42]NVStorageSaveData done [11:14:42]OFDSenderStorePacket done [11:14:42]KKMCreateOFDPacket done [11:14:42]NVStorageSaveData kkm_last_timestamp [11:14:42]File name is /storage/kkm_last_timestamp [11:14:42]Write 4 bytes [11:14:42]NVStorageSaveData done [11:14:42]ExternCall_PrintAddStr [11:14:42]wPrintStart [11:14:42]Write to MH i2c: 01 00 00 C2 04 C6 [11:14:42]Write i2c OK [11:14:42]MH_I2C_Read... [11:14:42]Read from MH i2c: 01 [11:14:42]MH_I2C_Read... [11:14:42]Read from MH i2c: 01 07 00 [11:14:42]MH_I2C_Read... [11:14:42]Read from MH i2c: 01 07 00 C2 04 00 00 00 00 00 FF 0F DB [11:14:42]RasterBufferAndPrint [11:14:42]line Счет N : (1)1962874 [11:14:42]line ИНН: 02508201610067 [11:14:42]line Контрольно-Кассовый Чек [11:14:42]line ПРОДАЖА [11:14:42]line ТРК (МРК, ГНК) : 53 [11:14:42]line Товар: 2710124130 [11:14:42]line Аи-92-К-5 [11:14:42]line 7.480 * 66.90 [11:14:42]line = 500.41 [11:14:42]line НДС 12% НСП 1% [11:14:42]line > о реализуемом товаре [11:14:42]line ОКРУГЛЕНИЕ: -0.41 [11:14:42]line ИТОГО: 500.00 [11:14:42]line Внесено: 500.00 [11:14:42]line СДАЧА: 0.00 [11:14:42]line НСП 1% : 4.43 [11:14:42]line НДС 12% : 53.14 [11:14:42]line Наличными: 500.00 [11:14:42]line Безнал.: 0.00 [11:14:42]line Место: АЗС № 133 "Партнер Нефть" [11:14:42]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:14:42]line СНО: Общий режим [11:14:42]line Чек 207 20.10.2024 11:14 [11:14:42]line Смена: 533 ФФД: 1.0 [11:14:42]line ЗНМ: 0300000091 [11:14:42]line РНМ: 0000000000091685 [11:14:42]line Версия ККМ: 001 [11:14:42]line ФМ: 0000000000871839 [11:14:42]line ФД: 227359 [11:14:42]line ФПД: 45393838200587 [11:14:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111441&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227359&fm=45393838200587&tin=02508201610067®Number=0000000000091685&sum=50000 [11:14:42]written 0, free lines is 4095 [11:14:42]OFD Sender: Processing packet 227359 [packets to send 38, broken 37] [11:14:42]ProducePacketName [11:14:42]name=ofd_packets/00227359 [11:14:42]OFD Sender: To server: pG, [11:14:42]CommunicateWithHost lk.salyk.kg:30040 [11:14:42]ConnectInit lk.salyk.kg [11:14:42]Connected sock=10 [11:14: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 33 39 0F 01 00 00 23 3B 07 01 A5 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 21 E6 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1F 78 03 00 35 04 06 00 29 49 13 99 D7 0B EB 62 9C 59 F6 85 42 75 [11:14: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 33 39 4F 00 00 00 B4 53 47 00 B3 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1F 78 03 00 F4 03 04 00 20 91 14 67 B6 04 01 00 00 09 8A C4 BD 24 FF 68 54 [11:14:42]CommunicateWithHost err = 0 [11:14:42]CheckOFDResponse [11:14:42]1017 (14) - 77093643461234 [11:14:42]1041 (16) - 0000000000871839 [11:14:42]1040 (4) - 227359 [11:14:42]1012 (4) - 20.10.2024 05:12 [11:14:42]1206 (1) - 0 [11:14:42]OFD Sender: Remove packet 227359 [11:14:42]ProducePacketName [11:14:42]name=ofd_packets/00227359 [11:14:42]NVStorageDeleteData [11:14:42]Write to MH i2c: 01 00 00 EC 04 F0 [11:14:42]Write i2c OK [11:14:42]MH_I2C_Read... [11:14:42]Read from MH i2c: 01 [11:14:42]MH_I2C_Read... [11:14:42]Read from MH i2c: 01 07 00 [11:14:42]MH_I2C_Read... [11:14:42]Read from MH i2c: 01 07 00 EC 04 00 00 00 00 00 16 0D 1A [11:14:42]RasterBufferAndPrint [11:14:42]line [11:14:42]line [11:14:42]line [11:14:42]line [11:14:42]line [11:14:42]written 0, free lines is 3356 [11:14:42]process_action close_receipt done [11:14:42]requested_data is exist [11:14:42]produce_requested_data [11:14:42]requested_item fm.sn is exist - process it [11:14:42]wFMCommunicate request_size=4 [11:14:42]MH_SAM_APDU [11:14:42]CAPDU: 80 11 00 00 [11:14:42]Write to MH i2c: E2 08 00 F3 04 80 11 00 00 00 00 00 00 71 [11:14:42]Write i2c OK [11:14:42]MH_I2C_Read... [11:14:42]Read from MH i2c: E2 [11:14:42]MH_I2C_Read... [11:14:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:42]Read from MH i2c: E2 17 00 [11:14:42]MH_I2C_Read... [11:14:42]Read from MH i2c: E2 17 00 F3 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C8 [11:14:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:14:42]wFMCommunicate OK [11:14:42]requested_item fd.num is exist - process it [11:14:42]SAM_PROTO_GetFieldsCounters [11:14:42]wFMCommunicate request_size=4 [11:14:42]MH_SAM_APDU [11:14:42]CAPDU: 80 13 00 00 [11:14:42]Write to MH i2c: E2 08 00 F4 04 80 13 00 00 00 00 00 00 74 [11:14:42]Write i2c OK [11:14:42]MH_I2C_Read... [11:14:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:14:43]Read from MH i2c: E2 [11:14:43]MH_I2C_Read... [11:14:43]Read from MH i2c: E2 62 00 [11:14:43]MH_I2C_Read... [11:14:43]Read from MH i2c: E2 62 00 F4 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 1F 78 03 00 0E 04 04 00 15 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 BB [11:14: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 1F 78 03 00 0E 04 04 00 15 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 [11:14:43]wFMCommunicate OK [11:14:43]SAM_PROTO_GetFieldsCounters done [11:14:43]requested_item shift.num is exist - process it [11:14:43]requested_item shift.opened is exist - process it [11:14:43]req_shift_opened [11:14:43]FM_GetShiftState [11:14:43]SAM_PROTO_GetShiftState [11:14:43]wFMCommunicate request_size=4 [11:14:43]MH_SAM_APDU [11:14:43]CAPDU: 80 13 01 00 [11:14:43]Write to MH i2c: E2 08 00 F5 04 80 13 01 00 00 00 00 00 76 [11:14:43]Write i2c OK [11:14:43]MH_I2C_Read... [11:14:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:43]Read from MH i2c: E2 [11:14:43]MH_I2C_Read... [11:14:43]Read from MH i2c: E2 0E 00 [11:14:43]MH_I2C_Read... [11:14:43]Read from MH i2c: E2 0E 00 F5 04 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 90 [11:14:43]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:14:43]wFMCommunicate OK [11:14:43]SAM_PROTO_GetShiftState done [11:14:43]FM_GetShiftState done [11:14:43]req_shift_opened done [11:14:43]requested_item shift.open_date is exist - process it [11:14:43]req_shift_open_date [11:14:43]req_shift_open_date done [11:14:43]produce_requested_data done [11:14:43]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227359,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [11:14:43]process_action_free close_receipt [11:14:43]json_value_free [11:14:43]json_value_free done [11:14:43]process_json_proto returns [11:14:43]Send response to host [11:14:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227359,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [11:14:43]free response buf [11:14:43]execute_script done [11:14:43]execute_script returns [11:14:43]free content buf [11:14:43]Sock 8.Close socket [11:14:43]Sock 8.Thread stoped [11:14:43]OFD Sender: No OFD packet to send [11:14:48]OFD Sender: No OFD packet to send [11:14:53]OFD Sender: No OFD packet to send [11:14:58]OFD Sender: No OFD packet to send [11:15:00]accept exits with 9 [11:15:00]New connection [11:15:00]New thread 3066543460 created [11:15:00]Thread 3066686820 joined [11:15:00]Waiting for new connection... [11:15:00] Sock 9.Parse request [11:15:00]Sock 9.Check first char [11:15:00]Sock 9.First char is OK [11:15:00]request: POST /json_proto HTTP/1.0 [11:15:00]Method: POST [11:15:00]URL: /json_proto [11:15:00]Method is POST - this is cgi request [11:15:00]url: /json_proto [11:15:00]query_string will be loaded in cgi processing [11:15:00]execute_cgi json_proto POST (null) [11:15:00]execute_cgi path=json_proto method=POST [11:15:00]POST find Content-Length [11:15:00]Host: 172.17.44.195:8080 [11:15:00]Content-Length: 676 [11:15:00]Content-Type: application/json [11:15:00] [11:15:00]POST finish read [11:15:00]Found Content-Length = 676 [11:15:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962875", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:00]execute_script... [11:15:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962875", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:00]POST & json_proto [11:15:00]process_json_proto [11:15:00]json parsed OK: [11:15:00]protocol is kg_v1.0 [11:15:00]action value=close_receipt [11:15:00]process_action close_receipt [11:15:00]cmd_close_receipt [11:15:00]MH_GetDate [11:15:00]Write to MH i2c: F0 00 00 F6 04 E9 [11:15:00]Write i2c OK [11:15:00]MH_I2C_Read... [11:15:00]Read from MH i2c: F0 [11:15:00]MH_I2C_Read... [11:15:00]Read from MH i2c: F0 09 00 [11:15:00]MH_I2C_Read... [11:15:00]Read from MH i2c: F0 09 00 F6 04 00 35 E6 14 67 82 C9 CF 66 08 [11:15:00]GetLastDocTimeStamp 1729422881 [11:15:00]current date 1729422901 [11:15:00]FM_GetShiftState [11:15:00]SAM_PROTO_GetShiftState [11:15:00]wFMCommunicate request_size=4 [11:15:00]MH_SAM_APDU [11:15:00]CAPDU: 80 13 01 00 [11:15:00]Write to MH i2c: E2 08 00 F7 04 80 13 01 00 00 00 00 00 78 [11:15:01]Write i2c OK [11:15:01]MH_I2C_Read... [11:15:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:01]Read from MH i2c: E2 [11:15:01]MH_I2C_Read... [11:15:01]Read from MH i2c: E2 0E 00 [11:15:01]MH_I2C_Read... [11:15:01]Read from MH i2c: E2 0E 00 F7 04 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 92 [11:15:01]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:15:01]wFMCommunicate OK [11:15:01]SAM_PROTO_GetShiftState done [11:15:01]FM_GetShiftState done [11:15:01]opened in 1729383750 [11:15:01]opened+sec_in_day 1729470150 [11:15:01]quantity*price = 80010 [11:15:01]sum+1 = 80011 [11:15:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 208 20.10.2024 11:15 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227360 ФПД: 86601324772564 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111501&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227360&fm=86601324772564&tin=02508201610067®Number=0000000000091685&sum=80000 [11:15:02]StoreToDocumentArchive [11:15:02]shift 533 fd 227360 [11:15:02]save to /storage/0533/doc_00227360 [11:15:02]save last doc name /storage/0533/doc_00227360 to /storage/kkm_last_doc_name [11:15:02]save OK [11:15:02]Clear old archive folders... [11:15:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:15:02]tlvbuf is 01858DA0 [11:15:02]SAM_PROTO_ClearQueue [11:15:02]wFMCommunicate request_size=4 [11:15:02]MH_SAM_APDU [11:15:02]CAPDU: 80 09 00 00 [11:15:02]Write to MH i2c: E2 08 00 04 05 80 09 00 00 00 00 00 00 7B [11:15:02]Write i2c OK [11:15:02]MH_I2C_Read... [11:15:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:15:02]Read from MH i2c: E2 [11:15:02]MH_I2C_Read... [11:15:02]Read from MH i2c: E2 03 00 [11:15:02]MH_I2C_Read... [11:15:02]Read from MH i2c: E2 03 00 04 05 00 90 00 7D [11:15:02]RAPDU: 90 00 [11:15:02]wFMCommunicate OK [11:15:02]SAM_PROTO_ClearQueue done [11:15:02]KKMCreateOFDPacket [11:15:02]OFDProtocolAddRootSTLVToBuf [11:15:02]FM_MakeSignedData [11:15:02]FM_MakeSignedData [11:15:02]SAM_PROTO_SignData [11:15:02]wFMCommunicate request_size=4 [11:15:02]MH_SAM_APDU [11:15:02]CAPDU: 80 0D 01 02 [11:15:02]Write to MH i2c: E2 08 00 05 05 80 0D 01 02 00 00 00 00 83 [11:15:02]Write i2c OK [11:15:02]MH_I2C_Read... [11:15:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:15:02]Read from MH i2c: E2 [11:15:02]MH_I2C_Read... [11:15:02]Read from MH i2c: E2 03 00 [11:15:02]MH_I2C_Read... [11:15:02]Read from MH i2c: E2 03 00 05 05 00 90 00 7E [11:15:02]RAPDU: 90 00 [11:15:02]wFMCommunicate OK [11:15:02]wFMCommunicate request_size=255 [11:15:02]MH_SAM_APDU [11:15:02]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 35 E6 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 20 78 03 00 35 04 06 00 4E C3 71 33 [11:15:02]Write to MH i2c: E2 02 01 06 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 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 35 E6 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 20 78 03 00 35 04 06 00 4E C3 71 33 00 00 10 [11:15:02]Write i2c OK [11:15:02]MH_I2C_Read... [11:15:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:02]Read from MH i2c: E2 [11:15:02]MH_I2C_Read... [11:15:02]Read from MH i2c: E2 03 00 [11:15:02]MH_I2C_Read... [11:15:02]Read from MH i2c: E2 03 00 06 05 00 90 00 7F [11:15:02]RAPDU: 90 00 [11:15:02]wFMCommunicate OK [11:15:02]wFMCommunicate request_size=7 [11:15:02]MH_SAM_APDU [11:15:02]CAPDU: 80 0D 02 02 02 3C D4 [11:15:02]Write to MH i2c: E2 0A 00 07 05 80 0D 02 02 02 00 3C D4 00 00 9A [11:15:02]Write i2c OK [11:15:02]MH_I2C_Read... [11:15:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:02]Read from MH i2c: E2 [11:15:02]MH_I2C_Read... [11:15:02]Read from MH i2c: E2 03 00 [11:15:02]MH_I2C_Read... [11:15:02]Read from MH i2c: E2 03 00 07 05 00 90 00 80 [11:15:02]RAPDU: 90 00 [11:15:02]wFMCommunicate OK [11:15:02]wFMCommunicate request_size=4 [11:15:02]MH_SAM_APDU [11:15:02]CAPDU: 80 0D 03 02 [11:15:02]Write to MH i2c: E2 08 00 08 05 80 0D 03 02 00 00 00 00 88 [11:15:02]Write i2c OK [11:15:02]MH_I2C_Read... [11:15:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:15:02]Read from MH i2c: E2 [11:15:02]MH_I2C_Read... [11:15:02]Read from MH i2c: E2 0B 00 [11:15:02]MH_I2C_Read... [11:15:02]Read from MH i2c: E2 0B 00 08 05 00 27 A7 AD 36 2E AC B1 F0 90 00 B5 [11:15:02]RAPDU: 27 A7 AD 36 2E AC B1 F0 90 00 [11:15:02]wFMCommunicate OK [11:15:02]SAM_PROTO_SignData done [11:15:02]FM_MakeSignedData done [11:15:02]CreateOFDProtocolMessage [11:15:02]wFMCommunicate request_size=4 [11:15:02]MH_SAM_APDU [11:15:02]CAPDU: 80 11 00 00 [11:15:02]Write to MH i2c: E2 08 00 09 05 80 11 00 00 00 00 00 00 88 [11:15:02]Write i2c OK [11:15:02]MH_I2C_Read... [11:15:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:02]Read from MH i2c: E2 [11:15:02]MH_I2C_Read... [11:15:02]Read from MH i2c: E2 17 00 [11:15:02]MH_I2C_Read... [11:15:02]Read from MH i2c: E2 17 00 09 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 DF [11:15:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:15:02]wFMCommunicate OK [11:15:02]CreateOFDProtocolMessage done [11:15:02]OFDSenderStorePacket 227360 [11:15:02]StoreOFDPacket docnum=227360 [11:15:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 B0 C1 04 01 62 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 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 35 E6 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 20 78 03 00 35 04 06 00 4E C3 71 33 3C D4 27 A7 AD 36 2E AC B1 F0 [11:15:02]CheckFolder [11:15:02]dirname=/storage/ofd_packets [11:15:02]CheckFolder done [11:15:02]ProducePacketName [11:15:02]name=ofd_packets/00227360 [11:15:02]NVStorageSaveData ofd_packets/00227360 [11:15:02]File name is /storage/ofd_packets/00227360 [11:15:02]Write 298 bytes [11:15:02]NVStorageSaveData done [11:15:02]OFDSenderStorePacket done [11:15:02]KKMCreateOFDPacket done [11:15:02]NVStorageSaveData kkm_last_timestamp [11:15:02]File name is /storage/kkm_last_timestamp [11:15:02]Write 4 bytes [11:15:02]NVStorageSaveData done [11:15:02]ExternCall_PrintAddStr [11:15:02]wPrintStart [11:15:02]Write to MH i2c: 01 00 00 0A 05 0F [11:15:02]Write i2c OK [11:15:02]MH_I2C_Read... [11:15:02]Read from MH i2c: 01 [11:15:02]MH_I2C_Read... [11:15:02]Read from MH i2c: 01 07 00 [11:15:02]MH_I2C_Read... [11:15:02]Read from MH i2c: 01 07 00 0A 05 00 00 00 00 00 FF 0F 24 [11:15:02]RasterBufferAndPrint [11:15:02]line Счет N : (1)1962875 [11:15:02]line ИНН: 02508201610067 [11:15:02]line Контрольно-Кассовый Чек [11:15:02]line ПРОДАЖА [11:15:02]line ТРК (МРК, ГНК) : 21 [11:15:02]line Товар: 2710194210 [11:15:02]line ДТ-К-5 [11:15:02]line 10.500 * 76.20 [11:15:02]line = 800.10 [11:15:02]line НДС 12% НСП 1% [11:15:02]line > о реализуемом товаре [11:15:02]line ОКРУГЛЕНИЕ: -0.10 [11:15:02]line ИТОГО: 800.00 [11:15:02]line Внесено: 800.00 [11:15:02]line СДАЧА: 0.00 [11:15:02]line НСП 1% : 7.08 [11:15:02]line НДС 12% : 84.97 [11:15:02]line Наличными: 800.00 [11:15:02]line Безнал.: 0.00 [11:15:02]line Место: АЗС № 133 "Партнер Нефть" [11:15:02]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:15:02]line СНО: Общий режим [11:15:02]line Чек 208 20.10.2024 11:15 [11:15:02]line Смена: 533 ФФД: 1.0 [11:15:02]line ЗНМ: 0300000091 [11:15:02]line РНМ: 0000000000091685 [11:15:02]line Версия ККМ: 001 [11:15:02]line ФМ: 0000000000871839 [11:15:02]line ФД: 227360 [11:15:02]line ФПД: 86601324772564 [11:15:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111501&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227360&fm=86601324772564&tin=02508201610067®Number=0000000000091685&sum=80000 [11:15:03]OFD Sender: Processing packet 227360 [packets to send 38, broken 37] [11:15:03]ProducePacketName [11:15:03]name=ofd_packets/00227360 [11:15:03]OFD Sender: To server: pG, [11:15:03]CommunicateWithHost lk.salyk.kg:30040 [11:15:03]ConnectInit lk.salyk.kg [11:15:03]written 0, free lines is 4095 [11:15:03]Connected sock=10 [11:15:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 B0 C1 04 01 62 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 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 35 E6 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 20 78 03 00 35 04 06 00 4E C3 71 33 3C D4 27 A7 AD 36 2E AC B1 F0 [11:15:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 6C 24 47 00 20 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 20 78 03 00 F4 03 04 00 34 91 14 67 B6 04 01 00 00 9B 74 8F 00 3E BD B2 BB [11:15:03]CommunicateWithHost err = 0 [11:15:03]CheckOFDResponse [11:15:03]1017 (14) - 77093643461234 [11:15:03]1041 (16) - 0000000000871839 [11:15:03]1040 (4) - 227360 [11:15:03]1012 (4) - 20.10.2024 05:12 [11:15:03]1206 (1) - 0 [11:15:03]OFD Sender: Remove packet 227360 [11:15:03]ProducePacketName [11:15:03]name=ofd_packets/00227360 [11:15:03]NVStorageDeleteData [11:15:03]Write to MH i2c: 01 00 00 34 05 39 [11:15:03]Write i2c OK [11:15:03]MH_I2C_Read... [11:15:03]Read from MH i2c: 01 [11:15:03]MH_I2C_Read... [11:15:03]Read from MH i2c: 01 07 00 [11:15:03]MH_I2C_Read... [11:15:03]Read from MH i2c: 01 07 00 34 05 00 00 00 00 00 FE 0C 4A [11:15:03]RasterBufferAndPrint [11:15:03]line [11:15:03]line [11:15:03]line [11:15:03]line [11:15:03]line [11:15:03]written 0, free lines is 3332 [11:15:03]process_action close_receipt done [11:15:03]requested_data is exist [11:15:03]produce_requested_data [11:15:03]requested_item fm.sn is exist - process it [11:15:03]wFMCommunicate request_size=4 [11:15:03]MH_SAM_APDU [11:15:03]CAPDU: 80 11 00 00 [11:15:03]Write to MH i2c: E2 08 00 3B 05 80 11 00 00 00 00 00 00 BA [11:15:03]Write i2c OK [11:15:03]MH_I2C_Read... [11:15:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:03]Read from MH i2c: E2 [11:15:03]MH_I2C_Read... [11:15:03]Read from MH i2c: E2 17 00 [11:15:03]MH_I2C_Read... [11:15:03]Read from MH i2c: E2 17 00 3B 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 11 [11:15:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:15:03]wFMCommunicate OK [11:15:03]requested_item fd.num is exist - process it [11:15:03]SAM_PROTO_GetFieldsCounters [11:15:03]wFMCommunicate request_size=4 [11:15:03]MH_SAM_APDU [11:15:03]CAPDU: 80 13 00 00 [11:15:03]Write to MH i2c: E2 08 00 3C 05 80 13 00 00 00 00 00 00 BD [11:15:03]Write i2c OK [11:15:03]MH_I2C_Read... [11:15:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:15:03]Read from MH i2c: E2 [11:15:03]MH_I2C_Read... [11:15:03]Read from MH i2c: E2 62 00 [11:15:03]MH_I2C_Read... [11:15:03]Read from MH i2c: E2 62 00 3C 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 20 78 03 00 0E 04 04 00 15 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 08 [11:15:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 20 78 03 00 0E 04 04 00 15 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 [11:15:03]wFMCommunicate OK [11:15:03]SAM_PROTO_GetFieldsCounters done [11:15:03]requested_item shift.num is exist - process it [11:15:03]requested_item shift.opened is exist - process it [11:15:03]req_shift_opened [11:15:03]FM_GetShiftState [11:15:03]SAM_PROTO_GetShiftState [11:15:03]wFMCommunicate request_size=4 [11:15:03]MH_SAM_APDU [11:15:03]CAPDU: 80 13 01 00 [11:15:03]Write to MH i2c: E2 08 00 3D 05 80 13 01 00 00 00 00 00 BF [11:15:03]Write i2c OK [11:15:03]MH_I2C_Read... [11:15:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:03]Read from MH i2c: E2 [11:15:03]MH_I2C_Read... [11:15:03]Read from MH i2c: E2 0E 00 [11:15:03]MH_I2C_Read... [11:15:03]Read from MH i2c: E2 0E 00 3D 05 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 D9 [11:15:03]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:15:03]wFMCommunicate OK [11:15:03]SAM_PROTO_GetShiftState done [11:15:03]FM_GetShiftState done [11:15:03]req_shift_opened done [11:15:03]requested_item shift.open_date is exist - process it [11:15:03]req_shift_open_date [11:15:03]req_shift_open_date done [11:15:03]produce_requested_data done [11:15:03]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227360,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [11:15:03]process_action_free close_receipt [11:15:03]json_value_free [11:15:03]json_value_free done [11:15:03]process_json_proto returns [11:15:03]Send response to host [11:15:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227360,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [11:15:03]free response buf [11:15:03]execute_script done [11:15:03]execute_script returns [11:15:03]free content buf [11:15:03]Sock 9.Close socket [11:15:03]Sock 9.Thread stoped [11:15:03]OFD Sender: No OFD packet to send [11:15:08]OFD Sender: No OFD packet to send [11:15:13]OFD Sender: No OFD packet to send [11:15:18]OFD Sender: No OFD packet to send [11:15:23]OFD Sender: No OFD packet to send [11:15:28]OFD Sender: No OFD packet to send [11:15:33]OFD Sender: No OFD packet to send [11:15:38]OFD Sender: No OFD packet to send [11:15:43]OFD Sender: No OFD packet to send [11:15:48]OFD Sender: No OFD packet to send [11:15:49]accept exits with 8 [11:15:49]New connection [11:15:49]New thread 3066686820 created [11:15:49]Thread 3066543460 joined [11:15:49]Waiting for new connection... [11:15:49] Sock 8.Parse request [11:15:49]Sock 8.Check first char [11:15:49]Sock 8.First char is OK [11:15:49]request: POST /json_proto HTTP/1.0 [11:15:49]Method: POST [11:15:49]URL: /json_proto [11:15:49]Method is POST - this is cgi request [11:15:49]url: /json_proto [11:15:49]query_string will be loaded in cgi processing [11:15:49]execute_cgi json_proto POST (null) [11:15:49]execute_cgi path=json_proto method=POST [11:15:49]POST find Content-Length [11:15:49]Host: 172.17.44.195:8080 [11:15:49]Content-Length: 678 [11:15:49]Content-Type: application/json [11:15:49] [11:15:49]POST finish read [11:15:49]Found Content-Length = 678 [11:15:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962877", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:49]execute_script... [11:15: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)1962877", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:49]POST & json_proto [11:15:49]process_json_proto [11:15:49]json parsed OK: [11:15:49]protocol is kg_v1.0 [11:15:49]action value=close_receipt [11:15:49]process_action close_receipt [11:15:49]cmd_close_receipt [11:15:49]MH_GetDate [11:15:49]Write to MH i2c: F0 00 00 3E 05 32 [11:15:49]Write i2c OK [11:15:49]MH_I2C_Read... [11:15:49]Read from MH i2c: F0 [11:15:49]MH_I2C_Read... [11:15:49]Read from MH i2c: F0 09 00 [11:15:49]MH_I2C_Read... [11:15:49]Read from MH i2c: F0 09 00 3E 05 00 66 E6 14 67 82 C9 CF 66 82 [11:15:49]GetLastDocTimeStamp 1729422901 [11:15:49]current date 1729422950 [11:15:49]FM_GetShiftState [11:15:49]SAM_PROTO_GetShiftState [11:15:49]wFMCommunicate request_size=4 [11:15:49]MH_SAM_APDU [11:15:49]CAPDU: 80 13 01 00 [11:15:49]Write to MH i2c: E2 08 00 3F 05 80 13 01 00 00 00 00 00 C1 [11:15:49]Write i2c OK [11:15:49]MH_I2C_Read... [11:15:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:49]Read from MH i2c: E2 [11:15:49]MH_I2C_Read... [11:15:49]Read from MH i2c: E2 0E 00 [11:15:49]MH_I2C_Read... [11:15:49]Read from MH i2c: E2 0E 00 3F 05 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 DB [11:15:49]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:15:49]wFMCommunicate OK [11:15:49]SAM_PROTO_GetShiftState done [11:15:49]FM_GetShiftState done [11:15:49]opened in 1729383750 [11:15:49]opened+sec_in_day 1729470150 [11:15:49]quantity*price = 20003 [11:15:49]sum+1 = 20004 [11:15:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 209 20.10.2024 11:15 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227361 ФПД: 185463907177647 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111550&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227361&fm=185463907177647&tin=02508201610067®Number=0000000000091685&sum=20000 [11:15:50]StoreToDocumentArchive [11:15:50]shift 533 fd 227361 [11:15:50]save to /storage/0533/doc_00227361 [11:15:50]save last doc name /storage/0533/doc_00227361 to /storage/kkm_last_doc_name [11:15:50]save OK [11:15:50]Clear old archive folders... [11:15:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:15:50]tlvbuf is 01852A20 [11:15:50]SAM_PROTO_ClearQueue [11:15:50]wFMCommunicate request_size=4 [11:15:50]MH_SAM_APDU [11:15:50]CAPDU: 80 09 00 00 [11:15:50]Write to MH i2c: E2 08 00 4C 05 80 09 00 00 00 00 00 00 C3 [11:15:50]Write i2c OK [11:15:50]MH_I2C_Read... [11:15:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:15:50]Read from MH i2c: E2 [11:15:50]MH_I2C_Read... [11:15:50]Read from MH i2c: E2 03 00 [11:15:50]MH_I2C_Read... [11:15:50]Read from MH i2c: E2 03 00 4C 05 00 90 00 C5 [11:15:50]RAPDU: 90 00 [11:15:50]wFMCommunicate OK [11:15:50]SAM_PROTO_ClearQueue done [11:15:50]KKMCreateOFDPacket [11:15:50]OFDProtocolAddRootSTLVToBuf [11:15:50]FM_MakeSignedData [11:15:50]FM_MakeSignedData [11:15:50]SAM_PROTO_SignData [11:15:50]wFMCommunicate request_size=4 [11:15:50]MH_SAM_APDU [11:15:50]CAPDU: 80 0D 01 02 [11:15:50]Write to MH i2c: E2 08 00 4D 05 80 0D 01 02 00 00 00 00 CB [11:15:50]Write i2c OK [11:15:50]MH_I2C_Read... [11:15:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:15:50]Read from MH i2c: E2 [11:15:50]MH_I2C_Read... [11:15:50]Read from MH i2c: E2 03 00 [11:15:50]MH_I2C_Read... [11:15:50]Read from MH i2c: E2 03 00 4D 05 00 90 00 C6 [11:15:50]RAPDU: 90 00 [11:15:50]wFMCommunicate OK [11:15:50]wFMCommunicate request_size=255 [11:15:50]MH_SAM_APDU [11:15:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 66 E6 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 21 78 03 00 35 04 06 00 A8 [11:15:50]Write to MH i2c: E2 02 01 4E 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 66 E6 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 21 78 03 00 35 04 06 00 A8 00 00 17 [11:15:50]Write i2c OK [11:15:50]MH_I2C_Read... [11:15:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:51]Read from MH i2c: E2 [11:15:51]MH_I2C_Read... [11:15:51]Read from MH i2c: E2 03 00 [11:15:51]MH_I2C_Read... [11:15:51]Read from MH i2c: E2 03 00 4E 05 00 90 00 C7 [11:15:51]RAPDU: 90 00 [11:15:51]wFMCommunicate OK [11:15:51]wFMCommunicate request_size=10 [11:15:51]MH_SAM_APDU [11:15:51]CAPDU: 80 0D 02 02 05 AD AE 4E 54 AF [11:15:51]Write to MH i2c: E2 0D 00 4F 05 80 0D 02 02 05 00 AD AE 4E 54 AF 00 00 84 [11:15:51]Write i2c OK [11:15:51]MH_I2C_Read... [11:15:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:51]Read from MH i2c: E2 [11:15:51]MH_I2C_Read... [11:15:51]Read from MH i2c: E2 03 00 [11:15:51]MH_I2C_Read... [11:15:51]Read from MH i2c: E2 03 00 4F 05 00 90 00 C8 [11:15:51]RAPDU: 90 00 [11:15:51]wFMCommunicate OK [11:15:51]wFMCommunicate request_size=4 [11:15:51]MH_SAM_APDU [11:15:51]CAPDU: 80 0D 03 02 [11:15:51]Write to MH i2c: E2 08 00 50 05 80 0D 03 02 00 00 00 00 D0 [11:15:51]Write i2c OK [11:15:51]MH_I2C_Read... [11:15:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:15:51]Read from MH i2c: E2 [11:15:51]MH_I2C_Read... [11:15:51]Read from MH i2c: E2 0B 00 [11:15:51]MH_I2C_Read... [11:15:51]Read from MH i2c: E2 0B 00 50 05 00 D5 3A 4E 6E C8 48 92 0A 90 00 48 [11:15:51]RAPDU: D5 3A 4E 6E C8 48 92 0A 90 00 [11:15:51]wFMCommunicate OK [11:15:51]SAM_PROTO_SignData done [11:15:51]FM_MakeSignedData done [11:15:51]CreateOFDProtocolMessage [11:15:51]wFMCommunicate request_size=4 [11:15:51]MH_SAM_APDU [11:15:51]CAPDU: 80 11 00 00 [11:15:51]Write to MH i2c: E2 08 00 51 05 80 11 00 00 00 00 00 00 D0 [11:15:51]Write i2c OK [11:15:51]MH_I2C_Read... [11:15:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:51]Read from MH i2c: E2 [11:15:51]MH_I2C_Read... [11:15:51]Read from MH i2c: E2 17 00 [11:15:51]MH_I2C_Read... [11:15:51]Read from MH i2c: E2 17 00 51 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 27 [11:15:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:15:51]wFMCommunicate OK [11:15:51]CreateOFDProtocolMessage done [11:15:51]OFDSenderStorePacket 227361 [11:15:51]StoreOFDPacket docnum=227361 [11:15:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 A7 7A 07 01 70 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 66 E6 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 21 78 03 00 35 04 06 00 A8 AD AE 4E 54 AF D5 3A 4E 6E C8 48 92 0A [11:15:51]CheckFolder [11:15:51]dirname=/storage/ofd_packets [11:15:51]CheckFolder done [11:15:51]ProducePacketName [11:15:51]name=ofd_packets/00227361 [11:15:51]NVStorageSaveData ofd_packets/00227361 [11:15:51]File name is /storage/ofd_packets/00227361 [11:15:51]Write 301 bytes [11:15:51]NVStorageSaveData done [11:15:51]OFDSenderStorePacket done [11:15:51]KKMCreateOFDPacket done [11:15:51]NVStorageSaveData kkm_last_timestamp [11:15:51]File name is /storage/kkm_last_timestamp [11:15:51]Write 4 bytes [11:15:51]NVStorageSaveData done [11:15:51]OFD Sender: Processing packet 227361 [packets to send 38, broken 37] [11:15:51]ProducePacketName [11:15:51]name=ofd_packets/00227361 [11:15:51]OFD Sender: To server: pG, [11:15:51]CommunicateWithHost lk.salyk.kg:30040 [11:15:51]ConnectInit lk.salyk.kg [11:15:51]ExternCall_PrintAddStr [11:15:51]wPrintStart [11:15:51]Write to MH i2c: 01 00 00 52 05 57 [11:15:51]Write i2c OK [11:15:51]MH_I2C_Read... [11:15:51]Read from MH i2c: 01 [11:15:51]MH_I2C_Read... [11:15:51]Read from MH i2c: 01 07 00 [11:15:51]MH_I2C_Read... [11:15:51]Read from MH i2c: 01 07 00 52 05 00 00 00 00 00 FF 0F 6C [11:15:51]RasterBufferAndPrint [11:15:51]line Счет N : (1)1962877 [11:15:51]line ИНН: 02508201610067 [11:15:51]line Контрольно-Кассовый Чек [11:15:51]line ПРОДАЖА [11:15:51]line ТРК (МРК, ГНК) : 43 [11:15:51]line Товар: 2710124130 [11:15:51]line Аи-92-К-5 [11:15:51]line 2.990 * 66.90 [11:15:51]line = 200.03 [11:15:51]line НДС 12% НСП 1% [11:15:51]line > о реализуемом товаре [11:15:51]line ОКРУГЛЕНИЕ: -0.03 [11:15:51]line ИТОГО: 200.00 [11:15:51]line Внесено: 200.00 [11:15:51]line СДАЧА: 0.00 [11:15:51]line НСП 1% : 1.77 [11:15:51]line НДС 12% : 21.24 [11:15:51]line Наличными: 200.00 [11:15:51]line Безнал.: 0.00 [11:15:51]line Место: АЗС № 133 "Партнер Нефть" [11:15:51]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:15:51]line СНО: Общий режим [11:15:51]line Чек 209 20.10.2024 11:15 [11:15:51]line Смена: 533 ФФД: 1.0 [11:15:51]line ЗНМ: 0300000091 [11:15:51]line РНМ: 0000000000091685 [11:15:51]line Версия ККМ: 001 [11:15:51]line ФМ: 0000000000871839 [11:15:51]line ФД: 227361 [11:15:51]line ФПД: 185463907177647 [11:15:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111550&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227361&fm=185463907177647&tin=02508201610067®Number=0000000000091685&sum=20000 [11:15:51]Connected sock=11 [11:15:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 A7 7A 07 01 70 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 66 E6 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 21 78 03 00 35 04 06 00 A8 AD AE 4E 54 AF D5 3A 4E 6E C8 48 92 0A [11:15:51]written 0, free lines is 4095 [11:15: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 33 39 4F 00 00 00 28 39 47 00 B2 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 33 39 10 04 04 00 21 78 03 00 F4 03 04 00 65 91 14 67 B6 04 01 00 00 17 60 52 2E 07 DB AE 1B [11:15:51]CommunicateWithHost err = 0 [11:15:51]CheckOFDResponse [11:15:51]1017 (14) - 77093643461234 [11:15:51]1041 (16) - 0000000000871839 [11:15:51]1040 (4) - 227361 [11:15:51]1012 (4) - 20.10.2024 05:13 [11:15:51]1206 (1) - 0 [11:15:51]OFD Sender: Remove packet 227361 [11:15:51]ProducePacketName [11:15:51]name=ofd_packets/00227361 [11:15:51]NVStorageDeleteData [11:15:52]Write to MH i2c: 01 00 00 7C 05 81 [11:15:52]Write i2c OK [11:15:52]MH_I2C_Read... [11:15:52]Read from MH i2c: 01 [11:15:52]MH_I2C_Read... [11:15:52]Read from MH i2c: 01 07 00 [11:15:52]MH_I2C_Read... [11:15:52]Read from MH i2c: 01 07 00 7C 05 00 00 00 00 00 F6 0C 8A [11:15:52]RasterBufferAndPrint [11:15:52]line [11:15:52]line [11:15:52]line [11:15:52]line [11:15:52]line [11:15:52]written 0, free lines is 3324 [11:15:52]process_action close_receipt done [11:15:52]requested_data is exist [11:15:52]produce_requested_data [11:15:52]requested_item fm.sn is exist - process it [11:15:52]wFMCommunicate request_size=4 [11:15:52]MH_SAM_APDU [11:15:52]CAPDU: 80 11 00 00 [11:15:52]Write to MH i2c: E2 08 00 83 05 80 11 00 00 00 00 00 00 02 [11:15:52]Write i2c OK [11:15:52]MH_I2C_Read... [11:15:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:52]Read from MH i2c: E2 [11:15:52]MH_I2C_Read... [11:15:52]Read from MH i2c: E2 17 00 [11:15:52]MH_I2C_Read... [11:15:52]Read from MH i2c: E2 17 00 83 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 59 [11:15:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:15:52]wFMCommunicate OK [11:15:52]requested_item fd.num is exist - process it [11:15:52]SAM_PROTO_GetFieldsCounters [11:15:52]wFMCommunicate request_size=4 [11:15:52]MH_SAM_APDU [11:15:52]CAPDU: 80 13 00 00 [11:15:52]Write to MH i2c: E2 08 00 84 05 80 13 00 00 00 00 00 00 05 [11:15:52]Write i2c OK [11:15:52]MH_I2C_Read... [11:15:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:15:52]Read from MH i2c: E2 [11:15:52]MH_I2C_Read... [11:15:52]Read from MH i2c: E2 62 00 [11:15:52]MH_I2C_Read... [11:15:52]Read from MH i2c: E2 62 00 84 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 21 78 03 00 0E 04 04 00 15 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 54 [11:15: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 21 78 03 00 0E 04 04 00 15 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 [11:15:52]wFMCommunicate OK [11:15:52]SAM_PROTO_GetFieldsCounters done [11:15:52]requested_item shift.num is exist - process it [11:15:52]requested_item shift.opened is exist - process it [11:15:52]req_shift_opened [11:15:52]FM_GetShiftState [11:15:52]SAM_PROTO_GetShiftState [11:15:52]wFMCommunicate request_size=4 [11:15:52]MH_SAM_APDU [11:15:52]CAPDU: 80 13 01 00 [11:15:52]Write to MH i2c: E2 08 00 85 05 80 13 01 00 00 00 00 00 07 [11:15:52]Write i2c OK [11:15:52]MH_I2C_Read... [11:15:52]OFD Sender: No OFD packet to send [11:15:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:52]Read from MH i2c: E2 [11:15:52]MH_I2C_Read... [11:15:52]Read from MH i2c: E2 0E 00 [11:15:52]MH_I2C_Read... [11:15:52]Read from MH i2c: E2 0E 00 85 05 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 21 [11:15:52]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:15:52]wFMCommunicate OK [11:15:52]SAM_PROTO_GetShiftState done [11:15:52]FM_GetShiftState done [11:15:52]req_shift_opened done [11:15:52]requested_item shift.open_date is exist - process it [11:15:52]req_shift_open_date [11:15:52]req_shift_open_date done [11:15:52]produce_requested_data done [11:15:52]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227361,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [11:15:52]process_action_free close_receipt [11:15:52]json_value_free [11:15:52]json_value_free done [11:15:52]process_json_proto returns [11:15:52]Send response to host [11:15:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227361,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [11:15:52]free response buf [11:15:52]execute_script done [11:15:52]execute_script returns [11:15:52]free content buf [11:15:52]Sock 8.Close socket [11:15:52]Sock 8.Thread stoped [11:15:57]OFD Sender: No OFD packet to send [11:16:02]OFD Sender: No OFD packet to send [11:16:07]OFD Sender: No OFD packet to send [11:16:08]accept exits with 9 [11:16:08]New connection [11:16:08]New thread 3066543460 created [11:16:08]Thread 3066686820 joined [11:16:08]Waiting for new connection... [11:16:08] Sock 9.Parse request [11:16:08]Sock 9.Check first char [11:16:08]Sock 9.First char is OK [11:16:08]request: POST /json_proto HTTP/1.0 [11:16:08]Method: POST [11:16:08]URL: /json_proto [11:16:08]Method is POST - this is cgi request [11:16:08]url: /json_proto [11:16:08]query_string will be loaded in cgi processing [11:16:08]execute_cgi json_proto POST (null) [11:16:08]execute_cgi path=json_proto method=POST [11:16:08]POST find Content-Length [11:16:08]Host: 172.17.44.195:8080 [11:16:08]Content-Length: 683 [11:16:08]Content-Type: application/json [11:16:08] [11:16:08]POST finish read [11:16:08]Found Content-Length = 683 [11:16:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962876", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 20.930, "sum" : 1400.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:08]execute_script... [11:16: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)1962876", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 20.930, "sum" : 1400.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:08]POST & json_proto [11:16:08]process_json_proto [11:16:08]json parsed OK: [11:16:08]protocol is kg_v1.0 [11:16:08]action value=close_receipt [11:16:08]process_action close_receipt [11:16:08]cmd_close_receipt [11:16:08]MH_GetDate [11:16:08]Write to MH i2c: F0 00 00 86 05 7A [11:16:08]Write i2c OK [11:16:08]MH_I2C_Read... [11:16:08]Read from MH i2c: F0 [11:16:08]MH_I2C_Read... [11:16:08]Read from MH i2c: F0 09 00 [11:16:08]MH_I2C_Read... [11:16:08]Read from MH i2c: F0 09 00 86 05 00 79 E6 14 67 82 C9 CF 66 DD [11:16:08]GetLastDocTimeStamp 1729422950 [11:16:08]current date 1729422969 [11:16:08]FM_GetShiftState [11:16:08]SAM_PROTO_GetShiftState [11:16:08]wFMCommunicate request_size=4 [11:16:08]MH_SAM_APDU [11:16:08]CAPDU: 80 13 01 00 [11:16:08]Write to MH i2c: E2 08 00 87 05 80 13 01 00 00 00 00 00 09 [11:16:08]Write i2c OK [11:16:08]MH_I2C_Read... [11:16:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:08]Read from MH i2c: E2 [11:16:08]MH_I2C_Read... [11:16:08]Read from MH i2c: E2 0E 00 [11:16:08]MH_I2C_Read... [11:16:08]Read from MH i2c: E2 0E 00 87 05 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 23 [11:16:08]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:16:08]wFMCommunicate OK [11:16:08]SAM_PROTO_GetShiftState done [11:16:08]FM_GetShiftState done [11:16:08]opened in 1729383750 [11:16:08]opened+sec_in_day 1729470150 [11:16:08]quantity*price = 140021 [11:16:08]sum+1 = 140023 [11:16:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.70 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 210 20.10.2024 11:16 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227362 ФПД: 240839431474698 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111609&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227362&fm=240839431474698&tin=02508201610067®Number=0000000000091685&sum=140000 [11:16:09]StoreToDocumentArchive [11:16:09]shift 533 fd 227362 [11:16:09]save to /storage/0533/doc_00227362 [11:16:09]save last doc name /storage/0533/doc_00227362 to /storage/kkm_last_doc_name [11:16:09]save OK [11:16:09]Clear old archive folders... [11:16:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:16:09]tlvbuf is 01852190 [11:16:09]SAM_PROTO_ClearQueue [11:16:09]wFMCommunicate request_size=4 [11:16:09]MH_SAM_APDU [11:16:09]CAPDU: 80 09 00 00 [11:16:09]Write to MH i2c: E2 08 00 94 05 80 09 00 00 00 00 00 00 0B [11:16:09]Write i2c OK [11:16:09]MH_I2C_Read... [11:16:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:16:09]Read from MH i2c: E2 [11:16:09]MH_I2C_Read... [11:16:09]Read from MH i2c: E2 03 00 [11:16:09]MH_I2C_Read... [11:16:09]Read from MH i2c: E2 03 00 94 05 00 90 00 0D [11:16:09]RAPDU: 90 00 [11:16:09]wFMCommunicate OK [11:16:09]SAM_PROTO_ClearQueue done [11:16:09]KKMCreateOFDPacket [11:16:09]OFDProtocolAddRootSTLVToBuf [11:16:09]FM_MakeSignedData [11:16:09]FM_MakeSignedData [11:16:09]SAM_PROTO_SignData [11:16:09]wFMCommunicate request_size=4 [11:16:09]MH_SAM_APDU [11:16:09]CAPDU: 80 0D 01 02 [11:16:09]Write to MH i2c: E2 08 00 95 05 80 0D 01 02 00 00 00 00 13 [11:16:09]Write i2c OK [11:16:09]MH_I2C_Read... [11:16:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:16:09]Read from MH i2c: E2 [11:16:09]MH_I2C_Read... [11:16:09]Read from MH i2c: E2 03 00 [11:16:09]MH_I2C_Read... [11:16:09]Read from MH i2c: E2 03 00 95 05 00 90 00 0E [11:16:09]RAPDU: 90 00 [11:16:09]wFMCommunicate OK [11:16:09]wFMCommunicate request_size=255 [11:16:09]MH_SAM_APDU [11:16:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 79 E6 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 22 78 03 00 35 04 06 00 DB [11:16:09]Write to MH i2c: E2 02 01 96 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 79 E6 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 22 78 03 00 35 04 06 00 DB 00 00 FC [11:16:09]Write i2c OK [11:16:09]MH_I2C_Read... [11:16:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:09]Read from MH i2c: E2 [11:16:09]MH_I2C_Read... [11:16:09]Read from MH i2c: E2 03 00 [11:16:09]MH_I2C_Read... [11:16:09]Read from MH i2c: E2 03 00 96 05 00 90 00 0F [11:16:09]RAPDU: 90 00 [11:16:09]wFMCommunicate OK [11:16:09]wFMCommunicate request_size=10 [11:16:09]MH_SAM_APDU [11:16:09]CAPDU: 80 0D 02 02 05 0A CC C2 CE 0A [11:16:09]Write to MH i2c: E2 0D 00 97 05 80 0D 02 02 05 00 0A CC C2 CE 0A 00 00 90 [11:16:09]Write i2c OK [11:16:09]MH_I2C_Read... [11:16:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:09]Read from MH i2c: E2 [11:16:09]MH_I2C_Read... [11:16:09]Read from MH i2c: E2 03 00 [11:16:09]MH_I2C_Read... [11:16:09]Read from MH i2c: E2 03 00 97 05 00 90 00 10 [11:16:09]RAPDU: 90 00 [11:16:09]wFMCommunicate OK [11:16:09]wFMCommunicate request_size=4 [11:16:09]MH_SAM_APDU [11:16:09]CAPDU: 80 0D 03 02 [11:16:09]Write to MH i2c: E2 08 00 98 05 80 0D 03 02 00 00 00 00 18 [11:16:09]Write i2c OK [11:16:09]MH_I2C_Read... [11:16:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:16:10]Read from MH i2c: E2 [11:16:10]MH_I2C_Read... [11:16:10]Read from MH i2c: E2 0B 00 [11:16:10]MH_I2C_Read... [11:16:10]Read from MH i2c: E2 0B 00 98 05 00 A1 43 C0 8F CD 7F CB B6 90 00 19 [11:16:10]RAPDU: A1 43 C0 8F CD 7F CB B6 90 00 [11:16:10]wFMCommunicate OK [11:16:10]SAM_PROTO_SignData done [11:16:10]FM_MakeSignedData done [11:16:10]CreateOFDProtocolMessage [11:16:10]wFMCommunicate request_size=4 [11:16:10]MH_SAM_APDU [11:16:10]CAPDU: 80 11 00 00 [11:16:10]Write to MH i2c: E2 08 00 99 05 80 11 00 00 00 00 00 00 18 [11:16:10]Write i2c OK [11:16:10]MH_I2C_Read... [11:16:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:10]Read from MH i2c: E2 [11:16:10]MH_I2C_Read... [11:16:10]Read from MH i2c: E2 17 00 [11:16:10]MH_I2C_Read... [11:16:10]Read from MH i2c: E2 17 00 99 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 6F [11:16:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:16:10]wFMCommunicate OK [11:16:10]CreateOFDProtocolMessage done [11:16:10]OFDSenderStorePacket 227362 [11:16:10]StoreOFDPacket docnum=227362 [11:16:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 6D B9 07 01 0F EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 79 E6 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 22 78 03 00 35 04 06 00 DB 0A CC C2 CE 0A A1 43 C0 8F CD 7F CB B6 [11:16:10]CheckFolder [11:16:10]dirname=/storage/ofd_packets [11:16:10]CheckFolder done [11:16:10]ProducePacketName [11:16:10]name=ofd_packets/00227362 [11:16:10]NVStorageSaveData ofd_packets/00227362 [11:16:10]File name is /storage/ofd_packets/00227362 [11:16:10]Write 301 bytes [11:16:10]NVStorageSaveData done [11:16:10]OFDSenderStorePacket done [11:16:10]KKMCreateOFDPacket done [11:16:10]NVStorageSaveData kkm_last_timestamp [11:16:10]File name is /storage/kkm_last_timestamp [11:16:10]Write 4 bytes [11:16:10]NVStorageSaveData done [11:16:10]OFD Sender: Processing packet 227362 [packets to send 38, broken 37] [11:16:10]ProducePacketName [11:16:10]name=ofd_packets/00227362 [11:16:10]OFD Sender: To server: pG, [11:16:10]CommunicateWithHost lk.salyk.kg:30040 [11:16:10]ConnectInit lk.salyk.kg [11:16:10]ExternCall_PrintAddStr [11:16:10]wPrintStart [11:16:10]Write to MH i2c: 01 00 00 9A 05 9F [11:16:10]Write i2c OK [11:16:10]MH_I2C_Read... [11:16:10]Read from MH i2c: 01 [11:16:10]MH_I2C_Read... [11:16:10]Read from MH i2c: 01 07 00 [11:16:10]MH_I2C_Read... [11:16:10]Read from MH i2c: 01 07 00 9A 05 00 00 00 00 00 FF 0F B4 [11:16:10]RasterBufferAndPrint [11:16:10]line Счет N : (1)1962876 [11:16:10]line ИНН: 02508201610067 [11:16:10]line Контрольно-Кассовый Чек [11:16:10]line ПРОДАЖА [11:16:10]line ТРК (МРК, ГНК) : 63 [11:16:10]line Товар: 2710124130 [11:16:10]line Аи-92-К-5 [11:16:10]line 20.930 * 66.90 [11:16:10]line = 1400.22 [11:16:10]line НДС 12% НСП 1% [11:16:10]line > о реализуемом товаре [11:16:10]line ОКРУГЛЕНИЕ: -0.22 [11:16:10]line ИТОГО: 1400.00 [11:16:10]line Внесено: 1400.00 [11:16:10]line СДАЧА: 0.00 [11:16:10]line НСП 1% : 12.39 [11:16:10]line НДС 12% : 148.70 [11:16:10]line Наличными: 1400.00 [11:16:10]line Безнал.: 0.00 [11:16:10]line Место: АЗС № 133 "Партнер Нефть" [11:16:10]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:16:10]line СНО: Общий режим [11:16:10]line Чек 210 20.10.2024 11:16 [11:16:10]line Смена: 533 ФФД: 1.0 [11:16:10]line ЗНМ: 0300000091 [11:16:10]line РНМ: 0000000000091685 [11:16:10]line Версия ККМ: 001 [11:16:10]line ФМ: 0000000000871839 [11:16:10]line ФД: 227362 [11:16:10]line ФПД: 240839431474698 [11:16:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111609&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227362&fm=240839431474698&tin=02508201610067®Number=0000000000091685&sum=140000 [11:16:10]written 0, free lines is 4095 [11:16:10]Write to MH i2c: 01 00 00 C4 05 C9 [11:16:10]Write i2c OK [11:16:10]MH_I2C_Read... [11:16:10]Read from MH i2c: 01 [11:16:10]MH_I2C_Read... [11:16:10]Read from MH i2c: 01 07 00 [11:16:10]MH_I2C_Read... [11:16:10]Read from MH i2c: 01 07 00 C4 05 00 00 00 00 00 04 0D E1 [11:16:10]RasterBufferAndPrint [11:16:10]line [11:16:10]line [11:16:10]line [11:16:10]line [11:16:10]line [11:16:10]written 0, free lines is 3335 [11:16:10]process_action close_receipt done [11:16:10]requested_data is exist [11:16:10]produce_requested_data [11:16:10]requested_item fm.sn is exist - process it [11:16:10]wFMCommunicate request_size=4 [11:16:10]MH_SAM_APDU [11:16:10]CAPDU: 80 11 00 00 [11:16:10]Write to MH i2c: E2 08 00 CB 05 80 11 00 00 00 00 00 00 4A [11:16:10]Write i2c OK [11:16:10]MH_I2C_Read... [11:16:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:10]Read from MH i2c: E2 [11:16:10]MH_I2C_Read... [11:16:10]Read from MH i2c: E2 17 00 [11:16:10]MH_I2C_Read... [11:16:10]Read from MH i2c: E2 17 00 CB 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A1 [11:16:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:16:10]wFMCommunicate OK [11:16:10]requested_item fd.num is exist - process it [11:16:10]SAM_PROTO_GetFieldsCounters [11:16:10]wFMCommunicate request_size=4 [11:16:10]MH_SAM_APDU [11:16:10]CAPDU: 80 13 00 00 [11:16:10]Write to MH i2c: E2 08 00 CC 05 80 13 00 00 00 00 00 00 4D [11:16:10]Write i2c OK [11:16:10]MH_I2C_Read... [11:16:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:16:11]Read from MH i2c: E2 [11:16:11]MH_I2C_Read... [11:16:11]Read from MH i2c: E2 62 00 [11:16:11]MH_I2C_Read... [11:16:11]Read from MH i2c: E2 62 00 CC 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 22 78 03 00 0E 04 04 00 15 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 A0 [11:16:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 22 78 03 00 0E 04 04 00 15 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 [11:16:11]wFMCommunicate OK [11:16:11]SAM_PROTO_GetFieldsCounters done [11:16:11]requested_item shift.num is exist - process it [11:16:11]requested_item shift.opened is exist - process it [11:16:11]req_shift_opened [11:16:11]FM_GetShiftState [11:16:11]SAM_PROTO_GetShiftState [11:16:11]wFMCommunicate request_size=4 [11:16:11]MH_SAM_APDU [11:16:11]CAPDU: 80 13 01 00 [11:16:11]Write to MH i2c: E2 08 00 CD 05 80 13 01 00 00 00 00 00 4F [11:16:11]Write i2c OK [11:16:11]MH_I2C_Read... [11:16:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:11]Read from MH i2c: E2 [11:16:11]MH_I2C_Read... [11:16:11]Read from MH i2c: E2 0E 00 [11:16:11]MH_I2C_Read... [11:16:11]Read from MH i2c: E2 0E 00 CD 05 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 69 [11:16:11]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:16:11]wFMCommunicate OK [11:16:11]SAM_PROTO_GetShiftState done [11:16:11]FM_GetShiftState done [11:16:11]req_shift_opened done [11:16:11]requested_item shift.open_date is exist - process it [11:16:11]req_shift_open_date [11:16:11]req_shift_open_date done [11:16:11]produce_requested_data done [11:16:11]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227362,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [11:16:11]process_action_free close_receipt [11:16:11]json_value_free [11:16:11]json_value_free done [11:16:11]process_json_proto returns [11:16:11]Send response to host [11:16:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227362,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [11:16:11]free response buf [11:16:11]execute_script done [11:16:11]execute_script returns [11:16:11]free content buf [11:16:11]Sock 9.Close socket [11:16:11]Sock 9.Thread stoped [11:16:49]accept exits with 8 [11:16:49]New connection [11:16:49]New thread 3066686820 created [11:16:49]Thread 3066543460 joined [11:16:49]Waiting for new connection... [11:16:49] Sock 8.Parse request [11:16:49]Sock 8.Check first char [11:16:49]Sock 8.First char is OK [11:16:49]request: POST /json_proto HTTP/1.0 [11:16:49]Method: POST [11:16:49]URL: /json_proto [11:16:49]Method is POST - this is cgi request [11:16:49]url: /json_proto [11:16:49]query_string will be loaded in cgi processing [11:16:49]execute_cgi json_proto POST (null) [11:16:49]execute_cgi path=json_proto method=POST [11:16:49]POST find Content-Length [11:16:49]Host: 172.17.44.195:8080 [11:16:49]Content-Length: 678 [11:16:49]Content-Type: application/json [11:16:49] [11:16:49]POST finish read [11:16:49]Found Content-Length = 678 [11:16:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962879", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:49]execute_script... [11:16: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)1962879", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:49]POST & json_proto [11:16:49]process_json_proto [11:16:49]json parsed OK: [11:16:49]protocol is kg_v1.0 [11:16:49]action value=close_receipt [11:16:49]process_action close_receipt [11:16:49]cmd_close_receipt [11:16:49]MH_GetDate [11:16:49]Write to MH i2c: F0 00 00 CE 05 C2 [11:16:49]Write i2c OK [11:16:49]MH_I2C_Read... [11:16:49]Read from MH i2c: F0 [11:16:49]MH_I2C_Read... [11:16:49]Read from MH i2c: F0 09 00 [11:16:49]MH_I2C_Read... [11:16:49]Read from MH i2c: F0 09 00 CE 05 00 A1 E6 14 67 82 C9 CF 66 4D [11:16:49]GetLastDocTimeStamp 1729422969 [11:16:49]current date 1729423009 [11:16:49]FM_GetShiftState [11:16:49]SAM_PROTO_GetShiftState [11:16:49]wFMCommunicate request_size=4 [11:16:49]MH_SAM_APDU [11:16:49]CAPDU: 80 13 01 00 [11:16:49]Write to MH i2c: E2 08 00 CF 05 80 13 01 00 00 00 00 00 51 [11:16:49]Write i2c OK [11:16:49]MH_I2C_Read... [11:16:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:49]Read from MH i2c: E2 [11:16:49]MH_I2C_Read... [11:16:49]Read from MH i2c: E2 0E 00 [11:16:49]MH_I2C_Read... [11:16:49]Read from MH i2c: E2 0E 00 CF 05 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 6B [11:16:49]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:16:49]wFMCommunicate OK [11:16:49]SAM_PROTO_GetShiftState done [11:16:49]FM_GetShiftState done [11:16:49]opened in 1729383750 [11:16:49]opened+sec_in_day 1729470150 [11:16:49]quantity*price = 50041 [11:16:49]sum+1 = 50042 [11:16:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 211 20.10.2024 11:16 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227363 ФПД: 21037897154801 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111649&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227363&fm=21037897154801&tin=02508201610067®Number=0000000000091685&sum=50000 [11:16:50]StoreToDocumentArchive [11:16:50]shift 533 fd 227363 [11:16:50]save to /storage/0533/doc_00227363 [11:16:50]save last doc name /storage/0533/doc_00227363 to /storage/kkm_last_doc_name [11:16:50]save OK [11:16:50]Clear old archive folders... [11:16:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:16:50]tlvbuf is 01853BF0 [11:16:50]SAM_PROTO_ClearQueue [11:16:50]wFMCommunicate request_size=4 [11:16:50]MH_SAM_APDU [11:16:50]CAPDU: 80 09 00 00 [11:16:50]Write to MH i2c: E2 08 00 DC 05 80 09 00 00 00 00 00 00 53 [11:16:50]Write i2c OK [11:16:50]MH_I2C_Read... [11:16:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:16:50]Read from MH i2c: E2 [11:16:50]MH_I2C_Read... [11:16:50]Read from MH i2c: E2 03 00 [11:16:50]MH_I2C_Read... [11:16:50]Read from MH i2c: E2 03 00 DC 05 00 90 00 55 [11:16:50]RAPDU: 90 00 [11:16:50]wFMCommunicate OK [11:16:50]SAM_PROTO_ClearQueue done [11:16:50]KKMCreateOFDPacket [11:16:50]OFDProtocolAddRootSTLVToBuf [11:16:50]FM_MakeSignedData [11:16:50]FM_MakeSignedData [11:16:50]SAM_PROTO_SignData [11:16:50]wFMCommunicate request_size=4 [11:16:50]MH_SAM_APDU [11:16:50]CAPDU: 80 0D 01 02 [11:16:50]Write to MH i2c: E2 08 00 DD 05 80 0D 01 02 00 00 00 00 5B [11:16:50]Write i2c OK [11:16:50]MH_I2C_Read... [11:16:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:16:50]Read from MH i2c: E2 [11:16:50]MH_I2C_Read... [11:16:50]Read from MH i2c: E2 03 00 [11:16:50]MH_I2C_Read... [11:16:50]Read from MH i2c: E2 03 00 DD 05 00 90 00 56 [11:16:50]RAPDU: 90 00 [11:16:50]wFMCommunicate OK [11:16:50]wFMCommunicate request_size=255 [11:16:50]MH_SAM_APDU [11:16:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 A1 E6 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 23 78 03 00 35 04 06 00 13 [11:16:50]Write to MH i2c: E2 02 01 DE 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 A1 E6 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 23 78 03 00 35 04 06 00 13 00 00 8F [11:16:50]Write i2c OK [11:16:50]MH_I2C_Read... [11:16:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:50]Read from MH i2c: E2 [11:16:50]MH_I2C_Read... [11:16:50]Read from MH i2c: E2 03 00 [11:16:50]MH_I2C_Read... [11:16:50]Read from MH i2c: E2 03 00 DE 05 00 90 00 57 [11:16:50]RAPDU: 90 00 [11:16:50]wFMCommunicate OK [11:16:50]wFMCommunicate request_size=10 [11:16:50]MH_SAM_APDU [11:16:50]CAPDU: 80 0D 02 02 05 22 44 63 00 F1 [11:16:50]Write to MH i2c: E2 0D 00 DF 05 80 0D 02 02 05 00 22 44 63 00 F1 00 00 22 [11:16:50]Write i2c OK [11:16:50]MH_I2C_Read... [11:16:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:50]Read from MH i2c: E2 [11:16:50]MH_I2C_Read... [11:16:50]Read from MH i2c: E2 03 00 [11:16:50]MH_I2C_Read... [11:16:50]Read from MH i2c: E2 03 00 DF 05 00 90 00 58 [11:16:50]RAPDU: 90 00 [11:16:50]wFMCommunicate OK [11:16:50]wFMCommunicate request_size=4 [11:16:50]MH_SAM_APDU [11:16:50]CAPDU: 80 0D 03 02 [11:16:50]Write to MH i2c: E2 08 00 E0 05 80 0D 03 02 00 00 00 00 60 [11:16:50]Write i2c OK [11:16:50]MH_I2C_Read... [11:16:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:16:50]Read from MH i2c: E2 [11:16:50]MH_I2C_Read... [11:16:50]Read from MH i2c: E2 0B 00 [11:16:50]MH_I2C_Read... [11:16:50]Read from MH i2c: E2 0B 00 E0 05 00 5F 18 29 92 D3 A0 E2 8D 90 00 75 [11:16:50]RAPDU: 5F 18 29 92 D3 A0 E2 8D 90 00 [11:16:50]wFMCommunicate OK [11:16:50]SAM_PROTO_SignData done [11:16:50]FM_MakeSignedData done [11:16:50]CreateOFDProtocolMessage [11:16:50]wFMCommunicate request_size=4 [11:16:50]MH_SAM_APDU [11:16:50]CAPDU: 80 11 00 00 [11:16:50]Write to MH i2c: E2 08 00 E1 05 80 11 00 00 00 00 00 00 60 [11:16:50]Write i2c OK [11:16:50]MH_I2C_Read... [11:16:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:50]Read from MH i2c: E2 [11:16:50]MH_I2C_Read... [11:16:50]Read from MH i2c: E2 17 00 [11:16:50]MH_I2C_Read... [11:16:50]Read from MH i2c: E2 17 00 E1 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B7 [11:16:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:16:50]wFMCommunicate OK [11:16:50]CreateOFDProtocolMessage done [11:16:50]OFDSenderStorePacket 227363 [11:16:50]StoreOFDPacket docnum=227363 [11:16:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 23 8C 07 01 3D E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 A1 E6 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 23 78 03 00 35 04 06 00 13 22 44 63 00 F1 5F 18 29 92 D3 A0 E2 8D [11:16:50]CheckFolder [11:16:50]dirname=/storage/ofd_packets [11:16:50]CheckFolder done [11:16:50]ProducePacketName [11:16:50]name=ofd_packets/00227363 [11:16:50]NVStorageSaveData ofd_packets/00227363 [11:16:50]File name is /storage/ofd_packets/00227363 [11:16:50]Write 301 bytes [11:16:50]NVStorageSaveData done [11:16:50]OFDSenderStorePacket done [11:16:50]KKMCreateOFDPacket done [11:16:50]NVStorageSaveData kkm_last_timestamp [11:16:50]File name is /storage/kkm_last_timestamp [11:16:50]Write 4 bytes [11:16:50]NVStorageSaveData done [11:16:50]ExternCall_PrintAddStr [11:16:50]wPrintStart [11:16:50]Write to MH i2c: 01 00 00 E2 05 E7 [11:16:50]Write i2c OK [11:16:50]MH_I2C_Read... [11:16:50]Read from MH i2c: 01 [11:16:50]MH_I2C_Read... [11:16:50]Read from MH i2c: 01 07 00 [11:16:50]MH_I2C_Read... [11:16:50]Read from MH i2c: 01 07 00 E2 05 00 00 00 00 00 FF 0F FC [11:16:50]RasterBufferAndPrint [11:16:50]line Счет N : (1)1962879 [11:16:50]line ИНН: 02508201610067 [11:16:50]line Контрольно-Кассовый Чек [11:16:50]line ПРОДАЖА [11:16:50]line ТРК (МРК, ГНК) : 33 [11:16:50]line Товар: 2710124130 [11:16:50]line Аи-92-К-5 [11:16:50]line 7.480 * 66.90 [11:16:50]line = 500.41 [11:16:50]line НДС 12% НСП 1% [11:16:50]line > о реализуемом товаре [11:16:50]line ОКРУГЛЕНИЕ: -0.41 [11:16:50]line ИТОГО: 500.00 [11:16:50]line Внесено: 500.00 [11:16:50]line СДАЧА: 0.00 [11:16:50]line НСП 1% : 4.43 [11:16:50]line НДС 12% : 53.14 [11:16:50]line Наличными: 500.00 [11:16:50]line Безнал.: 0.00 [11:16:50]line Место: АЗС № 133 "Партнер Нефть" [11:16:50]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:16:50]line СНО: Общий режим [11:16:50]line Чек 211 20.10.2024 11:16 [11:16:50]line Смена: 533 ФФД: 1.0 [11:16:50]line ЗНМ: 0300000091 [11:16:50]line РНМ: 0000000000091685 [11:16:50]line Версия ККМ: 001 [11:16:50]line ФМ: 0000000000871839 [11:16:50]line ФД: 227363 [11:16:50]line ФПД: 21037897154801 [11:16:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111649&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227363&fm=21037897154801&tin=02508201610067®Number=0000000000091685&sum=50000 [11:16:51]written 0, free lines is 4095 [11:16:51]Write to MH i2c: 01 00 00 0C 06 12 [11:16:51]Write i2c OK [11:16:51]MH_I2C_Read... [11:16:51]Read from MH i2c: 01 [11:16:51]MH_I2C_Read... [11:16:51]Read from MH i2c: 01 07 00 [11:16:51]MH_I2C_Read... [11:16:51]Read from MH i2c: 01 07 00 0C 06 00 00 00 00 00 F9 0C 1E [11:16:51]RasterBufferAndPrint [11:16:51]line [11:16:51]line [11:16:51]line [11:16:51]line [11:16:51]line [11:16:51]written 0, free lines is 3327 [11:16:51]process_action close_receipt done [11:16:51]requested_data is exist [11:16:51]produce_requested_data [11:16:51]requested_item fm.sn is exist - process it [11:16:51]wFMCommunicate request_size=4 [11:16:51]MH_SAM_APDU [11:16:51]CAPDU: 80 11 00 00 [11:16:51]Write to MH i2c: E2 08 00 13 06 80 11 00 00 00 00 00 00 93 [11:16:51]Write i2c OK [11:16:51]MH_I2C_Read... [11:16:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:51]Read from MH i2c: E2 [11:16:51]MH_I2C_Read... [11:16:51]Read from MH i2c: E2 17 00 [11:16:51]MH_I2C_Read... [11:16:51]Read from MH i2c: E2 17 00 13 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 EA [11:16:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:16:51]wFMCommunicate OK [11:16:51]requested_item fd.num is exist - process it [11:16:51]SAM_PROTO_GetFieldsCounters [11:16:51]wFMCommunicate request_size=4 [11:16:51]MH_SAM_APDU [11:16:51]CAPDU: 80 13 00 00 [11:16:51]Write to MH i2c: E2 08 00 14 06 80 13 00 00 00 00 00 00 96 [11:16:51]Write i2c OK [11:16:51]MH_I2C_Read... [11:16:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:16:51]Read from MH i2c: E2 [11:16:51]MH_I2C_Read... [11:16:51]Read from MH i2c: E2 62 00 [11:16:51]MH_I2C_Read... [11:16:51]Read from MH i2c: E2 62 00 14 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 23 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [11:16: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 23 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:16:51]wFMCommunicate OK [11:16:51]SAM_PROTO_GetFieldsCounters done [11:16:51]requested_item shift.num is exist - process it [11:16:51]requested_item shift.opened is exist - process it [11:16:51]req_shift_opened [11:16:51]FM_GetShiftState [11:16:51]SAM_PROTO_GetShiftState [11:16:51]wFMCommunicate request_size=4 [11:16:51]MH_SAM_APDU [11:16:51]CAPDU: 80 13 01 00 [11:16:51]Write to MH i2c: E2 08 00 15 06 80 13 01 00 00 00 00 00 98 [11:16:51]Write i2c OK [11:16:51]MH_I2C_Read... [11:16:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:51]Read from MH i2c: E2 [11:16:51]MH_I2C_Read... [11:16:51]Read from MH i2c: E2 0E 00 [11:16:51]MH_I2C_Read... [11:16:51]Read from MH i2c: E2 0E 00 15 06 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 B2 [11:16:51]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:16:51]wFMCommunicate OK [11:16:51]SAM_PROTO_GetShiftState done [11:16:51]FM_GetShiftState done [11:16:51]req_shift_opened done [11:16:51]requested_item shift.open_date is exist - process it [11:16:51]req_shift_open_date [11:16:51]req_shift_open_date done [11:16:51]produce_requested_data done [11:16:51]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227363,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [11:16:51]process_action_free close_receipt [11:16:51]json_value_free [11:16:51]json_value_free done [11:16:51]process_json_proto returns [11:16:51]Send response to host [11:16:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227363,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [11:16:51]free response buf [11:16:51]execute_script done [11:16:51]execute_script returns [11:16:51]free content buf [11:16:51]Sock 8.Close socket [11:16:51]Sock 8.Thread stoped [11:16:53]accept exits with 9 [11:16:53]New connection [11:16:53]New thread 3066543460 created [11:16:53]Thread 3066686820 joined [11:16:53]Waiting for new connection... [11:16:53] Sock 9.Parse request [11:16:53]Sock 9.Check first char [11:16:53]Sock 9.First char is OK [11:16:53]request: POST /json_proto HTTP/1.0 [11:16:53]Method: POST [11:16:53]URL: /json_proto [11:16:53]Method is POST - this is cgi request [11:16:53]url: /json_proto [11:16:53]query_string will be loaded in cgi processing [11:16:53]execute_cgi json_proto POST (null) [11:16:53]execute_cgi path=json_proto method=POST [11:16:53]POST find Content-Length [11:16:53]Host: 172.17.44.195:8080 [11:16:53]Content-Length: 680 [11:16:53]Content-Type: application/json [11:16:53] [11:16:53]POST finish read [11:16:53]Found Content-Length = 680 [11:16:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962878", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:53]execute_script... [11:16: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)1962878", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:53]POST & json_proto [11:16:53]process_json_proto [11:16:53]json parsed OK: [11:16:53]protocol is kg_v1.0 [11:16:53]action value=close_receipt [11:16:53]process_action close_receipt [11:16:53]cmd_close_receipt [11:16:53]MH_GetDate [11:16:53]Write to MH i2c: F0 00 00 16 06 0B [11:16:53]Write i2c OK [11:16:53]MH_I2C_Read... [11:16:53]Read from MH i2c: F0 [11:16:53]MH_I2C_Read... [11:16:53]Read from MH i2c: F0 09 00 [11:16:53]MH_I2C_Read... [11:16:53]Read from MH i2c: F0 09 00 16 06 00 A6 E6 14 67 82 C9 CF 66 9B [11:16:53]GetLastDocTimeStamp 1729423009 [11:16:53]current date 1729423014 [11:16:53]FM_GetShiftState [11:16:53]SAM_PROTO_GetShiftState [11:16:53]wFMCommunicate request_size=4 [11:16:53]MH_SAM_APDU [11:16:53]CAPDU: 80 13 01 00 [11:16:53]Write to MH i2c: E2 08 00 17 06 80 13 01 00 00 00 00 00 9A [11:16:53]Write i2c OK [11:16:53]MH_I2C_Read... [11:16:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:53]Read from MH i2c: E2 [11:16:53]MH_I2C_Read... [11:16:53]Read from MH i2c: E2 0E 00 [11:16:53]MH_I2C_Read... [11:16:53]Read from MH i2c: E2 0E 00 17 06 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 B4 [11:16:53]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:16:53]wFMCommunicate OK [11:16:53]SAM_PROTO_GetShiftState done [11:16:53]FM_GetShiftState done [11:16:53]opened in 1729383750 [11:16:53]opened+sec_in_day 1729470150 [11:16:53]quantity*price = 100050 [11:16:53]sum+1 = 100052 [11:16:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 212 20.10.2024 11:16 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227364 ФПД: 180672459593214 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111654&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227364&fm=180672459593214&tin=02508201610067®Number=0000000000091685&sum=100000 [11:16:55]StoreToDocumentArchive [11:16:55]shift 533 fd 227364 [11:16:55]save to /storage/0533/doc_00227364 [11:16:55]save last doc name /storage/0533/doc_00227364 to /storage/kkm_last_doc_name [11:16:55]save OK [11:16:55]Clear old archive folders... [11:16:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:16:55]tlvbuf is 0188C580 [11:16:55]SAM_PROTO_ClearQueue [11:16:55]wFMCommunicate request_size=4 [11:16:55]MH_SAM_APDU [11:16:55]CAPDU: 80 09 00 00 [11:16:55]Write to MH i2c: E2 08 00 24 06 80 09 00 00 00 00 00 00 9C [11:16:55]Write i2c OK [11:16:55]MH_I2C_Read... [11:16:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:16:55]Read from MH i2c: E2 [11:16:55]MH_I2C_Read... [11:16:55]Read from MH i2c: E2 03 00 [11:16:55]MH_I2C_Read... [11:16:55]Read from MH i2c: E2 03 00 24 06 00 90 00 9E [11:16:55]RAPDU: 90 00 [11:16:55]wFMCommunicate OK [11:16:55]SAM_PROTO_ClearQueue done [11:16:55]KKMCreateOFDPacket [11:16:55]OFDProtocolAddRootSTLVToBuf [11:16:55]FM_MakeSignedData [11:16:55]FM_MakeSignedData [11:16:55]SAM_PROTO_SignData [11:16:55]wFMCommunicate request_size=4 [11:16:55]MH_SAM_APDU [11:16:55]CAPDU: 80 0D 01 02 [11:16:55]Write to MH i2c: E2 08 00 25 06 80 0D 01 02 00 00 00 00 A4 [11:16:55]Write i2c OK [11:16:55]MH_I2C_Read... [11:16:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:16:55]Read from MH i2c: E2 [11:16:55]MH_I2C_Read... [11:16:55]Read from MH i2c: E2 03 00 [11:16:55]MH_I2C_Read... [11:16:55]Read from MH i2c: E2 03 00 25 06 00 90 00 9F [11:16:55]RAPDU: 90 00 [11:16:55]wFMCommunicate OK [11:16:55]wFMCommunicate request_size=255 [11:16:55]MH_SAM_APDU [11:16:55]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 A6 E6 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 24 78 03 00 35 04 06 00 A4 52 15 C6 [11:16:55]Write to MH i2c: E2 02 01 26 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 A6 E6 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 24 78 03 00 35 04 06 00 A4 52 15 C6 00 00 93 [11:16:55]Write i2c OK [11:16:55]MH_I2C_Read... [11:16:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:55]Read from MH i2c: E2 [11:16:55]MH_I2C_Read... [11:16:55]Read from MH i2c: E2 03 00 [11:16:55]MH_I2C_Read... [11:16:55]Read from MH i2c: E2 03 00 26 06 00 90 00 A0 [11:16:55]RAPDU: 90 00 [11:16:55]wFMCommunicate OK [11:16:55]wFMCommunicate request_size=7 [11:16:55]MH_SAM_APDU [11:16:55]CAPDU: 80 0D 02 02 02 55 FE [11:16:55]Write to MH i2c: E2 0A 00 27 06 80 0D 02 02 02 00 55 FE 00 00 FE [11:16:55]Write i2c OK [11:16:55]MH_I2C_Read... [11:16:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:55]Read from MH i2c: E2 [11:16:55]MH_I2C_Read... [11:16:55]Read from MH i2c: E2 03 00 [11:16:55]MH_I2C_Read... [11:16:55]Read from MH i2c: E2 03 00 27 06 00 90 00 A1 [11:16:55]RAPDU: 90 00 [11:16:55]wFMCommunicate OK [11:16:55]wFMCommunicate request_size=4 [11:16:55]MH_SAM_APDU [11:16:55]CAPDU: 80 0D 03 02 [11:16:55]Write to MH i2c: E2 08 00 28 06 80 0D 03 02 00 00 00 00 A9 [11:16:55]Write i2c OK [11:16:55]MH_I2C_Read... [11:16:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:16:55]Read from MH i2c: E2 [11:16:55]MH_I2C_Read... [11:16:55]Read from MH i2c: E2 0B 00 [11:16:55]MH_I2C_Read... [11:16:55]Read from MH i2c: E2 0B 00 28 06 00 37 4C AE 6C 23 B9 BE 68 90 00 49 [11:16:55]RAPDU: 37 4C AE 6C 23 B9 BE 68 90 00 [11:16:55]wFMCommunicate OK [11:16:55]SAM_PROTO_SignData done [11:16:55]FM_MakeSignedData done [11:16:55]CreateOFDProtocolMessage [11:16:55]wFMCommunicate request_size=4 [11:16:55]MH_SAM_APDU [11:16:55]CAPDU: 80 11 00 00 [11:16:55]Write to MH i2c: E2 08 00 29 06 80 11 00 00 00 00 00 00 A9 [11:16:55]Write i2c OK [11:16:55]MH_I2C_Read... [11:16:55]Read from MH i2c: E2 [11:16:55]MH_I2C_Read... [11:16:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:55]Read from MH i2c: E2 17 00 [11:16:55]MH_I2C_Read... [11:16:55]Read from MH i2c: E2 17 00 29 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 00 [11:16:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:16:55]wFMCommunicate OK [11:16:55]CreateOFDProtocolMessage done [11:16:55]OFDSenderStorePacket 227364 [11:16:55]StoreOFDPacket docnum=227364 [11:16:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 C1 32 04 01 B8 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 A6 E6 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 24 78 03 00 35 04 06 00 A4 52 15 C6 55 FE 37 4C AE 6C 23 B9 BE 68 [11:16:55]CheckFolder [11:16:55]dirname=/storage/ofd_packets [11:16:55]CheckFolder done [11:16:55]ProducePacketName [11:16:55]name=ofd_packets/00227364 [11:16:55]NVStorageSaveData ofd_packets/00227364 [11:16:55]File name is /storage/ofd_packets/00227364 [11:16:55]Write 298 bytes [11:16:55]NVStorageSaveData done [11:16:55]OFDSenderStorePacket done [11:16:55]KKMCreateOFDPacket done [11:16:55]NVStorageSaveData kkm_last_timestamp [11:16:55]File name is /storage/kkm_last_timestamp [11:16:55]Write 4 bytes [11:16:55]NVStorageSaveData done [11:16:55]ExternCall_PrintAddStr [11:16:55]wPrintStart [11:16:55]Write to MH i2c: 01 00 00 2A 06 30 [11:16:55]Write i2c OK [11:16:55]MH_I2C_Read... [11:16:55]Read from MH i2c: 01 [11:16:55]MH_I2C_Read... [11:16:55]Read from MH i2c: 01 07 00 [11:16:55]MH_I2C_Read... [11:16:55]Read from MH i2c: 01 07 00 2A 06 00 00 00 00 00 FF 0F 45 [11:16:55]RasterBufferAndPrint [11:16:55]line Счет N : (1)1962878 [11:16:55]line ИНН: 02508201610067 [11:16:55]line Контрольно-Кассовый Чек [11:16:55]line ПРОДАЖА [11:16:55]line ТРК (МРК, ГНК) : 21 [11:16:55]line Товар: 2710194210 [11:16:55]line ДТ-К-5 [11:16:55]line 13.130 * 76.20 [11:16:55]line = 1000.51 [11:16:55]line НДС 12% НСП 1% [11:16:55]line > о реализуемом товаре [11:16:55]line ОКРУГЛЕНИЕ: -0.51 [11:16:55]line ИТОГО: 1000.00 [11:16:55]line Внесено: 1000.00 [11:16:55]line СДАЧА: 0.00 [11:16:55]line НСП 1% : 8.85 [11:16:55]line НДС 12% : 106.25 [11:16:55]line Наличными: 1000.00 [11:16:55]line Безнал.: 0.00 [11:16:55]line Место: АЗС № 133 "Партнер Нефть" [11:16:55]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:16:55]line СНО: Общий режим [11:16:55]line Чек 212 20.10.2024 11:16 [11:16:55]line Смена: 533 ФФД: 1.0 [11:16:55]line ЗНМ: 0300000091 [11:16:55]line РНМ: 0000000000091685 [11:16:55]line Версия ККМ: 001 [11:16:55]line ФМ: 0000000000871839 [11:16:55]line ФД: 227364 [11:16:55]line ФПД: 180672459593214 [11:16:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111654&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227364&fm=180672459593214&tin=02508201610067®Number=0000000000091685&sum=100000 [11:16:55]written 0, free lines is 4095 [11:16:56]Write to MH i2c: 01 00 00 54 06 5A [11:16:56]Write i2c OK [11:16:56]MH_I2C_Read... [11:16:56]Read from MH i2c: 01 [11:16:56]MH_I2C_Read... [11:16:56]Read from MH i2c: 01 07 00 [11:16:56]MH_I2C_Read... [11:16:56]Read from MH i2c: 01 07 00 54 06 00 00 00 00 00 FE 0C 6B [11:16:56]RasterBufferAndPrint [11:16:56]line [11:16:56]line [11:16:56]line [11:16:56]line [11:16:56]line [11:16:56]written 0, free lines is 3332 [11:16:56]process_action close_receipt done [11:16:56]requested_data is exist [11:16:56]produce_requested_data [11:16:56]requested_item fm.sn is exist - process it [11:16:56]wFMCommunicate request_size=4 [11:16:56]MH_SAM_APDU [11:16:56]CAPDU: 80 11 00 00 [11:16:56]Write to MH i2c: E2 08 00 5B 06 80 11 00 00 00 00 00 00 DB [11:16:56]Write i2c OK [11:16:56]MH_I2C_Read... [11:16:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:56]Read from MH i2c: E2 [11:16:56]MH_I2C_Read... [11:16:56]Read from MH i2c: E2 17 00 [11:16:56]MH_I2C_Read... [11:16:56]Read from MH i2c: E2 17 00 5B 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 32 [11:16:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:16:56]wFMCommunicate OK [11:16:56]requested_item fd.num is exist - process it [11:16:56]SAM_PROTO_GetFieldsCounters [11:16:56]wFMCommunicate request_size=4 [11:16:56]MH_SAM_APDU [11:16:56]CAPDU: 80 13 00 00 [11:16:56]Write to MH i2c: E2 08 00 5C 06 80 13 00 00 00 00 00 00 DE [11:16:56]Write i2c OK [11:16:56]MH_I2C_Read... [11:16:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:16:56]Read from MH i2c: E2 [11:16:56]MH_I2C_Read... [11:16:56]Read from MH i2c: E2 62 00 [11:16:56]MH_I2C_Read... [11:16:56]Read from MH i2c: E2 62 00 5C 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 24 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 39 [11:16:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 24 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:16:56]wFMCommunicate OK [11:16:56]SAM_PROTO_GetFieldsCounters done [11:16:56]requested_item shift.num is exist - process it [11:16:56]requested_item shift.opened is exist - process it [11:16:56]req_shift_opened [11:16:56]FM_GetShiftState [11:16:56]SAM_PROTO_GetShiftState [11:16:56]wFMCommunicate request_size=4 [11:16:56]MH_SAM_APDU [11:16:56]CAPDU: 80 13 01 00 [11:16:56]Write to MH i2c: E2 08 00 5D 06 80 13 01 00 00 00 00 00 E0 [11:16:56]Write i2c OK [11:16:56]MH_I2C_Read... [11:16:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:56]Read from MH i2c: E2 [11:16:56]MH_I2C_Read... [11:16:56]Read from MH i2c: E2 0E 00 [11:16:56]MH_I2C_Read... [11:16:56]Read from MH i2c: E2 0E 00 5D 06 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 FA [11:16:56]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:16:56]wFMCommunicate OK [11:16:56]SAM_PROTO_GetShiftState done [11:16:56]FM_GetShiftState done [11:16:56]req_shift_opened done [11:16:56]requested_item shift.open_date is exist - process it [11:16:56]req_shift_open_date [11:16:56]req_shift_open_date done [11:16:56]produce_requested_data done [11:16:56]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227364,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [11:16:56]process_action_free close_receipt [11:16:56]json_value_free [11:16:56]json_value_free done [11:16:56]process_json_proto returns [11:16:56]Send response to host [11:16:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227364,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [11:16:56]free response buf [11:16:56]execute_script done [11:16:56]execute_script returns [11:16:56]free content buf [11:16:56]Sock 9.Close socket [11:16:56]Sock 9.Thread stoped [11:17:35]accept exits with 8 [11:17:35]New connection [11:17:35]New thread 3066686820 created [11:17:35]Thread 3066543460 joined [11:17:35]Waiting for new connection... [11:17:35] Sock 8.Parse request [11:17:35]Sock 8.Check first char [11:17:35]Sock 8.First char is OK [11:17:35]request: POST /json_proto HTTP/1.0 [11:17:35]Method: POST [11:17:35]URL: /json_proto [11:17:35]Method is POST - this is cgi request [11:17:35]url: /json_proto [11:17:35]query_string will be loaded in cgi processing [11:17:35]execute_cgi json_proto POST (null) [11:17:35]execute_cgi path=json_proto method=POST [11:17:35]POST find Content-Length [11:17:35]Host: 172.17.44.195:8080 [11:17:35]Content-Length: 683 [11:17:35]Content-Type: application/json [11:17:35] [11:17:35]POST finish read [11:17:35]Found Content-Length = 683 [11:17:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962880", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:35]execute_script... [11:17: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)1962880", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:35]POST & json_proto [11:17:35]process_json_proto [11:17:35]json parsed OK: [11:17:35]protocol is kg_v1.0 [11:17:35]action value=close_receipt [11:17:35]process_action close_receipt [11:17:35]cmd_close_receipt [11:17:35]MH_GetDate [11:17:35]Write to MH i2c: F0 00 00 5E 06 53 [11:17:35]Write i2c OK [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: F0 [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: F0 09 00 [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: F0 09 00 5E 06 00 CF E6 14 67 82 C9 CF 66 0C [11:17:35]GetLastDocTimeStamp 1729423014 [11:17:35]current date 1729423055 [11:17:35]FM_GetShiftState [11:17:35]SAM_PROTO_GetShiftState [11:17:35]wFMCommunicate request_size=4 [11:17:35]MH_SAM_APDU [11:17:35]CAPDU: 80 13 01 00 [11:17:35]Write to MH i2c: E2 08 00 5F 06 80 13 01 00 00 00 00 00 E2 [11:17:35]Write i2c OK [11:17:35]MH_I2C_Read... [11:17:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:35]Read from MH i2c: E2 [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: E2 0E 00 [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: E2 0E 00 5F 06 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 FC [11:17:35]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:17:35]wFMCommunicate OK [11:17:35]SAM_PROTO_GetShiftState done [11:17:35]FM_GetShiftState done [11:17:35]opened in 1729383750 [11:17:35]opened+sec_in_day 1729470150 [11:17:35]quantity*price = 200031 [11:17:35]sum+1 = 200032 [11:17:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 213 20.10.2024 11:17 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227365 ФПД: 122622900657886 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111735&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227365&fm=122622900657886&tin=02508201610067®Number=0000000000091685&sum=200000 [11:17:36]StoreToDocumentArchive [11:17:36]shift 533 fd 227365 [11:17:36]save to /storage/0533/doc_00227365 [11:17:36]save last doc name /storage/0533/doc_00227365 to /storage/kkm_last_doc_name [11:17:36]save OK [11:17:36]Clear old archive folders... [11:17:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:17:36]tlvbuf is 0194AC00 [11:17:36]SAM_PROTO_ClearQueue [11:17:36]wFMCommunicate request_size=4 [11:17:36]MH_SAM_APDU [11:17:36]CAPDU: 80 09 00 00 [11:17:36]Write to MH i2c: E2 08 00 6C 06 80 09 00 00 00 00 00 00 E4 [11:17:36]Write i2c OK [11:17:36]MH_I2C_Read... [11:17:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:17:36]Read from MH i2c: E2 [11:17:36]MH_I2C_Read... [11:17:36]Read from MH i2c: E2 03 00 [11:17:36]MH_I2C_Read... [11:17:36]Read from MH i2c: E2 03 00 6C 06 00 90 00 E6 [11:17:36]RAPDU: 90 00 [11:17:36]wFMCommunicate OK [11:17:36]SAM_PROTO_ClearQueue done [11:17:36]KKMCreateOFDPacket [11:17:36]OFDProtocolAddRootSTLVToBuf [11:17:36]FM_MakeSignedData [11:17:36]FM_MakeSignedData [11:17:36]SAM_PROTO_SignData [11:17:36]wFMCommunicate request_size=4 [11:17:36]MH_SAM_APDU [11:17:36]CAPDU: 80 0D 01 02 [11:17:36]Write to MH i2c: E2 08 00 6D 06 80 0D 01 02 00 00 00 00 EC [11:17:36]Write i2c OK [11:17:36]MH_I2C_Read... [11:17:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:17:36]Read from MH i2c: E2 [11:17:36]MH_I2C_Read... [11:17:36]Read from MH i2c: E2 03 00 [11:17:36]MH_I2C_Read... [11:17:36]Read from MH i2c: E2 03 00 6D 06 00 90 00 E7 [11:17:36]RAPDU: 90 00 [11:17:36]wFMCommunicate OK [11:17:36]wFMCommunicate request_size=255 [11:17:36]MH_SAM_APDU [11:17:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 CF E6 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 25 78 03 00 35 04 06 00 6F [11:17:36]Write to MH i2c: E2 02 01 6E 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 CF E6 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 25 78 03 00 35 04 06 00 6F 00 00 F0 [11:17:36]Write i2c OK [11:17:36]MH_I2C_Read... [11:17:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:36]Read from MH i2c: E2 [11:17:36]MH_I2C_Read... [11:17:36]Read from MH i2c: E2 03 00 [11:17:36]MH_I2C_Read... [11:17:36]Read from MH i2c: E2 03 00 6E 06 00 90 00 E8 [11:17:36]RAPDU: 90 00 [11:17:36]wFMCommunicate OK [11:17:36]wFMCommunicate request_size=10 [11:17:36]MH_SAM_APDU [11:17:36]CAPDU: 80 0D 02 02 05 86 5E 6F 5E DE [11:17:36]Write to MH i2c: E2 0D 00 6F 06 80 0D 02 02 05 00 86 5E 6F 5E DE 00 00 88 [11:17:36]Write i2c OK [11:17:36]MH_I2C_Read... [11:17:36]Read from MH i2c: E2 [11:17:36]MH_I2C_Read... [11:17:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:36]Read from MH i2c: E2 03 00 [11:17:36]MH_I2C_Read... [11:17:36]Read from MH i2c: E2 03 00 6F 06 00 90 00 E9 [11:17:36]RAPDU: 90 00 [11:17:36]wFMCommunicate OK [11:17:36]wFMCommunicate request_size=4 [11:17:36]MH_SAM_APDU [11:17:36]CAPDU: 80 0D 03 02 [11:17:36]Write to MH i2c: E2 08 00 70 06 80 0D 03 02 00 00 00 00 F1 [11:17:36]Write i2c OK [11:17:36]MH_I2C_Read... [11:17:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:17:36]Read from MH i2c: E2 [11:17:36]MH_I2C_Read... [11:17:36]Read from MH i2c: E2 0B 00 [11:17:36]MH_I2C_Read... [11:17:36]Read from MH i2c: E2 0B 00 70 06 00 17 01 72 B9 81 9C A8 0C 90 00 06 [11:17:36]RAPDU: 17 01 72 B9 81 9C A8 0C 90 00 [11:17:36]wFMCommunicate OK [11:17:36]SAM_PROTO_SignData done [11:17:36]FM_MakeSignedData done [11:17:36]CreateOFDProtocolMessage [11:17:36]wFMCommunicate request_size=4 [11:17:36]MH_SAM_APDU [11:17:36]CAPDU: 80 11 00 00 [11:17:36]Write to MH i2c: E2 08 00 71 06 80 11 00 00 00 00 00 00 F1 [11:17:36]Write i2c OK [11:17:36]MH_I2C_Read... [11:17:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:36]Read from MH i2c: E2 [11:17:36]MH_I2C_Read... [11:17:36]Read from MH i2c: E2 17 00 [11:17:36]MH_I2C_Read... [11:17:36]Read from MH i2c: E2 17 00 71 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 48 [11:17:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:17:36]wFMCommunicate OK [11:17:36]CreateOFDProtocolMessage done [11:17:36]OFDSenderStorePacket 227365 [11:17:36]StoreOFDPacket docnum=227365 [11:17:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 C7 7A 07 01 59 ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 CF E6 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 25 78 03 00 35 04 06 00 6F 86 5E 6F 5E DE 17 01 72 B9 81 9C A8 0C [11:17:36]CheckFolder [11:17:36]dirname=/storage/ofd_packets [11:17:36]CheckFolder done [11:17:36]ProducePacketName [11:17:36]name=ofd_packets/00227365 [11:17:36]NVStorageSaveData ofd_packets/00227365 [11:17:36]File name is /storage/ofd_packets/00227365 [11:17:36]Write 301 bytes [11:17:36]NVStorageSaveData done [11:17:36]OFDSenderStorePacket done [11:17:36]KKMCreateOFDPacket done [11:17:36]NVStorageSaveData kkm_last_timestamp [11:17:36]File name is /storage/kkm_last_timestamp [11:17:36]Write 4 bytes [11:17:36]NVStorageSaveData done [11:17:36]ExternCall_PrintAddStr [11:17:36]wPrintStart [11:17:36]Write to MH i2c: 01 00 00 72 06 78 [11:17:36]Write i2c OK [11:17:36]MH_I2C_Read... [11:17:36]Read from MH i2c: 01 [11:17:36]MH_I2C_Read... [11:17:36]Read from MH i2c: 01 07 00 [11:17:36]MH_I2C_Read... [11:17:36]Read from MH i2c: 01 07 00 72 06 00 00 00 00 00 FF 0F 8D [11:17:36]RasterBufferAndPrint [11:17:36]line Счет N : (1)1962880 [11:17:36]line ИНН: 02508201610067 [11:17:36]line Контрольно-Кассовый Чек [11:17:36]line ПРОДАЖА [11:17:36]line ТРК (МРК, ГНК) : 53 [11:17:36]line Товар: 2710124130 [11:17:36]line Аи-92-К-5 [11:17:36]line 29.900 * 66.90 [11:17:36]line = 2000.31 [11:17:36]line НДС 12% НСП 1% [11:17:36]line > о реализуемом товаре [11:17:36]line ОКРУГЛЕНИЕ: -0.31 [11:17:36]line ИТОГО: 2000.00 [11:17:36]line Внесено: 2000.00 [11:17:36]line СДАЧА: 0.00 [11:17:36]line НСП 1% : 17.70 [11:17:36]line НДС 12% : 212.42 [11:17:36]line Наличными: 2000.00 [11:17:36]line Безнал.: 0.00 [11:17:36]line Место: АЗС № 133 "Партнер Нефть" [11:17:36]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:17:36]line СНО: Общий режим [11:17:36]line Чек 213 20.10.2024 11:17 [11:17:36]line Смена: 533 ФФД: 1.0 [11:17:36]line ЗНМ: 0300000091 [11:17:36]line РНМ: 0000000000091685 [11:17:36]line Версия ККМ: 001 [11:17:36]line ФМ: 0000000000871839 [11:17:36]line ФД: 227365 [11:17:36]line ФПД: 122622900657886 [11:17:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111735&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227365&fm=122622900657886&tin=02508201610067®Number=0000000000091685&sum=200000 [11:17:36]written 0, free lines is 4095 [11:17:37]Write to MH i2c: 01 00 00 9C 06 A2 [11:17:37]Write i2c OK [11:17:37]MH_I2C_Read... [11:17:37]Read from MH i2c: 01 [11:17:37]MH_I2C_Read... [11:17:37]Read from MH i2c: 01 07 00 [11:17:37]MH_I2C_Read... [11:17:37]Read from MH i2c: 01 07 00 9C 06 00 00 00 00 00 02 0D B8 [11:17:37]RasterBufferAndPrint [11:17:37]line [11:17:37]line [11:17:37]line [11:17:37]line [11:17:37]line [11:17:37]written 0, free lines is 3336 [11:17:37]process_action close_receipt done [11:17:37]requested_data is exist [11:17:37]produce_requested_data [11:17:37]requested_item fm.sn is exist - process it [11:17:37]wFMCommunicate request_size=4 [11:17:37]MH_SAM_APDU [11:17:37]CAPDU: 80 11 00 00 [11:17:37]Write to MH i2c: E2 08 00 A3 06 80 11 00 00 00 00 00 00 23 [11:17:37]Write i2c OK [11:17:37]MH_I2C_Read... [11:17:37]Read from MH i2c: E2 [11:17:37]MH_I2C_Read... [11:17:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:37]Read from MH i2c: E2 17 00 [11:17:37]MH_I2C_Read... [11:17:37]Read from MH i2c: E2 17 00 A3 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 7A [11:17:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:17:37]wFMCommunicate OK [11:17:37]requested_item fd.num is exist - process it [11:17:37]SAM_PROTO_GetFieldsCounters [11:17:37]wFMCommunicate request_size=4 [11:17:37]MH_SAM_APDU [11:17:37]CAPDU: 80 13 00 00 [11:17:37]Write to MH i2c: E2 08 00 A4 06 80 13 00 00 00 00 00 00 26 [11:17:37]Write i2c OK [11:17:37]MH_I2C_Read... [11:17:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:17:37]Read from MH i2c: E2 [11:17:37]MH_I2C_Read... [11:17:37]Read from MH i2c: E2 62 00 [11:17:37]MH_I2C_Read... [11:17:37]Read from MH i2c: E2 62 00 A4 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 25 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [11:17:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 25 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:17:37]wFMCommunicate OK [11:17:37]SAM_PROTO_GetFieldsCounters done [11:17:37]requested_item shift.num is exist - process it [11:17:37]requested_item shift.opened is exist - process it [11:17:37]req_shift_opened [11:17:37]FM_GetShiftState [11:17:37]SAM_PROTO_GetShiftState [11:17:37]wFMCommunicate request_size=4 [11:17:37]MH_SAM_APDU [11:17:37]CAPDU: 80 13 01 00 [11:17:37]Write to MH i2c: E2 08 00 A5 06 80 13 01 00 00 00 00 00 28 [11:17:37]Write i2c OK [11:17:37]MH_I2C_Read... [11:17:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:37]Read from MH i2c: E2 [11:17:37]MH_I2C_Read... [11:17:37]Read from MH i2c: E2 0E 00 [11:17:37]MH_I2C_Read... [11:17:37]Read from MH i2c: E2 0E 00 A5 06 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 42 [11:17:37]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:17:37]wFMCommunicate OK [11:17:37]SAM_PROTO_GetShiftState done [11:17:37]FM_GetShiftState done [11:17:37]req_shift_opened done [11:17:37]requested_item shift.open_date is exist - process it [11:17:37]req_shift_open_date [11:17:37]req_shift_open_date done [11:17:37]produce_requested_data done [11:17:37]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227365,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [11:17:37]process_action_free close_receipt [11:17:37]json_value_free [11:17:37]json_value_free done [11:17:37]process_json_proto returns [11:17:37]Send response to host [11:17:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227365,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [11:17:37]free response buf [11:17:37]execute_script done [11:17:37]execute_script returns [11:17:37]free content buf [11:17:37]Sock 8.Close socket [11:17:37]Sock 8.Thread stoped [11:17:44]accept exits with 9 [11:17:44]New connection [11:17:44]New thread 3066543460 created [11:17:44]Thread 3066686820 joined [11:17:44]Waiting for new connection... [11:17:44] Sock 9.Parse request [11:17:44]Sock 9.Check first char [11:17:44]Sock 9.First char is OK [11:17:44]request: POST /json_proto HTTP/1.0 [11:17:44]Method: POST [11:17:44]URL: /json_proto [11:17:44]Method is POST - this is cgi request [11:17:44]url: /json_proto [11:17:44]query_string will be loaded in cgi processing [11:17:44]execute_cgi json_proto POST (null) [11:17:44]execute_cgi path=json_proto method=POST [11:17:44]POST find Content-Length [11:17:44]Host: 172.17.44.195:8080 [11:17:44]Content-Length: 679 [11:17:44]Content-Type: application/json [11:17:44] [11:17:44]POST finish read [11:17:44]Found Content-Length = 679 [11:17:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962881", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:44]execute_script... [11:17: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)1962881", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:44]POST & json_proto [11:17:44]process_json_proto [11:17:44]json parsed OK: [11:17:44]protocol is kg_v1.0 [11:17:44]action value=close_receipt [11:17:44]process_action close_receipt [11:17:44]cmd_close_receipt [11:17:44]MH_GetDate [11:17:44]Write to MH i2c: F0 00 00 A6 06 9B [11:17:44]Write i2c OK [11:17:44]MH_I2C_Read... [11:17:44]Read from MH i2c: F0 [11:17:44]MH_I2C_Read... [11:17:44]Read from MH i2c: F0 09 00 [11:17:44]MH_I2C_Read... [11:17:44]Read from MH i2c: F0 09 00 A6 06 00 D9 E6 14 67 82 C9 CF 66 5E [11:17:44]GetLastDocTimeStamp 1729423055 [11:17:44]current date 1729423065 [11:17:44]FM_GetShiftState [11:17:44]SAM_PROTO_GetShiftState [11:17:44]wFMCommunicate request_size=4 [11:17:44]MH_SAM_APDU [11:17:44]CAPDU: 80 13 01 00 [11:17:44]Write to MH i2c: E2 08 00 A7 06 80 13 01 00 00 00 00 00 2A [11:17:44]Write i2c OK [11:17:44]MH_I2C_Read... [11:17:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:44]Read from MH i2c: E2 [11:17:44]MH_I2C_Read... [11:17:44]Read from MH i2c: E2 0E 00 [11:17:44]MH_I2C_Read... [11:17:44]Read from MH i2c: E2 0E 00 A7 06 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 44 [11:17:44]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:17:44]wFMCommunicate OK [11:17:44]SAM_PROTO_GetShiftState done [11:17:44]FM_GetShiftState done [11:17:44]opened in 1729383750 [11:17:44]opened+sec_in_day 1729470150 [11:17:44]quantity*price = 80012 [11:17:44]sum+1 = 80013 [11:17:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 214 20.10.2024 11:17 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227366 ФПД: 82038650757139 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111745&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227366&fm=82038650757139&tin=02508201610067®Number=0000000000091685&sum=80000 [11:17:45]StoreToDocumentArchive [11:17:45]shift 533 fd 227366 [11:17:45]save to /storage/0533/doc_00227366 [11:17:45]save last doc name /storage/0533/doc_00227366 to /storage/kkm_last_doc_name [11:17:45]save OK [11:17:45]Clear old archive folders... [11:17:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:17:45]tlvbuf is 01821430 [11:17:45]SAM_PROTO_ClearQueue [11:17:45]wFMCommunicate request_size=4 [11:17:45]MH_SAM_APDU [11:17:45]CAPDU: 80 09 00 00 [11:17:45]Write to MH i2c: E2 08 00 B4 06 80 09 00 00 00 00 00 00 2C [11:17:45]Write i2c OK [11:17:45]MH_I2C_Read... [11:17:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:17:46]Read from MH i2c: E2 [11:17:46]MH_I2C_Read... [11:17:46]Read from MH i2c: E2 03 00 [11:17:46]MH_I2C_Read... [11:17:46]Read from MH i2c: E2 03 00 B4 06 00 90 00 2E [11:17:46]RAPDU: 90 00 [11:17:46]wFMCommunicate OK [11:17:46]SAM_PROTO_ClearQueue done [11:17:46]KKMCreateOFDPacket [11:17:46]OFDProtocolAddRootSTLVToBuf [11:17:46]FM_MakeSignedData [11:17:46]FM_MakeSignedData [11:17:46]SAM_PROTO_SignData [11:17:46]wFMCommunicate request_size=4 [11:17:46]MH_SAM_APDU [11:17:46]CAPDU: 80 0D 01 02 [11:17:46]Write to MH i2c: E2 08 00 B5 06 80 0D 01 02 00 00 00 00 34 [11:17:46]Write i2c OK [11:17:46]MH_I2C_Read... [11:17:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:17:46]Read from MH i2c: E2 [11:17:46]MH_I2C_Read... [11:17:46]Read from MH i2c: E2 03 00 [11:17:46]MH_I2C_Read... [11:17:46]Read from MH i2c: E2 03 00 B5 06 00 90 00 2F [11:17:46]RAPDU: 90 00 [11:17:46]wFMCommunicate OK [11:17:46]wFMCommunicate request_size=255 [11:17:46]MH_SAM_APDU [11:17:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 D9 E6 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 26 78 03 00 35 04 06 00 4A [11:17:46]Write to MH i2c: E2 02 01 B6 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 D9 E6 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 26 78 03 00 35 04 06 00 4A 00 00 C9 [11:17:46]Write i2c OK [11:17:46]MH_I2C_Read... [11:17:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:46]Read from MH i2c: E2 [11:17:46]MH_I2C_Read... [11:17:46]Read from MH i2c: E2 03 00 [11:17:46]MH_I2C_Read... [11:17:46]Read from MH i2c: E2 03 00 B6 06 00 90 00 30 [11:17:46]RAPDU: 90 00 [11:17:46]wFMCommunicate OK [11:17:46]wFMCommunicate request_size=10 [11:17:46]MH_SAM_APDU [11:17:46]CAPDU: 80 0D 02 02 05 9D 1C A2 E0 13 [11:17:46]Write to MH i2c: E2 0D 00 B7 06 80 0D 02 02 05 00 9D 1C A2 E0 13 00 00 8F [11:17:46]Write i2c OK [11:17:46]MH_I2C_Read... [11:17:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:46]Read from MH i2c: E2 [11:17:46]MH_I2C_Read... [11:17:46]Read from MH i2c: E2 03 00 [11:17:46]MH_I2C_Read... [11:17:46]Read from MH i2c: E2 03 00 B7 06 00 90 00 31 [11:17:46]RAPDU: 90 00 [11:17:46]wFMCommunicate OK [11:17:46]wFMCommunicate request_size=4 [11:17:46]MH_SAM_APDU [11:17:46]CAPDU: 80 0D 03 02 [11:17:46]Write to MH i2c: E2 08 00 B8 06 80 0D 03 02 00 00 00 00 39 [11:17:46]Write i2c OK [11:17:46]MH_I2C_Read... [11:17:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:17:46]Read from MH i2c: E2 [11:17:46]MH_I2C_Read... [11:17:46]Read from MH i2c: E2 0B 00 [11:17:46]MH_I2C_Read... [11:17:46]Read from MH i2c: E2 0B 00 B8 06 00 91 4B C1 52 B6 69 9D AA 90 00 8F [11:17:46]RAPDU: 91 4B C1 52 B6 69 9D AA 90 00 [11:17:46]wFMCommunicate OK [11:17:46]SAM_PROTO_SignData done [11:17:46]FM_MakeSignedData done [11:17:46]CreateOFDProtocolMessage [11:17:46]wFMCommunicate request_size=4 [11:17:46]MH_SAM_APDU [11:17:46]CAPDU: 80 11 00 00 [11:17:46]Write to MH i2c: E2 08 00 B9 06 80 11 00 00 00 00 00 00 39 [11:17:46]Write i2c OK [11:17:46]MH_I2C_Read... [11:17:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:46]Read from MH i2c: E2 [11:17:46]MH_I2C_Read... [11:17:46]Read from MH i2c: E2 17 00 [11:17:46]MH_I2C_Read... [11:17:46]Read from MH i2c: E2 17 00 B9 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 90 [11:17:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:17:46]wFMCommunicate OK [11:17:46]CreateOFDProtocolMessage done [11:17:46]OFDSenderStorePacket 227366 [11:17:46]StoreOFDPacket docnum=227366 [11:17:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 AA B4 07 01 4C D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 D9 E6 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 26 78 03 00 35 04 06 00 4A 9D 1C A2 E0 13 91 4B C1 52 B6 69 9D AA [11:17:46]CheckFolder [11:17:46]dirname=/storage/ofd_packets [11:17:46]CheckFolder done [11:17:46]ProducePacketName [11:17:46]name=ofd_packets/00227366 [11:17:46]NVStorageSaveData ofd_packets/00227366 [11:17:46]File name is /storage/ofd_packets/00227366 [11:17:46]Write 301 bytes [11:17:46]NVStorageSaveData done [11:17:46]OFDSenderStorePacket done [11:17:46]KKMCreateOFDPacket done [11:17:46]NVStorageSaveData kkm_last_timestamp [11:17:46]File name is /storage/kkm_last_timestamp [11:17:46]Write 4 bytes [11:17:46]NVStorageSaveData done [11:17:46]ExternCall_PrintAddStr [11:17:46]wPrintStart [11:17:46]Write to MH i2c: 01 00 00 BA 06 C0 [11:17:46]Write i2c OK [11:17:46]MH_I2C_Read... [11:17:46]Read from MH i2c: 01 [11:17:46]MH_I2C_Read... [11:17:46]Read from MH i2c: 01 07 00 [11:17:46]MH_I2C_Read... [11:17:46]Read from MH i2c: 01 07 00 BA 06 00 00 00 00 00 FF 0F D5 [11:17:46]RasterBufferAndPrint [11:17:46]line Счет N : (1)1962881 [11:17:46]line ИНН: 02508201610067 [11:17:46]line Контрольно-Кассовый Чек [11:17:46]line ПРОДАЖА [11:17:46]line ТРК (МРК, ГНК) : 43 [11:17:46]line Товар: 2710124130 [11:17:46]line Аи-92-К-5 [11:17:46]line 11.960 * 66.90 [11:17:46]line = 800.12 [11:17:46]line НДС 12% НСП 1% [11:17:46]line > о реализуемом товаре [11:17:46]line ОКРУГЛЕНИЕ: -0.12 [11:17:46]line ИТОГО: 800.00 [11:17:46]line Внесено: 800.00 [11:17:46]line СДАЧА: 0.00 [11:17:46]line НСП 1% : 7.08 [11:17:46]line НДС 12% : 84.97 [11:17:46]line Наличными: 800.00 [11:17:46]line Безнал.: 0.00 [11:17:46]line Место: АЗС № 133 "Партнер Нефть" [11:17:46]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:17:46]line СНО: Общий режим [11:17:46]line Чек 214 20.10.2024 11:17 [11:17:46]line Смена: 533 ФФД: 1.0 [11:17:46]line ЗНМ: 0300000091 [11:17:46]line РНМ: 0000000000091685 [11:17:46]line Версия ККМ: 001 [11:17:46]line ФМ: 0000000000871839 [11:17:46]line ФД: 227366 [11:17:46]line ФПД: 82038650757139 [11:17:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111745&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227366&fm=82038650757139&tin=02508201610067®Number=0000000000091685&sum=80000 [11:17:46]written 0, free lines is 4095 [11:17:47]Write to MH i2c: 01 00 00 E4 06 EA [11:17:47]Write i2c OK [11:17:47]MH_I2C_Read... [11:17:47]Read from MH i2c: 01 [11:17:47]MH_I2C_Read... [11:17:47]Read from MH i2c: 01 07 00 [11:17:47]MH_I2C_Read... [11:17:47]Read from MH i2c: 01 07 00 E4 06 00 00 00 00 00 FC 0C F9 [11:17:47]RasterBufferAndPrint [11:17:47]line [11:17:47]line [11:17:47]line [11:17:47]line [11:17:47]line [11:17:47]written 0, free lines is 3330 [11:17:47]process_action close_receipt done [11:17:47]requested_data is exist [11:17:47]produce_requested_data [11:17:47]requested_item fm.sn is exist - process it [11:17:47]wFMCommunicate request_size=4 [11:17:47]MH_SAM_APDU [11:17:47]CAPDU: 80 11 00 00 [11:17:47]Write to MH i2c: E2 08 00 EB 06 80 11 00 00 00 00 00 00 6B [11:17:47]Write i2c OK [11:17:47]MH_I2C_Read... [11:17:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:47]Read from MH i2c: E2 [11:17:47]MH_I2C_Read... [11:17:47]Read from MH i2c: E2 17 00 [11:17:47]MH_I2C_Read... [11:17:47]Read from MH i2c: E2 17 00 EB 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C2 [11:17:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:17:47]wFMCommunicate OK [11:17:47]requested_item fd.num is exist - process it [11:17:47]SAM_PROTO_GetFieldsCounters [11:17:47]wFMCommunicate request_size=4 [11:17:47]MH_SAM_APDU [11:17:47]CAPDU: 80 13 00 00 [11:17:47]Write to MH i2c: E2 08 00 EC 06 80 13 00 00 00 00 00 00 6E [11:17:47]Write i2c OK [11:17:47]MH_I2C_Read... [11:17:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:17:47]Read from MH i2c: E2 [11:17:47]MH_I2C_Read... [11:17:47]Read from MH i2c: E2 62 00 [11:17:47]MH_I2C_Read... [11:17:47]Read from MH i2c: E2 62 00 EC 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 26 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [11:17: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 26 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:17:47]wFMCommunicate OK [11:17:47]SAM_PROTO_GetFieldsCounters done [11:17:47]requested_item shift.num is exist - process it [11:17:47]requested_item shift.opened is exist - process it [11:17:47]req_shift_opened [11:17:47]FM_GetShiftState [11:17:47]SAM_PROTO_GetShiftState [11:17:47]wFMCommunicate request_size=4 [11:17:47]MH_SAM_APDU [11:17:47]CAPDU: 80 13 01 00 [11:17:47]Write to MH i2c: E2 08 00 ED 06 80 13 01 00 00 00 00 00 70 [11:17:47]Write i2c OK [11:17:47]MH_I2C_Read... [11:17:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:47]Read from MH i2c: E2 [11:17:47]MH_I2C_Read... [11:17:47]Read from MH i2c: E2 0E 00 [11:17:47]MH_I2C_Read... [11:17:47]Read from MH i2c: E2 0E 00 ED 06 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 8A [11:17:47]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:17:47]wFMCommunicate OK [11:17:47]SAM_PROTO_GetShiftState done [11:17:47]FM_GetShiftState done [11:17:47]req_shift_opened done [11:17:47]requested_item shift.open_date is exist - process it [11:17:47]req_shift_open_date [11:17:47]req_shift_open_date done [11:17:47]produce_requested_data done [11:17:47]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227366,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [11:17:47]process_action_free close_receipt [11:17:47]json_value_free [11:17:47]json_value_free done [11:17:47]process_json_proto returns [11:17:47]Send response to host [11:17:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227366,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [11:17:47]free response buf [11:17:47]execute_script done [11:17:47]execute_script returns [11:17:47]free content buf [11:17:47]Sock 9.Close socket [11:17:47]Sock 9.Thread stoped [11:18:22]ConnectInit Can't connect to host [11:18:22]CommunicateWithHost connect error [11:18:22]CommunicateWithHost err = -1 [11:18:22]OFD Sender: Server communicate error [11:18:22]OFD Sender: Processing packet 227362 [packets to send 42, broken 37] [11:18:22]ProducePacketName [11:18:22]name=ofd_packets/00227362 [11:18:22]OFD Sender: To server: pG, [11:18:22]CommunicateWithHost lk.salyk.kg:30040 [11:18:22]ConnectInit lk.salyk.kg [11:18:22]Connected sock=9 [11:18:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 6D B9 07 01 0F EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 79 E6 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 22 78 03 00 35 04 06 00 DB 0A CC C2 CE 0A A1 43 C0 8F CD 7F CB B6 [11:18: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 33 39 4F 00 00 00 67 75 47 00 18 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 33 39 10 04 04 00 22 78 03 00 F4 03 04 00 FC 91 14 67 B6 04 01 00 00 E5 9D 81 C4 DB B2 5A 9F [11:18:22]CommunicateWithHost err = 0 [11:18:22]CheckOFDResponse [11:18:22]1017 (14) - 77093643461234 [11:18:22]1041 (16) - 0000000000871839 [11:18:22]1040 (4) - 227362 [11:18:22]1012 (4) - 20.10.2024 05:15 [11:18:22]1206 (1) - 0 [11:18:22]OFD Sender: Remove packet 227362 [11:18:22]ProducePacketName [11:18:22]name=ofd_packets/00227362 [11:18:22]NVStorageDeleteData [11:18:23]OFD Sender: Processing packet 227363 [packets to send 41, broken 37] [11:18:23]ProducePacketName [11:18:23]name=ofd_packets/00227363 [11:18:23]OFD Sender: To server: pG, [11:18:23]CommunicateWithHost lk.salyk.kg:30040 [11:18:23]ConnectInit lk.salyk.kg [11:18:23]Connected sock=9 [11:18: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 33 39 0F 01 00 00 23 8C 07 01 3D E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 A1 E6 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 23 78 03 00 35 04 06 00 13 22 44 63 00 F1 5F 18 29 92 D3 A0 E2 8D [11:18: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 33 39 4F 00 00 00 FE 61 47 00 96 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 23 78 03 00 F4 03 04 00 FD 91 14 67 B6 04 01 00 00 2D 55 42 A6 DB E3 F7 2C [11:18:23]CommunicateWithHost err = 0 [11:18:23]CheckOFDResponse [11:18:23]1017 (14) - 77093643461234 [11:18:23]1041 (16) - 0000000000871839 [11:18:23]1040 (4) - 227363 [11:18:23]1012 (4) - 20.10.2024 05:15 [11:18:23]1206 (1) - 0 [11:18:23]OFD Sender: Remove packet 227363 [11:18:23]ProducePacketName [11:18:23]name=ofd_packets/00227363 [11:18:23]NVStorageDeleteData [11:18:24]OFD Sender: Processing packet 227364 [packets to send 40, broken 37] [11:18:24]ProducePacketName [11:18:24]name=ofd_packets/00227364 [11:18:24]OFD Sender: To server: pG, [11:18:24]CommunicateWithHost lk.salyk.kg:30040 [11:18:24]ConnectInit lk.salyk.kg [11:18:24]Connected sock=9 [11:18: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 33 39 0C 01 00 00 C1 32 04 01 B8 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 A6 E6 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 24 78 03 00 35 04 06 00 A4 52 15 C6 55 FE 37 4C AE 6C 23 B9 BE 68 [11:18: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 33 39 4F 00 00 00 E2 D4 47 00 A0 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 24 78 03 00 F4 03 04 00 FD 91 14 67 B6 04 01 00 00 74 CE 74 EB 21 59 84 91 [11:18:24]CommunicateWithHost err = 0 [11:18:24]CheckOFDResponse [11:18:24]1017 (14) - 77093643461234 [11:18:24]1041 (16) - 0000000000871839 [11:18:24]1040 (4) - 227364 [11:18:24]1012 (4) - 20.10.2024 05:15 [11:18:24]1206 (1) - 0 [11:18:24]OFD Sender: Remove packet 227364 [11:18:24]ProducePacketName [11:18:24]name=ofd_packets/00227364 [11:18:24]NVStorageDeleteData [11:18:24]OFD Sender: Processing packet 227365 [packets to send 39, broken 37] [11:18:24]ProducePacketName [11:18:24]name=ofd_packets/00227365 [11:18:24]OFD Sender: To server: pG, [11:18:24]CommunicateWithHost lk.salyk.kg:30040 [11:18:24]ConnectInit lk.salyk.kg [11:18:24]Connected sock=9 [11:18: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 33 39 0F 01 00 00 C7 7A 07 01 59 ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 CF E6 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 25 78 03 00 35 04 06 00 6F 86 5E 6F 5E DE 17 01 72 B9 81 9C A8 0C [11:18:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 96 55 47 00 16 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 33 39 10 04 04 00 25 78 03 00 F4 03 04 00 FE 91 14 67 B6 04 01 00 00 DB F9 E0 3E D4 6B 9B A4 [11:18:25]CommunicateWithHost err = 0 [11:18:25]CheckOFDResponse [11:18:25]1017 (14) - 77093643461234 [11:18:25]1041 (16) - 0000000000871839 [11:18:25]1040 (4) - 227365 [11:18:25]1012 (4) - 20.10.2024 05:15 [11:18:25]1206 (1) - 0 [11:18:25]OFD Sender: Remove packet 227365 [11:18:25]ProducePacketName [11:18:25]name=ofd_packets/00227365 [11:18:25]NVStorageDeleteData [11:18:25]OFD Sender: Processing packet 227366 [packets to send 38, broken 37] [11:18:25]ProducePacketName [11:18:25]name=ofd_packets/00227366 [11:18:25]OFD Sender: To server: pG, [11:18:25]CommunicateWithHost lk.salyk.kg:30040 [11:18:25]ConnectInit lk.salyk.kg [11:18:25]Connected sock=9 [11:18:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 AA B4 07 01 4C D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 D9 E6 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 26 78 03 00 35 04 06 00 4A 9D 1C A2 E0 13 91 4B C1 52 B6 69 9D AA [11:18:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 1A B0 47 00 4A 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 33 39 10 04 04 00 26 78 03 00 F4 03 04 00 FF 91 14 67 B6 04 01 00 00 A8 A1 2C 39 A8 EF F1 FB [11:18:25]CommunicateWithHost err = 0 [11:18:25]CheckOFDResponse [11:18:25]1017 (14) - 77093643461234 [11:18:25]1041 (16) - 0000000000871839 [11:18:25]1040 (4) - 227366 [11:18:25]1012 (4) - 20.10.2024 05:15 [11:18:25]1206 (1) - 0 [11:18:25]OFD Sender: Remove packet 227366 [11:18:25]ProducePacketName [11:18:25]name=ofd_packets/00227366 [11:18:25]NVStorageDeleteData [11:18:26]OFD Sender: No OFD packet to send [11:18:31]OFD Sender: No OFD packet to send [11:18:36]OFD Sender: No OFD packet to send [11:18:41]OFD Sender: No OFD packet to send [11:18:46]OFD Sender: No OFD packet to send [11:18:51]OFD Sender: No OFD packet to send [11:18:56]OFD Sender: No OFD packet to send [11:19:01]OFD Sender: No OFD packet to send [11:19:06]OFD Sender: No OFD packet to send [11:19:11]OFD Sender: No OFD packet to send [11:19:16]OFD Sender: No OFD packet to send [11:19:18]accept exits with 8 [11:19:18]New connection [11:19:18]New thread 3066686820 created [11:19:18]Thread 3066543460 joined [11:19:18]Waiting for new connection... [11:19:18] Sock 8.Parse request [11:19:18]Sock 8.Check first char [11:19:18]Sock 8.First char is OK [11:19:18]request: POST /json_proto HTTP/1.0 [11:19:18]Method: POST [11:19:18]URL: /json_proto [11:19:18]Method is POST - this is cgi request [11:19:18]url: /json_proto [11:19:18]query_string will be loaded in cgi processing [11:19:18]execute_cgi json_proto POST (null) [11:19:18]execute_cgi path=json_proto method=POST [11:19:18]POST find Content-Length [11:19:18]Host: 172.17.44.195:8080 [11:19:18]Content-Length: 679 [11:19:18]Content-Type: application/json [11:19:18] [11:19:18]POST finish read [11:19:18]Found Content-Length = 679 [11:19:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962883", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.250, "sum" : 760.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 760.00, "total" : 760.00, "payments": [ { "type": 0, "sum" : 760.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:18]execute_script... [11:19: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)1962883", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.250, "sum" : 760.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 760.00, "total" : 760.00, "payments": [ { "type": 0, "sum" : 760.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:18]POST & json_proto [11:19:18]process_json_proto [11:19:18]json parsed OK: [11:19:18]protocol is kg_v1.0 [11:19:18]action value=close_receipt [11:19:18]process_action close_receipt [11:19:18]cmd_close_receipt [11:19:18]MH_GetDate [11:19:18]Write to MH i2c: F0 00 00 EE 06 E3 [11:19:18]Write i2c OK [11:19:18]MH_I2C_Read... [11:19:18]Read from MH i2c: F0 [11:19:18]MH_I2C_Read... [11:19:18]Read from MH i2c: F0 09 00 [11:19:18]MH_I2C_Read... [11:19:18]Read from MH i2c: F0 09 00 EE 06 00 37 E7 14 67 82 C9 CF 66 05 [11:19:18]GetLastDocTimeStamp 1729423065 [11:19:18]current date 1729423159 [11:19:18]FM_GetShiftState [11:19:18]SAM_PROTO_GetShiftState [11:19:18]wFMCommunicate request_size=4 [11:19:18]MH_SAM_APDU [11:19:18]CAPDU: 80 13 01 00 [11:19:18]Write to MH i2c: E2 08 00 EF 06 80 13 01 00 00 00 00 00 72 [11:19:18]Write i2c OK [11:19:18]MH_I2C_Read... [11:19:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:18]Read from MH i2c: E2 [11:19:18]MH_I2C_Read... [11:19:18]Read from MH i2c: E2 0E 00 [11:19:18]MH_I2C_Read... [11:19:18]Read from MH i2c: E2 0E 00 EF 06 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 8C [11:19:18]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:19:18]wFMCommunicate OK [11:19:18]SAM_PROTO_GetShiftState done [11:19:18]FM_GetShiftState done [11:19:18]opened in 1729383750 [11:19:18]opened+sec_in_day 1729470150 [11:19:18]quantity*price = 76055 [11:19:18]sum+1 = 76056 [11:19:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 760.00 Внесено: 760.00 СДАЧА: 0.00 НСП 1% : 6.73 НДС 12% : 80.77 Наличными: 760.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 215 20.10.2024 11:19 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227367 ФПД: 232164534958382 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111919&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227367&fm=232164534958382&tin=02508201610067®Number=0000000000091685&sum=76000 [11:19:19]StoreToDocumentArchive [11:19:19]shift 533 fd 227367 [11:19:19]save to /storage/0533/doc_00227367 [11:19:19]save last doc name /storage/0533/doc_00227367 to /storage/kkm_last_doc_name [11:19:19]save OK [11:19:19]Clear old archive folders... [11:19:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:19:19]tlvbuf is 0194AD90 [11:19:19]SAM_PROTO_ClearQueue [11:19:19]wFMCommunicate request_size=4 [11:19:19]MH_SAM_APDU [11:19:19]CAPDU: 80 09 00 00 [11:19:19]Write to MH i2c: E2 08 00 FC 06 80 09 00 00 00 00 00 00 74 [11:19:19]Write i2c OK [11:19:19]MH_I2C_Read... [11:19:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:19:19]Read from MH i2c: E2 [11:19:19]MH_I2C_Read... [11:19:19]Read from MH i2c: E2 03 00 [11:19:19]MH_I2C_Read... [11:19:19]Read from MH i2c: E2 03 00 FC 06 00 90 00 76 [11:19:19]RAPDU: 90 00 [11:19:19]wFMCommunicate OK [11:19:19]SAM_PROTO_ClearQueue done [11:19:19]KKMCreateOFDPacket [11:19:19]OFDProtocolAddRootSTLVToBuf [11:19:19]FM_MakeSignedData [11:19:19]FM_MakeSignedData [11:19:19]SAM_PROTO_SignData [11:19:19]wFMCommunicate request_size=4 [11:19:19]MH_SAM_APDU [11:19:19]CAPDU: 80 0D 01 02 [11:19:19]Write to MH i2c: E2 08 00 FD 06 80 0D 01 02 00 00 00 00 7C [11:19:19]Write i2c OK [11:19:19]MH_I2C_Read... [11:19:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:19:19]Read from MH i2c: E2 [11:19:19]MH_I2C_Read... [11:19:19]Read from MH i2c: E2 03 00 [11:19:19]MH_I2C_Read... [11:19:19]Read from MH i2c: E2 03 00 FD 06 00 90 00 77 [11:19:19]RAPDU: 90 00 [11:19:19]wFMCommunicate OK [11:19:19]wFMCommunicate request_size=255 [11:19:19]MH_SAM_APDU [11:19:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0A 28 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 17 29 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 28 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 1F 00 00 00 00 07 04 06 00 E0 28 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 37 E7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 27 78 03 00 35 04 06 00 D3 [11:19:19]Write to MH i2c: E2 02 01 FE 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 0A 28 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 17 29 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 28 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 1F 00 00 00 00 07 04 06 00 E0 28 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 37 E7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 27 78 03 00 35 04 06 00 D3 00 00 7A [11:19:19]Write i2c OK [11:19:19]MH_I2C_Read... [11:19:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:20]Read from MH i2c: E2 [11:19:20]MH_I2C_Read... [11:19:20]Read from MH i2c: E2 03 00 [11:19:20]MH_I2C_Read... [11:19:20]Read from MH i2c: E2 03 00 FE 06 00 90 00 78 [11:19:20]RAPDU: 90 00 [11:19:20]wFMCommunicate OK [11:19:20]wFMCommunicate request_size=10 [11:19:20]MH_SAM_APDU [11:19:20]CAPDU: 80 0D 02 02 05 27 04 A2 B9 2E [11:19:20]Write to MH i2c: E2 0D 00 FF 06 80 0D 02 02 05 00 27 04 A2 B9 2E 00 00 3D [11:19:20]Write i2c OK [11:19:20]MH_I2C_Read... [11:19:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:20]Read from MH i2c: E2 [11:19:20]MH_I2C_Read... [11:19:20]Read from MH i2c: E2 03 00 [11:19:20]MH_I2C_Read... [11:19:20]Read from MH i2c: E2 03 00 FF 06 00 90 00 79 [11:19:20]RAPDU: 90 00 [11:19:20]wFMCommunicate OK [11:19:20]wFMCommunicate request_size=4 [11:19:20]MH_SAM_APDU [11:19:20]CAPDU: 80 0D 03 02 [11:19:20]Write to MH i2c: E2 08 00 00 07 80 0D 03 02 00 00 00 00 82 [11:19:20]Write i2c OK [11:19:20]MH_I2C_Read... [11:19:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:19:20]Read from MH i2c: E2 [11:19:20]MH_I2C_Read... [11:19:20]Read from MH i2c: E2 0B 00 [11:19:20]MH_I2C_Read... [11:19:20]Read from MH i2c: E2 0B 00 00 07 00 AE 25 93 7D DD A0 F9 A5 90 00 81 [11:19:20]RAPDU: AE 25 93 7D DD A0 F9 A5 90 00 [11:19:20]wFMCommunicate OK [11:19:20]SAM_PROTO_SignData done [11:19:20]FM_MakeSignedData done [11:19:20]CreateOFDProtocolMessage [11:19:20]wFMCommunicate request_size=4 [11:19:20]MH_SAM_APDU [11:19:20]CAPDU: 80 11 00 00 [11:19:20]Write to MH i2c: E2 08 00 01 07 80 11 00 00 00 00 00 00 82 [11:19:20]Write i2c OK [11:19:20]MH_I2C_Read... [11:19:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:20]Read from MH i2c: E2 [11:19:20]MH_I2C_Read... [11:19:20]Read from MH i2c: E2 17 00 [11:19:20]MH_I2C_Read... [11:19:20]Read from MH i2c: E2 17 00 01 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D9 [11:19:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:19:20]wFMCommunicate OK [11:19:20]CreateOFDProtocolMessage done [11:19:20]OFDSenderStorePacket 227367 [11:19:20]StoreOFDPacket docnum=227367 [11:19:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 5C 00 07 01 21 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0A 28 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 17 29 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 28 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 1F 00 00 00 00 07 04 06 00 E0 28 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 37 E7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 27 78 03 00 35 04 06 00 D3 27 04 A2 B9 2E AE 25 93 7D DD A0 F9 A5 [11:19:20]CheckFolder [11:19:20]dirname=/storage/ofd_packets [11:19:20]CheckFolder done [11:19:20]ProducePacketName [11:19:20]name=ofd_packets/00227367 [11:19:20]NVStorageSaveData ofd_packets/00227367 [11:19:20]File name is /storage/ofd_packets/00227367 [11:19:20]Write 301 bytes [11:19:20]NVStorageSaveData done [11:19:20]OFDSenderStorePacket done [11:19:20]KKMCreateOFDPacket done [11:19:20]NVStorageSaveData kkm_last_timestamp [11:19:20]File name is /storage/kkm_last_timestamp [11:19:20]Write 4 bytes [11:19:20]NVStorageSaveData done [11:19:20]OFD Sender: Processing packet 227367 [packets to send 38, broken 37] [11:19:20]ProducePacketName [11:19:20]name=ofd_packets/00227367 [11:19:20]OFD Sender: To server: pG, [11:19:20]CommunicateWithHost lk.salyk.kg:30040 [11:19:20]ConnectInit lk.salyk.kg [11:19:20]ExternCall_PrintAddStr [11:19:20]wPrintStart [11:19:20]Write to MH i2c: 01 00 00 02 07 09 [11:19:20]Write i2c OK [11:19:20]MH_I2C_Read... [11:19:20]Read from MH i2c: 01 [11:19:20]MH_I2C_Read... [11:19:20]Read from MH i2c: 01 07 00 [11:19:20]MH_I2C_Read... [11:19:20]Read from MH i2c: 01 07 00 02 07 00 00 00 00 00 FF 0F 1E [11:19:20]RasterBufferAndPrint [11:19:20]line Счет N : (1)1962883 [11:19:20]line ИНН: 02508201610067 [11:19:20]line Контрольно-Кассовый Чек [11:19:20]line ПРОДАЖА [11:19:20]line ТРК (МРК, ГНК) : 64 [11:19:20]line Товар: 2710124500 [11:19:20]line Аи-95-К-5 [11:19:20]line 10.250 * 74.20 [11:19:20]line = 760.55 [11:19:20]line НДС 12% НСП 1% [11:19:20]line > о реализуемом товаре [11:19:20]line ОКРУГЛЕНИЕ: -0.55 [11:19:20]line ИТОГО: 760.00 [11:19:20]line Внесено: 760.00 [11:19:20]line СДАЧА: 0.00 [11:19:20]line НСП 1% : 6.73 [11:19:20]line НДС 12% : 80.77 [11:19:20]line Наличными: 760.00 [11:19:20]line Безнал.: 0.00 [11:19:20]line Место: АЗС № 133 "Партнер Нефть" [11:19:20]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:19:20]line СНО: Общий режим [11:19:20]line Чек 215 20.10.2024 11:19 [11:19:20]line Смена: 533 ФФД: 1.0 [11:19:20]line ЗНМ: 0300000091 [11:19:20]line РНМ: 0000000000091685 [11:19:20]line Версия ККМ: 001 [11:19:20]line ФМ: 0000000000871839 [11:19:20]line ФД: 227367 [11:19:20]line ФПД: 232164534958382 [11:19:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111919&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227367&fm=232164534958382&tin=02508201610067®Number=0000000000091685&sum=76000 [11:19:20]Connected sock=11 [11:19: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 33 39 0F 01 00 00 5C 00 07 01 21 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0A 28 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 17 29 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 28 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 1F 00 00 00 00 07 04 06 00 E0 28 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 37 E7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 27 78 03 00 35 04 06 00 D3 27 04 A2 B9 2E AE 25 93 7D DD A0 F9 A5 [11:19:20]written 0, free lines is 4095 [11:19: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 33 39 4F 00 00 00 A5 8D 47 00 2C B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 27 78 03 00 F4 03 04 00 36 92 14 67 B6 04 01 00 00 3E 2B B1 B8 93 3F A1 07 [11:19:20]CommunicateWithHost err = 0 [11:19:20]CheckOFDResponse [11:19:20]1017 (14) - 77093643461234 [11:19:20]1041 (16) - 0000000000871839 [11:19:20]1040 (4) - 227367 [11:19:20]1012 (4) - 20.10.2024 05:16 [11:19:20]1206 (1) - 0 [11:19:20]OFD Sender: Remove packet 227367 [11:19:20]ProducePacketName [11:19:20]name=ofd_packets/00227367 [11:19:20]NVStorageDeleteData [11:19:21]Write to MH i2c: 01 00 00 2C 07 33 [11:19:21]Write i2c OK [11:19:21]MH_I2C_Read... [11:19:21]Read from MH i2c: 01 [11:19:21]MH_I2C_Read... [11:19:21]Read from MH i2c: 01 07 00 [11:19:21]MH_I2C_Read... [11:19:21]Read from MH i2c: 01 07 00 2C 07 00 00 00 00 00 02 0D 49 [11:19:21]RasterBufferAndPrint [11:19:21]line [11:19:21]line [11:19:21]line [11:19:21]line [11:19:21]line [11:19:21]written 0, free lines is 3336 [11:19:21]process_action close_receipt done [11:19:21]requested_data is exist [11:19:21]produce_requested_data [11:19:21]requested_item fm.sn is exist - process it [11:19:21]wFMCommunicate request_size=4 [11:19:21]MH_SAM_APDU [11:19:21]CAPDU: 80 11 00 00 [11:19:21]Write to MH i2c: E2 08 00 33 07 80 11 00 00 00 00 00 00 B4 [11:19:21]Write i2c OK [11:19:21]MH_I2C_Read... [11:19:21]Read from MH i2c: E2 [11:19:21]MH_I2C_Read... [11:19:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:21]Read from MH i2c: E2 17 00 [11:19:21]MH_I2C_Read... [11:19:21]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 33 39 90 00 0B [11:19:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:19:21]wFMCommunicate OK [11:19:21]requested_item fd.num is exist - process it [11:19:21]SAM_PROTO_GetFieldsCounters [11:19:21]wFMCommunicate request_size=4 [11:19:21]MH_SAM_APDU [11:19:21]CAPDU: 80 13 00 00 [11:19:21]Write to MH i2c: E2 08 00 34 07 80 13 00 00 00 00 00 00 B7 [11:19:21]Write i2c OK [11:19:21]MH_I2C_Read... [11:19:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:19:21]Read from MH i2c: E2 [11:19:21]MH_I2C_Read... [11:19:21]Read from MH i2c: E2 62 00 [11:19:21]MH_I2C_Read... [11:19:21]Read from MH i2c: E2 62 00 34 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 27 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [11:19: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 27 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:19:21]wFMCommunicate OK [11:19:21]SAM_PROTO_GetFieldsCounters done [11:19:21]requested_item shift.num is exist - process it [11:19:21]requested_item shift.opened is exist - process it [11:19:21]req_shift_opened [11:19:21]FM_GetShiftState [11:19:21]SAM_PROTO_GetShiftState [11:19:21]wFMCommunicate request_size=4 [11:19:21]MH_SAM_APDU [11:19:21]CAPDU: 80 13 01 00 [11:19:21]Write to MH i2c: E2 08 00 35 07 80 13 01 00 00 00 00 00 B9 [11:19:21]OFD Sender: No OFD packet to send [11:19:21]Write i2c OK [11:19:21]MH_I2C_Read... [11:19:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:21]Read from MH i2c: E2 [11:19:21]MH_I2C_Read... [11:19:21]Read from MH i2c: E2 0E 00 [11:19:21]MH_I2C_Read... [11:19:21]Read from MH i2c: E2 0E 00 35 07 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 D3 [11:19:21]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:19:21]wFMCommunicate OK [11:19:21]SAM_PROTO_GetShiftState done [11:19:21]FM_GetShiftState done [11:19:21]req_shift_opened done [11:19:21]requested_item shift.open_date is exist - process it [11:19:21]req_shift_open_date [11:19:21]req_shift_open_date done [11:19:21]produce_requested_data done [11:19:21]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227367,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [11:19:21]process_action_free close_receipt [11:19:21]json_value_free [11:19:21]json_value_free done [11:19:21]process_json_proto returns [11:19:21]Send response to host [11:19:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227367,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [11:19:21]free response buf [11:19:21]execute_script done [11:19:21]execute_script returns [11:19:21]free content buf [11:19:21]Sock 8.Close socket [11:19:21]Sock 8.Thread stoped [11:19:22]accept exits with 9 [11:19:22]New connection [11:19:22]New thread 3066543460 created [11:19:22]Thread 3066686820 joined [11:19:22]Waiting for new connection... [11:19:22] Sock 9.Parse request [11:19:22]Sock 9.Check first char [11:19:22]Sock 9.First char is OK [11:19:22]request: POST /json_proto HTTP/1.0 [11:19:22]Method: POST [11:19:22]URL: /json_proto [11:19:22]Method is POST - this is cgi request [11:19:22]url: /json_proto [11:19:22]query_string will be loaded in cgi processing [11:19:22]execute_cgi json_proto POST (null) [11:19:22]execute_cgi path=json_proto method=POST [11:19:22]POST find Content-Length [11:19:22]Host: 172.17.44.195:8080 [11:19:22]Content-Length: 660 [11:19:22]Content-Type: application/json [11:19:22] [11:19:22]POST finish read [11:19:22]Found Content-Length = 660 [11:19:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962882", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 10.240, "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" ] } } [11:19:22]execute_script... [11:19: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)1962882", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 10.240, "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" ] } } [11:19:22]POST & json_proto [11:19:22]process_json_proto [11:19:22]json parsed OK: [11:19:22]protocol is kg_v1.0 [11:19:22]action value=close_receipt [11:19:22]process_action close_receipt [11:19:22]cmd_close_receipt [11:19:22]MH_GetDate [11:19:22]Write to MH i2c: F0 00 00 36 07 2C [11:19:22]Write i2c OK [11:19:22]MH_I2C_Read... [11:19:22]Read from MH i2c: F0 [11:19:22]MH_I2C_Read... [11:19:22]Read from MH i2c: F0 09 00 [11:19:22]MH_I2C_Read... [11:19:22]Read from MH i2c: F0 09 00 36 07 00 3A E7 14 67 82 C9 CF 66 51 [11:19:22]GetLastDocTimeStamp 1729423159 [11:19:22]current date 1729423162 [11:19:22]FM_GetShiftState [11:19:22]SAM_PROTO_GetShiftState [11:19:22]wFMCommunicate request_size=4 [11:19:22]MH_SAM_APDU [11:19:22]CAPDU: 80 13 01 00 [11:19:22]Write to MH i2c: E2 08 00 37 07 80 13 01 00 00 00 00 00 BB [11:19:22]Write i2c OK [11:19:22]MH_I2C_Read... [11:19:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:22]Read from MH i2c: E2 [11:19:22]MH_I2C_Read... [11:19:22]Read from MH i2c: E2 0E 00 [11:19:22]MH_I2C_Read... [11:19:22]Read from MH i2c: E2 0E 00 37 07 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 D5 [11:19:22]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:19:22]wFMCommunicate OK [11:19:22]SAM_PROTO_GetShiftState done [11:19:22]FM_GetShiftState done [11:19:22]opened in 1729383750 [11:19:22]opened+sec_in_day 1729470150 [11:19:22]quantity*price = 70041 [11:19:22]sum+1 = 70043 [11:19:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 216 20.10.2024 11:19 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227368 ФПД: 250361985343165 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111922&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227368&fm=250361985343165&tin=02508201610067®Number=0000000000091685&sum=70000 [11:19:23]StoreToDocumentArchive [11:19:23]shift 533 fd 227368 [11:19:23]save to /storage/0533/doc_00227368 [11:19:23]save last doc name /storage/0533/doc_00227368 to /storage/kkm_last_doc_name [11:19:23]save OK [11:19:23]Clear old archive folders... [11:19:23]ProcessDocumentItem done err = 0, tmpTLVsize=244 [11:19:23]tlvbuf is 0184A080 [11:19:23]SAM_PROTO_ClearQueue [11:19:23]wFMCommunicate request_size=4 [11:19:23]MH_SAM_APDU [11:19:23]CAPDU: 80 09 00 00 [11:19:23]Write to MH i2c: E2 08 00 44 07 80 09 00 00 00 00 00 00 BD [11:19:23]Write i2c OK [11:19:23]MH_I2C_Read... [11:19:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:19:23]Read from MH i2c: E2 [11:19:23]MH_I2C_Read... [11:19:23]Read from MH i2c: E2 03 00 [11:19:23]MH_I2C_Read... [11:19:23]Read from MH i2c: E2 03 00 44 07 00 90 00 BF [11:19:23]RAPDU: 90 00 [11:19:23]wFMCommunicate OK [11:19:23]SAM_PROTO_ClearQueue done [11:19:23]KKMCreateOFDPacket [11:19:23]OFDProtocolAddRootSTLVToBuf [11:19:23]FM_MakeSignedData [11:19:23]FM_MakeSignedData [11:19:23]SAM_PROTO_SignData [11:19:23]wFMCommunicate request_size=4 [11:19:23]MH_SAM_APDU [11:19:23]CAPDU: 80 0D 01 02 [11:19:23]Write to MH i2c: E2 08 00 45 07 80 0D 01 02 00 00 00 00 C5 [11:19:23]Write i2c OK [11:19:23]MH_I2C_Read... [11:19:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:19:23]Read from MH i2c: E2 [11:19:23]MH_I2C_Read... [11:19:23]Read from MH i2c: E2 03 00 [11:19:23]MH_I2C_Read... [11:19:23]Read from MH i2c: E2 03 00 45 07 00 90 00 C0 [11:19:23]RAPDU: 90 00 [11:19:23]wFMCommunicate OK [11:19:23]wFMCommunicate request_size=253 [11:19:23]MH_SAM_APDU [11:19:23]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 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 D8 00 00 00 F4 03 04 00 3A E7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 28 78 03 00 35 04 06 00 E3 B3 F1 33 9E BD [11:19:23]Write to MH i2c: E2 00 01 46 07 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 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 D8 00 00 00 F4 03 04 00 3A E7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 28 78 03 00 35 04 06 00 E3 B3 F1 33 9E BD 00 00 0B [11:19:23]Write i2c OK [11:19:23]MH_I2C_Read... [11:19:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:24]Read from MH i2c: E2 [11:19:24]MH_I2C_Read... [11:19:24]Read from MH i2c: E2 03 00 [11:19:24]MH_I2C_Read... [11:19:24]Read from MH i2c: E2 03 00 46 07 00 90 00 C1 [11:19:24]RAPDU: 90 00 [11:19:24]wFMCommunicate OK [11:19:24]wFMCommunicate request_size=4 [11:19:24]MH_SAM_APDU [11:19:24]CAPDU: 80 0D 03 02 [11:19:24]Write to MH i2c: E2 08 00 47 07 80 0D 03 02 00 00 00 00 C9 [11:19:24]Write i2c OK [11:19:24]MH_I2C_Read... [11:19:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:19:24]Read from MH i2c: E2 [11:19:24]MH_I2C_Read... [11:19:24]Read from MH i2c: E2 0B 00 [11:19:24]MH_I2C_Read... [11:19:24]Read from MH i2c: E2 0B 00 47 07 00 1C CD 0C 2C AC 87 99 D9 90 00 90 [11:19:24]RAPDU: 1C CD 0C 2C AC 87 99 D9 90 00 [11:19:24]wFMCommunicate OK [11:19:24]SAM_PROTO_SignData done [11:19:24]FM_MakeSignedData done [11:19:24]CreateOFDProtocolMessage [11:19:24]wFMCommunicate request_size=4 [11:19:24]MH_SAM_APDU [11:19:24]CAPDU: 80 11 00 00 [11:19:24]Write to MH i2c: E2 08 00 48 07 80 11 00 00 00 00 00 00 C9 [11:19:24]Write i2c OK [11:19:24]MH_I2C_Read... [11:19:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:24]Read from MH i2c: E2 [11:19:24]MH_I2C_Read... [11:19:24]Read from MH i2c: E2 17 00 [11:19:24]MH_I2C_Read... [11:19:24]Read from MH i2c: E2 17 00 48 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 20 [11:19:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:19:24]wFMCommunicate OK [11:19:24]CreateOFDProtocolMessage done [11:19:24]OFDSenderStorePacket 227368 [11:19:24]StoreOFDPacket docnum=227368 [11:19:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 8F 9A 00 01 87 AC 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 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 D8 00 00 00 F4 03 04 00 3A E7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 28 78 03 00 35 04 06 00 E3 B3 F1 33 9E BD 1C CD 0C 2C AC 87 99 D9 [11:19:24]CheckFolder [11:19:24]dirname=/storage/ofd_packets [11:19:24]CheckFolder done [11:19:24]ProducePacketName [11:19:24]name=ofd_packets/00227368 [11:19:24]NVStorageSaveData ofd_packets/00227368 [11:19:24]File name is /storage/ofd_packets/00227368 [11:19:24]Write 294 bytes [11:19:24]NVStorageSaveData done [11:19:24]OFDSenderStorePacket done [11:19:24]KKMCreateOFDPacket done [11:19:24]NVStorageSaveData kkm_last_timestamp [11:19:24]File name is /storage/kkm_last_timestamp [11:19:24]Write 4 bytes [11:19:24]NVStorageSaveData done [11:19:24]ExternCall_PrintAddStr [11:19:24]wPrintStart [11:19:24]Write to MH i2c: 01 00 00 49 07 50 [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 49 07 00 00 00 00 00 FF 0F 65 [11:19:24]RasterBufferAndPrint [11:19:24]line Счет N : (1)1962882 [11:19:24]line ИНН: 02508201610067 [11:19:24]line Контрольно-Кассовый Чек [11:19:24]line ПРОДАЖА [11:19:24]line ТРК (МРК, ГНК) : 32 [11:19:24]line Товар: 2710124130 [11:19:24]line SU-92 [11:19:24]line 10.240 * 68.40 [11:19:24]line = 700.42 [11:19:24]line НДС 12% НСП 1% [11:19:24]line > о реализуемом товаре [11:19:24]line ОКРУГЛЕНИЕ: -0.42 [11:19:24]line ИТОГО: 700.00 [11:19:24]line Внесено: 700.00 [11:19:24]line СДАЧА: 0.00 [11:19:24]line НСП 1% : 6.20 [11:19:24]line НДС 12% : 74.38 [11:19:24]line Наличными: 700.00 [11:19:24]line Безнал.: 0.00 [11:19:24]line Место: АЗС № 133 "Партнер Нефть" [11:19:24]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:19:24]line СНО: Общий режим [11:19:24]line Чек 216 20.10.2024 11:19 [11:19:24]line Смена: 533 ФФД: 1.0 [11:19:24]line ЗНМ: 0300000091 [11:19:24]line РНМ: 0000000000091685 [11:19:24]line Версия ККМ: 001 [11:19:24]line ФМ: 0000000000871839 [11:19:24]line ФД: 227368 [11:19:24]line ФПД: 250361985343165 [11:19:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111922&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227368&fm=250361985343165&tin=02508201610067®Number=0000000000091685&sum=70000 [11:19:24]OFD Sender: Processing packet 227368 [packets to send 38, broken 37] [11:19:24]ProducePacketName [11:19:24]name=ofd_packets/00227368 [11:19:24]OFD Sender: To server: pG, [11:19:24]CommunicateWithHost lk.salyk.kg:30040 [11:19:24]ConnectInit lk.salyk.kg [11:19:24]written 0, free lines is 4095 [11:19:24]Connected sock=10 [11:19: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 33 39 08 01 00 00 8F 9A 00 01 87 AC 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 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 D8 00 00 00 F4 03 04 00 3A E7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 28 78 03 00 35 04 06 00 E3 B3 F1 33 9E BD 1C CD 0C 2C AC 87 99 D9 [11:19: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 33 39 4F 00 00 00 18 28 47 00 B8 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 33 39 10 04 04 00 28 78 03 00 F4 03 04 00 3A 92 14 67 B6 04 01 00 00 26 42 D1 E1 0A 4E 02 DA [11:19:24]CommunicateWithHost err = 0 [11:19:24]CheckOFDResponse [11:19:24]1017 (14) - 77093643461234 [11:19:24]1041 (16) - 0000000000871839 [11:19:24]1040 (4) - 227368 [11:19:24]1012 (4) - 20.10.2024 05:16 [11:19:24]1206 (1) - 0 [11:19:24]OFD Sender: Remove packet 227368 [11:19:24]ProducePacketName [11:19:24]name=ofd_packets/00227368 [11:19:24]NVStorageDeleteData [11:19:24]Write to MH i2c: 01 00 00 73 07 7A [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 73 07 00 00 00 00 00 FE 0C 8B [11:19:24]RasterBufferAndPrint [11:19:24]line [11:19:24]line [11:19:24]line [11:19:24]line [11:19:24]line [11:19:24]written 0, free lines is 3338 [11:19:24]process_action close_receipt done [11:19:24]requested_data is exist [11:19:24]produce_requested_data [11:19:24]requested_item fm.sn is exist - process it [11:19:24]wFMCommunicate request_size=4 [11:19:24]MH_SAM_APDU [11:19:24]CAPDU: 80 11 00 00 [11:19:24]Write to MH i2c: E2 08 00 7A 07 80 11 00 00 00 00 00 00 FB [11:19:24]Write i2c OK [11:19:24]MH_I2C_Read... [11:19:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:25]Read from MH i2c: E2 [11:19:25]MH_I2C_Read... [11:19:25]Read from MH i2c: E2 17 00 [11:19:25]MH_I2C_Read... [11:19:25]Read from MH i2c: E2 17 00 7A 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 52 [11:19:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:19:25]wFMCommunicate OK [11:19:25]requested_item fd.num is exist - process it [11:19:25]SAM_PROTO_GetFieldsCounters [11:19:25]wFMCommunicate request_size=4 [11:19:25]MH_SAM_APDU [11:19:25]CAPDU: 80 13 00 00 [11:19:25]Write to MH i2c: E2 08 00 7B 07 80 13 00 00 00 00 00 00 FE [11:19:25]Write i2c OK [11:19:25]MH_I2C_Read... [11:19:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:19:25]Read from MH i2c: E2 [11:19:25]MH_I2C_Read... [11:19:25]Read from MH i2c: E2 62 00 [11:19:25]MH_I2C_Read... [11:19:25]Read from MH i2c: E2 62 00 7B 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 28 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [11:19: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 28 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:19:25]wFMCommunicate OK [11:19:25]SAM_PROTO_GetFieldsCounters done [11:19:25]requested_item shift.num is exist - process it [11:19:25]requested_item shift.opened is exist - process it [11:19:25]req_shift_opened [11:19:25]FM_GetShiftState [11:19:25]SAM_PROTO_GetShiftState [11:19:25]wFMCommunicate request_size=4 [11:19:25]MH_SAM_APDU [11:19:25]CAPDU: 80 13 01 00 [11:19:25]Write to MH i2c: E2 08 00 7C 07 80 13 01 00 00 00 00 00 00 [11:19:25]Write i2c OK [11:19:25]MH_I2C_Read... [11:19:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:25]Read from MH i2c: E2 [11:19:25]MH_I2C_Read... [11:19:25]Read from MH i2c: E2 0E 00 [11:19:25]MH_I2C_Read... [11:19:25]Read from MH i2c: E2 0E 00 7C 07 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 1A [11:19:25]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:19:25]wFMCommunicate OK [11:19:25]SAM_PROTO_GetShiftState done [11:19:25]FM_GetShiftState done [11:19:25]req_shift_opened done [11:19:25]requested_item shift.open_date is exist - process it [11:19:25]req_shift_open_date [11:19:25]req_shift_open_date done [11:19:25]produce_requested_data done [11:19:25]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227368,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [11:19:25]process_action_free close_receipt [11:19:25]json_value_free [11:19:25]json_value_free done [11:19:25]process_json_proto returns [11:19:25]Send response to host [11:19:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227368,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [11:19:25]free response buf [11:19:25]execute_script done [11:19:25]execute_script returns [11:19:25]free content buf [11:19:25]Sock 9.Close socket [11:19:25]Sock 9.Thread stoped [11:19:25]OFD Sender: No OFD packet to send [11:19:30]OFD Sender: No OFD packet to send [11:19:35]OFD Sender: No OFD packet to send [11:19:40]OFD Sender: No OFD packet to send [11:19:45]OFD Sender: No OFD packet to send [11:19:50]OFD Sender: No OFD packet to send [11:19:55]OFD Sender: No OFD packet to send [11:20:00]OFD Sender: No OFD packet to send [11:20:05]OFD Sender: No OFD packet to send [11:20:10]OFD Sender: No OFD packet to send [11:20:15]OFD Sender: No OFD packet to send [11:20:15]accept exits with 8 [11:20:15]New connection [11:20:15]New thread 3066686820 created [11:20:15]Thread 3066543460 joined [11:20:15]Waiting for new connection... [11:20:15] Sock 8.Parse request [11:20:15]Sock 8.Check first char [11:20:15]Sock 8.First char is OK [11:20:15]request: POST /json_proto HTTP/1.0 [11:20:15]Method: POST [11:20:15]URL: /json_proto [11:20:15]Method is POST - this is cgi request [11:20:15]url: /json_proto [11:20:15]query_string will be loaded in cgi processing [11:20:15]execute_cgi json_proto POST (null) [11:20:15]execute_cgi path=json_proto method=POST [11:20:15]POST find Content-Length [11:20:15]Host: 172.17.44.195:8080 [11:20:15]Content-Length: 678 [11:20:15]Content-Type: application/json [11:20:15] [11:20:15]POST finish read [11:20:15]Found Content-Length = 678 [11:20:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962884", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:15]execute_script... [11:20:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962884", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:15]POST & json_proto [11:20:15]process_json_proto [11:20:15]json parsed OK: [11:20:15]protocol is kg_v1.0 [11:20:15]action value=close_receipt [11:20:15]process_action close_receipt [11:20:15]cmd_close_receipt [11:20:15]MH_GetDate [11:20:15]Write to MH i2c: F0 00 00 7D 07 73 [11:20:15]Write i2c OK [11:20:15]MH_I2C_Read... [11:20:15]Read from MH i2c: F0 [11:20:15]MH_I2C_Read... [11:20:15]Read from MH i2c: F0 09 00 [11:20:15]MH_I2C_Read... [11:20:15]Read from MH i2c: F0 09 00 7D 07 00 70 E7 14 67 82 C9 CF 66 CE [11:20:15]GetLastDocTimeStamp 1729423162 [11:20:15]current date 1729423216 [11:20:15]FM_GetShiftState [11:20:15]SAM_PROTO_GetShiftState [11:20:15]wFMCommunicate request_size=4 [11:20:15]MH_SAM_APDU [11:20:15]CAPDU: 80 13 01 00 [11:20:15]Write to MH i2c: E2 08 00 7E 07 80 13 01 00 00 00 00 00 02 [11:20:15]Write i2c OK [11:20:15]MH_I2C_Read... [11:20:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:16]Read from MH i2c: E2 [11:20:16]MH_I2C_Read... [11:20:16]Read from MH i2c: E2 0E 00 [11:20:16]MH_I2C_Read... [11:20:16]Read from MH i2c: E2 0E 00 7E 07 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 1C [11:20:16]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:20:16]wFMCommunicate OK [11:20:16]SAM_PROTO_GetShiftState done [11:20:16]FM_GetShiftState done [11:20:16]opened in 1729383750 [11:20:16]opened+sec_in_day 1729470150 [11:20:16]quantity*price = 50041 [11:20:16]sum+1 = 50042 [11:20:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 217 20.10.2024 11:20 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227369 ФПД: 46669294513170 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112016&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227369&fm=46669294513170&tin=02508201610067®Number=0000000000091685&sum=50000 [11:20:17]StoreToDocumentArchive [11:20:17]shift 533 fd 227369 [11:20:17]save to /storage/0533/doc_00227369 [11:20:17]save last doc name /storage/0533/doc_00227369 to /storage/kkm_last_doc_name [11:20:17]save OK [11:20:17]Clear old archive folders... [11:20:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:20:17]tlvbuf is 01949F40 [11:20:17]SAM_PROTO_ClearQueue [11:20:17]wFMCommunicate request_size=4 [11:20:17]MH_SAM_APDU [11:20:17]CAPDU: 80 09 00 00 [11:20:17]Write to MH i2c: E2 08 00 8B 07 80 09 00 00 00 00 00 00 04 [11:20:17]Write i2c OK [11:20:17]MH_I2C_Read... [11:20:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:20:17]Read from MH i2c: E2 [11:20:17]MH_I2C_Read... [11:20:17]Read from MH i2c: E2 03 00 [11:20:17]MH_I2C_Read... [11:20:17]Read from MH i2c: E2 03 00 8B 07 00 90 00 06 [11:20:17]RAPDU: 90 00 [11:20:17]wFMCommunicate OK [11:20:17]SAM_PROTO_ClearQueue done [11:20:17]KKMCreateOFDPacket [11:20:17]OFDProtocolAddRootSTLVToBuf [11:20:17]FM_MakeSignedData [11:20:17]FM_MakeSignedData [11:20:17]SAM_PROTO_SignData [11:20:17]wFMCommunicate request_size=4 [11:20:17]MH_SAM_APDU [11:20:17]CAPDU: 80 0D 01 02 [11:20:17]Write to MH i2c: E2 08 00 8C 07 80 0D 01 02 00 00 00 00 0C [11:20:17]Write i2c OK [11:20:17]MH_I2C_Read... [11:20:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:20:17]Read from MH i2c: E2 [11:20:17]MH_I2C_Read... [11:20:17]Read from MH i2c: E2 03 00 [11:20:17]MH_I2C_Read... [11:20:17]Read from MH i2c: E2 03 00 8C 07 00 90 00 07 [11:20:17]RAPDU: 90 00 [11:20:17]wFMCommunicate OK [11:20:17]wFMCommunicate request_size=255 [11:20:17]MH_SAM_APDU [11:20:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 70 E7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 29 78 03 00 35 04 06 00 2A [11:20:17]Write to MH i2c: E2 02 01 8D 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 70 E7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 29 78 03 00 35 04 06 00 2A 00 00 33 [11:20:17]Write i2c OK [11:20:17]MH_I2C_Read... [11:20:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:17]Read from MH i2c: E2 [11:20:17]MH_I2C_Read... [11:20:17]Read from MH i2c: E2 03 00 [11:20:17]MH_I2C_Read... [11:20:17]Read from MH i2c: E2 03 00 8D 07 00 90 00 08 [11:20:17]RAPDU: 90 00 [11:20:17]wFMCommunicate OK [11:20:17]wFMCommunicate request_size=10 [11:20:17]MH_SAM_APDU [11:20:17]CAPDU: 80 0D 02 02 05 72 0A B8 AC 12 [11:20:17]Write to MH i2c: E2 0D 00 8E 07 80 0D 02 02 05 00 72 0A B8 AC 12 00 00 0B [11:20:17]Write i2c OK [11:20:17]MH_I2C_Read... [11:20:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:17]Read from MH i2c: E2 [11:20:17]MH_I2C_Read... [11:20:17]Read from MH i2c: E2 03 00 [11:20:17]MH_I2C_Read... [11:20:17]Read from MH i2c: E2 03 00 8E 07 00 90 00 09 [11:20:17]RAPDU: 90 00 [11:20:17]wFMCommunicate OK [11:20:17]wFMCommunicate request_size=4 [11:20:17]MH_SAM_APDU [11:20:17]CAPDU: 80 0D 03 02 [11:20:17]Write to MH i2c: E2 08 00 8F 07 80 0D 03 02 00 00 00 00 11 [11:20:17]Write i2c OK [11:20:17]MH_I2C_Read... [11:20:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:20:17]Read from MH i2c: E2 [11:20:17]MH_I2C_Read... [11:20:17]Read from MH i2c: E2 0B 00 [11:20:17]MH_I2C_Read... [11:20:17]Read from MH i2c: E2 0B 00 8F 07 00 5B F6 02 08 A8 35 9B 29 90 00 0E [11:20:17]RAPDU: 5B F6 02 08 A8 35 9B 29 90 00 [11:20:17]wFMCommunicate OK [11:20:17]SAM_PROTO_SignData done [11:20:17]FM_MakeSignedData done [11:20:17]CreateOFDProtocolMessage [11:20:17]wFMCommunicate request_size=4 [11:20:17]MH_SAM_APDU [11:20:17]CAPDU: 80 11 00 00 [11:20:17]Write to MH i2c: E2 08 00 90 07 80 11 00 00 00 00 00 00 11 [11:20:17]Write i2c OK [11:20:17]MH_I2C_Read... [11:20:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:17]Read from MH i2c: E2 [11:20:17]MH_I2C_Read... [11:20:17]Read from MH i2c: E2 17 00 [11:20:17]MH_I2C_Read... [11:20:17]Read from MH i2c: E2 17 00 90 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 68 [11:20:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:20:17]wFMCommunicate OK [11:20:17]CreateOFDProtocolMessage done [11:20:17]OFDSenderStorePacket 227369 [11:20:17]StoreOFDPacket docnum=227369 [11:20:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 32 A2 07 01 53 E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 70 E7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 29 78 03 00 35 04 06 00 2A 72 0A B8 AC 12 5B F6 02 08 A8 35 9B 29 [11:20:17]CheckFolder [11:20:17]dirname=/storage/ofd_packets [11:20:17]CheckFolder done [11:20:17]ProducePacketName [11:20:17]name=ofd_packets/00227369 [11:20:17]NVStorageSaveData ofd_packets/00227369 [11:20:17]File name is /storage/ofd_packets/00227369 [11:20:17]Write 301 bytes [11:20:17]NVStorageSaveData done [11:20:17]OFDSenderStorePacket done [11:20:17]KKMCreateOFDPacket done [11:20:17]NVStorageSaveData kkm_last_timestamp [11:20:17]File name is /storage/kkm_last_timestamp [11:20:17]Write 4 bytes [11:20:17]NVStorageSaveData done [11:20:17]ExternCall_PrintAddStr [11:20:17]wPrintStart [11:20:17]Write to MH i2c: 01 00 00 91 07 98 [11:20:17]Write i2c OK [11:20:17]MH_I2C_Read... [11:20:17]Read from MH i2c: 01 [11:20:17]MH_I2C_Read... [11:20:17]Read from MH i2c: 01 07 00 [11:20:17]MH_I2C_Read... [11:20:17]Read from MH i2c: 01 07 00 91 07 00 00 00 00 00 FF 0F AD [11:20:17]RasterBufferAndPrint [11:20:17]line Счет N : (1)1962884 [11:20:17]line ИНН: 02508201610067 [11:20:17]line Контрольно-Кассовый Чек [11:20:17]line ПРОДАЖА [11:20:17]line ТРК (МРК, ГНК) : 43 [11:20:17]line Товар: 2710124130 [11:20:17]line Аи-92-К-5 [11:20:17]line 7.480 * 66.90 [11:20:17]line = 500.41 [11:20:17]line НДС 12% НСП 1% [11:20:17]line > о реализуемом товаре [11:20:17]line ОКРУГЛЕНИЕ: -0.41 [11:20:17]line ИТОГО: 500.00 [11:20:17]line Внесено: 500.00 [11:20:17]line СДАЧА: 0.00 [11:20:17]line НСП 1% : 4.43 [11:20:17]line НДС 12% : 53.14 [11:20:17]line Наличными: 500.00 [11:20:17]line Безнал.: 0.00 [11:20:17]line Место: АЗС № 133 "Партнер Нефть" [11:20:17]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:20:17]line СНО: Общий режим [11:20:17]line Чек 217 20.10.2024 11:20 [11:20:17]line Смена: 533 ФФД: 1.0 [11:20:17]line ЗНМ: 0300000091 [11:20:17]line РНМ: 0000000000091685 [11:20:17]line Версия ККМ: 001 [11:20:17]line ФМ: 0000000000871839 [11:20:17]line ФД: 227369 [11:20:17]line ФПД: 46669294513170 [11:20:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112016&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227369&fm=46669294513170&tin=02508201610067®Number=0000000000091685&sum=50000 [11:20:18]OFD Sender: Processing packet 227369 [packets to send 38, broken 37] [11:20:18]ProducePacketName [11:20:18]name=ofd_packets/00227369 [11:20:18]OFD Sender: To server: pG, [11:20:18]CommunicateWithHost lk.salyk.kg:30040 [11:20:18]ConnectInit lk.salyk.kg [11:20:18]written 0, free lines is 4095 [11:20:18]Connected sock=10 [11:20: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 33 39 0F 01 00 00 32 A2 07 01 53 E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 70 E7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 29 78 03 00 35 04 06 00 2A 72 0A B8 AC 12 5B F6 02 08 A8 35 9B 29 [11:20: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 33 39 4F 00 00 00 92 B0 47 00 7D 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 33 39 10 04 04 00 29 78 03 00 F4 03 04 00 6F 92 14 67 B6 04 01 00 00 51 D1 D9 84 6B 46 65 4A [11:20:18]CommunicateWithHost err = 0 [11:20:18]CheckOFDResponse [11:20:18]1017 (14) - 77093643461234 [11:20:18]1041 (16) - 0000000000871839 [11:20:18]1040 (4) - 227369 [11:20:18]1012 (4) - 20.10.2024 05:17 [11:20:18]1206 (1) - 0 [11:20:18]OFD Sender: Remove packet 227369 [11:20:18]ProducePacketName [11:20:18]name=ofd_packets/00227369 [11:20:18]NVStorageDeleteData [11:20:18]Write to MH i2c: 01 00 00 BB 07 C2 [11:20:18]Write i2c OK [11:20:18]MH_I2C_Read... [11:20:18]Read from MH i2c: 01 [11:20:18]MH_I2C_Read... [11:20:18]Read from MH i2c: 01 07 00 [11:20:18]MH_I2C_Read... [11:20:18]Read from MH i2c: 01 07 00 BB 07 00 00 00 00 00 04 0D DA [11:20:18]RasterBufferAndPrint [11:20:18]line [11:20:18]line [11:20:18]line [11:20:18]line [11:20:18]line [11:20:18]written 0, free lines is 3338 [11:20:18]process_action close_receipt done [11:20:18]requested_data is exist [11:20:18]produce_requested_data [11:20:18]requested_item fm.sn is exist - process it [11:20:18]wFMCommunicate request_size=4 [11:20:18]MH_SAM_APDU [11:20:18]CAPDU: 80 11 00 00 [11:20:18]Write to MH i2c: E2 08 00 C2 07 80 11 00 00 00 00 00 00 43 [11:20:18]Write i2c OK [11:20:18]MH_I2C_Read... [11:20:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:18]Read from MH i2c: E2 [11:20:18]MH_I2C_Read... [11:20:18]Read from MH i2c: E2 17 00 [11:20:18]MH_I2C_Read... [11:20:18]Read from MH i2c: E2 17 00 C2 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 9A [11:20:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:20:18]wFMCommunicate OK [11:20:18]requested_item fd.num is exist - process it [11:20:18]SAM_PROTO_GetFieldsCounters [11:20:18]wFMCommunicate request_size=4 [11:20:18]MH_SAM_APDU [11:20:18]CAPDU: 80 13 00 00 [11:20:18]Write to MH i2c: E2 08 00 C3 07 80 13 00 00 00 00 00 00 46 [11:20:18]Write i2c OK [11:20:18]MH_I2C_Read... [11:20:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:20:18]Read from MH i2c: E2 [11:20:18]MH_I2C_Read... [11:20:18]Read from MH i2c: E2 62 00 [11:20:18]MH_I2C_Read... [11:20:18]Read from MH i2c: E2 62 00 C3 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 29 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 B5 [11:20:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 29 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:20:18]wFMCommunicate OK [11:20:18]SAM_PROTO_GetFieldsCounters done [11:20:18]requested_item shift.num is exist - process it [11:20:18]requested_item shift.opened is exist - process it [11:20:18]req_shift_opened [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 C4 07 80 13 01 00 00 00 00 00 48 [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 C4 07 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 62 [11:20:18]RAPDU: 09 00 01 46 4D 14 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]req_shift_opened done [11:20:18]requested_item shift.open_date is exist - process it [11:20:18]req_shift_open_date [11:20:18]req_shift_open_date done [11:20:18]produce_requested_data done [11:20:18]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227369,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [11:20:18]process_action_free close_receipt [11:20:18]json_value_free [11:20:18]json_value_free done [11:20:18]process_json_proto returns [11:20:18]Send response to host [11:20:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227369,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [11:20:18]free response buf [11:20:18]execute_script done [11:20:18]execute_script returns [11:20:18]free content buf [11:20:18]Sock 8.Close socket [11:20:18]Sock 8.Thread stoped [11:20:18]OFD Sender: No OFD packet to send [11:20:23]OFD Sender: No OFD packet to send [11:20:28]OFD Sender: No OFD packet to send [11:20:33]OFD Sender: No OFD packet to send [11:20:38]OFD Sender: No OFD packet to send [11:20:43]OFD Sender: No OFD packet to send [11:20:48]OFD Sender: No OFD packet to send [11:20:53]OFD Sender: No OFD packet to send [11:20:58]OFD Sender: No OFD packet to send [11:21:03]OFD Sender: No OFD packet to send [11:21:08]OFD Sender: No OFD packet to send [11:21:13]OFD Sender: No OFD packet to send [11:21:18]OFD Sender: No OFD packet to send [11:21:23]OFD Sender: No OFD packet to send [11:21:28]OFD Sender: No OFD packet to send [11:21:31]accept exits with 9 [11:21:31]New connection [11:21:31]New thread 3066543460 created [11:21:31]Thread 3066686820 joined [11:21:31]Waiting for new connection... [11:21:31] Sock 9.Parse request [11:21:31]Sock 9.Check first char [11:21:31]Sock 9.First char is OK [11:21:31]request: POST /json_proto HTTP/1.0 [11:21:31]Method: POST [11:21:31]URL: /json_proto [11:21:31]Method is POST - this is cgi request [11:21:31]url: /json_proto [11:21:31]query_string will be loaded in cgi processing [11:21:31]execute_cgi json_proto POST (null) [11:21:31]execute_cgi path=json_proto method=POST [11:21:31]POST find Content-Length [11:21:31]Host: 172.17.44.195:8080 [11:21:31]Content-Length: 678 [11:21:31]Content-Type: application/json [11:21:31] [11:21:31]POST finish read [11:21:31]Found Content-Length = 678 [11:21:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962885", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:21:31]execute_script... [11:21:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962885", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:21:31]POST & json_proto [11:21:31]process_json_proto [11:21:31]json parsed OK: [11:21:31]protocol is kg_v1.0 [11:21:31]action value=close_receipt [11:21:31]process_action close_receipt [11:21:31]cmd_close_receipt [11:21:31]MH_GetDate [11:21:31]Write to MH i2c: F0 00 00 C5 07 BB [11:21:31]Write i2c OK [11:21:31]MH_I2C_Read... [11:21:31]Read from MH i2c: F0 [11:21:31]MH_I2C_Read... [11:21:31]Read from MH i2c: F0 09 00 [11:21:31]MH_I2C_Read... [11:21:31]Read from MH i2c: F0 09 00 C5 07 00 BC E7 14 67 82 C9 CF 66 62 [11:21:31]GetLastDocTimeStamp 1729423216 [11:21:31]current date 1729423292 [11:21:31]FM_GetShiftState [11:21:31]SAM_PROTO_GetShiftState [11:21:31]wFMCommunicate request_size=4 [11:21:31]MH_SAM_APDU [11:21:31]CAPDU: 80 13 01 00 [11:21:31]Write to MH i2c: E2 08 00 C6 07 80 13 01 00 00 00 00 00 4A [11:21:31]Write i2c OK [11:21:31]MH_I2C_Read... [11:21:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:31]Read from MH i2c: E2 [11:21:31]MH_I2C_Read... [11:21:31]Read from MH i2c: E2 0E 00 [11:21:31]MH_I2C_Read... [11:21:31]Read from MH i2c: E2 0E 00 C6 07 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 64 [11:21:31]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:21:31]wFMCommunicate OK [11:21:31]SAM_PROTO_GetShiftState done [11:21:31]FM_GetShiftState done [11:21:31]opened in 1729383750 [11:21:31]opened+sec_in_day 1729470150 [11:21:31]quantity*price = 50041 [11:21:31]sum+1 = 50042 [11:21:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 218 20.10.2024 11:21 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227370 ФПД: 34041690049492 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112132&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227370&fm=34041690049492&tin=02508201610067®Number=0000000000091685&sum=50000 [11:21:32]StoreToDocumentArchive [11:21:32]shift 533 fd 227370 [11:21:32]save to /storage/0533/doc_00227370 [11:21:32]save last doc name /storage/0533/doc_00227370 to /storage/kkm_last_doc_name [11:21:32]save OK [11:21:32]Clear old archive folders... [11:21:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:21:32]tlvbuf is 0194B4E0 [11:21:32]SAM_PROTO_ClearQueue [11:21:32]wFMCommunicate request_size=4 [11:21:32]MH_SAM_APDU [11:21:32]CAPDU: 80 09 00 00 [11:21:32]Write to MH i2c: E2 08 00 D3 07 80 09 00 00 00 00 00 00 4C [11:21:32]Write i2c OK [11:21:32]MH_I2C_Read... [11:21:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:21:32]Read from MH i2c: E2 [11:21:32]MH_I2C_Read... [11:21:32]Read from MH i2c: E2 03 00 [11:21:32]MH_I2C_Read... [11:21:32]Read from MH i2c: E2 03 00 D3 07 00 90 00 4E [11:21:32]RAPDU: 90 00 [11:21:32]wFMCommunicate OK [11:21:32]SAM_PROTO_ClearQueue done [11:21:32]KKMCreateOFDPacket [11:21:32]OFDProtocolAddRootSTLVToBuf [11:21:32]FM_MakeSignedData [11:21:32]FM_MakeSignedData [11:21:32]SAM_PROTO_SignData [11:21:32]wFMCommunicate request_size=4 [11:21:32]MH_SAM_APDU [11:21:32]CAPDU: 80 0D 01 02 [11:21:32]Write to MH i2c: E2 08 00 D4 07 80 0D 01 02 00 00 00 00 54 [11:21:32]Write i2c OK [11:21:32]MH_I2C_Read... [11:21:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:21:33]Read from MH i2c: E2 [11:21:33]MH_I2C_Read... [11:21:33]Read from MH i2c: E2 03 00 [11:21:33]MH_I2C_Read... [11:21:33]Read from MH i2c: E2 03 00 D4 07 00 90 00 4F [11:21:33]RAPDU: 90 00 [11:21:33]wFMCommunicate OK [11:21:33]wFMCommunicate request_size=255 [11:21:33]MH_SAM_APDU [11:21:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 BC E7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2A 78 03 00 35 04 06 00 1E [11:21:33]Write to MH i2c: E2 02 01 D5 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 BC E7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2A 78 03 00 35 04 06 00 1E 00 00 BD [11:21:33]Write i2c OK [11:21:33]MH_I2C_Read... [11:21:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:33]Read from MH i2c: E2 [11:21:33]MH_I2C_Read... [11:21:33]Read from MH i2c: E2 03 00 [11:21:33]MH_I2C_Read... [11:21:33]Read from MH i2c: E2 03 00 D5 07 00 90 00 50 [11:21:33]RAPDU: 90 00 [11:21:33]wFMCommunicate OK [11:21:33]wFMCommunicate request_size=10 [11:21:33]MH_SAM_APDU [11:21:33]CAPDU: 80 0D 02 02 05 F5 F2 D7 CB D4 [11:21:33]Write to MH i2c: E2 0D 00 D6 07 80 0D 02 02 05 00 F5 F2 D7 CB D4 00 00 BE [11:21:33]Write i2c OK [11:21:33]MH_I2C_Read... [11:21:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:33]Read from MH i2c: E2 [11:21:33]MH_I2C_Read... [11:21:33]Read from MH i2c: E2 03 00 [11:21:33]MH_I2C_Read... [11:21:33]Read from MH i2c: E2 03 00 D6 07 00 90 00 51 [11:21:33]RAPDU: 90 00 [11:21:33]wFMCommunicate OK [11:21:33]wFMCommunicate request_size=4 [11:21:33]MH_SAM_APDU [11:21:33]CAPDU: 80 0D 03 02 [11:21:33]Write to MH i2c: E2 08 00 D7 07 80 0D 03 02 00 00 00 00 59 [11:21:33]Write i2c OK [11:21:33]MH_I2C_Read... [11:21:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:21:33]Read from MH i2c: E2 [11:21:33]MH_I2C_Read... [11:21:33]Read from MH i2c: E2 0B 00 [11:21:33]MH_I2C_Read... [11:21:33]Read from MH i2c: E2 0B 00 D7 07 00 1A 6E D5 B3 62 28 49 6B 90 00 A8 [11:21:33]RAPDU: 1A 6E D5 B3 62 28 49 6B 90 00 [11:21:33]wFMCommunicate OK [11:21:33]SAM_PROTO_SignData done [11:21:33]FM_MakeSignedData done [11:21:33]CreateOFDProtocolMessage [11:21:33]wFMCommunicate request_size=4 [11:21:33]MH_SAM_APDU [11:21:33]CAPDU: 80 11 00 00 [11:21:33]Write to MH i2c: E2 08 00 D8 07 80 11 00 00 00 00 00 00 59 [11:21:33]Write i2c OK [11:21:33]MH_I2C_Read... [11:21:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:33]Read from MH i2c: E2 [11:21:33]MH_I2C_Read... [11:21:33]Read from MH i2c: E2 17 00 [11:21:33]MH_I2C_Read... [11:21:33]Read from MH i2c: E2 17 00 D8 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B0 [11:21:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:21:33]wFMCommunicate OK [11:21:33]CreateOFDProtocolMessage done [11:21:33]OFDSenderStorePacket 227370 [11:21:33]StoreOFDPacket docnum=227370 [11:21:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 0A C3 07 01 1D 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 BC E7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2A 78 03 00 35 04 06 00 1E F5 F2 D7 CB D4 1A 6E D5 B3 62 28 49 6B [11:21:33]CheckFolder [11:21:33]dirname=/storage/ofd_packets [11:21:33]CheckFolder done [11:21:33]ProducePacketName [11:21:33]name=ofd_packets/00227370 [11:21:33]NVStorageSaveData ofd_packets/00227370 [11:21:33]File name is /storage/ofd_packets/00227370 [11:21:33]Write 301 bytes [11:21:33]NVStorageSaveData done [11:21:33]OFDSenderStorePacket done [11:21:33]KKMCreateOFDPacket done [11:21:33]NVStorageSaveData kkm_last_timestamp [11:21:33]File name is /storage/kkm_last_timestamp [11:21:33]Write 4 bytes [11:21:33]NVStorageSaveData done [11:21:33]OFD Sender: Processing packet 227370 [packets to send 38, broken 37] [11:21:33]ProducePacketName [11:21:33]name=ofd_packets/00227370 [11:21:33]OFD Sender: To server: pG, [11:21:33]CommunicateWithHost lk.salyk.kg:30040 [11:21:33]ConnectInit lk.salyk.kg [11:21:33]ExternCall_PrintAddStr [11:21:33]wPrintStart [11:21:33]Write to MH i2c: 01 00 00 D9 07 E0 [11:21:33]Write i2c OK [11:21:33]MH_I2C_Read... [11:21:33]Read from MH i2c: 01 [11:21:33]MH_I2C_Read... [11:21:33]Read from MH i2c: 01 07 00 [11:21:33]MH_I2C_Read... [11:21:33]Read from MH i2c: 01 07 00 D9 07 00 00 00 00 00 FF 0F F5 [11:21:33]RasterBufferAndPrint [11:21:33]line Счет N : (1)1962885 [11:21:33]line ИНН: 02508201610067 [11:21:33]line Контрольно-Кассовый Чек [11:21:33]line ПРОДАЖА [11:21:33]line ТРК (МРК, ГНК) : 63 [11:21:33]line Товар: 2710124130 [11:21:33]line Аи-92-К-5 [11:21:33]line 7.480 * 66.90 [11:21:33]line = 500.41 [11:21:33]line НДС 12% НСП 1% [11:21:33]line > о реализуемом товаре [11:21:33]line ОКРУГЛЕНИЕ: -0.41 [11:21:33]line ИТОГО: 500.00 [11:21:33]line Внесено: 500.00 [11:21:33]line СДАЧА: 0.00 [11:21:33]line НСП 1% : 4.43 [11:21:33]line НДС 12% : 53.14 [11:21:33]line Наличными: 500.00 [11:21:33]line Безнал.: 0.00 [11:21:33]line Место: АЗС № 133 "Партнер Нефть" [11:21:33]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:21:33]line СНО: Общий режим [11:21:33]line Чек 218 20.10.2024 11:21 [11:21:33]line Смена: 533 ФФД: 1.0 [11:21:33]line ЗНМ: 0300000091 [11:21:33]line РНМ: 0000000000091685 [11:21:33]line Версия ККМ: 001 [11:21:33]line ФМ: 0000000000871839 [11:21:33]line ФД: 227370 [11:21:33]line ФПД: 34041690049492 [11:21:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112132&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227370&fm=34041690049492&tin=02508201610067®Number=0000000000091685&sum=50000 [11:21:33]Connected sock=11 [11:21: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 33 39 0F 01 00 00 0A C3 07 01 1D 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 BC E7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2A 78 03 00 35 04 06 00 1E F5 F2 D7 CB D4 1A 6E D5 B3 62 28 49 6B [11:21:33]written 0, free lines is 4095 [11:21: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 33 39 4F 00 00 00 94 4C 47 00 B4 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2A 78 03 00 F4 03 04 00 BB 92 14 67 B6 04 01 00 00 AB 24 05 B9 A6 97 C7 A3 [11:21:33]CommunicateWithHost err = 0 [11:21:33]CheckOFDResponse [11:21:33]1017 (14) - 77093643461234 [11:21:33]1041 (16) - 0000000000871839 [11:21:33]1040 (4) - 227370 [11:21:33]1012 (4) - 20.10.2024 05:18 [11:21:33]1206 (1) - 0 [11:21:33]OFD Sender: Remove packet 227370 [11:21:33]ProducePacketName [11:21:33]name=ofd_packets/00227370 [11:21:33]NVStorageDeleteData [11:21:34]Write to MH i2c: 01 00 00 03 08 0B [11:21:34]Write i2c OK [11:21:34]MH_I2C_Read... [11:21:34]Read from MH i2c: 01 [11:21:34]MH_I2C_Read... [11:21:34]Read from MH i2c: 01 07 00 [11:21:34]MH_I2C_Read... [11:21:34]Read from MH i2c: 01 07 00 03 08 00 00 00 00 00 02 0D 21 [11:21:34]RasterBufferAndPrint [11:21:34]line [11:21:34]line [11:21:34]line [11:21:34]line [11:21:34]line [11:21:34]written 0, free lines is 3336 [11:21:34]process_action close_receipt done [11:21:34]requested_data is exist [11:21:34]produce_requested_data [11:21:34]requested_item fm.sn is exist - process it [11:21:34]wFMCommunicate request_size=4 [11:21:34]MH_SAM_APDU [11:21:34]CAPDU: 80 11 00 00 [11:21:34]Write to MH i2c: E2 08 00 0A 08 80 11 00 00 00 00 00 00 8C [11:21:34]Write i2c OK [11:21:34]MH_I2C_Read... [11:21:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:34]Read from MH i2c: E2 [11:21:34]MH_I2C_Read... [11:21:34]Read from MH i2c: E2 17 00 [11:21:34]MH_I2C_Read... [11:21:34]Read from MH i2c: E2 17 00 0A 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E3 [11:21:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:21:34]wFMCommunicate OK [11:21:34]requested_item fd.num is exist - process it [11:21:34]SAM_PROTO_GetFieldsCounters [11:21:34]wFMCommunicate request_size=4 [11:21:34]MH_SAM_APDU [11:21:34]CAPDU: 80 13 00 00 [11:21:34]Write to MH i2c: E2 08 00 0B 08 80 13 00 00 00 00 00 00 8F [11:21:34]Write i2c OK [11:21:34]MH_I2C_Read... [11:21:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:21:34]Read from MH i2c: E2 [11:21:34]MH_I2C_Read... [11:21:34]Read from MH i2c: E2 62 00 [11:21:34]MH_I2C_Read... [11:21:34]Read from MH i2c: E2 62 00 0B 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 2A 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [11:21:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 2A 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:21:34]wFMCommunicate OK [11:21:34]SAM_PROTO_GetFieldsCounters done [11:21:34]requested_item shift.num is exist - process it [11:21:34]requested_item shift.opened is exist - process it [11:21:34]req_shift_opened [11:21:34]FM_GetShiftState [11:21:34]SAM_PROTO_GetShiftState [11:21:34]wFMCommunicate request_size=4 [11:21:34]MH_SAM_APDU [11:21:34]CAPDU: 80 13 01 00 [11:21:34]Write to MH i2c: E2 08 00 0C 08 80 13 01 00 00 00 00 00 91 [11:21:34]OFD Sender: No OFD packet to send [11:21:34]Write i2c OK [11:21:34]MH_I2C_Read... [11:21:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:34]Read from MH i2c: E2 [11:21:34]MH_I2C_Read... [11:21:34]Read from MH i2c: E2 0E 00 [11:21:34]MH_I2C_Read... [11:21:34]Read from MH i2c: E2 0E 00 0C 08 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 AB [11:21:34]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:21:34]wFMCommunicate OK [11:21:34]SAM_PROTO_GetShiftState done [11:21:34]FM_GetShiftState done [11:21:34]req_shift_opened done [11:21:34]requested_item shift.open_date is exist - process it [11:21:34]req_shift_open_date [11:21:34]req_shift_open_date done [11:21:34]produce_requested_data done [11:21:34]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227370,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [11:21:34]process_action_free close_receipt [11:21:34]json_value_free [11:21:34]json_value_free done [11:21:34]process_json_proto returns [11:21:34]Send response to host [11:21:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227370,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [11:21:34]free response buf [11:21:34]execute_script done [11:21:34]execute_script returns [11:21:34]free content buf [11:21:34]Sock 9.Close socket [11:21:34]Sock 9.Thread stoped [11:21:39]OFD Sender: No OFD packet to send [11:21:44]OFD Sender: No OFD packet to send [11:21:49]OFD Sender: No OFD packet to send [11:21:54]OFD Sender: No OFD packet to send [11:21:59]OFD Sender: No OFD packet to send [11:22:04]OFD Sender: No OFD packet to send [11:22:09]OFD Sender: No OFD packet to send [11:22:14]OFD Sender: No OFD packet to send [11:22:19]OFD Sender: No OFD packet to send [11:22:21]accept exits with 8 [11:22:21]New connection [11:22:21]New thread 3066686820 created [11:22:21]Thread 3066543460 joined [11:22:21]Waiting for new connection... [11:22:21] Sock 8.Parse request [11:22:21]Sock 8.Check first char [11:22:21]Sock 8.First char is OK [11:22:21]request: POST /json_proto HTTP/1.0 [11:22:21]Method: POST [11:22:21]URL: /json_proto [11:22:21]Method is POST - this is cgi request [11:22:21]url: /json_proto [11:22:21]query_string will be loaded in cgi processing [11:22:21]execute_cgi json_proto POST (null) [11:22:21]execute_cgi path=json_proto method=POST [11:22:21]POST find Content-Length [11:22:21]Host: 172.17.44.195:8080 [11:22:21]Content-Length: 680 [11:22:21]Content-Type: application/json [11:22:21] [11:22:21]POST finish read [11:22:21]Found Content-Length = 680 [11:22:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962886", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:21]execute_script... [11:22:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962886", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:21]POST & json_proto [11:22:21]process_json_proto [11:22:21]json parsed OK: [11:22:21]protocol is kg_v1.0 [11:22:21]action value=close_receipt [11:22:21]process_action close_receipt [11:22:21]cmd_close_receipt [11:22:21]MH_GetDate [11:22:21]Write to MH i2c: F0 00 00 0D 08 04 [11:22:21]Write i2c OK [11:22:21]MH_I2C_Read... [11:22:21]Read from MH i2c: F0 [11:22:21]MH_I2C_Read... [11:22:21]Read from MH i2c: F0 09 00 [11:22:21]MH_I2C_Read... [11:22:21]Read from MH i2c: F0 09 00 0D 08 00 EE E7 14 67 82 C9 CF 66 DD [11:22:21]GetLastDocTimeStamp 1729423292 [11:22:21]current date 1729423342 [11:22:21]FM_GetShiftState [11:22:21]SAM_PROTO_GetShiftState [11:22:21]wFMCommunicate request_size=4 [11:22:21]MH_SAM_APDU [11:22:21]CAPDU: 80 13 01 00 [11:22:21]Write to MH i2c: E2 08 00 0E 08 80 13 01 00 00 00 00 00 93 [11:22:21]Write i2c OK [11:22:21]MH_I2C_Read... [11:22:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:21]Read from MH i2c: E2 [11:22:21]MH_I2C_Read... [11:22:21]Read from MH i2c: E2 0E 00 [11:22:21]MH_I2C_Read... [11:22:21]Read from MH i2c: E2 0E 00 0E 08 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 AD [11:22:21]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:22:21]wFMCommunicate OK [11:22:21]SAM_PROTO_GetShiftState done [11:22:21]FM_GetShiftState done [11:22:21]opened in 1729383750 [11:22:21]opened+sec_in_day 1729470150 [11:22:21]quantity*price = 300075 [11:22:21]sum+1 = 300077 [11:22:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 219 20.10.2024 11:22 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227371 ФПД: 90485608126931 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112222&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227371&fm=90485608126931&tin=02508201610067®Number=0000000000091685&sum=300000 [11:22:22]StoreToDocumentArchive [11:22:22]shift 533 fd 227371 [11:22:22]save to /storage/0533/doc_00227371 [11:22:22]save last doc name /storage/0533/doc_00227371 to /storage/kkm_last_doc_name [11:22:22]save OK [11:22:22]Clear old archive folders... [11:22:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:22:22]tlvbuf is 01858330 [11:22:22]SAM_PROTO_ClearQueue [11:22:22]wFMCommunicate request_size=4 [11:22:22]MH_SAM_APDU [11:22:22]CAPDU: 80 09 00 00 [11:22:22]Write to MH i2c: E2 08 00 1B 08 80 09 00 00 00 00 00 00 95 [11:22:22]Write i2c OK [11:22:22]MH_I2C_Read... [11:22:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:22:22]Read from MH i2c: E2 [11:22:22]MH_I2C_Read... [11:22:22]Read from MH i2c: E2 03 00 [11:22:22]MH_I2C_Read... [11:22:22]Read from MH i2c: E2 03 00 1B 08 00 90 00 97 [11:22:22]RAPDU: 90 00 [11:22:22]wFMCommunicate OK [11:22:22]SAM_PROTO_ClearQueue done [11:22:22]KKMCreateOFDPacket [11:22:22]OFDProtocolAddRootSTLVToBuf [11:22:22]FM_MakeSignedData [11:22:22]FM_MakeSignedData [11:22:22]SAM_PROTO_SignData [11:22:22]wFMCommunicate request_size=4 [11:22:22]MH_SAM_APDU [11:22:22]CAPDU: 80 0D 01 02 [11:22:22]Write to MH i2c: E2 08 00 1C 08 80 0D 01 02 00 00 00 00 9D [11:22:22]Write i2c OK [11:22:22]MH_I2C_Read... [11:22:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:22:22]Read from MH i2c: E2 [11:22:22]MH_I2C_Read... [11:22:22]Read from MH i2c: E2 03 00 [11:22:22]MH_I2C_Read... [11:22:22]Read from MH i2c: E2 03 00 1C 08 00 90 00 98 [11:22:22]RAPDU: 90 00 [11:22:22]wFMCommunicate OK [11:22:22]wFMCommunicate request_size=255 [11:22:22]MH_SAM_APDU [11:22: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 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 EE E7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2B 78 03 00 35 04 06 00 52 4B D2 87 [11:22:22]Write to MH i2c: E2 02 01 1D 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 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 EE E7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2B 78 03 00 35 04 06 00 52 4B D2 87 00 00 3F [11:22:22]Write i2c OK [11:22:22]MH_I2C_Read... [11:22:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:23]Read from MH i2c: E2 [11:22:23]MH_I2C_Read... [11:22:23]Read from MH i2c: E2 03 00 [11:22:23]MH_I2C_Read... [11:22:23]Read from MH i2c: E2 03 00 1D 08 00 90 00 99 [11:22:23]RAPDU: 90 00 [11:22:23]wFMCommunicate OK [11:22:23]wFMCommunicate request_size=7 [11:22:23]MH_SAM_APDU [11:22:23]CAPDU: 80 0D 02 02 02 99 D3 [11:22:23]Write to MH i2c: E2 0A 00 1E 08 80 0D 02 02 02 00 99 D3 00 00 10 [11:22:23]Write i2c OK [11:22:23]MH_I2C_Read... [11:22:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:23]Read from MH i2c: E2 [11:22:23]MH_I2C_Read... [11:22:23]Read from MH i2c: E2 03 00 [11:22:23]MH_I2C_Read... [11:22:23]Read from MH i2c: E2 03 00 1E 08 00 90 00 9A [11:22:23]RAPDU: 90 00 [11:22:23]wFMCommunicate OK [11:22:23]wFMCommunicate request_size=4 [11:22:23]MH_SAM_APDU [11:22:23]CAPDU: 80 0D 03 02 [11:22:23]Write to MH i2c: E2 08 00 1F 08 80 0D 03 02 00 00 00 00 A2 [11:22:23]Write i2c OK [11:22:23]MH_I2C_Read... [11:22:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:22:23]Read from MH i2c: E2 [11:22:23]MH_I2C_Read... [11:22:23]Read from MH i2c: E2 0B 00 [11:22:23]MH_I2C_Read... [11:22:23]Read from MH i2c: E2 0B 00 1F 08 00 E4 FB 6B 93 5E 78 A0 F2 90 00 E8 [11:22:23]RAPDU: E4 FB 6B 93 5E 78 A0 F2 90 00 [11:22:23]wFMCommunicate OK [11:22:23]SAM_PROTO_SignData done [11:22:23]FM_MakeSignedData done [11:22:23]CreateOFDProtocolMessage [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 20 08 80 11 00 00 00 00 00 00 A2 [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 20 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F9 [11:22:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:22:23]wFMCommunicate OK [11:22:23]CreateOFDProtocolMessage done [11:22:23]OFDSenderStorePacket 227371 [11:22:23]StoreOFDPacket docnum=227371 [11:22:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 3B 83 04 01 38 7E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 EE E7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2B 78 03 00 35 04 06 00 52 4B D2 87 99 D3 E4 FB 6B 93 5E 78 A0 F2 [11:22:23]CheckFolder [11:22:23]dirname=/storage/ofd_packets [11:22:23]CheckFolder done [11:22:23]ProducePacketName [11:22:23]name=ofd_packets/00227371 [11:22:23]NVStorageSaveData ofd_packets/00227371 [11:22:23]File name is /storage/ofd_packets/00227371 [11:22:23]Write 298 bytes [11:22:23]NVStorageSaveData done [11:22:23]OFDSenderStorePacket done [11:22:23]KKMCreateOFDPacket done [11:22:23]NVStorageSaveData kkm_last_timestamp [11:22:23]File name is /storage/kkm_last_timestamp [11:22:23]Write 4 bytes [11:22:23]NVStorageSaveData done [11:22:23]ExternCall_PrintAddStr [11:22:23]wPrintStart [11:22:23]Write to MH i2c: 01 00 00 21 08 29 [11:22:23]Write i2c OK [11:22:23]MH_I2C_Read... [11:22:23]Read from MH i2c: 01 [11:22:23]MH_I2C_Read... [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 21 08 00 00 00 00 00 FF 0F 3E [11:22:23]RasterBufferAndPrint [11:22:23]line Счет N : (1)1962886 [11:22:23]line ИНН: 02508201610067 [11:22:23]line Контрольно-Кассовый Чек [11:22:23]line ПРОДАЖА [11:22:23]line ТРК (МРК, ГНК) : 11 [11:22:23]line Товар: 2710194210 [11:22:23]line ДТ-К-5 [11:22:23]line 39.380 * 76.20 [11:22:23]line = 3000.76 [11:22:23]line НДС 12% НСП 1% [11:22:23]line > о реализуемом товаре [11:22:23]line ОКРУГЛЕНИЕ: -0.76 [11:22:23]line ИТОГО: 3000.00 [11:22:23]line Внесено: 3000.00 [11:22:23]line СДАЧА: 0.00 [11:22:23]line НСП 1% : 26.55 [11:22:23]line НДС 12% : 318.66 [11:22:23]line Наличными: 3000.00 [11:22:23]line Безнал.: 0.00 [11:22:23]line Место: АЗС № 133 "Партнер Нефть" [11:22:23]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:22:23]line СНО: Общий режим [11:22:23]line Чек 219 20.10.2024 11:22 [11:22:23]line Смена: 533 ФФД: 1.0 [11:22:23]line ЗНМ: 0300000091 [11:22:23]line РНМ: 0000000000091685 [11:22:23]line Версия ККМ: 001 [11:22:23]line ФМ: 0000000000871839 [11:22:23]line ФД: 227371 [11:22:23]line ФПД: 90485608126931 [11:22:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112222&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227371&fm=90485608126931&tin=02508201610067®Number=0000000000091685&sum=300000 [11:22:23]OFD Sender: Processing packet 227371 [packets to send 38, broken 37] [11:22:23]ProducePacketName [11:22:23]name=ofd_packets/00227371 [11:22:23]OFD Sender: To server: pG, [11:22:23]CommunicateWithHost lk.salyk.kg:30040 [11:22:23]ConnectInit lk.salyk.kg [11:22:23]written 0, free lines is 4095 [11:22:23]Connected sock=10 [11:22:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 3B 83 04 01 38 7E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 EE E7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2B 78 03 00 35 04 06 00 52 4B D2 87 99 D3 E4 FB 6B 93 5E 78 A0 F2 [11:22: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 33 39 4F 00 00 00 5B 7A 47 00 1B 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 33 39 10 04 04 00 2B 78 03 00 F4 03 04 00 ED 92 14 67 B6 04 01 00 00 1D 5D D6 94 93 95 37 9E [11:22:23]CommunicateWithHost err = 0 [11:22:23]CheckOFDResponse [11:22:23]1017 (14) - 77093643461234 [11:22:23]1041 (16) - 0000000000871839 [11:22:23]1040 (4) - 227371 [11:22:23]1012 (4) - 20.10.2024 05:19 [11:22:23]1206 (1) - 0 [11:22:23]OFD Sender: Remove packet 227371 [11:22:23]ProducePacketName [11:22:23]name=ofd_packets/00227371 [11:22:23]NVStorageDeleteData [11:22:23]Write to MH i2c: 01 00 00 4B 08 53 [11:22:23]Write i2c OK [11:22:23]MH_I2C_Read... [11:22:23]Read from MH i2c: 01 [11:22:23]MH_I2C_Read... [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 4B 08 00 00 00 00 00 02 0D 69 [11:22:23]RasterBufferAndPrint [11:22:23]line [11:22:23]line [11:22:23]line [11:22:23]line [11:22:23]line [11:22:24]written 0, free lines is 3336 [11:22:24]process_action close_receipt done [11:22:24]requested_data is exist [11:22:24]produce_requested_data [11:22:24]requested_item fm.sn is exist - process it [11:22:24]wFMCommunicate request_size=4 [11:22:24]MH_SAM_APDU [11:22:24]CAPDU: 80 11 00 00 [11:22:24]Write to MH i2c: E2 08 00 52 08 80 11 00 00 00 00 00 00 D4 [11:22:24]Write i2c OK [11:22:24]MH_I2C_Read... [11:22:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:24]Read from MH i2c: E2 [11:22:24]MH_I2C_Read... [11:22:24]Read from MH i2c: E2 17 00 [11:22:24]MH_I2C_Read... [11:22:24]Read from MH i2c: E2 17 00 52 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 2B [11:22:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:22:24]wFMCommunicate OK [11:22:24]requested_item fd.num is exist - process it [11:22:24]SAM_PROTO_GetFieldsCounters [11:22:24]wFMCommunicate request_size=4 [11:22:24]MH_SAM_APDU [11:22:24]CAPDU: 80 13 00 00 [11:22:24]Write to MH i2c: E2 08 00 53 08 80 13 00 00 00 00 00 00 D7 [11:22:24]Write i2c OK [11:22:24]MH_I2C_Read... [11:22:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:22:24]Read from MH i2c: E2 [11:22:24]MH_I2C_Read... [11:22:24]Read from MH i2c: E2 62 00 [11:22:24]MH_I2C_Read... [11:22:24]Read from MH i2c: E2 62 00 53 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 2B 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 4E [11:22:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 2B 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:22:24]wFMCommunicate OK [11:22:24]SAM_PROTO_GetFieldsCounters done [11:22:24]requested_item shift.num is exist - process it [11:22:24]requested_item shift.opened is exist - process it [11:22:24]req_shift_opened [11:22:24]FM_GetShiftState [11:22:24]SAM_PROTO_GetShiftState [11:22:24]wFMCommunicate request_size=4 [11:22:24]MH_SAM_APDU [11:22:24]CAPDU: 80 13 01 00 [11:22:24]Write to MH i2c: E2 08 00 54 08 80 13 01 00 00 00 00 00 D9 [11:22:24]Write i2c OK [11:22:24]MH_I2C_Read... [11:22:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:24]Read from MH i2c: E2 [11:22:24]MH_I2C_Read... [11:22:24]Read from MH i2c: E2 0E 00 [11:22:24]MH_I2C_Read... [11:22:24]Read from MH i2c: E2 0E 00 54 08 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 F3 [11:22:24]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:22:24]wFMCommunicate OK [11:22:24]SAM_PROTO_GetShiftState done [11:22:24]FM_GetShiftState done [11:22:24]req_shift_opened done [11:22:24]requested_item shift.open_date is exist - process it [11:22:24]req_shift_open_date [11:22:24]req_shift_open_date done [11:22:24]produce_requested_data done [11:22:24]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227371,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [11:22:24]process_action_free close_receipt [11:22:24]json_value_free [11:22:24]json_value_free done [11:22:24]process_json_proto returns [11:22:24]Send response to host [11:22:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227371,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [11:22:24]free response buf [11:22:24]execute_script done [11:22:24]execute_script returns [11:22:24]free content buf [11:22:24]Sock 8.Close socket [11:22:24]Sock 8.Thread stoped [11:22:24]OFD Sender: No OFD packet to send [11:22:29]OFD Sender: No OFD packet to send [11:22:34]OFD Sender: No OFD packet to send [11:22:35]accept exits with 9 [11:22:35]New connection [11:22:35]New thread 3066543460 created [11:22:35]Thread 3066686820 joined [11:22:35]Waiting for new connection... [11:22:35] Sock 9.Parse request [11:22:35]Sock 9.Check first char [11:22:35]Sock 9.First char is OK [11:22:35]request: POST /json_proto HTTP/1.0 [11:22:35]Method: POST [11:22:35]URL: /json_proto [11:22:35]Method is POST - this is cgi request [11:22:35]url: /json_proto [11:22:35]query_string will be loaded in cgi processing [11:22:35]execute_cgi json_proto POST (null) [11:22:35]execute_cgi path=json_proto method=POST [11:22:35]POST find Content-Length [11:22:35]Host: 172.17.44.195:8080 [11:22:35]Content-Length: 659 [11:22:35]Content-Type: application/json [11:22:35] [11:22:35]POST finish read [11:22:35]Found Content-Length = 659 [11:22:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962888", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.130, "sum" : 487.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 487.00, "payments": [ { "type": 0, "sum" : 487.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:35]execute_script... [11:22: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)1962888", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.130, "sum" : 487.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 487.00, "payments": [ { "type": 0, "sum" : 487.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:35]POST & json_proto [11:22:35]process_json_proto [11:22:35]json parsed OK: [11:22:35]protocol is kg_v1.0 [11:22:35]action value=close_receipt [11:22:35]process_action close_receipt [11:22:35]cmd_close_receipt [11:22:35]MH_GetDate [11:22:35]Write to MH i2c: F0 00 00 55 08 4C [11:22:35]Write i2c OK [11:22:35]MH_I2C_Read... [11:22:35]Read from MH i2c: F0 [11:22:35]MH_I2C_Read... [11:22:35]Read from MH i2c: F0 09 00 [11:22:35]MH_I2C_Read... [11:22:35]Read from MH i2c: F0 09 00 55 08 00 FC E7 14 67 82 C9 CF 66 33 [11:22:35]GetLastDocTimeStamp 1729423342 [11:22:35]current date 1729423356 [11:22:35]FM_GetShiftState [11:22:35]SAM_PROTO_GetShiftState [11:22:35]wFMCommunicate request_size=4 [11:22:35]MH_SAM_APDU [11:22:35]CAPDU: 80 13 01 00 [11:22:35]Write to MH i2c: E2 08 00 56 08 80 13 01 00 00 00 00 00 DB [11:22:35]Write i2c OK [11:22:35]MH_I2C_Read... [11:22:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:35]Read from MH i2c: E2 [11:22:35]MH_I2C_Read... [11:22:35]Read from MH i2c: E2 0E 00 [11:22:35]MH_I2C_Read... [11:22:35]Read from MH i2c: E2 0E 00 56 08 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 F5 [11:22:35]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:22:35]wFMCommunicate OK [11:22:35]SAM_PROTO_GetShiftState done [11:22:35]FM_GetShiftState done [11:22:35]opened in 1729383750 [11:22:35]opened+sec_in_day 1729470150 [11:22:35]quantity*price = 48769 [11:22:35]sum+1 = 48770 [11:22:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.69 ИТОГО: 487.00 Внесено: 500.00 СДАЧА: 13.00 НСП 1% : 4.32 НДС 12% : 51.79 Наличными: 487.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 220 20.10.2024 11:22 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227372 ФПД: 141809270634028 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112236&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227372&fm=141809270634028&tin=02508201610067®Number=0000000000091685&sum=48700 [11:22:36]StoreToDocumentArchive [11:22:36]shift 533 fd 227372 [11:22:36]save to /storage/0533/doc_00227372 [11:22:36]save last doc name /storage/0533/doc_00227372 to /storage/kkm_last_doc_name [11:22:36]save OK [11:22:36]Clear old archive folders... [11:22:36]ProcessDocumentItem done err = 0, tmpTLVsize=244 [11:22:36]tlvbuf is 018215C0 [11:22:36]SAM_PROTO_ClearQueue [11:22:36]wFMCommunicate request_size=4 [11:22:36]MH_SAM_APDU [11:22:36]CAPDU: 80 09 00 00 [11:22:36]Write to MH i2c: E2 08 00 63 08 80 09 00 00 00 00 00 00 DD [11:22:36]Write i2c OK [11:22:36]MH_I2C_Read... [11:22:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:22:37]Read from MH i2c: E2 [11:22:37]MH_I2C_Read... [11:22:37]Read from MH i2c: E2 03 00 [11:22:37]MH_I2C_Read... [11:22:37]Read from MH i2c: E2 03 00 63 08 00 90 00 DF [11:22:37]RAPDU: 90 00 [11:22:37]wFMCommunicate OK [11:22:37]SAM_PROTO_ClearQueue done [11:22:37]KKMCreateOFDPacket [11:22:37]OFDProtocolAddRootSTLVToBuf [11:22:37]FM_MakeSignedData [11:22:37]FM_MakeSignedData [11:22:37]SAM_PROTO_SignData [11:22:37]wFMCommunicate request_size=4 [11:22:37]MH_SAM_APDU [11:22:37]CAPDU: 80 0D 01 02 [11:22:37]Write to MH i2c: E2 08 00 64 08 80 0D 01 02 00 00 00 00 E5 [11:22:37]Write i2c OK [11:22:37]MH_I2C_Read... [11:22:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:22:37]Read from MH i2c: E2 [11:22:37]MH_I2C_Read... [11:22:37]Read from MH i2c: E2 03 00 [11:22:37]MH_I2C_Read... [11:22:37]Read from MH i2c: E2 03 00 64 08 00 90 00 E0 [11:22:37]RAPDU: 90 00 [11:22:37]wFMCommunicate OK [11:22:37]wFMCommunicate request_size=253 [11:22:37]MH_SAM_APDU [11:22:37]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 DA 1B 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 81 BE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C BE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 14 00 00 00 00 07 04 06 00 3C BE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 FC E7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2C 78 03 00 35 04 06 00 80 F9 8B 33 B6 2C [11:22:37]Write to MH i2c: E2 00 01 65 08 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 DA 1B 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 81 BE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C BE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 14 00 00 00 00 07 04 06 00 3C BE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 FC E7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2C 78 03 00 35 04 06 00 80 F9 8B 33 B6 2C 00 00 B0 [11:22:37]Write i2c OK [11:22:37]MH_I2C_Read... [11:22:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:37]Read from MH i2c: E2 [11:22:37]MH_I2C_Read... [11:22:37]Read from MH i2c: E2 03 00 [11:22:37]MH_I2C_Read... [11:22:37]Read from MH i2c: E2 03 00 65 08 00 90 00 E1 [11:22:37]RAPDU: 90 00 [11:22:37]wFMCommunicate OK [11:22:37]wFMCommunicate request_size=4 [11:22:37]MH_SAM_APDU [11:22:37]CAPDU: 80 0D 03 02 [11:22:37]Write to MH i2c: E2 08 00 66 08 80 0D 03 02 00 00 00 00 E9 [11:22:37]Write i2c OK [11:22:37]MH_I2C_Read... [11:22:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:22:37]Read from MH i2c: E2 [11:22:37]MH_I2C_Read... [11:22:37]Read from MH i2c: E2 0B 00 [11:22:37]MH_I2C_Read... [11:22:37]Read from MH i2c: E2 0B 00 66 08 00 70 40 FF 95 37 02 0F C9 90 00 3F [11:22:37]RAPDU: 70 40 FF 95 37 02 0F C9 90 00 [11:22:37]wFMCommunicate OK [11:22:37]SAM_PROTO_SignData done [11:22:37]FM_MakeSignedData done [11:22:37]CreateOFDProtocolMessage [11:22:37]wFMCommunicate request_size=4 [11:22:37]MH_SAM_APDU [11:22:37]CAPDU: 80 11 00 00 [11:22:37]Write to MH i2c: E2 08 00 67 08 80 11 00 00 00 00 00 00 E9 [11:22:37]Write i2c OK [11:22:37]MH_I2C_Read... [11:22:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:37]Read from MH i2c: E2 [11:22:37]MH_I2C_Read... [11:22:37]Read from MH i2c: E2 17 00 [11:22:37]MH_I2C_Read... [11:22:37]Read from MH i2c: E2 17 00 67 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 40 [11:22:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:22:37]wFMCommunicate OK [11:22:37]CreateOFDProtocolMessage done [11:22:37]OFDSenderStorePacket 227372 [11:22:37]StoreOFDPacket docnum=227372 [11:22:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 BB 91 00 01 14 2E 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 DA 1B 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 81 BE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C BE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 14 00 00 00 00 07 04 06 00 3C BE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 FC E7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2C 78 03 00 35 04 06 00 80 F9 8B 33 B6 2C 70 40 FF 95 37 02 0F C9 [11:22:37]CheckFolder [11:22:37]dirname=/storage/ofd_packets [11:22:37]CheckFolder done [11:22:37]ProducePacketName [11:22:37]name=ofd_packets/00227372 [11:22:37]NVStorageSaveData ofd_packets/00227372 [11:22:37]File name is /storage/ofd_packets/00227372 [11:22:37]Write 294 bytes [11:22:37]NVStorageSaveData done [11:22:37]OFDSenderStorePacket done [11:22:37]KKMCreateOFDPacket done [11:22:37]NVStorageSaveData kkm_last_timestamp [11:22:37]File name is /storage/kkm_last_timestamp [11:22:37]Write 4 bytes [11:22:37]NVStorageSaveData done [11:22:37]ExternCall_PrintAddStr [11:22:37]wPrintStart [11:22:37]Write to MH i2c: 01 00 00 68 08 70 [11:22:37]Write i2c OK [11:22:37]MH_I2C_Read... [11:22:37]Read from MH i2c: 01 [11:22:37]MH_I2C_Read... [11:22:37]Read from MH i2c: 01 07 00 [11:22:37]MH_I2C_Read... [11:22:37]Read from MH i2c: 01 07 00 68 08 00 00 00 00 00 FF 0F 85 [11:22:37]RasterBufferAndPrint [11:22:37]line Счет N : (1)1962888 [11:22:37]line ИНН: 02508201610067 [11:22:37]line Контрольно-Кассовый Чек [11:22:37]line ПРОДАЖА [11:22:37]line ТРК (МРК, ГНК) : 32 [11:22:37]line Товар: 2710124130 [11:22:37]line SU-92 [11:22:37]line 7.130 * 68.40 [11:22:37]line = 487.69 [11:22:37]line НДС 12% НСП 1% [11:22:37]line > о реализуемом товаре [11:22:37]line ОКРУГЛЕНИЕ: -0.69 [11:22:37]line ИТОГО: 487.00 [11:22:37]line Внесено: 500.00 [11:22:37]line СДАЧА: 13.00 [11:22:37]line НСП 1% : 4.32 [11:22:37]line НДС 12% : 51.79 [11:22:37]line Наличными: 487.00 [11:22:37]line Безнал.: 0.00 [11:22:37]line Место: АЗС № 133 "Партнер Нефть" [11:22:37]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:22:37]line СНО: Общий режим [11:22:37]line Чек 220 20.10.2024 11:22 [11:22:37]line Смена: 533 ФФД: 1.0 [11:22:37]line ЗНМ: 0300000091 [11:22:37]line РНМ: 0000000000091685 [11:22:37]line Версия ККМ: 001 [11:22:37]line ФМ: 0000000000871839 [11:22:37]line ФД: 227372 [11:22:37]line ФПД: 141809270634028 [11:22:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112236&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227372&fm=141809270634028&tin=02508201610067®Number=0000000000091685&sum=48700 [11:22:37]OFD Sender: Processing packet 227372 [packets to send 38, broken 37] [11:22:37]ProducePacketName [11:22:37]name=ofd_packets/00227372 [11:22:37]OFD Sender: To server: pG, [11:22:37]CommunicateWithHost lk.salyk.kg:30040 [11:22:37]ConnectInit lk.salyk.kg [11:22:37]written 0, free lines is 4095 [11:22:37]Connected sock=11 [11:22: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 33 39 08 01 00 00 BB 91 00 01 14 2E 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 DA 1B 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 81 BE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C BE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 14 00 00 00 00 07 04 06 00 3C BE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 FC E7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2C 78 03 00 35 04 06 00 80 F9 8B 33 B6 2C 70 40 FF 95 37 02 0F C9 [11:22:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 19 0D 47 00 C9 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 33 39 10 04 04 00 2C 78 03 00 F4 03 04 00 FB 92 14 67 B6 04 01 00 00 EB 5F DB 7B 95 3A 61 92 [11:22:38]CommunicateWithHost err = 0 [11:22:38]CheckOFDResponse [11:22:38]1017 (14) - 77093643461234 [11:22:38]1041 (16) - 0000000000871839 [11:22:38]1040 (4) - 227372 [11:22:38]1012 (4) - 20.10.2024 05:19 [11:22:38]1206 (1) - 0 [11:22:38]OFD Sender: Remove packet 227372 [11:22:38]ProducePacketName [11:22:38]name=ofd_packets/00227372 [11:22:38]NVStorageDeleteData [11:22:38]Write to MH i2c: 01 00 00 92 08 9A [11:22:38]Write i2c OK [11:22:38]MH_I2C_Read... [11:22:38]Read from MH i2c: 01 [11:22:38]MH_I2C_Read... [11:22:38]Read from MH i2c: 01 07 00 [11:22:38]MH_I2C_Read... [11:22:38]Read from MH i2c: 01 07 00 92 08 00 00 00 00 00 FF 0C AC [11:22:38]RasterBufferAndPrint [11:22:38]line [11:22:38]line [11:22:38]line [11:22:38]line [11:22:38]line [11:22:38]written 0, free lines is 3333 [11:22:38]process_action close_receipt done [11:22:38]requested_data is exist [11:22:38]produce_requested_data [11:22:38]requested_item fm.sn is exist - process it [11:22:38]wFMCommunicate request_size=4 [11:22:38]MH_SAM_APDU [11:22:38]CAPDU: 80 11 00 00 [11:22:38]Write to MH i2c: E2 08 00 99 08 80 11 00 00 00 00 00 00 1B [11:22:38]Write i2c OK [11:22:38]MH_I2C_Read... [11:22:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:38]Read from MH i2c: E2 [11:22:38]MH_I2C_Read... [11:22:38]Read from MH i2c: E2 17 00 [11:22:38]MH_I2C_Read... [11:22:38]Read from MH i2c: E2 17 00 99 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 72 [11:22:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:22:38]wFMCommunicate OK [11:22:38]requested_item fd.num is exist - process it [11:22:38]SAM_PROTO_GetFieldsCounters [11:22:38]wFMCommunicate request_size=4 [11:22:38]MH_SAM_APDU [11:22:38]CAPDU: 80 13 00 00 [11:22:38]Write to MH i2c: E2 08 00 9A 08 80 13 00 00 00 00 00 00 1E [11:22:38]Write i2c OK [11:22:38]MH_I2C_Read... [11:22:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:22:38]Read from MH i2c: E2 [11:22:38]MH_I2C_Read... [11:22:38]Read from MH i2c: E2 62 00 [11:22:38]MH_I2C_Read... [11:22:38]Read from MH i2c: E2 62 00 9A 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 2C 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 99 [11:22: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 2C 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:22:38]wFMCommunicate OK [11:22:38]SAM_PROTO_GetFieldsCounters done [11:22:38]requested_item shift.num is exist - process it [11:22:38]requested_item shift.opened is exist - process it [11:22:38]req_shift_opened [11:22:38]FM_GetShiftState [11:22:38]SAM_PROTO_GetShiftState [11:22:38]wFMCommunicate request_size=4 [11:22:38]MH_SAM_APDU [11:22:38]CAPDU: 80 13 01 00 [11:22:38]Write to MH i2c: E2 08 00 9B 08 80 13 01 00 00 00 00 00 20 [11:22:38]Write i2c OK [11:22:38]MH_I2C_Read... [11:22:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:38]Read from MH i2c: E2 [11:22:38]MH_I2C_Read... [11:22:38]Read from MH i2c: E2 0E 00 [11:22:38]MH_I2C_Read... [11:22:38]Read from MH i2c: E2 0E 00 9B 08 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 3A [11:22:38]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:22:38]wFMCommunicate OK [11:22:38]SAM_PROTO_GetShiftState done [11:22:38]FM_GetShiftState done [11:22:38]req_shift_opened done [11:22:38]requested_item shift.open_date is exist - process it [11:22:38]req_shift_open_date [11:22:38]req_shift_open_date done [11:22:38]produce_requested_data done [11:22:38]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227372,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [11:22:38]process_action_free close_receipt [11:22:38]json_value_free [11:22:38]json_value_free done [11:22:38]process_json_proto returns [11:22:38]Send response to host [11:22:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227372,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [11:22:38]free response buf [11:22:38]execute_script done [11:22:38]execute_script returns [11:22:38]free content buf [11:22:38]Sock 9.Close socket [11:22:38]Sock 9.Thread stoped [11:22:38]OFD Sender: No OFD packet to send [11:22:38]accept exits with 8 [11:22:38]New connection [11:22:38]New thread 3066686820 created [11:22:38]Thread 3066543460 joined [11:22:38]Waiting for new connection... [11:22:38] Sock 8.Parse request [11:22:38]Sock 8.Check first char [11:22:38]Sock 8.First char is OK [11:22:38]request: POST /json_proto HTTP/1.0 [11:22:38]Method: POST [11:22:38]URL: /json_proto [11:22:38]Method is POST - this is cgi request [11:22:38]url: /json_proto [11:22:38]query_string will be loaded in cgi processing [11:22:38]execute_cgi json_proto POST (null) [11:22:38]execute_cgi path=json_proto method=POST [11:22:38]POST find Content-Length [11:22:38]Host: 172.17.44.195:8080 [11:22:38]Content-Length: 678 [11:22:38]Content-Type: application/json [11:22:38] [11:22:38]POST finish read [11:22:38]Found Content-Length = 678 [11:22:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962887", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:38]execute_script... [11:22: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)1962887", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:38]POST & json_proto [11:22:38]process_json_proto [11:22:38]json parsed OK: [11:22:38]protocol is kg_v1.0 [11:22:38]action value=close_receipt [11:22:38]process_action close_receipt [11:22:38]cmd_close_receipt [11:22:38]MH_GetDate [11:22:38]Write to MH i2c: F0 00 00 9C 08 93 [11:22:38]Write i2c OK [11:22:38]MH_I2C_Read... [11:22:38]Read from MH i2c: F0 [11:22:38]MH_I2C_Read... [11:22:38]Read from MH i2c: F0 09 00 [11:22:38]MH_I2C_Read... [11:22:38]Read from MH i2c: F0 09 00 9C 08 00 FF E7 14 67 82 C9 CF 66 7D [11:22:38]GetLastDocTimeStamp 1729423356 [11:22:38]current date 1729423359 [11:22:38]FM_GetShiftState [11:22:38]SAM_PROTO_GetShiftState [11:22:38]wFMCommunicate request_size=4 [11:22:38]MH_SAM_APDU [11:22:38]CAPDU: 80 13 01 00 [11:22:38]Write to MH i2c: E2 08 00 9D 08 80 13 01 00 00 00 00 00 22 [11:22:38]Write i2c OK [11:22:38]MH_I2C_Read... [11:22:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:38]Read from MH i2c: E2 [11:22:38]MH_I2C_Read... [11:22:38]Read from MH i2c: E2 0E 00 [11:22:38]MH_I2C_Read... [11:22:38]Read from MH i2c: E2 0E 00 9D 08 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 3C [11:22:38]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:22:38]wFMCommunicate OK [11:22:38]SAM_PROTO_GetShiftState done [11:22:38]FM_GetShiftState done [11:22:38]opened in 1729383750 [11:22:38]opened+sec_in_day 1729470150 [11:22:38]quantity*price = 50041 [11:22:38]sum+1 = 50042 [11:22:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 221 20.10.2024 11:22 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227373 ФПД: 129980892223760 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112239&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227373&fm=129980892223760&tin=02508201610067®Number=0000000000091685&sum=50000 [11:22:40]StoreToDocumentArchive [11:22:40]shift 533 fd 227373 [11:22:40]save to /storage/0533/doc_00227373 [11:22:40]save last doc name /storage/0533/doc_00227373 to /storage/kkm_last_doc_name [11:22:40]save OK [11:22:40]Clear old archive folders... [11:22:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:22:40]tlvbuf is 01966520 [11:22:40]SAM_PROTO_ClearQueue [11:22:40]wFMCommunicate request_size=4 [11:22:40]MH_SAM_APDU [11:22:40]CAPDU: 80 09 00 00 [11:22:40]Write to MH i2c: E2 08 00 AA 08 80 09 00 00 00 00 00 00 24 [11:22:40]Write i2c OK [11:22:40]MH_I2C_Read... [11:22:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:22:40]Read from MH i2c: E2 [11:22:40]MH_I2C_Read... [11:22:40]Read from MH i2c: E2 03 00 [11:22:40]MH_I2C_Read... [11:22:40]Read from MH i2c: E2 03 00 AA 08 00 90 00 26 [11:22:40]RAPDU: 90 00 [11:22:40]wFMCommunicate OK [11:22:40]SAM_PROTO_ClearQueue done [11:22:40]KKMCreateOFDPacket [11:22:40]OFDProtocolAddRootSTLVToBuf [11:22:40]FM_MakeSignedData [11:22:40]FM_MakeSignedData [11:22:40]SAM_PROTO_SignData [11:22:40]wFMCommunicate request_size=4 [11:22:40]MH_SAM_APDU [11:22:40]CAPDU: 80 0D 01 02 [11:22:40]Write to MH i2c: E2 08 00 AB 08 80 0D 01 02 00 00 00 00 2C [11:22:40]Write i2c OK [11:22:40]MH_I2C_Read... [11:22:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:22:40]Read from MH i2c: E2 [11:22:40]MH_I2C_Read... [11:22:40]Read from MH i2c: E2 03 00 [11:22:40]MH_I2C_Read... [11:22:40]Read from MH i2c: E2 03 00 AB 08 00 90 00 27 [11:22:40]RAPDU: 90 00 [11:22:40]wFMCommunicate OK [11:22:40]wFMCommunicate request_size=255 [11:22:40]MH_SAM_APDU [11:22:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 FF E7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2D 78 03 00 35 04 06 00 76 [11:22:40]Write to MH i2c: E2 02 01 AC 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 FF E7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2D 78 03 00 35 04 06 00 76 00 00 36 [11:22:40]Write i2c OK [11:22:40]MH_I2C_Read... [11:22:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:40]Read from MH i2c: E2 [11:22:40]MH_I2C_Read... [11:22:40]Read from MH i2c: E2 03 00 [11:22:40]MH_I2C_Read... [11:22:40]Read from MH i2c: E2 03 00 AC 08 00 90 00 28 [11:22:40]RAPDU: 90 00 [11:22:40]wFMCommunicate OK [11:22:40]wFMCommunicate request_size=10 [11:22:40]MH_SAM_APDU [11:22:40]CAPDU: 80 0D 02 02 05 37 88 E8 99 10 [11:22:40]Write to MH i2c: E2 0D 00 AD 08 80 0D 02 02 05 00 37 88 E8 99 10 00 00 89 [11:22:40]Write i2c OK [11:22:40]MH_I2C_Read... [11:22:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:40]Read from MH i2c: E2 [11:22:40]MH_I2C_Read... [11:22:40]Read from MH i2c: E2 03 00 [11:22:40]MH_I2C_Read... [11:22:40]Read from MH i2c: E2 03 00 AD 08 00 90 00 29 [11:22:40]RAPDU: 90 00 [11:22:40]wFMCommunicate OK [11:22:40]wFMCommunicate request_size=4 [11:22:40]MH_SAM_APDU [11:22:40]CAPDU: 80 0D 03 02 [11:22:40]Write to MH i2c: E2 08 00 AE 08 80 0D 03 02 00 00 00 00 31 [11:22:40]Write i2c OK [11:22:40]MH_I2C_Read... [11:22:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:22:40]Read from MH i2c: E2 [11:22:40]MH_I2C_Read... [11:22:40]Read from MH i2c: E2 0B 00 [11:22:40]MH_I2C_Read... [11:22:40]Read from MH i2c: E2 0B 00 AE 08 00 D2 EE 19 F7 28 75 30 F2 90 00 C1 [11:22:40]RAPDU: D2 EE 19 F7 28 75 30 F2 90 00 [11:22:40]wFMCommunicate OK [11:22:40]SAM_PROTO_SignData done [11:22:40]FM_MakeSignedData done [11:22:40]CreateOFDProtocolMessage [11:22:40]wFMCommunicate request_size=4 [11:22:40]MH_SAM_APDU [11:22:40]CAPDU: 80 11 00 00 [11:22:40]Write to MH i2c: E2 08 00 AF 08 80 11 00 00 00 00 00 00 31 [11:22:40]Write i2c OK [11:22:40]MH_I2C_Read... [11:22:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:40]Read from MH i2c: E2 [11:22:40]MH_I2C_Read... [11:22:40]Read from MH i2c: E2 17 00 [11:22:40]MH_I2C_Read... [11:22:40]Read from MH i2c: E2 17 00 AF 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 88 [11:22:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:22:40]wFMCommunicate OK [11:22:40]CreateOFDProtocolMessage done [11:22:40]OFDSenderStorePacket 227373 [11:22:40]StoreOFDPacket docnum=227373 [11:22:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 68 FE 07 01 D3 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 FF E7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2D 78 03 00 35 04 06 00 76 37 88 E8 99 10 D2 EE 19 F7 28 75 30 F2 [11:22:40]CheckFolder [11:22:40]dirname=/storage/ofd_packets [11:22:40]CheckFolder done [11:22:40]ProducePacketName [11:22:40]name=ofd_packets/00227373 [11:22:40]NVStorageSaveData ofd_packets/00227373 [11:22:40]File name is /storage/ofd_packets/00227373 [11:22:40]Write 301 bytes [11:22:40]NVStorageSaveData done [11:22:40]OFDSenderStorePacket done [11:22:40]KKMCreateOFDPacket done [11:22:40]NVStorageSaveData kkm_last_timestamp [11:22:40]File name is /storage/kkm_last_timestamp [11:22:40]Write 4 bytes [11:22:40]NVStorageSaveData done [11:22:40]ExternCall_PrintAddStr [11:22:40]wPrintStart [11:22:40]Write to MH i2c: 01 00 00 B0 08 B8 [11:22:40]Write i2c OK [11:22:40]MH_I2C_Read... [11:22:40]Read from MH i2c: 01 [11:22:40]MH_I2C_Read... [11:22:40]Read from MH i2c: 01 07 00 [11:22:40]MH_I2C_Read... [11:22:40]Read from MH i2c: 01 07 00 B0 08 00 00 00 00 00 FF 0F CD [11:22:40]RasterBufferAndPrint [11:22:40]line Счет N : (1)1962887 [11:22:40]line ИНН: 02508201610067 [11:22:40]line Контрольно-Кассовый Чек [11:22:40]line ПРОДАЖА [11:22:40]line ТРК (МРК, ГНК) : 43 [11:22:40]line Товар: 2710124130 [11:22:40]line Аи-92-К-5 [11:22:40]line 7.480 * 66.90 [11:22:40]line = 500.41 [11:22:40]line НДС 12% НСП 1% [11:22:40]line > о реализуемом товаре [11:22:40]line ОКРУГЛЕНИЕ: -0.41 [11:22:40]line ИТОГО: 500.00 [11:22:40]line Внесено: 500.00 [11:22:40]line СДАЧА: 0.00 [11:22:40]line НСП 1% : 4.43 [11:22:40]line НДС 12% : 53.14 [11:22:40]line Наличными: 500.00 [11:22:40]line Безнал.: 0.00 [11:22:40]line Место: АЗС № 133 "Партнер Нефть" [11:22:40]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:22:40]line СНО: Общий режим [11:22:40]line Чек 221 20.10.2024 11:22 [11:22:40]line Смена: 533 ФФД: 1.0 [11:22:40]line ЗНМ: 0300000091 [11:22:40]line РНМ: 0000000000091685 [11:22:40]line Версия ККМ: 001 [11:22:40]line ФМ: 0000000000871839 [11:22:40]line ФД: 227373 [11:22:40]line ФПД: 129980892223760 [11:22:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112239&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227373&fm=129980892223760&tin=02508201610067®Number=0000000000091685&sum=50000 [11:22:40]written 0, free lines is 4095 [11:22:41]OFD Sender: Processing packet 227373 [packets to send 38, broken 37] [11:22:41]ProducePacketName [11:22:41]name=ofd_packets/00227373 [11:22:41]OFD Sender: To server: pG, [11:22:41]CommunicateWithHost lk.salyk.kg:30040 [11:22:41]ConnectInit lk.salyk.kg [11:22:41]Connected sock=10 [11:22: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 33 39 0F 01 00 00 68 FE 07 01 D3 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 FF E7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2D 78 03 00 35 04 06 00 76 37 88 E8 99 10 D2 EE 19 F7 28 75 30 F2 [11:22: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 33 39 4F 00 00 00 A1 64 47 00 39 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 33 39 10 04 04 00 2D 78 03 00 F4 03 04 00 FE 92 14 67 B6 04 01 00 00 3C 8B 9F B4 90 D1 5A D7 [11:22:41]CommunicateWithHost err = 0 [11:22:41]CheckOFDResponse [11:22:41]1017 (14) - 77093643461234 [11:22:41]1041 (16) - 0000000000871839 [11:22:41]1040 (4) - 227373 [11:22:41]1012 (4) - 20.10.2024 05:19 [11:22:41]1206 (1) - 0 [11:22:41]OFD Sender: Remove packet 227373 [11:22:41]ProducePacketName [11:22:41]name=ofd_packets/00227373 [11:22:41]NVStorageDeleteData [11:22:41]Write to MH i2c: 01 00 00 DA 08 E2 [11:22:41]Write i2c OK [11:22:41]MH_I2C_Read... [11:22:41]Read from MH i2c: 01 [11:22:41]MH_I2C_Read... [11:22:41]Read from MH i2c: 01 07 00 [11:22:41]MH_I2C_Read... [11:22:41]Read from MH i2c: 01 07 00 DA 08 00 00 00 00 00 18 0D 0E [11:22:41]RasterBufferAndPrint [11:22:41]line [11:22:41]line [11:22:41]line [11:22:41]line [11:22:41]line [11:22:41]written 0, free lines is 3367 [11:22:41]process_action close_receipt done [11:22:41]requested_data is exist [11:22:41]produce_requested_data [11:22:41]requested_item fm.sn is exist - process it [11:22:41]wFMCommunicate request_size=4 [11:22:41]MH_SAM_APDU [11:22:41]CAPDU: 80 11 00 00 [11:22:41]Write to MH i2c: E2 08 00 E1 08 80 11 00 00 00 00 00 00 63 [11:22:41]Write i2c OK [11:22:41]MH_I2C_Read... [11:22:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:41]Read from MH i2c: E2 [11:22:41]MH_I2C_Read... [11:22:41]Read from MH i2c: E2 17 00 [11:22:41]MH_I2C_Read... [11:22:41]Read from MH i2c: E2 17 00 E1 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 BA [11:22:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:22:41]wFMCommunicate OK [11:22:41]requested_item fd.num is exist - process it [11:22:41]SAM_PROTO_GetFieldsCounters [11:22:41]wFMCommunicate request_size=4 [11:22:41]MH_SAM_APDU [11:22:41]CAPDU: 80 13 00 00 [11:22:41]Write to MH i2c: E2 08 00 E2 08 80 13 00 00 00 00 00 00 66 [11:22:41]Write i2c OK [11:22:41]MH_I2C_Read... [11:22:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:22:41]Read from MH i2c: E2 [11:22:41]MH_I2C_Read... [11:22:41]Read from MH i2c: E2 62 00 [11:22:41]MH_I2C_Read... [11:22:41]Read from MH i2c: E2 62 00 E2 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 2D 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 E5 [11:22: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 2D 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:22:41]wFMCommunicate OK [11:22:41]SAM_PROTO_GetFieldsCounters done [11:22:41]requested_item shift.num is exist - process it [11:22:41]requested_item shift.opened is exist - process it [11:22:41]req_shift_opened [11:22:41]FM_GetShiftState [11:22:41]SAM_PROTO_GetShiftState [11:22:41]wFMCommunicate request_size=4 [11:22:41]MH_SAM_APDU [11:22:41]CAPDU: 80 13 01 00 [11:22:41]Write to MH i2c: E2 08 00 E3 08 80 13 01 00 00 00 00 00 68 [11:22:41]Write i2c OK [11:22:41]MH_I2C_Read... [11:22:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:41]Read from MH i2c: E2 [11:22:41]MH_I2C_Read... [11:22:41]Read from MH i2c: E2 0E 00 [11:22:41]MH_I2C_Read... [11:22:41]Read from MH i2c: E2 0E 00 E3 08 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 82 [11:22:41]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:22:41]wFMCommunicate OK [11:22:41]SAM_PROTO_GetShiftState done [11:22:41]FM_GetShiftState done [11:22:41]req_shift_opened done [11:22:41]requested_item shift.open_date is exist - process it [11:22:41]req_shift_open_date [11:22:41]req_shift_open_date done [11:22:41]produce_requested_data done [11:22:41]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227373,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [11:22:41]process_action_free close_receipt [11:22:41]json_value_free [11:22:41]json_value_free done [11:22:41]process_json_proto returns [11:22:41]Send response to host [11:22:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227373,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [11:22:41]free response buf [11:22:41]execute_script done [11:22:41]execute_script returns [11:22:41]free content buf [11:22:41]Sock 8.Close socket [11:22:41]Sock 8.Thread stoped [11:22:41]OFD Sender: No OFD packet to send [11:22:46]OFD Sender: No OFD packet to send [11:22:51]OFD Sender: No OFD packet to send [11:22:56]OFD Sender: No OFD packet to send [11:23:01]OFD Sender: No OFD packet to send [11:23:06]OFD Sender: No OFD packet to send [11:23:11]OFD Sender: No OFD packet to send [11:23:16]OFD Sender: No OFD packet to send [11:23:21]OFD Sender: No OFD packet to send [11:23:26]OFD Sender: No OFD packet to send [11:23:31]OFD Sender: No OFD packet to send [11:23:36]OFD Sender: No OFD packet to send [11:23:41]OFD Sender: No OFD packet to send [11:23:46]OFD Sender: No OFD packet to send [11:23:51]OFD Sender: No OFD packet to send [11:23:56]OFD Sender: No OFD packet to send [11:24:01]OFD Sender: No OFD packet to send [11:24:06]OFD Sender: No OFD packet to send [11:24:11]OFD Sender: No OFD packet to send [11:24:16]OFD Sender: No OFD packet to send [11:24:21]OFD Sender: No OFD packet to send [11:24:26]OFD Sender: No OFD packet to send [11:24:29]accept exits with 9 [11:24:29]New connection [11:24:29]New thread 3066543460 created [11:24:29]Thread 3066686820 joined [11:24:29]Waiting for new connection... [11:24:29] Sock 9.Parse request [11:24:29]Sock 9.Check first char [11:24:29]Sock 9.First char is OK [11:24:29]request: POST /json_proto HTTP/1.0 [11:24:29]Method: POST [11:24:29]URL: /json_proto [11:24:29]Method is POST - this is cgi request [11:24:29]url: /json_proto [11:24:29]query_string will be loaded in cgi processing [11:24:29]execute_cgi json_proto POST (null) [11:24:29]execute_cgi path=json_proto method=POST [11:24:29]POST find Content-Length [11:24:29]Host: 172.17.44.195:8080 [11:24:29]Content-Length: 680 [11:24:29]Content-Type: application/json [11:24:29] [11:24:29]POST finish read [11:24:29]Found Content-Length = 680 [11:24:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962889", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:24:29]execute_script... [11:24: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)1962889", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:24:29]POST & json_proto [11:24:29]process_json_proto [11:24:29]json parsed OK: [11:24:29]protocol is kg_v1.0 [11:24:29]action value=close_receipt [11:24:29]process_action close_receipt [11:24:29]cmd_close_receipt [11:24:29]MH_GetDate [11:24:29]Write to MH i2c: F0 00 00 E4 08 DB [11:24:29]Write i2c OK [11:24:29]MH_I2C_Read... [11:24:29]Read from MH i2c: F0 [11:24:29]MH_I2C_Read... [11:24:29]Read from MH i2c: F0 09 00 [11:24:29]MH_I2C_Read... [11:24:29]Read from MH i2c: F0 09 00 E4 08 00 6E E8 14 67 82 C9 CF 66 35 [11:24:29]GetLastDocTimeStamp 1729423359 [11:24:29]current date 1729423470 [11:24:29]FM_GetShiftState [11:24:29]SAM_PROTO_GetShiftState [11:24:29]wFMCommunicate request_size=4 [11:24:29]MH_SAM_APDU [11:24:29]CAPDU: 80 13 01 00 [11:24:29]Write to MH i2c: E2 08 00 E5 08 80 13 01 00 00 00 00 00 6A [11:24:29]Write i2c OK [11:24:29]MH_I2C_Read... [11:24:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:29]Read from MH i2c: E2 [11:24:29]MH_I2C_Read... [11:24:29]Read from MH i2c: E2 0E 00 [11:24:29]MH_I2C_Read... [11:24:29]Read from MH i2c: E2 0E 00 E5 08 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 84 [11:24:29]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:24:29]wFMCommunicate OK [11:24:29]SAM_PROTO_GetShiftState done [11:24:29]FM_GetShiftState done [11:24:29]opened in 1729383750 [11:24:29]opened+sec_in_day 1729470150 [11:24:29]quantity*price = 100050 [11:24:29]sum+1 = 100052 [11:24:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 222 20.10.2024 11:24 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227374 ФПД: 197817591302626 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112430&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227374&fm=197817591302626&tin=02508201610067®Number=0000000000091685&sum=100000 [11:24:30]StoreToDocumentArchive [11:24:30]shift 533 fd 227374 [11:24:30]save to /storage/0533/doc_00227374 [11:24:30]save last doc name /storage/0533/doc_00227374 to /storage/kkm_last_doc_name [11:24:30]save OK [11:24:30]Clear old archive folders... [11:24:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:24:30]tlvbuf is 018210C0 [11:24:30]SAM_PROTO_ClearQueue [11:24:30]wFMCommunicate request_size=4 [11:24:30]MH_SAM_APDU [11:24:30]CAPDU: 80 09 00 00 [11:24:30]Write to MH i2c: E2 08 00 F2 08 80 09 00 00 00 00 00 00 6C [11:24:30]Write i2c OK [11:24:30]MH_I2C_Read... [11:24:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:24:31]Read from MH i2c: E2 [11:24:31]MH_I2C_Read... [11:24:31]Read from MH i2c: E2 03 00 [11:24:31]MH_I2C_Read... [11:24:31]Read from MH i2c: E2 03 00 F2 08 00 90 00 6E [11:24:31]RAPDU: 90 00 [11:24:31]wFMCommunicate OK [11:24:31]SAM_PROTO_ClearQueue done [11:24:31]KKMCreateOFDPacket [11:24:31]OFDProtocolAddRootSTLVToBuf [11:24:31]FM_MakeSignedData [11:24:31]FM_MakeSignedData [11:24:31]SAM_PROTO_SignData [11:24:31]wFMCommunicate request_size=4 [11:24:31]MH_SAM_APDU [11:24:31]CAPDU: 80 0D 01 02 [11:24:31]Write to MH i2c: E2 08 00 F3 08 80 0D 01 02 00 00 00 00 74 [11:24:31]Write i2c OK [11:24:31]MH_I2C_Read... [11:24:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:24:31]Read from MH i2c: E2 [11:24:31]MH_I2C_Read... [11:24:31]Read from MH i2c: E2 03 00 [11:24:31]MH_I2C_Read... [11:24:31]Read from MH i2c: E2 03 00 F3 08 00 90 00 6F [11:24:31]RAPDU: 90 00 [11:24:31]wFMCommunicate OK [11:24:31]wFMCommunicate request_size=255 [11:24:31]MH_SAM_APDU [11:24:31]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 6E E8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2E 78 03 00 35 04 06 00 B3 E9 FF 42 [11:24:31]Write to MH i2c: E2 02 01 F4 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 6E E8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2E 78 03 00 35 04 06 00 B3 E9 FF 42 00 00 4D [11:24:31]Write i2c OK [11:24:31]MH_I2C_Read... [11:24:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:31]Read from MH i2c: E2 [11:24:31]MH_I2C_Read... [11:24:31]Read from MH i2c: E2 03 00 [11:24:31]MH_I2C_Read... [11:24:31]Read from MH i2c: E2 03 00 F4 08 00 90 00 70 [11:24:31]RAPDU: 90 00 [11:24:31]wFMCommunicate OK [11:24:31]wFMCommunicate request_size=7 [11:24:31]MH_SAM_APDU [11:24:31]CAPDU: 80 0D 02 02 02 89 E2 [11:24:31]Write to MH i2c: E2 0A 00 F5 08 80 0D 02 02 02 00 89 E2 00 00 E6 [11:24:31]Write i2c OK [11:24:31]MH_I2C_Read... [11:24:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:31]Read from MH i2c: E2 [11:24:31]MH_I2C_Read... [11:24:31]Read from MH i2c: E2 03 00 [11:24:31]MH_I2C_Read... [11:24:31]Read from MH i2c: E2 03 00 F5 08 00 90 00 71 [11:24:31]RAPDU: 90 00 [11:24:31]wFMCommunicate OK [11:24:31]wFMCommunicate request_size=4 [11:24:31]MH_SAM_APDU [11:24:31]CAPDU: 80 0D 03 02 [11:24:31]Write to MH i2c: E2 08 00 F6 08 80 0D 03 02 00 00 00 00 79 [11:24:31]Write i2c OK [11:24:31]MH_I2C_Read... [11:24:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:24:31]Read from MH i2c: E2 [11:24:31]MH_I2C_Read... [11:24:31]Read from MH i2c: E2 0B 00 [11:24:31]MH_I2C_Read... [11:24:31]Read from MH i2c: E2 0B 00 F6 08 00 4A 17 6E EC C9 1A 45 A2 90 00 FF [11:24:31]RAPDU: 4A 17 6E EC C9 1A 45 A2 90 00 [11:24:31]wFMCommunicate OK [11:24:31]SAM_PROTO_SignData done [11:24:31]FM_MakeSignedData done [11:24:31]CreateOFDProtocolMessage [11:24:31]wFMCommunicate request_size=4 [11:24:31]MH_SAM_APDU [11:24:31]CAPDU: 80 11 00 00 [11:24:31]Write to MH i2c: E2 08 00 F7 08 80 11 00 00 00 00 00 00 79 [11:24:31]Write i2c OK [11:24:31]MH_I2C_Read... [11:24:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:31]Read from MH i2c: E2 [11:24:31]MH_I2C_Read... [11:24:31]Read from MH i2c: E2 17 00 [11:24:31]MH_I2C_Read... [11:24:31]Read from MH i2c: E2 17 00 F7 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D0 [11:24:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:24:31]wFMCommunicate OK [11:24:31]CreateOFDProtocolMessage done [11:24:31]OFDSenderStorePacket 227374 [11:24:31]StoreOFDPacket docnum=227374 [11:24:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 80 9E 04 01 E8 7E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 6E E8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2E 78 03 00 35 04 06 00 B3 E9 FF 42 89 E2 4A 17 6E EC C9 1A 45 A2 [11:24:31]CheckFolder [11:24:31]dirname=/storage/ofd_packets [11:24:31]CheckFolder done [11:24:31]ProducePacketName [11:24:31]name=ofd_packets/00227374 [11:24:31]NVStorageSaveData ofd_packets/00227374 [11:24:31]File name is /storage/ofd_packets/00227374 [11:24:31]Write 298 bytes [11:24:31]NVStorageSaveData done [11:24:31]OFDSenderStorePacket done [11:24:31]KKMCreateOFDPacket done [11:24:31]NVStorageSaveData kkm_last_timestamp [11:24:31]File name is /storage/kkm_last_timestamp [11:24:31]Write 4 bytes [11:24:31]NVStorageSaveData done [11:24:31]ExternCall_PrintAddStr [11:24:31]wPrintStart [11:24:31]Write to MH i2c: 01 00 00 F8 08 00 [11:24:31]Write i2c OK [11:24:31]MH_I2C_Read... [11:24:31]Read from MH i2c: 01 [11:24:31]MH_I2C_Read... [11:24:31]Read from MH i2c: 01 07 00 [11:24:31]MH_I2C_Read... [11:24:31]Read from MH i2c: 01 07 00 F8 08 00 00 00 00 00 FF 0F 15 [11:24:31]RasterBufferAndPrint [11:24:31]line Счет N : (1)1962889 [11:24:31]line ИНН: 02508201610067 [11:24:31]line Контрольно-Кассовый Чек [11:24:31]line ПРОДАЖА [11:24:31]line ТРК (МРК, ГНК) : 61 [11:24:31]line Товар: 2710194210 [11:24:31]line ДТ-К-5 [11:24:31]line 13.130 * 76.20 [11:24:31]line = 1000.51 [11:24:31]line НДС 12% НСП 1% [11:24:31]line > о реализуемом товаре [11:24:31]line ОКРУГЛЕНИЕ: -0.51 [11:24:31]line ИТОГО: 1000.00 [11:24:31]line Внесено: 1000.00 [11:24:31]line СДАЧА: 0.00 [11:24:31]line НСП 1% : 8.85 [11:24:31]line НДС 12% : 106.25 [11:24:31]line Наличными: 1000.00 [11:24:31]line Безнал.: 0.00 [11:24:31]line Место: АЗС № 133 "Партнер Нефть" [11:24:31]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:24:31]line СНО: Общий режим [11:24:31]line Чек 222 20.10.2024 11:24 [11:24:31]line Смена: 533 ФФД: 1.0 [11:24:31]line ЗНМ: 0300000091 [11:24:31]line РНМ: 0000000000091685 [11:24:31]line Версия ККМ: 001 [11:24:31]line ФМ: 0000000000871839 [11:24:31]line ФД: 227374 [11:24:31]line ФПД: 197817591302626 [11:24:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112430&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227374&fm=197817591302626&tin=02508201610067®Number=0000000000091685&sum=100000 [11:24:31]OFD Sender: Processing packet 227374 [packets to send 38, broken 37] [11:24:31]ProducePacketName [11:24:31]name=ofd_packets/00227374 [11:24:31]OFD Sender: To server: pG, [11:24:31]CommunicateWithHost lk.salyk.kg:30040 [11:24:31]ConnectInit lk.salyk.kg [11:24:31]written 0, free lines is 4095 [11:24:31]Connected sock=10 [11:24: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 33 39 0C 01 00 00 80 9E 04 01 E8 7E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 6E E8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2E 78 03 00 35 04 06 00 B3 E9 FF 42 89 E2 4A 17 6E EC C9 1A 45 A2 [11:24: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 33 39 4F 00 00 00 DC 92 47 00 F3 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2E 78 03 00 F4 03 04 00 6D 93 14 67 B6 04 01 00 00 B4 DE C3 C3 49 73 1C 4F [11:24:32]CommunicateWithHost err = 0 [11:24:32]CheckOFDResponse [11:24:32]1017 (14) - 77093643461234 [11:24:32]1041 (16) - 0000000000871839 [11:24:32]1040 (4) - 227374 [11:24:32]1012 (4) - 20.10.2024 05:21 [11:24:32]1206 (1) - 0 [11:24:32]OFD Sender: Remove packet 227374 [11:24:32]ProducePacketName [11:24:32]name=ofd_packets/00227374 [11:24:32]NVStorageDeleteData [11:24:32]Write to MH i2c: 01 00 00 22 09 2B [11:24:32]Write i2c OK [11:24:32]MH_I2C_Read... [11:24:32]Read from MH i2c: 01 [11:24:32]MH_I2C_Read... [11:24:32]Read from MH i2c: 01 07 00 [11:24:32]MH_I2C_Read... [11:24:32]Read from MH i2c: 01 07 00 22 09 00 00 00 00 00 FE 0C 3C [11:24:32]RasterBufferAndPrint [11:24:32]line [11:24:32]line [11:24:32]line [11:24:32]line [11:24:32]line [11:24:32]written 0, free lines is 3332 [11:24:32]process_action close_receipt done [11:24:32]requested_data is exist [11:24:32]produce_requested_data [11:24:32]requested_item fm.sn is exist - process it [11:24:32]wFMCommunicate request_size=4 [11:24:32]MH_SAM_APDU [11:24:32]CAPDU: 80 11 00 00 [11:24:32]Write to MH i2c: E2 08 00 29 09 80 11 00 00 00 00 00 00 AC [11:24:32]Write i2c OK [11:24:32]MH_I2C_Read... [11:24:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:32]Read from MH i2c: E2 [11:24:32]MH_I2C_Read... [11:24:32]Read from MH i2c: E2 17 00 [11:24:32]MH_I2C_Read... [11:24:32]Read from MH i2c: E2 17 00 29 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 03 [11:24:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:24:32]wFMCommunicate OK [11:24:32]requested_item fd.num is exist - process it [11:24:32]SAM_PROTO_GetFieldsCounters [11:24:32]wFMCommunicate request_size=4 [11:24:32]MH_SAM_APDU [11:24:32]CAPDU: 80 13 00 00 [11:24:32]Write to MH i2c: E2 08 00 2A 09 80 13 00 00 00 00 00 00 AF [11:24:32]Write i2c OK [11:24:32]MH_I2C_Read... [11:24:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:24:32]Read from MH i2c: E2 [11:24:32]MH_I2C_Read... [11:24:32]Read from MH i2c: E2 62 00 [11:24:32]MH_I2C_Read... [11:24:32]Read from MH i2c: E2 62 00 2A 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 2E 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [11:24: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 2E 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:24:32]wFMCommunicate OK [11:24:32]SAM_PROTO_GetFieldsCounters done [11:24:32]requested_item shift.num is exist - process it [11:24:32]requested_item shift.opened is exist - process it [11:24:32]req_shift_opened [11:24:32]FM_GetShiftState [11:24:32]SAM_PROTO_GetShiftState [11:24:32]wFMCommunicate request_size=4 [11:24:32]MH_SAM_APDU [11:24:32]CAPDU: 80 13 01 00 [11:24:32]Write to MH i2c: E2 08 00 2B 09 80 13 01 00 00 00 00 00 B1 [11:24:32]Write i2c OK [11:24:32]MH_I2C_Read... [11:24:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:32]Read from MH i2c: E2 [11:24:32]MH_I2C_Read... [11:24:32]Read from MH i2c: E2 0E 00 [11:24:32]MH_I2C_Read... [11:24:32]Read from MH i2c: E2 0E 00 2B 09 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 CB [11:24:32]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:24:32]wFMCommunicate OK [11:24:32]SAM_PROTO_GetShiftState done [11:24:32]FM_GetShiftState done [11:24:32]req_shift_opened done [11:24:32]requested_item shift.open_date is exist - process it [11:24:32]req_shift_open_date [11:24:32]req_shift_open_date done [11:24:32]produce_requested_data done [11:24:32]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227374,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [11:24:32]process_action_free close_receipt [11:24:32]json_value_free [11:24:32]json_value_free done [11:24:32]process_json_proto returns [11:24:32]Send response to host [11:24:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227374,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [11:24:32]free response buf [11:24:32]execute_script done [11:24:32]execute_script returns [11:24:32]free content buf [11:24:32]Sock 9.Close socket [11:24:32]Sock 9.Thread stoped [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:53]accept exits with 8 [11:24:53]New connection [11:24:53]New thread 3066686820 created [11:24:53]Thread 3066543460 joined [11:24:53]Waiting for new connection... [11:24:53] Sock 8.Parse request [11:24:53]Sock 8.Check first char [11:24:53]Sock 8.First char is OK [11:24:53]request: POST /json_proto HTTP/1.0 [11:24:53]Method: POST [11:24:53]URL: /json_proto [11:24:53]Method is POST - this is cgi request [11:24:53]url: /json_proto [11:24:53]query_string will be loaded in cgi processing [11:24:53]execute_cgi json_proto POST (null) [11:24:53]execute_cgi path=json_proto method=POST [11:24:53]POST find Content-Length [11:24:53]Host: 172.17.44.195:8080 [11:24:53]Content-Length: 678 [11:24:53]Content-Type: application/json [11:24:53] [11:24:53]POST finish read [11:24:53]Found Content-Length = 678 [11:24:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962890", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:24:53]execute_script... [11:24: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)1962890", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:24:53]POST & json_proto [11:24:53]process_json_proto [11:24:53]json parsed OK: [11:24:53]protocol is kg_v1.0 [11:24:53]action value=close_receipt [11:24:53]process_action close_receipt [11:24:53]cmd_close_receipt [11:24:53]MH_GetDate [11:24:53]Write to MH i2c: F0 00 00 2C 09 24 [11:24:53]Write i2c OK [11:24:53]MH_I2C_Read... [11:24:53]Read from MH i2c: F0 [11:24:53]MH_I2C_Read... [11:24:53]Read from MH i2c: F0 09 00 [11:24:53]MH_I2C_Read... [11:24:53]Read from MH i2c: F0 09 00 2C 09 00 86 E8 14 67 82 C9 CF 66 96 [11:24:53]GetLastDocTimeStamp 1729423470 [11:24:53]current date 1729423494 [11:24:53]FM_GetShiftState [11:24:53]SAM_PROTO_GetShiftState [11:24:53]wFMCommunicate request_size=4 [11:24:53]MH_SAM_APDU [11:24:53]CAPDU: 80 13 01 00 [11:24:53]Write to MH i2c: E2 08 00 2D 09 80 13 01 00 00 00 00 00 B3 [11:24:53]Write i2c OK [11:24:53]MH_I2C_Read... [11:24:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:54]Read from MH i2c: E2 [11:24:54]MH_I2C_Read... [11:24:54]Read from MH i2c: E2 0E 00 [11:24:54]MH_I2C_Read... [11:24:54]Read from MH i2c: E2 0E 00 2D 09 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 CD [11:24:54]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:24:54]wFMCommunicate OK [11:24:54]SAM_PROTO_GetShiftState done [11:24:54]FM_GetShiftState done [11:24:54]opened in 1729383750 [11:24:54]opened+sec_in_day 1729470150 [11:24:54]quantity*price = 50041 [11:24:54]sum+1 = 50042 [11:24:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 223 20.10.2024 11:24 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227375 ФПД: 182943710256994 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112454&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227375&fm=182943710256994&tin=02508201610067®Number=0000000000091685&sum=50000 [11:24:55]StoreToDocumentArchive [11:24:55]shift 533 fd 227375 [11:24:55]save to /storage/0533/doc_00227375 [11:24:55]save last doc name /storage/0533/doc_00227375 to /storage/kkm_last_doc_name [11:24:55]save OK [11:24:55]Clear old archive folders... [11:24:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:24:55]tlvbuf is B6F141A0 [11:24:55]SAM_PROTO_ClearQueue [11:24:55]wFMCommunicate request_size=4 [11:24:55]MH_SAM_APDU [11:24:55]CAPDU: 80 09 00 00 [11:24:55]Write to MH i2c: E2 08 00 3A 09 80 09 00 00 00 00 00 00 B5 [11:24:55]Write i2c OK [11:24:55]MH_I2C_Read... [11:24:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:24:55]Read from MH i2c: E2 [11:24:55]MH_I2C_Read... [11:24:55]Read from MH i2c: E2 03 00 [11:24:55]MH_I2C_Read... [11:24:55]Read from MH i2c: E2 03 00 3A 09 00 90 00 B7 [11:24:55]RAPDU: 90 00 [11:24:55]wFMCommunicate OK [11:24:55]SAM_PROTO_ClearQueue done [11:24:55]KKMCreateOFDPacket [11:24:55]OFDProtocolAddRootSTLVToBuf [11:24:55]FM_MakeSignedData [11:24:55]FM_MakeSignedData [11:24:55]SAM_PROTO_SignData [11:24:55]wFMCommunicate request_size=4 [11:24:55]MH_SAM_APDU [11:24:55]CAPDU: 80 0D 01 02 [11:24:55]Write to MH i2c: E2 08 00 3B 09 80 0D 01 02 00 00 00 00 BD [11:24:55]Write i2c OK [11:24:55]MH_I2C_Read... [11:24:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:24:55]Read from MH i2c: E2 [11:24:55]MH_I2C_Read... [11:24:55]Read from MH i2c: E2 03 00 [11:24:55]MH_I2C_Read... [11:24:55]Read from MH i2c: E2 03 00 3B 09 00 90 00 B8 [11:24:55]RAPDU: 90 00 [11:24:55]wFMCommunicate OK [11:24:55]wFMCommunicate request_size=255 [11:24:55]MH_SAM_APDU [11:24:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 86 E8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2F 78 03 00 35 04 06 00 A6 [11:24:55]Write to MH i2c: E2 02 01 3C 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 86 E8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2F 78 03 00 35 04 06 00 A6 00 00 83 [11:24:55]Write i2c OK [11:24:55]MH_I2C_Read... [11:24:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:55]Read from MH i2c: E2 [11:24:55]MH_I2C_Read... [11:24:55]Read from MH i2c: E2 03 00 [11:24:55]MH_I2C_Read... [11:24:55]Read from MH i2c: E2 03 00 3C 09 00 90 00 B9 [11:24:55]RAPDU: 90 00 [11:24:55]wFMCommunicate OK [11:24:55]wFMCommunicate request_size=10 [11:24:55]MH_SAM_APDU [11:24:55]CAPDU: 80 0D 02 02 05 62 E6 DD 1F 62 [11:24:55]Write to MH i2c: E2 0D 00 3D 09 80 0D 02 02 05 00 62 E6 DD 1F 62 00 00 70 [11:24:55]Write i2c OK [11:24:55]MH_I2C_Read... [11:24:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:55]Read from MH i2c: E2 [11:24:55]MH_I2C_Read... [11:24:55]Read from MH i2c: E2 03 00 [11:24:55]MH_I2C_Read... [11:24:55]Read from MH i2c: E2 03 00 3D 09 00 90 00 BA [11:24:55]RAPDU: 90 00 [11:24:55]wFMCommunicate OK [11:24:55]wFMCommunicate request_size=4 [11:24:55]MH_SAM_APDU [11:24:55]CAPDU: 80 0D 03 02 [11:24:55]Write to MH i2c: E2 08 00 3E 09 80 0D 03 02 00 00 00 00 C2 [11:24:55]Write i2c OK [11:24:55]MH_I2C_Read... [11:24:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:24:55]Read from MH i2c: E2 [11:24:55]MH_I2C_Read... [11:24:55]Read from MH i2c: E2 0B 00 [11:24:55]MH_I2C_Read... [11:24:55]Read from MH i2c: E2 0B 00 3E 09 00 B1 60 14 52 C4 A6 24 44 90 00 0C [11:24:55]RAPDU: B1 60 14 52 C4 A6 24 44 90 00 [11:24:55]wFMCommunicate OK [11:24:55]SAM_PROTO_SignData done [11:24:55]FM_MakeSignedData done [11:24:55]CreateOFDProtocolMessage [11:24:55]wFMCommunicate request_size=4 [11:24:55]MH_SAM_APDU [11:24:55]CAPDU: 80 11 00 00 [11:24:55]Write to MH i2c: E2 08 00 3F 09 80 11 00 00 00 00 00 00 C2 [11:24:55]Write i2c OK [11:24:55]MH_I2C_Read... [11:24:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:55]Read from MH i2c: E2 [11:24:55]MH_I2C_Read... [11:24:55]Read from MH i2c: E2 17 00 [11:24:55]MH_I2C_Read... [11:24:55]Read from MH i2c: E2 17 00 3F 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 19 [11:24:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:24:55]wFMCommunicate OK [11:24:55]CreateOFDProtocolMessage done [11:24:55]OFDSenderStorePacket 227375 [11:24:55]StoreOFDPacket docnum=227375 [11:24:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 D2 00 07 01 11 F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 86 E8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2F 78 03 00 35 04 06 00 A6 62 E6 DD 1F 62 B1 60 14 52 C4 A6 24 44 [11:24:55]CheckFolder [11:24:55]dirname=/storage/ofd_packets [11:24:55]CheckFolder done [11:24:55]ProducePacketName [11:24:55]name=ofd_packets/00227375 [11:24:55]NVStorageSaveData ofd_packets/00227375 [11:24:55]File name is /storage/ofd_packets/00227375 [11:24:55]Write 301 bytes [11:24:55]NVStorageSaveData done [11:24:55]OFDSenderStorePacket done [11:24:55]KKMCreateOFDPacket done [11:24:55]NVStorageSaveData kkm_last_timestamp [11:24:55]File name is /storage/kkm_last_timestamp [11:24:55]Write 4 bytes [11:24:55]NVStorageSaveData done [11:24:55]ExternCall_PrintAddStr [11:24:55]wPrintStart [11:24:55]Write to MH i2c: 01 00 00 40 09 49 [11:24:55]Write i2c OK [11:24:55]MH_I2C_Read... [11:24:55]Read from MH i2c: 01 [11:24:55]MH_I2C_Read... [11:24:55]Read from MH i2c: 01 07 00 [11:24:55]MH_I2C_Read... [11:24:55]Read from MH i2c: 01 07 00 40 09 00 00 00 00 00 FF 0F 5E [11:24:55]RasterBufferAndPrint [11:24:55]line Счет N : (1)1962890 [11:24:55]line ИНН: 02508201610067 [11:24:55]line Контрольно-Кассовый Чек [11:24:55]line ПРОДАЖА [11:24:55]line ТРК (МРК, ГНК) : 33 [11:24:55]line Товар: 2710124130 [11:24:55]line Аи-92-К-5 [11:24:55]line 7.480 * 66.90 [11:24:55]line = 500.41 [11:24:55]line НДС 12% НСП 1% [11:24:55]line > о реализуемом товаре [11:24:55]line ОКРУГЛЕНИЕ: -0.41 [11:24:55]line ИТОГО: 500.00 [11:24:55]line Внесено: 500.00 [11:24:55]line СДАЧА: 0.00 [11:24:55]line НСП 1% : 4.43 [11:24:55]line НДС 12% : 53.14 [11:24:55]line Наличными: 500.00 [11:24:55]line Безнал.: 0.00 [11:24:55]line Место: АЗС № 133 "Партнер Нефть" [11:24:55]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:24:55]line СНО: Общий режим [11:24:55]line Чек 223 20.10.2024 11:24 [11:24:55]line Смена: 533 ФФД: 1.0 [11:24:55]line ЗНМ: 0300000091 [11:24:55]line РНМ: 0000000000091685 [11:24:55]line Версия ККМ: 001 [11:24:55]line ФМ: 0000000000871839 [11:24:55]line ФД: 227375 [11:24:55]line ФПД: 182943710256994 [11:24:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112454&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227375&fm=182943710256994&tin=02508201610067®Number=0000000000091685&sum=50000 [11:24:55]OFD Sender: Processing packet 227375 [packets to send 38, broken 37] [11:24:55]ProducePacketName [11:24:55]name=ofd_packets/00227375 [11:24:55]OFD Sender: To server: pG, [11:24:55]CommunicateWithHost lk.salyk.kg:30040 [11:24:55]ConnectInit lk.salyk.kg [11:24:55]written 0, free lines is 4095 [11:24:56]Connected sock=10 [11:24:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 D2 00 07 01 11 F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 86 E8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2F 78 03 00 35 04 06 00 A6 62 E6 DD 1F 62 B1 60 14 52 C4 A6 24 44 [11:24: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 33 39 4F 00 00 00 AE B0 47 00 D7 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 33 39 10 04 04 00 2F 78 03 00 F4 03 04 00 85 93 14 67 B6 04 01 00 00 CA DF 62 EA 62 95 EC 91 [11:24:56]CommunicateWithHost err = 0 [11:24:56]CheckOFDResponse [11:24:56]1017 (14) - 77093643461234 [11:24:56]1041 (16) - 0000000000871839 [11:24:56]1040 (4) - 227375 [11:24:56]1012 (4) - 20.10.2024 05:22 [11:24:56]1206 (1) - 0 [11:24:56]OFD Sender: Remove packet 227375 [11:24:56]ProducePacketName [11:24:56]name=ofd_packets/00227375 [11:24:56]NVStorageDeleteData [11:24:56]Write to MH i2c: 01 00 00 6A 09 73 [11:24:56]Write i2c OK [11:24:56]MH_I2C_Read... [11:24:56]Read from MH i2c: 01 [11:24:56]MH_I2C_Read... [11:24:56]Read from MH i2c: 01 07 00 [11:24:56]MH_I2C_Read... [11:24:56]Read from MH i2c: 01 07 00 6A 09 00 00 00 00 00 02 0D 89 [11:24:56]RasterBufferAndPrint [11:24:56]line [11:24:56]line [11:24:56]line [11:24:56]line [11:24:56]line [11:24:56]written 0, free lines is 3336 [11:24:56]process_action close_receipt done [11:24:56]requested_data is exist [11:24:56]produce_requested_data [11:24:56]requested_item fm.sn is exist - process it [11:24:56]wFMCommunicate request_size=4 [11:24:56]MH_SAM_APDU [11:24:56]CAPDU: 80 11 00 00 [11:24:56]Write to MH i2c: E2 08 00 71 09 80 11 00 00 00 00 00 00 F4 [11:24:56]Write i2c OK [11:24:56]MH_I2C_Read... [11:24:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:56]Read from MH i2c: E2 [11:24:56]MH_I2C_Read... [11:24:56]Read from MH i2c: E2 17 00 [11:24:56]MH_I2C_Read... [11:24:56]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 33 39 90 00 4B [11:24:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:24:56]wFMCommunicate OK [11:24:56]requested_item fd.num is exist - process it [11:24:56]SAM_PROTO_GetFieldsCounters [11:24:56]wFMCommunicate request_size=4 [11:24:56]MH_SAM_APDU [11:24:56]CAPDU: 80 13 00 00 [11:24:56]Write to MH i2c: E2 08 00 72 09 80 13 00 00 00 00 00 00 F7 [11:24:56]Write i2c OK [11:24:56]MH_I2C_Read... [11:24:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:24:56]Read from MH i2c: E2 [11:24:56]MH_I2C_Read... [11:24:56]Read from MH i2c: E2 62 00 [11:24:56]MH_I2C_Read... [11:24:56]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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 2F 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [11:24: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 2F 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:24:56]wFMCommunicate OK [11:24:56]SAM_PROTO_GetFieldsCounters done [11:24:56]requested_item shift.num is exist - process it [11:24:56]requested_item shift.opened is exist - process it [11:24:56]req_shift_opened [11:24:56]FM_GetShiftState [11:24:56]SAM_PROTO_GetShiftState [11:24:56]wFMCommunicate request_size=4 [11:24:56]MH_SAM_APDU [11:24:56]CAPDU: 80 13 01 00 [11:24:56]Write to MH i2c: E2 08 00 73 09 80 13 01 00 00 00 00 00 F9 [11:24:56]Write i2c OK [11:24:56]MH_I2C_Read... [11:24:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:56]Read from MH i2c: E2 [11:24:56]MH_I2C_Read... [11:24:56]Read from MH i2c: E2 0E 00 [11:24:56]MH_I2C_Read... [11:24:56]Read from MH i2c: E2 0E 00 73 09 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 13 [11:24:56]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:24:56]wFMCommunicate OK [11:24:56]SAM_PROTO_GetShiftState done [11:24:56]FM_GetShiftState done [11:24:56]req_shift_opened done [11:24:56]requested_item shift.open_date is exist - process it [11:24:56]req_shift_open_date [11:24:56]req_shift_open_date done [11:24:56]produce_requested_data done [11:24:56]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227375,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [11:24:56]process_action_free close_receipt [11:24:56]json_value_free [11:24:56]json_value_free done [11:24:56]process_json_proto returns [11:24:56]Send response to host [11:24:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227375,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [11:24:56]free response buf [11:24:56]execute_script done [11:24:56]execute_script returns [11:24:56]free content buf [11:24:56]Sock 8.Close socket [11:24:56]Sock 8.Thread stoped [11:24:56]OFD Sender: No OFD packet to send [11:25:01]OFD Sender: No OFD packet to send [11:25:06]OFD Sender: No OFD packet to send [11:25:11]OFD Sender: No OFD packet to send [11:25:11]accept exits with 9 [11:25:11]New connection [11:25:11]New thread 3066543460 created [11:25:11]Thread 3066686820 joined [11:25:11]Waiting for new connection... [11:25:11] Sock 9.Parse request [11:25:11]Sock 9.Check first char [11:25:11]Sock 9.First char is OK [11:25:11]request: POST /json_proto HTTP/1.0 [11:25:11]Method: POST [11:25:11]URL: /json_proto [11:25:11]Method is POST - this is cgi request [11:25:11]url: /json_proto [11:25:11]query_string will be loaded in cgi processing [11:25:11]execute_cgi json_proto POST (null) [11:25:11]execute_cgi path=json_proto method=POST [11:25:11]POST find Content-Length [11:25:11]Host: 172.17.44.195:8080 [11:25:11]Content-Length: 798 [11:25:11]Content-Type: application/json [11:25:11] [11:25:11]POST finish read [11:25:11]Found Content-Length = 798 [11:25:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962891", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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\u000A4295096", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:25:11]execute_script... [11:25:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962891", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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\u000A4295096", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:25:11]POST & json_proto [11:25:11]process_json_proto [11:25:11]json parsed OK: [11:25:11]protocol is kg_v1.0 [11:25:11]action value=close_receipt [11:25:11]process_action close_receipt [11:25:11]cmd_close_receipt [11:25:11]MH_GetDate [11:25:11]Write to MH i2c: F0 00 00 74 09 6C [11:25:11]Write i2c OK [11:25:11]MH_I2C_Read... [11:25:11]Read from MH i2c: F0 [11:25:11]MH_I2C_Read... [11:25:11]Read from MH i2c: F0 09 00 [11:25:11]MH_I2C_Read... [11:25:11]Read from MH i2c: F0 09 00 74 09 00 98 E8 14 67 82 C9 CF 66 F0 [11:25:11]GetLastDocTimeStamp 1729423494 [11:25:11]current date 1729423512 [11:25:11]FM_GetShiftState [11:25:11]SAM_PROTO_GetShiftState [11:25:11]wFMCommunicate request_size=4 [11:25:11]MH_SAM_APDU [11:25:11]CAPDU: 80 13 01 00 [11:25:11]Write to MH i2c: E2 08 00 75 09 80 13 01 00 00 00 00 00 FB [11:25:11]Write i2c OK [11:25:11]MH_I2C_Read... [11:25:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:11]Read from MH i2c: E2 [11:25:11]MH_I2C_Read... [11:25:11]Read from MH i2c: E2 0E 00 [11:25:11]MH_I2C_Read... [11:25:11]Read from MH i2c: E2 0E 00 75 09 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 15 [11:25:11]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:25:11]wFMCommunicate OK [11:25:11]SAM_PROTO_GetShiftState done [11:25:11]FM_GetShiftState done [11:25:11]opened in 1729383750 [11:25:11]opened+sec_in_day 1729470150 [11:25:11]quantity*price = 0 [11:25:11]sum+1 = 1 [11:25:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 224 20.10.2024 11:25 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Талоны: Топливные Талоны 4295096 ФМ: 0000000000871839 ФД: 227376 ФПД: 83067029509329 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112512&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227376&fm=83067029509329&tin=02508201610067®Number=0000000000091685&sum=0 [11:25:12]StoreToDocumentArchive [11:25:12]shift 533 fd 227376 [11:25:12]save to /storage/0533/doc_00227376 [11:25:12]save last doc name /storage/0533/doc_00227376 to /storage/kkm_last_doc_name [11:25:12]save OK [11:25:12]Clear old archive folders... [11:25:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:25:12]tlvbuf is 0194A650 [11:25:12]SAM_PROTO_ClearQueue [11:25:12]wFMCommunicate request_size=4 [11:25:12]MH_SAM_APDU [11:25:12]CAPDU: 80 09 00 00 [11:25:12]Write to MH i2c: E2 08 00 82 09 80 09 00 00 00 00 00 00 FD [11:25:12]Write i2c OK [11:25:12]MH_I2C_Read... [11:25:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:25:13]Read from MH i2c: E2 [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: E2 03 00 [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: E2 03 00 82 09 00 90 00 FF [11:25:13]RAPDU: 90 00 [11:25:13]wFMCommunicate OK [11:25:13]SAM_PROTO_ClearQueue done [11:25:13]KKMCreateOFDPacket [11:25:13]OFDProtocolAddRootSTLVToBuf [11:25:13]FM_MakeSignedData [11:25:13]FM_MakeSignedData [11:25:13]SAM_PROTO_SignData [11:25:13]wFMCommunicate request_size=4 [11:25:13]MH_SAM_APDU [11:25:13]CAPDU: 80 0D 01 02 [11:25:13]Write to MH i2c: E2 08 00 83 09 80 0D 01 02 00 00 00 00 05 [11:25:13]Write i2c OK [11:25:13]MH_I2C_Read... [11:25:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:25:13]Read from MH i2c: E2 [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: E2 03 00 [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: E2 03 00 83 09 00 90 00 00 [11:25:13]RAPDU: 90 00 [11:25:13]wFMCommunicate OK [11:25:13]wFMCommunicate request_size=255 [11:25:13]MH_SAM_APDU [11:25:13]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 E0 00 00 00 F4 03 04 00 98 E8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 30 78 03 00 35 04 06 00 4B 8C 8C C9 [11:25:13]Write to MH i2c: E2 02 01 84 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 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 E0 00 00 00 F4 03 04 00 98 E8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 30 78 03 00 35 04 06 00 4B 8C 8C C9 00 00 A1 [11:25:13]Write i2c OK [11:25:13]MH_I2C_Read... [11:25:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:13]Read from MH i2c: E2 [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: E2 03 00 [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: E2 03 00 84 09 00 90 00 01 [11:25:13]RAPDU: 90 00 [11:25:13]wFMCommunicate OK [11:25:13]wFMCommunicate request_size=7 [11:25:13]MH_SAM_APDU [11:25:13]CAPDU: 80 0D 02 02 02 54 D1 [11:25:13]Write to MH i2c: E2 0A 00 85 09 80 0D 02 02 02 00 54 D1 00 00 31 [11:25:13]Write i2c OK [11:25:13]MH_I2C_Read... [11:25:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:13]Read from MH i2c: E2 [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: E2 03 00 [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: E2 03 00 85 09 00 90 00 02 [11:25:13]RAPDU: 90 00 [11:25:13]wFMCommunicate OK [11:25:13]wFMCommunicate request_size=4 [11:25:13]MH_SAM_APDU [11:25:13]CAPDU: 80 0D 03 02 [11:25:13]Write to MH i2c: E2 08 00 86 09 80 0D 03 02 00 00 00 00 0A [11:25:13]Write i2c OK [11:25:13]MH_I2C_Read... [11:25:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:25:13]Read from MH i2c: E2 [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: E2 0B 00 [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: E2 0B 00 86 09 00 65 F8 EE 29 FB 9A 75 7B 90 00 04 [11:25:13]RAPDU: 65 F8 EE 29 FB 9A 75 7B 90 00 [11:25:13]wFMCommunicate OK [11:25:13]SAM_PROTO_SignData done [11:25:13]FM_MakeSignedData done [11:25:13]CreateOFDProtocolMessage [11:25:13]wFMCommunicate request_size=4 [11:25:13]MH_SAM_APDU [11:25:13]CAPDU: 80 11 00 00 [11:25:13]Write to MH i2c: E2 08 00 87 09 80 11 00 00 00 00 00 00 0A [11:25:13]Write i2c OK [11:25:13]MH_I2C_Read... [11:25:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:13]Read from MH i2c: E2 [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: E2 17 00 [11:25:13]MH_I2C_Read... [11:25:13]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 33 39 90 00 61 [11:25:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:25:13]wFMCommunicate OK [11:25:13]CreateOFDProtocolMessage done [11:25:13]OFDSenderStorePacket 227376 [11:25:13]StoreOFDPacket docnum=227376 [11:25:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 89 F8 04 01 EA 4B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 98 E8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 30 78 03 00 35 04 06 00 4B 8C 8C C9 54 D1 65 F8 EE 29 FB 9A 75 7B [11:25:13]CheckFolder [11:25:13]dirname=/storage/ofd_packets [11:25:13]CheckFolder done [11:25:13]ProducePacketName [11:25:13]name=ofd_packets/00227376 [11:25:13]NVStorageSaveData ofd_packets/00227376 [11:25:13]File name is /storage/ofd_packets/00227376 [11:25:13]Write 298 bytes [11:25:13]NVStorageSaveData done [11:25:13]OFDSenderStorePacket done [11:25:13]KKMCreateOFDPacket done [11:25:13]NVStorageSaveData kkm_last_timestamp [11:25:13]File name is /storage/kkm_last_timestamp [11:25:13]Write 4 bytes [11:25:13]NVStorageSaveData done [11:25:13]ExternCall_PrintAddStr [11:25:13]wPrintStart [11:25:13]Write to MH i2c: 01 00 00 88 09 91 [11:25:13]Write i2c OK [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: 01 [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: 01 07 00 [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: 01 07 00 88 09 00 00 00 00 00 FF 0F A6 [11:25:13]RasterBufferAndPrint [11:25:13]line Счет N : (1)1962891 [11:25:13]line ИНН: 02508201610067 [11:25:13]line Контрольно-Кассовый Чек [11:25:13]line ПРОДАЖА [11:25:13]line ТРК (МРК, ГНК) : 11 [11:25:13]line Товар: 2710194210 [11:25:13]line ДТ-К-5 [11:25:13]line 20.000 * 0.00 [11:25:13]line = 0.00 [11:25:13]line НДС 12% НСП 1% [11:25:13]line > о реализуемом товаре [11:25:13]line ИТОГО: 0.00 [11:25:13]line НСП 1% : 0.00 [11:25:13]line НДС 12% : 0.00 [11:25:13]line Наличными: 0.00 [11:25:13]line Безнал.: 0.00 [11:25:13]line Место: АЗС № 133 "Партнер Нефть" [11:25:13]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:25:13]line СНО: Общий режим [11:25:13]line Чек 224 20.10.2024 11:25 [11:25:13]line Смена: 533 ФФД: 1.0 [11:25:13]line ЗНМ: 0300000091 [11:25:13]line РНМ: 0000000000091685 [11:25:13]line Версия ККМ: 001 [11:25:13]line Талоны: Топливные Талоны [11:25:13]line 4295096 [11:25:13]line ФМ: 0000000000871839 [11:25:13]line ФД: 227376 [11:25:13]line ФПД: 83067029509329 [11:25:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112512&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227376&fm=83067029509329&tin=02508201610067®Number=0000000000091685&sum=0 [11:25:13]OFD Sender: Processing packet 227376 [packets to send 38, broken 37] [11:25:13]ProducePacketName [11:25:13]name=ofd_packets/00227376 [11:25:13]OFD Sender: To server: pG, [11:25:13]CommunicateWithHost lk.salyk.kg:30040 [11:25:13]ConnectInit lk.salyk.kg [11:25:13]written 0, free lines is 4095 [11:25:13]Connected sock=10 [11:25:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 89 F8 04 01 EA 4B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 98 E8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 30 78 03 00 35 04 06 00 4B 8C 8C C9 54 D1 65 F8 EE 29 FB 9A 75 7B [11:25: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 33 39 4F 00 00 00 1C 9D 47 00 02 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 33 39 10 04 04 00 30 78 03 00 F4 03 04 00 97 93 14 67 B6 04 01 00 00 AB 0A 94 50 C9 18 10 64 [11:25:14]CommunicateWithHost err = 0 [11:25:14]CheckOFDResponse [11:25:14]1017 (14) - 77093643461234 [11:25:14]1041 (16) - 0000000000871839 [11:25:14]1040 (4) - 227376 [11:25:14]1012 (4) - 20.10.2024 05:22 [11:25:14]1206 (1) - 0 [11:25:14]OFD Sender: Remove packet 227376 [11:25:14]ProducePacketName [11:25:14]name=ofd_packets/00227376 [11:25:14]NVStorageDeleteData [11:25:14]Write to MH i2c: 01 00 00 B1 09 BA [11:25:14]Write i2c OK [11:25:14]MH_I2C_Read... [11:25:14]Read from MH i2c: 01 [11:25:14]MH_I2C_Read... [11:25:14]Read from MH i2c: 01 07 00 [11:25:14]MH_I2C_Read... [11:25:14]Read from MH i2c: 01 07 00 B1 09 00 00 00 00 00 05 0D D3 [11:25:14]RasterBufferAndPrint [11:25:14]line [11:25:14]line [11:25:14]line [11:25:14]line [11:25:14]line [11:25:14]written 0, free lines is 3339 [11:25:14]process_action close_receipt done [11:25:14]requested_data is exist [11:25:14]produce_requested_data [11:25:14]requested_item fm.sn is exist - process it [11:25:14]wFMCommunicate request_size=4 [11:25:14]MH_SAM_APDU [11:25:14]CAPDU: 80 11 00 00 [11:25:14]Write to MH i2c: E2 08 00 B8 09 80 11 00 00 00 00 00 00 3B [11:25:14]Write i2c OK [11:25:14]MH_I2C_Read... [11:25:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:14]Read from MH i2c: E2 [11:25:14]MH_I2C_Read... [11:25:14]Read from MH i2c: E2 17 00 [11:25:14]MH_I2C_Read... [11:25:14]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 33 39 90 00 92 [11:25:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:25:14]wFMCommunicate OK [11:25:14]requested_item fd.num is exist - process it [11:25:14]SAM_PROTO_GetFieldsCounters [11:25:14]wFMCommunicate request_size=4 [11:25:14]MH_SAM_APDU [11:25:14]CAPDU: 80 13 00 00 [11:25:14]Write to MH i2c: E2 08 00 B9 09 80 13 00 00 00 00 00 00 3E [11:25:14]Write i2c OK [11:25:14]MH_I2C_Read... [11:25:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:25:14]Read from MH i2c: E2 [11:25:14]MH_I2C_Read... [11:25:14]Read from MH i2c: E2 62 00 [11:25:14]MH_I2C_Read... [11:25:14]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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 30 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [11:25: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 30 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:25:14]wFMCommunicate OK [11:25:14]SAM_PROTO_GetFieldsCounters done [11:25:14]requested_item shift.num is exist - process it [11:25:14]requested_item shift.opened is exist - process it [11:25:14]req_shift_opened [11:25:14]FM_GetShiftState [11:25:14]SAM_PROTO_GetShiftState [11:25:14]wFMCommunicate request_size=4 [11:25:14]MH_SAM_APDU [11:25:14]CAPDU: 80 13 01 00 [11:25:14]Write to MH i2c: E2 08 00 BA 09 80 13 01 00 00 00 00 00 40 [11:25:14]Write i2c OK [11:25:14]MH_I2C_Read... [11:25:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:14]Read from MH i2c: E2 [11:25:14]MH_I2C_Read... [11:25:14]Read from MH i2c: E2 0E 00 [11:25:14]MH_I2C_Read... [11:25:14]Read from MH i2c: E2 0E 00 BA 09 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 5A [11:25:14]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:25:14]wFMCommunicate OK [11:25:14]SAM_PROTO_GetShiftState done [11:25:14]FM_GetShiftState done [11:25:14]req_shift_opened done [11:25:14]requested_item shift.open_date is exist - process it [11:25:14]req_shift_open_date [11:25:14]req_shift_open_date done [11:25:14]produce_requested_data done [11:25:14]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227376,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [11:25:14]process_action_free close_receipt [11:25:14]json_value_free [11:25:14]json_value_free done [11:25:14]process_json_proto returns [11:25:14]Send response to host [11:25:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227376,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [11:25:14]free response buf [11:25:14]execute_script done [11:25:14]execute_script returns [11:25:14]free content buf [11:25:14]Sock 9.Close socket [11:25:14]Sock 9.Thread stoped [11:25:14]OFD Sender: No OFD packet to send [11:25:19]OFD Sender: No OFD packet to send [11:25:24]OFD Sender: No OFD packet to send [11:25:29]OFD Sender: No OFD packet to send [11:25:34]OFD Sender: No OFD packet to send [11:25:39]OFD Sender: No OFD packet to send [11:25:44]OFD Sender: No OFD packet to send [11:25:49]OFD Sender: No OFD packet to send [11:25:54]OFD Sender: No OFD packet to send [11:25:59]OFD Sender: No OFD packet to send [11:26:04]OFD Sender: No OFD packet to send [11:26:09]OFD Sender: No OFD packet to send [11:26:14]OFD Sender: No OFD packet to send [11:26:19]OFD Sender: No OFD packet to send [11:26:24]OFD Sender: No OFD packet to send [11:26:29]OFD Sender: No OFD packet to send [11:26:34]OFD Sender: No OFD packet to send [11:26:39]OFD Sender: No OFD packet to send [11:26:44]OFD Sender: No OFD packet to send [11:26:49]OFD Sender: No OFD packet to send [11:26:54]OFD Sender: No OFD packet to send [11:26:59]OFD Sender: No OFD packet to send [11:27:04]OFD Sender: No OFD packet to send [11:27:05]accept exits with 8 [11:27:05]New connection [11:27:05]New thread 3066686820 created [11:27:05]Thread 3066543460 joined [11:27:05]Waiting for new connection... [11:27:05] Sock 8.Parse request [11:27:05]Sock 8.Check first char [11:27:05]Sock 8.First char is OK [11:27:05]request: POST /json_proto HTTP/1.0 [11:27:05]Method: POST [11:27:05]URL: /json_proto [11:27:05]Method is POST - this is cgi request [11:27:05]url: /json_proto [11:27:05]query_string will be loaded in cgi processing [11:27:05]execute_cgi json_proto POST (null) [11:27:05]execute_cgi path=json_proto method=POST [11:27:05]POST find Content-Length [11:27:05]Host: 172.17.44.195:8080 [11:27:05]Content-Length: 621 [11:27:05]Content-Type: application/json [11:27:05] [11:27:05]POST finish read [11:27:05]Found Content-Length = 621 [11:27:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962893", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:05]execute_script... [11:27:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962893", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:05]POST & json_proto [11:27:05]process_json_proto [11:27:05]json parsed OK: [11:27:05]protocol is kg_v1.0 [11:27:05]action value=close_receipt [11:27:05]process_action close_receipt [11:27:05]cmd_close_receipt [11:27:05]MH_GetDate [11:27:05]Write to MH i2c: F0 00 00 BB 09 B3 [11:27:05]Write i2c OK [11:27:05]MH_I2C_Read... [11:27:05]Read from MH i2c: F0 [11:27:05]MH_I2C_Read... [11:27:05]Read from MH i2c: F0 09 00 [11:27:05]MH_I2C_Read... [11:27:05]Read from MH i2c: F0 09 00 BB 09 00 09 E9 14 67 82 C9 CF 66 A9 [11:27:05]GetLastDocTimeStamp 1729423512 [11:27:05]current date 1729423625 [11:27:05]FM_GetShiftState [11:27:05]SAM_PROTO_GetShiftState [11:27:05]wFMCommunicate request_size=4 [11:27:05]MH_SAM_APDU [11:27:05]CAPDU: 80 13 01 00 [11:27:05]Write to MH i2c: E2 08 00 BC 09 80 13 01 00 00 00 00 00 42 [11:27:05]Write i2c OK [11:27:05]MH_I2C_Read... [11:27:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:05]Read from MH i2c: E2 [11:27:05]MH_I2C_Read... [11:27:05]Read from MH i2c: E2 0E 00 [11:27:05]MH_I2C_Read... [11:27:05]Read from MH i2c: E2 0E 00 BC 09 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 5C [11:27:05]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:27:05]wFMCommunicate OK [11:27:05]SAM_PROTO_GetShiftState done [11:27:05]FM_GetShiftState done [11:27:05]opened in 1729383750 [11:27:05]opened+sec_in_day 1729470150 [11:27:05]quantity*price = 50000 [11:27:05]sum+1 = 50001 [11:27:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 225 20.10.2024 11:27 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227377 ФПД: 81556643273381 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112705&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227377&fm=81556643273381&tin=02508201610067®Number=0000000000091685&sum=50000 [11:27:06]StoreToDocumentArchive [11:27:06]shift 533 fd 227377 [11:27:06]save to /storage/0533/doc_00227377 [11:27:06]save last doc name /storage/0533/doc_00227377 to /storage/kkm_last_doc_name [11:27:06]save OK [11:27:06]Clear old archive folders... [11:27:06]ProcessDocumentItem done err = 0, tmpTLVsize=244 [11:27:06]tlvbuf is 01821140 [11:27:06]SAM_PROTO_ClearQueue [11:27:06]wFMCommunicate request_size=4 [11:27:06]MH_SAM_APDU [11:27:06]CAPDU: 80 09 00 00 [11:27:06]Write to MH i2c: E2 08 00 C9 09 80 09 00 00 00 00 00 00 44 [11:27:06]Write i2c OK [11:27:06]MH_I2C_Read... [11:27:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:27:06]Read from MH i2c: E2 [11:27:06]MH_I2C_Read... [11:27:06]Read from MH i2c: E2 03 00 [11:27:06]MH_I2C_Read... [11:27:06]Read from MH i2c: E2 03 00 C9 09 00 90 00 46 [11:27:06]RAPDU: 90 00 [11:27:06]wFMCommunicate OK [11:27:06]SAM_PROTO_ClearQueue done [11:27:06]KKMCreateOFDPacket [11:27:06]OFDProtocolAddRootSTLVToBuf [11:27:06]FM_MakeSignedData [11:27:06]FM_MakeSignedData [11:27:06]SAM_PROTO_SignData [11:27:06]wFMCommunicate request_size=4 [11:27:06]MH_SAM_APDU [11:27:06]CAPDU: 80 0D 01 02 [11:27:06]Write to MH i2c: E2 08 00 CA 09 80 0D 01 02 00 00 00 00 4C [11:27:06]Write i2c OK [11:27:06]MH_I2C_Read... [11:27:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:27:06]Read from MH i2c: E2 [11:27:06]MH_I2C_Read... [11:27:06]Read from MH i2c: E2 03 00 [11:27:06]MH_I2C_Read... [11:27:06]Read from MH i2c: E2 03 00 CA 09 00 90 00 47 [11:27:06]RAPDU: 90 00 [11:27:06]wFMCommunicate OK [11:27:06]wFMCommunicate request_size=253 [11:27:06]MH_SAM_APDU [11:27:06]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 09 E9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 31 78 03 00 35 04 06 00 4A 2C E2 C0 5A A5 [11:27:06]Write to MH i2c: E2 00 01 CB 09 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 09 E9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 31 78 03 00 35 04 06 00 4A 2C E2 C0 5A A5 00 00 76 [11:27:06]Write i2c OK [11:27:06]MH_I2C_Read... [11:27:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:06]Read from MH i2c: E2 [11:27:06]MH_I2C_Read... [11:27:06]Read from MH i2c: E2 03 00 [11:27:06]MH_I2C_Read... [11:27:06]Read from MH i2c: E2 03 00 CB 09 00 90 00 48 [11:27:06]RAPDU: 90 00 [11:27:06]wFMCommunicate OK [11:27:06]wFMCommunicate request_size=4 [11:27:06]MH_SAM_APDU [11:27:06]CAPDU: 80 0D 03 02 [11:27:06]Write to MH i2c: E2 08 00 CC 09 80 0D 03 02 00 00 00 00 50 [11:27:06]Write i2c OK [11:27:06]MH_I2C_Read... [11:27:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:27:06]Read from MH i2c: E2 [11:27:06]MH_I2C_Read... [11:27:06]Read from MH i2c: E2 0B 00 [11:27:06]MH_I2C_Read... [11:27:06]Read from MH i2c: E2 0B 00 CC 09 00 37 D8 18 A3 E5 EC 78 99 90 00 FD [11:27:06]RAPDU: 37 D8 18 A3 E5 EC 78 99 90 00 [11:27:06]wFMCommunicate OK [11:27:06]SAM_PROTO_SignData done [11:27:06]FM_MakeSignedData done [11:27:06]CreateOFDProtocolMessage [11:27:06]wFMCommunicate request_size=4 [11:27:06]MH_SAM_APDU [11:27:06]CAPDU: 80 11 00 00 [11:27:06]Write to MH i2c: E2 08 00 CD 09 80 11 00 00 00 00 00 00 50 [11:27:06]Write i2c OK [11:27:06]MH_I2C_Read... [11:27:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:06]Read from MH i2c: E2 [11:27:06]MH_I2C_Read... [11:27:06]Read from MH i2c: E2 17 00 [11:27:06]MH_I2C_Read... [11:27:06]Read from MH i2c: E2 17 00 CD 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A7 [11:27:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:27:06]wFMCommunicate OK [11:27:06]CreateOFDProtocolMessage done [11:27:06]OFDSenderStorePacket 227377 [11:27:06]StoreOFDPacket docnum=227377 [11:27:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 B1 1A 00 01 29 82 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 09 E9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 31 78 03 00 35 04 06 00 4A 2C E2 C0 5A A5 37 D8 18 A3 E5 EC 78 99 [11:27:06]CheckFolder [11:27:06]dirname=/storage/ofd_packets [11:27:06]CheckFolder done [11:27:06]ProducePacketName [11:27:06]name=ofd_packets/00227377 [11:27:06]NVStorageSaveData ofd_packets/00227377 [11:27:06]File name is /storage/ofd_packets/00227377 [11:27:06]Write 294 bytes [11:27:06]NVStorageSaveData done [11:27:06]OFDSenderStorePacket done [11:27:06]KKMCreateOFDPacket done [11:27:06]NVStorageSaveData kkm_last_timestamp [11:27:06]File name is /storage/kkm_last_timestamp [11:27:06]Write 4 bytes [11:27:06]NVStorageSaveData done [11:27:06]ExternCall_PrintAddStr [11:27:06]wPrintStart [11:27:06]Write to MH i2c: 01 00 00 CE 09 D7 [11:27:06]Write i2c OK [11:27:06]MH_I2C_Read... [11:27:06]Read from MH i2c: 01 [11:27:06]MH_I2C_Read... [11:27:06]Read from MH i2c: 01 07 00 [11:27:06]MH_I2C_Read... [11:27:06]Read from MH i2c: 01 07 00 CE 09 00 00 00 00 00 FF 0F EC [11:27:06]RasterBufferAndPrint [11:27:06]line Счет N : (1)1962893 [11:27:06]line ИНН: 02508201610067 [11:27:06]line Контрольно-Кассовый Чек [11:27:06]line ПРОДАЖА [11:27:06]line ТРК (МРК, ГНК) : 42 [11:27:06]line Товар: 2710124130 [11:27:06]line SU-92 [11:27:06]line 7.310 * 68.40 [11:27:06]line = 500.00 [11:27:06]line НДС 12% НСП 1% [11:27:06]line > о реализуемом товаре [11:27:06]line ИТОГО: 500.00 [11:27:06]line НСП 1% : 4.42 [11:27:06]line НДС 12% : 53.10 [11:27:06]line Наличными: 500.00 [11:27:06]line Безнал.: 0.00 [11:27:06]line Место: АЗС № 133 "Партнер Нефть" [11:27:06]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:27:06]line СНО: Общий режим [11:27:06]line Чек 225 20.10.2024 11:27 [11:27:06]line Смена: 533 ФФД: 1.0 [11:27:06]line ЗНМ: 0300000091 [11:27:06]line РНМ: 0000000000091685 [11:27:06]line Версия ККМ: 001 [11:27:06]line ФМ: 0000000000871839 [11:27:06]line ФД: 227377 [11:27:06]line ФПД: 81556643273381 [11:27:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112705&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227377&fm=81556643273381&tin=02508201610067®Number=0000000000091685&sum=50000 [11:27:07]OFD Sender: Processing packet 227377 [packets to send 38, broken 37] [11:27:07]ProducePacketName [11:27:07]name=ofd_packets/00227377 [11:27:07]OFD Sender: To server: pG, [11:27:07]CommunicateWithHost lk.salyk.kg:30040 [11:27:07]ConnectInit lk.salyk.kg [11:27:07]written 0, free lines is 4095 [11:27:07]Connected sock=10 [11:27: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 33 39 08 01 00 00 B1 1A 00 01 29 82 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 09 E9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 31 78 03 00 35 04 06 00 4A 2C E2 C0 5A A5 37 D8 18 A3 E5 EC 78 99 [11:27: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 33 39 4F 00 00 00 47 65 47 00 D3 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 33 39 10 04 04 00 31 78 03 00 F4 03 04 00 09 94 14 67 B6 04 01 00 00 99 58 C2 D7 CB 83 88 11 [11:27:07]CommunicateWithHost err = 0 [11:27:07]CheckOFDResponse [11:27:07]1017 (14) - 77093643461234 [11:27:07]1041 (16) - 0000000000871839 [11:27:07]1040 (4) - 227377 [11:27:07]1012 (4) - 20.10.2024 05:24 [11:27:07]1206 (1) - 0 [11:27:07]OFD Sender: Remove packet 227377 [11:27:07]ProducePacketName [11:27:07]name=ofd_packets/00227377 [11:27:07]NVStorageDeleteData [11:27:07]Write to MH i2c: 01 00 00 F5 09 FE [11:27:07]Write i2c OK [11:27:07]MH_I2C_Read... [11:27:07]Read from MH i2c: 01 [11:27:07]MH_I2C_Read... [11:27:07]Read from MH i2c: 01 07 00 [11:27:07]MH_I2C_Read... [11:27:07]Read from MH i2c: 01 07 00 F5 09 00 00 00 00 00 28 0D 3A [11:27:07]RasterBufferAndPrint [11:27:07]line [11:27:07]line [11:27:07]line [11:27:07]line [11:27:07]line [11:27:07]written 0, free lines is 3374 [11:27:07]process_action close_receipt done [11:27:07]requested_data is exist [11:27:07]produce_requested_data [11:27:07]requested_item fm.sn is exist - process it [11:27:07]wFMCommunicate request_size=4 [11:27:07]MH_SAM_APDU [11:27:07]CAPDU: 80 11 00 00 [11:27:07]Write to MH i2c: E2 08 00 FC 09 80 11 00 00 00 00 00 00 7F [11:27:07]Write i2c OK [11:27:07]MH_I2C_Read... [11:27:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:07]Read from MH i2c: E2 [11:27:07]MH_I2C_Read... [11:27:07]Read from MH i2c: E2 17 00 [11:27:07]MH_I2C_Read... [11:27:07]Read from MH i2c: E2 17 00 FC 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D6 [11:27:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:27:07]wFMCommunicate OK [11:27:07]requested_item fd.num is exist - process it [11:27:07]SAM_PROTO_GetFieldsCounters [11:27:07]wFMCommunicate request_size=4 [11:27:07]MH_SAM_APDU [11:27:07]CAPDU: 80 13 00 00 [11:27:07]Write to MH i2c: E2 08 00 FD 09 80 13 00 00 00 00 00 00 82 [11:27:07]Write i2c OK [11:27:07]MH_I2C_Read... [11:27:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:27:07]Read from MH i2c: E2 [11:27:07]MH_I2C_Read... [11:27:07]Read from MH i2c: E2 62 00 [11:27:07]MH_I2C_Read... [11:27:07]Read from MH i2c: E2 62 00 FD 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 31 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [11:27:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 31 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:27:07]wFMCommunicate OK [11:27:07]SAM_PROTO_GetFieldsCounters done [11:27:07]requested_item shift.num is exist - process it [11:27:07]requested_item shift.opened is exist - process it [11:27:07]req_shift_opened [11:27:07]FM_GetShiftState [11:27:07]SAM_PROTO_GetShiftState [11:27:07]wFMCommunicate request_size=4 [11:27:07]MH_SAM_APDU [11:27:07]CAPDU: 80 13 01 00 [11:27:07]Write to MH i2c: E2 08 00 FE 09 80 13 01 00 00 00 00 00 84 [11:27:07]Write i2c OK [11:27:07]MH_I2C_Read... [11:27:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:07]Read from MH i2c: E2 [11:27:07]MH_I2C_Read... [11:27:07]Read from MH i2c: E2 0E 00 [11:27:07]MH_I2C_Read... [11:27:07]Read from MH i2c: E2 0E 00 FE 09 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 9E [11:27:07]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:27:07]wFMCommunicate OK [11:27:07]SAM_PROTO_GetShiftState done [11:27:07]FM_GetShiftState done [11:27:07]req_shift_opened done [11:27:07]requested_item shift.open_date is exist - process it [11:27:07]req_shift_open_date [11:27:07]req_shift_open_date done [11:27:07]produce_requested_data done [11:27:07]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227377,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [11:27:07]process_action_free close_receipt [11:27:07]json_value_free [11:27:07]json_value_free done [11:27:07]process_json_proto returns [11:27:07]Send response to host [11:27:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227377,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [11:27:07]free response buf [11:27:07]execute_script done [11:27:07]execute_script returns [11:27:07]free content buf [11:27:07]Sock 8.Close socket [11:27:07]Sock 8.Thread stoped [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:28]OFD Sender: No OFD packet to send [11:27:28]accept exits with 9 [11:27:28]New connection [11:27:28]New thread 3066543460 created [11:27:28]Thread 3066686820 joined [11:27:28]Waiting for new connection... [11:27:28] Sock 9.Parse request [11:27:28]Sock 9.Check first char [11:27:28]Sock 9.First char is OK [11:27:28]request: POST /json_proto HTTP/1.0 [11:27:28]Method: POST [11:27:28]URL: /json_proto [11:27:28]Method is POST - this is cgi request [11:27:28]url: /json_proto [11:27:28]query_string will be loaded in cgi processing [11:27:28]execute_cgi json_proto POST (null) [11:27:28]execute_cgi path=json_proto method=POST [11:27:28]POST find Content-Length [11:27:28]Host: 172.17.44.195:8080 [11:27:28]Content-Length: 979 [11:27:28]Content-Type: application/json [11:27:28] [11:27:28]POST finish read [11:27:28]Found Content-Length = 979 [11:27:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962892", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 53.200, "sum" : 4000.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 133\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 53.20 \u0441\u043E\u043C", "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:28]execute_script... [11:27: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)1962892", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 53.200, "sum" : 4000.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 133\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 53.20 \u0441\u043E\u043C", "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:28]POST & json_proto [11:27:28]process_json_proto [11:27:28]json parsed OK: [11:27:28]protocol is kg_v1.0 [11:27:28]action value=close_receipt [11:27:28]process_action close_receipt [11:27:28]cmd_close_receipt [11:27:28]MH_GetDate [11:27:28]Write to MH i2c: F0 00 00 FF 09 F7 [11:27:28]Write i2c OK [11:27:28]MH_I2C_Read... [11:27:28]Read from MH i2c: F0 [11:27:28]MH_I2C_Read... [11:27:28]Read from MH i2c: F0 09 00 [11:27:28]MH_I2C_Read... [11:27:28]Read from MH i2c: F0 09 00 FF 09 00 21 E9 14 67 82 C9 CF 66 05 [11:27:28]GetLastDocTimeStamp 1729423625 [11:27:28]current date 1729423649 [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 00 0A 80 13 01 00 00 00 00 00 87 [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 00 0A 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 A1 [11:27:28]RAPDU: 09 00 01 46 4D 14 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]opened in 1729383750 [11:27:28]opened+sec_in_day 1729470150 [11:27:28]quantity*price = 400064 [11:27:28]sum+1 = 400065 [11:27:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.85 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 226 20.10.2024 11:27 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Дисконтная программа ДТ номер 133 сэкономлено 53.20 сом ФМ: 0000000000871839 ФД: 227378 ФПД: 192769490054896 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112729&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227378&fm=192769490054896&tin=02508201610067®Number=0000000000091685&sum=400000 [11:27:30]StoreToDocumentArchive [11:27:30]shift 533 fd 227378 [11:27:30]save to /storage/0533/doc_00227378 [11:27:30]save last doc name /storage/0533/doc_00227378 to /storage/kkm_last_doc_name [11:27:30]save OK [11:27:30]Clear old archive folders... [11:27:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:27:30]tlvbuf is 01859010 [11:27:30]SAM_PROTO_ClearQueue [11:27:30]wFMCommunicate request_size=4 [11:27:30]MH_SAM_APDU [11:27:30]CAPDU: 80 09 00 00 [11:27:30]Write to MH i2c: E2 08 00 0D 0A 80 09 00 00 00 00 00 00 89 [11:27:30]Write i2c OK [11:27:30]MH_I2C_Read... [11:27:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:27:30]Read from MH i2c: E2 [11:27:30]MH_I2C_Read... [11:27:30]Read from MH i2c: E2 03 00 [11:27:30]MH_I2C_Read... [11:27:30]Read from MH i2c: E2 03 00 0D 0A 00 90 00 8B [11:27:30]RAPDU: 90 00 [11:27:30]wFMCommunicate OK [11:27:30]SAM_PROTO_ClearQueue done [11:27:30]KKMCreateOFDPacket [11:27:30]OFDProtocolAddRootSTLVToBuf [11:27:30]FM_MakeSignedData [11:27:30]FM_MakeSignedData [11:27:30]SAM_PROTO_SignData [11:27:30]wFMCommunicate request_size=4 [11:27:30]MH_SAM_APDU [11:27:30]CAPDU: 80 0D 01 02 [11:27:30]Write to MH i2c: E2 08 00 0E 0A 80 0D 01 02 00 00 00 00 91 [11:27:30]Write i2c OK [11:27:30]MH_I2C_Read... [11:27:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:27:30]Read from MH i2c: E2 [11:27:30]MH_I2C_Read... [11:27:30]Read from MH i2c: E2 03 00 [11:27:30]MH_I2C_Read... [11:27:30]Read from MH i2c: E2 03 00 0E 0A 00 90 00 8C [11:27:30]RAPDU: 90 00 [11:27:30]wFMCommunicate OK [11:27:30]wFMCommunicate request_size=255 [11:27:30]MH_SAM_APDU [11:27:30]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D0 CF 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 C0 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 21 E9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 32 78 03 00 35 04 06 00 AF 52 A4 FA [11:27:30]Write to MH i2c: E2 02 01 0F 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 D0 CF 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 C0 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 21 E9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 32 78 03 00 35 04 06 00 AF 52 A4 FA 00 00 77 [11:27:30]Write i2c OK [11:27:30]MH_I2C_Read... [11:27:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:30]Read from MH i2c: E2 [11:27:30]MH_I2C_Read... [11:27:30]Read from MH i2c: E2 03 00 [11:27:30]MH_I2C_Read... [11:27:30]Read from MH i2c: E2 03 00 0F 0A 00 90 00 8D [11:27:30]RAPDU: 90 00 [11:27:30]wFMCommunicate OK [11:27:30]wFMCommunicate request_size=7 [11:27:30]MH_SAM_APDU [11:27:30]CAPDU: 80 0D 02 02 02 6E F0 [11:27:30]Write to MH i2c: E2 0A 00 10 0A 80 0D 02 02 02 00 6E F0 00 00 F6 [11:27:30]Write i2c OK [11:27:30]MH_I2C_Read... [11:27:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:30]Read from MH i2c: E2 [11:27:30]MH_I2C_Read... [11:27:30]Read from MH i2c: E2 03 00 [11:27:30]MH_I2C_Read... [11:27:30]Read from MH i2c: E2 03 00 10 0A 00 90 00 8E [11:27:30]RAPDU: 90 00 [11:27:30]wFMCommunicate OK [11:27:30]wFMCommunicate request_size=4 [11:27:30]MH_SAM_APDU [11:27:30]CAPDU: 80 0D 03 02 [11:27:30]Write to MH i2c: E2 08 00 11 0A 80 0D 03 02 00 00 00 00 96 [11:27:30]Write i2c OK [11:27:30]MH_I2C_Read... [11:27:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:27:30]Read from MH i2c: E2 [11:27:30]MH_I2C_Read... [11:27:30]Read from MH i2c: E2 0B 00 [11:27:30]MH_I2C_Read... [11:27:30]Read from MH i2c: E2 0B 00 11 0A 00 68 F0 27 D2 3D E8 56 CB 90 00 2E [11:27:30]RAPDU: 68 F0 27 D2 3D E8 56 CB 90 00 [11:27:30]wFMCommunicate OK [11:27:30]SAM_PROTO_SignData done [11:27:30]FM_MakeSignedData done [11:27:30]CreateOFDProtocolMessage [11:27:30]wFMCommunicate request_size=4 [11:27:30]MH_SAM_APDU [11:27:30]CAPDU: 80 11 00 00 [11:27:30]Write to MH i2c: E2 08 00 12 0A 80 11 00 00 00 00 00 00 96 [11:27:30]Write i2c OK [11:27:30]MH_I2C_Read... [11:27:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:30]Read from MH i2c: E2 [11:27:30]MH_I2C_Read... [11:27:30]Read from MH i2c: E2 17 00 [11:27:30]MH_I2C_Read... [11:27:30]Read from MH i2c: E2 17 00 12 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 ED [11:27:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:27:30]wFMCommunicate OK [11:27:30]CreateOFDProtocolMessage done [11:27:30]OFDSenderStorePacket 227378 [11:27:30]StoreOFDPacket docnum=227378 [11:27:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 12 F9 04 01 8C 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 D0 CF 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 C0 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 21 E9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 32 78 03 00 35 04 06 00 AF 52 A4 FA 6E F0 68 F0 27 D2 3D E8 56 CB [11:27:30]CheckFolder [11:27:30]dirname=/storage/ofd_packets [11:27:30]CheckFolder done [11:27:30]ProducePacketName [11:27:30]name=ofd_packets/00227378 [11:27:30]NVStorageSaveData ofd_packets/00227378 [11:27:30]File name is /storage/ofd_packets/00227378 [11:27:30]Write 298 bytes [11:27:30]NVStorageSaveData done [11:27:30]OFDSenderStorePacket done [11:27:30]KKMCreateOFDPacket done [11:27:30]NVStorageSaveData kkm_last_timestamp [11:27:30]File name is /storage/kkm_last_timestamp [11:27:30]Write 4 bytes [11:27:30]NVStorageSaveData done [11:27:30]ExternCall_PrintAddStr [11:27:30]wPrintStart [11:27:30]Write to MH i2c: 01 00 00 13 0A 1D [11:27:30]Write i2c OK [11:27:30]MH_I2C_Read... [11:27:30]Read from MH i2c: 01 [11:27:30]MH_I2C_Read... [11:27:30]Read from MH i2c: 01 07 00 [11:27:30]MH_I2C_Read... [11:27:30]Read from MH i2c: 01 07 00 13 0A 00 00 00 00 00 FF 0F 32 [11:27:30]RasterBufferAndPrint [11:27:30]line Счет N : (1)1962892 [11:27:30]line ИНН: 02508201610067 [11:27:30]line Контрольно-Кассовый Чек [11:27:30]line ПРОДАЖА [11:27:30]line ТРК (МРК, ГНК) : 21 [11:27:30]line Товар: 2710194210 [11:27:30]line ДТ-К-5 [11:27:30]line 53.200 * 75.20 [11:27:30]line = 4000.64 [11:27:30]line НДС 12% НСП 1% [11:27:30]line > о реализуемом товаре [11:27:30]line ОКРУГЛЕНИЕ: -0.64 [11:27:30]line ИТОГО: 4000.00 [11:27:30]line Внесено: 4000.00 [11:27:30]line СДАЧА: 0.00 [11:27:30]line НСП 1% : 35.40 [11:27:30]line НДС 12% : 424.85 [11:27:30]line Наличными: 4000.00 [11:27:30]line Безнал.: 0.00 [11:27:30]line Место: АЗС № 133 "Партнер Нефть" [11:27:30]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:27:30]line СНО: Общий режим [11:27:30]line Чек 226 20.10.2024 11:27 [11:27:30]line Смена: 533 ФФД: 1.0 [11:27:30]line ЗНМ: 0300000091 [11:27:30]line РНМ: 0000000000091685 [11:27:30]line Версия ККМ: 001 [11:27:30]line [11:27:30]line Дисконтная программа [11:27:30]line ДТ [11:27:30]line номер 133 [11:27:30]line сэкономлено 53.20 сом [11:27:30]line ФМ: 0000000000871839 [11:27:30]line ФД: 227378 [11:27:30]line ФПД: 192769490054896 [11:27:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112729&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227378&fm=192769490054896&tin=02508201610067®Number=0000000000091685&sum=400000 [11:27:30]OFD Sender: Processing packet 227378 [packets to send 38, broken 37] [11:27:30]ProducePacketName [11:27:30]name=ofd_packets/00227378 [11:27:30]OFD Sender: To server: pG, [11:27:30]CommunicateWithHost lk.salyk.kg:30040 [11:27:30]ConnectInit lk.salyk.kg [11:27:30]written 0, free lines is 4095 [11:27:31]Connected sock=10 [11:27: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 33 39 0C 01 00 00 12 F9 04 01 8C 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 D0 CF 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 C0 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 21 E9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 32 78 03 00 35 04 06 00 AF 52 A4 FA 6E F0 68 F0 27 D2 3D E8 56 CB [11:27: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 33 39 4F 00 00 00 5F 2D 47 00 DD 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 32 78 03 00 F4 03 04 00 20 94 14 67 B6 04 01 00 00 EB 2B 8B 6A 6F 07 8F AD [11:27:31]CommunicateWithHost err = 0 [11:27:31]CheckOFDResponse [11:27:31]1017 (14) - 77093643461234 [11:27:31]1041 (16) - 0000000000871839 [11:27:31]1040 (4) - 227378 [11:27:31]1012 (4) - 20.10.2024 05:24 [11:27:31]1206 (1) - 0 [11:27:31]OFD Sender: Remove packet 227378 [11:27:31]ProducePacketName [11:27:31]name=ofd_packets/00227378 [11:27:31]NVStorageDeleteData [11:27:31]Write to MH i2c: 01 00 00 42 0A 4C [11:27:31]Write i2c OK [11:27:31]MH_I2C_Read... [11:27:31]Read from MH i2c: 01 [11:27:31]MH_I2C_Read... [11:27:31]Read from MH i2c: 01 07 00 [11:27:31]MH_I2C_Read... [11:27:31]Read from MH i2c: 01 07 00 42 0A 00 00 00 00 00 A7 0C 06 [11:27:31]RasterBufferAndPrint [11:27:31]line [11:27:31]line [11:27:31]line [11:27:31]line [11:27:31]line [11:27:31]written 0, free lines is 3245 [11:27:31]process_action close_receipt done [11:27:31]requested_data is exist [11:27:31]produce_requested_data [11:27:31]requested_item fm.sn is exist - process it [11:27:31]wFMCommunicate request_size=4 [11:27:31]MH_SAM_APDU [11:27:31]CAPDU: 80 11 00 00 [11:27:31]Write to MH i2c: E2 08 00 49 0A 80 11 00 00 00 00 00 00 CD [11:27:31]Write i2c OK [11:27:31]MH_I2C_Read... [11:27:31]Read from MH i2c: E2 [11:27:31]MH_I2C_Read... [11:27:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:31]Read from MH i2c: E2 17 00 [11:27:31]MH_I2C_Read... [11:27:31]Read from MH i2c: E2 17 00 49 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 24 [11:27:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:27:31]wFMCommunicate OK [11:27:31]requested_item fd.num is exist - process it [11:27:31]SAM_PROTO_GetFieldsCounters [11:27:31]wFMCommunicate request_size=4 [11:27:31]MH_SAM_APDU [11:27:31]CAPDU: 80 13 00 00 [11:27:31]Write to MH i2c: E2 08 00 4A 0A 80 13 00 00 00 00 00 00 D0 [11:27:31]Write i2c OK [11:27:31]MH_I2C_Read... [11:27:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:27:31]Read from MH i2c: E2 [11:27:31]MH_I2C_Read... [11:27:31]Read from MH i2c: E2 62 00 [11:27:31]MH_I2C_Read... [11:27:31]Read from MH i2c: E2 62 00 4A 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 32 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 63 [11:27:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 32 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:27:31]wFMCommunicate OK [11:27:31]SAM_PROTO_GetFieldsCounters done [11:27:31]requested_item shift.num is exist - process it [11:27:31]requested_item shift.opened is exist - process it [11:27:31]req_shift_opened [11:27:31]FM_GetShiftState [11:27:31]SAM_PROTO_GetShiftState [11:27:31]wFMCommunicate request_size=4 [11:27:31]MH_SAM_APDU [11:27:31]CAPDU: 80 13 01 00 [11:27:31]Write to MH i2c: E2 08 00 4B 0A 80 13 01 00 00 00 00 00 D2 [11:27:31]Write i2c OK [11:27:31]MH_I2C_Read... [11:27:31]OFD Sender: No OFD packet to send [11:27:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:31]Read from MH i2c: E2 [11:27:31]MH_I2C_Read... [11:27:31]Read from MH i2c: E2 0E 00 [11:27:31]MH_I2C_Read... [11:27:31]Read from MH i2c: E2 0E 00 4B 0A 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 EC [11:27:31]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:27:31]wFMCommunicate OK [11:27:31]SAM_PROTO_GetShiftState done [11:27:31]FM_GetShiftState done [11:27:31]req_shift_opened done [11:27:31]requested_item shift.open_date is exist - process it [11:27:31]req_shift_open_date [11:27:31]req_shift_open_date done [11:27:31]produce_requested_data done [11:27:31]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227378,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [11:27:31]process_action_free close_receipt [11:27:31]json_value_free [11:27:31]json_value_free done [11:27:31]process_json_proto returns [11:27:31]Send response to host [11:27:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227378,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [11:27:31]free response buf [11:27:31]execute_script done [11:27:31]execute_script returns [11:27:31]free content buf [11:27:31]Sock 9.Close socket [11:27:31]Sock 9.Thread stoped [11:27:36]OFD Sender: No OFD packet to send [11:27:41]OFD Sender: No OFD packet to send [11:27:46]OFD Sender: No OFD packet to send [11:27:51]OFD Sender: No OFD packet to send [11:27:56]OFD Sender: No OFD packet to send [11:28:01]OFD Sender: No OFD packet to send [11:28:06]OFD Sender: No OFD packet to send [11:28:11]OFD Sender: No OFD packet to send [11:28:13]accept exits with 8 [11:28:13]New connection [11:28:13]New thread 3066686820 created [11:28:13]Thread 3066543460 joined [11:28:13]Waiting for new connection... [11:28:13] Sock 8.Parse request [11:28:13]Sock 8.Check first char [11:28:13]Sock 8.First char is OK [11:28:13]request: POST /json_proto HTTP/1.0 [11:28:13]Method: POST [11:28:13]URL: /json_proto [11:28:13]Method is POST - this is cgi request [11:28:13]url: /json_proto [11:28:13]query_string will be loaded in cgi processing [11:28:13]execute_cgi json_proto POST (null) [11:28:13]execute_cgi path=json_proto method=POST [11:28:13]POST find Content-Length [11:28:13]Host: 172.17.44.195:8080 [11:28:13]Content-Length: 678 [11:28:13]Content-Type: application/json [11:28:13] [11:28:13]POST finish read [11:28:13]Found Content-Length = 678 [11:28:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962894", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:13]execute_script... [11:28:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962894", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:13]POST & json_proto [11:28:13]process_json_proto [11:28:13]json parsed OK: [11:28:13]protocol is kg_v1.0 [11:28:13]action value=close_receipt [11:28:13]process_action close_receipt [11:28:13]cmd_close_receipt [11:28:13]MH_GetDate [11:28:13]Write to MH i2c: F0 00 00 4C 0A 45 [11:28:13]Write i2c OK [11:28:13]MH_I2C_Read... [11:28:13]Read from MH i2c: F0 [11:28:13]MH_I2C_Read... [11:28:13]Read from MH i2c: F0 09 00 [11:28:13]MH_I2C_Read... [11:28:13]Read from MH i2c: F0 09 00 4C 0A 00 4E E9 14 67 82 C9 CF 66 80 [11:28:13]GetLastDocTimeStamp 1729423649 [11:28:13]current date 1729423694 [11:28:13]FM_GetShiftState [11:28:13]SAM_PROTO_GetShiftState [11:28:13]wFMCommunicate request_size=4 [11:28:13]MH_SAM_APDU [11:28:13]CAPDU: 80 13 01 00 [11:28:13]Write to MH i2c: E2 08 00 4D 0A 80 13 01 00 00 00 00 00 D4 [11:28:13]Write i2c OK [11:28:13]MH_I2C_Read... [11:28:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:13]Read from MH i2c: E2 [11:28:13]MH_I2C_Read... [11:28:13]Read from MH i2c: E2 0E 00 [11:28:13]MH_I2C_Read... [11:28:13]Read from MH i2c: E2 0E 00 4D 0A 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 EE [11:28:13]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:28:13]wFMCommunicate OK [11:28:13]SAM_PROTO_GetShiftState done [11:28:13]FM_GetShiftState done [11:28:13]opened in 1729383750 [11:28:13]opened+sec_in_day 1729470150 [11:28:13]quantity*price = 50041 [11:28:13]sum+1 = 50042 [11:28:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 227 20.10.2024 11:28 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227379 ФПД: 86062557919779 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112814&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227379&fm=86062557919779&tin=02508201610067®Number=0000000000091685&sum=50000 [11:28:14]StoreToDocumentArchive [11:28:14]shift 533 fd 227379 [11:28:14]save to /storage/0533/doc_00227379 [11:28:14]save last doc name /storage/0533/doc_00227379 to /storage/kkm_last_doc_name [11:28:14]save OK [11:28:14]Clear old archive folders... [11:28:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:28:14]tlvbuf is 0183B490 [11:28:14]SAM_PROTO_ClearQueue [11:28:14]wFMCommunicate request_size=4 [11:28:14]MH_SAM_APDU [11:28:14]CAPDU: 80 09 00 00 [11:28:14]Write to MH i2c: E2 08 00 5A 0A 80 09 00 00 00 00 00 00 D6 [11:28:14]Write i2c OK [11:28:14]MH_I2C_Read... [11:28:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:28:14]Read from MH i2c: E2 [11:28:14]MH_I2C_Read... [11:28:14]Read from MH i2c: E2 03 00 [11:28:14]MH_I2C_Read... [11:28:14]Read from MH i2c: E2 03 00 5A 0A 00 90 00 D8 [11:28:14]RAPDU: 90 00 [11:28:14]wFMCommunicate OK [11:28:14]SAM_PROTO_ClearQueue done [11:28:14]KKMCreateOFDPacket [11:28:14]OFDProtocolAddRootSTLVToBuf [11:28:14]FM_MakeSignedData [11:28:14]FM_MakeSignedData [11:28:14]SAM_PROTO_SignData [11:28:14]wFMCommunicate request_size=4 [11:28:14]MH_SAM_APDU [11:28:14]CAPDU: 80 0D 01 02 [11:28:14]Write to MH i2c: E2 08 00 5B 0A 80 0D 01 02 00 00 00 00 DE [11:28:14]Write i2c OK [11:28:14]MH_I2C_Read... [11:28:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:28:14]Read from MH i2c: E2 [11:28:14]MH_I2C_Read... [11:28:14]Read from MH i2c: E2 03 00 [11:28:14]MH_I2C_Read... [11:28:14]Read from MH i2c: E2 03 00 5B 0A 00 90 00 D9 [11:28:14]RAPDU: 90 00 [11:28:14]wFMCommunicate OK [11:28:14]wFMCommunicate request_size=255 [11:28:14]MH_SAM_APDU [11:28:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 4E E9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 33 78 03 00 35 04 06 00 4E [11:28:14]Write to MH i2c: E2 02 01 5C 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 4E E9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 33 78 03 00 35 04 06 00 4E 00 00 1D [11:28:14]Write i2c OK [11:28:14]MH_I2C_Read... [11:28:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:15]Read from MH i2c: E2 [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: E2 03 00 [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: E2 03 00 5C 0A 00 90 00 DA [11:28:15]RAPDU: 90 00 [11:28:15]wFMCommunicate OK [11:28:15]wFMCommunicate request_size=10 [11:28:15]MH_SAM_APDU [11:28:15]CAPDU: 80 0D 02 02 05 46 00 31 7A 23 [11:28:15]Write to MH i2c: E2 0D 00 5D 0A 80 0D 02 02 05 00 46 00 31 7A 23 00 00 FF [11:28:15]Write i2c OK [11:28:15]MH_I2C_Read... [11:28:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:15]Read from MH i2c: E2 [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: E2 03 00 [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: E2 03 00 5D 0A 00 90 00 DB [11:28:15]RAPDU: 90 00 [11:28:15]wFMCommunicate OK [11:28:15]wFMCommunicate request_size=4 [11:28:15]MH_SAM_APDU [11:28:15]CAPDU: 80 0D 03 02 [11:28:15]Write to MH i2c: E2 08 00 5E 0A 80 0D 03 02 00 00 00 00 E3 [11:28:15]Write i2c OK [11:28:15]MH_I2C_Read... [11:28:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:28:15]Read from MH i2c: E2 [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: E2 0B 00 [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: E2 0B 00 5E 0A 00 80 2C 5C 07 02 D4 A7 DB 90 00 4B [11:28:15]RAPDU: 80 2C 5C 07 02 D4 A7 DB 90 00 [11:28:15]wFMCommunicate OK [11:28:15]SAM_PROTO_SignData done [11:28:15]FM_MakeSignedData done [11:28:15]CreateOFDProtocolMessage [11:28:15]wFMCommunicate request_size=4 [11:28:15]MH_SAM_APDU [11:28:15]CAPDU: 80 11 00 00 [11:28:15]Write to MH i2c: E2 08 00 5F 0A 80 11 00 00 00 00 00 00 E3 [11:28:15]Write i2c OK [11:28:15]MH_I2C_Read... [11:28:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:15]Read from MH i2c: E2 [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: E2 17 00 [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: E2 17 00 5F 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 3A [11:28:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:28:15]wFMCommunicate OK [11:28:15]CreateOFDProtocolMessage done [11:28:15]OFDSenderStorePacket 227379 [11:28:15]StoreOFDPacket docnum=227379 [11:28:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 C9 2D 07 01 E0 A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 4E E9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 33 78 03 00 35 04 06 00 4E 46 00 31 7A 23 80 2C 5C 07 02 D4 A7 DB [11:28:15]CheckFolder [11:28:15]dirname=/storage/ofd_packets [11:28:15]CheckFolder done [11:28:15]ProducePacketName [11:28:15]name=ofd_packets/00227379 [11:28:15]NVStorageSaveData ofd_packets/00227379 [11:28:15]File name is /storage/ofd_packets/00227379 [11:28:15]Write 301 bytes [11:28:15]NVStorageSaveData done [11:28:15]OFDSenderStorePacket done [11:28:15]KKMCreateOFDPacket done [11:28:15]NVStorageSaveData kkm_last_timestamp [11:28:15]File name is /storage/kkm_last_timestamp [11:28:15]Write 4 bytes [11:28:15]NVStorageSaveData done [11:28:15]ExternCall_PrintAddStr [11:28:15]wPrintStart [11:28:15]Write to MH i2c: 01 00 00 60 0A 6A [11:28:15]Write i2c OK [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: 01 [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: 01 07 00 [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: 01 07 00 60 0A 00 00 00 00 00 FF 0F 7F [11:28:15]RasterBufferAndPrint [11:28:15]line Счет N : (1)1962894 [11:28:15]line ИНН: 02508201610067 [11:28:15]line Контрольно-Кассовый Чек [11:28:15]line ПРОДАЖА [11:28:15]line ТРК (МРК, ГНК) : 53 [11:28:15]line Товар: 2710124130 [11:28:15]line Аи-92-К-5 [11:28:15]line 7.480 * 66.90 [11:28:15]line = 500.41 [11:28:15]line НДС 12% НСП 1% [11:28:15]line > о реализуемом товаре [11:28:15]line ОКРУГЛЕНИЕ: -0.41 [11:28:15]line ИТОГО: 500.00 [11:28:15]line Внесено: 500.00 [11:28:15]line СДАЧА: 0.00 [11:28:15]line НСП 1% : 4.43 [11:28:15]line НДС 12% : 53.14 [11:28:15]line Наличными: 500.00 [11:28:15]line Безнал.: 0.00 [11:28:15]line Место: АЗС № 133 "Партнер Нефть" [11:28:15]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:28:15]line СНО: Общий режим [11:28:15]line Чек 227 20.10.2024 11:28 [11:28:15]line Смена: 533 ФФД: 1.0 [11:28:15]line ЗНМ: 0300000091 [11:28:15]line РНМ: 0000000000091685 [11:28:15]line Версия ККМ: 001 [11:28:15]line ФМ: 0000000000871839 [11:28:15]line ФД: 227379 [11:28:15]line ФПД: 86062557919779 [11:28:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112814&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227379&fm=86062557919779&tin=02508201610067®Number=0000000000091685&sum=50000 [11:28:15]written 0, free lines is 4095 [11:28:15]OFD Sender: Processing packet 227379 [packets to send 38, broken 37] [11:28:15]ProducePacketName [11:28:15]name=ofd_packets/00227379 [11:28:15]OFD Sender: To server: pG, [11:28:15]CommunicateWithHost lk.salyk.kg:30040 [11:28:15]ConnectInit lk.salyk.kg [11:28:15]Connected sock=10 [11:28:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 C9 2D 07 01 E0 A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 4E E9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 33 78 03 00 35 04 06 00 4E 46 00 31 7A 23 80 2C 5C 07 02 D4 A7 DB [11:28:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 B1 6A 47 00 34 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 33 39 10 04 04 00 33 78 03 00 F4 03 04 00 4D 94 14 67 B6 04 01 00 00 59 C3 83 F8 9B 49 5D 6B [11:28:16]CommunicateWithHost err = 0 [11:28:16]CheckOFDResponse [11:28:16]1017 (14) - 77093643461234 [11:28:16]1041 (16) - 0000000000871839 [11:28:16]1040 (4) - 227379 [11:28:16]1012 (4) - 20.10.2024 05:25 [11:28:16]1206 (1) - 0 [11:28:16]OFD Sender: Remove packet 227379 [11:28:16]ProducePacketName [11:28:16]name=ofd_packets/00227379 [11:28:16]NVStorageDeleteData [11:28:16]Write to MH i2c: 01 00 00 8A 0A 94 [11:28:16]Write i2c OK [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: 01 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: 01 07 00 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: 01 07 00 8A 0A 00 00 00 00 00 FE 0C A5 [11:28:16]RasterBufferAndPrint [11:28:16]line [11:28:16]line [11:28:16]line [11:28:16]line [11:28:16]line [11:28:16]written 0, free lines is 3332 [11:28:16]process_action close_receipt done [11:28:16]requested_data is exist [11:28:16]produce_requested_data [11:28:16]requested_item fm.sn is exist - process it [11:28:16]wFMCommunicate request_size=4 [11:28:16]MH_SAM_APDU [11:28:16]CAPDU: 80 11 00 00 [11:28:16]Write to MH i2c: E2 08 00 91 0A 80 11 00 00 00 00 00 00 15 [11:28:16]Write i2c OK [11:28:16]MH_I2C_Read... [11:28:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:16]Read from MH i2c: E2 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: E2 17 00 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: E2 17 00 91 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 6C [11:28:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:28:16]wFMCommunicate OK [11:28:16]requested_item fd.num is exist - process it [11:28:16]SAM_PROTO_GetFieldsCounters [11:28:16]wFMCommunicate request_size=4 [11:28:16]MH_SAM_APDU [11:28:16]CAPDU: 80 13 00 00 [11:28:16]Write to MH i2c: E2 08 00 92 0A 80 13 00 00 00 00 00 00 18 [11:28:16]Write i2c OK [11:28:16]MH_I2C_Read... [11:28:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:28:16]Read from MH i2c: E2 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: E2 62 00 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: E2 62 00 92 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 33 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [11:28: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 33 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:28:16]wFMCommunicate OK [11:28:16]SAM_PROTO_GetFieldsCounters done [11:28:16]requested_item shift.num is exist - process it [11:28:16]requested_item shift.opened is exist - process it [11:28:16]req_shift_opened [11:28:16]FM_GetShiftState [11:28:16]SAM_PROTO_GetShiftState [11:28:16]wFMCommunicate request_size=4 [11:28:16]MH_SAM_APDU [11:28:16]CAPDU: 80 13 01 00 [11:28:16]Write to MH i2c: E2 08 00 93 0A 80 13 01 00 00 00 00 00 1A [11:28:16]Write i2c OK [11:28:16]MH_I2C_Read... [11:28:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:16]Read from MH i2c: E2 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: E2 0E 00 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: E2 0E 00 93 0A 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 34 [11:28:16]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:28:16]wFMCommunicate OK [11:28:16]SAM_PROTO_GetShiftState done [11:28:16]FM_GetShiftState done [11:28:16]req_shift_opened done [11:28:16]requested_item shift.open_date is exist - process it [11:28:16]req_shift_open_date [11:28:16]req_shift_open_date done [11:28:16]produce_requested_data done [11:28:16]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227379,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [11:28:16]process_action_free close_receipt [11:28:16]json_value_free [11:28:16]json_value_free done [11:28:16]process_json_proto returns [11:28:16]Send response to host [11:28:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227379,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [11:28:16]free response buf [11:28:16]execute_script done [11:28:16]execute_script returns [11:28:16]free content buf [11:28:16]Sock 8.Close socket [11:28:16]Sock 8.Thread stoped [11:28:16]OFD Sender: No OFD packet to send [11:28:21]OFD Sender: No OFD packet to send [11:28:26]OFD Sender: No OFD packet to send [11:28:31]OFD Sender: No OFD packet to send [11:28:36]OFD Sender: No OFD packet to send [11:28:41]OFD Sender: No OFD packet to send [11:28:43]accept exits with 9 [11:28:43]New connection [11:28:43]New thread 3066543460 created [11:28:43]Thread 3066686820 joined [11:28:43]Waiting for new connection... [11:28:43] Sock 9.Parse request [11:28:43]Sock 9.Check first char [11:28:43]Sock 9.First char is OK [11:28:43]request: POST /json_proto HTTP/1.0 [11:28:43]Method: POST [11:28:43]URL: /json_proto [11:28:43]Method is POST - this is cgi request [11:28:43]url: /json_proto [11:28:43]query_string will be loaded in cgi processing [11:28:43]execute_cgi json_proto POST (null) [11:28:43]execute_cgi path=json_proto method=POST [11:28:43]POST find Content-Length [11:28:43]Host: 172.17.44.195:8080 [11:28:43]Content-Length: 664 [11:28:43]Content-Type: application/json [11:28:43] [11:28:43]POST finish read [11:28:43]Found Content-Length = 664 [11:28:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962895", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:28:43]execute_script... [11:28: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)1962895", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:28:43]POST & json_proto [11:28:43]process_json_proto [11:28:43]json parsed OK: [11:28:43]protocol is kg_v1.0 [11:28:43]action value=close_receipt [11:28:43]process_action close_receipt [11:28:43]cmd_close_receipt [11:28:43]MH_GetDate [11:28:43]Write to MH i2c: F0 00 00 94 0A 8D [11:28:43]Write i2c OK [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: F0 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: F0 09 00 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: F0 09 00 94 0A 00 6C E9 14 67 82 C9 CF 66 E6 [11:28:43]GetLastDocTimeStamp 1729423694 [11:28:43]current date 1729423724 [11:28:43]FM_GetShiftState [11:28:43]SAM_PROTO_GetShiftState [11:28:43]wFMCommunicate request_size=4 [11:28:43]MH_SAM_APDU [11:28:43]CAPDU: 80 13 01 00 [11:28:43]Write to MH i2c: E2 08 00 95 0A 80 13 01 00 00 00 00 00 1C [11:28:43]Write i2c OK [11:28:43]MH_I2C_Read... [11:28:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:43]Read from MH i2c: E2 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: E2 0E 00 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: E2 0E 00 95 0A 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 36 [11:28:43]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:28:43]wFMCommunicate OK [11:28:43]SAM_PROTO_GetShiftState done [11:28:43]FM_GetShiftState done [11:28:43]opened in 1729383750 [11:28:43]opened+sec_in_day 1729470150 [11:28:43]quantity*price = 100000 [11:28:43]sum+1 = 100002 [11:28:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 228 20.10.2024 11:28 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227380 ФПД: 247589462100778 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112844&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227380&fm=247589462100778&tin=02508201610067®Number=0000000000091685&sum=100000 [11:28:44]StoreToDocumentArchive [11:28:44]shift 533 fd 227380 [11:28:44]save to /storage/0533/doc_00227380 [11:28:44]save last doc name /storage/0533/doc_00227380 to /storage/kkm_last_doc_name [11:28:44]save OK [11:28:44]Clear old archive folders... [11:28:44]ProcessDocumentItem done err = 0, tmpTLVsize=244 [11:28:44]tlvbuf is 0185F640 [11:28:44]SAM_PROTO_ClearQueue [11:28:44]wFMCommunicate request_size=4 [11:28:44]MH_SAM_APDU [11:28:44]CAPDU: 80 09 00 00 [11:28:44]Write to MH i2c: E2 08 00 A2 0A 80 09 00 00 00 00 00 00 1E [11:28:44]Write i2c OK [11:28:44]MH_I2C_Read... [11:28:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:28:44]Read from MH i2c: E2 [11:28:44]MH_I2C_Read... [11:28:44]Read from MH i2c: E2 03 00 [11:28:44]MH_I2C_Read... [11:28:44]Read from MH i2c: E2 03 00 A2 0A 00 90 00 20 [11:28:44]RAPDU: 90 00 [11:28:44]wFMCommunicate OK [11:28:44]SAM_PROTO_ClearQueue done [11:28:44]KKMCreateOFDPacket [11:28:44]OFDProtocolAddRootSTLVToBuf [11:28:44]FM_MakeSignedData [11:28:44]FM_MakeSignedData [11:28:44]SAM_PROTO_SignData [11:28:44]wFMCommunicate request_size=4 [11:28:44]MH_SAM_APDU [11:28:44]CAPDU: 80 0D 01 02 [11:28:44]Write to MH i2c: E2 08 00 A3 0A 80 0D 01 02 00 00 00 00 26 [11:28:44]Write i2c OK [11:28:44]MH_I2C_Read... [11:28:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:28:44]Read from MH i2c: E2 [11:28:44]MH_I2C_Read... [11:28:44]Read from MH i2c: E2 03 00 [11:28:44]MH_I2C_Read... [11:28:44]Read from MH i2c: E2 03 00 A3 0A 00 90 00 21 [11:28:44]RAPDU: 90 00 [11:28:44]wFMCommunicate OK [11:28:44]wFMCommunicate request_size=253 [11:28:44]MH_SAM_APDU [11:28:44]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 6C E9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 34 78 03 00 35 04 06 00 E1 2E 69 F0 4B 2A [11:28:44]Write to MH i2c: E2 00 01 A4 0A 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 6C E9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 34 78 03 00 35 04 06 00 E1 2E 69 F0 4B 2A 00 00 F7 [11:28:44]Write i2c OK [11:28:44]MH_I2C_Read... [11:28:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:45]Read from MH i2c: E2 [11:28:45]MH_I2C_Read... [11:28:45]Read from MH i2c: E2 03 00 [11:28:45]MH_I2C_Read... [11:28:45]Read from MH i2c: E2 03 00 A4 0A 00 90 00 22 [11:28:45]RAPDU: 90 00 [11:28:45]wFMCommunicate OK [11:28:45]wFMCommunicate request_size=4 [11:28:45]MH_SAM_APDU [11:28:45]CAPDU: 80 0D 03 02 [11:28:45]Write to MH i2c: E2 08 00 A5 0A 80 0D 03 02 00 00 00 00 2A [11:28:45]Write i2c OK [11:28:45]MH_I2C_Read... [11:28:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:28:45]Read from MH i2c: E2 [11:28:45]MH_I2C_Read... [11:28:45]Read from MH i2c: E2 0B 00 [11:28:45]MH_I2C_Read... [11:28:45]Read from MH i2c: E2 0B 00 A5 0A 00 24 57 2B DA 09 47 76 21 90 00 92 [11:28:45]RAPDU: 24 57 2B DA 09 47 76 21 90 00 [11:28:45]wFMCommunicate OK [11:28:45]SAM_PROTO_SignData done [11:28:45]FM_MakeSignedData done [11:28:45]CreateOFDProtocolMessage [11:28:45]wFMCommunicate request_size=4 [11:28:45]MH_SAM_APDU [11:28:45]CAPDU: 80 11 00 00 [11:28:45]Write to MH i2c: E2 08 00 A6 0A 80 11 00 00 00 00 00 00 2A [11:28:45]Write i2c OK [11:28:45]MH_I2C_Read... [11:28:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:45]Read from MH i2c: E2 [11:28:45]MH_I2C_Read... [11:28:45]Read from MH i2c: E2 17 00 [11:28:45]MH_I2C_Read... [11:28:45]Read from MH i2c: E2 17 00 A6 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 81 [11:28:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:28:45]wFMCommunicate OK [11:28:45]CreateOFDProtocolMessage done [11:28:45]OFDSenderStorePacket 227380 [11:28:45]StoreOFDPacket docnum=227380 [11:28:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 A9 B9 00 01 0C 59 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 6C E9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 34 78 03 00 35 04 06 00 E1 2E 69 F0 4B 2A 24 57 2B DA 09 47 76 21 [11:28:45]CheckFolder [11:28:45]dirname=/storage/ofd_packets [11:28:45]CheckFolder done [11:28:45]ProducePacketName [11:28:45]name=ofd_packets/00227380 [11:28:45]NVStorageSaveData ofd_packets/00227380 [11:28:45]File name is /storage/ofd_packets/00227380 [11:28:45]Write 294 bytes [11:28:45]NVStorageSaveData done [11:28:45]OFDSenderStorePacket done [11:28:45]KKMCreateOFDPacket done [11:28:45]NVStorageSaveData kkm_last_timestamp [11:28:45]File name is /storage/kkm_last_timestamp [11:28:45]Write 4 bytes [11:28:45]NVStorageSaveData done [11:28:45]ExternCall_PrintAddStr [11:28:45]wPrintStart [11:28:45]Write to MH i2c: 01 00 00 A7 0A B1 [11:28:45]Write i2c OK [11:28:45]MH_I2C_Read... [11:28:45]Read from MH i2c: 01 [11:28:45]MH_I2C_Read... [11:28:45]Read from MH i2c: 01 07 00 [11:28:45]MH_I2C_Read... [11:28:45]Read from MH i2c: 01 07 00 A7 0A 00 00 00 00 00 FF 0F C6 [11:28:45]RasterBufferAndPrint [11:28:45]line Счет N : (1)1962895 [11:28:45]line ИНН: 02508201610067 [11:28:45]line Контрольно-Кассовый Чек [11:28:45]line ПРОДАЖА [11:28:45]line ТРК (МРК, ГНК) : 32 [11:28:45]line Товар: 2710124130 [11:28:45]line SU-92 [11:28:45]line 14.620 * 68.40 [11:28:45]line = 1000.01 [11:28:45]line НДС 12% НСП 1% [11:28:45]line > о реализуемом товаре [11:28:45]line ОКРУГЛЕНИЕ: -0.01 [11:28:45]line ИТОГО: 1000.00 [11:28:45]line Внесено: 1000.00 [11:28:45]line СДАЧА: 0.00 [11:28:45]line НСП 1% : 8.85 [11:28:45]line НДС 12% : 106.20 [11:28:45]line Наличными: 1000.00 [11:28:45]line Безнал.: 0.00 [11:28:45]line Место: АЗС № 133 "Партнер Нефть" [11:28:45]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:28:45]line СНО: Общий режим [11:28:45]line Чек 228 20.10.2024 11:28 [11:28:45]line Смена: 533 ФФД: 1.0 [11:28:45]line ЗНМ: 0300000091 [11:28:45]line РНМ: 0000000000091685 [11:28:45]line Версия ККМ: 001 [11:28:45]line ФМ: 0000000000871839 [11:28:45]line ФД: 227380 [11:28:45]line ФПД: 247589462100778 [11:28:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112844&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227380&fm=247589462100778&tin=02508201610067®Number=0000000000091685&sum=100000 [11:28:45]OFD Sender: Processing packet 227380 [packets to send 38, broken 37] [11:28:45]ProducePacketName [11:28:45]name=ofd_packets/00227380 [11:28:45]OFD Sender: To server: pG, [11:28:45]CommunicateWithHost lk.salyk.kg:30040 [11:28:45]ConnectInit lk.salyk.kg [11:28:45]written 0, free lines is 4095 [11:28:45]Connected sock=10 [11:28: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 33 39 08 01 00 00 A9 B9 00 01 0C 59 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 6C E9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 34 78 03 00 35 04 06 00 E1 2E 69 F0 4B 2A 24 57 2B DA 09 47 76 21 [11:28: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 33 39 4F 00 00 00 25 A8 47 00 34 EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 34 78 03 00 F4 03 04 00 6B 94 14 67 B6 04 01 00 00 49 5A 15 C7 92 65 7A 43 [11:28:45]CommunicateWithHost err = 0 [11:28:45]CheckOFDResponse [11:28:45]1017 (14) - 77093643461234 [11:28:45]1041 (16) - 0000000000871839 [11:28:45]1040 (4) - 227380 [11:28:45]1012 (4) - 20.10.2024 05:26 [11:28:45]1206 (1) - 0 [11:28:45]OFD Sender: Remove packet 227380 [11:28:45]ProducePacketName [11:28:45]name=ofd_packets/00227380 [11:28:45]NVStorageDeleteData [11:28:46]Write to MH i2c: 01 00 00 D1 0A DB [11:28:46]Write i2c OK [11:28:46]MH_I2C_Read... [11:28:46]Read from MH i2c: 01 [11:28:46]MH_I2C_Read... [11:28:46]Read from MH i2c: 01 07 00 [11:28:46]MH_I2C_Read... [11:28:46]Read from MH i2c: 01 07 00 D1 0A 00 00 00 00 00 0B 0D FA [11:28:46]RasterBufferAndPrint [11:28:46]line [11:28:46]line [11:28:46]line [11:28:46]line [11:28:46]line [11:28:46]written 0, free lines is 3345 [11:28:46]process_action close_receipt done [11:28:46]requested_data is exist [11:28:46]produce_requested_data [11:28:46]requested_item fm.sn is exist - process it [11:28:46]wFMCommunicate request_size=4 [11:28:46]MH_SAM_APDU [11:28:46]CAPDU: 80 11 00 00 [11:28:46]Write to MH i2c: E2 08 00 D8 0A 80 11 00 00 00 00 00 00 5C [11:28:46]Write i2c OK [11:28:46]MH_I2C_Read... [11:28:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:46]Read from MH i2c: E2 [11:28:46]MH_I2C_Read... [11:28:46]Read from MH i2c: E2 17 00 [11:28:46]MH_I2C_Read... [11:28:46]Read from MH i2c: E2 17 00 D8 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B3 [11:28:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:28:46]wFMCommunicate OK [11:28:46]requested_item fd.num is exist - process it [11:28:46]SAM_PROTO_GetFieldsCounters [11:28:46]wFMCommunicate request_size=4 [11:28:46]MH_SAM_APDU [11:28:46]CAPDU: 80 13 00 00 [11:28:46]Write to MH i2c: E2 08 00 D9 0A 80 13 00 00 00 00 00 00 5F [11:28:46]Write i2c OK [11:28:46]MH_I2C_Read... [11:28:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:28:46]Read from MH i2c: E2 [11:28:46]MH_I2C_Read... [11:28:46]Read from MH i2c: E2 62 00 [11:28:46]MH_I2C_Read... [11:28:46]Read from MH i2c: E2 62 00 D9 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 34 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [11:28: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 34 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:28:46]wFMCommunicate OK [11:28:46]SAM_PROTO_GetFieldsCounters done [11:28:46]requested_item shift.num is exist - process it [11:28:46]requested_item shift.opened is exist - process it [11:28:46]req_shift_opened [11:28:46]FM_GetShiftState [11:28:46]SAM_PROTO_GetShiftState [11:28:46]wFMCommunicate request_size=4 [11:28:46]MH_SAM_APDU [11:28:46]CAPDU: 80 13 01 00 [11:28:46]Write to MH i2c: E2 08 00 DA 0A 80 13 01 00 00 00 00 00 61 [11:28:46]Write i2c OK [11:28:46]MH_I2C_Read... [11:28:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:46]Read from MH i2c: E2 [11:28:46]MH_I2C_Read... [11:28:46]Read from MH i2c: E2 0E 00 [11:28:46]MH_I2C_Read... [11:28:46]Read from MH i2c: E2 0E 00 DA 0A 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 7B [11:28:46]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:28:46]wFMCommunicate OK [11:28:46]SAM_PROTO_GetShiftState done [11:28:46]FM_GetShiftState done [11:28:46]req_shift_opened done [11:28:46]requested_item shift.open_date is exist - process it [11:28:46]req_shift_open_date [11:28:46]req_shift_open_date done [11:28:46]produce_requested_data done [11:28:46]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227380,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [11:28:46]process_action_free close_receipt [11:28:46]json_value_free [11:28:46]json_value_free done [11:28:46]process_json_proto returns [11:28:46]Send response to host [11:28:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227380,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [11:28:46]free response buf [11:28:46]execute_script done [11:28:46]execute_script returns [11:28:46]free content buf [11:28:46]Sock 9.Close socket [11:28:46]Sock 9.Thread stoped [11:28:46]OFD Sender: No OFD packet to send [11:28:50]accept exits with 8 [11:28:50]New connection [11:28:50]New thread 3066686820 created [11:28:50]Thread 3066543460 joined [11:28:50]Waiting for new connection... [11:28:50] Sock 8.Parse request [11:28:50]Sock 8.Check first char [11:28:50]Sock 8.First char is OK [11:28:50]request: POST /json_proto HTTP/1.0 [11:28:50]Method: POST [11:28:50]URL: /json_proto [11:28:50]Method is POST - this is cgi request [11:28:50]url: /json_proto [11:28:50]query_string will be loaded in cgi processing [11:28:50]execute_cgi json_proto POST (null) [11:28:50]execute_cgi path=json_proto method=POST [11:28:50]POST find Content-Length [11:28:50]Host: 172.17.44.195:8080 [11:28:50]Content-Length: 678 [11:28:50]Content-Type: application/json [11:28:50] [11:28:50]POST finish read [11:28:50]Found Content-Length = 678 [11:28:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962896", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:50]execute_script... [11:28: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)1962896", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:50]POST & json_proto [11:28:50]process_json_proto [11:28:50]json parsed OK: [11:28:50]protocol is kg_v1.0 [11:28:50]action value=close_receipt [11:28:50]process_action close_receipt [11:28:50]cmd_close_receipt [11:28:50]MH_GetDate [11:28:50]Write to MH i2c: F0 00 00 DB 0A D4 [11:28:50]Write i2c OK [11:28:50]MH_I2C_Read... [11:28:50]Read from MH i2c: F0 [11:28:50]MH_I2C_Read... [11:28:50]Read from MH i2c: F0 09 00 [11:28:50]MH_I2C_Read... [11:28:50]Read from MH i2c: F0 09 00 DB 0A 00 73 E9 14 67 82 C9 CF 66 34 [11:28:50]GetLastDocTimeStamp 1729423724 [11:28:50]current date 1729423731 [11:28:50]FM_GetShiftState [11:28:50]SAM_PROTO_GetShiftState [11:28:50]wFMCommunicate request_size=4 [11:28:50]MH_SAM_APDU [11:28:50]CAPDU: 80 13 01 00 [11:28:50]Write to MH i2c: E2 08 00 DC 0A 80 13 01 00 00 00 00 00 63 [11:28:50]Write i2c OK [11:28:50]MH_I2C_Read... [11:28:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:50]Read from MH i2c: E2 [11:28:50]MH_I2C_Read... [11:28:50]Read from MH i2c: E2 0E 00 [11:28:50]MH_I2C_Read... [11:28:50]Read from MH i2c: E2 0E 00 DC 0A 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 7D [11:28:50]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:28:50]wFMCommunicate OK [11:28:50]SAM_PROTO_GetShiftState done [11:28:50]FM_GetShiftState done [11:28:50]opened in 1729383750 [11:28:50]opened+sec_in_day 1729470150 [11:28:50]quantity*price = 50041 [11:28:50]sum+1 = 50042 [11:28:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 229 20.10.2024 11:28 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227381 ФПД: 63237156529577 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112851&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227381&fm=63237156529577&tin=02508201610067®Number=0000000000091685&sum=50000 [11:28:51]StoreToDocumentArchive [11:28:51]shift 533 fd 227381 [11:28:51]save to /storage/0533/doc_00227381 [11:28:51]save last doc name /storage/0533/doc_00227381 to /storage/kkm_last_doc_name [11:28:51]save OK [11:28:51]Clear old archive folders... [11:28:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:28:51]tlvbuf is 01873050 [11:28:51]SAM_PROTO_ClearQueue [11:28:51]wFMCommunicate request_size=4 [11:28:51]MH_SAM_APDU [11:28:51]CAPDU: 80 09 00 00 [11:28:51]Write to MH i2c: E2 08 00 E9 0A 80 09 00 00 00 00 00 00 65 [11:28:51]Write i2c OK [11:28:51]MH_I2C_Read... [11:28:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:28:51]Read from MH i2c: E2 [11:28:51]MH_I2C_Read... [11:28:51]Read from MH i2c: E2 03 00 [11:28:51]MH_I2C_Read... [11:28:51]Read from MH i2c: E2 03 00 E9 0A 00 90 00 67 [11:28:51]RAPDU: 90 00 [11:28:51]wFMCommunicate OK [11:28:51]SAM_PROTO_ClearQueue done [11:28:51]KKMCreateOFDPacket [11:28:51]OFDProtocolAddRootSTLVToBuf [11:28:51]FM_MakeSignedData [11:28:51]FM_MakeSignedData [11:28:51]SAM_PROTO_SignData [11:28:51]wFMCommunicate request_size=4 [11:28:51]MH_SAM_APDU [11:28:51]CAPDU: 80 0D 01 02 [11:28:51]Write to MH i2c: E2 08 00 EA 0A 80 0D 01 02 00 00 00 00 6D [11:28:51]Write i2c OK [11:28:51]MH_I2C_Read... [11:28:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:28:51]Read from MH i2c: E2 [11:28:51]MH_I2C_Read... [11:28:51]Read from MH i2c: E2 03 00 [11:28:51]MH_I2C_Read... [11:28:51]Read from MH i2c: E2 03 00 EA 0A 00 90 00 68 [11:28:51]RAPDU: 90 00 [11:28:51]wFMCommunicate OK [11:28:51]wFMCommunicate request_size=255 [11:28:51]MH_SAM_APDU [11:28:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 73 E9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 35 78 03 00 35 04 06 00 39 [11:28:51]Write to MH i2c: E2 02 01 EB 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 73 E9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 35 78 03 00 35 04 06 00 39 00 00 C0 [11:28:51]Write i2c OK [11:28:51]MH_I2C_Read... [11:28:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:52]Read from MH i2c: E2 [11:28:52]MH_I2C_Read... [11:28:52]Read from MH i2c: E2 03 00 [11:28:52]MH_I2C_Read... [11:28:52]Read from MH i2c: E2 03 00 EB 0A 00 90 00 69 [11:28:52]RAPDU: 90 00 [11:28:52]wFMCommunicate OK [11:28:52]wFMCommunicate request_size=10 [11:28:52]MH_SAM_APDU [11:28:52]CAPDU: 80 0D 02 02 05 83 8C 40 65 A9 [11:28:52]Write to MH i2c: E2 0D 00 EC 0A 80 0D 02 02 05 00 83 8C 40 65 A9 00 00 D7 [11:28:52]Write i2c OK [11:28:52]MH_I2C_Read... [11:28:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:52]Read from MH i2c: E2 [11:28:52]MH_I2C_Read... [11:28:52]Read from MH i2c: E2 03 00 [11:28:52]MH_I2C_Read... [11:28:52]Read from MH i2c: E2 03 00 EC 0A 00 90 00 6A [11:28:52]RAPDU: 90 00 [11:28:52]wFMCommunicate OK [11:28:52]wFMCommunicate request_size=4 [11:28:52]MH_SAM_APDU [11:28:52]CAPDU: 80 0D 03 02 [11:28:52]Write to MH i2c: E2 08 00 ED 0A 80 0D 03 02 00 00 00 00 72 [11:28:52]Write i2c OK [11:28:52]MH_I2C_Read... [11:28:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:28:52]Read from MH i2c: E2 [11:28:52]MH_I2C_Read... [11:28:52]Read from MH i2c: E2 0B 00 [11:28:52]MH_I2C_Read... [11:28:52]Read from MH i2c: E2 0B 00 ED 0A 00 FE 24 1C 3F D3 39 CC 33 90 00 FB [11:28:52]RAPDU: FE 24 1C 3F D3 39 CC 33 90 00 [11:28:52]wFMCommunicate OK [11:28:52]SAM_PROTO_SignData done [11:28:52]FM_MakeSignedData done [11:28:52]CreateOFDProtocolMessage [11:28:52]wFMCommunicate request_size=4 [11:28:52]MH_SAM_APDU [11:28:52]CAPDU: 80 11 00 00 [11:28:52]Write to MH i2c: E2 08 00 EE 0A 80 11 00 00 00 00 00 00 72 [11:28:52]Write i2c OK [11:28:52]MH_I2C_Read... [11:28:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:52]Read from MH i2c: E2 [11:28:52]MH_I2C_Read... [11:28:52]Read from MH i2c: E2 17 00 [11:28:52]MH_I2C_Read... [11:28:52]Read from MH i2c: E2 17 00 EE 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C9 [11:28:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:28:52]wFMCommunicate OK [11:28:52]CreateOFDProtocolMessage done [11:28:52]OFDSenderStorePacket 227381 [11:28:52]StoreOFDPacket docnum=227381 [11:28:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 BC E5 07 01 BC F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 73 E9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 35 78 03 00 35 04 06 00 39 83 8C 40 65 A9 FE 24 1C 3F D3 39 CC 33 [11:28:52]CheckFolder [11:28:52]dirname=/storage/ofd_packets [11:28:52]CheckFolder done [11:28:52]ProducePacketName [11:28:52]name=ofd_packets/00227381 [11:28:52]NVStorageSaveData ofd_packets/00227381 [11:28:52]File name is /storage/ofd_packets/00227381 [11:28:52]Write 301 bytes [11:28:52]NVStorageSaveData done [11:28:52]OFDSenderStorePacket done [11:28:52]KKMCreateOFDPacket done [11:28:52]NVStorageSaveData kkm_last_timestamp [11:28:52]File name is /storage/kkm_last_timestamp [11:28:52]Write 4 bytes [11:28:52]NVStorageSaveData done [11:28:52]ExternCall_PrintAddStr [11:28:52]wPrintStart [11:28:52]Write to MH i2c: 01 00 00 EF 0A F9 [11:28:52]Write i2c OK [11:28:52]MH_I2C_Read... [11:28:52]Read from MH i2c: 01 [11:28:52]MH_I2C_Read... [11:28:52]Read from MH i2c: 01 07 00 [11:28:52]MH_I2C_Read... [11:28:52]Read from MH i2c: 01 07 00 EF 0A 00 00 00 00 00 FF 0F 0E [11:28:52]RasterBufferAndPrint [11:28:52]line Счет N : (1)1962896 [11:28:52]line ИНН: 02508201610067 [11:28:52]line Контрольно-Кассовый Чек [11:28:52]line ПРОДАЖА [11:28:52]line ТРК (МРК, ГНК) : 53 [11:28:52]line Товар: 2710124130 [11:28:52]line Аи-92-К-5 [11:28:52]line 7.480 * 66.90 [11:28:52]line = 500.41 [11:28:52]line НДС 12% НСП 1% [11:28:52]line > о реализуемом товаре [11:28:52]line ОКРУГЛЕНИЕ: -0.41 [11:28:52]line ИТОГО: 500.00 [11:28:52]line Внесено: 500.00 [11:28:52]line СДАЧА: 0.00 [11:28:52]line НСП 1% : 4.43 [11:28:52]line НДС 12% : 53.14 [11:28:52]line Наличными: 500.00 [11:28:52]line Безнал.: 0.00 [11:28:52]line Место: АЗС № 133 "Партнер Нефть" [11:28:52]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:28:52]line СНО: Общий режим [11:28:52]line Чек 229 20.10.2024 11:28 [11:28:52]line Смена: 533 ФФД: 1.0 [11:28:52]line ЗНМ: 0300000091 [11:28:52]line РНМ: 0000000000091685 [11:28:52]line Версия ККМ: 001 [11:28:52]line ФМ: 0000000000871839 [11:28:52]line ФД: 227381 [11:28:52]line ФПД: 63237156529577 [11:28:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112851&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227381&fm=63237156529577&tin=02508201610067®Number=0000000000091685&sum=50000 [11:28:52]OFD Sender: Processing packet 227381 [packets to send 38, broken 37] [11:28:52]ProducePacketName [11:28:52]name=ofd_packets/00227381 [11:28:52]OFD Sender: To server: pG, [11:28:52]CommunicateWithHost lk.salyk.kg:30040 [11:28:52]ConnectInit lk.salyk.kg [11:28:52]written 0, free lines is 4095 [11:28:52]Connected sock=10 [11:28: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 33 39 0F 01 00 00 BC E5 07 01 BC F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 73 E9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 35 78 03 00 35 04 06 00 39 83 8C 40 65 A9 FE 24 1C 3F D3 39 CC 33 [11:28: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 33 39 4F 00 00 00 40 94 47 00 12 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 35 78 03 00 F4 03 04 00 72 94 14 67 B6 04 01 00 00 91 D0 AC 7C 74 C2 CB CE [11:28:52]CommunicateWithHost err = 0 [11:28:52]CheckOFDResponse [11:28:52]1017 (14) - 77093643461234 [11:28:52]1041 (16) - 0000000000871839 [11:28:52]1040 (4) - 227381 [11:28:52]1012 (4) - 20.10.2024 05:26 [11:28:52]1206 (1) - 0 [11:28:52]OFD Sender: Remove packet 227381 [11:28:52]ProducePacketName [11:28:52]name=ofd_packets/00227381 [11:28:52]NVStorageDeleteData [11:28:52]Write to MH i2c: 01 00 00 19 0B 24 [11:28:52]Write i2c OK [11:28:52]MH_I2C_Read... [11:28:52]Read from MH i2c: 01 [11:28:52]MH_I2C_Read... [11:28:52]Read from MH i2c: 01 07 00 [11:28:52]MH_I2C_Read... [11:28:52]Read from MH i2c: 01 07 00 19 0B 00 00 00 00 00 0A 0D 42 [11:28:52]RasterBufferAndPrint [11:28:52]line [11:28:52]line [11:28:52]line [11:28:52]line [11:28:52]line [11:28:52]written 0, free lines is 3347 [11:28:52]process_action close_receipt done [11:28:52]requested_data is exist [11:28:52]produce_requested_data [11:28:52]requested_item fm.sn is exist - process it [11:28:52]wFMCommunicate request_size=4 [11:28:52]MH_SAM_APDU [11:28:52]CAPDU: 80 11 00 00 [11:28:52]Write to MH i2c: E2 08 00 20 0B 80 11 00 00 00 00 00 00 A5 [11:28:52]Write i2c OK [11:28:52]MH_I2C_Read... [11:28:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:52]Read from MH i2c: E2 [11:28:52]MH_I2C_Read... [11:28:52]Read from MH i2c: E2 17 00 [11:28:52]MH_I2C_Read... [11:28:52]Read from MH i2c: E2 17 00 20 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 FC [11:28:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:28:52]wFMCommunicate OK [11:28:52]requested_item fd.num is exist - process it [11:28:52]SAM_PROTO_GetFieldsCounters [11:28:52]wFMCommunicate request_size=4 [11:28:52]MH_SAM_APDU [11:28:52]CAPDU: 80 13 00 00 [11:28:52]Write to MH i2c: E2 08 00 21 0B 80 13 00 00 00 00 00 00 A8 [11:28:52]Write i2c OK [11:28:52]MH_I2C_Read... [11:28:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:28:52]Read from MH i2c: E2 [11:28:52]MH_I2C_Read... [11:28:52]Read from MH i2c: E2 62 00 [11:28:52]MH_I2C_Read... [11:28:52]Read from MH i2c: E2 62 00 21 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 35 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [11:28: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 35 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:28:52]wFMCommunicate OK [11:28:52]SAM_PROTO_GetFieldsCounters done [11:28:52]requested_item shift.num is exist - process it [11:28:52]requested_item shift.opened is exist - process it [11:28:52]req_shift_opened [11:28:52]FM_GetShiftState [11:28:52]SAM_PROTO_GetShiftState [11:28:52]wFMCommunicate request_size=4 [11:28:52]MH_SAM_APDU [11:28:52]CAPDU: 80 13 01 00 [11:28:52]Write to MH i2c: E2 08 00 22 0B 80 13 01 00 00 00 00 00 AA [11:28:52]Write i2c OK [11:28:52]MH_I2C_Read... [11:28:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:52]Read from MH i2c: E2 [11:28:52]MH_I2C_Read... [11:28:52]Read from MH i2c: E2 0E 00 [11:28:52]MH_I2C_Read... [11:28:52]Read from MH i2c: E2 0E 00 22 0B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 C4 [11:28:52]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:28:52]wFMCommunicate OK [11:28:52]SAM_PROTO_GetShiftState done [11:28:52]FM_GetShiftState done [11:28:52]req_shift_opened done [11:28:52]requested_item shift.open_date is exist - process it [11:28:52]req_shift_open_date [11:28:52]req_shift_open_date done [11:28:52]produce_requested_data done [11:28:52]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227381,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [11:28:52]process_action_free close_receipt [11:28:52]json_value_free [11:28:52]json_value_free done [11:28:52]process_json_proto returns [11:28:52]Send response to host [11:28:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227381,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [11:28:52]free response buf [11:28:52]execute_script done [11:28:52]execute_script returns [11:28:52]free content buf [11:28:52]Sock 8.Close socket [11:28:52]Sock 8.Thread stoped [11:28:53]OFD Sender: No OFD packet to send [11:28:58]OFD Sender: No OFD packet to send [11:29:03]OFD Sender: No OFD packet to send [11:29:08]OFD Sender: No OFD packet to send [11:29:13]OFD Sender: No OFD packet to send [11:29:18]OFD Sender: No OFD packet to send [11:29:23]OFD Sender: No OFD packet to send [11:29:28]OFD Sender: No OFD packet to send [11:29:28]accept exits with 9 [11:29:28]New connection [11:29:28]New thread 3066543460 created [11:29:28]Thread 3066686820 joined [11:29:28]Waiting for new connection... [11:29:28] Sock 9.Parse request [11:29:28]Sock 9.Check first char [11:29:28]Sock 9.First char is OK [11:29:28]request: POST /json_proto HTTP/1.0 [11:29:28]Method: POST [11:29:28]URL: /json_proto [11:29:28]Method is POST - this is cgi request [11:29:28]url: /json_proto [11:29:28]query_string will be loaded in cgi processing [11:29:28]execute_cgi json_proto POST (null) [11:29:28]execute_cgi path=json_proto method=POST [11:29:28]POST find Content-Length [11:29:28]Host: 172.17.44.195:8080 [11:29:28]Content-Length: 678 [11:29:28]Content-Type: application/json [11:29:28] [11:29:28]POST finish read [11:29:28]Found Content-Length = 678 [11:29:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962897", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:28]execute_script... [11:29: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)1962897", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:28]POST & json_proto [11:29:28]process_json_proto [11:29:28]json parsed OK: [11:29:28]protocol is kg_v1.0 [11:29:28]action value=close_receipt [11:29:28]process_action close_receipt [11:29:28]cmd_close_receipt [11:29:28]MH_GetDate [11:29:28]Write to MH i2c: F0 00 00 23 0B 1D [11:29:28]Write i2c OK [11:29:28]MH_I2C_Read... [11:29:28]Read from MH i2c: F0 [11:29:28]MH_I2C_Read... [11:29:28]Read from MH i2c: F0 09 00 [11:29:28]MH_I2C_Read... [11:29:28]Read from MH i2c: F0 09 00 23 0B 00 99 E9 14 67 82 C9 CF 66 A3 [11:29:28]GetLastDocTimeStamp 1729423731 [11:29:28]current date 1729423769 [11:29:28]FM_GetShiftState [11:29:28]SAM_PROTO_GetShiftState [11:29:28]wFMCommunicate request_size=4 [11:29:28]MH_SAM_APDU [11:29:28]CAPDU: 80 13 01 00 [11:29:28]Write to MH i2c: E2 08 00 24 0B 80 13 01 00 00 00 00 00 AC [11:29:28]Write i2c OK [11:29:28]MH_I2C_Read... [11:29:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:28]Read from MH i2c: E2 [11:29:28]MH_I2C_Read... [11:29:28]Read from MH i2c: E2 0E 00 [11:29:28]MH_I2C_Read... [11:29:28]Read from MH i2c: E2 0E 00 24 0B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 C6 [11:29:28]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:29:28]wFMCommunicate OK [11:29:28]SAM_PROTO_GetShiftState done [11:29:28]FM_GetShiftState done [11:29:28]opened in 1729383750 [11:29:28]opened+sec_in_day 1729470150 [11:29:28]quantity*price = 25020 [11:29:28]sum+1 = 25022 [11:29:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 230 20.10.2024 11:29 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227382 ФПД: 107272500080556 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112929&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227382&fm=107272500080556&tin=02508201610067®Number=0000000000091685&sum=25000 [11:29:30]StoreToDocumentArchive [11:29:30]shift 533 fd 227382 [11:29:30]save to /storage/0533/doc_00227382 [11:29:30]save last doc name /storage/0533/doc_00227382 to /storage/kkm_last_doc_name [11:29:30]save OK [11:29:30]Clear old archive folders... [11:29:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:29:30]tlvbuf is 0183EA50 [11:29:30]SAM_PROTO_ClearQueue [11:29:30]wFMCommunicate request_size=4 [11:29:30]MH_SAM_APDU [11:29:30]CAPDU: 80 09 00 00 [11:29:30]Write to MH i2c: E2 08 00 31 0B 80 09 00 00 00 00 00 00 AE [11:29:30]Write i2c OK [11:29:30]MH_I2C_Read... [11:29:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:29:30]Read from MH i2c: E2 [11:29:30]MH_I2C_Read... [11:29:30]Read from MH i2c: E2 03 00 [11:29:30]MH_I2C_Read... [11:29:30]Read from MH i2c: E2 03 00 31 0B 00 90 00 B0 [11:29:30]RAPDU: 90 00 [11:29:30]wFMCommunicate OK [11:29:30]SAM_PROTO_ClearQueue done [11:29:30]KKMCreateOFDPacket [11:29:30]OFDProtocolAddRootSTLVToBuf [11:29:30]FM_MakeSignedData [11:29:30]FM_MakeSignedData [11:29:30]SAM_PROTO_SignData [11:29:30]wFMCommunicate request_size=4 [11:29:30]MH_SAM_APDU [11:29:30]CAPDU: 80 0D 01 02 [11:29:30]Write to MH i2c: E2 08 00 32 0B 80 0D 01 02 00 00 00 00 B6 [11:29:30]Write i2c OK [11:29:30]MH_I2C_Read... [11:29:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:29:30]Read from MH i2c: E2 [11:29:30]MH_I2C_Read... [11:29:30]Read from MH i2c: E2 03 00 [11:29:30]MH_I2C_Read... [11:29:30]Read from MH i2c: E2 03 00 32 0B 00 90 00 B1 [11:29:30]RAPDU: 90 00 [11:29:30]wFMCommunicate OK [11:29:30]wFMCommunicate request_size=255 [11:29:30]MH_SAM_APDU [11:29:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 99 E9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 36 78 03 00 35 04 06 00 61 [11:29:30]Write to MH i2c: E2 02 01 33 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 99 E9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 36 78 03 00 35 04 06 00 61 00 00 32 [11:29:30]Write i2c OK [11:29:30]MH_I2C_Read... [11:29:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:30]Read from MH i2c: E2 [11:29:30]MH_I2C_Read... [11:29:30]Read from MH i2c: E2 03 00 [11:29:30]MH_I2C_Read... [11:29:30]Read from MH i2c: E2 03 00 33 0B 00 90 00 B2 [11:29:30]RAPDU: 90 00 [11:29:30]wFMCommunicate OK [11:29:30]wFMCommunicate request_size=10 [11:29:30]MH_SAM_APDU [11:29:30]CAPDU: 80 0D 02 02 05 90 53 42 EF AC [11:29:30]Write to MH i2c: E2 0D 00 34 0B 80 0D 02 02 05 00 90 53 42 EF AC 00 00 83 [11:29:30]Write i2c OK [11:29:30]MH_I2C_Read... [11:29:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:30]Read from MH i2c: E2 [11:29:30]MH_I2C_Read... [11:29:30]Read from MH i2c: E2 03 00 [11:29:30]MH_I2C_Read... [11:29:30]Read from MH i2c: E2 03 00 34 0B 00 90 00 B3 [11:29:30]RAPDU: 90 00 [11:29:30]wFMCommunicate OK [11:29:30]wFMCommunicate request_size=4 [11:29:30]MH_SAM_APDU [11:29:30]CAPDU: 80 0D 03 02 [11:29:30]Write to MH i2c: E2 08 00 35 0B 80 0D 03 02 00 00 00 00 BB [11:29:30]Write i2c OK [11:29:30]MH_I2C_Read... [11:29:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:29:30]Read from MH i2c: E2 [11:29:30]MH_I2C_Read... [11:29:30]Read from MH i2c: E2 0B 00 [11:29:30]MH_I2C_Read... [11:29:30]Read from MH i2c: E2 0B 00 35 0B 00 1C AD 1C 6E E7 43 54 2C 90 00 B9 [11:29:30]RAPDU: 1C AD 1C 6E E7 43 54 2C 90 00 [11:29:30]wFMCommunicate OK [11:29:30]SAM_PROTO_SignData done [11:29:30]FM_MakeSignedData done [11:29:30]CreateOFDProtocolMessage [11:29:30]wFMCommunicate request_size=4 [11:29:30]MH_SAM_APDU [11:29:30]CAPDU: 80 11 00 00 [11:29:30]Write to MH i2c: E2 08 00 36 0B 80 11 00 00 00 00 00 00 BB [11:29:30]Write i2c OK [11:29:30]MH_I2C_Read... [11:29:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:30]Read from MH i2c: E2 [11:29:30]MH_I2C_Read... [11:29:30]Read from MH i2c: E2 17 00 [11:29:30]MH_I2C_Read... [11:29:30]Read from MH i2c: E2 17 00 36 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 12 [11:29:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:29:30]wFMCommunicate OK [11:29:30]CreateOFDProtocolMessage done [11:29:30]OFDSenderStorePacket 227382 [11:29:30]StoreOFDPacket docnum=227382 [11:29:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 FC AA 07 01 CF 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 99 E9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 36 78 03 00 35 04 06 00 61 90 53 42 EF AC 1C AD 1C 6E E7 43 54 2C [11:29:30]CheckFolder [11:29:30]dirname=/storage/ofd_packets [11:29:30]CheckFolder done [11:29:30]ProducePacketName [11:29:30]name=ofd_packets/00227382 [11:29:30]NVStorageSaveData ofd_packets/00227382 [11:29:30]File name is /storage/ofd_packets/00227382 [11:29:30]Write 301 bytes [11:29:30]NVStorageSaveData done [11:29:30]OFDSenderStorePacket done [11:29:30]KKMCreateOFDPacket done [11:29:30]NVStorageSaveData kkm_last_timestamp [11:29:30]File name is /storage/kkm_last_timestamp [11:29:30]Write 4 bytes [11:29:30]NVStorageSaveData done [11:29:30]ExternCall_PrintAddStr [11:29:30]wPrintStart [11:29:30]Write to MH i2c: 01 00 00 37 0B 42 [11:29:30]Write i2c OK [11:29:30]MH_I2C_Read... [11:29:30]Read from MH i2c: 01 [11:29:30]MH_I2C_Read... [11:29:30]Read from MH i2c: 01 07 00 [11:29:30]MH_I2C_Read... [11:29:30]Read from MH i2c: 01 07 00 37 0B 00 00 00 00 00 FF 0F 57 [11:29:30]RasterBufferAndPrint [11:29:30]line Счет N : (1)1962897 [11:29:30]line ИНН: 02508201610067 [11:29:30]line Контрольно-Кассовый Чек [11:29:30]line ПРОДАЖА [11:29:30]line ТРК (МРК, ГНК) : 63 [11:29:30]line Товар: 2710124130 [11:29:30]line Аи-92-К-5 [11:29:30]line 3.740 * 66.90 [11:29:30]line = 250.21 [11:29:30]line НДС 12% НСП 1% [11:29:30]line > о реализуемом товаре [11:29:30]line ОКРУГЛЕНИЕ: -0.21 [11:29:30]line ИТОГО: 250.00 [11:29:30]line Внесено: 250.00 [11:29:30]line СДАЧА: 0.00 [11:29:30]line НСП 1% : 2.21 [11:29:30]line НДС 12% : 26.57 [11:29:30]line Наличными: 250.00 [11:29:30]line Безнал.: 0.00 [11:29:30]line Место: АЗС № 133 "Партнер Нефть" [11:29:30]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:29:30]line СНО: Общий режим [11:29:30]line Чек 230 20.10.2024 11:29 [11:29:30]line Смена: 533 ФФД: 1.0 [11:29:30]line ЗНМ: 0300000091 [11:29:30]line РНМ: 0000000000091685 [11:29:30]line Версия ККМ: 001 [11:29:30]line ФМ: 0000000000871839 [11:29:30]line ФД: 227382 [11:29:30]line ФПД: 107272500080556 [11:29:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112929&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227382&fm=107272500080556&tin=02508201610067®Number=0000000000091685&sum=25000 [11:29:30]OFD Sender: Processing packet 227382 [packets to send 38, broken 37] [11:29:30]ProducePacketName [11:29:30]name=ofd_packets/00227382 [11:29:30]OFD Sender: To server: pG, [11:29:30]CommunicateWithHost lk.salyk.kg:30040 [11:29:30]ConnectInit lk.salyk.kg [11:29:30]written 0, free lines is 4095 [11:29:30]Connected sock=10 [11:29: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 33 39 0F 01 00 00 FC AA 07 01 CF 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 99 E9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 36 78 03 00 35 04 06 00 61 90 53 42 EF AC 1C AD 1C 6E E7 43 54 2C [11:29: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 33 39 4F 00 00 00 7C C8 47 00 72 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 33 39 10 04 04 00 36 78 03 00 F4 03 04 00 98 94 14 67 B6 04 01 00 00 99 55 AF 33 5C D3 3B C2 [11:29:31]CommunicateWithHost err = 0 [11:29:31]CheckOFDResponse [11:29:31]1017 (14) - 77093643461234 [11:29:31]1041 (16) - 0000000000871839 [11:29:31]1040 (4) - 227382 [11:29:31]1012 (4) - 20.10.2024 05:26 [11:29:31]1206 (1) - 0 [11:29:31]OFD Sender: Remove packet 227382 [11:29:31]ProducePacketName [11:29:31]name=ofd_packets/00227382 [11:29:31]NVStorageDeleteData [11:29:31]Write to MH i2c: 01 00 00 61 0B 6C [11:29:31]Write i2c OK [11:29:31]MH_I2C_Read... [11:29:31]Read from MH i2c: 01 [11:29:31]MH_I2C_Read... [11:29:31]Read from MH i2c: 01 07 00 [11:29:31]MH_I2C_Read... [11:29:31]Read from MH i2c: 01 07 00 61 0B 00 00 00 00 00 02 0D 82 [11:29:31]RasterBufferAndPrint [11:29:31]line [11:29:31]line [11:29:31]line [11:29:31]line [11:29:31]line [11:29:31]written 0, free lines is 3336 [11:29:31]process_action close_receipt done [11:29:31]requested_data is exist [11:29:31]produce_requested_data [11:29:31]requested_item fm.sn is exist - process it [11:29:31]wFMCommunicate request_size=4 [11:29:31]MH_SAM_APDU [11:29:31]CAPDU: 80 11 00 00 [11:29:31]Write to MH i2c: E2 08 00 68 0B 80 11 00 00 00 00 00 00 ED [11:29:31]Write i2c OK [11:29:31]MH_I2C_Read... [11:29:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:31]Read from MH i2c: E2 [11:29:31]MH_I2C_Read... [11:29:31]Read from MH i2c: E2 17 00 [11:29:31]MH_I2C_Read... [11:29:31]Read from MH i2c: E2 17 00 68 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 44 [11:29:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:29:31]wFMCommunicate OK [11:29:31]requested_item fd.num is exist - process it [11:29:31]SAM_PROTO_GetFieldsCounters [11:29:31]wFMCommunicate request_size=4 [11:29:31]MH_SAM_APDU [11:29:31]CAPDU: 80 13 00 00 [11:29:31]Write to MH i2c: E2 08 00 69 0B 80 13 00 00 00 00 00 00 F0 [11:29:31]Write i2c OK [11:29:31]MH_I2C_Read... [11:29:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:29:31]Read from MH i2c: E2 [11:29:31]MH_I2C_Read... [11:29:31]Read from MH i2c: E2 62 00 [11:29:31]MH_I2C_Read... [11:29:31]Read from MH i2c: E2 62 00 69 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 36 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [11:29:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 36 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:29:31]wFMCommunicate OK [11:29:31]SAM_PROTO_GetFieldsCounters done [11:29:31]requested_item shift.num is exist - process it [11:29:31]requested_item shift.opened is exist - process it [11:29:31]req_shift_opened [11:29:31]FM_GetShiftState [11:29:31]SAM_PROTO_GetShiftState [11:29:31]wFMCommunicate request_size=4 [11:29:31]MH_SAM_APDU [11:29:31]CAPDU: 80 13 01 00 [11:29:31]Write to MH i2c: E2 08 00 6A 0B 80 13 01 00 00 00 00 00 F2 [11:29:31]Write i2c OK [11:29:31]MH_I2C_Read... [11:29:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:31]Read from MH i2c: E2 [11:29:31]MH_I2C_Read... [11:29:31]Read from MH i2c: E2 0E 00 [11:29:31]MH_I2C_Read... [11:29:31]Read from MH i2c: E2 0E 00 6A 0B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 0C [11:29:31]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:29:31]wFMCommunicate OK [11:29:31]SAM_PROTO_GetShiftState done [11:29:31]FM_GetShiftState done [11:29:31]req_shift_opened done [11:29:31]requested_item shift.open_date is exist - process it [11:29:31]req_shift_open_date [11:29:31]req_shift_open_date done [11:29:31]produce_requested_data done [11:29:31]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227382,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [11:29:31]process_action_free close_receipt [11:29:31]json_value_free [11:29:31]json_value_free done [11:29:31]process_json_proto returns [11:29:31]Send response to host [11:29:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227382,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [11:29:31]free response buf [11:29:31]execute_script done [11:29:31]execute_script returns [11:29:31]free content buf [11:29:31]Sock 9.Close socket [11:29:31]Sock 9.Thread stoped [11:29:31]OFD Sender: No OFD packet to send [11:29:36]OFD Sender: No OFD packet to send [11:29:41]OFD Sender: No OFD packet to send [11:29:46]OFD Sender: No OFD packet to send [11:29:51]OFD Sender: No OFD packet to send [11:29:56]OFD Sender: No OFD packet to send [11:30:00]accept exits with 8 [11:30:00]New connection [11:30:00]New thread 3066686820 created [11:30:00]Thread 3066543460 joined [11:30:00]Waiting for new connection... [11:30:00] Sock 8.Parse request [11:30:00]Sock 8.Check first char [11:30:00]Sock 8.First char is OK [11:30:00]request: POST /json_proto HTTP/1.0 [11:30:00]Method: POST [11:30:00]URL: /json_proto [11:30:00]Method is POST - this is cgi request [11:30:00]url: /json_proto [11:30:00]query_string will be loaded in cgi processing [11:30:00]execute_cgi json_proto POST (null) [11:30:00]execute_cgi path=json_proto method=POST [11:30:00]POST find Content-Length [11:30:00]Host: 172.17.44.195:8080 [11:30:00]Content-Length: 678 [11:30:00]Content-Type: application/json [11:30:00] [11:30:00]POST finish read [11:30:00]Found Content-Length = 678 [11:30:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962898", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:00]execute_script... [11:30: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)1962898", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:00]POST & json_proto [11:30:00]process_json_proto [11:30:00]json parsed OK: [11:30:00]protocol is kg_v1.0 [11:30:00]action value=close_receipt [11:30:00]process_action close_receipt [11:30:00]cmd_close_receipt [11:30:00]MH_GetDate [11:30:00]Write to MH i2c: F0 00 00 6B 0B 65 [11:30:00]Write i2c OK [11:30:00]MH_I2C_Read... [11:30:00]Read from MH i2c: F0 [11:30:00]MH_I2C_Read... [11:30:00]Read from MH i2c: F0 09 00 [11:30:00]MH_I2C_Read... [11:30:00]Read from MH i2c: F0 09 00 6B 0B 00 B9 E9 14 67 82 C9 CF 66 0B [11:30:00]GetLastDocTimeStamp 1729423769 [11:30:00]current date 1729423801 [11:30:00]FM_GetShiftState [11:30:00]SAM_PROTO_GetShiftState [11:30:00]wFMCommunicate request_size=4 [11:30:00]MH_SAM_APDU [11:30:00]CAPDU: 80 13 01 00 [11:30:00]Write to MH i2c: E2 08 00 6C 0B 80 13 01 00 00 00 00 00 F4 [11:30:00]Write i2c OK [11:30:00]MH_I2C_Read... [11:30:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:00]Read from MH i2c: E2 [11:30:00]MH_I2C_Read... [11:30:00]Read from MH i2c: E2 0E 00 [11:30:00]MH_I2C_Read... [11:30:00]Read from MH i2c: E2 0E 00 6C 0B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 0E [11:30:00]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:30:00]wFMCommunicate OK [11:30:00]SAM_PROTO_GetShiftState done [11:30:00]FM_GetShiftState done [11:30:00]opened in 1729383750 [11:30:00]opened+sec_in_day 1729470150 [11:30:00]quantity*price = 20003 [11:30:00]sum+1 = 20004 [11:30:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 231 20.10.2024 11:30 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227383 ФПД: 101401035390157 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113001&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227383&fm=101401035390157&tin=02508201610067®Number=0000000000091685&sum=20000 [11:30:01]StoreToDocumentArchive [11:30:01]shift 533 fd 227383 [11:30:01]save to /storage/0533/doc_00227383 [11:30:01]save last doc name /storage/0533/doc_00227383 to /storage/kkm_last_doc_name [11:30:01]save OK [11:30:01]Clear old archive folders... [11:30:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:30:01]tlvbuf is 0188D7B0 [11:30:01]SAM_PROTO_ClearQueue [11:30:01]wFMCommunicate request_size=4 [11:30:01]MH_SAM_APDU [11:30:01]CAPDU: 80 09 00 00 [11:30:01]Write to MH i2c: E2 08 00 79 0B 80 09 00 00 00 00 00 00 F6 [11:30:01]Write i2c OK [11:30:01]MH_I2C_Read... [11:30:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:30:01]Read from MH i2c: E2 [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: E2 03 00 [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: E2 03 00 79 0B 00 90 00 F8 [11:30:01]RAPDU: 90 00 [11:30:01]wFMCommunicate OK [11:30:01]SAM_PROTO_ClearQueue done [11:30:01]KKMCreateOFDPacket [11:30:01]OFDProtocolAddRootSTLVToBuf [11:30:01]FM_MakeSignedData [11:30:01]FM_MakeSignedData [11:30:01]SAM_PROTO_SignData [11:30:01]wFMCommunicate request_size=4 [11:30:01]MH_SAM_APDU [11:30:01]CAPDU: 80 0D 01 02 [11:30:01]Write to MH i2c: E2 08 00 7A 0B 80 0D 01 02 00 00 00 00 FE [11:30:01]Write i2c OK [11:30:01]MH_I2C_Read... [11:30:01]OFD Sender: No OFD packet to send [11:30:01]Read from MH i2c: E2 [11:30:01]MH_I2C_Read... [11:30:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:30:01]Read from MH i2c: E2 03 00 [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: E2 03 00 7A 0B 00 90 00 F9 [11:30:01]RAPDU: 90 00 [11:30:01]wFMCommunicate OK [11:30:01]wFMCommunicate request_size=255 [11:30:01]MH_SAM_APDU [11:30:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 B9 E9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 37 78 03 00 35 04 06 00 5C [11:30:01]Write to MH i2c: E2 02 01 7B 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 B9 E9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 37 78 03 00 35 04 06 00 5C 00 00 80 [11:30:01]Write i2c OK [11:30:01]MH_I2C_Read... [11:30:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:02]Read from MH i2c: E2 [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: E2 03 00 [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: E2 03 00 7B 0B 00 90 00 FA [11:30:02]RAPDU: 90 00 [11:30:02]wFMCommunicate OK [11:30:02]wFMCommunicate request_size=10 [11:30:02]MH_SAM_APDU [11:30:02]CAPDU: 80 0D 02 02 05 39 44 B1 BC CD [11:30:02]Write to MH i2c: E2 0D 00 7C 0B 80 0D 02 02 05 00 39 44 B1 BC CD 00 00 C2 [11:30:02]Write i2c OK [11:30:02]MH_I2C_Read... [11:30:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:02]Read from MH i2c: E2 [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: E2 03 00 [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: E2 03 00 7C 0B 00 90 00 FB [11:30:02]RAPDU: 90 00 [11:30:02]wFMCommunicate OK [11:30:02]wFMCommunicate request_size=4 [11:30:02]MH_SAM_APDU [11:30:02]CAPDU: 80 0D 03 02 [11:30:02]Write to MH i2c: E2 08 00 7D 0B 80 0D 03 02 00 00 00 00 03 [11:30:02]Write i2c OK [11:30:02]MH_I2C_Read... [11:30:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:30:02]Read from MH i2c: E2 [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: E2 0B 00 [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: E2 0B 00 7D 0B 00 50 03 CD 64 A5 2F AE EE 90 00 F8 [11:30:02]RAPDU: 50 03 CD 64 A5 2F AE EE 90 00 [11:30:02]wFMCommunicate OK [11:30:02]SAM_PROTO_SignData done [11:30:02]FM_MakeSignedData done [11:30:02]CreateOFDProtocolMessage [11:30:02]wFMCommunicate request_size=4 [11:30:02]MH_SAM_APDU [11:30:02]CAPDU: 80 11 00 00 [11:30:02]Write to MH i2c: E2 08 00 7E 0B 80 11 00 00 00 00 00 00 03 [11:30:02]Write i2c OK [11:30:02]MH_I2C_Read... [11:30:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:02]Read from MH i2c: E2 [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: E2 17 00 [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: E2 17 00 7E 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 5A [11:30:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:30:02]wFMCommunicate OK [11:30:02]CreateOFDProtocolMessage done [11:30:02]OFDSenderStorePacket 227383 [11:30:02]StoreOFDPacket docnum=227383 [11:30:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 A2 1F 07 01 1E 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 B9 E9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 37 78 03 00 35 04 06 00 5C 39 44 B1 BC CD 50 03 CD 64 A5 2F AE EE [11:30:02]CheckFolder [11:30:02]dirname=/storage/ofd_packets [11:30:02]CheckFolder done [11:30:02]ProducePacketName [11:30:02]name=ofd_packets/00227383 [11:30:02]NVStorageSaveData ofd_packets/00227383 [11:30:02]File name is /storage/ofd_packets/00227383 [11:30:02]Write 301 bytes [11:30:02]NVStorageSaveData done [11:30:02]OFDSenderStorePacket done [11:30:02]KKMCreateOFDPacket done [11:30:02]NVStorageSaveData kkm_last_timestamp [11:30:02]File name is /storage/kkm_last_timestamp [11:30:02]Write 4 bytes [11:30:02]NVStorageSaveData done [11:30:02]ExternCall_PrintAddStr [11:30:02]wPrintStart [11:30:02]Write to MH i2c: 01 00 00 7F 0B 8A [11:30:02]Write i2c OK [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: 01 [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: 01 07 00 [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: 01 07 00 7F 0B 00 00 00 00 00 FF 0F 9F [11:30:02]RasterBufferAndPrint [11:30:02]line Счет N : (1)1962898 [11:30:02]line ИНН: 02508201610067 [11:30:02]line Контрольно-Кассовый Чек [11:30:02]line ПРОДАЖА [11:30:02]line ТРК (МРК, ГНК) : 43 [11:30:02]line Товар: 2710124130 [11:30:02]line Аи-92-К-5 [11:30:02]line 2.990 * 66.90 [11:30:02]line = 200.03 [11:30:02]line НДС 12% НСП 1% [11:30:02]line > о реализуемом товаре [11:30:02]line ОКРУГЛЕНИЕ: -0.03 [11:30:02]line ИТОГО: 200.00 [11:30:02]line Внесено: 200.00 [11:30:02]line СДАЧА: 0.00 [11:30:02]line НСП 1% : 1.77 [11:30:02]line НДС 12% : 21.24 [11:30:02]line Наличными: 200.00 [11:30:02]line Безнал.: 0.00 [11:30:02]line Место: АЗС № 133 "Партнер Нефть" [11:30:02]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:30:02]line СНО: Общий режим [11:30:02]line Чек 231 20.10.2024 11:30 [11:30:02]line Смена: 533 ФФД: 1.0 [11:30:02]line ЗНМ: 0300000091 [11:30:02]line РНМ: 0000000000091685 [11:30:02]line Версия ККМ: 001 [11:30:02]line ФМ: 0000000000871839 [11:30:02]line ФД: 227383 [11:30:02]line ФПД: 101401035390157 [11:30:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113001&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227383&fm=101401035390157&tin=02508201610067®Number=0000000000091685&sum=20000 [11:30:02]OFD Sender: Processing packet 227383 [packets to send 38, broken 37] [11:30:02]ProducePacketName [11:30:02]name=ofd_packets/00227383 [11:30:02]OFD Sender: To server: pG, [11:30:02]CommunicateWithHost lk.salyk.kg:30040 [11:30:02]ConnectInit lk.salyk.kg [11:30:02]written 0, free lines is 4095 [11:30:02]Connected sock=10 [11:30:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 A2 1F 07 01 1E 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 B9 E9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 37 78 03 00 35 04 06 00 5C 39 44 B1 BC CD 50 03 CD 64 A5 2F AE EE [11:30: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 33 39 4F 00 00 00 DA 29 47 00 32 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 37 78 03 00 F4 03 04 00 B8 94 14 67 B6 04 01 00 00 B0 4D 84 D8 0E 73 1B D2 [11:30:02]CommunicateWithHost err = 0 [11:30:02]CheckOFDResponse [11:30:02]1017 (14) - 77093643461234 [11:30:02]1041 (16) - 0000000000871839 [11:30:02]1040 (4) - 227383 [11:30:02]1012 (4) - 20.10.2024 05:27 [11:30:02]1206 (1) - 0 [11:30:02]OFD Sender: Remove packet 227383 [11:30:02]ProducePacketName [11:30:02]name=ofd_packets/00227383 [11:30:02]NVStorageDeleteData [11:30:03]Write to MH i2c: 01 00 00 A9 0B B4 [11:30:03]Write i2c OK [11:30:03]MH_I2C_Read... [11:30:03]Read from MH i2c: 01 [11:30:03]MH_I2C_Read... [11:30:03]Read from MH i2c: 01 07 00 [11:30:03]MH_I2C_Read... [11:30:03]Read from MH i2c: 01 07 00 A9 0B 00 00 00 00 00 02 0D CA [11:30:03]RasterBufferAndPrint [11:30:03]line [11:30:03]line [11:30:03]line [11:30:03]line [11:30:03]line [11:30:03]written 0, free lines is 3336 [11:30:03]process_action close_receipt done [11:30:03]requested_data is exist [11:30:03]produce_requested_data [11:30:03]requested_item fm.sn is exist - process it [11:30:03]wFMCommunicate request_size=4 [11:30:03]MH_SAM_APDU [11:30:03]CAPDU: 80 11 00 00 [11:30:03]Write to MH i2c: E2 08 00 B0 0B 80 11 00 00 00 00 00 00 35 [11:30:03]Write i2c OK [11:30:03]MH_I2C_Read... [11:30:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:03]Read from MH i2c: E2 [11:30:03]MH_I2C_Read... [11:30:03]Read from MH i2c: E2 17 00 [11:30:03]MH_I2C_Read... [11:30:03]Read from MH i2c: E2 17 00 B0 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 8C [11:30:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:30:03]wFMCommunicate OK [11:30:03]requested_item fd.num is exist - process it [11:30:03]SAM_PROTO_GetFieldsCounters [11:30:03]wFMCommunicate request_size=4 [11:30:03]MH_SAM_APDU [11:30:03]CAPDU: 80 13 00 00 [11:30:03]Write to MH i2c: E2 08 00 B1 0B 80 13 00 00 00 00 00 00 38 [11:30:03]Write i2c OK [11:30:03]MH_I2C_Read... [11:30:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:30:03]Read from MH i2c: E2 [11:30:03]MH_I2C_Read... [11:30:03]Read from MH i2c: E2 62 00 [11:30:03]MH_I2C_Read... [11:30:03]Read from MH i2c: E2 62 00 B1 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 37 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [11:30:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 37 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:30:03]wFMCommunicate OK [11:30:03]SAM_PROTO_GetFieldsCounters done [11:30:03]requested_item shift.num is exist - process it [11:30:03]requested_item shift.opened is exist - process it [11:30:03]req_shift_opened [11:30:03]FM_GetShiftState [11:30:03]SAM_PROTO_GetShiftState [11:30:03]wFMCommunicate request_size=4 [11:30:03]MH_SAM_APDU [11:30:03]CAPDU: 80 13 01 00 [11:30:03]Write to MH i2c: E2 08 00 B2 0B 80 13 01 00 00 00 00 00 3A [11:30:03]Write i2c OK [11:30:03]MH_I2C_Read... [11:30:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:03]Read from MH i2c: E2 [11:30:03]MH_I2C_Read... [11:30:03]Read from MH i2c: E2 0E 00 [11:30:03]MH_I2C_Read... [11:30:03]Read from MH i2c: E2 0E 00 B2 0B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 54 [11:30:03]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:30:03]wFMCommunicate OK [11:30:03]SAM_PROTO_GetShiftState done [11:30:03]FM_GetShiftState done [11:30:03]req_shift_opened done [11:30:03]requested_item shift.open_date is exist - process it [11:30:03]req_shift_open_date [11:30:03]req_shift_open_date done [11:30:03]produce_requested_data done [11:30:03]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227383,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [11:30:03]process_action_free close_receipt [11:30:03]json_value_free [11:30:03]json_value_free done [11:30:03]process_json_proto returns [11:30:03]Send response to host [11:30:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227383,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [11:30:03]free response buf [11:30:03]execute_script done [11:30:03]execute_script returns [11:30:03]free content buf [11:30:03]Sock 8.Close socket [11:30:03]Sock 8.Thread stoped [11:30:03]OFD Sender: No OFD packet to send [11:30:08]OFD Sender: No OFD packet to send [11:30:13]OFD Sender: No OFD packet to send [11:30:18]OFD Sender: No OFD packet to send [11:30:23]OFD Sender: No OFD packet to send [11:30:28]OFD Sender: No OFD packet to send [11:30:33]OFD Sender: No OFD packet to send [11:30:38]OFD Sender: No OFD packet to send [11:30:43]OFD Sender: No OFD packet to send [11:30:48]OFD Sender: No OFD packet to send [11:30:53]OFD Sender: No OFD packet to send [11:30:58]OFD Sender: No OFD packet to send [11:31:03]OFD Sender: No OFD packet to send [11:31:08]OFD Sender: No OFD packet to send [11:31:08]accept exits with 9 [11:31:08]New connection [11:31:08]New thread 3066543460 created [11:31:08]Thread 3066686820 joined [11:31:08]Waiting for new connection... [11:31:08] Sock 9.Parse request [11:31:08]Sock 9.Check first char [11:31:08]Sock 9.First char is OK [11:31:08]request: POST /json_proto HTTP/1.0 [11:31:08]Method: POST [11:31:08]URL: /json_proto [11:31:08]Method is POST - this is cgi request [11:31:08]url: /json_proto [11:31:08]query_string will be loaded in cgi processing [11:31:08]execute_cgi json_proto POST (null) [11:31:08]execute_cgi path=json_proto method=POST [11:31:08]POST find Content-Length [11:31:08]Host: 172.17.44.195:8080 [11:31:08]Content-Length: 678 [11:31:08]Content-Type: application/json [11:31:08] [11:31:08]POST finish read [11:31:08]Found Content-Length = 678 [11:31:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962899", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:31:08]execute_script... [11:31:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962899", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:31:08]POST & json_proto [11:31:08]process_json_proto [11:31:08]json parsed OK: [11:31:08]protocol is kg_v1.0 [11:31:08]action value=close_receipt [11:31:08]process_action close_receipt [11:31:08]cmd_close_receipt [11:31:08]MH_GetDate [11:31:08]Write to MH i2c: F0 00 00 B3 0B AD [11:31:08]Write i2c OK [11:31:08]MH_I2C_Read... [11:31:08]Read from MH i2c: F0 [11:31:08]MH_I2C_Read... [11:31:08]Read from MH i2c: F0 09 00 [11:31:08]MH_I2C_Read... [11:31:08]Read from MH i2c: F0 09 00 B3 0B 00 FD E9 14 67 82 C9 CF 66 97 [11:31:08]GetLastDocTimeStamp 1729423801 [11:31:08]current date 1729423869 [11:31:08]FM_GetShiftState [11:31:08]SAM_PROTO_GetShiftState [11:31:08]wFMCommunicate request_size=4 [11:31:08]MH_SAM_APDU [11:31:08]CAPDU: 80 13 01 00 [11:31:08]Write to MH i2c: E2 08 00 B4 0B 80 13 01 00 00 00 00 00 3C [11:31:08]Write i2c OK [11:31:08]MH_I2C_Read... [11:31:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:08]Read from MH i2c: E2 [11:31:08]MH_I2C_Read... [11:31:08]Read from MH i2c: E2 0E 00 [11:31:08]MH_I2C_Read... [11:31:08]Read from MH i2c: E2 0E 00 B4 0B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 56 [11:31:08]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:31:08]wFMCommunicate OK [11:31:08]SAM_PROTO_GetShiftState done [11:31:08]FM_GetShiftState done [11:31:08]opened in 1729383750 [11:31:08]opened+sec_in_day 1729470150 [11:31:08]quantity*price = 50010 [11:31:08]sum+1 = 50012 [11:31:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 232 20.10.2024 11:31 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227384 ФПД: 107553725471726 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113109&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227384&fm=107553725471726&tin=02508201610067®Number=0000000000091685&sum=50000 [11:31:09]StoreToDocumentArchive [11:31:09]shift 533 fd 227384 [11:31:09]save to /storage/0533/doc_00227384 [11:31:09]save last doc name /storage/0533/doc_00227384 to /storage/kkm_last_doc_name [11:31:09]save OK [11:31:09]Clear old archive folders... [11:31:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:31:09]tlvbuf is 0184A7F0 [11:31:09]SAM_PROTO_ClearQueue [11:31:09]wFMCommunicate request_size=4 [11:31:09]MH_SAM_APDU [11:31:09]CAPDU: 80 09 00 00 [11:31:09]Write to MH i2c: E2 08 00 C1 0B 80 09 00 00 00 00 00 00 3E [11:31:09]Write i2c OK [11:31:09]MH_I2C_Read... [11:31:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:31:10]Read from MH i2c: E2 [11:31:10]MH_I2C_Read... [11:31:10]Read from MH i2c: E2 03 00 [11:31:10]MH_I2C_Read... [11:31:10]Read from MH i2c: E2 03 00 C1 0B 00 90 00 40 [11:31:10]RAPDU: 90 00 [11:31:10]wFMCommunicate OK [11:31:10]SAM_PROTO_ClearQueue done [11:31:10]KKMCreateOFDPacket [11:31:10]OFDProtocolAddRootSTLVToBuf [11:31:10]FM_MakeSignedData [11:31:10]FM_MakeSignedData [11:31:10]SAM_PROTO_SignData [11:31:10]wFMCommunicate request_size=4 [11:31:10]MH_SAM_APDU [11:31:10]CAPDU: 80 0D 01 02 [11:31:10]Write to MH i2c: E2 08 00 C2 0B 80 0D 01 02 00 00 00 00 46 [11:31:10]Write i2c OK [11:31:10]MH_I2C_Read... [11:31:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:31:10]Read from MH i2c: E2 [11:31:10]MH_I2C_Read... [11:31:10]Read from MH i2c: E2 03 00 [11:31:10]MH_I2C_Read... [11:31:10]Read from MH i2c: E2 03 00 C2 0B 00 90 00 41 [11:31:10]RAPDU: 90 00 [11:31:10]wFMCommunicate OK [11:31:10]wFMCommunicate request_size=255 [11:31:10]MH_SAM_APDU [11:31:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 FD E9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 38 78 03 00 35 04 06 00 61 [11:31:10]Write to MH i2c: E2 02 01 C3 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 FD E9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 38 78 03 00 35 04 06 00 61 00 00 29 [11:31:10]Write i2c OK [11:31:10]MH_I2C_Read... [11:31:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:31:10]Read from MH i2c: E2 [11:31:10]MH_I2C_Read... [11:31:10]Read from MH i2c: E2 03 00 [11:31:10]MH_I2C_Read... [11:31:10]Read from MH i2c: E2 03 00 C3 0B 00 90 00 42 [11:31:10]RAPDU: 90 00 [11:31:10]wFMCommunicate OK [11:31:10]wFMCommunicate request_size=10 [11:31:10]MH_SAM_APDU [11:31:10]CAPDU: 80 0D 02 02 05 D1 CD 99 DB EE [11:31:10]Write to MH i2c: E2 0D 00 C4 0B 80 0D 02 02 05 00 D1 CD 99 DB EE 00 00 53 [11:31:10]Write i2c OK [11:31:10]MH_I2C_Read... [11:31:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:31:10]Read from MH i2c: E2 [11:31:10]MH_I2C_Read... [11:31:10]Read from MH i2c: E2 03 00 [11:31:10]MH_I2C_Read... [11:31:10]Read from MH i2c: E2 03 00 C4 0B 00 90 00 43 [11:31:10]RAPDU: 90 00 [11:31:10]wFMCommunicate OK [11:31:10]wFMCommunicate request_size=4 [11:31:10]MH_SAM_APDU [11:31:10]CAPDU: 80 0D 03 02 [11:31:10]Write to MH i2c: E2 08 00 C5 0B 80 0D 03 02 00 00 00 00 4B [11:31:10]Write i2c OK [11:31:10]MH_I2C_Read... [11:31:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:31:10]Read from MH i2c: E2 [11:31:10]MH_I2C_Read... [11:31:10]Read from MH i2c: E2 0B 00 [11:31:10]MH_I2C_Read... [11:31:10]Read from MH i2c: E2 0B 00 C5 0B 00 E9 2F BD 8B F2 AE AE 86 90 00 80 [11:31:10]RAPDU: E9 2F BD 8B F2 AE AE 86 90 00 [11:31:10]wFMCommunicate OK [11:31:10]SAM_PROTO_SignData done [11:31:10]FM_MakeSignedData done [11:31:10]CreateOFDProtocolMessage [11:31:10]wFMCommunicate request_size=4 [11:31:10]MH_SAM_APDU [11:31:10]CAPDU: 80 11 00 00 [11:31:10]Write to MH i2c: E2 08 00 C6 0B 80 11 00 00 00 00 00 00 4B [11:31:10]Write i2c OK [11:31:10]MH_I2C_Read... [11:31:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:10]Read from MH i2c: E2 [11:31:10]MH_I2C_Read... [11:31:10]Read from MH i2c: E2 17 00 [11:31:10]MH_I2C_Read... [11:31:10]Read from MH i2c: E2 17 00 C6 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A2 [11:31:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:31:10]wFMCommunicate OK [11:31:10]CreateOFDProtocolMessage done [11:31:10]OFDSenderStorePacket 227384 [11:31:10]StoreOFDPacket docnum=227384 [11:31:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 F1 52 07 01 BD 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 FD E9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 38 78 03 00 35 04 06 00 61 D1 CD 99 DB EE E9 2F BD 8B F2 AE AE 86 [11:31:10]CheckFolder [11:31:10]dirname=/storage/ofd_packets [11:31:10]CheckFolder done [11:31:10]ProducePacketName [11:31:10]name=ofd_packets/00227384 [11:31:10]NVStorageSaveData ofd_packets/00227384 [11:31:10]File name is /storage/ofd_packets/00227384 [11:31:10]Write 301 bytes [11:31:10]NVStorageSaveData done [11:31:10]OFDSenderStorePacket done [11:31:10]KKMCreateOFDPacket done [11:31:10]NVStorageSaveData kkm_last_timestamp [11:31:10]File name is /storage/kkm_last_timestamp [11:31:10]Write 4 bytes [11:31:10]NVStorageSaveData done [11:31:10]ExternCall_PrintAddStr [11:31:10]wPrintStart [11:31:10]Write to MH i2c: 01 00 00 C7 0B D2 [11:31:10]Write i2c OK [11:31:10]MH_I2C_Read... [11:31:10]Read from MH i2c: 01 [11:31:10]MH_I2C_Read... [11:31:10]Read from MH i2c: 01 07 00 [11:31:10]MH_I2C_Read... [11:31:10]Read from MH i2c: 01 07 00 C7 0B 00 00 00 00 00 FF 0F E7 [11:31:10]RasterBufferAndPrint [11:31:10]line Счет N : (1)1962899 [11:31:10]line ИНН: 02508201610067 [11:31:10]line Контрольно-Кассовый Чек [11:31:10]line ПРОДАЖА [11:31:10]line ТРК (МРК, ГНК) : 34 [11:31:10]line Товар: 2710124500 [11:31:10]line Аи-95-К-5 [11:31:10]line 6.740 * 74.20 [11:31:10]line = 500.11 [11:31:10]line НДС 12% НСП 1% [11:31:10]line > о реализуемом товаре [11:31:10]line ОКРУГЛЕНИЕ: -0.11 [11:31:10]line ИТОГО: 500.00 [11:31:10]line Внесено: 500.00 [11:31:10]line СДАЧА: 0.00 [11:31:10]line НСП 1% : 4.43 [11:31:10]line НДС 12% : 53.11 [11:31:10]line Наличными: 500.00 [11:31:10]line Безнал.: 0.00 [11:31:10]line Место: АЗС № 133 "Партнер Нефть" [11:31:10]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:31:10]line СНО: Общий режим [11:31:10]line Чек 232 20.10.2024 11:31 [11:31:10]line Смена: 533 ФФД: 1.0 [11:31:10]line ЗНМ: 0300000091 [11:31:10]line РНМ: 0000000000091685 [11:31:10]line Версия ККМ: 001 [11:31:10]line ФМ: 0000000000871839 [11:31:10]line ФД: 227384 [11:31:10]line ФПД: 107553725471726 [11:31:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113109&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227384&fm=107553725471726&tin=02508201610067®Number=0000000000091685&sum=50000 [11:31:10]OFD Sender: Processing packet 227384 [packets to send 38, broken 37] [11:31:10]ProducePacketName [11:31:10]name=ofd_packets/00227384 [11:31:10]OFD Sender: To server: pG, [11:31:10]CommunicateWithHost lk.salyk.kg:30040 [11:31:10]ConnectInit lk.salyk.kg [11:31:10]written 0, free lines is 4095 [11:31:10]Connected sock=10 [11:31:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 F1 52 07 01 BD 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 FD E9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 38 78 03 00 35 04 06 00 61 D1 CD 99 DB EE E9 2F BD 8B F2 AE AE 86 [11:31: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 33 39 4F 00 00 00 98 D3 47 00 AB 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 33 39 10 04 04 00 38 78 03 00 F4 03 04 00 FC 94 14 67 B6 04 01 00 00 75 E8 2E 18 C2 37 01 12 [11:31:11]CommunicateWithHost err = 0 [11:31:11]CheckOFDResponse [11:31:11]1017 (14) - 77093643461234 [11:31:11]1041 (16) - 0000000000871839 [11:31:11]1040 (4) - 227384 [11:31:11]1012 (4) - 20.10.2024 05:28 [11:31:11]1206 (1) - 0 [11:31:11]OFD Sender: Remove packet 227384 [11:31:11]ProducePacketName [11:31:11]name=ofd_packets/00227384 [11:31:11]NVStorageDeleteData [11:31:11]Write to MH i2c: 01 00 00 F1 0B FC [11:31:11]Write i2c OK [11:31:11]MH_I2C_Read... [11:31:11]Read from MH i2c: 01 [11:31:11]MH_I2C_Read... [11:31:11]Read from MH i2c: 01 07 00 [11:31:11]MH_I2C_Read... [11:31:11]Read from MH i2c: 01 07 00 F1 0B 00 00 00 00 00 02 0D 12 [11:31:11]RasterBufferAndPrint [11:31:11]line [11:31:11]line [11:31:11]line [11:31:11]line [11:31:11]line [11:31:11]written 0, free lines is 3336 [11:31:11]process_action close_receipt done [11:31:11]requested_data is exist [11:31:11]produce_requested_data [11:31:11]requested_item fm.sn is exist - process it [11:31:11]wFMCommunicate request_size=4 [11:31:11]MH_SAM_APDU [11:31:11]CAPDU: 80 11 00 00 [11:31:11]Write to MH i2c: E2 08 00 F8 0B 80 11 00 00 00 00 00 00 7D [11:31:11]Write i2c OK [11:31:11]MH_I2C_Read... [11:31:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:11]Read from MH i2c: E2 [11:31:11]MH_I2C_Read... [11:31:11]Read from MH i2c: E2 17 00 [11:31:11]MH_I2C_Read... [11:31:11]Read from MH i2c: E2 17 00 F8 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D4 [11:31:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:31:11]wFMCommunicate OK [11:31:11]requested_item fd.num is exist - process it [11:31:11]SAM_PROTO_GetFieldsCounters [11:31:11]wFMCommunicate request_size=4 [11:31:11]MH_SAM_APDU [11:31:11]CAPDU: 80 13 00 00 [11:31:11]Write to MH i2c: E2 08 00 F9 0B 80 13 00 00 00 00 00 00 80 [11:31:11]Write i2c OK [11:31:11]MH_I2C_Read... [11:31:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:31:11]Read from MH i2c: E2 [11:31:11]MH_I2C_Read... [11:31:11]Read from MH i2c: E2 62 00 [11:31:11]MH_I2C_Read... [11:31:11]Read from MH i2c: E2 62 00 F9 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 38 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [11:31: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 38 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:31:11]wFMCommunicate OK [11:31:11]SAM_PROTO_GetFieldsCounters done [11:31:11]requested_item shift.num is exist - process it [11:31:11]requested_item shift.opened is exist - process it [11:31:11]req_shift_opened [11:31:11]FM_GetShiftState [11:31:11]SAM_PROTO_GetShiftState [11:31:11]wFMCommunicate request_size=4 [11:31:11]MH_SAM_APDU [11:31:11]CAPDU: 80 13 01 00 [11:31:11]Write to MH i2c: E2 08 00 FA 0B 80 13 01 00 00 00 00 00 82 [11:31:11]Write i2c OK [11:31:11]MH_I2C_Read... [11:31:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:11]Read from MH i2c: E2 [11:31:11]MH_I2C_Read... [11:31:11]Read from MH i2c: E2 0E 00 [11:31:11]MH_I2C_Read... [11:31:11]Read from MH i2c: E2 0E 00 FA 0B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 9C [11:31:11]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:31:11]wFMCommunicate OK [11:31:11]SAM_PROTO_GetShiftState done [11:31:11]FM_GetShiftState done [11:31:11]req_shift_opened done [11:31:11]requested_item shift.open_date is exist - process it [11:31:11]req_shift_open_date [11:31:11]req_shift_open_date done [11:31:11]produce_requested_data done [11:31:11]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227384,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [11:31:11]process_action_free close_receipt [11:31:11]json_value_free [11:31:11]json_value_free done [11:31:11]process_json_proto returns [11:31:11]Send response to host [11:31:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227384,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [11:31:11]free response buf [11:31:11]execute_script done [11:31:11]execute_script returns [11:31:11]free content buf [11:31:11]Sock 9.Close socket [11:31:11]Sock 9.Thread stoped [11:31:11]OFD Sender: No OFD packet to send [11:31:11]accept exits with 8 [11:31:11]New connection [11:31:11]New thread 3066686820 created [11:31:11]Thread 3066543460 joined [11:31:11]Waiting for new connection... [11:31:11] Sock 8.Parse request [11:31:11]Sock 8.Check first char [11:31:11]Sock 8.First char is OK [11:31:11]request: POST /json_proto HTTP/1.0 [11:31:11]Method: POST [11:31:11]URL: /json_proto [11:31:11]Method is POST - this is cgi request [11:31:11]url: /json_proto [11:31:11]query_string will be loaded in cgi processing [11:31:11]execute_cgi json_proto POST (null) [11:31:11]execute_cgi path=json_proto method=POST [11:31:11]POST find Content-Length [11:31:11]Host: 172.17.44.195:8080 [11:31:11]Content-Length: 678 [11:31:11]Content-Type: application/json [11:31:11] [11:31:11]POST finish read [11:31:11]Found Content-Length = 678 [11:31:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962900", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 2.700, "sum" : 200.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:31:11]execute_script... [11:31:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962900", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 2.700, "sum" : 200.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:31:11]POST & json_proto [11:31:11]process_json_proto [11:31:11]json parsed OK: [11:31:11]protocol is kg_v1.0 [11:31:11]action value=close_receipt [11:31:11]process_action close_receipt [11:31:11]cmd_close_receipt [11:31:11]MH_GetDate [11:31:11]Write to MH i2c: F0 00 00 FB 0B F5 [11:31:11]Write i2c OK [11:31:11]MH_I2C_Read... [11:31:11]Read from MH i2c: F0 [11:31:11]MH_I2C_Read... [11:31:11]Read from MH i2c: F0 09 00 [11:31:11]MH_I2C_Read... [11:31:11]Read from MH i2c: F0 09 00 FB 0B 00 00 EA 14 67 82 C9 CF 66 E3 [11:31:11]GetLastDocTimeStamp 1729423869 [11:31:11]current date 1729423872 [11:31:11]FM_GetShiftState [11:31:11]SAM_PROTO_GetShiftState [11:31:11]wFMCommunicate request_size=4 [11:31:11]MH_SAM_APDU [11:31:11]CAPDU: 80 13 01 00 [11:31:11]Write to MH i2c: E2 08 00 FC 0B 80 13 01 00 00 00 00 00 84 [11:31:11]Write i2c OK [11:31:11]MH_I2C_Read... [11:31:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:11]Read from MH i2c: E2 [11:31:11]MH_I2C_Read... [11:31:11]Read from MH i2c: E2 0E 00 [11:31:11]MH_I2C_Read... [11:31:11]Read from MH i2c: E2 0E 00 FC 0B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 9E [11:31:11]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:31:11]wFMCommunicate OK [11:31:11]SAM_PROTO_GetShiftState done [11:31:11]FM_GetShiftState done [11:31:11]opened in 1729383750 [11:31:11]opened+sec_in_day 1729470150 [11:31:11]quantity*price = 20034 [11:31:11]sum+1 = 20035 [11:31:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.27 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 233 20.10.2024 11:31 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227385 ФПД: 236718928722692 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113112&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227385&fm=236718928722692&tin=02508201610067®Number=0000000000091685&sum=20000 [11:31:13]StoreToDocumentArchive [11:31:13]shift 533 fd 227385 [11:31:13]save to /storage/0533/doc_00227385 [11:31:13]save last doc name /storage/0533/doc_00227385 to /storage/kkm_last_doc_name [11:31:13]save OK [11:31:13]Clear old archive folders... [11:31:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:31:13]tlvbuf is 019655D0 [11:31:13]SAM_PROTO_ClearQueue [11:31:13]wFMCommunicate request_size=4 [11:31:13]MH_SAM_APDU [11:31:13]CAPDU: 80 09 00 00 [11:31:13]Write to MH i2c: E2 08 00 09 0C 80 09 00 00 00 00 00 00 87 [11:31:13]Write i2c OK [11:31:13]MH_I2C_Read... [11:31:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:31:13]Read from MH i2c: E2 [11:31:13]MH_I2C_Read... [11:31:13]Read from MH i2c: E2 03 00 [11:31:13]MH_I2C_Read... [11:31:13]Read from MH i2c: E2 03 00 09 0C 00 90 00 89 [11:31:13]RAPDU: 90 00 [11:31:13]wFMCommunicate OK [11:31:13]SAM_PROTO_ClearQueue done [11:31:13]KKMCreateOFDPacket [11:31:13]OFDProtocolAddRootSTLVToBuf [11:31:13]FM_MakeSignedData [11:31:13]FM_MakeSignedData [11:31:13]SAM_PROTO_SignData [11:31:13]wFMCommunicate request_size=4 [11:31:13]MH_SAM_APDU [11:31:13]CAPDU: 80 0D 01 02 [11:31:13]Write to MH i2c: E2 08 00 0A 0C 80 0D 01 02 00 00 00 00 8F [11:31:13]Write i2c OK [11:31:13]MH_I2C_Read... [11:31:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:31:13]Read from MH i2c: E2 [11:31:13]MH_I2C_Read... [11:31:13]Read from MH i2c: E2 03 00 [11:31:13]MH_I2C_Read... [11:31:13]Read from MH i2c: E2 03 00 0A 0C 00 90 00 8A [11:31:13]RAPDU: 90 00 [11:31:13]wFMCommunicate OK [11:31:13]wFMCommunicate request_size=255 [11:31:13]MH_SAM_APDU [11:31:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8C 0A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 E9 00 00 00 F4 03 04 00 00 EA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 39 78 03 00 35 04 06 00 D7 [11:31:13]Write to MH i2c: E2 02 01 0B 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 8C 0A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 E9 00 00 00 F4 03 04 00 00 EA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 39 78 03 00 35 04 06 00 D7 00 00 B7 [11:31:13]Write i2c OK [11:31:13]MH_I2C_Read... [11:31:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:31:13]Read from MH i2c: E2 [11:31:13]MH_I2C_Read... [11:31:13]Read from MH i2c: E2 03 00 [11:31:13]MH_I2C_Read... [11:31:13]Read from MH i2c: E2 03 00 0B 0C 00 90 00 8B [11:31:13]RAPDU: 90 00 [11:31:13]wFMCommunicate OK [11:31:13]wFMCommunicate request_size=10 [11:31:13]MH_SAM_APDU [11:31:13]CAPDU: 80 0D 02 02 05 4B 6B A8 7B 04 [11:31:13]Write to MH i2c: E2 0D 00 0C 0C 80 0D 02 02 05 00 4B 6B A8 7B 04 00 00 79 [11:31:13]Write i2c OK [11:31:13]MH_I2C_Read... [11:31:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:31:13]Read from MH i2c: E2 [11:31:13]MH_I2C_Read... [11:31:13]Read from MH i2c: E2 03 00 [11:31:13]MH_I2C_Read... [11:31:13]Read from MH i2c: E2 03 00 0C 0C 00 90 00 8C [11:31:13]RAPDU: 90 00 [11:31:13]wFMCommunicate OK [11:31:13]wFMCommunicate request_size=4 [11:31:13]MH_SAM_APDU [11:31:13]CAPDU: 80 0D 03 02 [11:31:13]Write to MH i2c: E2 08 00 0D 0C 80 0D 03 02 00 00 00 00 94 [11:31:13]Write i2c OK [11:31:13]MH_I2C_Read... [11:31:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:31:13]Read from MH i2c: E2 [11:31:13]MH_I2C_Read... [11:31:13]Read from MH i2c: E2 0B 00 [11:31:13]MH_I2C_Read... [11:31:13]Read from MH i2c: E2 0B 00 0D 0C 00 E2 63 1E 5D 2B 90 83 3A 90 00 CD [11:31:13]RAPDU: E2 63 1E 5D 2B 90 83 3A 90 00 [11:31:13]wFMCommunicate OK [11:31:13]SAM_PROTO_SignData done [11:31:13]FM_MakeSignedData done [11:31:13]CreateOFDProtocolMessage [11:31:13]wFMCommunicate request_size=4 [11:31:13]MH_SAM_APDU [11:31:13]CAPDU: 80 11 00 00 [11:31:13]Write to MH i2c: E2 08 00 0E 0C 80 11 00 00 00 00 00 00 94 [11:31:13]Write i2c OK [11:31:13]MH_I2C_Read... [11:31:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:14]Read from MH i2c: E2 [11:31:14]MH_I2C_Read... [11:31:14]Read from MH i2c: E2 17 00 [11:31:14]MH_I2C_Read... [11:31:14]Read from MH i2c: E2 17 00 0E 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 EB [11:31:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:31:14]wFMCommunicate OK [11:31:14]CreateOFDProtocolMessage done [11:31:14]OFDSenderStorePacket 227385 [11:31:14]StoreOFDPacket docnum=227385 [11:31:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 1A 32 07 01 6F 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8C 0A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 E9 00 00 00 F4 03 04 00 00 EA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 39 78 03 00 35 04 06 00 D7 4B 6B A8 7B 04 E2 63 1E 5D 2B 90 83 3A [11:31:14]CheckFolder [11:31:14]dirname=/storage/ofd_packets [11:31:14]CheckFolder done [11:31:14]ProducePacketName [11:31:14]name=ofd_packets/00227385 [11:31:14]NVStorageSaveData ofd_packets/00227385 [11:31:14]File name is /storage/ofd_packets/00227385 [11:31:14]Write 301 bytes [11:31:14]NVStorageSaveData done [11:31:14]OFDSenderStorePacket done [11:31:14]KKMCreateOFDPacket done [11:31:14]NVStorageSaveData kkm_last_timestamp [11:31:14]File name is /storage/kkm_last_timestamp [11:31:14]Write 4 bytes [11:31:14]NVStorageSaveData done [11:31:14]ExternCall_PrintAddStr [11:31:14]wPrintStart [11:31:14]Write to MH i2c: 01 00 00 0F 0C 1B [11:31:14]Write i2c OK [11:31:14]MH_I2C_Read... [11:31:14]Read from MH i2c: 01 [11:31:14]MH_I2C_Read... [11:31:14]Read from MH i2c: 01 07 00 [11:31:14]MH_I2C_Read... [11:31:14]Read from MH i2c: 01 07 00 0F 0C 00 00 00 00 00 FF 0F 30 [11:31:14]RasterBufferAndPrint [11:31:14]line Счет N : (1)1962900 [11:31:14]line ИНН: 02508201610067 [11:31:14]line Контрольно-Кассовый Чек [11:31:14]line ПРОДАЖА [11:31:14]line ТРК (МРК, ГНК) : 54 [11:31:14]line Товар: 2710124500 [11:31:14]line Аи-95-К-5 [11:31:14]line 2.700 * 74.20 [11:31:14]line = 200.34 [11:31:14]line НДС 12% НСП 1% [11:31:14]line > о реализуемом товаре [11:31:14]line ОКРУГЛЕНИЕ: -0.34 [11:31:14]line ИТОГО: 200.00 [11:31:14]line Внесено: 200.00 [11:31:14]line СДАЧА: 0.00 [11:31:14]line НСП 1% : 1.77 [11:31:14]line НДС 12% : 21.27 [11:31:14]line Наличными: 200.00 [11:31:14]line Безнал.: 0.00 [11:31:14]line Место: АЗС № 133 "Партнер Нефть" [11:31:14]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:31:14]line СНО: Общий режим [11:31:14]line Чек 233 20.10.2024 11:31 [11:31:14]line Смена: 533 ФФД: 1.0 [11:31:14]line ЗНМ: 0300000091 [11:31:14]line РНМ: 0000000000091685 [11:31:14]line Версия ККМ: 001 [11:31:14]line ФМ: 0000000000871839 [11:31:14]line ФД: 227385 [11:31:14]line ФПД: 236718928722692 [11:31:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113112&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227385&fm=236718928722692&tin=02508201610067®Number=0000000000091685&sum=20000 [11:31:14]OFD Sender: Processing packet 227385 [packets to send 38, broken 37] [11:31:14]ProducePacketName [11:31:14]name=ofd_packets/00227385 [11:31:14]OFD Sender: To server: pG, [11:31:14]CommunicateWithHost lk.salyk.kg:30040 [11:31:14]ConnectInit lk.salyk.kg [11:31:14]written 0, free lines is 4095 [11:31:14]Connected sock=10 [11:31: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 33 39 0F 01 00 00 1A 32 07 01 6F 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8C 0A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 E9 00 00 00 F4 03 04 00 00 EA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 39 78 03 00 35 04 06 00 D7 4B 6B A8 7B 04 E2 63 1E 5D 2B 90 83 3A [11:31: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 33 39 4F 00 00 00 48 F9 47 00 9C F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 39 78 03 00 F4 03 04 00 00 95 14 67 B6 04 01 00 00 63 0A C7 44 23 31 BD 45 [11:31:14]CommunicateWithHost err = 0 [11:31:14]CheckOFDResponse [11:31:14]1017 (14) - 77093643461234 [11:31:14]1041 (16) - 0000000000871839 [11:31:14]1040 (4) - 227385 [11:31:14]1012 (4) - 20.10.2024 05:28 [11:31:14]1206 (1) - 0 [11:31:14]OFD Sender: Remove packet 227385 [11:31:14]ProducePacketName [11:31:14]name=ofd_packets/00227385 [11:31:14]NVStorageDeleteData [11:31:14]Write to MH i2c: 01 00 00 39 0C 45 [11:31:14]Write i2c OK [11:31:14]MH_I2C_Read... [11:31:14]Read from MH i2c: 01 [11:31:14]MH_I2C_Read... [11:31:14]Read from MH i2c: 01 07 00 [11:31:14]MH_I2C_Read... [11:31:14]Read from MH i2c: 01 07 00 39 0C 00 00 00 00 00 05 0D 5E [11:31:14]RasterBufferAndPrint [11:31:14]line [11:31:14]line [11:31:14]line [11:31:14]line [11:31:14]line [11:31:14]written 0, free lines is 3345 [11:31:14]process_action close_receipt done [11:31:14]requested_data is exist [11:31:14]produce_requested_data [11:31:14]requested_item fm.sn is exist - process it [11:31:14]wFMCommunicate request_size=4 [11:31:14]MH_SAM_APDU [11:31:14]CAPDU: 80 11 00 00 [11:31:14]Write to MH i2c: E2 08 00 40 0C 80 11 00 00 00 00 00 00 C6 [11:31:14]Write i2c OK [11:31:14]MH_I2C_Read... [11:31:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:14]Read from MH i2c: E2 [11:31:14]MH_I2C_Read... [11:31:14]Read from MH i2c: E2 17 00 [11:31:14]MH_I2C_Read... [11:31:14]Read from MH i2c: E2 17 00 40 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 1D [11:31:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:31:14]wFMCommunicate OK [11:31:14]requested_item fd.num is exist - process it [11:31:14]SAM_PROTO_GetFieldsCounters [11:31:14]wFMCommunicate request_size=4 [11:31:14]MH_SAM_APDU [11:31:14]CAPDU: 80 13 00 00 [11:31:14]Write to MH i2c: E2 08 00 41 0C 80 13 00 00 00 00 00 00 C9 [11:31:14]Write i2c OK [11:31:14]MH_I2C_Read... [11:31:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:31:15]Read from MH i2c: E2 [11:31:15]MH_I2C_Read... [11:31:15]Read from MH i2c: E2 62 00 [11:31:15]MH_I2C_Read... [11:31:15]Read from MH i2c: E2 62 00 41 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 39 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [11:31:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 39 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:31:15]wFMCommunicate OK [11:31:15]SAM_PROTO_GetFieldsCounters done [11:31:15]requested_item shift.num is exist - process it [11:31:15]requested_item shift.opened is exist - process it [11:31:15]req_shift_opened [11:31:15]FM_GetShiftState [11:31:15]SAM_PROTO_GetShiftState [11:31:15]wFMCommunicate request_size=4 [11:31:15]MH_SAM_APDU [11:31:15]CAPDU: 80 13 01 00 [11:31:15]Write to MH i2c: E2 08 00 42 0C 80 13 01 00 00 00 00 00 CB [11:31:15]Write i2c OK [11:31:15]MH_I2C_Read... [11:31:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:15]Read from MH i2c: E2 [11:31:15]MH_I2C_Read... [11:31:15]Read from MH i2c: E2 0E 00 [11:31:15]MH_I2C_Read... [11:31:15]Read from MH i2c: E2 0E 00 42 0C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 E5 [11:31:15]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:31:15]wFMCommunicate OK [11:31:15]SAM_PROTO_GetShiftState done [11:31:15]FM_GetShiftState done [11:31:15]req_shift_opened done [11:31:15]requested_item shift.open_date is exist - process it [11:31:15]req_shift_open_date [11:31:15]req_shift_open_date done [11:31:15]produce_requested_data done [11:31:15]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227385,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [11:31:15]process_action_free close_receipt [11:31:15]json_value_free [11:31:15]json_value_free done [11:31:15]process_json_proto returns [11:31:15]Send response to host [11:31:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227385,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [11:31:15]free response buf [11:31:15]execute_script done [11:31:15]execute_script returns [11:31:15]free content buf [11:31:15]Sock 8.Close socket [11:31:15]Sock 8.Thread stoped [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:04]accept exits with 9 [11:32:04]New connection [11:32:04]New thread 3066543460 created [11:32:04]Thread 3066686820 joined [11:32:04]Waiting for new connection... [11:32:04] Sock 9.Parse request [11:32:04]Sock 9.Check first char [11:32:04]Sock 9.First char is OK [11:32:04]request: POST /json_proto HTTP/1.0 [11:32:04]Method: POST [11:32:04]URL: /json_proto [11:32:04]Method is POST - this is cgi request [11:32:04]url: /json_proto [11:32:04]query_string will be loaded in cgi processing [11:32:04]execute_cgi json_proto POST (null) [11:32:04]execute_cgi path=json_proto method=POST [11:32:04]POST find Content-Length [11:32:04]Host: 172.17.44.195:8080 [11:32:04]Content-Length: 767 [11:32:04]Content-Type: application/json [11:32:04] [11:32:04]POST finish read [11:32:04]Found Content-Length = 767 [11:32:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962901", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.540, "sum" : 370.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 370.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:32:04]execute_script... [11:32: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)1962901", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.540, "sum" : 370.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 370.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:32:04]POST & json_proto [11:32:04]process_json_proto [11:32:04]json parsed OK: [11:32:04]protocol is kg_v1.0 [11:32:04]action value=close_receipt [11:32:04]process_action close_receipt [11:32:04]cmd_close_receipt [11:32:04]MH_GetDate [11:32:04]Write to MH i2c: F0 00 00 43 0C 3E [11:32:04]Write i2c OK [11:32:04]MH_I2C_Read... [11:32:04]Read from MH i2c: F0 [11:32:04]MH_I2C_Read... [11:32:04]Read from MH i2c: F0 09 00 [11:32:04]MH_I2C_Read... [11:32:04]Read from MH i2c: F0 09 00 43 0C 00 34 EA 14 67 82 C9 CF 66 60 [11:32:04]GetLastDocTimeStamp 1729423872 [11:32:04]current date 1729423924 [11:32:04]FM_GetShiftState [11:32:04]SAM_PROTO_GetShiftState [11:32:04]wFMCommunicate request_size=4 [11:32:04]MH_SAM_APDU [11:32:04]CAPDU: 80 13 01 00 [11:32:04]Write to MH i2c: E2 08 00 44 0C 80 13 01 00 00 00 00 00 CD [11:32:04]Write i2c OK [11:32:04]MH_I2C_Read... [11:32:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:04]Read from MH i2c: E2 [11:32:04]MH_I2C_Read... [11:32:04]Read from MH i2c: E2 0E 00 [11:32:04]MH_I2C_Read... [11:32:04]Read from MH i2c: E2 0E 00 44 0C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 E7 [11:32:04]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:32:04]wFMCommunicate OK [11:32:04]SAM_PROTO_GetShiftState done [11:32:04]FM_GetShiftState done [11:32:04]opened in 1729383750 [11:32:04]opened+sec_in_day 1729470150 [11:32:04]quantity*price = 37062 [11:32:04]sum+1 = 37064 [11:32:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 370.63 НСП 1% : 3.28 НДС 12% : 39.36 Наличными: 0.00 Безнал.: 370.63 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 234 20.10.2024 11:32 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 227386 ФПД: 196295712998536 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113205&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227386&fm=196295712998536&tin=02508201610067®Number=0000000000091685&sum=37063 [11:32:05]StoreToDocumentArchive [11:32:05]shift 533 fd 227386 [11:32:05]save to /storage/0533/doc_00227386 [11:32:05]save last doc name /storage/0533/doc_00227386 to /storage/kkm_last_doc_name [11:32:05]save OK [11:32:05]Clear old archive folders... [11:32:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:32:05]tlvbuf is 01950160 [11:32:05]SAM_PROTO_ClearQueue [11:32:05]wFMCommunicate request_size=4 [11:32:05]MH_SAM_APDU [11:32:05]CAPDU: 80 09 00 00 [11:32:05]Write to MH i2c: E2 08 00 51 0C 80 09 00 00 00 00 00 00 CF [11:32:05]Write i2c OK [11:32:05]MH_I2C_Read... [11:32:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:32:05]Read from MH i2c: E2 [11:32:05]MH_I2C_Read... [11:32:05]Read from MH i2c: E2 03 00 [11:32:05]MH_I2C_Read... [11:32:05]Read from MH i2c: E2 03 00 51 0C 00 90 00 D1 [11:32:05]RAPDU: 90 00 [11:32:05]wFMCommunicate OK [11:32:05]SAM_PROTO_ClearQueue done [11:32:05]KKMCreateOFDPacket [11:32:05]OFDProtocolAddRootSTLVToBuf [11:32:05]FM_MakeSignedData [11:32:05]FM_MakeSignedData [11:32:05]SAM_PROTO_SignData [11:32:05]wFMCommunicate request_size=4 [11:32:05]MH_SAM_APDU [11:32:05]CAPDU: 80 0D 01 02 [11:32:05]Write to MH i2c: E2 08 00 52 0C 80 0D 01 02 00 00 00 00 D7 [11:32:05]Write i2c OK [11:32:05]MH_I2C_Read... [11:32:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:32:05]Read from MH i2c: E2 [11:32:05]MH_I2C_Read... [11:32:05]Read from MH i2c: E2 03 00 [11:32:05]MH_I2C_Read... [11:32:05]Read from MH i2c: E2 03 00 52 0C 00 90 00 D2 [11:32:05]RAPDU: 90 00 [11:32:05]wFMCommunicate OK [11:32:05]wFMCommunicate request_size=255 [11:32:05]MH_SAM_APDU [11:32:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C7 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C7 90 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 35 EA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3A 78 03 00 35 04 06 00 B2 [11:32:05]Write to MH i2c: E2 02 01 53 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C7 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C7 90 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 35 EA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3A 78 03 00 35 04 06 00 B2 00 00 9D [11:32:05]Write i2c OK [11:32:05]MH_I2C_Read... [11:32:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:32:05]Read from MH i2c: E2 [11:32:05]MH_I2C_Read... [11:32:05]Read from MH i2c: E2 03 00 [11:32:05]MH_I2C_Read... [11:32:05]Read from MH i2c: E2 03 00 53 0C 00 90 00 D3 [11:32:05]RAPDU: 90 00 [11:32:05]wFMCommunicate OK [11:32:05]wFMCommunicate request_size=10 [11:32:05]MH_SAM_APDU [11:32:05]CAPDU: 80 0D 02 02 05 87 A8 3E 84 88 [11:32:05]Write to MH i2c: E2 0D 00 54 0C 80 0D 02 02 05 00 87 A8 3E 84 88 00 00 5D [11:32:05]Write i2c OK [11:32:05]MH_I2C_Read... [11:32:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:32:05]Read from MH i2c: E2 [11:32:05]MH_I2C_Read... [11:32:05]Read from MH i2c: E2 03 00 [11:32:05]MH_I2C_Read... [11:32:05]Read from MH i2c: E2 03 00 54 0C 00 90 00 D4 [11:32:05]RAPDU: 90 00 [11:32:05]wFMCommunicate OK [11:32:05]wFMCommunicate request_size=4 [11:32:05]MH_SAM_APDU [11:32:05]CAPDU: 80 0D 03 02 [11:32:05]Write to MH i2c: E2 08 00 55 0C 80 0D 03 02 00 00 00 00 DC [11:32:05]Write i2c OK [11:32:05]MH_I2C_Read... [11:32:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:32:05]Read from MH i2c: E2 [11:32:05]MH_I2C_Read... [11:32:05]Read from MH i2c: E2 0B 00 [11:32:05]MH_I2C_Read... [11:32:05]Read from MH i2c: E2 0B 00 55 0C 00 98 E9 F0 16 7A 18 D0 F1 90 00 B7 [11:32:05]RAPDU: 98 E9 F0 16 7A 18 D0 F1 90 00 [11:32:05]wFMCommunicate OK [11:32:05]SAM_PROTO_SignData done [11:32:05]FM_MakeSignedData done [11:32:05]CreateOFDProtocolMessage [11:32:05]wFMCommunicate request_size=4 [11:32:05]MH_SAM_APDU [11:32:05]CAPDU: 80 11 00 00 [11:32:05]Write to MH i2c: E2 08 00 56 0C 80 11 00 00 00 00 00 00 DC [11:32:05]Write i2c OK [11:32:05]MH_I2C_Read... [11:32:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:05]Read from MH i2c: E2 [11:32:05]MH_I2C_Read... [11:32:05]Read from MH i2c: E2 17 00 [11:32:05]MH_I2C_Read... [11:32:05]Read from MH i2c: E2 17 00 56 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 33 [11:32:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:32:05]wFMCommunicate OK [11:32:05]CreateOFDProtocolMessage done [11:32:05]OFDSenderStorePacket 227386 [11:32:05]StoreOFDPacket docnum=227386 [11:32:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 0B 68 07 01 B2 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C7 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C7 90 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 35 EA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3A 78 03 00 35 04 06 00 B2 87 A8 3E 84 88 98 E9 F0 16 7A 18 D0 F1 [11:32:05]CheckFolder [11:32:05]dirname=/storage/ofd_packets [11:32:05]CheckFolder done [11:32:05]ProducePacketName [11:32:05]name=ofd_packets/00227386 [11:32:05]NVStorageSaveData ofd_packets/00227386 [11:32:05]File name is /storage/ofd_packets/00227386 [11:32:05]Write 301 bytes [11:32:05]NVStorageSaveData done [11:32:05]OFDSenderStorePacket done [11:32:05]KKMCreateOFDPacket done [11:32:05]NVStorageSaveData kkm_last_timestamp [11:32:05]File name is /storage/kkm_last_timestamp [11:32:05]Write 4 bytes [11:32:05]NVStorageSaveData done [11:32:05]ExternCall_PrintAddStr [11:32:05]wPrintStart [11:32:05]Write to MH i2c: 01 00 00 57 0C 63 [11:32:05]Write i2c OK [11:32:05]MH_I2C_Read... [11:32:05]Read from MH i2c: 01 [11:32:05]MH_I2C_Read... [11:32:05]Read from MH i2c: 01 07 00 [11:32:05]MH_I2C_Read... [11:32:05]Read from MH i2c: 01 07 00 57 0C 00 00 00 00 00 FF 0F 78 [11:32:05]RasterBufferAndPrint [11:32:05]line Счет N : (1)1962901 [11:32:05]line ИНН: 02508201610067 [11:32:05]line Контрольно-Кассовый Чек [11:32:05]line ПРОДАЖА [11:32:05]line ТРК (МРК, ГНК) : 63 [11:32:05]line Товар: 2710124130 [11:32:05]line Аи-92-К-5 [11:32:05]line 5.540 * 66.90 [11:32:05]line = 370.63 [11:32:05]line НДС 12% НСП 1% [11:32:05]line > о реализуемом товаре [11:32:05]line ИТОГО: 370.63 [11:32:05]line НСП 1% : 3.28 [11:32:05]line НДС 12% : 39.36 [11:32:05]line Наличными: 0.00 [11:32:05]line Безнал.: 370.63 [11:32:05]line Место: АЗС № 133 "Партнер Нефть" [11:32:05]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:32:05]line СНО: Общий режим [11:32:05]line Чек 234 20.10.2024 11:32 [11:32:05]line Смена: 533 ФФД: 1.0 [11:32:05]line ЗНМ: 0300000091 [11:32:05]line РНМ: 0000000000091685 [11:32:05]line Версия ККМ: 001 [11:32:05]line Платежная система: Mbank [11:32:05]line ФМ: 0000000000871839 [11:32:05]line ФД: 227386 [11:32:05]line ФПД: 196295712998536 [11:32:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113205&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227386&fm=196295712998536&tin=02508201610067®Number=0000000000091685&sum=37063 [11:32:05]written 0, free lines is 4095 [11:32:05]OFD Sender: Processing packet 227386 [packets to send 38, broken 37] [11:32:05]ProducePacketName [11:32:05]name=ofd_packets/00227386 [11:32:06]OFD Sender: To server: pG, [11:32:06]CommunicateWithHost lk.salyk.kg:30040 [11:32:06]ConnectInit lk.salyk.kg [11:32:06]Connected sock=10 [11:32: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 33 39 0F 01 00 00 0B 68 07 01 B2 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C7 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C7 90 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 35 EA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3A 78 03 00 35 04 06 00 B2 87 A8 3E 84 88 98 E9 F0 16 7A 18 D0 F1 [11:32:06]Write to MH i2c: 01 00 00 7F 0C 8B [11:32:06]Write i2c OK [11:32:06]MH_I2C_Read... [11:32:06]Read from MH i2c: 01 [11:32:06]MH_I2C_Read... [11:32:06]Read from MH i2c: 01 07 00 [11:32:06]MH_I2C_Read... [11:32:06]Read from MH i2c: 01 07 00 7F 0C 00 00 00 00 00 2E 0D CD [11:32:06]RasterBufferAndPrint [11:32:06]line [11:32:06]line [11:32:06]line [11:32:06]line [11:32:06]line [11:32:06]written 0, free lines is 3380 [11:32:06]process_action close_receipt done [11:32:06]requested_data is exist [11:32:06]produce_requested_data [11:32:06]requested_item fm.sn is exist - process it [11:32:06]wFMCommunicate request_size=4 [11:32:06]MH_SAM_APDU [11:32:06]CAPDU: 80 11 00 00 [11:32:06]Write to MH i2c: E2 08 00 86 0C 80 11 00 00 00 00 00 00 0C [11:32:06]Write i2c OK [11:32:06]MH_I2C_Read... [11:32:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:06]Read from MH i2c: E2 [11:32:06]MH_I2C_Read... [11:32:06]Read from MH i2c: E2 17 00 [11:32:06]MH_I2C_Read... [11:32:06]Read from MH i2c: E2 17 00 86 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 63 [11:32:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:32:06]wFMCommunicate OK [11:32:06]requested_item fd.num is exist - process it [11:32:06]SAM_PROTO_GetFieldsCounters [11:32:06]wFMCommunicate request_size=4 [11:32:06]MH_SAM_APDU [11:32:06]CAPDU: 80 13 00 00 [11:32:06]Write to MH i2c: E2 08 00 87 0C 80 13 00 00 00 00 00 00 0F [11:32:06]Write i2c OK [11:32:06]MH_I2C_Read... [11:32: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 33 39 4F 00 00 00 B1 71 47 00 B0 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 33 39 10 04 04 00 3A 78 03 00 F4 03 04 00 34 95 14 67 B6 04 01 00 00 AF 50 31 BB 4B FF 08 C4 [11:32:06]CommunicateWithHost err = 0 [11:32:06]CheckOFDResponse [11:32:06]1017 (14) - 77093643461234 [11:32:06]1041 (16) - 0000000000871839 [11:32:06]1040 (4) - 227386 [11:32:06]1012 (4) - 20.10.2024 05:29 [11:32:06]1206 (1) - 0 [11:32:06]OFD Sender: Remove packet 227386 [11:32:06]ProducePacketName [11:32:06]name=ofd_packets/00227386 [11:32:06]NVStorageDeleteData [11:32:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:32:06]Read from MH i2c: E2 [11:32:06]MH_I2C_Read... [11:32:06]Read from MH i2c: E2 62 00 [11:32:06]MH_I2C_Read... [11:32:06]Read from MH i2c: E2 62 00 87 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 3A 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 C2 [11:32: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 3A 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:32:06]wFMCommunicate OK [11:32:06]SAM_PROTO_GetFieldsCounters done [11:32:06]requested_item shift.num is exist - process it [11:32:06]requested_item shift.opened is exist - process it [11:32:06]req_shift_opened [11:32:06]FM_GetShiftState [11:32:06]SAM_PROTO_GetShiftState [11:32:06]wFMCommunicate request_size=4 [11:32:06]MH_SAM_APDU [11:32:06]CAPDU: 80 13 01 00 [11:32:06]Write to MH i2c: E2 08 00 88 0C 80 13 01 00 00 00 00 00 11 [11:32:06]Write i2c OK [11:32:06]MH_I2C_Read... [11:32:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:06]Read from MH i2c: E2 [11:32:06]MH_I2C_Read... [11:32:06]Read from MH i2c: E2 0E 00 [11:32:06]MH_I2C_Read... [11:32:06]Read from MH i2c: E2 0E 00 88 0C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 2B [11:32:06]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:32:06]wFMCommunicate OK [11:32:06]SAM_PROTO_GetShiftState done [11:32:06]FM_GetShiftState done [11:32:06]req_shift_opened done [11:32:06]requested_item shift.open_date is exist - process it [11:32:06]req_shift_open_date [11:32:06]req_shift_open_date done [11:32:06]produce_requested_data done [11:32:06]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227386,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [11:32:06]process_action_free close_receipt [11:32:06]json_value_free [11:32:06]json_value_free done [11:32:06]process_json_proto returns [11:32:06]Send response to host [11:32:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227386,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [11:32:06]free response buf [11:32:06]execute_script done [11:32:06]execute_script returns [11:32:06]free content buf [11:32:06]Sock 9.Close socket [11:32:06]Sock 9.Thread stoped [11:32:07]OFD Sender: No OFD packet to send [11:32:12]OFD Sender: No OFD packet to send [11:32:17]OFD Sender: No OFD packet to send [11:32:22]OFD Sender: No OFD packet to send [11:32:27]OFD Sender: No OFD packet to send [11:32:32]OFD Sender: No OFD packet to send [11:32:37]OFD Sender: No OFD packet to send [11:32:42]OFD Sender: No OFD packet to send [11:32:47]OFD Sender: No OFD packet to send [11:32:52]OFD Sender: No OFD packet to send [11:32:57]OFD Sender: No OFD packet to send [11:33:02]OFD Sender: No OFD packet to send [11:33:07]OFD Sender: No OFD packet to send [11:33:12]OFD Sender: No OFD packet to send [11:33:17]OFD Sender: No OFD packet to send [11:33:22]OFD Sender: No OFD packet to send [11:33:27]OFD Sender: No OFD packet to send [11:33:32]OFD Sender: No OFD packet to send [11:33:37]OFD Sender: No OFD packet to send [11:33:42]OFD Sender: No OFD packet to send [11:33:47]OFD Sender: No OFD packet to send [11:33:52]OFD Sender: No OFD packet to send [11:33:52]accept exits with 8 [11:33:52]New connection [11:33:52]New thread 3066686820 created [11:33:52]Thread 3066543460 joined [11:33:52]Waiting for new connection... [11:33:52] Sock 8.Parse request [11:33:52]Sock 8.Check first char [11:33:52]Sock 8.First char is OK [11:33:52]request: POST /json_proto HTTP/1.0 [11:33:52]Method: POST [11:33:52]URL: /json_proto [11:33:52]Method is POST - this is cgi request [11:33:52]url: /json_proto [11:33:52]query_string will be loaded in cgi processing [11:33:52]execute_cgi json_proto POST (null) [11:33:52]execute_cgi path=json_proto method=POST [11:33:52]POST find Content-Length [11:33:52]Host: 172.17.44.195:8080 [11:33:52]Content-Length: 664 [11:33:52]Content-Type: application/json [11:33:52] [11:33:52]POST finish read [11:33:52]Found Content-Length = 664 [11:33:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962902", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 29.240, "sum" : 2000.02, "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" ] } } [11:33:52]execute_script... [11:33:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962902", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 29.240, "sum" : 2000.02, "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" ] } } [11:33:52]POST & json_proto [11:33:52]process_json_proto [11:33:52]json parsed OK: [11:33:52]protocol is kg_v1.0 [11:33:52]action value=close_receipt [11:33:52]process_action close_receipt [11:33:52]cmd_close_receipt [11:33:52]MH_GetDate [11:33:52]Write to MH i2c: F0 00 00 89 0C 84 [11:33:52]Write i2c OK [11:33:52]MH_I2C_Read... [11:33:52]Read from MH i2c: F0 [11:33:52]MH_I2C_Read... [11:33:52]Read from MH i2c: F0 09 00 [11:33:52]MH_I2C_Read... [11:33:52]Read from MH i2c: F0 09 00 89 0C 00 A1 EA 14 67 82 C9 CF 66 13 [11:33:52]GetLastDocTimeStamp 1729423925 [11:33:52]current date 1729424033 [11:33:52]FM_GetShiftState [11:33:52]SAM_PROTO_GetShiftState [11:33:52]wFMCommunicate request_size=4 [11:33:52]MH_SAM_APDU [11:33:52]CAPDU: 80 13 01 00 [11:33:52]Write to MH i2c: E2 08 00 8A 0C 80 13 01 00 00 00 00 00 13 [11:33:52]Write i2c OK [11:33:52]MH_I2C_Read... [11:33:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:52]Read from MH i2c: E2 [11:33:52]MH_I2C_Read... [11:33:52]Read from MH i2c: E2 0E 00 [11:33:52]MH_I2C_Read... [11:33:52]Read from MH i2c: E2 0E 00 8A 0C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 2D [11:33:52]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:33:52]wFMCommunicate OK [11:33:52]SAM_PROTO_GetShiftState done [11:33:52]FM_GetShiftState done [11:33:52]opened in 1729383750 [11:33:52]opened+sec_in_day 1729470150 [11:33:52]quantity*price = 200001 [11:33:52]sum+1 = 200003 [11:33:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.39 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 235 20.10.2024 11:33 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227387 ФПД: 151490851297576 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113353&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227387&fm=151490851297576&tin=02508201610067®Number=0000000000091685&sum=200000 [11:33:53]StoreToDocumentArchive [11:33:53]shift 533 fd 227387 [11:33:53]save to /storage/0533/doc_00227387 [11:33:53]save last doc name /storage/0533/doc_00227387 to /storage/kkm_last_doc_name [11:33:53]save OK [11:33:53]Clear old archive folders... [11:33:53]ProcessDocumentItem done err = 0, tmpTLVsize=244 [11:33:53]tlvbuf is 0186B550 [11:33:53]SAM_PROTO_ClearQueue [11:33:53]wFMCommunicate request_size=4 [11:33:53]MH_SAM_APDU [11:33:53]CAPDU: 80 09 00 00 [11:33:53]Write to MH i2c: E2 08 00 97 0C 80 09 00 00 00 00 00 00 15 [11:33:53]Write i2c OK [11:33:53]MH_I2C_Read... [11:33:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:33:53]Read from MH i2c: E2 [11:33:53]MH_I2C_Read... [11:33:53]Read from MH i2c: E2 03 00 [11:33:53]MH_I2C_Read... [11:33:53]Read from MH i2c: E2 03 00 97 0C 00 90 00 17 [11:33:53]RAPDU: 90 00 [11:33:53]wFMCommunicate OK [11:33:53]SAM_PROTO_ClearQueue done [11:33:53]KKMCreateOFDPacket [11:33:53]OFDProtocolAddRootSTLVToBuf [11:33:53]FM_MakeSignedData [11:33:53]FM_MakeSignedData [11:33:53]SAM_PROTO_SignData [11:33:53]wFMCommunicate request_size=4 [11:33:53]MH_SAM_APDU [11:33:53]CAPDU: 80 0D 01 02 [11:33:53]Write to MH i2c: E2 08 00 98 0C 80 0D 01 02 00 00 00 00 1D [11:33:53]Write i2c OK [11:33:53]MH_I2C_Read... [11:33:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:33:53]Read from MH i2c: E2 [11:33:53]MH_I2C_Read... [11:33:53]Read from MH i2c: E2 03 00 [11:33:53]MH_I2C_Read... [11:33:53]Read from MH i2c: E2 03 00 98 0C 00 90 00 18 [11:33:53]RAPDU: 90 00 [11:33:53]wFMCommunicate OK [11:33:53]wFMCommunicate request_size=253 [11:33:53]MH_SAM_APDU [11:33:53]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 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 F7 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 EB 00 00 00 F4 03 04 00 A1 EA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3B 78 03 00 35 04 06 00 89 C7 B6 60 D9 28 [11:33:53]Write to MH i2c: E2 00 01 99 0C 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 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 F7 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 EB 00 00 00 F4 03 04 00 A1 EA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3B 78 03 00 35 04 06 00 89 C7 B6 60 D9 28 00 00 A9 [11:33:53]Write i2c OK [11:33:53]MH_I2C_Read... [11:33:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:54]Read from MH i2c: E2 [11:33:54]MH_I2C_Read... [11:33:54]Read from MH i2c: E2 03 00 [11:33:54]MH_I2C_Read... [11:33:54]Read from MH i2c: E2 03 00 99 0C 00 90 00 19 [11:33:54]RAPDU: 90 00 [11:33:54]wFMCommunicate OK [11:33:54]wFMCommunicate request_size=4 [11:33:54]MH_SAM_APDU [11:33:54]CAPDU: 80 0D 03 02 [11:33:54]Write to MH i2c: E2 08 00 9A 0C 80 0D 03 02 00 00 00 00 21 [11:33:54]Write i2c OK [11:33:54]MH_I2C_Read... [11:33:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:33:54]Read from MH i2c: E2 [11:33:54]MH_I2C_Read... [11:33:54]Read from MH i2c: E2 0B 00 [11:33:54]MH_I2C_Read... [11:33:54]Read from MH i2c: E2 0B 00 9A 0C 00 7F D6 9C DA 8C F6 0B F2 90 00 6C [11:33:54]RAPDU: 7F D6 9C DA 8C F6 0B F2 90 00 [11:33:54]wFMCommunicate OK [11:33:54]SAM_PROTO_SignData done [11:33:54]FM_MakeSignedData done [11:33:54]CreateOFDProtocolMessage [11:33:54]wFMCommunicate request_size=4 [11:33:54]MH_SAM_APDU [11:33:54]CAPDU: 80 11 00 00 [11:33:54]Write to MH i2c: E2 08 00 9B 0C 80 11 00 00 00 00 00 00 21 [11:33:54]Write i2c OK [11:33:54]MH_I2C_Read... [11:33:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:54]Read from MH i2c: E2 [11:33:54]MH_I2C_Read... [11:33:54]Read from MH i2c: E2 17 00 [11:33:54]MH_I2C_Read... [11:33:54]Read from MH i2c: E2 17 00 9B 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 78 [11:33:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:33:54]wFMCommunicate OK [11:33:54]CreateOFDProtocolMessage done [11:33:54]OFDSenderStorePacket 227387 [11:33:54]StoreOFDPacket docnum=227387 [11:33:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 1E 6B 00 01 28 CE 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 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 F7 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 EB 00 00 00 F4 03 04 00 A1 EA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3B 78 03 00 35 04 06 00 89 C7 B6 60 D9 28 7F D6 9C DA 8C F6 0B F2 [11:33:54]CheckFolder [11:33:54]dirname=/storage/ofd_packets [11:33:54]CheckFolder done [11:33:54]ProducePacketName [11:33:54]name=ofd_packets/00227387 [11:33:54]NVStorageSaveData ofd_packets/00227387 [11:33:54]File name is /storage/ofd_packets/00227387 [11:33:54]Write 294 bytes [11:33:54]NVStorageSaveData done [11:33:54]OFDSenderStorePacket done [11:33:54]KKMCreateOFDPacket done [11:33:54]NVStorageSaveData kkm_last_timestamp [11:33:54]File name is /storage/kkm_last_timestamp [11:33:54]Write 4 bytes [11:33:54]NVStorageSaveData done [11:33:54]ExternCall_PrintAddStr [11:33:54]wPrintStart [11:33:54]Write to MH i2c: 01 00 00 9C 0C A8 [11:33:54]Write i2c OK [11:33:54]MH_I2C_Read... [11:33:54]Read from MH i2c: 01 [11:33:54]MH_I2C_Read... [11:33:54]Read from MH i2c: 01 07 00 [11:33:54]MH_I2C_Read... [11:33:54]Read from MH i2c: 01 07 00 9C 0C 00 00 00 00 00 FF 0F BD [11:33:54]RasterBufferAndPrint [11:33:54]line Счет N : (1)1962902 [11:33:54]line ИНН: 02508201610067 [11:33:54]line Контрольно-Кассовый Чек [11:33:54]line ПРОДАЖА [11:33:54]line ТРК (МРК, ГНК) : 42 [11:33:54]line Товар: 2710124130 [11:33:54]line SU-92 [11:33:54]line 29.240 * 68.40 [11:33:54]line = 2000.02 [11:33:54]line НДС 12% НСП 1% [11:33:54]line > о реализуемом товаре [11:33:54]line ОКРУГЛЕНИЕ: -0.02 [11:33:54]line ИТОГО: 2000.00 [11:33:54]line Внесено: 2000.00 [11:33:54]line СДАЧА: 0.00 [11:33:54]line НСП 1% : 17.70 [11:33:54]line НДС 12% : 212.39 [11:33:54]line Наличными: 2000.00 [11:33:54]line Безнал.: 0.00 [11:33:54]line Место: АЗС № 133 "Партнер Нефть" [11:33:54]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:33:54]line СНО: Общий режим [11:33:54]line Чек 235 20.10.2024 11:33 [11:33:54]line Смена: 533 ФФД: 1.0 [11:33:54]line ЗНМ: 0300000091 [11:33:54]line РНМ: 0000000000091685 [11:33:54]line Версия ККМ: 001 [11:33:54]line ФМ: 0000000000871839 [11:33:54]line ФД: 227387 [11:33:54]line ФПД: 151490851297576 [11:33:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113353&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227387&fm=151490851297576&tin=02508201610067®Number=0000000000091685&sum=200000 [11:33:54]OFD Sender: Processing packet 227387 [packets to send 38, broken 37] [11:33:54]ProducePacketName [11:33:54]name=ofd_packets/00227387 [11:33:54]OFD Sender: To server: pG, [11:33:54]CommunicateWithHost lk.salyk.kg:30040 [11:33:54]ConnectInit lk.salyk.kg [11:33:54]written 0, free lines is 4095 [11:33:54]Connected sock=10 [11:33:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 1E 6B 00 01 28 CE 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 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 F7 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 EB 00 00 00 F4 03 04 00 A1 EA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3B 78 03 00 35 04 06 00 89 C7 B6 60 D9 28 7F D6 9C DA 8C F6 0B F2 [11:33:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 28 E4 47 00 6E 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3B 78 03 00 F4 03 04 00 A0 95 14 67 B6 04 01 00 00 24 30 2B 92 62 3F A1 54 [11:33:54]CommunicateWithHost err = 0 [11:33:54]CheckOFDResponse [11:33:54]1017 (14) - 77093643461234 [11:33:54]1041 (16) - 0000000000871839 [11:33:54]1040 (4) - 227387 [11:33:54]1012 (4) - 20.10.2024 05:31 [11:33:54]1206 (1) - 0 [11:33:54]OFD Sender: Remove packet 227387 [11:33:54]ProducePacketName [11:33:54]name=ofd_packets/00227387 [11:33:54]NVStorageDeleteData [11:33:55]Write to MH i2c: 01 00 00 C6 0C D2 [11:33:55]Write i2c OK [11:33:55]MH_I2C_Read... [11:33:55]Read from MH i2c: 01 [11:33:55]MH_I2C_Read... [11:33:55]Read from MH i2c: 01 07 00 [11:33:55]MH_I2C_Read... [11:33:55]Read from MH i2c: 01 07 00 C6 0C 00 00 00 00 00 17 0D FD [11:33:55]RasterBufferAndPrint [11:33:55]line [11:33:55]line [11:33:55]line [11:33:55]line [11:33:55]line [11:33:55]written 0, free lines is 3358 [11:33:55]process_action close_receipt done [11:33:55]requested_data is exist [11:33:55]produce_requested_data [11:33:55]requested_item fm.sn is exist - process it [11:33:55]wFMCommunicate request_size=4 [11:33:55]MH_SAM_APDU [11:33:55]CAPDU: 80 11 00 00 [11:33:55]Write to MH i2c: E2 08 00 CD 0C 80 11 00 00 00 00 00 00 53 [11:33:55]Write i2c OK [11:33:55]MH_I2C_Read... [11:33:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:55]Read from MH i2c: E2 [11:33:55]MH_I2C_Read... [11:33:55]Read from MH i2c: E2 17 00 [11:33:55]MH_I2C_Read... [11:33:55]Read from MH i2c: E2 17 00 CD 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 AA [11:33:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:33:55]wFMCommunicate OK [11:33:55]requested_item fd.num is exist - process it [11:33:55]SAM_PROTO_GetFieldsCounters [11:33:55]wFMCommunicate request_size=4 [11:33:55]MH_SAM_APDU [11:33:55]CAPDU: 80 13 00 00 [11:33:55]Write to MH i2c: E2 08 00 CE 0C 80 13 00 00 00 00 00 00 56 [11:33:55]Write i2c OK [11:33:55]MH_I2C_Read... [11:33:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:33:55]Read from MH i2c: E2 [11:33:55]MH_I2C_Read... [11:33:55]Read from MH i2c: E2 62 00 [11:33:55]MH_I2C_Read... [11:33:55]Read from MH i2c: E2 62 00 CE 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 3B 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 0D [11:33:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 3B 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:33:55]wFMCommunicate OK [11:33:55]SAM_PROTO_GetFieldsCounters done [11:33:55]requested_item shift.num is exist - process it [11:33:55]requested_item shift.opened is exist - process it [11:33:55]req_shift_opened [11:33:55]FM_GetShiftState [11:33:55]SAM_PROTO_GetShiftState [11:33:55]wFMCommunicate request_size=4 [11:33:55]MH_SAM_APDU [11:33:55]CAPDU: 80 13 01 00 [11:33:55]Write to MH i2c: E2 08 00 CF 0C 80 13 01 00 00 00 00 00 58 [11:33:55]Write i2c OK [11:33:55]MH_I2C_Read... [11:33:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:55]Read from MH i2c: E2 [11:33:55]MH_I2C_Read... [11:33:55]Read from MH i2c: E2 0E 00 [11:33:55]MH_I2C_Read... [11:33:55]Read from MH i2c: E2 0E 00 CF 0C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 72 [11:33:55]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:33:55]wFMCommunicate OK [11:33:55]SAM_PROTO_GetShiftState done [11:33:55]FM_GetShiftState done [11:33:55]req_shift_opened done [11:33:55]requested_item shift.open_date is exist - process it [11:33:55]req_shift_open_date [11:33:55]req_shift_open_date done [11:33:55]produce_requested_data done [11:33:55]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227387,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [11:33:55]process_action_free close_receipt [11:33:55]json_value_free [11:33:55]json_value_free done [11:33:55]process_json_proto returns [11:33:55]Send response to host [11:33:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227387,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [11:33:55]free response buf [11:33:55]execute_script done [11:33:55]execute_script returns [11:33:55]free content buf [11:33:55]Sock 8.Close socket [11:33:55]Sock 8.Thread stoped [11:33:55]OFD Sender: No OFD packet to send [11:34:00]OFD Sender: No OFD packet to send [11:34:05]OFD Sender: No OFD packet to send [11:34:10]OFD Sender: No OFD packet to send [11:34:15]OFD Sender: No OFD packet to send [11:34:20]OFD Sender: No OFD packet to send [11:34:25]OFD Sender: No OFD packet to send [11:34:30]OFD Sender: No OFD packet to send [11:34:35]OFD Sender: No OFD packet to send [11:34:40]OFD Sender: No OFD packet to send [11:34:45]OFD Sender: No OFD packet to send [11:34:50]OFD Sender: No OFD packet to send [11:34:55]OFD Sender: No OFD packet to send [11:35:00]OFD Sender: No OFD packet to send [11:35:05]OFD Sender: No OFD packet to send [11:35:10]OFD Sender: No OFD packet to send [11:35:15]OFD Sender: No OFD packet to send [11:35:20]OFD Sender: No OFD packet to send [11:35:25]OFD Sender: No OFD packet to send [11:35:30]OFD Sender: No OFD packet to send [11:35:35]OFD Sender: No OFD packet to send [11:35:39]accept exits with 9 [11:35:39]New connection [11:35:39]New thread 3066543460 created [11:35:39]Thread 3066686820 joined [11:35:39]Waiting for new connection... [11:35:39] Sock 9.Parse request [11:35:39]Sock 9.Check first char [11:35:39]Sock 9.First char is OK [11:35:39]request: POST /json_proto HTTP/1.0 [11:35:39]Method: POST [11:35:39]URL: /json_proto [11:35:39]Method is POST - this is cgi request [11:35:39]url: /json_proto [11:35:39]query_string will be loaded in cgi processing [11:35:39]execute_cgi json_proto POST (null) [11:35:39]execute_cgi path=json_proto method=POST [11:35:39]POST find Content-Length [11:35:39]Host: 172.17.44.195:8080 [11:35:39]Content-Length: 683 [11:35:39]Content-Type: application/json [11:35:39] [11:35:39]POST finish read [11:35:39]Found Content-Length = 683 [11:35:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962903", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:39]execute_script... [11:35: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)1962903", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:39]POST & json_proto [11:35:39]process_json_proto [11:35:39]json parsed OK: [11:35:39]protocol is kg_v1.0 [11:35:39]action value=close_receipt [11:35:39]process_action close_receipt [11:35:39]cmd_close_receipt [11:35:39]MH_GetDate [11:35:39]Write to MH i2c: F0 00 00 D0 0C CB [11:35:39]Write i2c OK [11:35:39]MH_I2C_Read... [11:35:39]Read from MH i2c: F0 [11:35:39]MH_I2C_Read... [11:35:39]Read from MH i2c: F0 09 00 [11:35:39]MH_I2C_Read... [11:35:39]Read from MH i2c: F0 09 00 D0 0C 00 0C EB 14 67 82 C9 CF 66 C6 [11:35:39]GetLastDocTimeStamp 1729424033 [11:35:39]current date 1729424140 [11:35:39]FM_GetShiftState [11:35:39]SAM_PROTO_GetShiftState [11:35:39]wFMCommunicate request_size=4 [11:35:39]MH_SAM_APDU [11:35:39]CAPDU: 80 13 01 00 [11:35:39]Write to MH i2c: E2 08 00 D1 0C 80 13 01 00 00 00 00 00 5A [11:35:39]Write i2c OK [11:35:39]MH_I2C_Read... [11:35:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:39]Read from MH i2c: E2 [11:35:39]MH_I2C_Read... [11:35:39]Read from MH i2c: E2 0E 00 [11:35:39]MH_I2C_Read... [11:35:39]Read from MH i2c: E2 0E 00 D1 0C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 74 [11:35:39]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:35:39]wFMCommunicate OK [11:35:39]SAM_PROTO_GetShiftState done [11:35:39]FM_GetShiftState done [11:35:39]opened in 1729383750 [11:35:39]opened+sec_in_day 1729470150 [11:35:39]quantity*price = 100021 [11:35:39]sum+1 = 100023 [11:35:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 236 20.10.2024 11:35 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227388 ФПД: 225565085465960 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113540&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227388&fm=225565085465960&tin=02508201610067®Number=0000000000091685&sum=100000 [11:35:41]StoreToDocumentArchive [11:35:41]shift 533 fd 227388 [11:35:41]save to /storage/0533/doc_00227388 [11:35:41]save last doc name /storage/0533/doc_00227388 to /storage/kkm_last_doc_name [11:35:41]save OK [11:35:41]Clear old archive folders... [11:35:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:35:41]tlvbuf is 018650C0 [11:35:41]SAM_PROTO_ClearQueue [11:35:41]wFMCommunicate request_size=4 [11:35:41]MH_SAM_APDU [11:35:41]CAPDU: 80 09 00 00 [11:35:41]Write to MH i2c: E2 08 00 DE 0C 80 09 00 00 00 00 00 00 5C [11:35:41]Write i2c OK [11:35:41]MH_I2C_Read... [11:35:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:35:41]Read from MH i2c: E2 [11:35:41]MH_I2C_Read... [11:35:41]Read from MH i2c: E2 03 00 [11:35:41]MH_I2C_Read... [11:35:41]Read from MH i2c: E2 03 00 DE 0C 00 90 00 5E [11:35:41]RAPDU: 90 00 [11:35:41]wFMCommunicate OK [11:35:41]SAM_PROTO_ClearQueue done [11:35:41]KKMCreateOFDPacket [11:35:41]OFDProtocolAddRootSTLVToBuf [11:35:41]FM_MakeSignedData [11:35:41]FM_MakeSignedData [11:35:41]SAM_PROTO_SignData [11:35:41]wFMCommunicate request_size=4 [11:35:41]MH_SAM_APDU [11:35:41]CAPDU: 80 0D 01 02 [11:35:41]Write to MH i2c: E2 08 00 DF 0C 80 0D 01 02 00 00 00 00 64 [11:35:41]Write i2c OK [11:35:41]MH_I2C_Read... [11:35:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:35:41]Read from MH i2c: E2 [11:35:41]MH_I2C_Read... [11:35:41]Read from MH i2c: E2 03 00 [11:35:41]MH_I2C_Read... [11:35:41]Read from MH i2c: E2 03 00 DF 0C 00 90 00 5F [11:35:41]RAPDU: 90 00 [11:35:41]wFMCommunicate OK [11:35:41]wFMCommunicate request_size=255 [11:35:41]MH_SAM_APDU [11:35:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 0C EB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3C 78 03 00 35 04 06 00 CD [11:35:41]Write to MH i2c: E2 02 01 E0 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 0C EB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3C 78 03 00 35 04 06 00 CD 00 00 11 [11:35:41]Write i2c OK [11:35:41]MH_I2C_Read... [11:35:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:41]Read from MH i2c: E2 [11:35:41]MH_I2C_Read... [11:35:41]Read from MH i2c: E2 03 00 [11:35:41]MH_I2C_Read... [11:35:41]Read from MH i2c: E2 03 00 E0 0C 00 90 00 60 [11:35:41]RAPDU: 90 00 [11:35:41]wFMCommunicate OK [11:35:41]wFMCommunicate request_size=10 [11:35:41]MH_SAM_APDU [11:35:41]CAPDU: 80 0D 02 02 05 26 76 CA FD 68 [11:35:41]Write to MH i2c: E2 0D 00 E1 0C 80 0D 02 02 05 00 26 76 CA FD 68 00 00 3C [11:35:41]Write i2c OK [11:35:41]MH_I2C_Read... [11:35:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:41]Read from MH i2c: E2 [11:35:41]MH_I2C_Read... [11:35:41]Read from MH i2c: E2 03 00 [11:35:41]MH_I2C_Read... [11:35:41]Read from MH i2c: E2 03 00 E1 0C 00 90 00 61 [11:35:41]RAPDU: 90 00 [11:35:41]wFMCommunicate OK [11:35:41]wFMCommunicate request_size=4 [11:35:41]MH_SAM_APDU [11:35:41]CAPDU: 80 0D 03 02 [11:35:41]Write to MH i2c: E2 08 00 E2 0C 80 0D 03 02 00 00 00 00 69 [11:35:41]Write i2c OK [11:35:41]MH_I2C_Read... [11:35:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:35:41]Read from MH i2c: E2 [11:35:41]MH_I2C_Read... [11:35:41]Read from MH i2c: E2 0B 00 [11:35:41]MH_I2C_Read... [11:35:41]Read from MH i2c: E2 0B 00 E2 0C 00 4E B3 B5 28 21 85 F1 2A 90 00 09 [11:35:41]RAPDU: 4E B3 B5 28 21 85 F1 2A 90 00 [11:35:41]wFMCommunicate OK [11:35:41]SAM_PROTO_SignData done [11:35:41]FM_MakeSignedData done [11:35:41]CreateOFDProtocolMessage [11:35:41]wFMCommunicate request_size=4 [11:35:41]MH_SAM_APDU [11:35:41]CAPDU: 80 11 00 00 [11:35:41]Write to MH i2c: E2 08 00 E3 0C 80 11 00 00 00 00 00 00 69 [11:35:41]Write i2c OK [11:35:41]MH_I2C_Read... [11:35:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:41]Read from MH i2c: E2 [11:35:41]MH_I2C_Read... [11:35:41]Read from MH i2c: E2 17 00 [11:35:41]MH_I2C_Read... [11:35:41]Read from MH i2c: E2 17 00 E3 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C0 [11:35:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:35:41]wFMCommunicate OK [11:35:41]CreateOFDProtocolMessage done [11:35:41]OFDSenderStorePacket 227388 [11:35:41]StoreOFDPacket docnum=227388 [11:35:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 2F 98 07 01 B8 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 0C EB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3C 78 03 00 35 04 06 00 CD 26 76 CA FD 68 4E B3 B5 28 21 85 F1 2A [11:35:41]CheckFolder [11:35:41]dirname=/storage/ofd_packets [11:35:41]CheckFolder done [11:35:41]ProducePacketName [11:35:41]name=ofd_packets/00227388 [11:35:41]NVStorageSaveData ofd_packets/00227388 [11:35:41]File name is /storage/ofd_packets/00227388 [11:35:41]Write 301 bytes [11:35:41]NVStorageSaveData done [11:35:41]OFDSenderStorePacket done [11:35:41]KKMCreateOFDPacket done [11:35:41]NVStorageSaveData kkm_last_timestamp [11:35:41]File name is /storage/kkm_last_timestamp [11:35:41]Write 4 bytes [11:35:41]NVStorageSaveData done [11:35:41]ExternCall_PrintAddStr [11:35:41]wPrintStart [11:35:41]Write to MH i2c: 01 00 00 E4 0C F0 [11:35:41]Write i2c OK [11:35:41]MH_I2C_Read... [11:35:41]Read from MH i2c: 01 [11:35:41]MH_I2C_Read... [11:35:41]Read from MH i2c: 01 07 00 [11:35:41]MH_I2C_Read... [11:35:41]Read from MH i2c: 01 07 00 E4 0C 00 00 00 00 00 FF 0F 05 [11:35:41]RasterBufferAndPrint [11:35:41]line Счет N : (1)1962903 [11:35:41]line ИНН: 02508201610067 [11:35:41]line Контрольно-Кассовый Чек [11:35:41]line ПРОДАЖА [11:35:41]line ТРК (МРК, ГНК) : 34 [11:35:41]line Товар: 2710124500 [11:35:41]line Аи-95-К-5 [11:35:41]line 13.480 * 74.20 [11:35:41]line = 1000.22 [11:35:41]line НДС 12% НСП 1% [11:35:41]line > о реализуемом товаре [11:35:41]line ОКРУГЛЕНИЕ: -0.22 [11:35:41]line ИТОГО: 1000.00 [11:35:41]line Внесено: 1000.00 [11:35:41]line СДАЧА: 0.00 [11:35:41]line НСП 1% : 8.85 [11:35:41]line НДС 12% : 106.22 [11:35:41]line Наличными: 1000.00 [11:35:41]line Безнал.: 0.00 [11:35:41]line Место: АЗС № 133 "Партнер Нефть" [11:35:41]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:35:41]line СНО: Общий режим [11:35:41]line Чек 236 20.10.2024 11:35 [11:35:41]line Смена: 533 ФФД: 1.0 [11:35:41]line ЗНМ: 0300000091 [11:35:41]line РНМ: 0000000000091685 [11:35:41]line Версия ККМ: 001 [11:35:41]line ФМ: 0000000000871839 [11:35:41]line ФД: 227388 [11:35:41]line ФПД: 225565085465960 [11:35:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113540&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227388&fm=225565085465960&tin=02508201610067®Number=0000000000091685&sum=100000 [11:35:41]OFD Sender: Processing packet 227388 [packets to send 38, broken 37] [11:35:41]ProducePacketName [11:35:41]name=ofd_packets/00227388 [11:35:41]OFD Sender: To server: pG, [11:35:41]CommunicateWithHost lk.salyk.kg:30040 [11:35:41]ConnectInit lk.salyk.kg [11:35:41]written 0, free lines is 4095 [11:35:42]Connected sock=10 [11:35: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 33 39 0F 01 00 00 2F 98 07 01 B8 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 0C EB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3C 78 03 00 35 04 06 00 CD 26 76 CA FD 68 4E B3 B5 28 21 85 F1 2A [11:35: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 33 39 4F 00 00 00 A7 0D 47 00 8D 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3C 78 03 00 F4 03 04 00 0B 96 14 67 B6 04 01 00 00 11 49 A7 D4 D1 7E BA F9 [11:35:42]CommunicateWithHost err = 0 [11:35:42]CheckOFDResponse [11:35:42]1017 (14) - 77093643461234 [11:35:42]1041 (16) - 0000000000871839 [11:35:42]1040 (4) - 227388 [11:35:42]1012 (4) - 20.10.2024 05:32 [11:35:42]1206 (1) - 0 [11:35:42]OFD Sender: Remove packet 227388 [11:35:42]ProducePacketName [11:35:42]name=ofd_packets/00227388 [11:35:42]NVStorageDeleteData [11:35:42]Write to MH i2c: 01 00 00 0E 0D 1B [11:35:42]Write i2c OK [11:35:42]MH_I2C_Read... [11:35:42]Read from MH i2c: 01 [11:35:42]MH_I2C_Read... [11:35:42]Read from MH i2c: 01 07 00 [11:35:42]MH_I2C_Read... [11:35:42]Read from MH i2c: 01 07 00 0E 0D 00 00 00 00 00 12 0D 41 [11:35:42]RasterBufferAndPrint [11:35:42]line [11:35:42]line [11:35:42]line [11:35:42]line [11:35:42]line [11:35:42]written 0, free lines is 3352 [11:35:42]process_action close_receipt done [11:35:42]requested_data is exist [11:35:42]produce_requested_data [11:35:42]requested_item fm.sn is exist - process it [11:35:42]wFMCommunicate request_size=4 [11:35:42]MH_SAM_APDU [11:35:42]CAPDU: 80 11 00 00 [11:35:42]Write to MH i2c: E2 08 00 15 0D 80 11 00 00 00 00 00 00 9C [11:35:42]Write i2c OK [11:35:42]MH_I2C_Read... [11:35:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:42]Read from MH i2c: E2 [11:35:42]MH_I2C_Read... [11:35:42]Read from MH i2c: E2 17 00 [11:35:42]MH_I2C_Read... [11:35:42]Read from MH i2c: E2 17 00 15 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F3 [11:35:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:35:42]wFMCommunicate OK [11:35:42]requested_item fd.num is exist - process it [11:35:42]SAM_PROTO_GetFieldsCounters [11:35:42]wFMCommunicate request_size=4 [11:35:42]MH_SAM_APDU [11:35:42]CAPDU: 80 13 00 00 [11:35:42]Write to MH i2c: E2 08 00 16 0D 80 13 00 00 00 00 00 00 9F [11:35:42]Write i2c OK [11:35:42]MH_I2C_Read... [11:35:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:35:42]Read from MH i2c: E2 [11:35:42]MH_I2C_Read... [11:35:42]Read from MH i2c: E2 62 00 [11:35:42]MH_I2C_Read... [11:35:42]Read from MH i2c: E2 62 00 16 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 3C 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [11:35:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 3C 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:35:42]wFMCommunicate OK [11:35:42]SAM_PROTO_GetFieldsCounters done [11:35:42]requested_item shift.num is exist - process it [11:35:42]requested_item shift.opened is exist - process it [11:35:42]req_shift_opened [11:35:42]FM_GetShiftState [11:35:42]SAM_PROTO_GetShiftState [11:35:42]wFMCommunicate request_size=4 [11:35:42]MH_SAM_APDU [11:35:42]CAPDU: 80 13 01 00 [11:35:42]Write to MH i2c: E2 08 00 17 0D 80 13 01 00 00 00 00 00 A1 [11:35:42]Write i2c OK [11:35:42]MH_I2C_Read... [11:35:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:42]Read from MH i2c: E2 [11:35:42]MH_I2C_Read... [11:35:42]Read from MH i2c: E2 0E 00 [11:35:42]MH_I2C_Read... [11:35:42]Read from MH i2c: E2 0E 00 17 0D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 BB [11:35:42]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:35:42]wFMCommunicate OK [11:35:42]SAM_PROTO_GetShiftState done [11:35:42]FM_GetShiftState done [11:35:42]req_shift_opened done [11:35:42]requested_item shift.open_date is exist - process it [11:35:42]req_shift_open_date [11:35:42]req_shift_open_date done [11:35:42]produce_requested_data done [11:35:42]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227388,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [11:35:42]process_action_free close_receipt [11:35:42]json_value_free [11:35:42]json_value_free done [11:35:42]process_json_proto returns [11:35:42]Send response to host [11:35:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227388,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [11:35:42]free response buf [11:35:42]execute_script done [11:35:42]execute_script returns [11:35:42]free content buf [11:35:42]Sock 9.Close socket [11:35:42]Sock 9.Thread stoped [11:35:42]OFD Sender: No OFD packet to send [11:35:47]OFD Sender: No OFD packet to send [11:35:52]OFD Sender: No OFD packet to send [11:35:57]OFD Sender: No OFD packet to send [11:36:02]OFD Sender: No OFD packet to send [11:36:07]OFD Sender: No OFD packet to send [11:36:12]OFD Sender: No OFD packet to send [11:36:17]OFD Sender: No OFD packet to send [11:36:22]OFD Sender: No OFD packet to send [11:36:27]OFD Sender: No OFD packet to send [11:36:32]OFD Sender: No OFD packet to send [11:36:37]OFD Sender: No OFD packet to send [11:36:42]OFD Sender: No OFD packet to send [11:36:47]OFD Sender: No OFD packet to send [11:36:52]OFD Sender: No OFD packet to send [11:36:57]OFD Sender: No OFD packet to send [11:37:02]OFD Sender: No OFD packet to send [11:37:07]OFD Sender: No OFD packet to send [11:37:12]OFD Sender: No OFD packet to send [11:37:17]OFD Sender: No OFD packet to send [11:37:22]OFD Sender: No OFD packet to send [11:37:27]OFD Sender: No OFD packet to send [11:37:32]OFD Sender: No OFD packet to send [11:37:37]OFD Sender: No OFD packet to send [11:37:42]OFD Sender: No OFD packet to send [11:37:47]OFD Sender: No OFD packet to send [11:37:52]OFD Sender: No OFD packet to send [11:37:57]OFD Sender: No OFD packet to send [11:37:58]accept exits with 8 [11:37:58]New connection [11:37:58]New thread 3066686820 created [11:37:58]Thread 3066543460 joined [11:37:58]Waiting for new connection... [11:37:58] Sock 8.Parse request [11:37:58]Sock 8.Check first char [11:37:58]Sock 8.First char is OK [11:37:58]request: POST /json_proto HTTP/1.0 [11:37:58]Method: POST [11:37:58]URL: /json_proto [11:37:58]Method is POST - this is cgi request [11:37:58]url: /json_proto [11:37:58]query_string will be loaded in cgi processing [11:37:58]execute_cgi json_proto POST (null) [11:37:58]execute_cgi path=json_proto method=POST [11:37:58]POST find Content-Length [11:37:58]Host: 172.17.44.195:8080 [11:37:58]Content-Length: 678 [11:37:58]Content-Type: application/json [11:37:58] [11:37:58]POST finish read [11:37:58]Found Content-Length = 678 [11:37:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962905", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.780, "sum" : 520.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 520.00, "total" : 520.00, "payments": [ { "type": 0, "sum" : 520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:58]execute_script... [11:37: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)1962905", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.780, "sum" : 520.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 520.00, "total" : 520.00, "payments": [ { "type": 0, "sum" : 520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:58]POST & json_proto [11:37:58]process_json_proto [11:37:58]json parsed OK: [11:37:58]protocol is kg_v1.0 [11:37:58]action value=close_receipt [11:37:58]process_action close_receipt [11:37:58]cmd_close_receipt [11:37:58]MH_GetDate [11:37:58]Write to MH i2c: F0 00 00 18 0D 14 [11:37:58]Write i2c OK [11:37:58]MH_I2C_Read... [11:37:58]Read from MH i2c: F0 [11:37:58]MH_I2C_Read... [11:37:58]Read from MH i2c: F0 09 00 [11:37:58]MH_I2C_Read... [11:37:58]Read from MH i2c: F0 09 00 18 0D 00 96 EB 14 67 82 C9 CF 66 99 [11:37:58]GetLastDocTimeStamp 1729424140 [11:37:58]current date 1729424278 [11:37:58]FM_GetShiftState [11:37:58]SAM_PROTO_GetShiftState [11:37:58]wFMCommunicate request_size=4 [11:37:58]MH_SAM_APDU [11:37:58]CAPDU: 80 13 01 00 [11:37:58]Write to MH i2c: E2 08 00 19 0D 80 13 01 00 00 00 00 00 A3 [11:37:58]Write i2c OK [11:37:58]MH_I2C_Read... [11:37:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:58]Read from MH i2c: E2 [11:37:58]MH_I2C_Read... [11:37:58]Read from MH i2c: E2 0E 00 [11:37:58]MH_I2C_Read... [11:37:58]Read from MH i2c: E2 0E 00 19 0D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 BD [11:37:58]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:37:58]wFMCommunicate OK [11:37:58]SAM_PROTO_GetShiftState done [11:37:58]FM_GetShiftState done [11:37:58]opened in 1729383750 [11:37:58]opened+sec_in_day 1729470150 [11:37:58]quantity*price = 52048 [11:37:58]sum+1 = 52049 [11:37:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 520.00 Внесено: 520.00 СДАЧА: 0.00 НСП 1% : 4.61 НДС 12% : 55.27 Наличными: 520.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 237 20.10.2024 11:37 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227389 ФПД: 197514958635261 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113758&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227389&fm=197514958635261&tin=02508201610067®Number=0000000000091685&sum=52000 [11:37:59]StoreToDocumentArchive [11:37:59]shift 533 fd 227389 [11:37:59]save to /storage/0533/doc_00227389 [11:37:59]save last doc name /storage/0533/doc_00227389 to /storage/kkm_last_doc_name [11:37:59]save OK [11:37:59]Clear old archive folders... [11:37:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:37:59]tlvbuf is 0186BCB0 [11:37:59]SAM_PROTO_ClearQueue [11:37:59]wFMCommunicate request_size=4 [11:37:59]MH_SAM_APDU [11:37:59]CAPDU: 80 09 00 00 [11:37:59]Write to MH i2c: E2 08 00 26 0D 80 09 00 00 00 00 00 00 A5 [11:37:59]Write i2c OK [11:37:59]MH_I2C_Read... [11:37:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:37:59]Read from MH i2c: E2 [11:37:59]MH_I2C_Read... [11:37:59]Read from MH i2c: E2 03 00 [11:37:59]MH_I2C_Read... [11:37:59]Read from MH i2c: E2 03 00 26 0D 00 90 00 A7 [11:37:59]RAPDU: 90 00 [11:37:59]wFMCommunicate OK [11:37:59]SAM_PROTO_ClearQueue done [11:37:59]KKMCreateOFDPacket [11:37:59]OFDProtocolAddRootSTLVToBuf [11:37:59]FM_MakeSignedData [11:37:59]FM_MakeSignedData [11:37:59]SAM_PROTO_SignData [11:37:59]wFMCommunicate request_size=4 [11:37:59]MH_SAM_APDU [11:37:59]CAPDU: 80 0D 01 02 [11:37:59]Write to MH i2c: E2 08 00 27 0D 80 0D 01 02 00 00 00 00 AD [11:37:59]Write i2c OK [11:37:59]MH_I2C_Read... [11:37:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:37:59]Read from MH i2c: E2 [11:37:59]MH_I2C_Read... [11:37:59]Read from MH i2c: E2 03 00 [11:37:59]MH_I2C_Read... [11:37:59]Read from MH i2c: E2 03 00 27 0D 00 90 00 A8 [11:37:59]RAPDU: 90 00 [11:37:59]wFMCommunicate OK [11:37:59]wFMCommunicate request_size=255 [11:37:59]MH_SAM_APDU [11:37:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 50 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 96 EB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3D 78 03 00 35 04 06 00 B3 [11:37:59]Write to MH i2c: E2 02 01 28 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 50 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 96 EB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3D 78 03 00 35 04 06 00 B3 00 00 53 [11:37:59]Write i2c OK [11:37:59]MH_I2C_Read... [11:37:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:59]Read from MH i2c: E2 [11:37:59]MH_I2C_Read... [11:37:59]Read from MH i2c: E2 03 00 [11:37:59]MH_I2C_Read... [11:37:59]Read from MH i2c: E2 03 00 28 0D 00 90 00 A9 [11:37:59]RAPDU: 90 00 [11:37:59]wFMCommunicate OK [11:37:59]wFMCommunicate request_size=10 [11:37:59]MH_SAM_APDU [11:37:59]CAPDU: 80 0D 02 02 05 A3 88 F2 80 FD [11:37:59]Write to MH i2c: E2 0D 00 29 0D 80 0D 02 02 05 00 A3 88 F2 80 FD 00 00 54 [11:37:59]Write i2c OK [11:37:59]MH_I2C_Read... [11:37:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:59]Read from MH i2c: E2 [11:37:59]MH_I2C_Read... [11:37:59]Read from MH i2c: E2 03 00 [11:37:59]MH_I2C_Read... [11:37:59]Read from MH i2c: E2 03 00 29 0D 00 90 00 AA [11:37:59]RAPDU: 90 00 [11:37:59]wFMCommunicate OK [11:37:59]wFMCommunicate request_size=4 [11:37:59]MH_SAM_APDU [11:37:59]CAPDU: 80 0D 03 02 [11:37:59]Write to MH i2c: E2 08 00 2A 0D 80 0D 03 02 00 00 00 00 B2 [11:37:59]Write i2c OK [11:37:59]MH_I2C_Read... [11:37:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:37:59]Read from MH i2c: E2 [11:37:59]MH_I2C_Read... [11:37:59]Read from MH i2c: E2 0B 00 [11:37:59]MH_I2C_Read... [11:37:59]Read from MH i2c: E2 0B 00 2A 0D 00 00 9D 9D DF 86 62 DA A0 90 00 2E [11:37:59]RAPDU: 00 9D 9D DF 86 62 DA A0 90 00 [11:37:59]wFMCommunicate OK [11:37:59]SAM_PROTO_SignData done [11:37:59]FM_MakeSignedData done [11:37:59]CreateOFDProtocolMessage [11:37:59]wFMCommunicate request_size=4 [11:37:59]MH_SAM_APDU [11:37:59]CAPDU: 80 11 00 00 [11:37:59]Write to MH i2c: E2 08 00 2B 0D 80 11 00 00 00 00 00 00 B2 [11:37:59]Write i2c OK [11:37:59]MH_I2C_Read... [11:37:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:59]Read from MH i2c: E2 [11:37:59]MH_I2C_Read... [11:37:59]Read from MH i2c: E2 17 00 [11:37:59]MH_I2C_Read... [11:37:59]Read from MH i2c: E2 17 00 2B 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 09 [11:37:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:37:59]wFMCommunicate OK [11:37:59]CreateOFDProtocolMessage done [11:37:59]OFDSenderStorePacket 227389 [11:37:59]StoreOFDPacket docnum=227389 [11:37:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 FF ED 07 01 6C A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 50 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 96 EB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3D 78 03 00 35 04 06 00 B3 A3 88 F2 80 FD 00 9D 9D DF 86 62 DA A0 [11:37:59]CheckFolder [11:37:59]dirname=/storage/ofd_packets [11:37:59]CheckFolder done [11:37:59]ProducePacketName [11:37:59]name=ofd_packets/00227389 [11:37:59]NVStorageSaveData ofd_packets/00227389 [11:37:59]File name is /storage/ofd_packets/00227389 [11:37:59]Write 301 bytes [11:37:59]NVStorageSaveData done [11:37:59]OFDSenderStorePacket done [11:37:59]KKMCreateOFDPacket done [11:37:59]NVStorageSaveData kkm_last_timestamp [11:37:59]File name is /storage/kkm_last_timestamp [11:37:59]Write 4 bytes [11:37:59]NVStorageSaveData done [11:37:59]ExternCall_PrintAddStr [11:37:59]wPrintStart [11:37:59]Write to MH i2c: 01 00 00 2C 0D 39 [11:37:59]Write i2c OK [11:37:59]MH_I2C_Read... [11:37:59]Read from MH i2c: 01 [11:37:59]MH_I2C_Read... [11:37:59]Read from MH i2c: 01 07 00 [11:37:59]MH_I2C_Read... [11:37:59]Read from MH i2c: 01 07 00 2C 0D 00 00 00 00 00 FF 0F 4E [11:37:59]RasterBufferAndPrint [11:37:59]line Счет N : (1)1962905 [11:37:59]line ИНН: 02508201610067 [11:37:59]line Контрольно-Кассовый Чек [11:37:59]line ПРОДАЖА [11:37:59]line ТРК (МРК, ГНК) : 63 [11:37:59]line Товар: 2710124130 [11:37:59]line Аи-92-К-5 [11:37:59]line 7.780 * 66.90 [11:37:59]line = 520.48 [11:37:59]line НДС 12% НСП 1% [11:37:59]line > о реализуемом товаре [11:37:59]line ОКРУГЛЕНИЕ: -0.48 [11:37:59]line ИТОГО: 520.00 [11:37:59]line Внесено: 520.00 [11:37:59]line СДАЧА: 0.00 [11:37:59]line НСП 1% : 4.61 [11:37:59]line НДС 12% : 55.27 [11:37:59]line Наличными: 520.00 [11:37:59]line Безнал.: 0.00 [11:37:59]line Место: АЗС № 133 "Партнер Нефть" [11:37:59]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:37:59]line СНО: Общий режим [11:37:59]line Чек 237 20.10.2024 11:37 [11:37:59]line Смена: 533 ФФД: 1.0 [11:37:59]line ЗНМ: 0300000091 [11:37:59]line РНМ: 0000000000091685 [11:37:59]line Версия ККМ: 001 [11:37:59]line ФМ: 0000000000871839 [11:37:59]line ФД: 227389 [11:37:59]line ФПД: 197514958635261 [11:37:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113758&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227389&fm=197514958635261&tin=02508201610067®Number=0000000000091685&sum=52000 [11:37:59]written 0, free lines is 4095 [11:37:59]OFD Sender: Processing packet 227389 [packets to send 38, broken 37] [11:37:59]ProducePacketName [11:37:59]name=ofd_packets/00227389 [11:37:59]OFD Sender: To server: pG, [11:37:59]CommunicateWithHost lk.salyk.kg:30040 [11:37:59]ConnectInit lk.salyk.kg [11:37:59]Connected sock=10 [11:37: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 33 39 0F 01 00 00 FF ED 07 01 6C A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 50 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 96 EB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3D 78 03 00 35 04 06 00 B3 A3 88 F2 80 FD 00 9D 9D DF 86 62 DA A0 [11:38: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 33 39 4F 00 00 00 DE 84 47 00 BE 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 33 39 10 04 04 00 3D 78 03 00 F4 03 04 00 95 96 14 67 B6 04 01 00 00 64 75 6C 75 85 B8 AB C4 [11:38:00]CommunicateWithHost err = 0 [11:38:00]CheckOFDResponse [11:38:00]1017 (14) - 77093643461234 [11:38:00]1041 (16) - 0000000000871839 [11:38:00]1040 (4) - 227389 [11:38:00]1012 (4) - 20.10.2024 05:35 [11:38:00]1206 (1) - 0 [11:38:00]OFD Sender: Remove packet 227389 [11:38:00]ProducePacketName [11:38:00]name=ofd_packets/00227389 [11:38:00]NVStorageDeleteData [11:38:00]Write to MH i2c: 01 00 00 56 0D 63 [11:38:00]Write i2c OK [11:38:00]MH_I2C_Read... [11:38:00]Read from MH i2c: 01 [11:38:00]MH_I2C_Read... [11:38:00]Read from MH i2c: 01 07 00 [11:38:00]MH_I2C_Read... [11:38:00]Read from MH i2c: 01 07 00 56 0D 00 00 00 00 00 1C 0D 93 [11:38:00]RasterBufferAndPrint [11:38:00]line [11:38:00]line [11:38:00]line [11:38:00]line [11:38:00]line [11:38:00]written 0, free lines is 3362 [11:38:00]process_action close_receipt done [11:38:00]requested_data is exist [11:38:00]produce_requested_data [11:38:00]requested_item fm.sn is exist - process it [11:38:00]wFMCommunicate request_size=4 [11:38:00]MH_SAM_APDU [11:38:00]CAPDU: 80 11 00 00 [11:38:00]Write to MH i2c: E2 08 00 5D 0D 80 11 00 00 00 00 00 00 E4 [11:38:00]Write i2c OK [11:38:00]MH_I2C_Read... [11:38:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:00]Read from MH i2c: E2 [11:38:00]MH_I2C_Read... [11:38:00]Read from MH i2c: E2 17 00 [11:38:00]MH_I2C_Read... [11:38:00]Read from MH i2c: E2 17 00 5D 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 3B [11:38:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:38:00]wFMCommunicate OK [11:38:00]requested_item fd.num is exist - process it [11:38:00]SAM_PROTO_GetFieldsCounters [11:38:00]wFMCommunicate request_size=4 [11:38:00]MH_SAM_APDU [11:38:00]CAPDU: 80 13 00 00 [11:38:00]Write to MH i2c: E2 08 00 5E 0D 80 13 00 00 00 00 00 00 E7 [11:38:00]Write i2c OK [11:38:00]MH_I2C_Read... [11:38:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:38:00]Read from MH i2c: E2 [11:38:00]MH_I2C_Read... [11:38:00]Read from MH i2c: E2 62 00 [11:38:00]MH_I2C_Read... [11:38:00]Read from MH i2c: E2 62 00 5E 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 3D 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [11:38: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 3D 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:38:00]wFMCommunicate OK [11:38:00]SAM_PROTO_GetFieldsCounters done [11:38:00]requested_item shift.num is exist - process it [11:38:00]requested_item shift.opened is exist - process it [11:38:00]req_shift_opened [11:38:00]FM_GetShiftState [11:38:00]SAM_PROTO_GetShiftState [11:38:00]wFMCommunicate request_size=4 [11:38:00]MH_SAM_APDU [11:38:00]CAPDU: 80 13 01 00 [11:38:00]Write to MH i2c: E2 08 00 5F 0D 80 13 01 00 00 00 00 00 E9 [11:38:00]Write i2c OK [11:38:00]MH_I2C_Read... [11:38:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:00]Read from MH i2c: E2 [11:38:00]MH_I2C_Read... [11:38:00]Read from MH i2c: E2 0E 00 [11:38:00]MH_I2C_Read... [11:38:00]Read from MH i2c: E2 0E 00 5F 0D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 03 [11:38:00]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:38:00]wFMCommunicate OK [11:38:00]SAM_PROTO_GetShiftState done [11:38:00]FM_GetShiftState done [11:38:00]req_shift_opened done [11:38:00]requested_item shift.open_date is exist - process it [11:38:00]req_shift_open_date [11:38:00]req_shift_open_date done [11:38:00]produce_requested_data done [11:38:00]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227389,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [11:38:00]process_action_free close_receipt [11:38:00]json_value_free [11:38:00]json_value_free done [11:38:00]process_json_proto returns [11:38:00]Send response to host [11:38:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227389,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [11:38:00]free response buf [11:38:00]execute_script done [11:38:00]execute_script returns [11:38:00]free content buf [11:38:00]Sock 8.Close socket [11:38:00]Sock 8.Thread stoped [11:38:00]OFD Sender: No OFD packet to send [11:38:00]accept exits with 9 [11:38:00]New connection [11:38:00]New thread 3066543460 created [11:38:00]Thread 3066686820 joined [11:38:00]Waiting for new connection... [11:38:00] Sock 9.Parse request [11:38:00]Sock 9.Check first char [11:38:00]Sock 9.First char is OK [11:38:00]request: POST /json_proto HTTP/1.0 [11:38:00]Method: POST [11:38:00]URL: /json_proto [11:38:00]Method is POST - this is cgi request [11:38:00]url: /json_proto [11:38:00]query_string will be loaded in cgi processing [11:38:00]execute_cgi json_proto POST (null) [11:38:00]execute_cgi path=json_proto method=POST [11:38:00]POST find Content-Length [11:38:00]Host: 172.17.44.195:8080 [11:38:00]Content-Length: 678 [11:38:00]Content-Type: application/json [11:38:00] [11:38:00]POST finish read [11:38:00]Found Content-Length = 678 [11:38:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962904", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:00]execute_script... [11:38: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)1962904", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:00]POST & json_proto [11:38:00]process_json_proto [11:38:00]json parsed OK: [11:38:00]protocol is kg_v1.0 [11:38:00]action value=close_receipt [11:38:00]process_action close_receipt [11:38:00]cmd_close_receipt [11:38:00]MH_GetDate [11:38:00]Write to MH i2c: F0 00 00 60 0D 5C [11:38:00]Write i2c OK [11:38:00]MH_I2C_Read... [11:38:00]Read from MH i2c: F0 [11:38:00]MH_I2C_Read... [11:38:00]Read from MH i2c: F0 09 00 [11:38:00]MH_I2C_Read... [11:38:00]Read from MH i2c: F0 09 00 60 0D 00 99 EB 14 67 82 C9 CF 66 E4 [11:38:00]GetLastDocTimeStamp 1729424278 [11:38:00]current date 1729424281 [11:38:00]FM_GetShiftState [11:38:00]SAM_PROTO_GetShiftState [11:38:00]wFMCommunicate request_size=4 [11:38:00]MH_SAM_APDU [11:38:00]CAPDU: 80 13 01 00 [11:38:00]Write to MH i2c: E2 08 00 61 0D 80 13 01 00 00 00 00 00 EB [11:38:00]Write i2c OK [11:38:00]MH_I2C_Read... [11:38:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:00]Read from MH i2c: E2 [11:38:00]MH_I2C_Read... [11:38:00]Read from MH i2c: E2 0E 00 [11:38:00]MH_I2C_Read... [11:38:00]Read from MH i2c: E2 0E 00 61 0D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 05 [11:38:00]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:38:00]wFMCommunicate OK [11:38:00]SAM_PROTO_GetShiftState done [11:38:00]FM_GetShiftState done [11:38:00]opened in 1729383750 [11:38:00]opened+sec_in_day 1729470150 [11:38:00]quantity*price = 35055 [11:38:00]sum+1 = 35057 [11:38:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 238 20.10.2024 11:38 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227390 ФПД: 280331342545627 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113801&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227390&fm=280331342545627&tin=02508201610067®Number=0000000000091685&sum=35000 [11:38:02]StoreToDocumentArchive [11:38:02]shift 533 fd 227390 [11:38:02]save to /storage/0533/doc_00227390 [11:38:02]save last doc name /storage/0533/doc_00227390 to /storage/kkm_last_doc_name [11:38:02]save OK [11:38:02]Clear old archive folders... [11:38:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:38:02]tlvbuf is 0185B250 [11:38:02]SAM_PROTO_ClearQueue [11:38:02]wFMCommunicate request_size=4 [11:38:02]MH_SAM_APDU [11:38:02]CAPDU: 80 09 00 00 [11:38:02]Write to MH i2c: E2 08 00 6E 0D 80 09 00 00 00 00 00 00 ED [11:38:02]Write i2c OK [11:38:02]MH_I2C_Read... [11:38:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:38:02]Read from MH i2c: E2 [11:38:02]MH_I2C_Read... [11:38:02]Read from MH i2c: E2 03 00 [11:38:02]MH_I2C_Read... [11:38:02]Read from MH i2c: E2 03 00 6E 0D 00 90 00 EF [11:38:02]RAPDU: 90 00 [11:38:02]wFMCommunicate OK [11:38:02]SAM_PROTO_ClearQueue done [11:38:02]KKMCreateOFDPacket [11:38:02]OFDProtocolAddRootSTLVToBuf [11:38:02]FM_MakeSignedData [11:38:02]FM_MakeSignedData [11:38:02]SAM_PROTO_SignData [11:38:02]wFMCommunicate request_size=4 [11:38:02]MH_SAM_APDU [11:38:02]CAPDU: 80 0D 01 02 [11:38:02]Write to MH i2c: E2 08 00 6F 0D 80 0D 01 02 00 00 00 00 F5 [11:38:02]Write i2c OK [11:38:02]MH_I2C_Read... [11:38:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:38:02]Read from MH i2c: E2 [11:38:02]MH_I2C_Read... [11:38:02]Read from MH i2c: E2 03 00 [11:38:02]MH_I2C_Read... [11:38:02]Read from MH i2c: E2 03 00 6F 0D 00 90 00 F0 [11:38:02]RAPDU: 90 00 [11:38:02]wFMCommunicate OK [11:38:02]wFMCommunicate request_size=255 [11:38:02]MH_SAM_APDU [11:38:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 99 EB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3E 78 03 00 35 04 06 00 FE [11:38:02]Write to MH i2c: E2 02 01 70 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 99 EB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3E 78 03 00 35 04 06 00 FE 00 00 52 [11:38:02]Write i2c OK [11:38:02]MH_I2C_Read... [11:38:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:02]Read from MH i2c: E2 [11:38:02]MH_I2C_Read... [11:38:02]Read from MH i2c: E2 03 00 [11:38:02]MH_I2C_Read... [11:38:02]Read from MH i2c: E2 03 00 70 0D 00 90 00 F1 [11:38:02]RAPDU: 90 00 [11:38:02]wFMCommunicate OK [11:38:02]wFMCommunicate request_size=10 [11:38:02]MH_SAM_APDU [11:38:02]CAPDU: 80 0D 02 02 05 F5 BA 17 82 DB [11:38:02]Write to MH i2c: E2 0D 00 71 0D 80 0D 02 02 05 00 F5 BA 17 82 DB 00 00 25 [11:38:02]Write i2c OK [11:38:02]MH_I2C_Read... [11:38:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:02]Read from MH i2c: E2 [11:38:02]MH_I2C_Read... [11:38:02]Read from MH i2c: E2 03 00 [11:38:02]MH_I2C_Read... [11:38:02]Read from MH i2c: E2 03 00 71 0D 00 90 00 F2 [11:38:02]RAPDU: 90 00 [11:38:02]wFMCommunicate OK [11:38:02]wFMCommunicate request_size=4 [11:38:02]MH_SAM_APDU [11:38:02]CAPDU: 80 0D 03 02 [11:38:02]Write to MH i2c: E2 08 00 72 0D 80 0D 03 02 00 00 00 00 FA [11:38:02]Write i2c OK [11:38:02]MH_I2C_Read... [11:38:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:38:02]Read from MH i2c: E2 [11:38:02]MH_I2C_Read... [11:38:02]Read from MH i2c: E2 0B 00 [11:38:02]MH_I2C_Read... [11:38:02]Read from MH i2c: E2 0B 00 72 0D 00 06 25 8A FE 2A 5F 39 A7 90 00 17 [11:38:02]RAPDU: 06 25 8A FE 2A 5F 39 A7 90 00 [11:38:02]wFMCommunicate OK [11:38:02]SAM_PROTO_SignData done [11:38:02]FM_MakeSignedData done [11:38:02]CreateOFDProtocolMessage [11:38:02]wFMCommunicate request_size=4 [11:38:02]MH_SAM_APDU [11:38:02]CAPDU: 80 11 00 00 [11:38:02]Write to MH i2c: E2 08 00 73 0D 80 11 00 00 00 00 00 00 FA [11:38:02]Write i2c OK [11:38:02]MH_I2C_Read... [11:38:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:02]Read from MH i2c: E2 [11:38:02]MH_I2C_Read... [11:38:02]Read from MH i2c: E2 17 00 [11:38:02]MH_I2C_Read... [11:38:02]Read from MH i2c: E2 17 00 73 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 51 [11:38:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:38:02]wFMCommunicate OK [11:38:02]CreateOFDProtocolMessage done [11:38:02]OFDSenderStorePacket 227390 [11:38:02]StoreOFDPacket docnum=227390 [11:38:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 86 B6 07 01 5F 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 99 EB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3E 78 03 00 35 04 06 00 FE F5 BA 17 82 DB 06 25 8A FE 2A 5F 39 A7 [11:38:02]CheckFolder [11:38:02]dirname=/storage/ofd_packets [11:38:02]CheckFolder done [11:38:02]ProducePacketName [11:38:02]name=ofd_packets/00227390 [11:38:02]NVStorageSaveData ofd_packets/00227390 [11:38:02]File name is /storage/ofd_packets/00227390 [11:38:02]Write 301 bytes [11:38:02]NVStorageSaveData done [11:38:02]OFDSenderStorePacket done [11:38:02]KKMCreateOFDPacket done [11:38:02]NVStorageSaveData kkm_last_timestamp [11:38:02]File name is /storage/kkm_last_timestamp [11:38:02]Write 4 bytes [11:38:02]NVStorageSaveData done [11:38:02]ExternCall_PrintAddStr [11:38:02]wPrintStart [11:38:02]Write to MH i2c: 01 00 00 74 0D 81 [11:38:02]Write i2c OK [11:38:02]MH_I2C_Read... [11:38:02]Read from MH i2c: 01 [11:38:02]MH_I2C_Read... [11:38:02]Read from MH i2c: 01 07 00 [11:38:02]MH_I2C_Read... [11:38:02]Read from MH i2c: 01 07 00 74 0D 00 00 00 00 00 FF 0F 96 [11:38:02]RasterBufferAndPrint [11:38:02]line Счет N : (1)1962904 [11:38:02]line ИНН: 02508201610067 [11:38:02]line Контрольно-Кассовый Чек [11:38:02]line ПРОДАЖА [11:38:02]line ТРК (МРК, ГНК) : 43 [11:38:02]line Товар: 2710124130 [11:38:02]line Аи-92-К-5 [11:38:02]line 5.240 * 66.90 [11:38:02]line = 350.56 [11:38:02]line НДС 12% НСП 1% [11:38:02]line > о реализуемом товаре [11:38:02]line ОКРУГЛЕНИЕ: -0.56 [11:38:02]line ИТОГО: 350.00 [11:38:03]line Внесено: 350.00 [11:38:03]line СДАЧА: 0.00 [11:38:03]line НСП 1% : 3.10 [11:38:03]line НДС 12% : 37.23 [11:38:03]line Наличными: 350.00 [11:38:03]line Безнал.: 0.00 [11:38:03]line Место: АЗС № 133 "Партнер Нефть" [11:38:03]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:38:03]line СНО: Общий режим [11:38:03]line Чек 238 20.10.2024 11:38 [11:38:03]line Смена: 533 ФФД: 1.0 [11:38:03]line ЗНМ: 0300000091 [11:38:03]line РНМ: 0000000000091685 [11:38:03]line Версия ККМ: 001 [11:38:03]line ФМ: 0000000000871839 [11:38:03]line ФД: 227390 [11:38:03]line ФПД: 280331342545627 [11:38:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113801&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227390&fm=280331342545627&tin=02508201610067®Number=0000000000091685&sum=35000 [11:38:03]OFD Sender: Processing packet 227390 [packets to send 38, broken 37] [11:38:03]ProducePacketName [11:38:03]name=ofd_packets/00227390 [11:38:03]OFD Sender: To server: pG, [11:38:03]CommunicateWithHost lk.salyk.kg:30040 [11:38:03]ConnectInit lk.salyk.kg [11:38:03]written 0, free lines is 4095 [11:38:03]Connected sock=10 [11:38: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 33 39 0F 01 00 00 86 B6 07 01 5F 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 99 EB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3E 78 03 00 35 04 06 00 FE F5 BA 17 82 DB 06 25 8A FE 2A 5F 39 A7 [11:38: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 33 39 4F 00 00 00 23 68 47 00 8A 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3E 78 03 00 F4 03 04 00 99 96 14 67 B6 04 01 00 00 04 90 7D 3E 92 B1 C6 D7 [11:38:03]CommunicateWithHost err = 0 [11:38:03]CheckOFDResponse [11:38:03]1017 (14) - 77093643461234 [11:38:03]1041 (16) - 0000000000871839 [11:38:03]1040 (4) - 227390 [11:38:03]1012 (4) - 20.10.2024 05:35 [11:38:03]1206 (1) - 0 [11:38:03]OFD Sender: Remove packet 227390 [11:38:03]ProducePacketName [11:38:03]name=ofd_packets/00227390 [11:38:03]NVStorageDeleteData [11:38:03]Write to MH i2c: 01 00 00 9E 0D AB [11:38:03]Write i2c OK [11:38:03]MH_I2C_Read... [11:38:03]Read from MH i2c: 01 [11:38:03]MH_I2C_Read... [11:38:03]Read from MH i2c: 01 07 00 [11:38:03]MH_I2C_Read... [11:38:03]Read from MH i2c: 01 07 00 9E 0D 00 00 00 00 00 16 0D D5 [11:38:03]RasterBufferAndPrint [11:38:03]line [11:38:03]line [11:38:03]line [11:38:03]line [11:38:03]line [11:38:03]written 0, free lines is 3362 [11:38:03]process_action close_receipt done [11:38:03]requested_data is exist [11:38:03]produce_requested_data [11:38:03]requested_item fm.sn is exist - process it [11:38:03]wFMCommunicate request_size=4 [11:38:03]MH_SAM_APDU [11:38:03]CAPDU: 80 11 00 00 [11:38:03]Write to MH i2c: E2 08 00 A5 0D 80 11 00 00 00 00 00 00 2C [11:38:03]Write i2c OK [11:38:03]MH_I2C_Read... [11:38:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:03]Read from MH i2c: E2 [11:38:03]MH_I2C_Read... [11:38:03]Read from MH i2c: E2 17 00 [11:38:03]MH_I2C_Read... [11:38:03]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 33 39 90 00 83 [11:38:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:38:03]wFMCommunicate OK [11:38:03]requested_item fd.num is exist - process it [11:38:03]SAM_PROTO_GetFieldsCounters [11:38:03]wFMCommunicate request_size=4 [11:38:03]MH_SAM_APDU [11:38:03]CAPDU: 80 13 00 00 [11:38:03]Write to MH i2c: E2 08 00 A6 0D 80 13 00 00 00 00 00 00 2F [11:38:03]Write i2c OK [11:38:03]MH_I2C_Read... [11:38:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:38:03]Read from MH i2c: E2 [11:38:03]MH_I2C_Read... [11:38:03]Read from MH i2c: E2 62 00 [11:38:03]MH_I2C_Read... [11:38:03]Read from MH i2c: E2 62 00 A6 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 3E 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [11:38: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 3E 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:38:03]wFMCommunicate OK [11:38:03]SAM_PROTO_GetFieldsCounters done [11:38:03]requested_item shift.num is exist - process it [11:38:03]requested_item shift.opened is exist - process it [11:38:03]req_shift_opened [11:38:03]FM_GetShiftState [11:38:03]SAM_PROTO_GetShiftState [11:38:03]wFMCommunicate request_size=4 [11:38:03]MH_SAM_APDU [11:38:03]CAPDU: 80 13 01 00 [11:38:03]Write to MH i2c: E2 08 00 A7 0D 80 13 01 00 00 00 00 00 31 [11:38:04]Write i2c OK [11:38:04]MH_I2C_Read... [11:38:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:04]Read from MH i2c: E2 [11:38:04]MH_I2C_Read... [11:38:04]Read from MH i2c: E2 0E 00 [11:38:04]MH_I2C_Read... [11:38:04]Read from MH i2c: E2 0E 00 A7 0D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 4B [11:38:04]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:38:04]wFMCommunicate OK [11:38:04]SAM_PROTO_GetShiftState done [11:38:04]FM_GetShiftState done [11:38:04]req_shift_opened done [11:38:04]requested_item shift.open_date is exist - process it [11:38:04]req_shift_open_date [11:38:04]req_shift_open_date done [11:38:04]produce_requested_data done [11:38:04]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227390,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [11:38:04]process_action_free close_receipt [11:38:04]json_value_free [11:38:04]json_value_free done [11:38:04]process_json_proto returns [11:38:04]Send response to host [11:38:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227390,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [11:38:04]free response buf [11:38:04]execute_script done [11:38:04]execute_script returns [11:38:04]free content buf [11:38:04]Sock 9.Close socket [11:38:04]Sock 9.Thread stoped [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:09]OFD Sender: No OFD packet to send [11:39:14]OFD Sender: No OFD packet to send [11:39:16]accept exits with 8 [11:39:16]New connection [11:39:16]New thread 3066686820 created [11:39:16]Thread 3066543460 joined [11:39:16]Waiting for new connection... [11:39:16] Sock 8.Parse request [11:39:16]Sock 8.Check first char [11:39:16]Sock 8.First char is OK [11:39:16]request: POST /json_proto HTTP/1.0 [11:39:16]Method: POST [11:39:16]URL: /json_proto [11:39:16]Method is POST - this is cgi request [11:39:16]url: /json_proto [11:39:16]query_string will be loaded in cgi processing [11:39:16]execute_cgi json_proto POST (null) [11:39:16]execute_cgi path=json_proto method=POST [11:39:16]POST find Content-Length [11:39:16]Host: 172.17.44.195:8080 [11:39:16]Content-Length: 798 [11:39:16]Content-Type: application/json [11:39:16] [11:39:16]POST finish read [11:39:16]Found Content-Length = 798 [11:39:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962906", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4467733", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:39:16]execute_script... [11:39:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962906", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4467733", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:39:16]POST & json_proto [11:39:16]process_json_proto [11:39:16]json parsed OK: [11:39:16]protocol is kg_v1.0 [11:39:16]action value=close_receipt [11:39:16]process_action close_receipt [11:39:16]cmd_close_receipt [11:39:16]MH_GetDate [11:39:16]Write to MH i2c: F0 00 00 A8 0D A4 [11:39:16]Write i2c OK [11:39:16]MH_I2C_Read... [11:39:16]Read from MH i2c: F0 [11:39:16]MH_I2C_Read... [11:39:16]Read from MH i2c: F0 09 00 [11:39:16]MH_I2C_Read... [11:39:16]Read from MH i2c: F0 09 00 A8 0D 00 E4 EB 14 67 82 C9 CF 66 77 [11:39:16]GetLastDocTimeStamp 1729424281 [11:39:16]current date 1729424356 [11:39:16]FM_GetShiftState [11:39:16]SAM_PROTO_GetShiftState [11:39:16]wFMCommunicate request_size=4 [11:39:16]MH_SAM_APDU [11:39:16]CAPDU: 80 13 01 00 [11:39:16]Write to MH i2c: E2 08 00 A9 0D 80 13 01 00 00 00 00 00 33 [11:39:16]Write i2c OK [11:39:16]MH_I2C_Read... [11:39:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:16]Read from MH i2c: E2 [11:39:16]MH_I2C_Read... [11:39:16]Read from MH i2c: E2 0E 00 [11:39:16]MH_I2C_Read... [11:39:16]Read from MH i2c: E2 0E 00 A9 0D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 4D [11:39:16]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:39:16]wFMCommunicate OK [11:39:16]SAM_PROTO_GetShiftState done [11:39:16]FM_GetShiftState done [11:39:16]opened in 1729383750 [11:39:16]opened+sec_in_day 1729470150 [11:39:16]quantity*price = 0 [11:39:16]sum+1 = 1 [11:39:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 239 20.10.2024 11:39 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Талоны: Топливные Талоны 4467733 ФМ: 0000000000871839 ФД: 227391 ФПД: 27169697633107 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113917&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227391&fm=27169697633107&tin=02508201610067®Number=0000000000091685&sum=0 [11:39:17]StoreToDocumentArchive [11:39:17]shift 533 fd 227391 [11:39:17]save to /storage/0533/doc_00227391 [11:39:17]save last doc name /storage/0533/doc_00227391 to /storage/kkm_last_doc_name [11:39:17]save OK [11:39:17]Clear old archive folders... [11:39:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:39:17]tlvbuf is 0194FD30 [11:39:17]SAM_PROTO_ClearQueue [11:39:17]wFMCommunicate request_size=4 [11:39:17]MH_SAM_APDU [11:39:17]CAPDU: 80 09 00 00 [11:39:17]Write to MH i2c: E2 08 00 B6 0D 80 09 00 00 00 00 00 00 35 [11:39:17]Write i2c OK [11:39:17]MH_I2C_Read... [11:39:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:39:17]Read from MH i2c: E2 [11:39:17]MH_I2C_Read... [11:39:17]Read from MH i2c: E2 03 00 [11:39:17]MH_I2C_Read... [11:39:17]Read from MH i2c: E2 03 00 B6 0D 00 90 00 37 [11:39:17]RAPDU: 90 00 [11:39:17]wFMCommunicate OK [11:39:17]SAM_PROTO_ClearQueue done [11:39:17]KKMCreateOFDPacket [11:39:17]OFDProtocolAddRootSTLVToBuf [11:39:17]FM_MakeSignedData [11:39:17]FM_MakeSignedData [11:39:17]SAM_PROTO_SignData [11:39:17]wFMCommunicate request_size=4 [11:39:17]MH_SAM_APDU [11:39:17]CAPDU: 80 0D 01 02 [11:39:17]Write to MH i2c: E2 08 00 B7 0D 80 0D 01 02 00 00 00 00 3D [11:39:17]Write i2c OK [11:39:17]MH_I2C_Read... [11:39:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:39:17]Read from MH i2c: E2 [11:39:17]MH_I2C_Read... [11:39:17]Read from MH i2c: E2 03 00 [11:39:17]MH_I2C_Read... [11:39:17]Read from MH i2c: E2 03 00 B7 0D 00 90 00 38 [11:39:17]RAPDU: 90 00 [11:39:17]wFMCommunicate OK [11:39:17]wFMCommunicate request_size=255 [11:39:17]MH_SAM_APDU [11:39: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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 E5 EB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3F 78 03 00 35 04 06 00 18 B5 F0 2D [11:39:17]Write to MH i2c: E2 02 01 B8 0D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 E5 EB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3F 78 03 00 35 04 06 00 18 B5 F0 2D 00 00 05 [11:39:17]Write i2c OK [11:39:17]MH_I2C_Read... [11:39:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:17]Read from MH i2c: E2 [11:39:17]MH_I2C_Read... [11:39:17]Read from MH i2c: E2 03 00 [11:39:17]MH_I2C_Read... [11:39:17]Read from MH i2c: E2 03 00 B8 0D 00 90 00 39 [11:39:17]RAPDU: 90 00 [11:39:17]wFMCommunicate OK [11:39:17]wFMCommunicate request_size=7 [11:39:17]MH_SAM_APDU [11:39:17]CAPDU: 80 0D 02 02 02 13 53 [11:39:17]Write to MH i2c: E2 0A 00 B9 0D 80 0D 02 02 02 00 13 53 00 00 AA [11:39:17]Write i2c OK [11:39:17]MH_I2C_Read... [11:39:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:17]Read from MH i2c: E2 [11:39:17]MH_I2C_Read... [11:39:17]Read from MH i2c: E2 03 00 [11:39:17]MH_I2C_Read... [11:39:17]Read from MH i2c: E2 03 00 B9 0D 00 90 00 3A [11:39:17]RAPDU: 90 00 [11:39:17]wFMCommunicate OK [11:39:17]wFMCommunicate request_size=4 [11:39:17]MH_SAM_APDU [11:39:17]CAPDU: 80 0D 03 02 [11:39:17]Write to MH i2c: E2 08 00 BA 0D 80 0D 03 02 00 00 00 00 42 [11:39:17]Write i2c OK [11:39:17]MH_I2C_Read... [11:39:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:39:17]Read from MH i2c: E2 [11:39:17]MH_I2C_Read... [11:39:17]Read from MH i2c: E2 0B 00 [11:39:17]MH_I2C_Read... [11:39:17]Read from MH i2c: E2 0B 00 BA 0D 00 EF E9 D0 C2 03 8E 2D 41 90 00 AC [11:39:17]RAPDU: EF E9 D0 C2 03 8E 2D 41 90 00 [11:39:17]wFMCommunicate OK [11:39:17]SAM_PROTO_SignData done [11:39:17]FM_MakeSignedData done [11:39:17]CreateOFDProtocolMessage [11:39:17]wFMCommunicate request_size=4 [11:39:17]MH_SAM_APDU [11:39:17]CAPDU: 80 11 00 00 [11:39:17]Write to MH i2c: E2 08 00 BB 0D 80 11 00 00 00 00 00 00 42 [11:39:17]Write i2c OK [11:39:17]MH_I2C_Read... [11:39:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:17]Read from MH i2c: E2 [11:39:17]MH_I2C_Read... [11:39:17]Read from MH i2c: E2 17 00 [11:39:17]MH_I2C_Read... [11:39:17]Read from MH i2c: E2 17 00 BB 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 99 [11:39:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:39:17]wFMCommunicate OK [11:39:17]CreateOFDProtocolMessage done [11:39:17]OFDSenderStorePacket 227391 [11:39:17]StoreOFDPacket docnum=227391 [11:39:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 BA 6E 04 01 7B 93 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 E5 EB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3F 78 03 00 35 04 06 00 18 B5 F0 2D 13 53 EF E9 D0 C2 03 8E 2D 41 [11:39:17]CheckFolder [11:39:17]dirname=/storage/ofd_packets [11:39:17]CheckFolder done [11:39:17]ProducePacketName [11:39:17]name=ofd_packets/00227391 [11:39:17]NVStorageSaveData ofd_packets/00227391 [11:39:17]File name is /storage/ofd_packets/00227391 [11:39:17]Write 298 bytes [11:39:17]NVStorageSaveData done [11:39:17]OFDSenderStorePacket done [11:39:17]KKMCreateOFDPacket done [11:39:17]NVStorageSaveData kkm_last_timestamp [11:39:17]File name is /storage/kkm_last_timestamp [11:39:17]Write 4 bytes [11:39:17]NVStorageSaveData done [11:39:17]ExternCall_PrintAddStr [11:39:17]wPrintStart [11:39:17]Write to MH i2c: 01 00 00 BC 0D C9 [11:39:17]Write i2c OK [11:39:17]MH_I2C_Read... [11:39:17]Read from MH i2c: 01 [11:39:17]MH_I2C_Read... [11:39:17]Read from MH i2c: 01 07 00 [11:39:17]MH_I2C_Read... [11:39:17]Read from MH i2c: 01 07 00 BC 0D 00 00 00 00 00 FF 0F DE [11:39:17]RasterBufferAndPrint [11:39:17]line Счет N : (1)1962906 [11:39:17]line ИНН: 02508201610067 [11:39:17]line Контрольно-Кассовый Чек [11:39:17]line ПРОДАЖА [11:39:17]line ТРК (МРК, ГНК) : 31 [11:39:17]line Товар: 2710194210 [11:39:17]line ДТ-К-5 [11:39:17]line 20.000 * 0.00 [11:39:17]line = 0.00 [11:39:17]line НДС 12% НСП 1% [11:39:17]line > о реализуемом товаре [11:39:17]line ИТОГО: 0.00 [11:39:17]line НСП 1% : 0.00 [11:39:17]line НДС 12% : 0.00 [11:39:17]line Наличными: 0.00 [11:39:17]line Безнал.: 0.00 [11:39:17]line Место: АЗС № 133 "Партнер Нефть" [11:39:17]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:39:17]line СНО: Общий режим [11:39:17]line Чек 239 20.10.2024 11:39 [11:39:17]line Смена: 533 ФФД: 1.0 [11:39:17]line ЗНМ: 0300000091 [11:39:17]line РНМ: 0000000000091685 [11:39:17]line Версия ККМ: 001 [11:39:17]line Талоны: Топливные Талоны [11:39:17]line 4467733 [11:39:17]line ФМ: 0000000000871839 [11:39:17]line ФД: 227391 [11:39:17]line ФПД: 27169697633107 [11:39:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113917&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227391&fm=27169697633107&tin=02508201610067®Number=0000000000091685&sum=0 [11:39:18]OFD Sender: Processing packet 227391 [packets to send 38, broken 37] [11:39:18]ProducePacketName [11:39:18]name=ofd_packets/00227391 [11:39:18]OFD Sender: To server: pG, [11:39:18]CommunicateWithHost lk.salyk.kg:30040 [11:39:18]ConnectInit lk.salyk.kg [11:39:18]written 0, free lines is 4095 [11:39:18]Connected sock=10 [11:39:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 BA 6E 04 01 7B 93 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 E5 EB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3F 78 03 00 35 04 06 00 18 B5 F0 2D 13 53 EF E9 D0 C2 03 8E 2D 41 [11:39:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 31 10 47 00 54 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3F 78 03 00 F4 03 04 00 E4 96 14 67 B6 04 01 00 00 42 E3 DE 9F 02 EB 12 92 [11:39:18]CommunicateWithHost err = 0 [11:39:18]CheckOFDResponse [11:39:18]1017 (14) - 77093643461234 [11:39:18]1041 (16) - 0000000000871839 [11:39:18]1040 (4) - 227391 [11:39:18]1012 (4) - 20.10.2024 05:36 [11:39:18]1206 (1) - 0 [11:39:18]OFD Sender: Remove packet 227391 [11:39:18]ProducePacketName [11:39:18]name=ofd_packets/00227391 [11:39:18]NVStorageDeleteData [11:39:18]Write to MH i2c: 01 00 00 E5 0D F2 [11:39:18]Write i2c OK [11:39:18]MH_I2C_Read... [11:39:18]Read from MH i2c: 01 [11:39:18]MH_I2C_Read... [11:39:18]Read from MH i2c: 01 07 00 [11:39:18]MH_I2C_Read... [11:39:18]Read from MH i2c: 01 07 00 E5 0D 00 00 00 00 00 0B 0D 11 [11:39:18]RasterBufferAndPrint [11:39:18]line [11:39:18]line [11:39:18]line [11:39:18]line [11:39:18]line [11:39:18]written 0, free lines is 3346 [11:39:18]process_action close_receipt done [11:39:18]requested_data is exist [11:39:18]produce_requested_data [11:39:18]requested_item fm.sn is exist - process it [11:39:18]wFMCommunicate request_size=4 [11:39:18]MH_SAM_APDU [11:39:18]CAPDU: 80 11 00 00 [11:39:18]Write to MH i2c: E2 08 00 EC 0D 80 11 00 00 00 00 00 00 73 [11:39:18]Write i2c OK [11:39:18]MH_I2C_Read... [11:39:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:18]Read from MH i2c: E2 [11:39:18]MH_I2C_Read... [11:39:18]Read from MH i2c: E2 17 00 [11:39:18]MH_I2C_Read... [11:39:18]Read from MH i2c: E2 17 00 EC 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 CA [11:39:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:39:18]wFMCommunicate OK [11:39:18]requested_item fd.num is exist - process it [11:39:18]SAM_PROTO_GetFieldsCounters [11:39:18]wFMCommunicate request_size=4 [11:39:18]MH_SAM_APDU [11:39:18]CAPDU: 80 13 00 00 [11:39:18]Write to MH i2c: E2 08 00 ED 0D 80 13 00 00 00 00 00 00 76 [11:39:18]Write i2c OK [11:39:18]MH_I2C_Read... [11:39:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:39:18]Read from MH i2c: E2 [11:39:18]MH_I2C_Read... [11:39:18]Read from MH i2c: E2 62 00 [11:39:18]MH_I2C_Read... [11:39:18]Read from MH i2c: E2 62 00 ED 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 3F 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [11:39: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 3F 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:39:18]wFMCommunicate OK [11:39:18]SAM_PROTO_GetFieldsCounters done [11:39:18]requested_item shift.num is exist - process it [11:39:18]requested_item shift.opened is exist - process it [11:39:18]req_shift_opened [11:39:18]FM_GetShiftState [11:39:18]SAM_PROTO_GetShiftState [11:39:18]wFMCommunicate request_size=4 [11:39:18]MH_SAM_APDU [11:39:18]CAPDU: 80 13 01 00 [11:39:18]Write to MH i2c: E2 08 00 EE 0D 80 13 01 00 00 00 00 00 78 [11:39:18]Write i2c OK [11:39:18]MH_I2C_Read... [11:39:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:18]Read from MH i2c: E2 [11:39:18]MH_I2C_Read... [11:39:18]Read from MH i2c: E2 0E 00 [11:39:18]MH_I2C_Read... [11:39:18]Read from MH i2c: E2 0E 00 EE 0D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 92 [11:39:18]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:39:18]wFMCommunicate OK [11:39:18]SAM_PROTO_GetShiftState done [11:39:18]FM_GetShiftState done [11:39:18]req_shift_opened done [11:39:18]requested_item shift.open_date is exist - process it [11:39:18]req_shift_open_date [11:39:18]req_shift_open_date done [11:39:18]produce_requested_data done [11:39:18]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227391,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [11:39:18]process_action_free close_receipt [11:39:18]json_value_free [11:39:18]json_value_free done [11:39:18]process_json_proto returns [11:39:18]Send response to host [11:39:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227391,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [11:39:18]free response buf [11:39:18]execute_script done [11:39:18]execute_script returns [11:39:18]free content buf [11:39:18]Sock 8.Close socket [11:39:18]Sock 8.Thread stoped [11:39:19]OFD Sender: No OFD packet to send [11:39:24]OFD Sender: No OFD packet to send [11:39:29]OFD Sender: No OFD packet to send [11:39:34]OFD Sender: No OFD packet to send [11:39:39]OFD Sender: No OFD packet to send [11:39:44]OFD Sender: No OFD packet to send [11:39:49]OFD Sender: No OFD packet to send [11:39:54]OFD Sender: No OFD packet to send [11:39:59]OFD Sender: No OFD packet to send [11:40:04]OFD Sender: No OFD packet to send [11:40:09]OFD Sender: No OFD packet to send [11:40:14]OFD Sender: No OFD packet to send [11:40:19]OFD Sender: No OFD packet to send [11:40:24]OFD Sender: No OFD packet to send [11:40:29]OFD Sender: No OFD packet to send [11:40:34]OFD Sender: No OFD packet to send [11:40:39]OFD Sender: No OFD packet to send [11:40:44]OFD Sender: No OFD packet to send [11:40:49]OFD Sender: No OFD packet to send [11:40:54]OFD Sender: No OFD packet to send [11:40:59]OFD Sender: No OFD packet to send [11:41:04]OFD Sender: No OFD packet to send [11:41:09]OFD Sender: No OFD packet to send [11:41:14]OFD Sender: No OFD packet to send [11:41:19]OFD Sender: No OFD packet to send [11:41:24]OFD Sender: No OFD packet to send [11:41:29]OFD Sender: No OFD packet to send [11:41:34]OFD Sender: No OFD packet to send [11:41:39]OFD Sender: No OFD packet to send [11:41:44]OFD Sender: No OFD packet to send [11:41:49]OFD Sender: No OFD packet to send [11:41:54]OFD Sender: No OFD packet to send [11:41:59]OFD Sender: No OFD packet to send [11:42:04]OFD Sender: No OFD packet to send [11:42:09]OFD Sender: No OFD packet to send [11:42:14]OFD Sender: No OFD packet to send [11:42:19]OFD Sender: No OFD packet to send [11:42:24]OFD Sender: No OFD packet to send [11:42:29]OFD Sender: No OFD packet to send [11:42:34]OFD Sender: No OFD packet to send [11:42:39]OFD Sender: No OFD packet to send [11:42:44]OFD Sender: No OFD packet to send [11:42:48]accept exits with 9 [11:42:48]New connection [11:42:48]New thread 3066543460 created [11:42:48]Thread 3066686820 joined [11:42:48]Waiting for new connection... [11:42:48] Sock 9.Parse request [11:42:48]Sock 9.Check first char [11:42:48]Sock 9.First char is OK [11:42:48]request: POST /json_proto HTTP/1.0 [11:42:48]Method: POST [11:42:48]URL: /json_proto [11:42:48]Method is POST - this is cgi request [11:42:48]url: /json_proto [11:42:48]query_string will be loaded in cgi processing [11:42:48]execute_cgi json_proto POST (null) [11:42:48]execute_cgi path=json_proto method=POST [11:42:48]POST find Content-Length [11:42:48]Host: 172.17.44.195:8080 [11:42:48]Content-Length: 679 [11:42:48]Content-Type: application/json [11:42:48] [11:42:48]POST finish read [11:42:48]Found Content-Length = 679 [11:42:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962908", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.070, "sum" : 740.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 740.00, "total" : 740.00, "payments": [ { "type": 0, "sum" : 740.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:48]execute_script... [11:42:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962908", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.070, "sum" : 740.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 740.00, "total" : 740.00, "payments": [ { "type": 0, "sum" : 740.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:48]POST & json_proto [11:42:48]process_json_proto [11:42:48]json parsed OK: [11:42:48]protocol is kg_v1.0 [11:42:48]action value=close_receipt [11:42:48]process_action close_receipt [11:42:48]cmd_close_receipt [11:42:48]MH_GetDate [11:42:48]Write to MH i2c: F0 00 00 EF 0D EB [11:42:48]Write i2c OK [11:42:48]MH_I2C_Read... [11:42:48]Read from MH i2c: F0 [11:42:48]MH_I2C_Read... [11:42:48]Read from MH i2c: F0 09 00 [11:42:48]MH_I2C_Read... [11:42:48]Read from MH i2c: F0 09 00 EF 0D 00 B9 EC 14 67 82 C9 CF 66 94 [11:42:48]GetLastDocTimeStamp 1729424357 [11:42:48]current date 1729424569 [11:42:48]FM_GetShiftState [11:42:48]SAM_PROTO_GetShiftState [11:42:48]wFMCommunicate request_size=4 [11:42:48]MH_SAM_APDU [11:42:48]CAPDU: 80 13 01 00 [11:42:48]Write to MH i2c: E2 08 00 F0 0D 80 13 01 00 00 00 00 00 7A [11:42:48]Write i2c OK [11:42:48]MH_I2C_Read... [11:42:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:48]Read from MH i2c: E2 [11:42:48]MH_I2C_Read... [11:42:48]Read from MH i2c: E2 0E 00 [11:42:48]MH_I2C_Read... [11:42:48]Read from MH i2c: E2 0E 00 F0 0D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 94 [11:42:48]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:42:48]wFMCommunicate OK [11:42:48]SAM_PROTO_GetShiftState done [11:42:48]FM_GetShiftState done [11:42:48]opened in 1729383750 [11:42:48]opened+sec_in_day 1729470150 [11:42:48]quantity*price = 74058 [11:42:48]sum+1 = 74059 [11:42:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.58 ИТОГО: 740.00 Внесено: 740.00 СДАЧА: 0.00 НСП 1% : 6.55 НДС 12% : 78.65 Наличными: 740.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 240 20.10.2024 11:42 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227392 ФПД: 178369499607837 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T114249&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227392&fm=178369499607837&tin=02508201610067®Number=0000000000091685&sum=74000 [11:42:49]StoreToDocumentArchive [11:42:49]shift 533 fd 227392 [11:42:49]save to /storage/0533/doc_00227392 [11:42:49]save last doc name /storage/0533/doc_00227392 to /storage/kkm_last_doc_name [11:42:49]save OK [11:42:49]Clear old archive folders... [11:42:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:42:49]tlvbuf is 0185F240 [11:42:49]SAM_PROTO_ClearQueue [11:42:49]wFMCommunicate request_size=4 [11:42:49]MH_SAM_APDU [11:42:49]CAPDU: 80 09 00 00 [11:42:49]Write to MH i2c: E2 08 00 FD 0D 80 09 00 00 00 00 00 00 7C [11:42:49]Write i2c OK [11:42:49]MH_I2C_Read... [11:42:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:42:49]Read from MH i2c: E2 [11:42:49]MH_I2C_Read... [11:42:49]Read from MH i2c: E2 03 00 [11:42:49]MH_I2C_Read... [11:42:49]Read from MH i2c: E2 03 00 FD 0D 00 90 00 7E [11:42:49]RAPDU: 90 00 [11:42:49]wFMCommunicate OK [11:42:49]SAM_PROTO_ClearQueue done [11:42:49]KKMCreateOFDPacket [11:42:49]OFDProtocolAddRootSTLVToBuf [11:42:49]FM_MakeSignedData [11:42:49]FM_MakeSignedData [11:42:49]SAM_PROTO_SignData [11:42:49]wFMCommunicate request_size=4 [11:42:49]MH_SAM_APDU [11:42:49]CAPDU: 80 0D 01 02 [11:42:49]Write to MH i2c: E2 08 00 FE 0D 80 0D 01 02 00 00 00 00 84 [11:42:49]Write i2c OK [11:42:49]MH_I2C_Read... [11:42:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:42:49]Read from MH i2c: E2 [11:42:49]MH_I2C_Read... [11:42:49]Read from MH i2c: E2 03 00 [11:42:49]MH_I2C_Read... [11:42:49]Read from MH i2c: E2 03 00 FE 0D 00 90 00 7F [11:42:49]RAPDU: 90 00 [11:42:49]wFMCommunicate OK [11:42:49]wFMCommunicate request_size=255 [11:42:49]MH_SAM_APDU [11:42:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 2B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 4A 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 1E 00 00 00 00 07 04 06 00 10 21 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 B9 EC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 40 78 03 00 35 04 06 00 A2 [11:42:49]Write to MH i2c: E2 02 01 FF 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 2B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 4A 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 1E 00 00 00 00 07 04 06 00 10 21 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 B9 EC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 40 78 03 00 35 04 06 00 A2 00 00 F7 [11:42:49]Write i2c OK [11:42:49]MH_I2C_Read... [11:42:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:49]Read from MH i2c: E2 [11:42:49]MH_I2C_Read... [11:42:49]Read from MH i2c: E2 03 00 [11:42:49]MH_I2C_Read... [11:42:49]Read from MH i2c: E2 03 00 FF 0D 00 90 00 80 [11:42:49]RAPDU: 90 00 [11:42:49]wFMCommunicate OK [11:42:49]wFMCommunicate request_size=10 [11:42:49]MH_SAM_APDU [11:42:49]CAPDU: 80 0D 02 02 05 39 E2 A9 B3 1D [11:42:49]Write to MH i2c: E2 0D 00 00 0E 80 0D 02 02 05 00 39 E2 A9 B3 1D 00 00 26 [11:42:49]Write i2c OK [11:42:49]MH_I2C_Read... [11:42:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:49]Read from MH i2c: E2 [11:42:49]MH_I2C_Read... [11:42:49]Read from MH i2c: E2 03 00 [11:42:49]MH_I2C_Read... [11:42:49]Read from MH i2c: E2 03 00 00 0E 00 90 00 82 [11:42:49]RAPDU: 90 00 [11:42:49]wFMCommunicate OK [11:42:49]wFMCommunicate request_size=4 [11:42:49]MH_SAM_APDU [11:42:49]CAPDU: 80 0D 03 02 [11:42:49]Write to MH i2c: E2 08 00 01 0E 80 0D 03 02 00 00 00 00 8A [11:42:49]Write i2c OK [11:42:49]MH_I2C_Read... [11:42:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:42:49]Read from MH i2c: E2 [11:42:49]MH_I2C_Read... [11:42:49]Read from MH i2c: E2 0B 00 [11:42:49]MH_I2C_Read... [11:42:49]Read from MH i2c: E2 0B 00 01 0E 00 F5 ED D8 3C 62 C8 92 47 90 00 84 [11:42:49]RAPDU: F5 ED D8 3C 62 C8 92 47 90 00 [11:42:49]wFMCommunicate OK [11:42:49]SAM_PROTO_SignData done [11:42:49]FM_MakeSignedData done [11:42:49]CreateOFDProtocolMessage [11:42:49]wFMCommunicate request_size=4 [11:42:49]MH_SAM_APDU [11:42:49]CAPDU: 80 11 00 00 [11:42:49]Write to MH i2c: E2 08 00 02 0E 80 11 00 00 00 00 00 00 8A [11:42:49]Write i2c OK [11:42:49]MH_I2C_Read... [11:42:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:49]Read from MH i2c: E2 [11:42:49]MH_I2C_Read... [11:42:49]Read from MH i2c: E2 17 00 [11:42:49]MH_I2C_Read... [11:42:49]Read from MH i2c: E2 17 00 02 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E1 [11:42:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:42:49]wFMCommunicate OK [11:42:49]CreateOFDProtocolMessage done [11:42:49]OFDSenderStorePacket 227392 [11:42:49]StoreOFDPacket docnum=227392 [11:42:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 06 00 07 01 4F E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 2B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 4A 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 1E 00 00 00 00 07 04 06 00 10 21 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 B9 EC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 40 78 03 00 35 04 06 00 A2 39 E2 A9 B3 1D F5 ED D8 3C 62 C8 92 47 [11:42:49]CheckFolder [11:42:49]dirname=/storage/ofd_packets [11:42:49]CheckFolder done [11:42:49]ProducePacketName [11:42:49]name=ofd_packets/00227392 [11:42:49]NVStorageSaveData ofd_packets/00227392 [11:42:49]File name is /storage/ofd_packets/00227392 [11:42:49]Write 301 bytes [11:42:49]NVStorageSaveData done [11:42:49]OFDSenderStorePacket done [11:42:49]KKMCreateOFDPacket done [11:42:49]NVStorageSaveData kkm_last_timestamp [11:42:49]File name is /storage/kkm_last_timestamp [11:42:49]Write 4 bytes [11:42:49]NVStorageSaveData done [11:42:49]ExternCall_PrintAddStr [11:42:49]wPrintStart [11:42:49]Write to MH i2c: 01 00 00 03 0E 11 [11:42:49]Write i2c OK [11:42:49]MH_I2C_Read... [11:42:49]Read from MH i2c: 01 [11:42:49]MH_I2C_Read... [11:42:49]Read from MH i2c: 01 07 00 [11:42:49]MH_I2C_Read... [11:42:49]Read from MH i2c: 01 07 00 03 0E 00 00 00 00 00 FF 0F 26 [11:42:49]RasterBufferAndPrint [11:42:49]line Счет N : (1)1962908 [11:42:49]line ИНН: 02508201610067 [11:42:49]line Контрольно-Кассовый Чек [11:42:49]line ПРОДАЖА [11:42:49]line ТРК (МРК, ГНК) : 33 [11:42:49]line Товар: 2710124130 [11:42:49]line Аи-92-К-5 [11:42:49]line 11.070 * 66.90 [11:42:49]line = 740.58 [11:42:49]line НДС 12% НСП 1% [11:42:49]line > о реализуемом товаре [11:42:49]line ОКРУГЛЕНИЕ: -0.58 [11:42:49]line ИТОГО: 740.00 [11:42:49]line Внесено: 740.00 [11:42:49]line СДАЧА: 0.00 [11:42:49]line НСП 1% : 6.55 [11:42:49]line НДС 12% : 78.65 [11:42:49]line Наличными: 740.00 [11:42:49]line Безнал.: 0.00 [11:42:49]line Место: АЗС № 133 "Партнер Нефть" [11:42:49]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:42:49]line СНО: Общий режим [11:42:49]line Чек 240 20.10.2024 11:42 [11:42:49]line Смена: 533 ФФД: 1.0 [11:42:49]line ЗНМ: 0300000091 [11:42:49]line РНМ: 0000000000091685 [11:42:49]line Версия ККМ: 001 [11:42:49]line ФМ: 0000000000871839 [11:42:49]line ФД: 227392 [11:42:49]line ФПД: 178369499607837 [11:42:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T114249&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227392&fm=178369499607837&tin=02508201610067®Number=0000000000091685&sum=74000 [11:42:50]OFD Sender: Processing packet 227392 [packets to send 38, broken 37] [11:42:50]ProducePacketName [11:42:50]name=ofd_packets/00227392 [11:42:50]OFD Sender: To server: pG, [11:42:50]CommunicateWithHost lk.salyk.kg:30040 [11:42:50]ConnectInit lk.salyk.kg [11:42:50]written 0, free lines is 4095 [11:42:50]Connected sock=10 [11:42:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 06 00 07 01 4F E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 2B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 4A 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 1E 00 00 00 00 07 04 06 00 10 21 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 B9 EC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 40 78 03 00 35 04 06 00 A2 39 E2 A9 B3 1D F5 ED D8 3C 62 C8 92 47 [11:42: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 33 39 4F 00 00 00 D5 FE 47 00 0B 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 33 39 10 04 04 00 40 78 03 00 F4 03 04 00 B8 97 14 67 B6 04 01 00 00 72 D1 6D 93 60 A7 6E 3A [11:42:50]CommunicateWithHost err = 0 [11:42:50]CheckOFDResponse [11:42:50]1017 (14) - 77093643461234 [11:42:50]1041 (16) - 0000000000871839 [11:42:50]1040 (4) - 227392 [11:42:50]1012 (4) - 20.10.2024 05:40 [11:42:50]1206 (1) - 0 [11:42:50]OFD Sender: Remove packet 227392 [11:42:50]ProducePacketName [11:42:50]name=ofd_packets/00227392 [11:42:50]NVStorageDeleteData [11:42:50]Write to MH i2c: 01 00 00 2D 0E 3B [11:42:50]Write i2c OK [11:42:50]MH_I2C_Read... [11:42:50]Read from MH i2c: 01 [11:42:50]MH_I2C_Read... [11:42:50]Read from MH i2c: 01 07 00 [11:42:50]MH_I2C_Read... [11:42:50]Read from MH i2c: 01 07 00 2D 0E 00 00 00 00 00 03 0D 52 [11:42:50]RasterBufferAndPrint [11:42:50]line [11:42:50]line [11:42:50]line [11:42:50]line [11:42:50]line [11:42:50]written 0, free lines is 3337 [11:42:50]process_action close_receipt done [11:42:50]requested_data is exist [11:42:50]produce_requested_data [11:42:50]requested_item fm.sn is exist - process it [11:42:50]wFMCommunicate request_size=4 [11:42:50]MH_SAM_APDU [11:42:50]CAPDU: 80 11 00 00 [11:42:50]Write to MH i2c: E2 08 00 34 0E 80 11 00 00 00 00 00 00 BC [11:42:50]Write i2c OK [11:42:50]MH_I2C_Read... [11:42:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:50]Read from MH i2c: E2 [11:42:50]MH_I2C_Read... [11:42:50]Read from MH i2c: E2 17 00 [11:42:50]MH_I2C_Read... [11:42:50]Read from MH i2c: E2 17 00 34 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 13 [11:42:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:42:50]wFMCommunicate OK [11:42:50]requested_item fd.num is exist - process it [11:42:50]SAM_PROTO_GetFieldsCounters [11:42:50]wFMCommunicate request_size=4 [11:42:50]MH_SAM_APDU [11:42:50]CAPDU: 80 13 00 00 [11:42:50]Write to MH i2c: E2 08 00 35 0E 80 13 00 00 00 00 00 00 BF [11:42:50]Write i2c OK [11:42:50]MH_I2C_Read... [11:42:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:42:50]Read from MH i2c: E2 [11:42:50]MH_I2C_Read... [11:42:50]Read from MH i2c: E2 62 00 [11:42:50]MH_I2C_Read... [11:42:50]Read from MH i2c: E2 62 00 35 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 40 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 8A [11:42: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 40 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:42:50]wFMCommunicate OK [11:42:50]SAM_PROTO_GetFieldsCounters done [11:42:50]requested_item shift.num is exist - process it [11:42:50]requested_item shift.opened is exist - process it [11:42:50]req_shift_opened [11:42:50]FM_GetShiftState [11:42:50]SAM_PROTO_GetShiftState [11:42:50]wFMCommunicate request_size=4 [11:42:50]MH_SAM_APDU [11:42:50]CAPDU: 80 13 01 00 [11:42:50]Write to MH i2c: E2 08 00 36 0E 80 13 01 00 00 00 00 00 C1 [11:42:50]Write i2c OK [11:42:50]MH_I2C_Read... [11:42:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:51]Read from MH i2c: E2 [11:42:51]MH_I2C_Read... [11:42:51]Read from MH i2c: E2 0E 00 [11:42:51]MH_I2C_Read... [11:42:51]Read from MH i2c: E2 0E 00 36 0E 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 DB [11:42:51]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:42:51]wFMCommunicate OK [11:42:51]SAM_PROTO_GetShiftState done [11:42:51]FM_GetShiftState done [11:42:51]req_shift_opened done [11:42:51]requested_item shift.open_date is exist - process it [11:42:51]req_shift_open_date [11:42:51]req_shift_open_date done [11:42:51]produce_requested_data done [11:42:51]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227392,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [11:42:51]process_action_free close_receipt [11:42:51]json_value_free [11:42:51]json_value_free done [11:42:51]process_json_proto returns [11:42:51]Send response to host [11:42:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227392,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [11:42:51]free response buf [11:42:51]execute_script done [11:42:51]execute_script returns [11:42:51]free content buf [11:42:51]Sock 9.Close socket [11:42:51]Sock 9.Thread stoped [11:42:51]OFD Sender: No OFD packet to send [11:42:51]accept exits with 8 [11:42:51]New connection [11:42:51]New thread 3066686820 created [11:42:51]Thread 3066543460 joined [11:42:51]Waiting for new connection... [11:42:51] Sock 8.Parse request [11:42:51]Sock 8.Check first char [11:42:51]Sock 8.First char is OK [11:42:51]request: POST /json_proto HTTP/1.0 [11:42:51]Method: POST [11:42:51]URL: /json_proto [11:42:51]Method is POST - this is cgi request [11:42:51]url: /json_proto [11:42:51]query_string will be loaded in cgi processing [11:42:51]execute_cgi json_proto POST (null) [11:42:51]execute_cgi path=json_proto method=POST [11:42:51]POST find Content-Length [11:42:51]Host: 172.17.44.195:8080 [11:42:51]Content-Length: 683 [11:42:51]Content-Type: application/json [11:42:51] [11:42:51]POST finish read [11:42:51]Found Content-Length = 683 [11:42:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962909", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:51]execute_script... [11:42: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)1962909", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:51]POST & json_proto [11:42:51]process_json_proto [11:42:51]json parsed OK: [11:42:51]protocol is kg_v1.0 [11:42:51]action value=close_receipt [11:42:51]process_action close_receipt [11:42:51]cmd_close_receipt [11:42:51]MH_GetDate [11:42:51]Write to MH i2c: F0 00 00 37 0E 34 [11:42:51]Write i2c OK [11:42:51]MH_I2C_Read... [11:42:51]Read from MH i2c: F0 [11:42:51]MH_I2C_Read... [11:42:51]Read from MH i2c: F0 09 00 [11:42:51]MH_I2C_Read... [11:42:51]Read from MH i2c: F0 09 00 37 0E 00 BC EC 14 67 82 C9 CF 66 E0 [11:42:51]GetLastDocTimeStamp 1729424569 [11:42:51]current date 1729424572 [11:42:51]FM_GetShiftState [11:42:51]SAM_PROTO_GetShiftState [11:42:51]wFMCommunicate request_size=4 [11:42:51]MH_SAM_APDU [11:42:51]CAPDU: 80 13 01 00 [11:42:51]Write to MH i2c: E2 08 00 38 0E 80 13 01 00 00 00 00 00 C3 [11:42:51]Write i2c OK [11:42:51]MH_I2C_Read... [11:42:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:51]Read from MH i2c: E2 [11:42:51]MH_I2C_Read... [11:42:51]Read from MH i2c: E2 0E 00 [11:42:51]MH_I2C_Read... [11:42:51]Read from MH i2c: E2 0E 00 38 0E 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 DD [11:42:51]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:42:51]wFMCommunicate OK [11:42:51]SAM_PROTO_GetShiftState done [11:42:51]FM_GetShiftState done [11:42:51]opened in 1729383750 [11:42:51]opened+sec_in_day 1729470150 [11:42:51]quantity*price = 100021 [11:42:51]sum+1 = 100023 [11:42:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 241 20.10.2024 11:42 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227393 ФПД: 117335716114986 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T114252&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227393&fm=117335716114986&tin=02508201610067®Number=0000000000091685&sum=100000 [11:42:53]StoreToDocumentArchive [11:42:53]shift 533 fd 227393 [11:42:53]save to /storage/0533/doc_00227393 [11:42:53]save last doc name /storage/0533/doc_00227393 to /storage/kkm_last_doc_name [11:42:53]save OK [11:42:53]Clear old archive folders... [11:42:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:42:53]tlvbuf is B6E67610 [11:42:53]SAM_PROTO_ClearQueue [11:42:53]wFMCommunicate request_size=4 [11:42:53]MH_SAM_APDU [11:42:53]CAPDU: 80 09 00 00 [11:42:53]Write to MH i2c: E2 08 00 45 0E 80 09 00 00 00 00 00 00 C5 [11:42:53]Write i2c OK [11:42:53]MH_I2C_Read... [11:42:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:42:53]Read from MH i2c: E2 [11:42:53]MH_I2C_Read... [11:42:53]Read from MH i2c: E2 03 00 [11:42:53]MH_I2C_Read... [11:42:53]Read from MH i2c: E2 03 00 45 0E 00 90 00 C7 [11:42:53]RAPDU: 90 00 [11:42:53]wFMCommunicate OK [11:42:53]SAM_PROTO_ClearQueue done [11:42:53]KKMCreateOFDPacket [11:42:53]OFDProtocolAddRootSTLVToBuf [11:42:53]FM_MakeSignedData [11:42:53]FM_MakeSignedData [11:42:53]SAM_PROTO_SignData [11:42:53]wFMCommunicate request_size=4 [11:42:53]MH_SAM_APDU [11:42:53]CAPDU: 80 0D 01 02 [11:42:53]Write to MH i2c: E2 08 00 46 0E 80 0D 01 02 00 00 00 00 CD [11:42:53]Write i2c OK [11:42:53]MH_I2C_Read... [11:42:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:42:53]Read from MH i2c: E2 [11:42:53]MH_I2C_Read... [11:42:53]Read from MH i2c: E2 03 00 [11:42:53]MH_I2C_Read... [11:42:53]Read from MH i2c: E2 03 00 46 0E 00 90 00 C8 [11:42:53]RAPDU: 90 00 [11:42:53]wFMCommunicate OK [11:42:53]wFMCommunicate request_size=255 [11:42:53]MH_SAM_APDU [11:42:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 BC EC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 41 78 03 00 35 04 06 00 6A [11:42:53]Write to MH i2c: E2 02 01 47 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 BC EC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 41 78 03 00 35 04 06 00 6A 00 00 D2 [11:42:53]Write i2c OK [11:42:53]MH_I2C_Read... [11:42:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:53]Read from MH i2c: E2 [11:42:53]MH_I2C_Read... [11:42:53]Read from MH i2c: E2 03 00 [11:42:53]MH_I2C_Read... [11:42:53]Read from MH i2c: E2 03 00 47 0E 00 90 00 C9 [11:42:53]RAPDU: 90 00 [11:42:53]wFMCommunicate OK [11:42:53]wFMCommunicate request_size=10 [11:42:53]MH_SAM_APDU [11:42:53]CAPDU: 80 0D 02 02 05 B7 59 AD B2 2A [11:42:53]Write to MH i2c: E2 0D 00 48 0E 80 0D 02 02 05 00 B7 59 AD B2 2A 00 00 73 [11:42:53]Write i2c OK [11:42:53]MH_I2C_Read... [11:42:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:53]Read from MH i2c: E2 [11:42:53]MH_I2C_Read... [11:42:53]Read from MH i2c: E2 03 00 [11:42:53]MH_I2C_Read... [11:42:53]Read from MH i2c: E2 03 00 48 0E 00 90 00 CA [11:42:53]RAPDU: 90 00 [11:42:53]wFMCommunicate OK [11:42:53]wFMCommunicate request_size=4 [11:42:53]MH_SAM_APDU [11:42:53]CAPDU: 80 0D 03 02 [11:42:53]Write to MH i2c: E2 08 00 49 0E 80 0D 03 02 00 00 00 00 D2 [11:42:53]Write i2c OK [11:42:53]MH_I2C_Read... [11:42:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:42:53]Read from MH i2c: E2 [11:42:53]MH_I2C_Read... [11:42:53]Read from MH i2c: E2 0B 00 [11:42:53]MH_I2C_Read... [11:42:53]Read from MH i2c: E2 0B 00 49 0E 00 C0 B7 12 A5 9C 59 9A A3 90 00 33 [11:42:53]RAPDU: C0 B7 12 A5 9C 59 9A A3 90 00 [11:42:53]wFMCommunicate OK [11:42:53]SAM_PROTO_SignData done [11:42:53]FM_MakeSignedData done [11:42:53]CreateOFDProtocolMessage [11:42:53]wFMCommunicate request_size=4 [11:42:53]MH_SAM_APDU [11:42:53]CAPDU: 80 11 00 00 [11:42:53]Write to MH i2c: E2 08 00 4A 0E 80 11 00 00 00 00 00 00 D2 [11:42:53]Write i2c OK [11:42:53]MH_I2C_Read... [11:42:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:53]Read from MH i2c: E2 [11:42:53]MH_I2C_Read... [11:42:53]Read from MH i2c: E2 17 00 [11:42:53]MH_I2C_Read... [11:42:53]Read from MH i2c: E2 17 00 4A 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 29 [11:42:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:42:53]wFMCommunicate OK [11:42:53]CreateOFDProtocolMessage done [11:42:53]OFDSenderStorePacket 227393 [11:42:53]StoreOFDPacket docnum=227393 [11:42:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 AD 13 07 01 C8 E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 BC EC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 41 78 03 00 35 04 06 00 6A B7 59 AD B2 2A C0 B7 12 A5 9C 59 9A A3 [11:42:53]CheckFolder [11:42:53]dirname=/storage/ofd_packets [11:42:53]CheckFolder done [11:42:53]ProducePacketName [11:42:53]name=ofd_packets/00227393 [11:42:53]NVStorageSaveData ofd_packets/00227393 [11:42:53]File name is /storage/ofd_packets/00227393 [11:42:53]Write 301 bytes [11:42:53]NVStorageSaveData done [11:42:53]OFDSenderStorePacket done [11:42:53]KKMCreateOFDPacket done [11:42:53]NVStorageSaveData kkm_last_timestamp [11:42:53]File name is /storage/kkm_last_timestamp [11:42:53]Write 4 bytes [11:42:53]NVStorageSaveData done [11:42:53]ExternCall_PrintAddStr [11:42:53]wPrintStart [11:42:53]Write to MH i2c: 01 00 00 4B 0E 59 [11:42:53]Write i2c OK [11:42:53]MH_I2C_Read... [11:42:53]Read from MH i2c: 01 [11:42:53]MH_I2C_Read... [11:42:53]Read from MH i2c: 01 07 00 [11:42:53]MH_I2C_Read... [11:42:53]Read from MH i2c: 01 07 00 4B 0E 00 00 00 00 00 FF 0F 6E [11:42:53]RasterBufferAndPrint [11:42:53]line Счет N : (1)1962909 [11:42:53]line ИНН: 02508201610067 [11:42:53]line Контрольно-Кассовый Чек [11:42:53]line ПРОДАЖА [11:42:53]line ТРК (МРК, ГНК) : 54 [11:42:53]line Товар: 2710124500 [11:42:53]line Аи-95-К-5 [11:42:53]line 13.480 * 74.20 [11:42:53]line = 1000.22 [11:42:53]line НДС 12% НСП 1% [11:42:53]line > о реализуемом товаре [11:42:53]line ОКРУГЛЕНИЕ: -0.22 [11:42:53]line ИТОГО: 1000.00 [11:42:53]line Внесено: 1000.00 [11:42:53]line СДАЧА: 0.00 [11:42:53]line НСП 1% : 8.85 [11:42:53]line НДС 12% : 106.22 [11:42:53]line Наличными: 1000.00 [11:42:53]line Безнал.: 0.00 [11:42:54]line Место: АЗС № 133 "Партнер Нефть" [11:42:54]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:42:54]line СНО: Общий режим [11:42:54]line Чек 241 20.10.2024 11:42 [11:42:54]line Смена: 533 ФФД: 1.0 [11:42:54]line ЗНМ: 0300000091 [11:42:54]line РНМ: 0000000000091685 [11:42:54]line Версия ККМ: 001 [11:42:54]line ФМ: 0000000000871839 [11:42:54]line ФД: 227393 [11:42:54]line ФПД: 117335716114986 [11:42:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T114252&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227393&fm=117335716114986&tin=02508201610067®Number=0000000000091685&sum=100000 [11:42:54]OFD Sender: Processing packet 227393 [packets to send 38, broken 37] [11:42:54]ProducePacketName [11:42:54]name=ofd_packets/00227393 [11:42:54]OFD Sender: To server: pG, [11:42:54]CommunicateWithHost lk.salyk.kg:30040 [11:42:54]ConnectInit lk.salyk.kg [11:42:54]written 0, free lines is 4095 [11:42:54]Connected sock=10 [11:42:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 AD 13 07 01 C8 E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 BC EC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 41 78 03 00 35 04 06 00 6A B7 59 AD B2 2A C0 B7 12 A5 9C 59 9A A3 [11:42: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 33 39 4F 00 00 00 28 B7 47 00 68 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 33 39 10 04 04 00 41 78 03 00 F4 03 04 00 BB 97 14 67 B6 04 01 00 00 73 B1 9D F9 F3 AF 13 08 [11:42:54]CommunicateWithHost err = 0 [11:42:54]CheckOFDResponse [11:42:54]1017 (14) - 77093643461234 [11:42:54]1041 (16) - 0000000000871839 [11:42:54]1040 (4) - 227393 [11:42:54]1012 (4) - 20.10.2024 05:40 [11:42:54]1206 (1) - 0 [11:42:54]OFD Sender: Remove packet 227393 [11:42:54]ProducePacketName [11:42:54]name=ofd_packets/00227393 [11:42:54]NVStorageDeleteData [11:42:54]Write to MH i2c: 01 00 00 75 0E 83 [11:42:54]Write i2c OK [11:42:54]MH_I2C_Read... [11:42:54]Read from MH i2c: 01 [11:42:54]MH_I2C_Read... [11:42:54]Read from MH i2c: 01 07 00 [11:42:54]MH_I2C_Read... [11:42:54]Read from MH i2c: 01 07 00 75 0E 00 00 00 00 00 0D 0D A4 [11:42:54]RasterBufferAndPrint [11:42:54]line [11:42:54]line [11:42:54]line [11:42:54]line [11:42:54]line [11:42:54]written 0, free lines is 3353 [11:42:54]process_action close_receipt done [11:42:54]requested_data is exist [11:42:54]produce_requested_data [11:42:54]requested_item fm.sn is exist - process it [11:42:54]wFMCommunicate request_size=4 [11:42:54]MH_SAM_APDU [11:42:54]CAPDU: 80 11 00 00 [11:42:54]Write to MH i2c: E2 08 00 7C 0E 80 11 00 00 00 00 00 00 04 [11:42:54]Write i2c OK [11:42:54]MH_I2C_Read... [11:42:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:54]Read from MH i2c: E2 [11:42:54]MH_I2C_Read... [11:42:54]Read from MH i2c: E2 17 00 [11:42:54]MH_I2C_Read... [11:42:54]Read from MH i2c: E2 17 00 7C 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 5B [11:42:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:42:54]wFMCommunicate OK [11:42:54]requested_item fd.num is exist - process it [11:42:54]SAM_PROTO_GetFieldsCounters [11:42:54]wFMCommunicate request_size=4 [11:42:54]MH_SAM_APDU [11:42:54]CAPDU: 80 13 00 00 [11:42:54]Write to MH i2c: E2 08 00 7D 0E 80 13 00 00 00 00 00 00 07 [11:42:54]Write i2c OK [11:42:54]MH_I2C_Read... [11:42:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:42:54]Read from MH i2c: E2 [11:42:54]MH_I2C_Read... [11:42:54]Read from MH i2c: E2 62 00 [11:42:54]MH_I2C_Read... [11:42:54]Read from MH i2c: E2 62 00 7D 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 41 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [11:42: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 41 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:42:54]wFMCommunicate OK [11:42:54]SAM_PROTO_GetFieldsCounters done [11:42:54]requested_item shift.num is exist - process it [11:42:54]requested_item shift.opened is exist - process it [11:42:54]req_shift_opened [11:42:54]FM_GetShiftState [11:42:54]SAM_PROTO_GetShiftState [11:42:54]wFMCommunicate request_size=4 [11:42:54]MH_SAM_APDU [11:42:54]CAPDU: 80 13 01 00 [11:42:54]Write to MH i2c: E2 08 00 7E 0E 80 13 01 00 00 00 00 00 09 [11:42:54]Write i2c OK [11:42:54]MH_I2C_Read... [11:42:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:54]Read from MH i2c: E2 [11:42:54]MH_I2C_Read... [11:42:54]Read from MH i2c: E2 0E 00 [11:42:54]MH_I2C_Read... [11:42:54]Read from MH i2c: E2 0E 00 7E 0E 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 23 [11:42:54]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:42:54]wFMCommunicate OK [11:42:54]SAM_PROTO_GetShiftState done [11:42:54]FM_GetShiftState done [11:42:54]req_shift_opened done [11:42:54]requested_item shift.open_date is exist - process it [11:42:54]req_shift_open_date [11:42:54]req_shift_open_date done [11:42:54]produce_requested_data done [11:42:54]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227393,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [11:42:54]process_action_free close_receipt [11:42:54]json_value_free [11:42:54]json_value_free done [11:42:54]process_json_proto returns [11:42:54]Send response to host [11:42:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227393,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [11:42:54]free response buf [11:42:54]execute_script done [11:42:54]execute_script returns [11:42:54]free content buf [11:42:54]Sock 8.Close socket [11:42:54]Sock 8.Thread stoped [11:42:54]OFD Sender: No OFD packet to send [11:42:59]OFD Sender: No OFD packet to send [11:43:04]OFD Sender: No OFD packet to send [11:43:09]OFD Sender: No OFD packet to send [11:43:10]accept exits with 9 [11:43:10]New connection [11:43:10]New thread 3066543460 created [11:43:10]Thread 3066686820 joined [11:43:10]Waiting for new connection... [11:43:10] Sock 9.Parse request [11:43:10]Sock 9.Check first char [11:43:10]Sock 9.First char is OK [11:43:10]request: POST /json_proto HTTP/1.0 [11:43:10]Method: POST [11:43:10]URL: /json_proto [11:43:10]Method is POST - this is cgi request [11:43:10]url: /json_proto [11:43:10]query_string will be loaded in cgi processing [11:43:10]execute_cgi json_proto POST (null) [11:43:10]execute_cgi path=json_proto method=POST [11:43:10]POST find Content-Length [11:43:10]Host: 172.17.44.195:8080 [11:43:10]Content-Length: 678 [11:43:10]Content-Type: application/json [11:43:10] [11:43:10]POST finish read [11:43:10]Found Content-Length = 678 [11:43:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962910", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:10]execute_script... [11:43:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962910", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:10]POST & json_proto [11:43:10]process_json_proto [11:43:10]json parsed OK: [11:43:10]protocol is kg_v1.0 [11:43:10]action value=close_receipt [11:43:10]process_action close_receipt [11:43:10]cmd_close_receipt [11:43:10]MH_GetDate [11:43:10]Write to MH i2c: F0 00 00 7F 0E 7C [11:43:10]Write i2c OK [11:43:10]MH_I2C_Read... [11:43:10]Read from MH i2c: F0 [11:43:10]MH_I2C_Read... [11:43:10]Read from MH i2c: F0 09 00 [11:43:10]MH_I2C_Read... [11:43:10]Read from MH i2c: F0 09 00 7F 0E 00 CF EC 14 67 82 C9 CF 66 3B [11:43:10]GetLastDocTimeStamp 1729424572 [11:43:10]current date 1729424591 [11:43:10]FM_GetShiftState [11:43:10]SAM_PROTO_GetShiftState [11:43:10]wFMCommunicate request_size=4 [11:43:10]MH_SAM_APDU [11:43:10]CAPDU: 80 13 01 00 [11:43:10]Write to MH i2c: E2 08 00 80 0E 80 13 01 00 00 00 00 00 0B [11:43:10]Write i2c OK [11:43:10]MH_I2C_Read... [11:43:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:10]Read from MH i2c: E2 [11:43:10]MH_I2C_Read... [11:43:10]Read from MH i2c: E2 0E 00 [11:43:10]MH_I2C_Read... [11:43:10]Read from MH i2c: E2 0E 00 80 0E 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 25 [11:43:10]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:43:10]wFMCommunicate OK [11:43:10]SAM_PROTO_GetShiftState done [11:43:10]FM_GetShiftState done [11:43:10]opened in 1729383750 [11:43:10]opened+sec_in_day 1729470150 [11:43:10]quantity*price = 50041 [11:43:10]sum+1 = 50042 [11:43:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 242 20.10.2024 11:43 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227394 ФПД: 280625584224367 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T114311&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227394&fm=280625584224367&tin=02508201610067®Number=0000000000091685&sum=50000 [11:43:11]StoreToDocumentArchive [11:43:11]shift 533 fd 227394 [11:43:11]save to /storage/0533/doc_00227394 [11:43:11]save last doc name /storage/0533/doc_00227394 to /storage/kkm_last_doc_name [11:43:11]save OK [11:43:11]Clear old archive folders... [11:43:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:43:11]tlvbuf is 018644A0 [11:43:11]SAM_PROTO_ClearQueue [11:43:11]wFMCommunicate request_size=4 [11:43:11]MH_SAM_APDU [11:43:11]CAPDU: 80 09 00 00 [11:43:11]Write to MH i2c: E2 08 00 8D 0E 80 09 00 00 00 00 00 00 0D [11:43:11]Write i2c OK [11:43:11]MH_I2C_Read... [11:43:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:43:11]Read from MH i2c: E2 [11:43:11]MH_I2C_Read... [11:43:11]Read from MH i2c: E2 03 00 [11:43:11]MH_I2C_Read... [11:43:11]Read from MH i2c: E2 03 00 8D 0E 00 90 00 0F [11:43:11]RAPDU: 90 00 [11:43:11]wFMCommunicate OK [11:43:11]SAM_PROTO_ClearQueue done [11:43:11]KKMCreateOFDPacket [11:43:11]OFDProtocolAddRootSTLVToBuf [11:43:11]FM_MakeSignedData [11:43:11]FM_MakeSignedData [11:43:11]SAM_PROTO_SignData [11:43:11]wFMCommunicate request_size=4 [11:43:11]MH_SAM_APDU [11:43:11]CAPDU: 80 0D 01 02 [11:43:11]Write to MH i2c: E2 08 00 8E 0E 80 0D 01 02 00 00 00 00 15 [11:43:11]Write i2c OK [11:43:11]MH_I2C_Read... [11:43:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:43:11]Read from MH i2c: E2 [11:43:11]MH_I2C_Read... [11:43:11]Read from MH i2c: E2 03 00 [11:43:11]MH_I2C_Read... [11:43:11]Read from MH i2c: E2 03 00 8E 0E 00 90 00 10 [11:43:11]RAPDU: 90 00 [11:43:11]wFMCommunicate OK [11:43:11]wFMCommunicate request_size=255 [11:43:11]MH_SAM_APDU [11:43:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 CF EC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 42 78 03 00 35 04 06 00 FF [11:43:11]Write to MH i2c: E2 02 01 8F 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 CF EC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 42 78 03 00 35 04 06 00 FF 00 00 A7 [11:43:11]Write i2c OK [11:43:11]MH_I2C_Read... [11:43:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:11]Read from MH i2c: E2 [11:43:11]MH_I2C_Read... [11:43:11]Read from MH i2c: E2 03 00 [11:43:11]MH_I2C_Read... [11:43:11]Read from MH i2c: E2 03 00 8F 0E 00 90 00 11 [11:43:11]RAPDU: 90 00 [11:43:11]wFMCommunicate OK [11:43:11]wFMCommunicate request_size=10 [11:43:11]MH_SAM_APDU [11:43:11]CAPDU: 80 0D 02 02 05 3A 3C 43 38 6F [11:43:11]Write to MH i2c: E2 0D 00 90 0E 80 0D 02 02 05 00 3A 3C 43 38 6F 00 00 82 [11:43:11]Write i2c OK [11:43:11]MH_I2C_Read... [11:43:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:11]Read from MH i2c: E2 [11:43:11]MH_I2C_Read... [11:43:11]Read from MH i2c: E2 03 00 [11:43:11]MH_I2C_Read... [11:43:11]Read from MH i2c: E2 03 00 90 0E 00 90 00 12 [11:43:11]RAPDU: 90 00 [11:43:11]wFMCommunicate OK [11:43:11]wFMCommunicate request_size=4 [11:43:11]MH_SAM_APDU [11:43:11]CAPDU: 80 0D 03 02 [11:43:11]Write to MH i2c: E2 08 00 91 0E 80 0D 03 02 00 00 00 00 1A [11:43:11]Write i2c OK [11:43:11]MH_I2C_Read... [11:43:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:43:12]Read from MH i2c: E2 [11:43:12]MH_I2C_Read... [11:43:12]Read from MH i2c: E2 0B 00 [11:43:12]MH_I2C_Read... [11:43:12]Read from MH i2c: E2 0B 00 91 0E 00 E1 4B 33 FA D2 3F 3A B5 90 00 74 [11:43:12]RAPDU: E1 4B 33 FA D2 3F 3A B5 90 00 [11:43:12]wFMCommunicate OK [11:43:12]SAM_PROTO_SignData done [11:43:12]FM_MakeSignedData done [11:43:12]CreateOFDProtocolMessage [11:43:12]wFMCommunicate request_size=4 [11:43:12]MH_SAM_APDU [11:43:12]CAPDU: 80 11 00 00 [11:43:12]Write to MH i2c: E2 08 00 92 0E 80 11 00 00 00 00 00 00 1A [11:43:12]Write i2c OK [11:43:12]MH_I2C_Read... [11:43:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:12]Read from MH i2c: E2 [11:43:12]MH_I2C_Read... [11:43:12]Read from MH i2c: E2 17 00 [11:43:12]MH_I2C_Read... [11:43:12]Read from MH i2c: E2 17 00 92 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 71 [11:43:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:43:12]wFMCommunicate OK [11:43:12]CreateOFDProtocolMessage done [11:43:12]OFDSenderStorePacket 227394 [11:43:12]StoreOFDPacket docnum=227394 [11:43:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 E9 45 07 01 2A 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 CF EC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 42 78 03 00 35 04 06 00 FF 3A 3C 43 38 6F E1 4B 33 FA D2 3F 3A B5 [11:43:12]CheckFolder [11:43:12]dirname=/storage/ofd_packets [11:43:12]CheckFolder done [11:43:12]ProducePacketName [11:43:12]name=ofd_packets/00227394 [11:43:12]NVStorageSaveData ofd_packets/00227394 [11:43:12]File name is /storage/ofd_packets/00227394 [11:43:12]Write 301 bytes [11:43:12]NVStorageSaveData done [11:43:12]OFDSenderStorePacket done [11:43:12]KKMCreateOFDPacket done [11:43:12]NVStorageSaveData kkm_last_timestamp [11:43:12]File name is /storage/kkm_last_timestamp [11:43:12]Write 4 bytes [11:43:12]NVStorageSaveData done [11:43:12]ExternCall_PrintAddStr [11:43:12]wPrintStart [11:43:12]Write to MH i2c: 01 00 00 93 0E A1 [11:43:12]Write i2c OK [11:43:12]MH_I2C_Read... [11:43:12]Read from MH i2c: 01 [11:43:12]MH_I2C_Read... [11:43:12]Read from MH i2c: 01 07 00 [11:43:12]MH_I2C_Read... [11:43:12]Read from MH i2c: 01 07 00 93 0E 00 00 00 00 00 FF 0F B6 [11:43:12]RasterBufferAndPrint [11:43:12]line Счет N : (1)1962910 [11:43:12]line ИНН: 02508201610067 [11:43:12]line Контрольно-Кассовый Чек [11:43:12]line ПРОДАЖА [11:43:12]line ТРК (МРК, ГНК) : 43 [11:43:12]line Товар: 2710124130 [11:43:12]line Аи-92-К-5 [11:43:12]line 7.480 * 66.90 [11:43:12]line = 500.41 [11:43:12]line НДС 12% НСП 1% [11:43:12]line > о реализуемом товаре [11:43:12]line ОКРУГЛЕНИЕ: -0.41 [11:43:12]line ИТОГО: 500.00 [11:43:12]line Внесено: 500.00 [11:43:12]line СДАЧА: 0.00 [11:43:12]line НСП 1% : 4.43 [11:43:12]line НДС 12% : 53.14 [11:43:12]line Наличными: 500.00 [11:43:12]line Безнал.: 0.00 [11:43:12]line Место: АЗС № 133 "Партнер Нефть" [11:43:12]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:43:12]line СНО: Общий режим [11:43:12]line Чек 242 20.10.2024 11:43 [11:43:12]line Смена: 533 ФФД: 1.0 [11:43:12]line ЗНМ: 0300000091 [11:43:12]line РНМ: 0000000000091685 [11:43:12]line Версия ККМ: 001 [11:43:12]line ФМ: 0000000000871839 [11:43:12]line ФД: 227394 [11:43:12]line ФПД: 280625584224367 [11:43:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T114311&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227394&fm=280625584224367&tin=02508201610067®Number=0000000000091685&sum=50000 [11:43:12]written 0, free lines is 4095 [11:43:12]OFD Sender: Processing packet 227394 [packets to send 38, broken 37] [11:43:12]ProducePacketName [11:43:12]name=ofd_packets/00227394 [11:43:12]OFD Sender: To server: pG, [11:43:12]CommunicateWithHost lk.salyk.kg:30040 [11:43:12]ConnectInit lk.salyk.kg [11:43:12]Connected sock=10 [11:43:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 E9 45 07 01 2A 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 CF EC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 42 78 03 00 35 04 06 00 FF 3A 3C 43 38 6F E1 4B 33 FA D2 3F 3A B5 [11:43:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 8D 56 47 00 AF A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 42 78 03 00 F4 03 04 00 CE 97 14 67 B6 04 01 00 00 39 FB 86 4F D4 64 87 43 [11:43:12]CommunicateWithHost err = 0 [11:43:12]CheckOFDResponse [11:43:12]1017 (14) - 77093643461234 [11:43:12]1041 (16) - 0000000000871839 [11:43:12]1040 (4) - 227394 [11:43:12]1012 (4) - 20.10.2024 05:40 [11:43:12]1206 (1) - 0 [11:43:12]OFD Sender: Remove packet 227394 [11:43:12]ProducePacketName [11:43:12]name=ofd_packets/00227394 [11:43:12]NVStorageDeleteData [11:43:12]Write to MH i2c: 01 00 00 BD 0E CB [11:43:12]Write i2c OK [11:43:12]MH_I2C_Read... [11:43:12]Read from MH i2c: 01 [11:43:12]MH_I2C_Read... [11:43:12]Read from MH i2c: 01 07 00 [11:43:12]MH_I2C_Read... [11:43:12]Read from MH i2c: 01 07 00 BD 0E 00 00 00 00 00 1A 0D F9 [11:43:12]RasterBufferAndPrint [11:43:12]line [11:43:12]line [11:43:12]line [11:43:12]line [11:43:12]line [11:43:12]written 0, free lines is 3366 [11:43:12]process_action close_receipt done [11:43:12]requested_data is exist [11:43:12]produce_requested_data [11:43:12]requested_item fm.sn is exist - process it [11:43:12]wFMCommunicate request_size=4 [11:43:12]MH_SAM_APDU [11:43:12]CAPDU: 80 11 00 00 [11:43:12]Write to MH i2c: E2 08 00 C4 0E 80 11 00 00 00 00 00 00 4C [11:43:12]Write i2c OK [11:43:12]MH_I2C_Read... [11:43:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:12]Read from MH i2c: E2 [11:43:12]MH_I2C_Read... [11:43:12]Read from MH i2c: E2 17 00 [11:43:12]MH_I2C_Read... [11:43:12]Read from MH i2c: E2 17 00 C4 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A3 [11:43:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:43:12]wFMCommunicate OK [11:43:12]requested_item fd.num is exist - process it [11:43:12]SAM_PROTO_GetFieldsCounters [11:43:12]wFMCommunicate request_size=4 [11:43:12]MH_SAM_APDU [11:43:12]CAPDU: 80 13 00 00 [11:43:12]Write to MH i2c: E2 08 00 C5 0E 80 13 00 00 00 00 00 00 4F [11:43:12]Write i2c OK [11:43:12]MH_I2C_Read... [11:43:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:43:12]Read from MH i2c: E2 [11:43:12]MH_I2C_Read... [11:43:12]Read from MH i2c: E2 62 00 [11:43:12]MH_I2C_Read... [11:43:12]Read from MH i2c: E2 62 00 C5 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 42 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 22 [11:43: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 42 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:43:12]wFMCommunicate OK [11:43:12]SAM_PROTO_GetFieldsCounters done [11:43:12]requested_item shift.num is exist - process it [11:43:12]requested_item shift.opened is exist - process it [11:43:12]req_shift_opened [11:43:12]FM_GetShiftState [11:43:12]SAM_PROTO_GetShiftState [11:43:12]wFMCommunicate request_size=4 [11:43:12]MH_SAM_APDU [11:43:12]CAPDU: 80 13 01 00 [11:43:12]Write to MH i2c: E2 08 00 C6 0E 80 13 01 00 00 00 00 00 51 [11:43:12]Write i2c OK [11:43:12]MH_I2C_Read... [11:43:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:12]Read from MH i2c: E2 [11:43:12]MH_I2C_Read... [11:43:12]Read from MH i2c: E2 0E 00 [11:43:12]MH_I2C_Read... [11:43:12]Read from MH i2c: E2 0E 00 C6 0E 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 6B [11:43:12]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:43:12]wFMCommunicate OK [11:43:12]SAM_PROTO_GetShiftState done [11:43:12]FM_GetShiftState done [11:43:12]req_shift_opened done [11:43:12]requested_item shift.open_date is exist - process it [11:43:12]req_shift_open_date [11:43:12]req_shift_open_date done [11:43:12]produce_requested_data done [11:43:12]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227394,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [11:43:12]process_action_free close_receipt [11:43:12]json_value_free [11:43:12]json_value_free done [11:43:12]process_json_proto returns [11:43:12]Send response to host [11:43:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227394,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [11:43:12]free response buf [11:43:12]execute_script done [11:43:12]execute_script returns [11:43:12]free content buf [11:43:12]Sock 9.Close socket [11:43:12]Sock 9.Thread stoped [11:43:12]OFD Sender: No OFD packet to send [11:43:17]OFD Sender: No OFD packet to send [11:43:22]OFD Sender: No OFD packet to send [11:43:28]OFD Sender: No OFD packet to send [11:43:33]OFD Sender: No OFD packet to send [11:43:38]OFD Sender: No OFD packet to send [11:43:43]OFD Sender: No OFD packet to send [11:43:48]OFD Sender: No OFD packet to send [11:43:53]OFD Sender: No OFD packet to send [11:43:58]OFD Sender: No OFD packet to send [11:44:03]OFD Sender: No OFD packet to send [11:44:08]OFD Sender: No OFD packet to send [11:44:13]OFD Sender: No OFD packet to send [11:44:18]OFD Sender: No OFD packet to send [11:44:23]OFD Sender: No OFD packet to send [11:44:28]OFD Sender: No OFD packet to send [11:44:33]OFD Sender: No OFD packet to send [11:44:38]OFD Sender: No OFD packet to send [11:44:43]OFD Sender: No OFD packet to send [11:44:48]OFD Sender: No OFD packet to send [11:44:53]OFD Sender: No OFD packet to send [11:44:58]OFD Sender: No OFD packet to send [11:45:03]OFD Sender: No OFD packet to send [11:45:08]OFD Sender: No OFD packet to send [11:45:13]OFD Sender: No OFD packet to send [11:45:18]OFD Sender: No OFD packet to send [11:45:23]OFD Sender: No OFD packet to send [11:45:28]OFD Sender: No OFD packet to send [11:45:33]OFD Sender: No OFD packet to send [11:45:36]accept exits with 8 [11:45:36]New connection [11:45:36]New thread 3066686820 created [11:45:36]Thread 3066543460 joined [11:45:36]Waiting for new connection... [11:45:36] Sock 8.Parse request [11:45:36]Sock 8.Check first char [11:45:36]Sock 8.First char is OK [11:45:36]request: POST /json_proto HTTP/1.0 [11:45:36]Method: POST [11:45:36]URL: /json_proto [11:45:36]Method is POST - this is cgi request [11:45:36]url: /json_proto [11:45:36]query_string will be loaded in cgi processing [11:45:36]execute_cgi json_proto POST (null) [11:45:36]execute_cgi path=json_proto method=POST [11:45:36]POST find Content-Length [11:45:36]Host: 172.17.44.195:8080 [11:45:36]Content-Length: 678 [11:45:36]Content-Type: application/json [11:45:36] [11:45:36]POST finish read [11:45:36]Found Content-Length = 678 [11:45:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962912", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:45:36]execute_script... [11:45: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)1962912", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:45:36]POST & json_proto [11:45:36]process_json_proto [11:45:36]json parsed OK: [11:45:36]protocol is kg_v1.0 [11:45:36]action value=close_receipt [11:45:36]process_action close_receipt [11:45:36]cmd_close_receipt [11:45:36]MH_GetDate [11:45:36]Write to MH i2c: F0 00 00 C7 0E C4 [11:45:36]Write i2c OK [11:45:36]MH_I2C_Read... [11:45:36]Read from MH i2c: F0 [11:45:36]MH_I2C_Read... [11:45:36]Read from MH i2c: F0 09 00 [11:45:36]MH_I2C_Read... [11:45:36]Read from MH i2c: F0 09 00 C7 0E 00 60 ED 14 67 82 C9 CF 66 15 [11:45:36]GetLastDocTimeStamp 1729424591 [11:45:36]current date 1729424736 [11:45:36]FM_GetShiftState [11:45:36]SAM_PROTO_GetShiftState [11:45:36]wFMCommunicate request_size=4 [11:45:36]MH_SAM_APDU [11:45:36]CAPDU: 80 13 01 00 [11:45:36]Write to MH i2c: E2 08 00 C8 0E 80 13 01 00 00 00 00 00 53 [11:45:36]Write i2c OK [11:45:36]MH_I2C_Read... [11:45:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:36]Read from MH i2c: E2 [11:45:36]MH_I2C_Read... [11:45:36]Read from MH i2c: E2 0E 00 [11:45:36]MH_I2C_Read... [11:45:36]Read from MH i2c: E2 0E 00 C8 0E 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 6D [11:45:36]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:45:36]wFMCommunicate OK [11:45:36]SAM_PROTO_GetShiftState done [11:45:36]FM_GetShiftState done [11:45:36]opened in 1729383750 [11:45:36]opened+sec_in_day 1729470150 [11:45:36]quantity*price = 40006 [11:45:36]sum+1 = 40007 [11:45:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 243 20.10.2024 11:45 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227395 ФПД: 12093122529998 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T114537&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227395&fm=12093122529998&tin=02508201610067®Number=0000000000091685&sum=40000 [11:45:37]StoreToDocumentArchive [11:45:37]shift 533 fd 227395 [11:45:37]save to /storage/0533/doc_00227395 [11:45:37]save last doc name /storage/0533/doc_00227395 to /storage/kkm_last_doc_name [11:45:37]save OK [11:45:37]Clear old archive folders... [11:45:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:45:37]tlvbuf is 019532E0 [11:45:37]SAM_PROTO_ClearQueue [11:45:37]wFMCommunicate request_size=4 [11:45:37]MH_SAM_APDU [11:45:37]CAPDU: 80 09 00 00 [11:45:37]Write to MH i2c: E2 08 00 D5 0E 80 09 00 00 00 00 00 00 55 [11:45:37]Write i2c OK [11:45:37]MH_I2C_Read... [11:45:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:45:37]Read from MH i2c: E2 [11:45:37]MH_I2C_Read... [11:45:37]Read from MH i2c: E2 03 00 [11:45:37]MH_I2C_Read... [11:45:37]Read from MH i2c: E2 03 00 D5 0E 00 90 00 57 [11:45:37]RAPDU: 90 00 [11:45:37]wFMCommunicate OK [11:45:37]SAM_PROTO_ClearQueue done [11:45:37]KKMCreateOFDPacket [11:45:37]OFDProtocolAddRootSTLVToBuf [11:45:37]FM_MakeSignedData [11:45:37]FM_MakeSignedData [11:45:37]SAM_PROTO_SignData [11:45:37]wFMCommunicate request_size=4 [11:45:37]MH_SAM_APDU [11:45:37]CAPDU: 80 0D 01 02 [11:45:37]Write to MH i2c: E2 08 00 D6 0E 80 0D 01 02 00 00 00 00 5D [11:45:37]Write i2c OK [11:45:37]MH_I2C_Read... [11:45:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:45:37]Read from MH i2c: E2 [11:45:37]MH_I2C_Read... [11:45:37]Read from MH i2c: E2 03 00 [11:45:37]MH_I2C_Read... [11:45:37]Read from MH i2c: E2 03 00 D6 0E 00 90 00 58 [11:45:37]RAPDU: 90 00 [11:45:37]wFMCommunicate OK [11:45:37]wFMCommunicate request_size=255 [11:45:37]MH_SAM_APDU [11:45:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 61 ED 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 43 78 03 00 35 04 06 00 0A [11:45:37]Write to MH i2c: E2 02 01 D7 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 61 ED 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 43 78 03 00 35 04 06 00 0A 00 00 5E [11:45:37]Write i2c OK [11:45:37]MH_I2C_Read... [11:45:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:37]Read from MH i2c: E2 [11:45:37]MH_I2C_Read... [11:45:37]Read from MH i2c: E2 03 00 [11:45:37]MH_I2C_Read... [11:45:37]Read from MH i2c: E2 03 00 D7 0E 00 90 00 59 [11:45:37]RAPDU: 90 00 [11:45:37]wFMCommunicate OK [11:45:37]wFMCommunicate request_size=10 [11:45:37]MH_SAM_APDU [11:45:37]CAPDU: 80 0D 02 02 05 FF A6 45 CA CE [11:45:37]Write to MH i2c: E2 0D 00 D8 0E 80 0D 02 02 05 00 FF A6 45 CA CE 00 00 EC [11:45:37]Write i2c OK [11:45:37]MH_I2C_Read... [11:45:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:37]Read from MH i2c: E2 [11:45:37]MH_I2C_Read... [11:45:37]Read from MH i2c: E2 03 00 [11:45:37]MH_I2C_Read... [11:45:37]Read from MH i2c: E2 03 00 D8 0E 00 90 00 5A [11:45:37]RAPDU: 90 00 [11:45:37]wFMCommunicate OK [11:45:37]wFMCommunicate request_size=4 [11:45:37]MH_SAM_APDU [11:45:37]CAPDU: 80 0D 03 02 [11:45:37]Write to MH i2c: E2 08 00 D9 0E 80 0D 03 02 00 00 00 00 62 [11:45:37]Write i2c OK [11:45:37]MH_I2C_Read... [11:45:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:45:37]Read from MH i2c: E2 [11:45:37]MH_I2C_Read... [11:45:37]Read from MH i2c: E2 0B 00 [11:45:37]MH_I2C_Read... [11:45:37]Read from MH i2c: E2 0B 00 D9 0E 00 FD F8 65 61 15 86 00 A6 90 00 5F [11:45:37]RAPDU: FD F8 65 61 15 86 00 A6 90 00 [11:45:37]wFMCommunicate OK [11:45:37]SAM_PROTO_SignData done [11:45:37]FM_MakeSignedData done [11:45:37]CreateOFDProtocolMessage [11:45:37]wFMCommunicate request_size=4 [11:45:37]MH_SAM_APDU [11:45:37]CAPDU: 80 11 00 00 [11:45:37]Write to MH i2c: E2 08 00 DA 0E 80 11 00 00 00 00 00 00 62 [11:45:37]Write i2c OK [11:45:37]MH_I2C_Read... [11:45:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:37]Read from MH i2c: E2 [11:45:37]MH_I2C_Read... [11:45:37]Read from MH i2c: E2 17 00 [11:45:37]MH_I2C_Read... [11:45:37]Read from MH i2c: E2 17 00 DA 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B9 [11:45:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:45:37]wFMCommunicate OK [11:45:37]CreateOFDProtocolMessage done [11:45:37]OFDSenderStorePacket 227395 [11:45:37]StoreOFDPacket docnum=227395 [11:45:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 CB 7F 07 01 85 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 61 ED 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 43 78 03 00 35 04 06 00 0A FF A6 45 CA CE FD F8 65 61 15 86 00 A6 [11:45:37]CheckFolder [11:45:37]dirname=/storage/ofd_packets [11:45:37]CheckFolder done [11:45:37]ProducePacketName [11:45:37]name=ofd_packets/00227395 [11:45:37]NVStorageSaveData ofd_packets/00227395 [11:45:37]File name is /storage/ofd_packets/00227395 [11:45:37]Write 301 bytes [11:45:37]NVStorageSaveData done [11:45:37]OFDSenderStorePacket done [11:45:37]KKMCreateOFDPacket done [11:45:37]NVStorageSaveData kkm_last_timestamp [11:45:37]File name is /storage/kkm_last_timestamp [11:45:37]Write 4 bytes [11:45:37]NVStorageSaveData done [11:45:37]ExternCall_PrintAddStr [11:45:37]wPrintStart [11:45:37]Write to MH i2c: 01 00 00 DB 0E E9 [11:45:37]OFD Sender: Processing packet 227395 [packets to send 38, broken 37] [11:45:37]ProducePacketName [11:45:37]name=ofd_packets/00227395 [11:45:37]OFD Sender: To server: pG, [11:45:37]CommunicateWithHost lk.salyk.kg:30040 [11:45:37]ConnectInit lk.salyk.kg [11:45:37]Write i2c OK [11:45:37]MH_I2C_Read... [11:45:37]Read from MH i2c: 01 [11:45:37]MH_I2C_Read... [11:45:37]Read from MH i2c: 01 07 00 [11:45:37]MH_I2C_Read... [11:45:37]Read from MH i2c: 01 07 00 DB 0E 00 00 00 00 00 FF 0F FE [11:45:37]RasterBufferAndPrint [11:45:37]line Счет N : (1)1962912 [11:45:37]line ИНН: 02508201610067 [11:45:37]line Контрольно-Кассовый Чек [11:45:37]line ПРОДАЖА [11:45:37]line ТРК (МРК, ГНК) : 53 [11:45:37]line Товар: 2710124130 [11:45:37]line Аи-92-К-5 [11:45:37]line 5.980 * 66.90 [11:45:37]line = 400.06 [11:45:37]line НДС 12% НСП 1% [11:45:37]line > о реализуемом товаре [11:45:37]line ОКРУГЛЕНИЕ: -0.06 [11:45:37]line ИТОГО: 400.00 [11:45:37]line Внесено: 400.00 [11:45:37]line СДАЧА: 0.00 [11:45:37]line НСП 1% : 3.54 [11:45:37]line НДС 12% : 42.48 [11:45:37]line Наличными: 400.00 [11:45:37]line Безнал.: 0.00 [11:45:37]line Место: АЗС № 133 "Партнер Нефть" [11:45:37]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:45:37]line СНО: Общий режим [11:45:37]line Чек 243 20.10.2024 11:45 [11:45:37]line Смена: 533 ФФД: 1.0 [11:45:37]line ЗНМ: 0300000091 [11:45:37]line РНМ: 0000000000091685 [11:45:37]line Версия ККМ: 001 [11:45:37]line ФМ: 0000000000871839 [11:45:37]line ФД: 227395 [11:45:37]line ФПД: 12093122529998 [11:45:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T114537&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227395&fm=12093122529998&tin=02508201610067®Number=0000000000091685&sum=40000 [11:45:38]Connected sock=10 [11:45: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 33 39 0F 01 00 00 CB 7F 07 01 85 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 61 ED 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 43 78 03 00 35 04 06 00 0A FF A6 45 CA CE FD F8 65 61 15 86 00 A6 [11:45:38]written 0, free lines is 4095 [11:45: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 33 39 4F 00 00 00 0F B8 47 00 26 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 33 39 10 04 04 00 43 78 03 00 F4 03 04 00 5F 98 14 67 B6 04 01 00 00 7F EC 82 AD F4 21 9F A2 [11:45:38]CommunicateWithHost err = 0 [11:45:38]CheckOFDResponse [11:45:38]1017 (14) - 77093643461234 [11:45:38]1041 (16) - 0000000000871839 [11:45:38]1040 (4) - 227395 [11:45:38]1012 (4) - 20.10.2024 05:42 [11:45:38]1206 (1) - 0 [11:45:38]OFD Sender: Remove packet 227395 [11:45:38]ProducePacketName [11:45:38]name=ofd_packets/00227395 [11:45:38]NVStorageDeleteData [11:45:38]Write to MH i2c: 01 00 00 05 0F 14 [11:45:38]Write i2c OK [11:45:38]MH_I2C_Read... [11:45:38]Read from MH i2c: 01 [11:45:38]MH_I2C_Read... [11:45:38]Read from MH i2c: 01 07 00 [11:45:38]MH_I2C_Read... [11:45:38]Read from MH i2c: 01 07 00 05 0F 00 00 00 00 00 08 0D 30 [11:45:38]RasterBufferAndPrint [11:45:38]line [11:45:38]line [11:45:38]line [11:45:38]line [11:45:38]line [11:45:38]written 0, free lines is 3342 [11:45:38]process_action close_receipt done [11:45:38]requested_data is exist [11:45:38]produce_requested_data [11:45:38]requested_item fm.sn is exist - process it [11:45:38]wFMCommunicate request_size=4 [11:45:38]MH_SAM_APDU [11:45:38]CAPDU: 80 11 00 00 [11:45:38]Write to MH i2c: E2 08 00 0C 0F 80 11 00 00 00 00 00 00 95 [11:45:38]Write i2c OK [11:45:38]MH_I2C_Read... [11:45:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:38]Read from MH i2c: E2 [11:45:38]MH_I2C_Read... [11:45:38]Read from MH i2c: E2 17 00 [11:45:38]MH_I2C_Read... [11:45:38]Read from MH i2c: E2 17 00 0C 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 EC [11:45:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:45:38]wFMCommunicate OK [11:45:38]requested_item fd.num is exist - process it [11:45:38]SAM_PROTO_GetFieldsCounters [11:45:38]wFMCommunicate request_size=4 [11:45:38]MH_SAM_APDU [11:45:38]CAPDU: 80 13 00 00 [11:45:38]Write to MH i2c: E2 08 00 0D 0F 80 13 00 00 00 00 00 00 98 [11:45:38]Write i2c OK [11:45:38]MH_I2C_Read... [11:45:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:45:38]OFD Sender: No OFD packet to send [11:45:38]Read from MH i2c: E2 [11:45:38]MH_I2C_Read... [11:45:38]Read from MH i2c: E2 62 00 [11:45:38]MH_I2C_Read... [11:45:38]Read from MH i2c: E2 62 00 0D 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 43 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [11:45: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 43 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:45:38]wFMCommunicate OK [11:45:38]SAM_PROTO_GetFieldsCounters done [11:45:38]requested_item shift.num is exist - process it [11:45:38]requested_item shift.opened is exist - process it [11:45:38]req_shift_opened [11:45:38]FM_GetShiftState [11:45:38]SAM_PROTO_GetShiftState [11:45:38]wFMCommunicate request_size=4 [11:45:38]MH_SAM_APDU [11:45:38]CAPDU: 80 13 01 00 [11:45:38]Write to MH i2c: E2 08 00 0E 0F 80 13 01 00 00 00 00 00 9A [11:45:38]Write i2c OK [11:45:38]MH_I2C_Read... [11:45:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:38]Read from MH i2c: E2 [11:45:38]MH_I2C_Read... [11:45:38]Read from MH i2c: E2 0E 00 [11:45:38]MH_I2C_Read... [11:45:38]Read from MH i2c: E2 0E 00 0E 0F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 B4 [11:45:38]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:45:38]wFMCommunicate OK [11:45:38]SAM_PROTO_GetShiftState done [11:45:38]FM_GetShiftState done [11:45:38]req_shift_opened done [11:45:38]requested_item shift.open_date is exist - process it [11:45:38]req_shift_open_date [11:45:38]req_shift_open_date done [11:45:38]produce_requested_data done [11:45:38]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227395,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [11:45:38]process_action_free close_receipt [11:45:38]json_value_free [11:45:38]json_value_free done [11:45:38]process_json_proto returns [11:45:38]Send response to host [11:45:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227395,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [11:45:38]free response buf [11:45:38]execute_script done [11:45:38]execute_script returns [11:45:38]free content buf [11:45:38]Sock 8.Close socket [11:45:38]Sock 8.Thread stoped [11:45:43]OFD Sender: No OFD packet to send [11:45:48]OFD Sender: No OFD packet to send [11:45:53]OFD Sender: No OFD packet to send [11:45:58]OFD Sender: No OFD packet to send [11:46:03]OFD Sender: No OFD packet to send [11:46:08]OFD Sender: No OFD packet to send [11:46:13]OFD Sender: No OFD packet to send [11:46:18]OFD Sender: No OFD packet to send [11:46:21]accept exits with 9 [11:46:21]New connection [11:46:21]New thread 3066543460 created [11:46:21]Thread 3066686820 joined [11:46:21]Waiting for new connection... [11:46:21] Sock 9.Parse request [11:46:21]Sock 9.Check first char [11:46:21]Sock 9.First char is OK [11:46:21]request: POST /json_proto HTTP/1.0 [11:46:21]Method: POST [11:46:21]URL: /json_proto [11:46:21]Method is POST - this is cgi request [11:46:21]url: /json_proto [11:46:21]query_string will be loaded in cgi processing [11:46:21]execute_cgi json_proto POST (null) [11:46:21]execute_cgi path=json_proto method=POST [11:46:21]POST find Content-Length [11:46:21]Host: 172.17.44.195:8080 [11:46:21]Content-Length: 683 [11:46:21]Content-Type: application/json [11:46:21] [11:46:21]POST finish read [11:46:21]Found Content-Length = 683 [11:46:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962911", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:21]execute_script... [11:46:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962911", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:21]POST & json_proto [11:46:21]process_json_proto [11:46:21]json parsed OK: [11:46:21]protocol is kg_v1.0 [11:46:21]action value=close_receipt [11:46:21]process_action close_receipt [11:46:21]cmd_close_receipt [11:46:21]MH_GetDate [11:46:21]Write to MH i2c: F0 00 00 0F 0F 0D [11:46:21]Write i2c OK [11:46:21]MH_I2C_Read... [11:46:21]Read from MH i2c: F0 [11:46:21]MH_I2C_Read... [11:46:21]Read from MH i2c: F0 09 00 [11:46:21]MH_I2C_Read... [11:46:21]Read from MH i2c: F0 09 00 0F 0F 00 8E ED 14 67 82 C9 CF 66 8C [11:46:21]GetLastDocTimeStamp 1729424737 [11:46:21]current date 1729424782 [11:46:21]FM_GetShiftState [11:46:21]SAM_PROTO_GetShiftState [11:46:21]wFMCommunicate request_size=4 [11:46:21]MH_SAM_APDU [11:46:21]CAPDU: 80 13 01 00 [11:46:21]Write to MH i2c: E2 08 00 10 0F 80 13 01 00 00 00 00 00 9C [11:46:21]Write i2c OK [11:46:21]MH_I2C_Read... [11:46:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:21]Read from MH i2c: E2 [11:46:21]MH_I2C_Read... [11:46:21]Read from MH i2c: E2 0E 00 [11:46:21]MH_I2C_Read... [11:46:21]Read from MH i2c: E2 0E 00 10 0F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 B6 [11:46:21]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:46:21]wFMCommunicate OK [11:46:21]SAM_PROTO_GetShiftState done [11:46:21]FM_GetShiftState done [11:46:21]opened in 1729383750 [11:46:21]opened+sec_in_day 1729470150 [11:46:21]quantity*price = 200043 [11:46:21]sum+1 = 200044 [11:46:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 244 20.10.2024 11:46 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227396 ФПД: 249922555492360 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T114622&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227396&fm=249922555492360&tin=02508201610067®Number=0000000000091685&sum=200000 [11:46:22]StoreToDocumentArchive [11:46:22]shift 533 fd 227396 [11:46:22]save to /storage/0533/doc_00227396 [11:46:22]save last doc name /storage/0533/doc_00227396 to /storage/kkm_last_doc_name [11:46:22]save OK [11:46:22]Clear old archive folders... [11:46:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:46:22]tlvbuf is 01863DB0 [11:46:22]SAM_PROTO_ClearQueue [11:46:22]wFMCommunicate request_size=4 [11:46:22]MH_SAM_APDU [11:46:22]CAPDU: 80 09 00 00 [11:46:22]Write to MH i2c: E2 08 00 1D 0F 80 09 00 00 00 00 00 00 9E [11:46:22]Write i2c OK [11:46:22]MH_I2C_Read... [11:46:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:46:22]Read from MH i2c: E2 [11:46:22]MH_I2C_Read... [11:46:22]Read from MH i2c: E2 03 00 [11:46:22]MH_I2C_Read... [11:46:22]Read from MH i2c: E2 03 00 1D 0F 00 90 00 A0 [11:46:22]RAPDU: 90 00 [11:46:22]wFMCommunicate OK [11:46:22]SAM_PROTO_ClearQueue done [11:46:22]KKMCreateOFDPacket [11:46:22]OFDProtocolAddRootSTLVToBuf [11:46:22]FM_MakeSignedData [11:46:22]FM_MakeSignedData [11:46:22]SAM_PROTO_SignData [11:46:22]wFMCommunicate request_size=4 [11:46:22]MH_SAM_APDU [11:46:22]CAPDU: 80 0D 01 02 [11:46:22]Write to MH i2c: E2 08 00 1E 0F 80 0D 01 02 00 00 00 00 A6 [11:46:22]Write i2c OK [11:46:22]MH_I2C_Read... [11:46:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:46:22]Read from MH i2c: E2 [11:46:22]MH_I2C_Read... [11:46:22]Read from MH i2c: E2 03 00 [11:46:22]MH_I2C_Read... [11:46:22]Read from MH i2c: E2 03 00 1E 0F 00 90 00 A1 [11:46:22]RAPDU: 90 00 [11:46:22]wFMCommunicate OK [11:46:22]wFMCommunicate request_size=255 [11:46:22]MH_SAM_APDU [11:46:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 8E ED 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 44 78 03 00 35 04 06 00 E3 [11:46:22]Write to MH i2c: E2 02 01 1F 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 8E ED 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 44 78 03 00 35 04 06 00 E3 00 00 88 [11:46:22]Write i2c OK [11:46:22]MH_I2C_Read... [11:46:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:22]Read from MH i2c: E2 [11:46:22]MH_I2C_Read... [11:46:22]Read from MH i2c: E2 03 00 [11:46:22]MH_I2C_Read... [11:46:22]Read from MH i2c: E2 03 00 1F 0F 00 90 00 A2 [11:46:22]RAPDU: 90 00 [11:46:22]wFMCommunicate OK [11:46:22]wFMCommunicate request_size=10 [11:46:22]MH_SAM_APDU [11:46:22]CAPDU: 80 0D 02 02 05 4D A1 24 38 08 [11:46:22]Write to MH i2c: E2 0D 00 20 0F 80 0D 02 02 05 00 4D A1 24 38 08 00 00 05 [11:46:22]Write i2c OK [11:46:22]MH_I2C_Read... [11:46:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:23]Read from MH i2c: E2 [11:46:23]MH_I2C_Read... [11:46:23]Read from MH i2c: E2 03 00 [11:46:23]MH_I2C_Read... [11:46:23]Read from MH i2c: E2 03 00 20 0F 00 90 00 A3 [11:46:23]RAPDU: 90 00 [11:46:23]wFMCommunicate OK [11:46:23]wFMCommunicate request_size=4 [11:46:23]MH_SAM_APDU [11:46:23]CAPDU: 80 0D 03 02 [11:46:23]Write to MH i2c: E2 08 00 21 0F 80 0D 03 02 00 00 00 00 AB [11:46:23]Write i2c OK [11:46:23]MH_I2C_Read... [11:46:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:46:23]Read from MH i2c: E2 [11:46:23]MH_I2C_Read... [11:46:23]Read from MH i2c: E2 0B 00 [11:46:23]MH_I2C_Read... [11:46:23]Read from MH i2c: E2 0B 00 21 0F 00 06 8F 02 A4 42 9E 81 BA 90 00 02 [11:46:23]RAPDU: 06 8F 02 A4 42 9E 81 BA 90 00 [11:46:23]wFMCommunicate OK [11:46:23]SAM_PROTO_SignData done [11:46:23]FM_MakeSignedData done [11:46:23]CreateOFDProtocolMessage [11:46:23]wFMCommunicate request_size=4 [11:46:23]MH_SAM_APDU [11:46:23]CAPDU: 80 11 00 00 [11:46:23]Write to MH i2c: E2 08 00 22 0F 80 11 00 00 00 00 00 00 AB [11:46:23]Write i2c OK [11:46:23]MH_I2C_Read... [11:46:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:23]Read from MH i2c: E2 [11:46:23]MH_I2C_Read... [11:46:23]Read from MH i2c: E2 17 00 [11:46:23]MH_I2C_Read... [11:46:23]Read from MH i2c: E2 17 00 22 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 02 [11:46:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:46:23]wFMCommunicate OK [11:46:23]CreateOFDProtocolMessage done [11:46:23]OFDSenderStorePacket 227396 [11:46:23]StoreOFDPacket docnum=227396 [11:46:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 D1 9F 07 01 2F 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 8E ED 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 44 78 03 00 35 04 06 00 E3 4D A1 24 38 08 06 8F 02 A4 42 9E 81 BA [11:46:23]CheckFolder [11:46:23]dirname=/storage/ofd_packets [11:46:23]CheckFolder done [11:46:23]ProducePacketName [11:46:23]name=ofd_packets/00227396 [11:46:23]NVStorageSaveData ofd_packets/00227396 [11:46:23]File name is /storage/ofd_packets/00227396 [11:46:23]Write 301 bytes [11:46:23]NVStorageSaveData done [11:46:23]OFDSenderStorePacket done [11:46:23]KKMCreateOFDPacket done [11:46:23]NVStorageSaveData kkm_last_timestamp [11:46:23]File name is /storage/kkm_last_timestamp [11:46:23]Write 4 bytes [11:46:23]NVStorageSaveData done [11:46:23]ExternCall_PrintAddStr [11:46:23]wPrintStart [11:46:23]Write to MH i2c: 01 00 00 23 0F 32 [11:46:23]Write i2c OK [11:46:23]MH_I2C_Read... [11:46:23]Read from MH i2c: 01 [11:46:23]MH_I2C_Read... [11:46:23]Read from MH i2c: 01 07 00 [11:46:23]MH_I2C_Read... [11:46:23]Read from MH i2c: 01 07 00 23 0F 00 00 00 00 00 FF 0F 47 [11:46:23]RasterBufferAndPrint [11:46:23]line Счет N : (1)1962911 [11:46:23]line ИНН: 02508201610067 [11:46:23]line Контрольно-Кассовый Чек [11:46:23]line ПРОДАЖА [11:46:23]line ТРК (МРК, ГНК) : 34 [11:46:23]line Товар: 2710124500 [11:46:23]line Аи-95-К-5 [11:46:23]line 26.960 * 74.20 [11:46:23]line = 2000.43 [11:46:23]line НДС 12% НСП 1% [11:46:23]line > о реализуемом товаре [11:46:23]line ОКРУГЛЕНИЕ: -0.43 [11:46:23]line ИТОГО: 2000.00 [11:46:23]line Внесено: 2000.00 [11:46:23]line СДАЧА: 0.00 [11:46:23]line НСП 1% : 17.70 [11:46:23]line НДС 12% : 212.43 [11:46:23]line Наличными: 2000.00 [11:46:23]line Безнал.: 0.00 [11:46:23]line Место: АЗС № 133 "Партнер Нефть" [11:46:23]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:46:23]line СНО: Общий режим [11:46:23]line Чек 244 20.10.2024 11:46 [11:46:23]line Смена: 533 ФФД: 1.0 [11:46:23]line ЗНМ: 0300000091 [11:46:23]line РНМ: 0000000000091685 [11:46:23]line Версия ККМ: 001 [11:46:23]line ФМ: 0000000000871839 [11:46:23]line ФД: 227396 [11:46:23]line ФПД: 249922555492360 [11:46:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T114622&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227396&fm=249922555492360&tin=02508201610067®Number=0000000000091685&sum=200000 [11:46:23]OFD Sender: Processing packet 227396 [packets to send 38, broken 37] [11:46:23]ProducePacketName [11:46:23]name=ofd_packets/00227396 [11:46:23]OFD Sender: To server: pG, [11:46:23]CommunicateWithHost lk.salyk.kg:30040 [11:46:23]ConnectInit lk.salyk.kg [11:46:23]written 0, free lines is 4095 [11:46:23]Connected sock=11 [11: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 33 39 0F 01 00 00 D1 9F 07 01 2F 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 8E ED 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 44 78 03 00 35 04 06 00 E3 4D A1 24 38 08 06 8F 02 A4 42 9E 81 BA [11: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 33 39 4F 00 00 00 DA 16 47 00 D4 F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 44 78 03 00 F4 03 04 00 8D 98 14 67 B6 04 01 00 00 06 83 F2 CA 08 38 30 32 [11:46:23]CommunicateWithHost err = 0 [11:46:23]CheckOFDResponse [11:46:23]1017 (14) - 77093643461234 [11:46:23]1041 (16) - 0000000000871839 [11:46:23]1040 (4) - 227396 [11:46:23]1012 (4) - 20.10.2024 05:43 [11:46:23]1206 (1) - 0 [11:46:23]OFD Sender: Remove packet 227396 [11:46:23]ProducePacketName [11:46:23]name=ofd_packets/00227396 [11:46:23]NVStorageDeleteData [11:46:23]Write to MH i2c: 01 00 00 4D 0F 5C [11:46:23]Write i2c OK [11:46:23]MH_I2C_Read... [11:46:23]Read from MH i2c: 01 [11:46:23]MH_I2C_Read... [11:46:23]Read from MH i2c: 01 07 00 [11:46:23]MH_I2C_Read... [11:46:23]Read from MH i2c: 01 07 00 4D 0F 00 00 00 00 00 0B 0D 7B [11:46:23]RasterBufferAndPrint [11:46:23]line [11:46:23]line [11:46:23]line [11:46:23]line [11:46:23]line [11:46:23]written 0, free lines is 3345 [11:46:23]process_action close_receipt done [11:46:23]requested_data is exist [11:46:23]produce_requested_data [11:46:23]requested_item fm.sn is exist - process it [11:46:23]wFMCommunicate request_size=4 [11:46:23]MH_SAM_APDU [11:46:23]CAPDU: 80 11 00 00 [11:46:23]Write to MH i2c: E2 08 00 54 0F 80 11 00 00 00 00 00 00 DD [11:46:23]Write i2c OK [11:46:23]MH_I2C_Read... [11:46:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:23]Read from MH i2c: E2 [11:46:23]MH_I2C_Read... [11:46:23]Read from MH i2c: E2 17 00 [11:46:23]MH_I2C_Read... [11:46:23]Read from MH i2c: E2 17 00 54 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 34 [11:46:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:46:23]wFMCommunicate OK [11:46:23]requested_item fd.num is exist - process it [11:46:23]SAM_PROTO_GetFieldsCounters [11:46:23]wFMCommunicate request_size=4 [11:46:23]MH_SAM_APDU [11:46:23]CAPDU: 80 13 00 00 [11:46:23]Write to MH i2c: E2 08 00 55 0F 80 13 00 00 00 00 00 00 E0 [11:46:23]Write i2c OK [11:46:23]MH_I2C_Read... [11:46:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:46:24]Read from MH i2c: E2 [11:46:24]MH_I2C_Read... [11:46:24]Read from MH i2c: E2 62 00 [11:46:24]MH_I2C_Read... [11:46:24]Read from MH i2c: E2 62 00 55 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 44 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [11:46:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 44 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:46:24]wFMCommunicate OK [11:46:24]SAM_PROTO_GetFieldsCounters done [11:46:24]requested_item shift.num is exist - process it [11:46:24]requested_item shift.opened is exist - process it [11:46:24]req_shift_opened [11:46:24]FM_GetShiftState [11:46:24]SAM_PROTO_GetShiftState [11:46:24]wFMCommunicate request_size=4 [11:46:24]MH_SAM_APDU [11:46:24]CAPDU: 80 13 01 00 [11:46:24]Write to MH i2c: E2 08 00 56 0F 80 13 01 00 00 00 00 00 E2 [11:46:24]Write i2c OK [11:46:24]MH_I2C_Read... [11:46:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:24]Read from MH i2c: E2 [11:46:24]MH_I2C_Read... [11:46:24]Read from MH i2c: E2 0E 00 [11:46:24]MH_I2C_Read... [11:46:24]Read from MH i2c: E2 0E 00 56 0F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 FC [11:46:24]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:46:24]wFMCommunicate OK [11:46:24]SAM_PROTO_GetShiftState done [11:46:24]FM_GetShiftState done [11:46:24]req_shift_opened done [11:46:24]requested_item shift.open_date is exist - process it [11:46:24]req_shift_open_date [11:46:24]req_shift_open_date done [11:46:24]produce_requested_data done [11:46:24]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227396,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [11:46:24]process_action_free close_receipt [11:46:24]json_value_free [11:46:24]json_value_free done [11:46:24]process_json_proto returns [11:46:24]Send response to host [11:46:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227396,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [11:46:24]free response buf [11:46:24]execute_script done [11:46:24]execute_script returns [11:46:24]free content buf [11:46:24]Sock 9.Close socket [11:46:24]Sock 9.Thread stoped [11:46:24]OFD Sender: No OFD packet to send [11:46:29]OFD Sender: No OFD packet to send [11:46:34]OFD Sender: No OFD packet to send [11:46:39]OFD Sender: No OFD packet to send [11:46:44]OFD Sender: No OFD packet to send [11:46:49]OFD Sender: No OFD packet to send [11:46:54]OFD Sender: No OFD packet to send [11:46:59]OFD Sender: No OFD packet to send [11:47:04]OFD Sender: No OFD packet to send [11:47:09]OFD Sender: No OFD packet to send [11:47:14]OFD Sender: No OFD packet to send [11:47:19]OFD Sender: No OFD packet to send [11:47:23]accept exits with 8 [11:47:23]New connection [11:47:23]New thread 3066686820 created [11:47:23]Thread 3066543460 joined [11:47:23]Waiting for new connection... [11:47:23] Sock 8.Parse request [11:47:23]Sock 8.Check first char [11:47:23]Sock 8.First char is OK [11:47:23]request: POST /json_proto HTTP/1.0 [11:47:23]Method: POST [11:47:23]URL: /json_proto [11:47:23]Method is POST - this is cgi request [11:47:23]url: /json_proto [11:47:23]query_string will be loaded in cgi processing [11:47:23]execute_cgi json_proto POST (null) [11:47:23]execute_cgi path=json_proto method=POST [11:47:23]POST find Content-Length [11:47:23]Host: 172.17.44.195:8080 [11:47:23]Content-Length: 678 [11:47:23]Content-Type: application/json [11:47:23] [11:47:23]POST finish read [11:47:23]Found Content-Length = 678 [11:47:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962913", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:23]execute_script... [11:47: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)1962913", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:23]POST & json_proto [11:47:23]process_json_proto [11:47:23]json parsed OK: [11:47:23]protocol is kg_v1.0 [11:47:23]action value=close_receipt [11:47:23]process_action close_receipt [11:47:23]cmd_close_receipt [11:47:23]MH_GetDate [11:47:23]Write to MH i2c: F0 00 00 57 0F 55 [11:47:23]Write i2c OK [11:47:23]MH_I2C_Read... [11:47:23]Read from MH i2c: F0 [11:47:23]MH_I2C_Read... [11:47:23]Read from MH i2c: F0 09 00 [11:47:23]MH_I2C_Read... [11:47:23]Read from MH i2c: F0 09 00 57 0F 00 CC ED 14 67 82 C9 CF 66 12 [11:47:23]GetLastDocTimeStamp 1729424782 [11:47:23]current date 1729424844 [11:47:23]FM_GetShiftState [11:47:23]SAM_PROTO_GetShiftState [11:47:23]wFMCommunicate request_size=4 [11:47:23]MH_SAM_APDU [11:47:23]CAPDU: 80 13 01 00 [11:47:23]Write to MH i2c: E2 08 00 58 0F 80 13 01 00 00 00 00 00 E4 [11:47:23]Write i2c OK [11:47:23]MH_I2C_Read... [11:47:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:24]Read from MH i2c: E2 [11:47:24]MH_I2C_Read... [11:47:24]Read from MH i2c: E2 0E 00 [11:47:24]MH_I2C_Read... [11:47:24]Read from MH i2c: E2 0E 00 58 0F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 FE [11:47:24]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:47:24]wFMCommunicate OK [11:47:24]SAM_PROTO_GetShiftState done [11:47:24]FM_GetShiftState done [11:47:24]opened in 1729383750 [11:47:24]opened+sec_in_day 1729470150 [11:47:24]quantity*price = 50041 [11:47:24]sum+1 = 50042 [11:47:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 245 20.10.2024 11:47 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227397 ФПД: 128616747022795 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T114724&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227397&fm=128616747022795&tin=02508201610067®Number=0000000000091685&sum=50000 [11:47:25]StoreToDocumentArchive [11:47:25]shift 533 fd 227397 [11:47:25]save to /storage/0533/doc_00227397 [11:47:25]save last doc name /storage/0533/doc_00227397 to /storage/kkm_last_doc_name [11:47:25]save OK [11:47:25]Clear old archive folders... [11:47:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:47:25]tlvbuf is 01864150 [11:47:25]SAM_PROTO_ClearQueue [11:47:25]wFMCommunicate request_size=4 [11:47:25]MH_SAM_APDU [11:47:25]CAPDU: 80 09 00 00 [11:47:25]Write to MH i2c: E2 08 00 65 0F 80 09 00 00 00 00 00 00 E6 [11:47:25]Write i2c OK [11:47:25]MH_I2C_Read... [11:47:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:47:25]Read from MH i2c: E2 [11:47:25]MH_I2C_Read... [11:47:25]Read from MH i2c: E2 03 00 [11:47:25]MH_I2C_Read... [11:47:25]Read from MH i2c: E2 03 00 65 0F 00 90 00 E8 [11:47:25]RAPDU: 90 00 [11:47:25]wFMCommunicate OK [11:47:25]SAM_PROTO_ClearQueue done [11:47:25]KKMCreateOFDPacket [11:47:25]OFDProtocolAddRootSTLVToBuf [11:47:25]FM_MakeSignedData [11:47:25]FM_MakeSignedData [11:47:25]SAM_PROTO_SignData [11:47:25]wFMCommunicate request_size=4 [11:47:25]MH_SAM_APDU [11:47:25]CAPDU: 80 0D 01 02 [11:47:25]Write to MH i2c: E2 08 00 66 0F 80 0D 01 02 00 00 00 00 EE [11:47:25]Write i2c OK [11:47:25]MH_I2C_Read... [11:47:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:47:25]Read from MH i2c: E2 [11:47:25]MH_I2C_Read... [11:47:25]Read from MH i2c: E2 03 00 [11:47:25]MH_I2C_Read... [11:47:25]Read from MH i2c: E2 03 00 66 0F 00 90 00 E9 [11:47:25]RAPDU: 90 00 [11:47:25]wFMCommunicate OK [11:47:25]wFMCommunicate request_size=255 [11:47:25]MH_SAM_APDU [11:47:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 CC ED 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 45 78 03 00 35 04 06 00 74 [11:47:25]Write to MH i2c: E2 02 01 67 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 CC ED 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 45 78 03 00 35 04 06 00 74 00 00 F9 [11:47:25]Write i2c OK [11:47:25]MH_I2C_Read... [11:47:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:25]Read from MH i2c: E2 [11:47:25]MH_I2C_Read... [11:47:25]Read from MH i2c: E2 03 00 [11:47:25]MH_I2C_Read... [11:47:25]Read from MH i2c: E2 03 00 67 0F 00 90 00 EA [11:47:25]RAPDU: 90 00 [11:47:25]wFMCommunicate OK [11:47:25]wFMCommunicate request_size=10 [11:47:25]MH_SAM_APDU [11:47:25]CAPDU: 80 0D 02 02 05 F9 EB 84 B9 CB [11:47:25]Write to MH i2c: E2 0D 00 68 0F 80 0D 02 02 05 00 F9 EB 84 B9 CB 00 00 E7 [11:47:25]Write i2c OK [11:47:25]MH_I2C_Read... [11:47:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:25]Read from MH i2c: E2 [11:47:25]MH_I2C_Read... [11:47:25]Read from MH i2c: E2 03 00 [11:47:25]MH_I2C_Read... [11:47:25]Read from MH i2c: E2 03 00 68 0F 00 90 00 EB [11:47:25]RAPDU: 90 00 [11:47:25]wFMCommunicate OK [11:47:25]wFMCommunicate request_size=4 [11:47:25]MH_SAM_APDU [11:47:25]CAPDU: 80 0D 03 02 [11:47:25]Write to MH i2c: E2 08 00 69 0F 80 0D 03 02 00 00 00 00 F3 [11:47:25]Write i2c OK [11:47:25]MH_I2C_Read... [11:47:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:47:25]Read from MH i2c: E2 [11:47:25]MH_I2C_Read... [11:47:25]Read from MH i2c: E2 0B 00 [11:47:25]MH_I2C_Read... [11:47:25]Read from MH i2c: E2 0B 00 69 0F 00 70 76 59 74 5E BD 23 0E 90 00 F3 [11:47:25]RAPDU: 70 76 59 74 5E BD 23 0E 90 00 [11:47:25]wFMCommunicate OK [11:47:25]SAM_PROTO_SignData done [11:47:25]FM_MakeSignedData done [11:47:25]CreateOFDProtocolMessage [11:47:25]wFMCommunicate request_size=4 [11:47:25]MH_SAM_APDU [11:47:25]CAPDU: 80 11 00 00 [11:47:25]Write to MH i2c: E2 08 00 6A 0F 80 11 00 00 00 00 00 00 F3 [11:47:25]Write i2c OK [11:47:25]MH_I2C_Read... [11:47:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:25]Read from MH i2c: E2 [11:47:25]MH_I2C_Read... [11:47:25]Read from MH i2c: E2 17 00 [11:47:25]MH_I2C_Read... [11:47:25]Read from MH i2c: E2 17 00 6A 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 4A [11:47:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:47:25]wFMCommunicate OK [11:47:25]CreateOFDProtocolMessage done [11:47:25]OFDSenderStorePacket 227397 [11:47:25]StoreOFDPacket docnum=227397 [11:47:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 B8 33 07 01 D5 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 CC ED 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 45 78 03 00 35 04 06 00 74 F9 EB 84 B9 CB 70 76 59 74 5E BD 23 0E [11:47:25]CheckFolder [11:47:25]dirname=/storage/ofd_packets [11:47:25]CheckFolder done [11:47:25]ProducePacketName [11:47:25]name=ofd_packets/00227397 [11:47:25]NVStorageSaveData ofd_packets/00227397 [11:47:25]File name is /storage/ofd_packets/00227397 [11:47:25]Write 301 bytes [11:47:25]NVStorageSaveData done [11:47:25]OFDSenderStorePacket done [11:47:25]KKMCreateOFDPacket done [11:47:25]NVStorageSaveData kkm_last_timestamp [11:47:25]File name is /storage/kkm_last_timestamp [11:47:25]Write 4 bytes [11:47:25]NVStorageSaveData done [11:47:25]ExternCall_PrintAddStr [11:47:25]wPrintStart [11:47:25]Write to MH i2c: 01 00 00 6B 0F 7A [11:47:25]Write i2c OK [11:47:25]MH_I2C_Read... [11:47:25]Read from MH i2c: 01 [11:47:25]MH_I2C_Read... [11:47:25]Read from MH i2c: 01 07 00 [11:47:25]MH_I2C_Read... [11:47:25]Read from MH i2c: 01 07 00 6B 0F 00 00 00 00 00 FF 0F 8F [11:47:25]RasterBufferAndPrint [11:47:25]line Счет N : (1)1962913 [11:47:25]line ИНН: 02508201610067 [11:47:25]line Контрольно-Кассовый Чек [11:47:25]line ПРОДАЖА [11:47:25]line ТРК (МРК, ГНК) : 43 [11:47:25]line Товар: 2710124130 [11:47:25]line Аи-92-К-5 [11:47:25]line 7.480 * 66.90 [11:47:25]line = 500.41 [11:47:25]line НДС 12% НСП 1% [11:47:25]line > о реализуемом товаре [11:47:25]line ОКРУГЛЕНИЕ: -0.41 [11:47:25]line ИТОГО: 500.00 [11:47:25]line Внесено: 500.00 [11:47:25]line СДАЧА: 0.00 [11:47:25]line НСП 1% : 4.43 [11:47:25]line НДС 12% : 53.14 [11:47:25]line Наличными: 500.00 [11:47:25]line Безнал.: 0.00 [11:47:25]line Место: АЗС № 133 "Партнер Нефть" [11:47:25]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:47:25]line СНО: Общий режим [11:47:25]line Чек 245 20.10.2024 11:47 [11:47:25]line Смена: 533 ФФД: 1.0 [11:47:25]line ЗНМ: 0300000091 [11:47:25]line РНМ: 0000000000091685 [11:47:25]line Версия ККМ: 001 [11:47:25]line ФМ: 0000000000871839 [11:47:25]line ФД: 227397 [11:47:25]line ФПД: 128616747022795 [11:47:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T114724&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227397&fm=128616747022795&tin=02508201610067®Number=0000000000091685&sum=50000 [11:47:25]written 0, free lines is 4095 [11:47:26]OFD Sender: Processing packet 227397 [packets to send 38, broken 37] [11:47:26]ProducePacketName [11:47:26]name=ofd_packets/00227397 [11:47:26]OFD Sender: To server: pG, [11:47:26]CommunicateWithHost lk.salyk.kg:30040 [11:47:26]ConnectInit lk.salyk.kg [11:47:26]Connected sock=10 [11:47:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 B8 33 07 01 D5 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 CC ED 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 45 78 03 00 35 04 06 00 74 F9 EB 84 B9 CB 70 76 59 74 5E BD 23 0E [11:47: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 33 39 4F 00 00 00 14 A3 47 00 8A 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 33 39 10 04 04 00 45 78 03 00 F4 03 04 00 CB 98 14 67 B6 04 01 00 00 62 03 70 8F 62 56 6A 43 [11:47:26]CommunicateWithHost err = 0 [11:47:26]CheckOFDResponse [11:47:26]1017 (14) - 77093643461234 [11:47:26]1041 (16) - 0000000000871839 [11:47:26]1040 (4) - 227397 [11:47:26]1012 (4) - 20.10.2024 05:44 [11:47:26]1206 (1) - 0 [11:47:26]OFD Sender: Remove packet 227397 [11:47:26]ProducePacketName [11:47:26]name=ofd_packets/00227397 [11:47:26]NVStorageDeleteData [11:47:26]Write to MH i2c: 01 00 00 95 0F A4 [11:47:26]Write i2c OK [11:47:26]MH_I2C_Read... [11:47:26]Read from MH i2c: 01 [11:47:26]MH_I2C_Read... [11:47:26]Read from MH i2c: 01 07 00 [11:47:26]MH_I2C_Read... [11:47:26]Read from MH i2c: 01 07 00 95 0F 00 00 00 00 00 02 0D BA [11:47:26]RasterBufferAndPrint [11:47:26]line [11:47:26]line [11:47:26]line [11:47:26]line [11:47:26]line [11:47:26]written 0, free lines is 3336 [11:47:26]process_action close_receipt done [11:47:26]requested_data is exist [11:47:26]produce_requested_data [11:47:26]requested_item fm.sn is exist - process it [11:47:26]wFMCommunicate request_size=4 [11:47:26]MH_SAM_APDU [11:47:26]CAPDU: 80 11 00 00 [11:47:26]Write to MH i2c: E2 08 00 9C 0F 80 11 00 00 00 00 00 00 25 [11:47:26]Write i2c OK [11:47:26]MH_I2C_Read... [11:47:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:26]Read from MH i2c: E2 [11:47:26]MH_I2C_Read... [11:47:26]Read from MH i2c: E2 17 00 [11:47:26]MH_I2C_Read... [11:47:26]Read from MH i2c: E2 17 00 9C 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 7C [11:47:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:47:26]wFMCommunicate OK [11:47:26]requested_item fd.num is exist - process it [11:47:26]SAM_PROTO_GetFieldsCounters [11:47:26]wFMCommunicate request_size=4 [11:47:26]MH_SAM_APDU [11:47:26]CAPDU: 80 13 00 00 [11:47:26]Write to MH i2c: E2 08 00 9D 0F 80 13 00 00 00 00 00 00 28 [11:47:26]Write i2c OK [11:47:26]MH_I2C_Read... [11:47:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:47:26]Read from MH i2c: E2 [11:47:26]MH_I2C_Read... [11:47:26]Read from MH i2c: E2 62 00 [11:47:26]MH_I2C_Read... [11:47:26]Read from MH i2c: E2 62 00 9D 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 45 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [11: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 45 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:47:26]wFMCommunicate OK [11:47:26]SAM_PROTO_GetFieldsCounters done [11:47:26]requested_item shift.num is exist - process it [11:47:26]requested_item shift.opened is exist - process it [11:47:26]req_shift_opened [11:47:26]FM_GetShiftState [11:47:26]SAM_PROTO_GetShiftState [11:47:26]wFMCommunicate request_size=4 [11:47:26]MH_SAM_APDU [11:47:26]CAPDU: 80 13 01 00 [11:47:26]Write to MH i2c: E2 08 00 9E 0F 80 13 01 00 00 00 00 00 2A [11:47:26]Write i2c OK [11:47:26]MH_I2C_Read... [11:47:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:26]Read from MH i2c: E2 [11:47:26]MH_I2C_Read... [11:47:26]Read from MH i2c: E2 0E 00 [11:47:26]MH_I2C_Read... [11:47:26]Read from MH i2c: E2 0E 00 9E 0F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 44 [11:47:26]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:47:26]wFMCommunicate OK [11:47:26]SAM_PROTO_GetShiftState done [11:47:26]FM_GetShiftState done [11:47:26]req_shift_opened done [11:47:26]requested_item shift.open_date is exist - process it [11:47:26]req_shift_open_date [11:47:26]req_shift_open_date done [11:47:26]produce_requested_data done [11:47:26]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227397,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [11:47:26]process_action_free close_receipt [11:47:26]json_value_free [11:47:26]json_value_free done [11:47:26]process_json_proto returns [11:47:26]Send response to host [11:47:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227397,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [11:47:26]free response buf [11:47:26]execute_script done [11:47:26]execute_script returns [11:47:26]free content buf [11:47:26]Sock 8.Close socket [11:47:26]Sock 8.Thread stoped [11:47:26]OFD Sender: No OFD packet to send [11:47:29]accept exits with 9 [11:47:29]New connection [11:47:29]New thread 3066543460 created [11:47:29]Thread 3066686820 joined [11:47:29]Waiting for new connection... [11:47:29] Sock 9.Parse request [11:47:29]Sock 9.Check first char [11:47:29]Sock 9.First char is OK [11:47:29]request: POST /json_proto HTTP/1.0 [11:47:29]Method: POST [11:47:29]URL: /json_proto [11:47:29]Method is POST - this is cgi request [11:47:29]url: /json_proto [11:47:29]query_string will be loaded in cgi processing [11:47:29]execute_cgi json_proto POST (null) [11:47:29]execute_cgi path=json_proto method=POST [11:47:29]POST find Content-Length [11:47:29]Host: 172.17.44.195:8080 [11:47:29]Content-Length: 678 [11:47:29]Content-Type: application/json [11:47:29] [11:47:29]POST finish read [11:47:29]Found Content-Length = 678 [11:47:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962914", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:29]execute_script... [11:47: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)1962914", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:29]POST & json_proto [11:47:29]process_json_proto [11:47:29]json parsed OK: [11:47:29]protocol is kg_v1.0 [11:47:29]action value=close_receipt [11:47:29]process_action close_receipt [11:47:29]cmd_close_receipt [11:47:29]MH_GetDate [11:47:29]Write to MH i2c: F0 00 00 9F 0F 9D [11:47:29]Write i2c OK [11:47:29]MH_I2C_Read... [11:47:29]Read from MH i2c: F0 [11:47:29]MH_I2C_Read... [11:47:29]Read from MH i2c: F0 09 00 [11:47:29]MH_I2C_Read... [11:47:29]Read from MH i2c: F0 09 00 9F 0F 00 D2 ED 14 67 82 C9 CF 66 60 [11:47:29]GetLastDocTimeStamp 1729424844 [11:47:29]current date 1729424850 [11:47:29]FM_GetShiftState [11:47:29]SAM_PROTO_GetShiftState [11:47:29]wFMCommunicate request_size=4 [11:47:29]MH_SAM_APDU [11:47:29]CAPDU: 80 13 01 00 [11:47:29]Write to MH i2c: E2 08 00 A0 0F 80 13 01 00 00 00 00 00 2C [11:47:29]Write i2c OK [11:47:29]MH_I2C_Read... [11:47:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:29]Read from MH i2c: E2 [11:47:29]MH_I2C_Read... [11:47:29]Read from MH i2c: E2 0E 00 [11:47:29]MH_I2C_Read... [11:47:29]Read from MH i2c: E2 0E 00 A0 0F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 46 [11:47:29]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:47:29]wFMCommunicate OK [11:47:29]SAM_PROTO_GetShiftState done [11:47:29]FM_GetShiftState done [11:47:29]opened in 1729383750 [11:47:29]opened+sec_in_day 1729470150 [11:47:29]quantity*price = 20003 [11:47:29]sum+1 = 20004 [11:47:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 246 20.10.2024 11:47 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227398 ФПД: 136214532137524 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T114730&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227398&fm=136214532137524&tin=02508201610067®Number=0000000000091685&sum=20000 [11:47:30]StoreToDocumentArchive [11:47:30]shift 533 fd 227398 [11:47:30]save to /storage/0533/doc_00227398 [11:47:30]save last doc name /storage/0533/doc_00227398 to /storage/kkm_last_doc_name [11:47:30]save OK [11:47:30]Clear old archive folders... [11:47:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:47:30]tlvbuf is 0187E0E0 [11:47:30]SAM_PROTO_ClearQueue [11:47:30]wFMCommunicate request_size=4 [11:47:30]MH_SAM_APDU [11:47:30]CAPDU: 80 09 00 00 [11:47:30]Write to MH i2c: E2 08 00 AD 0F 80 09 00 00 00 00 00 00 2E [11:47:30]Write i2c OK [11:47:30]MH_I2C_Read... [11:47:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:47:30]Read from MH i2c: E2 [11:47:30]MH_I2C_Read... [11:47:30]Read from MH i2c: E2 03 00 [11:47:30]MH_I2C_Read... [11:47:30]Read from MH i2c: E2 03 00 AD 0F 00 90 00 30 [11:47:30]RAPDU: 90 00 [11:47:30]wFMCommunicate OK [11:47:30]SAM_PROTO_ClearQueue done [11:47:30]KKMCreateOFDPacket [11:47:30]OFDProtocolAddRootSTLVToBuf [11:47:30]FM_MakeSignedData [11:47:30]FM_MakeSignedData [11:47:30]SAM_PROTO_SignData [11:47:30]wFMCommunicate request_size=4 [11:47:30]MH_SAM_APDU [11:47:30]CAPDU: 80 0D 01 02 [11:47:30]Write to MH i2c: E2 08 00 AE 0F 80 0D 01 02 00 00 00 00 36 [11:47:30]Write i2c OK [11:47:30]MH_I2C_Read... [11:47:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:47:30]Read from MH i2c: E2 [11:47:30]MH_I2C_Read... [11:47:30]Read from MH i2c: E2 03 00 [11:47:30]MH_I2C_Read... [11:47:30]Read from MH i2c: E2 03 00 AE 0F 00 90 00 31 [11:47:30]RAPDU: 90 00 [11:47:30]wFMCommunicate OK [11:47:30]wFMCommunicate request_size=255 [11:47:30]MH_SAM_APDU [11:47:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 D2 ED 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 46 78 03 00 35 04 06 00 7B [11:47:31]Write to MH i2c: E2 02 01 AF 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 D2 ED 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 46 78 03 00 35 04 06 00 7B 00 00 12 [11:47:31]Write i2c OK [11:47:31]MH_I2C_Read... [11:47:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:31]Read from MH i2c: E2 [11:47:31]MH_I2C_Read... [11:47:31]Read from MH i2c: E2 03 00 [11:47:31]MH_I2C_Read... [11:47:31]Read from MH i2c: E2 03 00 AF 0F 00 90 00 32 [11:47:31]RAPDU: 90 00 [11:47:31]wFMCommunicate OK [11:47:31]wFMCommunicate request_size=10 [11:47:31]MH_SAM_APDU [11:47:31]CAPDU: 80 0D 02 02 05 E2 EA CD 22 34 [11:47:31]Write to MH i2c: E2 0D 00 B0 0F 80 0D 02 02 05 00 E2 EA CD 22 34 00 00 32 [11:47:31]Write i2c OK [11:47:31]MH_I2C_Read... [11:47:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:31]Read from MH i2c: E2 [11:47:31]MH_I2C_Read... [11:47:31]Read from MH i2c: E2 03 00 [11:47:31]MH_I2C_Read... [11:47:31]Read from MH i2c: E2 03 00 B0 0F 00 90 00 33 [11:47:31]RAPDU: 90 00 [11:47:31]wFMCommunicate OK [11:47:31]wFMCommunicate request_size=4 [11:47:31]MH_SAM_APDU [11:47:31]CAPDU: 80 0D 03 02 [11:47:31]Write to MH i2c: E2 08 00 B1 0F 80 0D 03 02 00 00 00 00 3B [11:47:31]Write i2c OK [11:47:31]MH_I2C_Read... [11:47:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:47:31]Read from MH i2c: E2 [11:47:31]MH_I2C_Read... [11:47:31]Read from MH i2c: E2 0B 00 [11:47:31]MH_I2C_Read... [11:47:31]Read from MH i2c: E2 0B 00 B1 0F 00 36 7E 22 20 B6 2D 5A 1B 90 00 8A [11:47:31]RAPDU: 36 7E 22 20 B6 2D 5A 1B 90 00 [11:47:31]wFMCommunicate OK [11:47:31]SAM_PROTO_SignData done [11:47:31]FM_MakeSignedData done [11:47:31]CreateOFDProtocolMessage [11:47:31]wFMCommunicate request_size=4 [11:47:31]MH_SAM_APDU [11:47:31]CAPDU: 80 11 00 00 [11:47:31]Write to MH i2c: E2 08 00 B2 0F 80 11 00 00 00 00 00 00 3B [11:47:31]Write i2c OK [11:47:31]MH_I2C_Read... [11:47:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:31]Read from MH i2c: E2 [11:47:31]MH_I2C_Read... [11:47:31]Read from MH i2c: E2 17 00 [11:47:31]MH_I2C_Read... [11:47:31]Read from MH i2c: E2 17 00 B2 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 92 [11:47:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:47:31]wFMCommunicate OK [11:47:31]CreateOFDProtocolMessage done [11:47:31]OFDSenderStorePacket 227398 [11:47:31]StoreOFDPacket docnum=227398 [11:47:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 73 EF 07 01 83 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 D2 ED 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 46 78 03 00 35 04 06 00 7B E2 EA CD 22 34 36 7E 22 20 B6 2D 5A 1B [11:47:31]CheckFolder [11:47:31]dirname=/storage/ofd_packets [11:47:31]CheckFolder done [11:47:31]ProducePacketName [11:47:31]name=ofd_packets/00227398 [11:47:31]NVStorageSaveData ofd_packets/00227398 [11:47:31]File name is /storage/ofd_packets/00227398 [11:47:31]Write 301 bytes [11:47:31]NVStorageSaveData done [11:47:31]OFDSenderStorePacket done [11:47:31]KKMCreateOFDPacket done [11:47:31]NVStorageSaveData kkm_last_timestamp [11:47:31]File name is /storage/kkm_last_timestamp [11:47:31]Write 4 bytes [11:47:31]NVStorageSaveData done [11:47:31]ExternCall_PrintAddStr [11:47:31]wPrintStart [11:47:31]Write to MH i2c: 01 00 00 B3 0F C2 [11:47:31]Write i2c OK [11:47:31]MH_I2C_Read... [11:47:31]Read from MH i2c: 01 [11:47:31]MH_I2C_Read... [11:47:31]Read from MH i2c: 01 07 00 [11:47:31]MH_I2C_Read... [11:47:31]Read from MH i2c: 01 07 00 B3 0F 00 00 00 00 00 FF 0F D7 [11:47:31]RasterBufferAndPrint [11:47:31]line Счет N : (1)1962914 [11:47:31]line ИНН: 02508201610067 [11:47:31]line Контрольно-Кассовый Чек [11:47:31]line ПРОДАЖА [11:47:31]line ТРК (МРК, ГНК) : 53 [11:47:31]line Товар: 2710124130 [11:47:31]line Аи-92-К-5 [11:47:31]line 2.990 * 66.90 [11:47:31]line = 200.03 [11:47:31]line НДС 12% НСП 1% [11:47:31]line > о реализуемом товаре [11:47:31]line ОКРУГЛЕНИЕ: -0.03 [11:47:31]line ИТОГО: 200.00 [11:47:31]line Внесено: 200.00 [11:47:31]line СДАЧА: 0.00 [11:47:31]line НСП 1% : 1.77 [11:47:31]line НДС 12% : 21.24 [11:47:31]line Наличными: 200.00 [11:47:31]line Безнал.: 0.00 [11:47:31]line Место: АЗС № 133 "Партнер Нефть" [11:47:31]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:47:31]line СНО: Общий режим [11:47:31]line Чек 246 20.10.2024 11:47 [11:47:31]line Смена: 533 ФФД: 1.0 [11:47:31]line ЗНМ: 0300000091 [11:47:31]line РНМ: 0000000000091685 [11:47:31]line Версия ККМ: 001 [11:47:31]line ФМ: 0000000000871839 [11:47:31]line ФД: 227398 [11:47:31]line ФПД: 136214532137524 [11:47:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T114730&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227398&fm=136214532137524&tin=02508201610067®Number=0000000000091685&sum=20000 [11:47:31]written 0, free lines is 4095 [11:47:31]OFD Sender: Processing packet 227398 [packets to send 38, broken 37] [11:47:31]ProducePacketName [11:47:31]name=ofd_packets/00227398 [11:47:31]OFD Sender: To server: pG, [11:47:31]CommunicateWithHost lk.salyk.kg:30040 [11:47:31]ConnectInit lk.salyk.kg [11:47:31]Connected sock=10 [11:47: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 33 39 0F 01 00 00 73 EF 07 01 83 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 D2 ED 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 46 78 03 00 35 04 06 00 7B E2 EA CD 22 34 36 7E 22 20 B6 2D 5A 1B [11:47: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 33 39 4F 00 00 00 72 CF 47 00 D9 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 46 78 03 00 F4 03 04 00 D1 98 14 67 B6 04 01 00 00 3F 77 55 A9 F3 31 1F D3 [11:47:31]CommunicateWithHost err = 0 [11:47:31]CheckOFDResponse [11:47:31]1017 (14) - 77093643461234 [11:47:31]1041 (16) - 0000000000871839 [11:47:31]1040 (4) - 227398 [11:47:31]1012 (4) - 20.10.2024 05:44 [11:47:31]1206 (1) - 0 [11:47:31]OFD Sender: Remove packet 227398 [11:47:31]ProducePacketName [11:47:31]name=ofd_packets/00227398 [11:47:31]NVStorageDeleteData [11:47:31]Write to MH i2c: 01 00 00 DD 0F EC [11:47:31]Write i2c OK [11:47:31]MH_I2C_Read... [11:47:31]Read from MH i2c: 01 [11:47:31]MH_I2C_Read... [11:47:31]Read from MH i2c: 01 07 00 [11:47:31]MH_I2C_Read... [11:47:31]Read from MH i2c: 01 07 00 DD 0F 00 00 00 00 00 03 0D 03 [11:47:31]RasterBufferAndPrint [11:47:31]line [11:47:31]line [11:47:31]line [11:47:31]line [11:47:31]line [11:47:31]written 0, free lines is 3339 [11:47:31]process_action close_receipt done [11:47:31]requested_data is exist [11:47:31]produce_requested_data [11:47:31]requested_item fm.sn is exist - process it [11:47:31]wFMCommunicate request_size=4 [11:47:31]MH_SAM_APDU [11:47:31]CAPDU: 80 11 00 00 [11:47:31]Write to MH i2c: E2 08 00 E4 0F 80 11 00 00 00 00 00 00 6D [11:47:31]Write i2c OK [11:47:31]MH_I2C_Read... [11:47:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:31]Read from MH i2c: E2 [11:47:31]MH_I2C_Read... [11:47:31]Read from MH i2c: E2 17 00 [11:47:31]MH_I2C_Read... [11:47:31]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 33 39 90 00 C4 [11:47:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:47:32]wFMCommunicate OK [11:47:32]requested_item fd.num is exist - process it [11:47:32]SAM_PROTO_GetFieldsCounters [11:47:32]wFMCommunicate request_size=4 [11:47:32]MH_SAM_APDU [11:47:32]CAPDU: 80 13 00 00 [11:47:32]Write to MH i2c: E2 08 00 E5 0F 80 13 00 00 00 00 00 00 70 [11:47:32]Write i2c OK [11:47:32]MH_I2C_Read... [11:47:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:47:32]Read from MH i2c: E2 [11:47:32]MH_I2C_Read... [11:47:32]Read from MH i2c: E2 62 00 [11:47:32]MH_I2C_Read... [11:47:32]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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 46 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [11:47: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 46 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:47:32]wFMCommunicate OK [11:47:32]SAM_PROTO_GetFieldsCounters done [11:47:32]requested_item shift.num is exist - process it [11:47:32]requested_item shift.opened is exist - process it [11:47:32]req_shift_opened [11:47:32]FM_GetShiftState [11:47:32]SAM_PROTO_GetShiftState [11:47:32]wFMCommunicate request_size=4 [11:47:32]MH_SAM_APDU [11:47:32]CAPDU: 80 13 01 00 [11:47:32]Write to MH i2c: E2 08 00 E6 0F 80 13 01 00 00 00 00 00 72 [11:47:32]Write i2c OK [11:47:32]MH_I2C_Read... [11:47:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:32]Read from MH i2c: E2 [11:47:32]MH_I2C_Read... [11:47:32]Read from MH i2c: E2 0E 00 [11:47:32]MH_I2C_Read... [11:47:32]Read from MH i2c: E2 0E 00 E6 0F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 8C [11:47:32]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:47:32]wFMCommunicate OK [11:47:32]SAM_PROTO_GetShiftState done [11:47:32]FM_GetShiftState done [11:47:32]req_shift_opened done [11:47:32]requested_item shift.open_date is exist - process it [11:47:32]req_shift_open_date [11:47:32]req_shift_open_date done [11:47:32]produce_requested_data done [11:47:32]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227398,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [11:47:32]process_action_free close_receipt [11:47:32]json_value_free [11:47:32]json_value_free done [11:47:32]process_json_proto returns [11:47:32]Send response to host [11:47:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227398,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [11:47:32]free response buf [11:47:32]execute_script done [11:47:32]execute_script returns [11:47:32]free content buf [11:47:32]Sock 9.Close socket [11:47:32]Sock 9.Thread stoped [11:47:32]OFD Sender: No OFD packet to send [11:47:37]OFD Sender: No OFD packet to send [11:47:42]OFD Sender: No OFD packet to send [11:47:47]OFD Sender: No OFD packet to send [11:47:52]OFD Sender: No OFD packet to send [11:47:57]OFD Sender: No OFD packet to send [11:48:02]OFD Sender: No OFD packet to send [11:48:07]OFD Sender: No OFD packet to send [11:48:12]OFD Sender: No OFD packet to send [11:48:17]OFD Sender: No OFD packet to send [11:48:22]OFD Sender: No OFD packet to send [11:48:24]accept exits with 8 [11:48:24]New connection [11:48:24]New thread 3066686820 created [11:48:24]Thread 3066543460 joined [11:48:24]Waiting for new connection... [11:48:24] Sock 8.Parse request [11:48:24]Sock 8.Check first char [11:48:24]Sock 8.First char is OK [11:48:24]request: POST /json_proto HTTP/1.0 [11:48:24]Method: POST [11:48:24]URL: /json_proto [11:48:24]Method is POST - this is cgi request [11:48:24]url: /json_proto [11:48:24]query_string will be loaded in cgi processing [11:48:24]execute_cgi json_proto POST (null) [11:48:24]execute_cgi path=json_proto method=POST [11:48:24]POST find Content-Length [11:48:24]Host: 172.17.44.195:8080 [11:48:24]Content-Length: 683 [11:48:24]Content-Type: application/json [11:48:24] [11:48:24]POST finish read [11:48:24]Found Content-Length = 683 [11:48:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962916", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:24]execute_script... [11:48: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)1962916", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:24]POST & json_proto [11:48:24]process_json_proto [11:48:24]json parsed OK: [11:48:24]protocol is kg_v1.0 [11:48:24]action value=close_receipt [11:48:24]process_action close_receipt [11:48:24]cmd_close_receipt [11:48:24]MH_GetDate [11:48:24]Write to MH i2c: F0 00 00 E7 0F E5 [11:48:24]Write i2c OK [11:48:24]MH_I2C_Read... [11:48:24]Read from MH i2c: F0 [11:48:24]MH_I2C_Read... [11:48:24]Read from MH i2c: F0 09 00 [11:48:24]MH_I2C_Read... [11:48:24]Read from MH i2c: F0 09 00 E7 0F 00 09 EE 14 67 82 C9 CF 66 E0 [11:48:24]GetLastDocTimeStamp 1729424850 [11:48:24]current date 1729424905 [11:48:24]FM_GetShiftState [11:48:24]SAM_PROTO_GetShiftState [11:48:24]wFMCommunicate request_size=4 [11:48:24]MH_SAM_APDU [11:48:24]CAPDU: 80 13 01 00 [11:48:24]Write to MH i2c: E2 08 00 E8 0F 80 13 01 00 00 00 00 00 74 [11:48:24]Write i2c OK [11:48:24]MH_I2C_Read... [11:48:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:24]Read from MH i2c: E2 [11:48:24]MH_I2C_Read... [11:48:24]Read from MH i2c: E2 0E 00 [11:48:24]MH_I2C_Read... [11:48:24]Read from MH i2c: E2 0E 00 E8 0F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 8E [11:48:24]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:48:24]wFMCommunicate OK [11:48:24]SAM_PROTO_GetShiftState done [11:48:24]FM_GetShiftState done [11:48:24]opened in 1729383750 [11:48:24]opened+sec_in_day 1729470150 [11:48:24]quantity*price = 100021 [11:48:24]sum+1 = 100023 [11:48:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 247 20.10.2024 11:48 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227399 ФПД: 105710972861101 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T114825&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227399&fm=105710972861101&tin=02508201610067®Number=0000000000091685&sum=100000 [11:48:26]StoreToDocumentArchive [11:48:26]shift 533 fd 227399 [11:48:26]save to /storage/0533/doc_00227399 [11:48:26]save last doc name /storage/0533/doc_00227399 to /storage/kkm_last_doc_name [11:48:26]save OK [11:48:26]Clear old archive folders... [11:48:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:48:26]tlvbuf is 01849640 [11:48:26]SAM_PROTO_ClearQueue [11:48:26]wFMCommunicate request_size=4 [11:48:26]MH_SAM_APDU [11:48:26]CAPDU: 80 09 00 00 [11:48:26]Write to MH i2c: E2 08 00 F5 0F 80 09 00 00 00 00 00 00 76 [11:48:26]Write i2c OK [11:48:26]MH_I2C_Read... [11:48:26]Read from MH i2c: E2 [11:48:26]MH_I2C_Read... [11:48:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:48:26]Read from MH i2c: E2 03 00 [11:48:26]MH_I2C_Read... [11:48:26]Read from MH i2c: E2 03 00 F5 0F 00 90 00 78 [11:48:26]RAPDU: 90 00 [11:48:26]wFMCommunicate OK [11:48:26]SAM_PROTO_ClearQueue done [11:48:26]KKMCreateOFDPacket [11:48:26]OFDProtocolAddRootSTLVToBuf [11:48:26]FM_MakeSignedData [11:48:26]FM_MakeSignedData [11:48:26]SAM_PROTO_SignData [11:48:26]wFMCommunicate request_size=4 [11:48:26]MH_SAM_APDU [11:48:26]CAPDU: 80 0D 01 02 [11:48:26]Write to MH i2c: E2 08 00 F6 0F 80 0D 01 02 00 00 00 00 7E [11:48:26]Write i2c OK [11:48:26]MH_I2C_Read... [11:48:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:48:26]Read from MH i2c: E2 [11:48:26]MH_I2C_Read... [11:48:26]Read from MH i2c: E2 03 00 [11:48:26]MH_I2C_Read... [11:48:26]Read from MH i2c: E2 03 00 F6 0F 00 90 00 79 [11:48:26]RAPDU: 90 00 [11:48:26]wFMCommunicate OK [11:48:26]wFMCommunicate request_size=255 [11:48:26]MH_SAM_APDU [11:48:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 09 EE 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 47 78 03 00 35 04 06 00 60 [11:48:26]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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 09 EE 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 47 78 03 00 35 04 06 00 60 00 00 D4 [11:48:26]Write i2c OK [11:48:26]MH_I2C_Read... [11:48:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:26]Read from MH i2c: E2 [11:48:26]MH_I2C_Read... [11:48:26]Read from MH i2c: E2 03 00 [11:48:26]MH_I2C_Read... [11:48:26]Read from MH i2c: E2 03 00 F7 0F 00 90 00 7A [11:48:26]RAPDU: 90 00 [11:48:26]wFMCommunicate OK [11:48:26]wFMCommunicate request_size=10 [11:48:26]MH_SAM_APDU [11:48:26]CAPDU: 80 0D 02 02 05 24 C0 FC 7A AD [11:48:26]Write to MH i2c: E2 0D 00 F8 0F 80 0D 02 02 05 00 24 C0 FC 7A AD 00 00 92 [11:48:26]Write i2c OK [11:48:26]MH_I2C_Read... [11:48:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:26]Read from MH i2c: E2 [11:48:26]MH_I2C_Read... [11:48:26]Read from MH i2c: E2 03 00 [11:48:26]MH_I2C_Read... [11:48:26]Read from MH i2c: E2 03 00 F8 0F 00 90 00 7B [11:48:26]RAPDU: 90 00 [11:48:26]wFMCommunicate OK [11:48:26]wFMCommunicate request_size=4 [11:48:26]MH_SAM_APDU [11:48:26]CAPDU: 80 0D 03 02 [11:48:26]Write to MH i2c: E2 08 00 F9 0F 80 0D 03 02 00 00 00 00 83 [11:48:26]Write i2c OK [11:48:26]MH_I2C_Read... [11:48:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:48:26]Read from MH i2c: E2 [11:48:26]MH_I2C_Read... [11:48:26]Read from MH i2c: E2 0B 00 [11:48:26]MH_I2C_Read... [11:48:26]Read from MH i2c: E2 0B 00 F9 0F 00 CE C0 FD 87 EC C9 54 27 90 00 C6 [11:48:26]RAPDU: CE C0 FD 87 EC C9 54 27 90 00 [11:48:26]wFMCommunicate OK [11:48:26]SAM_PROTO_SignData done [11:48:26]FM_MakeSignedData done [11:48:26]CreateOFDProtocolMessage [11:48:26]wFMCommunicate request_size=4 [11:48:26]MH_SAM_APDU [11:48:26]CAPDU: 80 11 00 00 [11:48:26]Write to MH i2c: E2 08 00 FA 0F 80 11 00 00 00 00 00 00 83 [11:48:26]Write i2c OK [11:48:26]MH_I2C_Read... [11:48:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:26]Read from MH i2c: E2 [11:48:26]MH_I2C_Read... [11:48:26]Read from MH i2c: E2 17 00 [11:48:26]MH_I2C_Read... [11:48:26]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 33 39 90 00 DA [11:48:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:48:26]wFMCommunicate OK [11:48:26]CreateOFDProtocolMessage done [11:48:26]OFDSenderStorePacket 227399 [11:48:26]StoreOFDPacket docnum=227399 [11:48:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 B3 DC 07 01 BD 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 09 EE 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 47 78 03 00 35 04 06 00 60 24 C0 FC 7A AD CE C0 FD 87 EC C9 54 27 [11:48:26]CheckFolder [11:48:26]dirname=/storage/ofd_packets [11:48:26]CheckFolder done [11:48:26]ProducePacketName [11:48:26]name=ofd_packets/00227399 [11:48:26]NVStorageSaveData ofd_packets/00227399 [11:48:26]File name is /storage/ofd_packets/00227399 [11:48:26]Write 301 bytes [11:48:26]NVStorageSaveData done [11:48:26]OFDSenderStorePacket done [11:48:26]KKMCreateOFDPacket done [11:48:26]NVStorageSaveData kkm_last_timestamp [11:48:26]File name is /storage/kkm_last_timestamp [11:48:26]Write 4 bytes [11:48:26]NVStorageSaveData done [11:48:26]ExternCall_PrintAddStr [11:48:26]wPrintStart [11:48:26]Write to MH i2c: 01 00 00 FB 0F 0A [11:48:26]Write i2c OK [11:48:26]MH_I2C_Read... [11:48:26]Read from MH i2c: 01 [11:48:26]MH_I2C_Read... [11:48:26]Read from MH i2c: 01 07 00 [11:48:26]MH_I2C_Read... [11:48:26]Read from MH i2c: 01 07 00 FB 0F 00 00 00 00 00 FF 0F 1F [11:48:26]RasterBufferAndPrint [11:48:26]line Счет N : (1)1962916 [11:48:26]line ИНН: 02508201610067 [11:48:26]line Контрольно-Кассовый Чек [11:48:26]line ПРОДАЖА [11:48:26]line ТРК (МРК, ГНК) : 64 [11:48:26]line Товар: 2710124500 [11:48:26]line Аи-95-К-5 [11:48:26]line 13.480 * 74.20 [11:48:26]line = 1000.22 [11:48:26]line НДС 12% НСП 1% [11:48:26]line > о реализуемом товаре [11:48:26]line ОКРУГЛЕНИЕ: -0.22 [11:48:26]line ИТОГО: 1000.00 [11:48:26]line Внесено: 1000.00 [11:48:26]line СДАЧА: 0.00 [11:48:26]line НСП 1% : 8.85 [11:48:26]line НДС 12% : 106.22 [11:48:26]line Наличными: 1000.00 [11:48:26]line Безнал.: 0.00 [11:48:26]line Место: АЗС № 133 "Партнер Нефть" [11:48:26]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:48:26]line СНО: Общий режим [11:48:26]line Чек 247 20.10.2024 11:48 [11:48:26]line Смена: 533 ФФД: 1.0 [11:48:26]line ЗНМ: 0300000091 [11:48:26]line РНМ: 0000000000091685 [11:48:26]line Версия ККМ: 001 [11:48:26]line ФМ: 0000000000871839 [11:48:26]line ФД: 227399 [11:48:26]line ФПД: 105710972861101 [11:48:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T114825&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227399&fm=105710972861101&tin=02508201610067®Number=0000000000091685&sum=100000 [11:48:26]written 0, free lines is 4095 [11:48:26]OFD Sender: Processing packet 227399 [packets to send 38, broken 37] [11:48:26]ProducePacketName [11:48:26]name=ofd_packets/00227399 [11:48:26]OFD Sender: To server: pG, [11:48:26]CommunicateWithHost lk.salyk.kg:30040 [11:48:26]ConnectInit lk.salyk.kg [11:48:26]Connected sock=9 [11:48: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 33 39 0F 01 00 00 B3 DC 07 01 BD 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 09 EE 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 47 78 03 00 35 04 06 00 60 24 C0 FC 7A AD CE C0 FD 87 EC C9 54 27 [11:48: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 33 39 4F 00 00 00 09 78 47 00 BB 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 33 39 10 04 04 00 47 78 03 00 F4 03 04 00 08 99 14 67 B6 04 01 00 00 9F B6 66 8D E8 5B 1D 22 [11:48:27]CommunicateWithHost err = 0 [11:48:27]CheckOFDResponse [11:48:27]1017 (14) - 77093643461234 [11:48:27]1041 (16) - 0000000000871839 [11:48:27]1040 (4) - 227399 [11:48:27]1012 (4) - 20.10.2024 05:45 [11:48:27]1206 (1) - 0 [11:48:27]OFD Sender: Remove packet 227399 [11:48:27]ProducePacketName [11:48:27]name=ofd_packets/00227399 [11:48:27]NVStorageDeleteData [11:48:27]Write to MH i2c: 01 00 00 25 10 35 [11:48:27]Write i2c OK [11:48:27]MH_I2C_Read... [11:48:27]Read from MH i2c: 01 [11:48:27]MH_I2C_Read... [11:48:27]Read from MH i2c: 01 07 00 [11:48:27]MH_I2C_Read... [11:48:27]Read from MH i2c: 01 07 00 25 10 00 00 00 00 00 14 0D 5D [11:48:27]RasterBufferAndPrint [11:48:27]line [11:48:27]line [11:48:27]line [11:48:27]line [11:48:27]line [11:48:27]written 0, free lines is 3354 [11:48:27]process_action close_receipt done [11:48:27]requested_data is exist [11:48:27]produce_requested_data [11:48:27]requested_item fm.sn is exist - process it [11:48:27]wFMCommunicate request_size=4 [11:48:27]MH_SAM_APDU [11:48:27]CAPDU: 80 11 00 00 [11:48:27]Write to MH i2c: E2 08 00 2C 10 80 11 00 00 00 00 00 00 B6 [11:48:27]Write i2c OK [11:48:27]MH_I2C_Read... [11:48:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:27]Read from MH i2c: E2 [11:48:27]MH_I2C_Read... [11:48:27]Read from MH i2c: E2 17 00 [11:48:27]MH_I2C_Read... [11:48:27]Read from MH i2c: E2 17 00 2C 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 0D [11:48:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:48:27]wFMCommunicate OK [11:48:27]requested_item fd.num is exist - process it [11:48:27]SAM_PROTO_GetFieldsCounters [11:48:27]wFMCommunicate request_size=4 [11:48:27]MH_SAM_APDU [11:48:27]CAPDU: 80 13 00 00 [11:48:27]Write to MH i2c: E2 08 00 2D 10 80 13 00 00 00 00 00 00 B9 [11:48:27]Write i2c OK [11:48:27]MH_I2C_Read... [11:48:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:48:27]Read from MH i2c: E2 [11:48:27]MH_I2C_Read... [11:48:27]Read from MH i2c: E2 62 00 [11:48:27]MH_I2C_Read... [11:48:27]Read from MH i2c: E2 62 00 2D 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 47 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [11:48: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 47 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:48:27]wFMCommunicate OK [11:48:27]SAM_PROTO_GetFieldsCounters done [11:48:27]requested_item shift.num is exist - process it [11:48:27]requested_item shift.opened is exist - process it [11:48:27]req_shift_opened [11:48:27]FM_GetShiftState [11:48:27]SAM_PROTO_GetShiftState [11:48:27]wFMCommunicate request_size=4 [11:48:27]MH_SAM_APDU [11:48:27]CAPDU: 80 13 01 00 [11:48:27]Write to MH i2c: E2 08 00 2E 10 80 13 01 00 00 00 00 00 BB [11:48:27]Write i2c OK [11:48:27]MH_I2C_Read... [11:48:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:27]Read from MH i2c: E2 [11:48:27]MH_I2C_Read... [11:48:27]Read from MH i2c: E2 0E 00 [11:48:27]MH_I2C_Read... [11:48:27]Read from MH i2c: E2 0E 00 2E 10 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 D5 [11:48:27]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:48:27]wFMCommunicate OK [11:48:27]SAM_PROTO_GetShiftState done [11:48:27]FM_GetShiftState done [11:48:27]req_shift_opened done [11:48:27]requested_item shift.open_date is exist - process it [11:48:27]req_shift_open_date [11:48:27]req_shift_open_date done [11:48:27]produce_requested_data done [11:48:27]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227399,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [11:48:27]process_action_free close_receipt [11:48:27]json_value_free [11:48:27]json_value_free done [11:48:27]process_json_proto returns [11:48:27]Send response to host [11:48:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227399,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [11:48:27]free response buf [11:48:27]execute_script done [11:48:27]execute_script returns [11:48:27]free content buf [11:48:27]Sock 8.Close socket [11:48:27]Sock 8.Thread stoped [11:48:27]OFD Sender: No OFD packet to send [11:48:32]OFD Sender: No OFD packet to send [11:48:37]OFD Sender: No OFD packet to send [11:48:42]OFD Sender: No OFD packet to send [11:48:47]OFD Sender: No OFD packet to send [11:48:52]OFD Sender: No OFD packet to send [11:48:54]accept exits with 10 [11:48:54]New connection [11:48:54]New thread 3066543460 created [11:48:54]Thread 3066686820 joined [11:48:54]Waiting for new connection... [11:48:54] Sock 10.Parse request [11:48:54]Sock 10.Check first char [11:48:54]Sock 10.First char is OK [11:48:54]request: POST /json_proto HTTP/1.0 [11:48:54]Method: POST [11:48:54]URL: /json_proto [11:48:54]Method is POST - this is cgi request [11:48:54]url: /json_proto [11:48:54]query_string will be loaded in cgi processing [11:48:54]execute_cgi json_proto POST (null) [11:48:54]execute_cgi path=json_proto method=POST [11:48:54]POST find Content-Length [11:48:54]Host: 172.17.44.195:8080 [11:48:54]Content-Length: 767 [11:48:54]Content-Type: application/json [11:48:54] [11:48:54]POST finish read [11:48:54]Found Content-Length = 767 [11:48:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962915", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 24.410, "sum" : 1860.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: Mbank", "payments": [ { "type": 1, "sum" : 1860.04 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:54]execute_script... [11:48:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962915", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 24.410, "sum" : 1860.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: Mbank", "payments": [ { "type": 1, "sum" : 1860.04 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:54]POST & json_proto [11:48:54]process_json_proto [11:48:54]json parsed OK: [11:48:54]protocol is kg_v1.0 [11:48:54]action value=close_receipt [11:48:54]process_action close_receipt [11:48:54]cmd_close_receipt [11:48:54]MH_GetDate [11:48:54]Write to MH i2c: F0 00 00 2F 10 2E [11:48:54]Write i2c OK [11:48:54]MH_I2C_Read... [11:48:54]Read from MH i2c: F0 [11:48:54]MH_I2C_Read... [11:48:54]Read from MH i2c: F0 09 00 [11:48:54]MH_I2C_Read... [11:48:54]Read from MH i2c: F0 09 00 2F 10 00 27 EE 14 67 82 C9 CF 66 47 [11:48:54]GetLastDocTimeStamp 1729424905 [11:48:54]current date 1729424935 [11:48:54]FM_GetShiftState [11:48:54]SAM_PROTO_GetShiftState [11:48:54]wFMCommunicate request_size=4 [11:48:54]MH_SAM_APDU [11:48:54]CAPDU: 80 13 01 00 [11:48:54]Write to MH i2c: E2 08 00 30 10 80 13 01 00 00 00 00 00 BD [11:48:54]Write i2c OK [11:48:54]MH_I2C_Read... [11:48:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:54]Read from MH i2c: E2 [11:48:54]MH_I2C_Read... [11:48:54]Read from MH i2c: E2 0E 00 [11:48:54]MH_I2C_Read... [11:48:54]Read from MH i2c: E2 0E 00 30 10 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 D7 [11:48:54]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:48:54]wFMCommunicate OK [11:48:54]SAM_PROTO_GetShiftState done [11:48:54]FM_GetShiftState done [11:48:54]opened in 1729383750 [11:48:54]opened+sec_in_day 1729470150 [11:48:54]quantity*price = 186004 [11:48:54]sum+1 = 186005 [11:48:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1860.04 НСП 1% : 16.46 НДС 12% : 197.53 Наличными: 0.00 Безнал.: 1860.04 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 248 20.10.2024 11:48 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 227400 ФПД: 90927599691418 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T114855&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227400&fm=90927599691418&tin=02508201610067®Number=0000000000091685&sum=186004 [11:48:55]StoreToDocumentArchive [11:48:55]shift 533 fd 227400 [11:48:55]save to /storage/0533/doc_00227400 [11:48:55]save last doc name /storage/0533/doc_00227400 to /storage/kkm_last_doc_name [11:48:55]save OK [11:48:55]Clear old archive folders... [11:48:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:48:55]tlvbuf is 018210C0 [11:48:55]SAM_PROTO_ClearQueue [11:48:55]wFMCommunicate request_size=4 [11:48:55]MH_SAM_APDU [11:48:55]CAPDU: 80 09 00 00 [11:48:55]Write to MH i2c: E2 08 00 3D 10 80 09 00 00 00 00 00 00 BF [11:48:55]Write i2c OK [11:48:55]MH_I2C_Read... [11:48:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:48:55]Read from MH i2c: E2 [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: E2 03 00 [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: E2 03 00 3D 10 00 90 00 C1 [11:48:55]RAPDU: 90 00 [11:48:55]wFMCommunicate OK [11:48:55]SAM_PROTO_ClearQueue done [11:48:55]KKMCreateOFDPacket [11:48:55]OFDProtocolAddRootSTLVToBuf [11:48:55]FM_MakeSignedData [11:48:55]FM_MakeSignedData [11:48:55]SAM_PROTO_SignData [11:48:55]wFMCommunicate request_size=4 [11:48:55]MH_SAM_APDU [11:48:55]CAPDU: 80 0D 01 02 [11:48:55]Write to MH i2c: E2 08 00 3E 10 80 0D 01 02 00 00 00 00 C7 [11:48:55]Write i2c OK [11:48:55]MH_I2C_Read... [11:48:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:48:55]Read from MH i2c: E2 [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: E2 03 00 [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: E2 03 00 3E 10 00 90 00 C2 [11:48:55]RAPDU: 90 00 [11:48:55]wFMCommunicate OK [11:48:55]wFMCommunicate request_size=255 [11:48:55]MH_SAM_APDU [11:48:55]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5A 5F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 94 D6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 D6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 4D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 D6 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 27 EE 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 48 78 03 00 35 04 06 00 52 B2 BB 47 [11:48:55]Write to MH i2c: E2 02 01 3F 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 5A 5F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 94 D6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 D6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 4D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 D6 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 27 EE 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 48 78 03 00 35 04 06 00 52 B2 BB 47 00 00 5C [11:48:55]Write i2c OK [11:48:55]MH_I2C_Read... [11:48:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:56]Read from MH i2c: E2 [11:48:56]MH_I2C_Read... [11:48:56]Read from MH i2c: E2 03 00 [11:48:56]MH_I2C_Read... [11:48:56]Read from MH i2c: E2 03 00 3F 10 00 90 00 C3 [11:48:56]RAPDU: 90 00 [11:48:56]wFMCommunicate OK [11:48:56]wFMCommunicate request_size=7 [11:48:56]MH_SAM_APDU [11:48:56]CAPDU: 80 0D 02 02 02 A6 9A [11:48:56]Write to MH i2c: E2 0A 00 40 10 80 0D 02 02 02 00 A6 9A 00 00 0E [11:48:56]Write i2c OK [11:48:56]MH_I2C_Read... [11:48:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:56]Read from MH i2c: E2 [11:48:56]MH_I2C_Read... [11:48:56]Read from MH i2c: E2 03 00 [11:48:56]MH_I2C_Read... [11:48:56]Read from MH i2c: E2 03 00 40 10 00 90 00 C4 [11:48:56]RAPDU: 90 00 [11:48:56]wFMCommunicate OK [11:48:56]wFMCommunicate request_size=4 [11:48:56]MH_SAM_APDU [11:48:56]CAPDU: 80 0D 03 02 [11:48:56]Write to MH i2c: E2 08 00 41 10 80 0D 03 02 00 00 00 00 CC [11:48:56]Write i2c OK [11:48:56]MH_I2C_Read... [11:48:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:48:56]Read from MH i2c: E2 [11:48:56]MH_I2C_Read... [11:48:56]Read from MH i2c: E2 0B 00 [11:48:56]MH_I2C_Read... [11:48:56]Read from MH i2c: E2 0B 00 41 10 00 DD 38 71 07 46 FC 0C 28 90 00 D0 [11:48:56]RAPDU: DD 38 71 07 46 FC 0C 28 90 00 [11:48:56]wFMCommunicate OK [11:48:56]SAM_PROTO_SignData done [11:48:56]FM_MakeSignedData done [11:48:56]CreateOFDProtocolMessage [11:48:56]wFMCommunicate request_size=4 [11:48:56]MH_SAM_APDU [11:48:56]CAPDU: 80 11 00 00 [11:48:56]Write to MH i2c: E2 08 00 42 10 80 11 00 00 00 00 00 00 CC [11:48:56]Write i2c OK [11:48:56]MH_I2C_Read... [11:48:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:56]Read from MH i2c: E2 [11:48:56]MH_I2C_Read... [11:48:56]Read from MH i2c: E2 17 00 [11:48:56]MH_I2C_Read... [11:48:56]Read from MH i2c: E2 17 00 42 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 23 [11:48:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:48:56]wFMCommunicate OK [11:48:56]CreateOFDProtocolMessage done [11:48:56]OFDSenderStorePacket 227400 [11:48:56]StoreOFDPacket docnum=227400 [11:48:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 EF E5 04 01 20 BC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5A 5F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 94 D6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 D6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 4D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 D6 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 27 EE 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 48 78 03 00 35 04 06 00 52 B2 BB 47 A6 9A DD 38 71 07 46 FC 0C 28 [11:48:56]CheckFolder [11:48:56]dirname=/storage/ofd_packets [11:48:56]CheckFolder done [11:48:56]ProducePacketName [11:48:56]name=ofd_packets/00227400 [11:48:56]NVStorageSaveData ofd_packets/00227400 [11:48:56]File name is /storage/ofd_packets/00227400 [11:48:56]Write 298 bytes [11:48:56]NVStorageSaveData done [11:48:56]OFDSenderStorePacket done [11:48:56]KKMCreateOFDPacket done [11:48:56]NVStorageSaveData kkm_last_timestamp [11:48:56]File name is /storage/kkm_last_timestamp [11:48:56]Write 4 bytes [11:48:56]NVStorageSaveData done [11:48:56]ExternCall_PrintAddStr [11:48:56]wPrintStart [11:48:56]Write to MH i2c: 01 00 00 43 10 53 [11:48:56]Write i2c OK [11:48:56]MH_I2C_Read... [11:48:56]Read from MH i2c: 01 [11:48:56]MH_I2C_Read... [11:48:56]Read from MH i2c: 01 07 00 [11:48:56]MH_I2C_Read... [11:48:56]Read from MH i2c: 01 07 00 43 10 00 00 00 00 00 FF 0F 68 [11:48:56]RasterBufferAndPrint [11:48:56]line Счет N : (1)1962915 [11:48:56]line ИНН: 02508201610067 [11:48:56]line Контрольно-Кассовый Чек [11:48:56]line ПРОДАЖА [11:48:56]line ТРК (МРК, ГНК) : 11 [11:48:56]line Товар: 2710194210 [11:48:56]line ДТ-К-5 [11:48:56]line 24.410 * 76.20 [11:48:56]line = 1860.04 [11:48:56]line НДС 12% НСП 1% [11:48:56]line > о реализуемом товаре [11:48:56]line ИТОГО: 1860.04 [11:48:56]line НСП 1% : 16.46 [11:48:56]line НДС 12% : 197.53 [11:48:56]line Наличными: 0.00 [11:48:56]line Безнал.: 1860.04 [11:48:56]line Место: АЗС № 133 "Партнер Нефть" [11:48:56]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:48:56]line СНО: Общий режим [11:48:56]line Чек 248 20.10.2024 11:48 [11:48:56]line Смена: 533 ФФД: 1.0 [11:48:56]line ЗНМ: 0300000091 [11:48:56]line РНМ: 0000000000091685 [11:48:56]line Версия ККМ: 001 [11:48:56]line Платежная система: Mbank [11:48:56]line ФМ: 0000000000871839 [11:48:56]line ФД: 227400 [11:48:56]line ФПД: 90927599691418 [11:48:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T114855&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227400&fm=90927599691418&tin=02508201610067®Number=0000000000091685&sum=186004 [11:48:56]OFD Sender: Processing packet 227400 [packets to send 38, broken 37] [11:48:56]ProducePacketName [11:48:56]name=ofd_packets/00227400 [11:48:56]OFD Sender: To server: pG, [11:48:56]CommunicateWithHost lk.salyk.kg:30040 [11:48:56]ConnectInit lk.salyk.kg [11:48:56]written 0, free lines is 4095 [11:48:56]Connected sock=9 [11:48:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 EF E5 04 01 20 BC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5A 5F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 94 D6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 D6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 4D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 D6 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 27 EE 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 48 78 03 00 35 04 06 00 52 B2 BB 47 A6 9A DD 38 71 07 46 FC 0C 28 [11:48:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 30 FF 47 00 03 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 33 39 10 04 04 00 48 78 03 00 F4 03 04 00 26 99 14 67 B6 04 01 00 00 B6 79 69 CF 55 DD 0C FC [11:48:57]CommunicateWithHost err = 0 [11:48:57]CheckOFDResponse [11:48:57]1017 (14) - 77093643461234 [11:48:57]1041 (16) - 0000000000871839 [11:48:57]1040 (4) - 227400 [11:48:57]1012 (4) - 20.10.2024 05:46 [11:48:57]1206 (1) - 0 [11:48:57]OFD Sender: Remove packet 227400 [11:48:57]ProducePacketName [11:48:57]name=ofd_packets/00227400 [11:48:57]NVStorageDeleteData [11:48:57]Write to MH i2c: 01 00 00 6B 10 7B [11:48:57]Write i2c OK [11:48:57]MH_I2C_Read... [11:48:57]Read from MH i2c: 01 [11:48:57]MH_I2C_Read... [11:48:57]Read from MH i2c: 01 07 00 [11:48:57]MH_I2C_Read... [11:48:57]Read from MH i2c: 01 07 00 6B 10 00 00 00 00 00 29 0D B8 [11:48:57]RasterBufferAndPrint [11:48:57]line [11:48:57]line [11:48:57]line [11:48:57]line [11:48:57]line [11:48:57]written 0, free lines is 3375 [11:48:57]process_action close_receipt done [11:48:57]requested_data is exist [11:48:57]produce_requested_data [11:48:57]requested_item fm.sn is exist - process it [11:48:57]wFMCommunicate request_size=4 [11:48:57]MH_SAM_APDU [11:48:57]CAPDU: 80 11 00 00 [11:48:57]Write to MH i2c: E2 08 00 72 10 80 11 00 00 00 00 00 00 FC [11:48:57]Write i2c OK [11:48:57]MH_I2C_Read... [11:48:57]Read from MH i2c: E2 [11:48:57]MH_I2C_Read... [11:48:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:57]Read from MH i2c: E2 17 00 [11:48:57]MH_I2C_Read... [11:48:57]Read from MH i2c: E2 17 00 72 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 53 [11:48:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:48:57]wFMCommunicate OK [11:48:57]requested_item fd.num is exist - process it [11:48:57]SAM_PROTO_GetFieldsCounters [11:48:57]wFMCommunicate request_size=4 [11:48:57]MH_SAM_APDU [11:48:57]CAPDU: 80 13 00 00 [11:48:57]Write to MH i2c: E2 08 00 73 10 80 13 00 00 00 00 00 00 FF [11:48:57]Write i2c OK [11:48:57]MH_I2C_Read... [11:48:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:48:57]Read from MH i2c: E2 [11:48:57]MH_I2C_Read... [11:48:57]Read from MH i2c: E2 62 00 [11:48:57]MH_I2C_Read... [11:48:57]Read from MH i2c: E2 62 00 73 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 48 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 EA [11:48: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 48 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:48:57]wFMCommunicate OK [11:48:57]SAM_PROTO_GetFieldsCounters done [11:48:57]requested_item shift.num is exist - process it [11:48:57]requested_item shift.opened is exist - process it [11:48:57]req_shift_opened [11:48:57]FM_GetShiftState [11:48:57]SAM_PROTO_GetShiftState [11:48:57]wFMCommunicate request_size=4 [11:48:57]MH_SAM_APDU [11:48:57]CAPDU: 80 13 01 00 [11:48:57]Write to MH i2c: E2 08 00 74 10 80 13 01 00 00 00 00 00 01 [11:48:57]Write i2c OK [11:48:57]MH_I2C_Read... [11:48:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:57]Read from MH i2c: E2 [11:48:57]MH_I2C_Read... [11:48:57]Read from MH i2c: E2 0E 00 [11:48:57]MH_I2C_Read... [11:48:57]Read from MH i2c: E2 0E 00 74 10 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 1B [11:48:57]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:48:57]wFMCommunicate OK [11:48:57]SAM_PROTO_GetShiftState done [11:48:57]FM_GetShiftState done [11:48:57]req_shift_opened done [11:48:57]requested_item shift.open_date is exist - process it [11:48:57]req_shift_open_date [11:48:57]req_shift_open_date done [11:48:57]produce_requested_data done [11:48:57]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227400,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [11:48:57]process_action_free close_receipt [11:48:57]json_value_free [11:48:57]json_value_free done [11:48:57]process_json_proto returns [11:48:57]Send response to host [11:48:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227400,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [11:48:57]free response buf [11:48:57]execute_script done [11:48:57]execute_script returns [11:48:57]free content buf [11:48:57]Sock 10.Close socket [11:48:57]Sock 10.Thread stoped [11:48:57]OFD Sender: No OFD packet to send [11:49:02]OFD Sender: No OFD packet to send [11:49:07]OFD Sender: No OFD packet to send [11:49:12]OFD Sender: No OFD packet to send [11:49:17]OFD Sender: No OFD packet to send [11:49:22]OFD Sender: No OFD packet to send [11:49:27]OFD Sender: No OFD packet to send [11:49:32]OFD Sender: No OFD packet to send [11:49:37]OFD Sender: No OFD packet to send [11:49:42]OFD Sender: No OFD packet to send [11:49:47]OFD Sender: No OFD packet to send [11:49:52]OFD Sender: No OFD packet to send [11:49:57]OFD Sender: No OFD packet to send [11:50:00]accept exits with 8 [11:50:00]New connection [11:50:00]New thread 3066686820 created [11:50:00]Thread 3066543460 joined [11:50:00]Waiting for new connection... [11:50:00] Sock 8.Parse request [11:50:00]Sock 8.Check first char [11:50:00]Sock 8.First char is OK [11:50:00]request: POST /json_proto HTTP/1.0 [11:50:00]Method: POST [11:50:00]URL: /json_proto [11:50:00]Method is POST - this is cgi request [11:50:00]url: /json_proto [11:50:00]query_string will be loaded in cgi processing [11:50:00]execute_cgi json_proto POST (null) [11:50:00]execute_cgi path=json_proto method=POST [11:50:00]POST find Content-Length [11:50:00]Host: 172.17.44.195:8080 [11:50:00]Content-Length: 678 [11:50:00]Content-Type: application/json [11:50:00] [11:50:00]POST finish read [11:50:00]Found Content-Length = 678 [11:50:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962917", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:50:00]execute_script... [11:50:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962917", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:50:00]POST & json_proto [11:50:00]process_json_proto [11:50:00]json parsed OK: [11:50:00]protocol is kg_v1.0 [11:50:00]action value=close_receipt [11:50:00]process_action close_receipt [11:50:00]cmd_close_receipt [11:50:00]MH_GetDate [11:50:00]Write to MH i2c: F0 00 00 75 10 74 [11:50:00]Write i2c OK [11:50:00]MH_I2C_Read... [11:50:00]Read from MH i2c: F0 [11:50:00]MH_I2C_Read... [11:50:00]Read from MH i2c: F0 09 00 [11:50:00]MH_I2C_Read... [11:50:00]Read from MH i2c: F0 09 00 75 10 00 69 EE 14 67 82 C9 CF 66 CF [11:50:00]GetLastDocTimeStamp 1729424935 [11:50:00]current date 1729425001 [11:50:00]FM_GetShiftState [11:50:00]SAM_PROTO_GetShiftState [11:50:00]wFMCommunicate request_size=4 [11:50:00]MH_SAM_APDU [11:50:00]CAPDU: 80 13 01 00 [11:50:00]Write to MH i2c: E2 08 00 76 10 80 13 01 00 00 00 00 00 03 [11:50:00]Write i2c OK [11:50:00]MH_I2C_Read... [11:50:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:00]Read from MH i2c: E2 [11:50:00]MH_I2C_Read... [11:50:00]Read from MH i2c: E2 0E 00 [11:50:00]MH_I2C_Read... [11:50:00]Read from MH i2c: E2 0E 00 76 10 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 1D [11:50:00]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:50:00]wFMCommunicate OK [11:50:00]SAM_PROTO_GetShiftState done [11:50:00]FM_GetShiftState done [11:50:00]opened in 1729383750 [11:50:00]opened+sec_in_day 1729470150 [11:50:00]quantity*price = 25020 [11:50:00]sum+1 = 25022 [11:50:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 249 20.10.2024 11:50 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227401 ФПД: 56389201339137 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T115001&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227401&fm=56389201339137&tin=02508201610067®Number=0000000000091685&sum=25000 [11:50:01]StoreToDocumentArchive [11:50:01]shift 533 fd 227401 [11:50:01]save to /storage/0533/doc_00227401 [11:50:01]save last doc name /storage/0533/doc_00227401 to /storage/kkm_last_doc_name [11:50:01]save OK [11:50:01]Clear old archive folders... [11:50:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:50:01]tlvbuf is 0186BCA0 [11:50:01]SAM_PROTO_ClearQueue [11:50:01]wFMCommunicate request_size=4 [11:50:01]MH_SAM_APDU [11:50:01]CAPDU: 80 09 00 00 [11:50:01]Write to MH i2c: E2 08 00 83 10 80 09 00 00 00 00 00 00 05 [11:50:01]Write i2c OK [11:50:01]MH_I2C_Read... [11:50:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:50:01]Read from MH i2c: E2 [11:50:01]MH_I2C_Read... [11:50:01]Read from MH i2c: E2 03 00 [11:50:01]MH_I2C_Read... [11:50:01]Read from MH i2c: E2 03 00 83 10 00 90 00 07 [11:50:01]RAPDU: 90 00 [11:50:01]wFMCommunicate OK [11:50:01]SAM_PROTO_ClearQueue done [11:50:01]KKMCreateOFDPacket [11:50:01]OFDProtocolAddRootSTLVToBuf [11:50:01]FM_MakeSignedData [11:50:01]FM_MakeSignedData [11:50:01]SAM_PROTO_SignData [11:50:01]wFMCommunicate request_size=4 [11:50:01]MH_SAM_APDU [11:50:01]CAPDU: 80 0D 01 02 [11:50:01]Write to MH i2c: E2 08 00 84 10 80 0D 01 02 00 00 00 00 0D [11:50:01]Write i2c OK [11:50:01]MH_I2C_Read... [11:50:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:50:01]Read from MH i2c: E2 [11:50:01]MH_I2C_Read... [11:50:01]Read from MH i2c: E2 03 00 [11:50:01]MH_I2C_Read... [11:50:01]Read from MH i2c: E2 03 00 84 10 00 90 00 08 [11:50:01]RAPDU: 90 00 [11:50:01]wFMCommunicate OK [11:50:01]wFMCommunicate request_size=255 [11:50:01]MH_SAM_APDU [11:50:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 69 EE 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 49 78 03 00 35 04 06 00 33 [11:50:01]Write to MH i2c: E2 02 01 85 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 69 EE 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 49 78 03 00 35 04 06 00 33 00 00 56 [11:50:01]Write i2c OK [11:50:01]MH_I2C_Read... [11:50:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:02]Read from MH i2c: E2 [11:50:02]MH_I2C_Read... [11:50:02]Read from MH i2c: E2 03 00 [11:50:02]MH_I2C_Read... [11:50:02]Read from MH i2c: E2 03 00 85 10 00 90 00 09 [11:50:02]RAPDU: 90 00 [11:50:02]wFMCommunicate OK [11:50:02]wFMCommunicate request_size=10 [11:50:02]MH_SAM_APDU [11:50:02]CAPDU: 80 0D 02 02 05 49 22 50 A3 01 [11:50:02]Write to MH i2c: E2 0D 00 86 10 80 0D 02 02 05 00 49 22 50 A3 01 00 00 79 [11:50:02]Write i2c OK [11:50:02]MH_I2C_Read... [11:50:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:02]Read from MH i2c: E2 [11:50:02]MH_I2C_Read... [11:50:02]Read from MH i2c: E2 03 00 [11:50:02]MH_I2C_Read... [11:50:02]Read from MH i2c: E2 03 00 86 10 00 90 00 0A [11:50:02]RAPDU: 90 00 [11:50:02]wFMCommunicate OK [11:50:02]wFMCommunicate request_size=4 [11:50:02]MH_SAM_APDU [11:50:02]CAPDU: 80 0D 03 02 [11:50:02]Write to MH i2c: E2 08 00 87 10 80 0D 03 02 00 00 00 00 12 [11:50:02]Write i2c OK [11:50:02]MH_I2C_Read... [11:50:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:50:02]Read from MH i2c: E2 [11:50:02]MH_I2C_Read... [11:50:02]Read from MH i2c: E2 0B 00 [11:50:02]MH_I2C_Read... [11:50:02]Read from MH i2c: E2 0B 00 87 10 00 DB C4 CB 78 B7 D6 4A 6A 90 00 36 [11:50:02]RAPDU: DB C4 CB 78 B7 D6 4A 6A 90 00 [11:50:02]wFMCommunicate OK [11:50:02]SAM_PROTO_SignData done [11:50:02]FM_MakeSignedData done [11:50:02]CreateOFDProtocolMessage [11:50:02]wFMCommunicate request_size=4 [11:50:02]MH_SAM_APDU [11:50:02]CAPDU: 80 11 00 00 [11:50:02]Write to MH i2c: E2 08 00 88 10 80 11 00 00 00 00 00 00 12 [11:50:02]Write i2c OK [11:50:02]MH_I2C_Read... [11:50:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:02]Read from MH i2c: E2 [11:50:02]MH_I2C_Read... [11:50:02]Read from MH i2c: E2 17 00 [11:50:02]MH_I2C_Read... [11:50:02]Read from MH i2c: E2 17 00 88 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 69 [11:50:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:50:02]wFMCommunicate OK [11:50:02]CreateOFDProtocolMessage done [11:50:02]OFDSenderStorePacket 227401 [11:50:02]StoreOFDPacket docnum=227401 [11:50:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 DF 91 07 01 DD FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 69 EE 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 49 78 03 00 35 04 06 00 33 49 22 50 A3 01 DB C4 CB 78 B7 D6 4A 6A [11:50:02]CheckFolder [11:50:02]dirname=/storage/ofd_packets [11:50:02]CheckFolder done [11:50:02]ProducePacketName [11:50:02]name=ofd_packets/00227401 [11:50:02]NVStorageSaveData ofd_packets/00227401 [11:50:02]File name is /storage/ofd_packets/00227401 [11:50:02]Write 301 bytes [11:50:02]NVStorageSaveData done [11:50:02]OFDSenderStorePacket done [11:50:02]KKMCreateOFDPacket done [11:50:02]NVStorageSaveData kkm_last_timestamp [11:50:02]File name is /storage/kkm_last_timestamp [11:50:02]Write 4 bytes [11:50:02]NVStorageSaveData done [11:50:02]ExternCall_PrintAddStr [11:50:02]wPrintStart [11:50:02]Write to MH i2c: 01 00 00 89 10 99 [11:50:02]Write i2c OK [11:50:02]MH_I2C_Read... [11:50:02]Read from MH i2c: 01 [11:50:02]MH_I2C_Read... [11:50:02]Read from MH i2c: 01 07 00 [11:50:02]MH_I2C_Read... [11:50:02]Read from MH i2c: 01 07 00 89 10 00 00 00 00 00 FF 0F AE [11:50:02]RasterBufferAndPrint [11:50:02]line Счет N : (1)1962917 [11:50:02]line ИНН: 02508201610067 [11:50:02]line Контрольно-Кассовый Чек [11:50:02]line ПРОДАЖА [11:50:02]line ТРК (МРК, ГНК) : 53 [11:50:02]line Товар: 2710124130 [11:50:02]line Аи-92-К-5 [11:50:02]line 3.740 * 66.90 [11:50:02]line = 250.21 [11:50:02]line НДС 12% НСП 1% [11:50:02]line > о реализуемом товаре [11:50:02]line ОКРУГЛЕНИЕ: -0.21 [11:50:02]line ИТОГО: 250.00 [11:50:02]line Внесено: 250.00 [11:50:02]line СДАЧА: 0.00 [11:50:02]line НСП 1% : 2.21 [11:50:02]line НДС 12% : 26.57 [11:50:02]line Наличными: 250.00 [11:50:02]line Безнал.: 0.00 [11:50:02]line Место: АЗС № 133 "Партнер Нефть" [11:50:02]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:50:02]line СНО: Общий режим [11:50:02]line Чек 249 20.10.2024 11:50 [11:50:02]line Смена: 533 ФФД: 1.0 [11:50:02]line ЗНМ: 0300000091 [11:50:02]line РНМ: 0000000000091685 [11:50:02]line Версия ККМ: 001 [11:50:02]line ФМ: 0000000000871839 [11:50:02]line ФД: 227401 [11:50:02]line ФПД: 56389201339137 [11:50:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T115001&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227401&fm=56389201339137&tin=02508201610067®Number=0000000000091685&sum=25000 [11:50:02]written 0, free lines is 4095 [11:50:02]OFD Sender: Processing packet 227401 [packets to send 38, broken 37] [11:50:02]ProducePacketName [11:50:02]name=ofd_packets/00227401 [11:50:02]OFD Sender: To server: pG, [11:50:02]CommunicateWithHost lk.salyk.kg:30040 [11:50:02]ConnectInit lk.salyk.kg [11:50:02]Connected sock=10 [11:50:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 DF 91 07 01 DD FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 69 EE 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 49 78 03 00 35 04 06 00 33 49 22 50 A3 01 DB C4 CB 78 B7 D6 4A 6A [11:50: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 33 39 4F 00 00 00 52 76 47 00 18 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 33 39 10 04 04 00 49 78 03 00 F4 03 04 00 68 99 14 67 B6 04 01 00 00 12 44 F9 AB F9 F5 2D 49 [11:50:02]CommunicateWithHost err = 0 [11:50:02]CheckOFDResponse [11:50:02]1017 (14) - 77093643461234 [11:50:02]1041 (16) - 0000000000871839 [11:50:02]1040 (4) - 227401 [11:50:02]1012 (4) - 20.10.2024 05:47 [11:50:02]1206 (1) - 0 [11:50:02]OFD Sender: Remove packet 227401 [11:50:02]ProducePacketName [11:50:02]name=ofd_packets/00227401 [11:50:02]NVStorageDeleteData [11:50:03]Write to MH i2c: 01 00 00 B3 10 C3 [11:50:03]Write i2c OK [11:50:03]MH_I2C_Read... [11:50:03]Read from MH i2c: 01 [11:50:03]MH_I2C_Read... [11:50:03]Read from MH i2c: 01 07 00 [11:50:03]MH_I2C_Read... [11:50:03]Read from MH i2c: 01 07 00 B3 10 00 00 00 00 00 02 0D D9 [11:50:03]RasterBufferAndPrint [11:50:03]line [11:50:03]line [11:50:03]line [11:50:03]line [11:50:03]line [11:50:03]written 0, free lines is 3336 [11:50:03]process_action close_receipt done [11:50:03]requested_data is exist [11:50:03]produce_requested_data [11:50:03]requested_item fm.sn is exist - process it [11:50:03]wFMCommunicate request_size=4 [11:50:03]MH_SAM_APDU [11:50:03]CAPDU: 80 11 00 00 [11:50:03]Write to MH i2c: E2 08 00 BA 10 80 11 00 00 00 00 00 00 44 [11:50:03]Write i2c OK [11:50:03]MH_I2C_Read... [11:50:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:03]Read from MH i2c: E2 [11:50:03]MH_I2C_Read... [11:50:03]Read from MH i2c: E2 17 00 [11:50:03]MH_I2C_Read... [11:50:03]Read from MH i2c: E2 17 00 BA 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 9B [11:50:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:50:03]wFMCommunicate OK [11:50:03]requested_item fd.num is exist - process it [11:50:03]SAM_PROTO_GetFieldsCounters [11:50:03]wFMCommunicate request_size=4 [11:50:03]MH_SAM_APDU [11:50:03]CAPDU: 80 13 00 00 [11:50:03]Write to MH i2c: E2 08 00 BB 10 80 13 00 00 00 00 00 00 47 [11:50:03]Write i2c OK [11:50:03]MH_I2C_Read... [11:50:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:50:03]Read from MH i2c: E2 [11:50:03]MH_I2C_Read... [11:50:03]Read from MH i2c: E2 62 00 [11:50:03]MH_I2C_Read... [11:50:03]Read from MH i2c: E2 62 00 BB 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 49 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [11:50: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 49 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:50:03]wFMCommunicate OK [11:50:03]SAM_PROTO_GetFieldsCounters done [11:50:03]requested_item shift.num is exist - process it [11:50:03]requested_item shift.opened is exist - process it [11:50:03]req_shift_opened [11:50:03]FM_GetShiftState [11:50:03]SAM_PROTO_GetShiftState [11:50:03]wFMCommunicate request_size=4 [11:50:03]MH_SAM_APDU [11:50:03]CAPDU: 80 13 01 00 [11:50:03]Write to MH i2c: E2 08 00 BC 10 80 13 01 00 00 00 00 00 49 [11:50:03]Write i2c OK [11:50:03]MH_I2C_Read... [11:50:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:03]Read from MH i2c: E2 [11:50:03]MH_I2C_Read... [11:50:03]Read from MH i2c: E2 0E 00 [11:50:03]MH_I2C_Read... [11:50:03]Read from MH i2c: E2 0E 00 BC 10 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 63 [11:50:03]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:50:03]wFMCommunicate OK [11:50:03]SAM_PROTO_GetShiftState done [11:50:03]FM_GetShiftState done [11:50:03]req_shift_opened done [11:50:03]requested_item shift.open_date is exist - process it [11:50:03]req_shift_open_date [11:50:03]req_shift_open_date done [11:50:03]produce_requested_data done [11:50:03]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227401,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [11:50:03]process_action_free close_receipt [11:50:03]json_value_free [11:50:03]json_value_free done [11:50:03]process_json_proto returns [11:50:03]Send response to host [11:50:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227401,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [11:50:03]free response buf [11:50:03]execute_script done [11:50:03]execute_script returns [11:50:03]free content buf [11:50:03]Sock 8.Close socket [11:50:03]Sock 8.Thread stoped [11:50:03]OFD Sender: No OFD packet to send [11:50:08]OFD Sender: No OFD packet to send [11:50:13]OFD Sender: No OFD packet to send [11:50:18]OFD Sender: No OFD packet to send [11:50:23]OFD Sender: No OFD packet to send [11:50:28]OFD Sender: No OFD packet to send [11:50:33]OFD Sender: No OFD packet to send [11:50:38]OFD Sender: No OFD packet to send [11:50:43]OFD Sender: No OFD packet to send [11:50:48]OFD Sender: No OFD packet to send [11:50:53]OFD Sender: No OFD packet to send [11:50:58]accept exits with 9 [11:50:58]New connection [11:50:58]New thread 3066543460 created [11:50:58]Thread 3066686820 joined [11:50:58]Waiting for new connection... [11:50:58] Sock 9.Parse request [11:50:58]Sock 9.Check first char [11:50:58]Sock 9.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.44.195:8080 [11:50:58]Content-Length: 680 [11:50:58]Content-Type: application/json [11:50:58] [11:50:58]POST finish read [11:50:58]Found Content-Length = 680 [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)1962918", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11: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)1962918", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11: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 BD 10 BC [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 BD 10 00 A3 EE 14 67 82 C9 CF 66 51 [11:50:58]GetLastDocTimeStamp 1729425001 [11:50:58]current date 1729425059 [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 BE 10 80 13 01 00 00 00 00 00 4B [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 BE 10 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 65 [11:50:58]RAPDU: 09 00 01 46 4D 14 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 1729383750 [11:50:58]opened+sec_in_day 1729470150 [11:50:58]quantity*price = 100050 [11:50:58]sum+1 = 100052 [11:50:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 250 20.10.2024 11:50 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227402 ФПД: 223367012175378 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T115059&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227402&fm=223367012175378&tin=02508201610067®Number=0000000000091685&sum=100000 [11:50:59]StoreToDocumentArchive [11:50:59]shift 533 fd 227402 [11:50:59]save to /storage/0533/doc_00227402 [11:50:59]save last doc name /storage/0533/doc_00227402 to /storage/kkm_last_doc_name [11:50:59]save OK [11:50:59]Clear old archive folders... [11:50:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:50:59]tlvbuf is 0183B700 [11:50:59]SAM_PROTO_ClearQueue [11:50:59]wFMCommunicate request_size=4 [11:50:59]MH_SAM_APDU [11:50:59]CAPDU: 80 09 00 00 [11:50:59]Write to MH i2c: E2 08 00 CB 10 80 09 00 00 00 00 00 00 4D [11:50:59]Write i2c OK [11:50:59]MH_I2C_Read... [11:50:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:50:59]Read from MH i2c: E2 [11:50:59]MH_I2C_Read... [11:50:59]Read from MH i2c: E2 03 00 [11:50:59]MH_I2C_Read... [11:50:59]Read from MH i2c: E2 03 00 CB 10 00 90 00 4F [11:50:59]RAPDU: 90 00 [11:50:59]wFMCommunicate OK [11:50:59]SAM_PROTO_ClearQueue done [11:50:59]KKMCreateOFDPacket [11:50:59]OFDProtocolAddRootSTLVToBuf [11:50:59]FM_MakeSignedData [11:50:59]FM_MakeSignedData [11:50:59]SAM_PROTO_SignData [11:50:59]wFMCommunicate request_size=4 [11:50:59]MH_SAM_APDU [11:50:59]CAPDU: 80 0D 01 02 [11:50:59]Write to MH i2c: E2 08 00 CC 10 80 0D 01 02 00 00 00 00 55 [11:50:59]Write i2c OK [11:50:59]MH_I2C_Read... [11:50:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:50:59]Read from MH i2c: E2 [11:50:59]MH_I2C_Read... [11:50:59]Read from MH i2c: E2 03 00 [11:50:59]MH_I2C_Read... [11:50:59]Read from MH i2c: E2 03 00 CC 10 00 90 00 50 [11:50:59]RAPDU: 90 00 [11:50:59]wFMCommunicate OK [11:50:59]wFMCommunicate request_size=255 [11:50:59]MH_SAM_APDU [11:50:59]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 A3 EE 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4A 78 03 00 35 04 06 00 CB 26 AF 6A [11:50:59]Write to MH i2c: E2 02 01 CD 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 A3 EE 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4A 78 03 00 35 04 06 00 CB 26 AF 6A 00 00 CE [11:50:59]Write i2c OK [11:50:59]MH_I2C_Read... [11:50:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:59]Read from MH i2c: E2 [11:50:59]MH_I2C_Read... [11:50:59]Read from MH i2c: E2 03 00 [11:50:59]MH_I2C_Read... [11:50:59]Read from MH i2c: E2 03 00 CD 10 00 90 00 51 [11:50:59]RAPDU: 90 00 [11:50:59]wFMCommunicate OK [11:50:59]wFMCommunicate request_size=7 [11:50:59]MH_SAM_APDU [11:50:59]CAPDU: 80 0D 02 02 02 4E 12 [11:50:59]Write to MH i2c: E2 0A 00 CE 10 80 0D 02 02 02 00 4E 12 00 00 BC [11:50:59]Write i2c OK [11:50:59]MH_I2C_Read... [11:50:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:59]Read from MH i2c: E2 [11:50:59]MH_I2C_Read... [11:50:59]Read from MH i2c: E2 03 00 [11:50:59]MH_I2C_Read... [11:50:59]Read from MH i2c: E2 03 00 CE 10 00 90 00 52 [11:50:59]RAPDU: 90 00 [11:50:59]wFMCommunicate OK [11:50:59]wFMCommunicate request_size=4 [11:50:59]MH_SAM_APDU [11:50:59]CAPDU: 80 0D 03 02 [11:50:59]Write to MH i2c: E2 08 00 CF 10 80 0D 03 02 00 00 00 00 5A [11:50:59]Write i2c OK [11:50:59]MH_I2C_Read... [11:50:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:50:59]Read from MH i2c: E2 [11:50:59]MH_I2C_Read... [11:50:59]Read from MH i2c: E2 0B 00 [11:50:59]MH_I2C_Read... [11:50:59]Read from MH i2c: E2 0B 00 CF 10 00 B7 D5 BF D5 EB B0 14 64 90 00 8E [11:50:59]RAPDU: B7 D5 BF D5 EB B0 14 64 90 00 [11:50:59]wFMCommunicate OK [11:50:59]SAM_PROTO_SignData done [11:50:59]FM_MakeSignedData done [11:50:59]CreateOFDProtocolMessage [11:50:59]wFMCommunicate request_size=4 [11:50:59]MH_SAM_APDU [11:50:59]CAPDU: 80 11 00 00 [11:50:59]Write to MH i2c: E2 08 00 D0 10 80 11 00 00 00 00 00 00 5A [11:50:59]Write i2c OK [11:50:59]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 D0 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B1 [11:51:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:51:00]wFMCommunicate OK [11:51:00]CreateOFDProtocolMessage done [11:51:00]OFDSenderStorePacket 227402 [11:51:00]StoreOFDPacket docnum=227402 [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 33 39 0C 01 00 00 22 CC 04 01 50 A0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 A3 EE 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4A 78 03 00 35 04 06 00 CB 26 AF 6A 4E 12 B7 D5 BF D5 EB B0 14 64 [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/00227402 [11:51:00]NVStorageSaveData ofd_packets/00227402 [11:51:00]File name is /storage/ofd_packets/00227402 [11:51:00]Write 298 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 D1 10 E1 [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 D1 10 00 00 00 00 00 FF 0F F6 [11:51:00]RasterBufferAndPrint [11:51:00]line Счет N : (1)1962918 [11:51:00]line ИНН: 02508201610067 [11:51:00]line Контрольно-Кассовый Чек [11:51:00]line ПРОДАЖА [11:51:00]line ТРК (МРК, ГНК) : 21 [11:51:00]line Товар: 2710194210 [11:51:00]line ДТ-К-5 [11:51:00]line 13.130 * 76.20 [11:51:00]line = 1000.51 [11:51:00]line НДС 12% НСП 1% [11:51:00]line > о реализуемом товаре [11:51:00]line ОКРУГЛЕНИЕ: -0.51 [11:51:00]line ИТОГО: 1000.00 [11:51:00]line Внесено: 1000.00 [11:51:00]line СДАЧА: 0.00 [11:51:00]line НСП 1% : 8.85 [11:51:00]line НДС 12% : 106.25 [11:51:00]line Наличными: 1000.00 [11:51:00]line Безнал.: 0.00 [11:51:00]line Место: АЗС № 133 "Партнер Нефть" [11:51:00]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:51:00]line СНО: Общий режим [11:51:00]line Чек 250 20.10.2024 11:50 [11:51:00]line Смена: 533 ФФД: 1.0 [11:51:00]line ЗНМ: 0300000091 [11:51:00]line РНМ: 0000000000091685 [11:51:00]line Версия ККМ: 001 [11:51:00]line ФМ: 0000000000871839 [11:51:00]line ФД: 227402 [11:51:00]line ФПД: 223367012175378 [11:51:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T115059&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227402&fm=223367012175378&tin=02508201610067®Number=0000000000091685&sum=100000 [11:51:00]OFD Sender: Processing packet 227402 [packets to send 38, broken 37] [11:51:00]ProducePacketName [11:51:00]name=ofd_packets/00227402 [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:00]written 0, free lines is 4095 [11:51:00]Connected sock=10 [11:51:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 22 CC 04 01 50 A0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 A3 EE 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4A 78 03 00 35 04 06 00 CB 26 AF 6A 4E 12 B7 D5 BF D5 EB B0 14 64 [11:51: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 33 39 4F 00 00 00 44 9C 47 00 C9 E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4A 78 03 00 F4 03 04 00 A2 99 14 67 B6 04 01 00 00 2A 08 92 EE 77 E4 4C DB [11:51:00]CommunicateWithHost err = 0 [11:51:00]CheckOFDResponse [11:51:00]1017 (14) - 77093643461234 [11:51:00]1041 (16) - 0000000000871839 [11:51:00]1040 (4) - 227402 [11:51:00]1012 (4) - 20.10.2024 05:48 [11:51:00]1206 (1) - 0 [11:51:00]OFD Sender: Remove packet 227402 [11:51:00]ProducePacketName [11:51:00]name=ofd_packets/00227402 [11:51:00]NVStorageDeleteData [11:51:00]Write to MH i2c: 01 00 00 FB 10 0B [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 FB 10 00 00 00 00 00 FE 0C 1C [11:51:00]RasterBufferAndPrint [11:51:00]line [11:51:00]line [11:51:00]line [11:51:00]line [11:51:00]line [11:51:00]written 0, free lines is 3335 [11:51:00]process_action close_receipt done [11:51:00]requested_data is exist [11:51:00]produce_requested_data [11:51:00]requested_item fm.sn is exist - process it [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 02 11 80 11 00 00 00 00 00 00 8D [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 02 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E4 [11:51:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:51:00]wFMCommunicate OK [11:51:00]requested_item fd.num is exist - process it [11:51:00]SAM_PROTO_GetFieldsCounters [11:51:00]wFMCommunicate request_size=4 [11:51:00]MH_SAM_APDU [11:51:00]CAPDU: 80 13 00 00 [11:51:00]Write to MH i2c: E2 08 00 03 11 80 13 00 00 00 00 00 00 90 [11:51:00]Write i2c OK [11:51:00]MH_I2C_Read... [11:51:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:51:01]Read from MH i2c: E2 [11:51:01]MH_I2C_Read... [11:51:01]Read from MH i2c: E2 62 00 [11:51:01]MH_I2C_Read... [11:51:01]Read from MH i2c: E2 62 00 03 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 4A 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [11:51:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 4A 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:51:01]wFMCommunicate OK [11:51:01]SAM_PROTO_GetFieldsCounters done [11:51:01]requested_item shift.num is exist - process it [11:51:01]requested_item shift.opened is exist - process it [11:51:01]req_shift_opened [11:51:01]FM_GetShiftState [11:51:01]SAM_PROTO_GetShiftState [11:51:01]wFMCommunicate request_size=4 [11:51:01]MH_SAM_APDU [11:51:01]CAPDU: 80 13 01 00 [11:51:01]Write to MH i2c: E2 08 00 04 11 80 13 01 00 00 00 00 00 92 [11:51:01]Write i2c OK [11:51:01]MH_I2C_Read... [11:51:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:01]Read from MH i2c: E2 [11:51:01]MH_I2C_Read... [11:51:01]Read from MH i2c: E2 0E 00 [11:51:01]MH_I2C_Read... [11:51:01]Read from MH i2c: E2 0E 00 04 11 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 AC [11:51:01]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:51:01]wFMCommunicate OK [11:51:01]SAM_PROTO_GetShiftState done [11:51:01]FM_GetShiftState done [11:51:01]req_shift_opened done [11:51:01]requested_item shift.open_date is exist - process it [11:51:01]req_shift_open_date [11:51:01]req_shift_open_date done [11:51:01]produce_requested_data done [11:51:01]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227402,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [11:51:01]process_action_free close_receipt [11:51:01]json_value_free [11:51:01]json_value_free done [11:51:01]process_json_proto returns [11:51:01]Send response to host [11:51:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227402,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [11:51:01]free response buf [11:51:01]execute_script done [11:51:01]execute_script returns [11:51:01]free content buf [11:51:01]Sock 9.Close socket [11:51:01]Sock 9.Thread stoped [11:51:01]OFD Sender: No OFD packet to send [11:51:06]OFD Sender: No OFD packet to send [11:51:06]accept exits with 8 [11:51:06]New connection [11:51:06]New thread 3066686820 created [11:51:06]Thread 3066543460 joined [11:51:06]Waiting for new connection... [11:51:06] Sock 8.Parse request [11:51:06]Sock 8.Check first char [11:51:06]Sock 8.First char is OK [11:51:06]request: POST /json_proto HTTP/1.0 [11:51:06]Method: POST [11:51:06]URL: /json_proto [11:51:06]Method is POST - this is cgi request [11:51:06]url: /json_proto [11:51:06]query_string will be loaded in cgi processing [11:51:06]execute_cgi json_proto POST (null) [11:51:06]execute_cgi path=json_proto method=POST [11:51:06]POST find Content-Length [11:51:06]Host: 172.17.44.195:8080 [11:51:06]Content-Length: 678 [11:51:06]Content-Type: application/json [11:51:06] [11:51:06]POST finish read [11:51:06]Found Content-Length = 678 [11:51:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962919", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:51:06]execute_script... [11:51: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)1962919", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:51:06]POST & json_proto [11:51:06]process_json_proto [11:51:06]json parsed OK: [11:51:06]protocol is kg_v1.0 [11:51:06]action value=close_receipt [11:51:06]process_action close_receipt [11:51:06]cmd_close_receipt [11:51:06]MH_GetDate [11:51:06]Write to MH i2c: F0 00 00 05 11 05 [11:51:06]Write i2c OK [11:51:06]MH_I2C_Read... [11:51:06]Read from MH i2c: F0 [11:51:06]MH_I2C_Read... [11:51:06]Read from MH i2c: F0 09 00 [11:51:06]MH_I2C_Read... [11:51:06]Read from MH i2c: F0 09 00 05 11 00 AB EE 14 67 82 C9 CF 66 A2 [11:51:06]GetLastDocTimeStamp 1729425059 [11:51:06]current date 1729425067 [11:51:06]FM_GetShiftState [11:51:06]SAM_PROTO_GetShiftState [11:51:06]wFMCommunicate request_size=4 [11:51:06]MH_SAM_APDU [11:51:06]CAPDU: 80 13 01 00 [11:51:06]Write to MH i2c: E2 08 00 06 11 80 13 01 00 00 00 00 00 94 [11:51:06]Write i2c OK [11:51:06]MH_I2C_Read... [11:51:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:06]Read from MH i2c: E2 [11:51:06]MH_I2C_Read... [11:51:06]Read from MH i2c: E2 0E 00 [11:51:06]MH_I2C_Read... [11:51:06]Read from MH i2c: E2 0E 00 06 11 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 AE [11:51:06]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:51:06]wFMCommunicate OK [11:51:06]SAM_PROTO_GetShiftState done [11:51:06]FM_GetShiftState done [11:51:06]opened in 1729383750 [11:51:06]opened+sec_in_day 1729470150 [11:51:06]quantity*price = 40006 [11:51:06]sum+1 = 40007 [11:51:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 251 20.10.2024 11:51 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227403 ФПД: 62919702583461 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T115107&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227403&fm=62919702583461&tin=02508201610067®Number=0000000000091685&sum=40000 [11:51:07]StoreToDocumentArchive [11:51:07]shift 533 fd 227403 [11:51:07]save to /storage/0533/doc_00227403 [11:51:07]save last doc name /storage/0533/doc_00227403 to /storage/kkm_last_doc_name [11:51:07]save OK [11:51:07]Clear old archive folders... [11:51:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:51:07]tlvbuf is 019671E0 [11:51:07]SAM_PROTO_ClearQueue [11:51:07]wFMCommunicate request_size=4 [11:51:07]MH_SAM_APDU [11:51:07]CAPDU: 80 09 00 00 [11:51:07]Write to MH i2c: E2 08 00 13 11 80 09 00 00 00 00 00 00 96 [11:51:07]Write i2c OK [11:51:07]MH_I2C_Read... [11:51:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:51:07]Read from MH i2c: E2 [11:51:07]MH_I2C_Read... [11:51:07]Read from MH i2c: E2 03 00 [11:51:07]MH_I2C_Read... [11:51:07]Read from MH i2c: E2 03 00 13 11 00 90 00 98 [11:51:07]RAPDU: 90 00 [11:51:07]wFMCommunicate OK [11:51:07]SAM_PROTO_ClearQueue done [11:51:07]KKMCreateOFDPacket [11:51:07]OFDProtocolAddRootSTLVToBuf [11:51:07]FM_MakeSignedData [11:51:07]FM_MakeSignedData [11:51:07]SAM_PROTO_SignData [11:51:07]wFMCommunicate request_size=4 [11:51:07]MH_SAM_APDU [11:51:07]CAPDU: 80 0D 01 02 [11:51:07]Write to MH i2c: E2 08 00 14 11 80 0D 01 02 00 00 00 00 9E [11:51:07]Write i2c OK [11:51:07]MH_I2C_Read... [11:51:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:51:07]Read from MH i2c: E2 [11:51:07]MH_I2C_Read... [11:51:07]Read from MH i2c: E2 03 00 [11:51:07]MH_I2C_Read... [11:51:07]Read from MH i2c: E2 03 00 14 11 00 90 00 99 [11:51:07]RAPDU: 90 00 [11:51:07]wFMCommunicate OK [11:51:07]wFMCommunicate request_size=255 [11:51:07]MH_SAM_APDU [11:51:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 AB EE 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4B 78 03 00 35 04 06 00 39 [11:51:07]Write to MH i2c: E2 02 01 15 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 AB EE 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4B 78 03 00 35 04 06 00 39 00 00 29 [11:51:07]Write i2c OK [11:51:07]MH_I2C_Read... [11:51:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:07]Read from MH i2c: E2 [11:51:07]MH_I2C_Read... [11:51:07]Read from MH i2c: E2 03 00 [11:51:07]MH_I2C_Read... [11:51:07]Read from MH i2c: E2 03 00 15 11 00 90 00 9A [11:51:07]RAPDU: 90 00 [11:51:07]wFMCommunicate OK [11:51:07]wFMCommunicate request_size=10 [11:51:07]MH_SAM_APDU [11:51:07]CAPDU: 80 0D 02 02 05 39 A2 85 98 A5 [11:51:07]Write to MH i2c: E2 0D 00 16 11 80 0D 02 02 05 00 39 A2 85 98 A5 00 00 48 [11:51:08]Write i2c OK [11:51:08]MH_I2C_Read... [11:51:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:08]Read from MH i2c: E2 [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: E2 03 00 [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: E2 03 00 16 11 00 90 00 9B [11:51:08]RAPDU: 90 00 [11:51:08]wFMCommunicate OK [11:51:08]wFMCommunicate request_size=4 [11:51:08]MH_SAM_APDU [11:51:08]CAPDU: 80 0D 03 02 [11:51:08]Write to MH i2c: E2 08 00 17 11 80 0D 03 02 00 00 00 00 A3 [11:51:08]Write i2c OK [11:51:08]MH_I2C_Read... [11:51:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:51:08]Read from MH i2c: E2 [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: E2 0B 00 [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: E2 0B 00 17 11 00 26 5D 21 4F D1 C1 00 6C 90 00 95 [11:51:08]RAPDU: 26 5D 21 4F D1 C1 00 6C 90 00 [11:51:08]wFMCommunicate OK [11:51:08]SAM_PROTO_SignData done [11:51:08]FM_MakeSignedData done [11:51:08]CreateOFDProtocolMessage [11:51:08]wFMCommunicate request_size=4 [11:51:08]MH_SAM_APDU [11:51:08]CAPDU: 80 11 00 00 [11:51:08]Write to MH i2c: E2 08 00 18 11 80 11 00 00 00 00 00 00 A3 [11:51:08]Write i2c OK [11:51:08]MH_I2C_Read... [11:51:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:08]Read from MH i2c: E2 [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: E2 17 00 [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: E2 17 00 18 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 FA [11:51:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:51:08]wFMCommunicate OK [11:51:08]CreateOFDProtocolMessage done [11:51:08]OFDSenderStorePacket 227403 [11:51:08]StoreOFDPacket docnum=227403 [11:51:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 E2 93 07 01 46 C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 AB EE 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4B 78 03 00 35 04 06 00 39 39 A2 85 98 A5 26 5D 21 4F D1 C1 00 6C [11:51:08]CheckFolder [11:51:08]dirname=/storage/ofd_packets [11:51:08]CheckFolder done [11:51:08]ProducePacketName [11:51:08]name=ofd_packets/00227403 [11:51:08]NVStorageSaveData ofd_packets/00227403 [11:51:08]File name is /storage/ofd_packets/00227403 [11:51:08]Write 301 bytes [11:51:08]NVStorageSaveData done [11:51:08]OFDSenderStorePacket done [11:51:08]KKMCreateOFDPacket done [11:51:08]NVStorageSaveData kkm_last_timestamp [11:51:08]File name is /storage/kkm_last_timestamp [11:51:08]Write 4 bytes [11:51:08]NVStorageSaveData done [11:51:08]ExternCall_PrintAddStr [11:51:08]wPrintStart [11:51:08]Write to MH i2c: 01 00 00 19 11 2A [11:51:08]Write i2c OK [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: 01 [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: 01 07 00 [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: 01 07 00 19 11 00 00 00 00 00 FF 0F 3F [11:51:08]RasterBufferAndPrint [11:51:08]line Счет N : (1)1962919 [11:51:08]line ИНН: 02508201610067 [11:51:08]line Контрольно-Кассовый Чек [11:51:08]line ПРОДАЖА [11:51:08]line ТРК (МРК, ГНК) : 33 [11:51:08]line Товар: 2710124130 [11:51:08]line Аи-92-К-5 [11:51:08]line 5.980 * 66.90 [11:51:08]line = 400.06 [11:51:08]line НДС 12% НСП 1% [11:51:08]line > о реализуемом товаре [11:51:08]line ОКРУГЛЕНИЕ: -0.06 [11:51:08]line ИТОГО: 400.00 [11:51:08]line Внесено: 400.00 [11:51:08]line СДАЧА: 0.00 [11:51:08]line НСП 1% : 3.54 [11:51:08]line НДС 12% : 42.48 [11:51:08]line Наличными: 400.00 [11:51:08]line Безнал.: 0.00 [11:51:08]line Место: АЗС № 133 "Партнер Нефть" [11:51:08]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:51:08]line СНО: Общий режим [11:51:08]line Чек 251 20.10.2024 11:51 [11:51:08]line Смена: 533 ФФД: 1.0 [11:51:08]line ЗНМ: 0300000091 [11:51:08]line РНМ: 0000000000091685 [11:51:08]line Версия ККМ: 001 [11:51:08]line ФМ: 0000000000871839 [11:51:08]line ФД: 227403 [11:51:08]line ФПД: 62919702583461 [11:51:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T115107&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227403&fm=62919702583461&tin=02508201610067®Number=0000000000091685&sum=40000 [11:51:08]written 0, free lines is 4095 [11:51:08]OFD Sender: Processing packet 227403 [packets to send 38, broken 37] [11:51:08]ProducePacketName [11:51:08]name=ofd_packets/00227403 [11:51:08]OFD Sender: To server: pG, [11:51:08]CommunicateWithHost lk.salyk.kg:30040 [11:51:08]ConnectInit lk.salyk.kg [11:51:08]Connected sock=10 [11:51: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 33 39 0F 01 00 00 E2 93 07 01 46 C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 AB EE 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4B 78 03 00 35 04 06 00 39 39 A2 85 98 A5 26 5D 21 4F D1 C1 00 6C [11:51: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 33 39 4F 00 00 00 60 C0 47 00 25 AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4B 78 03 00 F4 03 04 00 AA 99 14 67 B6 04 01 00 00 18 7E 15 C4 F3 99 47 54 [11:51:08]CommunicateWithHost err = 0 [11:51:08]CheckOFDResponse [11:51:08]1017 (14) - 77093643461234 [11:51:08]1041 (16) - 0000000000871839 [11:51:08]1040 (4) - 227403 [11:51:08]1012 (4) - 20.10.2024 05:48 [11:51:08]1206 (1) - 0 [11:51:08]OFD Sender: Remove packet 227403 [11:51:08]ProducePacketName [11:51:08]name=ofd_packets/00227403 [11:51:08]NVStorageDeleteData [11:51:08]Write to MH i2c: 01 00 00 43 11 54 [11:51:08]Write i2c OK [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: 01 [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: 01 07 00 [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: 01 07 00 43 11 00 00 00 00 00 25 0D 8D [11:51:08]RasterBufferAndPrint [11:51:08]line [11:51:08]line [11:51:08]line [11:51:08]line [11:51:08]line [11:51:08]written 0, free lines is 3374 [11:51:08]process_action close_receipt done [11:51:08]requested_data is exist [11:51:08]produce_requested_data [11:51:08]requested_item fm.sn is exist - process it [11:51:08]wFMCommunicate request_size=4 [11:51:08]MH_SAM_APDU [11:51:08]CAPDU: 80 11 00 00 [11:51:08]Write to MH i2c: E2 08 00 4A 11 80 11 00 00 00 00 00 00 D5 [11:51:08]Write i2c OK [11:51:08]MH_I2C_Read... [11:51:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:08]Read from MH i2c: E2 [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: E2 17 00 [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: E2 17 00 4A 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 2C [11:51:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:51:08]wFMCommunicate OK [11:51:08]requested_item fd.num is exist - process it [11:51:08]SAM_PROTO_GetFieldsCounters [11:51:08]wFMCommunicate request_size=4 [11:51:08]MH_SAM_APDU [11:51:08]CAPDU: 80 13 00 00 [11:51:08]Write to MH i2c: E2 08 00 4B 11 80 13 00 00 00 00 00 00 D8 [11:51:08]Write i2c OK [11:51:08]MH_I2C_Read... [11:51:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:51:08]Read from MH i2c: E2 [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: E2 62 00 [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: E2 62 00 4B 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 4B 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [11:51:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 4B 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:51:08]wFMCommunicate OK [11:51:08]SAM_PROTO_GetFieldsCounters done [11:51:08]requested_item shift.num is exist - process it [11:51:08]requested_item shift.opened is exist - process it [11:51:08]req_shift_opened [11:51:08]FM_GetShiftState [11:51:08]SAM_PROTO_GetShiftState [11:51:08]wFMCommunicate request_size=4 [11:51:08]MH_SAM_APDU [11:51:08]CAPDU: 80 13 01 00 [11:51:08]Write to MH i2c: E2 08 00 4C 11 80 13 01 00 00 00 00 00 DA [11:51:08]Write i2c OK [11:51:08]MH_I2C_Read... [11:51:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:08]Read from MH i2c: E2 [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: E2 0E 00 [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: E2 0E 00 4C 11 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 F4 [11:51:08]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:51:08]wFMCommunicate OK [11:51:08]SAM_PROTO_GetShiftState done [11:51:08]FM_GetShiftState done [11:51:08]req_shift_opened done [11:51:08]requested_item shift.open_date is exist - process it [11:51:08]req_shift_open_date [11:51:08]req_shift_open_date done [11:51:08]produce_requested_data done [11:51:08]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227403,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [11:51:08]process_action_free close_receipt [11:51:08]json_value_free [11:51:08]json_value_free done [11:51:08]process_json_proto returns [11:51:08]Send response to host [11:51:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227403,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [11:51:08]free response buf [11:51:08]execute_script done [11:51:08]execute_script returns [11:51:08]free content buf [11:51:08]Sock 8.Close socket [11:51:08]Sock 8.Thread stoped [11:51:09]OFD Sender: No OFD packet to send [11:51:14]OFD Sender: No OFD packet to send [11:51:19]OFD Sender: No OFD packet to send [11:51:24]OFD Sender: No OFD packet to send [11:51:29]OFD Sender: No OFD packet to send [11:51:34]OFD Sender: No OFD packet to send [11:51:39]OFD Sender: No OFD packet to send [11:51:44]OFD Sender: No OFD packet to send [11:51:49]OFD Sender: No OFD packet to send [11:51:54]OFD Sender: No OFD packet to send [11:51:59]OFD Sender: No OFD packet to send [11:52:04]OFD Sender: No OFD packet to send [11:52:09]OFD Sender: No OFD packet to send [11:52:14]OFD Sender: No OFD packet to send [11:52:19]OFD Sender: No OFD packet to send [11:52:24]OFD Sender: No OFD packet to send [11:52:29]OFD Sender: No OFD packet to send [11:52:34]OFD Sender: No OFD packet to send [11:52:39]OFD Sender: No OFD packet to send [11:52:44]OFD Sender: No OFD packet to send [11:52:49]OFD Sender: No OFD packet to send [11:52:54]OFD Sender: No OFD packet to send [11:52:59]OFD Sender: No OFD packet to send [11:53:04]OFD Sender: No OFD packet to send [11:53:09]OFD Sender: No OFD packet to send [11:53:14]OFD Sender: No OFD packet to send [11:53:19]OFD Sender: No OFD packet to send [11:53:24]OFD Sender: No OFD packet to send [11:53:29]OFD Sender: No OFD packet to send [11:53:34]OFD Sender: No OFD packet to send [11:53:39]OFD Sender: No OFD packet to send [11:53:44]OFD Sender: No OFD packet to send [11:53:49]OFD Sender: No OFD packet to send [11:53:54]OFD Sender: No OFD packet to send [11:53:59]OFD Sender: No OFD packet to send [11:54:04]OFD Sender: No OFD packet to send [11:54:09]OFD Sender: No OFD packet to send [11:54:14]OFD Sender: No OFD packet to send [11:54:19]OFD Sender: No OFD packet to send [11:54:24]OFD Sender: No OFD packet to send [11:54:29]OFD Sender: No OFD packet to send [11:54:34]OFD Sender: No OFD packet to send [11:54:34]accept exits with 9 [11:54:34]New connection [11:54:34]New thread 3066543460 created [11:54:34]Thread 3066686820 joined [11:54:34]Waiting for new connection... [11:54:34] Sock 9.Parse request [11:54:34]Sock 9.Check first char [11:54:34]Sock 9.First char is OK [11:54:34]request: POST /json_proto HTTP/1.0 [11:54:34]Method: POST [11:54:34]URL: /json_proto [11:54:34]Method is POST - this is cgi request [11:54:34]url: /json_proto [11:54:34]query_string will be loaded in cgi processing [11:54:34]execute_cgi json_proto POST (null) [11:54:34]execute_cgi path=json_proto method=POST [11:54:34]POST find Content-Length [11:54:34]Host: 172.17.44.195:8080 [11:54:34]Content-Length: 664 [11:54:34]Content-Type: application/json [11:54:34] [11:54:34]POST finish read [11:54:34]Found Content-Length = 664 [11:54:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962920", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:54:34]execute_script... [11:54: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)1962920", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:54:34]POST & json_proto [11:54:34]process_json_proto [11:54:34]json parsed OK: [11:54:34]protocol is kg_v1.0 [11:54:34]action value=close_receipt [11:54:34]process_action close_receipt [11:54:34]cmd_close_receipt [11:54:34]MH_GetDate [11:54:34]Write to MH i2c: F0 00 00 4D 11 4D [11:54:34]Write i2c OK [11:54:34]MH_I2C_Read... [11:54:34]Read from MH i2c: F0 [11:54:34]MH_I2C_Read... [11:54:34]Read from MH i2c: F0 09 00 [11:54:34]MH_I2C_Read... [11:54:34]Read from MH i2c: F0 09 00 4D 11 00 7B EF 14 67 82 C9 CF 66 BB [11:54:34]GetLastDocTimeStamp 1729425067 [11:54:34]current date 1729425275 [11:54:34]FM_GetShiftState [11:54:34]SAM_PROTO_GetShiftState [11:54:34]wFMCommunicate request_size=4 [11:54:34]MH_SAM_APDU [11:54:34]CAPDU: 80 13 01 00 [11:54:34]Write to MH i2c: E2 08 00 4E 11 80 13 01 00 00 00 00 00 DC [11:54:34]Write i2c OK [11:54:34]MH_I2C_Read... [11:54:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:34]Read from MH i2c: E2 [11:54:34]MH_I2C_Read... [11:54:34]Read from MH i2c: E2 0E 00 [11:54:34]MH_I2C_Read... [11:54:34]Read from MH i2c: E2 0E 00 4E 11 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 F6 [11:54:34]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:54:34]wFMCommunicate OK [11:54:34]SAM_PROTO_GetShiftState done [11:54:34]FM_GetShiftState done [11:54:34]opened in 1729383750 [11:54:34]opened+sec_in_day 1729470150 [11:54:34]quantity*price = 100000 [11:54:34]sum+1 = 100002 [11:54:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 252 20.10.2024 11:54 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227404 ФПД: 78993858779711 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T115435&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227404&fm=78993858779711&tin=02508201610067®Number=0000000000091685&sum=100000 [11:54:35]StoreToDocumentArchive [11:54:35]shift 533 fd 227404 [11:54:35]save to /storage/0533/doc_00227404 [11:54:35]save last doc name /storage/0533/doc_00227404 to /storage/kkm_last_doc_name [11:54:35]save OK [11:54:35]Clear old archive folders... [11:54:35]ProcessDocumentItem done err = 0, tmpTLVsize=244 [11:54:35]tlvbuf is 0186B4A0 [11:54:35]SAM_PROTO_ClearQueue [11:54:35]wFMCommunicate request_size=4 [11:54:35]MH_SAM_APDU [11:54:35]CAPDU: 80 09 00 00 [11:54:35]Write to MH i2c: E2 08 00 5B 11 80 09 00 00 00 00 00 00 DE [11:54:35]Write i2c OK [11:54:35]MH_I2C_Read... [11:54:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:54:35]Read from MH i2c: E2 [11:54:35]MH_I2C_Read... [11:54:35]Read from MH i2c: E2 03 00 [11:54:35]MH_I2C_Read... [11:54:35]Read from MH i2c: E2 03 00 5B 11 00 90 00 E0 [11:54:35]RAPDU: 90 00 [11:54:35]wFMCommunicate OK [11:54:35]SAM_PROTO_ClearQueue done [11:54:35]KKMCreateOFDPacket [11:54:35]OFDProtocolAddRootSTLVToBuf [11:54:35]FM_MakeSignedData [11:54:35]FM_MakeSignedData [11:54:35]SAM_PROTO_SignData [11:54:35]wFMCommunicate request_size=4 [11:54:35]MH_SAM_APDU [11:54:35]CAPDU: 80 0D 01 02 [11:54:35]Write to MH i2c: E2 08 00 5C 11 80 0D 01 02 00 00 00 00 E6 [11:54:35]Write i2c OK [11:54:35]MH_I2C_Read... [11:54:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:54:35]Read from MH i2c: E2 [11:54:35]MH_I2C_Read... [11:54:35]Read from MH i2c: E2 03 00 [11:54:35]MH_I2C_Read... [11:54:35]Read from MH i2c: E2 03 00 5C 11 00 90 00 E1 [11:54:35]RAPDU: 90 00 [11:54:35]wFMCommunicate OK [11:54:35]wFMCommunicate request_size=253 [11:54:35]MH_SAM_APDU [11:54:35]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 7B EF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4C 78 03 00 35 04 06 00 47 D8 30 E4 5A 3F [11:54:35]Write to MH i2c: E2 00 01 5D 11 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 7B EF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4C 78 03 00 35 04 06 00 47 D8 30 E4 5A 3F 00 00 EB [11:54:35]Write i2c OK [11:54:35]MH_I2C_Read... [11:54:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:35]Read from MH i2c: E2 [11:54:35]MH_I2C_Read... [11:54:35]Read from MH i2c: E2 03 00 [11:54:35]MH_I2C_Read... [11:54:35]Read from MH i2c: E2 03 00 5D 11 00 90 00 E2 [11:54:35]RAPDU: 90 00 [11:54:35]wFMCommunicate OK [11:54:35]wFMCommunicate request_size=4 [11:54:35]MH_SAM_APDU [11:54:35]CAPDU: 80 0D 03 02 [11:54:35]Write to MH i2c: E2 08 00 5E 11 80 0D 03 02 00 00 00 00 EA [11:54:35]Write i2c OK [11:54:35]MH_I2C_Read... [11:54:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:54:35]Read from MH i2c: E2 [11:54:35]MH_I2C_Read... [11:54:35]Read from MH i2c: E2 0B 00 [11:54:35]MH_I2C_Read... [11:54:35]Read from MH i2c: E2 0B 00 5E 11 00 10 B4 5F 42 82 23 5E B1 90 00 04 [11:54:35]RAPDU: 10 B4 5F 42 82 23 5E B1 90 00 [11:54:35]wFMCommunicate OK [11:54:35]SAM_PROTO_SignData done [11:54:35]FM_MakeSignedData done [11:54:35]CreateOFDProtocolMessage [11:54:35]wFMCommunicate request_size=4 [11:54:35]MH_SAM_APDU [11:54:35]CAPDU: 80 11 00 00 [11:54:35]Write to MH i2c: E2 08 00 5F 11 80 11 00 00 00 00 00 00 EA [11:54:35]Write i2c OK [11:54:35]MH_I2C_Read... [11:54:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:36]Read from MH i2c: E2 [11:54:36]MH_I2C_Read... [11:54:36]Read from MH i2c: E2 17 00 [11:54:36]MH_I2C_Read... [11:54:36]Read from MH i2c: E2 17 00 5F 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 41 [11:54:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:54:36]wFMCommunicate OK [11:54:36]CreateOFDProtocolMessage done [11:54:36]OFDSenderStorePacket 227404 [11:54:36]StoreOFDPacket docnum=227404 [11:54:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 50 F1 00 01 4A 60 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 7B EF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4C 78 03 00 35 04 06 00 47 D8 30 E4 5A 3F 10 B4 5F 42 82 23 5E B1 [11:54:36]CheckFolder [11:54:36]dirname=/storage/ofd_packets [11:54:36]CheckFolder done [11:54:36]ProducePacketName [11:54:36]name=ofd_packets/00227404 [11:54:36]NVStorageSaveData ofd_packets/00227404 [11:54:36]File name is /storage/ofd_packets/00227404 [11:54:36]Write 294 bytes [11:54:36]NVStorageSaveData done [11:54:36]OFDSenderStorePacket done [11:54:36]KKMCreateOFDPacket done [11:54:36]NVStorageSaveData kkm_last_timestamp [11:54:36]File name is /storage/kkm_last_timestamp [11:54:36]Write 4 bytes [11:54:36]NVStorageSaveData done [11:54:36]ExternCall_PrintAddStr [11:54:36]wPrintStart [11:54:36]Write to MH i2c: 01 00 00 60 11 71 [11:54:36]Write i2c OK [11:54:36]MH_I2C_Read... [11:54:36]Read from MH i2c: 01 [11:54:36]MH_I2C_Read... [11:54:36]Read from MH i2c: 01 07 00 [11:54:36]MH_I2C_Read... [11:54:36]Read from MH i2c: 01 07 00 60 11 00 00 00 00 00 FF 0F 86 [11:54:36]RasterBufferAndPrint [11:54:36]line Счет N : (1)1962920 [11:54:36]line ИНН: 02508201610067 [11:54:36]line Контрольно-Кассовый Чек [11:54:36]line ПРОДАЖА [11:54:36]line ТРК (МРК, ГНК) : 42 [11:54:36]line Товар: 2710124130 [11:54:36]line SU-92 [11:54:36]line 14.620 * 68.40 [11:54:36]line = 1000.01 [11:54:36]line НДС 12% НСП 1% [11:54:36]line > о реализуемом товаре [11:54:36]line ОКРУГЛЕНИЕ: -0.01 [11:54:36]line ИТОГО: 1000.00 [11:54:36]line Внесено: 1000.00 [11:54:36]line СДАЧА: 0.00 [11:54:36]line НСП 1% : 8.85 [11:54:36]line НДС 12% : 106.20 [11:54:36]line Наличными: 1000.00 [11:54:36]line Безнал.: 0.00 [11:54:36]line Место: АЗС № 133 "Партнер Нефть" [11:54:36]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:54:36]line СНО: Общий режим [11:54:36]line Чек 252 20.10.2024 11:54 [11:54:36]line Смена: 533 ФФД: 1.0 [11:54:36]line ЗНМ: 0300000091 [11:54:36]line РНМ: 0000000000091685 [11:54:36]line Версия ККМ: 001 [11:54:36]line ФМ: 0000000000871839 [11:54:36]line ФД: 227404 [11:54:36]line ФПД: 78993858779711 [11:54:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T115435&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227404&fm=78993858779711&tin=02508201610067®Number=0000000000091685&sum=100000 [11:54:36]OFD Sender: Processing packet 227404 [packets to send 38, broken 37] [11:54:36]ProducePacketName [11:54:36]name=ofd_packets/00227404 [11:54:36]OFD Sender: To server: pG, [11:54:36]CommunicateWithHost lk.salyk.kg:30040 [11:54:36]ConnectInit lk.salyk.kg [11:54:36]written 0, free lines is 4095 [11:54:36]Connected sock=8 [11:54: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 33 39 08 01 00 00 50 F1 00 01 4A 60 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 7B EF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4C 78 03 00 35 04 06 00 47 D8 30 E4 5A 3F 10 B4 5F 42 82 23 5E B1 [11:54: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 33 39 4F 00 00 00 AD DC 47 00 F6 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 33 39 10 04 04 00 4C 78 03 00 F4 03 04 00 7A 9A 14 67 B6 04 01 00 00 49 10 15 59 8A 27 89 1C [11:54:36]CommunicateWithHost err = 0 [11:54:36]CheckOFDResponse [11:54:36]1017 (14) - 77093643461234 [11:54:36]1041 (16) - 0000000000871839 [11:54:36]1040 (4) - 227404 [11:54:36]1012 (4) - 20.10.2024 05:51 [11:54:36]1206 (1) - 0 [11:54:36]OFD Sender: Remove packet 227404 [11:54:36]ProducePacketName [11:54:36]name=ofd_packets/00227404 [11:54:36]NVStorageDeleteData [11:54:36]Write to MH i2c: 01 00 00 8A 11 9B [11:54:36]Write i2c OK [11:54:36]MH_I2C_Read... [11:54:36]Read from MH i2c: 01 [11:54:36]MH_I2C_Read... [11:54:36]Read from MH i2c: 01 07 00 [11:54:36]MH_I2C_Read... [11:54:36]Read from MH i2c: 01 07 00 8A 11 00 00 00 00 00 13 0D C2 [11:54:36]RasterBufferAndPrint [11:54:36]line [11:54:36]line [11:54:36]line [11:54:36]line [11:54:36]line [11:54:36]written 0, free lines is 3353 [11:54:36]process_action close_receipt done [11:54:36]requested_data is exist [11:54:36]produce_requested_data [11:54:36]requested_item fm.sn is exist - process it [11:54:36]wFMCommunicate request_size=4 [11:54:36]MH_SAM_APDU [11:54:36]CAPDU: 80 11 00 00 [11:54:36]Write to MH i2c: E2 08 00 91 11 80 11 00 00 00 00 00 00 1C [11:54:36]Write i2c OK [11:54:36]MH_I2C_Read... [11:54:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:36]Read from MH i2c: E2 [11:54:36]MH_I2C_Read... [11:54:36]Read from MH i2c: E2 17 00 [11:54:36]MH_I2C_Read... [11:54:36]Read from MH i2c: E2 17 00 91 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 73 [11:54:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:54:36]wFMCommunicate OK [11:54:36]requested_item fd.num is exist - process it [11:54:36]SAM_PROTO_GetFieldsCounters [11:54:36]wFMCommunicate request_size=4 [11:54:36]MH_SAM_APDU [11:54:36]CAPDU: 80 13 00 00 [11:54:36]Write to MH i2c: E2 08 00 92 11 80 13 00 00 00 00 00 00 1F [11:54:36]Write i2c OK [11:54:36]MH_I2C_Read... [11:54:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:54:37]Read from MH i2c: E2 [11:54:37]MH_I2C_Read... [11:54:37]Read from MH i2c: E2 62 00 [11:54:37]MH_I2C_Read... [11:54:37]Read from MH i2c: E2 62 00 92 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 4C 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [11:54: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 4C 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:54:37]wFMCommunicate OK [11:54:37]SAM_PROTO_GetFieldsCounters done [11:54:37]requested_item shift.num is exist - process it [11:54:37]requested_item shift.opened is exist - process it [11:54:37]req_shift_opened [11:54:37]FM_GetShiftState [11:54:37]SAM_PROTO_GetShiftState [11:54:37]wFMCommunicate request_size=4 [11:54:37]MH_SAM_APDU [11:54:37]CAPDU: 80 13 01 00 [11:54:37]Write to MH i2c: E2 08 00 93 11 80 13 01 00 00 00 00 00 21 [11:54:37]Write i2c OK [11:54:37]MH_I2C_Read... [11:54:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:37]Read from MH i2c: E2 [11:54:37]MH_I2C_Read... [11:54:37]Read from MH i2c: E2 0E 00 [11:54:37]MH_I2C_Read... [11:54:37]Read from MH i2c: E2 0E 00 93 11 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 3B [11:54:37]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:54:37]wFMCommunicate OK [11:54:37]SAM_PROTO_GetShiftState done [11:54:37]FM_GetShiftState done [11:54:37]req_shift_opened done [11:54:37]requested_item shift.open_date is exist - process it [11:54:37]req_shift_open_date [11:54:37]req_shift_open_date done [11:54:37]produce_requested_data done [11:54:37]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227404,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [11:54:37]process_action_free close_receipt [11:54:37]json_value_free [11:54:37]json_value_free done [11:54:37]process_json_proto returns [11:54:37]Send response to host [11:54:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227404,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [11:54:37]free response buf [11:54:37]execute_script done [11:54:37]execute_script returns [11:54:37]free content buf [11:54:37]Sock 9.Close socket [11:54:37]Sock 9.Thread stoped [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]accept exits with 10 [11:56:42]New connection [11:56:42]New thread 3066686820 created [11:56:42]Thread 3066543460 joined [11:56:42]Waiting for new connection... [11:56:42] Sock 10.Parse request [11:56:42]Sock 10.Check first char [11:56:42]Sock 10.First char is OK [11:56:42]request: POST /json_proto HTTP/1.0 [11:56:42]Method: POST [11:56:42]URL: /json_proto [11:56:42]Method is POST - this is cgi request [11:56:42]url: /json_proto [11:56:42]query_string will be loaded in cgi processing [11:56:42]execute_cgi json_proto POST (null) [11:56:42]execute_cgi path=json_proto method=POST [11:56:42]POST find Content-Length [11:56:42]Host: 172.17.44.195:8080 [11:56:42]Content-Length: 680 [11:56:42]Content-Type: application/json [11:56:42] [11:56:42]POST finish read [11:56:42]Found Content-Length = 680 [11:56:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962921", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:56:42]execute_script... [11:56: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)1962921", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:56:42]POST & json_proto [11:56:42]process_json_proto [11:56:42]json parsed OK: [11:56:42]protocol is kg_v1.0 [11:56:42]action value=close_receipt [11:56:42]process_action close_receipt [11:56:42]cmd_close_receipt [11:56:42]MH_GetDate [11:56:42]Write to MH i2c: F0 00 00 94 11 94 [11:56:42]Write i2c OK [11:56:42]MH_I2C_Read... [11:56:42]Read from MH i2c: F0 [11:56:42]MH_I2C_Read... [11:56:42]Read from MH i2c: F0 09 00 [11:56:42]MH_I2C_Read... [11:56:42]Read from MH i2c: F0 09 00 94 11 00 FA EF 14 67 82 C9 CF 66 81 [11:56:42]GetLastDocTimeStamp 1729425275 [11:56:42]current date 1729425402 [11:56:42]FM_GetShiftState [11:56:42]SAM_PROTO_GetShiftState [11:56:42]wFMCommunicate request_size=4 [11:56:42]MH_SAM_APDU [11:56:42]CAPDU: 80 13 01 00 [11:56:42]Write to MH i2c: E2 08 00 95 11 80 13 01 00 00 00 00 00 23 [11:56:42]Write i2c OK [11:56:42]MH_I2C_Read... [11:56:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:42]Read from MH i2c: E2 [11:56:42]MH_I2C_Read... [11:56:42]Read from MH i2c: E2 0E 00 [11:56:42]MH_I2C_Read... [11:56:42]Read from MH i2c: E2 0E 00 95 11 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 3D [11:56:42]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:56:42]wFMCommunicate OK [11:56:42]SAM_PROTO_GetShiftState done [11:56:42]FM_GetShiftState done [11:56:42]opened in 1729383750 [11:56:42]opened+sec_in_day 1729470150 [11:56:42]quantity*price = 200025 [11:56:42]sum+1 = 200026 [11:56:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 253 20.10.2024 11:56 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227405 ФПД: 200923628113755 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T115642&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227405&fm=200923628113755&tin=02508201610067®Number=0000000000091685&sum=200000 [11:56:43]StoreToDocumentArchive [11:56:43]shift 533 fd 227405 [11:56:43]save to /storage/0533/doc_00227405 [11:56:43]save last doc name /storage/0533/doc_00227405 to /storage/kkm_last_doc_name [11:56:43]save OK [11:56:43]Clear old archive folders... [11:56:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:56:43]tlvbuf is 0188D6E0 [11:56:43]SAM_PROTO_ClearQueue [11:56:43]wFMCommunicate request_size=4 [11:56:43]MH_SAM_APDU [11:56:43]CAPDU: 80 09 00 00 [11:56:43]Write to MH i2c: E2 08 00 A2 11 80 09 00 00 00 00 00 00 25 [11:56:43]Write i2c OK [11:56:43]MH_I2C_Read... [11:56:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:56:43]Read from MH i2c: E2 [11:56:43]MH_I2C_Read... [11:56:43]Read from MH i2c: E2 03 00 [11:56:43]MH_I2C_Read... [11:56:43]Read from MH i2c: E2 03 00 A2 11 00 90 00 27 [11:56:43]RAPDU: 90 00 [11:56:43]wFMCommunicate OK [11:56:43]SAM_PROTO_ClearQueue done [11:56:43]KKMCreateOFDPacket [11:56:43]OFDProtocolAddRootSTLVToBuf [11:56:43]FM_MakeSignedData [11:56:43]FM_MakeSignedData [11:56:43]SAM_PROTO_SignData [11:56:43]wFMCommunicate request_size=4 [11:56:43]MH_SAM_APDU [11:56:43]CAPDU: 80 0D 01 02 [11:56:43]Write to MH i2c: E2 08 00 A3 11 80 0D 01 02 00 00 00 00 2D [11:56:43]Write i2c OK [11:56:43]MH_I2C_Read... [11:56:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:56:43]Read from MH i2c: E2 [11:56:43]MH_I2C_Read... [11:56:43]Read from MH i2c: E2 03 00 [11:56:43]MH_I2C_Read... [11:56:43]Read from MH i2c: E2 03 00 A3 11 00 90 00 28 [11:56:43]RAPDU: 90 00 [11:56:43]wFMCommunicate OK [11:56:43]wFMCommunicate request_size=255 [11:56:43]MH_SAM_APDU [11:56: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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 FA EF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4D 78 03 00 35 04 06 00 B6 BD 2D 7B [11:56:43]Write to MH i2c: E2 02 01 A4 11 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 FA EF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4D 78 03 00 35 04 06 00 B6 BD 2D 7B 00 00 03 [11:56:43]Write i2c OK [11:56:43]MH_I2C_Read... [11:56:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:56:43]Read from MH i2c: E2 [11:56:43]MH_I2C_Read... [11:56:43]Read from MH i2c: E2 03 00 [11:56:43]MH_I2C_Read... [11:56:43]Read from MH i2c: E2 03 00 A4 11 00 90 00 29 [11:56:43]RAPDU: 90 00 [11:56:43]wFMCommunicate OK [11:56:43]wFMCommunicate request_size=7 [11:56:43]MH_SAM_APDU [11:56:43]CAPDU: 80 0D 02 02 02 0F 5B [11:56:43]Write to MH i2c: E2 0A 00 A5 11 80 0D 02 02 02 00 0F 5B 00 00 9E [11:56:43]Write i2c OK [11:56:43]MH_I2C_Read... [11:56:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:56:43]Read from MH i2c: E2 [11:56:43]MH_I2C_Read... [11:56:43]Read from MH i2c: E2 03 00 [11:56:43]MH_I2C_Read... [11:56:43]Read from MH i2c: E2 03 00 A5 11 00 90 00 2A [11:56:43]RAPDU: 90 00 [11:56:43]wFMCommunicate OK [11:56:43]wFMCommunicate request_size=4 [11:56:43]MH_SAM_APDU [11:56:43]CAPDU: 80 0D 03 02 [11:56:43]Write to MH i2c: E2 08 00 A6 11 80 0D 03 02 00 00 00 00 32 [11:56:43]Write i2c OK [11:56:43]MH_I2C_Read... [11:56:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:56:43]Read from MH i2c: E2 [11:56:43]MH_I2C_Read... [11:56:43]Read from MH i2c: E2 0B 00 [11:56:43]MH_I2C_Read... [11:56:43]Read from MH i2c: E2 0B 00 A6 11 00 30 CC 58 47 DB BF 6E 96 90 00 6C [11:56:43]RAPDU: 30 CC 58 47 DB BF 6E 96 90 00 [11:56:43]wFMCommunicate OK [11:56:43]SAM_PROTO_SignData done [11:56:43]FM_MakeSignedData done [11:56:43]CreateOFDProtocolMessage [11:56:43]wFMCommunicate request_size=4 [11:56:43]MH_SAM_APDU [11:56:43]CAPDU: 80 11 00 00 [11:56:43]Write to MH i2c: E2 08 00 A7 11 80 11 00 00 00 00 00 00 32 [11:56:43]Write i2c OK [11:56:43]MH_I2C_Read... [11:56:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:43]Read from MH i2c: E2 [11:56:43]MH_I2C_Read... [11:56:43]Read from MH i2c: E2 17 00 [11:56:43]MH_I2C_Read... [11:56:43]Read from MH i2c: E2 17 00 A7 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 89 [11:56:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:56:43]wFMCommunicate OK [11:56:43]CreateOFDProtocolMessage done [11:56:43]OFDSenderStorePacket 227405 [11:56:43]StoreOFDPacket docnum=227405 [11:56:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 54 F8 04 01 35 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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 FA EF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4D 78 03 00 35 04 06 00 B6 BD 2D 7B 0F 5B 30 CC 58 47 DB BF 6E 96 [11:56:43]CheckFolder [11:56:43]dirname=/storage/ofd_packets [11:56:43]CheckFolder done [11:56:43]ProducePacketName [11:56:43]name=ofd_packets/00227405 [11:56:43]NVStorageSaveData ofd_packets/00227405 [11:56:43]File name is /storage/ofd_packets/00227405 [11:56:43]Write 298 bytes [11:56:43]NVStorageSaveData done [11:56:43]OFDSenderStorePacket done [11:56:43]KKMCreateOFDPacket done [11:56:43]NVStorageSaveData kkm_last_timestamp [11:56:43]File name is /storage/kkm_last_timestamp [11:56:43]Write 4 bytes [11:56:43]NVStorageSaveData done [11:56:43]ExternCall_PrintAddStr [11:56:43]wPrintStart [11:56:43]Write to MH i2c: 01 00 00 A8 11 B9 [11:56:43]Write i2c OK [11:56:43]MH_I2C_Read... [11:56:43]Read from MH i2c: 01 [11:56:43]MH_I2C_Read... [11:56:43]Read from MH i2c: 01 07 00 [11:56:43]MH_I2C_Read... [11:56:43]Read from MH i2c: 01 07 00 A8 11 00 00 00 00 00 FF 0F CE [11:56:43]RasterBufferAndPrint [11:56:43]line Счет N : (1)1962921 [11:56:43]line ИНН: 02508201610067 [11:56:43]line Контрольно-Кассовый Чек [11:56:43]line ПРОДАЖА [11:56:43]line ТРК (МРК, ГНК) : 21 [11:56:43]line Товар: 2710194210 [11:56:43]line ДТ-К-5 [11:56:43]line 26.250 * 76.20 [11:56:43]line = 2000.25 [11:56:43]line НДС 12% НСП 1% [11:56:43]line > о реализуемом товаре [11:56:43]line ОКРУГЛЕНИЕ: -0.25 [11:56:43]line ИТОГО: 2000.00 [11:56:43]line Внесено: 2000.00 [11:56:43]line СДАЧА: 0.00 [11:56:43]line НСП 1% : 17.70 [11:56:43]line НДС 12% : 212.42 [11:56:43]line Наличными: 2000.00 [11:56:43]line Безнал.: 0.00 [11:56:43]line Место: АЗС № 133 "Партнер Нефть" [11:56:43]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [11:56:43]line СНО: Общий режим [11:56:43]line Чек 253 20.10.2024 11:56 [11:56:43]line Смена: 533 ФФД: 1.0 [11:56:43]line ЗНМ: 0300000091 [11:56:43]line РНМ: 0000000000091685 [11:56:43]line Версия ККМ: 001 [11:56:43]line ФМ: 0000000000871839 [11:56:43]line ФД: 227405 [11:56:43]line ФПД: 200923628113755 [11:56:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T115642&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227405&fm=200923628113755&tin=02508201610067®Number=0000000000091685&sum=200000 [11:56:44]OFD Sender: Processing packet 227405 [packets to send 38, broken 37] [11:56:44]ProducePacketName [11:56:44]name=ofd_packets/00227405 [11:56:44]OFD Sender: To server: pG, [11:56:44]CommunicateWithHost lk.salyk.kg:30040 [11:56:44]ConnectInit lk.salyk.kg [11:56:44]written 0, free lines is 4095 [11:56:44]Connected sock=9 [11:56: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 33 39 0C 01 00 00 54 F8 04 01 35 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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 FA EF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4D 78 03 00 35 04 06 00 B6 BD 2D 7B 0F 5B 30 CC 58 47 DB BF 6E 96 [11:56: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 33 39 4F 00 00 00 B0 E9 47 00 E6 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 33 39 10 04 04 00 4D 78 03 00 F4 03 04 00 FA 9A 14 67 B6 04 01 00 00 28 83 E0 40 A6 18 0D FA [11:56:44]CommunicateWithHost err = 0 [11:56:44]CheckOFDResponse [11:56:44]1017 (14) - 77093643461234 [11:56:44]1041 (16) - 0000000000871839 [11:56:44]1040 (4) - 227405 [11:56:44]1012 (4) - 20.10.2024 05:54 [11:56:44]1206 (1) - 0 [11:56:44]OFD Sender: Remove packet 227405 [11:56:44]ProducePacketName [11:56:44]name=ofd_packets/00227405 [11:56:44]NVStorageDeleteData [11:56:44]Write to MH i2c: 01 00 00 D2 11 E3 [11:56:44]Write i2c OK [11:56:44]MH_I2C_Read... [11:56:44]Read from MH i2c: 01 [11:56:44]MH_I2C_Read... [11:56:44]Read from MH i2c: 01 07 00 [11:56:44]MH_I2C_Read... [11:56:44]Read from MH i2c: 01 07 00 D2 11 00 00 00 00 00 08 0D FF [11:56:44]RasterBufferAndPrint [11:56:44]line [11:56:44]line [11:56:44]line [11:56:44]line [11:56:44]line [11:56:44]written 0, free lines is 3343 [11:56:44]process_action close_receipt done [11:56:44]requested_data is exist [11:56:44]produce_requested_data [11:56:44]requested_item fm.sn is exist - process it [11:56:44]wFMCommunicate request_size=4 [11:56:44]MH_SAM_APDU [11:56:44]CAPDU: 80 11 00 00 [11:56:44]Write to MH i2c: E2 08 00 D9 11 80 11 00 00 00 00 00 00 64 [11:56:44]Write i2c OK [11:56:44]MH_I2C_Read... [11:56:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:44]Read from MH i2c: E2 [11:56:44]MH_I2C_Read... [11:56:44]Read from MH i2c: E2 17 00 [11:56:44]MH_I2C_Read... [11:56:44]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 33 39 90 00 BB [11:56:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [11:56:44]wFMCommunicate OK [11:56:44]requested_item fd.num is exist - process it [11:56:44]SAM_PROTO_GetFieldsCounters [11:56:44]wFMCommunicate request_size=4 [11:56:44]MH_SAM_APDU [11:56:44]CAPDU: 80 13 00 00 [11:56:44]Write to MH i2c: E2 08 00 DA 11 80 13 00 00 00 00 00 00 67 [11:56:44]Write i2c OK [11:56:44]MH_I2C_Read... [11:56:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:56:44]Read from MH i2c: E2 [11:56:44]MH_I2C_Read... [11:56:44]Read from MH i2c: E2 62 00 [11:56:44]MH_I2C_Read... [11:56:44]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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 4D 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [11:56: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 4D 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:56:44]wFMCommunicate OK [11:56:44]SAM_PROTO_GetFieldsCounters done [11:56:44]requested_item shift.num is exist - process it [11:56:44]requested_item shift.opened is exist - process it [11:56:44]req_shift_opened [11:56:44]FM_GetShiftState [11:56:44]SAM_PROTO_GetShiftState [11:56:44]wFMCommunicate request_size=4 [11:56:44]MH_SAM_APDU [11:56:44]CAPDU: 80 13 01 00 [11:56:44]Write to MH i2c: E2 08 00 DB 11 80 13 01 00 00 00 00 00 69 [11:56:44]Write i2c OK [11:56:44]MH_I2C_Read... [11:56:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:44]Read from MH i2c: E2 [11:56:44]MH_I2C_Read... [11:56:44]Read from MH i2c: E2 0E 00 [11:56:44]MH_I2C_Read... [11:56:44]Read from MH i2c: E2 0E 00 DB 11 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 83 [11:56:44]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [11:56:44]wFMCommunicate OK [11:56:44]SAM_PROTO_GetShiftState done [11:56:44]FM_GetShiftState done [11:56:44]req_shift_opened done [11:56:44]requested_item shift.open_date is exist - process it [11:56:44]req_shift_open_date [11:56:44]req_shift_open_date done [11:56:44]produce_requested_data done [11:56:44]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227405,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [11:56:44]process_action_free close_receipt [11:56:44]json_value_free [11:56:44]json_value_free done [11:56:44]process_json_proto returns [11:56:44]Send response to host [11:56:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227405,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [11:56:44]free response buf [11:56:44]execute_script done [11:56:44]execute_script returns [11:56:44]free content buf [11:56:44]Sock 10.Close socket [11:56:44]Sock 10.Thread stoped [11:56:44]OFD Sender: No OFD packet to send [11:56:49]OFD Sender: No OFD packet to send [11:56:54]OFD Sender: No OFD packet to send [11:56:59]OFD Sender: No OFD packet to send [11:57:05]OFD Sender: No OFD packet to send [11:57:10]OFD Sender: No OFD packet to send [11:57:15]OFD Sender: No OFD packet to send [11:57:20]OFD Sender: No OFD packet to send [11:57:25]OFD Sender: No OFD packet to send [11:57:30]OFD Sender: No OFD packet to send [11:57:35]OFD Sender: No OFD packet to send [11:57:40]OFD Sender: No OFD packet to send [11:57:45]OFD Sender: No OFD packet to send [11:57:50]OFD Sender: No OFD packet to send [11:57:55]OFD Sender: No OFD packet to send [11:58:00]OFD Sender: No OFD packet to send [11:58:05]OFD Sender: No OFD packet to send [11:58:10]OFD Sender: No OFD packet to send [11:58:15]OFD Sender: No OFD packet to send [11:58:20]OFD Sender: No OFD packet to send [11:58:25]OFD Sender: No OFD packet to send [11:58:30]OFD Sender: No OFD packet to send [11:58:35]OFD Sender: No OFD packet to send [11:58:40]OFD Sender: No OFD packet to send [11:58:45]OFD Sender: No OFD packet to send [11:58:50]OFD Sender: No OFD packet to send [11:58:55]OFD Sender: No OFD packet to send [11:59:00]OFD Sender: No OFD packet to send [11:59:05]OFD Sender: No OFD packet to send [11:59:10]OFD Sender: No OFD packet to send [11:59:15]OFD Sender: No OFD packet to send [11:59:20]OFD Sender: No OFD packet to send [11:59:25]OFD Sender: No OFD packet to send [11:59:30]OFD Sender: No OFD packet to send [11:59:35]OFD Sender: No OFD packet to send [11:59:40]OFD Sender: No OFD packet to send [11:59:45]OFD Sender: No OFD packet to send [11:59:50]OFD Sender: No OFD packet to send [11:59:55]OFD Sender: No OFD packet to send [12:00:00]OFD Sender: No OFD packet to send [12:00:05]OFD Sender: No OFD packet to send [12:00:10]OFD Sender: No OFD packet to send [12:00:15]OFD Sender: No OFD packet to send [12:00:20]OFD Sender: No OFD packet to send [12:00:25]OFD Sender: No OFD packet to send [12:00:30]OFD Sender: No OFD packet to send [12:00:35]OFD Sender: No OFD packet to send [12:00:40]OFD Sender: No OFD packet to send [12:00:45]OFD Sender: No OFD packet to send [12:00:50]OFD Sender: No OFD packet to send [12:00:55]OFD Sender: No OFD packet to send [12:01:00]OFD Sender: No OFD packet to send [12:01:05]OFD Sender: No OFD packet to send [12:01:10]OFD Sender: No OFD packet to send [12:01:15]OFD Sender: No OFD packet to send [12:01:20]OFD Sender: No OFD packet to send [12:01:25]OFD Sender: No OFD packet to send [12:01:30]OFD Sender: No OFD packet to send [12:01:35]OFD Sender: No OFD packet to send [12:01:40]OFD Sender: No OFD packet to send [12:01:45]OFD Sender: No OFD packet to send [12:01:50]OFD Sender: No OFD packet to send [12:01:55]OFD Sender: No OFD packet to send [12:02:00]OFD Sender: No OFD packet to send [12:02:05]OFD Sender: No OFD packet to send [12:02:10]OFD Sender: No OFD packet to send [12:02:15]OFD Sender: No OFD packet to send [12:02:20]OFD Sender: No OFD packet to send [12:02:20]accept exits with 8 [12:02:20]New connection [12:02:20]New thread 3066543460 created [12:02:20]Thread 3066686820 joined [12:02:20]Waiting for new connection... [12:02:20] Sock 8.Parse request [12:02:20]Sock 8.Check first char [12:02:20]Sock 8.First char is OK [12:02:20]request: POST /json_proto HTTP/1.0 [12:02:20]Method: POST [12:02:20]URL: /json_proto [12:02:20]Method is POST - this is cgi request [12:02:20]url: /json_proto [12:02:20]query_string will be loaded in cgi processing [12:02:20]execute_cgi json_proto POST (null) [12:02:20]execute_cgi path=json_proto method=POST [12:02:20]POST find Content-Length [12:02:20]Host: 172.17.44.195:8080 [12:02:20]Content-Length: 683 [12:02:20]Content-Type: application/json [12:02:20] [12:02:20]POST finish read [12:02:20]Found Content-Length = 683 [12:02:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962924", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:20]execute_script... [12:02:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962924", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:20]POST & json_proto [12:02:20]process_json_proto [12:02:20]json parsed OK: [12:02:20]protocol is kg_v1.0 [12:02:20]action value=close_receipt [12:02:20]process_action close_receipt [12:02:20]cmd_close_receipt [12:02:20]MH_GetDate [12:02:20]Write to MH i2c: F0 00 00 DC 11 DC [12:02:20]Write i2c OK [12:02:20]MH_I2C_Read... [12:02:20]Read from MH i2c: F0 [12:02:20]MH_I2C_Read... [12:02:20]Read from MH i2c: F0 09 00 [12:02:20]MH_I2C_Read... [12:02:20]Read from MH i2c: F0 09 00 DC 11 00 4D F1 14 67 82 C9 CF 66 1E [12:02:20]GetLastDocTimeStamp 1729425402 [12:02:20]current date 1729425741 [12:02:20]FM_GetShiftState [12:02:20]SAM_PROTO_GetShiftState [12:02:20]wFMCommunicate request_size=4 [12:02:20]MH_SAM_APDU [12:02:20]CAPDU: 80 13 01 00 [12:02:20]Write to MH i2c: E2 08 00 DD 11 80 13 01 00 00 00 00 00 6B [12:02:20]Write i2c OK [12:02:20]MH_I2C_Read... [12:02:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:21]Read from MH i2c: E2 [12:02:21]MH_I2C_Read... [12:02:21]Read from MH i2c: E2 0E 00 [12:02:21]MH_I2C_Read... [12:02:21]Read from MH i2c: E2 0E 00 DD 11 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 85 [12:02:21]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:02:21]wFMCommunicate OK [12:02:21]SAM_PROTO_GetShiftState done [12:02:21]FM_GetShiftState done [12:02:21]opened in 1729383750 [12:02:21]opened+sec_in_day 1729470150 [12:02:21]quantity*price = 100021 [12:02:21]sum+1 = 100023 [12:02:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 254 20.10.2024 12:02 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227406 ФПД: 80043377387513 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120221&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227406&fm=80043377387513&tin=02508201610067®Number=0000000000091685&sum=100000 [12:02:22]StoreToDocumentArchive [12:02:22]shift 533 fd 227406 [12:02:22]save to /storage/0533/doc_00227406 [12:02:22]save last doc name /storage/0533/doc_00227406 to /storage/kkm_last_doc_name [12:02:22]save OK [12:02:22]Clear old archive folders... [12:02:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:02:22]tlvbuf is 01858B60 [12:02:22]SAM_PROTO_ClearQueue [12:02:22]wFMCommunicate request_size=4 [12:02:22]MH_SAM_APDU [12:02:22]CAPDU: 80 09 00 00 [12:02:22]Write to MH i2c: E2 08 00 EA 11 80 09 00 00 00 00 00 00 6D [12:02:22]Write i2c OK [12:02:22]MH_I2C_Read... [12:02:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:02:22]Read from MH i2c: E2 [12:02:22]MH_I2C_Read... [12:02:22]Read from MH i2c: E2 03 00 [12:02:22]MH_I2C_Read... [12:02:22]Read from MH i2c: E2 03 00 EA 11 00 90 00 6F [12:02:22]RAPDU: 90 00 [12:02:22]wFMCommunicate OK [12:02:22]SAM_PROTO_ClearQueue done [12:02:22]KKMCreateOFDPacket [12:02:22]OFDProtocolAddRootSTLVToBuf [12:02:22]FM_MakeSignedData [12:02:22]FM_MakeSignedData [12:02:22]SAM_PROTO_SignData [12:02:22]wFMCommunicate request_size=4 [12:02:22]MH_SAM_APDU [12:02:22]CAPDU: 80 0D 01 02 [12:02:22]Write to MH i2c: E2 08 00 EB 11 80 0D 01 02 00 00 00 00 75 [12:02:22]Write i2c OK [12:02:22]MH_I2C_Read... [12:02:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:02:22]Read from MH i2c: E2 [12:02:22]MH_I2C_Read... [12:02:22]Read from MH i2c: E2 03 00 [12:02:22]MH_I2C_Read... [12:02:22]Read from MH i2c: E2 03 00 EB 11 00 90 00 70 [12:02:22]RAPDU: 90 00 [12:02:22]wFMCommunicate OK [12:02:22]wFMCommunicate request_size=255 [12:02:22]MH_SAM_APDU [12:02:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 4D F1 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4E 78 03 00 35 04 06 00 48 [12:02:22]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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 4D F1 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4E 78 03 00 35 04 06 00 48 00 00 08 [12:02:22]Write i2c OK [12:02:22]MH_I2C_Read... [12:02:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:22]Read from MH i2c: E2 [12:02:22]MH_I2C_Read... [12:02:22]Read from MH i2c: E2 03 00 [12:02:22]MH_I2C_Read... [12:02:22]Read from MH i2c: E2 03 00 EC 11 00 90 00 71 [12:02:22]RAPDU: 90 00 [12:02:22]wFMCommunicate OK [12:02:22]wFMCommunicate request_size=10 [12:02:22]MH_SAM_APDU [12:02:22]CAPDU: 80 0D 02 02 05 CC 8D 13 67 F9 [12:02:22]Write to MH i2c: E2 0D 00 ED 11 80 0D 02 02 05 00 CC 8D 13 67 F9 00 00 4E [12:02:22]Write i2c OK [12:02:22]MH_I2C_Read... [12:02:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:22]Read from MH i2c: E2 [12:02:22]MH_I2C_Read... [12:02:22]Read from MH i2c: E2 03 00 [12:02:22]MH_I2C_Read... [12:02:22]Read from MH i2c: E2 03 00 ED 11 00 90 00 72 [12:02:22]RAPDU: 90 00 [12:02:22]wFMCommunicate OK [12:02:22]wFMCommunicate request_size=4 [12:02:22]MH_SAM_APDU [12:02:22]CAPDU: 80 0D 03 02 [12:02:22]Write to MH i2c: E2 08 00 EE 11 80 0D 03 02 00 00 00 00 7A [12:02:22]Write i2c OK [12:02:22]MH_I2C_Read... [12:02:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:02:22]Read from MH i2c: E2 [12:02:22]MH_I2C_Read... [12:02:22]Read from MH i2c: E2 0B 00 [12:02:22]MH_I2C_Read... [12:02:22]Read from MH i2c: E2 0B 00 EE 11 00 F1 74 AD D3 39 FB FD 34 90 00 C5 [12:02:22]RAPDU: F1 74 AD D3 39 FB FD 34 90 00 [12:02:22]wFMCommunicate OK [12:02:22]SAM_PROTO_SignData done [12:02:22]FM_MakeSignedData done [12:02:22]CreateOFDProtocolMessage [12:02:22]wFMCommunicate request_size=4 [12:02:22]MH_SAM_APDU [12:02:22]CAPDU: 80 11 00 00 [12:02:22]Write to MH i2c: E2 08 00 EF 11 80 11 00 00 00 00 00 00 7A [12:02:22]Write i2c OK [12:02:22]MH_I2C_Read... [12:02:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:22]Read from MH i2c: E2 [12:02:22]MH_I2C_Read... [12:02:22]Read from MH i2c: E2 17 00 [12:02:22]MH_I2C_Read... [12:02:22]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 33 39 90 00 D1 [12:02:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:02:22]wFMCommunicate OK [12:02:22]CreateOFDProtocolMessage done [12:02:22]OFDSenderStorePacket 227406 [12:02:22]StoreOFDPacket docnum=227406 [12:02:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 B1 0C 07 01 10 C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 4D F1 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4E 78 03 00 35 04 06 00 48 CC 8D 13 67 F9 F1 74 AD D3 39 FB FD 34 [12:02:22]CheckFolder [12:02:22]dirname=/storage/ofd_packets [12:02:22]CheckFolder done [12:02:22]ProducePacketName [12:02:22]name=ofd_packets/00227406 [12:02:22]NVStorageSaveData ofd_packets/00227406 [12:02:22]File name is /storage/ofd_packets/00227406 [12:02:22]Write 301 bytes [12:02:22]NVStorageSaveData done [12:02:22]OFDSenderStorePacket done [12:02:22]KKMCreateOFDPacket done [12:02:22]NVStorageSaveData kkm_last_timestamp [12:02:22]File name is /storage/kkm_last_timestamp [12:02:22]Write 4 bytes [12:02:22]NVStorageSaveData done [12:02:22]ExternCall_PrintAddStr [12:02:22]wPrintStart [12:02:22]Write to MH i2c: 01 00 00 F0 11 01 [12:02:22]Write i2c OK [12:02:22]MH_I2C_Read... [12:02:22]Read from MH i2c: 01 [12:02:22]MH_I2C_Read... [12:02:22]Read from MH i2c: 01 07 00 [12:02:22]MH_I2C_Read... [12:02:22]Read from MH i2c: 01 07 00 F0 11 00 00 00 00 00 FF 0F 16 [12:02:22]RasterBufferAndPrint [12:02:22]line Счет N : (1)1962924 [12:02:22]line ИНН: 02508201610067 [12:02:22]line Контрольно-Кассовый Чек [12:02:22]line ПРОДАЖА [12:02:22]line ТРК (МРК, ГНК) : 44 [12:02:22]line Товар: 2710124500 [12:02:22]line Аи-95-К-5 [12:02:22]line 13.480 * 74.20 [12:02:22]line = 1000.22 [12:02:22]line НДС 12% НСП 1% [12:02:22]line > о реализуемом товаре [12:02:22]line ОКРУГЛЕНИЕ: -0.22 [12:02:22]line ИТОГО: 1000.00 [12:02:22]line Внесено: 1000.00 [12:02:22]line СДАЧА: 0.00 [12:02:22]line НСП 1% : 8.85 [12:02:22]line НДС 12% : 106.22 [12:02:22]line Наличными: 1000.00 [12:02:22]line Безнал.: 0.00 [12:02:22]line Место: АЗС № 133 "Партнер Нефть" [12:02:22]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:02:22]line СНО: Общий режим [12:02:22]line Чек 254 20.10.2024 12:02 [12:02:22]line Смена: 533 ФФД: 1.0 [12:02:22]line ЗНМ: 0300000091 [12:02:22]line РНМ: 0000000000091685 [12:02:22]line Версия ККМ: 001 [12:02:22]line ФМ: 0000000000871839 [12:02:22]line ФД: 227406 [12:02:22]line ФПД: 80043377387513 [12:02:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120221&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227406&fm=80043377387513&tin=02508201610067®Number=0000000000091685&sum=100000 [12:02:23]OFD Sender: Processing packet 227406 [packets to send 38, broken 37] [12:02:23]ProducePacketName [12:02:23]name=ofd_packets/00227406 [12:02:23]OFD Sender: To server: pG, [12:02:23]CommunicateWithHost lk.salyk.kg:30040 [12:02:23]ConnectInit lk.salyk.kg [12:02:23]written 0, free lines is 4095 [12:02:23]Connected sock=10 [12:02: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 33 39 0F 01 00 00 B1 0C 07 01 10 C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 4D F1 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4E 78 03 00 35 04 06 00 48 CC 8D 13 67 F9 F1 74 AD D3 39 FB FD 34 [12:02: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 33 39 4F 00 00 00 5E B9 47 00 B3 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 33 39 10 04 04 00 4E 78 03 00 F4 03 04 00 4C 9C 14 67 B6 04 01 00 00 BE 83 2B 66 CD C7 AC 1B [12:02:23]CommunicateWithHost err = 0 [12:02:23]CheckOFDResponse [12:02:23]1017 (14) - 77093643461234 [12:02:23]1041 (16) - 0000000000871839 [12:02:23]1040 (4) - 227406 [12:02:23]1012 (4) - 20.10.2024 05:59 [12:02:23]1206 (1) - 0 [12:02:23]OFD Sender: Remove packet 227406 [12:02:23]ProducePacketName [12:02:23]name=ofd_packets/00227406 [12:02:23]NVStorageDeleteData [12:02:23]Write to MH i2c: 01 00 00 1A 12 2C [12:02:23]Write i2c OK [12:02:23]MH_I2C_Read... [12:02:23]Read from MH i2c: 01 [12:02:23]MH_I2C_Read... [12:02:23]Read from MH i2c: 01 07 00 [12:02:23]MH_I2C_Read... [12:02:23]Read from MH i2c: 01 07 00 1A 12 00 00 00 00 00 13 0D 53 [12:02:23]RasterBufferAndPrint [12:02:23]line [12:02:23]line [12:02:23]line [12:02:23]line [12:02:23]line [12:02:23]written 0, free lines is 3354 [12:02:23]process_action close_receipt done [12:02:23]requested_data is exist [12:02:23]produce_requested_data [12:02:23]requested_item fm.sn is exist - process it [12:02:23]wFMCommunicate request_size=4 [12:02:23]MH_SAM_APDU [12:02:23]CAPDU: 80 11 00 00 [12:02:23]Write to MH i2c: E2 08 00 21 12 80 11 00 00 00 00 00 00 AD [12:02:23]Write i2c OK [12:02:23]MH_I2C_Read... [12:02:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:23]Read from MH i2c: E2 [12:02:23]MH_I2C_Read... [12:02:23]Read from MH i2c: E2 17 00 [12:02:23]MH_I2C_Read... [12:02:23]Read from MH i2c: E2 17 00 21 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 04 [12:02:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:02:23]wFMCommunicate OK [12:02:23]requested_item fd.num is exist - process it [12:02:23]SAM_PROTO_GetFieldsCounters [12:02:23]wFMCommunicate request_size=4 [12:02:23]MH_SAM_APDU [12:02:23]CAPDU: 80 13 00 00 [12:02:23]Write to MH i2c: E2 08 00 22 12 80 13 00 00 00 00 00 00 B0 [12:02:23]Write i2c OK [12:02:23]MH_I2C_Read... [12:02:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:02:23]Read from MH i2c: E2 [12:02:23]MH_I2C_Read... [12:02:23]Read from MH i2c: E2 62 00 [12:02:23]MH_I2C_Read... [12:02:23]Read from MH i2c: E2 62 00 22 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 4E 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 B3 [12:02: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 4E 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:02:23]wFMCommunicate OK [12:02:23]SAM_PROTO_GetFieldsCounters done [12:02:23]requested_item shift.num is exist - process it [12:02:23]requested_item shift.opened is exist - process it [12:02:23]req_shift_opened [12:02:23]FM_GetShiftState [12:02:23]SAM_PROTO_GetShiftState [12:02:23]wFMCommunicate request_size=4 [12:02:23]MH_SAM_APDU [12:02:23]CAPDU: 80 13 01 00 [12:02:23]Write to MH i2c: E2 08 00 23 12 80 13 01 00 00 00 00 00 B2 [12:02:23]Write i2c OK [12:02:23]MH_I2C_Read... [12:02:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:23]Read from MH i2c: E2 [12:02:23]MH_I2C_Read... [12:02:23]Read from MH i2c: E2 0E 00 [12:02:23]MH_I2C_Read... [12:02:23]Read from MH i2c: E2 0E 00 23 12 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 CC [12:02:23]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:02:23]wFMCommunicate OK [12:02:23]SAM_PROTO_GetShiftState done [12:02:23]FM_GetShiftState done [12:02:23]req_shift_opened done [12:02:23]requested_item shift.open_date is exist - process it [12:02:23]req_shift_open_date [12:02:23]req_shift_open_date done [12:02:23]produce_requested_data done [12:02:23]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227406,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [12:02:23]process_action_free close_receipt [12:02:23]json_value_free [12:02:23]json_value_free done [12:02:23]process_json_proto returns [12:02:23]Send response to host [12:02:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227406,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [12:02:23]free response buf [12:02:23]execute_script done [12:02:23]execute_script returns [12:02:23]free content buf [12:02:23]Sock 8.Close socket [12:02:23]Sock 8.Thread stoped [12:02:23]OFD Sender: No OFD packet to send [12:02:28]OFD Sender: No OFD packet to send [12:02:33]OFD Sender: No OFD packet to send [12:02:35]accept exits with 9 [12:02:35]New connection [12:02:35]New thread 3066686820 created [12:02:35]Thread 3066543460 joined [12:02:35]Waiting for new connection... [12:02:35] Sock 9.Parse request [12:02:35]Sock 9.Check first char [12:02:35]Sock 9.First char is OK [12:02:35]request: POST /json_proto HTTP/1.0 [12:02:35]Method: POST [12:02:35]URL: /json_proto [12:02:35]Method is POST - this is cgi request [12:02:35]url: /json_proto [12:02:35]query_string will be loaded in cgi processing [12:02:35]execute_cgi json_proto POST (null) [12:02:35]execute_cgi path=json_proto method=POST [12:02:35]POST find Content-Length [12:02:35]Host: 172.17.44.195:8080 [12:02:35]Content-Length: 767 [12:02:35]Content-Type: application/json [12:02:35] [12:02:35]POST finish read [12:02:35]Found Content-Length = 767 [12:02:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962926", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:35]execute_script... [12:02: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)1962926", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:35]POST & json_proto [12:02:35]process_json_proto [12:02:35]json parsed OK: [12:02:35]protocol is kg_v1.0 [12:02:35]action value=close_receipt [12:02:35]process_action close_receipt [12:02:35]cmd_close_receipt [12:02:35]MH_GetDate [12:02:35]Write to MH i2c: F0 00 00 24 12 25 [12:02:35]Write i2c OK [12:02:35]MH_I2C_Read... [12:02:35]Read from MH i2c: F0 [12:02:35]MH_I2C_Read... [12:02:35]Read from MH i2c: F0 09 00 [12:02:35]MH_I2C_Read... [12:02:35]Read from MH i2c: F0 09 00 24 12 00 5C F1 14 67 82 C9 CF 66 76 [12:02:35]GetLastDocTimeStamp 1729425741 [12:02:35]current date 1729425756 [12:02:35]FM_GetShiftState [12:02:35]SAM_PROTO_GetShiftState [12:02:35]wFMCommunicate request_size=4 [12:02:35]MH_SAM_APDU [12:02:35]CAPDU: 80 13 01 00 [12:02:35]Write to MH i2c: E2 08 00 25 12 80 13 01 00 00 00 00 00 B4 [12:02:35]Write i2c OK [12:02:35]MH_I2C_Read... [12:02:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:35]Read from MH i2c: E2 [12:02:35]MH_I2C_Read... [12:02:35]Read from MH i2c: E2 0E 00 [12:02:35]MH_I2C_Read... [12:02:35]Read from MH i2c: E2 0E 00 25 12 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 CE [12:02:35]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:02:35]wFMCommunicate OK [12:02:35]SAM_PROTO_GetShiftState done [12:02:35]FM_GetShiftState done [12:02:35]opened in 1729383750 [12:02:35]opened+sec_in_day 1729470150 [12:02:35]quantity*price = 50041 [12:02:35]sum+1 = 50042 [12:02:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 255 20.10.2024 12:02 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 227407 ФПД: 231202415291323 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120236&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227407&fm=231202415291323&tin=02508201610067®Number=0000000000091685&sum=50041 [12:02:36]StoreToDocumentArchive [12:02:36]shift 533 fd 227407 [12:02:36]save to /storage/0533/doc_00227407 [12:02:36]save last doc name /storage/0533/doc_00227407 to /storage/kkm_last_doc_name [12:02:36]save OK [12:02:36]Clear old archive folders... [12:02:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:02:36]tlvbuf is 01895140 [12:02:36]SAM_PROTO_ClearQueue [12:02:36]wFMCommunicate request_size=4 [12:02:36]MH_SAM_APDU [12:02:36]CAPDU: 80 09 00 00 [12:02:36]Write to MH i2c: E2 08 00 32 12 80 09 00 00 00 00 00 00 B6 [12:02:36]Write i2c OK [12:02:36]MH_I2C_Read... [12:02:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:02:36]Read from MH i2c: E2 [12:02:36]MH_I2C_Read... [12:02:36]Read from MH i2c: E2 03 00 [12:02:36]MH_I2C_Read... [12:02:36]Read from MH i2c: E2 03 00 32 12 00 90 00 B8 [12:02:36]RAPDU: 90 00 [12:02:36]wFMCommunicate OK [12:02:36]SAM_PROTO_ClearQueue done [12:02:36]KKMCreateOFDPacket [12:02:36]OFDProtocolAddRootSTLVToBuf [12:02:36]FM_MakeSignedData [12:02:36]FM_MakeSignedData [12:02:36]SAM_PROTO_SignData [12:02:36]wFMCommunicate request_size=4 [12:02:36]MH_SAM_APDU [12:02:36]CAPDU: 80 0D 01 02 [12:02:36]Write to MH i2c: E2 08 00 33 12 80 0D 01 02 00 00 00 00 BE [12:02:36]Write i2c OK [12:02:36]MH_I2C_Read... [12:02:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:02:36]Read from MH i2c: E2 [12:02:36]MH_I2C_Read... [12:02:36]Read from MH i2c: E2 03 00 [12:02:36]MH_I2C_Read... [12:02:36]Read from MH i2c: E2 03 00 33 12 00 90 00 B9 [12:02:36]RAPDU: 90 00 [12:02:36]wFMCommunicate OK [12:02:36]wFMCommunicate request_size=255 [12:02:36]MH_SAM_APDU [12:02:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 5C F1 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4F 78 03 00 35 04 06 00 D2 [12:02:36]Write to MH i2c: E2 02 01 34 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 5C F1 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4F 78 03 00 35 04 06 00 D2 00 00 21 [12:02:36]Write i2c OK [12:02:36]MH_I2C_Read... [12:02:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:37]Read from MH i2c: E2 [12:02:37]MH_I2C_Read... [12:02:37]Read from MH i2c: E2 03 00 [12:02:37]MH_I2C_Read... [12:02:37]Read from MH i2c: E2 03 00 34 12 00 90 00 BA [12:02:37]RAPDU: 90 00 [12:02:37]wFMCommunicate OK [12:02:37]wFMCommunicate request_size=10 [12:02:37]MH_SAM_APDU [12:02:37]CAPDU: 80 0D 02 02 05 47 01 D5 AB BB [12:02:37]Write to MH i2c: E2 0D 00 35 12 80 0D 02 02 05 00 47 01 D5 AB BB 00 00 4E [12:02:37]Write i2c OK [12:02:37]MH_I2C_Read... [12:02:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:37]Read from MH i2c: E2 [12:02:37]MH_I2C_Read... [12:02:37]Read from MH i2c: E2 03 00 [12:02:37]MH_I2C_Read... [12:02:37]Read from MH i2c: E2 03 00 35 12 00 90 00 BB [12:02:37]RAPDU: 90 00 [12:02:37]wFMCommunicate OK [12:02:37]wFMCommunicate request_size=4 [12:02:37]MH_SAM_APDU [12:02:37]CAPDU: 80 0D 03 02 [12:02:37]Write to MH i2c: E2 08 00 36 12 80 0D 03 02 00 00 00 00 C3 [12:02:37]Write i2c OK [12:02:37]MH_I2C_Read... [12:02:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:02:37]Read from MH i2c: E2 [12:02:37]MH_I2C_Read... [12:02:37]Read from MH i2c: E2 0B 00 [12:02:37]MH_I2C_Read... [12:02:37]Read from MH i2c: E2 0B 00 36 12 00 8C 1B 48 89 C1 A5 2C A0 90 00 6E [12:02:37]RAPDU: 8C 1B 48 89 C1 A5 2C A0 90 00 [12:02:37]wFMCommunicate OK [12:02:37]SAM_PROTO_SignData done [12:02:37]FM_MakeSignedData done [12:02:37]CreateOFDProtocolMessage [12:02:37]wFMCommunicate request_size=4 [12:02:37]MH_SAM_APDU [12:02:37]CAPDU: 80 11 00 00 [12:02:37]Write to MH i2c: E2 08 00 37 12 80 11 00 00 00 00 00 00 C3 [12:02:37]Write i2c OK [12:02:37]MH_I2C_Read... [12:02:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:37]Read from MH i2c: E2 [12:02:37]MH_I2C_Read... [12:02:37]Read from MH i2c: E2 17 00 [12:02:37]MH_I2C_Read... [12:02:37]Read from MH i2c: E2 17 00 37 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 1A [12:02:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:02:37]wFMCommunicate OK [12:02:37]CreateOFDProtocolMessage done [12:02:37]OFDSenderStorePacket 227407 [12:02:37]StoreOFDPacket docnum=227407 [12:02:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 55 53 07 01 FF 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 5C F1 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4F 78 03 00 35 04 06 00 D2 47 01 D5 AB BB 8C 1B 48 89 C1 A5 2C A0 [12:02:37]CheckFolder [12:02:37]dirname=/storage/ofd_packets [12:02:37]CheckFolder done [12:02:37]ProducePacketName [12:02:37]name=ofd_packets/00227407 [12:02:37]NVStorageSaveData ofd_packets/00227407 [12:02:37]File name is /storage/ofd_packets/00227407 [12:02:37]Write 301 bytes [12:02:37]NVStorageSaveData done [12:02:37]OFDSenderStorePacket done [12:02:37]KKMCreateOFDPacket done [12:02:37]NVStorageSaveData kkm_last_timestamp [12:02:37]File name is /storage/kkm_last_timestamp [12:02:37]Write 4 bytes [12:02:37]NVStorageSaveData done [12:02:37]ExternCall_PrintAddStr [12:02:37]wPrintStart [12:02:37]Write to MH i2c: 01 00 00 38 12 4A [12:02:37]Write i2c OK [12:02:37]MH_I2C_Read... [12:02:37]Read from MH i2c: 01 [12:02:37]MH_I2C_Read... [12:02:37]Read from MH i2c: 01 07 00 [12:02:37]MH_I2C_Read... [12:02:37]Read from MH i2c: 01 07 00 38 12 00 00 00 00 00 FF 0F 5F [12:02:37]RasterBufferAndPrint [12:02:37]line Счет N : (1)1962926 [12:02:37]line ИНН: 02508201610067 [12:02:37]line Контрольно-Кассовый Чек [12:02:37]line ПРОДАЖА [12:02:37]line ТРК (МРК, ГНК) : 53 [12:02:37]line Товар: 2710124130 [12:02:37]line Аи-92-К-5 [12:02:37]line 7.480 * 66.90 [12:02:37]line = 500.41 [12:02:37]line НДС 12% НСП 1% [12:02:37]line > о реализуемом товаре [12:02:37]line ИТОГО: 500.41 [12:02:37]line НСП 1% : 4.43 [12:02:37]line НДС 12% : 53.14 [12:02:37]line Наличными: 0.00 [12:02:37]line Безнал.: 500.41 [12:02:37]line Место: АЗС № 133 "Партнер Нефть" [12:02:37]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:02:37]line СНО: Общий режим [12:02:37]line Чек 255 20.10.2024 12:02 [12:02:37]line Смена: 533 ФФД: 1.0 [12:02:37]line ЗНМ: 0300000091 [12:02:37]line РНМ: 0000000000091685 [12:02:37]line Версия ККМ: 001 [12:02:37]line Платежная система: Mbank [12:02:37]line ФМ: 0000000000871839 [12:02:37]line ФД: 227407 [12:02:37]line ФПД: 231202415291323 [12:02:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120236&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227407&fm=231202415291323&tin=02508201610067®Number=0000000000091685&sum=50041 [12:02:37]written 0, free lines is 4095 [12:02:37]OFD Sender: Processing packet 227407 [packets to send 38, broken 37] [12:02:37]ProducePacketName [12:02:37]name=ofd_packets/00227407 [12:02:37]OFD Sender: To server: pG, [12:02:37]CommunicateWithHost lk.salyk.kg:30040 [12:02:37]ConnectInit lk.salyk.kg [12:02:37]Connected sock=10 [12:02: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 33 39 0F 01 00 00 55 53 07 01 FF 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 5C F1 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4F 78 03 00 35 04 06 00 D2 47 01 D5 AB BB 8C 1B 48 89 C1 A5 2C A0 [12:02: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 33 39 4F 00 00 00 3E 02 47 00 87 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 33 39 10 04 04 00 4F 78 03 00 F4 03 04 00 5B 9C 14 67 B6 04 01 00 00 71 E4 A5 C5 B4 21 61 DB [12:02:37]CommunicateWithHost err = 0 [12:02:37]CheckOFDResponse [12:02:37]1017 (14) - 77093643461234 [12:02:37]1041 (16) - 0000000000871839 [12:02:37]1040 (4) - 227407 [12:02:37]1012 (4) - 20.10.2024 05:59 [12:02:37]1206 (1) - 0 [12:02:37]OFD Sender: Remove packet 227407 [12:02:37]ProducePacketName [12:02:37]name=ofd_packets/00227407 [12:02:37]NVStorageDeleteData [12:02:37]Write to MH i2c: 01 00 00 60 12 72 [12:02:37]Write i2c OK [12:02:37]MH_I2C_Read... [12:02:37]Read from MH i2c: 01 [12:02:37]MH_I2C_Read... [12:02:37]Read from MH i2c: 01 07 00 [12:02:37]MH_I2C_Read... [12:02:37]Read from MH i2c: 01 07 00 60 12 00 00 00 00 00 23 0D A9 [12:02:37]RasterBufferAndPrint [12:02:37]line [12:02:37]line [12:02:37]line [12:02:37]line [12:02:37]line [12:02:37]written 0, free lines is 3370 [12:02:37]process_action close_receipt done [12:02:37]requested_data is exist [12:02:37]produce_requested_data [12:02:37]requested_item fm.sn is exist - process it [12:02:37]wFMCommunicate request_size=4 [12:02:37]MH_SAM_APDU [12:02:37]CAPDU: 80 11 00 00 [12:02:37]Write to MH i2c: E2 08 00 67 12 80 11 00 00 00 00 00 00 F3 [12:02:37]Write i2c OK [12:02:37]MH_I2C_Read... [12:02:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:37]Read from MH i2c: E2 [12:02:37]MH_I2C_Read... [12:02:37]Read from MH i2c: E2 17 00 [12:02:37]MH_I2C_Read... [12:02:37]Read from MH i2c: E2 17 00 67 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 4A [12:02:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:02:37]wFMCommunicate OK [12:02:37]requested_item fd.num is exist - process it [12:02:37]SAM_PROTO_GetFieldsCounters [12:02:37]wFMCommunicate request_size=4 [12:02:37]MH_SAM_APDU [12:02:37]CAPDU: 80 13 00 00 [12:02:37]Write to MH i2c: E2 08 00 68 12 80 13 00 00 00 00 00 00 F6 [12:02:37]Write i2c OK [12:02:37]MH_I2C_Read... [12:02:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:02:38]Read from MH i2c: E2 [12:02:38]MH_I2C_Read... [12:02:38]Read from MH i2c: E2 62 00 [12:02:38]MH_I2C_Read... [12:02:38]Read from MH i2c: E2 62 00 68 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 4F 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 FE [12:02: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 4F 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:02:38]wFMCommunicate OK [12:02:38]SAM_PROTO_GetFieldsCounters done [12:02:38]requested_item shift.num is exist - process it [12:02:38]requested_item shift.opened is exist - process it [12:02:38]req_shift_opened [12:02:38]FM_GetShiftState [12:02:38]SAM_PROTO_GetShiftState [12:02:38]wFMCommunicate request_size=4 [12:02:38]MH_SAM_APDU [12:02:38]CAPDU: 80 13 01 00 [12:02:38]Write to MH i2c: E2 08 00 69 12 80 13 01 00 00 00 00 00 F8 [12:02:38]Write i2c OK [12:02:38]MH_I2C_Read... [12:02:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:38]Read from MH i2c: E2 [12:02:38]MH_I2C_Read... [12:02:38]Read from MH i2c: E2 0E 00 [12:02:38]MH_I2C_Read... [12:02:38]Read from MH i2c: E2 0E 00 69 12 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 12 [12:02:38]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:02:38]wFMCommunicate OK [12:02:38]SAM_PROTO_GetShiftState done [12:02:38]FM_GetShiftState done [12:02:38]req_shift_opened done [12:02:38]requested_item shift.open_date is exist - process it [12:02:38]req_shift_open_date [12:02:38]req_shift_open_date done [12:02:38]produce_requested_data done [12:02:38]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227407,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [12:02:38]process_action_free close_receipt [12:02:38]json_value_free [12:02:38]json_value_free done [12:02:38]process_json_proto returns [12:02:38]Send response to host [12:02:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227407,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [12:02:38]free response buf [12:02:38]execute_script done [12:02:38]execute_script returns [12:02:38]free content buf [12:02:38]Sock 9.Close socket [12:02:38]Sock 9.Thread stoped [12:02:38]OFD Sender: No OFD packet to send [12:02:43]OFD Sender: No OFD packet to send [12:02:48]OFD Sender: No OFD packet to send [12:02:53]OFD Sender: No OFD packet to send [12:02:58]OFD Sender: No OFD packet to send [12:03:03]OFD Sender: No OFD packet to send [12:03:08]OFD Sender: No OFD packet to send [12:03:13]OFD Sender: No OFD packet to send [12:03:18]OFD Sender: No OFD packet to send [12:03:23]OFD Sender: No OFD packet to send [12:03:28]OFD Sender: No OFD packet to send [12:03:33]OFD Sender: No OFD packet to send [12:03:38]OFD Sender: No OFD packet to send [12:03:43]OFD Sender: No OFD packet to send [12:03:48]OFD Sender: No OFD packet to send [12:03:53]OFD Sender: No OFD packet to send [12:03:56]accept exits with 8 [12:03:56]New connection [12:03:56]New thread 3066543460 created [12:03:56]Thread 3066686820 joined [12:03:56]Waiting for new connection... [12:03:56] Sock 8.Parse request [12:03:56]Sock 8.Check first char [12:03:56]Sock 8.First char is OK [12:03:56]request: POST /json_proto HTTP/1.0 [12:03:56]Method: POST [12:03:56]URL: /json_proto [12:03:56]Method is POST - this is cgi request [12:03:56]url: /json_proto [12:03:56]query_string will be loaded in cgi processing [12:03:56]execute_cgi json_proto POST (null) [12:03:56]execute_cgi path=json_proto method=POST [12:03:56]POST find Content-Length [12:03:56]Host: 172.17.44.195:8080 [12:03:56]Content-Length: 678 [12:03:56]Content-Type: application/json [12:03:56] [12:03:56]POST finish read [12:03:56]Found Content-Length = 678 [12:03:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962929", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:56]execute_script... [12:03: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)1962929", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:56]POST & json_proto [12:03:56]process_json_proto [12:03:56]json parsed OK: [12:03:56]protocol is kg_v1.0 [12:03:56]action value=close_receipt [12:03:56]process_action close_receipt [12:03:56]cmd_close_receipt [12:03:56]MH_GetDate [12:03:56]Write to MH i2c: F0 00 00 6A 12 6B [12:03:56]Write i2c OK [12:03:56]MH_I2C_Read... [12:03:56]Read from MH i2c: F0 [12:03:56]MH_I2C_Read... [12:03:56]Read from MH i2c: F0 09 00 [12:03:56]MH_I2C_Read... [12:03:56]Read from MH i2c: F0 09 00 6A 12 00 AD F1 14 67 82 C9 CF 66 0D [12:03:56]GetLastDocTimeStamp 1729425756 [12:03:56]current date 1729425837 [12:03:56]FM_GetShiftState [12:03:56]SAM_PROTO_GetShiftState [12:03:56]wFMCommunicate request_size=4 [12:03:56]MH_SAM_APDU [12:03:56]CAPDU: 80 13 01 00 [12:03:56]Write to MH i2c: E2 08 00 6B 12 80 13 01 00 00 00 00 00 FA [12:03:56]Write i2c OK [12:03:56]MH_I2C_Read... [12:03:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:56]Read from MH i2c: E2 [12:03:56]MH_I2C_Read... [12:03:56]Read from MH i2c: E2 0E 00 [12:03:56]MH_I2C_Read... [12:03:56]Read from MH i2c: E2 0E 00 6B 12 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 14 [12:03:56]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:03:56]wFMCommunicate OK [12:03:56]SAM_PROTO_GetShiftState done [12:03:56]FM_GetShiftState done [12:03:56]opened in 1729383750 [12:03:56]opened+sec_in_day 1729470150 [12:03:56]quantity*price = 50041 [12:03:56]sum+1 = 50042 [12:03:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 256 20.10.2024 12:03 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227408 ФПД: 238788487556150 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120357&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227408&fm=238788487556150&tin=02508201610067®Number=0000000000091685&sum=50000 [12:03:58]StoreToDocumentArchive [12:03:58]shift 533 fd 227408 [12:03:58]save to /storage/0533/doc_00227408 [12:03:58]save last doc name /storage/0533/doc_00227408 to /storage/kkm_last_doc_name [12:03:58]save OK [12:03:58]Clear old archive folders... [12:03:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:03:58]tlvbuf is 01894D40 [12:03:58]SAM_PROTO_ClearQueue [12:03:58]wFMCommunicate request_size=4 [12:03:58]MH_SAM_APDU [12:03:58]CAPDU: 80 09 00 00 [12:03:58]Write to MH i2c: E2 08 00 78 12 80 09 00 00 00 00 00 00 FC [12:03:58]Write i2c OK [12:03:58]MH_I2C_Read... [12:03:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:03:58]Read from MH i2c: E2 [12:03:58]MH_I2C_Read... [12:03:58]Read from MH i2c: E2 03 00 [12:03:58]MH_I2C_Read... [12:03:58]Read from MH i2c: E2 03 00 78 12 00 90 00 FE [12:03:58]RAPDU: 90 00 [12:03:58]wFMCommunicate OK [12:03:58]SAM_PROTO_ClearQueue done [12:03:58]KKMCreateOFDPacket [12:03:58]OFDProtocolAddRootSTLVToBuf [12:03:58]FM_MakeSignedData [12:03:58]FM_MakeSignedData [12:03:58]SAM_PROTO_SignData [12:03:58]wFMCommunicate request_size=4 [12:03:58]MH_SAM_APDU [12:03:58]CAPDU: 80 0D 01 02 [12:03:58]Write to MH i2c: E2 08 00 79 12 80 0D 01 02 00 00 00 00 04 [12:03:58]Write i2c OK [12:03:58]MH_I2C_Read... [12:03:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:03:58]Read from MH i2c: E2 [12:03:58]MH_I2C_Read... [12:03:58]Read from MH i2c: E2 03 00 [12:03:58]MH_I2C_Read... [12:03:58]Read from MH i2c: E2 03 00 79 12 00 90 00 FF [12:03:58]RAPDU: 90 00 [12:03:58]wFMCommunicate OK [12:03:58]wFMCommunicate request_size=255 [12:03:58]MH_SAM_APDU [12:03:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 AD F1 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 50 78 03 00 35 04 06 00 D9 [12:03:58]Write to MH i2c: E2 02 01 7A 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 AD F1 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 50 78 03 00 35 04 06 00 D9 00 00 70 [12:03:58]Write i2c OK [12:03:58]MH_I2C_Read... [12:03:58]OFD Sender: No OFD packet to send [12:03:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:58]Read from MH i2c: E2 [12:03:58]MH_I2C_Read... [12:03:58]Read from MH i2c: E2 03 00 [12:03:58]MH_I2C_Read... [12:03:58]Read from MH i2c: E2 03 00 7A 12 00 90 00 00 [12:03:58]RAPDU: 90 00 [12:03:58]wFMCommunicate OK [12:03:58]wFMCommunicate request_size=10 [12:03:58]MH_SAM_APDU [12:03:58]CAPDU: 80 0D 02 02 05 2D 46 FA 2C 36 [12:03:58]Write to MH i2c: E2 0D 00 7B 12 80 0D 02 02 05 00 2D 46 FA 2C 36 00 00 E0 [12:03:58]Write i2c OK [12:03:58]MH_I2C_Read... [12:03:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:58]Read from MH i2c: E2 [12:03:58]MH_I2C_Read... [12:03:58]Read from MH i2c: E2 03 00 [12:03:58]MH_I2C_Read... [12:03:58]Read from MH i2c: E2 03 00 7B 12 00 90 00 01 [12:03:58]RAPDU: 90 00 [12:03:58]wFMCommunicate OK [12:03:58]wFMCommunicate request_size=4 [12:03:58]MH_SAM_APDU [12:03:58]CAPDU: 80 0D 03 02 [12:03:58]Write to MH i2c: E2 08 00 7C 12 80 0D 03 02 00 00 00 00 09 [12:03:58]Write i2c OK [12:03:58]MH_I2C_Read... [12:03:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:03:58]Read from MH i2c: E2 [12:03:58]MH_I2C_Read... [12:03:58]Read from MH i2c: E2 0B 00 [12:03:58]MH_I2C_Read... [12:03:58]Read from MH i2c: E2 0B 00 7C 12 00 41 D9 6B 0C 03 8C 2C 4D 90 00 A3 [12:03:58]RAPDU: 41 D9 6B 0C 03 8C 2C 4D 90 00 [12:03:58]wFMCommunicate OK [12:03:58]SAM_PROTO_SignData done [12:03:58]FM_MakeSignedData done [12:03:58]CreateOFDProtocolMessage [12:03:58]wFMCommunicate request_size=4 [12:03:58]MH_SAM_APDU [12:03:58]CAPDU: 80 11 00 00 [12:03:58]Write to MH i2c: E2 08 00 7D 12 80 11 00 00 00 00 00 00 09 [12:03:58]Write i2c OK [12:03:58]MH_I2C_Read... [12:03:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:58]Read from MH i2c: E2 [12:03:58]MH_I2C_Read... [12:03:58]Read from MH i2c: E2 17 00 [12:03:58]MH_I2C_Read... [12:03:58]Read from MH i2c: E2 17 00 7D 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 60 [12:03:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:03:58]wFMCommunicate OK [12:03:58]CreateOFDProtocolMessage done [12:03:58]OFDSenderStorePacket 227408 [12:03:58]StoreOFDPacket docnum=227408 [12:03:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 35 1E 07 01 E6 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 AD F1 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 50 78 03 00 35 04 06 00 D9 2D 46 FA 2C 36 41 D9 6B 0C 03 8C 2C 4D [12:03:58]CheckFolder [12:03:58]dirname=/storage/ofd_packets [12:03:58]CheckFolder done [12:03:58]ProducePacketName [12:03:58]name=ofd_packets/00227408 [12:03:58]NVStorageSaveData ofd_packets/00227408 [12:03:58]File name is /storage/ofd_packets/00227408 [12:03:58]Write 301 bytes [12:03:58]NVStorageSaveData done [12:03:58]OFDSenderStorePacket done [12:03:58]KKMCreateOFDPacket done [12:03:58]NVStorageSaveData kkm_last_timestamp [12:03:58]File name is /storage/kkm_last_timestamp [12:03:58]Write 4 bytes [12:03:58]NVStorageSaveData done [12:03:58]ExternCall_PrintAddStr [12:03:58]wPrintStart [12:03:58]Write to MH i2c: 01 00 00 7E 12 90 [12:03:58]Write i2c OK [12:03:58]MH_I2C_Read... [12:03:58]Read from MH i2c: 01 [12:03:58]MH_I2C_Read... [12:03:58]Read from MH i2c: 01 07 00 [12:03:58]MH_I2C_Read... [12:03:58]Read from MH i2c: 01 07 00 7E 12 00 00 00 00 00 FF 0F A5 [12:03:58]RasterBufferAndPrint [12:03:58]line Счет N : (1)1962929 [12:03:58]line ИНН: 02508201610067 [12:03:58]line Контрольно-Кассовый Чек [12:03:58]line ПРОДАЖА [12:03:58]line ТРК (МРК, ГНК) : 43 [12:03:58]line Товар: 2710124130 [12:03:58]line Аи-92-К-5 [12:03:58]line 7.480 * 66.90 [12:03:58]line = 500.41 [12:03:58]line НДС 12% НСП 1% [12:03:58]line > о реализуемом товаре [12:03:58]line ОКРУГЛЕНИЕ: -0.41 [12:03:58]line ИТОГО: 500.00 [12:03:58]line Внесено: 500.00 [12:03:58]line СДАЧА: 0.00 [12:03:58]line НСП 1% : 4.43 [12:03:58]line НДС 12% : 53.14 [12:03:58]line Наличными: 500.00 [12:03:58]line Безнал.: 0.00 [12:03:58]line Место: АЗС № 133 "Партнер Нефть" [12:03:58]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:03:58]line СНО: Общий режим [12:03:58]line Чек 256 20.10.2024 12:03 [12:03:58]line Смена: 533 ФФД: 1.0 [12:03:58]line ЗНМ: 0300000091 [12:03:58]line РНМ: 0000000000091685 [12:03:58]line Версия ККМ: 001 [12:03:58]line ФМ: 0000000000871839 [12:03:58]line ФД: 227408 [12:03:58]line ФПД: 238788487556150 [12:03:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120357&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227408&fm=238788487556150&tin=02508201610067®Number=0000000000091685&sum=50000 [12:03:58]OFD Sender: Processing packet 227408 [packets to send 38, broken 37] [12:03:58]ProducePacketName [12:03:58]name=ofd_packets/00227408 [12:03:58]OFD Sender: To server: pG, [12:03:58]CommunicateWithHost lk.salyk.kg:30040 [12:03:58]ConnectInit lk.salyk.kg [12:03:58]written 0, free lines is 4095 [12:03:59]Connected sock=10 [12:03: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 33 39 0F 01 00 00 35 1E 07 01 E6 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 AD F1 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 50 78 03 00 35 04 06 00 D9 2D 46 FA 2C 36 41 D9 6B 0C 03 8C 2C 4D [12:03: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 33 39 4F 00 00 00 3C 6C 47 00 62 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 50 78 03 00 F4 03 04 00 AC 9C 14 67 B6 04 01 00 00 F1 11 79 55 BE 87 F8 1F [12:03:59]CommunicateWithHost err = 0 [12:03:59]CheckOFDResponse [12:03:59]1017 (14) - 77093643461234 [12:03:59]1041 (16) - 0000000000871839 [12:03:59]1040 (4) - 227408 [12:03:59]1012 (4) - 20.10.2024 06:01 [12:03:59]1206 (1) - 0 [12:03:59]OFD Sender: Remove packet 227408 [12:03:59]ProducePacketName [12:03:59]name=ofd_packets/00227408 [12:03:59]NVStorageDeleteData [12:03:59]Write to MH i2c: 01 00 00 A8 12 BA [12:03:59]Write i2c OK [12:03:59]MH_I2C_Read... [12:03:59]Read from MH i2c: 01 [12:03:59]MH_I2C_Read... [12:03:59]Read from MH i2c: 01 07 00 [12:03:59]MH_I2C_Read... [12:03:59]Read from MH i2c: 01 07 00 A8 12 00 00 00 00 00 FA 0C C7 [12:03:59]RasterBufferAndPrint [12:03:59]line [12:03:59]line [12:03:59]line [12:03:59]line [12:03:59]line [12:03:59]written 0, free lines is 3332 [12:03:59]process_action close_receipt done [12:03:59]requested_data is exist [12:03:59]produce_requested_data [12:03:59]requested_item fm.sn is exist - process it [12:03:59]wFMCommunicate request_size=4 [12:03:59]MH_SAM_APDU [12:03:59]CAPDU: 80 11 00 00 [12:03:59]Write to MH i2c: E2 08 00 AF 12 80 11 00 00 00 00 00 00 3B [12:03:59]Write i2c OK [12:03:59]MH_I2C_Read... [12:03:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:59]Read from MH i2c: E2 [12:03:59]MH_I2C_Read... [12:03:59]Read from MH i2c: E2 17 00 [12:03:59]MH_I2C_Read... [12:03:59]Read from MH i2c: E2 17 00 AF 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 92 [12:03:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:03:59]wFMCommunicate OK [12:03:59]requested_item fd.num is exist - process it [12:03:59]SAM_PROTO_GetFieldsCounters [12:03:59]wFMCommunicate request_size=4 [12:03:59]MH_SAM_APDU [12:03:59]CAPDU: 80 13 00 00 [12:03:59]Write to MH i2c: E2 08 00 B0 12 80 13 00 00 00 00 00 00 3E [12:03:59]Write i2c OK [12:03:59]MH_I2C_Read... [12:03:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:03:59]Read from MH i2c: E2 [12:03:59]MH_I2C_Read... [12:03:59]Read from MH i2c: E2 62 00 [12:03:59]MH_I2C_Read... [12:03:59]Read from MH i2c: E2 62 00 B0 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 50 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 4C [12:03:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 50 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:03:59]wFMCommunicate OK [12:03:59]SAM_PROTO_GetFieldsCounters done [12:03:59]requested_item shift.num is exist - process it [12:03:59]requested_item shift.opened is exist - process it [12:03:59]req_shift_opened [12:03:59]FM_GetShiftState [12:03:59]SAM_PROTO_GetShiftState [12:03:59]wFMCommunicate request_size=4 [12:03:59]MH_SAM_APDU [12:03:59]CAPDU: 80 13 01 00 [12:03:59]Write to MH i2c: E2 08 00 B1 12 80 13 01 00 00 00 00 00 40 [12:03:59]Write i2c OK [12:03:59]MH_I2C_Read... [12:03:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:59]Read from MH i2c: E2 [12:03:59]MH_I2C_Read... [12:03:59]Read from MH i2c: E2 0E 00 [12:03:59]MH_I2C_Read... [12:03:59]Read from MH i2c: E2 0E 00 B1 12 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 5A [12:03:59]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:03:59]wFMCommunicate OK [12:03:59]SAM_PROTO_GetShiftState done [12:03:59]FM_GetShiftState done [12:03:59]req_shift_opened done [12:03:59]requested_item shift.open_date is exist - process it [12:03:59]req_shift_open_date [12:03:59]req_shift_open_date done [12:03:59]produce_requested_data done [12:03:59]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227408,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [12:03:59]process_action_free close_receipt [12:03:59]json_value_free [12:03:59]json_value_free done [12:03:59]process_json_proto returns [12:03:59]Send response to host [12:03:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227408,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [12:03:59]free response buf [12:03:59]execute_script done [12:03:59]execute_script returns [12:03:59]free content buf [12:03:59]Sock 8.Close socket [12:03:59]Sock 8.Thread stoped [12:03:59]OFD Sender: No OFD packet to send [12:04:04]OFD Sender: No OFD packet to send [12:04:06]accept exits with 9 [12:04:06]New connection [12:04:06]New thread 3066686820 created [12:04:06]Thread 3066543460 joined [12:04:06]Waiting for new connection... [12:04:06] Sock 9.Parse request [12:04:06]Sock 9.Check first char [12:04:06]Sock 9.First char is OK [12:04:06]request: POST /json_proto HTTP/1.0 [12:04:06]Method: POST [12:04:06]URL: /json_proto [12:04:06]Method is POST - this is cgi request [12:04:06]url: /json_proto [12:04:06]query_string will be loaded in cgi processing [12:04:06]execute_cgi json_proto POST (null) [12:04:06]execute_cgi path=json_proto method=POST [12:04:06]POST find Content-Length [12:04:06]Host: 172.17.44.195:8080 [12:04:06]Content-Length: 752 [12:04:06]Content-Type: application/json [12:04:06] [12:04:06]POST finish read [12:04:06]Found Content-Length = 752 [12:04:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962925", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 65.620, "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\u000A30104725", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:06]execute_script... [12: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)1962925", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 65.620, "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\u000A30104725", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:06]POST & json_proto [12:04:06]process_json_proto [12:04:06]json parsed OK: [12:04:06]protocol is kg_v1.0 [12:04:06]action value=close_receipt [12:04:06]process_action close_receipt [12:04:06]cmd_close_receipt [12:04:06]MH_GetDate [12:04:06]Write to MH i2c: F0 00 00 B2 12 B3 [12:04:06]Write i2c OK [12:04:06]MH_I2C_Read... [12:04:06]Read from MH i2c: F0 [12:04:06]MH_I2C_Read... [12:04:06]Read from MH i2c: F0 09 00 [12:04:06]MH_I2C_Read... [12:04:06]Read from MH i2c: F0 09 00 B2 12 00 B7 F1 14 67 82 C9 CF 66 5F [12:04:06]GetLastDocTimeStamp 1729425837 [12:04:06]current date 1729425847 [12:04:06]FM_GetShiftState [12:04:06]SAM_PROTO_GetShiftState [12:04:06]wFMCommunicate request_size=4 [12:04:06]MH_SAM_APDU [12:04:06]CAPDU: 80 13 01 00 [12:04:06]Write to MH i2c: E2 08 00 B3 12 80 13 01 00 00 00 00 00 42 [12:04:06]Write i2c OK [12:04:06]MH_I2C_Read... [12:04:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:06]Read from MH i2c: E2 [12:04:06]MH_I2C_Read... [12:04:06]Read from MH i2c: E2 0E 00 [12:04:06]MH_I2C_Read... [12:04:06]Read from MH i2c: E2 0E 00 B3 12 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 5C [12:04:06]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:04:06]wFMCommunicate OK [12:04:06]SAM_PROTO_GetShiftState done [12:04:06]FM_GetShiftState done [12:04:06]opened in 1729383750 [12:04:06]opened+sec_in_day 1729470150 [12:04:06]quantity*price = 0 [12:04:06]sum+1 = 1 [12:04:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 257 20.10.2024 12:04 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Талоны: ТК ГПНА Online 30104725 ФМ: 0000000000871839 ФД: 227409 ФПД: 121755863936721 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120407&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227409&fm=121755863936721&tin=02508201610067®Number=0000000000091685&sum=0 [12:04:07]StoreToDocumentArchive [12:04:07]shift 533 fd 227409 [12:04:07]save to /storage/0533/doc_00227409 [12:04:07]save last doc name /storage/0533/doc_00227409 to /storage/kkm_last_doc_name [12:04:07]save OK [12:04:07]Clear old archive folders... [12:04:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:04:07]tlvbuf is 01947CB0 [12:04:07]SAM_PROTO_ClearQueue [12:04:07]wFMCommunicate request_size=4 [12:04:07]MH_SAM_APDU [12:04:07]CAPDU: 80 09 00 00 [12:04:07]Write to MH i2c: E2 08 00 C0 12 80 09 00 00 00 00 00 00 44 [12:04:07]Write i2c OK [12:04:07]MH_I2C_Read... [12:04:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:04:07]Read from MH i2c: E2 [12:04:07]MH_I2C_Read... [12:04:07]Read from MH i2c: E2 03 00 [12:04:07]MH_I2C_Read... [12:04:07]Read from MH i2c: E2 03 00 C0 12 00 90 00 46 [12:04:07]RAPDU: 90 00 [12:04:07]wFMCommunicate OK [12:04:07]SAM_PROTO_ClearQueue done [12:04:07]KKMCreateOFDPacket [12:04:07]OFDProtocolAddRootSTLVToBuf [12:04:07]FM_MakeSignedData [12:04:07]FM_MakeSignedData [12:04:07]SAM_PROTO_SignData [12:04:07]wFMCommunicate request_size=4 [12:04:07]MH_SAM_APDU [12:04:07]CAPDU: 80 0D 01 02 [12:04:07]Write to MH i2c: E2 08 00 C1 12 80 0D 01 02 00 00 00 00 4C [12:04:07]Write i2c OK [12:04:07]MH_I2C_Read... [12:04:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:04:07]Read from MH i2c: E2 [12:04:07]MH_I2C_Read... [12:04:07]Read from MH i2c: E2 03 00 [12:04:07]MH_I2C_Read... [12:04:07]Read from MH i2c: E2 03 00 C1 12 00 90 00 47 [12:04:07]RAPDU: 90 00 [12:04:07]wFMCommunicate OK [12:04:07]wFMCommunicate request_size=255 [12:04:07]MH_SAM_APDU [12:04:07]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 00 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 B7 F1 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 51 78 03 00 35 04 06 00 6E BC 7F 04 [12:04:07]Write to MH i2c: E2 02 01 C2 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 54 00 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 B7 F1 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 51 78 03 00 35 04 06 00 6E BC 7F 04 00 00 BB [12:04:07]Write i2c OK [12:04:07]MH_I2C_Read... [12:04:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:07]Read from MH i2c: E2 [12:04:07]MH_I2C_Read... [12:04:07]Read from MH i2c: E2 03 00 [12:04:07]MH_I2C_Read... [12:04:07]Read from MH i2c: E2 03 00 C2 12 00 90 00 48 [12:04:07]RAPDU: 90 00 [12:04:07]wFMCommunicate OK [12:04:07]wFMCommunicate request_size=7 [12:04:07]MH_SAM_APDU [12:04:07]CAPDU: 80 0D 02 02 02 EE D1 [12:04:07]Write to MH i2c: E2 0A 00 C3 12 80 0D 02 02 02 00 EE D1 00 00 12 [12:04:07]Write i2c OK [12:04:07]MH_I2C_Read... [12:04:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:07]Read from MH i2c: E2 [12:04:07]MH_I2C_Read... [12:04:07]Read from MH i2c: E2 03 00 [12:04:07]MH_I2C_Read... [12:04:07]Read from MH i2c: E2 03 00 C3 12 00 90 00 49 [12:04:07]RAPDU: 90 00 [12:04:07]wFMCommunicate OK [12:04:07]wFMCommunicate request_size=4 [12:04:07]MH_SAM_APDU [12:04:07]CAPDU: 80 0D 03 02 [12:04:07]Write to MH i2c: E2 08 00 C4 12 80 0D 03 02 00 00 00 00 51 [12:04:07]Write i2c OK [12:04:07]MH_I2C_Read... [12:04:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:04:07]Read from MH i2c: E2 [12:04:07]MH_I2C_Read... [12:04:07]Read from MH i2c: E2 0B 00 [12:04:07]MH_I2C_Read... [12:04:07]Read from MH i2c: E2 0B 00 C4 12 00 26 14 4D BD 88 2C 82 14 90 00 E0 [12:04:07]RAPDU: 26 14 4D BD 88 2C 82 14 90 00 [12:04:07]wFMCommunicate OK [12:04:07]SAM_PROTO_SignData done [12:04:07]FM_MakeSignedData done [12:04:07]CreateOFDProtocolMessage [12:04:07]wFMCommunicate request_size=4 [12:04:07]MH_SAM_APDU [12:04:07]CAPDU: 80 11 00 00 [12:04:07]Write to MH i2c: E2 08 00 C5 12 80 11 00 00 00 00 00 00 51 [12:04:07]Write i2c OK [12:04:07]MH_I2C_Read... [12:04:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:07]Read from MH i2c: E2 [12:04:07]MH_I2C_Read... [12:04:07]Read from MH i2c: E2 17 00 [12:04:07]MH_I2C_Read... [12:04:07]Read from MH i2c: E2 17 00 C5 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A8 [12:04:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:04:07]wFMCommunicate OK [12:04:07]CreateOFDProtocolMessage done [12:04:07]OFDSenderStorePacket 227409 [12:04:07]StoreOFDPacket docnum=227409 [12:04:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 91 25 04 01 4E 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 54 00 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 B7 F1 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 51 78 03 00 35 04 06 00 6E BC 7F 04 EE D1 26 14 4D BD 88 2C 82 14 [12:04:07]CheckFolder [12:04:07]dirname=/storage/ofd_packets [12:04:07]CheckFolder done [12:04:07]ProducePacketName [12:04:07]name=ofd_packets/00227409 [12:04:07]NVStorageSaveData ofd_packets/00227409 [12:04:07]File name is /storage/ofd_packets/00227409 [12:04:07]Write 298 bytes [12:04:07]NVStorageSaveData done [12:04:07]OFDSenderStorePacket done [12:04:07]KKMCreateOFDPacket done [12:04:07]NVStorageSaveData kkm_last_timestamp [12:04:07]File name is /storage/kkm_last_timestamp [12:04:07]Write 4 bytes [12:04:07]NVStorageSaveData done [12:04:07]ExternCall_PrintAddStr [12:04:07]wPrintStart [12:04:07]Write to MH i2c: 01 00 00 C6 12 D8 [12:04:07]Write i2c OK [12:04:07]MH_I2C_Read... [12:04:07]Read from MH i2c: 01 [12:04:07]MH_I2C_Read... [12:04:07]Read from MH i2c: 01 07 00 [12:04:07]MH_I2C_Read... [12:04:07]Read from MH i2c: 01 07 00 C6 12 00 00 00 00 00 FF 0F ED [12:04:07]RasterBufferAndPrint [12:04:07]line Счет N : (1)1962925 [12:04:07]line ИНН: 02508201610067 [12:04:07]line Контрольно-Кассовый Чек [12:04:07]line ПРОДАЖА [12:04:07]line ТРК (МРК, ГНК) : 11 [12:04:07]line Товар: 2710194210 [12:04:07]line ДТ-К-5 [12:04:07]line 65.620 * 0.00 [12:04:07]line = 0.00 [12:04:07]line НДС 12% НСП 1% [12:04:07]line > о реализуемом товаре [12:04:07]line ИТОГО: 0.00 [12:04:07]line НСП 1% : 0.00 [12:04:07]line НДС 12% : 0.00 [12:04:07]line Наличными: 0.00 [12:04:07]line Безнал.: 0.00 [12:04:07]line Место: АЗС № 133 "Партнер Нефть" [12:04:07]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:04:07]line СНО: Общий режим [12:04:07]line Чек 257 20.10.2024 12:04 [12:04:07]line Смена: 533 ФФД: 1.0 [12:04:07]line ЗНМ: 0300000091 [12:04:07]line РНМ: 0000000000091685 [12:04:07]line Версия ККМ: 001 [12:04:07]line Талоны: ТК ГПНА Online [12:04:07]line 30104725 [12:04:07]line ФМ: 0000000000871839 [12:04:07]line ФД: 227409 [12:04:07]line ФПД: 121755863936721 [12:04:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120407&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227409&fm=121755863936721&tin=02508201610067®Number=0000000000091685&sum=0 [12:04:07]written 0, free lines is 4095 [12:04:07]OFD Sender: Processing packet 227409 [packets to send 38, broken 37] [12:04:07]ProducePacketName [12:04:07]name=ofd_packets/00227409 [12:04:07]OFD Sender: To server: pG, [12:04:07]CommunicateWithHost lk.salyk.kg:30040 [12:04:07]ConnectInit lk.salyk.kg [12:04:08]Connected sock=10 [12: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 33 39 0C 01 00 00 91 25 04 01 4E 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 54 00 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 B7 F1 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 51 78 03 00 35 04 06 00 6E BC 7F 04 EE D1 26 14 4D BD 88 2C 82 14 [12: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 33 39 4F 00 00 00 3D 31 47 00 98 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 51 78 03 00 F4 03 04 00 B5 9C 14 67 B6 04 01 00 00 88 B7 C5 98 E1 1D 93 B7 [12:04:08]CommunicateWithHost err = 0 [12:04:08]CheckOFDResponse [12:04:08]1017 (14) - 77093643461234 [12:04:08]1041 (16) - 0000000000871839 [12:04:08]1040 (4) - 227409 [12:04:08]1012 (4) - 20.10.2024 06:01 [12:04:08]1206 (1) - 0 [12:04:08]OFD Sender: Remove packet 227409 [12:04:08]ProducePacketName [12:04:08]name=ofd_packets/00227409 [12:04:08]NVStorageDeleteData [12:04:08]Write to MH i2c: 01 00 00 EF 12 01 [12:04:08]Write i2c OK [12:04:08]MH_I2C_Read... [12:04:08]Read from MH i2c: 01 [12:04:08]MH_I2C_Read... [12:04:08]Read from MH i2c: 01 07 00 [12:04:08]MH_I2C_Read... [12:04:08]Read from MH i2c: 01 07 00 EF 12 00 00 00 00 00 0D 0D 22 [12:04:08]RasterBufferAndPrint [12:04:08]line [12:04:08]line [12:04:08]line [12:04:08]line [12:04:08]line [12:04:08]written 0, free lines is 3350 [12:04:08]process_action close_receipt done [12:04:08]requested_data is exist [12:04:08]produce_requested_data [12:04:08]requested_item fm.sn is exist - process it [12:04:08]wFMCommunicate request_size=4 [12:04:08]MH_SAM_APDU [12:04:08]CAPDU: 80 11 00 00 [12:04:08]Write to MH i2c: E2 08 00 F6 12 80 11 00 00 00 00 00 00 82 [12:04:08]Write i2c OK [12:04:08]MH_I2C_Read... [12:04:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:08]Read from MH i2c: E2 [12:04:08]MH_I2C_Read... [12:04:08]Read from MH i2c: E2 17 00 [12:04:08]MH_I2C_Read... [12:04:08]Read from MH i2c: E2 17 00 F6 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D9 [12:04:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:04:08]wFMCommunicate OK [12:04:08]requested_item fd.num is exist - process it [12:04:08]SAM_PROTO_GetFieldsCounters [12:04:08]wFMCommunicate request_size=4 [12:04:08]MH_SAM_APDU [12:04:08]CAPDU: 80 13 00 00 [12:04:08]Write to MH i2c: E2 08 00 F7 12 80 13 00 00 00 00 00 00 85 [12:04:08]Write i2c OK [12:04:08]MH_I2C_Read... [12:04:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:04:08]Read from MH i2c: E2 [12:04:08]MH_I2C_Read... [12:04:08]Read from MH i2c: E2 62 00 [12:04:08]MH_I2C_Read... [12:04:08]Read from MH i2c: E2 62 00 F7 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 51 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 97 [12:04: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 51 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:04:08]wFMCommunicate OK [12:04:08]SAM_PROTO_GetFieldsCounters done [12:04:08]requested_item shift.num is exist - process it [12:04:08]requested_item shift.opened is exist - process it [12:04:08]req_shift_opened [12:04:08]FM_GetShiftState [12:04:08]SAM_PROTO_GetShiftState [12:04:08]wFMCommunicate request_size=4 [12:04:08]MH_SAM_APDU [12:04:08]CAPDU: 80 13 01 00 [12:04:08]Write to MH i2c: E2 08 00 F8 12 80 13 01 00 00 00 00 00 87 [12:04:08]Write i2c OK [12:04:08]MH_I2C_Read... [12:04:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:08]Read from MH i2c: E2 [12:04:08]MH_I2C_Read... [12:04:08]Read from MH i2c: E2 0E 00 [12:04:08]MH_I2C_Read... [12:04:08]Read from MH i2c: E2 0E 00 F8 12 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 A1 [12:04:08]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:04:08]wFMCommunicate OK [12:04:08]SAM_PROTO_GetShiftState done [12:04:08]FM_GetShiftState done [12:04:08]req_shift_opened done [12:04:08]requested_item shift.open_date is exist - process it [12:04:08]req_shift_open_date [12:04:08]req_shift_open_date done [12:04:08]produce_requested_data done [12:04:08]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227409,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [12:04:08]process_action_free close_receipt [12:04:08]json_value_free [12:04:08]json_value_free done [12:04:08]process_json_proto returns [12:04:08]Send response to host [12:04:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227409,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [12:04:08]free response buf [12:04:08]execute_script done [12:04:08]execute_script returns [12:04:08]free content buf [12:04:08]Sock 9.Close socket [12:04:08]Sock 9.Thread stoped [12:04:08]OFD Sender: No OFD packet to send [12:04:08]accept exits with 8 [12:04:08]New connection [12:04:08]New thread 3066543460 created [12:04:08]Thread 3066686820 joined [12:04:08]Waiting for new connection... [12:04:08] Sock 8.Parse request [12:04:08]Sock 8.Check first char [12:04:08]Sock 8.First char is OK [12:04:08]request: POST /json_proto HTTP/1.0 [12:04:08]Method: POST [12:04:08]URL: /json_proto [12:04:08]Method is POST - this is cgi request [12:04:08]url: /json_proto [12:04:08]query_string will be loaded in cgi processing [12:04:08]execute_cgi json_proto POST (null) [12:04:08]execute_cgi path=json_proto method=POST [12:04:08]POST find Content-Length [12:04:08]Host: 172.17.44.195:8080 [12:04:08]Content-Length: 752 [12:04:08]Content-Type: application/json [12:04:08] [12:04:08]POST finish read [12:04:08]Found Content-Length = 752 [12:04:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962927", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 26.250, "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\u000A30104725", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:08]execute_script... [12:04: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)1962927", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 26.250, "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\u000A30104725", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:08]POST & json_proto [12:04:08]process_json_proto [12:04:08]json parsed OK: [12:04:08]protocol is kg_v1.0 [12:04:08]action value=close_receipt [12:04:08]process_action close_receipt [12:04:08]cmd_close_receipt [12:04:08]MH_GetDate [12:04:08]Write to MH i2c: F0 00 00 F9 12 FA [12:04:08]Write i2c OK [12:04:08]MH_I2C_Read... [12:04:08]Read from MH i2c: F0 [12:04:08]MH_I2C_Read... [12:04:08]Read from MH i2c: F0 09 00 [12:04:08]MH_I2C_Read... [12:04:08]Read from MH i2c: F0 09 00 F9 12 00 B9 F1 14 67 82 C9 CF 66 A8 [12:04:08]GetLastDocTimeStamp 1729425847 [12:04:08]current date 1729425849 [12:04:08]FM_GetShiftState [12:04:08]SAM_PROTO_GetShiftState [12:04:08]wFMCommunicate request_size=4 [12:04:08]MH_SAM_APDU [12:04:08]CAPDU: 80 13 01 00 [12:04:08]Write to MH i2c: E2 08 00 FA 12 80 13 01 00 00 00 00 00 89 [12:04:08]Write i2c OK [12:04:08]MH_I2C_Read... [12:04:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:08]Read from MH i2c: E2 [12:04:08]MH_I2C_Read... [12:04:08]Read from MH i2c: E2 0E 00 [12:04:08]MH_I2C_Read... [12:04:08]Read from MH i2c: E2 0E 00 FA 12 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 A3 [12:04:08]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:04:08]wFMCommunicate OK [12:04:08]SAM_PROTO_GetShiftState done [12:04:08]FM_GetShiftState done [12:04:08]opened in 1729383750 [12:04:08]opened+sec_in_day 1729470150 [12:04:08]quantity*price = 0 [12:04:08]sum+1 = 1 [12:04:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 258 20.10.2024 12:04 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Талоны: ТК ГПНА Online 30104725 ФМ: 0000000000871839 ФД: 227410 ФПД: 67860717925855 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120409&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227410&fm=67860717925855&tin=02508201610067®Number=0000000000091685&sum=0 [12:04:09]StoreToDocumentArchive [12:04:09]shift 533 fd 227410 [12:04:09]save to /storage/0533/doc_00227410 [12:04:09]save last doc name /storage/0533/doc_00227410 to /storage/kkm_last_doc_name [12:04:09]save OK [12:04:09]Clear old archive folders... [12:04:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:04:09]tlvbuf is 018CA750 [12:04:09]SAM_PROTO_ClearQueue [12:04:09]wFMCommunicate request_size=4 [12:04:09]MH_SAM_APDU [12:04:09]CAPDU: 80 09 00 00 [12:04:09]Write to MH i2c: E2 08 00 07 13 80 09 00 00 00 00 00 00 8C [12:04:09]Write i2c OK [12:04:09]MH_I2C_Read... [12:04:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:04:09]Read from MH i2c: E2 [12:04:09]MH_I2C_Read... [12:04:09]Read from MH i2c: E2 03 00 [12:04:09]MH_I2C_Read... [12:04:09]Read from MH i2c: E2 03 00 07 13 00 90 00 8E [12:04:09]RAPDU: 90 00 [12:04:09]wFMCommunicate OK [12:04:09]SAM_PROTO_ClearQueue done [12:04:09]KKMCreateOFDPacket [12:04:09]OFDProtocolAddRootSTLVToBuf [12:04:09]FM_MakeSignedData [12:04:09]FM_MakeSignedData [12:04:09]SAM_PROTO_SignData [12:04:09]wFMCommunicate request_size=4 [12:04:09]MH_SAM_APDU [12:04:09]CAPDU: 80 0D 01 02 [12:04:09]Write to MH i2c: E2 08 00 08 13 80 0D 01 02 00 00 00 00 94 [12:04:09]Write i2c OK [12:04:09]MH_I2C_Read... [12:04:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:04:10]Read from MH i2c: E2 [12:04:10]MH_I2C_Read... [12:04:10]Read from MH i2c: E2 03 00 [12:04:10]MH_I2C_Read... [12:04:10]Read from MH i2c: E2 03 00 08 13 00 90 00 8F [12:04:10]RAPDU: 90 00 [12:04:10]wFMCommunicate OK [12:04:10]wFMCommunicate request_size=255 [12:04:10]MH_SAM_APDU [12:04:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 B9 F1 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 52 78 03 00 35 04 06 00 3D B8 0D FC [12:04:10]Write to MH i2c: E2 02 01 09 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 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 B9 F1 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 52 78 03 00 35 04 06 00 3D B8 0D FC 00 00 F3 [12:04:10]Write i2c OK [12:04:10]MH_I2C_Read... [12:04:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:10]Read from MH i2c: E2 [12:04:10]MH_I2C_Read... [12:04:10]Read from MH i2c: E2 03 00 [12:04:10]MH_I2C_Read... [12:04:10]Read from MH i2c: E2 03 00 09 13 00 90 00 90 [12:04:10]RAPDU: 90 00 [12:04:10]wFMCommunicate OK [12:04:10]wFMCommunicate request_size=7 [12:04:10]MH_SAM_APDU [12:04:10]CAPDU: 80 0D 02 02 02 75 DF [12:04:10]Write to MH i2c: E2 0A 00 0A 13 80 0D 02 02 02 00 75 DF 00 00 EF [12:04:10]Write i2c OK [12:04:10]MH_I2C_Read... [12:04:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:10]Read from MH i2c: E2 [12:04:10]MH_I2C_Read... [12:04:10]Read from MH i2c: E2 03 00 [12:04:10]MH_I2C_Read... [12:04:10]Read from MH i2c: E2 03 00 0A 13 00 90 00 91 [12:04:10]RAPDU: 90 00 [12:04:10]wFMCommunicate OK [12:04:10]wFMCommunicate request_size=4 [12:04:10]MH_SAM_APDU [12:04:10]CAPDU: 80 0D 03 02 [12:04:10]Write to MH i2c: E2 08 00 0B 13 80 0D 03 02 00 00 00 00 99 [12:04:10]Write i2c OK [12:04:10]MH_I2C_Read... [12:04:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:04:10]Read from MH i2c: E2 [12:04:10]MH_I2C_Read... [12:04:10]Read from MH i2c: E2 0B 00 [12:04:10]MH_I2C_Read... [12:04:10]Read from MH i2c: E2 0B 00 0B 13 00 CF 34 FE 02 5D 3C 23 CF 90 00 28 [12:04:10]RAPDU: CF 34 FE 02 5D 3C 23 CF 90 00 [12:04:10]wFMCommunicate OK [12:04:10]SAM_PROTO_SignData done [12:04:10]FM_MakeSignedData done [12:04:10]CreateOFDProtocolMessage [12:04:10]wFMCommunicate request_size=4 [12:04:10]MH_SAM_APDU [12:04:10]CAPDU: 80 11 00 00 [12:04:10]Write to MH i2c: E2 08 00 0C 13 80 11 00 00 00 00 00 00 99 [12:04:10]Write i2c OK [12:04:10]MH_I2C_Read... [12:04:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:10]Read from MH i2c: E2 [12:04:10]MH_I2C_Read... [12:04:10]Read from MH i2c: E2 17 00 [12:04:10]MH_I2C_Read... [12:04:10]Read from MH i2c: E2 17 00 0C 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F0 [12:04:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:04:10]wFMCommunicate OK [12:04:10]CreateOFDProtocolMessage done [12:04:10]OFDSenderStorePacket 227410 [12:04:10]StoreOFDPacket docnum=227410 [12:04:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 D8 FF 04 01 4F 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 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 B9 F1 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 52 78 03 00 35 04 06 00 3D B8 0D FC 75 DF CF 34 FE 02 5D 3C 23 CF [12:04:11]CheckFolder [12:04:11]dirname=/storage/ofd_packets [12:04:11]CheckFolder done [12:04:11]ProducePacketName [12:04:11]name=ofd_packets/00227410 [12:04:11]NVStorageSaveData ofd_packets/00227410 [12:04:11]File name is /storage/ofd_packets/00227410 [12:04:11]Write 298 bytes [12:04:11]NVStorageSaveData done [12:04:11]OFDSenderStorePacket done [12:04:11]KKMCreateOFDPacket done [12:04:11]NVStorageSaveData kkm_last_timestamp [12:04:11]File name is /storage/kkm_last_timestamp [12:04:11]Write 4 bytes [12:04:11]NVStorageSaveData done [12:04:11]ExternCall_PrintAddStr [12:04:11]wPrintStart [12:04:11]Write to MH i2c: 01 00 00 0D 13 20 [12:04:11]Write i2c OK [12:04:11]MH_I2C_Read... [12:04:11]Read from MH i2c: 01 [12:04:11]MH_I2C_Read... [12:04:11]Read from MH i2c: 01 07 00 [12:04:11]MH_I2C_Read... [12:04:11]Read from MH i2c: 01 07 00 0D 13 00 00 00 00 00 FF 0F 35 [12:04:11]RasterBufferAndPrint [12:04:11]line Счет N : (1)1962927 [12:04:11]line ИНН: 02508201610067 [12:04:11]line Контрольно-Кассовый Чек [12:04:11]line ПРОДАЖА [12:04:11]line ТРК (МРК, ГНК) : 31 [12:04:11]line Товар: 2710194210 [12:04:11]line ДТ-К-5 [12:04:11]line 26.250 * 0.00 [12:04:11]line = 0.00 [12:04:11]line НДС 12% НСП 1% [12:04:11]line > о реализуемом товаре [12:04:11]line ИТОГО: 0.00 [12:04:11]line НСП 1% : 0.00 [12:04:11]line НДС 12% : 0.00 [12:04:11]line Наличными: 0.00 [12:04:11]line Безнал.: 0.00 [12:04:11]line Место: АЗС № 133 "Партнер Нефть" [12:04:11]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:04:11]line СНО: Общий режим [12:04:11]line Чек 258 20.10.2024 12:04 [12:04:11]line Смена: 533 ФФД: 1.0 [12:04:11]line ЗНМ: 0300000091 [12:04:11]line РНМ: 0000000000091685 [12:04:11]line Версия ККМ: 001 [12:04:11]line Талоны: ТК ГПНА Online [12:04:11]line 30104725 [12:04:11]line ФМ: 0000000000871839 [12:04:11]line ФД: 227410 [12:04:11]line ФПД: 67860717925855 [12:04:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120409&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227410&fm=67860717925855&tin=02508201610067®Number=0000000000091685&sum=0 [12:04:11]written 0, free lines is 4095 [12:04:11]OFD Sender: Processing packet 227410 [packets to send 38, broken 37] [12:04:11]ProducePacketName [12:04:11]name=ofd_packets/00227410 [12:04:11]OFD Sender: To server: pG, [12:04:11]CommunicateWithHost lk.salyk.kg:30040 [12:04:11]ConnectInit lk.salyk.kg [12:04:11]Connected sock=10 [12:04: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 33 39 0C 01 00 00 D8 FF 04 01 4F 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 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 B9 F1 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 52 78 03 00 35 04 06 00 3D B8 0D FC 75 DF CF 34 FE 02 5D 3C 23 CF [12:04: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 33 39 4F 00 00 00 76 A8 47 00 16 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 33 39 10 04 04 00 52 78 03 00 F4 03 04 00 B9 9C 14 67 B6 04 01 00 00 82 3E 86 59 09 5B 27 29 [12:04:11]CommunicateWithHost err = 0 [12:04:11]CheckOFDResponse [12:04:11]1017 (14) - 77093643461234 [12:04:11]1041 (16) - 0000000000871839 [12:04:11]1040 (4) - 227410 [12:04:11]1012 (4) - 20.10.2024 06:01 [12:04:11]1206 (1) - 0 [12:04:11]OFD Sender: Remove packet 227410 [12:04:11]ProducePacketName [12:04:11]name=ofd_packets/00227410 [12:04:11]NVStorageDeleteData [12:04:11]Write to MH i2c: 01 00 00 36 13 49 [12:04:11]Write i2c OK [12:04:11]MH_I2C_Read... [12:04:11]Read from MH i2c: 01 [12:04:11]MH_I2C_Read... [12:04:11]Read from MH i2c: 01 07 00 [12:04:11]MH_I2C_Read... [12:04:11]Read from MH i2c: 01 07 00 36 13 00 00 00 00 00 1F 0D 7C [12:04:11]RasterBufferAndPrint [12:04:11]line [12:04:11]line [12:04:11]line [12:04:11]line [12:04:11]line [12:04:11]written 0, free lines is 3378 [12:04:11]process_action close_receipt done [12:04:11]requested_data is exist [12:04:11]produce_requested_data [12:04:11]requested_item fm.sn is exist - process it [12:04:11]wFMCommunicate request_size=4 [12:04:11]MH_SAM_APDU [12:04:11]CAPDU: 80 11 00 00 [12:04:11]Write to MH i2c: E2 08 00 3D 13 80 11 00 00 00 00 00 00 CA [12:04:11]Write i2c OK [12:04:11]MH_I2C_Read... [12:04:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:11]Read from MH i2c: E2 [12:04:11]MH_I2C_Read... [12:04:11]Read from MH i2c: E2 17 00 [12:04:11]MH_I2C_Read... [12:04:11]Read from MH i2c: E2 17 00 3D 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 21 [12:04:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:04:11]wFMCommunicate OK [12:04:11]requested_item fd.num is exist - process it [12:04:11]SAM_PROTO_GetFieldsCounters [12:04:11]wFMCommunicate request_size=4 [12:04:11]MH_SAM_APDU [12:04:11]CAPDU: 80 13 00 00 [12:04:11]Write to MH i2c: E2 08 00 3E 13 80 13 00 00 00 00 00 00 CD [12:04:11]Write i2c OK [12:04:11]MH_I2C_Read... [12:04:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:04:11]Read from MH i2c: E2 [12:04:11]MH_I2C_Read... [12:04:11]Read from MH i2c: E2 62 00 [12:04:11]MH_I2C_Read... [12:04:11]Read from MH i2c: E2 62 00 3E 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 52 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 E3 [12:04: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 52 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:04:11]wFMCommunicate OK [12:04:11]SAM_PROTO_GetFieldsCounters done [12:04:11]requested_item shift.num is exist - process it [12:04:11]requested_item shift.opened is exist - process it [12:04:11]req_shift_opened [12:04:11]FM_GetShiftState [12:04:11]SAM_PROTO_GetShiftState [12:04:11]wFMCommunicate request_size=4 [12:04:11]MH_SAM_APDU [12:04:11]CAPDU: 80 13 01 00 [12:04:11]Write to MH i2c: E2 08 00 3F 13 80 13 01 00 00 00 00 00 CF [12:04:11]Write i2c OK [12:04:11]MH_I2C_Read... [12:04:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:11]Read from MH i2c: E2 [12:04:11]MH_I2C_Read... [12:04:11]Read from MH i2c: E2 0E 00 [12:04:11]MH_I2C_Read... [12:04:11]Read from MH i2c: E2 0E 00 3F 13 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 E9 [12:04:11]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:04:11]wFMCommunicate OK [12:04:11]SAM_PROTO_GetShiftState done [12:04:11]FM_GetShiftState done [12:04:11]req_shift_opened done [12:04:11]requested_item shift.open_date is exist - process it [12:04:11]req_shift_open_date [12:04:11]req_shift_open_date done [12:04:11]produce_requested_data done [12:04:11]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227410,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [12:04:11]process_action_free close_receipt [12:04:11]json_value_free [12:04:11]json_value_free done [12:04:11]process_json_proto returns [12:04:11]Send response to host [12:04:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227410,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [12:04:11]free response buf [12:04:11]execute_script done [12:04:11]execute_script returns [12:04:11]free content buf [12:04:11]Sock 8.Close socket [12:04:11]Sock 8.Thread stoped [12:04:12]OFD Sender: No OFD packet to send [12:04:13]accept exits with 9 [12:04:13]New connection [12:04:13]New thread 3066686820 created [12:04:13]Thread 3066543460 joined [12:04:13]Waiting for new connection... [12:04:13] Sock 9.Parse request [12:04:13]Sock 9.Check first char [12:04:13]Sock 9.First char is OK [12:04:13]request: POST /json_proto HTTP/1.0 [12:04:13]Method: POST [12:04:13]URL: /json_proto [12:04:13]Method is POST - this is cgi request [12:04:13]url: /json_proto [12:04:13]query_string will be loaded in cgi processing [12:04:13]execute_cgi json_proto POST (null) [12:04:13]execute_cgi path=json_proto method=POST [12:04:13]POST find Content-Length [12:04:13]Host: 172.17.44.195:8080 [12:04:13]Content-Length: 675 [12:04:13]Content-Type: application/json [12:04:13] [12:04:13]POST finish read [12:04:13]Found Content-Length = 675 [12:04:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962928", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:13]execute_script... [12:04: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)1962928", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:13]POST & json_proto [12:04:13]process_json_proto [12:04:13]json parsed OK: [12:04:13]protocol is kg_v1.0 [12:04:13]action value=close_receipt [12:04:13]process_action close_receipt [12:04:13]cmd_close_receipt [12:04:13]MH_GetDate [12:04:13]Write to MH i2c: F0 00 00 40 13 42 [12:04:13]Write i2c OK [12:04:13]MH_I2C_Read... [12:04:13]Read from MH i2c: F0 [12:04:13]MH_I2C_Read... [12:04:13]Read from MH i2c: F0 09 00 [12:04:13]MH_I2C_Read... [12:04:13]Read from MH i2c: F0 09 00 40 13 00 BE F1 14 67 82 C9 CF 66 F5 [12:04:13]GetLastDocTimeStamp 1729425849 [12:04:13]current date 1729425854 [12:04:13]FM_GetShiftState [12:04:13]SAM_PROTO_GetShiftState [12:04:13]wFMCommunicate request_size=4 [12:04:13]MH_SAM_APDU [12:04:13]CAPDU: 80 13 01 00 [12:04:13]Write to MH i2c: E2 08 00 41 13 80 13 01 00 00 00 00 00 D1 [12:04:13]Write i2c OK [12:04:13]MH_I2C_Read... [12:04:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:13]Read from MH i2c: E2 [12:04:13]MH_I2C_Read... [12:04:13]Read from MH i2c: E2 0E 00 [12:04:13]MH_I2C_Read... [12:04:13]Read from MH i2c: E2 0E 00 41 13 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 EB [12:04:13]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:04:13]wFMCommunicate OK [12:04:13]SAM_PROTO_GetShiftState done [12:04:13]FM_GetShiftState done [12:04:13]opened in 1729383750 [12:04:13]opened+sec_in_day 1729470150 [12:04:13]quantity*price = 70027 [12:04:13]sum+1 = 70029 [12:04:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 259 20.10.2024 12:04 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227411 ФПД: 222859047415022 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120414&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227411&fm=222859047415022&tin=02508201610067®Number=0000000000091685&sum=70000 [12:04:14]StoreToDocumentArchive [12:04:14]shift 533 fd 227411 [12:04:14]save to /storage/0533/doc_00227411 [12:04:14]save last doc name /storage/0533/doc_00227411 to /storage/kkm_last_doc_name [12:04:14]save OK [12:04:14]Clear old archive folders... [12:04:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:04:14]tlvbuf is 018DF0D0 [12:04:14]SAM_PROTO_ClearQueue [12:04:14]wFMCommunicate request_size=4 [12:04:14]MH_SAM_APDU [12:04:14]CAPDU: 80 09 00 00 [12:04:14]Write to MH i2c: E2 08 00 4E 13 80 09 00 00 00 00 00 00 D3 [12:04:14]Write i2c OK [12:04:14]MH_I2C_Read... [12:04:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:04:14]Read from MH i2c: E2 [12:04:14]MH_I2C_Read... [12:04:14]Read from MH i2c: E2 03 00 [12:04:14]MH_I2C_Read... [12:04:14]Read from MH i2c: E2 03 00 4E 13 00 90 00 D5 [12:04:14]RAPDU: 90 00 [12:04:14]wFMCommunicate OK [12:04:14]SAM_PROTO_ClearQueue done [12:04:14]KKMCreateOFDPacket [12:04:14]OFDProtocolAddRootSTLVToBuf [12:04:14]FM_MakeSignedData [12:04:14]FM_MakeSignedData [12:04:14]SAM_PROTO_SignData [12:04:14]wFMCommunicate request_size=4 [12:04:14]MH_SAM_APDU [12:04:14]CAPDU: 80 0D 01 02 [12:04:14]Write to MH i2c: E2 08 00 4F 13 80 0D 01 02 00 00 00 00 DB [12:04:14]Write i2c OK [12:04:14]MH_I2C_Read... [12:04:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:04:14]Read from MH i2c: E2 [12:04:14]MH_I2C_Read... [12:04:14]Read from MH i2c: E2 03 00 [12:04:14]MH_I2C_Read... [12:04:14]Read from MH i2c: E2 03 00 4F 13 00 90 00 D6 [12:04:14]RAPDU: 90 00 [12:04:14]wFMCommunicate OK [12:04:14]wFMCommunicate request_size=255 [12:04:14]MH_SAM_APDU [12:04: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 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 BE F1 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 53 78 03 00 35 04 06 00 CA B0 6A 5B [12:04:15]Write to MH i2c: E2 02 01 50 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 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 BE F1 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 53 78 03 00 35 04 06 00 CA B0 6A 5B 00 00 B6 [12:04:15]Write i2c OK [12:04:15]MH_I2C_Read... [12:04:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:15]Read from MH i2c: E2 [12:04:15]MH_I2C_Read... [12:04:15]Read from MH i2c: E2 03 00 [12:04:15]MH_I2C_Read... [12:04:15]Read from MH i2c: E2 03 00 50 13 00 90 00 D7 [12:04:15]RAPDU: 90 00 [12:04:15]wFMCommunicate OK [12:04:15]wFMCommunicate request_size=7 [12:04:15]MH_SAM_APDU [12:04:15]CAPDU: 80 0D 02 02 02 2C EE [12:04:15]Write to MH i2c: E2 0A 00 51 13 80 0D 02 02 02 00 2C EE 00 00 FC [12:04:15]Write i2c OK [12:04:15]MH_I2C_Read... [12:04:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:15]Read from MH i2c: E2 [12:04:15]MH_I2C_Read... [12:04:15]Read from MH i2c: E2 03 00 [12:04:15]MH_I2C_Read... [12:04:15]Read from MH i2c: E2 03 00 51 13 00 90 00 D8 [12:04:15]RAPDU: 90 00 [12:04:15]wFMCommunicate OK [12:04:15]wFMCommunicate request_size=4 [12:04:15]MH_SAM_APDU [12:04:15]CAPDU: 80 0D 03 02 [12:04:15]Write to MH i2c: E2 08 00 52 13 80 0D 03 02 00 00 00 00 E0 [12:04:15]Write i2c OK [12:04:15]MH_I2C_Read... [12:04:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:04:15]Read from MH i2c: E2 [12:04:15]MH_I2C_Read... [12:04:15]Read from MH i2c: E2 0B 00 [12:04:15]MH_I2C_Read... [12:04:15]Read from MH i2c: E2 0B 00 52 13 00 68 41 B0 E6 73 06 89 E8 90 00 0A [12:04:15]RAPDU: 68 41 B0 E6 73 06 89 E8 90 00 [12:04:15]wFMCommunicate OK [12:04:15]SAM_PROTO_SignData done [12:04:15]FM_MakeSignedData done [12:04:15]CreateOFDProtocolMessage [12:04:15]wFMCommunicate request_size=4 [12:04:15]MH_SAM_APDU [12:04:15]CAPDU: 80 11 00 00 [12:04:15]Write to MH i2c: E2 08 00 53 13 80 11 00 00 00 00 00 00 E0 [12:04:15]Write i2c OK [12:04:15]MH_I2C_Read... [12:04:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:15]Read from MH i2c: E2 [12:04:15]MH_I2C_Read... [12:04:15]Read from MH i2c: E2 17 00 [12:04:15]MH_I2C_Read... [12:04:15]Read from MH i2c: E2 17 00 53 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 37 [12:04:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:04:15]wFMCommunicate OK [12:04:15]CreateOFDProtocolMessage done [12:04:15]OFDSenderStorePacket 227411 [12:04:15]StoreOFDPacket docnum=227411 [12:04:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 80 19 04 01 73 AD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 BE F1 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 53 78 03 00 35 04 06 00 CA B0 6A 5B 2C EE 68 41 B0 E6 73 06 89 E8 [12:04:15]CheckFolder [12:04:15]dirname=/storage/ofd_packets [12:04:15]CheckFolder done [12:04:15]ProducePacketName [12:04:15]name=ofd_packets/00227411 [12:04:15]NVStorageSaveData ofd_packets/00227411 [12:04:15]File name is /storage/ofd_packets/00227411 [12:04:15]Write 298 bytes [12:04:15]NVStorageSaveData done [12:04:15]OFDSenderStorePacket done [12:04:15]KKMCreateOFDPacket done [12:04:15]NVStorageSaveData kkm_last_timestamp [12:04:15]File name is /storage/kkm_last_timestamp [12:04:15]Write 4 bytes [12:04:15]NVStorageSaveData done [12:04:15]ExternCall_PrintAddStr [12:04:15]wPrintStart [12:04:15]Write to MH i2c: 01 00 00 54 13 67 [12:04:15]Write i2c OK [12:04:15]MH_I2C_Read... [12:04:15]Read from MH i2c: 01 [12:04:15]MH_I2C_Read... [12:04:15]Read from MH i2c: 01 07 00 [12:04:15]MH_I2C_Read... [12:04:15]Read from MH i2c: 01 07 00 54 13 00 00 00 00 00 FF 0F 7C [12:04:15]RasterBufferAndPrint [12:04:15]line Счет N : (1)1962928 [12:04:15]line ИНН: 02508201610067 [12:04:15]line Контрольно-Кассовый Чек [12:04:15]line ПРОДАЖА [12:04:15]line ТРК (МРК, ГНК) : 21 [12:04:15]line Товар: 2710194210 [12:04:15]line ДТ-К-5 [12:04:15]line 9.190 * 76.20 [12:04:15]line = 700.28 [12:04:15]line НДС 12% НСП 1% [12:04:15]line > о реализуемом товаре [12:04:15]line ОКРУГЛЕНИЕ: -0.28 [12:04:15]line ИТОГО: 700.00 [12:04:15]line Внесено: 700.00 [12:04:15]line СДАЧА: 0.00 [12:04:15]line НСП 1% : 6.20 [12:04:15]line НДС 12% : 74.37 [12:04:15]line Наличными: 700.00 [12:04:15]line Безнал.: 0.00 [12:04:15]line Место: АЗС № 133 "Партнер Нефть" [12:04:15]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:04:15]line СНО: Общий режим [12:04:15]line Чек 259 20.10.2024 12:04 [12:04:15]line Смена: 533 ФФД: 1.0 [12:04:15]line ЗНМ: 0300000091 [12:04:15]line РНМ: 0000000000091685 [12:04:15]line Версия ККМ: 001 [12:04:15]line ФМ: 0000000000871839 [12:04:15]line ФД: 227411 [12:04:15]line ФПД: 222859047415022 [12:04:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120414&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227411&fm=222859047415022&tin=02508201610067®Number=0000000000091685&sum=70000 [12:04:15]written 0, free lines is 4095 [12:04:15]OFD Sender: Processing packet 227411 [packets to send 38, broken 37] [12:04:15]ProducePacketName [12:04:15]name=ofd_packets/00227411 [12:04:15]OFD Sender: To server: pG, [12:04:15]CommunicateWithHost lk.salyk.kg:30040 [12:04:15]ConnectInit lk.salyk.kg [12:04:15]Connected sock=10 [12:04: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 33 39 0C 01 00 00 80 19 04 01 73 AD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 BE F1 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 53 78 03 00 35 04 06 00 CA B0 6A 5B 2C EE 68 41 B0 E6 73 06 89 E8 [12:04:16]Write to MH i2c: 01 00 00 7E 13 91 [12:04:16]Write i2c OK [12:04:16]MH_I2C_Read... [12:04:16]Read from MH i2c: 01 [12:04:16]MH_I2C_Read... [12:04:16]Read from MH i2c: 01 07 00 [12:04:16]MH_I2C_Read... [12:04:16]Read from MH i2c: 01 07 00 7E 13 00 00 00 00 00 04 0D A9 [12:04:16]RasterBufferAndPrint [12:04:16]line [12:04:16]line [12:04:16]line [12:04:16]line [12:04:16]line [12:04:16]written 0, free lines is 3357 [12:04:16]process_action close_receipt done [12:04:16]requested_data is exist [12:04:16]produce_requested_data [12:04:16]requested_item fm.sn is exist - process it [12:04:16]wFMCommunicate request_size=4 [12:04:16]MH_SAM_APDU [12:04:16]CAPDU: 80 11 00 00 [12:04:16]Write to MH i2c: E2 08 00 85 13 80 11 00 00 00 00 00 00 12 [12:04:16]Write i2c OK [12:04:16]MH_I2C_Read... [12:04:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 08 8F 47 00 DA 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 Read from MH i2c: 04 E2 04 [12:04:16]00 MH_I2C_Read... [12:04:16]53 Read from MH i2c: 78 E2 03 17 00 00 F4 [12:04:16]03 MH_I2C_Read... [12:04:16]04 *** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:16]00 Read from MH i2c: BD 9C E2 14 17 67 00 B6 85 04 13 01 00 00 11 00 04 2C 10 E0 00 4F 30 2E 30 83 30 75 30 11 30 02 30 30 30 30 30 38 37 31 38 33 39 90 00 69 [12:04:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 [12:04:16]30 CommunicateWithHost err = 0 [12:04:16]38 CheckOFDResponse [12:04:16]37 1017 (14) - 77093643461234 [12:04:16]31 1041 (16) - 0000000000871839 [12:04:16]38 1040 (4) - 227411 [12:04:16]33 1012 (4) - 20.10.2024 06:01 [12:04:16]39 1206 (1) - 0 [12:04:16]90 OFD Sender: Remove packet 227411 [12:04:16]00 ProducePacketName [12:04:16] [12:04:16]name=ofd_packets/00227411 [12:04:16]wFMCommunicate OK [12:04:16]NVStorageDeleteData [12:04:16]requested_item fd.num is exist - process it [12:04:16]SAM_PROTO_GetFieldsCounters [12:04:16]wFMCommunicate request_size=4 [12:04:16]MH_SAM_APDU [12:04:16]CAPDU: 80 13 00 00 [12:04:16]Write to MH i2c: E2 08 00 86 13 80 13 00 00 00 00 00 00 15 [12:04:16]Write i2c OK [12:04:16]MH_I2C_Read... [12:04:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:04:16]Read from MH i2c: E2 [12:04:16]MH_I2C_Read... [12:04:16]Read from MH i2c: E2 62 00 [12:04:16]MH_I2C_Read... [12:04:16]Read from MH i2c: E2 62 00 86 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 53 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 2F [12:04:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 53 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:04:16]wFMCommunicate OK [12:04:16]SAM_PROTO_GetFieldsCounters done [12:04:16]requested_item shift.num is exist - process it [12:04:16]requested_item shift.opened is exist - process it [12:04:16]req_shift_opened [12:04:16]FM_GetShiftState [12:04:16]SAM_PROTO_GetShiftState [12:04:16]wFMCommunicate request_size=4 [12:04:16]MH_SAM_APDU [12:04:16]CAPDU: 80 13 01 00 [12:04:16]Write to MH i2c: E2 08 00 87 13 80 13 01 00 00 00 00 00 17 [12:04:16]Write i2c OK [12:04:16]MH_I2C_Read... [12:04:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:16]Read from MH i2c: E2 [12:04:16]MH_I2C_Read... [12:04:16]Read from MH i2c: E2 0E 00 [12:04:16]MH_I2C_Read... [12:04:16]Read from MH i2c: E2 0E 00 87 13 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 31 [12:04:16]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:04:16]wFMCommunicate OK [12:04:16]SAM_PROTO_GetShiftState done [12:04:16]FM_GetShiftState done [12:04:16]req_shift_opened done [12:04:16]requested_item shift.open_date is exist - process it [12:04:16]req_shift_open_date [12:04:16]req_shift_open_date done [12:04:16]produce_requested_data done [12:04:16]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227411,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [12:04:16]process_action_free close_receipt [12:04:16]json_value_free [12:04:16]json_value_free done [12:04:16]process_json_proto returns [12:04:16]Send response to host [12:04:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227411,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [12:04:16]free response buf [12:04:16]execute_script done [12:04:16]execute_script returns [12:04:16]free content buf [12:04:16]Sock 9.Close socket [12:04:16]Sock 9.Thread stoped [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:42]accept exits with 8 [12:04:42]New connection [12:04:42]New thread 3066543460 created [12:04:42]Thread 3066686820 joined [12:04:42]Waiting for new connection... [12:04:42] Sock 8.Parse request [12:04:42]Sock 8.Check first char [12:04:42]Sock 8.First char is OK [12:04:42]request: POST /json_proto HTTP/1.0 [12:04:42]Method: POST [12:04:42]URL: /json_proto [12:04:42]Method is POST - this is cgi request [12:04:42]url: /json_proto [12:04:42]query_string will be loaded in cgi processing [12:04:42]execute_cgi json_proto POST (null) [12:04:42]execute_cgi path=json_proto method=POST [12:04:42]POST find Content-Length [12:04:42]Host: 172.17.44.195:8080 [12:04:42]Content-Length: 798 [12:04:42]Content-Type: application/json [12:04:42] [12:04:42]POST finish read [12:04:42]Found Content-Length = 798 [12:04:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962930", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4010809", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:42]execute_script... [12:04: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)1962930", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4010809", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:42]POST & json_proto [12:04:42]process_json_proto [12:04:42]json parsed OK: [12:04:42]protocol is kg_v1.0 [12:04:42]action value=close_receipt [12:04:42]process_action close_receipt [12:04:42]cmd_close_receipt [12:04:42]MH_GetDate [12:04:42]Write to MH i2c: F0 00 00 88 13 8A [12:04:42]Write i2c OK [12:04:42]MH_I2C_Read... [12:04:42]Read from MH i2c: F0 [12:04:42]MH_I2C_Read... [12:04:42]Read from MH i2c: F0 09 00 [12:04:42]MH_I2C_Read... [12:04:42]Read from MH i2c: F0 09 00 88 13 00 DB F1 14 67 82 C9 CF 66 5A [12:04:42]GetLastDocTimeStamp 1729425854 [12:04:42]current date 1729425883 [12:04:42]FM_GetShiftState [12:04:42]SAM_PROTO_GetShiftState [12:04:42]wFMCommunicate request_size=4 [12:04:42]MH_SAM_APDU [12:04:42]CAPDU: 80 13 01 00 [12:04:42]Write to MH i2c: E2 08 00 89 13 80 13 01 00 00 00 00 00 19 [12:04:42]Write i2c OK [12:04:42]MH_I2C_Read... [12:04:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:42]Read from MH i2c: E2 [12:04:42]MH_I2C_Read... [12:04:42]Read from MH i2c: E2 0E 00 [12:04:42]MH_I2C_Read... [12:04:42]Read from MH i2c: E2 0E 00 89 13 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 33 [12:04:42]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:04:42]wFMCommunicate OK [12:04:42]SAM_PROTO_GetShiftState done [12:04:42]FM_GetShiftState done [12:04:42]opened in 1729383750 [12:04:42]opened+sec_in_day 1729470150 [12:04:42]quantity*price = 0 [12:04:42]sum+1 = 1 [12:04:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 260 20.10.2024 12:04 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Талоны: Топливные Талоны 4010809 ФМ: 0000000000871839 ФД: 227412 ФПД: 275436599024903 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120443&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227412&fm=275436599024903&tin=02508201610067®Number=0000000000091685&sum=0 [12:04:43]StoreToDocumentArchive [12:04:43]shift 533 fd 227412 [12:04:43]save to /storage/0533/doc_00227412 [12:04:43]save last doc name /storage/0533/doc_00227412 to /storage/kkm_last_doc_name [12:04:43]save OK [12:04:43]Clear old archive folders... [12:04:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:04:43]tlvbuf is 018F4D60 [12:04:43]SAM_PROTO_ClearQueue [12:04:43]wFMCommunicate request_size=4 [12:04:43]MH_SAM_APDU [12:04:43]CAPDU: 80 09 00 00 [12:04:43]Write to MH i2c: E2 08 00 96 13 80 09 00 00 00 00 00 00 1B [12:04:43]Write i2c OK [12:04:43]MH_I2C_Read... [12:04:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:04:43]Read from MH i2c: E2 [12:04:43]MH_I2C_Read... [12:04:43]Read from MH i2c: E2 03 00 [12:04:43]MH_I2C_Read... [12:04:43]Read from MH i2c: E2 03 00 96 13 00 90 00 1D [12:04:43]RAPDU: 90 00 [12:04:43]wFMCommunicate OK [12:04:43]SAM_PROTO_ClearQueue done [12:04:43]KKMCreateOFDPacket [12:04:43]OFDProtocolAddRootSTLVToBuf [12:04:43]FM_MakeSignedData [12:04:43]FM_MakeSignedData [12:04:43]SAM_PROTO_SignData [12:04:43]wFMCommunicate request_size=4 [12:04:43]MH_SAM_APDU [12:04:43]CAPDU: 80 0D 01 02 [12:04:43]Write to MH i2c: E2 08 00 97 13 80 0D 01 02 00 00 00 00 23 [12:04:43]Write i2c OK [12:04:43]MH_I2C_Read... [12:04:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:04:43]Read from MH i2c: E2 [12:04:43]MH_I2C_Read... [12:04:43]Read from MH i2c: E2 03 00 [12:04:43]MH_I2C_Read... [12:04:43]Read from MH i2c: E2 03 00 97 13 00 90 00 1E [12:04:43]RAPDU: 90 00 [12:04:43]wFMCommunicate OK [12:04:43]wFMCommunicate request_size=255 [12:04:43]MH_SAM_APDU [12:04: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 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 04 01 00 00 F4 03 04 00 DB F1 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 54 78 03 00 35 04 06 00 FA 82 14 A4 [12:04:43]Write to MH i2c: E2 02 01 98 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 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 04 01 00 00 F4 03 04 00 DB F1 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 54 78 03 00 35 04 06 00 FA 82 14 A4 00 00 5C [12:04:43]Write i2c OK [12:04:43]MH_I2C_Read... [12:04:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:43]Read from MH i2c: E2 [12:04:43]MH_I2C_Read... [12:04:43]Read from MH i2c: E2 03 00 [12:04:43]MH_I2C_Read... [12:04:43]Read from MH i2c: E2 03 00 98 13 00 90 00 1F [12:04:43]RAPDU: 90 00 [12:04:43]wFMCommunicate OK [12:04:43]wFMCommunicate request_size=7 [12:04:43]MH_SAM_APDU [12:04:43]CAPDU: 80 0D 02 02 02 9D 07 [12:04:43]Write to MH i2c: E2 0A 00 99 13 80 0D 02 02 02 00 9D 07 00 00 CE [12:04:43]Write i2c OK [12:04:43]MH_I2C_Read... [12:04:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:44]Read from MH i2c: E2 [12:04:44]MH_I2C_Read... [12:04:44]Read from MH i2c: E2 03 00 [12:04:44]MH_I2C_Read... [12:04:44]Read from MH i2c: E2 03 00 99 13 00 90 00 20 [12:04:44]RAPDU: 90 00 [12:04:44]wFMCommunicate OK [12:04:44]wFMCommunicate request_size=4 [12:04:44]MH_SAM_APDU [12:04:44]CAPDU: 80 0D 03 02 [12:04:44]Write to MH i2c: E2 08 00 9A 13 80 0D 03 02 00 00 00 00 28 [12:04:44]Write i2c OK [12:04:44]MH_I2C_Read... [12:04:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:04:44]Read from MH i2c: E2 [12:04:44]MH_I2C_Read... [12:04:44]Read from MH i2c: E2 0B 00 [12:04:44]MH_I2C_Read... [12:04:44]Read from MH i2c: E2 0B 00 9A 13 00 BB CC 44 B8 B1 00 43 63 90 00 03 [12:04:44]RAPDU: BB CC 44 B8 B1 00 43 63 90 00 [12:04:44]wFMCommunicate OK [12:04:44]SAM_PROTO_SignData done [12:04:44]FM_MakeSignedData done [12:04:44]CreateOFDProtocolMessage [12:04:44]wFMCommunicate request_size=4 [12:04:44]MH_SAM_APDU [12:04:44]CAPDU: 80 11 00 00 [12:04:44]Write to MH i2c: E2 08 00 9B 13 80 11 00 00 00 00 00 00 28 [12:04:44]Write i2c OK [12:04:44]MH_I2C_Read... [12:04:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:44]Read from MH i2c: E2 [12:04:44]MH_I2C_Read... [12:04:44]Read from MH i2c: E2 17 00 [12:04:44]MH_I2C_Read... [12:04:44]Read from MH i2c: E2 17 00 9B 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 7F [12:04:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:04:44]wFMCommunicate OK [12:04:44]CreateOFDProtocolMessage done [12:04:44]OFDSenderStorePacket 227412 [12:04:44]StoreOFDPacket docnum=227412 [12:04:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 25 D9 04 01 39 3A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 04 01 00 00 F4 03 04 00 DB F1 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 54 78 03 00 35 04 06 00 FA 82 14 A4 9D 07 BB CC 44 B8 B1 00 43 63 [12:04:44]CheckFolder [12:04:44]dirname=/storage/ofd_packets [12:04:44]CheckFolder done [12:04:44]ProducePacketName [12:04:44]name=ofd_packets/00227412 [12:04:44]NVStorageSaveData ofd_packets/00227412 [12:04:44]File name is /storage/ofd_packets/00227412 [12:04:44]Write 298 bytes [12:04:44]NVStorageSaveData done [12:04:44]OFDSenderStorePacket done [12:04:44]KKMCreateOFDPacket done [12:04:44]NVStorageSaveData kkm_last_timestamp [12:04:44]File name is /storage/kkm_last_timestamp [12:04:44]Write 4 bytes [12:04:44]NVStorageSaveData done [12:04:44]ExternCall_PrintAddStr [12:04:44]wPrintStart [12:04:44]Write to MH i2c: 01 00 00 9C 13 AF [12:04:44]OFD Sender: Processing packet 227412 [packets to send 38, broken 37] [12:04:44]ProducePacketName [12:04:44]name=ofd_packets/00227412 [12:04:44]OFD Sender: To server: pG, [12:04:44]CommunicateWithHost lk.salyk.kg:30040 [12:04:44]ConnectInit lk.salyk.kg [12:04:44]Write i2c OK [12:04:44]MH_I2C_Read... [12:04:44]Read from MH i2c: 01 [12:04:44]MH_I2C_Read... [12:04:44]Read from MH i2c: 01 07 00 [12:04:44]MH_I2C_Read... [12:04:44]Read from MH i2c: 01 07 00 9C 13 00 00 00 00 00 FF 0F C4 [12:04:44]RasterBufferAndPrint [12:04:44]line Счет N : (1)1962930 [12:04:44]line ИНН: 02508201610067 [12:04:44]line Контрольно-Кассовый Чек [12:04:44]line ПРОДАЖА [12:04:44]line ТРК (МРК, ГНК) : 61 [12:04:44]line Товар: 2710194210 [12:04:44]line ДТ-К-5 [12:04:44]line 20.000 * 0.00 [12:04:44]line = 0.00 [12:04:44]line НДС 12% НСП 1% [12:04:44]line > о реализуемом товаре [12:04:44]line ИТОГО: 0.00 [12:04:44]line НСП 1% : 0.00 [12:04:44]line НДС 12% : 0.00 [12:04:44]line Наличными: 0.00 [12:04:44]line Безнал.: 0.00 [12:04:44]line Место: АЗС № 133 "Партнер Нефть" [12:04:44]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:04:44]line СНО: Общий режим [12:04:44]line Чек 260 20.10.2024 12:04 [12:04:44]line Смена: 533 ФФД: 1.0 [12:04:44]line ЗНМ: 0300000091 [12:04:44]line РНМ: 0000000000091685 [12:04:44]line Версия ККМ: 001 [12:04:44]line Талоны: Топливные Талоны [12:04:44]line 4010809 [12:04:44]line ФМ: 0000000000871839 [12:04:44]line ФД: 227412 [12:04:44]line ФПД: 275436599024903 [12:04:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120443&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227412&fm=275436599024903&tin=02508201610067®Number=0000000000091685&sum=0 [12:04:44]written 0, free lines is 4095 [12:04:44]Connected sock=10 [12:04: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 33 39 0C 01 00 00 25 D9 04 01 39 3A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 04 01 00 00 F4 03 04 00 DB F1 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 54 78 03 00 35 04 06 00 FA 82 14 A4 9D 07 BB CC 44 B8 B1 00 43 63 [12:04: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 33 39 4F 00 00 00 26 A4 47 00 EE 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 33 39 10 04 04 00 54 78 03 00 F4 03 04 00 DA 9C 14 67 B6 04 01 00 00 72 F5 D3 87 3B E3 1D 8B [12:04:44]CommunicateWithHost err = 0 [12:04:44]CheckOFDResponse [12:04:44]1017 (14) - 77093643461234 [12:04:44]1041 (16) - 0000000000871839 [12:04:44]1040 (4) - 227412 [12:04:44]1012 (4) - 20.10.2024 06:02 [12:04:44]1206 (1) - 0 [12:04:44]OFD Sender: Remove packet 227412 [12:04:44]ProducePacketName [12:04:44]name=ofd_packets/00227412 [12:04:44]NVStorageDeleteData [12:04:44]Write to MH i2c: 01 00 00 C5 13 D8 [12:04:44]Write i2c OK [12:04:44]MH_I2C_Read... [12:04:44]Read from MH i2c: 01 [12:04:44]MH_I2C_Read... [12:04:44]Read from MH i2c: 01 07 00 [12:04:44]MH_I2C_Read... [12:04:44]Read from MH i2c: 01 07 00 C5 13 00 00 00 00 00 2D 0D 19 [12:04:44]RasterBufferAndPrint [12:04:44]line [12:04:44]line [12:04:44]line [12:04:44]line [12:04:44]line [12:04:44]written 0, free lines is 3391 [12:04:44]process_action close_receipt done [12:04:44]requested_data is exist [12:04:44]produce_requested_data [12:04:44]requested_item fm.sn is exist - process it [12:04:44]wFMCommunicate request_size=4 [12:04:44]MH_SAM_APDU [12:04:44]CAPDU: 80 11 00 00 [12:04:44]Write to MH i2c: E2 08 00 CC 13 80 11 00 00 00 00 00 00 59 [12:04:44]Write i2c OK [12:04:44]MH_I2C_Read... [12:04:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:44]Read from MH i2c: E2 [12:04:44]MH_I2C_Read... [12:04:44]Read from MH i2c: E2 17 00 [12:04:44]MH_I2C_Read... [12:04:44]Read from MH i2c: E2 17 00 CC 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B0 [12:04:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:04:44]wFMCommunicate OK [12:04:44]requested_item fd.num is exist - process it [12:04:44]SAM_PROTO_GetFieldsCounters [12:04:44]wFMCommunicate request_size=4 [12:04:44]MH_SAM_APDU [12:04:44]CAPDU: 80 13 00 00 [12:04:44]Write to MH i2c: E2 08 00 CD 13 80 13 00 00 00 00 00 00 5C [12:04:44]Write i2c OK [12:04:44]MH_I2C_Read... [12:04:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:04:44]Read from MH i2c: E2 [12:04:44]MH_I2C_Read... [12:04:44]Read from MH i2c: E2 62 00 [12:04:44]MH_I2C_Read... [12:04:44]Read from MH i2c: E2 62 00 CD 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 54 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 7A [12:04:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 54 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:04:44]wFMCommunicate OK [12:04:44]SAM_PROTO_GetFieldsCounters done [12:04:44]requested_item shift.num is exist - process it [12:04:44]requested_item shift.opened is exist - process it [12:04:44]req_shift_opened [12:04:44]FM_GetShiftState [12:04:44]SAM_PROTO_GetShiftState [12:04:44]wFMCommunicate request_size=4 [12:04:44]MH_SAM_APDU [12:04:44]CAPDU: 80 13 01 00 [12:04:44]Write to MH i2c: E2 08 00 CE 13 80 13 01 00 00 00 00 00 5E [12:04:44]Write i2c OK [12:04:44]MH_I2C_Read... [12:04:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:44]Read from MH i2c: E2 [12:04:44]MH_I2C_Read... [12:04:44]Read from MH i2c: E2 0E 00 [12:04:44]MH_I2C_Read... [12:04:44]Read from MH i2c: E2 0E 00 CE 13 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 78 [12:04:44]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:04:44]wFMCommunicate OK [12:04:44]SAM_PROTO_GetShiftState done [12:04:44]FM_GetShiftState done [12:04:45]req_shift_opened done [12:04:45]requested_item shift.open_date is exist - process it [12:04:45]req_shift_open_date [12:04:45]req_shift_open_date done [12:04:45]produce_requested_data done [12:04:45]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227412,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [12:04:45]process_action_free close_receipt [12:04:45]json_value_free [12:04:45]json_value_free done [12:04:45]process_json_proto returns [12:04:45]Send response to host [12:04:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227412,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [12:04:45]free response buf [12:04:45]execute_script done [12:04:45]execute_script returns [12:04:45]free content buf [12:04:45]Sock 8.Close socket [12:04:45]Sock 8.Thread stoped [12:04:45]OFD Sender: No OFD packet to send [12:04:50]OFD Sender: No OFD packet to send [12:04:55]OFD Sender: No OFD packet to send [12:05:00]OFD Sender: No OFD packet to send [12:05:05]OFD Sender: No OFD packet to send [12:05:10]OFD Sender: No OFD packet to send [12:05:15]OFD Sender: No OFD packet to send [12:05:20]OFD Sender: No OFD packet to send [12:05:25]OFD Sender: No OFD packet to send [12:05:30]OFD Sender: No OFD packet to send [12:05:35]OFD Sender: No OFD packet to send [12:05:40]OFD Sender: No OFD packet to send [12:05:45]OFD Sender: No OFD packet to send [12:05:50]OFD Sender: No OFD packet to send [12:05:55]OFD Sender: No OFD packet to send [12:06:00]OFD Sender: No OFD packet to send [12:06:05]OFD Sender: No OFD packet to send [12:06:10]OFD Sender: No OFD packet to send [12:06:15]OFD Sender: No OFD packet to send [12:06:20]OFD Sender: No OFD packet to send [12:06:21]accept exits with 9 [12:06:21]New connection [12:06:21]New thread 3066686820 created [12:06:21]Thread 3066543460 joined [12:06:21]Waiting for new connection... [12:06:21] Sock 9.Parse request [12:06:21]Sock 9.Check first char [12:06:21]Sock 9.First char is OK [12:06:21]request: POST /json_proto HTTP/1.0 [12:06:21]Method: POST [12:06:21]URL: /json_proto [12:06:21]Method is POST - this is cgi request [12:06:21]url: /json_proto [12:06:21]query_string will be loaded in cgi processing [12:06:21]execute_cgi json_proto POST (null) [12:06:21]execute_cgi path=json_proto method=POST [12:06:21]POST find Content-Length [12:06:21]Host: 172.17.44.195:8080 [12:06:21]Content-Length: 680 [12:06:21]Content-Type: application/json [12:06:21] [12:06:21]POST finish read [12:06:21]Found Content-Length = 680 [12:06:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962932", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:06:21]execute_script... [12: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)1962932", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:06:21]POST & json_proto [12:06:21]process_json_proto [12:06:21]json parsed OK: [12:06:21]protocol is kg_v1.0 [12:06:21]action value=close_receipt [12:06:21]process_action close_receipt [12:06:21]cmd_close_receipt [12:06:21]MH_GetDate [12:06:21]Write to MH i2c: F0 00 00 CF 13 D1 [12:06:21]Write i2c OK [12:06:21]MH_I2C_Read... [12:06:21]Read from MH i2c: F0 [12:06:21]MH_I2C_Read... [12:06:21]Read from MH i2c: F0 09 00 [12:06:21]MH_I2C_Read... [12:06:21]Read from MH i2c: F0 09 00 CF 13 00 3E F2 14 67 82 C9 CF 66 05 [12:06:21]GetLastDocTimeStamp 1729425883 [12:06:21]current date 1729425982 [12:06:21]FM_GetShiftState [12:06:21]SAM_PROTO_GetShiftState [12:06:21]wFMCommunicate request_size=4 [12:06:21]MH_SAM_APDU [12:06:21]CAPDU: 80 13 01 00 [12:06:21]Write to MH i2c: E2 08 00 D0 13 80 13 01 00 00 00 00 00 60 [12:06:21]Write i2c OK [12:06:21]MH_I2C_Read... [12:06:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:21]Read from MH i2c: E2 [12:06:21]MH_I2C_Read... [12:06:21]Read from MH i2c: E2 0E 00 [12:06:21]MH_I2C_Read... [12:06:21]Read from MH i2c: E2 0E 00 D0 13 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 7A [12:06:21]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:06:21]wFMCommunicate OK [12:06:21]SAM_PROTO_GetShiftState done [12:06:21]FM_GetShiftState done [12:06:21]opened in 1729383750 [12:06:21]opened+sec_in_day 1729470150 [12:06:21]quantity*price = 100050 [12:06:21]sum+1 = 100052 [12:06:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 261 20.10.2024 12:06 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227413 ФПД: 235557723334739 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120622&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227413&fm=235557723334739&tin=02508201610067®Number=0000000000091685&sum=100000 [12:06:22]StoreToDocumentArchive [12:06:22]shift 533 fd 227413 [12:06:22]save to /storage/0533/doc_00227413 [12:06:22]save last doc name /storage/0533/doc_00227413 to /storage/kkm_last_doc_name [12:06:22]save OK [12:06:22]Clear old archive folders... [12:06:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:06:22]tlvbuf is 0188CE30 [12:06:22]SAM_PROTO_ClearQueue [12:06:22]wFMCommunicate request_size=4 [12:06:22]MH_SAM_APDU [12:06:22]CAPDU: 80 09 00 00 [12:06:22]Write to MH i2c: E2 08 00 DD 13 80 09 00 00 00 00 00 00 62 [12:06:22]Write i2c OK [12:06:22]MH_I2C_Read... [12:06:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:06:22]Read from MH i2c: E2 [12:06:22]MH_I2C_Read... [12:06:22]Read from MH i2c: E2 03 00 [12:06:22]MH_I2C_Read... [12:06:22]Read from MH i2c: E2 03 00 DD 13 00 90 00 64 [12:06:22]RAPDU: 90 00 [12:06:22]wFMCommunicate OK [12:06:22]SAM_PROTO_ClearQueue done [12:06:22]KKMCreateOFDPacket [12:06:22]OFDProtocolAddRootSTLVToBuf [12:06:22]FM_MakeSignedData [12:06:22]FM_MakeSignedData [12:06:22]SAM_PROTO_SignData [12:06:22]wFMCommunicate request_size=4 [12:06:22]MH_SAM_APDU [12:06:22]CAPDU: 80 0D 01 02 [12:06:22]Write to MH i2c: E2 08 00 DE 13 80 0D 01 02 00 00 00 00 6A [12:06:22]Write i2c OK [12:06:22]MH_I2C_Read... [12:06:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:06:22]Read from MH i2c: E2 [12:06:22]MH_I2C_Read... [12:06:22]Read from MH i2c: E2 03 00 [12:06:22]MH_I2C_Read... [12:06:22]Read from MH i2c: E2 03 00 DE 13 00 90 00 65 [12:06:22]RAPDU: 90 00 [12:06:22]wFMCommunicate OK [12:06:22]wFMCommunicate request_size=255 [12:06:22]MH_SAM_APDU [12:06: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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 3E F2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 55 78 03 00 35 04 06 00 D6 3D 0E 6C [12:06:22]Write to MH i2c: E2 02 01 DF 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 3E F2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 55 78 03 00 35 04 06 00 D6 3D 0E 6C 00 00 1C [12:06:22]Write i2c OK [12:06:22]MH_I2C_Read... [12:06:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:22]Read from MH i2c: E2 [12:06:22]MH_I2C_Read... [12:06:22]Read from MH i2c: E2 03 00 [12:06:22]MH_I2C_Read... [12:06:22]Read from MH i2c: E2 03 00 DF 13 00 90 00 66 [12:06:22]RAPDU: 90 00 [12:06:22]wFMCommunicate OK [12:06:22]wFMCommunicate request_size=7 [12:06:22]MH_SAM_APDU [12:06:22]CAPDU: 80 0D 02 02 02 68 53 [12:06:22]Write to MH i2c: E2 0A 00 E0 13 80 0D 02 02 02 00 68 53 00 00 2C [12:06:22]Write i2c OK [12:06:22]MH_I2C_Read... [12:06:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:22]Read from MH i2c: E2 [12:06:22]MH_I2C_Read... [12:06:22]Read from MH i2c: E2 03 00 [12:06:22]MH_I2C_Read... [12:06:22]Read from MH i2c: E2 03 00 E0 13 00 90 00 67 [12:06:22]RAPDU: 90 00 [12:06:22]wFMCommunicate OK [12:06:22]wFMCommunicate request_size=4 [12:06:22]MH_SAM_APDU [12:06:22]CAPDU: 80 0D 03 02 [12:06:22]Write to MH i2c: E2 08 00 E1 13 80 0D 03 02 00 00 00 00 6F [12:06:22]Write i2c OK [12:06:22]MH_I2C_Read... [12:06:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:06:22]Read from MH i2c: E2 [12:06:22]MH_I2C_Read... [12:06:22]Read from MH i2c: E2 0B 00 [12:06:22]MH_I2C_Read... [12:06:22]Read from MH i2c: E2 0B 00 E1 13 00 ED 13 EE 43 EB A5 16 2B 90 00 72 [12:06:22]RAPDU: ED 13 EE 43 EB A5 16 2B 90 00 [12:06:22]wFMCommunicate OK [12:06:22]SAM_PROTO_SignData done [12:06:22]FM_MakeSignedData done [12:06:22]CreateOFDProtocolMessage [12:06:22]wFMCommunicate request_size=4 [12:06:22]MH_SAM_APDU [12:06:22]CAPDU: 80 11 00 00 [12:06:22]Write to MH i2c: E2 08 00 E2 13 80 11 00 00 00 00 00 00 6F [12:06:22]Write i2c OK [12:06:22]MH_I2C_Read... [12:06:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:22]Read from MH i2c: E2 [12:06:22]MH_I2C_Read... [12:06:22]Read from MH i2c: E2 17 00 [12:06:22]MH_I2C_Read... [12:06:22]Read from MH i2c: E2 17 00 E2 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C6 [12:06:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:06:22]wFMCommunicate OK [12:06:22]CreateOFDProtocolMessage done [12:06:22]OFDSenderStorePacket 227413 [12:06:22]StoreOFDPacket docnum=227413 [12:06:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 FA AF 04 01 F5 9F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 3E F2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 55 78 03 00 35 04 06 00 D6 3D 0E 6C 68 53 ED 13 EE 43 EB A5 16 2B [12:06:22]CheckFolder [12:06:22]dirname=/storage/ofd_packets [12:06:22]CheckFolder done [12:06:22]ProducePacketName [12:06:22]name=ofd_packets/00227413 [12:06:22]NVStorageSaveData ofd_packets/00227413 [12:06:22]File name is /storage/ofd_packets/00227413 [12:06:22]Write 298 bytes [12:06:22]NVStorageSaveData done [12:06:22]OFDSenderStorePacket done [12:06:22]KKMCreateOFDPacket done [12:06:22]NVStorageSaveData kkm_last_timestamp [12:06:22]File name is /storage/kkm_last_timestamp [12:06:22]Write 4 bytes [12:06:22]NVStorageSaveData done [12:06:22]ExternCall_PrintAddStr [12:06:22]wPrintStart [12:06:22]Write to MH i2c: 01 00 00 E3 13 F6 [12:06:22]Write i2c OK [12:06:22]MH_I2C_Read... [12:06:22]Read from MH i2c: 01 [12:06:22]MH_I2C_Read... [12:06:22]Read from MH i2c: 01 07 00 [12:06:22]MH_I2C_Read... [12:06:22]Read from MH i2c: 01 07 00 E3 13 00 00 00 00 00 FF 0F 0B [12:06:22]RasterBufferAndPrint [12:06:22]line Счет N : (1)1962932 [12:06:22]line ИНН: 02508201610067 [12:06:22]line Контрольно-Кассовый Чек [12:06:22]line ПРОДАЖА [12:06:22]line ТРК (МРК, ГНК) : 41 [12:06:22]line Товар: 2710194210 [12:06:22]line ДТ-К-5 [12:06:22]line 13.130 * 76.20 [12:06:22]line = 1000.51 [12:06:22]line НДС 12% НСП 1% [12:06:22]line > о реализуемом товаре [12:06:22]line ОКРУГЛЕНИЕ: -0.51 [12:06:22]line ИТОГО: 1000.00 [12:06:22]line Внесено: 1000.00 [12:06:22]line СДАЧА: 0.00 [12:06:22]line НСП 1% : 8.85 [12:06:22]line НДС 12% : 106.25 [12:06:22]line Наличными: 1000.00 [12:06:22]line Безнал.: 0.00 [12:06:22]line Место: АЗС № 133 "Партнер Нефть" [12:06:22]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:06:22]line СНО: Общий режим [12:06:22]line Чек 261 20.10.2024 12:06 [12:06:22]line Смена: 533 ФФД: 1.0 [12:06:22]line ЗНМ: 0300000091 [12:06:22]line РНМ: 0000000000091685 [12:06:22]line Версия ККМ: 001 [12:06:22]line ФМ: 0000000000871839 [12:06:22]line ФД: 227413 [12:06:22]line ФПД: 235557723334739 [12:06:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120622&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227413&fm=235557723334739&tin=02508201610067®Number=0000000000091685&sum=100000 [12:06:22]written 0, free lines is 4095 [12:06:22]OFD Sender: Processing packet 227413 [packets to send 38, broken 37] [12:06:22]ProducePacketName [12:06:22]name=ofd_packets/00227413 [12:06:22]OFD Sender: To server: pG, [12:06:22]CommunicateWithHost lk.salyk.kg:30040 [12:06:22]ConnectInit lk.salyk.kg [12:06:23]Connected sock=10 [12: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 33 39 0C 01 00 00 FA AF 04 01 F5 9F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 3E F2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 55 78 03 00 35 04 06 00 D6 3D 0E 6C 68 53 ED 13 EE 43 EB A5 16 2B [12: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 33 39 4F 00 00 00 72 AC 47 00 90 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 33 39 10 04 04 00 55 78 03 00 F4 03 04 00 3C 9D 14 67 B6 04 01 00 00 F2 D8 8A 30 E4 2D E6 4A [12:06:23]CommunicateWithHost err = 0 [12:06:23]CheckOFDResponse [12:06:23]1017 (14) - 77093643461234 [12:06:23]1041 (16) - 0000000000871839 [12:06:23]1040 (4) - 227413 [12:06:23]1012 (4) - 20.10.2024 06:03 [12:06:23]1206 (1) - 0 [12:06:23]OFD Sender: Remove packet 227413 [12:06:23]ProducePacketName [12:06:23]name=ofd_packets/00227413 [12:06:23]NVStorageDeleteData [12:06:23]Write to MH i2c: 01 00 00 0D 14 21 [12:06:23]Write i2c OK [12:06:23]MH_I2C_Read... [12:06:23]Read from MH i2c: 01 [12:06:23]MH_I2C_Read... [12:06:23]Read from MH i2c: 01 07 00 [12:06:23]MH_I2C_Read... [12:06:23]Read from MH i2c: 01 07 00 0D 14 00 00 00 00 00 0A 0D 3F [12:06:23]RasterBufferAndPrint [12:06:23]line [12:06:23]line [12:06:23]line [12:06:23]line [12:06:23]line [12:06:23]written 0, free lines is 3344 [12:06:23]process_action close_receipt done [12:06:23]requested_data is exist [12:06:23]produce_requested_data [12:06:23]requested_item fm.sn is exist - process it [12:06:23]wFMCommunicate request_size=4 [12:06:23]MH_SAM_APDU [12:06:23]CAPDU: 80 11 00 00 [12:06:23]Write to MH i2c: E2 08 00 14 14 80 11 00 00 00 00 00 00 A2 [12:06:23]Write i2c OK [12:06:23]MH_I2C_Read... [12:06:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:23]Read from MH i2c: E2 [12:06:23]MH_I2C_Read... [12:06:23]Read from MH i2c: E2 17 00 [12:06:23]MH_I2C_Read... [12:06:23]Read from MH i2c: E2 17 00 14 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F9 [12:06:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:06:23]wFMCommunicate OK [12:06:23]requested_item fd.num is exist - process it [12:06:23]SAM_PROTO_GetFieldsCounters [12:06:23]wFMCommunicate request_size=4 [12:06:23]MH_SAM_APDU [12:06:23]CAPDU: 80 13 00 00 [12:06:23]Write to MH i2c: E2 08 00 15 14 80 13 00 00 00 00 00 00 A5 [12:06:23]Write i2c OK [12:06:23]MH_I2C_Read... [12:06:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:06:23]Read from MH i2c: E2 [12:06:23]MH_I2C_Read... [12:06:23]Read from MH i2c: E2 62 00 [12:06:23]MH_I2C_Read... [12:06:23]Read from MH i2c: E2 62 00 15 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 55 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 C7 [12:06: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 55 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:06:23]wFMCommunicate OK [12:06:23]SAM_PROTO_GetFieldsCounters done [12:06:23]requested_item shift.num is exist - process it [12:06:23]requested_item shift.opened is exist - process it [12:06:23]req_shift_opened [12:06:23]FM_GetShiftState [12:06:23]SAM_PROTO_GetShiftState [12:06:23]wFMCommunicate request_size=4 [12:06:23]MH_SAM_APDU [12:06:23]CAPDU: 80 13 01 00 [12:06:23]Write to MH i2c: E2 08 00 16 14 80 13 01 00 00 00 00 00 A7 [12:06:23]Write i2c OK [12:06:23]MH_I2C_Read... [12:06:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:23]Read from MH i2c: E2 [12:06:23]MH_I2C_Read... [12:06:23]Read from MH i2c: E2 0E 00 [12:06:23]MH_I2C_Read... [12:06:23]Read from MH i2c: E2 0E 00 16 14 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 C1 [12:06:23]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:06:23]wFMCommunicate OK [12:06:23]SAM_PROTO_GetShiftState done [12:06:23]FM_GetShiftState done [12:06:23]req_shift_opened done [12:06:23]requested_item shift.open_date is exist - process it [12:06:23]req_shift_open_date [12:06:23]req_shift_open_date done [12:06:23]produce_requested_data done [12:06:23]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227413,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [12:06:23]process_action_free close_receipt [12:06:23]json_value_free [12:06:23]json_value_free done [12:06:23]process_json_proto returns [12:06:23]Send response to host [12:06:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227413,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [12:06:23]free response buf [12:06:23]execute_script done [12:06:23]execute_script returns [12:06:23]free content buf [12:06:23]Sock 9.Close socket [12:06:23]Sock 9.Thread stoped [12:06:23]OFD Sender: No OFD packet to send [12:06:28]OFD Sender: No OFD packet to send [12:06:33]OFD Sender: No OFD packet to send [12:06:38]OFD Sender: No OFD packet to send [12:06:43]OFD Sender: No OFD packet to send [12:06:48]OFD Sender: No OFD packet to send [12:06:49]accept exits with 8 [12:06:49]New connection [12:06:49]New thread 3066543460 created [12:06:49]Thread 3066686820 joined [12:06:49]Waiting for new connection... [12:06:49] Sock 8.Parse request [12:06:49]Sock 8.Check first char [12:06:49]Sock 8.First char is OK [12:06:49]request: POST /json_proto HTTP/1.0 [12:06:49]Method: POST [12:06:49]URL: /json_proto [12:06:49]Method is POST - this is cgi request [12:06:49]url: /json_proto [12:06:49]query_string will be loaded in cgi processing [12:06:49]execute_cgi json_proto POST (null) [12:06:49]execute_cgi path=json_proto method=POST [12:06:49]POST find Content-Length [12:06:49]Host: 172.17.44.195:8080 [12:06:49]Content-Length: 979 [12:06:49]Content-Type: application/json [12:06:49] [12:06:49]POST finish read [12:06:49]Found Content-Length = 979 [12:06:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962931", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 66.490, "sum" : 5000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 133\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 66.49 \u0441\u043E\u043C", "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:06:49]execute_script... [12:06: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)1962931", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 66.490, "sum" : 5000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 133\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 66.49 \u0441\u043E\u043C", "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:06:49]POST & json_proto [12:06:49]process_json_proto [12:06:49]json parsed OK: [12:06:49]protocol is kg_v1.0 [12:06:49]action value=close_receipt [12:06:49]process_action close_receipt [12:06:49]cmd_close_receipt [12:06:49]MH_GetDate [12:06:49]Write to MH i2c: F0 00 00 17 14 1A [12:06:49]Write i2c OK [12:06:49]MH_I2C_Read... [12:06:49]Read from MH i2c: F0 [12:06:49]MH_I2C_Read... [12:06:49]Read from MH i2c: F0 09 00 [12:06:49]MH_I2C_Read... [12:06:49]Read from MH i2c: F0 09 00 17 14 00 5A F2 14 67 82 C9 CF 66 6A [12:06:49]GetLastDocTimeStamp 1729425982 [12:06:49]current date 1729426010 [12:06:49]FM_GetShiftState [12:06:49]SAM_PROTO_GetShiftState [12:06:49]wFMCommunicate request_size=4 [12:06:49]MH_SAM_APDU [12:06:49]CAPDU: 80 13 01 00 [12:06:49]Write to MH i2c: E2 08 00 18 14 80 13 01 00 00 00 00 00 A9 [12:06:49]Write i2c OK [12:06:49]MH_I2C_Read... [12:06:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:49]Read from MH i2c: E2 [12:06:49]MH_I2C_Read... [12:06:49]Read from MH i2c: E2 0E 00 [12:06:49]MH_I2C_Read... [12:06:49]Read from MH i2c: E2 0E 00 18 14 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 C3 [12:06:49]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:06:49]wFMCommunicate OK [12:06:49]SAM_PROTO_GetShiftState done [12:06:49]FM_GetShiftState done [12:06:49]opened in 1729383750 [12:06:49]opened+sec_in_day 1729470150 [12:06:49]quantity*price = 500004 [12:06:49]sum+1 = 500006 [12:06:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 530.98 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 262 20.10.2024 12:06 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Дисконтная программа ДТ номер 133 сэкономлено 66.49 сом ФМ: 0000000000871839 ФД: 227414 ФПД: 281239683429874 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120650&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227414&fm=281239683429874&tin=02508201610067®Number=0000000000091685&sum=500000 [12:06:50]StoreToDocumentArchive [12:06:50]shift 533 fd 227414 [12:06:50]save to /storage/0533/doc_00227414 [12:06:50]save last doc name /storage/0533/doc_00227414 to /storage/kkm_last_doc_name [12:06:50]save OK [12:06:50]Clear old archive folders... [12:06:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:06:50]tlvbuf is 0184A800 [12:06:50]SAM_PROTO_ClearQueue [12:06:50]wFMCommunicate request_size=4 [12:06:50]MH_SAM_APDU [12:06:50]CAPDU: 80 09 00 00 [12:06:50]Write to MH i2c: E2 08 00 25 14 80 09 00 00 00 00 00 00 AB [12:06:50]Write i2c OK [12:06:50]MH_I2C_Read... [12:06:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:06:50]Read from MH i2c: E2 [12:06:50]MH_I2C_Read... [12:06:50]Read from MH i2c: E2 03 00 [12:06:50]MH_I2C_Read... [12:06:50]Read from MH i2c: E2 03 00 25 14 00 90 00 AD [12:06:50]RAPDU: 90 00 [12:06:50]wFMCommunicate OK [12:06:50]SAM_PROTO_ClearQueue done [12:06:50]KKMCreateOFDPacket [12:06:50]OFDProtocolAddRootSTLVToBuf [12:06:50]FM_MakeSignedData [12:06:50]FM_MakeSignedData [12:06:50]SAM_PROTO_SignData [12:06:50]wFMCommunicate request_size=4 [12:06:50]MH_SAM_APDU [12:06:50]CAPDU: 80 0D 01 02 [12:06:50]Write to MH i2c: E2 08 00 26 14 80 0D 01 02 00 00 00 00 B3 [12:06:50]Write i2c OK [12:06:50]MH_I2C_Read... [12:06:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:06:50]Read from MH i2c: E2 [12:06:50]MH_I2C_Read... [12:06:50]Read from MH i2c: E2 03 00 [12:06:50]MH_I2C_Read... [12:06:50]Read from MH i2c: E2 03 00 26 14 00 90 00 AE [12:06:50]RAPDU: 90 00 [12:06:50]wFMCommunicate OK [12:06:50]wFMCommunicate request_size=255 [12:06:50]MH_SAM_APDU [12:06:50]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 5A F2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 56 78 03 00 35 04 06 00 FF C9 37 6D [12:06:50]Write to MH i2c: E2 02 01 27 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 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 5A F2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 56 78 03 00 35 04 06 00 FF C9 37 6D 00 00 65 [12:06:50]Write i2c OK [12:06:50]MH_I2C_Read... [12:06:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:51]Read from MH i2c: E2 [12:06:51]MH_I2C_Read... [12:06:51]Read from MH i2c: E2 03 00 [12:06:51]MH_I2C_Read... [12:06:51]Read from MH i2c: E2 03 00 27 14 00 90 00 AF [12:06:51]RAPDU: 90 00 [12:06:51]wFMCommunicate OK [12:06:51]wFMCommunicate request_size=7 [12:06:51]MH_SAM_APDU [12:06:51]CAPDU: 80 0D 02 02 02 75 F2 [12:06:51]Write to MH i2c: E2 0A 00 28 14 80 0D 02 02 02 00 75 F2 00 00 21 [12:06:51]Write i2c OK [12:06:51]MH_I2C_Read... [12:06:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:51]Read from MH i2c: E2 [12:06:51]MH_I2C_Read... [12:06:51]Read from MH i2c: E2 03 00 [12:06:51]MH_I2C_Read... [12:06:51]Read from MH i2c: E2 03 00 28 14 00 90 00 B0 [12:06:51]RAPDU: 90 00 [12:06:51]wFMCommunicate OK [12:06:51]wFMCommunicate request_size=4 [12:06:51]MH_SAM_APDU [12:06:51]CAPDU: 80 0D 03 02 [12:06:51]Write to MH i2c: E2 08 00 29 14 80 0D 03 02 00 00 00 00 B8 [12:06:51]Write i2c OK [12:06:51]MH_I2C_Read... [12:06:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:06:51]Read from MH i2c: E2 [12:06:51]MH_I2C_Read... [12:06:51]Read from MH i2c: E2 0B 00 [12:06:51]MH_I2C_Read... [12:06:51]Read from MH i2c: E2 0B 00 29 14 00 64 09 B3 CA B0 30 8E 0B 90 00 1C [12:06:51]RAPDU: 64 09 B3 CA B0 30 8E 0B 90 00 [12:06:51]wFMCommunicate OK [12:06:51]SAM_PROTO_SignData done [12:06:51]FM_MakeSignedData done [12:06:51]CreateOFDProtocolMessage [12:06:51]wFMCommunicate request_size=4 [12:06:51]MH_SAM_APDU [12:06:51]CAPDU: 80 11 00 00 [12:06:51]Write to MH i2c: E2 08 00 2A 14 80 11 00 00 00 00 00 00 B8 [12:06:51]Write i2c OK [12:06:51]MH_I2C_Read... [12:06:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:51]Read from MH i2c: E2 [12:06:51]MH_I2C_Read... [12:06:51]Read from MH i2c: E2 17 00 [12:06:51]MH_I2C_Read... [12:06:51]Read from MH i2c: E2 17 00 2A 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 0F [12:06:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:06:51]wFMCommunicate OK [12:06:51]CreateOFDProtocolMessage done [12:06:51]OFDSenderStorePacket 227414 [12:06:51]StoreOFDPacket docnum=227414 [12:06:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 92 D6 04 01 CC 26 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 5A F2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 56 78 03 00 35 04 06 00 FF C9 37 6D 75 F2 64 09 B3 CA B0 30 8E 0B [12:06:51]CheckFolder [12:06:51]dirname=/storage/ofd_packets [12:06:51]CheckFolder done [12:06:51]ProducePacketName [12:06:51]name=ofd_packets/00227414 [12:06:51]NVStorageSaveData ofd_packets/00227414 [12:06:51]File name is /storage/ofd_packets/00227414 [12:06:51]Write 298 bytes [12:06:51]NVStorageSaveData done [12:06:51]OFDSenderStorePacket done [12:06:51]KKMCreateOFDPacket done [12:06:51]NVStorageSaveData kkm_last_timestamp [12:06:51]File name is /storage/kkm_last_timestamp [12:06:51]Write 4 bytes [12:06:51]NVStorageSaveData done [12:06:51]ExternCall_PrintAddStr [12:06:51]wPrintStart [12:06:51]Write to MH i2c: 01 00 00 2B 14 3F [12:06:51]Write i2c OK [12:06:51]MH_I2C_Read... [12:06:51]Read from MH i2c: 01 [12:06:51]MH_I2C_Read... [12:06:51]Read from MH i2c: 01 07 00 [12:06:51]MH_I2C_Read... [12:06:51]Read from MH i2c: 01 07 00 2B 14 00 00 00 00 00 FF 0F 54 [12:06:51]RasterBufferAndPrint [12:06:51]line Счет N : (1)1962931 [12:06:51]line ИНН: 02508201610067 [12:06:51]line Контрольно-Кассовый Чек [12:06:51]line ПРОДАЖА [12:06:51]line ТРК (МРК, ГНК) : 11 [12:06:51]line Товар: 2710194210 [12:06:51]line ДТ-К-5 [12:06:51]line 66.490 * 75.20 [12:06:51]line = 5000.05 [12:06:51]line НДС 12% НСП 1% [12:06:51]line > о реализуемом товаре [12:06:51]line ОКРУГЛЕНИЕ: -0.05 [12:06:51]line ИТОГО: 5000.00 [12:06:51]line Внесено: 5000.00 [12:06:51]line СДАЧА: 0.00 [12:06:51]line НСП 1% : 44.25 [12:06:51]line НДС 12% : 530.98 [12:06:51]line Наличными: 5000.00 [12:06:51]line Безнал.: 0.00 [12:06:51]line Место: АЗС № 133 "Партнер Нефть" [12:06:51]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:06:51]line СНО: Общий режим [12:06:51]line Чек 262 20.10.2024 12:06 [12:06:51]line Смена: 533 ФФД: 1.0 [12:06:51]line ЗНМ: 0300000091 [12:06:51]line РНМ: 0000000000091685 [12:06:51]line Версия ККМ: 001 [12:06:51]line [12:06:51]line Дисконтная программа [12:06:51]line ДТ [12:06:51]line номер 133 [12:06:51]line сэкономлено 66.49 сом [12:06:51]line ФМ: 0000000000871839 [12:06:51]line ФД: 227414 [12:06:51]line ФПД: 281239683429874 [12:06:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120650&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227414&fm=281239683429874&tin=02508201610067®Number=0000000000091685&sum=500000 [12:06:51]OFD Sender: Processing packet 227414 [packets to send 38, broken 37] [12:06:51]ProducePacketName [12:06:51]name=ofd_packets/00227414 [12:06:51]OFD Sender: To server: pG, [12:06:51]CommunicateWithHost lk.salyk.kg:30040 [12:06:51]ConnectInit lk.salyk.kg [12:06:51]written 0, free lines is 4095 [12:06:51]Connected sock=10 [12:06: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 33 39 0C 01 00 00 92 D6 04 01 CC 26 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 5A F2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 56 78 03 00 35 04 06 00 FF C9 37 6D 75 F2 64 09 B3 CA B0 30 8E 0B [12:06: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 33 39 4F 00 00 00 60 12 47 00 35 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 56 78 03 00 F4 03 04 00 59 9D 14 67 B6 04 01 00 00 C1 42 5B C7 56 4C EA 07 [12:06:51]CommunicateWithHost err = 0 [12:06:51]CheckOFDResponse [12:06:51]1017 (14) - 77093643461234 [12:06:51]1041 (16) - 0000000000871839 [12:06:51]1040 (4) - 227414 [12:06:51]1012 (4) - 20.10.2024 06:04 [12:06:51]1206 (1) - 0 [12:06:51]OFD Sender: Remove packet 227414 [12:06:51]ProducePacketName [12:06:51]name=ofd_packets/00227414 [12:06:51]NVStorageDeleteData [12:06:52]Write to MH i2c: 01 00 00 5A 14 6E [12:06:52]Write i2c OK [12:06:52]MH_I2C_Read... [12:06:52]Read from MH i2c: 01 [12:06:52]MH_I2C_Read... [12:06:52]Read from MH i2c: 01 07 00 [12:06:52]MH_I2C_Read... [12:06:52]Read from MH i2c: 01 07 00 5A 14 00 00 00 00 00 C2 0C 43 [12:06:52]RasterBufferAndPrint [12:06:52]line [12:06:52]line [12:06:52]line [12:06:52]line [12:06:52]line [12:06:52]written 0, free lines is 3275 [12:06:52]process_action close_receipt done [12:06:52]requested_data is exist [12:06:52]produce_requested_data [12:06:52]requested_item fm.sn is exist - process it [12:06:52]wFMCommunicate request_size=4 [12:06:52]MH_SAM_APDU [12:06:52]CAPDU: 80 11 00 00 [12:06:52]Write to MH i2c: E2 08 00 61 14 80 11 00 00 00 00 00 00 EF [12:06:52]Write i2c OK [12:06:52]MH_I2C_Read... [12:06:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:52]Read from MH i2c: E2 [12:06:52]MH_I2C_Read... [12:06:52]Read from MH i2c: E2 17 00 [12:06:52]MH_I2C_Read... [12:06:52]Read from MH i2c: E2 17 00 61 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 46 [12:06:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:06:52]wFMCommunicate OK [12:06:52]requested_item fd.num is exist - process it [12:06:52]SAM_PROTO_GetFieldsCounters [12:06:52]wFMCommunicate request_size=4 [12:06:52]MH_SAM_APDU [12:06:52]CAPDU: 80 13 00 00 [12:06:52]Write to MH i2c: E2 08 00 62 14 80 13 00 00 00 00 00 00 F2 [12:06:52]Write i2c OK [12:06:52]MH_I2C_Read... [12:06:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:06:52]Read from MH i2c: E2 [12:06:52]MH_I2C_Read... [12:06:52]Read from MH i2c: E2 62 00 [12:06:52]MH_I2C_Read... [12:06:52]Read from MH i2c: E2 62 00 62 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 56 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 18 [12:06:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 56 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:06:52]wFMCommunicate OK [12:06:52]SAM_PROTO_GetFieldsCounters done [12:06:52]requested_item shift.num is exist - process it [12:06:52]requested_item shift.opened is exist - process it [12:06:52]req_shift_opened [12:06:52]FM_GetShiftState [12:06:52]SAM_PROTO_GetShiftState [12:06:52]wFMCommunicate request_size=4 [12:06:52]MH_SAM_APDU [12:06:52]CAPDU: 80 13 01 00 [12:06:52]Write to MH i2c: E2 08 00 63 14 80 13 01 00 00 00 00 00 F4 [12:06:52]Write i2c OK [12:06:52]MH_I2C_Read... [12:06:52]OFD Sender: No OFD packet to send [12:06:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:52]Read from MH i2c: E2 [12:06:52]MH_I2C_Read... [12:06:52]Read from MH i2c: E2 0E 00 [12:06:52]MH_I2C_Read... [12:06:52]Read from MH i2c: E2 0E 00 63 14 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 0E [12:06:52]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:06:52]wFMCommunicate OK [12:06:52]SAM_PROTO_GetShiftState done [12:06:52]FM_GetShiftState done [12:06:52]req_shift_opened done [12:06:52]requested_item shift.open_date is exist - process it [12:06:52]req_shift_open_date [12:06:52]req_shift_open_date done [12:06:52]produce_requested_data done [12:06:52]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227414,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [12:06:52]process_action_free close_receipt [12:06:52]json_value_free [12:06:52]json_value_free done [12:06:52]process_json_proto returns [12:06:52]Send response to host [12:06:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227414,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [12:06:52]free response buf [12:06:52]execute_script done [12:06:52]execute_script returns [12:06:52]free content buf [12:06:52]Sock 8.Close socket [12:06:52]Sock 8.Thread stoped [12:06:57]OFD Sender: No OFD packet to send [12:07:02]OFD Sender: No OFD packet to send [12:07:07]OFD Sender: No OFD packet to send [12:07:12]OFD Sender: No OFD packet to send [12:07:17]OFD Sender: No OFD packet to send [12:07:22]OFD Sender: No OFD packet to send [12:07:27]OFD Sender: No OFD packet to send [12:07:32]OFD Sender: No OFD packet to send [12:07:37]OFD Sender: No OFD packet to send [12:07:42]OFD Sender: No OFD packet to send [12:07:47]OFD Sender: No OFD packet to send [12:07:52]OFD Sender: No OFD packet to send [12:07:56]accept exits with 9 [12:07:56]New connection [12:07:56]New thread 3066686820 created [12:07:56]Thread 3066543460 joined [12:07:56]Waiting for new connection... [12:07:56] Sock 9.Parse request [12:07:56]Sock 9.Check first char [12:07:56]Sock 9.First char is OK [12:07:56]request: POST /json_proto HTTP/1.0 [12:07:56]Method: POST [12:07:56]URL: /json_proto [12:07:56]Method is POST - this is cgi request [12:07:56]url: /json_proto [12:07:56]query_string will be loaded in cgi processing [12:07:56]execute_cgi json_proto POST (null) [12:07:56]execute_cgi path=json_proto method=POST [12:07:56]POST find Content-Length [12:07:56]Host: 172.17.44.195:8080 [12:07:56]Content-Length: 748 [12:07:56]Content-Type: application/json [12:07:56] [12:07:56]POST finish read [12:07:56]Found Content-Length = 748 [12:07:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962934", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:56]execute_script... [12:07: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)1962934", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:56]POST & json_proto [12:07:56]process_json_proto [12:07:56]json parsed OK: [12:07:56]protocol is kg_v1.0 [12:07:56]action value=close_receipt [12:07:56]process_action close_receipt [12:07:56]cmd_close_receipt [12:07:56]MH_GetDate [12:07:56]Write to MH i2c: F0 00 00 64 14 67 [12:07:56]Write i2c OK [12:07:56]MH_I2C_Read... [12:07:56]Read from MH i2c: F0 [12:07:56]MH_I2C_Read... [12:07:56]Read from MH i2c: F0 09 00 [12:07:56]MH_I2C_Read... [12:07:56]Read from MH i2c: F0 09 00 64 14 00 9D F2 14 67 82 C9 CF 66 FA [12:07:56]GetLastDocTimeStamp 1729426010 [12:07:56]current date 1729426077 [12:07:56]FM_GetShiftState [12:07:56]SAM_PROTO_GetShiftState [12:07:56]wFMCommunicate request_size=4 [12:07:56]MH_SAM_APDU [12:07:56]CAPDU: 80 13 01 00 [12:07:56]Write to MH i2c: E2 08 00 65 14 80 13 01 00 00 00 00 00 F6 [12:07:56]Write i2c OK [12:07:56]MH_I2C_Read... [12:07:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:56]Read from MH i2c: E2 [12:07:56]MH_I2C_Read... [12:07:56]Read from MH i2c: E2 0E 00 [12:07:56]MH_I2C_Read... [12:07:56]Read from MH i2c: E2 0E 00 65 14 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 10 [12:07:56]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:07:56]wFMCommunicate OK [12:07:56]SAM_PROTO_GetShiftState done [12:07:56]FM_GetShiftState done [12:07:56]opened in 1729383750 [12:07:56]opened+sec_in_day 1729470150 [12:07:56]quantity*price = 50000 [12:07:56]sum+1 = 50001 [12:07:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 0.00 Безнал.: 500.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 263 20.10.2024 12:07 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 227415 ФПД: 147829318837415 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120757&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227415&fm=147829318837415&tin=02508201610067®Number=0000000000091685&sum=50000 [12:07:57]StoreToDocumentArchive [12:07:57]shift 533 fd 227415 [12:07:57]save to /storage/0533/doc_00227415 [12:07:57]save last doc name /storage/0533/doc_00227415 to /storage/kkm_last_doc_name [12:07:57]save OK [12:07:57]Clear old archive folders... [12:07:57]ProcessDocumentItem done err = 0, tmpTLVsize=244 [12:07:57]tlvbuf is 01876720 [12:07:57]SAM_PROTO_ClearQueue [12:07:57]wFMCommunicate request_size=4 [12:07:57]MH_SAM_APDU [12:07:57]CAPDU: 80 09 00 00 [12:07:57]Write to MH i2c: E2 08 00 72 14 80 09 00 00 00 00 00 00 F8 [12:07:57]Write i2c OK [12:07:57]MH_I2C_Read... [12:07:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:07:57]Read from MH i2c: E2 [12:07:57]MH_I2C_Read... [12:07:57]Read from MH i2c: E2 03 00 [12:07:57]MH_I2C_Read... [12:07:57]Read from MH i2c: E2 03 00 72 14 00 90 00 FA [12:07:57]RAPDU: 90 00 [12:07:57]wFMCommunicate OK [12:07:57]SAM_PROTO_ClearQueue done [12:07:57]KKMCreateOFDPacket [12:07:57]OFDProtocolAddRootSTLVToBuf [12:07:57]FM_MakeSignedData [12:07:57]FM_MakeSignedData [12:07:57]SAM_PROTO_SignData [12:07:57]wFMCommunicate request_size=4 [12:07:57]MH_SAM_APDU [12:07:57]CAPDU: 80 0D 01 02 [12:07:57]Write to MH i2c: E2 08 00 73 14 80 0D 01 02 00 00 00 00 00 [12:07:57]Write i2c OK [12:07:57]MH_I2C_Read... [12:07:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:07:57]Read from MH i2c: E2 [12:07:57]MH_I2C_Read... [12:07:57]Read from MH i2c: E2 03 00 [12:07:57]MH_I2C_Read... [12:07:57]Read from MH i2c: E2 03 00 73 14 00 90 00 FB [12:07:57]RAPDU: 90 00 [12:07:57]wFMCommunicate OK [12:07:57]wFMCommunicate request_size=253 [12:07:57]MH_SAM_APDU [12:07:57]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 9D F2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 57 78 03 00 35 04 06 00 86 73 32 09 64 A7 [12:07:57]Write to MH i2c: E2 00 01 74 14 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 9D F2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 57 78 03 00 35 04 06 00 86 73 32 09 64 A7 00 00 3C [12:07:57]Write i2c OK [12:07:57]MH_I2C_Read... [12:07:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:58]Read from MH i2c: E2 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: E2 03 00 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: E2 03 00 74 14 00 90 00 FC [12:07:58]RAPDU: 90 00 [12:07:58]wFMCommunicate OK [12:07:58]wFMCommunicate request_size=4 [12:07:58]MH_SAM_APDU [12:07:58]CAPDU: 80 0D 03 02 [12:07:58]Write to MH i2c: E2 08 00 75 14 80 0D 03 02 00 00 00 00 04 [12:07:58]Write i2c OK [12:07:58]MH_I2C_Read... [12:07:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:07:58]Read from MH i2c: E2 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: E2 0B 00 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: E2 0B 00 75 14 00 45 BA 9E 96 14 0A AC C4 90 00 C6 [12:07:58]RAPDU: 45 BA 9E 96 14 0A AC C4 90 00 [12:07:58]wFMCommunicate OK [12:07:58]SAM_PROTO_SignData done [12:07:58]FM_MakeSignedData done [12:07:58]CreateOFDProtocolMessage [12:07:58]wFMCommunicate request_size=4 [12:07:58]MH_SAM_APDU [12:07:58]CAPDU: 80 11 00 00 [12:07:58]Write to MH i2c: E2 08 00 76 14 80 11 00 00 00 00 00 00 04 [12:07:58]Write i2c OK [12:07:58]MH_I2C_Read... [12:07:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:58]Read from MH i2c: E2 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: E2 17 00 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: E2 17 00 76 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 5B [12:07:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:07:58]wFMCommunicate OK [12:07:58]CreateOFDProtocolMessage done [12:07:58]OFDSenderStorePacket 227415 [12:07:58]StoreOFDPacket docnum=227415 [12:07:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 F1 E8 00 01 F3 56 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 9D F2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 57 78 03 00 35 04 06 00 86 73 32 09 64 A7 45 BA 9E 96 14 0A AC C4 [12:07:58]CheckFolder [12:07:58]dirname=/storage/ofd_packets [12:07:58]CheckFolder done [12:07:58]ProducePacketName [12:07:58]name=ofd_packets/00227415 [12:07:58]NVStorageSaveData ofd_packets/00227415 [12:07:58]File name is /storage/ofd_packets/00227415 [12:07:58]Write 294 bytes [12:07:58]NVStorageSaveData done [12:07:58]OFDSenderStorePacket done [12:07:58]KKMCreateOFDPacket done [12:07:58]NVStorageSaveData kkm_last_timestamp [12:07:58]File name is /storage/kkm_last_timestamp [12:07:58]Write 4 bytes [12:07:58]NVStorageSaveData done [12:07:58]ExternCall_PrintAddStr [12:07:58]wPrintStart [12:07:58]Write to MH i2c: 01 00 00 77 14 8B [12:07:58]Write i2c OK [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: 01 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: 01 07 00 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: 01 07 00 77 14 00 00 00 00 00 FF 0F A0 [12:07:58]RasterBufferAndPrint [12:07:58]line Счет N : (1)1962934 [12:07:58]line ИНН: 02508201610067 [12:07:58]line Контрольно-Кассовый Чек [12:07:58]line ПРОДАЖА [12:07:58]line ТРК (МРК, ГНК) : 52 [12:07:58]line Товар: 2710124130 [12:07:58]line SU-92 [12:07:58]line 7.310 * 68.40 [12:07:58]line = 500.00 [12:07:58]line НДС 12% НСП 1% [12:07:58]line > о реализуемом товаре [12:07:58]line ИТОГО: 500.00 [12:07:58]line НСП 1% : 4.42 [12:07:58]line НДС 12% : 53.10 [12:07:58]line Наличными: 0.00 [12:07:58]line Безнал.: 500.00 [12:07:58]line Место: АЗС № 133 "Партнер Нефть" [12:07:58]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:07:58]line СНО: Общий режим [12:07:58]line Чек 263 20.10.2024 12:07 [12:07:58]line Смена: 533 ФФД: 1.0 [12:07:58]line ЗНМ: 0300000091 [12:07:58]line РНМ: 0000000000091685 [12:07:58]line Версия ККМ: 001 [12:07:58]line Платежная система: Mbank [12:07:58]line ФМ: 0000000000871839 [12:07:58]line ФД: 227415 [12:07:58]line ФПД: 147829318837415 [12:07:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120757&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227415&fm=147829318837415&tin=02508201610067®Number=0000000000091685&sum=50000 [12:07:58]OFD Sender: Processing packet 227415 [packets to send 38, broken 37] [12:07:58]ProducePacketName [12:07:58]name=ofd_packets/00227415 [12:07:58]OFD Sender: To server: pG, [12:07:58]CommunicateWithHost lk.salyk.kg:30040 [12:07:58]ConnectInit lk.salyk.kg [12:07:58]written 0, free lines is 4095 [12:07:58]Connected sock=10 [12:07: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 33 39 08 01 00 00 F1 E8 00 01 F3 56 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 9D F2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 57 78 03 00 35 04 06 00 86 73 32 09 64 A7 45 BA 9E 96 14 0A AC C4 [12:07: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 33 39 4F 00 00 00 82 DE 47 00 EE 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 33 39 10 04 04 00 57 78 03 00 F4 03 04 00 9C 9D 14 67 B6 04 01 00 00 0D 37 1B 76 FD D7 51 07 [12:07:58]CommunicateWithHost err = 0 [12:07:58]CheckOFDResponse [12:07:58]1017 (14) - 77093643461234 [12:07:58]1041 (16) - 0000000000871839 [12:07:58]1040 (4) - 227415 [12:07:58]1012 (4) - 20.10.2024 06:05 [12:07:58]1206 (1) - 0 [12:07:58]OFD Sender: Remove packet 227415 [12:07:58]ProducePacketName [12:07:58]name=ofd_packets/00227415 [12:07:58]NVStorageDeleteData [12:07:59]Write to MH i2c: 01 00 00 9F 14 B3 [12:07:59]Write i2c OK [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: 01 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: 01 07 00 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: 01 07 00 9F 14 00 00 00 00 00 39 0D 00 [12:07:59]RasterBufferAndPrint [12:07:59]line [12:07:59]line [12:07:59]line [12:07:59]line [12:07:59]line [12:07:59]written 0, free lines is 3391 [12:07:59]process_action close_receipt done [12:07:59]requested_data is exist [12:07:59]produce_requested_data [12:07:59]requested_item fm.sn is exist - process it [12:07:59]wFMCommunicate request_size=4 [12:07:59]MH_SAM_APDU [12:07:59]CAPDU: 80 11 00 00 [12:07:59]Write to MH i2c: E2 08 00 A6 14 80 11 00 00 00 00 00 00 34 [12:07:59]Write i2c OK [12:07:59]MH_I2C_Read... [12:07:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:59]Read from MH i2c: E2 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: E2 17 00 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: E2 17 00 A6 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 8B [12:07:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:07:59]wFMCommunicate OK [12:07:59]requested_item fd.num is exist - process it [12:07:59]SAM_PROTO_GetFieldsCounters [12:07:59]wFMCommunicate request_size=4 [12:07:59]MH_SAM_APDU [12:07:59]CAPDU: 80 13 00 00 [12:07:59]Write to MH i2c: E2 08 00 A7 14 80 13 00 00 00 00 00 00 37 [12:07:59]Write i2c OK [12:07:59]MH_I2C_Read... [12:07:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:07:59]Read from MH i2c: E2 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: E2 62 00 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: E2 62 00 A7 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 57 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 61 [12:07: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 57 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:07:59]wFMCommunicate OK [12:07:59]SAM_PROTO_GetFieldsCounters done [12:07:59]requested_item shift.num is exist - process it [12:07:59]requested_item shift.opened is exist - process it [12:07:59]req_shift_opened [12:07:59]FM_GetShiftState [12:07:59]SAM_PROTO_GetShiftState [12:07:59]wFMCommunicate request_size=4 [12:07:59]MH_SAM_APDU [12:07:59]CAPDU: 80 13 01 00 [12:07:59]Write to MH i2c: E2 08 00 A8 14 80 13 01 00 00 00 00 00 39 [12:07:59]Write i2c OK [12:07:59]MH_I2C_Read... [12:07:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:59]Read from MH i2c: E2 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: E2 0E 00 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: E2 0E 00 A8 14 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 53 [12:07:59]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:07:59]wFMCommunicate OK [12:07:59]SAM_PROTO_GetShiftState done [12:07:59]FM_GetShiftState done [12:07:59]req_shift_opened done [12:07:59]requested_item shift.open_date is exist - process it [12:07:59]req_shift_open_date [12:07:59]req_shift_open_date done [12:07:59]produce_requested_data done [12:07:59]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227415,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [12:07:59]process_action_free close_receipt [12:07:59]json_value_free [12:07:59]json_value_free done [12:07:59]process_json_proto returns [12:07:59]Send response to host [12:07:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227415,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [12:07:59]free response buf [12:07:59]execute_script done [12:07:59]execute_script returns [12:07:59]free content buf [12:07:59]Sock 9.Close socket [12:07:59]Sock 9.Thread stoped [12:07:59]OFD Sender: No OFD packet to send [12:08:04]OFD Sender: No OFD packet to send [12:08:07]accept exits with 8 [12:08:07]New connection [12:08:07]New thread 3066543460 created [12:08:07]Thread 3066686820 joined [12:08:07]Waiting for new connection... [12:08:07] Sock 8.Parse request [12:08:07]Sock 8.Check first char [12:08:07]Sock 8.First char is OK [12:08:07]request: POST /json_proto HTTP/1.0 [12:08:07]Method: POST [12:08:07]URL: /json_proto [12:08:07]Method is POST - this is cgi request [12:08:07]url: /json_proto [12:08:07]query_string will be loaded in cgi processing [12:08:07]execute_cgi json_proto POST (null) [12:08:07]execute_cgi path=json_proto method=POST [12:08:07]POST find Content-Length [12:08:07]Host: 172.17.44.195:8080 [12:08:07]Content-Length: 678 [12:08:07]Content-Type: application/json [12:08:07] [12:08:07]POST finish read [12:08:07]Found Content-Length = 678 [12:08:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962933", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 4.050, "sum" : 300.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:08:07]execute_script... [12:08:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962933", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 4.050, "sum" : 300.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:08:07]POST & json_proto [12:08:07]process_json_proto [12:08:07]json parsed OK: [12:08:07]protocol is kg_v1.0 [12:08:07]action value=close_receipt [12:08:07]process_action close_receipt [12:08:07]cmd_close_receipt [12:08:07]MH_GetDate [12:08:07]Write to MH i2c: F0 00 00 A9 14 AC [12:08:07]Write i2c OK [12:08:07]MH_I2C_Read... [12:08:07]Read from MH i2c: F0 [12:08:07]MH_I2C_Read... [12:08:07]Read from MH i2c: F0 09 00 [12:08:07]MH_I2C_Read... [12:08:07]Read from MH i2c: F0 09 00 A9 14 00 A8 F2 14 67 82 C9 CF 66 4A [12:08:07]GetLastDocTimeStamp 1729426077 [12:08:07]current date 1729426088 [12:08:07]FM_GetShiftState [12:08:07]SAM_PROTO_GetShiftState [12:08:07]wFMCommunicate request_size=4 [12:08:07]MH_SAM_APDU [12:08:07]CAPDU: 80 13 01 00 [12:08:07]Write to MH i2c: E2 08 00 AA 14 80 13 01 00 00 00 00 00 3B [12:08:07]Write i2c OK [12:08:07]MH_I2C_Read... [12:08:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:07]Read from MH i2c: E2 [12:08:07]MH_I2C_Read... [12:08:07]Read from MH i2c: E2 0E 00 [12:08:07]MH_I2C_Read... [12:08:07]Read from MH i2c: E2 0E 00 AA 14 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 55 [12:08:07]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:08:07]wFMCommunicate OK [12:08:07]SAM_PROTO_GetShiftState done [12:08:07]FM_GetShiftState done [12:08:07]opened in 1729383750 [12:08:07]opened+sec_in_day 1729470150 [12:08:07]quantity*price = 30051 [12:08:07]sum+1 = 30052 [12:08:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 264 20.10.2024 12:08 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227416 ФПД: 113133274617776 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120808&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227416&fm=113133274617776&tin=02508201610067®Number=0000000000091685&sum=30000 [12:08:08]StoreToDocumentArchive [12:08:08]shift 533 fd 227416 [12:08:08]save to /storage/0533/doc_00227416 [12:08:08]save last doc name /storage/0533/doc_00227416 to /storage/kkm_last_doc_name [12:08:08]save OK [12:08:08]Clear old archive folders... [12:08:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:08:08]tlvbuf is 0194D710 [12:08:08]SAM_PROTO_ClearQueue [12:08:08]wFMCommunicate request_size=4 [12:08:08]MH_SAM_APDU [12:08:08]CAPDU: 80 09 00 00 [12:08:08]Write to MH i2c: E2 08 00 B7 14 80 09 00 00 00 00 00 00 3D [12:08:08]Write i2c OK [12:08:08]MH_I2C_Read... [12:08:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:08:08]Read from MH i2c: E2 [12:08:08]MH_I2C_Read... [12:08:08]Read from MH i2c: E2 03 00 [12:08:08]MH_I2C_Read... [12:08:08]Read from MH i2c: E2 03 00 B7 14 00 90 00 3F [12:08:08]RAPDU: 90 00 [12:08:08]wFMCommunicate OK [12:08:08]SAM_PROTO_ClearQueue done [12:08:08]KKMCreateOFDPacket [12:08:08]OFDProtocolAddRootSTLVToBuf [12:08:08]FM_MakeSignedData [12:08:08]FM_MakeSignedData [12:08:08]SAM_PROTO_SignData [12:08:08]wFMCommunicate request_size=4 [12:08:08]MH_SAM_APDU [12:08:08]CAPDU: 80 0D 01 02 [12:08:08]Write to MH i2c: E2 08 00 B8 14 80 0D 01 02 00 00 00 00 45 [12:08:08]Write i2c OK [12:08:08]MH_I2C_Read... [12:08:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:08:08]Read from MH i2c: E2 [12:08:08]MH_I2C_Read... [12:08:08]Read from MH i2c: E2 03 00 [12:08:08]MH_I2C_Read... [12:08:08]Read from MH i2c: E2 03 00 B8 14 00 90 00 40 [12:08:08]RAPDU: 90 00 [12:08:08]wFMCommunicate OK [12:08:08]wFMCommunicate request_size=255 [12:08:08]MH_SAM_APDU [12:08:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 A8 F2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 58 78 03 00 35 04 06 00 66 [12:08:08]Write to MH i2c: E2 02 01 B9 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 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 A8 F2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 58 78 03 00 35 04 06 00 66 00 00 72 [12:08:08]Write i2c OK [12:08:08]MH_I2C_Read... [12:08:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:09]Read from MH i2c: E2 [12:08:09]MH_I2C_Read... [12:08:09]Read from MH i2c: E2 03 00 [12:08:09]MH_I2C_Read... [12:08:09]Read from MH i2c: E2 03 00 B9 14 00 90 00 41 [12:08:09]RAPDU: 90 00 [12:08:09]wFMCommunicate OK [12:08:09]wFMCommunicate request_size=10 [12:08:09]MH_SAM_APDU [12:08:09]CAPDU: 80 0D 02 02 05 E4 E4 A5 57 B0 [12:08:09]Write to MH i2c: E2 0D 00 BA 14 80 0D 02 02 05 00 E4 E4 A5 57 B0 00 00 C6 [12:08:09]Write i2c OK [12:08:09]MH_I2C_Read... [12:08:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:09]Read from MH i2c: E2 [12:08:09]MH_I2C_Read... [12:08:09]Read from MH i2c: E2 03 00 [12:08:09]MH_I2C_Read... [12:08:09]Read from MH i2c: E2 03 00 BA 14 00 90 00 42 [12:08:09]RAPDU: 90 00 [12:08:09]wFMCommunicate OK [12:08:09]wFMCommunicate request_size=4 [12:08:09]MH_SAM_APDU [12:08:09]CAPDU: 80 0D 03 02 [12:08:09]Write to MH i2c: E2 08 00 BB 14 80 0D 03 02 00 00 00 00 4A [12:08:09]Write i2c OK [12:08:09]MH_I2C_Read... [12:08:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:08:09]Read from MH i2c: E2 [12:08:09]MH_I2C_Read... [12:08:09]Read from MH i2c: E2 0B 00 [12:08:09]MH_I2C_Read... [12:08:09]Read from MH i2c: E2 0B 00 BB 14 00 2C 7F 39 CD F7 58 A7 9E 90 00 90 [12:08:09]RAPDU: 2C 7F 39 CD F7 58 A7 9E 90 00 [12:08:09]wFMCommunicate OK [12:08:09]SAM_PROTO_SignData done [12:08:09]FM_MakeSignedData done [12:08:09]CreateOFDProtocolMessage [12:08:09]wFMCommunicate request_size=4 [12:08:09]MH_SAM_APDU [12:08:09]CAPDU: 80 11 00 00 [12:08:09]Write to MH i2c: E2 08 00 BC 14 80 11 00 00 00 00 00 00 4A [12:08:09]Write i2c OK [12:08:09]MH_I2C_Read... [12:08:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:09]Read from MH i2c: E2 [12:08:09]MH_I2C_Read... [12:08:09]Read from MH i2c: E2 17 00 [12:08:09]MH_I2C_Read... [12:08:09]Read from MH i2c: E2 17 00 BC 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A1 [12:08:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:08:09]wFMCommunicate OK [12:08:09]CreateOFDProtocolMessage done [12:08:09]OFDSenderStorePacket 227416 [12:08:09]StoreOFDPacket docnum=227416 [12:08:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 C8 4C 07 01 95 B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 A8 F2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 58 78 03 00 35 04 06 00 66 E4 E4 A5 57 B0 2C 7F 39 CD F7 58 A7 9E [12:08:09]CheckFolder [12:08:09]dirname=/storage/ofd_packets [12:08:09]CheckFolder done [12:08:09]ProducePacketName [12:08:09]name=ofd_packets/00227416 [12:08:09]NVStorageSaveData ofd_packets/00227416 [12:08:09]File name is /storage/ofd_packets/00227416 [12:08:09]Write 301 bytes [12:08:09]NVStorageSaveData done [12:08:09]OFDSenderStorePacket done [12:08:09]KKMCreateOFDPacket done [12:08:09]NVStorageSaveData kkm_last_timestamp [12:08:09]File name is /storage/kkm_last_timestamp [12:08:09]Write 4 bytes [12:08:09]NVStorageSaveData done [12:08:09]ExternCall_PrintAddStr [12:08:09]wPrintStart [12:08:09]Write to MH i2c: 01 00 00 BD 14 D1 [12:08:09]Write i2c OK [12:08:09]MH_I2C_Read... [12:08:09]Read from MH i2c: 01 [12:08:09]MH_I2C_Read... [12:08:09]Read from MH i2c: 01 07 00 [12:08:09]MH_I2C_Read... [12:08:09]Read from MH i2c: 01 07 00 BD 14 00 00 00 00 00 FF 0F E6 [12:08:09]RasterBufferAndPrint [12:08:09]line Счет N : (1)1962933 [12:08:09]line ИНН: 02508201610067 [12:08:09]line Контрольно-Кассовый Чек [12:08:09]line ПРОДАЖА [12:08:09]line ТРК (МРК, ГНК) : 34 [12:08:09]line Товар: 2710124500 [12:08:09]line Аи-95-К-5 [12:08:09]line 4.050 * 74.20 [12:08:09]line = 300.51 [12:08:09]line НДС 12% НСП 1% [12:08:09]line > о реализуемом товаре [12:08:09]line ОКРУГЛЕНИЕ: -0.51 [12:08:09]line ИТОГО: 300.00 [12:08:09]line Внесено: 300.00 [12:08:09]line СДАЧА: 0.00 [12:08:09]line НСП 1% : 2.66 [12:08:09]line НДС 12% : 31.91 [12:08:09]line Наличными: 300.00 [12:08:09]line Безнал.: 0.00 [12:08:09]line Место: АЗС № 133 "Партнер Нефть" [12:08:09]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:08:09]line СНО: Общий режим [12:08:09]line Чек 264 20.10.2024 12:08 [12:08:09]line Смена: 533 ФФД: 1.0 [12:08:09]line ЗНМ: 0300000091 [12:08:09]line РНМ: 0000000000091685 [12:08:09]line Версия ККМ: 001 [12:08:09]line ФМ: 0000000000871839 [12:08:09]line ФД: 227416 [12:08:09]line ФПД: 113133274617776 [12:08:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120808&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227416&fm=113133274617776&tin=02508201610067®Number=0000000000091685&sum=30000 [12:08:09]OFD Sender: Processing packet 227416 [packets to send 38, broken 37] [12:08:09]ProducePacketName [12:08:09]name=ofd_packets/00227416 [12:08:09]OFD Sender: To server: pG, [12:08:09]CommunicateWithHost lk.salyk.kg:30040 [12:08:09]ConnectInit lk.salyk.kg [12:08:09]written 0, free lines is 4095 [12:08:09]Connected sock=10 [12:08:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 C8 4C 07 01 95 B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 A8 F2 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 58 78 03 00 35 04 06 00 66 E4 E4 A5 57 B0 2C 7F 39 CD F7 58 A7 9E [12:08: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 33 39 4F 00 00 00 64 A7 47 00 C9 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 33 39 10 04 04 00 58 78 03 00 F4 03 04 00 A7 9D 14 67 B6 04 01 00 00 C1 26 3F F9 DD E2 19 3B [12:08:10]CommunicateWithHost err = 0 [12:08:10]CheckOFDResponse [12:08:10]1017 (14) - 77093643461234 [12:08:10]1041 (16) - 0000000000871839 [12:08:10]1040 (4) - 227416 [12:08:10]1012 (4) - 20.10.2024 06:05 [12:08:10]1206 (1) - 0 [12:08:10]OFD Sender: Remove packet 227416 [12:08:10]ProducePacketName [12:08:10]name=ofd_packets/00227416 [12:08:10]NVStorageDeleteData [12:08:10]Write to MH i2c: 01 00 00 E7 14 FB [12:08:10]Write i2c OK [12:08:10]MH_I2C_Read... [12:08:10]Read from MH i2c: 01 [12:08:10]MH_I2C_Read... [12:08:10]Read from MH i2c: 01 07 00 [12:08:10]MH_I2C_Read... [12:08:10]Read from MH i2c: 01 07 00 E7 14 00 00 00 00 00 FE 0C 0C [12:08:10]RasterBufferAndPrint [12:08:10]line [12:08:10]line [12:08:10]line [12:08:10]line [12:08:10]line [12:08:10]written 0, free lines is 3335 [12:08:10]process_action close_receipt done [12:08:10]requested_data is exist [12:08:10]produce_requested_data [12:08:10]requested_item fm.sn is exist - process it [12:08:10]wFMCommunicate request_size=4 [12:08:10]MH_SAM_APDU [12:08:10]CAPDU: 80 11 00 00 [12:08:10]Write to MH i2c: E2 08 00 EE 14 80 11 00 00 00 00 00 00 7C [12:08:10]Write i2c OK [12:08:10]MH_I2C_Read... [12:08:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:10]Read from MH i2c: E2 [12:08:10]MH_I2C_Read... [12:08:10]Read from MH i2c: E2 17 00 [12:08:10]MH_I2C_Read... [12:08:10]Read from MH i2c: E2 17 00 EE 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D3 [12:08:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:08:10]wFMCommunicate OK [12:08:10]requested_item fd.num is exist - process it [12:08:10]SAM_PROTO_GetFieldsCounters [12:08:10]wFMCommunicate request_size=4 [12:08:10]MH_SAM_APDU [12:08:10]CAPDU: 80 13 00 00 [12:08:10]Write to MH i2c: E2 08 00 EF 14 80 13 00 00 00 00 00 00 7F [12:08:10]Write i2c OK [12:08:10]MH_I2C_Read... [12:08:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:08:10]Read from MH i2c: E2 [12:08:10]MH_I2C_Read... [12:08:10]Read from MH i2c: E2 62 00 [12:08:10]MH_I2C_Read... [12:08:10]Read from MH i2c: E2 62 00 EF 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 58 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 AD [12:08: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 58 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:08:10]wFMCommunicate OK [12:08:10]SAM_PROTO_GetFieldsCounters done [12:08:10]requested_item shift.num is exist - process it [12:08:10]requested_item shift.opened is exist - process it [12:08:10]req_shift_opened [12:08:10]FM_GetShiftState [12:08:10]SAM_PROTO_GetShiftState [12:08:10]wFMCommunicate request_size=4 [12:08:10]MH_SAM_APDU [12:08:10]CAPDU: 80 13 01 00 [12:08:10]Write to MH i2c: E2 08 00 F0 14 80 13 01 00 00 00 00 00 81 [12:08:10]Write i2c OK [12:08:10]MH_I2C_Read... [12:08:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:10]Read from MH i2c: E2 [12:08:10]MH_I2C_Read... [12:08:10]Read from MH i2c: E2 0E 00 [12:08:10]MH_I2C_Read... [12:08:10]Read from MH i2c: E2 0E 00 F0 14 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 9B [12:08:10]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:08:10]wFMCommunicate OK [12:08:10]SAM_PROTO_GetShiftState done [12:08:10]FM_GetShiftState done [12:08:10]req_shift_opened done [12:08:10]requested_item shift.open_date is exist - process it [12:08:10]req_shift_open_date [12:08:10]req_shift_open_date done [12:08:10]produce_requested_data done [12:08:10]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227416,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [12:08:10]process_action_free close_receipt [12:08:10]json_value_free [12:08:10]json_value_free done [12:08:10]process_json_proto returns [12:08:10]Send response to host [12:08:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227416,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [12:08:10]free response buf [12:08:10]execute_script done [12:08:10]execute_script returns [12:08:10]free content buf [12:08:10]Sock 8.Close socket [12:08:10]Sock 8.Thread stoped [12:08:10]OFD Sender: No OFD packet to send [12:08:15]OFD Sender: No OFD packet to send [12:08:20]OFD Sender: No OFD packet to send [12:08:25]OFD Sender: No OFD packet to send [12:08:30]OFD Sender: No OFD packet to send [12:08:35]OFD Sender: No OFD packet to send [12:08:40]OFD Sender: No OFD packet to send [12:08:45]OFD Sender: No OFD packet to send [12:08:50]OFD Sender: No OFD packet to send [12:08:55]OFD Sender: No OFD packet to send [12:09:00]OFD Sender: No OFD packet to send [12:09:05]OFD Sender: No OFD packet to send [12:09:10]OFD Sender: No OFD packet to send [12:09:15]OFD Sender: No OFD packet to send [12:09:20]OFD Sender: No OFD packet to send [12:09:25]OFD Sender: No OFD packet to send [12:09:30]OFD Sender: No OFD packet to send [12:09:35]OFD Sender: No OFD packet to send [12:09:40]OFD Sender: No OFD packet to send [12:09:45]OFD Sender: No OFD packet to send [12:09:50]OFD Sender: No OFD packet to send [12:09:55]OFD Sender: No OFD packet to send [12:10:00]OFD Sender: No OFD packet to send [12:10:05]OFD Sender: No OFD packet to send [12:10:10]OFD Sender: No OFD packet to send [12:10:15]OFD Sender: No OFD packet to send [12:10:20]OFD Sender: No OFD packet to send [12:10:25]OFD Sender: No OFD packet to send [12:10:30]OFD Sender: No OFD packet to send [12:10:35]OFD Sender: No OFD packet to send [12:10:40]OFD Sender: No OFD packet to send [12:10:45]OFD Sender: No OFD packet to send [12:10:50]OFD Sender: No OFD packet to send [12:10:55]OFD Sender: No OFD packet to send [12:11:00]OFD Sender: No OFD packet to send [12:11:05]OFD Sender: No OFD packet to send [12:11:10]OFD Sender: No OFD packet to send [12:11:15]OFD Sender: No OFD packet to send [12:11:20]OFD Sender: No OFD packet to send [12:11:25]OFD Sender: No OFD packet to send [12:11:30]OFD Sender: No OFD packet to send [12:11:35]OFD Sender: No OFD packet to send [12:11:40]OFD Sender: No OFD packet to send [12:11:45]accept exits with 9 [12:11:45]New connection [12:11:45]New thread 3066686820 created [12:11:45]Thread 3066543460 joined [12:11:45]Waiting for new connection... [12:11:45] Sock 9.Parse request [12:11:45]Sock 9.Check first char [12:11:45]Sock 9.First char is OK [12:11:45]request: POST /json_proto HTTP/1.0 [12:11:45]Method: POST [12:11:45]URL: /json_proto [12:11:45]Method is POST - this is cgi request [12:11:45]url: /json_proto [12:11:45]query_string will be loaded in cgi processing [12:11:45]execute_cgi json_proto POST (null) [12:11:45]execute_cgi path=json_proto method=POST [12:11:45]POST find Content-Length [12:11:45]Host: 172.17.44.195:8080 [12:11:45]Content-Length: 678 [12:11:45]Content-Type: application/json [12:11:45] [12:11:45]POST finish read [12:11:45]Found Content-Length = 678 [12:11:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962935", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:45]execute_script... [12:11:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962935", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:45]POST & json_proto [12:11:45]process_json_proto [12:11:45]json parsed OK: [12:11:45]protocol is kg_v1.0 [12:11:45]action value=close_receipt [12:11:45]process_action close_receipt [12:11:45]cmd_close_receipt [12:11:45]MH_GetDate [12:11:45]Write to MH i2c: F0 00 00 F1 14 F4 [12:11:45]Write i2c OK [12:11:45]MH_I2C_Read... [12:11:45]Read from MH i2c: F0 [12:11:45]MH_I2C_Read... [12:11:45]Read from MH i2c: F0 09 00 [12:11:45]MH_I2C_Read... [12:11:45]Read from MH i2c: F0 09 00 F1 14 00 82 F3 14 67 82 C9 CF 66 6D [12:11:45]GetLastDocTimeStamp 1729426088 [12:11:45]current date 1729426306 [12:11:45]FM_GetShiftState [12:11:45]SAM_PROTO_GetShiftState [12:11:45]wFMCommunicate request_size=4 [12:11:45]MH_SAM_APDU [12:11:45]CAPDU: 80 13 01 00 [12:11:45]Write to MH i2c: E2 08 00 F2 14 80 13 01 00 00 00 00 00 83 [12:11:45]Write i2c OK [12:11:45]MH_I2C_Read... [12:11:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:45]Read from MH i2c: E2 [12:11:45]MH_I2C_Read... [12:11:45]Read from MH i2c: E2 0E 00 [12:11:45]MH_I2C_Read... [12:11:45]Read from MH i2c: E2 0E 00 F2 14 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 9D [12:11:45]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:11:45]wFMCommunicate OK [12:11:45]SAM_PROTO_GetShiftState done [12:11:45]FM_GetShiftState done [12:11:45]opened in 1729383750 [12:11:45]opened+sec_in_day 1729470150 [12:11:45]quantity*price = 30038 [12:11:45]sum+1 = 30039 [12:11:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 265 20.10.2024 12:11 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227417 ФПД: 272926648740952 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T121146&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227417&fm=272926648740952&tin=02508201610067®Number=0000000000091685&sum=30000 [12:11:46]StoreToDocumentArchive [12:11:46]shift 533 fd 227417 [12:11:46]save to /storage/0533/doc_00227417 [12:11:46]save last doc name /storage/0533/doc_00227417 to /storage/kkm_last_doc_name [12:11:46]save OK [12:11:46]Clear old archive folders... [12:11:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:11:46]tlvbuf is 01956620 [12:11:46]SAM_PROTO_ClearQueue [12:11:46]wFMCommunicate request_size=4 [12:11:46]MH_SAM_APDU [12:11:46]CAPDU: 80 09 00 00 [12:11:46]Write to MH i2c: E2 08 00 FF 14 80 09 00 00 00 00 00 00 85 [12:11:46]Write i2c OK [12:11:46]MH_I2C_Read... [12:11:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:11:46]Read from MH i2c: E2 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: E2 03 00 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: E2 03 00 FF 14 00 90 00 87 [12:11:46]RAPDU: 90 00 [12:11:46]wFMCommunicate OK [12:11:46]SAM_PROTO_ClearQueue done [12:11:46]KKMCreateOFDPacket [12:11:46]OFDProtocolAddRootSTLVToBuf [12:11:46]FM_MakeSignedData [12:11:46]FM_MakeSignedData [12:11:46]SAM_PROTO_SignData [12:11:46]wFMCommunicate request_size=4 [12:11:46]MH_SAM_APDU [12:11:46]CAPDU: 80 0D 01 02 [12:11:46]Write to MH i2c: E2 08 00 00 15 80 0D 01 02 00 00 00 00 8E [12:11:46]Write i2c OK [12:11:46]MH_I2C_Read... [12:11:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:11:46]Read from MH i2c: E2 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: E2 03 00 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: E2 03 00 00 15 00 90 00 89 [12:11:46]RAPDU: 90 00 [12:11:46]wFMCommunicate OK [12:11:46]wFMCommunicate request_size=255 [12:11:46]MH_SAM_APDU [12:11:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 82 F3 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 59 78 03 00 35 04 06 00 F8 [12:11:46]Write to MH i2c: E2 02 01 01 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 82 F3 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 59 78 03 00 35 04 06 00 F8 00 00 F6 [12:11:46]Write i2c OK [12:11:46]MH_I2C_Read... [12:11:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:46]Read from MH i2c: E2 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: E2 03 00 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: E2 03 00 01 15 00 90 00 8A [12:11:46]RAPDU: 90 00 [12:11:46]wFMCommunicate OK [12:11:46]wFMCommunicate request_size=10 [12:11:46]MH_SAM_APDU [12:11:46]CAPDU: 80 0D 02 02 05 39 AF F2 AC 58 [12:11:46]Write to MH i2c: E2 0D 00 02 15 80 0D 02 02 05 00 39 AF F2 AC 58 00 00 79 [12:11:46]Write i2c OK [12:11:46]MH_I2C_Read... [12:11:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:46]Read from MH i2c: E2 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: E2 03 00 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: E2 03 00 02 15 00 90 00 8B [12:11:46]RAPDU: 90 00 [12:11:46]wFMCommunicate OK [12:11:46]wFMCommunicate request_size=4 [12:11:46]MH_SAM_APDU [12:11:46]CAPDU: 80 0D 03 02 [12:11:46]Write to MH i2c: E2 08 00 03 15 80 0D 03 02 00 00 00 00 93 [12:11:46]Write i2c OK [12:11:46]MH_I2C_Read... [12:11:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:11:46]Read from MH i2c: E2 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: E2 0B 00 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: E2 0B 00 03 15 00 9B 5E FD 9E 0F 0D C0 BC 90 00 C0 [12:11:46]RAPDU: 9B 5E FD 9E 0F 0D C0 BC 90 00 [12:11:46]wFMCommunicate OK [12:11:46]SAM_PROTO_SignData done [12:11:46]FM_MakeSignedData done [12:11:46]CreateOFDProtocolMessage [12:11:46]wFMCommunicate request_size=4 [12:11:46]MH_SAM_APDU [12:11:46]CAPDU: 80 11 00 00 [12:11:46]Write to MH i2c: E2 08 00 04 15 80 11 00 00 00 00 00 00 93 [12:11:46]Write i2c OK [12:11:46]MH_I2C_Read... [12:11:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:46]Read from MH i2c: E2 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: E2 17 00 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: E2 17 00 04 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 EA [12:11:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:11:46]wFMCommunicate OK [12:11:46]CreateOFDProtocolMessage done [12:11:46]OFDSenderStorePacket 227417 [12:11:46]StoreOFDPacket docnum=227417 [12:11:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 A4 A7 07 01 B3 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 82 F3 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 59 78 03 00 35 04 06 00 F8 39 AF F2 AC 58 9B 5E FD 9E 0F 0D C0 BC [12:11:46]CheckFolder [12:11:46]dirname=/storage/ofd_packets [12:11:46]CheckFolder done [12:11:46]ProducePacketName [12:11:46]name=ofd_packets/00227417 [12:11:46]NVStorageSaveData ofd_packets/00227417 [12:11:46]File name is /storage/ofd_packets/00227417 [12:11:46]Write 301 bytes [12:11:46]NVStorageSaveData done [12:11:46]OFDSenderStorePacket done [12:11:46]KKMCreateOFDPacket done [12:11:46]NVStorageSaveData kkm_last_timestamp [12:11:46]File name is /storage/kkm_last_timestamp [12:11:46]Write 4 bytes [12:11:46]NVStorageSaveData done [12:11:46]ExternCall_PrintAddStr [12:11:46]wPrintStart [12:11:46]Write to MH i2c: 01 00 00 05 15 1A [12:11:46]Write i2c OK [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: 01 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: 01 07 00 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: 01 07 00 05 15 00 00 00 00 00 FF 0F 2F [12:11:46]RasterBufferAndPrint [12:11:46]line Счет N : (1)1962935 [12:11:46]line ИНН: 02508201610067 [12:11:46]line Контрольно-Кассовый Чек [12:11:46]line ПРОДАЖА [12:11:46]line ТРК (МРК, ГНК) : 43 [12:11:46]line Товар: 2710124130 [12:11:46]line Аи-92-К-5 [12:11:46]line 4.490 * 66.90 [12:11:46]line = 300.38 [12:11:46]line НДС 12% НСП 1% [12:11:46]line > о реализуемом товаре [12:11:46]line ОКРУГЛЕНИЕ: -0.38 [12:11:46]line ИТОГО: 300.00 [12:11:46]line Внесено: 300.00 [12:11:46]line СДАЧА: 0.00 [12:11:46]line НСП 1% : 2.66 [12:11:46]line НДС 12% : 31.90 [12:11:46]line Наличными: 300.00 [12:11:46]line Безнал.: 0.00 [12:11:46]line Место: АЗС № 133 "Партнер Нефть" [12:11:46]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:11:46]line СНО: Общий режим [12:11:46]line Чек 265 20.10.2024 12:11 [12:11:46]line Смена: 533 ФФД: 1.0 [12:11:46]line ЗНМ: 0300000091 [12:11:46]line РНМ: 0000000000091685 [12:11:46]line Версия ККМ: 001 [12:11:46]line ФМ: 0000000000871839 [12:11:46]line ФД: 227417 [12:11:46]line ФПД: 272926648740952 [12:11:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T121146&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227417&fm=272926648740952&tin=02508201610067®Number=0000000000091685&sum=30000 [12:11:47]written 0, free lines is 4095 [12:11:47]OFD Sender: Processing packet 227417 [packets to send 38, broken 37] [12:11:47]ProducePacketName [12:11:47]name=ofd_packets/00227417 [12:11:47]OFD Sender: To server: pG, [12:11:47]CommunicateWithHost lk.salyk.kg:30040 [12:11:47]ConnectInit lk.salyk.kg [12:11:47]Connected sock=10 [12:11:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 A4 A7 07 01 B3 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 82 F3 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 59 78 03 00 35 04 06 00 F8 39 AF F2 AC 58 9B 5E FD 9E 0F 0D C0 BC [12:11: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 33 39 4F 00 00 00 F9 1D 47 00 1C 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 59 78 03 00 F4 03 04 00 81 9E 14 67 B6 04 01 00 00 D9 9F 0D 73 48 C4 E7 C0 [12:11:47]CommunicateWithHost err = 0 [12:11:47]CheckOFDResponse [12:11:47]1017 (14) - 77093643461234 [12:11:47]1041 (16) - 0000000000871839 [12:11:47]1040 (4) - 227417 [12:11:47]1012 (4) - 20.10.2024 06:09 [12:11:47]1206 (1) - 0 [12:11:47]OFD Sender: Remove packet 227417 [12:11:47]ProducePacketName [12:11:47]name=ofd_packets/00227417 [12:11:47]NVStorageDeleteData [12:11:47]Write to MH i2c: 01 00 00 2F 15 44 [12:11:47]Write i2c OK [12:11:47]MH_I2C_Read... [12:11:47]Read from MH i2c: 01 [12:11:47]MH_I2C_Read... [12:11:47]Read from MH i2c: 01 07 00 [12:11:47]MH_I2C_Read... [12:11:47]Read from MH i2c: 01 07 00 2F 15 00 00 00 00 00 16 0D 6E [12:11:47]RasterBufferAndPrint [12:11:47]line [12:11:47]line [12:11:47]line [12:11:47]line [12:11:47]line [12:11:47]written 0, free lines is 3356 [12:11:47]process_action close_receipt done [12:11:47]requested_data is exist [12:11:47]produce_requested_data [12:11:47]requested_item fm.sn is exist - process it [12:11:47]wFMCommunicate request_size=4 [12:11:47]MH_SAM_APDU [12:11:47]CAPDU: 80 11 00 00 [12:11:47]Write to MH i2c: E2 08 00 36 15 80 11 00 00 00 00 00 00 C5 [12:11:47]Write i2c OK [12:11:47]MH_I2C_Read... [12:11:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:47]Read from MH i2c: E2 [12:11:47]MH_I2C_Read... [12:11:47]Read from MH i2c: E2 17 00 [12:11:47]MH_I2C_Read... [12:11:47]Read from MH i2c: E2 17 00 36 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 1C [12:11:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:11:47]wFMCommunicate OK [12:11:47]requested_item fd.num is exist - process it [12:11:47]SAM_PROTO_GetFieldsCounters [12:11:47]wFMCommunicate request_size=4 [12:11:47]MH_SAM_APDU [12:11:47]CAPDU: 80 13 00 00 [12:11:47]Write to MH i2c: E2 08 00 37 15 80 13 00 00 00 00 00 00 C8 [12:11:47]Write i2c OK [12:11:47]MH_I2C_Read... [12:11:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:11:47]Read from MH i2c: E2 [12:11:47]MH_I2C_Read... [12:11:47]Read from MH i2c: E2 62 00 [12:11:47]MH_I2C_Read... [12:11:47]Read from MH i2c: E2 62 00 37 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 59 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 FA [12:11: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 59 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:11:47]wFMCommunicate OK [12:11:47]SAM_PROTO_GetFieldsCounters done [12:11:47]requested_item shift.num is exist - process it [12:11:47]requested_item shift.opened is exist - process it [12:11:47]req_shift_opened [12:11:47]FM_GetShiftState [12:11:47]SAM_PROTO_GetShiftState [12:11:47]wFMCommunicate request_size=4 [12:11:47]MH_SAM_APDU [12:11:47]CAPDU: 80 13 01 00 [12:11:47]Write to MH i2c: E2 08 00 38 15 80 13 01 00 00 00 00 00 CA [12:11:47]Write i2c OK [12:11:47]MH_I2C_Read... [12:11:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:47]Read from MH i2c: E2 [12:11:47]MH_I2C_Read... [12:11:47]Read from MH i2c: E2 0E 00 [12:11:47]MH_I2C_Read... [12:11:47]Read from MH i2c: E2 0E 00 38 15 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 E4 [12:11:47]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:11:47]wFMCommunicate OK [12:11:47]SAM_PROTO_GetShiftState done [12:11:47]FM_GetShiftState done [12:11:47]req_shift_opened done [12:11:47]requested_item shift.open_date is exist - process it [12:11:47]req_shift_open_date [12:11:47]req_shift_open_date done [12:11:47]produce_requested_data done [12:11:47]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227417,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [12:11:47]process_action_free close_receipt [12:11:47]json_value_free [12:11:47]json_value_free done [12:11:47]process_json_proto returns [12:11:47]Send response to host [12:11:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227417,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [12:11:47]free response buf [12:11:47]execute_script done [12:11:47]execute_script returns [12:11:47]free content buf [12:11:47]Sock 9.Close socket [12:11:48]Sock 9.Thread stoped [12:11:48]OFD Sender: No OFD packet to send [12:11:53]OFD Sender: No OFD packet to send [12:11:58]OFD Sender: No OFD packet to send [12:12:03]OFD Sender: No OFD packet to send [12:12:08]OFD Sender: No OFD packet to send [12:12:13]OFD Sender: No OFD packet to send [12:12:18]OFD Sender: No OFD packet to send [12:12:23]OFD Sender: No OFD packet to send [12:12:28]OFD Sender: No OFD packet to send [12:12:33]OFD Sender: No OFD packet to send [12:12:38]OFD Sender: No OFD packet to send [12:12:43]OFD Sender: No OFD packet to send [12:12:48]OFD Sender: No OFD packet to send [12:12:53]OFD Sender: No OFD packet to send [12:12:58]OFD Sender: No OFD packet to send [12:13:03]OFD Sender: No OFD packet to send [12:13:08]OFD Sender: No OFD packet to send [12:13:13]OFD Sender: No OFD packet to send [12:13:18]OFD Sender: No OFD packet to send [12:13:23]OFD Sender: No OFD packet to send [12:13:28]OFD Sender: No OFD packet to send [12:13:33]OFD Sender: No OFD packet to send [12:13:38]OFD Sender: No OFD packet to send [12:13:43]OFD Sender: No OFD packet to send [12:13:48]OFD Sender: No OFD packet to send [12:13:53]OFD Sender: No OFD packet to send [12:13:58]OFD Sender: No OFD packet to send [12:14:03]OFD Sender: No OFD packet to send [12:14:08]OFD Sender: No OFD packet to send [12:14:13]OFD Sender: No OFD packet to send [12:14:18]OFD Sender: No OFD packet to send [12:14:23]OFD Sender: No OFD packet to send [12:14:28]OFD Sender: No OFD packet to send [12:14:33]OFD Sender: No OFD packet to send [12:14:38]OFD Sender: No OFD packet to send [12:14:43]OFD Sender: No OFD packet to send [12:14:48]OFD Sender: No OFD packet to send [12:14:53]OFD Sender: No OFD packet to send [12:14:58]OFD Sender: No OFD packet to send [12:15:03]OFD Sender: No OFD packet to send [12:15:08]OFD Sender: No OFD packet to send [12:15:13]OFD Sender: No OFD packet to send [12:15:18]OFD Sender: No OFD packet to send [12:15:23]OFD Sender: No OFD packet to send [12:15:28]OFD Sender: No OFD packet to send [12:15:33]OFD Sender: No OFD packet to send [12:15:38]OFD Sender: No OFD packet to send [12:15:43]OFD Sender: No OFD packet to send [12:15:48]OFD Sender: No OFD packet to send [12:15:53]OFD Sender: No OFD packet to send [12:15:57]accept exits with 8 [12:15:57]New connection [12:15:57]New thread 3066543460 created [12:15:57]Thread 3066686820 joined [12:15:57]Waiting for new connection... [12:15:57] Sock 8.Parse request [12:15:57]Sock 8.Check first char [12:15:57]Sock 8.First char is OK [12:15:57]request: POST /json_proto HTTP/1.0 [12:15:57]Method: POST [12:15:57]URL: /json_proto [12:15:57]Method is POST - this is cgi request [12:15:57]url: /json_proto [12:15:57]query_string will be loaded in cgi processing [12:15:57]execute_cgi json_proto POST (null) [12:15:57]execute_cgi path=json_proto method=POST [12:15:57]POST find Content-Length [12:15:57]Host: 172.17.44.195:8080 [12:15:57]Content-Length: 767 [12:15:57]Content-Type: application/json [12:15:57] [12:15:57]POST finish read [12:15:57]Found Content-Length = 767 [12:15:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962938", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.950, "sum" : 130.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 130.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:15:57]execute_script... [12:15: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)1962938", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.950, "sum" : 130.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 130.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:15:57]POST & json_proto [12:15:57]process_json_proto [12:15:57]json parsed OK: [12:15:57]protocol is kg_v1.0 [12:15:57]action value=close_receipt [12:15:57]process_action close_receipt [12:15:57]cmd_close_receipt [12:15:57]MH_GetDate [12:15:57]Write to MH i2c: F0 00 00 39 15 3D [12:15:57]Write i2c OK [12:15:57]MH_I2C_Read... [12:15:57]Read from MH i2c: F0 [12:15:57]MH_I2C_Read... [12:15:57]Read from MH i2c: F0 09 00 [12:15:57]MH_I2C_Read... [12:15:57]Read from MH i2c: F0 09 00 39 15 00 7E F4 14 67 82 C9 CF 66 B3 [12:15:57]GetLastDocTimeStamp 1729426306 [12:15:57]current date 1729426558 [12:15:57]FM_GetShiftState [12:15:57]SAM_PROTO_GetShiftState [12:15:57]wFMCommunicate request_size=4 [12:15:57]MH_SAM_APDU [12:15:57]CAPDU: 80 13 01 00 [12:15:57]Write to MH i2c: E2 08 00 3A 15 80 13 01 00 00 00 00 00 CC [12:15:57]Write i2c OK [12:15:57]MH_I2C_Read... [12:15:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:57]Read from MH i2c: E2 [12:15:57]MH_I2C_Read... [12:15:57]Read from MH i2c: E2 0E 00 [12:15:57]MH_I2C_Read... [12:15:57]Read from MH i2c: E2 0E 00 3A 15 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 E6 [12:15:57]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:15:57]wFMCommunicate OK [12:15:57]SAM_PROTO_GetShiftState done [12:15:57]FM_GetShiftState done [12:15:57]opened in 1729383750 [12:15:57]opened+sec_in_day 1729470150 [12:15:57]quantity*price = 13045 [12:15:57]sum+1 = 13047 [12:15:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.46 НСП 1% : 1.15 НДС 12% : 13.85 Наличными: 0.00 Безнал.: 130.46 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 266 20.10.2024 12:15 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 227418 ФПД: 74677419243378 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T121558&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227418&fm=74677419243378&tin=02508201610067®Number=0000000000091685&sum=13046 [12:15:58]StoreToDocumentArchive [12:15:58]shift 533 fd 227418 [12:15:58]save to /storage/0533/doc_00227418 [12:15:58]save last doc name /storage/0533/doc_00227418 to /storage/kkm_last_doc_name [12:15:58]save OK [12:15:58]Clear old archive folders... [12:15:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:15:58]tlvbuf is B6F17B20 [12:15:58]SAM_PROTO_ClearQueue [12:15:58]wFMCommunicate request_size=4 [12:15:58]MH_SAM_APDU [12:15:58]CAPDU: 80 09 00 00 [12:15:58]Write to MH i2c: E2 08 00 47 15 80 09 00 00 00 00 00 00 CE [12:15:58]Write i2c OK [12:15:58]MH_I2C_Read... [12:15:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:15:58]Read from MH i2c: E2 [12:15:58]MH_I2C_Read... [12:15:58]Read from MH i2c: E2 03 00 [12:15:58]MH_I2C_Read... [12:15:58]Read from MH i2c: E2 03 00 47 15 00 90 00 D0 [12:15:58]RAPDU: 90 00 [12:15:58]wFMCommunicate OK [12:15:58]SAM_PROTO_ClearQueue done [12:15:58]KKMCreateOFDPacket [12:15:58]OFDProtocolAddRootSTLVToBuf [12:15:58]FM_MakeSignedData [12:15:58]FM_MakeSignedData [12:15:58]SAM_PROTO_SignData [12:15:58]wFMCommunicate request_size=4 [12:15:58]MH_SAM_APDU [12:15:58]CAPDU: 80 0D 01 02 [12:15:58]Write to MH i2c: E2 08 00 48 15 80 0D 01 02 00 00 00 00 D6 [12:15:58]Write i2c OK [12:15:58]MH_I2C_Read... [12:15:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:15:58]Read from MH i2c: E2 [12:15:58]MH_I2C_Read... [12:15:58]Read from MH i2c: E2 03 00 [12:15:58]MH_I2C_Read... [12:15:58]Read from MH i2c: E2 03 00 48 15 00 90 00 D1 [12:15:58]RAPDU: 90 00 [12:15:58]wFMCommunicate OK [12:15:58]wFMCommunicate request_size=255 [12:15:58]MH_SAM_APDU [12:15:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F6 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F6 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 7E F4 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5A 78 03 00 35 04 06 00 43 [12:15:58]Write to MH i2c: E2 02 01 49 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F6 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F6 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 7E F4 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5A 78 03 00 35 04 06 00 43 00 00 49 [12:15:58]Write i2c OK [12:15:58]MH_I2C_Read... [12:15:59]Read from MH i2c: E2 [12:15:59]MH_I2C_Read... [12:15:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:59]Read from MH i2c: E2 03 00 [12:15:59]MH_I2C_Read... [12:15:59]Read from MH i2c: E2 03 00 49 15 00 90 00 D2 [12:15:59]RAPDU: 90 00 [12:15:59]wFMCommunicate OK [12:15:59]wFMCommunicate request_size=10 [12:15:59]MH_SAM_APDU [12:15:59]CAPDU: 80 0D 02 02 05 EB 31 0B F7 72 [12:15:59]Write to MH i2c: E2 0D 00 4A 15 80 0D 02 02 05 00 EB 31 0B F7 72 00 00 73 [12:15:59]Write i2c OK [12:15:59]MH_I2C_Read... [12:15:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:59]Read from MH i2c: E2 [12:15:59]MH_I2C_Read... [12:15:59]Read from MH i2c: E2 03 00 [12:15:59]MH_I2C_Read... [12:15:59]Read from MH i2c: E2 03 00 4A 15 00 90 00 D3 [12:15:59]RAPDU: 90 00 [12:15:59]wFMCommunicate OK [12:15:59]wFMCommunicate request_size=4 [12:15:59]MH_SAM_APDU [12:15:59]CAPDU: 80 0D 03 02 [12:15:59]Write to MH i2c: E2 08 00 4B 15 80 0D 03 02 00 00 00 00 DB [12:15:59]Write i2c OK [12:15:59]MH_I2C_Read... [12:15:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:15:59]Read from MH i2c: E2 [12:15:59]MH_I2C_Read... [12:15:59]Read from MH i2c: E2 0B 00 [12:15:59]MH_I2C_Read... [12:15:59]Read from MH i2c: E2 0B 00 4B 15 00 6F CE D2 C5 5E 56 45 92 90 00 3B [12:15:59]RAPDU: 6F CE D2 C5 5E 56 45 92 90 00 [12:15:59]wFMCommunicate OK [12:15:59]SAM_PROTO_SignData done [12:15:59]FM_MakeSignedData done [12:15:59]CreateOFDProtocolMessage [12:15:59]wFMCommunicate request_size=4 [12:15:59]MH_SAM_APDU [12:15:59]CAPDU: 80 11 00 00 [12:15:59]Write to MH i2c: E2 08 00 4C 15 80 11 00 00 00 00 00 00 DB [12:15:59]Write i2c OK [12:15:59]MH_I2C_Read... [12:15:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:59]Read from MH i2c: E2 [12:15:59]MH_I2C_Read... [12:15:59]Read from MH i2c: E2 17 00 [12:15:59]MH_I2C_Read... [12:15:59]Read from MH i2c: E2 17 00 4C 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 32 [12:15:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:15:59]wFMCommunicate OK [12:15:59]CreateOFDProtocolMessage done [12:15:59]OFDSenderStorePacket 227418 [12:15:59]StoreOFDPacket docnum=227418 [12:15:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 8A D5 07 01 F0 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F6 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F6 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 7E F4 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5A 78 03 00 35 04 06 00 43 EB 31 0B F7 72 6F CE D2 C5 5E 56 45 92 [12:15:59]CheckFolder [12:15:59]dirname=/storage/ofd_packets [12:15:59]CheckFolder done [12:15:59]ProducePacketName [12:15:59]name=ofd_packets/00227418 [12:15:59]NVStorageSaveData ofd_packets/00227418 [12:15:59]File name is /storage/ofd_packets/00227418 [12:15:59]Write 301 bytes [12:15:59]NVStorageSaveData done [12:15:59]OFDSenderStorePacket done [12:15:59]KKMCreateOFDPacket done [12:15:59]NVStorageSaveData kkm_last_timestamp [12:15:59]File name is /storage/kkm_last_timestamp [12:15:59]Write 4 bytes [12:15:59]NVStorageSaveData done [12:15:59]ExternCall_PrintAddStr [12:15:59]wPrintStart [12:15:59]Write to MH i2c: 01 00 00 4D 15 62 [12:15:59]Write i2c OK [12:15:59]MH_I2C_Read... [12:15:59]Read from MH i2c: 01 [12:15:59]MH_I2C_Read... [12:15:59]Read from MH i2c: 01 07 00 [12:15:59]MH_I2C_Read... [12:15:59]Read from MH i2c: 01 07 00 4D 15 00 00 00 00 00 FF 0F 77 [12:15:59]RasterBufferAndPrint [12:15:59]line Счет N : (1)1962938 [12:15:59]line ИНН: 02508201610067 [12:15:59]line Контрольно-Кассовый Чек [12:15:59]line ПРОДАЖА [12:15:59]line ТРК (МРК, ГНК) : 43 [12:15:59]line Товар: 2710124130 [12:15:59]line Аи-92-К-5 [12:15:59]line 1.950 * 66.90 [12:15:59]line = 130.46 [12:15:59]line НДС 12% НСП 1% [12:15:59]line > о реализуемом товаре [12:15:59]line ИТОГО: 130.46 [12:15:59]line НСП 1% : 1.15 [12:15:59]line НДС 12% : 13.85 [12:15:59]line Наличными: 0.00 [12:15:59]line Безнал.: 130.46 [12:15:59]line Место: АЗС № 133 "Партнер Нефть" [12:15:59]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:15:59]line СНО: Общий режим [12:15:59]line Чек 266 20.10.2024 12:15 [12:15:59]line Смена: 533 ФФД: 1.0 [12:15:59]line ЗНМ: 0300000091 [12:15:59]line РНМ: 0000000000091685 [12:15:59]line Версия ККМ: 001 [12:15:59]line Платежная система: Mbank [12:15:59]line ФМ: 0000000000871839 [12:15:59]line ФД: 227418 [12:15:59]line ФПД: 74677419243378 [12:15:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T121558&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227418&fm=74677419243378&tin=02508201610067®Number=0000000000091685&sum=13046 [12:15:59]OFD Sender: Processing packet 227418 [packets to send 38, broken 37] [12:15:59]ProducePacketName [12:15:59]name=ofd_packets/00227418 [12:15:59]OFD Sender: To server: pG, [12:15:59]CommunicateWithHost lk.salyk.kg:30040 [12:15:59]ConnectInit lk.salyk.kg [12:15:59]written 0, free lines is 4095 [12:15:59]Connected sock=10 [12:15:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 8A D5 07 01 F0 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F6 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F6 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 7E F4 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5A 78 03 00 35 04 06 00 43 EB 31 0B F7 72 6F CE D2 C5 5E 56 45 92 [12:15: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 33 39 4F 00 00 00 AD 51 47 00 D8 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 33 39 10 04 04 00 5A 78 03 00 F4 03 04 00 7D 9F 14 67 B6 04 01 00 00 94 1E A9 97 C0 B1 F6 2B [12:15:59]CommunicateWithHost err = 0 [12:15:59]CheckOFDResponse [12:15:59]1017 (14) - 77093643461234 [12:15:59]1041 (16) - 0000000000871839 [12:15:59]1040 (4) - 227418 [12:15:59]1012 (4) - 20.10.2024 06:13 [12:15:59]1206 (1) - 0 [12:15:59]OFD Sender: Remove packet 227418 [12:15:59]ProducePacketName [12:15:59]name=ofd_packets/00227418 [12:15:59]NVStorageDeleteData [12:16:00]Write to MH i2c: 01 00 00 75 15 8A [12:16:00]Write i2c OK [12:16:00]MH_I2C_Read... [12:16:00]Read from MH i2c: 01 [12:16:00]MH_I2C_Read... [12:16:00]Read from MH i2c: 01 07 00 [12:16:00]MH_I2C_Read... [12:16:00]Read from MH i2c: 01 07 00 75 15 00 00 00 00 00 39 0D D7 [12:16:00]RasterBufferAndPrint [12:16:00]line [12:16:00]line [12:16:00]line [12:16:00]line [12:16:00]line [12:16:00]written 0, free lines is 3391 [12:16:00]process_action close_receipt done [12:16:00]requested_data is exist [12:16:00]produce_requested_data [12:16:00]requested_item fm.sn is exist - process it [12:16:00]wFMCommunicate request_size=4 [12:16:00]MH_SAM_APDU [12:16:00]CAPDU: 80 11 00 00 [12:16:00]Write to MH i2c: E2 08 00 7C 15 80 11 00 00 00 00 00 00 0B [12:16:00]Write i2c OK [12:16:00]MH_I2C_Read... [12:16:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:00]Read from MH i2c: E2 [12:16:00]MH_I2C_Read... [12:16:00]Read from MH i2c: E2 17 00 [12:16:00]MH_I2C_Read... [12:16:00]Read from MH i2c: E2 17 00 7C 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 62 [12:16:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:16:00]wFMCommunicate OK [12:16:00]requested_item fd.num is exist - process it [12:16:00]SAM_PROTO_GetFieldsCounters [12:16:00]wFMCommunicate request_size=4 [12:16:00]MH_SAM_APDU [12:16:00]CAPDU: 80 13 00 00 [12:16:00]Write to MH i2c: E2 08 00 7D 15 80 13 00 00 00 00 00 00 0E [12:16:00]Write i2c OK [12:16:00]MH_I2C_Read... [12:16:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:16:00]Read from MH i2c: E2 [12:16:00]MH_I2C_Read... [12:16:00]Read from MH i2c: E2 62 00 [12:16:00]MH_I2C_Read... [12:16:00]Read from MH i2c: E2 62 00 7D 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 5A 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 44 [12: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 5A 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:16:00]wFMCommunicate OK [12:16:00]SAM_PROTO_GetFieldsCounters done [12:16:00]requested_item shift.num is exist - process it [12:16:00]requested_item shift.opened is exist - process it [12:16:00]req_shift_opened [12:16:00]FM_GetShiftState [12:16:00]SAM_PROTO_GetShiftState [12:16:00]wFMCommunicate request_size=4 [12:16:00]MH_SAM_APDU [12:16:00]CAPDU: 80 13 01 00 [12:16:00]Write to MH i2c: E2 08 00 7E 15 80 13 01 00 00 00 00 00 10 [12:16:00]Write i2c OK [12:16:00]MH_I2C_Read... [12:16:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:00]Read from MH i2c: E2 [12:16:00]MH_I2C_Read... [12:16:00]Read from MH i2c: E2 0E 00 [12:16:00]MH_I2C_Read... [12:16:00]Read from MH i2c: E2 0E 00 7E 15 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 2A [12:16:00]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:16:00]wFMCommunicate OK [12:16:00]SAM_PROTO_GetShiftState done [12:16:00]FM_GetShiftState done [12:16:00]req_shift_opened done [12:16:00]requested_item shift.open_date is exist - process it [12:16:00]req_shift_open_date [12:16:00]req_shift_open_date done [12:16:00]produce_requested_data done [12:16:00]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227418,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [12:16:00]process_action_free close_receipt [12:16:00]json_value_free [12:16:00]json_value_free done [12:16:00]process_json_proto returns [12:16:00]Send response to host [12:16:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227418,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [12:16:00]free response buf [12:16:00]execute_script done [12:16:00]execute_script returns [12:16:00]free content buf [12:16:00]Sock 8.Close socket [12:16:00]Sock 8.Thread stoped [12:16:00]OFD Sender: No OFD packet to send [12:16:05]OFD Sender: No OFD packet to send [12:16:10]OFD Sender: No OFD packet to send [12:16:15]OFD Sender: No OFD packet to send [12:16:20]OFD Sender: No OFD packet to send [12:16:22]accept exits with 9 [12:16:22]New connection [12:16:22]New thread 3066686820 created [12:16:22]Thread 3066543460 joined [12:16:22]Waiting for new connection... [12:16:22] Sock 9.Parse request [12:16:22]Sock 9.Check first char [12:16:22]Sock 9.First char is OK [12:16:22]request: POST /json_proto HTTP/1.0 [12:16:22]Method: POST [12:16:22]URL: /json_proto [12:16:22]Method is POST - this is cgi request [12:16:22]url: /json_proto [12:16:22]query_string will be loaded in cgi processing [12:16:22]execute_cgi json_proto POST (null) [12:16:22]execute_cgi path=json_proto method=POST [12:16:22]POST find Content-Length [12:16:22]Host: 172.17.44.195:8080 [12:16:22]Content-Length: 979 [12:16:22]Content-Type: application/json [12:16:22] [12:16:22]POST finish read [12:16:22]Found Content-Length = 979 [12:16:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962937", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 53.200, "sum" : 4000.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 133\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 53.20 \u0441\u043E\u043C", "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:22]execute_script... [12: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)1962937", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 53.200, "sum" : 4000.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 133\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 53.20 \u0441\u043E\u043C", "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:22]POST & json_proto [12:16:22]process_json_proto [12:16:22]json parsed OK: [12:16:22]protocol is kg_v1.0 [12:16:22]action value=close_receipt [12:16:22]process_action close_receipt [12:16:22]cmd_close_receipt [12:16:22]MH_GetDate [12:16:22]Write to MH i2c: F0 00 00 7F 15 83 [12:16:22]Write i2c OK [12:16:22]MH_I2C_Read... [12:16:22]Read from MH i2c: F0 [12:16:22]MH_I2C_Read... [12:16:22]Read from MH i2c: F0 09 00 [12:16:22]MH_I2C_Read... [12:16:22]Read from MH i2c: F0 09 00 7F 15 00 97 F4 14 67 82 C9 CF 66 12 [12:16:22]GetLastDocTimeStamp 1729426558 [12:16:22]current date 1729426583 [12:16:22]FM_GetShiftState [12:16:22]SAM_PROTO_GetShiftState [12:16:22]wFMCommunicate request_size=4 [12:16:22]MH_SAM_APDU [12:16:22]CAPDU: 80 13 01 00 [12:16:22]Write to MH i2c: E2 08 00 80 15 80 13 01 00 00 00 00 00 12 [12:16:22]Write i2c OK [12:16:22]MH_I2C_Read... [12:16:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:22]Read from MH i2c: E2 [12:16:22]MH_I2C_Read... [12:16:22]Read from MH i2c: E2 0E 00 [12:16:22]MH_I2C_Read... [12:16:22]Read from MH i2c: E2 0E 00 80 15 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 2C [12:16:22]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:16:22]wFMCommunicate OK [12:16:22]SAM_PROTO_GetShiftState done [12:16:22]FM_GetShiftState done [12:16:22]opened in 1729383750 [12:16:22]opened+sec_in_day 1729470150 [12:16:22]quantity*price = 400064 [12:16:22]sum+1 = 400065 [12:16:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.85 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 267 20.10.2024 12:16 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Дисконтная программа ДТ номер 133 сэкономлено 53.20 сом ФМ: 0000000000871839 ФД: 227419 ФПД: 28337887665368 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T121623&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227419&fm=28337887665368&tin=02508201610067®Number=0000000000091685&sum=400000 [12:16:23]StoreToDocumentArchive [12:16:23]shift 533 fd 227419 [12:16:23]save to /storage/0533/doc_00227419 [12:16:23]save last doc name /storage/0533/doc_00227419 to /storage/kkm_last_doc_name [12:16:23]save OK [12:16:23]Clear old archive folders... [12:16:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:16:23]tlvbuf is B6D67570 [12:16:23]SAM_PROTO_ClearQueue [12:16:23]wFMCommunicate request_size=4 [12:16:23]MH_SAM_APDU [12:16:23]CAPDU: 80 09 00 00 [12:16:23]Write to MH i2c: E2 08 00 8D 15 80 09 00 00 00 00 00 00 14 [12:16:23]Write i2c OK [12:16:23]MH_I2C_Read... [12:16:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:16:23]Read from MH i2c: E2 [12:16:23]MH_I2C_Read... [12:16:23]Read from MH i2c: E2 03 00 [12:16:23]MH_I2C_Read... [12:16:23]Read from MH i2c: E2 03 00 8D 15 00 90 00 16 [12:16:23]RAPDU: 90 00 [12:16:23]wFMCommunicate OK [12:16:23]SAM_PROTO_ClearQueue done [12:16:23]KKMCreateOFDPacket [12:16:23]OFDProtocolAddRootSTLVToBuf [12:16:23]FM_MakeSignedData [12:16:23]FM_MakeSignedData [12:16:23]SAM_PROTO_SignData [12:16:23]wFMCommunicate request_size=4 [12:16:23]MH_SAM_APDU [12:16:23]CAPDU: 80 0D 01 02 [12:16:23]Write to MH i2c: E2 08 00 8E 15 80 0D 01 02 00 00 00 00 1C [12:16:23]Write i2c OK [12:16:23]MH_I2C_Read... [12:16:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:16:23]Read from MH i2c: E2 [12:16:23]MH_I2C_Read... [12:16:23]Read from MH i2c: E2 03 00 [12:16:23]MH_I2C_Read... [12:16:23]Read from MH i2c: E2 03 00 8E 15 00 90 00 17 [12:16:23]RAPDU: 90 00 [12:16:23]wFMCommunicate OK [12:16:23]wFMCommunicate request_size=255 [12:16:23]MH_SAM_APDU [12:16:23]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D0 CF 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 C0 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 97 F4 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5B 78 03 00 35 04 06 00 19 C5 ED BA [12:16:23]Write to MH i2c: E2 02 01 8F 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 D0 CF 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 C0 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 97 F4 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5B 78 03 00 35 04 06 00 19 C5 ED BA 00 00 BC [12:16:23]Write i2c OK [12:16:23]MH_I2C_Read... [12:16:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:24]Read from MH i2c: E2 [12:16:24]MH_I2C_Read... [12:16:24]Read from MH i2c: E2 03 00 [12:16:24]MH_I2C_Read... [12:16:24]Read from MH i2c: E2 03 00 8F 15 00 90 00 18 [12:16:24]RAPDU: 90 00 [12:16:24]wFMCommunicate OK [12:16:24]wFMCommunicate request_size=7 [12:16:24]MH_SAM_APDU [12:16:24]CAPDU: 80 0D 02 02 02 5C D8 [12:16:24]Write to MH i2c: E2 0A 00 90 15 80 0D 02 02 02 00 5C D8 00 00 57 [12:16:24]Write i2c OK [12:16:24]MH_I2C_Read... [12:16:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:24]Read from MH i2c: E2 [12:16:24]MH_I2C_Read... [12:16:24]Read from MH i2c: E2 03 00 [12:16:24]MH_I2C_Read... [12:16:24]Read from MH i2c: E2 03 00 90 15 00 90 00 19 [12:16:24]RAPDU: 90 00 [12:16:24]wFMCommunicate OK [12:16:24]wFMCommunicate request_size=4 [12:16:24]MH_SAM_APDU [12:16:24]CAPDU: 80 0D 03 02 [12:16:24]Write to MH i2c: E2 08 00 91 15 80 0D 03 02 00 00 00 00 21 [12:16:24]Write i2c OK [12:16:24]MH_I2C_Read... [12:16:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:16:24]Read from MH i2c: E2 [12:16:24]MH_I2C_Read... [12:16:24]Read from MH i2c: E2 0B 00 [12:16:24]MH_I2C_Read... [12:16:24]Read from MH i2c: E2 0B 00 91 15 00 2C 22 57 44 48 C1 94 79 90 00 21 [12:16:24]RAPDU: 2C 22 57 44 48 C1 94 79 90 00 [12:16:24]wFMCommunicate OK [12:16:24]SAM_PROTO_SignData done [12:16:24]FM_MakeSignedData done [12:16:24]CreateOFDProtocolMessage [12:16:24]wFMCommunicate request_size=4 [12:16:24]MH_SAM_APDU [12:16:24]CAPDU: 80 11 00 00 [12:16:24]Write to MH i2c: E2 08 00 92 15 80 11 00 00 00 00 00 00 21 [12:16:24]Write i2c OK [12:16:24]MH_I2C_Read... [12:16:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:24]Read from MH i2c: E2 [12:16:24]MH_I2C_Read... [12:16:24]Read from MH i2c: E2 17 00 [12:16:24]MH_I2C_Read... [12:16:24]Read from MH i2c: E2 17 00 92 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 78 [12:16:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:16:24]wFMCommunicate OK [12:16:24]CreateOFDProtocolMessage done [12:16:24]OFDSenderStorePacket 227419 [12:16:24]StoreOFDPacket docnum=227419 [12:16:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 A0 41 04 01 29 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 35 FF 03 08 00 03 D0 CF 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 C0 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 97 F4 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5B 78 03 00 35 04 06 00 19 C5 ED BA 5C D8 2C 22 57 44 48 C1 94 79 [12:16:24]CheckFolder [12:16:24]dirname=/storage/ofd_packets [12:16:24]CheckFolder done [12:16:24]ProducePacketName [12:16:24]name=ofd_packets/00227419 [12:16:24]NVStorageSaveData ofd_packets/00227419 [12:16:24]File name is /storage/ofd_packets/00227419 [12:16:24]Write 298 bytes [12:16:24]NVStorageSaveData done [12:16:24]OFDSenderStorePacket done [12:16:24]KKMCreateOFDPacket done [12:16:24]NVStorageSaveData kkm_last_timestamp [12:16:24]File name is /storage/kkm_last_timestamp [12:16:24]Write 4 bytes [12:16:24]NVStorageSaveData done [12:16:24]ExternCall_PrintAddStr [12:16:24]wPrintStart [12:16:24]Write to MH i2c: 01 00 00 93 15 A8 [12:16:24]Write i2c OK [12:16:24]MH_I2C_Read... [12:16:24]Read from MH i2c: 01 [12:16:24]MH_I2C_Read... [12:16:24]Read from MH i2c: 01 07 00 [12:16:24]MH_I2C_Read... [12:16:24]Read from MH i2c: 01 07 00 93 15 00 00 00 00 00 FF 0F BD [12:16:24]RasterBufferAndPrint [12:16:24]line Счет N : (1)1962937 [12:16:24]line ИНН: 02508201610067 [12:16:24]line Контрольно-Кассовый Чек [12:16:24]line ПРОДАЖА [12:16:24]line ТРК (МРК, ГНК) : 61 [12:16:24]line Товар: 2710194210 [12:16:24]line ДТ-К-5 [12:16:24]line 53.200 * 75.20 [12:16:24]line = 4000.64 [12:16:24]line НДС 12% НСП 1% [12:16:24]line > о реализуемом товаре [12:16:24]line ОКРУГЛЕНИЕ: -0.64 [12:16:24]line ИТОГО: 4000.00 [12:16:24]line Внесено: 4000.00 [12:16:24]line СДАЧА: 0.00 [12:16:24]line НСП 1% : 35.40 [12:16:24]line НДС 12% : 424.85 [12:16:24]line Наличными: 4000.00 [12:16:24]line Безнал.: 0.00 [12:16:24]line Место: АЗС № 133 "Партнер Нефть" [12:16:24]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:16:24]line СНО: Общий режим [12:16:24]line Чек 267 20.10.2024 12:16 [12:16:24]line Смена: 533 ФФД: 1.0 [12:16:24]line ЗНМ: 0300000091 [12:16:24]line РНМ: 0000000000091685 [12:16:24]line Версия ККМ: 001 [12:16:24]line [12:16:24]line Дисконтная программа [12:16:24]line ДТ [12:16:24]line номер 133 [12:16:24]line сэкономлено 53.20 сом [12:16:24]line ФМ: 0000000000871839 [12:16:24]line ФД: 227419 [12:16:24]line ФПД: 28337887665368 [12:16:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T121623&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227419&fm=28337887665368&tin=02508201610067®Number=0000000000091685&sum=400000 [12:16:24]OFD Sender: Processing packet 227419 [packets to send 38, broken 37] [12:16:24]ProducePacketName [12:16:24]name=ofd_packets/00227419 [12:16:24]OFD Sender: To server: pG, [12:16:24]CommunicateWithHost lk.salyk.kg:30040 [12:16:24]ConnectInit lk.salyk.kg [12:16:24]written 0, free lines is 4095 [12:16:24]Connected sock=11 [12: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 33 39 0C 01 00 00 A0 41 04 01 29 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 35 FF 03 08 00 03 D0 CF 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 C0 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 97 F4 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5B 78 03 00 35 04 06 00 19 C5 ED BA 5C D8 2C 22 57 44 48 C1 94 79 [12: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 33 39 4F 00 00 00 D1 7B 47 00 9B 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 33 39 10 04 04 00 5B 78 03 00 F4 03 04 00 96 9F 14 67 B6 04 01 00 00 FA E5 D1 BF 30 EE 21 3E [12:16:24]CommunicateWithHost err = 0 [12:16:24]CheckOFDResponse [12:16:24]1017 (14) - 77093643461234 [12:16:24]1041 (16) - 0000000000871839 [12:16:24]1040 (4) - 227419 [12:16:24]1012 (4) - 20.10.2024 06:13 [12:16:24]1206 (1) - 0 [12:16:24]OFD Sender: Remove packet 227419 [12:16:24]ProducePacketName [12:16:24]name=ofd_packets/00227419 [12:16:24]NVStorageDeleteData [12:16:25]Write to MH i2c: 01 00 00 C2 15 D7 [12:16:25]Write i2c OK [12:16:25]MH_I2C_Read... [12:16:25]Read from MH i2c: 01 [12:16:25]MH_I2C_Read... [12:16:25]Read from MH i2c: 01 07 00 [12:16:25]MH_I2C_Read... [12:16:25]Read from MH i2c: 01 07 00 C2 15 00 00 00 00 00 B7 0C A1 [12:16:25]RasterBufferAndPrint [12:16:25]line [12:16:25]line [12:16:25]line [12:16:25]line [12:16:25]line [12:16:25]written 0, free lines is 3263 [12:16:25]process_action close_receipt done [12:16:25]requested_data is exist [12:16:25]produce_requested_data [12:16:25]requested_item fm.sn is exist - process it [12:16:25]wFMCommunicate request_size=4 [12:16:25]MH_SAM_APDU [12:16:25]CAPDU: 80 11 00 00 [12:16:25]Write to MH i2c: E2 08 00 C9 15 80 11 00 00 00 00 00 00 58 [12:16:25]Write i2c OK [12:16:25]MH_I2C_Read... [12:16:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:25]Read from MH i2c: E2 [12:16:25]MH_I2C_Read... [12:16:25]Read from MH i2c: E2 17 00 [12:16:25]MH_I2C_Read... [12:16:25]Read from MH i2c: E2 17 00 C9 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 AF [12:16:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:16:25]wFMCommunicate OK [12:16:25]requested_item fd.num is exist - process it [12:16:25]SAM_PROTO_GetFieldsCounters [12:16:25]wFMCommunicate request_size=4 [12:16:25]MH_SAM_APDU [12:16:25]CAPDU: 80 13 00 00 [12:16:25]Write to MH i2c: E2 08 00 CA 15 80 13 00 00 00 00 00 00 5B [12:16:25]Write i2c OK [12:16:25]MH_I2C_Read... [12:16:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:16:25]Read from MH i2c: E2 [12:16:25]MH_I2C_Read... [12:16:25]Read from MH i2c: E2 62 00 [12:16:25]MH_I2C_Read... [12:16:25]Read from MH i2c: E2 62 00 CA 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 5B 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 95 [12:16: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 5B 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:16:25]wFMCommunicate OK [12:16:25]SAM_PROTO_GetFieldsCounters done [12:16:25]requested_item shift.num is exist - process it [12:16:25]requested_item shift.opened is exist - process it [12:16:25]req_shift_opened [12:16:25]FM_GetShiftState [12:16:25]SAM_PROTO_GetShiftState [12:16:25]wFMCommunicate request_size=4 [12:16:25]MH_SAM_APDU [12:16:25]CAPDU: 80 13 01 00 [12:16:25]Write to MH i2c: E2 08 00 CB 15 80 13 01 00 00 00 00 00 5D [12:16:25]Write i2c OK [12:16:25]MH_I2C_Read... [12:16:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:25]Read from MH i2c: E2 [12:16:25]MH_I2C_Read... [12:16:25]Read from MH i2c: E2 0E 00 [12:16:25]MH_I2C_Read... [12:16:25]Read from MH i2c: E2 0E 00 CB 15 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 77 [12:16:25]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:16:25]wFMCommunicate OK [12:16:25]SAM_PROTO_GetShiftState done [12:16:25]FM_GetShiftState done [12:16:25]req_shift_opened done [12:16:25]requested_item shift.open_date is exist - process it [12:16:25]req_shift_open_date [12:16:25]req_shift_open_date done [12:16:25]produce_requested_data done [12:16:25]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227419,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [12:16:25]process_action_free close_receipt [12:16:25]json_value_free [12:16:25]json_value_free done [12:16:25]process_json_proto returns [12:16:25]Send response to host [12:16:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227419,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [12:16:25]free response buf [12:16:25]execute_script done [12:16:25]execute_script returns [12:16:25]free content buf [12:16:25]Sock 9.Close socket [12:16:25]Sock 9.Thread stoped [12:16:25]OFD Sender: No OFD packet to send [12:16:30]OFD Sender: No OFD packet to send [12:16:35]OFD Sender: No OFD packet to send [12:16:40]OFD Sender: No OFD packet to send [12:16:45]OFD Sender: No OFD packet to send [12:16:50]OFD Sender: No OFD packet to send [12:16:55]OFD Sender: No OFD packet to send [12:17:00]OFD Sender: No OFD packet to send [12:17:05]OFD Sender: No OFD packet to send [12:17:10]OFD Sender: No OFD packet to send [12:17:15]OFD Sender: No OFD packet to send [12:17:20]OFD Sender: No OFD packet to send [12:17:25]OFD Sender: No OFD packet to send [12:17:30]OFD Sender: No OFD packet to send [12:17:35]OFD Sender: No OFD packet to send [12:17:40]OFD Sender: No OFD packet to send [12:17:45]OFD Sender: No OFD packet to send [12:17:50]OFD Sender: No OFD packet to send [12:17:53]accept exits with 8 [12:17:53]New connection [12:17:53]New thread 3066543460 created [12:17:53]Thread 3066686820 joined [12:17:53]Waiting for new connection... [12:17:53] Sock 8.Parse request [12:17:53]Sock 8.Check first char [12:17:53]Sock 8.First char is OK [12:17:53]request: POST /json_proto HTTP/1.0 [12:17:53]Method: POST [12:17:53]URL: /json_proto [12:17:53]Method is POST - this is cgi request [12:17:53]url: /json_proto [12:17:53]query_string will be loaded in cgi processing [12:17:53]execute_cgi json_proto POST (null) [12:17:53]execute_cgi path=json_proto method=POST [12:17:53]POST find Content-Length [12:17:53]Host: 172.17.44.195:8080 [12:17:53]Content-Length: 683 [12:17:53]Content-Type: application/json [12:17:53] [12:17:53]POST finish read [12:17:53]Found Content-Length = 683 [12:17:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962939", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:53]execute_script... [12:17:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962939", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:53]POST & json_proto [12:17:53]process_json_proto [12:17:53]json parsed OK: [12:17:53]protocol is kg_v1.0 [12:17:53]action value=close_receipt [12:17:53]process_action close_receipt [12:17:53]cmd_close_receipt [12:17:53]MH_GetDate [12:17:53]Write to MH i2c: F0 00 00 CC 15 D0 [12:17:53]Write i2c OK [12:17:53]MH_I2C_Read... [12:17:53]Read from MH i2c: F0 [12:17:53]MH_I2C_Read... [12:17:53]Read from MH i2c: F0 09 00 [12:17:53]MH_I2C_Read... [12:17:53]Read from MH i2c: F0 09 00 CC 15 00 F2 F4 14 67 82 C9 CF 66 BA [12:17:53]GetLastDocTimeStamp 1729426583 [12:17:53]current date 1729426674 [12:17:53]FM_GetShiftState [12:17:53]SAM_PROTO_GetShiftState [12:17:53]wFMCommunicate request_size=4 [12:17:53]MH_SAM_APDU [12:17:53]CAPDU: 80 13 01 00 [12:17:53]Write to MH i2c: E2 08 00 CD 15 80 13 01 00 00 00 00 00 5F [12:17:53]Write i2c OK [12:17:53]MH_I2C_Read... [12:17:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:53]Read from MH i2c: E2 [12:17:53]MH_I2C_Read... [12:17:53]Read from MH i2c: E2 0E 00 [12:17:53]MH_I2C_Read... [12:17:53]Read from MH i2c: E2 0E 00 CD 15 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 79 [12:17:53]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:17:53]wFMCommunicate OK [12:17:53]SAM_PROTO_GetShiftState done [12:17:53]FM_GetShiftState done [12:17:53]opened in 1729383750 [12:17:53]opened+sec_in_day 1729470150 [12:17:53]quantity*price = 100021 [12:17:53]sum+1 = 100023 [12:17:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 268 20.10.2024 12:17 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227420 ФПД: 163963621185819 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T121754&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227420&fm=163963621185819&tin=02508201610067®Number=0000000000091685&sum=100000 [12:17:55]StoreToDocumentArchive [12:17:55]shift 533 fd 227420 [12:17:55]save to /storage/0533/doc_00227420 [12:17:55]save last doc name /storage/0533/doc_00227420 to /storage/kkm_last_doc_name [12:17:55]save OK [12:17:55]Clear old archive folders... [12:17:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:17:55]tlvbuf is 0188D2F0 [12:17:55]SAM_PROTO_ClearQueue [12:17:55]wFMCommunicate request_size=4 [12:17:55]MH_SAM_APDU [12:17:55]CAPDU: 80 09 00 00 [12:17:55]Write to MH i2c: E2 08 00 DA 15 80 09 00 00 00 00 00 00 61 [12:17:55]Write i2c OK [12:17:55]MH_I2C_Read... [12:17:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:17:55]Read from MH i2c: E2 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: E2 03 00 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: E2 03 00 DA 15 00 90 00 63 [12:17:55]RAPDU: 90 00 [12:17:55]wFMCommunicate OK [12:17:55]SAM_PROTO_ClearQueue done [12:17:55]KKMCreateOFDPacket [12:17:55]OFDProtocolAddRootSTLVToBuf [12:17:55]FM_MakeSignedData [12:17:55]FM_MakeSignedData [12:17:55]SAM_PROTO_SignData [12:17:55]wFMCommunicate request_size=4 [12:17:55]MH_SAM_APDU [12:17:55]CAPDU: 80 0D 01 02 [12:17:55]Write to MH i2c: E2 08 00 DB 15 80 0D 01 02 00 00 00 00 69 [12:17:55]Write i2c OK [12:17:55]MH_I2C_Read... [12:17:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:17:55]Read from MH i2c: E2 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: E2 03 00 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: E2 03 00 DB 15 00 90 00 64 [12:17:55]RAPDU: 90 00 [12:17:55]wFMCommunicate OK [12:17:55]wFMCommunicate request_size=255 [12:17:55]MH_SAM_APDU [12:17:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 F2 F4 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5C 78 03 00 35 04 06 00 95 [12:17:55]Write to MH i2c: E2 02 01 DC 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 F2 F4 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5C 78 03 00 35 04 06 00 95 00 00 0E [12:17:55]Write i2c OK [12:17:55]MH_I2C_Read... [12:17:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:55]Read from MH i2c: E2 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: E2 03 00 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: E2 03 00 DC 15 00 90 00 65 [12:17:55]RAPDU: 90 00 [12:17:55]wFMCommunicate OK [12:17:55]wFMCommunicate request_size=10 [12:17:55]MH_SAM_APDU [12:17:55]CAPDU: 80 0D 02 02 05 1F C1 65 99 1B [12:17:55]Write to MH i2c: E2 0D 00 DD 15 80 0D 02 02 05 00 1F C1 65 99 1B 00 00 6F [12:17:55]Write i2c OK [12:17:55]MH_I2C_Read... [12:17:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:55]Read from MH i2c: E2 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: E2 03 00 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: E2 03 00 DD 15 00 90 00 66 [12:17:55]RAPDU: 90 00 [12:17:55]wFMCommunicate OK [12:17:55]wFMCommunicate request_size=4 [12:17:55]MH_SAM_APDU [12:17:55]CAPDU: 80 0D 03 02 [12:17:55]Write to MH i2c: E2 08 00 DE 15 80 0D 03 02 00 00 00 00 6E [12:17:55]Write i2c OK [12:17:55]MH_I2C_Read... [12:17:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:17:55]OFD Sender: No OFD packet to send [12:17:55]Read from MH i2c: E2 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: E2 0B 00 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: E2 0B 00 DE 15 00 E5 24 3A 2D AA 84 3D EC 90 00 36 [12:17:55]RAPDU: E5 24 3A 2D AA 84 3D EC 90 00 [12:17:55]wFMCommunicate OK [12:17:55]SAM_PROTO_SignData done [12:17:55]FM_MakeSignedData done [12:17:55]CreateOFDProtocolMessage [12:17:55]wFMCommunicate request_size=4 [12:17:55]MH_SAM_APDU [12:17:55]CAPDU: 80 11 00 00 [12:17:55]Write to MH i2c: E2 08 00 DF 15 80 11 00 00 00 00 00 00 6E [12:17:55]Write i2c OK [12:17:55]MH_I2C_Read... [12:17:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:55]Read from MH i2c: E2 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: E2 17 00 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: E2 17 00 DF 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C5 [12:17:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:17:55]wFMCommunicate OK [12:17:55]CreateOFDProtocolMessage done [12:17:55]OFDSenderStorePacket 227420 [12:17:55]StoreOFDPacket docnum=227420 [12:17:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 4D 12 07 01 EE 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 F2 F4 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5C 78 03 00 35 04 06 00 95 1F C1 65 99 1B E5 24 3A 2D AA 84 3D EC [12:17:55]CheckFolder [12:17:55]dirname=/storage/ofd_packets [12:17:55]CheckFolder done [12:17:55]ProducePacketName [12:17:55]name=ofd_packets/00227420 [12:17:55]NVStorageSaveData ofd_packets/00227420 [12:17:55]File name is /storage/ofd_packets/00227420 [12:17:55]Write 301 bytes [12:17:55]NVStorageSaveData done [12:17:55]OFDSenderStorePacket done [12:17:55]KKMCreateOFDPacket done [12:17:55]NVStorageSaveData kkm_last_timestamp [12:17:55]File name is /storage/kkm_last_timestamp [12:17:55]Write 4 bytes [12:17:55]NVStorageSaveData done [12:17:55]ExternCall_PrintAddStr [12:17:55]wPrintStart [12:17:55]Write to MH i2c: 01 00 00 E0 15 F5 [12:17:55]Write i2c OK [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: 01 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: 01 07 00 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: 01 07 00 E0 15 00 00 00 00 00 FF 0F 0A [12:17:55]RasterBufferAndPrint [12:17:55]line Счет N : (1)1962939 [12:17:55]line ИНН: 02508201610067 [12:17:55]line Контрольно-Кассовый Чек [12:17:55]line ПРОДАЖА [12:17:55]line ТРК (МРК, ГНК) : 44 [12:17:55]line Товар: 2710124500 [12:17:55]line Аи-95-К-5 [12:17:55]line 13.480 * 74.20 [12:17:55]line = 1000.22 [12:17:55]line НДС 12% НСП 1% [12:17:55]line > о реализуемом товаре [12:17:55]line ОКРУГЛЕНИЕ: -0.22 [12:17:55]line ИТОГО: 1000.00 [12:17:55]line Внесено: 1000.00 [12:17:55]line СДАЧА: 0.00 [12:17:55]line НСП 1% : 8.85 [12:17:55]line НДС 12% : 106.22 [12:17:55]line Наличными: 1000.00 [12:17:55]line Безнал.: 0.00 [12:17:55]line Место: АЗС № 133 "Партнер Нефть" [12:17:55]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:17:55]line СНО: Общий режим [12:17:55]line Чек 268 20.10.2024 12:17 [12:17:55]line Смена: 533 ФФД: 1.0 [12:17:55]line ЗНМ: 0300000091 [12:17:55]line РНМ: 0000000000091685 [12:17:55]line Версия ККМ: 001 [12:17:55]line ФМ: 0000000000871839 [12:17:55]line ФД: 227420 [12:17:55]line ФПД: 163963621185819 [12:17:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T121754&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227420&fm=163963621185819&tin=02508201610067®Number=0000000000091685&sum=100000 [12:17:55]OFD Sender: Processing packet 227420 [packets to send 38, broken 37] [12:17:55]ProducePacketName [12:17:55]name=ofd_packets/00227420 [12:17:55]OFD Sender: To server: pG, [12:17:55]CommunicateWithHost lk.salyk.kg:30040 [12:17:55]ConnectInit lk.salyk.kg [12:17:55]written 0, free lines is 4095 [12:17:56]Connected sock=10 [12:17:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 4D 12 07 01 EE 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 F2 F4 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5C 78 03 00 35 04 06 00 95 1F C1 65 99 1B E5 24 3A 2D AA 84 3D EC [12:17: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 33 39 4F 00 00 00 DC 4C 47 00 F8 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 33 39 10 04 04 00 5C 78 03 00 F4 03 04 00 F1 9F 14 67 B6 04 01 00 00 03 80 4F 19 F4 04 53 7D [12:17:56]CommunicateWithHost err = 0 [12:17:56]CheckOFDResponse [12:17:56]1017 (14) - 77093643461234 [12:17:56]1041 (16) - 0000000000871839 [12:17:56]1040 (4) - 227420 [12:17:56]1012 (4) - 20.10.2024 06:15 [12:17:56]1206 (1) - 0 [12:17:56]OFD Sender: Remove packet 227420 [12:17:56]ProducePacketName [12:17:56]name=ofd_packets/00227420 [12:17:56]NVStorageDeleteData [12:17:56]Write to MH i2c: 01 00 00 0A 16 20 [12:17:56]Write i2c OK [12:17:56]MH_I2C_Read... [12:17:56]Read from MH i2c: 01 [12:17:56]MH_I2C_Read... [12:17:56]Read from MH i2c: 01 07 00 [12:17:56]MH_I2C_Read... [12:17:56]Read from MH i2c: 01 07 00 0A 16 00 00 00 00 00 0B 0D 3F [12:17:56]RasterBufferAndPrint [12:17:56]line [12:17:56]line [12:17:56]line [12:17:56]line [12:17:56]line [12:17:56]written 0, free lines is 3345 [12:17:56]process_action close_receipt done [12:17:56]requested_data is exist [12:17:56]produce_requested_data [12:17:56]requested_item fm.sn is exist - process it [12:17:56]wFMCommunicate request_size=4 [12:17:56]MH_SAM_APDU [12:17:56]CAPDU: 80 11 00 00 [12:17:56]Write to MH i2c: E2 08 00 11 16 80 11 00 00 00 00 00 00 A1 [12:17:56]Write i2c OK [12:17:56]MH_I2C_Read... [12:17:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:56]Read from MH i2c: E2 [12:17:56]MH_I2C_Read... [12:17:56]Read from MH i2c: E2 17 00 [12:17:56]MH_I2C_Read... [12:17:56]Read from MH i2c: E2 17 00 11 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F8 [12:17:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:17:56]wFMCommunicate OK [12:17:56]requested_item fd.num is exist - process it [12:17:56]SAM_PROTO_GetFieldsCounters [12:17:56]wFMCommunicate request_size=4 [12:17:56]MH_SAM_APDU [12:17:56]CAPDU: 80 13 00 00 [12:17:56]Write to MH i2c: E2 08 00 12 16 80 13 00 00 00 00 00 00 A4 [12:17:56]Write i2c OK [12:17:56]MH_I2C_Read... [12:17:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:17:56]Read from MH i2c: E2 [12:17:56]MH_I2C_Read... [12:17:56]Read from MH i2c: E2 62 00 [12:17:56]MH_I2C_Read... [12:17:56]Read from MH i2c: E2 62 00 12 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 5C 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 E2 [12:17:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 5C 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:17:56]wFMCommunicate OK [12:17:56]SAM_PROTO_GetFieldsCounters done [12:17:56]requested_item shift.num is exist - process it [12:17:56]requested_item shift.opened is exist - process it [12:17:56]req_shift_opened [12:17:56]FM_GetShiftState [12:17:56]SAM_PROTO_GetShiftState [12:17:56]wFMCommunicate request_size=4 [12:17:56]MH_SAM_APDU [12:17:56]CAPDU: 80 13 01 00 [12:17:56]Write to MH i2c: E2 08 00 13 16 80 13 01 00 00 00 00 00 A6 [12:17:56]Write i2c OK [12:17:56]MH_I2C_Read... [12:17:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:56]Read from MH i2c: E2 [12:17:56]MH_I2C_Read... [12:17:56]Read from MH i2c: E2 0E 00 [12:17:56]MH_I2C_Read... [12:17:56]Read from MH i2c: E2 0E 00 13 16 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 C0 [12:17:56]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:17:56]wFMCommunicate OK [12:17:56]SAM_PROTO_GetShiftState done [12:17:56]FM_GetShiftState done [12:17:56]req_shift_opened done [12:17:56]requested_item shift.open_date is exist - process it [12:17:56]req_shift_open_date [12:17:56]req_shift_open_date done [12:17:56]produce_requested_data done [12:17:56]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227420,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [12:17:56]process_action_free close_receipt [12:17:56]json_value_free [12:17:56]json_value_free done [12:17:56]process_json_proto returns [12:17:56]Send response to host [12:17:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227420,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [12:17:56]free response buf [12:17:56]execute_script done [12:17:56]execute_script returns [12:17:56]free content buf [12:17:56]Sock 8.Close socket [12:17:56]Sock 8.Thread stoped [12:17:56]OFD Sender: No OFD packet to send [12:17:59]accept exits with 9 [12:17:59]New connection [12:17:59]New thread 3066686820 created [12:17:59]Thread 3066543460 joined [12:17:59]Waiting for new connection... [12:17:59] Sock 9.Parse request [12:17:59]Sock 9.Check first char [12:17:59]Sock 9.First char is OK [12:17:59]request: POST /json_proto HTTP/1.0 [12:17:59]Method: POST [12:17:59]URL: /json_proto [12:17:59]Method is POST - this is cgi request [12:17:59]url: /json_proto [12:17:59]query_string will be loaded in cgi processing [12:17:59]execute_cgi json_proto POST (null) [12:17:59]execute_cgi path=json_proto method=POST [12:17:59]POST find Content-Length [12:17:59]Host: 172.17.44.195:8080 [12:17:59]Content-Length: 684 [12:17:59]Content-Type: application/json [12:17:59] [12:17:59]POST finish read [12:17:59]Found Content-Length = 684 [12:17:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962936", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 132.290, "sum" : 8850.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 8850.00, "total" : 8850.00, "payments": [ { "type": 0, "sum" : 8850.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:59]execute_script... [12:17: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)1962936", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 132.290, "sum" : 8850.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 8850.00, "total" : 8850.00, "payments": [ { "type": 0, "sum" : 8850.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:59]POST & json_proto [12:17:59]process_json_proto [12:17:59]json parsed OK: [12:17:59]protocol is kg_v1.0 [12:17:59]action value=close_receipt [12:17:59]process_action close_receipt [12:17:59]cmd_close_receipt [12:17:59]MH_GetDate [12:17:59]Write to MH i2c: F0 00 00 14 16 19 [12:17:59]Write i2c OK [12:17:59]MH_I2C_Read... [12:17:59]Read from MH i2c: F0 [12:17:59]MH_I2C_Read... [12:17:59]Read from MH i2c: F0 09 00 [12:17:59]MH_I2C_Read... [12:17:59]Read from MH i2c: F0 09 00 14 16 00 F8 F4 14 67 82 C9 CF 66 09 [12:17:59]GetLastDocTimeStamp 1729426674 [12:17:59]current date 1729426680 [12:17:59]FM_GetShiftState [12:17:59]SAM_PROTO_GetShiftState [12:17:59]wFMCommunicate request_size=4 [12:17:59]MH_SAM_APDU [12:17:59]CAPDU: 80 13 01 00 [12:17:59]Write to MH i2c: E2 08 00 15 16 80 13 01 00 00 00 00 00 A8 [12:17:59]Write i2c OK [12:17:59]MH_I2C_Read... [12:17:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:59]Read from MH i2c: E2 [12:17:59]MH_I2C_Read... [12:17:59]Read from MH i2c: E2 0E 00 [12:17:59]MH_I2C_Read... [12:17:59]Read from MH i2c: E2 0E 00 15 16 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 C2 [12:17:59]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:17:59]wFMCommunicate OK [12:17:59]SAM_PROTO_GetShiftState done [12:17:59]FM_GetShiftState done [12:17:59]opened in 1729383750 [12:17:59]opened+sec_in_day 1729470150 [12:17:59]quantity*price = 885020 [12:17:59]sum+1 = 885021 [12:17:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 8850.00 Внесено: 8850.00 СДАЧА: 0.00 НСП 1% : 78.32 НДС 12% : 939.84 Наличными: 8850.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 269 20.10.2024 12:18 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227421 ФПД: 16694221239958 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T121800&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227421&fm=16694221239958&tin=02508201610067®Number=0000000000091685&sum=885000 [12:18:00]StoreToDocumentArchive [12:18:00]shift 533 fd 227421 [12:18:00]save to /storage/0533/doc_00227421 [12:18:00]save last doc name /storage/0533/doc_00227421 to /storage/kkm_last_doc_name [12:18:00]save OK [12:18:00]Clear old archive folders... [12:18:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:18:00]tlvbuf is 0187E7D0 [12:18:00]SAM_PROTO_ClearQueue [12:18:00]wFMCommunicate request_size=4 [12:18:00]MH_SAM_APDU [12:18:00]CAPDU: 80 09 00 00 [12:18:00]Write to MH i2c: E2 08 00 22 16 80 09 00 00 00 00 00 00 AA [12:18:00]Write i2c OK [12:18:00]MH_I2C_Read... [12:18:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:18:00]Read from MH i2c: E2 [12:18:00]MH_I2C_Read... [12:18:00]Read from MH i2c: E2 03 00 [12:18:00]MH_I2C_Read... [12:18:00]Read from MH i2c: E2 03 00 22 16 00 90 00 AC [12:18:00]RAPDU: 90 00 [12:18:00]wFMCommunicate OK [12:18:00]SAM_PROTO_ClearQueue done [12:18:00]KKMCreateOFDPacket [12:18:00]OFDProtocolAddRootSTLVToBuf [12:18:00]FM_MakeSignedData [12:18:00]FM_MakeSignedData [12:18:00]SAM_PROTO_SignData [12:18:00]wFMCommunicate request_size=4 [12:18:00]MH_SAM_APDU [12:18:00]CAPDU: 80 0D 01 02 [12:18:00]Write to MH i2c: E2 08 00 23 16 80 0D 01 02 00 00 00 00 B2 [12:18:00]Write i2c OK [12:18:00]MH_I2C_Read... [12:18:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:18:00]Read from MH i2c: E2 [12:18:00]MH_I2C_Read... [12:18:00]Read from MH i2c: E2 03 00 [12:18:00]MH_I2C_Read... [12:18:00]Read from MH i2c: E2 03 00 23 16 00 90 00 AD [12:18:00]RAPDU: 90 00 [12:18:00]wFMCommunicate OK [12:18:00]wFMCommunicate request_size=255 [12:18:00]MH_SAM_APDU [12:18:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 04 02 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1C 81 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 81 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 1E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 6F 01 00 00 00 07 04 06 00 08 81 0D 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 F8 F4 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5D 78 03 00 35 04 06 00 0F [12:18:00]Write to MH i2c: E2 02 01 24 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 04 02 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1C 81 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 81 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 1E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 6F 01 00 00 00 07 04 06 00 08 81 0D 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 F8 F4 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5D 78 03 00 35 04 06 00 0F 00 00 57 [12:18:00]Write i2c OK [12:18:00]MH_I2C_Read... [12:18:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:00]Read from MH i2c: E2 [12:18:00]MH_I2C_Read... [12:18:00]Read from MH i2c: E2 03 00 [12:18:00]MH_I2C_Read... [12:18:00]Read from MH i2c: E2 03 00 24 16 00 90 00 AE [12:18:00]RAPDU: 90 00 [12:18:00]wFMCommunicate OK [12:18:00]wFMCommunicate request_size=10 [12:18:00]MH_SAM_APDU [12:18:00]CAPDU: 80 0D 02 02 05 2E ED 20 76 96 [12:18:00]Write to MH i2c: E2 0D 00 25 16 80 0D 02 02 05 00 2E ED 20 76 96 00 00 06 [12:18:00]Write i2c OK [12:18:00]MH_I2C_Read... [12:18:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:01]Read from MH i2c: E2 [12:18:01]MH_I2C_Read... [12:18:01]Read from MH i2c: E2 03 00 [12:18:01]MH_I2C_Read... [12:18:01]Read from MH i2c: E2 03 00 25 16 00 90 00 AF [12:18:01]RAPDU: 90 00 [12:18:01]wFMCommunicate OK [12:18:01]wFMCommunicate request_size=4 [12:18:01]MH_SAM_APDU [12:18:01]CAPDU: 80 0D 03 02 [12:18:01]Write to MH i2c: E2 08 00 26 16 80 0D 03 02 00 00 00 00 B7 [12:18:01]Write i2c OK [12:18:01]MH_I2C_Read... [12:18:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:18:01]Read from MH i2c: E2 [12:18:01]MH_I2C_Read... [12:18:01]Read from MH i2c: E2 0B 00 [12:18:01]MH_I2C_Read... [12:18:01]Read from MH i2c: E2 0B 00 26 16 00 2D 27 F8 8C D3 63 1D 20 90 00 03 [12:18:01]RAPDU: 2D 27 F8 8C D3 63 1D 20 90 00 [12:18:01]wFMCommunicate OK [12:18:01]SAM_PROTO_SignData done [12:18:01]FM_MakeSignedData done [12:18:01]CreateOFDProtocolMessage [12:18:01]wFMCommunicate request_size=4 [12:18:01]MH_SAM_APDU [12:18:01]CAPDU: 80 11 00 00 [12:18:01]Write to MH i2c: E2 08 00 27 16 80 11 00 00 00 00 00 00 B7 [12:18:01]Write i2c OK [12:18:01]MH_I2C_Read... [12:18:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:01]Read from MH i2c: E2 [12:18:01]MH_I2C_Read... [12:18:01]Read from MH i2c: E2 17 00 [12:18:01]MH_I2C_Read... [12:18:01]Read from MH i2c: E2 17 00 27 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 0E [12:18:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:18:01]wFMCommunicate OK [12:18:01]CreateOFDProtocolMessage done [12:18:01]OFDSenderStorePacket 227421 [12:18:01]StoreOFDPacket docnum=227421 [12:18:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 15 2C 07 01 79 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 04 02 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1C 81 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 81 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 1E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 6F 01 00 00 00 07 04 06 00 08 81 0D 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 F8 F4 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5D 78 03 00 35 04 06 00 0F 2E ED 20 76 96 2D 27 F8 8C D3 63 1D 20 [12:18:01]CheckFolder [12:18:01]dirname=/storage/ofd_packets [12:18:01]CheckFolder done [12:18:01]ProducePacketName [12:18:01]name=ofd_packets/00227421 [12:18:01]NVStorageSaveData ofd_packets/00227421 [12:18:01]File name is /storage/ofd_packets/00227421 [12:18:01]Write 301 bytes [12:18:01]NVStorageSaveData done [12:18:01]OFDSenderStorePacket done [12:18:01]KKMCreateOFDPacket done [12:18:01]NVStorageSaveData kkm_last_timestamp [12:18:01]File name is /storage/kkm_last_timestamp [12:18:01]Write 4 bytes [12:18:01]NVStorageSaveData done [12:18:01]ExternCall_PrintAddStr [12:18:01]wPrintStart [12:18:01]Write to MH i2c: 01 00 00 28 16 3E [12:18:01]Write i2c OK [12:18:01]MH_I2C_Read... [12:18:01]Read from MH i2c: 01 [12:18:01]MH_I2C_Read... [12:18:01]Read from MH i2c: 01 07 00 [12:18:01]MH_I2C_Read... [12:18:01]Read from MH i2c: 01 07 00 28 16 00 00 00 00 00 FF 0F 53 [12:18:01]RasterBufferAndPrint [12:18:01]line Счет N : (1)1962936 [12:18:01]line ИНН: 02508201610067 [12:18:01]line Контрольно-Кассовый Чек [12:18:01]line ПРОДАЖА [12:18:01]line ТРК (МРК, ГНК) : 53 [12:18:01]line Товар: 2710124130 [12:18:01]line Аи-92-К-5 [12:18:01]line 132.290 * 66.90 [12:18:01]line = 8850.20 [12:18:01]line НДС 12% НСП 1% [12:18:01]line > о реализуемом товаре [12:18:01]line ОКРУГЛЕНИЕ: -0.20 [12:18:01]line ИТОГО: 8850.00 [12:18:01]line Внесено: 8850.00 [12:18:01]line СДАЧА: 0.00 [12:18:01]line НСП 1% : 78.32 [12:18:01]line НДС 12% : 939.84 [12:18:01]line Наличными: 8850.00 [12:18:01]line Безнал.: 0.00 [12:18:01]line Место: АЗС № 133 "Партнер Нефть" [12:18:01]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:18:01]line СНО: Общий режим [12:18:01]line Чек 269 20.10.2024 12:18 [12:18:01]line Смена: 533 ФФД: 1.0 [12:18:01]line ЗНМ: 0300000091 [12:18:01]line РНМ: 0000000000091685 [12:18:01]line Версия ККМ: 001 [12:18:01]line ФМ: 0000000000871839 [12:18:01]line ФД: 227421 [12:18:01]line ФПД: 16694221239958 [12:18:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T121800&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227421&fm=16694221239958&tin=02508201610067®Number=0000000000091685&sum=885000 [12:18:01]written 0, free lines is 4095 [12:18:01]OFD Sender: Processing packet 227421 [packets to send 38, broken 37] [12:18:01]ProducePacketName [12:18:01]name=ofd_packets/00227421 [12:18:01]OFD Sender: To server: pG, [12:18:01]CommunicateWithHost lk.salyk.kg:30040 [12:18:01]ConnectInit lk.salyk.kg [12:18:01]Connected sock=10 [12:18: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 33 39 0F 01 00 00 15 2C 07 01 79 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 04 02 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1C 81 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 81 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 1E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 6F 01 00 00 00 07 04 06 00 08 81 0D 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 F8 F4 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5D 78 03 00 35 04 06 00 0F 2E ED 20 76 96 2D 27 F8 8C D3 63 1D 20 [12:18: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 33 39 4F 00 00 00 39 59 47 00 DD 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 33 39 10 04 04 00 5D 78 03 00 F4 03 04 00 F7 9F 14 67 B6 04 01 00 00 32 ED 04 83 A9 D7 07 E2 [12:18:01]CommunicateWithHost err = 0 [12:18:01]CheckOFDResponse [12:18:01]1017 (14) - 77093643461234 [12:18:01]1041 (16) - 0000000000871839 [12:18:01]1040 (4) - 227421 [12:18:01]1012 (4) - 20.10.2024 06:15 [12:18:01]1206 (1) - 0 [12:18:01]OFD Sender: Remove packet 227421 [12:18:01]ProducePacketName [12:18:01]name=ofd_packets/00227421 [12:18:01]NVStorageDeleteData [12:18:01]Write to MH i2c: 01 00 00 52 16 68 [12:18:01]Write i2c OK [12:18:01]MH_I2C_Read... [12:18:01]Read from MH i2c: 01 [12:18:01]MH_I2C_Read... [12:18:01]Read from MH i2c: 01 07 00 [12:18:01]MH_I2C_Read... [12:18:01]Read from MH i2c: 01 07 00 52 16 00 00 00 00 00 20 0D 9C [12:18:01]RasterBufferAndPrint [12:18:01]line [12:18:01]line [12:18:01]line [12:18:01]line [12:18:01]line [12:18:01]written 0, free lines is 3369 [12:18:01]process_action close_receipt done [12:18:01]requested_data is exist [12:18:01]produce_requested_data [12:18:01]requested_item fm.sn is exist - process it [12:18:01]wFMCommunicate request_size=4 [12:18:01]MH_SAM_APDU [12:18:01]CAPDU: 80 11 00 00 [12:18:01]Write to MH i2c: E2 08 00 59 16 80 11 00 00 00 00 00 00 E9 [12:18:01]Write i2c OK [12:18:01]MH_I2C_Read... [12:18:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:01]Read from MH i2c: E2 [12:18:01]MH_I2C_Read... [12:18:01]Read from MH i2c: E2 17 00 [12:18:01]MH_I2C_Read... [12:18:01]Read from MH i2c: E2 17 00 59 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 40 [12:18:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:18:01]wFMCommunicate OK [12:18:01]requested_item fd.num is exist - process it [12:18:01]SAM_PROTO_GetFieldsCounters [12:18:01]wFMCommunicate request_size=4 [12:18:01]MH_SAM_APDU [12:18:01]CAPDU: 80 13 00 00 [12:18:01]Write to MH i2c: E2 08 00 5A 16 80 13 00 00 00 00 00 00 EC [12:18:01]Write i2c OK [12:18:01]MH_I2C_Read... [12:18:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:18:01]Read from MH i2c: E2 [12:18:01]MH_I2C_Read... [12:18:01]Read from MH i2c: E2 62 00 [12:18:01]MH_I2C_Read... [12:18:01]Read from MH i2c: E2 62 00 5A 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 5D 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 2E [12: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 5D 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:18:01]wFMCommunicate OK [12:18:01]SAM_PROTO_GetFieldsCounters done [12:18:01]requested_item shift.num is exist - process it [12:18:01]requested_item shift.opened is exist - process it [12:18:01]req_shift_opened [12:18:01]FM_GetShiftState [12:18:01]SAM_PROTO_GetShiftState [12:18:01]wFMCommunicate request_size=4 [12:18:01]MH_SAM_APDU [12:18:01]CAPDU: 80 13 01 00 [12:18:01]Write to MH i2c: E2 08 00 5B 16 80 13 01 00 00 00 00 00 EE [12:18:01]Write i2c OK [12:18:01]MH_I2C_Read... [12:18:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:01]Read from MH i2c: E2 [12:18:01]MH_I2C_Read... [12:18:01]Read from MH i2c: E2 0E 00 [12:18:01]MH_I2C_Read... [12:18:01]Read from MH i2c: E2 0E 00 5B 16 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 08 [12:18:01]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:18:01]wFMCommunicate OK [12:18:01]SAM_PROTO_GetShiftState done [12:18:01]FM_GetShiftState done [12:18:01]req_shift_opened done [12:18:01]requested_item shift.open_date is exist - process it [12:18:01]req_shift_open_date [12:18:01]req_shift_open_date done [12:18:01]produce_requested_data done [12:18:01]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227421,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [12:18:01]process_action_free close_receipt [12:18:01]json_value_free [12:18:01]json_value_free done [12:18:01]process_json_proto returns [12:18:01]Send response to host [12:18:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227421,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [12:18:01]free response buf [12:18:01]execute_script done [12:18:01]execute_script returns [12:18:01]free content buf [12:18:01]Sock 9.Close socket [12:18:01]Sock 9.Thread stoped [12:18:02]OFD Sender: No OFD packet to send [12:18:07]OFD Sender: No OFD packet to send [12:18:12]OFD Sender: No OFD packet to send [12:18:17]OFD Sender: No OFD packet to send [12:18:22]OFD Sender: No OFD packet to send [12:18:27]OFD Sender: No OFD packet to send [12:18:32]OFD Sender: No OFD packet to send [12:18:37]OFD Sender: No OFD packet to send [12:18:42]OFD Sender: No OFD packet to send [12:18:47]OFD Sender: No OFD packet to send [12:18:52]OFD Sender: No OFD packet to send [12:18:57]OFD Sender: No OFD packet to send [12:19:02]OFD Sender: No OFD packet to send [12:19:07]OFD Sender: No OFD packet to send [12:19:12]OFD Sender: No OFD packet to send [12:19:17]OFD Sender: No OFD packet to send [12:19:22]OFD Sender: No OFD packet to send [12:19:27]OFD Sender: No OFD packet to send [12:19:32]OFD Sender: No OFD packet to send [12:19:37]OFD Sender: No OFD packet to send [12:19:40]accept exits with 8 [12:19:40]New connection [12:19:40]New thread 3066543460 created [12:19:40]Thread 3066686820 joined [12:19:40]Waiting for new connection... [12:19:40] Sock 8.Parse request [12:19:40]Sock 8.Check first char [12:19:40]Sock 8.First char is OK [12:19:40]request: POST /json_proto HTTP/1.0 [12:19:40]Method: POST [12:19:40]URL: /json_proto [12:19:40]Method is POST - this is cgi request [12:19:40]url: /json_proto [12:19:40]query_string will be loaded in cgi processing [12:19:40]execute_cgi json_proto POST (null) [12:19:40]execute_cgi path=json_proto method=POST [12:19:40]POST find Content-Length [12:19:40]Host: 172.17.44.195:8080 [12:19:40]Content-Length: 679 [12:19:40]Content-Type: application/json [12:19:40] [12:19:40]POST finish read [12:19:40]Found Content-Length = 679 [12:19:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962940", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:40]execute_script... [12:19: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)1962940", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:40]POST & json_proto [12:19:40]process_json_proto [12:19:40]json parsed OK: [12:19:40]protocol is kg_v1.0 [12:19:40]action value=close_receipt [12:19:40]process_action close_receipt [12:19:40]cmd_close_receipt [12:19:40]MH_GetDate [12:19:40]Write to MH i2c: F0 00 00 5C 16 61 [12:19:40]Write i2c OK [12:19:40]MH_I2C_Read... [12:19:40]Read from MH i2c: F0 [12:19:40]MH_I2C_Read... [12:19:40]Read from MH i2c: F0 09 00 [12:19:40]MH_I2C_Read... [12:19:40]Read from MH i2c: F0 09 00 5C 16 00 5D F5 14 67 82 C9 CF 66 B7 [12:19:40]GetLastDocTimeStamp 1729426680 [12:19:40]current date 1729426781 [12:19:40]FM_GetShiftState [12:19:40]SAM_PROTO_GetShiftState [12:19:40]wFMCommunicate request_size=4 [12:19:40]MH_SAM_APDU [12:19:40]CAPDU: 80 13 01 00 [12:19:40]Write to MH i2c: E2 08 00 5D 16 80 13 01 00 00 00 00 00 F0 [12:19:40]Write i2c OK [12:19:40]MH_I2C_Read... [12:19:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:40]Read from MH i2c: E2 [12:19:40]MH_I2C_Read... [12:19:40]Read from MH i2c: E2 0E 00 [12:19:40]MH_I2C_Read... [12:19:40]Read from MH i2c: E2 0E 00 5D 16 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 0A [12:19:40]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:19:40]wFMCommunicate OK [12:19:40]SAM_PROTO_GetShiftState done [12:19:40]FM_GetShiftState done [12:19:40]opened in 1729383750 [12:19:40]opened+sec_in_day 1729470150 [12:19:40]quantity*price = 70044 [12:19:40]sum+1 = 70045 [12:19:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 270 20.10.2024 12:19 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227422 ФПД: 137469012616450 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T121941&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227422&fm=137469012616450&tin=02508201610067®Number=0000000000091685&sum=70000 [12:19:41]StoreToDocumentArchive [12:19:41]shift 533 fd 227422 [12:19:41]save to /storage/0533/doc_00227422 [12:19:41]save last doc name /storage/0533/doc_00227422 to /storage/kkm_last_doc_name [12:19:41]save OK [12:19:41]Clear old archive folders... [12:19:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:19:41]tlvbuf is 018857D0 [12:19:41]SAM_PROTO_ClearQueue [12:19:41]wFMCommunicate request_size=4 [12:19:41]MH_SAM_APDU [12:19:41]CAPDU: 80 09 00 00 [12:19:41]Write to MH i2c: E2 08 00 6A 16 80 09 00 00 00 00 00 00 F2 [12:19:41]Write i2c OK [12:19:41]MH_I2C_Read... [12:19:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:19:41]Read from MH i2c: E2 [12:19:41]MH_I2C_Read... [12:19:41]Read from MH i2c: E2 03 00 [12:19:41]MH_I2C_Read... [12:19:41]Read from MH i2c: E2 03 00 6A 16 00 90 00 F4 [12:19:41]RAPDU: 90 00 [12:19:41]wFMCommunicate OK [12:19:41]SAM_PROTO_ClearQueue done [12:19:41]KKMCreateOFDPacket [12:19:41]OFDProtocolAddRootSTLVToBuf [12:19:41]FM_MakeSignedData [12:19:41]FM_MakeSignedData [12:19:41]SAM_PROTO_SignData [12:19:41]wFMCommunicate request_size=4 [12:19:41]MH_SAM_APDU [12:19:41]CAPDU: 80 0D 01 02 [12:19:41]Write to MH i2c: E2 08 00 6B 16 80 0D 01 02 00 00 00 00 FA [12:19:41]Write i2c OK [12:19:41]MH_I2C_Read... [12:19:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:19:41]Read from MH i2c: E2 [12:19:41]MH_I2C_Read... [12:19:41]Read from MH i2c: E2 03 00 [12:19:41]MH_I2C_Read... [12:19:41]Read from MH i2c: E2 03 00 6B 16 00 90 00 F5 [12:19:41]RAPDU: 90 00 [12:19:41]wFMCommunicate OK [12:19:41]wFMCommunicate request_size=255 [12:19:41]MH_SAM_APDU [12:19:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 5D F5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5E 78 03 00 35 04 06 00 7D [12:19:41]Write to MH i2c: E2 02 01 6C 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 5D F5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5E 78 03 00 35 04 06 00 7D 00 00 EA [12:19:41]Write i2c OK [12:19:41]MH_I2C_Read... [12:19:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:42]Read from MH i2c: E2 [12:19:42]MH_I2C_Read... [12:19:42]Read from MH i2c: E2 03 00 [12:19:42]MH_I2C_Read... [12:19:42]Read from MH i2c: E2 03 00 6C 16 00 90 00 F6 [12:19:42]RAPDU: 90 00 [12:19:42]wFMCommunicate OK [12:19:42]wFMCommunicate request_size=10 [12:19:42]MH_SAM_APDU [12:19:42]CAPDU: 80 0D 02 02 05 06 FF AA 25 02 [12:19:42]Write to MH i2c: E2 0D 00 6D 16 80 0D 02 02 05 00 06 FF AA 25 02 00 00 DD [12:19:42]Write i2c OK [12:19:42]MH_I2C_Read... [12:19:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:42]Read from MH i2c: E2 [12:19:42]MH_I2C_Read... [12:19:42]Read from MH i2c: E2 03 00 [12:19:42]MH_I2C_Read... [12:19:42]Read from MH i2c: E2 03 00 6D 16 00 90 00 F7 [12:19:42]RAPDU: 90 00 [12:19:42]wFMCommunicate OK [12:19:42]wFMCommunicate request_size=4 [12:19:42]MH_SAM_APDU [12:19:42]CAPDU: 80 0D 03 02 [12:19:42]Write to MH i2c: E2 08 00 6E 16 80 0D 03 02 00 00 00 00 FF [12:19:42]OFD Sender: No OFD packet to send [12:19:42]Write i2c OK [12:19:42]MH_I2C_Read... [12:19:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:19:42]Read from MH i2c: E2 [12:19:42]MH_I2C_Read... [12:19:42]Read from MH i2c: E2 0B 00 [12:19:42]MH_I2C_Read... [12:19:42]Read from MH i2c: E2 0B 00 6E 16 00 99 25 8A C0 16 28 77 97 90 00 54 [12:19:42]RAPDU: 99 25 8A C0 16 28 77 97 90 00 [12:19:42]wFMCommunicate OK [12:19:42]SAM_PROTO_SignData done [12:19:42]FM_MakeSignedData done [12:19:42]CreateOFDProtocolMessage [12:19:42]wFMCommunicate request_size=4 [12:19:42]MH_SAM_APDU [12:19:42]CAPDU: 80 11 00 00 [12:19:42]Write to MH i2c: E2 08 00 6F 16 80 11 00 00 00 00 00 00 FF [12:19:42]Write i2c OK [12:19:42]MH_I2C_Read... [12:19:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:42]Read from MH i2c: E2 [12:19:42]MH_I2C_Read... [12:19:42]Read from MH i2c: E2 17 00 [12:19:42]MH_I2C_Read... [12:19:42]Read from MH i2c: E2 17 00 6F 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 56 [12:19:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:19:42]wFMCommunicate OK [12:19:42]CreateOFDProtocolMessage done [12:19:42]OFDSenderStorePacket 227422 [12:19:42]StoreOFDPacket docnum=227422 [12:19:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 FC 3A 07 01 40 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 5D F5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5E 78 03 00 35 04 06 00 7D 06 FF AA 25 02 99 25 8A C0 16 28 77 97 [12:19:42]CheckFolder [12:19:42]dirname=/storage/ofd_packets [12:19:42]CheckFolder done [12:19:42]ProducePacketName [12:19:42]name=ofd_packets/00227422 [12:19:42]NVStorageSaveData ofd_packets/00227422 [12:19:42]File name is /storage/ofd_packets/00227422 [12:19:42]Write 301 bytes [12:19:42]NVStorageSaveData done [12:19:42]OFDSenderStorePacket done [12:19:42]KKMCreateOFDPacket done [12:19:42]NVStorageSaveData kkm_last_timestamp [12:19:42]File name is /storage/kkm_last_timestamp [12:19:42]Write 4 bytes [12:19:42]NVStorageSaveData done [12:19:42]ExternCall_PrintAddStr [12:19:42]wPrintStart [12:19:42]Write to MH i2c: 01 00 00 70 16 86 [12:19:42]OFD Sender: Processing packet 227422 [packets to send 38, broken 37] [12:19:42]ProducePacketName [12:19:42]name=ofd_packets/00227422 [12:19:42]OFD Sender: To server: pG, [12:19:42]CommunicateWithHost lk.salyk.kg:30040 [12:19:42]ConnectInit lk.salyk.kg [12:19:42]Write i2c OK [12:19:42]MH_I2C_Read... [12:19:42]Read from MH i2c: 01 [12:19:42]MH_I2C_Read... [12:19:42]Read from MH i2c: 01 07 00 [12:19:42]MH_I2C_Read... [12:19:42]Read from MH i2c: 01 07 00 70 16 00 00 00 00 00 FF 0F 9B [12:19:42]RasterBufferAndPrint [12:19:42]line Счет N : (1)1962940 [12:19:42]line ИНН: 02508201610067 [12:19:42]line Контрольно-Кассовый Чек [12:19:42]line ПРОДАЖА [12:19:42]line ТРК (МРК, ГНК) : 53 [12:19:42]line Товар: 2710124130 [12:19:42]line Аи-92-К-5 [12:19:42]line 10.470 * 66.90 [12:19:42]line = 700.44 [12:19:42]line НДС 12% НСП 1% [12:19:42]line > о реализуемом товаре [12:19:42]line ОКРУГЛЕНИЕ: -0.44 [12:19:42]line ИТОГО: 700.00 [12:19:42]line Внесено: 700.00 [12:19:42]line СДАЧА: 0.00 [12:19:42]line НСП 1% : 6.20 [12:19:42]line НДС 12% : 74.38 [12:19:42]line Наличными: 700.00 [12:19:42]line Безнал.: 0.00 [12:19:42]line Место: АЗС № 133 "Партнер Нефть" [12:19:42]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:19:42]line СНО: Общий режим [12:19:42]line Чек 270 20.10.2024 12:19 [12:19:42]line Смена: 533 ФФД: 1.0 [12:19:42]line ЗНМ: 0300000091 [12:19:42]line РНМ: 0000000000091685 [12:19:42]line Версия ККМ: 001 [12:19:42]line ФМ: 0000000000871839 [12:19:42]line ФД: 227422 [12:19:42]line ФПД: 137469012616450 [12:19:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T121941&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227422&fm=137469012616450&tin=02508201610067®Number=0000000000091685&sum=70000 [12:19:42]Connected sock=10 [12:19: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 33 39 0F 01 00 00 FC 3A 07 01 40 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 5D F5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5E 78 03 00 35 04 06 00 7D 06 FF AA 25 02 99 25 8A C0 16 28 77 97 [12:19:42]written 0, free lines is 4095 [12:19:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 3B 13 47 00 79 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5E 78 03 00 F4 03 04 00 5C A0 14 67 B6 04 01 00 00 77 29 FE E9 68 85 C2 02 [12:19:42]CommunicateWithHost err = 0 [12:19:42]CheckOFDResponse [12:19:42]1017 (14) - 77093643461234 [12:19:42]1041 (16) - 0000000000871839 [12:19:42]1040 (4) - 227422 [12:19:42]1012 (4) - 20.10.2024 06:17 [12:19:42]1206 (1) - 0 [12:19:42]OFD Sender: Remove packet 227422 [12:19:42]ProducePacketName [12:19:42]name=ofd_packets/00227422 [12:19:42]NVStorageDeleteData [12:19:43]Write to MH i2c: 01 00 00 9A 16 B0 [12:19:43]Write i2c OK [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: 01 [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: 01 07 00 [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: 01 07 00 9A 16 00 00 00 00 00 0C 0D D0 [12:19:43]RasterBufferAndPrint [12:19:43]line [12:19:43]line [12:19:43]line [12:19:43]line [12:19:43]line [12:19:43]written 0, free lines is 3346 [12:19:43]process_action close_receipt done [12:19:43]requested_data is exist [12:19:43]produce_requested_data [12:19:43]requested_item fm.sn is exist - process it [12:19:43]wFMCommunicate request_size=4 [12:19:43]MH_SAM_APDU [12:19:43]CAPDU: 80 11 00 00 [12:19:43]Write to MH i2c: E2 08 00 A1 16 80 11 00 00 00 00 00 00 31 [12:19:43]Write i2c OK [12:19:43]MH_I2C_Read... [12:19:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:43]Read from MH i2c: E2 [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: E2 17 00 [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: E2 17 00 A1 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 88 [12:19:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:19:43]wFMCommunicate OK [12:19:43]requested_item fd.num is exist - process it [12:19:43]SAM_PROTO_GetFieldsCounters [12:19:43]wFMCommunicate request_size=4 [12:19:43]MH_SAM_APDU [12:19:43]CAPDU: 80 13 00 00 [12:19:43]Write to MH i2c: E2 08 00 A2 16 80 13 00 00 00 00 00 00 34 [12:19:43]Write i2c OK [12:19:43]MH_I2C_Read... [12:19:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:19:43]Read from MH i2c: E2 [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: E2 62 00 [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: E2 62 00 A2 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 5E 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 7A [12:19:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 5E 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:19:43]wFMCommunicate OK [12:19:43]SAM_PROTO_GetFieldsCounters done [12:19:43]requested_item shift.num is exist - process it [12:19:43]requested_item shift.opened is exist - process it [12:19:43]req_shift_opened [12:19:43]FM_GetShiftState [12:19:43]SAM_PROTO_GetShiftState [12:19:43]wFMCommunicate request_size=4 [12:19:43]MH_SAM_APDU [12:19:43]CAPDU: 80 13 01 00 [12:19:43]Write to MH i2c: E2 08 00 A3 16 80 13 01 00 00 00 00 00 36 [12:19:43]Write i2c OK [12:19:43]MH_I2C_Read... [12:19:43]OFD Sender: No OFD packet to send [12:19:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:43]Read from MH i2c: E2 [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: E2 0E 00 [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: E2 0E 00 A3 16 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 50 [12:19:43]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:19:43]wFMCommunicate OK [12:19:43]SAM_PROTO_GetShiftState done [12:19:43]FM_GetShiftState done [12:19:43]req_shift_opened done [12:19:43]requested_item shift.open_date is exist - process it [12:19:43]req_shift_open_date [12:19:43]req_shift_open_date done [12:19:43]produce_requested_data done [12:19:43]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227422,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [12:19:43]process_action_free close_receipt [12:19:43]json_value_free [12:19:43]json_value_free done [12:19:43]process_json_proto returns [12:19:43]Send response to host [12:19:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227422,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [12:19:43]free response buf [12:19:43]execute_script done [12:19:43]execute_script returns [12:19:43]free content buf [12:19:43]Sock 8.Close socket [12:19:43]Sock 8.Thread stoped [12:19:48]OFD Sender: No OFD packet to send [12:19:53]OFD Sender: No OFD packet to send [12:19:58]OFD Sender: No OFD packet to send [12:20:03]OFD Sender: No OFD packet to send [12:20:08]OFD Sender: No OFD packet to send [12:20:13]OFD Sender: No OFD packet to send [12:20:18]OFD Sender: No OFD packet to send [12:20:23]OFD Sender: No OFD packet to send [12:20:28]OFD Sender: No OFD packet to send [12:20:33]OFD Sender: No OFD packet to send [12:20:38]OFD Sender: No OFD packet to send [12:20:43]OFD Sender: No OFD packet to send [12:20:48]OFD Sender: No OFD packet to send [12:20:48]accept exits with 9 [12:20:48]New connection [12:20:48]New thread 3066686820 created [12:20:48]Thread 3066543460 joined [12:20:48]Waiting for new connection... [12:20:48] Sock 9.Parse request [12:20:48]Sock 9.Check first char [12:20:48]Sock 9.First char is OK [12:20:48]request: POST /json_proto HTTP/1.0 [12:20:48]Method: POST [12:20:48]URL: /json_proto [12:20:48]Method is POST - this is cgi request [12:20:48]url: /json_proto [12:20:48]query_string will be loaded in cgi processing [12:20:48]execute_cgi json_proto POST (null) [12:20:48]execute_cgi path=json_proto method=POST [12:20:48]POST find Content-Length [12:20:48]Host: 172.17.44.195:8080 [12:20:48]Content-Length: 764 [12:20:48]Content-Type: application/json [12:20:48] [12:20:48]POST finish read [12:20:48]Found Content-Length = 764 [12:20:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962941", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 4.780, "sum" : 364.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: Mbank", "payments": [ { "type": 1, "sum" : 364.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:48]execute_script... [12:20: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)1962941", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 4.780, "sum" : 364.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: Mbank", "payments": [ { "type": 1, "sum" : 364.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:48]POST & json_proto [12:20:48]process_json_proto [12:20:48]json parsed OK: [12:20:48]protocol is kg_v1.0 [12:20:48]action value=close_receipt [12:20:48]process_action close_receipt [12:20:48]cmd_close_receipt [12:20:48]MH_GetDate [12:20:48]Write to MH i2c: F0 00 00 A4 16 A9 [12:20:48]Write i2c OK [12:20:48]MH_I2C_Read... [12:20:48]Read from MH i2c: F0 [12:20:48]MH_I2C_Read... [12:20:48]Read from MH i2c: F0 09 00 [12:20:48]MH_I2C_Read... [12:20:48]Read from MH i2c: F0 09 00 A4 16 00 A1 F5 14 67 82 C9 CF 66 43 [12:20:48]GetLastDocTimeStamp 1729426781 [12:20:48]current date 1729426849 [12:20:48]FM_GetShiftState [12:20:48]SAM_PROTO_GetShiftState [12:20:48]wFMCommunicate request_size=4 [12:20:48]MH_SAM_APDU [12:20:48]CAPDU: 80 13 01 00 [12:20:48]Write to MH i2c: E2 08 00 A5 16 80 13 01 00 00 00 00 00 38 [12:20:48]Write i2c OK [12:20:48]MH_I2C_Read... [12:20:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:48]Read from MH i2c: E2 [12:20:48]MH_I2C_Read... [12:20:48]Read from MH i2c: E2 0E 00 [12:20:48]MH_I2C_Read... [12:20:48]Read from MH i2c: E2 0E 00 A5 16 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 52 [12:20:48]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:20:48]wFMCommunicate OK [12:20:48]SAM_PROTO_GetShiftState done [12:20:48]FM_GetShiftState done [12:20:48]opened in 1729383750 [12:20:48]opened+sec_in_day 1729470150 [12:20:48]quantity*price = 36423 [12:20:48]sum+1 = 36425 [12:20:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 364.24 НСП 1% : 3.22 НДС 12% : 38.68 Наличными: 0.00 Безнал.: 364.24 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 271 20.10.2024 12:20 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 227423 ФПД: 194990270438946 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T122049&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227423&fm=194990270438946&tin=02508201610067®Number=0000000000091685&sum=36424 [12:20:49]StoreToDocumentArchive [12:20:49]shift 533 fd 227423 [12:20:49]save to /storage/0533/doc_00227423 [12:20:49]save last doc name /storage/0533/doc_00227423 to /storage/kkm_last_doc_name [12:20:49]save OK [12:20:49]Clear old archive folders... [12:20:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:20:50]tlvbuf is B6E80E60 [12:20:50]SAM_PROTO_ClearQueue [12:20:50]wFMCommunicate request_size=4 [12:20:50]MH_SAM_APDU [12:20:50]CAPDU: 80 09 00 00 [12:20:50]Write to MH i2c: E2 08 00 B2 16 80 09 00 00 00 00 00 00 3A [12:20:50]Write i2c OK [12:20:50]MH_I2C_Read... [12:20:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:20:50]Read from MH i2c: E2 [12:20:50]MH_I2C_Read... [12:20:50]Read from MH i2c: E2 03 00 [12:20:50]MH_I2C_Read... [12:20:50]Read from MH i2c: E2 03 00 B2 16 00 90 00 3C [12:20:50]RAPDU: 90 00 [12:20:50]wFMCommunicate OK [12:20:50]SAM_PROTO_ClearQueue done [12:20:50]KKMCreateOFDPacket [12:20:50]OFDProtocolAddRootSTLVToBuf [12:20:50]FM_MakeSignedData [12:20:50]FM_MakeSignedData [12:20:50]SAM_PROTO_SignData [12:20:50]wFMCommunicate request_size=4 [12:20:50]MH_SAM_APDU [12:20:50]CAPDU: 80 0D 01 02 [12:20:50]Write to MH i2c: E2 08 00 B3 16 80 0D 01 02 00 00 00 00 42 [12:20:50]Write i2c OK [12:20:50]MH_I2C_Read... [12:20:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:20:50]Read from MH i2c: E2 [12:20:50]MH_I2C_Read... [12:20:50]Read from MH i2c: E2 03 00 [12:20:50]MH_I2C_Read... [12:20:50]Read from MH i2c: E2 03 00 B3 16 00 90 00 3D [12:20:50]RAPDU: 90 00 [12:20:50]wFMCommunicate OK [12:20:50]wFMCommunicate request_size=255 [12:20:50]MH_SAM_APDU [12:20:50]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 12 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 48 8E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 8E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 8E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 A1 F5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5F 78 03 00 35 04 06 00 B1 57 B5 CD [12:20:50]Write to MH i2c: E2 02 01 B4 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 AC 12 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 48 8E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 8E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 8E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 A1 F5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5F 78 03 00 35 04 06 00 B1 57 B5 CD 00 00 D2 [12:20:50]Write i2c OK [12:20:50]MH_I2C_Read... [12:20:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:50]Read from MH i2c: E2 [12:20:50]MH_I2C_Read... [12:20:50]Read from MH i2c: E2 03 00 [12:20:50]MH_I2C_Read... [12:20:50]Read from MH i2c: E2 03 00 B4 16 00 90 00 3E [12:20:50]RAPDU: 90 00 [12:20:50]wFMCommunicate OK [12:20:50]wFMCommunicate request_size=7 [12:20:50]MH_SAM_APDU [12:20:50]CAPDU: 80 0D 02 02 02 DE 22 [12:20:50]Write to MH i2c: E2 0A 00 B5 16 80 0D 02 02 02 00 DE 22 00 00 49 [12:20:50]Write i2c OK [12:20:50]MH_I2C_Read... [12:20:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:50]Read from MH i2c: E2 [12:20:50]MH_I2C_Read... [12:20:50]Read from MH i2c: E2 03 00 [12:20:50]MH_I2C_Read... [12:20:50]Read from MH i2c: E2 03 00 B5 16 00 90 00 3F [12:20:50]RAPDU: 90 00 [12:20:50]wFMCommunicate OK [12:20:50]wFMCommunicate request_size=4 [12:20:50]MH_SAM_APDU [12:20:50]CAPDU: 80 0D 03 02 [12:20:50]Write to MH i2c: E2 08 00 B6 16 80 0D 03 02 00 00 00 00 47 [12:20:50]Write i2c OK [12:20:50]MH_I2C_Read... [12:20:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:20:50]Read from MH i2c: E2 [12:20:50]MH_I2C_Read... [12:20:50]Read from MH i2c: E2 0B 00 [12:20:50]MH_I2C_Read... [12:20:50]Read from MH i2c: E2 0B 00 B6 16 00 D9 27 2A 8C C0 19 CA B7 90 00 58 [12:20:50]RAPDU: D9 27 2A 8C C0 19 CA B7 90 00 [12:20:50]wFMCommunicate OK [12:20:50]SAM_PROTO_SignData done [12:20:50]FM_MakeSignedData done [12:20:50]CreateOFDProtocolMessage [12:20:50]wFMCommunicate request_size=4 [12:20:50]MH_SAM_APDU [12:20:50]CAPDU: 80 11 00 00 [12:20:50]Write to MH i2c: E2 08 00 B7 16 80 11 00 00 00 00 00 00 47 [12:20:50]Write i2c OK [12:20:50]MH_I2C_Read... [12:20:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:50]Read from MH i2c: E2 [12:20:50]MH_I2C_Read... [12:20:50]Read from MH i2c: E2 17 00 [12:20:50]MH_I2C_Read... [12:20:50]Read from MH i2c: E2 17 00 B7 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 9E [12:20:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:20:50]wFMCommunicate OK [12:20:50]CreateOFDProtocolMessage done [12:20:50]OFDSenderStorePacket 227423 [12:20:50]StoreOFDPacket docnum=227423 [12:20:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 0F 2D 04 01 C1 81 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 12 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 48 8E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 8E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 8E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 A1 F5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5F 78 03 00 35 04 06 00 B1 57 B5 CD DE 22 D9 27 2A 8C C0 19 CA B7 [12:20:50]CheckFolder [12:20:50]dirname=/storage/ofd_packets [12:20:50]CheckFolder done [12:20:50]ProducePacketName [12:20:50]name=ofd_packets/00227423 [12:20:50]NVStorageSaveData ofd_packets/00227423 [12:20:50]File name is /storage/ofd_packets/00227423 [12:20:50]Write 298 bytes [12:20:50]NVStorageSaveData done [12:20:50]OFDSenderStorePacket done [12:20:50]KKMCreateOFDPacket done [12:20:50]NVStorageSaveData kkm_last_timestamp [12:20:50]File name is /storage/kkm_last_timestamp [12:20:50]Write 4 bytes [12:20:50]NVStorageSaveData done [12:20:50]ExternCall_PrintAddStr [12:20:50]wPrintStart [12:20:50]Write to MH i2c: 01 00 00 B8 16 CE [12:20:50]Write i2c OK [12:20:50]MH_I2C_Read... [12:20:50]Read from MH i2c: 01 [12:20:50]MH_I2C_Read... [12:20:50]Read from MH i2c: 01 07 00 [12:20:50]MH_I2C_Read... [12:20:50]Read from MH i2c: 01 07 00 B8 16 00 00 00 00 00 FF 0F E3 [12:20:50]RasterBufferAndPrint [12:20:50]line Счет N : (1)1962941 [12:20:50]line ИНН: 02508201610067 [12:20:50]line Контрольно-Кассовый Чек [12:20:50]line ПРОДАЖА [12:20:50]line ТРК (МРК, ГНК) : 31 [12:20:50]line Товар: 2710194210 [12:20:50]line ДТ-К-5 [12:20:50]line 4.780 * 76.20 [12:20:50]line = 364.24 [12:20:50]line НДС 12% НСП 1% [12:20:50]line > о реализуемом товаре [12:20:50]line ИТОГО: 364.24 [12:20:50]line НСП 1% : 3.22 [12:20:50]line НДС 12% : 38.68 [12:20:50]line Наличными: 0.00 [12:20:50]line Безнал.: 364.24 [12:20:50]line Место: АЗС № 133 "Партнер Нефть" [12:20:50]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:20:50]line СНО: Общий режим [12:20:50]line Чек 271 20.10.2024 12:20 [12:20:50]line Смена: 533 ФФД: 1.0 [12:20:50]line ЗНМ: 0300000091 [12:20:50]line РНМ: 0000000000091685 [12:20:50]line Версия ККМ: 001 [12:20:50]line Платежная система: Mbank [12:20:50]line ФМ: 0000000000871839 [12:20:50]line ФД: 227423 [12:20:50]line ФПД: 194990270438946 [12:20:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T122049&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227423&fm=194990270438946&tin=02508201610067®Number=0000000000091685&sum=36424 [12:20:50]OFD Sender: Processing packet 227423 [packets to send 38, broken 37] [12:20:50]ProducePacketName [12:20:50]name=ofd_packets/00227423 [12:20:50]OFD Sender: To server: pG, [12:20:50]CommunicateWithHost lk.salyk.kg:30040 [12:20:50]ConnectInit lk.salyk.kg [12:20:50]written 0, free lines is 4095 [12:20:50]Connected sock=8 [12:20: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 33 39 0C 01 00 00 0F 2D 04 01 C1 81 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 12 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 48 8E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 8E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 8E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 A1 F5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5F 78 03 00 35 04 06 00 B1 57 B5 CD DE 22 D9 27 2A 8C C0 19 CA B7 [12:20: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 33 39 4F 00 00 00 78 0A 47 00 AC 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 33 39 10 04 04 00 5F 78 03 00 F4 03 04 00 A0 A0 14 67 B6 04 01 00 00 A4 74 90 55 0B 43 63 23 [12:20:51]CommunicateWithHost err = 0 [12:20:51]CheckOFDResponse [12:20:51]1017 (14) - 77093643461234 [12:20:51]1041 (16) - 0000000000871839 [12:20:51]1040 (4) - 227423 [12:20:51]1012 (4) - 20.10.2024 06:18 [12:20:51]1206 (1) - 0 [12:20:51]OFD Sender: Remove packet 227423 [12:20:51]ProducePacketName [12:20:51]name=ofd_packets/00227423 [12:20:51]NVStorageDeleteData [12:20:51]Write to MH i2c: 01 00 00 E0 16 F6 [12:20:51]Write i2c OK [12:20:51]MH_I2C_Read... [12:20:51]Read from MH i2c: 01 [12:20:51]MH_I2C_Read... [12:20:51]Read from MH i2c: 01 07 00 [12:20:51]MH_I2C_Read... [12:20:51]Read from MH i2c: 01 07 00 E0 16 00 00 00 00 00 2F 0D 39 [12:20:51]RasterBufferAndPrint [12:20:51]line [12:20:51]line [12:20:51]line [12:20:51]line [12:20:51]line [12:20:51]written 0, free lines is 3381 [12:20:51]process_action close_receipt done [12:20:51]requested_data is exist [12:20:51]produce_requested_data [12:20:51]requested_item fm.sn is exist - process it [12:20:51]wFMCommunicate request_size=4 [12:20:51]MH_SAM_APDU [12:20:51]CAPDU: 80 11 00 00 [12:20:51]Write to MH i2c: E2 08 00 E7 16 80 11 00 00 00 00 00 00 77 [12:20:51]Write i2c OK [12:20:51]MH_I2C_Read... [12:20:51]Read from MH i2c: E2 [12:20:51]MH_I2C_Read... [12:20:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:51]Read from MH i2c: E2 17 00 [12:20:51]MH_I2C_Read... [12:20:51]Read from MH i2c: E2 17 00 E7 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 CE [12:20:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:20:51]wFMCommunicate OK [12:20:51]requested_item fd.num is exist - process it [12:20:51]SAM_PROTO_GetFieldsCounters [12:20:51]wFMCommunicate request_size=4 [12:20:51]MH_SAM_APDU [12:20:51]CAPDU: 80 13 00 00 [12:20:51]Write to MH i2c: E2 08 00 E8 16 80 13 00 00 00 00 00 00 7A [12:20:51]Write i2c OK [12:20:51]MH_I2C_Read... [12:20:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:20:51]Read from MH i2c: E2 [12:20:51]MH_I2C_Read... [12:20:51]Read from MH i2c: E2 62 00 [12:20:51]MH_I2C_Read... [12:20:51]Read from MH i2c: E2 62 00 E8 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 5F 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 C4 [12:20: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 5F 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:20:51]wFMCommunicate OK [12:20:51]SAM_PROTO_GetFieldsCounters done [12:20:51]requested_item shift.num is exist - process it [12:20:51]requested_item shift.opened is exist - process it [12:20:51]req_shift_opened [12:20:51]FM_GetShiftState [12:20:51]SAM_PROTO_GetShiftState [12:20:51]wFMCommunicate request_size=4 [12:20:51]MH_SAM_APDU [12:20:51]CAPDU: 80 13 01 00 [12:20:51]Write to MH i2c: E2 08 00 E9 16 80 13 01 00 00 00 00 00 7C [12:20:51]Write i2c OK [12:20:51]MH_I2C_Read... [12:20:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:51]Read from MH i2c: E2 [12:20:51]MH_I2C_Read... [12:20:51]Read from MH i2c: E2 0E 00 [12:20:51]MH_I2C_Read... [12:20:51]Read from MH i2c: E2 0E 00 E9 16 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 96 [12:20:51]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:20:51]wFMCommunicate OK [12:20:51]SAM_PROTO_GetShiftState done [12:20:51]FM_GetShiftState done [12:20:51]req_shift_opened done [12:20:51]requested_item shift.open_date is exist - process it [12:20:51]req_shift_open_date [12:20:51]req_shift_open_date done [12:20:51]produce_requested_data done [12:20:51]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227423,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [12:20:51]process_action_free close_receipt [12:20:51]json_value_free [12:20:51]json_value_free done [12:20:51]process_json_proto returns [12:20:51]Send response to host [12:20:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227423,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [12:20:51]free response buf [12:20:51]execute_script done [12:20:51]execute_script returns [12:20:51]free content buf [12:20:51]Sock 9.Close socket [12:20:51]Sock 9.Thread stoped [12:20:51]OFD Sender: No OFD packet to send [12:20:56]OFD Sender: No OFD packet to send [12:21:01]OFD Sender: No OFD packet to send [12:21:06]OFD Sender: No OFD packet to send [12:21:11]OFD Sender: No OFD packet to send [12:21:16]OFD Sender: No OFD packet to send [12:21:21]OFD Sender: No OFD packet to send [12:21:26]OFD Sender: No OFD packet to send [12:21:31]OFD Sender: No OFD packet to send [12:21:36]OFD Sender: No OFD packet to send [12:21:41]OFD Sender: No OFD packet to send [12:21:46]OFD Sender: No OFD packet to send [12:21:51]OFD Sender: No OFD packet to send [12:21:56]OFD Sender: No OFD packet to send [12:22:01]OFD Sender: No OFD packet to send [12:22:06]OFD Sender: No OFD packet to send [12:22:11]OFD Sender: No OFD packet to send [12:22:14]accept exits with 10 [12:22:14]New connection [12:22:14]New thread 3066543460 created [12:22:14]Thread 3066686820 joined [12:22:14]Waiting for new connection... [12:22:14] Sock 10.Parse request [12:22:14]Sock 10.Check first char [12:22:14]Sock 10.First char is OK [12:22:14]request: POST /json_proto HTTP/1.0 [12:22:14]Method: POST [12:22:14]URL: /json_proto [12:22:14]Method is POST - this is cgi request [12:22:14]url: /json_proto [12:22:14]query_string will be loaded in cgi processing [12:22:14]execute_cgi json_proto POST (null) [12:22:14]execute_cgi path=json_proto method=POST [12:22:14]POST find Content-Length [12:22:14]Host: 172.17.44.195:8080 [12:22:14]Content-Length: 679 [12:22:14]Content-Type: application/json [12:22:14] [12:22:14]POST finish read [12:22:14]Found Content-Length = 679 [12:22:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962942", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 12.130, "sum" : 900.05, "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" ] } } [12:22:14]execute_script... [12:22: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)1962942", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 12.130, "sum" : 900.05, "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" ] } } [12:22:14]POST & json_proto [12:22:14]process_json_proto [12:22:14]json parsed OK: [12:22:14]protocol is kg_v1.0 [12:22:14]action value=close_receipt [12:22:14]process_action close_receipt [12:22:14]cmd_close_receipt [12:22:14]MH_GetDate [12:22:14]Write to MH i2c: F0 00 00 EA 16 EF [12:22:14]Write i2c OK [12:22:14]MH_I2C_Read... [12:22:14]Read from MH i2c: F0 [12:22:14]MH_I2C_Read... [12:22:14]Read from MH i2c: F0 09 00 [12:22:14]MH_I2C_Read... [12:22:14]Read from MH i2c: F0 09 00 EA 16 00 F7 F5 14 67 82 C9 CF 66 DF [12:22:14]GetLastDocTimeStamp 1729426849 [12:22:14]current date 1729426935 [12:22:14]FM_GetShiftState [12:22:14]SAM_PROTO_GetShiftState [12:22:14]wFMCommunicate request_size=4 [12:22:14]MH_SAM_APDU [12:22:14]CAPDU: 80 13 01 00 [12:22:14]Write to MH i2c: E2 08 00 EB 16 80 13 01 00 00 00 00 00 7E [12:22:14]Write i2c OK [12:22:14]MH_I2C_Read... [12:22:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:14]Read from MH i2c: E2 [12:22:14]MH_I2C_Read... [12:22:14]Read from MH i2c: E2 0E 00 [12:22:14]MH_I2C_Read... [12:22:14]Read from MH i2c: E2 0E 00 EB 16 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 98 [12:22:14]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:22:14]wFMCommunicate OK [12:22:14]SAM_PROTO_GetShiftState done [12:22:14]FM_GetShiftState done [12:22:14]opened in 1729383750 [12:22:14]opened+sec_in_day 1729470150 [12:22:14]quantity*price = 90004 [12:22:14]sum+1 = 90006 [12:22:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.96 НДС 12% : 95.58 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 272 20.10.2024 12:22 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227424 ФПД: 241271125235723 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T122215&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227424&fm=241271125235723&tin=02508201610067®Number=0000000000091685&sum=90000 [12:22:15]StoreToDocumentArchive [12:22:15]shift 533 fd 227424 [12:22:15]save to /storage/0533/doc_00227424 [12:22:15]save last doc name /storage/0533/doc_00227424 to /storage/kkm_last_doc_name [12:22:15]save OK [12:22:15]Clear old archive folders... [12:22:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:22:15]tlvbuf is B6E67B00 [12:22:15]SAM_PROTO_ClearQueue [12:22:15]wFMCommunicate request_size=4 [12:22:15]MH_SAM_APDU [12:22:15]CAPDU: 80 09 00 00 [12:22:15]Write to MH i2c: E2 08 00 F8 16 80 09 00 00 00 00 00 00 80 [12:22:15]Write i2c OK [12:22:15]MH_I2C_Read... [12:22:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:22:15]Read from MH i2c: E2 [12:22:15]MH_I2C_Read... [12:22:15]Read from MH i2c: E2 03 00 [12:22:15]MH_I2C_Read... [12:22:15]Read from MH i2c: E2 03 00 F8 16 00 90 00 82 [12:22:15]RAPDU: 90 00 [12:22:15]wFMCommunicate OK [12:22:15]SAM_PROTO_ClearQueue done [12:22:15]KKMCreateOFDPacket [12:22:15]OFDProtocolAddRootSTLVToBuf [12:22:15]FM_MakeSignedData [12:22:15]FM_MakeSignedData [12:22:15]SAM_PROTO_SignData [12:22:15]wFMCommunicate request_size=4 [12:22:15]MH_SAM_APDU [12:22:15]CAPDU: 80 0D 01 02 [12:22:15]Write to MH i2c: E2 08 00 F9 16 80 0D 01 02 00 00 00 00 88 [12:22:15]Write i2c OK [12:22:15]MH_I2C_Read... [12:22:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:22:15]Read from MH i2c: E2 [12:22:15]MH_I2C_Read... [12:22:15]Read from MH i2c: E2 03 00 [12:22:15]MH_I2C_Read... [12:22:15]Read from MH i2c: E2 03 00 F9 16 00 90 00 83 [12:22:15]RAPDU: 90 00 [12:22:15]wFMCommunicate OK [12:22:15]wFMCommunicate request_size=255 [12:22:15]MH_SAM_APDU [12:22:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 62 2F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 95 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 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 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 10 01 00 00 F4 03 04 00 F7 F5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 60 78 03 00 35 04 06 00 DB [12:22:15]Write to MH i2c: E2 02 01 FA 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 62 2F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 95 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 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 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 10 01 00 00 F4 03 04 00 F7 F5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 60 78 03 00 35 04 06 00 DB 00 00 FB [12:22:15]Write i2c OK [12:22:15]MH_I2C_Read... [12:22:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:16]Read from MH i2c: E2 [12:22:16]MH_I2C_Read... [12:22:16]Read from MH i2c: E2 03 00 [12:22:16]MH_I2C_Read... [12:22:16]Read from MH i2c: E2 03 00 FA 16 00 90 00 84 [12:22:16]RAPDU: 90 00 [12:22:16]wFMCommunicate OK [12:22:16]wFMCommunicate request_size=10 [12:22:16]MH_SAM_APDU [12:22:16]CAPDU: 80 0D 02 02 05 6F 4F B6 D8 0B [12:22:16]Write to MH i2c: E2 0D 00 FB 16 80 0D 02 02 05 00 6F 4F B6 D8 0B 00 00 EC [12:22:16]Write i2c OK [12:22:16]MH_I2C_Read... [12:22:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:16]Read from MH i2c: E2 [12:22:16]MH_I2C_Read... [12:22:16]Read from MH i2c: E2 03 00 [12:22:16]MH_I2C_Read... [12:22:16]Read from MH i2c: E2 03 00 FB 16 00 90 00 85 [12:22:16]RAPDU: 90 00 [12:22:16]wFMCommunicate OK [12:22:16]wFMCommunicate request_size=4 [12:22:16]MH_SAM_APDU [12:22:16]CAPDU: 80 0D 03 02 [12:22:16]Write to MH i2c: E2 08 00 FC 16 80 0D 03 02 00 00 00 00 8D [12:22:16]Write i2c OK [12:22:16]MH_I2C_Read... [12:22:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:22:16]Read from MH i2c: E2 [12:22:16]MH_I2C_Read... [12:22:16]Read from MH i2c: E2 0B 00 [12:22:16]MH_I2C_Read... [12:22:16]Read from MH i2c: E2 0B 00 FC 16 00 EB 5B C8 06 28 14 59 06 90 00 3D [12:22:16]RAPDU: EB 5B C8 06 28 14 59 06 90 00 [12:22:16]wFMCommunicate OK [12:22:16]SAM_PROTO_SignData done [12:22:16]FM_MakeSignedData done [12:22:16]CreateOFDProtocolMessage [12:22:16]wFMCommunicate request_size=4 [12:22:16]MH_SAM_APDU [12:22:16]CAPDU: 80 11 00 00 [12:22:16]Write to MH i2c: E2 08 00 FD 16 80 11 00 00 00 00 00 00 8D [12:22:16]Write i2c OK [12:22:16]MH_I2C_Read... [12:22:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:16]Read from MH i2c: E2 [12:22:16]MH_I2C_Read... [12:22:16]Read from MH i2c: E2 17 00 [12:22:16]MH_I2C_Read... [12:22:16]Read from MH i2c: E2 17 00 FD 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E4 [12:22:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:22:16]wFMCommunicate OK [12:22:16]CreateOFDProtocolMessage done [12:22:16]OFDSenderStorePacket 227424 [12:22:16]StoreOFDPacket docnum=227424 [12:22:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 51 A2 07 01 06 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 62 2F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 95 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 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 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 10 01 00 00 F4 03 04 00 F7 F5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 60 78 03 00 35 04 06 00 DB 6F 4F B6 D8 0B EB 5B C8 06 28 14 59 06 [12:22:16]CheckFolder [12:22:16]dirname=/storage/ofd_packets [12:22:16]CheckFolder done [12:22:16]ProducePacketName [12:22:16]name=ofd_packets/00227424 [12:22:16]NVStorageSaveData ofd_packets/00227424 [12:22:16]File name is /storage/ofd_packets/00227424 [12:22:16]Write 301 bytes [12:22:16]NVStorageSaveData done [12:22:16]OFDSenderStorePacket done [12:22:16]KKMCreateOFDPacket done [12:22:16]NVStorageSaveData kkm_last_timestamp [12:22:16]File name is /storage/kkm_last_timestamp [12:22:16]Write 4 bytes [12:22:16]NVStorageSaveData done [12:22:16]ExternCall_PrintAddStr [12:22:16]wPrintStart [12:22:16]Write to MH i2c: 01 00 00 FE 16 14 [12:22:16]Write i2c OK [12:22:16]MH_I2C_Read... [12:22:16]Read from MH i2c: 01 [12:22:16]MH_I2C_Read... [12:22:16]Read from MH i2c: 01 07 00 [12:22:16]MH_I2C_Read... [12:22:16]Read from MH i2c: 01 07 00 FE 16 00 00 00 00 00 FF 0F 29 [12:22:16]RasterBufferAndPrint [12:22:16]line Счет N : (1)1962942 [12:22:16]line ИНН: 02508201610067 [12:22:16]line Контрольно-Кассовый Чек [12:22:16]line ПРОДАЖА [12:22:16]line ТРК (МРК, ГНК) : 44 [12:22:16]line Товар: 2710124500 [12:22:16]line Аи-95-К-5 [12:22:16]line 12.130 * 74.20 [12:22:16]line = 900.05 [12:22:16]line НДС 12% НСП 1% [12:22:16]line > о реализуемом товаре [12:22:16]line ОКРУГЛЕНИЕ: -0.05 [12:22:16]line ИТОГО: 900.00 [12:22:16]line Внесено: 900.00 [12:22:16]line СДАЧА: 0.00 [12:22:16]line НСП 1% : 7.96 [12:22:16]line НДС 12% : 95.58 [12:22:16]line Наличными: 900.00 [12:22:16]line Безнал.: 0.00 [12:22:16]line Место: АЗС № 133 "Партнер Нефть" [12:22:16]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:22:16]line СНО: Общий режим [12:22:16]line Чек 272 20.10.2024 12:22 [12:22:16]line Смена: 533 ФФД: 1.0 [12:22:16]line ЗНМ: 0300000091 [12:22:16]line РНМ: 0000000000091685 [12:22:16]line Версия ККМ: 001 [12:22:16]line ФМ: 0000000000871839 [12:22:16]line ФД: 227424 [12:22:16]line ФПД: 241271125235723 [12:22:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T122215&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227424&fm=241271125235723&tin=02508201610067®Number=0000000000091685&sum=90000 [12:22:16]OFD Sender: Processing packet 227424 [packets to send 38, broken 37] [12:22:16]ProducePacketName [12:22:16]name=ofd_packets/00227424 [12:22:16]OFD Sender: To server: pG, [12:22:16]CommunicateWithHost lk.salyk.kg:30040 [12:22:16]ConnectInit lk.salyk.kg [12:22:16]written 0, free lines is 4095 [12:22:16]Connected sock=9 [12: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 33 39 0F 01 00 00 51 A2 07 01 06 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 62 2F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 95 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 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 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 10 01 00 00 F4 03 04 00 F7 F5 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 60 78 03 00 35 04 06 00 DB 6F 4F B6 D8 0B EB 5B C8 06 28 14 59 06 [12: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 33 39 4F 00 00 00 05 D8 47 00 42 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 33 39 10 04 04 00 60 78 03 00 F4 03 04 00 F6 A0 14 67 B6 04 01 00 00 99 98 F2 9B E4 01 94 8A [12:22:16]CommunicateWithHost err = 0 [12:22:16]CheckOFDResponse [12:22:16]1017 (14) - 77093643461234 [12:22:16]1041 (16) - 0000000000871839 [12:22:16]1040 (4) - 227424 [12:22:16]1012 (4) - 20.10.2024 06:19 [12:22:16]1206 (1) - 0 [12:22:16]OFD Sender: Remove packet 227424 [12:22:16]ProducePacketName [12:22:16]name=ofd_packets/00227424 [12:22:16]NVStorageDeleteData [12:22:17]Write to MH i2c: 01 00 00 28 17 3F [12:22:17]Write i2c OK [12:22:17]MH_I2C_Read... [12:22:17]Read from MH i2c: 01 [12:22:17]MH_I2C_Read... [12:22:17]Read from MH i2c: 01 07 00 [12:22:17]MH_I2C_Read... [12:22:17]Read from MH i2c: 01 07 00 28 17 00 00 00 00 00 1C 0D 6F [12:22:17]RasterBufferAndPrint [12:22:17]line [12:22:17]line [12:22:17]line [12:22:17]line [12:22:17]line [12:22:17]written 0, free lines is 3362 [12:22:17]process_action close_receipt done [12:22:17]requested_data is exist [12:22:17]produce_requested_data [12:22:17]requested_item fm.sn is exist - process it [12:22:17]wFMCommunicate request_size=4 [12:22:17]MH_SAM_APDU [12:22:17]CAPDU: 80 11 00 00 [12:22:17]Write to MH i2c: E2 08 00 2F 17 80 11 00 00 00 00 00 00 C0 [12:22:17]Write i2c OK [12:22:17]MH_I2C_Read... [12:22:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:17]Read from MH i2c: E2 [12:22:17]MH_I2C_Read... [12:22:17]Read from MH i2c: E2 17 00 [12:22:17]MH_I2C_Read... [12:22:17]Read from MH i2c: E2 17 00 2F 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 17 [12:22:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:22:17]wFMCommunicate OK [12:22:17]requested_item fd.num is exist - process it [12:22:17]SAM_PROTO_GetFieldsCounters [12:22:17]wFMCommunicate request_size=4 [12:22:17]MH_SAM_APDU [12:22:17]CAPDU: 80 13 00 00 [12:22:17]Write to MH i2c: E2 08 00 30 17 80 13 00 00 00 00 00 00 C3 [12:22:17]Write i2c OK [12:22:17]MH_I2C_Read... [12:22:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:22:17]Read from MH i2c: E2 [12:22:17]MH_I2C_Read... [12:22:17]Read from MH i2c: E2 62 00 [12:22:17]MH_I2C_Read... [12:22:17]Read from MH i2c: E2 62 00 30 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 60 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 11 [12: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 60 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:22:17]wFMCommunicate OK [12:22:17]SAM_PROTO_GetFieldsCounters done [12:22:17]requested_item shift.num is exist - process it [12:22:17]requested_item shift.opened is exist - process it [12:22:17]req_shift_opened [12:22:17]FM_GetShiftState [12:22:17]SAM_PROTO_GetShiftState [12:22:17]wFMCommunicate request_size=4 [12:22:17]MH_SAM_APDU [12:22:17]CAPDU: 80 13 01 00 [12:22:17]Write to MH i2c: E2 08 00 31 17 80 13 01 00 00 00 00 00 C5 [12:22:17]Write i2c OK [12:22:17]MH_I2C_Read... [12:22:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:17]Read from MH i2c: E2 [12:22:17]MH_I2C_Read... [12:22:17]Read from MH i2c: E2 0E 00 [12:22:17]MH_I2C_Read... [12:22:17]Read from MH i2c: E2 0E 00 31 17 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 DF [12:22:17]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:22:17]wFMCommunicate OK [12:22:17]SAM_PROTO_GetShiftState done [12:22:17]FM_GetShiftState done [12:22:17]req_shift_opened done [12:22:17]requested_item shift.open_date is exist - process it [12:22:17]req_shift_open_date [12:22:17]req_shift_open_date done [12:22:17]produce_requested_data done [12:22:17]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227424,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [12:22:17]process_action_free close_receipt [12:22:17]json_value_free [12:22:17]json_value_free done [12:22:17]process_json_proto returns [12:22:17]Send response to host [12:22:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227424,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [12:22:17]free response buf [12:22:17]execute_script done [12:22:17]execute_script returns [12:22:17]free content buf [12:22:17]Sock 10.Close socket [12:22:17]Sock 10.Thread stoped [12:22:17]OFD Sender: No OFD packet to send [12:22:22]OFD Sender: No OFD packet to send [12:22:27]OFD Sender: No OFD packet to send [12:22:32]OFD Sender: No OFD packet to send [12:22:37]OFD Sender: No OFD packet to send [12:22:42]OFD Sender: No OFD packet to send [12:22:47]OFD Sender: No OFD packet to send [12:22:52]OFD Sender: No OFD packet to send [12:22:57]OFD Sender: No OFD packet to send [12:23:02]OFD Sender: No OFD packet to send [12:23:07]OFD Sender: No OFD packet to send [12:23:12]OFD Sender: No OFD packet to send [12:23:17]OFD Sender: No OFD packet to send [12:23:22]OFD Sender: No OFD packet to send [12:23:27]OFD Sender: No OFD packet to send [12:23:32]OFD Sender: No OFD packet to send [12:23:37]OFD Sender: No OFD packet to send [12:23:42]OFD Sender: No OFD packet to send [12:23:47]OFD Sender: No OFD packet to send [12:23:52]OFD Sender: No OFD packet to send [12:23:57]OFD Sender: No OFD packet to send [12:24:02]OFD Sender: No OFD packet to send [12:24:07]OFD Sender: No OFD packet to send [12:24:12]OFD Sender: No OFD packet to send [12:24:17]OFD Sender: No OFD packet to send [12:24:22]OFD Sender: No OFD packet to send [12:24:27]OFD Sender: No OFD packet to send [12:24:32]OFD Sender: No OFD packet to send [12:24:37]OFD Sender: No OFD packet to send [12:24:42]OFD Sender: No OFD packet to send [12:24:47]OFD Sender: No OFD packet to send [12:24:52]OFD Sender: No OFD packet to send [12:24:57]OFD Sender: No OFD packet to send [12:25:02]OFD Sender: No OFD packet to send [12:25:07]OFD Sender: No OFD packet to send [12:25:12]OFD Sender: No OFD packet to send [12:25:14]accept exits with 8 [12:25:14]New connection [12:25:14]New thread 3066686820 created [12:25:14]Thread 3066543460 joined [12:25:14]Waiting for new connection... [12:25:14] Sock 8.Parse request [12:25:14]Sock 8.Check first char [12:25:14]Sock 8.First char is OK [12:25:14]request: POST /json_proto HTTP/1.0 [12:25:14]Method: POST [12:25:14]URL: /json_proto [12:25:14]Method is POST - this is cgi request [12:25:14]url: /json_proto [12:25:14]query_string will be loaded in cgi processing [12:25:14]execute_cgi json_proto POST (null) [12:25:14]execute_cgi path=json_proto method=POST [12:25:14]POST find Content-Length [12:25:14]Host: 172.17.44.195:8080 [12:25:14]Content-Length: 678 [12:25:14]Content-Type: application/json [12:25:14] [12:25:14]POST finish read [12:25:14]Found Content-Length = 678 [12:25:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962945", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.230, "sum" : 550.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:14]execute_script... [12:25: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)1962945", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.230, "sum" : 550.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:14]POST & json_proto [12:25:14]process_json_proto [12:25:14]json parsed OK: [12:25:14]protocol is kg_v1.0 [12:25:14]action value=close_receipt [12:25:14]process_action close_receipt [12:25:14]cmd_close_receipt [12:25:14]MH_GetDate [12:25:14]Write to MH i2c: F0 00 00 32 17 38 [12:25:14]Write i2c OK [12:25:14]MH_I2C_Read... [12:25:14]Read from MH i2c: F0 [12:25:14]MH_I2C_Read... [12:25:14]Read from MH i2c: F0 09 00 [12:25:14]MH_I2C_Read... [12:25:14]Read from MH i2c: F0 09 00 32 17 00 AB F6 14 67 82 C9 CF 66 DD [12:25:14]GetLastDocTimeStamp 1729426935 [12:25:14]current date 1729427115 [12:25:14]FM_GetShiftState [12:25:14]SAM_PROTO_GetShiftState [12:25:14]wFMCommunicate request_size=4 [12:25:14]MH_SAM_APDU [12:25:14]CAPDU: 80 13 01 00 [12:25:14]Write to MH i2c: E2 08 00 33 17 80 13 01 00 00 00 00 00 C7 [12:25:14]Write i2c OK [12:25:14]MH_I2C_Read... [12:25:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:14]Read from MH i2c: E2 [12:25:14]MH_I2C_Read... [12:25:14]Read from MH i2c: E2 0E 00 [12:25:14]MH_I2C_Read... [12:25:14]Read from MH i2c: E2 0E 00 33 17 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 E1 [12:25:14]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:25:14]wFMCommunicate OK [12:25:14]SAM_PROTO_GetShiftState done [12:25:14]FM_GetShiftState done [12:25:14]opened in 1729383750 [12:25:14]opened+sec_in_day 1729470150 [12:25:14]quantity*price = 55058 [12:25:14]sum+1 = 55060 [12:25:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 550.00 Внесено: 550.00 СДАЧА: 0.00 НСП 1% : 4.87 НДС 12% : 58.47 Наличными: 550.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 273 20.10.2024 12:25 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227425 ФПД: 25321223253401 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T122515&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227425&fm=25321223253401&tin=02508201610067®Number=0000000000091685&sum=55000 [12:25:16]StoreToDocumentArchive [12:25:16]shift 533 fd 227425 [12:25:16]save to /storage/0533/doc_00227425 [12:25:16]save last doc name /storage/0533/doc_00227425 to /storage/kkm_last_doc_name [12:25:16]save OK [12:25:16]Clear old archive folders... [12:25:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:25:16]tlvbuf is B6E675A0 [12:25:16]SAM_PROTO_ClearQueue [12:25:16]wFMCommunicate request_size=4 [12:25:16]MH_SAM_APDU [12:25:16]CAPDU: 80 09 00 00 [12:25:16]Write to MH i2c: E2 08 00 40 17 80 09 00 00 00 00 00 00 C9 [12:25:16]Write i2c OK [12:25:16]MH_I2C_Read... [12:25:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:25:16]Read from MH i2c: E2 [12:25:16]MH_I2C_Read... [12:25:16]Read from MH i2c: E2 03 00 [12:25:16]MH_I2C_Read... [12:25:16]Read from MH i2c: E2 03 00 40 17 00 90 00 CB [12:25:16]RAPDU: 90 00 [12:25:16]wFMCommunicate OK [12:25:16]SAM_PROTO_ClearQueue done [12:25:16]KKMCreateOFDPacket [12:25:16]OFDProtocolAddRootSTLVToBuf [12:25:16]FM_MakeSignedData [12:25:16]FM_MakeSignedData [12:25:16]SAM_PROTO_SignData [12:25:16]wFMCommunicate request_size=4 [12:25:16]MH_SAM_APDU [12:25:16]CAPDU: 80 0D 01 02 [12:25:16]Write to MH i2c: E2 08 00 41 17 80 0D 01 02 00 00 00 00 D1 [12:25:16]Write i2c OK [12:25:16]MH_I2C_Read... [12:25:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:25:16]Read from MH i2c: E2 [12:25:16]MH_I2C_Read... [12:25:16]Read from MH i2c: E2 03 00 [12:25:16]MH_I2C_Read... [12:25:16]Read from MH i2c: E2 03 00 41 17 00 90 00 CC [12:25:16]RAPDU: 90 00 [12:25:16]wFMCommunicate OK [12:25:16]wFMCommunicate request_size=255 [12:25:16]MH_SAM_APDU [12:25:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 20 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 AB F6 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 61 78 03 00 35 04 06 00 17 [12:25:16]Write to MH i2c: E2 02 01 42 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 20 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 AB F6 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 61 78 03 00 35 04 06 00 17 00 00 B8 [12:25:16]Write i2c OK [12:25:16]MH_I2C_Read... [12:25:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:16]Read from MH i2c: E2 [12:25:16]MH_I2C_Read... [12:25:16]Read from MH i2c: E2 03 00 [12:25:16]MH_I2C_Read... [12:25:16]Read from MH i2c: E2 03 00 42 17 00 90 00 CD [12:25:16]RAPDU: 90 00 [12:25:16]wFMCommunicate OK [12:25:16]wFMCommunicate request_size=10 [12:25:16]MH_SAM_APDU [12:25:16]CAPDU: 80 0D 02 02 05 07 8E 84 6D 99 [12:25:16]Write to MH i2c: E2 0D 00 43 17 80 0D 02 02 05 00 07 8E 84 6D 99 00 00 FD [12:25:16]Write i2c OK [12:25:16]MH_I2C_Read... [12:25:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:16]Read from MH i2c: E2 [12:25:16]MH_I2C_Read... [12:25:16]Read from MH i2c: E2 03 00 [12:25:16]MH_I2C_Read... [12:25:16]Read from MH i2c: E2 03 00 43 17 00 90 00 CE [12:25:16]RAPDU: 90 00 [12:25:16]wFMCommunicate OK [12:25:16]wFMCommunicate request_size=4 [12:25:16]MH_SAM_APDU [12:25:16]CAPDU: 80 0D 03 02 [12:25:16]Write to MH i2c: E2 08 00 44 17 80 0D 03 02 00 00 00 00 D6 [12:25:16]Write i2c OK [12:25:16]MH_I2C_Read... [12:25:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:25:16]Read from MH i2c: E2 [12:25:16]MH_I2C_Read... [12:25:16]Read from MH i2c: E2 0B 00 [12:25:16]MH_I2C_Read... [12:25:16]Read from MH i2c: E2 0B 00 44 17 00 90 E8 7D F7 11 7B 0D A8 90 00 04 [12:25:16]RAPDU: 90 E8 7D F7 11 7B 0D A8 90 00 [12:25:16]wFMCommunicate OK [12:25:16]SAM_PROTO_SignData done [12:25:16]FM_MakeSignedData done [12:25:16]CreateOFDProtocolMessage [12:25:16]wFMCommunicate request_size=4 [12:25:16]MH_SAM_APDU [12:25:16]CAPDU: 80 11 00 00 [12:25:16]Write to MH i2c: E2 08 00 45 17 80 11 00 00 00 00 00 00 D6 [12:25:16]Write i2c OK [12:25:16]MH_I2C_Read... [12:25:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:16]Read from MH i2c: E2 [12:25:16]MH_I2C_Read... [12:25:16]Read from MH i2c: E2 17 00 [12:25:16]MH_I2C_Read... [12:25:16]Read from MH i2c: E2 17 00 45 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 2D [12:25:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:25:16]wFMCommunicate OK [12:25:16]CreateOFDProtocolMessage done [12:25:16]OFDSenderStorePacket 227425 [12:25:16]StoreOFDPacket docnum=227425 [12:25:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 A0 65 07 01 26 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 20 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 AB F6 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 61 78 03 00 35 04 06 00 17 07 8E 84 6D 99 90 E8 7D F7 11 7B 0D A8 [12:25:16]CheckFolder [12:25:16]dirname=/storage/ofd_packets [12:25:16]CheckFolder done [12:25:16]ProducePacketName [12:25:16]name=ofd_packets/00227425 [12:25:16]NVStorageSaveData ofd_packets/00227425 [12:25:16]File name is /storage/ofd_packets/00227425 [12:25:16]Write 301 bytes [12:25:16]NVStorageSaveData done [12:25:16]OFDSenderStorePacket done [12:25:16]KKMCreateOFDPacket done [12:25:16]NVStorageSaveData kkm_last_timestamp [12:25:16]File name is /storage/kkm_last_timestamp [12:25:16]Write 4 bytes [12:25:16]OFD Sender: Processing packet 227425 [packets to send 38, broken 37] [12:25:16]ProducePacketName [12:25:16]name=ofd_packets/00227425 [12:25:16]OFD Sender: To server: pG, [12:25:16]CommunicateWithHost lk.salyk.kg:30040 [12:25:16]ConnectInit lk.salyk.kg [12:25:16]NVStorageSaveData done [12:25:16]ExternCall_PrintAddStr [12:25:16]wPrintStart [12:25:16]Write to MH i2c: 01 00 00 46 17 5D [12:25:16]Write i2c OK [12:25:16]MH_I2C_Read... [12:25:16]Read from MH i2c: 01 [12:25:16]MH_I2C_Read... [12:25:16]Read from MH i2c: 01 07 00 [12:25:16]MH_I2C_Read... [12:25:16]Read from MH i2c: 01 07 00 46 17 00 00 00 00 00 FF 0F 72 [12:25:16]RasterBufferAndPrint [12:25:16]line Счет N : (1)1962945 [12:25:16]line ИНН: 02508201610067 [12:25:16]line Контрольно-Кассовый Чек [12:25:16]line ПРОДАЖА [12:25:16]line ТРК (МРК, ГНК) : 43 [12:25:16]line Товар: 2710124130 [12:25:16]line Аи-92-К-5 [12:25:16]line 8.230 * 66.90 [12:25:16]line = 550.59 [12:25:16]line НДС 12% НСП 1% [12:25:16]line > о реализуемом товаре [12:25:16]line ОКРУГЛЕНИЕ: -0.59 [12:25:16]line ИТОГО: 550.00 [12:25:16]line Внесено: 550.00 [12:25:16]line СДАЧА: 0.00 [12:25:16]line НСП 1% : 4.87 [12:25:16]line НДС 12% : 58.47 [12:25:16]line Наличными: 550.00 [12:25:16]line Безнал.: 0.00 [12:25:16]line Место: АЗС № 133 "Партнер Нефть" [12:25:16]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:25:16]line СНО: Общий режим [12:25:16]line Чек 273 20.10.2024 12:25 [12:25:16]line Смена: 533 ФФД: 1.0 [12:25:16]line ЗНМ: 0300000091 [12:25:16]line РНМ: 0000000000091685 [12:25:16]line Версия ККМ: 001 [12:25:16]line ФМ: 0000000000871839 [12:25:16]line ФД: 227425 [12:25:16]line ФПД: 25321223253401 [12:25:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T122515&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227425&fm=25321223253401&tin=02508201610067®Number=0000000000091685&sum=55000 [12:25:16]Connected sock=11 [12:25: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 33 39 0F 01 00 00 A0 65 07 01 26 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 20 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 AB F6 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 61 78 03 00 35 04 06 00 17 07 8E 84 6D 99 90 E8 7D F7 11 7B 0D A8 [12:25:16]written 0, free lines is 4095 [12:25: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 33 39 4F 00 00 00 91 98 47 00 E6 DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 61 78 03 00 F4 03 04 00 AA A1 14 67 B6 04 01 00 00 5A 51 8D DC 89 AD 28 F3 [12:25:17]CommunicateWithHost err = 0 [12:25:17]CheckOFDResponse [12:25:17]1017 (14) - 77093643461234 [12:25:17]1041 (16) - 0000000000871839 [12:25:17]1040 (4) - 227425 [12:25:17]1012 (4) - 20.10.2024 06:22 [12:25:17]1206 (1) - 0 [12:25:17]OFD Sender: Remove packet 227425 [12:25:17]ProducePacketName [12:25:17]name=ofd_packets/00227425 [12:25:17]NVStorageDeleteData [12:25:17]Write to MH i2c: 01 00 00 70 17 87 [12:25:17]Write i2c OK [12:25:17]MH_I2C_Read... [12:25:17]Read from MH i2c: 01 [12:25:17]MH_I2C_Read... [12:25:17]Read from MH i2c: 01 07 00 [12:25:17]MH_I2C_Read... [12:25:17]Read from MH i2c: 01 07 00 70 17 00 00 00 00 00 13 0D AE [12:25:17]RasterBufferAndPrint [12:25:17]line [12:25:17]line [12:25:17]line [12:25:17]line [12:25:17]line [12:25:17]written 0, free lines is 3353 [12:25:17]process_action close_receipt done [12:25:17]requested_data is exist [12:25:17]produce_requested_data [12:25:17]requested_item fm.sn is exist - process it [12:25:17]wFMCommunicate request_size=4 [12:25:17]MH_SAM_APDU [12:25:17]CAPDU: 80 11 00 00 [12:25:17]Write to MH i2c: E2 08 00 77 17 80 11 00 00 00 00 00 00 08 [12:25:17]Write i2c OK [12:25:17]MH_I2C_Read... [12:25:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:17]Read from MH i2c: E2 [12:25:17]MH_I2C_Read... [12:25:17]Read from MH i2c: E2 17 00 [12:25:17]MH_I2C_Read... [12:25:17]Read from MH i2c: E2 17 00 77 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 5F [12:25:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:25:17]wFMCommunicate OK [12:25:17]requested_item fd.num is exist - process it [12:25:17]SAM_PROTO_GetFieldsCounters [12:25:17]wFMCommunicate request_size=4 [12:25:17]MH_SAM_APDU [12:25:17]CAPDU: 80 13 00 00 [12:25:17]Write to MH i2c: E2 08 00 78 17 80 13 00 00 00 00 00 00 0B [12:25:17]Write i2c OK [12:25:17]MH_I2C_Read... [12:25:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:25:17]Read from MH i2c: E2 [12:25:17]MH_I2C_Read... [12:25:17]Read from MH i2c: E2 62 00 [12:25:17]MH_I2C_Read... [12:25:17]Read from MH i2c: E2 62 00 78 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 61 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 5D [12:25: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 61 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:25:17]wFMCommunicate OK [12:25:17]SAM_PROTO_GetFieldsCounters done [12:25:17]requested_item shift.num is exist - process it [12:25:17]requested_item shift.opened is exist - process it [12:25:17]req_shift_opened [12:25:17]FM_GetShiftState [12:25:17]SAM_PROTO_GetShiftState [12:25:17]wFMCommunicate request_size=4 [12:25:17]MH_SAM_APDU [12:25:17]CAPDU: 80 13 01 00 [12:25:17]Write to MH i2c: E2 08 00 79 17 80 13 01 00 00 00 00 00 0D [12:25:17]OFD Sender: No OFD packet to send [12:25:17]Write i2c OK [12:25:17]MH_I2C_Read... [12:25:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:17]Read from MH i2c: E2 [12:25:17]MH_I2C_Read... [12:25:17]Read from MH i2c: E2 0E 00 [12:25:17]MH_I2C_Read... [12:25:17]Read from MH i2c: E2 0E 00 79 17 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 27 [12:25:17]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:25:17]wFMCommunicate OK [12:25:17]SAM_PROTO_GetShiftState done [12:25:17]FM_GetShiftState done [12:25:17]req_shift_opened done [12:25:17]requested_item shift.open_date is exist - process it [12:25:17]req_shift_open_date [12:25:17]req_shift_open_date done [12:25:17]produce_requested_data done [12:25:17]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227425,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [12:25:17]process_action_free close_receipt [12:25:17]json_value_free [12:25:17]json_value_free done [12:25:17]process_json_proto returns [12:25:17]Send response to host [12:25:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227425,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [12:25:17]free response buf [12:25:17]execute_script done [12:25:17]execute_script returns [12:25:17]free content buf [12:25:17]Sock 8.Close socket [12:25:17]Sock 8.Thread stoped [12:25:22]OFD Sender: No OFD packet to send [12:25:27]OFD Sender: No OFD packet to send [12:25:32]OFD Sender: No OFD packet to send [12:25:37]OFD Sender: No OFD packet to send [12:25:42]OFD Sender: No OFD packet to send [12:25:47]OFD Sender: No OFD packet to send [12:25:52]OFD Sender: No OFD packet to send [12:25:57]OFD Sender: No OFD packet to send [12:26:02]OFD Sender: No OFD packet to send [12:26:07]OFD Sender: No OFD packet to send [12:26:12]OFD Sender: No OFD packet to send [12:26:17]OFD Sender: No OFD packet to send [12:26:22]OFD Sender: No OFD packet to send [12:26:27]OFD Sender: No OFD packet to send [12:26:32]OFD Sender: No OFD packet to send [12:26:37]OFD Sender: No OFD packet to send [12:26:42]OFD Sender: No OFD packet to send [12:26:47]OFD Sender: No OFD packet to send [12:26:52]OFD Sender: No OFD packet to send [12:26:57]OFD Sender: No OFD packet to send [12:27:00]accept exits with 9 [12:27:00]New connection [12:27:00]New thread 3066543460 created [12:27:00]Thread 3066686820 joined [12:27:00]Waiting for new connection... [12:27:00] Sock 9.Parse request [12:27:00]Sock 9.Check first char [12:27:00]Sock 9.First char is OK [12:27:00]request: POST /json_proto HTTP/1.0 [12:27:00]Method: POST [12:27:00]URL: /json_proto [12:27:00]Method is POST - this is cgi request [12:27:00]url: /json_proto [12:27:00]query_string will be loaded in cgi processing [12:27:00]execute_cgi json_proto POST (null) [12:27:00]execute_cgi path=json_proto method=POST [12:27:00]POST find Content-Length [12:27:00]Host: 172.17.44.195:8080 [12:27:00]Content-Length: 678 [12:27:00]Content-Type: application/json [12:27:00] [12:27:00]POST finish read [12:27:00]Found Content-Length = 678 [12:27:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962946", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.400, "sum" : 160.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 160.00, "total" : 160.00, "payments": [ { "type": 0, "sum" : 160.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:00]execute_script... [12:27: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)1962946", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.400, "sum" : 160.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 160.00, "total" : 160.00, "payments": [ { "type": 0, "sum" : 160.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:00]POST & json_proto [12:27:00]process_json_proto [12:27:00]json parsed OK: [12:27:00]protocol is kg_v1.0 [12:27:00]action value=close_receipt [12:27:00]process_action close_receipt [12:27:00]cmd_close_receipt [12:27:00]MH_GetDate [12:27:00]Write to MH i2c: F0 00 00 7A 17 80 [12:27:00]Write i2c OK [12:27:00]MH_I2C_Read... [12:27:00]Read from MH i2c: F0 [12:27:00]MH_I2C_Read... [12:27:00]Read from MH i2c: F0 09 00 [12:27:00]MH_I2C_Read... [12:27:00]Read from MH i2c: F0 09 00 7A 17 00 15 F7 14 67 82 C9 CF 66 90 [12:27:00]GetLastDocTimeStamp 1729427115 [12:27:00]current date 1729427221 [12:27:00]FM_GetShiftState [12:27:00]SAM_PROTO_GetShiftState [12:27:00]wFMCommunicate request_size=4 [12:27:00]MH_SAM_APDU [12:27:00]CAPDU: 80 13 01 00 [12:27:00]Write to MH i2c: E2 08 00 7B 17 80 13 01 00 00 00 00 00 0F [12:27:00]Write i2c OK [12:27:00]MH_I2C_Read... [12:27:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:00]Read from MH i2c: E2 [12:27:00]MH_I2C_Read... [12:27:00]Read from MH i2c: E2 0E 00 [12:27:00]MH_I2C_Read... [12:27:00]Read from MH i2c: E2 0E 00 7B 17 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 29 [12:27:00]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:27:00]wFMCommunicate OK [12:27:00]SAM_PROTO_GetShiftState done [12:27:00]FM_GetShiftState done [12:27:00]opened in 1729383750 [12:27:00]opened+sec_in_day 1729470150 [12:27:00]quantity*price = 16056 [12:27:00]sum+1 = 16057 [12:27:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 160.00 Внесено: 160.00 СДАЧА: 0.00 НСП 1% : 1.42 НДС 12% : 17.05 Наличными: 160.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 274 20.10.2024 12:27 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227426 ФПД: 188631453793438 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T122701&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227426&fm=188631453793438&tin=02508201610067®Number=0000000000091685&sum=16000 [12:27:01]StoreToDocumentArchive [12:27:01]shift 533 fd 227426 [12:27:01]save to /storage/0533/doc_00227426 [12:27:01]save last doc name /storage/0533/doc_00227426 to /storage/kkm_last_doc_name [12:27:01]save OK [12:27:01]Clear old archive folders... [12:27:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:27:01]tlvbuf is 01842970 [12:27:01]SAM_PROTO_ClearQueue [12:27:01]wFMCommunicate request_size=4 [12:27:01]MH_SAM_APDU [12:27:01]CAPDU: 80 09 00 00 [12:27:01]Write to MH i2c: E2 08 00 88 17 80 09 00 00 00 00 00 00 11 [12:27:01]Write i2c OK [12:27:01]MH_I2C_Read... [12:27:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:27:01]Read from MH i2c: E2 [12:27:01]MH_I2C_Read... [12:27:01]Read from MH i2c: E2 03 00 [12:27:01]MH_I2C_Read... [12:27:01]Read from MH i2c: E2 03 00 88 17 00 90 00 13 [12:27:01]RAPDU: 90 00 [12:27:01]wFMCommunicate OK [12:27:01]SAM_PROTO_ClearQueue done [12:27:01]KKMCreateOFDPacket [12:27:01]OFDProtocolAddRootSTLVToBuf [12:27:01]FM_MakeSignedData [12:27:01]FM_MakeSignedData [12:27:01]SAM_PROTO_SignData [12:27:01]wFMCommunicate request_size=4 [12:27:01]MH_SAM_APDU [12:27:01]CAPDU: 80 0D 01 02 [12:27:01]Write to MH i2c: E2 08 00 89 17 80 0D 01 02 00 00 00 00 19 [12:27:01]Write i2c OK [12:27:01]MH_I2C_Read... [12:27:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:27:01]Read from MH i2c: E2 [12:27:01]MH_I2C_Read... [12:27:01]Read from MH i2c: E2 03 00 [12:27:01]MH_I2C_Read... [12:27:01]Read from MH i2c: E2 03 00 89 17 00 90 00 14 [12:27:01]RAPDU: 90 00 [12:27:01]wFMCommunicate OK [12:27:01]wFMCommunicate request_size=255 [12:27:01]MH_SAM_APDU [12:27:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 09 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B8 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 15 F7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 62 78 03 00 35 04 06 00 AB [12:27:01]Write to MH i2c: E2 02 01 8A 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 09 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B8 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 15 F7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 62 78 03 00 35 04 06 00 AB 00 00 B8 [12:27:01]Write i2c OK [12:27:01]MH_I2C_Read... [12:27:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:01]Read from MH i2c: E2 [12:27:01]MH_I2C_Read... [12:27:01]Read from MH i2c: E2 03 00 [12:27:01]MH_I2C_Read... [12:27:01]Read from MH i2c: E2 03 00 8A 17 00 90 00 15 [12:27:01]RAPDU: 90 00 [12:27:01]wFMCommunicate OK [12:27:01]wFMCommunicate request_size=10 [12:27:01]MH_SAM_APDU [12:27:01]CAPDU: 80 0D 02 02 05 8F 2E CB FC 9E [12:27:01]Write to MH i2c: E2 0D 00 8B 17 80 0D 02 02 05 00 8F 2E CB FC 9E 00 00 48 [12:27:01]Write i2c OK [12:27:01]MH_I2C_Read... [12:27:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:01]Read from MH i2c: E2 [12:27:01]MH_I2C_Read... [12:27:01]Read from MH i2c: E2 03 00 [12:27:01]MH_I2C_Read... [12:27:01]Read from MH i2c: E2 03 00 8B 17 00 90 00 16 [12:27:01]RAPDU: 90 00 [12:27:01]wFMCommunicate OK [12:27:01]wFMCommunicate request_size=4 [12:27:01]MH_SAM_APDU [12:27:01]CAPDU: 80 0D 03 02 [12:27:01]Write to MH i2c: E2 08 00 8C 17 80 0D 03 02 00 00 00 00 1E [12:27:01]Write i2c OK [12:27:01]MH_I2C_Read... [12:27:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:27:01]Read from MH i2c: E2 [12:27:01]MH_I2C_Read... [12:27:01]Read from MH i2c: E2 0B 00 [12:27:01]MH_I2C_Read... [12:27:01]Read from MH i2c: E2 0B 00 8C 17 00 11 37 A5 A1 82 C5 AA CE 90 00 6C [12:27:01]RAPDU: 11 37 A5 A1 82 C5 AA CE 90 00 [12:27:01]wFMCommunicate OK [12:27:01]SAM_PROTO_SignData done [12:27:01]FM_MakeSignedData done [12:27:01]CreateOFDProtocolMessage [12:27:01]wFMCommunicate request_size=4 [12:27:01]MH_SAM_APDU [12:27:01]CAPDU: 80 11 00 00 [12:27:01]Write to MH i2c: E2 08 00 8D 17 80 11 00 00 00 00 00 00 1E [12:27:01]Write i2c OK [12:27:01]MH_I2C_Read... [12:27:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:01]Read from MH i2c: E2 [12:27:01]MH_I2C_Read... [12:27:01]Read from MH i2c: E2 17 00 [12:27:01]MH_I2C_Read... [12:27:01]Read from MH i2c: E2 17 00 8D 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 75 [12:27:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:27:01]wFMCommunicate OK [12:27:01]CreateOFDProtocolMessage done [12:27:01]OFDSenderStorePacket 227426 [12:27:01]StoreOFDPacket docnum=227426 [12:27:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 27 D1 07 01 6D 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 09 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B8 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 15 F7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 62 78 03 00 35 04 06 00 AB 8F 2E CB FC 9E 11 37 A5 A1 82 C5 AA CE [12:27:01]CheckFolder [12:27:01]dirname=/storage/ofd_packets [12:27:01]CheckFolder done [12:27:01]ProducePacketName [12:27:01]name=ofd_packets/00227426 [12:27:01]NVStorageSaveData ofd_packets/00227426 [12:27:01]File name is /storage/ofd_packets/00227426 [12:27:01]Write 301 bytes [12:27:01]NVStorageSaveData done [12:27:01]OFDSenderStorePacket done [12:27:01]KKMCreateOFDPacket done [12:27:01]NVStorageSaveData kkm_last_timestamp [12:27:01]File name is /storage/kkm_last_timestamp [12:27:01]Write 4 bytes [12:27:01]NVStorageSaveData done [12:27:01]ExternCall_PrintAddStr [12:27:02]wPrintStart [12:27:02]Write to MH i2c: 01 00 00 8E 17 A5 [12:27:02]Write i2c OK [12:27:02]MH_I2C_Read... [12:27:02]Read from MH i2c: 01 [12:27:02]MH_I2C_Read... [12:27:02]Read from MH i2c: 01 07 00 [12:27:02]MH_I2C_Read... [12:27:02]Read from MH i2c: 01 07 00 8E 17 00 00 00 00 00 FF 0F BA [12:27:02]RasterBufferAndPrint [12:27:02]line Счет N : (1)1962946 [12:27:02]line ИНН: 02508201610067 [12:27:02]line Контрольно-Кассовый Чек [12:27:02]line ПРОДАЖА [12:27:02]line ТРК (МРК, ГНК) : 43 [12:27:02]line Товар: 2710124130 [12:27:02]line Аи-92-К-5 [12:27:02]line 2.400 * 66.90 [12:27:02]line = 160.56 [12:27:02]line НДС 12% НСП 1% [12:27:02]line > о реализуемом товаре [12:27:02]line ОКРУГЛЕНИЕ: -0.56 [12:27:02]line ИТОГО: 160.00 [12:27:02]line Внесено: 160.00 [12:27:02]line СДАЧА: 0.00 [12:27:02]line НСП 1% : 1.42 [12:27:02]line НДС 12% : 17.05 [12:27:02]line Наличными: 160.00 [12:27:02]line Безнал.: 0.00 [12:27:02]line Место: АЗС № 133 "Партнер Нефть" [12:27:02]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:27:02]line СНО: Общий режим [12:27:02]line Чек 274 20.10.2024 12:27 [12:27:02]line Смена: 533 ФФД: 1.0 [12:27:02]line ЗНМ: 0300000091 [12:27:02]line РНМ: 0000000000091685 [12:27:02]line Версия ККМ: 001 [12:27:02]line ФМ: 0000000000871839 [12:27:02]line ФД: 227426 [12:27:02]line ФПД: 188631453793438 [12:27:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T122701&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227426&fm=188631453793438&tin=02508201610067®Number=0000000000091685&sum=16000 [12:27:02]written 0, free lines is 4095 [12:27:02]OFD Sender: Processing packet 227426 [packets to send 38, broken 37] [12:27:02]ProducePacketName [12:27:02]name=ofd_packets/00227426 [12:27:02]OFD Sender: To server: pG, [12:27:02]CommunicateWithHost lk.salyk.kg:30040 [12:27:02]ConnectInit lk.salyk.kg [12:27:02]Connected sock=10 [12:27: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 33 39 0F 01 00 00 27 D1 07 01 6D 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 09 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B8 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 15 F7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 62 78 03 00 35 04 06 00 AB 8F 2E CB FC 9E 11 37 A5 A1 82 C5 AA CE [12:27: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 33 39 4F 00 00 00 82 00 47 00 A3 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 62 78 03 00 F4 03 04 00 14 A2 14 67 B6 04 01 00 00 E5 97 1A 28 78 C9 06 97 [12:27:02]CommunicateWithHost err = 0 [12:27:02]CheckOFDResponse [12:27:02]1017 (14) - 77093643461234 [12:27:02]1041 (16) - 0000000000871839 [12:27:02]1040 (4) - 227426 [12:27:02]1012 (4) - 20.10.2024 06:24 [12:27:02]1206 (1) - 0 [12:27:02]OFD Sender: Remove packet 227426 [12:27:02]ProducePacketName [12:27:02]name=ofd_packets/00227426 [12:27:02]NVStorageDeleteData [12:27:02]Write to MH i2c: 01 00 00 B8 17 CF [12:27:02]Write i2c OK [12:27:02]MH_I2C_Read... [12:27:02]Read from MH i2c: 01 [12:27:02]MH_I2C_Read... [12:27:02]Read from MH i2c: 01 07 00 [12:27:02]MH_I2C_Read... [12:27:02]Read from MH i2c: 01 07 00 B8 17 00 00 00 00 00 0C 0D EF [12:27:02]RasterBufferAndPrint [12:27:02]line [12:27:02]line [12:27:02]line [12:27:02]line [12:27:02]line [12:27:02]written 0, free lines is 3346 [12:27:02]process_action close_receipt done [12:27:02]requested_data is exist [12:27:02]produce_requested_data [12:27:02]requested_item fm.sn is exist - process it [12:27:02]wFMCommunicate request_size=4 [12:27:02]MH_SAM_APDU [12:27:02]CAPDU: 80 11 00 00 [12:27:02]Write to MH i2c: E2 08 00 BF 17 80 11 00 00 00 00 00 00 50 [12:27:02]Write i2c OK [12:27:02]MH_I2C_Read... [12:27:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:02]Read from MH i2c: E2 [12:27:02]MH_I2C_Read... [12:27:02]Read from MH i2c: E2 17 00 [12:27:02]MH_I2C_Read... [12:27:02]Read from MH i2c: E2 17 00 BF 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A7 [12:27:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:27:02]wFMCommunicate OK [12:27:02]requested_item fd.num is exist - process it [12:27:02]SAM_PROTO_GetFieldsCounters [12:27:02]wFMCommunicate request_size=4 [12:27:02]MH_SAM_APDU [12:27:02]CAPDU: 80 13 00 00 [12:27:02]Write to MH i2c: E2 08 00 C0 17 80 13 00 00 00 00 00 00 53 [12:27:02]Write i2c OK [12:27:02]MH_I2C_Read... [12:27:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:27:03]Read from MH i2c: E2 [12:27:03]MH_I2C_Read... [12:27:03]Read from MH i2c: E2 62 00 [12:27:03]MH_I2C_Read... [12:27:03]Read from MH i2c: E2 62 00 C0 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 62 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 A9 [12:27: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 62 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:27:03]wFMCommunicate OK [12:27:03]SAM_PROTO_GetFieldsCounters done [12:27:03]requested_item shift.num is exist - process it [12:27:03]requested_item shift.opened is exist - process it [12:27:03]req_shift_opened [12:27:03]FM_GetShiftState [12:27:03]SAM_PROTO_GetShiftState [12:27:03]wFMCommunicate request_size=4 [12:27:03]MH_SAM_APDU [12:27:03]CAPDU: 80 13 01 00 [12:27:03]Write to MH i2c: E2 08 00 C1 17 80 13 01 00 00 00 00 00 55 [12:27:03]Write i2c OK [12:27:03]MH_I2C_Read... [12:27:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:03]Read from MH i2c: E2 [12:27:03]MH_I2C_Read... [12:27:03]Read from MH i2c: E2 0E 00 [12:27:03]MH_I2C_Read... [12:27:03]Read from MH i2c: E2 0E 00 C1 17 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 6F [12:27:03]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:27:03]wFMCommunicate OK [12:27:03]SAM_PROTO_GetShiftState done [12:27:03]FM_GetShiftState done [12:27:03]req_shift_opened done [12:27:03]requested_item shift.open_date is exist - process it [12:27:03]req_shift_open_date [12:27:03]req_shift_open_date done [12:27:03]produce_requested_data done [12:27:03]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227426,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [12:27:03]process_action_free close_receipt [12:27:03]json_value_free [12:27:03]json_value_free done [12:27:03]process_json_proto returns [12:27:03]Send response to host [12:27:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227426,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [12:27:03]free response buf [12:27:03]execute_script done [12:27:03]execute_script returns [12:27:03]free content buf [12:27:03]Sock 9.Close socket [12:27:03]Sock 9.Thread stoped [12:27:03]OFD Sender: No OFD packet to send [12:27:08]OFD Sender: No OFD packet to send [12:27:13]OFD Sender: No OFD packet to send [12:27:18]OFD Sender: No OFD packet to send [12:27:23]OFD Sender: No OFD packet to send [12:27:28]OFD Sender: No OFD packet to send [12:27:33]OFD Sender: No OFD packet to send [12:27:38]OFD Sender: No OFD packet to send [12:27:43]OFD Sender: No OFD packet to send [12:27:48]OFD Sender: No OFD packet to send [12:27:53]OFD Sender: No OFD packet to send [12:27:58]OFD Sender: No OFD packet to send [12:28:03]OFD Sender: No OFD packet to send [12:28:08]OFD Sender: No OFD packet to send [12:28:13]OFD Sender: No OFD packet to send [12:28:18]OFD Sender: No OFD packet to send [12:28:23]OFD Sender: No OFD packet to send [12:28:28]OFD Sender: No OFD packet to send [12:28:33]OFD Sender: No OFD packet to send [12:28:38]OFD Sender: No OFD packet to send [12:28:43]OFD Sender: No OFD packet to send [12:28:48]OFD Sender: No OFD packet to send [12:28:53]OFD Sender: No OFD packet to send [12:28:58]OFD Sender: No OFD packet to send [12:28:59]accept exits with 8 [12:28:59]New connection [12:28:59]New thread 3066686820 created [12:28:59]Thread 3066543460 joined [12:28:59]Waiting for new connection... [12:28:59] Sock 8.Parse request [12:28:59]Sock 8.Check first char [12:28:59]Sock 8.First char is OK [12:28:59]request: POST /json_proto HTTP/1.0 [12:28:59]Method: POST [12:28:59]URL: /json_proto [12:28:59]Method is POST - this is cgi request [12:28:59]url: /json_proto [12:28:59]query_string will be loaded in cgi processing [12:28:59]execute_cgi json_proto POST (null) [12:28:59]execute_cgi path=json_proto method=POST [12:28:59]POST find Content-Length [12:28:59]Host: 172.17.44.195:8080 [12:28:59]Content-Length: 680 [12:28:59]Content-Type: application/json [12:28:59] [12:28:59]POST finish read [12:28:59]Found Content-Length = 680 [12:28:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962947", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:28:59]execute_script... [12:28: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)1962947", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:28:59]POST & json_proto [12:28:59]process_json_proto [12:28:59]json parsed OK: [12:28:59]protocol is kg_v1.0 [12:28:59]action value=close_receipt [12:28:59]process_action close_receipt [12:28:59]cmd_close_receipt [12:28:59]MH_GetDate [12:28:59]Write to MH i2c: F0 00 00 C2 17 C8 [12:28:59]Write i2c OK [12:28:59]MH_I2C_Read... [12:28:59]Read from MH i2c: F0 [12:28:59]MH_I2C_Read... [12:28:59]Read from MH i2c: F0 09 00 [12:28:59]MH_I2C_Read... [12:28:59]Read from MH i2c: F0 09 00 C2 17 00 8C F7 14 67 82 C9 CF 66 4F [12:28:59]GetLastDocTimeStamp 1729427221 [12:28:59]current date 1729427340 [12:28:59]FM_GetShiftState [12:28:59]SAM_PROTO_GetShiftState [12:28:59]wFMCommunicate request_size=4 [12:28:59]MH_SAM_APDU [12:28:59]CAPDU: 80 13 01 00 [12:28:59]Write to MH i2c: E2 08 00 C3 17 80 13 01 00 00 00 00 00 57 [12:28:59]Write i2c OK [12:28:59]MH_I2C_Read... [12:29:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:00]Read from MH i2c: E2 [12:29:00]MH_I2C_Read... [12:29:00]Read from MH i2c: E2 0E 00 [12:29:00]MH_I2C_Read... [12:29:00]Read from MH i2c: E2 0E 00 C3 17 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 71 [12:29:00]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:29:00]wFMCommunicate OK [12:29:00]SAM_PROTO_GetShiftState done [12:29:00]FM_GetShiftState done [12:29:00]opened in 1729383750 [12:29:00]opened+sec_in_day 1729470150 [12:29:00]quantity*price = 100050 [12:29:00]sum+1 = 100052 [12:29:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 275 20.10.2024 12:29 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227427 ФПД: 178652838920877 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T122900&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227427&fm=178652838920877&tin=02508201610067®Number=0000000000091685&sum=100000 [12:29:01]StoreToDocumentArchive [12:29:01]shift 533 fd 227427 [12:29:01]save to /storage/0533/doc_00227427 [12:29:01]save last doc name /storage/0533/doc_00227427 to /storage/kkm_last_doc_name [12:29:01]save OK [12:29:01]Clear old archive folders... [12:29:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:29:01]tlvbuf is 01842B70 [12:29:01]SAM_PROTO_ClearQueue [12:29:01]wFMCommunicate request_size=4 [12:29:01]MH_SAM_APDU [12:29:01]CAPDU: 80 09 00 00 [12:29:01]Write to MH i2c: E2 08 00 D0 17 80 09 00 00 00 00 00 00 59 [12:29:01]Write i2c OK [12:29:01]MH_I2C_Read... [12:29:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:29:01]Read from MH i2c: E2 [12:29:01]MH_I2C_Read... [12:29:01]Read from MH i2c: E2 03 00 [12:29:01]MH_I2C_Read... [12:29:01]Read from MH i2c: E2 03 00 D0 17 00 90 00 5B [12:29:01]RAPDU: 90 00 [12:29:01]wFMCommunicate OK [12:29:01]SAM_PROTO_ClearQueue done [12:29:01]KKMCreateOFDPacket [12:29:01]OFDProtocolAddRootSTLVToBuf [12:29:01]FM_MakeSignedData [12:29:01]FM_MakeSignedData [12:29:01]SAM_PROTO_SignData [12:29:01]wFMCommunicate request_size=4 [12:29:01]MH_SAM_APDU [12:29:01]CAPDU: 80 0D 01 02 [12:29:01]Write to MH i2c: E2 08 00 D1 17 80 0D 01 02 00 00 00 00 61 [12:29:01]Write i2c OK [12:29:01]MH_I2C_Read... [12:29:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:29:01]Read from MH i2c: E2 [12:29:01]MH_I2C_Read... [12:29:01]Read from MH i2c: E2 03 00 [12:29:01]MH_I2C_Read... [12:29:01]Read from MH i2c: E2 03 00 D1 17 00 90 00 5C [12:29:01]RAPDU: 90 00 [12:29:01]wFMCommunicate OK [12:29:01]wFMCommunicate request_size=255 [12:29:01]MH_SAM_APDU [12:29:01]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 8C F7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 63 78 03 00 35 04 06 00 A2 7B DB 00 [12:29:01]Write to MH i2c: E2 02 01 D2 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 8C F7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 63 78 03 00 35 04 06 00 A2 7B DB 00 00 00 ED [12:29:01]Write i2c OK [12:29:01]MH_I2C_Read... [12:29:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:01]Read from MH i2c: E2 [12:29:01]MH_I2C_Read... [12:29:01]Read from MH i2c: E2 03 00 [12:29:01]MH_I2C_Read... [12:29:01]Read from MH i2c: E2 03 00 D2 17 00 90 00 5D [12:29:01]RAPDU: 90 00 [12:29:01]wFMCommunicate OK [12:29:01]wFMCommunicate request_size=7 [12:29:01]MH_SAM_APDU [12:29:01]CAPDU: 80 0D 02 02 02 82 AD [12:29:01]Write to MH i2c: E2 0A 00 D3 17 80 0D 02 02 02 00 82 AD 00 00 97 [12:29:01]Write i2c OK [12:29:01]MH_I2C_Read... [12:29:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:01]Read from MH i2c: E2 [12:29:01]MH_I2C_Read... [12:29:01]Read from MH i2c: E2 03 00 [12:29:01]MH_I2C_Read... [12:29:01]Read from MH i2c: E2 03 00 D3 17 00 90 00 5E [12:29:01]RAPDU: 90 00 [12:29:01]wFMCommunicate OK [12:29:01]wFMCommunicate request_size=4 [12:29:01]MH_SAM_APDU [12:29:01]CAPDU: 80 0D 03 02 [12:29:01]Write to MH i2c: E2 08 00 D4 17 80 0D 03 02 00 00 00 00 66 [12:29:01]Write i2c OK [12:29:01]MH_I2C_Read... [12:29:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:29:01]Read from MH i2c: E2 [12:29:01]MH_I2C_Read... [12:29:01]Read from MH i2c: E2 0B 00 [12:29:01]MH_I2C_Read... [12:29:01]Read from MH i2c: E2 0B 00 D4 17 00 E2 DE 95 55 54 2B 3F C4 90 00 93 [12:29:01]RAPDU: E2 DE 95 55 54 2B 3F C4 90 00 [12:29:01]wFMCommunicate OK [12:29:01]SAM_PROTO_SignData done [12:29:01]FM_MakeSignedData done [12:29:01]CreateOFDProtocolMessage [12:29:01]wFMCommunicate request_size=4 [12:29:01]MH_SAM_APDU [12:29:01]CAPDU: 80 11 00 00 [12:29:01]Write to MH i2c: E2 08 00 D5 17 80 11 00 00 00 00 00 00 66 [12:29:01]Write i2c OK [12:29:01]MH_I2C_Read... [12:29:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:01]Read from MH i2c: E2 [12:29:01]MH_I2C_Read... [12:29:01]Read from MH i2c: E2 17 00 [12:29:01]MH_I2C_Read... [12:29:01]Read from MH i2c: E2 17 00 D5 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 BD [12:29:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:29:01]wFMCommunicate OK [12:29:01]CreateOFDProtocolMessage done [12:29:01]OFDSenderStorePacket 227427 [12:29:01]StoreOFDPacket docnum=227427 [12:29:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 3A 2E 04 01 AC 39 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 8C F7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 63 78 03 00 35 04 06 00 A2 7B DB 00 82 AD E2 DE 95 55 54 2B 3F C4 [12:29:01]CheckFolder [12:29:01]dirname=/storage/ofd_packets [12:29:01]CheckFolder done [12:29:01]ProducePacketName [12:29:01]name=ofd_packets/00227427 [12:29:01]NVStorageSaveData ofd_packets/00227427 [12:29:01]File name is /storage/ofd_packets/00227427 [12:29:01]Write 298 bytes [12:29:01]NVStorageSaveData done [12:29:01]OFDSenderStorePacket done [12:29:01]KKMCreateOFDPacket done [12:29:01]NVStorageSaveData kkm_last_timestamp [12:29:01]File name is /storage/kkm_last_timestamp [12:29:01]Write 4 bytes [12:29:01]NVStorageSaveData done [12:29:01]ExternCall_PrintAddStr [12:29:01]wPrintStart [12:29:01]Write to MH i2c: 01 00 00 D6 17 ED [12:29:01]Write i2c OK [12:29:01]MH_I2C_Read... [12:29:01]Read from MH i2c: 01 [12:29:01]MH_I2C_Read... [12:29:01]Read from MH i2c: 01 07 00 [12:29:01]MH_I2C_Read... [12:29:01]Read from MH i2c: 01 07 00 D6 17 00 00 00 00 00 FF 0F 02 [12:29:01]RasterBufferAndPrint [12:29:01]line Счет N : (1)1962947 [12:29:01]line ИНН: 02508201610067 [12:29:01]line Контрольно-Кассовый Чек [12:29:01]line ПРОДАЖА [12:29:01]line ТРК (МРК, ГНК) : 21 [12:29:01]line Товар: 2710194210 [12:29:01]line ДТ-К-5 [12:29:01]line 13.130 * 76.20 [12:29:01]line = 1000.51 [12:29:01]line НДС 12% НСП 1% [12:29:01]line > о реализуемом товаре [12:29:01]line ОКРУГЛЕНИЕ: -0.51 [12:29:01]line ИТОГО: 1000.00 [12:29:01]line Внесено: 1000.00 [12:29:01]line СДАЧА: 0.00 [12:29:01]line НСП 1% : 8.85 [12:29:01]line НДС 12% : 106.25 [12:29:01]line Наличными: 1000.00 [12:29:01]line Безнал.: 0.00 [12:29:01]line Место: АЗС № 133 "Партнер Нефть" [12:29:01]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:29:01]line СНО: Общий режим [12:29:01]line Чек 275 20.10.2024 12:29 [12:29:01]line Смена: 533 ФФД: 1.0 [12:29:01]line ЗНМ: 0300000091 [12:29:01]line РНМ: 0000000000091685 [12:29:01]line Версия ККМ: 001 [12:29:01]line ФМ: 0000000000871839 [12:29:01]line ФД: 227427 [12:29:01]line ФПД: 178652838920877 [12:29:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T122900&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227427&fm=178652838920877&tin=02508201610067®Number=0000000000091685&sum=100000 [12:29:01]written 0, free lines is 4095 [12:29:01]OFD Sender: Processing packet 227427 [packets to send 38, broken 37] [12:29:01]ProducePacketName [12:29:01]name=ofd_packets/00227427 [12:29:02]OFD Sender: To server: pG, [12:29:02]CommunicateWithHost lk.salyk.kg:30040 [12:29:02]ConnectInit lk.salyk.kg [12:29:02]Connected sock=10 [12:29:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 3A 2E 04 01 AC 39 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 8C F7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 63 78 03 00 35 04 06 00 A2 7B DB 00 82 AD E2 DE 95 55 54 2B 3F C4 [12:29:02]Write to MH i2c: 01 00 00 00 18 18 [12:29:02]Write i2c OK [12:29:02]MH_I2C_Read... [12:29:02]Read from MH i2c: 01 [12:29:02]MH_I2C_Read... [12:29:02]Read from MH i2c: 01 07 00 [12:29:02]MH_I2C_Read... [12:29:02]Read from MH i2c: 01 07 00 00 18 00 00 00 00 00 0A 0D 36 [12:29:02]RasterBufferAndPrint [12:29:02]line [12:29:02]line [12:29:02]line [12:29:02]line [12:29:02]line [12:29:02]written 0, free lines is 3344 [12:29:02]process_action close_receipt done [12:29:02]requested_data is exist [12:29:02]produce_requested_data [12:29:02]requested_item fm.sn is exist - process it [12:29:02]wFMCommunicate request_size=4 [12:29:02]MH_SAM_APDU [12:29:02]CAPDU: 80 11 00 00 [12:29:02]Write to MH i2c: E2 08 00 07 18 80 11 00 00 00 00 00 00 99 [12:29:02]Write i2c OK [12:29:02]MH_I2C_Read... [12:29:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:02]Read from MH i2c: E2 [12:29:02]MH_I2C_Read... [12:29:02]Read from MH i2c: E2 17 00 [12:29:02]MH_I2C_Read... [12:29:02]Read from MH i2c: E2 17 00 07 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F0 [12:29:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:29:02]wFMCommunicate OK [12:29:02]requested_item fd.num is exist - process it [12:29:02]SAM_PROTO_GetFieldsCounters [12:29:02]wFMCommunicate request_size=4 [12:29:02]MH_SAM_APDU [12:29:02]CAPDU: 80 13 00 00 [12:29:02]Write to MH i2c: E2 08 00 08 18 80 13 00 00 00 00 00 00 9C [12:29:02]Write i2c OK [12:29:02]MH_I2C_Read... [12:29:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 7B EB 47 00 C6 A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 63 78 03 00 F4 03 04 00 8B A2 14 67 B6 04 01 00 00 C1 36 0A ED 89 CC 37 36 [12:29:02]CommunicateWithHost err = 0 [12:29:02]CheckOFDResponse [12:29:02]1017 (14) - 77093643461234 [12:29:02]1041 (16) - 0000000000871839 [12:29:02]1040 (4) - 227427 [12:29:02]1012 (4) - 20.10.2024 06:26 [12:29:02]1206 (1) - 0 [12:29:02]OFD Sender: Remove packet 227427 [12:29:02]ProducePacketName [12:29:02]name=ofd_packets/00227427 [12:29:02]NVStorageDeleteData [12:29:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:29:02]Read from MH i2c: E2 [12:29:02]MH_I2C_Read... [12:29:02]Read from MH i2c: E2 62 00 [12:29:02]MH_I2C_Read... [12:29:02]Read from MH i2c: E2 62 00 08 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 63 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 F6 [12:29: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 63 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:29:02]wFMCommunicate OK [12:29:02]SAM_PROTO_GetFieldsCounters done [12:29:02]requested_item shift.num is exist - process it [12:29:02]requested_item shift.opened is exist - process it [12:29:02]req_shift_opened [12:29:02]FM_GetShiftState [12:29:02]SAM_PROTO_GetShiftState [12:29:02]wFMCommunicate request_size=4 [12:29:02]MH_SAM_APDU [12:29:02]CAPDU: 80 13 01 00 [12:29:02]Write to MH i2c: E2 08 00 09 18 80 13 01 00 00 00 00 00 9E [12:29:02]Write i2c OK [12:29:02]MH_I2C_Read... [12:29:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:02]Read from MH i2c: E2 [12:29:02]MH_I2C_Read... [12:29:02]Read from MH i2c: E2 0E 00 [12:29:02]MH_I2C_Read... [12:29:02]Read from MH i2c: E2 0E 00 09 18 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 B8 [12:29:02]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:29:02]wFMCommunicate OK [12:29:02]SAM_PROTO_GetShiftState done [12:29:02]FM_GetShiftState done [12:29:02]req_shift_opened done [12:29:02]requested_item shift.open_date is exist - process it [12:29:02]req_shift_open_date [12:29:02]req_shift_open_date done [12:29:02]produce_requested_data done [12:29:02]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227427,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [12:29:02]process_action_free close_receipt [12:29:02]json_value_free [12:29:02]json_value_free done [12:29:02]process_json_proto returns [12:29:02]Send response to host [12:29:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227427,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [12:29:02]free response buf [12:29:02]execute_script done [12:29:02]execute_script returns [12:29:02]free content buf [12:29:02]Sock 8.Close socket [12:29:02]Sock 8.Thread stoped [12:29:02]OFD Sender: No OFD packet to send [12:29:07]OFD Sender: No OFD packet to send [12:29:12]OFD Sender: No OFD packet to send [12:29:17]OFD Sender: No OFD packet to send [12:29:22]OFD Sender: No OFD packet to send [12:29:27]OFD Sender: No OFD packet to send [12:29:32]OFD Sender: No OFD packet to send [12:29:37]OFD Sender: No OFD packet to send [12:29:42]OFD Sender: No OFD packet to send [12:29:47]OFD Sender: No OFD packet to send [12:29:52]OFD Sender: No OFD packet to send [12:29:57]OFD Sender: No OFD packet to send [12:30:02]OFD Sender: No OFD packet to send [12:30:07]OFD Sender: No OFD packet to send [12:30:11]accept exits with 9 [12:30:11]New connection [12:30:11]New thread 3066543460 created [12:30:11]Thread 3066686820 joined [12:30:11]Waiting for new connection... [12:30:11] Sock 9.Parse request [12:30:11]Sock 9.Check first char [12:30:11]Sock 9.First char is OK [12:30:11]request: POST /json_proto HTTP/1.0 [12:30:11]Method: POST [12:30:11]URL: /json_proto [12:30:11]Method is POST - this is cgi request [12:30:11]url: /json_proto [12:30:11]query_string will be loaded in cgi processing [12:30:11]execute_cgi json_proto POST (null) [12:30:11]execute_cgi path=json_proto method=POST [12:30:11]POST find Content-Length [12:30:11]Host: 172.17.44.195:8080 [12:30:11]Content-Length: 680 [12:30:11]Content-Type: application/json [12:30:11] [12:30:11]POST finish read [12:30:11]Found Content-Length = 680 [12:30:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962948", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 17.070, "sum" : 1300.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:30:11]execute_script... [12:30: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)1962948", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 17.070, "sum" : 1300.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:30:11]POST & json_proto [12:30:11]process_json_proto [12:30:11]json parsed OK: [12:30:11]protocol is kg_v1.0 [12:30:11]action value=close_receipt [12:30:11]process_action close_receipt [12:30:11]cmd_close_receipt [12:30:11]MH_GetDate [12:30:11]Write to MH i2c: F0 00 00 0A 18 11 [12:30:11]Write i2c OK [12:30:11]MH_I2C_Read... [12:30:11]Read from MH i2c: F0 [12:30:11]MH_I2C_Read... [12:30:11]Read from MH i2c: F0 09 00 [12:30:11]MH_I2C_Read... [12:30:11]Read from MH i2c: F0 09 00 0A 18 00 D4 F7 14 67 82 C9 CF 66 E0 [12:30:11]GetLastDocTimeStamp 1729427340 [12:30:11]current date 1729427412 [12:30:11]FM_GetShiftState [12:30:11]SAM_PROTO_GetShiftState [12:30:11]wFMCommunicate request_size=4 [12:30:11]MH_SAM_APDU [12:30:11]CAPDU: 80 13 01 00 [12:30:11]Write to MH i2c: E2 08 00 0B 18 80 13 01 00 00 00 00 00 A0 [12:30:11]Write i2c OK [12:30:11]MH_I2C_Read... [12:30:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:12]Read from MH i2c: E2 [12:30:12]MH_I2C_Read... [12:30:12]Read from MH i2c: E2 0E 00 [12:30:12]MH_I2C_Read... [12:30:12]Read from MH i2c: E2 0E 00 0B 18 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 BA [12:30:12]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:30:12]wFMCommunicate OK [12:30:12]SAM_PROTO_GetShiftState done [12:30:12]FM_GetShiftState done [12:30:12]opened in 1729383750 [12:30:12]opened+sec_in_day 1729470150 [12:30:12]quantity*price = 130073 [12:30:12]sum+1 = 130074 [12:30:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.73 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.51 НДС 12% : 138.13 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 276 20.10.2024 12:30 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227428 ФПД: 66615816343238 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T123013&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227428&fm=66615816343238&tin=02508201610067®Number=0000000000091685&sum=130000 [12:30:13]StoreToDocumentArchive [12:30:13]shift 533 fd 227428 [12:30:13]save to /storage/0533/doc_00227428 [12:30:13]save last doc name /storage/0533/doc_00227428 to /storage/kkm_last_doc_name [12:30:13]save OK [12:30:13]Clear old archive folders... [12:30:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:30:13]tlvbuf is B6E80250 [12:30:13]SAM_PROTO_ClearQueue [12:30:13]wFMCommunicate request_size=4 [12:30:13]MH_SAM_APDU [12:30:13]CAPDU: 80 09 00 00 [12:30:13]Write to MH i2c: E2 08 00 18 18 80 09 00 00 00 00 00 00 A2 [12:30:13]Write i2c OK [12:30:13]MH_I2C_Read... [12:30:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:30:13]Read from MH i2c: E2 [12:30:13]MH_I2C_Read... [12:30:13]Read from MH i2c: E2 03 00 [12:30:13]MH_I2C_Read... [12:30:13]Read from MH i2c: E2 03 00 18 18 00 90 00 A4 [12:30:13]RAPDU: 90 00 [12:30:13]wFMCommunicate OK [12:30:13]SAM_PROTO_ClearQueue done [12:30:13]KKMCreateOFDPacket [12:30:13]OFDProtocolAddRootSTLVToBuf [12:30:13]FM_MakeSignedData [12:30:13]FM_MakeSignedData [12:30:13]SAM_PROTO_SignData [12:30:13]wFMCommunicate request_size=4 [12:30:13]MH_SAM_APDU [12:30:13]CAPDU: 80 0D 01 02 [12:30:13]Write to MH i2c: E2 08 00 19 18 80 0D 01 02 00 00 00 00 AA [12:30:13]Write i2c OK [12:30:13]MH_I2C_Read... [12:30:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:30:13]Read from MH i2c: E2 [12:30:13]MH_I2C_Read... [12:30:13]Read from MH i2c: E2 03 00 [12:30:13]MH_I2C_Read... [12:30:13]Read from MH i2c: E2 03 00 19 18 00 90 00 A5 [12:30:13]RAPDU: 90 00 [12:30:13]wFMCommunicate OK [12:30:13]wFMCommunicate request_size=255 [12:30:13]MH_SAM_APDU [12:30:13]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 42 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 D5 F7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 64 78 03 00 35 04 06 00 3C 96 34 11 [12:30:13]Write to MH i2c: E2 02 01 1A 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 AE 42 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 D5 F7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 64 78 03 00 35 04 06 00 3C 96 34 11 00 00 A4 [12:30:13]Write i2c OK [12:30:13]MH_I2C_Read... [12:30:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:13]Read from MH i2c: E2 [12:30:13]MH_I2C_Read... [12:30:13]Read from MH i2c: E2 03 00 [12:30:13]MH_I2C_Read... [12:30:13]Read from MH i2c: E2 03 00 1A 18 00 90 00 A6 [12:30:13]RAPDU: 90 00 [12:30:13]wFMCommunicate OK [12:30:13]wFMCommunicate request_size=7 [12:30:13]MH_SAM_APDU [12:30:13]CAPDU: 80 0D 02 02 02 CE C6 [12:30:13]Write to MH i2c: E2 0A 00 1B 18 80 0D 02 02 02 00 CE C6 00 00 45 [12:30:13]Write i2c OK [12:30:13]MH_I2C_Read... [12:30:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:13]Read from MH i2c: E2 [12:30:13]MH_I2C_Read... [12:30:13]Read from MH i2c: E2 03 00 [12:30:13]MH_I2C_Read... [12:30:13]Read from MH i2c: E2 03 00 1B 18 00 90 00 A7 [12:30:13]RAPDU: 90 00 [12:30:13]wFMCommunicate OK [12:30:13]wFMCommunicate request_size=4 [12:30:13]MH_SAM_APDU [12:30:13]CAPDU: 80 0D 03 02 [12:30:13]Write to MH i2c: E2 08 00 1C 18 80 0D 03 02 00 00 00 00 AF [12:30:13]Write i2c OK [12:30:13]MH_I2C_Read... [12:30:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:30:13]Read from MH i2c: E2 [12:30:13]MH_I2C_Read... [12:30:13]Read from MH i2c: E2 0B 00 [12:30:13]MH_I2C_Read... [12:30:13]Read from MH i2c: E2 0B 00 1C 18 00 7C 9D F2 C2 0F A6 2F 7D 90 00 DE [12:30:13]RAPDU: 7C 9D F2 C2 0F A6 2F 7D 90 00 [12:30:13]wFMCommunicate OK [12:30:13]SAM_PROTO_SignData done [12:30:13]FM_MakeSignedData done [12:30:13]CreateOFDProtocolMessage [12:30:13]wFMCommunicate request_size=4 [12:30:13]MH_SAM_APDU [12:30:13]CAPDU: 80 11 00 00 [12:30:13]Write to MH i2c: E2 08 00 1D 18 80 11 00 00 00 00 00 00 AF [12:30:13]Write i2c OK [12:30:13]MH_I2C_Read... [12:30:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:13]Read from MH i2c: E2 [12:30:13]MH_I2C_Read... [12:30:13]Read from MH i2c: E2 17 00 [12:30:13]MH_I2C_Read... [12:30:13]Read from MH i2c: E2 17 00 1D 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 06 [12:30:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:30:13]wFMCommunicate OK [12:30:13]CreateOFDProtocolMessage done [12:30:13]OFDSenderStorePacket 227428 [12:30:13]StoreOFDPacket docnum=227428 [12:30:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 F1 EC 04 01 16 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 AE 42 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 D5 F7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 64 78 03 00 35 04 06 00 3C 96 34 11 CE C6 7C 9D F2 C2 0F A6 2F 7D [12:30:13]CheckFolder [12:30:13]dirname=/storage/ofd_packets [12:30:13]CheckFolder done [12:30:13]ProducePacketName [12:30:13]name=ofd_packets/00227428 [12:30:13]NVStorageSaveData ofd_packets/00227428 [12:30:13]File name is /storage/ofd_packets/00227428 [12:30:13]Write 298 bytes [12:30:13]NVStorageSaveData done [12:30:13]OFDSenderStorePacket done [12:30:13]KKMCreateOFDPacket done [12:30:13]NVStorageSaveData kkm_last_timestamp [12:30:13]File name is /storage/kkm_last_timestamp [12:30:13]Write 4 bytes [12:30:13]NVStorageSaveData done [12:30:13]ExternCall_PrintAddStr [12:30:13]wPrintStart [12:30:13]Write to MH i2c: 01 00 00 1E 18 36 [12:30:13]Write i2c OK [12:30:13]MH_I2C_Read... [12:30:13]Read from MH i2c: 01 [12:30:13]MH_I2C_Read... [12:30:13]Read from MH i2c: 01 07 00 [12:30:13]MH_I2C_Read... [12:30:13]Read from MH i2c: 01 07 00 1E 18 00 00 00 00 00 FF 0F 4B [12:30:13]RasterBufferAndPrint [12:30:13]line Счет N : (1)1962948 [12:30:13]line ИНН: 02508201610067 [12:30:13]line Контрольно-Кассовый Чек [12:30:13]line ПРОДАЖА [12:30:13]line ТРК (МРК, ГНК) : 61 [12:30:13]line Товар: 2710194210 [12:30:13]line ДТ-К-5 [12:30:13]line 17.070 * 76.20 [12:30:13]line = 1300.73 [12:30:13]line НДС 12% НСП 1% [12:30:13]line > о реализуемом товаре [12:30:13]line ОКРУГЛЕНИЕ: -0.73 [12:30:13]line ИТОГО: 1300.00 [12:30:13]line Внесено: 1300.00 [12:30:13]line СДАЧА: 0.00 [12:30:13]line НСП 1% : 11.51 [12:30:13]line НДС 12% : 138.13 [12:30:13]line Наличными: 1300.00 [12:30:13]line Безнал.: 0.00 [12:30:13]line Место: АЗС № 133 "Партнер Нефть" [12:30:13]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:30:13]line СНО: Общий режим [12:30:13]line Чек 276 20.10.2024 12:30 [12:30:13]line Смена: 533 ФФД: 1.0 [12:30:13]line ЗНМ: 0300000091 [12:30:13]line РНМ: 0000000000091685 [12:30:13]line Версия ККМ: 001 [12:30:13]line ФМ: 0000000000871839 [12:30:13]line ФД: 227428 [12:30:13]line ФПД: 66615816343238 [12:30:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T123013&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227428&fm=66615816343238&tin=02508201610067®Number=0000000000091685&sum=130000 [12:30:13]written 0, free lines is 4095 [12:30:13]OFD Sender: Processing packet 227428 [packets to send 38, broken 37] [12:30:13]ProducePacketName [12:30:13]name=ofd_packets/00227428 [12:30:13]OFD Sender: To server: pG, [12:30:13]CommunicateWithHost lk.salyk.kg:30040 [12:30:13]ConnectInit lk.salyk.kg [12:30:13]Connected sock=10 [12:30: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 33 39 0C 01 00 00 F1 EC 04 01 16 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 AE 42 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 D5 F7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 64 78 03 00 35 04 06 00 3C 96 34 11 CE C6 7C 9D F2 C2 0F A6 2F 7D [12:30: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 33 39 4F 00 00 00 87 D7 47 00 05 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 33 39 10 04 04 00 64 78 03 00 F4 03 04 00 D3 A2 14 67 B6 04 01 00 00 E1 A3 B4 74 40 DC A0 DB [12:30:14]CommunicateWithHost err = 0 [12:30:14]CheckOFDResponse [12:30:14]1017 (14) - 77093643461234 [12:30:14]1041 (16) - 0000000000871839 [12:30:14]1040 (4) - 227428 [12:30:14]1012 (4) - 20.10.2024 06:27 [12:30:14]1206 (1) - 0 [12:30:14]OFD Sender: Remove packet 227428 [12:30:14]ProducePacketName [12:30:14]name=ofd_packets/00227428 [12:30:14]NVStorageDeleteData [12:30:14]Write to MH i2c: 01 00 00 48 18 60 [12:30:14]Write i2c OK [12:30:14]MH_I2C_Read... [12:30:14]Read from MH i2c: 01 [12:30:14]MH_I2C_Read... [12:30:14]Read from MH i2c: 01 07 00 [12:30:14]MH_I2C_Read... [12:30:14]Read from MH i2c: 01 07 00 48 18 00 00 00 00 00 11 0D 85 [12:30:14]RasterBufferAndPrint [12:30:14]line [12:30:14]line [12:30:14]line [12:30:14]line [12:30:14]line [12:30:14]written 0, free lines is 3351 [12:30:14]process_action close_receipt done [12:30:14]requested_data is exist [12:30:14]produce_requested_data [12:30:14]requested_item fm.sn is exist - process it [12:30:14]wFMCommunicate request_size=4 [12:30:14]MH_SAM_APDU [12:30:14]CAPDU: 80 11 00 00 [12:30:14]Write to MH i2c: E2 08 00 4F 18 80 11 00 00 00 00 00 00 E1 [12:30:14]Write i2c OK [12:30:14]MH_I2C_Read... [12:30:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:14]Read from MH i2c: E2 [12:30:14]MH_I2C_Read... [12:30:14]Read from MH i2c: E2 17 00 [12:30:14]MH_I2C_Read... [12:30:14]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 33 39 90 00 38 [12:30:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:30:14]wFMCommunicate OK [12:30:14]requested_item fd.num is exist - process it [12:30:14]SAM_PROTO_GetFieldsCounters [12:30:14]wFMCommunicate request_size=4 [12:30:14]MH_SAM_APDU [12:30:14]CAPDU: 80 13 00 00 [12:30:14]Write to MH i2c: E2 08 00 50 18 80 13 00 00 00 00 00 00 E4 [12:30:14]Write i2c OK [12:30:14]MH_I2C_Read... [12:30:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:30:14]Read from MH i2c: E2 [12:30:14]MH_I2C_Read... [12:30:14]Read from MH i2c: E2 62 00 [12:30:14]MH_I2C_Read... [12:30:14]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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 64 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 42 [12:30:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 64 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:30:14]wFMCommunicate OK [12:30:14]SAM_PROTO_GetFieldsCounters done [12:30:14]requested_item shift.num is exist - process it [12:30:14]requested_item shift.opened is exist - process it [12:30:14]req_shift_opened [12:30:14]FM_GetShiftState [12:30:14]SAM_PROTO_GetShiftState [12:30:14]wFMCommunicate request_size=4 [12:30:14]MH_SAM_APDU [12:30:14]CAPDU: 80 13 01 00 [12:30:14]Write to MH i2c: E2 08 00 51 18 80 13 01 00 00 00 00 00 E6 [12:30:14]Write i2c OK [12:30:14]MH_I2C_Read... [12:30:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:14]Read from MH i2c: E2 [12:30:14]MH_I2C_Read... [12:30:14]Read from MH i2c: E2 0E 00 [12:30:14]MH_I2C_Read... [12:30:14]Read from MH i2c: E2 0E 00 51 18 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 00 [12:30:14]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:30:14]wFMCommunicate OK [12:30:14]SAM_PROTO_GetShiftState done [12:30:14]FM_GetShiftState done [12:30:14]req_shift_opened done [12:30:14]requested_item shift.open_date is exist - process it [12:30:14]req_shift_open_date [12:30:14]req_shift_open_date done [12:30:14]produce_requested_data done [12:30:14]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227428,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [12:30:14]process_action_free close_receipt [12:30:14]json_value_free [12:30:14]json_value_free done [12:30:14]process_json_proto returns [12:30:14]Send response to host [12:30:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227428,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [12:30:14]free response buf [12:30:14]execute_script done [12:30:14]execute_script returns [12:30:14]free content buf [12:30:14]Sock 9.Close socket [12:30:14]Sock 9.Thread stoped [12:30:14]OFD Sender: No OFD packet to send [12:30:19]OFD Sender: No OFD packet to send [12:30:24]OFD Sender: No OFD packet to send [12:30:29]OFD Sender: No OFD packet to send [12:30:34]OFD Sender: No OFD packet to send [12:30:39]OFD Sender: No OFD packet to send [12:30:44]OFD Sender: No OFD packet to send [12:30:44]accept exits with 8 [12:30:44]New connection [12:30:44]New thread 3066686820 created [12:30:44]Thread 3066543460 joined [12:30:44]Waiting for new connection... [12:30:44] Sock 8.Parse request [12:30:44]Sock 8.Check first char [12:30:44]Sock 8.First char is OK [12:30:44]request: POST /json_proto HTTP/1.0 [12:30:44]Method: POST [12:30:44]URL: /json_proto [12:30:44]Method is POST - this is cgi request [12:30:44]url: /json_proto [12:30:44]query_string will be loaded in cgi processing [12:30:44]execute_cgi json_proto POST (null) [12:30:44]execute_cgi path=json_proto method=POST [12:30:44]POST find Content-Length [12:30:44]Host: 172.17.44.195:8080 [12:30:44]Content-Length: 678 [12:30:44]Content-Type: application/json [12:30:44] [12:30:44]POST finish read [12:30:44]Found Content-Length = 678 [12:30:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:30:44]execute_script... [12:30: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)1962949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:30:44]POST & json_proto [12:30:44]process_json_proto [12:30:44]json parsed OK: [12:30:44]protocol is kg_v1.0 [12:30:44]action value=close_receipt [12:30:44]process_action close_receipt [12:30:44]cmd_close_receipt [12:30:44]MH_GetDate [12:30:44]Write to MH i2c: F0 00 00 52 18 59 [12:30:44]Write i2c OK [12:30:44]MH_I2C_Read... [12:30:44]Read from MH i2c: F0 [12:30:44]MH_I2C_Read... [12:30:44]Read from MH i2c: F0 09 00 [12:30:44]MH_I2C_Read... [12:30:44]Read from MH i2c: F0 09 00 52 18 00 F5 F7 14 67 82 C9 CF 66 49 [12:30:44]GetLastDocTimeStamp 1729427413 [12:30:44]current date 1729427445 [12:30:44]FM_GetShiftState [12:30:44]SAM_PROTO_GetShiftState [12:30:44]wFMCommunicate request_size=4 [12:30:44]MH_SAM_APDU [12:30:44]CAPDU: 80 13 01 00 [12:30:44]Write to MH i2c: E2 08 00 53 18 80 13 01 00 00 00 00 00 E8 [12:30:44]Write i2c OK [12:30:44]MH_I2C_Read... [12:30:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:44]Read from MH i2c: E2 [12:30:44]MH_I2C_Read... [12:30:44]Read from MH i2c: E2 0E 00 [12:30:44]MH_I2C_Read... [12:30:44]Read from MH i2c: E2 0E 00 53 18 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 02 [12:30:44]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:30:44]wFMCommunicate OK [12:30:44]SAM_PROTO_GetShiftState done [12:30:44]FM_GetShiftState done [12:30:44]opened in 1729383750 [12:30:44]opened+sec_in_day 1729470150 [12:30:44]quantity*price = 50041 [12:30:44]sum+1 = 50042 [12:30:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 277 20.10.2024 12:30 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227429 ФПД: 17188408009855 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T123045&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227429&fm=17188408009855&tin=02508201610067®Number=0000000000091685&sum=50000 [12:30:45]StoreToDocumentArchive [12:30:45]shift 533 fd 227429 [12:30:45]save to /storage/0533/doc_00227429 [12:30:45]save last doc name /storage/0533/doc_00227429 to /storage/kkm_last_doc_name [12:30:45]save OK [12:30:45]Clear old archive folders... [12:30:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:30:45]tlvbuf is 018676E0 [12:30:45]SAM_PROTO_ClearQueue [12:30:45]wFMCommunicate request_size=4 [12:30:45]MH_SAM_APDU [12:30:45]CAPDU: 80 09 00 00 [12:30:45]Write to MH i2c: E2 08 00 60 18 80 09 00 00 00 00 00 00 EA [12:30:45]Write i2c OK [12:30:45]MH_I2C_Read... [12:30:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:30:45]Read from MH i2c: E2 [12:30:45]MH_I2C_Read... [12:30:45]Read from MH i2c: E2 03 00 [12:30:45]MH_I2C_Read... [12:30:45]Read from MH i2c: E2 03 00 60 18 00 90 00 EC [12:30:45]RAPDU: 90 00 [12:30:45]wFMCommunicate OK [12:30:45]SAM_PROTO_ClearQueue done [12:30:45]KKMCreateOFDPacket [12:30:45]OFDProtocolAddRootSTLVToBuf [12:30:45]FM_MakeSignedData [12:30:45]FM_MakeSignedData [12:30:45]SAM_PROTO_SignData [12:30:45]wFMCommunicate request_size=4 [12:30:45]MH_SAM_APDU [12:30:45]CAPDU: 80 0D 01 02 [12:30:45]Write to MH i2c: E2 08 00 61 18 80 0D 01 02 00 00 00 00 F2 [12:30:45]Write i2c OK [12:30:45]MH_I2C_Read... [12:30:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:30:46]Read from MH i2c: E2 [12:30:46]MH_I2C_Read... [12:30:46]Read from MH i2c: E2 03 00 [12:30:46]MH_I2C_Read... [12:30:46]Read from MH i2c: E2 03 00 61 18 00 90 00 ED [12:30:46]RAPDU: 90 00 [12:30:46]wFMCommunicate OK [12:30:46]wFMCommunicate request_size=255 [12:30:46]MH_SAM_APDU [12:30:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 F5 F7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 65 78 03 00 35 04 06 00 0F [12:30:46]Write to MH i2c: E2 02 01 62 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 F5 F7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 65 78 03 00 35 04 06 00 0F 00 00 0C [12:30:46]Write i2c OK [12:30:46]MH_I2C_Read... [12:30:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:46]Read from MH i2c: E2 [12:30:46]MH_I2C_Read... [12:30:46]Read from MH i2c: E2 03 00 [12:30:46]MH_I2C_Read... [12:30:46]Read from MH i2c: E2 03 00 62 18 00 90 00 EE [12:30:46]RAPDU: 90 00 [12:30:46]wFMCommunicate OK [12:30:46]wFMCommunicate request_size=10 [12:30:46]MH_SAM_APDU [12:30:46]CAPDU: 80 0D 02 02 05 A1 FC F4 24 7F [12:30:46]Write to MH i2c: E2 0D 00 63 18 80 0D 02 02 05 00 A1 FC F4 24 7F 00 00 33 [12:30:46]Write i2c OK [12:30:46]MH_I2C_Read... [12:30:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:46]Read from MH i2c: E2 [12:30:46]MH_I2C_Read... [12:30:46]Read from MH i2c: E2 03 00 [12:30:46]MH_I2C_Read... [12:30:46]Read from MH i2c: E2 03 00 63 18 00 90 00 EF [12:30:46]RAPDU: 90 00 [12:30:46]wFMCommunicate OK [12:30:46]wFMCommunicate request_size=4 [12:30:46]MH_SAM_APDU [12:30:46]CAPDU: 80 0D 03 02 [12:30:46]Write to MH i2c: E2 08 00 64 18 80 0D 03 02 00 00 00 00 F7 [12:30:46]Write i2c OK [12:30:46]MH_I2C_Read... [12:30:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:30:46]Read from MH i2c: E2 [12:30:46]MH_I2C_Read... [12:30:46]Read from MH i2c: E2 0B 00 [12:30:46]MH_I2C_Read... [12:30:46]Read from MH i2c: E2 0B 00 64 18 00 8D B5 45 42 97 6E 1C 6B 90 00 4D [12:30:46]RAPDU: 8D B5 45 42 97 6E 1C 6B 90 00 [12:30:46]wFMCommunicate OK [12:30:46]SAM_PROTO_SignData done [12:30:46]FM_MakeSignedData done [12:30:46]CreateOFDProtocolMessage [12:30:46]wFMCommunicate request_size=4 [12:30:46]MH_SAM_APDU [12:30:46]CAPDU: 80 11 00 00 [12:30:46]Write to MH i2c: E2 08 00 65 18 80 11 00 00 00 00 00 00 F7 [12:30:46]Write i2c OK [12:30:46]MH_I2C_Read... [12:30:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:46]Read from MH i2c: E2 [12:30:46]MH_I2C_Read... [12:30:46]Read from MH i2c: E2 17 00 [12:30:46]MH_I2C_Read... [12:30:46]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 33 39 90 00 4E [12:30:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:30:46]wFMCommunicate OK [12:30:46]CreateOFDProtocolMessage done [12:30:46]OFDSenderStorePacket 227429 [12:30:46]StoreOFDPacket docnum=227429 [12:30:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 FF 88 07 01 01 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 F5 F7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 65 78 03 00 35 04 06 00 0F A1 FC F4 24 7F 8D B5 45 42 97 6E 1C 6B [12:30:46]CheckFolder [12:30:46]dirname=/storage/ofd_packets [12:30:46]CheckFolder done [12:30:46]ProducePacketName [12:30:46]name=ofd_packets/00227429 [12:30:46]NVStorageSaveData ofd_packets/00227429 [12:30:46]File name is /storage/ofd_packets/00227429 [12:30:46]Write 301 bytes [12:30:46]NVStorageSaveData done [12:30:46]OFDSenderStorePacket done [12:30:46]KKMCreateOFDPacket done [12:30:46]NVStorageSaveData kkm_last_timestamp [12:30:46]File name is /storage/kkm_last_timestamp [12:30:46]Write 4 bytes [12:30:46]NVStorageSaveData done [12:30:46]ExternCall_PrintAddStr [12:30:46]wPrintStart [12:30:46]Write to MH i2c: 01 00 00 66 18 7E [12:30:46]Write i2c OK [12:30:46]MH_I2C_Read... [12:30:46]Read from MH i2c: 01 [12:30:46]MH_I2C_Read... [12:30:46]Read from MH i2c: 01 07 00 [12:30:46]MH_I2C_Read... [12:30:46]Read from MH i2c: 01 07 00 66 18 00 00 00 00 00 FF 0F 93 [12:30:46]RasterBufferAndPrint [12:30:46]line Счет N : (1)1962949 [12:30:46]line ИНН: 02508201610067 [12:30:46]line Контрольно-Кассовый Чек [12:30:46]line ПРОДАЖА [12:30:46]line ТРК (МРК, ГНК) : 53 [12:30:46]line Товар: 2710124130 [12:30:46]line Аи-92-К-5 [12:30:46]line 7.480 * 66.90 [12:30:46]line = 500.41 [12:30:46]line НДС 12% НСП 1% [12:30:46]line > о реализуемом товаре [12:30:46]line ОКРУГЛЕНИЕ: -0.41 [12:30:46]line ИТОГО: 500.00 [12:30:46]line Внесено: 500.00 [12:30:46]line СДАЧА: 0.00 [12:30:46]line НСП 1% : 4.43 [12:30:46]line НДС 12% : 53.14 [12:30:46]line Наличными: 500.00 [12:30:46]line Безнал.: 0.00 [12:30:46]line Место: АЗС № 133 "Партнер Нефть" [12:30:46]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:30:46]line СНО: Общий режим [12:30:46]line Чек 277 20.10.2024 12:30 [12:30:46]line Смена: 533 ФФД: 1.0 [12:30:46]line ЗНМ: 0300000091 [12:30:46]line РНМ: 0000000000091685 [12:30:46]line Версия ККМ: 001 [12:30:46]line ФМ: 0000000000871839 [12:30:46]line ФД: 227429 [12:30:46]line ФПД: 17188408009855 [12:30:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T123045&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227429&fm=17188408009855&tin=02508201610067®Number=0000000000091685&sum=50000 [12:30:46]OFD Sender: Processing packet 227429 [packets to send 38, broken 37] [12:30:46]ProducePacketName [12:30:46]name=ofd_packets/00227429 [12:30:46]OFD Sender: To server: pG, [12:30:46]CommunicateWithHost lk.salyk.kg:30040 [12:30:46]ConnectInit lk.salyk.kg [12:30:46]written 0, free lines is 4095 [12:30:46]Connected sock=10 [12:30: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 33 39 0F 01 00 00 FF 88 07 01 01 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 F5 F7 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 65 78 03 00 35 04 06 00 0F A1 FC F4 24 7F 8D B5 45 42 97 6E 1C 6B [12:30: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 33 39 4F 00 00 00 BC 94 47 00 C3 EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 65 78 03 00 F4 03 04 00 F4 A2 14 67 B6 04 01 00 00 2E 8F 27 09 50 42 91 EB [12:30:47]CommunicateWithHost err = 0 [12:30:47]CheckOFDResponse [12:30:47]1017 (14) - 77093643461234 [12:30:47]1041 (16) - 0000000000871839 [12:30:47]1040 (4) - 227429 [12:30:47]1012 (4) - 20.10.2024 06:28 [12:30:47]1206 (1) - 0 [12:30:47]OFD Sender: Remove packet 227429 [12:30:47]ProducePacketName [12:30:47]name=ofd_packets/00227429 [12:30:47]NVStorageDeleteData [12:30:47]Write to MH i2c: 01 00 00 90 18 A8 [12:30:47]Write i2c OK [12:30:47]MH_I2C_Read... [12:30:47]Read from MH i2c: 01 [12:30:47]MH_I2C_Read... [12:30:47]Read from MH i2c: 01 07 00 [12:30:47]MH_I2C_Read... [12:30:47]Read from MH i2c: 01 07 00 90 18 00 00 00 00 00 02 0D BE [12:30:47]RasterBufferAndPrint [12:30:47]line [12:30:47]line [12:30:47]line [12:30:47]line [12:30:47]line [12:30:47]written 0, free lines is 3336 [12:30:47]process_action close_receipt done [12:30:47]requested_data is exist [12:30:47]produce_requested_data [12:30:47]requested_item fm.sn is exist - process it [12:30:47]wFMCommunicate request_size=4 [12:30:47]MH_SAM_APDU [12:30:47]CAPDU: 80 11 00 00 [12:30:47]Write to MH i2c: E2 08 00 97 18 80 11 00 00 00 00 00 00 29 [12:30:47]Write i2c OK [12:30:47]MH_I2C_Read... [12:30:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:47]Read from MH i2c: E2 [12:30:47]MH_I2C_Read... [12:30:47]Read from MH i2c: E2 17 00 [12:30:47]MH_I2C_Read... [12:30:47]Read from MH i2c: E2 17 00 97 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 80 [12:30:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:30:47]wFMCommunicate OK [12:30:47]requested_item fd.num is exist - process it [12:30:47]SAM_PROTO_GetFieldsCounters [12:30:47]wFMCommunicate request_size=4 [12:30:47]MH_SAM_APDU [12:30:47]CAPDU: 80 13 00 00 [12:30:47]Write to MH i2c: E2 08 00 98 18 80 13 00 00 00 00 00 00 2C [12:30:47]Write i2c OK [12:30:47]MH_I2C_Read... [12:30:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:30:47]Read from MH i2c: E2 [12:30:47]MH_I2C_Read... [12:30:47]Read from MH i2c: E2 62 00 [12:30:47]MH_I2C_Read... [12:30:47]Read from MH i2c: E2 62 00 98 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 65 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 8E [12:30: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 65 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:30:47]wFMCommunicate OK [12:30:47]SAM_PROTO_GetFieldsCounters done [12:30:47]requested_item shift.num is exist - process it [12:30:47]requested_item shift.opened is exist - process it [12:30:47]req_shift_opened [12:30:47]FM_GetShiftState [12:30:47]SAM_PROTO_GetShiftState [12:30:47]wFMCommunicate request_size=4 [12:30:47]MH_SAM_APDU [12:30:47]CAPDU: 80 13 01 00 [12:30:47]Write to MH i2c: E2 08 00 99 18 80 13 01 00 00 00 00 00 2E [12:30:47]Write i2c OK [12:30:47]MH_I2C_Read... [12:30:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:47]Read from MH i2c: E2 [12:30:47]MH_I2C_Read... [12:30:47]Read from MH i2c: E2 0E 00 [12:30:47]MH_I2C_Read... [12:30:47]Read from MH i2c: E2 0E 00 99 18 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 48 [12:30:47]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:30:47]wFMCommunicate OK [12:30:47]SAM_PROTO_GetShiftState done [12:30:47]FM_GetShiftState done [12:30:47]req_shift_opened done [12:30:47]requested_item shift.open_date is exist - process it [12:30:47]req_shift_open_date [12:30:47]req_shift_open_date done [12:30:47]produce_requested_data done [12:30:47]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227429,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [12:30:47]process_action_free close_receipt [12:30:47]json_value_free [12:30:47]json_value_free done [12:30:47]process_json_proto returns [12:30:47]Send response to host [12:30:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227429,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [12:30:47]free response buf [12:30:47]execute_script done [12:30:47]execute_script returns [12:30:47]free content buf [12:30:47]Sock 8.Close socket [12:30:47]Sock 8.Thread stoped [12:30:47]OFD Sender: No OFD packet to send [12:30:52]OFD Sender: No OFD packet to send [12:30:57]OFD Sender: No OFD packet to send [12:31:02]OFD Sender: No OFD packet to send [12:31:07]OFD Sender: No OFD packet to send [12:31:12]OFD Sender: No OFD packet to send [12:31:17]OFD Sender: No OFD packet to send [12:31:22]OFD Sender: No OFD packet to send [12:31:27]OFD Sender: No OFD packet to send [12:31:32]OFD Sender: No OFD packet to send [12:31:37]OFD Sender: No OFD packet to send [12:31:42]OFD Sender: No OFD packet to send [12:31:47]OFD Sender: No OFD packet to send [12:31:52]OFD Sender: No OFD packet to send [12:31:57]OFD Sender: No OFD packet to send [12:32:02]OFD Sender: No OFD packet to send [12:32:07]OFD Sender: No OFD packet to send [12:32:12]OFD Sender: No OFD packet to send [12:32:17]OFD Sender: No OFD packet to send [12:32:22]OFD Sender: No OFD packet to send [12:32:27]OFD Sender: No OFD packet to send [12:32:32]OFD Sender: No OFD packet to send [12:32:37]OFD Sender: No OFD packet to send [12:32:42]OFD Sender: No OFD packet to send [12:32:47]OFD Sender: No OFD packet to send [12:32:52]OFD Sender: No OFD packet to send [12:32:57]OFD Sender: No OFD packet to send [12:33:02]OFD Sender: No OFD packet to send [12:33:07]OFD Sender: No OFD packet to send [12:33:12]OFD Sender: No OFD packet to send [12:33:17]OFD Sender: No OFD packet to send [12:33:22]OFD Sender: No OFD packet to send [12:33:27]OFD Sender: No OFD packet to send [12:33:32]OFD Sender: No OFD packet to send [12:33:37]OFD Sender: No OFD packet to send [12:33:42]OFD Sender: No OFD packet to send [12:33:47]OFD Sender: No OFD packet to send [12:33:52]OFD Sender: No OFD packet to send [12:33:54]accept exits with 9 [12:33:54]New connection [12:33:54]New thread 3066543460 created [12:33:54]Thread 3066686820 joined [12:33:54]Waiting for new connection... [12:33:54] Sock 9.Parse request [12:33:54]Sock 9.Check first char [12:33:54]Sock 9.First char is OK [12:33:54]request: POST /json_proto HTTP/1.0 [12:33:54]Method: POST [12:33:54]URL: /json_proto [12:33:54]Method is POST - this is cgi request [12:33:54]url: /json_proto [12:33:54]query_string will be loaded in cgi processing [12:33:54]execute_cgi json_proto POST (null) [12:33:54]execute_cgi path=json_proto method=POST [12:33:54]POST find Content-Length [12:33:54]Host: 172.17.44.195:8080 [12:33:54]Content-Length: 683 [12:33:54]Content-Type: application/json [12:33:54] [12:33:54]POST finish read [12:33:54]Found Content-Length = 683 [12:33:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962950", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:54]execute_script... [12:33: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)1962950", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:54]POST & json_proto [12:33:54]process_json_proto [12:33:54]json parsed OK: [12:33:54]protocol is kg_v1.0 [12:33:54]action value=close_receipt [12:33:54]process_action close_receipt [12:33:54]cmd_close_receipt [12:33:54]MH_GetDate [12:33:54]Write to MH i2c: F0 00 00 9A 18 A1 [12:33:54]Write i2c OK [12:33:54]MH_I2C_Read... [12:33:54]Read from MH i2c: F0 [12:33:54]MH_I2C_Read... [12:33:54]Read from MH i2c: F0 09 00 [12:33:54]MH_I2C_Read... [12:33:54]Read from MH i2c: F0 09 00 9A 18 00 B3 F8 14 67 82 C9 CF 66 50 [12:33:54]GetLastDocTimeStamp 1729427445 [12:33:54]current date 1729427635 [12:33:54]FM_GetShiftState [12:33:54]SAM_PROTO_GetShiftState [12:33:54]wFMCommunicate request_size=4 [12:33:54]MH_SAM_APDU [12:33:54]CAPDU: 80 13 01 00 [12:33:54]Write to MH i2c: E2 08 00 9B 18 80 13 01 00 00 00 00 00 30 [12:33:54]Write i2c OK [12:33:54]MH_I2C_Read... [12:33:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:54]Read from MH i2c: E2 [12:33:54]MH_I2C_Read... [12:33:54]Read from MH i2c: E2 0E 00 [12:33:54]MH_I2C_Read... [12:33:54]Read from MH i2c: E2 0E 00 9B 18 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 4A [12:33:54]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:33:54]wFMCommunicate OK [12:33:54]SAM_PROTO_GetShiftState done [12:33:54]FM_GetShiftState done [12:33:54]opened in 1729383750 [12:33:54]opened+sec_in_day 1729470150 [12:33:54]quantity*price = 100015 [12:33:54]sum+1 = 100017 [12:33:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 278 20.10.2024 12:33 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227430 ФПД: 159556548896184 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T123355&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227430&fm=159556548896184&tin=02508201610067®Number=0000000000091685&sum=100000 [12:33:55]StoreToDocumentArchive [12:33:55]shift 533 fd 227430 [12:33:55]save to /storage/0533/doc_00227430 [12:33:55]save last doc name /storage/0533/doc_00227430 to /storage/kkm_last_doc_name [12:33:55]save OK [12:33:55]Clear old archive folders... [12:33:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:33:55]tlvbuf is B6E67380 [12:33:55]SAM_PROTO_ClearQueue [12:33:55]wFMCommunicate request_size=4 [12:33:55]MH_SAM_APDU [12:33:55]CAPDU: 80 09 00 00 [12:33:55]Write to MH i2c: E2 08 00 A8 18 80 09 00 00 00 00 00 00 32 [12:33:55]Write i2c OK [12:33:55]MH_I2C_Read... [12:33:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:33:55]Read from MH i2c: E2 [12:33:55]MH_I2C_Read... [12:33:55]Read from MH i2c: E2 03 00 [12:33:55]MH_I2C_Read... [12:33:55]Read from MH i2c: E2 03 00 A8 18 00 90 00 34 [12:33:55]RAPDU: 90 00 [12:33:55]wFMCommunicate OK [12:33:55]SAM_PROTO_ClearQueue done [12:33:55]KKMCreateOFDPacket [12:33:55]OFDProtocolAddRootSTLVToBuf [12:33:55]FM_MakeSignedData [12:33:55]FM_MakeSignedData [12:33:55]SAM_PROTO_SignData [12:33:55]wFMCommunicate request_size=4 [12:33:55]MH_SAM_APDU [12:33:55]CAPDU: 80 0D 01 02 [12:33:55]Write to MH i2c: E2 08 00 A9 18 80 0D 01 02 00 00 00 00 3A [12:33:55]Write i2c OK [12:33:55]MH_I2C_Read... [12:33:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:33:55]Read from MH i2c: E2 [12:33:55]MH_I2C_Read... [12:33:55]Read from MH i2c: E2 03 00 [12:33:55]MH_I2C_Read... [12:33:55]Read from MH i2c: E2 03 00 A9 18 00 90 00 35 [12:33:55]RAPDU: 90 00 [12:33:55]wFMCommunicate OK [12:33:55]wFMCommunicate request_size=255 [12:33:55]MH_SAM_APDU [12:33:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 B3 F8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 66 78 03 00 35 04 06 00 91 [12:33:55]Write to MH i2c: E2 02 01 AA 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 B3 F8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 66 78 03 00 35 04 06 00 91 00 00 91 [12:33:55]Write i2c OK [12:33:55]MH_I2C_Read... [12:33:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:55]Read from MH i2c: E2 [12:33:55]MH_I2C_Read... [12:33:55]Read from MH i2c: E2 03 00 [12:33:55]MH_I2C_Read... [12:33:55]Read from MH i2c: E2 03 00 AA 18 00 90 00 36 [12:33:55]RAPDU: 90 00 [12:33:55]wFMCommunicate OK [12:33:55]wFMCommunicate request_size=10 [12:33:55]MH_SAM_APDU [12:33:55]CAPDU: 80 0D 02 02 05 1D A7 6B 25 B8 [12:33:55]Write to MH i2c: E2 0D 00 AB 18 80 0D 02 02 05 00 1D A7 6B 25 B8 00 00 53 [12:33:55]Write i2c OK [12:33:55]MH_I2C_Read... [12:33:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:56]Read from MH i2c: E2 [12:33:56]MH_I2C_Read... [12:33:56]Read from MH i2c: E2 03 00 [12:33:56]MH_I2C_Read... [12:33:56]Read from MH i2c: E2 03 00 AB 18 00 90 00 37 [12:33:56]RAPDU: 90 00 [12:33:56]wFMCommunicate OK [12:33:56]wFMCommunicate request_size=4 [12:33:56]MH_SAM_APDU [12:33:56]CAPDU: 80 0D 03 02 [12:33:56]Write to MH i2c: E2 08 00 AC 18 80 0D 03 02 00 00 00 00 3F [12:33:56]Write i2c OK [12:33:56]MH_I2C_Read... [12:33:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:33:56]Read from MH i2c: E2 [12:33:56]MH_I2C_Read... [12:33:56]Read from MH i2c: E2 0B 00 [12:33:56]MH_I2C_Read... [12:33:56]Read from MH i2c: E2 0B 00 AC 18 00 DD 9B 68 32 1F 9B DD 1A 90 00 03 [12:33:56]RAPDU: DD 9B 68 32 1F 9B DD 1A 90 00 [12:33:56]wFMCommunicate OK [12:33:56]SAM_PROTO_SignData done [12:33:56]FM_MakeSignedData done [12:33:56]CreateOFDProtocolMessage [12:33:56]wFMCommunicate request_size=4 [12:33:56]MH_SAM_APDU [12:33:56]CAPDU: 80 11 00 00 [12:33:56]Write to MH i2c: E2 08 00 AD 18 80 11 00 00 00 00 00 00 3F [12:33:56]Write i2c OK [12:33:56]MH_I2C_Read... [12:33:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:56]Read from MH i2c: E2 [12:33:56]MH_I2C_Read... [12:33:56]Read from MH i2c: E2 17 00 [12:33:56]MH_I2C_Read... [12:33:56]Read from MH i2c: E2 17 00 AD 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 96 [12:33:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:33:56]wFMCommunicate OK [12:33:56]CreateOFDProtocolMessage done [12:33:56]OFDSenderStorePacket 227430 [12:33:56]StoreOFDPacket docnum=227430 [12:33:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 0D EC 07 01 39 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 B3 F8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 66 78 03 00 35 04 06 00 91 1D A7 6B 25 B8 DD 9B 68 32 1F 9B DD 1A [12:33:56]CheckFolder [12:33:56]dirname=/storage/ofd_packets [12:33:56]CheckFolder done [12:33:56]ProducePacketName [12:33:56]name=ofd_packets/00227430 [12:33:56]NVStorageSaveData ofd_packets/00227430 [12:33:56]File name is /storage/ofd_packets/00227430 [12:33:56]Write 301 bytes [12:33:56]NVStorageSaveData done [12:33:56]OFDSenderStorePacket done [12:33:56]KKMCreateOFDPacket done [12:33:56]NVStorageSaveData kkm_last_timestamp [12:33:56]File name is /storage/kkm_last_timestamp [12:33:56]Write 4 bytes [12:33:56]NVStorageSaveData done [12:33:56]ExternCall_PrintAddStr [12:33:56]wPrintStart [12:33:56]Write to MH i2c: 01 00 00 AE 18 C6 [12:33:56]Write i2c OK [12:33:56]MH_I2C_Read... [12:33:56]Read from MH i2c: 01 [12:33:56]MH_I2C_Read... [12:33:56]Read from MH i2c: 01 07 00 [12:33:56]MH_I2C_Read... [12:33:56]Read from MH i2c: 01 07 00 AE 18 00 00 00 00 00 FF 0F DB [12:33:56]RasterBufferAndPrint [12:33:56]line Счет N : (1)1962950 [12:33:56]line ИНН: 02508201610067 [12:33:56]line Контрольно-Кассовый Чек [12:33:56]line ПРОДАЖА [12:33:56]line ТРК (МРК, ГНК) : 33 [12:33:56]line Товар: 2710124130 [12:33:56]line Аи-92-К-5 [12:33:56]line 14.950 * 66.90 [12:33:56]line = 1000.16 [12:33:56]line НДС 12% НСП 1% [12:33:56]line > о реализуемом товаре [12:33:56]line ОКРУГЛЕНИЕ: -0.16 [12:33:56]line ИТОГО: 1000.00 [12:33:56]line Внесено: 1000.00 [12:33:56]line СДАЧА: 0.00 [12:33:56]line НСП 1% : 8.85 [12:33:56]line НДС 12% : 106.21 [12:33:56]line Наличными: 1000.00 [12:33:56]line Безнал.: 0.00 [12:33:56]line Место: АЗС № 133 "Партнер Нефть" [12:33:56]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:33:56]line СНО: Общий режим [12:33:56]line Чек 278 20.10.2024 12:33 [12:33:56]line Смена: 533 ФФД: 1.0 [12:33:56]line ЗНМ: 0300000091 [12:33:56]line РНМ: 0000000000091685 [12:33:56]line Версия ККМ: 001 [12:33:56]line ФМ: 0000000000871839 [12:33:56]line ФД: 227430 [12:33:56]line ФПД: 159556548896184 [12:33:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T123355&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227430&fm=159556548896184&tin=02508201610067®Number=0000000000091685&sum=100000 [12:33:56]OFD Sender: Processing packet 227430 [packets to send 38, broken 37] [12:33:56]ProducePacketName [12:33:56]name=ofd_packets/00227430 [12:33:56]OFD Sender: To server: pG, [12:33:56]CommunicateWithHost lk.salyk.kg:30040 [12:33:56]ConnectInit lk.salyk.kg [12:33:56]written 0, free lines is 4095 [12:33:56]Connected sock=10 [12:33:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 0D EC 07 01 39 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 B3 F8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 66 78 03 00 35 04 06 00 91 1D A7 6B 25 B8 DD 9B 68 32 1F 9B DD 1A [12:33: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 33 39 4F 00 00 00 B0 40 47 00 CF AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 66 78 03 00 F4 03 04 00 B2 A3 14 67 B6 04 01 00 00 1B BB A0 26 85 69 F5 03 [12:33:56]CommunicateWithHost err = 0 [12:33:56]CheckOFDResponse [12:33:56]1017 (14) - 77093643461234 [12:33:56]1041 (16) - 0000000000871839 [12:33:56]1040 (4) - 227430 [12:33:56]1012 (4) - 20.10.2024 06:31 [12:33:56]1206 (1) - 0 [12:33:56]OFD Sender: Remove packet 227430 [12:33:56]ProducePacketName [12:33:56]name=ofd_packets/00227430 [12:33:56]NVStorageDeleteData [12:33:56]Write to MH i2c: 01 00 00 D8 18 F0 [12:33:56]Write i2c OK [12:33:56]MH_I2C_Read... [12:33:56]Read from MH i2c: 01 [12:33:56]MH_I2C_Read... [12:33:56]Read from MH i2c: 01 07 00 [12:33:56]MH_I2C_Read... [12:33:56]Read from MH i2c: 01 07 00 D8 18 00 00 00 00 00 0C 0D 10 [12:33:56]RasterBufferAndPrint [12:33:56]line [12:33:56]line [12:33:56]line [12:33:56]line [12:33:56]line [12:33:56]written 0, free lines is 3346 [12:33:56]process_action close_receipt done [12:33:56]requested_data is exist [12:33:56]produce_requested_data [12:33:56]requested_item fm.sn is exist - process it [12:33:56]wFMCommunicate request_size=4 [12:33:56]MH_SAM_APDU [12:33:56]CAPDU: 80 11 00 00 [12:33:56]Write to MH i2c: E2 08 00 DF 18 80 11 00 00 00 00 00 00 71 [12:33:56]Write i2c OK [12:33:56]MH_I2C_Read... [12:33:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:56]Read from MH i2c: E2 [12:33:56]MH_I2C_Read... [12:33:56]Read from MH i2c: E2 17 00 [12:33:56]MH_I2C_Read... [12:33:56]Read from MH i2c: E2 17 00 DF 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C8 [12:33:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:33:56]wFMCommunicate OK [12:33:56]requested_item fd.num is exist - process it [12:33:56]SAM_PROTO_GetFieldsCounters [12:33:56]wFMCommunicate request_size=4 [12:33:56]MH_SAM_APDU [12:33:56]CAPDU: 80 13 00 00 [12:33:56]Write to MH i2c: E2 08 00 E0 18 80 13 00 00 00 00 00 00 74 [12:33:56]Write i2c OK [12:33:56]MH_I2C_Read... [12:33:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:33:57]Read from MH i2c: E2 [12:33:57]MH_I2C_Read... [12:33:57]Read from MH i2c: E2 62 00 [12:33:57]MH_I2C_Read... [12:33:57]Read from MH i2c: E2 62 00 E0 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 66 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 DA [12:33:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 66 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:33:57]wFMCommunicate OK [12:33:57]SAM_PROTO_GetFieldsCounters done [12:33:57]requested_item shift.num is exist - process it [12:33:57]requested_item shift.opened is exist - process it [12:33:57]req_shift_opened [12:33:57]FM_GetShiftState [12:33:57]SAM_PROTO_GetShiftState [12:33:57]wFMCommunicate request_size=4 [12:33:57]MH_SAM_APDU [12:33:57]CAPDU: 80 13 01 00 [12:33:57]Write to MH i2c: E2 08 00 E1 18 80 13 01 00 00 00 00 00 76 [12:33:57]Write i2c OK [12:33:57]MH_I2C_Read... [12:33:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:57]Read from MH i2c: E2 [12:33:57]MH_I2C_Read... [12:33:57]Read from MH i2c: E2 0E 00 [12:33:57]MH_I2C_Read... [12:33:57]Read from MH i2c: E2 0E 00 E1 18 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 90 [12:33:57]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:33:57]wFMCommunicate OK [12:33:57]SAM_PROTO_GetShiftState done [12:33:57]FM_GetShiftState done [12:33:57]req_shift_opened done [12:33:57]requested_item shift.open_date is exist - process it [12:33:57]req_shift_open_date [12:33:57]req_shift_open_date done [12:33:57]produce_requested_data done [12:33:57]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227430,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [12:33:57]process_action_free close_receipt [12:33:57]json_value_free [12:33:57]json_value_free done [12:33:57]process_json_proto returns [12:33:57]Send response to host [12:33:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227430,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [12:33:57]free response buf [12:33:57]execute_script done [12:33:57]execute_script returns [12:33:57]free content buf [12:33:57]Sock 9.Close socket [12:33:57]Sock 9.Thread stoped [12:33:57]OFD Sender: No OFD packet to send [12:34:02]OFD Sender: No OFD packet to send [12:34:04]accept exits with 8 [12:34:04]New connection [12:34:04]New thread 3066686820 created [12:34:04]Thread 3066543460 joined [12:34:04]Waiting for new connection... [12:34:04] Sock 8.Parse request [12:34:04]Sock 8.Check first char [12:34:04]Sock 8.First char is OK [12:34:04]request: POST /json_proto HTTP/1.0 [12:34:04]Method: POST [12:34:04]URL: /json_proto [12:34:04]Method is POST - this is cgi request [12:34:04]url: /json_proto [12:34:04]query_string will be loaded in cgi processing [12:34:04]execute_cgi json_proto POST (null) [12:34:04]execute_cgi path=json_proto method=POST [12:34:04]POST find Content-Length [12:34:04]Host: 172.17.44.195:8080 [12:34:04]Content-Length: 678 [12:34:04]Content-Type: application/json [12:34:04] [12:34:04]POST finish read [12:34:04]Found Content-Length = 678 [12:34:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962951", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:04]execute_script... [12:34:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962951", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:04]POST & json_proto [12:34:04]process_json_proto [12:34:04]json parsed OK: [12:34:04]protocol is kg_v1.0 [12:34:04]action value=close_receipt [12:34:04]process_action close_receipt [12:34:04]cmd_close_receipt [12:34:04]MH_GetDate [12:34:04]Write to MH i2c: F0 00 00 E2 18 E9 [12:34:04]Write i2c OK [12:34:04]MH_I2C_Read... [12:34:04]Read from MH i2c: F0 [12:34:04]MH_I2C_Read... [12:34:04]Read from MH i2c: F0 09 00 [12:34:04]MH_I2C_Read... [12:34:04]Read from MH i2c: F0 09 00 E2 18 00 BD F8 14 67 82 C9 CF 66 A2 [12:34:04]GetLastDocTimeStamp 1729427635 [12:34:04]current date 1729427645 [12:34:04]FM_GetShiftState [12:34:04]SAM_PROTO_GetShiftState [12:34:04]wFMCommunicate request_size=4 [12:34:04]MH_SAM_APDU [12:34:04]CAPDU: 80 13 01 00 [12:34:04]Write to MH i2c: E2 08 00 E3 18 80 13 01 00 00 00 00 00 78 [12:34:04]Write i2c OK [12:34:04]MH_I2C_Read... [12:34:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:04]Read from MH i2c: E2 [12:34:04]MH_I2C_Read... [12:34:04]Read from MH i2c: E2 0E 00 [12:34:04]MH_I2C_Read... [12:34:04]Read from MH i2c: E2 0E 00 E3 18 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 92 [12:34:04]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:34:04]wFMCommunicate OK [12:34:04]SAM_PROTO_GetShiftState done [12:34:04]FM_GetShiftState done [12:34:04]opened in 1729383750 [12:34:04]opened+sec_in_day 1729470150 [12:34:04]quantity*price = 60027 [12:34:04]sum+1 = 60029 [12:34:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 279 20.10.2024 12:34 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227431 ФПД: 196460283326388 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T123405&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227431&fm=196460283326388&tin=02508201610067®Number=0000000000091685&sum=60000 [12:34:05]StoreToDocumentArchive [12:34:05]shift 533 fd 227431 [12:34:05]save to /storage/0533/doc_00227431 [12:34:05]save last doc name /storage/0533/doc_00227431 to /storage/kkm_last_doc_name [12:34:05]save OK [12:34:05]Clear old archive folders... [12:34:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:34:05]tlvbuf is 018A6A50 [12:34:05]SAM_PROTO_ClearQueue [12:34:05]wFMCommunicate request_size=4 [12:34:05]MH_SAM_APDU [12:34:05]CAPDU: 80 09 00 00 [12:34:05]Write to MH i2c: E2 08 00 F0 18 80 09 00 00 00 00 00 00 7A [12:34:05]Write i2c OK [12:34:05]MH_I2C_Read... [12:34:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:34:05]Read from MH i2c: E2 [12:34:05]MH_I2C_Read... [12:34:05]Read from MH i2c: E2 03 00 [12:34:05]MH_I2C_Read... [12:34:05]Read from MH i2c: E2 03 00 F0 18 00 90 00 7C [12:34:05]RAPDU: 90 00 [12:34:05]wFMCommunicate OK [12:34:05]SAM_PROTO_ClearQueue done [12:34:05]KKMCreateOFDPacket [12:34:05]OFDProtocolAddRootSTLVToBuf [12:34:05]FM_MakeSignedData [12:34:05]FM_MakeSignedData [12:34:05]SAM_PROTO_SignData [12:34:05]wFMCommunicate request_size=4 [12:34:05]MH_SAM_APDU [12:34:05]CAPDU: 80 0D 01 02 [12:34:05]Write to MH i2c: E2 08 00 F1 18 80 0D 01 02 00 00 00 00 82 [12:34:05]Write i2c OK [12:34:05]MH_I2C_Read... [12:34:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:34:05]Read from MH i2c: E2 [12:34:05]MH_I2C_Read... [12:34:05]Read from MH i2c: E2 03 00 [12:34:05]MH_I2C_Read... [12:34:05]Read from MH i2c: E2 03 00 F1 18 00 90 00 7D [12:34:05]RAPDU: 90 00 [12:34:05]wFMCommunicate OK [12:34:05]wFMCommunicate request_size=255 [12:34:05]MH_SAM_APDU [12:34:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 BD F8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 67 78 03 00 35 04 06 00 B2 [12:34:05]Write to MH i2c: E2 02 01 F2 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 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 BD F8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 67 78 03 00 35 04 06 00 B2 00 00 6A [12:34:05]Write i2c OK [12:34:05]MH_I2C_Read... [12:34:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:06]Read from MH i2c: E2 [12:34:06]MH_I2C_Read... [12:34:06]Read from MH i2c: E2 03 00 [12:34:06]MH_I2C_Read... [12:34:06]Read from MH i2c: E2 03 00 F2 18 00 90 00 7E [12:34:06]RAPDU: 90 00 [12:34:06]wFMCommunicate OK [12:34:06]wFMCommunicate request_size=10 [12:34:06]MH_SAM_APDU [12:34:06]CAPDU: 80 0D 02 02 05 AD F9 66 6F B4 [12:34:06]Write to MH i2c: E2 0D 00 F3 18 80 0D 02 02 05 00 AD F9 66 6F B4 00 00 BE [12:34:06]Write i2c OK [12:34:06]MH_I2C_Read... [12:34:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:06]Read from MH i2c: E2 [12:34:06]MH_I2C_Read... [12:34:06]Read from MH i2c: E2 03 00 [12:34:06]MH_I2C_Read... [12:34:06]Read from MH i2c: E2 03 00 F3 18 00 90 00 7F [12:34:06]RAPDU: 90 00 [12:34:06]wFMCommunicate OK [12:34:06]wFMCommunicate request_size=4 [12:34:06]MH_SAM_APDU [12:34:06]CAPDU: 80 0D 03 02 [12:34:06]Write to MH i2c: E2 08 00 F4 18 80 0D 03 02 00 00 00 00 87 [12:34:06]Write i2c OK [12:34:06]MH_I2C_Read... [12:34:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:34:06]Read from MH i2c: E2 [12:34:06]MH_I2C_Read... [12:34:06]Read from MH i2c: E2 0B 00 [12:34:06]MH_I2C_Read... [12:34:06]Read from MH i2c: E2 0B 00 F4 18 00 FB 16 1A 95 75 4E 1E 64 90 00 8D [12:34:06]RAPDU: FB 16 1A 95 75 4E 1E 64 90 00 [12:34:06]wFMCommunicate OK [12:34:06]SAM_PROTO_SignData done [12:34:06]FM_MakeSignedData done [12:34:06]CreateOFDProtocolMessage [12:34:06]wFMCommunicate request_size=4 [12:34:06]MH_SAM_APDU [12:34:06]CAPDU: 80 11 00 00 [12:34:06]Write to MH i2c: E2 08 00 F5 18 80 11 00 00 00 00 00 00 87 [12:34:06]Write i2c OK [12:34:06]MH_I2C_Read... [12:34:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:06]Read from MH i2c: E2 [12:34:06]MH_I2C_Read... [12:34:06]Read from MH i2c: E2 17 00 [12:34:06]MH_I2C_Read... [12:34:06]Read from MH i2c: E2 17 00 F5 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 DE [12:34:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:34:06]wFMCommunicate OK [12:34:06]CreateOFDProtocolMessage done [12:34:06]OFDSenderStorePacket 227431 [12:34:06]StoreOFDPacket docnum=227431 [12:34:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 DE 55 07 01 F0 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 BD F8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 67 78 03 00 35 04 06 00 B2 AD F9 66 6F B4 FB 16 1A 95 75 4E 1E 64 [12:34:06]CheckFolder [12:34:06]dirname=/storage/ofd_packets [12:34:06]CheckFolder done [12:34:06]ProducePacketName [12:34:06]name=ofd_packets/00227431 [12:34:06]NVStorageSaveData ofd_packets/00227431 [12:34:06]File name is /storage/ofd_packets/00227431 [12:34:06]Write 301 bytes [12:34:06]NVStorageSaveData done [12:34:06]OFDSenderStorePacket done [12:34:06]KKMCreateOFDPacket done [12:34:06]NVStorageSaveData kkm_last_timestamp [12:34:06]File name is /storage/kkm_last_timestamp [12:34:06]Write 4 bytes [12:34:06]NVStorageSaveData done [12:34:06]ExternCall_PrintAddStr [12:34:06]wPrintStart [12:34:06]Write to MH i2c: 01 00 00 F6 18 0E [12:34:06]Write i2c OK [12:34:06]MH_I2C_Read... [12:34:06]Read from MH i2c: 01 [12:34:06]MH_I2C_Read... [12:34:06]Read from MH i2c: 01 07 00 [12:34:06]MH_I2C_Read... [12:34:06]Read from MH i2c: 01 07 00 F6 18 00 00 00 00 00 FF 0F 23 [12:34:06]RasterBufferAndPrint [12:34:06]line Счет N : (1)1962951 [12:34:06]line ИНН: 02508201610067 [12:34:06]line Контрольно-Кассовый Чек [12:34:06]line ПРОДАЖА [12:34:06]line ТРК (МРК, ГНК) : 44 [12:34:06]line Товар: 2710124500 [12:34:06]line Аи-95-К-5 [12:34:06]line 8.090 * 74.20 [12:34:06]line = 600.28 [12:34:06]line НДС 12% НСП 1% [12:34:06]line > о реализуемом товаре [12:34:06]line ОКРУГЛЕНИЕ: -0.28 [12:34:06]line ИТОГО: 600.00 [12:34:06]line Внесено: 600.00 [12:34:06]line СДАЧА: 0.00 [12:34:06]line НСП 1% : 5.31 [12:34:06]line НДС 12% : 63.75 [12:34:06]line Наличными: 600.00 [12:34:06]line Безнал.: 0.00 [12:34:06]line Место: АЗС № 133 "Партнер Нефть" [12:34:06]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:34:06]line СНО: Общий режим [12:34:06]line Чек 279 20.10.2024 12:34 [12:34:06]line Смена: 533 ФФД: 1.0 [12:34:06]line ЗНМ: 0300000091 [12:34:06]line РНМ: 0000000000091685 [12:34:06]line Версия ККМ: 001 [12:34:06]line ФМ: 0000000000871839 [12:34:06]line ФД: 227431 [12:34:06]line ФПД: 196460283326388 [12:34:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T123405&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227431&fm=196460283326388&tin=02508201610067®Number=0000000000091685&sum=60000 [12:34:06]written 0, free lines is 4095 [12:34:06]OFD Sender: Processing packet 227431 [packets to send 38, broken 37] [12:34:06]ProducePacketName [12:34:06]name=ofd_packets/00227431 [12:34:06]OFD Sender: To server: pG, [12:34:06]CommunicateWithHost lk.salyk.kg:30040 [12:34:06]ConnectInit lk.salyk.kg [12:34:06]Connected sock=10 [12:34:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 DE 55 07 01 F0 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 BD F8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 67 78 03 00 35 04 06 00 B2 AD F9 66 6F B4 FB 16 1A 95 75 4E 1E 64 [12:34: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 33 39 4F 00 00 00 35 BE 47 00 2C 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 33 39 10 04 04 00 67 78 03 00 F4 03 04 00 BC A3 14 67 B6 04 01 00 00 76 1B 09 DE 07 DF E1 FD [12:34:06]CommunicateWithHost err = 0 [12:34:06]CheckOFDResponse [12:34:06]1017 (14) - 77093643461234 [12:34:06]1041 (16) - 0000000000871839 [12:34:06]1040 (4) - 227431 [12:34:06]1012 (4) - 20.10.2024 06:31 [12:34:06]1206 (1) - 0 [12:34:06]OFD Sender: Remove packet 227431 [12:34:06]ProducePacketName [12:34:06]name=ofd_packets/00227431 [12:34:06]NVStorageDeleteData [12:34:06]Write to MH i2c: 01 00 00 20 19 39 [12:34:06]Write i2c OK [12:34:06]MH_I2C_Read... [12:34:06]Read from MH i2c: 01 [12:34:06]MH_I2C_Read... [12:34:06]Read from MH i2c: 01 07 00 [12:34:06]MH_I2C_Read... [12:34:06]Read from MH i2c: 01 07 00 20 19 00 00 00 00 00 1E 0D 6B [12:34:06]RasterBufferAndPrint [12:34:06]line [12:34:06]line [12:34:06]line [12:34:06]line [12:34:06]line [12:34:06]written 0, free lines is 3364 [12:34:06]process_action close_receipt done [12:34:06]requested_data is exist [12:34:06]produce_requested_data [12:34:06]requested_item fm.sn is exist - process it [12:34:06]wFMCommunicate request_size=4 [12:34:06]MH_SAM_APDU [12:34:06]CAPDU: 80 11 00 00 [12:34:06]Write to MH i2c: E2 08 00 27 19 80 11 00 00 00 00 00 00 BA [12:34:06]Write i2c OK [12:34:06]MH_I2C_Read... [12:34:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:06]Read from MH i2c: E2 [12:34:06]MH_I2C_Read... [12:34:06]Read from MH i2c: E2 17 00 [12:34:06]MH_I2C_Read... [12:34:06]Read from MH i2c: E2 17 00 27 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 11 [12:34:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:34:06]wFMCommunicate OK [12:34:06]requested_item fd.num is exist - process it [12:34:06]SAM_PROTO_GetFieldsCounters [12:34:06]wFMCommunicate request_size=4 [12:34:06]MH_SAM_APDU [12:34:06]CAPDU: 80 13 00 00 [12:34:06]Write to MH i2c: E2 08 00 28 19 80 13 00 00 00 00 00 00 BD [12:34:06]Write i2c OK [12:34:06]MH_I2C_Read... [12:34:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:34:06]Read from MH i2c: E2 [12:34:06]MH_I2C_Read... [12:34:06]Read from MH i2c: E2 62 00 [12:34:06]MH_I2C_Read... [12:34:06]Read from MH i2c: E2 62 00 28 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 67 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 27 [12:34:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 67 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:34:06]wFMCommunicate OK [12:34:06]SAM_PROTO_GetFieldsCounters done [12:34:06]requested_item shift.num is exist - process it [12:34:06]requested_item shift.opened is exist - process it [12:34:06]req_shift_opened [12:34:06]FM_GetShiftState [12:34:06]SAM_PROTO_GetShiftState [12:34:06]wFMCommunicate request_size=4 [12:34:06]MH_SAM_APDU [12:34:06]CAPDU: 80 13 01 00 [12:34:06]Write to MH i2c: E2 08 00 29 19 80 13 01 00 00 00 00 00 BF [12:34:06]Write i2c OK [12:34:06]MH_I2C_Read... [12:34:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:06]Read from MH i2c: E2 [12:34:06]MH_I2C_Read... [12:34:06]Read from MH i2c: E2 0E 00 [12:34:06]MH_I2C_Read... [12:34:06]Read from MH i2c: E2 0E 00 29 19 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 D9 [12:34:06]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:34:06]wFMCommunicate OK [12:34:06]SAM_PROTO_GetShiftState done [12:34:06]FM_GetShiftState done [12:34:06]req_shift_opened done [12:34:06]requested_item shift.open_date is exist - process it [12:34:06]req_shift_open_date [12:34:06]req_shift_open_date done [12:34:06]produce_requested_data done [12:34:06]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227431,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [12:34:06]process_action_free close_receipt [12:34:06]json_value_free [12:34:06]json_value_free done [12:34:06]process_json_proto returns [12:34:06]Send response to host [12:34:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227431,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [12:34:06]free response buf [12:34:06]execute_script done [12:34:06]execute_script returns [12:34:06]free content buf [12:34:06]Sock 8.Close socket [12:34:06]Sock 8.Thread stoped [12:34:07]OFD Sender: No OFD packet to send [12:34:12]OFD Sender: No OFD packet to send [12:34:17]OFD Sender: No OFD packet to send [12:34:22]OFD Sender: No OFD packet to send [12:34:24]accept exits with 9 [12:34:24]New connection [12:34:24]New thread 3066543460 created [12:34:24]Thread 3066686820 joined [12:34:24]Waiting for new connection... [12:34:24] Sock 9.Parse request [12:34:24]Sock 9.Check first char [12:34:24]Sock 9.First char is OK [12:34:24]request: POST /json_proto HTTP/1.0 [12:34:24]Method: POST [12:34:24]URL: /json_proto [12:34:24]Method is POST - this is cgi request [12:34:24]url: /json_proto [12:34:24]query_string will be loaded in cgi processing [12:34:24]execute_cgi json_proto POST (null) [12:34:24]execute_cgi path=json_proto method=POST [12:34:24]POST find Content-Length [12:34:24]Host: 172.17.44.195:8080 [12:34:24]Content-Length: 675 [12:34:24]Content-Type: application/json [12:34:24] [12:34:24]POST finish read [12:34:24]Found Content-Length = 675 [12:34:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962952", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:24]execute_script... [12:34:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962952", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:24]POST & json_proto [12:34:24]process_json_proto [12:34:24]json parsed OK: [12:34:24]protocol is kg_v1.0 [12:34:24]action value=close_receipt [12:34:24]process_action close_receipt [12:34:24]cmd_close_receipt [12:34:24]MH_GetDate [12:34:24]Write to MH i2c: F0 00 00 2A 19 32 [12:34:24]Write i2c OK [12:34:24]MH_I2C_Read... [12:34:24]Read from MH i2c: F0 [12:34:24]MH_I2C_Read... [12:34:24]Read from MH i2c: F0 09 00 [12:34:24]MH_I2C_Read... [12:34:24]Read from MH i2c: F0 09 00 2A 19 00 D1 F8 14 67 82 C9 CF 66 FF [12:34:24]GetLastDocTimeStamp 1729427645 [12:34:24]current date 1729427665 [12:34:24]FM_GetShiftState [12:34:24]SAM_PROTO_GetShiftState [12:34:24]wFMCommunicate request_size=4 [12:34:24]MH_SAM_APDU [12:34:24]CAPDU: 80 13 01 00 [12:34:24]Write to MH i2c: E2 08 00 2B 19 80 13 01 00 00 00 00 00 C1 [12:34:24]Write i2c OK [12:34:24]MH_I2C_Read... [12:34:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:24]Read from MH i2c: E2 [12:34:24]MH_I2C_Read... [12:34:24]Read from MH i2c: E2 0E 00 [12:34:24]MH_I2C_Read... [12:34:24]Read from MH i2c: E2 0E 00 2B 19 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 DB [12:34:24]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:34:24]wFMCommunicate OK [12:34:24]SAM_PROTO_GetShiftState done [12:34:24]FM_GetShiftState done [12:34:24]opened in 1729383750 [12:34:24]opened+sec_in_day 1729470150 [12:34:24]quantity*price = 50063 [12:34:24]sum+1 = 50064 [12:34:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 280 20.10.2024 12:34 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227432 ФПД: 224214874846810 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T123425&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227432&fm=224214874846810&tin=02508201610067®Number=0000000000091685&sum=50000 [12:34:25]StoreToDocumentArchive [12:34:25]shift 533 fd 227432 [12:34:25]save to /storage/0533/doc_00227432 [12:34:25]save last doc name /storage/0533/doc_00227432 to /storage/kkm_last_doc_name [12:34:25]save OK [12:34:25]Clear old archive folders... [12:34:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:34:25]tlvbuf is B6E670F0 [12:34:25]SAM_PROTO_ClearQueue [12:34:25]wFMCommunicate request_size=4 [12:34:25]MH_SAM_APDU [12:34:25]CAPDU: 80 09 00 00 [12:34:25]Write to MH i2c: E2 08 00 38 19 80 09 00 00 00 00 00 00 C3 [12:34:25]Write i2c OK [12:34:25]MH_I2C_Read... [12:34:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:34:25]Read from MH i2c: E2 [12:34:25]MH_I2C_Read... [12:34:25]Read from MH i2c: E2 03 00 [12:34:25]MH_I2C_Read... [12:34:25]Read from MH i2c: E2 03 00 38 19 00 90 00 C5 [12:34:25]RAPDU: 90 00 [12:34:25]wFMCommunicate OK [12:34:25]SAM_PROTO_ClearQueue done [12:34:25]KKMCreateOFDPacket [12:34:25]OFDProtocolAddRootSTLVToBuf [12:34:25]FM_MakeSignedData [12:34:25]FM_MakeSignedData [12:34:25]SAM_PROTO_SignData [12:34:25]wFMCommunicate request_size=4 [12:34:25]MH_SAM_APDU [12:34:25]CAPDU: 80 0D 01 02 [12:34:25]Write to MH i2c: E2 08 00 39 19 80 0D 01 02 00 00 00 00 CB [12:34:25]Write i2c OK [12:34:25]MH_I2C_Read... [12:34:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:34:25]Read from MH i2c: E2 [12:34:25]MH_I2C_Read... [12:34:25]Read from MH i2c: E2 03 00 [12:34:25]MH_I2C_Read... [12:34:25]Read from MH i2c: E2 03 00 39 19 00 90 00 C6 [12:34:25]RAPDU: 90 00 [12:34:25]wFMCommunicate OK [12:34:25]wFMCommunicate request_size=255 [12:34:25]MH_SAM_APDU [12:34: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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 D1 F8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 68 78 03 00 35 04 06 00 CB EC 17 F7 [12:34:25]Write to MH i2c: E2 02 01 3A 19 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 D1 F8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 68 78 03 00 35 04 06 00 CB EC 17 F7 00 00 FC [12:34:25]Write i2c OK [12:34:25]MH_I2C_Read... [12:34:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:25]Read from MH i2c: E2 [12:34:25]MH_I2C_Read... [12:34:25]Read from MH i2c: E2 03 00 [12:34:25]MH_I2C_Read... [12:34:25]Read from MH i2c: E2 03 00 3A 19 00 90 00 C7 [12:34:25]RAPDU: 90 00 [12:34:25]wFMCommunicate OK [12:34:25]wFMCommunicate request_size=7 [12:34:25]MH_SAM_APDU [12:34:25]CAPDU: 80 0D 02 02 02 F6 5A [12:34:25]Write to MH i2c: E2 0A 00 3B 19 80 0D 02 02 02 00 F6 5A 00 00 22 [12:34:25]Write i2c OK [12:34:25]MH_I2C_Read... [12:34:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:25]Read from MH i2c: E2 [12:34:25]MH_I2C_Read... [12:34:25]Read from MH i2c: E2 03 00 [12:34:25]MH_I2C_Read... [12:34:25]Read from MH i2c: E2 03 00 3B 19 00 90 00 C8 [12:34:25]RAPDU: 90 00 [12:34:25]wFMCommunicate OK [12:34:25]wFMCommunicate request_size=4 [12:34:25]MH_SAM_APDU [12:34:25]CAPDU: 80 0D 03 02 [12:34:25]Write to MH i2c: E2 08 00 3C 19 80 0D 03 02 00 00 00 00 D0 [12:34:25]Write i2c OK [12:34:25]MH_I2C_Read... [12:34:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:34:25]Read from MH i2c: E2 [12:34:25]MH_I2C_Read... [12:34:25]Read from MH i2c: E2 0B 00 [12:34:25]MH_I2C_Read... [12:34:25]Read from MH i2c: E2 0B 00 3C 19 00 7A 18 CD 0F DE AF CC 82 90 00 1A [12:34:25]RAPDU: 7A 18 CD 0F DE AF CC 82 90 00 [12:34:25]wFMCommunicate OK [12:34:25]SAM_PROTO_SignData done [12:34:25]FM_MakeSignedData done [12:34:25]CreateOFDProtocolMessage [12:34:25]wFMCommunicate request_size=4 [12:34:25]MH_SAM_APDU [12:34:25]CAPDU: 80 11 00 00 [12:34:25]Write to MH i2c: E2 08 00 3D 19 80 11 00 00 00 00 00 00 D0 [12:34:25]Write i2c OK [12:34:25]MH_I2C_Read... [12:34:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:25]Read from MH i2c: E2 [12:34:25]MH_I2C_Read... [12:34:25]Read from MH i2c: E2 17 00 [12:34:25]MH_I2C_Read... [12:34:25]Read from MH i2c: E2 17 00 3D 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 27 [12:34:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:34:25]wFMCommunicate OK [12:34:25]CreateOFDProtocolMessage done [12:34:25]OFDSenderStorePacket 227432 [12:34:25]StoreOFDPacket docnum=227432 [12:34:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 AD 2C 04 01 8B 71 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 D1 F8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 68 78 03 00 35 04 06 00 CB EC 17 F7 F6 5A 7A 18 CD 0F DE AF CC 82 [12:34:25]CheckFolder [12:34:25]dirname=/storage/ofd_packets [12:34:25]CheckFolder done [12:34:25]ProducePacketName [12:34:25]name=ofd_packets/00227432 [12:34:25]NVStorageSaveData ofd_packets/00227432 [12:34:25]File name is /storage/ofd_packets/00227432 [12:34:25]Write 298 bytes [12:34:25]NVStorageSaveData done [12:34:25]OFDSenderStorePacket done [12:34:25]KKMCreateOFDPacket done [12:34:25]NVStorageSaveData kkm_last_timestamp [12:34:25]File name is /storage/kkm_last_timestamp [12:34:25]Write 4 bytes [12:34:25]NVStorageSaveData done [12:34:25]ExternCall_PrintAddStr [12:34:25]wPrintStart [12:34:25]Write to MH i2c: 01 00 00 3E 19 57 [12:34:25]Write i2c OK [12:34:25]MH_I2C_Read... [12:34:25]Read from MH i2c: 01 [12:34:25]MH_I2C_Read... [12:34:25]Read from MH i2c: 01 07 00 [12:34:25]MH_I2C_Read... [12:34:25]Read from MH i2c: 01 07 00 3E 19 00 00 00 00 00 FF 0F 6C [12:34:25]RasterBufferAndPrint [12:34:25]line Счет N : (1)1962952 [12:34:25]line ИНН: 02508201610067 [12:34:25]line Контрольно-Кассовый Чек [12:34:25]line ПРОДАЖА [12:34:25]line ТРК (МРК, ГНК) : 61 [12:34:25]line Товар: 2710194210 [12:34:25]line ДТ-К-5 [12:34:25]line 6.570 * 76.20 [12:34:25]line = 500.63 [12:34:25]line НДС 12% НСП 1% [12:34:25]line > о реализуемом товаре [12:34:25]line ОКРУГЛЕНИЕ: -0.63 [12:34:25]line ИТОГО: 500.00 [12:34:25]line Внесено: 500.00 [12:34:25]line СДАЧА: 0.00 [12:34:25]line НСП 1% : 4.43 [12:34:25]line НДС 12% : 53.16 [12:34:25]line Наличными: 500.00 [12:34:25]line Безнал.: 0.00 [12:34:25]line Место: АЗС № 133 "Партнер Нефть" [12:34:25]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:34:25]line СНО: Общий режим [12:34:25]line Чек 280 20.10.2024 12:34 [12:34:25]line Смена: 533 ФФД: 1.0 [12:34:25]line ЗНМ: 0300000091 [12:34:25]line РНМ: 0000000000091685 [12:34:25]line Версия ККМ: 001 [12:34:25]line ФМ: 0000000000871839 [12:34:25]line ФД: 227432 [12:34:25]line ФПД: 224214874846810 [12:34:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T123425&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227432&fm=224214874846810&tin=02508201610067®Number=0000000000091685&sum=50000 [12:34:26]OFD Sender: Processing packet 227432 [packets to send 38, broken 37] [12:34:26]ProducePacketName [12:34:26]name=ofd_packets/00227432 [12:34:26]OFD Sender: To server: pG, [12:34:26]CommunicateWithHost lk.salyk.kg:30040 [12:34:26]ConnectInit lk.salyk.kg [12:34:26]written 0, free lines is 4095 [12:34:26]Connected sock=10 [12:34:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 AD 2C 04 01 8B 71 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 D1 F8 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 68 78 03 00 35 04 06 00 CB EC 17 F7 F6 5A 7A 18 CD 0F DE AF CC 82 [12:34: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 33 39 4F 00 00 00 A5 50 47 00 F0 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 33 39 10 04 04 00 68 78 03 00 F4 03 04 00 D0 A3 14 67 B6 04 01 00 00 AA 65 19 22 89 16 05 E1 [12:34:26]CommunicateWithHost err = 0 [12:34:26]CheckOFDResponse [12:34:26]1017 (14) - 77093643461234 [12:34:26]1041 (16) - 0000000000871839 [12:34:26]1040 (4) - 227432 [12:34:26]1012 (4) - 20.10.2024 06:31 [12:34:26]1206 (1) - 0 [12:34:26]OFD Sender: Remove packet 227432 [12:34:26]ProducePacketName [12:34:26]name=ofd_packets/00227432 [12:34:26]NVStorageDeleteData [12:34:26]Write to MH i2c: 01 00 00 68 19 81 [12:34:26]Write i2c OK [12:34:26]MH_I2C_Read... [12:34:26]Read from MH i2c: 01 [12:34:26]MH_I2C_Read... [12:34:26]Read from MH i2c: 01 07 00 [12:34:26]MH_I2C_Read... [12:34:26]Read from MH i2c: 01 07 00 68 19 00 00 00 00 00 0A 0D 9F [12:34:26]RasterBufferAndPrint [12:34:26]line [12:34:26]line [12:34:26]line [12:34:26]line [12:34:26]line [12:34:26]written 0, free lines is 3345 [12:34:26]process_action close_receipt done [12:34:26]requested_data is exist [12:34:26]produce_requested_data [12:34:26]requested_item fm.sn is exist - process it [12:34:26]wFMCommunicate request_size=4 [12:34:26]MH_SAM_APDU [12:34:26]CAPDU: 80 11 00 00 [12:34:26]Write to MH i2c: E2 08 00 6F 19 80 11 00 00 00 00 00 00 02 [12:34:26]Write i2c OK [12:34:26]MH_I2C_Read... [12:34:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:26]Read from MH i2c: E2 [12:34:26]MH_I2C_Read... [12:34:26]Read from MH i2c: E2 17 00 [12:34:26]MH_I2C_Read... [12:34:26]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 33 39 90 00 59 [12:34:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:34:26]wFMCommunicate OK [12:34:26]requested_item fd.num is exist - process it [12:34:26]SAM_PROTO_GetFieldsCounters [12:34:26]wFMCommunicate request_size=4 [12:34:26]MH_SAM_APDU [12:34:26]CAPDU: 80 13 00 00 [12:34:26]Write to MH i2c: E2 08 00 70 19 80 13 00 00 00 00 00 00 05 [12:34:26]Write i2c OK [12:34:26]MH_I2C_Read... [12:34:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:34:26]Read from MH i2c: E2 [12:34:26]MH_I2C_Read... [12:34:26]Read from MH i2c: E2 62 00 [12:34:26]MH_I2C_Read... [12:34:26]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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 68 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 73 [12:34:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 68 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:34:26]wFMCommunicate OK [12:34:26]SAM_PROTO_GetFieldsCounters done [12:34:26]requested_item shift.num is exist - process it [12:34:26]requested_item shift.opened is exist - process it [12:34:26]req_shift_opened [12:34:26]FM_GetShiftState [12:34:26]SAM_PROTO_GetShiftState [12:34:26]wFMCommunicate request_size=4 [12:34:26]MH_SAM_APDU [12:34:26]CAPDU: 80 13 01 00 [12:34:26]Write to MH i2c: E2 08 00 71 19 80 13 01 00 00 00 00 00 07 [12:34:26]Write i2c OK [12:34:26]MH_I2C_Read... [12:34:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:26]Read from MH i2c: E2 [12:34:26]MH_I2C_Read... [12:34:26]Read from MH i2c: E2 0E 00 [12:34:26]MH_I2C_Read... [12:34:26]Read from MH i2c: E2 0E 00 71 19 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 21 [12:34:26]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:34:26]wFMCommunicate OK [12:34:26]SAM_PROTO_GetShiftState done [12:34:26]FM_GetShiftState done [12:34:26]req_shift_opened done [12:34:26]requested_item shift.open_date is exist - process it [12:34:26]req_shift_open_date [12:34:26]req_shift_open_date done [12:34:26]produce_requested_data done [12:34:26]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227432,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [12:34:26]process_action_free close_receipt [12:34:26]json_value_free [12:34:26]json_value_free done [12:34:26]process_json_proto returns [12:34:26]Send response to host [12:34:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227432,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [12:34:26]free response buf [12:34:26]execute_script done [12:34:26]execute_script returns [12:34:26]free content buf [12:34:26]Sock 9.Close socket [12:34:26]Sock 9.Thread stoped [12:34:27]OFD Sender: No OFD packet to send [12:34:32]OFD Sender: No OFD packet to send [12:34:37]OFD Sender: No OFD packet to send [12:34:42]OFD Sender: No OFD packet to send [12:34:47]OFD Sender: No OFD packet to send [12:34:52]OFD Sender: No OFD packet to send [12:34:57]OFD Sender: No OFD packet to send [12:35:02]OFD Sender: No OFD packet to send [12:35:07]OFD Sender: No OFD packet to send [12:35:12]OFD Sender: No OFD packet to send [12:35:17]OFD Sender: No OFD packet to send [12:35:22]OFD Sender: No OFD packet to send [12:35:27]OFD Sender: No OFD packet to send [12:35:32]OFD Sender: No OFD packet to send [12:35:37]OFD Sender: No OFD packet to send [12:35:42]OFD Sender: No OFD packet to send [12:35:47]OFD Sender: No OFD packet to send [12:35:52]OFD Sender: No OFD packet to send [12:35:57]OFD Sender: No OFD packet to send [12:36:02]OFD Sender: No OFD packet to send [12:36:07]OFD Sender: No OFD packet to send [12:36:12]OFD Sender: No OFD packet to send [12:36:17]OFD Sender: No OFD packet to send [12:36:22]OFD Sender: No OFD packet to send [12:36:27]OFD Sender: No OFD packet to send [12:36:32]OFD Sender: No OFD packet to send [12:36:37]OFD Sender: No OFD packet to send [12:36:42]OFD Sender: No OFD packet to send [12:36:47]OFD Sender: No OFD packet to send [12:36:52]OFD Sender: No OFD packet to send [12:36:57]OFD Sender: No OFD packet to send [12:37:02]OFD Sender: No OFD packet to send [12:37:07]OFD Sender: No OFD packet to send [12:37:12]OFD Sender: No OFD packet to send [12:37:16]accept exits with 8 [12:37:16]New connection [12:37:16]New thread 3066686820 created [12:37:16]Thread 3066543460 joined [12:37:16]Waiting for new connection... [12:37:16] Sock 8.Parse request [12:37:16]Sock 8.Check first char [12:37:16]Sock 8.First char is OK [12:37:16]request: POST /json_proto HTTP/1.0 [12:37:16]Method: POST [12:37:16]URL: /json_proto [12:37:16]Method is POST - this is cgi request [12:37:16]url: /json_proto [12:37:16]query_string will be loaded in cgi processing [12:37:16]execute_cgi json_proto POST (null) [12:37:16]execute_cgi path=json_proto method=POST [12:37:16]POST find Content-Length [12:37:16]Host: 172.17.44.195:8080 [12:37:16]Content-Length: 664 [12:37:16]Content-Type: application/json [12:37:16] [12:37:16]POST finish read [12:37:16]Found Content-Length = 664 [12:37:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962953", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 21.930, "sum" : 1500.01, "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" ] } } [12:37:16]execute_script... [12:37: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)1962953", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 21.930, "sum" : 1500.01, "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" ] } } [12:37:16]POST & json_proto [12:37:16]process_json_proto [12:37:16]json parsed OK: [12:37:16]protocol is kg_v1.0 [12:37:16]action value=close_receipt [12:37:16]process_action close_receipt [12:37:16]cmd_close_receipt [12:37:16]MH_GetDate [12:37:16]Write to MH i2c: F0 00 00 72 19 7A [12:37:16]Write i2c OK [12:37:16]MH_I2C_Read... [12:37:16]Read from MH i2c: F0 [12:37:16]MH_I2C_Read... [12:37:16]Read from MH i2c: F0 09 00 [12:37:16]MH_I2C_Read... [12:37:16]Read from MH i2c: F0 09 00 72 19 00 7D F9 14 67 82 C9 CF 66 F4 [12:37:16]GetLastDocTimeStamp 1729427665 [12:37:16]current date 1729427837 [12:37:16]FM_GetShiftState [12:37:16]SAM_PROTO_GetShiftState [12:37:16]wFMCommunicate request_size=4 [12:37:16]MH_SAM_APDU [12:37:16]CAPDU: 80 13 01 00 [12:37:16]Write to MH i2c: E2 08 00 73 19 80 13 01 00 00 00 00 00 09 [12:37:16]Write i2c OK [12:37:16]MH_I2C_Read... [12:37:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:16]Read from MH i2c: E2 [12:37:16]MH_I2C_Read... [12:37:16]Read from MH i2c: E2 0E 00 [12:37:16]MH_I2C_Read... [12:37:16]Read from MH i2c: E2 0E 00 73 19 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 23 [12:37:16]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:37:16]wFMCommunicate OK [12:37:16]SAM_PROTO_GetShiftState done [12:37:16]FM_GetShiftState done [12:37:16]opened in 1729383750 [12:37:16]opened+sec_in_day 1729470150 [12:37:16]quantity*price = 150001 [12:37:16]sum+1 = 150002 [12:37:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.27 НДС 12% : 159.29 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 281 20.10.2024 12:37 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227433 ФПД: 256961582919534 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T123717&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227433&fm=256961582919534&tin=02508201610067®Number=0000000000091685&sum=150000 [12:37:17]StoreToDocumentArchive [12:37:17]shift 533 fd 227433 [12:37:17]save to /storage/0533/doc_00227433 [12:37:17]save last doc name /storage/0533/doc_00227433 to /storage/kkm_last_doc_name [12:37:17]save OK [12:37:17]Clear old archive folders... [12:37:17]ProcessDocumentItem done err = 0, tmpTLVsize=244 [12:37:17]tlvbuf is B6E67440 [12:37:17]SAM_PROTO_ClearQueue [12:37:17]wFMCommunicate request_size=4 [12:37:17]MH_SAM_APDU [12:37:17]CAPDU: 80 09 00 00 [12:37:17]Write to MH i2c: E2 08 00 80 19 80 09 00 00 00 00 00 00 0B [12:37:17]Write i2c OK [12:37:17]MH_I2C_Read... [12:37:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:37:17]Read from MH i2c: E2 [12:37:17]MH_I2C_Read... [12:37:17]Read from MH i2c: E2 03 00 [12:37:17]MH_I2C_Read... [12:37:17]Read from MH i2c: E2 03 00 80 19 00 90 00 0D [12:37:17]RAPDU: 90 00 [12:37:17]wFMCommunicate OK [12:37:17]SAM_PROTO_ClearQueue done [12:37:17]KKMCreateOFDPacket [12:37:17]OFDProtocolAddRootSTLVToBuf [12:37:17]FM_MakeSignedData [12:37:17]FM_MakeSignedData [12:37:17]SAM_PROTO_SignData [12:37:17]wFMCommunicate request_size=4 [12:37:17]MH_SAM_APDU [12:37:17]CAPDU: 80 0D 01 02 [12:37:17]Write to MH i2c: E2 08 00 81 19 80 0D 01 02 00 00 00 00 13 [12:37:17]Write i2c OK [12:37:17]MH_I2C_Read... [12:37:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:37:17]Read from MH i2c: E2 [12:37:17]MH_I2C_Read... [12:37:17]Read from MH i2c: E2 03 00 [12:37:17]MH_I2C_Read... [12:37:17]Read from MH i2c: E2 03 00 81 19 00 90 00 0E [12:37:17]RAPDU: 90 00 [12:37:17]wFMCommunicate OK [12:37:17]wFMCommunicate request_size=253 [12:37:17]MH_SAM_APDU [12:37:17]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 AA 55 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 F1 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 7D F9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 69 78 03 00 35 04 06 00 E9 B4 87 DE EF 6E [12:37:17]Write to MH i2c: E2 00 01 82 19 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 AA 55 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 F1 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 7D F9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 69 78 03 00 35 04 06 00 E9 B4 87 DE EF 6E 00 00 66 [12:37:17]Write i2c OK [12:37:17]MH_I2C_Read... [12:37:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:18]Read from MH i2c: E2 [12:37:18]MH_I2C_Read... [12:37:18]Read from MH i2c: E2 03 00 [12:37:18]MH_I2C_Read... [12:37:18]Read from MH i2c: E2 03 00 82 19 00 90 00 0F [12:37:18]RAPDU: 90 00 [12:37:18]wFMCommunicate OK [12:37:18]wFMCommunicate request_size=4 [12:37:18]MH_SAM_APDU [12:37:18]CAPDU: 80 0D 03 02 [12:37:18]Write to MH i2c: E2 08 00 83 19 80 0D 03 02 00 00 00 00 17 [12:37:18]Write i2c OK [12:37:18]MH_I2C_Read... [12:37:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:37:18]Read from MH i2c: E2 [12:37:18]MH_I2C_Read... [12:37:18]Read from MH i2c: E2 0B 00 [12:37:18]MH_I2C_Read... [12:37:18]Read from MH i2c: E2 0B 00 83 19 00 6E 2F BA 74 45 8E 35 98 90 00 83 [12:37:18]RAPDU: 6E 2F BA 74 45 8E 35 98 90 00 [12:37:18]wFMCommunicate OK [12:37:18]SAM_PROTO_SignData done [12:37:18]FM_MakeSignedData done [12:37:18]CreateOFDProtocolMessage [12:37:18]wFMCommunicate request_size=4 [12:37:18]MH_SAM_APDU [12:37:18]CAPDU: 80 11 00 00 [12:37:18]Write to MH i2c: E2 08 00 84 19 80 11 00 00 00 00 00 00 17 [12:37:18]Write i2c OK [12:37:18]MH_I2C_Read... [12:37:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:18]Read from MH i2c: E2 [12:37:18]MH_I2C_Read... [12:37:18]Read from MH i2c: E2 17 00 [12:37:18]MH_I2C_Read... [12:37:18]Read from MH i2c: E2 17 00 84 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 6E [12:37:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:37:18]wFMCommunicate OK [12:37:18]CreateOFDProtocolMessage done [12:37:18]OFDSenderStorePacket 227433 [12:37:18]StoreOFDPacket docnum=227433 [12:37:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 03 E3 00 01 0E 9D 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 AA 55 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 F1 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 7D F9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 69 78 03 00 35 04 06 00 E9 B4 87 DE EF 6E 6E 2F BA 74 45 8E 35 98 [12:37:18]CheckFolder [12:37:18]dirname=/storage/ofd_packets [12:37:18]CheckFolder done [12:37:18]ProducePacketName [12:37:18]name=ofd_packets/00227433 [12:37:18]NVStorageSaveData ofd_packets/00227433 [12:37:18]File name is /storage/ofd_packets/00227433 [12:37:18]Write 294 bytes [12:37:18]NVStorageSaveData done [12:37:18]OFDSenderStorePacket done [12:37:18]KKMCreateOFDPacket done [12:37:18]NVStorageSaveData kkm_last_timestamp [12:37:18]File name is /storage/kkm_last_timestamp [12:37:18]Write 4 bytes [12:37:18]NVStorageSaveData done [12:37:18]ExternCall_PrintAddStr [12:37:18]wPrintStart [12:37:18]Write to MH i2c: 01 00 00 85 19 9E [12:37:18]Write i2c OK [12:37:18]MH_I2C_Read... [12:37:18]Read from MH i2c: 01 [12:37:18]MH_I2C_Read... [12:37:18]Read from MH i2c: 01 07 00 [12:37:18]MH_I2C_Read... [12:37:18]Read from MH i2c: 01 07 00 85 19 00 00 00 00 00 FF 0F B3 [12:37:18]RasterBufferAndPrint [12:37:18]line Счет N : (1)1962953 [12:37:18]line ИНН: 02508201610067 [12:37:18]line Контрольно-Кассовый Чек [12:37:18]line ПРОДАЖА [12:37:18]line ТРК (МРК, ГНК) : 42 [12:37:18]line Товар: 2710124130 [12:37:18]line SU-92 [12:37:18]line 21.930 * 68.40 [12:37:18]line = 1500.01 [12:37:18]line НДС 12% НСП 1% [12:37:18]line > о реализуемом товаре [12:37:18]line ОКРУГЛЕНИЕ: -0.01 [12:37:18]line ИТОГО: 1500.00 [12:37:18]line Внесено: 1500.00 [12:37:18]line СДАЧА: 0.00 [12:37:18]line НСП 1% : 13.27 [12:37:18]line НДС 12% : 159.29 [12:37:18]line Наличными: 1500.00 [12:37:18]line Безнал.: 0.00 [12:37:18]line Место: АЗС № 133 "Партнер Нефть" [12:37:18]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:37:18]line СНО: Общий режим [12:37:18]line Чек 281 20.10.2024 12:37 [12:37:18]line Смена: 533 ФФД: 1.0 [12:37:18]line ЗНМ: 0300000091 [12:37:18]line РНМ: 0000000000091685 [12:37:18]line Версия ККМ: 001 [12:37:18]line ФМ: 0000000000871839 [12:37:18]line ФД: 227433 [12:37:18]line ФПД: 256961582919534 [12:37:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T123717&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227433&fm=256961582919534&tin=02508201610067®Number=0000000000091685&sum=150000 [12:37:18]OFD Sender: Processing packet 227433 [packets to send 38, broken 37] [12:37:18]ProducePacketName [12:37:18]name=ofd_packets/00227433 [12:37:18]OFD Sender: To server: pG, [12:37:18]CommunicateWithHost lk.salyk.kg:30040 [12:37:18]ConnectInit lk.salyk.kg [12:37:18]written 0, free lines is 4095 [12:37:18]Connected sock=9 [12:37: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 33 39 08 01 00 00 03 E3 00 01 0E 9D 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 AA 55 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 F1 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 7D F9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 69 78 03 00 35 04 06 00 E9 B4 87 DE EF 6E 6E 2F BA 74 45 8E 35 98 [12:37: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 33 39 4F 00 00 00 56 E8 47 00 2F 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 69 78 03 00 F4 03 04 00 7C A4 14 67 B6 04 01 00 00 9B 9A 17 9C C4 9C 3D 78 [12:37:18]CommunicateWithHost err = 0 [12:37:18]CheckOFDResponse [12:37:18]1017 (14) - 77093643461234 [12:37:18]1041 (16) - 0000000000871839 [12:37:18]1040 (4) - 227433 [12:37:18]1012 (4) - 20.10.2024 06:34 [12:37:18]1206 (1) - 0 [12:37:18]OFD Sender: Remove packet 227433 [12:37:18]ProducePacketName [12:37:18]name=ofd_packets/00227433 [12:37:18]NVStorageDeleteData [12:37:19]Write to MH i2c: 01 00 00 AF 19 C8 [12:37:19]Write i2c OK [12:37:19]MH_I2C_Read... [12:37:19]Read from MH i2c: 01 [12:37:19]MH_I2C_Read... [12:37:19]Read from MH i2c: 01 07 00 [12:37:19]MH_I2C_Read... [12:37:19]Read from MH i2c: 01 07 00 AF 19 00 00 00 00 00 20 0D FC [12:37:19]RasterBufferAndPrint [12:37:19]line [12:37:19]line [12:37:19]line [12:37:19]line [12:37:19]line [12:37:19]written 0, free lines is 3366 [12:37:19]process_action close_receipt done [12:37:19]requested_data is exist [12:37:19]produce_requested_data [12:37:19]requested_item fm.sn is exist - process it [12:37:19]wFMCommunicate request_size=4 [12:37:19]MH_SAM_APDU [12:37:19]CAPDU: 80 11 00 00 [12:37:19]Write to MH i2c: E2 08 00 B6 19 80 11 00 00 00 00 00 00 49 [12:37:19]Write i2c OK [12:37:19]MH_I2C_Read... [12:37:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:19]Read from MH i2c: E2 [12:37:19]MH_I2C_Read... [12:37:19]Read from MH i2c: E2 17 00 [12:37:19]MH_I2C_Read... [12:37:19]Read from MH i2c: E2 17 00 B6 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A0 [12:37:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:37:19]wFMCommunicate OK [12:37:19]requested_item fd.num is exist - process it [12:37:19]SAM_PROTO_GetFieldsCounters [12:37:19]wFMCommunicate request_size=4 [12:37:19]MH_SAM_APDU [12:37:19]CAPDU: 80 13 00 00 [12:37:19]Write to MH i2c: E2 08 00 B7 19 80 13 00 00 00 00 00 00 4C [12:37:19]Write i2c OK [12:37:19]MH_I2C_Read... [12:37:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:37:19]Read from MH i2c: E2 [12:37:19]MH_I2C_Read... [12:37:19]Read from MH i2c: E2 62 00 [12:37:19]MH_I2C_Read... [12:37:19]Read from MH i2c: E2 62 00 B7 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 69 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 BE [12:37:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 69 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:37:19]wFMCommunicate OK [12:37:19]SAM_PROTO_GetFieldsCounters done [12:37:19]requested_item shift.num is exist - process it [12:37:19]requested_item shift.opened is exist - process it [12:37:19]req_shift_opened [12:37:19]FM_GetShiftState [12:37:19]SAM_PROTO_GetShiftState [12:37:19]wFMCommunicate request_size=4 [12:37:19]MH_SAM_APDU [12:37:19]CAPDU: 80 13 01 00 [12:37:19]Write to MH i2c: E2 08 00 B8 19 80 13 01 00 00 00 00 00 4E [12:37:19]Write i2c OK [12:37:19]MH_I2C_Read... [12:37:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:19]Read from MH i2c: E2 [12:37:19]MH_I2C_Read... [12:37:19]Read from MH i2c: E2 0E 00 [12:37:19]MH_I2C_Read... [12:37:19]Read from MH i2c: E2 0E 00 B8 19 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 68 [12:37:19]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:37:19]wFMCommunicate OK [12:37:19]SAM_PROTO_GetShiftState done [12:37:19]FM_GetShiftState done [12:37:19]req_shift_opened done [12:37:19]requested_item shift.open_date is exist - process it [12:37:19]req_shift_open_date [12:37:19]req_shift_open_date done [12:37:19]produce_requested_data done [12:37:19]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227433,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [12:37:19]process_action_free close_receipt [12:37:19]json_value_free [12:37:19]json_value_free done [12:37:19]process_json_proto returns [12:37:19]Send response to host [12:37:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227433,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [12:37:19]free response buf [12:37:19]execute_script done [12:37:19]execute_script returns [12:37:19]free content buf [12:37:19]Sock 8.Close socket [12:37:19]Sock 8.Thread stoped [12:37:19]OFD Sender: No OFD packet to send [12:37:24]OFD Sender: No OFD packet to send [12:37:29]OFD Sender: No OFD packet to send [12:37:34]OFD Sender: No OFD packet to send [12:37:39]OFD Sender: No OFD packet to send [12:37:44]OFD Sender: No OFD packet to send [12:37:49]OFD Sender: No OFD packet to send [12:37:54]OFD Sender: No OFD packet to send [12:37:59]OFD Sender: No OFD packet to send [12:38:04]OFD Sender: No OFD packet to send [12:38:09]OFD Sender: No OFD packet to send [12:38:14]OFD Sender: No OFD packet to send [12:38:19]OFD Sender: No OFD packet to send [12:38:24]OFD Sender: No OFD packet to send [12:38:29]OFD Sender: No OFD packet to send [12:38:34]OFD Sender: No OFD packet to send [12:38:39]OFD Sender: No OFD packet to send [12:38:44]OFD Sender: No OFD packet to send [12:38:49]OFD Sender: No OFD packet to send [12:38:54]OFD Sender: No OFD packet to send [12:38:59]OFD Sender: No OFD packet to send [12:39:04]OFD Sender: No OFD packet to send [12:39:09]OFD Sender: No OFD packet to send [12:39:14]OFD Sender: No OFD packet to send [12:39:19]accept exits with 10 [12:39:19]New connection [12:39:19]New thread 3066543460 created [12:39:19]Thread 3066686820 joined [12:39:19]Waiting for new connection... [12:39:19] Sock 10.Parse request [12:39:19]Sock 10.Check first char [12:39:19]Sock 10.First char is OK [12:39:19]request: POST /json_proto HTTP/1.0 [12:39:19]Method: POST [12:39:19]URL: /json_proto [12:39:19]Method is POST - this is cgi request [12:39:19]url: /json_proto [12:39:19]query_string will be loaded in cgi processing [12:39:19]execute_cgi json_proto POST (null) [12:39:19]execute_cgi path=json_proto method=POST [12:39:19]POST find Content-Length [12:39:19]Host: 172.17.44.195:8080 [12:39:19]Content-Length: 678 [12:39:19]Content-Type: application/json [12:39:19] [12:39:19]POST finish read [12:39:19]Found Content-Length = 678 [12:39:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962955", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:39:19]execute_script... [12:39: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)1962955", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:39:19]POST & json_proto [12:39:19]process_json_proto [12:39:19]json parsed OK: [12:39:19]protocol is kg_v1.0 [12:39:19]action value=close_receipt [12:39:19]process_action close_receipt [12:39:19]cmd_close_receipt [12:39:19]MH_GetDate [12:39:19]Write to MH i2c: F0 00 00 B9 19 C1 [12:39:19]Write i2c OK [12:39:19]MH_I2C_Read... [12:39:19]Read from MH i2c: F0 [12:39:19]MH_I2C_Read... [12:39:19]Read from MH i2c: F0 09 00 [12:39:19]MH_I2C_Read... [12:39:19]Read from MH i2c: F0 09 00 B9 19 00 F8 F9 14 67 82 C9 CF 66 B6 [12:39:19]GetLastDocTimeStamp 1729427837 [12:39:19]current date 1729427960 [12:39:19]FM_GetShiftState [12:39:19]SAM_PROTO_GetShiftState [12:39:19]wFMCommunicate request_size=4 [12:39:19]MH_SAM_APDU [12:39:19]CAPDU: 80 13 01 00 [12:39:19]Write to MH i2c: E2 08 00 BA 19 80 13 01 00 00 00 00 00 50 [12:39:19]Write i2c OK [12:39:19]MH_I2C_Read... [12:39:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:19]Read from MH i2c: E2 [12:39:19]MH_I2C_Read... [12:39:19]Read from MH i2c: E2 0E 00 [12:39:19]MH_I2C_Read... [12:39:19]Read from MH i2c: E2 0E 00 BA 19 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 6A [12:39:19]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:39:19]wFMCommunicate OK [12:39:19]SAM_PROTO_GetShiftState done [12:39:19]FM_GetShiftState done [12:39:19]opened in 1729383750 [12:39:19]opened+sec_in_day 1729470150 [12:39:19]quantity*price = 50041 [12:39:19]sum+1 = 50042 [12:39:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 282 20.10.2024 12:39 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227434 ФПД: 22805422374387 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T123920&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227434&fm=22805422374387&tin=02508201610067®Number=0000000000091685&sum=50000 [12:39:20]StoreToDocumentArchive [12:39:20]shift 533 fd 227434 [12:39:20]save to /storage/0533/doc_00227434 [12:39:20]save last doc name /storage/0533/doc_00227434 to /storage/kkm_last_doc_name [12:39:20]save OK [12:39:20]Clear old archive folders... [12:39:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:39:20]tlvbuf is 01901770 [12:39:20]SAM_PROTO_ClearQueue [12:39:20]wFMCommunicate request_size=4 [12:39:20]MH_SAM_APDU [12:39:20]CAPDU: 80 09 00 00 [12:39:20]Write to MH i2c: E2 08 00 C7 19 80 09 00 00 00 00 00 00 52 [12:39:20]Write i2c OK [12:39:20]MH_I2C_Read... [12:39:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:39:20]Read from MH i2c: E2 [12:39:20]MH_I2C_Read... [12:39:20]Read from MH i2c: E2 03 00 [12:39:20]MH_I2C_Read... [12:39:20]Read from MH i2c: E2 03 00 C7 19 00 90 00 54 [12:39:20]RAPDU: 90 00 [12:39:20]wFMCommunicate OK [12:39:20]SAM_PROTO_ClearQueue done [12:39:20]KKMCreateOFDPacket [12:39:20]OFDProtocolAddRootSTLVToBuf [12:39:20]FM_MakeSignedData [12:39:20]FM_MakeSignedData [12:39:20]SAM_PROTO_SignData [12:39:20]wFMCommunicate request_size=4 [12:39:20]MH_SAM_APDU [12:39:20]CAPDU: 80 0D 01 02 [12:39:20]Write to MH i2c: E2 08 00 C8 19 80 0D 01 02 00 00 00 00 5A [12:39:20]Write i2c OK [12:39:20]MH_I2C_Read... [12:39:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:39:20]Read from MH i2c: E2 [12:39:20]MH_I2C_Read... [12:39:20]Read from MH i2c: E2 03 00 [12:39:20]MH_I2C_Read... [12:39:20]Read from MH i2c: E2 03 00 C8 19 00 90 00 55 [12:39:20]RAPDU: 90 00 [12:39:20]wFMCommunicate OK [12:39:20]wFMCommunicate request_size=255 [12:39:20]MH_SAM_APDU [12:39:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 F8 F9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6A 78 03 00 35 04 06 00 14 [12:39:20]Write to MH i2c: E2 02 01 C9 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 F8 F9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6A 78 03 00 35 04 06 00 14 00 00 88 [12:39:20]Write i2c OK [12:39:20]MH_I2C_Read... [12:39:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:20]Read from MH i2c: E2 [12:39:20]MH_I2C_Read... [12:39:20]Read from MH i2c: E2 03 00 [12:39:20]MH_I2C_Read... [12:39:20]Read from MH i2c: E2 03 00 C9 19 00 90 00 56 [12:39:20]RAPDU: 90 00 [12:39:20]wFMCommunicate OK [12:39:20]wFMCommunicate request_size=10 [12:39:20]MH_SAM_APDU [12:39:20]CAPDU: 80 0D 02 02 05 BD CD 19 7D F3 [12:39:20]Write to MH i2c: E2 0D 00 CA 19 80 0D 02 02 05 00 BD CD 19 7D F3 00 00 7A [12:39:20]Write i2c OK [12:39:20]MH_I2C_Read... [12:39:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:20]Read from MH i2c: E2 [12:39:20]MH_I2C_Read... [12:39:20]Read from MH i2c: E2 03 00 [12:39:20]MH_I2C_Read... [12:39:20]Read from MH i2c: E2 03 00 CA 19 00 90 00 57 [12:39:20]RAPDU: 90 00 [12:39:20]wFMCommunicate OK [12:39:20]wFMCommunicate request_size=4 [12:39:20]MH_SAM_APDU [12:39:20]CAPDU: 80 0D 03 02 [12:39:20]Write to MH i2c: E2 08 00 CB 19 80 0D 03 02 00 00 00 00 5F [12:39:20]Write i2c OK [12:39:20]MH_I2C_Read... [12:39:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:39:20]Read from MH i2c: E2 [12:39:20]MH_I2C_Read... [12:39:20]Read from MH i2c: E2 0B 00 [12:39:20]MH_I2C_Read... [12:39:20]Read from MH i2c: E2 0B 00 CB 19 00 F5 5E 6C B0 5E A8 EB 8F 90 00 4F [12:39:20]RAPDU: F5 5E 6C B0 5E A8 EB 8F 90 00 [12:39:20]wFMCommunicate OK [12:39:20]SAM_PROTO_SignData done [12:39:20]FM_MakeSignedData done [12:39:20]CreateOFDProtocolMessage [12:39:20]wFMCommunicate request_size=4 [12:39:20]MH_SAM_APDU [12:39:20]CAPDU: 80 11 00 00 [12:39:20]Write to MH i2c: E2 08 00 CC 19 80 11 00 00 00 00 00 00 5F [12:39:20]Write i2c OK [12:39:20]MH_I2C_Read... [12:39:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:39:20]Read from MH i2c: E2 [12:39:20]MH_I2C_Read... [12:39:20]Read from MH i2c: E2 17 00 [12:39:20]MH_I2C_Read... [12:39:20]Read from MH i2c: E2 17 00 CC 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B6 [12:39:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:39:20]wFMCommunicate OK [12:39:20]CreateOFDProtocolMessage done [12:39:20]OFDSenderStorePacket 227434 [12:39:20]StoreOFDPacket docnum=227434 [12:39:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 A3 42 07 01 4D 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 F8 F9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6A 78 03 00 35 04 06 00 14 BD CD 19 7D F3 F5 5E 6C B0 5E A8 EB 8F [12:39:20]CheckFolder [12:39:20]dirname=/storage/ofd_packets [12:39:20]CheckFolder done [12:39:20]ProducePacketName [12:39:20]name=ofd_packets/00227434 [12:39:20]NVStorageSaveData ofd_packets/00227434 [12:39:20]File name is /storage/ofd_packets/00227434 [12:39:20]Write 301 bytes [12:39:20]NVStorageSaveData done [12:39:20]OFDSenderStorePacket done [12:39:20]KKMCreateOFDPacket done [12:39:20]NVStorageSaveData kkm_last_timestamp [12:39:20]File name is /storage/kkm_last_timestamp [12:39:20]Write 4 bytes [12:39:20]NVStorageSaveData done [12:39:20]ExternCall_PrintAddStr [12:39:20]wPrintStart [12:39:20]Write to MH i2c: 01 00 00 CD 19 E6 [12:39:20]Write i2c OK [12:39:20]MH_I2C_Read... [12:39:20]Read from MH i2c: 01 [12:39:20]MH_I2C_Read... [12:39:20]Read from MH i2c: 01 07 00 [12:39:20]MH_I2C_Read... [12:39:20]Read from MH i2c: 01 07 00 CD 19 00 00 00 00 00 FF 0F FB [12:39:20]RasterBufferAndPrint [12:39:20]line Счет N : (1)1962955 [12:39:20]line ИНН: 02508201610067 [12:39:20]line Контрольно-Кассовый Чек [12:39:20]line ПРОДАЖА [12:39:20]line ТРК (МРК, ГНК) : 53 [12:39:20]line Товар: 2710124130 [12:39:20]line Аи-92-К-5 [12:39:20]line 7.480 * 66.90 [12:39:20]line = 500.41 [12:39:20]line НДС 12% НСП 1% [12:39:20]line > о реализуемом товаре [12:39:20]line ОКРУГЛЕНИЕ: -0.41 [12:39:20]line ИТОГО: 500.00 [12:39:20]line Внесено: 500.00 [12:39:20]line СДАЧА: 0.00 [12:39:20]line НСП 1% : 4.43 [12:39:20]line НДС 12% : 53.14 [12:39:20]line Наличными: 500.00 [12:39:20]line Безнал.: 0.00 [12:39:20]line Место: АЗС № 133 "Партнер Нефть" [12:39:20]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:39:20]line СНО: Общий режим [12:39:20]line Чек 282 20.10.2024 12:39 [12:39:20]line Смена: 533 ФФД: 1.0 [12:39:20]line ЗНМ: 0300000091 [12:39:20]line РНМ: 0000000000091685 [12:39:20]line Версия ККМ: 001 [12:39:20]line ФМ: 0000000000871839 [12:39:20]line ФД: 227434 [12:39:20]line ФПД: 22805422374387 [12:39:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T123920&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227434&fm=22805422374387&tin=02508201610067®Number=0000000000091685&sum=50000 [12:39:21]written 0, free lines is 4095 [12:39:21]OFD Sender: Processing packet 227434 [packets to send 38, broken 37] [12:39:21]ProducePacketName [12:39:21]name=ofd_packets/00227434 [12:39:21]OFD Sender: To server: pG, [12:39:21]CommunicateWithHost lk.salyk.kg:30040 [12:39:21]ConnectInit lk.salyk.kg [12:39:21]Connected sock=9 [12:39: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 33 39 0F 01 00 00 A3 42 07 01 4D 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 F8 F9 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6A 78 03 00 35 04 06 00 14 BD CD 19 7D F3 F5 5E 6C B0 5E A8 EB 8F [12:39: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 33 39 4F 00 00 00 DB C6 47 00 46 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 33 39 10 04 04 00 6A 78 03 00 F4 03 04 00 F7 A4 14 67 B6 04 01 00 00 E1 5E 71 CA 50 62 EC 9B [12:39:21]CommunicateWithHost err = 0 [12:39:21]CheckOFDResponse [12:39:21]1017 (14) - 77093643461234 [12:39:21]1041 (16) - 0000000000871839 [12:39:21]1040 (4) - 227434 [12:39:21]1012 (4) - 20.10.2024 06:36 [12:39:21]1206 (1) - 0 [12:39:21]OFD Sender: Remove packet 227434 [12:39:21]ProducePacketName [12:39:21]name=ofd_packets/00227434 [12:39:21]NVStorageDeleteData [12:39:21]Write to MH i2c: 01 00 00 F7 19 10 [12:39:21]Write i2c OK [12:39:21]MH_I2C_Read... [12:39:21]Read from MH i2c: 01 [12:39:21]MH_I2C_Read... [12:39:21]Read from MH i2c: 01 07 00 [12:39:21]MH_I2C_Read... [12:39:21]Read from MH i2c: 01 07 00 F7 19 00 00 00 00 00 05 0D 29 [12:39:21]RasterBufferAndPrint [12:39:21]line [12:39:21]line [12:39:21]line [12:39:21]line [12:39:21]line [12:39:21]written 0, free lines is 3340 [12:39:21]process_action close_receipt done [12:39:21]requested_data is exist [12:39:21]produce_requested_data [12:39:21]requested_item fm.sn is exist - process it [12:39:21]wFMCommunicate request_size=4 [12:39:21]MH_SAM_APDU [12:39:21]CAPDU: 80 11 00 00 [12:39:21]Write to MH i2c: E2 08 00 FE 19 80 11 00 00 00 00 00 00 91 [12:39:21]Write i2c OK [12:39:21]MH_I2C_Read... [12:39:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:39:21]Read from MH i2c: E2 [12:39:21]MH_I2C_Read... [12:39:21]Read from MH i2c: E2 17 00 [12:39:21]MH_I2C_Read... [12:39:21]Read from MH i2c: E2 17 00 FE 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E8 [12:39:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:39:21]wFMCommunicate OK [12:39:21]requested_item fd.num is exist - process it [12:39:21]SAM_PROTO_GetFieldsCounters [12:39:21]wFMCommunicate request_size=4 [12:39:21]MH_SAM_APDU [12:39:21]CAPDU: 80 13 00 00 [12:39:21]Write to MH i2c: E2 08 00 FF 19 80 13 00 00 00 00 00 00 94 [12:39:21]Write i2c OK [12:39:21]MH_I2C_Read... [12:39:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:39:21]Read from MH i2c: E2 [12:39:21]MH_I2C_Read... [12:39:21]Read from MH i2c: E2 62 00 [12:39:21]MH_I2C_Read... [12:39:21]Read from MH i2c: E2 62 00 FF 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6A 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 0A [12:39: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6A 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:39:21]wFMCommunicate OK [12:39:21]SAM_PROTO_GetFieldsCounters done [12:39:21]requested_item shift.num is exist - process it [12:39:21]requested_item shift.opened is exist - process it [12:39:21]req_shift_opened [12:39:21]FM_GetShiftState [12:39:21]SAM_PROTO_GetShiftState [12:39:21]wFMCommunicate request_size=4 [12:39:21]MH_SAM_APDU [12:39:21]CAPDU: 80 13 01 00 [12:39:21]Write to MH i2c: E2 08 00 00 1A 80 13 01 00 00 00 00 00 97 [12:39:21]Write i2c OK [12:39:21]MH_I2C_Read... [12:39:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:21]Read from MH i2c: E2 [12:39:21]MH_I2C_Read... [12:39:21]Read from MH i2c: E2 0E 00 [12:39:21]MH_I2C_Read... [12:39:21]Read from MH i2c: E2 0E 00 00 1A 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 B1 [12:39:21]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:39:21]wFMCommunicate OK [12:39:21]SAM_PROTO_GetShiftState done [12:39:21]FM_GetShiftState done [12:39:21]req_shift_opened done [12:39:21]requested_item shift.open_date is exist - process it [12:39:21]req_shift_open_date [12:39:21]req_shift_open_date done [12:39:21]produce_requested_data done [12:39:21]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227434,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [12:39:21]process_action_free close_receipt [12:39:21]json_value_free [12:39:21]json_value_free done [12:39:21]process_json_proto returns [12:39:21]Send response to host [12:39:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227434,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [12:39:21]free response buf [12:39:21]execute_script done [12:39:21]execute_script returns [12:39:21]free content buf [12:39:21]Sock 10.Close socket [12:39:21]Sock 10.Thread stoped [12:39:22]OFD Sender: No OFD packet to send [12:39:27]OFD Sender: No OFD packet to send [12:39:30]accept exits with 8 [12:39:30]New connection [12:39:30]New thread 3066686820 created [12:39:30]Thread 3066543460 joined [12:39:30]Waiting for new connection... [12:39:30] Sock 8.Parse request [12:39:30]Sock 8.Check first char [12:39:30]Sock 8.First char is OK [12:39:30]request: POST /json_proto HTTP/1.0 [12:39:30]Method: POST [12:39:30]URL: /json_proto [12:39:30]Method is POST - this is cgi request [12:39:30]url: /json_proto [12:39:30]query_string will be loaded in cgi processing [12:39:30]execute_cgi json_proto POST (null) [12:39:30]execute_cgi path=json_proto method=POST [12:39:30]POST find Content-Length [12:39:30]Host: 172.17.44.195:8080 [12:39:30]Content-Length: 767 [12:39:30]Content-Type: application/json [12:39:30] [12:39:30]POST finish read [12:39:30]Found Content-Length = 767 [12:39:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962954", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 65.620, "sum" : 5000.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: Mbank", "payments": [ { "type": 1, "sum" : 5000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:39:30]execute_script... [12:39: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)1962954", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 65.620, "sum" : 5000.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: Mbank", "payments": [ { "type": 1, "sum" : 5000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:39:30]POST & json_proto [12:39:30]process_json_proto [12:39:30]json parsed OK: [12:39:30]protocol is kg_v1.0 [12:39:30]action value=close_receipt [12:39:30]process_action close_receipt [12:39:30]cmd_close_receipt [12:39:30]MH_GetDate [12:39:30]Write to MH i2c: F0 00 00 01 1A 0A [12:39:30]Write i2c OK [12:39:30]MH_I2C_Read... [12:39:30]Read from MH i2c: F0 [12:39:30]MH_I2C_Read... [12:39:30]Read from MH i2c: F0 09 00 [12:39:30]MH_I2C_Read... [12:39:30]Read from MH i2c: F0 09 00 01 1A 00 03 FA 14 67 82 C9 CF 66 0B [12:39:30]GetLastDocTimeStamp 1729427960 [12:39:30]current date 1729427971 [12:39:30]FM_GetShiftState [12:39:30]SAM_PROTO_GetShiftState [12:39:30]wFMCommunicate request_size=4 [12:39:30]MH_SAM_APDU [12:39:30]CAPDU: 80 13 01 00 [12:39:30]Write to MH i2c: E2 08 00 02 1A 80 13 01 00 00 00 00 00 99 [12:39:30]Write i2c OK [12:39:30]MH_I2C_Read... [12:39:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:31]Read from MH i2c: E2 [12:39:31]MH_I2C_Read... [12:39:31]Read from MH i2c: E2 0E 00 [12:39:31]MH_I2C_Read... [12:39:31]Read from MH i2c: E2 0E 00 02 1A 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 B3 [12:39:31]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:39:31]wFMCommunicate OK [12:39:31]SAM_PROTO_GetShiftState done [12:39:31]FM_GetShiftState done [12:39:31]opened in 1729383750 [12:39:31]opened+sec_in_day 1729470150 [12:39:31]quantity*price = 500024 [12:39:31]sum+1 = 500025 [12:39:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 5000.24 НСП 1% : 44.25 НДС 12% : 531.00 Наличными: 0.00 Безнал.: 5000.24 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 283 20.10.2024 12:39 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 227435 ФПД: 235040768951106 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T123932&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227435&fm=235040768951106&tin=02508201610067®Number=0000000000091685&sum=500024 [12:39:32]StoreToDocumentArchive [12:39:32]shift 533 fd 227435 [12:39:32]save to /storage/0533/doc_00227435 [12:39:32]save last doc name /storage/0533/doc_00227435 to /storage/kkm_last_doc_name [12:39:32]save OK [12:39:32]Clear old archive folders... [12:39:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:39:32]tlvbuf is 01842A10 [12:39:32]SAM_PROTO_ClearQueue [12:39:32]wFMCommunicate request_size=4 [12:39:32]MH_SAM_APDU [12:39:32]CAPDU: 80 09 00 00 [12:39:32]Write to MH i2c: E2 08 00 0F 1A 80 09 00 00 00 00 00 00 9B [12:39:32]Write i2c OK [12:39:32]MH_I2C_Read... [12:39:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:39:32]Read from MH i2c: E2 [12:39:32]MH_I2C_Read... [12:39:32]Read from MH i2c: E2 03 00 [12:39:32]MH_I2C_Read... [12:39:32]Read from MH i2c: E2 03 00 0F 1A 00 90 00 9D [12:39:32]RAPDU: 90 00 [12:39:32]wFMCommunicate OK [12:39:32]SAM_PROTO_ClearQueue done [12:39:32]KKMCreateOFDPacket [12:39:32]OFDProtocolAddRootSTLVToBuf [12:39:32]FM_MakeSignedData [12:39:32]FM_MakeSignedData [12:39:32]SAM_PROTO_SignData [12:39:32]wFMCommunicate request_size=4 [12:39:32]MH_SAM_APDU [12:39:32]CAPDU: 80 0D 01 02 [12:39:32]Write to MH i2c: E2 08 00 10 1A 80 0D 01 02 00 00 00 00 A3 [12:39:32]Write i2c OK [12:39:32]MH_I2C_Read... [12:39:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:39:32]Read from MH i2c: E2 [12:39:32]MH_I2C_Read... [12:39:32]Read from MH i2c: E2 03 00 [12:39:32]MH_I2C_Read... [12:39:32]Read from MH i2c: E2 03 00 10 1A 00 90 00 9E [12:39:32]RAPDU: 90 00 [12:39:32]wFMCommunicate OK [12:39:32]wFMCommunicate request_size=255 [12:39:32]MH_SAM_APDU [12:39: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 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 04 FA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6B 78 03 00 35 04 06 00 D5 C4 B1 8A [12:39:32]Write to MH i2c: E2 02 01 11 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 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 04 FA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6B 78 03 00 35 04 06 00 D5 C4 B1 8A 00 00 D9 [12:39:32]Write i2c OK [12:39:32]MH_I2C_Read... [12:39:32]Read from MH i2c: E2 [12:39:32]MH_I2C_Read... [12:39:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:32]Read from MH i2c: E2 03 00 [12:39:32]MH_I2C_Read... [12:39:32]Read from MH i2c: E2 03 00 11 1A 00 90 00 9F [12:39:32]RAPDU: 90 00 [12:39:32]wFMCommunicate OK [12:39:32]wFMCommunicate request_size=7 [12:39:32]MH_SAM_APDU [12:39:32]CAPDU: 80 0D 02 02 02 83 42 [12:39:32]Write to MH i2c: E2 0A 00 12 1A 80 0D 02 02 02 00 83 42 00 00 6F [12:39:32]Write i2c OK [12:39:32]MH_I2C_Read... [12:39:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:32]Read from MH i2c: E2 [12:39:32]MH_I2C_Read... [12:39:32]Read from MH i2c: E2 03 00 [12:39:32]MH_I2C_Read... [12:39:32]Read from MH i2c: E2 03 00 12 1A 00 90 00 A0 [12:39:32]RAPDU: 90 00 [12:39:32]wFMCommunicate OK [12:39:32]wFMCommunicate request_size=4 [12:39:32]MH_SAM_APDU [12:39:32]CAPDU: 80 0D 03 02 [12:39:32]Write to MH i2c: E2 08 00 13 1A 80 0D 03 02 00 00 00 00 A8 [12:39:32]Write i2c OK [12:39:32]MH_I2C_Read... [12:39:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:39:32]Read from MH i2c: E2 [12:39:32]MH_I2C_Read... [12:39:32]Read from MH i2c: E2 0B 00 [12:39:32]MH_I2C_Read... [12:39:32]Read from MH i2c: E2 0B 00 13 1A 00 77 CA 2A 6D 00 05 50 71 90 00 47 [12:39:32]RAPDU: 77 CA 2A 6D 00 05 50 71 90 00 [12:39:32]wFMCommunicate OK [12:39:32]SAM_PROTO_SignData done [12:39:32]FM_MakeSignedData done [12:39:32]CreateOFDProtocolMessage [12:39:32]wFMCommunicate request_size=4 [12:39:32]MH_SAM_APDU [12:39:32]CAPDU: 80 11 00 00 [12:39:32]Write to MH i2c: E2 08 00 14 1A 80 11 00 00 00 00 00 00 A8 [12:39:32]Write i2c OK [12:39:32]MH_I2C_Read... [12:39:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:39:32]Read from MH i2c: E2 [12:39:32]MH_I2C_Read... [12:39:32]Read from MH i2c: E2 17 00 [12:39:32]MH_I2C_Read... [12:39:32]Read from MH i2c: E2 17 00 14 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 FF [12:39:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:39:32]wFMCommunicate OK [12:39:32]CreateOFDProtocolMessage done [12:39:32]OFDSenderStorePacket 227435 [12:39:32]StoreOFDPacket docnum=227435 [12:39:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 4B 77 04 01 AF BF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 04 FA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6B 78 03 00 35 04 06 00 D5 C4 B1 8A 83 42 77 CA 2A 6D 00 05 50 71 [12:39:32]CheckFolder [12:39:32]dirname=/storage/ofd_packets [12:39:32]CheckFolder done [12:39:32]ProducePacketName [12:39:32]name=ofd_packets/00227435 [12:39:32]NVStorageSaveData ofd_packets/00227435 [12:39:32]File name is /storage/ofd_packets/00227435 [12:39:32]Write 298 bytes [12:39:32]NVStorageSaveData done [12:39:32]OFDSenderStorePacket done [12:39:32]KKMCreateOFDPacket done [12:39:32]NVStorageSaveData kkm_last_timestamp [12:39:32]File name is /storage/kkm_last_timestamp [12:39:32]Write 4 bytes [12:39:32]NVStorageSaveData done [12:39:32]ExternCall_PrintAddStr [12:39:32]wPrintStart [12:39:32]Write to MH i2c: 01 00 00 15 1A 2F [12:39:32]Write i2c OK [12:39:32]MH_I2C_Read... [12:39:32]Read from MH i2c: 01 [12:39:32]MH_I2C_Read... [12:39:32]Read from MH i2c: 01 07 00 [12:39:32]MH_I2C_Read... [12:39:32]Read from MH i2c: 01 07 00 15 1A 00 00 00 00 00 FF 0F 44 [12:39:32]RasterBufferAndPrint [12:39:32]line Счет N : (1)1962954 [12:39:32]line ИНН: 02508201610067 [12:39:32]line Контрольно-Кассовый Чек [12:39:32]line ПРОДАЖА [12:39:32]line ТРК (МРК, ГНК) : 21 [12:39:32]line Товар: 2710194210 [12:39:32]line ДТ-К-5 [12:39:32]line 65.620 * 76.20 [12:39:32]line = 5000.24 [12:39:32]line НДС 12% НСП 1% [12:39:32]line > о реализуемом товаре [12:39:32]line ИТОГО: 5000.24 [12:39:32]line НСП 1% : 44.25 [12:39:32]line НДС 12% : 531.00 [12:39:32]line Наличными: 0.00 [12:39:32]line Безнал.: 5000.24 [12:39:32]line Место: АЗС № 133 "Партнер Нефть" [12:39:32]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:39:32]line СНО: Общий режим [12:39:32]line Чек 283 20.10.2024 12:39 [12:39:32]line Смена: 533 ФФД: 1.0 [12:39:32]line ЗНМ: 0300000091 [12:39:32]line РНМ: 0000000000091685 [12:39:32]line Версия ККМ: 001 [12:39:32]line Платежная система: Mbank [12:39:32]line ФМ: 0000000000871839 [12:39:32]line ФД: 227435 [12:39:32]line ФПД: 235040768951106 [12:39:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T123932&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227435&fm=235040768951106&tin=02508201610067®Number=0000000000091685&sum=500024 [12:39:32]written 0, free lines is 4095 [12:39:32]OFD Sender: Processing packet 227435 [packets to send 38, broken 37] [12:39:32]ProducePacketName [12:39:32]name=ofd_packets/00227435 [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=10 [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 33 39 0C 01 00 00 4B 77 04 01 AF BF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 04 FA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6B 78 03 00 35 04 06 00 D5 C4 B1 8A 83 42 77 CA 2A 6D 00 05 50 71 [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 33 39 4F 00 00 00 98 1A 47 00 3F 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6B 78 03 00 F4 03 04 00 02 A5 14 67 B6 04 01 00 00 74 4A D0 69 12 A2 31 E0 [12:39:33]CommunicateWithHost err = 0 [12:39:33]CheckOFDResponse [12:39:33]1017 (14) - 77093643461234 [12:39:33]1041 (16) - 0000000000871839 [12:39:33]1040 (4) - 227435 [12:39:33]1012 (4) - 20.10.2024 06:36 [12:39:33]1206 (1) - 0 [12:39:33]OFD Sender: Remove packet 227435 [12:39:33]ProducePacketName [12:39:33]name=ofd_packets/00227435 [12:39:33]NVStorageDeleteData [12:39:33]Write to MH i2c: 01 00 00 3D 1A 57 [12:39:33]Write i2c OK [12:39:33]MH_I2C_Read... [12:39:33]Read from MH i2c: 01 [12:39:33]MH_I2C_Read... [12:39:33]Read from MH i2c: 01 07 00 [12:39:33]MH_I2C_Read... [12:39:33]Read from MH i2c: 01 07 00 3D 1A 00 00 00 00 00 47 0D B2 [12:39:33]RasterBufferAndPrint [12:39:33]line [12:39:33]line [12:39:33]line [12:39:33]line [12:39:33]line [12:39:33]written 0, free lines is 3408 [12:39:33]process_action close_receipt done [12:39:33]requested_data is exist [12:39:33]produce_requested_data [12:39:33]requested_item fm.sn is exist - process it [12:39:33]wFMCommunicate request_size=4 [12:39:33]MH_SAM_APDU [12:39:33]CAPDU: 80 11 00 00 [12:39:33]Write to MH i2c: E2 08 00 44 1A 80 11 00 00 00 00 00 00 D8 [12:39:33]Write i2c OK [12:39:33]MH_I2C_Read... [12:39:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:39:33]Read from MH i2c: E2 [12:39:33]MH_I2C_Read... [12:39:33]Read from MH i2c: E2 17 00 [12:39:33]MH_I2C_Read... [12:39:33]Read from MH i2c: E2 17 00 44 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 2F [12:39:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:39:33]wFMCommunicate OK [12:39:33]requested_item fd.num is exist - process it [12:39:33]SAM_PROTO_GetFieldsCounters [12:39:33]wFMCommunicate request_size=4 [12:39:33]MH_SAM_APDU [12:39:33]CAPDU: 80 13 00 00 [12:39:33]Write to MH i2c: E2 08 00 45 1A 80 13 00 00 00 00 00 00 DB [12:39:33]Write i2c OK [12:39:33]MH_I2C_Read... [12:39:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:39:33]Read from MH i2c: E2 [12:39:33]MH_I2C_Read... [12:39:33]Read from MH i2c: E2 62 00 [12:39:33]MH_I2C_Read... [12:39:33]Read from MH i2c: E2 62 00 45 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6B 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 55 [12:39: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6B 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:39:33]wFMCommunicate OK [12:39:33]SAM_PROTO_GetFieldsCounters done [12:39:33]requested_item shift.num is exist - process it [12:39:33]requested_item shift.opened is exist - process it [12:39:33]req_shift_opened [12:39:33]FM_GetShiftState [12:39:33]SAM_PROTO_GetShiftState [12:39:33]wFMCommunicate request_size=4 [12:39:33]MH_SAM_APDU [12:39:33]CAPDU: 80 13 01 00 [12:39:33]Write to MH i2c: E2 08 00 46 1A 80 13 01 00 00 00 00 00 DD [12:39:33]Write i2c OK [12:39:33]MH_I2C_Read... [12:39:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:33]Read from MH i2c: E2 [12:39:33]MH_I2C_Read... [12:39:33]Read from MH i2c: E2 0E 00 [12:39:33]MH_I2C_Read... [12:39:33]Read from MH i2c: E2 0E 00 46 1A 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 F7 [12:39:33]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:39:33]wFMCommunicate OK [12:39:33]SAM_PROTO_GetShiftState done [12:39:33]FM_GetShiftState done [12:39:33]req_shift_opened done [12:39:33]requested_item shift.open_date is exist - process it [12:39:33]req_shift_open_date [12:39:33]req_shift_open_date done [12:39:33]produce_requested_data done [12:39:33]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227435,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [12:39:33]process_action_free close_receipt [12:39:33]json_value_free [12:39:33]json_value_free done [12:39:33]process_json_proto returns [12:39:33]Send response to host [12:39:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227435,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [12:39:33]free response buf [12:39:33]execute_script done [12:39:33]execute_script returns [12:39:33]free content buf [12:39:33]Sock 8.Close socket [12:39:33]Sock 8.Thread stoped [12:39:33]OFD Sender: No OFD packet to send [12:39:38]OFD Sender: No OFD packet to send [12:39:43]OFD Sender: No OFD packet to send [12:39:46]accept exits with 9 [12:39:46]New connection [12:39:46]New thread 3066543460 created [12:39:46]Thread 3066686820 joined [12:39:46]Waiting for new connection... [12:39:46] Sock 9.Parse request [12:39:46]Sock 9.Check first char [12:39:46]Sock 9.First char is OK [12:39:46]request: POST /json_proto HTTP/1.0 [12:39:46]Method: POST [12:39:46]URL: /json_proto [12:39:46]Method is POST - this is cgi request [12:39:46]url: /json_proto [12:39:46]query_string will be loaded in cgi processing [12:39:46]execute_cgi json_proto POST (null) [12:39:46]execute_cgi path=json_proto method=POST [12:39:46]POST find Content-Length [12:39:46]Host: 172.17.44.195:8080 [12:39:46]Content-Length: 678 [12:39:46]Content-Type: application/json [12:39:46] [12:39:46]POST finish read [12:39:46]Found Content-Length = 678 [12:39:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962956", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:39:46]execute_script... [12:39:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962956", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:39:46]POST & json_proto [12:39:46]process_json_proto [12:39:46]json parsed OK: [12:39:46]protocol is kg_v1.0 [12:39:46]action value=close_receipt [12:39:46]process_action close_receipt [12:39:46]cmd_close_receipt [12:39:46]MH_GetDate [12:39:46]Write to MH i2c: F0 00 00 47 1A 50 [12:39:46]Write i2c OK [12:39:46]MH_I2C_Read... [12:39:46]Read from MH i2c: F0 [12:39:46]MH_I2C_Read... [12:39:46]Read from MH i2c: F0 09 00 [12:39:46]MH_I2C_Read... [12:39:46]Read from MH i2c: F0 09 00 47 1A 00 13 FA 14 67 82 C9 CF 66 61 [12:39:46]GetLastDocTimeStamp 1729427972 [12:39:46]current date 1729427987 [12:39:46]FM_GetShiftState [12:39:46]SAM_PROTO_GetShiftState [12:39:46]wFMCommunicate request_size=4 [12:39:46]MH_SAM_APDU [12:39:46]CAPDU: 80 13 01 00 [12:39:46]Write to MH i2c: E2 08 00 48 1A 80 13 01 00 00 00 00 00 DF [12:39:46]Write i2c OK [12:39:46]MH_I2C_Read... [12:39:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:46]Read from MH i2c: E2 [12:39:46]MH_I2C_Read... [12:39:46]Read from MH i2c: E2 0E 00 [12:39:46]MH_I2C_Read... [12:39:46]Read from MH i2c: E2 0E 00 48 1A 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 F9 [12:39:46]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:39:46]wFMCommunicate OK [12:39:46]SAM_PROTO_GetShiftState done [12:39:46]FM_GetShiftState done [12:39:46]opened in 1729383750 [12:39:46]opened+sec_in_day 1729470150 [12:39:46]quantity*price = 20003 [12:39:46]sum+1 = 20004 [12:39:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 284 20.10.2024 12:39 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227436 ФПД: 226067509314051 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T123947&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227436&fm=226067509314051&tin=02508201610067®Number=0000000000091685&sum=20000 [12:39:47]StoreToDocumentArchive [12:39:47]shift 533 fd 227436 [12:39:47]save to /storage/0533/doc_00227436 [12:39:47]save last doc name /storage/0533/doc_00227436 to /storage/kkm_last_doc_name [12:39:47]save OK [12:39:47]Clear old archive folders... [12:39:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:39:47]tlvbuf is 01963410 [12:39:47]SAM_PROTO_ClearQueue [12:39:47]wFMCommunicate request_size=4 [12:39:47]MH_SAM_APDU [12:39:47]CAPDU: 80 09 00 00 [12:39:47]Write to MH i2c: E2 08 00 55 1A 80 09 00 00 00 00 00 00 E1 [12:39:47]Write i2c OK [12:39:47]MH_I2C_Read... [12:39:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:39:47]Read from MH i2c: E2 [12:39:47]MH_I2C_Read... [12:39:47]Read from MH i2c: E2 03 00 [12:39:47]MH_I2C_Read... [12:39:47]Read from MH i2c: E2 03 00 55 1A 00 90 00 E3 [12:39:47]RAPDU: 90 00 [12:39:47]wFMCommunicate OK [12:39:47]SAM_PROTO_ClearQueue done [12:39:47]KKMCreateOFDPacket [12:39:47]OFDProtocolAddRootSTLVToBuf [12:39:47]FM_MakeSignedData [12:39:47]FM_MakeSignedData [12:39:47]SAM_PROTO_SignData [12:39:47]wFMCommunicate request_size=4 [12:39:47]MH_SAM_APDU [12:39:47]CAPDU: 80 0D 01 02 [12:39:47]Write to MH i2c: E2 08 00 56 1A 80 0D 01 02 00 00 00 00 E9 [12:39:47]Write i2c OK [12:39:47]MH_I2C_Read... [12:39:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:39:47]Read from MH i2c: E2 [12:39:47]MH_I2C_Read... [12:39:47]Read from MH i2c: E2 03 00 [12:39:47]MH_I2C_Read... [12:39:47]Read from MH i2c: E2 03 00 56 1A 00 90 00 E4 [12:39:47]RAPDU: 90 00 [12:39:47]wFMCommunicate OK [12:39:47]wFMCommunicate request_size=255 [12:39:47]MH_SAM_APDU [12:39:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 13 FA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6C 78 03 00 35 04 06 00 CD [12:39:47]Write to MH i2c: E2 02 01 57 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 13 FA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6C 78 03 00 35 04 06 00 CD 00 00 B2 [12:39:47]Write i2c OK [12:39:47]MH_I2C_Read... [12:39:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:47]Read from MH i2c: E2 [12:39:47]MH_I2C_Read... [12:39:47]Read from MH i2c: E2 03 00 [12:39:47]MH_I2C_Read... [12:39:47]Read from MH i2c: E2 03 00 57 1A 00 90 00 E5 [12:39:47]RAPDU: 90 00 [12:39:47]wFMCommunicate OK [12:39:47]wFMCommunicate request_size=10 [12:39:47]MH_SAM_APDU [12:39:47]CAPDU: 80 0D 02 02 05 9B 71 96 82 03 [12:39:47]Write to MH i2c: E2 0D 00 58 1A 80 0D 02 02 05 00 9B 71 96 82 03 00 00 1D [12:39:47]Write i2c OK [12:39:47]MH_I2C_Read... [12:39:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:47]Read from MH i2c: E2 [12:39:47]MH_I2C_Read... [12:39:47]Read from MH i2c: E2 03 00 [12:39:47]MH_I2C_Read... [12:39:47]Read from MH i2c: E2 03 00 58 1A 00 90 00 E6 [12:39:47]RAPDU: 90 00 [12:39:47]wFMCommunicate OK [12:39:47]wFMCommunicate request_size=4 [12:39:47]MH_SAM_APDU [12:39:47]CAPDU: 80 0D 03 02 [12:39:47]Write to MH i2c: E2 08 00 59 1A 80 0D 03 02 00 00 00 00 EE [12:39:47]Write i2c OK [12:39:47]MH_I2C_Read... [12:39:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:39:47]Read from MH i2c: E2 [12:39:47]MH_I2C_Read... [12:39:47]Read from MH i2c: E2 0B 00 [12:39:47]MH_I2C_Read... [12:39:47]Read from MH i2c: E2 0B 00 59 1A 00 3D 55 28 90 DC 19 EA 12 90 00 2A [12:39:47]RAPDU: 3D 55 28 90 DC 19 EA 12 90 00 [12:39:47]wFMCommunicate OK [12:39:47]SAM_PROTO_SignData done [12:39:47]FM_MakeSignedData done [12:39:47]CreateOFDProtocolMessage [12:39:47]wFMCommunicate request_size=4 [12:39:47]MH_SAM_APDU [12:39:47]CAPDU: 80 11 00 00 [12:39:47]Write to MH i2c: E2 08 00 5A 1A 80 11 00 00 00 00 00 00 EE [12:39:47]Write i2c OK [12:39:47]MH_I2C_Read... [12:39:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:39:47]Read from MH i2c: E2 [12:39:47]MH_I2C_Read... [12:39:47]Read from MH i2c: E2 17 00 [12:39:47]MH_I2C_Read... [12:39:47]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 33 39 90 00 45 [12:39:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:39:47]wFMCommunicate OK [12:39:47]CreateOFDProtocolMessage done [12:39:47]OFDSenderStorePacket 227436 [12:39:47]StoreOFDPacket docnum=227436 [12:39:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 53 22 07 01 11 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 13 FA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6C 78 03 00 35 04 06 00 CD 9B 71 96 82 03 3D 55 28 90 DC 19 EA 12 [12:39:47]CheckFolder [12:39:47]dirname=/storage/ofd_packets [12:39:47]CheckFolder done [12:39:47]ProducePacketName [12:39:47]name=ofd_packets/00227436 [12:39:47]NVStorageSaveData ofd_packets/00227436 [12:39:47]File name is /storage/ofd_packets/00227436 [12:39:47]Write 301 bytes [12:39:47]NVStorageSaveData done [12:39:47]OFDSenderStorePacket done [12:39:47]KKMCreateOFDPacket done [12:39:47]NVStorageSaveData kkm_last_timestamp [12:39:47]File name is /storage/kkm_last_timestamp [12:39:47]Write 4 bytes [12:39:47]NVStorageSaveData done [12:39:47]ExternCall_PrintAddStr [12:39:47]wPrintStart [12:39:47]Write to MH i2c: 01 00 00 5B 1A 75 [12:39:47]Write i2c OK [12:39:47]MH_I2C_Read... [12:39:47]Read from MH i2c: 01 [12:39:47]MH_I2C_Read... [12:39:47]Read from MH i2c: 01 07 00 [12:39:47]MH_I2C_Read... [12:39:47]Read from MH i2c: 01 07 00 5B 1A 00 00 00 00 00 FF 0F 8A [12:39:48]RasterBufferAndPrint [12:39:48]line Счет N : (1)1962956 [12:39:48]line ИНН: 02508201610067 [12:39:48]line Контрольно-Кассовый Чек [12:39:48]line ПРОДАЖА [12:39:48]line ТРК (МРК, ГНК) : 63 [12:39:48]line Товар: 2710124130 [12:39:48]line Аи-92-К-5 [12:39:48]line 2.990 * 66.90 [12:39:48]line = 200.03 [12:39:48]line НДС 12% НСП 1% [12:39:48]line > о реализуемом товаре [12:39:48]line ОКРУГЛЕНИЕ: -0.03 [12:39:48]line ИТОГО: 200.00 [12:39:48]line Внесено: 200.00 [12:39:48]line СДАЧА: 0.00 [12:39:48]line НСП 1% : 1.77 [12:39:48]line НДС 12% : 21.24 [12:39:48]line Наличными: 200.00 [12:39:48]line Безнал.: 0.00 [12:39:48]line Место: АЗС № 133 "Партнер Нефть" [12:39:48]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:39:48]line СНО: Общий режим [12:39:48]line Чек 284 20.10.2024 12:39 [12:39:48]line Смена: 533 ФФД: 1.0 [12:39:48]line ЗНМ: 0300000091 [12:39:48]line РНМ: 0000000000091685 [12:39:48]line Версия ККМ: 001 [12:39:48]line ФМ: 0000000000871839 [12:39:48]line ФД: 227436 [12:39:48]line ФПД: 226067509314051 [12:39:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T123947&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227436&fm=226067509314051&tin=02508201610067®Number=0000000000091685&sum=20000 [12:39:48]written 0, free lines is 4095 [12:39:48]OFD Sender: Processing packet 227436 [packets to send 38, broken 37] [12:39:48]ProducePacketName [12:39:48]name=ofd_packets/00227436 [12:39:48]OFD Sender: To server: pG, [12:39:48]CommunicateWithHost lk.salyk.kg:30040 [12:39:48]ConnectInit lk.salyk.kg [12:39:48]Connected sock=10 [12:39:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 53 22 07 01 11 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 13 FA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6C 78 03 00 35 04 06 00 CD 9B 71 96 82 03 3D 55 28 90 DC 19 EA 12 [12:39: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 33 39 4F 00 00 00 32 4C 47 00 3A 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 33 39 10 04 04 00 6C 78 03 00 F4 03 04 00 12 A5 14 67 B6 04 01 00 00 23 47 46 F9 44 98 E1 B4 [12:39:48]CommunicateWithHost err = 0 [12:39:48]CheckOFDResponse [12:39:48]1017 (14) - 77093643461234 [12:39:48]1041 (16) - 0000000000871839 [12:39:48]1040 (4) - 227436 [12:39:48]1012 (4) - 20.10.2024 06:37 [12:39:48]1206 (1) - 0 [12:39:48]OFD Sender: Remove packet 227436 [12:39:48]ProducePacketName [12:39:48]name=ofd_packets/00227436 [12:39:48]NVStorageDeleteData [12:39:48]Write to MH i2c: 01 00 00 85 1A 9F [12:39:48]Write i2c OK [12:39:48]MH_I2C_Read... [12:39:48]Read from MH i2c: 01 [12:39:48]MH_I2C_Read... [12:39:48]Read from MH i2c: 01 07 00 [12:39:48]MH_I2C_Read... [12:39:48]Read from MH i2c: 01 07 00 85 1A 00 00 00 00 00 18 0D CB [12:39:48]RasterBufferAndPrint [12:39:48]line [12:39:48]line [12:39:48]line [12:39:48]line [12:39:48]line [12:39:48]written 0, free lines is 3362 [12:39:48]process_action close_receipt done [12:39:48]requested_data is exist [12:39:48]produce_requested_data [12:39:48]requested_item fm.sn is exist - process it [12:39:48]wFMCommunicate request_size=4 [12:39:48]MH_SAM_APDU [12:39:48]CAPDU: 80 11 00 00 [12:39:48]Write to MH i2c: E2 08 00 8C 1A 80 11 00 00 00 00 00 00 20 [12:39:48]Write i2c OK [12:39:48]MH_I2C_Read... [12:39:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:39:48]Read from MH i2c: E2 [12:39:48]MH_I2C_Read... [12:39:48]Read from MH i2c: E2 17 00 [12:39:48]MH_I2C_Read... [12:39:48]Read from MH i2c: E2 17 00 8C 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 77 [12:39:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:39:48]wFMCommunicate OK [12:39:48]requested_item fd.num is exist - process it [12:39:48]SAM_PROTO_GetFieldsCounters [12:39:48]wFMCommunicate request_size=4 [12:39:48]MH_SAM_APDU [12:39:48]CAPDU: 80 13 00 00 [12:39:48]Write to MH i2c: E2 08 00 8D 1A 80 13 00 00 00 00 00 00 23 [12:39:48]Write i2c OK [12:39:48]MH_I2C_Read... [12:39:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:39:48]Read from MH i2c: E2 [12:39:48]MH_I2C_Read... [12:39:48]Read from MH i2c: E2 62 00 [12:39:48]MH_I2C_Read... [12:39:48]Read from MH i2c: E2 62 00 8D 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6C 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 A1 [12:39: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6C 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:39:48]wFMCommunicate OK [12:39:48]SAM_PROTO_GetFieldsCounters done [12:39:48]requested_item shift.num is exist - process it [12:39:48]requested_item shift.opened is exist - process it [12:39:48]req_shift_opened [12:39:48]FM_GetShiftState [12:39:48]SAM_PROTO_GetShiftState [12:39:48]wFMCommunicate request_size=4 [12:39:48]MH_SAM_APDU [12:39:48]CAPDU: 80 13 01 00 [12:39:48]Write to MH i2c: E2 08 00 8E 1A 80 13 01 00 00 00 00 00 25 [12:39:48]Write i2c OK [12:39:48]MH_I2C_Read... [12:39:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:48]Read from MH i2c: E2 [12:39:48]MH_I2C_Read... [12:39:48]Read from MH i2c: E2 0E 00 [12:39:48]MH_I2C_Read... [12:39:48]Read from MH i2c: E2 0E 00 8E 1A 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 3F [12:39:48]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:39:48]wFMCommunicate OK [12:39:48]SAM_PROTO_GetShiftState done [12:39:48]FM_GetShiftState done [12:39:48]req_shift_opened done [12:39:48]requested_item shift.open_date is exist - process it [12:39:48]req_shift_open_date [12:39:48]req_shift_open_date done [12:39:48]produce_requested_data done [12:39:48]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227436,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [12:39:48]process_action_free close_receipt [12:39:48]json_value_free [12:39:48]json_value_free done [12:39:48]process_json_proto returns [12:39:48]Send response to host [12:39:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227436,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [12:39:48]free response buf [12:39:48]execute_script done [12:39:48]execute_script returns [12:39:48]free content buf [12:39:48]Sock 9.Close socket [12:39:48]Sock 9.Thread stoped [12:39:48]OFD Sender: No OFD packet to send [12:39:53]OFD Sender: No OFD packet to send [12:39:58]OFD Sender: No OFD packet to send [12:40:03]OFD Sender: No OFD packet to send [12:40:08]OFD Sender: No OFD packet to send [12:40:13]OFD Sender: No OFD packet to send [12:40:18]OFD Sender: No OFD packet to send [12:40:23]OFD Sender: No OFD packet to send [12:40:28]OFD Sender: No OFD packet to send [12:40:33]OFD Sender: No OFD packet to send [12:40:38]OFD Sender: No OFD packet to send [12:40:43]OFD Sender: No OFD packet to send [12:40:48]OFD Sender: No OFD packet to send [12:40:53]OFD Sender: No OFD packet to send [12:40:58]OFD Sender: No OFD packet to send [12:41:03]OFD Sender: No OFD packet to send [12:41:08]accept exits with 8 [12:41:08]New connection [12:41:08]New thread 3066686820 created [12:41:08]Thread 3066543460 joined [12:41:08]Waiting for new connection... [12:41:08] Sock 8.Parse request [12:41:08]Sock 8.Check first char [12:41:08]Sock 8.First char is OK [12:41:08]request: POST /json_proto HTTP/1.0 [12:41:08]Method: POST [12:41:08]URL: /json_proto [12:41:08]Method is POST - this is cgi request [12:41:08]url: /json_proto [12:41:08]query_string will be loaded in cgi processing [12:41:08]execute_cgi json_proto POST (null) [12:41:08]execute_cgi path=json_proto method=POST [12:41:08]POST find Content-Length [12:41:08]Host: 172.17.44.195:8080 [12:41:08]Content-Length: 680 [12:41:08]Content-Type: application/json [12:41:08] [12:41:08]POST finish read [12:41:08]Found Content-Length = 680 [12:41:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962957", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:41:08]execute_script... [12:41: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)1962957", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:41:08]POST & json_proto [12:41:08]process_json_proto [12:41:08]json parsed OK: [12:41:08]protocol is kg_v1.0 [12:41:08]action value=close_receipt [12:41:08]process_action close_receipt [12:41:08]cmd_close_receipt [12:41:08]MH_GetDate [12:41:08]Write to MH i2c: F0 00 00 8F 1A 98 [12:41:08]Write i2c OK [12:41:08]MH_I2C_Read... [12:41:08]Read from MH i2c: F0 [12:41:08]MH_I2C_Read... [12:41:08]Read from MH i2c: F0 09 00 [12:41:08]MH_I2C_Read... [12:41:08]Read from MH i2c: F0 09 00 8F 1A 00 65 FA 14 67 82 C9 CF 66 FB [12:41:08]GetLastDocTimeStamp 1729427987 [12:41:08]current date 1729428069 [12:41:08]FM_GetShiftState [12:41:08]SAM_PROTO_GetShiftState [12:41:08]wFMCommunicate request_size=4 [12:41:08]MH_SAM_APDU [12:41:08]CAPDU: 80 13 01 00 [12:41:08]Write to MH i2c: E2 08 00 90 1A 80 13 01 00 00 00 00 00 27 [12:41:08]Write i2c OK [12:41:08]MH_I2C_Read... [12:41:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:08]Read from MH i2c: E2 [12:41:08]MH_I2C_Read... [12:41:08]Read from MH i2c: E2 0E 00 [12:41:08]MH_I2C_Read... [12:41:08]Read from MH i2c: E2 0E 00 90 1A 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 41 [12:41:08]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:41:08]wFMCommunicate OK [12:41:08]SAM_PROTO_GetShiftState done [12:41:08]FM_GetShiftState done [12:41:08]opened in 1729383750 [12:41:08]opened+sec_in_day 1729470150 [12:41:08]quantity*price = 150037 [12:41:08]sum+1 = 150039 [12:41:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 285 20.10.2024 12:41 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227437 ФПД: 5415345356073 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T124109&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227437&fm=5415345356073&tin=02508201610067®Number=0000000000091685&sum=150000 [12:41:09]StoreToDocumentArchive [12:41:09]shift 533 fd 227437 [12:41:09]save to /storage/0533/doc_00227437 [12:41:09]save last doc name /storage/0533/doc_00227437 to /storage/kkm_last_doc_name [12:41:09]save OK [12:41:09]Clear old archive folders... [12:41:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:41:09]tlvbuf is 0187E180 [12:41:09]SAM_PROTO_ClearQueue [12:41:09]wFMCommunicate request_size=4 [12:41:09]MH_SAM_APDU [12:41:09]CAPDU: 80 09 00 00 [12:41:09]Write to MH i2c: E2 08 00 9D 1A 80 09 00 00 00 00 00 00 29 [12:41:09]Write i2c OK [12:41:09]MH_I2C_Read... [12:41:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:41:09]Read from MH i2c: E2 [12:41:09]MH_I2C_Read... [12:41:09]Read from MH i2c: E2 03 00 [12:41:09]MH_I2C_Read... [12:41:09]Read from MH i2c: E2 03 00 9D 1A 00 90 00 2B [12:41:09]RAPDU: 90 00 [12:41:09]wFMCommunicate OK [12:41:09]SAM_PROTO_ClearQueue done [12:41:09]KKMCreateOFDPacket [12:41:09]OFDProtocolAddRootSTLVToBuf [12:41:09]FM_MakeSignedData [12:41:09]FM_MakeSignedData [12:41:09]SAM_PROTO_SignData [12:41:09]wFMCommunicate request_size=4 [12:41:09]MH_SAM_APDU [12:41:09]CAPDU: 80 0D 01 02 [12:41:09]Write to MH i2c: E2 08 00 9E 1A 80 0D 01 02 00 00 00 00 31 [12:41:09]Write i2c OK [12:41:09]MH_I2C_Read... [12:41:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:41:09]Read from MH i2c: E2 [12:41:09]MH_I2C_Read... [12:41:09]Read from MH i2c: E2 03 00 [12:41:09]MH_I2C_Read... [12:41:09]Read from MH i2c: E2 03 00 9E 1A 00 90 00 2C [12:41:09]RAPDU: 90 00 [12:41:09]wFMCommunicate OK [12:41:09]wFMCommunicate request_size=255 [12:41:09]MH_SAM_APDU [12:41: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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 65 FA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6D 78 03 00 35 04 06 00 04 EC DB BC [12:41:09]Write to MH i2c: E2 02 01 9F 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 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 65 FA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6D 78 03 00 35 04 06 00 04 EC DB BC 00 00 B3 [12:41:09]Write i2c OK [12:41:09]MH_I2C_Read... [12:41:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:41:09]Read from MH i2c: E2 [12:41:09]MH_I2C_Read... [12:41:09]Read from MH i2c: E2 03 00 [12:41:09]MH_I2C_Read... [12:41:09]Read from MH i2c: E2 03 00 9F 1A 00 90 00 2D [12:41:09]RAPDU: 90 00 [12:41:09]wFMCommunicate OK [12:41:09]wFMCommunicate request_size=7 [12:41:09]MH_SAM_APDU [12:41:09]CAPDU: 80 0D 02 02 02 7D 29 [12:41:09]Write to MH i2c: E2 0A 00 A0 1A 80 0D 02 02 02 00 7D 29 00 00 DE [12:41:09]Write i2c OK [12:41:09]MH_I2C_Read... [12:41:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:41:09]Read from MH i2c: E2 [12:41:09]MH_I2C_Read... [12:41:09]Read from MH i2c: E2 03 00 [12:41:09]MH_I2C_Read... [12:41:09]Read from MH i2c: E2 03 00 A0 1A 00 90 00 2E [12:41:09]RAPDU: 90 00 [12:41:09]wFMCommunicate OK [12:41:09]wFMCommunicate request_size=4 [12:41:09]MH_SAM_APDU [12:41:09]CAPDU: 80 0D 03 02 [12:41:09]Write to MH i2c: E2 08 00 A1 1A 80 0D 03 02 00 00 00 00 36 [12:41:09]Write i2c OK [12:41:09]MH_I2C_Read... [12:41:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:41:09]Read from MH i2c: E2 [12:41:09]MH_I2C_Read... [12:41:09]Read from MH i2c: E2 0B 00 [12:41:09]MH_I2C_Read... [12:41:09]Read from MH i2c: E2 0B 00 A1 1A 00 04 BD C2 C3 BB 7A 20 08 90 00 DA [12:41:09]RAPDU: 04 BD C2 C3 BB 7A 20 08 90 00 [12:41:09]wFMCommunicate OK [12:41:09]SAM_PROTO_SignData done [12:41:09]FM_MakeSignedData done [12:41:09]CreateOFDProtocolMessage [12:41:09]wFMCommunicate request_size=4 [12:41:09]MH_SAM_APDU [12:41:09]CAPDU: 80 11 00 00 [12:41:09]Write to MH i2c: E2 08 00 A2 1A 80 11 00 00 00 00 00 00 36 [12:41:09]Write i2c OK [12:41:09]MH_I2C_Read... [12:41:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:09]Read from MH i2c: E2 [12:41:09]MH_I2C_Read... [12:41:09]Read from MH i2c: E2 17 00 [12:41:09]MH_I2C_Read... [12:41:09]Read from MH i2c: E2 17 00 A2 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 8D [12:41:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:41:09]wFMCommunicate OK [12:41:09]CreateOFDProtocolMessage done [12:41:09]OFDSenderStorePacket 227437 [12:41:09]StoreOFDPacket docnum=227437 [12:41:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 98 FE 04 01 8B CC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 65 FA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6D 78 03 00 35 04 06 00 04 EC DB BC 7D 29 04 BD C2 C3 BB 7A 20 08 [12:41:09]CheckFolder [12:41:09]dirname=/storage/ofd_packets [12:41:09]CheckFolder done [12:41:09]ProducePacketName [12:41:09]name=ofd_packets/00227437 [12:41:09]NVStorageSaveData ofd_packets/00227437 [12:41:09]File name is /storage/ofd_packets/00227437 [12:41:09]Write 298 bytes [12:41:09]NVStorageSaveData done [12:41:09]OFDSenderStorePacket done [12:41:09]KKMCreateOFDPacket done [12:41:09]NVStorageSaveData kkm_last_timestamp [12:41:09]File name is /storage/kkm_last_timestamp [12:41:09]Write 4 bytes [12:41:09]NVStorageSaveData done [12:41:09]ExternCall_PrintAddStr [12:41:09]wPrintStart [12:41:09]Write to MH i2c: 01 00 00 A3 1A BD [12:41:09]Write i2c OK [12:41:09]MH_I2C_Read... [12:41:09]Read from MH i2c: 01 [12:41:09]MH_I2C_Read... [12:41:09]Read from MH i2c: 01 07 00 [12:41:09]MH_I2C_Read... [12:41:09]Read from MH i2c: 01 07 00 A3 1A 00 00 00 00 00 FF 0F D2 [12:41:09]RasterBufferAndPrint [12:41:09]line Счет N : (1)1962957 [12:41:09]line ИНН: 02508201610067 [12:41:09]line Контрольно-Кассовый Чек [12:41:09]line ПРОДАЖА [12:41:09]line ТРК (МРК, ГНК) : 11 [12:41:09]line Товар: 2710194210 [12:41:09]line ДТ-К-5 [12:41:09]line 19.690 * 76.20 [12:41:09]line = 1500.38 [12:41:09]line НДС 12% НСП 1% [12:41:09]line > о реализуемом товаре [12:41:09]line ОКРУГЛЕНИЕ: -0.38 [12:41:09]line ИТОГО: 1500.00 [12:41:09]line Внесено: 1500.00 [12:41:09]line СДАЧА: 0.00 [12:41:09]line НСП 1% : 13.28 [12:41:09]line НДС 12% : 159.33 [12:41:09]line Наличными: 1500.00 [12:41:09]line Безнал.: 0.00 [12:41:09]line Место: АЗС № 133 "Партнер Нефть" [12:41:09]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:41:09]line СНО: Общий режим [12:41:09]line Чек 285 20.10.2024 12:41 [12:41:09]line Смена: 533 ФФД: 1.0 [12:41:09]line ЗНМ: 0300000091 [12:41:09]line РНМ: 0000000000091685 [12:41:09]line Версия ККМ: 001 [12:41:09]line ФМ: 0000000000871839 [12:41:09]line ФД: 227437 [12:41:09]line ФПД: 5415345356073 [12:41:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T124109&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227437&fm=5415345356073&tin=02508201610067®Number=0000000000091685&sum=150000 [12:41:10]OFD Sender: Processing packet 227437 [packets to send 38, broken 37] [12:41:10]ProducePacketName [12:41:10]name=ofd_packets/00227437 [12:41:10]OFD Sender: To server: pG, [12:41:10]CommunicateWithHost lk.salyk.kg:30040 [12:41:10]ConnectInit lk.salyk.kg [12:41:10]written 0, free lines is 4095 [12:41:10]Connected sock=10 [12:41: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 33 39 0C 01 00 00 98 FE 04 01 8B CC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 65 FA 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6D 78 03 00 35 04 06 00 04 EC DB BC 7D 29 04 BD C2 C3 BB 7A 20 08 [12:41: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 33 39 4F 00 00 00 45 1F 47 00 7E 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 33 39 10 04 04 00 6D 78 03 00 F4 03 04 00 64 A5 14 67 B6 04 01 00 00 B9 6A FA CD F0 77 95 29 [12:41:10]CommunicateWithHost err = 0 [12:41:10]CheckOFDResponse [12:41:10]1017 (14) - 77093643461234 [12:41:10]1041 (16) - 0000000000871839 [12:41:10]1040 (4) - 227437 [12:41:10]1012 (4) - 20.10.2024 06:38 [12:41:10]1206 (1) - 0 [12:41:10]OFD Sender: Remove packet 227437 [12:41:10]ProducePacketName [12:41:10]name=ofd_packets/00227437 [12:41:10]NVStorageDeleteData [12:41:10]Write to MH i2c: 01 00 00 CD 1A E7 [12:41:10]Write i2c OK [12:41:10]MH_I2C_Read... [12:41:10]Read from MH i2c: 01 [12:41:10]MH_I2C_Read... [12:41:10]Read from MH i2c: 01 07 00 [12:41:10]MH_I2C_Read... [12:41:10]Read from MH i2c: 01 07 00 CD 1A 00 00 00 00 00 02 0D FD [12:41:10]RasterBufferAndPrint [12:41:10]line [12:41:10]line [12:41:10]line [12:41:10]line [12:41:10]line [12:41:10]written 0, free lines is 3336 [12:41:10]process_action close_receipt done [12:41:10]requested_data is exist [12:41:10]produce_requested_data [12:41:10]requested_item fm.sn is exist - process it [12:41:10]wFMCommunicate request_size=4 [12:41:10]MH_SAM_APDU [12:41:10]CAPDU: 80 11 00 00 [12:41:10]Write to MH i2c: E2 08 00 D4 1A 80 11 00 00 00 00 00 00 68 [12:41:10]Write i2c OK [12:41:10]MH_I2C_Read... [12:41:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:10]Read from MH i2c: E2 [12:41:10]MH_I2C_Read... [12:41:10]Read from MH i2c: E2 17 00 [12:41:10]MH_I2C_Read... [12:41:10]Read from MH i2c: E2 17 00 D4 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 BF [12:41:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:41:10]wFMCommunicate OK [12:41:10]requested_item fd.num is exist - process it [12:41:10]SAM_PROTO_GetFieldsCounters [12:41:10]wFMCommunicate request_size=4 [12:41:10]MH_SAM_APDU [12:41:10]CAPDU: 80 13 00 00 [12:41:10]Write to MH i2c: E2 08 00 D5 1A 80 13 00 00 00 00 00 00 6B [12:41:10]Write i2c OK [12:41:10]MH_I2C_Read... [12:41:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:41:10]Read from MH i2c: E2 [12:41:10]MH_I2C_Read... [12:41:10]Read from MH i2c: E2 62 00 [12:41:10]MH_I2C_Read... [12:41:10]Read from MH i2c: E2 62 00 D5 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6D 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 ED [12: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6D 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:41:10]wFMCommunicate OK [12:41:10]SAM_PROTO_GetFieldsCounters done [12:41:10]requested_item shift.num is exist - process it [12:41:10]requested_item shift.opened is exist - process it [12:41:10]req_shift_opened [12:41:10]FM_GetShiftState [12:41:10]SAM_PROTO_GetShiftState [12:41:10]wFMCommunicate request_size=4 [12:41:10]MH_SAM_APDU [12:41:10]CAPDU: 80 13 01 00 [12:41:10]Write to MH i2c: E2 08 00 D6 1A 80 13 01 00 00 00 00 00 6D [12:41:10]Write i2c OK [12:41:10]MH_I2C_Read... [12:41:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:10]Read from MH i2c: E2 [12:41:10]MH_I2C_Read... [12:41:10]Read from MH i2c: E2 0E 00 [12:41:10]MH_I2C_Read... [12:41:10]Read from MH i2c: E2 0E 00 D6 1A 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 87 [12:41:10]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:41:10]wFMCommunicate OK [12:41:10]SAM_PROTO_GetShiftState done [12:41:10]FM_GetShiftState done [12:41:10]req_shift_opened done [12:41:10]requested_item shift.open_date is exist - process it [12:41:10]req_shift_open_date [12:41:10]req_shift_open_date done [12:41:10]produce_requested_data done [12:41:10]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227437,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [12:41:10]process_action_free close_receipt [12:41:10]json_value_free [12:41:10]json_value_free done [12:41:10]process_json_proto returns [12:41:10]Send response to host [12:41:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227437,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [12:41:10]free response buf [12:41:10]execute_script done [12:41:10]execute_script returns [12:41:10]free content buf [12:41:10]Sock 8.Close socket [12:41:10]Sock 8.Thread stoped [12:41:10]OFD Sender: No OFD packet to send [12:41:15]OFD Sender: No OFD packet to send [12:41:20]OFD Sender: No OFD packet to send [12:41:25]OFD Sender: No OFD packet to send [12:41:30]OFD Sender: No OFD packet to send [12:41:35]OFD Sender: No OFD packet to send [12:41:41]OFD Sender: No OFD packet to send [12:41:46]OFD Sender: No OFD packet to send [12:41:51]OFD Sender: No OFD packet to send [12:41:56]OFD Sender: No OFD packet to send [12:42:01]OFD Sender: No OFD packet to send [12:42:06]OFD Sender: No OFD packet to send [12:42:11]OFD Sender: No OFD packet to send [12:42:16]OFD Sender: No OFD packet to send [12:42:21]OFD Sender: No OFD packet to send [12:42:26]OFD Sender: No OFD packet to send [12:42:31]OFD Sender: No OFD packet to send [12:42:36]OFD Sender: No OFD packet to send [12:42:41]OFD Sender: No OFD packet to send [12:42:46]OFD Sender: No OFD packet to send [12:42:51]OFD Sender: No OFD packet to send [12:42:56]OFD Sender: No OFD packet to send [12:43:01]OFD Sender: No OFD packet to send [12:43:06]OFD Sender: No OFD packet to send [12:43:11]OFD Sender: No OFD packet to send [12:43:16]OFD Sender: No OFD packet to send [12:43:21]OFD Sender: No OFD packet to send [12:43:26]OFD Sender: No OFD packet to send [12:43:31]OFD Sender: No OFD packet to send [12:43:36]OFD Sender: No OFD packet to send [12:43:41]OFD Sender: No OFD packet to send [12:43:46]OFD Sender: No OFD packet to send [12:43:49]accept exits with 9 [12:43:49]New connection [12:43:49]New thread 3066543460 created [12:43:49]Thread 3066686820 joined [12:43:49]Waiting for new connection... [12:43:49] Sock 9.Parse request [12:43:49]Sock 9.Check first char [12:43:49]Sock 9.First char is OK [12:43:49]request: POST /json_proto HTTP/1.0 [12:43:49]Method: POST [12:43:49]URL: /json_proto [12:43:49]Method is POST - this is cgi request [12:43:49]url: /json_proto [12:43:49]query_string will be loaded in cgi processing [12:43:49]execute_cgi json_proto POST (null) [12:43:49]execute_cgi path=json_proto method=POST [12:43:49]POST find Content-Length [12:43:49]Host: 172.17.44.195:8080 [12:43:49]Content-Length: 680 [12:43:49]Content-Type: application/json [12:43:49] [12:43:49]POST finish read [12:43:49]Found Content-Length = 680 [12:43:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962958", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:49]execute_script... [12:43: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)1962958", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:49]POST & json_proto [12:43:49]process_json_proto [12:43:49]json parsed OK: [12:43:49]protocol is kg_v1.0 [12:43:49]action value=close_receipt [12:43:49]process_action close_receipt [12:43:49]cmd_close_receipt [12:43:49]MH_GetDate [12:43:49]Write to MH i2c: F0 00 00 D7 1A E0 [12:43:49]Write i2c OK [12:43:49]MH_I2C_Read... [12:43:49]Read from MH i2c: F0 [12:43:49]MH_I2C_Read... [12:43:49]Read from MH i2c: F0 09 00 [12:43:49]MH_I2C_Read... [12:43:49]Read from MH i2c: F0 09 00 D7 1A 00 06 FB 14 67 82 C9 CF 66 E5 [12:43:49]GetLastDocTimeStamp 1729428069 [12:43:49]current date 1729428230 [12:43:49]FM_GetShiftState [12:43:49]SAM_PROTO_GetShiftState [12:43:49]wFMCommunicate request_size=4 [12:43:49]MH_SAM_APDU [12:43:49]CAPDU: 80 13 01 00 [12:43:49]Write to MH i2c: E2 08 00 D8 1A 80 13 01 00 00 00 00 00 6F [12:43:49]Write i2c OK [12:43:49]MH_I2C_Read... [12:43:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:49]Read from MH i2c: E2 [12:43:49]MH_I2C_Read... [12:43:49]Read from MH i2c: E2 0E 00 [12:43:49]MH_I2C_Read... [12:43:49]Read from MH i2c: E2 0E 00 D8 1A 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 89 [12:43:49]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:43:49]wFMCommunicate OK [12:43:49]SAM_PROTO_GetShiftState done [12:43:49]FM_GetShiftState done [12:43:49]opened in 1729383750 [12:43:49]opened+sec_in_day 1729470150 [12:43:49]quantity*price = 150037 [12:43:49]sum+1 = 150039 [12:43:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 286 20.10.2024 12:43 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227438 ФПД: 62665294665667 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T124350&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227438&fm=62665294665667&tin=02508201610067®Number=0000000000091685&sum=150000 [12:43:50]StoreToDocumentArchive [12:43:50]shift 533 fd 227438 [12:43:50]save to /storage/0533/doc_00227438 [12:43:50]save last doc name /storage/0533/doc_00227438 to /storage/kkm_last_doc_name [12:43:50]save OK [12:43:50]Clear old archive folders... [12:43:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:43:50]tlvbuf is 018428E0 [12:43:50]SAM_PROTO_ClearQueue [12:43:50]wFMCommunicate request_size=4 [12:43:50]MH_SAM_APDU [12:43:50]CAPDU: 80 09 00 00 [12:43:50]Write to MH i2c: E2 08 00 E5 1A 80 09 00 00 00 00 00 00 71 [12:43:50]Write i2c OK [12:43:50]MH_I2C_Read... [12:43:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:43:50]Read from MH i2c: E2 [12:43:50]MH_I2C_Read... [12:43:50]Read from MH i2c: E2 03 00 [12:43:50]MH_I2C_Read... [12:43:50]Read from MH i2c: E2 03 00 E5 1A 00 90 00 73 [12:43:50]RAPDU: 90 00 [12:43:50]wFMCommunicate OK [12:43:50]SAM_PROTO_ClearQueue done [12:43:50]KKMCreateOFDPacket [12:43:50]OFDProtocolAddRootSTLVToBuf [12:43:50]FM_MakeSignedData [12:43:50]FM_MakeSignedData [12:43:50]SAM_PROTO_SignData [12:43:50]wFMCommunicate request_size=4 [12:43:50]MH_SAM_APDU [12:43:50]CAPDU: 80 0D 01 02 [12:43:50]Write to MH i2c: E2 08 00 E6 1A 80 0D 01 02 00 00 00 00 79 [12:43:50]Write i2c OK [12:43:50]MH_I2C_Read... [12:43:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:43:50]Read from MH i2c: E2 [12:43:50]MH_I2C_Read... [12:43:50]Read from MH i2c: E2 03 00 [12:43:50]MH_I2C_Read... [12:43:50]Read from MH i2c: E2 03 00 E6 1A 00 90 00 74 [12:43:50]RAPDU: 90 00 [12:43:50]wFMCommunicate OK [12:43:50]wFMCommunicate request_size=255 [12:43:50]MH_SAM_APDU [12:43:50]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 06 FB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6E 78 03 00 35 04 06 00 38 FE 66 A0 [12:43:50]Write to MH i2c: E2 02 01 E7 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 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 06 FB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6E 78 03 00 35 04 06 00 38 FE 66 A0 00 00 54 [12:43:50]Write i2c OK [12:43:50]MH_I2C_Read... [12:43:51]OFD Sender: No OFD packet to send [12:43:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:51]Read from MH i2c: E2 [12:43:51]MH_I2C_Read... [12:43:51]Read from MH i2c: E2 03 00 [12:43:51]MH_I2C_Read... [12:43:51]Read from MH i2c: E2 03 00 E7 1A 00 90 00 75 [12:43:51]RAPDU: 90 00 [12:43:51]wFMCommunicate OK [12:43:51]wFMCommunicate request_size=7 [12:43:51]MH_SAM_APDU [12:43:51]CAPDU: 80 0D 02 02 02 D7 C3 [12:43:51]Write to MH i2c: E2 0A 00 E8 1A 80 0D 02 02 02 00 D7 C3 00 00 1A [12:43:51]Write i2c OK [12:43:51]MH_I2C_Read... [12:43:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:51]Read from MH i2c: E2 [12:43:51]MH_I2C_Read... [12:43:51]Read from MH i2c: E2 03 00 [12:43:51]MH_I2C_Read... [12:43:51]Read from MH i2c: E2 03 00 E8 1A 00 90 00 76 [12:43:51]RAPDU: 90 00 [12:43:51]wFMCommunicate OK [12:43:51]wFMCommunicate request_size=4 [12:43:51]MH_SAM_APDU [12:43:51]CAPDU: 80 0D 03 02 [12:43:51]Write to MH i2c: E2 08 00 E9 1A 80 0D 03 02 00 00 00 00 7E [12:43:51]Write i2c OK [12:43:51]MH_I2C_Read... [12:43:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:43:51]Read from MH i2c: E2 [12:43:51]MH_I2C_Read... [12:43:51]Read from MH i2c: E2 0B 00 [12:43:51]MH_I2C_Read... [12:43:51]Read from MH i2c: E2 0B 00 E9 1A 00 4A C1 67 23 D5 02 1B 6D 90 00 73 [12:43:51]RAPDU: 4A C1 67 23 D5 02 1B 6D 90 00 [12:43:51]wFMCommunicate OK [12:43:51]SAM_PROTO_SignData done [12:43:51]FM_MakeSignedData done [12:43:51]CreateOFDProtocolMessage [12:43:51]wFMCommunicate request_size=4 [12:43:51]MH_SAM_APDU [12:43:51]CAPDU: 80 11 00 00 [12:43:51]Write to MH i2c: E2 08 00 EA 1A 80 11 00 00 00 00 00 00 7E [12:43:51]Write i2c OK [12:43:51]MH_I2C_Read... [12:43:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:51]Read from MH i2c: E2 [12:43:51]MH_I2C_Read... [12:43:51]Read from MH i2c: E2 17 00 [12:43:51]MH_I2C_Read... [12:43:51]Read from MH i2c: E2 17 00 EA 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D5 [12:43:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:43:51]wFMCommunicate OK [12:43:51]CreateOFDProtocolMessage done [12:43:51]OFDSenderStorePacket 227438 [12:43:51]StoreOFDPacket docnum=227438 [12:43:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 63 D8 04 01 06 61 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 06 FB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6E 78 03 00 35 04 06 00 38 FE 66 A0 D7 C3 4A C1 67 23 D5 02 1B 6D [12:43:51]CheckFolder [12:43:51]dirname=/storage/ofd_packets [12:43:51]CheckFolder done [12:43:51]ProducePacketName [12:43:51]name=ofd_packets/00227438 [12:43:51]NVStorageSaveData ofd_packets/00227438 [12:43:51]File name is /storage/ofd_packets/00227438 [12:43:51]Write 298 bytes [12:43:51]NVStorageSaveData done [12:43:51]OFDSenderStorePacket done [12:43:51]KKMCreateOFDPacket done [12:43:51]NVStorageSaveData kkm_last_timestamp [12:43:51]File name is /storage/kkm_last_timestamp [12:43:51]Write 4 bytes [12:43:51]NVStorageSaveData done [12:43:51]ExternCall_PrintAddStr [12:43:51]wPrintStart [12:43:51]Write to MH i2c: 01 00 00 EB 1A 05 [12:43:51]Write i2c OK [12:43:51]MH_I2C_Read... [12:43:51]Read from MH i2c: 01 [12:43:51]MH_I2C_Read... [12:43:51]Read from MH i2c: 01 07 00 [12:43:51]MH_I2C_Read... [12:43:51]Read from MH i2c: 01 07 00 EB 1A 00 00 00 00 00 FF 0F 1A [12:43:51]RasterBufferAndPrint [12:43:51]line Счет N : (1)1962958 [12:43:51]line ИНН: 02508201610067 [12:43:51]line Контрольно-Кассовый Чек [12:43:51]line ПРОДАЖА [12:43:51]line ТРК (МРК, ГНК) : 61 [12:43:51]line Товар: 2710194210 [12:43:51]line ДТ-К-5 [12:43:51]line 19.690 * 76.20 [12:43:51]line = 1500.38 [12:43:51]line НДС 12% НСП 1% [12:43:51]line > о реализуемом товаре [12:43:51]line ОКРУГЛЕНИЕ: -0.38 [12:43:51]line ИТОГО: 1500.00 [12:43:51]line Внесено: 1500.00 [12:43:51]line СДАЧА: 0.00 [12:43:51]line НСП 1% : 13.28 [12:43:51]line НДС 12% : 159.33 [12:43:51]line Наличными: 1500.00 [12:43:51]line Безнал.: 0.00 [12:43:51]line Место: АЗС № 133 "Партнер Нефть" [12:43:51]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:43:51]line СНО: Общий режим [12:43:51]line Чек 286 20.10.2024 12:43 [12:43:51]line Смена: 533 ФФД: 1.0 [12:43:51]line ЗНМ: 0300000091 [12:43:51]line РНМ: 0000000000091685 [12:43:51]line Версия ККМ: 001 [12:43:51]line ФМ: 0000000000871839 [12:43:51]line ФД: 227438 [12:43:51]line ФПД: 62665294665667 [12:43:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T124350&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227438&fm=62665294665667&tin=02508201610067®Number=0000000000091685&sum=150000 [12:43:51]OFD Sender: Processing packet 227438 [packets to send 38, broken 37] [12:43:51]ProducePacketName [12:43:51]name=ofd_packets/00227438 [12:43:51]OFD Sender: To server: pG, [12:43:51]CommunicateWithHost lk.salyk.kg:30040 [12:43:51]ConnectInit lk.salyk.kg [12:43:51]written 0, free lines is 4095 [12:43:51]Connected sock=10 [12:43: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 33 39 0C 01 00 00 63 D8 04 01 06 61 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 06 FB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6E 78 03 00 35 04 06 00 38 FE 66 A0 D7 C3 4A C1 67 23 D5 02 1B 6D [12:43: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 33 39 4F 00 00 00 86 89 47 00 0B 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 33 39 10 04 04 00 6E 78 03 00 F4 03 04 00 05 A6 14 67 B6 04 01 00 00 49 E6 18 71 9D AF 3D 69 [12:43:52]CommunicateWithHost err = 0 [12:43:52]CheckOFDResponse [12:43:52]1017 (14) - 77093643461234 [12:43:52]1041 (16) - 0000000000871839 [12:43:52]1040 (4) - 227438 [12:43:52]1012 (4) - 20.10.2024 06:41 [12:43:52]1206 (1) - 0 [12:43:52]OFD Sender: Remove packet 227438 [12:43:52]ProducePacketName [12:43:52]name=ofd_packets/00227438 [12:43:52]NVStorageDeleteData [12:43:52]Write to MH i2c: 01 00 00 15 1B 30 [12:43:52]Write i2c OK [12:43:52]MH_I2C_Read... [12:43:52]Read from MH i2c: 01 [12:43:52]MH_I2C_Read... [12:43:52]Read from MH i2c: 01 07 00 [12:43:52]MH_I2C_Read... [12:43:52]Read from MH i2c: 01 07 00 15 1B 00 00 00 00 00 1C 0D 60 [12:43:52]RasterBufferAndPrint [12:43:52]line [12:43:52]line [12:43:52]line [12:43:52]line [12:43:52]line [12:43:52]written 0, free lines is 3362 [12:43:52]process_action close_receipt done [12:43:52]requested_data is exist [12:43:52]produce_requested_data [12:43:52]requested_item fm.sn is exist - process it [12:43:52]wFMCommunicate request_size=4 [12:43:52]MH_SAM_APDU [12:43:52]CAPDU: 80 11 00 00 [12:43:52]Write to MH i2c: E2 08 00 1C 1B 80 11 00 00 00 00 00 00 B1 [12:43:52]Write i2c OK [12:43:52]MH_I2C_Read... [12:43:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:52]Read from MH i2c: E2 [12:43:52]MH_I2C_Read... [12:43:52]Read from MH i2c: E2 17 00 [12:43:52]MH_I2C_Read... [12:43:52]Read from MH i2c: E2 17 00 1C 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 08 [12:43:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:43:52]wFMCommunicate OK [12:43:52]requested_item fd.num is exist - process it [12:43:52]SAM_PROTO_GetFieldsCounters [12:43:52]wFMCommunicate request_size=4 [12:43:52]MH_SAM_APDU [12:43:52]CAPDU: 80 13 00 00 [12:43:52]Write to MH i2c: E2 08 00 1D 1B 80 13 00 00 00 00 00 00 B4 [12:43:52]Write i2c OK [12:43:52]MH_I2C_Read... [12:43:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:43:52]Read from MH i2c: E2 [12:43:52]MH_I2C_Read... [12:43:52]Read from MH i2c: E2 62 00 [12:43:52]MH_I2C_Read... [12:43:52]Read from MH i2c: E2 62 00 1D 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6E 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 3A [12:43: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6E 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:43:52]wFMCommunicate OK [12:43:52]SAM_PROTO_GetFieldsCounters done [12:43:52]requested_item shift.num is exist - process it [12:43:52]requested_item shift.opened is exist - process it [12:43:52]req_shift_opened [12:43:52]FM_GetShiftState [12:43:52]SAM_PROTO_GetShiftState [12:43:52]wFMCommunicate request_size=4 [12:43:52]MH_SAM_APDU [12:43:52]CAPDU: 80 13 01 00 [12:43:52]Write to MH i2c: E2 08 00 1E 1B 80 13 01 00 00 00 00 00 B6 [12:43:52]Write i2c OK [12:43:52]MH_I2C_Read... [12:43:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:52]Read from MH i2c: E2 [12:43:52]MH_I2C_Read... [12:43:52]Read from MH i2c: E2 0E 00 [12:43:52]MH_I2C_Read... [12:43:52]Read from MH i2c: E2 0E 00 1E 1B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 D0 [12:43:52]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:43:52]wFMCommunicate OK [12:43:52]SAM_PROTO_GetShiftState done [12:43:52]FM_GetShiftState done [12:43:52]req_shift_opened done [12:43:52]requested_item shift.open_date is exist - process it [12:43:52]req_shift_open_date [12:43:52]req_shift_open_date done [12:43:52]produce_requested_data done [12:43:52]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227438,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [12:43:52]process_action_free close_receipt [12:43:52]json_value_free [12:43:52]json_value_free done [12:43:52]process_json_proto returns [12:43:52]Send response to host [12:43:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227438,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [12:43:52]free response buf [12:43:52]execute_script done [12:43:52]execute_script returns [12:43:52]free content buf [12:43:52]Sock 9.Close socket [12:43:52]Sock 9.Thread stoped [12:43:52]OFD Sender: No OFD packet to send [12:43:57]OFD Sender: No OFD packet to send [12:44:02]OFD Sender: No OFD packet to send [12:44:07]OFD Sender: No OFD packet to send [12:44:12]OFD Sender: No OFD packet to send [12:44:17]OFD Sender: No OFD packet to send [12:44:22]OFD Sender: No OFD packet to send [12:44:27]OFD Sender: No OFD packet to send [12:44:32]OFD Sender: No OFD packet to send [12:44:37]OFD Sender: No OFD packet to send [12:44:42]OFD Sender: No OFD packet to send [12:44:47]OFD Sender: No OFD packet to send [12:44:52]OFD Sender: No OFD packet to send [12:44:57]OFD Sender: No OFD packet to send [12:45:02]OFD Sender: No OFD packet to send [12:45:07]OFD Sender: No OFD packet to send [12:45:12]OFD Sender: No OFD packet to send [12:45:17]OFD Sender: No OFD packet to send [12:45:22]OFD Sender: No OFD packet to send [12:45:27]OFD Sender: No OFD packet to send [12:45:32]OFD Sender: No OFD packet to send [12:45:37]OFD Sender: No OFD packet to send [12:45:42]OFD Sender: No OFD packet to send [12:45:47]OFD Sender: No OFD packet to send [12:45:52]OFD Sender: No OFD packet to send [12:45:57]OFD Sender: No OFD packet to send [12:46:02]OFD Sender: No OFD packet to send [12:46:07]OFD Sender: No OFD packet to send [12:46:10]accept exits with 8 [12:46:10]New connection [12:46:10]New thread 3066686820 created [12:46:10]Thread 3066543460 joined [12:46:10]Waiting for new connection... [12:46:10] Sock 8.Parse request [12:46:10]Sock 8.Check first char [12:46:10]Sock 8.First char is OK [12:46:10]request: POST /json_proto HTTP/1.0 [12:46:10]Method: POST [12:46:10]URL: /json_proto [12:46:10]Method is POST - this is cgi request [12:46:10]url: /json_proto [12:46:10]query_string will be loaded in cgi processing [12:46:10]execute_cgi json_proto POST (null) [12:46:10]execute_cgi path=json_proto method=POST [12:46:10]POST find Content-Length [12:46:10]Host: 172.17.44.195:8080 [12:46:10]Content-Length: 678 [12:46:10]Content-Type: application/json [12:46:10] [12:46:10]POST finish read [12:46:10]Found Content-Length = 678 [12:46:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962959", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:10]execute_script... [12:46:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962959", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:10]POST & json_proto [12:46:10]process_json_proto [12:46:10]json parsed OK: [12:46:10]protocol is kg_v1.0 [12:46:10]action value=close_receipt [12:46:10]process_action close_receipt [12:46:10]cmd_close_receipt [12:46:10]MH_GetDate [12:46:10]Write to MH i2c: F0 00 00 1F 1B 29 [12:46:10]Write i2c OK [12:46:10]MH_I2C_Read... [12:46:10]Read from MH i2c: F0 [12:46:10]MH_I2C_Read... [12:46:10]Read from MH i2c: F0 09 00 [12:46:10]MH_I2C_Read... [12:46:10]Read from MH i2c: F0 09 00 1F 1B 00 93 FB 14 67 82 C9 CF 66 BB [12:46:10]GetLastDocTimeStamp 1729428230 [12:46:10]current date 1729428371 [12:46:10]FM_GetShiftState [12:46:10]SAM_PROTO_GetShiftState [12:46:10]wFMCommunicate request_size=4 [12:46:10]MH_SAM_APDU [12:46:10]CAPDU: 80 13 01 00 [12:46:10]Write to MH i2c: E2 08 00 20 1B 80 13 01 00 00 00 00 00 B8 [12:46:10]Write i2c OK [12:46:10]MH_I2C_Read... [12:46:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:10]Read from MH i2c: E2 [12:46:10]MH_I2C_Read... [12:46:10]Read from MH i2c: E2 0E 00 [12:46:10]MH_I2C_Read... [12:46:10]Read from MH i2c: E2 0E 00 20 1B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 D2 [12:46:10]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:46:10]wFMCommunicate OK [12:46:10]SAM_PROTO_GetShiftState done [12:46:10]FM_GetShiftState done [12:46:10]opened in 1729383750 [12:46:10]opened+sec_in_day 1729470150 [12:46:10]quantity*price = 40006 [12:46:10]sum+1 = 40007 [12:46:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 287 20.10.2024 12:46 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227439 ФПД: 104037226164807 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T124611&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227439&fm=104037226164807&tin=02508201610067®Number=0000000000091685&sum=40000 [12:46:11]StoreToDocumentArchive [12:46:11]shift 533 fd 227439 [12:46:11]save to /storage/0533/doc_00227439 [12:46:11]save last doc name /storage/0533/doc_00227439 to /storage/kkm_last_doc_name [12:46:11]save OK [12:46:11]Clear old archive folders... [12:46:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:46:11]tlvbuf is B6E803D0 [12:46:11]SAM_PROTO_ClearQueue [12:46:11]wFMCommunicate request_size=4 [12:46:11]MH_SAM_APDU [12:46:11]CAPDU: 80 09 00 00 [12:46:11]Write to MH i2c: E2 08 00 2D 1B 80 09 00 00 00 00 00 00 BA [12:46:11]Write i2c OK [12:46:11]MH_I2C_Read... [12:46:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:46:11]Read from MH i2c: E2 [12:46:11]MH_I2C_Read... [12:46:11]Read from MH i2c: E2 03 00 [12:46:11]MH_I2C_Read... [12:46:11]Read from MH i2c: E2 03 00 2D 1B 00 90 00 BC [12:46:11]RAPDU: 90 00 [12:46:11]wFMCommunicate OK [12:46:11]SAM_PROTO_ClearQueue done [12:46:11]KKMCreateOFDPacket [12:46:11]OFDProtocolAddRootSTLVToBuf [12:46:11]FM_MakeSignedData [12:46:11]FM_MakeSignedData [12:46:11]SAM_PROTO_SignData [12:46:11]wFMCommunicate request_size=4 [12:46:11]MH_SAM_APDU [12:46:11]CAPDU: 80 0D 01 02 [12:46:11]Write to MH i2c: E2 08 00 2E 1B 80 0D 01 02 00 00 00 00 C2 [12:46:11]Write i2c OK [12:46:11]MH_I2C_Read... [12:46:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:46:11]Read from MH i2c: E2 [12:46:11]MH_I2C_Read... [12:46:11]Read from MH i2c: E2 03 00 [12:46:11]MH_I2C_Read... [12:46:11]Read from MH i2c: E2 03 00 2E 1B 00 90 00 BD [12:46:11]RAPDU: 90 00 [12:46:11]wFMCommunicate OK [12:46:11]wFMCommunicate request_size=255 [12:46:11]MH_SAM_APDU [12:46:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 93 FB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6F 78 03 00 35 04 06 00 5E [12:46:11]Write to MH i2c: E2 02 01 2F 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 93 FB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6F 78 03 00 35 04 06 00 5E 00 00 B0 [12:46:11]Write i2c OK [12:46:11]MH_I2C_Read... [12:46:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:12]Read from MH i2c: E2 [12:46:12]MH_I2C_Read... [12:46:12]Read from MH i2c: E2 03 00 [12:46:12]MH_I2C_Read... [12:46:12]Read from MH i2c: E2 03 00 2F 1B 00 90 00 BE [12:46:12]RAPDU: 90 00 [12:46:12]wFMCommunicate OK [12:46:12]wFMCommunicate request_size=10 [12:46:12]MH_SAM_APDU [12:46:12]CAPDU: 80 0D 02 02 05 9F 0D E8 B2 47 [12:46:12]Write to MH i2c: E2 0D 00 30 1B 80 0D 02 02 05 00 9F 0D E8 B2 47 00 00 5C [12:46:12]Write i2c OK [12:46:12]MH_I2C_Read... [12:46:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:12]Read from MH i2c: E2 [12:46:12]MH_I2C_Read... [12:46:12]Read from MH i2c: E2 03 00 [12:46:12]MH_I2C_Read... [12:46:12]Read from MH i2c: E2 03 00 30 1B 00 90 00 BF [12:46:12]RAPDU: 90 00 [12:46:12]wFMCommunicate OK [12:46:12]wFMCommunicate request_size=4 [12:46:12]MH_SAM_APDU [12:46:12]CAPDU: 80 0D 03 02 [12:46:12]Write to MH i2c: E2 08 00 31 1B 80 0D 03 02 00 00 00 00 C7 [12:46:12]Write i2c OK [12:46:12]MH_I2C_Read... [12:46:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:46:12]Read from MH i2c: E2 [12:46:12]MH_I2C_Read... [12:46:12]Read from MH i2c: E2 0B 00 [12:46:12]MH_I2C_Read... [12:46:12]Read from MH i2c: E2 0B 00 31 1B 00 A8 D1 C1 F0 C8 5E EA FA 90 00 FC [12:46:12]RAPDU: A8 D1 C1 F0 C8 5E EA FA 90 00 [12:46:12]wFMCommunicate OK [12:46:12]SAM_PROTO_SignData done [12:46:12]FM_MakeSignedData done [12:46:12]CreateOFDProtocolMessage [12:46:12]wFMCommunicate request_size=4 [12:46:12]MH_SAM_APDU [12:46:12]CAPDU: 80 11 00 00 [12:46:12]Write to MH i2c: E2 08 00 32 1B 80 11 00 00 00 00 00 00 C7 [12:46:12]Write i2c OK [12:46:12]MH_I2C_Read... [12:46:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:12]Read from MH i2c: E2 [12:46:12]MH_I2C_Read... [12:46:12]Read from MH i2c: E2 17 00 [12:46:12]MH_I2C_Read... [12:46:12]Read from MH i2c: E2 17 00 32 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 1E [12:46:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:46:12]wFMCommunicate OK [12:46:12]CreateOFDProtocolMessage done [12:46:12]OFDSenderStorePacket 227439 [12:46:12]StoreOFDPacket docnum=227439 [12:46:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 73 E6 07 01 72 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 93 FB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6F 78 03 00 35 04 06 00 5E 9F 0D E8 B2 47 A8 D1 C1 F0 C8 5E EA FA [12:46:12]CheckFolder [12:46:12]dirname=/storage/ofd_packets [12:46:12]CheckFolder done [12:46:12]ProducePacketName [12:46:12]name=ofd_packets/00227439 [12:46:12]NVStorageSaveData ofd_packets/00227439 [12:46:12]File name is /storage/ofd_packets/00227439 [12:46:12]Write 301 bytes [12:46:12]NVStorageSaveData done [12:46:12]OFDSenderStorePacket done [12:46:12]KKMCreateOFDPacket done [12:46:12]NVStorageSaveData kkm_last_timestamp [12:46:12]File name is /storage/kkm_last_timestamp [12:46:12]Write 4 bytes [12:46:12]NVStorageSaveData done [12:46:12]ExternCall_PrintAddStr [12:46:12]wPrintStart [12:46:12]Write to MH i2c: 01 00 00 33 1B 4E [12:46:12]Write i2c OK [12:46:12]MH_I2C_Read... [12:46:12]Read from MH i2c: 01 [12:46:12]MH_I2C_Read... [12:46:12]Read from MH i2c: 01 07 00 [12:46:12]MH_I2C_Read... [12:46:12]Read from MH i2c: 01 07 00 33 1B 00 00 00 00 00 FF 0F 63 [12:46:12]RasterBufferAndPrint [12:46:12]line Счет N : (1)1962959 [12:46:12]line ИНН: 02508201610067 [12:46:12]line Контрольно-Кассовый Чек [12:46:12]line ПРОДАЖА [12:46:12]line ТРК (МРК, ГНК) : 53 [12:46:12]line Товар: 2710124130 [12:46:12]line Аи-92-К-5 [12:46:12]line 5.980 * 66.90 [12:46:12]line = 400.06 [12:46:12]line НДС 12% НСП 1% [12:46:12]line > о реализуемом товаре [12:46:12]line ОКРУГЛЕНИЕ: -0.06 [12:46:12]line ИТОГО: 400.00 [12:46:12]line Внесено: 400.00 [12:46:12]line СДАЧА: 0.00 [12:46:12]line НСП 1% : 3.54 [12:46:12]line НДС 12% : 42.48 [12:46:12]line Наличными: 400.00 [12:46:12]line Безнал.: 0.00 [12:46:12]line Место: АЗС № 133 "Партнер Нефть" [12:46:12]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:46:12]line СНО: Общий режим [12:46:12]line Чек 287 20.10.2024 12:46 [12:46:12]line Смена: 533 ФФД: 1.0 [12:46:12]line ЗНМ: 0300000091 [12:46:12]line РНМ: 0000000000091685 [12:46:12]line Версия ККМ: 001 [12:46:12]line ФМ: 0000000000871839 [12:46:12]line ФД: 227439 [12:46:12]line ФПД: 104037226164807 [12:46:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T124611&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227439&fm=104037226164807&tin=02508201610067®Number=0000000000091685&sum=40000 [12:46:12]written 0, free lines is 4095 [12:46:12]OFD Sender: Processing packet 227439 [packets to send 38, broken 37] [12:46:12]ProducePacketName [12:46:12]name=ofd_packets/00227439 [12:46:12]OFD Sender: To server: pG, [12:46:12]CommunicateWithHost lk.salyk.kg:30040 [12:46:12]ConnectInit lk.salyk.kg [12:46:12]Connected sock=10 [12:46: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 33 39 0F 01 00 00 73 E6 07 01 72 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 93 FB 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6F 78 03 00 35 04 06 00 5E 9F 0D E8 B2 47 A8 D1 C1 F0 C8 5E EA FA [12:46:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 04 9D 47 00 AD 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 33 39 10 04 04 00 6F 78 03 00 F4 03 04 00 92 A6 14 67 B6 04 01 00 00 94 E7 85 03 CE 3E E3 3D [12:46:12]CommunicateWithHost err = 0 [12:46:12]CheckOFDResponse [12:46:12]1017 (14) - 77093643461234 [12:46:12]1041 (16) - 0000000000871839 [12:46:12]1040 (4) - 227439 [12:46:12]1012 (4) - 20.10.2024 06:43 [12:46:12]1206 (1) - 0 [12:46:12]OFD Sender: Remove packet 227439 [12:46:12]ProducePacketName [12:46:12]name=ofd_packets/00227439 [12:46:12]NVStorageDeleteData [12:46:12]Write to MH i2c: 01 00 00 5D 1B 78 [12:46:12]Write i2c OK [12:46:12]MH_I2C_Read... [12:46:12]Read from MH i2c: 01 [12:46:12]MH_I2C_Read... [12:46:12]Read from MH i2c: 01 07 00 [12:46:12]MH_I2C_Read... [12:46:12]Read from MH i2c: 01 07 00 5D 1B 00 00 00 00 00 1A 0D A6 [12:46:12]RasterBufferAndPrint [12:46:12]line [12:46:12]line [12:46:12]line [12:46:12]line [12:46:12]line [12:46:12]written 0, free lines is 3363 [12:46:12]process_action close_receipt done [12:46:12]requested_data is exist [12:46:12]produce_requested_data [12:46:12]requested_item fm.sn is exist - process it [12:46:12]wFMCommunicate request_size=4 [12:46:12]MH_SAM_APDU [12:46:12]CAPDU: 80 11 00 00 [12:46:12]Write to MH i2c: E2 08 00 64 1B 80 11 00 00 00 00 00 00 F9 [12:46:12]Write i2c OK [12:46:12]MH_I2C_Read... [12:46:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:12]Read from MH i2c: E2 [12:46:12]MH_I2C_Read... [12:46:12]Read from MH i2c: E2 17 00 [12:46:12]MH_I2C_Read... [12:46:12]Read from MH i2c: E2 17 00 64 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 50 [12:46:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:46:12]wFMCommunicate OK [12:46:12]requested_item fd.num is exist - process it [12:46:12]SAM_PROTO_GetFieldsCounters [12:46:12]wFMCommunicate request_size=4 [12:46:12]MH_SAM_APDU [12:46:12]CAPDU: 80 13 00 00 [12:46:12]Write to MH i2c: E2 08 00 65 1B 80 13 00 00 00 00 00 00 FC [12:46:12]Write i2c OK [12:46:12]MH_I2C_Read... [12:46:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:46:12]Read from MH i2c: E2 [12:46:12]MH_I2C_Read... [12:46:12]Read from MH i2c: E2 62 00 [12:46:12]MH_I2C_Read... [12:46:12]Read from MH i2c: E2 62 00 65 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6F 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 86 [12:46: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6F 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:46:12]wFMCommunicate OK [12:46:12]SAM_PROTO_GetFieldsCounters done [12:46:12]requested_item shift.num is exist - process it [12:46:12]requested_item shift.opened is exist - process it [12:46:12]req_shift_opened [12:46:12]FM_GetShiftState [12:46:12]SAM_PROTO_GetShiftState [12:46:12]wFMCommunicate request_size=4 [12:46:12]MH_SAM_APDU [12:46:12]CAPDU: 80 13 01 00 [12:46:12]Write to MH i2c: E2 08 00 66 1B 80 13 01 00 00 00 00 00 FE [12:46:12]Write i2c OK [12:46:12]MH_I2C_Read... [12:46:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:13]Read from MH i2c: E2 [12:46:13]MH_I2C_Read... [12:46:13]Read from MH i2c: E2 0E 00 [12:46:13]MH_I2C_Read... [12:46:13]Read from MH i2c: E2 0E 00 66 1B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 18 [12:46:13]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:46:13]wFMCommunicate OK [12:46:13]SAM_PROTO_GetShiftState done [12:46:13]FM_GetShiftState done [12:46:13]req_shift_opened done [12:46:13]requested_item shift.open_date is exist - process it [12:46:13]req_shift_open_date [12:46:13]req_shift_open_date done [12:46:13]produce_requested_data done [12:46:13]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227439,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [12:46:13]process_action_free close_receipt [12:46:13]json_value_free [12:46:13]json_value_free done [12:46:13]process_json_proto returns [12:46:13]Send response to host [12:46:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227439,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [12:46:13]free response buf [12:46:13]execute_script done [12:46:13]execute_script returns [12:46:13]free content buf [12:46:13]Sock 8.Close socket [12:46:13]Sock 8.Thread stoped [12:46:13]OFD Sender: No OFD packet to send [12:46:18]OFD Sender: No OFD packet to send [12:46:23]OFD Sender: No OFD packet to send [12:46:28]OFD Sender: No OFD packet to send [12:46:33]OFD Sender: No OFD packet to send [12:46:38]OFD Sender: No OFD packet to send [12:46:43]OFD Sender: No OFD packet to send [12:46:48]OFD Sender: No OFD packet to send [12:46:53]OFD Sender: No OFD packet to send [12:46:58]OFD Sender: No OFD packet to send [12:47:03]OFD Sender: No OFD packet to send [12:47:08]OFD Sender: No OFD packet to send [12:47:13]OFD Sender: No OFD packet to send [12:47:18]OFD Sender: No OFD packet to send [12:47:23]OFD Sender: No OFD packet to send [12:47:28]OFD Sender: No OFD packet to send [12:47:33]OFD Sender: No OFD packet to send [12:47:38]OFD Sender: No OFD packet to send [12:47:43]OFD Sender: No OFD packet to send [12:47:48]OFD Sender: No OFD packet to send [12:47:53]OFD Sender: No OFD packet to send [12:47:58]OFD Sender: No OFD packet to send [12:48:03]OFD Sender: No OFD packet to send [12:48:08]OFD Sender: No OFD packet to send [12:48:13]OFD Sender: No OFD packet to send [12:48:18]OFD Sender: No OFD packet to send [12:48:23]OFD Sender: No OFD packet to send [12:48:28]OFD Sender: No OFD packet to send [12:48:33]OFD Sender: No OFD packet to send [12:48:38]OFD Sender: No OFD packet to send [12:48:43]OFD Sender: No OFD packet to send [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:32]accept exits with 9 [12:49:32]New connection [12:49:32]New thread 3066543460 created [12:49:32]Thread 3066686820 joined [12:49:32]Waiting for new connection... [12:49:32] Sock 9.Parse request [12:49:32]Sock 9.Check first char [12:49:32]Sock 9.First char is OK [12:49:32]request: POST /json_proto HTTP/1.0 [12:49:32]Method: POST [12:49:32]URL: /json_proto [12:49:32]Method is POST - this is cgi request [12:49:32]url: /json_proto [12:49:32]query_string will be loaded in cgi processing [12:49:32]execute_cgi json_proto POST (null) [12:49:32]execute_cgi path=json_proto method=POST [12:49:32]POST find Content-Length [12:49:32]Host: 172.17.44.195:8080 [12:49:32]Content-Length: 683 [12:49:32]Content-Type: application/json [12:49:32] [12:49:32]POST finish read [12:49:32]Found Content-Length = 683 [12:49:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962960", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:32]execute_script... [12:49: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)1962960", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:32]POST & json_proto [12:49:32]process_json_proto [12:49:32]json parsed OK: [12:49:32]protocol is kg_v1.0 [12:49:32]action value=close_receipt [12:49:32]process_action close_receipt [12:49:32]cmd_close_receipt [12:49:32]MH_GetDate [12:49:32]Write to MH i2c: F0 00 00 67 1B 71 [12:49:32]Write i2c OK [12:49:32]MH_I2C_Read... [12:49:32]Read from MH i2c: F0 [12:49:32]MH_I2C_Read... [12:49:32]Read from MH i2c: F0 09 00 [12:49:32]MH_I2C_Read... [12:49:32]Read from MH i2c: F0 09 00 67 1B 00 5D FC 14 67 82 C9 CF 66 CE [12:49:32]GetLastDocTimeStamp 1729428371 [12:49:32]current date 1729428573 [12:49:32]FM_GetShiftState [12:49:32]SAM_PROTO_GetShiftState [12:49:32]wFMCommunicate request_size=4 [12:49:32]MH_SAM_APDU [12:49:32]CAPDU: 80 13 01 00 [12:49:32]Write to MH i2c: E2 08 00 68 1B 80 13 01 00 00 00 00 00 00 [12:49:32]Write i2c OK [12:49:32]MH_I2C_Read... [12:49:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:32]Read from MH i2c: E2 [12:49:32]MH_I2C_Read... [12:49:32]Read from MH i2c: E2 0E 00 [12:49:32]MH_I2C_Read... [12:49:32]Read from MH i2c: E2 0E 00 68 1B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 1A [12:49:32]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:49:32]wFMCommunicate OK [12:49:32]SAM_PROTO_GetShiftState done [12:49:32]FM_GetShiftState done [12:49:32]opened in 1729383750 [12:49:32]opened+sec_in_day 1729470150 [12:49:32]quantity*price = 150032 [12:49:32]sum+1 = 150033 [12:49:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 288 20.10.2024 12:49 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227440 ФПД: 23232718835795 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T124933&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227440&fm=23232718835795&tin=02508201610067®Number=0000000000091685&sum=150000 [12:49:33]StoreToDocumentArchive [12:49:33]shift 533 fd 227440 [12:49:33]save to /storage/0533/doc_00227440 [12:49:33]save last doc name /storage/0533/doc_00227440 to /storage/kkm_last_doc_name [12:49:33]save OK [12:49:33]Clear old archive folders... [12:49:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:49:33]tlvbuf is B6E67090 [12:49:33]SAM_PROTO_ClearQueue [12:49:33]wFMCommunicate request_size=4 [12:49:33]MH_SAM_APDU [12:49:33]CAPDU: 80 09 00 00 [12:49:33]Write to MH i2c: E2 08 00 75 1B 80 09 00 00 00 00 00 00 02 [12:49:33]Write i2c OK [12:49:33]MH_I2C_Read... [12:49:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:49:33]Read from MH i2c: E2 [12:49:33]MH_I2C_Read... [12:49:33]Read from MH i2c: E2 03 00 [12:49:33]MH_I2C_Read... [12:49:33]Read from MH i2c: E2 03 00 75 1B 00 90 00 04 [12:49:33]RAPDU: 90 00 [12:49:33]wFMCommunicate OK [12:49:33]SAM_PROTO_ClearQueue done [12:49:33]KKMCreateOFDPacket [12:49:33]OFDProtocolAddRootSTLVToBuf [12:49:33]FM_MakeSignedData [12:49:33]FM_MakeSignedData [12:49:33]SAM_PROTO_SignData [12:49:33]wFMCommunicate request_size=4 [12:49:33]MH_SAM_APDU [12:49:33]CAPDU: 80 0D 01 02 [12:49:33]Write to MH i2c: E2 08 00 76 1B 80 0D 01 02 00 00 00 00 0A [12:49:33]Write i2c OK [12:49:33]MH_I2C_Read... [12:49:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:49:34]Read from MH i2c: E2 [12:49:34]MH_I2C_Read... [12:49:34]Read from MH i2c: E2 03 00 [12:49:34]MH_I2C_Read... [12:49:34]Read from MH i2c: E2 03 00 76 1B 00 90 00 05 [12:49:34]RAPDU: 90 00 [12:49:34]wFMCommunicate OK [12:49:34]wFMCommunicate request_size=255 [12:49:34]MH_SAM_APDU [12:49: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 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 5D FC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 70 78 03 00 35 04 06 00 15 [12:49:34]Write to MH i2c: E2 02 01 77 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 5D FC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 70 78 03 00 35 04 06 00 15 00 00 10 [12:49:34]Write i2c OK [12:49:34]MH_I2C_Read... [12:49:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:34]Read from MH i2c: E2 [12:49:34]MH_I2C_Read... [12:49:34]Read from MH i2c: E2 03 00 [12:49:34]MH_I2C_Read... [12:49:34]Read from MH i2c: E2 03 00 77 1B 00 90 00 06 [12:49:34]RAPDU: 90 00 [12:49:34]wFMCommunicate OK [12:49:34]wFMCommunicate request_size=10 [12:49:34]MH_SAM_APDU [12:49:34]CAPDU: 80 0D 02 02 05 21 49 F4 10 53 [12:49:34]Write to MH i2c: E2 0D 00 78 1B 80 0D 02 02 05 00 21 49 F4 10 53 00 00 D8 [12:49:34]Write i2c OK [12:49:34]MH_I2C_Read... [12:49:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:34]Read from MH i2c: E2 [12:49:34]MH_I2C_Read... [12:49:34]Read from MH i2c: E2 03 00 [12:49:34]MH_I2C_Read... [12:49:34]Read from MH i2c: E2 03 00 78 1B 00 90 00 07 [12:49:34]RAPDU: 90 00 [12:49:34]wFMCommunicate OK [12:49:34]wFMCommunicate request_size=4 [12:49:34]MH_SAM_APDU [12:49:34]CAPDU: 80 0D 03 02 [12:49:34]Write to MH i2c: E2 08 00 79 1B 80 0D 03 02 00 00 00 00 0F [12:49:34]Write i2c OK [12:49:34]MH_I2C_Read... [12:49:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:49:34]Read from MH i2c: E2 [12:49:34]MH_I2C_Read... [12:49:34]Read from MH i2c: E2 0B 00 [12:49:34]MH_I2C_Read... [12:49:34]Read from MH i2c: E2 0B 00 79 1B 00 14 AB 1E A5 AF B6 64 2B 90 00 86 [12:49:34]RAPDU: 14 AB 1E A5 AF B6 64 2B 90 00 [12:49:34]wFMCommunicate OK [12:49:34]SAM_PROTO_SignData done [12:49:34]FM_MakeSignedData done [12:49:34]CreateOFDProtocolMessage [12:49:34]wFMCommunicate request_size=4 [12:49:34]MH_SAM_APDU [12:49:34]CAPDU: 80 11 00 00 [12:49:34]Write to MH i2c: E2 08 00 7A 1B 80 11 00 00 00 00 00 00 0F [12:49:34]Write i2c OK [12:49:34]MH_I2C_Read... [12:49:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:34]Read from MH i2c: E2 [12:49:34]MH_I2C_Read... [12:49:34]Read from MH i2c: E2 17 00 [12:49:34]MH_I2C_Read... [12:49:34]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 33 39 90 00 66 [12:49:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:49:34]wFMCommunicate OK [12:49:34]CreateOFDProtocolMessage done [12:49:34]OFDSenderStorePacket 227440 [12:49:34]StoreOFDPacket docnum=227440 [12:49:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 EB A9 07 01 26 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 5D FC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 70 78 03 00 35 04 06 00 15 21 49 F4 10 53 14 AB 1E A5 AF B6 64 2B [12:49:34]CheckFolder [12:49:34]dirname=/storage/ofd_packets [12:49:34]CheckFolder done [12:49:34]ProducePacketName [12:49:34]name=ofd_packets/00227440 [12:49:34]NVStorageSaveData ofd_packets/00227440 [12:49:34]File name is /storage/ofd_packets/00227440 [12:49:34]Write 301 bytes [12:49:34]NVStorageSaveData done [12:49:34]OFDSenderStorePacket done [12:49:34]KKMCreateOFDPacket done [12:49:34]NVStorageSaveData kkm_last_timestamp [12:49:34]File name is /storage/kkm_last_timestamp [12:49:34]Write 4 bytes [12:49:34]NVStorageSaveData done [12:49:34]ExternCall_PrintAddStr [12:49:34]wPrintStart [12:49:34]Write to MH i2c: 01 00 00 7B 1B 96 [12:49:34]Write i2c OK [12:49:34]MH_I2C_Read... [12:49:34]Read from MH i2c: 01 [12:49:34]MH_I2C_Read... [12:49:34]Read from MH i2c: 01 07 00 [12:49:34]MH_I2C_Read... [12:49:34]Read from MH i2c: 01 07 00 7B 1B 00 00 00 00 00 FF 0F AB [12:49:34]RasterBufferAndPrint [12:49:34]line Счет N : (1)1962960 [12:49:34]line ИНН: 02508201610067 [12:49:34]line Контрольно-Кассовый Чек [12:49:34]line ПРОДАЖА [12:49:34]line ТРК (МРК, ГНК) : 34 [12:49:34]line Товар: 2710124500 [12:49:34]line Аи-95-К-5 [12:49:34]line 20.220 * 74.20 [12:49:34]line = 1500.32 [12:49:34]line НДС 12% НСП 1% [12:49:34]line > о реализуемом товаре [12:49:34]line ОКРУГЛЕНИЕ: -0.32 [12:49:34]line ИТОГО: 1500.00 [12:49:34]line Внесено: 1500.00 [12:49:34]line СДАЧА: 0.00 [12:49:34]line НСП 1% : 13.28 [12:49:34]line НДС 12% : 159.33 [12:49:34]line Наличными: 1500.00 [12:49:34]line Безнал.: 0.00 [12:49:34]line Место: АЗС № 133 "Партнер Нефть" [12:49:34]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:49:34]line СНО: Общий режим [12:49:34]line Чек 288 20.10.2024 12:49 [12:49:34]line Смена: 533 ФФД: 1.0 [12:49:34]line ЗНМ: 0300000091 [12:49:34]line РНМ: 0000000000091685 [12:49:34]line Версия ККМ: 001 [12:49:34]line ФМ: 0000000000871839 [12:49:34]line ФД: 227440 [12:49:34]line ФПД: 23232718835795 [12:49:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T124933&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227440&fm=23232718835795&tin=02508201610067®Number=0000000000091685&sum=150000 [12:49:34]OFD Sender: Processing packet 227440 [packets to send 38, broken 37] [12:49:34]ProducePacketName [12:49:34]name=ofd_packets/00227440 [12:49:34]OFD Sender: To server: pG, [12:49:34]CommunicateWithHost lk.salyk.kg:30040 [12:49:34]ConnectInit lk.salyk.kg [12:49:34]written 0, free lines is 4095 [12:49:34]Connected sock=10 [12:49: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 33 39 0F 01 00 00 EB A9 07 01 26 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 5D FC 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 70 78 03 00 35 04 06 00 15 21 49 F4 10 53 14 AB 1E A5 AF B6 64 2B [12:49: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 33 39 4F 00 00 00 0C E7 47 00 9F D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 70 78 03 00 F4 03 04 00 5C A7 14 67 B6 04 01 00 00 0B 55 FE F5 97 41 B3 73 [12:49:35]CommunicateWithHost err = 0 [12:49:35]CheckOFDResponse [12:49:35]1017 (14) - 77093643461234 [12:49:35]1041 (16) - 0000000000871839 [12:49:35]1040 (4) - 227440 [12:49:35]1012 (4) - 20.10.2024 06:46 [12:49:35]1206 (1) - 0 [12:49:35]OFD Sender: Remove packet 227440 [12:49:35]ProducePacketName [12:49:35]name=ofd_packets/00227440 [12:49:35]NVStorageDeleteData [12:49:35]Write to MH i2c: 01 00 00 A5 1B C0 [12:49:35]Write i2c OK [12:49:35]MH_I2C_Read... [12:49:35]Read from MH i2c: 01 [12:49:35]MH_I2C_Read... [12:49:35]Read from MH i2c: 01 07 00 [12:49:35]MH_I2C_Read... [12:49:35]Read from MH i2c: 01 07 00 A5 1B 00 00 00 00 00 15 0D E9 [12:49:35]RasterBufferAndPrint [12:49:35]line [12:49:35]line [12:49:35]line [12:49:35]line [12:49:35]line [12:49:35]written 0, free lines is 3355 [12:49:35]process_action close_receipt done [12:49:35]requested_data is exist [12:49:35]produce_requested_data [12:49:35]requested_item fm.sn is exist - process it [12:49:35]wFMCommunicate request_size=4 [12:49:35]MH_SAM_APDU [12:49:35]CAPDU: 80 11 00 00 [12:49:35]Write to MH i2c: E2 08 00 AC 1B 80 11 00 00 00 00 00 00 41 [12:49:35]Write i2c OK [12:49:35]MH_I2C_Read... [12:49:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:35]Read from MH i2c: E2 [12:49:35]MH_I2C_Read... [12:49:35]Read from MH i2c: E2 17 00 [12:49:35]MH_I2C_Read... [12:49:35]Read from MH i2c: E2 17 00 AC 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 98 [12:49:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:49:35]wFMCommunicate OK [12:49:35]requested_item fd.num is exist - process it [12:49:35]SAM_PROTO_GetFieldsCounters [12:49:35]wFMCommunicate request_size=4 [12:49:35]MH_SAM_APDU [12:49:35]CAPDU: 80 13 00 00 [12:49:35]Write to MH i2c: E2 08 00 AD 1B 80 13 00 00 00 00 00 00 44 [12:49:35]Write i2c OK [12:49:35]MH_I2C_Read... [12:49:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:49:35]Read from MH i2c: E2 [12:49:35]MH_I2C_Read... [12:49:35]Read from MH i2c: E2 62 00 [12:49:35]MH_I2C_Read... [12:49:35]Read from MH i2c: E2 62 00 AD 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 70 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 20 01 00 00 5E 04 04 00 20 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 D2 [12:49: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 70 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 20 01 00 00 5E 04 04 00 20 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:49:35]wFMCommunicate OK [12:49:35]SAM_PROTO_GetFieldsCounters done [12:49:35]requested_item shift.num is exist - process it [12:49:35]requested_item shift.opened is exist - process it [12:49:35]req_shift_opened [12:49:35]FM_GetShiftState [12:49:35]SAM_PROTO_GetShiftState [12:49:35]wFMCommunicate request_size=4 [12:49:35]MH_SAM_APDU [12:49:35]CAPDU: 80 13 01 00 [12:49:35]Write to MH i2c: E2 08 00 AE 1B 80 13 01 00 00 00 00 00 46 [12:49:35]Write i2c OK [12:49:35]MH_I2C_Read... [12:49:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:35]Read from MH i2c: E2 [12:49:35]MH_I2C_Read... [12:49:35]Read from MH i2c: E2 0E 00 [12:49:35]MH_I2C_Read... [12:49:35]Read from MH i2c: E2 0E 00 AE 1B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 60 [12:49:35]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:49:35]wFMCommunicate OK [12:49:35]SAM_PROTO_GetShiftState done [12:49:35]FM_GetShiftState done [12:49:35]req_shift_opened done [12:49:35]requested_item shift.open_date is exist - process it [12:49:35]req_shift_open_date [12:49:35]req_shift_open_date done [12:49:35]produce_requested_data done [12:49:35]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227440,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [12:49:35]process_action_free close_receipt [12:49:35]json_value_free [12:49:35]json_value_free done [12:49:35]process_json_proto returns [12:49:35]Send response to host [12:49:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227440,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [12:49:35]free response buf [12:49:35]execute_script done [12:49:35]execute_script returns [12:49:35]free content buf [12:49:35]Sock 9.Close socket [12:49:35]Sock 9.Thread stoped [12:49:35]OFD Sender: No OFD packet to send [12:49:40]OFD Sender: No OFD packet to send [12:49:45]OFD Sender: No OFD packet to send [12:49:50]OFD Sender: No OFD packet to send [12:49:55]OFD Sender: No OFD packet to send [12:50:00]OFD Sender: No OFD packet to send [12:50:05]OFD Sender: No OFD packet to send [12:50:10]OFD Sender: No OFD packet to send [12:50:15]OFD Sender: No OFD packet to send [12:50:20]OFD Sender: No OFD packet to send [12:50:25]OFD Sender: No OFD packet to send [12:50:30]OFD Sender: No OFD packet to send [12:50:35]OFD Sender: No OFD packet to send [12:50:40]OFD Sender: No OFD packet to send [12:50:45]OFD Sender: No OFD packet to send [12:50:50]OFD Sender: No OFD packet to send [12:50:55]OFD Sender: No OFD packet to send [12:51:00]OFD Sender: No OFD packet to send [12:51:05]OFD Sender: No OFD packet to send [12:51:10]OFD Sender: No OFD packet to send [12:51:15]OFD Sender: No OFD packet to send [12:51:20]OFD Sender: No OFD packet to send [12:51:25]OFD Sender: No OFD packet to send [12:51:30]OFD Sender: No OFD packet to send [12:51:35]OFD Sender: No OFD packet to send [12:51:40]OFD Sender: No OFD packet to send [12:51:45]OFD Sender: No OFD packet to send [12:51:50]OFD Sender: No OFD packet to send [12:51:55]OFD Sender: No OFD packet to send [12:52:00]OFD Sender: No OFD packet to send [12:52:05]OFD Sender: No OFD packet to send [12:52:10]OFD Sender: No OFD packet to send [12:52:15]OFD Sender: No OFD packet to send [12:52:20]OFD Sender: No OFD packet to send [12:52:25]OFD Sender: No OFD packet to send [12:52:30]OFD Sender: No OFD packet to send [12:52:35]OFD Sender: No OFD packet to send [12:52:40]OFD Sender: No OFD packet to send [12:52:45]OFD Sender: No OFD packet to send [12:52:50]OFD Sender: No OFD packet to send [12:52:55]OFD Sender: No OFD packet to send [12:53:00]OFD Sender: No OFD packet to send [12:53:05]OFD Sender: No OFD packet to send [12:53:10]OFD Sender: No OFD packet to send [12:53:15]OFD Sender: No OFD packet to send [12:53:20]OFD Sender: No OFD packet to send [12:53:25]OFD Sender: No OFD packet to send [12:53:30]OFD Sender: No OFD packet to send [12:53:34]accept exits with 8 [12:53:34]New connection [12:53:34]New thread 3066686820 created [12:53:34]Thread 3066543460 joined [12:53:34]Waiting for new connection... [12:53:34] Sock 8.Parse request [12:53:34]Sock 8.Check first char [12:53:34]Sock 8.First char is OK [12:53:34]request: POST /json_proto HTTP/1.0 [12:53:34]Method: POST [12:53:34]URL: /json_proto [12:53:34]Method is POST - this is cgi request [12:53:34]url: /json_proto [12:53:34]query_string will be loaded in cgi processing [12:53:34]execute_cgi json_proto POST (null) [12:53:34]execute_cgi path=json_proto method=POST [12:53:34]POST find Content-Length [12:53:34]Host: 172.17.44.195:8080 [12:53:34]Content-Length: 768 [12:53:34]Content-Type: application/json [12:53:34] [12:53:34]POST finish read [12:53:34]Found Content-Length = 768 [12:53:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962962", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:34]execute_script... [12:53:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962962", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:34]POST & json_proto [12:53:34]process_json_proto [12:53:34]json parsed OK: [12:53:34]protocol is kg_v1.0 [12:53:34]action value=close_receipt [12:53:34]process_action close_receipt [12:53:34]cmd_close_receipt [12:53:34]MH_GetDate [12:53:34]Write to MH i2c: F0 00 00 AF 1B B9 [12:53:34]Write i2c OK [12:53:34]MH_I2C_Read... [12:53:34]Read from MH i2c: F0 [12:53:34]MH_I2C_Read... [12:53:34]Read from MH i2c: F0 09 00 [12:53:34]MH_I2C_Read... [12:53:34]Read from MH i2c: F0 09 00 AF 1B 00 4F FD 14 67 82 C9 CF 66 09 [12:53:34]GetLastDocTimeStamp 1729428573 [12:53:34]current date 1729428815 [12:53:34]FM_GetShiftState [12:53:34]SAM_PROTO_GetShiftState [12:53:34]wFMCommunicate request_size=4 [12:53:34]MH_SAM_APDU [12:53:34]CAPDU: 80 13 01 00 [12:53:34]Write to MH i2c: E2 08 00 B0 1B 80 13 01 00 00 00 00 00 48 [12:53:34]Write i2c OK [12:53:34]MH_I2C_Read... [12:53:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:34]Read from MH i2c: E2 [12:53:34]MH_I2C_Read... [12:53:34]Read from MH i2c: E2 0E 00 [12:53:34]MH_I2C_Read... [12:53:34]Read from MH i2c: E2 0E 00 B0 1B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 62 [12:53:34]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:53:34]wFMCommunicate OK [12:53:34]SAM_PROTO_GetShiftState done [12:53:34]FM_GetShiftState done [12:53:34]opened in 1729383750 [12:53:34]opened+sec_in_day 1729470150 [12:53:34]quantity*price = 70044 [12:53:34]sum+1 = 70045 [12:53:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.44 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.44 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 289 20.10.2024 12:53 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 227441 ФПД: 185113110361293 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T125335&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227441&fm=185113110361293&tin=02508201610067®Number=0000000000091685&sum=70044 [12:53:35]StoreToDocumentArchive [12:53:35]shift 533 fd 227441 [12:53:35]save to /storage/0533/doc_00227441 [12:53:35]save last doc name /storage/0533/doc_00227441 to /storage/kkm_last_doc_name [12:53:35]save OK [12:53:35]Clear old archive folders... [12:53:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:53:35]tlvbuf is B6E80190 [12:53:35]SAM_PROTO_ClearQueue [12:53:35]wFMCommunicate request_size=4 [12:53:35]MH_SAM_APDU [12:53:35]CAPDU: 80 09 00 00 [12:53:35]Write to MH i2c: E2 08 00 BD 1B 80 09 00 00 00 00 00 00 4A [12:53:35]Write i2c OK [12:53:35]MH_I2C_Read... [12:53:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:53:35]Read from MH i2c: E2 [12:53:35]MH_I2C_Read... [12:53:35]Read from MH i2c: E2 03 00 [12:53:35]MH_I2C_Read... [12:53:35]Read from MH i2c: E2 03 00 BD 1B 00 90 00 4C [12:53:35]RAPDU: 90 00 [12:53:35]wFMCommunicate OK [12:53:35]SAM_PROTO_ClearQueue done [12:53:35]KKMCreateOFDPacket [12:53:35]OFDProtocolAddRootSTLVToBuf [12:53:35]FM_MakeSignedData [12:53:35]FM_MakeSignedData [12:53:35]SAM_PROTO_SignData [12:53:35]wFMCommunicate request_size=4 [12:53:35]MH_SAM_APDU [12:53:35]CAPDU: 80 0D 01 02 [12:53:35]Write to MH i2c: E2 08 00 BE 1B 80 0D 01 02 00 00 00 00 52 [12:53:35]Write i2c OK [12:53:35]MH_I2C_Read... [12:53:35]OFD Sender: No OFD packet to send [12:53:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:53:35]Read from MH i2c: E2 [12:53:35]MH_I2C_Read... [12:53:35]Read from MH i2c: E2 03 00 [12:53:35]MH_I2C_Read... [12:53:35]Read from MH i2c: E2 03 00 BE 1B 00 90 00 4D [12:53:35]RAPDU: 90 00 [12:53:35]wFMCommunicate OK [12:53:35]wFMCommunicate request_size=255 [12:53:35]MH_SAM_APDU [12:53:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 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 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 4F FD 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 71 78 03 00 35 04 06 00 A8 [12:53:35]Write to MH i2c: E2 02 01 BF 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 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 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 4F FD 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 71 78 03 00 35 04 06 00 A8 00 00 E5 [12:53:35]Write i2c OK [12:53:35]MH_I2C_Read... [12:53:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:36]Read from MH i2c: E2 [12:53:36]MH_I2C_Read... [12:53:36]Read from MH i2c: E2 03 00 [12:53:36]MH_I2C_Read... [12:53:36]Read from MH i2c: E2 03 00 BF 1B 00 90 00 4E [12:53:36]RAPDU: 90 00 [12:53:36]wFMCommunicate OK [12:53:36]wFMCommunicate request_size=10 [12:53:36]MH_SAM_APDU [12:53:36]CAPDU: 80 0D 02 02 05 5C 01 2F B4 CD [12:53:36]Write to MH i2c: E2 0D 00 C0 1B 80 0D 02 02 05 00 5C 01 2F B4 CD 00 00 6C [12:53:36]Write i2c OK [12:53:36]MH_I2C_Read... [12:53:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:36]Read from MH i2c: E2 [12:53:36]MH_I2C_Read... [12:53:36]Read from MH i2c: E2 03 00 [12:53:36]MH_I2C_Read... [12:53:36]Read from MH i2c: E2 03 00 C0 1B 00 90 00 4F [12:53:36]RAPDU: 90 00 [12:53:36]wFMCommunicate OK [12:53:36]wFMCommunicate request_size=4 [12:53:36]MH_SAM_APDU [12:53:36]CAPDU: 80 0D 03 02 [12:53:36]Write to MH i2c: E2 08 00 C1 1B 80 0D 03 02 00 00 00 00 57 [12:53:36]Write i2c OK [12:53:36]MH_I2C_Read... [12:53:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:53:36]Read from MH i2c: E2 [12:53:36]MH_I2C_Read... [12:53:36]Read from MH i2c: E2 0B 00 [12:53:36]MH_I2C_Read... [12:53:36]Read from MH i2c: E2 0B 00 C1 1B 00 A9 98 B0 85 19 7F CC 4E 90 00 80 [12:53:36]RAPDU: A9 98 B0 85 19 7F CC 4E 90 00 [12:53:36]wFMCommunicate OK [12:53:36]SAM_PROTO_SignData done [12:53:36]FM_MakeSignedData done [12:53:36]CreateOFDProtocolMessage [12:53:36]wFMCommunicate request_size=4 [12:53:36]MH_SAM_APDU [12:53:36]CAPDU: 80 11 00 00 [12:53:36]Write to MH i2c: E2 08 00 C2 1B 80 11 00 00 00 00 00 00 57 [12:53:36]Write i2c OK [12:53:36]MH_I2C_Read... [12:53:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:36]Read from MH i2c: E2 [12:53:36]MH_I2C_Read... [12:53:36]Read from MH i2c: E2 17 00 [12:53:36]MH_I2C_Read... [12:53:36]Read from MH i2c: E2 17 00 C2 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 AE [12:53:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:53:36]wFMCommunicate OK [12:53:36]CreateOFDProtocolMessage done [12:53:36]OFDSenderStorePacket 227441 [12:53:36]StoreOFDPacket docnum=227441 [12:53:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 5E DA 07 01 63 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 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 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 4F FD 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 71 78 03 00 35 04 06 00 A8 5C 01 2F B4 CD A9 98 B0 85 19 7F CC 4E [12:53:36]CheckFolder [12:53:36]dirname=/storage/ofd_packets [12:53:36]CheckFolder done [12:53:36]ProducePacketName [12:53:36]name=ofd_packets/00227441 [12:53:36]NVStorageSaveData ofd_packets/00227441 [12:53:36]File name is /storage/ofd_packets/00227441 [12:53:36]Write 301 bytes [12:53:36]NVStorageSaveData done [12:53:36]OFDSenderStorePacket done [12:53:36]KKMCreateOFDPacket done [12:53:36]NVStorageSaveData kkm_last_timestamp [12:53:36]File name is /storage/kkm_last_timestamp [12:53:36]Write 4 bytes [12:53:36]NVStorageSaveData done [12:53:36]ExternCall_PrintAddStr [12:53:36]wPrintStart [12:53:36]Write to MH i2c: 01 00 00 C3 1B DE [12:53:36]Write i2c OK [12:53:36]MH_I2C_Read... [12:53:36]Read from MH i2c: 01 [12:53:36]MH_I2C_Read... [12:53:36]Read from MH i2c: 01 07 00 [12:53:36]MH_I2C_Read... [12:53:36]Read from MH i2c: 01 07 00 C3 1B 00 00 00 00 00 FF 0F F3 [12:53:36]RasterBufferAndPrint [12:53:36]line Счет N : (1)1962962 [12:53:36]line ИНН: 02508201610067 [12:53:36]line Контрольно-Кассовый Чек [12:53:36]line ПРОДАЖА [12:53:36]line ТРК (МРК, ГНК) : 43 [12:53:36]line Товар: 2710124130 [12:53:36]line Аи-92-К-5 [12:53:36]line 10.470 * 66.90 [12:53:36]line = 700.44 [12:53:36]line НДС 12% НСП 1% [12:53:36]line > о реализуемом товаре [12:53:36]line ИТОГО: 700.44 [12:53:36]line НСП 1% : 6.20 [12:53:36]line НДС 12% : 74.38 [12:53:36]line Наличными: 0.00 [12:53:36]line Безнал.: 700.44 [12:53:36]line Место: АЗС № 133 "Партнер Нефть" [12:53:36]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:53:36]line СНО: Общий режим [12:53:36]line Чек 289 20.10.2024 12:53 [12:53:36]line Смена: 533 ФФД: 1.0 [12:53:36]line ЗНМ: 0300000091 [12:53:36]line РНМ: 0000000000091685 [12:53:36]line Версия ККМ: 001 [12:53:36]line Платежная система: Mbank [12:53:36]line ФМ: 0000000000871839 [12:53:36]line ФД: 227441 [12:53:36]line ФПД: 185113110361293 [12:53:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T125335&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227441&fm=185113110361293&tin=02508201610067®Number=0000000000091685&sum=70044 [12:53:36]written 0, free lines is 4095 [12:53:36]OFD Sender: Processing packet 227441 [packets to send 38, broken 37] [12:53:36]ProducePacketName [12:53:36]name=ofd_packets/00227441 [12:53:36]OFD Sender: To server: pG, [12:53:36]CommunicateWithHost lk.salyk.kg:30040 [12:53:36]ConnectInit lk.salyk.kg [12:53:36]Connected sock=10 [12:53:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 5E DA 07 01 63 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 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 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 4F FD 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 71 78 03 00 35 04 06 00 A8 5C 01 2F B4 CD A9 98 B0 85 19 7F CC 4E [12:53: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 33 39 4F 00 00 00 E9 A1 47 00 BC 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 71 78 03 00 F4 03 04 00 4E A8 14 67 B6 04 01 00 00 85 65 71 77 2E 2A 62 92 [12:53:37]CommunicateWithHost err = 0 [12:53:37]CheckOFDResponse [12:53:37]1017 (14) - 77093643461234 [12:53:37]1041 (16) - 0000000000871839 [12:53:37]1040 (4) - 227441 [12:53:37]1012 (4) - 20.10.2024 06:50 [12:53:37]1206 (1) - 0 [12:53:37]OFD Sender: Remove packet 227441 [12:53:37]ProducePacketName [12:53:37]name=ofd_packets/00227441 [12:53:37]NVStorageDeleteData [12:53:37]Write to MH i2c: 01 00 00 EB 1B 06 [12:53:37]Write i2c OK [12:53:37]MH_I2C_Read... [12:53:37]Read from MH i2c: 01 [12:53:37]MH_I2C_Read... [12:53:37]Read from MH i2c: 01 07 00 [12:53:37]MH_I2C_Read... [12:53:37]Read from MH i2c: 01 07 00 EB 1B 00 00 00 00 00 3A 0D 54 [12:53:37]RasterBufferAndPrint [12:53:37]line [12:53:37]line [12:53:37]line [12:53:37]line [12:53:37]line [12:53:37]written 0, free lines is 3394 [12:53:37]process_action close_receipt done [12:53:37]requested_data is exist [12:53:37]produce_requested_data [12:53:37]requested_item fm.sn is exist - process it [12:53:37]wFMCommunicate request_size=4 [12:53:37]MH_SAM_APDU [12:53:37]CAPDU: 80 11 00 00 [12:53:37]Write to MH i2c: E2 08 00 F2 1B 80 11 00 00 00 00 00 00 87 [12:53:37]Write i2c OK [12:53:37]MH_I2C_Read... [12:53:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:37]Read from MH i2c: E2 [12:53:37]MH_I2C_Read... [12:53:37]Read from MH i2c: E2 17 00 [12:53:37]MH_I2C_Read... [12:53:37]Read from MH i2c: E2 17 00 F2 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 DE [12:53:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:53:37]wFMCommunicate OK [12:53:37]requested_item fd.num is exist - process it [12:53:37]SAM_PROTO_GetFieldsCounters [12:53:37]wFMCommunicate request_size=4 [12:53:37]MH_SAM_APDU [12:53:37]CAPDU: 80 13 00 00 [12:53:37]Write to MH i2c: E2 08 00 F3 1B 80 13 00 00 00 00 00 00 8A [12:53:37]Write i2c OK [12:53:37]MH_I2C_Read... [12:53:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:53:37]Read from MH i2c: E2 [12:53:37]MH_I2C_Read... [12:53:37]Read from MH i2c: E2 62 00 [12:53:37]MH_I2C_Read... [12:53:37]Read from MH i2c: E2 62 00 F3 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 71 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 21 01 00 00 5E 04 04 00 21 01 00 00 57 04 04 00 22 01 00 00 19 04 04 00 00 00 00 00 90 00 1C [12:53:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 71 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 21 01 00 00 5E 04 04 00 21 01 00 00 57 04 04 00 22 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:53:37]wFMCommunicate OK [12:53:37]SAM_PROTO_GetFieldsCounters done [12:53:37]requested_item shift.num is exist - process it [12:53:37]requested_item shift.opened is exist - process it [12:53:37]req_shift_opened [12:53:37]FM_GetShiftState [12:53:37]SAM_PROTO_GetShiftState [12:53:37]wFMCommunicate request_size=4 [12:53:37]MH_SAM_APDU [12:53:37]CAPDU: 80 13 01 00 [12:53:37]Write to MH i2c: E2 08 00 F4 1B 80 13 01 00 00 00 00 00 8C [12:53:37]Write i2c OK [12:53:37]MH_I2C_Read... [12:53:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:37]Read from MH i2c: E2 [12:53:37]MH_I2C_Read... [12:53:37]Read from MH i2c: E2 0E 00 [12:53:37]MH_I2C_Read... [12:53:37]Read from MH i2c: E2 0E 00 F4 1B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 A6 [12:53:37]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:53:37]wFMCommunicate OK [12:53:37]SAM_PROTO_GetShiftState done [12:53:37]FM_GetShiftState done [12:53:37]req_shift_opened done [12:53:37]requested_item shift.open_date is exist - process it [12:53:37]req_shift_open_date [12:53:37]req_shift_open_date done [12:53:37]produce_requested_data done [12:53:37]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227441,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [12:53:37]process_action_free close_receipt [12:53:37]json_value_free [12:53:37]json_value_free done [12:53:37]process_json_proto returns [12:53:37]Send response to host [12:53:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227441,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [12:53:37]free response buf [12:53:37]execute_script done [12:53:37]execute_script returns [12:53:37]free content buf [12:53:37]Sock 8.Close socket [12:53:37]Sock 8.Thread stoped [12:53:37]OFD Sender: No OFD packet to send [12:53:42]OFD Sender: No OFD packet to send [12:53:47]OFD Sender: No OFD packet to send [12:53:52]OFD Sender: No OFD packet to send [12:53:57]OFD Sender: No OFD packet to send [12:54:02]OFD Sender: No OFD packet to send [12:54:07]OFD Sender: No OFD packet to send [12:54:12]OFD Sender: No OFD packet to send [12:54:17]OFD Sender: No OFD packet to send [12:54:22]OFD Sender: No OFD packet to send [12:54:27]OFD Sender: No OFD packet to send [12:54:32]OFD Sender: No OFD packet to send [12:54:32]accept exits with 9 [12:54:32]New connection [12:54:32]New thread 3066543460 created [12:54:32]Thread 3066686820 joined [12:54:32]Waiting for new connection... [12:54:32] Sock 9.Parse request [12:54:32]Sock 9.Check first char [12:54:32]Sock 9.First char is OK [12:54:32]request: POST /json_proto HTTP/1.0 [12:54:32]Method: POST [12:54:32]URL: /json_proto [12:54:32]Method is POST - this is cgi request [12:54:32]url: /json_proto [12:54:32]query_string will be loaded in cgi processing [12:54:32]execute_cgi json_proto POST (null) [12:54:32]execute_cgi path=json_proto method=POST [12:54:32]POST find Content-Length [12:54:32]Host: 172.17.44.195:8080 [12:54:32]Content-Length: 767 [12:54:32]Content-Type: application/json [12:54:32] [12:54:32]POST finish read [12:54:32]Found Content-Length = 767 [12:54:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962964", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:54:32]execute_script... [12:54: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)1962964", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:54:32]POST & json_proto [12:54:32]process_json_proto [12:54:32]json parsed OK: [12:54:32]protocol is kg_v1.0 [12:54:32]action value=close_receipt [12:54:32]process_action close_receipt [12:54:32]cmd_close_receipt [12:54:32]MH_GetDate [12:54:32]Write to MH i2c: F0 00 00 F5 1B FF [12:54:32]Write i2c OK [12:54:32]MH_I2C_Read... [12:54:32]Read from MH i2c: F0 [12:54:32]MH_I2C_Read... [12:54:32]Read from MH i2c: F0 09 00 [12:54:32]MH_I2C_Read... [12:54:32]Read from MH i2c: F0 09 00 F5 1B 00 89 FD 14 67 82 C9 CF 66 89 [12:54:32]GetLastDocTimeStamp 1729428815 [12:54:32]current date 1729428873 [12:54:32]FM_GetShiftState [12:54:32]SAM_PROTO_GetShiftState [12:54:32]wFMCommunicate request_size=4 [12:54:32]MH_SAM_APDU [12:54:32]CAPDU: 80 13 01 00 [12:54:32]Write to MH i2c: E2 08 00 F6 1B 80 13 01 00 00 00 00 00 8E [12:54:32]Write i2c OK [12:54:32]MH_I2C_Read... [12:54:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:32]Read from MH i2c: E2 [12:54:32]MH_I2C_Read... [12:54:32]Read from MH i2c: E2 0E 00 [12:54:32]MH_I2C_Read... [12:54:32]Read from MH i2c: E2 0E 00 F6 1B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 A8 [12:54:32]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:54:32]wFMCommunicate OK [12:54:32]SAM_PROTO_GetShiftState done [12:54:32]FM_GetShiftState done [12:54:32]opened in 1729383750 [12:54:32]opened+sec_in_day 1729470150 [12:54:32]quantity*price = 50010 [12:54:32]sum+1 = 50012 [12:54:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.11 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.11 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 290 20.10.2024 12:54 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 227442 ФПД: 135570490230830 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T125433&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227442&fm=135570490230830&tin=02508201610067®Number=0000000000091685&sum=50011 [12:54:33]StoreToDocumentArchive [12:54:33]shift 533 fd 227442 [12:54:33]save to /storage/0533/doc_00227442 [12:54:33]save last doc name /storage/0533/doc_00227442 to /storage/kkm_last_doc_name [12:54:33]save OK [12:54:33]Clear old archive folders... [12:54:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:54:33]tlvbuf is B6E80CB0 [12:54:33]SAM_PROTO_ClearQueue [12:54:33]wFMCommunicate request_size=4 [12:54:33]MH_SAM_APDU [12:54:33]CAPDU: 80 09 00 00 [12:54:33]Write to MH i2c: E2 08 00 03 1C 80 09 00 00 00 00 00 00 91 [12:54:34]Write i2c OK [12:54:34]MH_I2C_Read... [12:54:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:54:34]Read from MH i2c: E2 [12:54:34]MH_I2C_Read... [12:54:34]Read from MH i2c: E2 03 00 [12:54:34]MH_I2C_Read... [12:54:34]Read from MH i2c: E2 03 00 03 1C 00 90 00 93 [12:54:34]RAPDU: 90 00 [12:54:34]wFMCommunicate OK [12:54:34]SAM_PROTO_ClearQueue done [12:54:34]KKMCreateOFDPacket [12:54:34]OFDProtocolAddRootSTLVToBuf [12:54:34]FM_MakeSignedData [12:54:34]FM_MakeSignedData [12:54:34]SAM_PROTO_SignData [12:54:34]wFMCommunicate request_size=4 [12:54:34]MH_SAM_APDU [12:54:34]CAPDU: 80 0D 01 02 [12:54:34]Write to MH i2c: E2 08 00 04 1C 80 0D 01 02 00 00 00 00 99 [12:54:34]Write i2c OK [12:54:34]MH_I2C_Read... [12:54:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:54:34]Read from MH i2c: E2 [12:54:34]MH_I2C_Read... [12:54:34]Read from MH i2c: E2 03 00 [12:54:34]MH_I2C_Read... [12:54:34]Read from MH i2c: E2 03 00 04 1C 00 90 00 94 [12:54:34]RAPDU: 90 00 [12:54:34]wFMCommunicate OK [12:54:34]wFMCommunicate request_size=255 [12:54:34]MH_SAM_APDU [12:54: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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 89 FD 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 72 78 03 00 35 04 06 00 7B [12:54:34]Write to MH i2c: E2 02 01 05 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 89 FD 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 72 78 03 00 35 04 06 00 7B 00 00 C1 [12:54:34]Write i2c OK [12:54:34]MH_I2C_Read... [12:54:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:34]Read from MH i2c: E2 [12:54:34]MH_I2C_Read... [12:54:34]Read from MH i2c: E2 03 00 [12:54:34]MH_I2C_Read... [12:54:34]Read from MH i2c: E2 03 00 05 1C 00 90 00 95 [12:54:34]RAPDU: 90 00 [12:54:34]wFMCommunicate OK [12:54:34]wFMCommunicate request_size=10 [12:54:34]MH_SAM_APDU [12:54:34]CAPDU: 80 0D 02 02 05 4C F6 E9 88 2E [12:54:34]Write to MH i2c: E2 0D 00 06 1C 80 0D 02 02 05 00 4C F6 E9 88 2E 00 00 87 [12:54:34]Write i2c OK [12:54:34]MH_I2C_Read... [12:54:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:34]Read from MH i2c: E2 [12:54:34]MH_I2C_Read... [12:54:34]Read from MH i2c: E2 03 00 [12:54:34]MH_I2C_Read... [12:54:34]Read from MH i2c: E2 03 00 06 1C 00 90 00 96 [12:54:34]RAPDU: 90 00 [12:54:34]wFMCommunicate OK [12:54:34]wFMCommunicate request_size=4 [12:54:34]MH_SAM_APDU [12:54:34]CAPDU: 80 0D 03 02 [12:54:34]Write to MH i2c: E2 08 00 07 1C 80 0D 03 02 00 00 00 00 9E [12:54:34]Write i2c OK [12:54:34]MH_I2C_Read... [12:54:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:54:34]Read from MH i2c: E2 [12:54:34]MH_I2C_Read... [12:54:34]Read from MH i2c: E2 0B 00 [12:54:34]MH_I2C_Read... [12:54:34]Read from MH i2c: E2 0B 00 07 1C 00 26 A8 89 57 67 34 92 A4 90 00 1E [12:54:34]RAPDU: 26 A8 89 57 67 34 92 A4 90 00 [12:54:34]wFMCommunicate OK [12:54:34]SAM_PROTO_SignData done [12:54:34]FM_MakeSignedData done [12:54:34]CreateOFDProtocolMessage [12:54:34]wFMCommunicate request_size=4 [12:54:34]MH_SAM_APDU [12:54:34]CAPDU: 80 11 00 00 [12:54:34]Write to MH i2c: E2 08 00 08 1C 80 11 00 00 00 00 00 00 9E [12:54:34]Write i2c OK [12:54:34]MH_I2C_Read... [12:54:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:34]Read from MH i2c: E2 [12:54:34]MH_I2C_Read... [12:54:34]Read from MH i2c: E2 17 00 [12:54:34]MH_I2C_Read... [12:54:34]Read from MH i2c: E2 17 00 08 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F5 [12:54:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:54:34]wFMCommunicate OK [12:54:34]CreateOFDProtocolMessage done [12:54:34]OFDSenderStorePacket 227442 [12:54:34]StoreOFDPacket docnum=227442 [12:54:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 82 78 07 01 9E 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 89 FD 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 72 78 03 00 35 04 06 00 7B 4C F6 E9 88 2E 26 A8 89 57 67 34 92 A4 [12:54:34]CheckFolder [12:54:34]dirname=/storage/ofd_packets [12:54:34]CheckFolder done [12:54:34]ProducePacketName [12:54:34]name=ofd_packets/00227442 [12:54:34]NVStorageSaveData ofd_packets/00227442 [12:54:34]File name is /storage/ofd_packets/00227442 [12:54:34]Write 301 bytes [12:54:34]NVStorageSaveData done [12:54:34]OFDSenderStorePacket done [12:54:34]KKMCreateOFDPacket done [12:54:34]NVStorageSaveData kkm_last_timestamp [12:54:34]File name is /storage/kkm_last_timestamp [12:54:34]Write 4 bytes [12:54:34]NVStorageSaveData done [12:54:34]ExternCall_PrintAddStr [12:54:34]wPrintStart [12:54:34]Write to MH i2c: 01 00 00 09 1C 25 [12:54:34]Write i2c OK [12:54:34]MH_I2C_Read... [12:54:34]Read from MH i2c: 01 [12:54:34]MH_I2C_Read... [12:54:34]Read from MH i2c: 01 07 00 [12:54:34]MH_I2C_Read... [12:54:34]Read from MH i2c: 01 07 00 09 1C 00 00 00 00 00 FF 0F 3A [12:54:34]RasterBufferAndPrint [12:54:34]line Счет N : (1)1962964 [12:54:34]line ИНН: 02508201610067 [12:54:34]line Контрольно-Кассовый Чек [12:54:34]line ПРОДАЖА [12:54:34]line ТРК (МРК, ГНК) : 44 [12:54:34]line Товар: 2710124500 [12:54:34]line Аи-95-К-5 [12:54:34]line 6.740 * 74.20 [12:54:34]line = 500.11 [12:54:34]line НДС 12% НСП 1% [12:54:34]line > о реализуемом товаре [12:54:34]line ИТОГО: 500.11 [12:54:34]line НСП 1% : 4.43 [12:54:34]line НДС 12% : 53.11 [12:54:34]line Наличными: 0.00 [12:54:34]line Безнал.: 500.11 [12:54:34]line Место: АЗС № 133 "Партнер Нефть" [12:54:34]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:54:34]line СНО: Общий режим [12:54:34]line Чек 290 20.10.2024 12:54 [12:54:34]line Смена: 533 ФФД: 1.0 [12:54:34]line ЗНМ: 0300000091 [12:54:34]line РНМ: 0000000000091685 [12:54:34]line Версия ККМ: 001 [12:54:34]line Платежная система: Mbank [12:54:34]line ФМ: 0000000000871839 [12:54:34]line ФД: 227442 [12:54:34]line ФПД: 135570490230830 [12:54:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T125433&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227442&fm=135570490230830&tin=02508201610067®Number=0000000000091685&sum=50011 [12:54:34]written 0, free lines is 4095 [12:54:34]OFD Sender: Processing packet 227442 [packets to send 38, broken 37] [12:54:34]ProducePacketName [12:54:34]name=ofd_packets/00227442 [12:54:34]OFD Sender: To server: pG, [12:54:34]CommunicateWithHost lk.salyk.kg:30040 [12:54:34]ConnectInit lk.salyk.kg [12:54:34]Connected sock=10 [12:54: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 33 39 0F 01 00 00 82 78 07 01 9E 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 89 FD 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 72 78 03 00 35 04 06 00 7B 4C F6 E9 88 2E 26 A8 89 57 67 34 92 A4 [12:54: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 33 39 4F 00 00 00 83 DC 47 00 09 A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 72 78 03 00 F4 03 04 00 88 A8 14 67 B6 04 01 00 00 3F 2E 58 14 CB CD EA 83 [12:54:34]CommunicateWithHost err = 0 [12:54:34]CheckOFDResponse [12:54:34]1017 (14) - 77093643461234 [12:54:34]1041 (16) - 0000000000871839 [12:54:34]1040 (4) - 227442 [12:54:34]1012 (4) - 20.10.2024 06:51 [12:54:34]1206 (1) - 0 [12:54:34]OFD Sender: Remove packet 227442 [12:54:34]ProducePacketName [12:54:34]name=ofd_packets/00227442 [12:54:34]NVStorageDeleteData [12:54:34]Write to MH i2c: 01 00 00 31 1C 4D [12:54:34]Write i2c OK [12:54:34]MH_I2C_Read... [12:54:34]Read from MH i2c: 01 [12:54:34]MH_I2C_Read... [12:54:34]Read from MH i2c: 01 07 00 [12:54:34]MH_I2C_Read... [12:54:34]Read from MH i2c: 01 07 00 31 1C 00 00 00 00 00 33 0D 94 [12:54:34]RasterBufferAndPrint [12:54:34]line [12:54:34]line [12:54:34]line [12:54:34]line [12:54:34]line [12:54:34]written 0, free lines is 3387 [12:54:35]process_action close_receipt done [12:54:35]requested_data is exist [12:54:35]produce_requested_data [12:54:35]requested_item fm.sn is exist - process it [12:54:35]wFMCommunicate request_size=4 [12:54:35]MH_SAM_APDU [12:54:35]CAPDU: 80 11 00 00 [12:54:35]Write to MH i2c: E2 08 00 38 1C 80 11 00 00 00 00 00 00 CE [12:54:35]Write i2c OK [12:54:35]MH_I2C_Read... [12:54:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:35]Read from MH i2c: E2 [12:54:35]MH_I2C_Read... [12:54:35]Read from MH i2c: E2 17 00 [12:54:35]MH_I2C_Read... [12:54:35]Read from MH i2c: E2 17 00 38 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 25 [12:54:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:54:35]wFMCommunicate OK [12:54:35]requested_item fd.num is exist - process it [12:54:35]SAM_PROTO_GetFieldsCounters [12:54:35]wFMCommunicate request_size=4 [12:54:35]MH_SAM_APDU [12:54:35]CAPDU: 80 13 00 00 [12:54:35]Write to MH i2c: E2 08 00 39 1C 80 13 00 00 00 00 00 00 D1 [12:54:35]Write i2c OK [12:54:35]MH_I2C_Read... [12:54:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:54:35]Read from MH i2c: E2 [12:54:35]MH_I2C_Read... [12:54:35]Read from MH i2c: E2 62 00 [12:54:35]MH_I2C_Read... [12:54:35]Read from MH i2c: E2 62 00 39 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 72 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 22 01 00 00 5E 04 04 00 22 01 00 00 57 04 04 00 23 01 00 00 19 04 04 00 00 00 00 00 90 00 67 [12:54: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 72 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 22 01 00 00 5E 04 04 00 22 01 00 00 57 04 04 00 23 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:54:35]wFMCommunicate OK [12:54:35]SAM_PROTO_GetFieldsCounters done [12:54:35]requested_item shift.num is exist - process it [12:54:35]requested_item shift.opened is exist - process it [12:54:35]req_shift_opened [12:54:35]FM_GetShiftState [12:54:35]SAM_PROTO_GetShiftState [12:54:35]wFMCommunicate request_size=4 [12:54:35]MH_SAM_APDU [12:54:35]CAPDU: 80 13 01 00 [12:54:35]Write to MH i2c: E2 08 00 3A 1C 80 13 01 00 00 00 00 00 D3 [12:54:35]Write i2c OK [12:54:35]MH_I2C_Read... [12:54:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:35]Read from MH i2c: E2 [12:54:35]MH_I2C_Read... [12:54:35]Read from MH i2c: E2 0E 00 [12:54:35]MH_I2C_Read... [12:54:35]Read from MH i2c: E2 0E 00 3A 1C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 ED [12:54:35]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:54:35]wFMCommunicate OK [12:54:35]SAM_PROTO_GetShiftState done [12:54:35]FM_GetShiftState done [12:54:35]req_shift_opened done [12:54:35]requested_item shift.open_date is exist - process it [12:54:35]req_shift_open_date [12:54:35]req_shift_open_date done [12:54:35]produce_requested_data done [12:54:35]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227442,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [12:54:35]process_action_free close_receipt [12:54:35]json_value_free [12:54:35]json_value_free done [12:54:35]process_json_proto returns [12:54:35]Send response to host [12:54:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227442,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [12:54:35]free response buf [12:54:35]execute_script done [12:54:35]execute_script returns [12:54:35]free content buf [12:54:35]Sock 9.Close socket [12:54:35]Sock 9.Thread stoped [12:54:35]OFD Sender: No OFD packet to send [12:54:38]accept exits with 8 [12:54:38]New connection [12:54:38]New thread 3066686820 created [12:54:38]Thread 3066543460 joined [12:54:38]Waiting for new connection... [12:54:38] Sock 8.Parse request [12:54:38]Sock 8.Check first char [12:54:38]Sock 8.First char is OK [12:54:38]request: POST /json_proto HTTP/1.0 [12:54:38]Method: POST [12:54:38]URL: /json_proto [12:54:38]Method is POST - this is cgi request [12:54:38]url: /json_proto [12:54:38]query_string will be loaded in cgi processing [12:54:38]execute_cgi json_proto POST (null) [12:54:38]execute_cgi path=json_proto method=POST [12:54:38]POST find Content-Length [12:54:38]Host: 172.17.44.195:8080 [12:54:38]Content-Length: 678 [12:54:38]Content-Type: application/json [12:54:38] [12:54:38]POST finish read [12:54:38]Found Content-Length = 678 [12:54:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962965", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:54:38]execute_script... [12:54:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962965", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:54:38]POST & json_proto [12:54:38]process_json_proto [12:54:38]json parsed OK: [12:54:38]protocol is kg_v1.0 [12:54:38]action value=close_receipt [12:54:38]process_action close_receipt [12:54:38]cmd_close_receipt [12:54:38]MH_GetDate [12:54:38]Write to MH i2c: F0 00 00 3B 1C 46 [12:54:38]Write i2c OK [12:54:38]MH_I2C_Read... [12:54:38]Read from MH i2c: F0 [12:54:38]MH_I2C_Read... [12:54:38]Read from MH i2c: F0 09 00 [12:54:38]MH_I2C_Read... [12:54:38]Read from MH i2c: F0 09 00 3B 1C 00 8F FD 14 67 82 C9 CF 66 D6 [12:54:38]GetLastDocTimeStamp 1729428873 [12:54:38]current date 1729428879 [12:54:38]FM_GetShiftState [12:54:38]SAM_PROTO_GetShiftState [12:54:38]wFMCommunicate request_size=4 [12:54:38]MH_SAM_APDU [12:54:38]CAPDU: 80 13 01 00 [12:54:38]Write to MH i2c: E2 08 00 3C 1C 80 13 01 00 00 00 00 00 D5 [12:54:38]Write i2c OK [12:54:38]MH_I2C_Read... [12:54:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:38]Read from MH i2c: E2 [12:54:38]MH_I2C_Read... [12:54:38]Read from MH i2c: E2 0E 00 [12:54:38]MH_I2C_Read... [12:54:38]Read from MH i2c: E2 0E 00 3C 1C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 EF [12:54:38]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:54:38]wFMCommunicate OK [12:54:38]SAM_PROTO_GetShiftState done [12:54:38]FM_GetShiftState done [12:54:38]opened in 1729383750 [12:54:38]opened+sec_in_day 1729470150 [12:54:38]quantity*price = 70044 [12:54:38]sum+1 = 70046 [12:54:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 291 20.10.2024 12:54 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227443 ФПД: 213351057576444 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T125440&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227443&fm=213351057576444&tin=02508201610067®Number=0000000000091685&sum=70000 [12:54:40]StoreToDocumentArchive [12:54:40]shift 533 fd 227443 [12:54:40]save to /storage/0533/doc_00227443 [12:54:40]save last doc name /storage/0533/doc_00227443 to /storage/kkm_last_doc_name [12:54:40]save OK [12:54:40]Clear old archive folders... [12:54:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:54:40]tlvbuf is 01913EB0 [12:54:40]SAM_PROTO_ClearQueue [12:54:40]wFMCommunicate request_size=4 [12:54:40]MH_SAM_APDU [12:54:40]CAPDU: 80 09 00 00 [12:54:40]Write to MH i2c: E2 08 00 49 1C 80 09 00 00 00 00 00 00 D7 [12:54:40]Write i2c OK [12:54:40]MH_I2C_Read... [12:54:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:54:40]Read from MH i2c: E2 [12:54:40]MH_I2C_Read... [12:54:40]Read from MH i2c: E2 03 00 [12:54:40]MH_I2C_Read... [12:54:40]Read from MH i2c: E2 03 00 49 1C 00 90 00 D9 [12:54:40]RAPDU: 90 00 [12:54:40]wFMCommunicate OK [12:54:40]SAM_PROTO_ClearQueue done [12:54:40]KKMCreateOFDPacket [12:54:40]OFDProtocolAddRootSTLVToBuf [12:54:40]FM_MakeSignedData [12:54:40]FM_MakeSignedData [12:54:40]SAM_PROTO_SignData [12:54:40]wFMCommunicate request_size=4 [12:54:40]MH_SAM_APDU [12:54:40]CAPDU: 80 0D 01 02 [12:54:40]Write to MH i2c: E2 08 00 4A 1C 80 0D 01 02 00 00 00 00 DF [12:54:40]Write i2c OK [12:54:40]MH_I2C_Read... [12:54:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:54:40]Read from MH i2c: E2 [12:54:40]MH_I2C_Read... [12:54:40]Read from MH i2c: E2 03 00 [12:54:40]MH_I2C_Read... [12:54:40]Read from MH i2c: E2 03 00 4A 1C 00 90 00 DA [12:54:40]RAPDU: 90 00 [12:54:40]wFMCommunicate OK [12:54:40]wFMCommunicate request_size=255 [12:54:40]MH_SAM_APDU [12:54:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 23 01 00 00 F4 03 04 00 90 FD 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 73 78 03 00 35 04 06 00 C2 [12:54:40]Write to MH i2c: E2 02 01 4B 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 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 23 01 00 00 F4 03 04 00 90 FD 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 73 78 03 00 35 04 06 00 C2 00 00 50 [12:54:40]Write i2c OK [12:54:40]MH_I2C_Read... [12:54:40]OFD Sender: No OFD packet to send [12:54:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:40]Read from MH i2c: E2 [12:54:40]MH_I2C_Read... [12:54:40]Read from MH i2c: E2 03 00 [12:54:40]MH_I2C_Read... [12:54:40]Read from MH i2c: E2 03 00 4B 1C 00 90 00 DB [12:54:40]RAPDU: 90 00 [12:54:40]wFMCommunicate OK [12:54:40]wFMCommunicate request_size=10 [12:54:40]MH_SAM_APDU [12:54:40]CAPDU: 80 0D 02 02 05 0A A9 FF D1 FC [12:54:40]Write to MH i2c: E2 0D 00 4C 1C 80 0D 02 02 05 00 0A A9 FF D1 FC 00 00 6B [12:54:40]Write i2c OK [12:54:40]MH_I2C_Read... [12:54:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:40]Read from MH i2c: E2 [12:54:40]MH_I2C_Read... [12:54:40]Read from MH i2c: E2 03 00 [12:54:40]MH_I2C_Read... [12:54:40]Read from MH i2c: E2 03 00 4C 1C 00 90 00 DC [12:54:40]RAPDU: 90 00 [12:54:40]wFMCommunicate OK [12:54:40]wFMCommunicate request_size=4 [12:54:40]MH_SAM_APDU [12:54:40]CAPDU: 80 0D 03 02 [12:54:40]Write to MH i2c: E2 08 00 4D 1C 80 0D 03 02 00 00 00 00 E4 [12:54:40]Write i2c OK [12:54:40]MH_I2C_Read... [12:54:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:54:40]Read from MH i2c: E2 [12:54:40]MH_I2C_Read... [12:54:40]Read from MH i2c: E2 0B 00 [12:54:40]MH_I2C_Read... [12:54:40]Read from MH i2c: E2 0B 00 4D 1C 00 F0 92 A0 6A 3C 8F 50 F2 90 00 7E [12:54:40]RAPDU: F0 92 A0 6A 3C 8F 50 F2 90 00 [12:54:40]wFMCommunicate OK [12:54:40]SAM_PROTO_SignData done [12:54:40]FM_MakeSignedData done [12:54:40]CreateOFDProtocolMessage [12:54:40]wFMCommunicate request_size=4 [12:54:40]MH_SAM_APDU [12:54:40]CAPDU: 80 11 00 00 [12:54:40]Write to MH i2c: E2 08 00 4E 1C 80 11 00 00 00 00 00 00 E4 [12:54:40]Write i2c OK [12:54:40]MH_I2C_Read... [12:54:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:40]Read from MH i2c: E2 [12:54:40]MH_I2C_Read... [12:54:40]Read from MH i2c: E2 17 00 [12:54:40]MH_I2C_Read... [12:54:40]Read from MH i2c: E2 17 00 4E 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 3B [12:54:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:54:40]wFMCommunicate OK [12:54:40]CreateOFDProtocolMessage done [12:54:40]OFDSenderStorePacket 227443 [12:54:40]StoreOFDPacket docnum=227443 [12:54:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 F6 72 07 01 D3 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 23 01 00 00 F4 03 04 00 90 FD 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 73 78 03 00 35 04 06 00 C2 0A A9 FF D1 FC F0 92 A0 6A 3C 8F 50 F2 [12:54:40]CheckFolder [12:54:40]dirname=/storage/ofd_packets [12:54:40]CheckFolder done [12:54:40]ProducePacketName [12:54:40]name=ofd_packets/00227443 [12:54:40]NVStorageSaveData ofd_packets/00227443 [12:54:40]File name is /storage/ofd_packets/00227443 [12:54:40]Write 301 bytes [12:54:40]NVStorageSaveData done [12:54:40]OFDSenderStorePacket done [12:54:40]KKMCreateOFDPacket done [12:54:40]NVStorageSaveData kkm_last_timestamp [12:54:40]File name is /storage/kkm_last_timestamp [12:54:40]Write 4 bytes [12:54:40]NVStorageSaveData done [12:54:40]ExternCall_PrintAddStr [12:54:40]wPrintStart [12:54:40]Write to MH i2c: 01 00 00 4F 1C 6B [12:54:40]Write i2c OK [12:54:40]MH_I2C_Read... [12:54:40]Read from MH i2c: 01 [12:54:40]MH_I2C_Read... [12:54:40]Read from MH i2c: 01 07 00 [12:54:40]MH_I2C_Read... [12:54:40]Read from MH i2c: 01 07 00 4F 1C 00 00 00 00 00 FF 0F 80 [12:54:40]RasterBufferAndPrint [12:54:40]line Счет N : (1)1962965 [12:54:40]line ИНН: 02508201610067 [12:54:40]line Контрольно-Кассовый Чек [12:54:40]line ПРОДАЖА [12:54:40]line ТРК (МРК, ГНК) : 34 [12:54:40]line Товар: 2710124500 [12:54:40]line Аи-95-К-5 [12:54:40]line 9.440 * 74.20 [12:54:40]line = 700.45 [12:54:40]line НДС 12% НСП 1% [12:54:40]line > о реализуемом товаре [12:54:40]line ОКРУГЛЕНИЕ: -0.45 [12:54:40]line ИТОГО: 700.00 [12:54:40]line Внесено: 700.00 [12:54:40]line СДАЧА: 0.00 [12:54:40]line НСП 1% : 6.20 [12:54:40]line НДС 12% : 74.38 [12:54:40]line Наличными: 700.00 [12:54:40]line Безнал.: 0.00 [12:54:40]line Место: АЗС № 133 "Партнер Нефть" [12:54:40]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:54:40]line СНО: Общий режим [12:54:40]line Чек 291 20.10.2024 12:54 [12:54:40]line Смена: 533 ФФД: 1.0 [12:54:40]line ЗНМ: 0300000091 [12:54:40]line РНМ: 0000000000091685 [12:54:40]line Версия ККМ: 001 [12:54:40]line ФМ: 0000000000871839 [12:54:40]line ФД: 227443 [12:54:40]line ФПД: 213351057576444 [12:54:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T125440&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227443&fm=213351057576444&tin=02508201610067®Number=0000000000091685&sum=70000 [12:54:40]OFD Sender: Processing packet 227443 [packets to send 38, broken 37] [12:54:40]ProducePacketName [12:54:40]name=ofd_packets/00227443 [12:54:40]OFD Sender: To server: pG, [12:54:40]CommunicateWithHost lk.salyk.kg:30040 [12:54:40]ConnectInit lk.salyk.kg [12:54:40]written 0, free lines is 4095 [12:54:40]Connected sock=10 [12:54:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 F6 72 07 01 D3 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 23 01 00 00 F4 03 04 00 90 FD 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 73 78 03 00 35 04 06 00 C2 0A A9 FF D1 FC F0 92 A0 6A 3C 8F 50 F2 [12:54:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 D5 3B 47 00 84 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 33 39 10 04 04 00 73 78 03 00 F4 03 04 00 8E A8 14 67 B6 04 01 00 00 8B 20 D4 A7 B6 F2 D0 33 [12:54:41]CommunicateWithHost err = 0 [12:54:41]CheckOFDResponse [12:54:41]1017 (14) - 77093643461234 [12:54:41]1041 (16) - 0000000000871839 [12:54:41]1040 (4) - 227443 [12:54:41]1012 (4) - 20.10.2024 06:51 [12:54:41]1206 (1) - 0 [12:54:41]OFD Sender: Remove packet 227443 [12:54:41]ProducePacketName [12:54:41]name=ofd_packets/00227443 [12:54:41]NVStorageDeleteData [12:54:41]Write to MH i2c: 01 00 00 79 1C 95 [12:54:41]Write i2c OK [12:54:41]MH_I2C_Read... [12:54:41]Read from MH i2c: 01 [12:54:41]MH_I2C_Read... [12:54:41]Read from MH i2c: 01 07 00 [12:54:41]MH_I2C_Read... [12:54:41]Read from MH i2c: 01 07 00 79 1C 00 00 00 00 00 08 0D B1 [12:54:41]RasterBufferAndPrint [12:54:41]line [12:54:41]line [12:54:41]line [12:54:41]line [12:54:41]line [12:54:41]written 0, free lines is 3348 [12:54:41]process_action close_receipt done [12:54:41]requested_data is exist [12:54:41]produce_requested_data [12:54:41]requested_item fm.sn is exist - process it [12:54:41]wFMCommunicate request_size=4 [12:54:41]MH_SAM_APDU [12:54:41]CAPDU: 80 11 00 00 [12:54:41]Write to MH i2c: E2 08 00 80 1C 80 11 00 00 00 00 00 00 16 [12:54:41]Write i2c OK [12:54:41]MH_I2C_Read... [12:54:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:41]Read from MH i2c: E2 [12:54:41]MH_I2C_Read... [12:54:41]Read from MH i2c: E2 17 00 [12:54:41]MH_I2C_Read... [12:54:41]Read from MH i2c: E2 17 00 80 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 6D [12:54:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:54:41]wFMCommunicate OK [12:54:41]requested_item fd.num is exist - process it [12:54:41]SAM_PROTO_GetFieldsCounters [12:54:41]wFMCommunicate request_size=4 [12:54:41]MH_SAM_APDU [12:54:41]CAPDU: 80 13 00 00 [12:54:41]Write to MH i2c: E2 08 00 81 1C 80 13 00 00 00 00 00 00 19 [12:54:41]Write i2c OK [12:54:41]MH_I2C_Read... [12:54:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:54:41]Read from MH i2c: E2 [12:54:41]MH_I2C_Read... [12:54:41]Read from MH i2c: E2 62 00 [12:54:41]MH_I2C_Read... [12:54:41]Read from MH i2c: E2 62 00 81 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 73 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 B3 [12:54:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 73 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:54:41]wFMCommunicate OK [12:54:41]SAM_PROTO_GetFieldsCounters done [12:54:41]requested_item shift.num is exist - process it [12:54:41]requested_item shift.opened is exist - process it [12:54:41]req_shift_opened [12:54:41]FM_GetShiftState [12:54:41]SAM_PROTO_GetShiftState [12:54:41]wFMCommunicate request_size=4 [12:54:41]MH_SAM_APDU [12:54:41]CAPDU: 80 13 01 00 [12:54:41]Write to MH i2c: E2 08 00 82 1C 80 13 01 00 00 00 00 00 1B [12:54:41]Write i2c OK [12:54:41]MH_I2C_Read... [12:54:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:41]Read from MH i2c: E2 [12:54:41]MH_I2C_Read... [12:54:41]Read from MH i2c: E2 0E 00 [12:54:41]MH_I2C_Read... [12:54:41]Read from MH i2c: E2 0E 00 82 1C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 35 [12:54:41]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:54:41]wFMCommunicate OK [12:54:41]SAM_PROTO_GetShiftState done [12:54:41]FM_GetShiftState done [12:54:41]req_shift_opened done [12:54:41]requested_item shift.open_date is exist - process it [12:54:41]req_shift_open_date [12:54:41]req_shift_open_date done [12:54:41]produce_requested_data done [12:54:41]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227443,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [12:54:41]process_action_free close_receipt [12:54:41]json_value_free [12:54:41]json_value_free done [12:54:41]process_json_proto returns [12:54:41]Send response to host [12:54:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227443,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [12:54:41]free response buf [12:54:41]execute_script done [12:54:41]execute_script returns [12:54:41]free content buf [12:54:41]Sock 8.Close socket [12:54:41]Sock 8.Thread stoped [12:54:41]OFD Sender: No OFD packet to send [12:54:46]OFD Sender: No OFD packet to send [12:54:51]OFD Sender: No OFD packet to send [12:54:56]OFD Sender: No OFD packet to send [12:55:01]OFD Sender: No OFD packet to send [12:55:06]OFD Sender: No OFD packet to send [12:55:11]OFD Sender: No OFD packet to send [12:55:16]OFD Sender: No OFD packet to send [12:55:21]OFD Sender: No OFD packet to send [12:55:26]OFD Sender: No OFD packet to send [12:55:31]OFD Sender: No OFD packet to send [12:55:36]OFD Sender: No OFD packet to send [12:55:41]OFD Sender: No OFD packet to send [12:55:46]OFD Sender: No OFD packet to send [12:55:49]accept exits with 9 [12:55:49]New connection [12:55:49]New thread 3066543460 created [12:55:49]Thread 3066686820 joined [12:55:49]Waiting for new connection... [12:55:49] Sock 9.Parse request [12:55:49]Sock 9.Check first char [12:55:49]Sock 9.First char is OK [12:55:49]request: POST /json_proto HTTP/1.0 [12:55:49]Method: POST [12:55:49]URL: /json_proto [12:55:49]Method is POST - this is cgi request [12:55:49]url: /json_proto [12:55:49]query_string will be loaded in cgi processing [12:55:49]execute_cgi json_proto POST (null) [12:55:49]execute_cgi path=json_proto method=POST [12:55:49]POST find Content-Length [12:55:49]Host: 172.17.44.195:8080 [12:55:49]Content-Length: 678 [12:55:49]Content-Type: application/json [12:55:49] [12:55:49]POST finish read [12:55:49]Found Content-Length = 678 [12:55:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962966", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 6.810, "sum" : 455.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 455.00, "total" : 455.00, "payments": [ { "type": 0, "sum" : 455.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:55:49]execute_script... [12:55:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962966", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 6.810, "sum" : 455.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 455.00, "total" : 455.00, "payments": [ { "type": 0, "sum" : 455.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:55:49]POST & json_proto [12:55:49]process_json_proto [12:55:49]json parsed OK: [12:55:49]protocol is kg_v1.0 [12:55:49]action value=close_receipt [12:55:49]process_action close_receipt [12:55:49]cmd_close_receipt [12:55:49]MH_GetDate [12:55:49]Write to MH i2c: F0 00 00 83 1C 8E [12:55:49]Write i2c OK [12:55:49]MH_I2C_Read... [12:55:49]Read from MH i2c: F0 [12:55:49]MH_I2C_Read... [12:55:49]Read from MH i2c: F0 09 00 [12:55:49]MH_I2C_Read... [12:55:49]Read from MH i2c: F0 09 00 83 1C 00 D6 FD 14 67 82 C9 CF 66 65 [12:55:49]GetLastDocTimeStamp 1729428880 [12:55:49]current date 1729428950 [12:55:49]FM_GetShiftState [12:55:49]SAM_PROTO_GetShiftState [12:55:49]wFMCommunicate request_size=4 [12:55:49]MH_SAM_APDU [12:55:49]CAPDU: 80 13 01 00 [12:55:49]Write to MH i2c: E2 08 00 84 1C 80 13 01 00 00 00 00 00 1D [12:55:49]Write i2c OK [12:55:49]MH_I2C_Read... [12:55:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:49]Read from MH i2c: E2 [12:55:49]MH_I2C_Read... [12:55:49]Read from MH i2c: E2 0E 00 [12:55:49]MH_I2C_Read... [12:55:49]Read from MH i2c: E2 0E 00 84 1C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 37 [12:55:49]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:55:49]wFMCommunicate OK [12:55:49]SAM_PROTO_GetShiftState done [12:55:49]FM_GetShiftState done [12:55:49]opened in 1729383750 [12:55:49]opened+sec_in_day 1729470150 [12:55:49]quantity*price = 45558 [12:55:49]sum+1 = 45560 [12:55:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 455.00 Внесено: 455.00 СДАЧА: 0.00 НСП 1% : 4.03 НДС 12% : 48.38 Наличными: 455.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 292 20.10.2024 12:55 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227444 ФПД: 80175086918454 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T125551&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227444&fm=80175086918454&tin=02508201610067®Number=0000000000091685&sum=45500 [12:55:51]StoreToDocumentArchive [12:55:51]shift 533 fd 227444 [12:55:51]save to /storage/0533/doc_00227444 [12:55:51]save last doc name /storage/0533/doc_00227444 to /storage/kkm_last_doc_name [12:55:51]save OK [12:55:51]Clear old archive folders... [12:55:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:55:51]tlvbuf is B6D67A40 [12:55:51]SAM_PROTO_ClearQueue [12:55:51]wFMCommunicate request_size=4 [12:55:51]MH_SAM_APDU [12:55:51]CAPDU: 80 09 00 00 [12:55:51]Write to MH i2c: E2 08 00 91 1C 80 09 00 00 00 00 00 00 1F [12:55:51]Write i2c OK [12:55:51]MH_I2C_Read... [12:55:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:55:51]Read from MH i2c: E2 [12:55:51]MH_I2C_Read... [12:55:51]Read from MH i2c: E2 03 00 [12:55:51]MH_I2C_Read... [12:55:51]Read from MH i2c: E2 03 00 91 1C 00 90 00 21 [12:55:51]RAPDU: 90 00 [12:55:51]wFMCommunicate OK [12:55:51]SAM_PROTO_ClearQueue done [12:55:51]KKMCreateOFDPacket [12:55:51]OFDProtocolAddRootSTLVToBuf [12:55:51]FM_MakeSignedData [12:55:51]FM_MakeSignedData [12:55:51]SAM_PROTO_SignData [12:55:51]wFMCommunicate request_size=4 [12:55:51]MH_SAM_APDU [12:55:51]CAPDU: 80 0D 01 02 [12:55:51]Write to MH i2c: E2 08 00 92 1C 80 0D 01 02 00 00 00 00 27 [12:55:51]Write i2c OK [12:55:51]MH_I2C_Read... [12:55:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:55:51]Read from MH i2c: E2 [12:55:51]MH_I2C_Read... [12:55:51]Read from MH i2c: E2 03 00 [12:55:51]MH_I2C_Read... [12:55:51]Read from MH i2c: E2 03 00 92 1C 00 90 00 22 [12:55:51]RAPDU: 90 00 [12:55:51]wFMCommunicate OK [12:55:51]wFMCommunicate request_size=255 [12:55:51]MH_SAM_APDU [12: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 35 FF 03 08 00 03 9A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F7 B1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC B1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 93 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 12 00 00 00 00 07 04 06 00 BC B1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 D7 FD 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 74 78 03 00 35 04 06 00 48 [12:55:51]Write to MH i2c: E2 02 01 93 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F7 B1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC B1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 93 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 12 00 00 00 00 07 04 06 00 BC B1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 D7 FD 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 74 78 03 00 35 04 06 00 48 00 00 F9 [12:55:51]Write i2c OK [12:55:51]MH_I2C_Read... [12:55:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:51]Read from MH i2c: E2 [12:55:51]MH_I2C_Read... [12:55:51]Read from MH i2c: E2 03 00 [12:55:51]MH_I2C_Read... [12:55:51]Read from MH i2c: E2 03 00 93 1C 00 90 00 23 [12:55:51]RAPDU: 90 00 [12:55:51]wFMCommunicate OK [12:55:51]wFMCommunicate request_size=10 [12:55:51]MH_SAM_APDU [12:55:51]CAPDU: 80 0D 02 02 05 EB 37 93 5B 36 [12:55:51]Write to MH i2c: E2 0D 00 94 1C 80 0D 02 02 05 00 EB 37 93 5B 36 00 00 7A [12:55:51]Write i2c OK [12:55:51]MH_I2C_Read... [12:55:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:51]Read from MH i2c: E2 [12:55:51]MH_I2C_Read... [12:55:51]Read from MH i2c: E2 03 00 [12:55:51]MH_I2C_Read... [12:55:51]Read from MH i2c: E2 03 00 94 1C 00 90 00 24 [12:55:51]RAPDU: 90 00 [12:55:51]wFMCommunicate OK [12:55:51]wFMCommunicate request_size=4 [12:55:51]MH_SAM_APDU [12:55:51]CAPDU: 80 0D 03 02 [12:55:51]Write to MH i2c: E2 08 00 95 1C 80 0D 03 02 00 00 00 00 2C [12:55:51]Write i2c OK [12:55:51]MH_I2C_Read... [12:55:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:55:51]Read from MH i2c: E2 [12:55:51]MH_I2C_Read... [12:55:51]Read from MH i2c: E2 0B 00 [12:55:51]MH_I2C_Read... [12:55:51]Read from MH i2c: E2 0B 00 95 1C 00 FA 00 9D 99 DE B2 EB A6 90 00 7E [12:55:51]RAPDU: FA 00 9D 99 DE B2 EB A6 90 00 [12:55:51]wFMCommunicate OK [12:55:51]SAM_PROTO_SignData done [12:55:51]FM_MakeSignedData done [12:55:51]CreateOFDProtocolMessage [12:55:51]wFMCommunicate request_size=4 [12:55:51]MH_SAM_APDU [12:55:51]CAPDU: 80 11 00 00 [12:55:51]Write to MH i2c: E2 08 00 96 1C 80 11 00 00 00 00 00 00 2C [12:55:51]Write i2c OK [12:55:51]MH_I2C_Read... [12:55:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:51]Read from MH i2c: E2 [12:55:51]MH_I2C_Read... [12:55:51]Read from MH i2c: E2 17 00 [12:55:51]MH_I2C_Read... [12:55:51]Read from MH i2c: E2 17 00 96 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 83 [12:55:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:55:51]wFMCommunicate OK [12:55:51]CreateOFDProtocolMessage done [12:55:51]OFDSenderStorePacket 227444 [12:55:51]StoreOFDPacket docnum=227444 [12:55:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 E8 71 07 01 40 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F7 B1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC B1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 93 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 12 00 00 00 00 07 04 06 00 BC B1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 D7 FD 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 74 78 03 00 35 04 06 00 48 EB 37 93 5B 36 FA 00 9D 99 DE B2 EB A6 [12:55:51]CheckFolder [12:55:51]dirname=/storage/ofd_packets [12:55:51]CheckFolder done [12:55:51]ProducePacketName [12:55:51]name=ofd_packets/00227444 [12:55:51]NVStorageSaveData ofd_packets/00227444 [12:55:51]File name is /storage/ofd_packets/00227444 [12:55:51]Write 301 bytes [12:55:51]NVStorageSaveData done [12:55:51]OFDSenderStorePacket done [12:55:51]KKMCreateOFDPacket done [12:55:51]NVStorageSaveData kkm_last_timestamp [12:55:51]File name is /storage/kkm_last_timestamp [12:55:51]Write 4 bytes [12:55:51]NVStorageSaveData done [12:55:51]ExternCall_PrintAddStr [12:55:51]wPrintStart [12:55:51]Write to MH i2c: 01 00 00 97 1C B3 [12:55:51]Write i2c OK [12:55:51]MH_I2C_Read... [12:55:51]Read from MH i2c: 01 [12:55:51]MH_I2C_Read... [12:55:51]Read from MH i2c: 01 07 00 [12:55:51]MH_I2C_Read... [12:55:51]Read from MH i2c: 01 07 00 97 1C 00 00 00 00 00 FF 0F C8 [12:55:51]RasterBufferAndPrint [12:55:51]line Счет N : (1)1962966 [12:55:51]line ИНН: 02508201610067 [12:55:51]line Контрольно-Кассовый Чек [12:55:51]line ПРОДАЖА [12:55:51]line ТРК (МРК, ГНК) : 63 [12:55:51]line Товар: 2710124130 [12:55:51]line Аи-92-К-5 [12:55:51]line 6.810 * 66.90 [12:55:51]line = 455.59 [12:55:51]line НДС 12% НСП 1% [12:55:51]line > о реализуемом товаре [12:55:51]line ОКРУГЛЕНИЕ: -0.59 [12:55:51]line ИТОГО: 455.00 [12:55:51]line Внесено: 455.00 [12:55:51]line СДАЧА: 0.00 [12:55:51]line НСП 1% : 4.03 [12:55:51]line НДС 12% : 48.38 [12:55:51]line Наличными: 455.00 [12:55:51]line Безнал.: 0.00 [12:55:51]line Место: АЗС № 133 "Партнер Нефть" [12:55:51]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:55:51]line СНО: Общий режим [12:55:51]line Чек 292 20.10.2024 12:55 [12:55:51]line Смена: 533 ФФД: 1.0 [12:55:51]line ЗНМ: 0300000091 [12:55:51]line РНМ: 0000000000091685 [12:55:51]line Версия ККМ: 001 [12:55:51]line ФМ: 0000000000871839 [12:55:51]line ФД: 227444 [12:55:51]line ФПД: 80175086918454 [12:55:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T125551&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227444&fm=80175086918454&tin=02508201610067®Number=0000000000091685&sum=45500 [12:55:51]OFD Sender: Processing packet 227444 [packets to send 38, broken 37] [12:55:51]ProducePacketName [12:55:51]name=ofd_packets/00227444 [12:55:51]OFD Sender: To server: pG, [12:55:51]CommunicateWithHost lk.salyk.kg:30040 [12:55:51]ConnectInit lk.salyk.kg [12:55:51]written 0, free lines is 4095 [12:55:51]Connected sock=10 [12:55:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 E8 71 07 01 40 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F7 B1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC B1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 93 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 12 00 00 00 00 07 04 06 00 BC B1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 D7 FD 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 74 78 03 00 35 04 06 00 48 EB 37 93 5B 36 FA 00 9D 99 DE B2 EB A6 [12: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 33 39 4F 00 00 00 09 EE 47 00 32 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 74 78 03 00 F4 03 04 00 D5 A8 14 67 B6 04 01 00 00 3E 74 EA 62 5F 07 FF A7 [12:55:52]CommunicateWithHost err = 0 [12:55:52]CheckOFDResponse [12:55:52]1017 (14) - 77093643461234 [12:55:52]1041 (16) - 0000000000871839 [12:55:52]1040 (4) - 227444 [12:55:52]1012 (4) - 20.10.2024 06:53 [12:55:52]1206 (1) - 0 [12:55:52]OFD Sender: Remove packet 227444 [12:55:52]ProducePacketName [12:55:52]name=ofd_packets/00227444 [12:55:52]NVStorageDeleteData [12:55:52]Write to MH i2c: 01 00 00 C1 1C DD [12:55:52]Write i2c OK [12:55:52]MH_I2C_Read... [12:55:52]Read from MH i2c: 01 [12:55:52]MH_I2C_Read... [12:55:52]Read from MH i2c: 01 07 00 [12:55:52]MH_I2C_Read... [12:55:52]Read from MH i2c: 01 07 00 C1 1C 00 00 00 00 00 0A 0D FB [12:55:52]RasterBufferAndPrint [12:55:52]line [12:55:52]line [12:55:52]line [12:55:52]line [12:55:52]line [12:55:52]written 0, free lines is 3344 [12:55:52]process_action close_receipt done [12:55:52]requested_data is exist [12:55:52]produce_requested_data [12:55:52]requested_item fm.sn is exist - process it [12:55:52]wFMCommunicate request_size=4 [12:55:52]MH_SAM_APDU [12:55:52]CAPDU: 80 11 00 00 [12:55:52]Write to MH i2c: E2 08 00 C8 1C 80 11 00 00 00 00 00 00 5E [12:55:52]Write i2c OK [12:55:52]MH_I2C_Read... [12:55:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:52]Read from MH i2c: E2 [12:55:52]MH_I2C_Read... [12:55:52]Read from MH i2c: E2 17 00 [12:55:52]MH_I2C_Read... [12:55:52]Read from MH i2c: E2 17 00 C8 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B5 [12:55:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:55:52]wFMCommunicate OK [12:55:52]requested_item fd.num is exist - process it [12:55:52]SAM_PROTO_GetFieldsCounters [12:55:52]wFMCommunicate request_size=4 [12:55:52]MH_SAM_APDU [12:55:52]CAPDU: 80 13 00 00 [12:55:52]Write to MH i2c: E2 08 00 C9 1C 80 13 00 00 00 00 00 00 61 [12:55:52]Write i2c OK [12:55:52]MH_I2C_Read... [12:55:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:55:52]Read from MH i2c: E2 [12:55:52]MH_I2C_Read... [12:55:52]Read from MH i2c: E2 62 00 [12:55:52]MH_I2C_Read... [12:55:52]Read from MH i2c: E2 62 00 C9 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 74 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 24 01 00 00 5E 04 04 00 24 01 00 00 57 04 04 00 25 01 00 00 19 04 04 00 00 00 00 00 90 00 FF [12:55:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 74 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 24 01 00 00 5E 04 04 00 24 01 00 00 57 04 04 00 25 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:55:52]wFMCommunicate OK [12:55:52]SAM_PROTO_GetFieldsCounters done [12:55:52]requested_item shift.num is exist - process it [12:55:52]requested_item shift.opened is exist - process it [12:55:52]req_shift_opened [12:55:52]FM_GetShiftState [12:55:52]SAM_PROTO_GetShiftState [12:55:52]wFMCommunicate request_size=4 [12:55:52]MH_SAM_APDU [12:55:52]CAPDU: 80 13 01 00 [12:55:52]Write to MH i2c: E2 08 00 CA 1C 80 13 01 00 00 00 00 00 63 [12:55:52]Write i2c OK [12:55:52]MH_I2C_Read... [12:55:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:52]Read from MH i2c: E2 [12:55:52]MH_I2C_Read... [12:55:52]Read from MH i2c: E2 0E 00 [12:55:52]MH_I2C_Read... [12:55:52]Read from MH i2c: E2 0E 00 CA 1C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 7D [12:55:52]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:55:52]wFMCommunicate OK [12:55:52]SAM_PROTO_GetShiftState done [12:55:52]FM_GetShiftState done [12:55:52]req_shift_opened done [12:55:52]requested_item shift.open_date is exist - process it [12:55:52]req_shift_open_date [12:55:52]req_shift_open_date done [12:55:52]produce_requested_data done [12:55:52]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227444,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [12:55:52]process_action_free close_receipt [12:55:52]json_value_free [12:55:52]json_value_free done [12:55:52]process_json_proto returns [12:55:52]Send response to host [12:55:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227444,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [12:55:52]free response buf [12:55:52]execute_script done [12:55:52]execute_script returns [12:55:52]free content buf [12:55:52]Sock 9.Close socket [12:55:52]Sock 9.Thread stoped [12:55:52]OFD Sender: No OFD packet to send [12:55:57]OFD Sender: No OFD packet to send [12:56:02]OFD Sender: No OFD packet to send [12:56:07]OFD Sender: No OFD packet to send [12:56:12]OFD Sender: No OFD packet to send [12:56:17]OFD Sender: No OFD packet to send [12:56:22]OFD Sender: No OFD packet to send [12:56:27]OFD Sender: No OFD packet to send [12:56:32]OFD Sender: No OFD packet to send [12:56:37]OFD Sender: No OFD packet to send [12:56:42]OFD Sender: No OFD packet to send [12:56:46]accept exits with 8 [12:56:46]New connection [12:56:46]New thread 3066686820 created [12:56:46]Thread 3066543460 joined [12:56:46]Waiting for new connection... [12:56:46] Sock 8.Parse request [12:56:46]Sock 8.Check first char [12:56:46]Sock 8.First char is OK [12:56:46]request: POST /json_proto HTTP/1.0 [12:56:46]Method: POST [12:56:46]URL: /json_proto [12:56:46]Method is POST - this is cgi request [12:56:46]url: /json_proto [12:56:46]query_string will be loaded in cgi processing [12:56:46]execute_cgi json_proto POST (null) [12:56:46]execute_cgi path=json_proto method=POST [12:56:46]POST find Content-Length [12:56:46]Host: 172.17.44.195:8080 [12:56:46]Content-Length: 680 [12:56:46]Content-Type: application/json [12:56:46] [12:56:46]POST finish read [12:56:46]Found Content-Length = 680 [12:56:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962967", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:56:46]execute_script... [12:56: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)1962967", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:56:46]POST & json_proto [12:56:46]process_json_proto [12:56:46]json parsed OK: [12:56:46]protocol is kg_v1.0 [12:56:46]action value=close_receipt [12:56:46]process_action close_receipt [12:56:46]cmd_close_receipt [12:56:46]MH_GetDate [12:56:46]Write to MH i2c: F0 00 00 CB 1C D6 [12:56:46]Write i2c OK [12:56:46]MH_I2C_Read... [12:56:46]Read from MH i2c: F0 [12:56:46]MH_I2C_Read... [12:56:46]Read from MH i2c: F0 09 00 [12:56:46]MH_I2C_Read... [12:56:46]Read from MH i2c: F0 09 00 CB 1C 00 0F FE 14 67 82 C9 CF 66 E7 [12:56:46]GetLastDocTimeStamp 1729428951 [12:56:46]current date 1729429007 [12:56:46]FM_GetShiftState [12:56:46]SAM_PROTO_GetShiftState [12:56:46]wFMCommunicate request_size=4 [12:56:46]MH_SAM_APDU [12:56:46]CAPDU: 80 13 01 00 [12:56:46]Write to MH i2c: E2 08 00 CC 1C 80 13 01 00 00 00 00 00 65 [12:56:46]Write i2c OK [12:56:46]MH_I2C_Read... [12:56:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:46]Read from MH i2c: E2 [12:56:46]MH_I2C_Read... [12:56:46]Read from MH i2c: E2 0E 00 [12:56:46]MH_I2C_Read... [12:56:46]Read from MH i2c: E2 0E 00 CC 1C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 7F [12:56:46]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:56:46]wFMCommunicate OK [12:56:46]SAM_PROTO_GetShiftState done [12:56:46]FM_GetShiftState done [12:56:46]opened in 1729383750 [12:56:46]opened+sec_in_day 1729470150 [12:56:46]quantity*price = 100050 [12:56:46]sum+1 = 100052 [12:56:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 293 20.10.2024 12:56 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227445 ФПД: 151812223776657 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T125647&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227445&fm=151812223776657&tin=02508201610067®Number=0000000000091685&sum=100000 [12:56:47]StoreToDocumentArchive [12:56:47]shift 533 fd 227445 [12:56:47]save to /storage/0533/doc_00227445 [12:56:47]save last doc name /storage/0533/doc_00227445 to /storage/kkm_last_doc_name [12:56:47]save OK [12:56:47]Clear old archive folders... [12:56:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:56:47]tlvbuf is B6E80310 [12:56:47]SAM_PROTO_ClearQueue [12:56:47]wFMCommunicate request_size=4 [12:56:47]MH_SAM_APDU [12:56:47]CAPDU: 80 09 00 00 [12:56:47]Write to MH i2c: E2 08 00 D9 1C 80 09 00 00 00 00 00 00 67 [12:56:47]Write i2c OK [12:56:47]MH_I2C_Read... [12:56:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:56:47]Read from MH i2c: E2 [12:56:47]MH_I2C_Read... [12:56:47]Read from MH i2c: E2 03 00 [12:56:47]MH_I2C_Read... [12:56:47]Read from MH i2c: E2 03 00 D9 1C 00 90 00 69 [12:56:47]RAPDU: 90 00 [12:56:47]wFMCommunicate OK [12:56:47]SAM_PROTO_ClearQueue done [12:56:47]KKMCreateOFDPacket [12:56:47]OFDProtocolAddRootSTLVToBuf [12:56:47]FM_MakeSignedData [12:56:47]FM_MakeSignedData [12:56:47]SAM_PROTO_SignData [12:56:47]wFMCommunicate request_size=4 [12:56:47]MH_SAM_APDU [12:56:47]CAPDU: 80 0D 01 02 [12:56:47]Write to MH i2c: E2 08 00 DA 1C 80 0D 01 02 00 00 00 00 6F [12:56:47]Write i2c OK [12:56:47]MH_I2C_Read... [12:56:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:56:47]Read from MH i2c: E2 [12:56:47]MH_I2C_Read... [12:56:47]Read from MH i2c: E2 03 00 [12:56:47]MH_I2C_Read... [12:56:47]Read from MH i2c: E2 03 00 DA 1C 00 90 00 6A [12:56:47]RAPDU: 90 00 [12:56:47]wFMCommunicate OK [12:56:47]wFMCommunicate request_size=255 [12:56:47]MH_SAM_APDU [12:56: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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 0F FE 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 75 78 03 00 35 04 06 00 8A 12 89 AB [12:56:47]Write to MH i2c: E2 02 01 DB 1C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 0F FE 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 75 78 03 00 35 04 06 00 8A 12 89 AB 00 00 81 [12:56:47]Write i2c OK [12:56:47]MH_I2C_Read... [12:56:47]OFD Sender: No OFD packet to send [12:56:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:47]Read from MH i2c: E2 [12:56:47]MH_I2C_Read... [12:56:47]Read from MH i2c: E2 03 00 [12:56:47]MH_I2C_Read... [12:56:47]Read from MH i2c: E2 03 00 DB 1C 00 90 00 6B [12:56:47]RAPDU: 90 00 [12:56:47]wFMCommunicate OK [12:56:47]wFMCommunicate request_size=7 [12:56:47]MH_SAM_APDU [12:56:47]CAPDU: 80 0D 02 02 02 B7 91 [12:56:47]Write to MH i2c: E2 0A 00 DC 1C 80 0D 02 02 02 00 B7 91 00 00 BE [12:56:47]Write i2c OK [12:56:47]MH_I2C_Read... [12:56:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:47]Read from MH i2c: E2 [12:56:47]MH_I2C_Read... [12:56:47]Read from MH i2c: E2 03 00 [12:56:47]MH_I2C_Read... [12:56:47]Read from MH i2c: E2 03 00 DC 1C 00 90 00 6C [12:56:47]RAPDU: 90 00 [12:56:47]wFMCommunicate OK [12:56:47]wFMCommunicate request_size=4 [12:56:47]MH_SAM_APDU [12:56:47]CAPDU: 80 0D 03 02 [12:56:47]Write to MH i2c: E2 08 00 DD 1C 80 0D 03 02 00 00 00 00 74 [12:56:47]Write i2c OK [12:56:47]MH_I2C_Read... [12:56:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:56:47]Read from MH i2c: E2 [12:56:47]MH_I2C_Read... [12:56:47]Read from MH i2c: E2 0B 00 [12:56:47]MH_I2C_Read... [12:56:47]Read from MH i2c: E2 0B 00 DD 1C 00 C1 EF E4 E7 06 F7 EB 8F 90 00 67 [12:56:47]RAPDU: C1 EF E4 E7 06 F7 EB 8F 90 00 [12:56:47]wFMCommunicate OK [12:56:47]SAM_PROTO_SignData done [12:56:47]FM_MakeSignedData done [12:56:47]CreateOFDProtocolMessage [12:56:47]wFMCommunicate request_size=4 [12:56:47]MH_SAM_APDU [12:56:47]CAPDU: 80 11 00 00 [12:56:47]Write to MH i2c: E2 08 00 DE 1C 80 11 00 00 00 00 00 00 74 [12:56:47]Write i2c OK [12:56:47]MH_I2C_Read... [12:56:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:48]Read from MH i2c: E2 [12:56:48]MH_I2C_Read... [12:56:48]Read from MH i2c: E2 17 00 [12:56:48]MH_I2C_Read... [12:56:48]Read from MH i2c: E2 17 00 DE 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 CB [12:56:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:56:48]wFMCommunicate OK [12:56:48]CreateOFDProtocolMessage done [12:56:48]OFDSenderStorePacket 227445 [12:56:48]StoreOFDPacket docnum=227445 [12:56:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 32 A4 04 01 91 B3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 0F FE 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 75 78 03 00 35 04 06 00 8A 12 89 AB B7 91 C1 EF E4 E7 06 F7 EB 8F [12:56:48]CheckFolder [12:56:48]dirname=/storage/ofd_packets [12:56:48]CheckFolder done [12:56:48]ProducePacketName [12:56:48]name=ofd_packets/00227445 [12:56:48]NVStorageSaveData ofd_packets/00227445 [12:56:48]File name is /storage/ofd_packets/00227445 [12:56:48]Write 298 bytes [12:56:48]NVStorageSaveData done [12:56:48]OFDSenderStorePacket done [12:56:48]KKMCreateOFDPacket done [12:56:48]NVStorageSaveData kkm_last_timestamp [12:56:48]File name is /storage/kkm_last_timestamp [12:56:48]Write 4 bytes [12:56:48]NVStorageSaveData done [12:56:48]ExternCall_PrintAddStr [12:56:48]wPrintStart [12:56:48]Write to MH i2c: 01 00 00 DF 1C FB [12:56:48]Write i2c OK [12:56:48]MH_I2C_Read... [12:56:48]Read from MH i2c: 01 [12:56:48]MH_I2C_Read... [12:56:48]Read from MH i2c: 01 07 00 [12:56:48]MH_I2C_Read... [12:56:48]Read from MH i2c: 01 07 00 DF 1C 00 00 00 00 00 FF 0F 10 [12:56:48]RasterBufferAndPrint [12:56:48]line Счет N : (1)1962967 [12:56:48]line ИНН: 02508201610067 [12:56:48]line Контрольно-Кассовый Чек [12:56:48]line ПРОДАЖА [12:56:48]line ТРК (МРК, ГНК) : 21 [12:56:48]line Товар: 2710194210 [12:56:48]line ДТ-К-5 [12:56:48]line 13.130 * 76.20 [12:56:48]line = 1000.51 [12:56:48]line НДС 12% НСП 1% [12:56:48]line > о реализуемом товаре [12:56:48]line ОКРУГЛЕНИЕ: -0.51 [12:56:48]line ИТОГО: 1000.00 [12:56:48]line Внесено: 1000.00 [12:56:48]line СДАЧА: 0.00 [12:56:48]line НСП 1% : 8.85 [12:56:48]line НДС 12% : 106.25 [12:56:48]line Наличными: 1000.00 [12:56:48]line Безнал.: 0.00 [12:56:48]line Место: АЗС № 133 "Партнер Нефть" [12:56:48]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:56:48]line СНО: Общий режим [12:56:48]line Чек 293 20.10.2024 12:56 [12:56:48]line Смена: 533 ФФД: 1.0 [12:56:48]line ЗНМ: 0300000091 [12:56:48]line РНМ: 0000000000091685 [12:56:48]line Версия ККМ: 001 [12:56:48]line ФМ: 0000000000871839 [12:56:48]line ФД: 227445 [12:56:48]line ФПД: 151812223776657 [12:56:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T125647&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227445&fm=151812223776657&tin=02508201610067®Number=0000000000091685&sum=100000 [12:56:48]OFD Sender: Processing packet 227445 [packets to send 38, broken 37] [12:56:48]ProducePacketName [12:56:48]name=ofd_packets/00227445 [12:56:48]OFD Sender: To server: pG, [12:56:48]CommunicateWithHost lk.salyk.kg:30040 [12:56:48]ConnectInit lk.salyk.kg [12:56:48]written 0, free lines is 4095 [12:56:48]Connected sock=10 [12:56: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 33 39 0C 01 00 00 32 A4 04 01 91 B3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 0F FE 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 75 78 03 00 35 04 06 00 8A 12 89 AB B7 91 C1 EF E4 E7 06 F7 EB 8F [12:56: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 33 39 4F 00 00 00 80 83 47 00 B0 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 33 39 10 04 04 00 75 78 03 00 F4 03 04 00 0E A9 14 67 B6 04 01 00 00 4F 53 C2 4A C4 72 11 B4 [12:56:48]CommunicateWithHost err = 0 [12:56:48]CheckOFDResponse [12:56:48]1017 (14) - 77093643461234 [12:56:48]1041 (16) - 0000000000871839 [12:56:48]1040 (4) - 227445 [12:56:48]1012 (4) - 20.10.2024 06:54 [12:56:48]1206 (1) - 0 [12:56:48]OFD Sender: Remove packet 227445 [12:56:48]ProducePacketName [12:56:48]name=ofd_packets/00227445 [12:56:48]NVStorageDeleteData [12:56:48]Write to MH i2c: 01 00 00 09 1D 26 [12:56:48]Write i2c OK [12:56:48]MH_I2C_Read... [12:56:48]Read from MH i2c: 01 [12:56:48]MH_I2C_Read... [12:56:48]Read from MH i2c: 01 07 00 [12:56:48]MH_I2C_Read... [12:56:48]Read from MH i2c: 01 07 00 09 1D 00 00 00 00 00 07 0D 41 [12:56:48]RasterBufferAndPrint [12:56:48]line [12:56:48]line [12:56:48]line [12:56:48]line [12:56:48]line [12:56:48]written 0, free lines is 3341 [12:56:48]process_action close_receipt done [12:56:48]requested_data is exist [12:56:48]produce_requested_data [12:56:48]requested_item fm.sn is exist - process it [12:56:48]wFMCommunicate request_size=4 [12:56:48]MH_SAM_APDU [12:56:48]CAPDU: 80 11 00 00 [12:56:48]Write to MH i2c: E2 08 00 10 1D 80 11 00 00 00 00 00 00 A7 [12:56:48]Write i2c OK [12:56:48]MH_I2C_Read... [12:56:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:48]Read from MH i2c: E2 [12:56:48]MH_I2C_Read... [12:56:48]Read from MH i2c: E2 17 00 [12:56:48]MH_I2C_Read... [12:56:48]Read from MH i2c: E2 17 00 10 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 FE [12:56:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:56:48]wFMCommunicate OK [12:56:48]requested_item fd.num is exist - process it [12:56:48]SAM_PROTO_GetFieldsCounters [12:56:48]wFMCommunicate request_size=4 [12:56:48]MH_SAM_APDU [12:56:48]CAPDU: 80 13 00 00 [12:56:48]Write to MH i2c: E2 08 00 11 1D 80 13 00 00 00 00 00 00 AA [12:56:48]Write i2c OK [12:56:48]MH_I2C_Read... [12:56:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:56:49]Read from MH i2c: E2 [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: E2 62 00 [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: E2 62 00 11 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 75 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 4C [12:56:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 75 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:56:49]wFMCommunicate OK [12:56:49]SAM_PROTO_GetFieldsCounters done [12:56:49]requested_item shift.num is exist - process it [12:56:49]requested_item shift.opened is exist - process it [12:56:49]req_shift_opened [12:56:49]FM_GetShiftState [12:56:49]SAM_PROTO_GetShiftState [12:56:49]wFMCommunicate request_size=4 [12:56:49]MH_SAM_APDU [12:56:49]CAPDU: 80 13 01 00 [12:56:49]Write to MH i2c: E2 08 00 12 1D 80 13 01 00 00 00 00 00 AC [12:56:49]Write i2c OK [12:56:49]MH_I2C_Read... [12:56:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:49]Read from MH i2c: E2 [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: E2 0E 00 [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: E2 0E 00 12 1D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 C6 [12:56:49]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:56:49]wFMCommunicate OK [12:56:49]SAM_PROTO_GetShiftState done [12:56:49]FM_GetShiftState done [12:56:49]req_shift_opened done [12:56:49]requested_item shift.open_date is exist - process it [12:56:49]req_shift_open_date [12:56:49]req_shift_open_date done [12:56:49]produce_requested_data done [12:56:49]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227445,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [12:56:49]process_action_free close_receipt [12:56:49]json_value_free [12:56:49]json_value_free done [12:56:49]process_json_proto returns [12:56:49]Send response to host [12:56:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227445,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [12:56:49]free response buf [12:56:49]execute_script done [12:56:49]execute_script returns [12:56:49]free content buf [12:56:49]Sock 8.Close socket [12:56:49]Sock 8.Thread stoped [12:56:49]OFD Sender: No OFD packet to send [12:56:54]OFD Sender: No OFD packet to send [12:56:59]OFD Sender: No OFD packet to send [12:57:04]OFD Sender: No OFD packet to send [12:57:09]OFD Sender: No OFD packet to send [12:57:14]OFD Sender: No OFD packet to send [12:57:19]OFD Sender: No OFD packet to send [12:57:24]OFD Sender: No OFD packet to send [12:57:29]OFD Sender: No OFD packet to send [12:57:34]OFD Sender: No OFD packet to send [12:57:39]OFD Sender: No OFD packet to send [12:57:44]OFD Sender: No OFD packet to send [12:57:49]OFD Sender: No OFD packet to send [12:57:54]OFD Sender: No OFD packet to send [12:57:59]OFD Sender: No OFD packet to send [12:58:04]OFD Sender: No OFD packet to send [12:58:09]OFD Sender: No OFD packet to send [12:58:14]OFD Sender: No OFD packet to send [12:58:19]OFD Sender: No OFD packet to send [12:58:24]OFD Sender: No OFD packet to send [12:58:26]accept exits with 9 [12:58:26]New connection [12:58:26]New thread 3066543460 created [12:58:26]Thread 3066686820 joined [12:58:26]Waiting for new connection... [12:58:26] Sock 9.Parse request [12:58:26]Sock 9.Check first char [12:58:26]Sock 9.First char is OK [12:58:26]request: POST /json_proto HTTP/1.0 [12:58:26]Method: POST [12:58:26]URL: /json_proto [12:58:26]Method is POST - this is cgi request [12:58:26]url: /json_proto [12:58:26]query_string will be loaded in cgi processing [12:58:26]execute_cgi json_proto POST (null) [12:58:26]execute_cgi path=json_proto method=POST [12:58:26]POST find Content-Length [12:58:26]Host: 172.17.44.195:8080 [12:58:26]Content-Length: 675 [12:58:26]Content-Type: application/json [12:58:26] [12:58:26]POST finish read [12:58:26]Found Content-Length = 675 [12:58:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962968", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:58:26]execute_script... [12:58: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)1962968", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:58:26]POST & json_proto [12:58:26]process_json_proto [12:58:26]json parsed OK: [12:58:26]protocol is kg_v1.0 [12:58:26]action value=close_receipt [12:58:26]process_action close_receipt [12:58:26]cmd_close_receipt [12:58:26]MH_GetDate [12:58:26]Write to MH i2c: F0 00 00 13 1D 1F [12:58:26]Write i2c OK [12:58:26]MH_I2C_Read... [12:58:26]Read from MH i2c: F0 [12:58:26]MH_I2C_Read... [12:58:26]Read from MH i2c: F0 09 00 [12:58:26]MH_I2C_Read... [12:58:26]Read from MH i2c: F0 09 00 13 1D 00 73 FE 14 67 82 C9 CF 66 94 [12:58:26]GetLastDocTimeStamp 1729429007 [12:58:26]current date 1729429107 [12:58:26]FM_GetShiftState [12:58:26]SAM_PROTO_GetShiftState [12:58:26]wFMCommunicate request_size=4 [12:58:26]MH_SAM_APDU [12:58:26]CAPDU: 80 13 01 00 [12:58:26]Write to MH i2c: E2 08 00 14 1D 80 13 01 00 00 00 00 00 AE [12:58:26]Write i2c OK [12:58:26]MH_I2C_Read... [12:58:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:26]Read from MH i2c: E2 [12:58:26]MH_I2C_Read... [12:58:26]Read from MH i2c: E2 0E 00 [12:58:26]MH_I2C_Read... [12:58:26]Read from MH i2c: E2 0E 00 14 1D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 C8 [12:58:26]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:58:26]wFMCommunicate OK [12:58:26]SAM_PROTO_GetShiftState done [12:58:26]FM_GetShiftState done [12:58:26]opened in 1729383750 [12:58:26]opened+sec_in_day 1729470150 [12:58:26]quantity*price = 50063 [12:58:26]sum+1 = 50064 [12:58:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 294 20.10.2024 12:58 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227446 ФПД: 22959301651556 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T125827&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227446&fm=22959301651556&tin=02508201610067®Number=0000000000091685&sum=50000 [12:58:27]StoreToDocumentArchive [12:58:27]shift 533 fd 227446 [12:58:27]save to /storage/0533/doc_00227446 [12:58:27]save last doc name /storage/0533/doc_00227446 to /storage/kkm_last_doc_name [12:58:27]save OK [12:58:27]Clear old archive folders... [12:58:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:58:27]tlvbuf is B6E67AD0 [12:58:27]SAM_PROTO_ClearQueue [12:58:27]wFMCommunicate request_size=4 [12:58:27]MH_SAM_APDU [12:58:27]CAPDU: 80 09 00 00 [12:58:27]Write to MH i2c: E2 08 00 21 1D 80 09 00 00 00 00 00 00 B0 [12:58:27]Write i2c OK [12:58:27]MH_I2C_Read... [12:58:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:58:27]Read from MH i2c: E2 [12:58:27]MH_I2C_Read... [12:58:27]Read from MH i2c: E2 03 00 [12:58:27]MH_I2C_Read... [12:58:27]Read from MH i2c: E2 03 00 21 1D 00 90 00 B2 [12:58:27]RAPDU: 90 00 [12:58:27]wFMCommunicate OK [12:58:27]SAM_PROTO_ClearQueue done [12:58:27]KKMCreateOFDPacket [12:58:27]OFDProtocolAddRootSTLVToBuf [12:58:27]FM_MakeSignedData [12:58:27]FM_MakeSignedData [12:58:27]SAM_PROTO_SignData [12:58:27]wFMCommunicate request_size=4 [12:58:27]MH_SAM_APDU [12:58:27]CAPDU: 80 0D 01 02 [12:58:27]Write to MH i2c: E2 08 00 22 1D 80 0D 01 02 00 00 00 00 B8 [12:58:27]Write i2c OK [12:58:27]MH_I2C_Read... [12:58:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:58:27]Read from MH i2c: E2 [12:58:27]MH_I2C_Read... [12:58:27]Read from MH i2c: E2 03 00 [12:58:27]MH_I2C_Read... [12:58:27]Read from MH i2c: E2 03 00 22 1D 00 90 00 B3 [12:58:27]RAPDU: 90 00 [12:58:27]wFMCommunicate OK [12:58:27]wFMCommunicate request_size=255 [12:58:27]MH_SAM_APDU [12:58:27]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 73 FE 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 76 78 03 00 35 04 06 00 14 E1 A1 04 [12:58:27]Write to MH i2c: E2 02 01 23 1D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 73 FE 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 76 78 03 00 35 04 06 00 14 E1 A1 04 00 00 82 [12:58:27]Write i2c OK [12:58:27]MH_I2C_Read... [12:58:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:27]Read from MH i2c: E2 [12:58:27]MH_I2C_Read... [12:58:27]Read from MH i2c: E2 03 00 [12:58:27]MH_I2C_Read... [12:58:27]Read from MH i2c: E2 03 00 23 1D 00 90 00 B4 [12:58:27]RAPDU: 90 00 [12:58:27]wFMCommunicate OK [12:58:27]wFMCommunicate request_size=7 [12:58:27]MH_SAM_APDU [12:58:27]CAPDU: 80 0D 02 02 02 EC 64 [12:58:27]Write to MH i2c: E2 0A 00 24 1D 80 0D 02 02 02 00 EC 64 00 00 0F [12:58:27]Write i2c OK [12:58:27]MH_I2C_Read... [12:58:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:27]Read from MH i2c: E2 [12:58:27]MH_I2C_Read... [12:58:27]Read from MH i2c: E2 03 00 [12:58:27]MH_I2C_Read... [12:58:27]Read from MH i2c: E2 03 00 24 1D 00 90 00 B5 [12:58:27]RAPDU: 90 00 [12:58:27]wFMCommunicate OK [12:58:27]wFMCommunicate request_size=4 [12:58:27]MH_SAM_APDU [12:58:27]CAPDU: 80 0D 03 02 [12:58:27]Write to MH i2c: E2 08 00 25 1D 80 0D 03 02 00 00 00 00 BD [12:58:27]Write i2c OK [12:58:27]MH_I2C_Read... [12:58:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:58:27]Read from MH i2c: E2 [12:58:27]MH_I2C_Read... [12:58:27]Read from MH i2c: E2 0B 00 [12:58:27]MH_I2C_Read... [12:58:27]Read from MH i2c: E2 0B 00 25 1D 00 49 C0 C8 73 6D 36 44 F8 90 00 E1 [12:58:27]RAPDU: 49 C0 C8 73 6D 36 44 F8 90 00 [12:58:27]wFMCommunicate OK [12:58:27]SAM_PROTO_SignData done [12:58:27]FM_MakeSignedData done [12:58:27]CreateOFDProtocolMessage [12:58:27]wFMCommunicate request_size=4 [12:58:27]MH_SAM_APDU [12:58:27]CAPDU: 80 11 00 00 [12:58:27]Write to MH i2c: E2 08 00 26 1D 80 11 00 00 00 00 00 00 BD [12:58:27]Write i2c OK [12:58:27]MH_I2C_Read... [12:58:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:27]Read from MH i2c: E2 [12:58:27]MH_I2C_Read... [12:58:27]Read from MH i2c: E2 17 00 [12:58:27]MH_I2C_Read... [12:58:27]Read from MH i2c: E2 17 00 26 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 14 [12:58:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:58:27]wFMCommunicate OK [12:58:27]CreateOFDProtocolMessage done [12:58:27]OFDSenderStorePacket 227446 [12:58:27]StoreOFDPacket docnum=227446 [12:58:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 1E D4 04 01 B2 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 73 FE 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 76 78 03 00 35 04 06 00 14 E1 A1 04 EC 64 49 C0 C8 73 6D 36 44 F8 [12:58:27]CheckFolder [12:58:27]dirname=/storage/ofd_packets [12:58:27]CheckFolder done [12:58:27]ProducePacketName [12:58:27]name=ofd_packets/00227446 [12:58:27]NVStorageSaveData ofd_packets/00227446 [12:58:27]File name is /storage/ofd_packets/00227446 [12:58:27]Write 298 bytes [12:58:27]NVStorageSaveData done [12:58:27]OFDSenderStorePacket done [12:58:27]KKMCreateOFDPacket done [12:58:27]NVStorageSaveData kkm_last_timestamp [12:58:27]File name is /storage/kkm_last_timestamp [12:58:27]Write 4 bytes [12:58:27]NVStorageSaveData done [12:58:27]ExternCall_PrintAddStr [12:58:27]wPrintStart [12:58:27]Write to MH i2c: 01 00 00 27 1D 44 [12:58:27]Write i2c OK [12:58:27]MH_I2C_Read... [12:58:27]Read from MH i2c: 01 [12:58:27]MH_I2C_Read... [12:58:27]Read from MH i2c: 01 07 00 [12:58:27]MH_I2C_Read... [12:58:27]Read from MH i2c: 01 07 00 27 1D 00 00 00 00 00 FF 0F 59 [12:58:27]RasterBufferAndPrint [12:58:27]line Счет N : (1)1962968 [12:58:27]line ИНН: 02508201610067 [12:58:27]line Контрольно-Кассовый Чек [12:58:27]line ПРОДАЖА [12:58:27]line ТРК (МРК, ГНК) : 41 [12:58:27]line Товар: 2710194210 [12:58:27]line ДТ-К-5 [12:58:27]line 6.570 * 76.20 [12:58:27]line = 500.63 [12:58:27]line НДС 12% НСП 1% [12:58:27]line > о реализуемом товаре [12:58:27]line ОКРУГЛЕНИЕ: -0.63 [12:58:27]line ИТОГО: 500.00 [12:58:27]line Внесено: 500.00 [12:58:27]line СДАЧА: 0.00 [12:58:27]line НСП 1% : 4.43 [12:58:27]line НДС 12% : 53.16 [12:58:27]line Наличными: 500.00 [12:58:27]line Безнал.: 0.00 [12:58:27]line Место: АЗС № 133 "Партнер Нефть" [12:58:27]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:58:27]line СНО: Общий режим [12:58:27]line Чек 294 20.10.2024 12:58 [12:58:27]line Смена: 533 ФФД: 1.0 [12:58:27]line ЗНМ: 0300000091 [12:58:27]line РНМ: 0000000000091685 [12:58:27]line Версия ККМ: 001 [12:58:27]line ФМ: 0000000000871839 [12:58:27]line ФД: 227446 [12:58:27]line ФПД: 22959301651556 [12:58:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T125827&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227446&fm=22959301651556&tin=02508201610067®Number=0000000000091685&sum=50000 [12:58:28]OFD Sender: Processing packet 227446 [packets to send 38, broken 37] [12:58:28]ProducePacketName [12:58:28]name=ofd_packets/00227446 [12:58:28]OFD Sender: To server: pG, [12:58:28]CommunicateWithHost lk.salyk.kg:30040 [12:58:28]ConnectInit lk.salyk.kg [12:58:28]written 0, free lines is 4095 [12:58:28]Connected sock=10 [12:58: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 33 39 0C 01 00 00 1E D4 04 01 B2 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 73 FE 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 76 78 03 00 35 04 06 00 14 E1 A1 04 EC 64 49 C0 C8 73 6D 36 44 F8 [12:58: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 33 39 4F 00 00 00 9F A0 47 00 88 AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 76 78 03 00 F4 03 04 00 72 A9 14 67 B6 04 01 00 00 9C 3D 48 22 9E 62 0C 09 [12:58:28]CommunicateWithHost err = 0 [12:58:28]CheckOFDResponse [12:58:28]1017 (14) - 77093643461234 [12:58:28]1041 (16) - 0000000000871839 [12:58:28]1040 (4) - 227446 [12:58:28]1012 (4) - 20.10.2024 06:55 [12:58:28]1206 (1) - 0 [12:58:28]OFD Sender: Remove packet 227446 [12:58:28]ProducePacketName [12:58:28]name=ofd_packets/00227446 [12:58:28]NVStorageDeleteData [12:58:28]Write to MH i2c: 01 00 00 51 1D 6E [12:58:28]Write i2c OK [12:58:28]MH_I2C_Read... [12:58:28]Read from MH i2c: 01 [12:58:28]MH_I2C_Read... [12:58:28]Read from MH i2c: 01 07 00 [12:58:28]MH_I2C_Read... [12:58:28]Read from MH i2c: 01 07 00 51 1D 00 00 00 00 00 0A 0D 8C [12:58:28]RasterBufferAndPrint [12:58:28]line [12:58:28]line [12:58:28]line [12:58:28]line [12:58:28]line [12:58:28]written 0, free lines is 3344 [12:58:28]process_action close_receipt done [12:58:28]requested_data is exist [12:58:28]produce_requested_data [12:58:28]requested_item fm.sn is exist - process it [12:58:28]wFMCommunicate request_size=4 [12:58:28]MH_SAM_APDU [12:58:28]CAPDU: 80 11 00 00 [12:58:28]Write to MH i2c: E2 08 00 58 1D 80 11 00 00 00 00 00 00 EF [12:58:28]Write i2c OK [12:58:28]MH_I2C_Read... [12:58:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:28]Read from MH i2c: E2 [12:58:28]MH_I2C_Read... [12:58:28]Read from MH i2c: E2 17 00 [12:58:28]MH_I2C_Read... [12:58:28]Read from MH i2c: E2 17 00 58 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 46 [12:58:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:58:28]wFMCommunicate OK [12:58:28]requested_item fd.num is exist - process it [12:58:28]SAM_PROTO_GetFieldsCounters [12:58:28]wFMCommunicate request_size=4 [12:58:28]MH_SAM_APDU [12:58:28]CAPDU: 80 13 00 00 [12:58:28]Write to MH i2c: E2 08 00 59 1D 80 13 00 00 00 00 00 00 F2 [12:58:28]Write i2c OK [12:58:28]MH_I2C_Read... [12:58:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:58:28]Read from MH i2c: E2 [12:58:28]MH_I2C_Read... [12:58:28]Read from MH i2c: E2 62 00 [12:58:28]MH_I2C_Read... [12:58:28]Read from MH i2c: E2 62 00 59 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 76 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 98 [12:58: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 76 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:58:28]wFMCommunicate OK [12:58:28]SAM_PROTO_GetFieldsCounters done [12:58:28]requested_item shift.num is exist - process it [12:58:28]requested_item shift.opened is exist - process it [12:58:28]req_shift_opened [12:58:28]FM_GetShiftState [12:58:28]SAM_PROTO_GetShiftState [12:58:28]wFMCommunicate request_size=4 [12:58:28]MH_SAM_APDU [12:58:28]CAPDU: 80 13 01 00 [12:58:28]Write to MH i2c: E2 08 00 5A 1D 80 13 01 00 00 00 00 00 F4 [12:58:28]Write i2c OK [12:58:28]MH_I2C_Read... [12:58:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:28]Read from MH i2c: E2 [12:58:28]MH_I2C_Read... [12:58:28]Read from MH i2c: E2 0E 00 [12:58:28]MH_I2C_Read... [12:58:28]Read from MH i2c: E2 0E 00 5A 1D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 0E [12:58:28]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:58:28]wFMCommunicate OK [12:58:28]SAM_PROTO_GetShiftState done [12:58:28]FM_GetShiftState done [12:58:28]req_shift_opened done [12:58:28]requested_item shift.open_date is exist - process it [12:58:28]req_shift_open_date [12:58:28]req_shift_open_date done [12:58:28]produce_requested_data done [12:58:28]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227446,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [12:58:28]process_action_free close_receipt [12:58:28]json_value_free [12:58:28]json_value_free done [12:58:28]process_json_proto returns [12:58:28]Send response to host [12:58:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227446,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [12:58:28]free response buf [12:58:28]execute_script done [12:58:28]execute_script returns [12:58:28]free content buf [12:58:28]Sock 9.Close socket [12:58:28]Sock 9.Thread stoped [12:58:28]OFD Sender: No OFD packet to send [12:58:33]OFD Sender: No OFD packet to send [12:58:38]OFD Sender: No OFD packet to send [12:58:43]OFD Sender: No OFD packet to send [12:58:48]OFD Sender: No OFD packet to send [12:58:53]OFD Sender: No OFD packet to send [12:58:58]OFD Sender: No OFD packet to send [12:59:03]OFD Sender: No OFD packet to send [12:59:08]OFD Sender: No OFD packet to send [12:59:13]OFD Sender: No OFD packet to send [12:59:18]OFD Sender: No OFD packet to send [12:59:22]accept exits with 8 [12:59:22]New connection [12:59:22]New thread 3066686820 created [12:59:22]Thread 3066543460 joined [12:59:22]Waiting for new connection... [12:59:22] Sock 8.Parse request [12:59:22]Sock 8.Check first char [12:59:22]Sock 8.First char is OK [12:59:22]request: POST /json_proto HTTP/1.0 [12:59:22]Method: POST [12:59:22]URL: /json_proto [12:59:22]Method is POST - this is cgi request [12:59:22]url: /json_proto [12:59:22]query_string will be loaded in cgi processing [12:59:22]execute_cgi json_proto POST (null) [12:59:22]execute_cgi path=json_proto method=POST [12:59:22]POST find Content-Length [12:59:22]Host: 172.17.44.195:8080 [12:59:22]Content-Length: 678 [12:59:22]Content-Type: application/json [12:59:22] [12:59:22]POST finish read [12:59:22]Found Content-Length = 678 [12:59:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962969", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:59:22]execute_script... [12:59: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)1962969", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:59:22]POST & json_proto [12:59:22]process_json_proto [12:59:22]json parsed OK: [12:59:22]protocol is kg_v1.0 [12:59:22]action value=close_receipt [12:59:22]process_action close_receipt [12:59:22]cmd_close_receipt [12:59:22]MH_GetDate [12:59:22]Write to MH i2c: F0 00 00 5B 1D 67 [12:59:22]Write i2c OK [12:59:22]MH_I2C_Read... [12:59:22]Read from MH i2c: F0 [12:59:22]MH_I2C_Read... [12:59:22]Read from MH i2c: F0 09 00 [12:59:22]MH_I2C_Read... [12:59:22]Read from MH i2c: F0 09 00 5B 1D 00 AB FE 14 67 82 C9 CF 66 14 [12:59:22]GetLastDocTimeStamp 1729429107 [12:59:22]current date 1729429163 [12:59:22]FM_GetShiftState [12:59:22]SAM_PROTO_GetShiftState [12:59:22]wFMCommunicate request_size=4 [12:59:22]MH_SAM_APDU [12:59:22]CAPDU: 80 13 01 00 [12:59:22]Write to MH i2c: E2 08 00 5C 1D 80 13 01 00 00 00 00 00 F6 [12:59:22]Write i2c OK [12:59:22]MH_I2C_Read... [12:59:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:22]Read from MH i2c: E2 [12:59:22]MH_I2C_Read... [12:59:22]Read from MH i2c: E2 0E 00 [12:59:22]MH_I2C_Read... [12:59:22]Read from MH i2c: E2 0E 00 5C 1D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 10 [12:59:22]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:59:22]wFMCommunicate OK [12:59:22]SAM_PROTO_GetShiftState done [12:59:22]FM_GetShiftState done [12:59:22]opened in 1729383750 [12:59:22]opened+sec_in_day 1729470150 [12:59:22]quantity*price = 50041 [12:59:22]sum+1 = 50042 [12:59:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 295 20.10.2024 12:59 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227447 ФПД: 180999680506772 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T125923&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227447&fm=180999680506772&tin=02508201610067®Number=0000000000091685&sum=50000 [12:59:23]StoreToDocumentArchive [12:59:23]shift 533 fd 227447 [12:59:23]save to /storage/0533/doc_00227447 [12:59:23]save last doc name /storage/0533/doc_00227447 to /storage/kkm_last_doc_name [12:59:23]save OK [12:59:23]Clear old archive folders... [12:59:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:59:23]tlvbuf is 0195D3B0 [12:59:23]SAM_PROTO_ClearQueue [12:59:23]wFMCommunicate request_size=4 [12:59:23]MH_SAM_APDU [12:59:23]CAPDU: 80 09 00 00 [12:59:23]Write to MH i2c: E2 08 00 69 1D 80 09 00 00 00 00 00 00 F8 [12:59:23]Write i2c OK [12:59:23]MH_I2C_Read... [12:59:24]OFD Sender: No OFD packet to send [12:59:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:59:24]Read from MH i2c: E2 [12:59:24]MH_I2C_Read... [12:59:24]Read from MH i2c: E2 03 00 [12:59:24]MH_I2C_Read... [12:59:24]Read from MH i2c: E2 03 00 69 1D 00 90 00 FA [12:59:24]RAPDU: 90 00 [12:59:24]wFMCommunicate OK [12:59:24]SAM_PROTO_ClearQueue done [12:59:24]KKMCreateOFDPacket [12:59:24]OFDProtocolAddRootSTLVToBuf [12:59:24]FM_MakeSignedData [12:59:24]FM_MakeSignedData [12:59:24]SAM_PROTO_SignData [12:59:24]wFMCommunicate request_size=4 [12:59:24]MH_SAM_APDU [12:59:24]CAPDU: 80 0D 01 02 [12:59:24]Write to MH i2c: E2 08 00 6A 1D 80 0D 01 02 00 00 00 00 00 [12:59:24]Write i2c OK [12:59:24]MH_I2C_Read... [12:59:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:59:24]Read from MH i2c: E2 [12:59:24]MH_I2C_Read... [12:59:24]Read from MH i2c: E2 03 00 [12:59:24]MH_I2C_Read... [12:59:24]Read from MH i2c: E2 03 00 6A 1D 00 90 00 FB [12:59:24]RAPDU: 90 00 [12:59:24]wFMCommunicate OK [12:59:24]wFMCommunicate request_size=255 [12:59:24]MH_SAM_APDU [12:59:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 AB FE 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 77 78 03 00 35 04 06 00 A4 [12:59:24]Write to MH i2c: E2 02 01 6B 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 AB FE 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 77 78 03 00 35 04 06 00 A4 00 00 90 [12:59:24]Write i2c OK [12:59:24]MH_I2C_Read... [12:59:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:24]Read from MH i2c: E2 [12:59:24]MH_I2C_Read... [12:59:24]Read from MH i2c: E2 03 00 [12:59:24]MH_I2C_Read... [12:59:24]Read from MH i2c: E2 03 00 6B 1D 00 90 00 FC [12:59:24]RAPDU: 90 00 [12:59:24]wFMCommunicate OK [12:59:24]wFMCommunicate request_size=10 [12:59:24]MH_SAM_APDU [12:59:24]CAPDU: 80 0D 02 02 05 9E 45 A9 3B 94 [12:59:24]Write to MH i2c: E2 0D 00 6C 1D 80 0D 02 02 05 00 9E 45 A9 3B 94 00 00 68 [12:59:24]Write i2c OK [12:59:24]MH_I2C_Read... [12:59:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:24]Read from MH i2c: E2 [12:59:24]MH_I2C_Read... [12:59:24]Read from MH i2c: E2 03 00 [12:59:24]MH_I2C_Read... [12:59:24]Read from MH i2c: E2 03 00 6C 1D 00 90 00 FD [12:59:24]RAPDU: 90 00 [12:59:24]wFMCommunicate OK [12:59:24]wFMCommunicate request_size=4 [12:59:24]MH_SAM_APDU [12:59:24]CAPDU: 80 0D 03 02 [12:59:24]Write to MH i2c: E2 08 00 6D 1D 80 0D 03 02 00 00 00 00 05 [12:59:24]Write i2c OK [12:59:24]MH_I2C_Read... [12:59:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:59:24]Read from MH i2c: E2 [12:59:24]MH_I2C_Read... [12:59:24]Read from MH i2c: E2 0B 00 [12:59:24]MH_I2C_Read... [12:59:24]Read from MH i2c: E2 0B 00 6D 1D 00 85 52 F8 45 A5 62 9E CC 90 00 8B [12:59:24]RAPDU: 85 52 F8 45 A5 62 9E CC 90 00 [12:59:24]wFMCommunicate OK [12:59:24]SAM_PROTO_SignData done [12:59:24]FM_MakeSignedData done [12:59:24]CreateOFDProtocolMessage [12:59:24]wFMCommunicate request_size=4 [12:59:24]MH_SAM_APDU [12:59:24]CAPDU: 80 11 00 00 [12:59:24]Write to MH i2c: E2 08 00 6E 1D 80 11 00 00 00 00 00 00 05 [12:59:24]Write i2c OK [12:59:24]MH_I2C_Read... [12:59:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:24]Read from MH i2c: E2 [12:59:24]MH_I2C_Read... [12:59:24]Read from MH i2c: E2 17 00 [12:59:24]MH_I2C_Read... [12:59:24]Read from MH i2c: E2 17 00 6E 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 5C [12:59:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:59:24]wFMCommunicate OK [12:59:24]CreateOFDProtocolMessage done [12:59:24]OFDSenderStorePacket 227447 [12:59:24]StoreOFDPacket docnum=227447 [12:59:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 9D 7A 07 01 37 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 AB FE 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 77 78 03 00 35 04 06 00 A4 9E 45 A9 3B 94 85 52 F8 45 A5 62 9E CC [12:59:24]CheckFolder [12:59:24]dirname=/storage/ofd_packets [12:59:24]CheckFolder done [12:59:24]ProducePacketName [12:59:24]name=ofd_packets/00227447 [12:59:24]NVStorageSaveData ofd_packets/00227447 [12:59:24]File name is /storage/ofd_packets/00227447 [12:59:24]Write 301 bytes [12:59:24]NVStorageSaveData done [12:59:24]OFDSenderStorePacket done [12:59:24]KKMCreateOFDPacket done [12:59:24]NVStorageSaveData kkm_last_timestamp [12:59:24]File name is /storage/kkm_last_timestamp [12:59:24]Write 4 bytes [12:59:24]NVStorageSaveData done [12:59:24]ExternCall_PrintAddStr [12:59:24]wPrintStart [12:59:24]Write to MH i2c: 01 00 00 6F 1D 8C [12:59:24]Write i2c OK [12:59:24]MH_I2C_Read... [12:59:24]Read from MH i2c: 01 [12:59:24]MH_I2C_Read... [12:59:24]Read from MH i2c: 01 07 00 [12:59:24]MH_I2C_Read... [12:59:24]Read from MH i2c: 01 07 00 6F 1D 00 00 00 00 00 FF 0F A1 [12:59:24]RasterBufferAndPrint [12:59:24]line Счет N : (1)1962969 [12:59:24]line ИНН: 02508201610067 [12:59:24]line Контрольно-Кассовый Чек [12:59:24]line ПРОДАЖА [12:59:24]line ТРК (МРК, ГНК) : 33 [12:59:24]line Товар: 2710124130 [12:59:24]line Аи-92-К-5 [12:59:24]line 7.480 * 66.90 [12:59:24]line = 500.41 [12:59:24]line НДС 12% НСП 1% [12:59:24]line > о реализуемом товаре [12:59:24]line ОКРУГЛЕНИЕ: -0.41 [12:59:24]line ИТОГО: 500.00 [12:59:24]line Внесено: 500.00 [12:59:24]line СДАЧА: 0.00 [12:59:24]line НСП 1% : 4.43 [12:59:24]line НДС 12% : 53.14 [12:59:24]line Наличными: 500.00 [12:59:24]line Безнал.: 0.00 [12:59:24]line Место: АЗС № 133 "Партнер Нефть" [12:59:24]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [12:59:24]line СНО: Общий режим [12:59:24]line Чек 295 20.10.2024 12:59 [12:59:24]line Смена: 533 ФФД: 1.0 [12:59:24]line ЗНМ: 0300000091 [12:59:24]line РНМ: 0000000000091685 [12:59:24]line Версия ККМ: 001 [12:59:24]line ФМ: 0000000000871839 [12:59:24]line ФД: 227447 [12:59:24]line ФПД: 180999680506772 [12:59:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T125923&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227447&fm=180999680506772&tin=02508201610067®Number=0000000000091685&sum=50000 [12:59:24]written 0, free lines is 4095 [12:59:24]OFD Sender: Processing packet 227447 [packets to send 38, broken 37] [12:59:24]ProducePacketName [12:59:24]name=ofd_packets/00227447 [12:59:24]OFD Sender: To server: pG, [12:59:24]CommunicateWithHost lk.salyk.kg:30040 [12:59:24]ConnectInit lk.salyk.kg [12:59:24]Connected sock=10 [12:59: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 33 39 0F 01 00 00 9D 7A 07 01 37 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 AB FE 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 77 78 03 00 35 04 06 00 A4 9E 45 A9 3B 94 85 52 F8 45 A5 62 9E CC [12:59: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 33 39 4F 00 00 00 FE 6E 47 00 79 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 33 39 10 04 04 00 77 78 03 00 F4 03 04 00 AA A9 14 67 B6 04 01 00 00 6D 31 6F 61 9C E8 3B 8E [12:59:25]CommunicateWithHost err = 0 [12:59:25]CheckOFDResponse [12:59:25]1017 (14) - 77093643461234 [12:59:25]1041 (16) - 0000000000871839 [12:59:25]1040 (4) - 227447 [12:59:25]1012 (4) - 20.10.2024 06:56 [12:59:25]1206 (1) - 0 [12:59:25]OFD Sender: Remove packet 227447 [12:59:25]ProducePacketName [12:59:25]name=ofd_packets/00227447 [12:59:25]NVStorageDeleteData [12:59:25]Write to MH i2c: 01 00 00 99 1D B6 [12:59:25]Write i2c OK [12:59:25]MH_I2C_Read... [12:59:25]Read from MH i2c: 01 [12:59:25]MH_I2C_Read... [12:59:25]Read from MH i2c: 01 07 00 [12:59:25]MH_I2C_Read... [12:59:25]Read from MH i2c: 01 07 00 99 1D 00 00 00 00 00 17 0D E1 [12:59:25]RasterBufferAndPrint [12:59:25]line [12:59:25]line [12:59:25]line [12:59:25]line [12:59:25]line [12:59:25]written 0, free lines is 3357 [12:59:25]process_action close_receipt done [12:59:25]requested_data is exist [12:59:25]produce_requested_data [12:59:25]requested_item fm.sn is exist - process it [12:59:25]wFMCommunicate request_size=4 [12:59:25]MH_SAM_APDU [12:59:25]CAPDU: 80 11 00 00 [12:59:25]Write to MH i2c: E2 08 00 A0 1D 80 11 00 00 00 00 00 00 37 [12:59:25]Write i2c OK [12:59:25]MH_I2C_Read... [12:59:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:25]Read from MH i2c: E2 [12:59:25]MH_I2C_Read... [12:59:25]Read from MH i2c: E2 17 00 [12:59:25]MH_I2C_Read... [12:59:25]Read from MH i2c: E2 17 00 A0 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 8E [12:59:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [12:59:25]wFMCommunicate OK [12:59:25]requested_item fd.num is exist - process it [12:59:25]SAM_PROTO_GetFieldsCounters [12:59:25]wFMCommunicate request_size=4 [12:59:25]MH_SAM_APDU [12:59:25]CAPDU: 80 13 00 00 [12:59:25]Write to MH i2c: E2 08 00 A1 1D 80 13 00 00 00 00 00 00 3A [12:59:25]Write i2c OK [12:59:25]MH_I2C_Read... [12:59:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:59:25]Read from MH i2c: E2 [12:59:25]MH_I2C_Read... [12:59:25]Read from MH i2c: E2 62 00 [12:59:25]MH_I2C_Read... [12:59:25]Read from MH i2c: E2 62 00 A1 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 77 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 E4 [12:59:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 77 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:59:25]wFMCommunicate OK [12:59:25]SAM_PROTO_GetFieldsCounters done [12:59:25]requested_item shift.num is exist - process it [12:59:25]requested_item shift.opened is exist - process it [12:59:25]req_shift_opened [12:59:25]FM_GetShiftState [12:59:25]SAM_PROTO_GetShiftState [12:59:25]wFMCommunicate request_size=4 [12:59:25]MH_SAM_APDU [12:59:25]CAPDU: 80 13 01 00 [12:59:25]Write to MH i2c: E2 08 00 A2 1D 80 13 01 00 00 00 00 00 3C [12:59:25]Write i2c OK [12:59:25]MH_I2C_Read... [12:59:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:25]Read from MH i2c: E2 [12:59:25]MH_I2C_Read... [12:59:25]Read from MH i2c: E2 0E 00 [12:59:25]MH_I2C_Read... [12:59:25]Read from MH i2c: E2 0E 00 A2 1D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 56 [12:59:25]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [12:59:25]wFMCommunicate OK [12:59:25]SAM_PROTO_GetShiftState done [12:59:25]FM_GetShiftState done [12:59:25]req_shift_opened done [12:59:25]requested_item shift.open_date is exist - process it [12:59:25]req_shift_open_date [12:59:25]req_shift_open_date done [12:59:25]produce_requested_data done [12:59:25]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227447,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [12:59:25]process_action_free close_receipt [12:59:25]json_value_free [12:59:25]json_value_free done [12:59:25]process_json_proto returns [12:59:25]Send response to host [12:59:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227447,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [12:59:25]free response buf [12:59:25]execute_script done [12:59:25]execute_script returns [12:59:25]free content buf [12:59:25]Sock 8.Close socket [12:59:25]Sock 8.Thread stoped [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:37]accept exits with 9 [13:00:37]New connection [13:00:37]New thread 3066543460 created [13:00:37]Thread 3066686820 joined [13:00:37]Waiting for new connection... [13:00:37] Sock 9.Parse request [13:00:37]Sock 9.Check first char [13:00:37]Sock 9.First char is OK [13:00:37]request: POST /json_proto HTTP/1.0 [13:00:37]Method: POST [13:00:37]URL: /json_proto [13:00:37]Method is POST - this is cgi request [13:00:37]url: /json_proto [13:00:37]query_string will be loaded in cgi processing [13:00:37]execute_cgi json_proto POST (null) [13:00:37]execute_cgi path=json_proto method=POST [13:00:37]POST find Content-Length [13:00:37]Host: 172.17.44.195:8080 [13:00:37]Content-Length: 660 [13:00:37]Content-Type: application/json [13:00:37] [13:00:37]POST finish read [13:00:37]Found Content-Length = 660 [13:00:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962970", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 10.240, "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" ] } } [13:00:37]execute_script... [13: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)1962970", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 10.240, "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" ] } } [13:00:37]POST & json_proto [13:00:37]process_json_proto [13:00:37]json parsed OK: [13:00:37]protocol is kg_v1.0 [13:00:37]action value=close_receipt [13:00:37]process_action close_receipt [13:00:37]cmd_close_receipt [13:00:37]MH_GetDate [13:00:37]Write to MH i2c: F0 00 00 A3 1D AF [13:00:37]Write i2c OK [13:00:37]MH_I2C_Read... [13:00:37]Read from MH i2c: F0 [13:00:37]MH_I2C_Read... [13:00:37]Read from MH i2c: F0 09 00 [13:00:37]MH_I2C_Read... [13:00:37]Read from MH i2c: F0 09 00 A3 1D 00 F7 FE 14 67 82 C9 CF 66 A8 [13:00:37]GetLastDocTimeStamp 1729429163 [13:00:37]current date 1729429239 [13:00:37]FM_GetShiftState [13:00:37]SAM_PROTO_GetShiftState [13:00:37]wFMCommunicate request_size=4 [13:00:37]MH_SAM_APDU [13:00:37]CAPDU: 80 13 01 00 [13:00:37]Write to MH i2c: E2 08 00 A4 1D 80 13 01 00 00 00 00 00 3E [13:00:37]Write i2c OK [13:00:37]MH_I2C_Read... [13:00:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:38]Read from MH i2c: E2 [13:00:38]MH_I2C_Read... [13:00:38]Read from MH i2c: E2 0E 00 [13:00:38]MH_I2C_Read... [13:00:38]Read from MH i2c: E2 0E 00 A4 1D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 58 [13:00:38]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:00:38]wFMCommunicate OK [13:00:38]SAM_PROTO_GetShiftState done [13:00:38]FM_GetShiftState done [13:00:38]opened in 1729383750 [13:00:38]opened+sec_in_day 1729470150 [13:00:38]quantity*price = 70041 [13:00:38]sum+1 = 70043 [13:00:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 296 20.10.2024 13:00 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227448 ФПД: 161852200249530 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T130039&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227448&fm=161852200249530&tin=02508201610067®Number=0000000000091685&sum=70000 [13:00:39]StoreToDocumentArchive [13:00:39]shift 533 fd 227448 [13:00:39]save to /storage/0533/doc_00227448 [13:00:39]save last doc name /storage/0533/doc_00227448 to /storage/kkm_last_doc_name [13:00:39]save OK [13:00:39]Clear old archive folders... [13:00:39]ProcessDocumentItem done err = 0, tmpTLVsize=244 [13:00:39]tlvbuf is 0195D930 [13:00:39]SAM_PROTO_ClearQueue [13:00:39]wFMCommunicate request_size=4 [13:00:39]MH_SAM_APDU [13:00:39]CAPDU: 80 09 00 00 [13:00:39]Write to MH i2c: E2 08 00 B1 1D 80 09 00 00 00 00 00 00 40 [13:00:39]Write i2c OK [13:00:39]MH_I2C_Read... [13:00:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:00:39]Read from MH i2c: E2 [13:00:39]MH_I2C_Read... [13:00:39]Read from MH i2c: E2 03 00 [13:00:39]MH_I2C_Read... [13:00:39]Read from MH i2c: E2 03 00 B1 1D 00 90 00 42 [13:00:39]RAPDU: 90 00 [13:00:39]wFMCommunicate OK [13:00:39]SAM_PROTO_ClearQueue done [13:00:39]KKMCreateOFDPacket [13:00:39]OFDProtocolAddRootSTLVToBuf [13:00:39]FM_MakeSignedData [13:00:39]FM_MakeSignedData [13:00:39]SAM_PROTO_SignData [13:00:39]wFMCommunicate request_size=4 [13:00:39]MH_SAM_APDU [13:00:39]CAPDU: 80 0D 01 02 [13:00:39]Write to MH i2c: E2 08 00 B2 1D 80 0D 01 02 00 00 00 00 48 [13:00:39]Write i2c OK [13:00:39]MH_I2C_Read... [13:00:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:00:39]Read from MH i2c: E2 [13:00:39]MH_I2C_Read... [13:00:39]Read from MH i2c: E2 03 00 [13:00:39]MH_I2C_Read... [13:00:39]Read from MH i2c: E2 03 00 B2 1D 00 90 00 43 [13:00:39]RAPDU: 90 00 [13:00:39]wFMCommunicate OK [13:00:39]wFMCommunicate request_size=253 [13:00:39]MH_SAM_APDU [13:00:39]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 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 28 01 00 00 F4 03 04 00 F7 FE 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 78 78 03 00 35 04 06 00 93 34 26 E6 E8 BA [13:00:39]Write to MH i2c: E2 00 01 B3 1D 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 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 28 01 00 00 F4 03 04 00 F7 FE 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 78 78 03 00 35 04 06 00 93 34 26 E6 E8 BA 00 00 63 [13:00:39]Write i2c OK [13:00:39]MH_I2C_Read... [13:00:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:39]Read from MH i2c: E2 [13:00:39]MH_I2C_Read... [13:00:39]Read from MH i2c: E2 03 00 [13:00:39]MH_I2C_Read... [13:00:39]Read from MH i2c: E2 03 00 B3 1D 00 90 00 44 [13:00:39]RAPDU: 90 00 [13:00:39]wFMCommunicate OK [13:00:39]wFMCommunicate request_size=4 [13:00:39]MH_SAM_APDU [13:00:39]CAPDU: 80 0D 03 02 [13:00:39]Write to MH i2c: E2 08 00 B4 1D 80 0D 03 02 00 00 00 00 4C [13:00:39]Write i2c OK [13:00:39]MH_I2C_Read... [13:00:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:00:39]Read from MH i2c: E2 [13:00:39]MH_I2C_Read... [13:00:39]Read from MH i2c: E2 0B 00 [13:00:39]MH_I2C_Read... [13:00:39]Read from MH i2c: E2 0B 00 B4 1D 00 FE 2D 5B 44 F7 68 57 40 90 00 0D [13:00:39]RAPDU: FE 2D 5B 44 F7 68 57 40 90 00 [13:00:39]wFMCommunicate OK [13:00:39]SAM_PROTO_SignData done [13:00:39]FM_MakeSignedData done [13:00:39]CreateOFDProtocolMessage [13:00:39]wFMCommunicate request_size=4 [13:00:39]MH_SAM_APDU [13:00:39]CAPDU: 80 11 00 00 [13:00:39]Write to MH i2c: E2 08 00 B5 1D 80 11 00 00 00 00 00 00 4C [13:00:39]Write i2c OK [13:00:39]MH_I2C_Read... [13:00:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:39]Read from MH i2c: E2 [13:00:39]MH_I2C_Read... [13:00:39]Read from MH i2c: E2 17 00 [13:00:39]MH_I2C_Read... [13:00:39]Read from MH i2c: E2 17 00 B5 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A3 [13:00:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:00:39]wFMCommunicate OK [13:00:39]CreateOFDProtocolMessage done [13:00:39]OFDSenderStorePacket 227448 [13:00:39]StoreOFDPacket docnum=227448 [13:00:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 94 4D 00 01 2A D2 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 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 28 01 00 00 F4 03 04 00 F7 FE 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 78 78 03 00 35 04 06 00 93 34 26 E6 E8 BA FE 2D 5B 44 F7 68 57 40 [13:00:39]CheckFolder [13:00:39]dirname=/storage/ofd_packets [13:00:39]CheckFolder done [13:00:39]ProducePacketName [13:00:39]name=ofd_packets/00227448 [13:00:39]NVStorageSaveData ofd_packets/00227448 [13:00:39]File name is /storage/ofd_packets/00227448 [13:00:39]Write 294 bytes [13:00:39]NVStorageSaveData done [13:00:39]OFDSenderStorePacket done [13:00:39]KKMCreateOFDPacket done [13:00:39]NVStorageSaveData kkm_last_timestamp [13:00:39]File name is /storage/kkm_last_timestamp [13:00:39]Write 4 bytes [13:00:39]NVStorageSaveData done [13:00:39]ExternCall_PrintAddStr [13:00:39]wPrintStart [13:00:39]Write to MH i2c: 01 00 00 B6 1D D3 [13:00:39]Write i2c OK [13:00:39]MH_I2C_Read... [13:00:39]Read from MH i2c: 01 [13:00:39]MH_I2C_Read... [13:00:39]Read from MH i2c: 01 07 00 [13:00:39]MH_I2C_Read... [13:00:39]Read from MH i2c: 01 07 00 B6 1D 00 00 00 00 00 FF 0F E8 [13:00:39]RasterBufferAndPrint [13:00:39]line Счет N : (1)1962970 [13:00:39]line ИНН: 02508201610067 [13:00:39]line Контрольно-Кассовый Чек [13:00:39]line ПРОДАЖА [13:00:39]line ТРК (МРК, ГНК) : 62 [13:00:39]line Товар: 2710124130 [13:00:39]line SU-92 [13:00:39]line 10.240 * 68.40 [13:00:39]line = 700.42 [13:00:39]line НДС 12% НСП 1% [13:00:39]line > о реализуемом товаре [13:00:39]line ОКРУГЛЕНИЕ: -0.42 [13:00:39]line ИТОГО: 700.00 [13:00:39]line Внесено: 700.00 [13:00:39]line СДАЧА: 0.00 [13:00:39]line НСП 1% : 6.20 [13:00:39]line НДС 12% : 74.38 [13:00:39]line Наличными: 700.00 [13:00:39]line Безнал.: 0.00 [13:00:39]line Место: АЗС № 133 "Партнер Нефть" [13:00:39]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:00:39]line СНО: Общий режим [13:00:39]line Чек 296 20.10.2024 13:00 [13:00:39]line Смена: 533 ФФД: 1.0 [13:00:39]line ЗНМ: 0300000091 [13:00:39]line РНМ: 0000000000091685 [13:00:39]line Версия ККМ: 001 [13:00:39]line ФМ: 0000000000871839 [13:00:39]line ФД: 227448 [13:00:39]line ФПД: 161852200249530 [13:00:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T130039&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227448&fm=161852200249530&tin=02508201610067®Number=0000000000091685&sum=70000 [13:00:39]OFD Sender: Processing packet 227448 [packets to send 38, broken 37] [13:00:39]ProducePacketName [13:00:39]name=ofd_packets/00227448 [13:00:39]OFD Sender: To server: pG, [13:00:39]CommunicateWithHost lk.salyk.kg:30040 [13:00:39]ConnectInit lk.salyk.kg [13:00:39]written 0, free lines is 4095 [13:00:40]Connected sock=10 [13: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 33 39 08 01 00 00 94 4D 00 01 2A D2 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 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 28 01 00 00 F4 03 04 00 F7 FE 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 78 78 03 00 35 04 06 00 93 34 26 E6 E8 BA FE 2D 5B 44 F7 68 57 40 [13: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 33 39 4F 00 00 00 C7 86 47 00 B0 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 33 39 10 04 04 00 78 78 03 00 F4 03 04 00 F5 A9 14 67 B6 04 01 00 00 46 B1 5D 93 17 F7 09 97 [13:00:40]CommunicateWithHost err = 0 [13:00:40]CheckOFDResponse [13:00:40]1017 (14) - 77093643461234 [13:00:40]1041 (16) - 0000000000871839 [13:00:40]1040 (4) - 227448 [13:00:40]1012 (4) - 20.10.2024 06:57 [13:00:40]1206 (1) - 0 [13:00:40]OFD Sender: Remove packet 227448 [13:00:40]ProducePacketName [13:00:40]name=ofd_packets/00227448 [13:00:40]NVStorageDeleteData [13:00:40]Write to MH i2c: 01 00 00 E0 1D FD [13:00:40]Write i2c OK [13:00:40]MH_I2C_Read... [13:00:40]Read from MH i2c: 01 [13:00:40]MH_I2C_Read... [13:00:40]Read from MH i2c: 01 07 00 [13:00:40]MH_I2C_Read... [13:00:40]Read from MH i2c: 01 07 00 E0 1D 00 00 00 00 00 22 0D 33 [13:00:40]RasterBufferAndPrint [13:00:40]line [13:00:40]line [13:00:40]line [13:00:40]line [13:00:40]line [13:00:40]written 0, free lines is 3368 [13:00:40]process_action close_receipt done [13:00:40]requested_data is exist [13:00:40]produce_requested_data [13:00:40]requested_item fm.sn is exist - process it [13:00:40]wFMCommunicate request_size=4 [13:00:40]MH_SAM_APDU [13:00:40]CAPDU: 80 11 00 00 [13:00:40]Write to MH i2c: E2 08 00 E7 1D 80 11 00 00 00 00 00 00 7E [13:00:40]Write i2c OK [13:00:40]MH_I2C_Read... [13:00:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:40]Read from MH i2c: E2 [13:00:40]MH_I2C_Read... [13:00:40]Read from MH i2c: E2 17 00 [13:00:40]MH_I2C_Read... [13:00:40]Read from MH i2c: E2 17 00 E7 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D5 [13:00:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:00:40]wFMCommunicate OK [13:00:40]requested_item fd.num is exist - process it [13:00:40]SAM_PROTO_GetFieldsCounters [13:00:40]wFMCommunicate request_size=4 [13:00:40]MH_SAM_APDU [13:00:40]CAPDU: 80 13 00 00 [13:00:40]Write to MH i2c: E2 08 00 E8 1D 80 13 00 00 00 00 00 00 81 [13:00:40]Write i2c OK [13:00:40]MH_I2C_Read... [13:00:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:00:40]Read from MH i2c: E2 [13:00:40]MH_I2C_Read... [13:00:40]Read from MH i2c: E2 62 00 [13:00:40]MH_I2C_Read... [13:00:40]Read from MH i2c: E2 62 00 E8 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 78 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 28 01 00 00 5E 04 04 00 28 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 2F [13:00:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 78 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 28 01 00 00 5E 04 04 00 28 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:00:40]wFMCommunicate OK [13:00:40]SAM_PROTO_GetFieldsCounters done [13:00:40]requested_item shift.num is exist - process it [13:00:40]requested_item shift.opened is exist - process it [13:00:40]req_shift_opened [13:00:40]FM_GetShiftState [13:00:40]SAM_PROTO_GetShiftState [13:00:40]wFMCommunicate request_size=4 [13:00:40]MH_SAM_APDU [13:00:40]CAPDU: 80 13 01 00 [13:00:40]Write to MH i2c: E2 08 00 E9 1D 80 13 01 00 00 00 00 00 83 [13:00:40]Write i2c OK [13:00:40]MH_I2C_Read... [13:00:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:40]Read from MH i2c: E2 [13:00:40]MH_I2C_Read... [13:00:40]Read from MH i2c: E2 0E 00 [13:00:40]MH_I2C_Read... [13:00:40]Read from MH i2c: E2 0E 00 E9 1D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 9D [13:00:40]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:00:40]wFMCommunicate OK [13:00:40]SAM_PROTO_GetShiftState done [13:00:40]FM_GetShiftState done [13:00:40]req_shift_opened done [13:00:40]requested_item shift.open_date is exist - process it [13:00:40]req_shift_open_date [13:00:40]req_shift_open_date done [13:00:40]produce_requested_data done [13:00:40]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227448,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [13:00:40]process_action_free close_receipt [13:00:40]json_value_free [13:00:40]json_value_free done [13:00:40]process_json_proto returns [13:00:40]Send response to host [13:00:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227448,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [13:00:40]free response buf [13:00:40]execute_script done [13:00:40]execute_script returns [13:00:40]free content buf [13:00:40]Sock 9.Close socket [13:00:40]Sock 9.Thread stoped [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:00:57]accept exits with 8 [13:00:57]New connection [13:00:57]New thread 3066686820 created [13:00:57]Thread 3066543460 joined [13:00:57]Waiting for new connection... [13:00:57] Sock 8.Parse request [13:00:57]Sock 8.Check first char [13:00:57]Sock 8.First char is OK [13:00:57]request: POST /json_proto HTTP/1.0 [13:00:57]Method: POST [13:00:57]URL: /json_proto [13:00:57]Method is POST - this is cgi request [13:00:57]url: /json_proto [13:00:57]query_string will be loaded in cgi processing [13:00:57]execute_cgi json_proto POST (null) [13:00:57]execute_cgi path=json_proto method=POST [13:00:57]POST find Content-Length [13:00:57]Host: 172.17.44.195:8080 [13:00:57]Content-Length: 678 [13:00:57]Content-Type: application/json [13:00:57] [13:00:57]POST finish read [13:00:57]Found Content-Length = 678 [13:00:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962971", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:00:57]execute_script... [13:00: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)1962971", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:00:57]POST & json_proto [13:00:57]process_json_proto [13:00:57]json parsed OK: [13:00:57]protocol is kg_v1.0 [13:00:57]action value=close_receipt [13:00:57]process_action close_receipt [13:00:57]cmd_close_receipt [13:00:57]MH_GetDate [13:00:57]Write to MH i2c: F0 00 00 EA 1D F6 [13:00:57]Write i2c OK [13:00:57]MH_I2C_Read... [13:00:57]Read from MH i2c: F0 [13:00:57]MH_I2C_Read... [13:00:57]Read from MH i2c: F0 09 00 [13:00:57]MH_I2C_Read... [13:00:57]Read from MH i2c: F0 09 00 EA 1D 00 0A FF 14 67 82 C9 CF 66 03 [13:00:57]GetLastDocTimeStamp 1729429239 [13:00:57]current date 1729429258 [13:00:57]FM_GetShiftState [13:00:57]SAM_PROTO_GetShiftState [13:00:57]wFMCommunicate request_size=4 [13:00:57]MH_SAM_APDU [13:00:57]CAPDU: 80 13 01 00 [13:00:57]Write to MH i2c: E2 08 00 EB 1D 80 13 01 00 00 00 00 00 85 [13:00:57]Write i2c OK [13:00:57]MH_I2C_Read... [13:00:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:57]Read from MH i2c: E2 [13:00:57]MH_I2C_Read... [13:00:57]Read from MH i2c: E2 0E 00 [13:00:57]MH_I2C_Read... [13:00:57]Read from MH i2c: E2 0E 00 EB 1D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 9F [13:00:57]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:00:57]wFMCommunicate OK [13:00:57]SAM_PROTO_GetShiftState done [13:00:57]FM_GetShiftState done [13:00:57]opened in 1729383750 [13:00:57]opened+sec_in_day 1729470150 [13:00:57]quantity*price = 60009 [13:00:57]sum+1 = 60010 [13:00:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 297 20.10.2024 13:00 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227449 ФПД: 58986691128525 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T130058&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227449&fm=58986691128525&tin=02508201610067®Number=0000000000091685&sum=60000 [13:00:58]StoreToDocumentArchive [13:00:58]shift 533 fd 227449 [13:00:58]save to /storage/0533/doc_00227449 [13:00:58]save last doc name /storage/0533/doc_00227449 to /storage/kkm_last_doc_name [13:00:58]save OK [13:00:58]Clear old archive folders... [13:00:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:00:58]tlvbuf is 0195D3B0 [13:00:58]SAM_PROTO_ClearQueue [13:00:58]wFMCommunicate request_size=4 [13:00:58]MH_SAM_APDU [13:00:58]CAPDU: 80 09 00 00 [13:00:58]Write to MH i2c: E2 08 00 F8 1D 80 09 00 00 00 00 00 00 87 [13:00:58]Write i2c OK [13:00:58]MH_I2C_Read... [13:00:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:00:58]Read from MH i2c: E2 [13:00:58]MH_I2C_Read... [13:00:58]Read from MH i2c: E2 03 00 [13:00:58]MH_I2C_Read... [13:00:58]Read from MH i2c: E2 03 00 F8 1D 00 90 00 89 [13:00:58]RAPDU: 90 00 [13:00:58]wFMCommunicate OK [13:00:58]SAM_PROTO_ClearQueue done [13:00:58]KKMCreateOFDPacket [13:00:58]OFDProtocolAddRootSTLVToBuf [13:00:58]FM_MakeSignedData [13:00:58]FM_MakeSignedData [13:00:58]SAM_PROTO_SignData [13:00:58]wFMCommunicate request_size=4 [13:00:58]MH_SAM_APDU [13:00:58]CAPDU: 80 0D 01 02 [13:00:58]Write to MH i2c: E2 08 00 F9 1D 80 0D 01 02 00 00 00 00 8F [13:00:58]Write i2c OK [13:00:58]MH_I2C_Read... [13:00:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:00:58]Read from MH i2c: E2 [13:00:58]MH_I2C_Read... [13:00:58]Read from MH i2c: E2 03 00 [13:00:58]MH_I2C_Read... [13:00:58]Read from MH i2c: E2 03 00 F9 1D 00 90 00 8A [13:00:58]RAPDU: 90 00 [13:00:58]wFMCommunicate OK [13:00:58]wFMCommunicate request_size=255 [13:00:58]MH_SAM_APDU [13:00:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 0A FF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 79 78 03 00 35 04 06 00 35 [13:00:58]Write to MH i2c: E2 02 01 FA 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 0A FF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 79 78 03 00 35 04 06 00 35 00 00 F1 [13:00:58]Write i2c OK [13:00:58]MH_I2C_Read... [13:00:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:59]Read from MH i2c: E2 [13:00:59]MH_I2C_Read... [13:00:59]Read from MH i2c: E2 03 00 [13:00:59]MH_I2C_Read... [13:00:59]Read from MH i2c: E2 03 00 FA 1D 00 90 00 8B [13:00:59]RAPDU: 90 00 [13:00:59]wFMCommunicate OK [13:00:59]wFMCommunicate request_size=10 [13:00:59]MH_SAM_APDU [13:00:59]CAPDU: 80 0D 02 02 05 A5 E8 C5 6C CD [13:00:59]Write to MH i2c: E2 0D 00 FB 1D 80 0D 02 02 05 00 A5 E8 C5 6C CD 00 00 27 [13:00:59]Write i2c OK [13:00:59]MH_I2C_Read... [13:00:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:59]Read from MH i2c: E2 [13:00:59]MH_I2C_Read... [13:00:59]Read from MH i2c: E2 03 00 [13:00:59]MH_I2C_Read... [13:00:59]Read from MH i2c: E2 03 00 FB 1D 00 90 00 8C [13:00:59]RAPDU: 90 00 [13:00:59]wFMCommunicate OK [13:00:59]wFMCommunicate request_size=4 [13:00:59]MH_SAM_APDU [13:00:59]CAPDU: 80 0D 03 02 [13:00:59]Write to MH i2c: E2 08 00 FC 1D 80 0D 03 02 00 00 00 00 94 [13:00:59]Write i2c OK [13:00:59]MH_I2C_Read... [13:00:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:00:59]Read from MH i2c: E2 [13:00:59]MH_I2C_Read... [13:00:59]Read from MH i2c: E2 0B 00 [13:00:59]MH_I2C_Read... [13:00:59]Read from MH i2c: E2 0B 00 FC 1D 00 56 DE 75 4C C3 C2 E7 85 90 00 7B [13:00:59]RAPDU: 56 DE 75 4C C3 C2 E7 85 90 00 [13:00:59]wFMCommunicate OK [13:00:59]SAM_PROTO_SignData done [13:00:59]FM_MakeSignedData done [13:00:59]CreateOFDProtocolMessage [13:00:59]wFMCommunicate request_size=4 [13:00:59]MH_SAM_APDU [13:00:59]CAPDU: 80 11 00 00 [13:00:59]Write to MH i2c: E2 08 00 FD 1D 80 11 00 00 00 00 00 00 94 [13:00:59]Write i2c OK [13:00:59]MH_I2C_Read... [13:00:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:59]Read from MH i2c: E2 [13:00:59]MH_I2C_Read... [13:00:59]Read from MH i2c: E2 17 00 [13:00:59]MH_I2C_Read... [13:00:59]Read from MH i2c: E2 17 00 FD 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 EB [13:00:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:00:59]wFMCommunicate OK [13:00:59]CreateOFDProtocolMessage done [13:00:59]OFDSenderStorePacket 227449 [13:00:59]StoreOFDPacket docnum=227449 [13:00:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 66 21 07 01 4D 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 0A FF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 79 78 03 00 35 04 06 00 35 A5 E8 C5 6C CD 56 DE 75 4C C3 C2 E7 85 [13:00:59]CheckFolder [13:00:59]dirname=/storage/ofd_packets [13:00:59]CheckFolder done [13:00:59]ProducePacketName [13:00:59]name=ofd_packets/00227449 [13:00:59]NVStorageSaveData ofd_packets/00227449 [13:00:59]File name is /storage/ofd_packets/00227449 [13:00:59]Write 301 bytes [13:00:59]NVStorageSaveData done [13:00:59]OFDSenderStorePacket done [13:00:59]KKMCreateOFDPacket done [13:00:59]NVStorageSaveData kkm_last_timestamp [13:00:59]File name is /storage/kkm_last_timestamp [13:00:59]Write 4 bytes [13:00:59]NVStorageSaveData done [13:00:59]ExternCall_PrintAddStr [13:00:59]wPrintStart [13:00:59]Write to MH i2c: 01 00 00 FE 1D 1B [13:00:59]Write i2c OK [13:00:59]MH_I2C_Read... [13:00:59]Read from MH i2c: 01 [13:00:59]MH_I2C_Read... [13:00:59]Read from MH i2c: 01 07 00 [13:00:59]MH_I2C_Read... [13:00:59]Read from MH i2c: 01 07 00 FE 1D 00 00 00 00 00 FF 0F 30 [13:00:59]RasterBufferAndPrint [13:00:59]line Счет N : (1)1962971 [13:00:59]line ИНН: 02508201610067 [13:00:59]line Контрольно-Кассовый Чек [13:00:59]line ПРОДАЖА [13:00:59]line ТРК (МРК, ГНК) : 53 [13:00:59]line Товар: 2710124130 [13:00:59]line Аи-92-К-5 [13:00:59]line 8.970 * 66.90 [13:00:59]line = 600.09 [13:00:59]line НДС 12% НСП 1% [13:00:59]line > о реализуемом товаре [13:00:59]line ОКРУГЛЕНИЕ: -0.09 [13:00:59]line ИТОГО: 600.00 [13:00:59]line Внесено: 600.00 [13:00:59]line СДАЧА: 0.00 [13:00:59]line НСП 1% : 5.31 [13:00:59]line НДС 12% : 63.73 [13:00:59]line Наличными: 600.00 [13:00:59]line Безнал.: 0.00 [13:00:59]line Место: АЗС № 133 "Партнер Нефть" [13:00:59]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:00:59]line СНО: Общий режим [13:00:59]line Чек 297 20.10.2024 13:00 [13:00:59]line Смена: 533 ФФД: 1.0 [13:00:59]line ЗНМ: 0300000091 [13:00:59]line РНМ: 0000000000091685 [13:00:59]line Версия ККМ: 001 [13:00:59]line ФМ: 0000000000871839 [13:00:59]line ФД: 227449 [13:00:59]line ФПД: 58986691128525 [13:00:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T130058&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227449&fm=58986691128525&tin=02508201610067®Number=0000000000091685&sum=60000 [13:00:59]written 0, free lines is 4095 [13:00:59]OFD Sender: Processing packet 227449 [packets to send 38, broken 37] [13:00:59]ProducePacketName [13:00:59]name=ofd_packets/00227449 [13:00:59]OFD Sender: To server: pG, [13:00:59]CommunicateWithHost lk.salyk.kg:30040 [13:00:59]ConnectInit lk.salyk.kg [13:00:59]Connected sock=10 [13:00: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 33 39 0F 01 00 00 66 21 07 01 4D 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 0A FF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 79 78 03 00 35 04 06 00 35 A5 E8 C5 6C CD 56 DE 75 4C C3 C2 E7 85 [13:00: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 33 39 4F 00 00 00 03 96 47 00 60 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 33 39 10 04 04 00 79 78 03 00 F4 03 04 00 09 AA 14 67 B6 04 01 00 00 FF A1 94 0B 8D 0B E7 00 [13:00:59]CommunicateWithHost err = 0 [13:00:59]CheckOFDResponse [13:00:59]1017 (14) - 77093643461234 [13:00:59]1041 (16) - 0000000000871839 [13:00:59]1040 (4) - 227449 [13:00:59]1012 (4) - 20.10.2024 06:58 [13:00:59]1206 (1) - 0 [13:00:59]OFD Sender: Remove packet 227449 [13:00:59]ProducePacketName [13:00:59]name=ofd_packets/00227449 [13:00:59]NVStorageDeleteData [13:00:59]Write to MH i2c: 01 00 00 28 1E 46 [13:00:59]Write i2c OK [13:00:59]MH_I2C_Read... [13:00:59]Read from MH i2c: 01 [13:00:59]MH_I2C_Read... [13:00:59]Read from MH i2c: 01 07 00 [13:00:59]MH_I2C_Read... [13:00:59]Read from MH i2c: 01 07 00 28 1E 00 00 00 00 00 0A 0D 64 [13:00:59]RasterBufferAndPrint [13:01:00]line [13:01:00]line [13:01:00]line [13:01:00]line [13:01:00]line [13:01:00]written 0, free lines is 3344 [13:01:00]process_action close_receipt done [13:01:00]requested_data is exist [13:01:00]produce_requested_data [13:01:00]requested_item fm.sn is exist - process it [13:01:00]wFMCommunicate request_size=4 [13:01:00]MH_SAM_APDU [13:01:00]CAPDU: 80 11 00 00 [13:01:00]Write to MH i2c: E2 08 00 2F 1E 80 11 00 00 00 00 00 00 C7 [13:01:00]Write i2c OK [13:01:00]MH_I2C_Read... [13:01:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:00]Read from MH i2c: E2 [13:01:00]MH_I2C_Read... [13:01:00]Read from MH i2c: E2 17 00 [13:01:00]MH_I2C_Read... [13:01:00]Read from MH i2c: E2 17 00 2F 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 1E [13:01:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:01:00]wFMCommunicate OK [13:01:00]requested_item fd.num is exist - process it [13:01:00]SAM_PROTO_GetFieldsCounters [13:01:00]wFMCommunicate request_size=4 [13:01:00]MH_SAM_APDU [13:01:00]CAPDU: 80 13 00 00 [13:01:00]Write to MH i2c: E2 08 00 30 1E 80 13 00 00 00 00 00 00 CA [13:01:00]Write i2c OK [13:01:00]MH_I2C_Read... [13:01:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:01:00]Read from MH i2c: E2 [13:01:00]MH_I2C_Read... [13:01:00]Read from MH i2c: E2 62 00 [13:01:00]MH_I2C_Read... [13:01:00]Read from MH i2c: E2 62 00 30 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 79 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 7C [13:01: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 79 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:01:00]wFMCommunicate OK [13:01:00]SAM_PROTO_GetFieldsCounters done [13:01:00]requested_item shift.num is exist - process it [13:01:00]requested_item shift.opened is exist - process it [13:01:00]req_shift_opened [13:01:00]FM_GetShiftState [13:01:00]SAM_PROTO_GetShiftState [13:01:00]wFMCommunicate request_size=4 [13:01:00]MH_SAM_APDU [13:01:00]CAPDU: 80 13 01 00 [13:01:00]Write to MH i2c: E2 08 00 31 1E 80 13 01 00 00 00 00 00 CC [13:01:00]Write i2c OK [13:01:00]MH_I2C_Read... [13:01:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:00]Read from MH i2c: E2 [13:01:00]MH_I2C_Read... [13:01:00]Read from MH i2c: E2 0E 00 [13:01:00]MH_I2C_Read... [13:01:00]Read from MH i2c: E2 0E 00 31 1E 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 E6 [13:01:00]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:01:00]wFMCommunicate OK [13:01:00]SAM_PROTO_GetShiftState done [13:01:00]FM_GetShiftState done [13:01:00]req_shift_opened done [13:01:00]requested_item shift.open_date is exist - process it [13:01:00]req_shift_open_date [13:01:00]req_shift_open_date done [13:01:00]produce_requested_data done [13:01:00]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227449,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [13:01:00]process_action_free close_receipt [13:01:00]json_value_free [13:01:00]json_value_free done [13:01:00]process_json_proto returns [13:01:00]Send response to host [13:01:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227449,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [13:01:00]free response buf [13:01:00]execute_script done [13:01:00]execute_script returns [13:01:00]free content buf [13:01:00]Sock 8.Close socket [13:01:00]Sock 8.Thread stoped [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:20]OFD Sender: No OFD packet to send [13:01:25]OFD Sender: No OFD packet to send [13:01:30]OFD Sender: No OFD packet to send [13:01:35]OFD Sender: No OFD packet to send [13:01:40]OFD Sender: No OFD packet to send [13:01:45]OFD Sender: No OFD packet to send [13:01:50]accept exits with 9 [13:01:50]New connection [13:01:50]New thread 3066543460 created [13:01:50]Thread 3066686820 joined [13:01:50]Waiting for new connection... [13:01:50] Sock 9.Parse request [13:01:50]Sock 9.Check first char [13:01:50]Sock 9.First char is OK [13:01:50]request: POST /json_proto HTTP/1.0 [13:01:50]Method: POST [13:01:50]URL: /json_proto [13:01:50]Method is POST - this is cgi request [13:01:50]url: /json_proto [13:01:50]query_string will be loaded in cgi processing [13:01:50]execute_cgi json_proto POST (null) [13:01:50]execute_cgi path=json_proto method=POST [13:01:50]POST find Content-Length [13:01:50]Host: 172.17.44.195:8080 [13:01:50]Content-Length: 678 [13:01:50]Content-Type: application/json [13:01:50] [13:01:50]POST finish read [13:01:50]Found Content-Length = 678 [13:01:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962972", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:50]execute_script... [13:01: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)1962972", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:50]POST & json_proto [13:01:50]process_json_proto [13:01:50]json parsed OK: [13:01:50]protocol is kg_v1.0 [13:01:50]action value=close_receipt [13:01:50]process_action close_receipt [13:01:50]cmd_close_receipt [13:01:50]MH_GetDate [13:01:50]Write to MH i2c: F0 00 00 32 1E 3F [13:01:50]Write i2c OK [13:01:50]MH_I2C_Read... [13:01:50]Read from MH i2c: F0 [13:01:50]MH_I2C_Read... [13:01:50]Read from MH i2c: F0 09 00 [13:01:50]MH_I2C_Read... [13:01:50]Read from MH i2c: F0 09 00 32 1E 00 3F FF 14 67 82 C9 CF 66 81 [13:01:50]GetLastDocTimeStamp 1729429258 [13:01:50]current date 1729429311 [13:01:50]FM_GetShiftState [13:01:50]SAM_PROTO_GetShiftState [13:01:50]wFMCommunicate request_size=4 [13:01:50]MH_SAM_APDU [13:01:50]CAPDU: 80 13 01 00 [13:01:50]Write to MH i2c: E2 08 00 33 1E 80 13 01 00 00 00 00 00 CE [13:01:50]Write i2c OK [13:01:50]MH_I2C_Read... [13:01:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:50]Read from MH i2c: E2 [13:01:50]MH_I2C_Read... [13:01:50]Read from MH i2c: E2 0E 00 [13:01:50]MH_I2C_Read... [13:01:50]Read from MH i2c: E2 0E 00 33 1E 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 E8 [13:01:50]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:01:50]wFMCommunicate OK [13:01:50]SAM_PROTO_GetShiftState done [13:01:50]FM_GetShiftState done [13:01:50]opened in 1729383750 [13:01:50]opened+sec_in_day 1729470150 [13:01:50]quantity*price = 60009 [13:01:50]sum+1 = 60010 [13:01:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 298 20.10.2024 13:01 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227450 ФПД: 239812571821055 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T130151&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227450&fm=239812571821055&tin=02508201610067®Number=0000000000091685&sum=60000 [13:01:51]StoreToDocumentArchive [13:01:51]shift 533 fd 227450 [13:01:51]save to /storage/0533/doc_00227450 [13:01:51]save last doc name /storage/0533/doc_00227450 to /storage/kkm_last_doc_name [13:01:51]save OK [13:01:51]Clear old archive folders... [13:01:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:01:51]tlvbuf is 01901BA0 [13:01:51]SAM_PROTO_ClearQueue [13:01:51]wFMCommunicate request_size=4 [13:01:51]MH_SAM_APDU [13:01:51]CAPDU: 80 09 00 00 [13:01:51]Write to MH i2c: E2 08 00 40 1E 80 09 00 00 00 00 00 00 D0 [13:01:51]Write i2c OK [13:01:51]MH_I2C_Read... [13:01:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:01:51]Read from MH i2c: E2 [13:01:51]MH_I2C_Read... [13:01:51]Read from MH i2c: E2 03 00 [13:01:51]MH_I2C_Read... [13:01:51]Read from MH i2c: E2 03 00 40 1E 00 90 00 D2 [13:01:51]RAPDU: 90 00 [13:01:51]wFMCommunicate OK [13:01:51]SAM_PROTO_ClearQueue done [13:01:51]KKMCreateOFDPacket [13:01:51]OFDProtocolAddRootSTLVToBuf [13:01:51]FM_MakeSignedData [13:01:51]FM_MakeSignedData [13:01:51]SAM_PROTO_SignData [13:01:51]wFMCommunicate request_size=4 [13:01:51]MH_SAM_APDU [13:01:51]CAPDU: 80 0D 01 02 [13:01:51]Write to MH i2c: E2 08 00 41 1E 80 0D 01 02 00 00 00 00 D8 [13:01:51]Write i2c OK [13:01:51]MH_I2C_Read... [13:01:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:01:51]Read from MH i2c: E2 [13:01:51]MH_I2C_Read... [13:01:51]Read from MH i2c: E2 03 00 [13:01:51]MH_I2C_Read... [13:01:51]Read from MH i2c: E2 03 00 41 1E 00 90 00 D3 [13:01:51]RAPDU: 90 00 [13:01:51]wFMCommunicate OK [13:01:51]wFMCommunicate request_size=255 [13:01:51]MH_SAM_APDU [13:01:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 3F FF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7A 78 03 00 35 04 06 00 DA [13:01:51]Write to MH i2c: E2 02 01 42 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 3F FF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7A 78 03 00 35 04 06 00 DA 00 00 16 [13:01:51]Write i2c OK [13:01:51]MH_I2C_Read... [13:01:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:51]Read from MH i2c: E2 [13:01:51]MH_I2C_Read... [13:01:51]Read from MH i2c: E2 03 00 [13:01:51]MH_I2C_Read... [13:01:51]Read from MH i2c: E2 03 00 42 1E 00 90 00 D4 [13:01:51]RAPDU: 90 00 [13:01:51]wFMCommunicate OK [13:01:51]wFMCommunicate request_size=10 [13:01:51]MH_SAM_APDU [13:01:51]CAPDU: 80 0D 02 02 05 1B B7 27 F3 FF [13:01:51]Write to MH i2c: E2 0D 00 43 1E 80 0D 02 02 05 00 1B B7 27 F3 FF 00 00 D0 [13:01:51]Write i2c OK [13:01:51]MH_I2C_Read... [13:01:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:51]Read from MH i2c: E2 [13:01:51]MH_I2C_Read... [13:01:51]Read from MH i2c: E2 03 00 [13:01:51]MH_I2C_Read... [13:01:51]Read from MH i2c: E2 03 00 43 1E 00 90 00 D5 [13:01:51]RAPDU: 90 00 [13:01:51]wFMCommunicate OK [13:01:51]wFMCommunicate request_size=4 [13:01:51]MH_SAM_APDU [13:01:51]CAPDU: 80 0D 03 02 [13:01:51]Write to MH i2c: E2 08 00 44 1E 80 0D 03 02 00 00 00 00 DD [13:01:51]Write i2c OK [13:01:51]MH_I2C_Read... [13:01:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:01:51]Read from MH i2c: E2 [13:01:51]MH_I2C_Read... [13:01:51]Read from MH i2c: E2 0B 00 [13:01:51]MH_I2C_Read... [13:01:51]Read from MH i2c: E2 0B 00 44 1E 00 9D 9D C5 73 3D 26 17 0E 90 00 D8 [13:01:51]RAPDU: 9D 9D C5 73 3D 26 17 0E 90 00 [13:01:51]wFMCommunicate OK [13:01:51]SAM_PROTO_SignData done [13:01:51]FM_MakeSignedData done [13:01:51]CreateOFDProtocolMessage [13:01:51]wFMCommunicate request_size=4 [13:01:51]MH_SAM_APDU [13:01:51]CAPDU: 80 11 00 00 [13:01:51]Write to MH i2c: E2 08 00 45 1E 80 11 00 00 00 00 00 00 DD [13:01:51]Write i2c OK [13:01:51]MH_I2C_Read... [13:01:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:51]Read from MH i2c: E2 [13:01:51]MH_I2C_Read... [13:01:51]Read from MH i2c: E2 17 00 [13:01:51]MH_I2C_Read... [13:01:51]Read from MH i2c: E2 17 00 45 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 34 [13:01:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:01:51]wFMCommunicate OK [13:01:51]CreateOFDProtocolMessage done [13:01:51]OFDSenderStorePacket 227450 [13:01:51]StoreOFDPacket docnum=227450 [13:01:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 3A DE 07 01 51 AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 3F FF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7A 78 03 00 35 04 06 00 DA 1B B7 27 F3 FF 9D 9D C5 73 3D 26 17 0E [13:01:51]CheckFolder [13:01:51]dirname=/storage/ofd_packets [13:01:51]CheckFolder done [13:01:51]ProducePacketName [13:01:51]name=ofd_packets/00227450 [13:01:51]NVStorageSaveData ofd_packets/00227450 [13:01:51]File name is /storage/ofd_packets/00227450 [13:01:51]Write 301 bytes [13:01:51]NVStorageSaveData done [13:01:51]OFDSenderStorePacket done [13:01:51]KKMCreateOFDPacket done [13:01:51]NVStorageSaveData kkm_last_timestamp [13:01:51]File name is /storage/kkm_last_timestamp [13:01:51]Write 4 bytes [13:01:51]NVStorageSaveData done [13:01:51]ExternCall_PrintAddStr [13:01:51]wPrintStart [13:01:51]Write to MH i2c: 01 00 00 46 1E 64 [13:01:51]Write i2c OK [13:01:51]MH_I2C_Read... [13:01:51]Read from MH i2c: 01 [13:01:51]MH_I2C_Read... [13:01:51]Read from MH i2c: 01 07 00 [13:01:51]MH_I2C_Read... [13:01:51]Read from MH i2c: 01 07 00 46 1E 00 00 00 00 00 FF 0F 79 [13:01:51]RasterBufferAndPrint [13:01:51]line Счет N : (1)1962972 [13:01:51]line ИНН: 02508201610067 [13:01:51]line Контрольно-Кассовый Чек [13:01:51]line ПРОДАЖА [13:01:51]line ТРК (МРК, ГНК) : 63 [13:01:51]line Товар: 2710124130 [13:01:51]line Аи-92-К-5 [13:01:51]line 8.970 * 66.90 [13:01:51]line = 600.09 [13:01:51]line НДС 12% НСП 1% [13:01:51]line > о реализуемом товаре [13:01:51]line ОКРУГЛЕНИЕ: -0.09 [13:01:51]line ИТОГО: 600.00 [13:01:51]line Внесено: 600.00 [13:01:51]line СДАЧА: 0.00 [13:01:51]line НСП 1% : 5.31 [13:01:51]line НДС 12% : 63.73 [13:01:51]line Наличными: 600.00 [13:01:51]line Безнал.: 0.00 [13:01:51]line Место: АЗС № 133 "Партнер Нефть" [13:01:51]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:01:51]line СНО: Общий режим [13:01:51]line Чек 298 20.10.2024 13:01 [13:01:51]line Смена: 533 ФФД: 1.0 [13:01:51]line ЗНМ: 0300000091 [13:01:51]line РНМ: 0000000000091685 [13:01:51]line Версия ККМ: 001 [13:01:51]line ФМ: 0000000000871839 [13:01:51]line ФД: 227450 [13:01:51]line ФПД: 239812571821055 [13:01:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T130151&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227450&fm=239812571821055&tin=02508201610067®Number=0000000000091685&sum=60000 [13:01:52]written 0, free lines is 4095 [13:01:52]OFD Sender: Processing packet 227450 [packets to send 38, broken 37] [13:01:52]ProducePacketName [13:01:52]name=ofd_packets/00227450 [13:01:52]OFD Sender: To server: pG, [13:01:52]CommunicateWithHost lk.salyk.kg:30040 [13:01:52]ConnectInit lk.salyk.kg [13:01:52]Connected sock=10 [13:01: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 33 39 0F 01 00 00 3A DE 07 01 51 AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 3F FF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7A 78 03 00 35 04 06 00 DA 1B B7 27 F3 FF 9D 9D C5 73 3D 26 17 0E [13:01: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 33 39 4F 00 00 00 4C 40 47 00 58 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 33 39 10 04 04 00 7A 78 03 00 F4 03 04 00 3E AA 14 67 B6 04 01 00 00 58 56 6E B8 22 E1 23 0E [13:01:52]CommunicateWithHost err = 0 [13:01:52]CheckOFDResponse [13:01:52]1017 (14) - 77093643461234 [13:01:52]1041 (16) - 0000000000871839 [13:01:52]1040 (4) - 227450 [13:01:52]1012 (4) - 20.10.2024 06:59 [13:01:52]1206 (1) - 0 [13:01:52]OFD Sender: Remove packet 227450 [13:01:52]ProducePacketName [13:01:52]name=ofd_packets/00227450 [13:01:52]NVStorageDeleteData [13:01:52]Write to MH i2c: 01 00 00 70 1E 8E [13:01:52]Write i2c OK [13:01:52]MH_I2C_Read... [13:01:52]Read from MH i2c: 01 [13:01:52]MH_I2C_Read... [13:01:52]Read from MH i2c: 01 07 00 [13:01:52]MH_I2C_Read... [13:01:52]Read from MH i2c: 01 07 00 70 1E 00 00 00 00 00 02 0D A4 [13:01:52]RasterBufferAndPrint [13:01:52]line [13:01:52]line [13:01:52]line [13:01:52]line [13:01:52]line [13:01:52]written 0, free lines is 3336 [13:01:52]process_action close_receipt done [13:01:52]requested_data is exist [13:01:52]produce_requested_data [13:01:52]requested_item fm.sn is exist - process it [13:01:52]wFMCommunicate request_size=4 [13:01:52]MH_SAM_APDU [13:01:52]CAPDU: 80 11 00 00 [13:01:52]Write to MH i2c: E2 08 00 77 1E 80 11 00 00 00 00 00 00 0F [13:01:52]Write i2c OK [13:01:52]MH_I2C_Read... [13:01:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:52]Read from MH i2c: E2 [13:01:52]MH_I2C_Read... [13:01:52]Read from MH i2c: E2 17 00 [13:01:52]MH_I2C_Read... [13:01:52]Read from MH i2c: E2 17 00 77 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 66 [13:01:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:01:52]wFMCommunicate OK [13:01:52]requested_item fd.num is exist - process it [13:01:52]SAM_PROTO_GetFieldsCounters [13:01:52]wFMCommunicate request_size=4 [13:01:52]MH_SAM_APDU [13:01:52]CAPDU: 80 13 00 00 [13:01:52]Write to MH i2c: E2 08 00 78 1E 80 13 00 00 00 00 00 00 12 [13:01:52]Write i2c OK [13:01:52]MH_I2C_Read... [13:01:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:01:52]Read from MH i2c: E2 [13:01:52]MH_I2C_Read... [13:01:52]Read from MH i2c: E2 62 00 [13:01:52]MH_I2C_Read... [13:01:52]Read from MH i2c: E2 62 00 78 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 7A 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 2A 01 00 00 5E 04 04 00 2A 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 C8 [13:01:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 7A 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 2A 01 00 00 5E 04 04 00 2A 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:01:52]wFMCommunicate OK [13:01:52]SAM_PROTO_GetFieldsCounters done [13:01:52]requested_item shift.num is exist - process it [13:01:52]requested_item shift.opened is exist - process it [13:01:52]req_shift_opened [13:01:52]FM_GetShiftState [13:01:52]SAM_PROTO_GetShiftState [13:01:52]wFMCommunicate request_size=4 [13:01:52]MH_SAM_APDU [13:01:52]CAPDU: 80 13 01 00 [13:01:52]Write to MH i2c: E2 08 00 79 1E 80 13 01 00 00 00 00 00 14 [13:01:52]Write i2c OK [13:01:52]MH_I2C_Read... [13:01:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:52]Read from MH i2c: E2 [13:01:52]MH_I2C_Read... [13:01:52]Read from MH i2c: E2 0E 00 [13:01:52]MH_I2C_Read... [13:01:52]Read from MH i2c: E2 0E 00 79 1E 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 2E [13:01:52]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:01:52]wFMCommunicate OK [13:01:52]SAM_PROTO_GetShiftState done [13:01:52]FM_GetShiftState done [13:01:52]req_shift_opened done [13:01:52]requested_item shift.open_date is exist - process it [13:01:52]req_shift_open_date [13:01:52]req_shift_open_date done [13:01:52]produce_requested_data done [13:01:52]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227450,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [13:01:52]process_action_free close_receipt [13:01:52]json_value_free [13:01:52]json_value_free done [13:01:52]process_json_proto returns [13:01:52]Send response to host [13:01:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227450,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [13:01:52]free response buf [13:01:52]execute_script done [13:01:52]execute_script returns [13:01:52]free content buf [13:01:52]Sock 9.Close socket [13:01:52]Sock 9.Thread stoped [13:01:53]OFD Sender: No OFD packet to send [13:01:58]OFD Sender: No OFD packet to send [13:02:03]OFD Sender: No OFD packet to send [13:02:08]OFD Sender: No OFD packet to send [13:02:13]OFD Sender: No OFD packet to send [13:02:18]OFD Sender: No OFD packet to send [13:02:23]OFD Sender: No OFD packet to send [13:02:28]OFD Sender: No OFD packet to send [13:02:33]OFD Sender: No OFD packet to send [13:02:38]OFD Sender: No OFD packet to send [13:02:43]OFD Sender: No OFD packet to send [13:02:48]OFD Sender: No OFD packet to send [13:02:53]OFD Sender: No OFD packet to send [13:02:58]OFD Sender: No OFD packet to send [13:03:03]OFD Sender: No OFD packet to send [13:03:08]OFD Sender: No OFD packet to send [13:03:13]OFD Sender: No OFD packet to send [13:03:18]OFD Sender: No OFD packet to send [13:03:23]OFD Sender: No OFD packet to send [13:03:28]OFD Sender: No OFD packet to send [13:03:33]OFD Sender: No OFD packet to send [13:03:38]OFD Sender: No OFD packet to send [13:03:43]OFD Sender: No OFD packet to send [13:03:48]OFD Sender: No OFD packet to send [13:03:53]OFD Sender: No OFD packet to send [13:03:58]OFD Sender: No OFD packet to send [13:04:03]OFD Sender: No OFD packet to send [13:04:04]accept exits with 8 [13:04:04]New connection [13:04:04]New thread 3066686820 created [13:04:04]Thread 3066543460 joined [13:04:04]Waiting for new connection... [13:04:04] Sock 8.Parse request [13:04:04]Sock 8.Check first char [13:04:04]Sock 8.First char is OK [13:04:04]request: POST /json_proto HTTP/1.0 [13:04:04]Method: POST [13:04:04]URL: /json_proto [13:04:04]Method is POST - this is cgi request [13:04:04]url: /json_proto [13:04:04]query_string will be loaded in cgi processing [13:04:04]execute_cgi json_proto POST (null) [13:04:04]execute_cgi path=json_proto method=POST [13:04:04]POST find Content-Length [13:04:04]Host: 172.17.44.195:8080 [13:04:04]Content-Length: 683 [13:04:04]Content-Type: application/json [13:04:04] [13:04:04]POST finish read [13:04:04]Found Content-Length = 683 [13:04:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962973", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:04:04]execute_script... [13:04: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)1962973", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:04:04]POST & json_proto [13:04:04]process_json_proto [13:04:04]json parsed OK: [13:04:04]protocol is kg_v1.0 [13:04:04]action value=close_receipt [13:04:04]process_action close_receipt [13:04:04]cmd_close_receipt [13:04:04]MH_GetDate [13:04:04]Write to MH i2c: F0 00 00 7A 1E 87 [13:04:04]Write i2c OK [13:04:04]MH_I2C_Read... [13:04:04]Read from MH i2c: F0 [13:04:04]MH_I2C_Read... [13:04:04]Read from MH i2c: F0 09 00 [13:04:04]MH_I2C_Read... [13:04:04]Read from MH i2c: F0 09 00 7A 1E 00 C5 FF 14 67 82 C9 CF 66 4F [13:04:04]GetLastDocTimeStamp 1729429311 [13:04:04]current date 1729429445 [13:04:04]FM_GetShiftState [13:04:04]SAM_PROTO_GetShiftState [13:04:04]wFMCommunicate request_size=4 [13:04:04]MH_SAM_APDU [13:04:04]CAPDU: 80 13 01 00 [13:04:04]Write to MH i2c: E2 08 00 7B 1E 80 13 01 00 00 00 00 00 16 [13:04:04]Write i2c OK [13:04:04]MH_I2C_Read... [13:04:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:04]Read from MH i2c: E2 [13:04:04]MH_I2C_Read... [13:04:04]Read from MH i2c: E2 0E 00 [13:04:04]MH_I2C_Read... [13:04:04]Read from MH i2c: E2 0E 00 7B 1E 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 30 [13:04:04]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:04:04]wFMCommunicate OK [13:04:04]SAM_PROTO_GetShiftState done [13:04:04]FM_GetShiftState done [13:04:04]opened in 1729383750 [13:04:04]opened+sec_in_day 1729470150 [13:04:04]quantity*price = 100015 [13:04:04]sum+1 = 100017 [13:04:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 299 20.10.2024 13:04 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227451 ФПД: 201779706589131 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T130405&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227451&fm=201779706589131&tin=02508201610067®Number=0000000000091685&sum=100000 [13:04:05]StoreToDocumentArchive [13:04:05]shift 533 fd 227451 [13:04:05]save to /storage/0533/doc_00227451 [13:04:05]save last doc name /storage/0533/doc_00227451 to /storage/kkm_last_doc_name [13:04:05]save OK [13:04:05]Clear old archive folders... [13:04:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:04:05]tlvbuf is B6E99400 [13:04:05]SAM_PROTO_ClearQueue [13:04:05]wFMCommunicate request_size=4 [13:04:05]MH_SAM_APDU [13:04:05]CAPDU: 80 09 00 00 [13:04:05]Write to MH i2c: E2 08 00 88 1E 80 09 00 00 00 00 00 00 18 [13:04:05]Write i2c OK [13:04:05]MH_I2C_Read... [13:04:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:04:06]Read from MH i2c: E2 [13:04:06]MH_I2C_Read... [13:04:06]Read from MH i2c: E2 03 00 [13:04:06]MH_I2C_Read... [13:04:06]Read from MH i2c: E2 03 00 88 1E 00 90 00 1A [13:04:06]RAPDU: 90 00 [13:04:06]wFMCommunicate OK [13:04:06]SAM_PROTO_ClearQueue done [13:04:06]KKMCreateOFDPacket [13:04:06]OFDProtocolAddRootSTLVToBuf [13:04:06]FM_MakeSignedData [13:04:06]FM_MakeSignedData [13:04:06]SAM_PROTO_SignData [13:04:06]wFMCommunicate request_size=4 [13:04:06]MH_SAM_APDU [13:04:06]CAPDU: 80 0D 01 02 [13:04:06]Write to MH i2c: E2 08 00 89 1E 80 0D 01 02 00 00 00 00 20 [13:04:06]Write i2c OK [13:04:06]MH_I2C_Read... [13:04:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:04:06]Read from MH i2c: E2 [13:04:06]MH_I2C_Read... [13:04:06]Read from MH i2c: E2 03 00 [13:04:06]MH_I2C_Read... [13:04:06]Read from MH i2c: E2 03 00 89 1E 00 90 00 1B [13:04:06]RAPDU: 90 00 [13:04:06]wFMCommunicate OK [13:04:06]wFMCommunicate request_size=255 [13:04:06]MH_SAM_APDU [13:04:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 C5 FF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7B 78 03 00 35 04 06 00 B7 [13:04:06]Write to MH i2c: E2 02 01 8A 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 C5 FF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7B 78 03 00 35 04 06 00 B7 00 00 E0 [13:04:06]Write i2c OK [13:04:06]MH_I2C_Read... [13:04:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:06]Read from MH i2c: E2 [13:04:06]MH_I2C_Read... [13:04:06]Read from MH i2c: E2 03 00 [13:04:06]MH_I2C_Read... [13:04:06]Read from MH i2c: E2 03 00 8A 1E 00 90 00 1C [13:04:06]RAPDU: 90 00 [13:04:06]wFMCommunicate OK [13:04:06]wFMCommunicate request_size=10 [13:04:06]MH_SAM_APDU [13:04:06]CAPDU: 80 0D 02 02 05 84 7F BB EF CB [13:04:06]Write to MH i2c: E2 0D 00 8B 1E 80 0D 02 02 05 00 84 7F BB EF CB 00 00 A5 [13:04:06]Write i2c OK [13:04:06]MH_I2C_Read... [13:04:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:06]Read from MH i2c: E2 [13:04:06]MH_I2C_Read... [13:04:06]Read from MH i2c: E2 03 00 [13:04:06]MH_I2C_Read... [13:04:06]Read from MH i2c: E2 03 00 8B 1E 00 90 00 1D [13:04:06]RAPDU: 90 00 [13:04:06]wFMCommunicate OK [13:04:06]wFMCommunicate request_size=4 [13:04:06]MH_SAM_APDU [13:04:06]CAPDU: 80 0D 03 02 [13:04:06]Write to MH i2c: E2 08 00 8C 1E 80 0D 03 02 00 00 00 00 25 [13:04:06]Write i2c OK [13:04:06]MH_I2C_Read... [13:04:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:04:06]Read from MH i2c: E2 [13:04:06]MH_I2C_Read... [13:04:06]Read from MH i2c: E2 0B 00 [13:04:06]MH_I2C_Read... [13:04:06]Read from MH i2c: E2 0B 00 8C 1E 00 78 1C CE 35 96 EA CC F1 90 00 FA [13:04:06]RAPDU: 78 1C CE 35 96 EA CC F1 90 00 [13:04:06]wFMCommunicate OK [13:04:06]SAM_PROTO_SignData done [13:04:06]FM_MakeSignedData done [13:04:06]CreateOFDProtocolMessage [13:04:06]wFMCommunicate request_size=4 [13:04:06]MH_SAM_APDU [13:04:06]CAPDU: 80 11 00 00 [13:04:06]Write to MH i2c: E2 08 00 8D 1E 80 11 00 00 00 00 00 00 25 [13:04:06]Write i2c OK [13:04:06]MH_I2C_Read... [13:04:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:06]Read from MH i2c: E2 [13:04:06]MH_I2C_Read... [13:04:06]Read from MH i2c: E2 17 00 [13:04:06]MH_I2C_Read... [13:04:06]Read from MH i2c: E2 17 00 8D 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 7C [13:04:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:04:06]wFMCommunicate OK [13:04:06]CreateOFDProtocolMessage done [13:04:06]OFDSenderStorePacket 227451 [13:04:06]StoreOFDPacket docnum=227451 [13:04:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 AA 69 07 01 74 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 C5 FF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7B 78 03 00 35 04 06 00 B7 84 7F BB EF CB 78 1C CE 35 96 EA CC F1 [13:04:06]CheckFolder [13:04:06]dirname=/storage/ofd_packets [13:04:06]CheckFolder done [13:04:06]ProducePacketName [13:04:06]name=ofd_packets/00227451 [13:04:06]NVStorageSaveData ofd_packets/00227451 [13:04:06]File name is /storage/ofd_packets/00227451 [13:04:06]Write 301 bytes [13:04:06]NVStorageSaveData done [13:04:06]OFDSenderStorePacket done [13:04:06]KKMCreateOFDPacket done [13:04:06]NVStorageSaveData kkm_last_timestamp [13:04:06]File name is /storage/kkm_last_timestamp [13:04:06]Write 4 bytes [13:04:06]NVStorageSaveData done [13:04:06]ExternCall_PrintAddStr [13:04:06]wPrintStart [13:04:06]Write to MH i2c: 01 00 00 8E 1E AC [13:04:06]Write i2c OK [13:04:06]MH_I2C_Read... [13:04:06]Read from MH i2c: 01 [13:04:06]MH_I2C_Read... [13:04:06]Read from MH i2c: 01 07 00 [13:04:06]MH_I2C_Read... [13:04:06]Read from MH i2c: 01 07 00 8E 1E 00 00 00 00 00 FF 0F C1 [13:04:06]RasterBufferAndPrint [13:04:06]line Счет N : (1)1962973 [13:04:06]line ИНН: 02508201610067 [13:04:06]line Контрольно-Кассовый Чек [13:04:06]line ПРОДАЖА [13:04:06]line ТРК (МРК, ГНК) : 33 [13:04:06]line Товар: 2710124130 [13:04:06]line Аи-92-К-5 [13:04:06]line 14.950 * 66.90 [13:04:06]line = 1000.16 [13:04:06]line НДС 12% НСП 1% [13:04:06]line > о реализуемом товаре [13:04:06]line ОКРУГЛЕНИЕ: -0.16 [13:04:06]line ИТОГО: 1000.00 [13:04:06]line Внесено: 1000.00 [13:04:06]line СДАЧА: 0.00 [13:04:06]line НСП 1% : 8.85 [13:04:06]line НДС 12% : 106.21 [13:04:06]line Наличными: 1000.00 [13:04:06]line Безнал.: 0.00 [13:04:06]line Место: АЗС № 133 "Партнер Нефть" [13:04:06]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:04:06]line СНО: Общий режим [13:04:06]line Чек 299 20.10.2024 13:04 [13:04:06]line Смена: 533 ФФД: 1.0 [13:04:06]line ЗНМ: 0300000091 [13:04:06]line РНМ: 0000000000091685 [13:04:06]line Версия ККМ: 001 [13:04:06]line ФМ: 0000000000871839 [13:04:06]line ФД: 227451 [13:04:06]line ФПД: 201779706589131 [13:04:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T130405&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227451&fm=201779706589131&tin=02508201610067®Number=0000000000091685&sum=100000 [13:04:06]written 0, free lines is 4095 [13:04:06]OFD Sender: Processing packet 227451 [packets to send 38, broken 37] [13:04:06]ProducePacketName [13:04:06]name=ofd_packets/00227451 [13:04:06]OFD Sender: To server: pG, [13:04:06]CommunicateWithHost lk.salyk.kg:30040 [13:04:06]ConnectInit lk.salyk.kg [13:04:06]Connected sock=10 [13:04: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 33 39 0F 01 00 00 AA 69 07 01 74 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 C5 FF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7B 78 03 00 35 04 06 00 B7 84 7F BB EF CB 78 1C CE 35 96 EA CC F1 [13:04: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 33 39 4F 00 00 00 6E 79 47 00 7E 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 33 39 10 04 04 00 7B 78 03 00 F4 03 04 00 C4 AA 14 67 B6 04 01 00 00 64 8D 3D 2E E8 0F C5 58 [13:04:06]CommunicateWithHost err = 0 [13:04:06]CheckOFDResponse [13:04:06]1017 (14) - 77093643461234 [13:04:06]1041 (16) - 0000000000871839 [13:04:06]1040 (4) - 227451 [13:04:06]1012 (4) - 20.10.2024 07:01 [13:04:06]1206 (1) - 0 [13:04:06]OFD Sender: Remove packet 227451 [13:04:06]ProducePacketName [13:04:06]name=ofd_packets/00227451 [13:04:06]NVStorageDeleteData [13:04:06]Write to MH i2c: 01 00 00 B8 1E D6 [13:04:06]Write i2c OK [13:04:06]MH_I2C_Read... [13:04:06]Read from MH i2c: 01 [13:04:06]MH_I2C_Read... [13:04:06]Read from MH i2c: 01 07 00 [13:04:06]MH_I2C_Read... [13:04:06]Read from MH i2c: 01 07 00 B8 1E 00 00 00 00 00 12 0D FC [13:04:06]RasterBufferAndPrint [13:04:06]line [13:04:06]line [13:04:06]line [13:04:06]line [13:04:06]line [13:04:06]written 0, free lines is 3353 [13:04:07]process_action close_receipt done [13:04:07]requested_data is exist [13:04:07]produce_requested_data [13:04:07]requested_item fm.sn is exist - process it [13:04:07]wFMCommunicate request_size=4 [13:04:07]MH_SAM_APDU [13:04:07]CAPDU: 80 11 00 00 [13:04:07]Write to MH i2c: E2 08 00 BF 1E 80 11 00 00 00 00 00 00 57 [13:04:07]Write i2c OK [13:04:07]MH_I2C_Read... [13:04:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:07]Read from MH i2c: E2 [13:04:07]MH_I2C_Read... [13:04:07]Read from MH i2c: E2 17 00 [13:04:07]MH_I2C_Read... [13:04:07]Read from MH i2c: E2 17 00 BF 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 AE [13:04:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:04:07]wFMCommunicate OK [13:04:07]requested_item fd.num is exist - process it [13:04:07]SAM_PROTO_GetFieldsCounters [13:04:07]wFMCommunicate request_size=4 [13:04:07]MH_SAM_APDU [13:04:07]CAPDU: 80 13 00 00 [13:04:07]Write to MH i2c: E2 08 00 C0 1E 80 13 00 00 00 00 00 00 5A [13:04:07]Write i2c OK [13:04:07]MH_I2C_Read... [13:04:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:04:07]Read from MH i2c: E2 [13:04:07]MH_I2C_Read... [13:04:07]Read from MH i2c: E2 62 00 [13:04:07]MH_I2C_Read... [13:04:07]Read from MH i2c: E2 62 00 C0 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 7B 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 2B 01 00 00 5E 04 04 00 2B 01 00 00 57 04 04 00 2C 01 00 00 19 04 04 00 00 00 00 00 90 00 14 [13:04: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 7B 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 2B 01 00 00 5E 04 04 00 2B 01 00 00 57 04 04 00 2C 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:04:07]wFMCommunicate OK [13:04:07]SAM_PROTO_GetFieldsCounters done [13:04:07]requested_item shift.num is exist - process it [13:04:07]requested_item shift.opened is exist - process it [13:04:07]req_shift_opened [13:04:07]FM_GetShiftState [13:04:07]SAM_PROTO_GetShiftState [13:04:07]wFMCommunicate request_size=4 [13:04:07]MH_SAM_APDU [13:04:07]CAPDU: 80 13 01 00 [13:04:07]Write to MH i2c: E2 08 00 C1 1E 80 13 01 00 00 00 00 00 5C [13:04:07]Write i2c OK [13:04:07]MH_I2C_Read... [13:04:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:07]Read from MH i2c: E2 [13:04:07]MH_I2C_Read... [13:04:07]Read from MH i2c: E2 0E 00 [13:04:07]MH_I2C_Read... [13:04:07]Read from MH i2c: E2 0E 00 C1 1E 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 76 [13:04:07]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:04:07]wFMCommunicate OK [13:04:07]SAM_PROTO_GetShiftState done [13:04:07]FM_GetShiftState done [13:04:07]req_shift_opened done [13:04:07]requested_item shift.open_date is exist - process it [13:04:07]req_shift_open_date [13:04:07]req_shift_open_date done [13:04:07]produce_requested_data done [13:04:07]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227451,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [13:04:07]process_action_free close_receipt [13:04:07]json_value_free [13:04:07]json_value_free done [13:04:07]process_json_proto returns [13:04:07]Send response to host [13:04:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227451,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [13:04:07]free response buf [13:04:07]execute_script done [13:04:07]execute_script returns [13:04:07]free content buf [13:04:07]Sock 8.Close socket [13:04:07]Sock 8.Thread stoped [13:04:07]OFD Sender: No OFD packet to send [13:04:12]OFD Sender: No OFD packet to send [13:04:17]OFD Sender: No OFD packet to send [13:04:22]OFD Sender: No OFD packet to send [13:04:27]OFD Sender: No OFD packet to send [13:04:30]accept exits with 9 [13:04:30]New connection [13:04:30]New thread 3066543460 created [13:04:30]Thread 3066686820 joined [13:04:30]Waiting for new connection... [13:04:30] Sock 9.Parse request [13:04:30]Sock 9.Check first char [13:04:30]Sock 9.First char is OK [13:04:30]request: POST /json_proto HTTP/1.0 [13:04:30]Method: POST [13:04:30]URL: /json_proto [13:04:30]Method is POST - this is cgi request [13:04:30]url: /json_proto [13:04:30]query_string will be loaded in cgi processing [13:04:30]execute_cgi json_proto POST (null) [13:04:30]execute_cgi path=json_proto method=POST [13:04:30]POST find Content-Length [13:04:30]Host: 172.17.44.195:8080 [13:04:30]Content-Length: 683 [13:04:30]Content-Type: application/json [13:04:30] [13:04:30]POST finish read [13:04:30]Found Content-Length = 683 [13:04:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962974", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:04:30]execute_script... [13:04:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962974", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:04:30]POST & json_proto [13:04:30]process_json_proto [13:04:30]json parsed OK: [13:04:30]protocol is kg_v1.0 [13:04:30]action value=close_receipt [13:04:30]process_action close_receipt [13:04:30]cmd_close_receipt [13:04:30]MH_GetDate [13:04:30]Write to MH i2c: F0 00 00 C2 1E CF [13:04:30]Write i2c OK [13:04:30]MH_I2C_Read... [13:04:30]Read from MH i2c: F0 [13:04:30]MH_I2C_Read... [13:04:30]Read from MH i2c: F0 09 00 [13:04:30]MH_I2C_Read... [13:04:30]Read from MH i2c: F0 09 00 C2 1E 00 DF FF 14 67 82 C9 CF 66 B1 [13:04:30]GetLastDocTimeStamp 1729429445 [13:04:30]current date 1729429471 [13:04:30]FM_GetShiftState [13:04:30]SAM_PROTO_GetShiftState [13:04:30]wFMCommunicate request_size=4 [13:04:30]MH_SAM_APDU [13:04:30]CAPDU: 80 13 01 00 [13:04:30]Write to MH i2c: E2 08 00 C3 1E 80 13 01 00 00 00 00 00 5E [13:04:30]Write i2c OK [13:04:30]MH_I2C_Read... [13:04:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:30]Read from MH i2c: E2 [13:04:30]MH_I2C_Read... [13:04:30]Read from MH i2c: E2 0E 00 [13:04:30]MH_I2C_Read... [13:04:30]Read from MH i2c: E2 0E 00 C3 1E 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 78 [13:04:30]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:04:30]wFMCommunicate OK [13:04:30]SAM_PROTO_GetShiftState done [13:04:30]FM_GetShiftState done [13:04:30]opened in 1729383750 [13:04:30]opened+sec_in_day 1729470150 [13:04:30]quantity*price = 100021 [13:04:30]sum+1 = 100023 [13:04:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 300 20.10.2024 13:04 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227452 ФПД: 113510258961469 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T130431&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227452&fm=113510258961469&tin=02508201610067®Number=0000000000091685&sum=100000 [13:04:31]StoreToDocumentArchive [13:04:31]shift 533 fd 227452 [13:04:31]save to /storage/0533/doc_00227452 [13:04:31]save last doc name /storage/0533/doc_00227452 to /storage/kkm_last_doc_name [13:04:31]save OK [13:04:31]Clear old archive folders... [13:04:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:04:31]tlvbuf is B6E67AA0 [13:04:31]SAM_PROTO_ClearQueue [13:04:31]wFMCommunicate request_size=4 [13:04:31]MH_SAM_APDU [13:04:31]CAPDU: 80 09 00 00 [13:04:31]Write to MH i2c: E2 08 00 D0 1E 80 09 00 00 00 00 00 00 60 [13:04:31]Write i2c OK [13:04:31]MH_I2C_Read... [13:04:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:04:31]Read from MH i2c: E2 [13:04:31]MH_I2C_Read... [13:04:31]Read from MH i2c: E2 03 00 [13:04:31]MH_I2C_Read... [13:04:31]Read from MH i2c: E2 03 00 D0 1E 00 90 00 62 [13:04:31]RAPDU: 90 00 [13:04:31]wFMCommunicate OK [13:04:31]SAM_PROTO_ClearQueue done [13:04:31]KKMCreateOFDPacket [13:04:31]OFDProtocolAddRootSTLVToBuf [13:04:31]FM_MakeSignedData [13:04:31]FM_MakeSignedData [13:04:31]SAM_PROTO_SignData [13:04:31]wFMCommunicate request_size=4 [13:04:31]MH_SAM_APDU [13:04:31]CAPDU: 80 0D 01 02 [13:04:31]Write to MH i2c: E2 08 00 D1 1E 80 0D 01 02 00 00 00 00 68 [13:04:31]Write i2c OK [13:04:31]MH_I2C_Read... [13:04:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:04:31]Read from MH i2c: E2 [13:04:31]MH_I2C_Read... [13:04:31]Read from MH i2c: E2 03 00 [13:04:31]MH_I2C_Read... [13:04:31]Read from MH i2c: E2 03 00 D1 1E 00 90 00 63 [13:04:31]RAPDU: 90 00 [13:04:31]wFMCommunicate OK [13:04:31]wFMCommunicate request_size=255 [13:04:31]MH_SAM_APDU [13:04: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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 DF FF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7C 78 03 00 35 04 06 00 67 [13:04:31]Write to MH i2c: E2 02 01 D2 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 DF FF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7C 78 03 00 35 04 06 00 67 00 00 17 [13:04:31]Write i2c OK [13:04:31]MH_I2C_Read... [13:04:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:32]Read from MH i2c: E2 [13:04:32]MH_I2C_Read... [13:04:32]Read from MH i2c: E2 03 00 [13:04:32]MH_I2C_Read... [13:04:32]Read from MH i2c: E2 03 00 D2 1E 00 90 00 64 [13:04:32]RAPDU: 90 00 [13:04:32]wFMCommunicate OK [13:04:32]wFMCommunicate request_size=10 [13:04:32]MH_SAM_APDU [13:04:32]CAPDU: 80 0D 02 02 05 3C AA A9 EC 3D [13:04:32]Write to MH i2c: E2 0D 00 D3 1E 80 0D 02 02 05 00 3C AA A9 EC 3D 00 00 2D [13:04:32]Write i2c OK [13:04:32]MH_I2C_Read... [13:04:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:32]Read from MH i2c: E2 [13:04:32]MH_I2C_Read... [13:04:32]Read from MH i2c: E2 03 00 [13:04:32]MH_I2C_Read... [13:04:32]Read from MH i2c: E2 03 00 D3 1E 00 90 00 65 [13:04:32]RAPDU: 90 00 [13:04:32]wFMCommunicate OK [13:04:32]wFMCommunicate request_size=4 [13:04:32]MH_SAM_APDU [13:04:32]CAPDU: 80 0D 03 02 [13:04:32]Write to MH i2c: E2 08 00 D4 1E 80 0D 03 02 00 00 00 00 6D [13:04:32]Write i2c OK [13:04:32]MH_I2C_Read... [13:04:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:04:32]Read from MH i2c: E2 [13:04:32]MH_I2C_Read... [13:04:32]Read from MH i2c: E2 0B 00 [13:04:32]MH_I2C_Read... [13:04:32]Read from MH i2c: E2 0B 00 D4 1E 00 CF 98 80 8A A0 8D B9 0C 90 00 D1 [13:04:32]RAPDU: CF 98 80 8A A0 8D B9 0C 90 00 [13:04:32]wFMCommunicate OK [13:04:32]SAM_PROTO_SignData done [13:04:32]FM_MakeSignedData done [13:04:32]CreateOFDProtocolMessage [13:04:32]wFMCommunicate request_size=4 [13:04:32]MH_SAM_APDU [13:04:32]CAPDU: 80 11 00 00 [13:04:32]Write to MH i2c: E2 08 00 D5 1E 80 11 00 00 00 00 00 00 6D [13:04:32]Write i2c OK [13:04:32]MH_I2C_Read... [13:04:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:32]Read from MH i2c: E2 [13:04:32]MH_I2C_Read... [13:04:32]Read from MH i2c: E2 17 00 [13:04:32]MH_I2C_Read... [13:04:32]Read from MH i2c: E2 17 00 D5 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C4 [13:04:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:04:32]wFMCommunicate OK [13:04:32]CreateOFDProtocolMessage done [13:04:32]OFDSenderStorePacket 227452 [13:04:32]StoreOFDPacket docnum=227452 [13:04:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 A2 73 07 01 05 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 DF FF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7C 78 03 00 35 04 06 00 67 3C AA A9 EC 3D CF 98 80 8A A0 8D B9 0C [13:04:32]CheckFolder [13:04:32]dirname=/storage/ofd_packets [13:04:32]CheckFolder done [13:04:32]ProducePacketName [13:04:32]name=ofd_packets/00227452 [13:04:32]NVStorageSaveData ofd_packets/00227452 [13:04:32]File name is /storage/ofd_packets/00227452 [13:04:32]Write 301 bytes [13:04:32]NVStorageSaveData done [13:04:32]OFDSenderStorePacket done [13:04:32]KKMCreateOFDPacket done [13:04:32]NVStorageSaveData kkm_last_timestamp [13:04:32]File name is /storage/kkm_last_timestamp [13:04:32]Write 4 bytes [13:04:32]NVStorageSaveData done [13:04:32]ExternCall_PrintAddStr [13:04:32]wPrintStart [13:04:32]Write to MH i2c: 01 00 00 D6 1E F4 [13:04:32]Write i2c OK [13:04:32]MH_I2C_Read... [13:04:32]Read from MH i2c: 01 [13:04:32]MH_I2C_Read... [13:04:32]Read from MH i2c: 01 07 00 [13:04:32]MH_I2C_Read... [13:04:32]Read from MH i2c: 01 07 00 D6 1E 00 00 00 00 00 FF 0F 09 [13:04:32]RasterBufferAndPrint [13:04:32]line Счет N : (1)1962974 [13:04:32]line ИНН: 02508201610067 [13:04:32]line Контрольно-Кассовый Чек [13:04:32]line ПРОДАЖА [13:04:32]line ТРК (МРК, ГНК) : 64 [13:04:32]line Товар: 2710124500 [13:04:32]line Аи-95-К-5 [13:04:32]line 13.480 * 74.20 [13:04:32]line = 1000.22 [13:04:32]line НДС 12% НСП 1% [13:04:32]line > о реализуемом товаре [13:04:32]line ОКРУГЛЕНИЕ: -0.22 [13:04:32]line ИТОГО: 1000.00 [13:04:32]line Внесено: 1000.00 [13:04:32]line СДАЧА: 0.00 [13:04:32]line НСП 1% : 8.85 [13:04:32]line НДС 12% : 106.22 [13:04:32]line Наличными: 1000.00 [13:04:32]line Безнал.: 0.00 [13:04:32]line Место: АЗС № 133 "Партнер Нефть" [13:04:32]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:04:32]line СНО: Общий режим [13:04:32]line Чек 300 20.10.2024 13:04 [13:04:32]line Смена: 533 ФФД: 1.0 [13:04:32]line ЗНМ: 0300000091 [13:04:32]line РНМ: 0000000000091685 [13:04:32]line Версия ККМ: 001 [13:04:32]line ФМ: 0000000000871839 [13:04:32]line ФД: 227452 [13:04:32]line ФПД: 113510258961469 [13:04:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T130431&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227452&fm=113510258961469&tin=02508201610067®Number=0000000000091685&sum=100000 [13:04:32]written 0, free lines is 4095 [13:04:32]OFD Sender: Processing packet 227452 [packets to send 38, broken 37] [13:04:32]ProducePacketName [13:04:32]name=ofd_packets/00227452 [13:04:32]OFD Sender: To server: pG, [13:04:32]CommunicateWithHost lk.salyk.kg:30040 [13:04:32]ConnectInit lk.salyk.kg [13:04:32]Connected sock=10 [13:04: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 33 39 0F 01 00 00 A2 73 07 01 05 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 DF FF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7C 78 03 00 35 04 06 00 67 3C AA A9 EC 3D CF 98 80 8A A0 8D B9 0C [13:04: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 33 39 4F 00 00 00 87 66 47 00 39 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 33 39 10 04 04 00 7C 78 03 00 F4 03 04 00 DE AA 14 67 B6 04 01 00 00 D2 35 2A 04 DC FB CE EC [13:04:32]CommunicateWithHost err = 0 [13:04:32]CheckOFDResponse [13:04:32]1017 (14) - 77093643461234 [13:04:32]1041 (16) - 0000000000871839 [13:04:32]1040 (4) - 227452 [13:04:32]1012 (4) - 20.10.2024 07:01 [13:04:32]1206 (1) - 0 [13:04:32]OFD Sender: Remove packet 227452 [13:04:32]ProducePacketName [13:04:32]name=ofd_packets/00227452 [13:04:32]NVStorageDeleteData [13:04:33]Write to MH i2c: 01 00 00 00 1F 1F [13:04:33]Write i2c OK [13:04:33]MH_I2C_Read... [13:04:33]Read from MH i2c: 01 [13:04:33]MH_I2C_Read... [13:04:33]Read from MH i2c: 01 07 00 [13:04:33]MH_I2C_Read... [13:04:33]Read from MH i2c: 01 07 00 00 1F 00 00 00 00 00 04 0D 37 [13:04:33]RasterBufferAndPrint [13:04:33]line [13:04:33]line [13:04:33]line [13:04:33]line [13:04:33]line [13:04:33]written 0, free lines is 3338 [13:04:33]process_action close_receipt done [13:04:33]requested_data is exist [13:04:33]produce_requested_data [13:04:33]requested_item fm.sn is exist - process it [13:04:33]wFMCommunicate request_size=4 [13:04:33]MH_SAM_APDU [13:04:33]CAPDU: 80 11 00 00 [13:04:33]Write to MH i2c: E2 08 00 07 1F 80 11 00 00 00 00 00 00 A0 [13:04:33]Write i2c OK [13:04:33]MH_I2C_Read... [13:04:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:33]Read from MH i2c: E2 [13:04:33]MH_I2C_Read... [13:04:33]Read from MH i2c: E2 17 00 [13:04:33]MH_I2C_Read... [13:04:33]Read from MH i2c: E2 17 00 07 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F7 [13:04:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:04:33]wFMCommunicate OK [13:04:33]requested_item fd.num is exist - process it [13:04:33]SAM_PROTO_GetFieldsCounters [13:04:33]wFMCommunicate request_size=4 [13:04:33]MH_SAM_APDU [13:04:33]CAPDU: 80 13 00 00 [13:04:33]Write to MH i2c: E2 08 00 08 1F 80 13 00 00 00 00 00 00 A3 [13:04:33]Write i2c OK [13:04:33]MH_I2C_Read... [13:04:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:04:33]Read from MH i2c: E2 [13:04:33]MH_I2C_Read... [13:04:33]Read from MH i2c: E2 62 00 [13:04:33]MH_I2C_Read... [13:04:33]Read from MH i2c: E2 62 00 08 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 7C 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 61 [13:04: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 7C 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:04:33]wFMCommunicate OK [13:04:33]SAM_PROTO_GetFieldsCounters done [13:04:33]requested_item shift.num is exist - process it [13:04:33]requested_item shift.opened is exist - process it [13:04:33]req_shift_opened [13:04:33]FM_GetShiftState [13:04:33]SAM_PROTO_GetShiftState [13:04:33]wFMCommunicate request_size=4 [13:04:33]MH_SAM_APDU [13:04:33]CAPDU: 80 13 01 00 [13:04:33]Write to MH i2c: E2 08 00 09 1F 80 13 01 00 00 00 00 00 A5 [13:04:33]Write i2c OK [13:04:33]MH_I2C_Read... [13:04:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:33]Read from MH i2c: E2 [13:04:33]MH_I2C_Read... [13:04:33]Read from MH i2c: E2 0E 00 [13:04:33]MH_I2C_Read... [13:04:33]Read from MH i2c: E2 0E 00 09 1F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 BF [13:04:33]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:04:33]wFMCommunicate OK [13:04:33]SAM_PROTO_GetShiftState done [13:04:33]FM_GetShiftState done [13:04:33]req_shift_opened done [13:04:33]requested_item shift.open_date is exist - process it [13:04:33]req_shift_open_date [13:04:33]req_shift_open_date done [13:04:33]produce_requested_data done [13:04:33]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227452,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [13:04:33]process_action_free close_receipt [13:04:33]json_value_free [13:04:33]json_value_free done [13:04:33]process_json_proto returns [13:04:33]Send response to host [13:04:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227452,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [13:04:33]free response buf [13:04:33]execute_script done [13:04:33]execute_script returns [13:04:33]free content buf [13:04:33]Sock 9.Close socket [13:04:33]Sock 9.Thread stoped [13:04:33]OFD Sender: No OFD packet to send [13:04:38]OFD Sender: No OFD packet to send [13:04:43]OFD Sender: No OFD packet to send [13:04:48]OFD Sender: No OFD packet to send [13:04:53]OFD Sender: No OFD packet to send [13:04:57]accept exits with 8 [13:04:57]New connection [13:04:57]New thread 3066686820 created [13:04:57]Thread 3066543460 joined [13:04:57]Waiting for new connection... [13:04:57] Sock 8.Parse request [13:04:57]Sock 8.Check first char [13:04:57]Sock 8.First char is OK [13:04:57]request: POST /json_proto HTTP/1.0 [13:04:57]Method: POST [13:04:57]URL: /json_proto [13:04:57]Method is POST - this is cgi request [13:04:57]url: /json_proto [13:04:57]query_string will be loaded in cgi processing [13:04:57]execute_cgi json_proto POST (null) [13:04:57]execute_cgi path=json_proto method=POST [13:04:57]POST find Content-Length [13:04:57]Host: 172.17.44.195:8080 [13:04:57]Content-Length: 680 [13:04:57]Content-Type: application/json [13:04:57] [13:04:57]POST finish read [13:04:57]Found Content-Length = 680 [13:04:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962975", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:04:57]execute_script... [13:04:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962975", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:04:57]POST & json_proto [13:04:57]process_json_proto [13:04:57]json parsed OK: [13:04:57]protocol is kg_v1.0 [13:04:57]action value=close_receipt [13:04:57]process_action close_receipt [13:04:57]cmd_close_receipt [13:04:57]MH_GetDate [13:04:57]Write to MH i2c: F0 00 00 0A 1F 18 [13:04:57]Write i2c OK [13:04:57]MH_I2C_Read... [13:04:57]Read from MH i2c: F0 [13:04:57]MH_I2C_Read... [13:04:57]Read from MH i2c: F0 09 00 [13:04:57]MH_I2C_Read... [13:04:57]Read from MH i2c: F0 09 00 0A 1F 00 FA FF 14 67 82 C9 CF 66 15 [13:04:57]GetLastDocTimeStamp 1729429471 [13:04:57]current date 1729429498 [13:04:57]FM_GetShiftState [13:04:57]SAM_PROTO_GetShiftState [13:04:57]wFMCommunicate request_size=4 [13:04:57]MH_SAM_APDU [13:04:57]CAPDU: 80 13 01 00 [13:04:57]Write to MH i2c: E2 08 00 0B 1F 80 13 01 00 00 00 00 00 A7 [13:04:57]Write i2c OK [13:04:57]MH_I2C_Read... [13:04:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:57]Read from MH i2c: E2 [13:04:57]MH_I2C_Read... [13:04:57]Read from MH i2c: E2 0E 00 [13:04:57]MH_I2C_Read... [13:04:57]Read from MH i2c: E2 0E 00 0B 1F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 C1 [13:04:57]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:04:57]wFMCommunicate OK [13:04:57]SAM_PROTO_GetShiftState done [13:04:57]FM_GetShiftState done [13:04:57]opened in 1729383750 [13:04:57]opened+sec_in_day 1729470150 [13:04:57]quantity*price = 100050 [13:04:57]sum+1 = 100052 [13:04:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 301 20.10.2024 13:04 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227453 ФПД: 225164941016853 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T130458&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227453&fm=225164941016853&tin=02508201610067®Number=0000000000091685&sum=100000 [13:04:58]StoreToDocumentArchive [13:04:58]shift 533 fd 227453 [13:04:58]save to /storage/0533/doc_00227453 [13:04:58]save last doc name /storage/0533/doc_00227453 to /storage/kkm_last_doc_name [13:04:58]save OK [13:04:58]Clear old archive folders... [13:04:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:04:58]tlvbuf is B6E99AB0 [13:04:58]SAM_PROTO_ClearQueue [13:04:58]wFMCommunicate request_size=4 [13:04:58]MH_SAM_APDU [13:04:58]CAPDU: 80 09 00 00 [13:04:58]Write to MH i2c: E2 08 00 18 1F 80 09 00 00 00 00 00 00 A9 [13:04:58]Write i2c OK [13:04:58]MH_I2C_Read... [13:04:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:04:58]Read from MH i2c: E2 [13:04:58]MH_I2C_Read... [13:04:58]Read from MH i2c: E2 03 00 [13:04:58]MH_I2C_Read... [13:04:58]Read from MH i2c: E2 03 00 18 1F 00 90 00 AB [13:04:58]RAPDU: 90 00 [13:04:58]wFMCommunicate OK [13:04:58]SAM_PROTO_ClearQueue done [13:04:58]KKMCreateOFDPacket [13:04:58]OFDProtocolAddRootSTLVToBuf [13:04:58]FM_MakeSignedData [13:04:58]FM_MakeSignedData [13:04:58]SAM_PROTO_SignData [13:04:58]wFMCommunicate request_size=4 [13:04:58]MH_SAM_APDU [13:04:58]CAPDU: 80 0D 01 02 [13:04:58]Write to MH i2c: E2 08 00 19 1F 80 0D 01 02 00 00 00 00 B1 [13:04:58]Write i2c OK [13:04:58]MH_I2C_Read... [13:04:58]OFD Sender: No OFD packet to send [13:04:58]Read from MH i2c: E2 [13:04:58]MH_I2C_Read... [13:04:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:04:58]Read from MH i2c: E2 03 00 [13:04:58]MH_I2C_Read... [13:04:58]Read from MH i2c: E2 03 00 19 1F 00 90 00 AC [13:04:58]RAPDU: 90 00 [13:04:58]wFMCommunicate OK [13:04:58]wFMCommunicate request_size=255 [13:04:58]MH_SAM_APDU [13:04: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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 FA FF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7D 78 03 00 35 04 06 00 CC C9 4C 53 [13:04:58]Write to MH i2c: E2 02 01 1A 1F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 FA FF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7D 78 03 00 35 04 06 00 CC C9 4C 53 00 00 23 [13:04:58]Write i2c OK [13:04:58]MH_I2C_Read... [13:04:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:58]Read from MH i2c: E2 [13:04:58]MH_I2C_Read... [13:04:58]Read from MH i2c: E2 03 00 [13:04:58]MH_I2C_Read... [13:04:58]Read from MH i2c: E2 03 00 1A 1F 00 90 00 AD [13:04:58]RAPDU: 90 00 [13:04:58]wFMCommunicate OK [13:04:58]wFMCommunicate request_size=7 [13:04:58]MH_SAM_APDU [13:04:58]CAPDU: 80 0D 02 02 02 3F 15 [13:04:58]Write to MH i2c: E2 0A 00 1B 1F 80 0D 02 02 02 00 3F 15 00 00 0C [13:04:58]Write i2c OK [13:04:58]MH_I2C_Read... [13:04:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:58]Read from MH i2c: E2 [13:04:58]MH_I2C_Read... [13:04:58]Read from MH i2c: E2 03 00 [13:04:58]MH_I2C_Read... [13:04:58]Read from MH i2c: E2 03 00 1B 1F 00 90 00 AE [13:04:58]RAPDU: 90 00 [13:04:58]wFMCommunicate OK [13:04:58]wFMCommunicate request_size=4 [13:04:58]MH_SAM_APDU [13:04:58]CAPDU: 80 0D 03 02 [13:04:58]Write to MH i2c: E2 08 00 1C 1F 80 0D 03 02 00 00 00 00 B6 [13:04:58]Write i2c OK [13:04:58]MH_I2C_Read... [13:04:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:04:58]Read from MH i2c: E2 [13:04:58]MH_I2C_Read... [13:04:58]Read from MH i2c: E2 0B 00 [13:04:58]MH_I2C_Read... [13:04:58]Read from MH i2c: E2 0B 00 1C 1F 00 33 DC AA 25 29 85 D6 D6 90 00 EF [13:04:58]RAPDU: 33 DC AA 25 29 85 D6 D6 90 00 [13:04:58]wFMCommunicate OK [13:04:58]SAM_PROTO_SignData done [13:04:58]FM_MakeSignedData done [13:04:58]CreateOFDProtocolMessage [13:04:58]wFMCommunicate request_size=4 [13:04:58]MH_SAM_APDU [13:04:58]CAPDU: 80 11 00 00 [13:04:58]Write to MH i2c: E2 08 00 1D 1F 80 11 00 00 00 00 00 00 B6 [13:04:58]Write i2c OK [13:04:58]MH_I2C_Read... [13:04:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:58]Read from MH i2c: E2 [13:04:58]MH_I2C_Read... [13:04:58]Read from MH i2c: E2 17 00 [13:04:58]MH_I2C_Read... [13:04:58]Read from MH i2c: E2 17 00 1D 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 0D [13:04:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:04:58]wFMCommunicate OK [13:04:58]CreateOFDProtocolMessage done [13:04:58]OFDSenderStorePacket 227453 [13:04:58]StoreOFDPacket docnum=227453 [13:04:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 08 BF 04 01 70 8D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 FA FF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7D 78 03 00 35 04 06 00 CC C9 4C 53 3F 15 33 DC AA 25 29 85 D6 D6 [13:04:58]CheckFolder [13:04:58]dirname=/storage/ofd_packets [13:04:58]CheckFolder done [13:04:58]ProducePacketName [13:04:58]name=ofd_packets/00227453 [13:04:58]NVStorageSaveData ofd_packets/00227453 [13:04:58]File name is /storage/ofd_packets/00227453 [13:04:58]Write 298 bytes [13:04:58]NVStorageSaveData done [13:04:58]OFDSenderStorePacket done [13:04:58]KKMCreateOFDPacket done [13:04:58]NVStorageSaveData kkm_last_timestamp [13:04:58]File name is /storage/kkm_last_timestamp [13:04:58]Write 4 bytes [13:04:58]NVStorageSaveData done [13:04:58]ExternCall_PrintAddStr [13:04:58]wPrintStart [13:04:58]Write to MH i2c: 01 00 00 1E 1F 3D [13:04:58]Write i2c OK [13:04:58]MH_I2C_Read... [13:04:58]Read from MH i2c: 01 [13:04:58]MH_I2C_Read... [13:04:58]Read from MH i2c: 01 07 00 [13:04:58]MH_I2C_Read... [13:04:58]Read from MH i2c: 01 07 00 1E 1F 00 00 00 00 00 FF 0F 52 [13:04:58]RasterBufferAndPrint [13:04:58]line Счет N : (1)1962975 [13:04:58]line ИНН: 02508201610067 [13:04:58]line Контрольно-Кассовый Чек [13:04:58]line ПРОДАЖА [13:04:58]line ТРК (МРК, ГНК) : 51 [13:04:58]line Товар: 2710194210 [13:04:58]line ДТ-К-5 [13:04:58]line 13.130 * 76.20 [13:04:58]line = 1000.51 [13:04:58]line НДС 12% НСП 1% [13:04:58]line > о реализуемом товаре [13:04:58]line ОКРУГЛЕНИЕ: -0.51 [13:04:58]line ИТОГО: 1000.00 [13:04:58]line Внесено: 1000.00 [13:04:58]line СДАЧА: 0.00 [13:04:58]line НСП 1% : 8.85 [13:04:58]line НДС 12% : 106.25 [13:04:58]line Наличными: 1000.00 [13:04:58]line Безнал.: 0.00 [13:04:58]line Место: АЗС № 133 "Партнер Нефть" [13:04:58]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:04:58]line СНО: Общий режим [13:04:58]line Чек 301 20.10.2024 13:04 [13:04:58]line Смена: 533 ФФД: 1.0 [13:04:58]line ЗНМ: 0300000091 [13:04:58]line РНМ: 0000000000091685 [13:04:58]line Версия ККМ: 001 [13:04:58]line ФМ: 0000000000871839 [13:04:58]line ФД: 227453 [13:04:58]line ФПД: 225164941016853 [13:04:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T130458&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227453&fm=225164941016853&tin=02508201610067®Number=0000000000091685&sum=100000 [13:04:59]OFD Sender: Processing packet 227453 [packets to send 38, broken 37] [13:04:59]ProducePacketName [13:04:59]name=ofd_packets/00227453 [13:04:59]OFD Sender: To server: pG, [13:04:59]CommunicateWithHost lk.salyk.kg:30040 [13:04:59]ConnectInit lk.salyk.kg [13:04:59]written 0, free lines is 4095 [13:04:59]Connected sock=10 [13:04:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 08 BF 04 01 70 8D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 FA FF 14 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7D 78 03 00 35 04 06 00 CC C9 4C 53 3F 15 33 DC AA 25 29 85 D6 D6 [13:04:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 14 C3 47 00 71 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7D 78 03 00 F4 03 04 00 F9 AA 14 67 B6 04 01 00 00 36 D5 59 15 24 3D 0B 0A [13:04:59]CommunicateWithHost err = 0 [13:04:59]CheckOFDResponse [13:04:59]1017 (14) - 77093643461234 [13:04:59]1041 (16) - 0000000000871839 [13:04:59]1040 (4) - 227453 [13:04:59]1012 (4) - 20.10.2024 07:02 [13:04:59]1206 (1) - 0 [13:04:59]OFD Sender: Remove packet 227453 [13:04:59]ProducePacketName [13:04:59]name=ofd_packets/00227453 [13:04:59]NVStorageDeleteData [13:04:59]Write to MH i2c: 01 00 00 48 1F 67 [13:04:59]Write i2c OK [13:04:59]MH_I2C_Read... [13:04:59]Read from MH i2c: 01 [13:04:59]MH_I2C_Read... [13:04:59]Read from MH i2c: 01 07 00 [13:04:59]MH_I2C_Read... [13:04:59]Read from MH i2c: 01 07 00 48 1F 00 00 00 00 00 01 0D 7C [13:04:59]RasterBufferAndPrint [13:04:59]line [13:04:59]line [13:04:59]line [13:04:59]line [13:04:59]line [13:04:59]written 0, free lines is 3335 [13:04:59]process_action close_receipt done [13:04:59]requested_data is exist [13:04:59]produce_requested_data [13:04:59]requested_item fm.sn is exist - process it [13:04:59]wFMCommunicate request_size=4 [13:04:59]MH_SAM_APDU [13:04:59]CAPDU: 80 11 00 00 [13:04:59]Write to MH i2c: E2 08 00 4F 1F 80 11 00 00 00 00 00 00 E8 [13:04:59]Write i2c OK [13:04:59]MH_I2C_Read... [13:04:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:59]Read from MH i2c: E2 [13:04:59]MH_I2C_Read... [13:04:59]Read from MH i2c: E2 17 00 [13:04:59]MH_I2C_Read... [13:04:59]Read from MH i2c: E2 17 00 4F 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 3F [13:04:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:04:59]wFMCommunicate OK [13:04:59]requested_item fd.num is exist - process it [13:04:59]SAM_PROTO_GetFieldsCounters [13:04:59]wFMCommunicate request_size=4 [13:04:59]MH_SAM_APDU [13:04:59]CAPDU: 80 13 00 00 [13:04:59]Write to MH i2c: E2 08 00 50 1F 80 13 00 00 00 00 00 00 EB [13:04:59]Write i2c OK [13:04:59]MH_I2C_Read... [13:04:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:04:59]Read from MH i2c: E2 [13:04:59]MH_I2C_Read... [13:04:59]Read from MH i2c: E2 62 00 [13:04:59]MH_I2C_Read... [13:04:59]Read from MH i2c: E2 62 00 50 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 7D 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 2D 01 00 00 5E 04 04 00 2D 01 00 00 57 04 04 00 2E 01 00 00 19 04 04 00 00 00 00 00 90 00 AD [13:04: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 7D 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 2D 01 00 00 5E 04 04 00 2D 01 00 00 57 04 04 00 2E 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:04:59]wFMCommunicate OK [13:04:59]SAM_PROTO_GetFieldsCounters done [13:04:59]requested_item shift.num is exist - process it [13:04:59]requested_item shift.opened is exist - process it [13:04:59]req_shift_opened [13:04:59]FM_GetShiftState [13:04:59]SAM_PROTO_GetShiftState [13:04:59]wFMCommunicate request_size=4 [13:04:59]MH_SAM_APDU [13:04:59]CAPDU: 80 13 01 00 [13:04:59]Write to MH i2c: E2 08 00 51 1F 80 13 01 00 00 00 00 00 ED [13:04:59]Write i2c OK [13:04:59]MH_I2C_Read... [13:05:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:00]Read from MH i2c: E2 [13:05:00]MH_I2C_Read... [13:05:00]Read from MH i2c: E2 0E 00 [13:05:00]MH_I2C_Read... [13:05:00]Read from MH i2c: E2 0E 00 51 1F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 07 [13:05:00]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:05:00]wFMCommunicate OK [13:05:00]SAM_PROTO_GetShiftState done [13:05:00]FM_GetShiftState done [13:05:00]req_shift_opened done [13:05:00]requested_item shift.open_date is exist - process it [13:05:00]req_shift_open_date [13:05:00]req_shift_open_date done [13:05:00]produce_requested_data done [13:05:00]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227453,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [13:05:00]process_action_free close_receipt [13:05:00]json_value_free [13:05:00]json_value_free done [13:05:00]process_json_proto returns [13:05:00]Send response to host [13:05:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227453,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [13:05:00]free response buf [13:05:00]execute_script done [13:05:00]execute_script returns [13:05:00]free content buf [13:05:00]Sock 8.Close socket [13:05:00]Sock 8.Thread stoped [13:05:00]OFD Sender: No OFD packet to send [13:05:05]OFD Sender: No OFD packet to send [13:05:10]OFD Sender: No OFD packet to send [13:05:15]OFD Sender: No OFD packet to send [13:05:20]OFD Sender: No OFD packet to send [13:05:22]accept exits with 9 [13:05:22]New connection [13:05:22]New thread 3066543460 created [13:05:22]Thread 3066686820 joined [13:05:22]Waiting for new connection... [13:05:22] Sock 9.Parse request [13:05:22]Sock 9.Check first char [13:05:22]Sock 9.First char is OK [13:05:22]request: POST /json_proto HTTP/1.0 [13:05:22]Method: POST [13:05:22]URL: /json_proto [13:05:22]Method is POST - this is cgi request [13:05:22]url: /json_proto [13:05:22]query_string will be loaded in cgi processing [13:05:22]execute_cgi json_proto POST (null) [13:05:22]execute_cgi path=json_proto method=POST [13:05:22]POST find Content-Length [13:05:22]Host: 172.17.44.195:8080 [13:05:22]Content-Length: 683 [13:05:22]Content-Type: application/json [13:05:22] [13:05:22]POST finish read [13:05:22]Found Content-Length = 683 [13:05:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962976", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:05:22]execute_script... [13:05:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962976", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:05:22]POST & json_proto [13:05:22]process_json_proto [13:05:22]json parsed OK: [13:05:22]protocol is kg_v1.0 [13:05:22]action value=close_receipt [13:05:22]process_action close_receipt [13:05:22]cmd_close_receipt [13:05:22]MH_GetDate [13:05:22]Write to MH i2c: F0 00 00 52 1F 60 [13:05:22]Write i2c OK [13:05:22]MH_I2C_Read... [13:05:22]Read from MH i2c: F0 [13:05:22]MH_I2C_Read... [13:05:22]Read from MH i2c: F0 09 00 [13:05:22]MH_I2C_Read... [13:05:22]Read from MH i2c: F0 09 00 52 1F 00 13 00 15 67 82 C9 CF 66 78 [13:05:22]GetLastDocTimeStamp 1729429498 [13:05:22]current date 1729429523 [13:05:22]FM_GetShiftState [13:05:22]SAM_PROTO_GetShiftState [13:05:22]wFMCommunicate request_size=4 [13:05:22]MH_SAM_APDU [13:05:22]CAPDU: 80 13 01 00 [13:05:22]Write to MH i2c: E2 08 00 53 1F 80 13 01 00 00 00 00 00 EF [13:05:22]Write i2c OK [13:05:22]MH_I2C_Read... [13:05:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:22]Read from MH i2c: E2 [13:05:22]MH_I2C_Read... [13:05:22]Read from MH i2c: E2 0E 00 [13:05:22]MH_I2C_Read... [13:05:22]Read from MH i2c: E2 0E 00 53 1F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 09 [13:05:22]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:05:22]wFMCommunicate OK [13:05:22]SAM_PROTO_GetShiftState done [13:05:22]FM_GetShiftState done [13:05:22]opened in 1729383750 [13:05:22]opened+sec_in_day 1729470150 [13:05:22]quantity*price = 100021 [13:05:22]sum+1 = 100023 [13:05:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 302 20.10.2024 13:05 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227454 ФПД: 74147168460178 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T130523&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227454&fm=74147168460178&tin=02508201610067®Number=0000000000091685&sum=100000 [13:05:23]StoreToDocumentArchive [13:05:23]shift 533 fd 227454 [13:05:23]save to /storage/0533/doc_00227454 [13:05:23]save last doc name /storage/0533/doc_00227454 to /storage/kkm_last_doc_name [13:05:23]save OK [13:05:23]Clear old archive folders... [13:05:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:05:23]tlvbuf is 0195DBF0 [13:05:23]SAM_PROTO_ClearQueue [13:05:23]wFMCommunicate request_size=4 [13:05:23]MH_SAM_APDU [13:05:23]CAPDU: 80 09 00 00 [13:05:23]Write to MH i2c: E2 08 00 60 1F 80 09 00 00 00 00 00 00 F1 [13:05:23]Write i2c OK [13:05:23]MH_I2C_Read... [13:05:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:05:23]Read from MH i2c: E2 [13:05:23]MH_I2C_Read... [13:05:23]Read from MH i2c: E2 03 00 [13:05:23]MH_I2C_Read... [13:05:23]Read from MH i2c: E2 03 00 60 1F 00 90 00 F3 [13:05:23]RAPDU: 90 00 [13:05:23]wFMCommunicate OK [13:05:23]SAM_PROTO_ClearQueue done [13:05:23]KKMCreateOFDPacket [13:05:23]OFDProtocolAddRootSTLVToBuf [13:05:23]FM_MakeSignedData [13:05:23]FM_MakeSignedData [13:05:23]SAM_PROTO_SignData [13:05:23]wFMCommunicate request_size=4 [13:05:23]MH_SAM_APDU [13:05:23]CAPDU: 80 0D 01 02 [13:05:23]Write to MH i2c: E2 08 00 61 1F 80 0D 01 02 00 00 00 00 F9 [13:05:23]Write i2c OK [13:05:23]MH_I2C_Read... [13:05:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:05:23]Read from MH i2c: E2 [13:05:23]MH_I2C_Read... [13:05:23]Read from MH i2c: E2 03 00 [13:05:23]MH_I2C_Read... [13:05:23]Read from MH i2c: E2 03 00 61 1F 00 90 00 F4 [13:05:23]RAPDU: 90 00 [13:05:23]wFMCommunicate OK [13:05:23]wFMCommunicate request_size=255 [13:05:23]MH_SAM_APDU [13:05:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 13 00 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7E 78 03 00 35 04 06 00 43 [13:05:23]Write to MH i2c: E2 02 01 62 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 13 00 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7E 78 03 00 35 04 06 00 43 00 00 BE [13:05:23]Write i2c OK [13:05:23]MH_I2C_Read... [13:05:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:23]Read from MH i2c: E2 [13:05:23]MH_I2C_Read... [13:05:23]Read from MH i2c: E2 03 00 [13:05:23]MH_I2C_Read... [13:05:23]Read from MH i2c: E2 03 00 62 1F 00 90 00 F5 [13:05:23]RAPDU: 90 00 [13:05:23]wFMCommunicate OK [13:05:23]wFMCommunicate request_size=10 [13:05:23]MH_SAM_APDU [13:05:23]CAPDU: 80 0D 02 02 05 6F BB A3 1D 92 [13:05:23]Write to MH i2c: E2 0D 00 63 1F 80 0D 02 02 05 00 6F BB A3 1D 92 00 00 82 [13:05:23]Write i2c OK [13:05:23]MH_I2C_Read... [13:05:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:23]Read from MH i2c: E2 [13:05:23]MH_I2C_Read... [13:05:23]Read from MH i2c: E2 03 00 [13:05:23]MH_I2C_Read... [13:05:23]Read from MH i2c: E2 03 00 63 1F 00 90 00 F6 [13:05:23]RAPDU: 90 00 [13:05:23]wFMCommunicate OK [13:05:23]wFMCommunicate request_size=4 [13:05:23]MH_SAM_APDU [13:05:23]CAPDU: 80 0D 03 02 [13:05:23]Write to MH i2c: E2 08 00 64 1F 80 0D 03 02 00 00 00 00 FE [13:05:23]Write i2c OK [13:05:23]MH_I2C_Read... [13:05:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:05:23]Read from MH i2c: E2 [13:05:23]MH_I2C_Read... [13:05:23]Read from MH i2c: E2 0B 00 [13:05:23]MH_I2C_Read... [13:05:23]Read from MH i2c: E2 0B 00 64 1F 00 8B 94 4D 71 70 1B 86 69 90 00 56 [13:05:23]RAPDU: 8B 94 4D 71 70 1B 86 69 90 00 [13:05:23]wFMCommunicate OK [13:05:23]SAM_PROTO_SignData done [13:05:23]FM_MakeSignedData done [13:05:23]CreateOFDProtocolMessage [13:05:23]wFMCommunicate request_size=4 [13:05:23]MH_SAM_APDU [13:05:23]CAPDU: 80 11 00 00 [13:05:23]Write to MH i2c: E2 08 00 65 1F 80 11 00 00 00 00 00 00 FE [13:05:23]Write i2c OK [13:05:23]MH_I2C_Read... [13:05:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:23]Read from MH i2c: E2 [13:05:23]MH_I2C_Read... [13:05:23]Read from MH i2c: E2 17 00 [13:05:23]MH_I2C_Read... [13:05:23]Read from MH i2c: E2 17 00 65 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 55 [13:05:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:05:23]wFMCommunicate OK [13:05:23]CreateOFDProtocolMessage done [13:05:23]OFDSenderStorePacket 227454 [13:05:23]StoreOFDPacket docnum=227454 [13:05:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 D2 D8 07 01 0B 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 13 00 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7E 78 03 00 35 04 06 00 43 6F BB A3 1D 92 8B 94 4D 71 70 1B 86 69 [13:05:23]CheckFolder [13:05:23]dirname=/storage/ofd_packets [13:05:23]CheckFolder done [13:05:23]ProducePacketName [13:05:23]name=ofd_packets/00227454 [13:05:23]NVStorageSaveData ofd_packets/00227454 [13:05:23]File name is /storage/ofd_packets/00227454 [13:05:23]Write 301 bytes [13:05:23]NVStorageSaveData done [13:05:23]OFDSenderStorePacket done [13:05:23]KKMCreateOFDPacket done [13:05:23]NVStorageSaveData kkm_last_timestamp [13:05:23]File name is /storage/kkm_last_timestamp [13:05:23]Write 4 bytes [13:05:23]NVStorageSaveData done [13:05:23]ExternCall_PrintAddStr [13:05:23]wPrintStart [13:05:23]Write to MH i2c: 01 00 00 66 1F 85 [13:05:23]Write i2c OK [13:05:23]MH_I2C_Read... [13:05:23]Read from MH i2c: 01 [13:05:23]MH_I2C_Read... [13:05:23]Read from MH i2c: 01 07 00 [13:05:23]MH_I2C_Read... [13:05:23]Read from MH i2c: 01 07 00 66 1F 00 00 00 00 00 FF 0F 9A [13:05:23]RasterBufferAndPrint [13:05:23]line Счет N : (1)1962976 [13:05:23]line ИНН: 02508201610067 [13:05:23]line Контрольно-Кассовый Чек [13:05:23]line ПРОДАЖА [13:05:23]line ТРК (МРК, ГНК) : 44 [13:05:23]line Товар: 2710124500 [13:05:23]line Аи-95-К-5 [13:05:23]line 13.480 * 74.20 [13:05:23]line = 1000.22 [13:05:23]line НДС 12% НСП 1% [13:05:23]line > о реализуемом товаре [13:05:23]line ОКРУГЛЕНИЕ: -0.22 [13:05:23]line ИТОГО: 1000.00 [13:05:24]line Внесено: 1000.00 [13:05:24]line СДАЧА: 0.00 [13:05:24]line НСП 1% : 8.85 [13:05:24]line НДС 12% : 106.22 [13:05:24]line Наличными: 1000.00 [13:05:24]line Безнал.: 0.00 [13:05:24]line Место: АЗС № 133 "Партнер Нефть" [13:05:24]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:05:24]line СНО: Общий режим [13:05:24]line Чек 302 20.10.2024 13:05 [13:05:24]line Смена: 533 ФФД: 1.0 [13:05:24]line ЗНМ: 0300000091 [13:05:24]line РНМ: 0000000000091685 [13:05:24]line Версия ККМ: 001 [13:05:24]line ФМ: 0000000000871839 [13:05:24]line ФД: 227454 [13:05:24]line ФПД: 74147168460178 [13:05:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T130523&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227454&fm=74147168460178&tin=02508201610067®Number=0000000000091685&sum=100000 [13:05:24]written 0, free lines is 4095 [13:05:24]OFD Sender: Processing packet 227454 [packets to send 38, broken 37] [13:05:24]ProducePacketName [13:05:24]name=ofd_packets/00227454 [13:05:24]OFD Sender: To server: pG, [13:05:24]CommunicateWithHost lk.salyk.kg:30040 [13:05:24]ConnectInit lk.salyk.kg [13:05:24]Connected sock=10 [13:05:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 D2 D8 07 01 0B 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 13 00 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7E 78 03 00 35 04 06 00 43 6F BB A3 1D 92 8B 94 4D 71 70 1B 86 69 [13:05:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 25 26 47 00 CD 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 33 39 10 04 04 00 7E 78 03 00 F4 03 04 00 12 AB 14 67 B6 04 01 00 00 C0 96 0B 5D 20 AA 34 F3 [13:05:24]CommunicateWithHost err = 0 [13:05:24]CheckOFDResponse [13:05:24]1017 (14) - 77093643461234 [13:05:24]1041 (16) - 0000000000871839 [13:05:24]1040 (4) - 227454 [13:05:24]1012 (4) - 20.10.2024 07:02 [13:05:24]1206 (1) - 0 [13:05:24]OFD Sender: Remove packet 227454 [13:05:24]ProducePacketName [13:05:24]name=ofd_packets/00227454 [13:05:24]NVStorageDeleteData [13:05:24]Write to MH i2c: 01 00 00 90 1F AF [13:05:24]Write i2c OK [13:05:24]MH_I2C_Read... [13:05:24]Read from MH i2c: 01 [13:05:24]MH_I2C_Read... [13:05:24]Read from MH i2c: 01 07 00 [13:05:24]MH_I2C_Read... [13:05:24]Read from MH i2c: 01 07 00 90 1F 00 00 00 00 00 11 0D D4 [13:05:24]RasterBufferAndPrint [13:05:24]line [13:05:24]line [13:05:24]line [13:05:24]line [13:05:24]line [13:05:24]written 0, free lines is 3351 [13:05:24]process_action close_receipt done [13:05:24]requested_data is exist [13:05:24]produce_requested_data [13:05:24]requested_item fm.sn is exist - process it [13:05:24]wFMCommunicate request_size=4 [13:05:24]MH_SAM_APDU [13:05:24]CAPDU: 80 11 00 00 [13:05:24]Write to MH i2c: E2 08 00 97 1F 80 11 00 00 00 00 00 00 30 [13:05:24]Write i2c OK [13:05:24]MH_I2C_Read... [13:05:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:24]Read from MH i2c: E2 [13:05:24]MH_I2C_Read... [13:05:24]Read from MH i2c: E2 17 00 [13:05:24]MH_I2C_Read... [13:05:24]Read from MH i2c: E2 17 00 97 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 87 [13:05:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:05:24]wFMCommunicate OK [13:05:24]requested_item fd.num is exist - process it [13:05:24]SAM_PROTO_GetFieldsCounters [13:05:24]wFMCommunicate request_size=4 [13:05:24]MH_SAM_APDU [13:05:24]CAPDU: 80 13 00 00 [13:05:24]Write to MH i2c: E2 08 00 98 1F 80 13 00 00 00 00 00 00 33 [13:05:24]Write i2c OK [13:05:24]MH_I2C_Read... [13:05:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:05:24]Read from MH i2c: E2 [13:05:24]MH_I2C_Read... [13:05:24]Read from MH i2c: E2 62 00 [13:05:24]MH_I2C_Read... [13:05:24]Read from MH i2c: E2 62 00 98 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 7E 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 2E 01 00 00 5E 04 04 00 2E 01 00 00 57 04 04 00 2F 01 00 00 19 04 04 00 00 00 00 00 90 00 F9 [13:05:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 7E 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 2E 01 00 00 5E 04 04 00 2E 01 00 00 57 04 04 00 2F 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:05:24]wFMCommunicate OK [13:05:24]SAM_PROTO_GetFieldsCounters done [13:05:24]requested_item shift.num is exist - process it [13:05:24]requested_item shift.opened is exist - process it [13:05:24]req_shift_opened [13:05:24]FM_GetShiftState [13:05:24]SAM_PROTO_GetShiftState [13:05:24]wFMCommunicate request_size=4 [13:05:24]MH_SAM_APDU [13:05:24]CAPDU: 80 13 01 00 [13:05:24]Write to MH i2c: E2 08 00 99 1F 80 13 01 00 00 00 00 00 35 [13:05:24]Write i2c OK [13:05:24]MH_I2C_Read... [13:05:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:24]Read from MH i2c: E2 [13:05:24]MH_I2C_Read... [13:05:24]Read from MH i2c: E2 0E 00 [13:05:24]MH_I2C_Read... [13:05:24]Read from MH i2c: E2 0E 00 99 1F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 4F [13:05:24]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:05:24]wFMCommunicate OK [13:05:24]SAM_PROTO_GetShiftState done [13:05:24]FM_GetShiftState done [13:05:24]req_shift_opened done [13:05:24]requested_item shift.open_date is exist - process it [13:05:24]req_shift_open_date [13:05:24]req_shift_open_date done [13:05:24]produce_requested_data done [13:05:24]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227454,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [13:05:24]process_action_free close_receipt [13:05:24]json_value_free [13:05:24]json_value_free done [13:05:24]process_json_proto returns [13:05:24]Send response to host [13:05:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227454,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [13:05:24]free response buf [13:05:24]execute_script done [13:05:24]execute_script returns [13:05:24]free content buf [13:05:24]Sock 9.Close socket [13:05:24]Sock 9.Thread stoped [13:05:24]OFD Sender: No OFD packet to send [13:05:29]OFD Sender: No OFD packet to send [13:05:34]OFD Sender: No OFD packet to send [13:05:39]OFD Sender: No OFD packet to send [13:05:44]OFD Sender: No OFD packet to send [13:05:49]OFD Sender: No OFD packet to send [13:05:54]OFD Sender: No OFD packet to send [13:05:59]OFD Sender: No OFD packet to send [13:06:04]OFD Sender: No OFD packet to send [13:06:09]OFD Sender: No OFD packet to send [13:06:14]OFD Sender: No OFD packet to send [13:06:19]OFD Sender: No OFD packet to send [13:06:24]OFD Sender: No OFD packet to send [13:06:29]OFD Sender: No OFD packet to send [13:06:34]OFD Sender: No OFD packet to send [13:06:39]OFD Sender: No OFD packet to send [13:06:44]OFD Sender: No OFD packet to send [13:06:49]OFD Sender: No OFD packet to send [13:06:54]OFD Sender: No OFD packet to send [13:06:58]accept exits with 8 [13:06:58]New connection [13:06:58]New thread 3066686820 created [13:06:58]Thread 3066543460 joined [13:06:58]Waiting for new connection... [13:06:58] Sock 8.Parse request [13:06:58]Sock 8.Check first char [13:06:58]Sock 8.First char is OK [13:06:58]request: POST /json_proto HTTP/1.0 [13:06:58]Method: POST [13:06:58]URL: /json_proto [13:06:58]Method is POST - this is cgi request [13:06:58]url: /json_proto [13:06:58]query_string will be loaded in cgi processing [13:06:58]execute_cgi json_proto POST (null) [13:06:58]execute_cgi path=json_proto method=POST [13:06:58]POST find Content-Length [13:06:58]Host: 172.17.44.195:8080 [13:06:58]Content-Length: 683 [13:06:58]Content-Type: application/json [13:06:58] [13:06:58]POST finish read [13:06:58]Found Content-Length = 683 [13:06:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962977", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:06:58]execute_script... [13:06: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)1962977", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:06:58]POST & json_proto [13:06:58]process_json_proto [13:06:58]json parsed OK: [13:06:58]protocol is kg_v1.0 [13:06:58]action value=close_receipt [13:06:58]process_action close_receipt [13:06:58]cmd_close_receipt [13:06:58]MH_GetDate [13:06:58]Write to MH i2c: F0 00 00 9A 1F A8 [13:06:58]Write i2c OK [13:06:58]MH_I2C_Read... [13:06:58]Read from MH i2c: F0 [13:06:58]MH_I2C_Read... [13:06:58]Read from MH i2c: F0 09 00 [13:06:58]MH_I2C_Read... [13:06:58]Read from MH i2c: F0 09 00 9A 1F 00 73 00 15 67 82 C9 CF 66 20 [13:06:58]GetLastDocTimeStamp 1729429523 [13:06:58]current date 1729429619 [13:06:58]FM_GetShiftState [13:06:58]SAM_PROTO_GetShiftState [13:06:58]wFMCommunicate request_size=4 [13:06:58]MH_SAM_APDU [13:06:58]CAPDU: 80 13 01 00 [13:06:58]Write to MH i2c: E2 08 00 9B 1F 80 13 01 00 00 00 00 00 37 [13:06:58]Write i2c OK [13:06:58]MH_I2C_Read... [13:06:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:58]Read from MH i2c: E2 [13:06:58]MH_I2C_Read... [13:06:58]Read from MH i2c: E2 0E 00 [13:06:58]MH_I2C_Read... [13:06:58]Read from MH i2c: E2 0E 00 9B 1F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 51 [13:06:58]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:06:58]wFMCommunicate OK [13:06:58]SAM_PROTO_GetShiftState done [13:06:58]FM_GetShiftState done [13:06:58]opened in 1729383750 [13:06:58]opened+sec_in_day 1729470150 [13:06:58]quantity*price = 100015 [13:06:58]sum+1 = 100017 [13:06:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 303 20.10.2024 13:07 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227455 ФПД: 166524226335000 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T130700&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227455&fm=166524226335000&tin=02508201610067®Number=0000000000091685&sum=100000 [13:07:00]StoreToDocumentArchive [13:07:00]shift 533 fd 227455 [13:07:00]save to /storage/0533/doc_00227455 [13:07:00]save last doc name /storage/0533/doc_00227455 to /storage/kkm_last_doc_name [13:07:00]save OK [13:07:00]Clear old archive folders... [13:07:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:07:00]tlvbuf is 0195D360 [13:07:00]SAM_PROTO_ClearQueue [13:07:00]wFMCommunicate request_size=4 [13:07:00]MH_SAM_APDU [13:07:00]CAPDU: 80 09 00 00 [13:07:00]Write to MH i2c: E2 08 00 A8 1F 80 09 00 00 00 00 00 00 39 [13:07:00]Write i2c OK [13:07:00]MH_I2C_Read... [13:07:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:07:00]Read from MH i2c: E2 [13:07:00]MH_I2C_Read... [13:07:00]Read from MH i2c: E2 03 00 [13:07:00]MH_I2C_Read... [13:07:00]Read from MH i2c: E2 03 00 A8 1F 00 90 00 3B [13:07:00]RAPDU: 90 00 [13:07:00]wFMCommunicate OK [13:07:00]SAM_PROTO_ClearQueue done [13:07:00]KKMCreateOFDPacket [13:07:00]OFDProtocolAddRootSTLVToBuf [13:07:00]FM_MakeSignedData [13:07:00]FM_MakeSignedData [13:07:00]SAM_PROTO_SignData [13:07:00]wFMCommunicate request_size=4 [13:07:00]MH_SAM_APDU [13:07:00]CAPDU: 80 0D 01 02 [13:07:00]Write to MH i2c: E2 08 00 A9 1F 80 0D 01 02 00 00 00 00 41 [13:07:00]Write i2c OK [13:07:00]MH_I2C_Read... [13:07:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:07:00]Read from MH i2c: E2 [13:07:00]MH_I2C_Read... [13:07:00]Read from MH i2c: E2 03 00 [13:07:00]MH_I2C_Read... [13:07:00]Read from MH i2c: E2 03 00 A9 1F 00 90 00 3C [13:07:00]RAPDU: 90 00 [13:07:00]wFMCommunicate OK [13:07:00]wFMCommunicate request_size=255 [13:07:00]MH_SAM_APDU [13:07:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 74 00 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7F 78 03 00 35 04 06 00 97 [13:07:00]Write to MH i2c: E2 02 01 AA 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 74 00 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7F 78 03 00 35 04 06 00 97 00 00 9A [13:07:00]Write i2c OK [13:07:00]MH_I2C_Read... [13:07:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:00]Read from MH i2c: E2 [13:07:00]MH_I2C_Read... [13:07:00]Read from MH i2c: E2 03 00 [13:07:00]MH_I2C_Read... [13:07:00]Read from MH i2c: E2 03 00 AA 1F 00 90 00 3D [13:07:00]RAPDU: 90 00 [13:07:00]wFMCommunicate OK [13:07:00]wFMCommunicate request_size=10 [13:07:00]MH_SAM_APDU [13:07:00]CAPDU: 80 0D 02 02 05 73 F1 5B 71 18 [13:07:00]Write to MH i2c: E2 0D 00 AB 1F 80 0D 02 02 05 00 73 F1 5B 71 18 00 00 96 [13:07:00]Write i2c OK [13:07:00]MH_I2C_Read... [13:07:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:00]Read from MH i2c: E2 [13:07:00]MH_I2C_Read... [13:07:00]Read from MH i2c: E2 03 00 [13:07:00]MH_I2C_Read... [13:07:00]Read from MH i2c: E2 03 00 AB 1F 00 90 00 3E [13:07:00]RAPDU: 90 00 [13:07:00]wFMCommunicate OK [13:07:00]wFMCommunicate request_size=4 [13:07:00]MH_SAM_APDU [13:07:00]CAPDU: 80 0D 03 02 [13:07:00]Write to MH i2c: E2 08 00 AC 1F 80 0D 03 02 00 00 00 00 46 [13:07:00]Write i2c OK [13:07:00]MH_I2C_Read... [13:07:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:07:00]Read from MH i2c: E2 [13:07:00]MH_I2C_Read... [13:07:00]Read from MH i2c: E2 0B 00 [13:07:00]MH_I2C_Read... [13:07:00]Read from MH i2c: E2 0B 00 AC 1F 00 58 D4 47 81 C1 C3 76 72 90 00 A7 [13:07:00]RAPDU: 58 D4 47 81 C1 C3 76 72 90 00 [13:07:00]wFMCommunicate OK [13:07:00]SAM_PROTO_SignData done [13:07:00]FM_MakeSignedData done [13:07:00]CreateOFDProtocolMessage [13:07:00]wFMCommunicate request_size=4 [13:07:00]MH_SAM_APDU [13:07:00]CAPDU: 80 11 00 00 [13:07:00]Write to MH i2c: E2 08 00 AD 1F 80 11 00 00 00 00 00 00 46 [13:07:00]Write i2c OK [13:07:00]MH_I2C_Read... [13:07:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:00]Read from MH i2c: E2 [13:07:00]MH_I2C_Read... [13:07:00]Read from MH i2c: E2 17 00 [13:07:00]MH_I2C_Read... [13:07:00]Read from MH i2c: E2 17 00 AD 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 9D [13:07:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:07:00]wFMCommunicate OK [13:07:00]CreateOFDProtocolMessage done [13:07:00]OFDSenderStorePacket 227455 [13:07:00]StoreOFDPacket docnum=227455 [13:07:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 78 06 07 01 D7 A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 74 00 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7F 78 03 00 35 04 06 00 97 73 F1 5B 71 18 58 D4 47 81 C1 C3 76 72 [13:07:00]CheckFolder [13:07:00]dirname=/storage/ofd_packets [13:07:00]CheckFolder done [13:07:00]ProducePacketName [13:07:00]name=ofd_packets/00227455 [13:07:00]NVStorageSaveData ofd_packets/00227455 [13:07:00]File name is /storage/ofd_packets/00227455 [13:07:00]Write 301 bytes [13:07:00]NVStorageSaveData done [13:07:00]OFDSenderStorePacket done [13:07:00]KKMCreateOFDPacket done [13:07:00]NVStorageSaveData kkm_last_timestamp [13:07:00]File name is /storage/kkm_last_timestamp [13:07:00]Write 4 bytes [13:07:00]NVStorageSaveData done [13:07:00]ExternCall_PrintAddStr [13:07:00]wPrintStart [13:07:00]Write to MH i2c: 01 00 00 AE 1F CD [13:07:00]Write i2c OK [13:07:00]MH_I2C_Read... [13:07:00]Read from MH i2c: 01 [13:07:00]MH_I2C_Read... [13:07:00]Read from MH i2c: 01 07 00 [13:07:00]MH_I2C_Read... [13:07:00]Read from MH i2c: 01 07 00 AE 1F 00 00 00 00 00 FF 0F E2 [13:07:00]RasterBufferAndPrint [13:07:00]line Счет N : (1)1962977 [13:07:00]line ИНН: 02508201610067 [13:07:00]line Контрольно-Кассовый Чек [13:07:00]line ПРОДАЖА [13:07:00]line ТРК (МРК, ГНК) : 63 [13:07:00]line Товар: 2710124130 [13:07:00]line Аи-92-К-5 [13:07:00]line 14.950 * 66.90 [13:07:00]line = 1000.16 [13:07:00]line НДС 12% НСП 1% [13:07:00]line > о реализуемом товаре [13:07:00]line ОКРУГЛЕНИЕ: -0.16 [13:07:00]line ИТОГО: 1000.00 [13:07:00]line Внесено: 1000.00 [13:07:00]line СДАЧА: 0.00 [13:07:00]line НСП 1% : 8.85 [13:07:00]line НДС 12% : 106.21 [13:07:00]line Наличными: 1000.00 [13:07:00]line Безнал.: 0.00 [13:07:00]line Место: АЗС № 133 "Партнер Нефть" [13:07:00]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:07:00]line СНО: Общий режим [13:07:00]line Чек 303 20.10.2024 13:07 [13:07:00]line Смена: 533 ФФД: 1.0 [13:07:00]line ЗНМ: 0300000091 [13:07:00]line РНМ: 0000000000091685 [13:07:00]line Версия ККМ: 001 [13:07:00]line ФМ: 0000000000871839 [13:07:00]line ФД: 227455 [13:07:00]line ФПД: 166524226335000 [13:07:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T130700&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227455&fm=166524226335000&tin=02508201610067®Number=0000000000091685&sum=100000 [13:07:00]OFD Sender: Processing packet 227455 [packets to send 38, broken 37] [13:07:00]ProducePacketName [13:07:00]name=ofd_packets/00227455 [13:07:00]OFD Sender: To server: pG, [13:07:00]CommunicateWithHost lk.salyk.kg:30040 [13:07:00]ConnectInit lk.salyk.kg [13:07:00]written 0, free lines is 4095 [13:07:01]Connected sock=10 [13:07: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 33 39 0F 01 00 00 78 06 07 01 D7 A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 74 00 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7F 78 03 00 35 04 06 00 97 73 F1 5B 71 18 58 D4 47 81 C1 C3 76 72 [13:07: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 33 39 4F 00 00 00 86 A2 47 00 A5 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 33 39 10 04 04 00 7F 78 03 00 F4 03 04 00 72 AB 14 67 B6 04 01 00 00 E9 4E 7F 05 8E E0 2B 4F [13:07:01]CommunicateWithHost err = 0 [13:07:01]CheckOFDResponse [13:07:01]1017 (14) - 77093643461234 [13:07:01]1041 (16) - 0000000000871839 [13:07:01]1040 (4) - 227455 [13:07:01]1012 (4) - 20.10.2024 07:04 [13:07:01]1206 (1) - 0 [13:07:01]OFD Sender: Remove packet 227455 [13:07:01]ProducePacketName [13:07:01]name=ofd_packets/00227455 [13:07:01]NVStorageDeleteData [13:07:01]Write to MH i2c: 01 00 00 D8 1F F7 [13:07:01]Write i2c OK [13:07:01]MH_I2C_Read... [13:07:01]Read from MH i2c: 01 [13:07:01]MH_I2C_Read... [13:07:01]Read from MH i2c: 01 07 00 [13:07:01]MH_I2C_Read... [13:07:01]Read from MH i2c: 01 07 00 D8 1F 00 00 00 00 00 16 0D 21 [13:07:01]RasterBufferAndPrint [13:07:01]line [13:07:01]line [13:07:01]line [13:07:01]line [13:07:01]line [13:07:01]written 0, free lines is 3357 [13:07:01]process_action close_receipt done [13:07:01]requested_data is exist [13:07:01]produce_requested_data [13:07:01]requested_item fm.sn is exist - process it [13:07:01]wFMCommunicate request_size=4 [13:07:01]MH_SAM_APDU [13:07:01]CAPDU: 80 11 00 00 [13:07:01]Write to MH i2c: E2 08 00 DF 1F 80 11 00 00 00 00 00 00 78 [13:07:01]Write i2c OK [13:07:01]MH_I2C_Read... [13:07:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:01]Read from MH i2c: E2 [13:07:01]MH_I2C_Read... [13:07:01]Read from MH i2c: E2 17 00 [13:07:01]MH_I2C_Read... [13:07:01]Read from MH i2c: E2 17 00 DF 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 CF [13:07:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:07:01]wFMCommunicate OK [13:07:01]requested_item fd.num is exist - process it [13:07:01]SAM_PROTO_GetFieldsCounters [13:07:01]wFMCommunicate request_size=4 [13:07:01]MH_SAM_APDU [13:07:01]CAPDU: 80 13 00 00 [13:07:01]Write to MH i2c: E2 08 00 E0 1F 80 13 00 00 00 00 00 00 7B [13:07:01]Write i2c OK [13:07:01]MH_I2C_Read... [13:07:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:07:01]Read from MH i2c: E2 [13:07:01]MH_I2C_Read... [13:07:01]Read from MH i2c: E2 62 00 [13:07:01]MH_I2C_Read... [13:07:01]Read from MH i2c: E2 62 00 E0 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 7F 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 2F 01 00 00 5E 04 04 00 2F 01 00 00 57 04 04 00 30 01 00 00 19 04 04 00 00 00 00 00 90 00 45 [13:07: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 7F 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 2F 01 00 00 5E 04 04 00 2F 01 00 00 57 04 04 00 30 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:07:01]wFMCommunicate OK [13:07:01]SAM_PROTO_GetFieldsCounters done [13:07:01]requested_item shift.num is exist - process it [13:07:01]requested_item shift.opened is exist - process it [13:07:01]req_shift_opened [13:07:01]FM_GetShiftState [13:07:01]SAM_PROTO_GetShiftState [13:07:01]wFMCommunicate request_size=4 [13:07:01]MH_SAM_APDU [13:07:01]CAPDU: 80 13 01 00 [13:07:01]Write to MH i2c: E2 08 00 E1 1F 80 13 01 00 00 00 00 00 7D [13:07:01]Write i2c OK [13:07:01]MH_I2C_Read... [13:07:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:01]Read from MH i2c: E2 [13:07:01]MH_I2C_Read... [13:07:01]Read from MH i2c: E2 0E 00 [13:07:01]MH_I2C_Read... [13:07:01]Read from MH i2c: E2 0E 00 E1 1F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 97 [13:07:01]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:07:01]wFMCommunicate OK [13:07:01]SAM_PROTO_GetShiftState done [13:07:01]FM_GetShiftState done [13:07:01]req_shift_opened done [13:07:01]requested_item shift.open_date is exist - process it [13:07:01]req_shift_open_date [13:07:01]req_shift_open_date done [13:07:01]produce_requested_data done [13:07:01]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227455,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [13:07:01]process_action_free close_receipt [13:07:01]json_value_free [13:07:01]json_value_free done [13:07:01]process_json_proto returns [13:07:01]Send response to host [13:07:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227455,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [13:07:01]free response buf [13:07:01]execute_script done [13:07:01]execute_script returns [13:07:01]free content buf [13:07:01]Sock 8.Close socket [13:07:01]Sock 8.Thread stoped [13:07:01]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:36]OFD Sender: No OFD packet to send [13:07:41]accept exits with 9 [13:07:41]New connection [13:07:41]New thread 3066543460 created [13:07:41]Thread 3066686820 joined [13:07:41]Waiting for new connection... [13:07:41] Sock 9.Parse request [13:07:41]Sock 9.Check first char [13:07:41]Sock 9.First char is OK [13:07:41]request: POST /json_proto HTTP/1.0 [13:07:41]Method: POST [13:07:41]URL: /json_proto [13:07:41]Method is POST - this is cgi request [13:07:41]url: /json_proto [13:07:41]query_string will be loaded in cgi processing [13:07:41]execute_cgi json_proto POST (null) [13:07:41]execute_cgi path=json_proto method=POST [13:07:41]POST find Content-Length [13:07:41]Host: 172.17.44.195:8080 [13:07:41]Content-Length: 678 [13:07:41]Content-Type: application/json [13:07:41] [13:07:41]POST finish read [13:07:41]Found Content-Length = 678 [13:07:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962978", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.240, "sum" : 484.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 484.00, "payments": [ { "type": 0, "sum" : 484.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:07:41]execute_script... [13:07:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962978", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.240, "sum" : 484.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 484.00, "payments": [ { "type": 0, "sum" : 484.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:07:41]POST & json_proto [13:07:41]process_json_proto [13:07:41]json parsed OK: [13:07:41]protocol is kg_v1.0 [13:07:41]action value=close_receipt [13:07:41]process_action close_receipt [13:07:41]cmd_close_receipt [13:07:41]MH_GetDate [13:07:41]Write to MH i2c: F0 00 00 E2 1F F0 [13:07:41]Write i2c OK [13:07:41]MH_I2C_Read... [13:07:41]Read from MH i2c: F0 [13:07:41]MH_I2C_Read... [13:07:41]Read from MH i2c: F0 09 00 [13:07:41]MH_I2C_Read... [13:07:41]Read from MH i2c: F0 09 00 E2 1F 00 9E 00 15 67 82 C9 CF 66 93 [13:07:41]GetLastDocTimeStamp 1729429620 [13:07:41]current date 1729429662 [13:07:41]FM_GetShiftState [13:07:41]SAM_PROTO_GetShiftState [13:07:41]wFMCommunicate request_size=4 [13:07:41]MH_SAM_APDU [13:07:41]CAPDU: 80 13 01 00 [13:07:41]Write to MH i2c: E2 08 00 E3 1F 80 13 01 00 00 00 00 00 7F [13:07:41]Write i2c OK [13:07:41]MH_I2C_Read... [13:07:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:41]Read from MH i2c: E2 [13:07:41]MH_I2C_Read... [13:07:41]Read from MH i2c: E2 0E 00 [13:07:41]MH_I2C_Read... [13:07:41]Read from MH i2c: E2 0E 00 E3 1F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 99 [13:07:41]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:07:41]wFMCommunicate OK [13:07:41]SAM_PROTO_GetShiftState done [13:07:41]FM_GetShiftState done [13:07:41]opened in 1729383750 [13:07:41]opened+sec_in_day 1729470150 [13:07:41]quantity*price = 48435 [13:07:41]sum+1 = 48437 [13:07:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 484.00 Внесено: 500.00 СДАЧА: 16.00 НСП 1% : 4.29 НДС 12% : 51.44 Наличными: 484.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 304 20.10.2024 13:07 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227456 ФПД: 271320064095035 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T130742&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227456&fm=271320064095035&tin=02508201610067®Number=0000000000091685&sum=48400 [13:07:42]StoreToDocumentArchive [13:07:42]shift 533 fd 227456 [13:07:42]save to /storage/0533/doc_00227456 [13:07:42]save last doc name /storage/0533/doc_00227456 to /storage/kkm_last_doc_name [13:07:42]save OK [13:07:42]Clear old archive folders... [13:07:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:07:42]tlvbuf is B6D678F0 [13:07:42]SAM_PROTO_ClearQueue [13:07:42]wFMCommunicate request_size=4 [13:07:42]MH_SAM_APDU [13:07:42]CAPDU: 80 09 00 00 [13:07:42]Write to MH i2c: E2 08 00 F0 1F 80 09 00 00 00 00 00 00 81 [13:07:42]Write i2c OK [13:07:42]MH_I2C_Read... [13:07:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:07:42]Read from MH i2c: E2 [13:07:42]MH_I2C_Read... [13:07:42]Read from MH i2c: E2 03 00 [13:07:42]MH_I2C_Read... [13:07:42]Read from MH i2c: E2 03 00 F0 1F 00 90 00 83 [13:07:42]RAPDU: 90 00 [13:07:42]wFMCommunicate OK [13:07:42]SAM_PROTO_ClearQueue done [13:07:42]KKMCreateOFDPacket [13:07:42]OFDProtocolAddRootSTLVToBuf [13:07:42]FM_MakeSignedData [13:07:42]FM_MakeSignedData [13:07:42]SAM_PROTO_SignData [13:07:42]wFMCommunicate request_size=4 [13:07:42]MH_SAM_APDU [13:07:42]CAPDU: 80 0D 01 02 [13:07:42]Write to MH i2c: E2 08 00 F1 1F 80 0D 01 02 00 00 00 00 89 [13:07:42]Write i2c OK [13:07:42]MH_I2C_Read... [13:07:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:07:42]Read from MH i2c: E2 [13:07:42]MH_I2C_Read... [13:07:42]Read from MH i2c: E2 03 00 [13:07:42]MH_I2C_Read... [13:07:42]Read from MH i2c: E2 03 00 F1 1F 00 90 00 84 [13:07:42]RAPDU: 90 00 [13:07:42]wFMCommunicate OK [13:07:42]wFMCommunicate request_size=255 [13:07:42]MH_SAM_APDU [13:07:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 34 BD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 BD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 14 00 00 00 00 07 04 06 00 10 BD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 9E 00 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 80 78 03 00 35 04 06 00 F6 [13:07:42]Write to MH i2c: E2 02 01 F2 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 34 BD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 BD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 14 00 00 00 00 07 04 06 00 10 BD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 9E 00 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 80 78 03 00 35 04 06 00 F6 00 00 F3 [13:07:42]Write i2c OK [13:07:42]MH_I2C_Read... [13:07:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:43]Read from MH i2c: E2 [13:07:43]MH_I2C_Read... [13:07:43]Read from MH i2c: E2 03 00 [13:07:43]MH_I2C_Read... [13:07:43]Read from MH i2c: E2 03 00 F2 1F 00 90 00 85 [13:07:43]RAPDU: 90 00 [13:07:43]wFMCommunicate OK [13:07:43]wFMCommunicate request_size=10 [13:07:43]MH_SAM_APDU [13:07:43]CAPDU: 80 0D 02 02 05 C3 A0 0A 73 3B [13:07:43]Write to MH i2c: E2 0D 00 F3 1F 80 0D 02 02 05 00 C3 A0 0A 73 3B 00 00 B1 [13:07:43]Write i2c OK [13:07:43]MH_I2C_Read... [13:07:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:43]Read from MH i2c: E2 [13:07:43]MH_I2C_Read... [13:07:43]Read from MH i2c: E2 03 00 [13:07:43]MH_I2C_Read... [13:07:43]Read from MH i2c: E2 03 00 F3 1F 00 90 00 86 [13:07:43]RAPDU: 90 00 [13:07:43]wFMCommunicate OK [13:07:43]wFMCommunicate request_size=4 [13:07:43]MH_SAM_APDU [13:07:43]CAPDU: 80 0D 03 02 [13:07:43]Write to MH i2c: E2 08 00 F4 1F 80 0D 03 02 00 00 00 00 8E [13:07:43]Write i2c OK [13:07:43]MH_I2C_Read... [13:07:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:07:43]Read from MH i2c: E2 [13:07:43]MH_I2C_Read... [13:07:43]Read from MH i2c: E2 0B 00 [13:07:43]MH_I2C_Read... [13:07:43]Read from MH i2c: E2 0B 00 F4 1F 00 ED 16 BB 71 E3 C4 80 42 90 00 27 [13:07:43]RAPDU: ED 16 BB 71 E3 C4 80 42 90 00 [13:07:43]wFMCommunicate OK [13:07:43]SAM_PROTO_SignData done [13:07:43]FM_MakeSignedData done [13:07:43]CreateOFDProtocolMessage [13:07:43]wFMCommunicate request_size=4 [13:07:43]MH_SAM_APDU [13:07:43]CAPDU: 80 11 00 00 [13:07:43]Write to MH i2c: E2 08 00 F5 1F 80 11 00 00 00 00 00 00 8E [13:07:43]Write i2c OK [13:07:43]MH_I2C_Read... [13:07:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:43]Read from MH i2c: E2 [13:07:43]MH_I2C_Read... [13:07:43]Read from MH i2c: E2 17 00 [13:07:43]MH_I2C_Read... [13:07:43]Read from MH i2c: E2 17 00 F5 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E5 [13:07:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:07:43]wFMCommunicate OK [13:07:43]CreateOFDProtocolMessage done [13:07:43]OFDSenderStorePacket 227456 [13:07:43]StoreOFDPacket docnum=227456 [13:07:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 94 6D 07 01 28 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 34 BD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 BD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 14 00 00 00 00 07 04 06 00 10 BD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 9E 00 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 80 78 03 00 35 04 06 00 F6 C3 A0 0A 73 3B ED 16 BB 71 E3 C4 80 42 [13:07:43]CheckFolder [13:07:43]dirname=/storage/ofd_packets [13:07:43]CheckFolder done [13:07:43]ProducePacketName [13:07:43]name=ofd_packets/00227456 [13:07:43]NVStorageSaveData ofd_packets/00227456 [13:07:43]File name is /storage/ofd_packets/00227456 [13:07:43]Write 301 bytes [13:07:43]NVStorageSaveData done [13:07:43]OFDSenderStorePacket done [13:07:43]KKMCreateOFDPacket done [13:07:43]NVStorageSaveData kkm_last_timestamp [13:07:43]File name is /storage/kkm_last_timestamp [13:07:43]Write 4 bytes [13:07:43]NVStorageSaveData done [13:07:43]ExternCall_PrintAddStr [13:07:43]wPrintStart [13:07:43]Write to MH i2c: 01 00 00 F6 1F 15 [13:07:43]Write i2c OK [13:07:43]MH_I2C_Read... [13:07:43]Read from MH i2c: 01 [13:07:43]MH_I2C_Read... [13:07:43]Read from MH i2c: 01 07 00 [13:07:43]MH_I2C_Read... [13:07:43]Read from MH i2c: 01 07 00 F6 1F 00 00 00 00 00 FF 0F 2A [13:07:43]RasterBufferAndPrint [13:07:43]line Счет N : (1)1962978 [13:07:43]line ИНН: 02508201610067 [13:07:43]line Контрольно-Кассовый Чек [13:07:43]line ПРОДАЖА [13:07:43]line ТРК (МРК, ГНК) : 43 [13:07:43]line Товар: 2710124130 [13:07:43]line Аи-92-К-5 [13:07:43]line 7.240 * 66.90 [13:07:43]line = 484.36 [13:07:43]line НДС 12% НСП 1% [13:07:43]line > о реализуемом товаре [13:07:43]line ОКРУГЛЕНИЕ: -0.36 [13:07:43]line ИТОГО: 484.00 [13:07:43]line Внесено: 500.00 [13:07:43]line СДАЧА: 16.00 [13:07:43]line НСП 1% : 4.29 [13:07:43]line НДС 12% : 51.44 [13:07:43]line Наличными: 484.00 [13:07:43]line Безнал.: 0.00 [13:07:43]line Место: АЗС № 133 "Партнер Нефть" [13:07:43]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:07:43]line СНО: Общий режим [13:07:43]line Чек 304 20.10.2024 13:07 [13:07:43]line Смена: 533 ФФД: 1.0 [13:07:43]line ЗНМ: 0300000091 [13:07:43]line РНМ: 0000000000091685 [13:07:43]line Версия ККМ: 001 [13:07:43]line ФМ: 0000000000871839 [13:07:43]line ФД: 227456 [13:07:43]line ФПД: 271320064095035 [13:07:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T130742&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227456&fm=271320064095035&tin=02508201610067®Number=0000000000091685&sum=48400 [13:07:43]OFD Sender: Processing packet 227456 [packets to send 38, broken 37] [13:07:43]ProducePacketName [13:07:43]name=ofd_packets/00227456 [13:07:43]OFD Sender: To server: pG, [13:07:43]CommunicateWithHost lk.salyk.kg:30040 [13:07:43]ConnectInit lk.salyk.kg [13:07:43]written 0, free lines is 4095 [13:07:43]Connected sock=11 [13:07:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 94 6D 07 01 28 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 34 BD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 BD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 14 00 00 00 00 07 04 06 00 10 BD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 9E 00 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 80 78 03 00 35 04 06 00 F6 C3 A0 0A 73 3B ED 16 BB 71 E3 C4 80 42 [13:07:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 D7 2D 47 00 C9 E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 80 78 03 00 F4 03 04 00 9D AB 14 67 B6 04 01 00 00 97 6F D9 F1 D1 D4 34 E4 [13:07:43]CommunicateWithHost err = 0 [13:07:43]CheckOFDResponse [13:07:43]1017 (14) - 77093643461234 [13:07:43]1041 (16) - 0000000000871839 [13:07:43]1040 (4) - 227456 [13:07:43]1012 (4) - 20.10.2024 07:05 [13:07:43]1206 (1) - 0 [13:07:43]OFD Sender: Remove packet 227456 [13:07:43]ProducePacketName [13:07:43]name=ofd_packets/00227456 [13:07:43]NVStorageDeleteData [13:07:43]Write to MH i2c: 01 00 00 20 20 40 [13:07:43]Write i2c OK [13:07:43]MH_I2C_Read... [13:07:43]Read from MH i2c: 01 [13:07:43]MH_I2C_Read... [13:07:43]Read from MH i2c: 01 07 00 [13:07:43]MH_I2C_Read... [13:07:43]Read from MH i2c: 01 07 00 20 20 00 00 00 00 00 0A 0D 5E [13:07:43]RasterBufferAndPrint [13:07:43]line [13:07:43]line [13:07:43]line [13:07:43]line [13:07:43]line [13:07:43]written 0, free lines is 3344 [13:07:43]process_action close_receipt done [13:07:43]requested_data is exist [13:07:43]produce_requested_data [13:07:43]requested_item fm.sn is exist - process it [13:07:43]wFMCommunicate request_size=4 [13:07:43]MH_SAM_APDU [13:07:43]CAPDU: 80 11 00 00 [13:07:43]Write to MH i2c: E2 08 00 27 20 80 11 00 00 00 00 00 00 C1 [13:07:43]Write i2c OK [13:07:43]MH_I2C_Read... [13:07:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:43]Read from MH i2c: E2 [13:07:43]MH_I2C_Read... [13:07:43]Read from MH i2c: E2 17 00 [13:07:43]MH_I2C_Read... [13:07:43]Read from MH i2c: E2 17 00 27 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 18 [13:07:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:07:43]wFMCommunicate OK [13:07:43]requested_item fd.num is exist - process it [13:07:43]SAM_PROTO_GetFieldsCounters [13:07:43]wFMCommunicate request_size=4 [13:07:43]MH_SAM_APDU [13:07:43]CAPDU: 80 13 00 00 [13:07:43]Write to MH i2c: E2 08 00 28 20 80 13 00 00 00 00 00 00 C4 [13:07:43]Write i2c OK [13:07:43]MH_I2C_Read... [13:07:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:07:44]Read from MH i2c: E2 [13:07:44]MH_I2C_Read... [13:07:44]Read from MH i2c: E2 62 00 [13:07:44]MH_I2C_Read... [13:07:44]Read from MH i2c: E2 62 00 28 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 80 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 30 01 00 00 5E 04 04 00 30 01 00 00 57 04 04 00 31 01 00 00 19 04 04 00 00 00 00 00 90 00 92 [13:07: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 80 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 30 01 00 00 5E 04 04 00 30 01 00 00 57 04 04 00 31 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:07:44]wFMCommunicate OK [13:07:44]SAM_PROTO_GetFieldsCounters done [13:07:44]requested_item shift.num is exist - process it [13:07:44]requested_item shift.opened is exist - process it [13:07:44]req_shift_opened [13:07:44]FM_GetShiftState [13:07:44]SAM_PROTO_GetShiftState [13:07:44]wFMCommunicate request_size=4 [13:07:44]MH_SAM_APDU [13:07:44]CAPDU: 80 13 01 00 [13:07:44]Write to MH i2c: E2 08 00 29 20 80 13 01 00 00 00 00 00 C6 [13:07:44]Write i2c OK [13:07:44]MH_I2C_Read... [13:07:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:44]Read from MH i2c: E2 [13:07:44]MH_I2C_Read... [13:07:44]Read from MH i2c: E2 0E 00 [13:07:44]MH_I2C_Read... [13:07:44]Read from MH i2c: E2 0E 00 29 20 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 E0 [13:07:44]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:07:44]wFMCommunicate OK [13:07:44]SAM_PROTO_GetShiftState done [13:07:44]FM_GetShiftState done [13:07:44]req_shift_opened done [13:07:44]requested_item shift.open_date is exist - process it [13:07:44]req_shift_open_date [13:07:44]req_shift_open_date done [13:07:44]produce_requested_data done [13:07:44]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227456,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [13:07:44]process_action_free close_receipt [13:07:44]json_value_free [13:07:44]json_value_free done [13:07:44]process_json_proto returns [13:07:44]Send response to host [13:07:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227456,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [13:07:44]free response buf [13:07:44]execute_script done [13:07:44]execute_script returns [13:07:44]free content buf [13:07:44]Sock 9.Close socket [13:07:44]Sock 9.Thread stoped [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:18]accept exits with 8 [13:10:18]New connection [13:10:18]New thread 3066686820 created [13:10:18]Thread 3066543460 joined [13:10:18]Waiting for new connection... [13:10:18] Sock 8.Parse request [13:10:18]Sock 8.Check first char [13:10:18]Sock 8.First char is OK [13:10:18]request: POST /json_proto HTTP/1.0 [13:10:18]Method: POST [13:10:18]URL: /json_proto [13:10:18]Method is POST - this is cgi request [13:10:18]url: /json_proto [13:10:18]query_string will be loaded in cgi processing [13:10:18]execute_cgi json_proto POST (null) [13:10:18]execute_cgi path=json_proto method=POST [13:10:18]POST find Content-Length [13:10:18]Host: 172.17.44.195:8080 [13:10:18]Content-Length: 678 [13:10:18]Content-Type: application/json [13:10:18] [13:10:18]POST finish read [13:10:18]Found Content-Length = 678 [13:10:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962979", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:10:18]execute_script... [13:10: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)1962979", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:10:18]POST & json_proto [13:10:18]process_json_proto [13:10:18]json parsed OK: [13:10:18]protocol is kg_v1.0 [13:10:18]action value=close_receipt [13:10:18]process_action close_receipt [13:10:18]cmd_close_receipt [13:10:18]MH_GetDate [13:10:18]Write to MH i2c: F0 00 00 2A 20 39 [13:10:18]Write i2c OK [13:10:18]MH_I2C_Read... [13:10:18]Read from MH i2c: F0 [13:10:18]MH_I2C_Read... [13:10:18]Read from MH i2c: F0 09 00 [13:10:18]MH_I2C_Read... [13:10:18]Read from MH i2c: F0 09 00 2A 20 00 3B 01 15 67 82 C9 CF 66 7A [13:10:18]GetLastDocTimeStamp 1729429662 [13:10:18]current date 1729429819 [13:10:18]FM_GetShiftState [13:10:18]SAM_PROTO_GetShiftState [13:10:18]wFMCommunicate request_size=4 [13:10:18]MH_SAM_APDU [13:10:18]CAPDU: 80 13 01 00 [13:10:18]Write to MH i2c: E2 08 00 2B 20 80 13 01 00 00 00 00 00 C8 [13:10:18]Write i2c OK [13:10:18]MH_I2C_Read... [13:10:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:18]Read from MH i2c: E2 [13:10:18]MH_I2C_Read... [13:10:18]Read from MH i2c: E2 0E 00 [13:10:18]MH_I2C_Read... [13:10:18]Read from MH i2c: E2 0E 00 2B 20 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 E2 [13:10:18]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:10:18]wFMCommunicate OK [13:10:18]SAM_PROTO_GetShiftState done [13:10:18]FM_GetShiftState done [13:10:18]opened in 1729383750 [13:10:18]opened+sec_in_day 1729470150 [13:10:18]quantity*price = 50041 [13:10:18]sum+1 = 50042 [13:10:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 305 20.10.2024 13:10 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227457 ФПД: 79263257778182 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T131019&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227457&fm=79263257778182&tin=02508201610067®Number=0000000000091685&sum=50000 [13:10:19]StoreToDocumentArchive [13:10:19]shift 533 fd 227457 [13:10:19]save to /storage/0533/doc_00227457 [13:10:19]save last doc name /storage/0533/doc_00227457 to /storage/kkm_last_doc_name [13:10:19]save OK [13:10:19]Clear old archive folders... [13:10:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:10:19]tlvbuf is 0190E610 [13:10:19]SAM_PROTO_ClearQueue [13:10:19]wFMCommunicate request_size=4 [13:10:19]MH_SAM_APDU [13:10:19]CAPDU: 80 09 00 00 [13:10:19]Write to MH i2c: E2 08 00 38 20 80 09 00 00 00 00 00 00 CA [13:10:19]Write i2c OK [13:10:19]MH_I2C_Read... [13:10:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:10:19]Read from MH i2c: E2 [13:10:19]MH_I2C_Read... [13:10:19]Read from MH i2c: E2 03 00 [13:10:19]MH_I2C_Read... [13:10:19]Read from MH i2c: E2 03 00 38 20 00 90 00 CC [13:10:19]RAPDU: 90 00 [13:10:19]wFMCommunicate OK [13:10:19]SAM_PROTO_ClearQueue done [13:10:19]KKMCreateOFDPacket [13:10:19]OFDProtocolAddRootSTLVToBuf [13:10:19]FM_MakeSignedData [13:10:19]FM_MakeSignedData [13:10:19]SAM_PROTO_SignData [13:10:19]wFMCommunicate request_size=4 [13:10:19]MH_SAM_APDU [13:10:19]CAPDU: 80 0D 01 02 [13:10:19]Write to MH i2c: E2 08 00 39 20 80 0D 01 02 00 00 00 00 D2 [13:10:19]Write i2c OK [13:10:19]MH_I2C_Read... [13:10:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:10:19]OFD Sender: No OFD packet to send [13:10:19]Read from MH i2c: E2 [13:10:19]MH_I2C_Read... [13:10:19]Read from MH i2c: E2 03 00 [13:10:19]MH_I2C_Read... [13:10:19]Read from MH i2c: E2 03 00 39 20 00 90 00 CD [13:10:19]RAPDU: 90 00 [13:10:19]wFMCommunicate OK [13:10:19]wFMCommunicate request_size=255 [13:10:19]MH_SAM_APDU [13:10:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 3B 01 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 81 78 03 00 35 04 06 00 48 [13:10:19]Write to MH i2c: E2 02 01 3A 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 3B 01 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 81 78 03 00 35 04 06 00 48 00 00 AE [13:10:19]Write i2c OK [13:10:19]MH_I2C_Read... [13:10:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:19]Read from MH i2c: E2 [13:10:19]MH_I2C_Read... [13:10:19]Read from MH i2c: E2 03 00 [13:10:19]MH_I2C_Read... [13:10:19]Read from MH i2c: E2 03 00 3A 20 00 90 00 CE [13:10:19]RAPDU: 90 00 [13:10:19]wFMCommunicate OK [13:10:19]wFMCommunicate request_size=10 [13:10:19]MH_SAM_APDU [13:10:19]CAPDU: 80 0D 02 02 05 16 EA 52 D8 06 [13:10:19]Write to MH i2c: E2 0D 00 3B 20 80 0D 02 02 05 00 16 EA 52 D8 06 00 00 0F [13:10:19]Write i2c OK [13:10:19]MH_I2C_Read... [13:10:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:19]Read from MH i2c: E2 [13:10:19]MH_I2C_Read... [13:10:19]Read from MH i2c: E2 03 00 [13:10:19]MH_I2C_Read... [13:10:19]Read from MH i2c: E2 03 00 3B 20 00 90 00 CF [13:10:19]RAPDU: 90 00 [13:10:19]wFMCommunicate OK [13:10:19]wFMCommunicate request_size=4 [13:10:19]MH_SAM_APDU [13:10:19]CAPDU: 80 0D 03 02 [13:10:19]Write to MH i2c: E2 08 00 3C 20 80 0D 03 02 00 00 00 00 D7 [13:10:19]Write i2c OK [13:10:19]MH_I2C_Read... [13:10:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:10:19]Read from MH i2c: E2 [13:10:19]MH_I2C_Read... [13:10:19]Read from MH i2c: E2 0B 00 [13:10:19]MH_I2C_Read... [13:10:19]Read from MH i2c: E2 0B 00 3C 20 00 88 F1 29 50 6D 0E EC A6 90 00 D7 [13:10:19]RAPDU: 88 F1 29 50 6D 0E EC A6 90 00 [13:10:19]wFMCommunicate OK [13:10:19]SAM_PROTO_SignData done [13:10:19]FM_MakeSignedData done [13:10:19]CreateOFDProtocolMessage [13:10:19]wFMCommunicate request_size=4 [13:10:19]MH_SAM_APDU [13:10:19]CAPDU: 80 11 00 00 [13:10:19]Write to MH i2c: E2 08 00 3D 20 80 11 00 00 00 00 00 00 D7 [13:10:19]Write i2c OK [13:10:19]MH_I2C_Read... [13:10:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:19]Read from MH i2c: E2 [13:10:19]MH_I2C_Read... [13:10:19]Read from MH i2c: E2 17 00 [13:10:19]MH_I2C_Read... [13:10:19]Read from MH i2c: E2 17 00 3D 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 2E [13:10:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:10:19]wFMCommunicate OK [13:10:19]CreateOFDProtocolMessage done [13:10:19]OFDSenderStorePacket 227457 [13:10:19]StoreOFDPacket docnum=227457 [13:10:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 14 87 07 01 D6 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 3B 01 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 81 78 03 00 35 04 06 00 48 16 EA 52 D8 06 88 F1 29 50 6D 0E EC A6 [13:10:19]CheckFolder [13:10:19]dirname=/storage/ofd_packets [13:10:19]CheckFolder done [13:10:19]ProducePacketName [13:10:19]name=ofd_packets/00227457 [13:10:19]NVStorageSaveData ofd_packets/00227457 [13:10:19]File name is /storage/ofd_packets/00227457 [13:10:19]Write 301 bytes [13:10:19]NVStorageSaveData done [13:10:19]OFDSenderStorePacket done [13:10:19]KKMCreateOFDPacket done [13:10:19]NVStorageSaveData kkm_last_timestamp [13:10:19]File name is /storage/kkm_last_timestamp [13:10:19]Write 4 bytes [13:10:19]NVStorageSaveData done [13:10:19]ExternCall_PrintAddStr [13:10:19]wPrintStart [13:10:19]Write to MH i2c: 01 00 00 3E 20 5E [13:10:19]Write i2c OK [13:10:19]MH_I2C_Read... [13:10:19]Read from MH i2c: 01 [13:10:19]MH_I2C_Read... [13:10:19]Read from MH i2c: 01 07 00 [13:10:19]MH_I2C_Read... [13:10:19]Read from MH i2c: 01 07 00 3E 20 00 00 00 00 00 FF 0F 73 [13:10:19]RasterBufferAndPrint [13:10:19]line Счет N : (1)1962979 [13:10:19]line ИНН: 02508201610067 [13:10:19]line Контрольно-Кассовый Чек [13:10:19]line ПРОДАЖА [13:10:19]line ТРК (МРК, ГНК) : 43 [13:10:19]line Товар: 2710124130 [13:10:19]line Аи-92-К-5 [13:10:19]line 7.480 * 66.90 [13:10:19]line = 500.41 [13:10:19]line НДС 12% НСП 1% [13:10:19]line > о реализуемом товаре [13:10:19]line ОКРУГЛЕНИЕ: -0.41 [13:10:19]line ИТОГО: 500.00 [13:10:19]line Внесено: 500.00 [13:10:19]line СДАЧА: 0.00 [13:10:19]line НСП 1% : 4.43 [13:10:19]line НДС 12% : 53.14 [13:10:19]line Наличными: 500.00 [13:10:19]line Безнал.: 0.00 [13:10:19]line Место: АЗС № 133 "Партнер Нефть" [13:10:19]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:10:19]line СНО: Общий режим [13:10:19]line Чек 305 20.10.2024 13:10 [13:10:19]line Смена: 533 ФФД: 1.0 [13:10:19]line ЗНМ: 0300000091 [13:10:19]line РНМ: 0000000000091685 [13:10:19]line Версия ККМ: 001 [13:10:19]line ФМ: 0000000000871839 [13:10:19]line ФД: 227457 [13:10:19]line ФПД: 79263257778182 [13:10:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T131019&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227457&fm=79263257778182&tin=02508201610067®Number=0000000000091685&sum=50000 [13:10:19]written 0, free lines is 4095 [13:10:19]OFD Sender: Processing packet 227457 [packets to send 38, broken 37] [13:10:19]ProducePacketName [13:10:19]name=ofd_packets/00227457 [13:10:19]OFD Sender: To server: pG, [13:10:19]CommunicateWithHost lk.salyk.kg:30040 [13:10:19]ConnectInit lk.salyk.kg [13:10:20]Connected sock=10 [13:10: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 33 39 0F 01 00 00 14 87 07 01 D6 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 3B 01 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 81 78 03 00 35 04 06 00 48 16 EA 52 D8 06 88 F1 29 50 6D 0E EC A6 [13:10: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 33 39 4F 00 00 00 EA BA 47 00 DA 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 33 39 10 04 04 00 81 78 03 00 F4 03 04 00 39 AC 14 67 B6 04 01 00 00 04 96 30 1A B4 83 EB 58 [13:10:20]CommunicateWithHost err = 0 [13:10:20]CheckOFDResponse [13:10:20]1017 (14) - 77093643461234 [13:10:20]1041 (16) - 0000000000871839 [13:10:20]1040 (4) - 227457 [13:10:20]1012 (4) - 20.10.2024 07:07 [13:10:20]1206 (1) - 0 [13:10:20]OFD Sender: Remove packet 227457 [13:10:20]ProducePacketName [13:10:20]name=ofd_packets/00227457 [13:10:20]NVStorageDeleteData [13:10:20]Write to MH i2c: 01 00 00 68 20 88 [13:10:20]Write i2c OK [13:10:20]MH_I2C_Read... [13:10:20]Read from MH i2c: 01 [13:10:20]MH_I2C_Read... [13:10:20]Read from MH i2c: 01 07 00 [13:10:20]MH_I2C_Read... [13:10:20]Read from MH i2c: 01 07 00 68 20 00 00 00 00 00 13 0D AF [13:10:20]RasterBufferAndPrint [13:10:20]line [13:10:20]line [13:10:20]line [13:10:20]line [13:10:20]line [13:10:20]written 0, free lines is 3353 [13:10:20]process_action close_receipt done [13:10:20]requested_data is exist [13:10:20]produce_requested_data [13:10:20]requested_item fm.sn is exist - process it [13:10:20]wFMCommunicate request_size=4 [13:10:20]MH_SAM_APDU [13:10:20]CAPDU: 80 11 00 00 [13:10:20]Write to MH i2c: E2 08 00 6F 20 80 11 00 00 00 00 00 00 09 [13:10:20]Write i2c OK [13:10:20]MH_I2C_Read... [13:10:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:20]Read from MH i2c: E2 [13:10:20]MH_I2C_Read... [13:10:20]Read from MH i2c: E2 17 00 [13:10:20]MH_I2C_Read... [13:10:20]Read from MH i2c: E2 17 00 6F 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 60 [13:10:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:10:20]wFMCommunicate OK [13:10:20]requested_item fd.num is exist - process it [13:10:20]SAM_PROTO_GetFieldsCounters [13:10:20]wFMCommunicate request_size=4 [13:10:20]MH_SAM_APDU [13:10:20]CAPDU: 80 13 00 00 [13:10:20]Write to MH i2c: E2 08 00 70 20 80 13 00 00 00 00 00 00 0C [13:10:20]Write i2c OK [13:10:20]MH_I2C_Read... [13:10:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:10:20]Read from MH i2c: E2 [13:10:20]MH_I2C_Read... [13:10:20]Read from MH i2c: E2 62 00 [13:10:20]MH_I2C_Read... [13:10:20]Read from MH i2c: E2 62 00 70 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 81 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 31 01 00 00 5E 04 04 00 31 01 00 00 57 04 04 00 32 01 00 00 19 04 04 00 00 00 00 00 90 00 DE [13:10:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 81 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 31 01 00 00 5E 04 04 00 31 01 00 00 57 04 04 00 32 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:10:20]wFMCommunicate OK [13:10:20]SAM_PROTO_GetFieldsCounters done [13:10:20]requested_item shift.num is exist - process it [13:10:20]requested_item shift.opened is exist - process it [13:10:20]req_shift_opened [13:10:20]FM_GetShiftState [13:10:20]SAM_PROTO_GetShiftState [13:10:20]wFMCommunicate request_size=4 [13:10:20]MH_SAM_APDU [13:10:20]CAPDU: 80 13 01 00 [13:10:20]Write to MH i2c: E2 08 00 71 20 80 13 01 00 00 00 00 00 0E [13:10:20]Write i2c OK [13:10:20]MH_I2C_Read... [13:10:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:20]Read from MH i2c: E2 [13:10:20]MH_I2C_Read... [13:10:20]Read from MH i2c: E2 0E 00 [13:10:20]MH_I2C_Read... [13:10:20]Read from MH i2c: E2 0E 00 71 20 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 28 [13:10:20]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:10:20]wFMCommunicate OK [13:10:20]SAM_PROTO_GetShiftState done [13:10:20]FM_GetShiftState done [13:10:20]req_shift_opened done [13:10:20]requested_item shift.open_date is exist - process it [13:10:20]req_shift_open_date [13:10:20]req_shift_open_date done [13:10:20]produce_requested_data done [13:10:20]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227457,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [13:10:20]process_action_free close_receipt [13:10:20]json_value_free [13:10:20]json_value_free done [13:10:20]process_json_proto returns [13:10:20]Send response to host [13:10:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227457,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [13:10:20]free response buf [13:10:20]execute_script done [13:10:20]execute_script returns [13:10:20]free content buf [13:10:20]Sock 8.Close socket [13:10:20]Sock 8.Thread stoped [13:10:20]OFD Sender: No OFD packet to send [13:10:25]OFD Sender: No OFD packet to send [13:10:30]OFD Sender: No OFD packet to send [13:10:35]OFD Sender: No OFD packet to send [13:10:40]OFD Sender: No OFD packet to send [13:10:45]OFD Sender: No OFD packet to send [13:10:50]OFD Sender: No OFD packet to send [13:10:55]OFD Sender: No OFD packet to send [13:10:57]accept exits with 9 [13:10:57]New connection [13:10:57]New thread 3066543460 created [13:10:57]Thread 3066686820 joined [13:10:57]Waiting for new connection... [13:10:57] Sock 9.Parse request [13:10:57]Sock 9.Check first char [13:10:57]Sock 9.First char is OK [13:10:57]request: POST /json_proto HTTP/1.0 [13:10:57]Method: POST [13:10:57]URL: /json_proto [13:10:57]Method is POST - this is cgi request [13:10:57]url: /json_proto [13:10:57]query_string will be loaded in cgi processing [13:10:57]execute_cgi json_proto POST (null) [13:10:57]execute_cgi path=json_proto method=POST [13:10:57]POST find Content-Length [13:10:57]Host: 172.17.44.195:8080 [13:10:57]Content-Length: 678 [13:10:57]Content-Type: application/json [13:10:57] [13:10:57]POST finish read [13:10:57]Found Content-Length = 678 [13:10:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962980", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:10:57]execute_script... [13:10: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)1962980", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:10:57]POST & json_proto [13:10:57]process_json_proto [13:10:57]json parsed OK: [13:10:57]protocol is kg_v1.0 [13:10:57]action value=close_receipt [13:10:57]process_action close_receipt [13:10:57]cmd_close_receipt [13:10:57]MH_GetDate [13:10:57]Write to MH i2c: F0 00 00 72 20 81 [13:10:57]Write i2c OK [13:10:57]MH_I2C_Read... [13:10:57]Read from MH i2c: F0 [13:10:57]MH_I2C_Read... [13:10:57]Read from MH i2c: F0 09 00 [13:10:57]MH_I2C_Read... [13:10:57]Read from MH i2c: F0 09 00 72 20 00 62 01 15 67 82 C9 CF 66 E9 [13:10:57]GetLastDocTimeStamp 1729429819 [13:10:57]current date 1729429858 [13:10:57]FM_GetShiftState [13:10:57]SAM_PROTO_GetShiftState [13:10:57]wFMCommunicate request_size=4 [13:10:57]MH_SAM_APDU [13:10:57]CAPDU: 80 13 01 00 [13:10:57]Write to MH i2c: E2 08 00 73 20 80 13 01 00 00 00 00 00 10 [13:10:57]Write i2c OK [13:10:57]MH_I2C_Read... [13:10:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:57]Read from MH i2c: E2 [13:10:57]MH_I2C_Read... [13:10:57]Read from MH i2c: E2 0E 00 [13:10:57]MH_I2C_Read... [13:10:57]Read from MH i2c: E2 0E 00 73 20 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 2A [13:10:57]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:10:57]wFMCommunicate OK [13:10:57]SAM_PROTO_GetShiftState done [13:10:57]FM_GetShiftState done [13:10:57]opened in 1729383750 [13:10:57]opened+sec_in_day 1729470150 [13:10:57]quantity*price = 50041 [13:10:57]sum+1 = 50042 [13:10:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 306 20.10.2024 13:10 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227458 ФПД: 271991843586385 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T131058&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227458&fm=271991843586385&tin=02508201610067®Number=0000000000091685&sum=50000 [13:10:58]StoreToDocumentArchive [13:10:58]shift 533 fd 227458 [13:10:58]save to /storage/0533/doc_00227458 [13:10:58]save last doc name /storage/0533/doc_00227458 to /storage/kkm_last_doc_name [13:10:58]save OK [13:10:58]Clear old archive folders... [13:10:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:10:58]tlvbuf is 0190EE70 [13:10:58]SAM_PROTO_ClearQueue [13:10:58]wFMCommunicate request_size=4 [13:10:58]MH_SAM_APDU [13:10:58]CAPDU: 80 09 00 00 [13:10:58]Write to MH i2c: E2 08 00 80 20 80 09 00 00 00 00 00 00 12 [13:10:58]Write i2c OK [13:10:58]MH_I2C_Read... [13:10:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:10:58]Read from MH i2c: E2 [13:10:58]MH_I2C_Read... [13:10:58]Read from MH i2c: E2 03 00 [13:10:58]MH_I2C_Read... [13:10:58]Read from MH i2c: E2 03 00 80 20 00 90 00 14 [13:10:58]RAPDU: 90 00 [13:10:58]wFMCommunicate OK [13:10:58]SAM_PROTO_ClearQueue done [13:10:58]KKMCreateOFDPacket [13:10:58]OFDProtocolAddRootSTLVToBuf [13:10:58]FM_MakeSignedData [13:10:58]FM_MakeSignedData [13:10:58]SAM_PROTO_SignData [13:10:58]wFMCommunicate request_size=4 [13:10:58]MH_SAM_APDU [13:10:58]CAPDU: 80 0D 01 02 [13:10:58]Write to MH i2c: E2 08 00 81 20 80 0D 01 02 00 00 00 00 1A [13:10:58]Write i2c OK [13:10:58]MH_I2C_Read... [13:10:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:10:58]Read from MH i2c: E2 [13:10:58]MH_I2C_Read... [13:10:58]Read from MH i2c: E2 03 00 [13:10:58]MH_I2C_Read... [13:10:58]Read from MH i2c: E2 03 00 81 20 00 90 00 15 [13:10:58]RAPDU: 90 00 [13:10:58]wFMCommunicate OK [13:10:58]wFMCommunicate request_size=255 [13:10:58]MH_SAM_APDU [13:10:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 62 01 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 82 78 03 00 35 04 06 00 F7 [13:10:58]Write to MH i2c: E2 02 01 82 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 62 01 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 82 78 03 00 35 04 06 00 F7 00 00 CE [13:10:58]Write i2c OK [13:10:58]MH_I2C_Read... [13:10:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:58]Read from MH i2c: E2 [13:10:58]MH_I2C_Read... [13:10:58]Read from MH i2c: E2 03 00 [13:10:58]MH_I2C_Read... [13:10:58]Read from MH i2c: E2 03 00 82 20 00 90 00 16 [13:10:58]RAPDU: 90 00 [13:10:58]wFMCommunicate OK [13:10:58]wFMCommunicate request_size=10 [13:10:58]MH_SAM_APDU [13:10:58]CAPDU: 80 0D 02 02 05 60 09 38 01 51 [13:10:58]Write to MH i2c: E2 0D 00 83 20 80 0D 02 02 05 00 60 09 38 01 51 00 00 1A [13:10:58]Write i2c OK [13:10:58]MH_I2C_Read... [13:10:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:58]Read from MH i2c: E2 [13:10:58]MH_I2C_Read... [13:10:58]Read from MH i2c: E2 03 00 [13:10:58]MH_I2C_Read... [13:10:58]Read from MH i2c: E2 03 00 83 20 00 90 00 17 [13:10:58]RAPDU: 90 00 [13:10:58]wFMCommunicate OK [13:10:58]wFMCommunicate request_size=4 [13:10:58]MH_SAM_APDU [13:10:58]CAPDU: 80 0D 03 02 [13:10:58]Write to MH i2c: E2 08 00 84 20 80 0D 03 02 00 00 00 00 1F [13:10:58]Write i2c OK [13:10:58]MH_I2C_Read... [13:10:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:10:58]Read from MH i2c: E2 [13:10:58]MH_I2C_Read... [13:10:58]Read from MH i2c: E2 0B 00 [13:10:58]MH_I2C_Read... [13:10:58]Read from MH i2c: E2 0B 00 84 20 00 F1 9E 73 36 1B E8 0B 9A 90 00 00 [13:10:58]RAPDU: F1 9E 73 36 1B E8 0B 9A 90 00 [13:10:58]wFMCommunicate OK [13:10:58]SAM_PROTO_SignData done [13:10:58]FM_MakeSignedData done [13:10:58]CreateOFDProtocolMessage [13:10:58]wFMCommunicate request_size=4 [13:10:58]MH_SAM_APDU [13:10:58]CAPDU: 80 11 00 00 [13:10:58]Write to MH i2c: E2 08 00 85 20 80 11 00 00 00 00 00 00 1F [13:10:58]Write i2c OK [13:10:58]MH_I2C_Read... [13:10:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:58]Read from MH i2c: E2 [13:10:58]MH_I2C_Read... [13:10:58]Read from MH i2c: E2 17 00 [13:10:58]MH_I2C_Read... [13:10:58]Read from MH i2c: E2 17 00 85 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 76 [13:10:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:10:58]wFMCommunicate OK [13:10:58]CreateOFDProtocolMessage done [13:10:58]OFDSenderStorePacket 227458 [13:10:58]StoreOFDPacket docnum=227458 [13:10:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 AB 26 07 01 60 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 62 01 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 82 78 03 00 35 04 06 00 F7 60 09 38 01 51 F1 9E 73 36 1B E8 0B 9A [13:10:58]CheckFolder [13:10:58]dirname=/storage/ofd_packets [13:10:58]CheckFolder done [13:10:58]ProducePacketName [13:10:58]name=ofd_packets/00227458 [13:10:58]NVStorageSaveData ofd_packets/00227458 [13:10:58]File name is /storage/ofd_packets/00227458 [13:10:58]Write 301 bytes [13:10:58]NVStorageSaveData done [13:10:58]OFDSenderStorePacket done [13:10:58]KKMCreateOFDPacket done [13:10:58]NVStorageSaveData kkm_last_timestamp [13:10:58]File name is /storage/kkm_last_timestamp [13:10:58]Write 4 bytes [13:10:58]NVStorageSaveData done [13:10:58]ExternCall_PrintAddStr [13:10:58]wPrintStart [13:10:58]Write to MH i2c: 01 00 00 86 20 A6 [13:10:58]Write i2c OK [13:10:58]MH_I2C_Read... [13:10:58]Read from MH i2c: 01 [13:10:58]MH_I2C_Read... [13:10:58]Read from MH i2c: 01 07 00 [13:10:58]MH_I2C_Read... [13:10:58]Read from MH i2c: 01 07 00 86 20 00 00 00 00 00 FF 0F BB [13:10:58]RasterBufferAndPrint [13:10:58]line Счет N : (1)1962980 [13:10:58]line ИНН: 02508201610067 [13:10:58]line Контрольно-Кассовый Чек [13:10:58]line ПРОДАЖА [13:10:58]line ТРК (МРК, ГНК) : 53 [13:10:58]line Товар: 2710124130 [13:10:58]line Аи-92-К-5 [13:10:58]line 7.480 * 66.90 [13:10:58]line = 500.41 [13:10:58]line НДС 12% НСП 1% [13:10:58]line > о реализуемом товаре [13:10:58]line ОКРУГЛЕНИЕ: -0.41 [13:10:58]line ИТОГО: 500.00 [13:10:58]line Внесено: 500.00 [13:10:58]line СДАЧА: 0.00 [13:10:58]line НСП 1% : 4.43 [13:10:58]line НДС 12% : 53.14 [13:10:58]line Наличными: 500.00 [13:10:58]line Безнал.: 0.00 [13:10:58]line Место: АЗС № 133 "Партнер Нефть" [13:10:58]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:10:58]line СНО: Общий режим [13:10:58]line Чек 306 20.10.2024 13:10 [13:10:58]line Смена: 533 ФФД: 1.0 [13:10:58]line ЗНМ: 0300000091 [13:10:58]line РНМ: 0000000000091685 [13:10:58]line Версия ККМ: 001 [13:10:58]line ФМ: 0000000000871839 [13:10:58]line ФД: 227458 [13:10:58]line ФПД: 271991843586385 [13:10:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T131058&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227458&fm=271991843586385&tin=02508201610067®Number=0000000000091685&sum=50000 [13:10:58]OFD Sender: Processing packet 227458 [packets to send 38, broken 37] [13:10:58]ProducePacketName [13:10:58]name=ofd_packets/00227458 [13:10:58]OFD Sender: To server: pG, [13:10:58]CommunicateWithHost lk.salyk.kg:30040 [13:10:58]ConnectInit lk.salyk.kg [13:10:58]written 0, free lines is 4095 [13:10:59]Connected sock=11 [13:10: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 33 39 0F 01 00 00 AB 26 07 01 60 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 62 01 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 82 78 03 00 35 04 06 00 F7 60 09 38 01 51 F1 9E 73 36 1B E8 0B 9A [13:10: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 33 39 4F 00 00 00 20 4C 47 00 6F 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 33 39 10 04 04 00 82 78 03 00 F4 03 04 00 60 AC 14 67 B6 04 01 00 00 D0 B2 71 19 9B A8 9C EE [13:10:59]CommunicateWithHost err = 0 [13:10:59]CheckOFDResponse [13:10:59]1017 (14) - 77093643461234 [13:10:59]1041 (16) - 0000000000871839 [13:10:59]1040 (4) - 227458 [13:10:59]1012 (4) - 20.10.2024 07:08 [13:10:59]1206 (1) - 0 [13:10:59]OFD Sender: Remove packet 227458 [13:10:59]ProducePacketName [13:10:59]name=ofd_packets/00227458 [13:10:59]NVStorageDeleteData [13:10:59]Write to MH i2c: 01 00 00 B0 20 D0 [13:10:59]Write i2c OK [13:10:59]MH_I2C_Read... [13:10:59]Read from MH i2c: 01 [13:10:59]MH_I2C_Read... [13:10:59]Read from MH i2c: 01 07 00 [13:10:59]MH_I2C_Read... [13:10:59]Read from MH i2c: 01 07 00 B0 20 00 00 00 00 00 15 0D F9 [13:10:59]RasterBufferAndPrint [13:10:59]line [13:10:59]line [13:10:59]line [13:10:59]line [13:10:59]line [13:10:59]written 0, free lines is 3356 [13:10:59]process_action close_receipt done [13:10:59]requested_data is exist [13:10:59]produce_requested_data [13:10:59]requested_item fm.sn is exist - process it [13:10:59]wFMCommunicate request_size=4 [13:10:59]MH_SAM_APDU [13:10:59]CAPDU: 80 11 00 00 [13:10:59]Write to MH i2c: E2 08 00 B7 20 80 11 00 00 00 00 00 00 51 [13:10:59]Write i2c OK [13:10:59]MH_I2C_Read... [13:10:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:59]Read from MH i2c: E2 [13:10:59]MH_I2C_Read... [13:10:59]Read from MH i2c: E2 17 00 [13:10:59]MH_I2C_Read... [13:10:59]Read from MH i2c: E2 17 00 B7 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A8 [13:10:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:10:59]wFMCommunicate OK [13:10:59]requested_item fd.num is exist - process it [13:10:59]SAM_PROTO_GetFieldsCounters [13:10:59]wFMCommunicate request_size=4 [13:10:59]MH_SAM_APDU [13:10:59]CAPDU: 80 13 00 00 [13:10:59]Write to MH i2c: E2 08 00 B8 20 80 13 00 00 00 00 00 00 54 [13:10:59]Write i2c OK [13:10:59]MH_I2C_Read... [13:10:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:10:59]Read from MH i2c: E2 [13:10:59]MH_I2C_Read... [13:10:59]Read from MH i2c: E2 62 00 [13:10:59]MH_I2C_Read... [13:10:59]Read from MH i2c: E2 62 00 B8 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 82 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 32 01 00 00 5E 04 04 00 32 01 00 00 57 04 04 00 33 01 00 00 19 04 04 00 00 00 00 00 90 00 2A [13:10: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 82 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 32 01 00 00 5E 04 04 00 32 01 00 00 57 04 04 00 33 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:10:59]wFMCommunicate OK [13:10:59]SAM_PROTO_GetFieldsCounters done [13:10:59]requested_item shift.num is exist - process it [13:10:59]requested_item shift.opened is exist - process it [13:10:59]req_shift_opened [13:10:59]FM_GetShiftState [13:10:59]SAM_PROTO_GetShiftState [13:10:59]wFMCommunicate request_size=4 [13:10:59]MH_SAM_APDU [13:10:59]CAPDU: 80 13 01 00 [13:10:59]Write to MH i2c: E2 08 00 B9 20 80 13 01 00 00 00 00 00 56 [13:10:59]Write i2c OK [13:10:59]MH_I2C_Read... [13:10:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:59]Read from MH i2c: E2 [13:10:59]MH_I2C_Read... [13:10:59]Read from MH i2c: E2 0E 00 [13:10:59]MH_I2C_Read... [13:10:59]Read from MH i2c: E2 0E 00 B9 20 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 70 [13:10:59]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:10:59]wFMCommunicate OK [13:10:59]SAM_PROTO_GetShiftState done [13:10:59]FM_GetShiftState done [13:10:59]req_shift_opened done [13:10:59]requested_item shift.open_date is exist - process it [13:10:59]req_shift_open_date [13:10:59]req_shift_open_date done [13:10:59]produce_requested_data done [13:10:59]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227458,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [13:10:59]process_action_free close_receipt [13:10:59]json_value_free [13:10:59]json_value_free done [13:10:59]process_json_proto returns [13:10:59]Send response to host [13:10:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227458,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [13:10:59]free response buf [13:10:59]execute_script done [13:10:59]execute_script returns [13:10:59]free content buf [13:10:59]Sock 9.Close socket [13:10:59]Sock 9.Thread stoped [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:31]accept exits with 8 [13:11:31]New connection [13:11:31]New thread 3066686820 created [13:11:31]Thread 3066543460 joined [13:11:31]Waiting for new connection... [13:11:31] Sock 8.Parse request [13:11:31]Sock 8.Check first char [13:11:31]Sock 8.First char is OK [13:11:31]request: POST /json_proto HTTP/1.0 [13:11:31]Method: POST [13:11:31]URL: /json_proto [13:11:31]Method is POST - this is cgi request [13:11:31]url: /json_proto [13:11:31]query_string will be loaded in cgi processing [13:11:31]execute_cgi json_proto POST (null) [13:11:31]execute_cgi path=json_proto method=POST [13:11:31]POST find Content-Length [13:11:31]Host: 172.17.44.195:8080 [13:11:31]Content-Length: 679 [13:11:31]Content-Type: application/json [13:11:31] [13:11:31]POST finish read [13:11:31]Found Content-Length = 679 [13:11:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962982", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:31]execute_script... [13:11: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)1962982", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:31]POST & json_proto [13:11:31]process_json_proto [13:11:31]json parsed OK: [13:11:31]protocol is kg_v1.0 [13:11:31]action value=close_receipt [13:11:31]process_action close_receipt [13:11:31]cmd_close_receipt [13:11:31]MH_GetDate [13:11:31]Write to MH i2c: F0 00 00 BA 20 C9 [13:11:31]Write i2c OK [13:11:31]MH_I2C_Read... [13:11:31]Read from MH i2c: F0 [13:11:31]MH_I2C_Read... [13:11:31]Read from MH i2c: F0 09 00 [13:11:31]MH_I2C_Read... [13:11:31]Read from MH i2c: F0 09 00 BA 20 00 84 01 15 67 82 C9 CF 66 53 [13:11:31]GetLastDocTimeStamp 1729429858 [13:11:31]current date 1729429892 [13:11:31]FM_GetShiftState [13:11:31]SAM_PROTO_GetShiftState [13:11:31]wFMCommunicate request_size=4 [13:11:31]MH_SAM_APDU [13:11:31]CAPDU: 80 13 01 00 [13:11:31]Write to MH i2c: E2 08 00 BB 20 80 13 01 00 00 00 00 00 58 [13:11:31]Write i2c OK [13:11:31]MH_I2C_Read... [13:11:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:31]Read from MH i2c: E2 [13:11:31]MH_I2C_Read... [13:11:31]Read from MH i2c: E2 0E 00 [13:11:31]MH_I2C_Read... [13:11:31]Read from MH i2c: E2 0E 00 BB 20 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 72 [13:11:31]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:11:31]wFMCommunicate OK [13:11:31]SAM_PROTO_GetShiftState done [13:11:31]FM_GetShiftState done [13:11:31]opened in 1729383750 [13:11:31]opened+sec_in_day 1729470150 [13:11:31]quantity*price = 70044 [13:11:31]sum+1 = 70045 [13:11:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 307 20.10.2024 13:11 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227459 ФПД: 84801510991027 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T131133&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227459&fm=84801510991027&tin=02508201610067®Number=0000000000091685&sum=70000 [13:11:33]StoreToDocumentArchive [13:11:33]shift 533 fd 227459 [13:11:33]save to /storage/0533/doc_00227459 [13:11:33]save last doc name /storage/0533/doc_00227459 to /storage/kkm_last_doc_name [13:11:33]save OK [13:11:33]Clear old archive folders... [13:11:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:11:33]tlvbuf is 018428E0 [13:11:33]SAM_PROTO_ClearQueue [13:11:33]wFMCommunicate request_size=4 [13:11:33]MH_SAM_APDU [13:11:33]CAPDU: 80 09 00 00 [13:11:33]Write to MH i2c: E2 08 00 C8 20 80 09 00 00 00 00 00 00 5A [13:11:33]Write i2c OK [13:11:33]MH_I2C_Read... [13:11:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:11:33]Read from MH i2c: E2 [13:11:33]MH_I2C_Read... [13:11:33]Read from MH i2c: E2 03 00 [13:11:33]MH_I2C_Read... [13:11:33]Read from MH i2c: E2 03 00 C8 20 00 90 00 5C [13:11:33]RAPDU: 90 00 [13:11:33]wFMCommunicate OK [13:11:33]SAM_PROTO_ClearQueue done [13:11:33]KKMCreateOFDPacket [13:11:33]OFDProtocolAddRootSTLVToBuf [13:11:33]FM_MakeSignedData [13:11:33]FM_MakeSignedData [13:11:33]SAM_PROTO_SignData [13:11:33]wFMCommunicate request_size=4 [13:11:33]MH_SAM_APDU [13:11:33]CAPDU: 80 0D 01 02 [13:11:33]Write to MH i2c: E2 08 00 C9 20 80 0D 01 02 00 00 00 00 62 [13:11:33]Write i2c OK [13:11:33]MH_I2C_Read... [13:11:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:11:33]Read from MH i2c: E2 [13:11:33]MH_I2C_Read... [13:11:33]Read from MH i2c: E2 03 00 [13:11:33]MH_I2C_Read... [13:11:33]Read from MH i2c: E2 03 00 C9 20 00 90 00 5D [13:11:33]RAPDU: 90 00 [13:11:33]wFMCommunicate OK [13:11:33]wFMCommunicate request_size=255 [13:11:33]MH_SAM_APDU [13:11:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 85 01 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 83 78 03 00 35 04 06 00 4D [13:11:33]Write to MH i2c: E2 02 01 CA 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 85 01 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 83 78 03 00 35 04 06 00 4D 00 00 A1 [13:11:33]Write i2c OK [13:11:33]MH_I2C_Read... [13:11:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:33]Read from MH i2c: E2 [13:11:33]MH_I2C_Read... [13:11:33]Read from MH i2c: E2 03 00 [13:11:33]MH_I2C_Read... [13:11:33]Read from MH i2c: E2 03 00 CA 20 00 90 00 5E [13:11:33]RAPDU: 90 00 [13:11:33]wFMCommunicate OK [13:11:33]wFMCommunicate request_size=10 [13:11:33]MH_SAM_APDU [13:11:33]CAPDU: 80 0D 02 02 05 20 63 F0 64 B3 [13:11:33]Write to MH i2c: E2 0D 00 CB 20 80 0D 02 02 05 00 20 63 F0 64 B3 00 00 F9 [13:11:33]Write i2c OK [13:11:33]MH_I2C_Read... [13:11:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:33]Read from MH i2c: E2 [13:11:33]MH_I2C_Read... [13:11:33]Read from MH i2c: E2 03 00 [13:11:33]MH_I2C_Read... [13:11:33]Read from MH i2c: E2 03 00 CB 20 00 90 00 5F [13:11:33]RAPDU: 90 00 [13:11:33]wFMCommunicate OK [13:11:33]wFMCommunicate request_size=4 [13:11:33]MH_SAM_APDU [13:11:33]CAPDU: 80 0D 03 02 [13:11:33]Write to MH i2c: E2 08 00 CC 20 80 0D 03 02 00 00 00 00 67 [13:11:33]Write i2c OK [13:11:33]MH_I2C_Read... [13:11:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:11:33]Read from MH i2c: E2 [13:11:33]MH_I2C_Read... [13:11:33]Read from MH i2c: E2 0B 00 [13:11:33]MH_I2C_Read... [13:11:33]Read from MH i2c: E2 0B 00 CC 20 00 89 D3 11 1A 60 ED 82 83 90 00 41 [13:11:33]RAPDU: 89 D3 11 1A 60 ED 82 83 90 00 [13:11:33]wFMCommunicate OK [13:11:33]SAM_PROTO_SignData done [13:11:33]FM_MakeSignedData done [13:11:33]CreateOFDProtocolMessage [13:11:33]wFMCommunicate request_size=4 [13:11:33]MH_SAM_APDU [13:11:33]CAPDU: 80 11 00 00 [13:11:33]Write to MH i2c: E2 08 00 CD 20 80 11 00 00 00 00 00 00 67 [13:11:33]Write i2c OK [13:11:33]MH_I2C_Read... [13:11:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:33]Read from MH i2c: E2 [13:11:33]MH_I2C_Read... [13:11:33]Read from MH i2c: E2 17 00 [13:11:33]MH_I2C_Read... [13:11:33]Read from MH i2c: E2 17 00 CD 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 BE [13:11:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:11:33]wFMCommunicate OK [13:11:33]CreateOFDProtocolMessage done [13:11:33]OFDSenderStorePacket 227459 [13:11:33]StoreOFDPacket docnum=227459 [13:11:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 3B 1C 07 01 40 FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 85 01 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 83 78 03 00 35 04 06 00 4D 20 63 F0 64 B3 89 D3 11 1A 60 ED 82 83 [13:11:33]CheckFolder [13:11:33]dirname=/storage/ofd_packets [13:11:33]CheckFolder done [13:11:33]ProducePacketName [13:11:33]name=ofd_packets/00227459 [13:11:33]NVStorageSaveData ofd_packets/00227459 [13:11:33]File name is /storage/ofd_packets/00227459 [13:11:33]Write 301 bytes [13:11:33]NVStorageSaveData done [13:11:33]OFDSenderStorePacket done [13:11:33]KKMCreateOFDPacket done [13:11:33]NVStorageSaveData kkm_last_timestamp [13:11:33]File name is /storage/kkm_last_timestamp [13:11:33]Write 4 bytes [13:11:33]NVStorageSaveData done [13:11:33]ExternCall_PrintAddStr [13:11:33]wPrintStart [13:11:33]Write to MH i2c: 01 00 00 CE 20 EE [13:11:33]Write i2c OK [13:11:33]MH_I2C_Read... [13:11:33]Read from MH i2c: 01 [13:11:33]MH_I2C_Read... [13:11:33]Read from MH i2c: 01 07 00 [13:11:33]MH_I2C_Read... [13:11:33]Read from MH i2c: 01 07 00 CE 20 00 00 00 00 00 FF 0F 03 [13:11:33]RasterBufferAndPrint [13:11:33]line Счет N : (1)1962982 [13:11:33]line ИНН: 02508201610067 [13:11:33]line Контрольно-Кассовый Чек [13:11:33]line ПРОДАЖА [13:11:33]line ТРК (МРК, ГНК) : 63 [13:11:33]line Товар: 2710124130 [13:11:33]line Аи-92-К-5 [13:11:33]line 10.470 * 66.90 [13:11:33]line = 700.44 [13:11:33]line НДС 12% НСП 1% [13:11:33]line > о реализуемом товаре [13:11:33]line ОКРУГЛЕНИЕ: -0.44 [13:11:33]line ИТОГО: 700.00 [13:11:33]line Внесено: 700.00 [13:11:33]line СДАЧА: 0.00 [13:11:33]line НСП 1% : 6.20 [13:11:33]line НДС 12% : 74.38 [13:11:33]line Наличными: 700.00 [13:11:33]line Безнал.: 0.00 [13:11:33]line Место: АЗС № 133 "Партнер Нефть" [13:11:33]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:11:33]line СНО: Общий режим [13:11:33]line Чек 307 20.10.2024 13:11 [13:11:33]line Смена: 533 ФФД: 1.0 [13:11:33]line ЗНМ: 0300000091 [13:11:33]line РНМ: 0000000000091685 [13:11:33]line Версия ККМ: 001 [13:11:33]line ФМ: 0000000000871839 [13:11:33]line ФД: 227459 [13:11:33]line ФПД: 84801510991027 [13:11:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T131133&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227459&fm=84801510991027&tin=02508201610067®Number=0000000000091685&sum=70000 [13:11:33]OFD Sender: Processing packet 227459 [packets to send 38, broken 37] [13:11:33]ProducePacketName [13:11:33]name=ofd_packets/00227459 [13:11:33]OFD Sender: To server: pG, [13:11:33]CommunicateWithHost lk.salyk.kg:30040 [13:11:33]ConnectInit lk.salyk.kg [13:11:33]written 0, free lines is 4095 [13:11:34]Connected sock=10 [13:11:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 3B 1C 07 01 40 FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 85 01 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 83 78 03 00 35 04 06 00 4D 20 63 F0 64 B3 89 D3 11 1A 60 ED 82 83 [13:11: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 33 39 4F 00 00 00 70 86 47 00 EC 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 33 39 10 04 04 00 83 78 03 00 F4 03 04 00 83 AC 14 67 B6 04 01 00 00 9D 54 57 F4 11 68 22 FB [13:11:34]CommunicateWithHost err = 0 [13:11:34]CheckOFDResponse [13:11:34]1017 (14) - 77093643461234 [13:11:34]1041 (16) - 0000000000871839 [13:11:34]1040 (4) - 227459 [13:11:34]1012 (4) - 20.10.2024 07:08 [13:11:34]1206 (1) - 0 [13:11:34]OFD Sender: Remove packet 227459 [13:11:34]ProducePacketName [13:11:34]name=ofd_packets/00227459 [13:11:34]NVStorageDeleteData [13:11:34]Write to MH i2c: 01 00 00 F8 20 18 [13:11:34]Write i2c OK [13:11:34]MH_I2C_Read... [13:11:34]Read from MH i2c: 01 [13:11:34]MH_I2C_Read... [13:11:34]Read from MH i2c: 01 07 00 [13:11:34]MH_I2C_Read... [13:11:34]Read from MH i2c: 01 07 00 F8 20 00 00 00 00 00 11 0D 3D [13:11:34]RasterBufferAndPrint [13:11:34]line [13:11:34]line [13:11:34]line [13:11:34]line [13:11:34]line [13:11:34]written 0, free lines is 3351 [13:11:34]process_action close_receipt done [13:11:34]requested_data is exist [13:11:34]produce_requested_data [13:11:34]requested_item fm.sn is exist - process it [13:11:34]wFMCommunicate request_size=4 [13:11:34]MH_SAM_APDU [13:11:34]CAPDU: 80 11 00 00 [13:11:34]Write to MH i2c: E2 08 00 FF 20 80 11 00 00 00 00 00 00 99 [13:11:34]Write i2c OK [13:11:34]MH_I2C_Read... [13:11:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:34]Read from MH i2c: E2 [13:11:34]MH_I2C_Read... [13:11:34]Read from MH i2c: E2 17 00 [13:11:34]MH_I2C_Read... [13:11:34]Read from MH i2c: E2 17 00 FF 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F0 [13:11:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:11:34]wFMCommunicate OK [13:11:34]requested_item fd.num is exist - process it [13:11:34]SAM_PROTO_GetFieldsCounters [13:11:34]wFMCommunicate request_size=4 [13:11:34]MH_SAM_APDU [13:11:34]CAPDU: 80 13 00 00 [13:11:34]Write to MH i2c: E2 08 00 00 21 80 13 00 00 00 00 00 00 9D [13:11:34]Write i2c OK [13:11:34]MH_I2C_Read... [13:11:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:11:34]Read from MH i2c: E2 [13:11:34]MH_I2C_Read... [13:11:34]Read from MH i2c: E2 62 00 [13:11:34]MH_I2C_Read... [13:11:34]Read from MH i2c: E2 62 00 00 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 83 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 33 01 00 00 5E 04 04 00 33 01 00 00 57 04 04 00 34 01 00 00 19 04 04 00 00 00 00 00 90 00 77 [13:11: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 83 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 33 01 00 00 5E 04 04 00 33 01 00 00 57 04 04 00 34 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:11:34]wFMCommunicate OK [13:11:34]SAM_PROTO_GetFieldsCounters done [13:11:34]requested_item shift.num is exist - process it [13:11:34]requested_item shift.opened is exist - process it [13:11:34]req_shift_opened [13:11:34]FM_GetShiftState [13:11:34]SAM_PROTO_GetShiftState [13:11:34]wFMCommunicate request_size=4 [13:11:34]MH_SAM_APDU [13:11:34]CAPDU: 80 13 01 00 [13:11:34]Write to MH i2c: E2 08 00 01 21 80 13 01 00 00 00 00 00 9F [13:11:34]Write i2c OK [13:11:34]MH_I2C_Read... [13:11:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:34]Read from MH i2c: E2 [13:11:34]MH_I2C_Read... [13:11:34]Read from MH i2c: E2 0E 00 [13:11:34]MH_I2C_Read... [13:11:34]Read from MH i2c: E2 0E 00 01 21 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 B9 [13:11:34]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:11:34]wFMCommunicate OK [13:11:34]SAM_PROTO_GetShiftState done [13:11:34]FM_GetShiftState done [13:11:34]req_shift_opened done [13:11:34]requested_item shift.open_date is exist - process it [13:11:34]req_shift_open_date [13:11:34]req_shift_open_date done [13:11:34]produce_requested_data done [13:11:34]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227459,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [13:11:34]process_action_free close_receipt [13:11:34]json_value_free [13:11:34]json_value_free done [13:11:34]process_json_proto returns [13:11:34]Send response to host [13:11:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227459,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [13:11:34]free response buf [13:11:34]execute_script done [13:11:34]execute_script returns [13:11:34]free content buf [13:11:34]Sock 8.Close socket [13:11:34]Sock 8.Thread stoped [13:11:34]OFD Sender: No OFD packet to send [13:11:34]accept exits with 9 [13:11:34]New connection [13:11:34]New thread 3066543460 created [13:11:34]Thread 3066686820 joined [13:11:34]Waiting for new connection... [13:11:34] Sock 9.Parse request [13:11:34]Sock 9.Check first char [13:11:34]Sock 9.First char is OK [13:11:34]request: POST /json_proto HTTP/1.0 [13:11:34]Method: POST [13:11:34]URL: /json_proto [13:11:34]Method is POST - this is cgi request [13:11:34]url: /json_proto [13:11:34]query_string will be loaded in cgi processing [13:11:34]execute_cgi json_proto POST (null) [13:11:34]execute_cgi path=json_proto method=POST [13:11:34]POST find Content-Length [13:11:34]Host: 172.17.44.195:8080 [13:11:34]Content-Length: 680 [13:11:34]Content-Type: application/json [13:11:34] [13:11:34]POST finish read [13:11:34]Found Content-Length = 680 [13:11:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962981", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.780, "sum" : 1050.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1050.00, "total" : 1050.00, "payments": [ { "type": 0, "sum" : 1050.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:34]execute_script... [13:11: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)1962981", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.780, "sum" : 1050.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1050.00, "total" : 1050.00, "payments": [ { "type": 0, "sum" : 1050.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:34]POST & json_proto [13:11:34]process_json_proto [13:11:34]json parsed OK: [13:11:34]protocol is kg_v1.0 [13:11:34]action value=close_receipt [13:11:34]process_action close_receipt [13:11:34]cmd_close_receipt [13:11:34]MH_GetDate [13:11:34]Write to MH i2c: F0 00 00 02 21 12 [13:11:34]Write i2c OK [13:11:34]MH_I2C_Read... [13:11:34]Read from MH i2c: F0 [13:11:34]MH_I2C_Read... [13:11:34]Read from MH i2c: F0 09 00 [13:11:34]MH_I2C_Read... [13:11:34]Read from MH i2c: F0 09 00 02 21 00 88 01 15 67 82 C9 CF 66 A0 [13:11:34]GetLastDocTimeStamp 1729429893 [13:11:34]current date 1729429896 [13:11:34]FM_GetShiftState [13:11:34]SAM_PROTO_GetShiftState [13:11:34]wFMCommunicate request_size=4 [13:11:34]MH_SAM_APDU [13:11:34]CAPDU: 80 13 01 00 [13:11:34]Write to MH i2c: E2 08 00 03 21 80 13 01 00 00 00 00 00 A1 [13:11:34]Write i2c OK [13:11:34]MH_I2C_Read... [13:11:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:35]Read from MH i2c: E2 [13:11:35]MH_I2C_Read... [13:11:35]Read from MH i2c: E2 0E 00 [13:11:35]MH_I2C_Read... [13:11:35]Read from MH i2c: E2 0E 00 03 21 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 BB [13:11:35]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:11:35]wFMCommunicate OK [13:11:35]SAM_PROTO_GetShiftState done [13:11:35]FM_GetShiftState done [13:11:35]opened in 1729383750 [13:11:35]opened+sec_in_day 1729470150 [13:11:35]quantity*price = 105003 [13:11:35]sum+1 = 105005 [13:11:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 1050.00 Внесено: 1050.00 СДАЧА: 0.00 НСП 1% : 9.29 НДС 12% : 111.51 Наличными: 1050.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 308 20.10.2024 13:11 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227460 ФПД: 233334207445743 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T131136&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227460&fm=233334207445743&tin=02508201610067®Number=0000000000091685&sum=105000 [13:11:36]StoreToDocumentArchive [13:11:36]shift 533 fd 227460 [13:11:36]save to /storage/0533/doc_00227460 [13:11:36]save last doc name /storage/0533/doc_00227460 to /storage/kkm_last_doc_name [13:11:36]save OK [13:11:36]Clear old archive folders... [13:11:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:11:36]tlvbuf is 01885D80 [13:11:36]SAM_PROTO_ClearQueue [13:11:36]wFMCommunicate request_size=4 [13:11:36]MH_SAM_APDU [13:11:36]CAPDU: 80 09 00 00 [13:11:36]Write to MH i2c: E2 08 00 10 21 80 09 00 00 00 00 00 00 A3 [13:11:36]Write i2c OK [13:11:36]MH_I2C_Read... [13:11:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:11:36]Read from MH i2c: E2 [13:11:36]MH_I2C_Read... [13:11:36]Read from MH i2c: E2 03 00 [13:11:36]MH_I2C_Read... [13:11:36]Read from MH i2c: E2 03 00 10 21 00 90 00 A5 [13:11:36]RAPDU: 90 00 [13:11:36]wFMCommunicate OK [13:11:36]SAM_PROTO_ClearQueue done [13:11:36]KKMCreateOFDPacket [13:11:36]OFDProtocolAddRootSTLVToBuf [13:11:36]FM_MakeSignedData [13:11:36]FM_MakeSignedData [13:11:36]SAM_PROTO_SignData [13:11:36]wFMCommunicate request_size=4 [13:11:36]MH_SAM_APDU [13:11:36]CAPDU: 80 0D 01 02 [13:11:36]Write to MH i2c: E2 08 00 11 21 80 0D 01 02 00 00 00 00 AB [13:11:36]Write i2c OK [13:11:36]MH_I2C_Read... [13:11:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:11:36]Read from MH i2c: E2 [13:11:36]MH_I2C_Read... [13:11:36]Read from MH i2c: E2 03 00 [13:11:36]MH_I2C_Read... [13:11:36]Read from MH i2c: E2 03 00 11 21 00 90 00 A6 [13:11:36]RAPDU: 90 00 [13:11:36]wFMCommunicate OK [13:11:36]wFMCommunicate request_size=255 [13:11:36]MH_SAM_APDU [13:11:36]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 9A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 9A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 2B 00 00 00 00 07 04 06 00 28 9A 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 01 00 00 F4 03 04 00 88 01 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 84 78 03 00 35 04 06 00 D4 37 5A 8C [13:11:36]Write to MH i2c: E2 02 01 12 21 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 9A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 9A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 2B 00 00 00 00 07 04 06 00 28 9A 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 01 00 00 F4 03 04 00 88 01 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 84 78 03 00 35 04 06 00 D4 37 5A 8C 00 00 E6 [13:11:36]Write i2c OK [13:11:36]MH_I2C_Read... [13:11:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:36]Read from MH i2c: E2 [13:11:36]MH_I2C_Read... [13:11:36]Read from MH i2c: E2 03 00 [13:11:36]MH_I2C_Read... [13:11:36]Read from MH i2c: E2 03 00 12 21 00 90 00 A7 [13:11:36]RAPDU: 90 00 [13:11:36]wFMCommunicate OK [13:11:36]wFMCommunicate request_size=7 [13:11:36]MH_SAM_APDU [13:11:36]CAPDU: 80 0D 02 02 02 7A EF [13:11:36]Write to MH i2c: E2 0A 00 13 21 80 0D 02 02 02 00 7A EF 00 00 1B [13:11:36]Write i2c OK [13:11:36]MH_I2C_Read... [13:11:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:36]Read from MH i2c: E2 [13:11:36]MH_I2C_Read... [13:11:36]Read from MH i2c: E2 03 00 [13:11:36]MH_I2C_Read... [13:11:36]Read from MH i2c: E2 03 00 13 21 00 90 00 A8 [13:11:36]RAPDU: 90 00 [13:11:36]wFMCommunicate OK [13:11:36]wFMCommunicate request_size=4 [13:11:36]MH_SAM_APDU [13:11:36]CAPDU: 80 0D 03 02 [13:11:36]Write to MH i2c: E2 08 00 14 21 80 0D 03 02 00 00 00 00 B0 [13:11:36]Write i2c OK [13:11:36]MH_I2C_Read... [13:11:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:11:37]Read from MH i2c: E2 [13:11:37]MH_I2C_Read... [13:11:37]Read from MH i2c: E2 0B 00 [13:11:37]MH_I2C_Read... [13:11:37]Read from MH i2c: E2 0B 00 14 21 00 20 D2 3F DB 7F D2 5C 02 90 00 6C [13:11:37]RAPDU: 20 D2 3F DB 7F D2 5C 02 90 00 [13:11:37]wFMCommunicate OK [13:11:37]SAM_PROTO_SignData done [13:11:37]FM_MakeSignedData done [13:11:37]CreateOFDProtocolMessage [13:11:37]wFMCommunicate request_size=4 [13:11:37]MH_SAM_APDU [13:11:37]CAPDU: 80 11 00 00 [13:11:37]Write to MH i2c: E2 08 00 15 21 80 11 00 00 00 00 00 00 B0 [13:11:37]Write i2c OK [13:11:37]MH_I2C_Read... [13:11:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:37]Read from MH i2c: E2 [13:11:37]MH_I2C_Read... [13:11:37]Read from MH i2c: E2 17 00 [13:11:37]MH_I2C_Read... [13:11:37]Read from MH i2c: E2 17 00 15 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 07 [13:11:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:11:37]wFMCommunicate OK [13:11:37]CreateOFDProtocolMessage done [13:11:37]OFDSenderStorePacket 227460 [13:11:37]StoreOFDPacket docnum=227460 [13:11:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 90 A0 04 01 1A 74 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 C4 1D 00 00 00 00 13 04 06 00 2C 9A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 9A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 2B 00 00 00 00 07 04 06 00 28 9A 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 01 00 00 F4 03 04 00 88 01 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 84 78 03 00 35 04 06 00 D4 37 5A 8C 7A EF 20 D2 3F DB 7F D2 5C 02 [13:11:37]CheckFolder [13:11:37]dirname=/storage/ofd_packets [13:11:37]CheckFolder done [13:11:37]ProducePacketName [13:11:37]name=ofd_packets/00227460 [13:11:37]NVStorageSaveData ofd_packets/00227460 [13:11:37]File name is /storage/ofd_packets/00227460 [13:11:37]Write 298 bytes [13:11:37]NVStorageSaveData done [13:11:37]OFDSenderStorePacket done [13:11:37]KKMCreateOFDPacket done [13:11:37]NVStorageSaveData kkm_last_timestamp [13:11:37]File name is /storage/kkm_last_timestamp [13:11:37]Write 4 bytes [13:11:37]NVStorageSaveData done [13:11:37]ExternCall_PrintAddStr [13:11:37]wPrintStart [13:11:37]Write to MH i2c: 01 00 00 16 21 37 [13:11:37]Write i2c OK [13:11:37]MH_I2C_Read... [13:11:37]Read from MH i2c: 01 [13:11:37]MH_I2C_Read... [13:11:37]Read from MH i2c: 01 07 00 [13:11:37]MH_I2C_Read... [13:11:37]Read from MH i2c: 01 07 00 16 21 00 00 00 00 00 FF 0F 4C [13:11:37]RasterBufferAndPrint [13:11:37]line Счет N : (1)1962981 [13:11:37]line ИНН: 02508201610067 [13:11:37]line Контрольно-Кассовый Чек [13:11:37]line ПРОДАЖА [13:11:37]line ТРК (МРК, ГНК) : 31 [13:11:37]line Товар: 2710194210 [13:11:37]line ДТ-К-5 [13:11:37]line 13.780 * 76.20 [13:11:37]line = 1050.04 [13:11:37]line НДС 12% НСП 1% [13:11:37]line > о реализуемом товаре [13:11:37]line ОКРУГЛЕНИЕ: -0.04 [13:11:37]line ИТОГО: 1050.00 [13:11:37]line Внесено: 1050.00 [13:11:37]line СДАЧА: 0.00 [13:11:37]line НСП 1% : 9.29 [13:11:37]line НДС 12% : 111.51 [13:11:37]line Наличными: 1050.00 [13:11:37]line Безнал.: 0.00 [13:11:37]line Место: АЗС № 133 "Партнер Нефть" [13:11:37]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:11:37]line СНО: Общий режим [13:11:37]line Чек 308 20.10.2024 13:11 [13:11:37]line Смена: 533 ФФД: 1.0 [13:11:37]line ЗНМ: 0300000091 [13:11:37]line РНМ: 0000000000091685 [13:11:37]line Версия ККМ: 001 [13:11:37]line ФМ: 0000000000871839 [13:11:37]line ФД: 227460 [13:11:37]line ФПД: 233334207445743 [13:11:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T131136&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227460&fm=233334207445743&tin=02508201610067®Number=0000000000091685&sum=105000 [13:11:37]written 0, free lines is 4095 [13:11:37]OFD Sender: Processing packet 227460 [packets to send 38, broken 37] [13:11:37]ProducePacketName [13:11:37]name=ofd_packets/00227460 [13:11:37]OFD Sender: To server: pG, [13:11:37]CommunicateWithHost lk.salyk.kg:30040 [13:11:37]ConnectInit lk.salyk.kg [13:11:37]Connected sock=10 [13:11: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 33 39 0C 01 00 00 90 A0 04 01 1A 74 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 C4 1D 00 00 00 00 13 04 06 00 2C 9A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 9A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 2B 00 00 00 00 07 04 06 00 28 9A 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 01 00 00 F4 03 04 00 88 01 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 84 78 03 00 35 04 06 00 D4 37 5A 8C 7A EF 20 D2 3F DB 7F D2 5C 02 [13:11: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 33 39 4F 00 00 00 0D CD 47 00 47 E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 84 78 03 00 F4 03 04 00 87 AC 14 67 B6 04 01 00 00 0E D0 34 00 98 65 E0 27 [13:11:37]CommunicateWithHost err = 0 [13:11:37]CheckOFDResponse [13:11:37]1017 (14) - 77093643461234 [13:11:37]1041 (16) - 0000000000871839 [13:11:37]1040 (4) - 227460 [13:11:37]1012 (4) - 20.10.2024 07:08 [13:11:37]1206 (1) - 0 [13:11:37]OFD Sender: Remove packet 227460 [13:11:37]ProducePacketName [13:11:37]name=ofd_packets/00227460 [13:11:37]NVStorageDeleteData [13:11:37]Write to MH i2c: 01 00 00 40 21 61 [13:11:37]Write i2c OK [13:11:37]MH_I2C_Read... [13:11:37]Read from MH i2c: 01 [13:11:37]MH_I2C_Read... [13:11:37]Read from MH i2c: 01 07 00 [13:11:37]MH_I2C_Read... [13:11:37]Read from MH i2c: 01 07 00 40 21 00 00 00 00 00 15 0D 8A [13:11:37]RasterBufferAndPrint [13:11:37]line [13:11:37]line [13:11:37]line [13:11:37]line [13:11:37]line [13:11:37]written 0, free lines is 3362 [13:11:37]process_action close_receipt done [13:11:37]requested_data is exist [13:11:37]produce_requested_data [13:11:37]requested_item fm.sn is exist - process it [13:11:37]wFMCommunicate request_size=4 [13:11:37]MH_SAM_APDU [13:11:37]CAPDU: 80 11 00 00 [13:11:37]Write to MH i2c: E2 08 00 47 21 80 11 00 00 00 00 00 00 E2 [13:11:37]Write i2c OK [13:11:37]MH_I2C_Read... [13:11:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:37]Read from MH i2c: E2 [13:11:37]MH_I2C_Read... [13:11:37]Read from MH i2c: E2 17 00 [13:11:37]MH_I2C_Read... [13:11:37]Read from MH i2c: E2 17 00 47 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 39 [13:11:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:11:37]wFMCommunicate OK [13:11:37]requested_item fd.num is exist - process it [13:11:37]SAM_PROTO_GetFieldsCounters [13:11:37]wFMCommunicate request_size=4 [13:11:37]MH_SAM_APDU [13:11:37]CAPDU: 80 13 00 00 [13:11:37]Write to MH i2c: E2 08 00 48 21 80 13 00 00 00 00 00 00 E5 [13:11:37]Write i2c OK [13:11:37]MH_I2C_Read... [13:11:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:11:37]Read from MH i2c: E2 [13:11:37]MH_I2C_Read... [13:11:37]Read from MH i2c: E2 62 00 [13:11:37]MH_I2C_Read... [13:11:37]Read from MH i2c: E2 62 00 48 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 84 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 34 01 00 00 5E 04 04 00 34 01 00 00 57 04 04 00 35 01 00 00 19 04 04 00 00 00 00 00 90 00 C3 [13:11:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 84 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 34 01 00 00 5E 04 04 00 34 01 00 00 57 04 04 00 35 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:11:37]wFMCommunicate OK [13:11:37]SAM_PROTO_GetFieldsCounters done [13:11:37]requested_item shift.num is exist - process it [13:11:37]requested_item shift.opened is exist - process it [13:11:37]req_shift_opened [13:11:37]FM_GetShiftState [13:11:37]SAM_PROTO_GetShiftState [13:11:37]wFMCommunicate request_size=4 [13:11:37]MH_SAM_APDU [13:11:37]CAPDU: 80 13 01 00 [13:11:37]Write to MH i2c: E2 08 00 49 21 80 13 01 00 00 00 00 00 E7 [13:11:37]Write i2c OK [13:11:37]MH_I2C_Read... [13:11:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:37]Read from MH i2c: E2 [13:11:37]MH_I2C_Read... [13:11:37]Read from MH i2c: E2 0E 00 [13:11:37]MH_I2C_Read... [13:11:37]Read from MH i2c: E2 0E 00 49 21 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 01 [13:11:37]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:11:37]wFMCommunicate OK [13:11:37]SAM_PROTO_GetShiftState done [13:11:37]FM_GetShiftState done [13:11:37]req_shift_opened done [13:11:37]requested_item shift.open_date is exist - process it [13:11:37]req_shift_open_date [13:11:37]req_shift_open_date done [13:11:37]produce_requested_data done [13:11:37]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227460,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [13:11:37]process_action_free close_receipt [13:11:37]json_value_free [13:11:37]json_value_free done [13:11:37]process_json_proto returns [13:11:37]Send response to host [13:11:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227460,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [13:11:37]free response buf [13:11:37]execute_script done [13:11:37]execute_script returns [13:11:37]free content buf [13:11:37]Sock 9.Close socket [13:11:37]Sock 9.Thread stoped [13:11:37]OFD Sender: No OFD packet to send [13:11:42]OFD Sender: No OFD packet to send [13:11:47]OFD Sender: No OFD packet to send [13:11:52]OFD Sender: No OFD packet to send [13:11:57]OFD Sender: No OFD packet to send [13:12:03]OFD Sender: No OFD packet to send [13:12:06]accept exits with 8 [13:12:06]New connection [13:12:06]New thread 3066686820 created [13:12:06]Thread 3066543460 joined [13:12:06]Waiting for new connection... [13:12:06] Sock 8.Parse request [13:12:06]Sock 8.Check first char [13:12:06]Sock 8.First char is OK [13:12:06]request: POST /json_proto HTTP/1.0 [13:12:06]Method: POST [13:12:06]URL: /json_proto [13:12:06]Method is POST - this is cgi request [13:12:06]url: /json_proto [13:12:06]query_string will be loaded in cgi processing [13:12:06]execute_cgi json_proto POST (null) [13:12:06]execute_cgi path=json_proto method=POST [13:12:06]POST find Content-Length [13:12:06]Host: 172.17.44.195:8080 [13:12:06]Content-Length: 678 [13:12:06]Content-Type: application/json [13:12:06] [13:12:06]POST finish read [13:12:06]Found Content-Length = 678 [13:12:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962983", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:06]execute_script... [13:12:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962983", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:06]POST & json_proto [13:12:06]process_json_proto [13:12:06]json parsed OK: [13:12:06]protocol is kg_v1.0 [13:12:06]action value=close_receipt [13:12:06]process_action close_receipt [13:12:06]cmd_close_receipt [13:12:06]MH_GetDate [13:12:06]Write to MH i2c: F0 00 00 4A 21 5A [13:12:06]Write i2c OK [13:12:06]MH_I2C_Read... [13:12:06]Read from MH i2c: F0 [13:12:06]MH_I2C_Read... [13:12:06]Read from MH i2c: F0 09 00 [13:12:06]MH_I2C_Read... [13:12:06]Read from MH i2c: F0 09 00 4A 21 00 A8 01 15 67 82 C9 CF 66 08 [13:12:06]GetLastDocTimeStamp 1729429896 [13:12:06]current date 1729429928 [13:12:06]FM_GetShiftState [13:12:06]SAM_PROTO_GetShiftState [13:12:06]wFMCommunicate request_size=4 [13:12:06]MH_SAM_APDU [13:12:06]CAPDU: 80 13 01 00 [13:12:06]Write to MH i2c: E2 08 00 4B 21 80 13 01 00 00 00 00 00 E9 [13:12:06]Write i2c OK [13:12:06]MH_I2C_Read... [13:12:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:06]Read from MH i2c: E2 [13:12:06]MH_I2C_Read... [13:12:06]Read from MH i2c: E2 0E 00 [13:12:06]MH_I2C_Read... [13:12:06]Read from MH i2c: E2 0E 00 4B 21 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 03 [13:12:06]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:12:06]wFMCommunicate OK [13:12:06]SAM_PROTO_GetShiftState done [13:12:06]FM_GetShiftState done [13:12:06]opened in 1729383750 [13:12:06]opened+sec_in_day 1729470150 [13:12:06]quantity*price = 60009 [13:12:06]sum+1 = 60010 [13:12:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 309 20.10.2024 13:12 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227461 ФПД: 134978972113991 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T131208&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227461&fm=134978972113991&tin=02508201610067®Number=0000000000091685&sum=60000 [13:12:08]StoreToDocumentArchive [13:12:08]shift 533 fd 227461 [13:12:08]save to /storage/0533/doc_00227461 [13:12:08]save last doc name /storage/0533/doc_00227461 to /storage/kkm_last_doc_name [13:12:08]save OK [13:12:08]Clear old archive folders... [13:12:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:12:08]tlvbuf is 018857C0 [13:12:08]SAM_PROTO_ClearQueue [13:12:08]wFMCommunicate request_size=4 [13:12:08]MH_SAM_APDU [13:12:08]CAPDU: 80 09 00 00 [13:12:08]Write to MH i2c: E2 08 00 58 21 80 09 00 00 00 00 00 00 EB [13:12:08]Write i2c OK [13:12:08]MH_I2C_Read... [13:12:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:12:08]Read from MH i2c: E2 [13:12:08]MH_I2C_Read... [13:12:08]Read from MH i2c: E2 03 00 [13:12:08]MH_I2C_Read... [13:12:08]Read from MH i2c: E2 03 00 58 21 00 90 00 ED [13:12:08]RAPDU: 90 00 [13:12:08]wFMCommunicate OK [13:12:08]SAM_PROTO_ClearQueue done [13:12:08]KKMCreateOFDPacket [13:12:08]OFDProtocolAddRootSTLVToBuf [13:12:08]FM_MakeSignedData [13:12:08]FM_MakeSignedData [13:12:08]SAM_PROTO_SignData [13:12:08]wFMCommunicate request_size=4 [13:12:08]MH_SAM_APDU [13:12:08]CAPDU: 80 0D 01 02 [13:12:08]Write to MH i2c: E2 08 00 59 21 80 0D 01 02 00 00 00 00 F3 [13:12:08]Write i2c OK [13:12:08]MH_I2C_Read... [13:12:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:12:08]Read from MH i2c: E2 [13:12:08]MH_I2C_Read... [13:12:08]Read from MH i2c: E2 03 00 [13:12:08]MH_I2C_Read... [13:12:08]Read from MH i2c: E2 03 00 59 21 00 90 00 EE [13:12:08]RAPDU: 90 00 [13:12:08]wFMCommunicate OK [13:12:08]wFMCommunicate request_size=255 [13:12:08]MH_SAM_APDU [13:12:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 A8 01 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 85 78 03 00 35 04 06 00 7A [13:12:08]Write to MH i2c: E2 02 01 5A 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 A8 01 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 85 78 03 00 35 04 06 00 7A 00 00 53 [13:12:08]Write i2c OK [13:12:08]MH_I2C_Read... [13:12:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:08]Read from MH i2c: E2 [13:12:08]MH_I2C_Read... [13:12:08]Read from MH i2c: E2 03 00 [13:12:08]MH_I2C_Read... [13:12:08]Read from MH i2c: E2 03 00 5A 21 00 90 00 EF [13:12:08]RAPDU: 90 00 [13:12:08]wFMCommunicate OK [13:12:08]wFMCommunicate request_size=10 [13:12:08]MH_SAM_APDU [13:12:08]CAPDU: 80 0D 02 02 05 C3 3D AF 5C 47 [13:12:08]Write to MH i2c: E2 0D 00 5B 21 80 0D 02 02 05 00 C3 3D AF 5C 47 00 00 52 [13:12:08]Write i2c OK [13:12:08]MH_I2C_Read... [13:12:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:08]Read from MH i2c: E2 [13:12:08]MH_I2C_Read... [13:12:08]Read from MH i2c: E2 03 00 [13:12:08]MH_I2C_Read... [13:12:08]Read from MH i2c: E2 03 00 5B 21 00 90 00 F0 [13:12:08]RAPDU: 90 00 [13:12:08]wFMCommunicate OK [13:12:08]wFMCommunicate request_size=4 [13:12:08]MH_SAM_APDU [13:12:08]CAPDU: 80 0D 03 02 [13:12:08]Write to MH i2c: E2 08 00 5C 21 80 0D 03 02 00 00 00 00 F8 [13:12:08]Write i2c OK [13:12:08]MH_I2C_Read... [13:12:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:12:08]Read from MH i2c: E2 [13:12:08]MH_I2C_Read... [13:12:08]Read from MH i2c: E2 0B 00 [13:12:08]MH_I2C_Read... [13:12:08]Read from MH i2c: E2 0B 00 5C 21 00 AA DC 98 87 1E 01 EF 06 90 00 B2 [13:12:08]RAPDU: AA DC 98 87 1E 01 EF 06 90 00 [13:12:08]wFMCommunicate OK [13:12:08]SAM_PROTO_SignData done [13:12:08]FM_MakeSignedData done [13:12:08]CreateOFDProtocolMessage [13:12:08]wFMCommunicate request_size=4 [13:12:08]MH_SAM_APDU [13:12:08]CAPDU: 80 11 00 00 [13:12:08]Write to MH i2c: E2 08 00 5D 21 80 11 00 00 00 00 00 00 F8 [13:12:08]Write i2c OK [13:12:08]MH_I2C_Read... [13:12:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:08]Read from MH i2c: E2 [13:12:08]MH_I2C_Read... [13:12:08]Read from MH i2c: E2 17 00 [13:12:08]MH_I2C_Read... [13:12:08]Read from MH i2c: E2 17 00 5D 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 4F [13:12:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:12:08]wFMCommunicate OK [13:12:08]CreateOFDProtocolMessage done [13:12:08]OFDSenderStorePacket 227461 [13:12:08]StoreOFDPacket docnum=227461 [13:12:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 D1 22 07 01 58 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 A8 01 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 85 78 03 00 35 04 06 00 7A C3 3D AF 5C 47 AA DC 98 87 1E 01 EF 06 [13:12:08]CheckFolder [13:12:08]dirname=/storage/ofd_packets [13:12:08]CheckFolder done [13:12:08]ProducePacketName [13:12:08]name=ofd_packets/00227461 [13:12:08]NVStorageSaveData ofd_packets/00227461 [13:12:08]File name is /storage/ofd_packets/00227461 [13:12:08]Write 301 bytes [13:12:08]NVStorageSaveData done [13:12:08]OFDSenderStorePacket done [13:12:08]KKMCreateOFDPacket done [13:12:08]NVStorageSaveData kkm_last_timestamp [13:12:08]File name is /storage/kkm_last_timestamp [13:12:08]Write 4 bytes [13:12:08]NVStorageSaveData done [13:12:08]ExternCall_PrintAddStr [13:12:08]wPrintStart [13:12:08]Write to MH i2c: 01 00 00 5E 21 7F [13:12:08]Write i2c OK [13:12:08]MH_I2C_Read... [13:12:08]Read from MH i2c: 01 [13:12:08]MH_I2C_Read... [13:12:08]Read from MH i2c: 01 07 00 [13:12:08]MH_I2C_Read... [13:12:08]Read from MH i2c: 01 07 00 5E 21 00 00 00 00 00 FF 0F 94 [13:12:08]RasterBufferAndPrint [13:12:08]line Счет N : (1)1962983 [13:12:08]line ИНН: 02508201610067 [13:12:08]line Контрольно-Кассовый Чек [13:12:08]line ПРОДАЖА [13:12:08]line ТРК (МРК, ГНК) : 43 [13:12:08]line Товар: 2710124130 [13:12:08]line Аи-92-К-5 [13:12:08]line 8.970 * 66.90 [13:12:08]line = 600.09 [13:12:08]line НДС 12% НСП 1% [13:12:08]line > о реализуемом товаре [13:12:08]line ОКРУГЛЕНИЕ: -0.09 [13:12:08]line ИТОГО: 600.00 [13:12:08]line Внесено: 600.00 [13:12:08]line СДАЧА: 0.00 [13:12:08]line НСП 1% : 5.31 [13:12:08]line НДС 12% : 63.73 [13:12:08]line Наличными: 600.00 [13:12:08]line Безнал.: 0.00 [13:12:08]line Место: АЗС № 133 "Партнер Нефть" [13:12:08]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:12:08]line СНО: Общий режим [13:12:08]line Чек 309 20.10.2024 13:12 [13:12:08]line Смена: 533 ФФД: 1.0 [13:12:08]line ЗНМ: 0300000091 [13:12:08]line РНМ: 0000000000091685 [13:12:08]line Версия ККМ: 001 [13:12:08]line ФМ: 0000000000871839 [13:12:08]line ФД: 227461 [13:12:08]line ФПД: 134978972113991 [13:12:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T131208&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227461&fm=134978972113991&tin=02508201610067®Number=0000000000091685&sum=60000 [13:12:08]written 0, free lines is 4095 [13:12:08]OFD Sender: Processing packet 227461 [packets to send 38, broken 37] [13:12:08]ProducePacketName [13:12:08]name=ofd_packets/00227461 [13:12:08]OFD Sender: To server: pG, [13:12:08]CommunicateWithHost lk.salyk.kg:30040 [13:12:08]ConnectInit lk.salyk.kg [13:12:09]Connected sock=10 [13:12:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 D1 22 07 01 58 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 A8 01 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 85 78 03 00 35 04 06 00 7A C3 3D AF 5C 47 AA DC 98 87 1E 01 EF 06 [13:12: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 33 39 4F 00 00 00 04 A1 47 00 F9 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 85 78 03 00 F4 03 04 00 A6 AC 14 67 B6 04 01 00 00 CA E1 2B EC EB 39 B8 E1 [13:12:09]CommunicateWithHost err = 0 [13:12:09]CheckOFDResponse [13:12:09]1017 (14) - 77093643461234 [13:12:09]1041 (16) - 0000000000871839 [13:12:09]1040 (4) - 227461 [13:12:09]1012 (4) - 20.10.2024 07:09 [13:12:09]1206 (1) - 0 [13:12:09]OFD Sender: Remove packet 227461 [13:12:09]ProducePacketName [13:12:09]name=ofd_packets/00227461 [13:12:09]NVStorageDeleteData [13:12:09]Write to MH i2c: 01 00 00 88 21 A9 [13:12:09]Write i2c OK [13:12:09]MH_I2C_Read... [13:12:09]Read from MH i2c: 01 [13:12:09]MH_I2C_Read... [13:12:09]Read from MH i2c: 01 07 00 [13:12:09]MH_I2C_Read... [13:12:09]Read from MH i2c: 01 07 00 88 21 00 00 00 00 00 06 0D C3 [13:12:09]RasterBufferAndPrint [13:12:09]line [13:12:09]line [13:12:09]line [13:12:09]line [13:12:09]line [13:12:09]written 0, free lines is 3340 [13:12:09]process_action close_receipt done [13:12:09]requested_data is exist [13:12:09]produce_requested_data [13:12:09]requested_item fm.sn is exist - process it [13:12:09]wFMCommunicate request_size=4 [13:12:09]MH_SAM_APDU [13:12:09]CAPDU: 80 11 00 00 [13:12:09]Write to MH i2c: E2 08 00 8F 21 80 11 00 00 00 00 00 00 2A [13:12:09]Write i2c OK [13:12:09]MH_I2C_Read... [13:12:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:09]Read from MH i2c: E2 [13:12:09]MH_I2C_Read... [13:12:09]Read from MH i2c: E2 17 00 [13:12:09]MH_I2C_Read... [13:12:09]Read from MH i2c: E2 17 00 8F 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 81 [13:12:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:12:09]wFMCommunicate OK [13:12:09]requested_item fd.num is exist - process it [13:12:09]SAM_PROTO_GetFieldsCounters [13:12:09]wFMCommunicate request_size=4 [13:12:09]MH_SAM_APDU [13:12:09]CAPDU: 80 13 00 00 [13:12:09]Write to MH i2c: E2 08 00 90 21 80 13 00 00 00 00 00 00 2D [13:12:09]Write i2c OK [13:12:09]MH_I2C_Read... [13:12:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:12:09]Read from MH i2c: E2 [13:12:09]MH_I2C_Read... [13:12:09]Read from MH i2c: E2 62 00 [13:12:09]MH_I2C_Read... [13:12:09]Read from MH i2c: E2 62 00 90 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 85 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 35 01 00 00 5E 04 04 00 35 01 00 00 57 04 04 00 36 01 00 00 19 04 04 00 00 00 00 00 90 00 0F [13:12:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 85 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 35 01 00 00 5E 04 04 00 35 01 00 00 57 04 04 00 36 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:12:09]wFMCommunicate OK [13:12:09]SAM_PROTO_GetFieldsCounters done [13:12:09]requested_item shift.num is exist - process it [13:12:09]requested_item shift.opened is exist - process it [13:12:09]req_shift_opened [13:12:09]FM_GetShiftState [13:12:09]SAM_PROTO_GetShiftState [13:12:09]wFMCommunicate request_size=4 [13:12:09]MH_SAM_APDU [13:12:09]CAPDU: 80 13 01 00 [13:12:09]Write to MH i2c: E2 08 00 91 21 80 13 01 00 00 00 00 00 2F [13:12:09]Write i2c OK [13:12:09]MH_I2C_Read... [13:12:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:09]Read from MH i2c: E2 [13:12:09]MH_I2C_Read... [13:12:09]Read from MH i2c: E2 0E 00 [13:12:09]MH_I2C_Read... [13:12:09]Read from MH i2c: E2 0E 00 91 21 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 49 [13:12:09]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:12:09]wFMCommunicate OK [13:12:09]SAM_PROTO_GetShiftState done [13:12:09]FM_GetShiftState done [13:12:09]req_shift_opened done [13:12:09]requested_item shift.open_date is exist - process it [13:12:09]req_shift_open_date [13:12:09]req_shift_open_date done [13:12:09]produce_requested_data done [13:12:09]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227461,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [13:12:09]process_action_free close_receipt [13:12:09]json_value_free [13:12:09]json_value_free done [13:12:09]process_json_proto returns [13:12:09]Send response to host [13:12:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227461,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [13:12:09]free response buf [13:12:09]execute_script done [13:12:09]execute_script returns [13:12:09]free content buf [13:12:09]Sock 8.Close socket [13:12:09]Sock 8.Thread stoped [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:30]accept exits with 9 [13:12:30]New connection [13:12:30]New thread 3066543460 created [13:12:30]Thread 3066686820 joined [13:12:30]Waiting for new connection... [13:12:30] Sock 9.Parse request [13:12:30]Sock 9.Check first char [13:12:30]Sock 9.First char is OK [13:12:30]request: POST /json_proto HTTP/1.0 [13:12:30]Method: POST [13:12:30]URL: /json_proto [13:12:30]Method is POST - this is cgi request [13:12:30]url: /json_proto [13:12:30]query_string will be loaded in cgi processing [13:12:30]execute_cgi json_proto POST (null) [13:12:30]execute_cgi path=json_proto method=POST [13:12:30]POST find Content-Length [13:12:30]Host: 172.17.44.195:8080 [13:12:30]Content-Length: 683 [13:12:30]Content-Type: application/json [13:12:30] [13:12:30]POST finish read [13:12:30]Found Content-Length = 683 [13:12:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962984", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:30]execute_script... [13:12:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962984", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:30]POST & json_proto [13:12:30]process_json_proto [13:12:30]json parsed OK: [13:12:30]protocol is kg_v1.0 [13:12:30]action value=close_receipt [13:12:30]process_action close_receipt [13:12:30]cmd_close_receipt [13:12:30]MH_GetDate [13:12:30]Write to MH i2c: F0 00 00 92 21 A2 [13:12:30]Write i2c OK [13:12:30]MH_I2C_Read... [13:12:30]Read from MH i2c: F0 [13:12:30]MH_I2C_Read... [13:12:30]Read from MH i2c: F0 09 00 [13:12:30]MH_I2C_Read... [13:12:30]Read from MH i2c: F0 09 00 92 21 00 BF 01 15 67 82 C9 CF 66 67 [13:12:30]GetLastDocTimeStamp 1729429928 [13:12:30]current date 1729429951 [13:12:30]FM_GetShiftState [13:12:30]SAM_PROTO_GetShiftState [13:12:30]wFMCommunicate request_size=4 [13:12:30]MH_SAM_APDU [13:12:30]CAPDU: 80 13 01 00 [13:12:30]Write to MH i2c: E2 08 00 93 21 80 13 01 00 00 00 00 00 31 [13:12:30]Write i2c OK [13:12:30]MH_I2C_Read... [13:12:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:30]Read from MH i2c: E2 [13:12:30]MH_I2C_Read... [13:12:30]Read from MH i2c: E2 0E 00 [13:12:30]MH_I2C_Read... [13:12:30]Read from MH i2c: E2 0E 00 93 21 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 4B [13:12:30]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:12:30]wFMCommunicate OK [13:12:30]SAM_PROTO_GetShiftState done [13:12:30]FM_GetShiftState done [13:12:30]opened in 1729383750 [13:12:30]opened+sec_in_day 1729470150 [13:12:30]quantity*price = 100015 [13:12:30]sum+1 = 100017 [13:12:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 310 20.10.2024 13:12 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227462 ФПД: 229906553832546 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T131231&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227462&fm=229906553832546&tin=02508201610067®Number=0000000000091685&sum=100000 [13:12:31]StoreToDocumentArchive [13:12:31]shift 533 fd 227462 [13:12:31]save to /storage/0533/doc_00227462 [13:12:31]save last doc name /storage/0533/doc_00227462 to /storage/kkm_last_doc_name [13:12:31]save OK [13:12:31]Clear old archive folders... [13:12:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:12:31]tlvbuf is 01842910 [13:12:31]SAM_PROTO_ClearQueue [13:12:31]wFMCommunicate request_size=4 [13:12:31]MH_SAM_APDU [13:12:31]CAPDU: 80 09 00 00 [13:12:31]Write to MH i2c: E2 08 00 A0 21 80 09 00 00 00 00 00 00 33 [13:12:31]Write i2c OK [13:12:31]MH_I2C_Read... [13:12:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:12:31]Read from MH i2c: E2 [13:12:31]MH_I2C_Read... [13:12:31]Read from MH i2c: E2 03 00 [13:12:31]MH_I2C_Read... [13:12:31]Read from MH i2c: E2 03 00 A0 21 00 90 00 35 [13:12:31]RAPDU: 90 00 [13:12:31]wFMCommunicate OK [13:12:31]SAM_PROTO_ClearQueue done [13:12:31]KKMCreateOFDPacket [13:12:31]OFDProtocolAddRootSTLVToBuf [13:12:31]FM_MakeSignedData [13:12:31]FM_MakeSignedData [13:12:31]SAM_PROTO_SignData [13:12:31]wFMCommunicate request_size=4 [13:12:31]MH_SAM_APDU [13:12:31]CAPDU: 80 0D 01 02 [13:12:31]Write to MH i2c: E2 08 00 A1 21 80 0D 01 02 00 00 00 00 3B [13:12:31]Write i2c OK [13:12:31]MH_I2C_Read... [13:12:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:12:31]Read from MH i2c: E2 [13:12:31]MH_I2C_Read... [13:12:31]Read from MH i2c: E2 03 00 [13:12:31]MH_I2C_Read... [13:12:31]Read from MH i2c: E2 03 00 A1 21 00 90 00 36 [13:12:31]RAPDU: 90 00 [13:12:31]wFMCommunicate OK [13:12:31]wFMCommunicate request_size=255 [13:12:31]MH_SAM_APDU [13:12:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 BF 01 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 86 78 03 00 35 04 06 00 D1 [13:12:31]Write to MH i2c: E2 02 01 A2 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 BF 01 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 86 78 03 00 35 04 06 00 D1 00 00 28 [13:12:31]Write i2c OK [13:12:31]MH_I2C_Read... [13:12:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:32]Read from MH i2c: E2 [13:12:32]MH_I2C_Read... [13:12:32]Read from MH i2c: E2 03 00 [13:12:32]MH_I2C_Read... [13:12:32]Read from MH i2c: E2 03 00 A2 21 00 90 00 37 [13:12:32]RAPDU: 90 00 [13:12:32]wFMCommunicate OK [13:12:32]wFMCommunicate request_size=10 [13:12:32]MH_SAM_APDU [13:12:32]CAPDU: 80 0D 02 02 05 19 4A 79 04 62 [13:12:32]Write to MH i2c: E2 0D 00 A3 21 80 0D 02 02 05 00 19 4A 79 04 62 00 00 8A [13:12:32]Write i2c OK [13:12:32]MH_I2C_Read... [13:12:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:32]Read from MH i2c: E2 [13:12:32]MH_I2C_Read... [13:12:32]Read from MH i2c: E2 03 00 [13:12:32]MH_I2C_Read... [13:12:32]Read from MH i2c: E2 03 00 A3 21 00 90 00 38 [13:12:32]RAPDU: 90 00 [13:12:32]wFMCommunicate OK [13:12:32]wFMCommunicate request_size=4 [13:12:32]MH_SAM_APDU [13:12:32]CAPDU: 80 0D 03 02 [13:12:32]Write to MH i2c: E2 08 00 A4 21 80 0D 03 02 00 00 00 00 40 [13:12:32]Write i2c OK [13:12:32]MH_I2C_Read... [13:12:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:12:32]Read from MH i2c: E2 [13:12:32]MH_I2C_Read... [13:12:32]Read from MH i2c: E2 0B 00 [13:12:32]MH_I2C_Read... [13:12:32]Read from MH i2c: E2 0B 00 A4 21 00 70 A1 E8 98 58 43 CF 7A 90 00 B6 [13:12:32]RAPDU: 70 A1 E8 98 58 43 CF 7A 90 00 [13:12:32]wFMCommunicate OK [13:12:32]SAM_PROTO_SignData done [13:12:32]FM_MakeSignedData done [13:12:32]CreateOFDProtocolMessage [13:12:32]wFMCommunicate request_size=4 [13:12:32]MH_SAM_APDU [13:12:32]CAPDU: 80 11 00 00 [13:12:32]Write to MH i2c: E2 08 00 A5 21 80 11 00 00 00 00 00 00 40 [13:12:32]Write i2c OK [13:12:32]MH_I2C_Read... [13:12:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:32]Read from MH i2c: E2 [13:12:32]MH_I2C_Read... [13:12:32]Read from MH i2c: E2 17 00 [13:12:32]MH_I2C_Read... [13:12:32]Read from MH i2c: E2 17 00 A5 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 97 [13:12:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:12:32]wFMCommunicate OK [13:12:32]CreateOFDProtocolMessage done [13:12:32]OFDSenderStorePacket 227462 [13:12:32]StoreOFDPacket docnum=227462 [13:12:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 FA 88 07 01 02 B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 BF 01 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 86 78 03 00 35 04 06 00 D1 19 4A 79 04 62 70 A1 E8 98 58 43 CF 7A [13:12:32]CheckFolder [13:12:32]dirname=/storage/ofd_packets [13:12:32]CheckFolder done [13:12:32]ProducePacketName [13:12:32]name=ofd_packets/00227462 [13:12:32]NVStorageSaveData ofd_packets/00227462 [13:12:32]File name is /storage/ofd_packets/00227462 [13:12:32]Write 301 bytes [13:12:32]NVStorageSaveData done [13:12:32]OFDSenderStorePacket done [13:12:32]KKMCreateOFDPacket done [13:12:32]NVStorageSaveData kkm_last_timestamp [13:12:32]File name is /storage/kkm_last_timestamp [13:12:32]Write 4 bytes [13:12:32]NVStorageSaveData done [13:12:32]ExternCall_PrintAddStr [13:12:32]wPrintStart [13:12:32]Write to MH i2c: 01 00 00 A6 21 C7 [13:12:32]Write i2c OK [13:12:32]MH_I2C_Read... [13:12:32]Read from MH i2c: 01 [13:12:32]MH_I2C_Read... [13:12:32]Read from MH i2c: 01 07 00 [13:12:32]MH_I2C_Read... [13:12:32]Read from MH i2c: 01 07 00 A6 21 00 00 00 00 00 FF 0F DC [13:12:32]RasterBufferAndPrint [13:12:32]line Счет N : (1)1962984 [13:12:32]line ИНН: 02508201610067 [13:12:32]line Контрольно-Кассовый Чек [13:12:32]line ПРОДАЖА [13:12:32]line ТРК (МРК, ГНК) : 63 [13:12:32]line Товар: 2710124130 [13:12:32]line Аи-92-К-5 [13:12:32]line 14.950 * 66.90 [13:12:32]line = 1000.16 [13:12:32]line НДС 12% НСП 1% [13:12:32]line > о реализуемом товаре [13:12:32]line ОКРУГЛЕНИЕ: -0.16 [13:12:32]line ИТОГО: 1000.00 [13:12:32]line Внесено: 1000.00 [13:12:32]line СДАЧА: 0.00 [13:12:32]line НСП 1% : 8.85 [13:12:32]line НДС 12% : 106.21 [13:12:32]line Наличными: 1000.00 [13:12:32]line Безнал.: 0.00 [13:12:32]line Место: АЗС № 133 "Партнер Нефть" [13:12:32]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:12:32]line СНО: Общий режим [13:12:32]line Чек 310 20.10.2024 13:12 [13:12:32]line Смена: 533 ФФД: 1.0 [13:12:32]line ЗНМ: 0300000091 [13:12:32]line РНМ: 0000000000091685 [13:12:32]line Версия ККМ: 001 [13:12:32]line ФМ: 0000000000871839 [13:12:32]line ФД: 227462 [13:12:32]line ФПД: 229906553832546 [13:12:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T131231&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227462&fm=229906553832546&tin=02508201610067®Number=0000000000091685&sum=100000 [13:12:32]written 0, free lines is 4095 [13:12:32]OFD Sender: Processing packet 227462 [packets to send 38, broken 37] [13:12:32]ProducePacketName [13:12:32]name=ofd_packets/00227462 [13:12:32]OFD Sender: To server: pG, [13:12:32]CommunicateWithHost lk.salyk.kg:30040 [13:12:32]ConnectInit lk.salyk.kg [13:12:32]Connected sock=10 [13:12: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 33 39 0F 01 00 00 FA 88 07 01 02 B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 BF 01 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 86 78 03 00 35 04 06 00 D1 19 4A 79 04 62 70 A1 E8 98 58 43 CF 7A [13:12: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 33 39 4F 00 00 00 AB 43 47 00 30 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 86 78 03 00 F4 03 04 00 BE AC 14 67 B6 04 01 00 00 27 84 D9 5B 47 62 EB 28 [13:12:32]CommunicateWithHost err = 0 [13:12:32]CheckOFDResponse [13:12:32]1017 (14) - 77093643461234 [13:12:32]1041 (16) - 0000000000871839 [13:12:32]1040 (4) - 227462 [13:12:32]1012 (4) - 20.10.2024 07:09 [13:12:32]1206 (1) - 0 [13:12:32]OFD Sender: Remove packet 227462 [13:12:32]ProducePacketName [13:12:32]name=ofd_packets/00227462 [13:12:32]NVStorageDeleteData [13:12:32]Write to MH i2c: 01 00 00 D0 21 F1 [13:12:32]Write i2c OK [13:12:32]MH_I2C_Read... [13:12:32]Read from MH i2c: 01 [13:12:32]MH_I2C_Read... [13:12:32]Read from MH i2c: 01 07 00 [13:12:32]MH_I2C_Read... [13:12:32]Read from MH i2c: 01 07 00 D0 21 00 00 00 00 00 13 0D 18 [13:12:32]RasterBufferAndPrint [13:12:32]line [13:12:32]line [13:12:32]line [13:12:32]line [13:12:32]line [13:12:32]written 0, free lines is 3357 [13:12:32]process_action close_receipt done [13:12:32]requested_data is exist [13:12:32]produce_requested_data [13:12:32]requested_item fm.sn is exist - process it [13:12:32]wFMCommunicate request_size=4 [13:12:32]MH_SAM_APDU [13:12:32]CAPDU: 80 11 00 00 [13:12:32]Write to MH i2c: E2 08 00 D7 21 80 11 00 00 00 00 00 00 72 [13:12:32]Write i2c OK [13:12:32]MH_I2C_Read... [13:12:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:32]Read from MH i2c: E2 [13:12:32]MH_I2C_Read... [13:12:32]Read from MH i2c: E2 17 00 [13:12:32]MH_I2C_Read... [13:12:32]Read from MH i2c: E2 17 00 D7 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C9 [13:12:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:12:32]wFMCommunicate OK [13:12:32]requested_item fd.num is exist - process it [13:12:32]SAM_PROTO_GetFieldsCounters [13:12:32]wFMCommunicate request_size=4 [13:12:32]MH_SAM_APDU [13:12:32]CAPDU: 80 13 00 00 [13:12:32]Write to MH i2c: E2 08 00 D8 21 80 13 00 00 00 00 00 00 75 [13:12:32]Write i2c OK [13:12:32]MH_I2C_Read... [13:12:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:12:33]Read from MH i2c: E2 [13:12:33]MH_I2C_Read... [13:12:33]Read from MH i2c: E2 62 00 [13:12:33]MH_I2C_Read... [13:12:33]Read from MH i2c: E2 62 00 D8 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 86 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 5B [13:12: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 86 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:12:33]wFMCommunicate OK [13:12:33]SAM_PROTO_GetFieldsCounters done [13:12:33]requested_item shift.num is exist - process it [13:12:33]requested_item shift.opened is exist - process it [13:12:33]req_shift_opened [13:12:33]FM_GetShiftState [13:12:33]SAM_PROTO_GetShiftState [13:12:33]wFMCommunicate request_size=4 [13:12:33]MH_SAM_APDU [13:12:33]CAPDU: 80 13 01 00 [13:12:33]Write to MH i2c: E2 08 00 D9 21 80 13 01 00 00 00 00 00 77 [13:12:33]Write i2c OK [13:12:33]MH_I2C_Read... [13:12:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:33]Read from MH i2c: E2 [13:12:33]MH_I2C_Read... [13:12:33]Read from MH i2c: E2 0E 00 [13:12:33]MH_I2C_Read... [13:12:33]Read from MH i2c: E2 0E 00 D9 21 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 91 [13:12:33]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:12:33]wFMCommunicate OK [13:12:33]SAM_PROTO_GetShiftState done [13:12:33]FM_GetShiftState done [13:12:33]req_shift_opened done [13:12:33]requested_item shift.open_date is exist - process it [13:12:33]req_shift_open_date [13:12:33]req_shift_open_date done [13:12:33]produce_requested_data done [13:12:33]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227462,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [13:12:33]process_action_free close_receipt [13:12:33]json_value_free [13:12:33]json_value_free done [13:12:33]process_json_proto returns [13:12:33]Send response to host [13:12:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227462,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [13:12:33]free response buf [13:12:33]execute_script done [13:12:33]execute_script returns [13:12:33]free content buf [13:12:33]Sock 9.Close socket [13:12:33]Sock 9.Thread stoped [13:12:33]OFD Sender: No OFD packet to send [13:12:38]OFD Sender: No OFD packet to send [13:12:43]OFD Sender: No OFD packet to send [13:12:48]OFD Sender: No OFD packet to send [13:12:53]accept exits with 8 [13:12:53]New connection [13:12:53]New thread 3066686820 created [13:12:53]Thread 3066543460 joined [13:12:53]Waiting for new connection... [13:12:53] Sock 8.Parse request [13:12:53]Sock 8.Check first char [13:12:53]Sock 8.First char is OK [13:12:53]request: POST /json_proto HTTP/1.0 [13:12:53]Method: POST [13:12:53]URL: /json_proto [13:12:53]Method is POST - this is cgi request [13:12:53]url: /json_proto [13:12:53]query_string will be loaded in cgi processing [13:12:53]execute_cgi json_proto POST (null) [13:12:53]execute_cgi path=json_proto method=POST [13:12:53]POST find Content-Length [13:12:53]Host: 172.17.44.195:8080 [13:12:53]Content-Length: 678 [13:12:53]Content-Type: application/json [13:12:53] [13:12:53]POST finish read [13:12:53]Found Content-Length = 678 [13:12:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962985", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:53]execute_script... [13:12:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962985", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:53]POST & json_proto [13:12:53]process_json_proto [13:12:53]json parsed OK: [13:12:53]protocol is kg_v1.0 [13:12:53]action value=close_receipt [13:12:53]process_action close_receipt [13:12:53]cmd_close_receipt [13:12:53]MH_GetDate [13:12:53]Write to MH i2c: F0 00 00 DA 21 EA [13:12:53]Write i2c OK [13:12:53]MH_I2C_Read... [13:12:53]Read from MH i2c: F0 [13:12:53]MH_I2C_Read... [13:12:53]Read from MH i2c: F0 09 00 [13:12:53]MH_I2C_Read... [13:12:53]Read from MH i2c: F0 09 00 DA 21 00 D6 01 15 67 82 C9 CF 66 C6 [13:12:53]GetLastDocTimeStamp 1729429951 [13:12:53]current date 1729429974 [13:12:53]FM_GetShiftState [13:12:53]SAM_PROTO_GetShiftState [13:12:53]wFMCommunicate request_size=4 [13:12:53]MH_SAM_APDU [13:12:53]CAPDU: 80 13 01 00 [13:12:53]Write to MH i2c: E2 08 00 DB 21 80 13 01 00 00 00 00 00 79 [13:12:53]Write i2c OK [13:12:53]MH_I2C_Read... [13:12:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:53]Read from MH i2c: E2 [13:12:53]MH_I2C_Read... [13:12:53]Read from MH i2c: E2 0E 00 [13:12:53]MH_I2C_Read... [13:12:53]Read from MH i2c: E2 0E 00 DB 21 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 93 [13:12:53]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:12:53]wFMCommunicate OK [13:12:53]SAM_PROTO_GetShiftState done [13:12:53]FM_GetShiftState done [13:12:53]opened in 1729383750 [13:12:53]opened+sec_in_day 1729470150 [13:12:53]quantity*price = 50041 [13:12:53]sum+1 = 50042 [13:12:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 311 20.10.2024 13:12 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227463 ФПД: 136326236380390 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T131254&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227463&fm=136326236380390&tin=02508201610067®Number=0000000000091685&sum=50000 [13:12:54]StoreToDocumentArchive [13:12:54]shift 533 fd 227463 [13:12:54]save to /storage/0533/doc_00227463 [13:12:54]save last doc name /storage/0533/doc_00227463 to /storage/kkm_last_doc_name [13:12:54]save OK [13:12:54]Clear old archive folders... [13:12:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:12:54]tlvbuf is 0190EF80 [13:12:54]SAM_PROTO_ClearQueue [13:12:54]wFMCommunicate request_size=4 [13:12:54]MH_SAM_APDU [13:12:54]CAPDU: 80 09 00 00 [13:12:54]Write to MH i2c: E2 08 00 E8 21 80 09 00 00 00 00 00 00 7B [13:12:54]Write i2c OK [13:12:54]MH_I2C_Read... [13:12:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:12:54]Read from MH i2c: E2 [13:12:54]MH_I2C_Read... [13:12:54]Read from MH i2c: E2 03 00 [13:12:54]MH_I2C_Read... [13:12:54]Read from MH i2c: E2 03 00 E8 21 00 90 00 7D [13:12:54]RAPDU: 90 00 [13:12:54]wFMCommunicate OK [13:12:54]SAM_PROTO_ClearQueue done [13:12:54]KKMCreateOFDPacket [13:12:54]OFDProtocolAddRootSTLVToBuf [13:12:54]FM_MakeSignedData [13:12:54]FM_MakeSignedData [13:12:54]SAM_PROTO_SignData [13:12:54]wFMCommunicate request_size=4 [13:12:54]MH_SAM_APDU [13:12:54]CAPDU: 80 0D 01 02 [13:12:54]Write to MH i2c: E2 08 00 E9 21 80 0D 01 02 00 00 00 00 83 [13:12:54]Write i2c OK [13:12:54]MH_I2C_Read... [13:12:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:12:54]Read from MH i2c: E2 [13:12:54]MH_I2C_Read... [13:12:54]Read from MH i2c: E2 03 00 [13:12:54]MH_I2C_Read... [13:12:54]Read from MH i2c: E2 03 00 E9 21 00 90 00 7E [13:12:54]RAPDU: 90 00 [13:12:54]wFMCommunicate OK [13:12:54]wFMCommunicate request_size=255 [13:12:54]MH_SAM_APDU [13:12:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 D6 01 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 87 78 03 00 35 04 06 00 7B [13:12:54]Write to MH i2c: E2 02 01 EA 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 D6 01 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 87 78 03 00 35 04 06 00 7B 00 00 39 [13:12:54]Write i2c OK [13:12:54]MH_I2C_Read... [13:12:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:54]Read from MH i2c: E2 [13:12:54]MH_I2C_Read... [13:12:54]Read from MH i2c: E2 03 00 [13:12:54]MH_I2C_Read... [13:12:54]Read from MH i2c: E2 03 00 EA 21 00 90 00 7F [13:12:54]RAPDU: 90 00 [13:12:54]wFMCommunicate OK [13:12:54]wFMCommunicate request_size=10 [13:12:54]MH_SAM_APDU [13:12:54]CAPDU: 80 0D 02 02 05 FC EC E4 9C E6 [13:12:54]Write to MH i2c: E2 0D 00 EB 21 80 0D 02 02 05 00 FC EC E4 9C E6 00 00 DE [13:12:54]Write i2c OK [13:12:54]MH_I2C_Read... [13:12:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:54]Read from MH i2c: E2 [13:12:54]MH_I2C_Read... [13:12:54]Read from MH i2c: E2 03 00 [13:12:54]MH_I2C_Read... [13:12:54]Read from MH i2c: E2 03 00 EB 21 00 90 00 80 [13:12:54]RAPDU: 90 00 [13:12:54]wFMCommunicate OK [13:12:54]wFMCommunicate request_size=4 [13:12:54]MH_SAM_APDU [13:12:54]CAPDU: 80 0D 03 02 [13:12:54]Write to MH i2c: E2 08 00 EC 21 80 0D 03 02 00 00 00 00 88 [13:12:54]Write i2c OK [13:12:54]MH_I2C_Read... [13:12:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:12:54]Read from MH i2c: E2 [13:12:54]MH_I2C_Read... [13:12:54]Read from MH i2c: E2 0B 00 [13:12:54]MH_I2C_Read... [13:12:54]Read from MH i2c: E2 0B 00 EC 21 00 89 FF 43 81 A3 55 CF 46 90 00 E2 [13:12:54]RAPDU: 89 FF 43 81 A3 55 CF 46 90 00 [13:12:54]wFMCommunicate OK [13:12:54]SAM_PROTO_SignData done [13:12:54]FM_MakeSignedData done [13:12:54]CreateOFDProtocolMessage [13:12:54]wFMCommunicate request_size=4 [13:12:54]MH_SAM_APDU [13:12:54]CAPDU: 80 11 00 00 [13:12:54]Write to MH i2c: E2 08 00 ED 21 80 11 00 00 00 00 00 00 88 [13:12:54]Write i2c OK [13:12:54]MH_I2C_Read... [13:12:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:54]Read from MH i2c: E2 [13:12:54]MH_I2C_Read... [13:12:54]Read from MH i2c: E2 17 00 [13:12:54]MH_I2C_Read... [13:12:54]Read from MH i2c: E2 17 00 ED 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 DF [13:12:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:12:54]wFMCommunicate OK [13:12:54]CreateOFDProtocolMessage done [13:12:54]OFDSenderStorePacket 227463 [13:12:54]StoreOFDPacket docnum=227463 [13:12:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 3C 0F 07 01 42 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 D6 01 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 87 78 03 00 35 04 06 00 7B FC EC E4 9C E6 89 FF 43 81 A3 55 CF 46 [13:12:54]CheckFolder [13:12:54]dirname=/storage/ofd_packets [13:12:54]CheckFolder done [13:12:54]ProducePacketName [13:12:54]name=ofd_packets/00227463 [13:12:54]NVStorageSaveData ofd_packets/00227463 [13:12:54]File name is /storage/ofd_packets/00227463 [13:12:54]Write 301 bytes [13:12:54]NVStorageSaveData done [13:12:54]OFDSenderStorePacket done [13:12:54]KKMCreateOFDPacket done [13:12:54]NVStorageSaveData kkm_last_timestamp [13:12:54]File name is /storage/kkm_last_timestamp [13:12:54]Write 4 bytes [13:12:54]NVStorageSaveData done [13:12:54]ExternCall_PrintAddStr [13:12:54]wPrintStart [13:12:54]Write to MH i2c: 01 00 00 EE 21 0F [13:12:54]Write i2c OK [13:12:54]MH_I2C_Read... [13:12:54]Read from MH i2c: 01 [13:12:54]MH_I2C_Read... [13:12:54]Read from MH i2c: 01 07 00 [13:12:54]MH_I2C_Read... [13:12:54]Read from MH i2c: 01 07 00 EE 21 00 00 00 00 00 FF 0F 24 [13:12:54]RasterBufferAndPrint [13:12:54]line Счет N : (1)1962985 [13:12:54]line ИНН: 02508201610067 [13:12:54]line Контрольно-Кассовый Чек [13:12:54]line ПРОДАЖА [13:12:54]line ТРК (МРК, ГНК) : 53 [13:12:54]line Товар: 2710124130 [13:12:54]line Аи-92-К-5 [13:12:54]line 7.480 * 66.90 [13:12:54]line = 500.41 [13:12:54]line НДС 12% НСП 1% [13:12:54]line > о реализуемом товаре [13:12:54]line ОКРУГЛЕНИЕ: -0.41 [13:12:54]line ИТОГО: 500.00 [13:12:54]line Внесено: 500.00 [13:12:54]line СДАЧА: 0.00 [13:12:54]line НСП 1% : 4.43 [13:12:54]line НДС 12% : 53.14 [13:12:54]line Наличными: 500.00 [13:12:54]line Безнал.: 0.00 [13:12:54]line Место: АЗС № 133 "Партнер Нефть" [13:12:54]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:12:54]line СНО: Общий режим [13:12:54]line Чек 311 20.10.2024 13:12 [13:12:54]line Смена: 533 ФФД: 1.0 [13:12:54]line ЗНМ: 0300000091 [13:12:54]line РНМ: 0000000000091685 [13:12:54]line Версия ККМ: 001 [13:12:54]line ФМ: 0000000000871839 [13:12:54]line ФД: 227463 [13:12:54]line ФПД: 136326236380390 [13:12:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T131254&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227463&fm=136326236380390&tin=02508201610067®Number=0000000000091685&sum=50000 [13:12:55]written 0, free lines is 4095 [13:12:55]OFD Sender: Processing packet 227463 [packets to send 38, broken 37] [13:12:55]ProducePacketName [13:12:55]name=ofd_packets/00227463 [13:12:55]OFD Sender: To server: pG, [13:12:55]CommunicateWithHost lk.salyk.kg:30040 [13:12:55]ConnectInit lk.salyk.kg [13:12:55]Connected sock=10 [13:12: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 33 39 0F 01 00 00 3C 0F 07 01 42 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 D6 01 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 87 78 03 00 35 04 06 00 7B FC EC E4 9C E6 89 FF 43 81 A3 55 CF 46 [13:12: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 33 39 4F 00 00 00 F8 2F 47 00 D1 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 87 78 03 00 F4 03 04 00 D5 AC 14 67 B6 04 01 00 00 CD 64 A3 91 5B DD C3 9C [13:12:55]CommunicateWithHost err = 0 [13:12:55]CheckOFDResponse [13:12:55]1017 (14) - 77093643461234 [13:12:55]1041 (16) - 0000000000871839 [13:12:55]1040 (4) - 227463 [13:12:55]1012 (4) - 20.10.2024 07:10 [13:12:55]1206 (1) - 0 [13:12:55]OFD Sender: Remove packet 227463 [13:12:55]ProducePacketName [13:12:55]name=ofd_packets/00227463 [13:12:55]NVStorageDeleteData [13:12:55]Write to MH i2c: 01 00 00 18 22 3A [13:12:55]Write i2c OK [13:12:55]MH_I2C_Read... [13:12:55]Read from MH i2c: 01 [13:12:55]MH_I2C_Read... [13:12:55]Read from MH i2c: 01 07 00 [13:12:55]MH_I2C_Read... [13:12:55]Read from MH i2c: 01 07 00 18 22 00 00 00 00 00 12 0D 60 [13:12:55]RasterBufferAndPrint [13:12:55]line [13:12:55]line [13:12:55]line [13:12:55]line [13:12:55]line [13:12:55]written 0, free lines is 3352 [13:12:55]process_action close_receipt done [13:12:55]requested_data is exist [13:12:55]produce_requested_data [13:12:55]requested_item fm.sn is exist - process it [13:12:55]wFMCommunicate request_size=4 [13:12:55]MH_SAM_APDU [13:12:55]CAPDU: 80 11 00 00 [13:12:55]Write to MH i2c: E2 08 00 1F 22 80 11 00 00 00 00 00 00 BB [13:12:55]Write i2c OK [13:12:55]MH_I2C_Read... [13:12:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:55]Read from MH i2c: E2 [13:12:55]MH_I2C_Read... [13:12:55]Read from MH i2c: E2 17 00 [13:12:55]MH_I2C_Read... [13:12:55]Read from MH i2c: E2 17 00 1F 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 12 [13:12:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:12:55]wFMCommunicate OK [13:12:55]requested_item fd.num is exist - process it [13:12:55]SAM_PROTO_GetFieldsCounters [13:12:55]wFMCommunicate request_size=4 [13:12:55]MH_SAM_APDU [13:12:55]CAPDU: 80 13 00 00 [13:12:55]Write to MH i2c: E2 08 00 20 22 80 13 00 00 00 00 00 00 BE [13:12:55]Write i2c OK [13:12:55]MH_I2C_Read... [13:12:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:12:55]Read from MH i2c: E2 [13:12:55]MH_I2C_Read... [13:12:55]Read from MH i2c: E2 62 00 [13:12:55]MH_I2C_Read... [13:12:55]Read from MH i2c: E2 62 00 20 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 87 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 37 01 00 00 5E 04 04 00 37 01 00 00 57 04 04 00 38 01 00 00 19 04 04 00 00 00 00 00 90 00 A8 [13:12:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 87 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 37 01 00 00 5E 04 04 00 37 01 00 00 57 04 04 00 38 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:12:55]wFMCommunicate OK [13:12:55]SAM_PROTO_GetFieldsCounters done [13:12:55]requested_item shift.num is exist - process it [13:12:55]requested_item shift.opened is exist - process it [13:12:55]req_shift_opened [13:12:55]FM_GetShiftState [13:12:55]SAM_PROTO_GetShiftState [13:12:55]wFMCommunicate request_size=4 [13:12:55]MH_SAM_APDU [13:12:55]CAPDU: 80 13 01 00 [13:12:55]Write to MH i2c: E2 08 00 21 22 80 13 01 00 00 00 00 00 C0 [13:12:55]Write i2c OK [13:12:55]MH_I2C_Read... [13:12:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:55]Read from MH i2c: E2 [13:12:55]MH_I2C_Read... [13:12:55]Read from MH i2c: E2 0E 00 [13:12:55]MH_I2C_Read... [13:12:55]Read from MH i2c: E2 0E 00 21 22 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 DA [13:12:55]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:12:55]wFMCommunicate OK [13:12:55]SAM_PROTO_GetShiftState done [13:12:55]FM_GetShiftState done [13:12:55]req_shift_opened done [13:12:55]requested_item shift.open_date is exist - process it [13:12:55]req_shift_open_date [13:12:55]req_shift_open_date done [13:12:55]produce_requested_data done [13:12:55]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227463,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [13:12:55]process_action_free close_receipt [13:12:55]json_value_free [13:12:55]json_value_free done [13:12:55]process_json_proto returns [13:12:55]Send response to host [13:12:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227463,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [13:12:55]free response buf [13:12:55]execute_script done [13:12:55]execute_script returns [13:12:55]free content buf [13:12:55]Sock 8.Close socket [13:12:55]Sock 8.Thread stoped [13:12:55]OFD Sender: No OFD packet to send [13:13:00]OFD Sender: No OFD packet to send [13:13:05]OFD Sender: No OFD packet to send [13:13:10]OFD Sender: No OFD packet to send [13:13:15]OFD Sender: No OFD packet to send [13:13:20]OFD Sender: No OFD packet to send [13:13:25]OFD Sender: No OFD packet to send [13:13:30]OFD Sender: No OFD packet to send [13:13:35]OFD Sender: No OFD packet to send [13:13:40]OFD Sender: No OFD packet to send [13:13:45]OFD Sender: No OFD packet to send [13:13:51]OFD Sender: No OFD packet to send [13:13:56]OFD Sender: No OFD packet to send [13:14:00]accept exits with 9 [13:14:00]New connection [13:14:00]New thread 3066543460 created [13:14:00]Thread 3066686820 joined [13:14:00]Waiting for new connection... [13:14:00] Sock 9.Parse request [13:14:00]Sock 9.Check first char [13:14:00]Sock 9.First char is OK [13:14:00]request: POST /json_proto HTTP/1.0 [13:14:00]Method: POST [13:14:00]URL: /json_proto [13:14:00]Method is POST - this is cgi request [13:14:00]url: /json_proto [13:14:00]query_string will be loaded in cgi processing [13:14:00]execute_cgi json_proto POST (null) [13:14:00]execute_cgi path=json_proto method=POST [13:14:00]POST find Content-Length [13:14:00]Host: 172.17.44.195:8080 [13:14:00]Content-Length: 678 [13:14:00]Content-Type: application/json [13:14:00] [13:14:00]POST finish read [13:14:00]Found Content-Length = 678 [13:14:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962986", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:14:00]execute_script... [13:14:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962986", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:14:00]POST & json_proto [13:14:00]process_json_proto [13:14:00]json parsed OK: [13:14:00]protocol is kg_v1.0 [13:14:00]action value=close_receipt [13:14:00]process_action close_receipt [13:14:00]cmd_close_receipt [13:14:00]MH_GetDate [13:14:00]Write to MH i2c: F0 00 00 22 22 33 [13:14:00]Write i2c OK [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: F0 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: F0 09 00 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: F0 09 00 22 22 00 19 02 15 67 82 C9 CF 66 53 [13:14:00]GetLastDocTimeStamp 1729429974 [13:14:00]current date 1729430041 [13:14:00]FM_GetShiftState [13:14:00]SAM_PROTO_GetShiftState [13:14:00]wFMCommunicate request_size=4 [13:14:00]MH_SAM_APDU [13:14:00]CAPDU: 80 13 01 00 [13:14:00]Write to MH i2c: E2 08 00 23 22 80 13 01 00 00 00 00 00 C2 [13:14:00]Write i2c OK [13:14:00]MH_I2C_Read... [13:14:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:14:00]Read from MH i2c: E2 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: E2 0E 00 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: E2 0E 00 23 22 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 DC [13:14:00]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:14:00]wFMCommunicate OK [13:14:00]SAM_PROTO_GetShiftState done [13:14:00]FM_GetShiftState done [13:14:00]opened in 1729383750 [13:14:00]opened+sec_in_day 1729470150 [13:14:00]quantity*price = 50041 [13:14:00]sum+1 = 50042 [13:14:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 312 20.10.2024 13:14 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227464 ФПД: 221022902410235 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T131401&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227464&fm=221022902410235&tin=02508201610067®Number=0000000000091685&sum=50000 [13:14:01]StoreToDocumentArchive [13:14:01]shift 533 fd 227464 [13:14:01]save to /storage/0533/doc_00227464 [13:14:01]save last doc name /storage/0533/doc_00227464 to /storage/kkm_last_doc_name [13:14:01]save OK [13:14:01]Clear old archive folders... [13:14:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:14:01]tlvbuf is B6D67010 [13:14:01]SAM_PROTO_ClearQueue [13:14:01]wFMCommunicate request_size=4 [13:14:01]MH_SAM_APDU [13:14:01]CAPDU: 80 09 00 00 [13:14:01]Write to MH i2c: E2 08 00 30 22 80 09 00 00 00 00 00 00 C4 [13:14:01]Write i2c OK [13:14:01]MH_I2C_Read... [13:14:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:14:01]Read from MH i2c: E2 [13:14:01]MH_I2C_Read... [13:14:01]Read from MH i2c: E2 03 00 [13:14:01]MH_I2C_Read... [13:14:01]Read from MH i2c: E2 03 00 30 22 00 90 00 C6 [13:14:01]RAPDU: 90 00 [13:14:01]wFMCommunicate OK [13:14:01]SAM_PROTO_ClearQueue done [13:14:01]KKMCreateOFDPacket [13:14:01]OFDProtocolAddRootSTLVToBuf [13:14:01]FM_MakeSignedData [13:14:01]FM_MakeSignedData [13:14:01]SAM_PROTO_SignData [13:14:01]wFMCommunicate request_size=4 [13:14:01]MH_SAM_APDU [13:14:01]CAPDU: 80 0D 01 02 [13:14:01]Write to MH i2c: E2 08 00 31 22 80 0D 01 02 00 00 00 00 CC [13:14:01]Write i2c OK [13:14:01]MH_I2C_Read... [13:14:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:14:01]Read from MH i2c: E2 [13:14:01]MH_I2C_Read... [13:14:01]Read from MH i2c: E2 03 00 [13:14:01]MH_I2C_Read... [13:14:01]Read from MH i2c: E2 03 00 31 22 00 90 00 C7 [13:14:01]RAPDU: 90 00 [13:14:01]wFMCommunicate OK [13:14:01]wFMCommunicate request_size=255 [13:14:01]MH_SAM_APDU [13:14:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 19 02 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 88 78 03 00 35 04 06 00 C9 [13:14:01]Write to MH i2c: E2 02 01 32 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 19 02 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 88 78 03 00 35 04 06 00 C9 00 00 16 [13:14:01]Write i2c OK [13:14:01]MH_I2C_Read... [13:14:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:14:02]Read from MH i2c: E2 [13:14:02]MH_I2C_Read... [13:14:02]Read from MH i2c: E2 03 00 [13:14:02]MH_I2C_Read... [13:14:02]Read from MH i2c: E2 03 00 32 22 00 90 00 C8 [13:14:02]RAPDU: 90 00 [13:14:02]wFMCommunicate OK [13:14:02]wFMCommunicate request_size=10 [13:14:02]MH_SAM_APDU [13:14:02]CAPDU: 80 0D 02 02 05 04 E7 95 DB FB [13:14:02]Write to MH i2c: E2 0D 00 33 22 80 0D 02 02 05 00 04 E7 95 DB FB 00 00 2F [13:14:02]Write i2c OK [13:14:02]MH_I2C_Read... [13:14:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:14:02]Read from MH i2c: E2 [13:14:02]MH_I2C_Read... [13:14:02]Read from MH i2c: E2 03 00 [13:14:02]MH_I2C_Read... [13:14:02]Read from MH i2c: E2 03 00 33 22 00 90 00 C9 [13:14:02]RAPDU: 90 00 [13:14:02]wFMCommunicate OK [13:14:02]wFMCommunicate request_size=4 [13:14:02]MH_SAM_APDU [13:14:02]CAPDU: 80 0D 03 02 [13:14:02]Write to MH i2c: E2 08 00 34 22 80 0D 03 02 00 00 00 00 D1 [13:14:02]Write i2c OK [13:14:02]MH_I2C_Read... [13:14:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:14:02]Read from MH i2c: E2 [13:14:02]MH_I2C_Read... [13:14:02]Read from MH i2c: E2 0B 00 [13:14:02]MH_I2C_Read... [13:14:02]Read from MH i2c: E2 0B 00 34 22 00 E0 3F 73 A0 1C BF 1F 96 90 00 94 [13:14:02]RAPDU: E0 3F 73 A0 1C BF 1F 96 90 00 [13:14:02]wFMCommunicate OK [13:14:02]SAM_PROTO_SignData done [13:14:02]FM_MakeSignedData done [13:14:02]CreateOFDProtocolMessage [13:14:02]wFMCommunicate request_size=4 [13:14:02]MH_SAM_APDU [13:14:02]CAPDU: 80 11 00 00 [13:14:02]Write to MH i2c: E2 08 00 35 22 80 11 00 00 00 00 00 00 D1 [13:14:02]Write i2c OK [13:14:02]MH_I2C_Read... [13:14:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:14:02]Read from MH i2c: E2 [13:14:02]MH_I2C_Read... [13:14:02]Read from MH i2c: E2 17 00 [13:14:02]MH_I2C_Read... [13:14:02]Read from MH i2c: E2 17 00 35 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 28 [13:14:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:14:02]wFMCommunicate OK [13:14:02]CreateOFDProtocolMessage done [13:14:02]OFDSenderStorePacket 227464 [13:14:02]StoreOFDPacket docnum=227464 [13:14:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 0D 5D 07 01 9D 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 19 02 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 88 78 03 00 35 04 06 00 C9 04 E7 95 DB FB E0 3F 73 A0 1C BF 1F 96 [13:14:02]CheckFolder [13:14:02]dirname=/storage/ofd_packets [13:14:02]CheckFolder done [13:14:02]ProducePacketName [13:14:02]name=ofd_packets/00227464 [13:14:02]NVStorageSaveData ofd_packets/00227464 [13:14:02]File name is /storage/ofd_packets/00227464 [13:14:02]Write 301 bytes [13:14:02]NVStorageSaveData done [13:14:02]OFDSenderStorePacket done [13:14:02]KKMCreateOFDPacket done [13:14:02]NVStorageSaveData kkm_last_timestamp [13:14:02]File name is /storage/kkm_last_timestamp [13:14:02]Write 4 bytes [13:14:02]NVStorageSaveData done [13:14:02]ExternCall_PrintAddStr [13:14:02]wPrintStart [13:14:02]Write to MH i2c: 01 00 00 36 22 58 [13:14:02]Write i2c OK [13:14:02]MH_I2C_Read... [13:14:02]Read from MH i2c: 01 [13:14:02]MH_I2C_Read... [13:14:02]Read from MH i2c: 01 07 00 [13:14:02]MH_I2C_Read... [13:14:02]Read from MH i2c: 01 07 00 36 22 00 00 00 00 00 FF 0F 6D [13:14:02]RasterBufferAndPrint [13:14:02]line Счет N : (1)1962986 [13:14:02]line ИНН: 02508201610067 [13:14:02]line Контрольно-Кассовый Чек [13:14:02]line ПРОДАЖА [13:14:02]line ТРК (МРК, ГНК) : 33 [13:14:02]line Товар: 2710124130 [13:14:02]line Аи-92-К-5 [13:14:02]line 7.480 * 66.90 [13:14:02]line = 500.41 [13:14:02]line НДС 12% НСП 1% [13:14:02]line > о реализуемом товаре [13:14:02]line ОКРУГЛЕНИЕ: -0.41 [13:14:02]line ИТОГО: 500.00 [13:14:02]line Внесено: 500.00 [13:14:02]line СДАЧА: 0.00 [13:14:02]line НСП 1% : 4.43 [13:14:02]line НДС 12% : 53.14 [13:14:02]line Наличными: 500.00 [13:14:02]line Безнал.: 0.00 [13:14:02]line Место: АЗС № 133 "Партнер Нефть" [13:14:02]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:14:02]line СНО: Общий режим [13:14:02]line Чек 312 20.10.2024 13:14 [13:14:02]line Смена: 533 ФФД: 1.0 [13:14:02]line ЗНМ: 0300000091 [13:14:02]line РНМ: 0000000000091685 [13:14:02]line Версия ККМ: 001 [13:14:02]line ФМ: 0000000000871839 [13:14:02]line ФД: 227464 [13:14:02]line ФПД: 221022902410235 [13:14:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T131401&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227464&fm=221022902410235&tin=02508201610067®Number=0000000000091685&sum=50000 [13:14:02]written 0, free lines is 4095 [13:14:02]OFD Sender: Processing packet 227464 [packets to send 38, broken 37] [13:14:02]ProducePacketName [13:14:02]name=ofd_packets/00227464 [13:14:02]OFD Sender: To server: pG, [13:14:02]CommunicateWithHost lk.salyk.kg:30040 [13:14:02]ConnectInit lk.salyk.kg [13:14:02]Connected sock=10 [13:14:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 0D 5D 07 01 9D 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 19 02 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 88 78 03 00 35 04 06 00 C9 04 E7 95 DB FB E0 3F 73 A0 1C BF 1F 96 [13:14: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 33 39 4F 00 00 00 4E B7 47 00 BE 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 33 39 10 04 04 00 88 78 03 00 F4 03 04 00 18 AD 14 67 B6 04 01 00 00 54 81 25 66 15 06 32 4B [13:14:02]CommunicateWithHost err = 0 [13:14:02]CheckOFDResponse [13:14:02]1017 (14) - 77093643461234 [13:14:02]1041 (16) - 0000000000871839 [13:14:02]1040 (4) - 227464 [13:14:02]1012 (4) - 20.10.2024 07:11 [13:14:02]1206 (1) - 0 [13:14:02]OFD Sender: Remove packet 227464 [13:14:02]ProducePacketName [13:14:02]name=ofd_packets/00227464 [13:14:02]NVStorageDeleteData [13:14:03]Write to MH i2c: 01 00 00 60 22 82 [13:14:03]Write i2c OK [13:14:03]MH_I2C_Read... [13:14:03]Read from MH i2c: 01 [13:14:03]MH_I2C_Read... [13:14:03]Read from MH i2c: 01 07 00 [13:14:03]MH_I2C_Read... [13:14:03]Read from MH i2c: 01 07 00 60 22 00 00 00 00 00 02 0D 98 [13:14:03]RasterBufferAndPrint [13:14:03]line [13:14:03]line [13:14:03]line [13:14:03]line [13:14:03]line [13:14:03]written 0, free lines is 3336 [13:14:03]process_action close_receipt done [13:14:03]requested_data is exist [13:14:03]produce_requested_data [13:14:03]requested_item fm.sn is exist - process it [13:14:03]wFMCommunicate request_size=4 [13:14:03]MH_SAM_APDU [13:14:03]CAPDU: 80 11 00 00 [13:14:03]Write to MH i2c: E2 08 00 67 22 80 11 00 00 00 00 00 00 03 [13:14:03]Write i2c OK [13:14:03]MH_I2C_Read... [13:14:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:14:03]Read from MH i2c: E2 [13:14:03]MH_I2C_Read... [13:14:03]Read from MH i2c: E2 17 00 [13:14:03]MH_I2C_Read... [13:14:03]Read from MH i2c: E2 17 00 67 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 5A [13:14:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:14:03]wFMCommunicate OK [13:14:03]requested_item fd.num is exist - process it [13:14:03]SAM_PROTO_GetFieldsCounters [13:14:03]wFMCommunicate request_size=4 [13:14:03]MH_SAM_APDU [13:14:03]CAPDU: 80 13 00 00 [13:14:03]Write to MH i2c: E2 08 00 68 22 80 13 00 00 00 00 00 00 06 [13:14:03]Write i2c OK [13:14:03]MH_I2C_Read... [13:14:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:14:03]Read from MH i2c: E2 [13:14:03]MH_I2C_Read... [13:14:03]Read from MH i2c: E2 62 00 [13:14:03]MH_I2C_Read... [13:14:03]Read from MH i2c: E2 62 00 68 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 88 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 38 01 00 00 5E 04 04 00 38 01 00 00 57 04 04 00 39 01 00 00 19 04 04 00 00 00 00 00 90 00 F4 [13:14:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 88 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 38 01 00 00 5E 04 04 00 38 01 00 00 57 04 04 00 39 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:14:03]wFMCommunicate OK [13:14:03]SAM_PROTO_GetFieldsCounters done [13:14:03]requested_item shift.num is exist - process it [13:14:03]requested_item shift.opened is exist - process it [13:14:03]req_shift_opened [13:14:03]FM_GetShiftState [13:14:03]SAM_PROTO_GetShiftState [13:14:03]wFMCommunicate request_size=4 [13:14:03]MH_SAM_APDU [13:14:03]CAPDU: 80 13 01 00 [13:14:03]Write to MH i2c: E2 08 00 69 22 80 13 01 00 00 00 00 00 08 [13:14:03]Write i2c OK [13:14:03]MH_I2C_Read... [13:14:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:14:03]Read from MH i2c: E2 [13:14:03]MH_I2C_Read... [13:14:03]Read from MH i2c: E2 0E 00 [13:14:03]MH_I2C_Read... [13:14:03]Read from MH i2c: E2 0E 00 69 22 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 22 [13:14:03]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:14:03]wFMCommunicate OK [13:14:03]SAM_PROTO_GetShiftState done [13:14:03]FM_GetShiftState done [13:14:03]req_shift_opened done [13:14:03]requested_item shift.open_date is exist - process it [13:14:03]req_shift_open_date [13:14:03]req_shift_open_date done [13:14:03]produce_requested_data done [13:14:03]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227464,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [13:14:03]process_action_free close_receipt [13:14:03]json_value_free [13:14:03]json_value_free done [13:14:03]process_json_proto returns [13:14:03]Send response to host [13:14:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227464,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [13:14:03]free response buf [13:14:03]execute_script done [13:14:03]execute_script returns [13:14:03]free content buf [13:14:03]Sock 9.Close socket [13:14:03]Sock 9.Thread stoped [13:14:03]OFD Sender: No OFD packet to send [13:14:08]OFD Sender: No OFD packet to send [13:14:13]OFD Sender: No OFD packet to send [13:14:18]OFD Sender: No OFD packet to send [13:14:23]OFD Sender: No OFD packet to send [13:14:28]OFD Sender: No OFD packet to send [13:14:33]OFD Sender: No OFD packet to send [13:14:38]OFD Sender: No OFD packet to send [13:14:43]OFD Sender: No OFD packet to send [13:14:48]OFD Sender: No OFD packet to send [13:14:53]OFD Sender: No OFD packet to send [13:14:58]OFD Sender: No OFD packet to send [13:15:03]OFD Sender: No OFD packet to send [13:15:08]OFD Sender: No OFD packet to send [13:15:13]OFD Sender: No OFD packet to send [13:15:18]OFD Sender: No OFD packet to send [13:15:23]OFD Sender: No OFD packet to send [13:15:28]OFD Sender: No OFD packet to send [13:15:33]OFD Sender: No OFD packet to send [13:15:38]OFD Sender: No OFD packet to send [13:15:43]OFD Sender: No OFD packet to send [13:15:48]OFD Sender: No OFD packet to send [13:15:53]OFD Sender: No OFD packet to send [13:15:58]OFD Sender: No OFD packet to send [13:16:03]OFD Sender: No OFD packet to send [13:16:08]OFD Sender: No OFD packet to send [13:16:13]OFD Sender: No OFD packet to send [13:16:18]OFD Sender: No OFD packet to send [13:16:23]OFD Sender: No OFD packet to send [13:16:28]OFD Sender: No OFD packet to send [13:16:33]OFD Sender: No OFD packet to send [13:16:38]OFD Sender: No OFD packet to send [13:16:43]OFD Sender: No OFD packet to send [13:16:48]OFD Sender: No OFD packet to send [13:16:53]OFD Sender: No OFD packet to send [13:16:58]OFD Sender: No OFD packet to send [13:17:03]OFD Sender: No OFD packet to send [13:17:08]OFD Sender: No OFD packet to send [13:17:13]OFD Sender: No OFD packet to send [13:17:18]OFD Sender: No OFD packet to send [13:17:23]OFD Sender: No OFD packet to send [13:17:28]OFD Sender: No OFD packet to send [13:17:29]accept exits with 8 [13:17:29]New connection [13:17:29]New thread 3066686820 created [13:17:29]Thread 3066543460 joined [13:17:29]Waiting for new connection... [13:17:29] Sock 8.Parse request [13:17:29]Sock 8.Check first char [13:17:29]Sock 8.First char is OK [13:17:29]request: POST /json_proto HTTP/1.0 [13:17:29]Method: POST [13:17:29]URL: /json_proto [13:17:29]Method is POST - this is cgi request [13:17:29]url: /json_proto [13:17:29]query_string will be loaded in cgi processing [13:17:29]execute_cgi json_proto POST (null) [13:17:29]execute_cgi path=json_proto method=POST [13:17:29]POST find Content-Length [13:17:29]Host: 172.17.44.195:8080 [13:17:29]Content-Length: 683 [13:17:29]Content-Type: application/json [13:17:29] [13:17:29]POST finish read [13:17:29]Found Content-Length = 683 [13:17:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962989", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:29]execute_script... [13:17: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)1962989", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:29]POST & json_proto [13:17:29]process_json_proto [13:17:29]json parsed OK: [13:17:29]protocol is kg_v1.0 [13:17:29]action value=close_receipt [13:17:29]process_action close_receipt [13:17:29]cmd_close_receipt [13:17:29]MH_GetDate [13:17:29]Write to MH i2c: F0 00 00 6A 22 7B [13:17:29]Write i2c OK [13:17:29]MH_I2C_Read... [13:17:29]Read from MH i2c: F0 [13:17:29]MH_I2C_Read... [13:17:29]Read from MH i2c: F0 09 00 [13:17:29]MH_I2C_Read... [13:17:29]Read from MH i2c: F0 09 00 6A 22 00 EA 02 15 67 82 C9 CF 66 6C [13:17:29]GetLastDocTimeStamp 1729430041 [13:17:29]current date 1729430250 [13:17:29]FM_GetShiftState [13:17:29]SAM_PROTO_GetShiftState [13:17:29]wFMCommunicate request_size=4 [13:17:29]MH_SAM_APDU [13:17:29]CAPDU: 80 13 01 00 [13:17:29]Write to MH i2c: E2 08 00 6B 22 80 13 01 00 00 00 00 00 0A [13:17:29]Write i2c OK [13:17:29]MH_I2C_Read... [13:17:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:29]Read from MH i2c: E2 [13:17:29]MH_I2C_Read... [13:17:29]Read from MH i2c: E2 0E 00 [13:17:29]MH_I2C_Read... [13:17:29]Read from MH i2c: E2 0E 00 6B 22 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 24 [13:17:29]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:17:29]wFMCommunicate OK [13:17:29]SAM_PROTO_GetShiftState done [13:17:29]FM_GetShiftState done [13:17:29]opened in 1729383750 [13:17:29]opened+sec_in_day 1729470150 [13:17:29]quantity*price = 150056 [13:17:29]sum+1 = 150058 [13:17:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 313 20.10.2024 13:17 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227465 ФПД: 22002500011726 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T131730&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227465&fm=22002500011726&tin=02508201610067®Number=0000000000091685&sum=150000 [13:17:30]StoreToDocumentArchive [13:17:30]shift 533 fd 227465 [13:17:30]save to /storage/0533/doc_00227465 [13:17:30]save last doc name /storage/0533/doc_00227465 to /storage/kkm_last_doc_name [13:17:30]save OK [13:17:30]Clear old archive folders... [13:17:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:17:30]tlvbuf is 0183E340 [13:17:30]SAM_PROTO_ClearQueue [13:17:30]wFMCommunicate request_size=4 [13:17:30]MH_SAM_APDU [13:17:30]CAPDU: 80 09 00 00 [13:17:30]Write to MH i2c: E2 08 00 78 22 80 09 00 00 00 00 00 00 0C [13:17:30]Write i2c OK [13:17:30]MH_I2C_Read... [13:17:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:17:30]Read from MH i2c: E2 [13:17:30]MH_I2C_Read... [13:17:30]Read from MH i2c: E2 03 00 [13:17:30]MH_I2C_Read... [13:17:30]Read from MH i2c: E2 03 00 78 22 00 90 00 0E [13:17:30]RAPDU: 90 00 [13:17:30]wFMCommunicate OK [13:17:30]SAM_PROTO_ClearQueue done [13:17:30]KKMCreateOFDPacket [13:17:30]OFDProtocolAddRootSTLVToBuf [13:17:30]FM_MakeSignedData [13:17:30]FM_MakeSignedData [13:17:30]SAM_PROTO_SignData [13:17:30]wFMCommunicate request_size=4 [13:17:30]MH_SAM_APDU [13:17:30]CAPDU: 80 0D 01 02 [13:17:30]Write to MH i2c: E2 08 00 79 22 80 0D 01 02 00 00 00 00 14 [13:17:30]Write i2c OK [13:17:30]MH_I2C_Read... [13:17:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:17:30]Read from MH i2c: E2 [13:17:30]MH_I2C_Read... [13:17:30]Read from MH i2c: E2 03 00 [13:17:30]MH_I2C_Read... [13:17:30]Read from MH i2c: E2 03 00 79 22 00 90 00 0F [13:17:30]RAPDU: 90 00 [13:17:30]wFMCommunicate OK [13:17:30]wFMCommunicate request_size=255 [13:17:30]MH_SAM_APDU [13:17:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 EA 02 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 89 78 03 00 35 04 06 00 14 [13:17:30]Write to MH i2c: E2 02 01 7A 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 EA 02 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 89 78 03 00 35 04 06 00 14 00 00 C5 [13:17:30]Write i2c OK [13:17:30]MH_I2C_Read... [13:17:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:30]Read from MH i2c: E2 [13:17:30]MH_I2C_Read... [13:17:30]Read from MH i2c: E2 03 00 [13:17:30]MH_I2C_Read... [13:17:30]Read from MH i2c: E2 03 00 7A 22 00 90 00 10 [13:17:30]RAPDU: 90 00 [13:17:30]wFMCommunicate OK [13:17:30]wFMCommunicate request_size=10 [13:17:30]MH_SAM_APDU [13:17:30]CAPDU: 80 0D 02 02 05 02 DB 32 86 CE [13:17:30]Write to MH i2c: E2 0D 00 7B 22 80 0D 02 02 05 00 02 DB 32 86 CE 00 00 84 [13:17:30]Write i2c OK [13:17:30]MH_I2C_Read... [13:17:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:30]Read from MH i2c: E2 [13:17:30]MH_I2C_Read... [13:17:30]Read from MH i2c: E2 03 00 [13:17:30]MH_I2C_Read... [13:17:30]Read from MH i2c: E2 03 00 7B 22 00 90 00 11 [13:17:30]RAPDU: 90 00 [13:17:30]wFMCommunicate OK [13:17:30]wFMCommunicate request_size=4 [13:17:30]MH_SAM_APDU [13:17:30]CAPDU: 80 0D 03 02 [13:17:30]Write to MH i2c: E2 08 00 7C 22 80 0D 03 02 00 00 00 00 19 [13:17:30]Write i2c OK [13:17:30]MH_I2C_Read... [13:17:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:17:30]Read from MH i2c: E2 [13:17:30]MH_I2C_Read... [13:17:30]Read from MH i2c: E2 0B 00 [13:17:30]MH_I2C_Read... [13:17:30]Read from MH i2c: E2 0B 00 7C 22 00 16 B8 00 55 25 4C 61 47 90 00 56 [13:17:30]RAPDU: 16 B8 00 55 25 4C 61 47 90 00 [13:17:30]wFMCommunicate OK [13:17:30]SAM_PROTO_SignData done [13:17:30]FM_MakeSignedData done [13:17:30]CreateOFDProtocolMessage [13:17:30]wFMCommunicate request_size=4 [13:17:30]MH_SAM_APDU [13:17:30]CAPDU: 80 11 00 00 [13:17:30]Write to MH i2c: E2 08 00 7D 22 80 11 00 00 00 00 00 00 19 [13:17:30]Write i2c OK [13:17:30]MH_I2C_Read... [13:17:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:30]Read from MH i2c: E2 [13:17:30]MH_I2C_Read... [13:17:30]Read from MH i2c: E2 17 00 [13:17:30]MH_I2C_Read... [13:17:30]Read from MH i2c: E2 17 00 7D 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 70 [13:17:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:17:30]wFMCommunicate OK [13:17:30]CreateOFDProtocolMessage done [13:17:30]OFDSenderStorePacket 227465 [13:17:30]StoreOFDPacket docnum=227465 [13:17:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 A5 6A 07 01 E8 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 EA 02 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 89 78 03 00 35 04 06 00 14 02 DB 32 86 CE 16 B8 00 55 25 4C 61 47 [13:17:30]CheckFolder [13:17:30]dirname=/storage/ofd_packets [13:17:30]CheckFolder done [13:17:30]ProducePacketName [13:17:30]name=ofd_packets/00227465 [13:17:30]NVStorageSaveData ofd_packets/00227465 [13:17:30]File name is /storage/ofd_packets/00227465 [13:17:30]Write 301 bytes [13:17:30]NVStorageSaveData done [13:17:30]OFDSenderStorePacket done [13:17:30]KKMCreateOFDPacket done [13:17:30]NVStorageSaveData kkm_last_timestamp [13:17:30]File name is /storage/kkm_last_timestamp [13:17:30]Write 4 bytes [13:17:30]NVStorageSaveData done [13:17:30]ExternCall_PrintAddStr [13:17:30]wPrintStart [13:17:30]Write to MH i2c: 01 00 00 7E 22 A0 [13:17:30]Write i2c OK [13:17:30]MH_I2C_Read... [13:17:30]Read from MH i2c: 01 [13:17:30]MH_I2C_Read... [13:17:30]Read from MH i2c: 01 07 00 [13:17:30]MH_I2C_Read... [13:17:30]Read from MH i2c: 01 07 00 7E 22 00 00 00 00 00 FF 0F B5 [13:17:30]RasterBufferAndPrint [13:17:30]line Счет N : (1)1962989 [13:17:30]line ИНН: 02508201610067 [13:17:30]line Контрольно-Кассовый Чек [13:17:30]line ПРОДАЖА [13:17:30]line ТРК (МРК, ГНК) : 53 [13:17:30]line Товар: 2710124130 [13:17:30]line Аи-92-К-5 [13:17:30]line 22.430 * 66.90 [13:17:30]line = 1500.57 [13:17:30]line НДС 12% НСП 1% [13:17:30]line > о реализуемом товаре [13:17:30]line ОКРУГЛЕНИЕ: -0.57 [13:17:30]line ИТОГО: 1500.00 [13:17:30]line Внесено: 1500.00 [13:17:30]line СДАЧА: 0.00 [13:17:30]line НСП 1% : 13.28 [13:17:30]line НДС 12% : 159.35 [13:17:30]line Наличными: 1500.00 [13:17:30]line Безнал.: 0.00 [13:17:30]line Место: АЗС № 133 "Партнер Нефть" [13:17:30]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:17:30]line СНО: Общий режим [13:17:30]line Чек 313 20.10.2024 13:17 [13:17:30]line Смена: 533 ФФД: 1.0 [13:17:30]line ЗНМ: 0300000091 [13:17:30]line РНМ: 0000000000091685 [13:17:30]line Версия ККМ: 001 [13:17:30]line ФМ: 0000000000871839 [13:17:30]line ФД: 227465 [13:17:30]line ФПД: 22002500011726 [13:17:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T131730&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227465&fm=22002500011726&tin=02508201610067®Number=0000000000091685&sum=150000 [13:17:31]OFD Sender: Processing packet 227465 [packets to send 38, broken 37] [13:17:31]ProducePacketName [13:17:31]name=ofd_packets/00227465 [13:17:31]OFD Sender: To server: pG, [13:17:31]CommunicateWithHost lk.salyk.kg:30040 [13:17:31]ConnectInit lk.salyk.kg [13:17:31]written 0, free lines is 4095 [13:17:31]Connected sock=10 [13:17: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 33 39 0F 01 00 00 A5 6A 07 01 E8 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 EA 02 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 89 78 03 00 35 04 06 00 14 02 DB 32 86 CE 16 B8 00 55 25 4C 61 47 [13:17: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 33 39 4F 00 00 00 21 65 47 00 05 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 33 39 10 04 04 00 89 78 03 00 F4 03 04 00 E9 AD 14 67 B6 04 01 00 00 D6 11 04 96 2C 24 B2 71 [13:17:31]CommunicateWithHost err = 0 [13:17:31]CheckOFDResponse [13:17:31]1017 (14) - 77093643461234 [13:17:31]1041 (16) - 0000000000871839 [13:17:31]1040 (4) - 227465 [13:17:31]1012 (4) - 20.10.2024 07:14 [13:17:31]1206 (1) - 0 [13:17:31]OFD Sender: Remove packet 227465 [13:17:31]ProducePacketName [13:17:31]name=ofd_packets/00227465 [13:17:31]NVStorageDeleteData [13:17:31]Write to MH i2c: 01 00 00 A8 22 CA [13:17:31]Write i2c OK [13:17:31]MH_I2C_Read... [13:17:31]Read from MH i2c: 01 [13:17:31]MH_I2C_Read... [13:17:31]Read from MH i2c: 01 07 00 [13:17:31]MH_I2C_Read... [13:17:31]Read from MH i2c: 01 07 00 A8 22 00 00 00 00 00 0C 0D EA [13:17:31]RasterBufferAndPrint [13:17:31]line [13:17:31]line [13:17:31]line [13:17:31]line [13:17:31]line [13:17:31]written 0, free lines is 3346 [13:17:31]process_action close_receipt done [13:17:31]requested_data is exist [13:17:31]produce_requested_data [13:17:31]requested_item fm.sn is exist - process it [13:17:31]wFMCommunicate request_size=4 [13:17:31]MH_SAM_APDU [13:17:31]CAPDU: 80 11 00 00 [13:17:31]Write to MH i2c: E2 08 00 AF 22 80 11 00 00 00 00 00 00 4B [13:17:31]Write i2c OK [13:17:31]MH_I2C_Read... [13:17:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:31]Read from MH i2c: E2 [13:17:31]MH_I2C_Read... [13:17:31]Read from MH i2c: E2 17 00 [13:17:31]MH_I2C_Read... [13:17:31]Read from MH i2c: E2 17 00 AF 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A2 [13:17:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:17:31]wFMCommunicate OK [13:17:31]requested_item fd.num is exist - process it [13:17:31]SAM_PROTO_GetFieldsCounters [13:17:31]wFMCommunicate request_size=4 [13:17:31]MH_SAM_APDU [13:17:31]CAPDU: 80 13 00 00 [13:17:31]Write to MH i2c: E2 08 00 B0 22 80 13 00 00 00 00 00 00 4E [13:17:31]Write i2c OK [13:17:31]MH_I2C_Read... [13:17:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:17:31]Read from MH i2c: E2 [13:17:31]MH_I2C_Read... [13:17:31]Read from MH i2c: E2 62 00 [13:17:31]MH_I2C_Read... [13:17:31]Read from MH i2c: E2 62 00 B0 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 89 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 39 01 00 00 5E 04 04 00 39 01 00 00 57 04 04 00 3A 01 00 00 19 04 04 00 00 00 00 00 90 00 40 [13:17: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 89 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 39 01 00 00 5E 04 04 00 39 01 00 00 57 04 04 00 3A 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:17:31]wFMCommunicate OK [13:17:31]SAM_PROTO_GetFieldsCounters done [13:17:31]requested_item shift.num is exist - process it [13:17:31]requested_item shift.opened is exist - process it [13:17:31]req_shift_opened [13:17:31]FM_GetShiftState [13:17:31]SAM_PROTO_GetShiftState [13:17:31]wFMCommunicate request_size=4 [13:17:31]MH_SAM_APDU [13:17:31]CAPDU: 80 13 01 00 [13:17:31]Write to MH i2c: E2 08 00 B1 22 80 13 01 00 00 00 00 00 50 [13:17:31]Write i2c OK [13:17:31]MH_I2C_Read... [13:17:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:31]Read from MH i2c: E2 [13:17:31]MH_I2C_Read... [13:17:31]Read from MH i2c: E2 0E 00 [13:17:31]MH_I2C_Read... [13:17:31]Read from MH i2c: E2 0E 00 B1 22 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 6A [13:17:31]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:17:31]wFMCommunicate OK [13:17:31]SAM_PROTO_GetShiftState done [13:17:31]FM_GetShiftState done [13:17:32]req_shift_opened done [13:17:32]requested_item shift.open_date is exist - process it [13:17:32]req_shift_open_date [13:17:32]req_shift_open_date done [13:17:32]produce_requested_data done [13:17:32]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227465,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [13:17:32]process_action_free close_receipt [13:17:32]json_value_free [13:17:32]json_value_free done [13:17:32]process_json_proto returns [13:17:32]Send response to host [13:17:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227465,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [13:17:32]free response buf [13:17:32]execute_script done [13:17:32]execute_script returns [13:17:32]free content buf [13:17:32]Sock 8.Close socket [13:17:32]Sock 8.Thread stoped [13:17:32]OFD Sender: No OFD packet to send [13:17:32]accept exits with 9 [13:17:32]New connection [13:17:32]New thread 3066543460 created [13:17:32]Thread 3066686820 joined [13:17:32]Waiting for new connection... [13:17:32] Sock 9.Parse request [13:17:32]Sock 9.Check first char [13:17:32]Sock 9.First char is OK [13:17:32]request: POST /json_proto HTTP/1.0 [13:17:32]Method: POST [13:17:32]URL: /json_proto [13:17:32]Method is POST - this is cgi request [13:17:32]url: /json_proto [13:17:32]query_string will be loaded in cgi processing [13:17:32]execute_cgi json_proto POST (null) [13:17:32]execute_cgi path=json_proto method=POST [13:17:32]POST find Content-Length [13:17:32]Host: 172.17.44.195:8080 [13:17:32]Content-Length: 664 [13:17:32]Content-Type: application/json [13:17:32] [13:17:32]POST finish read [13:17:32]Found Content-Length = 664 [13:17:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962988", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:32]execute_script... [13:17:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962988", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:32]POST & json_proto [13:17:32]process_json_proto [13:17:32]json parsed OK: [13:17:32]protocol is kg_v1.0 [13:17:32]action value=close_receipt [13:17:32]process_action close_receipt [13:17:32]cmd_close_receipt [13:17:32]MH_GetDate [13:17:32]Write to MH i2c: F0 00 00 B2 22 C3 [13:17:32]Write i2c OK [13:17:32]MH_I2C_Read... [13:17:32]Read from MH i2c: F0 [13:17:32]MH_I2C_Read... [13:17:32]Read from MH i2c: F0 09 00 [13:17:32]MH_I2C_Read... [13:17:32]Read from MH i2c: F0 09 00 B2 22 00 ED 02 15 67 82 C9 CF 66 B7 [13:17:32]GetLastDocTimeStamp 1729430250 [13:17:32]current date 1729430253 [13:17:32]FM_GetShiftState [13:17:32]SAM_PROTO_GetShiftState [13:17:32]wFMCommunicate request_size=4 [13:17:32]MH_SAM_APDU [13:17:32]CAPDU: 80 13 01 00 [13:17:32]Write to MH i2c: E2 08 00 B3 22 80 13 01 00 00 00 00 00 52 [13:17:32]Write i2c OK [13:17:32]MH_I2C_Read... [13:17:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:32]Read from MH i2c: E2 [13:17:32]MH_I2C_Read... [13:17:32]Read from MH i2c: E2 0E 00 [13:17:32]MH_I2C_Read... [13:17:32]Read from MH i2c: E2 0E 00 B3 22 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 6C [13:17:32]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:17:32]wFMCommunicate OK [13:17:32]SAM_PROTO_GetShiftState done [13:17:32]FM_GetShiftState done [13:17:32]opened in 1729383750 [13:17:32]opened+sec_in_day 1729470150 [13:17:32]quantity*price = 100000 [13:17:32]sum+1 = 100002 [13:17:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 314 20.10.2024 13:17 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227466 ФПД: 168013434682970 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T131733&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227466&fm=168013434682970&tin=02508201610067®Number=0000000000091685&sum=100000 [13:17:33]StoreToDocumentArchive [13:17:33]shift 533 fd 227466 [13:17:33]save to /storage/0533/doc_00227466 [13:17:33]save last doc name /storage/0533/doc_00227466 to /storage/kkm_last_doc_name [13:17:33]save OK [13:17:33]Clear old archive folders... [13:17:33]ProcessDocumentItem done err = 0, tmpTLVsize=244 [13:17:33]tlvbuf is B6E998A0 [13:17:33]SAM_PROTO_ClearQueue [13:17:33]wFMCommunicate request_size=4 [13:17:33]MH_SAM_APDU [13:17:33]CAPDU: 80 09 00 00 [13:17:33]Write to MH i2c: E2 08 00 C0 22 80 09 00 00 00 00 00 00 54 [13:17:33]Write i2c OK [13:17:33]MH_I2C_Read... [13:17:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:17:33]Read from MH i2c: E2 [13:17:33]MH_I2C_Read... [13:17:33]Read from MH i2c: E2 03 00 [13:17:33]MH_I2C_Read... [13:17:33]Read from MH i2c: E2 03 00 C0 22 00 90 00 56 [13:17:33]RAPDU: 90 00 [13:17:33]wFMCommunicate OK [13:17:33]SAM_PROTO_ClearQueue done [13:17:33]KKMCreateOFDPacket [13:17:33]OFDProtocolAddRootSTLVToBuf [13:17:33]FM_MakeSignedData [13:17:33]FM_MakeSignedData [13:17:33]SAM_PROTO_SignData [13:17:33]wFMCommunicate request_size=4 [13:17:33]MH_SAM_APDU [13:17:33]CAPDU: 80 0D 01 02 [13:17:33]Write to MH i2c: E2 08 00 C1 22 80 0D 01 02 00 00 00 00 5C [13:17:33]Write i2c OK [13:17:33]MH_I2C_Read... [13:17:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:17:33]Read from MH i2c: E2 [13:17:33]MH_I2C_Read... [13:17:33]Read from MH i2c: E2 03 00 [13:17:33]MH_I2C_Read... [13:17:33]Read from MH i2c: E2 03 00 C1 22 00 90 00 57 [13:17:33]RAPDU: 90 00 [13:17:33]wFMCommunicate OK [13:17:33]wFMCommunicate request_size=253 [13:17:33]MH_SAM_APDU [13:17:33]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 ED 02 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8A 78 03 00 35 04 06 00 98 CE AD 17 7E 5A [13:17:33]Write to MH i2c: E2 00 01 C2 22 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 ED 02 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8A 78 03 00 35 04 06 00 98 CE AD 17 7E 5A 00 00 9A [13:17:33]Write i2c OK [13:17:33]MH_I2C_Read... [13:17:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:34]Read from MH i2c: E2 [13:17:34]MH_I2C_Read... [13:17:34]Read from MH i2c: E2 03 00 [13:17:34]MH_I2C_Read... [13:17:34]Read from MH i2c: E2 03 00 C2 22 00 90 00 58 [13:17:34]RAPDU: 90 00 [13:17:34]wFMCommunicate OK [13:17:34]wFMCommunicate request_size=4 [13:17:34]MH_SAM_APDU [13:17:34]CAPDU: 80 0D 03 02 [13:17:34]Write to MH i2c: E2 08 00 C3 22 80 0D 03 02 00 00 00 00 60 [13:17:34]Write i2c OK [13:17:34]MH_I2C_Read... [13:17:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:17:34]Read from MH i2c: E2 [13:17:34]MH_I2C_Read... [13:17:34]Read from MH i2c: E2 0B 00 [13:17:34]MH_I2C_Read... [13:17:34]Read from MH i2c: E2 0B 00 C3 22 00 F8 97 E7 6B CA 65 8E 90 90 00 8F [13:17:34]RAPDU: F8 97 E7 6B CA 65 8E 90 90 00 [13:17:34]wFMCommunicate OK [13:17:34]SAM_PROTO_SignData done [13:17:34]FM_MakeSignedData done [13:17:34]CreateOFDProtocolMessage [13:17:34]wFMCommunicate request_size=4 [13:17:34]MH_SAM_APDU [13:17:34]CAPDU: 80 11 00 00 [13:17:34]Write to MH i2c: E2 08 00 C4 22 80 11 00 00 00 00 00 00 60 [13:17:34]Write i2c OK [13:17:34]MH_I2C_Read... [13:17:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:34]Read from MH i2c: E2 [13:17:34]MH_I2C_Read... [13:17:34]Read from MH i2c: E2 17 00 [13:17:34]MH_I2C_Read... [13:17:34]Read from MH i2c: E2 17 00 C4 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B7 [13:17:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:17:34]wFMCommunicate OK [13:17:34]CreateOFDProtocolMessage done [13:17:34]OFDSenderStorePacket 227466 [13:17:34]StoreOFDPacket docnum=227466 [13:17:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 83 E1 00 01 4A 7F 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 ED 02 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8A 78 03 00 35 04 06 00 98 CE AD 17 7E 5A F8 97 E7 6B CA 65 8E 90 [13:17:34]CheckFolder [13:17:34]dirname=/storage/ofd_packets [13:17:34]CheckFolder done [13:17:34]ProducePacketName [13:17:34]name=ofd_packets/00227466 [13:17:34]NVStorageSaveData ofd_packets/00227466 [13:17:34]File name is /storage/ofd_packets/00227466 [13:17:34]Write 294 bytes [13:17:34]NVStorageSaveData done [13:17:34]OFDSenderStorePacket done [13:17:34]KKMCreateOFDPacket done [13:17:34]NVStorageSaveData kkm_last_timestamp [13:17:34]File name is /storage/kkm_last_timestamp [13:17:34]Write 4 bytes [13:17:34]NVStorageSaveData done [13:17:34]ExternCall_PrintAddStr [13:17:34]wPrintStart [13:17:34]Write to MH i2c: 01 00 00 C5 22 E7 [13:17:34]Write i2c OK [13:17:34]MH_I2C_Read... [13:17:34]Read from MH i2c: 01 [13:17:34]MH_I2C_Read... [13:17:34]Read from MH i2c: 01 07 00 [13:17:34]MH_I2C_Read... [13:17:34]Read from MH i2c: 01 07 00 C5 22 00 00 00 00 00 FF 0F FC [13:17:34]RasterBufferAndPrint [13:17:34]line Счет N : (1)1962988 [13:17:34]line ИНН: 02508201610067 [13:17:34]line Контрольно-Кассовый Чек [13:17:34]line ПРОДАЖА [13:17:34]line ТРК (МРК, ГНК) : 42 [13:17:34]line Товар: 2710124130 [13:17:34]line SU-92 [13:17:34]line 14.620 * 68.40 [13:17:34]line = 1000.01 [13:17:34]line НДС 12% НСП 1% [13:17:34]line > о реализуемом товаре [13:17:34]line ОКРУГЛЕНИЕ: -0.01 [13:17:34]line ИТОГО: 1000.00 [13:17:34]line Внесено: 1000.00 [13:17:34]line СДАЧА: 0.00 [13:17:34]line НСП 1% : 8.85 [13:17:34]line НДС 12% : 106.20 [13:17:34]line Наличными: 1000.00 [13:17:34]line Безнал.: 0.00 [13:17:34]line Место: АЗС № 133 "Партнер Нефть" [13:17:34]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:17:34]line СНО: Общий режим [13:17:34]line Чек 314 20.10.2024 13:17 [13:17:34]line Смена: 533 ФФД: 1.0 [13:17:34]line ЗНМ: 0300000091 [13:17:34]line РНМ: 0000000000091685 [13:17:34]line Версия ККМ: 001 [13:17:34]line ФМ: 0000000000871839 [13:17:34]line ФД: 227466 [13:17:34]line ФПД: 168013434682970 [13:17:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T131733&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227466&fm=168013434682970&tin=02508201610067®Number=0000000000091685&sum=100000 [13:17:34]OFD Sender: Processing packet 227466 [packets to send 38, broken 37] [13:17:34]ProducePacketName [13:17:34]name=ofd_packets/00227466 [13:17:34]OFD Sender: To server: pG, [13:17:34]CommunicateWithHost lk.salyk.kg:30040 [13:17:34]ConnectInit lk.salyk.kg [13:17:34]written 0, free lines is 4095 [13:17:34]Connected sock=11 [13:17:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 83 E1 00 01 4A 7F 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 ED 02 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8A 78 03 00 35 04 06 00 98 CE AD 17 7E 5A F8 97 E7 6B CA 65 8E 90 [13:17: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 33 39 4F 00 00 00 A4 5D 47 00 9D 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 33 39 10 04 04 00 8A 78 03 00 F4 03 04 00 EC AD 14 67 B6 04 01 00 00 6C F3 4C 6A CB 76 BC FF [13:17:35]CommunicateWithHost err = 0 [13:17:35]CheckOFDResponse [13:17:35]1017 (14) - 77093643461234 [13:17:35]1041 (16) - 0000000000871839 [13:17:35]1040 (4) - 227466 [13:17:35]1012 (4) - 20.10.2024 07:14 [13:17:35]1206 (1) - 0 [13:17:35]OFD Sender: Remove packet 227466 [13:17:35]ProducePacketName [13:17:35]name=ofd_packets/00227466 [13:17:35]NVStorageDeleteData [13:17:35]Write to MH i2c: 01 00 00 EF 22 11 [13:17:35]Write i2c OK [13:17:35]MH_I2C_Read... [13:17:35]Read from MH i2c: 01 [13:17:35]MH_I2C_Read... [13:17:35]Read from MH i2c: 01 07 00 [13:17:35]MH_I2C_Read... [13:17:35]Read from MH i2c: 01 07 00 EF 22 00 00 00 00 00 04 0D 29 [13:17:35]RasterBufferAndPrint [13:17:35]line [13:17:35]line [13:17:35]line [13:17:35]line [13:17:35]line [13:17:35]written 0, free lines is 3344 [13:17:35]process_action close_receipt done [13:17:35]requested_data is exist [13:17:35]produce_requested_data [13:17:35]requested_item fm.sn is exist - process it [13:17:35]wFMCommunicate request_size=4 [13:17:35]MH_SAM_APDU [13:17:35]CAPDU: 80 11 00 00 [13:17:35]Write to MH i2c: E2 08 00 F6 22 80 11 00 00 00 00 00 00 92 [13:17:35]Write i2c OK [13:17:35]MH_I2C_Read... [13:17:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:35]Read from MH i2c: E2 [13:17:35]MH_I2C_Read... [13:17:35]Read from MH i2c: E2 17 00 [13:17:35]MH_I2C_Read... [13:17:35]Read from MH i2c: E2 17 00 F6 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E9 [13:17:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:17:35]wFMCommunicate OK [13:17:35]requested_item fd.num is exist - process it [13:17:35]SAM_PROTO_GetFieldsCounters [13:17:35]wFMCommunicate request_size=4 [13:17:35]MH_SAM_APDU [13:17:35]CAPDU: 80 13 00 00 [13:17:35]Write to MH i2c: E2 08 00 F7 22 80 13 00 00 00 00 00 00 95 [13:17:35]Write i2c OK [13:17:35]MH_I2C_Read... [13:17:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:17:35]Read from MH i2c: E2 [13:17:35]MH_I2C_Read... [13:17:35]Read from MH i2c: E2 62 00 [13:17:35]MH_I2C_Read... [13:17:35]Read from MH i2c: E2 62 00 F7 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 8A 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3B 01 00 00 19 04 04 00 00 00 00 00 90 00 8B [13:17:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 8A 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3B 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:17:35]wFMCommunicate OK [13:17:35]SAM_PROTO_GetFieldsCounters done [13:17:35]requested_item shift.num is exist - process it [13:17:35]requested_item shift.opened is exist - process it [13:17:35]req_shift_opened [13:17:35]FM_GetShiftState [13:17:35]SAM_PROTO_GetShiftState [13:17:35]wFMCommunicate request_size=4 [13:17:35]MH_SAM_APDU [13:17:35]CAPDU: 80 13 01 00 [13:17:35]Write to MH i2c: E2 08 00 F8 22 80 13 01 00 00 00 00 00 97 [13:17:35]Write i2c OK [13:17:35]MH_I2C_Read... [13:17:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:35]Read from MH i2c: E2 [13:17:35]MH_I2C_Read... [13:17:35]Read from MH i2c: E2 0E 00 [13:17:35]MH_I2C_Read... [13:17:35]Read from MH i2c: E2 0E 00 F8 22 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 B1 [13:17:35]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:17:35]wFMCommunicate OK [13:17:35]SAM_PROTO_GetShiftState done [13:17:35]FM_GetShiftState done [13:17:35]req_shift_opened done [13:17:35]requested_item shift.open_date is exist - process it [13:17:35]req_shift_open_date [13:17:35]req_shift_open_date done [13:17:35]produce_requested_data done [13:17:35]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227466,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [13:17:35]process_action_free close_receipt [13:17:35]json_value_free [13:17:35]json_value_free done [13:17:35]process_json_proto returns [13:17:35]Send response to host [13:17:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227466,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [13:17:35]free response buf [13:17:35]execute_script done [13:17:35]execute_script returns [13:17:35]free content buf [13:17:35]Sock 9.Close socket [13:17:35]Sock 9.Thread stoped [13:17:35]OFD Sender: No OFD packet to send [13:17:40]OFD Sender: No OFD packet to send [13:17:45]OFD Sender: No OFD packet to send [13:17:50]OFD Sender: No OFD packet to send [13:17:55]OFD Sender: No OFD packet to send [13:18:00]OFD Sender: No OFD packet to send [13:18:05]OFD Sender: No OFD packet to send [13:18:10]OFD Sender: No OFD packet to send [13:18:15]OFD Sender: No OFD packet to send [13:18:20]OFD Sender: No OFD packet to send [13:18:25]OFD Sender: No OFD packet to send [13:18:30]OFD Sender: No OFD packet to send [13:18:35]OFD Sender: No OFD packet to send [13:18:40]OFD Sender: No OFD packet to send [13:18:45]OFD Sender: No OFD packet to send [13:18:46]accept exits with 8 [13:18:46]New connection [13:18:46]New thread 3066686820 created [13:18:46]Thread 3066543460 joined [13:18:46]Waiting for new connection... [13:18:46] Sock 8.Parse request [13:18:46]Sock 8.Check first char [13:18:46]Sock 8.First char is OK [13:18:46]request: POST /json_proto HTTP/1.0 [13:18:46]Method: POST [13:18:46]URL: /json_proto [13:18:46]Method is POST - this is cgi request [13:18:46]url: /json_proto [13:18:46]query_string will be loaded in cgi processing [13:18:46]execute_cgi json_proto POST (null) [13:18:46]execute_cgi path=json_proto method=POST [13:18:46]POST find Content-Length [13:18:46]Host: 172.17.44.195:8080 [13:18:46]Content-Length: 664 [13:18:46]Content-Type: application/json [13:18:46] [13:18:46]POST finish read [13:18:46]Found Content-Length = 664 [13:18:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962990", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:18:46]execute_script... [13:18: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)1962990", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:18:46]POST & json_proto [13:18:46]process_json_proto [13:18:46]json parsed OK: [13:18:46]protocol is kg_v1.0 [13:18:46]action value=close_receipt [13:18:46]process_action close_receipt [13:18:46]cmd_close_receipt [13:18:46]MH_GetDate [13:18:46]Write to MH i2c: F0 00 00 F9 22 0A [13:18:46]Write i2c OK [13:18:46]MH_I2C_Read... [13:18:46]Read from MH i2c: F0 [13:18:46]MH_I2C_Read... [13:18:46]Read from MH i2c: F0 09 00 [13:18:46]MH_I2C_Read... [13:18:46]Read from MH i2c: F0 09 00 F9 22 00 37 03 15 67 82 C9 CF 66 49 [13:18:46]GetLastDocTimeStamp 1729430253 [13:18:46]current date 1729430327 [13:18:46]FM_GetShiftState [13:18:46]SAM_PROTO_GetShiftState [13:18:46]wFMCommunicate request_size=4 [13:18:46]MH_SAM_APDU [13:18:46]CAPDU: 80 13 01 00 [13:18:46]Write to MH i2c: E2 08 00 FA 22 80 13 01 00 00 00 00 00 99 [13:18:46]Write i2c OK [13:18:46]MH_I2C_Read... [13:18:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:46]Read from MH i2c: E2 [13:18:46]MH_I2C_Read... [13:18:46]Read from MH i2c: E2 0E 00 [13:18:46]MH_I2C_Read... [13:18:46]Read from MH i2c: E2 0E 00 FA 22 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 B3 [13:18:46]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:18:46]wFMCommunicate OK [13:18:46]SAM_PROTO_GetShiftState done [13:18:46]FM_GetShiftState done [13:18:46]opened in 1729383750 [13:18:46]opened+sec_in_day 1729470150 [13:18:46]quantity*price = 100000 [13:18:46]sum+1 = 100002 [13:18:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 315 20.10.2024 13:18 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227467 ФПД: 23686637339044 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T131847&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227467&fm=23686637339044&tin=02508201610067®Number=0000000000091685&sum=100000 [13:18:47]StoreToDocumentArchive [13:18:47]shift 533 fd 227467 [13:18:47]save to /storage/0533/doc_00227467 [13:18:47]save last doc name /storage/0533/doc_00227467 to /storage/kkm_last_doc_name [13:18:47]save OK [13:18:47]Clear old archive folders... [13:18:47]ProcessDocumentItem done err = 0, tmpTLVsize=244 [13:18:47]tlvbuf is 0183E340 [13:18:47]SAM_PROTO_ClearQueue [13:18:47]wFMCommunicate request_size=4 [13:18:47]MH_SAM_APDU [13:18:47]CAPDU: 80 09 00 00 [13:18:47]Write to MH i2c: E2 08 00 07 23 80 09 00 00 00 00 00 00 9C [13:18:47]Write i2c OK [13:18:47]MH_I2C_Read... [13:18:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:18:47]Read from MH i2c: E2 [13:18:47]MH_I2C_Read... [13:18:47]Read from MH i2c: E2 03 00 [13:18:47]MH_I2C_Read... [13:18:47]Read from MH i2c: E2 03 00 07 23 00 90 00 9E [13:18:47]RAPDU: 90 00 [13:18:47]wFMCommunicate OK [13:18:47]SAM_PROTO_ClearQueue done [13:18:47]KKMCreateOFDPacket [13:18:47]OFDProtocolAddRootSTLVToBuf [13:18:47]FM_MakeSignedData [13:18:47]FM_MakeSignedData [13:18:47]SAM_PROTO_SignData [13:18:47]wFMCommunicate request_size=4 [13:18:47]MH_SAM_APDU [13:18:47]CAPDU: 80 0D 01 02 [13:18:47]Write to MH i2c: E2 08 00 08 23 80 0D 01 02 00 00 00 00 A4 [13:18:47]Write i2c OK [13:18:47]MH_I2C_Read... [13:18:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:18:47]Read from MH i2c: E2 [13:18:47]MH_I2C_Read... [13:18:47]Read from MH i2c: E2 03 00 [13:18:47]MH_I2C_Read... [13:18:47]Read from MH i2c: E2 03 00 08 23 00 90 00 9F [13:18:47]RAPDU: 90 00 [13:18:47]wFMCommunicate OK [13:18:47]wFMCommunicate request_size=253 [13:18:47]MH_SAM_APDU [13:18:47]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 37 03 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8B 78 03 00 35 04 06 00 15 8A F9 9A C1 A4 [13:18:47]Write to MH i2c: E2 00 01 09 23 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 37 03 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8B 78 03 00 35 04 06 00 15 8A F9 9A C1 A4 00 00 C4 [13:18:47]Write i2c OK [13:18:47]MH_I2C_Read... [13:18:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:48]Read from MH i2c: E2 [13:18:48]MH_I2C_Read... [13:18:48]Read from MH i2c: E2 03 00 [13:18:48]MH_I2C_Read... [13:18:48]Read from MH i2c: E2 03 00 09 23 00 90 00 A0 [13:18:48]RAPDU: 90 00 [13:18:48]wFMCommunicate OK [13:18:48]wFMCommunicate request_size=4 [13:18:48]MH_SAM_APDU [13:18:48]CAPDU: 80 0D 03 02 [13:18:48]Write to MH i2c: E2 08 00 0A 23 80 0D 03 02 00 00 00 00 A8 [13:18:48]Write i2c OK [13:18:48]MH_I2C_Read... [13:18:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:18:48]Read from MH i2c: E2 [13:18:48]MH_I2C_Read... [13:18:48]Read from MH i2c: E2 0B 00 [13:18:48]MH_I2C_Read... [13:18:48]Read from MH i2c: E2 0B 00 0A 23 00 AF A0 BA E6 4B 79 01 1B 90 00 78 [13:18:48]RAPDU: AF A0 BA E6 4B 79 01 1B 90 00 [13:18:48]wFMCommunicate OK [13:18:48]SAM_PROTO_SignData done [13:18:48]FM_MakeSignedData done [13:18:48]CreateOFDProtocolMessage [13:18:48]wFMCommunicate request_size=4 [13:18:48]MH_SAM_APDU [13:18:48]CAPDU: 80 11 00 00 [13:18:48]Write to MH i2c: E2 08 00 0B 23 80 11 00 00 00 00 00 00 A8 [13:18:48]Write i2c OK [13:18:48]MH_I2C_Read... [13:18:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:48]Read from MH i2c: E2 [13:18:48]MH_I2C_Read... [13:18:48]Read from MH i2c: E2 17 00 [13:18:48]MH_I2C_Read... [13:18:48]Read from MH i2c: E2 17 00 0B 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 FF [13:18:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:18:48]wFMCommunicate OK [13:18:48]CreateOFDProtocolMessage done [13:18:48]OFDSenderStorePacket 227467 [13:18:48]StoreOFDPacket docnum=227467 [13:18:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 FD AA 00 01 1E 72 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 37 03 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8B 78 03 00 35 04 06 00 15 8A F9 9A C1 A4 AF A0 BA E6 4B 79 01 1B [13:18:48]CheckFolder [13:18:48]dirname=/storage/ofd_packets [13:18:48]CheckFolder done [13:18:48]ProducePacketName [13:18:48]name=ofd_packets/00227467 [13:18:48]NVStorageSaveData ofd_packets/00227467 [13:18:48]File name is /storage/ofd_packets/00227467 [13:18:48]Write 294 bytes [13:18:48]NVStorageSaveData done [13:18:48]OFDSenderStorePacket done [13:18:48]KKMCreateOFDPacket done [13:18:48]NVStorageSaveData kkm_last_timestamp [13:18:48]File name is /storage/kkm_last_timestamp [13:18:48]Write 4 bytes [13:18:48]NVStorageSaveData done [13:18:48]ExternCall_PrintAddStr [13:18:48]wPrintStart [13:18:48]Write to MH i2c: 01 00 00 0C 23 2F [13:18:48]Write i2c OK [13:18:48]MH_I2C_Read... [13:18:48]Read from MH i2c: 01 [13:18:48]MH_I2C_Read... [13:18:48]Read from MH i2c: 01 07 00 [13:18:48]MH_I2C_Read... [13:18:48]Read from MH i2c: 01 07 00 0C 23 00 00 00 00 00 FF 0F 44 [13:18:48]RasterBufferAndPrint [13:18:48]line Счет N : (1)1962990 [13:18:48]line ИНН: 02508201610067 [13:18:48]line Контрольно-Кассовый Чек [13:18:48]line ПРОДАЖА [13:18:48]line ТРК (МРК, ГНК) : 62 [13:18:48]line Товар: 2710124130 [13:18:48]line SU-92 [13:18:48]line 14.620 * 68.40 [13:18:48]line = 1000.01 [13:18:48]line НДС 12% НСП 1% [13:18:48]line > о реализуемом товаре [13:18:48]line ОКРУГЛЕНИЕ: -0.01 [13:18:48]line ИТОГО: 1000.00 [13:18:48]line Внесено: 1000.00 [13:18:48]line СДАЧА: 0.00 [13:18:48]line НСП 1% : 8.85 [13:18:48]line НДС 12% : 106.20 [13:18:48]line Наличными: 1000.00 [13:18:48]line Безнал.: 0.00 [13:18:48]line Место: АЗС № 133 "Партнер Нефть" [13:18:48]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:18:48]line СНО: Общий режим [13:18:48]line Чек 315 20.10.2024 13:18 [13:18:48]line Смена: 533 ФФД: 1.0 [13:18:48]line ЗНМ: 0300000091 [13:18:48]line РНМ: 0000000000091685 [13:18:48]line Версия ККМ: 001 [13:18:48]line ФМ: 0000000000871839 [13:18:48]line ФД: 227467 [13:18:48]line ФПД: 23686637339044 [13:18:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T131847&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227467&fm=23686637339044&tin=02508201610067®Number=0000000000091685&sum=100000 [13:18:48]OFD Sender: Processing packet 227467 [packets to send 38, broken 37] [13:18:48]ProducePacketName [13:18:48]name=ofd_packets/00227467 [13:18:48]OFD Sender: To server: pG, [13:18:48]CommunicateWithHost lk.salyk.kg:30040 [13:18:48]ConnectInit lk.salyk.kg [13:18:48]written 0, free lines is 4095 [13:18:48]Write to MH i2c: 01 00 00 36 23 59 [13:18:48]Write i2c OK [13:18:48]MH_I2C_Read... [13:18:48]Read from MH i2c: 01 [13:18:48]MH_I2C_Read... [13:18:48]Read from MH i2c: 01 07 00 [13:18:48]MH_I2C_Read... [13:18:48]Read from MH i2c: 01 07 00 36 23 00 00 00 00 00 02 0D 6F [13:18:48]RasterBufferAndPrint [13:18:48]line [13:18:48]line [13:18:48]line [13:18:48]line [13:18:48]line [13:18:48]written 0, free lines is 3336 [13:18:48]process_action close_receipt done [13:18:48]requested_data is exist [13:18:48]produce_requested_data [13:18:48]requested_item fm.sn is exist - process it [13:18:48]wFMCommunicate request_size=4 [13:18:48]MH_SAM_APDU [13:18:48]CAPDU: 80 11 00 00 [13:18:48]Write to MH i2c: E2 08 00 3D 23 80 11 00 00 00 00 00 00 DA [13:18:48]Write i2c OK [13:18:48]MH_I2C_Read... [13:18:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:49]Read from MH i2c: E2 [13:18:49]MH_I2C_Read... [13:18:49]Read from MH i2c: E2 17 00 [13:18:49]MH_I2C_Read... [13:18:49]Read from MH i2c: E2 17 00 3D 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 31 [13:18:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:18:49]wFMCommunicate OK [13:18:49]requested_item fd.num is exist - process it [13:18:49]SAM_PROTO_GetFieldsCounters [13:18:49]wFMCommunicate request_size=4 [13:18:49]MH_SAM_APDU [13:18:49]CAPDU: 80 13 00 00 [13:18:49]Write to MH i2c: E2 08 00 3E 23 80 13 00 00 00 00 00 00 DD [13:18:49]Write i2c OK [13:18:49]MH_I2C_Read... [13:18:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:18:49]Read from MH i2c: E2 [13:18:49]MH_I2C_Read... [13:18:49]Read from MH i2c: E2 62 00 [13:18:49]MH_I2C_Read... [13:18:49]Read from MH i2c: E2 62 00 3E 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 8B 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 3B 01 00 00 5E 04 04 00 3B 01 00 00 57 04 04 00 3C 01 00 00 19 04 04 00 00 00 00 00 90 00 D7 [13:18: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 8B 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 3B 01 00 00 5E 04 04 00 3B 01 00 00 57 04 04 00 3C 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:18:49]wFMCommunicate OK [13:18:49]SAM_PROTO_GetFieldsCounters done [13:18:49]requested_item shift.num is exist - process it [13:18:49]requested_item shift.opened is exist - process it [13:18:49]req_shift_opened [13:18:49]FM_GetShiftState [13:18:49]SAM_PROTO_GetShiftState [13:18:49]wFMCommunicate request_size=4 [13:18:49]MH_SAM_APDU [13:18:49]CAPDU: 80 13 01 00 [13:18:49]Write to MH i2c: E2 08 00 3F 23 80 13 01 00 00 00 00 00 DF [13:18:49]Write i2c OK [13:18:49]MH_I2C_Read... [13:18:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:49]Read from MH i2c: E2 [13:18:49]MH_I2C_Read... [13:18:49]Read from MH i2c: E2 0E 00 [13:18:49]MH_I2C_Read... [13:18:49]Read from MH i2c: E2 0E 00 3F 23 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 F9 [13:18:49]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:18:49]wFMCommunicate OK [13:18:49]SAM_PROTO_GetShiftState done [13:18:49]FM_GetShiftState done [13:18:49]req_shift_opened done [13:18:49]requested_item shift.open_date is exist - process it [13:18:49]req_shift_open_date [13:18:49]req_shift_open_date done [13:18:49]produce_requested_data done [13:18:49]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227467,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [13:18:49]process_action_free close_receipt [13:18:49]json_value_free [13:18:49]json_value_free done [13:18:49]process_json_proto returns [13:18:49]Send response to host [13:18:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227467,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [13:18:49]free response buf [13:18:49]execute_script done [13:18:49]execute_script returns [13:18:49]free content buf [13:18:49]Sock 8.Close socket [13:18:49]Sock 8.Thread stoped [13:20:59]ConnectInit Can't connect to host [13:20:59]CommunicateWithHost connect error [13:20:59]CommunicateWithHost err = -1 [13:20:59]OFD Sender: Server communicate error [13:21:04]OFD Sender: Processing packet 227467 [packets to send 38, broken 37] [13:21:04]ProducePacketName [13:21:04]name=ofd_packets/00227467 [13:21:04]OFD Sender: To server: pG, [13:21:04]CommunicateWithHost lk.salyk.kg:30040 [13:21:04]ConnectInit lk.salyk.kg [13:21:04]Connected sock=8 [13:21:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 FD AA 00 01 1E 72 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 37 03 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8B 78 03 00 35 04 06 00 15 8A F9 9A C1 A4 AF A0 BA E6 4B 79 01 1B [13:21: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 33 39 4F 00 00 00 05 56 47 00 98 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 33 39 10 04 04 00 8B 78 03 00 F4 03 04 00 BE AE 14 67 B6 04 01 00 00 B6 BC F5 A8 D1 00 DE C4 [13:21:05]CommunicateWithHost err = 0 [13:21:05]CheckOFDResponse [13:21:05]1017 (14) - 77093643461234 [13:21:05]1041 (16) - 0000000000871839 [13:21:05]1040 (4) - 227467 [13:21:05]1012 (4) - 20.10.2024 07:18 [13:21:05]1206 (1) - 0 [13:21:05]OFD Sender: Remove packet 227467 [13:21:05]ProducePacketName [13:21:05]name=ofd_packets/00227467 [13:21:05]NVStorageDeleteData [13:21:05]OFD Sender: No OFD packet to send [13:21:10]OFD Sender: No OFD packet to send [13:21:15]OFD Sender: No OFD packet to send [13:21:20]OFD Sender: No OFD packet to send [13:21:25]OFD Sender: No OFD packet to send [13:21:30]OFD Sender: No OFD packet to send [13:21:35]OFD Sender: No OFD packet to send [13:21:40]OFD Sender: No OFD packet to send [13:21:45]OFD Sender: No OFD packet to send [13:21:50]OFD Sender: No OFD packet to send [13:21:55]OFD Sender: No OFD packet to send [13:22:00]OFD Sender: No OFD packet to send [13:22:05]OFD Sender: No OFD packet to send [13:22:10]OFD Sender: No OFD packet to send [13:22:15]OFD Sender: No OFD packet to send [13:22:20]OFD Sender: No OFD packet to send [13:22:25]OFD Sender: No OFD packet to send [13:22:30]OFD Sender: No OFD packet to send [13:22:35]OFD Sender: No OFD packet to send [13:22:38]accept exits with 9 [13:22:38]New connection [13:22:38]New thread 3066543460 created [13:22:38]Thread 3066686820 joined [13:22:38]Waiting for new connection... [13:22:38] Sock 9.Parse request [13:22:38]Sock 9.Check first char [13:22:38]Sock 9.First char is OK [13:22:38]request: POST /json_proto HTTP/1.0 [13:22:38]Method: POST [13:22:38]URL: /json_proto [13:22:38]Method is POST - this is cgi request [13:22:38]url: /json_proto [13:22:38]query_string will be loaded in cgi processing [13:22:38]execute_cgi json_proto POST (null) [13:22:38]execute_cgi path=json_proto method=POST [13:22:38]POST find Content-Length [13:22:38]Host: 172.17.44.195:8080 [13:22:38]Content-Length: 660 [13:22:38]Content-Type: application/json [13:22:38] [13:22:38]POST finish read [13:22:38]Found Content-Length = 660 [13:22:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962991", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 10.240, "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" ] } } [13:22:38]execute_script... [13:22: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)1962991", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 10.240, "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" ] } } [13:22:38]POST & json_proto [13:22:38]process_json_proto [13:22:38]json parsed OK: [13:22:38]protocol is kg_v1.0 [13:22:38]action value=close_receipt [13:22:38]process_action close_receipt [13:22:38]cmd_close_receipt [13:22:38]MH_GetDate [13:22:38]Write to MH i2c: F0 00 00 40 23 52 [13:22:38]Write i2c OK [13:22:38]MH_I2C_Read... [13:22:38]Read from MH i2c: F0 [13:22:38]MH_I2C_Read... [13:22:38]Read from MH i2c: F0 09 00 [13:22:38]MH_I2C_Read... [13:22:38]Read from MH i2c: F0 09 00 40 23 00 1F 04 15 67 82 C9 CF 66 7A [13:22:38]GetLastDocTimeStamp 1729430327 [13:22:38]current date 1729430559 [13:22:38]FM_GetShiftState [13:22:38]SAM_PROTO_GetShiftState [13:22:38]wFMCommunicate request_size=4 [13:22:38]MH_SAM_APDU [13:22:38]CAPDU: 80 13 01 00 [13:22:38]Write to MH i2c: E2 08 00 41 23 80 13 01 00 00 00 00 00 E1 [13:22:38]Write i2c OK [13:22:38]MH_I2C_Read... [13:22:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:38]Read from MH i2c: E2 [13:22:38]MH_I2C_Read... [13:22:38]Read from MH i2c: E2 0E 00 [13:22:38]MH_I2C_Read... [13:22:38]Read from MH i2c: E2 0E 00 41 23 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 FB [13:22:38]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:22:38]wFMCommunicate OK [13:22:38]SAM_PROTO_GetShiftState done [13:22:38]FM_GetShiftState done [13:22:38]opened in 1729383750 [13:22:38]opened+sec_in_day 1729470150 [13:22:38]quantity*price = 70041 [13:22:38]sum+1 = 70043 [13:22:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 316 20.10.2024 13:22 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227468 ФПД: 231539660685038 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T132240&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227468&fm=231539660685038&tin=02508201610067®Number=0000000000091685&sum=70000 [13:22:39]StoreToDocumentArchive [13:22:39]shift 533 fd 227468 [13:22:39]save to /storage/0533/doc_00227468 [13:22:39]save last doc name /storage/0533/doc_00227468 to /storage/kkm_last_doc_name [13:22:39]save OK [13:22:39]Clear old archive folders... [13:22:39]ProcessDocumentItem done err = 0, tmpTLVsize=244 [13:22:39]tlvbuf is 0187E9C0 [13:22:39]SAM_PROTO_ClearQueue [13:22:39]wFMCommunicate request_size=4 [13:22:39]MH_SAM_APDU [13:22:39]CAPDU: 80 09 00 00 [13:22:39]Write to MH i2c: E2 08 00 4E 23 80 09 00 00 00 00 00 00 E3 [13:22:39]Write i2c OK [13:22:39]MH_I2C_Read... [13:22:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:22:40]Read from MH i2c: E2 [13:22:40]MH_I2C_Read... [13:22:40]Read from MH i2c: E2 03 00 [13:22:40]MH_I2C_Read... [13:22:40]Read from MH i2c: E2 03 00 4E 23 00 90 00 E5 [13:22:40]RAPDU: 90 00 [13:22:40]wFMCommunicate OK [13:22:40]SAM_PROTO_ClearQueue done [13:22:40]KKMCreateOFDPacket [13:22:40]OFDProtocolAddRootSTLVToBuf [13:22:40]FM_MakeSignedData [13:22:40]FM_MakeSignedData [13:22:40]SAM_PROTO_SignData [13:22:40]wFMCommunicate request_size=4 [13:22:40]MH_SAM_APDU [13:22:40]CAPDU: 80 0D 01 02 [13:22:40]Write to MH i2c: E2 08 00 4F 23 80 0D 01 02 00 00 00 00 EB [13:22:40]Write i2c OK [13:22:40]MH_I2C_Read... [13:22:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:22:40]Read from MH i2c: E2 [13:22:40]MH_I2C_Read... [13:22:40]Read from MH i2c: E2 03 00 [13:22:40]MH_I2C_Read... [13:22:40]Read from MH i2c: E2 03 00 4F 23 00 90 00 E6 [13:22:40]RAPDU: 90 00 [13:22:40]wFMCommunicate OK [13:22:40]wFMCommunicate request_size=253 [13:22:40]MH_SAM_APDU [13:22:40]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 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 3C 01 00 00 F4 03 04 00 20 04 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8C 78 03 00 35 04 06 00 D2 95 87 39 FE EE [13:22:40]Write to MH i2c: E2 00 01 50 23 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 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 3C 01 00 00 F4 03 04 00 20 04 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8C 78 03 00 35 04 06 00 D2 95 87 39 FE EE 00 00 FC [13:22:40]Write i2c OK [13:22:40]MH_I2C_Read... [13:22:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:40]Read from MH i2c: E2 [13:22:40]MH_I2C_Read... [13:22:40]Read from MH i2c: E2 03 00 [13:22:40]MH_I2C_Read... [13:22:40]Read from MH i2c: E2 03 00 50 23 00 90 00 E7 [13:22:40]RAPDU: 90 00 [13:22:40]wFMCommunicate OK [13:22:40]wFMCommunicate request_size=4 [13:22:40]MH_SAM_APDU [13:22:40]CAPDU: 80 0D 03 02 [13:22:40]Write to MH i2c: E2 08 00 51 23 80 0D 03 02 00 00 00 00 EF [13:22:40]Write i2c OK [13:22:40]MH_I2C_Read... [13:22:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:22:40]Read from MH i2c: E2 [13:22:40]MH_I2C_Read... [13:22:40]Read from MH i2c: E2 0B 00 [13:22:40]MH_I2C_Read... [13:22:40]Read from MH i2c: E2 0B 00 51 23 00 03 6D 71 3B 39 7F CF 4C 90 00 DF [13:22:40]RAPDU: 03 6D 71 3B 39 7F CF 4C 90 00 [13:22:40]wFMCommunicate OK [13:22:40]SAM_PROTO_SignData done [13:22:40]FM_MakeSignedData done [13:22:40]CreateOFDProtocolMessage [13:22:40]wFMCommunicate request_size=4 [13:22:40]MH_SAM_APDU [13:22:40]CAPDU: 80 11 00 00 [13:22:40]Write to MH i2c: E2 08 00 52 23 80 11 00 00 00 00 00 00 EF [13:22:40]Write i2c OK [13:22:40]MH_I2C_Read... [13:22:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:40]Read from MH i2c: E2 [13:22:40]MH_I2C_Read... [13:22:40]Read from MH i2c: E2 17 00 [13:22:40]MH_I2C_Read... [13:22:40]Read from MH i2c: E2 17 00 52 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 46 [13:22:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:22:40]wFMCommunicate OK [13:22:40]CreateOFDProtocolMessage done [13:22:40]OFDSenderStorePacket 227468 [13:22:40]StoreOFDPacket docnum=227468 [13:22:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 CB 87 00 01 3D 9B 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 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 3C 01 00 00 F4 03 04 00 20 04 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8C 78 03 00 35 04 06 00 D2 95 87 39 FE EE 03 6D 71 3B 39 7F CF 4C [13:22:40]CheckFolder [13:22:40]dirname=/storage/ofd_packets [13:22:40]CheckFolder done [13:22:40]ProducePacketName [13:22:40]name=ofd_packets/00227468 [13:22:40]NVStorageSaveData ofd_packets/00227468 [13:22:40]File name is /storage/ofd_packets/00227468 [13:22:40]Write 294 bytes [13:22:40]NVStorageSaveData done [13:22:40]OFDSenderStorePacket done [13:22:40]KKMCreateOFDPacket done [13:22:40]NVStorageSaveData kkm_last_timestamp [13:22:40]File name is /storage/kkm_last_timestamp [13:22:40]Write 4 bytes [13:22:40]NVStorageSaveData done [13:22:40]ExternCall_PrintAddStr [13:22:40]wPrintStart [13:22:40]Write to MH i2c: 01 00 00 53 23 76 [13:22:40]Write i2c OK [13:22:40]MH_I2C_Read... [13:22:40]Read from MH i2c: 01 [13:22:40]MH_I2C_Read... [13:22:40]Read from MH i2c: 01 07 00 [13:22:40]MH_I2C_Read... [13:22:40]Read from MH i2c: 01 07 00 53 23 00 00 00 00 00 FF 0F 8B [13:22:40]RasterBufferAndPrint [13:22:40]line Счет N : (1)1962991 [13:22:40]line ИНН: 02508201610067 [13:22:40]line Контрольно-Кассовый Чек [13:22:40]line ПРОДАЖА [13:22:40]line ТРК (МРК, ГНК) : 42 [13:22:40]line Товар: 2710124130 [13:22:40]line SU-92 [13:22:40]line 10.240 * 68.40 [13:22:40]line = 700.42 [13:22:40]line НДС 12% НСП 1% [13:22:40]line > о реализуемом товаре [13:22:40]line ОКРУГЛЕНИЕ: -0.42 [13:22:40]line ИТОГО: 700.00 [13:22:40]line Внесено: 700.00 [13:22:40]line СДАЧА: 0.00 [13:22:40]line НСП 1% : 6.20 [13:22:40]line НДС 12% : 74.38 [13:22:40]line Наличными: 700.00 [13:22:40]line Безнал.: 0.00 [13:22:40]line Место: АЗС № 133 "Партнер Нефть" [13:22:40]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:22:40]line СНО: Общий режим [13:22:40]line Чек 316 20.10.2024 13:22 [13:22:40]line Смена: 533 ФФД: 1.0 [13:22:40]line ЗНМ: 0300000091 [13:22:40]line РНМ: 0000000000091685 [13:22:40]line Версия ККМ: 001 [13:22:40]line ФМ: 0000000000871839 [13:22:40]line ФД: 227468 [13:22:40]line ФПД: 231539660685038 [13:22:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T132240&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227468&fm=231539660685038&tin=02508201610067®Number=0000000000091685&sum=70000 [13:22:40]OFD Sender: Processing packet 227468 [packets to send 38, broken 37] [13:22:40]ProducePacketName [13:22:40]name=ofd_packets/00227468 [13:22:40]OFD Sender: To server: pG, [13:22:40]CommunicateWithHost lk.salyk.kg:30040 [13:22:40]ConnectInit lk.salyk.kg [13:22:40]written 0, free lines is 4095 [13:22:40]Connected sock=10 [13:22: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 33 39 08 01 00 00 CB 87 00 01 3D 9B 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 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 3C 01 00 00 F4 03 04 00 20 04 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8C 78 03 00 35 04 06 00 D2 95 87 39 FE EE 03 6D 71 3B 39 7F CF 4C [13:22: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 33 39 4F 00 00 00 A7 6D 47 00 76 ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8C 78 03 00 F4 03 04 00 1E AF 14 67 B6 04 01 00 00 33 FE F9 1B 0A F9 5C D2 [13:22:41]CommunicateWithHost err = 0 [13:22:41]CheckOFDResponse [13:22:41]1017 (14) - 77093643461234 [13:22:41]1041 (16) - 0000000000871839 [13:22:41]1040 (4) - 227468 [13:22:41]1012 (4) - 20.10.2024 07:19 [13:22:41]1206 (1) - 0 [13:22:41]OFD Sender: Remove packet 227468 [13:22:41]ProducePacketName [13:22:41]name=ofd_packets/00227468 [13:22:41]NVStorageDeleteData [13:22:41]Write to MH i2c: 01 00 00 7D 23 A0 [13:22:41]Write i2c OK [13:22:41]MH_I2C_Read... [13:22:41]Read from MH i2c: 01 [13:22:41]MH_I2C_Read... [13:22:41]Read from MH i2c: 01 07 00 [13:22:41]MH_I2C_Read... [13:22:41]Read from MH i2c: 01 07 00 7D 23 00 00 00 00 00 0F 0D C3 [13:22:41]RasterBufferAndPrint [13:22:41]line [13:22:41]line [13:22:41]line [13:22:41]line [13:22:41]line [13:22:41]written 0, free lines is 3349 [13:22:41]process_action close_receipt done [13:22:41]requested_data is exist [13:22:41]produce_requested_data [13:22:41]requested_item fm.sn is exist - process it [13:22:41]wFMCommunicate request_size=4 [13:22:41]MH_SAM_APDU [13:22:41]CAPDU: 80 11 00 00 [13:22:41]Write to MH i2c: E2 08 00 84 23 80 11 00 00 00 00 00 00 21 [13:22:41]Write i2c OK [13:22:41]MH_I2C_Read... [13:22:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:41]Read from MH i2c: E2 [13:22:41]MH_I2C_Read... [13:22:41]Read from MH i2c: E2 17 00 [13:22:41]MH_I2C_Read... [13:22:41]Read from MH i2c: E2 17 00 84 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 78 [13:22:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:22:41]wFMCommunicate OK [13:22:41]requested_item fd.num is exist - process it [13:22:41]SAM_PROTO_GetFieldsCounters [13:22:41]wFMCommunicate request_size=4 [13:22:41]MH_SAM_APDU [13:22:41]CAPDU: 80 13 00 00 [13:22:41]Write to MH i2c: E2 08 00 85 23 80 13 00 00 00 00 00 00 24 [13:22:41]Write i2c OK [13:22:41]MH_I2C_Read... [13:22:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:22:41]Read from MH i2c: E2 [13:22:41]MH_I2C_Read... [13:22:41]Read from MH i2c: E2 62 00 [13:22:41]MH_I2C_Read... [13:22:41]Read from MH i2c: E2 62 00 85 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 8C 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 3C 01 00 00 5E 04 04 00 3C 01 00 00 57 04 04 00 3D 01 00 00 19 04 04 00 00 00 00 00 90 00 22 [13:22: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 8C 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 3C 01 00 00 5E 04 04 00 3C 01 00 00 57 04 04 00 3D 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:22:41]wFMCommunicate OK [13:22:41]SAM_PROTO_GetFieldsCounters done [13:22:41]requested_item shift.num is exist - process it [13:22:41]requested_item shift.opened is exist - process it [13:22:41]req_shift_opened [13:22:41]FM_GetShiftState [13:22:41]SAM_PROTO_GetShiftState [13:22:41]wFMCommunicate request_size=4 [13:22:41]MH_SAM_APDU [13:22:41]CAPDU: 80 13 01 00 [13:22:41]Write to MH i2c: E2 08 00 86 23 80 13 01 00 00 00 00 00 26 [13:22:41]Write i2c OK [13:22:41]MH_I2C_Read... [13:22:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:41]Read from MH i2c: E2 [13:22:41]MH_I2C_Read... [13:22:41]Read from MH i2c: E2 0E 00 [13:22:41]MH_I2C_Read... [13:22:41]Read from MH i2c: E2 0E 00 86 23 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 40 [13:22:41]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:22:41]wFMCommunicate OK [13:22:41]SAM_PROTO_GetShiftState done [13:22:41]FM_GetShiftState done [13:22:41]req_shift_opened done [13:22:41]requested_item shift.open_date is exist - process it [13:22:41]req_shift_open_date [13:22:41]req_shift_open_date done [13:22:41]produce_requested_data done [13:22:41]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227468,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [13:22:41]process_action_free close_receipt [13:22:41]json_value_free [13:22:41]json_value_free done [13:22:41]process_json_proto returns [13:22:41]Send response to host [13:22:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227468,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [13:22:41]free response buf [13:22:41]execute_script done [13:22:41]execute_script returns [13:22:41]free content buf [13:22:41]Sock 9.Close socket [13:22:41]Sock 9.Thread stoped [13:22:41]OFD Sender: No OFD packet to send [13:22:46]OFD Sender: No OFD packet to send [13:22:51]OFD Sender: No OFD packet to send [13:22:55]accept exits with 8 [13:22:55]New connection [13:22:55]New thread 3066686820 created [13:22:55]Thread 3066543460 joined [13:22:55]Waiting for new connection... [13:22:55] Sock 8.Parse request [13:22:55]Sock 8.Check first char [13:22:55]Sock 8.First char is OK [13:22:55]request: POST /json_proto HTTP/1.0 [13:22:55]Method: POST [13:22:55]URL: /json_proto [13:22:55]Method is POST - this is cgi request [13:22:55]url: /json_proto [13:22:55]query_string will be loaded in cgi processing [13:22:55]execute_cgi json_proto POST (null) [13:22:55]execute_cgi path=json_proto method=POST [13:22:55]POST find Content-Length [13:22:55]Host: 172.17.44.195:8080 [13:22:55]Content-Length: 678 [13:22:55]Content-Type: application/json [13:22:55] [13:22:55]POST finish read [13:22:55]Found Content-Length = 678 [13:22:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962993", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:22:55]execute_script... [13:22:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962993", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:22:55]POST & json_proto [13:22:55]process_json_proto [13:22:55]json parsed OK: [13:22:55]protocol is kg_v1.0 [13:22:55]action value=close_receipt [13:22:55]process_action close_receipt [13:22:55]cmd_close_receipt [13:22:55]MH_GetDate [13:22:55]Write to MH i2c: F0 00 00 87 23 99 [13:22:55]Write i2c OK [13:22:55]MH_I2C_Read... [13:22:55]Read from MH i2c: F0 [13:22:55]MH_I2C_Read... [13:22:55]Read from MH i2c: F0 09 00 [13:22:55]MH_I2C_Read... [13:22:55]Read from MH i2c: F0 09 00 87 23 00 30 04 15 67 82 C9 CF 66 D2 [13:22:55]GetLastDocTimeStamp 1729430560 [13:22:55]current date 1729430576 [13:22:55]FM_GetShiftState [13:22:55]SAM_PROTO_GetShiftState [13:22:55]wFMCommunicate request_size=4 [13:22:55]MH_SAM_APDU [13:22:55]CAPDU: 80 13 01 00 [13:22:55]Write to MH i2c: E2 08 00 88 23 80 13 01 00 00 00 00 00 28 [13:22:55]Write i2c OK [13:22:55]MH_I2C_Read... [13:22:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:55]Read from MH i2c: E2 [13:22:55]MH_I2C_Read... [13:22:55]Read from MH i2c: E2 0E 00 [13:22:55]MH_I2C_Read... [13:22:55]Read from MH i2c: E2 0E 00 88 23 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 42 [13:22:55]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:22:55]wFMCommunicate OK [13:22:55]SAM_PROTO_GetShiftState done [13:22:55]FM_GetShiftState done [13:22:55]opened in 1729383750 [13:22:55]opened+sec_in_day 1729470150 [13:22:55]quantity*price = 50010 [13:22:55]sum+1 = 50012 [13:22:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 317 20.10.2024 13:22 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227469 ФПД: 199472966769784 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T132256&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227469&fm=199472966769784&tin=02508201610067®Number=0000000000091685&sum=50000 [13:22:56]StoreToDocumentArchive [13:22:56]shift 533 fd 227469 [13:22:56]save to /storage/0533/doc_00227469 [13:22:56]save last doc name /storage/0533/doc_00227469 to /storage/kkm_last_doc_name [13:22:56]save OK [13:22:56]Clear old archive folders... [13:22:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:22:56]tlvbuf is 019678D0 [13:22:56]SAM_PROTO_ClearQueue [13:22:56]wFMCommunicate request_size=4 [13:22:56]MH_SAM_APDU [13:22:56]CAPDU: 80 09 00 00 [13:22:56]Write to MH i2c: E2 08 00 95 23 80 09 00 00 00 00 00 00 2A [13:22:56]Write i2c OK [13:22:56]MH_I2C_Read... [13:22:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:22:56]Read from MH i2c: E2 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: E2 03 00 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: E2 03 00 95 23 00 90 00 2C [13:22:56]RAPDU: 90 00 [13:22:56]wFMCommunicate OK [13:22:56]SAM_PROTO_ClearQueue done [13:22:56]KKMCreateOFDPacket [13:22:56]OFDProtocolAddRootSTLVToBuf [13:22:56]FM_MakeSignedData [13:22:56]FM_MakeSignedData [13:22:56]SAM_PROTO_SignData [13:22:56]wFMCommunicate request_size=4 [13:22:56]MH_SAM_APDU [13:22:56]CAPDU: 80 0D 01 02 [13:22:56]Write to MH i2c: E2 08 00 96 23 80 0D 01 02 00 00 00 00 32 [13:22:56]Write i2c OK [13:22:56]MH_I2C_Read... [13:22:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:22:56]Read from MH i2c: E2 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: E2 03 00 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: E2 03 00 96 23 00 90 00 2D [13:22:56]RAPDU: 90 00 [13:22:56]wFMCommunicate OK [13:22:56]wFMCommunicate request_size=255 [13:22:56]MH_SAM_APDU [13:22: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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 30 04 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8D 78 03 00 35 04 06 00 B5 [13:22:56]Write to MH i2c: E2 02 01 97 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 30 04 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8D 78 03 00 35 04 06 00 B5 00 00 63 [13:22:56]Write i2c OK [13:22:56]MH_I2C_Read... [13:22:56]OFD Sender: No OFD packet to send [13:22:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:56]Read from MH i2c: E2 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: E2 03 00 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: E2 03 00 97 23 00 90 00 2E [13:22:56]RAPDU: 90 00 [13:22:56]wFMCommunicate OK [13:22:56]wFMCommunicate request_size=10 [13:22:56]MH_SAM_APDU [13:22:56]CAPDU: 80 0D 02 02 05 6B 6B 53 9C 78 [13:22:56]Write to MH i2c: E2 0D 00 98 23 80 0D 02 02 05 00 6B 6B 53 9C 78 00 00 7C [13:22:56]Write i2c OK [13:22:56]MH_I2C_Read... [13:22:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:56]Read from MH i2c: E2 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: E2 03 00 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: E2 03 00 98 23 00 90 00 2F [13:22:56]RAPDU: 90 00 [13:22:56]wFMCommunicate OK [13:22:56]wFMCommunicate request_size=4 [13:22:56]MH_SAM_APDU [13:22:56]CAPDU: 80 0D 03 02 [13:22:56]Write to MH i2c: E2 08 00 99 23 80 0D 03 02 00 00 00 00 37 [13:22:56]Write i2c OK [13:22:56]MH_I2C_Read... [13:22:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:22:56]Read from MH i2c: E2 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: E2 0B 00 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: E2 0B 00 99 23 00 4C 11 E9 00 1D FA 65 5E 90 00 58 [13:22:56]RAPDU: 4C 11 E9 00 1D FA 65 5E 90 00 [13:22:56]wFMCommunicate OK [13:22:56]SAM_PROTO_SignData done [13:22:56]FM_MakeSignedData done [13:22:56]CreateOFDProtocolMessage [13:22:56]wFMCommunicate request_size=4 [13:22:56]MH_SAM_APDU [13:22:56]CAPDU: 80 11 00 00 [13:22:56]Write to MH i2c: E2 08 00 9A 23 80 11 00 00 00 00 00 00 37 [13:22:56]Write i2c OK [13:22:56]MH_I2C_Read... [13:22:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:56]Read from MH i2c: E2 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: E2 17 00 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: E2 17 00 9A 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 8E [13:22:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:22:56]wFMCommunicate OK [13:22:56]CreateOFDProtocolMessage done [13:22:56]OFDSenderStorePacket 227469 [13:22:56]StoreOFDPacket docnum=227469 [13:22:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 FB 2A 07 01 5C 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 30 04 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8D 78 03 00 35 04 06 00 B5 6B 6B 53 9C 78 4C 11 E9 00 1D FA 65 5E [13:22:56]CheckFolder [13:22:56]dirname=/storage/ofd_packets [13:22:56]CheckFolder done [13:22:56]ProducePacketName [13:22:56]name=ofd_packets/00227469 [13:22:56]NVStorageSaveData ofd_packets/00227469 [13:22:56]File name is /storage/ofd_packets/00227469 [13:22:56]Write 301 bytes [13:22:56]NVStorageSaveData done [13:22:56]OFDSenderStorePacket done [13:22:56]KKMCreateOFDPacket done [13:22:56]NVStorageSaveData kkm_last_timestamp [13:22:56]File name is /storage/kkm_last_timestamp [13:22:56]Write 4 bytes [13:22:56]NVStorageSaveData done [13:22:56]ExternCall_PrintAddStr [13:22:56]wPrintStart [13:22:56]Write to MH i2c: 01 00 00 9B 23 BE [13:22:56]Write i2c OK [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: 01 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: 01 07 00 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: 01 07 00 9B 23 00 00 00 00 00 FF 0F D3 [13:22:56]RasterBufferAndPrint [13:22:56]line Счет N : (1)1962993 [13:22:56]line ИНН: 02508201610067 [13:22:56]line Контрольно-Кассовый Чек [13:22:56]line ПРОДАЖА [13:22:56]line ТРК (МРК, ГНК) : 54 [13:22:56]line Товар: 2710124500 [13:22:56]line Аи-95-К-5 [13:22:56]line 6.740 * 74.20 [13:22:56]line = 500.11 [13:22:56]line НДС 12% НСП 1% [13:22:56]line > о реализуемом товаре [13:22:56]line ОКРУГЛЕНИЕ: -0.11 [13:22:56]line ИТОГО: 500.00 [13:22:56]line Внесено: 500.00 [13:22:56]line СДАЧА: 0.00 [13:22:56]line НСП 1% : 4.43 [13:22:56]line НДС 12% : 53.11 [13:22:56]line Наличными: 500.00 [13:22:56]line Безнал.: 0.00 [13:22:56]line Место: АЗС № 133 "Партнер Нефть" [13:22:56]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:22:56]line СНО: Общий режим [13:22:56]line Чек 317 20.10.2024 13:22 [13:22:56]line Смена: 533 ФФД: 1.0 [13:22:56]line ЗНМ: 0300000091 [13:22:56]line РНМ: 0000000000091685 [13:22:56]line Версия ККМ: 001 [13:22:56]line ФМ: 0000000000871839 [13:22:56]line ФД: 227469 [13:22:56]line ФПД: 199472966769784 [13:22:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T132256&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227469&fm=199472966769784&tin=02508201610067®Number=0000000000091685&sum=50000 [13:22:57]OFD Sender: Processing packet 227469 [packets to send 38, broken 37] [13:22:57]ProducePacketName [13:22:57]name=ofd_packets/00227469 [13:22:57]OFD Sender: To server: pG, [13:22:57]CommunicateWithHost lk.salyk.kg:30040 [13:22:57]ConnectInit lk.salyk.kg [13:22:57]written 0, free lines is 4095 [13:22:57]Connected sock=10 [13:22: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 33 39 0F 01 00 00 FB 2A 07 01 5C 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 30 04 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8D 78 03 00 35 04 06 00 B5 6B 6B 53 9C 78 4C 11 E9 00 1D FA 65 5E [13:22: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 33 39 4F 00 00 00 64 E0 47 00 C1 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 33 39 10 04 04 00 8D 78 03 00 F4 03 04 00 2F AF 14 67 B6 04 01 00 00 A0 F3 49 24 B1 E2 D9 B6 [13:22:57]CommunicateWithHost err = 0 [13:22:57]CheckOFDResponse [13:22:57]1017 (14) - 77093643461234 [13:22:57]1041 (16) - 0000000000871839 [13:22:57]1040 (4) - 227469 [13:22:57]1012 (4) - 20.10.2024 07:20 [13:22:57]1206 (1) - 0 [13:22:57]OFD Sender: Remove packet 227469 [13:22:57]ProducePacketName [13:22:57]name=ofd_packets/00227469 [13:22:57]NVStorageDeleteData [13:22:57]Write to MH i2c: 01 00 00 C5 23 E8 [13:22:57]Write i2c OK [13:22:57]MH_I2C_Read... [13:22:57]Read from MH i2c: 01 [13:22:57]MH_I2C_Read... [13:22:57]Read from MH i2c: 01 07 00 [13:22:57]MH_I2C_Read... [13:22:57]Read from MH i2c: 01 07 00 C5 23 00 00 00 00 00 06 0D 02 [13:22:57]RasterBufferAndPrint [13:22:57]line [13:22:57]line [13:22:57]line [13:22:57]line [13:22:57]line [13:22:57]written 0, free lines is 3340 [13:22:57]process_action close_receipt done [13:22:57]requested_data is exist [13:22:57]produce_requested_data [13:22:57]requested_item fm.sn is exist - process it [13:22:57]wFMCommunicate request_size=4 [13:22:57]MH_SAM_APDU [13:22:57]CAPDU: 80 11 00 00 [13:22:57]Write to MH i2c: E2 08 00 CC 23 80 11 00 00 00 00 00 00 69 [13:22:57]Write i2c OK [13:22:57]MH_I2C_Read... [13:22:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:57]Read from MH i2c: E2 [13:22:57]MH_I2C_Read... [13:22:57]Read from MH i2c: E2 17 00 [13:22:57]MH_I2C_Read... [13:22:57]Read from MH i2c: E2 17 00 CC 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C0 [13:22:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:22:57]wFMCommunicate OK [13:22:57]requested_item fd.num is exist - process it [13:22:57]SAM_PROTO_GetFieldsCounters [13:22:57]wFMCommunicate request_size=4 [13:22:57]MH_SAM_APDU [13:22:57]CAPDU: 80 13 00 00 [13:22:57]Write to MH i2c: E2 08 00 CD 23 80 13 00 00 00 00 00 00 6C [13:22:57]Write i2c OK [13:22:57]MH_I2C_Read... [13:22:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:22:57]Read from MH i2c: E2 [13:22:57]MH_I2C_Read... [13:22:57]Read from MH i2c: E2 62 00 [13:22:57]MH_I2C_Read... [13:22:57]Read from MH i2c: E2 62 00 CD 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 8D 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 3D 01 00 00 5E 04 04 00 3D 01 00 00 57 04 04 00 3E 01 00 00 19 04 04 00 00 00 00 00 90 00 6E [13:22: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 8D 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 3D 01 00 00 5E 04 04 00 3D 01 00 00 57 04 04 00 3E 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:22:57]wFMCommunicate OK [13:22:57]SAM_PROTO_GetFieldsCounters done [13:22:57]requested_item shift.num is exist - process it [13:22:57]requested_item shift.opened is exist - process it [13:22:57]req_shift_opened [13:22:57]FM_GetShiftState [13:22:57]SAM_PROTO_GetShiftState [13:22:57]wFMCommunicate request_size=4 [13:22:57]MH_SAM_APDU [13:22:57]CAPDU: 80 13 01 00 [13:22:57]Write to MH i2c: E2 08 00 CE 23 80 13 01 00 00 00 00 00 6E [13:22:57]Write i2c OK [13:22:57]MH_I2C_Read... [13:22:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:57]Read from MH i2c: E2 [13:22:57]MH_I2C_Read... [13:22:57]Read from MH i2c: E2 0E 00 [13:22:57]MH_I2C_Read... [13:22:57]Read from MH i2c: E2 0E 00 CE 23 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 88 [13:22:57]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:22:57]wFMCommunicate OK [13:22:57]SAM_PROTO_GetShiftState done [13:22:57]FM_GetShiftState done [13:22:57]req_shift_opened done [13:22:57]requested_item shift.open_date is exist - process it [13:22:57]req_shift_open_date [13:22:57]req_shift_open_date done [13:22:57]produce_requested_data done [13:22:57]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227469,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [13:22:57]process_action_free close_receipt [13:22:57]json_value_free [13:22:57]json_value_free done [13:22:57]process_json_proto returns [13:22:57]Send response to host [13:22:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227469,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [13:22:57]free response buf [13:22:57]execute_script done [13:22:57]execute_script returns [13:22:57]free content buf [13:22:57]Sock 8.Close socket [13:22:57]Sock 8.Thread stoped [13:22:58]OFD Sender: No OFD packet to send [13:22:58]accept exits with 9 [13:22:58]New connection [13:22:58]New thread 3066543460 created [13:22:58]Thread 3066686820 joined [13:22:58]Waiting for new connection... [13:22:58] Sock 9.Parse request [13:22:58]Sock 9.Check first char [13:22:58]Sock 9.First char is OK [13:22:58]request: POST /json_proto HTTP/1.0 [13:22:58]Method: POST [13:22:58]URL: /json_proto [13:22:58]Method is POST - this is cgi request [13:22:58]url: /json_proto [13:22:58]query_string will be loaded in cgi processing [13:22:58]execute_cgi json_proto POST (null) [13:22:58]execute_cgi path=json_proto method=POST [13:22:58]POST find Content-Length [13:22:58]Host: 172.17.44.195:8080 [13:22:58]Content-Length: 664 [13:22:58]Content-Type: application/json [13:22:58] [13:22:58]POST finish read [13:22:58]Found Content-Length = 664 [13:22:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962992", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:22:58]execute_script... [13:22:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962992", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:22:58]POST & json_proto [13:22:58]process_json_proto [13:22:58]json parsed OK: [13:22:58]protocol is kg_v1.0 [13:22:58]action value=close_receipt [13:22:58]process_action close_receipt [13:22:58]cmd_close_receipt [13:22:58]MH_GetDate [13:22:58]Write to MH i2c: F0 00 00 CF 23 E1 [13:22:58]Write i2c OK [13:22:58]MH_I2C_Read... [13:22:58]Read from MH i2c: F0 [13:22:58]MH_I2C_Read... [13:22:58]Read from MH i2c: F0 09 00 [13:22:58]MH_I2C_Read... [13:22:58]Read from MH i2c: F0 09 00 CF 23 00 33 04 15 67 82 C9 CF 66 1D [13:22:58]GetLastDocTimeStamp 1729430576 [13:22:58]current date 1729430579 [13:22:58]FM_GetShiftState [13:22:58]SAM_PROTO_GetShiftState [13:22:58]wFMCommunicate request_size=4 [13:22:58]MH_SAM_APDU [13:22:58]CAPDU: 80 13 01 00 [13:22:58]Write to MH i2c: E2 08 00 D0 23 80 13 01 00 00 00 00 00 70 [13:22:58]Write i2c OK [13:22:58]MH_I2C_Read... [13:22:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:58]Read from MH i2c: E2 [13:22:58]MH_I2C_Read... [13:22:58]Read from MH i2c: E2 0E 00 [13:22:58]MH_I2C_Read... [13:22:58]Read from MH i2c: E2 0E 00 D0 23 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 8A [13:22:58]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:22:58]wFMCommunicate OK [13:22:58]SAM_PROTO_GetShiftState done [13:22:58]FM_GetShiftState done [13:22:58]opened in 1729383750 [13:22:58]opened+sec_in_day 1729470150 [13:22:58]quantity*price = 100000 [13:22:58]sum+1 = 100002 [13:22:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 318 20.10.2024 13:22 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227470 ФПД: 198975367238924 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T132259&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227470&fm=198975367238924&tin=02508201610067®Number=0000000000091685&sum=100000 [13:22:59]StoreToDocumentArchive [13:22:59]shift 533 fd 227470 [13:22:59]save to /storage/0533/doc_00227470 [13:22:59]save last doc name /storage/0533/doc_00227470 to /storage/kkm_last_doc_name [13:22:59]save OK [13:22:59]Clear old archive folders... [13:22:59]ProcessDocumentItem done err = 0, tmpTLVsize=244 [13:22:59]tlvbuf is 01885AC0 [13:22:59]SAM_PROTO_ClearQueue [13:22:59]wFMCommunicate request_size=4 [13:22:59]MH_SAM_APDU [13:22:59]CAPDU: 80 09 00 00 [13:22:59]Write to MH i2c: E2 08 00 DD 23 80 09 00 00 00 00 00 00 72 [13:22:59]Write i2c OK [13:22:59]MH_I2C_Read... [13:22:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:22:59]Read from MH i2c: E2 [13:22:59]MH_I2C_Read... [13:22:59]Read from MH i2c: E2 03 00 [13:22:59]MH_I2C_Read... [13:22:59]Read from MH i2c: E2 03 00 DD 23 00 90 00 74 [13:22:59]RAPDU: 90 00 [13:22:59]wFMCommunicate OK [13:22:59]SAM_PROTO_ClearQueue done [13:22:59]KKMCreateOFDPacket [13:22:59]OFDProtocolAddRootSTLVToBuf [13:22:59]FM_MakeSignedData [13:22:59]FM_MakeSignedData [13:22:59]SAM_PROTO_SignData [13:22:59]wFMCommunicate request_size=4 [13:22:59]MH_SAM_APDU [13:22:59]CAPDU: 80 0D 01 02 [13:22:59]Write to MH i2c: E2 08 00 DE 23 80 0D 01 02 00 00 00 00 7A [13:22:59]Write i2c OK [13:22:59]MH_I2C_Read... [13:22:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:22:59]Read from MH i2c: E2 [13:22:59]MH_I2C_Read... [13:22:59]Read from MH i2c: E2 03 00 [13:22:59]MH_I2C_Read... [13:22:59]Read from MH i2c: E2 03 00 DE 23 00 90 00 75 [13:22:59]RAPDU: 90 00 [13:22:59]wFMCommunicate OK [13:22:59]wFMCommunicate request_size=253 [13:22:59]MH_SAM_APDU [13:22:59]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 33 04 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8E 78 03 00 35 04 06 00 B4 F7 90 15 55 0C [13:22:59]Write to MH i2c: E2 00 01 DF 23 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 33 04 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8E 78 03 00 35 04 06 00 B4 F7 90 15 55 0C 00 00 B7 [13:23:00]Write i2c OK [13:23:00]MH_I2C_Read... [13:23:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:00]Read from MH i2c: E2 [13:23:00]MH_I2C_Read... [13:23:00]Read from MH i2c: E2 03 00 [13:23:00]MH_I2C_Read... [13:23:00]Read from MH i2c: E2 03 00 DF 23 00 90 00 76 [13:23:00]RAPDU: 90 00 [13:23:00]wFMCommunicate OK [13:23:00]wFMCommunicate request_size=4 [13:23:00]MH_SAM_APDU [13:23:00]CAPDU: 80 0D 03 02 [13:23:00]Write to MH i2c: E2 08 00 E0 23 80 0D 03 02 00 00 00 00 7E [13:23:00]Write i2c OK [13:23:00]MH_I2C_Read... [13:23:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:23:00]Read from MH i2c: E2 [13:23:00]MH_I2C_Read... [13:23:00]Read from MH i2c: E2 0B 00 [13:23:00]MH_I2C_Read... [13:23:00]Read from MH i2c: E2 0B 00 E0 23 00 1F FE 97 DD 46 E2 09 4F 90 00 90 [13:23:00]RAPDU: 1F FE 97 DD 46 E2 09 4F 90 00 [13:23:00]wFMCommunicate OK [13:23:00]SAM_PROTO_SignData done [13:23:00]FM_MakeSignedData done [13:23:00]CreateOFDProtocolMessage [13:23:00]wFMCommunicate request_size=4 [13:23:00]MH_SAM_APDU [13:23:00]CAPDU: 80 11 00 00 [13:23:00]Write to MH i2c: E2 08 00 E1 23 80 11 00 00 00 00 00 00 7E [13:23:00]Write i2c OK [13:23:00]MH_I2C_Read... [13:23:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:00]Read from MH i2c: E2 [13:23:00]MH_I2C_Read... [13:23:00]Read from MH i2c: E2 17 00 [13:23:00]MH_I2C_Read... [13:23:00]Read from MH i2c: E2 17 00 E1 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D5 [13:23:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:23:00]wFMCommunicate OK [13:23:00]CreateOFDProtocolMessage done [13:23:00]OFDSenderStorePacket 227470 [13:23:00]StoreOFDPacket docnum=227470 [13:23:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 42 3D 00 01 AC 2A 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 33 04 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8E 78 03 00 35 04 06 00 B4 F7 90 15 55 0C 1F FE 97 DD 46 E2 09 4F [13:23:00]CheckFolder [13:23:00]dirname=/storage/ofd_packets [13:23:00]CheckFolder done [13:23:00]ProducePacketName [13:23:00]name=ofd_packets/00227470 [13:23:00]NVStorageSaveData ofd_packets/00227470 [13:23:00]File name is /storage/ofd_packets/00227470 [13:23:00]Write 294 bytes [13:23:00]NVStorageSaveData done [13:23:00]OFDSenderStorePacket done [13:23:00]KKMCreateOFDPacket done [13:23:00]NVStorageSaveData kkm_last_timestamp [13:23:00]File name is /storage/kkm_last_timestamp [13:23:00]Write 4 bytes [13:23:00]NVStorageSaveData done [13:23:00]ExternCall_PrintAddStr [13:23:00]wPrintStart [13:23:00]Write to MH i2c: 01 00 00 E2 23 05 [13:23:00]Write i2c OK [13:23:00]MH_I2C_Read... [13:23:00]Read from MH i2c: 01 [13:23:00]MH_I2C_Read... [13:23:00]Read from MH i2c: 01 07 00 [13:23:00]MH_I2C_Read... [13:23:00]Read from MH i2c: 01 07 00 E2 23 00 00 00 00 00 FF 0F 1A [13:23:00]RasterBufferAndPrint [13:23:00]line Счет N : (1)1962992 [13:23:00]line ИНН: 02508201610067 [13:23:00]line Контрольно-Кассовый Чек [13:23:00]line ПРОДАЖА [13:23:00]line ТРК (МРК, ГНК) : 62 [13:23:00]line Товар: 2710124130 [13:23:00]line SU-92 [13:23:00]line 14.620 * 68.40 [13:23:00]line = 1000.01 [13:23:00]line НДС 12% НСП 1% [13:23:00]line > о реализуемом товаре [13:23:00]line ОКРУГЛЕНИЕ: -0.01 [13:23:00]line ИТОГО: 1000.00 [13:23:00]line Внесено: 1000.00 [13:23:00]line СДАЧА: 0.00 [13:23:00]line НСП 1% : 8.85 [13:23:00]line НДС 12% : 106.20 [13:23:00]line Наличными: 1000.00 [13:23:00]line Безнал.: 0.00 [13:23:00]line Место: АЗС № 133 "Партнер Нефть" [13:23:00]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:23:00]line СНО: Общий режим [13:23:00]line Чек 318 20.10.2024 13:22 [13:23:00]line Смена: 533 ФФД: 1.0 [13:23:00]line ЗНМ: 0300000091 [13:23:00]line РНМ: 0000000000091685 [13:23:00]line Версия ККМ: 001 [13:23:00]line ФМ: 0000000000871839 [13:23:00]line ФД: 227470 [13:23:00]line ФПД: 198975367238924 [13:23:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T132259&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227470&fm=198975367238924&tin=02508201610067®Number=0000000000091685&sum=100000 [13:23:00]written 0, free lines is 4095 [13:23:00]OFD Sender: Processing packet 227470 [packets to send 38, broken 37] [13:23:00]ProducePacketName [13:23:00]name=ofd_packets/00227470 [13:23:00]OFD Sender: To server: pG, [13:23:00]CommunicateWithHost lk.salyk.kg:30040 [13:23:00]ConnectInit lk.salyk.kg [13:23:00]Write to MH i2c: 01 00 00 0C 24 30 [13:23:00]Write i2c OK [13:23:00]MH_I2C_Read... [13:23:00]Read from MH i2c: 01 [13:23:00]MH_I2C_Read... [13:23:00]Read from MH i2c: 01 07 00 [13:23:00]MH_I2C_Read... [13:23:00]Read from MH i2c: 01 07 00 0C 24 00 00 00 00 00 02 0D 46 [13:23:00]RasterBufferAndPrint [13:23:00]line [13:23:00]line [13:23:00]line [13:23:00]line [13:23:00]line [13:23:00]written 0, free lines is 3341 [13:23:00]process_action close_receipt done [13:23:00]requested_data is exist [13:23:00]produce_requested_data [13:23:00]requested_item fm.sn is exist - process it [13:23:00]wFMCommunicate request_size=4 [13:23:00]MH_SAM_APDU [13:23:00]CAPDU: 80 11 00 00 [13:23:00]Write to MH i2c: E2 08 00 13 24 80 11 00 00 00 00 00 00 B1 [13:23:00]Write i2c OK [13:23:00]MH_I2C_Read... [13:23:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:00]Read from MH i2c: E2 [13:23:00]MH_I2C_Read... [13:23:00]Read from MH i2c: E2 17 00 [13:23:00]MH_I2C_Read... [13:23:00]Read from MH i2c: E2 17 00 13 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 08 [13:23:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:23:00]wFMCommunicate OK [13:23:00]requested_item fd.num is exist - process it [13:23:00]SAM_PROTO_GetFieldsCounters [13:23:00]wFMCommunicate request_size=4 [13:23:00]MH_SAM_APDU [13:23:00]CAPDU: 80 13 00 00 [13:23:00]Write to MH i2c: E2 08 00 14 24 80 13 00 00 00 00 00 00 B4 [13:23:00]Write i2c OK [13:23:00]MH_I2C_Read... [13:23:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:23:01]Read from MH i2c: E2 [13:23:01]MH_I2C_Read... [13:23:01]Read from MH i2c: E2 62 00 [13:23:01]MH_I2C_Read... [13:23:01]Read from MH i2c: E2 62 00 14 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 8E 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 BA [13:23: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 8E 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:23:01]wFMCommunicate OK [13:23:01]SAM_PROTO_GetFieldsCounters done [13:23:01]requested_item shift.num is exist - process it [13:23:01]requested_item shift.opened is exist - process it [13:23:01]req_shift_opened [13:23:01]FM_GetShiftState [13:23:01]SAM_PROTO_GetShiftState [13:23:01]wFMCommunicate request_size=4 [13:23:01]MH_SAM_APDU [13:23:01]CAPDU: 80 13 01 00 [13:23:01]Write to MH i2c: E2 08 00 15 24 80 13 01 00 00 00 00 00 B6 [13:23:01]Write i2c OK [13:23:01]MH_I2C_Read... [13:23:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:01]Read from MH i2c: E2 [13:23:01]MH_I2C_Read... [13:23:01]Read from MH i2c: E2 0E 00 [13:23:01]MH_I2C_Read... [13:23:01]Read from MH i2c: E2 0E 00 15 24 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 D0 [13:23:01]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:23:01]wFMCommunicate OK [13:23:01]SAM_PROTO_GetShiftState done [13:23:01]FM_GetShiftState done [13:23:01]req_shift_opened done [13:23:01]requested_item shift.open_date is exist - process it [13:23:01]req_shift_open_date [13:23:01]req_shift_open_date done [13:23:01]produce_requested_data done [13:23:01]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227470,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [13:23:01]process_action_free close_receipt [13:23:01]json_value_free [13:23:01]json_value_free done [13:23:01]process_json_proto returns [13:23:01]Send response to host [13:23:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227470,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [13:23:01]free response buf [13:23:01]execute_script done [13:23:01]execute_script returns [13:23:01]free content buf [13:23:01]Sock 9.Close socket [13:23:01]Sock 9.Thread stoped [13:25:10]ConnectInit Can't connect to host [13:25:10]CommunicateWithHost connect error [13:25:10]CommunicateWithHost err = -1 [13:25:10]OFD Sender: Server communicate error [13:25:15]OFD Sender: Processing packet 227470 [packets to send 38, broken 37] [13:25:15]ProducePacketName [13:25:15]name=ofd_packets/00227470 [13:25:15]OFD Sender: To server: pG, [13:25:15]CommunicateWithHost lk.salyk.kg:30040 [13:25:15]ConnectInit lk.salyk.kg [13:25:15]Connected sock=9 [13:25: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 33 39 08 01 00 00 42 3D 00 01 AC 2A 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 33 04 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8E 78 03 00 35 04 06 00 B4 F7 90 15 55 0C 1F FE 97 DD 46 E2 09 4F [13:25: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 33 39 4F 00 00 00 CE 57 47 00 29 E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8E 78 03 00 F4 03 04 00 B9 AF 14 67 B6 04 01 00 00 69 D0 64 5C 25 B1 82 BE [13:25:15]CommunicateWithHost err = 0 [13:25:15]CheckOFDResponse [13:25:15]1017 (14) - 77093643461234 [13:25:15]1041 (16) - 0000000000871839 [13:25:15]1040 (4) - 227470 [13:25:15]1012 (4) - 20.10.2024 07:22 [13:25:15]1206 (1) - 0 [13:25:15]OFD Sender: Remove packet 227470 [13:25:15]ProducePacketName [13:25:15]name=ofd_packets/00227470 [13:25:15]NVStorageDeleteData [13:25:16]OFD Sender: No OFD packet to send [13:25:21]OFD Sender: No OFD packet to send [13:25:26]OFD Sender: No OFD packet to send [13:25:31]OFD Sender: No OFD packet to send [13:25:36]OFD Sender: No OFD packet to send [13:25:41]OFD Sender: No OFD packet to send [13:25:46]OFD Sender: No OFD packet to send [13:25:51]OFD Sender: No OFD packet to send [13:25:56]OFD Sender: No OFD packet to send [13:26:01]OFD Sender: No OFD packet to send [13:26:06]OFD Sender: No OFD packet to send [13:26:11]OFD Sender: No OFD packet to send [13:26:16]OFD Sender: No OFD packet to send [13:26:20]accept exits with 8 [13:26:20]New connection [13:26:20]New thread 3066686820 created [13:26:20]Thread 3066543460 joined [13:26:20]Waiting for new connection... [13:26:20] Sock 8.Parse request [13:26:20]Sock 8.Check first char [13:26:20]Sock 8.First char is OK [13:26:20]request: POST /json_proto HTTP/1.0 [13:26:20]Method: POST [13:26:20]URL: /json_proto [13:26:20]Method is POST - this is cgi request [13:26:20]url: /json_proto [13:26:20]query_string will be loaded in cgi processing [13:26:20]execute_cgi json_proto POST (null) [13:26:20]execute_cgi path=json_proto method=POST [13:26:20]POST find Content-Length [13:26:20]Host: 172.17.44.195:8080 [13:26:20]Content-Length: 678 [13:26:20]Content-Type: application/json [13:26:20] [13:26:20]POST finish read [13:26:20]Found Content-Length = 678 [13:26:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962995", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:20]execute_script... [13:26: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)1962995", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:20]POST & json_proto [13:26:20]process_json_proto [13:26:20]json parsed OK: [13:26:20]protocol is kg_v1.0 [13:26:20]action value=close_receipt [13:26:20]process_action close_receipt [13:26:20]cmd_close_receipt [13:26:20]MH_GetDate [13:26:20]Write to MH i2c: F0 00 00 16 24 29 [13:26:20]Write i2c OK [13:26:20]MH_I2C_Read... [13:26:20]Read from MH i2c: F0 [13:26:20]MH_I2C_Read... [13:26:20]Read from MH i2c: F0 09 00 [13:26:20]MH_I2C_Read... [13:26:20]Read from MH i2c: F0 09 00 16 24 00 FD 04 15 67 82 C9 CF 66 2F [13:26:20]GetLastDocTimeStamp 1729430579 [13:26:20]current date 1729430781 [13:26:20]FM_GetShiftState [13:26:20]SAM_PROTO_GetShiftState [13:26:20]wFMCommunicate request_size=4 [13:26:20]MH_SAM_APDU [13:26:20]CAPDU: 80 13 01 00 [13:26:20]Write to MH i2c: E2 08 00 17 24 80 13 01 00 00 00 00 00 B8 [13:26:20]Write i2c OK [13:26:20]MH_I2C_Read... [13:26:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:20]Read from MH i2c: E2 [13:26:20]MH_I2C_Read... [13:26:20]Read from MH i2c: E2 0E 00 [13:26:20]MH_I2C_Read... [13:26:20]Read from MH i2c: E2 0E 00 17 24 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 D2 [13:26:20]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:26:20]wFMCommunicate OK [13:26:20]SAM_PROTO_GetShiftState done [13:26:20]FM_GetShiftState done [13:26:20]opened in 1729383750 [13:26:20]opened+sec_in_day 1729470150 [13:26:20]quantity*price = 50041 [13:26:20]sum+1 = 50042 [13:26:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 319 20.10.2024 13:26 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227471 ФПД: 199338733751845 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T132621&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227471&fm=199338733751845&tin=02508201610067®Number=0000000000091685&sum=50000 [13:26:21]StoreToDocumentArchive [13:26:21]shift 533 fd 227471 [13:26:21]save to /storage/0533/doc_00227471 [13:26:21]save last doc name /storage/0533/doc_00227471 to /storage/kkm_last_doc_name [13:26:21]save OK [13:26:21]Clear old archive folders... [13:26:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:26:21]tlvbuf is 018855E0 [13:26:21]SAM_PROTO_ClearQueue [13:26:21]wFMCommunicate request_size=4 [13:26:21]MH_SAM_APDU [13:26:21]CAPDU: 80 09 00 00 [13:26:21]Write to MH i2c: E2 08 00 24 24 80 09 00 00 00 00 00 00 BA [13:26:21]Write i2c OK [13:26:21]MH_I2C_Read... [13:26:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:26:21]Read from MH i2c: E2 [13:26:21]MH_I2C_Read... [13:26:21]Read from MH i2c: E2 03 00 [13:26:21]MH_I2C_Read... [13:26:21]Read from MH i2c: E2 03 00 24 24 00 90 00 BC [13:26:21]RAPDU: 90 00 [13:26:21]wFMCommunicate OK [13:26:21]SAM_PROTO_ClearQueue done [13:26:21]KKMCreateOFDPacket [13:26:21]OFDProtocolAddRootSTLVToBuf [13:26:21]FM_MakeSignedData [13:26:21]FM_MakeSignedData [13:26:21]SAM_PROTO_SignData [13:26:21]wFMCommunicate request_size=4 [13:26:21]MH_SAM_APDU [13:26:21]CAPDU: 80 0D 01 02 [13:26:21]Write to MH i2c: E2 08 00 25 24 80 0D 01 02 00 00 00 00 C2 [13:26:21]Write i2c OK [13:26:21]MH_I2C_Read... [13:26:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:26:22]Read from MH i2c: E2 [13:26:22]MH_I2C_Read... [13:26:22]Read from MH i2c: E2 03 00 [13:26:22]MH_I2C_Read... [13:26:22]Read from MH i2c: E2 03 00 25 24 00 90 00 BD [13:26:22]RAPDU: 90 00 [13:26:22]wFMCommunicate OK [13:26:22]wFMCommunicate request_size=255 [13:26:22]MH_SAM_APDU [13:26:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 FD 04 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8F 78 03 00 35 04 06 00 B5 [13:26:22]Write to MH i2c: E2 02 01 26 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 FD 04 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8F 78 03 00 35 04 06 00 B5 00 00 EC [13:26:22]Write i2c OK [13:26:22]MH_I2C_Read... [13:26:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:22]Read from MH i2c: E2 [13:26:22]MH_I2C_Read... [13:26:22]Read from MH i2c: E2 03 00 [13:26:22]MH_I2C_Read... [13:26:22]Read from MH i2c: E2 03 00 26 24 00 90 00 BE [13:26:22]RAPDU: 90 00 [13:26:22]wFMCommunicate OK [13:26:22]wFMCommunicate request_size=10 [13:26:22]MH_SAM_APDU [13:26:22]CAPDU: 80 0D 02 02 05 4C 2A 6A 4E 25 [13:26:22]Write to MH i2c: E2 0D 00 27 24 80 0D 02 02 05 00 4C 2A 6A 4E 25 00 00 22 [13:26:22]Write i2c OK [13:26:22]MH_I2C_Read... [13:26:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:22]Read from MH i2c: E2 [13:26:22]MH_I2C_Read... [13:26:22]Read from MH i2c: E2 03 00 [13:26:22]MH_I2C_Read... [13:26:22]Read from MH i2c: E2 03 00 27 24 00 90 00 BF [13:26:22]RAPDU: 90 00 [13:26:22]wFMCommunicate OK [13:26:22]wFMCommunicate request_size=4 [13:26:22]MH_SAM_APDU [13:26:22]CAPDU: 80 0D 03 02 [13:26:22]Write to MH i2c: E2 08 00 28 24 80 0D 03 02 00 00 00 00 C7 [13:26:22]Write i2c OK [13:26:22]MH_I2C_Read... [13:26:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:26:22]Read from MH i2c: E2 [13:26:22]MH_I2C_Read... [13:26:22]Read from MH i2c: E2 0B 00 [13:26:22]MH_I2C_Read... [13:26:22]Read from MH i2c: E2 0B 00 28 24 00 90 4D 8D 07 9C D6 BD 25 90 00 8D [13:26:22]RAPDU: 90 4D 8D 07 9C D6 BD 25 90 00 [13:26:22]wFMCommunicate OK [13:26:22]SAM_PROTO_SignData done [13:26:22]FM_MakeSignedData done [13:26:22]CreateOFDProtocolMessage [13:26:22]wFMCommunicate request_size=4 [13:26:22]MH_SAM_APDU [13:26:22]CAPDU: 80 11 00 00 [13:26:22]Write to MH i2c: E2 08 00 29 24 80 11 00 00 00 00 00 00 C7 [13:26:22]Write i2c OK [13:26:22]MH_I2C_Read... [13:26:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:22]Read from MH i2c: E2 [13:26:22]MH_I2C_Read... [13:26:22]Read from MH i2c: E2 17 00 [13:26:22]MH_I2C_Read... [13:26:22]Read from MH i2c: E2 17 00 29 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 1E [13:26:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:26:22]wFMCommunicate OK [13:26:22]CreateOFDProtocolMessage done [13:26:22]OFDSenderStorePacket 227471 [13:26:22]StoreOFDPacket docnum=227471 [13:26:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 64 10 07 01 79 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 FD 04 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8F 78 03 00 35 04 06 00 B5 4C 2A 6A 4E 25 90 4D 8D 07 9C D6 BD 25 [13:26:22]CheckFolder [13:26:22]dirname=/storage/ofd_packets [13:26:22]CheckFolder done [13:26:22]ProducePacketName [13:26:22]name=ofd_packets/00227471 [13:26:22]NVStorageSaveData ofd_packets/00227471 [13:26:22]File name is /storage/ofd_packets/00227471 [13:26:22]Write 301 bytes [13:26:22]NVStorageSaveData done [13:26:22]OFDSenderStorePacket done [13:26:22]KKMCreateOFDPacket done [13:26:22]NVStorageSaveData kkm_last_timestamp [13:26:22]File name is /storage/kkm_last_timestamp [13:26:22]Write 4 bytes [13:26:22]NVStorageSaveData done [13:26:22]ExternCall_PrintAddStr [13:26:22]wPrintStart [13:26:22]Write to MH i2c: 01 00 00 2A 24 4E [13:26:22]Write i2c OK [13:26:22]MH_I2C_Read... [13:26:22]Read from MH i2c: 01 [13:26:22]MH_I2C_Read... [13:26:22]Read from MH i2c: 01 07 00 [13:26:22]MH_I2C_Read... [13:26:22]Read from MH i2c: 01 07 00 2A 24 00 00 00 00 00 FF 0F 63 [13:26:22]RasterBufferAndPrint [13:26:22]line Счет N : (1)1962995 [13:26:22]line ИНН: 02508201610067 [13:26:22]line Контрольно-Кассовый Чек [13:26:22]line ПРОДАЖА [13:26:22]line ТРК (МРК, ГНК) : 33 [13:26:22]line Товар: 2710124130 [13:26:22]line Аи-92-К-5 [13:26:22]line 7.480 * 66.90 [13:26:22]line = 500.41 [13:26:22]line НДС 12% НСП 1% [13:26:22]line > о реализуемом товаре [13:26:22]line ОКРУГЛЕНИЕ: -0.41 [13:26:22]line ИТОГО: 500.00 [13:26:22]line Внесено: 500.00 [13:26:22]line СДАЧА: 0.00 [13:26:22]line НСП 1% : 4.43 [13:26:22]line НДС 12% : 53.14 [13:26:22]line Наличными: 500.00 [13:26:22]line Безнал.: 0.00 [13:26:22]line Место: АЗС № 133 "Партнер Нефть" [13:26:22]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:26:22]line СНО: Общий режим [13:26:22]line Чек 319 20.10.2024 13:26 [13:26:22]line Смена: 533 ФФД: 1.0 [13:26:22]line ЗНМ: 0300000091 [13:26:22]line РНМ: 0000000000091685 [13:26:22]line Версия ККМ: 001 [13:26:22]line ФМ: 0000000000871839 [13:26:22]line ФД: 227471 [13:26:22]line ФПД: 199338733751845 [13:26:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T132621&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227471&fm=199338733751845&tin=02508201610067®Number=0000000000091685&sum=50000 [13:26:22]OFD Sender: Processing packet 227471 [packets to send 38, broken 37] [13:26:22]ProducePacketName [13:26:22]name=ofd_packets/00227471 [13:26:22]OFD Sender: To server: pG, [13:26:22]CommunicateWithHost lk.salyk.kg:30040 [13:26:22]ConnectInit lk.salyk.kg [13:26:22]written 0, free lines is 4095 [13:26:22]Connected sock=10 [13:26:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 64 10 07 01 79 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 FD 04 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8F 78 03 00 35 04 06 00 B5 4C 2A 6A 4E 25 90 4D 8D 07 9C D6 BD 25 [13:26: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 33 39 4F 00 00 00 B4 3F 47 00 70 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8F 78 03 00 F4 03 04 00 FC AF 14 67 B6 04 01 00 00 C9 95 17 37 62 6F FF 0A [13:26:23]CommunicateWithHost err = 0 [13:26:23]CheckOFDResponse [13:26:23]1017 (14) - 77093643461234 [13:26:23]1041 (16) - 0000000000871839 [13:26:23]1040 (4) - 227471 [13:26:23]1012 (4) - 20.10.2024 07:23 [13:26:23]1206 (1) - 0 [13:26:23]OFD Sender: Remove packet 227471 [13:26:23]ProducePacketName [13:26:23]name=ofd_packets/00227471 [13:26:23]NVStorageDeleteData [13:26:23]Write to MH i2c: 01 00 00 54 24 78 [13:26:23]Write i2c OK [13:26:23]MH_I2C_Read... [13:26:23]Read from MH i2c: 01 [13:26:23]MH_I2C_Read... [13:26:23]Read from MH i2c: 01 07 00 [13:26:23]MH_I2C_Read... [13:26:23]Read from MH i2c: 01 07 00 54 24 00 00 00 00 00 FA 0C 85 [13:26:23]RasterBufferAndPrint [13:26:23]line [13:26:23]line [13:26:23]line [13:26:23]line [13:26:23]line [13:26:23]written 0, free lines is 3328 [13:26:23]process_action close_receipt done [13:26:23]requested_data is exist [13:26:23]produce_requested_data [13:26:23]requested_item fm.sn is exist - process it [13:26:23]wFMCommunicate request_size=4 [13:26:23]MH_SAM_APDU [13:26:23]CAPDU: 80 11 00 00 [13:26:23]Write to MH i2c: E2 08 00 5B 24 80 11 00 00 00 00 00 00 F9 [13:26:23]Write i2c OK [13:26:23]MH_I2C_Read... [13:26:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:23]Read from MH i2c: E2 [13:26:23]MH_I2C_Read... [13:26:23]Read from MH i2c: E2 17 00 [13:26:23]MH_I2C_Read... [13:26:23]Read from MH i2c: E2 17 00 5B 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 50 [13:26:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:26:23]wFMCommunicate OK [13:26:23]requested_item fd.num is exist - process it [13:26:23]SAM_PROTO_GetFieldsCounters [13:26:23]wFMCommunicate request_size=4 [13:26:23]MH_SAM_APDU [13:26:23]CAPDU: 80 13 00 00 [13:26:23]Write to MH i2c: E2 08 00 5C 24 80 13 00 00 00 00 00 00 FC [13:26:23]Write i2c OK [13:26:23]MH_I2C_Read... [13:26:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:26:23]Read from MH i2c: E2 [13:26:23]MH_I2C_Read... [13:26:23]Read from MH i2c: E2 62 00 [13:26:23]MH_I2C_Read... [13:26:23]Read from MH i2c: E2 62 00 5C 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 8F 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 06 [13:26: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 8F 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:26:23]wFMCommunicate OK [13:26:23]SAM_PROTO_GetFieldsCounters done [13:26:23]requested_item shift.num is exist - process it [13:26:23]requested_item shift.opened is exist - process it [13:26:23]req_shift_opened [13:26:23]FM_GetShiftState [13:26:23]SAM_PROTO_GetShiftState [13:26:23]wFMCommunicate request_size=4 [13:26:23]MH_SAM_APDU [13:26:23]CAPDU: 80 13 01 00 [13:26:23]Write to MH i2c: E2 08 00 5D 24 80 13 01 00 00 00 00 00 FE [13:26:23]Write i2c OK [13:26:23]MH_I2C_Read... [13:26:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:23]Read from MH i2c: E2 [13:26:23]MH_I2C_Read... [13:26:23]Read from MH i2c: E2 0E 00 [13:26:23]MH_I2C_Read... [13:26:23]Read from MH i2c: E2 0E 00 5D 24 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 18 [13:26:23]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:26:23]wFMCommunicate OK [13:26:23]SAM_PROTO_GetShiftState done [13:26:23]FM_GetShiftState done [13:26:23]req_shift_opened done [13:26:23]requested_item shift.open_date is exist - process it [13:26:23]req_shift_open_date [13:26:23]req_shift_open_date done [13:26:23]produce_requested_data done [13:26:23]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227471,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [13:26:23]process_action_free close_receipt [13:26:23]json_value_free [13:26:23]json_value_free done [13:26:23]process_json_proto returns [13:26:23]Send response to host [13:26:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227471,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [13:26:23]free response buf [13:26:23]execute_script done [13:26:23]execute_script returns [13:26:23]free content buf [13:26:23]Sock 8.Close socket [13:26:23]Sock 8.Thread stoped [13:26:23]OFD Sender: No OFD packet to send [13:26:28]OFD Sender: No OFD packet to send [13:26:33]OFD Sender: No OFD packet to send [13:26:33]accept exits with 9 [13:26:33]New connection [13:26:33]New thread 3066543460 created [13:26:33]Thread 3066686820 joined [13:26:33]Waiting for new connection... [13:26:33] Sock 9.Parse request [13:26:33]Sock 9.Check first char [13:26:33]Sock 9.First char is OK [13:26:33]request: POST /json_proto HTTP/1.0 [13:26:33]Method: POST [13:26:33]URL: /json_proto [13:26:33]Method is POST - this is cgi request [13:26:33]url: /json_proto [13:26:33]query_string will be loaded in cgi processing [13:26:33]execute_cgi json_proto POST (null) [13:26:33]execute_cgi path=json_proto method=POST [13:26:33]POST find Content-Length [13:26:33]Host: 172.17.44.195:8080 [13:26:33]Content-Length: 683 [13:26:33]Content-Type: application/json [13:26:33] [13:26:33]POST finish read [13:26:33]Found Content-Length = 683 [13:26:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962994", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 16.180, "sum" : 1200.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:33]execute_script... [13:26: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)1962994", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 16.180, "sum" : 1200.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:33]POST & json_proto [13:26:33]process_json_proto [13:26:33]json parsed OK: [13:26:33]protocol is kg_v1.0 [13:26:33]action value=close_receipt [13:26:33]process_action close_receipt [13:26:33]cmd_close_receipt [13:26:33]MH_GetDate [13:26:33]Write to MH i2c: F0 00 00 5E 24 71 [13:26:33]Write i2c OK [13:26:33]MH_I2C_Read... [13:26:33]Read from MH i2c: F0 [13:26:33]MH_I2C_Read... [13:26:33]Read from MH i2c: F0 09 00 [13:26:33]MH_I2C_Read... [13:26:33]Read from MH i2c: F0 09 00 5E 24 00 0B 05 15 67 82 C9 CF 66 86 [13:26:33]GetLastDocTimeStamp 1729430781 [13:26:33]current date 1729430795 [13:26:33]FM_GetShiftState [13:26:33]SAM_PROTO_GetShiftState [13:26:33]wFMCommunicate request_size=4 [13:26:33]MH_SAM_APDU [13:26:33]CAPDU: 80 13 01 00 [13:26:33]Write to MH i2c: E2 08 00 5F 24 80 13 01 00 00 00 00 00 00 [13:26:33]Write i2c OK [13:26:33]MH_I2C_Read... [13:26:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:33]Read from MH i2c: E2 [13:26:34]MH_I2C_Read... [13:26:34]Read from MH i2c: E2 0E 00 [13:26:34]MH_I2C_Read... [13:26:34]Read from MH i2c: E2 0E 00 5F 24 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 1A [13:26:34]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:26:34]wFMCommunicate OK [13:26:34]SAM_PROTO_GetShiftState done [13:26:34]FM_GetShiftState done [13:26:34]opened in 1729383750 [13:26:34]opened+sec_in_day 1729470150 [13:26:34]quantity*price = 120055 [13:26:34]sum+1 = 120057 [13:26:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.49 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 320 20.10.2024 13:26 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227472 ФПД: 236581841163251 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T132635&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227472&fm=236581841163251&tin=02508201610067®Number=0000000000091685&sum=120000 [13:26:35]StoreToDocumentArchive [13:26:35]shift 533 fd 227472 [13:26:35]save to /storage/0533/doc_00227472 [13:26:35]save last doc name /storage/0533/doc_00227472 to /storage/kkm_last_doc_name [13:26:35]save OK [13:26:35]Clear old archive folders... [13:26:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:26:35]tlvbuf is 019671C0 [13:26:35]SAM_PROTO_ClearQueue [13:26:35]wFMCommunicate request_size=4 [13:26:35]MH_SAM_APDU [13:26:35]CAPDU: 80 09 00 00 [13:26:35]Write to MH i2c: E2 08 00 6C 24 80 09 00 00 00 00 00 00 02 [13:26:35]Write i2c OK [13:26:35]MH_I2C_Read... [13:26:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:26:35]Read from MH i2c: E2 [13:26:35]MH_I2C_Read... [13:26:35]Read from MH i2c: E2 03 00 [13:26:35]MH_I2C_Read... [13:26:35]Read from MH i2c: E2 03 00 6C 24 00 90 00 04 [13:26:35]RAPDU: 90 00 [13:26:35]wFMCommunicate OK [13:26:35]SAM_PROTO_ClearQueue done [13:26:35]KKMCreateOFDPacket [13:26:35]OFDProtocolAddRootSTLVToBuf [13:26:35]FM_MakeSignedData [13:26:35]FM_MakeSignedData [13:26:35]SAM_PROTO_SignData [13:26:35]wFMCommunicate request_size=4 [13:26:35]MH_SAM_APDU [13:26:35]CAPDU: 80 0D 01 02 [13:26:35]Write to MH i2c: E2 08 00 6D 24 80 0D 01 02 00 00 00 00 0A [13:26:35]Write i2c OK [13:26:35]MH_I2C_Read... [13:26:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:26:35]Read from MH i2c: E2 [13:26:35]MH_I2C_Read... [13:26:35]Read from MH i2c: E2 03 00 [13:26:35]MH_I2C_Read... [13:26:35]Read from MH i2c: E2 03 00 6D 24 00 90 00 05 [13:26:35]RAPDU: 90 00 [13:26:35]wFMCommunicate OK [13:26:35]wFMCommunicate request_size=255 [13:26:35]MH_SAM_APDU [13:26:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 0B 05 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 90 78 03 00 35 04 06 00 D7 [13:26:35]Write to MH i2c: E2 02 01 6E 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 0B 05 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 90 78 03 00 35 04 06 00 D7 00 00 90 [13:26:35]Write i2c OK [13:26:35]MH_I2C_Read... [13:26:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:35]Read from MH i2c: E2 [13:26:35]MH_I2C_Read... [13:26:35]Read from MH i2c: E2 03 00 [13:26:35]MH_I2C_Read... [13:26:35]Read from MH i2c: E2 03 00 6E 24 00 90 00 06 [13:26:35]RAPDU: 90 00 [13:26:35]wFMCommunicate OK [13:26:35]wFMCommunicate request_size=10 [13:26:35]MH_SAM_APDU [13:26:35]CAPDU: 80 0D 02 02 05 2B 80 9A 53 F3 [13:26:35]Write to MH i2c: E2 0D 00 6F 24 80 0D 02 02 05 00 2B 80 9A 53 F3 00 00 A2 [13:26:35]Write i2c OK [13:26:35]MH_I2C_Read... [13:26:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:35]Read from MH i2c: E2 [13:26:35]MH_I2C_Read... [13:26:35]Read from MH i2c: E2 03 00 [13:26:35]MH_I2C_Read... [13:26:35]Read from MH i2c: E2 03 00 6F 24 00 90 00 07 [13:26:35]RAPDU: 90 00 [13:26:35]wFMCommunicate OK [13:26:35]wFMCommunicate request_size=4 [13:26:35]MH_SAM_APDU [13:26:35]CAPDU: 80 0D 03 02 [13:26:35]Write to MH i2c: E2 08 00 70 24 80 0D 03 02 00 00 00 00 0F [13:26:35]Write i2c OK [13:26:35]MH_I2C_Read... [13:26:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:26:35]Read from MH i2c: E2 [13:26:35]MH_I2C_Read... [13:26:35]Read from MH i2c: E2 0B 00 [13:26:35]MH_I2C_Read... [13:26:35]Read from MH i2c: E2 0B 00 70 24 00 EC 21 55 26 4E 5A 16 A8 90 00 FE [13:26:35]RAPDU: EC 21 55 26 4E 5A 16 A8 90 00 [13:26:35]wFMCommunicate OK [13:26:35]SAM_PROTO_SignData done [13:26:35]FM_MakeSignedData done [13:26:35]CreateOFDProtocolMessage [13:26:35]wFMCommunicate request_size=4 [13:26:35]MH_SAM_APDU [13:26:35]CAPDU: 80 11 00 00 [13:26:35]Write to MH i2c: E2 08 00 71 24 80 11 00 00 00 00 00 00 0F [13:26:35]Write i2c OK [13:26:35]MH_I2C_Read... [13:26:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:35]Read from MH i2c: E2 [13:26:35]MH_I2C_Read... [13:26:35]Read from MH i2c: E2 17 00 [13:26:35]MH_I2C_Read... [13:26:35]Read from MH i2c: E2 17 00 71 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 66 [13:26:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:26:35]wFMCommunicate OK [13:26:35]CreateOFDProtocolMessage done [13:26:35]OFDSenderStorePacket 227472 [13:26:35]StoreOFDPacket docnum=227472 [13:26:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 02 2A 07 01 35 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 0B 05 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 90 78 03 00 35 04 06 00 D7 2B 80 9A 53 F3 EC 21 55 26 4E 5A 16 A8 [13:26:35]CheckFolder [13:26:35]dirname=/storage/ofd_packets [13:26:35]CheckFolder done [13:26:35]ProducePacketName [13:26:35]name=ofd_packets/00227472 [13:26:35]NVStorageSaveData ofd_packets/00227472 [13:26:35]File name is /storage/ofd_packets/00227472 [13:26:35]Write 301 bytes [13:26:35]NVStorageSaveData done [13:26:35]OFDSenderStorePacket done [13:26:35]KKMCreateOFDPacket done [13:26:35]NVStorageSaveData kkm_last_timestamp [13:26:35]File name is /storage/kkm_last_timestamp [13:26:35]Write 4 bytes [13:26:35]NVStorageSaveData done [13:26:35]ExternCall_PrintAddStr [13:26:35]wPrintStart [13:26:35]Write to MH i2c: 01 00 00 72 24 96 [13:26:35]Write i2c OK [13:26:35]MH_I2C_Read... [13:26:35]Read from MH i2c: 01 [13:26:35]MH_I2C_Read... [13:26:35]Read from MH i2c: 01 07 00 [13:26:35]MH_I2C_Read... [13:26:35]Read from MH i2c: 01 07 00 72 24 00 00 00 00 00 FF 0F AB [13:26:35]RasterBufferAndPrint [13:26:35]line Счет N : (1)1962994 [13:26:35]line ИНН: 02508201610067 [13:26:35]line Контрольно-Кассовый Чек [13:26:35]line ПРОДАЖА [13:26:35]line ТРК (МРК, ГНК) : 54 [13:26:35]line Товар: 2710124500 [13:26:35]line Аи-95-К-5 [13:26:35]line 16.180 * 74.20 [13:26:35]line = 1200.56 [13:26:35]line НДС 12% НСП 1% [13:26:35]line > о реализуемом товаре [13:26:35]line ОКРУГЛЕНИЕ: -0.56 [13:26:35]line ИТОГО: 1200.00 [13:26:35]line Внесено: 1200.00 [13:26:35]line СДАЧА: 0.00 [13:26:35]line НСП 1% : 10.62 [13:26:35]line НДС 12% : 127.49 [13:26:35]line Наличными: 1200.00 [13:26:35]line Безнал.: 0.00 [13:26:35]line Место: АЗС № 133 "Партнер Нефть" [13:26:35]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:26:35]line СНО: Общий режим [13:26:35]line Чек 320 20.10.2024 13:26 [13:26:35]line Смена: 533 ФФД: 1.0 [13:26:35]line ЗНМ: 0300000091 [13:26:35]line РНМ: 0000000000091685 [13:26:35]line Версия ККМ: 001 [13:26:35]line ФМ: 0000000000871839 [13:26:35]line ФД: 227472 [13:26:35]line ФПД: 236581841163251 [13:26:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T132635&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227472&fm=236581841163251&tin=02508201610067®Number=0000000000091685&sum=120000 [13:26:35]written 0, free lines is 4095 [13:26:35]OFD Sender: Processing packet 227472 [packets to send 38, broken 37] [13:26:35]ProducePacketName [13:26:35]name=ofd_packets/00227472 [13:26:35]OFD Sender: To server: pG, [13:26:35]CommunicateWithHost lk.salyk.kg:30040 [13:26:35]ConnectInit lk.salyk.kg [13:26:36]Connected sock=10 [13:26: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 33 39 0F 01 00 00 02 2A 07 01 35 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 0B 05 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 90 78 03 00 35 04 06 00 D7 2B 80 9A 53 F3 EC 21 55 26 4E 5A 16 A8 [13:26: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 33 39 4F 00 00 00 57 91 47 00 F1 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 33 39 10 04 04 00 90 78 03 00 F4 03 04 00 0A B0 14 67 B6 04 01 00 00 1C 9C 9D D8 56 06 A5 EB [13:26:36]CommunicateWithHost err = 0 [13:26:36]CheckOFDResponse [13:26:36]1017 (14) - 77093643461234 [13:26:36]1041 (16) - 0000000000871839 [13:26:36]1040 (4) - 227472 [13:26:36]1012 (4) - 20.10.2024 07:23 [13:26:36]1206 (1) - 0 [13:26:36]OFD Sender: Remove packet 227472 [13:26:36]ProducePacketName [13:26:36]name=ofd_packets/00227472 [13:26:36]NVStorageDeleteData [13:26:36]Write to MH i2c: 01 00 00 9C 24 C0 [13:26:36]Write i2c OK [13:26:36]MH_I2C_Read... [13:26:36]Read from MH i2c: 01 [13:26:36]MH_I2C_Read... [13:26:36]Read from MH i2c: 01 07 00 [13:26:36]MH_I2C_Read... [13:26:36]Read from MH i2c: 01 07 00 9C 24 00 00 00 00 00 FF 0C D2 [13:26:36]RasterBufferAndPrint [13:26:36]line [13:26:36]line [13:26:36]line [13:26:36]line [13:26:36]line [13:26:36]written 0, free lines is 3336 [13:26:36]process_action close_receipt done [13:26:36]requested_data is exist [13:26:36]produce_requested_data [13:26:36]requested_item fm.sn is exist - process it [13:26:36]wFMCommunicate request_size=4 [13:26:36]MH_SAM_APDU [13:26:36]CAPDU: 80 11 00 00 [13:26:36]Write to MH i2c: E2 08 00 A3 24 80 11 00 00 00 00 00 00 41 [13:26:36]Write i2c OK [13:26:36]MH_I2C_Read... [13:26:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:36]Read from MH i2c: E2 [13:26:36]MH_I2C_Read... [13:26:36]Read from MH i2c: E2 17 00 [13:26:36]MH_I2C_Read... [13:26:36]Read from MH i2c: E2 17 00 A3 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 98 [13:26:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:26:36]wFMCommunicate OK [13:26:36]requested_item fd.num is exist - process it [13:26:36]SAM_PROTO_GetFieldsCounters [13:26:36]wFMCommunicate request_size=4 [13:26:36]MH_SAM_APDU [13:26:36]CAPDU: 80 13 00 00 [13:26:36]Write to MH i2c: E2 08 00 A4 24 80 13 00 00 00 00 00 00 44 [13:26:36]Write i2c OK [13:26:36]MH_I2C_Read... [13:26:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:26:36]Read from MH i2c: E2 [13:26:36]MH_I2C_Read... [13:26:36]Read from MH i2c: E2 62 00 [13:26:36]MH_I2C_Read... [13:26:36]Read from MH i2c: E2 62 00 A4 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 90 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 40 01 00 00 5E 04 04 00 40 01 00 00 57 04 04 00 41 01 00 00 19 04 04 00 00 00 00 00 90 00 52 [13:26: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 90 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 40 01 00 00 5E 04 04 00 40 01 00 00 57 04 04 00 41 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:26:36]wFMCommunicate OK [13:26:36]SAM_PROTO_GetFieldsCounters done [13:26:36]requested_item shift.num is exist - process it [13:26:36]requested_item shift.opened is exist - process it [13:26:36]req_shift_opened [13:26:36]FM_GetShiftState [13:26:36]SAM_PROTO_GetShiftState [13:26:36]wFMCommunicate request_size=4 [13:26:36]MH_SAM_APDU [13:26:36]CAPDU: 80 13 01 00 [13:26:36]Write to MH i2c: E2 08 00 A5 24 80 13 01 00 00 00 00 00 46 [13:26:36]Write i2c OK [13:26:36]MH_I2C_Read... [13:26:36]Read from MH i2c: E2 [13:26:36]MH_I2C_Read... [13:26:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:36]Read from MH i2c: E2 0E 00 [13:26:36]MH_I2C_Read... [13:26:36]Read from MH i2c: E2 0E 00 A5 24 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 60 [13:26:36]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:26:36]wFMCommunicate OK [13:26:36]SAM_PROTO_GetShiftState done [13:26:36]FM_GetShiftState done [13:26:36]req_shift_opened done [13:26:36]requested_item shift.open_date is exist - process it [13:26:36]req_shift_open_date [13:26:36]req_shift_open_date done [13:26:36]produce_requested_data done [13:26:36]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227472,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [13:26:36]process_action_free close_receipt [13:26:36]json_value_free [13:26:36]json_value_free done [13:26:36]process_json_proto returns [13:26:36]Send response to host [13:26:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227472,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [13:26:36]free response buf [13:26:36]execute_script done [13:26:36]execute_script returns [13:26:36]free content buf [13:26:36]Sock 9.Close socket [13:26:36]Sock 9.Thread stoped [13:26:36]OFD Sender: No OFD packet to send [13:26:41]OFD Sender: No OFD packet to send [13:26:46]OFD Sender: No OFD packet to send [13:26:50]accept exits with 8 [13:26:50]New connection [13:26:50]New thread 3066686820 created [13:26:50]Thread 3066543460 joined [13:26:50]Waiting for new connection... [13:26:50] Sock 8.Parse request [13:26:50]Sock 8.Check first char [13:26:50]Sock 8.First char is OK [13:26:50]request: POST /json_proto HTTP/1.0 [13:26:50]Method: POST [13:26:50]URL: /json_proto [13:26:50]Method is POST - this is cgi request [13:26:50]url: /json_proto [13:26:50]query_string will be loaded in cgi processing [13:26:50]execute_cgi json_proto POST (null) [13:26:50]execute_cgi path=json_proto method=POST [13:26:50]POST find Content-Length [13:26:50]Host: 172.17.44.195:8080 [13:26:50]Content-Length: 678 [13:26:50]Content-Type: application/json [13:26:50] [13:26:50]POST finish read [13:26:50]Found Content-Length = 678 [13:26:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962996", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:50]execute_script... [13:26: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)1962996", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:50]POST & json_proto [13:26:50]process_json_proto [13:26:50]json parsed OK: [13:26:50]protocol is kg_v1.0 [13:26:50]action value=close_receipt [13:26:50]process_action close_receipt [13:26:50]cmd_close_receipt [13:26:50]MH_GetDate [13:26:50]Write to MH i2c: F0 00 00 A6 24 B9 [13:26:50]Write i2c OK [13:26:50]MH_I2C_Read... [13:26:50]Read from MH i2c: F0 [13:26:50]MH_I2C_Read... [13:26:50]Read from MH i2c: F0 09 00 [13:26:50]MH_I2C_Read... [13:26:50]Read from MH i2c: F0 09 00 A6 24 00 1B 05 15 67 82 C9 CF 66 DE [13:26:50]GetLastDocTimeStamp 1729430795 [13:26:50]current date 1729430811 [13:26:50]FM_GetShiftState [13:26:50]SAM_PROTO_GetShiftState [13:26:50]wFMCommunicate request_size=4 [13:26:50]MH_SAM_APDU [13:26:50]CAPDU: 80 13 01 00 [13:26:50]Write to MH i2c: E2 08 00 A7 24 80 13 01 00 00 00 00 00 48 [13:26:50]Write i2c OK [13:26:50]MH_I2C_Read... [13:26:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:50]Read from MH i2c: E2 [13:26:50]MH_I2C_Read... [13:26:50]Read from MH i2c: E2 0E 00 [13:26:50]MH_I2C_Read... [13:26:50]Read from MH i2c: E2 0E 00 A7 24 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 62 [13:26:50]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:26:50]wFMCommunicate OK [13:26:50]SAM_PROTO_GetShiftState done [13:26:50]FM_GetShiftState done [13:26:50]opened in 1729383750 [13:26:50]opened+sec_in_day 1729470150 [13:26:50]quantity*price = 30038 [13:26:50]sum+1 = 30039 [13:26:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 321 20.10.2024 13:26 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227473 ФПД: 84949098932947 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T132652&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227473&fm=84949098932947&tin=02508201610067®Number=0000000000091685&sum=30000 [13:26:51]StoreToDocumentArchive [13:26:51]shift 533 fd 227473 [13:26:51]save to /storage/0533/doc_00227473 [13:26:51]save last doc name /storage/0533/doc_00227473 to /storage/kkm_last_doc_name [13:26:51]save OK [13:26:51]Clear old archive folders... [13:26:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:26:51]tlvbuf is 01821B50 [13:26:51]SAM_PROTO_ClearQueue [13:26:51]wFMCommunicate request_size=4 [13:26:51]MH_SAM_APDU [13:26:51]CAPDU: 80 09 00 00 [13:26:51]Write to MH i2c: E2 08 00 B4 24 80 09 00 00 00 00 00 00 4A [13:26:51]Write i2c OK [13:26:51]MH_I2C_Read... [13:26:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:26:51]Read from MH i2c: E2 [13:26:51]MH_I2C_Read... [13:26:51]Read from MH i2c: E2 03 00 [13:26:51]MH_I2C_Read... [13:26:51]Read from MH i2c: E2 03 00 B4 24 00 90 00 4C [13:26:51]RAPDU: 90 00 [13:26:51]wFMCommunicate OK [13:26:51]SAM_PROTO_ClearQueue done [13:26:51]KKMCreateOFDPacket [13:26:51]OFDProtocolAddRootSTLVToBuf [13:26:51]FM_MakeSignedData [13:26:51]FM_MakeSignedData [13:26:51]SAM_PROTO_SignData [13:26:51]wFMCommunicate request_size=4 [13:26:51]MH_SAM_APDU [13:26:51]CAPDU: 80 0D 01 02 [13:26:51]Write to MH i2c: E2 08 00 B5 24 80 0D 01 02 00 00 00 00 52 [13:26:51]Write i2c OK [13:26:51]MH_I2C_Read... [13:26:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:26:52]Read from MH i2c: E2 [13:26:52]MH_I2C_Read... [13:26:52]Read from MH i2c: E2 03 00 [13:26:52]MH_I2C_Read... [13:26:52]Read from MH i2c: E2 03 00 B5 24 00 90 00 4D [13:26:52]RAPDU: 90 00 [13:26:52]wFMCommunicate OK [13:26:52]wFMCommunicate request_size=255 [13:26:52]MH_SAM_APDU [13:26:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 1C 05 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 91 78 03 00 35 04 06 00 4D [13:26:52]Write to MH i2c: E2 02 01 B6 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 1C 05 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 91 78 03 00 35 04 06 00 4D 00 00 2C [13:26:52]Write i2c OK [13:26:52]MH_I2C_Read... [13:26:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:52]Read from MH i2c: E2 [13:26:52]MH_I2C_Read... [13:26:52]Read from MH i2c: E2 03 00 [13:26:52]MH_I2C_Read... [13:26:52]Read from MH i2c: E2 03 00 B6 24 00 90 00 4E [13:26:52]RAPDU: 90 00 [13:26:52]wFMCommunicate OK [13:26:52]wFMCommunicate request_size=10 [13:26:52]MH_SAM_APDU [13:26:52]CAPDU: 80 0D 02 02 05 42 C0 DD AA D3 [13:26:52]Write to MH i2c: E2 0D 00 B7 24 80 0D 02 02 05 00 42 C0 DD AA D3 00 00 BB [13:26:52]Write i2c OK [13:26:52]MH_I2C_Read... [13:26:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:52]Read from MH i2c: E2 [13:26:52]MH_I2C_Read... [13:26:52]Read from MH i2c: E2 03 00 [13:26:52]MH_I2C_Read... [13:26:52]Read from MH i2c: E2 03 00 B7 24 00 90 00 4F [13:26:52]RAPDU: 90 00 [13:26:52]wFMCommunicate OK [13:26:52]wFMCommunicate request_size=4 [13:26:52]MH_SAM_APDU [13:26:52]CAPDU: 80 0D 03 02 [13:26:52]Write to MH i2c: E2 08 00 B8 24 80 0D 03 02 00 00 00 00 57 [13:26:52]Write i2c OK [13:26:52]MH_I2C_Read... [13:26:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:26:52]Read from MH i2c: E2 [13:26:52]MH_I2C_Read... [13:26:52]Read from MH i2c: E2 0B 00 [13:26:52]MH_I2C_Read... [13:26:52]Read from MH i2c: E2 0B 00 B8 24 00 1B 6B 70 23 BA 56 D8 45 90 00 9E [13:26:52]RAPDU: 1B 6B 70 23 BA 56 D8 45 90 00 [13:26:52]wFMCommunicate OK [13:26:52]SAM_PROTO_SignData done [13:26:52]FM_MakeSignedData done [13:26:52]CreateOFDProtocolMessage [13:26:52]wFMCommunicate request_size=4 [13:26:52]MH_SAM_APDU [13:26:52]CAPDU: 80 11 00 00 [13:26:52]Write to MH i2c: E2 08 00 B9 24 80 11 00 00 00 00 00 00 57 [13:26:52]Write i2c OK [13:26:52]MH_I2C_Read... [13:26:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:52]Read from MH i2c: E2 [13:26:52]MH_I2C_Read... [13:26:52]Read from MH i2c: E2 17 00 [13:26:52]MH_I2C_Read... [13:26:52]Read from MH i2c: E2 17 00 B9 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 AE [13:26:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:26:52]wFMCommunicate OK [13:26:52]CreateOFDProtocolMessage done [13:26:52]OFDSenderStorePacket 227473 [13:26:52]StoreOFDPacket docnum=227473 [13:26:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 37 F2 07 01 6D C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 1C 05 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 91 78 03 00 35 04 06 00 4D 42 C0 DD AA D3 1B 6B 70 23 BA 56 D8 45 [13:26:52]CheckFolder [13:26:52]dirname=/storage/ofd_packets [13:26:52]CheckFolder done [13:26:52]ProducePacketName [13:26:52]name=ofd_packets/00227473 [13:26:52]NVStorageSaveData ofd_packets/00227473 [13:26:52]File name is /storage/ofd_packets/00227473 [13:26:52]Write 301 bytes [13:26:52]NVStorageSaveData done [13:26:52]OFDSenderStorePacket done [13:26:52]KKMCreateOFDPacket done [13:26:52]NVStorageSaveData kkm_last_timestamp [13:26:52]File name is /storage/kkm_last_timestamp [13:26:52]Write 4 bytes [13:26:52]NVStorageSaveData done [13:26:52]ExternCall_PrintAddStr [13:26:52]wPrintStart [13:26:52]Write to MH i2c: 01 00 00 BA 24 DE [13:26:52]Write i2c OK [13:26:52]MH_I2C_Read... [13:26:52]Read from MH i2c: 01 [13:26:52]MH_I2C_Read... [13:26:52]Read from MH i2c: 01 07 00 [13:26:52]MH_I2C_Read... [13:26:52]Read from MH i2c: 01 07 00 BA 24 00 00 00 00 00 FF 0F F3 [13:26:52]RasterBufferAndPrint [13:26:52]line Счет N : (1)1962996 [13:26:52]line ИНН: 02508201610067 [13:26:52]line Контрольно-Кассовый Чек [13:26:52]line ПРОДАЖА [13:26:52]line ТРК (МРК, ГНК) : 43 [13:26:52]line Товар: 2710124130 [13:26:52]line Аи-92-К-5 [13:26:52]line 4.490 * 66.90 [13:26:52]line = 300.38 [13:26:52]line НДС 12% НСП 1% [13:26:52]line > о реализуемом товаре [13:26:52]line ОКРУГЛЕНИЕ: -0.38 [13:26:52]line ИТОГО: 300.00 [13:26:52]line Внесено: 300.00 [13:26:52]line СДАЧА: 0.00 [13:26:52]line НСП 1% : 2.66 [13:26:52]line НДС 12% : 31.90 [13:26:52]line Наличными: 300.00 [13:26:52]line Безнал.: 0.00 [13:26:52]line Место: АЗС № 133 "Партнер Нефть" [13:26:52]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:26:52]line СНО: Общий режим [13:26:52]line Чек 321 20.10.2024 13:26 [13:26:52]line Смена: 533 ФФД: 1.0 [13:26:52]line ЗНМ: 0300000091 [13:26:52]line РНМ: 0000000000091685 [13:26:52]line Версия ККМ: 001 [13:26:52]line ФМ: 0000000000871839 [13:26:52]line ФД: 227473 [13:26:52]line ФПД: 84949098932947 [13:26:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T132652&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227473&fm=84949098932947&tin=02508201610067®Number=0000000000091685&sum=30000 [13:26:52]OFD Sender: Processing packet 227473 [packets to send 38, broken 37] [13:26:52]ProducePacketName [13:26:52]name=ofd_packets/00227473 [13:26:52]OFD Sender: To server: pG, [13:26:52]CommunicateWithHost lk.salyk.kg:30040 [13:26:52]ConnectInit lk.salyk.kg [13:26:52]written 0, free lines is 4095 [13:26:52]Connected sock=10 [13:26: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 33 39 0F 01 00 00 37 F2 07 01 6D C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 1C 05 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 91 78 03 00 35 04 06 00 4D 42 C0 DD AA D3 1B 6B 70 23 BA 56 D8 45 [13:26: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 33 39 4F 00 00 00 45 7C 47 00 71 FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 91 78 03 00 F4 03 04 00 1A B0 14 67 B6 04 01 00 00 21 E6 19 24 35 58 8F 16 [13:26:53]CommunicateWithHost err = 0 [13:26:53]CheckOFDResponse [13:26:53]1017 (14) - 77093643461234 [13:26:53]1041 (16) - 0000000000871839 [13:26:53]1040 (4) - 227473 [13:26:53]1012 (4) - 20.10.2024 07:24 [13:26:53]1206 (1) - 0 [13:26:53]OFD Sender: Remove packet 227473 [13:26:53]ProducePacketName [13:26:53]name=ofd_packets/00227473 [13:26:53]NVStorageDeleteData [13:26:53]Write to MH i2c: 01 00 00 E4 24 08 [13:26:53]Write i2c OK [13:26:53]MH_I2C_Read... [13:26:53]Read from MH i2c: 01 [13:26:53]MH_I2C_Read... [13:26:53]Read from MH i2c: 01 07 00 [13:26:53]MH_I2C_Read... [13:26:53]Read from MH i2c: 01 07 00 E4 24 00 00 00 00 00 02 0D 1E [13:26:53]RasterBufferAndPrint [13:26:53]line [13:26:53]line [13:26:53]line [13:26:53]line [13:26:53]line [13:26:53]written 0, free lines is 3336 [13:26:53]process_action close_receipt done [13:26:53]requested_data is exist [13:26:53]produce_requested_data [13:26:53]requested_item fm.sn is exist - process it [13:26:53]wFMCommunicate request_size=4 [13:26:53]MH_SAM_APDU [13:26:53]CAPDU: 80 11 00 00 [13:26:53]Write to MH i2c: E2 08 00 EB 24 80 11 00 00 00 00 00 00 89 [13:26:53]Write i2c OK [13:26:53]MH_I2C_Read... [13:26:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:53]Read from MH i2c: E2 [13:26:53]MH_I2C_Read... [13:26:53]Read from MH i2c: E2 17 00 [13:26:53]MH_I2C_Read... [13:26:53]Read from MH i2c: E2 17 00 EB 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E0 [13:26:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:26:53]wFMCommunicate OK [13:26:53]requested_item fd.num is exist - process it [13:26:53]SAM_PROTO_GetFieldsCounters [13:26:53]wFMCommunicate request_size=4 [13:26:53]MH_SAM_APDU [13:26:53]CAPDU: 80 13 00 00 [13:26:53]Write to MH i2c: E2 08 00 EC 24 80 13 00 00 00 00 00 00 8C [13:26:53]Write i2c OK [13:26:53]MH_I2C_Read... [13:26:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:26:53]Read from MH i2c: E2 [13:26:53]MH_I2C_Read... [13:26:53]Read from MH i2c: E2 62 00 [13:26:53]MH_I2C_Read... [13:26:53]Read from MH i2c: E2 62 00 EC 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 91 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 41 01 00 00 5E 04 04 00 41 01 00 00 57 04 04 00 42 01 00 00 19 04 04 00 00 00 00 00 90 00 9E [13:26: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 91 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 41 01 00 00 5E 04 04 00 41 01 00 00 57 04 04 00 42 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:26:53]wFMCommunicate OK [13:26:53]SAM_PROTO_GetFieldsCounters done [13:26:53]requested_item shift.num is exist - process it [13:26:53]requested_item shift.opened is exist - process it [13:26:53]req_shift_opened [13:26:53]FM_GetShiftState [13:26:53]SAM_PROTO_GetShiftState [13:26:53]wFMCommunicate request_size=4 [13:26:53]MH_SAM_APDU [13:26:53]CAPDU: 80 13 01 00 [13:26:53]Write to MH i2c: E2 08 00 ED 24 80 13 01 00 00 00 00 00 8E [13:26:53]Write i2c OK [13:26:53]MH_I2C_Read... [13:26:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:53]Read from MH i2c: E2 [13:26:53]MH_I2C_Read... [13:26:53]Read from MH i2c: E2 0E 00 [13:26:53]MH_I2C_Read... [13:26:53]Read from MH i2c: E2 0E 00 ED 24 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 A8 [13:26:53]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:26:53]wFMCommunicate OK [13:26:53]SAM_PROTO_GetShiftState done [13:26:53]FM_GetShiftState done [13:26:53]req_shift_opened done [13:26:53]requested_item shift.open_date is exist - process it [13:26:53]req_shift_open_date [13:26:53]req_shift_open_date done [13:26:53]produce_requested_data done [13:26:53]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227473,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [13:26:53]process_action_free close_receipt [13:26:53]json_value_free [13:26:53]json_value_free done [13:26:53]process_json_proto returns [13:26:53]Send response to host [13:26:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227473,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [13:26:53]free response buf [13:26:53]execute_script done [13:26:53]execute_script returns [13:26:53]free content buf [13:26:53]Sock 8.Close socket [13:26:53]Sock 8.Thread stoped [13:26:53]OFD Sender: No OFD packet to send [13:26:58]OFD Sender: No OFD packet to send [13:27:03]OFD Sender: No OFD packet to send [13:27:08]OFD Sender: No OFD packet to send [13:27:13]OFD Sender: No OFD packet to send [13:27:18]OFD Sender: No OFD packet to send [13:27:23]OFD Sender: No OFD packet to send [13:27:28]OFD Sender: No OFD packet to send [13:27:33]OFD Sender: No OFD packet to send [13:27:38]OFD Sender: No OFD packet to send [13:27:43]OFD Sender: No OFD packet to send [13:27:48]OFD Sender: No OFD packet to send [13:27:53]OFD Sender: No OFD packet to send [13:27:58]OFD Sender: No OFD packet to send [13:28:03]OFD Sender: No OFD packet to send [13:28:08]OFD Sender: No OFD packet to send [13:28:13]OFD Sender: No OFD packet to send [13:28:18]OFD Sender: No OFD packet to send [13:28:23]OFD Sender: No OFD packet to send [13:28:28]OFD Sender: No OFD packet to send [13:28:33]OFD Sender: No OFD packet to send [13:28:38]OFD Sender: No OFD packet to send [13:28:40]accept exits with 9 [13:28:40]New connection [13:28:40]New thread 3066543460 created [13:28:40]Thread 3066686820 joined [13:28:40]Waiting for new connection... [13:28:40] Sock 9.Parse request [13:28:40]Sock 9.Check first char [13:28:40]Sock 9.First char is OK [13:28:40]request: POST /json_proto HTTP/1.0 [13:28:40]Method: POST [13:28:40]URL: /json_proto [13:28:40]Method is POST - this is cgi request [13:28:40]url: /json_proto [13:28:40]query_string will be loaded in cgi processing [13:28:40]execute_cgi json_proto POST (null) [13:28:40]execute_cgi path=json_proto method=POST [13:28:40]POST find Content-Length [13:28:40]Host: 172.17.44.195:8080 [13:28:40]Content-Length: 675 [13:28:40]Content-Type: application/json [13:28:40] [13:28:40]POST finish read [13:28:40]Found Content-Length = 675 [13:28:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962997", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:28:40]execute_script... [13:28: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)1962997", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:28:40]POST & json_proto [13:28:40]process_json_proto [13:28:40]json parsed OK: [13:28:40]protocol is kg_v1.0 [13:28:40]action value=close_receipt [13:28:40]process_action close_receipt [13:28:40]cmd_close_receipt [13:28:40]MH_GetDate [13:28:40]Write to MH i2c: F0 00 00 EE 24 01 [13:28:40]Write i2c OK [13:28:40]MH_I2C_Read... [13:28:40]Read from MH i2c: F0 [13:28:40]MH_I2C_Read... [13:28:40]Read from MH i2c: F0 09 00 [13:28:40]MH_I2C_Read... [13:28:40]Read from MH i2c: F0 09 00 EE 24 00 89 05 15 67 82 C9 CF 66 94 [13:28:40]GetLastDocTimeStamp 1729430812 [13:28:40]current date 1729430921 [13:28:40]FM_GetShiftState [13:28:40]SAM_PROTO_GetShiftState [13:28:40]wFMCommunicate request_size=4 [13:28:40]MH_SAM_APDU [13:28:40]CAPDU: 80 13 01 00 [13:28:40]Write to MH i2c: E2 08 00 EF 24 80 13 01 00 00 00 00 00 90 [13:28:40]Write i2c OK [13:28:40]MH_I2C_Read... [13:28:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:28:40]Read from MH i2c: E2 [13:28:40]MH_I2C_Read... [13:28:40]Read from MH i2c: E2 0E 00 [13:28:40]MH_I2C_Read... [13:28:40]Read from MH i2c: E2 0E 00 EF 24 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 AA [13:28:40]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:28:40]wFMCommunicate OK [13:28:40]SAM_PROTO_GetShiftState done [13:28:40]FM_GetShiftState done [13:28:40]opened in 1729383750 [13:28:40]opened+sec_in_day 1729470150 [13:28:40]quantity*price = 40005 [13:28:40]sum+1 = 40006 [13:28:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 322 20.10.2024 13:28 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227474 ФПД: 50321998954677 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T132842&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227474&fm=50321998954677&tin=02508201610067®Number=0000000000091685&sum=40000 [13:28:41]StoreToDocumentArchive [13:28:41]shift 533 fd 227474 [13:28:41]save to /storage/0533/doc_00227474 [13:28:41]save last doc name /storage/0533/doc_00227474 to /storage/kkm_last_doc_name [13:28:41]save OK [13:28:41]Clear old archive folders... [13:28:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:28:41]tlvbuf is B6E67820 [13:28:41]SAM_PROTO_ClearQueue [13:28:41]wFMCommunicate request_size=4 [13:28:41]MH_SAM_APDU [13:28:41]CAPDU: 80 09 00 00 [13:28:41]Write to MH i2c: E2 08 00 FC 24 80 09 00 00 00 00 00 00 92 [13:28:41]Write i2c OK [13:28:41]MH_I2C_Read... [13:28:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:28:42]Read from MH i2c: E2 [13:28:42]MH_I2C_Read... [13:28:42]Read from MH i2c: E2 03 00 [13:28:42]MH_I2C_Read... [13:28:42]Read from MH i2c: E2 03 00 FC 24 00 90 00 94 [13:28:42]RAPDU: 90 00 [13:28:42]wFMCommunicate OK [13:28:42]SAM_PROTO_ClearQueue done [13:28:42]KKMCreateOFDPacket [13:28:42]OFDProtocolAddRootSTLVToBuf [13:28:42]FM_MakeSignedData [13:28:42]FM_MakeSignedData [13:28:42]SAM_PROTO_SignData [13:28:42]wFMCommunicate request_size=4 [13:28:42]MH_SAM_APDU [13:28:42]CAPDU: 80 0D 01 02 [13:28:42]Write to MH i2c: E2 08 00 FD 24 80 0D 01 02 00 00 00 00 9A [13:28:42]Write i2c OK [13:28:42]MH_I2C_Read... [13:28:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:28:42]Read from MH i2c: E2 [13:28:42]MH_I2C_Read... [13:28:42]Read from MH i2c: E2 03 00 [13:28:42]MH_I2C_Read... [13:28:42]Read from MH i2c: E2 03 00 FD 24 00 90 00 95 [13:28:42]RAPDU: 90 00 [13:28:42]wFMCommunicate OK [13:28:42]wFMCommunicate request_size=255 [13:28:42]MH_SAM_APDU [13:28: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 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 8A 05 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 92 78 03 00 35 04 06 00 2D C4 80 DF [13:28:42]Write to MH i2c: E2 02 01 FE 24 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 8A 05 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 92 78 03 00 35 04 06 00 2D C4 80 DF 00 00 DC [13:28:42]Write i2c OK [13:28:42]MH_I2C_Read... [13:28:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:28:42]Read from MH i2c: E2 [13:28:42]MH_I2C_Read... [13:28:42]Read from MH i2c: E2 03 00 [13:28:42]MH_I2C_Read... [13:28:42]Read from MH i2c: E2 03 00 FE 24 00 90 00 96 [13:28:42]RAPDU: 90 00 [13:28:42]wFMCommunicate OK [13:28:42]wFMCommunicate request_size=7 [13:28:42]MH_SAM_APDU [13:28:42]CAPDU: 80 0D 02 02 02 40 B5 [13:28:42]Write to MH i2c: E2 0A 00 FF 24 80 0D 02 02 02 00 40 B5 00 00 96 [13:28:42]Write i2c OK [13:28:42]MH_I2C_Read... [13:28:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:28:42]Read from MH i2c: E2 [13:28:42]MH_I2C_Read... [13:28:42]Read from MH i2c: E2 03 00 [13:28:42]MH_I2C_Read... [13:28:42]Read from MH i2c: E2 03 00 FF 24 00 90 00 97 [13:28:42]RAPDU: 90 00 [13:28:42]wFMCommunicate OK [13:28:42]wFMCommunicate request_size=4 [13:28:42]MH_SAM_APDU [13:28:42]CAPDU: 80 0D 03 02 [13:28:42]Write to MH i2c: E2 08 00 00 25 80 0D 03 02 00 00 00 00 A0 [13:28:42]Write i2c OK [13:28:42]MH_I2C_Read... [13:28:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:28:42]Read from MH i2c: E2 [13:28:42]MH_I2C_Read... [13:28:42]Read from MH i2c: E2 0B 00 [13:28:42]MH_I2C_Read... [13:28:42]Read from MH i2c: E2 0B 00 00 25 00 F0 1D E8 2D 3B 07 7F DD 90 00 61 [13:28:42]RAPDU: F0 1D E8 2D 3B 07 7F DD 90 00 [13:28:42]wFMCommunicate OK [13:28:42]SAM_PROTO_SignData done [13:28:42]FM_MakeSignedData done [13:28:42]CreateOFDProtocolMessage [13:28:42]wFMCommunicate request_size=4 [13:28:42]MH_SAM_APDU [13:28:42]CAPDU: 80 11 00 00 [13:28:42]Write to MH i2c: E2 08 00 01 25 80 11 00 00 00 00 00 00 A0 [13:28:42]Write i2c OK [13:28:42]MH_I2C_Read... [13:28:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:28:42]Read from MH i2c: E2 [13:28:42]MH_I2C_Read... [13:28:42]Read from MH i2c: E2 17 00 [13:28:42]MH_I2C_Read... [13:28:42]Read from MH i2c: E2 17 00 01 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F7 [13:28:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:28:42]wFMCommunicate OK [13:28:42]CreateOFDProtocolMessage done [13:28:42]OFDSenderStorePacket 227474 [13:28:42]StoreOFDPacket docnum=227474 [13:28:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 CB 73 04 01 94 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 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 8A 05 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 92 78 03 00 35 04 06 00 2D C4 80 DF 40 B5 F0 1D E8 2D 3B 07 7F DD [13:28:42]CheckFolder [13:28:42]dirname=/storage/ofd_packets [13:28:42]CheckFolder done [13:28:42]ProducePacketName [13:28:42]name=ofd_packets/00227474 [13:28:42]NVStorageSaveData ofd_packets/00227474 [13:28:42]File name is /storage/ofd_packets/00227474 [13:28:42]Write 298 bytes [13:28:42]NVStorageSaveData done [13:28:42]OFDSenderStorePacket done [13:28:42]KKMCreateOFDPacket done [13:28:42]NVStorageSaveData kkm_last_timestamp [13:28:42]File name is /storage/kkm_last_timestamp [13:28:42]Write 4 bytes [13:28:42]NVStorageSaveData done [13:28:42]ExternCall_PrintAddStr [13:28:42]wPrintStart [13:28:42]Write to MH i2c: 01 00 00 02 25 27 [13:28:42]Write i2c OK [13:28:42]MH_I2C_Read... [13:28:42]Read from MH i2c: 01 [13:28:42]MH_I2C_Read... [13:28:42]Read from MH i2c: 01 07 00 [13:28:42]MH_I2C_Read... [13:28:42]Read from MH i2c: 01 07 00 02 25 00 00 00 00 00 FF 0F 3C [13:28:42]RasterBufferAndPrint [13:28:42]line Счет N : (1)1962997 [13:28:42]line ИНН: 02508201610067 [13:28:42]line Контрольно-Кассовый Чек [13:28:42]line ПРОДАЖА [13:28:42]line ТРК (МРК, ГНК) : 61 [13:28:42]line Товар: 2710194210 [13:28:42]line ДТ-К-5 [13:28:42]line 5.250 * 76.20 [13:28:42]line = 400.05 [13:28:42]line НДС 12% НСП 1% [13:28:42]line > о реализуемом товаре [13:28:42]line ОКРУГЛЕНИЕ: -0.05 [13:28:42]line ИТОГО: 400.00 [13:28:42]line Внесено: 400.00 [13:28:42]line СДАЧА: 0.00 [13:28:42]line НСП 1% : 3.54 [13:28:42]line НДС 12% : 42.48 [13:28:42]line Наличными: 400.00 [13:28:42]line Безнал.: 0.00 [13:28:42]line Место: АЗС № 133 "Партнер Нефть" [13:28:42]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:28:42]line СНО: Общий режим [13:28:42]line Чек 322 20.10.2024 13:28 [13:28:42]line Смена: 533 ФФД: 1.0 [13:28:42]line ЗНМ: 0300000091 [13:28:42]line РНМ: 0000000000091685 [13:28:42]line Версия ККМ: 001 [13:28:42]line ФМ: 0000000000871839 [13:28:42]line ФД: 227474 [13:28:42]line ФПД: 50321998954677 [13:28:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T132842&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227474&fm=50321998954677&tin=02508201610067®Number=0000000000091685&sum=40000 [13:28:42]written 0, free lines is 4095 [13:28:42]OFD Sender: Processing packet 227474 [packets to send 38, broken 37] [13:28:42]ProducePacketName [13:28:42]name=ofd_packets/00227474 [13:28:42]OFD Sender: To server: pG, [13:28:42]CommunicateWithHost lk.salyk.kg:30040 [13:28:42]ConnectInit lk.salyk.kg [13:28:42]Connected sock=10 [13:28: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 33 39 0C 01 00 00 CB 73 04 01 94 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 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 8A 05 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 92 78 03 00 35 04 06 00 2D C4 80 DF 40 B5 F0 1D E8 2D 3B 07 7F DD [13:28: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 33 39 4F 00 00 00 45 08 47 00 E1 C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 92 78 03 00 F4 03 04 00 88 B0 14 67 B6 04 01 00 00 24 A0 04 33 B4 25 06 3E [13:28:43]CommunicateWithHost err = 0 [13:28:43]CheckOFDResponse [13:28:43]1017 (14) - 77093643461234 [13:28:43]1041 (16) - 0000000000871839 [13:28:43]1040 (4) - 227474 [13:28:43]1012 (4) - 20.10.2024 07:26 [13:28:43]1206 (1) - 0 [13:28:43]OFD Sender: Remove packet 227474 [13:28:43]ProducePacketName [13:28:43]name=ofd_packets/00227474 [13:28:43]NVStorageDeleteData [13:28:43]Write to MH i2c: 01 00 00 2C 25 51 [13:28:43]Write i2c OK [13:28:43]MH_I2C_Read... [13:28:43]Read from MH i2c: 01 [13:28:43]MH_I2C_Read... [13:28:43]Read from MH i2c: 01 07 00 [13:28:43]MH_I2C_Read... [13:28:43]Read from MH i2c: 01 07 00 2C 25 00 00 00 00 00 FE 0C 62 [13:28:43]RasterBufferAndPrint [13:28:43]line [13:28:43]line [13:28:43]line [13:28:43]line [13:28:43]line [13:28:43]written 0, free lines is 3332 [13:28:43]process_action close_receipt done [13:28:43]requested_data is exist [13:28:43]produce_requested_data [13:28:43]requested_item fm.sn is exist - process it [13:28:43]wFMCommunicate request_size=4 [13:28:43]MH_SAM_APDU [13:28:43]CAPDU: 80 11 00 00 [13:28:43]Write to MH i2c: E2 08 00 33 25 80 11 00 00 00 00 00 00 D2 [13:28:43]Write i2c OK [13:28:43]MH_I2C_Read... [13:28:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:28:43]Read from MH i2c: E2 [13:28:43]MH_I2C_Read... [13:28:43]Read from MH i2c: E2 17 00 [13:28:43]MH_I2C_Read... [13:28:43]Read from MH i2c: E2 17 00 33 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 29 [13:28:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:28:43]wFMCommunicate OK [13:28:43]requested_item fd.num is exist - process it [13:28:43]SAM_PROTO_GetFieldsCounters [13:28:43]wFMCommunicate request_size=4 [13:28:43]MH_SAM_APDU [13:28:43]CAPDU: 80 13 00 00 [13:28:43]Write to MH i2c: E2 08 00 34 25 80 13 00 00 00 00 00 00 D5 [13:28:43]Write i2c OK [13:28:43]MH_I2C_Read... [13:28:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:28:43]Read from MH i2c: E2 [13:28:43]MH_I2C_Read... [13:28:43]Read from MH i2c: E2 62 00 [13:28:43]MH_I2C_Read... [13:28:43]Read from MH i2c: E2 62 00 34 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 92 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 EB [13:28: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 92 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:28:43]wFMCommunicate OK [13:28:43]SAM_PROTO_GetFieldsCounters done [13:28:43]requested_item shift.num is exist - process it [13:28:43]requested_item shift.opened is exist - process it [13:28:43]req_shift_opened [13:28:43]FM_GetShiftState [13:28:43]SAM_PROTO_GetShiftState [13:28:43]wFMCommunicate request_size=4 [13:28:43]MH_SAM_APDU [13:28:43]CAPDU: 80 13 01 00 [13:28:43]Write to MH i2c: E2 08 00 35 25 80 13 01 00 00 00 00 00 D7 [13:28:43]Write i2c OK [13:28:43]MH_I2C_Read... [13:28:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:28:43]Read from MH i2c: E2 [13:28:43]MH_I2C_Read... [13:28:43]Read from MH i2c: E2 0E 00 [13:28:43]MH_I2C_Read... [13:28:43]Read from MH i2c: E2 0E 00 35 25 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 F1 [13:28:43]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:28:43]wFMCommunicate OK [13:28:43]SAM_PROTO_GetShiftState done [13:28:43]FM_GetShiftState done [13:28:43]req_shift_opened done [13:28:43]requested_item shift.open_date is exist - process it [13:28:43]req_shift_open_date [13:28:43]req_shift_open_date done [13:28:43]produce_requested_data done [13:28:43]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227474,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [13:28:43]process_action_free close_receipt [13:28:43]json_value_free [13:28:43]json_value_free done [13:28:43]process_json_proto returns [13:28:43]Send response to host [13:28:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227474,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [13:28:43]free response buf [13:28:43]execute_script done [13:28:43]execute_script returns [13:28:43]free content buf [13:28:43]Sock 9.Close socket [13:28:43]Sock 9.Thread stoped [13:28:43]OFD Sender: No OFD packet to send [13:28:48]OFD Sender: No OFD packet to send [13:28:53]OFD Sender: No OFD packet to send [13:28:58]OFD Sender: No OFD packet to send [13:29:03]OFD Sender: No OFD packet to send [13:29:08]OFD Sender: No OFD packet to send [13:29:13]OFD Sender: No OFD packet to send [13:29:18]OFD Sender: No OFD packet to send [13:29:23]OFD Sender: No OFD packet to send [13:29:28]OFD Sender: No OFD packet to send [13:29:33]OFD Sender: No OFD packet to send [13:29:36]accept exits with 8 [13:29:36]New connection [13:29:36]New thread 3066686820 created [13:29:36]Thread 3066543460 joined [13:29:36]Waiting for new connection... [13:29:36] Sock 8.Parse request [13:29:36]Sock 8.Check first char [13:29:36]Sock 8.First char is OK [13:29:36]request: POST /json_proto HTTP/1.0 [13:29:36]Method: POST [13:29:36]URL: /json_proto [13:29:36]Method is POST - this is cgi request [13:29:36]url: /json_proto [13:29:36]query_string will be loaded in cgi processing [13:29:36]execute_cgi json_proto POST (null) [13:29:36]execute_cgi path=json_proto method=POST [13:29:36]POST find Content-Length [13:29:36]Host: 172.17.44.195:8080 [13:29:36]Content-Length: 678 [13:29:36]Content-Type: application/json [13:29:36] [13:29:36]POST finish read [13:29:36]Found Content-Length = 678 [13:29:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:29:36]execute_script... [13:29: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)1962999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:29:36]POST & json_proto [13:29:36]process_json_proto [13:29:36]json parsed OK: [13:29:36]protocol is kg_v1.0 [13:29:36]action value=close_receipt [13:29:36]process_action close_receipt [13:29:36]cmd_close_receipt [13:29:36]MH_GetDate [13:29:36]Write to MH i2c: F0 00 00 36 25 4A [13:29:36]Write i2c OK [13:29:36]MH_I2C_Read... [13:29:36]Read from MH i2c: F0 [13:29:36]MH_I2C_Read... [13:29:36]Read from MH i2c: F0 09 00 [13:29:36]MH_I2C_Read... [13:29:36]Read from MH i2c: F0 09 00 36 25 00 C1 05 15 67 82 C9 CF 66 15 [13:29:36]GetLastDocTimeStamp 1729430922 [13:29:36]current date 1729430977 [13:29:36]FM_GetShiftState [13:29:36]SAM_PROTO_GetShiftState [13:29:36]wFMCommunicate request_size=4 [13:29:36]MH_SAM_APDU [13:29:36]CAPDU: 80 13 01 00 [13:29:36]Write to MH i2c: E2 08 00 37 25 80 13 01 00 00 00 00 00 D9 [13:29:36]Write i2c OK [13:29:36]MH_I2C_Read... [13:29:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:36]Read from MH i2c: E2 [13:29:36]MH_I2C_Read... [13:29:36]Read from MH i2c: E2 0E 00 [13:29:36]MH_I2C_Read... [13:29:36]Read from MH i2c: E2 0E 00 37 25 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 F3 [13:29:36]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:29:36]wFMCommunicate OK [13:29:36]SAM_PROTO_GetShiftState done [13:29:36]FM_GetShiftState done [13:29:36]opened in 1729383750 [13:29:36]opened+sec_in_day 1729470150 [13:29:36]quantity*price = 50010 [13:29:36]sum+1 = 50012 [13:29:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 323 20.10.2024 13:29 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227475 ФПД: 30999749158411 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T132937&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227475&fm=30999749158411&tin=02508201610067®Number=0000000000091685&sum=50000 [13:29:37]StoreToDocumentArchive [13:29:37]shift 533 fd 227475 [13:29:37]save to /storage/0533/doc_00227475 [13:29:37]save last doc name /storage/0533/doc_00227475 to /storage/kkm_last_doc_name [13:29:37]save OK [13:29:37]Clear old archive folders... [13:29:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:29:37]tlvbuf is B6D67590 [13:29:37]SAM_PROTO_ClearQueue [13:29:37]wFMCommunicate request_size=4 [13:29:37]MH_SAM_APDU [13:29:37]CAPDU: 80 09 00 00 [13:29:37]Write to MH i2c: E2 08 00 44 25 80 09 00 00 00 00 00 00 DB [13:29:37]Write i2c OK [13:29:37]MH_I2C_Read... [13:29:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:29:37]Read from MH i2c: E2 [13:29:37]MH_I2C_Read... [13:29:37]Read from MH i2c: E2 03 00 [13:29:37]MH_I2C_Read... [13:29:37]Read from MH i2c: E2 03 00 44 25 00 90 00 DD [13:29:37]RAPDU: 90 00 [13:29:37]wFMCommunicate OK [13:29:37]SAM_PROTO_ClearQueue done [13:29:37]KKMCreateOFDPacket [13:29:37]OFDProtocolAddRootSTLVToBuf [13:29:37]FM_MakeSignedData [13:29:37]FM_MakeSignedData [13:29:37]SAM_PROTO_SignData [13:29:37]wFMCommunicate request_size=4 [13:29:37]MH_SAM_APDU [13:29:37]CAPDU: 80 0D 01 02 [13:29:37]Write to MH i2c: E2 08 00 45 25 80 0D 01 02 00 00 00 00 E3 [13:29:37]Write i2c OK [13:29:37]MH_I2C_Read... [13:29:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:29:37]Read from MH i2c: E2 [13:29:37]MH_I2C_Read... [13:29:37]Read from MH i2c: E2 03 00 [13:29:37]MH_I2C_Read... [13:29:37]Read from MH i2c: E2 03 00 45 25 00 90 00 DE [13:29:37]RAPDU: 90 00 [13:29:37]wFMCommunicate OK [13:29:37]wFMCommunicate request_size=255 [13:29:37]MH_SAM_APDU [13:29: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 C1 05 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 93 78 03 00 35 04 06 00 1C [13:29:37]Write to MH i2c: E2 02 01 46 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 C1 05 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 93 78 03 00 35 04 06 00 1C 00 00 19 [13:29:37]Write i2c OK [13:29:37]MH_I2C_Read... [13:29:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:37]Read from MH i2c: E2 [13:29:37]MH_I2C_Read... [13:29:37]Read from MH i2c: E2 03 00 [13:29:37]MH_I2C_Read... [13:29:37]Read from MH i2c: E2 03 00 46 25 00 90 00 DF [13:29:37]RAPDU: 90 00 [13:29:37]wFMCommunicate OK [13:29:37]wFMCommunicate request_size=10 [13:29:37]MH_SAM_APDU [13:29:37]CAPDU: 80 0D 02 02 05 31 B1 09 66 0B [13:29:37]Write to MH i2c: E2 0D 00 47 25 80 0D 02 02 05 00 31 B1 09 66 0B 00 00 4C [13:29:37]Write i2c OK [13:29:37]MH_I2C_Read... [13:29:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:38]Read from MH i2c: E2 [13:29:38]MH_I2C_Read... [13:29:38]Read from MH i2c: E2 03 00 [13:29:38]MH_I2C_Read... [13:29:38]Read from MH i2c: E2 03 00 47 25 00 90 00 E0 [13:29:38]RAPDU: 90 00 [13:29:38]wFMCommunicate OK [13:29:38]wFMCommunicate request_size=4 [13:29:38]MH_SAM_APDU [13:29:38]CAPDU: 80 0D 03 02 [13:29:38]Write to MH i2c: E2 08 00 48 25 80 0D 03 02 00 00 00 00 E8 [13:29:38]Write i2c OK [13:29:38]MH_I2C_Read... [13:29:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:29:38]Read from MH i2c: E2 [13:29:38]MH_I2C_Read... [13:29:38]Read from MH i2c: E2 0B 00 [13:29:38]MH_I2C_Read... [13:29:38]Read from MH i2c: E2 0B 00 48 25 00 FA 58 89 F7 C1 43 A6 02 90 00 67 [13:29:38]RAPDU: FA 58 89 F7 C1 43 A6 02 90 00 [13:29:38]wFMCommunicate OK [13:29:38]SAM_PROTO_SignData done [13:29:38]FM_MakeSignedData done [13:29:38]CreateOFDProtocolMessage [13:29:38]wFMCommunicate request_size=4 [13:29:38]MH_SAM_APDU [13:29:38]CAPDU: 80 11 00 00 [13:29:38]Write to MH i2c: E2 08 00 49 25 80 11 00 00 00 00 00 00 E8 [13:29:38]Write i2c OK [13:29:38]MH_I2C_Read... [13:29:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:38]Read from MH i2c: E2 [13:29:38]MH_I2C_Read... [13:29:38]Read from MH i2c: E2 17 00 [13:29:38]MH_I2C_Read... [13:29:38]Read from MH i2c: E2 17 00 49 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 3F [13:29:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:29:38]wFMCommunicate OK [13:29:38]CreateOFDProtocolMessage done [13:29:38]OFDSenderStorePacket 227475 [13:29:38]StoreOFDPacket docnum=227475 [13:29:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 06 44 07 01 09 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 C1 05 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 93 78 03 00 35 04 06 00 1C 31 B1 09 66 0B FA 58 89 F7 C1 43 A6 02 [13:29:38]CheckFolder [13:29:38]dirname=/storage/ofd_packets [13:29:38]CheckFolder done [13:29:38]ProducePacketName [13:29:38]name=ofd_packets/00227475 [13:29:38]NVStorageSaveData ofd_packets/00227475 [13:29:38]File name is /storage/ofd_packets/00227475 [13:29:38]Write 301 bytes [13:29:38]NVStorageSaveData done [13:29:38]OFDSenderStorePacket done [13:29:38]KKMCreateOFDPacket done [13:29:38]NVStorageSaveData kkm_last_timestamp [13:29:38]File name is /storage/kkm_last_timestamp [13:29:38]Write 4 bytes [13:29:38]NVStorageSaveData done [13:29:38]ExternCall_PrintAddStr [13:29:38]wPrintStart [13:29:38]Write to MH i2c: 01 00 00 4A 25 6F [13:29:38]Write i2c OK [13:29:38]MH_I2C_Read... [13:29:38]Read from MH i2c: 01 [13:29:38]MH_I2C_Read... [13:29:38]Read from MH i2c: 01 07 00 [13:29:38]MH_I2C_Read... [13:29:38]Read from MH i2c: 01 07 00 4A 25 00 00 00 00 00 FF 0F 84 [13:29:38]RasterBufferAndPrint [13:29:38]line Счет N : (1)1962999 [13:29:38]line ИНН: 02508201610067 [13:29:38]line Контрольно-Кассовый Чек [13:29:38]line ПРОДАЖА [13:29:38]line ТРК (МРК, ГНК) : 44 [13:29:38]line Товар: 2710124500 [13:29:38]line Аи-95-К-5 [13:29:38]line 6.740 * 74.20 [13:29:38]line = 500.11 [13:29:38]line НДС 12% НСП 1% [13:29:38]line > о реализуемом товаре [13:29:38]line ОКРУГЛЕНИЕ: -0.11 [13:29:38]line ИТОГО: 500.00 [13:29:38]line Внесено: 500.00 [13:29:38]line СДАЧА: 0.00 [13:29:38]line НСП 1% : 4.43 [13:29:38]line НДС 12% : 53.11 [13:29:38]line Наличными: 500.00 [13:29:38]line Безнал.: 0.00 [13:29:38]line Место: АЗС № 133 "Партнер Нефть" [13:29:38]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:29:38]line СНО: Общий режим [13:29:38]line Чек 323 20.10.2024 13:29 [13:29:38]line Смена: 533 ФФД: 1.0 [13:29:38]line ЗНМ: 0300000091 [13:29:38]line РНМ: 0000000000091685 [13:29:38]line Версия ККМ: 001 [13:29:38]line ФМ: 0000000000871839 [13:29:38]line ФД: 227475 [13:29:38]line ФПД: 30999749158411 [13:29:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T132937&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227475&fm=30999749158411&tin=02508201610067®Number=0000000000091685&sum=50000 [13:29:38]OFD Sender: Processing packet 227475 [packets to send 38, broken 37] [13:29:38]ProducePacketName [13:29:38]name=ofd_packets/00227475 [13:29:38]OFD Sender: To server: pG, [13:29:38]CommunicateWithHost lk.salyk.kg:30040 [13:29:38]ConnectInit lk.salyk.kg [13:29:38]written 0, free lines is 4095 [13:29:38]Connected sock=9 [13:29: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 33 39 0F 01 00 00 06 44 07 01 09 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 C1 05 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 93 78 03 00 35 04 06 00 1C 31 B1 09 66 0B FA 58 89 F7 C1 43 A6 02 [13:29: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 33 39 4F 00 00 00 3A A0 47 00 A2 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 33 39 10 04 04 00 93 78 03 00 F4 03 04 00 C0 B0 14 67 B6 04 01 00 00 31 E5 AD E4 34 83 F7 DA [13:29:38]CommunicateWithHost err = 0 [13:29:38]CheckOFDResponse [13:29:38]1017 (14) - 77093643461234 [13:29:38]1041 (16) - 0000000000871839 [13:29:38]1040 (4) - 227475 [13:29:38]1012 (4) - 20.10.2024 07:26 [13:29:38]1206 (1) - 0 [13:29:38]OFD Sender: Remove packet 227475 [13:29:38]ProducePacketName [13:29:38]name=ofd_packets/00227475 [13:29:38]NVStorageDeleteData [13:29:38]Write to MH i2c: 01 00 00 74 25 99 [13:29:38]Write i2c OK [13:29:38]MH_I2C_Read... [13:29:38]Read from MH i2c: 01 [13:29:38]MH_I2C_Read... [13:29:38]Read from MH i2c: 01 07 00 [13:29:38]MH_I2C_Read... [13:29:38]Read from MH i2c: 01 07 00 74 25 00 00 00 00 00 F9 0C A5 [13:29:38]RasterBufferAndPrint [13:29:38]line [13:29:38]line [13:29:38]line [13:29:38]line [13:29:38]line [13:29:38]written 0, free lines is 3330 [13:29:38]process_action close_receipt done [13:29:38]requested_data is exist [13:29:38]produce_requested_data [13:29:38]requested_item fm.sn is exist - process it [13:29:38]wFMCommunicate request_size=4 [13:29:38]MH_SAM_APDU [13:29:38]CAPDU: 80 11 00 00 [13:29:38]Write to MH i2c: E2 08 00 7B 25 80 11 00 00 00 00 00 00 1A [13:29:38]Write i2c OK [13:29:38]MH_I2C_Read... [13:29:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:38]Read from MH i2c: E2 [13:29:38]MH_I2C_Read... [13:29:38]Read from MH i2c: E2 17 00 [13:29:38]MH_I2C_Read... [13:29:38]Read from MH i2c: E2 17 00 7B 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 71 [13:29:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:29:38]wFMCommunicate OK [13:29:38]requested_item fd.num is exist - process it [13:29:38]SAM_PROTO_GetFieldsCounters [13:29:38]wFMCommunicate request_size=4 [13:29:38]MH_SAM_APDU [13:29:38]CAPDU: 80 13 00 00 [13:29:38]Write to MH i2c: E2 08 00 7C 25 80 13 00 00 00 00 00 00 1D [13:29:38]Write i2c OK [13:29:38]MH_I2C_Read... [13:29:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:29:39]Read from MH i2c: E2 [13:29:39]MH_I2C_Read... [13:29:39]Read from MH i2c: E2 62 00 [13:29:39]MH_I2C_Read... [13:29:39]Read from MH i2c: E2 62 00 7C 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 93 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 43 01 00 00 5E 04 04 00 43 01 00 00 57 04 04 00 44 01 00 00 19 04 04 00 00 00 00 00 90 00 37 [13:29:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 93 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 43 01 00 00 5E 04 04 00 43 01 00 00 57 04 04 00 44 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:29:39]wFMCommunicate OK [13:29:39]SAM_PROTO_GetFieldsCounters done [13:29:39]requested_item shift.num is exist - process it [13:29:39]requested_item shift.opened is exist - process it [13:29:39]req_shift_opened [13:29:39]FM_GetShiftState [13:29:39]SAM_PROTO_GetShiftState [13:29:39]wFMCommunicate request_size=4 [13:29:39]MH_SAM_APDU [13:29:39]CAPDU: 80 13 01 00 [13:29:39]Write to MH i2c: E2 08 00 7D 25 80 13 01 00 00 00 00 00 1F [13:29:39]Write i2c OK [13:29:39]MH_I2C_Read... [13:29:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:39]Read from MH i2c: E2 [13:29:39]MH_I2C_Read... [13:29:39]Read from MH i2c: E2 0E 00 [13:29:39]MH_I2C_Read... [13:29:39]Read from MH i2c: E2 0E 00 7D 25 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 39 [13:29:39]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:29:39]wFMCommunicate OK [13:29:39]SAM_PROTO_GetShiftState done [13:29:39]FM_GetShiftState done [13:29:39]req_shift_opened done [13:29:39]requested_item shift.open_date is exist - process it [13:29:39]req_shift_open_date [13:29:39]req_shift_open_date done [13:29:39]produce_requested_data done [13:29:39]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227475,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [13:29:39]process_action_free close_receipt [13:29:39]json_value_free [13:29:39]json_value_free done [13:29:39]process_json_proto returns [13:29:39]Send response to host [13:29:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227475,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [13:29:39]free response buf [13:29:39]execute_script done [13:29:39]execute_script returns [13:29:39]free content buf [13:29:39]Sock 8.Close socket [13:29:39]Sock 8.Thread stoped [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:29:59]accept exits with 10 [13:29:59]New connection [13:29:59]New thread 3066543460 created [13:29:59]Thread 3066686820 joined [13:29:59]Waiting for new connection... [13:29:59] Sock 10.Parse request [13:29:59]Sock 10.Check first char [13:29:59]Sock 10.First char is OK [13:29:59]request: POST /json_proto HTTP/1.0 [13:29:59]Method: POST [13:29:59]URL: /json_proto [13:29:59]Method is POST - this is cgi request [13:29:59]url: /json_proto [13:29:59]query_string will be loaded in cgi processing [13:29:59]execute_cgi json_proto POST (null) [13:29:59]execute_cgi path=json_proto method=POST [13:29:59]POST find Content-Length [13:29:59]Host: 172.17.44.195:8080 [13:29:59]Content-Length: 678 [13:29:59]Content-Type: application/json [13:29:59] [13:29:59]POST finish read [13:29:59]Found Content-Length = 678 [13:29:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963000", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:29:59]execute_script... [13:29:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963000", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:29:59]POST & json_proto [13:29:59]process_json_proto [13:29:59]json parsed OK: [13:29:59]protocol is kg_v1.0 [13:29:59]action value=close_receipt [13:29:59]process_action close_receipt [13:29:59]cmd_close_receipt [13:29:59]MH_GetDate [13:29:59]Write to MH i2c: F0 00 00 7E 25 92 [13:29:59]Write i2c OK [13:29:59]MH_I2C_Read... [13:29:59]Read from MH i2c: F0 [13:29:59]MH_I2C_Read... [13:29:59]Read from MH i2c: F0 09 00 [13:29:59]MH_I2C_Read... [13:29:59]Read from MH i2c: F0 09 00 7E 25 00 D8 05 15 67 82 C9 CF 66 74 [13:29:59]GetLastDocTimeStamp 1729430977 [13:29:59]current date 1729431000 [13:29:59]FM_GetShiftState [13:29:59]SAM_PROTO_GetShiftState [13:29:59]wFMCommunicate request_size=4 [13:29:59]MH_SAM_APDU [13:29:59]CAPDU: 80 13 01 00 [13:29:59]Write to MH i2c: E2 08 00 7F 25 80 13 01 00 00 00 00 00 21 [13:29:59]Write i2c OK [13:29:59]MH_I2C_Read... [13:29:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:59]Read from MH i2c: E2 [13:29:59]MH_I2C_Read... [13:29:59]Read from MH i2c: E2 0E 00 [13:29:59]MH_I2C_Read... [13:29:59]Read from MH i2c: E2 0E 00 7F 25 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 3B [13:29:59]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:29:59]wFMCommunicate OK [13:29:59]SAM_PROTO_GetShiftState done [13:29:59]FM_GetShiftState done [13:29:59]opened in 1729383750 [13:29:59]opened+sec_in_day 1729470150 [13:29:59]quantity*price = 60009 [13:29:59]sum+1 = 60010 [13:29:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 324 20.10.2024 13:30 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227476 ФПД: 85344604528798 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T133000&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227476&fm=85344604528798&tin=02508201610067®Number=0000000000091685&sum=60000 [13:30:00]StoreToDocumentArchive [13:30:00]shift 533 fd 227476 [13:30:00]save to /storage/0533/doc_00227476 [13:30:00]save last doc name /storage/0533/doc_00227476 to /storage/kkm_last_doc_name [13:30:00]save OK [13:30:00]Clear old archive folders... [13:30:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:30:00]tlvbuf is B6E99790 [13:30:00]SAM_PROTO_ClearQueue [13:30:00]wFMCommunicate request_size=4 [13:30:00]MH_SAM_APDU [13:30:00]CAPDU: 80 09 00 00 [13:30:00]Write to MH i2c: E2 08 00 8C 25 80 09 00 00 00 00 00 00 23 [13:30:00]Write i2c OK [13:30:00]MH_I2C_Read... [13:30:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:30:00]Read from MH i2c: E2 [13:30:00]MH_I2C_Read... [13:30:00]Read from MH i2c: E2 03 00 [13:30:00]MH_I2C_Read... [13:30:00]Read from MH i2c: E2 03 00 8C 25 00 90 00 25 [13:30:00]RAPDU: 90 00 [13:30:00]wFMCommunicate OK [13:30:00]SAM_PROTO_ClearQueue done [13:30:00]KKMCreateOFDPacket [13:30:00]OFDProtocolAddRootSTLVToBuf [13:30:00]FM_MakeSignedData [13:30:00]FM_MakeSignedData [13:30:00]SAM_PROTO_SignData [13:30:00]wFMCommunicate request_size=4 [13:30:00]MH_SAM_APDU [13:30:00]CAPDU: 80 0D 01 02 [13:30:00]Write to MH i2c: E2 08 00 8D 25 80 0D 01 02 00 00 00 00 2B [13:30:00]Write i2c OK [13:30:00]MH_I2C_Read... [13:30:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:30:00]Read from MH i2c: E2 [13:30:00]MH_I2C_Read... [13:30:00]Read from MH i2c: E2 03 00 [13:30:00]MH_I2C_Read... [13:30:00]Read from MH i2c: E2 03 00 8D 25 00 90 00 26 [13:30:00]RAPDU: 90 00 [13:30:00]wFMCommunicate OK [13:30:00]wFMCommunicate request_size=255 [13:30:00]MH_SAM_APDU [13:30:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 D8 05 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 94 78 03 00 35 04 06 00 4D [13:30:00]Write to MH i2c: E2 02 01 8E 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 D8 05 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 94 78 03 00 35 04 06 00 4D 00 00 B0 [13:30:00]Write i2c OK [13:30:00]MH_I2C_Read... [13:30:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:00]Read from MH i2c: E2 [13:30:00]MH_I2C_Read... [13:30:00]Read from MH i2c: E2 03 00 [13:30:00]MH_I2C_Read... [13:30:00]Read from MH i2c: E2 03 00 8E 25 00 90 00 27 [13:30:00]RAPDU: 90 00 [13:30:00]wFMCommunicate OK [13:30:00]wFMCommunicate request_size=10 [13:30:00]MH_SAM_APDU [13:30:00]CAPDU: 80 0D 02 02 05 9E D6 D6 20 9E [13:30:00]Write to MH i2c: E2 0D 00 8F 25 80 0D 02 02 05 00 9E D6 D6 20 9E 00 00 40 [13:30:00]Write i2c OK [13:30:00]MH_I2C_Read... [13:30:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:00]Read from MH i2c: E2 [13:30:00]MH_I2C_Read... [13:30:00]Read from MH i2c: E2 03 00 [13:30:00]MH_I2C_Read... [13:30:00]Read from MH i2c: E2 03 00 8F 25 00 90 00 28 [13:30:00]RAPDU: 90 00 [13:30:00]wFMCommunicate OK [13:30:00]wFMCommunicate request_size=4 [13:30:00]MH_SAM_APDU [13:30:00]CAPDU: 80 0D 03 02 [13:30:00]Write to MH i2c: E2 08 00 90 25 80 0D 03 02 00 00 00 00 30 [13:30:00]Write i2c OK [13:30:00]MH_I2C_Read... [13:30:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:30:00]Read from MH i2c: E2 [13:30:00]MH_I2C_Read... [13:30:00]Read from MH i2c: E2 0B 00 [13:30:00]MH_I2C_Read... [13:30:00]Read from MH i2c: E2 0B 00 90 25 00 1F 3D BE 0A 17 B2 8D C7 90 00 72 [13:30:00]RAPDU: 1F 3D BE 0A 17 B2 8D C7 90 00 [13:30:00]wFMCommunicate OK [13:30:00]SAM_PROTO_SignData done [13:30:00]FM_MakeSignedData done [13:30:00]CreateOFDProtocolMessage [13:30:00]wFMCommunicate request_size=4 [13:30:00]MH_SAM_APDU [13:30:00]CAPDU: 80 11 00 00 [13:30:00]Write to MH i2c: E2 08 00 91 25 80 11 00 00 00 00 00 00 30 [13:30:00]Write i2c OK [13:30:00]MH_I2C_Read... [13:30:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:01]Read from MH i2c: E2 [13:30:01]MH_I2C_Read... [13:30:01]Read from MH i2c: E2 17 00 [13:30:01]MH_I2C_Read... [13:30:01]Read from MH i2c: E2 17 00 91 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 87 [13:30:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:30:01]wFMCommunicate OK [13:30:01]CreateOFDProtocolMessage done [13:30:01]OFDSenderStorePacket 227476 [13:30:01]StoreOFDPacket docnum=227476 [13:30:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 F5 50 07 01 9A AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 D8 05 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 94 78 03 00 35 04 06 00 4D 9E D6 D6 20 9E 1F 3D BE 0A 17 B2 8D C7 [13:30:01]CheckFolder [13:30:01]dirname=/storage/ofd_packets [13:30:01]CheckFolder done [13:30:01]ProducePacketName [13:30:01]name=ofd_packets/00227476 [13:30:01]NVStorageSaveData ofd_packets/00227476 [13:30:01]File name is /storage/ofd_packets/00227476 [13:30:01]Write 301 bytes [13:30:01]NVStorageSaveData done [13:30:01]OFDSenderStorePacket done [13:30:01]KKMCreateOFDPacket done [13:30:01]NVStorageSaveData kkm_last_timestamp [13:30:01]File name is /storage/kkm_last_timestamp [13:30:01]Write 4 bytes [13:30:01]NVStorageSaveData done [13:30:01]ExternCall_PrintAddStr [13:30:01]wPrintStart [13:30:01]Write to MH i2c: 01 00 00 92 25 B7 [13:30:01]Write i2c OK [13:30:01]MH_I2C_Read... [13:30:01]Read from MH i2c: 01 [13:30:01]MH_I2C_Read... [13:30:01]Read from MH i2c: 01 07 00 [13:30:01]MH_I2C_Read... [13:30:01]Read from MH i2c: 01 07 00 92 25 00 00 00 00 00 FF 0F CC [13:30:01]RasterBufferAndPrint [13:30:01]line Счет N : (1)1963000 [13:30:01]line ИНН: 02508201610067 [13:30:01]line Контрольно-Кассовый Чек [13:30:01]line ПРОДАЖА [13:30:01]line ТРК (МРК, ГНК) : 53 [13:30:01]line Товар: 2710124130 [13:30:01]line Аи-92-К-5 [13:30:01]line 8.970 * 66.90 [13:30:01]line = 600.09 [13:30:01]line НДС 12% НСП 1% [13:30:01]line > о реализуемом товаре [13:30:01]line ОКРУГЛЕНИЕ: -0.09 [13:30:01]line ИТОГО: 600.00 [13:30:01]line Внесено: 600.00 [13:30:01]line СДАЧА: 0.00 [13:30:01]line НСП 1% : 5.31 [13:30:01]line НДС 12% : 63.73 [13:30:01]line Наличными: 600.00 [13:30:01]line Безнал.: 0.00 [13:30:01]line Место: АЗС № 133 "Партнер Нефть" [13:30:01]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:30:01]line СНО: Общий режим [13:30:01]line Чек 324 20.10.2024 13:30 [13:30:01]line Смена: 533 ФФД: 1.0 [13:30:01]line ЗНМ: 0300000091 [13:30:01]line РНМ: 0000000000091685 [13:30:01]line Версия ККМ: 001 [13:30:01]line ФМ: 0000000000871839 [13:30:01]line ФД: 227476 [13:30:01]line ФПД: 85344604528798 [13:30:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T133000&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227476&fm=85344604528798&tin=02508201610067®Number=0000000000091685&sum=60000 [13:30:01]written 0, free lines is 4095 [13:30:01]OFD Sender: Processing packet 227476 [packets to send 38, broken 37] [13:30:01]ProducePacketName [13:30:01]name=ofd_packets/00227476 [13:30:01]OFD Sender: To server: pG, [13:30:01]CommunicateWithHost lk.salyk.kg:30040 [13:30:01]ConnectInit lk.salyk.kg [13:30:01]Connected sock=9 [13:30: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 33 39 0F 01 00 00 F5 50 07 01 9A AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 D8 05 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 94 78 03 00 35 04 06 00 4D 9E D6 D6 20 9E 1F 3D BE 0A 17 B2 8D C7 [13:30:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 2D 53 47 00 75 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 94 78 03 00 F4 03 04 00 D7 B0 14 67 B6 04 01 00 00 98 3A 8E 32 53 46 EE B2 [13:30:01]CommunicateWithHost err = 0 [13:30:01]CheckOFDResponse [13:30:01]1017 (14) - 77093643461234 [13:30:01]1041 (16) - 0000000000871839 [13:30:01]1040 (4) - 227476 [13:30:01]1012 (4) - 20.10.2024 07:27 [13:30:01]1206 (1) - 0 [13:30:01]OFD Sender: Remove packet 227476 [13:30:01]ProducePacketName [13:30:01]name=ofd_packets/00227476 [13:30:01]NVStorageDeleteData [13:30:01]Write to MH i2c: 01 00 00 BC 25 E1 [13:30:01]Write i2c OK [13:30:01]MH_I2C_Read... [13:30:01]Read from MH i2c: 01 [13:30:01]MH_I2C_Read... [13:30:01]Read from MH i2c: 01 07 00 [13:30:01]MH_I2C_Read... [13:30:01]Read from MH i2c: 01 07 00 BC 25 00 00 00 00 00 FD 0C F1 [13:30:01]RasterBufferAndPrint [13:30:01]line [13:30:01]line [13:30:01]line [13:30:01]line [13:30:01]line [13:30:01]written 0, free lines is 3332 [13:30:01]process_action close_receipt done [13:30:01]requested_data is exist [13:30:01]produce_requested_data [13:30:01]requested_item fm.sn is exist - process it [13:30:01]wFMCommunicate request_size=4 [13:30:01]MH_SAM_APDU [13:30:01]CAPDU: 80 11 00 00 [13:30:01]Write to MH i2c: E2 08 00 C3 25 80 11 00 00 00 00 00 00 62 [13:30:01]Write i2c OK [13:30:01]MH_I2C_Read... [13:30:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:01]Read from MH i2c: E2 [13:30:01]MH_I2C_Read... [13:30:01]Read from MH i2c: E2 17 00 [13:30:01]MH_I2C_Read... [13:30:01]Read from MH i2c: E2 17 00 C3 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B9 [13:30:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:30:01]wFMCommunicate OK [13:30:01]requested_item fd.num is exist - process it [13:30:01]SAM_PROTO_GetFieldsCounters [13:30:01]wFMCommunicate request_size=4 [13:30:01]MH_SAM_APDU [13:30:01]CAPDU: 80 13 00 00 [13:30:01]Write to MH i2c: E2 08 00 C4 25 80 13 00 00 00 00 00 00 65 [13:30:01]Write i2c OK [13:30:01]MH_I2C_Read... [13:30:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:30:02]Read from MH i2c: E2 [13:30:02]MH_I2C_Read... [13:30:02]Read from MH i2c: E2 62 00 [13:30:02]MH_I2C_Read... [13:30:02]Read from MH i2c: E2 62 00 C4 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 94 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 44 01 00 00 5E 04 04 00 44 01 00 00 57 04 04 00 45 01 00 00 19 04 04 00 00 00 00 00 90 00 83 [13:30:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 94 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 44 01 00 00 5E 04 04 00 44 01 00 00 57 04 04 00 45 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:30:02]wFMCommunicate OK [13:30:02]SAM_PROTO_GetFieldsCounters done [13:30:02]requested_item shift.num is exist - process it [13:30:02]requested_item shift.opened is exist - process it [13:30:02]req_shift_opened [13:30:02]FM_GetShiftState [13:30:02]SAM_PROTO_GetShiftState [13:30:02]wFMCommunicate request_size=4 [13:30:02]MH_SAM_APDU [13:30:02]CAPDU: 80 13 01 00 [13:30:02]Write to MH i2c: E2 08 00 C5 25 80 13 01 00 00 00 00 00 67 [13:30:02]Write i2c OK [13:30:02]MH_I2C_Read... [13:30:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:02]Read from MH i2c: E2 [13:30:02]MH_I2C_Read... [13:30:02]Read from MH i2c: E2 0E 00 [13:30:02]MH_I2C_Read... [13:30:02]Read from MH i2c: E2 0E 00 C5 25 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 81 [13:30:02]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:30:02]wFMCommunicate OK [13:30:02]SAM_PROTO_GetShiftState done [13:30:02]FM_GetShiftState done [13:30:02]req_shift_opened done [13:30:02]requested_item shift.open_date is exist - process it [13:30:02]req_shift_open_date [13:30:02]req_shift_open_date done [13:30:02]produce_requested_data done [13:30:02]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227476,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [13:30:02]process_action_free close_receipt [13:30:02]json_value_free [13:30:02]json_value_free done [13:30:02]process_json_proto returns [13:30:02]Send response to host [13:30:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227476,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [13:30:02]free response buf [13:30:02]execute_script done [13:30:02]execute_script returns [13:30:02]free content buf [13:30:02]Sock 10.Close socket [13:30:02]Sock 10.Thread stoped [13:30:02]OFD Sender: No OFD packet to send [13:30:07]OFD Sender: No OFD packet to send [13:30:12]OFD Sender: No OFD packet to send [13:30:17]OFD Sender: No OFD packet to send [13:30:22]OFD Sender: No OFD packet to send [13:30:27]OFD Sender: No OFD packet to send [13:30:32]OFD Sender: No OFD packet to send [13:30:37]OFD Sender: No OFD packet to send [13:30:42]OFD Sender: No OFD packet to send [13:30:47]OFD Sender: No OFD packet to send [13:30:52]OFD Sender: No OFD packet to send [13:30:57]OFD Sender: No OFD packet to send [13:31:02]OFD Sender: No OFD packet to send [13:31:07]OFD Sender: No OFD packet to send [13:31:12]OFD Sender: No OFD packet to send [13:31:17]OFD Sender: No OFD packet to send [13:31:22]OFD Sender: No OFD packet to send [13:31:27]OFD Sender: No OFD packet to send [13:31:32]OFD Sender: No OFD packet to send [13:31:37]OFD Sender: No OFD packet to send [13:31:42]OFD Sender: No OFD packet to send [13:31:47]OFD Sender: No OFD packet to send [13:31:51]accept exits with 8 [13:31:51]New connection [13:31:51]New thread 3066686820 created [13:31:51]Thread 3066543460 joined [13:31:51]Waiting for new connection... [13:31:51] Sock 8.Parse request [13:31:51]Sock 8.Check first char [13:31:51]Sock 8.First char is OK [13:31:51]request: POST /json_proto HTTP/1.0 [13:31:51]Method: POST [13:31:51]URL: /json_proto [13:31:51]Method is POST - this is cgi request [13:31:51]url: /json_proto [13:31:51]query_string will be loaded in cgi processing [13:31:51]execute_cgi json_proto POST (null) [13:31:51]execute_cgi path=json_proto method=POST [13:31:51]POST find Content-Length [13:31:51]Host: 172.17.44.195:8080 [13:31:51]Content-Length: 681 [13:31:51]Content-Type: application/json [13:31:51] [13:31:51]POST finish read [13:31:51]Found Content-Length = 681 [13:31:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962998", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 104.990, "sum" : 8000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 8000.00, "total" : 8000.00, "payments": [ { "type": 0, "sum" : 8000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:31:51]execute_script... [13:31: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)1962998", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 104.990, "sum" : 8000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 8000.00, "total" : 8000.00, "payments": [ { "type": 0, "sum" : 8000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:31:51]POST & json_proto [13:31:51]process_json_proto [13:31:51]json parsed OK: [13:31:51]protocol is kg_v1.0 [13:31:51]action value=close_receipt [13:31:51]process_action close_receipt [13:31:51]cmd_close_receipt [13:31:51]MH_GetDate [13:31:51]Write to MH i2c: F0 00 00 C6 25 DA [13:31:51]Write i2c OK [13:31:51]MH_I2C_Read... [13:31:51]Read from MH i2c: F0 [13:31:51]MH_I2C_Read... [13:31:51]Read from MH i2c: F0 09 00 [13:31:51]MH_I2C_Read... [13:31:51]Read from MH i2c: F0 09 00 C6 25 00 49 06 15 67 82 C9 CF 66 2E [13:31:51]GetLastDocTimeStamp 1729431000 [13:31:51]current date 1729431113 [13:31:51]FM_GetShiftState [13:31:51]SAM_PROTO_GetShiftState [13:31:51]wFMCommunicate request_size=4 [13:31:51]MH_SAM_APDU [13:31:51]CAPDU: 80 13 01 00 [13:31:51]Write to MH i2c: E2 08 00 C7 25 80 13 01 00 00 00 00 00 69 [13:31:51]Write i2c OK [13:31:51]MH_I2C_Read... [13:31:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:31:51]Read from MH i2c: E2 [13:31:51]MH_I2C_Read... [13:31:51]Read from MH i2c: E2 0E 00 [13:31:51]MH_I2C_Read... [13:31:51]Read from MH i2c: E2 0E 00 C7 25 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 83 [13:31:51]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:31:51]wFMCommunicate OK [13:31:51]SAM_PROTO_GetShiftState done [13:31:51]FM_GetShiftState done [13:31:51]opened in 1729383750 [13:31:51]opened+sec_in_day 1729470150 [13:31:51]quantity*price = 800023 [13:31:51]sum+1 = 800025 [13:31:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 8000.00 Внесено: 8000.00 СДАЧА: 0.00 НСП 1% : 70.80 НДС 12% : 849.58 Наличными: 8000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 325 20.10.2024 13:31 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227477 ФПД: 258960833993830 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T133153&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227477&fm=258960833993830&tin=02508201610067®Number=0000000000091685&sum=800000 [13:31:53]StoreToDocumentArchive [13:31:53]shift 533 fd 227477 [13:31:53]save to /storage/0533/doc_00227477 [13:31:53]save last doc name /storage/0533/doc_00227477 to /storage/kkm_last_doc_name [13:31:53]save OK [13:31:53]Clear old archive folders... [13:31:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:31:53]tlvbuf is 018437A0 [13:31:53]SAM_PROTO_ClearQueue [13:31:53]wFMCommunicate request_size=4 [13:31:53]MH_SAM_APDU [13:31:53]CAPDU: 80 09 00 00 [13:31:53]Write to MH i2c: E2 08 00 D4 25 80 09 00 00 00 00 00 00 6B [13:31:53]Write i2c OK [13:31:53]MH_I2C_Read... [13:31:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:31:53]Read from MH i2c: E2 [13:31:53]MH_I2C_Read... [13:31:53]Read from MH i2c: E2 03 00 [13:31:53]MH_I2C_Read... [13:31:53]Read from MH i2c: E2 03 00 D4 25 00 90 00 6D [13:31:53]RAPDU: 90 00 [13:31:53]wFMCommunicate OK [13:31:53]SAM_PROTO_ClearQueue done [13:31:53]KKMCreateOFDPacket [13:31:53]OFDProtocolAddRootSTLVToBuf [13:31:53]FM_MakeSignedData [13:31:53]FM_MakeSignedData [13:31:53]SAM_PROTO_SignData [13:31:53]wFMCommunicate request_size=4 [13:31:53]MH_SAM_APDU [13:31:53]CAPDU: 80 0D 01 02 [13:31:53]Write to MH i2c: E2 08 00 D5 25 80 0D 01 02 00 00 00 00 73 [13:31:53]Write i2c OK [13:31:53]MH_I2C_Read... [13:31:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:31:53]Read from MH i2c: E2 [13:31:53]MH_I2C_Read... [13:31:53]Read from MH i2c: E2 03 00 [13:31:53]MH_I2C_Read... [13:31:53]Read from MH i2c: E2 03 00 D5 25 00 90 00 6E [13:31:53]RAPDU: 90 00 [13:31:53]wFMCommunicate OK [13:31:53]wFMCommunicate request_size=255 [13:31:53]MH_SAM_APDU [13:31:53]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 9A 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 49 06 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 95 78 03 00 35 04 06 00 EB 86 04 85 [13:31:53]Write to MH i2c: E2 02 01 D6 25 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 9A 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 49 06 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 95 78 03 00 35 04 06 00 EB 86 04 85 00 00 6C [13:31:53]Write i2c OK [13:31:53]MH_I2C_Read... [13:31:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:31:53]Read from MH i2c: E2 [13:31:53]MH_I2C_Read... [13:31:53]Read from MH i2c: E2 03 00 [13:31:53]MH_I2C_Read... [13:31:53]Read from MH i2c: E2 03 00 D6 25 00 90 00 6F [13:31:53]RAPDU: 90 00 [13:31:53]wFMCommunicate OK [13:31:53]wFMCommunicate request_size=7 [13:31:53]MH_SAM_APDU [13:31:53]CAPDU: 80 0D 02 02 02 5C 66 [13:31:53]Write to MH i2c: E2 0A 00 D7 25 80 0D 02 02 02 00 5C 66 00 00 3C [13:31:53]Write i2c OK [13:31:53]MH_I2C_Read... [13:31:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:31:53]Read from MH i2c: E2 [13:31:53]MH_I2C_Read... [13:31:53]Read from MH i2c: E2 03 00 [13:31:53]MH_I2C_Read... [13:31:53]Read from MH i2c: E2 03 00 D7 25 00 90 00 70 [13:31:53]RAPDU: 90 00 [13:31:53]wFMCommunicate OK [13:31:53]wFMCommunicate request_size=4 [13:31:53]MH_SAM_APDU [13:31:53]CAPDU: 80 0D 03 02 [13:31:53]Write to MH i2c: E2 08 00 D8 25 80 0D 03 02 00 00 00 00 78 [13:31:53]Write i2c OK [13:31:53]MH_I2C_Read... [13:31:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:31:53]Read from MH i2c: E2 [13:31:53]MH_I2C_Read... [13:31:53]Read from MH i2c: E2 0B 00 [13:31:53]MH_I2C_Read... [13:31:53]Read from MH i2c: E2 0B 00 D8 25 00 9B 10 2B E4 3F BF 4A EE 90 00 69 [13:31:53]RAPDU: 9B 10 2B E4 3F BF 4A EE 90 00 [13:31:53]wFMCommunicate OK [13:31:53]SAM_PROTO_SignData done [13:31:53]FM_MakeSignedData done [13:31:53]CreateOFDProtocolMessage [13:31:53]wFMCommunicate request_size=4 [13:31:53]MH_SAM_APDU [13:31:53]CAPDU: 80 11 00 00 [13:31:53]Write to MH i2c: E2 08 00 D9 25 80 11 00 00 00 00 00 00 78 [13:31:53]Write i2c OK [13:31:53]MH_I2C_Read... [13:31:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:31:53]Read from MH i2c: E2 [13:31:53]MH_I2C_Read... [13:31:53]Read from MH i2c: E2 17 00 [13:31:53]MH_I2C_Read... [13:31:53]Read from MH i2c: E2 17 00 D9 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 CF [13:31:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:31:53]wFMCommunicate OK [13:31:53]CreateOFDProtocolMessage done [13:31:53]OFDSenderStorePacket 227477 [13:31:53]StoreOFDPacket docnum=227477 [13:31:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 40 20 04 01 AA F6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 9A 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 49 06 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 95 78 03 00 35 04 06 00 EB 86 04 85 5C 66 9B 10 2B E4 3F BF 4A EE [13:31:53]CheckFolder [13:31:53]dirname=/storage/ofd_packets [13:31:53]CheckFolder done [13:31:53]ProducePacketName [13:31:53]name=ofd_packets/00227477 [13:31:53]NVStorageSaveData ofd_packets/00227477 [13:31:53]File name is /storage/ofd_packets/00227477 [13:31:53]Write 298 bytes [13:31:53]NVStorageSaveData done [13:31:53]OFDSenderStorePacket done [13:31:53]KKMCreateOFDPacket done [13:31:53]NVStorageSaveData kkm_last_timestamp [13:31:53]File name is /storage/kkm_last_timestamp [13:31:53]Write 4 bytes [13:31:53]NVStorageSaveData done [13:31:53]ExternCall_PrintAddStr [13:31:53]wPrintStart [13:31:53]Write to MH i2c: 01 00 00 DA 25 FF [13:31:53]Write i2c OK [13:31:53]MH_I2C_Read... [13:31:53]Read from MH i2c: 01 [13:31:53]MH_I2C_Read... [13:31:53]Read from MH i2c: 01 07 00 [13:31:53]MH_I2C_Read... [13:31:53]Read from MH i2c: 01 07 00 DA 25 00 00 00 00 00 FF 0F 14 [13:31:53]RasterBufferAndPrint [13:31:53]line Счет N : (1)1962998 [13:31:53]line ИНН: 02508201610067 [13:31:53]line Контрольно-Кассовый Чек [13:31:53]line ПРОДАЖА [13:31:53]line ТРК (МРК, ГНК) : 21 [13:31:53]line Товар: 2710194210 [13:31:53]line ДТ-К-5 [13:31:53]line 104.990 * 76.20 [13:31:53]line = 8000.24 [13:31:53]line НДС 12% НСП 1% [13:31:53]line > о реализуемом товаре [13:31:53]line ОКРУГЛЕНИЕ: -0.24 [13:31:53]line ИТОГО: 8000.00 [13:31:53]line Внесено: 8000.00 [13:31:53]line СДАЧА: 0.00 [13:31:53]line НСП 1% : 70.80 [13:31:53]line НДС 12% : 849.58 [13:31:53]line Наличными: 8000.00 [13:31:53]line Безнал.: 0.00 [13:31:53]line Место: АЗС № 133 "Партнер Нефть" [13:31:53]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:31:53]line СНО: Общий режим [13:31:53]line Чек 325 20.10.2024 13:31 [13:31:53]line Смена: 533 ФФД: 1.0 [13:31:53]line ЗНМ: 0300000091 [13:31:53]line РНМ: 0000000000091685 [13:31:53]line Версия ККМ: 001 [13:31:53]line ФМ: 0000000000871839 [13:31:53]line ФД: 227477 [13:31:53]line ФПД: 258960833993830 [13:31:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T133153&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227477&fm=258960833993830&tin=02508201610067®Number=0000000000091685&sum=800000 [13:31:53]OFD Sender: Processing packet 227477 [packets to send 38, broken 37] [13:31:53]ProducePacketName [13:31:53]name=ofd_packets/00227477 [13:31:53]OFD Sender: To server: pG, [13:31:53]CommunicateWithHost lk.salyk.kg:30040 [13:31:53]ConnectInit lk.salyk.kg [13:31:53]written 0, free lines is 4095 [13:31:53]Connected sock=11 [13:31:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 40 20 04 01 AA F6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 9A 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 49 06 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 95 78 03 00 35 04 06 00 EB 86 04 85 5C 66 9B 10 2B E4 3F BF 4A EE [13:31: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 33 39 4F 00 00 00 B0 A2 47 00 90 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 33 39 10 04 04 00 95 78 03 00 F4 03 04 00 47 B1 14 67 B6 04 01 00 00 23 3F 99 06 E5 FD 6D 11 [13:31:54]CommunicateWithHost err = 0 [13:31:54]CheckOFDResponse [13:31:54]1017 (14) - 77093643461234 [13:31:54]1041 (16) - 0000000000871839 [13:31:54]1040 (4) - 227477 [13:31:54]1012 (4) - 20.10.2024 07:29 [13:31:54]1206 (1) - 0 [13:31:54]OFD Sender: Remove packet 227477 [13:31:54]ProducePacketName [13:31:54]name=ofd_packets/00227477 [13:31:54]NVStorageDeleteData [13:31:54]Write to MH i2c: 01 00 00 04 26 2A [13:31:54]Write i2c OK [13:31:54]MH_I2C_Read... [13:31:54]Read from MH i2c: 01 [13:31:54]MH_I2C_Read... [13:31:54]Read from MH i2c: 01 07 00 [13:31:54]MH_I2C_Read... [13:31:54]Read from MH i2c: 01 07 00 04 26 00 00 00 00 00 0A 0D 48 [13:31:54]RasterBufferAndPrint [13:31:54]line [13:31:54]line [13:31:54]line [13:31:54]line [13:31:54]line [13:31:54]written 0, free lines is 3344 [13:31:54]process_action close_receipt done [13:31:54]requested_data is exist [13:31:54]produce_requested_data [13:31:54]requested_item fm.sn is exist - process it [13:31:54]wFMCommunicate request_size=4 [13:31:54]MH_SAM_APDU [13:31:54]CAPDU: 80 11 00 00 [13:31:54]Write to MH i2c: E2 08 00 0B 26 80 11 00 00 00 00 00 00 AB [13:31:54]Write i2c OK [13:31:54]MH_I2C_Read... [13:31:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:31:54]Read from MH i2c: E2 [13:31:54]MH_I2C_Read... [13:31:54]Read from MH i2c: E2 17 00 [13:31:54]MH_I2C_Read... [13:31:54]Read from MH i2c: E2 17 00 0B 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 02 [13:31:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:31:54]wFMCommunicate OK [13:31:54]requested_item fd.num is exist - process it [13:31:54]SAM_PROTO_GetFieldsCounters [13:31:54]wFMCommunicate request_size=4 [13:31:54]MH_SAM_APDU [13:31:54]CAPDU: 80 13 00 00 [13:31:54]Write to MH i2c: E2 08 00 0C 26 80 13 00 00 00 00 00 00 AE [13:31:54]Write i2c OK [13:31:54]MH_I2C_Read... [13:31:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:31:54]Read from MH i2c: E2 [13:31:54]MH_I2C_Read... [13:31:54]Read from MH i2c: E2 62 00 [13:31:54]MH_I2C_Read... [13:31:54]Read from MH i2c: E2 62 00 0C 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 95 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 45 01 00 00 5E 04 04 00 45 01 00 00 57 04 04 00 46 01 00 00 19 04 04 00 00 00 00 00 90 00 D0 [13:31:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 95 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 45 01 00 00 5E 04 04 00 45 01 00 00 57 04 04 00 46 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:31:54]wFMCommunicate OK [13:31:54]SAM_PROTO_GetFieldsCounters done [13:31:54]requested_item shift.num is exist - process it [13:31:54]requested_item shift.opened is exist - process it [13:31:54]req_shift_opened [13:31:54]FM_GetShiftState [13:31:54]SAM_PROTO_GetShiftState [13:31:54]wFMCommunicate request_size=4 [13:31:54]MH_SAM_APDU [13:31:54]CAPDU: 80 13 01 00 [13:31:54]Write to MH i2c: E2 08 00 0D 26 80 13 01 00 00 00 00 00 B0 [13:31:54]Write i2c OK [13:31:54]MH_I2C_Read... [13:31:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:31:54]Read from MH i2c: E2 [13:31:54]MH_I2C_Read... [13:31:54]Read from MH i2c: E2 0E 00 [13:31:54]MH_I2C_Read... [13:31:54]Read from MH i2c: E2 0E 00 0D 26 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 CA [13:31:54]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:31:54]wFMCommunicate OK [13:31:54]SAM_PROTO_GetShiftState done [13:31:54]FM_GetShiftState done [13:31:54]req_shift_opened done [13:31:54]requested_item shift.open_date is exist - process it [13:31:54]req_shift_open_date [13:31:54]req_shift_open_date done [13:31:54]produce_requested_data done [13:31:54]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227477,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [13:31:54]process_action_free close_receipt [13:31:54]json_value_free [13:31:54]json_value_free done [13:31:54]process_json_proto returns [13:31:54]Send response to host [13:31:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227477,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [13:31:54]free response buf [13:31:54]execute_script done [13:31:54]execute_script returns [13:31:54]free content buf [13:31:54]Sock 8.Close socket [13:31:54]Sock 8.Thread stoped [13:31:54]OFD Sender: No OFD packet to send [13:31:59]OFD Sender: No OFD packet to send [13:32:04]OFD Sender: No OFD packet to send [13:32:09]OFD Sender: No OFD packet to send [13:32:14]OFD Sender: No OFD packet to send [13:32:19]OFD Sender: No OFD packet to send [13:32:24]OFD Sender: No OFD packet to send [13:32:29]OFD Sender: No OFD packet to send [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:52]accept exits with 9 [13:32:52]New connection [13:32:52]New thread 3066543460 created [13:32:52]Thread 3066686820 joined [13:32:52]Waiting for new connection... [13:32:52] Sock 9.Parse request [13:32:52]Sock 9.Check first char [13:32:52]Sock 9.First char is OK [13:32:52]request: POST /json_proto HTTP/1.0 [13:32:52]Method: POST [13:32:52]URL: /json_proto [13:32:52]Method is POST - this is cgi request [13:32:52]url: /json_proto [13:32:52]query_string will be loaded in cgi processing [13:32:52]execute_cgi json_proto POST (null) [13:32:52]execute_cgi path=json_proto method=POST [13:32:52]POST find Content-Length [13:32:52]Host: 172.17.44.195:8080 [13:32:52]Content-Length: 680 [13:32:52]Content-Type: application/json [13:32:52] [13:32:52]POST finish read [13:32:52]Found Content-Length = 680 [13:32:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963001", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:32:52]execute_script... [13:32: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)1963001", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:32:52]POST & json_proto [13:32:52]process_json_proto [13:32:52]json parsed OK: [13:32:52]protocol is kg_v1.0 [13:32:52]action value=close_receipt [13:32:52]process_action close_receipt [13:32:52]cmd_close_receipt [13:32:52]MH_GetDate [13:32:52]Write to MH i2c: F0 00 00 0E 26 23 [13:32:52]Write i2c OK [13:32:52]MH_I2C_Read... [13:32:52]Read from MH i2c: F0 [13:32:52]MH_I2C_Read... [13:32:52]Read from MH i2c: F0 09 00 [13:32:52]MH_I2C_Read... [13:32:52]Read from MH i2c: F0 09 00 0E 26 00 85 06 15 67 82 C9 CF 66 B3 [13:32:52]GetLastDocTimeStamp 1729431113 [13:32:52]current date 1729431173 [13:32:52]FM_GetShiftState [13:32:52]SAM_PROTO_GetShiftState [13:32:52]wFMCommunicate request_size=4 [13:32:52]MH_SAM_APDU [13:32:52]CAPDU: 80 13 01 00 [13:32:52]Write to MH i2c: E2 08 00 0F 26 80 13 01 00 00 00 00 00 B2 [13:32:52]Write i2c OK [13:32:52]MH_I2C_Read... [13:32:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:52]Read from MH i2c: E2 [13:32:52]MH_I2C_Read... [13:32:52]Read from MH i2c: E2 0E 00 [13:32:52]MH_I2C_Read... [13:32:52]Read from MH i2c: E2 0E 00 0F 26 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 CC [13:32:52]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:32:52]wFMCommunicate OK [13:32:52]SAM_PROTO_GetShiftState done [13:32:52]FM_GetShiftState done [13:32:52]opened in 1729383750 [13:32:52]opened+sec_in_day 1729470150 [13:32:52]quantity*price = 100050 [13:32:52]sum+1 = 100052 [13:32:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 326 20.10.2024 13:32 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227478 ФПД: 160798058244449 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T133253&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227478&fm=160798058244449&tin=02508201610067®Number=0000000000091685&sum=100000 [13:32:53]StoreToDocumentArchive [13:32:53]shift 533 fd 227478 [13:32:53]save to /storage/0533/doc_00227478 [13:32:53]save last doc name /storage/0533/doc_00227478 to /storage/kkm_last_doc_name [13:32:53]save OK [13:32:53]Clear old archive folders... [13:32:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:32:53]tlvbuf is 01843080 [13:32:53]SAM_PROTO_ClearQueue [13:32:53]wFMCommunicate request_size=4 [13:32:53]MH_SAM_APDU [13:32:53]CAPDU: 80 09 00 00 [13:32:53]Write to MH i2c: E2 08 00 1C 26 80 09 00 00 00 00 00 00 B4 [13:32:53]Write i2c OK [13:32:53]MH_I2C_Read... [13:32:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:32:53]Read from MH i2c: E2 [13:32:53]MH_I2C_Read... [13:32:53]Read from MH i2c: E2 03 00 [13:32:53]MH_I2C_Read... [13:32:53]Read from MH i2c: E2 03 00 1C 26 00 90 00 B6 [13:32:53]RAPDU: 90 00 [13:32:53]wFMCommunicate OK [13:32:53]SAM_PROTO_ClearQueue done [13:32:53]KKMCreateOFDPacket [13:32:53]OFDProtocolAddRootSTLVToBuf [13:32:53]FM_MakeSignedData [13:32:53]FM_MakeSignedData [13:32:53]SAM_PROTO_SignData [13:32:53]wFMCommunicate request_size=4 [13:32:53]MH_SAM_APDU [13:32:53]CAPDU: 80 0D 01 02 [13:32:53]Write to MH i2c: E2 08 00 1D 26 80 0D 01 02 00 00 00 00 BC [13:32:53]Write i2c OK [13:32:53]MH_I2C_Read... [13:32:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:32:53]Read from MH i2c: E2 [13:32:53]MH_I2C_Read... [13:32:53]Read from MH i2c: E2 03 00 [13:32:53]MH_I2C_Read... [13:32:53]Read from MH i2c: E2 03 00 1D 26 00 90 00 B7 [13:32:53]RAPDU: 90 00 [13:32:53]wFMCommunicate OK [13:32:53]wFMCommunicate request_size=255 [13:32:53]MH_SAM_APDU [13:32:53]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 85 06 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 96 78 03 00 35 04 06 00 92 3E B7 24 [13:32:53]Write to MH i2c: E2 02 01 1E 26 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 85 06 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 96 78 03 00 35 04 06 00 92 3E B7 24 00 00 6A [13:32:53]Write i2c OK [13:32:53]MH_I2C_Read... [13:32:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:53]Read from MH i2c: E2 [13:32:53]MH_I2C_Read... [13:32:53]Read from MH i2c: E2 03 00 [13:32:53]MH_I2C_Read... [13:32:53]Read from MH i2c: E2 03 00 1E 26 00 90 00 B8 [13:32:53]RAPDU: 90 00 [13:32:53]wFMCommunicate OK [13:32:53]wFMCommunicate request_size=7 [13:32:53]MH_SAM_APDU [13:32:53]CAPDU: 80 0D 02 02 02 69 61 [13:32:53]Write to MH i2c: E2 0A 00 1F 26 80 0D 02 02 02 00 69 61 00 00 8D [13:32:53]Write i2c OK [13:32:53]MH_I2C_Read... [13:32:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:53]Read from MH i2c: E2 [13:32:53]MH_I2C_Read... [13:32:53]Read from MH i2c: E2 03 00 [13:32:53]MH_I2C_Read... [13:32:53]Read from MH i2c: E2 03 00 1F 26 00 90 00 B9 [13:32:53]RAPDU: 90 00 [13:32:53]wFMCommunicate OK [13:32:53]wFMCommunicate request_size=4 [13:32:53]MH_SAM_APDU [13:32:53]CAPDU: 80 0D 03 02 [13:32:53]Write to MH i2c: E2 08 00 20 26 80 0D 03 02 00 00 00 00 C1 [13:32:53]Write i2c OK [13:32:53]MH_I2C_Read... [13:32:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:32:53]Read from MH i2c: E2 [13:32:53]MH_I2C_Read... [13:32:53]Read from MH i2c: E2 0B 00 [13:32:53]MH_I2C_Read... [13:32:53]Read from MH i2c: E2 0B 00 20 26 00 02 0A EC E2 48 19 15 C4 90 00 D6 [13:32:53]RAPDU: 02 0A EC E2 48 19 15 C4 90 00 [13:32:53]wFMCommunicate OK [13:32:53]SAM_PROTO_SignData done [13:32:53]FM_MakeSignedData done [13:32:53]CreateOFDProtocolMessage [13:32:53]wFMCommunicate request_size=4 [13:32:53]MH_SAM_APDU [13:32:53]CAPDU: 80 11 00 00 [13:32:53]Write to MH i2c: E2 08 00 21 26 80 11 00 00 00 00 00 00 C1 [13:32:53]Write i2c OK [13:32:53]MH_I2C_Read... [13:32:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:54]Read from MH i2c: E2 [13:32:54]MH_I2C_Read... [13:32:54]Read from MH i2c: E2 17 00 [13:32:54]MH_I2C_Read... [13:32:54]Read from MH i2c: E2 17 00 21 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 18 [13:32:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:32:54]wFMCommunicate OK [13:32:54]CreateOFDProtocolMessage done [13:32:54]OFDSenderStorePacket 227478 [13:32:54]StoreOFDPacket docnum=227478 [13:32:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 91 0B 04 01 72 6F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 85 06 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 96 78 03 00 35 04 06 00 92 3E B7 24 69 61 02 0A EC E2 48 19 15 C4 [13:32:54]CheckFolder [13:32:54]dirname=/storage/ofd_packets [13:32:54]CheckFolder done [13:32:54]ProducePacketName [13:32:54]name=ofd_packets/00227478 [13:32:54]NVStorageSaveData ofd_packets/00227478 [13:32:54]File name is /storage/ofd_packets/00227478 [13:32:54]Write 298 bytes [13:32:54]NVStorageSaveData done [13:32:54]OFDSenderStorePacket done [13:32:54]KKMCreateOFDPacket done [13:32:54]NVStorageSaveData kkm_last_timestamp [13:32:54]File name is /storage/kkm_last_timestamp [13:32:54]Write 4 bytes [13:32:54]NVStorageSaveData done [13:32:54]ExternCall_PrintAddStr [13:32:54]wPrintStart [13:32:54]Write to MH i2c: 01 00 00 22 26 48 [13:32:54]Write i2c OK [13:32:54]MH_I2C_Read... [13:32:54]Read from MH i2c: 01 [13:32:54]MH_I2C_Read... [13:32:54]Read from MH i2c: 01 07 00 [13:32:54]MH_I2C_Read... [13:32:54]Read from MH i2c: 01 07 00 22 26 00 00 00 00 00 FF 0F 5D [13:32:54]RasterBufferAndPrint [13:32:54]line Счет N : (1)1963001 [13:32:54]line ИНН: 02508201610067 [13:32:54]line Контрольно-Кассовый Чек [13:32:54]line ПРОДАЖА [13:32:54]line ТРК (МРК, ГНК) : 11 [13:32:54]line Товар: 2710194210 [13:32:54]line ДТ-К-5 [13:32:54]line 13.130 * 76.20 [13:32:54]line = 1000.51 [13:32:54]line НДС 12% НСП 1% [13:32:54]line > о реализуемом товаре [13:32:54]line ОКРУГЛЕНИЕ: -0.51 [13:32:54]line ИТОГО: 1000.00 [13:32:54]line Внесено: 1000.00 [13:32:54]line СДАЧА: 0.00 [13:32:54]line НСП 1% : 8.85 [13:32:54]line НДС 12% : 106.25 [13:32:54]line Наличными: 1000.00 [13:32:54]line Безнал.: 0.00 [13:32:54]line Место: АЗС № 133 "Партнер Нефть" [13:32:54]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:32:54]line СНО: Общий режим [13:32:54]line Чек 326 20.10.2024 13:32 [13:32:54]line Смена: 533 ФФД: 1.0 [13:32:54]line ЗНМ: 0300000091 [13:32:54]line РНМ: 0000000000091685 [13:32:54]line Версия ККМ: 001 [13:32:54]line ФМ: 0000000000871839 [13:32:54]line ФД: 227478 [13:32:54]line ФПД: 160798058244449 [13:32:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T133253&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227478&fm=160798058244449&tin=02508201610067®Number=0000000000091685&sum=100000 [13:32:54]OFD Sender: Processing packet 227478 [packets to send 38, broken 37] [13:32:54]ProducePacketName [13:32:54]name=ofd_packets/00227478 [13:32:54]OFD Sender: To server: pG, [13:32:54]CommunicateWithHost lk.salyk.kg:30040 [13:32:54]ConnectInit lk.salyk.kg [13:32:54]written 0, free lines is 4095 [13:32:54]Connected sock=10 [13:32:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 91 0B 04 01 72 6F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 85 06 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 96 78 03 00 35 04 06 00 92 3E B7 24 69 61 02 0A EC E2 48 19 15 C4 [13:32:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 59 B2 47 00 7E 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 33 39 10 04 04 00 96 78 03 00 F4 03 04 00 84 B1 14 67 B6 04 01 00 00 B9 5F E1 B2 31 47 A6 3C [13:32:54]CommunicateWithHost err = 0 [13:32:54]CheckOFDResponse [13:32:54]1017 (14) - 77093643461234 [13:32:54]1041 (16) - 0000000000871839 [13:32:54]1040 (4) - 227478 [13:32:54]1012 (4) - 20.10.2024 07:30 [13:32:54]1206 (1) - 0 [13:32:54]OFD Sender: Remove packet 227478 [13:32:54]ProducePacketName [13:32:54]name=ofd_packets/00227478 [13:32:54]NVStorageDeleteData [13:32:54]Write to MH i2c: 01 00 00 4C 26 72 [13:32:54]Write i2c OK [13:32:54]MH_I2C_Read... [13:32:54]Read from MH i2c: 01 [13:32:54]MH_I2C_Read... [13:32:54]Read from MH i2c: 01 07 00 [13:32:54]MH_I2C_Read... [13:32:54]Read from MH i2c: 01 07 00 4C 26 00 00 00 00 00 F3 0C 78 [13:32:54]RasterBufferAndPrint [13:32:54]line [13:32:54]line [13:32:54]line [13:32:54]line [13:32:54]line [13:32:54]written 0, free lines is 3323 [13:32:54]process_action close_receipt done [13:32:54]requested_data is exist [13:32:54]produce_requested_data [13:32:54]requested_item fm.sn is exist - process it [13:32:54]wFMCommunicate request_size=4 [13:32:54]MH_SAM_APDU [13:32:54]CAPDU: 80 11 00 00 [13:32:54]Write to MH i2c: E2 08 00 53 26 80 11 00 00 00 00 00 00 F3 [13:32:54]Write i2c OK [13:32:54]MH_I2C_Read... [13:32:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:54]Read from MH i2c: E2 [13:32:54]MH_I2C_Read... [13:32:54]Read from MH i2c: E2 17 00 [13:32:54]MH_I2C_Read... [13:32:54]Read from MH i2c: E2 17 00 53 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 4A [13:32:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:32:54]wFMCommunicate OK [13:32:54]requested_item fd.num is exist - process it [13:32:54]SAM_PROTO_GetFieldsCounters [13:32:54]wFMCommunicate request_size=4 [13:32:54]MH_SAM_APDU [13:32:54]CAPDU: 80 13 00 00 [13:32:54]Write to MH i2c: E2 08 00 54 26 80 13 00 00 00 00 00 00 F6 [13:32:54]Write i2c OK [13:32:54]MH_I2C_Read... [13:32:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:32:55]Read from MH i2c: E2 [13:32:55]MH_I2C_Read... [13:32:55]Read from MH i2c: E2 62 00 [13:32:55]MH_I2C_Read... [13:32:55]Read from MH i2c: E2 62 00 54 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 96 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 46 01 00 00 5E 04 04 00 46 01 00 00 57 04 04 00 47 01 00 00 19 04 04 00 00 00 00 00 90 00 1C [13:32: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 96 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 46 01 00 00 5E 04 04 00 46 01 00 00 57 04 04 00 47 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:32:55]wFMCommunicate OK [13:32:55]SAM_PROTO_GetFieldsCounters done [13:32:55]requested_item shift.num is exist - process it [13:32:55]requested_item shift.opened is exist - process it [13:32:55]req_shift_opened [13:32:55]FM_GetShiftState [13:32:55]SAM_PROTO_GetShiftState [13:32:55]wFMCommunicate request_size=4 [13:32:55]MH_SAM_APDU [13:32:55]CAPDU: 80 13 01 00 [13:32:55]Write to MH i2c: E2 08 00 55 26 80 13 01 00 00 00 00 00 F8 [13:32:55]Write i2c OK [13:32:55]MH_I2C_Read... [13:32:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:55]Read from MH i2c: E2 [13:32:55]MH_I2C_Read... [13:32:55]Read from MH i2c: E2 0E 00 [13:32:55]MH_I2C_Read... [13:32:55]Read from MH i2c: E2 0E 00 55 26 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 12 [13:32:55]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:32:55]wFMCommunicate OK [13:32:55]SAM_PROTO_GetShiftState done [13:32:55]FM_GetShiftState done [13:32:55]req_shift_opened done [13:32:55]requested_item shift.open_date is exist - process it [13:32:55]req_shift_open_date [13:32:55]req_shift_open_date done [13:32:55]produce_requested_data done [13:32:55]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227478,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [13:32:55]process_action_free close_receipt [13:32:55]json_value_free [13:32:55]json_value_free done [13:32:55]process_json_proto returns [13:32:55]Send response to host [13:32:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227478,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [13:32:55]free response buf [13:32:55]execute_script done [13:32:55]execute_script returns [13:32:55]free content buf [13:32:55]Sock 9.Close socket [13:32:55]Sock 9.Thread stoped [13:32:55]OFD Sender: No OFD packet to send [13:33:00]OFD Sender: No OFD packet to send [13:33:03]accept exits with 8 [13:33:03]New connection [13:33:03]New thread 3066686820 created [13:33:03]Thread 3066543460 joined [13:33:03]Waiting for new connection... [13:33:03] Sock 8.Parse request [13:33:03]Sock 8.Check first char [13:33:03]Sock 8.First char is OK [13:33:03]request: POST /json_proto HTTP/1.0 [13:33:03]Method: POST [13:33:03]URL: /json_proto [13:33:03]Method is POST - this is cgi request [13:33:03]url: /json_proto [13:33:03]query_string will be loaded in cgi processing [13:33:03]execute_cgi json_proto POST (null) [13:33:03]execute_cgi path=json_proto method=POST [13:33:03]POST find Content-Length [13:33:03]Host: 172.17.44.195:8080 [13:33:03]Content-Length: 675 [13:33:03]Content-Type: application/json [13:33:03] [13:33:03]POST finish read [13:33:03]Found Content-Length = 675 [13:33:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:33:03]execute_script... [13:33: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)1963002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:33:03]POST & json_proto [13:33:03]process_json_proto [13:33:03]json parsed OK: [13:33:03]protocol is kg_v1.0 [13:33:03]action value=close_receipt [13:33:03]process_action close_receipt [13:33:03]cmd_close_receipt [13:33:03]MH_GetDate [13:33:03]Write to MH i2c: F0 00 00 56 26 6B [13:33:03]Write i2c OK [13:33:03]MH_I2C_Read... [13:33:03]Read from MH i2c: F0 [13:33:03]MH_I2C_Read... [13:33:03]Read from MH i2c: F0 09 00 [13:33:03]MH_I2C_Read... [13:33:03]Read from MH i2c: F0 09 00 56 26 00 90 06 15 67 82 C9 CF 66 06 [13:33:03]GetLastDocTimeStamp 1729431173 [13:33:03]current date 1729431184 [13:33:03]FM_GetShiftState [13:33:03]SAM_PROTO_GetShiftState [13:33:03]wFMCommunicate request_size=4 [13:33:03]MH_SAM_APDU [13:33:03]CAPDU: 80 13 01 00 [13:33:03]Write to MH i2c: E2 08 00 57 26 80 13 01 00 00 00 00 00 FA [13:33:03]Write i2c OK [13:33:03]MH_I2C_Read... [13:33:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:33:03]Read from MH i2c: E2 [13:33:03]MH_I2C_Read... [13:33:03]Read from MH i2c: E2 0E 00 [13:33:03]MH_I2C_Read... [13:33:03]Read from MH i2c: E2 0E 00 57 26 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 14 [13:33:03]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:33:03]wFMCommunicate OK [13:33:03]SAM_PROTO_GetShiftState done [13:33:03]FM_GetShiftState done [13:33:03]opened in 1729383750 [13:33:03]opened+sec_in_day 1729470150 [13:33:03]quantity*price = 50063 [13:33:03]sum+1 = 50064 [13:33:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 327 20.10.2024 13:33 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227479 ФПД: 116251593238659 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T133304&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227479&fm=116251593238659&tin=02508201610067®Number=0000000000091685&sum=50000 [13:33:04]StoreToDocumentArchive [13:33:04]shift 533 fd 227479 [13:33:04]save to /storage/0533/doc_00227479 [13:33:04]save last doc name /storage/0533/doc_00227479 to /storage/kkm_last_doc_name [13:33:04]save OK [13:33:04]Clear old archive folders... [13:33:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:33:04]tlvbuf is 0187E060 [13:33:04]SAM_PROTO_ClearQueue [13:33:04]wFMCommunicate request_size=4 [13:33:04]MH_SAM_APDU [13:33:04]CAPDU: 80 09 00 00 [13:33:04]Write to MH i2c: E2 08 00 64 26 80 09 00 00 00 00 00 00 FC [13:33:04]Write i2c OK [13:33:04]MH_I2C_Read... [13:33:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:33:04]Read from MH i2c: E2 [13:33:04]MH_I2C_Read... [13:33:04]Read from MH i2c: E2 03 00 [13:33:04]MH_I2C_Read... [13:33:04]Read from MH i2c: E2 03 00 64 26 00 90 00 FE [13:33:04]RAPDU: 90 00 [13:33:04]wFMCommunicate OK [13:33:04]SAM_PROTO_ClearQueue done [13:33:04]KKMCreateOFDPacket [13:33:04]OFDProtocolAddRootSTLVToBuf [13:33:04]FM_MakeSignedData [13:33:04]FM_MakeSignedData [13:33:04]SAM_PROTO_SignData [13:33:04]wFMCommunicate request_size=4 [13:33:04]MH_SAM_APDU [13:33:04]CAPDU: 80 0D 01 02 [13:33:04]Write to MH i2c: E2 08 00 65 26 80 0D 01 02 00 00 00 00 04 [13:33:04]Write i2c OK [13:33:04]MH_I2C_Read... [13:33:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:33:04]Read from MH i2c: E2 [13:33:04]MH_I2C_Read... [13:33:04]Read from MH i2c: E2 03 00 [13:33:04]MH_I2C_Read... [13:33:04]Read from MH i2c: E2 03 00 65 26 00 90 00 FF [13:33:04]RAPDU: 90 00 [13:33:04]wFMCommunicate OK [13:33:04]wFMCommunicate request_size=255 [13:33:04]MH_SAM_APDU [13:33: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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 90 06 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 97 78 03 00 35 04 06 00 69 BA EE EB [13:33:04]Write to MH i2c: E2 02 01 66 26 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 90 06 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 97 78 03 00 35 04 06 00 69 BA EE EB 00 00 98 [13:33:04]Write i2c OK [13:33:04]MH_I2C_Read... [13:33:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:33:05]Read from MH i2c: E2 [13:33:05]MH_I2C_Read... [13:33:05]Read from MH i2c: E2 03 00 [13:33:05]MH_I2C_Read... [13:33:05]Read from MH i2c: E2 03 00 66 26 00 90 00 00 [13:33:05]RAPDU: 90 00 [13:33:05]wFMCommunicate OK [13:33:05]wFMCommunicate request_size=7 [13:33:05]MH_SAM_APDU [13:33:05]CAPDU: 80 0D 02 02 02 68 83 [13:33:05]Write to MH i2c: E2 0A 00 67 26 80 0D 02 02 02 00 68 83 00 00 F6 [13:33:05]Write i2c OK [13:33:05]MH_I2C_Read... [13:33:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:33:05]Read from MH i2c: E2 [13:33:05]MH_I2C_Read... [13:33:05]Read from MH i2c: E2 03 00 [13:33:05]MH_I2C_Read... [13:33:05]Read from MH i2c: E2 03 00 67 26 00 90 00 01 [13:33:05]RAPDU: 90 00 [13:33:05]wFMCommunicate OK [13:33:05]wFMCommunicate request_size=4 [13:33:05]MH_SAM_APDU [13:33:05]CAPDU: 80 0D 03 02 [13:33:05]Write to MH i2c: E2 08 00 68 26 80 0D 03 02 00 00 00 00 09 [13:33:05]Write i2c OK [13:33:05]MH_I2C_Read... [13:33:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:33:05]Read from MH i2c: E2 [13:33:05]MH_I2C_Read... [13:33:05]Read from MH i2c: E2 0B 00 [13:33:05]MH_I2C_Read... [13:33:05]Read from MH i2c: E2 0B 00 68 26 00 90 B4 78 C3 CF 3F 5F C0 90 00 B6 [13:33:05]RAPDU: 90 B4 78 C3 CF 3F 5F C0 90 00 [13:33:05]wFMCommunicate OK [13:33:05]SAM_PROTO_SignData done [13:33:05]FM_MakeSignedData done [13:33:05]CreateOFDProtocolMessage [13:33:05]wFMCommunicate request_size=4 [13:33:05]MH_SAM_APDU [13:33:05]CAPDU: 80 11 00 00 [13:33:05]Write to MH i2c: E2 08 00 69 26 80 11 00 00 00 00 00 00 09 [13:33:05]Write i2c OK [13:33:05]MH_I2C_Read... [13:33:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:33:05]Read from MH i2c: E2 [13:33:05]MH_I2C_Read... [13:33:05]Read from MH i2c: E2 17 00 [13:33:05]MH_I2C_Read... [13:33:05]Read from MH i2c: E2 17 00 69 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 60 [13:33:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:33:05]wFMCommunicate OK [13:33:05]CreateOFDProtocolMessage done [13:33:05]OFDSenderStorePacket 227479 [13:33:05]StoreOFDPacket docnum=227479 [13:33:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 D0 B3 04 01 87 53 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 90 06 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 97 78 03 00 35 04 06 00 69 BA EE EB 68 83 90 B4 78 C3 CF 3F 5F C0 [13:33:05]CheckFolder [13:33:05]dirname=/storage/ofd_packets [13:33:05]CheckFolder done [13:33:05]ProducePacketName [13:33:05]name=ofd_packets/00227479 [13:33:05]NVStorageSaveData ofd_packets/00227479 [13:33:05]File name is /storage/ofd_packets/00227479 [13:33:05]Write 298 bytes [13:33:05]NVStorageSaveData done [13:33:05]OFDSenderStorePacket done [13:33:05]KKMCreateOFDPacket done [13:33:05]NVStorageSaveData kkm_last_timestamp [13:33:05]File name is /storage/kkm_last_timestamp [13:33:05]Write 4 bytes [13:33:05]NVStorageSaveData done [13:33:05]ExternCall_PrintAddStr [13:33:05]wPrintStart [13:33:05]Write to MH i2c: 01 00 00 6A 26 90 [13:33:05]Write i2c OK [13:33:05]MH_I2C_Read... [13:33:05]Read from MH i2c: 01 [13:33:05]MH_I2C_Read... [13:33:05]Read from MH i2c: 01 07 00 [13:33:05]MH_I2C_Read... [13:33:05]Read from MH i2c: 01 07 00 6A 26 00 00 00 00 00 FF 0F A5 [13:33:05]RasterBufferAndPrint [13:33:05]line Счет N : (1)1963002 [13:33:05]line ИНН: 02508201610067 [13:33:05]line Контрольно-Кассовый Чек [13:33:05]line ПРОДАЖА [13:33:05]line ТРК (МРК, ГНК) : 51 [13:33:05]line Товар: 2710194210 [13:33:05]line ДТ-К-5 [13:33:05]line 6.570 * 76.20 [13:33:05]line = 500.63 [13:33:05]line НДС 12% НСП 1% [13:33:05]line > о реализуемом товаре [13:33:05]line ОКРУГЛЕНИЕ: -0.63 [13:33:05]line ИТОГО: 500.00 [13:33:05]line Внесено: 500.00 [13:33:05]line СДАЧА: 0.00 [13:33:05]line НСП 1% : 4.43 [13:33:05]line НДС 12% : 53.16 [13:33:05]line Наличными: 500.00 [13:33:05]line Безнал.: 0.00 [13:33:05]line Место: АЗС № 133 "Партнер Нефть" [13:33:05]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:33:05]line СНО: Общий режим [13:33:05]line Чек 327 20.10.2024 13:33 [13:33:05]line Смена: 533 ФФД: 1.0 [13:33:05]line ЗНМ: 0300000091 [13:33:05]line РНМ: 0000000000091685 [13:33:05]line Версия ККМ: 001 [13:33:05]line ФМ: 0000000000871839 [13:33:05]line ФД: 227479 [13:33:05]line ФПД: 116251593238659 [13:33:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T133304&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227479&fm=116251593238659&tin=02508201610067®Number=0000000000091685&sum=50000 [13:33:05]written 0, free lines is 4095 [13:33:05]OFD Sender: Processing packet 227479 [packets to send 38, broken 37] [13:33:05]ProducePacketName [13:33:05]name=ofd_packets/00227479 [13:33:05]OFD Sender: To server: pG, [13:33:05]CommunicateWithHost lk.salyk.kg:30040 [13:33:05]ConnectInit lk.salyk.kg [13:33:05]Connected sock=10 [13:33: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 33 39 0C 01 00 00 D0 B3 04 01 87 53 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 90 06 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 97 78 03 00 35 04 06 00 69 BA EE EB 68 83 90 B4 78 C3 CF 3F 5F C0 [13:33:05]Write to MH i2c: 01 00 00 94 26 BA [13:33:05]Write i2c OK [13:33:05]MH_I2C_Read... [13:33:05]Read from MH i2c: 01 [13:33:05]MH_I2C_Read... [13:33:05]Read from MH i2c: 01 07 00 [13:33:05]MH_I2C_Read... [13:33:05]Read from MH i2c: 01 07 00 94 26 00 00 00 00 00 0A 0D D8 [13:33:05]RasterBufferAndPrint [13:33:05]line [13:33:05]line [13:33:05]line [13:33:05]line [13:33:05]line [13:33:05]written 0, free lines is 3347 [13:33:05]process_action close_receipt done [13:33:05]requested_data is exist [13:33:05]produce_requested_data [13:33:05]requested_item fm.sn is exist - process it [13:33:05]wFMCommunicate request_size=4 [13:33:05]MH_SAM_APDU [13:33:05]CAPDU: 80 11 00 00 [13:33:05]Write to MH i2c: E2 08 00 9B 26 80 11 00 00 00 00 00 00 3B [13:33:05]Write i2c OK [13:33:05]MH_I2C_Read... [13:33:05]Read from MH i2c: E2 [13:33:05]MH_I2C_Read... [13:33:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:33:05]Read from MH i2c: E2 17 00 [13:33:05]MH_I2C_Read... [13:33:05]Read from MH i2c: E2 17 00 9B 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 92 [13:33:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:33:05]wFMCommunicate OK [13:33:05]requested_item fd.num is exist - process it [13:33:05]SAM_PROTO_GetFieldsCounters [13:33:05]wFMCommunicate request_size=4 [13:33:05]MH_SAM_APDU [13:33:05]CAPDU: 80 13 00 00 [13:33:05]Write to MH i2c: E2 08 00 9C 26 80 13 00 00 00 00 00 00 3E [13:33:05]Write i2c OK [13:33:05]MH_I2C_Read... [13:33: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 33 39 4F 00 00 00 C8 9B 47 00 8C 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 33 39 10 04 04 00 97 78 03 00 F4 03 04 00 8F B1 14 67 B6 04 01 00 00 11 21 9A 51 DC 1B BB 5C [13:33:05]CommunicateWithHost err = 0 [13:33:05]CheckOFDResponse [13:33:05]1017 (14) - 77093643461234 [13:33:05]1041 (16) - 0000000000871839 [13:33:05]1040 (4) - 227479 [13:33:05]1012 (4) - 20.10.2024 07:30 [13:33:05]1206 (1) - 0 [13:33:05]OFD Sender: Remove packet 227479 [13:33:05]ProducePacketName [13:33:05]name=ofd_packets/00227479 [13:33:05]NVStorageDeleteData [13:33:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:33:05]Read from MH i2c: E2 [13:33:05]MH_I2C_Read... [13:33:05]Read from MH i2c: E2 62 00 [13:33:05]MH_I2C_Read... [13:33:05]Read from MH i2c: E2 62 00 9C 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 97 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 47 01 00 00 5E 04 04 00 47 01 00 00 57 04 04 00 48 01 00 00 19 04 04 00 00 00 00 00 90 00 68 [13:33:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 97 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 47 01 00 00 5E 04 04 00 47 01 00 00 57 04 04 00 48 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:33:05]wFMCommunicate OK [13:33:05]SAM_PROTO_GetFieldsCounters done [13:33:05]requested_item shift.num is exist - process it [13:33:05]requested_item shift.opened is exist - process it [13:33:05]req_shift_opened [13:33:05]FM_GetShiftState [13:33:05]SAM_PROTO_GetShiftState [13:33:05]wFMCommunicate request_size=4 [13:33:05]MH_SAM_APDU [13:33:05]CAPDU: 80 13 01 00 [13:33:05]Write to MH i2c: E2 08 00 9D 26 80 13 01 00 00 00 00 00 40 [13:33:05]Write i2c OK [13:33:05]MH_I2C_Read... [13:33:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:33:05]Read from MH i2c: E2 [13:33:05]MH_I2C_Read... [13:33:05]Read from MH i2c: E2 0E 00 [13:33:05]MH_I2C_Read... [13:33:05]Read from MH i2c: E2 0E 00 9D 26 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 5A [13:33:05]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:33:05]wFMCommunicate OK [13:33:05]SAM_PROTO_GetShiftState done [13:33:05]FM_GetShiftState done [13:33:05]req_shift_opened done [13:33:05]requested_item shift.open_date is exist - process it [13:33:05]req_shift_open_date [13:33:05]req_shift_open_date done [13:33:05]produce_requested_data done [13:33:05]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227479,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [13:33:05]process_action_free close_receipt [13:33:05]json_value_free [13:33:05]json_value_free done [13:33:05]process_json_proto returns [13:33:05]Send response to host [13:33:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227479,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [13:33:05]free response buf [13:33:05]execute_script done [13:33:05]execute_script returns [13:33:05]free content buf [13:33:05]Sock 8.Close socket [13:33:05]Sock 8.Thread stoped [13:33:06]OFD Sender: No OFD packet to send [13:33:11]OFD Sender: No OFD packet to send [13:33:16]OFD Sender: No OFD packet to send [13:33:21]OFD Sender: No OFD packet to send [13:33:26]OFD Sender: No OFD packet to send [13:33:31]OFD Sender: No OFD packet to send [13:33:31]accept exits with 9 [13:33:31]New connection [13:33:31]New thread 3066543460 created [13:33:31]Thread 3066686820 joined [13:33:31]Waiting for new connection... [13:33:31] Sock 9.Parse request [13:33:31]Sock 9.Check first char [13:33:31]Sock 9.First char is OK [13:33:31]request: POST /json_proto HTTP/1.0 [13:33:31]Method: POST [13:33:31]URL: /json_proto [13:33:31]Method is POST - this is cgi request [13:33:31]url: /json_proto [13:33:31]query_string will be loaded in cgi processing [13:33:31]execute_cgi json_proto POST (null) [13:33:31]execute_cgi path=json_proto method=POST [13:33:31]POST find Content-Length [13:33:31]Host: 172.17.44.195:8080 [13:33:31]Content-Length: 678 [13:33:31]Content-Type: application/json [13:33:31] [13:33:31]POST finish read [13:33:31]Found Content-Length = 678 [13:33:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:33:31]execute_script... [13:33: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)1963003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:33:31]POST & json_proto [13:33:31]process_json_proto [13:33:31]json parsed OK: [13:33:31]protocol is kg_v1.0 [13:33:31]action value=close_receipt [13:33:31]process_action close_receipt [13:33:31]cmd_close_receipt [13:33:31]MH_GetDate [13:33:31]Write to MH i2c: F0 00 00 9E 26 B3 [13:33:31]Write i2c OK [13:33:31]MH_I2C_Read... [13:33:31]Read from MH i2c: F0 [13:33:31]MH_I2C_Read... [13:33:31]Read from MH i2c: F0 09 00 [13:33:31]MH_I2C_Read... [13:33:31]Read from MH i2c: F0 09 00 9E 26 00 AD 06 15 67 82 C9 CF 66 6B [13:33:31]GetLastDocTimeStamp 1729431184 [13:33:31]current date 1729431213 [13:33:31]FM_GetShiftState [13:33:31]SAM_PROTO_GetShiftState [13:33:31]wFMCommunicate request_size=4 [13:33:31]MH_SAM_APDU [13:33:31]CAPDU: 80 13 01 00 [13:33:31]Write to MH i2c: E2 08 00 9F 26 80 13 01 00 00 00 00 00 42 [13:33:31]Write i2c OK [13:33:31]MH_I2C_Read... [13:33:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:33:31]Read from MH i2c: E2 [13:33:31]MH_I2C_Read... [13:33:31]Read from MH i2c: E2 0E 00 [13:33:31]MH_I2C_Read... [13:33:31]Read from MH i2c: E2 0E 00 9F 26 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 5C [13:33:31]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:33:31]wFMCommunicate OK [13:33:31]SAM_PROTO_GetShiftState done [13:33:31]FM_GetShiftState done [13:33:31]opened in 1729383750 [13:33:31]opened+sec_in_day 1729470150 [13:33:31]quantity*price = 20003 [13:33:31]sum+1 = 20004 [13:33:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 328 20.10.2024 13:33 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227480 ФПД: 37842703903366 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T133333&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227480&fm=37842703903366&tin=02508201610067®Number=0000000000091685&sum=20000 [13:33:32]StoreToDocumentArchive [13:33:32]shift 533 fd 227480 [13:33:32]save to /storage/0533/doc_00227480 [13:33:32]save last doc name /storage/0533/doc_00227480 to /storage/kkm_last_doc_name [13:33:32]save OK [13:33:32]Clear old archive folders... [13:33:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:33:32]tlvbuf is 01970060 [13:33:32]SAM_PROTO_ClearQueue [13:33:32]wFMCommunicate request_size=4 [13:33:32]MH_SAM_APDU [13:33:32]CAPDU: 80 09 00 00 [13:33:32]Write to MH i2c: E2 08 00 AC 26 80 09 00 00 00 00 00 00 44 [13:33:32]Write i2c OK [13:33:32]MH_I2C_Read... [13:33:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:33:33]Read from MH i2c: E2 [13:33:33]MH_I2C_Read... [13:33:33]Read from MH i2c: E2 03 00 [13:33:33]MH_I2C_Read... [13:33:33]Read from MH i2c: E2 03 00 AC 26 00 90 00 46 [13:33:33]RAPDU: 90 00 [13:33:33]wFMCommunicate OK [13:33:33]SAM_PROTO_ClearQueue done [13:33:33]KKMCreateOFDPacket [13:33:33]OFDProtocolAddRootSTLVToBuf [13:33:33]FM_MakeSignedData [13:33:33]FM_MakeSignedData [13:33:33]SAM_PROTO_SignData [13:33:33]wFMCommunicate request_size=4 [13:33:33]MH_SAM_APDU [13:33:33]CAPDU: 80 0D 01 02 [13:33:33]Write to MH i2c: E2 08 00 AD 26 80 0D 01 02 00 00 00 00 4C [13:33:33]Write i2c OK [13:33:33]MH_I2C_Read... [13:33:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:33:33]Read from MH i2c: E2 [13:33:33]MH_I2C_Read... [13:33:33]Read from MH i2c: E2 03 00 [13:33:33]MH_I2C_Read... [13:33:33]Read from MH i2c: E2 03 00 AD 26 00 90 00 47 [13:33:33]RAPDU: 90 00 [13:33:33]wFMCommunicate OK [13:33:33]wFMCommunicate request_size=255 [13:33:33]MH_SAM_APDU [13:33:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 AD 06 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 98 78 03 00 35 04 06 00 22 [13:33:33]Write to MH i2c: E2 02 01 AE 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 AD 06 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 98 78 03 00 35 04 06 00 22 00 00 69 [13:33:33]Write i2c OK [13:33:33]MH_I2C_Read... [13:33:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:33:33]Read from MH i2c: E2 [13:33:33]MH_I2C_Read... [13:33:33]Read from MH i2c: E2 03 00 [13:33:33]MH_I2C_Read... [13:33:33]Read from MH i2c: E2 03 00 AE 26 00 90 00 48 [13:33:33]RAPDU: 90 00 [13:33:33]wFMCommunicate OK [13:33:33]wFMCommunicate request_size=10 [13:33:33]MH_SAM_APDU [13:33:33]CAPDU: 80 0D 02 02 05 6A F0 EC 6A 86 [13:33:33]Write to MH i2c: E2 0D 00 AF 26 80 0D 02 02 05 00 6A F0 EC 6A 86 00 00 8F [13:33:33]Write i2c OK [13:33:33]MH_I2C_Read... [13:33:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:33:33]Read from MH i2c: E2 [13:33:33]MH_I2C_Read... [13:33:33]Read from MH i2c: E2 03 00 [13:33:33]MH_I2C_Read... [13:33:33]Read from MH i2c: E2 03 00 AF 26 00 90 00 49 [13:33:33]RAPDU: 90 00 [13:33:33]wFMCommunicate OK [13:33:33]wFMCommunicate request_size=4 [13:33:33]MH_SAM_APDU [13:33:33]CAPDU: 80 0D 03 02 [13:33:33]Write to MH i2c: E2 08 00 B0 26 80 0D 03 02 00 00 00 00 51 [13:33:33]Write i2c OK [13:33:33]MH_I2C_Read... [13:33:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:33:33]Read from MH i2c: E2 [13:33:33]MH_I2C_Read... [13:33:33]Read from MH i2c: E2 0B 00 [13:33:33]MH_I2C_Read... [13:33:33]Read from MH i2c: E2 0B 00 B0 26 00 CD 40 B9 B9 A8 A5 C7 2C 90 00 11 [13:33:33]RAPDU: CD 40 B9 B9 A8 A5 C7 2C 90 00 [13:33:33]wFMCommunicate OK [13:33:33]SAM_PROTO_SignData done [13:33:33]FM_MakeSignedData done [13:33:33]CreateOFDProtocolMessage [13:33:33]wFMCommunicate request_size=4 [13:33:33]MH_SAM_APDU [13:33:33]CAPDU: 80 11 00 00 [13:33:33]Write to MH i2c: E2 08 00 B1 26 80 11 00 00 00 00 00 00 51 [13:33:33]Write i2c OK [13:33:33]MH_I2C_Read... [13:33:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:33:33]Read from MH i2c: E2 [13:33:33]MH_I2C_Read... [13:33:33]Read from MH i2c: E2 17 00 [13:33:33]MH_I2C_Read... [13:33:33]Read from MH i2c: E2 17 00 B1 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A8 [13:33:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:33:33]wFMCommunicate OK [13:33:33]CreateOFDProtocolMessage done [13:33:33]OFDSenderStorePacket 227480 [13:33:33]StoreOFDPacket docnum=227480 [13:33:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 FC 14 07 01 A6 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 AD 06 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 98 78 03 00 35 04 06 00 22 6A F0 EC 6A 86 CD 40 B9 B9 A8 A5 C7 2C [13:33:33]CheckFolder [13:33:33]dirname=/storage/ofd_packets [13:33:33]CheckFolder done [13:33:33]ProducePacketName [13:33:33]name=ofd_packets/00227480 [13:33:33]NVStorageSaveData ofd_packets/00227480 [13:33:33]File name is /storage/ofd_packets/00227480 [13:33:33]Write 301 bytes [13:33:33]NVStorageSaveData done [13:33:33]OFDSenderStorePacket done [13:33:33]KKMCreateOFDPacket done [13:33:33]NVStorageSaveData kkm_last_timestamp [13:33:33]File name is /storage/kkm_last_timestamp [13:33:33]Write 4 bytes [13:33:33]NVStorageSaveData done [13:33:33]ExternCall_PrintAddStr [13:33:33]wPrintStart [13:33:33]Write to MH i2c: 01 00 00 B2 26 D8 [13:33:33]Write i2c OK [13:33:33]MH_I2C_Read... [13:33:33]Read from MH i2c: 01 [13:33:33]MH_I2C_Read... [13:33:33]Read from MH i2c: 01 07 00 [13:33:33]MH_I2C_Read... [13:33:33]Read from MH i2c: 01 07 00 B2 26 00 00 00 00 00 FF 0F ED [13:33:33]RasterBufferAndPrint [13:33:33]line Счет N : (1)1963003 [13:33:33]line ИНН: 02508201610067 [13:33:33]line Контрольно-Кассовый Чек [13:33:33]line ПРОДАЖА [13:33:33]line ТРК (МРК, ГНК) : 33 [13:33:33]line Товар: 2710124130 [13:33:33]line Аи-92-К-5 [13:33:33]line 2.990 * 66.90 [13:33:33]line = 200.03 [13:33:33]line НДС 12% НСП 1% [13:33:33]line > о реализуемом товаре [13:33:33]line ОКРУГЛЕНИЕ: -0.03 [13:33:33]line ИТОГО: 200.00 [13:33:33]line Внесено: 200.00 [13:33:33]line СДАЧА: 0.00 [13:33:33]line НСП 1% : 1.77 [13:33:33]line НДС 12% : 21.24 [13:33:33]line Наличными: 200.00 [13:33:33]line Безнал.: 0.00 [13:33:33]line Место: АЗС № 133 "Партнер Нефть" [13:33:33]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:33:33]line СНО: Общий режим [13:33:33]line Чек 328 20.10.2024 13:33 [13:33:33]line Смена: 533 ФФД: 1.0 [13:33:33]line ЗНМ: 0300000091 [13:33:33]line РНМ: 0000000000091685 [13:33:33]line Версия ККМ: 001 [13:33:33]line ФМ: 0000000000871839 [13:33:33]line ФД: 227480 [13:33:33]line ФПД: 37842703903366 [13:33:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T133333&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227480&fm=37842703903366&tin=02508201610067®Number=0000000000091685&sum=20000 [13:33:33]written 0, free lines is 4095 [13:33:33]OFD Sender: Processing packet 227480 [packets to send 38, broken 37] [13:33:33]ProducePacketName [13:33:33]name=ofd_packets/00227480 [13:33:33]OFD Sender: To server: pG, [13:33:33]CommunicateWithHost lk.salyk.kg:30040 [13:33:33]ConnectInit lk.salyk.kg [13:33:33]Connected sock=10 [13:33: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 33 39 0F 01 00 00 FC 14 07 01 A6 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 AD 06 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 98 78 03 00 35 04 06 00 22 6A F0 EC 6A 86 CD 40 B9 B9 A8 A5 C7 2C [13:33: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 33 39 4F 00 00 00 E1 D7 47 00 95 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 33 39 10 04 04 00 98 78 03 00 F4 03 04 00 AB B1 14 67 B6 04 01 00 00 1A D2 CC A9 AB 89 83 CF [13:33:33]CommunicateWithHost err = 0 [13:33:33]CheckOFDResponse [13:33:33]1017 (14) - 77093643461234 [13:33:33]1041 (16) - 0000000000871839 [13:33:33]1040 (4) - 227480 [13:33:33]1012 (4) - 20.10.2024 07:30 [13:33:33]1206 (1) - 0 [13:33:33]OFD Sender: Remove packet 227480 [13:33:33]ProducePacketName [13:33:33]name=ofd_packets/00227480 [13:33:33]NVStorageDeleteData [13:33:33]Write to MH i2c: 01 00 00 DC 26 02 [13:33:33]Write i2c OK [13:33:33]MH_I2C_Read... [13:33:33]Read from MH i2c: 01 [13:33:34]MH_I2C_Read... [13:33:34]Read from MH i2c: 01 07 00 [13:33:34]MH_I2C_Read... [13:33:34]Read from MH i2c: 01 07 00 DC 26 00 00 00 00 00 0A 0D 20 [13:33:34]RasterBufferAndPrint [13:33:34]line [13:33:34]line [13:33:34]line [13:33:34]line [13:33:34]line [13:33:34]written 0, free lines is 3345 [13:33:34]process_action close_receipt done [13:33:34]requested_data is exist [13:33:34]produce_requested_data [13:33:34]requested_item fm.sn is exist - process it [13:33:34]wFMCommunicate request_size=4 [13:33:34]MH_SAM_APDU [13:33:34]CAPDU: 80 11 00 00 [13:33:34]Write to MH i2c: E2 08 00 E3 26 80 11 00 00 00 00 00 00 83 [13:33:34]Write i2c OK [13:33:34]MH_I2C_Read... [13:33:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:33:34]Read from MH i2c: E2 [13:33:34]MH_I2C_Read... [13:33:34]Read from MH i2c: E2 17 00 [13:33:34]MH_I2C_Read... [13:33:34]Read from MH i2c: E2 17 00 E3 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 DA [13:33:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:33:34]wFMCommunicate OK [13:33:34]requested_item fd.num is exist - process it [13:33:34]SAM_PROTO_GetFieldsCounters [13:33:34]wFMCommunicate request_size=4 [13:33:34]MH_SAM_APDU [13:33:34]CAPDU: 80 13 00 00 [13:33:34]Write to MH i2c: E2 08 00 E4 26 80 13 00 00 00 00 00 00 86 [13:33:34]Write i2c OK [13:33:34]MH_I2C_Read... [13:33:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:33:34]Read from MH i2c: E2 [13:33:34]MH_I2C_Read... [13:33:34]Read from MH i2c: E2 62 00 [13:33:34]MH_I2C_Read... [13:33:34]Read from MH i2c: E2 62 00 E4 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 98 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 48 01 00 00 5E 04 04 00 48 01 00 00 57 04 04 00 49 01 00 00 19 04 04 00 00 00 00 00 90 00 B4 [13:33: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 98 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 48 01 00 00 5E 04 04 00 48 01 00 00 57 04 04 00 49 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:33:34]wFMCommunicate OK [13:33:34]SAM_PROTO_GetFieldsCounters done [13:33:34]requested_item shift.num is exist - process it [13:33:34]requested_item shift.opened is exist - process it [13:33:34]req_shift_opened [13:33:34]FM_GetShiftState [13:33:34]SAM_PROTO_GetShiftState [13:33:34]wFMCommunicate request_size=4 [13:33:34]MH_SAM_APDU [13:33:34]CAPDU: 80 13 01 00 [13:33:34]Write to MH i2c: E2 08 00 E5 26 80 13 01 00 00 00 00 00 88 [13:33:34]Write i2c OK [13:33:34]MH_I2C_Read... [13:33:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:33:34]Read from MH i2c: E2 [13:33:34]MH_I2C_Read... [13:33:34]Read from MH i2c: E2 0E 00 [13:33:34]MH_I2C_Read... [13:33:34]Read from MH i2c: E2 0E 00 E5 26 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 A2 [13:33:34]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:33:34]wFMCommunicate OK [13:33:34]SAM_PROTO_GetShiftState done [13:33:34]FM_GetShiftState done [13:33:34]req_shift_opened done [13:33:34]requested_item shift.open_date is exist - process it [13:33:34]req_shift_open_date [13:33:34]req_shift_open_date done [13:33:34]produce_requested_data done [13:33:34]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227480,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [13:33:34]process_action_free close_receipt [13:33:34]json_value_free [13:33:34]json_value_free done [13:33:34]process_json_proto returns [13:33:34]Send response to host [13:33:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227480,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [13:33:34]free response buf [13:33:34]execute_script done [13:33:34]execute_script returns [13:33:34]free content buf [13:33:34]Sock 9.Close socket [13:33:34]Sock 9.Thread stoped [13:33:34]OFD Sender: No OFD packet to send [13:33:39]OFD Sender: No OFD packet to send [13:33:44]OFD Sender: No OFD packet to send [13:33:49]OFD Sender: No OFD packet to send [13:33:54]OFD Sender: No OFD packet to send [13:33:59]OFD Sender: No OFD packet to send [13:34:04]OFD Sender: No OFD packet to send [13:34:09]OFD Sender: No OFD packet to send [13:34:14]OFD Sender: No OFD packet to send [13:34:19]OFD Sender: No OFD packet to send [13:34:24]OFD Sender: No OFD packet to send [13:34:29]OFD Sender: No OFD packet to send [13:34:34]OFD Sender: No OFD packet to send [13:34:39]OFD Sender: No OFD packet to send [13:34:44]OFD Sender: No OFD packet to send [13:34:49]OFD Sender: No OFD packet to send [13:34:54]OFD Sender: No OFD packet to send [13:34:59]OFD Sender: No OFD packet to send [13:35:04]OFD Sender: No OFD packet to send [13:35:09]OFD Sender: No OFD packet to send [13:35:14]OFD Sender: No OFD packet to send [13:35:19]OFD Sender: No OFD packet to send [13:35:24]OFD Sender: No OFD packet to send [13:35:29]OFD Sender: No OFD packet to send [13:35:34]OFD Sender: No OFD packet to send [13:35:39]OFD Sender: No OFD packet to send [13:35:44]OFD Sender: No OFD packet to send [13:35:49]OFD Sender: No OFD packet to send [13:35:54]OFD Sender: No OFD packet to send [13:35:59]OFD Sender: No OFD packet to send [13:36:04]OFD Sender: No OFD packet to send [13:36:09]OFD Sender: No OFD packet to send [13:36:14]OFD Sender: No OFD packet to send [13:36:19]OFD Sender: No OFD packet to send [13:36:24]OFD Sender: No OFD packet to send [13:36:29]OFD Sender: No OFD packet to send [13:36:34]OFD Sender: No OFD packet to send [13:36:39]OFD Sender: No OFD packet to send [13:36:44]OFD Sender: No OFD packet to send [13:36:49]OFD Sender: No OFD packet to send [13:36:54]OFD Sender: No OFD packet to send [13:36:59]OFD Sender: No OFD packet to send [13:37:04]OFD Sender: No OFD packet to send [13:37:09]OFD Sender: No OFD packet to send [13:37:14]OFD Sender: No OFD packet to send [13:37:19]OFD Sender: No OFD packet to send [13:37:24]OFD Sender: No OFD packet to send [13:37:29]OFD Sender: No OFD packet to send [13:37:31]accept exits with 8 [13:37:31]New connection [13:37:31]New thread 3066686820 created [13:37:31]Thread 3066543460 joined [13:37:31]Waiting for new connection... [13:37:31] Sock 8.Parse request [13:37:31]Sock 8.Check first char [13:37:31]Sock 8.First char is OK [13:37:31]request: POST /json_proto HTTP/1.0 [13:37:31]Method: POST [13:37:31]URL: /json_proto [13:37:31]Method is POST - this is cgi request [13:37:31]url: /json_proto [13:37:31]query_string will be loaded in cgi processing [13:37:31]execute_cgi json_proto POST (null) [13:37:31]execute_cgi path=json_proto method=POST [13:37:31]POST find Content-Length [13:37:31]Host: 172.17.44.195:8080 [13:37:31]Content-Length: 678 [13:37:31]Content-Type: application/json [13:37:31] [13:37:31]POST finish read [13:37:31]Found Content-Length = 678 [13:37:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963005", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:37:31]execute_script... [13:37: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)1963005", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:37:31]POST & json_proto [13:37:31]process_json_proto [13:37:31]json parsed OK: [13:37:31]protocol is kg_v1.0 [13:37:31]action value=close_receipt [13:37:31]process_action close_receipt [13:37:31]cmd_close_receipt [13:37:31]MH_GetDate [13:37:31]Write to MH i2c: F0 00 00 E6 26 FB [13:37:31]Write i2c OK [13:37:31]MH_I2C_Read... [13:37:31]Read from MH i2c: F0 [13:37:31]MH_I2C_Read... [13:37:31]Read from MH i2c: F0 09 00 [13:37:31]MH_I2C_Read... [13:37:31]Read from MH i2c: F0 09 00 E6 26 00 9D 07 15 67 82 C9 CF 66 A4 [13:37:31]GetLastDocTimeStamp 1729431213 [13:37:31]current date 1729431453 [13:37:31]FM_GetShiftState [13:37:31]SAM_PROTO_GetShiftState [13:37:31]wFMCommunicate request_size=4 [13:37:31]MH_SAM_APDU [13:37:31]CAPDU: 80 13 01 00 [13:37:31]Write to MH i2c: E2 08 00 E7 26 80 13 01 00 00 00 00 00 8A [13:37:31]Write i2c OK [13:37:31]MH_I2C_Read... [13:37:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:31]Read from MH i2c: E2 [13:37:31]MH_I2C_Read... [13:37:31]Read from MH i2c: E2 0E 00 [13:37:31]MH_I2C_Read... [13:37:31]Read from MH i2c: E2 0E 00 E7 26 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 A4 [13:37:31]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:37:31]wFMCommunicate OK [13:37:31]SAM_PROTO_GetShiftState done [13:37:31]FM_GetShiftState done [13:37:31]opened in 1729383750 [13:37:31]opened+sec_in_day 1729470150 [13:37:31]quantity*price = 50041 [13:37:31]sum+1 = 50042 [13:37:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 329 20.10.2024 13:37 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227481 ФПД: 32804942596142 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T133733&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227481&fm=32804942596142&tin=02508201610067®Number=0000000000091685&sum=50000 [13:37:33]StoreToDocumentArchive [13:37:33]shift 533 fd 227481 [13:37:33]save to /storage/0533/doc_00227481 [13:37:33]save last doc name /storage/0533/doc_00227481 to /storage/kkm_last_doc_name [13:37:33]save OK [13:37:33]Clear old archive folders... [13:37:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:37:33]tlvbuf is 01970B50 [13:37:33]SAM_PROTO_ClearQueue [13:37:33]wFMCommunicate request_size=4 [13:37:33]MH_SAM_APDU [13:37:33]CAPDU: 80 09 00 00 [13:37:33]Write to MH i2c: E2 08 00 F4 26 80 09 00 00 00 00 00 00 8C [13:37:33]Write i2c OK [13:37:33]MH_I2C_Read... [13:37:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:37:33]Read from MH i2c: E2 [13:37:33]MH_I2C_Read... [13:37:33]Read from MH i2c: E2 03 00 [13:37:33]MH_I2C_Read... [13:37:33]Read from MH i2c: E2 03 00 F4 26 00 90 00 8E [13:37:33]RAPDU: 90 00 [13:37:33]wFMCommunicate OK [13:37:33]SAM_PROTO_ClearQueue done [13:37:33]KKMCreateOFDPacket [13:37:33]OFDProtocolAddRootSTLVToBuf [13:37:33]FM_MakeSignedData [13:37:33]FM_MakeSignedData [13:37:33]SAM_PROTO_SignData [13:37:33]wFMCommunicate request_size=4 [13:37:33]MH_SAM_APDU [13:37:33]CAPDU: 80 0D 01 02 [13:37:33]Write to MH i2c: E2 08 00 F5 26 80 0D 01 02 00 00 00 00 94 [13:37:33]Write i2c OK [13:37:33]MH_I2C_Read... [13:37:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:37:33]Read from MH i2c: E2 [13:37:33]MH_I2C_Read... [13:37:33]Read from MH i2c: E2 03 00 [13:37:33]MH_I2C_Read... [13:37:33]Read from MH i2c: E2 03 00 F5 26 00 90 00 8F [13:37:33]RAPDU: 90 00 [13:37:33]wFMCommunicate OK [13:37:33]wFMCommunicate request_size=255 [13:37:33]MH_SAM_APDU [13:37:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 9D 07 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 99 78 03 00 35 04 06 00 1D [13:37:33]Write to MH i2c: E2 02 01 F6 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 9D 07 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 99 78 03 00 35 04 06 00 1D 00 00 DD [13:37:33]Write i2c OK [13:37:33]MH_I2C_Read... [13:37:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:33]Read from MH i2c: E2 [13:37:33]MH_I2C_Read... [13:37:33]Read from MH i2c: E2 03 00 [13:37:33]MH_I2C_Read... [13:37:33]Read from MH i2c: E2 03 00 F6 26 00 90 00 90 [13:37:33]RAPDU: 90 00 [13:37:33]wFMCommunicate OK [13:37:33]wFMCommunicate request_size=10 [13:37:33]MH_SAM_APDU [13:37:33]CAPDU: 80 0D 02 02 05 D5 FE F3 48 2E [13:37:33]Write to MH i2c: E2 0D 00 F7 26 80 0D 02 02 05 00 D5 FE F3 48 2E 00 00 DD [13:37:33]Write i2c OK [13:37:33]MH_I2C_Read... [13:37:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:33]Read from MH i2c: E2 [13:37:33]MH_I2C_Read... [13:37:33]Read from MH i2c: E2 03 00 [13:37:33]MH_I2C_Read... [13:37:33]Read from MH i2c: E2 03 00 F7 26 00 90 00 91 [13:37:33]RAPDU: 90 00 [13:37:33]wFMCommunicate OK [13:37:33]wFMCommunicate request_size=4 [13:37:33]MH_SAM_APDU [13:37:33]CAPDU: 80 0D 03 02 [13:37:33]Write to MH i2c: E2 08 00 F8 26 80 0D 03 02 00 00 00 00 99 [13:37:33]Write i2c OK [13:37:33]MH_I2C_Read... [13:37:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:37:33]Read from MH i2c: E2 [13:37:33]MH_I2C_Read... [13:37:33]Read from MH i2c: E2 0B 00 [13:37:33]MH_I2C_Read... [13:37:33]Read from MH i2c: E2 0B 00 F8 26 00 EB C1 3D 5B 84 A7 DF A2 90 00 8A [13:37:33]RAPDU: EB C1 3D 5B 84 A7 DF A2 90 00 [13:37:33]wFMCommunicate OK [13:37:33]SAM_PROTO_SignData done [13:37:33]FM_MakeSignedData done [13:37:33]CreateOFDProtocolMessage [13:37:33]wFMCommunicate request_size=4 [13:37:33]MH_SAM_APDU [13:37:33]CAPDU: 80 11 00 00 [13:37:33]Write to MH i2c: E2 08 00 F9 26 80 11 00 00 00 00 00 00 99 [13:37:33]Write i2c OK [13:37:33]MH_I2C_Read... [13:37:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:33]Read from MH i2c: E2 [13:37:33]MH_I2C_Read... [13:37:33]Read from MH i2c: E2 17 00 [13:37:33]MH_I2C_Read... [13:37:33]Read from MH i2c: E2 17 00 F9 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F0 [13:37:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:37:33]wFMCommunicate OK [13:37:33]CreateOFDProtocolMessage done [13:37:33]OFDSenderStorePacket 227481 [13:37:33]StoreOFDPacket docnum=227481 [13:37:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 51 46 07 01 BD 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 9D 07 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 99 78 03 00 35 04 06 00 1D D5 FE F3 48 2E EB C1 3D 5B 84 A7 DF A2 [13:37:33]CheckFolder [13:37:33]dirname=/storage/ofd_packets [13:37:33]CheckFolder done [13:37:33]ProducePacketName [13:37:33]name=ofd_packets/00227481 [13:37:33]NVStorageSaveData ofd_packets/00227481 [13:37:33]File name is /storage/ofd_packets/00227481 [13:37:33]Write 301 bytes [13:37:33]NVStorageSaveData done [13:37:33]OFDSenderStorePacket done [13:37:33]KKMCreateOFDPacket done [13:37:33]NVStorageSaveData kkm_last_timestamp [13:37:33]File name is /storage/kkm_last_timestamp [13:37:33]Write 4 bytes [13:37:33]NVStorageSaveData done [13:37:33]ExternCall_PrintAddStr [13:37:33]wPrintStart [13:37:33]Write to MH i2c: 01 00 00 FA 26 20 [13:37:33]Write i2c OK [13:37:33]MH_I2C_Read... [13:37:33]Read from MH i2c: 01 [13:37:33]MH_I2C_Read... [13:37:33]Read from MH i2c: 01 07 00 [13:37:33]MH_I2C_Read... [13:37:33]Read from MH i2c: 01 07 00 FA 26 00 00 00 00 00 FF 0F 35 [13:37:33]RasterBufferAndPrint [13:37:33]line Счет N : (1)1963005 [13:37:33]line ИНН: 02508201610067 [13:37:33]line Контрольно-Кассовый Чек [13:37:33]line ПРОДАЖА [13:37:33]line ТРК (МРК, ГНК) : 43 [13:37:33]line Товар: 2710124130 [13:37:33]line Аи-92-К-5 [13:37:33]line 7.480 * 66.90 [13:37:33]line = 500.41 [13:37:33]line НДС 12% НСП 1% [13:37:33]line > о реализуемом товаре [13:37:33]line ОКРУГЛЕНИЕ: -0.41 [13:37:33]line ИТОГО: 500.00 [13:37:33]line Внесено: 500.00 [13:37:33]line СДАЧА: 0.00 [13:37:33]line НСП 1% : 4.43 [13:37:33]line НДС 12% : 53.14 [13:37:33]line Наличными: 500.00 [13:37:33]line Безнал.: 0.00 [13:37:33]line Место: АЗС № 133 "Партнер Нефть" [13:37:33]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:37:33]line СНО: Общий режим [13:37:33]line Чек 329 20.10.2024 13:37 [13:37:33]line Смена: 533 ФФД: 1.0 [13:37:33]line ЗНМ: 0300000091 [13:37:33]line РНМ: 0000000000091685 [13:37:33]line Версия ККМ: 001 [13:37:33]line ФМ: 0000000000871839 [13:37:33]line ФД: 227481 [13:37:33]line ФПД: 32804942596142 [13:37:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T133733&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227481&fm=32804942596142&tin=02508201610067®Number=0000000000091685&sum=50000 [13:37:33]written 0, free lines is 4095 [13:37:33]OFD Sender: Processing packet 227481 [packets to send 38, broken 37] [13:37:33]ProducePacketName [13:37:33]name=ofd_packets/00227481 [13:37:33]OFD Sender: To server: pG, [13:37:33]CommunicateWithHost lk.salyk.kg:30040 [13:37:33]ConnectInit lk.salyk.kg [13:37:34]Connected sock=9 [13:37:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 51 46 07 01 BD 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 9D 07 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 99 78 03 00 35 04 06 00 1D D5 FE F3 48 2E EB C1 3D 5B 84 A7 DF A2 [13:37: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 33 39 4F 00 00 00 31 37 47 00 E1 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 99 78 03 00 F4 03 04 00 9C B2 14 67 B6 04 01 00 00 A2 DE D9 D3 03 EC 03 FB [13:37:34]CommunicateWithHost err = 0 [13:37:34]CheckOFDResponse [13:37:34]1017 (14) - 77093643461234 [13:37:34]1041 (16) - 0000000000871839 [13:37:34]1040 (4) - 227481 [13:37:34]1012 (4) - 20.10.2024 07:34 [13:37:34]1206 (1) - 0 [13:37:34]OFD Sender: Remove packet 227481 [13:37:34]ProducePacketName [13:37:34]name=ofd_packets/00227481 [13:37:34]NVStorageDeleteData [13:37:34]Write to MH i2c: 01 00 00 24 27 4B [13:37:34]Write i2c OK [13:37:34]MH_I2C_Read... [13:37:34]Read from MH i2c: 01 [13:37:34]MH_I2C_Read... [13:37:34]Read from MH i2c: 01 07 00 [13:37:34]MH_I2C_Read... [13:37:34]Read from MH i2c: 01 07 00 24 27 00 00 00 00 00 02 0D 61 [13:37:34]RasterBufferAndPrint [13:37:34]line [13:37:34]line [13:37:34]line [13:37:34]line [13:37:34]line [13:37:34]written 0, free lines is 3336 [13:37:34]process_action close_receipt done [13:37:34]requested_data is exist [13:37:34]produce_requested_data [13:37:34]requested_item fm.sn is exist - process it [13:37:34]wFMCommunicate request_size=4 [13:37:34]MH_SAM_APDU [13:37:34]CAPDU: 80 11 00 00 [13:37:34]Write to MH i2c: E2 08 00 2B 27 80 11 00 00 00 00 00 00 CC [13:37:34]Write i2c OK [13:37:34]MH_I2C_Read... [13:37:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:34]Read from MH i2c: E2 [13:37:34]MH_I2C_Read... [13:37:34]Read from MH i2c: E2 17 00 [13:37:34]MH_I2C_Read... [13:37:34]Read from MH i2c: E2 17 00 2B 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 23 [13:37:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:37:34]wFMCommunicate OK [13:37:34]requested_item fd.num is exist - process it [13:37:34]SAM_PROTO_GetFieldsCounters [13:37:34]wFMCommunicate request_size=4 [13:37:34]MH_SAM_APDU [13:37:34]CAPDU: 80 13 00 00 [13:37:34]Write to MH i2c: E2 08 00 2C 27 80 13 00 00 00 00 00 00 CF [13:37:34]Write i2c OK [13:37:34]MH_I2C_Read... [13:37:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:37:34]Read from MH i2c: E2 [13:37:34]MH_I2C_Read... [13:37:34]Read from MH i2c: E2 62 00 [13:37:34]MH_I2C_Read... [13:37:34]Read from MH i2c: E2 62 00 2C 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 99 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 01 [13:37: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 99 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:37:34]wFMCommunicate OK [13:37:34]SAM_PROTO_GetFieldsCounters done [13:37:34]requested_item shift.num is exist - process it [13:37:34]requested_item shift.opened is exist - process it [13:37:34]req_shift_opened [13:37:34]FM_GetShiftState [13:37:34]SAM_PROTO_GetShiftState [13:37:34]wFMCommunicate request_size=4 [13:37:34]MH_SAM_APDU [13:37:34]CAPDU: 80 13 01 00 [13:37:34]Write to MH i2c: E2 08 00 2D 27 80 13 01 00 00 00 00 00 D1 [13:37:34]Write i2c OK [13:37:34]MH_I2C_Read... [13:37:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:34]Read from MH i2c: E2 [13:37:34]MH_I2C_Read... [13:37:34]Read from MH i2c: E2 0E 00 [13:37:34]MH_I2C_Read... [13:37:34]Read from MH i2c: E2 0E 00 2D 27 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 EB [13:37:34]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:37:34]wFMCommunicate OK [13:37:34]SAM_PROTO_GetShiftState done [13:37:34]FM_GetShiftState done [13:37:34]req_shift_opened done [13:37:34]requested_item shift.open_date is exist - process it [13:37:34]req_shift_open_date [13:37:34]req_shift_open_date done [13:37:34]produce_requested_data done [13:37:34]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227481,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [13:37:34]process_action_free close_receipt [13:37:34]json_value_free [13:37:34]json_value_free done [13:37:34]process_json_proto returns [13:37:34]Send response to host [13:37:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227481,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [13:37:34]free response buf [13:37:34]execute_script done [13:37:34]execute_script returns [13:37:34]free content buf [13:37:34]Sock 8.Close socket [13:37:34]Sock 8.Thread stoped [13:37:34]OFD Sender: No OFD packet to send [13:37:39]OFD Sender: No OFD packet to send [13:37:44]accept exits with 10 [13:37:44]New connection [13:37:44]New thread 3066543460 created [13:37:44]Thread 3066686820 joined [13:37:44]Waiting for new connection... [13:37:44] Sock 10.Parse request [13:37:44]Sock 10.Check first char [13:37:44]Sock 10.First char is OK [13:37:44]request: POST /json_proto HTTP/1.0 [13:37:44]Method: POST [13:37:44]URL: /json_proto [13:37:44]Method is POST - this is cgi request [13:37:44]url: /json_proto [13:37:44]query_string will be loaded in cgi processing [13:37:44]execute_cgi json_proto POST (null) [13:37:44]execute_cgi path=json_proto method=POST [13:37:44]POST find Content-Length [13:37:44]Host: 172.17.44.195:8080 [13:37:44]Content-Length: 679 [13:37:44]Content-Type: application/json [13:37:44] [13:37:44]POST finish read [13:37:44]Found Content-Length = 679 [13:37:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963007", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:37:44]execute_script... [13:37:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963007", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:37:44]POST & json_proto [13:37:44]process_json_proto [13:37:44]json parsed OK: [13:37:44]protocol is kg_v1.0 [13:37:44]action value=close_receipt [13:37:44]process_action close_receipt [13:37:44]cmd_close_receipt [13:37:44]MH_GetDate [13:37:44]Write to MH i2c: F0 00 00 2E 27 44 [13:37:44]Write i2c OK [13:37:44]MH_I2C_Read... [13:37:44]Read from MH i2c: F0 [13:37:44]MH_I2C_Read... [13:37:44]Read from MH i2c: F0 09 00 [13:37:44]MH_I2C_Read... [13:37:44]Read from MH i2c: F0 09 00 2E 27 00 A9 07 15 67 82 C9 CF 66 F9 [13:37:44]GetLastDocTimeStamp 1729431453 [13:37:44]current date 1729431465 [13:37:44]FM_GetShiftState [13:37:44]SAM_PROTO_GetShiftState [13:37:44]wFMCommunicate request_size=4 [13:37:44]MH_SAM_APDU [13:37:44]CAPDU: 80 13 01 00 [13:37:44]Write to MH i2c: E2 08 00 2F 27 80 13 01 00 00 00 00 00 D3 [13:37:44]Write i2c OK [13:37:44]MH_I2C_Read... [13:37:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:44]Read from MH i2c: E2 [13:37:44]MH_I2C_Read... [13:37:44]Read from MH i2c: E2 0E 00 [13:37:44]MH_I2C_Read... [13:37:44]Read from MH i2c: E2 0E 00 2F 27 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 ED [13:37:44]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:37:44]wFMCommunicate OK [13:37:44]SAM_PROTO_GetShiftState done [13:37:44]FM_GetShiftState done [13:37:44]opened in 1729383750 [13:37:44]opened+sec_in_day 1729470150 [13:37:44]quantity*price = 80012 [13:37:44]sum+1 = 80013 [13:37:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 330 20.10.2024 13:37 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227482 ФПД: 17223660581348 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T133745&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227482&fm=17223660581348&tin=02508201610067®Number=0000000000091685&sum=80000 [13:37:45]StoreToDocumentArchive [13:37:45]shift 533 fd 227482 [13:37:45]save to /storage/0533/doc_00227482 [13:37:45]save last doc name /storage/0533/doc_00227482 to /storage/kkm_last_doc_name [13:37:45]save OK [13:37:45]Clear old archive folders... [13:37:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:37:45]tlvbuf is B6E99EF0 [13:37:45]SAM_PROTO_ClearQueue [13:37:45]wFMCommunicate request_size=4 [13:37:45]MH_SAM_APDU [13:37:45]CAPDU: 80 09 00 00 [13:37:45]Write to MH i2c: E2 08 00 3C 27 80 09 00 00 00 00 00 00 D5 [13:37:45]Write i2c OK [13:37:45]MH_I2C_Read... [13:37:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:37:45]Read from MH i2c: E2 [13:37:45]MH_I2C_Read... [13:37:45]Read from MH i2c: E2 03 00 [13:37:45]MH_I2C_Read... [13:37:45]Read from MH i2c: E2 03 00 3C 27 00 90 00 D7 [13:37:45]RAPDU: 90 00 [13:37:45]wFMCommunicate OK [13:37:45]SAM_PROTO_ClearQueue done [13:37:45]KKMCreateOFDPacket [13:37:45]OFDProtocolAddRootSTLVToBuf [13:37:45]FM_MakeSignedData [13:37:45]FM_MakeSignedData [13:37:45]SAM_PROTO_SignData [13:37:45]wFMCommunicate request_size=4 [13:37:45]MH_SAM_APDU [13:37:45]CAPDU: 80 0D 01 02 [13:37:45]Write to MH i2c: E2 08 00 3D 27 80 0D 01 02 00 00 00 00 DD [13:37:45]Write i2c OK [13:37:45]MH_I2C_Read... [13:37:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:37:45]Read from MH i2c: E2 [13:37:45]MH_I2C_Read... [13:37:45]Read from MH i2c: E2 03 00 [13:37:45]MH_I2C_Read... [13:37:45]Read from MH i2c: E2 03 00 3D 27 00 90 00 D8 [13:37:45]RAPDU: 90 00 [13:37:45]wFMCommunicate OK [13:37:45]wFMCommunicate request_size=255 [13:37:45]MH_SAM_APDU [13:37:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 A9 07 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9A 78 03 00 35 04 06 00 0F [13:37:45]Write to MH i2c: E2 02 01 3E 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 A9 07 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9A 78 03 00 35 04 06 00 0F 00 00 12 [13:37:45]Write i2c OK [13:37:45]MH_I2C_Read... [13:37:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:46]Read from MH i2c: E2 [13:37:46]MH_I2C_Read... [13:37:46]Read from MH i2c: E2 03 00 [13:37:46]MH_I2C_Read... [13:37:46]Read from MH i2c: E2 03 00 3E 27 00 90 00 D9 [13:37:46]RAPDU: 90 00 [13:37:46]wFMCommunicate OK [13:37:46]wFMCommunicate request_size=10 [13:37:46]MH_SAM_APDU [13:37:46]CAPDU: 80 0D 02 02 05 AA 32 2B B1 E4 [13:37:46]Write to MH i2c: E2 0D 00 3F 27 80 0D 02 02 05 00 AA 32 2B B1 E4 00 00 86 [13:37:46]Write i2c OK [13:37:46]MH_I2C_Read... [13:37:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:46]Read from MH i2c: E2 [13:37:46]MH_I2C_Read... [13:37:46]Read from MH i2c: E2 03 00 [13:37:46]MH_I2C_Read... [13:37:46]Read from MH i2c: E2 03 00 3F 27 00 90 00 DA [13:37:46]RAPDU: 90 00 [13:37:46]wFMCommunicate OK [13:37:46]wFMCommunicate request_size=4 [13:37:46]MH_SAM_APDU [13:37:46]CAPDU: 80 0D 03 02 [13:37:46]Write to MH i2c: E2 08 00 40 27 80 0D 03 02 00 00 00 00 E2 [13:37:46]Write i2c OK [13:37:46]MH_I2C_Read... [13:37:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:37:46]Read from MH i2c: E2 [13:37:46]MH_I2C_Read... [13:37:46]Read from MH i2c: E2 0B 00 [13:37:46]MH_I2C_Read... [13:37:46]Read from MH i2c: E2 0B 00 40 27 00 F0 4A DA F2 E1 9F 19 42 90 00 C4 [13:37:46]RAPDU: F0 4A DA F2 E1 9F 19 42 90 00 [13:37:46]wFMCommunicate OK [13:37:46]SAM_PROTO_SignData done [13:37:46]FM_MakeSignedData done [13:37:46]CreateOFDProtocolMessage [13:37:46]wFMCommunicate request_size=4 [13:37:46]MH_SAM_APDU [13:37:46]CAPDU: 80 11 00 00 [13:37:46]Write to MH i2c: E2 08 00 41 27 80 11 00 00 00 00 00 00 E2 [13:37:46]Write i2c OK [13:37:46]MH_I2C_Read... [13:37:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:46]Read from MH i2c: E2 [13:37:46]MH_I2C_Read... [13:37:46]Read from MH i2c: E2 17 00 [13:37:46]MH_I2C_Read... [13:37:46]Read from MH i2c: E2 17 00 41 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 39 [13:37:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:37:46]wFMCommunicate OK [13:37:46]CreateOFDProtocolMessage done [13:37:46]OFDSenderStorePacket 227482 [13:37:46]StoreOFDPacket docnum=227482 [13:37:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 C7 7C 07 01 65 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 A9 07 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9A 78 03 00 35 04 06 00 0F AA 32 2B B1 E4 F0 4A DA F2 E1 9F 19 42 [13:37:46]CheckFolder [13:37:46]dirname=/storage/ofd_packets [13:37:46]CheckFolder done [13:37:46]ProducePacketName [13:37:46]name=ofd_packets/00227482 [13:37:46]NVStorageSaveData ofd_packets/00227482 [13:37:46]File name is /storage/ofd_packets/00227482 [13:37:46]Write 301 bytes [13:37:46]NVStorageSaveData done [13:37:46]OFDSenderStorePacket done [13:37:46]KKMCreateOFDPacket done [13:37:46]NVStorageSaveData kkm_last_timestamp [13:37:46]File name is /storage/kkm_last_timestamp [13:37:46]Write 4 bytes [13:37:46]NVStorageSaveData done [13:37:46]ExternCall_PrintAddStr [13:37:46]wPrintStart [13:37:46]Write to MH i2c: 01 00 00 42 27 69 [13:37:46]Write i2c OK [13:37:46]MH_I2C_Read... [13:37:46]Read from MH i2c: 01 [13:37:46]MH_I2C_Read... [13:37:46]Read from MH i2c: 01 07 00 [13:37:46]MH_I2C_Read... [13:37:46]Read from MH i2c: 01 07 00 42 27 00 00 00 00 00 FF 0F 7E [13:37:46]RasterBufferAndPrint [13:37:46]line Счет N : (1)1963007 [13:37:46]line ИНН: 02508201610067 [13:37:46]line Контрольно-Кассовый Чек [13:37:46]line ПРОДАЖА [13:37:46]line ТРК (МРК, ГНК) : 63 [13:37:46]line Товар: 2710124130 [13:37:46]line Аи-92-К-5 [13:37:46]line 11.960 * 66.90 [13:37:46]line = 800.12 [13:37:46]line НДС 12% НСП 1% [13:37:46]line > о реализуемом товаре [13:37:46]line ОКРУГЛЕНИЕ: -0.12 [13:37:46]line ИТОГО: 800.00 [13:37:46]line Внесено: 800.00 [13:37:46]line СДАЧА: 0.00 [13:37:46]line НСП 1% : 7.08 [13:37:46]line НДС 12% : 84.97 [13:37:46]line Наличными: 800.00 [13:37:46]line Безнал.: 0.00 [13:37:46]line Место: АЗС № 133 "Партнер Нефть" [13:37:46]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:37:46]line СНО: Общий режим [13:37:46]line Чек 330 20.10.2024 13:37 [13:37:46]line Смена: 533 ФФД: 1.0 [13:37:46]line ЗНМ: 0300000091 [13:37:46]line РНМ: 0000000000091685 [13:37:46]line Версия ККМ: 001 [13:37:46]line ФМ: 0000000000871839 [13:37:46]line ФД: 227482 [13:37:46]line ФПД: 17223660581348 [13:37:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T133745&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227482&fm=17223660581348&tin=02508201610067®Number=0000000000091685&sum=80000 [13:37:46]written 0, free lines is 4095 [13:37:46]OFD Sender: Processing packet 227482 [packets to send 38, broken 37] [13:37:46]ProducePacketName [13:37:46]name=ofd_packets/00227482 [13:37:46]OFD Sender: To server: pG, [13:37:46]CommunicateWithHost lk.salyk.kg:30040 [13:37:46]ConnectInit lk.salyk.kg [13:37:46]Connected sock=9 [13:37:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 C7 7C 07 01 65 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 A9 07 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9A 78 03 00 35 04 06 00 0F AA 32 2B B1 E4 F0 4A DA F2 E1 9F 19 42 [13:37: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 33 39 4F 00 00 00 53 53 47 00 2F 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 33 39 10 04 04 00 9A 78 03 00 F4 03 04 00 A8 B2 14 67 B6 04 01 00 00 C2 84 8F C5 97 81 C4 98 [13:37:46]CommunicateWithHost err = 0 [13:37:46]CheckOFDResponse [13:37:46]1017 (14) - 77093643461234 [13:37:46]1041 (16) - 0000000000871839 [13:37:46]1040 (4) - 227482 [13:37:46]1012 (4) - 20.10.2024 07:35 [13:37:46]1206 (1) - 0 [13:37:46]OFD Sender: Remove packet 227482 [13:37:46]ProducePacketName [13:37:46]name=ofd_packets/00227482 [13:37:46]NVStorageDeleteData [13:37:46]Write to MH i2c: 01 00 00 6C 27 93 [13:37:46]Write i2c OK [13:37:46]MH_I2C_Read... [13:37:46]Read from MH i2c: 01 [13:37:46]MH_I2C_Read... [13:37:46]Read from MH i2c: 01 07 00 [13:37:46]MH_I2C_Read... [13:37:46]Read from MH i2c: 01 07 00 6C 27 00 00 00 00 00 08 0D AF [13:37:46]RasterBufferAndPrint [13:37:46]line [13:37:46]line [13:37:46]line [13:37:46]line [13:37:46]line [13:37:46]written 0, free lines is 3345 [13:37:46]process_action close_receipt done [13:37:46]requested_data is exist [13:37:46]produce_requested_data [13:37:46]requested_item fm.sn is exist - process it [13:37:46]wFMCommunicate request_size=4 [13:37:46]MH_SAM_APDU [13:37:46]CAPDU: 80 11 00 00 [13:37:46]Write to MH i2c: E2 08 00 73 27 80 11 00 00 00 00 00 00 14 [13:37:46]Write i2c OK [13:37:46]MH_I2C_Read... [13:37:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:46]Read from MH i2c: E2 [13:37:46]MH_I2C_Read... [13:37:46]Read from MH i2c: E2 17 00 [13:37:46]MH_I2C_Read... [13:37:46]Read from MH i2c: E2 17 00 73 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 6B [13:37:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:37:46]wFMCommunicate OK [13:37:46]requested_item fd.num is exist - process it [13:37:46]SAM_PROTO_GetFieldsCounters [13:37:46]wFMCommunicate request_size=4 [13:37:46]MH_SAM_APDU [13:37:46]CAPDU: 80 13 00 00 [13:37:46]Write to MH i2c: E2 08 00 74 27 80 13 00 00 00 00 00 00 17 [13:37:46]Write i2c OK [13:37:46]MH_I2C_Read... [13:37:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:37:47]Read from MH i2c: E2 [13:37:47]MH_I2C_Read... [13:37:47]Read from MH i2c: E2 62 00 [13:37:47]MH_I2C_Read... [13:37:47]Read from MH i2c: E2 62 00 74 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 9A 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 4A 01 00 00 5E 04 04 00 4A 01 00 00 57 04 04 00 4B 01 00 00 19 04 04 00 00 00 00 00 90 00 4D [13:37: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 9A 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 4A 01 00 00 5E 04 04 00 4A 01 00 00 57 04 04 00 4B 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:37:47]wFMCommunicate OK [13:37:47]SAM_PROTO_GetFieldsCounters done [13:37:47]requested_item shift.num is exist - process it [13:37:47]requested_item shift.opened is exist - process it [13:37:47]req_shift_opened [13:37:47]FM_GetShiftState [13:37:47]SAM_PROTO_GetShiftState [13:37:47]wFMCommunicate request_size=4 [13:37:47]MH_SAM_APDU [13:37:47]CAPDU: 80 13 01 00 [13:37:47]Write to MH i2c: E2 08 00 75 27 80 13 01 00 00 00 00 00 19 [13:37:47]Write i2c OK [13:37:47]MH_I2C_Read... [13:37:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:47]Read from MH i2c: E2 [13:37:47]MH_I2C_Read... [13:37:47]Read from MH i2c: E2 0E 00 [13:37:47]MH_I2C_Read... [13:37:47]Read from MH i2c: E2 0E 00 75 27 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 33 [13:37:47]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:37:47]wFMCommunicate OK [13:37:47]SAM_PROTO_GetShiftState done [13:37:47]FM_GetShiftState done [13:37:47]req_shift_opened done [13:37:47]requested_item shift.open_date is exist - process it [13:37:47]req_shift_open_date [13:37:47]req_shift_open_date done [13:37:47]produce_requested_data done [13:37:47]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227482,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [13:37:47]process_action_free close_receipt [13:37:47]json_value_free [13:37:47]json_value_free done [13:37:47]process_json_proto returns [13:37:47]Send response to host [13:37:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227482,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [13:37:47]free response buf [13:37:47]execute_script done [13:37:47]execute_script returns [13:37:47]free content buf [13:37:47]Sock 10.Close socket [13:37:47]Sock 10.Thread stoped [13:37:47]OFD Sender: No OFD packet to send [13:37:52]OFD Sender: No OFD packet to send [13:37:57]OFD Sender: No OFD packet to send [13:38:02]OFD Sender: No OFD packet to send [13:38:07]OFD Sender: No OFD packet to send [13:38:12]OFD Sender: No OFD packet to send [13:38:17]OFD Sender: No OFD packet to send [13:38:22]OFD Sender: No OFD packet to send [13:38:27]OFD Sender: No OFD packet to send [13:38:30]accept exits with 8 [13:38:30]New connection [13:38:30]New thread 3066686820 created [13:38:30]Thread 3066543460 joined [13:38:30]Waiting for new connection... [13:38:30] Sock 8.Parse request [13:38:30]Sock 8.Check first char [13:38:30]Sock 8.First char is OK [13:38:30]request: POST /json_proto HTTP/1.0 [13:38:30]Method: POST [13:38:30]URL: /json_proto [13:38:30]Method is POST - this is cgi request [13:38:30]url: /json_proto [13:38:30]query_string will be loaded in cgi processing [13:38:30]execute_cgi json_proto POST (null) [13:38:30]execute_cgi path=json_proto method=POST [13:38:30]POST find Content-Length [13:38:30]Host: 172.17.44.195:8080 [13:38:30]Content-Length: 675 [13:38:30]Content-Type: application/json [13:38:30] [13:38:30]POST finish read [13:38:30]Found Content-Length = 675 [13:38:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963008", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:38:30]execute_script... [13:38: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)1963008", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:38:30]POST & json_proto [13:38:30]process_json_proto [13:38:30]json parsed OK: [13:38:30]protocol is kg_v1.0 [13:38:30]action value=close_receipt [13:38:30]process_action close_receipt [13:38:30]cmd_close_receipt [13:38:30]MH_GetDate [13:38:30]Write to MH i2c: F0 00 00 76 27 8C [13:38:30]Write i2c OK [13:38:30]MH_I2C_Read... [13:38:30]Read from MH i2c: F0 [13:38:30]MH_I2C_Read... [13:38:30]Read from MH i2c: F0 09 00 [13:38:30]MH_I2C_Read... [13:38:30]Read from MH i2c: F0 09 00 76 27 00 D8 07 15 67 82 C9 CF 66 70 [13:38:30]GetLastDocTimeStamp 1729431465 [13:38:30]current date 1729431512 [13:38:30]FM_GetShiftState [13:38:30]SAM_PROTO_GetShiftState [13:38:30]wFMCommunicate request_size=4 [13:38:30]MH_SAM_APDU [13:38:30]CAPDU: 80 13 01 00 [13:38:30]Write to MH i2c: E2 08 00 77 27 80 13 01 00 00 00 00 00 1B [13:38:30]Write i2c OK [13:38:30]MH_I2C_Read... [13:38:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:30]Read from MH i2c: E2 [13:38:30]MH_I2C_Read... [13:38:30]Read from MH i2c: E2 0E 00 [13:38:30]MH_I2C_Read... [13:38:30]Read from MH i2c: E2 0E 00 77 27 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 35 [13:38:30]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:38:30]wFMCommunicate OK [13:38:30]SAM_PROTO_GetShiftState done [13:38:30]FM_GetShiftState done [13:38:30]opened in 1729383750 [13:38:30]opened+sec_in_day 1729470150 [13:38:30]quantity*price = 50063 [13:38:30]sum+1 = 50064 [13:38:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 331 20.10.2024 13:38 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227483 ФПД: 18946543887841 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T133832&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227483&fm=18946543887841&tin=02508201610067®Number=0000000000091685&sum=50000 [13:38:31]StoreToDocumentArchive [13:38:31]shift 533 fd 227483 [13:38:31]save to /storage/0533/doc_00227483 [13:38:32]save last doc name /storage/0533/doc_00227483 to /storage/kkm_last_doc_name [13:38:32]save OK [13:38:32]Clear old archive folders... [13:38:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:38:32]tlvbuf is 01913360 [13:38:32]SAM_PROTO_ClearQueue [13:38:32]wFMCommunicate request_size=4 [13:38:32]MH_SAM_APDU [13:38:32]CAPDU: 80 09 00 00 [13:38:32]Write to MH i2c: E2 08 00 84 27 80 09 00 00 00 00 00 00 1D [13:38:32]Write i2c OK [13:38:32]MH_I2C_Read... [13:38:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:38:32]Read from MH i2c: E2 [13:38:32]MH_I2C_Read... [13:38:32]Read from MH i2c: E2 03 00 [13:38:32]MH_I2C_Read... [13:38:32]Read from MH i2c: E2 03 00 84 27 00 90 00 1F [13:38:32]RAPDU: 90 00 [13:38:32]wFMCommunicate OK [13:38:32]SAM_PROTO_ClearQueue done [13:38:32]KKMCreateOFDPacket [13:38:32]OFDProtocolAddRootSTLVToBuf [13:38:32]FM_MakeSignedData [13:38:32]FM_MakeSignedData [13:38:32]SAM_PROTO_SignData [13:38:32]wFMCommunicate request_size=4 [13:38:32]MH_SAM_APDU [13:38:32]CAPDU: 80 0D 01 02 [13:38:32]Write to MH i2c: E2 08 00 85 27 80 0D 01 02 00 00 00 00 25 [13:38:32]Write i2c OK [13:38:32]MH_I2C_Read... [13:38:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:38:32]Read from MH i2c: E2 [13:38:32]MH_I2C_Read... [13:38:32]Read from MH i2c: E2 03 00 [13:38:32]MH_I2C_Read... [13:38:32]Read from MH i2c: E2 03 00 85 27 00 90 00 20 [13:38:32]RAPDU: 90 00 [13:38:32]wFMCommunicate OK [13:38:32]wFMCommunicate request_size=255 [13:38:32]MH_SAM_APDU [13:38: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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 D8 07 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9B 78 03 00 35 04 06 00 11 3B 56 04 [13:38:32]Write to MH i2c: E2 02 01 86 27 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 D8 07 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9B 78 03 00 35 04 06 00 11 3B 56 04 00 00 B4 [13:38:32]Write i2c OK [13:38:32]MH_I2C_Read... [13:38:32]OFD Sender: No OFD packet to send [13:38:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:32]Read from MH i2c: E2 [13:38:32]MH_I2C_Read... [13:38:32]Read from MH i2c: E2 03 00 [13:38:32]MH_I2C_Read... [13:38:32]Read from MH i2c: E2 03 00 86 27 00 90 00 21 [13:38:32]RAPDU: 90 00 [13:38:32]wFMCommunicate OK [13:38:32]wFMCommunicate request_size=7 [13:38:32]MH_SAM_APDU [13:38:32]CAPDU: 80 0D 02 02 02 A5 E1 [13:38:32]Write to MH i2c: E2 0A 00 87 27 80 0D 02 02 02 00 A5 E1 00 00 B2 [13:38:32]Write i2c OK [13:38:32]MH_I2C_Read... [13:38:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:32]Read from MH i2c: E2 [13:38:32]MH_I2C_Read... [13:38:32]Read from MH i2c: E2 03 00 [13:38:32]MH_I2C_Read... [13:38:32]Read from MH i2c: E2 03 00 87 27 00 90 00 22 [13:38:32]RAPDU: 90 00 [13:38:32]wFMCommunicate OK [13:38:32]wFMCommunicate request_size=4 [13:38:32]MH_SAM_APDU [13:38:32]CAPDU: 80 0D 03 02 [13:38:32]Write to MH i2c: E2 08 00 88 27 80 0D 03 02 00 00 00 00 2A [13:38:32]Write i2c OK [13:38:32]MH_I2C_Read... [13:38:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:38:32]Read from MH i2c: E2 [13:38:32]MH_I2C_Read... [13:38:32]Read from MH i2c: E2 0B 00 [13:38:32]MH_I2C_Read... [13:38:32]Read from MH i2c: E2 0B 00 88 27 00 15 C6 41 34 6A 8B 4C 0A 90 00 C6 [13:38:32]RAPDU: 15 C6 41 34 6A 8B 4C 0A 90 00 [13:38:32]wFMCommunicate OK [13:38:32]SAM_PROTO_SignData done [13:38:32]FM_MakeSignedData done [13:38:32]CreateOFDProtocolMessage [13:38:32]wFMCommunicate request_size=4 [13:38:32]MH_SAM_APDU [13:38:32]CAPDU: 80 11 00 00 [13:38:32]Write to MH i2c: E2 08 00 89 27 80 11 00 00 00 00 00 00 2A [13:38:32]Write i2c OK [13:38:32]MH_I2C_Read... [13:38:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:32]Read from MH i2c: E2 [13:38:32]MH_I2C_Read... [13:38:32]Read from MH i2c: E2 17 00 [13:38:32]MH_I2C_Read... [13:38:32]Read from MH i2c: E2 17 00 89 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 81 [13:38:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:38:32]wFMCommunicate OK [13:38:32]CreateOFDProtocolMessage done [13:38:32]OFDSenderStorePacket 227483 [13:38:32]StoreOFDPacket docnum=227483 [13:38:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 FA 3A 04 01 F2 55 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 D8 07 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9B 78 03 00 35 04 06 00 11 3B 56 04 A5 E1 15 C6 41 34 6A 8B 4C 0A [13:38:32]CheckFolder [13:38:32]dirname=/storage/ofd_packets [13:38:32]CheckFolder done [13:38:32]ProducePacketName [13:38:32]name=ofd_packets/00227483 [13:38:32]NVStorageSaveData ofd_packets/00227483 [13:38:32]File name is /storage/ofd_packets/00227483 [13:38:32]Write 298 bytes [13:38:32]NVStorageSaveData done [13:38:32]OFDSenderStorePacket done [13:38:32]KKMCreateOFDPacket done [13:38:32]NVStorageSaveData kkm_last_timestamp [13:38:32]File name is /storage/kkm_last_timestamp [13:38:32]Write 4 bytes [13:38:32]NVStorageSaveData done [13:38:32]ExternCall_PrintAddStr [13:38:32]wPrintStart [13:38:32]Write to MH i2c: 01 00 00 8A 27 B1 [13:38:32]Write i2c OK [13:38:32]MH_I2C_Read... [13:38:32]Read from MH i2c: 01 [13:38:32]MH_I2C_Read... [13:38:32]Read from MH i2c: 01 07 00 [13:38:32]MH_I2C_Read... [13:38:32]Read from MH i2c: 01 07 00 8A 27 00 00 00 00 00 FF 0F C6 [13:38:32]RasterBufferAndPrint [13:38:32]line Счет N : (1)1963008 [13:38:32]line ИНН: 02508201610067 [13:38:32]line Контрольно-Кассовый Чек [13:38:32]line ПРОДАЖА [13:38:32]line ТРК (МРК, ГНК) : 51 [13:38:32]line Товар: 2710194210 [13:38:32]line ДТ-К-5 [13:38:32]line 6.570 * 76.20 [13:38:32]line = 500.63 [13:38:32]line НДС 12% НСП 1% [13:38:32]line > о реализуемом товаре [13:38:32]line ОКРУГЛЕНИЕ: -0.63 [13:38:32]line ИТОГО: 500.00 [13:38:32]line Внесено: 500.00 [13:38:32]line СДАЧА: 0.00 [13:38:32]line НСП 1% : 4.43 [13:38:32]line НДС 12% : 53.16 [13:38:32]line Наличными: 500.00 [13:38:32]line Безнал.: 0.00 [13:38:32]line Место: АЗС № 133 "Партнер Нефть" [13:38:32]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:38:32]line СНО: Общий режим [13:38:32]line Чек 331 20.10.2024 13:38 [13:38:32]line Смена: 533 ФФД: 1.0 [13:38:32]line ЗНМ: 0300000091 [13:38:32]line РНМ: 0000000000091685 [13:38:32]line Версия ККМ: 001 [13:38:32]line ФМ: 0000000000871839 [13:38:32]line ФД: 227483 [13:38:32]line ФПД: 18946543887841 [13:38:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T133832&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227483&fm=18946543887841&tin=02508201610067®Number=0000000000091685&sum=50000 [13:38:32]OFD Sender: Processing packet 227483 [packets to send 38, broken 37] [13:38:32]ProducePacketName [13:38:32]name=ofd_packets/00227483 [13:38:32]OFD Sender: To server: pG, [13:38:32]CommunicateWithHost lk.salyk.kg:30040 [13:38:32]ConnectInit lk.salyk.kg [13:38:32]written 0, free lines is 4095 [13:38:32]Connected sock=10 [13:38: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 33 39 0C 01 00 00 FA 3A 04 01 F2 55 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 D8 07 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9B 78 03 00 35 04 06 00 11 3B 56 04 A5 E1 15 C6 41 34 6A 8B 4C 0A [13:38: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 33 39 4F 00 00 00 59 28 47 00 CF 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9B 78 03 00 F4 03 04 00 D6 B2 14 67 B6 04 01 00 00 45 CD 07 4D 2F 57 33 E6 [13:38:33]CommunicateWithHost err = 0 [13:38:33]CheckOFDResponse [13:38:33]1017 (14) - 77093643461234 [13:38:33]1041 (16) - 0000000000871839 [13:38:33]1040 (4) - 227483 [13:38:33]1012 (4) - 20.10.2024 07:35 [13:38:33]1206 (1) - 0 [13:38:33]OFD Sender: Remove packet 227483 [13:38:33]ProducePacketName [13:38:33]name=ofd_packets/00227483 [13:38:33]NVStorageDeleteData [13:38:33]Write to MH i2c: 01 00 00 B4 27 DB [13:38:33]Write i2c OK [13:38:33]MH_I2C_Read... [13:38:33]Read from MH i2c: 01 [13:38:33]MH_I2C_Read... [13:38:33]Read from MH i2c: 01 07 00 [13:38:33]MH_I2C_Read... [13:38:33]Read from MH i2c: 01 07 00 B4 27 00 00 00 00 00 00 0D EF [13:38:33]RasterBufferAndPrint [13:38:33]line [13:38:33]line [13:38:33]line [13:38:33]line [13:38:33]line [13:38:33]written 0, free lines is 3334 [13:38:33]process_action close_receipt done [13:38:33]requested_data is exist [13:38:33]produce_requested_data [13:38:33]requested_item fm.sn is exist - process it [13:38:33]wFMCommunicate request_size=4 [13:38:33]MH_SAM_APDU [13:38:33]CAPDU: 80 11 00 00 [13:38:33]Write to MH i2c: E2 08 00 BB 27 80 11 00 00 00 00 00 00 5C [13:38:33]Write i2c OK [13:38:33]MH_I2C_Read... [13:38:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:33]Read from MH i2c: E2 [13:38:33]MH_I2C_Read... [13:38:33]Read from MH i2c: E2 17 00 [13:38:33]MH_I2C_Read... [13:38:33]Read from MH i2c: E2 17 00 BB 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B3 [13:38:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:38:33]wFMCommunicate OK [13:38:33]requested_item fd.num is exist - process it [13:38:33]SAM_PROTO_GetFieldsCounters [13:38:33]wFMCommunicate request_size=4 [13:38:33]MH_SAM_APDU [13:38:33]CAPDU: 80 13 00 00 [13:38:33]Write to MH i2c: E2 08 00 BC 27 80 13 00 00 00 00 00 00 5F [13:38:33]Write i2c OK [13:38:33]MH_I2C_Read... [13:38:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:38:33]Read from MH i2c: E2 [13:38:33]MH_I2C_Read... [13:38:33]Read from MH i2c: E2 62 00 [13:38:33]MH_I2C_Read... [13:38:33]Read from MH i2c: E2 62 00 BC 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 9B 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 4B 01 00 00 5E 04 04 00 4B 01 00 00 57 04 04 00 4C 01 00 00 19 04 04 00 00 00 00 00 90 00 99 [13:38: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 9B 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 4B 01 00 00 5E 04 04 00 4B 01 00 00 57 04 04 00 4C 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:38:33]wFMCommunicate OK [13:38:33]SAM_PROTO_GetFieldsCounters done [13:38:33]requested_item shift.num is exist - process it [13:38:33]requested_item shift.opened is exist - process it [13:38:33]req_shift_opened [13:38:33]FM_GetShiftState [13:38:33]SAM_PROTO_GetShiftState [13:38:33]wFMCommunicate request_size=4 [13:38:33]MH_SAM_APDU [13:38:33]CAPDU: 80 13 01 00 [13:38:33]Write to MH i2c: E2 08 00 BD 27 80 13 01 00 00 00 00 00 61 [13:38:33]Write i2c OK [13:38:33]MH_I2C_Read... [13:38:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:33]Read from MH i2c: E2 [13:38:33]MH_I2C_Read... [13:38:33]Read from MH i2c: E2 0E 00 [13:38:33]MH_I2C_Read... [13:38:33]Read from MH i2c: E2 0E 00 BD 27 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 7B [13:38:33]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:38:33]wFMCommunicate OK [13:38:33]SAM_PROTO_GetShiftState done [13:38:33]FM_GetShiftState done [13:38:33]req_shift_opened done [13:38:33]requested_item shift.open_date is exist - process it [13:38:33]req_shift_open_date [13:38:33]req_shift_open_date done [13:38:33]produce_requested_data done [13:38:33]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227483,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [13:38:33]process_action_free close_receipt [13:38:33]json_value_free [13:38:33]json_value_free done [13:38:33]process_json_proto returns [13:38:33]Send response to host [13:38:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227483,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [13:38:33]free response buf [13:38:33]execute_script done [13:38:33]execute_script returns [13:38:33]free content buf [13:38:33]Sock 8.Close socket [13:38:33]Sock 8.Thread stoped [13:38:33]OFD Sender: No OFD packet to send [13:38:38]OFD Sender: No OFD packet to send [13:38:43]OFD Sender: No OFD packet to send [13:38:48]OFD Sender: No OFD packet to send [13:38:53]OFD Sender: No OFD packet to send [13:38:58]OFD Sender: No OFD packet to send [13:39:03]OFD Sender: No OFD packet to send [13:39:08]OFD Sender: No OFD packet to send [13:39:13]OFD Sender: No OFD packet to send [13:39:18]accept exits with 9 [13:39:18]New connection [13:39:18]New thread 3066543460 created [13:39:18]Thread 3066686820 joined [13:39:18]Waiting for new connection... [13:39:18] Sock 9.Parse request [13:39:18]Sock 9.Check first char [13:39:18]Sock 9.First char is OK [13:39:18]request: POST /json_proto HTTP/1.0 [13:39:18]Method: POST [13:39:18]URL: /json_proto [13:39:18]Method is POST - this is cgi request [13:39:18]url: /json_proto [13:39:18]query_string will be loaded in cgi processing [13:39:18]execute_cgi json_proto POST (null) [13:39:18]execute_cgi path=json_proto method=POST [13:39:18]POST find Content-Length [13:39:18]Host: 172.17.44.195:8080 [13:39:18]Content-Length: 681 [13:39:18]Content-Type: application/json [13:39:18] [13:39:18]POST finish read [13:39:18]Found Content-Length = 681 [13:39:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963004", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 111.550, "sum" : 8500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 8500.00, "total" : 8500.00, "payments": [ { "type": 0, "sum" : 8500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:39:18]execute_script... [13:39: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)1963004", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 111.550, "sum" : 8500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 8500.00, "total" : 8500.00, "payments": [ { "type": 0, "sum" : 8500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:39:18]POST & json_proto [13:39:18]process_json_proto [13:39:18]json parsed OK: [13:39:18]protocol is kg_v1.0 [13:39:18]action value=close_receipt [13:39:18]process_action close_receipt [13:39:18]cmd_close_receipt [13:39:18]MH_GetDate [13:39:18]Write to MH i2c: F0 00 00 BE 27 D4 [13:39:18]Write i2c OK [13:39:18]MH_I2C_Read... [13:39:18]Read from MH i2c: F0 [13:39:18]MH_I2C_Read... [13:39:18]Read from MH i2c: F0 09 00 [13:39:18]MH_I2C_Read... [13:39:18]Read from MH i2c: F0 09 00 BE 27 00 07 08 15 67 82 C9 CF 66 E8 [13:39:18]GetLastDocTimeStamp 1729431512 [13:39:18]current date 1729431559 [13:39:18]FM_GetShiftState [13:39:18]SAM_PROTO_GetShiftState [13:39:18]wFMCommunicate request_size=4 [13:39:18]MH_SAM_APDU [13:39:18]CAPDU: 80 13 01 00 [13:39:18]Write to MH i2c: E2 08 00 BF 27 80 13 01 00 00 00 00 00 63 [13:39:18]Write i2c OK [13:39:18]MH_I2C_Read... [13:39:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:39:18]Read from MH i2c: E2 [13:39:18]MH_I2C_Read... [13:39:18]Read from MH i2c: E2 0E 00 [13:39:18]MH_I2C_Read... [13:39:18]Read from MH i2c: E2 0E 00 BF 27 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 7D [13:39:18]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:39:18]wFMCommunicate OK [13:39:18]SAM_PROTO_GetShiftState done [13:39:18]FM_GetShiftState done [13:39:18]opened in 1729383750 [13:39:18]opened+sec_in_day 1729470150 [13:39:18]quantity*price = 850011 [13:39:18]sum+1 = 850012 [13:39:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 8500.00 Внесено: 8500.00 СДАЧА: 0.00 НСП 1% : 75.22 НДС 12% : 902.67 Наличными: 8500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 332 20.10.2024 13:39 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227484 ФПД: 36202094800502 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T133919&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227484&fm=36202094800502&tin=02508201610067®Number=0000000000091685&sum=850000 [13:39:19]StoreToDocumentArchive [13:39:19]shift 533 fd 227484 [13:39:19]save to /storage/0533/doc_00227484 [13:39:19]save last doc name /storage/0533/doc_00227484 to /storage/kkm_last_doc_name [13:39:19]save OK [13:39:19]Clear old archive folders... [13:39:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:39:19]tlvbuf is 01970A30 [13:39:19]SAM_PROTO_ClearQueue [13:39:19]wFMCommunicate request_size=4 [13:39:19]MH_SAM_APDU [13:39:19]CAPDU: 80 09 00 00 [13:39:19]Write to MH i2c: E2 08 00 CC 27 80 09 00 00 00 00 00 00 65 [13:39:19]Write i2c OK [13:39:19]MH_I2C_Read... [13:39:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:39:19]Read from MH i2c: E2 [13:39:19]MH_I2C_Read... [13:39:19]Read from MH i2c: E2 03 00 [13:39:19]MH_I2C_Read... [13:39:19]Read from MH i2c: E2 03 00 CC 27 00 90 00 67 [13:39:19]RAPDU: 90 00 [13:39:19]wFMCommunicate OK [13:39:19]SAM_PROTO_ClearQueue done [13:39:19]KKMCreateOFDPacket [13:39:19]OFDProtocolAddRootSTLVToBuf [13:39:19]FM_MakeSignedData [13:39:19]FM_MakeSignedData [13:39:19]SAM_PROTO_SignData [13:39:19]wFMCommunicate request_size=4 [13:39:19]MH_SAM_APDU [13:39:19]CAPDU: 80 0D 01 02 [13:39:19]Write to MH i2c: E2 08 00 CD 27 80 0D 01 02 00 00 00 00 6D [13:39:19]Write i2c OK [13:39:19]MH_I2C_Read... [13:39:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:39:19]Read from MH i2c: E2 [13:39:19]MH_I2C_Read... [13:39:19]Read from MH i2c: E2 03 00 [13:39:19]MH_I2C_Read... [13:39:19]Read from MH i2c: E2 03 00 CD 27 00 90 00 68 [13:39:19]RAPDU: 90 00 [13:39:19]wFMCommunicate OK [13:39:19]wFMCommunicate request_size=255 [13:39:19]MH_SAM_APDU [13:39:19]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE B3 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5B F8 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 F8 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 1D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 60 01 00 00 00 07 04 06 00 50 F8 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 07 08 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9C 78 03 00 35 04 06 00 20 EC F5 00 [13:39:19]Write to MH i2c: E2 02 01 CE 27 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE B3 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5B F8 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 F8 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 1D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 60 01 00 00 00 07 04 06 00 50 F8 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 07 08 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9C 78 03 00 35 04 06 00 20 EC F5 00 00 00 AE [13:39:19]Write i2c OK [13:39:19]MH_I2C_Read... [13:39:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:19]Read from MH i2c: E2 [13:39:19]MH_I2C_Read... [13:39:19]Read from MH i2c: E2 03 00 [13:39:19]MH_I2C_Read... [13:39:19]Read from MH i2c: E2 03 00 CE 27 00 90 00 69 [13:39:19]RAPDU: 90 00 [13:39:19]wFMCommunicate OK [13:39:19]wFMCommunicate request_size=7 [13:39:19]MH_SAM_APDU [13:39:19]CAPDU: 80 0D 02 02 02 2E 76 [13:39:19]Write to MH i2c: E2 0A 00 CF 27 80 0D 02 02 02 00 2E 76 00 00 18 [13:39:19]Write i2c OK [13:39:19]MH_I2C_Read... [13:39:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:19]Read from MH i2c: E2 [13:39:19]MH_I2C_Read... [13:39:19]Read from MH i2c: E2 03 00 [13:39:19]MH_I2C_Read... [13:39:19]Read from MH i2c: E2 03 00 CF 27 00 90 00 6A [13:39:19]RAPDU: 90 00 [13:39:19]wFMCommunicate OK [13:39:19]wFMCommunicate request_size=4 [13:39:19]MH_SAM_APDU [13:39:19]CAPDU: 80 0D 03 02 [13:39:19]Write to MH i2c: E2 08 00 D0 27 80 0D 03 02 00 00 00 00 72 [13:39:19]Write i2c OK [13:39:19]MH_I2C_Read... [13:39:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:39:19]Read from MH i2c: E2 [13:39:19]MH_I2C_Read... [13:39:19]Read from MH i2c: E2 0B 00 [13:39:19]MH_I2C_Read... [13:39:19]Read from MH i2c: E2 0B 00 D0 27 00 54 F8 2C 87 8F 34 3C E9 90 00 5A [13:39:19]RAPDU: 54 F8 2C 87 8F 34 3C E9 90 00 [13:39:19]wFMCommunicate OK [13:39:19]SAM_PROTO_SignData done [13:39:19]FM_MakeSignedData done [13:39:19]CreateOFDProtocolMessage [13:39:19]wFMCommunicate request_size=4 [13:39:19]MH_SAM_APDU [13:39:19]CAPDU: 80 11 00 00 [13:39:19]Write to MH i2c: E2 08 00 D1 27 80 11 00 00 00 00 00 00 72 [13:39:19]Write i2c OK [13:39:19]MH_I2C_Read... [13:39:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:39:19]Read from MH i2c: E2 [13:39:19]MH_I2C_Read... [13:39:19]Read from MH i2c: E2 17 00 [13:39:19]MH_I2C_Read... [13:39:19]Read from MH i2c: E2 17 00 D1 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C9 [13:39:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:39:19]wFMCommunicate OK [13:39:19]CreateOFDProtocolMessage done [13:39:19]OFDSenderStorePacket 227484 [13:39:19]StoreOFDPacket docnum=227484 [13:39:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 E0 EC 04 01 0D 48 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 B3 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5B F8 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 F8 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 1D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 60 01 00 00 00 07 04 06 00 50 F8 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 07 08 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9C 78 03 00 35 04 06 00 20 EC F5 00 2E 76 54 F8 2C 87 8F 34 3C E9 [13:39:19]CheckFolder [13:39:19]dirname=/storage/ofd_packets [13:39:19]CheckFolder done [13:39:19]ProducePacketName [13:39:19]name=ofd_packets/00227484 [13:39:19]NVStorageSaveData ofd_packets/00227484 [13:39:19]File name is /storage/ofd_packets/00227484 [13:39:19]Write 298 bytes [13:39:19]NVStorageSaveData done [13:39:19]OFDSenderStorePacket done [13:39:19]KKMCreateOFDPacket done [13:39:19]NVStorageSaveData kkm_last_timestamp [13:39:19]File name is /storage/kkm_last_timestamp [13:39:19]Write 4 bytes [13:39:19]NVStorageSaveData done [13:39:19]ExternCall_PrintAddStr [13:39:19]wPrintStart [13:39:19]Write to MH i2c: 01 00 00 D2 27 F9 [13:39:19]Write i2c OK [13:39:19]MH_I2C_Read... [13:39:19]Read from MH i2c: 01 [13:39:19]MH_I2C_Read... [13:39:19]Read from MH i2c: 01 07 00 [13:39:19]MH_I2C_Read... [13:39:19]Read from MH i2c: 01 07 00 D2 27 00 00 00 00 00 FF 0F 0E [13:39:19]RasterBufferAndPrint [13:39:19]line Счет N : (1)1963004 [13:39:19]line ИНН: 02508201610067 [13:39:19]line Контрольно-Кассовый Чек [13:39:19]line ПРОДАЖА [13:39:19]line ТРК (МРК, ГНК) : 21 [13:39:19]line Товар: 2710194210 [13:39:19]line ДТ-К-5 [13:39:19]line 111.550 * 76.20 [13:39:19]line = 8500.11 [13:39:19]line НДС 12% НСП 1% [13:39:19]line > о реализуемом товаре [13:39:19]line ОКРУГЛЕНИЕ: -0.11 [13:39:19]line ИТОГО: 8500.00 [13:39:19]line Внесено: 8500.00 [13:39:19]line СДАЧА: 0.00 [13:39:19]line НСП 1% : 75.22 [13:39:19]line НДС 12% : 902.67 [13:39:19]line Наличными: 8500.00 [13:39:19]line Безнал.: 0.00 [13:39:19]line Место: АЗС № 133 "Партнер Нефть" [13:39:19]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:39:19]line СНО: Общий режим [13:39:19]line Чек 332 20.10.2024 13:39 [13:39:19]line Смена: 533 ФФД: 1.0 [13:39:19]line ЗНМ: 0300000091 [13:39:19]line РНМ: 0000000000091685 [13:39:19]line Версия ККМ: 001 [13:39:19]line ФМ: 0000000000871839 [13:39:19]line ФД: 227484 [13:39:19]line ФПД: 36202094800502 [13:39:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T133919&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227484&fm=36202094800502&tin=02508201610067®Number=0000000000091685&sum=850000 [13:39:20]OFD Sender: Processing packet 227484 [packets to send 38, broken 37] [13:39:20]ProducePacketName [13:39:20]name=ofd_packets/00227484 [13:39:20]OFD Sender: To server: pG, [13:39:20]CommunicateWithHost lk.salyk.kg:30040 [13:39:20]ConnectInit lk.salyk.kg [13:39:20]written 0, free lines is 4095 [13:39:20]Connected sock=10 [13:39: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 33 39 0C 01 00 00 E0 EC 04 01 0D 48 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 B3 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5B F8 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 F8 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 1D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 60 01 00 00 00 07 04 06 00 50 F8 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 07 08 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9C 78 03 00 35 04 06 00 20 EC F5 00 2E 76 54 F8 2C 87 8F 34 3C E9 [13:39: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 33 39 4F 00 00 00 73 D9 47 00 76 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 33 39 10 04 04 00 9C 78 03 00 F4 03 04 00 06 B3 14 67 B6 04 01 00 00 B9 B6 23 E5 DA 59 57 E8 [13:39:20]CommunicateWithHost err = 0 [13:39:20]CheckOFDResponse [13:39:20]1017 (14) - 77093643461234 [13:39:20]1041 (16) - 0000000000871839 [13:39:20]1040 (4) - 227484 [13:39:20]1012 (4) - 20.10.2024 07:36 [13:39:20]1206 (1) - 0 [13:39:20]OFD Sender: Remove packet 227484 [13:39:20]ProducePacketName [13:39:20]name=ofd_packets/00227484 [13:39:20]NVStorageDeleteData [13:39:20]Write to MH i2c: 01 00 00 FC 27 23 [13:39:20]Write i2c OK [13:39:20]MH_I2C_Read... [13:39:20]Read from MH i2c: 01 [13:39:20]MH_I2C_Read... [13:39:20]Read from MH i2c: 01 07 00 [13:39:20]MH_I2C_Read... [13:39:20]Read from MH i2c: 01 07 00 FC 27 00 00 00 00 00 09 0D 40 [13:39:20]RasterBufferAndPrint [13:39:20]line [13:39:20]line [13:39:20]line [13:39:20]line [13:39:20]line [13:39:20]written 0, free lines is 3343 [13:39:20]process_action close_receipt done [13:39:20]requested_data is exist [13:39:20]produce_requested_data [13:39:20]requested_item fm.sn is exist - process it [13:39:20]wFMCommunicate request_size=4 [13:39:20]MH_SAM_APDU [13:39:20]CAPDU: 80 11 00 00 [13:39:20]Write to MH i2c: E2 08 00 03 28 80 11 00 00 00 00 00 00 A5 [13:39:20]Write i2c OK [13:39:20]MH_I2C_Read... [13:39:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:39:20]Read from MH i2c: E2 [13:39:20]MH_I2C_Read... [13:39:20]Read from MH i2c: E2 17 00 [13:39:20]MH_I2C_Read... [13:39:20]Read from MH i2c: E2 17 00 03 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 FC [13:39:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:39:20]wFMCommunicate OK [13:39:20]requested_item fd.num is exist - process it [13:39:20]SAM_PROTO_GetFieldsCounters [13:39:20]wFMCommunicate request_size=4 [13:39:20]MH_SAM_APDU [13:39:20]CAPDU: 80 13 00 00 [13:39:20]Write to MH i2c: E2 08 00 04 28 80 13 00 00 00 00 00 00 A8 [13:39:20]Write i2c OK [13:39:20]MH_I2C_Read... [13:39:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:39:20]Read from MH i2c: E2 [13:39:20]MH_I2C_Read... [13:39:20]Read from MH i2c: E2 62 00 [13:39:20]MH_I2C_Read... [13:39:20]Read from MH i2c: E2 62 00 04 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 9C 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 4C 01 00 00 5E 04 04 00 4C 01 00 00 57 04 04 00 4D 01 00 00 19 04 04 00 00 00 00 00 90 00 E6 [13:39:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 9C 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 4C 01 00 00 5E 04 04 00 4C 01 00 00 57 04 04 00 4D 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:39:20]wFMCommunicate OK [13:39:20]SAM_PROTO_GetFieldsCounters done [13:39:20]requested_item shift.num is exist - process it [13:39:20]requested_item shift.opened is exist - process it [13:39:20]req_shift_opened [13:39:20]FM_GetShiftState [13:39:20]SAM_PROTO_GetShiftState [13:39:20]wFMCommunicate request_size=4 [13:39:20]MH_SAM_APDU [13:39:20]CAPDU: 80 13 01 00 [13:39:20]Write to MH i2c: E2 08 00 05 28 80 13 01 00 00 00 00 00 AA [13:39:20]Write i2c OK [13:39:20]MH_I2C_Read... [13:39:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:39:21]Read from MH i2c: E2 [13:39:21]MH_I2C_Read... [13:39:21]Read from MH i2c: E2 0E 00 [13:39:21]MH_I2C_Read... [13:39:21]Read from MH i2c: E2 0E 00 05 28 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 C4 [13:39:21]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:39:21]wFMCommunicate OK [13:39:21]SAM_PROTO_GetShiftState done [13:39:21]FM_GetShiftState done [13:39:21]req_shift_opened done [13:39:21]requested_item shift.open_date is exist - process it [13:39:21]req_shift_open_date [13:39:21]req_shift_open_date done [13:39:21]produce_requested_data done [13:39:21]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227484,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [13:39:21]process_action_free close_receipt [13:39:21]json_value_free [13:39:21]json_value_free done [13:39:21]process_json_proto returns [13:39:21]Send response to host [13:39:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227484,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [13:39:21]free response buf [13:39:21]execute_script done [13:39:21]execute_script returns [13:39:21]free content buf [13:39:21]Sock 9.Close socket [13:39:21]Sock 9.Thread stoped [13:39:21]OFD Sender: No OFD packet to send [13:39:26]OFD Sender: No OFD packet to send [13:39:26]accept exits with 8 [13:39:26]New connection [13:39:26]New thread 3066686820 created [13:39:26]Thread 3066543460 joined [13:39:26]Waiting for new connection... [13:39:26] Sock 8.Parse request [13:39:26]Sock 8.Check first char [13:39:26]Sock 8.First char is OK [13:39:26]request: POST /json_proto HTTP/1.0 [13:39:26]Method: POST [13:39:26]URL: /json_proto [13:39:26]Method is POST - this is cgi request [13:39:26]url: /json_proto [13:39:26]query_string will be loaded in cgi processing [13:39:26]execute_cgi json_proto POST (null) [13:39:26]execute_cgi path=json_proto method=POST [13:39:26]POST find Content-Length [13:39:26]Host: 172.17.44.195:8080 [13:39:26]Content-Length: 678 [13:39:26]Content-Type: application/json [13:39:26] [13:39:26]POST finish read [13:39:26]Found Content-Length = 678 [13:39:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963009", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:39:26]execute_script... [13:39: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)1963009", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:39:26]POST & json_proto [13:39:26]process_json_proto [13:39:26]json parsed OK: [13:39:26]protocol is kg_v1.0 [13:39:26]action value=close_receipt [13:39:26]process_action close_receipt [13:39:26]cmd_close_receipt [13:39:26]MH_GetDate [13:39:26]Write to MH i2c: F0 00 00 06 28 1D [13:39:26]Write i2c OK [13:39:26]MH_I2C_Read... [13:39:26]Read from MH i2c: F0 [13:39:26]MH_I2C_Read... [13:39:26]Read from MH i2c: F0 09 00 [13:39:26]MH_I2C_Read... [13:39:26]Read from MH i2c: F0 09 00 06 28 00 10 08 15 67 82 C9 CF 66 3A [13:39:26]GetLastDocTimeStamp 1729431559 [13:39:26]current date 1729431568 [13:39:26]FM_GetShiftState [13:39:26]SAM_PROTO_GetShiftState [13:39:26]wFMCommunicate request_size=4 [13:39:26]MH_SAM_APDU [13:39:26]CAPDU: 80 13 01 00 [13:39:26]Write to MH i2c: E2 08 00 07 28 80 13 01 00 00 00 00 00 AC [13:39:26]Write i2c OK [13:39:26]MH_I2C_Read... [13:39:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:39:26]Read from MH i2c: E2 [13:39:26]MH_I2C_Read... [13:39:26]Read from MH i2c: E2 0E 00 [13:39:26]MH_I2C_Read... [13:39:26]Read from MH i2c: E2 0E 00 07 28 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 C6 [13:39:26]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:39:26]wFMCommunicate OK [13:39:26]SAM_PROTO_GetShiftState done [13:39:26]FM_GetShiftState done [13:39:26]opened in 1729383750 [13:39:26]opened+sec_in_day 1729470150 [13:39:26]quantity*price = 50041 [13:39:26]sum+1 = 50042 [13:39:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 333 20.10.2024 13:39 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227485 ФПД: 137368993927546 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T133928&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227485&fm=137368993927546&tin=02508201610067®Number=0000000000091685&sum=50000 [13:39:28]StoreToDocumentArchive [13:39:28]shift 533 fd 227485 [13:39:28]save to /storage/0533/doc_00227485 [13:39:28]save last doc name /storage/0533/doc_00227485 to /storage/kkm_last_doc_name [13:39:28]save OK [13:39:28]Clear old archive folders... [13:39:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:39:28]tlvbuf is B6D67700 [13:39:28]SAM_PROTO_ClearQueue [13:39:28]wFMCommunicate request_size=4 [13:39:28]MH_SAM_APDU [13:39:28]CAPDU: 80 09 00 00 [13:39:28]Write to MH i2c: E2 08 00 14 28 80 09 00 00 00 00 00 00 AE [13:39:28]Write i2c OK [13:39:28]MH_I2C_Read... [13:39:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:39:28]Read from MH i2c: E2 [13:39:28]MH_I2C_Read... [13:39:28]Read from MH i2c: E2 03 00 [13:39:28]MH_I2C_Read... [13:39:28]Read from MH i2c: E2 03 00 14 28 00 90 00 B0 [13:39:28]RAPDU: 90 00 [13:39:28]wFMCommunicate OK [13:39:28]SAM_PROTO_ClearQueue done [13:39:28]KKMCreateOFDPacket [13:39:28]OFDProtocolAddRootSTLVToBuf [13:39:28]FM_MakeSignedData [13:39:28]FM_MakeSignedData [13:39:28]SAM_PROTO_SignData [13:39:28]wFMCommunicate request_size=4 [13:39:28]MH_SAM_APDU [13:39:28]CAPDU: 80 0D 01 02 [13:39:28]Write to MH i2c: E2 08 00 15 28 80 0D 01 02 00 00 00 00 B6 [13:39:28]Write i2c OK [13:39:28]MH_I2C_Read... [13:39:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:39:28]Read from MH i2c: E2 [13:39:28]MH_I2C_Read... [13:39:28]Read from MH i2c: E2 03 00 [13:39:28]MH_I2C_Read... [13:39:28]Read from MH i2c: E2 03 00 15 28 00 90 00 B1 [13:39:28]RAPDU: 90 00 [13:39:28]wFMCommunicate OK [13:39:28]wFMCommunicate request_size=255 [13:39:28]MH_SAM_APDU [13:39:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 10 08 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9D 78 03 00 35 04 06 00 7C [13:39:28]Write to MH i2c: E2 02 01 16 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 10 08 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9D 78 03 00 35 04 06 00 7C 00 00 DA [13:39:28]Write i2c OK [13:39:28]MH_I2C_Read... [13:39:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:28]Read from MH i2c: E2 [13:39:28]MH_I2C_Read... [13:39:28]Read from MH i2c: E2 03 00 [13:39:28]MH_I2C_Read... [13:39:28]Read from MH i2c: E2 03 00 16 28 00 90 00 B2 [13:39:28]RAPDU: 90 00 [13:39:28]wFMCommunicate OK [13:39:28]wFMCommunicate request_size=10 [13:39:28]MH_SAM_APDU [13:39:28]CAPDU: 80 0D 02 02 05 EF B6 16 11 7A [13:39:28]Write to MH i2c: E2 0D 00 17 28 80 0D 02 02 05 00 EF B6 16 11 7A 00 00 09 [13:39:28]Write i2c OK [13:39:28]MH_I2C_Read... [13:39:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:28]Read from MH i2c: E2 [13:39:28]MH_I2C_Read... [13:39:28]Read from MH i2c: E2 03 00 [13:39:28]MH_I2C_Read... [13:39:28]Read from MH i2c: E2 03 00 17 28 00 90 00 B3 [13:39:28]RAPDU: 90 00 [13:39:28]wFMCommunicate OK [13:39:28]wFMCommunicate request_size=4 [13:39:28]MH_SAM_APDU [13:39:28]CAPDU: 80 0D 03 02 [13:39:28]Write to MH i2c: E2 08 00 18 28 80 0D 03 02 00 00 00 00 BB [13:39:28]Write i2c OK [13:39:28]MH_I2C_Read... [13:39:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:39:28]Read from MH i2c: E2 [13:39:28]MH_I2C_Read... [13:39:28]Read from MH i2c: E2 0B 00 [13:39:28]MH_I2C_Read... [13:39:28]Read from MH i2c: E2 0B 00 18 28 00 5A 88 C3 82 B3 B6 5B 94 90 00 3B [13:39:28]RAPDU: 5A 88 C3 82 B3 B6 5B 94 90 00 [13:39:28]wFMCommunicate OK [13:39:28]SAM_PROTO_SignData done [13:39:28]FM_MakeSignedData done [13:39:28]CreateOFDProtocolMessage [13:39:28]wFMCommunicate request_size=4 [13:39:28]MH_SAM_APDU [13:39:28]CAPDU: 80 11 00 00 [13:39:28]Write to MH i2c: E2 08 00 19 28 80 11 00 00 00 00 00 00 BB [13:39:28]Write i2c OK [13:39:28]MH_I2C_Read... [13:39:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:39:28]Read from MH i2c: E2 [13:39:28]MH_I2C_Read... [13:39:28]Read from MH i2c: E2 17 00 [13:39:28]MH_I2C_Read... [13:39:28]Read from MH i2c: E2 17 00 19 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 12 [13:39:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:39:28]wFMCommunicate OK [13:39:28]CreateOFDProtocolMessage done [13:39:28]OFDSenderStorePacket 227485 [13:39:28]StoreOFDPacket docnum=227485 [13:39:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 FE 0D 07 01 48 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 10 08 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9D 78 03 00 35 04 06 00 7C EF B6 16 11 7A 5A 88 C3 82 B3 B6 5B 94 [13:39:28]CheckFolder [13:39:28]dirname=/storage/ofd_packets [13:39:28]CheckFolder done [13:39:28]ProducePacketName [13:39:28]name=ofd_packets/00227485 [13:39:28]NVStorageSaveData ofd_packets/00227485 [13:39:28]File name is /storage/ofd_packets/00227485 [13:39:28]Write 301 bytes [13:39:28]NVStorageSaveData done [13:39:28]OFDSenderStorePacket done [13:39:28]KKMCreateOFDPacket done [13:39:28]NVStorageSaveData kkm_last_timestamp [13:39:28]File name is /storage/kkm_last_timestamp [13:39:28]Write 4 bytes [13:39:28]NVStorageSaveData done [13:39:28]ExternCall_PrintAddStr [13:39:28]wPrintStart [13:39:28]Write to MH i2c: 01 00 00 1A 28 42 [13:39:28]Write i2c OK [13:39:28]MH_I2C_Read... [13:39:28]Read from MH i2c: 01 [13:39:28]MH_I2C_Read... [13:39:28]Read from MH i2c: 01 07 00 [13:39:28]MH_I2C_Read... [13:39:28]Read from MH i2c: 01 07 00 1A 28 00 00 00 00 00 FF 0F 57 [13:39:28]RasterBufferAndPrint [13:39:28]line Счет N : (1)1963009 [13:39:28]line ИНН: 02508201610067 [13:39:28]line Контрольно-Кассовый Чек [13:39:28]line ПРОДАЖА [13:39:28]line ТРК (МРК, ГНК) : 33 [13:39:28]line Товар: 2710124130 [13:39:28]line Аи-92-К-5 [13:39:28]line 7.480 * 66.90 [13:39:28]line = 500.41 [13:39:28]line НДС 12% НСП 1% [13:39:28]line > о реализуемом товаре [13:39:28]line ОКРУГЛЕНИЕ: -0.41 [13:39:28]line ИТОГО: 500.00 [13:39:28]line Внесено: 500.00 [13:39:28]line СДАЧА: 0.00 [13:39:28]line НСП 1% : 4.43 [13:39:28]line НДС 12% : 53.14 [13:39:28]line Наличными: 500.00 [13:39:28]line Безнал.: 0.00 [13:39:28]line Место: АЗС № 133 "Партнер Нефть" [13:39:28]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:39:28]line СНО: Общий режим [13:39:28]line Чек 333 20.10.2024 13:39 [13:39:28]line Смена: 533 ФФД: 1.0 [13:39:28]line ЗНМ: 0300000091 [13:39:28]line РНМ: 0000000000091685 [13:39:28]line Версия ККМ: 001 [13:39:28]line ФМ: 0000000000871839 [13:39:28]line ФД: 227485 [13:39:28]line ФПД: 137368993927546 [13:39:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T133928&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227485&fm=137368993927546&tin=02508201610067®Number=0000000000091685&sum=50000 [13:39:28]written 0, free lines is 4095 [13:39:28]OFD Sender: Processing packet 227485 [packets to send 38, broken 37] [13:39:28]ProducePacketName [13:39:28]name=ofd_packets/00227485 [13:39:28]OFD Sender: To server: pG, [13:39:28]CommunicateWithHost lk.salyk.kg:30040 [13:39:28]ConnectInit lk.salyk.kg [13:39:28]Connected sock=10 [13: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 33 39 0F 01 00 00 FE 0D 07 01 48 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 10 08 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9D 78 03 00 35 04 06 00 7C EF B6 16 11 7A 5A 88 C3 82 B3 B6 5B 94 [13: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 33 39 4F 00 00 00 EB 12 47 00 A6 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9D 78 03 00 F4 03 04 00 0E B3 14 67 B6 04 01 00 00 6B 6C 79 65 60 E1 1E E9 [13:39:29]CommunicateWithHost err = 0 [13:39:29]CheckOFDResponse [13:39:29]1017 (14) - 77093643461234 [13:39:29]1041 (16) - 0000000000871839 [13:39:29]1040 (4) - 227485 [13:39:29]1012 (4) - 20.10.2024 07:36 [13:39:29]1206 (1) - 0 [13:39:29]OFD Sender: Remove packet 227485 [13:39:29]ProducePacketName [13:39:29]name=ofd_packets/00227485 [13:39:29]NVStorageDeleteData [13:39:29]Write to MH i2c: 01 00 00 44 28 6C [13:39:29]Write i2c OK [13:39:29]MH_I2C_Read... [13:39:29]Read from MH i2c: 01 [13:39:29]MH_I2C_Read... [13:39:29]Read from MH i2c: 01 07 00 [13:39:29]MH_I2C_Read... [13:39:29]Read from MH i2c: 01 07 00 44 28 00 00 00 00 00 05 0D 85 [13:39:29]RasterBufferAndPrint [13:39:29]line [13:39:29]line [13:39:29]line [13:39:29]line [13:39:29]line [13:39:29]written 0, free lines is 3342 [13:39:29]process_action close_receipt done [13:39:29]requested_data is exist [13:39:29]produce_requested_data [13:39:29]requested_item fm.sn is exist - process it [13:39:29]wFMCommunicate request_size=4 [13:39:29]MH_SAM_APDU [13:39:29]CAPDU: 80 11 00 00 [13:39:29]Write to MH i2c: E2 08 00 4B 28 80 11 00 00 00 00 00 00 ED [13:39:29]Write i2c OK [13:39:29]MH_I2C_Read... [13:39:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:39:29]Read from MH i2c: E2 [13:39:29]MH_I2C_Read... [13:39:29]Read from MH i2c: E2 17 00 [13:39:29]MH_I2C_Read... [13:39:29]Read from MH i2c: E2 17 00 4B 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 44 [13:39:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:39:29]wFMCommunicate OK [13:39:29]requested_item fd.num is exist - process it [13:39:29]SAM_PROTO_GetFieldsCounters [13:39:29]wFMCommunicate request_size=4 [13:39:29]MH_SAM_APDU [13:39:29]CAPDU: 80 13 00 00 [13:39:29]Write to MH i2c: E2 08 00 4C 28 80 13 00 00 00 00 00 00 F0 [13:39:29]Write i2c OK [13:39:29]MH_I2C_Read... [13:39:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:39:29]Read from MH i2c: E2 [13:39:29]MH_I2C_Read... [13:39:29]Read from MH i2c: E2 62 00 [13:39:29]MH_I2C_Read... [13:39:29]Read from MH i2c: E2 62 00 4C 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 9D 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 4D 01 00 00 5E 04 04 00 4D 01 00 00 57 04 04 00 4E 01 00 00 19 04 04 00 00 00 00 00 90 00 32 [13:39: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 9D 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 4D 01 00 00 5E 04 04 00 4D 01 00 00 57 04 04 00 4E 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:39:29]wFMCommunicate OK [13:39:29]SAM_PROTO_GetFieldsCounters done [13:39:29]requested_item shift.num is exist - process it [13:39:29]requested_item shift.opened is exist - process it [13:39:29]req_shift_opened [13:39:29]FM_GetShiftState [13:39:29]SAM_PROTO_GetShiftState [13:39:29]wFMCommunicate request_size=4 [13:39:29]MH_SAM_APDU [13:39:29]CAPDU: 80 13 01 00 [13:39:29]Write to MH i2c: E2 08 00 4D 28 80 13 01 00 00 00 00 00 F2 [13:39:29]Write i2c OK [13:39:29]MH_I2C_Read... [13:39:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:39:29]Read from MH i2c: E2 [13:39:29]MH_I2C_Read... [13:39:29]Read from MH i2c: E2 0E 00 [13:39:29]MH_I2C_Read... [13:39:29]Read from MH i2c: E2 0E 00 4D 28 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 0C [13:39:29]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:39:29]wFMCommunicate OK [13:39:29]SAM_PROTO_GetShiftState done [13:39:29]FM_GetShiftState done [13:39:29]req_shift_opened done [13:39:29]requested_item shift.open_date is exist - process it [13:39:29]req_shift_open_date [13:39:29]req_shift_open_date done [13:39:29]produce_requested_data done [13:39:29]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227485,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [13:39:29]process_action_free close_receipt [13:39:29]json_value_free [13:39:29]json_value_free done [13:39:29]process_json_proto returns [13:39:29]Send response to host [13:39:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227485,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [13:39:29]free response buf [13:39:29]execute_script done [13:39:29]execute_script returns [13:39:29]free content buf [13:39:29]Sock 8.Close socket [13:39:29]Sock 8.Thread stoped [13:39:29]OFD Sender: No OFD packet to send [13:39:34]OFD Sender: No OFD packet to send [13:39:39]OFD Sender: No OFD packet to send [13:39:44]OFD Sender: No OFD packet to send [13:39:49]OFD Sender: No OFD packet to send [13:39:54]OFD Sender: No OFD packet to send [13:39:59]OFD Sender: No OFD packet to send [13:40:04]OFD Sender: No OFD packet to send [13:40:09]OFD Sender: No OFD packet to send [13:40:14]OFD Sender: No OFD packet to send [13:40:19]OFD Sender: No OFD packet to send [13:40:24]OFD Sender: No OFD packet to send [13:40:29]OFD Sender: No OFD packet to send [13:40:34]OFD Sender: No OFD packet to send [13:40:39]OFD Sender: No OFD packet to send [13:40:44]OFD Sender: No OFD packet to send [13:40:49]OFD Sender: No OFD packet to send [13:40:54]OFD Sender: No OFD packet to send [13:40:59]OFD Sender: No OFD packet to send [13:41:04]OFD Sender: No OFD packet to send [13:41:09]OFD Sender: No OFD packet to send [13:41:12]accept exits with 9 [13:41:12]New connection [13:41:12]New thread 3066543460 created [13:41:12]Thread 3066686820 joined [13:41:12]Waiting for new connection... [13:41:12] Sock 9.Parse request [13:41:12]Sock 9.Check first char [13:41:12]Sock 9.First char is OK [13:41:12]request: POST /json_proto HTTP/1.0 [13:41:12]Method: POST [13:41:12]URL: /json_proto [13:41:12]Method is POST - this is cgi request [13:41:12]url: /json_proto [13:41:12]query_string will be loaded in cgi processing [13:41:12]execute_cgi json_proto POST (null) [13:41:12]execute_cgi path=json_proto method=POST [13:41:12]POST find Content-Length [13:41:12]Host: 172.17.44.195:8080 [13:41:12]Content-Length: 767 [13:41:12]Content-Type: application/json [13:41:12] [13:41:12]POST finish read [13:41:12]Found Content-Length = 767 [13:41:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963006", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 98.430, "sum" : 7500.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 7500.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:12]execute_script... [13:41:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963006", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 98.430, "sum" : 7500.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 7500.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:12]POST & json_proto [13:41:12]process_json_proto [13:41:12]json parsed OK: [13:41:12]protocol is kg_v1.0 [13:41:12]action value=close_receipt [13:41:12]process_action close_receipt [13:41:12]cmd_close_receipt [13:41:12]MH_GetDate [13:41:12]Write to MH i2c: F0 00 00 4E 28 65 [13:41:12]Write i2c OK [13:41:12]MH_I2C_Read... [13:41:12]Read from MH i2c: F0 [13:41:12]MH_I2C_Read... [13:41:12]Read from MH i2c: F0 09 00 [13:41:12]MH_I2C_Read... [13:41:12]Read from MH i2c: F0 09 00 4E 28 00 7A 08 15 67 82 C9 CF 66 EC [13:41:12]GetLastDocTimeStamp 1729431568 [13:41:12]current date 1729431674 [13:41:12]FM_GetShiftState [13:41:12]SAM_PROTO_GetShiftState [13:41:12]wFMCommunicate request_size=4 [13:41:12]MH_SAM_APDU [13:41:12]CAPDU: 80 13 01 00 [13:41:12]Write to MH i2c: E2 08 00 4F 28 80 13 01 00 00 00 00 00 F4 [13:41:12]Write i2c OK [13:41:12]MH_I2C_Read... [13:41:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:12]Read from MH i2c: E2 [13:41:12]MH_I2C_Read... [13:41:12]Read from MH i2c: E2 0E 00 [13:41:12]MH_I2C_Read... [13:41:12]Read from MH i2c: E2 0E 00 4F 28 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 0E [13:41:12]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:41:12]wFMCommunicate OK [13:41:12]SAM_PROTO_GetShiftState done [13:41:12]FM_GetShiftState done [13:41:12]opened in 1729383750 [13:41:12]opened+sec_in_day 1729470150 [13:41:12]quantity*price = 750036 [13:41:12]sum+1 = 750038 [13:41:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 7500.37 НСП 1% : 66.37 НДС 12% : 796.50 Наличными: 0.00 Безнал.: 7500.37 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 334 20.10.2024 13:41 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 227486 ФПД: 33007906482028 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T134114&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227486&fm=33007906482028&tin=02508201610067®Number=0000000000091685&sum=750037 [13:41:14]StoreToDocumentArchive [13:41:14]shift 533 fd 227486 [13:41:14]save to /storage/0533/doc_00227486 [13:41:14]save last doc name /storage/0533/doc_00227486 to /storage/kkm_last_doc_name [13:41:14]save OK [13:41:14]Clear old archive folders... [13:41:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:41:14]tlvbuf is B6D67070 [13:41:14]SAM_PROTO_ClearQueue [13:41:14]wFMCommunicate request_size=4 [13:41:14]MH_SAM_APDU [13:41:14]CAPDU: 80 09 00 00 [13:41:14]Write to MH i2c: E2 08 00 5C 28 80 09 00 00 00 00 00 00 F6 [13:41:14]Write i2c OK [13:41:14]MH_I2C_Read... [13:41:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:41:14]Read from MH i2c: E2 [13:41:14]MH_I2C_Read... [13:41:14]Read from MH i2c: E2 03 00 [13:41:14]MH_I2C_Read... [13:41:14]Read from MH i2c: E2 03 00 5C 28 00 90 00 F8 [13:41:14]RAPDU: 90 00 [13:41:14]wFMCommunicate OK [13:41:14]SAM_PROTO_ClearQueue done [13:41:14]KKMCreateOFDPacket [13:41:14]OFDProtocolAddRootSTLVToBuf [13:41:14]FM_MakeSignedData [13:41:14]FM_MakeSignedData [13:41:14]SAM_PROTO_SignData [13:41:14]wFMCommunicate request_size=4 [13:41:14]MH_SAM_APDU [13:41:14]CAPDU: 80 0D 01 02 [13:41:14]Write to MH i2c: E2 08 00 5D 28 80 0D 01 02 00 00 00 00 FE [13:41:14]Write i2c OK [13:41:14]MH_I2C_Read... [13:41:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:41:14]Read from MH i2c: E2 [13:41:14]MH_I2C_Read... [13:41:14]Read from MH i2c: E2 03 00 [13:41:14]MH_I2C_Read... [13:41:14]Read from MH i2c: E2 03 00 5D 28 00 90 00 F9 [13:41:14]RAPDU: 90 00 [13:41:14]wFMCommunicate OK [13:41:14]wFMCommunicate request_size=255 [13:41:14]MH_SAM_APDU [13:41: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 7E 80 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D5 71 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D5 71 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 37 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D5 71 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 7A 08 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9E 78 03 00 35 04 06 00 1E 05 40 8A [13:41:14]Write to MH i2c: E2 02 01 5E 28 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 80 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D5 71 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D5 71 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 37 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D5 71 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 7A 08 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9E 78 03 00 35 04 06 00 1E 05 40 8A 00 00 00 [13:41:14]Write i2c OK [13:41:14]MH_I2C_Read... [13:41:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:14]Read from MH i2c: E2 [13:41:14]MH_I2C_Read... [13:41:14]Read from MH i2c: E2 03 00 [13:41:14]MH_I2C_Read... [13:41:14]Read from MH i2c: E2 03 00 5E 28 00 90 00 FA [13:41:14]RAPDU: 90 00 [13:41:14]wFMCommunicate OK [13:41:14]wFMCommunicate request_size=7 [13:41:14]MH_SAM_APDU [13:41:14]CAPDU: 80 0D 02 02 02 67 6C [13:41:14]Write to MH i2c: E2 0A 00 5F 28 80 0D 02 02 02 00 67 6C 00 00 D8 [13:41:14]Write i2c OK [13:41:14]MH_I2C_Read... [13:41:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:14]Read from MH i2c: E2 [13:41:14]MH_I2C_Read... [13:41:14]Read from MH i2c: E2 03 00 [13:41:14]MH_I2C_Read... [13:41:14]Read from MH i2c: E2 03 00 5F 28 00 90 00 FB [13:41:14]RAPDU: 90 00 [13:41:14]wFMCommunicate OK [13:41:14]wFMCommunicate request_size=4 [13:41:14]MH_SAM_APDU [13:41:14]CAPDU: 80 0D 03 02 [13:41:14]Write to MH i2c: E2 08 00 60 28 80 0D 03 02 00 00 00 00 03 [13:41:14]Write i2c OK [13:41:14]MH_I2C_Read... [13:41:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:41:14]Read from MH i2c: E2 [13:41:14]MH_I2C_Read... [13:41:14]Read from MH i2c: E2 0B 00 [13:41:14]MH_I2C_Read... [13:41:14]Read from MH i2c: E2 0B 00 60 28 00 2C 0E 77 94 69 C3 BB 17 90 00 47 [13:41:14]RAPDU: 2C 0E 77 94 69 C3 BB 17 90 00 [13:41:14]wFMCommunicate OK [13:41:14]SAM_PROTO_SignData done [13:41:14]FM_MakeSignedData done [13:41:14]CreateOFDProtocolMessage [13:41:14]wFMCommunicate request_size=4 [13:41:14]MH_SAM_APDU [13:41:14]CAPDU: 80 11 00 00 [13:41:14]Write to MH i2c: E2 08 00 61 28 80 11 00 00 00 00 00 00 03 [13:41:14]Write i2c OK [13:41:14]MH_I2C_Read... [13:41:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:14]Read from MH i2c: E2 [13:41:14]MH_I2C_Read... [13:41:14]Read from MH i2c: E2 17 00 [13:41:14]MH_I2C_Read... [13:41:14]Read from MH i2c: E2 17 00 61 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 5A [13:41:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:41:14]wFMCommunicate OK [13:41:14]CreateOFDProtocolMessage done [13:41:14]OFDSenderStorePacket 227486 [13:41:14]StoreOFDPacket docnum=227486 [13:41:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 91 37 04 01 91 E5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 80 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D5 71 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D5 71 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 37 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D5 71 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 7A 08 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9E 78 03 00 35 04 06 00 1E 05 40 8A 67 6C 2C 0E 77 94 69 C3 BB 17 [13:41:14]CheckFolder [13:41:14]dirname=/storage/ofd_packets [13:41:14]CheckFolder done [13:41:14]ProducePacketName [13:41:14]name=ofd_packets/00227486 [13:41:14]NVStorageSaveData ofd_packets/00227486 [13:41:14]File name is /storage/ofd_packets/00227486 [13:41:14]Write 298 bytes [13:41:14]NVStorageSaveData done [13:41:14]OFDSenderStorePacket done [13:41:14]KKMCreateOFDPacket done [13:41:14]NVStorageSaveData kkm_last_timestamp [13:41:14]File name is /storage/kkm_last_timestamp [13:41:14]Write 4 bytes [13:41:14]NVStorageSaveData done [13:41:14]ExternCall_PrintAddStr [13:41:14]wPrintStart [13:41:14]Write to MH i2c: 01 00 00 62 28 8A [13:41:14]Write i2c OK [13:41:14]MH_I2C_Read... [13:41:14]Read from MH i2c: 01 [13:41:14]MH_I2C_Read... [13:41:14]Read from MH i2c: 01 07 00 [13:41:14]MH_I2C_Read... [13:41:14]Read from MH i2c: 01 07 00 62 28 00 00 00 00 00 FF 0F 9F [13:41:14]RasterBufferAndPrint [13:41:14]line Счет N : (1)1963006 [13:41:14]line ИНН: 02508201610067 [13:41:14]line Контрольно-Кассовый Чек [13:41:14]line ПРОДАЖА [13:41:14]line ТРК (МРК, ГНК) : 11 [13:41:14]line Товар: 2710194210 [13:41:14]line ДТ-К-5 [13:41:14]line 98.430 * 76.20 [13:41:14]line = 7500.37 [13:41:14]line НДС 12% НСП 1% [13:41:14]line > о реализуемом товаре [13:41:14]line ИТОГО: 7500.37 [13:41:14]line НСП 1% : 66.37 [13:41:14]line НДС 12% : 796.50 [13:41:14]line Наличными: 0.00 [13:41:14]line Безнал.: 7500.37 [13:41:14]line Место: АЗС № 133 "Партнер Нефть" [13:41:14]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:41:14]line СНО: Общий режим [13:41:14]line Чек 334 20.10.2024 13:41 [13:41:14]line Смена: 533 ФФД: 1.0 [13:41:14]line ЗНМ: 0300000091 [13:41:14]line РНМ: 0000000000091685 [13:41:14]line Версия ККМ: 001 [13:41:14]line Платежная система: Mbank [13:41:14]line ФМ: 0000000000871839 [13:41:14]line ФД: 227486 [13:41:14]line ФПД: 33007906482028 [13:41:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T134114&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227486&fm=33007906482028&tin=02508201610067®Number=0000000000091685&sum=750037 [13:41:14]OFD Sender: Processing packet 227486 [packets to send 38, broken 37] [13:41:14]ProducePacketName [13:41:14]name=ofd_packets/00227486 [13:41:14]OFD Sender: To server: pG, [13:41:14]CommunicateWithHost lk.salyk.kg:30040 [13:41:14]ConnectInit lk.salyk.kg [13:41:14]written 0, free lines is 4095 [13:41:15]Connected sock=10 [13:41: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 33 39 0C 01 00 00 91 37 04 01 91 E5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 80 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D5 71 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D5 71 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 37 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D5 71 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 7A 08 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9E 78 03 00 35 04 06 00 1E 05 40 8A 67 6C 2C 0E 77 94 69 C3 BB 17 [13:41: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 33 39 4F 00 00 00 2A 54 47 00 80 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9E 78 03 00 F4 03 04 00 79 B3 14 67 B6 04 01 00 00 77 DB DB E1 F3 E2 E3 BC [13:41:15]CommunicateWithHost err = 0 [13:41:15]CheckOFDResponse [13:41:15]1017 (14) - 77093643461234 [13:41:15]1041 (16) - 0000000000871839 [13:41:15]1040 (4) - 227486 [13:41:15]1012 (4) - 20.10.2024 07:38 [13:41:15]1206 (1) - 0 [13:41:15]OFD Sender: Remove packet 227486 [13:41:15]ProducePacketName [13:41:15]name=ofd_packets/00227486 [13:41:15]NVStorageDeleteData [13:41:15]Write to MH i2c: 01 00 00 8A 28 B2 [13:41:15]Write i2c OK [13:41:15]MH_I2C_Read... [13:41:15]Read from MH i2c: 01 [13:41:15]MH_I2C_Read... [13:41:15]Read from MH i2c: 01 07 00 [13:41:15]MH_I2C_Read... [13:41:15]Read from MH i2c: 01 07 00 8A 28 00 00 00 00 00 29 0D EF [13:41:15]RasterBufferAndPrint [13:41:15]line [13:41:15]line [13:41:15]line [13:41:15]line [13:41:15]line [13:41:15]written 0, free lines is 3375 [13:41:15]process_action close_receipt done [13:41:15]requested_data is exist [13:41:15]produce_requested_data [13:41:15]requested_item fm.sn is exist - process it [13:41:15]wFMCommunicate request_size=4 [13:41:15]MH_SAM_APDU [13:41:15]CAPDU: 80 11 00 00 [13:41:15]Write to MH i2c: E2 08 00 91 28 80 11 00 00 00 00 00 00 33 [13:41:15]Write i2c OK [13:41:15]MH_I2C_Read... [13:41:15]Read from MH i2c: E2 [13:41:15]MH_I2C_Read... [13:41:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:15]Read from MH i2c: E2 17 00 [13:41:15]MH_I2C_Read... [13:41:15]Read from MH i2c: E2 17 00 91 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 8A [13:41:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:41:15]wFMCommunicate OK [13:41:15]requested_item fd.num is exist - process it [13:41:15]SAM_PROTO_GetFieldsCounters [13:41:15]wFMCommunicate request_size=4 [13:41:15]MH_SAM_APDU [13:41:15]CAPDU: 80 13 00 00 [13:41:15]Write to MH i2c: E2 08 00 92 28 80 13 00 00 00 00 00 00 36 [13:41:15]Write i2c OK [13:41:15]MH_I2C_Read... [13:41:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:41:15]Read from MH i2c: E2 [13:41:15]MH_I2C_Read... [13:41:15]Read from MH i2c: E2 62 00 [13:41:15]MH_I2C_Read... [13:41:15]Read from MH i2c: E2 62 00 92 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 9E 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 4E 01 00 00 5E 04 04 00 4E 01 00 00 57 04 04 00 4F 01 00 00 19 04 04 00 00 00 00 00 90 00 7C [13:41: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 9E 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 4E 01 00 00 5E 04 04 00 4E 01 00 00 57 04 04 00 4F 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:41:15]wFMCommunicate OK [13:41:15]SAM_PROTO_GetFieldsCounters done [13:41:15]requested_item shift.num is exist - process it [13:41:15]requested_item shift.opened is exist - process it [13:41:15]req_shift_opened [13:41:15]FM_GetShiftState [13:41:15]SAM_PROTO_GetShiftState [13:41:15]wFMCommunicate request_size=4 [13:41:15]MH_SAM_APDU [13:41:15]CAPDU: 80 13 01 00 [13:41:15]Write to MH i2c: E2 08 00 93 28 80 13 01 00 00 00 00 00 38 [13:41:15]Write i2c OK [13:41:15]MH_I2C_Read... [13:41:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:15]Read from MH i2c: E2 [13:41:15]MH_I2C_Read... [13:41:15]Read from MH i2c: E2 0E 00 [13:41:15]MH_I2C_Read... [13:41:15]Read from MH i2c: E2 0E 00 93 28 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 52 [13:41:15]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:41:15]wFMCommunicate OK [13:41:15]SAM_PROTO_GetShiftState done [13:41:15]FM_GetShiftState done [13:41:15]req_shift_opened done [13:41:15]requested_item shift.open_date is exist - process it [13:41:15]req_shift_open_date [13:41:15]req_shift_open_date done [13:41:15]produce_requested_data done [13:41:15]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227486,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [13:41:15]process_action_free close_receipt [13:41:15]json_value_free [13:41:15]json_value_free done [13:41:15]process_json_proto returns [13:41:15]Send response to host [13:41:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227486,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [13:41:15]free response buf [13:41:15]execute_script done [13:41:15]execute_script returns [13:41:15]free content buf [13:41:15]Sock 9.Close socket [13:41:15]Sock 9.Thread stoped [13:41:15]OFD Sender: No OFD packet to send [13:41:20]OFD Sender: No OFD packet to send [13:41:25]OFD Sender: No OFD packet to send [13:41:30]OFD Sender: No OFD packet to send [13:41:35]OFD Sender: No OFD packet to send [13:41:40]OFD Sender: No OFD packet to send [13:41:45]OFD Sender: No OFD packet to send [13:41:49]accept exits with 8 [13:41:49]New connection [13:41:49]New thread 3066686820 created [13:41:49]Thread 3066543460 joined [13:41:49]Waiting for new connection... [13:41:49] Sock 8.Parse request [13:41:49]Sock 8.Check first char [13:41:49]Sock 8.First char is OK [13:41:49]request: POST /json_proto HTTP/1.0 [13:41:49]Method: POST [13:41:49]URL: /json_proto [13:41:49]Method is POST - this is cgi request [13:41:49]url: /json_proto [13:41:49]query_string will be loaded in cgi processing [13:41:49]execute_cgi json_proto POST (null) [13:41:49]execute_cgi path=json_proto method=POST [13:41:49]POST find Content-Length [13:41:49]Host: 172.17.44.195:8080 [13:41:49]Content-Length: 680 [13:41:49]Content-Type: application/json [13:41:49] [13:41:49]POST finish read [13:41:49]Found Content-Length = 680 [13:41:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963011", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:49]execute_script... [13:41:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963011", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:49]POST & json_proto [13:41:49]process_json_proto [13:41:49]json parsed OK: [13:41:49]protocol is kg_v1.0 [13:41:49]action value=close_receipt [13:41:49]process_action close_receipt [13:41:49]cmd_close_receipt [13:41:49]MH_GetDate [13:41:49]Write to MH i2c: F0 00 00 94 28 AB [13:41:49]Write i2c OK [13:41:49]MH_I2C_Read... [13:41:49]Read from MH i2c: F0 [13:41:49]MH_I2C_Read... [13:41:49]Read from MH i2c: F0 09 00 [13:41:49]MH_I2C_Read... [13:41:49]Read from MH i2c: F0 09 00 94 28 00 9E 08 15 67 82 C9 CF 66 56 [13:41:49]GetLastDocTimeStamp 1729431674 [13:41:49]current date 1729431710 [13:41:49]FM_GetShiftState [13:41:49]SAM_PROTO_GetShiftState [13:41:49]wFMCommunicate request_size=4 [13:41:49]MH_SAM_APDU [13:41:49]CAPDU: 80 13 01 00 [13:41:49]Write to MH i2c: E2 08 00 95 28 80 13 01 00 00 00 00 00 3A [13:41:49]Write i2c OK [13:41:49]MH_I2C_Read... [13:41:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:49]Read from MH i2c: E2 [13:41:49]MH_I2C_Read... [13:41:49]Read from MH i2c: E2 0E 00 [13:41:49]MH_I2C_Read... [13:41:49]Read from MH i2c: E2 0E 00 95 28 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 54 [13:41:49]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:41:49]wFMCommunicate OK [13:41:49]SAM_PROTO_GetShiftState done [13:41:49]FM_GetShiftState done [13:41:49]opened in 1729383750 [13:41:49]opened+sec_in_day 1729470150 [13:41:49]quantity*price = 100050 [13:41:49]sum+1 = 100052 [13:41:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 335 20.10.2024 13:41 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227487 ФПД: 151918309571914 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T134150&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227487&fm=151918309571914&tin=02508201610067®Number=0000000000091685&sum=100000 [13:41:50]StoreToDocumentArchive [13:41:50]shift 533 fd 227487 [13:41:50]save to /storage/0533/doc_00227487 [13:41:50]save last doc name /storage/0533/doc_00227487 to /storage/kkm_last_doc_name [13:41:50]save OK [13:41:50]Clear old archive folders... [13:41:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:41:50]tlvbuf is 0185B9E0 [13:41:50]SAM_PROTO_ClearQueue [13:41:50]wFMCommunicate request_size=4 [13:41:50]MH_SAM_APDU [13:41:50]CAPDU: 80 09 00 00 [13:41:50]Write to MH i2c: E2 08 00 A2 28 80 09 00 00 00 00 00 00 3C [13:41:50]Write i2c OK [13:41:50]MH_I2C_Read... [13:41:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:41:50]Read from MH i2c: E2 [13:41:50]MH_I2C_Read... [13:41:50]Read from MH i2c: E2 03 00 [13:41:50]MH_I2C_Read... [13:41:50]Read from MH i2c: E2 03 00 A2 28 00 90 00 3E [13:41:50]RAPDU: 90 00 [13:41:50]wFMCommunicate OK [13:41:50]SAM_PROTO_ClearQueue done [13:41:50]KKMCreateOFDPacket [13:41:50]OFDProtocolAddRootSTLVToBuf [13:41:50]FM_MakeSignedData [13:41:50]FM_MakeSignedData [13:41:50]SAM_PROTO_SignData [13:41:50]wFMCommunicate request_size=4 [13:41:50]MH_SAM_APDU [13:41:50]CAPDU: 80 0D 01 02 [13:41:50]Write to MH i2c: E2 08 00 A3 28 80 0D 01 02 00 00 00 00 44 [13:41:50]Write i2c OK [13:41:50]MH_I2C_Read... [13:41:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:41:50]Read from MH i2c: E2 [13:41:50]MH_I2C_Read... [13:41:50]Read from MH i2c: E2 03 00 [13:41:50]MH_I2C_Read... [13:41:50]Read from MH i2c: E2 03 00 A3 28 00 90 00 3F [13:41:50]RAPDU: 90 00 [13:41:50]wFMCommunicate OK [13:41:50]wFMCommunicate request_size=255 [13:41:50]MH_SAM_APDU [13:41:50]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 9E 08 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9F 78 03 00 35 04 06 00 8A 2B 3C E0 [13:41:50]Write to MH i2c: E2 02 01 A4 28 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 9E 08 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9F 78 03 00 35 04 06 00 8A 2B 3C E0 00 00 45 [13:41:50]Write i2c OK [13:41:50]MH_I2C_Read... [13:41:50]OFD Sender: No OFD packet to send [13:41:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:50]Read from MH i2c: E2 [13:41:50]MH_I2C_Read... [13:41:50]Read from MH i2c: E2 03 00 [13:41:50]MH_I2C_Read... [13:41:50]Read from MH i2c: E2 03 00 A4 28 00 90 00 40 [13:41:50]RAPDU: 90 00 [13:41:50]wFMCommunicate OK [13:41:50]wFMCommunicate request_size=7 [13:41:50]MH_SAM_APDU [13:41:50]CAPDU: 80 0D 02 02 02 7D 4A [13:41:50]Write to MH i2c: E2 0A 00 A5 28 80 0D 02 02 02 00 7D 4A 00 00 12 [13:41:50]Write i2c OK [13:41:50]MH_I2C_Read... [13:41:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:51]Read from MH i2c: E2 [13:41:51]MH_I2C_Read... [13:41:51]Read from MH i2c: E2 03 00 [13:41:51]MH_I2C_Read... [13:41:51]Read from MH i2c: E2 03 00 A5 28 00 90 00 41 [13:41:51]RAPDU: 90 00 [13:41:51]wFMCommunicate OK [13:41:51]wFMCommunicate request_size=4 [13:41:51]MH_SAM_APDU [13:41:51]CAPDU: 80 0D 03 02 [13:41:51]Write to MH i2c: E2 08 00 A6 28 80 0D 03 02 00 00 00 00 49 [13:41:51]Write i2c OK [13:41:51]MH_I2C_Read... [13:41:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:41:51]Read from MH i2c: E2 [13:41:51]MH_I2C_Read... [13:41:51]Read from MH i2c: E2 0B 00 [13:41:51]MH_I2C_Read... [13:41:51]Read from MH i2c: E2 0B 00 A6 28 00 07 99 15 D3 A9 DC E0 15 90 00 4C [13:41:51]RAPDU: 07 99 15 D3 A9 DC E0 15 90 00 [13:41:51]wFMCommunicate OK [13:41:51]SAM_PROTO_SignData done [13:41:51]FM_MakeSignedData done [13:41:51]CreateOFDProtocolMessage [13:41:51]wFMCommunicate request_size=4 [13:41:51]MH_SAM_APDU [13:41:51]CAPDU: 80 11 00 00 [13:41:51]Write to MH i2c: E2 08 00 A7 28 80 11 00 00 00 00 00 00 49 [13:41:51]Write i2c OK [13:41:51]MH_I2C_Read... [13:41:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:51]Read from MH i2c: E2 [13:41:51]MH_I2C_Read... [13:41:51]Read from MH i2c: E2 17 00 [13:41:51]MH_I2C_Read... [13:41:51]Read from MH i2c: E2 17 00 A7 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A0 [13:41:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:41:51]wFMCommunicate OK [13:41:51]CreateOFDProtocolMessage done [13:41:51]OFDSenderStorePacket 227487 [13:41:51]StoreOFDPacket docnum=227487 [13:41:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 02 51 04 01 C2 83 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 9E 08 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9F 78 03 00 35 04 06 00 8A 2B 3C E0 7D 4A 07 99 15 D3 A9 DC E0 15 [13:41:51]CheckFolder [13:41:51]dirname=/storage/ofd_packets [13:41:51]CheckFolder done [13:41:51]ProducePacketName [13:41:51]name=ofd_packets/00227487 [13:41:51]NVStorageSaveData ofd_packets/00227487 [13:41:51]File name is /storage/ofd_packets/00227487 [13:41:51]Write 298 bytes [13:41:51]NVStorageSaveData done [13:41:51]OFDSenderStorePacket done [13:41:51]KKMCreateOFDPacket done [13:41:51]NVStorageSaveData kkm_last_timestamp [13:41:51]File name is /storage/kkm_last_timestamp [13:41:51]Write 4 bytes [13:41:51]NVStorageSaveData done [13:41:51]ExternCall_PrintAddStr [13:41:51]wPrintStart [13:41:51]Write to MH i2c: 01 00 00 A8 28 D0 [13:41:51]Write i2c OK [13:41:51]MH_I2C_Read... [13:41:51]Read from MH i2c: 01 [13:41:51]MH_I2C_Read... [13:41:51]Read from MH i2c: 01 07 00 [13:41:51]MH_I2C_Read... [13:41:51]Read from MH i2c: 01 07 00 A8 28 00 00 00 00 00 FF 0F E5 [13:41:51]RasterBufferAndPrint [13:41:51]line Счет N : (1)1963011 [13:41:51]line ИНН: 02508201610067 [13:41:51]line Контрольно-Кассовый Чек [13:41:51]line ПРОДАЖА [13:41:51]line ТРК (МРК, ГНК) : 51 [13:41:51]line Товар: 2710194210 [13:41:51]line ДТ-К-5 [13:41:51]line 13.130 * 76.20 [13:41:51]line = 1000.51 [13:41:51]line НДС 12% НСП 1% [13:41:51]line > о реализуемом товаре [13:41:51]line ОКРУГЛЕНИЕ: -0.51 [13:41:51]line ИТОГО: 1000.00 [13:41:51]line Внесено: 1000.00 [13:41:51]line СДАЧА: 0.00 [13:41:51]line НСП 1% : 8.85 [13:41:51]line НДС 12% : 106.25 [13:41:51]line Наличными: 1000.00 [13:41:51]line Безнал.: 0.00 [13:41:51]line Место: АЗС № 133 "Партнер Нефть" [13:41:51]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:41:51]line СНО: Общий режим [13:41:51]line Чек 335 20.10.2024 13:41 [13:41:51]line Смена: 533 ФФД: 1.0 [13:41:51]line ЗНМ: 0300000091 [13:41:51]line РНМ: 0000000000091685 [13:41:51]line Версия ККМ: 001 [13:41:51]line ФМ: 0000000000871839 [13:41:51]line ФД: 227487 [13:41:51]line ФПД: 151918309571914 [13:41:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T134150&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227487&fm=151918309571914&tin=02508201610067®Number=0000000000091685&sum=100000 [13:41:51]OFD Sender: Processing packet 227487 [packets to send 38, broken 37] [13:41:51]ProducePacketName [13:41:51]name=ofd_packets/00227487 [13:41:51]OFD Sender: To server: pG, [13:41:51]CommunicateWithHost lk.salyk.kg:30040 [13:41:51]ConnectInit lk.salyk.kg [13:41:51]written 0, free lines is 4095 [13:41:51]Connected sock=10 [13:41:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 02 51 04 01 C2 83 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 9E 08 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9F 78 03 00 35 04 06 00 8A 2B 3C E0 7D 4A 07 99 15 D3 A9 DC E0 15 [13:41:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 EC 98 47 00 7D 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 33 39 10 04 04 00 9F 78 03 00 F4 03 04 00 9D B3 14 67 B6 04 01 00 00 A8 40 16 AE 6B EE 58 7D [13:41:51]CommunicateWithHost err = 0 [13:41:51]CheckOFDResponse [13:41:51]1017 (14) - 77093643461234 [13:41:51]1041 (16) - 0000000000871839 [13:41:51]1040 (4) - 227487 [13:41:51]1012 (4) - 20.10.2024 07:39 [13:41:51]1206 (1) - 0 [13:41:51]OFD Sender: Remove packet 227487 [13:41:51]ProducePacketName [13:41:51]name=ofd_packets/00227487 [13:41:51]NVStorageDeleteData [13:41:51]Write to MH i2c: 01 00 00 D2 28 FA [13:41:51]Write i2c OK [13:41:51]MH_I2C_Read... [13:41:51]Read from MH i2c: 01 [13:41:51]MH_I2C_Read... [13:41:51]Read from MH i2c: 01 07 00 [13:41:51]MH_I2C_Read... [13:41:51]Read from MH i2c: 01 07 00 D2 28 00 00 00 00 00 FF 0C 0C [13:41:51]RasterBufferAndPrint [13:41:51]line [13:41:51]line [13:41:51]line [13:41:51]line [13:41:51]line [13:41:51]written 0, free lines is 3333 [13:41:51]process_action close_receipt done [13:41:51]requested_data is exist [13:41:51]produce_requested_data [13:41:51]requested_item fm.sn is exist - process it [13:41:51]wFMCommunicate request_size=4 [13:41:51]MH_SAM_APDU [13:41:51]CAPDU: 80 11 00 00 [13:41:51]Write to MH i2c: E2 08 00 D9 28 80 11 00 00 00 00 00 00 7B [13:41:51]Write i2c OK [13:41:51]MH_I2C_Read... [13:41:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:51]Read from MH i2c: E2 [13:41:51]MH_I2C_Read... [13:41:51]Read from MH i2c: E2 17 00 [13:41:51]MH_I2C_Read... [13:41:51]Read from MH i2c: E2 17 00 D9 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D2 [13:41:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:41:51]wFMCommunicate OK [13:41:51]requested_item fd.num is exist - process it [13:41:51]SAM_PROTO_GetFieldsCounters [13:41:51]wFMCommunicate request_size=4 [13:41:51]MH_SAM_APDU [13:41:51]CAPDU: 80 13 00 00 [13:41:51]Write to MH i2c: E2 08 00 DA 28 80 13 00 00 00 00 00 00 7E [13:41:51]Write i2c OK [13:41:51]MH_I2C_Read... [13:41:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:41:52]Read from MH i2c: E2 [13:41:52]MH_I2C_Read... [13:41:52]Read from MH i2c: E2 62 00 [13:41:52]MH_I2C_Read... [13:41:52]Read from MH i2c: E2 62 00 DA 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 9F 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 4F 01 00 00 5E 04 04 00 4F 01 00 00 57 04 04 00 50 01 00 00 19 04 04 00 00 00 00 00 90 00 C8 [13:41: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 9F 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 4F 01 00 00 5E 04 04 00 4F 01 00 00 57 04 04 00 50 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:41:52]wFMCommunicate OK [13:41:52]SAM_PROTO_GetFieldsCounters done [13:41:52]requested_item shift.num is exist - process it [13:41:52]requested_item shift.opened is exist - process it [13:41:52]req_shift_opened [13:41:52]FM_GetShiftState [13:41:52]SAM_PROTO_GetShiftState [13:41:52]wFMCommunicate request_size=4 [13:41:52]MH_SAM_APDU [13:41:52]CAPDU: 80 13 01 00 [13:41:52]Write to MH i2c: E2 08 00 DB 28 80 13 01 00 00 00 00 00 80 [13:41:52]Write i2c OK [13:41:52]MH_I2C_Read... [13:41:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:52]Read from MH i2c: E2 [13:41:52]MH_I2C_Read... [13:41:52]Read from MH i2c: E2 0E 00 [13:41:52]MH_I2C_Read... [13:41:52]Read from MH i2c: E2 0E 00 DB 28 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 9A [13:41:52]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:41:52]wFMCommunicate OK [13:41:52]SAM_PROTO_GetShiftState done [13:41:52]FM_GetShiftState done [13:41:52]req_shift_opened done [13:41:52]requested_item shift.open_date is exist - process it [13:41:52]req_shift_open_date [13:41:52]req_shift_open_date done [13:41:52]produce_requested_data done [13:41:52]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227487,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [13:41:52]process_action_free close_receipt [13:41:52]json_value_free [13:41:52]json_value_free done [13:41:52]process_json_proto returns [13:41:52]Send response to host [13:41:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227487,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [13:41:52]free response buf [13:41:52]execute_script done [13:41:52]execute_script returns [13:41:52]free content buf [13:41:52]Sock 8.Close socket [13:41:52]Sock 8.Thread stoped [13:41:52]OFD Sender: No OFD packet to send [13:41:57]OFD Sender: No OFD packet to send [13:42:02]OFD Sender: No OFD packet to send [13:42:07]OFD Sender: No OFD packet to send [13:42:12]OFD Sender: No OFD packet to send [13:42:17]OFD Sender: No OFD packet to send [13:42:22]OFD Sender: No OFD packet to send [13:42:27]OFD Sender: No OFD packet to send [13:42:32]OFD Sender: No OFD packet to send [13:42:37]OFD Sender: No OFD packet to send [13:42:41]accept exits with 9 [13:42:41]New connection [13:42:41]New thread 3066543460 created [13:42:41]Thread 3066686820 joined [13:42:41]Waiting for new connection... [13:42:41] Sock 9.Parse request [13:42:41]Sock 9.Check first char [13:42:41]Sock 9.First char is OK [13:42:41]request: POST /json_proto HTTP/1.0 [13:42:41]Method: POST [13:42:41]URL: /json_proto [13:42:41]Method is POST - this is cgi request [13:42:41]url: /json_proto [13:42:41]query_string will be loaded in cgi processing [13:42:41]execute_cgi json_proto POST (null) [13:42:41]execute_cgi path=json_proto method=POST [13:42:41]POST find Content-Length [13:42:41]Host: 172.17.44.195:8080 [13:42:41]Content-Length: 678 [13:42:41]Content-Type: application/json [13:42:41] [13:42:41]POST finish read [13:42:41]Found Content-Length = 678 [13:42:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963014", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:42:41]execute_script... [13:42: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)1963014", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:42:41]POST & json_proto [13:42:41]process_json_proto [13:42:41]json parsed OK: [13:42:41]protocol is kg_v1.0 [13:42:41]action value=close_receipt [13:42:41]process_action close_receipt [13:42:41]cmd_close_receipt [13:42:41]MH_GetDate [13:42:41]Write to MH i2c: F0 00 00 DC 28 F3 [13:42:41]Write i2c OK [13:42:41]MH_I2C_Read... [13:42:41]Read from MH i2c: F0 [13:42:41]MH_I2C_Read... [13:42:41]Read from MH i2c: F0 09 00 [13:42:41]MH_I2C_Read... [13:42:41]Read from MH i2c: F0 09 00 DC 28 00 D2 08 15 67 82 C9 CF 66 D2 [13:42:41]GetLastDocTimeStamp 1729431710 [13:42:41]current date 1729431762 [13:42:41]FM_GetShiftState [13:42:41]SAM_PROTO_GetShiftState [13:42:41]wFMCommunicate request_size=4 [13:42:41]MH_SAM_APDU [13:42:41]CAPDU: 80 13 01 00 [13:42:41]Write to MH i2c: E2 08 00 DD 28 80 13 01 00 00 00 00 00 82 [13:42:41]Write i2c OK [13:42:41]MH_I2C_Read... [13:42:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:42:41]Read from MH i2c: E2 [13:42:41]MH_I2C_Read... [13:42:41]Read from MH i2c: E2 0E 00 [13:42:41]MH_I2C_Read... [13:42:41]Read from MH i2c: E2 0E 00 DD 28 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 9C [13:42:41]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:42:41]wFMCommunicate OK [13:42:41]SAM_PROTO_GetShiftState done [13:42:41]FM_GetShiftState done [13:42:41]opened in 1729383750 [13:42:41]opened+sec_in_day 1729470150 [13:42:41]quantity*price = 60009 [13:42:41]sum+1 = 60010 [13:42:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 336 20.10.2024 13:42 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227488 ФПД: 172767870618386 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T134242&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227488&fm=172767870618386&tin=02508201610067®Number=0000000000091685&sum=60000 [13:42:42]StoreToDocumentArchive [13:42:42]shift 533 fd 227488 [13:42:42]save to /storage/0533/doc_00227488 [13:42:42]save last doc name /storage/0533/doc_00227488 to /storage/kkm_last_doc_name [13:42:42]save OK [13:42:42]Clear old archive folders... [13:42:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:42:42]tlvbuf is 0184FF70 [13:42:42]SAM_PROTO_ClearQueue [13:42:42]wFMCommunicate request_size=4 [13:42:42]MH_SAM_APDU [13:42:42]CAPDU: 80 09 00 00 [13:42:42]Write to MH i2c: E2 08 00 EA 28 80 09 00 00 00 00 00 00 84 [13:42:42]Write i2c OK [13:42:42]MH_I2C_Read... [13:42:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:42:42]Read from MH i2c: E2 [13:42:42]MH_I2C_Read... [13:42:42]Read from MH i2c: E2 03 00 [13:42:42]MH_I2C_Read... [13:42:42]Read from MH i2c: E2 03 00 EA 28 00 90 00 86 [13:42:42]RAPDU: 90 00 [13:42:42]wFMCommunicate OK [13:42:42]SAM_PROTO_ClearQueue done [13:42:42]KKMCreateOFDPacket [13:42:42]OFDProtocolAddRootSTLVToBuf [13:42:42]FM_MakeSignedData [13:42:42]FM_MakeSignedData [13:42:42]SAM_PROTO_SignData [13:42:42]wFMCommunicate request_size=4 [13:42:42]MH_SAM_APDU [13:42:42]CAPDU: 80 0D 01 02 [13:42:42]Write to MH i2c: E2 08 00 EB 28 80 0D 01 02 00 00 00 00 8C [13:42:42]Write i2c OK [13:42:42]MH_I2C_Read... [13:42:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:42:42]Read from MH i2c: E2 [13:42:42]MH_I2C_Read... [13:42:42]Read from MH i2c: E2 03 00 [13:42:42]MH_I2C_Read... [13:42:42]Read from MH i2c: E2 03 00 EB 28 00 90 00 87 [13:42:42]RAPDU: 90 00 [13:42:42]wFMCommunicate OK [13:42:42]wFMCommunicate request_size=255 [13:42:42]MH_SAM_APDU [13:42:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 D2 08 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A0 78 03 00 35 04 06 00 9D [13:42:42]Write to MH i2c: E2 02 01 EC 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 D2 08 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A0 78 03 00 35 04 06 00 9D 00 00 76 [13:42:42]Write i2c OK [13:42:42]MH_I2C_Read... [13:42:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:42:42]Read from MH i2c: E2 [13:42:42]MH_I2C_Read... [13:42:42]Read from MH i2c: E2 03 00 [13:42:42]MH_I2C_Read... [13:42:42]Read from MH i2c: E2 03 00 EC 28 00 90 00 88 [13:42:42]RAPDU: 90 00 [13:42:42]wFMCommunicate OK [13:42:42]wFMCommunicate request_size=10 [13:42:42]MH_SAM_APDU [13:42:42]CAPDU: 80 0D 02 02 05 21 A7 8E 8B 12 [13:42:42]Write to MH i2c: E2 0D 00 ED 28 80 0D 02 02 05 00 21 A7 8E 8B 12 00 00 8C [13:42:42]Write i2c OK [13:42:42]MH_I2C_Read... [13:42:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:42:42]Read from MH i2c: E2 [13:42:42]MH_I2C_Read... [13:42:42]Read from MH i2c: E2 03 00 [13:42:42]MH_I2C_Read... [13:42:42]Read from MH i2c: E2 03 00 ED 28 00 90 00 89 [13:42:42]RAPDU: 90 00 [13:42:42]wFMCommunicate OK [13:42:42]wFMCommunicate request_size=4 [13:42:42]MH_SAM_APDU [13:42:42]CAPDU: 80 0D 03 02 [13:42:42]Write to MH i2c: E2 08 00 EE 28 80 0D 03 02 00 00 00 00 91 [13:42:42]Write i2c OK [13:42:42]MH_I2C_Read... [13:42:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:42:42]Read from MH i2c: E2 [13:42:42]MH_I2C_Read... [13:42:42]Read from MH i2c: E2 0B 00 [13:42:42]MH_I2C_Read... [13:42:42]Read from MH i2c: E2 0B 00 EE 28 00 C7 58 E6 77 DD 47 35 9F 90 00 06 [13:42:42]RAPDU: C7 58 E6 77 DD 47 35 9F 90 00 [13:42:42]wFMCommunicate OK [13:42:42]SAM_PROTO_SignData done [13:42:42]FM_MakeSignedData done [13:42:42]CreateOFDProtocolMessage [13:42:42]wFMCommunicate request_size=4 [13:42:42]MH_SAM_APDU [13:42:42]CAPDU: 80 11 00 00 [13:42:42]Write to MH i2c: E2 08 00 EF 28 80 11 00 00 00 00 00 00 91 [13:42:42]Write i2c OK [13:42:42]MH_I2C_Read... [13:42:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:42:43]Read from MH i2c: E2 [13:42:43]MH_I2C_Read... [13:42:43]Read from MH i2c: E2 17 00 [13:42:43]MH_I2C_Read... [13:42:43]Read from MH i2c: E2 17 00 EF 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E8 [13:42:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:42:43]wFMCommunicate OK [13:42:43]CreateOFDProtocolMessage done [13:42:43]OFDSenderStorePacket 227488 [13:42:43]StoreOFDPacket docnum=227488 [13:42:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 5B 46 07 01 3C 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 D2 08 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A0 78 03 00 35 04 06 00 9D 21 A7 8E 8B 12 C7 58 E6 77 DD 47 35 9F [13:42:43]CheckFolder [13:42:43]dirname=/storage/ofd_packets [13:42:43]CheckFolder done [13:42:43]ProducePacketName [13:42:43]name=ofd_packets/00227488 [13:42:43]NVStorageSaveData ofd_packets/00227488 [13:42:43]File name is /storage/ofd_packets/00227488 [13:42:43]Write 301 bytes [13:42:43]NVStorageSaveData done [13:42:43]OFDSenderStorePacket done [13:42:43]KKMCreateOFDPacket done [13:42:43]NVStorageSaveData kkm_last_timestamp [13:42:43]File name is /storage/kkm_last_timestamp [13:42:43]Write 4 bytes [13:42:43]NVStorageSaveData done [13:42:43]ExternCall_PrintAddStr [13:42:43]wPrintStart [13:42:43]Write to MH i2c: 01 00 00 F0 28 18 [13:42:43]Write i2c OK [13:42:43]MH_I2C_Read... [13:42:43]Read from MH i2c: 01 [13:42:43]MH_I2C_Read... [13:42:43]Read from MH i2c: 01 07 00 [13:42:43]MH_I2C_Read... [13:42:43]Read from MH i2c: 01 07 00 F0 28 00 00 00 00 00 FF 0F 2D [13:42:43]RasterBufferAndPrint [13:42:43]line Счет N : (1)1963014 [13:42:43]line ИНН: 02508201610067 [13:42:43]line Контрольно-Кассовый Чек [13:42:43]line ПРОДАЖА [13:42:43]line ТРК (МРК, ГНК) : 43 [13:42:43]line Товар: 2710124130 [13:42:43]line Аи-92-К-5 [13:42:43]line 8.970 * 66.90 [13:42:43]line = 600.09 [13:42:43]line НДС 12% НСП 1% [13:42:43]line > о реализуемом товаре [13:42:43]line ОКРУГЛЕНИЕ: -0.09 [13:42:43]line ИТОГО: 600.00 [13:42:43]line Внесено: 600.00 [13:42:43]line СДАЧА: 0.00 [13:42:43]line НСП 1% : 5.31 [13:42:43]line НДС 12% : 63.73 [13:42:43]line Наличными: 600.00 [13:42:43]line Безнал.: 0.00 [13:42:43]line Место: АЗС № 133 "Партнер Нефть" [13:42:43]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:42:43]line СНО: Общий режим [13:42:43]line Чек 336 20.10.2024 13:42 [13:42:43]line Смена: 533 ФФД: 1.0 [13:42:43]line ЗНМ: 0300000091 [13:42:43]line РНМ: 0000000000091685 [13:42:43]line Версия ККМ: 001 [13:42:43]line ФМ: 0000000000871839 [13:42:43]line ФД: 227488 [13:42:43]line ФПД: 172767870618386 [13:42:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T134242&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227488&fm=172767870618386&tin=02508201610067®Number=0000000000091685&sum=60000 [13:42:43]written 0, free lines is 4095 [13:42:43]OFD Sender: Processing packet 227488 [packets to send 38, broken 37] [13:42:43]ProducePacketName [13:42:43]name=ofd_packets/00227488 [13:42:43]OFD Sender: To server: pG, [13:42:43]CommunicateWithHost lk.salyk.kg:30040 [13:42:43]ConnectInit lk.salyk.kg [13:42:43]Connected sock=11 [13:42: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 33 39 0F 01 00 00 5B 46 07 01 3C 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 D2 08 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A0 78 03 00 35 04 06 00 9D 21 A7 8E 8B 12 C7 58 E6 77 DD 47 35 9F [13:42: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 33 39 4F 00 00 00 EB 65 47 00 84 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 33 39 10 04 04 00 A0 78 03 00 F4 03 04 00 D1 B3 14 67 B6 04 01 00 00 A7 DF BA 05 AC 54 DD 1E [13:42:43]CommunicateWithHost err = 0 [13:42:43]CheckOFDResponse [13:42:43]1017 (14) - 77093643461234 [13:42:43]1041 (16) - 0000000000871839 [13:42:43]1040 (4) - 227488 [13:42:43]1012 (4) - 20.10.2024 07:40 [13:42:43]1206 (1) - 0 [13:42:43]OFD Sender: Remove packet 227488 [13:42:43]ProducePacketName [13:42:43]name=ofd_packets/00227488 [13:42:43]NVStorageDeleteData [13:42:43]Write to MH i2c: 01 00 00 1A 29 43 [13:42:43]Write i2c OK [13:42:43]MH_I2C_Read... [13:42:43]Read from MH i2c: 01 [13:42:43]MH_I2C_Read... [13:42:43]Read from MH i2c: 01 07 00 [13:42:43]MH_I2C_Read... [13:42:43]Read from MH i2c: 01 07 00 1A 29 00 00 00 00 00 03 0D 5A [13:42:43]RasterBufferAndPrint [13:42:43]line [13:42:43]line [13:42:43]line [13:42:43]line [13:42:43]line [13:42:43]written 0, free lines is 3337 [13:42:43]process_action close_receipt done [13:42:43]requested_data is exist [13:42:43]produce_requested_data [13:42:43]requested_item fm.sn is exist - process it [13:42:43]wFMCommunicate request_size=4 [13:42:43]MH_SAM_APDU [13:42:43]CAPDU: 80 11 00 00 [13:42:43]Write to MH i2c: E2 08 00 21 29 80 11 00 00 00 00 00 00 C4 [13:42:43]Write i2c OK [13:42:43]MH_I2C_Read... [13:42:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:42:43]Read from MH i2c: E2 [13:42:43]MH_I2C_Read... [13:42:43]Read from MH i2c: E2 17 00 [13:42:43]MH_I2C_Read... [13:42:43]Read from MH i2c: E2 17 00 21 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 1B [13:42:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:42:43]wFMCommunicate OK [13:42:43]requested_item fd.num is exist - process it [13:42:43]SAM_PROTO_GetFieldsCounters [13:42:43]wFMCommunicate request_size=4 [13:42:43]MH_SAM_APDU [13:42:43]CAPDU: 80 13 00 00 [13:42:43]Write to MH i2c: E2 08 00 22 29 80 13 00 00 00 00 00 00 C7 [13:42:43]Write i2c OK [13:42:43]MH_I2C_Read... [13:42:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:42:44]Read from MH i2c: E2 [13:42:44]MH_I2C_Read... [13:42:44]Read from MH i2c: E2 62 00 [13:42:44]MH_I2C_Read... [13:42:44]Read from MH i2c: E2 62 00 22 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A0 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 50 01 00 00 5E 04 04 00 50 01 00 00 57 04 04 00 51 01 00 00 19 04 04 00 00 00 00 00 90 00 15 [13:42: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A0 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 50 01 00 00 5E 04 04 00 50 01 00 00 57 04 04 00 51 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:42:44]wFMCommunicate OK [13:42:44]SAM_PROTO_GetFieldsCounters done [13:42:44]requested_item shift.num is exist - process it [13:42:44]requested_item shift.opened is exist - process it [13:42:44]req_shift_opened [13:42:44]FM_GetShiftState [13:42:44]SAM_PROTO_GetShiftState [13:42:44]wFMCommunicate request_size=4 [13:42:44]MH_SAM_APDU [13:42:44]CAPDU: 80 13 01 00 [13:42:44]Write to MH i2c: E2 08 00 23 29 80 13 01 00 00 00 00 00 C9 [13:42:44]Write i2c OK [13:42:44]MH_I2C_Read... [13:42:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:42:44]Read from MH i2c: E2 [13:42:44]MH_I2C_Read... [13:42:44]Read from MH i2c: E2 0E 00 [13:42:44]MH_I2C_Read... [13:42:44]Read from MH i2c: E2 0E 00 23 29 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 E3 [13:42:44]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:42:44]wFMCommunicate OK [13:42:44]SAM_PROTO_GetShiftState done [13:42:44]FM_GetShiftState done [13:42:44]req_shift_opened done [13:42:44]requested_item shift.open_date is exist - process it [13:42:44]req_shift_open_date [13:42:44]req_shift_open_date done [13:42:44]produce_requested_data done [13:42:44]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227488,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [13:42:44]process_action_free close_receipt [13:42:44]json_value_free [13:42:44]json_value_free done [13:42:44]process_json_proto returns [13:42:44]Send response to host [13:42:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227488,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [13:42:44]free response buf [13:42:44]execute_script done [13:42:44]execute_script returns [13:42:44]free content buf [13:42:44]Sock 9.Close socket [13:42:44]Sock 9.Thread stoped [13:42:44]OFD Sender: No OFD packet to send [13:42:49]OFD Sender: No OFD packet to send [13:42:54]OFD Sender: No OFD packet to send [13:42:59]OFD Sender: No OFD packet to send [13:43:04]OFD Sender: No OFD packet to send [13:43:09]OFD Sender: No OFD packet to send [13:43:14]OFD Sender: No OFD packet to send [13:43:19]OFD Sender: No OFD packet to send [13:43:24]OFD Sender: No OFD packet to send [13:43:24]accept exits with 8 [13:43:24]New connection [13:43:24]New thread 3066686820 created [13:43:24]Thread 3066543460 joined [13:43:24]Waiting for new connection... [13:43:24] Sock 8.Parse request [13:43:24]Sock 8.Check first char [13:43:24]Sock 8.First char is OK [13:43:24]request: POST /json_proto HTTP/1.0 [13:43:24]Method: POST [13:43:24]URL: /json_proto [13:43:24]Method is POST - this is cgi request [13:43:24]url: /json_proto [13:43:24]query_string will be loaded in cgi processing [13:43:24]execute_cgi json_proto POST (null) [13:43:24]execute_cgi path=json_proto method=POST [13:43:24]POST find Content-Length [13:43:24]Host: 172.17.44.195:8080 [13:43:24]Content-Length: 681 [13:43:24]Content-Type: application/json [13:43:24] [13:43:24]POST finish read [13:43:24]Found Content-Length = 681 [13:43:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963010", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 104.990, "sum" : 8000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 8000.00, "total" : 8000.00, "payments": [ { "type": 0, "sum" : 8000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:43:24]execute_script... [13:43: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)1963010", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 104.990, "sum" : 8000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 8000.00, "total" : 8000.00, "payments": [ { "type": 0, "sum" : 8000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:43:24]POST & json_proto [13:43:24]process_json_proto [13:43:24]json parsed OK: [13:43:24]protocol is kg_v1.0 [13:43:24]action value=close_receipt [13:43:24]process_action close_receipt [13:43:24]cmd_close_receipt [13:43:24]MH_GetDate [13:43:24]Write to MH i2c: F0 00 00 24 29 3C [13:43:24]Write i2c OK [13:43:24]MH_I2C_Read... [13:43:24]Read from MH i2c: F0 [13:43:24]MH_I2C_Read... [13:43:24]Read from MH i2c: F0 09 00 [13:43:24]MH_I2C_Read... [13:43:24]Read from MH i2c: F0 09 00 24 29 00 FD 08 15 67 82 C9 CF 66 46 [13:43:24]GetLastDocTimeStamp 1729431762 [13:43:24]current date 1729431805 [13:43:24]FM_GetShiftState [13:43:24]SAM_PROTO_GetShiftState [13:43:24]wFMCommunicate request_size=4 [13:43:24]MH_SAM_APDU [13:43:24]CAPDU: 80 13 01 00 [13:43:24]Write to MH i2c: E2 08 00 25 29 80 13 01 00 00 00 00 00 CB [13:43:24]Write i2c OK [13:43:24]MH_I2C_Read... [13:43:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:24]Read from MH i2c: E2 [13:43:24]MH_I2C_Read... [13:43:24]Read from MH i2c: E2 0E 00 [13:43:24]MH_I2C_Read... [13:43:24]Read from MH i2c: E2 0E 00 25 29 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 E5 [13:43:24]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:43:24]wFMCommunicate OK [13:43:24]SAM_PROTO_GetShiftState done [13:43:24]FM_GetShiftState done [13:43:24]opened in 1729383750 [13:43:24]opened+sec_in_day 1729470150 [13:43:24]quantity*price = 800023 [13:43:24]sum+1 = 800025 [13:43:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 8000.00 Внесено: 8000.00 СДАЧА: 0.00 НСП 1% : 70.80 НДС 12% : 849.58 Наличными: 8000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 337 20.10.2024 13:43 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227489 ФПД: 120723458398345 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T134325&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227489&fm=120723458398345&tin=02508201610067®Number=0000000000091685&sum=800000 [13:43:25]StoreToDocumentArchive [13:43:25]shift 533 fd 227489 [13:43:25]save to /storage/0533/doc_00227489 [13:43:25]save last doc name /storage/0533/doc_00227489 to /storage/kkm_last_doc_name [13:43:25]save OK [13:43:25]Clear old archive folders... [13:43:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:43:25]tlvbuf is 01845440 [13:43:25]SAM_PROTO_ClearQueue [13:43:25]wFMCommunicate request_size=4 [13:43:25]MH_SAM_APDU [13:43:25]CAPDU: 80 09 00 00 [13:43:25]Write to MH i2c: E2 08 00 32 29 80 09 00 00 00 00 00 00 CD [13:43:25]Write i2c OK [13:43:25]MH_I2C_Read... [13:43:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:43:25]Read from MH i2c: E2 [13:43:25]MH_I2C_Read... [13:43:25]Read from MH i2c: E2 03 00 [13:43:25]MH_I2C_Read... [13:43:25]Read from MH i2c: E2 03 00 32 29 00 90 00 CF [13:43:25]RAPDU: 90 00 [13:43:25]wFMCommunicate OK [13:43:25]SAM_PROTO_ClearQueue done [13:43:25]KKMCreateOFDPacket [13:43:25]OFDProtocolAddRootSTLVToBuf [13:43:25]FM_MakeSignedData [13:43:25]FM_MakeSignedData [13:43:25]SAM_PROTO_SignData [13:43:25]wFMCommunicate request_size=4 [13:43:25]MH_SAM_APDU [13:43:25]CAPDU: 80 0D 01 02 [13:43:25]Write to MH i2c: E2 08 00 33 29 80 0D 01 02 00 00 00 00 D5 [13:43:25]Write i2c OK [13:43:25]MH_I2C_Read... [13:43:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:43:25]Read from MH i2c: E2 [13:43:25]MH_I2C_Read... [13:43:25]Read from MH i2c: E2 03 00 [13:43:25]MH_I2C_Read... [13:43:25]Read from MH i2c: E2 03 00 33 29 00 90 00 D0 [13:43:25]RAPDU: 90 00 [13:43:25]wFMCommunicate OK [13:43:25]wFMCommunicate request_size=255 [13:43:25]MH_SAM_APDU [13:43: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 1E 9A 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 FD 08 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A1 78 03 00 35 04 06 00 6D CC 1E DA [13:43:25]Write to MH i2c: E2 02 01 34 29 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 9A 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 FD 08 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A1 78 03 00 35 04 06 00 6D CC 1E DA 00 00 D3 [13:43:25]Write i2c OK [13:43:25]MH_I2C_Read... [13:43:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:26]Read from MH i2c: E2 [13:43:26]MH_I2C_Read... [13:43:26]Read from MH i2c: E2 03 00 [13:43:26]MH_I2C_Read... [13:43:26]Read from MH i2c: E2 03 00 34 29 00 90 00 D1 [13:43:26]RAPDU: 90 00 [13:43:26]wFMCommunicate OK [13:43:26]wFMCommunicate request_size=7 [13:43:26]MH_SAM_APDU [13:43:26]CAPDU: 80 0D 02 02 02 98 89 [13:43:26]Write to MH i2c: E2 0A 00 35 29 80 0D 02 02 02 00 98 89 00 00 FD [13:43:26]Write i2c OK [13:43:26]MH_I2C_Read... [13:43:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:26]Read from MH i2c: E2 [13:43:26]MH_I2C_Read... [13:43:26]Read from MH i2c: E2 03 00 [13:43:26]MH_I2C_Read... [13:43:26]Read from MH i2c: E2 03 00 35 29 00 90 00 D2 [13:43:26]RAPDU: 90 00 [13:43:26]wFMCommunicate OK [13:43:26]wFMCommunicate request_size=4 [13:43:26]MH_SAM_APDU [13:43:26]CAPDU: 80 0D 03 02 [13:43:26]Write to MH i2c: E2 08 00 36 29 80 0D 03 02 00 00 00 00 DA [13:43:26]Write i2c OK [13:43:26]MH_I2C_Read... [13:43:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:43:26]Read from MH i2c: E2 [13:43:26]MH_I2C_Read... [13:43:26]Read from MH i2c: E2 0B 00 [13:43:26]MH_I2C_Read... [13:43:26]Read from MH i2c: E2 0B 00 36 29 00 93 4D B0 67 57 04 CF 35 90 00 31 [13:43:26]RAPDU: 93 4D B0 67 57 04 CF 35 90 00 [13:43:26]wFMCommunicate OK [13:43:26]SAM_PROTO_SignData done [13:43:26]FM_MakeSignedData done [13:43:26]CreateOFDProtocolMessage [13:43:26]wFMCommunicate request_size=4 [13:43:26]MH_SAM_APDU [13:43:26]CAPDU: 80 11 00 00 [13:43:26]Write to MH i2c: E2 08 00 37 29 80 11 00 00 00 00 00 00 DA [13:43:26]Write i2c OK [13:43:26]MH_I2C_Read... [13:43:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:26]Read from MH i2c: E2 [13:43:26]MH_I2C_Read... [13:43:26]Read from MH i2c: E2 17 00 [13:43:26]MH_I2C_Read... [13:43:26]Read from MH i2c: E2 17 00 37 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 31 [13:43:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:43:26]wFMCommunicate OK [13:43:26]CreateOFDProtocolMessage done [13:43:26]OFDSenderStorePacket 227489 [13:43:26]StoreOFDPacket docnum=227489 [13:43:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 0E 68 04 01 59 3B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 9A 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 FD 08 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A1 78 03 00 35 04 06 00 6D CC 1E DA 98 89 93 4D B0 67 57 04 CF 35 [13:43:26]CheckFolder [13:43:26]dirname=/storage/ofd_packets [13:43:26]CheckFolder done [13:43:26]ProducePacketName [13:43:26]name=ofd_packets/00227489 [13:43:26]NVStorageSaveData ofd_packets/00227489 [13:43:26]File name is /storage/ofd_packets/00227489 [13:43:26]Write 298 bytes [13:43:26]NVStorageSaveData done [13:43:26]OFDSenderStorePacket done [13:43:26]KKMCreateOFDPacket done [13:43:26]NVStorageSaveData kkm_last_timestamp [13:43:26]File name is /storage/kkm_last_timestamp [13:43:26]Write 4 bytes [13:43:26]NVStorageSaveData done [13:43:26]ExternCall_PrintAddStr [13:43:26]wPrintStart [13:43:26]Write to MH i2c: 01 00 00 38 29 61 [13:43:26]Write i2c OK [13:43:26]MH_I2C_Read... [13:43:26]Read from MH i2c: 01 [13:43:26]MH_I2C_Read... [13:43:26]Read from MH i2c: 01 07 00 [13:43:26]MH_I2C_Read... [13:43:26]Read from MH i2c: 01 07 00 38 29 00 00 00 00 00 FF 0F 76 [13:43:26]RasterBufferAndPrint [13:43:26]line Счет N : (1)1963010 [13:43:26]line ИНН: 02508201610067 [13:43:26]line Контрольно-Кассовый Чек [13:43:26]line ПРОДАЖА [13:43:26]line ТРК (МРК, ГНК) : 21 [13:43:26]line Товар: 2710194210 [13:43:26]line ДТ-К-5 [13:43:26]line 104.990 * 76.20 [13:43:26]line = 8000.24 [13:43:26]line НДС 12% НСП 1% [13:43:26]line > о реализуемом товаре [13:43:26]line ОКРУГЛЕНИЕ: -0.24 [13:43:26]line ИТОГО: 8000.00 [13:43:26]line Внесено: 8000.00 [13:43:26]line СДАЧА: 0.00 [13:43:26]line НСП 1% : 70.80 [13:43:26]line НДС 12% : 849.58 [13:43:26]line Наличными: 8000.00 [13:43:26]line Безнал.: 0.00 [13:43:26]line Место: АЗС № 133 "Партнер Нефть" [13:43:26]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:43:26]line СНО: Общий режим [13:43:26]line Чек 337 20.10.2024 13:43 [13:43:26]line Смена: 533 ФФД: 1.0 [13:43:26]line ЗНМ: 0300000091 [13:43:26]line РНМ: 0000000000091685 [13:43:26]line Версия ККМ: 001 [13:43:26]line ФМ: 0000000000871839 [13:43:26]line ФД: 227489 [13:43:26]line ФПД: 120723458398345 [13:43:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T134325&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227489&fm=120723458398345&tin=02508201610067®Number=0000000000091685&sum=800000 [13:43:26]OFD Sender: Processing packet 227489 [packets to send 38, broken 37] [13:43:26]ProducePacketName [13:43:26]name=ofd_packets/00227489 [13:43:26]OFD Sender: To server: pG, [13:43:26]CommunicateWithHost lk.salyk.kg:30040 [13:43:26]ConnectInit lk.salyk.kg [13:43:26]written 0, free lines is 4095 [13:43:26]Connected sock=10 [13:43: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 33 39 0C 01 00 00 0E 68 04 01 59 3B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 9A 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 FD 08 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A1 78 03 00 35 04 06 00 6D CC 1E DA 98 89 93 4D B0 67 57 04 CF 35 [13:43: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 33 39 4F 00 00 00 93 50 47 00 83 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A1 78 03 00 F4 03 04 00 FC B3 14 67 B6 04 01 00 00 79 2C DE DF CE 7A 58 D2 [13:43:26]CommunicateWithHost err = 0 [13:43:26]CheckOFDResponse [13:43:26]1017 (14) - 77093643461234 [13:43:26]1041 (16) - 0000000000871839 [13:43:26]1040 (4) - 227489 [13:43:26]1012 (4) - 20.10.2024 07:40 [13:43:26]1206 (1) - 0 [13:43:26]OFD Sender: Remove packet 227489 [13:43:26]ProducePacketName [13:43:26]name=ofd_packets/00227489 [13:43:26]NVStorageDeleteData [13:43:27]Write to MH i2c: 01 00 00 62 29 8B [13:43:27]Write i2c OK [13:43:27]MH_I2C_Read... [13:43:27]Read from MH i2c: 01 [13:43:27]MH_I2C_Read... [13:43:27]Read from MH i2c: 01 07 00 [13:43:27]MH_I2C_Read... [13:43:27]Read from MH i2c: 01 07 00 62 29 00 00 00 00 00 08 0D A7 [13:43:27]RasterBufferAndPrint [13:43:27]line [13:43:27]line [13:43:27]line [13:43:27]line [13:43:27]line [13:43:27]written 0, free lines is 3342 [13:43:27]process_action close_receipt done [13:43:27]requested_data is exist [13:43:27]produce_requested_data [13:43:27]requested_item fm.sn is exist - process it [13:43:27]wFMCommunicate request_size=4 [13:43:27]MH_SAM_APDU [13:43:27]CAPDU: 80 11 00 00 [13:43:27]Write to MH i2c: E2 08 00 69 29 80 11 00 00 00 00 00 00 0C [13:43:27]Write i2c OK [13:43:27]MH_I2C_Read... [13:43:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:27]Read from MH i2c: E2 [13:43:27]MH_I2C_Read... [13:43:27]Read from MH i2c: E2 17 00 [13:43:27]MH_I2C_Read... [13:43:27]Read from MH i2c: E2 17 00 69 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 63 [13:43:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:43:27]wFMCommunicate OK [13:43:27]requested_item fd.num is exist - process it [13:43:27]SAM_PROTO_GetFieldsCounters [13:43:27]wFMCommunicate request_size=4 [13:43:27]MH_SAM_APDU [13:43:27]CAPDU: 80 13 00 00 [13:43:27]Write to MH i2c: E2 08 00 6A 29 80 13 00 00 00 00 00 00 0F [13:43:27]Write i2c OK [13:43:27]MH_I2C_Read... [13:43:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:43:27]Read from MH i2c: E2 [13:43:27]MH_I2C_Read... [13:43:27]Read from MH i2c: E2 62 00 [13:43:27]MH_I2C_Read... [13:43:27]Read from MH i2c: E2 62 00 6A 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A1 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 51 01 00 00 5E 04 04 00 51 01 00 00 57 04 04 00 52 01 00 00 19 04 04 00 00 00 00 00 90 00 61 [13:43:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A1 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 51 01 00 00 5E 04 04 00 51 01 00 00 57 04 04 00 52 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:43:27]wFMCommunicate OK [13:43:27]SAM_PROTO_GetFieldsCounters done [13:43:27]requested_item shift.num is exist - process it [13:43:27]requested_item shift.opened is exist - process it [13:43:27]req_shift_opened [13:43:27]FM_GetShiftState [13:43:27]SAM_PROTO_GetShiftState [13:43:27]wFMCommunicate request_size=4 [13:43:27]MH_SAM_APDU [13:43:27]CAPDU: 80 13 01 00 [13:43:27]Write to MH i2c: E2 08 00 6B 29 80 13 01 00 00 00 00 00 11 [13:43:27]Write i2c OK [13:43:27]MH_I2C_Read... [13:43:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:27]Read from MH i2c: E2 [13:43:27]MH_I2C_Read... [13:43:27]Read from MH i2c: E2 0E 00 [13:43:27]MH_I2C_Read... [13:43:27]Read from MH i2c: E2 0E 00 6B 29 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 2B [13:43:27]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:43:27]wFMCommunicate OK [13:43:27]SAM_PROTO_GetShiftState done [13:43:27]FM_GetShiftState done [13:43:27]req_shift_opened done [13:43:27]requested_item shift.open_date is exist - process it [13:43:27]req_shift_open_date [13:43:27]req_shift_open_date done [13:43:27]produce_requested_data done [13:43:27]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227489,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [13:43:27]process_action_free close_receipt [13:43:27]json_value_free [13:43:27]json_value_free done [13:43:27]process_json_proto returns [13:43:27]Send response to host [13:43:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227489,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [13:43:27]free response buf [13:43:27]execute_script done [13:43:27]execute_script returns [13:43:27]free content buf [13:43:27]Sock 8.Close socket [13:43:27]Sock 8.Thread stoped [13:43:27]OFD Sender: No OFD packet to send [13:43:32]OFD Sender: No OFD packet to send [13:43:37]OFD Sender: No OFD packet to send [13:43:42]OFD Sender: No OFD packet to send [13:43:47]OFD Sender: No OFD packet to send [13:43:52]OFD Sender: No OFD packet to send [13:43:55]accept exits with 9 [13:43:55]New connection [13:43:55]New thread 3066543460 created [13:43:55]Thread 3066686820 joined [13:43:55]Waiting for new connection... [13:43:55] Sock 9.Parse request [13:43:55]Sock 9.Check first char [13:43:55]Sock 9.First char is OK [13:43:55]request: POST /json_proto HTTP/1.0 [13:43:55]Method: POST [13:43:55]URL: /json_proto [13:43:55]Method is POST - this is cgi request [13:43:55]url: /json_proto [13:43:55]query_string will be loaded in cgi processing [13:43:55]execute_cgi json_proto POST (null) [13:43:55]execute_cgi path=json_proto method=POST [13:43:55]POST find Content-Length [13:43:55]Host: 172.17.44.195:8080 [13:43:55]Content-Length: 680 [13:43:55]Content-Type: application/json [13:43:55] [13:43:55]POST finish read [13:43:55]Found Content-Length = 680 [13:43:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963013", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:43:55]execute_script... [13:43:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963013", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:43:55]POST & json_proto [13:43:55]process_json_proto [13:43:55]json parsed OK: [13:43:55]protocol is kg_v1.0 [13:43:55]action value=close_receipt [13:43:55]process_action close_receipt [13:43:55]cmd_close_receipt [13:43:55]MH_GetDate [13:43:55]Write to MH i2c: F0 00 00 6C 29 84 [13:43:55]Write i2c OK [13:43:55]MH_I2C_Read... [13:43:55]Read from MH i2c: F0 [13:43:55]MH_I2C_Read... [13:43:55]Read from MH i2c: F0 09 00 [13:43:55]MH_I2C_Read... [13:43:55]Read from MH i2c: F0 09 00 6C 29 00 1D 09 15 67 82 C9 CF 66 AF [13:43:55]GetLastDocTimeStamp 1729431805 [13:43:55]current date 1729431837 [13:43:55]FM_GetShiftState [13:43:55]SAM_PROTO_GetShiftState [13:43:55]wFMCommunicate request_size=4 [13:43:55]MH_SAM_APDU [13:43:55]CAPDU: 80 13 01 00 [13:43:55]Write to MH i2c: E2 08 00 6D 29 80 13 01 00 00 00 00 00 13 [13:43:55]Write i2c OK [13:43:55]MH_I2C_Read... [13:43:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:55]Read from MH i2c: E2 [13:43:55]MH_I2C_Read... [13:43:55]Read from MH i2c: E2 0E 00 [13:43:55]MH_I2C_Read... [13:43:55]Read from MH i2c: E2 0E 00 6D 29 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 2D [13:43:55]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:43:55]wFMCommunicate OK [13:43:55]SAM_PROTO_GetShiftState done [13:43:55]FM_GetShiftState done [13:43:55]opened in 1729383750 [13:43:55]opened+sec_in_day 1729470150 [13:43:55]quantity*price = 400050 [13:43:55]sum+1 = 400051 [13:43:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 338 20.10.2024 13:43 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227490 ФПД: 164582195171197 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T134357&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227490&fm=164582195171197&tin=02508201610067®Number=0000000000091685&sum=400000 [13:43:57]StoreToDocumentArchive [13:43:57]shift 533 fd 227490 [13:43:57]save to /storage/0533/doc_00227490 [13:43:57]save last doc name /storage/0533/doc_00227490 to /storage/kkm_last_doc_name [13:43:57]save OK [13:43:57]Clear old archive folders... [13:43:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:43:57]tlvbuf is B6D67150 [13:43:57]SAM_PROTO_ClearQueue [13:43:57]wFMCommunicate request_size=4 [13:43:57]MH_SAM_APDU [13:43:57]CAPDU: 80 09 00 00 [13:43:57]Write to MH i2c: E2 08 00 7A 29 80 09 00 00 00 00 00 00 15 [13:43:57]Write i2c OK [13:43:57]MH_I2C_Read... [13:43:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:43:57]Read from MH i2c: E2 [13:43:57]MH_I2C_Read... [13:43:57]Read from MH i2c: E2 03 00 [13:43:57]MH_I2C_Read... [13:43:57]Read from MH i2c: E2 03 00 7A 29 00 90 00 17 [13:43:57]RAPDU: 90 00 [13:43:57]wFMCommunicate OK [13:43:57]SAM_PROTO_ClearQueue done [13:43:57]KKMCreateOFDPacket [13:43:57]OFDProtocolAddRootSTLVToBuf [13:43:57]FM_MakeSignedData [13:43:57]FM_MakeSignedData [13:43:57]SAM_PROTO_SignData [13:43:57]wFMCommunicate request_size=4 [13:43:57]MH_SAM_APDU [13:43:57]CAPDU: 80 0D 01 02 [13:43:57]Write to MH i2c: E2 08 00 7B 29 80 0D 01 02 00 00 00 00 1D [13:43:57]Write i2c OK [13:43:57]MH_I2C_Read... [13:43:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:43:57]Read from MH i2c: E2 [13:43:57]MH_I2C_Read... [13:43:57]Read from MH i2c: E2 03 00 [13:43:57]MH_I2C_Read... [13:43:57]Read from MH i2c: E2 03 00 7B 29 00 90 00 18 [13:43:57]RAPDU: 90 00 [13:43:57]wFMCommunicate OK [13:43:57]wFMCommunicate request_size=255 [13:43:57]MH_SAM_APDU [13:43:57]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 1D 09 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A2 78 03 00 35 04 06 00 95 AF C7 47 [13:43:57]Write to MH i2c: E2 02 01 7C 29 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 1D 09 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A2 78 03 00 35 04 06 00 95 AF C7 47 00 00 4A [13:43:57]Write i2c OK [13:43:57]MH_I2C_Read... [13:43:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:57]Read from MH i2c: E2 [13:43:57]MH_I2C_Read... [13:43:57]Read from MH i2c: E2 03 00 [13:43:57]MH_I2C_Read... [13:43:57]Read from MH i2c: E2 03 00 7C 29 00 90 00 19 [13:43:57]RAPDU: 90 00 [13:43:57]wFMCommunicate OK [13:43:57]wFMCommunicate request_size=7 [13:43:57]MH_SAM_APDU [13:43:57]CAPDU: 80 0D 02 02 02 8F 7D [13:43:57]Write to MH i2c: E2 0A 00 7D 29 80 0D 02 02 02 00 8F 7D 00 00 30 [13:43:57]Write i2c OK [13:43:57]MH_I2C_Read... [13:43:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:57]Read from MH i2c: E2 [13:43:57]MH_I2C_Read... [13:43:57]Read from MH i2c: E2 03 00 [13:43:57]MH_I2C_Read... [13:43:57]Read from MH i2c: E2 03 00 7D 29 00 90 00 1A [13:43:57]RAPDU: 90 00 [13:43:57]wFMCommunicate OK [13:43:57]wFMCommunicate request_size=4 [13:43:57]MH_SAM_APDU [13:43:57]CAPDU: 80 0D 03 02 [13:43:57]Write to MH i2c: E2 08 00 7E 29 80 0D 03 02 00 00 00 00 22 [13:43:57]Write i2c OK [13:43:57]MH_I2C_Read... [13:43:57]OFD Sender: No OFD packet to send [13:43:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:43:57]Read from MH i2c: E2 [13:43:57]MH_I2C_Read... [13:43:57]Read from MH i2c: E2 0B 00 [13:43:57]MH_I2C_Read... [13:43:57]Read from MH i2c: E2 0B 00 7E 29 00 C5 06 00 06 D8 AB 39 DF 90 00 8F [13:43:57]RAPDU: C5 06 00 06 D8 AB 39 DF 90 00 [13:43:57]wFMCommunicate OK [13:43:57]SAM_PROTO_SignData done [13:43:57]FM_MakeSignedData done [13:43:57]CreateOFDProtocolMessage [13:43:57]wFMCommunicate request_size=4 [13:43:57]MH_SAM_APDU [13:43:57]CAPDU: 80 11 00 00 [13:43:57]Write to MH i2c: E2 08 00 7F 29 80 11 00 00 00 00 00 00 22 [13:43:57]Write i2c OK [13:43:57]MH_I2C_Read... [13:43:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:57]Read from MH i2c: E2 [13:43:57]MH_I2C_Read... [13:43:57]Read from MH i2c: E2 17 00 [13:43:57]MH_I2C_Read... [13:43:57]Read from MH i2c: E2 17 00 7F 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 79 [13:43:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:43:57]wFMCommunicate OK [13:43:57]CreateOFDProtocolMessage done [13:43:57]OFDSenderStorePacket 227490 [13:43:57]StoreOFDPacket docnum=227490 [13:43:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 E0 6E 04 01 57 AC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 1D 09 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A2 78 03 00 35 04 06 00 95 AF C7 47 8F 7D C5 06 00 06 D8 AB 39 DF [13:43:57]CheckFolder [13:43:57]dirname=/storage/ofd_packets [13:43:57]CheckFolder done [13:43:57]ProducePacketName [13:43:57]name=ofd_packets/00227490 [13:43:57]NVStorageSaveData ofd_packets/00227490 [13:43:57]File name is /storage/ofd_packets/00227490 [13:43:57]Write 298 bytes [13:43:57]NVStorageSaveData done [13:43:57]OFDSenderStorePacket done [13:43:57]KKMCreateOFDPacket done [13:43:57]NVStorageSaveData kkm_last_timestamp [13:43:57]File name is /storage/kkm_last_timestamp [13:43:57]Write 4 bytes [13:43:57]NVStorageSaveData done [13:43:57]ExternCall_PrintAddStr [13:43:57]wPrintStart [13:43:57]Write to MH i2c: 01 00 00 80 29 A9 [13:43:57]Write i2c OK [13:43:57]MH_I2C_Read... [13:43:57]Read from MH i2c: 01 [13:43:57]MH_I2C_Read... [13:43:57]Read from MH i2c: 01 07 00 [13:43:57]MH_I2C_Read... [13:43:57]Read from MH i2c: 01 07 00 80 29 00 00 00 00 00 FF 0F BE [13:43:57]RasterBufferAndPrint [13:43:57]line Счет N : (1)1963013 [13:43:57]line ИНН: 02508201610067 [13:43:57]line Контрольно-Кассовый Чек [13:43:57]line ПРОДАЖА [13:43:57]line ТРК (МРК, ГНК) : 61 [13:43:57]line Товар: 2710194210 [13:43:57]line ДТ-К-5 [13:43:57]line 52.500 * 76.20 [13:43:57]line = 4000.50 [13:43:57]line НДС 12% НСП 1% [13:43:57]line > о реализуемом товаре [13:43:57]line ОКРУГЛЕНИЕ: -0.50 [13:43:57]line ИТОГО: 4000.00 [13:43:57]line Внесено: 4000.00 [13:43:57]line СДАЧА: 0.00 [13:43:57]line НСП 1% : 35.40 [13:43:57]line НДС 12% : 424.83 [13:43:57]line Наличными: 4000.00 [13:43:57]line Безнал.: 0.00 [13:43:57]line Место: АЗС № 133 "Партнер Нефть" [13:43:57]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:43:57]line СНО: Общий режим [13:43:57]line Чек 338 20.10.2024 13:43 [13:43:57]line Смена: 533 ФФД: 1.0 [13:43:57]line ЗНМ: 0300000091 [13:43:57]line РНМ: 0000000000091685 [13:43:57]line Версия ККМ: 001 [13:43:57]line ФМ: 0000000000871839 [13:43:57]line ФД: 227490 [13:43:57]line ФПД: 164582195171197 [13:43:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T134357&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227490&fm=164582195171197&tin=02508201610067®Number=0000000000091685&sum=400000 [13:43:57]OFD Sender: Processing packet 227490 [packets to send 38, broken 37] [13:43:57]ProducePacketName [13:43:57]name=ofd_packets/00227490 [13:43:57]OFD Sender: To server: pG, [13:43:57]CommunicateWithHost lk.salyk.kg:30040 [13:43:57]ConnectInit lk.salyk.kg [13:43:57]written 0, free lines is 4095 [13:43:57]Connected sock=10 [13:43: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 33 39 0C 01 00 00 E0 6E 04 01 57 AC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 1D 09 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A2 78 03 00 35 04 06 00 95 AF C7 47 8F 7D C5 06 00 06 D8 AB 39 DF [13:43:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 F4 C4 47 00 3B 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 33 39 10 04 04 00 A2 78 03 00 F4 03 04 00 1B B4 14 67 B6 04 01 00 00 FF 44 99 7E 2B C9 56 B9 [13:43:58]CommunicateWithHost err = 0 [13:43:58]CheckOFDResponse [13:43:58]1017 (14) - 77093643461234 [13:43:58]1041 (16) - 0000000000871839 [13:43:58]1040 (4) - 227490 [13:43:58]1012 (4) - 20.10.2024 07:41 [13:43:58]1206 (1) - 0 [13:43:58]OFD Sender: Remove packet 227490 [13:43:58]ProducePacketName [13:43:58]name=ofd_packets/00227490 [13:43:58]NVStorageDeleteData [13:43:58]Write to MH i2c: 01 00 00 AA 29 D3 [13:43:58]Write i2c OK [13:43:58]MH_I2C_Read... [13:43:58]Read from MH i2c: 01 [13:43:58]MH_I2C_Read... [13:43:58]Read from MH i2c: 01 07 00 [13:43:58]MH_I2C_Read... [13:43:58]Read from MH i2c: 01 07 00 AA 29 00 00 00 00 00 0C 0D F3 [13:43:58]RasterBufferAndPrint [13:43:58]line [13:43:58]line [13:43:58]line [13:43:58]line [13:43:58]line [13:43:58]written 0, free lines is 3346 [13:43:58]process_action close_receipt done [13:43:58]requested_data is exist [13:43:58]produce_requested_data [13:43:58]requested_item fm.sn is exist - process it [13:43:58]wFMCommunicate request_size=4 [13:43:58]MH_SAM_APDU [13:43:58]CAPDU: 80 11 00 00 [13:43:58]Write to MH i2c: E2 08 00 B1 29 80 11 00 00 00 00 00 00 54 [13:43:58]Write i2c OK [13:43:58]MH_I2C_Read... [13:43:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:58]Read from MH i2c: E2 [13:43:58]MH_I2C_Read... [13:43:58]Read from MH i2c: E2 17 00 [13:43:58]MH_I2C_Read... [13:43:58]Read from MH i2c: E2 17 00 B1 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 AB [13:43:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:43:58]wFMCommunicate OK [13:43:58]requested_item fd.num is exist - process it [13:43:58]SAM_PROTO_GetFieldsCounters [13:43:58]wFMCommunicate request_size=4 [13:43:58]MH_SAM_APDU [13:43:58]CAPDU: 80 13 00 00 [13:43:58]Write to MH i2c: E2 08 00 B2 29 80 13 00 00 00 00 00 00 57 [13:43:58]Write i2c OK [13:43:58]MH_I2C_Read... [13:43:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:43:58]Read from MH i2c: E2 [13:43:58]MH_I2C_Read... [13:43:58]Read from MH i2c: E2 62 00 [13:43:58]MH_I2C_Read... [13:43:58]Read from MH i2c: E2 62 00 B2 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A2 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 52 01 00 00 5E 04 04 00 52 01 00 00 57 04 04 00 53 01 00 00 19 04 04 00 00 00 00 00 90 00 AD [13:43: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A2 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 52 01 00 00 5E 04 04 00 52 01 00 00 57 04 04 00 53 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:43:58]wFMCommunicate OK [13:43:58]SAM_PROTO_GetFieldsCounters done [13:43:58]requested_item shift.num is exist - process it [13:43:58]requested_item shift.opened is exist - process it [13:43:58]req_shift_opened [13:43:58]FM_GetShiftState [13:43:58]SAM_PROTO_GetShiftState [13:43:58]wFMCommunicate request_size=4 [13:43:58]MH_SAM_APDU [13:43:58]CAPDU: 80 13 01 00 [13:43:58]Write to MH i2c: E2 08 00 B3 29 80 13 01 00 00 00 00 00 59 [13:43:58]Write i2c OK [13:43:58]MH_I2C_Read... [13:43:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:58]Read from MH i2c: E2 [13:43:58]MH_I2C_Read... [13:43:58]Read from MH i2c: E2 0E 00 [13:43:58]MH_I2C_Read... [13:43:58]Read from MH i2c: E2 0E 00 B3 29 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 73 [13:43:58]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:43:58]wFMCommunicate OK [13:43:58]SAM_PROTO_GetShiftState done [13:43:58]FM_GetShiftState done [13:43:58]req_shift_opened done [13:43:58]requested_item shift.open_date is exist - process it [13:43:58]req_shift_open_date [13:43:58]req_shift_open_date done [13:43:58]produce_requested_data done [13:43:58]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227490,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [13:43:58]process_action_free close_receipt [13:43:58]json_value_free [13:43:58]json_value_free done [13:43:58]process_json_proto returns [13:43:58]Send response to host [13:43:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227490,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [13:43:58]free response buf [13:43:58]execute_script done [13:43:58]execute_script returns [13:43:58]free content buf [13:43:58]Sock 9.Close socket [13:43:58]Sock 9.Thread stoped [13:43:58]OFD Sender: No OFD packet to send [13:44:03]OFD Sender: No OFD packet to send [13:44:08]OFD Sender: No OFD packet to send [13:44:13]OFD Sender: No OFD packet to send [13:44:18]OFD Sender: No OFD packet to send [13:44:23]OFD Sender: No OFD packet to send [13:44:28]OFD Sender: No OFD packet to send [13:44:33]OFD Sender: No OFD packet to send [13:44:38]OFD Sender: No OFD packet to send [13:44:43]OFD Sender: No OFD packet to send [13:44:48]OFD Sender: No OFD packet to send [13:44:53]OFD Sender: No OFD packet to send [13:44:58]OFD Sender: No OFD packet to send [13:45:03]OFD Sender: No OFD packet to send [13:45:08]OFD Sender: No OFD packet to send [13:45:12]accept exits with 8 [13:45:12]New connection [13:45:12]New thread 3066686820 created [13:45:12]Thread 3066543460 joined [13:45:12]Waiting for new connection... [13:45:12] Sock 8.Parse request [13:45:12]Sock 8.Check first char [13:45:12]Sock 8.First char is OK [13:45:12]request: POST /json_proto HTTP/1.0 [13:45:12]Method: POST [13:45:12]URL: /json_proto [13:45:12]Method is POST - this is cgi request [13:45:12]url: /json_proto [13:45:12]query_string will be loaded in cgi processing [13:45:12]execute_cgi json_proto POST (null) [13:45:12]execute_cgi path=json_proto method=POST [13:45:12]POST find Content-Length [13:45:12]Host: 172.17.44.195:8080 [13:45:12]Content-Length: 683 [13:45:12]Content-Type: application/json [13:45:12] [13:45:12]POST finish read [13:45:12]Found Content-Length = 683 [13:45:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963015", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:45:12]execute_script... [13:45: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)1963015", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:45:12]POST & json_proto [13:45:12]process_json_proto [13:45:12]json parsed OK: [13:45:12]protocol is kg_v1.0 [13:45:12]action value=close_receipt [13:45:12]process_action close_receipt [13:45:12]cmd_close_receipt [13:45:12]MH_GetDate [13:45:12]Write to MH i2c: F0 00 00 B4 29 CC [13:45:12]Write i2c OK [13:45:12]MH_I2C_Read... [13:45:12]Read from MH i2c: F0 [13:45:12]MH_I2C_Read... [13:45:12]Read from MH i2c: F0 09 00 [13:45:12]MH_I2C_Read... [13:45:12]Read from MH i2c: F0 09 00 B4 29 00 69 09 15 67 82 C9 CF 66 43 [13:45:12]GetLastDocTimeStamp 1729431837 [13:45:12]current date 1729431913 [13:45:12]FM_GetShiftState [13:45:12]SAM_PROTO_GetShiftState [13:45:12]wFMCommunicate request_size=4 [13:45:12]MH_SAM_APDU [13:45:12]CAPDU: 80 13 01 00 [13:45:12]Write to MH i2c: E2 08 00 B5 29 80 13 01 00 00 00 00 00 5B [13:45:12]Write i2c OK [13:45:12]MH_I2C_Read... [13:45:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:12]Read from MH i2c: E2 [13:45:12]MH_I2C_Read... [13:45:12]Read from MH i2c: E2 0E 00 [13:45:12]MH_I2C_Read... [13:45:12]Read from MH i2c: E2 0E 00 B5 29 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 75 [13:45:12]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:45:12]wFMCommunicate OK [13:45:12]SAM_PROTO_GetShiftState done [13:45:12]FM_GetShiftState done [13:45:12]opened in 1729383750 [13:45:12]opened+sec_in_day 1729470150 [13:45:12]quantity*price = 200031 [13:45:12]sum+1 = 200032 [13:45:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 339 20.10.2024 13:45 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227491 ФПД: 21341063777157 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T134514&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227491&fm=21341063777157&tin=02508201610067®Number=0000000000091685&sum=200000 [13:45:13]StoreToDocumentArchive [13:45:13]shift 533 fd 227491 [13:45:13]save to /storage/0533/doc_00227491 [13:45:13]save last doc name /storage/0533/doc_00227491 to /storage/kkm_last_doc_name [13:45:13]save OK [13:45:13]Clear old archive folders... [13:45:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:45:13]tlvbuf is 019674F0 [13:45:13]SAM_PROTO_ClearQueue [13:45:13]wFMCommunicate request_size=4 [13:45:13]MH_SAM_APDU [13:45:13]CAPDU: 80 09 00 00 [13:45:13]Write to MH i2c: E2 08 00 C2 29 80 09 00 00 00 00 00 00 5D [13:45:13]Write i2c OK [13:45:13]MH_I2C_Read... [13:45:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:45:13]Read from MH i2c: E2 [13:45:13]MH_I2C_Read... [13:45:13]Read from MH i2c: E2 03 00 [13:45:13]MH_I2C_Read... [13:45:13]Read from MH i2c: E2 03 00 C2 29 00 90 00 5F [13:45:13]RAPDU: 90 00 [13:45:13]wFMCommunicate OK [13:45:13]SAM_PROTO_ClearQueue done [13:45:13]KKMCreateOFDPacket [13:45:13]OFDProtocolAddRootSTLVToBuf [13:45:13]FM_MakeSignedData [13:45:13]FM_MakeSignedData [13:45:13]SAM_PROTO_SignData [13:45:13]wFMCommunicate request_size=4 [13:45:13]MH_SAM_APDU [13:45:13]CAPDU: 80 0D 01 02 [13:45:13]Write to MH i2c: E2 08 00 C3 29 80 0D 01 02 00 00 00 00 65 [13:45:13]Write i2c OK [13:45:13]MH_I2C_Read... [13:45:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:45:13]Read from MH i2c: E2 [13:45:13]MH_I2C_Read... [13:45:13]Read from MH i2c: E2 03 00 [13:45:13]MH_I2C_Read... [13:45:13]Read from MH i2c: E2 03 00 C3 29 00 90 00 60 [13:45:13]RAPDU: 90 00 [13:45:13]wFMCommunicate OK [13:45:13]wFMCommunicate request_size=255 [13:45:13]MH_SAM_APDU [13:45:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 6A 09 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A3 78 03 00 35 04 06 00 13 [13:45:13]Write to MH i2c: E2 02 01 C4 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 6A 09 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A3 78 03 00 35 04 06 00 13 00 00 C9 [13:45:14]Write i2c OK [13:45:14]MH_I2C_Read... [13:45:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:14]Read from MH i2c: E2 [13:45:14]MH_I2C_Read... [13:45:14]Read from MH i2c: E2 03 00 [13:45:14]MH_I2C_Read... [13:45:14]Read from MH i2c: E2 03 00 C4 29 00 90 00 61 [13:45:14]RAPDU: 90 00 [13:45:14]wFMCommunicate OK [13:45:14]wFMCommunicate request_size=10 [13:45:14]MH_SAM_APDU [13:45:14]CAPDU: 80 0D 02 02 05 68 DA 86 8B 85 [13:45:14]Write to MH i2c: E2 0D 00 C5 29 80 0D 02 02 05 00 68 DA 86 8B 85 00 00 4A [13:45:14]Write i2c OK [13:45:14]MH_I2C_Read... [13:45:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:14]Read from MH i2c: E2 [13:45:14]MH_I2C_Read... [13:45:14]Read from MH i2c: E2 03 00 [13:45:14]MH_I2C_Read... [13:45:14]Read from MH i2c: E2 03 00 C5 29 00 90 00 62 [13:45:14]RAPDU: 90 00 [13:45:14]wFMCommunicate OK [13:45:14]wFMCommunicate request_size=4 [13:45:14]MH_SAM_APDU [13:45:14]CAPDU: 80 0D 03 02 [13:45:14]Write to MH i2c: E2 08 00 C6 29 80 0D 03 02 00 00 00 00 6A [13:45:14]Write i2c OK [13:45:14]MH_I2C_Read... [13:45:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:45:14]Read from MH i2c: E2 [13:45:14]MH_I2C_Read... [13:45:14]Read from MH i2c: E2 0B 00 [13:45:14]MH_I2C_Read... [13:45:14]Read from MH i2c: E2 0B 00 C6 29 00 DB DE 5E 40 46 73 52 10 90 00 DD [13:45:14]RAPDU: DB DE 5E 40 46 73 52 10 90 00 [13:45:14]wFMCommunicate OK [13:45:14]SAM_PROTO_SignData done [13:45:14]FM_MakeSignedData done [13:45:14]CreateOFDProtocolMessage [13:45:14]wFMCommunicate request_size=4 [13:45:14]MH_SAM_APDU [13:45:14]CAPDU: 80 11 00 00 [13:45:14]Write to MH i2c: E2 08 00 C7 29 80 11 00 00 00 00 00 00 6A [13:45:14]Write i2c OK [13:45:14]MH_I2C_Read... [13:45:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:14]Read from MH i2c: E2 [13:45:14]MH_I2C_Read... [13:45:14]Read from MH i2c: E2 17 00 [13:45:14]MH_I2C_Read... [13:45:14]Read from MH i2c: E2 17 00 C7 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C1 [13:45:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:45:14]wFMCommunicate OK [13:45:14]CreateOFDProtocolMessage done [13:45:14]OFDSenderStorePacket 227491 [13:45:14]StoreOFDPacket docnum=227491 [00:00:09] *** EcrCore started. Build 196 *** [00:00:09]/dev/ttyS4 opened [00:00:09]MH_InterfaceInit /dev/i2c-1 [00:00:09]Malloc ok [00:00:09]MH_GetMetrics [00:00:09]Write to MH i2c: 00 00 00 01 00 00 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 E7 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 8C [00:00:09]Are we in boot? [00:00:09]We are in boot - try to switch [00:00:09]Write to MH i2c: A0 00 00 02 00 A1 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:09]*** [00:00:09]Read from MH i2c: A0 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:09]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:09]*** Waiting for read because exit forced [00:00:09]*** 10 ms more... [00:00:09]*** MH1903S init start (LINUX_LIGHT) [00:00:09]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:09]*** Serial: 3139303353513838 54000000005725E7 (1903SQ88T) [00:00:09]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:09]*** step 0: 5000 (2650, 2350 REF) [00:00:09]*** step 1: 4835 (2500, 2335 REF) [00:00:09]*** step 2: 4676 (2440, 2236 REF) [00:00:09]*** step 3: 4523 (2280, 2243 REF) [00:00:09]*** step 4: 4376 (2160, 2216 REF) [00:00:09]*** step 5: 4235 (2050, 2185 REF) [00:00:09]*** step 6: 4098 (1950, 2148 REF) [00:00:09]*** step 7: 3967 (1870, 2097 REF) [00:00:09]*** step 8: 3840 (1828, 2012 REF) [00:00:09]*** step 9: 3719 (1728, 1991 REF) [00:00:09]*** step 10: 3601 (1675, 1926 REF) [00:00:09]*** step 11: 3488 (1635, 1853 REF) [00:00:09]*** step 12: 3379 (1595, 1784 REF) [00:00:09]*** step 13: 3275 (1565, 1710 REF) [00:00:09]*** step 14: 3174 (1543, 1631 REF) [00:00:09]*** step 15: 3077 (1523, 1554 REF) [00:00:09]*** step 16: 2983 (1503, 1480 REF) [00:00:09]*** step 17: 2893 (1486, 1407 REF) [00:00:09]*** step 18: 2806 (1466, 1340 REF) [00:00:09]*** step 19: 2723 (1426, 1297 REF) [00:00:09]*** step 20: 2642 (1406, 1236 REF) [00:00:09]*** step 21: 2565 (1384, 1181 REF) [00:00:09]*** step 22: 2490 (1364, 1126 REF) [00:00:09]*** step 23: 2418 (1344, 1074 REF) [00:00:09]*** step 24: 2349 (1322, 1027 REF) [00:00:09]*** step 25: 2283 (1302, 981 REF) [00:00:09]*** step 26: 2218 (1282, 936 REF) [00:00:09]*** step 27: 2157 (1262, 895 REF) [00:00:09]*** step 28: 2097 (1242, 855 REF) [00:00:09]*** step 29: 2040 (1222, 818 REF) [00:00:09]*** step 30: 1985 (1202, 783 REF) [00:00:09]*** step 31: 1932 (1191, 741 REF) [00:00:09]*** step 32: 1880 (1181, 699 REF) [00:00:09]*** step 33: 1831 (1171, 660 REF) [00:00:09]*** step 34: 1784 (1161, 623 REF) [00:00:09]*** step 35: 1738 (1151, 587 REF) [00:00:09]*** step 36: 1694 (1141, 553 REF) [00:00:09]*** step 37: 1652 (1131, 521 REF) [00:00:09]*** step 38: 1611 (1121, 490 REF) [00:00:09]*** step 39: 1572 (1111, 461 REF) [00:00:09]*** step 40: 1534 (1103, 431 REF) [00:00:09]*** step 41: 1497 (1093, 404 REF) [00:00:09]*** step 42: 1462 (1083, 379 REF) [00:00:09]*** step 43: 1428 (1073, 355 REF) [00:00:09]*** step 44: 1396 (1063, 333 REF) [00:00:09]*** step 45: 1365 (1053, 312 REF) [00:00:09]*** step 46: 1334 (1043, 291 REF) [00:00:09]*** step 47: 1305 (1033, 272 REF) [00:00:09]*** step 48: 1277 (1023, 254 REF) [00:00:09]*** step 49: 1250 (1013, 237 REF) [00:00:09]*** step 50: 1224 (990, 234 REF) [00:00:09]*** step 51: 1199 (980, 219 REF) [00:00:09]*** step 52: 1175 (970, 205 REF) [00:00:09]*** step 53: 1152 (960, 192 REF) [00:00:09]*** step 54: 1130 (950, 180 REF) [00:00:09]*** step 55: 1108 (940, 168 REF) [00:00:09]*** step 56: 1088 (930, 158 REF) [00:00:09]*** step 57: 1068 (920, 148 REF) [00:00:09]*** step 58: 1049 (910, 139 REF) [00:00:09]*** step 59: 1030 (900, 130 REF) [00:00:09]*** step 60: 1012 (890, 122 REF) [00:00:09]*** step 61: 995 (880, 115 REF) [00:00:09]*** step 62: 979 (870, 109 REF) [00:00:09]*** step 63: 963 (860, 103 REF) [00:00:09]*** step 64: 948 (850, 98 REF) [00:00:09]*** step 65: 933 (840, 93 REF) [00:00:09]*** step 66: 919 (830, 89 REF) [00:00:09]*** step 67: 905 (820, 85 REF) [00:00:09]*** step 68: 892 (810, 82 REF) [00:00:09]*** step 69: 879 (800, 79 REF) [00:00:09]*** step 70: 867 (790, 77 REF) [00:00:09]*** step 71: 855 (780, 75 REF) [00:00:09]*** step 72: 844 (770, 74 REF) [00:00:09]*** step 73: 833 (760, 73 REF) [00:00:09]*** step 74: 822 (750, 72 REF) [00:00:09]*** step 75: 812 (740, 72 REF) [00:00:09]*** step 76: 803 (730, 73 REF) [00:00:09]*** step 77: 793 (720, 73 REF) [00:00:09]*** step 78: 784 (710, 74 REF) [00:00:09]*** step 79: 776 (700, 76 REF) [00:00:09]*** step 80: 767 (690, 77 REF) [00:00:09]*** step 81: 759 (680, 79 REF) [00:00:09]*** step 82: 751 (670, 81 REF) [00:00:09]*** step 83: 744 (660, 84 REF) [00:00:09]*** step 84: 737 (650, 87 REF) [00:00:09]*** step 85: 730 (640, 90 REF) [00:00:09]*** step 86: 723 (630, 93 REF) [00:00:09]*** step 87: 717 (620, 97 REF) [00:00:09]*** step 88: 710 (610, 100 REF) [00:00:09]*** step 89: 705 (600, 105 REF) [00:00:09]*** step 90: 699 [00:00:09]*** step 91: 693 [00:00:09]*** step 92: 688 [00:00:09]*** step 93: 683 [00:00:09]*** step 94: 678 [00:00:09]*** step 95: 673 [00:00:09]*** step 96: 669 [00:00:09]*** step 97: 664 [00:00:09]*** step 98: 660 [00:00:09]*** step 99: 656 [00:00:09]*** step 100: 652 [00:00:09]*** step 101: 648 [00:00:09]*** step 102: 644 [00:00:09]*** step 103: 641 [00:00:09]*** step 104: 638 [00:00:09]*** step 105: 634 [00:00:09]*** step 106: 631 [00:00:09]*** step 107: 628 [00:00:09]*** step 108: 625 [00:00:09]*** step 109: 622 [00:00:09]*** step 110: 620 [00:00:09]*** step 111: 617 [00:00:09]*** step 112: 615 [00:00:09]*** step 113: 612 [00:00:09]*** step 114: 610 [00:00:09]*** step 115: 608 [00:00:09]*** step 116: 605 [00:00:09]*** step 117: 603 [00:00:09]*** step 118: 601 [00:00:09]*** step 119: 599 [00:00:09]*** printer: Printer HW initialized [00:00:09]*** initSamCard finished [00:00:09]*** RTC: 4538395+1724893570=1729431965 [00:00:09]*** BPK Status Register BPK_RDY = 0x0 [00:00:09]*** SEN State Register SEN_STATE = 0x220ff [00:00:09]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:09]*** Analog Control Register 0 SEN_ANA0 = 0x33530623 [00:00:09]*** Is cutter blocked? [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 03 00 02 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 E7 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 8D [00:00:10]Are we in boot? [00:00:10]We are not in boot now [00:00:10]Write to MH i2c: 01 00 00 04 00 04 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:10]Model is 3 [00:00:10]MH firmware is 30620 [00:00:10]MH boot firmware is 3 [00:00:10]MH_SetPrinterDots 448 [00:00:10]HeadWidthInBytes 56 [00:00:10]maxmasksize 7 [00:00:10]Write to MH i2c: D6 06 00 05 00 41 00 60 00 FF FF 7F [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:10]Write to MH i2c: D5 00 00 06 00 DA [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]ExternCall_SetCallbacks [00:00:10]NVStorageInit [00:00:10]MH_GetDate [00:00:10]Write to MH i2c: F0 00 00 07 00 F6 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 07 00 00 9E 09 15 67 82 C9 CF 66 A2 [13:46:06]Current date/time: 20.10.2024 13:46 [13:46:06]FM_Init [13:46:06]wFMConnect [13:46:06]MH_SAM_On [13:46:06]Write to MH i2c: E0 00 00 08 00 E7 [13:46:06]Write i2c OK [13:46:06]MH_I2C_Read... [13:46:06]*** iso7816_init finished! [13:46:06]*** atr: [13:46:06]*** 0F 3B D5 18 FF 81 91 FE [13:46:06]*** 1F C3 80 73 C8 21 10 0A [13:46:06]*** 00 00 00 00 00 00 00 00 [13:46:06]*** 00 00 00 00 00 00 00 00 [13:46:06]*** 00 00 00 00 00 00 00 00 [13:46:06]*** 00 00 00 00 00 00 00 00 [13:46:06]*** 00 00 00 00 00 00 00 00 [13:46:06]*** 00 00 00 00 00 00 00 00 [13:46:06]Read from MH i2c: E0 [13:46:06]MH_I2C_Read... [13:46:06]Read from MH i2c: E0 10 00 [13:46:06]MH_I2C_Read... [13:46:06]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 [13:46:06]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [13:46:06]wFMCommunicate request_size=10 [13:46:06]MH_SAM_APDU [13:46:06]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [13:46:06]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [13:46:06]Write i2c OK [13:46:06]MH_I2C_Read... [13:46:06]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [13:46:06]Read from MH i2c: E2 [13:46:06]MH_I2C_Read... [13:46:06]Read from MH i2c: E2 03 00 [13:46:06]MH_I2C_Read... [13:46:06]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [13:46:06]RAPDU: 90 00 [13:46:06]wFMCommunicate OK [13:46:06]wFMCommunicate request_size=4 [13:46:06]MH_SAM_APDU [13:46:06]CAPDU: 80 11 00 00 [13:46:06]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [13:46:06]Write i2c OK [13:46:06]MH_I2C_Read... [13:46:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:46:06]Read from MH i2c: E2 [13:46:06]MH_I2C_Read... [13:46:06]Read from MH i2c: E2 17 00 [13:46:06]MH_I2C_Read... [13:46:06]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 33 39 90 00 DB [13:46:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:46:06]wFMCommunicate OK [13:46:06]Detected FM SN is 0000000000871839 [13:46:06]Stored FM SN is 0000000000871839 [13:46:06]wFMCommunicate request_size=9 [13:46:06]MH_SAM_APDU [13:46:06]CAPDU: 80 16 00 00 04 79 A4 00 00 [13:46:06]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 79 A4 00 00 00 00 AF [13:46:06]Write i2c OK [13:46:06]MH_I2C_Read... [13:46:06]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [13:46:06]Read from MH i2c: E2 [13:46:06]MH_I2C_Read... [13:46:06]Read from MH i2c: E2 03 00 [13:46:06]MH_I2C_Read... [13:46:06]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [13:46:06]RAPDU: 90 00 [13:46:06]wFMCommunicate OK [13:46:06]FM PIN OK [13:46:06]wFMCommunicate request_size=8 [13:46:06]MH_SAM_APDU [13:46:06]CAPDU: 80 14 04 00 03 02 00 01 [13:46:06]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [13:46:06]Write i2c OK [13:46:06]MH_I2C_Read... [13:46:06]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [13:46:06]Read from MH i2c: E2 [13:46:06]MH_I2C_Read... [13:46:06]Read from MH i2c: E2 03 00 [13:46:06]MH_I2C_Read... [13:46:06]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [13:46:06]RAPDU: 90 00 [13:46:06]wFMCommunicate OK [13:46:06]wFMCommunicate request_size=13 [13:46:06]MH_SAM_APDU [13:46:06]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [13:46:06]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 [13:46:06]Write i2c OK [13:46:06]MH_I2C_Read... [13:46:06]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [13:46:06]Read from MH i2c: E2 [13:46:06]MH_I2C_Read... [13:46:06]Read from MH i2c: E2 03 00 [13:46:06]MH_I2C_Read... [13:46:06]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [13:46:06]RAPDU: 90 00 [13:46:06]wFMCommunicate OK [13:46:06]wFMCommunicate request_size=4 [13:46:06]MH_SAM_APDU [13:46:06]CAPDU: 80 11 00 00 [13:46:06]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [13:46:06]Write i2c OK [13:46:06]MH_I2C_Read... [13:46:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:46:06]Read from MH i2c: E2 [13:46:06]MH_I2C_Read... [13:46:06]Read from MH i2c: E2 17 00 [13:46:06]MH_I2C_Read... [13:46:06]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 33 39 90 00 DF [13:46:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:46:06]wFMCommunicate OK [13:46:06]DocumentArchiveInit [13:46:06]Start Httpd... [13:46:06]Httpd thread 3067649380 created [13:46:06]Write to MH i2c: 01 00 00 0F 00 0F [13:46:06]Write i2c OK [13:46:06]MH_I2C_Read... [13:46:06]Read from MH i2c: 01 [13:46:06]MH_I2C_Read... [13:46:06]Read from MH i2c: 01 07 00 [13:46:06]MH_I2C_Read... [13:46:06]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [13:46:06]MH Int Process started [13:46:06]Allocated Socket 8 [13:46:06]Bind OK [13:46:06]Listen OK [13:46:06]httpd running on port 8080 [13:46:06]Waiting for new connection... [13:46:06]OFD Sender: No OFD packet to send [13:46:11]OFD Sender: No OFD packet to send [13:46:16]OFD Sender: No OFD packet to send [13:46:21]OFD Sender: No OFD packet to send [13:46:26]OFD Sender: No OFD packet to send [13:46:31]OFD Sender: No OFD packet to send [13:46:36]OFD Sender: No OFD packet to send [13:46:41]OFD Sender: No OFD packet to send [13:46:46]OFD Sender: No OFD packet to send [13:46:51]OFD Sender: No OFD packet to send [13:46:56]OFD Sender: No OFD packet to send [13:47:01]OFD Sender: No OFD packet to send [13:47:06]OFD Sender: No OFD packet to send [13:47:11]OFD Sender: No OFD packet to send [13:47:16]OFD Sender: No OFD packet to send [13:47:21]OFD Sender: No OFD packet to send [13:47:26]OFD Sender: No OFD packet to send [13:47:31]OFD Sender: No OFD packet to send [13:47:36]OFD Sender: No OFD packet to send [13:47:41]OFD Sender: No OFD packet to send [13:47:46]OFD Sender: No OFD packet to send [13:47:51]OFD Sender: No OFD packet to send [13:47:56]OFD Sender: No OFD packet to send [13:48:01]OFD Sender: No OFD packet to send [13:48:06]OFD Sender: No OFD packet to send [13:48:11]OFD Sender: No OFD packet to send [13:48:16]OFD Sender: No OFD packet to send [13:48:21]OFD Sender: No OFD packet to send [13:48:26]OFD Sender: No OFD packet to send [13:48:31]OFD Sender: No OFD packet to send [13:48:36]OFD Sender: No OFD packet to send [13:48:41]OFD Sender: No OFD packet to send [13:48:46]OFD Sender: No OFD packet to send [13:48:51]OFD Sender: No OFD packet to send [13:48:56]OFD Sender: No OFD packet to send [13:49:01]OFD Sender: No OFD packet to send [13:49:06]OFD Sender: No OFD packet to send [13:49:11]OFD Sender: No OFD packet to send [13:49:16]OFD Sender: No OFD packet to send [13:49:21]OFD Sender: No OFD packet to send [13:49:26]OFD Sender: No OFD packet to send [13:49:31]OFD Sender: No OFD packet to send [13:49:36]OFD Sender: No OFD packet to send [13:49:41]OFD Sender: No OFD packet to send [13:49:46]OFD Sender: No OFD packet to send [13:49:51]OFD Sender: No OFD packet to send [13:49:56]OFD Sender: No OFD packet to send [13:50:01]OFD Sender: No OFD packet to send [13:50:04]accept exits with 9 [13:50:04]New connection [13:50:04]New thread 3067362660 created [13:50:04]Waiting for new connection... [13:50:04] Sock 9.Parse request [13:50:04]Sock 9.Check first char [13:50:04]Sock 9.First char is OK [13:50:04]request: POST /json_proto HTTP/1.0 [13:50:04]Method: POST [13:50:04]URL: /json_proto [13:50:04]Method is POST - this is cgi request [13:50:04]url: /json_proto [13:50:04]query_string will be loaded in cgi processing [13:50:04]execute_cgi json_proto POST (null) [13:50:04]execute_cgi path=json_proto method=POST [13:50:04]POST find Content-Length [13:50:04]Host: 172.17.44.195:8080 [13:50:04]Content-Length: 680 [13:50:04]Content-Type: application/json [13:50:04] [13:50:04]POST finish read [13:50:04]Found Content-Length = 680 [13:50:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963018", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 98.430, "sum" : 7500.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 7500.00, "total" : 7500.00, "payments": [ { "type": 0, "sum" : 7500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:50:04]execute_script... [13: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)1963018", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 98.430, "sum" : 7500.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 7500.00, "total" : 7500.00, "payments": [ { "type": 0, "sum" : 7500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:50:04]POST & json_proto [13:50:04]process_json_proto [13:50:04]json parsed OK: [13:50:04]protocol is kg_v1.0 [13:50:04]action value=close_receipt [13:50:04]process_action close_receipt [13:50:04]cmd_close_receipt [13:50:04]MH_GetDate [13:50:04]Write to MH i2c: F0 00 00 10 00 FF [13:50:04]Write i2c OK [13:50:04]MH_I2C_Read... [13:50:04]Read from MH i2c: F0 [13:50:04]MH_I2C_Read... [13:50:04]Read from MH i2c: F0 09 00 [13:50:04]MH_I2C_Read... [13:50:04]Read from MH i2c: F0 09 00 10 00 00 8D 0A 15 67 82 C9 CF 66 9B [13:50:04]GetLastDocTimeStamp 97 [13:50:04]current date 1729432205 [13:50:04]FM_GetShiftState [13:50:04]SAM_PROTO_GetShiftState [13:50:04]wFMCommunicate request_size=4 [13:50:04]MH_SAM_APDU [13:50:04]CAPDU: 80 13 01 00 [13:50:04]Write to MH i2c: E2 08 00 11 00 80 13 01 00 00 00 00 00 8E [13:50:04]Write i2c OK [13:50:04]MH_I2C_Read... [13:50:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:50:04]Read from MH i2c: E2 [13:50:04]MH_I2C_Read... [13:50:04]Read from MH i2c: E2 0E 00 [13:50:04]MH_I2C_Read... [13:50:04]Read from MH i2c: E2 0E 00 11 00 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 A8 [13:50:04]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:50:04]wFMCommunicate OK [13:50:04]SAM_PROTO_GetShiftState done [13:50:04]FM_GetShiftState done [13:50:04]opened in 1729383750 [13:50:04]opened+sec_in_day 1729470150 [13:50:04]quantity*price = 750036 [13:50:04]sum+1 = 750038 [13:50:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 7500.00 Внесено: 7500.00 СДАЧА: 0.00 НСП 1% : 66.37 НДС 12% : 796.50 Наличными: 7500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 341 20.10.2024 13:50 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227493 ФПД: 185211766935986 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T135005&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227493&fm=185211766935986&tin=02508201610067®Number=0000000000091685&sum=750000 [13:50:05]StoreToDocumentArchive [13:50:05]shift 533 fd 227493 [13:50:05]save to /storage/0533/doc_00227493 [13:50:05]save last doc name /storage/0533/doc_00227493 to /storage/kkm_last_doc_name [13:50:05]save OK [13:50:05]Clear old archive folders... [13:50:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:50:05]tlvbuf is 00D97BC0 [13:50:05]SAM_PROTO_ClearQueue [13:50:05]wFMCommunicate request_size=4 [13:50:05]MH_SAM_APDU [13:50:05]CAPDU: 80 09 00 00 [13:50:05]Write to MH i2c: E2 08 00 1E 00 80 09 00 00 00 00 00 00 90 [13:50:05]Write i2c OK [13:50:05]MH_I2C_Read... [13:50:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:50:05]Read from MH i2c: E2 [13:50:05]MH_I2C_Read... [13:50:05]Read from MH i2c: E2 03 00 [13:50:05]MH_I2C_Read... [13:50:05]Read from MH i2c: E2 03 00 1E 00 00 90 00 92 [13:50:05]RAPDU: 90 00 [13:50:05]wFMCommunicate OK [13:50:05]SAM_PROTO_ClearQueue done [13:50:05]KKMCreateOFDPacket [13:50:05]OFDProtocolAddRootSTLVToBuf [13:50:05]FM_MakeSignedData [13:50:05]FM_MakeSignedData [13:50:05]SAM_PROTO_SignData [13:50:05]wFMCommunicate request_size=4 [13:50:05]MH_SAM_APDU [13:50:05]CAPDU: 80 0D 01 02 [13:50:05]Write to MH i2c: E2 08 00 1F 00 80 0D 01 02 00 00 00 00 98 [13:50:05]Write i2c OK [13:50:05]MH_I2C_Read... [13:50:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:50:05]Read from MH i2c: E2 [13:50:05]MH_I2C_Read... [13:50:05]Read from MH i2c: E2 03 00 [13:50:05]MH_I2C_Read... [13:50:05]Read from MH i2c: E2 03 00 1F 00 00 90 00 93 [13:50:05]RAPDU: 90 00 [13:50:05]wFMCommunicate OK [13:50:05]wFMCommunicate request_size=255 [13:50:05]MH_SAM_APDU [13: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 7E 80 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D5 71 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 71 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 37 01 00 00 00 07 04 06 00 B0 71 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 8D 0A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A5 78 03 00 35 04 06 00 A8 72 F9 93 [13:50:05]Write to MH i2c: E2 02 01 20 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 7E 80 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D5 71 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 71 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 37 01 00 00 00 07 04 06 00 B0 71 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 8D 0A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A5 78 03 00 35 04 06 00 A8 72 F9 93 00 00 2C [13:50:05]Write i2c OK [13:50:05]MH_I2C_Read... [13:50:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:50:05]Read from MH i2c: E2 [13:50:05]MH_I2C_Read... [13:50:05]Read from MH i2c: E2 03 00 [13:50:05]MH_I2C_Read... [13:50:05]Read from MH i2c: E2 03 00 20 00 00 90 00 94 [13:50:05]RAPDU: 90 00 [13:50:05]wFMCommunicate OK [13:50:05]wFMCommunicate request_size=7 [13:50:05]MH_SAM_APDU [13:50:05]CAPDU: 80 0D 02 02 02 91 B2 [13:50:05]Write to MH i2c: E2 0A 00 21 00 80 0D 02 02 02 00 91 B2 00 00 E2 [13:50:05]Write i2c OK [13:50:05]MH_I2C_Read... [13:50:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:50:05]Read from MH i2c: E2 [13:50:05]MH_I2C_Read... [13:50:05]Read from MH i2c: E2 03 00 [13:50:05]MH_I2C_Read... [13:50:05]Read from MH i2c: E2 03 00 21 00 00 90 00 95 [13:50:05]RAPDU: 90 00 [13:50:05]wFMCommunicate OK [13:50:05]wFMCommunicate request_size=4 [13:50:05]MH_SAM_APDU [13:50:05]CAPDU: 80 0D 03 02 [13:50:05]Write to MH i2c: E2 08 00 22 00 80 0D 03 02 00 00 00 00 9D [13:50:05]Write i2c OK [13:50:05]MH_I2C_Read... [13:50:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:50:05]Read from MH i2c: E2 [13:50:05]MH_I2C_Read... [13:50:05]Read from MH i2c: E2 0B 00 [13:50:05]MH_I2C_Read... [13:50:05]Read from MH i2c: E2 0B 00 22 00 00 DF 7C E1 56 B4 7B E9 0C 90 00 54 [13:50:05]RAPDU: DF 7C E1 56 B4 7B E9 0C 90 00 [13:50:05]wFMCommunicate OK [13:50:05]SAM_PROTO_SignData done [13:50:05]FM_MakeSignedData done [13:50:05]CreateOFDProtocolMessage [13:50:05]wFMCommunicate request_size=4 [13:50:05]MH_SAM_APDU [13:50:05]CAPDU: 80 11 00 00 [13:50:05]Write to MH i2c: E2 08 00 23 00 80 11 00 00 00 00 00 00 9D [13:50:05]Write i2c OK [13:50:05]MH_I2C_Read... [13:50:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:50:05]Read from MH i2c: E2 [13:50:05]MH_I2C_Read... [13:50:05]Read from MH i2c: E2 17 00 [13:50:05]MH_I2C_Read... [13:50:05]Read from MH i2c: E2 17 00 23 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F4 [13:50:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:50:05]wFMCommunicate OK [13:50:05]CreateOFDProtocolMessage done [13:50:05]OFDSenderStorePacket 227493 [13:50:05]StoreOFDPacket docnum=227493 [13:50:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 D9 3B 04 01 36 82 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 80 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D5 71 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 71 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 37 01 00 00 00 07 04 06 00 B0 71 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 8D 0A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A5 78 03 00 35 04 06 00 A8 72 F9 93 91 B2 DF 7C E1 56 B4 7B E9 0C [13:50:05]CheckFolder [13:50:05]dirname=/storage/ofd_packets [13:50:05]CheckFolder done [13:50:05]ProducePacketName [13:50:05]name=ofd_packets/00227493 [13:50:05]NVStorageSaveData ofd_packets/00227493 [13:50:05]File name is /storage/ofd_packets/00227493 [13:50:05]Write 298 bytes [13:50:05]NVStorageSaveData done [13:50:05]OFDSenderStorePacket done [13:50:05]KKMCreateOFDPacket done [13:50:05]NVStorageSaveData kkm_last_timestamp [13:50:05]File name is /storage/kkm_last_timestamp [13:50:05]Write 4 bytes [13:50:05]NVStorageSaveData done [13:50:05]ExternCall_PrintAddStr [13:50:05]wPrintStart [13:50:05]Write to MH i2c: 01 00 00 24 00 24 [13:50:05]Write i2c OK [13:50:05]MH_I2C_Read... [13:50:05]Read from MH i2c: 01 [13:50:05]MH_I2C_Read... [13:50:05]Read from MH i2c: 01 07 00 [13:50:05]MH_I2C_Read... [13:50:05]Read from MH i2c: 01 07 00 24 00 00 00 00 00 00 FF 0F 39 [13:50:05]RasterBufferAndPrint [13:50:05]line Счет N : (1)1963018 [13:50:05]line ИНН: 02508201610067 [13:50:05]line Контрольно-Кассовый Чек [13:50:05]line ПРОДАЖА [13:50:05]line ТРК (МРК, ГНК) : 21 [13:50:05]line Товар: 2710194210 [13:50:05]line ДТ-К-5 [13:50:05]line 98.430 * 76.20 [13:50:05]line = 7500.37 [13:50:05]line НДС 12% НСП 1% [13:50:05]line > о реализуемом товаре [13:50:05]line ОКРУГЛЕНИЕ: -0.37 [13:50:05]line ИТОГО: 7500.00 [13:50:05]line Внесено: 7500.00 [13:50:05]line СДАЧА: 0.00 [13:50:05]line НСП 1% : 66.37 [13:50:05]line НДС 12% : 796.50 [13:50:05]line Наличными: 7500.00 [13:50:05]line Безнал.: 0.00 [13:50:05]line Место: АЗС № 133 "Партнер Нефть" [13:50:05]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:50:05]line СНО: Общий режим [13:50:05]line Чек 341 20.10.2024 13:50 [13:50:05]line Смена: 533 ФФД: 1.0 [13:50:05]line ЗНМ: 0300000091 [13:50:05]line РНМ: 0000000000091685 [13:50:05]line Версия ККМ: 001 [13:50:05]line ФМ: 0000000000871839 [13:50:05]line ФД: 227493 [13:50:06]line ФПД: 185211766935986 [13:50:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T135005&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227493&fm=185211766935986&tin=02508201610067®Number=0000000000091685&sum=750000 [13:50:06]OFD Sender: Processing packet 227493 [packets to send 38, broken 37] [13:50:06]ProducePacketName [13:50:06]name=ofd_packets/00227493 [13:50:06]OFD Sender: To server: pG, [13:50:06]CommunicateWithHost lk.salyk.kg:30040 [13:50:06]ConnectInit lk.salyk.kg [13:50:06]written 0, free lines is 4095 [13:50:06]Connected sock=10 [13: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 33 39 0C 01 00 00 D9 3B 04 01 36 82 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 80 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D5 71 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 71 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 37 01 00 00 00 07 04 06 00 B0 71 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 8D 0A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A5 78 03 00 35 04 06 00 A8 72 F9 93 91 B2 DF 7C E1 56 B4 7B E9 0C [13: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 33 39 4F 00 00 00 C6 35 47 00 0E 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 33 39 10 04 04 00 A5 78 03 00 F4 03 04 00 8B B5 14 67 B6 04 01 00 00 97 6D D0 85 B6 0C 79 46 [13:50:06]CommunicateWithHost err = 0 [13:50:06]CheckOFDResponse [13:50:06]1017 (14) - 77093643461234 [13:50:06]1041 (16) - 0000000000871839 [13:50:06]1040 (4) - 227493 [13:50:06]1012 (4) - 20.10.2024 07:47 [13:50:06]1206 (1) - 0 [13:50:06]OFD Sender: Remove packet 227493 [13:50:06]ProducePacketName [13:50:06]name=ofd_packets/00227493 [13:50:06]NVStorageDeleteData [13:50:06]Write to MH i2c: 01 00 00 4E 00 4E [13:50:06]Write i2c OK [13:50:06]MH_I2C_Read... [13:50:06]Read from MH i2c: 01 [13:50:06]MH_I2C_Read... [13:50:06]Read from MH i2c: 01 07 00 [13:50:06]MH_I2C_Read... [13:50:06]Read from MH i2c: 01 07 00 4E 00 00 00 00 00 00 17 0D 79 [13:50:06]RasterBufferAndPrint [13:50:06]line [13:50:06]line [13:50:06]line [13:50:06]line [13:50:06]line [13:50:06]written 0, free lines is 3357 [13:50:06]process_action close_receipt done [13:50:06]requested_data is exist [13:50:06]produce_requested_data [13:50:06]requested_item fm.sn is exist - process it [13:50:06]wFMCommunicate request_size=4 [13:50:06]MH_SAM_APDU [13:50:06]CAPDU: 80 11 00 00 [13:50:06]Write to MH i2c: E2 08 00 55 00 80 11 00 00 00 00 00 00 CF [13:50:06]Write i2c OK [13:50:06]MH_I2C_Read... [13:50:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:50:06]Read from MH i2c: E2 [13:50:06]MH_I2C_Read... [13:50:06]Read from MH i2c: E2 17 00 [13:50:06]MH_I2C_Read... [13:50:06]Read from MH i2c: E2 17 00 55 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 26 [13:50:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:50:06]wFMCommunicate OK [13:50:06]requested_item fd.num is exist - process it [13:50:06]SAM_PROTO_GetFieldsCounters [13:50:06]wFMCommunicate request_size=4 [13:50:06]MH_SAM_APDU [13:50:06]CAPDU: 80 13 00 00 [13:50:06]Write to MH i2c: E2 08 00 56 00 80 13 00 00 00 00 00 00 D2 [13:50:06]Write i2c OK [13:50:06]MH_I2C_Read... [13:50:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:50:06]Read from MH i2c: E2 [13:50:06]MH_I2C_Read... [13:50:06]Read from MH i2c: E2 62 00 [13:50:06]MH_I2C_Read... [13:50:06]Read from MH i2c: E2 62 00 56 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A5 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 55 01 00 00 5E 04 04 00 55 01 00 00 57 04 04 00 56 01 00 00 19 04 04 00 00 00 00 00 90 00 34 [13:50:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A5 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 55 01 00 00 5E 04 04 00 55 01 00 00 57 04 04 00 56 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:50:06]wFMCommunicate OK [13:50:06]SAM_PROTO_GetFieldsCounters done [13:50:06]requested_item shift.num is exist - process it [13:50:06]requested_item shift.opened is exist - process it [13:50:06]req_shift_opened [13:50:06]FM_GetShiftState [13:50:06]SAM_PROTO_GetShiftState [13:50:06]wFMCommunicate request_size=4 [13:50:06]MH_SAM_APDU [13:50:06]CAPDU: 80 13 01 00 [13:50:06]Write to MH i2c: E2 08 00 57 00 80 13 01 00 00 00 00 00 D4 [13:50:06]Write i2c OK [13:50:06]MH_I2C_Read... [13:50:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:50:06]Read from MH i2c: E2 [13:50:06]MH_I2C_Read... [13:50:06]Read from MH i2c: E2 0E 00 [13:50:06]MH_I2C_Read... [13:50:06]Read from MH i2c: E2 0E 00 57 00 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 EE [13:50:06]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:50:06]wFMCommunicate OK [13:50:06]SAM_PROTO_GetShiftState done [13:50:06]FM_GetShiftState done [13:50:06]req_shift_opened done [13:50:06]requested_item shift.open_date is exist - process it [13:50:06]req_shift_open_date [13:50:06]req_shift_open_date done [13:50:06]produce_requested_data done [13:50:06]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227493,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [13:50:06]process_action_free close_receipt [13:50:06]json_value_free [13:50:06]json_value_free done [13:50:06]process_json_proto returns [13:50:06]Send response to host [13:50:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227493,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [13:50:06]free response buf [13:50:06]execute_script done [13:50:06]execute_script returns [13:50:06]free content buf [13:50:06]Sock 9.Close socket [13:50:06]Sock 9.Thread stoped [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:42]OFD Sender: No OFD packet to send [13:50:47]OFD Sender: No OFD packet to send [13:50:49]accept exits with 7 [13:50:49]New connection [13:50:49]New thread 3067219300 created [13:50:49]Thread 3067362660 joined [13:50:49]Waiting for new connection... [13:50:49] Sock 7.Parse request [13:50:49]Sock 7.Check first char [13:50:49]Sock 7.First char is OK [13:50:49]request: POST /json_proto HTTP/1.0 [13:50:49]Method: POST [13:50:49]URL: /json_proto [13:50:49]Method is POST - this is cgi request [13:50:49]url: /json_proto [13:50:49]query_string will be loaded in cgi processing [13:50:49]execute_cgi json_proto POST (null) [13:50:49]execute_cgi path=json_proto method=POST [13:50:49]POST find Content-Length [13:50:49]Host: 172.17.44.195:8080 [13:50:49]Content-Length: 675 [13:50:49]Content-Type: application/json [13:50:49] [13:50:49]POST finish read [13:50:49]Found Content-Length = 675 [13:50:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:50:49]execute_script... [13:50: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)1963019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:50:49]POST & json_proto [13:50:49]process_json_proto [13:50:49]json parsed OK: [13:50:49]protocol is kg_v1.0 [13:50:49]action value=close_receipt [13:50:49]process_action close_receipt [13:50:49]cmd_close_receipt [13:50:49]MH_GetDate [13:50:49]Write to MH i2c: F0 00 00 58 00 47 [13:50:49]Write i2c OK [13:50:49]MH_I2C_Read... [13:50:49]Read from MH i2c: F0 [13:50:49]MH_I2C_Read... [13:50:49]Read from MH i2c: F0 09 00 [13:50:49]MH_I2C_Read... [13:50:49]Read from MH i2c: F0 09 00 58 00 00 BA 0A 15 67 82 C9 CF 66 10 [13:50:49]GetLastDocTimeStamp 1729432205 [13:50:49]current date 1729432250 [13:50:49]FM_GetShiftState [13:50:49]SAM_PROTO_GetShiftState [13:50:49]wFMCommunicate request_size=4 [13:50:49]MH_SAM_APDU [13:50:49]CAPDU: 80 13 01 00 [13:50:49]Write to MH i2c: E2 08 00 59 00 80 13 01 00 00 00 00 00 D6 [13:50:49]Write i2c OK [13:50:49]MH_I2C_Read... [13:50:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:50:49]Read from MH i2c: E2 [13:50:49]MH_I2C_Read... [13:50:49]Read from MH i2c: E2 0E 00 [13:50:49]MH_I2C_Read... [13:50:49]Read from MH i2c: E2 0E 00 59 00 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 F0 [13:50:49]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:50:49]wFMCommunicate OK [13:50:49]SAM_PROTO_GetShiftState done [13:50:49]FM_GetShiftState done [13:50:49]opened in 1729383750 [13:50:49]opened+sec_in_day 1729470150 [13:50:49]quantity*price = 50063 [13:50:49]sum+1 = 50064 [13:50:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 342 20.10.2024 13:50 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227494 ФПД: 192842125583024 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T135050&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227494&fm=192842125583024&tin=02508201610067®Number=0000000000091685&sum=50000 [13:50:51]StoreToDocumentArchive [13:50:51]shift 533 fd 227494 [13:50:51]save to /storage/0533/doc_00227494 [13:50:51]save last doc name /storage/0533/doc_00227494 to /storage/kkm_last_doc_name [13:50:51]save OK [13:50:51]Clear old archive folders... [13:50:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:50:51]tlvbuf is 00D9B540 [13:50:51]SAM_PROTO_ClearQueue [13:50:51]wFMCommunicate request_size=4 [13:50:51]MH_SAM_APDU [13:50:51]CAPDU: 80 09 00 00 [13:50:51]Write to MH i2c: E2 08 00 66 00 80 09 00 00 00 00 00 00 D8 [13:50:51]Write i2c OK [13:50:51]MH_I2C_Read... [13:50:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:50:51]Read from MH i2c: E2 [13:50:51]MH_I2C_Read... [13:50:51]Read from MH i2c: E2 03 00 [13:50:51]MH_I2C_Read... [13:50:51]Read from MH i2c: E2 03 00 66 00 00 90 00 DA [13:50:51]RAPDU: 90 00 [13:50:51]wFMCommunicate OK [13:50:51]SAM_PROTO_ClearQueue done [13:50:51]KKMCreateOFDPacket [13:50:51]OFDProtocolAddRootSTLVToBuf [13:50:51]FM_MakeSignedData [13:50:51]FM_MakeSignedData [13:50:51]SAM_PROTO_SignData [13:50:51]wFMCommunicate request_size=4 [13:50:51]MH_SAM_APDU [13:50:51]CAPDU: 80 0D 01 02 [13:50:51]Write to MH i2c: E2 08 00 67 00 80 0D 01 02 00 00 00 00 E0 [13:50:51]Write i2c OK [13:50:51]MH_I2C_Read... [13:50:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:50:51]Read from MH i2c: E2 [13:50:51]MH_I2C_Read... [13:50:51]Read from MH i2c: E2 03 00 [13:50:51]MH_I2C_Read... [13:50:51]Read from MH i2c: E2 03 00 67 00 00 90 00 DB [13:50:51]RAPDU: 90 00 [13:50:51]wFMCommunicate OK [13:50:51]wFMCommunicate request_size=255 [13:50:51]MH_SAM_APDU [13:50: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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 BA 0A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A6 78 03 00 35 04 06 00 AF 63 8E 64 [13:50:51]Write to MH i2c: E2 02 01 68 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 BA 0A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A6 78 03 00 35 04 06 00 AF 63 8E 64 00 00 C8 [13:50:51]Write i2c OK [13:50:51]MH_I2C_Read... [13:50:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:50:51]Read from MH i2c: E2 [13:50:51]MH_I2C_Read... [13:50:51]Read from MH i2c: E2 03 00 [13:50:51]MH_I2C_Read... [13:50:51]Read from MH i2c: E2 03 00 68 00 00 90 00 DC [13:50:51]RAPDU: 90 00 [13:50:51]wFMCommunicate OK [13:50:51]wFMCommunicate request_size=7 [13:50:51]MH_SAM_APDU [13:50:51]CAPDU: 80 0D 02 02 02 A2 B0 [13:50:51]Write to MH i2c: E2 0A 00 69 00 80 0D 02 02 02 00 A2 B0 00 00 39 [13:50:51]Write i2c OK [13:50:51]MH_I2C_Read... [13:50:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:50:51]Read from MH i2c: E2 [13:50:51]MH_I2C_Read... [13:50:51]Read from MH i2c: E2 03 00 [13:50:51]MH_I2C_Read... [13:50:51]Read from MH i2c: E2 03 00 69 00 00 90 00 DD [13:50:51]RAPDU: 90 00 [13:50:51]wFMCommunicate OK [13:50:51]wFMCommunicate request_size=4 [13:50:51]MH_SAM_APDU [13:50:51]CAPDU: 80 0D 03 02 [13:50:51]Write to MH i2c: E2 08 00 6A 00 80 0D 03 02 00 00 00 00 E5 [13:50:51]Write i2c OK [13:50:51]MH_I2C_Read... [13:50:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:50:51]Read from MH i2c: E2 [13:50:51]MH_I2C_Read... [13:50:51]Read from MH i2c: E2 0B 00 [13:50:51]MH_I2C_Read... [13:50:51]Read from MH i2c: E2 0B 00 6A 00 00 8E 58 BA 38 15 75 AE C6 90 00 BC [13:50:51]RAPDU: 8E 58 BA 38 15 75 AE C6 90 00 [13:50:51]wFMCommunicate OK [13:50:51]SAM_PROTO_SignData done [13:50:51]FM_MakeSignedData done [13:50:51]CreateOFDProtocolMessage [13:50:51]wFMCommunicate request_size=4 [13:50:51]MH_SAM_APDU [13:50:51]CAPDU: 80 11 00 00 [13:50:51]Write to MH i2c: E2 08 00 6B 00 80 11 00 00 00 00 00 00 E5 [13:50:51]Write i2c OK [13:50:51]MH_I2C_Read... [13:50:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:50:51]Read from MH i2c: E2 [13:50:51]MH_I2C_Read... [13:50:51]Read from MH i2c: E2 17 00 [13:50:51]MH_I2C_Read... [13:50:51]Read from MH i2c: E2 17 00 6B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 3C [13:50:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:50:51]wFMCommunicate OK [13:50:51]CreateOFDProtocolMessage done [13:50:51]OFDSenderStorePacket 227494 [13:50:51]StoreOFDPacket docnum=227494 [13:50:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 BE 30 04 01 96 E1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 BA 0A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A6 78 03 00 35 04 06 00 AF 63 8E 64 A2 B0 8E 58 BA 38 15 75 AE C6 [13:50:51]CheckFolder [13:50:51]dirname=/storage/ofd_packets [13:50:51]CheckFolder done [13:50:51]ProducePacketName [13:50:51]name=ofd_packets/00227494 [13:50:51]NVStorageSaveData ofd_packets/00227494 [13:50:51]File name is /storage/ofd_packets/00227494 [13:50:51]Write 298 bytes [13:50:51]NVStorageSaveData done [13:50:51]OFDSenderStorePacket done [13:50:51]KKMCreateOFDPacket done [13:50:51]NVStorageSaveData kkm_last_timestamp [13:50:51]File name is /storage/kkm_last_timestamp [13:50:51]Write 4 bytes [13:50:51]NVStorageSaveData done [13:50:51]ExternCall_PrintAddStr [13:50:51]wPrintStart [13:50:51]Write to MH i2c: 01 00 00 6C 00 6C [13:50:51]Write i2c OK [13:50:51]MH_I2C_Read... [13:50:51]Read from MH i2c: 01 [13:50:51]MH_I2C_Read... [13:50:51]Read from MH i2c: 01 07 00 [13:50:51]MH_I2C_Read... [13:50:51]Read from MH i2c: 01 07 00 6C 00 00 00 00 00 00 FF 0F 81 [13:50:51]RasterBufferAndPrint [13:50:51]line Счет N : (1)1963019 [13:50:51]line ИНН: 02508201610067 [13:50:51]line Контрольно-Кассовый Чек [13:50:51]line ПРОДАЖА [13:50:51]line ТРК (МРК, ГНК) : 31 [13:50:51]line Товар: 2710194210 [13:50:51]line ДТ-К-5 [13:50:51]line 6.570 * 76.20 [13:50:51]line = 500.63 [13:50:51]line НДС 12% НСП 1% [13:50:51]line > о реализуемом товаре [13:50:51]line ОКРУГЛЕНИЕ: -0.63 [13:50:51]line ИТОГО: 500.00 [13:50:51]line Внесено: 500.00 [13:50:51]line СДАЧА: 0.00 [13:50:51]line НСП 1% : 4.43 [13:50:51]line НДС 12% : 53.16 [13:50:51]line Наличными: 500.00 [13:50:51]line Безнал.: 0.00 [13:50:51]line Место: АЗС № 133 "Партнер Нефть" [13:50:51]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:50:51]line СНО: Общий режим [13:50:51]line Чек 342 20.10.2024 13:50 [13:50:51]line Смена: 533 ФФД: 1.0 [13:50:51]line ЗНМ: 0300000091 [13:50:51]line РНМ: 0000000000091685 [13:50:51]line Версия ККМ: 001 [13:50:51]line ФМ: 0000000000871839 [13:50:51]line ФД: 227494 [13:50:51]line ФПД: 192842125583024 [13:50:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T135050&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227494&fm=192842125583024&tin=02508201610067®Number=0000000000091685&sum=50000 [13:50:51]OFD Sender: Processing packet 227494 [packets to send 38, broken 37] [13:50:51]ProducePacketName [13:50:51]name=ofd_packets/00227494 [13:50:51]OFD Sender: To server: pG, [13:50:51]CommunicateWithHost lk.salyk.kg:30040 [13:50:51]ConnectInit lk.salyk.kg [13:50:51]written 0, free lines is 4095 [13:50:52]Connected sock=10 [13:50:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 BE 30 04 01 96 E1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 BA 0A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A6 78 03 00 35 04 06 00 AF 63 8E 64 A2 B0 8E 58 BA 38 15 75 AE C6 [13:50: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 33 39 4F 00 00 00 05 39 47 00 8C 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A6 78 03 00 F4 03 04 00 B9 B5 14 67 B6 04 01 00 00 68 4E DA 24 B1 5A 6D 03 [13:50:52]CommunicateWithHost err = 0 [13:50:52]CheckOFDResponse [13:50:52]1017 (14) - 77093643461234 [13:50:52]1041 (16) - 0000000000871839 [13:50:52]1040 (4) - 227494 [13:50:52]1012 (4) - 20.10.2024 07:48 [13:50:52]1206 (1) - 0 [13:50:52]OFD Sender: Remove packet 227494 [13:50:52]ProducePacketName [13:50:52]name=ofd_packets/00227494 [13:50:52]NVStorageDeleteData [13:50:52]Write to MH i2c: 01 00 00 96 00 96 [13:50:52]Write i2c OK [13:50:52]MH_I2C_Read... [13:50:52]Read from MH i2c: 01 [13:50:52]MH_I2C_Read... [13:50:52]Read from MH i2c: 01 07 00 [13:50:52]MH_I2C_Read... [13:50:52]Read from MH i2c: 01 07 00 96 00 00 00 00 00 00 11 0D BB [13:50:52]RasterBufferAndPrint [13:50:52]line [13:50:52]line [13:50:52]line [13:50:52]line [13:50:52]line [13:50:52]written 0, free lines is 3351 [13:50:52]process_action close_receipt done [13:50:52]requested_data is exist [13:50:52]produce_requested_data [13:50:52]requested_item fm.sn is exist - process it [13:50:52]wFMCommunicate request_size=4 [13:50:52]MH_SAM_APDU [13:50:52]CAPDU: 80 11 00 00 [13:50:52]Write to MH i2c: E2 08 00 9D 00 80 11 00 00 00 00 00 00 17 [13:50:52]Write i2c OK [13:50:52]MH_I2C_Read... [13:50:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:50:52]Read from MH i2c: E2 [13:50:52]MH_I2C_Read... [13:50:52]Read from MH i2c: E2 17 00 [13:50:52]MH_I2C_Read... [13:50:52]Read from MH i2c: E2 17 00 9D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 6E [13:50:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:50:52]wFMCommunicate OK [13:50:52]requested_item fd.num is exist - process it [13:50:52]SAM_PROTO_GetFieldsCounters [13:50:52]wFMCommunicate request_size=4 [13:50:52]MH_SAM_APDU [13:50:52]CAPDU: 80 13 00 00 [13:50:52]Write to MH i2c: E2 08 00 9E 00 80 13 00 00 00 00 00 00 1A [13:50:52]Write i2c OK [13:50:52]MH_I2C_Read... [13:50:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:50:52]Read from MH i2c: E2 [13:50:52]MH_I2C_Read... [13:50:52]Read from MH i2c: E2 62 00 [13:50:52]MH_I2C_Read... [13:50:52]Read from MH i2c: E2 62 00 9E 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A6 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 56 01 00 00 5E 04 04 00 56 01 00 00 57 04 04 00 57 01 00 00 19 04 04 00 00 00 00 00 90 00 80 [13:50:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A6 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 56 01 00 00 5E 04 04 00 56 01 00 00 57 04 04 00 57 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:50:52]wFMCommunicate OK [13:50:52]SAM_PROTO_GetFieldsCounters done [13:50:52]requested_item shift.num is exist - process it [13:50:52]requested_item shift.opened is exist - process it [13:50:52]req_shift_opened [13:50:52]FM_GetShiftState [13:50:52]SAM_PROTO_GetShiftState [13:50:52]wFMCommunicate request_size=4 [13:50:52]MH_SAM_APDU [13:50:52]CAPDU: 80 13 01 00 [13:50:52]Write to MH i2c: E2 08 00 9F 00 80 13 01 00 00 00 00 00 1C [13:50:52]Write i2c OK [13:50:52]MH_I2C_Read... [13:50:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:50:52]Read from MH i2c: E2 [13:50:52]MH_I2C_Read... [13:50:52]Read from MH i2c: E2 0E 00 [13:50:52]MH_I2C_Read... [13:50:52]Read from MH i2c: E2 0E 00 9F 00 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 36 [13:50:52]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:50:52]wFMCommunicate OK [13:50:52]SAM_PROTO_GetShiftState done [13:50:52]FM_GetShiftState done [13:50:52]req_shift_opened done [13:50:52]requested_item shift.open_date is exist - process it [13:50:52]req_shift_open_date [13:50:52]req_shift_open_date done [13:50:52]produce_requested_data done [13:50:52]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227494,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [13:50:52]process_action_free close_receipt [13:50:52]json_value_free [13:50:52]json_value_free done [13:50:52]process_json_proto returns [13:50:52]Send response to host [13:50:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227494,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [13:50:52]free response buf [13:50:52]execute_script done [13:50:52]execute_script returns [13:50:52]free content buf [13:50:52]Sock 7.Close socket [13:50:52]Sock 7.Thread stoped [13:50:52]OFD Sender: No OFD packet to send [13:50:57]OFD Sender: No OFD packet to send [13:51:02]OFD Sender: No OFD packet to send [13:51:07]OFD Sender: No OFD packet to send [13:51:12]OFD Sender: No OFD packet to send [13:51:17]OFD Sender: No OFD packet to send [13:51:22]OFD Sender: No OFD packet to send [13:51:27]OFD Sender: No OFD packet to send [13:51:32]OFD Sender: No OFD packet to send [13:51:37]OFD Sender: No OFD packet to send [13:51:42]OFD Sender: No OFD packet to send [13:51:47]OFD Sender: No OFD packet to send [13:51:52]OFD Sender: No OFD packet to send [13:51:57]OFD Sender: No OFD packet to send [13:52:02]OFD Sender: No OFD packet to send [13:52:07]OFD Sender: No OFD packet to send [13:52:12]OFD Sender: No OFD packet to send [13:52:17]OFD Sender: No OFD packet to send [13:52:22]OFD Sender: No OFD packet to send [13:52:27]OFD Sender: No OFD packet to send [13:52:32]OFD Sender: No OFD packet to send [13:52:37]OFD Sender: No OFD packet to send [13:52:42]OFD Sender: No OFD packet to send [13:52:47]OFD Sender: No OFD packet to send [13:52:52]OFD Sender: No OFD packet to send [13:52:57]OFD Sender: No OFD packet to send [13:53:02]OFD Sender: No OFD packet to send [13:53:07]OFD Sender: No OFD packet to send [13:53:12]OFD Sender: No OFD packet to send [13:53:17]OFD Sender: No OFD packet to send [13:53:22]OFD Sender: No OFD packet to send [13:53:27]OFD Sender: No OFD packet to send [13:53:32]OFD Sender: No OFD packet to send [13:53:37]OFD Sender: No OFD packet to send [13:53:42]OFD Sender: No OFD packet to send [13:53:47]OFD Sender: No OFD packet to send [13:53:52]OFD Sender: No OFD packet to send [13:53:57]OFD Sender: No OFD packet to send [13:54:02]OFD Sender: No OFD packet to send [13:54:07]OFD Sender: No OFD packet to send [13:54:09]accept exits with 9 [13:54:09]New connection [13:54:09]New thread 3067362660 created [13:54:09]Thread 3067219300 joined [13:54:09]Waiting for new connection... [13:54:09] Sock 9.Parse request [13:54:09]Sock 9.Check first char [13:54:09]Sock 9.First char is OK [13:54:09]request: POST /json_proto HTTP/1.0 [13:54:09]Method: POST [13:54:09]URL: /json_proto [13:54:09]Method is POST - this is cgi request [13:54:09]url: /json_proto [13:54:09]query_string will be loaded in cgi processing [13:54:09]execute_cgi json_proto POST (null) [13:54:09]execute_cgi path=json_proto method=POST [13:54:09]POST find Content-Length [13:54:09]Host: 172.17.44.195:8080 [13:54:09]Content-Length: 680 [13:54:09]Content-Type: application/json [13:54:09] [13:54:09]POST finish read [13:54:09]Found Content-Length = 680 [13:54:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963021", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:54:09]execute_script... [13:54:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963021", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:54:09]POST & json_proto [13:54:09]process_json_proto [13:54:09]json parsed OK: [13:54:09]protocol is kg_v1.0 [13:54:09]action value=close_receipt [13:54:09]process_action close_receipt [13:54:09]cmd_close_receipt [13:54:09]MH_GetDate [13:54:09]Write to MH i2c: F0 00 00 A0 00 8F [13:54:09]Write i2c OK [13:54:09]MH_I2C_Read... [13:54:09]Read from MH i2c: F0 [13:54:09]MH_I2C_Read... [13:54:09]Read from MH i2c: F0 09 00 [13:54:09]MH_I2C_Read... [13:54:09]Read from MH i2c: F0 09 00 A0 00 00 82 0B 15 67 82 C9 CF 66 21 [13:54:09]GetLastDocTimeStamp 1729432250 [13:54:09]current date 1729432450 [13:54:09]FM_GetShiftState [13:54:09]SAM_PROTO_GetShiftState [13:54:09]wFMCommunicate request_size=4 [13:54:09]MH_SAM_APDU [13:54:09]CAPDU: 80 13 01 00 [13:54:09]Write to MH i2c: E2 08 00 A1 00 80 13 01 00 00 00 00 00 1E [13:54:09]Write i2c OK [13:54:09]MH_I2C_Read... [13:54:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:54:10]Read from MH i2c: E2 [13:54:10]MH_I2C_Read... [13:54:10]Read from MH i2c: E2 0E 00 [13:54:10]MH_I2C_Read... [13:54:10]Read from MH i2c: E2 0E 00 A1 00 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 38 [13:54:10]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:54:10]wFMCommunicate OK [13:54:10]SAM_PROTO_GetShiftState done [13:54:10]FM_GetShiftState done [13:54:10]opened in 1729383750 [13:54:10]opened+sec_in_day 1729470150 [13:54:10]quantity*price = 150037 [13:54:10]sum+1 = 150039 [13:54:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 343 20.10.2024 13:54 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227495 ФПД: 80591849275868 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T135410&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227495&fm=80591849275868&tin=02508201610067®Number=0000000000091685&sum=150000 [13:54:11]StoreToDocumentArchive [13:54:11]shift 533 fd 227495 [13:54:11]save to /storage/0533/doc_00227495 [13:54:11]save last doc name /storage/0533/doc_00227495 to /storage/kkm_last_doc_name [13:54:11]save OK [13:54:11]Clear old archive folders... [13:54:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:54:11]tlvbuf is 00D7BBC0 [13:54:11]SAM_PROTO_ClearQueue [13:54:11]wFMCommunicate request_size=4 [13:54:11]MH_SAM_APDU [13:54:11]CAPDU: 80 09 00 00 [13:54:11]Write to MH i2c: E2 08 00 AE 00 80 09 00 00 00 00 00 00 20 [13:54:11]Write i2c OK [13:54:11]MH_I2C_Read... [13:54:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:54:11]Read from MH i2c: E2 [13:54:11]MH_I2C_Read... [13:54:11]Read from MH i2c: E2 03 00 [13:54:11]MH_I2C_Read... [13:54:11]Read from MH i2c: E2 03 00 AE 00 00 90 00 22 [13:54:11]RAPDU: 90 00 [13:54:11]wFMCommunicate OK [13:54:11]SAM_PROTO_ClearQueue done [13:54:11]KKMCreateOFDPacket [13:54:11]OFDProtocolAddRootSTLVToBuf [13:54:11]FM_MakeSignedData [13:54:11]FM_MakeSignedData [13:54:11]SAM_PROTO_SignData [13:54:11]wFMCommunicate request_size=4 [13:54:11]MH_SAM_APDU [13:54:11]CAPDU: 80 0D 01 02 [13:54:11]Write to MH i2c: E2 08 00 AF 00 80 0D 01 02 00 00 00 00 28 [13:54:11]Write i2c OK [13:54:11]MH_I2C_Read... [13:54:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:54:11]Read from MH i2c: E2 [13:54:11]MH_I2C_Read... [13:54:11]Read from MH i2c: E2 03 00 [13:54:11]MH_I2C_Read... [13:54:11]Read from MH i2c: E2 03 00 AF 00 00 90 00 23 [13:54:11]RAPDU: 90 00 [13:54:11]wFMCommunicate OK [13:54:11]wFMCommunicate request_size=255 [13:54:11]MH_SAM_APDU [13:54:11]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 82 0B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A7 78 03 00 35 04 06 00 49 4C 40 8C [13:54:11]Write to MH i2c: E2 02 01 B0 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 82 0B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A7 78 03 00 35 04 06 00 49 4C 40 8C 00 00 27 [13:54:11]Write i2c OK [13:54:11]MH_I2C_Read... [13:54:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:54:11]Read from MH i2c: E2 [13:54:11]MH_I2C_Read... [13:54:11]Read from MH i2c: E2 03 00 [13:54:11]MH_I2C_Read... [13:54:11]Read from MH i2c: E2 03 00 B0 00 00 90 00 24 [13:54:11]RAPDU: 90 00 [13:54:11]wFMCommunicate OK [13:54:11]wFMCommunicate request_size=7 [13:54:11]MH_SAM_APDU [13:54:11]CAPDU: 80 0D 02 02 02 41 DC [13:54:11]Write to MH i2c: E2 0A 00 B1 00 80 0D 02 02 02 00 41 DC 00 00 4C [13:54:11]Write i2c OK [13:54:11]MH_I2C_Read... [13:54:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:54:11]Read from MH i2c: E2 [13:54:11]MH_I2C_Read... [13:54:11]Read from MH i2c: E2 03 00 [13:54:11]MH_I2C_Read... [13:54:11]Read from MH i2c: E2 03 00 B1 00 00 90 00 25 [13:54:11]RAPDU: 90 00 [13:54:11]wFMCommunicate OK [13:54:11]wFMCommunicate request_size=4 [13:54:11]MH_SAM_APDU [13:54:11]CAPDU: 80 0D 03 02 [13:54:11]Write to MH i2c: E2 08 00 B2 00 80 0D 03 02 00 00 00 00 2D [13:54:11]Write i2c OK [13:54:11]MH_I2C_Read... [13:54:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:54:11]Read from MH i2c: E2 [13:54:11]MH_I2C_Read... [13:54:11]Read from MH i2c: E2 0B 00 [13:54:11]MH_I2C_Read... [13:54:11]Read from MH i2c: E2 0B 00 B2 00 00 4C BD 2E 7B 0A 90 B6 A2 90 00 D2 [13:54:11]RAPDU: 4C BD 2E 7B 0A 90 B6 A2 90 00 [13:54:11]wFMCommunicate OK [13:54:11]SAM_PROTO_SignData done [13:54:11]FM_MakeSignedData done [13:54:11]CreateOFDProtocolMessage [13:54:11]wFMCommunicate request_size=4 [13:54:11]MH_SAM_APDU [13:54:11]CAPDU: 80 11 00 00 [13:54:11]Write to MH i2c: E2 08 00 B3 00 80 11 00 00 00 00 00 00 2D [13:54:11]Write i2c OK [13:54:11]MH_I2C_Read... [13:54:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:54:11]Read from MH i2c: E2 [13:54:11]MH_I2C_Read... [13:54:11]Read from MH i2c: E2 17 00 [13:54:11]MH_I2C_Read... [13:54:11]Read from MH i2c: E2 17 00 B3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 84 [13:54:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:54:11]wFMCommunicate OK [13:54:11]CreateOFDProtocolMessage done [13:54:11]OFDSenderStorePacket 227495 [13:54:11]StoreOFDPacket docnum=227495 [13:54:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 AF A3 04 01 76 26 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 82 0B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A7 78 03 00 35 04 06 00 49 4C 40 8C 41 DC 4C BD 2E 7B 0A 90 B6 A2 [13:54:11]CheckFolder [13:54:11]dirname=/storage/ofd_packets [13:54:11]CheckFolder done [13:54:11]ProducePacketName [13:54:11]name=ofd_packets/00227495 [13:54:11]NVStorageSaveData ofd_packets/00227495 [13:54:11]File name is /storage/ofd_packets/00227495 [13:54:11]Write 298 bytes [13:54:11]NVStorageSaveData done [13:54:11]OFDSenderStorePacket done [13:54:11]KKMCreateOFDPacket done [13:54:11]NVStorageSaveData kkm_last_timestamp [13:54:11]File name is /storage/kkm_last_timestamp [13:54:11]Write 4 bytes [13:54:11]NVStorageSaveData done [13:54:11]ExternCall_PrintAddStr [13:54:11]wPrintStart [13:54:11]Write to MH i2c: 01 00 00 B4 00 B4 [13:54:11]Write i2c OK [13:54:11]MH_I2C_Read... [13:54:11]Read from MH i2c: 01 [13:54:11]MH_I2C_Read... [13:54:11]Read from MH i2c: 01 07 00 [13:54:11]MH_I2C_Read... [13:54:11]Read from MH i2c: 01 07 00 B4 00 00 00 00 00 00 FF 0F C9 [13:54:11]RasterBufferAndPrint [13:54:11]line Счет N : (1)1963021 [13:54:11]line ИНН: 02508201610067 [13:54:11]line Контрольно-Кассовый Чек [13:54:11]line ПРОДАЖА [13:54:11]line ТРК (МРК, ГНК) : 11 [13:54:11]line Товар: 2710194210 [13:54:11]line ДТ-К-5 [13:54:11]line 19.690 * 76.20 [13:54:11]line = 1500.38 [13:54:11]line НДС 12% НСП 1% [13:54:11]line > о реализуемом товаре [13:54:11]line ОКРУГЛЕНИЕ: -0.38 [13:54:11]line ИТОГО: 1500.00 [13:54:11]line Внесено: 1500.00 [13:54:11]line СДАЧА: 0.00 [13:54:11]line НСП 1% : 13.28 [13:54:11]line НДС 12% : 159.33 [13:54:11]line Наличными: 1500.00 [13:54:11]line Безнал.: 0.00 [13:54:11]line Место: АЗС № 133 "Партнер Нефть" [13:54:11]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:54:11]line СНО: Общий режим [13:54:11]line Чек 343 20.10.2024 13:54 [13:54:11]line Смена: 533 ФФД: 1.0 [13:54:11]line ЗНМ: 0300000091 [13:54:11]line РНМ: 0000000000091685 [13:54:11]line Версия ККМ: 001 [13:54:11]line ФМ: 0000000000871839 [13:54:11]line ФД: 227495 [13:54:11]line ФПД: 80591849275868 [13:54:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T135410&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227495&fm=80591849275868&tin=02508201610067®Number=0000000000091685&sum=150000 [13:54:11]OFD Sender: Processing packet 227495 [packets to send 38, broken 37] [13:54:11]ProducePacketName [13:54:11]name=ofd_packets/00227495 [13:54:11]OFD Sender: To server: pG, [13:54:11]CommunicateWithHost lk.salyk.kg:30040 [13:54:11]ConnectInit lk.salyk.kg [13:54:11]written 0, free lines is 4095 [13:54:12]Connected sock=10 [13:54:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 AF A3 04 01 76 26 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 82 0B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A7 78 03 00 35 04 06 00 49 4C 40 8C 41 DC 4C BD 2E 7B 0A 90 B6 A2 [13:54:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 E6 AB 47 00 7A 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 33 39 10 04 04 00 A7 78 03 00 F4 03 04 00 81 B6 14 67 B6 04 01 00 00 01 93 CE F4 73 45 1F C4 [13:54:12]CommunicateWithHost err = 0 [13:54:12]CheckOFDResponse [13:54:12]1017 (14) - 77093643461234 [13:54:12]1041 (16) - 0000000000871839 [13:54:12]1040 (4) - 227495 [13:54:12]1012 (4) - 20.10.2024 07:51 [13:54:12]1206 (1) - 0 [13:54:12]OFD Sender: Remove packet 227495 [13:54:12]ProducePacketName [13:54:12]name=ofd_packets/00227495 [13:54:12]NVStorageDeleteData [13:54:12]Write to MH i2c: 01 00 00 DE 00 DE [13:54:12]Write i2c OK [13:54:12]MH_I2C_Read... [13:54:12]Read from MH i2c: 01 [13:54:12]MH_I2C_Read... [13:54:12]Read from MH i2c: 01 07 00 [13:54:12]MH_I2C_Read... [13:54:12]Read from MH i2c: 01 07 00 DE 00 00 00 00 00 00 02 0D F4 [13:54:12]RasterBufferAndPrint [13:54:12]line [13:54:12]line [13:54:12]line [13:54:12]line [13:54:12]line [13:54:12]written 0, free lines is 3336 [13:54:12]process_action close_receipt done [13:54:12]requested_data is exist [13:54:12]produce_requested_data [13:54:12]requested_item fm.sn is exist - process it [13:54:12]wFMCommunicate request_size=4 [13:54:12]MH_SAM_APDU [13:54:12]CAPDU: 80 11 00 00 [13:54:12]Write to MH i2c: E2 08 00 E5 00 80 11 00 00 00 00 00 00 5F [13:54:12]Write i2c OK [13:54:12]MH_I2C_Read... [13:54:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:54:12]Read from MH i2c: E2 [13:54:12]MH_I2C_Read... [13:54:12]Read from MH i2c: E2 17 00 [13:54:12]MH_I2C_Read... [13:54:12]Read from MH i2c: E2 17 00 E5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B6 [13:54:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:54:12]wFMCommunicate OK [13:54:12]requested_item fd.num is exist - process it [13:54:12]SAM_PROTO_GetFieldsCounters [13:54:12]wFMCommunicate request_size=4 [13:54:12]MH_SAM_APDU [13:54:12]CAPDU: 80 13 00 00 [13:54:12]Write to MH i2c: E2 08 00 E6 00 80 13 00 00 00 00 00 00 62 [13:54:12]Write i2c OK [13:54:12]MH_I2C_Read... [13:54:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:54:12]Read from MH i2c: E2 [13:54:12]MH_I2C_Read... [13:54:12]Read from MH i2c: E2 62 00 [13:54:12]MH_I2C_Read... [13:54:12]Read from MH i2c: E2 62 00 E6 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A7 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 57 01 00 00 5E 04 04 00 57 01 00 00 57 04 04 00 58 01 00 00 19 04 04 00 00 00 00 00 90 00 CC [13:54: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A7 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 57 01 00 00 5E 04 04 00 57 01 00 00 57 04 04 00 58 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:54:12]wFMCommunicate OK [13:54:12]SAM_PROTO_GetFieldsCounters done [13:54:12]requested_item shift.num is exist - process it [13:54:12]requested_item shift.opened is exist - process it [13:54:12]req_shift_opened [13:54:12]FM_GetShiftState [13:54:12]SAM_PROTO_GetShiftState [13:54:12]wFMCommunicate request_size=4 [13:54:12]MH_SAM_APDU [13:54:12]CAPDU: 80 13 01 00 [13:54:12]Write to MH i2c: E2 08 00 E7 00 80 13 01 00 00 00 00 00 64 [13:54:12]Write i2c OK [13:54:12]MH_I2C_Read... [13:54:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:54:12]Read from MH i2c: E2 [13:54:12]MH_I2C_Read... [13:54:12]Read from MH i2c: E2 0E 00 [13:54:12]MH_I2C_Read... [13:54:12]Read from MH i2c: E2 0E 00 E7 00 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 7E [13:54:12]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:54:12]wFMCommunicate OK [13:54:12]SAM_PROTO_GetShiftState done [13:54:12]FM_GetShiftState done [13:54:12]req_shift_opened done [13:54:12]requested_item shift.open_date is exist - process it [13:54:12]req_shift_open_date [13:54:12]req_shift_open_date done [13:54:12]produce_requested_data done [13:54:12]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227495,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [13:54:12]process_action_free close_receipt [13:54:12]json_value_free [13:54:12]json_value_free done [13:54:12]process_json_proto returns [13:54:12]Send response to host [13:54:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227495,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [13:54:12]free response buf [13:54:12]execute_script done [13:54:12]execute_script returns [13:54:12]free content buf [13:54:12]Sock 9.Close socket [13:54:12]Sock 9.Thread stoped [13:54:12]OFD Sender: No OFD packet to send [13:54:17]OFD Sender: No OFD packet to send [13:54:21]accept exits with 7 [13:54:21]New connection [13:54:21]New thread 3067219300 created [13:54:21]Thread 3067362660 joined [13:54:21]Waiting for new connection... [13:54:21] Sock 7.Parse request [13:54:21]Sock 7.Check first char [13:54:21]Sock 7.First char is OK [13:54:21]request: POST /json_proto HTTP/1.0 [13:54:21]Method: POST [13:54:21]URL: /json_proto [13:54:21]Method is POST - this is cgi request [13:54:21]url: /json_proto [13:54:21]query_string will be loaded in cgi processing [13:54:21]execute_cgi json_proto POST (null) [13:54:21]execute_cgi path=json_proto method=POST [13:54:21]POST find Content-Length [13:54:21]Host: 172.17.44.195:8080 [13:54:21]Content-Length: 680 [13:54:21]Content-Type: application/json [13:54:21] [13:54:21]POST finish read [13:54:21]Found Content-Length = 680 [13:54:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963020", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 98.430, "sum" : 7500.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 7500.00, "total" : 7500.00, "payments": [ { "type": 0, "sum" : 7500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:54:21]execute_script... [13:54:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963020", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 98.430, "sum" : 7500.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 7500.00, "total" : 7500.00, "payments": [ { "type": 0, "sum" : 7500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:54:21]POST & json_proto [13:54:21]process_json_proto [13:54:21]json parsed OK: [13:54:21]protocol is kg_v1.0 [13:54:21]action value=close_receipt [13:54:21]process_action close_receipt [13:54:21]cmd_close_receipt [13:54:21]MH_GetDate [13:54:21]Write to MH i2c: F0 00 00 E8 00 D7 [13:54:21]Write i2c OK [13:54:21]MH_I2C_Read... [13:54:21]Read from MH i2c: F0 [13:54:21]MH_I2C_Read... [13:54:21]Read from MH i2c: F0 09 00 [13:54:21]MH_I2C_Read... [13:54:21]Read from MH i2c: F0 09 00 E8 00 00 8D 0B 15 67 82 C9 CF 66 74 [13:54:21]GetLastDocTimeStamp 1729432450 [13:54:21]current date 1729432461 [13:54:21]FM_GetShiftState [13:54:21]SAM_PROTO_GetShiftState [13:54:21]wFMCommunicate request_size=4 [13:54:21]MH_SAM_APDU [13:54:21]CAPDU: 80 13 01 00 [13:54:21]Write to MH i2c: E2 08 00 E9 00 80 13 01 00 00 00 00 00 66 [13:54:21]Write i2c OK [13:54:21]MH_I2C_Read... [13:54:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:54:21]Read from MH i2c: E2 [13:54:21]MH_I2C_Read... [13:54:21]Read from MH i2c: E2 0E 00 [13:54:21]MH_I2C_Read... [13:54:21]Read from MH i2c: E2 0E 00 E9 00 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 80 [13:54:21]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:54:21]wFMCommunicate OK [13:54:21]SAM_PROTO_GetShiftState done [13:54:21]FM_GetShiftState done [13:54:21]opened in 1729383750 [13:54:21]opened+sec_in_day 1729470150 [13:54:21]quantity*price = 750036 [13:54:21]sum+1 = 750038 [13:54:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 7500.00 Внесено: 7500.00 СДАЧА: 0.00 НСП 1% : 66.37 НДС 12% : 796.50 Наличными: 7500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 344 20.10.2024 13:54 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227496 ФПД: 158708272320810 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T135421&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227496&fm=158708272320810&tin=02508201610067®Number=0000000000091685&sum=750000 [13:54:22]StoreToDocumentArchive [13:54:22]shift 533 fd 227496 [13:54:22]save to /storage/0533/doc_00227496 [13:54:22]save last doc name /storage/0533/doc_00227496 to /storage/kkm_last_doc_name [13:54:22]save OK [13:54:22]Clear old archive folders... [13:54:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:54:22]tlvbuf is 00D79020 [13:54:22]SAM_PROTO_ClearQueue [13:54:22]wFMCommunicate request_size=4 [13:54:22]MH_SAM_APDU [13:54:22]CAPDU: 80 09 00 00 [13:54:22]Write to MH i2c: E2 08 00 F6 00 80 09 00 00 00 00 00 00 68 [13:54:22]Write i2c OK [13:54:22]MH_I2C_Read... [13:54:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:54:22]Read from MH i2c: E2 [13:54:22]MH_I2C_Read... [13:54:22]Read from MH i2c: E2 03 00 [13:54:22]MH_I2C_Read... [13:54:22]Read from MH i2c: E2 03 00 F6 00 00 90 00 6A [13:54:22]RAPDU: 90 00 [13:54:22]wFMCommunicate OK [13:54:22]SAM_PROTO_ClearQueue done [13:54:22]KKMCreateOFDPacket [13:54:22]OFDProtocolAddRootSTLVToBuf [13:54:22]FM_MakeSignedData [13:54:22]FM_MakeSignedData [13:54:22]SAM_PROTO_SignData [13:54:22]wFMCommunicate request_size=4 [13:54:22]MH_SAM_APDU [13:54:22]CAPDU: 80 0D 01 02 [13:54:22]Write to MH i2c: E2 08 00 F7 00 80 0D 01 02 00 00 00 00 70 [13:54:22]Write i2c OK [13:54:22]MH_I2C_Read... [13:54:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:54:22]Read from MH i2c: E2 [13:54:22]MH_I2C_Read... [13:54:22]Read from MH i2c: E2 03 00 [13:54:22]MH_I2C_Read... [13:54:22]Read from MH i2c: E2 03 00 F7 00 00 90 00 6B [13:54:22]RAPDU: 90 00 [13:54:22]wFMCommunicate OK [13:54:22]wFMCommunicate request_size=255 [13:54:22]MH_SAM_APDU [13:54: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 7E 80 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D5 71 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 71 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 37 01 00 00 00 07 04 06 00 B0 71 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 01 00 00 F4 03 04 00 8D 0B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A8 78 03 00 35 04 06 00 90 58 26 31 [13:54:22]Write to MH i2c: E2 02 01 F8 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 7E 80 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D5 71 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 71 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 37 01 00 00 00 07 04 06 00 B0 71 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 01 00 00 F4 03 04 00 8D 0B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A8 78 03 00 35 04 06 00 90 58 26 31 00 00 A4 [13:54:22]Write i2c OK [13:54:22]MH_I2C_Read... [13:54:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:54:22]Read from MH i2c: E2 [13:54:22]MH_I2C_Read... [13:54:22]Read from MH i2c: E2 03 00 [13:54:22]MH_I2C_Read... [13:54:22]Read from MH i2c: E2 03 00 F8 00 00 90 00 6C [13:54:22]RAPDU: 90 00 [13:54:22]wFMCommunicate OK [13:54:22]wFMCommunicate request_size=7 [13:54:22]MH_SAM_APDU [13:54:22]CAPDU: 80 0D 02 02 02 D1 2A [13:54:22]Write to MH i2c: E2 0A 00 F9 00 80 0D 02 02 02 00 D1 2A 00 00 72 [13:54:22]Write i2c OK [13:54:22]MH_I2C_Read... [13:54:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:54:22]Read from MH i2c: E2 [13:54:22]MH_I2C_Read... [13:54:22]Read from MH i2c: E2 03 00 [13:54:22]MH_I2C_Read... [13:54:22]Read from MH i2c: E2 03 00 F9 00 00 90 00 6D [13:54:22]RAPDU: 90 00 [13:54:22]wFMCommunicate OK [13:54:22]wFMCommunicate request_size=4 [13:54:22]MH_SAM_APDU [13:54:22]CAPDU: 80 0D 03 02 [13:54:22]Write to MH i2c: E2 08 00 FA 00 80 0D 03 02 00 00 00 00 75 [13:54:22]Write i2c OK [13:54:22]MH_I2C_Read... [13:54:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:54:22]Read from MH i2c: E2 [13:54:22]MH_I2C_Read... [13:54:22]Read from MH i2c: E2 0B 00 [13:54:22]MH_I2C_Read... [13:54:22]Read from MH i2c: E2 0B 00 FA 00 00 A8 D0 AF 7F 19 EF FB C3 90 00 E2 [13:54:22]RAPDU: A8 D0 AF 7F 19 EF FB C3 90 00 [13:54:22]wFMCommunicate OK [13:54:22]SAM_PROTO_SignData done [13:54:22]FM_MakeSignedData done [13:54:22]CreateOFDProtocolMessage [13:54:22]wFMCommunicate request_size=4 [13:54:22]MH_SAM_APDU [13:54:22]CAPDU: 80 11 00 00 [13:54:22]Write to MH i2c: E2 08 00 FB 00 80 11 00 00 00 00 00 00 75 [13:54:22]Write i2c OK [13:54:22]MH_I2C_Read... [13:54:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:54:22]Read from MH i2c: E2 [13:54:22]MH_I2C_Read... [13:54:22]Read from MH i2c: E2 17 00 [13:54:22]MH_I2C_Read... [13:54:22]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 33 39 90 00 CC [13:54:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:54:22]wFMCommunicate OK [13:54:22]CreateOFDProtocolMessage done [13:54:22]OFDSenderStorePacket 227496 [13:54:22]StoreOFDPacket docnum=227496 [13:54:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 A9 B4 04 01 15 6D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 80 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D5 71 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 71 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 37 01 00 00 00 07 04 06 00 B0 71 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 01 00 00 F4 03 04 00 8D 0B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A8 78 03 00 35 04 06 00 90 58 26 31 D1 2A A8 D0 AF 7F 19 EF FB C3 [13:54:22]CheckFolder [13:54:22]dirname=/storage/ofd_packets [13:54:22]CheckFolder done [13:54:22]ProducePacketName [13:54:22]name=ofd_packets/00227496 [13:54:22]NVStorageSaveData ofd_packets/00227496 [13:54:22]File name is /storage/ofd_packets/00227496 [13:54:22]Write 298 bytes [13:54:22]NVStorageSaveData done [13:54:22]OFDSenderStorePacket done [13:54:22]KKMCreateOFDPacket done [13:54:22]NVStorageSaveData kkm_last_timestamp [13:54:22]File name is /storage/kkm_last_timestamp [13:54:22]Write 4 bytes [13:54:22]NVStorageSaveData done [13:54:22]ExternCall_PrintAddStr [13:54:22]wPrintStart [13:54:22]Write to MH i2c: 01 00 00 FC 00 FC [13:54:22]Write i2c OK [13:54:22]MH_I2C_Read... [13:54:22]Read from MH i2c: 01 [13:54:22]MH_I2C_Read... [13:54:22]Read from MH i2c: 01 07 00 [13:54:22]MH_I2C_Read... [13:54:22]Read from MH i2c: 01 07 00 FC 00 00 00 00 00 00 FF 0F 11 [13:54:22]RasterBufferAndPrint [13:54:22]line Счет N : (1)1963020 [13:54:22]line ИНН: 02508201610067 [13:54:22]line Контрольно-Кассовый Чек [13:54:22]line ПРОДАЖА [13:54:22]line ТРК (МРК, ГНК) : 21 [13:54:22]line Товар: 2710194210 [13:54:22]line ДТ-К-5 [13:54:22]line 98.430 * 76.20 [13:54:22]line = 7500.37 [13:54:22]line НДС 12% НСП 1% [13:54:22]line > о реализуемом товаре [13:54:22]line ОКРУГЛЕНИЕ: -0.37 [13:54:22]line ИТОГО: 7500.00 [13:54:22]line Внесено: 7500.00 [13:54:22]line СДАЧА: 0.00 [13:54:22]line НСП 1% : 66.37 [13:54:22]line НДС 12% : 796.50 [13:54:22]line Наличными: 7500.00 [13:54:22]line Безнал.: 0.00 [13:54:22]line Место: АЗС № 133 "Партнер Нефть" [13:54:22]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:54:22]line СНО: Общий режим [13:54:22]line Чек 344 20.10.2024 13:54 [13:54:22]line Смена: 533 ФФД: 1.0 [13:54:22]line ЗНМ: 0300000091 [13:54:22]line РНМ: 0000000000091685 [13:54:22]line Версия ККМ: 001 [13:54:22]line ФМ: 0000000000871839 [13:54:22]line ФД: 227496 [13:54:22]line ФПД: 158708272320810 [13:54:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T135421&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227496&fm=158708272320810&tin=02508201610067®Number=0000000000091685&sum=750000 [13:54:23]OFD Sender: Processing packet 227496 [packets to send 38, broken 37] [13:54:23]ProducePacketName [13:54:23]name=ofd_packets/00227496 [13:54:23]OFD Sender: To server: pG, [13:54:23]CommunicateWithHost lk.salyk.kg:30040 [13:54:23]ConnectInit lk.salyk.kg [13:54:23]written 0, free lines is 4095 [13:54:23]Connected sock=9 [13:54:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 A9 B4 04 01 15 6D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 80 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D5 71 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 71 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 37 01 00 00 00 07 04 06 00 B0 71 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 01 00 00 F4 03 04 00 8D 0B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A8 78 03 00 35 04 06 00 90 58 26 31 D1 2A A8 D0 AF 7F 19 EF FB C3 [13:54:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 34 BC 47 00 8D 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 33 39 10 04 04 00 A8 78 03 00 F4 03 04 00 8C B6 14 67 B6 04 01 00 00 17 98 38 9D A4 19 CA FB [13:54:23]CommunicateWithHost err = 0 [13:54:23]CheckOFDResponse [13:54:23]1017 (14) - 77093643461234 [13:54:23]1041 (16) - 0000000000871839 [13:54:23]1040 (4) - 227496 [13:54:23]1012 (4) - 20.10.2024 07:51 [13:54:23]1206 (1) - 0 [13:54:23]OFD Sender: Remove packet 227496 [13:54:23]ProducePacketName [13:54:23]name=ofd_packets/00227496 [13:54:23]NVStorageDeleteData [13:54:23]Write to MH i2c: 01 00 00 26 01 27 [13:54:23]Write i2c OK [13:54:23]MH_I2C_Read... [13:54:23]Read from MH i2c: 01 [13:54:23]MH_I2C_Read... [13:54:23]Read from MH i2c: 01 07 00 [13:54:23]MH_I2C_Read... [13:54:23]Read from MH i2c: 01 07 00 26 01 00 00 00 00 00 0D 0D 48 [13:54:23]RasterBufferAndPrint [13:54:23]line [13:54:23]line [13:54:23]line [13:54:23]line [13:54:23]line [13:54:23]written 0, free lines is 3350 [13:54:23]process_action close_receipt done [13:54:23]requested_data is exist [13:54:23]produce_requested_data [13:54:23]requested_item fm.sn is exist - process it [13:54:23]wFMCommunicate request_size=4 [13:54:23]MH_SAM_APDU [13:54:23]CAPDU: 80 11 00 00 [13:54:23]Write to MH i2c: E2 08 00 2D 01 80 11 00 00 00 00 00 00 A8 [13:54:23]Write i2c OK [13:54:23]MH_I2C_Read... [13:54:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:54:23]Read from MH i2c: E2 [13:54:23]MH_I2C_Read... [13:54:23]Read from MH i2c: E2 17 00 [13:54:23]MH_I2C_Read... [13:54:23]Read from MH i2c: E2 17 00 2D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 FF [13:54:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:54:23]wFMCommunicate OK [13:54:23]requested_item fd.num is exist - process it [13:54:23]SAM_PROTO_GetFieldsCounters [13:54:23]wFMCommunicate request_size=4 [13:54:23]MH_SAM_APDU [13:54:23]CAPDU: 80 13 00 00 [13:54:23]Write to MH i2c: E2 08 00 2E 01 80 13 00 00 00 00 00 00 AB [13:54:23]Write i2c OK [13:54:23]MH_I2C_Read... [13:54:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:54:23]Read from MH i2c: E2 [13:54:23]MH_I2C_Read... [13:54:23]Read from MH i2c: E2 62 00 [13:54:23]MH_I2C_Read... [13:54:23]Read from MH i2c: E2 62 00 2E 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A8 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 58 01 00 00 5E 04 04 00 58 01 00 00 57 04 04 00 59 01 00 00 19 04 04 00 00 00 00 00 90 00 19 [13:54: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A8 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 58 01 00 00 5E 04 04 00 58 01 00 00 57 04 04 00 59 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:54:23]wFMCommunicate OK [13:54:23]SAM_PROTO_GetFieldsCounters done [13:54:23]requested_item shift.num is exist - process it [13:54:23]requested_item shift.opened is exist - process it [13:54:23]req_shift_opened [13:54:23]FM_GetShiftState [13:54:23]SAM_PROTO_GetShiftState [13:54:23]wFMCommunicate request_size=4 [13:54:23]MH_SAM_APDU [13:54:23]CAPDU: 80 13 01 00 [13:54:23]Write to MH i2c: E2 08 00 2F 01 80 13 01 00 00 00 00 00 AD [13:54:23]Write i2c OK [13:54:23]MH_I2C_Read... [13:54:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:54:23]Read from MH i2c: E2 [13:54:23]MH_I2C_Read... [13:54:23]Read from MH i2c: E2 0E 00 [13:54:23]MH_I2C_Read... [13:54:23]Read from MH i2c: E2 0E 00 2F 01 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 C7 [13:54:23]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:54:23]wFMCommunicate OK [13:54:23]SAM_PROTO_GetShiftState done [13:54:23]FM_GetShiftState done [13:54:23]req_shift_opened done [13:54:23]requested_item shift.open_date is exist - process it [13:54:23]req_shift_open_date [13:54:23]req_shift_open_date done [13:54:23]produce_requested_data done [13:54:23]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227496,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [13:54:23]process_action_free close_receipt [13:54:23]json_value_free [13:54:23]json_value_free done [13:54:23]process_json_proto returns [13:54:23]Send response to host [13:54:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227496,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [13:54:23]free response buf [13:54:23]execute_script done [13:54:23]execute_script returns [13:54:23]free content buf [13:54:23]Sock 7.Close socket [13:54:23]Sock 7.Thread stoped [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:39]OFD Sender: No OFD packet to send [13:55:44]OFD Sender: No OFD packet to send [13:55:49]OFD Sender: No OFD packet to send [13:55:54]OFD Sender: No OFD packet to send [13:55:59]OFD Sender: No OFD packet to send [13:56:04]OFD Sender: No OFD packet to send [13:56:09]OFD Sender: No OFD packet to send [13:56:14]OFD Sender: No OFD packet to send [13:56:19]OFD Sender: No OFD packet to send [13:56:24]OFD Sender: No OFD packet to send [13:56:29]OFD Sender: No OFD packet to send [13:56:34]OFD Sender: No OFD packet to send [13:56:39]OFD Sender: No OFD packet to send [13:56:44]OFD Sender: No OFD packet to send [13:56:49]OFD Sender: No OFD packet to send [13:56:54]OFD Sender: No OFD packet to send [13:56:59]OFD Sender: No OFD packet to send [13:57:04]OFD Sender: No OFD packet to send [13:57:09]OFD Sender: No OFD packet to send [13:57:14]OFD Sender: No OFD packet to send [13:57:19]OFD Sender: No OFD packet to send [13:57:24]OFD Sender: No OFD packet to send [13:57:29]OFD Sender: No OFD packet to send [13:57:34]OFD Sender: No OFD packet to send [13:57:39]OFD Sender: No OFD packet to send [13:57:44]OFD Sender: No OFD packet to send [13:57:49]OFD Sender: No OFD packet to send [13:57:54]OFD Sender: No OFD packet to send [13:57:59]OFD Sender: No OFD packet to send [13:58:04]OFD Sender: No OFD packet to send [13:58:09]OFD Sender: No OFD packet to send [13:58:14]OFD Sender: No OFD packet to send [13:58:15]accept exits with 10 [13:58:15]New connection [13:58:15]New thread 3067362660 created [13:58:15]Thread 3067219300 joined [13:58:15]Waiting for new connection... [13:58:15] Sock 10.Parse request [13:58:15]Sock 10.Check first char [13:58:15]Sock 10.First char is OK [13:58:15]request: POST /json_proto HTTP/1.0 [13:58:15]Method: POST [13:58:15]URL: /json_proto [13:58:15]Method is POST - this is cgi request [13:58:15]url: /json_proto [13:58:15]query_string will be loaded in cgi processing [13:58:15]execute_cgi json_proto POST (null) [13:58:15]execute_cgi path=json_proto method=POST [13:58:15]POST find Content-Length [13:58:15]Host: 172.17.44.195:8080 [13:58:15]Content-Length: 683 [13:58:15]Content-Type: application/json [13:58:15] [13:58:15]POST finish read [13:58:15]Found Content-Length = 683 [13:58:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963022", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:15]execute_script... [13:58:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963022", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:15]POST & json_proto [13:58:15]process_json_proto [13:58:15]json parsed OK: [13:58:15]protocol is kg_v1.0 [13:58:15]action value=close_receipt [13:58:15]process_action close_receipt [13:58:15]cmd_close_receipt [13:58:15]MH_GetDate [13:58:15]Write to MH i2c: F0 00 00 30 01 20 [13:58:15]Write i2c OK [13:58:15]MH_I2C_Read... [13:58:15]Read from MH i2c: F0 [13:58:15]MH_I2C_Read... [13:58:15]Read from MH i2c: F0 09 00 [13:58:15]MH_I2C_Read... [13:58:15]Read from MH i2c: F0 09 00 30 01 00 78 0C 15 67 82 C9 CF 66 A9 [13:58:15]GetLastDocTimeStamp 1729432461 [13:58:15]current date 1729432696 [13:58:15]FM_GetShiftState [13:58:15]SAM_PROTO_GetShiftState [13:58:15]wFMCommunicate request_size=4 [13:58:15]MH_SAM_APDU [13:58:15]CAPDU: 80 13 01 00 [13:58:15]Write to MH i2c: E2 08 00 31 01 80 13 01 00 00 00 00 00 AF [13:58:15]Write i2c OK [13:58:15]MH_I2C_Read... [13:58:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:15]Read from MH i2c: E2 [13:58:15]MH_I2C_Read... [13:58:15]Read from MH i2c: E2 0E 00 [13:58:15]MH_I2C_Read... [13:58:15]Read from MH i2c: E2 0E 00 31 01 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 C9 [13:58:15]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:58:15]wFMCommunicate OK [13:58:15]SAM_PROTO_GetShiftState done [13:58:15]FM_GetShiftState done [13:58:15]opened in 1729383750 [13:58:15]opened+sec_in_day 1729470150 [13:58:15]quantity*price = 150032 [13:58:15]sum+1 = 150033 [13:58:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 345 20.10.2024 13:58 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227497 ФПД: 123562076033633 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T135816&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227497&fm=123562076033633&tin=02508201610067®Number=0000000000091685&sum=150000 [13:58:16]StoreToDocumentArchive [13:58:16]shift 533 fd 227497 [13:58:16]save to /storage/0533/doc_00227497 [13:58:16]save last doc name /storage/0533/doc_00227497 to /storage/kkm_last_doc_name [13:58:16]save OK [13:58:16]Clear old archive folders... [13:58:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:58:16]tlvbuf is 00D9DE40 [13:58:16]SAM_PROTO_ClearQueue [13:58:16]wFMCommunicate request_size=4 [13:58:16]MH_SAM_APDU [13:58:16]CAPDU: 80 09 00 00 [13:58:16]Write to MH i2c: E2 08 00 3E 01 80 09 00 00 00 00 00 00 B1 [13:58:16]Write i2c OK [13:58:16]MH_I2C_Read... [13:58:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:58:16]Read from MH i2c: E2 [13:58:16]MH_I2C_Read... [13:58:16]Read from MH i2c: E2 03 00 [13:58:16]MH_I2C_Read... [13:58:16]Read from MH i2c: E2 03 00 3E 01 00 90 00 B3 [13:58:16]RAPDU: 90 00 [13:58:16]wFMCommunicate OK [13:58:16]SAM_PROTO_ClearQueue done [13:58:16]KKMCreateOFDPacket [13:58:16]OFDProtocolAddRootSTLVToBuf [13:58:16]FM_MakeSignedData [13:58:16]FM_MakeSignedData [13:58:16]SAM_PROTO_SignData [13:58:16]wFMCommunicate request_size=4 [13:58:16]MH_SAM_APDU [13:58:16]CAPDU: 80 0D 01 02 [13:58:16]Write to MH i2c: E2 08 00 3F 01 80 0D 01 02 00 00 00 00 B9 [13:58:16]Write i2c OK [13:58:16]MH_I2C_Read... [13:58:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:58:16]Read from MH i2c: E2 [13:58:16]MH_I2C_Read... [13:58:16]Read from MH i2c: E2 03 00 [13:58:16]MH_I2C_Read... [13:58:16]Read from MH i2c: E2 03 00 3F 01 00 90 00 B4 [13:58:16]RAPDU: 90 00 [13:58:16]wFMCommunicate OK [13:58:16]wFMCommunicate request_size=255 [13:58:16]MH_SAM_APDU [13:58: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 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 01 00 00 F4 03 04 00 78 0C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A9 78 03 00 35 04 06 00 70 [13:58:16]Write to MH i2c: E2 02 01 40 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 01 00 00 F4 03 04 00 78 0C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A9 78 03 00 35 04 06 00 70 00 00 B8 [13:58:16]Write i2c OK [13:58:16]MH_I2C_Read... [13:58:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:17]Read from MH i2c: E2 [13:58:17]MH_I2C_Read... [13:58:17]Read from MH i2c: E2 03 00 [13:58:17]MH_I2C_Read... [13:58:17]Read from MH i2c: E2 03 00 40 01 00 90 00 B5 [13:58:17]RAPDU: 90 00 [13:58:17]wFMCommunicate OK [13:58:17]wFMCommunicate request_size=10 [13:58:17]MH_SAM_APDU [13:58:17]CAPDU: 80 0D 02 02 05 61 09 A6 52 61 [13:58:17]Write to MH i2c: E2 0D 00 41 01 80 0D 02 02 05 00 61 09 A6 52 61 00 00 89 [13:58:17]Write i2c OK [13:58:17]MH_I2C_Read... [13:58:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:17]Read from MH i2c: E2 [13:58:17]MH_I2C_Read... [13:58:17]Read from MH i2c: E2 03 00 [13:58:17]MH_I2C_Read... [13:58:17]Read from MH i2c: E2 03 00 41 01 00 90 00 B6 [13:58:17]RAPDU: 90 00 [13:58:17]wFMCommunicate OK [13:58:17]wFMCommunicate request_size=4 [13:58:17]MH_SAM_APDU [13:58:17]CAPDU: 80 0D 03 02 [13:58:17]Write to MH i2c: E2 08 00 42 01 80 0D 03 02 00 00 00 00 BE [13:58:17]Write i2c OK [13:58:17]MH_I2C_Read... [13:58:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:58:17]Read from MH i2c: E2 [13:58:17]MH_I2C_Read... [13:58:17]Read from MH i2c: E2 0B 00 [13:58:17]MH_I2C_Read... [13:58:17]Read from MH i2c: E2 0B 00 42 01 00 78 DD 8B 47 96 11 41 F1 90 00 BF [13:58:17]RAPDU: 78 DD 8B 47 96 11 41 F1 90 00 [13:58:17]wFMCommunicate OK [13:58:17]SAM_PROTO_SignData done [13:58:17]FM_MakeSignedData done [13:58:17]CreateOFDProtocolMessage [13:58:17]wFMCommunicate request_size=4 [13:58:17]MH_SAM_APDU [13:58:17]CAPDU: 80 11 00 00 [13:58:17]Write to MH i2c: E2 08 00 43 01 80 11 00 00 00 00 00 00 BE [13:58:17]Write i2c OK [13:58:17]MH_I2C_Read... [13:58:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:17]Read from MH i2c: E2 [13:58:17]MH_I2C_Read... [13:58:17]Read from MH i2c: E2 17 00 [13:58:17]MH_I2C_Read... [13:58:17]Read from MH i2c: E2 17 00 43 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 15 [13:58:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:58:17]wFMCommunicate OK [13:58:17]CreateOFDProtocolMessage done [13:58:17]OFDSenderStorePacket 227497 [13:58:17]StoreOFDPacket docnum=227497 [13:58:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 DC 1C 07 01 A4 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 01 00 00 F4 03 04 00 78 0C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A9 78 03 00 35 04 06 00 70 61 09 A6 52 61 78 DD 8B 47 96 11 41 F1 [13:58:17]CheckFolder [13:58:17]dirname=/storage/ofd_packets [13:58:17]CheckFolder done [13:58:17]ProducePacketName [13:58:17]name=ofd_packets/00227497 [13:58:17]NVStorageSaveData ofd_packets/00227497 [13:58:17]File name is /storage/ofd_packets/00227497 [13:58:17]Write 301 bytes [13:58:17]NVStorageSaveData done [13:58:17]OFDSenderStorePacket done [13:58:17]KKMCreateOFDPacket done [13:58:17]NVStorageSaveData kkm_last_timestamp [13:58:17]File name is /storage/kkm_last_timestamp [13:58:17]Write 4 bytes [13:58:17]NVStorageSaveData done [13:58:17]ExternCall_PrintAddStr [13:58:17]wPrintStart [13:58:17]Write to MH i2c: 01 00 00 44 01 45 [13:58:17]Write i2c OK [13:58:17]MH_I2C_Read... [13:58:17]Read from MH i2c: 01 [13:58:17]MH_I2C_Read... [13:58:17]Read from MH i2c: 01 07 00 [13:58:17]MH_I2C_Read... [13:58:17]Read from MH i2c: 01 07 00 44 01 00 00 00 00 00 FF 0F 5A [13:58:17]RasterBufferAndPrint [13:58:17]line Счет N : (1)1963022 [13:58:17]line ИНН: 02508201610067 [13:58:17]line Контрольно-Кассовый Чек [13:58:17]line ПРОДАЖА [13:58:17]line ТРК (МРК, ГНК) : 54 [13:58:17]line Товар: 2710124500 [13:58:17]line Аи-95-К-5 [13:58:17]line 20.220 * 74.20 [13:58:17]line = 1500.32 [13:58:17]line НДС 12% НСП 1% [13:58:17]line > о реализуемом товаре [13:58:17]line ОКРУГЛЕНИЕ: -0.32 [13:58:17]line ИТОГО: 1500.00 [13:58:17]line Внесено: 1500.00 [13:58:17]line СДАЧА: 0.00 [13:58:17]line НСП 1% : 13.28 [13:58:17]line НДС 12% : 159.33 [13:58:17]line Наличными: 1500.00 [13:58:17]line Безнал.: 0.00 [13:58:17]line Место: АЗС № 133 "Партнер Нефть" [13:58:17]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:58:17]line СНО: Общий режим [13:58:17]line Чек 345 20.10.2024 13:58 [13:58:17]line Смена: 533 ФФД: 1.0 [13:58:17]line ЗНМ: 0300000091 [13:58:17]line РНМ: 0000000000091685 [13:58:17]line Версия ККМ: 001 [13:58:17]line ФМ: 0000000000871839 [13:58:17]line ФД: 227497 [13:58:17]line ФПД: 123562076033633 [13:58:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T135816&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227497&fm=123562076033633&tin=02508201610067®Number=0000000000091685&sum=150000 [13:58:17]OFD Sender: Processing packet 227497 [packets to send 38, broken 37] [13:58:17]ProducePacketName [13:58:17]name=ofd_packets/00227497 [13:58:17]OFD Sender: To server: pG, [13:58:17]CommunicateWithHost lk.salyk.kg:30040 [13:58:17]ConnectInit lk.salyk.kg [13:58:17]written 0, free lines is 4095 [13:58:17]Connected sock=9 [13:58:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 DC 1C 07 01 A4 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 01 00 00 F4 03 04 00 78 0C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A9 78 03 00 35 04 06 00 70 61 09 A6 52 61 78 DD 8B 47 96 11 41 F1 [13:58: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 33 39 4F 00 00 00 D0 52 47 00 F1 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 33 39 10 04 04 00 A9 78 03 00 F4 03 04 00 77 B7 14 67 B6 04 01 00 00 CC 3F B7 73 41 FB 1D 4D [13:58:17]CommunicateWithHost err = 0 [13:58:17]CheckOFDResponse [13:58:17]1017 (14) - 77093643461234 [13:58:17]1041 (16) - 0000000000871839 [13:58:17]1040 (4) - 227497 [13:58:17]1012 (4) - 20.10.2024 07:55 [13:58:17]1206 (1) - 0 [13:58:17]OFD Sender: Remove packet 227497 [13:58:17]ProducePacketName [13:58:17]name=ofd_packets/00227497 [13:58:17]NVStorageDeleteData [13:58:18]Write to MH i2c: 01 00 00 6E 01 6F [13:58:18]Write i2c OK [13:58:18]MH_I2C_Read... [13:58:18]Read from MH i2c: 01 [13:58:18]MH_I2C_Read... [13:58:18]Read from MH i2c: 01 07 00 [13:58:18]MH_I2C_Read... [13:58:18]Read from MH i2c: 01 07 00 6E 01 00 00 00 00 00 1D 0D A0 [13:58:18]RasterBufferAndPrint [13:58:18]line [13:58:18]line [13:58:18]line [13:58:18]line [13:58:18]line [13:58:18]written 0, free lines is 3363 [13:58:18]process_action close_receipt done [13:58:18]requested_data is exist [13:58:18]produce_requested_data [13:58:18]requested_item fm.sn is exist - process it [13:58:18]wFMCommunicate request_size=4 [13:58:18]MH_SAM_APDU [13:58:18]CAPDU: 80 11 00 00 [13:58:18]Write to MH i2c: E2 08 00 75 01 80 11 00 00 00 00 00 00 F0 [13:58:18]Write i2c OK [13:58:18]MH_I2C_Read... [13:58:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:18]Read from MH i2c: E2 [13:58:18]MH_I2C_Read... [13:58:18]Read from MH i2c: E2 17 00 [13:58:18]MH_I2C_Read... [13:58:18]Read from MH i2c: E2 17 00 75 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 47 [13:58:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:58:18]wFMCommunicate OK [13:58:18]requested_item fd.num is exist - process it [13:58:18]SAM_PROTO_GetFieldsCounters [13:58:18]wFMCommunicate request_size=4 [13:58:18]MH_SAM_APDU [13:58:18]CAPDU: 80 13 00 00 [13:58:18]Write to MH i2c: E2 08 00 76 01 80 13 00 00 00 00 00 00 F3 [13:58:18]Write i2c OK [13:58:18]MH_I2C_Read... [13:58:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:58:18]Read from MH i2c: E2 [13:58:18]MH_I2C_Read... [13:58:18]Read from MH i2c: E2 62 00 [13:58:18]MH_I2C_Read... [13:58:18]Read from MH i2c: E2 62 00 76 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A9 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 59 01 00 00 5E 04 04 00 59 01 00 00 57 04 04 00 5A 01 00 00 19 04 04 00 00 00 00 00 90 00 65 [13:58: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A9 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 59 01 00 00 5E 04 04 00 59 01 00 00 57 04 04 00 5A 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:58:18]wFMCommunicate OK [13:58:18]SAM_PROTO_GetFieldsCounters done [13:58:18]requested_item shift.num is exist - process it [13:58:18]requested_item shift.opened is exist - process it [13:58:18]req_shift_opened [13:58:18]FM_GetShiftState [13:58:18]SAM_PROTO_GetShiftState [13:58:18]wFMCommunicate request_size=4 [13:58:18]MH_SAM_APDU [13:58:18]CAPDU: 80 13 01 00 [13:58:18]Write to MH i2c: E2 08 00 77 01 80 13 01 00 00 00 00 00 F5 [13:58:18]Write i2c OK [13:58:18]MH_I2C_Read... [13:58:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:18]Read from MH i2c: E2 [13:58:18]MH_I2C_Read... [13:58:18]Read from MH i2c: E2 0E 00 [13:58:18]MH_I2C_Read... [13:58:18]Read from MH i2c: E2 0E 00 77 01 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 0F [13:58:18]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:58:18]wFMCommunicate OK [13:58:18]SAM_PROTO_GetShiftState done [13:58:18]FM_GetShiftState done [13:58:18]req_shift_opened done [13:58:18]requested_item shift.open_date is exist - process it [13:58:18]req_shift_open_date [13:58:18]req_shift_open_date done [13:58:18]produce_requested_data done [13:58:18]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227497,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [13:58:18]process_action_free close_receipt [13:58:18]json_value_free [13:58:18]json_value_free done [13:58:18]process_json_proto returns [13:58:18]Send response to host [13:58:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227497,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [13:58:18]free response buf [13:58:18]execute_script done [13:58:18]execute_script returns [13:58:18]free content buf [13:58:18]Sock 10.Close socket [13:58:18]Sock 10.Thread stoped [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]accept exits with 7 [13:59:53]New connection [13:59:53]New thread 3067219300 created [13:59:53]Thread 3067362660 joined [13:59:53]Waiting for new connection... [13:59:53] Sock 7.Parse request [13:59:53]Sock 7.Check first char [13:59:53]Sock 7.First char is OK [13:59:53]request: POST /json_proto HTTP/1.0 [13:59:53]Method: POST [13:59:53]URL: /json_proto [13:59:53]Method is POST - this is cgi request [13:59:53]url: /json_proto [13:59:53]query_string will be loaded in cgi processing [13:59:53]execute_cgi json_proto POST (null) [13:59:53]execute_cgi path=json_proto method=POST [13:59:53]POST find Content-Length [13:59:53]Host: 172.17.44.195:8080 [13:59:53]Content-Length: 678 [13:59:53]Content-Type: application/json [13:59:53] [13:59:53]POST finish read [13:59:53]Found Content-Length = 678 [13:59:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963024", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 4.050, "sum" : 300.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:59:53]execute_script... [13: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)1963024", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 4.050, "sum" : 300.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:59:53]POST & json_proto [13:59:53]process_json_proto [13:59:53]json parsed OK: [13:59:53]protocol is kg_v1.0 [13:59:53]action value=close_receipt [13:59:53]process_action close_receipt [13:59:53]cmd_close_receipt [13:59:53]MH_GetDate [13:59:53]Write to MH i2c: F0 00 00 78 01 68 [13:59:53]Write i2c OK [13:59:53]MH_I2C_Read... [13:59:53]Read from MH i2c: F0 [13:59:53]MH_I2C_Read... [13:59:53]Read from MH i2c: F0 09 00 [13:59:53]MH_I2C_Read... [13:59:53]Read from MH i2c: F0 09 00 78 01 00 D9 0C 15 67 82 C9 CF 66 52 [13:59:53]GetLastDocTimeStamp 1729432696 [13:59:53]current date 1729432793 [13:59:53]FM_GetShiftState [13:59:53]SAM_PROTO_GetShiftState [13:59:53]wFMCommunicate request_size=4 [13:59:53]MH_SAM_APDU [13:59:53]CAPDU: 80 13 01 00 [13:59:53]Write to MH i2c: E2 08 00 79 01 80 13 01 00 00 00 00 00 F7 [13:59:53]Write i2c OK [13:59:53]MH_I2C_Read... [13:59:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:53]Read from MH i2c: E2 [13:59:53]MH_I2C_Read... [13:59:53]Read from MH i2c: E2 0E 00 [13:59:53]MH_I2C_Read... [13:59:53]Read from MH i2c: E2 0E 00 79 01 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 11 [13:59:53]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:59:53]wFMCommunicate OK [13:59:53]SAM_PROTO_GetShiftState done [13:59:53]FM_GetShiftState done [13:59:53]opened in 1729383750 [13:59:53]opened+sec_in_day 1729470150 [13:59:53]quantity*price = 30051 [13:59:53]sum+1 = 30052 [13:59:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 346 20.10.2024 13:59 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227498 ФПД: 166053818361869 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T135953&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227498&fm=166053818361869&tin=02508201610067®Number=0000000000091685&sum=30000 [13:59:54]StoreToDocumentArchive [13:59:54]shift 533 fd 227498 [13:59:54]save to /storage/0533/doc_00227498 [13:59:54]save last doc name /storage/0533/doc_00227498 to /storage/kkm_last_doc_name [13:59:54]save OK [13:59:54]Clear old archive folders... [13:59:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:59:54]tlvbuf is 00D8B3C0 [13:59:54]SAM_PROTO_ClearQueue [13:59:54]wFMCommunicate request_size=4 [13:59:54]MH_SAM_APDU [13:59:54]CAPDU: 80 09 00 00 [13:59:54]Write to MH i2c: E2 08 00 86 01 80 09 00 00 00 00 00 00 F9 [13:59:54]Write i2c OK [13:59:54]MH_I2C_Read... [13:59:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:59:54]Read from MH i2c: E2 [13:59:54]MH_I2C_Read... [13:59:54]Read from MH i2c: E2 03 00 [13:59:54]MH_I2C_Read... [13:59:54]Read from MH i2c: E2 03 00 86 01 00 90 00 FB [13:59:54]RAPDU: 90 00 [13:59:54]wFMCommunicate OK [13:59:54]SAM_PROTO_ClearQueue done [13:59:54]KKMCreateOFDPacket [13:59:54]OFDProtocolAddRootSTLVToBuf [13:59:54]FM_MakeSignedData [13:59:54]FM_MakeSignedData [13:59:54]SAM_PROTO_SignData [13:59:54]wFMCommunicate request_size=4 [13:59:54]MH_SAM_APDU [13:59:54]CAPDU: 80 0D 01 02 [13:59:54]Write to MH i2c: E2 08 00 87 01 80 0D 01 02 00 00 00 00 01 [13:59:54]Write i2c OK [13:59:54]MH_I2C_Read... [13:59:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:59:54]Read from MH i2c: E2 [13:59:54]MH_I2C_Read... [13:59:54]Read from MH i2c: E2 03 00 [13:59:54]MH_I2C_Read... [13:59:54]Read from MH i2c: E2 03 00 87 01 00 90 00 FC [13:59:54]RAPDU: 90 00 [13:59:54]wFMCommunicate OK [13:59:54]wFMCommunicate request_size=255 [13:59:54]MH_SAM_APDU [13: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 5A 01 00 00 F4 03 04 00 D9 0C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AA 78 03 00 35 04 06 00 97 [13:59:54]Write to MH i2c: E2 02 01 88 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 5A 01 00 00 F4 03 04 00 D9 0C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AA 78 03 00 35 04 06 00 97 00 00 4F [13:59:54]Write i2c OK [13:59:54]MH_I2C_Read... [13:59:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:54]Read from MH i2c: E2 [13:59:54]MH_I2C_Read... [13:59:54]Read from MH i2c: E2 03 00 [13:59:54]MH_I2C_Read... [13:59:54]Read from MH i2c: E2 03 00 88 01 00 90 00 FD [13:59:54]RAPDU: 90 00 [13:59:54]wFMCommunicate OK [13:59:54]wFMCommunicate request_size=10 [13:59:54]MH_SAM_APDU [13:59:54]CAPDU: 80 0D 02 02 05 06 6A DB 68 0D [13:59:54]Write to MH i2c: E2 0D 00 89 01 80 0D 02 02 05 00 06 6A DB 68 0D 00 00 CE [13:59:54]Write i2c OK [13:59:54]MH_I2C_Read... [13:59:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:54]Read from MH i2c: E2 [13:59:54]MH_I2C_Read... [13:59:54]Read from MH i2c: E2 03 00 [13:59:54]MH_I2C_Read... [13:59:54]Read from MH i2c: E2 03 00 89 01 00 90 00 FE [13:59:54]RAPDU: 90 00 [13:59:54]wFMCommunicate OK [13:59:54]wFMCommunicate request_size=4 [13:59:54]MH_SAM_APDU [13:59:54]CAPDU: 80 0D 03 02 [13:59:54]Write to MH i2c: E2 08 00 8A 01 80 0D 03 02 00 00 00 00 06 [13:59:54]Write i2c OK [13:59:54]MH_I2C_Read... [13:59:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:59:54]Read from MH i2c: E2 [13:59:54]MH_I2C_Read... [13:59:54]Read from MH i2c: E2 0B 00 [13:59:54]MH_I2C_Read... [13:59:54]Read from MH i2c: E2 0B 00 8A 01 00 95 F2 0B 3E C5 03 E6 F5 90 00 7A [13:59:54]RAPDU: 95 F2 0B 3E C5 03 E6 F5 90 00 [13:59:54]wFMCommunicate OK [13:59:54]SAM_PROTO_SignData done [13:59:54]FM_MakeSignedData done [13:59:54]CreateOFDProtocolMessage [13:59:54]wFMCommunicate request_size=4 [13:59:54]MH_SAM_APDU [13:59:54]CAPDU: 80 11 00 00 [13:59:54]Write to MH i2c: E2 08 00 8B 01 80 11 00 00 00 00 00 00 06 [13:59:54]Write i2c OK [13:59:54]MH_I2C_Read... [13:59:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:54]Read from MH i2c: E2 [13:59:54]MH_I2C_Read... [13:59:54]Read from MH i2c: E2 17 00 [13:59:54]MH_I2C_Read... [13:59:54]Read from MH i2c: E2 17 00 8B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 5D [13:59:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:59:54]wFMCommunicate OK [13:59:54]CreateOFDProtocolMessage done [13:59:54]OFDSenderStorePacket 227498 [13:59:54]StoreOFDPacket docnum=227498 [13:59:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 12 9A 07 01 23 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 5A 01 00 00 F4 03 04 00 D9 0C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AA 78 03 00 35 04 06 00 97 06 6A DB 68 0D 95 F2 0B 3E C5 03 E6 F5 [13:59:54]CheckFolder [13:59:54]dirname=/storage/ofd_packets [13:59:54]CheckFolder done [13:59:54]ProducePacketName [13:59:54]name=ofd_packets/00227498 [13:59:54]NVStorageSaveData ofd_packets/00227498 [13:59:54]File name is /storage/ofd_packets/00227498 [13:59:54]Write 301 bytes [13:59:54]NVStorageSaveData done [13:59:54]OFDSenderStorePacket done [13:59:54]KKMCreateOFDPacket done [13:59:54]NVStorageSaveData kkm_last_timestamp [13:59:54]File name is /storage/kkm_last_timestamp [13:59:54]Write 4 bytes [13:59:54]NVStorageSaveData done [13:59:54]ExternCall_PrintAddStr [13:59:54]wPrintStart [13:59:54]Write to MH i2c: 01 00 00 8C 01 8D [13:59:54]Write i2c OK [13:59:54]MH_I2C_Read... [13:59:54]Read from MH i2c: 01 [13:59:54]MH_I2C_Read... [13:59:54]Read from MH i2c: 01 07 00 [13:59:54]MH_I2C_Read... [13:59:54]Read from MH i2c: 01 07 00 8C 01 00 00 00 00 00 FF 0F A2 [13:59:54]RasterBufferAndPrint [13:59:54]line Счет N : (1)1963024 [13:59:54]line ИНН: 02508201610067 [13:59:54]line Контрольно-Кассовый Чек [13:59:54]line ПРОДАЖА [13:59:54]line ТРК (МРК, ГНК) : 34 [13:59:54]line Товар: 2710124500 [13:59:54]line Аи-95-К-5 [13:59:54]line 4.050 * 74.20 [13:59:54]line = 300.51 [13:59:54]line НДС 12% НСП 1% [13:59:54]line > о реализуемом товаре [13:59:54]line ОКРУГЛЕНИЕ: -0.51 [13:59:54]line ИТОГО: 300.00 [13:59:54]line Внесено: 300.00 [13:59:54]line СДАЧА: 0.00 [13:59:54]line НСП 1% : 2.66 [13:59:54]line НДС 12% : 31.91 [13:59:54]line Наличными: 300.00 [13:59:54]line Безнал.: 0.00 [13:59:54]line Место: АЗС № 133 "Партнер Нефть" [13:59:54]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [13:59:54]line СНО: Общий режим [13:59:54]line Чек 346 20.10.2024 13:59 [13:59:54]line Смена: 533 ФФД: 1.0 [13:59:54]line ЗНМ: 0300000091 [13:59:54]line РНМ: 0000000000091685 [13:59:54]line Версия ККМ: 001 [13:59:54]line ФМ: 0000000000871839 [13:59:54]line ФД: 227498 [13:59:54]line ФПД: 166053818361869 [13:59:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T135953&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227498&fm=166053818361869&tin=02508201610067®Number=0000000000091685&sum=30000 [13:59:55]OFD Sender: Processing packet 227498 [packets to send 38, broken 37] [13:59:55]ProducePacketName [13:59:55]name=ofd_packets/00227498 [13:59:55]OFD Sender: To server: pG, [13:59:55]CommunicateWithHost lk.salyk.kg:30040 [13:59:55]ConnectInit lk.salyk.kg [13:59:55]written 0, free lines is 4095 [13:59:55]Connected sock=10 [13: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 33 39 0F 01 00 00 12 9A 07 01 23 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 5A 01 00 00 F4 03 04 00 D9 0C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AA 78 03 00 35 04 06 00 97 06 6A DB 68 0D 95 F2 0B 3E C5 03 E6 F5 [13:59: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 33 39 4F 00 00 00 D9 15 47 00 84 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 33 39 10 04 04 00 AA 78 03 00 F4 03 04 00 D8 B7 14 67 B6 04 01 00 00 AD D7 73 0D 70 79 5E DB [13:59:55]CommunicateWithHost err = 0 [13:59:55]CheckOFDResponse [13:59:55]1017 (14) - 77093643461234 [13:59:55]1041 (16) - 0000000000871839 [13:59:55]1040 (4) - 227498 [13:59:55]1012 (4) - 20.10.2024 07:57 [13:59:55]1206 (1) - 0 [13:59:55]OFD Sender: Remove packet 227498 [13:59:55]ProducePacketName [13:59:55]name=ofd_packets/00227498 [13:59:55]NVStorageDeleteData [13:59:55]Write to MH i2c: 01 00 00 B6 01 B7 [13:59:55]Write i2c OK [13:59:55]MH_I2C_Read... [13:59:55]Read from MH i2c: 01 [13:59:55]MH_I2C_Read... [13:59:55]Read from MH i2c: 01 07 00 [13:59:55]MH_I2C_Read... [13:59:55]Read from MH i2c: 01 07 00 B6 01 00 00 00 00 00 0A 0D D5 [13:59:55]RasterBufferAndPrint [13:59:55]line [13:59:55]line [13:59:55]line [13:59:55]line [13:59:55]line [13:59:55]written 0, free lines is 3344 [13:59:55]process_action close_receipt done [13:59:55]requested_data is exist [13:59:55]produce_requested_data [13:59:55]requested_item fm.sn is exist - process it [13:59:55]wFMCommunicate request_size=4 [13:59:55]MH_SAM_APDU [13:59:55]CAPDU: 80 11 00 00 [13:59:55]Write to MH i2c: E2 08 00 BD 01 80 11 00 00 00 00 00 00 38 [13:59:55]Write i2c OK [13:59:55]MH_I2C_Read... [13:59:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:55]Read from MH i2c: E2 [13:59:55]MH_I2C_Read... [13:59:55]Read from MH i2c: E2 17 00 [13:59:55]MH_I2C_Read... [13:59:55]Read from MH i2c: E2 17 00 BD 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 8F [13:59:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [13:59:55]wFMCommunicate OK [13:59:55]requested_item fd.num is exist - process it [13:59:55]SAM_PROTO_GetFieldsCounters [13:59:55]wFMCommunicate request_size=4 [13:59:55]MH_SAM_APDU [13:59:55]CAPDU: 80 13 00 00 [13:59:55]Write to MH i2c: E2 08 00 BE 01 80 13 00 00 00 00 00 00 3B [13:59:55]Write i2c OK [13:59:55]MH_I2C_Read... [13:59:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:59:55]Read from MH i2c: E2 [13:59:55]MH_I2C_Read... [13:59:55]Read from MH i2c: E2 62 00 [13:59:55]MH_I2C_Read... [13:59:55]Read from MH i2c: E2 62 00 BE 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 AA 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 5A 01 00 00 5E 04 04 00 5A 01 00 00 57 04 04 00 5B 01 00 00 19 04 04 00 00 00 00 00 90 00 B1 [13:59: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 AA 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 5A 01 00 00 5E 04 04 00 5A 01 00 00 57 04 04 00 5B 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:59:55]wFMCommunicate OK [13:59:55]SAM_PROTO_GetFieldsCounters done [13:59:55]requested_item shift.num is exist - process it [13:59:55]requested_item shift.opened is exist - process it [13:59:55]req_shift_opened [13:59:55]FM_GetShiftState [13:59:55]SAM_PROTO_GetShiftState [13:59:55]wFMCommunicate request_size=4 [13:59:55]MH_SAM_APDU [13:59:55]CAPDU: 80 13 01 00 [13:59:55]Write to MH i2c: E2 08 00 BF 01 80 13 01 00 00 00 00 00 3D [13:59:55]Write i2c OK [13:59:55]MH_I2C_Read... [13:59:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:55]Read from MH i2c: E2 [13:59:55]MH_I2C_Read... [13:59:55]Read from MH i2c: E2 0E 00 [13:59:55]MH_I2C_Read... [13:59:55]Read from MH i2c: E2 0E 00 BF 01 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 57 [13:59:55]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [13:59:55]wFMCommunicate OK [13:59:55]SAM_PROTO_GetShiftState done [13:59:55]FM_GetShiftState done [13:59:55]req_shift_opened done [13:59:55]requested_item shift.open_date is exist - process it [13:59:55]req_shift_open_date [13:59:55]req_shift_open_date done [13:59:55]produce_requested_data done [13:59:55]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227498,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [13:59:55]process_action_free close_receipt [13:59:55]json_value_free [13:59:55]json_value_free done [13:59:55]process_json_proto returns [13:59:55]Send response to host [13:59:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227498,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [13:59:55]free response buf [13:59:55]execute_script done [13:59:55]execute_script returns [13:59:55]free content buf [13:59:55]Sock 7.Close socket [13:59:55]Sock 7.Thread stoped [13:59:55]OFD Sender: No OFD packet to send [14:00:00]OFD Sender: No OFD packet to send [14:00:05]OFD Sender: No OFD packet to send [14:00:10]OFD Sender: No OFD packet to send [14:00:15]OFD Sender: No OFD packet to send [14:00:20]OFD Sender: No OFD packet to send [14:00:25]OFD Sender: No OFD packet to send [14:00:30]OFD Sender: No OFD packet to send [14:00:35]OFD Sender: No OFD packet to send [14:00:40]OFD Sender: No OFD packet to send [14:00:45]OFD Sender: No OFD packet to send [14:00:50]OFD Sender: No OFD packet to send [14:00:55]OFD Sender: No OFD packet to send [14:01:00]OFD Sender: No OFD packet to send [14:01:05]OFD Sender: No OFD packet to send [14:01:10]OFD Sender: No OFD packet to send [14:01:16]OFD Sender: No OFD packet to send [14:01:21]OFD Sender: No OFD packet to send [14:01:26]OFD Sender: No OFD packet to send [14:01:31]OFD Sender: No OFD packet to send [14:01:36]OFD Sender: No OFD packet to send [14:01:41]OFD Sender: No OFD packet to send [14:01:46]OFD Sender: No OFD packet to send [14:01:51]OFD Sender: No OFD packet to send [14:01:56]OFD Sender: No OFD packet to send [14:02:01]OFD Sender: No OFD packet to send [14:02:06]OFD Sender: No OFD packet to send [14:02:11]OFD Sender: No OFD packet to send [14:02:16]OFD Sender: No OFD packet to send [14:02:21]OFD Sender: No OFD packet to send [14:02:26]OFD Sender: No OFD packet to send [14:02:31]OFD Sender: No OFD packet to send [14:02:36]OFD Sender: No OFD packet to send [14:02:41]OFD Sender: No OFD packet to send [14:02:46]OFD Sender: No OFD packet to send [14:02:51]OFD Sender: No OFD packet to send [14:02:56]OFD Sender: No OFD packet to send [14:03:01]OFD Sender: No OFD packet to send [14:03:06]OFD Sender: No OFD packet to send [14:03:11]OFD Sender: No OFD packet to send [14:03:16]OFD Sender: No OFD packet to send [14:03:18]accept exits with 9 [14:03:18]New connection [14:03:18]New thread 3067362660 created [14:03:18]Thread 3067219300 joined [14:03:18]Waiting for new connection... [14:03:18] Sock 9.Parse request [14:03:18]Sock 9.Check first char [14:03:18]Sock 9.First char is OK [14:03:18]request: POST /json_proto HTTP/1.0 [14:03:18]Method: POST [14:03:18]URL: /json_proto [14:03:18]Method is POST - this is cgi request [14:03:18]url: /json_proto [14:03:18]query_string will be loaded in cgi processing [14:03:18]execute_cgi json_proto POST (null) [14:03:18]execute_cgi path=json_proto method=POST [14:03:18]POST find Content-Length [14:03:18]Host: 172.17.44.195:8080 [14:03:18]Content-Length: 770 [14:03:18]Content-Type: application/json [14:03:18] [14:03:18]POST finish read [14:03:18]Found Content-Length = 770 [14:03:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963026", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 24.260, "sum" : 1800.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1800.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:03:18]execute_script... [14:03: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)1963026", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 24.260, "sum" : 1800.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1800.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:03:18]POST & json_proto [14:03:18]process_json_proto [14:03:18]json parsed OK: [14:03:18]protocol is kg_v1.0 [14:03:18]action value=close_receipt [14:03:18]process_action close_receipt [14:03:18]cmd_close_receipt [14:03:18]MH_GetDate [14:03:18]Write to MH i2c: F0 00 00 C0 01 B0 [14:03:18]Write i2c OK [14:03:18]MH_I2C_Read... [14:03:18]Read from MH i2c: F0 [14:03:18]MH_I2C_Read... [14:03:18]Read from MH i2c: F0 09 00 [14:03:18]MH_I2C_Read... [14:03:18]Read from MH i2c: F0 09 00 C0 01 00 A6 0D 15 67 82 C9 CF 66 68 [14:03:18]GetLastDocTimeStamp 1729432793 [14:03:18]current date 1729432998 [14:03:18]FM_GetShiftState [14:03:18]SAM_PROTO_GetShiftState [14:03:18]wFMCommunicate request_size=4 [14:03:18]MH_SAM_APDU [14:03:18]CAPDU: 80 13 01 00 [14:03:18]Write to MH i2c: E2 08 00 C1 01 80 13 01 00 00 00 00 00 3F [14:03:18]Write i2c OK [14:03:18]MH_I2C_Read... [14:03:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:03:18]Read from MH i2c: E2 [14:03:18]MH_I2C_Read... [14:03:18]Read from MH i2c: E2 0E 00 [14:03:18]MH_I2C_Read... [14:03:18]Read from MH i2c: E2 0E 00 C1 01 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 59 [14:03:18]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [14:03:18]wFMCommunicate OK [14:03:18]SAM_PROTO_GetShiftState done [14:03:18]FM_GetShiftState done [14:03:18]opened in 1729383750 [14:03:18]opened+sec_in_day 1729470150 [14:03:18]quantity*price = 180009 [14:03:18]sum+1 = 180010 [14:03:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1800.09 НСП 1% : 15.93 НДС 12% : 191.16 Наличными: 0.00 Безнал.: 1800.09 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 347 20.10.2024 14:03 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 227499 ФПД: 194162423418903 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T140318&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227499&fm=194162423418903&tin=02508201610067®Number=0000000000091685&sum=180009 [14:03:19]StoreToDocumentArchive [14:03:19]shift 533 fd 227499 [14:03:19]save to /storage/0533/doc_00227499 [14:03:19]save last doc name /storage/0533/doc_00227499 to /storage/kkm_last_doc_name [14:03:19]save OK [14:03:19]Clear old archive folders... [14:03:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:03:19]tlvbuf is 00D886B0 [14:03:19]SAM_PROTO_ClearQueue [14:03:19]wFMCommunicate request_size=4 [14:03:19]MH_SAM_APDU [14:03:19]CAPDU: 80 09 00 00 [14:03:19]Write to MH i2c: E2 08 00 CE 01 80 09 00 00 00 00 00 00 41 [14:03:19]Write i2c OK [14:03:19]MH_I2C_Read... [14:03:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:03:19]Read from MH i2c: E2 [14:03:19]MH_I2C_Read... [14:03:19]Read from MH i2c: E2 03 00 [14:03:19]MH_I2C_Read... [14:03:19]Read from MH i2c: E2 03 00 CE 01 00 90 00 43 [14:03:19]RAPDU: 90 00 [14:03:19]wFMCommunicate OK [14:03:19]SAM_PROTO_ClearQueue done [14:03:19]KKMCreateOFDPacket [14:03:19]OFDProtocolAddRootSTLVToBuf [14:03:19]FM_MakeSignedData [14:03:19]FM_MakeSignedData [14:03:19]SAM_PROTO_SignData [14:03:19]wFMCommunicate request_size=4 [14:03:19]MH_SAM_APDU [14:03:19]CAPDU: 80 0D 01 02 [14:03:19]Write to MH i2c: E2 08 00 CF 01 80 0D 01 02 00 00 00 00 49 [14:03:19]Write i2c OK [14:03:19]MH_I2C_Read... [14:03:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:03:19]Read from MH i2c: E2 [14:03:19]MH_I2C_Read... [14:03:19]Read from MH i2c: E2 03 00 [14:03:19]MH_I2C_Read... [14:03:19]Read from MH i2c: E2 03 00 CF 01 00 90 00 44 [14:03:19]RAPDU: 90 00 [14:03:19]wFMCommunicate OK [14:03:19]wFMCommunicate request_size=255 [14:03:19]MH_SAM_APDU [14:03:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C4 5E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 29 BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 A6 0D 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AB 78 03 00 35 04 06 00 B0 [14:03:19]Write to MH i2c: E2 02 01 D0 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C4 5E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 29 BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 A6 0D 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AB 78 03 00 35 04 06 00 B0 00 00 04 [14:03:19]Write i2c OK [14:03:19]MH_I2C_Read... [14:03:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:03:19]Read from MH i2c: E2 [14:03:19]MH_I2C_Read... [14:03:19]Read from MH i2c: E2 03 00 [14:03:19]MH_I2C_Read... [14:03:19]Read from MH i2c: E2 03 00 D0 01 00 90 00 45 [14:03:19]RAPDU: 90 00 [14:03:19]wFMCommunicate OK [14:03:19]wFMCommunicate request_size=10 [14:03:19]MH_SAM_APDU [14:03:19]CAPDU: 80 0D 02 02 05 96 F6 46 D0 17 [14:03:19]Write to MH i2c: E2 0D 00 D1 01 80 0D 02 02 05 00 96 F6 46 D0 17 00 00 0F [14:03:19]Write i2c OK [14:03:19]MH_I2C_Read... [14:03:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:03:19]Read from MH i2c: E2 [14:03:19]MH_I2C_Read... [14:03:19]Read from MH i2c: E2 03 00 [14:03:19]MH_I2C_Read... [14:03:19]Read from MH i2c: E2 03 00 D1 01 00 90 00 46 [14:03:19]RAPDU: 90 00 [14:03:19]wFMCommunicate OK [14:03:19]wFMCommunicate request_size=4 [14:03:19]MH_SAM_APDU [14:03:19]CAPDU: 80 0D 03 02 [14:03:19]Write to MH i2c: E2 08 00 D2 01 80 0D 03 02 00 00 00 00 4E [14:03:19]Write i2c OK [14:03:19]MH_I2C_Read... [14:03:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:03:19]Read from MH i2c: E2 [14:03:19]MH_I2C_Read... [14:03:19]Read from MH i2c: E2 0B 00 [14:03:19]MH_I2C_Read... [14:03:19]Read from MH i2c: E2 0B 00 D2 01 00 77 BF BF 95 DA 9B 69 37 90 00 EE [14:03:19]RAPDU: 77 BF BF 95 DA 9B 69 37 90 00 [14:03:19]wFMCommunicate OK [14:03:19]SAM_PROTO_SignData done [14:03:19]FM_MakeSignedData done [14:03:19]CreateOFDProtocolMessage [14:03:19]wFMCommunicate request_size=4 [14:03:19]MH_SAM_APDU [14:03:19]CAPDU: 80 11 00 00 [14:03:19]Write to MH i2c: E2 08 00 D3 01 80 11 00 00 00 00 00 00 4E [14:03:19]Write i2c OK [14:03:19]MH_I2C_Read... [14:03:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:03:19]Read from MH i2c: E2 [14:03:19]MH_I2C_Read... [14:03:19]Read from MH i2c: E2 17 00 [14:03:19]MH_I2C_Read... [14:03:19]Read from MH i2c: E2 17 00 D3 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A5 [14:03:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:03:19]wFMCommunicate OK [14:03:19]CreateOFDProtocolMessage done [14:03:19]OFDSenderStorePacket 227499 [14:03:19]StoreOFDPacket docnum=227499 [14:03:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 C5 28 07 01 3C 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C4 5E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 29 BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 A6 0D 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AB 78 03 00 35 04 06 00 B0 96 F6 46 D0 17 77 BF BF 95 DA 9B 69 37 [14:03:19]CheckFolder [14:03:19]dirname=/storage/ofd_packets [14:03:19]CheckFolder done [14:03:19]ProducePacketName [14:03:19]name=ofd_packets/00227499 [14:03:19]NVStorageSaveData ofd_packets/00227499 [14:03:19]File name is /storage/ofd_packets/00227499 [14:03:19]Write 301 bytes [14:03:19]NVStorageSaveData done [14:03:19]OFDSenderStorePacket done [14:03:19]KKMCreateOFDPacket done [14:03:19]NVStorageSaveData kkm_last_timestamp [14:03:19]File name is /storage/kkm_last_timestamp [14:03:19]Write 4 bytes [14:03:19]NVStorageSaveData done [14:03:19]ExternCall_PrintAddStr [14:03:19]wPrintStart [14:03:19]Write to MH i2c: 01 00 00 D4 01 D5 [14:03:19]Write i2c OK [14:03:19]MH_I2C_Read... [14:03:19]Read from MH i2c: 01 [14:03:19]MH_I2C_Read... [14:03:19]Read from MH i2c: 01 07 00 [14:03:19]MH_I2C_Read... [14:03:19]Read from MH i2c: 01 07 00 D4 01 00 00 00 00 00 FF 0F EA [14:03:19]RasterBufferAndPrint [14:03:19]line Счет N : (1)1963026 [14:03:19]line ИНН: 02508201610067 [14:03:19]line Контрольно-Кассовый Чек [14:03:19]line ПРОДАЖА [14:03:19]line ТРК (МРК, ГНК) : 54 [14:03:19]line Товар: 2710124500 [14:03:19]line Аи-95-К-5 [14:03:19]line 24.260 * 74.20 [14:03:19]line = 1800.09 [14:03:19]line НДС 12% НСП 1% [14:03:19]line > о реализуемом товаре [14:03:19]line ИТОГО: 1800.09 [14:03:19]line НСП 1% : 15.93 [14:03:19]line НДС 12% : 191.16 [14:03:19]line Наличными: 0.00 [14:03:19]line Безнал.: 1800.09 [14:03:19]line Место: АЗС № 133 "Партнер Нефть" [14:03:19]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [14:03:19]line СНО: Общий режим [14:03:19]line Чек 347 20.10.2024 14:03 [14:03:19]line Смена: 533 ФФД: 1.0 [14:03:19]line ЗНМ: 0300000091 [14:03:19]line РНМ: 0000000000091685 [14:03:19]line Версия ККМ: 001 [14:03:19]line Платежная система: Mbank [14:03:19]line ФМ: 0000000000871839 [14:03:19]line ФД: 227499 [14:03:19]line ФПД: 194162423418903 [14:03:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T140318&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227499&fm=194162423418903&tin=02508201610067®Number=0000000000091685&sum=180009 [14:03:19]OFD Sender: Processing packet 227499 [packets to send 38, broken 37] [14:03:19]ProducePacketName [14:03:19]name=ofd_packets/00227499 [14:03:19]OFD Sender: To server: pG, [14:03:19]CommunicateWithHost lk.salyk.kg:30040 [14:03:19]ConnectInit lk.salyk.kg [14:03:20]Connected sock=11 [14:03: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 33 39 0F 01 00 00 C5 28 07 01 3C 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C4 5E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 29 BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 A6 0D 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AB 78 03 00 35 04 06 00 B0 96 F6 46 D0 17 77 BF BF 95 DA 9B 69 37 [14:03:20]written 0, free lines is 4095 [14:03: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 33 39 4F 00 00 00 CB 79 47 00 12 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AB 78 03 00 F4 03 04 00 A5 B8 14 67 B6 04 01 00 00 4A 49 F1 C9 3F DF 44 55 [14:03:20]CommunicateWithHost err = 0 [14:03:20]CheckOFDResponse [14:03:20]1017 (14) - 77093643461234 [14:03:20]1041 (16) - 0000000000871839 [14:03:20]1040 (4) - 227499 [14:03:20]1012 (4) - 20.10.2024 08:00 [14:03:20]1206 (1) - 0 [14:03:20]OFD Sender: Remove packet 227499 [14:03:20]ProducePacketName [14:03:20]name=ofd_packets/00227499 [14:03:20]NVStorageDeleteData [14:03:20]Write to MH i2c: 01 00 00 FC 01 FD [14:03:20]Write i2c OK [14:03:20]MH_I2C_Read... [14:03:20]Read from MH i2c: 01 [14:03:20]MH_I2C_Read... [14:03:20]Read from MH i2c: 01 07 00 [14:03:20]MH_I2C_Read... [14:03:20]Read from MH i2c: 01 07 00 FC 01 00 00 00 00 00 37 0D 48 [14:03:20]RasterBufferAndPrint [14:03:20]line [14:03:20]line [14:03:20]line [14:03:20]line [14:03:20]line [14:03:20]written 0, free lines is 3389 [14:03:20]process_action close_receipt done [14:03:20]requested_data is exist [14:03:20]produce_requested_data [14:03:20]requested_item fm.sn is exist - process it [14:03:20]wFMCommunicate request_size=4 [14:03:20]MH_SAM_APDU [14:03:20]CAPDU: 80 11 00 00 [14:03:20]Write to MH i2c: E2 08 00 03 02 80 11 00 00 00 00 00 00 7F [14:03:20]Write i2c OK [14:03:20]MH_I2C_Read... [14:03:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:03:20]Read from MH i2c: E2 [14:03:20]MH_I2C_Read... [14:03:20]Read from MH i2c: E2 17 00 [14:03:20]MH_I2C_Read... [14:03:20]Read from MH i2c: E2 17 00 03 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D6 [14:03:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:03:20]wFMCommunicate OK [14:03:20]requested_item fd.num is exist - process it [14:03:20]SAM_PROTO_GetFieldsCounters [14:03:20]wFMCommunicate request_size=4 [14:03:20]MH_SAM_APDU [14:03:20]CAPDU: 80 13 00 00 [14:03:20]Write to MH i2c: E2 08 00 04 02 80 13 00 00 00 00 00 00 82 [14:03:20]Write i2c OK [14:03:20]MH_I2C_Read... [14:03:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:03:20]Read from MH i2c: E2 [14:03:20]MH_I2C_Read... [14:03:20]Read from MH i2c: E2 62 00 [14:03:20]MH_I2C_Read... [14:03:20]Read from MH i2c: E2 62 00 04 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 AB 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 5B 01 00 00 5E 04 04 00 5B 01 00 00 57 04 04 00 5C 01 00 00 19 04 04 00 00 00 00 00 90 00 FC [14:03: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 AB 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 5B 01 00 00 5E 04 04 00 5B 01 00 00 57 04 04 00 5C 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:03:20]wFMCommunicate OK [14:03:20]SAM_PROTO_GetFieldsCounters done [14:03:20]requested_item shift.num is exist - process it [14:03:20]requested_item shift.opened is exist - process it [14:03:20]req_shift_opened [14:03:20]FM_GetShiftState [14:03:20]SAM_PROTO_GetShiftState [14:03:20]wFMCommunicate request_size=4 [14:03:20]MH_SAM_APDU [14:03:20]CAPDU: 80 13 01 00 [14:03:20]Write to MH i2c: E2 08 00 05 02 80 13 01 00 00 00 00 00 84 [14:03:20]Write i2c OK [14:03:20]MH_I2C_Read... [14:03:20]OFD Sender: No OFD packet to send [14:03:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:03:20]Read from MH i2c: E2 [14:03:20]MH_I2C_Read... [14:03:20]Read from MH i2c: E2 0E 00 [14:03:20]MH_I2C_Read... [14:03:20]Read from MH i2c: E2 0E 00 05 02 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 9E [14:03:20]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [14:03:20]wFMCommunicate OK [14:03:20]SAM_PROTO_GetShiftState done [14:03:20]FM_GetShiftState done [14:03:20]req_shift_opened done [14:03:20]requested_item shift.open_date is exist - process it [14:03:20]req_shift_open_date [14:03:20]req_shift_open_date done [14:03:20]produce_requested_data done [14:03:20]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227499,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [14:03:20]process_action_free close_receipt [14:03:20]json_value_free [14:03:20]json_value_free done [14:03:20]process_json_proto returns [14:03:20]Send response to host [14:03:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227499,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [14:03:20]free response buf [14:03:20]execute_script done [14:03:20]execute_script returns [14:03:20]free content buf [14:03:20]Sock 9.Close socket [14:03:20]Sock 9.Thread stoped [14:03:25]OFD Sender: No OFD packet to send [14:03:30]OFD Sender: No OFD packet to send [14:03:35]OFD Sender: No OFD packet to send [14:03:40]OFD Sender: No OFD packet to send [14:03:45]OFD Sender: No OFD packet to send [14:03:50]OFD Sender: No OFD packet to send [14:03:55]OFD Sender: No OFD packet to send [14:04:00]OFD Sender: No OFD packet to send [14:04:04]accept exits with 7 [14:04:04]New connection [14:04:04]New thread 3067219300 created [14:04:04]Thread 3067362660 joined [14:04:04]Waiting for new connection... [14:04:04] Sock 7.Parse request [14:04:04]Sock 7.Check first char [14:04:04]Sock 7.First char is OK [14:04:04]request: POST /json_proto HTTP/1.0 [14:04:04]Method: POST [14:04:04]URL: /json_proto [14:04:04]Method is POST - this is cgi request [14:04:04]url: /json_proto [14:04:04]query_string will be loaded in cgi processing [14:04:04]execute_cgi json_proto POST (null) [14:04:04]execute_cgi path=json_proto method=POST [14:04:04]POST find Content-Length [14:04:04]Host: 172.17.44.195:8080 [14:04:04]Content-Length: 680 [14:04:04]Content-Type: application/json [14:04:04] [14:04:04]POST finish read [14:04:04]Found Content-Length = 680 [14:04:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963023", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 98.430, "sum" : 7500.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 7500.00, "total" : 7500.00, "payments": [ { "type": 0, "sum" : 7500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:04:04]execute_script... [14:04: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)1963023", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 98.430, "sum" : 7500.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 7500.00, "total" : 7500.00, "payments": [ { "type": 0, "sum" : 7500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:04:04]POST & json_proto [14:04:04]process_json_proto [14:04:04]json parsed OK: [14:04:04]protocol is kg_v1.0 [14:04:04]action value=close_receipt [14:04:04]process_action close_receipt [14:04:04]cmd_close_receipt [14:04:04]MH_GetDate [14:04:04]Write to MH i2c: F0 00 00 06 02 F7 [14:04:04]Write i2c OK [14:04:04]MH_I2C_Read... [14:04:04]Read from MH i2c: F0 [14:04:04]MH_I2C_Read... [14:04:04]Read from MH i2c: F0 09 00 [14:04:04]MH_I2C_Read... [14:04:04]Read from MH i2c: F0 09 00 06 02 00 D5 0D 15 67 82 C9 CF 66 DE [14:04:04]GetLastDocTimeStamp 1729432998 [14:04:04]current date 1729433045 [14:04:04]FM_GetShiftState [14:04:04]SAM_PROTO_GetShiftState [14:04:04]wFMCommunicate request_size=4 [14:04:04]MH_SAM_APDU [14:04:04]CAPDU: 80 13 01 00 [14:04:04]Write to MH i2c: E2 08 00 07 02 80 13 01 00 00 00 00 00 86 [14:04:04]Write i2c OK [14:04:04]MH_I2C_Read... [14:04:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:04:04]Read from MH i2c: E2 [14:04:04]MH_I2C_Read... [14:04:04]Read from MH i2c: E2 0E 00 [14:04:04]MH_I2C_Read... [14:04:04]Read from MH i2c: E2 0E 00 07 02 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 A0 [14:04:04]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [14:04:04]wFMCommunicate OK [14:04:04]SAM_PROTO_GetShiftState done [14:04:04]FM_GetShiftState done [14:04:04]opened in 1729383750 [14:04:04]opened+sec_in_day 1729470150 [14:04:04]quantity*price = 750036 [14:04:04]sum+1 = 750038 [14:04:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 7500.00 Внесено: 7500.00 СДАЧА: 0.00 НСП 1% : 66.37 НДС 12% : 796.50 Наличными: 7500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 348 20.10.2024 14:04 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227500 ФПД: 128591740990148 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T140405&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227500&fm=128591740990148&tin=02508201610067®Number=0000000000091685&sum=750000 [14:04:06]StoreToDocumentArchive [14:04:06]shift 533 fd 227500 [14:04:06]save to /storage/0533/doc_00227500 [14:04:06]save last doc name /storage/0533/doc_00227500 to /storage/kkm_last_doc_name [14:04:06]save OK [14:04:06]Clear old archive folders... [14:04:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:04:06]tlvbuf is 00D85AE0 [14:04:06]SAM_PROTO_ClearQueue [14:04:06]wFMCommunicate request_size=4 [14:04:06]MH_SAM_APDU [14:04:06]CAPDU: 80 09 00 00 [14:04:06]Write to MH i2c: E2 08 00 14 02 80 09 00 00 00 00 00 00 88 [14:04:06]Write i2c OK [14:04:06]MH_I2C_Read... [14:04:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:04:06]Read from MH i2c: E2 [14:04:06]MH_I2C_Read... [14:04:06]Read from MH i2c: E2 03 00 [14:04:06]MH_I2C_Read... [14:04:06]Read from MH i2c: E2 03 00 14 02 00 90 00 8A [14:04:06]RAPDU: 90 00 [14:04:06]wFMCommunicate OK [14:04:06]SAM_PROTO_ClearQueue done [14:04:06]KKMCreateOFDPacket [14:04:06]OFDProtocolAddRootSTLVToBuf [14:04:06]FM_MakeSignedData [14:04:06]FM_MakeSignedData [14:04:06]SAM_PROTO_SignData [14:04:06]wFMCommunicate request_size=4 [14:04:06]MH_SAM_APDU [14:04:06]CAPDU: 80 0D 01 02 [14:04:06]Write to MH i2c: E2 08 00 15 02 80 0D 01 02 00 00 00 00 90 [14:04:06]Write i2c OK [14:04:06]MH_I2C_Read... [14:04:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:04:06]Read from MH i2c: E2 [14:04:06]MH_I2C_Read... [14:04:06]Read from MH i2c: E2 03 00 [14:04:06]MH_I2C_Read... [14:04:06]Read from MH i2c: E2 03 00 15 02 00 90 00 8B [14:04:06]RAPDU: 90 00 [14:04:06]wFMCommunicate OK [14:04:06]wFMCommunicate request_size=255 [14:04:06]MH_SAM_APDU [14:04:06]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 80 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D5 71 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 71 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 37 01 00 00 00 07 04 06 00 B0 71 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 D5 0D 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AC 78 03 00 35 04 06 00 74 F4 19 0A [14:04:06]Write to MH i2c: E2 02 01 16 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 7E 80 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D5 71 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 71 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 37 01 00 00 00 07 04 06 00 B0 71 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 D5 0D 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AC 78 03 00 35 04 06 00 74 F4 19 0A 00 00 62 [14:04:06]Write i2c OK [14:04:06]MH_I2C_Read... [14:04:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:04:06]Read from MH i2c: E2 [14:04:06]MH_I2C_Read... [14:04:06]Read from MH i2c: E2 03 00 [14:04:06]MH_I2C_Read... [14:04:06]Read from MH i2c: E2 03 00 16 02 00 90 00 8C [14:04:06]RAPDU: 90 00 [14:04:06]wFMCommunicate OK [14:04:06]wFMCommunicate request_size=7 [14:04:06]MH_SAM_APDU [14:04:06]CAPDU: 80 0D 02 02 02 F2 C4 [14:04:06]Write to MH i2c: E2 0A 00 17 02 80 0D 02 02 02 00 F2 C4 00 00 4D [14:04:06]Write i2c OK [14:04:06]MH_I2C_Read... [14:04:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:04:06]Read from MH i2c: E2 [14:04:06]MH_I2C_Read... [14:04:06]Read from MH i2c: E2 03 00 [14:04:06]MH_I2C_Read... [14:04:06]Read from MH i2c: E2 03 00 17 02 00 90 00 8D [14:04:06]RAPDU: 90 00 [14:04:06]wFMCommunicate OK [14:04:06]wFMCommunicate request_size=4 [14:04:06]MH_SAM_APDU [14:04:06]CAPDU: 80 0D 03 02 [14:04:06]Write to MH i2c: E2 08 00 18 02 80 0D 03 02 00 00 00 00 95 [14:04:06]Write i2c OK [14:04:06]MH_I2C_Read... [14:04:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:04:06]Read from MH i2c: E2 [14:04:06]MH_I2C_Read... [14:04:06]Read from MH i2c: E2 0B 00 [14:04:06]MH_I2C_Read... [14:04:06]Read from MH i2c: E2 0B 00 18 02 00 F6 0D 12 1D 19 7F 22 DD 90 00 5F [14:04:06]RAPDU: F6 0D 12 1D 19 7F 22 DD 90 00 [14:04:06]wFMCommunicate OK [14:04:06]SAM_PROTO_SignData done [14:04:06]FM_MakeSignedData done [14:04:06]CreateOFDProtocolMessage [14:04:06]wFMCommunicate request_size=4 [14:04:06]MH_SAM_APDU [14:04:06]CAPDU: 80 11 00 00 [14:04:06]Write to MH i2c: E2 08 00 19 02 80 11 00 00 00 00 00 00 95 [14:04:06]Write i2c OK [14:04:06]MH_I2C_Read... [14:04:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:04:06]Read from MH i2c: E2 [14:04:06]MH_I2C_Read... [14:04:06]Read from MH i2c: E2 17 00 [14:04:06]MH_I2C_Read... [14:04:06]Read from MH i2c: E2 17 00 19 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 EC [14:04:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:04:06]wFMCommunicate OK [14:04:06]CreateOFDProtocolMessage done [14:04:06]OFDSenderStorePacket 227500 [14:04:06]StoreOFDPacket docnum=227500 [14:04:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 98 3E 04 01 04 FE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 80 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D5 71 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 71 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 37 01 00 00 00 07 04 06 00 B0 71 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 D5 0D 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AC 78 03 00 35 04 06 00 74 F4 19 0A F2 C4 F6 0D 12 1D 19 7F 22 DD [14:04:06]CheckFolder [14:04:06]dirname=/storage/ofd_packets [14:04:06]CheckFolder done [14:04:06]ProducePacketName [14:04:06]name=ofd_packets/00227500 [14:04:06]NVStorageSaveData ofd_packets/00227500 [14:04:06]File name is /storage/ofd_packets/00227500 [14:04:06]Write 298 bytes [14:04:06]NVStorageSaveData done [14:04:06]OFDSenderStorePacket done [14:04:06]KKMCreateOFDPacket done [14:04:06]NVStorageSaveData kkm_last_timestamp [14:04:06]File name is /storage/kkm_last_timestamp [14:04:06]Write 4 bytes [14:04:06]NVStorageSaveData done [14:04:06]ExternCall_PrintAddStr [14:04:06]wPrintStart [14:04:06]Write to MH i2c: 01 00 00 1A 02 1C [14:04:06]Write i2c OK [14:04:06]MH_I2C_Read... [14:04:06]Read from MH i2c: 01 [14:04:06]MH_I2C_Read... [14:04:06]Read from MH i2c: 01 07 00 [14:04:06]MH_I2C_Read... [14:04:06]Read from MH i2c: 01 07 00 1A 02 00 00 00 00 00 FF 0F 31 [14:04:06]RasterBufferAndPrint [14:04:06]line Счет N : (1)1963023 [14:04:06]line ИНН: 02508201610067 [14:04:06]line Контрольно-Кассовый Чек [14:04:06]line ПРОДАЖА [14:04:06]line ТРК (МРК, ГНК) : 21 [14:04:06]line Товар: 2710194210 [14:04:06]line ДТ-К-5 [14:04:06]line 98.430 * 76.20 [14:04:06]line = 7500.37 [14:04:06]line НДС 12% НСП 1% [14:04:06]line > о реализуемом товаре [14:04:06]line ОКРУГЛЕНИЕ: -0.37 [14:04:06]line ИТОГО: 7500.00 [14:04:06]line Внесено: 7500.00 [14:04:06]line СДАЧА: 0.00 [14:04:06]line НСП 1% : 66.37 [14:04:06]line НДС 12% : 796.50 [14:04:06]line Наличными: 7500.00 [14:04:06]line Безнал.: 0.00 [14:04:06]line Место: АЗС № 133 "Партнер Нефть" [14:04:06]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [14:04:06]line СНО: Общий режим [14:04:06]line Чек 348 20.10.2024 14:04 [14:04:06]line Смена: 533 ФФД: 1.0 [14:04:06]line ЗНМ: 0300000091 [14:04:06]line РНМ: 0000000000091685 [14:04:06]line Версия ККМ: 001 [14:04:06]line ФМ: 0000000000871839 [14:04:06]line ФД: 227500 [14:04:06]line ФПД: 128591740990148 [14:04:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T140405&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227500&fm=128591740990148&tin=02508201610067®Number=0000000000091685&sum=750000 [14:04:06]OFD Sender: Processing packet 227500 [packets to send 38, broken 37] [14:04:06]ProducePacketName [14:04:06]name=ofd_packets/00227500 [14:04:06]OFD Sender: To server: pG, [14:04:06]CommunicateWithHost lk.salyk.kg:30040 [14:04:06]ConnectInit lk.salyk.kg [14:04:06]written 0, free lines is 4095 [14:04:06]Connected sock=10 [14:04: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 33 39 0C 01 00 00 98 3E 04 01 04 FE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 80 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D5 71 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 71 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 37 01 00 00 00 07 04 06 00 B0 71 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 D5 0D 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AC 78 03 00 35 04 06 00 74 F4 19 0A F2 C4 F6 0D 12 1D 19 7F 22 DD [14:04: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 33 39 4F 00 00 00 AB 2F 47 00 96 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 33 39 10 04 04 00 AC 78 03 00 F4 03 04 00 D4 B8 14 67 B6 04 01 00 00 05 93 7C D6 58 6B D5 73 [14:04:07]CommunicateWithHost err = 0 [14:04:07]CheckOFDResponse [14:04:07]1017 (14) - 77093643461234 [14:04:07]1041 (16) - 0000000000871839 [14:04:07]1040 (4) - 227500 [14:04:07]1012 (4) - 20.10.2024 08:01 [14:04:07]1206 (1) - 0 [14:04:07]OFD Sender: Remove packet 227500 [14:04:07]ProducePacketName [14:04:07]name=ofd_packets/00227500 [14:04:07]NVStorageDeleteData [14:04:07]Write to MH i2c: 01 00 00 44 02 46 [14:04:07]Write i2c OK [14:04:07]MH_I2C_Read... [14:04:07]Read from MH i2c: 01 [14:04:07]MH_I2C_Read... [14:04:07]Read from MH i2c: 01 07 00 [14:04:07]MH_I2C_Read... [14:04:07]Read from MH i2c: 01 07 00 44 02 00 00 00 00 00 12 0D 6C [14:04:07]RasterBufferAndPrint [14:04:07]line [14:04:07]line [14:04:07]line [14:04:07]line [14:04:07]line [14:04:07]written 0, free lines is 3352 [14:04:07]process_action close_receipt done [14:04:07]requested_data is exist [14:04:07]produce_requested_data [14:04:07]requested_item fm.sn is exist - process it [14:04:07]wFMCommunicate request_size=4 [14:04:07]MH_SAM_APDU [14:04:07]CAPDU: 80 11 00 00 [14:04:07]Write to MH i2c: E2 08 00 4B 02 80 11 00 00 00 00 00 00 C7 [14:04:07]Write i2c OK [14:04:07]MH_I2C_Read... [14:04:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:04:07]Read from MH i2c: E2 [14:04:07]MH_I2C_Read... [14:04:07]Read from MH i2c: E2 17 00 [14:04:07]MH_I2C_Read... [14:04:07]Read from MH i2c: E2 17 00 4B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 1E [14:04:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:04:07]wFMCommunicate OK [14:04:07]requested_item fd.num is exist - process it [14:04:07]SAM_PROTO_GetFieldsCounters [14:04:07]wFMCommunicate request_size=4 [14:04:07]MH_SAM_APDU [14:04:07]CAPDU: 80 13 00 00 [14:04:07]Write to MH i2c: E2 08 00 4C 02 80 13 00 00 00 00 00 00 CA [14:04:07]Write i2c OK [14:04:07]MH_I2C_Read... [14:04:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:04:07]Read from MH i2c: E2 [14:04:07]MH_I2C_Read... [14:04:07]Read from MH i2c: E2 62 00 [14:04:07]MH_I2C_Read... [14:04:07]Read from MH i2c: E2 62 00 4C 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 AC 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 5C 01 00 00 5E 04 04 00 5C 01 00 00 57 04 04 00 5D 01 00 00 19 04 04 00 00 00 00 00 90 00 48 [14:04: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 AC 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 5C 01 00 00 5E 04 04 00 5C 01 00 00 57 04 04 00 5D 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:04:07]wFMCommunicate OK [14:04:07]SAM_PROTO_GetFieldsCounters done [14:04:07]requested_item shift.num is exist - process it [14:04:07]requested_item shift.opened is exist - process it [14:04:07]req_shift_opened [14:04:07]FM_GetShiftState [14:04:07]SAM_PROTO_GetShiftState [14:04:07]wFMCommunicate request_size=4 [14:04:07]MH_SAM_APDU [14:04:07]CAPDU: 80 13 01 00 [14:04:07]Write to MH i2c: E2 08 00 4D 02 80 13 01 00 00 00 00 00 CC [14:04:07]Write i2c OK [14:04:07]MH_I2C_Read... [14:04:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:04:07]Read from MH i2c: E2 [14:04:07]MH_I2C_Read... [14:04:07]Read from MH i2c: E2 0E 00 [14:04:07]MH_I2C_Read... [14:04:07]Read from MH i2c: E2 0E 00 4D 02 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 E6 [14:04:07]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [14:04:07]wFMCommunicate OK [14:04:07]SAM_PROTO_GetShiftState done [14:04:07]FM_GetShiftState done [14:04:07]req_shift_opened done [14:04:07]requested_item shift.open_date is exist - process it [14:04:07]req_shift_open_date [14:04:07]req_shift_open_date done [14:04:07]produce_requested_data done [14:04:07]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227500,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [14:04:07]process_action_free close_receipt [14:04:07]json_value_free [14:04:07]json_value_free done [14:04:07]process_json_proto returns [14:04:07]Send response to host [14:04:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227500,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [14:04:07]free response buf [14:04:07]execute_script done [14:04:07]execute_script returns [14:04:07]free content buf [14:04:07]Sock 7.Close socket [14:04:07]Sock 7.Thread stoped [14:04:07]OFD Sender: No OFD packet to send [14:04:12]OFD Sender: No OFD packet to send [14:04:17]OFD Sender: No OFD packet to send [14:04:22]OFD Sender: No OFD packet to send [14:04:27]OFD Sender: No OFD packet to send [14:04:32]OFD Sender: No OFD packet to send [14:04:36]accept exits with 9 [14:04:36]New connection [14:04:36]New thread 3067362660 created [14:04:36]Thread 3067219300 joined [14:04:36]Waiting for new connection... [14:04:36] Sock 9.Parse request [14:04:36]Sock 9.Check first char [14:04:36]Sock 9.First char is OK [14:04:36]request: POST /json_proto HTTP/1.0 [14:04:36]Method: POST [14:04:36]URL: /json_proto [14:04:36]Method is POST - this is cgi request [14:04:36]url: /json_proto [14:04:36]query_string will be loaded in cgi processing [14:04:36]execute_cgi json_proto POST (null) [14:04:36]execute_cgi path=json_proto method=POST [14:04:36]POST find Content-Length [14:04:36]Host: 172.17.44.195:8080 [14:04:36]Content-Length: 680 [14:04:36]Content-Type: application/json [14:04:36] [14:04:36]POST finish read [14:04:36]Found Content-Length = 680 [14:04:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963025", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 90.560, "sum" : 6900.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6900.00, "total" : 6900.00, "payments": [ { "type": 0, "sum" : 6900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:04:36]execute_script... [14:04:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963025", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 90.560, "sum" : 6900.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6900.00, "total" : 6900.00, "payments": [ { "type": 0, "sum" : 6900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:04:36]POST & json_proto [14:04:36]process_json_proto [14:04:36]json parsed OK: [14:04:36]protocol is kg_v1.0 [14:04:36]action value=close_receipt [14:04:36]process_action close_receipt [14:04:36]cmd_close_receipt [14:04:36]MH_GetDate [14:04:36]Write to MH i2c: F0 00 00 4E 02 3F [14:04:36]Write i2c OK [14:04:36]MH_I2C_Read... [14:04:36]Read from MH i2c: F0 [14:04:36]MH_I2C_Read... [14:04:36]Read from MH i2c: F0 09 00 [14:04:36]MH_I2C_Read... [14:04:36]Read from MH i2c: F0 09 00 4E 02 00 F5 0D 15 67 82 C9 CF 66 46 [14:04:36]GetLastDocTimeStamp 1729433045 [14:04:36]current date 1729433077 [14:04:36]FM_GetShiftState [14:04:36]SAM_PROTO_GetShiftState [14:04:36]wFMCommunicate request_size=4 [14:04:36]MH_SAM_APDU [14:04:36]CAPDU: 80 13 01 00 [14:04:36]Write to MH i2c: E2 08 00 4F 02 80 13 01 00 00 00 00 00 CE [14:04:36]Write i2c OK [14:04:36]MH_I2C_Read... [14:04:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:04:36]Read from MH i2c: E2 [14:04:36]MH_I2C_Read... [14:04:36]Read from MH i2c: E2 0E 00 [14:04:36]MH_I2C_Read... [14:04:36]Read from MH i2c: E2 0E 00 4F 02 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 E8 [14:04:36]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [14:04:36]wFMCommunicate OK [14:04:36]SAM_PROTO_GetShiftState done [14:04:36]FM_GetShiftState done [14:04:36]opened in 1729383750 [14:04:36]opened+sec_in_day 1729470150 [14:04:36]quantity*price = 690067 [14:04:36]sum+1 = 690068 [14:04:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.67 ИТОГО: 6900.00 Внесено: 6900.00 СДАЧА: 0.00 НСП 1% : 61.07 НДС 12% : 732.81 Наличными: 6900.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 349 20.10.2024 14:04 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227501 ФПД: 253475694213706 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T140437&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227501&fm=253475694213706&tin=02508201610067®Number=0000000000091685&sum=690000 [14:04:37]StoreToDocumentArchive [14:04:37]shift 533 fd 227501 [14:04:37]save to /storage/0533/doc_00227501 [14:04:37]save last doc name /storage/0533/doc_00227501 to /storage/kkm_last_doc_name [14:04:37]save OK [14:04:37]Clear old archive folders... [14:04:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:04:37]tlvbuf is 00D7C4E0 [14:04:37]SAM_PROTO_ClearQueue [14:04:37]wFMCommunicate request_size=4 [14:04:37]MH_SAM_APDU [14:04:37]CAPDU: 80 09 00 00 [14:04:37]Write to MH i2c: E2 08 00 5C 02 80 09 00 00 00 00 00 00 D0 [14:04:37]Write i2c OK [14:04:37]MH_I2C_Read... [14:04:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:04:37]Read from MH i2c: E2 [14:04:37]MH_I2C_Read... [14:04:37]Read from MH i2c: E2 03 00 [14:04:37]MH_I2C_Read... [14:04:37]Read from MH i2c: E2 03 00 5C 02 00 90 00 D2 [14:04:37]RAPDU: 90 00 [14:04:37]wFMCommunicate OK [14:04:37]SAM_PROTO_ClearQueue done [14:04:37]KKMCreateOFDPacket [14:04:37]OFDProtocolAddRootSTLVToBuf [14:04:37]FM_MakeSignedData [14:04:37]FM_MakeSignedData [14:04:37]SAM_PROTO_SignData [14:04:37]wFMCommunicate request_size=4 [14:04:37]MH_SAM_APDU [14:04:37]CAPDU: 80 0D 01 02 [14:04:37]Write to MH i2c: E2 08 00 5D 02 80 0D 01 02 00 00 00 00 D8 [14:04:37]Write i2c OK [14:04:37]MH_I2C_Read... [14:04:37]OFD Sender: No OFD packet to send [14:04:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:04:37]Read from MH i2c: E2 [14:04:37]MH_I2C_Read... [14:04:37]Read from MH i2c: E2 03 00 [14:04:37]MH_I2C_Read... [14:04:37]Read from MH i2c: E2 03 00 5D 02 00 90 00 D3 [14:04:37]RAPDU: 90 00 [14:04:37]wFMCommunicate OK [14:04:37]wFMCommunicate request_size=255 [14:04:37]MH_SAM_APDU [14:04:37]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C0 61 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 93 87 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 87 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 17 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 1E 01 00 00 00 07 04 06 00 50 87 0A 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 01 00 00 F4 03 04 00 F5 0D 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AD 78 03 00 35 04 06 00 E6 88 E8 B6 [14:04:37]Write to MH i2c: E2 02 01 5E 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 C0 61 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 93 87 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 87 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 17 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 1E 01 00 00 00 07 04 06 00 50 87 0A 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 01 00 00 F4 03 04 00 F5 0D 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AD 78 03 00 35 04 06 00 E6 88 E8 B6 00 00 9F [14:04:37]Write i2c OK [14:04:37]MH_I2C_Read... [14:04:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:04:38]Read from MH i2c: E2 [14:04:38]MH_I2C_Read... [14:04:38]Read from MH i2c: E2 03 00 [14:04:38]MH_I2C_Read... [14:04:38]Read from MH i2c: E2 03 00 5E 02 00 90 00 D4 [14:04:38]RAPDU: 90 00 [14:04:38]wFMCommunicate OK [14:04:38]wFMCommunicate request_size=7 [14:04:38]MH_SAM_APDU [14:04:38]CAPDU: 80 0D 02 02 02 7A 4A [14:04:38]Write to MH i2c: E2 0A 00 5F 02 80 0D 02 02 02 00 7A 4A 00 00 A3 [14:04:38]Write i2c OK [14:04:38]MH_I2C_Read... [14:04:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:04:38]Read from MH i2c: E2 [14:04:38]MH_I2C_Read... [14:04:38]Read from MH i2c: E2 03 00 [14:04:38]MH_I2C_Read... [14:04:38]Read from MH i2c: E2 03 00 5F 02 00 90 00 D5 [14:04:38]RAPDU: 90 00 [14:04:38]wFMCommunicate OK [14:04:38]wFMCommunicate request_size=4 [14:04:38]MH_SAM_APDU [14:04:38]CAPDU: 80 0D 03 02 [14:04:38]Write to MH i2c: E2 08 00 60 02 80 0D 03 02 00 00 00 00 DD [14:04:38]Write i2c OK [14:04:38]MH_I2C_Read... [14:04:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:04:38]Read from MH i2c: E2 [14:04:38]MH_I2C_Read... [14:04:38]Read from MH i2c: E2 0B 00 [14:04:38]MH_I2C_Read... [14:04:38]Read from MH i2c: E2 0B 00 60 02 00 25 9B 50 54 F3 F1 D0 13 90 00 09 [14:04:38]RAPDU: 25 9B 50 54 F3 F1 D0 13 90 00 [14:04:38]wFMCommunicate OK [14:04:38]SAM_PROTO_SignData done [14:04:38]FM_MakeSignedData done [14:04:38]CreateOFDProtocolMessage [14:04:38]wFMCommunicate request_size=4 [14:04:38]MH_SAM_APDU [14:04:38]CAPDU: 80 11 00 00 [14:04:38]Write to MH i2c: E2 08 00 61 02 80 11 00 00 00 00 00 00 DD [14:04:38]Write i2c OK [14:04:38]MH_I2C_Read... [14:04:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:04:38]Read from MH i2c: E2 [14:04:38]MH_I2C_Read... [14:04:38]Read from MH i2c: E2 17 00 [14:04:38]MH_I2C_Read... [14:04:38]Read from MH i2c: E2 17 00 61 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 34 [14:04:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:04:38]wFMCommunicate OK [14:04:38]CreateOFDProtocolMessage done [14:04:38]OFDSenderStorePacket 227501 [14:04:38]StoreOFDPacket docnum=227501 [14:04:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 71 2D 04 01 20 B6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C0 61 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 93 87 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 87 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 17 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 1E 01 00 00 00 07 04 06 00 50 87 0A 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 01 00 00 F4 03 04 00 F5 0D 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AD 78 03 00 35 04 06 00 E6 88 E8 B6 7A 4A 25 9B 50 54 F3 F1 D0 13 [14:04:38]CheckFolder [14:04:38]dirname=/storage/ofd_packets [14:04:38]CheckFolder done [14:04:38]ProducePacketName [14:04:38]name=ofd_packets/00227501 [14:04:38]NVStorageSaveData ofd_packets/00227501 [14:04:38]File name is /storage/ofd_packets/00227501 [14:04:38]Write 298 bytes [14:04:38]NVStorageSaveData done [14:04:38]OFDSenderStorePacket done [14:04:38]KKMCreateOFDPacket done [14:04:38]NVStorageSaveData kkm_last_timestamp [14:04:38]File name is /storage/kkm_last_timestamp [14:04:38]Write 4 bytes [14:04:38]NVStorageSaveData done [14:04:38]ExternCall_PrintAddStr [14:04:38]wPrintStart [14:04:38]Write to MH i2c: 01 00 00 62 02 64 [14:04:38]Write i2c OK [14:04:38]MH_I2C_Read... [14:04:38]Read from MH i2c: 01 [14:04:38]MH_I2C_Read... [14:04:38]Read from MH i2c: 01 07 00 [14:04:38]MH_I2C_Read... [14:04:38]Read from MH i2c: 01 07 00 62 02 00 00 00 00 00 FF 0F 79 [14:04:38]RasterBufferAndPrint [14:04:38]line Счет N : (1)1963025 [14:04:38]line ИНН: 02508201610067 [14:04:38]line Контрольно-Кассовый Чек [14:04:38]line ПРОДАЖА [14:04:38]line ТРК (МРК, ГНК) : 11 [14:04:38]line Товар: 2710194210 [14:04:38]line ДТ-К-5 [14:04:38]line 90.560 * 76.20 [14:04:38]line = 6900.67 [14:04:38]line НДС 12% НСП 1% [14:04:38]line > о реализуемом товаре [14:04:38]line ОКРУГЛЕНИЕ: -0.67 [14:04:38]line ИТОГО: 6900.00 [14:04:38]line Внесено: 6900.00 [14:04:38]line СДАЧА: 0.00 [14:04:38]line НСП 1% : 61.07 [14:04:38]line НДС 12% : 732.81 [14:04:38]line Наличными: 6900.00 [14:04:38]line Безнал.: 0.00 [14:04:38]line Место: АЗС № 133 "Партнер Нефть" [14:04:38]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [14:04:38]line СНО: Общий режим [14:04:38]line Чек 349 20.10.2024 14:04 [14:04:38]line Смена: 533 ФФД: 1.0 [14:04:38]line ЗНМ: 0300000091 [14:04:38]line РНМ: 0000000000091685 [14:04:38]line Версия ККМ: 001 [14:04:38]line ФМ: 0000000000871839 [14:04:38]line ФД: 227501 [14:04:38]line ФПД: 253475694213706 [14:04:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T140437&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227501&fm=253475694213706&tin=02508201610067®Number=0000000000091685&sum=690000 [14:04:38]OFD Sender: Processing packet 227501 [packets to send 38, broken 37] [14:04:38]ProducePacketName [14:04:38]name=ofd_packets/00227501 [14:04:38]OFD Sender: To server: pG, [14:04:38]CommunicateWithHost lk.salyk.kg:30040 [14:04:38]ConnectInit lk.salyk.kg [14:04:38]written 0, free lines is 4095 [14:04:38]Connected sock=10 [14:04:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 71 2D 04 01 20 B6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C0 61 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 93 87 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 87 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 17 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 1E 01 00 00 00 07 04 06 00 50 87 0A 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 01 00 00 F4 03 04 00 F5 0D 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AD 78 03 00 35 04 06 00 E6 88 E8 B6 7A 4A 25 9B 50 54 F3 F1 D0 13 [14:04:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 F1 89 47 00 0F 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 33 39 10 04 04 00 AD 78 03 00 F4 03 04 00 F3 B8 14 67 B6 04 01 00 00 56 B8 BD AA F7 73 FD 36 [14:04:38]CommunicateWithHost err = 0 [14:04:38]CheckOFDResponse [14:04:38]1017 (14) - 77093643461234 [14:04:38]1041 (16) - 0000000000871839 [14:04:38]1040 (4) - 227501 [14:04:38]1012 (4) - 20.10.2024 08:01 [14:04:38]1206 (1) - 0 [14:04:38]OFD Sender: Remove packet 227501 [14:04:38]ProducePacketName [14:04:38]name=ofd_packets/00227501 [14:04:38]NVStorageDeleteData [14:04:39]Write to MH i2c: 01 00 00 8C 02 8E [14:04:39]Write i2c OK [14:04:39]MH_I2C_Read... [14:04:39]Read from MH i2c: 01 [14:04:39]MH_I2C_Read... [14:04:39]Read from MH i2c: 01 07 00 [14:04:39]MH_I2C_Read... [14:04:39]Read from MH i2c: 01 07 00 8C 02 00 00 00 00 00 0B 0D AD [14:04:39]RasterBufferAndPrint [14:04:39]line [14:04:39]line [14:04:39]line [14:04:39]line [14:04:39]line [14:04:39]written 0, free lines is 3345 [14:04:39]process_action close_receipt done [14:04:39]requested_data is exist [14:04:39]produce_requested_data [14:04:39]requested_item fm.sn is exist - process it [14:04:39]wFMCommunicate request_size=4 [14:04:39]MH_SAM_APDU [14:04:39]CAPDU: 80 11 00 00 [14:04:39]Write to MH i2c: E2 08 00 93 02 80 11 00 00 00 00 00 00 0F [14:04:39]Write i2c OK [14:04:39]MH_I2C_Read... [14:04:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:04:39]Read from MH i2c: E2 [14:04:39]MH_I2C_Read... [14:04:39]Read from MH i2c: E2 17 00 [14:04:39]MH_I2C_Read... [14:04:39]Read from MH i2c: E2 17 00 93 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 66 [14:04:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:04:39]wFMCommunicate OK [14:04:39]requested_item fd.num is exist - process it [14:04:39]SAM_PROTO_GetFieldsCounters [14:04:39]wFMCommunicate request_size=4 [14:04:39]MH_SAM_APDU [14:04:39]CAPDU: 80 13 00 00 [14:04:39]Write to MH i2c: E2 08 00 94 02 80 13 00 00 00 00 00 00 12 [14:04:39]Write i2c OK [14:04:39]MH_I2C_Read... [14:04:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:04:39]Read from MH i2c: E2 [14:04:39]MH_I2C_Read... [14:04:39]Read from MH i2c: E2 62 00 [14:04:39]MH_I2C_Read... [14:04:39]Read from MH i2c: E2 62 00 94 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 AD 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 5D 01 00 00 5E 04 04 00 5D 01 00 00 57 04 04 00 5E 01 00 00 19 04 04 00 00 00 00 00 90 00 94 [14:04:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 AD 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 5D 01 00 00 5E 04 04 00 5D 01 00 00 57 04 04 00 5E 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:04:39]wFMCommunicate OK [14:04:39]SAM_PROTO_GetFieldsCounters done [14:04:39]requested_item shift.num is exist - process it [14:04:39]requested_item shift.opened is exist - process it [14:04:39]req_shift_opened [14:04:39]FM_GetShiftState [14:04:39]SAM_PROTO_GetShiftState [14:04:39]wFMCommunicate request_size=4 [14:04:39]MH_SAM_APDU [14:04:39]CAPDU: 80 13 01 00 [14:04:39]Write to MH i2c: E2 08 00 95 02 80 13 01 00 00 00 00 00 14 [14:04:39]Write i2c OK [14:04:39]MH_I2C_Read... [14:04:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:04:39]Read from MH i2c: E2 [14:04:39]MH_I2C_Read... [14:04:39]Read from MH i2c: E2 0E 00 [14:04:39]MH_I2C_Read... [14:04:39]Read from MH i2c: E2 0E 00 95 02 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 2E [14:04:39]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [14:04:39]wFMCommunicate OK [14:04:39]SAM_PROTO_GetShiftState done [14:04:39]FM_GetShiftState done [14:04:39]req_shift_opened done [14:04:39]requested_item shift.open_date is exist - process it [14:04:39]req_shift_open_date [14:04:39]req_shift_open_date done [14:04:39]produce_requested_data done [14:04:39]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227501,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [14:04:39]process_action_free close_receipt [14:04:39]json_value_free [14:04:39]json_value_free done [14:04:39]process_json_proto returns [14:04:39]Send response to host [14:04:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227501,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [14:04:39]free response buf [14:04:39]execute_script done [14:04:39]execute_script returns [14:04:39]free content buf [14:04:39]Sock 9.Close socket [14:04:39]Sock 9.Thread stoped [14:04:39]OFD Sender: No OFD packet to send [14:04:39]accept exits with 7 [14:04:39]New connection [14:04:39]New thread 3067219300 created [14:04:39]Thread 3067362660 joined [14:04:39]Waiting for new connection... [14:04:39] Sock 7.Parse request [14:04:39]Sock 7.Check first char [14:04:39]Sock 7.First char is OK [14:04:39]request: POST /json_proto HTTP/1.0 [14:04:39]Method: POST [14:04:39]URL: /json_proto [14:04:39]Method is POST - this is cgi request [14:04:39]url: /json_proto [14:04:39]query_string will be loaded in cgi processing [14:04:39]execute_cgi json_proto POST (null) [14:04:39]execute_cgi path=json_proto method=POST [14:04:39]POST find Content-Length [14:04:39]Host: 172.17.44.195:8080 [14:04:39]Content-Length: 767 [14:04:39]Content-Type: application/json [14:04:39] [14:04:39]POST finish read [14:04:39]Found Content-Length = 767 [14:04:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963028", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:04:39]execute_script... [14:04:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963028", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:04:39]POST & json_proto [14:04:39]process_json_proto [14:04:39]json parsed OK: [14:04:39]protocol is kg_v1.0 [14:04:39]action value=close_receipt [14:04:39]process_action close_receipt [14:04:39]cmd_close_receipt [14:04:39]MH_GetDate [14:04:39]Write to MH i2c: F0 00 00 96 02 87 [14:04:39]Write i2c OK [14:04:39]MH_I2C_Read... [14:04:39]Read from MH i2c: F0 [14:04:39]MH_I2C_Read... [14:04:39]Read from MH i2c: F0 09 00 [14:04:39]MH_I2C_Read... [14:04:39]Read from MH i2c: F0 09 00 96 02 00 F8 0D 15 67 82 C9 CF 66 91 [14:04:39]GetLastDocTimeStamp 1729433077 [14:04:39]current date 1729433080 [14:04:39]FM_GetShiftState [14:04:39]SAM_PROTO_GetShiftState [14:04:39]wFMCommunicate request_size=4 [14:04:39]MH_SAM_APDU [14:04:39]CAPDU: 80 13 01 00 [14:04:39]Write to MH i2c: E2 08 00 97 02 80 13 01 00 00 00 00 00 16 [14:04:39]Write i2c OK [14:04:39]MH_I2C_Read... [14:04:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:04:39]Read from MH i2c: E2 [14:04:39]MH_I2C_Read... [14:04:39]Read from MH i2c: E2 0E 00 [14:04:39]MH_I2C_Read... [14:04:39]Read from MH i2c: E2 0E 00 97 02 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 30 [14:04:39]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [14:04:39]wFMCommunicate OK [14:04:39]SAM_PROTO_GetShiftState done [14:04:39]FM_GetShiftState done [14:04:39]opened in 1729383750 [14:04:39]opened+sec_in_day 1729470150 [14:04:39]quantity*price = 50041 [14:04:39]sum+1 = 50042 [14:04:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 350 20.10.2024 14:04 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 227502 ФПД: 168031271146054 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T140440&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227502&fm=168031271146054&tin=02508201610067®Number=0000000000091685&sum=50041 [14:04:41]StoreToDocumentArchive [14:04:41]shift 533 fd 227502 [14:04:41]save to /storage/0533/doc_00227502 [14:04:41]save last doc name /storage/0533/doc_00227502 to /storage/kkm_last_doc_name [14:04:41]save OK [14:04:41]Clear old archive folders... [14:04:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:04:41]tlvbuf is 00D9C0F0 [14:04:41]SAM_PROTO_ClearQueue [14:04:41]wFMCommunicate request_size=4 [14:04:41]MH_SAM_APDU [14:04:41]CAPDU: 80 09 00 00 [14:04:41]Write to MH i2c: E2 08 00 A4 02 80 09 00 00 00 00 00 00 18 [14:04:41]Write i2c OK [14:04:41]MH_I2C_Read... [14:04:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:04:41]Read from MH i2c: E2 [14:04:41]MH_I2C_Read... [14:04:41]Read from MH i2c: E2 03 00 [14:04:41]MH_I2C_Read... [14:04:41]Read from MH i2c: E2 03 00 A4 02 00 90 00 1A [14:04:41]RAPDU: 90 00 [14:04:41]wFMCommunicate OK [14:04:41]SAM_PROTO_ClearQueue done [14:04:41]KKMCreateOFDPacket [14:04:41]OFDProtocolAddRootSTLVToBuf [14:04:41]FM_MakeSignedData [14:04:41]FM_MakeSignedData [14:04:41]SAM_PROTO_SignData [14:04:41]wFMCommunicate request_size=4 [14:04:41]MH_SAM_APDU [14:04:41]CAPDU: 80 0D 01 02 [14:04:41]Write to MH i2c: E2 08 00 A5 02 80 0D 01 02 00 00 00 00 20 [14:04:41]Write i2c OK [14:04:41]MH_I2C_Read... [14:04:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:04:41]Read from MH i2c: E2 [14:04:41]MH_I2C_Read... [14:04:41]Read from MH i2c: E2 03 00 [14:04:41]MH_I2C_Read... [14:04:41]Read from MH i2c: E2 03 00 A5 02 00 90 00 1B [14:04:41]RAPDU: 90 00 [14:04:41]wFMCommunicate OK [14:04:41]wFMCommunicate request_size=255 [14:04:41]MH_SAM_APDU [14:04:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 F8 0D 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AE 78 03 00 35 04 06 00 98 [14:04:41]Write to MH i2c: E2 02 01 A6 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 F8 0D 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AE 78 03 00 35 04 06 00 98 00 00 C1 [14:04:41]Write i2c OK [14:04:41]MH_I2C_Read... [14:04:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:04:41]Read from MH i2c: E2 [14:04:41]MH_I2C_Read... [14:04:41]Read from MH i2c: E2 03 00 [14:04:41]MH_I2C_Read... [14:04:41]Read from MH i2c: E2 03 00 A6 02 00 90 00 1C [14:04:41]RAPDU: 90 00 [14:04:41]wFMCommunicate OK [14:04:41]wFMCommunicate request_size=10 [14:04:41]MH_SAM_APDU [14:04:41]CAPDU: 80 0D 02 02 05 D2 D4 3A 52 46 [14:04:41]Write to MH i2c: E2 0D 00 A7 02 80 0D 02 02 05 00 D2 D4 3A 52 46 00 00 A5 [14:04:41]Write i2c OK [14:04:41]MH_I2C_Read... [14:04:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:04:41]Read from MH i2c: E2 [14:04:41]MH_I2C_Read... [14:04:41]Read from MH i2c: E2 03 00 [14:04:41]MH_I2C_Read... [14:04:41]Read from MH i2c: E2 03 00 A7 02 00 90 00 1D [14:04:41]RAPDU: 90 00 [14:04:41]wFMCommunicate OK [14:04:41]wFMCommunicate request_size=4 [14:04:41]MH_SAM_APDU [14:04:41]CAPDU: 80 0D 03 02 [14:04:41]Write to MH i2c: E2 08 00 A8 02 80 0D 03 02 00 00 00 00 25 [14:04:41]Write i2c OK [14:04:41]MH_I2C_Read... [14:04:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:04:41]Read from MH i2c: E2 [14:04:41]MH_I2C_Read... [14:04:41]Read from MH i2c: E2 0B 00 [14:04:41]MH_I2C_Read... [14:04:41]Read from MH i2c: E2 0B 00 A8 02 00 C9 C8 E0 37 FA 62 78 AD 90 00 4F [14:04:41]RAPDU: C9 C8 E0 37 FA 62 78 AD 90 00 [14:04:41]wFMCommunicate OK [14:04:41]SAM_PROTO_SignData done [14:04:41]FM_MakeSignedData done [14:04:41]CreateOFDProtocolMessage [14:04:41]wFMCommunicate request_size=4 [14:04:41]MH_SAM_APDU [14:04:41]CAPDU: 80 11 00 00 [14:04:41]Write to MH i2c: E2 08 00 A9 02 80 11 00 00 00 00 00 00 25 [14:04:41]Write i2c OK [14:04:41]MH_I2C_Read... [14:04:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:04:41]Read from MH i2c: E2 [14:04:41]MH_I2C_Read... [14:04:41]Read from MH i2c: E2 17 00 [14:04:41]MH_I2C_Read... [14:04:41]Read from MH i2c: E2 17 00 A9 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 7C [14:04:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:04:41]wFMCommunicate OK [14:04:41]CreateOFDProtocolMessage done [14:04:41]OFDSenderStorePacket 227502 [14:04:41]StoreOFDPacket docnum=227502 [14:04:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 A4 A2 07 01 91 EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 F8 0D 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AE 78 03 00 35 04 06 00 98 D2 D4 3A 52 46 C9 C8 E0 37 FA 62 78 AD [14:04:41]CheckFolder [14:04:41]dirname=/storage/ofd_packets [14:04:41]CheckFolder done [14:04:41]ProducePacketName [14:04:41]name=ofd_packets/00227502 [14:04:41]NVStorageSaveData ofd_packets/00227502 [14:04:41]File name is /storage/ofd_packets/00227502 [14:04:41]Write 301 bytes [14:04:41]NVStorageSaveData done [14:04:41]OFDSenderStorePacket done [14:04:41]KKMCreateOFDPacket done [14:04:41]NVStorageSaveData kkm_last_timestamp [14:04:41]File name is /storage/kkm_last_timestamp [14:04:41]Write 4 bytes [14:04:41]NVStorageSaveData done [14:04:41]ExternCall_PrintAddStr [14:04:41]wPrintStart [14:04:41]Write to MH i2c: 01 00 00 AA 02 AC [14:04:41]Write i2c OK [14:04:41]MH_I2C_Read... [14:04:41]Read from MH i2c: 01 [14:04:41]MH_I2C_Read... [14:04:41]Read from MH i2c: 01 07 00 [14:04:41]MH_I2C_Read... [14:04:41]Read from MH i2c: 01 07 00 AA 02 00 00 00 00 00 FF 0F C1 [14:04:41]RasterBufferAndPrint [14:04:41]line Счет N : (1)1963028 [14:04:41]line ИНН: 02508201610067 [14:04:41]line Контрольно-Кассовый Чек [14:04:41]line ПРОДАЖА [14:04:41]line ТРК (МРК, ГНК) : 43 [14:04:41]line Товар: 2710124130 [14:04:41]line Аи-92-К-5 [14:04:41]line 7.480 * 66.90 [14:04:41]line = 500.41 [14:04:41]line НДС 12% НСП 1% [14:04:41]line > о реализуемом товаре [14:04:41]line ИТОГО: 500.41 [14:04:41]line НСП 1% : 4.43 [14:04:41]line НДС 12% : 53.14 [14:04:41]line Наличными: 0.00 [14:04:41]line Безнал.: 500.41 [14:04:41]line Место: АЗС № 133 "Партнер Нефть" [14:04:41]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [14:04:41]line СНО: Общий режим [14:04:41]line Чек 350 20.10.2024 14:04 [14:04:41]line Смена: 533 ФФД: 1.0 [14:04:41]line ЗНМ: 0300000091 [14:04:41]line РНМ: 0000000000091685 [14:04:41]line Версия ККМ: 001 [14:04:41]line Платежная система: Mbank [14:04:41]line ФМ: 0000000000871839 [14:04:41]line ФД: 227502 [14:04:41]line ФПД: 168031271146054 [14:04:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T140440&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227502&fm=168031271146054&tin=02508201610067®Number=0000000000091685&sum=50041 [14:04:41]written 0, free lines is 4095 [14:04:42]OFD Sender: Processing packet 227502 [packets to send 38, broken 37] [14:04:42]ProducePacketName [14:04:42]name=ofd_packets/00227502 [14:04:42]OFD Sender: To server: pG, [14:04:42]CommunicateWithHost lk.salyk.kg:30040 [14:04:42]ConnectInit lk.salyk.kg [14:04:42]Connected sock=10 [14:04:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 A4 A2 07 01 91 EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 F8 0D 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AE 78 03 00 35 04 06 00 98 D2 D4 3A 52 46 C9 C8 E0 37 FA 62 78 AD [14:04: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 33 39 4F 00 00 00 5E F1 47 00 31 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AE 78 03 00 F4 03 04 00 F7 B8 14 67 B6 04 01 00 00 EA 7E 7A BB 42 18 15 0A [14:04:42]CommunicateWithHost err = 0 [14:04:42]CheckOFDResponse [14:04:42]1017 (14) - 77093643461234 [14:04:42]1041 (16) - 0000000000871839 [14:04:42]1040 (4) - 227502 [14:04:42]1012 (4) - 20.10.2024 08:01 [14:04:42]1206 (1) - 0 [14:04:42]OFD Sender: Remove packet 227502 [14:04:42]ProducePacketName [14:04:42]name=ofd_packets/00227502 [14:04:42]NVStorageDeleteData [14:04:42]Write to MH i2c: 01 00 00 D2 02 D4 [14:04:42]Write i2c OK [14:04:42]MH_I2C_Read... [14:04:42]Read from MH i2c: 01 [14:04:42]MH_I2C_Read... [14:04:42]Read from MH i2c: 01 07 00 [14:04:42]MH_I2C_Read... [14:04:42]Read from MH i2c: 01 07 00 D2 02 00 00 00 00 00 42 0D 2A [14:04:42]RasterBufferAndPrint [14:04:42]line [14:04:42]line [14:04:42]line [14:04:42]line [14:04:42]line [14:04:42]written 0, free lines is 3407 [14:04:42]process_action close_receipt done [14:04:42]requested_data is exist [14:04:42]produce_requested_data [14:04:42]requested_item fm.sn is exist - process it [14:04:42]wFMCommunicate request_size=4 [14:04:42]MH_SAM_APDU [14:04:42]CAPDU: 80 11 00 00 [14:04:42]Write to MH i2c: E2 08 00 D9 02 80 11 00 00 00 00 00 00 55 [14:04:42]Write i2c OK [14:04:42]MH_I2C_Read... [14:04:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:04:42]Read from MH i2c: E2 [14:04:42]MH_I2C_Read... [14:04:42]Read from MH i2c: E2 17 00 [14:04:42]MH_I2C_Read... [14:04:42]Read from MH i2c: E2 17 00 D9 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 AC [14:04:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:04:42]wFMCommunicate OK [14:04:42]requested_item fd.num is exist - process it [14:04:42]SAM_PROTO_GetFieldsCounters [14:04:42]wFMCommunicate request_size=4 [14:04:42]MH_SAM_APDU [14:04:42]CAPDU: 80 13 00 00 [14:04:42]Write to MH i2c: E2 08 00 DA 02 80 13 00 00 00 00 00 00 58 [14:04:42]Write i2c OK [14:04:42]MH_I2C_Read... [14:04:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:04:42]Read from MH i2c: E2 [14:04:42]MH_I2C_Read... [14:04:42]Read from MH i2c: E2 62 00 [14:04:42]MH_I2C_Read... [14:04:42]Read from MH i2c: E2 62 00 DA 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 AE 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 5E 01 00 00 5E 04 04 00 5E 01 00 00 57 04 04 00 5F 01 00 00 19 04 04 00 00 00 00 00 90 00 DE [14:04: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 AE 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 5E 01 00 00 5E 04 04 00 5E 01 00 00 57 04 04 00 5F 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:04:42]wFMCommunicate OK [14:04:42]SAM_PROTO_GetFieldsCounters done [14:04:42]requested_item shift.num is exist - process it [14:04:42]requested_item shift.opened is exist - process it [14:04:42]req_shift_opened [14:04:42]FM_GetShiftState [14:04:42]SAM_PROTO_GetShiftState [14:04:42]wFMCommunicate request_size=4 [14:04:42]MH_SAM_APDU [14:04:42]CAPDU: 80 13 01 00 [14:04:42]Write to MH i2c: E2 08 00 DB 02 80 13 01 00 00 00 00 00 5A [14:04:42]Write i2c OK [14:04:42]MH_I2C_Read... [14:04:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:04:42]Read from MH i2c: E2 [14:04:42]MH_I2C_Read... [14:04:42]Read from MH i2c: E2 0E 00 [14:04:42]MH_I2C_Read... [14:04:42]Read from MH i2c: E2 0E 00 DB 02 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 74 [14:04:42]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [14:04:42]wFMCommunicate OK [14:04:42]SAM_PROTO_GetShiftState done [14:04:42]FM_GetShiftState done [14:04:42]req_shift_opened done [14:04:42]requested_item shift.open_date is exist - process it [14:04:42]req_shift_open_date [14:04:42]req_shift_open_date done [14:04:42]produce_requested_data done [14:04:42]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227502,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [14:04:42]process_action_free close_receipt [14:04:42]json_value_free [14:04:42]json_value_free done [14:04:42]process_json_proto returns [14:04:42]Send response to host [14:04:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227502,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [14:04:42]free response buf [14:04:42]execute_script done [14:04:42]execute_script returns [14:04:42]free content buf [14:04:42]Sock 7.Close socket [14:04:42]Sock 7.Thread stoped [14:04:42]OFD Sender: No OFD packet to send [14:04:47]OFD Sender: No OFD packet to send [14:04:52]OFD Sender: No OFD packet to send [14:04:57]OFD Sender: No OFD packet to send [14:05:02]OFD Sender: No OFD packet to send [14:05:07]OFD Sender: No OFD packet to send [14:05:12]OFD Sender: No OFD packet to send [14:05:17]OFD Sender: No OFD packet to send [14:05:22]OFD Sender: No OFD packet to send [14:05:27]OFD Sender: No OFD packet to send [14:05:32]OFD Sender: No OFD packet to send [14:05:37]accept exits with 9 [14:05:37]New connection [14:05:37]New thread 3067362660 created [14:05:37]Thread 3067219300 joined [14:05:37]Waiting for new connection... [14:05:37] Sock 9.Parse request [14:05:37]Sock 9.Check first char [14:05:37]Sock 9.First char is OK [14:05:37]request: POST /json_proto HTTP/1.0 [14:05:37]Method: POST [14:05:37]URL: /json_proto [14:05:37]Method is POST - this is cgi request [14:05:37]url: /json_proto [14:05:37]query_string will be loaded in cgi processing [14:05:37]execute_cgi json_proto POST (null) [14:05:37]execute_cgi path=json_proto method=POST [14:05:37]POST find Content-Length [14:05:37]Host: 172.17.44.195:8080 [14:05:37]Content-Length: 658 [14:05:37]Content-Type: application/json [14:05:37] [14:05:37]POST finish read [14:05:37]Found Content-Length = 658 [14:05:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.000, "sum" : 762.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 770.00, "payments": [ { "type": 0, "sum" : 762.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:37]execute_script... [14:05: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)1963027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.000, "sum" : 762.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 770.00, "payments": [ { "type": 0, "sum" : 762.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:37]POST & json_proto [14:05:37]process_json_proto [14:05:37]json parsed OK: [14:05:37]protocol is kg_v1.0 [14:05:37]action value=close_receipt [14:05:37]process_action close_receipt [14:05:37]cmd_close_receipt [14:05:37]MH_GetDate [14:05:37]Write to MH i2c: F0 00 00 DC 02 CD [14:05:37]Write i2c OK [14:05:37]MH_I2C_Read... [14:05:37]Read from MH i2c: F0 [14:05:37]MH_I2C_Read... [14:05:37]Read from MH i2c: F0 09 00 [14:05:37]MH_I2C_Read... [14:05:37]Read from MH i2c: F0 09 00 DC 02 00 31 0E 15 67 82 C9 CF 66 11 [14:05:37]GetLastDocTimeStamp 1729433080 [14:05:37]current date 1729433137 [14:05:37]FM_GetShiftState [14:05:37]SAM_PROTO_GetShiftState [14:05:37]wFMCommunicate request_size=4 [14:05:37]MH_SAM_APDU [14:05:37]CAPDU: 80 13 01 00 [14:05:37]Write to MH i2c: E2 08 00 DD 02 80 13 01 00 00 00 00 00 5C [14:05:37]Write i2c OK [14:05:37]MH_I2C_Read... [14:05:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:37]Read from MH i2c: E2 [14:05:37]MH_I2C_Read... [14:05:37]Read from MH i2c: E2 0E 00 [14:05:37]MH_I2C_Read... [14:05:37]Read from MH i2c: E2 0E 00 DD 02 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 76 [14:05:37]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [14:05:37]wFMCommunicate OK [14:05:37]SAM_PROTO_GetShiftState done [14:05:37]FM_GetShiftState done [14:05:37]opened in 1729383750 [14:05:37]opened+sec_in_day 1729470150 [14:05:37]quantity*price = 76200 [14:05:37]sum+1 = 76201 [14:05:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 762.00 Внесено: 770.00 СДАЧА: 8.00 НСП 1% : 6.74 НДС 12% : 80.92 Наличными: 762.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 351 20.10.2024 14:05 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227503 ФПД: 259122809491656 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T140537&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227503&fm=259122809491656&tin=02508201610067®Number=0000000000091685&sum=76200 [14:05:38]StoreToDocumentArchive [14:05:38]shift 533 fd 227503 [14:05:38]save to /storage/0533/doc_00227503 [14:05:38]save last doc name /storage/0533/doc_00227503 to /storage/kkm_last_doc_name [14:05:38]save OK [14:05:38]Clear old archive folders... [14:05:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:05:38]tlvbuf is 00D7AED0 [14:05:38]SAM_PROTO_ClearQueue [14:05:38]wFMCommunicate request_size=4 [14:05:38]MH_SAM_APDU [14:05:38]CAPDU: 80 09 00 00 [14:05:38]Write to MH i2c: E2 08 00 EA 02 80 09 00 00 00 00 00 00 5E [14:05:38]Write i2c OK [14:05:38]MH_I2C_Read... [14:05:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:05:38]Read from MH i2c: E2 [14:05:38]MH_I2C_Read... [14:05:38]Read from MH i2c: E2 03 00 [14:05:38]MH_I2C_Read... [14:05:38]Read from MH i2c: E2 03 00 EA 02 00 90 00 60 [14:05:38]RAPDU: 90 00 [14:05:38]wFMCommunicate OK [14:05:38]SAM_PROTO_ClearQueue done [14:05:38]KKMCreateOFDPacket [14:05:38]OFDProtocolAddRootSTLVToBuf [14:05:38]FM_MakeSignedData [14:05:38]FM_MakeSignedData [14:05:38]SAM_PROTO_SignData [14:05:38]wFMCommunicate request_size=4 [14:05:38]MH_SAM_APDU [14:05:38]CAPDU: 80 0D 01 02 [14:05:38]Write to MH i2c: E2 08 00 EB 02 80 0D 01 02 00 00 00 00 66 [14:05:38]Write i2c OK [14:05:38]MH_I2C_Read... [14:05:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:05:38]Read from MH i2c: E2 [14:05:38]MH_I2C_Read... [14:05:38]Read from MH i2c: E2 03 00 [14:05:38]MH_I2C_Read... [14:05:38]Read from MH i2c: E2 03 00 EB 02 00 90 00 61 [14:05:38]RAPDU: 90 00 [14:05:38]wFMCommunicate OK [14:05:38]wFMCommunicate request_size=255 [14:05:38]MH_SAM_APDU [14:05:38]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A8 29 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 29 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 1F 00 00 00 00 07 04 06 00 A8 29 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 01 00 00 F4 03 04 00 31 0E 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AF 78 03 00 35 04 06 00 EB AB BB 03 [14:05:38]Write to MH i2c: E2 02 01 EC 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 10 27 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A8 29 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 29 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 1F 00 00 00 00 07 04 06 00 A8 29 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 01 00 00 F4 03 04 00 31 0E 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AF 78 03 00 35 04 06 00 EB AB BB 03 00 00 68 [14:05:38]Write i2c OK [14:05:38]MH_I2C_Read... [14:05:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:38]Read from MH i2c: E2 [14:05:38]MH_I2C_Read... [14:05:38]Read from MH i2c: E2 03 00 [14:05:38]MH_I2C_Read... [14:05:38]Read from MH i2c: E2 03 00 EC 02 00 90 00 62 [14:05:38]RAPDU: 90 00 [14:05:38]wFMCommunicate OK [14:05:38]wFMCommunicate request_size=7 [14:05:38]MH_SAM_APDU [14:05:38]CAPDU: 80 0D 02 02 02 50 C8 [14:05:38]Write to MH i2c: E2 0A 00 ED 02 80 0D 02 02 02 00 50 C8 00 00 85 [14:05:38]Write i2c OK [14:05:38]MH_I2C_Read... [14:05:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:38]Read from MH i2c: E2 [14:05:38]MH_I2C_Read... [14:05:38]Read from MH i2c: E2 03 00 [14:05:38]MH_I2C_Read... [14:05:38]Read from MH i2c: E2 03 00 ED 02 00 90 00 63 [14:05:38]RAPDU: 90 00 [14:05:38]wFMCommunicate OK [14:05:38]wFMCommunicate request_size=4 [14:05:38]MH_SAM_APDU [14:05:38]CAPDU: 80 0D 03 02 [14:05:38]Write to MH i2c: E2 08 00 EE 02 80 0D 03 02 00 00 00 00 6B [14:05:38]Write i2c OK [14:05:38]MH_I2C_Read... [14:05:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:05:38]Read from MH i2c: E2 [14:05:38]MH_I2C_Read... [14:05:38]Read from MH i2c: E2 0B 00 [14:05:38]MH_I2C_Read... [14:05:38]Read from MH i2c: E2 0B 00 EE 02 00 8B 52 DA 52 90 BF C2 3D 90 00 C3 [14:05:38]RAPDU: 8B 52 DA 52 90 BF C2 3D 90 00 [14:05:38]wFMCommunicate OK [14:05:38]SAM_PROTO_SignData done [14:05:38]FM_MakeSignedData done [14:05:38]CreateOFDProtocolMessage [14:05:38]wFMCommunicate request_size=4 [14:05:38]MH_SAM_APDU [14:05:38]CAPDU: 80 11 00 00 [14:05:38]Write to MH i2c: E2 08 00 EF 02 80 11 00 00 00 00 00 00 6B [14:05:38]Write i2c OK [14:05:38]MH_I2C_Read... [14:05:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:38]Read from MH i2c: E2 [14:05:38]MH_I2C_Read... [14:05:38]Read from MH i2c: E2 17 00 [14:05:38]MH_I2C_Read... [14:05:38]Read from MH i2c: E2 17 00 EF 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C2 [14:05:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:05:38]wFMCommunicate OK [14:05:38]CreateOFDProtocolMessage done [14:05:38]OFDSenderStorePacket 227503 [14:05:38]StoreOFDPacket docnum=227503 [14:05:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 A4 B5 04 01 D8 97 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A8 29 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 29 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 1F 00 00 00 00 07 04 06 00 A8 29 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 01 00 00 F4 03 04 00 31 0E 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AF 78 03 00 35 04 06 00 EB AB BB 03 50 C8 8B 52 DA 52 90 BF C2 3D [14:05:38]CheckFolder [14:05:38]dirname=/storage/ofd_packets [14:05:38]CheckFolder done [14:05:38]ProducePacketName [14:05:38]name=ofd_packets/00227503 [14:05:38]NVStorageSaveData ofd_packets/00227503 [14:05:38]File name is /storage/ofd_packets/00227503 [14:05:38]Write 298 bytes [14:05:38]NVStorageSaveData done [14:05:38]OFDSenderStorePacket done [14:05:38]KKMCreateOFDPacket done [14:05:38]NVStorageSaveData kkm_last_timestamp [14:05:38]File name is /storage/kkm_last_timestamp [14:05:38]Write 4 bytes [14:05:38]NVStorageSaveData done [14:05:38]ExternCall_PrintAddStr [14:05:38]wPrintStart [14:05:38]Write to MH i2c: 01 00 00 F0 02 F2 [14:05:38]Write i2c OK [14:05:38]MH_I2C_Read... [14:05:38]Read from MH i2c: 01 [14:05:38]MH_I2C_Read... [14:05:38]Read from MH i2c: 01 07 00 [14:05:38]MH_I2C_Read... [14:05:38]Read from MH i2c: 01 07 00 F0 02 00 00 00 00 00 FF 0F 07 [14:05:38]RasterBufferAndPrint [14:05:38]line Счет N : (1)1963027 [14:05:38]line ИНН: 02508201610067 [14:05:38]line Контрольно-Кассовый Чек [14:05:38]line ПРОДАЖА [14:05:38]line ТРК (МРК, ГНК) : 61 [14:05:38]line Товар: 2710194210 [14:05:38]line ДТ-К-5 [14:05:38]line 10.000 * 76.20 [14:05:38]line = 762.00 [14:05:38]line НДС 12% НСП 1% [14:05:38]line > о реализуемом товаре [14:05:38]line ИТОГО: 762.00 [14:05:38]line Внесено: 770.00 [14:05:38]line СДАЧА: 8.00 [14:05:38]line НСП 1% : 6.74 [14:05:38]line НДС 12% : 80.92 [14:05:38]line Наличными: 762.00 [14:05:38]line Безнал.: 0.00 [14:05:38]line Место: АЗС № 133 "Партнер Нефть" [14:05:38]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [14:05:38]line СНО: Общий режим [14:05:38]line Чек 351 20.10.2024 14:05 [14:05:38]line Смена: 533 ФФД: 1.0 [14:05:38]line ЗНМ: 0300000091 [14:05:38]line РНМ: 0000000000091685 [14:05:38]line Версия ККМ: 001 [14:05:38]line ФМ: 0000000000871839 [14:05:38]line ФД: 227503 [14:05:38]line ФПД: 259122809491656 [14:05:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T140537&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227503&fm=259122809491656&tin=02508201610067®Number=0000000000091685&sum=76200 [14:05:39]OFD Sender: Processing packet 227503 [packets to send 38, broken 37] [14:05:39]ProducePacketName [14:05:39]name=ofd_packets/00227503 [14:05:39]OFD Sender: To server: pG, [14:05:39]CommunicateWithHost lk.salyk.kg:30040 [14:05:39]ConnectInit lk.salyk.kg [14:05:39]written 0, free lines is 4095 [14:05:39]Connected sock=7 [14:05: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 33 39 0C 01 00 00 A4 B5 04 01 D8 97 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A8 29 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 29 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 1F 00 00 00 00 07 04 06 00 A8 29 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 01 00 00 F4 03 04 00 31 0E 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 AF 78 03 00 35 04 06 00 EB AB BB 03 50 C8 8B 52 DA 52 90 BF C2 3D [14:05: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 33 39 4F 00 00 00 EA C2 47 00 17 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 33 39 10 04 04 00 AF 78 03 00 F4 03 04 00 30 B9 14 67 B6 04 01 00 00 8E C4 B0 54 E9 95 C6 66 [14:05:39]CommunicateWithHost err = 0 [14:05:39]CheckOFDResponse [14:05:39]1017 (14) - 77093643461234 [14:05:39]1041 (16) - 0000000000871839 [14:05:39]1040 (4) - 227503 [14:05:39]1012 (4) - 20.10.2024 08:02 [14:05:39]1206 (1) - 0 [14:05:39]OFD Sender: Remove packet 227503 [14:05:39]ProducePacketName [14:05:39]name=ofd_packets/00227503 [14:05:39]NVStorageDeleteData [14:05:39]Write to MH i2c: 01 00 00 19 03 1C [14:05:39]Write i2c OK [14:05:39]MH_I2C_Read... [14:05:39]Read from MH i2c: 01 [14:05:39]MH_I2C_Read... [14:05:39]Read from MH i2c: 01 07 00 [14:05:39]MH_I2C_Read... [14:05:39]Read from MH i2c: 01 07 00 19 03 00 00 00 00 00 26 0D 56 [14:05:39]RasterBufferAndPrint [14:05:39]line [14:05:39]line [14:05:39]line [14:05:39]line [14:05:39]line [14:05:39]written 0, free lines is 3372 [14:05:39]process_action close_receipt done [14:05:39]requested_data is exist [14:05:39]produce_requested_data [14:05:39]requested_item fm.sn is exist - process it [14:05:39]wFMCommunicate request_size=4 [14:05:39]MH_SAM_APDU [14:05:39]CAPDU: 80 11 00 00 [14:05:39]Write to MH i2c: E2 08 00 20 03 80 11 00 00 00 00 00 00 9D [14:05:39]Write i2c OK [14:05:39]MH_I2C_Read... [14:05:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:39]Read from MH i2c: E2 [14:05:39]MH_I2C_Read... [14:05:39]Read from MH i2c: E2 17 00 [14:05:39]MH_I2C_Read... [14:05:39]Read from MH i2c: E2 17 00 20 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F4 [14:05:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:05:39]wFMCommunicate OK [14:05:39]requested_item fd.num is exist - process it [14:05:39]SAM_PROTO_GetFieldsCounters [14:05:39]wFMCommunicate request_size=4 [14:05:39]MH_SAM_APDU [14:05:39]CAPDU: 80 13 00 00 [14:05:39]Write to MH i2c: E2 08 00 21 03 80 13 00 00 00 00 00 00 A0 [14:05:39]Write i2c OK [14:05:39]MH_I2C_Read... [14:05:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:05:39]Read from MH i2c: E2 [14:05:39]MH_I2C_Read... [14:05:39]Read from MH i2c: E2 62 00 [14:05:39]MH_I2C_Read... [14:05:39]Read from MH i2c: E2 62 00 21 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 AF 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 5F 01 00 00 5E 04 04 00 5F 01 00 00 57 04 04 00 60 01 00 00 19 04 04 00 00 00 00 00 90 00 2A [14:05: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 AF 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 5F 01 00 00 5E 04 04 00 5F 01 00 00 57 04 04 00 60 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:05:39]wFMCommunicate OK [14:05:39]SAM_PROTO_GetFieldsCounters done [14:05:39]requested_item shift.num is exist - process it [14:05:39]requested_item shift.opened is exist - process it [14:05:39]req_shift_opened [14:05:39]FM_GetShiftState [14:05:39]SAM_PROTO_GetShiftState [14:05:39]wFMCommunicate request_size=4 [14:05:39]MH_SAM_APDU [14:05:39]CAPDU: 80 13 01 00 [14:05:39]Write to MH i2c: E2 08 00 22 03 80 13 01 00 00 00 00 00 A2 [14:05:39]Write i2c OK [14:05:39]MH_I2C_Read... [14:05:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:39]Read from MH i2c: E2 [14:05:39]MH_I2C_Read... [14:05:39]Read from MH i2c: E2 0E 00 [14:05:39]MH_I2C_Read... [14:05:39]Read from MH i2c: E2 0E 00 22 03 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 BC [14:05:39]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [14:05:39]wFMCommunicate OK [14:05:39]SAM_PROTO_GetShiftState done [14:05:39]FM_GetShiftState done [14:05:39]req_shift_opened done [14:05:39]requested_item shift.open_date is exist - process it [14:05:39]req_shift_open_date [14:05:39]req_shift_open_date done [14:05:39]produce_requested_data done [14:05:39]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227503,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [14:05:39]process_action_free close_receipt [14:05:39]json_value_free [14:05:39]json_value_free done [14:05:39]process_json_proto returns [14:05:39]Send response to host [14:05:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227503,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [14:05:39]free response buf [14:05:39]execute_script done [14:05:39]execute_script returns [14:05:39]free content buf [14:05:39]Sock 9.Close socket [14:05:39]Sock 9.Thread stoped [14:05:39]OFD Sender: No OFD packet to send [14:05:44]OFD Sender: No OFD packet to send [14:05:49]OFD Sender: No OFD packet to send [14:05:54]OFD Sender: No OFD packet to send [14:05:59]OFD Sender: No OFD packet to send [14:06:04]OFD Sender: No OFD packet to send [14:06:09]OFD Sender: No OFD packet to send [14:06:14]OFD Sender: No OFD packet to send [14:06:19]OFD Sender: No OFD packet to send [14:06:24]OFD Sender: No OFD packet to send [14:06:29]OFD Sender: No OFD packet to send [14:06:34]OFD Sender: No OFD packet to send [14:06:39]OFD Sender: No OFD packet to send [14:06:44]OFD Sender: No OFD packet to send [14:06:49]OFD Sender: No OFD packet to send [14:06:54]OFD Sender: No OFD packet to send [14:06:59]OFD Sender: No OFD packet to send [14:07:04]OFD Sender: No OFD packet to send [14:07:09]OFD Sender: No OFD packet to send [14:07:14]OFD Sender: No OFD packet to send [14:07:19]OFD Sender: No OFD packet to send [14:07:24]OFD Sender: No OFD packet to send [14:07:29]OFD Sender: No OFD packet to send [14:07:34]OFD Sender: No OFD packet to send [14:07:39]OFD Sender: No OFD packet to send [14:07:44]OFD Sender: No OFD packet to send [14:07:49]OFD Sender: No OFD packet to send [14:07:54]OFD Sender: No OFD packet to send [14:08:00]OFD Sender: No OFD packet to send [14:08:05]OFD Sender: No OFD packet to send [14:08:10]OFD Sender: No OFD packet to send [14:08:15]OFD Sender: No OFD packet to send [14:08:20]OFD Sender: No OFD packet to send [14:08:25]OFD Sender: No OFD packet to send [14:08:30]OFD Sender: No OFD packet to send [14:08:35]OFD Sender: No OFD packet to send [14:08:40]OFD Sender: No OFD packet to send [14:08:42]accept exits with 10 [14:08:42]New connection [14:08:42]New thread 3067219300 created [14:08:42]Thread 3067362660 joined [14:08:42]Waiting for new connection... [14:08:42] Sock 10.Parse request [14:08:42]Sock 10.Check first char [14:08:42]Sock 10.First char is OK [14:08:42]request: POST /json_proto HTTP/1.0 [14:08:42]Method: POST [14:08:42]URL: /json_proto [14:08:42]Method is POST - this is cgi request [14:08:42]url: /json_proto [14:08:42]query_string will be loaded in cgi processing [14:08:42]execute_cgi json_proto POST (null) [14:08:42]execute_cgi path=json_proto method=POST [14:08:42]POST find Content-Length [14:08:42]Host: 172.17.44.195:8080 [14:08:42]Content-Length: 680 [14:08:42]Content-Type: application/json [14:08:42] [14:08:42]POST finish read [14:08:42]Found Content-Length = 680 [14:08:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963029", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 98.430, "sum" : 7500.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 7500.00, "total" : 7500.00, "payments": [ { "type": 0, "sum" : 7500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:08:42]execute_script... [14:08:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963029", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 98.430, "sum" : 7500.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 7500.00, "total" : 7500.00, "payments": [ { "type": 0, "sum" : 7500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:08:42]POST & json_proto [14:08:42]process_json_proto [14:08:42]json parsed OK: [14:08:42]protocol is kg_v1.0 [14:08:42]action value=close_receipt [14:08:42]process_action close_receipt [14:08:42]cmd_close_receipt [14:08:42]MH_GetDate [14:08:42]Write to MH i2c: F0 00 00 23 03 15 [14:08:42]Write i2c OK [14:08:42]MH_I2C_Read... [14:08:42]Read from MH i2c: F0 [14:08:42]MH_I2C_Read... [14:08:42]Read from MH i2c: F0 09 00 [14:08:42]MH_I2C_Read... [14:08:42]Read from MH i2c: F0 09 00 23 03 00 EB 0E 15 67 82 C9 CF 66 13 [14:08:42]GetLastDocTimeStamp 1729433137 [14:08:42]current date 1729433323 [14:08:42]FM_GetShiftState [14:08:42]SAM_PROTO_GetShiftState [14:08:42]wFMCommunicate request_size=4 [14:08:42]MH_SAM_APDU [14:08:42]CAPDU: 80 13 01 00 [14:08:42]Write to MH i2c: E2 08 00 24 03 80 13 01 00 00 00 00 00 A4 [14:08:42]Write i2c OK [14:08:42]MH_I2C_Read... [14:08:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:42]Read from MH i2c: E2 [14:08:42]MH_I2C_Read... [14:08:42]Read from MH i2c: E2 0E 00 [14:08:42]MH_I2C_Read... [14:08:42]Read from MH i2c: E2 0E 00 24 03 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 BE [14:08:42]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [14:08:42]wFMCommunicate OK [14:08:42]SAM_PROTO_GetShiftState done [14:08:42]FM_GetShiftState done [14:08:42]opened in 1729383750 [14:08:42]opened+sec_in_day 1729470150 [14:08:42]quantity*price = 750036 [14:08:42]sum+1 = 750038 [14:08:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 7500.00 Внесено: 7500.00 СДАЧА: 0.00 НСП 1% : 66.37 НДС 12% : 796.50 Наличными: 7500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 352 20.10.2024 14:08 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227504 ФПД: 40884377147327 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T140843&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227504&fm=40884377147327&tin=02508201610067®Number=0000000000091685&sum=750000 [14:08:43]StoreToDocumentArchive [14:08:43]shift 533 fd 227504 [14:08:43]save to /storage/0533/doc_00227504 [14:08:43]save last doc name /storage/0533/doc_00227504 to /storage/kkm_last_doc_name [14:08:43]save OK [14:08:43]Clear old archive folders... [14:08:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:08:43]tlvbuf is 00D7C850 [14:08:43]SAM_PROTO_ClearQueue [14:08:43]wFMCommunicate request_size=4 [14:08:43]MH_SAM_APDU [14:08:43]CAPDU: 80 09 00 00 [14:08:43]Write to MH i2c: E2 08 00 31 03 80 09 00 00 00 00 00 00 A6 [14:08:43]Write i2c OK [14:08:43]MH_I2C_Read... [14:08:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:08:43]Read from MH i2c: E2 [14:08:43]MH_I2C_Read... [14:08:43]Read from MH i2c: E2 03 00 [14:08:43]MH_I2C_Read... [14:08:43]Read from MH i2c: E2 03 00 31 03 00 90 00 A8 [14:08:43]RAPDU: 90 00 [14:08:43]wFMCommunicate OK [14:08:43]SAM_PROTO_ClearQueue done [14:08:43]KKMCreateOFDPacket [14:08:43]OFDProtocolAddRootSTLVToBuf [14:08:43]FM_MakeSignedData [14:08:43]FM_MakeSignedData [14:08:43]SAM_PROTO_SignData [14:08:43]wFMCommunicate request_size=4 [14:08:43]MH_SAM_APDU [14:08:43]CAPDU: 80 0D 01 02 [14:08:43]Write to MH i2c: E2 08 00 32 03 80 0D 01 02 00 00 00 00 AE [14:08:43]Write i2c OK [14:08:43]MH_I2C_Read... [14:08:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:08:43]Read from MH i2c: E2 [14:08:43]MH_I2C_Read... [14:08:43]Read from MH i2c: E2 03 00 [14:08:43]MH_I2C_Read... [14:08:43]Read from MH i2c: E2 03 00 32 03 00 90 00 A9 [14:08:43]RAPDU: 90 00 [14:08:43]wFMCommunicate OK [14:08:43]wFMCommunicate request_size=255 [14:08:43]MH_SAM_APDU [14:08:43]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 80 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D5 71 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 71 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 37 01 00 00 00 07 04 06 00 B0 71 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 01 00 00 F4 03 04 00 EB 0E 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B0 78 03 00 35 04 06 00 25 2F 22 C6 [14:08:43]Write to MH i2c: E2 02 01 33 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 7E 80 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D5 71 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 71 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 37 01 00 00 00 07 04 06 00 B0 71 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 01 00 00 F4 03 04 00 EB 0E 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B0 78 03 00 35 04 06 00 25 2F 22 C6 00 00 50 [14:08:43]Write i2c OK [14:08:43]MH_I2C_Read... [14:08:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:44]Read from MH i2c: E2 [14:08:44]MH_I2C_Read... [14:08:44]Read from MH i2c: E2 03 00 [14:08:44]MH_I2C_Read... [14:08:44]Read from MH i2c: E2 03 00 33 03 00 90 00 AA [14:08:44]RAPDU: 90 00 [14:08:44]wFMCommunicate OK [14:08:44]wFMCommunicate request_size=7 [14:08:44]MH_SAM_APDU [14:08:44]CAPDU: 80 0D 02 02 02 D7 BF [14:08:44]Write to MH i2c: E2 0A 00 34 03 80 0D 02 02 02 00 D7 BF 00 00 4B [14:08:44]Write i2c OK [14:08:44]MH_I2C_Read... [14:08:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:44]Read from MH i2c: E2 [14:08:44]MH_I2C_Read... [14:08:44]Read from MH i2c: E2 03 00 [14:08:44]MH_I2C_Read... [14:08:44]Read from MH i2c: E2 03 00 34 03 00 90 00 AB [14:08:44]RAPDU: 90 00 [14:08:44]wFMCommunicate OK [14:08:44]wFMCommunicate request_size=4 [14:08:44]MH_SAM_APDU [14:08:44]CAPDU: 80 0D 03 02 [14:08:44]Write to MH i2c: E2 08 00 35 03 80 0D 03 02 00 00 00 00 B3 [14:08:44]Write i2c OK [14:08:44]MH_I2C_Read... [14:08:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:08:44]Read from MH i2c: E2 [14:08:44]MH_I2C_Read... [14:08:44]Read from MH i2c: E2 0B 00 [14:08:44]MH_I2C_Read... [14:08:44]Read from MH i2c: E2 0B 00 35 03 00 D5 08 84 36 23 60 CA E2 90 00 7A [14:08:44]RAPDU: D5 08 84 36 23 60 CA E2 90 00 [14:08:44]wFMCommunicate OK [14:08:44]SAM_PROTO_SignData done [14:08:44]FM_MakeSignedData done [14:08:44]CreateOFDProtocolMessage [14:08:44]wFMCommunicate request_size=4 [14:08:44]MH_SAM_APDU [14:08:44]CAPDU: 80 11 00 00 [14:08:44]Write to MH i2c: E2 08 00 36 03 80 11 00 00 00 00 00 00 B3 [14:08:44]Write i2c OK [14:08:44]MH_I2C_Read... [14:08:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:44]Read from MH i2c: E2 [14:08:44]MH_I2C_Read... [14:08:44]Read from MH i2c: E2 17 00 [14:08:44]MH_I2C_Read... [14:08:44]Read from MH i2c: E2 17 00 36 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 0A [14:08:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:08:44]wFMCommunicate OK [14:08:44]CreateOFDProtocolMessage done [14:08:44]OFDSenderStorePacket 227504 [14:08:44]StoreOFDPacket docnum=227504 [14:08:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 52 AE 04 01 FD C0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 80 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D5 71 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 71 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 37 01 00 00 00 07 04 06 00 B0 71 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 01 00 00 F4 03 04 00 EB 0E 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B0 78 03 00 35 04 06 00 25 2F 22 C6 D7 BF D5 08 84 36 23 60 CA E2 [14:08:44]CheckFolder [14:08:44]dirname=/storage/ofd_packets [14:08:44]CheckFolder done [14:08:44]ProducePacketName [14:08:44]name=ofd_packets/00227504 [14:08:44]NVStorageSaveData ofd_packets/00227504 [14:08:44]File name is /storage/ofd_packets/00227504 [14:08:44]Write 298 bytes [14:08:44]NVStorageSaveData done [14:08:44]OFDSenderStorePacket done [14:08:44]KKMCreateOFDPacket done [14:08:44]NVStorageSaveData kkm_last_timestamp [14:08:44]File name is /storage/kkm_last_timestamp [14:08:44]Write 4 bytes [14:08:44]NVStorageSaveData done [14:08:44]ExternCall_PrintAddStr [14:08:44]wPrintStart [14:08:44]Write to MH i2c: 01 00 00 37 03 3A [14:08:44]Write i2c OK [14:08:44]MH_I2C_Read... [14:08:44]Read from MH i2c: 01 [14:08:44]MH_I2C_Read... [14:08:44]Read from MH i2c: 01 07 00 [14:08:44]MH_I2C_Read... [14:08:44]Read from MH i2c: 01 07 00 37 03 00 00 00 00 00 FF 0F 4F [14:08:44]RasterBufferAndPrint [14:08:44]line Счет N : (1)1963029 [14:08:44]line ИНН: 02508201610067 [14:08:44]line Контрольно-Кассовый Чек [14:08:44]line ПРОДАЖА [14:08:44]line ТРК (МРК, ГНК) : 21 [14:08:44]line Товар: 2710194210 [14:08:44]line ДТ-К-5 [14:08:44]line 98.430 * 76.20 [14:08:44]line = 7500.37 [14:08:44]line НДС 12% НСП 1% [14:08:44]line > о реализуемом товаре [14:08:44]line ОКРУГЛЕНИЕ: -0.37 [14:08:44]line ИТОГО: 7500.00 [14:08:44]line Внесено: 7500.00 [14:08:44]line СДАЧА: 0.00 [14:08:44]line НСП 1% : 66.37 [14:08:44]line НДС 12% : 796.50 [14:08:44]line Наличными: 7500.00 [14:08:44]line Безнал.: 0.00 [14:08:44]line Место: АЗС № 133 "Партнер Нефть" [14:08:44]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [14:08:44]line СНО: Общий режим [14:08:44]line Чек 352 20.10.2024 14:08 [14:08:44]line Смена: 533 ФФД: 1.0 [14:08:44]line ЗНМ: 0300000091 [14:08:44]line РНМ: 0000000000091685 [14:08:44]line Версия ККМ: 001 [14:08:44]line ФМ: 0000000000871839 [14:08:44]line ФД: 227504 [14:08:44]line ФПД: 40884377147327 [14:08:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T140843&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227504&fm=40884377147327&tin=02508201610067®Number=0000000000091685&sum=750000 [14:08:44]OFD Sender: Processing packet 227504 [packets to send 38, broken 37] [14:08:44]ProducePacketName [14:08:44]name=ofd_packets/00227504 [14:08:44]OFD Sender: To server: pG, [14:08:44]CommunicateWithHost lk.salyk.kg:30040 [14:08:44]ConnectInit lk.salyk.kg [14:08:44]written 0, free lines is 4095 [14:08:44]Connected sock=9 [14:08:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 52 AE 04 01 FD C0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 80 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D5 71 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 71 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 37 01 00 00 00 07 04 06 00 B0 71 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 01 00 00 F4 03 04 00 EB 0E 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B0 78 03 00 35 04 06 00 25 2F 22 C6 D7 BF D5 08 84 36 23 60 CA E2 [14:08:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 21 7E 47 00 E4 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B0 78 03 00 F4 03 04 00 EA B9 14 67 B6 04 01 00 00 09 5A 43 21 28 0B D6 8C [14:08:44]CommunicateWithHost err = 0 [14:08:44]CheckOFDResponse [14:08:44]1017 (14) - 77093643461234 [14:08:44]1041 (16) - 0000000000871839 [14:08:44]1040 (4) - 227504 [14:08:44]1012 (4) - 20.10.2024 08:06 [14:08:44]1206 (1) - 0 [14:08:44]OFD Sender: Remove packet 227504 [14:08:44]ProducePacketName [14:08:44]name=ofd_packets/00227504 [14:08:44]NVStorageDeleteData [14:08:45]Write to MH i2c: 01 00 00 61 03 64 [14:08:45]Write i2c OK [14:08:45]MH_I2C_Read... [14:08:45]Read from MH i2c: 01 [14:08:45]MH_I2C_Read... [14:08:45]Read from MH i2c: 01 07 00 [14:08:45]MH_I2C_Read... [14:08:45]Read from MH i2c: 01 07 00 61 03 00 00 00 00 00 02 0D 7A [14:08:45]RasterBufferAndPrint [14:08:45]line [14:08:45]line [14:08:45]line [14:08:45]line [14:08:45]line [14:08:45]written 0, free lines is 3336 [14:08:45]process_action close_receipt done [14:08:45]requested_data is exist [14:08:45]produce_requested_data [14:08:45]requested_item fm.sn is exist - process it [14:08:45]wFMCommunicate request_size=4 [14:08:45]MH_SAM_APDU [14:08:45]CAPDU: 80 11 00 00 [14:08:45]Write to MH i2c: E2 08 00 68 03 80 11 00 00 00 00 00 00 E5 [14:08:45]Write i2c OK [14:08:45]MH_I2C_Read... [14:08:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:45]Read from MH i2c: E2 [14:08:45]MH_I2C_Read... [14:08:45]Read from MH i2c: E2 17 00 [14:08:45]MH_I2C_Read... [14:08:45]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 33 39 90 00 3C [14:08:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:08:45]wFMCommunicate OK [14:08:45]requested_item fd.num is exist - process it [14:08:45]SAM_PROTO_GetFieldsCounters [14:08:45]wFMCommunicate request_size=4 [14:08:45]MH_SAM_APDU [14:08:45]CAPDU: 80 13 00 00 [14:08:45]Write to MH i2c: E2 08 00 69 03 80 13 00 00 00 00 00 00 E8 [14:08:45]Write i2c OK [14:08:45]MH_I2C_Read... [14:08:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:08:45]Read from MH i2c: E2 [14:08:45]MH_I2C_Read... [14:08:45]Read from MH i2c: E2 62 00 [14:08:45]MH_I2C_Read... [14:08:45]Read from MH i2c: E2 62 00 69 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 B0 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 60 01 00 00 5E 04 04 00 60 01 00 00 57 04 04 00 61 01 00 00 19 04 04 00 00 00 00 00 90 00 76 [14:08:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 B0 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 60 01 00 00 5E 04 04 00 60 01 00 00 57 04 04 00 61 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:08:45]wFMCommunicate OK [14:08:45]SAM_PROTO_GetFieldsCounters done [14:08:45]requested_item shift.num is exist - process it [14:08:45]requested_item shift.opened is exist - process it [14:08:45]req_shift_opened [14:08:45]FM_GetShiftState [14:08:45]SAM_PROTO_GetShiftState [14:08:45]wFMCommunicate request_size=4 [14:08:45]MH_SAM_APDU [14:08:45]CAPDU: 80 13 01 00 [14:08:45]Write to MH i2c: E2 08 00 6A 03 80 13 01 00 00 00 00 00 EA [14:08:45]Write i2c OK [14:08:45]MH_I2C_Read... [14:08:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:45]Read from MH i2c: E2 [14:08:45]MH_I2C_Read... [14:08:45]Read from MH i2c: E2 0E 00 [14:08:45]MH_I2C_Read... [14:08:45]Read from MH i2c: E2 0E 00 6A 03 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 04 [14:08:45]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [14:08:45]wFMCommunicate OK [14:08:45]SAM_PROTO_GetShiftState done [14:08:45]FM_GetShiftState done [14:08:45]req_shift_opened done [14:08:45]requested_item shift.open_date is exist - process it [14:08:45]req_shift_open_date [14:08:45]req_shift_open_date done [14:08:45]produce_requested_data done [14:08:45]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227504,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [14:08:45]process_action_free close_receipt [14:08:45]json_value_free [14:08:45]json_value_free done [14:08:45]process_json_proto returns [14:08:45]Send response to host [14:08:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227504,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [14:08:45]free response buf [14:08:45]execute_script done [14:08:45]execute_script returns [14:08:45]free content buf [14:08:45]Sock 10.Close socket [14:08:45]Sock 10.Thread stoped [14:08:45]OFD Sender: No OFD packet to send [14:08:50]OFD Sender: No OFD packet to send [14:08:55]OFD Sender: No OFD packet to send [14:09:00]OFD Sender: No OFD packet to send [14:09:00]accept exits with 7 [14:09:00]New connection [14:09:00]New thread 3067362660 created [14:09:00]Thread 3067219300 joined [14:09:00]Waiting for new connection... [14:09:00] Sock 7.Parse request [14:09:00]Sock 7.Check first char [14:09:00]Sock 7.First char is OK [14:09:00]request: POST /json_proto HTTP/1.0 [14:09:00]Method: POST [14:09:00]URL: /json_proto [14:09:00]Method is POST - this is cgi request [14:09:00]url: /json_proto [14:09:00]query_string will be loaded in cgi processing [14:09:00]execute_cgi json_proto POST (null) [14:09:00]execute_cgi path=json_proto method=POST [14:09:00]POST find Content-Length [14:09:00]Host: 172.17.44.195:8080 [14:09:00]Content-Length: 680 [14:09:00]Content-Type: application/json [14:09:00] [14:09:00]POST finish read [14:09:00]Found Content-Length = 680 [14:09:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963030", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 90.560, "sum" : 6900.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6900.00, "total" : 6900.00, "payments": [ { "type": 0, "sum" : 6900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:09:00]execute_script... [14:09: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)1963030", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 90.560, "sum" : 6900.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6900.00, "total" : 6900.00, "payments": [ { "type": 0, "sum" : 6900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:09:00]POST & json_proto [14:09:00]process_json_proto [14:09:00]json parsed OK: [14:09:00]protocol is kg_v1.0 [14:09:00]action value=close_receipt [14:09:00]process_action close_receipt [14:09:00]cmd_close_receipt [14:09:00]MH_GetDate [14:09:00]Write to MH i2c: F0 00 00 6B 03 5D [14:09:00]Write i2c OK [14:09:00]MH_I2C_Read... [14:09:00]Read from MH i2c: F0 [14:09:00]MH_I2C_Read... [14:09:00]Read from MH i2c: F0 09 00 [14:09:00]MH_I2C_Read... [14:09:00]Read from MH i2c: F0 09 00 6B 03 00 FD 0E 15 67 82 C9 CF 66 6D [14:09:00]GetLastDocTimeStamp 1729433323 [14:09:00]current date 1729433341 [14:09:00]FM_GetShiftState [14:09:00]SAM_PROTO_GetShiftState [14:09:00]wFMCommunicate request_size=4 [14:09:00]MH_SAM_APDU [14:09:00]CAPDU: 80 13 01 00 [14:09:00]Write to MH i2c: E2 08 00 6C 03 80 13 01 00 00 00 00 00 EC [14:09:00]Write i2c OK [14:09:00]MH_I2C_Read... [14:09:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:09:00]Read from MH i2c: E2 [14:09:00]MH_I2C_Read... [14:09:00]Read from MH i2c: E2 0E 00 [14:09:00]MH_I2C_Read... [14:09:00]Read from MH i2c: E2 0E 00 6C 03 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 06 [14:09:00]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [14:09:00]wFMCommunicate OK [14:09:00]SAM_PROTO_GetShiftState done [14:09:00]FM_GetShiftState done [14:09:00]opened in 1729383750 [14:09:00]opened+sec_in_day 1729470150 [14:09:00]quantity*price = 690067 [14:09:00]sum+1 = 690068 [14:09:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.67 ИТОГО: 6900.00 Внесено: 6900.00 СДАЧА: 0.00 НСП 1% : 61.07 НДС 12% : 732.81 Наличными: 6900.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 353 20.10.2024 14:09 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227505 ФПД: 111320197399380 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T140901&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227505&fm=111320197399380&tin=02508201610067®Number=0000000000091685&sum=690000 [14:09:02]StoreToDocumentArchive [14:09:02]shift 533 fd 227505 [14:09:02]save to /storage/0533/doc_00227505 [14:09:02]save last doc name /storage/0533/doc_00227505 to /storage/kkm_last_doc_name [14:09:02]save OK [14:09:02]Clear old archive folders... [14:09:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:09:02]tlvbuf is 00D85040 [14:09:02]SAM_PROTO_ClearQueue [14:09:02]wFMCommunicate request_size=4 [14:09:02]MH_SAM_APDU [14:09:02]CAPDU: 80 09 00 00 [14:09:02]Write to MH i2c: E2 08 00 79 03 80 09 00 00 00 00 00 00 EE [14:09:02]Write i2c OK [14:09:02]MH_I2C_Read... [14:09:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:09:02]Read from MH i2c: E2 [14:09:02]MH_I2C_Read... [14:09:02]Read from MH i2c: E2 03 00 [14:09:02]MH_I2C_Read... [14:09:02]Read from MH i2c: E2 03 00 79 03 00 90 00 F0 [14:09:02]RAPDU: 90 00 [14:09:02]wFMCommunicate OK [14:09:02]SAM_PROTO_ClearQueue done [14:09:02]KKMCreateOFDPacket [14:09:02]OFDProtocolAddRootSTLVToBuf [14:09:02]FM_MakeSignedData [14:09:02]FM_MakeSignedData [14:09:02]SAM_PROTO_SignData [14:09:02]wFMCommunicate request_size=4 [14:09:02]MH_SAM_APDU [14:09:02]CAPDU: 80 0D 01 02 [14:09:02]Write to MH i2c: E2 08 00 7A 03 80 0D 01 02 00 00 00 00 F6 [14:09:02]Write i2c OK [14:09:02]MH_I2C_Read... [14:09:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:09:02]Read from MH i2c: E2 [14:09:02]MH_I2C_Read... [14:09:02]Read from MH i2c: E2 03 00 [14:09:02]MH_I2C_Read... [14:09:02]Read from MH i2c: E2 03 00 7A 03 00 90 00 F1 [14:09:02]RAPDU: 90 00 [14:09:02]wFMCommunicate OK [14:09:02]wFMCommunicate request_size=255 [14:09:02]MH_SAM_APDU [14:09:02]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C0 61 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 93 87 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 87 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 17 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 1E 01 00 00 00 07 04 06 00 50 87 0A 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 01 00 00 F4 03 04 00 FD 0E 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B1 78 03 00 35 04 06 00 65 3E C0 D2 [14:09:02]Write to MH i2c: E2 02 01 7B 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 C0 61 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 93 87 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 87 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 17 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 1E 01 00 00 00 07 04 06 00 50 87 0A 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 01 00 00 F4 03 04 00 FD 0E 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B1 78 03 00 35 04 06 00 65 3E C0 D2 00 00 F7 [14:09:02]Write i2c OK [14:09:02]MH_I2C_Read... [14:09:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:09:02]Read from MH i2c: E2 [14:09:02]MH_I2C_Read... [14:09:02]Read from MH i2c: E2 03 00 [14:09:02]MH_I2C_Read... [14:09:02]Read from MH i2c: E2 03 00 7B 03 00 90 00 F2 [14:09:02]RAPDU: 90 00 [14:09:02]wFMCommunicate OK [14:09:02]wFMCommunicate request_size=7 [14:09:02]MH_SAM_APDU [14:09:02]CAPDU: 80 0D 02 02 02 83 54 [14:09:02]Write to MH i2c: E2 0A 00 7C 03 80 0D 02 02 02 00 83 54 00 00 D4 [14:09:02]Write i2c OK [14:09:02]MH_I2C_Read... [14:09:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:09:02]Read from MH i2c: E2 [14:09:02]MH_I2C_Read... [14:09:02]Read from MH i2c: E2 03 00 [14:09:02]MH_I2C_Read... [14:09:02]Read from MH i2c: E2 03 00 7C 03 00 90 00 F3 [14:09:02]RAPDU: 90 00 [14:09:02]wFMCommunicate OK [14:09:02]wFMCommunicate request_size=4 [14:09:02]MH_SAM_APDU [14:09:02]CAPDU: 80 0D 03 02 [14:09:02]Write to MH i2c: E2 08 00 7D 03 80 0D 03 02 00 00 00 00 FB [14:09:02]Write i2c OK [14:09:02]MH_I2C_Read... [14:09:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:09:02]Read from MH i2c: E2 [14:09:02]MH_I2C_Read... [14:09:02]Read from MH i2c: E2 0B 00 [14:09:02]MH_I2C_Read... [14:09:02]Read from MH i2c: E2 0B 00 7D 03 00 E2 FB F4 82 C2 7B 7D 67 90 00 70 [14:09:02]RAPDU: E2 FB F4 82 C2 7B 7D 67 90 00 [14:09:02]wFMCommunicate OK [14:09:02]SAM_PROTO_SignData done [14:09:02]FM_MakeSignedData done [14:09:02]CreateOFDProtocolMessage [14:09:02]wFMCommunicate request_size=4 [14:09:02]MH_SAM_APDU [14:09:02]CAPDU: 80 11 00 00 [14:09:02]Write to MH i2c: E2 08 00 7E 03 80 11 00 00 00 00 00 00 FB [14:09:02]Write i2c OK [14:09:02]MH_I2C_Read... [14:09:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:09:02]Read from MH i2c: E2 [14:09:02]MH_I2C_Read... [14:09:02]Read from MH i2c: E2 17 00 [14:09:02]MH_I2C_Read... [14:09:02]Read from MH i2c: E2 17 00 7E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 52 [14:09:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:09:02]wFMCommunicate OK [14:09:02]CreateOFDProtocolMessage done [14:09:02]OFDSenderStorePacket 227505 [14:09:02]StoreOFDPacket docnum=227505 [14:09:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 54 01 04 01 98 FC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C0 61 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 93 87 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 87 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 17 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 1E 01 00 00 00 07 04 06 00 50 87 0A 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 01 00 00 F4 03 04 00 FD 0E 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B1 78 03 00 35 04 06 00 65 3E C0 D2 83 54 E2 FB F4 82 C2 7B 7D 67 [14:09:02]CheckFolder [14:09:02]dirname=/storage/ofd_packets [14:09:02]CheckFolder done [14:09:02]ProducePacketName [14:09:02]name=ofd_packets/00227505 [14:09:02]NVStorageSaveData ofd_packets/00227505 [14:09:02]File name is /storage/ofd_packets/00227505 [14:09:02]Write 298 bytes [14:09:02]NVStorageSaveData done [14:09:02]OFDSenderStorePacket done [14:09:02]KKMCreateOFDPacket done [14:09:02]NVStorageSaveData kkm_last_timestamp [14:09:02]File name is /storage/kkm_last_timestamp [14:09:02]Write 4 bytes [14:09:02]NVStorageSaveData done [14:09:02]ExternCall_PrintAddStr [14:09:02]wPrintStart [14:09:02]Write to MH i2c: 01 00 00 7F 03 82 [14:09:02]Write i2c OK [14:09:02]MH_I2C_Read... [14:09:02]Read from MH i2c: 01 [14:09:02]MH_I2C_Read... [14:09:02]Read from MH i2c: 01 07 00 [14:09:02]MH_I2C_Read... [14:09:02]Read from MH i2c: 01 07 00 7F 03 00 00 00 00 00 FF 0F 97 [14:09:02]RasterBufferAndPrint [14:09:02]line Счет N : (1)1963030 [14:09:02]line ИНН: 02508201610067 [14:09:02]line Контрольно-Кассовый Чек [14:09:02]line ПРОДАЖА [14:09:02]line ТРК (МРК, ГНК) : 11 [14:09:02]line Товар: 2710194210 [14:09:02]line ДТ-К-5 [14:09:02]line 90.560 * 76.20 [14:09:02]line = 6900.67 [14:09:02]line НДС 12% НСП 1% [14:09:02]line > о реализуемом товаре [14:09:02]line ОКРУГЛЕНИЕ: -0.67 [14:09:02]line ИТОГО: 6900.00 [14:09:02]line Внесено: 6900.00 [14:09:02]line СДАЧА: 0.00 [14:09:02]line НСП 1% : 61.07 [14:09:02]line НДС 12% : 732.81 [14:09:02]line Наличными: 6900.00 [14:09:02]line Безнал.: 0.00 [14:09:02]line Место: АЗС № 133 "Партнер Нефть" [14:09:02]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [14:09:02]line СНО: Общий режим [14:09:02]line Чек 353 20.10.2024 14:09 [14:09:02]line Смена: 533 ФФД: 1.0 [14:09:02]line ЗНМ: 0300000091 [14:09:02]line РНМ: 0000000000091685 [14:09:02]line Версия ККМ: 001 [14:09:02]line ФМ: 0000000000871839 [14:09:02]line ФД: 227505 [14:09:02]line ФПД: 111320197399380 [14:09:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T140901&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227505&fm=111320197399380&tin=02508201610067®Number=0000000000091685&sum=690000 [14:09:02]OFD Sender: Processing packet 227505 [packets to send 38, broken 37] [14:09:02]ProducePacketName [14:09:02]name=ofd_packets/00227505 [14:09:02]OFD Sender: To server: pG, [14:09:02]CommunicateWithHost lk.salyk.kg:30040 [14:09:02]ConnectInit lk.salyk.kg [14:09:02]written 0, free lines is 4095 [14:09:03]Write to MH i2c: 01 00 00 A9 03 AC [14:09:03]Write i2c OK [14:09:03]MH_I2C_Read... [14:09:03]Read from MH i2c: 01 [14:09:03]MH_I2C_Read... [14:09:03]Read from MH i2c: 01 07 00 [14:09:03]MH_I2C_Read... [14:09:03]Read from MH i2c: 01 07 00 A9 03 00 00 00 00 00 0D 0D CD [14:09:03]RasterBufferAndPrint [14:09:03]line [14:09:03]line [14:09:03]line [14:09:03]line [14:09:03]line [14:09:03]written 0, free lines is 3347 [14:09:03]process_action close_receipt done [14:09:03]requested_data is exist [14:09:03]produce_requested_data [14:09:03]requested_item fm.sn is exist - process it [14:09:03]wFMCommunicate request_size=4 [14:09:03]MH_SAM_APDU [14:09:03]CAPDU: 80 11 00 00 [14:09:03]Write to MH i2c: E2 08 00 B0 03 80 11 00 00 00 00 00 00 2D [14:09:03]Write i2c OK [14:09:03]MH_I2C_Read... [14:09:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:09:03]Read from MH i2c: E2 [14:09:03]MH_I2C_Read... [14:09:03]Read from MH i2c: E2 17 00 [14:09:03]MH_I2C_Read... [14:09:03]Read from MH i2c: E2 17 00 B0 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 84 [14:09:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:09:03]wFMCommunicate OK [14:09:03]requested_item fd.num is exist - process it [14:09:03]SAM_PROTO_GetFieldsCounters [14:09:03]wFMCommunicate request_size=4 [14:09:03]MH_SAM_APDU [14:09:03]CAPDU: 80 13 00 00 [14:09:03]Write to MH i2c: E2 08 00 B1 03 80 13 00 00 00 00 00 00 30 [14:09:03]Write i2c OK [14:09:03]MH_I2C_Read... [14:09:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:09:03]Read from MH i2c: E2 [14:09:03]MH_I2C_Read... [14:09:03]Read from MH i2c: E2 62 00 [14:09:03]MH_I2C_Read... [14:09:03]Read from MH i2c: E2 62 00 B1 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 B1 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 61 01 00 00 5E 04 04 00 61 01 00 00 57 04 04 00 62 01 00 00 19 04 04 00 00 00 00 00 90 00 C2 [14:09: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 B1 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 61 01 00 00 5E 04 04 00 61 01 00 00 57 04 04 00 62 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:09:03]wFMCommunicate OK [14:09:03]SAM_PROTO_GetFieldsCounters done [14:09:03]requested_item shift.num is exist - process it [14:09:03]requested_item shift.opened is exist - process it [14:09:03]req_shift_opened [14:09:03]FM_GetShiftState [14:09:03]SAM_PROTO_GetShiftState [14:09:03]wFMCommunicate request_size=4 [14:09:03]MH_SAM_APDU [14:09:03]CAPDU: 80 13 01 00 [14:09:03]Write to MH i2c: E2 08 00 B2 03 80 13 01 00 00 00 00 00 32 [14:09:03]Write i2c OK [14:09:03]MH_I2C_Read... [14:09:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:09:03]Read from MH i2c: E2 [14:09:03]MH_I2C_Read... [14:09:03]Read from MH i2c: E2 0E 00 [14:09:03]MH_I2C_Read... [14:09:03]Read from MH i2c: E2 0E 00 B2 03 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 4C [14:09:03]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [14:09:03]wFMCommunicate OK [14:09:03]SAM_PROTO_GetShiftState done [14:09:03]FM_GetShiftState done [14:09:03]req_shift_opened done [14:09:03]requested_item shift.open_date is exist - process it [14:09:03]req_shift_open_date [14:09:03]req_shift_open_date done [14:09:03]produce_requested_data done [14:09:03]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227505,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [14:09:03]process_action_free close_receipt [14:09:03]json_value_free [14:09:03]json_value_free done [14:09:03]process_json_proto returns [14:09:03]Send response to host [14:09:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227505,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [14:09:03]free response buf [14:09:03]execute_script done [14:09:03]execute_script returns [14:09:03]free content buf [14:09:03]Sock 7.Close socket [14:09:03]Sock 7.Thread stoped [14:09:04]accept exits with 9 [14:09:04]New connection [14:09:04]New thread 3067219300 created [14:09:04]Thread 3067362660 joined [14:09:04]Waiting for new connection... [14:09:04] Sock 9.Parse request [14:09:04]Sock 9.Check first char [14:09:04]Sock 9.First char is OK [14:09:04]request: POST /json_proto HTTP/1.0 [14:09:04]Method: POST [14:09:04]URL: /json_proto [14:09:04]Method is POST - this is cgi request [14:09:04]url: /json_proto [14:09:04]query_string will be loaded in cgi processing [14:09:04]execute_cgi json_proto POST (null) [14:09:04]execute_cgi path=json_proto method=POST [14:09:04]POST find Content-Length [14:09:04]Host: 172.17.44.195:8080 [14:09:04]Content-Length: 770 [14:09:04]Content-Type: application/json [14:09:04] [14:09:04]POST finish read [14:09:04]Found Content-Length = 770 [14:09:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963031", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:09:04]execute_script... [14:09: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)1963031", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:09:04]POST & json_proto [14:09:04]process_json_proto [14:09:04]json parsed OK: [14:09:04]protocol is kg_v1.0 [14:09:04]action value=close_receipt [14:09:04]process_action close_receipt [14:09:04]cmd_close_receipt [14:09:04]MH_GetDate [14:09:04]Write to MH i2c: F0 00 00 B3 03 A5 [14:09:04]Write i2c OK [14:09:04]MH_I2C_Read... [14:09:04]Read from MH i2c: F0 [14:09:04]MH_I2C_Read... [14:09:04]Read from MH i2c: F0 09 00 [14:09:04]MH_I2C_Read... [14:09:04]Read from MH i2c: F0 09 00 B3 03 00 01 0F 15 67 82 C9 CF 66 BA [14:09:04]GetLastDocTimeStamp 1729433341 [14:09:04]current date 1729433345 [14:09:04]FM_GetShiftState [14:09:04]SAM_PROTO_GetShiftState [14:09:04]wFMCommunicate request_size=4 [14:09:04]MH_SAM_APDU [14:09:04]CAPDU: 80 13 01 00 [14:09:04]Write to MH i2c: E2 08 00 B4 03 80 13 01 00 00 00 00 00 34 [14:09:04]Write i2c OK [14:09:04]MH_I2C_Read... [14:09:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:09:04]Read from MH i2c: E2 [14:09:04]MH_I2C_Read... [14:09:04]Read from MH i2c: E2 0E 00 [14:09:04]MH_I2C_Read... [14:09:04]Read from MH i2c: E2 0E 00 B4 03 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 4E [14:09:04]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [14:09:04]wFMCommunicate OK [14:09:04]SAM_PROTO_GetShiftState done [14:09:04]FM_GetShiftState done [14:09:04]opened in 1729383750 [14:09:04]opened+sec_in_day 1729470150 [14:09:04]quantity*price = 150056 [14:09:04]sum+1 = 150058 [14:09:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.57 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 0.00 Безнал.: 1500.57 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 354 20.10.2024 14:09 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 227506 ФПД: 178736542336140 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T140905&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227506&fm=178736542336140&tin=02508201610067®Number=0000000000091685&sum=150057 [14:09:05]StoreToDocumentArchive [14:09:05]shift 533 fd 227506 [14:09:05]save to /storage/0533/doc_00227506 [14:09:05]save last doc name /storage/0533/doc_00227506 to /storage/kkm_last_doc_name [14:09:05]save OK [14:09:05]Clear old archive folders... [14:09:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:09:05]tlvbuf is 00D9AA20 [14:09:05]SAM_PROTO_ClearQueue [14:09:05]wFMCommunicate request_size=4 [14:09:05]MH_SAM_APDU [14:09:05]CAPDU: 80 09 00 00 [14:09:05]Write to MH i2c: E2 08 00 C1 03 80 09 00 00 00 00 00 00 36 [14:09:05]Write i2c OK [14:09:05]MH_I2C_Read... [14:09:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:09:05]Read from MH i2c: E2 [14:09:05]MH_I2C_Read... [14:09:05]Read from MH i2c: E2 03 00 [14:09:05]MH_I2C_Read... [14:09:05]Read from MH i2c: E2 03 00 C1 03 00 90 00 38 [14:09:05]RAPDU: 90 00 [14:09:05]wFMCommunicate OK [14:09:05]SAM_PROTO_ClearQueue done [14:09:05]KKMCreateOFDPacket [14:09:05]OFDProtocolAddRootSTLVToBuf [14:09:05]FM_MakeSignedData [14:09:05]FM_MakeSignedData [14:09:05]SAM_PROTO_SignData [14:09:05]wFMCommunicate request_size=4 [14:09:05]MH_SAM_APDU [14:09:05]CAPDU: 80 0D 01 02 [14:09:05]Write to MH i2c: E2 08 00 C2 03 80 0D 01 02 00 00 00 00 3E [14:09:05]Write i2c OK [14:09:05]MH_I2C_Read... [14:09:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:09:05]Read from MH i2c: E2 [14:09:05]MH_I2C_Read... [14:09:05]Read from MH i2c: E2 03 00 [14:09:05]MH_I2C_Read... [14:09:05]Read from MH i2c: E2 03 00 C2 03 00 90 00 39 [14:09:05]RAPDU: 90 00 [14:09:05]wFMCommunicate OK [14:09:05]wFMCommunicate request_size=255 [14:09:05]MH_SAM_APDU [14:09:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 01 0F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B2 78 03 00 35 04 06 00 A2 [14:09:05]Write to MH i2c: E2 02 01 C3 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 01 0F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B2 78 03 00 35 04 06 00 A2 00 00 67 [14:09:05]Write i2c OK [14:09:05]MH_I2C_Read... [14:09:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:09:06]Read from MH i2c: E2 [14:09:06]MH_I2C_Read... [14:09:06]Read from MH i2c: E2 03 00 [14:09:06]MH_I2C_Read... [14:09:06]Read from MH i2c: E2 03 00 C3 03 00 90 00 3A [14:09:06]RAPDU: 90 00 [14:09:06]wFMCommunicate OK [14:09:06]wFMCommunicate request_size=10 [14:09:06]MH_SAM_APDU [14:09:06]CAPDU: 80 0D 02 02 05 8F 58 1D 44 8C [14:09:06]Write to MH i2c: E2 0D 00 C4 03 80 0D 02 02 05 00 8F 58 1D 44 8C 00 00 1F [14:09:06]Write i2c OK [14:09:06]MH_I2C_Read... [14:09:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:09:06]Read from MH i2c: E2 [14:09:06]MH_I2C_Read... [14:09:06]Read from MH i2c: E2 03 00 [14:09:06]MH_I2C_Read... [14:09:06]Read from MH i2c: E2 03 00 C4 03 00 90 00 3B [14:09:06]RAPDU: 90 00 [14:09:06]wFMCommunicate OK [14:09:06]wFMCommunicate request_size=4 [14:09:06]MH_SAM_APDU [14:09:06]CAPDU: 80 0D 03 02 [14:09:06]Write to MH i2c: E2 08 00 C5 03 80 0D 03 02 00 00 00 00 43 [14:09:06]Write i2c OK [14:09:06]MH_I2C_Read... [14:09:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:09:06]Read from MH i2c: E2 [14:09:06]MH_I2C_Read... [14:09:06]Read from MH i2c: E2 0B 00 [14:09:06]MH_I2C_Read... [14:09:06]Read from MH i2c: E2 0B 00 C5 03 00 68 81 EA FA 0F B8 D7 57 90 00 06 [14:09:06]RAPDU: 68 81 EA FA 0F B8 D7 57 90 00 [14:09:06]wFMCommunicate OK [14:09:06]SAM_PROTO_SignData done [14:09:06]FM_MakeSignedData done [14:09:06]CreateOFDProtocolMessage [14:09:06]wFMCommunicate request_size=4 [14:09:06]MH_SAM_APDU [14:09:06]CAPDU: 80 11 00 00 [14:09:06]Write to MH i2c: E2 08 00 C6 03 80 11 00 00 00 00 00 00 43 [14:09:06]Write i2c OK [14:09:06]MH_I2C_Read... [14:09:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:09:06]Read from MH i2c: E2 [14:09:06]MH_I2C_Read... [14:09:06]Read from MH i2c: E2 17 00 [14:09:06]MH_I2C_Read... [14:09:06]Read from MH i2c: E2 17 00 C6 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 9A [14:09:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:09:06]wFMCommunicate OK [14:09:06]CreateOFDProtocolMessage done [14:09:06]OFDSenderStorePacket 227506 [14:09:06]StoreOFDPacket docnum=227506 [14:09:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 DD 00 07 01 14 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 01 0F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B2 78 03 00 35 04 06 00 A2 8F 58 1D 44 8C 68 81 EA FA 0F B8 D7 57 [14:09:06]CheckFolder [14:09:06]dirname=/storage/ofd_packets [14:09:06]CheckFolder done [14:09:06]ProducePacketName [14:09:06]name=ofd_packets/00227506 [14:09:06]NVStorageSaveData ofd_packets/00227506 [14:09:06]File name is /storage/ofd_packets/00227506 [14:09:06]Write 301 bytes [14:09:06]NVStorageSaveData done [14:09:06]OFDSenderStorePacket done [14:09:06]KKMCreateOFDPacket done [14:09:06]NVStorageSaveData kkm_last_timestamp [14:09:06]File name is /storage/kkm_last_timestamp [14:09:06]Write 4 bytes [14:09:06]NVStorageSaveData done [14:09:06]ExternCall_PrintAddStr [14:09:06]wPrintStart [14:09:06]Write to MH i2c: 01 00 00 C7 03 CA [14:09:06]Write i2c OK [14:09:06]MH_I2C_Read... [14:09:06]Read from MH i2c: 01 [14:09:06]MH_I2C_Read... [14:09:06]Read from MH i2c: 01 07 00 [14:09:06]MH_I2C_Read... [14:09:06]Read from MH i2c: 01 07 00 C7 03 00 00 00 00 00 FF 0F DF [14:09:06]RasterBufferAndPrint [14:09:06]line Счет N : (1)1963031 [14:09:06]line ИНН: 02508201610067 [14:09:06]line Контрольно-Кассовый Чек [14:09:06]line ПРОДАЖА [14:09:06]line ТРК (МРК, ГНК) : 43 [14:09:06]line Товар: 2710124130 [14:09:06]line Аи-92-К-5 [14:09:06]line 22.430 * 66.90 [14:09:06]line = 1500.57 [14:09:06]line НДС 12% НСП 1% [14:09:06]line > о реализуемом товаре [14:09:06]line ИТОГО: 1500.57 [14:09:06]line НСП 1% : 13.28 [14:09:06]line НДС 12% : 159.35 [14:09:06]line Наличными: 0.00 [14:09:06]line Безнал.: 1500.57 [14:09:06]line Место: АЗС № 133 "Партнер Нефть" [14:09:06]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [14:09:06]line СНО: Общий режим [14:09:06]line Чек 354 20.10.2024 14:09 [14:09:06]line Смена: 533 ФФД: 1.0 [14:09:06]line ЗНМ: 0300000091 [14:09:06]line РНМ: 0000000000091685 [14:09:06]line Версия ККМ: 001 [14:09:06]line Платежная система: Mbank [14:09:06]line ФМ: 0000000000871839 [14:09:06]line ФД: 227506 [14:09:06]line ФПД: 178736542336140 [14:09:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T140905&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227506&fm=178736542336140&tin=02508201610067®Number=0000000000091685&sum=150057 [14:09:06]written 0, free lines is 4095 [14:09:06]Write to MH i2c: 01 00 00 EF 03 F2 [14:09:06]Write i2c OK [14:09:06]MH_I2C_Read... [14:09:06]Read from MH i2c: 01 [14:09:06]MH_I2C_Read... [14:09:06]Read from MH i2c: 01 07 00 [14:09:06]MH_I2C_Read... [14:09:06]Read from MH i2c: 01 07 00 EF 03 00 00 00 00 00 2D 0D 33 [14:09:07]RasterBufferAndPrint [14:09:07]line [14:09:07]line [14:09:07]line [14:09:07]line [14:09:07]line [14:09:07]written 0, free lines is 3383 [14:09:07]process_action close_receipt done [14:09:07]requested_data is exist [14:09:07]produce_requested_data [14:09:07]requested_item fm.sn is exist - process it [14:09:07]wFMCommunicate request_size=4 [14:09:07]MH_SAM_APDU [14:09:07]CAPDU: 80 11 00 00 [14:09:07]Write to MH i2c: E2 08 00 F6 03 80 11 00 00 00 00 00 00 73 [14:09:07]Write i2c OK [14:09:07]MH_I2C_Read... [14:09:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:09:07]Read from MH i2c: E2 [14:09:07]MH_I2C_Read... [14:09:07]Read from MH i2c: E2 17 00 [14:09:07]MH_I2C_Read... [14:09:07]Read from MH i2c: E2 17 00 F6 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 CA [14:09:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:09:07]wFMCommunicate OK [14:09:07]requested_item fd.num is exist - process it [14:09:07]SAM_PROTO_GetFieldsCounters [14:09:07]wFMCommunicate request_size=4 [14:09:07]MH_SAM_APDU [14:09:07]CAPDU: 80 13 00 00 [14:09:07]Write to MH i2c: E2 08 00 F7 03 80 13 00 00 00 00 00 00 76 [14:09:07]Write i2c OK [14:09:07]MH_I2C_Read... [14:09:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:09:07]Read from MH i2c: E2 [14:09:07]MH_I2C_Read... [14:09:07]Read from MH i2c: E2 62 00 [14:09:07]MH_I2C_Read... [14:09:07]Read from MH i2c: E2 62 00 F7 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 B2 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 63 01 00 00 19 04 04 00 00 00 00 00 90 00 0C [14:09: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 B2 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 63 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:09:07]wFMCommunicate OK [14:09:07]SAM_PROTO_GetFieldsCounters done [14:09:07]requested_item shift.num is exist - process it [14:09:07]requested_item shift.opened is exist - process it [14:09:07]req_shift_opened [14:09:07]FM_GetShiftState [14:09:07]SAM_PROTO_GetShiftState [14:09:07]wFMCommunicate request_size=4 [14:09:07]MH_SAM_APDU [14:09:07]CAPDU: 80 13 01 00 [14:09:07]Write to MH i2c: E2 08 00 F8 03 80 13 01 00 00 00 00 00 78 [14:09:07]Write i2c OK [14:09:07]MH_I2C_Read... [14:09:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:09:07]Read from MH i2c: E2 [14:09:07]MH_I2C_Read... [14:09:07]Read from MH i2c: E2 0E 00 [14:09:07]MH_I2C_Read... [14:09:07]Read from MH i2c: E2 0E 00 F8 03 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 92 [14:09:07]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [14:09:07]wFMCommunicate OK [14:09:07]SAM_PROTO_GetShiftState done [14:09:07]FM_GetShiftState done [14:09:07]req_shift_opened done [14:09:07]requested_item shift.open_date is exist - process it [14:09:07]req_shift_open_date [14:09:07]req_shift_open_date done [14:09:07]produce_requested_data done [14:09:07]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227506,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [14:09:07]process_action_free close_receipt [14:09:07]json_value_free [14:09:07]json_value_free done [14:09:07]process_json_proto returns [14:09:07]Send response to host [14:09:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227506,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [14:09:07]free response buf [14:09:07]execute_script done [14:09:07]execute_script returns [14:09:07]free content buf [14:09:07]Sock 9.Close socket [14:09:07]Sock 9.Thread stoped [14:11:11]accept exits with 7 [14:11:11]New connection [14:11:11]New thread 3067362660 created [14:11:11]Thread 3067219300 joined [14:11:11]Waiting for new connection... [14:11:11] Sock 7.Parse request [14:11:11]Sock 7.Check first char [14:11:11]Sock 7.First char is OK [14:11:11]request: POST /json_proto HTTP/1.0 [14:11:11]Method: POST [14:11:11]URL: /json_proto [14:11:11]Method is POST - this is cgi request [14:11:11]url: /json_proto [14:11:11]query_string will be loaded in cgi processing [14:11:11]execute_cgi json_proto POST (null) [14:11:11]execute_cgi path=json_proto method=POST [14:11:11]POST find Content-Length [14:11:11]Host: 172.17.44.195:8080 [14:11:11]Content-Length: 679 [14:11:11]Content-Type: application/json [14:11:11] [14:11:11]POST finish read [14:11:11]Found Content-Length = 679 [14:11:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963032", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 13.310, "sum" : 890.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 890.00, "total" : 890.00, "payments": [ { "type": 0, "sum" : 890.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:11:11]execute_script... [14:11: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)1963032", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 13.310, "sum" : 890.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 890.00, "total" : 890.00, "payments": [ { "type": 0, "sum" : 890.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:11:11]POST & json_proto [14:11:11]process_json_proto [14:11:11]json parsed OK: [14:11:11]protocol is kg_v1.0 [14:11:11]action value=close_receipt [14:11:11]process_action close_receipt [14:11:11]cmd_close_receipt [14:11:11]MH_GetDate [14:11:11]Write to MH i2c: F0 00 00 F9 03 EB [14:11:11]Write i2c OK [14:11:11]MH_I2C_Read... [14:11:11]Read from MH i2c: F0 [14:11:11]MH_I2C_Read... [14:11:11]Read from MH i2c: F0 09 00 [14:11:11]MH_I2C_Read... [14:11:11]Read from MH i2c: F0 09 00 F9 03 00 7F 0F 15 67 82 C9 CF 66 7E [14:11:11]GetLastDocTimeStamp 1729433345 [14:11:11]current date 1729433471 [14:11:11]FM_GetShiftState [14:11:11]SAM_PROTO_GetShiftState [14:11:11]wFMCommunicate request_size=4 [14:11:11]MH_SAM_APDU [14:11:11]CAPDU: 80 13 01 00 [14:11:11]Write to MH i2c: E2 08 00 FA 03 80 13 01 00 00 00 00 00 7A [14:11:11]Write i2c OK [14:11:11]MH_I2C_Read... [14:11:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:11]Read from MH i2c: E2 [14:11:11]MH_I2C_Read... [14:11:11]Read from MH i2c: E2 0E 00 [14:11:11]MH_I2C_Read... [14:11:11]Read from MH i2c: E2 0E 00 FA 03 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 94 [14:11:11]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [14:11:11]wFMCommunicate OK [14:11:11]SAM_PROTO_GetShiftState done [14:11:11]FM_GetShiftState done [14:11:11]opened in 1729383750 [14:11:11]opened+sec_in_day 1729470150 [14:11:11]quantity*price = 89043 [14:11:11]sum+1 = 89045 [14:11:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 890.00 Внесено: 890.00 СДАЧА: 0.00 НСП 1% : 7.88 НДС 12% : 94.56 Наличными: 890.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 355 20.10.2024 14:11 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227507 ФПД: 256959536243076 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T141111&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227507&fm=256959536243076&tin=02508201610067®Number=0000000000091685&sum=89000 [14:11:12]StoreToDocumentArchive [14:11:12]shift 533 fd 227507 [14:11:12]save to /storage/0533/doc_00227507 [14:11:12]save last doc name /storage/0533/doc_00227507 to /storage/kkm_last_doc_name [14:11:12]save OK [14:11:12]Clear old archive folders... [14:11:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:11:12]tlvbuf is 00D7AC50 [14:11:12]SAM_PROTO_ClearQueue [14:11:12]wFMCommunicate request_size=4 [14:11:12]MH_SAM_APDU [14:11:12]CAPDU: 80 09 00 00 [14:11:12]Write to MH i2c: E2 08 00 07 04 80 09 00 00 00 00 00 00 7D [14:11:12]Write i2c OK [14:11:12]MH_I2C_Read... [14:11:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:11:12]Read from MH i2c: E2 [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: E2 03 00 [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: E2 03 00 07 04 00 90 00 7F [14:11:12]RAPDU: 90 00 [14:11:12]wFMCommunicate OK [14:11:12]SAM_PROTO_ClearQueue done [14:11:12]KKMCreateOFDPacket [14:11:12]OFDProtocolAddRootSTLVToBuf [14:11:12]FM_MakeSignedData [14:11:12]FM_MakeSignedData [14:11:12]SAM_PROTO_SignData [14:11:12]wFMCommunicate request_size=4 [14:11:12]MH_SAM_APDU [14:11:12]CAPDU: 80 0D 01 02 [14:11:12]Write to MH i2c: E2 08 00 08 04 80 0D 01 02 00 00 00 00 85 [14:11:12]Write i2c OK [14:11:12]MH_I2C_Read... [14:11:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:11:12]Read from MH i2c: E2 [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: E2 03 00 [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: E2 03 00 08 04 00 90 00 80 [14:11:12]RAPDU: 90 00 [14:11:12]wFMCommunicate OK [14:11:12]wFMCommunicate request_size=255 [14:11:12]MH_SAM_APDU [14:11:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 33 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D4 5B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 5B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 24 00 00 00 00 07 04 06 00 A8 5B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 01 00 00 F4 03 04 00 7F 0F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B3 78 03 00 35 04 06 00 E9 [14:11:12]Write to MH i2c: E2 02 01 09 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 33 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D4 5B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 5B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 24 00 00 00 00 07 04 06 00 A8 5B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 01 00 00 F4 03 04 00 7F 0F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B3 78 03 00 35 04 06 00 E9 00 00 03 [14:11:12]Write i2c OK [14:11:12]MH_I2C_Read... [14:11:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:12]Read from MH i2c: E2 [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: E2 03 00 [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: E2 03 00 09 04 00 90 00 81 [14:11:12]RAPDU: 90 00 [14:11:12]wFMCommunicate OK [14:11:12]wFMCommunicate request_size=10 [14:11:12]MH_SAM_APDU [14:11:12]CAPDU: 80 0D 02 02 05 B4 0D E1 21 84 [14:11:12]Write to MH i2c: E2 0D 00 0A 04 80 0D 02 02 05 00 B4 0D E1 21 84 00 00 D9 [14:11:12]Write i2c OK [14:11:12]MH_I2C_Read... [14:11:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:12]Read from MH i2c: E2 [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: E2 03 00 [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: E2 03 00 0A 04 00 90 00 82 [14:11:12]RAPDU: 90 00 [14:11:12]wFMCommunicate OK [14:11:12]wFMCommunicate request_size=4 [14:11:12]MH_SAM_APDU [14:11:12]CAPDU: 80 0D 03 02 [14:11:12]Write to MH i2c: E2 08 00 0B 04 80 0D 03 02 00 00 00 00 8A [14:11:12]Write i2c OK [14:11:12]MH_I2C_Read... [14:11:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:11:12]Read from MH i2c: E2 [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: E2 0B 00 [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: E2 0B 00 0B 04 00 DC D5 85 B8 3D 3B C7 50 90 00 08 [14:11:12]RAPDU: DC D5 85 B8 3D 3B C7 50 90 00 [14:11:12]wFMCommunicate OK [14:11:12]SAM_PROTO_SignData done [14:11:12]FM_MakeSignedData done [14:11:12]CreateOFDProtocolMessage [14:11:12]wFMCommunicate request_size=4 [14:11:12]MH_SAM_APDU [14:11:12]CAPDU: 80 11 00 00 [14:11:12]Write to MH i2c: E2 08 00 0C 04 80 11 00 00 00 00 00 00 8A [14:11:12]Write i2c OK [14:11:12]MH_I2C_Read... [14:11:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:12]Read from MH i2c: E2 [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: E2 17 00 [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: E2 17 00 0C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E1 [14:11:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:11:12]wFMCommunicate OK [14:11:12]CreateOFDProtocolMessage done [14:11:12]OFDSenderStorePacket 227507 [14:11:12]StoreOFDPacket docnum=227507 [14:11:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 9A 96 07 01 BF F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 33 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D4 5B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 5B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 24 00 00 00 00 07 04 06 00 A8 5B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 01 00 00 F4 03 04 00 7F 0F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B3 78 03 00 35 04 06 00 E9 B4 0D E1 21 84 DC D5 85 B8 3D 3B C7 50 [14:11:12]CheckFolder [14:11:12]dirname=/storage/ofd_packets [14:11:12]CheckFolder done [14:11:12]ProducePacketName [14:11:12]name=ofd_packets/00227507 [14:11:12]NVStorageSaveData ofd_packets/00227507 [14:11:12]File name is /storage/ofd_packets/00227507 [14:11:12]Write 301 bytes [14:11:12]NVStorageSaveData done [14:11:12]OFDSenderStorePacket done [14:11:12]KKMCreateOFDPacket done [14:11:12]NVStorageSaveData kkm_last_timestamp [14:11:12]File name is /storage/kkm_last_timestamp [14:11:12]Write 4 bytes [14:11:12]NVStorageSaveData done [14:11:12]ExternCall_PrintAddStr [14:11:12]wPrintStart [14:11:12]Write to MH i2c: 01 00 00 0D 04 11 [14:11:12]Write i2c OK [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: 01 [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: 01 07 00 [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: 01 07 00 0D 04 00 00 00 00 00 FF 0F 26 [14:11:12]RasterBufferAndPrint [14:11:12]line Счет N : (1)1963032 [14:11:12]line ИНН: 02508201610067 [14:11:12]line Контрольно-Кассовый Чек [14:11:12]line ПРОДАЖА [14:11:12]line ТРК (МРК, ГНК) : 33 [14:11:12]line Товар: 2710124130 [14:11:12]line Аи-92-К-5 [14:11:12]line 13.310 * 66.90 [14:11:12]line = 890.44 [14:11:12]line НДС 12% НСП 1% [14:11:12]line > о реализуемом товаре [14:11:12]line ОКРУГЛЕНИЕ: -0.44 [14:11:12]line ИТОГО: 890.00 [14:11:12]line Внесено: 890.00 [14:11:12]line СДАЧА: 0.00 [14:11:12]line НСП 1% : 7.88 [14:11:12]line НДС 12% : 94.56 [14:11:12]line Наличными: 890.00 [14:11:12]line Безнал.: 0.00 [14:11:12]line Место: АЗС № 133 "Партнер Нефть" [14:11:12]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [14:11:12]line СНО: Общий режим [14:11:12]line Чек 355 20.10.2024 14:11 [14:11:12]line Смена: 533 ФФД: 1.0 [14:11:12]line ЗНМ: 0300000091 [14:11:12]line РНМ: 0000000000091685 [14:11:12]line Версия ККМ: 001 [14:11:12]line ФМ: 0000000000871839 [14:11:12]line ФД: 227507 [14:11:12]line ФПД: 256959536243076 [14:11:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T141111&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227507&fm=256959536243076&tin=02508201610067®Number=0000000000091685&sum=89000 [14:11:13]written 0, free lines is 4095 [14:11:13]Write to MH i2c: 01 00 00 37 04 3B [14:11:13]Write i2c OK [14:11:13]MH_I2C_Read... [14:11:13]Read from MH i2c: 01 [14:11:13]MH_I2C_Read... [14:11:13]Read from MH i2c: 01 07 00 [14:11:13]MH_I2C_Read... [14:11:13]Read from MH i2c: 01 07 00 37 04 00 00 00 00 00 06 0D 55 [14:11:13]RasterBufferAndPrint [14:11:13]line [14:11:13]line [14:11:13]line [14:11:13]line [14:11:13]line [14:11:13]written 0, free lines is 3340 [14:11:13]process_action close_receipt done [14:11:13]requested_data is exist [14:11:13]produce_requested_data [14:11:13]requested_item fm.sn is exist - process it [14:11:13]wFMCommunicate request_size=4 [14:11:13]MH_SAM_APDU [14:11:13]CAPDU: 80 11 00 00 [14:11:13]Write to MH i2c: E2 08 00 3E 04 80 11 00 00 00 00 00 00 BC [14:11:13]Write i2c OK [14:11:13]MH_I2C_Read... [14:11:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:13]Read from MH i2c: E2 [14:11:13]MH_I2C_Read... [14:11:13]Read from MH i2c: E2 17 00 [14:11:13]MH_I2C_Read... [14:11:13]Read from MH i2c: E2 17 00 3E 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 13 [14:11:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:11:13]wFMCommunicate OK [14:11:13]requested_item fd.num is exist - process it [14:11:13]SAM_PROTO_GetFieldsCounters [14:11:13]wFMCommunicate request_size=4 [14:11:13]MH_SAM_APDU [14:11:13]CAPDU: 80 13 00 00 [14:11:13]Write to MH i2c: E2 08 00 3F 04 80 13 00 00 00 00 00 00 BF [14:11:13]Write i2c OK [14:11:13]MH_I2C_Read... [14:11:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:11:13]Read from MH i2c: E2 [14:11:13]MH_I2C_Read... [14:11:13]Read from MH i2c: E2 62 00 [14:11:13]MH_I2C_Read... [14:11:13]Read from MH i2c: E2 62 00 3F 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 B3 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 63 01 00 00 5E 04 04 00 63 01 00 00 57 04 04 00 64 01 00 00 19 04 04 00 00 00 00 00 90 00 59 [14:11: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 B3 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 63 01 00 00 5E 04 04 00 63 01 00 00 57 04 04 00 64 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:11:13]wFMCommunicate OK [14:11:13]SAM_PROTO_GetFieldsCounters done [14:11:13]requested_item shift.num is exist - process it [14:11:13]requested_item shift.opened is exist - process it [14:11:13]req_shift_opened [14:11:13]FM_GetShiftState [14:11:13]SAM_PROTO_GetShiftState [14:11:13]wFMCommunicate request_size=4 [14:11:13]MH_SAM_APDU [14:11:13]CAPDU: 80 13 01 00 [14:11:13]Write to MH i2c: E2 08 00 40 04 80 13 01 00 00 00 00 00 C1 [14:11:13]Write i2c OK [14:11:13]MH_I2C_Read... [14:11:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:14]Read from MH i2c: E2 [14:11:14]MH_I2C_Read... [14:11:14]Read from MH i2c: E2 0E 00 [14:11:14]MH_I2C_Read... [14:11:14]Read from MH i2c: E2 0E 00 40 04 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 DB [14:11:14]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [14:11:14]wFMCommunicate OK [14:11:14]SAM_PROTO_GetShiftState done [14:11:14]FM_GetShiftState done [14:11:14]req_shift_opened done [14:11:14]requested_item shift.open_date is exist - process it [14:11:14]req_shift_open_date [14:11:14]req_shift_open_date done [14:11:14]produce_requested_data done [14:11:14]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227507,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [14:11:14]process_action_free close_receipt [14:11:14]json_value_free [14:11:14]json_value_free done [14:11:14]process_json_proto returns [14:11:14]Send response to host [14:11:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227507,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [14:11:14]free response buf [14:11:14]execute_script done [14:11:14]execute_script returns [14:11:14]free content buf [14:11:14]Sock 7.Close socket [14:11:14]Sock 7.Thread stoped [14:11:16]ConnectInit Can't connect to host [14:11:16]CommunicateWithHost connect error [14:11:16]CommunicateWithHost err = -1 [14:11:16]OFD Sender: Server communicate error [14:11:16]OFD Sender: Processing packet 227505 [packets to send 40, broken 37] [14:11:16]ProducePacketName [14:11:16]name=ofd_packets/00227505 [14:11:16]OFD Sender: To server: pG, [14:11:16]CommunicateWithHost lk.salyk.kg:30040 [14:11:16]ConnectInit lk.salyk.kg [14:11:16]Connected sock=7 [14:11: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 33 39 0C 01 00 00 54 01 04 01 98 FC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C0 61 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 93 87 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 87 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 17 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 1E 01 00 00 00 07 04 06 00 50 87 0A 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 01 00 00 F4 03 04 00 FD 0E 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B1 78 03 00 35 04 06 00 65 3E C0 D2 83 54 E2 FB F4 82 C2 7B 7D 67 [14:11: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 33 39 4F 00 00 00 EB C0 47 00 B6 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 33 39 10 04 04 00 B1 78 03 00 F4 03 04 00 82 BA 14 67 B6 04 01 00 00 C1 1F F4 CD D4 98 93 1D [14:11:17]CommunicateWithHost err = 0 [14:11:17]CheckOFDResponse [14:11:17]1017 (14) - 77093643461234 [14:11:17]1041 (16) - 0000000000871839 [14:11:17]1040 (4) - 227505 [14:11:17]1012 (4) - 20.10.2024 08:08 [14:11:17]1206 (1) - 0 [14:11:17]OFD Sender: Remove packet 227505 [14:11:17]ProducePacketName [14:11:17]name=ofd_packets/00227505 [14:11:17]NVStorageDeleteData [14:11:17]OFD Sender: Processing packet 227506 [packets to send 39, broken 37] [14:11:17]ProducePacketName [14:11:17]name=ofd_packets/00227506 [14:11:17]OFD Sender: To server: pG, [14:11:17]CommunicateWithHost lk.salyk.kg:30040 [14:11:17]ConnectInit lk.salyk.kg [14:11:17]Connected sock=7 [14:11: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 33 39 0F 01 00 00 DD 00 07 01 14 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 01 0F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B2 78 03 00 35 04 06 00 A2 8F 58 1D 44 8C 68 81 EA FA 0F B8 D7 57 [14:11: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 33 39 4F 00 00 00 FA 55 47 00 19 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B2 78 03 00 F4 03 04 00 83 BA 14 67 B6 04 01 00 00 9F D7 7B 21 28 54 46 1E [14:11:17]CommunicateWithHost err = 0 [14:11:17]CheckOFDResponse [14:11:17]1017 (14) - 77093643461234 [14:11:17]1041 (16) - 0000000000871839 [14:11:17]1040 (4) - 227506 [14:11:17]1012 (4) - 20.10.2024 08:08 [14:11:17]1206 (1) - 0 [14:11:17]OFD Sender: Remove packet 227506 [14:11:17]ProducePacketName [14:11:17]name=ofd_packets/00227506 [14:11:17]NVStorageDeleteData [14:11:18]OFD Sender: Processing packet 227507 [packets to send 38, broken 37] [14:11:18]ProducePacketName [14:11:18]name=ofd_packets/00227507 [14:11:18]OFD Sender: To server: pG, [14:11:18]CommunicateWithHost lk.salyk.kg:30040 [14:11:18]ConnectInit lk.salyk.kg [14:11:18]Connected sock=7 [14:11: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 33 39 0F 01 00 00 9A 96 07 01 BF F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 33 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D4 5B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 5B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 24 00 00 00 00 07 04 06 00 A8 5B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 01 00 00 F4 03 04 00 7F 0F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B3 78 03 00 35 04 06 00 E9 B4 0D E1 21 84 DC D5 85 B8 3D 3B C7 50 [14:11: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 33 39 4F 00 00 00 59 D2 47 00 A6 F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B3 78 03 00 F4 03 04 00 83 BA 14 67 B6 04 01 00 00 00 FB 25 1C F2 6B 2C EE [14:11:18]CommunicateWithHost err = 0 [14:11:18]CheckOFDResponse [14:11:18]1017 (14) - 77093643461234 [14:11:18]1041 (16) - 0000000000871839 [14:11:18]1040 (4) - 227507 [14:11:18]1012 (4) - 20.10.2024 08:08 [14:11:18]1206 (1) - 0 [14:11:18]OFD Sender: Remove packet 227507 [14:11:18]ProducePacketName [14:11:18]name=ofd_packets/00227507 [14:11:18]NVStorageDeleteData [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:59]OFD Sender: No OFD packet to send [14:12:04]OFD Sender: No OFD packet to send [14:12:09]OFD Sender: No OFD packet to send [14:12:14]OFD Sender: No OFD packet to send [14:12:19]OFD Sender: No OFD packet to send [14:12:24]OFD Sender: No OFD packet to send [14:12:29]OFD Sender: No OFD packet to send [14:12:34]OFD Sender: No OFD packet to send [14:12:39]OFD Sender: No OFD packet to send [14:12:43]accept exits with 9 [14:12:43]New connection [14:12:43]New thread 3067219300 created [14:12:43]Thread 3067362660 joined [14:12:43]Waiting for new connection... [14:12:43] Sock 9.Parse request [14:12:43]Sock 9.Check first char [14:12:43]Sock 9.First char is OK [14:12:43]request: POST /json_proto HTTP/1.0 [14:12:43]Method: POST [14:12:43]URL: /json_proto [14:12:43]Method is POST - this is cgi request [14:12:43]url: /json_proto [14:12:43]query_string will be loaded in cgi processing [14:12:43]execute_cgi json_proto POST (null) [14:12:43]execute_cgi path=json_proto method=POST [14:12:43]POST find Content-Length [14:12:43]Host: 172.17.44.195:8080 [14:12:43]Content-Length: 683 [14:12:43]Content-Type: application/json [14:12:43] [14:12:43]POST finish read [14:12:43]Found Content-Length = 683 [14:12:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963033", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:12:43]execute_script... [14: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)1963033", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:12:43]POST & json_proto [14:12:43]process_json_proto [14:12:43]json parsed OK: [14:12:43]protocol is kg_v1.0 [14:12:43]action value=close_receipt [14:12:43]process_action close_receipt [14:12:43]cmd_close_receipt [14:12:43]MH_GetDate [14:12:43]Write to MH i2c: F0 00 00 41 04 34 [14:12:43]Write i2c OK [14:12:43]MH_I2C_Read... [14:12:43]Read from MH i2c: F0 [14:12:43]MH_I2C_Read... [14:12:43]Read from MH i2c: F0 09 00 [14:12:43]MH_I2C_Read... [14:12:43]Read from MH i2c: F0 09 00 41 04 00 DC 0F 15 67 82 C9 CF 66 24 [14:12:43]GetLastDocTimeStamp 1729433471 [14:12:43]current date 1729433564 [14:12:43]FM_GetShiftState [14:12:43]SAM_PROTO_GetShiftState [14:12:43]wFMCommunicate request_size=4 [14:12:43]MH_SAM_APDU [14:12:43]CAPDU: 80 13 01 00 [14:12:43]Write to MH i2c: E2 08 00 42 04 80 13 01 00 00 00 00 00 C3 [14:12:43]Write i2c OK [14:12:43]MH_I2C_Read... [14:12:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:12:43]Read from MH i2c: E2 [14:12:43]MH_I2C_Read... [14:12:43]Read from MH i2c: E2 0E 00 [14:12:43]MH_I2C_Read... [14:12:43]Read from MH i2c: E2 0E 00 42 04 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 DD [14:12:43]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [14:12:43]wFMCommunicate OK [14:12:43]SAM_PROTO_GetShiftState done [14:12:43]FM_GetShiftState done [14:12:43]opened in 1729383750 [14:12:43]opened+sec_in_day 1729470150 [14:12:43]quantity*price = 100015 [14:12:43]sum+1 = 100017 [14:12:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 356 20.10.2024 14:12 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227508 ФПД: 79309816216917 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T141244&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227508&fm=79309816216917&tin=02508201610067®Number=0000000000091685&sum=100000 [14:12:44]StoreToDocumentArchive [14:12:44]shift 533 fd 227508 [14:12:44]save to /storage/0533/doc_00227508 [14:12:44]save last doc name /storage/0533/doc_00227508 to /storage/kkm_last_doc_name [14:12:44]save OK [14:12:44]Clear old archive folders... [14:12:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:12:44]tlvbuf is B6FBC740 [14:12:44]SAM_PROTO_ClearQueue [14:12:44]wFMCommunicate request_size=4 [14:12:44]MH_SAM_APDU [14:12:44]CAPDU: 80 09 00 00 [14:12:44]Write to MH i2c: E2 08 00 4F 04 80 09 00 00 00 00 00 00 C5 [14:12:44]Write i2c OK [14:12:44]MH_I2C_Read... [14:12:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:12:44]Read from MH i2c: E2 [14:12:44]MH_I2C_Read... [14:12:44]Read from MH i2c: E2 03 00 [14:12:44]MH_I2C_Read... [14:12:44]Read from MH i2c: E2 03 00 4F 04 00 90 00 C7 [14:12:44]RAPDU: 90 00 [14:12:44]wFMCommunicate OK [14:12:44]SAM_PROTO_ClearQueue done [14:12:44]KKMCreateOFDPacket [14:12:44]OFDProtocolAddRootSTLVToBuf [14:12:44]FM_MakeSignedData [14:12:44]FM_MakeSignedData [14:12:44]SAM_PROTO_SignData [14:12:44]wFMCommunicate request_size=4 [14:12:44]MH_SAM_APDU [14:12:44]CAPDU: 80 0D 01 02 [14:12:44]Write to MH i2c: E2 08 00 50 04 80 0D 01 02 00 00 00 00 CD [14:12:44]Write i2c OK [14:12:44]MH_I2C_Read... [14:12:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:12:44]Read from MH i2c: E2 [14:12:44]MH_I2C_Read... [14:12:44]Read from MH i2c: E2 03 00 [14:12:44]MH_I2C_Read... [14:12:44]Read from MH i2c: E2 03 00 50 04 00 90 00 C8 [14:12:44]RAPDU: 90 00 [14:12:44]wFMCommunicate OK [14:12:44]wFMCommunicate request_size=255 [14:12:44]MH_SAM_APDU [14:12:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 01 00 00 F4 03 04 00 DC 0F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B4 78 03 00 35 04 06 00 48 [14:12:44]Write to MH i2c: E2 02 01 51 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 01 00 00 F4 03 04 00 DC 0F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B4 78 03 00 35 04 06 00 48 00 00 B8 [14:12:44]Write i2c OK [14:12:44]MH_I2C_Read... [14:12:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:12:45]Read from MH i2c: E2 [14:12:45]MH_I2C_Read... [14:12:45]Read from MH i2c: E2 03 00 [14:12:45]MH_I2C_Read... [14:12:45]Read from MH i2c: E2 03 00 51 04 00 90 00 C9 [14:12:45]RAPDU: 90 00 [14:12:45]wFMCommunicate OK [14:12:45]wFMCommunicate request_size=10 [14:12:45]MH_SAM_APDU [14:12:45]CAPDU: 80 0D 02 02 05 21 C1 6C 3D 55 [14:12:45]Write to MH i2c: E2 0D 00 52 04 80 0D 02 02 05 00 21 C1 6C 3D 55 00 00 BA [14:12:45]Write i2c OK [14:12:45]MH_I2C_Read... [14:12:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:12:45]Read from MH i2c: E2 [14:12:45]MH_I2C_Read... [14:12:45]Read from MH i2c: E2 03 00 [14:12:45]MH_I2C_Read... [14:12:45]Read from MH i2c: E2 03 00 52 04 00 90 00 CA [14:12:45]RAPDU: 90 00 [14:12:45]wFMCommunicate OK [14:12:45]wFMCommunicate request_size=4 [14:12:45]MH_SAM_APDU [14:12:45]CAPDU: 80 0D 03 02 [14:12:45]Write to MH i2c: E2 08 00 53 04 80 0D 03 02 00 00 00 00 D2 [14:12:45]Write i2c OK [14:12:45]MH_I2C_Read... [14:12:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:12:45]Read from MH i2c: E2 [14:12:45]MH_I2C_Read... [14:12:45]Read from MH i2c: E2 0B 00 [14:12:45]MH_I2C_Read... [14:12:45]Read from MH i2c: E2 0B 00 53 04 00 38 5B 26 07 3F DE DF 96 90 00 25 [14:12:45]RAPDU: 38 5B 26 07 3F DE DF 96 90 00 [14:12:45]wFMCommunicate OK [14:12:45]SAM_PROTO_SignData done [14:12:45]FM_MakeSignedData done [14:12:45]CreateOFDProtocolMessage [14:12:45]wFMCommunicate request_size=4 [14:12:45]MH_SAM_APDU [14:12:45]CAPDU: 80 11 00 00 [14:12:45]Write to MH i2c: E2 08 00 54 04 80 11 00 00 00 00 00 00 D2 [14:12:45]Write i2c OK [14:12:45]MH_I2C_Read... [14:12:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:45]Read from MH i2c: E2 [14:12:45]MH_I2C_Read... [14:12:45]Read from MH i2c: E2 17 00 [14:12:45]MH_I2C_Read... [14:12:45]Read from MH i2c: E2 17 00 54 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 29 [14:12:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:12:45]wFMCommunicate OK [14:12:45]CreateOFDProtocolMessage done [14:12:45]OFDSenderStorePacket 227508 [14:12:45]StoreOFDPacket docnum=227508 [14:12:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 3C F6 07 01 F4 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 01 00 00 F4 03 04 00 DC 0F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B4 78 03 00 35 04 06 00 48 21 C1 6C 3D 55 38 5B 26 07 3F DE DF 96 [14:12:45]CheckFolder [14:12:45]dirname=/storage/ofd_packets [14:12:45]CheckFolder done [14:12:45]ProducePacketName [14:12:45]name=ofd_packets/00227508 [14:12:45]NVStorageSaveData ofd_packets/00227508 [14:12:45]File name is /storage/ofd_packets/00227508 [14:12:45]Write 301 bytes [14:12:45]NVStorageSaveData done [14:12:45]OFDSenderStorePacket done [14:12:45]KKMCreateOFDPacket done [14:12:45]NVStorageSaveData kkm_last_timestamp [14:12:45]File name is /storage/kkm_last_timestamp [14:12:45]Write 4 bytes [14:12:45]NVStorageSaveData done [14:12:45]ExternCall_PrintAddStr [14:12:45]wPrintStart [14:12:45]Write to MH i2c: 01 00 00 55 04 59 [14:12:45]Write i2c OK [14:12:45]MH_I2C_Read... [14:12:45]Read from MH i2c: 01 [14:12:45]MH_I2C_Read... [14:12:45]Read from MH i2c: 01 07 00 [14:12:45]MH_I2C_Read... [14:12:45]Read from MH i2c: 01 07 00 55 04 00 00 00 00 00 FF 0F 6E [14:12:45]RasterBufferAndPrint [14:12:45]line Счет N : (1)1963033 [14:12:45]line ИНН: 02508201610067 [14:12:45]line Контрольно-Кассовый Чек [14:12:45]line ПРОДАЖА [14:12:45]line ТРК (МРК, ГНК) : 63 [14:12:45]line Товар: 2710124130 [14:12:45]line Аи-92-К-5 [14:12:45]line 14.950 * 66.90 [14:12:45]line = 1000.16 [14:12:45]line НДС 12% НСП 1% [14:12:45]line > о реализуемом товаре [14:12:45]line ОКРУГЛЕНИЕ: -0.16 [14:12:45]line ИТОГО: 1000.00 [14:12:45]line Внесено: 1000.00 [14:12:45]line СДАЧА: 0.00 [14:12:45]line НСП 1% : 8.85 [14:12:45]line НДС 12% : 106.21 [14:12:45]line Наличными: 1000.00 [14:12:45]line Безнал.: 0.00 [14:12:45]line Место: АЗС № 133 "Партнер Нефть" [14:12:45]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [14:12:45]line СНО: Общий режим [14:12:45]line Чек 356 20.10.2024 14:12 [14:12:45]line Смена: 533 ФФД: 1.0 [14:12:45]line ЗНМ: 0300000091 [14:12:45]line РНМ: 0000000000091685 [14:12:45]line Версия ККМ: 001 [14:12:45]line ФМ: 0000000000871839 [14:12:45]line ФД: 227508 [14:12:45]line ФПД: 79309816216917 [14:12:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T141244&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227508&fm=79309816216917&tin=02508201610067®Number=0000000000091685&sum=100000 [14:12:45]OFD Sender: Processing packet 227508 [packets to send 38, broken 37] [14:12:45]ProducePacketName [14:12:45]name=ofd_packets/00227508 [14:12:45]OFD Sender: To server: pG, [14:12:45]CommunicateWithHost lk.salyk.kg:30040 [14:12:45]ConnectInit lk.salyk.kg [14:12:45]written 0, free lines is 4095 [14:12:45]Connected sock=10 [14:12: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 33 39 0F 01 00 00 3C F6 07 01 F4 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 01 00 00 F4 03 04 00 DC 0F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B4 78 03 00 35 04 06 00 48 21 C1 6C 3D 55 38 5B 26 07 3F DE DF 96 [14:12: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 33 39 4F 00 00 00 52 C8 47 00 CB 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B4 78 03 00 F4 03 04 00 DA BA 14 67 B6 04 01 00 00 0B 38 42 0C A5 2A 09 73 [14:12:45]CommunicateWithHost err = 0 [14:12:45]CheckOFDResponse [14:12:45]1017 (14) - 77093643461234 [14:12:45]1041 (16) - 0000000000871839 [14:12:45]1040 (4) - 227508 [14:12:45]1012 (4) - 20.10.2024 08:10 [14:12:45]1206 (1) - 0 [14:12:45]OFD Sender: Remove packet 227508 [14:12:45]ProducePacketName [14:12:45]name=ofd_packets/00227508 [14:12:45]NVStorageDeleteData [14:12:46]Write to MH i2c: 01 00 00 7F 04 83 [14:12:46]Write i2c OK [14:12:46]MH_I2C_Read... [14:12:46]Read from MH i2c: 01 [14:12:46]MH_I2C_Read... [14:12:46]Read from MH i2c: 01 07 00 [14:12:46]MH_I2C_Read... [14:12:46]Read from MH i2c: 01 07 00 7F 04 00 00 00 00 00 09 0D A0 [14:12:46]RasterBufferAndPrint [14:12:46]line [14:12:46]line [14:12:46]line [14:12:46]line [14:12:46]line [14:12:46]written 0, free lines is 3343 [14:12:46]process_action close_receipt done [14:12:46]requested_data is exist [14:12:46]produce_requested_data [14:12:46]requested_item fm.sn is exist - process it [14:12:46]wFMCommunicate request_size=4 [14:12:46]MH_SAM_APDU [14:12:46]CAPDU: 80 11 00 00 [14:12:46]Write to MH i2c: E2 08 00 86 04 80 11 00 00 00 00 00 00 04 [14:12:46]Write i2c OK [14:12:46]MH_I2C_Read... [14:12:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:46]Read from MH i2c: E2 [14:12:46]MH_I2C_Read... [14:12:46]Read from MH i2c: E2 17 00 [14:12:46]MH_I2C_Read... [14:12:46]Read from MH i2c: E2 17 00 86 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 5B [14:12:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:12:46]wFMCommunicate OK [14:12:46]requested_item fd.num is exist - process it [14:12:46]SAM_PROTO_GetFieldsCounters [14:12:46]wFMCommunicate request_size=4 [14:12:46]MH_SAM_APDU [14:12:46]CAPDU: 80 13 00 00 [14:12:46]Write to MH i2c: E2 08 00 87 04 80 13 00 00 00 00 00 00 07 [14:12:46]Write i2c OK [14:12:46]MH_I2C_Read... [14:12:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:12:46]Read from MH i2c: E2 [14:12:46]MH_I2C_Read... [14:12:46]Read from MH i2c: E2 62 00 [14:12:46]MH_I2C_Read... [14:12:46]Read from MH i2c: E2 62 00 87 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 B4 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 64 01 00 00 5E 04 04 00 64 01 00 00 57 04 04 00 65 01 00 00 19 04 04 00 00 00 00 00 90 00 A5 [14:12: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 B4 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 64 01 00 00 5E 04 04 00 64 01 00 00 57 04 04 00 65 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:12:46]wFMCommunicate OK [14:12:46]SAM_PROTO_GetFieldsCounters done [14:12:46]requested_item shift.num is exist - process it [14:12:46]requested_item shift.opened is exist - process it [14:12:46]req_shift_opened [14:12:46]FM_GetShiftState [14:12:46]SAM_PROTO_GetShiftState [14:12:46]wFMCommunicate request_size=4 [14:12:46]MH_SAM_APDU [14:12:46]CAPDU: 80 13 01 00 [14:12:46]Write to MH i2c: E2 08 00 88 04 80 13 01 00 00 00 00 00 09 [14:12:46]Write i2c OK [14:12:46]MH_I2C_Read... [14:12:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:12:46]Read from MH i2c: E2 [14:12:46]MH_I2C_Read... [14:12:46]Read from MH i2c: E2 0E 00 [14:12:46]MH_I2C_Read... [14:12:46]Read from MH i2c: E2 0E 00 88 04 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 23 [14:12:46]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [14:12:46]wFMCommunicate OK [14:12:46]SAM_PROTO_GetShiftState done [14:12:46]FM_GetShiftState done [14:12:46]req_shift_opened done [14:12:46]requested_item shift.open_date is exist - process it [14:12:46]req_shift_open_date [14:12:46]req_shift_open_date done [14:12:46]produce_requested_data done [14:12:46]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227508,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [14:12:46]process_action_free close_receipt [14:12:46]json_value_free [14:12:46]json_value_free done [14:12:46]process_json_proto returns [14:12:46]Send response to host [14:12:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227508,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [14:12:46]free response buf [14:12:46]execute_script done [14:12:46]execute_script returns [14:12:46]free content buf [14:12:46]Sock 9.Close socket [14:12:46]Sock 9.Thread stoped [14:12:46]OFD Sender: No OFD packet to send [14:12:51]OFD Sender: No OFD packet to send [14:12:56]OFD Sender: No OFD packet to send [14:13:01]OFD Sender: No OFD packet to send [14:13:06]OFD Sender: No OFD packet to send [14:13:11]OFD Sender: No OFD packet to send [14:13:16]OFD Sender: No OFD packet to send [14:13:21]OFD Sender: No OFD packet to send [14:13:26]OFD Sender: No OFD packet to send [14:13:31]OFD Sender: No OFD packet to send [14:13:36]OFD Sender: No OFD packet to send [14:13:41]OFD Sender: No OFD packet to send [14:13:46]OFD Sender: No OFD packet to send [14:13:51]OFD Sender: No OFD packet to send [14:13:56]OFD Sender: No OFD packet to send [14:14:01]OFD Sender: No OFD packet to send [14:14:06]OFD Sender: No OFD packet to send [14:14:11]OFD Sender: No OFD packet to send [14:14:16]OFD Sender: No OFD packet to send [14:14:21]OFD Sender: No OFD packet to send [14:14:26]OFD Sender: No OFD packet to send [14:14:31]OFD Sender: No OFD packet to send [14:14: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:11]OFD Sender: No OFD packet to send [14:15:16]OFD Sender: No OFD packet to send [14:15:21]OFD Sender: No OFD packet to send [14:15:26]OFD Sender: No OFD packet to send [14:15:31]OFD Sender: No OFD packet to send [14:15:36]OFD Sender: No OFD packet to send [14:15:41]OFD Sender: No OFD packet to send [14:15:46]OFD Sender: No OFD packet to send [14:15:51]OFD Sender: No OFD packet to send [14:15:56]OFD Sender: No OFD packet to send [14:16:01]OFD Sender: No OFD packet to send [14:16:06]OFD Sender: No OFD packet to send [14:16:11]OFD Sender: No OFD packet to send [14:16:16]OFD Sender: No OFD packet to send [14:16:21]OFD Sender: No OFD packet to send [14:16:26]OFD Sender: No OFD packet to send [14:16:31]OFD Sender: No OFD packet to send [14:16:36]OFD Sender: No OFD packet to send [14:16:41]OFD Sender: No OFD packet to send [14:16:46]OFD Sender: No OFD packet to send [14:16:51]OFD Sender: No OFD packet to send [14:16:56]OFD Sender: No OFD packet to send [14:17:01]OFD Sender: No OFD packet to send [14:17:06]OFD Sender: No OFD packet to send [14:17:11]OFD Sender: No OFD packet to send [14:17:16]OFD Sender: No OFD packet to send [14:17:21]OFD Sender: No OFD packet to send [14:17:26]OFD Sender: No OFD packet to send [14:17:31]OFD Sender: No OFD packet to send [14:17:36]OFD Sender: No OFD packet to send [14:17:41]OFD Sender: No OFD packet to send [14:17:46]OFD Sender: No OFD packet to send [14:17:51]OFD Sender: No OFD packet to send [14:17:56]OFD Sender: No OFD packet to send [14:18:01]OFD Sender: No OFD packet to send [14:18:06]OFD Sender: No OFD packet to send [14:18:11]OFD Sender: No OFD packet to send [14:18:16]OFD Sender: No OFD packet to send [14:18:21]OFD Sender: No OFD packet to send [14:18:26]OFD Sender: No OFD packet to send [14:18:31]OFD Sender: No OFD packet to send [14:18:36]OFD Sender: No OFD packet to send [14:18:41]OFD Sender: No OFD packet to send [14:18:46]OFD Sender: No OFD packet to send [14:18:51]OFD Sender: No OFD packet to send [14:18:56]OFD Sender: No OFD packet to send [14:19:01]OFD Sender: No OFD packet to send [14:19:06]OFD Sender: No OFD packet to send [14:19:11]OFD Sender: No OFD packet to send [14:19:16]OFD Sender: No OFD packet to send [14:19:21]OFD Sender: No OFD packet to send [14:19:26]OFD Sender: No OFD packet to send [14:19:31]OFD Sender: No OFD packet to send [14:19:36]OFD Sender: No OFD packet to send [14:19:41]OFD Sender: No OFD packet to send [14:19:46]OFD Sender: No OFD packet to send [14:19:51]OFD Sender: No OFD packet to send [14:19:56]OFD Sender: No OFD packet to send [14:20:01]OFD Sender: No OFD packet to send [14:20:06]OFD Sender: No OFD packet to send [14:20:11]OFD Sender: No OFD packet to send [14:20:16]OFD Sender: No OFD packet to send [14:20:21]OFD Sender: No OFD packet to send [14:20:26]OFD Sender: No OFD packet to send [14:20:31]OFD Sender: No OFD packet to send [14:20:36]OFD Sender: No OFD packet to send [14:20:41]OFD Sender: No OFD packet to send [14:20:46]OFD Sender: No OFD packet to send [14:20:51]OFD Sender: No OFD packet to send [14:20:56]OFD Sender: No OFD packet to send [14:21:01]OFD Sender: No OFD packet to send [14:21:06]OFD Sender: No OFD packet to send [14:21:11]OFD Sender: No OFD packet to send [14:21:16]OFD Sender: No OFD packet to send [14:21:21]OFD Sender: No OFD packet to send [14:21:26]OFD Sender: No OFD packet to send [14:21:31]OFD Sender: No OFD packet to send [14:21:36]OFD Sender: No OFD packet to send [14:21:41]OFD Sender: No OFD packet to send [14:21:46]OFD Sender: No OFD packet to send [14:21:51]OFD Sender: No OFD packet to send [14:21:56]OFD Sender: No OFD packet to send [14:22:01]OFD Sender: No OFD packet to send [14:22:06]OFD Sender: No OFD packet to send [14:22:11]OFD Sender: No OFD packet to send [14:22:16]OFD Sender: No OFD packet to send [14:22:21]OFD Sender: No OFD packet to send [14:22:26]OFD Sender: No OFD packet to send [14:22:31]OFD Sender: No OFD packet to send [14:22:36]OFD Sender: No OFD packet to send [14:22:41]OFD Sender: No OFD packet to send [14:22:46]OFD Sender: No OFD packet to send [14:22:51]OFD Sender: No OFD packet to send [14:22:56]OFD Sender: No OFD packet to send [14:23:01]OFD Sender: No OFD packet to send [14:23:06]OFD Sender: No OFD packet to send [14:23:11]OFD Sender: No OFD packet to send [14:23:16]OFD Sender: No OFD packet to send [14:23:21]OFD Sender: No OFD packet to send [14:23:26]OFD Sender: No OFD packet to send [14:23:31]OFD Sender: No OFD packet to send [14:23:36]OFD Sender: No OFD packet to send [14:23:41]OFD Sender: No OFD packet to send [14:23:46]OFD Sender: No OFD packet to send [14:23:51]OFD Sender: No OFD packet to send [14:23:56]OFD Sender: No OFD packet to send [14:24:01]OFD Sender: No OFD packet to send [14:24:06]OFD Sender: No OFD packet to send [14:24:11]OFD Sender: No OFD packet to send [14:24:16]OFD Sender: No OFD packet to send [14:24:21]OFD Sender: No OFD packet to send [14:24:26]OFD Sender: No OFD packet to send [14:24:31]OFD Sender: No OFD packet to send [14:24:36]OFD Sender: No OFD packet to send [14:24:41]OFD Sender: No OFD packet to send [14:24:46]OFD Sender: No OFD packet to send [14:24:51]OFD Sender: No OFD packet to send [14:24:56]OFD Sender: No OFD packet to send [14:25:02]OFD Sender: No OFD packet to send [14:25:07]OFD Sender: No OFD packet to send [14:25:12]OFD Sender: No OFD packet to send [14:25:17]OFD Sender: No OFD packet to send [14:25:22]OFD Sender: No OFD packet to send [14:25:27]OFD Sender: No OFD packet to send [14:25:32]OFD Sender: No OFD packet to send [14:25:37]OFD Sender: No OFD packet to send [14:25:42]OFD Sender: No OFD packet to send [14:25:47]OFD Sender: No OFD packet to send [14:25:52]OFD Sender: No OFD packet to send [14:25:57]OFD Sender: No OFD packet to send [14:26:02]OFD Sender: No OFD packet to send [14:26:07]OFD Sender: No OFD packet to send [14:26:12]OFD Sender: No OFD packet to send [14:26:17]OFD Sender: No OFD packet to send [14:26:22]OFD Sender: No OFD packet to send [14:26:27]OFD Sender: No OFD packet to send [14:26:32]OFD Sender: No OFD packet to send [14:26:37]OFD Sender: No OFD packet to send [14:26:42]OFD Sender: No OFD packet to send [14:26:47]OFD Sender: No OFD packet to send [14:26:52]OFD Sender: No OFD packet to send [14:26:57]OFD Sender: No OFD packet to send [14:27:02]OFD Sender: No OFD packet to send [14:27:07]OFD Sender: No OFD packet to send [14:27:12]OFD Sender: No OFD packet to send [14:27:17]OFD Sender: No OFD packet to send [14:27:22]OFD Sender: No OFD packet to send [14:27:27]OFD Sender: No OFD packet to send [14:27:32]OFD Sender: No OFD packet to send [14:27:37]OFD Sender: No OFD packet to send [14:27:42]OFD Sender: No OFD packet to send [14:27:47]OFD Sender: No OFD packet to send [14:27:52]OFD Sender: No OFD packet to send [14:27:57]OFD Sender: No OFD packet to send [14:28:02]OFD Sender: No OFD packet to send [14:28:07]OFD Sender: No OFD packet to send [14:28:12]OFD Sender: No OFD packet to send [14:28:17]OFD Sender: No OFD packet to send [14:28:22]OFD Sender: No OFD packet to send [14:28:27]OFD Sender: No OFD packet to send [14:28:32]OFD Sender: No OFD packet to send [14:28:37]OFD Sender: No OFD packet to send [14:28:42]OFD Sender: No OFD packet to send [14:28:47]OFD Sender: No OFD packet to send [14:28:52]OFD Sender: No OFD packet to send [14:28:57]OFD Sender: No OFD packet to send [14:29:02]OFD Sender: No OFD packet to send [14:29:07]OFD Sender: No OFD packet to send [14:29:12]OFD Sender: No OFD packet to send [14:29:17]OFD Sender: No OFD packet to send [14:29:22]OFD Sender: No OFD packet to send [14:29:27]OFD Sender: No OFD packet to send [14:29:32]OFD Sender: No OFD packet to send [14:29:37]OFD Sender: No OFD packet to send [14:29:42]OFD Sender: No OFD packet to send [14:29:47]OFD Sender: No OFD packet to send [14:29:52]OFD Sender: No OFD packet to send [14:29:57]OFD Sender: No OFD packet to send [14:30:02]OFD Sender: No OFD packet to send [14:30:07]OFD Sender: No OFD packet to send [14:30:12]OFD Sender: No OFD packet to send [14:30:17]OFD Sender: No OFD packet to send [14:30:22]OFD Sender: No OFD packet to send [14:30:27]OFD Sender: No OFD packet to send [14:30:32]OFD Sender: No OFD packet to send [14:30:37]OFD Sender: No OFD packet to send [14:30:42]OFD Sender: No OFD packet to send [14:30:47]OFD Sender: No OFD packet to send [14:30:52]OFD Sender: No OFD packet to send [14:30:57]OFD Sender: No OFD packet to send [14:31:02]OFD Sender: No OFD packet to send [14:31:07]OFD Sender: No OFD packet to send [14:31:12]OFD Sender: No OFD packet to send [14:31:17]OFD Sender: No OFD packet to send [14:31:22]OFD Sender: No OFD packet to send [14:31:27]OFD Sender: No OFD packet to send [14:31:32]OFD Sender: No OFD packet to send [14:31:37]OFD Sender: No OFD packet to send [14:31:42]OFD Sender: No OFD packet to send [14:31:47]OFD Sender: No OFD packet to send [14:31:52]OFD Sender: No OFD packet to send [14:31:57]OFD Sender: No OFD packet to send [14:32:02]OFD Sender: No OFD packet to send [14:32:07]OFD Sender: No OFD packet to send [14:32:12]OFD Sender: No OFD packet to send [14:32:17]OFD Sender: No OFD packet to send [14:32:22]OFD Sender: No OFD packet to send [14:32:27]OFD Sender: No OFD packet to send [14:32:32]OFD Sender: No OFD packet to send [14:32:37]OFD Sender: No OFD packet to send [14:32:42]OFD Sender: No OFD packet to send [14:32:47]OFD Sender: No OFD packet to send [14:32:52]OFD Sender: No OFD packet to send [14:32:57]OFD Sender: No OFD packet to send [14:33:02]OFD Sender: No OFD packet to send [14:33:07]OFD Sender: No OFD packet to send [14:33:12]OFD Sender: No OFD packet to send [14:33:17]OFD Sender: No OFD packet to send [14:33:22]OFD Sender: No OFD packet to send [14:33:27]OFD Sender: No OFD packet to send [14:33:32]OFD Sender: No OFD packet to send [14:33:37]OFD Sender: No OFD packet to send [14:33:42]OFD Sender: No OFD packet to send [14:33:47]OFD Sender: No OFD packet to send [14:33:52]OFD Sender: No OFD packet to send [14:33:57]OFD Sender: No OFD packet to send [14:34:02]OFD Sender: No OFD packet to send [14:34:07]OFD Sender: No OFD packet to send [14:34:12]OFD Sender: No OFD packet to send [14:34:17]OFD Sender: No OFD packet to send [14:34:22]OFD Sender: No OFD packet to send [14:34:27]OFD Sender: No OFD packet to send [14:34:32]OFD Sender: No OFD packet to send [14:34:37]OFD Sender: No OFD packet to send [14:34:42]OFD Sender: No OFD packet to send [14:34:47]OFD Sender: No OFD packet to send [14:34:52]OFD Sender: No OFD packet to send [14:34:57]OFD Sender: No OFD packet to send [14:35:02]OFD Sender: No OFD packet to send [14:35:07]OFD Sender: No OFD packet to send [14:35:12]OFD Sender: No OFD packet to send [14:35:17]OFD Sender: No OFD packet to send [14:35:22]OFD Sender: No OFD packet to send [14:35:27]OFD Sender: No OFD packet to send [14:35:32]OFD Sender: No OFD packet to send [14:35:37]OFD Sender: No OFD packet to send [14:35:42]OFD Sender: No OFD packet to send [14:35:47]OFD Sender: No OFD packet to send [14:35:52]OFD Sender: No OFD packet to send [14:35: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:52]OFD Sender: No OFD packet to send [14:36:57]OFD Sender: No OFD packet to send [14:37:02]OFD Sender: No OFD packet to send [14:37:07]OFD Sender: No OFD packet to send [14:37:12]OFD Sender: No OFD packet to send [14:37:17]OFD Sender: No OFD packet to send [14:37:22]OFD Sender: No OFD packet to send [14:37:27]OFD Sender: No OFD packet to send [14:37:32]OFD Sender: No OFD packet to send [14:37:37]OFD Sender: No OFD packet to send [14:37:42]OFD Sender: No OFD packet to send [14:37:47]OFD Sender: No OFD packet to send [14:37:52]OFD Sender: No OFD packet to send [14:37:57]OFD Sender: No OFD packet to send [14:38:00]accept exits with 7 [14:38:00]New connection [14:38:00]New thread 3067362660 created [14:38:00]Thread 3067219300 joined [14:38:00]Waiting for new connection... [14:38:00] Sock 7.Parse request [14:38:00]Sock 7.Check first char [14:38:00]Sock 7.First char is OK [14:38:00]request: POST /json_proto HTTP/1.0 [14:38:00]Method: POST [14:38:00]URL: /json_proto [14:38:00]Method is POST - this is cgi request [14:38:00]url: /json_proto [14:38:00]query_string will be loaded in cgi processing [14:38:00]execute_cgi json_proto POST (null) [14:38:00]execute_cgi path=json_proto method=POST [14:38:00]POST find Content-Length [14:38:00]Host: 172.17.44.195:8080 [14:38:00]Content-Length: 678 [14:38:00]Content-Type: application/json [14:38:00] [14:38:00]POST finish read [14:38:00]Found Content-Length = 678 [14:38:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963064", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:00]execute_script... [14:38: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)1963064", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:00]POST & json_proto [14:38:00]process_json_proto [14:38:00]json parsed OK: [14:38:00]protocol is kg_v1.0 [14:38:00]action value=close_receipt [14:38:00]process_action close_receipt [14:38:00]cmd_close_receipt [14:38:00]MH_GetDate [14:38:00]Write to MH i2c: F0 00 00 89 04 7C [14:38:00]Write i2c OK [14:38:00]MH_I2C_Read... [14:38:00]Read from MH i2c: F0 [14:38:00]MH_I2C_Read... [14:38:00]Read from MH i2c: F0 09 00 [14:38:00]MH_I2C_Read... [14:38:00]Read from MH i2c: F0 09 00 89 04 00 C9 15 15 67 82 C9 CF 66 5F [14:38:00]GetLastDocTimeStamp 1729433564 [14:38:00]current date 1729435081 [14:38:00]FM_GetShiftState [14:38:00]SAM_PROTO_GetShiftState [14:38:00]wFMCommunicate request_size=4 [14:38:00]MH_SAM_APDU [14:38:00]CAPDU: 80 13 01 00 [14:38:00]Write to MH i2c: E2 08 00 8A 04 80 13 01 00 00 00 00 00 0B [14:38:00]Write i2c OK [14:38:00]MH_I2C_Read... [14:38:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:00]Read from MH i2c: E2 [14:38:00]MH_I2C_Read... [14:38:00]Read from MH i2c: E2 0E 00 [14:38:00]MH_I2C_Read... [14:38:00]Read from MH i2c: E2 0E 00 8A 04 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 25 [14:38:00]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [14:38:00]wFMCommunicate OK [14:38:00]SAM_PROTO_GetShiftState done [14:38:00]FM_GetShiftState done [14:38:00]opened in 1729383750 [14:38:00]opened+sec_in_day 1729470150 [14:38:00]quantity*price = 50041 [14:38:00]sum+1 = 50042 [14:38:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 357 20.10.2024 14:38 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227509 ФПД: 259569993319651 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143801&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227509&fm=259569993319651&tin=02508201610067®Number=0000000000091685&sum=50000 [14:38:01]StoreToDocumentArchive [14:38:01]shift 533 fd 227509 [14:38:01]save to /storage/0533/doc_00227509 [14:38:01]save last doc name /storage/0533/doc_00227509 to /storage/kkm_last_doc_name [14:38:01]save OK [14:38:01]Clear old archive folders... [14:38:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:38:01]tlvbuf is 00DA37A0 [14:38:01]SAM_PROTO_ClearQueue [14:38:01]wFMCommunicate request_size=4 [14:38:01]MH_SAM_APDU [14:38:01]CAPDU: 80 09 00 00 [14:38:01]Write to MH i2c: E2 08 00 97 04 80 09 00 00 00 00 00 00 0D [14:38:01]Write i2c OK [14:38:01]MH_I2C_Read... [14:38:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:38:02]Read from MH i2c: E2 [14:38:02]MH_I2C_Read... [14:38:02]Read from MH i2c: E2 03 00 [14:38:02]MH_I2C_Read... [14:38:02]Read from MH i2c: E2 03 00 97 04 00 90 00 0F [14:38:02]RAPDU: 90 00 [14:38:02]wFMCommunicate OK [14:38:02]SAM_PROTO_ClearQueue done [14:38:02]KKMCreateOFDPacket [14:38:02]OFDProtocolAddRootSTLVToBuf [14:38:02]FM_MakeSignedData [14:38:02]FM_MakeSignedData [14:38:02]SAM_PROTO_SignData [14:38:02]wFMCommunicate request_size=4 [14:38:02]MH_SAM_APDU [14:38:02]CAPDU: 80 0D 01 02 [14:38:02]Write to MH i2c: E2 08 00 98 04 80 0D 01 02 00 00 00 00 15 [14:38:02]Write i2c OK [14:38:02]MH_I2C_Read... [14:38:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:38:02]Read from MH i2c: E2 [14:38:02]MH_I2C_Read... [14:38:02]Read from MH i2c: E2 03 00 [14:38:02]MH_I2C_Read... [14:38:02]Read from MH i2c: E2 03 00 98 04 00 90 00 10 [14:38:02]RAPDU: 90 00 [14:38:02]wFMCommunicate OK [14:38:02]wFMCommunicate request_size=255 [14:38:02]MH_SAM_APDU [14:38:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 01 00 00 F4 03 04 00 C9 15 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B5 78 03 00 35 04 06 00 EC [14:38:02]Write to MH i2c: E2 02 01 99 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 01 00 00 F4 03 04 00 C9 15 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B5 78 03 00 35 04 06 00 EC 00 00 9F [14:38:02]Write i2c OK [14:38:02]MH_I2C_Read... [14:38:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:02]Read from MH i2c: E2 [14:38:02]MH_I2C_Read... [14:38:02]Read from MH i2c: E2 03 00 [14:38:02]MH_I2C_Read... [14:38:02]Read from MH i2c: E2 03 00 99 04 00 90 00 11 [14:38:02]RAPDU: 90 00 [14:38:02]wFMCommunicate OK [14:38:02]wFMCommunicate request_size=10 [14:38:02]MH_SAM_APDU [14:38:02]CAPDU: 80 0D 02 02 05 13 D9 3F 04 E3 [14:38:02]Write to MH i2c: E2 0D 00 9A 04 80 0D 02 02 05 00 13 D9 3F 04 E3 00 00 34 [14:38:02]Write i2c OK [14:38:02]MH_I2C_Read... [14:38:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:02]Read from MH i2c: E2 [14:38:02]MH_I2C_Read... [14:38:02]Read from MH i2c: E2 03 00 [14:38:02]MH_I2C_Read... [14:38:02]Read from MH i2c: E2 03 00 9A 04 00 90 00 12 [14:38:02]RAPDU: 90 00 [14:38:02]wFMCommunicate OK [14:38:02]wFMCommunicate request_size=4 [14:38:02]MH_SAM_APDU [14:38:02]CAPDU: 80 0D 03 02 [14:38:02]Write to MH i2c: E2 08 00 9B 04 80 0D 03 02 00 00 00 00 1A [14:38:02]Write i2c OK [14:38:02]MH_I2C_Read... [14:38:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:38:02]Read from MH i2c: E2 [14:38:02]MH_I2C_Read... [14:38:02]Read from MH i2c: E2 0B 00 [14:38:02]MH_I2C_Read... [14:38:02]Read from MH i2c: E2 0B 00 9B 04 00 9B 04 FD 3D 82 4B 2F 71 90 00 61 [14:38:02]RAPDU: 9B 04 FD 3D 82 4B 2F 71 90 00 [14:38:02]wFMCommunicate OK [14:38:02]SAM_PROTO_SignData done [14:38:02]FM_MakeSignedData done [14:38:02]CreateOFDProtocolMessage [14:38:02]wFMCommunicate request_size=4 [14:38:02]MH_SAM_APDU [14:38:02]CAPDU: 80 11 00 00 [14:38:02]Write to MH i2c: E2 08 00 9C 04 80 11 00 00 00 00 00 00 1A [14:38:02]Write i2c OK [14:38:02]MH_I2C_Read... [14:38:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:02]Read from MH i2c: E2 [14:38:02]MH_I2C_Read... [14:38:02]Read from MH i2c: E2 17 00 [14:38:02]MH_I2C_Read... [14:38:02]Read from MH i2c: E2 17 00 9C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 71 [14:38:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:38:02]wFMCommunicate OK [14:38:02]CreateOFDProtocolMessage done [14:38:02]OFDSenderStorePacket 227509 [14:38:02]StoreOFDPacket docnum=227509 [14:38:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 3A 96 07 01 43 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 01 00 00 F4 03 04 00 C9 15 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B5 78 03 00 35 04 06 00 EC 13 D9 3F 04 E3 9B 04 FD 3D 82 4B 2F 71 [14:38:02]CheckFolder [14:38:02]dirname=/storage/ofd_packets [14:38:02]CheckFolder done [14:38:02]ProducePacketName [14:38:02]name=ofd_packets/00227509 [14:38:02]NVStorageSaveData ofd_packets/00227509 [14:38:02]File name is /storage/ofd_packets/00227509 [14:38:02]Write 301 bytes [14:38:02]NVStorageSaveData done [14:38:02]OFDSenderStorePacket done [14:38:02]KKMCreateOFDPacket done [14:38:02]NVStorageSaveData kkm_last_timestamp [14:38:02]File name is /storage/kkm_last_timestamp [14:38:02]Write 4 bytes [14:38:02]NVStorageSaveData done [14:38:02]OFD Sender: Processing packet 227509 [packets to send 38, broken 37] [14:38:02]ProducePacketName [14:38:02]name=ofd_packets/00227509 [14:38:02]OFD Sender: To server: pG, [14:38:02]CommunicateWithHost lk.salyk.kg:30040 [14:38:02]ConnectInit lk.salyk.kg [14:38:02]ExternCall_PrintAddStr [14:38:02]wPrintStart [14:38:02]Write to MH i2c: 01 00 00 9D 04 A1 [14:38:02]Write i2c OK [14:38:02]MH_I2C_Read... [14:38:02]Read from MH i2c: 01 [14:38:02]MH_I2C_Read... [14:38:02]Read from MH i2c: 01 07 00 [14:38:02]MH_I2C_Read... [14:38:02]Read from MH i2c: 01 07 00 9D 04 00 00 00 00 00 FF 0F B6 [14:38:02]RasterBufferAndPrint [14:38:02]line Счет N : (1)1963064 [14:38:02]line ИНН: 02508201610067 [14:38:02]line Контрольно-Кассовый Чек [14:38:02]line ПРОДАЖА [14:38:02]line ТРК (МРК, ГНК) : 43 [14:38:02]line Товар: 2710124130 [14:38:02]line Аи-92-К-5 [14:38:02]line 7.480 * 66.90 [14:38:02]line = 500.41 [14:38:02]line НДС 12% НСП 1% [14:38:02]line > о реализуемом товаре [14:38:02]line ОКРУГЛЕНИЕ: -0.41 [14:38:02]line ИТОГО: 500.00 [14:38:02]line Внесено: 500.00 [14:38:02]line СДАЧА: 0.00 [14:38:02]line НСП 1% : 4.43 [14:38:02]line НДС 12% : 53.14 [14:38:02]line Наличными: 500.00 [14:38:02]line Безнал.: 0.00 [14:38:02]line Место: АЗС № 133 "Партнер Нефть" [14:38:02]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [14:38:02]line СНО: Общий режим [14:38:02]line Чек 357 20.10.2024 14:38 [14:38:02]line Смена: 533 ФФД: 1.0 [14:38:02]line ЗНМ: 0300000091 [14:38:02]line РНМ: 0000000000091685 [14:38:02]line Версия ККМ: 001 [14:38:02]line ФМ: 0000000000871839 [14:38:02]line ФД: 227509 [14:38:02]line ФПД: 259569993319651 [14:38:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143801&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227509&fm=259569993319651&tin=02508201610067®Number=0000000000091685&sum=50000 [14:38:02]Connected sock=11 [14:38: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 33 39 0F 01 00 00 3A 96 07 01 43 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 01 00 00 F4 03 04 00 C9 15 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B5 78 03 00 35 04 06 00 EC 13 D9 3F 04 E3 9B 04 FD 3D 82 4B 2F 71 [14:38:02]written 0, free lines is 4095 [14:38: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 33 39 4F 00 00 00 BC 80 47 00 A8 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B5 78 03 00 F4 03 04 00 C8 C0 14 67 B6 04 01 00 00 BC F1 3F DB 14 7E F2 3A [14:38:03]CommunicateWithHost err = 0 [14:38:03]CheckOFDResponse [14:38:03]1017 (14) - 77093643461234 [14:38:03]1041 (16) - 0000000000871839 [14:38:03]1040 (4) - 227509 [14:38:03]1012 (4) - 20.10.2024 08:35 [14:38:03]1206 (1) - 0 [14:38:03]OFD Sender: Remove packet 227509 [14:38:03]ProducePacketName [14:38:03]name=ofd_packets/00227509 [14:38:03]NVStorageDeleteData [14:38:03]Write to MH i2c: 01 00 00 C7 04 CB [14:38:03]Write i2c OK [14:38:03]MH_I2C_Read... [14:38:03]Read from MH i2c: 01 [14:38:03]MH_I2C_Read... [14:38:03]Read from MH i2c: 01 07 00 [14:38:03]MH_I2C_Read... [14:38:03]Read from MH i2c: 01 07 00 C7 04 00 00 00 00 00 FC 0C DA [14:38:03]RasterBufferAndPrint [14:38:03]line [14:38:03]line [14:38:03]line [14:38:03]line [14:38:03]line [14:38:03]written 0, free lines is 3330 [14:38:03]process_action close_receipt done [14:38:03]requested_data is exist [14:38:03]produce_requested_data [14:38:03]requested_item fm.sn is exist - process it [14:38:03]wFMCommunicate request_size=4 [14:38:03]MH_SAM_APDU [14:38:03]CAPDU: 80 11 00 00 [14:38:03]Write to MH i2c: E2 08 00 CE 04 80 11 00 00 00 00 00 00 4C [14:38:03]Write i2c OK [14:38:03]MH_I2C_Read... [14:38:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:03]Read from MH i2c: E2 [14:38:03]MH_I2C_Read... [14:38:03]Read from MH i2c: E2 17 00 [14:38:03]MH_I2C_Read... [14:38:03]Read from MH i2c: E2 17 00 CE 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A3 [14:38:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [14:38:03]wFMCommunicate OK [14:38:03]requested_item fd.num is exist - process it [14:38:03]SAM_PROTO_GetFieldsCounters [14:38:03]wFMCommunicate request_size=4 [14:38:03]MH_SAM_APDU [14:38:03]CAPDU: 80 13 00 00 [14:38:03]Write to MH i2c: E2 08 00 CF 04 80 13 00 00 00 00 00 00 4F [14:38:03]Write i2c OK [14:38:03]MH_I2C_Read... [14:38:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:38:03]Read from MH i2c: E2 [14:38:03]MH_I2C_Read... [14:38:03]OFD Sender: No OFD packet to send [14:38:03]Read from MH i2c: E2 62 00 [14:38:03]MH_I2C_Read... [14:38:03]Read from MH i2c: E2 62 00 CF 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 B5 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 65 01 00 00 5E 04 04 00 65 01 00 00 57 04 04 00 66 01 00 00 19 04 04 00 00 00 00 00 90 00 F1 [14:38: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 B5 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 65 01 00 00 5E 04 04 00 65 01 00 00 57 04 04 00 66 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:38:03]wFMCommunicate OK [14:38:03]SAM_PROTO_GetFieldsCounters done [14:38:03]requested_item shift.num is exist - process it [14:38:03]requested_item shift.opened is exist - process it [14:38:03]req_shift_opened [14:38:03]FM_GetShiftState [14:38:03]SAM_PROTO_GetShiftState [14:38:03]wFMCommunicate request_size=4 [14:38:03]MH_SAM_APDU [14:38:03]CAPDU: 80 13 01 00 [14:38:03]Write to MH i2c: E2 08 00 D0 04 80 13 01 00 00 00 00 00 51 [14:38:03]Write i2c OK [14:38:03]MH_I2C_Read... [14:38:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:03]Read from MH i2c: E2 [14:38:03]MH_I2C_Read... [14:38:03]Read from MH i2c: E2 0E 00 [14:38:03]MH_I2C_Read... [14:38:03]Read from MH i2c: E2 0E 00 D0 04 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 6B [14:38:03]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [14:38:03]wFMCommunicate OK [14:38:03]SAM_PROTO_GetShiftState done [14:38:03]FM_GetShiftState done [14:38:03]req_shift_opened done [14:38:03]requested_item shift.open_date is exist - process it [14:38:03]req_shift_open_date [14:38:03]req_shift_open_date done [14:38:03]produce_requested_data done [14:38:03]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227509,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [14:38:03]process_action_free close_receipt [14:38:03]json_value_free [14:38:03]json_value_free done [14:38:03]process_json_proto returns [14:38:03]Send response to host [14:38:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227509,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [14:38:03]free response buf [14:38:03]execute_script done [14:38:03]execute_script returns [14:38:03]free content buf [14:38:03]Sock 7.Close socket [14:38:03]Sock 7.Thread stoped [14:38:08]OFD Sender: No OFD packet to send [14:38:13]OFD Sender: No OFD packet to send [14:38:18]OFD Sender: No OFD packet to send [14:38:23]OFD Sender: No OFD packet to send [14:38:28]OFD Sender: No OFD packet to send [14:38:33]OFD Sender: No OFD packet to send [14:38:38]OFD Sender: No OFD packet to send [14:38:43]OFD Sender: No OFD packet to send [14:38:48]OFD Sender: No OFD packet to send [14:38:53]OFD Sender: No OFD packet to send [14:38:58]OFD Sender: No OFD packet to send [14:39:03]OFD Sender: No OFD packet to send [14:39:08]OFD Sender: No OFD packet to send [14:39:13]OFD Sender: No OFD packet to send [14:39:18]OFD Sender: No OFD packet to send [14:39:23]OFD Sender: No OFD packet to send [14:39:28]OFD Sender: No OFD packet to send [14:39:33]OFD Sender: No OFD packet to send [14:39:38]OFD Sender: No OFD packet to send [14:39:43]OFD Sender: No OFD packet to send [14:39:48]OFD Sender: No OFD packet to send [14:39:53]OFD Sender: No OFD packet to send [14:39:58]OFD Sender: No OFD packet to send [14:40:03]OFD Sender: No OFD packet to send [14:40:08]OFD Sender: No OFD packet to send [14:40:13]OFD Sender: No OFD packet to send [14:40:18]OFD Sender: No OFD packet to send [14:40:23]OFD Sender: No OFD packet to send [14:40:28]OFD Sender: No OFD packet to send [14:40:33]OFD Sender: No OFD packet to send [14:40:38]OFD Sender: No OFD packet to send [14:40:43]OFD Sender: No OFD packet to send [14:40:48]OFD Sender: No OFD packet to send [14:40:53]OFD Sender: No OFD packet to send [14:40:58]OFD Sender: No OFD packet to send [14:41:03]OFD Sender: No OFD packet to send [14:41:08]OFD Sender: No OFD packet to send [14:41:13]OFD Sender: No OFD packet to send [14:41:18]OFD Sender: No OFD packet to send [14:41:23]OFD Sender: No OFD packet to send [14:41:28]OFD Sender: No OFD packet to send [14:41:33]OFD Sender: No OFD packet to send [14:41:38]OFD Sender: No OFD packet to send [14:41:43]OFD Sender: No OFD packet to send [14:41:48]OFD Sender: No OFD packet to send [14:41:53]OFD Sender: No OFD packet to send [14:41:58]OFD Sender: No OFD packet to send [14:42:03]OFD Sender: No OFD packet to send [14:42:08]OFD Sender: No OFD packet to send [14:42:13]OFD Sender: No OFD packet to send [14:42:18]OFD Sender: No OFD packet to send [14:42:23]OFD Sender: No OFD packet to send [14:42:28]OFD Sender: No OFD packet to send [14:42:33]OFD Sender: No OFD packet to send [14:42:38]OFD Sender: No OFD packet to send [14:42:43]OFD Sender: No OFD packet to send [14:42:48]OFD Sender: No OFD packet to send [14:42:53]OFD Sender: No OFD packet to send [14:42:58]OFD Sender: No OFD packet to send [14:43:03]OFD Sender: No OFD packet to send [14:43:08]OFD Sender: No OFD packet to send [14:43:13]OFD Sender: No OFD packet to send [14:43:18]OFD Sender: No OFD packet to send [14:43:23]OFD Sender: No OFD packet to send [14:43:28]OFD Sender: No OFD packet to send [14:43:33]OFD Sender: No OFD packet to send [14:43:38]OFD Sender: No OFD packet to send [14:43:43]OFD Sender: No OFD packet to send [14:43:48]OFD Sender: No OFD packet to send [14:43:53]OFD Sender: No OFD packet to send [14:43:58]OFD Sender: No OFD packet to send [14:44:03]OFD Sender: No OFD packet to send [14:44:08]OFD Sender: No OFD packet to send [14:44:13]OFD Sender: No OFD packet to send [14:44:18]OFD Sender: No OFD packet to send [14:44:23]OFD Sender: No OFD packet to send [14:44:28]OFD Sender: No OFD packet to send [14:44:33]OFD Sender: No OFD packet to send [14:44:38]OFD Sender: No OFD packet to send [14:44:43]OFD Sender: No OFD packet to send [14:44:48]OFD Sender: No OFD packet to send [14:44:53]OFD Sender: No OFD packet to send [14:44:58]OFD Sender: No OFD packet to send [14:45:03]OFD Sender: No OFD packet to send [14:45:08]OFD Sender: No OFD packet to send [14:45:13]OFD Sender: No OFD packet to send [14:45:18]OFD Sender: No OFD packet to send [14:45:23]OFD Sender: No OFD packet to send [14:45:28]OFD Sender: No OFD packet to send [14:45:33]OFD Sender: No OFD packet to send [14:45:38]OFD Sender: No OFD packet to send [14:45:43]OFD Sender: No OFD packet to send [14:45:48]OFD Sender: No OFD packet to send [14:45:53]OFD Sender: No OFD packet to send [14:45:58]OFD Sender: No OFD packet to send [14:46:03]OFD Sender: No OFD packet to send [14:46:08]OFD Sender: No OFD packet to send [14:46:13]OFD Sender: No OFD packet to send [14:46:18]OFD Sender: No OFD packet to send [14:46:23]OFD Sender: No OFD packet to send [14:46:28]OFD Sender: No OFD packet to send [14:46:33]OFD Sender: No OFD packet to send [14:46:38]OFD Sender: No OFD packet to send [14:46:43]OFD Sender: No OFD packet to send [14:46:48]OFD Sender: No OFD packet to send [14:46:53]OFD Sender: No OFD packet to send [14:46:58]OFD Sender: No OFD packet to send [14:47:03]OFD Sender: No OFD packet to send [14:47:09]OFD Sender: No OFD packet to send [14:47:14]OFD Sender: No OFD packet to send [14:47:19]OFD Sender: No OFD packet to send [14:47:24]OFD Sender: No OFD packet to send [14:47:29]OFD Sender: No OFD packet to send [14:47:34]OFD Sender: No OFD packet to send [14:47:39]OFD Sender: No OFD packet to send [14:47:44]OFD Sender: No OFD packet to send [14:47:49]OFD Sender: No OFD packet to send [14:47:54]OFD Sender: No OFD packet to send [14:47:59]OFD Sender: No OFD packet to send [14:48:04]OFD Sender: No OFD packet to send [14:48:09]OFD Sender: No OFD packet to send [14:48:14]OFD Sender: No OFD packet to send [14:48:19]OFD Sender: No OFD packet to send [14:48:24]OFD Sender: No OFD packet to send [14:48:29]OFD Sender: No OFD packet to send [14:48:34]OFD Sender: No OFD packet to send [14:48:39]OFD Sender: No OFD packet to send [14:48:44]OFD Sender: No OFD packet to send [14:48:49]OFD Sender: No OFD packet to send [14:48:54]OFD Sender: No OFD packet to send [14:48:59]OFD Sender: No OFD packet to send [14:49:04]OFD Sender: No OFD packet to send [14:49:09]OFD Sender: No OFD packet to send [14:49:14]OFD Sender: No OFD packet to send [14:49:19]OFD Sender: No OFD packet to send [14:49:24]OFD Sender: No OFD packet to send [14:49:29]OFD Sender: No OFD packet to send [14:49:34]OFD Sender: No OFD packet to send [14:49:39]OFD Sender: No OFD packet to send [14:49:44]OFD Sender: No OFD packet to send [14:49:49]OFD Sender: No OFD packet to send [14:49:54]OFD Sender: No OFD packet to send [14:49:59]OFD Sender: No OFD packet to send [14:50:04]OFD Sender: No OFD packet to send [14:50:09]OFD Sender: No OFD packet to send [14:50:14]OFD Sender: No OFD packet to send [14:50:19]OFD Sender: No OFD packet to send [14:50:24]OFD Sender: No OFD packet to send [14:50:29]OFD Sender: No OFD packet to send [14:50:34]OFD Sender: No OFD packet to send [14:50:39]OFD Sender: No OFD packet to send [14:50:44]OFD Sender: No OFD packet to send [14:50:49]OFD Sender: No OFD packet to send [14:50:54]OFD Sender: No OFD packet to send [14:50:59]OFD Sender: No OFD packet to send [14:51:04]OFD Sender: No OFD packet to send [14:51:09]OFD Sender: No OFD packet to send [14:51:14]OFD Sender: No OFD packet to send [14:51:19]OFD Sender: No OFD packet to send [14:51:24]OFD Sender: No OFD packet to send [14:51:29]OFD Sender: No OFD packet to send [14:51:34]OFD Sender: No OFD packet to send [14:51:39]OFD Sender: No OFD packet to send [14:51:44]OFD Sender: No OFD packet to send [14:51:49]OFD Sender: No OFD packet to send [14:51:54]OFD Sender: No OFD packet to send [14:51:59]OFD Sender: No OFD packet to send [14:52:04]OFD Sender: No OFD packet to send [14:52:09]OFD Sender: No OFD packet to send [14:52:14]OFD Sender: No OFD packet to send [14:52:19]OFD Sender: No OFD packet to send [14:52:24]OFD Sender: No OFD packet to send [14:52:29]OFD Sender: No OFD packet to send [14:52:34]OFD Sender: No OFD packet to send [14:52:39]OFD Sender: No OFD packet to send [14:52:44]OFD Sender: No OFD packet to send [14:52:49]OFD Sender: No OFD packet to send [14:52:54]OFD Sender: No OFD packet to send [14:52:59]OFD Sender: No OFD packet to send [14:53:04]OFD Sender: No OFD packet to send [14:53:09]OFD Sender: No OFD packet to send [14:53:14]OFD Sender: No OFD packet to send [14:53:19]OFD Sender: No OFD packet to send [14:53:24]OFD Sender: No OFD packet to send [14:53:29]OFD Sender: No OFD packet to send [14:53:34]OFD Sender: No OFD packet to send [14:53:39]OFD Sender: No OFD packet to send [14:53:44]OFD Sender: No OFD packet to send [14:53:49]OFD Sender: No OFD packet to send [14:53:54]OFD Sender: No OFD packet to send [14:53:59]OFD Sender: No OFD packet to send [14:54:04]OFD Sender: No OFD packet to send [14:54:09]OFD Sender: No OFD packet to send [14:54:14]OFD Sender: No OFD packet to send [14:54:19]OFD Sender: No OFD packet to send [14:54:24]OFD Sender: No OFD packet to send [14:54:29]OFD Sender: No OFD packet to send [14:54:34]OFD Sender: No OFD packet to send [14:54:39]OFD Sender: No OFD packet to send [14:54:44]OFD Sender: No OFD packet to send [14:54:49]OFD Sender: No OFD packet to send [14:54:54]OFD Sender: No OFD packet to send [14:54:59]OFD Sender: No OFD packet to send [14:55:04]OFD Sender: No OFD packet to send [14:55:09]OFD Sender: No OFD packet to send [14:55:14]OFD Sender: No OFD packet to send [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:39]OFD Sender: No OFD packet to send [15:01:44]OFD Sender: No OFD packet to send [15:01:49]OFD Sender: No OFD packet to send [15:01:54]OFD Sender: No OFD packet to send [15:01:59]OFD Sender: No OFD packet to send [15:02:04]OFD Sender: No OFD packet to send [15:02:09]OFD Sender: No OFD packet to send [15:02:14]OFD Sender: No OFD packet to send [15:02:19]OFD Sender: No OFD packet to send [15:02:24]OFD Sender: No OFD packet to send [15:02:29]OFD Sender: No OFD packet to send [15:02:34]OFD Sender: No OFD packet to send [15:02:39]OFD Sender: No OFD packet to send [15:02:44]OFD Sender: No OFD packet to send [15:02:49]OFD Sender: No OFD packet to send [15:02:54]OFD Sender: No OFD packet to send [15:02:59]OFD Sender: No OFD packet to send [15:03:04]OFD Sender: No OFD packet to send [15:03:09]OFD Sender: No OFD packet to send [15:03:14]OFD Sender: No OFD packet to send [15:03:19]OFD Sender: No OFD packet to send [15:03:24]OFD Sender: No OFD packet to send [15:03:29]OFD Sender: No OFD packet to send [15:03:34]OFD Sender: No OFD packet to send [15:03:39]OFD Sender: No OFD packet to send [15:03:44]OFD Sender: No OFD packet to send [15:03:49]OFD Sender: No OFD packet to send [15:03:54]OFD Sender: No OFD packet to send [15:03:59]OFD Sender: No OFD packet to send [15:04:04]OFD Sender: No OFD packet to send [15:04:09]OFD Sender: No OFD packet to send [15:04:14]OFD Sender: No OFD packet to send [15:04:19]OFD Sender: No OFD packet to send [15:04:24]OFD Sender: No OFD packet to send [15:04:29]OFD Sender: No OFD packet to send [15:04:34]OFD Sender: No OFD packet to send [15:04:39]OFD Sender: No OFD packet to send [15:04:44]OFD Sender: No OFD packet to send [15:04:49]OFD Sender: No OFD packet to send [15:04:54]OFD Sender: No OFD packet to send [15:04:59]OFD Sender: No OFD packet to send [15:05:04]OFD Sender: No OFD packet to send [15:05:09]OFD Sender: No OFD packet to send [15:05:14]OFD Sender: No OFD packet to send [15:05:19]OFD Sender: No OFD packet to send [15:05:24]OFD Sender: No OFD packet to send [15:05:29]OFD Sender: No OFD packet to send [15:05:34]OFD Sender: No OFD packet to send [15:05:39]OFD Sender: No OFD packet to send [15:05:44]OFD Sender: No OFD packet to send [15:05:50]OFD Sender: No OFD packet to send [15:05:55]OFD Sender: No OFD packet to send [15:06:00]OFD Sender: No OFD packet to send [15:06:05]OFD Sender: No OFD packet to send [15:06:10]OFD Sender: No OFD packet to send [15:06:15]OFD Sender: No OFD packet to send [15:06:20]OFD Sender: No OFD packet to send [15:06:25]OFD Sender: No OFD packet to send [15:06:30]OFD Sender: No OFD packet to send [15:06:35]OFD Sender: No OFD packet to send [15:06:40]OFD Sender: No OFD packet to send [15:06:45]OFD Sender: No OFD packet to send [15:06:50]OFD Sender: No OFD packet to send [15:06:55]OFD Sender: No OFD packet to send [15:07:00]OFD Sender: No OFD packet to send [15:07:05]OFD Sender: No OFD packet to send [15:07:10]OFD Sender: No OFD packet to send [15:07:15]OFD Sender: No OFD packet to send [15:07:20]OFD Sender: No OFD packet to send [15:07:25]OFD Sender: No OFD packet to send [15:07:30]OFD Sender: No OFD packet to send [15:07:35]OFD Sender: No OFD packet to send [15:07:40]OFD Sender: No OFD packet to send [15:07:45]OFD Sender: No OFD packet to send [15:07:50]OFD Sender: No OFD packet to send [15:07:55]OFD Sender: No OFD packet to send [15:08:00]OFD Sender: No OFD packet to send [15:08:05]OFD Sender: No OFD packet to send [15:08:10]OFD Sender: No OFD packet to send [15:08:15]OFD Sender: No OFD packet to send [15:08:20]OFD Sender: No OFD packet to send [15:08:25]OFD Sender: No OFD packet to send [15:08:30]OFD Sender: No OFD packet to send [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:20]accept exits with 9 [15:10:20]New connection [15:10:20]New thread 3067219300 created [15:10:20]Thread 3067362660 joined [15:10:20]Waiting for new connection... [15:10:20] Sock 9.Parse request [15:10:20]Sock 9.Check first char [15:10:20]Sock 9.First char is OK [15:10:20]request: POST /json_proto HTTP/1.0 [15:10:20]Method: POST [15:10:20]URL: /json_proto [15:10:20]Method is POST - this is cgi request [15:10:20]url: /json_proto [15:10:20]query_string will be loaded in cgi processing [15:10:20]execute_cgi json_proto POST (null) [15:10:20]execute_cgi path=json_proto method=POST [15:10:20]POST find Content-Length [15:10:20]Host: 172.17.44.195:8080 [15:10:20]Content-Length: 680 [15:10:20]Content-Type: application/json [15:10:20] [15:10:20]POST finish read [15:10:20]Found Content-Length = 680 [15:10:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963088", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:20]execute_script... [15:10:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963088", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:20]POST & json_proto [15:10:20]process_json_proto [15:10:20]json parsed OK: [15:10:20]protocol is kg_v1.0 [15:10:20]action value=close_receipt [15:10:20]process_action close_receipt [15:10:20]cmd_close_receipt [15:10:20]MH_GetDate [15:10:20]Write to MH i2c: F0 00 00 D1 04 C4 [15:10:20]Write i2c OK [15:10:20]MH_I2C_Read... [15:10:20]Read from MH i2c: F0 [15:10:20]MH_I2C_Read... [15:10:20]Read from MH i2c: F0 09 00 [15:10:20]MH_I2C_Read... [15:10:20]Read from MH i2c: F0 09 00 D1 04 00 5D 1D 15 67 82 C9 CF 66 43 [15:10:20]GetLastDocTimeStamp 1729435081 [15:10:20]current date 1729437021 [15:10:20]FM_GetShiftState [15:10:20]SAM_PROTO_GetShiftState [15:10:20]wFMCommunicate request_size=4 [15:10:20]MH_SAM_APDU [15:10:20]CAPDU: 80 13 01 00 [15:10:20]Write to MH i2c: E2 08 00 D2 04 80 13 01 00 00 00 00 00 53 [15:10:20]Write i2c OK [15:10:20]MH_I2C_Read... [15:10:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:20]Read from MH i2c: E2 [15:10:20]MH_I2C_Read... [15:10:20]Read from MH i2c: E2 0E 00 [15:10:20]MH_I2C_Read... [15:10:20]Read from MH i2c: E2 0E 00 D2 04 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 6D [15:10:20]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [15:10:20]wFMCommunicate OK [15:10:20]SAM_PROTO_GetShiftState done [15:10:20]FM_GetShiftState done [15:10:20]opened in 1729383750 [15:10:20]opened+sec_in_day 1729470150 [15:10:20]quantity*price = 150037 [15:10:20]sum+1 = 150039 [15:10:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 358 20.10.2024 15:10 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227510 ФПД: 66320366190150 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T151021&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227510&fm=66320366190150&tin=02508201610067®Number=0000000000091685&sum=150000 [15:10:21]StoreToDocumentArchive [15:10:21]shift 533 fd 227510 [15:10:21]save to /storage/0533/doc_00227510 [15:10:21]save last doc name /storage/0533/doc_00227510 to /storage/kkm_last_doc_name [15:10:21]save OK [15:10:21]Clear old archive folders... [15:10:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:10:21]tlvbuf is 00D7B3A0 [15:10:21]SAM_PROTO_ClearQueue [15:10:21]wFMCommunicate request_size=4 [15:10:21]MH_SAM_APDU [15:10:21]CAPDU: 80 09 00 00 [15:10:21]Write to MH i2c: E2 08 00 DF 04 80 09 00 00 00 00 00 00 55 [15:10:21]Write i2c OK [15:10:21]MH_I2C_Read... [15:10:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:10:21]Read from MH i2c: E2 [15:10:21]MH_I2C_Read... [15:10:21]Read from MH i2c: E2 03 00 [15:10:21]MH_I2C_Read... [15:10:21]Read from MH i2c: E2 03 00 DF 04 00 90 00 57 [15:10:21]RAPDU: 90 00 [15:10:21]wFMCommunicate OK [15:10:21]SAM_PROTO_ClearQueue done [15:10:21]KKMCreateOFDPacket [15:10:21]OFDProtocolAddRootSTLVToBuf [15:10:21]FM_MakeSignedData [15:10:21]FM_MakeSignedData [15:10:21]SAM_PROTO_SignData [15:10:21]wFMCommunicate request_size=4 [15:10:21]MH_SAM_APDU [15:10:21]CAPDU: 80 0D 01 02 [15:10:21]Write to MH i2c: E2 08 00 E0 04 80 0D 01 02 00 00 00 00 5D [15:10:21]Write i2c OK [15:10:21]MH_I2C_Read... [15:10:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:10:21]Read from MH i2c: E2 [15:10:21]MH_I2C_Read... [15:10:21]Read from MH i2c: E2 03 00 [15:10:21]MH_I2C_Read... [15:10:21]Read from MH i2c: E2 03 00 E0 04 00 90 00 58 [15:10:21]RAPDU: 90 00 [15:10:21]wFMCommunicate OK [15:10:21]wFMCommunicate request_size=255 [15:10:21]MH_SAM_APDU [15:10:21]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 01 00 00 F4 03 04 00 5D 1D 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B6 78 03 00 35 04 06 00 3C 51 69 DE [15:10:21]Write to MH i2c: E2 02 01 E1 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 01 00 00 F4 03 04 00 5D 1D 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B6 78 03 00 35 04 06 00 3C 51 69 DE 00 00 DA [15:10:21]Write i2c OK [15:10:21]MH_I2C_Read... [15:10:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:22]Read from MH i2c: E2 [15:10:22]MH_I2C_Read... [15:10:22]Read from MH i2c: E2 03 00 [15:10:22]MH_I2C_Read... [15:10:22]Read from MH i2c: E2 03 00 E1 04 00 90 00 59 [15:10:22]RAPDU: 90 00 [15:10:22]wFMCommunicate OK [15:10:22]wFMCommunicate request_size=7 [15:10:22]MH_SAM_APDU [15:10:22]CAPDU: 80 0D 02 02 02 3E 46 [15:10:22]Write to MH i2c: E2 0A 00 E2 04 80 0D 02 02 02 00 3E 46 00 00 E8 [15:10:22]Write i2c OK [15:10:22]MH_I2C_Read... [15:10:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:22]Read from MH i2c: E2 [15:10:22]MH_I2C_Read... [15:10:22]Read from MH i2c: E2 03 00 [15:10:22]MH_I2C_Read... [15:10:22]Read from MH i2c: E2 03 00 E2 04 00 90 00 5A [15:10:22]RAPDU: 90 00 [15:10:22]wFMCommunicate OK [15:10:22]wFMCommunicate request_size=4 [15:10:22]MH_SAM_APDU [15:10:22]CAPDU: 80 0D 03 02 [15:10:22]Write to MH i2c: E2 08 00 E3 04 80 0D 03 02 00 00 00 00 62 [15:10:22]Write i2c OK [15:10:22]MH_I2C_Read... [15:10:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:10:22]Read from MH i2c: E2 [15:10:22]MH_I2C_Read... [15:10:22]Read from MH i2c: E2 0B 00 [15:10:22]MH_I2C_Read... [15:10:22]Read from MH i2c: E2 0B 00 E3 04 00 D8 7B 47 0C 7A 1A 57 6E 90 00 62 [15:10:22]RAPDU: D8 7B 47 0C 7A 1A 57 6E 90 00 [15:10:22]wFMCommunicate OK [15:10:22]SAM_PROTO_SignData done [15:10:22]FM_MakeSignedData done [15:10:22]CreateOFDProtocolMessage [15:10:22]wFMCommunicate request_size=4 [15:10:22]MH_SAM_APDU [15:10:22]CAPDU: 80 11 00 00 [15:10:22]Write to MH i2c: E2 08 00 E4 04 80 11 00 00 00 00 00 00 62 [15:10:22]Write i2c OK [15:10:22]MH_I2C_Read... [15:10:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:22]Read from MH i2c: E2 [15:10:22]MH_I2C_Read... [15:10:22]Read from MH i2c: E2 17 00 [15:10:22]MH_I2C_Read... [15:10:22]Read from MH i2c: E2 17 00 E4 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B9 [15:10:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:10:22]wFMCommunicate OK [15:10:22]CreateOFDProtocolMessage done [15:10:22]OFDSenderStorePacket 227510 [15:10:22]StoreOFDPacket docnum=227510 [15:10:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 BF 37 04 01 DB 8D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 01 00 00 F4 03 04 00 5D 1D 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B6 78 03 00 35 04 06 00 3C 51 69 DE 3E 46 D8 7B 47 0C 7A 1A 57 6E [15:10:22]CheckFolder [15:10:22]dirname=/storage/ofd_packets [15:10:22]CheckFolder done [15:10:22]ProducePacketName [15:10:22]name=ofd_packets/00227510 [15:10:22]NVStorageSaveData ofd_packets/00227510 [15:10:22]File name is /storage/ofd_packets/00227510 [15:10:22]Write 298 bytes [15:10:22]NVStorageSaveData done [15:10:22]OFDSenderStorePacket done [15:10:22]KKMCreateOFDPacket done [15:10:22]NVStorageSaveData kkm_last_timestamp [15:10:22]File name is /storage/kkm_last_timestamp [15:10:22]Write 4 bytes [15:10:22]NVStorageSaveData done [15:10:22]ExternCall_PrintAddStr [15:10:22]wPrintStart [15:10:22]Write to MH i2c: 01 00 00 E5 04 E9 [15:10:22]Write i2c OK [15:10:22]MH_I2C_Read... [15:10:22]Read from MH i2c: 01 [15:10:22]MH_I2C_Read... [15:10:22]Read from MH i2c: 01 07 00 [15:10:22]MH_I2C_Read... [15:10:22]Read from MH i2c: 01 07 00 E5 04 00 00 00 00 00 FF 0F FE [15:10:22]RasterBufferAndPrint [15:10:22]line Счет N : (1)1963088 [15:10:22]line ИНН: 02508201610067 [15:10:22]line Контрольно-Кассовый Чек [15:10:22]line ПРОДАЖА [15:10:22]line ТРК (МРК, ГНК) : 21 [15:10:22]line Товар: 2710194210 [15:10:22]line ДТ-К-5 [15:10:22]line 19.690 * 76.20 [15:10:22]line = 1500.38 [15:10:22]line НДС 12% НСП 1% [15:10:22]line > о реализуемом товаре [15:10:22]line ОКРУГЛЕНИЕ: -0.38 [15:10:22]line ИТОГО: 1500.00 [15:10:22]line Внесено: 1500.00 [15:10:22]line СДАЧА: 0.00 [15:10:22]line НСП 1% : 13.28 [15:10:22]line НДС 12% : 159.33 [15:10:22]line Наличными: 1500.00 [15:10:22]line Безнал.: 0.00 [15:10:22]line Место: АЗС № 133 "Партнер Нефть" [15:10:22]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [15:10:22]line СНО: Общий режим [15:10:22]line Чек 358 20.10.2024 15:10 [15:10:22]line Смена: 533 ФФД: 1.0 [15:10:22]line ЗНМ: 0300000091 [15:10:22]line РНМ: 0000000000091685 [15:10:22]line Версия ККМ: 001 [15:10:22]line ФМ: 0000000000871839 [15:10:22]line ФД: 227510 [15:10:22]line ФПД: 66320366190150 [15:10:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T151021&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227510&fm=66320366190150&tin=02508201610067®Number=0000000000091685&sum=150000 [15:10:22]OFD Sender: Processing packet 227510 [packets to send 38, broken 37] [15:10:22]ProducePacketName [15:10:22]name=ofd_packets/00227510 [15:10:22]OFD Sender: To server: pG, [15:10:22]CommunicateWithHost lk.salyk.kg:30040 [15:10:22]ConnectInit lk.salyk.kg [15:10:22]written 0, free lines is 4095 [15:10:22]Connected sock=10 [15:10:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 BF 37 04 01 DB 8D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 01 00 00 F4 03 04 00 5D 1D 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B6 78 03 00 35 04 06 00 3C 51 69 DE 3E 46 D8 7B 47 0C 7A 1A 57 6E [15:10: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 33 39 4F 00 00 00 5E FD 47 00 4F 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 33 39 10 04 04 00 B6 78 03 00 F4 03 04 00 5C C8 14 67 B6 04 01 00 00 85 14 F7 4F AB FD 3F FB [15:10:22]CommunicateWithHost err = 0 [15:10:22]CheckOFDResponse [15:10:22]1017 (14) - 77093643461234 [15:10:22]1041 (16) - 0000000000871839 [15:10:22]1040 (4) - 227510 [15:10:22]1012 (4) - 20.10.2024 09:07 [15:10:22]1206 (1) - 0 [15:10:22]OFD Sender: Remove packet 227510 [15:10:22]ProducePacketName [15:10:22]name=ofd_packets/00227510 [15:10:22]NVStorageDeleteData [15:10:23]Write to MH i2c: 01 00 00 0F 05 14 [15:10:23]Write i2c OK [15:10:23]MH_I2C_Read... [15:10:23]Read from MH i2c: 01 [15:10:23]MH_I2C_Read... [15:10:23]Read from MH i2c: 01 07 00 [15:10:23]MH_I2C_Read... [15:10:23]Read from MH i2c: 01 07 00 0F 05 00 00 00 00 00 0A 0D 32 [15:10:23]RasterBufferAndPrint [15:10:23]line [15:10:23]line [15:10:23]line [15:10:23]line [15:10:23]line [15:10:23]written 0, free lines is 3344 [15:10:23]process_action close_receipt done [15:10:23]requested_data is exist [15:10:23]produce_requested_data [15:10:23]requested_item fm.sn is exist - process it [15:10:23]wFMCommunicate request_size=4 [15:10:23]MH_SAM_APDU [15:10:23]CAPDU: 80 11 00 00 [15:10:23]Write to MH i2c: E2 08 00 16 05 80 11 00 00 00 00 00 00 95 [15:10:23]Write i2c OK [15:10:23]MH_I2C_Read... [15:10:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:23]Read from MH i2c: E2 [15:10:23]MH_I2C_Read... [15:10:23]Read from MH i2c: E2 17 00 [15:10:23]MH_I2C_Read... [15:10:23]Read from MH i2c: E2 17 00 16 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 EC [15:10:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:10:23]wFMCommunicate OK [15:10:23]requested_item fd.num is exist - process it [15:10:23]SAM_PROTO_GetFieldsCounters [15:10:23]wFMCommunicate request_size=4 [15:10:23]MH_SAM_APDU [15:10:23]CAPDU: 80 13 00 00 [15:10:23]Write to MH i2c: E2 08 00 17 05 80 13 00 00 00 00 00 00 98 [15:10:23]Write i2c OK [15:10:23]MH_I2C_Read... [15:10:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:10:23]Read from MH i2c: E2 [15:10:23]MH_I2C_Read... [15:10:23]Read from MH i2c: E2 62 00 [15:10:23]MH_I2C_Read... [15:10:23]Read from MH i2c: E2 62 00 17 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 B6 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 66 01 00 00 5E 04 04 00 66 01 00 00 57 04 04 00 67 01 00 00 19 04 04 00 00 00 00 00 90 00 3E [15:10: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 B6 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 66 01 00 00 5E 04 04 00 66 01 00 00 57 04 04 00 67 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:10:23]wFMCommunicate OK [15:10:23]SAM_PROTO_GetFieldsCounters done [15:10:23]requested_item shift.num is exist - process it [15:10:23]requested_item shift.opened is exist - process it [15:10:23]req_shift_opened [15:10:23]FM_GetShiftState [15:10:23]SAM_PROTO_GetShiftState [15:10:23]wFMCommunicate request_size=4 [15:10:23]MH_SAM_APDU [15:10:23]CAPDU: 80 13 01 00 [15:10:23]Write to MH i2c: E2 08 00 18 05 80 13 01 00 00 00 00 00 9A [15:10:23]Write i2c OK [15:10:23]MH_I2C_Read... [15:10:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:23]Read from MH i2c: E2 [15:10:23]MH_I2C_Read... [15:10:23]Read from MH i2c: E2 0E 00 [15:10:23]MH_I2C_Read... [15:10:23]Read from MH i2c: E2 0E 00 18 05 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 B4 [15:10:23]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [15:10:23]wFMCommunicate OK [15:10:23]SAM_PROTO_GetShiftState done [15:10:23]FM_GetShiftState done [15:10:23]req_shift_opened done [15:10:23]requested_item shift.open_date is exist - process it [15:10:23]req_shift_open_date [15:10:23]req_shift_open_date done [15:10:23]produce_requested_data done [15:10:23]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227510,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [15:10:23]process_action_free close_receipt [15:10:23]json_value_free [15:10:23]json_value_free done [15:10:23]process_json_proto returns [15:10:23]Send response to host [15:10:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227510,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [15:10:23]free response buf [15:10:23]execute_script done [15:10:23]execute_script returns [15:10:23]free content buf [15:10:23]Sock 9.Close socket [15:10:23]Sock 9.Thread stoped [15:10:23]OFD Sender: No OFD packet to send [15:10:28]OFD Sender: No OFD packet to send [15:10:33]OFD Sender: No OFD packet to send [15:10:38]OFD Sender: No OFD packet to send [15:10:43]OFD Sender: No OFD packet to send [15:10:48]OFD Sender: No OFD packet to send [15:10:53]OFD Sender: No OFD packet to send [15:10:58]OFD Sender: No OFD packet to send [15:11:03]OFD Sender: No OFD packet to send [15:11:08]OFD Sender: No OFD packet to send [15:11:13]OFD Sender: No OFD packet to send [15:11:18]OFD Sender: No OFD packet to send [15:11:23]OFD Sender: No OFD packet to send [15:11:28]OFD Sender: No OFD packet to send [15:11:33]OFD Sender: No OFD packet to send [15:11:38]OFD Sender: No OFD packet to send [15:11:43]OFD Sender: No OFD packet to send [15:11:48]OFD Sender: No OFD packet to send [15:11:53]OFD Sender: No OFD packet to send [15:11:58]OFD Sender: No OFD packet to send [15:12:03]OFD Sender: No OFD packet to send [15:12:08]OFD Sender: No OFD packet to send [15:12:13]OFD Sender: No OFD packet to send [15:12:18]OFD Sender: No OFD packet to send [15:12:23]OFD Sender: No OFD packet to send [15:12:28]OFD Sender: No OFD packet to send [15:12:33]OFD Sender: No OFD packet to send [15:12:38]OFD Sender: No OFD packet to send [15:12:43]OFD Sender: No OFD packet to send [15:12:48]OFD Sender: No OFD packet to send [15:12:53]OFD Sender: No OFD packet to send [15:12:58]OFD Sender: No OFD packet to send [15:13:03]OFD Sender: No OFD packet to send [15:13:08]OFD Sender: No OFD packet to send [15:13:13]OFD Sender: No OFD packet to send [15:13:18]OFD Sender: No OFD packet to send [15:13:23]OFD Sender: No OFD packet to send [15:13:28]OFD Sender: No OFD packet to send [15:13:33]OFD Sender: No OFD packet to send [15:13:38]OFD Sender: No OFD packet to send [15:13:43]OFD Sender: No OFD packet to send [15:13:48]OFD Sender: No OFD packet to send [15:13:53]OFD Sender: No OFD packet to send [15:13:58]OFD Sender: No OFD packet to send [15:14:03]OFD Sender: No OFD packet to send [15:14:08]OFD Sender: No OFD packet to send [15:14:13]OFD Sender: No OFD packet to send [15:14:18]OFD Sender: No OFD packet to send [15:14:23]OFD Sender: No OFD packet to send [15:14:28]OFD Sender: No OFD packet to send [15:14:33]OFD Sender: No OFD packet to send [15:14:38]OFD Sender: No OFD packet to send [15:14:43]OFD Sender: No OFD packet to send [15:14:48]OFD Sender: No OFD packet to send [15:14:53]OFD Sender: No OFD packet to send [15:14:58]OFD Sender: No OFD packet to send [15:15:03]OFD Sender: No OFD packet to send [15:15:08]OFD Sender: No OFD packet to send [15:15:13]OFD Sender: No OFD packet to send [15:15:18]OFD Sender: No OFD packet to send [15:15:23]OFD Sender: No OFD packet to send [15:15:28]OFD Sender: No OFD packet to send [15:15:33]OFD Sender: No OFD packet to send [15:15:38]OFD Sender: No OFD packet to send [15:15:43]OFD Sender: No OFD packet to send [15:15:48]OFD Sender: No OFD packet to send [15:15:53]OFD Sender: No OFD packet to send [15:15:58]OFD Sender: No OFD packet to send [15:16:03]OFD Sender: No OFD packet to send [15:16:08]OFD Sender: No OFD packet to send [15:16:13]OFD Sender: No OFD packet to send [15:16:18]OFD Sender: No OFD packet to send [15:16:23]OFD Sender: No OFD packet to send [15:16:28]OFD Sender: No OFD packet to send [15:16:33]OFD Sender: No OFD packet to send [15:16:38]accept exits with 7 [15:16:38]New connection [15:16:38]New thread 3067362660 created [15:16:38]Thread 3067219300 joined [15:16:38]Waiting for new connection... [15:16:38] Sock 7.Parse request [15:16:38]Sock 7.Check first char [15:16:38]Sock 7.First char is OK [15:16:38]request: POST /json_proto HTTP/1.0 [15:16:38]Method: POST [15:16:38]URL: /json_proto [15:16:38]Method is POST - this is cgi request [15:16:38]url: /json_proto [15:16:38]query_string will be loaded in cgi processing [15:16:38]execute_cgi json_proto POST (null) [15:16:38]execute_cgi path=json_proto method=POST [15:16:38]POST find Content-Length [15:16:38]Host: 172.17.44.195:8080 [15:16:38]Content-Length: 683 [15:16:38]Content-Type: application/json [15:16:38] [15:16:38]POST finish read [15:16:38]Found Content-Length = 683 [15:16:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963094", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:38]execute_script... [15:16:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963094", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:38]POST & json_proto [15:16:38]process_json_proto [15:16:38]json parsed OK: [15:16:38]protocol is kg_v1.0 [15:16:38]action value=close_receipt [15:16:38]process_action close_receipt [15:16:38]cmd_close_receipt [15:16:38]MH_GetDate [15:16:38]Write to MH i2c: F0 00 00 19 05 0D [15:16:38]Write i2c OK [15:16:38]MH_I2C_Read... [15:16:38]Read from MH i2c: F0 [15:16:38]MH_I2C_Read... [15:16:38]Read from MH i2c: F0 09 00 [15:16:38]MH_I2C_Read... [15:16:38]Read from MH i2c: F0 09 00 19 05 00 D7 1E 15 67 82 C9 CF 66 07 [15:16:38]GetLastDocTimeStamp 1729437021 [15:16:38]current date 1729437399 [15:16:38]FM_GetShiftState [15:16:38]SAM_PROTO_GetShiftState [15:16:38]wFMCommunicate request_size=4 [15:16:38]MH_SAM_APDU [15:16:38]CAPDU: 80 13 01 00 [15:16:38]Write to MH i2c: E2 08 00 1A 05 80 13 01 00 00 00 00 00 9C [15:16:38]Write i2c OK [15:16:38]MH_I2C_Read... [15:16:38]OFD Sender: No OFD packet to send [15:16:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:38]Read from MH i2c: E2 [15:16:38]MH_I2C_Read... [15:16:38]Read from MH i2c: E2 0E 00 [15:16:38]MH_I2C_Read... [15:16:38]Read from MH i2c: E2 0E 00 1A 05 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 B6 [15:16:38]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [15:16:38]wFMCommunicate OK [15:16:38]SAM_PROTO_GetShiftState done [15:16:38]FM_GetShiftState done [15:16:38]opened in 1729383750 [15:16:38]opened+sec_in_day 1729470150 [15:16:38]quantity*price = 100021 [15:16:38]sum+1 = 100023 [15:16:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 359 20.10.2024 15:16 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227511 ФПД: 213907191571946 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T151639&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227511&fm=213907191571946&tin=02508201610067®Number=0000000000091685&sum=100000 [15:16:39]StoreToDocumentArchive [15:16:39]shift 533 fd 227511 [15:16:39]save to /storage/0533/doc_00227511 [15:16:39]save last doc name /storage/0533/doc_00227511 to /storage/kkm_last_doc_name [15:16:39]save OK [15:16:39]Clear old archive folders... [15:16:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:16:39]tlvbuf is 00DD7940 [15:16:39]SAM_PROTO_ClearQueue [15:16:39]wFMCommunicate request_size=4 [15:16:39]MH_SAM_APDU [15:16:39]CAPDU: 80 09 00 00 [15:16:39]Write to MH i2c: E2 08 00 27 05 80 09 00 00 00 00 00 00 9E [15:16:39]Write i2c OK [15:16:39]MH_I2C_Read... [15:16:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:16:39]Read from MH i2c: E2 [15:16:39]MH_I2C_Read... [15:16:39]Read from MH i2c: E2 03 00 [15:16:39]MH_I2C_Read... [15:16:39]Read from MH i2c: E2 03 00 27 05 00 90 00 A0 [15:16:39]RAPDU: 90 00 [15:16:39]wFMCommunicate OK [15:16:39]SAM_PROTO_ClearQueue done [15:16:39]KKMCreateOFDPacket [15:16:39]OFDProtocolAddRootSTLVToBuf [15:16:39]FM_MakeSignedData [15:16:39]FM_MakeSignedData [15:16:39]SAM_PROTO_SignData [15:16:39]wFMCommunicate request_size=4 [15:16:39]MH_SAM_APDU [15:16:39]CAPDU: 80 0D 01 02 [15:16:39]Write to MH i2c: E2 08 00 28 05 80 0D 01 02 00 00 00 00 A6 [15:16:39]Write i2c OK [15:16:39]MH_I2C_Read... [15:16:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:16:40]Read from MH i2c: E2 [15:16:40]MH_I2C_Read... [15:16:40]Read from MH i2c: E2 03 00 [15:16:40]MH_I2C_Read... [15:16:40]Read from MH i2c: E2 03 00 28 05 00 90 00 A1 [15:16:40]RAPDU: 90 00 [15:16:40]wFMCommunicate OK [15:16:40]wFMCommunicate request_size=255 [15:16:40]MH_SAM_APDU [15:16: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 01 00 00 F4 03 04 00 D7 1E 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B7 78 03 00 35 04 06 00 C2 [15:16:40]Write to MH i2c: E2 02 01 29 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 01 00 00 F4 03 04 00 D7 1E 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B7 78 03 00 35 04 06 00 C2 00 00 3E [15:16:40]Write i2c OK [15:16:40]MH_I2C_Read... [15:16:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:40]Read from MH i2c: E2 [15:16:40]MH_I2C_Read... [15:16:40]Read from MH i2c: E2 03 00 [15:16:40]MH_I2C_Read... [15:16:40]Read from MH i2c: E2 03 00 29 05 00 90 00 A2 [15:16:40]RAPDU: 90 00 [15:16:40]wFMCommunicate OK [15:16:40]wFMCommunicate request_size=10 [15:16:40]MH_SAM_APDU [15:16:40]CAPDU: 80 0D 02 02 05 8C 26 2B 25 EA [15:16:40]Write to MH i2c: E2 0D 00 2A 05 80 0D 02 02 05 00 8C 26 2B 25 EA 00 00 9F [15:16:40]Write i2c OK [15:16:40]MH_I2C_Read... [15:16:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:40]Read from MH i2c: E2 [15:16:40]MH_I2C_Read... [15:16:40]Read from MH i2c: E2 03 00 [15:16:40]MH_I2C_Read... [15:16:40]Read from MH i2c: E2 03 00 2A 05 00 90 00 A3 [15:16:40]RAPDU: 90 00 [15:16:40]wFMCommunicate OK [15:16:40]wFMCommunicate request_size=4 [15:16:40]MH_SAM_APDU [15:16:40]CAPDU: 80 0D 03 02 [15:16:40]Write to MH i2c: E2 08 00 2B 05 80 0D 03 02 00 00 00 00 AB [15:16:40]Write i2c OK [15:16:40]MH_I2C_Read... [15:16:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:16:40]Read from MH i2c: E2 [15:16:40]MH_I2C_Read... [15:16:40]Read from MH i2c: E2 0B 00 [15:16:40]MH_I2C_Read... [15:16:40]Read from MH i2c: E2 0B 00 2B 05 00 E6 6B A0 95 C7 30 BB 33 90 00 17 [15:16:40]RAPDU: E6 6B A0 95 C7 30 BB 33 90 00 [15:16:40]wFMCommunicate OK [15:16:40]SAM_PROTO_SignData done [15:16:40]FM_MakeSignedData done [15:16:40]CreateOFDProtocolMessage [15:16:40]wFMCommunicate request_size=4 [15:16:40]MH_SAM_APDU [15:16:40]CAPDU: 80 11 00 00 [15:16:40]Write to MH i2c: E2 08 00 2C 05 80 11 00 00 00 00 00 00 AB [15:16:40]Write i2c OK [15:16:40]MH_I2C_Read... [15:16:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:40]Read from MH i2c: E2 [15:16:40]MH_I2C_Read... [15:16:40]Read from MH i2c: E2 17 00 [15:16:40]MH_I2C_Read... [15:16:40]Read from MH i2c: E2 17 00 2C 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 02 [15:16:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:16:40]wFMCommunicate OK [15:16:40]CreateOFDProtocolMessage done [15:16:40]OFDSenderStorePacket 227511 [15:16:40]StoreOFDPacket docnum=227511 [15:16:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 AD 9E 07 01 4A 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 01 00 00 F4 03 04 00 D7 1E 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B7 78 03 00 35 04 06 00 C2 8C 26 2B 25 EA E6 6B A0 95 C7 30 BB 33 [15:16:40]CheckFolder [15:16:40]dirname=/storage/ofd_packets [15:16:40]CheckFolder done [15:16:40]ProducePacketName [15:16:40]name=ofd_packets/00227511 [15:16:40]NVStorageSaveData ofd_packets/00227511 [15:16:40]File name is /storage/ofd_packets/00227511 [15:16:40]Write 301 bytes [15:16:40]NVStorageSaveData done [15:16:40]OFDSenderStorePacket done [15:16:40]KKMCreateOFDPacket done [15:16:40]NVStorageSaveData kkm_last_timestamp [15:16:40]File name is /storage/kkm_last_timestamp [15:16:40]Write 4 bytes [15:16:40]NVStorageSaveData done [15:16:40]ExternCall_PrintAddStr [15:16:40]wPrintStart [15:16:40]Write to MH i2c: 01 00 00 2D 05 32 [15:16:40]Write i2c OK [15:16:40]MH_I2C_Read... [15:16:40]Read from MH i2c: 01 [15:16:40]MH_I2C_Read... [15:16:40]Read from MH i2c: 01 07 00 [15:16:40]MH_I2C_Read... [15:16:40]Read from MH i2c: 01 07 00 2D 05 00 00 00 00 00 FF 0F 47 [15:16:40]RasterBufferAndPrint [15:16:40]line Счет N : (1)1963094 [15:16:40]line ИНН: 02508201610067 [15:16:40]line Контрольно-Кассовый Чек [15:16:40]line ПРОДАЖА [15:16:40]line ТРК (МРК, ГНК) : 34 [15:16:40]line Товар: 2710124500 [15:16:40]line Аи-95-К-5 [15:16:40]line 13.480 * 74.20 [15:16:40]line = 1000.22 [15:16:40]line НДС 12% НСП 1% [15:16:40]line > о реализуемом товаре [15:16:40]line ОКРУГЛЕНИЕ: -0.22 [15:16:40]line ИТОГО: 1000.00 [15:16:40]line Внесено: 1000.00 [15:16:40]line СДАЧА: 0.00 [15:16:40]line НСП 1% : 8.85 [15:16:40]line НДС 12% : 106.22 [15:16:40]line Наличными: 1000.00 [15:16:40]line Безнал.: 0.00 [15:16:40]line Место: АЗС № 133 "Партнер Нефть" [15:16:40]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [15:16:40]line СНО: Общий режим [15:16:40]line Чек 359 20.10.2024 15:16 [15:16:40]line Смена: 533 ФФД: 1.0 [15:16:40]line ЗНМ: 0300000091 [15:16:40]line РНМ: 0000000000091685 [15:16:40]line Версия ККМ: 001 [15:16:40]line ФМ: 0000000000871839 [15:16:40]line ФД: 227511 [15:16:40]line ФПД: 213907191571946 [15:16:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T151639&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227511&fm=213907191571946&tin=02508201610067®Number=0000000000091685&sum=100000 [15:16:40]OFD Sender: Processing packet 227511 [packets to send 38, broken 37] [15:16:40]ProducePacketName [15:16:40]name=ofd_packets/00227511 [15:16:40]OFD Sender: To server: pG, [15:16:40]CommunicateWithHost lk.salyk.kg:30040 [15:16:40]ConnectInit lk.salyk.kg [15:16:40]written 0, free lines is 4095 [15:16:40]Connected sock=9 [15:16:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 AD 9E 07 01 4A 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 01 00 00 F4 03 04 00 D7 1E 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B7 78 03 00 35 04 06 00 C2 8C 26 2B 25 EA E6 6B A0 95 C7 30 BB 33 [15:16: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 33 39 4F 00 00 00 2C 6E 47 00 11 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B7 78 03 00 F4 03 04 00 D6 C9 14 67 B6 04 01 00 00 63 62 3B 88 12 1A 84 78 [15:16:41]CommunicateWithHost err = 0 [15:16:41]CheckOFDResponse [15:16:41]1017 (14) - 77093643461234 [15:16:41]1041 (16) - 0000000000871839 [15:16:41]1040 (4) - 227511 [15:16:41]1012 (4) - 20.10.2024 09:13 [15:16:41]1206 (1) - 0 [15:16:41]OFD Sender: Remove packet 227511 [15:16:41]ProducePacketName [15:16:41]name=ofd_packets/00227511 [15:16:41]NVStorageDeleteData [15:16:41]Write to MH i2c: 01 00 00 57 05 5C [15:16:41]Write i2c OK [15:16:41]MH_I2C_Read... [15:16:41]Read from MH i2c: 01 [15:16:41]MH_I2C_Read... [15:16:41]Read from MH i2c: 01 07 00 [15:16:41]MH_I2C_Read... [15:16:41]Read from MH i2c: 01 07 00 57 05 00 00 00 00 00 10 0D 80 [15:16:41]RasterBufferAndPrint [15:16:41]line [15:16:41]line [15:16:41]line [15:16:41]line [15:16:41]line [15:16:41]written 0, free lines is 3350 [15:16:41]process_action close_receipt done [15:16:41]requested_data is exist [15:16:41]produce_requested_data [15:16:41]requested_item fm.sn is exist - process it [15:16:41]wFMCommunicate request_size=4 [15:16:41]MH_SAM_APDU [15:16:41]CAPDU: 80 11 00 00 [15:16:41]Write to MH i2c: E2 08 00 5E 05 80 11 00 00 00 00 00 00 DD [15:16:41]Write i2c OK [15:16:41]MH_I2C_Read... [15:16:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:41]Read from MH i2c: E2 [15:16:41]MH_I2C_Read... [15:16:41]Read from MH i2c: E2 17 00 [15:16:41]MH_I2C_Read... [15:16:41]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 33 39 90 00 34 [15:16:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:16:41]wFMCommunicate OK [15:16:41]requested_item fd.num is exist - process it [15:16:41]SAM_PROTO_GetFieldsCounters [15:16:41]wFMCommunicate request_size=4 [15:16:41]MH_SAM_APDU [15:16:41]CAPDU: 80 13 00 00 [15:16:41]Write to MH i2c: E2 08 00 5F 05 80 13 00 00 00 00 00 00 E0 [15:16:41]Write i2c OK [15:16:41]MH_I2C_Read... [15:16:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:16:41]Read from MH i2c: E2 [15:16:41]MH_I2C_Read... [15:16:41]Read from MH i2c: E2 62 00 [15:16:41]MH_I2C_Read... [15:16:41]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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 B7 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 67 01 00 00 5E 04 04 00 67 01 00 00 57 04 04 00 68 01 00 00 19 04 04 00 00 00 00 00 90 00 8A [15: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 B7 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 67 01 00 00 5E 04 04 00 67 01 00 00 57 04 04 00 68 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:16:41]wFMCommunicate OK [15:16:41]SAM_PROTO_GetFieldsCounters done [15:16:41]requested_item shift.num is exist - process it [15:16:41]requested_item shift.opened is exist - process it [15:16:41]req_shift_opened [15:16:41]FM_GetShiftState [15:16:41]SAM_PROTO_GetShiftState [15:16:41]wFMCommunicate request_size=4 [15:16:41]MH_SAM_APDU [15:16:41]CAPDU: 80 13 01 00 [15:16:41]Write to MH i2c: E2 08 00 60 05 80 13 01 00 00 00 00 00 E2 [15:16:41]Write i2c OK [15:16:41]MH_I2C_Read... [15:16:41]Read from MH i2c: E2 [15:16:41]MH_I2C_Read... [15:16:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:41]Read from MH i2c: E2 0E 00 [15:16:41]MH_I2C_Read... [15:16:41]Read from MH i2c: E2 0E 00 60 05 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 FC [15:16:41]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [15:16:41]wFMCommunicate OK [15:16:41]SAM_PROTO_GetShiftState done [15:16:41]FM_GetShiftState done [15:16:41]req_shift_opened done [15:16:41]requested_item shift.open_date is exist - process it [15:16:41]req_shift_open_date [15:16:41]req_shift_open_date done [15:16:41]produce_requested_data done [15:16:41]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227511,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [15:16:41]process_action_free close_receipt [15:16:41]json_value_free [15:16:41]json_value_free done [15:16:41]process_json_proto returns [15:16:41]Send response to host [15:16:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227511,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [15:16:41]free response buf [15:16:41]execute_script done [15:16:41]execute_script returns [15:16:41]free content buf [15:16:41]Sock 7.Close socket [15:16:41]Sock 7.Thread stoped [15:16:41]OFD Sender: No OFD packet to send [15:16:45]accept exits with 10 [15:16:45]New connection [15:16:45]New thread 3067219300 created [15:16:45]Thread 3067362660 joined [15:16:45]Waiting for new connection... [15:16:45] Sock 10.Parse request [15:16:45]Sock 10.Check first char [15:16:45]Sock 10.First char is OK [15:16:45]request: POST /json_proto HTTP/1.0 [15:16:45]Method: POST [15:16:45]URL: /json_proto [15:16:45]Method is POST - this is cgi request [15:16:45]url: /json_proto [15:16:45]query_string will be loaded in cgi processing [15:16:45]execute_cgi json_proto POST (null) [15:16:45]execute_cgi path=json_proto method=POST [15:16:45]POST find Content-Length [15:16:45]Host: 172.17.44.195:8080 [15:16:45]Content-Length: 678 [15:16:45]Content-Type: application/json [15:16:45] [15:16:45]POST finish read [15:16:45]Found Content-Length = 678 [15:16:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963092", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.080, "sum" : 540.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 540.00, "total" : 540.00, "payments": [ { "type": 0, "sum" : 540.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:45]execute_script... [15:16: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)1963092", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.080, "sum" : 540.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 540.00, "total" : 540.00, "payments": [ { "type": 0, "sum" : 540.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:45]POST & json_proto [15:16:45]process_json_proto [15:16:45]json parsed OK: [15:16:45]protocol is kg_v1.0 [15:16:45]action value=close_receipt [15:16:45]process_action close_receipt [15:16:45]cmd_close_receipt [15:16:45]MH_GetDate [15:16:45]Write to MH i2c: F0 00 00 61 05 55 [15:16:45]Write i2c OK [15:16:45]MH_I2C_Read... [15:16:45]Read from MH i2c: F0 [15:16:45]MH_I2C_Read... [15:16:45]Read from MH i2c: F0 09 00 [15:16:45]MH_I2C_Read... [15:16:45]Read from MH i2c: F0 09 00 61 05 00 DD 1E 15 67 82 C9 CF 66 55 [15:16:45]GetLastDocTimeStamp 1729437399 [15:16:45]current date 1729437405 [15:16:45]FM_GetShiftState [15:16:45]SAM_PROTO_GetShiftState [15:16:45]wFMCommunicate request_size=4 [15:16:45]MH_SAM_APDU [15:16:45]CAPDU: 80 13 01 00 [15:16:45]Write to MH i2c: E2 08 00 62 05 80 13 01 00 00 00 00 00 E4 [15:16:45]Write i2c OK [15:16:45]MH_I2C_Read... [15:16:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:45]Read from MH i2c: E2 [15:16:45]MH_I2C_Read... [15:16:45]Read from MH i2c: E2 0E 00 [15:16:45]MH_I2C_Read... [15:16:45]Read from MH i2c: E2 0E 00 62 05 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 FE [15:16:45]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [15:16:45]wFMCommunicate OK [15:16:45]SAM_PROTO_GetShiftState done [15:16:45]FM_GetShiftState done [15:16:45]opened in 1729383750 [15:16:45]opened+sec_in_day 1729470150 [15:16:45]quantity*price = 54055 [15:16:45]sum+1 = 54056 [15:16:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 540.00 Внесено: 540.00 СДАЧА: 0.00 НСП 1% : 4.78 НДС 12% : 57.40 Наличными: 540.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 360 20.10.2024 15:16 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227512 ФПД: 141294130068361 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T151646&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227512&fm=141294130068361&tin=02508201610067®Number=0000000000091685&sum=54000 [15:16:46]StoreToDocumentArchive [15:16:46]shift 533 fd 227512 [15:16:46]save to /storage/0533/doc_00227512 [15:16:46]save last doc name /storage/0533/doc_00227512 to /storage/kkm_last_doc_name [15:16:46]save OK [15:16:46]Clear old archive folders... [15:16:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:16:46]tlvbuf is 00DF56F0 [15:16:46]SAM_PROTO_ClearQueue [15:16:46]wFMCommunicate request_size=4 [15:16:46]MH_SAM_APDU [15:16:46]CAPDU: 80 09 00 00 [15:16:46]Write to MH i2c: E2 08 00 6F 05 80 09 00 00 00 00 00 00 E6 [15:16:46]Write i2c OK [15:16:46]MH_I2C_Read... [15:16:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:16:46]Read from MH i2c: E2 [15:16:46]MH_I2C_Read... [15:16:46]Read from MH i2c: E2 03 00 [15:16:46]MH_I2C_Read... [15:16:46]Read from MH i2c: E2 03 00 6F 05 00 90 00 E8 [15:16:46]RAPDU: 90 00 [15:16:46]wFMCommunicate OK [15:16:46]SAM_PROTO_ClearQueue done [15:16:46]KKMCreateOFDPacket [15:16:46]OFDProtocolAddRootSTLVToBuf [15:16:46]FM_MakeSignedData [15:16:46]FM_MakeSignedData [15:16:46]SAM_PROTO_SignData [15:16:46]wFMCommunicate request_size=4 [15:16:46]MH_SAM_APDU [15:16:46]CAPDU: 80 0D 01 02 [15:16:46]Write to MH i2c: E2 08 00 70 05 80 0D 01 02 00 00 00 00 EE [15:16:46]Write i2c OK [15:16:46]MH_I2C_Read... [15:16:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:16:46]Read from MH i2c: E2 [15:16:46]MH_I2C_Read... [15:16:46]Read from MH i2c: E2 03 00 [15:16:46]MH_I2C_Read... [15:16:46]Read from MH i2c: E2 03 00 70 05 00 90 00 E9 [15:16:46]RAPDU: 90 00 [15:16:46]wFMCommunicate OK [15:16:46]wFMCommunicate request_size=255 [15:16:46]MH_SAM_APDU [15:16:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 27 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 01 00 00 F4 03 04 00 DE 1E 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B8 78 03 00 35 04 06 00 80 [15:16:46]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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 27 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 01 00 00 F4 03 04 00 DE 1E 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B8 78 03 00 35 04 06 00 80 00 00 75 [15:16:46]Write i2c OK [15:16:46]MH_I2C_Read... [15:16:46]OFD Sender: No OFD packet to send [15:16:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:46]Read from MH i2c: E2 [15:16:46]MH_I2C_Read... [15:16:46]Read from MH i2c: E2 03 00 [15:16:46]MH_I2C_Read... [15:16:46]Read from MH i2c: E2 03 00 71 05 00 90 00 EA [15:16:46]RAPDU: 90 00 [15:16:46]wFMCommunicate OK [15:16:46]wFMCommunicate request_size=10 [15:16:46]MH_SAM_APDU [15:16:46]CAPDU: 80 0D 02 02 05 81 9A 6E 7B 89 [15:16:46]Write to MH i2c: E2 0D 00 72 05 80 0D 02 02 05 00 81 9A 6E 7B 89 00 00 88 [15:16:46]Write i2c OK [15:16:46]MH_I2C_Read... [15:16:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:46]Read from MH i2c: E2 [15:16:46]MH_I2C_Read... [15:16:46]Read from MH i2c: E2 03 00 [15:16:46]MH_I2C_Read... [15:16:46]Read from MH i2c: E2 03 00 72 05 00 90 00 EB [15:16:46]RAPDU: 90 00 [15:16:46]wFMCommunicate OK [15:16:46]wFMCommunicate request_size=4 [15:16:46]MH_SAM_APDU [15:16:46]CAPDU: 80 0D 03 02 [15:16:46]Write to MH i2c: E2 08 00 73 05 80 0D 03 02 00 00 00 00 F3 [15:16:46]Write i2c OK [15:16:46]MH_I2C_Read... [15:16:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:16:46]Read from MH i2c: E2 [15:16:46]MH_I2C_Read... [15:16:46]Read from MH i2c: E2 0B 00 [15:16:46]MH_I2C_Read... [15:16:46]Read from MH i2c: E2 0B 00 73 05 00 AD 21 86 51 30 D6 01 EC 90 00 8C [15:16:46]RAPDU: AD 21 86 51 30 D6 01 EC 90 00 [15:16:46]wFMCommunicate OK [15:16:46]SAM_PROTO_SignData done [15:16:46]FM_MakeSignedData done [15:16:46]CreateOFDProtocolMessage [15:16:46]wFMCommunicate request_size=4 [15:16:46]MH_SAM_APDU [15:16:46]CAPDU: 80 11 00 00 [15:16:46]Write to MH i2c: E2 08 00 74 05 80 11 00 00 00 00 00 00 F3 [15:16:46]Write i2c OK [15:16:46]MH_I2C_Read... [15:16:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:46]Read from MH i2c: E2 [15:16:46]MH_I2C_Read... [15:16:46]Read from MH i2c: E2 17 00 [15:16:46]MH_I2C_Read... [15:16:46]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 33 39 90 00 4A [15:16:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:16:46]wFMCommunicate OK [15:16:46]CreateOFDProtocolMessage done [15:16:46]OFDSenderStorePacket 227512 [15:16:46]StoreOFDPacket docnum=227512 [15:16:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 0A 8B 07 01 88 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 27 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 01 00 00 F4 03 04 00 DE 1E 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B8 78 03 00 35 04 06 00 80 81 9A 6E 7B 89 AD 21 86 51 30 D6 01 EC [15:16:46]CheckFolder [15:16:46]dirname=/storage/ofd_packets [15:16:46]CheckFolder done [15:16:46]ProducePacketName [15:16:46]name=ofd_packets/00227512 [15:16:46]NVStorageSaveData ofd_packets/00227512 [15:16:46]File name is /storage/ofd_packets/00227512 [15:16:46]Write 301 bytes [15:16:46]NVStorageSaveData done [15:16:46]OFDSenderStorePacket done [15:16:46]KKMCreateOFDPacket done [15:16:46]NVStorageSaveData kkm_last_timestamp [15:16:46]File name is /storage/kkm_last_timestamp [15:16:46]Write 4 bytes [15:16:46]NVStorageSaveData done [15:16:46]ExternCall_PrintAddStr [15:16:46]wPrintStart [15:16:46]Write to MH i2c: 01 00 00 75 05 7A [15:16:46]Write i2c OK [15:16:46]MH_I2C_Read... [15:16:46]Read from MH i2c: 01 [15:16:46]MH_I2C_Read... [15:16:46]Read from MH i2c: 01 07 00 [15:16:46]MH_I2C_Read... [15:16:46]Read from MH i2c: 01 07 00 75 05 00 00 00 00 00 FF 0F 8F [15:16:46]RasterBufferAndPrint [15:16:46]line Счет N : (1)1963092 [15:16:46]line ИНН: 02508201610067 [15:16:46]line Контрольно-Кассовый Чек [15:16:46]line ПРОДАЖА [15:16:46]line ТРК (МРК, ГНК) : 43 [15:16:46]line Товар: 2710124130 [15:16:46]line Аи-92-К-5 [15:16:46]line 8.080 * 66.90 [15:16:46]line = 540.55 [15:16:46]line НДС 12% НСП 1% [15:16:46]line > о реализуемом товаре [15:16:46]line ОКРУГЛЕНИЕ: -0.55 [15:16:46]line ИТОГО: 540.00 [15:16:46]line Внесено: 540.00 [15:16:46]line СДАЧА: 0.00 [15:16:46]line НСП 1% : 4.78 [15:16:46]line НДС 12% : 57.40 [15:16:46]line Наличными: 540.00 [15:16:46]line Безнал.: 0.00 [15:16:46]line Место: АЗС № 133 "Партнер Нефть" [15:16:46]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [15:16:46]line СНО: Общий режим [15:16:46]line Чек 360 20.10.2024 15:16 [15:16:46]line Смена: 533 ФФД: 1.0 [15:16:46]line ЗНМ: 0300000091 [15:16:46]line РНМ: 0000000000091685 [15:16:46]line Версия ККМ: 001 [15:16:46]line ФМ: 0000000000871839 [15:16:46]line ФД: 227512 [15:16:46]line ФПД: 141294130068361 [15:16:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T151646&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227512&fm=141294130068361&tin=02508201610067®Number=0000000000091685&sum=54000 [15:16:46]written 0, free lines is 4095 [15:16:46]OFD Sender: Processing packet 227512 [packets to send 38, broken 37] [15:16:46]ProducePacketName [15:16:46]name=ofd_packets/00227512 [15:16:46]OFD Sender: To server: pG, [15:16:46]CommunicateWithHost lk.salyk.kg:30040 [15:16:46]ConnectInit lk.salyk.kg [15:16:47]Connected sock=9 [15:16: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 33 39 0F 01 00 00 0A 8B 07 01 88 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 27 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 01 00 00 F4 03 04 00 DE 1E 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B8 78 03 00 35 04 06 00 80 81 9A 6E 7B 89 AD 21 86 51 30 D6 01 EC [15:16: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 33 39 4F 00 00 00 D2 18 47 00 13 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 33 39 10 04 04 00 B8 78 03 00 F4 03 04 00 DC C9 14 67 B6 04 01 00 00 80 50 CE 97 E5 6B 51 33 [15:16:47]CommunicateWithHost err = 0 [15:16:47]CheckOFDResponse [15:16:47]1017 (14) - 77093643461234 [15:16:47]1041 (16) - 0000000000871839 [15:16:47]1040 (4) - 227512 [15:16:47]1012 (4) - 20.10.2024 09:14 [15:16:47]1206 (1) - 0 [15:16:47]OFD Sender: Remove packet 227512 [15:16:47]ProducePacketName [15:16:47]name=ofd_packets/00227512 [15:16:47]NVStorageDeleteData [15:16:47]Write to MH i2c: 01 00 00 9F 05 A4 [15:16:47]Write i2c OK [15:16:47]MH_I2C_Read... [15:16:47]Read from MH i2c: 01 [15:16:47]MH_I2C_Read... [15:16:47]Read from MH i2c: 01 07 00 [15:16:47]MH_I2C_Read... [15:16:47]Read from MH i2c: 01 07 00 9F 05 00 00 00 00 00 08 0D C0 [15:16:47]RasterBufferAndPrint [15:16:47]line [15:16:47]line [15:16:47]line [15:16:47]line [15:16:47]line [15:16:47]written 0, free lines is 3351 [15:16:47]process_action close_receipt done [15:16:47]requested_data is exist [15:16:47]produce_requested_data [15:16:47]requested_item fm.sn is exist - process it [15:16:47]wFMCommunicate request_size=4 [15:16:47]MH_SAM_APDU [15:16:47]CAPDU: 80 11 00 00 [15:16:47]Write to MH i2c: E2 08 00 A6 05 80 11 00 00 00 00 00 00 25 [15:16:47]Write i2c OK [15:16:47]MH_I2C_Read... [15:16:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:47]Read from MH i2c: E2 [15:16:47]MH_I2C_Read... [15:16:47]Read from MH i2c: E2 17 00 [15:16:47]MH_I2C_Read... [15:16:47]Read from MH i2c: E2 17 00 A6 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 7C [15:16:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:16:47]wFMCommunicate OK [15:16:47]requested_item fd.num is exist - process it [15:16:47]SAM_PROTO_GetFieldsCounters [15:16:47]wFMCommunicate request_size=4 [15:16:47]MH_SAM_APDU [15:16:47]CAPDU: 80 13 00 00 [15:16:47]Write to MH i2c: E2 08 00 A7 05 80 13 00 00 00 00 00 00 28 [15:16:47]Write i2c OK [15:16:47]MH_I2C_Read... [15:16:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:16:47]Read from MH i2c: E2 [15:16:47]MH_I2C_Read... [15:16:47]Read from MH i2c: E2 62 00 [15:16:47]MH_I2C_Read... [15:16:47]Read from MH i2c: E2 62 00 A7 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 B8 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 68 01 00 00 5E 04 04 00 68 01 00 00 57 04 04 00 69 01 00 00 19 04 04 00 00 00 00 00 90 00 D6 [15:16: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 B8 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 68 01 00 00 5E 04 04 00 68 01 00 00 57 04 04 00 69 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:16:47]wFMCommunicate OK [15:16:47]SAM_PROTO_GetFieldsCounters done [15:16:47]requested_item shift.num is exist - process it [15:16:47]requested_item shift.opened is exist - process it [15:16:47]req_shift_opened [15:16:47]FM_GetShiftState [15:16:47]SAM_PROTO_GetShiftState [15:16:47]wFMCommunicate request_size=4 [15:16:47]MH_SAM_APDU [15:16:47]CAPDU: 80 13 01 00 [15:16:47]Write to MH i2c: E2 08 00 A8 05 80 13 01 00 00 00 00 00 2A [15:16:47]Write i2c OK [15:16:47]MH_I2C_Read... [15:16:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:47]Read from MH i2c: E2 [15:16:47]MH_I2C_Read... [15:16:47]Read from MH i2c: E2 0E 00 [15:16:47]MH_I2C_Read... [15:16:47]Read from MH i2c: E2 0E 00 A8 05 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 44 [15:16:47]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [15:16:47]wFMCommunicate OK [15:16:47]SAM_PROTO_GetShiftState done [15:16:47]FM_GetShiftState done [15:16:47]req_shift_opened done [15:16:47]requested_item shift.open_date is exist - process it [15:16:47]req_shift_open_date [15:16:47]req_shift_open_date done [15:16:47]produce_requested_data done [15:16:47]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227512,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [15:16:47]process_action_free close_receipt [15:16:47]json_value_free [15:16:47]json_value_free done [15:16:47]process_json_proto returns [15:16:47]Send response to host [15:16:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227512,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [15:16:47]free response buf [15:16:47]execute_script done [15:16:47]execute_script returns [15:16:47]free content buf [15:16:47]Sock 10.Close socket [15:16:47]Sock 10.Thread stoped [15:16:47]OFD Sender: No OFD packet to send [15:16:52]OFD Sender: No OFD packet to send [15:16:57]OFD Sender: No OFD packet to send [15:17:01]accept exits with 7 [15:17:01]New connection [15:17:01]New thread 3067362660 created [15:17:01]Thread 3067219300 joined [15:17:01]Waiting for new connection... [15:17:01] Sock 7.Parse request [15:17:01]Sock 7.Check first char [15:17:01]Sock 7.First char is OK [15:17:01]request: POST /json_proto HTTP/1.0 [15:17:01]Method: POST [15:17:01]URL: /json_proto [15:17:01]Method is POST - this is cgi request [15:17:01]url: /json_proto [15:17:01]query_string will be loaded in cgi processing [15:17:01]execute_cgi json_proto POST (null) [15:17:01]execute_cgi path=json_proto method=POST [15:17:01]POST find Content-Length [15:17:01]Host: 172.17.44.195:8080 [15:17:01]Content-Length: 664 [15:17:01]Content-Type: application/json [15:17:01] [15:17:01]POST finish read [15:17:01]Found Content-Length = 664 [15:17:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963093", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:17:01]execute_script... [15:17: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)1963093", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:17:01]POST & json_proto [15:17:01]process_json_proto [15:17:01]json parsed OK: [15:17:01]protocol is kg_v1.0 [15:17:01]action value=close_receipt [15:17:01]process_action close_receipt [15:17:01]cmd_close_receipt [15:17:01]MH_GetDate [15:17:01]Write to MH i2c: F0 00 00 A9 05 9D [15:17:01]Write i2c OK [15:17:01]MH_I2C_Read... [15:17:01]Read from MH i2c: F0 [15:17:01]MH_I2C_Read... [15:17:01]Read from MH i2c: F0 09 00 [15:17:01]MH_I2C_Read... [15:17:01]Read from MH i2c: F0 09 00 A9 05 00 EE 1E 15 67 82 C9 CF 66 AE [15:17:01]GetLastDocTimeStamp 1729437406 [15:17:01]current date 1729437422 [15:17:01]FM_GetShiftState [15:17:01]SAM_PROTO_GetShiftState [15:17:01]wFMCommunicate request_size=4 [15:17:01]MH_SAM_APDU [15:17:01]CAPDU: 80 13 01 00 [15:17:01]Write to MH i2c: E2 08 00 AA 05 80 13 01 00 00 00 00 00 2C [15:17:01]Write i2c OK [15:17:01]MH_I2C_Read... [15:17:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:01]Read from MH i2c: E2 [15:17:01]MH_I2C_Read... [15:17:01]Read from MH i2c: E2 0E 00 [15:17:01]MH_I2C_Read... [15:17:01]Read from MH i2c: E2 0E 00 AA 05 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 46 [15:17:01]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [15:17:01]wFMCommunicate OK [15:17:01]SAM_PROTO_GetShiftState done [15:17:01]FM_GetShiftState done [15:17:01]opened in 1729383750 [15:17:01]opened+sec_in_day 1729470150 [15:17:01]quantity*price = 100000 [15:17:01]sum+1 = 100002 [15:17:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 361 20.10.2024 15:17 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227513 ФПД: 168330919774237 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T151702&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227513&fm=168330919774237&tin=02508201610067®Number=0000000000091685&sum=100000 [15:17:02]StoreToDocumentArchive [15:17:02]shift 533 fd 227513 [15:17:02]save to /storage/0533/doc_00227513 [15:17:02]save last doc name /storage/0533/doc_00227513 to /storage/kkm_last_doc_name [15:17:02]save OK [15:17:02]Clear old archive folders... [15:17:02]ProcessDocumentItem done err = 0, tmpTLVsize=244 [15:17:02]tlvbuf is 00DD7800 [15:17:02]SAM_PROTO_ClearQueue [15:17:02]wFMCommunicate request_size=4 [15:17:02]MH_SAM_APDU [15:17:02]CAPDU: 80 09 00 00 [15:17:02]Write to MH i2c: E2 08 00 B7 05 80 09 00 00 00 00 00 00 2E [15:17:02]Write i2c OK [15:17:02]MH_I2C_Read... [15:17:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:17:02]Read from MH i2c: E2 [15:17:02]MH_I2C_Read... [15:17:02]Read from MH i2c: E2 03 00 [15:17:02]MH_I2C_Read... [15:17:02]Read from MH i2c: E2 03 00 B7 05 00 90 00 30 [15:17:02]RAPDU: 90 00 [15:17:02]wFMCommunicate OK [15:17:02]SAM_PROTO_ClearQueue done [15:17:02]KKMCreateOFDPacket [15:17:02]OFDProtocolAddRootSTLVToBuf [15:17:02]FM_MakeSignedData [15:17:02]FM_MakeSignedData [15:17:02]SAM_PROTO_SignData [15:17:02]wFMCommunicate request_size=4 [15:17:02]MH_SAM_APDU [15:17:02]CAPDU: 80 0D 01 02 [15:17:02]Write to MH i2c: E2 08 00 B8 05 80 0D 01 02 00 00 00 00 36 [15:17:02]Write i2c OK [15:17:02]MH_I2C_Read... [15:17:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:17:02]Read from MH i2c: E2 [15:17:02]MH_I2C_Read... [15:17:02]Read from MH i2c: E2 03 00 [15:17:02]MH_I2C_Read... [15:17:02]Read from MH i2c: E2 03 00 B8 05 00 90 00 31 [15:17:02]RAPDU: 90 00 [15:17:02]wFMCommunicate OK [15:17:02]wFMCommunicate request_size=253 [15:17:02]MH_SAM_APDU [15:17:02]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 EE 1E 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B9 78 03 00 35 04 06 00 99 18 98 AD 88 1D [15:17:02]Write to MH i2c: E2 00 01 B9 05 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 EE 1E 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B9 78 03 00 35 04 06 00 99 18 98 AD 88 1D 00 00 88 [15:17:02]Write i2c OK [15:17:02]MH_I2C_Read... [15:17:02]OFD Sender: No OFD packet to send [15:17:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:03]Read from MH i2c: E2 [15:17:03]MH_I2C_Read... [15:17:03]Read from MH i2c: E2 03 00 [15:17:03]MH_I2C_Read... [15:17:03]Read from MH i2c: E2 03 00 B9 05 00 90 00 32 [15:17:03]RAPDU: 90 00 [15:17:03]wFMCommunicate OK [15:17:03]wFMCommunicate request_size=4 [15:17:03]MH_SAM_APDU [15:17:03]CAPDU: 80 0D 03 02 [15:17:03]Write to MH i2c: E2 08 00 BA 05 80 0D 03 02 00 00 00 00 3A [15:17:03]Write i2c OK [15:17:03]MH_I2C_Read... [15:17:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:17:03]Read from MH i2c: E2 [15:17:03]MH_I2C_Read... [15:17:03]Read from MH i2c: E2 0B 00 [15:17:03]MH_I2C_Read... [15:17:03]Read from MH i2c: E2 0B 00 BA 05 00 B4 00 3A EC A6 3D 92 22 90 00 AC [15:17:03]RAPDU: B4 00 3A EC A6 3D 92 22 90 00 [15:17:03]wFMCommunicate OK [15:17:03]SAM_PROTO_SignData done [15:17:03]FM_MakeSignedData done [15:17:03]CreateOFDProtocolMessage [15:17:03]wFMCommunicate request_size=4 [15:17:03]MH_SAM_APDU [15:17:03]CAPDU: 80 11 00 00 [15:17:03]Write to MH i2c: E2 08 00 BB 05 80 11 00 00 00 00 00 00 3A [15:17:03]Write i2c OK [15:17:03]MH_I2C_Read... [15:17:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:03]Read from MH i2c: E2 [15:17:03]MH_I2C_Read... [15:17:03]Read from MH i2c: E2 17 00 [15:17:03]MH_I2C_Read... [15:17:03]Read from MH i2c: E2 17 00 BB 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 91 [15:17:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:17:03]wFMCommunicate OK [15:17:03]CreateOFDProtocolMessage done [15:17:03]OFDSenderStorePacket 227513 [15:17:03]StoreOFDPacket docnum=227513 [15:17:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 0B 0C 00 01 8E B2 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 EE 1E 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B9 78 03 00 35 04 06 00 99 18 98 AD 88 1D B4 00 3A EC A6 3D 92 22 [15:17:03]CheckFolder [15:17:03]dirname=/storage/ofd_packets [15:17:03]CheckFolder done [15:17:03]ProducePacketName [15:17:03]name=ofd_packets/00227513 [15:17:03]NVStorageSaveData ofd_packets/00227513 [15:17:03]File name is /storage/ofd_packets/00227513 [15:17:03]Write 294 bytes [15:17:03]NVStorageSaveData done [15:17:03]OFDSenderStorePacket done [15:17:03]KKMCreateOFDPacket done [15:17:03]NVStorageSaveData kkm_last_timestamp [15:17:03]File name is /storage/kkm_last_timestamp [15:17:03]Write 4 bytes [15:17:03]NVStorageSaveData done [15:17:03]ExternCall_PrintAddStr [15:17:03]wPrintStart [15:17:03]Write to MH i2c: 01 00 00 BC 05 C1 [15:17:03]Write i2c OK [15:17:03]MH_I2C_Read... [15:17:03]Read from MH i2c: 01 [15:17:03]MH_I2C_Read... [15:17:03]Read from MH i2c: 01 07 00 [15:17:03]MH_I2C_Read... [15:17:03]Read from MH i2c: 01 07 00 BC 05 00 00 00 00 00 FF 0F D6 [15:17:03]RasterBufferAndPrint [15:17:03]line Счет N : (1)1963093 [15:17:03]line ИНН: 02508201610067 [15:17:03]line Контрольно-Кассовый Чек [15:17:03]line ПРОДАЖА [15:17:03]line ТРК (МРК, ГНК) : 52 [15:17:03]line Товар: 2710124130 [15:17:03]line SU-92 [15:17:03]line 14.620 * 68.40 [15:17:03]line = 1000.01 [15:17:03]line НДС 12% НСП 1% [15:17:03]line > о реализуемом товаре [15:17:03]line ОКРУГЛЕНИЕ: -0.01 [15:17:03]line ИТОГО: 1000.00 [15:17:03]line Внесено: 1000.00 [15:17:03]line СДАЧА: 0.00 [15:17:03]line НСП 1% : 8.85 [15:17:03]line НДС 12% : 106.20 [15:17:03]line Наличными: 1000.00 [15:17:03]line Безнал.: 0.00 [15:17:03]line Место: АЗС № 133 "Партнер Нефть" [15:17:03]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [15:17:03]line СНО: Общий режим [15:17:03]line Чек 361 20.10.2024 15:17 [15:17:03]line Смена: 533 ФФД: 1.0 [15:17:03]line ЗНМ: 0300000091 [15:17:03]line РНМ: 0000000000091685 [15:17:03]line Версия ККМ: 001 [15:17:03]line ФМ: 0000000000871839 [15:17:03]line ФД: 227513 [15:17:03]line ФПД: 168330919774237 [15:17:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T151702&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227513&fm=168330919774237&tin=02508201610067®Number=0000000000091685&sum=100000 [15:17:03]written 0, free lines is 4095 [15:17:03]OFD Sender: Processing packet 227513 [packets to send 38, broken 37] [15:17:03]ProducePacketName [15:17:03]name=ofd_packets/00227513 [15:17:03]OFD Sender: To server: pG, [15:17:03]CommunicateWithHost lk.salyk.kg:30040 [15:17:03]ConnectInit lk.salyk.kg [15:17:03]Connected sock=10 [15:17: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 33 39 08 01 00 00 0B 0C 00 01 8E B2 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 EE 1E 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B9 78 03 00 35 04 06 00 99 18 98 AD 88 1D B4 00 3A EC A6 3D 92 22 [15:17: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 33 39 4F 00 00 00 57 68 47 00 2A 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 B9 78 03 00 F4 03 04 00 EC C9 14 67 B6 04 01 00 00 43 43 0E 0D 2B 7A 60 B5 [15:17:03]CommunicateWithHost err = 0 [15:17:03]CheckOFDResponse [15:17:03]1017 (14) - 77093643461234 [15:17:03]1041 (16) - 0000000000871839 [15:17:03]1040 (4) - 227513 [15:17:03]1012 (4) - 20.10.2024 09:14 [15:17:03]1206 (1) - 0 [15:17:03]OFD Sender: Remove packet 227513 [15:17:03]ProducePacketName [15:17:03]name=ofd_packets/00227513 [15:17:03]NVStorageDeleteData [15:17:03]Write to MH i2c: 01 00 00 E6 05 EB [15:17:03]Write i2c OK [15:17:03]MH_I2C_Read... [15:17:03]Read from MH i2c: 01 [15:17:03]MH_I2C_Read... [15:17:03]Read from MH i2c: 01 07 00 [15:17:03]MH_I2C_Read... [15:17:03]Read from MH i2c: 01 07 00 E6 05 00 00 00 00 00 22 0D 21 [15:17:03]RasterBufferAndPrint [15:17:03]line [15:17:03]line [15:17:03]line [15:17:03]line [15:17:03]line [15:17:03]written 0, free lines is 3374 [15:17:03]process_action close_receipt done [15:17:03]requested_data is exist [15:17:03]produce_requested_data [15:17:03]requested_item fm.sn is exist - process it [15:17:03]wFMCommunicate request_size=4 [15:17:03]MH_SAM_APDU [15:17:03]CAPDU: 80 11 00 00 [15:17:03]Write to MH i2c: E2 08 00 ED 05 80 11 00 00 00 00 00 00 6C [15:17:03]Write i2c OK [15:17:03]MH_I2C_Read... [15:17:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:03]Read from MH i2c: E2 [15:17:03]MH_I2C_Read... [15:17:03]Read from MH i2c: E2 17 00 [15:17:03]MH_I2C_Read... [15:17:03]Read from MH i2c: E2 17 00 ED 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C3 [15:17:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:17:03]wFMCommunicate OK [15:17:03]requested_item fd.num is exist - process it [15:17:03]SAM_PROTO_GetFieldsCounters [15:17:03]wFMCommunicate request_size=4 [15:17:03]MH_SAM_APDU [15:17:03]CAPDU: 80 13 00 00 [15:17:03]Write to MH i2c: E2 08 00 EE 05 80 13 00 00 00 00 00 00 6F [15:17:03]Write i2c OK [15:17:03]MH_I2C_Read... [15:17:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:17:03]Read from MH i2c: E2 [15:17:03]MH_I2C_Read... [15:17:03]Read from MH i2c: E2 62 00 [15:17:03]MH_I2C_Read... [15:17:03]Read from MH i2c: E2 62 00 EE 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 B9 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 69 01 00 00 5E 04 04 00 69 01 00 00 57 04 04 00 6A 01 00 00 19 04 04 00 00 00 00 00 90 00 21 [15:17: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 B9 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 69 01 00 00 5E 04 04 00 69 01 00 00 57 04 04 00 6A 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:17:03]wFMCommunicate OK [15:17:03]SAM_PROTO_GetFieldsCounters done [15:17:03]requested_item shift.num is exist - process it [15:17:03]requested_item shift.opened is exist - process it [15:17:03]req_shift_opened [15:17:03]FM_GetShiftState [15:17:03]SAM_PROTO_GetShiftState [15:17:03]wFMCommunicate request_size=4 [15:17:03]MH_SAM_APDU [15:17:03]CAPDU: 80 13 01 00 [15:17:03]Write to MH i2c: E2 08 00 EF 05 80 13 01 00 00 00 00 00 71 [15:17:03]Write i2c OK [15:17:03]MH_I2C_Read... [15:17:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:03]Read from MH i2c: E2 [15:17:03]MH_I2C_Read... [15:17:03]Read from MH i2c: E2 0E 00 [15:17:03]MH_I2C_Read... [15:17:03]Read from MH i2c: E2 0E 00 EF 05 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 8B [15:17:03]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [15:17:03]wFMCommunicate OK [15:17:03]SAM_PROTO_GetShiftState done [15:17:03]FM_GetShiftState done [15:17:03]req_shift_opened done [15:17:03]requested_item shift.open_date is exist - process it [15:17:03]req_shift_open_date [15:17:03]req_shift_open_date done [15:17:03]produce_requested_data done [15:17:03]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227513,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [15:17:03]process_action_free close_receipt [15:17:03]json_value_free [15:17:03]json_value_free done [15:17:03]process_json_proto returns [15:17:03]Send response to host [15:17:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227513,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [15:17:03]free response buf [15:17:03]execute_script done [15:17:03]execute_script returns [15:17:03]free content buf [15:17:03]Sock 7.Close socket [15:17:03]Sock 7.Thread stoped [15:17:04]OFD Sender: No OFD packet to send [15:17:09]OFD Sender: No OFD packet to send [15:17:14]OFD Sender: No OFD packet to send [15:17:19]OFD Sender: No OFD packet to send [15:17:24]OFD Sender: No OFD packet to send [15:17:29]OFD Sender: No OFD packet to send [15:17:34]OFD Sender: No OFD packet to send [15:17:39]OFD Sender: No OFD packet to send [15:17:44]OFD Sender: No OFD packet to send [15:17:49]OFD Sender: No OFD packet to send [15:17:54]OFD Sender: No OFD packet to send [15:17:59]OFD Sender: No OFD packet to send [15:18:04]OFD Sender: No OFD packet to send [15:18:09]OFD Sender: No OFD packet to send [15:18:14]OFD Sender: No OFD packet to send [15:18:19]OFD Sender: No OFD packet to send [15:18:24]OFD Sender: No OFD packet to send [15:18:29]OFD Sender: No OFD packet to send [15:18:34]OFD Sender: No OFD packet to send [15:18:39]OFD Sender: No OFD packet to send [15:18:44]OFD Sender: No OFD packet to send [15:18:49]OFD Sender: No OFD packet to send [15:18:54]OFD Sender: No OFD packet to send [15:18:59]OFD Sender: No OFD packet to send [15:19:04]OFD Sender: No OFD packet to send [15:19:09]OFD Sender: No OFD packet to send [15:19:14]OFD Sender: No OFD packet to send [15:19:19]OFD Sender: No OFD packet to send [15:19:24]OFD Sender: No OFD packet to send [15:19:29]OFD Sender: No OFD packet to send [15:19:34]OFD Sender: No OFD packet to send [15:19:39]OFD Sender: No OFD packet to send [15:19:44]OFD Sender: No OFD packet to send [15:19:49]OFD Sender: No OFD packet to send [15:19:54]OFD Sender: No OFD packet to send [15:19:59]OFD Sender: No OFD packet to send [15:20:04]OFD Sender: No OFD packet to send [15:20:09]OFD Sender: No OFD packet to send [15:20:14]OFD Sender: No OFD packet to send [15:20:19]OFD Sender: No OFD packet to send [15:20:24]OFD Sender: No OFD packet to send [15:20:29]OFD Sender: No OFD packet to send [15:20:34]OFD Sender: No OFD packet to send [15:20:39]OFD Sender: No OFD packet to send [15:20:44]OFD Sender: No OFD packet to send [15:20:49]OFD Sender: No OFD packet to send [15:20:54]OFD Sender: No OFD packet to send [15:20:59]OFD Sender: No OFD packet to send [15:21:04]OFD Sender: No OFD packet to send [15:21:09]OFD Sender: No OFD packet to send [15:21:14]OFD Sender: No OFD packet to send [15:21:19]OFD Sender: No OFD packet to send [15:21:24]OFD Sender: No OFD packet to send [15:21:29]OFD Sender: No OFD packet to send [15:21:34]OFD Sender: No OFD packet to send [15:21:39]OFD Sender: No OFD packet to send [15:21:44]OFD Sender: No OFD packet to send [15:21:49]OFD Sender: No OFD packet to send [15:21:54]OFD Sender: No OFD packet to send [15:21:59]OFD Sender: No OFD packet to send [15:22:04]OFD Sender: No OFD packet to send [15:22:09]OFD Sender: No OFD packet to send [15:22:14]OFD Sender: No OFD packet to send [15:22:19]OFD Sender: No OFD packet to send [15:22:24]OFD Sender: No OFD packet to send [15:22:29]OFD Sender: No OFD packet to send [15:22:34]OFD Sender: No OFD packet to send [15:22:39]OFD Sender: No OFD packet to send [15:22:44]OFD Sender: No OFD packet to send [15:22:49]OFD Sender: No OFD packet to send [15:22:54]OFD Sender: No OFD packet to send [15:22:59]OFD Sender: No OFD packet to send [15:23:04]OFD Sender: No OFD packet to send [15:23:09]OFD Sender: No OFD packet to send [15:23:14]OFD Sender: No OFD packet to send [15:23:19]OFD Sender: No OFD packet to send [15:23:24]OFD Sender: No OFD packet to send [15:23:29]OFD Sender: No OFD packet to send [15:23:34]OFD Sender: No OFD packet to send [15:23:39]OFD Sender: No OFD packet to send [15:23:44]OFD Sender: No OFD packet to send [15:23:49]OFD Sender: No OFD packet to send [15:23:54]OFD Sender: No OFD packet to send [15:23:59]OFD Sender: No OFD packet to send [15:24:04]OFD Sender: No OFD packet to send [15:24:09]OFD Sender: No OFD packet to send [15:24:14]OFD Sender: No OFD packet to send [15:24:19]OFD Sender: No OFD packet to send [15:24:24]OFD Sender: No OFD packet to send [15:24:29]OFD Sender: No OFD packet to send [15:24:34]OFD Sender: No OFD packet to send [15:24:39]OFD Sender: No OFD packet to send [15:24:44]OFD Sender: No OFD packet to send [15:24:49]OFD Sender: No OFD packet to send [15:24:54]OFD Sender: No OFD packet to send [15:24:59]OFD Sender: No OFD packet to send [15:25:04]OFD Sender: No OFD packet to send [15:25:09]OFD Sender: No OFD packet to send [15:25:14]OFD Sender: No OFD packet to send [15:25:19]OFD Sender: No OFD packet to send [15:25:24]OFD Sender: No OFD packet to send [15:25:29]OFD Sender: No OFD packet to send [15:25:34]OFD Sender: No OFD packet to send [15:25:39]OFD Sender: No OFD packet to send [15:25:44]OFD Sender: No OFD packet to send [15:25:49]OFD Sender: No OFD packet to send [15:25:54]OFD Sender: No OFD packet to send [15:25:59]OFD Sender: No OFD packet to send [15:26:04]OFD Sender: No OFD packet to send [15:26:09]OFD Sender: No OFD packet to send [15:26:14]OFD Sender: No OFD packet to send [15:26:19]OFD Sender: No OFD packet to send [15:26:24]OFD Sender: No OFD packet to send [15:26:29]OFD Sender: No OFD packet to send [15:26:34]OFD Sender: No OFD packet to send [15:26:39]OFD Sender: No OFD packet to send [15:26:44]OFD Sender: No OFD packet to send [15:26:49]OFD Sender: No OFD packet to send [15:26:54]OFD Sender: No OFD packet to send [15:26:59]OFD Sender: No OFD packet to send [15:27:04]OFD Sender: No OFD packet to send [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:12]accept exits with 9 [15:34:12]New connection [15:34:12]New thread 3067219300 created [15:34:12]Thread 3067362660 joined [15:34:12]Waiting for new connection... [15:34:12] Sock 9.Parse request [15:34:12]Sock 9.Check first char [15:34:12]Sock 9.First char is OK [15:34:12]request: POST /json_proto HTTP/1.0 [15:34:12]Method: POST [15:34:12]URL: /json_proto [15:34:12]Method is POST - this is cgi request [15:34:12]url: /json_proto [15:34:12]query_string will be loaded in cgi processing [15:34:12]execute_cgi json_proto POST (null) [15:34:12]execute_cgi path=json_proto method=POST [15:34:12]POST find Content-Length [15:34:12]Host: 172.17.44.195:8080 [15:34:12]Content-Length: 659 [15:34:12]Content-Type: application/json [15:34:12] [15:34:12]POST finish read [15:34:12]Found Content-Length = 659 [15:34:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963106", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 6.000, "sum" : 410.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 410.00, "total" : 410.00, "payments": [ { "type": 0, "sum" : 410.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:34:12]execute_script... [15:34: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)1963106", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 6.000, "sum" : 410.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 410.00, "total" : 410.00, "payments": [ { "type": 0, "sum" : 410.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:34:12]POST & json_proto [15:34:12]process_json_proto [15:34:12]json parsed OK: [15:34:12]protocol is kg_v1.0 [15:34:12]action value=close_receipt [15:34:12]process_action close_receipt [15:34:12]cmd_close_receipt [15:34:12]MH_GetDate [15:34:12]Write to MH i2c: F0 00 00 F0 05 E4 [15:34:12]Write i2c OK [15:34:12]MH_I2C_Read... [15:34:12]Read from MH i2c: F0 [15:34:12]MH_I2C_Read... [15:34:12]Read from MH i2c: F0 09 00 [15:34:12]MH_I2C_Read... [15:34:12]Read from MH i2c: F0 09 00 F0 05 00 F5 22 15 67 82 C9 CF 66 00 [15:34:12]GetLastDocTimeStamp 1729437422 [15:34:12]current date 1729438453 [15:34:12]FM_GetShiftState [15:34:12]SAM_PROTO_GetShiftState [15:34:12]wFMCommunicate request_size=4 [15:34:12]MH_SAM_APDU [15:34:12]CAPDU: 80 13 01 00 [15:34:12]Write to MH i2c: E2 08 00 F1 05 80 13 01 00 00 00 00 00 73 [15:34:12]Write i2c OK [15:34:12]MH_I2C_Read... [15:34:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:12]Read from MH i2c: E2 [15:34:12]MH_I2C_Read... [15:34:12]Read from MH i2c: E2 0E 00 [15:34:12]MH_I2C_Read... [15:34:12]Read from MH i2c: E2 0E 00 F1 05 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 8D [15:34:12]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [15:34:12]wFMCommunicate OK [15:34:12]SAM_PROTO_GetShiftState done [15:34:12]FM_GetShiftState done [15:34:12]opened in 1729383750 [15:34:12]opened+sec_in_day 1729470150 [15:34:12]quantity*price = 41040 [15:34:12]sum+1 = 41041 [15:34:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 410.00 Внесено: 410.00 СДАЧА: 0.00 НСП 1% : 3.63 НДС 12% : 43.58 Наличными: 410.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 362 20.10.2024 15:34 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227514 ФПД: 191164809646173 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T153413&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227514&fm=191164809646173&tin=02508201610067®Number=0000000000091685&sum=41000 [15:34:14]StoreToDocumentArchive [15:34:14]shift 533 fd 227514 [15:34:14]save to /storage/0533/doc_00227514 [15:34:14]save last doc name /storage/0533/doc_00227514 to /storage/kkm_last_doc_name [15:34:14]save OK [15:34:14]Clear old archive folders... [15:34:14]ProcessDocumentItem done err = 0, tmpTLVsize=244 [15:34:14]tlvbuf is 00D7F540 [15:34:14]SAM_PROTO_ClearQueue [15:34:14]wFMCommunicate request_size=4 [15:34:14]MH_SAM_APDU [15:34:14]CAPDU: 80 09 00 00 [15:34:14]Write to MH i2c: E2 08 00 FE 05 80 09 00 00 00 00 00 00 75 [15:34:14]Write i2c OK [15:34:14]MH_I2C_Read... [15:34:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:34:14]Read from MH i2c: E2 [15:34:14]MH_I2C_Read... [15:34:14]Read from MH i2c: E2 03 00 [15:34:14]MH_I2C_Read... [15:34:14]Read from MH i2c: E2 03 00 FE 05 00 90 00 77 [15:34:14]RAPDU: 90 00 [15:34:14]wFMCommunicate OK [15:34:14]SAM_PROTO_ClearQueue done [15:34:14]KKMCreateOFDPacket [15:34:14]OFDProtocolAddRootSTLVToBuf [15:34:14]FM_MakeSignedData [15:34:14]FM_MakeSignedData [15:34:14]SAM_PROTO_SignData [15:34:14]wFMCommunicate request_size=4 [15:34:14]MH_SAM_APDU [15:34:14]CAPDU: 80 0D 01 02 [15:34:14]Write to MH i2c: E2 08 00 FF 05 80 0D 01 02 00 00 00 00 7D [15:34:14]Write i2c OK [15:34:14]MH_I2C_Read... [15:34:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:34:14]Read from MH i2c: E2 [15:34:14]MH_I2C_Read... [15:34:14]Read from MH i2c: E2 03 00 [15:34:14]MH_I2C_Read... [15:34:14]Read from MH i2c: E2 03 00 FF 05 00 90 00 78 [15:34:14]RAPDU: 90 00 [15:34:14]wFMCommunicate OK [15:34:14]wFMCommunicate request_size=253 [15:34:14]MH_SAM_APDU [15:34:14]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 70 17 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 A0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 11 00 00 00 00 07 04 06 00 28 A0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 01 00 00 F4 03 04 00 F5 22 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BA 78 03 00 35 04 06 00 AD DD 06 92 90 5D [15:34:14]Write to MH i2c: E2 00 01 00 06 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 70 17 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 A0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 11 00 00 00 00 07 04 06 00 28 A0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 01 00 00 F4 03 04 00 F5 22 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BA 78 03 00 35 04 06 00 AD DD 06 92 90 5D 00 00 F3 [15:34:14]Write i2c OK [15:34:14]MH_I2C_Read... [15:34:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:14]Read from MH i2c: E2 [15:34:14]MH_I2C_Read... [15:34:14]Read from MH i2c: E2 03 00 [15:34:14]MH_I2C_Read... [15:34:14]Read from MH i2c: E2 03 00 00 06 00 90 00 7A [15:34:14]RAPDU: 90 00 [15:34:14]wFMCommunicate OK [15:34:14]wFMCommunicate request_size=4 [15:34:14]MH_SAM_APDU [15:34:14]CAPDU: 80 0D 03 02 [15:34:14]Write to MH i2c: E2 08 00 01 06 80 0D 03 02 00 00 00 00 82 [15:34:14]Write i2c OK [15:34:14]MH_I2C_Read... [15:34:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:34:14]Read from MH i2c: E2 [15:34:14]MH_I2C_Read... [15:34:14]Read from MH i2c: E2 0B 00 [15:34:14]MH_I2C_Read... [15:34:14]Read from MH i2c: E2 0B 00 01 06 00 08 B9 88 8B 14 A8 24 10 90 00 47 [15:34:14]RAPDU: 08 B9 88 8B 14 A8 24 10 90 00 [15:34:14]wFMCommunicate OK [15:34:14]SAM_PROTO_SignData done [15:34:14]FM_MakeSignedData done [15:34:14]CreateOFDProtocolMessage [15:34:14]wFMCommunicate request_size=4 [15:34:14]MH_SAM_APDU [15:34:14]CAPDU: 80 11 00 00 [15:34:14]Write to MH i2c: E2 08 00 02 06 80 11 00 00 00 00 00 00 82 [15:34:14]Write i2c OK [15:34:14]MH_I2C_Read... [15:34:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:14]Read from MH i2c: E2 [15:34:14]MH_I2C_Read... [15:34:14]Read from MH i2c: E2 17 00 [15:34:14]MH_I2C_Read... [15:34:14]Read from MH i2c: E2 17 00 02 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D9 [15:34:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:34:14]wFMCommunicate OK [15:34:14]CreateOFDProtocolMessage done [15:34:14]OFDSenderStorePacket 227514 [15:34:14]StoreOFDPacket docnum=227514 [15:34:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 A6 70 00 01 74 48 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 70 17 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 A0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 11 00 00 00 00 07 04 06 00 28 A0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 01 00 00 F4 03 04 00 F5 22 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BA 78 03 00 35 04 06 00 AD DD 06 92 90 5D 08 B9 88 8B 14 A8 24 10 [15:34:14]CheckFolder [15:34:14]dirname=/storage/ofd_packets [15:34:14]CheckFolder done [15:34:14]ProducePacketName [15:34:14]name=ofd_packets/00227514 [15:34:14]NVStorageSaveData ofd_packets/00227514 [15:34:14]File name is /storage/ofd_packets/00227514 [15:34:14]Write 294 bytes [15:34:14]NVStorageSaveData done [15:34:14]OFDSenderStorePacket done [15:34:14]KKMCreateOFDPacket done [15:34:14]NVStorageSaveData kkm_last_timestamp [15:34:14]File name is /storage/kkm_last_timestamp [15:34:14]Write 4 bytes [15:34:14]NVStorageSaveData done [15:34:14]ExternCall_PrintAddStr [15:34:14]wPrintStart [15:34:14]Write to MH i2c: 01 00 00 03 06 09 [15:34:14]Write i2c OK [15:34:14]MH_I2C_Read... [15:34:14]Read from MH i2c: 01 [15:34:14]MH_I2C_Read... [15:34:14]Read from MH i2c: 01 07 00 [15:34:14]MH_I2C_Read... [15:34:14]Read from MH i2c: 01 07 00 03 06 00 00 00 00 00 FF 0F 1E [15:34:14]RasterBufferAndPrint [15:34:14]line Счет N : (1)1963106 [15:34:14]line ИНН: 02508201610067 [15:34:14]line Контрольно-Кассовый Чек [15:34:14]line ПРОДАЖА [15:34:14]line ТРК (МРК, ГНК) : 62 [15:34:14]line Товар: 2710124130 [15:34:14]line SU-92 [15:34:14]line 6.000 * 68.40 [15:34:14]line = 410.40 [15:34:14]line НДС 12% НСП 1% [15:34:14]line > о реализуемом товаре [15:34:14]line ОКРУГЛЕНИЕ: -0.40 [15:34:14]line ИТОГО: 410.00 [15:34:14]line Внесено: 410.00 [15:34:14]line СДАЧА: 0.00 [15:34:14]line НСП 1% : 3.63 [15:34:14]line НДС 12% : 43.58 [15:34:14]line Наличными: 410.00 [15:34:14]line Безнал.: 0.00 [15:34:14]line Место: АЗС № 133 "Партнер Нефть" [15:34:14]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [15:34:14]line СНО: Общий режим [15:34:14]line Чек 362 20.10.2024 15:34 [15:34:14]line Смена: 533 ФФД: 1.0 [15:34:14]line ЗНМ: 0300000091 [15:34:14]line РНМ: 0000000000091685 [15:34:14]line Версия ККМ: 001 [15:34:14]line ФМ: 0000000000871839 [15:34:14]line ФД: 227514 [15:34:14]line ФПД: 191164809646173 [15:34:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T153413&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227514&fm=191164809646173&tin=02508201610067®Number=0000000000091685&sum=41000 [15:34:14]OFD Sender: Processing packet 227514 [packets to send 38, broken 37] [15:34:14]ProducePacketName [15:34:14]name=ofd_packets/00227514 [15:34:14]OFD Sender: To server: pG, [15:34:14]CommunicateWithHost lk.salyk.kg:30040 [15:34:14]ConnectInit lk.salyk.kg [15:34:14]written 0, free lines is 4095 [15:34:14]Connected sock=10 [15:34: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 33 39 08 01 00 00 A6 70 00 01 74 48 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 70 17 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 A0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 11 00 00 00 00 07 04 06 00 28 A0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 01 00 00 F4 03 04 00 F5 22 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BA 78 03 00 35 04 06 00 AD DD 06 92 90 5D 08 B9 88 8B 14 A8 24 10 [15:34:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 10 1A 47 00 08 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BA 78 03 00 F4 03 04 00 F4 CD 14 67 B6 04 01 00 00 A1 FE D9 6B 0F AE 75 03 [15:34:15]CommunicateWithHost err = 0 [15:34:15]CheckOFDResponse [15:34:15]1017 (14) - 77093643461234 [15:34:15]1041 (16) - 0000000000871839 [15:34:15]1040 (4) - 227514 [15:34:15]1012 (4) - 20.10.2024 09:31 [15:34:15]1206 (1) - 0 [15:34:15]OFD Sender: Remove packet 227514 [15:34:15]ProducePacketName [15:34:15]name=ofd_packets/00227514 [15:34:15]NVStorageDeleteData [15:34:15]Write to MH i2c: 01 00 00 2D 06 33 [15:34:15]Write i2c OK [15:34:15]MH_I2C_Read... [15:34:15]Read from MH i2c: 01 [15:34:15]MH_I2C_Read... [15:34:15]Read from MH i2c: 01 07 00 [15:34:15]MH_I2C_Read... [15:34:15]Read from MH i2c: 01 07 00 2D 06 00 00 00 00 00 FE 0C 44 [15:34:15]RasterBufferAndPrint [15:34:15]line [15:34:15]line [15:34:15]line [15:34:15]line [15:34:15]line [15:34:15]written 0, free lines is 3332 [15:34:15]process_action close_receipt done [15:34:15]requested_data is exist [15:34:15]produce_requested_data [15:34:15]requested_item fm.sn is exist - process it [15:34:15]wFMCommunicate request_size=4 [15:34:15]MH_SAM_APDU [15:34:15]CAPDU: 80 11 00 00 [15:34:15]Write to MH i2c: E2 08 00 34 06 80 11 00 00 00 00 00 00 B4 [15:34:15]Write i2c OK [15:34:15]MH_I2C_Read... [15:34:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:15]Read from MH i2c: E2 [15:34:15]MH_I2C_Read... [15:34:15]Read from MH i2c: E2 17 00 [15:34:15]MH_I2C_Read... [15:34:15]Read from MH i2c: E2 17 00 34 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 0B [15:34:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:34:15]wFMCommunicate OK [15:34:15]requested_item fd.num is exist - process it [15:34:15]SAM_PROTO_GetFieldsCounters [15:34:15]wFMCommunicate request_size=4 [15:34:15]MH_SAM_APDU [15:34:15]CAPDU: 80 13 00 00 [15:34:15]Write to MH i2c: E2 08 00 35 06 80 13 00 00 00 00 00 00 B7 [15:34:15]Write i2c OK [15:34:15]MH_I2C_Read... [15:34:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:34:15]Read from MH i2c: E2 [15:34:15]MH_I2C_Read... [15:34:15]Read from MH i2c: E2 62 00 [15:34:15]MH_I2C_Read... [15:34:15]Read from MH i2c: E2 62 00 35 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 BA 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 6A 01 00 00 5E 04 04 00 6A 01 00 00 57 04 04 00 6B 01 00 00 19 04 04 00 00 00 00 00 90 00 6D [15:34: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 BA 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 6A 01 00 00 5E 04 04 00 6A 01 00 00 57 04 04 00 6B 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:34:15]wFMCommunicate OK [15:34:15]SAM_PROTO_GetFieldsCounters done [15:34:15]requested_item shift.num is exist - process it [15:34:15]requested_item shift.opened is exist - process it [15:34:15]req_shift_opened [15:34:15]FM_GetShiftState [15:34:15]SAM_PROTO_GetShiftState [15:34:15]wFMCommunicate request_size=4 [15:34:15]MH_SAM_APDU [15:34:15]CAPDU: 80 13 01 00 [15:34:15]Write to MH i2c: E2 08 00 36 06 80 13 01 00 00 00 00 00 B9 [15:34:15]Write i2c OK [15:34:15]MH_I2C_Read... [15:34:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:15]Read from MH i2c: E2 [15:34:15]MH_I2C_Read... [15:34:15]Read from MH i2c: E2 0E 00 [15:34:15]MH_I2C_Read... [15:34:15]Read from MH i2c: E2 0E 00 36 06 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 D3 [15:34:15]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [15:34:15]wFMCommunicate OK [15:34:15]SAM_PROTO_GetShiftState done [15:34:15]FM_GetShiftState done [15:34:15]req_shift_opened done [15:34:15]requested_item shift.open_date is exist - process it [15:34:15]req_shift_open_date [15:34:15]req_shift_open_date done [15:34:15]produce_requested_data done [15:34:15]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227514,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [15:34:15]process_action_free close_receipt [15:34:15]json_value_free [15:34:15]json_value_free done [15:34:15]process_json_proto returns [15:34:15]Send response to host [15:34:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227514,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [15:34:15]free response buf [15:34:15]execute_script done [15:34:15]execute_script returns [15:34:15]free content buf [15:34:15]Sock 9.Close socket [15:34:15]Sock 9.Thread stoped [15:34:15]OFD Sender: No OFD packet to send [15:34:20]accept exits with 7 [15:34:20]New connection [15:34:20]New thread 3067362660 created [15:34:20]Thread 3067219300 joined [15:34:20]Waiting for new connection... [15:34:20] Sock 7.Parse request [15:34:20]Sock 7.Check first char [15:34:20]Sock 7.First char is OK [15:34:20]request: POST /json_proto HTTP/1.0 [15:34:20]Method: POST [15:34:20]URL: /json_proto [15:34:20]Method is POST - this is cgi request [15:34:20]url: /json_proto [15:34:20]query_string will be loaded in cgi processing [15:34:20]execute_cgi json_proto POST (null) [15:34:20]execute_cgi path=json_proto method=POST [15:34:20]POST find Content-Length [15:34:20]Host: 172.17.44.195:8080 [15:34:20]Content-Length: 678 [15:34:20]Content-Type: application/json [15:34:20] [15:34:20]POST finish read [15:34:20]Found Content-Length = 678 [15:34:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963105", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:34:20]execute_script... [15:34: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)1963105", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:34:20]POST & json_proto [15:34:20]process_json_proto [15:34:20]json parsed OK: [15:34:20]protocol is kg_v1.0 [15:34:20]action value=close_receipt [15:34:20]process_action close_receipt [15:34:20]cmd_close_receipt [15:34:20]MH_GetDate [15:34:20]Write to MH i2c: F0 00 00 37 06 2C [15:34:20]Write i2c OK [15:34:20]MH_I2C_Read... [15:34:20]Read from MH i2c: F0 [15:34:20]MH_I2C_Read... [15:34:20]Read from MH i2c: F0 09 00 [15:34:20]MH_I2C_Read... [15:34:20]Read from MH i2c: F0 09 00 37 06 00 FD 22 15 67 82 C9 CF 66 50 [15:34:20]GetLastDocTimeStamp 1729438453 [15:34:20]current date 1729438461 [15:34:20]FM_GetShiftState [15:34:20]SAM_PROTO_GetShiftState [15:34:20]wFMCommunicate request_size=4 [15:34:20]MH_SAM_APDU [15:34:20]CAPDU: 80 13 01 00 [15:34:20]Write to MH i2c: E2 08 00 38 06 80 13 01 00 00 00 00 00 BB [15:34:20]Write i2c OK [15:34:20]MH_I2C_Read... [15:34:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:20]Read from MH i2c: E2 [15:34:20]MH_I2C_Read... [15:34:20]Read from MH i2c: E2 0E 00 [15:34:20]MH_I2C_Read... [15:34:20]Read from MH i2c: E2 0E 00 38 06 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 D5 [15:34:20]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [15:34:20]wFMCommunicate OK [15:34:20]SAM_PROTO_GetShiftState done [15:34:20]FM_GetShiftState done [15:34:20]opened in 1729383750 [15:34:20]opened+sec_in_day 1729470150 [15:34:20]quantity*price = 50041 [15:34:20]sum+1 = 50042 [15:34:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 363 20.10.2024 15:34 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227515 ФПД: 253888326671294 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T153421&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227515&fm=253888326671294&tin=02508201610067®Number=0000000000091685&sum=50000 [15:34:21]StoreToDocumentArchive [15:34:21]shift 533 fd 227515 [15:34:21]save to /storage/0533/doc_00227515 [15:34:21]save last doc name /storage/0533/doc_00227515 to /storage/kkm_last_doc_name [15:34:21]save OK [15:34:21]Clear old archive folders... [15:34:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:34:21]tlvbuf is 00D7ACF0 [15:34:21]SAM_PROTO_ClearQueue [15:34:21]wFMCommunicate request_size=4 [15:34:21]MH_SAM_APDU [15:34:21]CAPDU: 80 09 00 00 [15:34:21]Write to MH i2c: E2 08 00 45 06 80 09 00 00 00 00 00 00 BD [15:34:21]Write i2c OK [15:34:21]MH_I2C_Read... [15:34:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:34:21]Read from MH i2c: E2 [15:34:21]MH_I2C_Read... [15:34:21]Read from MH i2c: E2 03 00 [15:34:21]MH_I2C_Read... [15:34:21]Read from MH i2c: E2 03 00 45 06 00 90 00 BF [15:34:21]RAPDU: 90 00 [15:34:21]wFMCommunicate OK [15:34:21]SAM_PROTO_ClearQueue done [15:34:21]KKMCreateOFDPacket [15:34:21]OFDProtocolAddRootSTLVToBuf [15:34:21]FM_MakeSignedData [15:34:21]FM_MakeSignedData [15:34:21]SAM_PROTO_SignData [15:34:21]wFMCommunicate request_size=4 [15:34:21]MH_SAM_APDU [15:34:21]CAPDU: 80 0D 01 02 [15:34:21]Write to MH i2c: E2 08 00 46 06 80 0D 01 02 00 00 00 00 C5 [15:34:21]Write i2c OK [15:34:21]MH_I2C_Read... [15:34:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:34:21]Read from MH i2c: E2 [15:34:21]MH_I2C_Read... [15:34:21]Read from MH i2c: E2 03 00 [15:34:21]MH_I2C_Read... [15:34:21]Read from MH i2c: E2 03 00 46 06 00 90 00 C0 [15:34:21]RAPDU: 90 00 [15:34:21]wFMCommunicate OK [15:34:21]wFMCommunicate request_size=255 [15:34:21]MH_SAM_APDU [15:34:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 01 00 00 F4 03 04 00 FD 22 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BB 78 03 00 35 04 06 00 E6 [15:34:21]Write to MH i2c: E2 02 01 47 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 01 00 00 F4 03 04 00 FD 22 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BB 78 03 00 35 04 06 00 E6 00 00 96 [15:34:21]Write i2c OK [15:34:21]MH_I2C_Read... [15:34:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:21]Read from MH i2c: E2 [15:34:21]MH_I2C_Read... [15:34:21]Read from MH i2c: E2 03 00 [15:34:21]MH_I2C_Read... [15:34:21]Read from MH i2c: E2 03 00 47 06 00 90 00 C1 [15:34:21]RAPDU: 90 00 [15:34:21]wFMCommunicate OK [15:34:21]wFMCommunicate request_size=10 [15:34:21]MH_SAM_APDU [15:34:21]CAPDU: 80 0D 02 02 05 E8 FB 86 1B BE [15:34:21]Write to MH i2c: E2 0D 00 48 06 80 0D 02 02 05 00 E8 FB 86 1B BE 00 00 14 [15:34:21]Write i2c OK [15:34:21]MH_I2C_Read... [15:34:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:22]Read from MH i2c: E2 [15:34:22]MH_I2C_Read... [15:34:22]Read from MH i2c: E2 03 00 [15:34:22]MH_I2C_Read... [15:34:22]Read from MH i2c: E2 03 00 48 06 00 90 00 C2 [15:34:22]RAPDU: 90 00 [15:34:22]wFMCommunicate OK [15:34:22]wFMCommunicate request_size=4 [15:34:22]MH_SAM_APDU [15:34:22]CAPDU: 80 0D 03 02 [15:34:22]Write to MH i2c: E2 08 00 49 06 80 0D 03 02 00 00 00 00 CA [15:34:22]Write i2c OK [15:34:22]MH_I2C_Read... [15:34:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:34:22]Read from MH i2c: E2 [15:34:22]MH_I2C_Read... [15:34:22]Read from MH i2c: E2 0B 00 [15:34:22]MH_I2C_Read... [15:34:22]Read from MH i2c: E2 0B 00 49 06 00 9B B3 FF 8E FF 54 42 9D 90 00 D8 [15:34:22]RAPDU: 9B B3 FF 8E FF 54 42 9D 90 00 [15:34:22]wFMCommunicate OK [15:34:22]SAM_PROTO_SignData done [15:34:22]FM_MakeSignedData done [15:34:22]CreateOFDProtocolMessage [15:34:22]wFMCommunicate request_size=4 [15:34:22]MH_SAM_APDU [15:34:22]CAPDU: 80 11 00 00 [15:34:22]Write to MH i2c: E2 08 00 4A 06 80 11 00 00 00 00 00 00 CA [15:34:22]Write i2c OK [15:34:22]MH_I2C_Read... [15:34:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:22]Read from MH i2c: E2 [15:34:22]MH_I2C_Read... [15:34:22]Read from MH i2c: E2 17 00 [15:34:22]MH_I2C_Read... [15:34:22]Read from MH i2c: E2 17 00 4A 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 21 [15:34:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:34:22]wFMCommunicate OK [15:34:22]CreateOFDProtocolMessage done [15:34:22]OFDSenderStorePacket 227515 [15:34:22]StoreOFDPacket docnum=227515 [15:34:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 2F 9D 07 01 1D F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 01 00 00 F4 03 04 00 FD 22 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BB 78 03 00 35 04 06 00 E6 E8 FB 86 1B BE 9B B3 FF 8E FF 54 42 9D [15:34:22]CheckFolder [15:34:22]dirname=/storage/ofd_packets [15:34:22]CheckFolder done [15:34:22]ProducePacketName [15:34:22]name=ofd_packets/00227515 [15:34:22]NVStorageSaveData ofd_packets/00227515 [15:34:22]File name is /storage/ofd_packets/00227515 [15:34:22]Write 301 bytes [15:34:22]NVStorageSaveData done [15:34:22]OFDSenderStorePacket done [15:34:22]KKMCreateOFDPacket done [15:34:22]NVStorageSaveData kkm_last_timestamp [15:34:22]File name is /storage/kkm_last_timestamp [15:34:22]Write 4 bytes [15:34:22]NVStorageSaveData done [15:34:22]ExternCall_PrintAddStr [15:34:22]wPrintStart [15:34:22]Write to MH i2c: 01 00 00 4B 06 51 [15:34:22]Write i2c OK [15:34:22]MH_I2C_Read... [15:34:22]Read from MH i2c: 01 [15:34:22]MH_I2C_Read... [15:34:22]Read from MH i2c: 01 07 00 [15:34:22]MH_I2C_Read... [15:34:22]Read from MH i2c: 01 07 00 4B 06 00 00 00 00 00 FF 0F 66 [15:34:22]RasterBufferAndPrint [15:34:22]line Счет N : (1)1963105 [15:34:22]line ИНН: 02508201610067 [15:34:22]line Контрольно-Кассовый Чек [15:34:22]line ПРОДАЖА [15:34:22]line ТРК (МРК, ГНК) : 43 [15:34:22]line Товар: 2710124130 [15:34:22]line Аи-92-К-5 [15:34:22]line 7.480 * 66.90 [15:34:22]line = 500.41 [15:34:22]line НДС 12% НСП 1% [15:34:22]line > о реализуемом товаре [15:34:22]line ОКРУГЛЕНИЕ: -0.41 [15:34:22]line ИТОГО: 500.00 [15:34:22]line Внесено: 500.00 [15:34:22]line СДАЧА: 0.00 [15:34:22]line НСП 1% : 4.43 [15:34:22]line НДС 12% : 53.14 [15:34:22]line Наличными: 500.00 [15:34:22]line Безнал.: 0.00 [15:34:22]line Место: АЗС № 133 "Партнер Нефть" [15:34:22]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [15:34:22]line СНО: Общий режим [15:34:22]line Чек 363 20.10.2024 15:34 [15:34:22]line Смена: 533 ФФД: 1.0 [15:34:22]line ЗНМ: 0300000091 [15:34:22]line РНМ: 0000000000091685 [15:34:22]line Версия ККМ: 001 [15:34:22]line ФМ: 0000000000871839 [15:34:22]line ФД: 227515 [15:34:22]line ФПД: 253888326671294 [15:34:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T153421&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227515&fm=253888326671294&tin=02508201610067®Number=0000000000091685&sum=50000 [15:34:22]OFD Sender: Processing packet 227515 [packets to send 38, broken 37] [15:34:22]ProducePacketName [15:34:22]name=ofd_packets/00227515 [15:34:22]OFD Sender: To server: pG, [15:34:22]CommunicateWithHost lk.salyk.kg:30040 [15:34:22]ConnectInit lk.salyk.kg [15:34:22]written 0, free lines is 4095 [15:34:22]Connected sock=10 [15:34:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 2F 9D 07 01 1D F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 01 00 00 F4 03 04 00 FD 22 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BB 78 03 00 35 04 06 00 E6 E8 FB 86 1B BE 9B B3 FF 8E FF 54 42 9D [15:34: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 33 39 4F 00 00 00 87 5A 47 00 2B 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 33 39 10 04 04 00 BB 78 03 00 F4 03 04 00 FB CD 14 67 B6 04 01 00 00 B8 82 20 C5 1C 66 2C C9 [15:34:22]CommunicateWithHost err = 0 [15:34:22]CheckOFDResponse [15:34:22]1017 (14) - 77093643461234 [15:34:22]1041 (16) - 0000000000871839 [15:34:22]1040 (4) - 227515 [15:34:22]1012 (4) - 20.10.2024 09:31 [15:34:22]1206 (1) - 0 [15:34:22]OFD Sender: Remove packet 227515 [15:34:22]ProducePacketName [15:34:22]name=ofd_packets/00227515 [15:34:22]NVStorageDeleteData [15:34:22]Write to MH i2c: 01 00 00 75 06 7B [15:34:22]Write i2c OK [15:34:22]MH_I2C_Read... [15:34:22]Read from MH i2c: 01 [15:34:22]MH_I2C_Read... [15:34:22]Read from MH i2c: 01 07 00 [15:34:22]MH_I2C_Read... [15:34:22]Read from MH i2c: 01 07 00 75 06 00 00 00 00 00 01 0D 90 [15:34:22]RasterBufferAndPrint [15:34:22]line [15:34:22]line [15:34:22]line [15:34:22]line [15:34:22]line [15:34:22]written 0, free lines is 3338 [15:34:22]process_action close_receipt done [15:34:22]requested_data is exist [15:34:22]produce_requested_data [15:34:22]requested_item fm.sn is exist - process it [15:34:22]wFMCommunicate request_size=4 [15:34:22]MH_SAM_APDU [15:34:22]CAPDU: 80 11 00 00 [15:34:22]Write to MH i2c: E2 08 00 7C 06 80 11 00 00 00 00 00 00 FC [15:34:22]Write i2c OK [15:34:22]MH_I2C_Read... [15:34:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:22]Read from MH i2c: E2 [15:34:22]MH_I2C_Read... [15:34:22]Read from MH i2c: E2 17 00 [15:34:22]MH_I2C_Read... [15:34:22]Read from MH i2c: E2 17 00 7C 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 53 [15:34:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [15:34:22]wFMCommunicate OK [15:34:22]requested_item fd.num is exist - process it [15:34:22]SAM_PROTO_GetFieldsCounters [15:34:22]wFMCommunicate request_size=4 [15:34:22]MH_SAM_APDU [15:34:22]CAPDU: 80 13 00 00 [15:34:22]Write to MH i2c: E2 08 00 7D 06 80 13 00 00 00 00 00 00 FF [15:34:22]Write i2c OK [15:34:22]MH_I2C_Read... [15:34:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:34:23]Read from MH i2c: E2 [15:34:23]MH_I2C_Read... [15:34:23]Read from MH i2c: E2 62 00 [15:34:23]MH_I2C_Read... [15:34:23]Read from MH i2c: E2 62 00 7D 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 BB 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 6B 01 00 00 5E 04 04 00 6B 01 00 00 57 04 04 00 6C 01 00 00 19 04 04 00 00 00 00 00 90 00 B9 [15:34: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 BB 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 6B 01 00 00 5E 04 04 00 6B 01 00 00 57 04 04 00 6C 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:34:23]wFMCommunicate OK [15:34:23]SAM_PROTO_GetFieldsCounters done [15:34:23]requested_item shift.num is exist - process it [15:34:23]requested_item shift.opened is exist - process it [15:34:23]req_shift_opened [15:34:23]FM_GetShiftState [15:34:23]SAM_PROTO_GetShiftState [15:34:23]wFMCommunicate request_size=4 [15:34:23]MH_SAM_APDU [15:34:23]CAPDU: 80 13 01 00 [15:34:23]Write to MH i2c: E2 08 00 7E 06 80 13 01 00 00 00 00 00 01 [15:34:23]Write i2c OK [15:34:23]MH_I2C_Read... [15:34:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:23]Read from MH i2c: E2 [15:34:23]MH_I2C_Read... [15:34:23]Read from MH i2c: E2 0E 00 [15:34:23]MH_I2C_Read... [15:34:23]Read from MH i2c: E2 0E 00 7E 06 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 1B [15:34:23]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [15:34:23]wFMCommunicate OK [15:34:23]SAM_PROTO_GetShiftState done [15:34:23]FM_GetShiftState done [15:34:23]req_shift_opened done [15:34:23]requested_item shift.open_date is exist - process it [15:34:23]req_shift_open_date [15:34:23]req_shift_open_date done [15:34:23]produce_requested_data done [15:34:23]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227515,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [15:34:23]process_action_free close_receipt [15:34:23]json_value_free [15:34:23]json_value_free done [15:34:23]process_json_proto returns [15:34:23]Send response to host [15:34:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227515,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [15:34:23]free response buf [15:34:23]execute_script done [15:34:23]execute_script returns [15:34:23]free content buf [15:34:23]Sock 7.Close socket [15:34:23]Sock 7.Thread stoped [15:34:23]OFD Sender: No OFD packet to send [15:34:28]OFD Sender: No OFD packet to send [15:34:33]OFD Sender: No OFD packet to send [15:34:38]OFD Sender: No OFD packet to send [15:34:43]OFD Sender: No OFD packet to send [15:34:48]OFD Sender: No OFD packet to send [15:34:53]OFD Sender: No OFD packet to send [15:34:58]OFD Sender: No OFD packet to send [15:35:03]OFD Sender: No OFD packet to send [15:35:08]OFD Sender: No OFD packet to send [15:35:13]OFD Sender: No OFD packet to send [15:35:18]OFD Sender: No OFD packet to send [15:35:23]OFD Sender: No OFD packet to send [15:35:28]OFD Sender: No OFD packet to send [15:35:33]OFD Sender: No OFD packet to send [15:35:38]OFD Sender: No OFD packet to send [15:35:43]OFD Sender: No OFD packet to send [15:35:48]OFD Sender: No OFD packet to send [15:35:53]OFD Sender: No OFD packet to send [15:35:58]OFD Sender: No OFD packet to send [15:36:03]OFD Sender: No OFD packet to send [15:36:08]OFD Sender: No OFD packet to send [15:36:13]OFD Sender: No OFD packet to send [15:36:18]OFD Sender: No OFD packet to send [15:36:23]OFD Sender: No OFD packet to send [15:36:28]OFD Sender: No OFD packet to send [15:36:33]OFD Sender: No OFD packet to send [15:36:38]OFD Sender: No OFD packet to send [15:36:43]OFD Sender: No OFD packet to send [15:36:48]OFD Sender: No OFD packet to send [15:36:53]OFD Sender: No OFD packet to send [15:36:58]OFD Sender: No OFD packet to send [15:37:03]OFD Sender: No OFD packet to send [15:37:08]OFD Sender: No OFD packet to send [15:37:13]OFD Sender: No OFD packet to send [15:37:18]OFD Sender: No OFD packet to send [15:37:23]OFD Sender: No OFD packet to send [15:37:28]OFD Sender: No OFD packet to send [15:37:33]OFD Sender: No OFD packet to send [15:37:38]OFD Sender: No OFD packet to send [15:37:43]OFD Sender: No OFD packet to send [15:37:48]OFD Sender: No OFD packet to send [15:37:53]OFD Sender: No OFD packet to send [15:37:58]OFD Sender: No OFD packet to send [15:38:03]OFD Sender: No OFD packet to send [15:38:08]OFD Sender: No OFD packet to send [15:38:13]OFD Sender: No OFD packet to send [15:38:18]OFD Sender: No OFD packet to send [15:38:23]OFD Sender: No OFD packet to send [15:38:28]OFD Sender: No OFD packet to send [15:38:33]OFD Sender: No OFD packet to send [15:38:38]OFD Sender: No OFD packet to send [15:38:43]OFD Sender: No OFD packet to send [15:38:48]OFD Sender: No OFD packet to send [15:38:53]OFD Sender: No OFD packet to send [15:38:58]OFD Sender: No OFD packet to send [15:39:03]OFD Sender: No OFD packet to send [15:39:08]OFD Sender: No OFD packet to send [15:39:13]OFD Sender: No OFD packet to send [15:39:18]OFD Sender: No OFD packet to send [15:39:23]OFD Sender: No OFD packet to send [15:39:28]OFD Sender: No OFD packet to send [15:39:33]OFD Sender: No OFD packet to send [15:39:38]OFD Sender: No OFD packet to send [15:39:43]OFD Sender: No OFD packet to send [15:39:48]OFD Sender: No OFD packet to send [15:39:53]OFD Sender: No OFD packet to send [15:39:58]OFD Sender: No OFD packet to send [15:40:03]OFD Sender: No OFD packet to send [15:40:08]OFD Sender: No OFD packet to send [15:40:13]OFD Sender: No OFD packet to send [15:40:18]OFD Sender: No OFD packet to send [15:40:23]OFD Sender: No OFD packet to send [15:40:28]OFD Sender: No OFD packet to send [15:40:33]OFD Sender: No OFD packet to send [15:40:38]OFD Sender: No OFD packet to send [15:40:43]OFD Sender: No OFD packet to send [15:40:48]OFD Sender: No OFD packet to send [15:40:53]OFD Sender: No OFD packet to send [15:40:58]OFD Sender: No OFD packet to send [15:41:03]OFD Sender: No OFD packet to send [15:41:08]OFD Sender: No OFD packet to send [15:41:13]OFD Sender: No OFD packet to send [15:41:18]OFD Sender: No OFD packet to send [15:41:23]OFD Sender: No OFD packet to send [15:41:28]OFD Sender: No OFD packet to send [15:41:33]OFD Sender: No OFD packet to send [15:41:38]OFD Sender: No OFD packet to send [15:41:43]OFD Sender: No OFD packet to send [15:41:48]OFD Sender: No OFD packet to send [15:41:53]OFD Sender: No OFD packet to send [15:41:58]OFD Sender: No OFD packet to send [15:42:03]OFD Sender: No OFD packet to send [15:42:08]OFD Sender: No OFD packet to send [15:42:13]OFD Sender: No OFD packet to send [15:42:18]OFD Sender: No OFD packet to send [15:42:23]OFD Sender: No OFD packet to send [15:42:28]OFD Sender: No OFD packet to send [15:42:33]OFD Sender: No OFD packet to send [15:42:38]OFD Sender: No OFD packet to send [15:42:43]OFD Sender: No OFD packet to send [15:42:48]OFD Sender: No OFD packet to send [15:42:53]OFD Sender: No OFD packet to send [15:42:58]OFD Sender: No OFD packet to send [15:43:03]OFD Sender: No OFD packet to send [15:43:08]OFD Sender: No OFD packet to send [15:43:13]OFD Sender: No OFD packet to send [15:43:18]OFD Sender: No OFD packet to send [15:43:23]OFD Sender: No OFD packet to send [15:43:28]OFD Sender: No OFD packet to send [15:43:33]OFD Sender: No OFD packet to send [15:43:38]OFD Sender: No OFD packet to send [15:43:43]OFD Sender: No OFD packet to send [15:43:48]OFD Sender: No OFD packet to send [15:43:53]OFD Sender: No OFD packet to send [15:43:58]OFD Sender: No OFD packet to send [15:44:03]OFD Sender: No OFD packet to send [15:44:08]OFD Sender: No OFD packet to send [15:44:13]OFD Sender: No OFD packet to send [15:44:18]OFD Sender: No OFD packet to send [15:44:23]OFD Sender: No OFD packet to send [15:44:28]OFD Sender: No OFD packet to send [15:44:33]OFD Sender: No OFD packet to send [15:44:38]OFD Sender: No OFD packet to send [15:44:43]OFD Sender: No OFD packet to send [15:44:48]OFD Sender: No OFD packet to send [15:44:53]OFD Sender: No OFD packet to send [15:44:58]OFD Sender: No OFD packet to send [15:45:03]OFD Sender: No OFD packet to send [15:45:08]OFD Sender: No OFD packet to send [15:45:13]OFD Sender: No OFD packet to send [15:45:18]OFD Sender: No OFD packet to send [15:45:23]OFD Sender: No OFD packet to send [15:45:28]OFD Sender: No OFD packet to send [15:45:33]OFD Sender: No OFD packet to send [15:45:38]OFD Sender: No OFD packet to send [15:45:43]OFD Sender: No OFD packet to send [15:45:48]OFD Sender: No OFD packet to send [15:45:53]OFD Sender: No OFD packet to send [15:45:58]OFD Sender: No OFD packet to send [15:46:03]OFD Sender: No OFD packet to send [15:46:08]OFD Sender: No OFD packet to send [15:46:13]OFD Sender: No OFD packet to send [15:46:18]OFD Sender: No OFD packet to send [15:46:23]OFD Sender: No OFD packet to send [15:46:28]OFD Sender: No OFD packet to send [15:46:33]OFD Sender: No OFD packet to send [15:46:38]OFD Sender: No OFD packet to send [15:46:43]OFD Sender: No OFD packet to send [15:46:48]OFD Sender: No OFD packet to send [15:46:53]OFD Sender: No OFD packet to send [15:46:58]OFD Sender: No OFD packet to send [15:47:03]OFD Sender: No OFD packet to send [15:47:08]OFD Sender: No OFD packet to send [15:47:13]OFD Sender: No OFD packet to send [15:47:18]OFD Sender: No OFD packet to send [15:47:23]OFD Sender: No OFD packet to send [15:47:28]OFD Sender: No OFD packet to send [15:47:33]OFD Sender: No OFD packet to send [15:47:38]OFD Sender: No OFD packet to send [15:47:43]OFD Sender: No OFD packet to send [15:47:48]OFD Sender: No OFD packet to send [15:47:53]OFD Sender: No OFD packet to send [15:47:58]OFD Sender: No OFD packet to send [15:48:03]OFD Sender: No OFD packet to send [15:48:08]OFD Sender: No OFD packet to send [15:48:13]OFD Sender: No OFD packet to send [15:48:18]OFD Sender: No OFD packet to send [15:48:23]OFD Sender: No OFD packet to send [15:48:28]OFD Sender: No OFD packet to send [15:48:33]OFD Sender: No OFD packet to send [15:48:38]OFD Sender: No OFD packet to send [15:48:43]OFD Sender: No OFD packet to send [15:48:48]OFD Sender: No OFD packet to send [15:48:53]OFD Sender: No OFD packet to send [15:48:58]OFD Sender: No OFD packet to send [15:49:03]OFD Sender: No OFD packet to send [15:49:08]OFD Sender: No OFD packet to send [15:49:13]OFD Sender: No OFD packet to send [15:49:18]OFD Sender: No OFD packet to send [15:49:24]OFD Sender: No OFD packet to send [15:49:29]OFD Sender: No OFD packet to send [15:49:34]OFD Sender: No OFD packet to send [15:49:39]OFD Sender: No OFD packet to send [15:49:44]OFD Sender: No OFD packet to send [15:49:49]OFD Sender: No OFD packet to send [15:49:54]OFD Sender: No OFD packet to send [15:49:59]OFD Sender: No OFD packet to send [15:50:04]OFD Sender: No OFD packet to send [15:50:09]OFD Sender: No OFD packet to send [15:50:14]OFD Sender: No OFD packet to send [15:50:19]OFD Sender: No OFD packet to send [15:50:24]OFD Sender: No OFD packet to send [15:50:29]OFD Sender: No OFD packet to send [15:50:34]OFD Sender: No OFD packet to send [15:50:39]OFD Sender: No OFD packet to send [15:50:44]OFD Sender: No OFD packet to send [15:50:49]OFD Sender: No OFD packet to send [15:50:54]OFD Sender: No OFD packet to send [15:50:59]OFD Sender: No OFD packet to send [15:51:04]OFD Sender: No OFD packet to send [15:51:09]OFD Sender: No OFD packet to send [15:51:14]OFD Sender: No OFD packet to send [15:51:19]OFD Sender: No OFD packet to send [15:51:24]OFD Sender: No OFD packet to send [15:51:29]OFD Sender: No OFD packet to send [15:51:34]OFD Sender: No OFD packet to send [15:51:39]OFD Sender: No OFD packet to send [15:51:44]OFD Sender: No OFD packet to send [15:51:49]OFD Sender: No OFD packet to send [15:51:54]OFD Sender: No OFD packet to send [15:51:59]OFD Sender: No OFD packet to send [15:52:04]OFD Sender: No OFD packet to send [15:52:09]OFD Sender: No OFD packet to send [15:52:14]OFD Sender: No OFD packet to send [15:52:19]OFD Sender: No OFD packet to send [15:52:24]OFD Sender: No OFD packet to send [15:52:29]OFD Sender: No OFD packet to send [15:52:34]OFD Sender: No OFD packet to send [15:52:39]OFD Sender: No OFD packet to send [15:52:44]OFD Sender: No OFD packet to send [15:52:49]OFD Sender: No OFD packet to send [15:52:54]OFD Sender: No OFD packet to send [15:52:59]OFD Sender: No OFD packet to send [15:53:04]OFD Sender: No OFD packet to send [15:53:09]OFD Sender: No OFD packet to send [15:53:14]OFD Sender: No OFD packet to send [15:53:19]OFD Sender: No OFD packet to send [15:53:24]OFD Sender: No OFD packet to send [15:53:29]OFD Sender: No OFD packet to send [15:53:34]OFD Sender: No OFD packet to send [15:53:39]OFD Sender: No OFD packet to send [15:53:44]OFD Sender: No OFD packet to send [15:53:49]OFD Sender: No OFD packet to send [15:53:54]OFD Sender: No OFD packet to send [15:53:59]OFD Sender: No OFD packet to send [15:54:04]OFD Sender: No OFD packet to send [15:54:09]OFD Sender: No OFD packet to send [15:54:14]OFD Sender: No OFD packet to send [15:54:19]OFD Sender: No OFD packet to send [15:54:24]OFD Sender: No OFD packet to send [15:54:29]OFD Sender: No OFD packet to send [15:54:34]OFD Sender: No OFD packet to send [15:54:39]OFD Sender: No OFD packet to send [15:54:44]OFD Sender: No OFD packet to send [15:54:49]OFD Sender: No OFD packet to send [15:54:54]OFD Sender: No OFD packet to send [15:54:59]OFD Sender: No OFD packet to send [15:55:04]OFD Sender: No OFD packet to send [15:55:09]OFD Sender: No OFD packet to send [15:55:14]OFD Sender: No OFD packet to send [15:55:19]OFD Sender: No OFD packet to send [15:55:24]OFD Sender: No OFD packet to send [15:55:29]OFD Sender: No OFD packet to send [15:55:34]OFD Sender: No OFD packet to send [15:55:39]OFD Sender: No OFD packet to send [15:55:44]OFD Sender: No OFD packet to send [15:55:49]OFD Sender: No OFD packet to send [15:55:54]OFD Sender: No OFD packet to send [15:55:59]OFD Sender: No OFD packet to send [15:56:04]OFD Sender: No OFD packet to send [15:56:09]OFD Sender: No OFD packet to send [15:56:14]OFD Sender: No OFD packet to send [15:56:19]OFD Sender: No OFD packet to send [15:56:24]OFD Sender: No OFD packet to send [15:56:29]OFD Sender: No OFD packet to send [15:56:34]OFD Sender: No OFD packet to send [15:56:39]OFD Sender: No OFD packet to send [15:56:44]OFD Sender: No OFD packet to send [15:56:49]OFD Sender: No OFD packet to send [15:56:54]OFD Sender: No OFD packet to send [15:56:59]OFD Sender: No OFD packet to send [15:57:04]OFD Sender: No OFD packet to send [15:57:09]OFD Sender: No OFD packet to send [15:57:14]OFD Sender: No OFD packet to send [15:57:19]OFD Sender: No OFD packet to send [15:57:24]OFD Sender: No OFD packet to send [15:57:29]OFD Sender: No OFD packet to send [15:57:34]OFD Sender: No OFD packet to send [15:57:39]OFD Sender: No OFD packet to send [15:57:44]OFD Sender: No OFD packet to send [15:57:49]OFD Sender: No OFD packet to send [15:57:54]OFD Sender: No OFD packet to send [15:57:59]OFD Sender: No OFD packet to send [15:58:04]OFD Sender: No OFD packet to send [15:58:09]OFD Sender: No OFD packet to send [15:58:14]OFD Sender: No OFD packet to send [15:58:19]OFD Sender: No OFD packet to send [15:58:24]OFD Sender: No OFD packet to send [15:58:29]OFD Sender: No OFD packet to send [15:58:34]OFD Sender: No OFD packet to send [15:58:39]OFD Sender: No OFD packet to send [15:58:44]OFD Sender: No OFD packet to send [15:58:49]OFD Sender: No OFD packet to send [15:58:54]OFD Sender: No OFD packet to send [15:58:59]OFD Sender: No OFD packet to send [15:59:04]OFD Sender: No OFD packet to send [15:59:09]OFD Sender: No OFD packet to send [15:59:14]OFD Sender: No OFD packet to send [15:59:19]OFD Sender: No OFD packet to send [15:59:24]OFD Sender: No OFD packet to send [15:59:29]OFD Sender: No OFD packet to send [15:59:34]OFD Sender: No OFD packet to send [15:59:39]OFD Sender: No OFD packet to send [15:59:44]OFD Sender: No OFD packet to send [15:59:49]OFD Sender: No OFD packet to send [15:59:54]OFD Sender: No OFD packet to send [15:59:59]OFD Sender: No OFD packet to send [16:00:04]OFD Sender: No OFD packet to send [16:00:09]OFD Sender: No OFD packet to send [16:00:14]OFD Sender: No OFD packet to send [16:00:19]OFD Sender: No OFD packet to send [16:00:24]OFD Sender: No OFD packet to send [16:00:29]OFD Sender: No OFD packet to send [16:00:34]OFD Sender: No OFD packet to send [16:00:39]OFD Sender: No OFD packet to send [16:00:44]OFD Sender: No OFD packet to send [16:00:49]OFD Sender: No OFD packet to send [16:00:54]OFD Sender: No OFD packet to send [16:00:59]OFD Sender: No OFD packet to send [16:01:04]OFD Sender: No OFD packet to send [16:01:09]OFD Sender: No OFD packet to send [16:01:14]OFD Sender: No OFD packet to send [16:01:19]OFD Sender: No OFD packet to send [16:01:24]OFD Sender: No OFD packet to send [16:01:29]OFD Sender: No OFD packet to send [16:01:34]OFD Sender: No OFD packet to send [16:01:39]OFD Sender: No OFD packet to send [16:01:44]OFD Sender: No OFD packet to send [16:01:49]OFD Sender: No OFD packet to send [16:01:54]OFD Sender: No OFD packet to send [16:01:59]OFD Sender: No OFD packet to send [16:02:04]OFD Sender: No OFD packet to send [16:02:09]OFD Sender: No OFD packet to send [16:02:14]OFD Sender: No OFD packet to send [16:02:19]OFD Sender: No OFD packet to send [16:02:24]OFD Sender: No OFD packet to send [16:02:29]OFD Sender: No OFD packet to send [16:02:34]OFD Sender: No OFD packet to send [16:02:39]OFD Sender: No OFD packet to send [16:02:44]OFD Sender: No OFD packet to send [16:02:49]OFD Sender: No OFD packet to send [16:02:54]OFD Sender: No OFD packet to send [16:02:59]OFD Sender: No OFD packet to send [16:03:04]OFD Sender: No OFD packet to send [16:03:09]OFD Sender: No OFD packet to send [16:03:14]OFD Sender: No OFD packet to send [16:03:19]OFD Sender: No OFD packet to send [16:03:24]OFD Sender: No OFD packet to send [16:03:29]OFD Sender: No OFD packet to send [16:03:34]OFD Sender: No OFD packet to send [16:03:39]OFD Sender: No OFD packet to send [16:03:44]OFD Sender: No OFD packet to send [16:03:49]OFD Sender: No OFD packet to send [16:03:54]OFD Sender: No OFD packet to send [16:03:59]OFD Sender: No OFD packet to send [16:04:04]OFD Sender: No OFD packet to send [16:04:09]OFD Sender: No OFD packet to send [16:04:14]OFD Sender: No OFD packet to send [16:04:19]OFD Sender: No OFD packet to send [16:04:24]OFD Sender: No OFD packet to send [16:04:29]OFD Sender: No OFD packet to send [16:04:34]OFD Sender: No OFD packet to send [16:04:39]OFD Sender: No OFD packet to send [16:04:44]OFD Sender: No OFD packet to send [16:04:49]OFD Sender: No OFD packet to send [16:04:54]OFD Sender: No OFD packet to send [16:04:59]OFD Sender: No OFD packet to send [16:05:04]OFD Sender: No OFD packet to send [16:05:09]OFD Sender: No OFD packet to send [16:05:14]OFD Sender: No OFD packet to send [16:05:19]OFD Sender: No OFD packet to send [16:05:24]OFD Sender: No OFD packet to send [16:05:29]OFD Sender: No OFD packet to send [16:05:34]OFD Sender: No OFD packet to send [16:05:39]OFD Sender: No OFD packet to send [16:05:44]OFD Sender: No OFD packet to send [16:05:49]OFD Sender: No OFD packet to send [16:05:54]OFD Sender: No OFD packet to send [16:05:59]OFD Sender: No OFD packet to send [16:06:04]OFD Sender: No OFD packet to send [16:06:09]OFD Sender: No OFD packet to send [16:06:14]OFD Sender: No OFD packet to send [16:06:19]OFD Sender: No OFD packet to send [16:06:24]OFD Sender: No OFD packet to send [16:06:29]OFD Sender: No OFD packet to send [16:06:34]OFD Sender: No OFD packet to send [16:06:39]OFD Sender: No OFD packet to send [16:06:44]OFD Sender: No OFD packet to send [16:06:49]OFD Sender: No OFD packet to send [16:06:54]OFD Sender: No OFD packet to send [16:06:59]OFD Sender: No OFD packet to send [16:07:04]OFD Sender: No OFD packet to send [16:07:09]OFD Sender: No OFD packet to send [16:07:14]OFD Sender: No OFD packet to send [16:07:19]OFD Sender: No OFD packet to send [16:07:24]OFD Sender: No OFD packet to send [16:07:29]OFD Sender: No OFD packet to send [16:07:34]OFD Sender: No OFD packet to send [16:07:39]OFD Sender: No OFD packet to send [16:07:44]OFD Sender: No OFD packet to send [16:07:49]OFD Sender: No OFD packet to send [16:07:54]OFD Sender: No OFD packet to send [16:07:59]OFD Sender: No OFD packet to send [16:08:04]OFD Sender: No OFD packet to send [16:08:09]OFD Sender: No OFD packet to send [16:08:14]OFD Sender: No OFD packet to send [16:08:19]OFD Sender: No OFD packet to send [16:08:25]OFD Sender: No OFD packet to send [16:08:30]OFD Sender: No OFD packet to send [16:08:35]OFD Sender: No OFD packet to send [16:08:40]OFD Sender: No OFD packet to send [16:08:45]OFD Sender: No OFD packet to send [16:08:50]OFD Sender: No OFD packet to send [16:08:55]OFD Sender: No OFD packet to send [16:09:00]OFD Sender: No OFD packet to send [16:09:05]OFD Sender: No OFD packet to send [16:09:10]OFD Sender: No OFD packet to send [16:09:15]OFD Sender: No OFD packet to send [16:09:20]OFD Sender: No OFD packet to send [16:09:25]OFD Sender: No OFD packet to send [16:09:30]OFD Sender: No OFD packet to send [16:09:35]OFD Sender: No OFD packet to send [16:09:40]OFD Sender: No OFD packet to send [16:09:45]OFD Sender: No OFD packet to send [16:09:50]OFD Sender: No OFD packet to send [16:09:55]OFD Sender: No OFD packet to send [16:10:00]OFD Sender: No OFD packet to send [16:10:05]OFD Sender: No OFD packet to send [16:10:10]OFD Sender: No OFD packet to send [16:10:15]OFD Sender: No OFD packet to send [16:10:20]OFD Sender: No OFD packet to send [16:10:25]OFD Sender: No OFD packet to send [16:10:30]OFD Sender: No OFD packet to send [16:10:35]OFD Sender: No OFD packet to send [16:10:40]OFD Sender: No OFD packet to send [16:10:45]OFD Sender: No OFD packet to send [16:10:50]OFD Sender: No OFD packet to send [16:10:55]OFD Sender: No OFD packet to send [16:11:00]OFD Sender: No OFD packet to send [16:11:05]OFD Sender: No OFD packet to send [16:11:10]OFD Sender: No OFD packet to send [16:11:15]OFD Sender: No OFD packet to send [16:11:20]OFD Sender: No OFD packet to send [16:11:25]OFD Sender: No OFD packet to send [16:11:30]OFD Sender: No OFD packet to send [16:11:35]OFD Sender: No OFD packet to send [16:11:40]OFD Sender: No OFD packet to send [16:11:45]OFD Sender: No OFD packet to send [16:11:50]OFD Sender: No OFD packet to send [16:11:55]OFD Sender: No OFD packet to send [16:12:00]OFD Sender: No OFD packet to send [16:12:05]OFD Sender: No OFD packet to send [16:12:10]OFD Sender: No OFD packet to send [16:12:15]OFD Sender: No OFD packet to send [16:12:20]OFD Sender: No OFD packet to send [16:12:25]OFD Sender: No OFD packet to send [16:12:30]OFD Sender: No OFD packet to send [16:12:35]OFD Sender: No OFD packet to send [16:12:40]OFD Sender: No OFD packet to send [16:12:45]OFD Sender: No OFD packet to send [16:12:50]OFD Sender: No OFD packet to send [16:12:55]OFD Sender: No OFD packet to send [16:13:00]OFD Sender: No OFD packet to send [16:13:05]OFD Sender: No OFD packet to send [16:13:10]OFD Sender: No OFD packet to send [16:13:15]OFD Sender: No OFD packet to send [16:13:20]OFD Sender: No OFD packet to send [16:13:25]OFD Sender: No OFD packet to send [16:13:30]OFD Sender: No OFD packet to send [16:13:35]OFD Sender: No OFD packet to send [16:13:40]OFD Sender: No OFD packet to send [16:13:45]OFD Sender: No OFD packet to send [16:13:50]OFD Sender: No OFD packet to send [16:13:55]OFD Sender: No OFD packet to send [16:14:00]OFD Sender: No OFD packet to send [16:14:05]OFD Sender: No OFD packet to send [16:14:10]OFD Sender: No OFD packet to send [16:14:15]OFD Sender: No OFD packet to send [16:14:20]OFD Sender: No OFD packet to send [16:14:25]OFD Sender: No OFD packet to send [16:14:30]OFD Sender: No OFD packet to send [16:14:35]OFD Sender: No OFD packet to send [16:14:40]OFD Sender: No OFD packet to send [16:14:45]OFD Sender: No OFD packet to send [16:14:50]OFD Sender: No OFD packet to send [16:14:55]OFD Sender: No OFD packet to send [16:15:00]OFD Sender: No OFD packet to send [16:15:05]OFD Sender: No OFD packet to send [16:15:10]OFD Sender: No OFD packet to send [16:15:15]OFD Sender: No OFD packet to send [16:15:20]OFD Sender: No OFD packet to send [16:15:25]OFD Sender: No OFD packet to send [16:15:30]OFD Sender: No OFD packet to send [16:15:35]OFD Sender: No OFD packet to send [16:15:40]OFD Sender: No OFD packet to send [16:15:45]OFD Sender: No OFD packet to send [16:15:50]OFD Sender: No OFD packet to send [16:15:55]OFD Sender: No OFD packet to send [16:16:00]OFD Sender: No OFD packet to send [16:16:05]OFD Sender: No OFD packet to send [16:16:10]OFD Sender: No OFD packet to send [16:16:15]OFD Sender: No OFD packet to send [16:16:20]OFD Sender: No OFD packet to send [16:16:25]OFD Sender: No OFD packet to send [16:16:30]OFD Sender: No OFD packet to send [16:16:35]OFD Sender: No OFD packet to send [16:16:40]OFD Sender: No OFD packet to send [16:16:45]OFD Sender: No OFD packet to send [16:16:50]OFD Sender: No OFD packet to send [16:16:55]OFD Sender: No OFD packet to send [16:17:00]OFD Sender: No OFD packet to send [16:17:05]OFD Sender: No OFD packet to send [16:17:10]OFD Sender: No OFD packet to send [16:17:15]OFD Sender: No OFD packet to send [16:17:20]OFD Sender: No OFD packet to send [16:17:25]OFD Sender: No OFD packet to send [16:17:30]OFD Sender: No OFD packet to send [16:17:35]OFD Sender: No OFD packet to send [16:17:40]OFD Sender: No OFD packet to send [16:17:45]OFD Sender: No OFD packet to send [16:17:50]OFD Sender: No OFD packet to send [16:17:55]OFD Sender: No OFD packet to send [16:18:00]OFD Sender: No OFD packet to send [16:18:05]OFD Sender: No OFD packet to send [16:18:10]OFD Sender: No OFD packet to send [16:18:15]OFD Sender: No OFD packet to send [16:18:20]OFD Sender: No OFD packet to send [16:18:25]OFD Sender: No OFD packet to send [16:18:30]OFD Sender: No OFD packet to send [16:18:35]OFD Sender: No OFD packet to send [16:18:40]OFD Sender: No OFD packet to send [16:18:45]OFD Sender: No OFD packet to send [16:18:50]OFD Sender: No OFD packet to send [16:18:55]OFD Sender: No OFD packet to send [16:19:00]OFD Sender: No OFD packet to send [16:19:05]OFD Sender: No OFD packet to send [16:19:10]OFD Sender: No OFD packet to send [16:19:15]OFD Sender: No OFD packet to send [16:19:20]OFD Sender: No OFD packet to send [16:19:25]OFD Sender: No OFD packet to send [16:19:30]OFD Sender: No OFD packet to send [16:19:35]OFD Sender: No OFD packet to send [16:19:40]OFD Sender: No OFD packet to send [16:19:45]OFD Sender: No OFD packet to send [16:19:50]OFD Sender: No OFD packet to send [16:19:55]OFD Sender: No OFD packet to send [16:20:00]OFD Sender: No OFD packet to send [16:20:05]OFD Sender: No OFD packet to send [16:20:10]OFD Sender: No OFD packet to send [16:20:15]OFD Sender: No OFD packet to send [16:20:20]OFD Sender: No OFD packet to send [16:20:25]OFD Sender: No OFD packet to send [16:20:30]OFD Sender: No OFD packet to send [16:20:35]OFD Sender: No OFD packet to send [16:20:40]OFD Sender: No OFD packet to send [16:20:45]OFD Sender: No OFD packet to send [16:20:50]OFD Sender: No OFD packet to send [16:20:55]OFD Sender: No OFD packet to send [16:21:00]OFD Sender: No OFD packet to send [16:21:05]OFD Sender: No OFD packet to send [16:21:10]OFD Sender: No OFD packet to send [16:21:15]OFD Sender: No OFD packet to send [16:21:20]OFD Sender: No OFD packet to send [16:21:25]OFD Sender: No OFD packet to send [16:21:30]OFD Sender: No OFD packet to send [16:21:35]OFD Sender: No OFD packet to send [16:21:40]OFD Sender: No OFD packet to send [16:21:45]OFD Sender: No OFD packet to send [16:21:50]OFD Sender: No OFD packet to send [16:21:55]OFD Sender: No OFD packet to send [16:22:00]OFD Sender: No OFD packet to send [16:22:05]OFD Sender: No OFD packet to send [16:22:10]OFD Sender: No OFD packet to send [16:22:15]OFD Sender: No OFD packet to send [16:22:20]OFD Sender: No OFD packet to send [16:22:25]OFD Sender: No OFD packet to send [16:22:30]OFD Sender: No OFD packet to send [16:22:35]OFD Sender: No OFD packet to send [16:22:40]OFD Sender: No OFD packet to send [16:22:45]OFD Sender: No OFD packet to send [16:22:50]OFD Sender: No OFD packet to send [16:22:55]OFD Sender: No OFD packet to send [16:23:00]OFD Sender: No OFD packet to send [16:23:05]OFD Sender: No OFD packet to send [16:23:10]OFD Sender: No OFD packet to send [16:23:15]OFD Sender: No OFD packet to send [16:23:20]OFD Sender: No OFD packet to send [16:23:25]OFD Sender: No OFD packet to send [16:23:30]OFD Sender: No OFD packet to send [16:23:35]OFD Sender: No OFD packet to send [16:23:40]OFD Sender: No OFD packet to send [16:23:45]OFD Sender: No OFD packet to send [16:23:50]OFD Sender: No OFD packet to send [16:23:55]OFD Sender: No OFD packet to send [16:24:00]OFD Sender: No OFD packet to send [16:24:05]OFD Sender: No OFD packet to send [16:24:10]OFD Sender: No OFD packet to send [16:24:15]OFD Sender: No OFD packet to send [16:24:20]OFD Sender: No OFD packet to send [16:24:25]OFD Sender: No OFD packet to send [16:24:30]OFD Sender: No OFD packet to send [16:24:35]OFD Sender: No OFD packet to send [16:24:40]OFD Sender: No OFD packet to send [16:24:45]OFD Sender: No OFD packet to send [16:24:50]OFD Sender: No OFD packet to send [16:24:55]OFD Sender: No OFD packet to send [16:25:00]OFD Sender: No OFD packet to send [16:25:05]OFD Sender: No OFD packet to send [16:25:10]OFD Sender: No OFD packet to send [16:25:15]OFD Sender: No OFD packet to send [16:25:20]OFD Sender: No OFD packet to send [16:25:25]OFD Sender: No OFD packet to send [16:25:30]OFD Sender: No OFD packet to send [16:25:35]OFD Sender: No OFD packet to send [16:25:40]OFD Sender: No OFD packet to send [16:25:45]OFD Sender: No OFD packet to send [16:25:50]OFD Sender: No OFD packet to send [16:25:55]OFD Sender: No OFD packet to send [16:26:00]OFD Sender: No OFD packet to send [16:26:05]OFD Sender: No OFD packet to send [16:26:10]OFD Sender: No OFD packet to send [16:26:15]OFD Sender: No OFD packet to send [16:26:20]OFD Sender: No OFD packet to send [16:26:25]OFD Sender: No OFD packet to send [16:26:30]OFD Sender: No OFD packet to send [16:26:35]OFD Sender: No OFD packet to send [16:26:40]OFD Sender: No OFD packet to send [16:26:45]OFD Sender: No OFD packet to send [16:26:50]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:36]OFD Sender: No OFD packet to send [16:27:41]OFD Sender: No OFD packet to send [16:27:46]OFD Sender: No OFD packet to send [16:27:51]OFD Sender: No OFD packet to send [16:27:56]OFD Sender: No OFD packet to send [16:28:01]OFD Sender: No OFD packet to send [16:28:06]OFD Sender: No OFD packet to send [16:28:11]OFD Sender: No OFD packet to send [16:28:16]OFD Sender: No OFD packet to send [16:28:21]OFD Sender: No OFD packet to send [16:28:26]OFD Sender: No OFD packet to send [16:28:31]OFD Sender: No OFD packet to send [16:28:36]OFD Sender: No OFD packet to send [16:28:41]OFD Sender: No OFD packet to send [16:28:46]OFD Sender: No OFD packet to send [16:28:51]OFD Sender: No OFD packet to send [16:28:56]OFD Sender: No OFD packet to send [16:29:01]OFD Sender: No OFD packet to send [16:29:06]OFD Sender: No OFD packet to send [16:29:11]OFD Sender: No OFD packet to send [16:29:16]OFD Sender: No OFD packet to send [16:29:21]OFD Sender: No OFD packet to send [16:29:26]OFD Sender: No OFD packet to send [16:29:31]OFD Sender: No OFD packet to send [16:29:36]OFD Sender: No OFD packet to send [16:29:41]OFD Sender: No OFD packet to send [16:29:46]OFD Sender: No OFD packet to send [16:29:51]OFD Sender: No OFD packet to send [16:29:56]OFD Sender: No OFD packet to send [16:30:01]OFD Sender: No OFD packet to send [16:30:06]OFD Sender: No OFD packet to send [16:30:11]OFD Sender: No OFD packet to send [16:30:16]OFD Sender: No OFD packet to send [16:30:21]OFD Sender: No OFD packet to send [16:30:26]OFD Sender: No OFD packet to send [16:30:31]OFD Sender: No OFD packet to send [16:30:36]OFD Sender: No OFD packet to send [16:30:41]OFD Sender: No OFD packet to send [16:30:46]OFD Sender: No OFD packet to send [16:30:51]OFD Sender: No OFD packet to send [16:30:56]OFD Sender: No OFD packet to send [16:31:01]OFD Sender: No OFD packet to send [16:31:06]OFD Sender: No OFD packet to send [16:31:11]OFD Sender: No OFD packet to send [16:31:16]OFD Sender: No OFD packet to send [16:31:21]OFD Sender: No OFD packet to send [16:31:26]OFD Sender: No OFD packet to send [16:31:31]OFD Sender: No OFD packet to send [16:31:36]OFD Sender: No OFD packet to send [16:31:41]OFD Sender: No OFD packet to send [16:31:46]OFD Sender: No OFD packet to send [16:31:51]OFD Sender: No OFD packet to send [16:31:56]OFD Sender: No OFD packet to send [16:32:01]OFD Sender: No OFD packet to send [16:32:06]OFD Sender: No OFD packet to send [16:32:11]OFD Sender: No OFD packet to send [16:32:16]OFD Sender: No OFD packet to send [16:32:21]OFD Sender: No OFD packet to send [16:32:26]OFD Sender: No OFD packet to send [16:32:31]OFD Sender: No OFD packet to send [16:32:36]OFD Sender: No OFD packet to send [16:32:41]OFD Sender: No OFD packet to send [16:32:46]OFD Sender: No OFD packet to send [16:32:51]OFD Sender: No OFD packet to send [16:32:56]OFD Sender: No OFD packet to send [16:33:01]OFD Sender: No OFD packet to send [16:33:06]OFD Sender: No OFD packet to send [16:33:11]OFD Sender: No OFD packet to send [16:33:16]OFD Sender: No OFD packet to send [16:33:21]OFD Sender: No OFD packet to send [16:33:26]OFD Sender: No OFD packet to send [16:33:31]OFD Sender: No OFD packet to send [16:33:36]OFD Sender: No OFD packet to send [16:33:41]OFD Sender: No OFD packet to send [16:33:46]OFD Sender: No OFD packet to send [16:33:51]OFD Sender: No OFD packet to send [16:33:56]OFD Sender: No OFD packet to send [16:33:58]accept exits with 9 [16:33:58]New connection [16:33:58]New thread 3067219300 created [16:33:58]Thread 3067362660 joined [16:33:58]Waiting for new connection... [16:33:58] Sock 9.Parse request [16:33:58]Sock 9.Check first char [16:33:58]Sock 9.First char is OK [16:33:58]request: POST /json_proto HTTP/1.0 [16:33:58]Method: POST [16:33:58]URL: /json_proto [16:33:58]Method is POST - this is cgi request [16:33:58]url: /json_proto [16:33:58]query_string will be loaded in cgi processing [16:33:58]execute_cgi json_proto POST (null) [16:33:58]execute_cgi path=json_proto method=POST [16:33:58]POST find Content-Length [16:33:58]Host: 172.17.44.195:8080 [16:33:58]Content-Length: 770 [16:33:58]Content-Type: application/json [16:33:58] [16:33:58]POST finish read [16:33:58]Found Content-Length = 770 [16:33:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963141", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:33:58]execute_script... [16:33:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963141", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:33:58]POST & json_proto [16:33:58]process_json_proto [16:33:58]json parsed OK: [16:33:58]protocol is kg_v1.0 [16:33:58]action value=close_receipt [16:33:58]process_action close_receipt [16:33:58]cmd_close_receipt [16:33:58]MH_GetDate [16:33:58]Write to MH i2c: F0 00 00 7F 06 74 [16:33:58]Write i2c OK [16:33:58]MH_I2C_Read... [16:33:58]Read from MH i2c: F0 [16:33:58]MH_I2C_Read... [16:33:58]Read from MH i2c: F0 09 00 [16:33:58]MH_I2C_Read... [16:33:58]Read from MH i2c: F0 09 00 7F 06 00 F7 30 15 67 82 C9 CF 66 A0 [16:33:58]GetLastDocTimeStamp 1729438461 [16:33:58]current date 1729442039 [16:33:58]FM_GetShiftState [16:33:58]SAM_PROTO_GetShiftState [16:33:58]wFMCommunicate request_size=4 [16:33:58]MH_SAM_APDU [16:33:58]CAPDU: 80 13 01 00 [16:33:58]Write to MH i2c: E2 08 00 80 06 80 13 01 00 00 00 00 00 03 [16:33:58]Write i2c OK [16:33:58]MH_I2C_Read... [16:33:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:58]Read from MH i2c: E2 [16:33:58]MH_I2C_Read... [16:33:58]Read from MH i2c: E2 0E 00 [16:33:58]MH_I2C_Read... [16:33:58]Read from MH i2c: E2 0E 00 80 06 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 1D [16:33:58]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [16:33:58]wFMCommunicate OK [16:33:58]SAM_PROTO_GetShiftState done [16:33:58]FM_GetShiftState done [16:33:58]opened in 1729383750 [16:33:58]opened+sec_in_day 1729470150 [16:33:58]quantity*price = 100015 [16:33:58]sum+1 = 100017 [16:33:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 364 20.10.2024 16:33 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 227516 ФПД: 107158117816546 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T163359&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227516&fm=107158117816546&tin=02508201610067®Number=0000000000091685&sum=100016 [16:33:59]StoreToDocumentArchive [16:33:59]shift 533 fd 227516 [16:33:59]save to /storage/0533/doc_00227516 [16:33:59]save last doc name /storage/0533/doc_00227516 to /storage/kkm_last_doc_name [16:33:59]save OK [16:33:59]Clear old archive folders... [16:33:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:33:59]tlvbuf is 00DA76E0 [16:33:59]SAM_PROTO_ClearQueue [16:33:59]wFMCommunicate request_size=4 [16:33:59]MH_SAM_APDU [16:33:59]CAPDU: 80 09 00 00 [16:33:59]Write to MH i2c: E2 08 00 8D 06 80 09 00 00 00 00 00 00 05 [16:33:59]Write i2c OK [16:33:59]MH_I2C_Read... [16:33:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:33:59]Read from MH i2c: E2 [16:33:59]MH_I2C_Read... [16:33:59]Read from MH i2c: E2 03 00 [16:33:59]MH_I2C_Read... [16:33:59]Read from MH i2c: E2 03 00 8D 06 00 90 00 07 [16:33:59]RAPDU: 90 00 [16:33:59]wFMCommunicate OK [16:33:59]SAM_PROTO_ClearQueue done [16:33:59]KKMCreateOFDPacket [16:33:59]OFDProtocolAddRootSTLVToBuf [16:33:59]FM_MakeSignedData [16:33:59]FM_MakeSignedData [16:33:59]SAM_PROTO_SignData [16:33:59]wFMCommunicate request_size=4 [16:33:59]MH_SAM_APDU [16:33:59]CAPDU: 80 0D 01 02 [16:33:59]Write to MH i2c: E2 08 00 8E 06 80 0D 01 02 00 00 00 00 0D [16:33:59]Write i2c OK [16:33:59]MH_I2C_Read... [16:33:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:33:59]Read from MH i2c: E2 [16:33:59]MH_I2C_Read... [16:33:59]Read from MH i2c: E2 03 00 [16:33:59]MH_I2C_Read... [16:33:59]Read from MH i2c: E2 03 00 8E 06 00 90 00 08 [16:33:59]RAPDU: 90 00 [16:33:59]wFMCommunicate OK [16:33:59]wFMCommunicate request_size=255 [16:33:59]MH_SAM_APDU [16:33:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 01 00 00 F4 03 04 00 F7 30 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BC 78 03 00 35 04 06 00 61 [16:33:59]Write to MH i2c: E2 02 01 8F 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 01 00 00 F4 03 04 00 F7 30 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BC 78 03 00 35 04 06 00 61 00 00 7D [16:33:59]Write i2c OK [16:33:59]MH_I2C_Read... [16:34:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:00]Read from MH i2c: E2 [16:34:00]MH_I2C_Read... [16:34:00]Read from MH i2c: E2 03 00 [16:34:00]MH_I2C_Read... [16:34:00]Read from MH i2c: E2 03 00 8F 06 00 90 00 09 [16:34:00]RAPDU: 90 00 [16:34:00]wFMCommunicate OK [16:34:00]wFMCommunicate request_size=10 [16:34:00]MH_SAM_APDU [16:34:00]CAPDU: 80 0D 02 02 05 75 B1 8C 18 E2 [16:34:00]Write to MH i2c: E2 0D 00 90 06 80 0D 02 02 05 00 75 B1 8C 18 E2 00 00 C6 [16:34:00]Write i2c OK [16:34:00]MH_I2C_Read... [16:34:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:00]Read from MH i2c: E2 [16:34:00]MH_I2C_Read... [16:34:00]Read from MH i2c: E2 03 00 [16:34:00]MH_I2C_Read... [16:34:00]Read from MH i2c: E2 03 00 90 06 00 90 00 0A [16:34:00]RAPDU: 90 00 [16:34:00]wFMCommunicate OK [16:34:00]wFMCommunicate request_size=4 [16:34:00]MH_SAM_APDU [16:34:00]CAPDU: 80 0D 03 02 [16:34:00]Write to MH i2c: E2 08 00 91 06 80 0D 03 02 00 00 00 00 12 [16:34:00]Write i2c OK [16:34:00]MH_I2C_Read... [16:34:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:34:00]Read from MH i2c: E2 [16:34:00]MH_I2C_Read... [16:34:00]Read from MH i2c: E2 0B 00 [16:34:00]MH_I2C_Read... [16:34:00]Read from MH i2c: E2 0B 00 91 06 00 9D F9 C2 E6 51 0B C7 21 90 00 95 [16:34:00]RAPDU: 9D F9 C2 E6 51 0B C7 21 90 00 [16:34:00]wFMCommunicate OK [16:34:00]SAM_PROTO_SignData done [16:34:00]FM_MakeSignedData done [16:34:00]CreateOFDProtocolMessage [16:34:00]wFMCommunicate request_size=4 [16:34:00]MH_SAM_APDU [16:34:00]CAPDU: 80 11 00 00 [16:34:00]Write to MH i2c: E2 08 00 92 06 80 11 00 00 00 00 00 00 12 [16:34:00]Write i2c OK [16:34:00]MH_I2C_Read... [16:34:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:00]Read from MH i2c: E2 [16:34:00]MH_I2C_Read... [16:34:00]Read from MH i2c: E2 17 00 [16:34:00]MH_I2C_Read... [16:34:00]Read from MH i2c: E2 17 00 92 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 69 [16:34:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [16:34:00]wFMCommunicate OK [16:34:00]CreateOFDProtocolMessage done [16:34:00]OFDSenderStorePacket 227516 [16:34:00]StoreOFDPacket docnum=227516 [16:34:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 36 2B 07 01 4D 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 01 00 00 F4 03 04 00 F7 30 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BC 78 03 00 35 04 06 00 61 75 B1 8C 18 E2 9D F9 C2 E6 51 0B C7 21 [16:34:00]CheckFolder [16:34:00]dirname=/storage/ofd_packets [16:34:00]CheckFolder done [16:34:00]ProducePacketName [16:34:00]name=ofd_packets/00227516 [16:34:00]NVStorageSaveData ofd_packets/00227516 [16:34:00]File name is /storage/ofd_packets/00227516 [16:34:00]Write 301 bytes [16:34:00]NVStorageSaveData done [16:34:00]OFDSenderStorePacket done [16:34:00]KKMCreateOFDPacket done [16:34:00]NVStorageSaveData kkm_last_timestamp [16:34:00]File name is /storage/kkm_last_timestamp [16:34:00]Write 4 bytes [16:34:00]NVStorageSaveData done [16:34:00]ExternCall_PrintAddStr [16:34:00]wPrintStart [16:34:00]Write to MH i2c: 01 00 00 93 06 99 [16:34:00]Write i2c OK [16:34:00]MH_I2C_Read... [16:34:00]Read from MH i2c: 01 [16:34:00]MH_I2C_Read... [16:34:00]Read from MH i2c: 01 07 00 [16:34:00]MH_I2C_Read... [16:34:00]Read from MH i2c: 01 07 00 93 06 00 00 00 00 00 FF 0F AE [16:34:00]RasterBufferAndPrint [16:34:00]line Счет N : (1)1963141 [16:34:00]line ИНН: 02508201610067 [16:34:00]line Контрольно-Кассовый Чек [16:34:00]line ПРОДАЖА [16:34:00]line ТРК (МРК, ГНК) : 33 [16:34:00]line Товар: 2710124130 [16:34:00]line Аи-92-К-5 [16:34:00]line 14.950 * 66.90 [16:34:00]line = 1000.16 [16:34:00]line НДС 12% НСП 1% [16:34:00]line > о реализуемом товаре [16:34:00]line ИТОГО: 1000.16 [16:34:00]line НСП 1% : 8.85 [16:34:00]line НДС 12% : 106.21 [16:34:00]line Наличными: 0.00 [16:34:00]line Безнал.: 1000.16 [16:34:00]line Место: АЗС № 133 "Партнер Нефть" [16:34:00]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [16:34:00]line СНО: Общий режим [16:34:00]line Чек 364 20.10.2024 16:33 [16:34:00]line Смена: 533 ФФД: 1.0 [16:34:00]line ЗНМ: 0300000091 [16:34:00]line РНМ: 0000000000091685 [16:34:00]line Версия ККМ: 001 [16:34:00]line Платежная система: Mbank [16:34:00]line ФМ: 0000000000871839 [16:34:00]line ФД: 227516 [16:34:00]line ФПД: 107158117816546 [16:34:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T163359&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227516&fm=107158117816546&tin=02508201610067®Number=0000000000091685&sum=100016 [16:34:00]written 0, free lines is 4095 [16:34:00]OFD Sender: Processing packet 227516 [packets to send 38, broken 37] [16:34:00]ProducePacketName [16:34:00]name=ofd_packets/00227516 [16:34:00]OFD Sender: To server: pG, [16:34:00]CommunicateWithHost lk.salyk.kg:30040 [16:34:00]ConnectInit lk.salyk.kg [16:34:00]Connected sock=10 [16:34:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 36 2B 07 01 4D 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 01 00 00 F4 03 04 00 F7 30 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BC 78 03 00 35 04 06 00 61 75 B1 8C 18 E2 9D F9 C2 E6 51 0B C7 21 [16:34:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 1E 3A 47 00 16 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 33 39 10 04 04 00 BC 78 03 00 F4 03 04 00 F5 DB 14 67 B6 04 01 00 00 D8 1B 2F DE A5 6E BD BE [16:34:00]CommunicateWithHost err = 0 [16:34:00]CheckOFDResponse [16:34:00]1017 (14) - 77093643461234 [16:34:00]1041 (16) - 0000000000871839 [16:34:00]1040 (4) - 227516 [16:34:00]1012 (4) - 20.10.2024 10:31 [16:34:00]1206 (1) - 0 [16:34:00]OFD Sender: Remove packet 227516 [16:34:00]ProducePacketName [16:34:00]name=ofd_packets/00227516 [16:34:00]NVStorageDeleteData [16:34:00]Write to MH i2c: 01 00 00 BB 06 C1 [16:34:00]Write i2c OK [16:34:00]MH_I2C_Read... [16:34:00]Read from MH i2c: 01 [16:34:00]MH_I2C_Read... [16:34:00]Read from MH i2c: 01 07 00 [16:34:00]MH_I2C_Read... [16:34:00]Read from MH i2c: 01 07 00 BB 06 00 00 00 00 00 29 0D FE [16:34:00]RasterBufferAndPrint [16:34:00]line [16:34:00]line [16:34:00]line [16:34:00]line [16:34:00]line [16:34:00]written 0, free lines is 3375 [16:34:00]process_action close_receipt done [16:34:00]requested_data is exist [16:34:00]produce_requested_data [16:34:00]requested_item fm.sn is exist - process it [16:34:00]wFMCommunicate request_size=4 [16:34:00]MH_SAM_APDU [16:34:00]CAPDU: 80 11 00 00 [16:34:00]Write to MH i2c: E2 08 00 C2 06 80 11 00 00 00 00 00 00 42 [16:34:00]Write i2c OK [16:34:00]MH_I2C_Read... [16:34:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:00]Read from MH i2c: E2 [16:34:00]MH_I2C_Read... [16:34:00]Read from MH i2c: E2 17 00 [16:34:00]MH_I2C_Read... [16:34:00]Read from MH i2c: E2 17 00 C2 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 99 [16:34:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [16:34:00]wFMCommunicate OK [16:34:00]requested_item fd.num is exist - process it [16:34:00]SAM_PROTO_GetFieldsCounters [16:34:00]wFMCommunicate request_size=4 [16:34:00]MH_SAM_APDU [16:34:00]CAPDU: 80 13 00 00 [16:34:00]Write to MH i2c: E2 08 00 C3 06 80 13 00 00 00 00 00 00 45 [16:34:00]Write i2c OK [16:34:00]MH_I2C_Read... [16:34:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:34:00]Read from MH i2c: E2 [16:34:00]MH_I2C_Read... [16:34:00]Read from MH i2c: E2 62 00 [16:34:00]MH_I2C_Read... [16:34:00]Read from MH i2c: E2 62 00 C3 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 BC 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 6C 01 00 00 5E 04 04 00 6C 01 00 00 57 04 04 00 6D 01 00 00 19 04 04 00 00 00 00 00 90 00 03 [16:34: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 BC 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 6C 01 00 00 5E 04 04 00 6C 01 00 00 57 04 04 00 6D 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:34:00]wFMCommunicate OK [16:34:00]SAM_PROTO_GetFieldsCounters done [16:34:00]requested_item shift.num is exist - process it [16:34:00]requested_item shift.opened is exist - process it [16:34:00]req_shift_opened [16:34:00]FM_GetShiftState [16:34:00]SAM_PROTO_GetShiftState [16:34:00]wFMCommunicate request_size=4 [16:34:00]MH_SAM_APDU [16:34:00]CAPDU: 80 13 01 00 [16:34:00]Write to MH i2c: E2 08 00 C4 06 80 13 01 00 00 00 00 00 47 [16:34:00]Write i2c OK [16:34:00]MH_I2C_Read... [16:34:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:00]Read from MH i2c: E2 [16:34:00]MH_I2C_Read... [16:34:00]Read from MH i2c: E2 0E 00 [16:34:00]MH_I2C_Read... [16:34:00]Read from MH i2c: E2 0E 00 C4 06 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 61 [16:34:00]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [16:34:00]wFMCommunicate OK [16:34:00]SAM_PROTO_GetShiftState done [16:34:00]FM_GetShiftState done [16:34:00]req_shift_opened done [16:34:00]requested_item shift.open_date is exist - process it [16:34:00]req_shift_open_date [16:34:00]req_shift_open_date done [16:34:00]produce_requested_data done [16:34:00]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227516,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [16:34:00]process_action_free close_receipt [16:34:00]json_value_free [16:34:00]json_value_free done [16:34:00]process_json_proto returns [16:34:00]Send response to host [16:34:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227516,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [16:34:00]free response buf [16:34:00]execute_script done [16:34:00]execute_script returns [16:34:00]free content buf [16:34:00]Sock 9.Close socket [16:34:00]Sock 9.Thread stoped [16:34:01]OFD Sender: No OFD packet to send [16:34:06]OFD Sender: No OFD packet to send [16:34:11]OFD Sender: No OFD packet to send [16:34:16]OFD Sender: No OFD packet to send [16:34:21]OFD Sender: No OFD packet to send [16:34:26]OFD Sender: No OFD packet to send [16:34:31]OFD Sender: No OFD packet to send [16:34:36]OFD Sender: No OFD packet to send [16:34:37]accept exits with 7 [16:34:37]New connection [16:34:37]New thread 3067362660 created [16:34:37]Thread 3067219300 joined [16:34:37]Waiting for new connection... [16:34:37] Sock 7.Parse request [16:34:37]Sock 7.Check first char [16:34:37]Sock 7.First char is OK [16:34:37]request: POST /json_proto HTTP/1.0 [16:34:37]Method: POST [16:34:37]URL: /json_proto [16:34:37]Method is POST - this is cgi request [16:34:37]url: /json_proto [16:34:37]query_string will be loaded in cgi processing [16:34:37]execute_cgi json_proto POST (null) [16:34:37]execute_cgi path=json_proto method=POST [16:34:37]POST find Content-Length [16:34:37]Host: 172.17.44.195:8080 [16:34:37]Content-Length: 678 [16:34:37]Content-Type: application/json [16:34:37] [16:34:37]POST finish read [16:34:37]Found Content-Length = 678 [16:34:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963143", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:34:37]execute_script... [16:34: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)1963143", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:34:37]POST & json_proto [16:34:37]process_json_proto [16:34:37]json parsed OK: [16:34:37]protocol is kg_v1.0 [16:34:37]action value=close_receipt [16:34:37]process_action close_receipt [16:34:37]cmd_close_receipt [16:34:37]MH_GetDate [16:34:37]Write to MH i2c: F0 00 00 C5 06 BA [16:34:37]Write i2c OK [16:34:37]MH_I2C_Read... [16:34:37]Read from MH i2c: F0 [16:34:37]MH_I2C_Read... [16:34:37]Read from MH i2c: F0 09 00 [16:34:37]MH_I2C_Read... [16:34:37]Read from MH i2c: F0 09 00 C5 06 00 1E 31 15 67 82 C9 CF 66 0E [16:34:37]GetLastDocTimeStamp 1729442039 [16:34:37]current date 1729442078 [16:34:37]FM_GetShiftState [16:34:37]SAM_PROTO_GetShiftState [16:34:37]wFMCommunicate request_size=4 [16:34:37]MH_SAM_APDU [16:34:37]CAPDU: 80 13 01 00 [16:34:37]Write to MH i2c: E2 08 00 C6 06 80 13 01 00 00 00 00 00 49 [16:34:37]Write i2c OK [16:34:37]MH_I2C_Read... [16:34:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:37]Read from MH i2c: E2 [16:34:37]MH_I2C_Read... [16:34:37]Read from MH i2c: E2 0E 00 [16:34:37]MH_I2C_Read... [16:34:37]Read from MH i2c: E2 0E 00 C6 06 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 63 [16:34:37]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [16:34:37]wFMCommunicate OK [16:34:37]SAM_PROTO_GetShiftState done [16:34:37]FM_GetShiftState done [16:34:37]opened in 1729383750 [16:34:37]opened+sec_in_day 1729470150 [16:34:37]quantity*price = 50041 [16:34:37]sum+1 = 50042 [16:34:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 365 20.10.2024 16:34 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227517 ФПД: 143508449264518 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T163438&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227517&fm=143508449264518&tin=02508201610067®Number=0000000000091685&sum=50000 [16:34:38]StoreToDocumentArchive [16:34:38]shift 533 fd 227517 [16:34:38]save to /storage/0533/doc_00227517 [16:34:38]save last doc name /storage/0533/doc_00227517 to /storage/kkm_last_doc_name [16:34:38]save OK [16:34:38]Clear old archive folders... [16:34:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:34:38]tlvbuf is 00D7C3F0 [16:34:38]SAM_PROTO_ClearQueue [16:34:38]wFMCommunicate request_size=4 [16:34:38]MH_SAM_APDU [16:34:38]CAPDU: 80 09 00 00 [16:34:38]Write to MH i2c: E2 08 00 D3 06 80 09 00 00 00 00 00 00 4B [16:34:38]Write i2c OK [16:34:38]MH_I2C_Read... [16:34:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:34:38]Read from MH i2c: E2 [16:34:38]MH_I2C_Read... [16:34:38]Read from MH i2c: E2 03 00 [16:34:38]MH_I2C_Read... [16:34:38]Read from MH i2c: E2 03 00 D3 06 00 90 00 4D [16:34:38]RAPDU: 90 00 [16:34:38]wFMCommunicate OK [16:34:38]SAM_PROTO_ClearQueue done [16:34:38]KKMCreateOFDPacket [16:34:38]OFDProtocolAddRootSTLVToBuf [16:34:38]FM_MakeSignedData [16:34:38]FM_MakeSignedData [16:34:38]SAM_PROTO_SignData [16:34:38]wFMCommunicate request_size=4 [16:34:38]MH_SAM_APDU [16:34:38]CAPDU: 80 0D 01 02 [16:34:38]Write to MH i2c: E2 08 00 D4 06 80 0D 01 02 00 00 00 00 53 [16:34:38]Write i2c OK [16:34:38]MH_I2C_Read... [16:34:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:34:38]Read from MH i2c: E2 [16:34:38]MH_I2C_Read... [16:34:38]Read from MH i2c: E2 03 00 [16:34:38]MH_I2C_Read... [16:34:38]Read from MH i2c: E2 03 00 D4 06 00 90 00 4E [16:34:38]RAPDU: 90 00 [16:34:38]wFMCommunicate OK [16:34:38]wFMCommunicate request_size=255 [16:34:38]MH_SAM_APDU [16:34:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 01 00 00 F4 03 04 00 1E 31 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BD 78 03 00 35 04 06 00 82 [16:34:38]Write to MH i2c: E2 02 01 D5 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 01 00 00 F4 03 04 00 1E 31 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BD 78 03 00 35 04 06 00 82 00 00 F4 [16:34:38]Write i2c OK [16:34:38]MH_I2C_Read... [16:34:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:39]Read from MH i2c: E2 [16:34:39]MH_I2C_Read... [16:34:39]Read from MH i2c: E2 03 00 [16:34:39]MH_I2C_Read... [16:34:39]Read from MH i2c: E2 03 00 D5 06 00 90 00 4F [16:34:39]RAPDU: 90 00 [16:34:39]wFMCommunicate OK [16:34:39]wFMCommunicate request_size=10 [16:34:39]MH_SAM_APDU [16:34:39]CAPDU: 80 0D 02 02 05 85 2A 24 03 86 [16:34:39]Write to MH i2c: E2 0D 00 D6 06 80 0D 02 02 05 00 85 2A 24 03 86 00 00 BC [16:34:39]Write i2c OK [16:34:39]MH_I2C_Read... [16:34:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:39]Read from MH i2c: E2 [16:34:39]MH_I2C_Read... [16:34:39]Read from MH i2c: E2 03 00 [16:34:39]MH_I2C_Read... [16:34:39]Read from MH i2c: E2 03 00 D6 06 00 90 00 50 [16:34:39]RAPDU: 90 00 [16:34:39]wFMCommunicate OK [16:34:39]wFMCommunicate request_size=4 [16:34:39]MH_SAM_APDU [16:34:39]CAPDU: 80 0D 03 02 [16:34:39]Write to MH i2c: E2 08 00 D7 06 80 0D 03 02 00 00 00 00 58 [16:34:39]Write i2c OK [16:34:39]MH_I2C_Read... [16:34:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:34:39]Read from MH i2c: E2 [16:34:39]MH_I2C_Read... [16:34:39]Read from MH i2c: E2 0B 00 [16:34:39]MH_I2C_Read... [16:34:39]Read from MH i2c: E2 0B 00 D7 06 00 DE FF CD D3 B2 78 8F 67 90 00 F6 [16:34:39]RAPDU: DE FF CD D3 B2 78 8F 67 90 00 [16:34:39]wFMCommunicate OK [16:34:39]SAM_PROTO_SignData done [16:34:39]FM_MakeSignedData done [16:34:39]CreateOFDProtocolMessage [16:34:39]wFMCommunicate request_size=4 [16:34:39]MH_SAM_APDU [16:34:39]CAPDU: 80 11 00 00 [16:34:39]Write to MH i2c: E2 08 00 D8 06 80 11 00 00 00 00 00 00 58 [16:34:39]Write i2c OK [16:34:39]MH_I2C_Read... [16:34:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:39]Read from MH i2c: E2 [16:34:39]MH_I2C_Read... [16:34:39]Read from MH i2c: E2 17 00 [16:34:39]MH_I2C_Read... [16:34:39]Read from MH i2c: E2 17 00 D8 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 AF [16:34:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [16:34:39]wFMCommunicate OK [16:34:39]CreateOFDProtocolMessage done [16:34:39]OFDSenderStorePacket 227517 [16:34:39]StoreOFDPacket docnum=227517 [16:34:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 2C B5 07 01 BB A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 01 00 00 F4 03 04 00 1E 31 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BD 78 03 00 35 04 06 00 82 85 2A 24 03 86 DE FF CD D3 B2 78 8F 67 [16:34:39]CheckFolder [16:34:39]dirname=/storage/ofd_packets [16:34:39]CheckFolder done [16:34:39]ProducePacketName [16:34:39]name=ofd_packets/00227517 [16:34:39]NVStorageSaveData ofd_packets/00227517 [16:34:39]File name is /storage/ofd_packets/00227517 [16:34:39]Write 301 bytes [16:34:39]NVStorageSaveData done [16:34:39]OFDSenderStorePacket done [16:34:39]KKMCreateOFDPacket done [16:34:39]NVStorageSaveData kkm_last_timestamp [16:34:39]File name is /storage/kkm_last_timestamp [16:34:39]Write 4 bytes [16:34:39]NVStorageSaveData done [16:34:39]ExternCall_PrintAddStr [16:34:39]wPrintStart [16:34:39]Write to MH i2c: 01 00 00 D9 06 DF [16:34:39]Write i2c OK [16:34:39]MH_I2C_Read... [16:34:39]Read from MH i2c: 01 [16:34:39]MH_I2C_Read... [16:34:39]Read from MH i2c: 01 07 00 [16:34:39]MH_I2C_Read... [16:34:39]Read from MH i2c: 01 07 00 D9 06 00 00 00 00 00 FF 0F F4 [16:34:39]RasterBufferAndPrint [16:34:39]line Счет N : (1)1963143 [16:34:39]line ИНН: 02508201610067 [16:34:39]line Контрольно-Кассовый Чек [16:34:39]line ПРОДАЖА [16:34:39]line ТРК (МРК, ГНК) : 43 [16:34:39]line Товар: 2710124130 [16:34:39]line Аи-92-К-5 [16:34:39]line 7.480 * 66.90 [16:34:39]line = 500.41 [16:34:39]line НДС 12% НСП 1% [16:34:39]line > о реализуемом товаре [16:34:39]line ОКРУГЛЕНИЕ: -0.41 [16:34:39]line ИТОГО: 500.00 [16:34:39]line Внесено: 500.00 [16:34:39]line СДАЧА: 0.00 [16:34:39]line НСП 1% : 4.43 [16:34:39]line НДС 12% : 53.14 [16:34:39]line Наличными: 500.00 [16:34:39]line Безнал.: 0.00 [16:34:39]line Место: АЗС № 133 "Партнер Нефть" [16:34:39]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [16:34:39]line СНО: Общий режим [16:34:39]line Чек 365 20.10.2024 16:34 [16:34:39]line Смена: 533 ФФД: 1.0 [16:34:39]line ЗНМ: 0300000091 [16:34:39]line РНМ: 0000000000091685 [16:34:39]line Версия ККМ: 001 [16:34:39]line ФМ: 0000000000871839 [16:34:39]line ФД: 227517 [16:34:39]line ФПД: 143508449264518 [16:34:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T163438&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227517&fm=143508449264518&tin=02508201610067®Number=0000000000091685&sum=50000 [16:34:39]OFD Sender: Processing packet 227517 [packets to send 38, broken 37] [16:34:39]ProducePacketName [16:34:39]name=ofd_packets/00227517 [16:34:39]OFD Sender: To server: pG, [16:34:39]CommunicateWithHost lk.salyk.kg:30040 [16:34:39]ConnectInit lk.salyk.kg [16:34:39]written 0, free lines is 4095 [16:34:39]Connected sock=11 [16:34: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 33 39 0F 01 00 00 2C B5 07 01 BB A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 01 00 00 F4 03 04 00 1E 31 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BD 78 03 00 35 04 06 00 82 85 2A 24 03 86 DE FF CD D3 B2 78 8F 67 [16:34: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 33 39 4F 00 00 00 6C 77 47 00 26 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BD 78 03 00 F4 03 04 00 1D DC 14 67 B6 04 01 00 00 90 96 01 11 9F 85 3C 2A [16:34:39]CommunicateWithHost err = 0 [16:34:39]CheckOFDResponse [16:34:39]1017 (14) - 77093643461234 [16:34:39]1041 (16) - 0000000000871839 [16:34:39]1040 (4) - 227517 [16:34:39]1012 (4) - 20.10.2024 10:31 [16:34:39]1206 (1) - 0 [16:34:39]OFD Sender: Remove packet 227517 [16:34:39]ProducePacketName [16:34:39]name=ofd_packets/00227517 [16:34:39]NVStorageDeleteData [16:34:39]Write to MH i2c: 01 00 00 03 07 0A [16:34:39]Write i2c OK [16:34:39]MH_I2C_Read... [16:34:39]Read from MH i2c: 01 [16:34:39]MH_I2C_Read... [16:34:39]Read from MH i2c: 01 07 00 [16:34:39]MH_I2C_Read... [16:34:39]Read from MH i2c: 01 07 00 03 07 00 00 00 00 00 03 0D 21 [16:34:39]RasterBufferAndPrint [16:34:39]line [16:34:39]line [16:34:39]line [16:34:39]line [16:34:39]line [16:34:39]written 0, free lines is 3337 [16:34:39]process_action close_receipt done [16:34:39]requested_data is exist [16:34:39]produce_requested_data [16:34:39]requested_item fm.sn is exist - process it [16:34:39]wFMCommunicate request_size=4 [16:34:39]MH_SAM_APDU [16:34:39]CAPDU: 80 11 00 00 [16:34:39]Write to MH i2c: E2 08 00 0A 07 80 11 00 00 00 00 00 00 8B [16:34:39]Write i2c OK [16:34:39]MH_I2C_Read... [16:34:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:40]Read from MH i2c: E2 [16:34:40]MH_I2C_Read... [16:34:40]Read from MH i2c: E2 17 00 [16:34:40]MH_I2C_Read... [16:34:40]Read from MH i2c: E2 17 00 0A 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E2 [16:34:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [16:34:40]wFMCommunicate OK [16:34:40]requested_item fd.num is exist - process it [16:34:40]SAM_PROTO_GetFieldsCounters [16:34:40]wFMCommunicate request_size=4 [16:34:40]MH_SAM_APDU [16:34:40]CAPDU: 80 13 00 00 [16:34:40]Write to MH i2c: E2 08 00 0B 07 80 13 00 00 00 00 00 00 8E [16:34:40]Write i2c OK [16:34:40]MH_I2C_Read... [16:34:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:34:40]Read from MH i2c: E2 [16:34:40]MH_I2C_Read... [16:34:40]Read from MH i2c: E2 62 00 [16:34:40]MH_I2C_Read... [16:34:40]Read from MH i2c: E2 62 00 0B 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 BD 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 6D 01 00 00 5E 04 04 00 6D 01 00 00 57 04 04 00 6E 01 00 00 19 04 04 00 00 00 00 00 90 00 50 [16:34: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 BD 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 6D 01 00 00 5E 04 04 00 6D 01 00 00 57 04 04 00 6E 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:34:40]wFMCommunicate OK [16:34:40]SAM_PROTO_GetFieldsCounters done [16:34:40]requested_item shift.num is exist - process it [16:34:40]requested_item shift.opened is exist - process it [16:34:40]req_shift_opened [16:34:40]FM_GetShiftState [16:34:40]SAM_PROTO_GetShiftState [16:34:40]wFMCommunicate request_size=4 [16:34:40]MH_SAM_APDU [16:34:40]CAPDU: 80 13 01 00 [16:34:40]Write to MH i2c: E2 08 00 0C 07 80 13 01 00 00 00 00 00 90 [16:34:40]Write i2c OK [16:34:40]MH_I2C_Read... [16:34:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:40]Read from MH i2c: E2 [16:34:40]MH_I2C_Read... [16:34:40]Read from MH i2c: E2 0E 00 [16:34:40]MH_I2C_Read... [16:34:40]Read from MH i2c: E2 0E 00 0C 07 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 AA [16:34:40]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [16:34:40]wFMCommunicate OK [16:34:40]SAM_PROTO_GetShiftState done [16:34:40]FM_GetShiftState done [16:34:40]req_shift_opened done [16:34:40]requested_item shift.open_date is exist - process it [16:34:40]req_shift_open_date [16:34:40]req_shift_open_date done [16:34:40]produce_requested_data done [16:34:40]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227517,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [16:34:40]process_action_free close_receipt [16:34:40]json_value_free [16:34:40]json_value_free done [16:34:40]process_json_proto returns [16:34:40]Send response to host [16:34:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227517,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [16:34:40]free response buf [16:34:40]execute_script done [16:34:40]execute_script returns [16:34:40]free content buf [16:34:40]Sock 7.Close socket [16:34:40]Sock 7.Thread stoped [16:34:40]OFD Sender: No OFD packet to send [16:34:45]OFD Sender: No OFD packet to send [16:34:49]accept exits with 9 [16:34:49]New connection [16:34:49]New thread 3067219300 created [16:34:49]Thread 3067362660 joined [16:34:49]Waiting for new connection... [16:34:49] Sock 9.Parse request [16:34:49]Sock 9.Check first char [16:34:49]Sock 9.First char is OK [16:34:49]request: POST /json_proto HTTP/1.0 [16:34:49]Method: POST [16:34:49]URL: /json_proto [16:34:49]Method is POST - this is cgi request [16:34:49]url: /json_proto [16:34:49]query_string will be loaded in cgi processing [16:34:49]execute_cgi json_proto POST (null) [16:34:49]execute_cgi path=json_proto method=POST [16:34:49]POST find Content-Length [16:34:49]Host: 172.17.44.195:8080 [16:34:49]Content-Length: 659 [16:34:49]Content-Type: application/json [16:34:49] [16:34:49]POST finish read [16:34:49]Found Content-Length = 659 [16:34:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963142", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 4.390, "sum" : 300.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:34:49]execute_script... [16:34: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)1963142", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 4.390, "sum" : 300.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:34:49]POST & json_proto [16:34:49]process_json_proto [16:34:49]json parsed OK: [16:34:49]protocol is kg_v1.0 [16:34:49]action value=close_receipt [16:34:49]process_action close_receipt [16:34:49]cmd_close_receipt [16:34:49]MH_GetDate [16:34:49]Write to MH i2c: F0 00 00 0D 07 03 [16:34:49]Write i2c OK [16:34:49]MH_I2C_Read... [16:34:49]Read from MH i2c: F0 [16:34:49]MH_I2C_Read... [16:34:49]Read from MH i2c: F0 09 00 [16:34:49]MH_I2C_Read... [16:34:49]Read from MH i2c: F0 09 00 0D 07 00 2B 31 15 67 82 C9 CF 66 64 [16:34:49]GetLastDocTimeStamp 1729442078 [16:34:49]current date 1729442091 [16:34:49]FM_GetShiftState [16:34:49]SAM_PROTO_GetShiftState [16:34:49]wFMCommunicate request_size=4 [16:34:49]MH_SAM_APDU [16:34:49]CAPDU: 80 13 01 00 [16:34:49]Write to MH i2c: E2 08 00 0E 07 80 13 01 00 00 00 00 00 92 [16:34:49]Write i2c OK [16:34:49]MH_I2C_Read... [16:34:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:49]Read from MH i2c: E2 [16:34:49]MH_I2C_Read... [16:34:49]Read from MH i2c: E2 0E 00 [16:34:49]MH_I2C_Read... [16:34:49]Read from MH i2c: E2 0E 00 0E 07 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 AC [16:34:49]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [16:34:49]wFMCommunicate OK [16:34:49]SAM_PROTO_GetShiftState done [16:34:49]FM_GetShiftState done [16:34:49]opened in 1729383750 [16:34:49]opened+sec_in_day 1729470150 [16:34:49]quantity*price = 30027 [16:34:49]sum+1 = 30029 [16:34:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 366 20.10.2024 16:34 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227518 ФПД: 33631192979839 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T163451&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227518&fm=33631192979839&tin=02508201610067®Number=0000000000091685&sum=30000 [16:34:51]StoreToDocumentArchive [16:34:51]shift 533 fd 227518 [16:34:51]save to /storage/0533/doc_00227518 [16:34:51]save last doc name /storage/0533/doc_00227518 to /storage/kkm_last_doc_name [16:34:51]save OK [16:34:51]Clear old archive folders... [16:34:51]ProcessDocumentItem done err = 0, tmpTLVsize=244 [16:34:51]tlvbuf is 00D5E0C0 [16:34:51]SAM_PROTO_ClearQueue [16:34:51]wFMCommunicate request_size=4 [16:34:51]MH_SAM_APDU [16:34:51]CAPDU: 80 09 00 00 [16:34:51]Write to MH i2c: E2 08 00 1B 07 80 09 00 00 00 00 00 00 94 [16:34:51]Write i2c OK [16:34:51]MH_I2C_Read... [16:34:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:34:51]Read from MH i2c: E2 [16:34:51]MH_I2C_Read... [16:34:51]Read from MH i2c: E2 03 00 [16:34:51]MH_I2C_Read... [16:34:51]Read from MH i2c: E2 03 00 1B 07 00 90 00 96 [16:34:51]RAPDU: 90 00 [16:34:51]wFMCommunicate OK [16:34:51]SAM_PROTO_ClearQueue done [16:34:51]KKMCreateOFDPacket [16:34:51]OFDProtocolAddRootSTLVToBuf [16:34:51]FM_MakeSignedData [16:34:51]FM_MakeSignedData [16:34:51]SAM_PROTO_SignData [16:34:51]wFMCommunicate request_size=4 [16:34:51]MH_SAM_APDU [16:34:51]CAPDU: 80 0D 01 02 [16:34:51]Write to MH i2c: E2 08 00 1C 07 80 0D 01 02 00 00 00 00 9C [16:34:51]Write i2c OK [16:34:51]MH_I2C_Read... [16:34:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:34:51]Read from MH i2c: E2 [16:34:51]MH_I2C_Read... [16:34:51]Read from MH i2c: E2 03 00 [16:34:51]MH_I2C_Read... [16:34:51]Read from MH i2c: E2 03 00 1C 07 00 90 00 97 [16:34:51]RAPDU: 90 00 [16:34:51]wFMCommunicate OK [16:34:51]wFMCommunicate request_size=253 [16:34:51]MH_SAM_APDU [16:34:51]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 01 00 00 F4 03 04 00 2B 31 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BE 78 03 00 35 04 06 00 1E 96 5F 4F 99 7F [16:34:51]Write to MH i2c: E2 00 01 1D 07 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 01 00 00 F4 03 04 00 2B 31 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BE 78 03 00 35 04 06 00 1E 96 5F 4F 99 7F 00 00 0D [16:34:51]Write i2c OK [16:34:51]MH_I2C_Read... [16:34:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:51]Read from MH i2c: E2 [16:34:51]MH_I2C_Read... [16:34:51]Read from MH i2c: E2 03 00 [16:34:51]MH_I2C_Read... [16:34:51]Read from MH i2c: E2 03 00 1D 07 00 90 00 98 [16:34:51]RAPDU: 90 00 [16:34:51]wFMCommunicate OK [16:34:51]wFMCommunicate request_size=4 [16:34:51]MH_SAM_APDU [16:34:51]CAPDU: 80 0D 03 02 [16:34:51]Write to MH i2c: E2 08 00 1E 07 80 0D 03 02 00 00 00 00 A0 [16:34:51]Write i2c OK [16:34:51]MH_I2C_Read... [16:34:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:34:51]Read from MH i2c: E2 [16:34:51]MH_I2C_Read... [16:34:51]Read from MH i2c: E2 0B 00 [16:34:51]MH_I2C_Read... [16:34:51]Read from MH i2c: E2 0B 00 1E 07 00 23 76 43 9B 21 AD 26 34 90 00 40 [16:34:51]RAPDU: 23 76 43 9B 21 AD 26 34 90 00 [16:34:51]wFMCommunicate OK [16:34:51]SAM_PROTO_SignData done [16:34:51]FM_MakeSignedData done [16:34:51]CreateOFDProtocolMessage [16:34:51]wFMCommunicate request_size=4 [16:34:51]MH_SAM_APDU [16:34:51]CAPDU: 80 11 00 00 [16:34:51]Write to MH i2c: E2 08 00 1F 07 80 11 00 00 00 00 00 00 A0 [16:34:51]Write i2c OK [16:34:51]MH_I2C_Read... [16:34:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:51]Read from MH i2c: E2 [16:34:51]MH_I2C_Read... [16:34:51]Read from MH i2c: E2 17 00 [16:34:51]MH_I2C_Read... [16:34:51]Read from MH i2c: E2 17 00 1F 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F7 [16:34:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [16:34:51]wFMCommunicate OK [16:34:51]CreateOFDProtocolMessage done [16:34:51]OFDSenderStorePacket 227518 [16:34:51]StoreOFDPacket docnum=227518 [16:34:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 77 98 00 01 AD 63 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 01 00 00 F4 03 04 00 2B 31 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BE 78 03 00 35 04 06 00 1E 96 5F 4F 99 7F 23 76 43 9B 21 AD 26 34 [16:34:51]CheckFolder [16:34:51]dirname=/storage/ofd_packets [16:34:51]CheckFolder done [16:34:51]ProducePacketName [16:34:51]name=ofd_packets/00227518 [16:34:51]NVStorageSaveData ofd_packets/00227518 [16:34:51]File name is /storage/ofd_packets/00227518 [16:34:51]Write 294 bytes [16:34:51]NVStorageSaveData done [16:34:51]OFDSenderStorePacket done [16:34:51]KKMCreateOFDPacket done [16:34:51]NVStorageSaveData kkm_last_timestamp [16:34:51]File name is /storage/kkm_last_timestamp [16:34:51]Write 4 bytes [16:34:51]NVStorageSaveData done [16:34:51]ExternCall_PrintAddStr [16:34:51]wPrintStart [16:34:51]Write to MH i2c: 01 00 00 20 07 27 [16:34:51]Write i2c OK [16:34:51]MH_I2C_Read... [16:34:51]Read from MH i2c: 01 [16:34:51]MH_I2C_Read... [16:34:51]Read from MH i2c: 01 07 00 [16:34:51]MH_I2C_Read... [16:34:51]Read from MH i2c: 01 07 00 20 07 00 00 00 00 00 FF 0F 3C [16:34:51]RasterBufferAndPrint [16:34:51]line Счет N : (1)1963142 [16:34:51]line ИНН: 02508201610067 [16:34:51]line Контрольно-Кассовый Чек [16:34:51]line ПРОДАЖА [16:34:51]line ТРК (МРК, ГНК) : 52 [16:34:51]line Товар: 2710124130 [16:34:51]line SU-92 [16:34:51]line 4.390 * 68.40 [16:34:51]line = 300.28 [16:34:51]line НДС 12% НСП 1% [16:34:51]line > о реализуемом товаре [16:34:51]line ОКРУГЛЕНИЕ: -0.28 [16:34:51]line ИТОГО: 300.00 [16:34:51]line Внесено: 300.00 [16:34:51]line СДАЧА: 0.00 [16:34:51]line НСП 1% : 2.66 [16:34:51]line НДС 12% : 31.89 [16:34:51]line Наличными: 300.00 [16:34:51]line Безнал.: 0.00 [16:34:51]line Место: АЗС № 133 "Партнер Нефть" [16:34:51]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [16:34:51]line СНО: Общий режим [16:34:51]line Чек 366 20.10.2024 16:34 [16:34:51]line Смена: 533 ФФД: 1.0 [16:34:51]line ЗНМ: 0300000091 [16:34:51]line РНМ: 0000000000091685 [16:34:51]line Версия ККМ: 001 [16:34:51]line ФМ: 0000000000871839 [16:34:51]line ФД: 227518 [16:34:51]line ФПД: 33631192979839 [16:34:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T163451&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227518&fm=33631192979839&tin=02508201610067®Number=0000000000091685&sum=30000 [16:34:51]OFD Sender: Processing packet 227518 [packets to send 38, broken 37] [16:34:51]ProducePacketName [16:34:51]name=ofd_packets/00227518 [16:34:51]OFD Sender: To server: pG, [16:34:51]CommunicateWithHost lk.salyk.kg:30040 [16:34:51]ConnectInit lk.salyk.kg [16:34:51]written 0, free lines is 4095 [16:34:51]Connected sock=10 [16:34: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 33 39 08 01 00 00 77 98 00 01 AD 63 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 01 00 00 F4 03 04 00 2B 31 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BE 78 03 00 35 04 06 00 1E 96 5F 4F 99 7F 23 76 43 9B 21 AD 26 34 [16: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 33 39 4F 00 00 00 0B 15 47 00 CF 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 33 39 10 04 04 00 BE 78 03 00 F4 03 04 00 29 DC 14 67 B6 04 01 00 00 DC BE 7F 8E 28 77 3B 5A [16:34:52]CommunicateWithHost err = 0 [16:34:52]CheckOFDResponse [16:34:52]1017 (14) - 77093643461234 [16:34:52]1041 (16) - 0000000000871839 [16:34:52]1040 (4) - 227518 [16:34:52]1012 (4) - 20.10.2024 10:32 [16:34:52]1206 (1) - 0 [16:34:52]OFD Sender: Remove packet 227518 [16:34:52]ProducePacketName [16:34:52]name=ofd_packets/00227518 [16:34:52]NVStorageDeleteData [16:34:52]Write to MH i2c: 01 00 00 4A 07 51 [16:34:52]Write i2c OK [16:34:52]MH_I2C_Read... [16:34:52]Read from MH i2c: 01 [16:34:52]MH_I2C_Read... [16:34:52]Read from MH i2c: 01 07 00 [16:34:52]MH_I2C_Read... [16:34:52]Read from MH i2c: 01 07 00 4A 07 00 00 00 00 00 FF 0C 63 [16:34:52]RasterBufferAndPrint [16:34:52]line [16:34:52]line [16:34:52]line [16:34:52]line [16:34:52]line [16:34:52]written 0, free lines is 3335 [16:34:52]process_action close_receipt done [16:34:52]requested_data is exist [16:34:52]produce_requested_data [16:34:52]requested_item fm.sn is exist - process it [16:34:52]wFMCommunicate request_size=4 [16:34:52]MH_SAM_APDU [16:34:52]CAPDU: 80 11 00 00 [16:34:52]Write to MH i2c: E2 08 00 51 07 80 11 00 00 00 00 00 00 D2 [16:34:52]Write i2c OK [16:34:52]MH_I2C_Read... [16:34:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:52]Read from MH i2c: E2 [16:34:52]MH_I2C_Read... [16:34:52]Read from MH i2c: E2 17 00 [16:34:52]MH_I2C_Read... [16:34:52]Read from MH i2c: E2 17 00 51 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 29 [16:34:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [16:34:52]wFMCommunicate OK [16:34:52]requested_item fd.num is exist - process it [16:34:52]SAM_PROTO_GetFieldsCounters [16:34:52]wFMCommunicate request_size=4 [16:34:52]MH_SAM_APDU [16:34:52]CAPDU: 80 13 00 00 [16:34:52]Write to MH i2c: E2 08 00 52 07 80 13 00 00 00 00 00 00 D5 [16:34:52]Write i2c OK [16:34:52]MH_I2C_Read... [16:34:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:34:52]Read from MH i2c: E2 [16:34:52]MH_I2C_Read... [16:34:52]Read from MH i2c: E2 62 00 [16:34:52]MH_I2C_Read... [16:34:52]Read from MH i2c: E2 62 00 52 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 BE 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 6E 01 00 00 5E 04 04 00 6E 01 00 00 57 04 04 00 6F 01 00 00 19 04 04 00 00 00 00 00 90 00 9B [16:34: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 BE 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 6E 01 00 00 5E 04 04 00 6E 01 00 00 57 04 04 00 6F 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:34:52]wFMCommunicate OK [16:34:52]SAM_PROTO_GetFieldsCounters done [16:34:52]requested_item shift.num is exist - process it [16:34:52]requested_item shift.opened is exist - process it [16:34:52]req_shift_opened [16:34:52]FM_GetShiftState [16:34:52]SAM_PROTO_GetShiftState [16:34:52]wFMCommunicate request_size=4 [16:34:52]MH_SAM_APDU [16:34:52]CAPDU: 80 13 01 00 [16:34:52]Write to MH i2c: E2 08 00 53 07 80 13 01 00 00 00 00 00 D7 [16:34:52]Write i2c OK [16:34:52]MH_I2C_Read... [16:34:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:52]Read from MH i2c: E2 [16:34:52]MH_I2C_Read... [16:34:52]Read from MH i2c: E2 0E 00 [16:34:52]MH_I2C_Read... [16:34:52]Read from MH i2c: E2 0E 00 53 07 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 F1 [16:34:52]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [16:34:52]wFMCommunicate OK [16:34:52]SAM_PROTO_GetShiftState done [16:34:52]FM_GetShiftState done [16:34:52]req_shift_opened done [16:34:52]requested_item shift.open_date is exist - process it [16:34:52]req_shift_open_date [16:34:52]req_shift_open_date done [16:34:52]produce_requested_data done [16:34:52]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227518,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [16:34:52]process_action_free close_receipt [16:34:52]json_value_free [16:34:52]json_value_free done [16:34:52]process_json_proto returns [16:34:52]Send response to host [16:34:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227518,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [16:34:52]free response buf [16:34:52]execute_script done [16:34:52]execute_script returns [16:34:52]free content buf [16:34:52]Sock 9.Close socket [16:34:52]Sock 9.Thread stoped [16:34:52]OFD Sender: No OFD packet to send [16:34:57]OFD Sender: No OFD packet to send [16:35:02]OFD Sender: No OFD packet to send [16:35:07]OFD Sender: No OFD packet to send [16:35:12]OFD Sender: No OFD packet to send [16:35:17]OFD Sender: No OFD packet to send [16:35:20]accept exits with 7 [16:35:20]New connection [16:35:20]New thread 3067362660 created [16:35:20]Thread 3067219300 joined [16:35:20]Waiting for new connection... [16:35:20] Sock 7.Parse request [16:35:20]Sock 7.Check first char [16:35:20]Sock 7.First char is OK [16:35:20]request: POST /json_proto HTTP/1.0 [16:35:20]Method: POST [16:35:20]URL: /json_proto [16:35:20]Method is POST - this is cgi request [16:35:20]url: /json_proto [16:35:20]query_string will be loaded in cgi processing [16:35:20]execute_cgi json_proto POST (null) [16:35:20]execute_cgi path=json_proto method=POST [16:35:20]POST find Content-Length [16:35:20]Host: 172.17.44.195:8080 [16:35:20]Content-Length: 678 [16:35:20]Content-Type: application/json [16:35:20] [16:35:20]POST finish read [16:35:20]Found Content-Length = 678 [16:35:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963144", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:35:20]execute_script... [16:35:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963144", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:35:20]POST & json_proto [16:35:20]process_json_proto [16:35:20]json parsed OK: [16:35:20]protocol is kg_v1.0 [16:35:20]action value=close_receipt [16:35:20]process_action close_receipt [16:35:20]cmd_close_receipt [16:35:20]MH_GetDate [16:35:20]Write to MH i2c: F0 00 00 54 07 4A [16:35:20]Write i2c OK [16:35:20]MH_I2C_Read... [16:35:20]Read from MH i2c: F0 [16:35:20]MH_I2C_Read... [16:35:20]Read from MH i2c: F0 09 00 [16:35:20]MH_I2C_Read... [16:35:20]Read from MH i2c: F0 09 00 54 07 00 49 31 15 67 82 C9 CF 66 C9 [16:35:20]GetLastDocTimeStamp 1729442091 [16:35:20]current date 1729442121 [16:35:20]FM_GetShiftState [16:35:20]SAM_PROTO_GetShiftState [16:35:20]wFMCommunicate request_size=4 [16:35:20]MH_SAM_APDU [16:35:20]CAPDU: 80 13 01 00 [16:35:20]Write to MH i2c: E2 08 00 55 07 80 13 01 00 00 00 00 00 D9 [16:35:20]Write i2c OK [16:35:20]MH_I2C_Read... [16:35:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:20]Read from MH i2c: E2 [16:35:20]MH_I2C_Read... [16:35:20]Read from MH i2c: E2 0E 00 [16:35:20]MH_I2C_Read... [16:35:20]Read from MH i2c: E2 0E 00 55 07 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 F3 [16:35:20]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [16:35:20]wFMCommunicate OK [16:35:20]SAM_PROTO_GetShiftState done [16:35:20]FM_GetShiftState done [16:35:20]opened in 1729383750 [16:35:20]opened+sec_in_day 1729470150 [16:35:20]quantity*price = 50041 [16:35:20]sum+1 = 50042 [16:35:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 367 20.10.2024 16:35 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227519 ФПД: 46608691924644 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T163521&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227519&fm=46608691924644&tin=02508201610067®Number=0000000000091685&sum=50000 [16:35:21]StoreToDocumentArchive [16:35:21]shift 533 fd 227519 [16:35:21]save to /storage/0533/doc_00227519 [16:35:21]save last doc name /storage/0533/doc_00227519 to /storage/kkm_last_doc_name [16:35:21]save OK [16:35:21]Clear old archive folders... [16:35:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:35:21]tlvbuf is 00DA9A20 [16:35:21]SAM_PROTO_ClearQueue [16:35:21]wFMCommunicate request_size=4 [16:35:21]MH_SAM_APDU [16:35:21]CAPDU: 80 09 00 00 [16:35:21]Write to MH i2c: E2 08 00 62 07 80 09 00 00 00 00 00 00 DB [16:35:21]Write i2c OK [16:35:21]MH_I2C_Read... [16:35:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:35:21]Read from MH i2c: E2 [16:35:21]MH_I2C_Read... [16:35:21]Read from MH i2c: E2 03 00 [16:35:21]MH_I2C_Read... [16:35:21]Read from MH i2c: E2 03 00 62 07 00 90 00 DD [16:35:21]RAPDU: 90 00 [16:35:21]wFMCommunicate OK [16:35:21]SAM_PROTO_ClearQueue done [16:35:21]KKMCreateOFDPacket [16:35:21]OFDProtocolAddRootSTLVToBuf [16:35:21]FM_MakeSignedData [16:35:21]FM_MakeSignedData [16:35:21]SAM_PROTO_SignData [16:35:21]wFMCommunicate request_size=4 [16:35:21]MH_SAM_APDU [16:35:21]CAPDU: 80 0D 01 02 [16:35:21]Write to MH i2c: E2 08 00 63 07 80 0D 01 02 00 00 00 00 E3 [16:35:21]Write i2c OK [16:35:21]MH_I2C_Read... [16:35:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:35:21]Read from MH i2c: E2 [16:35:21]MH_I2C_Read... [16:35:21]Read from MH i2c: E2 03 00 [16:35:21]MH_I2C_Read... [16:35:21]Read from MH i2c: E2 03 00 63 07 00 90 00 DE [16:35:21]RAPDU: 90 00 [16:35:21]wFMCommunicate OK [16:35:21]wFMCommunicate request_size=255 [16:35:21]MH_SAM_APDU [16:35:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 01 00 00 F4 03 04 00 49 31 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BF 78 03 00 35 04 06 00 2A [16:35:21]Write to MH i2c: E2 02 01 64 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 01 00 00 F4 03 04 00 49 31 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BF 78 03 00 35 04 06 00 2A 00 00 5B [16:35:21]Write i2c OK [16:35:21]MH_I2C_Read... [16:35:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:35:22]Read from MH i2c: E2 [16:35:22]MH_I2C_Read... [16:35:22]Read from MH i2c: E2 03 00 [16:35:22]MH_I2C_Read... [16:35:22]Read from MH i2c: E2 03 00 64 07 00 90 00 DF [16:35:22]RAPDU: 90 00 [16:35:22]wFMCommunicate OK [16:35:22]wFMCommunicate request_size=10 [16:35:22]MH_SAM_APDU [16:35:22]CAPDU: 80 0D 02 02 05 63 EE 86 8E A4 [16:35:22]Write to MH i2c: E2 0D 00 65 07 80 0D 02 02 05 00 63 EE 86 8E A4 00 00 F9 [16:35:22]Write i2c OK [16:35:22]MH_I2C_Read... [16:35:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:35:22]Read from MH i2c: E2 [16:35:22]MH_I2C_Read... [16:35:22]Read from MH i2c: E2 03 00 [16:35:22]MH_I2C_Read... [16:35:22]Read from MH i2c: E2 03 00 65 07 00 90 00 E0 [16:35:22]RAPDU: 90 00 [16:35:22]wFMCommunicate OK [16:35:22]wFMCommunicate request_size=4 [16:35:22]MH_SAM_APDU [16:35:22]CAPDU: 80 0D 03 02 [16:35:22]Write to MH i2c: E2 08 00 66 07 80 0D 03 02 00 00 00 00 E8 [16:35:22]Write i2c OK [16:35:22]MH_I2C_Read... [16:35:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:35:22]Read from MH i2c: E2 [16:35:22]MH_I2C_Read... [16:35:22]Read from MH i2c: E2 0B 00 [16:35:22]MH_I2C_Read... [16:35:22]Read from MH i2c: E2 0B 00 66 07 00 F2 F1 FB E6 76 4C EF 2C 90 00 8A [16:35:22]RAPDU: F2 F1 FB E6 76 4C EF 2C 90 00 [16:35:22]wFMCommunicate OK [16:35:22]SAM_PROTO_SignData done [16:35:22]FM_MakeSignedData done [16:35:22]CreateOFDProtocolMessage [16:35:22]wFMCommunicate request_size=4 [16:35:22]MH_SAM_APDU [16:35:22]CAPDU: 80 11 00 00 [16:35:22]Write to MH i2c: E2 08 00 67 07 80 11 00 00 00 00 00 00 E8 [16:35:22]Write i2c OK [16:35:22]MH_I2C_Read... [16:35:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:22]Read from MH i2c: E2 [16:35:22]MH_I2C_Read... [16:35:22]Read from MH i2c: E2 17 00 [16:35:22]MH_I2C_Read... [16:35:22]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 33 39 90 00 3F [16:35:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [16:35:22]wFMCommunicate OK [16:35:22]CreateOFDProtocolMessage done [16:35:22]OFDSenderStorePacket 227519 [16:35:22]StoreOFDPacket docnum=227519 [16:35:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 F0 63 07 01 F5 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 01 00 00 F4 03 04 00 49 31 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BF 78 03 00 35 04 06 00 2A 63 EE 86 8E A4 F2 F1 FB E6 76 4C EF 2C [16:35:22]CheckFolder [16:35:22]dirname=/storage/ofd_packets [16:35:22]CheckFolder done [16:35:22]ProducePacketName [16:35:22]name=ofd_packets/00227519 [16:35:22]NVStorageSaveData ofd_packets/00227519 [16:35:22]File name is /storage/ofd_packets/00227519 [16:35:22]Write 301 bytes [16:35:22]NVStorageSaveData done [16:35:22]OFDSenderStorePacket done [16:35:22]KKMCreateOFDPacket done [16:35:22]NVStorageSaveData kkm_last_timestamp [16:35:22]File name is /storage/kkm_last_timestamp [16:35:22]Write 4 bytes [16:35:22]NVStorageSaveData done [16:35:22]ExternCall_PrintAddStr [16:35:22]wPrintStart [16:35:22]Write to MH i2c: 01 00 00 68 07 6F [16:35:22]Write i2c OK [16:35:22]MH_I2C_Read... [16:35:22]Read from MH i2c: 01 [16:35:22]MH_I2C_Read... [16:35:22]Read from MH i2c: 01 07 00 [16:35:22]MH_I2C_Read... [16:35:22]Read from MH i2c: 01 07 00 68 07 00 00 00 00 00 FF 0F 84 [16:35:22]RasterBufferAndPrint [16:35:22]line Счет N : (1)1963144 [16:35:22]line ИНН: 02508201610067 [16:35:22]line Контрольно-Кассовый Чек [16:35:22]line ПРОДАЖА [16:35:22]line ТРК (МРК, ГНК) : 63 [16:35:22]line Товар: 2710124130 [16:35:22]line Аи-92-К-5 [16:35:22]line 7.480 * 66.90 [16:35:22]line = 500.41 [16:35:22]line НДС 12% НСП 1% [16:35:22]line > о реализуемом товаре [16:35:22]line ОКРУГЛЕНИЕ: -0.41 [16:35:22]line ИТОГО: 500.00 [16:35:22]line Внесено: 500.00 [16:35:22]line СДАЧА: 0.00 [16:35:22]line НСП 1% : 4.43 [16:35:22]line НДС 12% : 53.14 [16:35:22]line Наличными: 500.00 [16:35:22]line Безнал.: 0.00 [16:35:22]line Место: АЗС № 133 "Партнер Нефть" [16:35:22]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [16:35:22]line СНО: Общий режим [16:35:22]line Чек 367 20.10.2024 16:35 [16:35:22]line Смена: 533 ФФД: 1.0 [16:35:22]line ЗНМ: 0300000091 [16:35:22]line РНМ: 0000000000091685 [16:35:22]line Версия ККМ: 001 [16:35:22]line ФМ: 0000000000871839 [16:35:22]line ФД: 227519 [16:35:22]line ФПД: 46608691924644 [16:35:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T163521&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227519&fm=46608691924644&tin=02508201610067®Number=0000000000091685&sum=50000 [16:35:22]OFD Sender: Processing packet 227519 [packets to send 38, broken 37] [16:35:22]ProducePacketName [16:35:22]name=ofd_packets/00227519 [16:35:22]OFD Sender: To server: pG, [16:35:22]CommunicateWithHost lk.salyk.kg:30040 [16:35:22]ConnectInit lk.salyk.kg [16:35:22]written 0, free lines is 4095 [16:35:22]Connected sock=10 [16:35:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 F0 63 07 01 F5 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 01 00 00 F4 03 04 00 49 31 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BF 78 03 00 35 04 06 00 2A 63 EE 86 8E A4 F2 F1 FB E6 76 4C EF 2C [16: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 33 39 4F 00 00 00 AC 00 47 00 1A 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 BF 78 03 00 F4 03 04 00 48 DC 14 67 B6 04 01 00 00 E8 29 76 7C 0A A1 E2 34 [16:35:22]CommunicateWithHost err = 0 [16:35:22]CheckOFDResponse [16:35:22]1017 (14) - 77093643461234 [16:35:22]1041 (16) - 0000000000871839 [16:35:22]1040 (4) - 227519 [16:35:22]1012 (4) - 20.10.2024 10:32 [16:35:22]1206 (1) - 0 [16:35:22]OFD Sender: Remove packet 227519 [16:35:22]ProducePacketName [16:35:22]name=ofd_packets/00227519 [16:35:22]NVStorageDeleteData [16:35:23]Write to MH i2c: 01 00 00 92 07 99 [16:35:23]Write i2c OK [16:35:23]MH_I2C_Read... [16:35:23]Read from MH i2c: 01 [16:35:23]MH_I2C_Read... [16:35:23]Read from MH i2c: 01 07 00 [16:35:23]MH_I2C_Read... [16:35:23]Read from MH i2c: 01 07 00 92 07 00 00 00 00 00 FF 0C AB [16:35:23]RasterBufferAndPrint [16:35:23]line [16:35:23]line [16:35:23]line [16:35:23]line [16:35:23]line [16:35:23]written 0, free lines is 3333 [16:35:23]process_action close_receipt done [16:35:23]requested_data is exist [16:35:23]produce_requested_data [16:35:23]requested_item fm.sn is exist - process it [16:35:23]wFMCommunicate request_size=4 [16:35:23]MH_SAM_APDU [16:35:23]CAPDU: 80 11 00 00 [16:35:23]Write to MH i2c: E2 08 00 99 07 80 11 00 00 00 00 00 00 1A [16:35:23]Write i2c OK [16:35:23]MH_I2C_Read... [16:35:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:23]Read from MH i2c: E2 [16:35:23]MH_I2C_Read... [16:35:23]Read from MH i2c: E2 17 00 [16:35:23]MH_I2C_Read... [16:35:23]Read from MH i2c: E2 17 00 99 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 71 [16:35:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [16:35:23]wFMCommunicate OK [16:35:23]requested_item fd.num is exist - process it [16:35:23]SAM_PROTO_GetFieldsCounters [16:35:23]wFMCommunicate request_size=4 [16:35:23]MH_SAM_APDU [16:35:23]CAPDU: 80 13 00 00 [16:35:23]Write to MH i2c: E2 08 00 9A 07 80 13 00 00 00 00 00 00 1D [16:35:23]Write i2c OK [16:35:23]MH_I2C_Read... [16:35:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:35:23]Read from MH i2c: E2 [16:35:23]MH_I2C_Read... [16:35:23]Read from MH i2c: E2 62 00 [16:35:23]MH_I2C_Read... [16:35:23]Read from MH i2c: E2 62 00 9A 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 BF 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 6F 01 00 00 5E 04 04 00 6F 01 00 00 57 04 04 00 70 01 00 00 19 04 04 00 00 00 00 00 90 00 E7 [16: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 BF 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 6F 01 00 00 5E 04 04 00 6F 01 00 00 57 04 04 00 70 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:35:23]wFMCommunicate OK [16:35:23]SAM_PROTO_GetFieldsCounters done [16:35:23]requested_item shift.num is exist - process it [16:35:23]requested_item shift.opened is exist - process it [16:35:23]req_shift_opened [16:35:23]FM_GetShiftState [16:35:23]SAM_PROTO_GetShiftState [16:35:23]wFMCommunicate request_size=4 [16:35:23]MH_SAM_APDU [16:35:23]CAPDU: 80 13 01 00 [16:35:23]Write to MH i2c: E2 08 00 9B 07 80 13 01 00 00 00 00 00 1F [16:35:23]Write i2c OK [16:35:23]MH_I2C_Read... [16:35:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:23]Read from MH i2c: E2 [16:35:23]MH_I2C_Read... [16:35:23]Read from MH i2c: E2 0E 00 [16:35:23]MH_I2C_Read... [16:35:23]Read from MH i2c: E2 0E 00 9B 07 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 39 [16:35:23]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [16:35:23]wFMCommunicate OK [16:35:23]SAM_PROTO_GetShiftState done [16:35:23]FM_GetShiftState done [16:35:23]req_shift_opened done [16:35:23]requested_item shift.open_date is exist - process it [16:35:23]req_shift_open_date [16:35:23]req_shift_open_date done [16:35:23]produce_requested_data done [16:35:23]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227519,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [16:35:23]process_action_free close_receipt [16:35:23]json_value_free [16:35:23]json_value_free done [16:35:23]process_json_proto returns [16:35:23]Send response to host [16:35:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227519,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [16:35:23]free response buf [16:35:23]execute_script done [16:35:23]execute_script returns [16:35:23]free content buf [16:35:23]Sock 7.Close socket [16:35:23]Sock 7.Thread stoped [16:35:23]OFD Sender: No OFD packet to send [16:35:28]OFD Sender: No OFD packet to send [16:35:33]OFD Sender: No OFD packet to send [16:35:38]OFD Sender: No OFD packet to send [16:35:43]OFD Sender: No OFD packet to send [16:35:48]OFD Sender: No OFD packet to send [16:35:53]OFD Sender: No OFD packet to send [16:35:58]OFD Sender: No OFD packet to send [16:36:03]OFD Sender: No OFD packet to send [16:36:08]OFD Sender: No OFD packet to send [16:36:13]OFD Sender: No OFD packet to send [16:36:18]OFD Sender: No OFD packet to send [16:36:23]OFD Sender: No OFD packet to send [16:36:28]OFD Sender: No OFD packet to send [16:36:33]OFD Sender: No OFD packet to send [16:36:38]OFD Sender: No OFD packet to send [16:36:43]OFD Sender: No OFD packet to send [16:36:48]OFD Sender: No OFD packet to send [16:36:53]OFD Sender: No OFD packet to send [16:36:58]OFD Sender: No OFD packet to send [16:37:03]OFD Sender: No OFD packet to send [16:37:08]OFD Sender: No OFD packet to send [16:37:13]OFD Sender: No OFD packet to send [16:37:18]OFD Sender: No OFD packet to send [16:37:23]OFD Sender: No OFD packet to send [16:37:28]OFD Sender: No OFD packet to send [16:37:33]OFD Sender: No OFD packet to send [16:37:38]OFD Sender: No OFD packet to send [16:37:43]OFD Sender: No OFD packet to send [16:37:48]OFD Sender: No OFD packet to send [16:37:53]OFD Sender: No OFD packet to send [16:37:58]OFD Sender: No OFD packet to send [16:38:03]OFD Sender: No OFD packet to send [16:38:08]OFD Sender: No OFD packet to send [16:38:13]OFD Sender: No OFD packet to send [16:38:18]OFD Sender: No OFD packet to send [16:38:23]OFD Sender: No OFD packet to send [16:38:28]OFD Sender: No OFD packet to send [16:38:29]accept exits with 9 [16:38:29]New connection [16:38:29]New thread 3067219300 created [16:38:29]Thread 3067362660 joined [16:38:29]Waiting for new connection... [16:38:29] Sock 9.Parse request [16:38:29]Sock 9.Check first char [16:38:29]Sock 9.First char is OK [16:38:29]request: POST /json_proto HTTP/1.0 [16:38:29]Method: POST [16:38:29]URL: /json_proto [16:38:29]Method is POST - this is cgi request [16:38:29]url: /json_proto [16:38:29]query_string will be loaded in cgi processing [16:38:29]execute_cgi json_proto POST (null) [16:38:29]execute_cgi path=json_proto method=POST [16:38:29]POST find Content-Length [16:38:29]Host: 172.17.44.195:8080 [16:38:29]Content-Length: 979 [16:38:29]Content-Type: application/json [16:38:29] [16:38:29]POST finish read [16:38:29]Found Content-Length = 979 [16:38:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963145", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 84.780, "sum" : 6375.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 133\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 84.78 \u0441\u043E\u043C", "deposit" : 6375.00, "total" : 6375.00, "payments": [ { "type": 0, "sum" : 6375.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:38:29]execute_script... [16:38: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)1963145", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 84.780, "sum" : 6375.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 133\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 84.78 \u0441\u043E\u043C", "deposit" : 6375.00, "total" : 6375.00, "payments": [ { "type": 0, "sum" : 6375.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:38:29]POST & json_proto [16:38:29]process_json_proto [16:38:29]json parsed OK: [16:38:29]protocol is kg_v1.0 [16:38:29]action value=close_receipt [16:38:29]process_action close_receipt [16:38:29]cmd_close_receipt [16:38:29]MH_GetDate [16:38:29]Write to MH i2c: F0 00 00 9C 07 92 [16:38:29]Write i2c OK [16:38:29]MH_I2C_Read... [16:38:29]Read from MH i2c: F0 [16:38:29]MH_I2C_Read... [16:38:29]Read from MH i2c: F0 09 00 [16:38:29]MH_I2C_Read... [16:38:29]Read from MH i2c: F0 09 00 9C 07 00 07 32 15 67 82 C9 CF 66 D0 [16:38:29]GetLastDocTimeStamp 1729442121 [16:38:29]current date 1729442311 [16:38:29]FM_GetShiftState [16:38:29]SAM_PROTO_GetShiftState [16:38:29]wFMCommunicate request_size=4 [16:38:29]MH_SAM_APDU [16:38:29]CAPDU: 80 13 01 00 [16:38:29]Write to MH i2c: E2 08 00 9D 07 80 13 01 00 00 00 00 00 21 [16:38:29]Write i2c OK [16:38:29]MH_I2C_Read... [16:38:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:29]Read from MH i2c: E2 [16:38:29]MH_I2C_Read... [16:38:29]Read from MH i2c: E2 0E 00 [16:38:29]MH_I2C_Read... [16:38:29]Read from MH i2c: E2 0E 00 9D 07 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 3B [16:38:29]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [16:38:29]wFMCommunicate OK [16:38:29]SAM_PROTO_GetShiftState done [16:38:29]FM_GetShiftState done [16:38:29]opened in 1729383750 [16:38:29]opened+sec_in_day 1729470150 [16:38:29]quantity*price = 637545 [16:38:29]sum+1 = 637547 [16:38:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 6375.00 Внесено: 6375.00 СДАЧА: 0.00 НСП 1% : 56.42 НДС 12% : 677.04 Наличными: 6375.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 368 20.10.2024 16:38 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Дисконтная программа ДТ номер 133 сэкономлено 84.78 сом ФМ: 0000000000871839 ФД: 227520 ФПД: 15111210239906 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T163831&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227520&fm=15111210239906&tin=02508201610067®Number=0000000000091685&sum=637500 [16:38:30]StoreToDocumentArchive [16:38:30]shift 533 fd 227520 [16:38:30]save to /storage/0533/doc_00227520 [16:38:30]save last doc name /storage/0533/doc_00227520 to /storage/kkm_last_doc_name [16:38:30]save OK [16:38:30]Clear old archive folders... [16:38:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:38:30]tlvbuf is 00DBA690 [16:38:30]SAM_PROTO_ClearQueue [16:38:30]wFMCommunicate request_size=4 [16:38:30]MH_SAM_APDU [16:38:30]CAPDU: 80 09 00 00 [16:38:30]Write to MH i2c: E2 08 00 AA 07 80 09 00 00 00 00 00 00 23 [16:38:30]Write i2c OK [16:38:30]MH_I2C_Read... [16:38:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:38:31]Read from MH i2c: E2 [16:38:31]MH_I2C_Read... [16:38:31]Read from MH i2c: E2 03 00 [16:38:31]MH_I2C_Read... [16:38:31]Read from MH i2c: E2 03 00 AA 07 00 90 00 25 [16:38:31]RAPDU: 90 00 [16:38:31]wFMCommunicate OK [16:38:31]SAM_PROTO_ClearQueue done [16:38:31]KKMCreateOFDPacket [16:38:31]OFDProtocolAddRootSTLVToBuf [16:38:31]FM_MakeSignedData [16:38:31]FM_MakeSignedData [16:38:31]SAM_PROTO_SignData [16:38:31]wFMCommunicate request_size=4 [16:38:31]MH_SAM_APDU [16:38:31]CAPDU: 80 0D 01 02 [16:38:31]Write to MH i2c: E2 08 00 AB 07 80 0D 01 02 00 00 00 00 2B [16:38:31]Write i2c OK [16:38:31]MH_I2C_Read... [16:38:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:38:31]Read from MH i2c: E2 [16:38:31]MH_I2C_Read... [16:38:31]Read from MH i2c: E2 03 00 [16:38:31]MH_I2C_Read... [16:38:31]Read from MH i2c: E2 03 00 AB 07 00 90 00 26 [16:38:31]RAPDU: 90 00 [16:38:31]wFMCommunicate OK [16:38:31]wFMCommunicate request_size=255 [16:38:31]MH_SAM_APDU [16:38:31]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 4B 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 6A BA 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C BA 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 08 01 00 00 00 07 04 06 00 3C BA 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 01 00 00 F4 03 04 00 07 32 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C0 78 03 00 35 04 06 00 0D BE 5A 51 [16:38:31]Write to MH i2c: E2 02 01 AC 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 2C 4B 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 6A BA 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C BA 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 08 01 00 00 00 07 04 06 00 3C BA 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 01 00 00 F4 03 04 00 07 32 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C0 78 03 00 35 04 06 00 0D BE 5A 51 00 00 3F [16:38:31]Write i2c OK [16:38:31]MH_I2C_Read... [16:38:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:31]Read from MH i2c: E2 [16:38:31]MH_I2C_Read... [16:38:31]Read from MH i2c: E2 03 00 [16:38:31]MH_I2C_Read... [16:38:31]Read from MH i2c: E2 03 00 AC 07 00 90 00 27 [16:38:31]RAPDU: 90 00 [16:38:31]wFMCommunicate OK [16:38:31]wFMCommunicate request_size=7 [16:38:31]MH_SAM_APDU [16:38:31]CAPDU: 80 0D 02 02 02 87 A2 [16:38:31]Write to MH i2c: E2 0A 00 AD 07 80 0D 02 02 02 00 87 A2 00 00 5B [16:38:31]Write i2c OK [16:38:31]MH_I2C_Read... [16:38:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:31]Read from MH i2c: E2 [16:38:31]MH_I2C_Read... [16:38:31]Read from MH i2c: E2 03 00 [16:38:31]MH_I2C_Read... [16:38:31]Read from MH i2c: E2 03 00 AD 07 00 90 00 28 [16:38:31]RAPDU: 90 00 [16:38:31]wFMCommunicate OK [16:38:31]wFMCommunicate request_size=4 [16:38:31]MH_SAM_APDU [16:38:31]CAPDU: 80 0D 03 02 [16:38:31]Write to MH i2c: E2 08 00 AE 07 80 0D 03 02 00 00 00 00 30 [16:38:31]Write i2c OK [16:38:31]MH_I2C_Read... [16:38:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:38:31]Read from MH i2c: E2 [16:38:31]MH_I2C_Read... [16:38:31]Read from MH i2c: E2 0B 00 [16:38:31]MH_I2C_Read... [16:38:31]Read from MH i2c: E2 0B 00 AE 07 00 26 CA D7 E0 9A 32 16 0B 90 00 C5 [16:38:31]RAPDU: 26 CA D7 E0 9A 32 16 0B 90 00 [16:38:31]wFMCommunicate OK [16:38:31]SAM_PROTO_SignData done [16:38:31]FM_MakeSignedData done [16:38:31]CreateOFDProtocolMessage [16:38:31]wFMCommunicate request_size=4 [16:38:31]MH_SAM_APDU [16:38:31]CAPDU: 80 11 00 00 [16:38:31]Write to MH i2c: E2 08 00 AF 07 80 11 00 00 00 00 00 00 30 [16:38:31]Write i2c OK [16:38:31]MH_I2C_Read... [16:38:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:31]Read from MH i2c: E2 [16:38:31]MH_I2C_Read... [16:38:31]Read from MH i2c: E2 17 00 [16:38:31]MH_I2C_Read... [16:38:31]Read from MH i2c: E2 17 00 AF 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 87 [16:38:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [16:38:31]wFMCommunicate OK [16:38:31]CreateOFDProtocolMessage done [16:38:31]OFDSenderStorePacket 227520 [16:38:31]StoreOFDPacket docnum=227520 [16:38:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 CF 78 04 01 77 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 2C 4B 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 6A BA 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C BA 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 08 01 00 00 00 07 04 06 00 3C BA 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 01 00 00 F4 03 04 00 07 32 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C0 78 03 00 35 04 06 00 0D BE 5A 51 87 A2 26 CA D7 E0 9A 32 16 0B [16:38:31]CheckFolder [16:38:31]dirname=/storage/ofd_packets [16:38:31]CheckFolder done [16:38:31]ProducePacketName [16:38:31]name=ofd_packets/00227520 [16:38:31]NVStorageSaveData ofd_packets/00227520 [16:38:31]File name is /storage/ofd_packets/00227520 [16:38:31]Write 298 bytes [16:38:31]NVStorageSaveData done [16:38:31]OFDSenderStorePacket done [16:38:31]KKMCreateOFDPacket done [16:38:31]NVStorageSaveData kkm_last_timestamp [16:38:31]File name is /storage/kkm_last_timestamp [16:38:31]Write 4 bytes [16:38:31]NVStorageSaveData done [16:38:31]ExternCall_PrintAddStr [16:38:31]wPrintStart [16:38:31]Write to MH i2c: 01 00 00 B0 07 B7 [16:38:31]Write i2c OK [16:38:31]MH_I2C_Read... [16:38:31]Read from MH i2c: 01 [16:38:31]MH_I2C_Read... [16:38:31]Read from MH i2c: 01 07 00 [16:38:31]MH_I2C_Read... [16:38:31]Read from MH i2c: 01 07 00 B0 07 00 00 00 00 00 FF 0F CC [16:38:31]RasterBufferAndPrint [16:38:31]line Счет N : (1)1963145 [16:38:31]line ИНН: 02508201610067 [16:38:31]line Контрольно-Кассовый Чек [16:38:31]line ПРОДАЖА [16:38:31]line ТРК (МРК, ГНК) : 11 [16:38:31]line Товар: 2710194210 [16:38:31]line ДТ-К-5 [16:38:31]line 84.780 * 75.20 [16:38:31]line = 6375.46 [16:38:31]line НДС 12% НСП 1% [16:38:31]line > о реализуемом товаре [16:38:31]line ОКРУГЛЕНИЕ: -0.46 [16:38:31]line ИТОГО: 6375.00 [16:38:31]line Внесено: 6375.00 [16:38:31]line СДАЧА: 0.00 [16:38:31]line НСП 1% : 56.42 [16:38:31]line НДС 12% : 677.04 [16:38:31]line Наличными: 6375.00 [16:38:31]line Безнал.: 0.00 [16:38:31]line Место: АЗС № 133 "Партнер Нефть" [16:38:31]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [16:38:31]line СНО: Общий режим [16:38:31]line Чек 368 20.10.2024 16:38 [16:38:31]line Смена: 533 ФФД: 1.0 [16:38:31]line ЗНМ: 0300000091 [16:38:31]line РНМ: 0000000000091685 [16:38:31]line Версия ККМ: 001 [16:38:31]line [16:38:31]line Дисконтная программа [16:38:31]line ДТ [16:38:31]line номер 133 [16:38:31]line сэкономлено 84.78 сом [16:38:31]line ФМ: 0000000000871839 [16:38:31]line ФД: 227520 [16:38:31]line ФПД: 15111210239906 [16:38:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T163831&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227520&fm=15111210239906&tin=02508201610067®Number=0000000000091685&sum=637500 [16:38:31]OFD Sender: Processing packet 227520 [packets to send 38, broken 37] [16:38:31]ProducePacketName [16:38:31]name=ofd_packets/00227520 [16:38:31]OFD Sender: To server: pG, [16:38:31]CommunicateWithHost lk.salyk.kg:30040 [16:38:31]ConnectInit lk.salyk.kg [16:38:31]written 0, free lines is 4095 [16:38:31]Connected sock=11 [16:38: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 33 39 0C 01 00 00 CF 78 04 01 77 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 2C 4B 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 6A BA 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C BA 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 08 01 00 00 00 07 04 06 00 3C BA 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 01 00 00 F4 03 04 00 07 32 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C0 78 03 00 35 04 06 00 0D BE 5A 51 87 A2 26 CA D7 E0 9A 32 16 0B [16:38: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 33 39 4F 00 00 00 FD 0E 47 00 43 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C0 78 03 00 F4 03 04 00 05 DD 14 67 B6 04 01 00 00 60 9D B3 F7 E2 16 8B C8 [16:38:32]CommunicateWithHost err = 0 [16:38:32]CheckOFDResponse [16:38:32]1017 (14) - 77093643461234 [16:38:32]1041 (16) - 0000000000871839 [16:38:32]1040 (4) - 227520 [16:38:32]1012 (4) - 20.10.2024 10:35 [16:38:32]1206 (1) - 0 [16:38:32]OFD Sender: Remove packet 227520 [16:38:32]ProducePacketName [16:38:32]name=ofd_packets/00227520 [16:38:32]NVStorageDeleteData [16:38:32]Write to MH i2c: 01 00 00 DF 07 E6 [16:38:32]Write i2c OK [16:38:32]MH_I2C_Read... [16:38:32]Read from MH i2c: 01 [16:38:32]MH_I2C_Read... [16:38:32]Read from MH i2c: 01 07 00 [16:38:32]MH_I2C_Read... [16:38:32]Read from MH i2c: 01 07 00 DF 07 00 00 00 00 00 BD 0C B6 [16:38:32]RasterBufferAndPrint [16:38:32]line [16:38:32]line [16:38:32]line [16:38:32]line [16:38:32]line [16:38:32]written 0, free lines is 3268 [16:38:32]process_action close_receipt done [16:38:32]requested_data is exist [16:38:32]produce_requested_data [16:38:32]requested_item fm.sn is exist - process it [16:38:32]wFMCommunicate request_size=4 [16:38:32]MH_SAM_APDU [16:38:32]CAPDU: 80 11 00 00 [16:38:32]Write to MH i2c: E2 08 00 E6 07 80 11 00 00 00 00 00 00 67 [16:38:32]Write i2c OK [16:38:32]MH_I2C_Read... [16:38:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:32]Read from MH i2c: E2 [16:38:32]MH_I2C_Read... [16:38:32]Read from MH i2c: E2 17 00 [16:38:32]MH_I2C_Read... [16:38:32]Read from MH i2c: E2 17 00 E6 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 BE [16:38:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [16:38:32]wFMCommunicate OK [16:38:32]requested_item fd.num is exist - process it [16:38:32]SAM_PROTO_GetFieldsCounters [16:38:32]wFMCommunicate request_size=4 [16:38:32]MH_SAM_APDU [16:38:32]CAPDU: 80 13 00 00 [16:38:32]Write to MH i2c: E2 08 00 E7 07 80 13 00 00 00 00 00 00 6A [16:38:32]Write i2c OK [16:38:32]MH_I2C_Read... [16:38:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:38:32]Read from MH i2c: E2 [16:38:32]MH_I2C_Read... [16:38:32]Read from MH i2c: E2 62 00 [16:38:32]MH_I2C_Read... [16:38:32]Read from MH i2c: E2 62 00 E7 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 C0 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 70 01 00 00 5E 04 04 00 70 01 00 00 57 04 04 00 71 01 00 00 19 04 04 00 00 00 00 00 90 00 38 [16: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 C0 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 70 01 00 00 5E 04 04 00 70 01 00 00 57 04 04 00 71 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:38:32]wFMCommunicate OK [16:38:32]SAM_PROTO_GetFieldsCounters done [16:38:32]requested_item shift.num is exist - process it [16:38:32]requested_item shift.opened is exist - process it [16:38:32]req_shift_opened [16:38:32]FM_GetShiftState [16:38:32]SAM_PROTO_GetShiftState [16:38:32]wFMCommunicate request_size=4 [16:38:32]MH_SAM_APDU [16:38:32]CAPDU: 80 13 01 00 [16:38:32]Write to MH i2c: E2 08 00 E8 07 80 13 01 00 00 00 00 00 6C [16:38:32]Write i2c OK [16:38:32]MH_I2C_Read... [16:38:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:32]Read from MH i2c: E2 [16:38:32]MH_I2C_Read... [16:38:32]Read from MH i2c: E2 0E 00 [16:38:32]MH_I2C_Read... [16:38:32]Read from MH i2c: E2 0E 00 E8 07 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 86 [16:38:32]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [16:38:32]wFMCommunicate OK [16:38:32]SAM_PROTO_GetShiftState done [16:38:32]FM_GetShiftState done [16:38:32]req_shift_opened done [16:38:32]requested_item shift.open_date is exist - process it [16:38:32]req_shift_open_date [16:38:32]req_shift_open_date done [16:38:32]produce_requested_data done [16:38:32]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227520,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [16:38:32]process_action_free close_receipt [16:38:32]json_value_free [16:38:32]json_value_free done [16:38:32]process_json_proto returns [16:38:32]Send response to host [16:38:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227520,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [16:38:32]free response buf [16:38:32]execute_script done [16:38:32]execute_script returns [16:38:32]free content buf [16:38:32]Sock 9.Close socket [16:38:32]Sock 9.Thread stoped [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:55]accept exits with 7 [16:38:55]New connection [16:38:55]New thread 3067362660 created [16:38:55]Thread 3067219300 joined [16:38:55]Waiting for new connection... [16:38:55] Sock 7.Parse request [16:38:55]Sock 7.Check first char [16:38:55]Sock 7.First char is OK [16:38:55]request: POST /json_proto HTTP/1.0 [16:38:55]Method: POST [16:38:55]URL: /json_proto [16:38:55]Method is POST - this is cgi request [16:38:55]url: /json_proto [16:38:55]query_string will be loaded in cgi processing [16:38:55]execute_cgi json_proto POST (null) [16:38:55]execute_cgi path=json_proto method=POST [16:38:55]POST find Content-Length [16:38:55]Host: 172.17.44.195:8080 [16:38:55]Content-Length: 683 [16:38:55]Content-Type: application/json [16:38:55] [16:38:55]POST finish read [16:38:55]Found Content-Length = 683 [16:38:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963146", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:38:55]execute_script... [16:38: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)1963146", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:38:55]POST & json_proto [16:38:55]process_json_proto [16:38:55]json parsed OK: [16:38:55]protocol is kg_v1.0 [16:38:55]action value=close_receipt [16:38:55]process_action close_receipt [16:38:55]cmd_close_receipt [16:38:55]MH_GetDate [16:38:55]Write to MH i2c: F0 00 00 E9 07 DF [16:38:55]Write i2c OK [16:38:55]MH_I2C_Read... [16:38:55]Read from MH i2c: F0 [16:38:55]MH_I2C_Read... [16:38:55]Read from MH i2c: F0 09 00 [16:38:55]MH_I2C_Read... [16:38:55]Read from MH i2c: F0 09 00 E9 07 00 20 32 15 67 82 C9 CF 66 36 [16:38:55]GetLastDocTimeStamp 1729442311 [16:38:55]current date 1729442336 [16:38:55]FM_GetShiftState [16:38:55]SAM_PROTO_GetShiftState [16:38:55]wFMCommunicate request_size=4 [16:38:55]MH_SAM_APDU [16:38:55]CAPDU: 80 13 01 00 [16:38:55]Write to MH i2c: E2 08 00 EA 07 80 13 01 00 00 00 00 00 6E [16:38:55]Write i2c OK [16:38:55]MH_I2C_Read... [16:38:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:55]Read from MH i2c: E2 [16:38:55]MH_I2C_Read... [16:38:55]Read from MH i2c: E2 0E 00 [16:38:55]MH_I2C_Read... [16:38:55]Read from MH i2c: E2 0E 00 EA 07 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 88 [16:38:55]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [16:38:55]wFMCommunicate OK [16:38:55]SAM_PROTO_GetShiftState done [16:38:55]FM_GetShiftState done [16:38:55]opened in 1729383750 [16:38:55]opened+sec_in_day 1729470150 [16:38:55]quantity*price = 100021 [16:38:55]sum+1 = 100023 [16:38:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 369 20.10.2024 16:38 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227521 ФПД: 61884334269583 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T163856&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227521&fm=61884334269583&tin=02508201610067®Number=0000000000091685&sum=100000 [16:38:56]StoreToDocumentArchive [16:38:56]shift 533 fd 227521 [16:38:56]save to /storage/0533/doc_00227521 [16:38:56]save last doc name /storage/0533/doc_00227521 to /storage/kkm_last_doc_name [16:38:56]save OK [16:38:56]Clear old archive folders... [16:38:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:38:56]tlvbuf is 00DA71D0 [16:38:56]SAM_PROTO_ClearQueue [16:38:56]wFMCommunicate request_size=4 [16:38:56]MH_SAM_APDU [16:38:56]CAPDU: 80 09 00 00 [16:38:56]Write to MH i2c: E2 08 00 F7 07 80 09 00 00 00 00 00 00 70 [16:38:56]Write i2c OK [16:38:56]MH_I2C_Read... [16:38:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:38:56]Read from MH i2c: E2 [16:38:56]MH_I2C_Read... [16:38:56]Read from MH i2c: E2 03 00 [16:38:56]MH_I2C_Read... [16:38:56]Read from MH i2c: E2 03 00 F7 07 00 90 00 72 [16:38:56]RAPDU: 90 00 [16:38:56]wFMCommunicate OK [16:38:56]SAM_PROTO_ClearQueue done [16:38:56]KKMCreateOFDPacket [16:38:56]OFDProtocolAddRootSTLVToBuf [16:38:56]FM_MakeSignedData [16:38:56]FM_MakeSignedData [16:38:56]SAM_PROTO_SignData [16:38:56]wFMCommunicate request_size=4 [16:38:56]MH_SAM_APDU [16:38:56]CAPDU: 80 0D 01 02 [16:38:56]Write to MH i2c: E2 08 00 F8 07 80 0D 01 02 00 00 00 00 78 [16:38:56]Write i2c OK [16:38:56]MH_I2C_Read... [16:38:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:38:56]Read from MH i2c: E2 [16:38:56]MH_I2C_Read... [16:38:56]Read from MH i2c: E2 03 00 [16:38:56]MH_I2C_Read... [16:38:56]Read from MH i2c: E2 03 00 F8 07 00 90 00 73 [16:38:56]RAPDU: 90 00 [16:38:56]wFMCommunicate OK [16:38:56]wFMCommunicate request_size=255 [16:38:56]MH_SAM_APDU [16:38: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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 20 32 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C1 78 03 00 35 04 06 00 38 [16:38:56]Write to MH i2c: E2 02 01 F9 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 20 32 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C1 78 03 00 35 04 06 00 38 00 00 F7 [16:38:56]Write i2c OK [16:38:56]MH_I2C_Read... [16:38:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:56]Read from MH i2c: E2 [16:38:56]MH_I2C_Read... [16:38:56]Read from MH i2c: E2 03 00 [16:38:56]MH_I2C_Read... [16:38:56]Read from MH i2c: E2 03 00 F9 07 00 90 00 74 [16:38:56]RAPDU: 90 00 [16:38:56]wFMCommunicate OK [16:38:56]wFMCommunicate request_size=10 [16:38:56]MH_SAM_APDU [16:38:56]CAPDU: 80 0D 02 02 05 48 91 C2 E4 8F [16:38:56]Write to MH i2c: E2 0D 00 FA 07 80 0D 02 02 05 00 48 91 C2 E4 8F 00 00 93 [16:38:56]Write i2c OK [16:38:56]MH_I2C_Read... [16:38:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:56]Read from MH i2c: E2 [16:38:56]MH_I2C_Read... [16:38:56]Read from MH i2c: E2 03 00 [16:38:56]MH_I2C_Read... [16:38:56]Read from MH i2c: E2 03 00 FA 07 00 90 00 75 [16:38:56]RAPDU: 90 00 [16:38:56]wFMCommunicate OK [16:38:56]wFMCommunicate request_size=4 [16:38:56]MH_SAM_APDU [16:38:56]CAPDU: 80 0D 03 02 [16:38:56]Write to MH i2c: E2 08 00 FB 07 80 0D 03 02 00 00 00 00 7D [16:38:56]Write i2c OK [16:38:56]MH_I2C_Read... [16:38:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:38:56]Read from MH i2c: E2 [16:38:56]MH_I2C_Read... [16:38:56]Read from MH i2c: E2 0B 00 [16:38:56]MH_I2C_Read... [16:38:56]Read from MH i2c: E2 0B 00 FB 07 00 B5 CB 8A 58 72 9D C5 2E 90 00 E2 [16:38:56]RAPDU: B5 CB 8A 58 72 9D C5 2E 90 00 [16:38:56]wFMCommunicate OK [16:38:56]SAM_PROTO_SignData done [16:38:56]FM_MakeSignedData done [16:38:56]CreateOFDProtocolMessage [16:38:56]wFMCommunicate request_size=4 [16:38:56]MH_SAM_APDU [16:38:56]CAPDU: 80 11 00 00 [16:38:56]Write to MH i2c: E2 08 00 FC 07 80 11 00 00 00 00 00 00 7D [16:38:56]Write i2c OK [16:38:56]MH_I2C_Read... [16:38:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:56]Read from MH i2c: E2 [16:38:56]MH_I2C_Read... [16:38:56]Read from MH i2c: E2 17 00 [16:38:56]MH_I2C_Read... [16:38:56]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 33 39 90 00 D4 [16:38:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [16:38:56]wFMCommunicate OK [16:38:56]CreateOFDProtocolMessage done [16:38:56]OFDSenderStorePacket 227521 [16:38:56]StoreOFDPacket docnum=227521 [16:38:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 60 AF 07 01 29 A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 20 32 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C1 78 03 00 35 04 06 00 38 48 91 C2 E4 8F B5 CB 8A 58 72 9D C5 2E [16:38:56]CheckFolder [16:38:56]dirname=/storage/ofd_packets [16:38:56]CheckFolder done [16:38:56]ProducePacketName [16:38:56]name=ofd_packets/00227521 [16:38:56]NVStorageSaveData ofd_packets/00227521 [16:38:56]File name is /storage/ofd_packets/00227521 [16:38:56]Write 301 bytes [16:38:56]NVStorageSaveData done [16:38:56]OFDSenderStorePacket done [16:38:56]KKMCreateOFDPacket done [16:38:56]NVStorageSaveData kkm_last_timestamp [16:38:56]File name is /storage/kkm_last_timestamp [16:38:56]Write 4 bytes [16:38:56]NVStorageSaveData done [16:38:56]ExternCall_PrintAddStr [16:38:56]wPrintStart [16:38:56]Write to MH i2c: 01 00 00 FD 07 04 [16:38:56]Write i2c OK [16:38:56]MH_I2C_Read... [16:38:56]Read from MH i2c: 01 [16:38:56]MH_I2C_Read... [16:38:56]Read from MH i2c: 01 07 00 [16:38:56]MH_I2C_Read... [16:38:56]Read from MH i2c: 01 07 00 FD 07 00 00 00 00 00 FF 0F 19 [16:38:56]RasterBufferAndPrint [16:38:56]line Счет N : (1)1963146 [16:38:56]line ИНН: 02508201610067 [16:38:56]line Контрольно-Кассовый Чек [16:38:56]line ПРОДАЖА [16:38:56]line ТРК (МРК, ГНК) : 44 [16:38:56]line Товар: 2710124500 [16:38:56]line Аи-95-К-5 [16:38:56]line 13.480 * 74.20 [16:38:56]line = 1000.22 [16:38:56]line НДС 12% НСП 1% [16:38:56]line > о реализуемом товаре [16:38:56]line ОКРУГЛЕНИЕ: -0.22 [16:38:56]line ИТОГО: 1000.00 [16:38:56]line Внесено: 1000.00 [16:38:56]line СДАЧА: 0.00 [16:38:56]line НСП 1% : 8.85 [16:38:56]line НДС 12% : 106.22 [16:38:56]line Наличными: 1000.00 [16:38:56]line Безнал.: 0.00 [16:38:56]line Место: АЗС № 133 "Партнер Нефть" [16:38:56]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [16:38:56]line СНО: Общий режим [16:38:56]line Чек 369 20.10.2024 16:38 [16:38:56]line Смена: 533 ФФД: 1.0 [16:38:56]line ЗНМ: 0300000091 [16:38:56]line РНМ: 0000000000091685 [16:38:56]line Версия ККМ: 001 [16:38:56]line ФМ: 0000000000871839 [16:38:56]line ФД: 227521 [16:38:56]line ФПД: 61884334269583 [16:38:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T163856&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227521&fm=61884334269583&tin=02508201610067®Number=0000000000091685&sum=100000 [16:38:57]OFD Sender: Processing packet 227521 [packets to send 38, broken 37] [16:38:57]ProducePacketName [16:38:57]name=ofd_packets/00227521 [16:38:57]OFD Sender: To server: pG, [16:38:57]CommunicateWithHost lk.salyk.kg:30040 [16:38:57]ConnectInit lk.salyk.kg [16:38:57]written 0, free lines is 4095 [16:38:57]Connected sock=10 [16:38: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 33 39 0F 01 00 00 60 AF 07 01 29 A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 20 32 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C1 78 03 00 35 04 06 00 38 48 91 C2 E4 8F B5 CB 8A 58 72 9D C5 2E [16:38: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 33 39 4F 00 00 00 8B 3C 47 00 8A FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C1 78 03 00 F4 03 04 00 1E DD 14 67 B6 04 01 00 00 4E 2E F2 D9 F9 CF 87 58 [16:38:57]CommunicateWithHost err = 0 [16:38:57]CheckOFDResponse [16:38:57]1017 (14) - 77093643461234 [16:38:57]1041 (16) - 0000000000871839 [16:38:57]1040 (4) - 227521 [16:38:57]1012 (4) - 20.10.2024 10:36 [16:38:57]1206 (1) - 0 [16:38:57]OFD Sender: Remove packet 227521 [16:38:57]ProducePacketName [16:38:57]name=ofd_packets/00227521 [16:38:57]NVStorageDeleteData [16:38:57]Write to MH i2c: 01 00 00 27 08 2F [16:38:57]Write i2c OK [16:38:57]MH_I2C_Read... [16:38:57]Read from MH i2c: 01 [16:38:57]MH_I2C_Read... [16:38:57]Read from MH i2c: 01 07 00 [16:38:57]MH_I2C_Read... [16:38:57]Read from MH i2c: 01 07 00 27 08 00 00 00 00 00 02 0D 45 [16:38:57]RasterBufferAndPrint [16:38:57]line [16:38:57]line [16:38:57]line [16:38:57]line [16:38:57]line [16:38:57]written 0, free lines is 3336 [16:38:57]process_action close_receipt done [16:38:57]requested_data is exist [16:38:57]produce_requested_data [16:38:57]requested_item fm.sn is exist - process it [16:38:57]wFMCommunicate request_size=4 [16:38:57]MH_SAM_APDU [16:38:57]CAPDU: 80 11 00 00 [16:38:57]Write to MH i2c: E2 08 00 2E 08 80 11 00 00 00 00 00 00 B0 [16:38:57]Write i2c OK [16:38:57]MH_I2C_Read... [16:38:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:57]Read from MH i2c: E2 [16:38:57]MH_I2C_Read... [16:38:57]Read from MH i2c: E2 17 00 [16:38:57]MH_I2C_Read... [16:38:57]Read from MH i2c: E2 17 00 2E 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 07 [16:38:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [16:38:57]wFMCommunicate OK [16:38:57]requested_item fd.num is exist - process it [16:38:57]SAM_PROTO_GetFieldsCounters [16:38:57]wFMCommunicate request_size=4 [16:38:57]MH_SAM_APDU [16:38:57]CAPDU: 80 13 00 00 [16:38:57]Write to MH i2c: E2 08 00 2F 08 80 13 00 00 00 00 00 00 B3 [16:38:57]Write i2c OK [16:38:57]MH_I2C_Read... [16:38:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:38:57]Read from MH i2c: E2 [16:38:57]MH_I2C_Read... [16:38:57]Read from MH i2c: E2 62 00 [16:38:57]MH_I2C_Read... [16:38:57]Read from MH i2c: E2 62 00 2F 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 C1 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 71 01 00 00 5E 04 04 00 71 01 00 00 57 04 04 00 72 01 00 00 19 04 04 00 00 00 00 00 90 00 85 [16:38:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 C1 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 71 01 00 00 5E 04 04 00 71 01 00 00 57 04 04 00 72 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:38:57]wFMCommunicate OK [16:38:57]SAM_PROTO_GetFieldsCounters done [16:38:57]requested_item shift.num is exist - process it [16:38:57]requested_item shift.opened is exist - process it [16:38:57]req_shift_opened [16:38:57]FM_GetShiftState [16:38:57]SAM_PROTO_GetShiftState [16:38:57]wFMCommunicate request_size=4 [16:38:57]MH_SAM_APDU [16:38:57]CAPDU: 80 13 01 00 [16:38:57]Write to MH i2c: E2 08 00 30 08 80 13 01 00 00 00 00 00 B5 [16:38:57]Write i2c OK [16:38:57]MH_I2C_Read... [16:38:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:57]Read from MH i2c: E2 [16:38:57]MH_I2C_Read... [16:38:57]Read from MH i2c: E2 0E 00 [16:38:57]MH_I2C_Read... [16:38:57]Read from MH i2c: E2 0E 00 30 08 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 CF [16:38:57]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [16:38:57]wFMCommunicate OK [16:38:57]SAM_PROTO_GetShiftState done [16:38:57]FM_GetShiftState done [16:38:57]req_shift_opened done [16:38:57]requested_item shift.open_date is exist - process it [16:38:57]req_shift_open_date [16:38:57]req_shift_open_date done [16:38:57]produce_requested_data done [16:38:57]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227521,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [16:38:57]process_action_free close_receipt [16:38:57]json_value_free [16:38:57]json_value_free done [16:38:57]process_json_proto returns [16:38:57]Send response to host [16:38:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227521,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [16:38:57]free response buf [16:38:57]execute_script done [16:38:57]execute_script returns [16:38:57]free content buf [16:38:57]Sock 7.Close socket [16:38:57]Sock 7.Thread stoped [16:38:58]OFD Sender: No OFD packet to send [16:39:03]OFD Sender: No OFD packet to send [16:39:08]OFD Sender: No OFD packet to send [16:39:13]OFD Sender: No OFD packet to send [16:39:18]OFD Sender: No OFD packet to send [16:39:23]OFD Sender: No OFD packet to send [16:39:28]OFD Sender: No OFD packet to send [16:39:33]OFD Sender: No OFD packet to send [16:39:38]OFD Sender: No OFD packet to send [16:39:43]OFD Sender: No OFD packet to send [16:39:48]OFD Sender: No OFD packet to send [16:39:53]OFD Sender: No OFD packet to send [16:39:58]OFD Sender: No OFD packet to send [16:40:03]OFD Sender: No OFD packet to send [16:40:08]OFD Sender: No OFD packet to send [16:40:13]OFD Sender: No OFD packet to send [16:40:18]OFD Sender: No OFD packet to send [16:40:23]OFD Sender: No OFD packet to send [16:40:28]OFD Sender: No OFD packet to send [16:40:33]OFD Sender: No OFD packet to send [16:40:38]OFD Sender: No OFD packet to send [16:40:43]OFD Sender: No OFD packet to send [16:40:48]OFD Sender: No OFD packet to send [16:40:53]OFD Sender: No OFD packet to send [16:40:58]OFD Sender: No OFD packet to send [16:41:03]OFD Sender: No OFD packet to send [16:41:08]OFD Sender: No OFD packet to send [16:41:13]OFD Sender: No OFD packet to send [16:41:18]OFD Sender: No OFD packet to send [16:41:23]OFD Sender: No OFD packet to send [16:41:28]OFD Sender: No OFD packet to send [16:41:33]OFD Sender: No OFD packet to send [16:41:38]OFD Sender: No OFD packet to send [16:41:43]OFD Sender: No OFD packet to send [16:41:48]OFD Sender: No OFD packet to send [16:41:53]OFD Sender: No OFD packet to send [16:41:58]OFD Sender: No OFD packet to send [16:42:03]OFD Sender: No OFD packet to send [16:42:08]OFD Sender: No OFD packet to send [16:42:13]OFD Sender: No OFD packet to send [16:42:18]OFD Sender: No OFD packet to send [16:42:23]OFD Sender: No OFD packet to send [16:42:28]OFD Sender: No OFD packet to send [16:42:33]OFD Sender: No OFD packet to send [16:42:38]OFD Sender: No OFD packet to send [16:42:43]OFD Sender: No OFD packet to send [16:42:48]OFD Sender: No OFD packet to send [16:42:53]OFD Sender: No OFD packet to send [16:42:58]OFD Sender: No OFD packet to send [16:43:02]accept exits with 9 [16:43:02]New connection [16:43:02]New thread 3067219300 created [16:43:02]Thread 3067362660 joined [16:43:02]Waiting for new connection... [16:43:02] Sock 9.Parse request [16:43:02]Sock 9.Check first char [16:43:02]Sock 9.First char is OK [16:43:02]request: POST /json_proto HTTP/1.0 [16:43:02]Method: POST [16:43:02]URL: /json_proto [16:43:02]Method is POST - this is cgi request [16:43:02]url: /json_proto [16:43:02]query_string will be loaded in cgi processing [16:43:02]execute_cgi json_proto POST (null) [16:43:02]execute_cgi path=json_proto method=POST [16:43:02]POST find Content-Length [16:43:02]Host: 172.17.44.195:8080 [16:43:02]Content-Length: 767 [16:43:02]Content-Type: application/json [16:43:02] [16:43:02]POST finish read [16:43:02]Found Content-Length = 767 [16:43:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963147", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:43:02]execute_script... [16:43: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)1963147", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:43:02]POST & json_proto [16:43:02]process_json_proto [16:43:02]json parsed OK: [16:43:02]protocol is kg_v1.0 [16:43:02]action value=close_receipt [16:43:02]process_action close_receipt [16:43:02]cmd_close_receipt [16:43:02]MH_GetDate [16:43:02]Write to MH i2c: F0 00 00 31 08 28 [16:43:02]Write i2c OK [16:43:02]MH_I2C_Read... [16:43:02]Read from MH i2c: F0 [16:43:02]MH_I2C_Read... [16:43:02]Read from MH i2c: F0 09 00 [16:43:02]MH_I2C_Read... [16:43:02]Read from MH i2c: F0 09 00 31 08 00 18 33 15 67 82 C9 CF 66 78 [16:43:02]GetLastDocTimeStamp 1729442336 [16:43:02]current date 1729442584 [16:43:02]FM_GetShiftState [16:43:02]SAM_PROTO_GetShiftState [16:43:02]wFMCommunicate request_size=4 [16:43:02]MH_SAM_APDU [16:43:02]CAPDU: 80 13 01 00 [16:43:02]Write to MH i2c: E2 08 00 32 08 80 13 01 00 00 00 00 00 B7 [16:43:02]Write i2c OK [16:43:02]MH_I2C_Read... [16:43:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:43:02]Read from MH i2c: E2 [16:43:02]MH_I2C_Read... [16:43:02]Read from MH i2c: E2 0E 00 [16:43:02]MH_I2C_Read... [16:43:02]Read from MH i2c: E2 0E 00 32 08 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 D1 [16:43:02]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [16:43:02]wFMCommunicate OK [16:43:02]SAM_PROTO_GetShiftState done [16:43:02]FM_GetShiftState done [16:43:02]opened in 1729383750 [16:43:02]opened+sec_in_day 1729470150 [16:43:02]quantity*price = 50041 [16:43:02]sum+1 = 50042 [16:43:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 370 20.10.2024 16:43 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 227522 ФПД: 1456887978832 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T164304&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227522&fm=1456887978832&tin=02508201610067®Number=0000000000091685&sum=50041 [16:43:03]StoreToDocumentArchive [16:43:03]shift 533 fd 227522 [16:43:03]save to /storage/0533/doc_00227522 [16:43:03]save last doc name /storage/0533/doc_00227522 to /storage/kkm_last_doc_name [16:43:03]save OK [16:43:03]Clear old archive folders... [16:43:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:43:04]tlvbuf is 00D80990 [16:43:04]SAM_PROTO_ClearQueue [16:43:04]wFMCommunicate request_size=4 [16:43:04]MH_SAM_APDU [16:43:04]CAPDU: 80 09 00 00 [16:43:04]Write to MH i2c: E2 08 00 3F 08 80 09 00 00 00 00 00 00 B9 [16:43:04]Write i2c OK [16:43:04]MH_I2C_Read... [16:43:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:43:04]Read from MH i2c: E2 [16:43:04]MH_I2C_Read... [16:43:04]Read from MH i2c: E2 03 00 [16:43:04]MH_I2C_Read... [16:43:04]Read from MH i2c: E2 03 00 3F 08 00 90 00 BB [16:43:04]RAPDU: 90 00 [16:43:04]wFMCommunicate OK [16:43:04]SAM_PROTO_ClearQueue done [16:43:04]KKMCreateOFDPacket [16:43:04]OFDProtocolAddRootSTLVToBuf [16:43:04]FM_MakeSignedData [16:43:04]FM_MakeSignedData [16:43:04]SAM_PROTO_SignData [16:43:04]wFMCommunicate request_size=4 [16:43:04]MH_SAM_APDU [16:43:04]CAPDU: 80 0D 01 02 [16:43:04]Write to MH i2c: E2 08 00 40 08 80 0D 01 02 00 00 00 00 C1 [16:43:04]Write i2c OK [16:43:04]MH_I2C_Read... [16:43:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:43:04]Read from MH i2c: E2 [16:43:04]MH_I2C_Read... [16:43:04]Read from MH i2c: E2 03 00 [16:43:04]MH_I2C_Read... [16:43:04]Read from MH i2c: E2 03 00 40 08 00 90 00 BC [16:43:04]RAPDU: 90 00 [16:43:04]wFMCommunicate OK [16:43:04]wFMCommunicate request_size=255 [16:43:04]MH_SAM_APDU [16:43:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 01 00 00 F4 03 04 00 18 33 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C2 78 03 00 35 04 06 00 01 [16:43:04]Write to MH i2c: E2 02 01 41 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 01 00 00 F4 03 04 00 18 33 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C2 78 03 00 35 04 06 00 01 00 00 39 [16:43:04]Write i2c OK [16:43:04]MH_I2C_Read... [16:43:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:43:04]Read from MH i2c: E2 [16:43:04]MH_I2C_Read... [16:43:04]Read from MH i2c: E2 03 00 [16:43:04]MH_I2C_Read... [16:43:04]Read from MH i2c: E2 03 00 41 08 00 90 00 BD [16:43:04]RAPDU: 90 00 [16:43:04]wFMCommunicate OK [16:43:04]wFMCommunicate request_size=10 [16:43:04]MH_SAM_APDU [16:43:04]CAPDU: 80 0D 02 02 05 53 35 4A 5B 50 [16:43:04]Write to MH i2c: E2 0D 00 42 08 80 0D 02 02 05 00 53 35 4A 5B 50 00 00 4B [16:43:04]Write i2c OK [16:43:04]MH_I2C_Read... [16:43:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:43:04]Read from MH i2c: E2 [16:43:04]MH_I2C_Read... [16:43:04]Read from MH i2c: E2 03 00 [16:43:04]MH_I2C_Read... [16:43:04]Read from MH i2c: E2 03 00 42 08 00 90 00 BE [16:43:04]RAPDU: 90 00 [16:43:04]wFMCommunicate OK [16:43:04]wFMCommunicate request_size=4 [16:43:04]MH_SAM_APDU [16:43:04]CAPDU: 80 0D 03 02 [16:43:04]Write to MH i2c: E2 08 00 43 08 80 0D 03 02 00 00 00 00 C6 [16:43:04]Write i2c OK [16:43:04]MH_I2C_Read... [16:43:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:43:04]Read from MH i2c: E2 [16:43:04]MH_I2C_Read... [16:43:04]Read from MH i2c: E2 0B 00 [16:43:04]MH_I2C_Read... [16:43:04]Read from MH i2c: E2 0B 00 43 08 00 B9 87 78 91 9C 63 64 B4 90 00 27 [16:43:04]RAPDU: B9 87 78 91 9C 63 64 B4 90 00 [16:43:04]wFMCommunicate OK [16:43:04]SAM_PROTO_SignData done [16:43:04]FM_MakeSignedData done [16:43:04]CreateOFDProtocolMessage [16:43:04]wFMCommunicate request_size=4 [16:43:04]MH_SAM_APDU [16:43:04]CAPDU: 80 11 00 00 [16:43:04]Write to MH i2c: E2 08 00 44 08 80 11 00 00 00 00 00 00 C6 [16:43:04]Write i2c OK [16:43:04]MH_I2C_Read... [16:43:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:43:04]Read from MH i2c: E2 [16:43:04]MH_I2C_Read... [16:43:04]Read from MH i2c: E2 17 00 [16:43:04]MH_I2C_Read... [16:43:04]Read from MH i2c: E2 17 00 44 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 1D [16:43:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [16:43:04]wFMCommunicate OK [16:43:04]CreateOFDProtocolMessage done [16:43:04]OFDSenderStorePacket 227522 [16:43:04]StoreOFDPacket docnum=227522 [16:43:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 EC 6E 07 01 6A 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 01 00 00 F4 03 04 00 18 33 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C2 78 03 00 35 04 06 00 01 53 35 4A 5B 50 B9 87 78 91 9C 63 64 B4 [16:43:04]CheckFolder [16:43:04]dirname=/storage/ofd_packets [16:43:04]CheckFolder done [16:43:04]ProducePacketName [16:43:04]name=ofd_packets/00227522 [16:43:04]NVStorageSaveData ofd_packets/00227522 [16:43:04]File name is /storage/ofd_packets/00227522 [16:43:04]Write 301 bytes [16:43:04]NVStorageSaveData done [16:43:04]OFDSenderStorePacket done [16:43:04]KKMCreateOFDPacket done [16:43:04]NVStorageSaveData kkm_last_timestamp [16:43:04]File name is /storage/kkm_last_timestamp [16:43:04]Write 4 bytes [16:43:04]NVStorageSaveData done [16:43:04]ExternCall_PrintAddStr [16:43:04]wPrintStart [16:43:04]Write to MH i2c: 01 00 00 45 08 4D [16:43:04]OFD Sender: Processing packet 227522 [packets to send 38, broken 37] [16:43:04]ProducePacketName [16:43:04]name=ofd_packets/00227522 [16:43:04]OFD Sender: To server: pG, [16:43:04]CommunicateWithHost lk.salyk.kg:30040 [16:43:04]ConnectInit lk.salyk.kg [16:43:04]Write i2c OK [16:43:04]MH_I2C_Read... [16:43:04]Read from MH i2c: 01 [16:43:04]MH_I2C_Read... [16:43:04]Read from MH i2c: 01 07 00 [16:43:04]MH_I2C_Read... [16:43:04]Read from MH i2c: 01 07 00 45 08 00 00 00 00 00 FF 0F 62 [16:43:04]RasterBufferAndPrint [16:43:04]line Счет N : (1)1963147 [16:43:04]line ИНН: 02508201610067 [16:43:04]line Контрольно-Кассовый Чек [16:43:04]line ПРОДАЖА [16:43:04]line ТРК (МРК, ГНК) : 33 [16:43:04]line Товар: 2710124130 [16:43:04]line Аи-92-К-5 [16:43:04]line 7.480 * 66.90 [16:43:04]line = 500.41 [16:43:04]line НДС 12% НСП 1% [16:43:04]line > о реализуемом товаре [16:43:04]line ИТОГО: 500.41 [16:43:04]line НСП 1% : 4.43 [16:43:04]line НДС 12% : 53.14 [16:43:04]line Наличными: 0.00 [16:43:04]line Безнал.: 500.41 [16:43:04]line Место: АЗС № 133 "Партнер Нефть" [16:43:04]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [16:43:04]line СНО: Общий режим [16:43:04]line Чек 370 20.10.2024 16:43 [16:43:04]line Смена: 533 ФФД: 1.0 [16:43:04]line ЗНМ: 0300000091 [16:43:04]line РНМ: 0000000000091685 [16:43:04]line Версия ККМ: 001 [16:43:04]line Платежная система: Mbank [16:43:04]line ФМ: 0000000000871839 [16:43:04]line ФД: 227522 [16:43:04]line ФПД: 1456887978832 [16:43:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T164304&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227522&fm=1456887978832&tin=02508201610067®Number=0000000000091685&sum=50041 [16:43:04]Connected sock=10 [16:43: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 33 39 0F 01 00 00 EC 6E 07 01 6A 4A 5A 03 01 00 03 00 written 0, free lines is 4095 [16:43:04]FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 01 00 00 F4 03 04 00 18 33 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C2 78 03 00 35 04 06 00 01 53 35 4A 5B 50 B9 87 78 91 9C 63 64 B4 [16:43: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 33 39 4F 00 00 00 86 DA 47 00 68 AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C2 78 03 00 F4 03 04 00 16 DE 14 67 B6 04 01 00 00 36 2A FD B8 A3 D4 B0 00 [16:43:05]CommunicateWithHost err = 0 [16:43:05]CheckOFDResponse [16:43:05]1017 (14) - 77093643461234 [16:43:05]1041 (16) - 0000000000871839 [16:43:05]1040 (4) - 227522 [16:43:05]1012 (4) - 20.10.2024 10:40 [16:43:05]1206 (1) - 0 [16:43:05]OFD Sender: Remove packet 227522 [16:43:05]ProducePacketName [16:43:05]name=ofd_packets/00227522 [16:43:05]NVStorageDeleteData [16:43:05]Write to MH i2c: 01 00 00 6D 08 75 [16:43:05]Write i2c OK [16:43:05]MH_I2C_Read... [16:43:05]Read from MH i2c: 01 [16:43:05]MH_I2C_Read... [16:43:05]Read from MH i2c: 01 07 00 [16:43:05]MH_I2C_Read... [16:43:05]Read from MH i2c: 01 07 00 6D 08 00 00 00 00 00 21 0D AA [16:43:05]RasterBufferAndPrint [16:43:05]line [16:43:05]line [16:43:05]line [16:43:05]line [16:43:05]line [16:43:05]written 0, free lines is 3367 [16:43:05]process_action close_receipt done [16:43:05]requested_data is exist [16:43:05]produce_requested_data [16:43:05]requested_item fm.sn is exist - process it [16:43:05]wFMCommunicate request_size=4 [16:43:05]MH_SAM_APDU [16:43:05]CAPDU: 80 11 00 00 [16:43:05]Write to MH i2c: E2 08 00 74 08 80 11 00 00 00 00 00 00 F6 [16:43:05]Write i2c OK [16:43:05]MH_I2C_Read... [16:43:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:43:05]Read from MH i2c: E2 [16:43:05]MH_I2C_Read... [16:43:05]Read from MH i2c: E2 17 00 [16:43:05]MH_I2C_Read... [16:43:05]Read from MH i2c: E2 17 00 74 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 4D [16:43:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [16:43:05]wFMCommunicate OK [16:43:05]requested_item fd.num is exist - process it [16:43:05]SAM_PROTO_GetFieldsCounters [16:43:05]wFMCommunicate request_size=4 [16:43:05]MH_SAM_APDU [16:43:05]CAPDU: 80 13 00 00 [16:43:05]Write to MH i2c: E2 08 00 75 08 80 13 00 00 00 00 00 00 F9 [16:43:05]Write i2c OK [16:43:05]MH_I2C_Read... [16:43:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:43:05]Read from MH i2c: E2 [16:43:05]MH_I2C_Read... [16:43:05]Read from MH i2c: E2 62 00 [16:43:05]MH_I2C_Read... [16:43:05]Read from MH i2c: E2 62 00 75 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 C2 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 72 01 00 00 5E 04 04 00 72 01 00 00 57 04 04 00 73 01 00 00 19 04 04 00 00 00 00 00 90 00 CF [16:43: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 C2 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 72 01 00 00 5E 04 04 00 72 01 00 00 57 04 04 00 73 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:43:05]wFMCommunicate OK [16:43:05]SAM_PROTO_GetFieldsCounters done [16:43:05]requested_item shift.num is exist - process it [16:43:05]requested_item shift.opened is exist - process it [16:43:05]req_shift_opened [16:43:05]FM_GetShiftState [16:43:05]SAM_PROTO_GetShiftState [16:43:05]wFMCommunicate request_size=4 [16:43:05]MH_SAM_APDU [16:43:05]CAPDU: 80 13 01 00 [16:43:05]Write to MH i2c: E2 08 00 76 08 80 13 01 00 00 00 00 00 FB [16:43:05]Write i2c OK [16:43:05]MH_I2C_Read... [16:43:05]OFD Sender: No OFD packet to send [16:43:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:43:05]Read from MH i2c: E2 [16:43:05]MH_I2C_Read... [16:43:05]Read from MH i2c: E2 0E 00 [16:43:05]MH_I2C_Read... [16:43:05]Read from MH i2c: E2 0E 00 76 08 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 15 [16:43:05]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [16:43:05]wFMCommunicate OK [16:43:05]SAM_PROTO_GetShiftState done [16:43:05]FM_GetShiftState done [16:43:05]req_shift_opened done [16:43:05]requested_item shift.open_date is exist - process it [16:43:05]req_shift_open_date [16:43:05]req_shift_open_date done [16:43:05]produce_requested_data done [16:43:05]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227522,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [16:43:05]process_action_free close_receipt [16:43:05]json_value_free [16:43:05]json_value_free done [16:43:05]process_json_proto returns [16:43:05]Send response to host [16:43:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227522,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [16:43:05]free response buf [16:43:05]execute_script done [16:43:05]execute_script returns [16:43:05]free content buf [16:43:05]Sock 9.Close socket [16:43:05]Sock 9.Thread stoped [16:43:07]accept exits with 7 [16:43:07]New connection [16:43:07]New thread 3067362660 created [16:43:07]Thread 3067219300 joined [16:43:07]Waiting for new connection... [16:43:07] Sock 7.Parse request [16:43:07]Sock 7.Check first char [16:43:07]Sock 7.First char is OK [16:43:07]request: POST /json_proto HTTP/1.0 [16:43:07]Method: POST [16:43:07]URL: /json_proto [16:43:07]Method is POST - this is cgi request [16:43:07]url: /json_proto [16:43:07]query_string will be loaded in cgi processing [16:43:07]execute_cgi json_proto POST (null) [16:43:07]execute_cgi path=json_proto method=POST [16:43:07]POST find Content-Length [16:43:07]Host: 172.17.44.195:8080 [16:43:07]Content-Length: 678 [16:43:07]Content-Type: application/json [16:43:07] [16:43:07]POST finish read [16:43:07]Found Content-Length = 678 [16:43:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963149", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:43:07]execute_script... [16:43:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963149", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:43:07]POST & json_proto [16:43:07]process_json_proto [16:43:07]json parsed OK: [16:43:07]protocol is kg_v1.0 [16:43:07]action value=close_receipt [16:43:07]process_action close_receipt [16:43:07]cmd_close_receipt [16:43:07]MH_GetDate [16:43:07]Write to MH i2c: F0 00 00 77 08 6E [16:43:07]Write i2c OK [16:43:07]MH_I2C_Read... [16:43:07]Read from MH i2c: F0 [16:43:07]MH_I2C_Read... [16:43:07]Read from MH i2c: F0 09 00 [16:43:07]MH_I2C_Read... [16:43:07]Read from MH i2c: F0 09 00 77 08 00 1C 33 15 67 82 C9 CF 66 C2 [16:43:07]GetLastDocTimeStamp 1729442584 [16:43:07]current date 1729442588 [16:43:07]FM_GetShiftState [16:43:07]SAM_PROTO_GetShiftState [16:43:07]wFMCommunicate request_size=4 [16:43:07]MH_SAM_APDU [16:43:07]CAPDU: 80 13 01 00 [16:43:07]Write to MH i2c: E2 08 00 78 08 80 13 01 00 00 00 00 00 FD [16:43:07]Write i2c OK [16:43:07]MH_I2C_Read... [16:43:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:43:07]Read from MH i2c: E2 [16:43:07]MH_I2C_Read... [16:43:07]Read from MH i2c: E2 0E 00 [16:43:07]MH_I2C_Read... [16:43:07]Read from MH i2c: E2 0E 00 78 08 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 17 [16:43:07]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [16:43:07]wFMCommunicate OK [16:43:07]SAM_PROTO_GetShiftState done [16:43:07]FM_GetShiftState done [16:43:07]opened in 1729383750 [16:43:07]opened+sec_in_day 1729470150 [16:43:07]quantity*price = 50041 [16:43:07]sum+1 = 50042 [16:43:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 371 20.10.2024 16:43 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227523 ФПД: 176793545945077 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T164308&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227523&fm=176793545945077&tin=02508201610067®Number=0000000000091685&sum=50000 [16:43:08]StoreToDocumentArchive [16:43:08]shift 533 fd 227523 [16:43:08]save to /storage/0533/doc_00227523 [16:43:08]save last doc name /storage/0533/doc_00227523 to /storage/kkm_last_doc_name [16:43:08]save OK [16:43:08]Clear old archive folders... [16:43:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:43:08]tlvbuf is 00D94DE0 [16:43:08]SAM_PROTO_ClearQueue [16:43:08]wFMCommunicate request_size=4 [16:43:08]MH_SAM_APDU [16:43:08]CAPDU: 80 09 00 00 [16:43:08]Write to MH i2c: E2 08 00 85 08 80 09 00 00 00 00 00 00 FF [16:43:08]Write i2c OK [16:43:08]MH_I2C_Read... [16:43:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:43:08]Read from MH i2c: E2 [16:43:08]MH_I2C_Read... [16:43:08]Read from MH i2c: E2 03 00 [16:43:08]MH_I2C_Read... [16:43:08]Read from MH i2c: E2 03 00 85 08 00 90 00 01 [16:43:08]RAPDU: 90 00 [16:43:08]wFMCommunicate OK [16:43:08]SAM_PROTO_ClearQueue done [16:43:08]KKMCreateOFDPacket [16:43:08]OFDProtocolAddRootSTLVToBuf [16:43:08]FM_MakeSignedData [16:43:08]FM_MakeSignedData [16:43:08]SAM_PROTO_SignData [16:43:08]wFMCommunicate request_size=4 [16:43:08]MH_SAM_APDU [16:43:08]CAPDU: 80 0D 01 02 [16:43:08]Write to MH i2c: E2 08 00 86 08 80 0D 01 02 00 00 00 00 07 [16:43:08]Write i2c OK [16:43:08]MH_I2C_Read... [16:43:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:43:08]Read from MH i2c: E2 [16:43:08]MH_I2C_Read... [16:43:08]Read from MH i2c: E2 03 00 [16:43:08]MH_I2C_Read... [16:43:08]Read from MH i2c: E2 03 00 86 08 00 90 00 02 [16:43:08]RAPDU: 90 00 [16:43:08]wFMCommunicate OK [16:43:08]wFMCommunicate request_size=255 [16:43:08]MH_SAM_APDU [16:43:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 01 00 00 F4 03 04 00 1C 33 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C3 78 03 00 35 04 06 00 A0 [16:43:08]Write to MH i2c: E2 02 01 87 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 01 00 00 F4 03 04 00 1C 33 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C3 78 03 00 35 04 06 00 A0 00 00 D2 [16:43:08]Write i2c OK [16:43:08]MH_I2C_Read... [16:43:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:43:09]Read from MH i2c: E2 [16:43:09]MH_I2C_Read... [16:43:09]Read from MH i2c: E2 03 00 [16:43:09]MH_I2C_Read... [16:43:09]Read from MH i2c: E2 03 00 87 08 00 90 00 03 [16:43:09]RAPDU: 90 00 [16:43:09]wFMCommunicate OK [16:43:09]wFMCommunicate request_size=10 [16:43:09]MH_SAM_APDU [16:43:09]CAPDU: 80 0D 02 02 05 CA F4 81 2F F5 [16:43:09]Write to MH i2c: E2 0D 00 88 08 80 0D 02 02 05 00 CA F4 81 2F F5 00 00 77 [16:43:09]Write i2c OK [16:43:09]MH_I2C_Read... [16:43:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:43:09]Read from MH i2c: E2 [16:43:09]MH_I2C_Read... [16:43:09]Read from MH i2c: E2 03 00 [16:43:09]MH_I2C_Read... [16:43:09]Read from MH i2c: E2 03 00 88 08 00 90 00 04 [16:43:09]RAPDU: 90 00 [16:43:09]wFMCommunicate OK [16:43:09]wFMCommunicate request_size=4 [16:43:09]MH_SAM_APDU [16:43:09]CAPDU: 80 0D 03 02 [16:43:09]Write to MH i2c: E2 08 00 89 08 80 0D 03 02 00 00 00 00 0C [16:43:09]Write i2c OK [16:43:09]MH_I2C_Read... [16:43:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:43:09]Read from MH i2c: E2 [16:43:09]MH_I2C_Read... [16:43:09]Read from MH i2c: E2 0B 00 [16:43:09]MH_I2C_Read... [16:43:09]Read from MH i2c: E2 0B 00 89 08 00 83 F2 CD D1 BF 8B 91 03 90 00 FE [16:43:09]RAPDU: 83 F2 CD D1 BF 8B 91 03 90 00 [16:43:09]wFMCommunicate OK [16:43:09]SAM_PROTO_SignData done [16:43:09]FM_MakeSignedData done [16:43:09]CreateOFDProtocolMessage [16:43:09]wFMCommunicate request_size=4 [16:43:09]MH_SAM_APDU [16:43:09]CAPDU: 80 11 00 00 [16:43:09]Write to MH i2c: E2 08 00 8A 08 80 11 00 00 00 00 00 00 0C [16:43:09]Write i2c OK [16:43:09]MH_I2C_Read... [16:43:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:43:09]Read from MH i2c: E2 [16:43:09]MH_I2C_Read... [16:43:09]Read from MH i2c: E2 17 00 [16:43:09]MH_I2C_Read... [16:43:09]Read from MH i2c: E2 17 00 8A 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 63 [16:43:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [16:43:09]wFMCommunicate OK [16:43:09]CreateOFDProtocolMessage done [16:43:09]OFDSenderStorePacket 227523 [16:43:09]StoreOFDPacket docnum=227523 [16:43:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 0C 2E 07 01 AF 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 01 00 00 F4 03 04 00 1C 33 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C3 78 03 00 35 04 06 00 A0 CA F4 81 2F F5 83 F2 CD D1 BF 8B 91 03 [16:43:09]CheckFolder [16:43:09]dirname=/storage/ofd_packets [16:43:09]CheckFolder done [16:43:09]ProducePacketName [16:43:09]name=ofd_packets/00227523 [16:43:09]NVStorageSaveData ofd_packets/00227523 [16:43:09]File name is /storage/ofd_packets/00227523 [16:43:09]Write 301 bytes [16:43:09]NVStorageSaveData done [16:43:09]OFDSenderStorePacket done [16:43:09]KKMCreateOFDPacket done [16:43:09]NVStorageSaveData kkm_last_timestamp [16:43:09]File name is /storage/kkm_last_timestamp [16:43:09]Write 4 bytes [16:43:09]NVStorageSaveData done [16:43:09]ExternCall_PrintAddStr [16:43:09]wPrintStart [16:43:09]Write to MH i2c: 01 00 00 8B 08 93 [16:43:09]Write i2c OK [16:43:09]MH_I2C_Read... [16:43:09]Read from MH i2c: 01 [16:43:09]MH_I2C_Read... [16:43:09]Read from MH i2c: 01 07 00 [16:43:09]MH_I2C_Read... [16:43:09]Read from MH i2c: 01 07 00 8B 08 00 00 00 00 00 FF 0F A8 [16:43:09]RasterBufferAndPrint [16:43:09]line Счет N : (1)1963149 [16:43:09]line ИНН: 02508201610067 [16:43:09]line Контрольно-Кассовый Чек [16:43:09]line ПРОДАЖА [16:43:09]line ТРК (МРК, ГНК) : 53 [16:43:09]line Товар: 2710124130 [16:43:09]line Аи-92-К-5 [16:43:09]line 7.480 * 66.90 [16:43:09]line = 500.41 [16:43:09]line НДС 12% НСП 1% [16:43:09]line > о реализуемом товаре [16:43:09]line ОКРУГЛЕНИЕ: -0.41 [16:43:09]line ИТОГО: 500.00 [16:43:09]line Внесено: 500.00 [16:43:09]line СДАЧА: 0.00 [16:43:09]line НСП 1% : 4.43 [16:43:09]line НДС 12% : 53.14 [16:43:09]line Наличными: 500.00 [16:43:09]line Безнал.: 0.00 [16:43:09]line Место: АЗС № 133 "Партнер Нефть" [16:43:09]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [16:43:09]line СНО: Общий режим [16:43:09]line Чек 371 20.10.2024 16:43 [16:43:09]line Смена: 533 ФФД: 1.0 [16:43:09]line ЗНМ: 0300000091 [16:43:09]line РНМ: 0000000000091685 [16:43:09]line Версия ККМ: 001 [16:43:09]line ФМ: 0000000000871839 [16:43:09]line ФД: 227523 [16:43:09]line ФПД: 176793545945077 [16:43:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T164308&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227523&fm=176793545945077&tin=02508201610067®Number=0000000000091685&sum=50000 [16:43:09]written 0, free lines is 4095 [16:43:09]OFD Sender: Processing packet 227523 [packets to send 38, broken 37] [16:43:09]ProducePacketName [16:43:09]name=ofd_packets/00227523 [16:43:09]OFD Sender: To server: pG, [16:43:09]CommunicateWithHost lk.salyk.kg:30040 [16:43:09]ConnectInit lk.salyk.kg [16:43:09]Connected sock=10 [16:43:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 0C 2E 07 01 AF 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 01 00 00 F4 03 04 00 1C 33 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C3 78 03 00 35 04 06 00 A0 CA F4 81 2F F5 83 F2 CD D1 BF 8B 91 03 [16:43: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 33 39 4F 00 00 00 D5 58 47 00 A8 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 33 39 10 04 04 00 C3 78 03 00 F4 03 04 00 1A DE 14 67 B6 04 01 00 00 5C E1 79 10 19 E0 DB BE [16:43:09]CommunicateWithHost err = 0 [16:43:09]CheckOFDResponse [16:43:09]1017 (14) - 77093643461234 [16:43:09]1041 (16) - 0000000000871839 [16:43:09]1040 (4) - 227523 [16:43:09]1012 (4) - 20.10.2024 10:40 [16:43:09]1206 (1) - 0 [16:43:09]OFD Sender: Remove packet 227523 [16:43:09]ProducePacketName [16:43:09]name=ofd_packets/00227523 [16:43:09]NVStorageDeleteData [16:43:09]Write to MH i2c: 01 00 00 B5 08 BD [16:43:09]Write i2c OK [16:43:09]MH_I2C_Read... [16:43:09]Read from MH i2c: 01 [16:43:09]MH_I2C_Read... [16:43:09]Read from MH i2c: 01 07 00 [16:43:09]MH_I2C_Read... [16:43:09]Read from MH i2c: 01 07 00 B5 08 00 00 00 00 00 05 0D D6 [16:43:09]RasterBufferAndPrint [16:43:09]line [16:43:09]line [16:43:09]line [16:43:09]line [16:43:09]line [16:43:09]written 0, free lines is 3348 [16:43:09]process_action close_receipt done [16:43:09]requested_data is exist [16:43:09]produce_requested_data [16:43:09]requested_item fm.sn is exist - process it [16:43:09]wFMCommunicate request_size=4 [16:43:09]MH_SAM_APDU [16:43:09]CAPDU: 80 11 00 00 [16:43:09]Write to MH i2c: E2 08 00 BC 08 80 11 00 00 00 00 00 00 3E [16:43:09]Write i2c OK [16:43:09]MH_I2C_Read... [16:43:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:43:09]Read from MH i2c: E2 [16:43:09]MH_I2C_Read... [16:43:09]Read from MH i2c: E2 17 00 [16:43:09]MH_I2C_Read... [16:43:09]Read from MH i2c: E2 17 00 BC 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 95 [16:43:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [16:43:09]wFMCommunicate OK [16:43:09]requested_item fd.num is exist - process it [16:43:09]SAM_PROTO_GetFieldsCounters [16:43:09]wFMCommunicate request_size=4 [16:43:09]MH_SAM_APDU [16:43:09]CAPDU: 80 13 00 00 [16:43:09]Write to MH i2c: E2 08 00 BD 08 80 13 00 00 00 00 00 00 41 [16:43:09]Write i2c OK [16:43:09]MH_I2C_Read... [16:43:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:43:09]Read from MH i2c: E2 [16:43:09]MH_I2C_Read... [16:43:09]Read from MH i2c: E2 62 00 [16:43:09]MH_I2C_Read... [16:43:09]Read from MH i2c: E2 62 00 BD 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 C3 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 73 01 00 00 5E 04 04 00 73 01 00 00 57 04 04 00 74 01 00 00 19 04 04 00 00 00 00 00 90 00 1B [16:43: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 C3 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 73 01 00 00 5E 04 04 00 73 01 00 00 57 04 04 00 74 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:43:09]wFMCommunicate OK [16:43:09]SAM_PROTO_GetFieldsCounters done [16:43:09]requested_item shift.num is exist - process it [16:43:09]requested_item shift.opened is exist - process it [16:43:09]req_shift_opened [16:43:09]FM_GetShiftState [16:43:09]SAM_PROTO_GetShiftState [16:43:09]wFMCommunicate request_size=4 [16:43:09]MH_SAM_APDU [16:43:09]CAPDU: 80 13 01 00 [16:43:09]Write to MH i2c: E2 08 00 BE 08 80 13 01 00 00 00 00 00 43 [16:43:09]Write i2c OK [16:43:09]MH_I2C_Read... [16:43:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:43:09]Read from MH i2c: E2 [16:43:09]MH_I2C_Read... [16:43:09]Read from MH i2c: E2 0E 00 [16:43:09]MH_I2C_Read... [16:43:09]Read from MH i2c: E2 0E 00 BE 08 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 5D [16:43:09]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [16:43:09]wFMCommunicate OK [16:43:09]SAM_PROTO_GetShiftState done [16:43:09]FM_GetShiftState done [16:43:09]req_shift_opened done [16:43:09]requested_item shift.open_date is exist - process it [16:43:09]req_shift_open_date [16:43:09]req_shift_open_date done [16:43:09]produce_requested_data done [16:43:09]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227523,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [16:43:09]process_action_free close_receipt [16:43:09]json_value_free [16:43:09]json_value_free done [16:43:09]process_json_proto returns [16:43:09]Send response to host [16:43:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227523,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [16:43:09]free response buf [16:43:10]execute_script done [16:43:10]execute_script returns [16:43:10]free content buf [16:43:10]Sock 7.Close socket [16:43:10]Sock 7.Thread stoped [16:43:10]OFD Sender: No OFD packet to send [16:43:15]OFD Sender: No OFD packet to send [16:43:20]OFD Sender: No OFD packet to send [16:43:25]OFD Sender: No OFD packet to send [16:43:30]OFD Sender: No OFD packet to send [16:43:35]OFD Sender: No OFD packet to send [16:43:40]OFD Sender: No OFD packet to send [16:43:45]OFD Sender: No OFD packet to send [16:43:50]OFD Sender: No OFD packet to send [16:43:55]OFD Sender: No OFD packet to send [16:44:00]OFD Sender: No OFD packet to send [16:44:05]OFD Sender: No OFD packet to send [16:44:10]OFD Sender: No OFD packet to send [16:44:15]OFD Sender: No OFD packet to send [16:44:17]accept exits with 9 [16:44:17]New connection [16:44:17]New thread 3067219300 created [16:44:17]Thread 3067362660 joined [16:44:17]Waiting for new connection... [16:44:17] Sock 9.Parse request [16:44:17]Sock 9.Check first char [16:44:17]Sock 9.First char is OK [16:44:17]request: POST /json_proto HTTP/1.0 [16:44:17]Method: POST [16:44:17]URL: /json_proto [16:44:17]Method is POST - this is cgi request [16:44:17]url: /json_proto [16:44:17]query_string will be loaded in cgi processing [16:44:17]execute_cgi json_proto POST (null) [16:44:17]execute_cgi path=json_proto method=POST [16:44:17]POST find Content-Length [16:44:17]Host: 172.17.44.195:8080 [16:44:17]Content-Length: 680 [16:44:17]Content-Type: application/json [16:44:17] [16:44:17]POST finish read [16:44:17]Found Content-Length = 680 [16:44:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963148", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:44:17]execute_script... [16:44:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963148", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:44:17]POST & json_proto [16:44:17]process_json_proto [16:44:17]json parsed OK: [16:44:17]protocol is kg_v1.0 [16:44:17]action value=close_receipt [16:44:17]process_action close_receipt [16:44:17]cmd_close_receipt [16:44:17]MH_GetDate [16:44:17]Write to MH i2c: F0 00 00 BF 08 B6 [16:44:17]Write i2c OK [16:44:17]MH_I2C_Read... [16:44:17]Read from MH i2c: F0 [16:44:17]MH_I2C_Read... [16:44:17]Read from MH i2c: F0 09 00 [16:44:17]MH_I2C_Read... [16:44:17]Read from MH i2c: F0 09 00 BF 08 00 62 33 15 67 82 C9 CF 66 50 [16:44:17]GetLastDocTimeStamp 1729442588 [16:44:17]current date 1729442658 [16:44:17]FM_GetShiftState [16:44:17]SAM_PROTO_GetShiftState [16:44:17]wFMCommunicate request_size=4 [16:44:17]MH_SAM_APDU [16:44:17]CAPDU: 80 13 01 00 [16:44:17]Write to MH i2c: E2 08 00 C0 08 80 13 01 00 00 00 00 00 45 [16:44:17]Write i2c OK [16:44:17]MH_I2C_Read... [16:44:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:17]Read from MH i2c: E2 [16:44:17]MH_I2C_Read... [16:44:17]Read from MH i2c: E2 0E 00 [16:44:17]MH_I2C_Read... [16:44:17]Read from MH i2c: E2 0E 00 C0 08 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 5F [16:44:17]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [16:44:17]wFMCommunicate OK [16:44:17]SAM_PROTO_GetShiftState done [16:44:17]FM_GetShiftState done [16:44:17]opened in 1729383750 [16:44:17]opened+sec_in_day 1729470150 [16:44:17]quantity*price = 300075 [16:44:17]sum+1 = 300077 [16:44:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 372 20.10.2024 16:44 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227524 ФПД: 210512595071169 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T164418&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227524&fm=210512595071169&tin=02508201610067®Number=0000000000091685&sum=300000 [16:44:18]StoreToDocumentArchive [16:44:18]shift 533 fd 227524 [16:44:18]save to /storage/0533/doc_00227524 [16:44:18]save last doc name /storage/0533/doc_00227524 to /storage/kkm_last_doc_name [16:44:18]save OK [16:44:18]Clear old archive folders... [16:44:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:44:18]tlvbuf is 00DE0E60 [16:44:18]SAM_PROTO_ClearQueue [16:44:18]wFMCommunicate request_size=4 [16:44:18]MH_SAM_APDU [16:44:18]CAPDU: 80 09 00 00 [16:44:18]Write to MH i2c: E2 08 00 CD 08 80 09 00 00 00 00 00 00 47 [16:44:18]Write i2c OK [16:44:18]MH_I2C_Read... [16:44:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:44:18]Read from MH i2c: E2 [16:44:18]MH_I2C_Read... [16:44:18]Read from MH i2c: E2 03 00 [16:44:18]MH_I2C_Read... [16:44:18]Read from MH i2c: E2 03 00 CD 08 00 90 00 49 [16:44:18]RAPDU: 90 00 [16:44:18]wFMCommunicate OK [16:44:18]SAM_PROTO_ClearQueue done [16:44:18]KKMCreateOFDPacket [16:44:18]OFDProtocolAddRootSTLVToBuf [16:44:18]FM_MakeSignedData [16:44:18]FM_MakeSignedData [16:44:18]SAM_PROTO_SignData [16:44:18]wFMCommunicate request_size=4 [16:44:18]MH_SAM_APDU [16:44:18]CAPDU: 80 0D 01 02 [16:44:18]Write to MH i2c: E2 08 00 CE 08 80 0D 01 02 00 00 00 00 4F [16:44:18]Write i2c OK [16:44:18]MH_I2C_Read... [16:44:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:44:18]Read from MH i2c: E2 [16:44:18]MH_I2C_Read... [16:44:18]Read from MH i2c: E2 03 00 [16:44:18]MH_I2C_Read... [16:44:18]Read from MH i2c: E2 03 00 CE 08 00 90 00 4A [16:44:18]RAPDU: 90 00 [16:44:18]wFMCommunicate OK [16:44:18]wFMCommunicate request_size=255 [16:44:18]MH_SAM_APDU [16:44:18]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 01 00 00 F4 03 04 00 62 33 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C4 78 03 00 35 04 06 00 BF 75 C8 73 [16:44:18]Write to MH i2c: E2 02 01 CF 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 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 01 00 00 F4 03 04 00 62 33 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C4 78 03 00 35 04 06 00 BF 75 C8 73 00 00 5E [16:44:18]Write i2c OK [16:44:18]MH_I2C_Read... [16:44:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:18]Read from MH i2c: E2 [16:44:18]MH_I2C_Read... [16:44:18]Read from MH i2c: E2 03 00 [16:44:18]MH_I2C_Read... [16:44:18]Read from MH i2c: E2 03 00 CF 08 00 90 00 4B [16:44:18]RAPDU: 90 00 [16:44:18]wFMCommunicate OK [16:44:18]wFMCommunicate request_size=7 [16:44:18]MH_SAM_APDU [16:44:18]CAPDU: 80 0D 02 02 02 30 C1 [16:44:18]Write to MH i2c: E2 0A 00 D0 08 80 0D 02 02 02 00 30 C1 00 00 47 [16:44:18]Write i2c OK [16:44:18]MH_I2C_Read... [16:44:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:18]Read from MH i2c: E2 [16:44:18]MH_I2C_Read... [16:44:18]Read from MH i2c: E2 03 00 [16:44:18]MH_I2C_Read... [16:44:18]Read from MH i2c: E2 03 00 D0 08 00 90 00 4C [16:44:18]RAPDU: 90 00 [16:44:18]wFMCommunicate OK [16:44:18]wFMCommunicate request_size=4 [16:44:18]MH_SAM_APDU [16:44:18]CAPDU: 80 0D 03 02 [16:44:18]Write to MH i2c: E2 08 00 D1 08 80 0D 03 02 00 00 00 00 54 [16:44:18]Write i2c OK [16:44:18]MH_I2C_Read... [16:44:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:44:18]Read from MH i2c: E2 [16:44:18]MH_I2C_Read... [16:44:18]Read from MH i2c: E2 0B 00 [16:44:18]MH_I2C_Read... [16:44:18]Read from MH i2c: E2 0B 00 D1 08 00 4A B8 54 4F 0D 33 AE 82 90 00 6A [16:44:18]RAPDU: 4A B8 54 4F 0D 33 AE 82 90 00 [16:44:18]wFMCommunicate OK [16:44:18]SAM_PROTO_SignData done [16:44:18]FM_MakeSignedData done [16:44:18]CreateOFDProtocolMessage [16:44:18]wFMCommunicate request_size=4 [16:44:18]MH_SAM_APDU [16:44:18]CAPDU: 80 11 00 00 [16:44:18]Write to MH i2c: E2 08 00 D2 08 80 11 00 00 00 00 00 00 54 [16:44:18]Write i2c OK [16:44:18]MH_I2C_Read... [16:44:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:18]Read from MH i2c: E2 [16:44:18]MH_I2C_Read... [16:44:18]Read from MH i2c: E2 17 00 [16:44:18]MH_I2C_Read... [16:44:18]Read from MH i2c: E2 17 00 D2 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 AB [16:44:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [16:44:18]wFMCommunicate OK [16:44:18]CreateOFDProtocolMessage done [16:44:18]OFDSenderStorePacket 227524 [16:44:18]StoreOFDPacket docnum=227524 [16:44:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 1E F9 04 01 35 A7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 01 00 00 F4 03 04 00 62 33 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C4 78 03 00 35 04 06 00 BF 75 C8 73 30 C1 4A B8 54 4F 0D 33 AE 82 [16:44:18]CheckFolder [16:44:18]dirname=/storage/ofd_packets [16:44:18]CheckFolder done [16:44:18]ProducePacketName [16:44:18]name=ofd_packets/00227524 [16:44:18]NVStorageSaveData ofd_packets/00227524 [16:44:18]File name is /storage/ofd_packets/00227524 [16:44:18]Write 298 bytes [16:44:18]NVStorageSaveData done [16:44:18]OFDSenderStorePacket done [16:44:18]KKMCreateOFDPacket done [16:44:18]NVStorageSaveData kkm_last_timestamp [16:44:18]File name is /storage/kkm_last_timestamp [16:44:18]Write 4 bytes [16:44:18]NVStorageSaveData done [16:44:18]ExternCall_PrintAddStr [16:44:18]wPrintStart [16:44:18]Write to MH i2c: 01 00 00 D3 08 DB [16:44:18]Write i2c OK [16:44:18]MH_I2C_Read... [16:44:18]Read from MH i2c: 01 [16:44:18]MH_I2C_Read... [16:44:18]Read from MH i2c: 01 07 00 [16:44:18]MH_I2C_Read... [16:44:18]Read from MH i2c: 01 07 00 D3 08 00 00 00 00 00 FF 0F F0 [16:44:18]RasterBufferAndPrint [16:44:18]line Счет N : (1)1963148 [16:44:18]line ИНН: 02508201610067 [16:44:18]line Контрольно-Кассовый Чек [16:44:18]line ПРОДАЖА [16:44:18]line ТРК (МРК, ГНК) : 11 [16:44:18]line Товар: 2710194210 [16:44:18]line ДТ-К-5 [16:44:18]line 39.380 * 76.20 [16:44:18]line = 3000.76 [16:44:18]line НДС 12% НСП 1% [16:44:18]line > о реализуемом товаре [16:44:18]line ОКРУГЛЕНИЕ: -0.76 [16:44:18]line ИТОГО: 3000.00 [16:44:18]line Внесено: 3000.00 [16:44:18]line СДАЧА: 0.00 [16:44:18]line НСП 1% : 26.55 [16:44:18]line НДС 12% : 318.66 [16:44:18]line Наличными: 3000.00 [16:44:18]line Безнал.: 0.00 [16:44:18]line Место: АЗС № 133 "Партнер Нефть" [16:44:18]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [16:44:18]line СНО: Общий режим [16:44:18]line Чек 372 20.10.2024 16:44 [16:44:18]line Смена: 533 ФФД: 1.0 [16:44:18]line ЗНМ: 0300000091 [16:44:18]line РНМ: 0000000000091685 [16:44:18]line Версия ККМ: 001 [16:44:18]line ФМ: 0000000000871839 [16:44:18]line ФД: 227524 [16:44:18]line ФПД: 210512595071169 [16:44:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T164418&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227524&fm=210512595071169&tin=02508201610067®Number=0000000000091685&sum=300000 [16:44:19]OFD Sender: Processing packet 227524 [packets to send 38, broken 37] [16:44:19]ProducePacketName [16:44:19]name=ofd_packets/00227524 [16:44:19]OFD Sender: To server: pG, [16:44:19]CommunicateWithHost lk.salyk.kg:30040 [16:44:19]ConnectInit lk.salyk.kg [16:44:19]written 0, free lines is 4095 [16:44:19]Connected sock=10 [16:44:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 1E F9 04 01 35 A7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 01 00 00 F4 03 04 00 62 33 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C4 78 03 00 35 04 06 00 BF 75 C8 73 30 C1 4A B8 54 4F 0D 33 AE 82 [16:44:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 E4 30 47 00 5F 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 33 39 10 04 04 00 C4 78 03 00 F4 03 04 00 60 DE 14 67 B6 04 01 00 00 E5 EC F2 16 D0 3E 4F A6 [16:44:19]CommunicateWithHost err = 0 [16:44:19]CheckOFDResponse [16:44:19]1017 (14) - 77093643461234 [16:44:19]1041 (16) - 0000000000871839 [16:44:19]1040 (4) - 227524 [16:44:19]1012 (4) - 20.10.2024 10:41 [16:44:19]1206 (1) - 0 [16:44:19]OFD Sender: Remove packet 227524 [16:44:19]ProducePacketName [16:44:19]name=ofd_packets/00227524 [16:44:19]NVStorageDeleteData [16:44:19]Write to MH i2c: 01 00 00 FD 08 05 [16:44:19]Write i2c OK [16:44:19]MH_I2C_Read... [16:44:19]Read from MH i2c: 01 [16:44:19]MH_I2C_Read... [16:44:19]Read from MH i2c: 01 07 00 [16:44:19]MH_I2C_Read... [16:44:19]Read from MH i2c: 01 07 00 FD 08 00 00 00 00 00 07 0D 20 [16:44:19]RasterBufferAndPrint [16:44:19]line [16:44:19]line [16:44:19]line [16:44:19]line [16:44:19]line [16:44:19]written 0, free lines is 3341 [16:44:19]process_action close_receipt done [16:44:19]requested_data is exist [16:44:19]produce_requested_data [16:44:19]requested_item fm.sn is exist - process it [16:44:19]wFMCommunicate request_size=4 [16:44:19]MH_SAM_APDU [16:44:19]CAPDU: 80 11 00 00 [16:44:19]Write to MH i2c: E2 08 00 04 09 80 11 00 00 00 00 00 00 87 [16:44:19]Write i2c OK [16:44:19]MH_I2C_Read... [16:44:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:19]Read from MH i2c: E2 [16:44:19]MH_I2C_Read... [16:44:19]Read from MH i2c: E2 17 00 [16:44:19]MH_I2C_Read... [16:44:19]Read from MH i2c: E2 17 00 04 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 DE [16:44:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [16:44:19]wFMCommunicate OK [16:44:19]requested_item fd.num is exist - process it [16:44:19]SAM_PROTO_GetFieldsCounters [16:44:19]wFMCommunicate request_size=4 [16:44:19]MH_SAM_APDU [16:44:19]CAPDU: 80 13 00 00 [16:44:19]Write to MH i2c: E2 08 00 05 09 80 13 00 00 00 00 00 00 8A [16:44:19]Write i2c OK [16:44:19]MH_I2C_Read... [16:44:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:44:19]Read from MH i2c: E2 [16:44:19]MH_I2C_Read... [16:44:19]Read from MH i2c: E2 62 00 [16:44:19]MH_I2C_Read... [16:44:19]Read from MH i2c: E2 62 00 05 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 C4 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 74 01 00 00 5E 04 04 00 74 01 00 00 57 04 04 00 75 01 00 00 19 04 04 00 00 00 00 00 90 00 68 [16:44: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 C4 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 74 01 00 00 5E 04 04 00 74 01 00 00 57 04 04 00 75 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:44:19]wFMCommunicate OK [16:44:19]SAM_PROTO_GetFieldsCounters done [16:44:19]requested_item shift.num is exist - process it [16:44:19]requested_item shift.opened is exist - process it [16:44:19]req_shift_opened [16:44:19]FM_GetShiftState [16:44:19]SAM_PROTO_GetShiftState [16:44:19]wFMCommunicate request_size=4 [16:44:19]MH_SAM_APDU [16:44:19]CAPDU: 80 13 01 00 [16:44:19]Write to MH i2c: E2 08 00 06 09 80 13 01 00 00 00 00 00 8C [16:44:19]Write i2c OK [16:44:19]MH_I2C_Read... [16:44:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:19]Read from MH i2c: E2 [16:44:19]MH_I2C_Read... [16:44:19]Read from MH i2c: E2 0E 00 [16:44:19]MH_I2C_Read... [16:44:19]Read from MH i2c: E2 0E 00 06 09 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 A6 [16:44:19]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [16:44:19]wFMCommunicate OK [16:44:19]SAM_PROTO_GetShiftState done [16:44:19]FM_GetShiftState done [16:44:19]req_shift_opened done [16:44:19]requested_item shift.open_date is exist - process it [16:44:19]req_shift_open_date [16:44:19]req_shift_open_date done [16:44:19]produce_requested_data done [16:44:19]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227524,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [16:44:19]process_action_free close_receipt [16:44:19]json_value_free [16:44:19]json_value_free done [16:44:19]process_json_proto returns [16:44:19]Send response to host [16:44:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227524,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [16:44:19]free response buf [16:44:19]execute_script done [16:44:19]execute_script returns [16:44:19]free content buf [16:44:19]Sock 9.Close socket [16:44:19]Sock 9.Thread stoped [16:44:19]OFD Sender: No OFD packet to send [16:44:24]OFD Sender: No OFD packet to send [16:44:29]OFD Sender: No OFD packet to send [16:44:34]OFD Sender: No OFD packet to send [16:44:40]OFD Sender: No OFD packet to send [16:44:45]OFD Sender: No OFD packet to send [16:44:50]OFD Sender: No OFD packet to send [16:44:55]OFD Sender: No OFD packet to send [16:45:00]OFD Sender: No OFD packet to send [16:45:05]OFD Sender: No OFD packet to send [16:45:10]OFD Sender: No OFD packet to send [16:45:15]OFD Sender: No OFD packet to send [16:45:20]OFD Sender: No OFD packet to send [16:45:25]OFD Sender: No OFD packet to send [16:45:30]OFD Sender: No OFD packet to send [16:45:35]OFD Sender: No OFD packet to send [16:45:40]OFD Sender: No OFD packet to send [16:45:45]OFD Sender: No OFD packet to send [16:45:50]OFD Sender: No OFD packet to send [16:45:55]OFD Sender: No OFD packet to send [16:46:00]OFD Sender: No OFD packet to send [16:46:05]OFD Sender: No OFD packet to send [16:46:10]OFD Sender: No OFD packet to send [16:46:15]OFD Sender: No OFD packet to send [16:46:20]OFD Sender: No OFD packet to send [16:46:25]OFD Sender: No OFD packet to send [16:46:30]OFD Sender: No OFD packet to send [16:46:35]OFD Sender: No OFD packet to send [16:46:40]OFD Sender: No OFD packet to send [16:46:45]OFD Sender: No OFD packet to send [16:46:50]OFD Sender: No OFD packet to send [16:46:55]OFD Sender: No OFD packet to send [16:47:00]OFD Sender: No OFD packet to send [16:47:05]OFD Sender: No OFD packet to send [16:47: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:06]accept exits with 7 [16:48:06]New connection [16:48:06]New thread 3067362660 created [16:48:06]Thread 3067219300 joined [16:48:06]Waiting for new connection... [16:48:06] Sock 7.Parse request [16:48:06]Sock 7.Check first char [16:48:06]Sock 7.First char is OK [16:48:06]request: POST /json_proto HTTP/1.0 [16:48:06]Method: POST [16:48:06]URL: /json_proto [16:48:06]Method is POST - this is cgi request [16:48:06]url: /json_proto [16:48:06]query_string will be loaded in cgi processing [16:48:06]execute_cgi json_proto POST (null) [16:48:06]execute_cgi path=json_proto method=POST [16:48:06]POST find Content-Length [16:48:06]Host: 172.17.44.195:8080 [16:48:06]Content-Length: 683 [16:48:06]Content-Type: application/json [16:48:06] [16:48:06]POST finish read [16:48:06]Found Content-Length = 683 [16:48:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963150", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 26.910, "sum" : 1800.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:06]execute_script... [16:48:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963150", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 26.910, "sum" : 1800.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:06]POST & json_proto [16:48:06]process_json_proto [16:48:06]json parsed OK: [16:48:06]protocol is kg_v1.0 [16:48:06]action value=close_receipt [16:48:06]process_action close_receipt [16:48:06]cmd_close_receipt [16:48:06]MH_GetDate [16:48:06]Write to MH i2c: F0 00 00 07 09 FF [16:48:06]Write i2c OK [16:48:06]MH_I2C_Read... [16:48:06]Read from MH i2c: F0 [16:48:06]MH_I2C_Read... [16:48:06]Read from MH i2c: F0 09 00 [16:48:06]MH_I2C_Read... [16:48:06]Read from MH i2c: F0 09 00 07 09 00 47 34 15 67 82 C9 CF 66 7F [16:48:06]GetLastDocTimeStamp 1729442658 [16:48:06]current date 1729442887 [16:48:06]FM_GetShiftState [16:48:06]SAM_PROTO_GetShiftState [16:48:06]wFMCommunicate request_size=4 [16:48:06]MH_SAM_APDU [16:48:06]CAPDU: 80 13 01 00 [16:48:06]Write to MH i2c: E2 08 00 08 09 80 13 01 00 00 00 00 00 8E [16:48:06]Write i2c OK [16:48:06]MH_I2C_Read... [16:48:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:06]Read from MH i2c: E2 [16:48:06]MH_I2C_Read... [16:48:06]Read from MH i2c: E2 0E 00 [16:48:06]MH_I2C_Read... [16:48:06]Read from MH i2c: E2 0E 00 08 09 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 A8 [16:48:06]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [16:48:06]wFMCommunicate OK [16:48:06]SAM_PROTO_GetShiftState done [16:48:06]FM_GetShiftState done [16:48:06]opened in 1729383750 [16:48:06]opened+sec_in_day 1729470150 [16:48:06]quantity*price = 180027 [16:48:06]sum+1 = 180029 [16:48:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 1800.00 Внесено: 5000.00 СДАЧА: 3200.00 НСП 1% : 15.93 НДС 12% : 191.18 Наличными: 1800.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 373 20.10.2024 16:48 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227525 ФПД: 31378584341495 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T164807&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227525&fm=31378584341495&tin=02508201610067®Number=0000000000091685&sum=180000 [16:48:07]StoreToDocumentArchive [16:48:07]shift 533 fd 227525 [16:48:07]save to /storage/0533/doc_00227525 [16:48:07]save last doc name /storage/0533/doc_00227525 to /storage/kkm_last_doc_name [16:48:07]save OK [16:48:07]Clear old archive folders... [16:48:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:48:07]tlvbuf is 00DE97F0 [16:48:07]SAM_PROTO_ClearQueue [16:48:07]wFMCommunicate request_size=4 [16:48:07]MH_SAM_APDU [16:48:07]CAPDU: 80 09 00 00 [16:48:07]Write to MH i2c: E2 08 00 15 09 80 09 00 00 00 00 00 00 90 [16:48:07]Write i2c OK [16:48:07]MH_I2C_Read... [16:48:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:48:07]Read from MH i2c: E2 [16:48:07]MH_I2C_Read... [16:48:07]Read from MH i2c: E2 03 00 [16:48:07]MH_I2C_Read... [16:48:07]Read from MH i2c: E2 03 00 15 09 00 90 00 92 [16:48:07]RAPDU: 90 00 [16:48:07]wFMCommunicate OK [16:48:07]SAM_PROTO_ClearQueue done [16:48:07]KKMCreateOFDPacket [16:48:07]OFDProtocolAddRootSTLVToBuf [16:48:07]FM_MakeSignedData [16:48:07]FM_MakeSignedData [16:48:07]SAM_PROTO_SignData [16:48:07]wFMCommunicate request_size=4 [16:48:07]MH_SAM_APDU [16:48:07]CAPDU: 80 0D 01 02 [16:48:07]Write to MH i2c: E2 08 00 16 09 80 0D 01 02 00 00 00 00 98 [16:48:07]Write i2c OK [16:48:07]MH_I2C_Read... [16:48:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:48:07]Read from MH i2c: E2 [16:48:07]MH_I2C_Read... [16:48:07]Read from MH i2c: E2 03 00 [16:48:07]MH_I2C_Read... [16:48:07]Read from MH i2c: E2 03 00 16 09 00 90 00 93 [16:48:07]RAPDU: 90 00 [16:48:07]wFMCommunicate OK [16:48:07]wFMCommunicate request_size=255 [16:48:07]MH_SAM_APDU [16:48:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 69 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3C BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 01 00 00 F4 03 04 00 47 34 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C5 78 03 00 35 04 06 00 1C [16:48:07]Write to MH i2c: E2 02 01 17 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 69 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3C BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 01 00 00 F4 03 04 00 47 34 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C5 78 03 00 35 04 06 00 1C 00 00 43 [16:48:07]Write i2c OK [16:48:07]MH_I2C_Read... [16:48:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:08]Read from MH i2c: E2 [16:48:08]MH_I2C_Read... [16:48:08]Read from MH i2c: E2 03 00 [16:48:08]MH_I2C_Read... [16:48:08]Read from MH i2c: E2 03 00 17 09 00 90 00 94 [16:48:08]RAPDU: 90 00 [16:48:08]wFMCommunicate OK [16:48:08]wFMCommunicate request_size=10 [16:48:08]MH_SAM_APDU [16:48:08]CAPDU: 80 0D 02 02 05 89 E5 5F 8B F7 [16:48:08]Write to MH i2c: E2 0D 00 18 09 80 0D 02 02 05 00 89 E5 5F 8B F7 00 00 F4 [16:48:08]Write i2c OK [16:48:08]MH_I2C_Read... [16:48:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:08]Read from MH i2c: E2 [16:48:08]MH_I2C_Read... [16:48:08]Read from MH i2c: E2 03 00 [16:48:08]MH_I2C_Read... [16:48:08]Read from MH i2c: E2 03 00 18 09 00 90 00 95 [16:48:08]RAPDU: 90 00 [16:48:08]wFMCommunicate OK [16:48:08]wFMCommunicate request_size=4 [16:48:08]MH_SAM_APDU [16:48:08]CAPDU: 80 0D 03 02 [16:48:08]Write to MH i2c: E2 08 00 19 09 80 0D 03 02 00 00 00 00 9D [16:48:08]Write i2c OK [16:48:08]MH_I2C_Read... [16:48:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:48:08]Read from MH i2c: E2 [16:48:08]MH_I2C_Read... [16:48:08]Read from MH i2c: E2 0B 00 [16:48:08]MH_I2C_Read... [16:48:08]Read from MH i2c: E2 0B 00 19 09 00 70 AC 0E 72 B9 D2 E0 F9 90 00 9E [16:48:08]RAPDU: 70 AC 0E 72 B9 D2 E0 F9 90 00 [16:48:08]wFMCommunicate OK [16:48:08]SAM_PROTO_SignData done [16:48:08]FM_MakeSignedData done [16:48:08]CreateOFDProtocolMessage [16:48:08]wFMCommunicate request_size=4 [16:48:08]MH_SAM_APDU [16:48:08]CAPDU: 80 11 00 00 [16:48:08]Write to MH i2c: E2 08 00 1A 09 80 11 00 00 00 00 00 00 9D [16:48:08]Write i2c OK [16:48:08]MH_I2C_Read... [16:48:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:08]Read from MH i2c: E2 [16:48:08]MH_I2C_Read... [16:48:08]Read from MH i2c: E2 17 00 [16:48:08]MH_I2C_Read... [16:48:08]Read from MH i2c: E2 17 00 1A 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F4 [16:48:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [16:48:08]wFMCommunicate OK [16:48:08]CreateOFDProtocolMessage done [16:48:08]OFDSenderStorePacket 227525 [16:48:08]StoreOFDPacket docnum=227525 [16:48:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 27 7D 07 01 43 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 69 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3C BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 01 00 00 F4 03 04 00 47 34 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C5 78 03 00 35 04 06 00 1C 89 E5 5F 8B F7 70 AC 0E 72 B9 D2 E0 F9 [16:48:08]CheckFolder [16:48:08]dirname=/storage/ofd_packets [16:48:08]CheckFolder done [16:48:08]ProducePacketName [16:48:08]name=ofd_packets/00227525 [16:48:08]NVStorageSaveData ofd_packets/00227525 [16:48:08]File name is /storage/ofd_packets/00227525 [16:48:08]Write 301 bytes [16:48:08]NVStorageSaveData done [16:48:08]OFDSenderStorePacket done [16:48:08]KKMCreateOFDPacket done [16:48:08]NVStorageSaveData kkm_last_timestamp [16:48:08]File name is /storage/kkm_last_timestamp [16:48:08]Write 4 bytes [16:48:08]NVStorageSaveData done [16:48:08]ExternCall_PrintAddStr [16:48:08]wPrintStart [16:48:08]Write to MH i2c: 01 00 00 1B 09 24 [16:48:08]Write i2c OK [16:48:08]MH_I2C_Read... [16:48:08]Read from MH i2c: 01 [16:48:08]MH_I2C_Read... [16:48:08]Read from MH i2c: 01 07 00 [16:48:08]MH_I2C_Read... [16:48:08]Read from MH i2c: 01 07 00 1B 09 00 00 00 00 00 FF 0F 39 [16:48:08]RasterBufferAndPrint [16:48:08]line Счет N : (1)1963150 [16:48:08]line ИНН: 02508201610067 [16:48:08]line Контрольно-Кассовый Чек [16:48:08]line ПРОДАЖА [16:48:08]line ТРК (МРК, ГНК) : 33 [16:48:08]line Товар: 2710124130 [16:48:08]line Аи-92-К-5 [16:48:08]line 26.910 * 66.90 [16:48:08]line = 1800.28 [16:48:08]line НДС 12% НСП 1% [16:48:08]line > о реализуемом товаре [16:48:08]line ОКРУГЛЕНИЕ: -0.28 [16:48:08]line ИТОГО: 1800.00 [16:48:08]line Внесено: 5000.00 [16:48:08]line СДАЧА: 3200.00 [16:48:08]line НСП 1% : 15.93 [16:48:08]line НДС 12% : 191.18 [16:48:08]line Наличными: 1800.00 [16:48:08]line Безнал.: 0.00 [16:48:08]line Место: АЗС № 133 "Партнер Нефть" [16:48:08]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [16:48:08]line СНО: Общий режим [16:48:08]line Чек 373 20.10.2024 16:48 [16:48:08]line Смена: 533 ФФД: 1.0 [16:48:08]line ЗНМ: 0300000091 [16:48:08]line РНМ: 0000000000091685 [16:48:08]line Версия ККМ: 001 [16:48:08]line ФМ: 0000000000871839 [16:48:08]line ФД: 227525 [16:48:08]line ФПД: 31378584341495 [16:48:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T164807&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227525&fm=31378584341495&tin=02508201610067®Number=0000000000091685&sum=180000 [16:48:08]OFD Sender: Processing packet 227525 [packets to send 38, broken 37] [16:48:08]ProducePacketName [16:48:08]name=ofd_packets/00227525 [16:48:08]OFD Sender: To server: pG, [16:48:08]CommunicateWithHost lk.salyk.kg:30040 [16:48:08]ConnectInit lk.salyk.kg [16:48:08]written 0, free lines is 4095 [16:48:08]Connected sock=10 [16:48:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 27 7D 07 01 43 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 69 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3C BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 01 00 00 F4 03 04 00 47 34 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C5 78 03 00 35 04 06 00 1C 89 E5 5F 8B F7 70 AC 0E 72 B9 D2 E0 F9 [16:48:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 ED F5 47 00 8E 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 33 39 10 04 04 00 C5 78 03 00 F4 03 04 00 46 DF 14 67 B6 04 01 00 00 C8 6A 5D 27 8C ED 84 8C [16:48:09]CommunicateWithHost err = 0 [16:48:09]CheckOFDResponse [16:48:09]1017 (14) - 77093643461234 [16:48:09]1041 (16) - 0000000000871839 [16:48:09]1040 (4) - 227525 [16:48:09]1012 (4) - 20.10.2024 10:45 [16:48:09]1206 (1) - 0 [16:48:09]OFD Sender: Remove packet 227525 [16:48:09]ProducePacketName [16:48:09]name=ofd_packets/00227525 [16:48:09]NVStorageDeleteData [16:48:09]Write to MH i2c: 01 00 00 45 09 4E [16:48:09]Write i2c OK [16:48:09]MH_I2C_Read... [16:48:09]Read from MH i2c: 01 [16:48:09]MH_I2C_Read... [16:48:09]Read from MH i2c: 01 07 00 [16:48:09]MH_I2C_Read... [16:48:09]Read from MH i2c: 01 07 00 45 09 00 00 00 00 00 0A 0D 6C [16:48:09]RasterBufferAndPrint [16:48:09]line [16:48:09]line [16:48:09]line [16:48:09]line [16:48:09]line [16:48:09]written 0, free lines is 3345 [16:48:09]process_action close_receipt done [16:48:09]requested_data is exist [16:48:09]produce_requested_data [16:48:09]requested_item fm.sn is exist - process it [16:48:09]wFMCommunicate request_size=4 [16:48:09]MH_SAM_APDU [16:48:09]CAPDU: 80 11 00 00 [16:48:09]Write to MH i2c: E2 08 00 4C 09 80 11 00 00 00 00 00 00 CF [16:48:09]Write i2c OK [16:48:09]MH_I2C_Read... [16:48:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:09]Read from MH i2c: E2 [16:48:09]MH_I2C_Read... [16:48:09]Read from MH i2c: E2 17 00 [16:48:09]MH_I2C_Read... [16:48:09]Read from MH i2c: E2 17 00 4C 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 26 [16:48:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [16:48:09]wFMCommunicate OK [16:48:09]requested_item fd.num is exist - process it [16:48:09]SAM_PROTO_GetFieldsCounters [16:48:09]wFMCommunicate request_size=4 [16:48:09]MH_SAM_APDU [16:48:09]CAPDU: 80 13 00 00 [16:48:09]Write to MH i2c: E2 08 00 4D 09 80 13 00 00 00 00 00 00 D2 [16:48:09]Write i2c OK [16:48:09]MH_I2C_Read... [16:48:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:48:09]Read from MH i2c: E2 [16:48:09]MH_I2C_Read... [16:48:09]Read from MH i2c: E2 62 00 [16:48:09]MH_I2C_Read... [16:48:09]Read from MH i2c: E2 62 00 4D 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 C5 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 75 01 00 00 5E 04 04 00 75 01 00 00 57 04 04 00 76 01 00 00 19 04 04 00 00 00 00 00 90 00 B4 [16:48: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 C5 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 75 01 00 00 5E 04 04 00 75 01 00 00 57 04 04 00 76 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:48:09]wFMCommunicate OK [16:48:09]SAM_PROTO_GetFieldsCounters done [16:48:09]requested_item shift.num is exist - process it [16:48:09]requested_item shift.opened is exist - process it [16:48:09]req_shift_opened [16:48:09]FM_GetShiftState [16:48:09]SAM_PROTO_GetShiftState [16:48:09]wFMCommunicate request_size=4 [16:48:09]MH_SAM_APDU [16:48:09]CAPDU: 80 13 01 00 [16:48:09]Write to MH i2c: E2 08 00 4E 09 80 13 01 00 00 00 00 00 D4 [16:48:09]Write i2c OK [16:48:09]MH_I2C_Read... [16:48:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:09]Read from MH i2c: E2 [16:48:09]MH_I2C_Read... [16:48:09]Read from MH i2c: E2 0E 00 [16:48:09]MH_I2C_Read... [16:48:09]Read from MH i2c: E2 0E 00 4E 09 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 EE [16:48:09]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [16:48:09]wFMCommunicate OK [16:48:09]SAM_PROTO_GetShiftState done [16:48:09]FM_GetShiftState done [16:48:09]req_shift_opened done [16:48:09]requested_item shift.open_date is exist - process it [16:48:09]req_shift_open_date [16:48:09]req_shift_open_date done [16:48:09]produce_requested_data done [16:48:09]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227525,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [16:48:09]process_action_free close_receipt [16:48:09]json_value_free [16:48:09]json_value_free done [16:48:09]process_json_proto returns [16:48:09]Send response to host [16:48:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227525,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [16:48:09]free response buf [16:48:09]execute_script done [16:48:09]execute_script returns [16:48:09]free content buf [16:48:09]Sock 7.Close socket [16:48:09]Sock 7.Thread stoped [16:48:09]OFD Sender: No OFD packet to send [16:48:14]OFD Sender: No OFD packet to send [16:48:19]OFD Sender: No OFD packet to send [16:48:24]OFD Sender: No OFD packet to send [16:48:29]OFD Sender: No OFD packet to send [16:48:34]OFD Sender: No OFD packet to send [16:48:39]OFD Sender: No OFD packet to send [16:48:44]OFD Sender: No OFD packet to send [16:48:49]OFD Sender: No OFD packet to send [16:48:54]OFD Sender: No OFD packet to send [16:48:59]OFD Sender: No OFD packet to send [16:49:04]OFD Sender: No OFD packet to send [16:49:06]accept exits with 9 [16:49:06]New connection [16:49:06]New thread 3067219300 created [16:49:06]Thread 3067362660 joined [16:49:06]Waiting for new connection... [16:49:06] Sock 9.Parse request [16:49:06]Sock 9.Check first char [16:49:06]Sock 9.First char is OK [16:49:06]request: POST /json_proto HTTP/1.0 [16:49:06]Method: POST [16:49:06]URL: /json_proto [16:49:06]Method is POST - this is cgi request [16:49:06]url: /json_proto [16:49:06]query_string will be loaded in cgi processing [16:49:06]execute_cgi json_proto POST (null) [16:49:06]execute_cgi path=json_proto method=POST [16:49:06]POST find Content-Length [16:49:06]Host: 172.17.44.195:8080 [16:49:06]Content-Length: 660 [16:49:06]Content-Type: application/json [16:49:06] [16:49:06]POST finish read [16:49:06]Found Content-Length = 660 [16:49:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963152", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 10.240, "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" ] } } [16:49:06]execute_script... [16:49:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963152", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 10.240, "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" ] } } [16:49:06]POST & json_proto [16:49:06]process_json_proto [16:49:06]json parsed OK: [16:49:06]protocol is kg_v1.0 [16:49:06]action value=close_receipt [16:49:06]process_action close_receipt [16:49:06]cmd_close_receipt [16:49:06]MH_GetDate [16:49:06]Write to MH i2c: F0 00 00 4F 09 47 [16:49:06]Write i2c OK [16:49:06]MH_I2C_Read... [16:49:06]Read from MH i2c: F0 [16:49:06]MH_I2C_Read... [16:49:06]Read from MH i2c: F0 09 00 [16:49:06]MH_I2C_Read... [16:49:06]Read from MH i2c: F0 09 00 4F 09 00 83 34 15 67 82 C9 CF 66 03 [16:49:06]GetLastDocTimeStamp 1729442887 [16:49:06]current date 1729442947 [16:49:06]FM_GetShiftState [16:49:06]SAM_PROTO_GetShiftState [16:49:06]wFMCommunicate request_size=4 [16:49:06]MH_SAM_APDU [16:49:06]CAPDU: 80 13 01 00 [16:49:06]Write to MH i2c: E2 08 00 50 09 80 13 01 00 00 00 00 00 D6 [16:49:06]Write i2c OK [16:49:06]MH_I2C_Read... [16:49:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:49:06]Read from MH i2c: E2 [16:49:06]MH_I2C_Read... [16:49:06]Read from MH i2c: E2 0E 00 [16:49:06]MH_I2C_Read... [16:49:06]Read from MH i2c: E2 0E 00 50 09 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 F0 [16:49:06]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [16:49:06]wFMCommunicate OK [16:49:06]SAM_PROTO_GetShiftState done [16:49:06]FM_GetShiftState done [16:49:06]opened in 1729383750 [16:49:06]opened+sec_in_day 1729470150 [16:49:06]quantity*price = 70041 [16:49:06]sum+1 = 70043 [16:49:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 374 20.10.2024 16:49 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227526 ФПД: 123633005393008 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T164907&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227526&fm=123633005393008&tin=02508201610067®Number=0000000000091685&sum=70000 [16:49:07]StoreToDocumentArchive [16:49:07]shift 533 fd 227526 [16:49:07]save to /storage/0533/doc_00227526 [16:49:07]save last doc name /storage/0533/doc_00227526 to /storage/kkm_last_doc_name [16:49:07]save OK [16:49:07]Clear old archive folders... [16:49:07]ProcessDocumentItem done err = 0, tmpTLVsize=244 [16:49:07]tlvbuf is 00DA6C00 [16:49:07]SAM_PROTO_ClearQueue [16:49:07]wFMCommunicate request_size=4 [16:49:07]MH_SAM_APDU [16:49:07]CAPDU: 80 09 00 00 [16:49:07]Write to MH i2c: E2 08 00 5D 09 80 09 00 00 00 00 00 00 D8 [16:49:07]Write i2c OK [16:49:07]MH_I2C_Read... [16:49:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:49:07]Read from MH i2c: E2 [16:49:07]MH_I2C_Read... [16:49:07]Read from MH i2c: E2 03 00 [16:49:07]MH_I2C_Read... [16:49:07]Read from MH i2c: E2 03 00 5D 09 00 90 00 DA [16:49:07]RAPDU: 90 00 [16:49:07]wFMCommunicate OK [16:49:07]SAM_PROTO_ClearQueue done [16:49:07]KKMCreateOFDPacket [16:49:07]OFDProtocolAddRootSTLVToBuf [16:49:07]FM_MakeSignedData [16:49:07]FM_MakeSignedData [16:49:07]SAM_PROTO_SignData [16:49:07]wFMCommunicate request_size=4 [16:49:07]MH_SAM_APDU [16:49:07]CAPDU: 80 0D 01 02 [16:49:07]Write to MH i2c: E2 08 00 5E 09 80 0D 01 02 00 00 00 00 E0 [16:49:07]Write i2c OK [16:49:07]MH_I2C_Read... [16:49:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:49:07]Read from MH i2c: E2 [16:49:07]MH_I2C_Read... [16:49:07]Read from MH i2c: E2 03 00 [16:49:07]MH_I2C_Read... [16:49:07]Read from MH i2c: E2 03 00 5E 09 00 90 00 DB [16:49:07]RAPDU: 90 00 [16:49:07]wFMCommunicate OK [16:49:07]wFMCommunicate request_size=253 [16:49:07]MH_SAM_APDU [16:49:07]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 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 76 01 00 00 F4 03 04 00 83 34 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C6 78 03 00 35 04 06 00 70 71 8D 5E 74 70 [16:49:07]Write to MH i2c: E2 00 01 5F 09 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 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 76 01 00 00 F4 03 04 00 83 34 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C6 78 03 00 35 04 06 00 70 71 8D 5E 74 70 00 00 95 [16:49:07]Write i2c OK [16:49:07]MH_I2C_Read... [16:49:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:07]Read from MH i2c: E2 [16:49:07]MH_I2C_Read... [16:49:07]Read from MH i2c: E2 03 00 [16:49:07]MH_I2C_Read... [16:49:07]Read from MH i2c: E2 03 00 5F 09 00 90 00 DC [16:49:07]RAPDU: 90 00 [16:49:07]wFMCommunicate OK [16:49:07]wFMCommunicate request_size=4 [16:49:07]MH_SAM_APDU [16:49:07]CAPDU: 80 0D 03 02 [16:49:07]Write to MH i2c: E2 08 00 60 09 80 0D 03 02 00 00 00 00 E4 [16:49:07]Write i2c OK [16:49:07]MH_I2C_Read... [16:49:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:49:07]Read from MH i2c: E2 [16:49:07]MH_I2C_Read... [16:49:07]Read from MH i2c: E2 0B 00 [16:49:07]MH_I2C_Read... [16:49:07]Read from MH i2c: E2 0B 00 60 09 00 7D 7E 6D 82 FF E6 AC 33 90 00 93 [16:49:07]RAPDU: 7D 7E 6D 82 FF E6 AC 33 90 00 [16:49:07]wFMCommunicate OK [16:49:07]SAM_PROTO_SignData done [16:49:07]FM_MakeSignedData done [16:49:07]CreateOFDProtocolMessage [16:49:07]wFMCommunicate request_size=4 [16:49:07]MH_SAM_APDU [16:49:07]CAPDU: 80 11 00 00 [16:49:07]Write to MH i2c: E2 08 00 61 09 80 11 00 00 00 00 00 00 E4 [16:49:07]Write i2c OK [16:49:07]MH_I2C_Read... [16:49:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:07]Read from MH i2c: E2 [16:49:07]MH_I2C_Read... [16:49:07]Read from MH i2c: E2 17 00 [16:49:07]MH_I2C_Read... [16:49:07]Read from MH i2c: E2 17 00 61 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 3B [16:49:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [16:49:07]wFMCommunicate OK [16:49:07]CreateOFDProtocolMessage done [16:49:07]OFDSenderStorePacket 227526 [16:49:07]StoreOFDPacket docnum=227526 [16:49:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 CD C0 00 01 E2 8E 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 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 76 01 00 00 F4 03 04 00 83 34 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C6 78 03 00 35 04 06 00 70 71 8D 5E 74 70 7D 7E 6D 82 FF E6 AC 33 [16:49:07]CheckFolder [16:49:07]dirname=/storage/ofd_packets [16:49:07]CheckFolder done [16:49:07]ProducePacketName [16:49:07]name=ofd_packets/00227526 [16:49:07]NVStorageSaveData ofd_packets/00227526 [16:49:07]File name is /storage/ofd_packets/00227526 [16:49:07]Write 294 bytes [16:49:07]NVStorageSaveData done [16:49:07]OFDSenderStorePacket done [16:49:07]KKMCreateOFDPacket done [16:49:07]NVStorageSaveData kkm_last_timestamp [16:49:07]File name is /storage/kkm_last_timestamp [16:49:07]Write 4 bytes [16:49:07]NVStorageSaveData done [16:49:07]ExternCall_PrintAddStr [16:49:07]wPrintStart [16:49:07]Write to MH i2c: 01 00 00 62 09 6B [16:49:07]Write i2c OK [16:49:07]MH_I2C_Read... [16:49:07]Read from MH i2c: 01 [16:49:07]MH_I2C_Read... [16:49:07]Read from MH i2c: 01 07 00 [16:49:07]MH_I2C_Read... [16:49:07]Read from MH i2c: 01 07 00 62 09 00 00 00 00 00 FF 0F 80 [16:49:07]RasterBufferAndPrint [16:49:07]line Счет N : (1)1963152 [16:49:07]line ИНН: 02508201610067 [16:49:07]line Контрольно-Кассовый Чек [16:49:07]line ПРОДАЖА [16:49:07]line ТРК (МРК, ГНК) : 42 [16:49:07]line Товар: 2710124130 [16:49:07]line SU-92 [16:49:07]line 10.240 * 68.40 [16:49:07]line = 700.42 [16:49:07]line НДС 12% НСП 1% [16:49:07]line > о реализуемом товаре [16:49:07]line ОКРУГЛЕНИЕ: -0.42 [16:49:07]line ИТОГО: 700.00 [16:49:07]line Внесено: 700.00 [16:49:07]line СДАЧА: 0.00 [16:49:07]line НСП 1% : 6.20 [16:49:07]line НДС 12% : 74.38 [16:49:07]line Наличными: 700.00 [16:49:07]line Безнал.: 0.00 [16:49:07]line Место: АЗС № 133 "Партнер Нефть" [16:49:07]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [16:49:07]line СНО: Общий режим [16:49:07]line Чек 374 20.10.2024 16:49 [16:49:07]line Смена: 533 ФФД: 1.0 [16:49:07]line ЗНМ: 0300000091 [16:49:07]line РНМ: 0000000000091685 [16:49:07]line Версия ККМ: 001 [16:49:07]line ФМ: 0000000000871839 [16:49:07]line ФД: 227526 [16:49:07]line ФПД: 123633005393008 [16:49:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T164907&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227526&fm=123633005393008&tin=02508201610067®Number=0000000000091685&sum=70000 [16:49:08]OFD Sender: Processing packet 227526 [packets to send 38, broken 37] [16:49:08]ProducePacketName [16:49:08]name=ofd_packets/00227526 [16:49:08]OFD Sender: To server: pG, [16:49:08]CommunicateWithHost lk.salyk.kg:30040 [16:49:08]ConnectInit lk.salyk.kg [16:49:08]written 0, free lines is 4095 [16:49:08]Connected sock=10 [16:49:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 CD C0 00 01 E2 8E 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 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 76 01 00 00 F4 03 04 00 83 34 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C6 78 03 00 35 04 06 00 70 71 8D 5E 74 70 7D 7E 6D 82 FF E6 AC 33 [16:49: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 33 39 4F 00 00 00 F9 1D 47 00 1C 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C6 78 03 00 F4 03 04 00 81 DF 14 67 B6 04 01 00 00 45 D8 39 F6 1A 13 71 DC [16:49:08]CommunicateWithHost err = 0 [16:49:08]CheckOFDResponse [16:49:08]1017 (14) - 77093643461234 [16:49:08]1041 (16) - 0000000000871839 [16:49:08]1040 (4) - 227526 [16:49:08]1012 (4) - 20.10.2024 10:46 [16:49:08]1206 (1) - 0 [16:49:08]OFD Sender: Remove packet 227526 [16:49:08]ProducePacketName [16:49:08]name=ofd_packets/00227526 [16:49:08]NVStorageDeleteData [16:49:08]Write to MH i2c: 01 00 00 8C 09 95 [16:49:08]Write i2c OK [16:49:08]MH_I2C_Read... [16:49:08]Read from MH i2c: 01 [16:49:08]MH_I2C_Read... [16:49:08]Read from MH i2c: 01 07 00 [16:49:08]MH_I2C_Read... [16:49:08]Read from MH i2c: 01 07 00 8C 09 00 00 00 00 00 02 0D AB [16:49:08]RasterBufferAndPrint [16:49:08]line [16:49:08]line [16:49:08]line [16:49:08]line [16:49:08]line [16:49:08]written 0, free lines is 3336 [16:49:08]process_action close_receipt done [16:49:08]requested_data is exist [16:49:08]produce_requested_data [16:49:08]requested_item fm.sn is exist - process it [16:49:08]wFMCommunicate request_size=4 [16:49:08]MH_SAM_APDU [16:49:08]CAPDU: 80 11 00 00 [16:49:08]Write to MH i2c: E2 08 00 93 09 80 11 00 00 00 00 00 00 16 [16:49:08]Write i2c OK [16:49:08]MH_I2C_Read... [16:49:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:08]Read from MH i2c: E2 [16:49:08]MH_I2C_Read... [16:49:08]Read from MH i2c: E2 17 00 [16:49:08]MH_I2C_Read... [16:49:08]Read from MH i2c: E2 17 00 93 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 6D [16:49:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [16:49:08]wFMCommunicate OK [16:49:08]requested_item fd.num is exist - process it [16:49:08]SAM_PROTO_GetFieldsCounters [16:49:08]wFMCommunicate request_size=4 [16:49:08]MH_SAM_APDU [16:49:08]CAPDU: 80 13 00 00 [16:49:08]Write to MH i2c: E2 08 00 94 09 80 13 00 00 00 00 00 00 19 [16:49:08]Write i2c OK [16:49:08]MH_I2C_Read... [16:49:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:49:08]Read from MH i2c: E2 [16:49:08]MH_I2C_Read... [16:49:08]Read from MH i2c: E2 62 00 [16:49:08]MH_I2C_Read... [16:49:08]Read from MH i2c: E2 62 00 94 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 C6 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 76 01 00 00 5E 04 04 00 76 01 00 00 57 04 04 00 77 01 00 00 19 04 04 00 00 00 00 00 90 00 FF [16:49: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 C6 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 76 01 00 00 5E 04 04 00 76 01 00 00 57 04 04 00 77 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:49:08]wFMCommunicate OK [16:49:08]SAM_PROTO_GetFieldsCounters done [16:49:08]requested_item shift.num is exist - process it [16:49:08]requested_item shift.opened is exist - process it [16:49:08]req_shift_opened [16:49:08]FM_GetShiftState [16:49:08]SAM_PROTO_GetShiftState [16:49:08]wFMCommunicate request_size=4 [16:49:08]MH_SAM_APDU [16:49:08]CAPDU: 80 13 01 00 [16:49:08]Write to MH i2c: E2 08 00 95 09 80 13 01 00 00 00 00 00 1B [16:49:08]Write i2c OK [16:49:08]MH_I2C_Read... [16:49:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:49:08]Read from MH i2c: E2 [16:49:08]MH_I2C_Read... [16:49:08]Read from MH i2c: E2 0E 00 [16:49:08]MH_I2C_Read... [16:49:08]Read from MH i2c: E2 0E 00 95 09 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 35 [16:49:08]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [16:49:08]wFMCommunicate OK [16:49:08]SAM_PROTO_GetShiftState done [16:49:08]FM_GetShiftState done [16:49:08]req_shift_opened done [16:49:08]requested_item shift.open_date is exist - process it [16:49:08]req_shift_open_date [16:49:08]req_shift_open_date done [16:49:08]produce_requested_data done [16:49:08]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227526,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [16:49:08]process_action_free close_receipt [16:49:08]json_value_free [16:49:08]json_value_free done [16:49:08]process_json_proto returns [16:49:08]Send response to host [16:49:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227526,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [16:49:08]free response buf [16:49:08]execute_script done [16:49:08]execute_script returns [16:49:08]free content buf [16:49:08]Sock 9.Close socket [16:49:08]Sock 9.Thread stoped [16:49:08]OFD Sender: No OFD packet to send [16:49:09]accept exits with 7 [16:49:09]New connection [16:49:09]New thread 3067362660 created [16:49:09]Thread 3067219300 joined [16:49:09]Waiting for new connection... [16:49:09] Sock 7.Parse request [16:49:09]Sock 7.Check first char [16:49:09]Sock 7.First char is OK [16:49:09]request: POST /json_proto HTTP/1.0 [16:49:09]Method: POST [16:49:09]URL: /json_proto [16:49:09]Method is POST - this is cgi request [16:49:09]url: /json_proto [16:49:09]query_string will be loaded in cgi processing [16:49:09]execute_cgi json_proto POST (null) [16:49:09]execute_cgi path=json_proto method=POST [16:49:09]POST find Content-Length [16:49:09]Host: 172.17.44.195:8080 [16:49:09]Content-Length: 678 [16:49:09]Content-Type: application/json [16:49:09] [16:49:09]POST finish read [16:49:09]Found Content-Length = 678 [16:49:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963153", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:49:09]execute_script... [16:49:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963153", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:49:09]POST & json_proto [16:49:09]process_json_proto [16:49:09]json parsed OK: [16:49:09]protocol is kg_v1.0 [16:49:09]action value=close_receipt [16:49:09]process_action close_receipt [16:49:09]cmd_close_receipt [16:49:09]MH_GetDate [16:49:09]Write to MH i2c: F0 00 00 96 09 8E [16:49:09]Write i2c OK [16:49:09]MH_I2C_Read... [16:49:09]Read from MH i2c: F0 [16:49:09]MH_I2C_Read... [16:49:09]Read from MH i2c: F0 09 00 [16:49:09]MH_I2C_Read... [16:49:09]Read from MH i2c: F0 09 00 96 09 00 86 34 15 67 82 C9 CF 66 4D [16:49:09]GetLastDocTimeStamp 1729442947 [16:49:09]current date 1729442950 [16:49:09]FM_GetShiftState [16:49:09]SAM_PROTO_GetShiftState [16:49:09]wFMCommunicate request_size=4 [16:49:09]MH_SAM_APDU [16:49:09]CAPDU: 80 13 01 00 [16:49:09]Write to MH i2c: E2 08 00 97 09 80 13 01 00 00 00 00 00 1D [16:49:09]Write i2c OK [16:49:09]MH_I2C_Read... [16:49:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:49:09]Read from MH i2c: E2 [16:49:09]MH_I2C_Read... [16:49:09]Read from MH i2c: E2 0E 00 [16:49:09]MH_I2C_Read... [16:49:09]Read from MH i2c: E2 0E 00 97 09 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 37 [16:49:09]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [16:49:09]wFMCommunicate OK [16:49:09]SAM_PROTO_GetShiftState done [16:49:09]FM_GetShiftState done [16:49:09]opened in 1729383750 [16:49:09]opened+sec_in_day 1729470150 [16:49:09]quantity*price = 50041 [16:49:09]sum+1 = 50042 [16:49:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 375 20.10.2024 16:49 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227527 ФПД: 65238591382034 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T164910&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227527&fm=65238591382034&tin=02508201610067®Number=0000000000091685&sum=50000 [16:49:10]StoreToDocumentArchive [16:49:10]shift 533 fd 227527 [16:49:10]save to /storage/0533/doc_00227527 [16:49:10]save last doc name /storage/0533/doc_00227527 to /storage/kkm_last_doc_name [16:49:10]save OK [16:49:10]Clear old archive folders... [16:49:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:49:10]tlvbuf is 00DCAC00 [16:49:10]SAM_PROTO_ClearQueue [16:49:10]wFMCommunicate request_size=4 [16:49:10]MH_SAM_APDU [16:49:10]CAPDU: 80 09 00 00 [16:49:10]Write to MH i2c: E2 08 00 A4 09 80 09 00 00 00 00 00 00 1F [16:49:10]Write i2c OK [16:49:10]MH_I2C_Read... [16:49:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:49:10]Read from MH i2c: E2 [16:49:10]MH_I2C_Read... [16:49:10]Read from MH i2c: E2 03 00 [16:49:10]MH_I2C_Read... [16:49:10]Read from MH i2c: E2 03 00 A4 09 00 90 00 21 [16:49:10]RAPDU: 90 00 [16:49:10]wFMCommunicate OK [16:49:10]SAM_PROTO_ClearQueue done [16:49:10]KKMCreateOFDPacket [16:49:10]OFDProtocolAddRootSTLVToBuf [16:49:10]FM_MakeSignedData [16:49:10]FM_MakeSignedData [16:49:10]SAM_PROTO_SignData [16:49:10]wFMCommunicate request_size=4 [16:49:10]MH_SAM_APDU [16:49:10]CAPDU: 80 0D 01 02 [16:49:10]Write to MH i2c: E2 08 00 A5 09 80 0D 01 02 00 00 00 00 27 [16:49:10]Write i2c OK [16:49:10]MH_I2C_Read... [16:49:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:49:10]Read from MH i2c: E2 [16:49:10]MH_I2C_Read... [16:49:10]Read from MH i2c: E2 03 00 [16:49:10]MH_I2C_Read... [16:49:10]Read from MH i2c: E2 03 00 A5 09 00 90 00 22 [16:49:10]RAPDU: 90 00 [16:49:10]wFMCommunicate OK [16:49:10]wFMCommunicate request_size=255 [16:49:10]MH_SAM_APDU [16:49:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 01 00 00 F4 03 04 00 86 34 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C7 78 03 00 35 04 06 00 3B [16:49:10]Write to MH i2c: E2 02 01 A6 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 01 00 00 F4 03 04 00 86 34 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C7 78 03 00 35 04 06 00 3B 00 00 00 [16:49:10]Write i2c OK [16:49:10]MH_I2C_Read... [16:49:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:11]Read from MH i2c: E2 [16:49:11]MH_I2C_Read... [16:49:11]Read from MH i2c: E2 03 00 [16:49:11]MH_I2C_Read... [16:49:11]Read from MH i2c: E2 03 00 A6 09 00 90 00 23 [16:49:11]RAPDU: 90 00 [16:49:11]wFMCommunicate OK [16:49:11]wFMCommunicate request_size=10 [16:49:11]MH_SAM_APDU [16:49:11]CAPDU: 80 0D 02 02 05 55 8B 10 A2 12 [16:49:11]Write to MH i2c: E2 0D 00 A7 09 80 0D 02 02 05 00 55 8B 10 A2 12 00 00 D8 [16:49:11]Write i2c OK [16:49:11]MH_I2C_Read... [16:49:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:11]Read from MH i2c: E2 [16:49:11]MH_I2C_Read... [16:49:11]Read from MH i2c: E2 03 00 [16:49:11]MH_I2C_Read... [16:49:11]Read from MH i2c: E2 03 00 A7 09 00 90 00 24 [16:49:11]RAPDU: 90 00 [16:49:11]wFMCommunicate OK [16:49:11]wFMCommunicate request_size=4 [16:49:11]MH_SAM_APDU [16:49:11]CAPDU: 80 0D 03 02 [16:49:11]Write to MH i2c: E2 08 00 A8 09 80 0D 03 02 00 00 00 00 2C [16:49:11]Write i2c OK [16:49:11]MH_I2C_Read... [16:49:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:49:11]Read from MH i2c: E2 [16:49:11]MH_I2C_Read... [16:49:11]Read from MH i2c: E2 0B 00 [16:49:11]MH_I2C_Read... [16:49:11]Read from MH i2c: E2 0B 00 A8 09 00 C6 9C 7F C0 29 A0 2D 2F 90 00 F3 [16:49:11]RAPDU: C6 9C 7F C0 29 A0 2D 2F 90 00 [16:49:11]wFMCommunicate OK [16:49:11]SAM_PROTO_SignData done [16:49:11]FM_MakeSignedData done [16:49:11]CreateOFDProtocolMessage [16:49:11]wFMCommunicate request_size=4 [16:49:11]MH_SAM_APDU [16:49:11]CAPDU: 80 11 00 00 [16:49:11]Write to MH i2c: E2 08 00 A9 09 80 11 00 00 00 00 00 00 2C [16:49:11]Write i2c OK [16:49:11]MH_I2C_Read... [16:49:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:11]Read from MH i2c: E2 [16:49:11]MH_I2C_Read... [16:49:11]Read from MH i2c: E2 17 00 [16:49:11]MH_I2C_Read... [16:49:11]Read from MH i2c: E2 17 00 A9 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 83 [16:49:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [16:49:11]wFMCommunicate OK [16:49:11]CreateOFDProtocolMessage done [16:49:11]OFDSenderStorePacket 227527 [16:49:11]StoreOFDPacket docnum=227527 [16:49:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 BD 1B 07 01 8B 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 01 00 00 F4 03 04 00 86 34 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C7 78 03 00 35 04 06 00 3B 55 8B 10 A2 12 C6 9C 7F C0 29 A0 2D 2F [16:49:11]CheckFolder [16:49:11]dirname=/storage/ofd_packets [16:49:11]CheckFolder done [16:49:11]ProducePacketName [16:49:11]name=ofd_packets/00227527 [16:49:11]NVStorageSaveData ofd_packets/00227527 [16:49:11]File name is /storage/ofd_packets/00227527 [16:49:11]Write 301 bytes [16:49:11]NVStorageSaveData done [16:49:11]OFDSenderStorePacket done [16:49:11]KKMCreateOFDPacket done [16:49:11]NVStorageSaveData kkm_last_timestamp [16:49:11]File name is /storage/kkm_last_timestamp [16:49:11]Write 4 bytes [16:49:11]NVStorageSaveData done [16:49:11]ExternCall_PrintAddStr [16:49:11]wPrintStart [16:49:11]Write to MH i2c: 01 00 00 AA 09 B3 [16:49:11]Write i2c OK [16:49:11]MH_I2C_Read... [16:49:11]Read from MH i2c: 01 [16:49:11]MH_I2C_Read... [16:49:11]Read from MH i2c: 01 07 00 [16:49:11]MH_I2C_Read... [16:49:11]Read from MH i2c: 01 07 00 AA 09 00 00 00 00 00 FF 0F C8 [16:49:11]RasterBufferAndPrint [16:49:11]line Счет N : (1)1963153 [16:49:11]line ИНН: 02508201610067 [16:49:11]line Контрольно-Кассовый Чек [16:49:11]line ПРОДАЖА [16:49:11]line ТРК (МРК, ГНК) : 53 [16:49:11]line Товар: 2710124130 [16:49:11]line Аи-92-К-5 [16:49:11]line 7.480 * 66.90 [16:49:11]line = 500.41 [16:49:11]line НДС 12% НСП 1% [16:49:11]line > о реализуемом товаре [16:49:11]line ОКРУГЛЕНИЕ: -0.41 [16:49:11]line ИТОГО: 500.00 [16:49:11]line Внесено: 500.00 [16:49:11]line СДАЧА: 0.00 [16:49:11]line НСП 1% : 4.43 [16:49:11]line НДС 12% : 53.14 [16:49:11]line Наличными: 500.00 [16:49:11]line Безнал.: 0.00 [16:49:11]line Место: АЗС № 133 "Партнер Нефть" [16:49:11]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [16:49:11]line СНО: Общий режим [16:49:11]line Чек 375 20.10.2024 16:49 [16:49:11]line Смена: 533 ФФД: 1.0 [16:49:11]line ЗНМ: 0300000091 [16:49:11]line РНМ: 0000000000091685 [16:49:11]line Версия ККМ: 001 [16:49:11]line ФМ: 0000000000871839 [16:49:11]line ФД: 227527 [16:49:11]line ФПД: 65238591382034 [16:49:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T164910&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227527&fm=65238591382034&tin=02508201610067®Number=0000000000091685&sum=50000 [16:49:11]OFD Sender: Processing packet 227527 [packets to send 38, broken 37] [16:49:11]ProducePacketName [16:49:11]name=ofd_packets/00227527 [16:49:11]OFD Sender: To server: pG, [16:49:11]CommunicateWithHost lk.salyk.kg:30040 [16:49:11]ConnectInit lk.salyk.kg [16:49:11]written 0, free lines is 4095 [16:49:11]Connected sock=10 [16:49:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 BD 1B 07 01 8B 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 01 00 00 F4 03 04 00 86 34 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C7 78 03 00 35 04 06 00 3B 55 8B 10 A2 12 C6 9C 7F C0 29 A0 2D 2F [16:49:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 97 2F 47 00 59 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 33 39 10 04 04 00 C7 78 03 00 F4 03 04 00 85 DF 14 67 B6 04 01 00 00 37 76 F5 00 50 3B AD 5A [16:49:11]CommunicateWithHost err = 0 [16:49:11]CheckOFDResponse [16:49:11]1017 (14) - 77093643461234 [16:49:11]1041 (16) - 0000000000871839 [16:49:11]1040 (4) - 227527 [16:49:11]1012 (4) - 20.10.2024 10:46 [16:49:11]1206 (1) - 0 [16:49:11]OFD Sender: Remove packet 227527 [16:49:11]ProducePacketName [16:49:11]name=ofd_packets/00227527 [16:49:11]NVStorageDeleteData [16:49:12]Write to MH i2c: 01 00 00 D4 09 DD [16:49:12]Write i2c OK [16:49:12]MH_I2C_Read... [16:49:12]Read from MH i2c: 01 [16:49:12]MH_I2C_Read... [16:49:12]Read from MH i2c: 01 07 00 [16:49:12]MH_I2C_Read... [16:49:12]Read from MH i2c: 01 07 00 D4 09 00 00 00 00 00 FE 0C EE [16:49:12]RasterBufferAndPrint [16:49:12]line [16:49:12]line [16:49:12]line [16:49:12]line [16:49:12]line [16:49:12]written 0, free lines is 3338 [16:49:12]process_action close_receipt done [16:49:12]requested_data is exist [16:49:12]produce_requested_data [16:49:12]requested_item fm.sn is exist - process it [16:49:12]wFMCommunicate request_size=4 [16:49:12]MH_SAM_APDU [16:49:12]CAPDU: 80 11 00 00 [16:49:12]Write to MH i2c: E2 08 00 DB 09 80 11 00 00 00 00 00 00 5E [16:49:12]Write i2c OK [16:49:12]MH_I2C_Read... [16:49:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:12]Read from MH i2c: E2 [16:49:12]MH_I2C_Read... [16:49:12]Read from MH i2c: E2 17 00 [16:49:12]MH_I2C_Read... [16:49:12]Read from MH i2c: E2 17 00 DB 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B5 [16:49:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [16:49:12]wFMCommunicate OK [16:49:12]requested_item fd.num is exist - process it [16:49:12]SAM_PROTO_GetFieldsCounters [16:49:12]wFMCommunicate request_size=4 [16:49:12]MH_SAM_APDU [16:49:12]CAPDU: 80 13 00 00 [16:49:12]Write to MH i2c: E2 08 00 DC 09 80 13 00 00 00 00 00 00 61 [16:49:12]Write i2c OK [16:49:12]MH_I2C_Read... [16:49:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:49:12]Read from MH i2c: E2 [16:49:12]MH_I2C_Read... [16:49:12]Read from MH i2c: E2 62 00 [16:49:12]MH_I2C_Read... [16:49:12]Read from MH i2c: E2 62 00 DC 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 C7 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 77 01 00 00 5E 04 04 00 77 01 00 00 57 04 04 00 78 01 00 00 19 04 04 00 00 00 00 00 90 00 4B [16:49: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 C7 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 77 01 00 00 5E 04 04 00 77 01 00 00 57 04 04 00 78 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:49:12]wFMCommunicate OK [16:49:12]SAM_PROTO_GetFieldsCounters done [16:49:12]requested_item shift.num is exist - process it [16:49:12]requested_item shift.opened is exist - process it [16:49:12]req_shift_opened [16:49:12]FM_GetShiftState [16:49:12]SAM_PROTO_GetShiftState [16:49:12]wFMCommunicate request_size=4 [16:49:12]MH_SAM_APDU [16:49:12]CAPDU: 80 13 01 00 [16:49:12]Write to MH i2c: E2 08 00 DD 09 80 13 01 00 00 00 00 00 63 [16:49:12]Write i2c OK [16:49:12]MH_I2C_Read... [16:49:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:49:12]Read from MH i2c: E2 [16:49:12]MH_I2C_Read... [16:49:12]Read from MH i2c: E2 0E 00 [16:49:12]MH_I2C_Read... [16:49:12]Read from MH i2c: E2 0E 00 DD 09 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 7D [16:49:12]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [16:49:12]wFMCommunicate OK [16:49:12]SAM_PROTO_GetShiftState done [16:49:12]FM_GetShiftState done [16:49:12]req_shift_opened done [16:49:12]requested_item shift.open_date is exist - process it [16:49:12]req_shift_open_date [16:49:12]req_shift_open_date done [16:49:12]produce_requested_data done [16:49:12]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227527,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [16:49:12]process_action_free close_receipt [16:49:12]json_value_free [16:49:12]json_value_free done [16:49:12]process_json_proto returns [16:49:12]Send response to host [16:49:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227527,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [16:49:12]free response buf [16:49:12]execute_script done [16:49:12]execute_script returns [16:49:12]free content buf [16:49:12]Sock 7.Close socket [16:49:12]Sock 7.Thread stoped [16:49:12]OFD Sender: No OFD packet to send [16:49:17]OFD Sender: No OFD packet to send [16:49:22]OFD Sender: No OFD packet to send [16:49:27]OFD Sender: No OFD packet to send [16:49:32]OFD Sender: No OFD packet to send [16:49:37]OFD Sender: No OFD packet to send [16:49:42]OFD Sender: No OFD packet to send [16:49:47]OFD Sender: No OFD packet to send [16:49:52]OFD Sender: No OFD packet to send [16:49:57]OFD Sender: No OFD packet to send [16:50:01]accept exits with 9 [16:50:01]New connection [16:50:01]New thread 3067219300 created [16:50:01]Thread 3067362660 joined [16:50:01]Waiting for new connection... [16:50:01] Sock 9.Parse request [16:50:01]Sock 9.Check first char [16:50:01]Sock 9.First char is OK [16:50:01]request: POST /json_proto HTTP/1.0 [16:50:01]Method: POST [16:50:01]URL: /json_proto [16:50:01]Method is POST - this is cgi request [16:50:01]url: /json_proto [16:50:01]query_string will be loaded in cgi processing [16:50:01]execute_cgi json_proto POST (null) [16:50:01]execute_cgi path=json_proto method=POST [16:50:01]POST find Content-Length [16:50:01]Host: 172.17.44.195:8080 [16:50:01]Content-Length: 678 [16:50:01]Content-Type: application/json [16:50:01] [16:50:01]POST finish read [16:50:01]Found Content-Length = 678 [16:50:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963154", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:01]execute_script... [16:50:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963154", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:01]POST & json_proto [16:50:01]process_json_proto [16:50:01]json parsed OK: [16:50:01]protocol is kg_v1.0 [16:50:01]action value=close_receipt [16:50:01]process_action close_receipt [16:50:01]cmd_close_receipt [16:50:01]MH_GetDate [16:50:01]Write to MH i2c: F0 00 00 DE 09 D6 [16:50:01]Write i2c OK [16:50:01]MH_I2C_Read... [16:50:01]Read from MH i2c: F0 [16:50:01]MH_I2C_Read... [16:50:01]Read from MH i2c: F0 09 00 [16:50:01]MH_I2C_Read... [16:50:01]Read from MH i2c: F0 09 00 DE 09 00 BB 34 15 67 82 C9 CF 66 CA [16:50:01]GetLastDocTimeStamp 1729442950 [16:50:01]current date 1729443003 [16:50:01]FM_GetShiftState [16:50:01]SAM_PROTO_GetShiftState [16:50:01]wFMCommunicate request_size=4 [16:50:01]MH_SAM_APDU [16:50:01]CAPDU: 80 13 01 00 [16:50:01]Write to MH i2c: E2 08 00 DF 09 80 13 01 00 00 00 00 00 65 [16:50:01]Write i2c OK [16:50:01]MH_I2C_Read... [16:50:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:01]Read from MH i2c: E2 [16:50:01]MH_I2C_Read... [16:50:01]Read from MH i2c: E2 0E 00 [16:50:01]MH_I2C_Read... [16:50:01]Read from MH i2c: E2 0E 00 DF 09 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 7F [16:50:01]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [16:50:01]wFMCommunicate OK [16:50:01]SAM_PROTO_GetShiftState done [16:50:01]FM_GetShiftState done [16:50:01]opened in 1729383750 [16:50:01]opened+sec_in_day 1729470150 [16:50:01]quantity*price = 50010 [16:50:01]sum+1 = 50012 [16:50:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 376 20.10.2024 16:50 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227528 ФПД: 72658353181244 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T165003&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227528&fm=72658353181244&tin=02508201610067®Number=0000000000091685&sum=50000 [16:50:03]StoreToDocumentArchive [16:50:03]shift 533 fd 227528 [16:50:03]save to /storage/0533/doc_00227528 [16:50:03]save last doc name /storage/0533/doc_00227528 to /storage/kkm_last_doc_name [16:50:03]save OK [16:50:03]Clear old archive folders... [16:50:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:50:03]tlvbuf is 00DB5820 [16:50:03]SAM_PROTO_ClearQueue [16:50:03]wFMCommunicate request_size=4 [16:50:03]MH_SAM_APDU [16:50:03]CAPDU: 80 09 00 00 [16:50:03]Write to MH i2c: E2 08 00 EC 09 80 09 00 00 00 00 00 00 67 [16:50:03]Write i2c OK [16:50:03]MH_I2C_Read... [16:50:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:50:03]Read from MH i2c: E2 [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: E2 03 00 [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: E2 03 00 EC 09 00 90 00 69 [16:50:03]RAPDU: 90 00 [16:50:03]wFMCommunicate OK [16:50:03]SAM_PROTO_ClearQueue done [16:50:03]KKMCreateOFDPacket [16:50:03]OFDProtocolAddRootSTLVToBuf [16:50:03]FM_MakeSignedData [16:50:03]FM_MakeSignedData [16:50:03]SAM_PROTO_SignData [16:50:03]wFMCommunicate request_size=4 [16:50:03]MH_SAM_APDU [16:50:03]CAPDU: 80 0D 01 02 [16:50:03]Write to MH i2c: E2 08 00 ED 09 80 0D 01 02 00 00 00 00 6F [16:50:03]Write i2c OK [16:50:03]MH_I2C_Read... [16:50:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:50:03]Read from MH i2c: E2 [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: E2 03 00 [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: E2 03 00 ED 09 00 90 00 6A [16:50:03]RAPDU: 90 00 [16:50:03]wFMCommunicate OK [16:50:03]wFMCommunicate request_size=255 [16:50:03]MH_SAM_APDU [16:50: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 01 00 00 F4 03 04 00 BB 34 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C8 78 03 00 35 04 06 00 42 [16:50:03]Write to MH i2c: E2 02 01 EE 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 01 00 00 F4 03 04 00 BB 34 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C8 78 03 00 35 04 06 00 42 00 00 5E [16:50:03]Write i2c OK [16:50:03]MH_I2C_Read... [16:50:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:03]Read from MH i2c: E2 [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: E2 03 00 [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: E2 03 00 EE 09 00 90 00 6B [16:50:03]RAPDU: 90 00 [16:50:03]wFMCommunicate OK [16:50:03]wFMCommunicate request_size=10 [16:50:03]MH_SAM_APDU [16:50:03]CAPDU: 80 0D 02 02 05 15 17 54 D2 3C [16:50:03]Write to MH i2c: E2 0D 00 EF 09 80 0D 02 02 05 00 15 17 54 D2 3C 00 00 0A [16:50:03]Write i2c OK [16:50:03]MH_I2C_Read... [16:50:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:03]Read from MH i2c: E2 [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: E2 03 00 [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: E2 03 00 EF 09 00 90 00 6C [16:50:03]RAPDU: 90 00 [16:50:03]wFMCommunicate OK [16:50:03]wFMCommunicate request_size=4 [16:50:03]MH_SAM_APDU [16:50:03]CAPDU: 80 0D 03 02 [16:50:03]Write to MH i2c: E2 08 00 F0 09 80 0D 03 02 00 00 00 00 74 [16:50:03]Write i2c OK [16:50:03]MH_I2C_Read... [16:50:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:50:03]Read from MH i2c: E2 [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: E2 0B 00 [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: E2 0B 00 F0 09 00 A1 2C B5 0F A3 9C 75 4E 90 00 08 [16:50:03]RAPDU: A1 2C B5 0F A3 9C 75 4E 90 00 [16:50:03]wFMCommunicate OK [16:50:03]SAM_PROTO_SignData done [16:50:03]FM_MakeSignedData done [16:50:03]CreateOFDProtocolMessage [16:50:03]wFMCommunicate request_size=4 [16:50:03]MH_SAM_APDU [16:50:03]CAPDU: 80 11 00 00 [16:50:03]Write to MH i2c: E2 08 00 F1 09 80 11 00 00 00 00 00 00 74 [16:50:03]Write i2c OK [16:50:03]MH_I2C_Read... [16:50:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:03]Read from MH i2c: E2 [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: E2 17 00 [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: E2 17 00 F1 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 CB [16:50:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [16:50:03]wFMCommunicate OK [16:50:03]CreateOFDProtocolMessage done [16:50:03]OFDSenderStorePacket 227528 [16:50:03]StoreOFDPacket docnum=227528 [16:50:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 B3 46 07 01 DD E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 01 00 00 F4 03 04 00 BB 34 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C8 78 03 00 35 04 06 00 42 15 17 54 D2 3C A1 2C B5 0F A3 9C 75 4E [16:50:03]CheckFolder [16:50:03]dirname=/storage/ofd_packets [16:50:03]CheckFolder done [16:50:03]ProducePacketName [16:50:03]name=ofd_packets/00227528 [16:50:03]NVStorageSaveData ofd_packets/00227528 [16:50:03]File name is /storage/ofd_packets/00227528 [16:50:03]Write 301 bytes [16:50:03]NVStorageSaveData done [16:50:03]OFDSenderStorePacket done [16:50:03]KKMCreateOFDPacket done [16:50:03]NVStorageSaveData kkm_last_timestamp [16:50:03]File name is /storage/kkm_last_timestamp [16:50:03]Write 4 bytes [16:50:03]NVStorageSaveData done [16:50:03]ExternCall_PrintAddStr [16:50:03]wPrintStart [16:50:03]Write to MH i2c: 01 00 00 F2 09 FB [16:50:03]Write i2c OK [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: 01 [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: 01 07 00 [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: 01 07 00 F2 09 00 00 00 00 00 FF 0F 10 [16:50:03]RasterBufferAndPrint [16:50:03]line Счет N : (1)1963154 [16:50:03]line ИНН: 02508201610067 [16:50:03]line Контрольно-Кассовый Чек [16:50:03]line ПРОДАЖА [16:50:03]line ТРК (МРК, ГНК) : 34 [16:50:03]line Товар: 2710124500 [16:50:03]line Аи-95-К-5 [16:50:03]line 6.740 * 74.20 [16:50:03]line = 500.11 [16:50:03]line НДС 12% НСП 1% [16:50:03]line > о реализуемом товаре [16:50:03]line ОКРУГЛЕНИЕ: -0.11 [16:50:03]line ИТОГО: 500.00 [16:50:03]line Внесено: 500.00 [16:50:03]line СДАЧА: 0.00 [16:50:03]line НСП 1% : 4.43 [16:50:03]line НДС 12% : 53.11 [16:50:03]line Наличными: 500.00 [16:50:03]line Безнал.: 0.00 [16:50:03]line Место: АЗС № 133 "Партнер Нефть" [16:50:03]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [16:50:03]line СНО: Общий режим [16:50:03]line Чек 376 20.10.2024 16:50 [16:50:03]line Смена: 533 ФФД: 1.0 [16:50:03]line ЗНМ: 0300000091 [16:50:03]line РНМ: 0000000000091685 [16:50:03]line Версия ККМ: 001 [16:50:03]line ФМ: 0000000000871839 [16:50:03]line ФД: 227528 [16:50:03]line ФПД: 72658353181244 [16:50:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T165003&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227528&fm=72658353181244&tin=02508201610067®Number=0000000000091685&sum=50000 [16:50:03]written 0, free lines is 4095 [16:50:03]OFD Sender: Processing packet 227528 [packets to send 38, broken 37] [16:50:03]ProducePacketName [16:50:03]name=ofd_packets/00227528 [16:50:03]OFD Sender: To server: pG, [16:50:03]CommunicateWithHost lk.salyk.kg:30040 [16:50:03]ConnectInit lk.salyk.kg [16:50:04]Connected sock=11 [16:50: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 33 39 0F 01 00 00 B3 46 07 01 DD E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 01 00 00 F4 03 04 00 BB 34 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C8 78 03 00 35 04 06 00 42 15 17 54 D2 3C A1 2C B5 0F A3 9C 75 4E [16:50: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 33 39 4F 00 00 00 EA 67 47 00 06 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 33 39 10 04 04 00 C8 78 03 00 F4 03 04 00 B9 DF 14 67 B6 04 01 00 00 64 5E CF FF 32 14 0E 5A [16:50:04]CommunicateWithHost err = 0 [16:50:04]CheckOFDResponse [16:50:04]1017 (14) - 77093643461234 [16:50:04]1041 (16) - 0000000000871839 [16:50:04]1040 (4) - 227528 [16:50:04]1012 (4) - 20.10.2024 10:47 [16:50:04]1206 (1) - 0 [16:50:04]OFD Sender: Remove packet 227528 [16:50:04]ProducePacketName [16:50:04]name=ofd_packets/00227528 [16:50:04]NVStorageDeleteData [16:50:04]Write to MH i2c: 01 00 00 1C 0A 26 [16:50:04]Write i2c OK [16:50:04]MH_I2C_Read... [16:50:04]Read from MH i2c: 01 [16:50:04]MH_I2C_Read... [16:50:04]Read from MH i2c: 01 07 00 [16:50:04]MH_I2C_Read... [16:50:04]Read from MH i2c: 01 07 00 1C 0A 00 00 00 00 00 F7 0C 30 [16:50:04]RasterBufferAndPrint [16:50:04]line [16:50:04]line [16:50:04]line [16:50:04]line [16:50:04]line [16:50:04]written 0, free lines is 3326 [16:50:04]process_action close_receipt done [16:50:04]requested_data is exist [16:50:04]produce_requested_data [16:50:04]requested_item fm.sn is exist - process it [16:50:04]wFMCommunicate request_size=4 [16:50:04]MH_SAM_APDU [16:50:04]CAPDU: 80 11 00 00 [16:50:04]Write to MH i2c: E2 08 00 23 0A 80 11 00 00 00 00 00 00 A7 [16:50:04]Write i2c OK [16:50:04]MH_I2C_Read... [16:50:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:04]Read from MH i2c: E2 [16:50:04]MH_I2C_Read... [16:50:04]Read from MH i2c: E2 17 00 [16:50:04]MH_I2C_Read... [16:50:04]Read from MH i2c: E2 17 00 23 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 FE [16:50:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [16:50:04]wFMCommunicate OK [16:50:04]requested_item fd.num is exist - process it [16:50:04]SAM_PROTO_GetFieldsCounters [16:50:04]wFMCommunicate request_size=4 [16:50:04]MH_SAM_APDU [16:50:04]CAPDU: 80 13 00 00 [16:50:04]Write to MH i2c: E2 08 00 24 0A 80 13 00 00 00 00 00 00 AA [16:50:04]Write i2c OK [16:50:04]MH_I2C_Read... [16:50:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:50:04]Read from MH i2c: E2 [16:50:04]MH_I2C_Read... [16:50:04]Read from MH i2c: E2 62 00 [16:50:04]MH_I2C_Read... [16:50:04]Read from MH i2c: E2 62 00 24 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 C8 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 78 01 00 00 5E 04 04 00 78 01 00 00 57 04 04 00 79 01 00 00 19 04 04 00 00 00 00 00 90 00 98 [16:50:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 C8 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 78 01 00 00 5E 04 04 00 78 01 00 00 57 04 04 00 79 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:50:04]wFMCommunicate OK [16:50:04]SAM_PROTO_GetFieldsCounters done [16:50:04]requested_item shift.num is exist - process it [16:50:04]requested_item shift.opened is exist - process it [16:50:04]req_shift_opened [16:50:04]FM_GetShiftState [16:50:04]SAM_PROTO_GetShiftState [16:50:04]wFMCommunicate request_size=4 [16:50:04]MH_SAM_APDU [16:50:04]CAPDU: 80 13 01 00 [16:50:04]Write to MH i2c: E2 08 00 25 0A 80 13 01 00 00 00 00 00 AC [16:50:04]Write i2c OK [16:50:04]MH_I2C_Read... [16:50:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:04]Read from MH i2c: E2 [16:50:04]MH_I2C_Read... [16:50:04]Read from MH i2c: E2 0E 00 [16:50:04]MH_I2C_Read... [16:50:04]Read from MH i2c: E2 0E 00 25 0A 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 C6 [16:50:04]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [16:50:04]wFMCommunicate OK [16:50:04]SAM_PROTO_GetShiftState done [16:50:04]FM_GetShiftState done [16:50:04]req_shift_opened done [16:50:04]requested_item shift.open_date is exist - process it [16:50:04]req_shift_open_date [16:50:04]req_shift_open_date done [16:50:04]produce_requested_data done [16:50:04]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227528,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [16:50:04]process_action_free close_receipt [16:50:04]json_value_free [16:50:04]json_value_free done [16:50:04]process_json_proto returns [16:50:04]Send response to host [16:50:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227528,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [16:50:04]free response buf [16:50:04]execute_script done [16:50:04]execute_script returns [16:50:04]free content buf [16:50:04]Sock 9.Close socket [16:50:04]Sock 9.Thread stoped [16:50:04]OFD Sender: No OFD packet to send [16:50:09]OFD Sender: No OFD packet to send [16:50:14]OFD Sender: No OFD packet to send [16:50:19]OFD Sender: No OFD packet to send [16:50:24]OFD Sender: No OFD packet to send [16:50:29]OFD Sender: No OFD packet to send [16:50:34]OFD Sender: No OFD packet to send [16:50:39]OFD Sender: No OFD packet to send [16:50:44]OFD Sender: No OFD packet to send [16:50:49]OFD Sender: No OFD packet to send [16:50:54]OFD Sender: No OFD packet to send [16:50:59]OFD Sender: No OFD packet to send [16:51:04]OFD Sender: No OFD packet to send [16:51:09]OFD Sender: No OFD packet to send [16:51:14]OFD Sender: No OFD packet to send [16:51:19]OFD Sender: No OFD packet to send [16:51:24]OFD Sender: No OFD packet to send [16:51:29]OFD Sender: No OFD packet to send [16:51:34]OFD Sender: No OFD packet to send [16:51:39]OFD Sender: No OFD packet to send [16:51:44]OFD Sender: No OFD packet to send [16:51:49]OFD Sender: No OFD packet to send [16:51:54]accept exits with 7 [16:51:54]New connection [16:51:54]New thread 3067362660 created [16:51:54]Thread 3067219300 joined [16:51:54]Waiting for new connection... [16:51:54] Sock 7.Parse request [16:51:54]Sock 7.Check first char [16:51:54]Sock 7.First char is OK [16:51:54]request: POST /json_proto HTTP/1.0 [16:51:54]Method: POST [16:51:54]URL: /json_proto [16:51:54]Method is POST - this is cgi request [16:51:54]url: /json_proto [16:51:54]query_string will be loaded in cgi processing [16:51:54]execute_cgi json_proto POST (null) [16:51:54]execute_cgi path=json_proto method=POST [16:51:54]POST find Content-Length [16:51:54]Host: 172.17.44.195:8080 [16:51:54]Content-Length: 770 [16:51:54]Content-Type: application/json [16:51:54] [16:51:54]POST finish read [16:51:54]Found Content-Length = 770 [16:51:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963155", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 52.170, "sum" : 3871.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 3871.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:51:54]execute_script... [16:51: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)1963155", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 52.170, "sum" : 3871.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 3871.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:51:54]POST & json_proto [16:51:54]process_json_proto [16:51:54]json parsed OK: [16:51:54]protocol is kg_v1.0 [16:51:54]action value=close_receipt [16:51:54]process_action close_receipt [16:51:54]cmd_close_receipt [16:51:54]MH_GetDate [16:51:54]Write to MH i2c: F0 00 00 26 0A 1F [16:51:54]Write i2c OK [16:51:54]MH_I2C_Read... [16:51:54]Read from MH i2c: F0 [16:51:54]MH_I2C_Read... [16:51:54]Read from MH i2c: F0 09 00 [16:51:54]MH_I2C_Read... [16:51:54]Read from MH i2c: F0 09 00 26 0A 00 2B 35 15 67 82 C9 CF 66 84 [16:51:54]GetLastDocTimeStamp 1729443003 [16:51:54]current date 1729443115 [16:51:54]FM_GetShiftState [16:51:54]SAM_PROTO_GetShiftState [16:51:54]wFMCommunicate request_size=4 [16:51:54]MH_SAM_APDU [16:51:54]CAPDU: 80 13 01 00 [16:51:54]Write to MH i2c: E2 08 00 27 0A 80 13 01 00 00 00 00 00 AE [16:51:54]Write i2c OK [16:51:54]MH_I2C_Read... [16:51:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:51:54]Read from MH i2c: E2 [16:51:54]MH_I2C_Read... [16:51:54]Read from MH i2c: E2 0E 00 [16:51:54]MH_I2C_Read... [16:51:54]Read from MH i2c: E2 0E 00 27 0A 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 C8 [16:51:54]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [16:51:54]wFMCommunicate OK [16:51:54]SAM_PROTO_GetShiftState done [16:51:54]FM_GetShiftState done [16:51:54]opened in 1729383750 [16:51:54]opened+sec_in_day 1729470150 [16:51:54]quantity*price = 387101 [16:51:54]sum+1 = 387102 [16:51:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3871.01 НСП 1% : 34.26 НДС 12% : 411.08 Наличными: 0.00 Безнал.: 3871.01 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 377 20.10.2024 16:51 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 227529 ФПД: 61415817583461 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T165156&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227529&fm=61415817583461&tin=02508201610067®Number=0000000000091685&sum=387101 [16:51:55]StoreToDocumentArchive [16:51:55]shift 533 fd 227529 [16:51:55]save to /storage/0533/doc_00227529 [16:51:55]save last doc name /storage/0533/doc_00227529 to /storage/kkm_last_doc_name [16:51:55]save OK [16:51:55]Clear old archive folders... [16:51:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:51:55]tlvbuf is 00DB5450 [16:51:55]SAM_PROTO_ClearQueue [16:51:55]wFMCommunicate request_size=4 [16:51:55]MH_SAM_APDU [16:51:55]CAPDU: 80 09 00 00 [16:51:55]Write to MH i2c: E2 08 00 34 0A 80 09 00 00 00 00 00 00 B0 [16:51:55]Write i2c OK [16:51:55]MH_I2C_Read... [16:51:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:51:55]Read from MH i2c: E2 [16:51:55]MH_I2C_Read... [16:51:55]Read from MH i2c: E2 03 00 [16:51:55]MH_I2C_Read... [16:51:55]Read from MH i2c: E2 03 00 34 0A 00 90 00 B2 [16:51:55]RAPDU: 90 00 [16:51:55]wFMCommunicate OK [16:51:55]SAM_PROTO_ClearQueue done [16:51:55]KKMCreateOFDPacket [16:51:55]OFDProtocolAddRootSTLVToBuf [16:51:55]FM_MakeSignedData [16:51:55]FM_MakeSignedData [16:51:55]SAM_PROTO_SignData [16:51:55]wFMCommunicate request_size=4 [16:51:55]MH_SAM_APDU [16:51:55]CAPDU: 80 0D 01 02 [16:51:55]Write to MH i2c: E2 08 00 35 0A 80 0D 01 02 00 00 00 00 B8 [16:51:55]Write i2c OK [16:51:55]MH_I2C_Read... [16:51:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:51:55]Read from MH i2c: E2 [16:51:55]MH_I2C_Read... [16:51:55]Read from MH i2c: E2 03 00 [16:51:55]MH_I2C_Read... [16:51:55]Read from MH i2c: E2 03 00 35 0A 00 90 00 B3 [16:51:55]RAPDU: 90 00 [16:51:55]wFMCommunicate OK [16:51:55]wFMCommunicate request_size=255 [16:51:55]MH_SAM_APDU [16:51:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CA CB 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 1D E8 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1D E8 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 A0 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1D E8 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 01 00 00 F4 03 04 00 2C 35 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C9 78 03 00 35 04 06 00 37 [16:51:55]Write to MH i2c: E2 02 01 36 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 CA CB 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 1D E8 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1D E8 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 A0 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1D E8 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 01 00 00 F4 03 04 00 2C 35 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C9 78 03 00 35 04 06 00 37 00 00 25 [16:51:56]Write i2c OK [16:51:56]MH_I2C_Read... [16:51:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:51:56]Read from MH i2c: E2 [16:51:56]MH_I2C_Read... [16:51:56]Read from MH i2c: E2 03 00 [16:51:56]MH_I2C_Read... [16:51:56]Read from MH i2c: E2 03 00 36 0A 00 90 00 B4 [16:51:56]RAPDU: 90 00 [16:51:56]wFMCommunicate OK [16:51:56]wFMCommunicate request_size=10 [16:51:56]MH_SAM_APDU [16:51:56]CAPDU: 80 0D 02 02 05 DB 7B FD 9B 65 [16:51:56]Write to MH i2c: E2 0D 00 37 0A 80 0D 02 02 05 00 DB 7B FD 9B 65 00 00 18 [16:51:56]Write i2c OK [16:51:56]MH_I2C_Read... [16:51:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:51:56]Read from MH i2c: E2 [16:51:56]MH_I2C_Read... [16:51:56]Read from MH i2c: E2 03 00 [16:51:56]MH_I2C_Read... [16:51:56]Read from MH i2c: E2 03 00 37 0A 00 90 00 B5 [16:51:56]RAPDU: 90 00 [16:51:56]wFMCommunicate OK [16:51:56]wFMCommunicate request_size=4 [16:51:56]MH_SAM_APDU [16:51:56]CAPDU: 80 0D 03 02 [16:51:56]Write to MH i2c: E2 08 00 38 0A 80 0D 03 02 00 00 00 00 BD [16:51:56]Write i2c OK [16:51:56]MH_I2C_Read... [16:51:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:51:56]Read from MH i2c: E2 [16:51:56]MH_I2C_Read... [16:51:56]Read from MH i2c: E2 0B 00 [16:51:56]MH_I2C_Read... [16:51:56]Read from MH i2c: E2 0B 00 38 0A 00 A1 91 96 ED D4 4F 29 45 90 00 04 [16:51:56]RAPDU: A1 91 96 ED D4 4F 29 45 90 00 [16:51:56]wFMCommunicate OK [16:51:56]SAM_PROTO_SignData done [16:51:56]FM_MakeSignedData done [16:51:56]CreateOFDProtocolMessage [16:51:56]wFMCommunicate request_size=4 [16:51:56]MH_SAM_APDU [16:51:56]CAPDU: 80 11 00 00 [16:51:56]Write to MH i2c: E2 08 00 39 0A 80 11 00 00 00 00 00 00 BD [16:51:56]Write i2c OK [16:51:56]MH_I2C_Read... [16:51:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:51:56]Read from MH i2c: E2 [16:51:56]MH_I2C_Read... [16:51:56]Read from MH i2c: E2 17 00 [16:51:56]MH_I2C_Read... [16:51:56]Read from MH i2c: E2 17 00 39 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 14 [16:51:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [16:51:56]wFMCommunicate OK [16:51:56]CreateOFDProtocolMessage done [16:51:56]OFDSenderStorePacket 227529 [16:51:56]StoreOFDPacket docnum=227529 [16:51:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 0E B0 07 01 2C 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CA CB 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 1D E8 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1D E8 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 A0 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1D E8 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 01 00 00 F4 03 04 00 2C 35 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C9 78 03 00 35 04 06 00 37 DB 7B FD 9B 65 A1 91 96 ED D4 4F 29 45 [16:51:56]CheckFolder [16:51:56]dirname=/storage/ofd_packets [16:51:56]CheckFolder done [16:51:56]ProducePacketName [16:51:56]name=ofd_packets/00227529 [16:51:56]NVStorageSaveData ofd_packets/00227529 [16:51:56]File name is /storage/ofd_packets/00227529 [16:51:56]Write 301 bytes [16:51:56]NVStorageSaveData done [16:51:56]OFDSenderStorePacket done [16:51:56]KKMCreateOFDPacket done [16:51:56]NVStorageSaveData kkm_last_timestamp [16:51:56]File name is /storage/kkm_last_timestamp [16:51:56]Write 4 bytes [16:51:56]NVStorageSaveData done [16:51:56]ExternCall_PrintAddStr [16:51:56]wPrintStart [16:51:56]Write to MH i2c: 01 00 00 3A 0A 44 [16:51:56]Write i2c OK [16:51:56]MH_I2C_Read... [16:51:56]Read from MH i2c: 01 [16:51:56]MH_I2C_Read... [16:51:56]Read from MH i2c: 01 07 00 [16:51:56]MH_I2C_Read... [16:51:56]Read from MH i2c: 01 07 00 3A 0A 00 00 00 00 00 FF 0F 59 [16:51:56]RasterBufferAndPrint [16:51:56]line Счет N : (1)1963155 [16:51:56]line ИНН: 02508201610067 [16:51:56]line Контрольно-Кассовый Чек [16:51:56]line ПРОДАЖА [16:51:56]line ТРК (МРК, ГНК) : 64 [16:51:56]line Товар: 2710124500 [16:51:56]line Аи-95-К-5 [16:51:56]line 52.170 * 74.20 [16:51:56]line = 3871.01 [16:51:56]line НДС 12% НСП 1% [16:51:56]line > о реализуемом товаре [16:51:56]line ИТОГО: 3871.01 [16:51:56]line НСП 1% : 34.26 [16:51:56]line НДС 12% : 411.08 [16:51:56]line Наличными: 0.00 [16:51:56]line Безнал.: 3871.01 [16:51:56]line Место: АЗС № 133 "Партнер Нефть" [16:51:56]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [16:51:56]line СНО: Общий режим [16:51:56]line Чек 377 20.10.2024 16:51 [16:51:56]line Смена: 533 ФФД: 1.0 [16:51:56]line ЗНМ: 0300000091 [16:51:56]line РНМ: 0000000000091685 [16:51:56]line Версия ККМ: 001 [16:51:56]line Платежная система: Mbank [16:51:56]line ФМ: 0000000000871839 [16:51:56]line ФД: 227529 [16:51:56]line ФПД: 61415817583461 [16:51:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T165156&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227529&fm=61415817583461&tin=02508201610067®Number=0000000000091685&sum=387101 [16:51:56]written 0, free lines is 4095 [16:51:56]OFD Sender: Processing packet 227529 [packets to send 38, broken 37] [16:51:56]ProducePacketName [16:51:56]name=ofd_packets/00227529 [16:51:56]OFD Sender: To server: pG, [16:51:56]CommunicateWithHost lk.salyk.kg:30040 [16:51:56]ConnectInit lk.salyk.kg [16:51:56]Connected sock=10 [16:51:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 0E B0 07 01 2C 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CA CB 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 1D E8 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1D E8 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 A0 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1D E8 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 01 00 00 F4 03 04 00 2C 35 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 C9 78 03 00 35 04 06 00 37 DB 7B FD 9B 65 A1 91 96 ED D4 4F 29 45 [16:51:56]Write to MH i2c: 01 00 00 62 0A 6C [16:51:56]Write i2c OK [16:51:56]MH_I2C_Read... [16:51:56]Read from MH i2c: 01 [16:51:56]MH_I2C_Read... [16:51:56]Read from MH i2c: 01 07 00 [16:51:56]MH_I2C_Read... [16:51:56]Read from MH i2c: 01 07 00 62 0A 00 00 00 00 00 2F 0D AF [16:51:56]RasterBufferAndPrint [16:51:56]line [16:51:56]line [16:51:56]line [16:51:56]line [16:51:56]line [16:51:56]written 0, free lines is 3381 [16:51:56]process_action close_receipt done [16:51:56]requested_data is exist [16:51:56]produce_requested_data [16:51:56]requested_item fm.sn is exist - process it [16:51:56]wFMCommunicate request_size=4 [16:51:56]MH_SAM_APDU [16:51:56]CAPDU: 80 11 00 00 [16:51:56]Write to MH i2c: E2 08 00 69 0A 80 11 00 00 00 00 00 00 ED [16:51:56]Write i2c OK [16:51:56]MH_I2C_Read... [16:51:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:51:56]Read from MH i2c: E2 [16:51:56]MH_I2C_Read... [16:51:56]Read from MH i2c: E2 17 00 [16:51:56]MH_I2C_Read... [16:51:56]Read from MH i2c: E2 17 00 69 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 44 [16:51:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [16:51:56]wFMCommunicate OK [16:51:56]requested_item fd.num is exist - process it [16:51:56]SAM_PROTO_GetFieldsCounters [16:51:56]wFMCommunicate request_size=4 [16:51:56]MH_SAM_APDU [16:51:56]CAPDU: 80 13 00 00 [16:51:56]Write to MH i2c: E2 08 00 6A 0A 80 13 00 00 00 00 00 00 F0 [16:51:56]Write i2c OK [16:51:56]MH_I2C_Read... [16:51:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 27 6C 47 00 2F 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 33 39 10 04 04 00 C9 78 03 00 F4 03 04 00 2A E0 14 67 B6 04 01 00 00 B2 EE 43 9A 8C AA A2 D0 [16:51:57]CommunicateWithHost err = 0 [16:51:57]CheckOFDResponse [16:51:57]1017 (14) - 77093643461234 [16:51:57]1041 (16) - 0000000000871839 [16:51:57]1040 (4) - 227529 [16:51:57]1012 (4) - 20.10.2024 10:49 [16:51:57]1206 (1) - 0 [16:51:57]OFD Sender: Remove packet 227529 [16:51:57]ProducePacketName [16:51:57]name=ofd_packets/00227529 [16:51:57]NVStorageDeleteData [16:51:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:51:57]Read from MH i2c: E2 [16:51:57]MH_I2C_Read... [16:51:57]Read from MH i2c: E2 62 00 [16:51:57]MH_I2C_Read... [16:51:57]Read from MH i2c: E2 62 00 6A 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 C9 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 79 01 00 00 5E 04 04 00 79 01 00 00 57 04 04 00 7A 01 00 00 19 04 04 00 00 00 00 00 90 00 E2 [16: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 C9 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 79 01 00 00 5E 04 04 00 79 01 00 00 57 04 04 00 7A 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:51:57]wFMCommunicate OK [16:51:57]SAM_PROTO_GetFieldsCounters done [16:51:57]requested_item shift.num is exist - process it [16:51:57]requested_item shift.opened is exist - process it [16:51:57]req_shift_opened [16:51:57]FM_GetShiftState [16:51:57]SAM_PROTO_GetShiftState [16:51:57]wFMCommunicate request_size=4 [16:51:57]MH_SAM_APDU [16:51:57]CAPDU: 80 13 01 00 [16:51:57]Write to MH i2c: E2 08 00 6B 0A 80 13 01 00 00 00 00 00 F2 [16:51:57]Write i2c OK [16:51:57]MH_I2C_Read... [16:51:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:51:57]Read from MH i2c: E2 [16:51:57]MH_I2C_Read... [16:51:57]Read from MH i2c: E2 0E 00 [16:51:57]MH_I2C_Read... [16:51:57]Read from MH i2c: E2 0E 00 6B 0A 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 0C [16:51:57]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [16:51:57]wFMCommunicate OK [16:51:57]SAM_PROTO_GetShiftState done [16:51:57]FM_GetShiftState done [16:51:57]req_shift_opened done [16:51:57]requested_item shift.open_date is exist - process it [16:51:57]req_shift_open_date [16:51:57]req_shift_open_date done [16:51:57]produce_requested_data done [16:51:57]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227529,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [16:51:57]process_action_free close_receipt [16:51:57]json_value_free [16:51:57]json_value_free done [16:51:57]process_json_proto returns [16:51:57]Send response to host [16:51:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227529,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [16:51:57]free response buf [16:51:57]execute_script done [16:51:57]execute_script returns [16:51:57]free content buf [16:51:57]Sock 7.Close socket [16:51:57]Sock 7.Thread stoped [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:37]OFD Sender: No OFD packet to send [16:52:42]OFD Sender: No OFD packet to send [16:52:47]OFD Sender: No OFD packet to send [16:52:52]OFD Sender: No OFD packet to send [16:52:57]OFD Sender: No OFD packet to send [16:53:02]OFD Sender: No OFD packet to send [16:53:07]OFD Sender: No OFD packet to send [16:53:12]OFD Sender: No OFD packet to send [16:53:17]OFD Sender: No OFD packet to send [16:53:22]OFD Sender: No OFD packet to send [16:53:27]OFD Sender: No OFD packet to send [16:53:32]OFD Sender: No OFD packet to send [16:53:37]OFD Sender: No OFD packet to send [16:53:42]OFD Sender: No OFD packet to send [16:53:47]OFD Sender: No OFD packet to send [16:53:52]OFD Sender: No OFD packet to send [16:53:57]OFD Sender: No OFD packet to send [16:54:02]OFD Sender: No OFD packet to send [16:54:07]OFD Sender: No OFD packet to send [16:54:12]OFD Sender: No OFD packet to send [16:54:17]OFD Sender: No OFD packet to send [16:54:22]OFD Sender: No OFD packet to send [16:54:27]OFD Sender: No OFD packet to send [16:54:32]OFD Sender: No OFD packet to send [16:54:37]OFD Sender: No OFD packet to send [16:54:42]OFD Sender: No OFD packet to send [16:54:47]OFD Sender: No OFD packet to send [16:54:52]OFD Sender: No OFD packet to send [16:54:57]OFD Sender: No OFD packet to send [16:55:02]OFD Sender: No OFD packet to send [16:55:07]OFD Sender: No OFD packet to send [16:55:12]OFD Sender: No OFD packet to send [16:55:17]OFD Sender: No OFD packet to send [16:55:22]OFD Sender: No OFD packet to send [16:55:27]OFD Sender: No OFD packet to send [16:55:32]OFD Sender: No OFD packet to send [16:55:37]OFD Sender: No OFD packet to send [16:55:42]OFD Sender: No OFD packet to send [16:55:47]OFD Sender: No OFD packet to send [16:55:52]OFD Sender: No OFD packet to send [16:55:57]OFD Sender: No OFD packet to send [16:56:02]OFD Sender: No OFD packet to send [16:56:07]OFD Sender: No OFD packet to send [16:56:12]OFD Sender: No OFD packet to send [16:56:17]OFD Sender: No OFD packet to send [16:56:22]OFD Sender: No OFD packet to send [16:56:27]OFD Sender: No OFD packet to send [16:56:32]OFD Sender: No OFD packet to send [16:56:37]OFD Sender: No OFD packet to send [16:56:42]OFD Sender: No OFD packet to send [16:56:47]OFD Sender: No OFD packet to send [16:56:52]OFD Sender: No OFD packet to send [16:56:57]OFD Sender: No OFD packet to send [16:57:02]OFD Sender: No OFD packet to send [16:57:07]OFD Sender: No OFD packet to send [16:57:12]OFD Sender: No OFD packet to send [16:57:17]OFD Sender: No OFD packet to send [16:57:22]OFD Sender: No OFD packet to send [16:57:27]OFD Sender: No OFD packet to send [16:57:32]OFD Sender: No OFD packet to send [16:57:37]OFD Sender: No OFD packet to send [16:57:42]OFD Sender: No OFD packet to send [16:57:47]OFD Sender: No OFD packet to send [16:57:52]OFD Sender: No OFD packet to send [16:57:57]OFD Sender: No OFD packet to send [16:58:02]OFD Sender: No OFD packet to send [16:58:07]OFD Sender: No OFD packet to send [16:58:12]OFD Sender: No OFD packet to send [16:58:17]OFD Sender: No OFD packet to send [16:58:22]OFD Sender: No OFD packet to send [16:58:27]OFD Sender: No OFD packet to send [16:58:32]OFD Sender: No OFD packet to send [16:58:37]OFD Sender: No OFD packet to send [16:58:42]OFD Sender: No OFD packet to send [16:58:47]OFD Sender: No OFD packet to send [16:58:52]OFD Sender: No OFD packet to send [16:58:57]OFD Sender: No OFD packet to send [16:59:02]OFD Sender: No OFD packet to send [16:59:07]OFD Sender: No OFD packet to send [16:59:12]OFD Sender: No OFD packet to send [16:59:17]OFD Sender: No OFD packet to send [16:59:22]OFD Sender: No OFD packet to send [16:59:27]OFD Sender: No OFD packet to send [16:59:32]OFD Sender: No OFD packet to send [16:59:37]OFD Sender: No OFD packet to send [16:59:42]OFD Sender: No OFD packet to send [16:59:47]OFD Sender: No OFD packet to send [16:59:52]OFD Sender: No OFD packet to send [16:59:57]OFD Sender: No OFD packet to send [17:00:02]OFD Sender: No OFD packet to send [17:00:07]OFD Sender: No OFD packet to send [17:00:13]OFD Sender: No OFD packet to send [17:00:18]OFD Sender: No OFD packet to send [17:00:23]OFD Sender: No OFD packet to send [17:00:28]OFD Sender: No OFD packet to send [17:00:33]OFD Sender: No OFD packet to send [17:00:38]OFD Sender: No OFD packet to send [17:00:43]OFD Sender: No OFD packet to send [17:00:48]OFD Sender: No OFD packet to send [17:00:53]OFD Sender: No OFD packet to send [17:00:58]OFD Sender: No OFD packet to send [17:01:03]OFD Sender: No OFD packet to send [17:01:08]OFD Sender: No OFD packet to send [17:01:13]OFD Sender: No OFD packet to send [17:01:18]OFD Sender: No OFD packet to send [17:01:23]OFD Sender: No OFD packet to send [17:01:28]OFD Sender: No OFD packet to send [17:01:33]OFD Sender: No OFD packet to send [17:01:38]OFD Sender: No OFD packet to send [17:01:43]OFD Sender: No OFD packet to send [17:01:48]OFD Sender: No OFD packet to send [17:01:53]OFD Sender: No OFD packet to send [17:01:58]OFD Sender: No OFD packet to send [17:02:03]OFD Sender: No OFD packet to send [17:02:08]OFD Sender: No OFD packet to send [17:02:13]OFD Sender: No OFD packet to send [17:02:18]OFD Sender: No OFD packet to send [17:02:23]OFD Sender: No OFD packet to send [17:02:28]OFD Sender: No OFD packet to send [17:02:33]OFD Sender: No OFD packet to send [17:02:38]OFD Sender: No OFD packet to send [17:02:43]OFD Sender: No OFD packet to send [17:02:48]OFD Sender: No OFD packet to send [17:02:53]OFD Sender: No OFD packet to send [17:02:58]OFD Sender: No OFD packet to send [17:03:03]OFD Sender: No OFD packet to send [17:03:08]OFD Sender: No OFD packet to send [17:03:13]OFD Sender: No OFD packet to send [17:03:18]OFD Sender: No OFD packet to send [17:03:23]OFD Sender: No OFD packet to send [17:03:28]OFD Sender: No OFD packet to send [17:03:33]OFD Sender: No OFD packet to send [17:03:38]OFD Sender: No OFD packet to send [17:03:43]OFD Sender: No OFD packet to send [17:03:48]OFD Sender: No OFD packet to send [17:03:53]OFD Sender: No OFD packet to send [17:03:58]OFD Sender: No OFD packet to send [17:04:03]OFD Sender: No OFD packet to send [17:04:08]OFD Sender: No OFD packet to send [17:04:13]OFD Sender: No OFD packet to send [17:04:18]OFD Sender: No OFD packet to send [17:04:23]OFD Sender: No OFD packet to send [17:04:28]OFD Sender: No OFD packet to send [17:04:33]OFD Sender: No OFD packet to send [17:04:38]OFD Sender: No OFD packet to send [17:04:43]OFD Sender: No OFD packet to send [17:04:48]OFD Sender: No OFD packet to send [17:04:53]OFD Sender: No OFD packet to send [17:04:58]OFD Sender: No OFD packet to send [17:05:03]OFD Sender: No OFD packet to send [17:05:08]OFD Sender: No OFD packet to send [17:05:13]OFD Sender: No OFD packet to send [17:05:18]OFD Sender: No OFD packet to send [17:05:23]OFD Sender: No OFD packet to send [17:05:28]OFD Sender: No OFD packet to send [17:05:33]OFD Sender: No OFD packet to send [17:05:38]OFD Sender: No OFD packet to send [17:05:43]OFD Sender: No OFD packet to send [17:05:48]OFD Sender: No OFD packet to send [17:05:53]OFD Sender: No OFD packet to send [17:05:58]OFD Sender: No OFD packet to send [17:06:03]OFD Sender: No OFD packet to send [17:06:08]OFD Sender: No OFD packet to send [17:06:13]OFD Sender: No OFD packet to send [17:06:18]OFD Sender: No OFD packet to send [17:06:23]OFD Sender: No OFD packet to send [17:06:28]OFD Sender: No OFD packet to send [17:06:33]OFD Sender: No OFD packet to send [17:06:38]OFD Sender: No OFD packet to send [17:06:43]OFD Sender: No OFD packet to send [17:06:48]OFD Sender: No OFD packet to send [17:06:53]OFD Sender: No OFD packet to send [17:06:58]OFD Sender: No OFD packet to send [17:07:03]OFD Sender: No OFD packet to send [17:07:08]OFD Sender: No OFD packet to send [17:07:13]OFD Sender: No OFD packet to send [17:07:18]OFD Sender: No OFD packet to send [17:07:23]OFD Sender: No OFD packet to send [17:07:28]OFD Sender: No OFD packet to send [17:07:33]OFD Sender: No OFD packet to send [17:07:38]OFD Sender: No OFD packet to send [17:07:43]OFD Sender: No OFD packet to send [17:07:48]OFD Sender: No OFD packet to send [17:07:53]OFD Sender: No OFD packet to send [17:07:58]OFD Sender: No OFD packet to send [17:08:03]OFD Sender: No OFD packet to send [17:08:08]OFD Sender: No OFD packet to send [17:08:13]OFD Sender: No OFD packet to send [17:08:18]OFD Sender: No OFD packet to send [17:08:23]OFD Sender: No OFD packet to send [17:08:28]OFD Sender: No OFD packet to send [17:08:33]OFD Sender: No OFD packet to send [17:08:38]OFD Sender: No OFD packet to send [17:08:43]OFD Sender: No OFD packet to send [17:08:48]OFD Sender: No OFD packet to send [17:08:53]OFD Sender: No OFD packet to send [17:08:58]OFD Sender: No OFD packet to send [17:09:03]OFD Sender: No OFD packet to send [17:09:08]OFD Sender: No OFD packet to send [17:09:13]OFD Sender: No OFD packet to send [17:09:18]OFD Sender: No OFD packet to send [17:09:23]OFD Sender: No OFD packet to send [17:09:28]OFD Sender: No OFD packet to send [17:09:33]OFD Sender: No OFD packet to send [17:09:38]OFD Sender: No OFD packet to send [17:09:43]OFD Sender: No OFD packet to send [17:09:47]accept exits with 9 [17:09:47]New connection [17:09:47]New thread 3067219300 created [17:09:47]Thread 3067362660 joined [17:09:47]Waiting for new connection... [17:09:47] Sock 9.Parse request [17:09:47]Sock 9.Check first char [17:09:47]Sock 9.First char is OK [17:09:47]request: POST /json_proto HTTP/1.0 [17:09:47]Method: POST [17:09:47]URL: /json_proto [17:09:47]Method is POST - this is cgi request [17:09:47]url: /json_proto [17:09:47]query_string will be loaded in cgi processing [17:09:47]execute_cgi json_proto POST (null) [17:09:47]execute_cgi path=json_proto method=POST [17:09:47]POST find Content-Length [17:09:47]Host: 172.17.44.195:8080 [17:09:47]Content-Length: 675 [17:09:47]Content-Type: application/json [17:09:47] [17:09:47]POST finish read [17:09:47]Found Content-Length = 675 [17:09:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963162", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:47]execute_script... [17:09:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963162", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:47]POST & json_proto [17:09:47]process_json_proto [17:09:47]json parsed OK: [17:09:47]protocol is kg_v1.0 [17:09:47]action value=close_receipt [17:09:47]process_action close_receipt [17:09:47]cmd_close_receipt [17:09:47]MH_GetDate [17:09:47]Write to MH i2c: F0 00 00 6C 0A 65 [17:09:47]Write i2c OK [17:09:47]MH_I2C_Read... [17:09:47]Read from MH i2c: F0 [17:09:47]MH_I2C_Read... [17:09:47]Read from MH i2c: F0 09 00 [17:09:47]MH_I2C_Read... [17:09:47]Read from MH i2c: F0 09 00 6C 0A 00 5C 39 15 67 82 C9 CF 66 FF [17:09:47]GetLastDocTimeStamp 1729443116 [17:09:47]current date 1729444188 [17:09:47]FM_GetShiftState [17:09:47]SAM_PROTO_GetShiftState [17:09:47]wFMCommunicate request_size=4 [17:09:47]MH_SAM_APDU [17:09:47]CAPDU: 80 13 01 00 [17:09:47]Write to MH i2c: E2 08 00 6D 0A 80 13 01 00 00 00 00 00 F4 [17:09:47]Write i2c OK [17:09:47]MH_I2C_Read... [17:09:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:47]Read from MH i2c: E2 [17:09:47]MH_I2C_Read... [17:09:47]Read from MH i2c: E2 0E 00 [17:09:47]MH_I2C_Read... [17:09:47]Read from MH i2c: E2 0E 00 6D 0A 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 0E [17:09:47]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:09:47]wFMCommunicate OK [17:09:47]SAM_PROTO_GetShiftState done [17:09:47]FM_GetShiftState done [17:09:47]opened in 1729383750 [17:09:47]opened+sec_in_day 1729470150 [17:09:47]quantity*price = 50063 [17:09:47]sum+1 = 50064 [17:09:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 378 20.10.2024 17:09 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227530 ФПД: 242095166660566 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T170948&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227530&fm=242095166660566&tin=02508201610067®Number=0000000000091685&sum=50000 [17:09:48]StoreToDocumentArchive [17:09:48]shift 533 fd 227530 [17:09:48]save to /storage/0533/doc_00227530 [17:09:48]save last doc name /storage/0533/doc_00227530 to /storage/kkm_last_doc_name [17:09:48]save OK [17:09:48]Clear old archive folders... [17:09:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:09:48]tlvbuf is 00DDC510 [17:09:48]SAM_PROTO_ClearQueue [17:09:48]wFMCommunicate request_size=4 [17:09:48]MH_SAM_APDU [17:09:48]CAPDU: 80 09 00 00 [17:09:48]Write to MH i2c: E2 08 00 7A 0A 80 09 00 00 00 00 00 00 F6 [17:09:48]Write i2c OK [17:09:48]MH_I2C_Read... [17:09:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:09:48]Read from MH i2c: E2 [17:09:48]MH_I2C_Read... [17:09:48]Read from MH i2c: E2 03 00 [17:09:48]MH_I2C_Read... [17:09:48]Read from MH i2c: E2 03 00 7A 0A 00 90 00 F8 [17:09:48]RAPDU: 90 00 [17:09:48]wFMCommunicate OK [17:09:48]SAM_PROTO_ClearQueue done [17:09:48]KKMCreateOFDPacket [17:09:48]OFDProtocolAddRootSTLVToBuf [17:09:48]FM_MakeSignedData [17:09:48]FM_MakeSignedData [17:09:48]SAM_PROTO_SignData [17:09:48]wFMCommunicate request_size=4 [17:09:48]MH_SAM_APDU [17:09:48]CAPDU: 80 0D 01 02 [17:09:48]Write to MH i2c: E2 08 00 7B 0A 80 0D 01 02 00 00 00 00 FE [17:09:48]Write i2c OK [17:09:48]MH_I2C_Read... [17:09:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:09:48]Read from MH i2c: E2 [17:09:48]MH_I2C_Read... [17:09:48]Read from MH i2c: E2 03 00 [17:09:48]MH_I2C_Read... [17:09:48]Read from MH i2c: E2 03 00 7B 0A 00 90 00 F9 [17:09:48]RAPDU: 90 00 [17:09:48]wFMCommunicate OK [17:09:48]wFMCommunicate request_size=255 [17:09:48]MH_SAM_APDU [17:09:48]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 01 00 00 F4 03 04 00 5C 39 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CA 78 03 00 35 04 06 00 DC 2F 2C 69 [17:09:48]Write to MH i2c: E2 02 01 7C 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 01 00 00 F4 03 04 00 5C 39 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CA 78 03 00 35 04 06 00 DC 2F 2C 69 00 00 9B [17:09:48]Write i2c OK [17:09:48]MH_I2C_Read... [17:09:48]OFD Sender: No OFD packet to send [17:09:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:48]Read from MH i2c: E2 [17:09:48]MH_I2C_Read... [17:09:48]Read from MH i2c: E2 03 00 [17:09:48]MH_I2C_Read... [17:09:48]Read from MH i2c: E2 03 00 7C 0A 00 90 00 FA [17:09:48]RAPDU: 90 00 [17:09:48]wFMCommunicate OK [17:09:48]wFMCommunicate request_size=7 [17:09:48]MH_SAM_APDU [17:09:48]CAPDU: 80 0D 02 02 02 1F D6 [17:09:48]Write to MH i2c: E2 0A 00 7D 0A 80 0D 02 02 02 00 1F D6 00 00 FA [17:09:48]Write i2c OK [17:09:48]MH_I2C_Read... [17:09:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:48]Read from MH i2c: E2 [17:09:48]MH_I2C_Read... [17:09:48]Read from MH i2c: E2 03 00 [17:09:48]MH_I2C_Read... [17:09:48]Read from MH i2c: E2 03 00 7D 0A 00 90 00 FB [17:09:48]RAPDU: 90 00 [17:09:48]wFMCommunicate OK [17:09:48]wFMCommunicate request_size=4 [17:09:48]MH_SAM_APDU [17:09:48]CAPDU: 80 0D 03 02 [17:09:48]Write to MH i2c: E2 08 00 7E 0A 80 0D 03 02 00 00 00 00 03 [17:09:48]Write i2c OK [17:09:48]MH_I2C_Read... [17:09:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:09:48]Read from MH i2c: E2 [17:09:48]MH_I2C_Read... [17:09:48]Read from MH i2c: E2 0B 00 [17:09:48]MH_I2C_Read... [17:09:48]Read from MH i2c: E2 0B 00 7E 0A 00 31 D4 C8 75 5F 28 9E 3A 90 00 A5 [17:09:48]RAPDU: 31 D4 C8 75 5F 28 9E 3A 90 00 [17:09:48]wFMCommunicate OK [17:09:48]SAM_PROTO_SignData done [17:09:48]FM_MakeSignedData done [17:09:48]CreateOFDProtocolMessage [17:09:48]wFMCommunicate request_size=4 [17:09:48]MH_SAM_APDU [17:09:48]CAPDU: 80 11 00 00 [17:09:48]Write to MH i2c: E2 08 00 7F 0A 80 11 00 00 00 00 00 00 03 [17:09:48]Write i2c OK [17:09:48]MH_I2C_Read... [17:09:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:48]Read from MH i2c: E2 [17:09:48]MH_I2C_Read... [17:09:48]Read from MH i2c: E2 17 00 [17:09:48]MH_I2C_Read... [17:09:48]Read from MH i2c: E2 17 00 7F 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 5A [17:09:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:09:48]wFMCommunicate OK [17:09:48]CreateOFDProtocolMessage done [17:09:48]OFDSenderStorePacket 227530 [17:09:48]StoreOFDPacket docnum=227530 [17:09:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 B6 C1 04 01 DA 8A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 01 00 00 F4 03 04 00 5C 39 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CA 78 03 00 35 04 06 00 DC 2F 2C 69 1F D6 31 D4 C8 75 5F 28 9E 3A [17:09:48]CheckFolder [17:09:48]dirname=/storage/ofd_packets [17:09:48]CheckFolder done [17:09:48]ProducePacketName [17:09:48]name=ofd_packets/00227530 [17:09:48]NVStorageSaveData ofd_packets/00227530 [17:09:48]File name is /storage/ofd_packets/00227530 [17:09:48]Write 298 bytes [17:09:48]NVStorageSaveData done [17:09:48]OFDSenderStorePacket done [17:09:48]KKMCreateOFDPacket done [17:09:48]NVStorageSaveData kkm_last_timestamp [17:09:48]File name is /storage/kkm_last_timestamp [17:09:48]Write 4 bytes [17:09:48]NVStorageSaveData done [17:09:48]ExternCall_PrintAddStr [17:09:48]wPrintStart [17:09:48]Write to MH i2c: 01 00 00 80 0A 8A [17:09:48]Write i2c OK [17:09:48]MH_I2C_Read... [17:09:48]Read from MH i2c: 01 [17:09:48]MH_I2C_Read... [17:09:48]Read from MH i2c: 01 07 00 [17:09:48]MH_I2C_Read... [17:09:48]Read from MH i2c: 01 07 00 80 0A 00 00 00 00 00 FF 0F 9F [17:09:48]RasterBufferAndPrint [17:09:48]line Счет N : (1)1963162 [17:09:48]line ИНН: 02508201610067 [17:09:48]line Контрольно-Кассовый Чек [17:09:48]line ПРОДАЖА [17:09:48]line ТРК (МРК, ГНК) : 31 [17:09:48]line Товар: 2710194210 [17:09:48]line ДТ-К-5 [17:09:48]line 6.570 * 76.20 [17:09:48]line = 500.63 [17:09:48]line НДС 12% НСП 1% [17:09:48]line > о реализуемом товаре [17:09:48]line ОКРУГЛЕНИЕ: -0.63 [17:09:48]line ИТОГО: 500.00 [17:09:48]line Внесено: 500.00 [17:09:48]line СДАЧА: 0.00 [17:09:48]line НСП 1% : 4.43 [17:09:48]line НДС 12% : 53.16 [17:09:48]line Наличными: 500.00 [17:09:48]line Безнал.: 0.00 [17:09:48]line Место: АЗС № 133 "Партнер Нефть" [17:09:48]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:09:48]line СНО: Общий режим [17:09:48]line Чек 378 20.10.2024 17:09 [17:09:48]line Смена: 533 ФФД: 1.0 [17:09:48]line ЗНМ: 0300000091 [17:09:48]line РНМ: 0000000000091685 [17:09:48]line Версия ККМ: 001 [17:09:48]line ФМ: 0000000000871839 [17:09:48]line ФД: 227530 [17:09:48]line ФПД: 242095166660566 [17:09:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T170948&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227530&fm=242095166660566&tin=02508201610067®Number=0000000000091685&sum=50000 [17:09:49]OFD Sender: Processing packet 227530 [packets to send 38, broken 37] [17:09:49]ProducePacketName [17:09:49]name=ofd_packets/00227530 [17:09:49]OFD Sender: To server: pG, [17:09:49]CommunicateWithHost lk.salyk.kg:30040 [17:09:49]ConnectInit lk.salyk.kg [17:09:49]written 0, free lines is 4095 [17:09:49]Connected sock=10 [17:09: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 33 39 0C 01 00 00 B6 C1 04 01 DA 8A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 01 00 00 F4 03 04 00 5C 39 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CA 78 03 00 35 04 06 00 DC 2F 2C 69 1F D6 31 D4 C8 75 5F 28 9E 3A [17:09: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 33 39 4F 00 00 00 9C 9F 47 00 8C 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CA 78 03 00 F4 03 04 00 5A E4 14 67 B6 04 01 00 00 BC 15 29 EB 79 9B 5C 0F [17:09:49]CommunicateWithHost err = 0 [17:09:49]CheckOFDResponse [17:09:49]1017 (14) - 77093643461234 [17:09:49]1041 (16) - 0000000000871839 [17:09:49]1040 (4) - 227530 [17:09:49]1012 (4) - 20.10.2024 11:07 [17:09:49]1206 (1) - 0 [17:09:49]OFD Sender: Remove packet 227530 [17:09:49]ProducePacketName [17:09:49]name=ofd_packets/00227530 [17:09:49]NVStorageDeleteData [17:09:49]Write to MH i2c: 01 00 00 AA 0A B4 [17:09:49]Write i2c OK [17:09:49]MH_I2C_Read... [17:09:49]Read from MH i2c: 01 [17:09:49]MH_I2C_Read... [17:09:49]Read from MH i2c: 01 07 00 [17:09:49]MH_I2C_Read... [17:09:49]Read from MH i2c: 01 07 00 AA 0A 00 00 00 00 00 FB 0C C2 [17:09:49]RasterBufferAndPrint [17:09:49]line [17:09:49]line [17:09:49]line [17:09:49]line [17:09:49]line [17:09:49]written 0, free lines is 3330 [17:09:49]process_action close_receipt done [17:09:49]requested_data is exist [17:09:49]produce_requested_data [17:09:49]requested_item fm.sn is exist - process it [17:09:49]wFMCommunicate request_size=4 [17:09:49]MH_SAM_APDU [17:09:49]CAPDU: 80 11 00 00 [17:09:49]Write to MH i2c: E2 08 00 B1 0A 80 11 00 00 00 00 00 00 35 [17:09:49]Write i2c OK [17:09:49]MH_I2C_Read... [17:09:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:49]Read from MH i2c: E2 [17:09:49]MH_I2C_Read... [17:09:49]Read from MH i2c: E2 17 00 [17:09:49]MH_I2C_Read... [17:09:49]Read from MH i2c: E2 17 00 B1 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 8C [17:09:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:09:49]wFMCommunicate OK [17:09:49]requested_item fd.num is exist - process it [17:09:49]SAM_PROTO_GetFieldsCounters [17:09:49]wFMCommunicate request_size=4 [17:09:49]MH_SAM_APDU [17:09:49]CAPDU: 80 13 00 00 [17:09:49]Write to MH i2c: E2 08 00 B2 0A 80 13 00 00 00 00 00 00 38 [17:09:49]Write i2c OK [17:09:49]MH_I2C_Read... [17:09:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:09:49]Read from MH i2c: E2 [17:09:49]MH_I2C_Read... [17:09:49]Read from MH i2c: E2 62 00 [17:09:49]MH_I2C_Read... [17:09:49]Read from MH i2c: E2 62 00 B2 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 CA 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 7A 01 00 00 5E 04 04 00 7A 01 00 00 57 04 04 00 7B 01 00 00 19 04 04 00 00 00 00 00 90 00 2E [17:09:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 CA 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 7A 01 00 00 5E 04 04 00 7A 01 00 00 57 04 04 00 7B 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:09:49]wFMCommunicate OK [17:09:49]SAM_PROTO_GetFieldsCounters done [17:09:49]requested_item shift.num is exist - process it [17:09:49]requested_item shift.opened is exist - process it [17:09:49]req_shift_opened [17:09:49]FM_GetShiftState [17:09:49]SAM_PROTO_GetShiftState [17:09:49]wFMCommunicate request_size=4 [17:09:49]MH_SAM_APDU [17:09:49]CAPDU: 80 13 01 00 [17:09:49]Write to MH i2c: E2 08 00 B3 0A 80 13 01 00 00 00 00 00 3A [17:09:49]Write i2c OK [17:09:49]MH_I2C_Read... [17:09:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:49]Read from MH i2c: E2 [17:09:49]MH_I2C_Read... [17:09:49]Read from MH i2c: E2 0E 00 [17:09:49]MH_I2C_Read... [17:09:49]Read from MH i2c: E2 0E 00 B3 0A 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 54 [17:09:49]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:09:49]wFMCommunicate OK [17:09:49]SAM_PROTO_GetShiftState done [17:09:49]FM_GetShiftState done [17:09:49]req_shift_opened done [17:09:49]requested_item shift.open_date is exist - process it [17:09:49]req_shift_open_date [17:09:49]req_shift_open_date done [17:09:49]produce_requested_data done [17:09:49]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227530,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [17:09:49]process_action_free close_receipt [17:09:49]json_value_free [17:09:49]json_value_free done [17:09:49]process_json_proto returns [17:09:49]Send response to host [17:09:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227530,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [17:09:49]free response buf [17:09:49]execute_script done [17:09:49]execute_script returns [17:09:49]free content buf [17:09:49]Sock 9.Close socket [17:09:49]Sock 9.Thread stoped [17:09:49]OFD Sender: No OFD packet to send [17:09:54]OFD Sender: No OFD packet to send [17:09:59]OFD Sender: No OFD packet to send [17:10:04]OFD Sender: No OFD packet to send [17:10:09]OFD Sender: No OFD packet to send [17:10:14]OFD Sender: No OFD packet to send [17:10:20]OFD Sender: No OFD packet to send [17:10:25]OFD Sender: No OFD packet to send [17:10:30]OFD Sender: No OFD packet to send [17:10:35]OFD Sender: No OFD packet to send [17:10:40]OFD Sender: No OFD packet to send [17:10:45]OFD Sender: No OFD packet to send [17:10:50]OFD Sender: No OFD packet to send [17:10:55]OFD Sender: No OFD packet to send [17:11:00]OFD Sender: No OFD packet to send [17:11:05]OFD Sender: No OFD packet to send [17:11:10]OFD Sender: No OFD packet to send [17:11:12]accept exits with 7 [17:11:12]New connection [17:11:12]New thread 3067362660 created [17:11:12]Thread 3067219300 joined [17:11:12]Waiting for new connection... [17:11:12] Sock 7.Parse request [17:11:12]Sock 7.Check first char [17:11:12]Sock 7.First char is OK [17:11:12]request: POST /json_proto HTTP/1.0 [17:11:12]Method: POST [17:11:12]URL: /json_proto [17:11:12]Method is POST - this is cgi request [17:11:12]url: /json_proto [17:11:12]query_string will be loaded in cgi processing [17:11:12]execute_cgi json_proto POST (null) [17:11:12]execute_cgi path=json_proto method=POST [17:11:12]POST find Content-Length [17:11:12]Host: 172.17.44.195:8080 [17:11:12]Content-Length: 678 [17:11:12]Content-Type: application/json [17:11:12] [17:11:12]POST finish read [17:11:12]Found Content-Length = 678 [17:11:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963163", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.710, "sum" : 720.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 720.00, "total" : 720.00, "payments": [ { "type": 0, "sum" : 720.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:11:12]execute_script... [17:11: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)1963163", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.710, "sum" : 720.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 720.00, "total" : 720.00, "payments": [ { "type": 0, "sum" : 720.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:11:12]POST & json_proto [17:11:12]process_json_proto [17:11:12]json parsed OK: [17:11:12]protocol is kg_v1.0 [17:11:12]action value=close_receipt [17:11:12]process_action close_receipt [17:11:12]cmd_close_receipt [17:11:12]MH_GetDate [17:11:12]Write to MH i2c: F0 00 00 B4 0A AD [17:11:12]Write i2c OK [17:11:12]MH_I2C_Read... [17:11:12]Read from MH i2c: F0 [17:11:12]MH_I2C_Read... [17:11:12]Read from MH i2c: F0 09 00 [17:11:12]MH_I2C_Read... [17:11:12]Read from MH i2c: F0 09 00 B4 0A 00 B1 39 15 67 82 C9 CF 66 9C [17:11:12]GetLastDocTimeStamp 1729444188 [17:11:12]current date 1729444273 [17:11:12]FM_GetShiftState [17:11:12]SAM_PROTO_GetShiftState [17:11:12]wFMCommunicate request_size=4 [17:11:12]MH_SAM_APDU [17:11:12]CAPDU: 80 13 01 00 [17:11:12]Write to MH i2c: E2 08 00 B5 0A 80 13 01 00 00 00 00 00 3C [17:11:12]Write i2c OK [17:11:12]MH_I2C_Read... [17:11:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:11:12]Read from MH i2c: E2 [17:11:12]MH_I2C_Read... [17:11:12]Read from MH i2c: E2 0E 00 [17:11:12]MH_I2C_Read... [17:11:12]Read from MH i2c: E2 0E 00 B5 0A 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 56 [17:11:12]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:11:12]wFMCommunicate OK [17:11:12]SAM_PROTO_GetShiftState done [17:11:12]FM_GetShiftState done [17:11:12]opened in 1729383750 [17:11:12]opened+sec_in_day 1729470150 [17:11:12]quantity*price = 72048 [17:11:12]sum+1 = 72049 [17:11:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 720.00 Внесено: 720.00 СДАЧА: 0.00 НСП 1% : 6.38 НДС 12% : 76.51 Наличными: 720.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 379 20.10.2024 17:11 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227531 ФПД: 236829648435713 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171113&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227531&fm=236829648435713&tin=02508201610067®Number=0000000000091685&sum=72000 [17:11:13]StoreToDocumentArchive [17:11:13]shift 533 fd 227531 [17:11:13]save to /storage/0533/doc_00227531 [17:11:13]save last doc name /storage/0533/doc_00227531 to /storage/kkm_last_doc_name [17:11:13]save OK [17:11:13]Clear old archive folders... [17:11:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:11:13]tlvbuf is 00D7B3A0 [17:11:13]SAM_PROTO_ClearQueue [17:11:13]wFMCommunicate request_size=4 [17:11:13]MH_SAM_APDU [17:11:13]CAPDU: 80 09 00 00 [17:11:13]Write to MH i2c: E2 08 00 C2 0A 80 09 00 00 00 00 00 00 3E [17:11:13]Write i2c OK [17:11:13]MH_I2C_Read... [17:11:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:11:13]Read from MH i2c: E2 [17:11:13]MH_I2C_Read... [17:11:13]Read from MH i2c: E2 03 00 [17:11:13]MH_I2C_Read... [17:11:13]Read from MH i2c: E2 03 00 C2 0A 00 90 00 40 [17:11:13]RAPDU: 90 00 [17:11:13]wFMCommunicate OK [17:11:13]SAM_PROTO_ClearQueue done [17:11:13]KKMCreateOFDPacket [17:11:13]OFDProtocolAddRootSTLVToBuf [17:11:13]FM_MakeSignedData [17:11:13]FM_MakeSignedData [17:11:13]SAM_PROTO_SignData [17:11:13]wFMCommunicate request_size=4 [17:11:13]MH_SAM_APDU [17:11:13]CAPDU: 80 0D 01 02 [17:11:13]Write to MH i2c: E2 08 00 C3 0A 80 0D 01 02 00 00 00 00 46 [17:11:13]Write i2c OK [17:11:13]MH_I2C_Read... [17:11:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:11:13]Read from MH i2c: E2 [17:11:13]MH_I2C_Read... [17:11:13]Read from MH i2c: E2 03 00 [17:11:13]MH_I2C_Read... [17:11:13]Read from MH i2c: E2 03 00 C3 0A 00 90 00 41 [17:11:13]RAPDU: 90 00 [17:11:13]wFMCommunicate OK [17:11:13]wFMCommunicate request_size=255 [17:11:13]MH_SAM_APDU [17:11:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 EE 25 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 70 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 01 00 00 F4 03 04 00 B1 39 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CB 78 03 00 35 04 06 00 D7 [17:11:13]Write to MH i2c: E2 02 01 C4 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 EE 25 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 70 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 01 00 00 F4 03 04 00 B1 39 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CB 78 03 00 35 04 06 00 D7 00 00 5B [17:11:13]Write i2c OK [17:11:13]MH_I2C_Read... [17:11:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:11:14]Read from MH i2c: E2 [17:11:14]MH_I2C_Read... [17:11:14]Read from MH i2c: E2 03 00 [17:11:14]MH_I2C_Read... [17:11:14]Read from MH i2c: E2 03 00 C4 0A 00 90 00 42 [17:11:14]RAPDU: 90 00 [17:11:14]wFMCommunicate OK [17:11:14]wFMCommunicate request_size=10 [17:11:14]MH_SAM_APDU [17:11:14]CAPDU: 80 0D 02 02 05 65 33 11 3A 01 [17:11:14]Write to MH i2c: E2 0D 00 C5 0A 80 0D 02 02 05 00 65 33 11 3A 01 00 00 37 [17:11:14]Write i2c OK [17:11:14]MH_I2C_Read... [17:11:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:11:14]Read from MH i2c: E2 [17:11:14]MH_I2C_Read... [17:11:14]Read from MH i2c: E2 03 00 [17:11:14]MH_I2C_Read... [17:11:14]Read from MH i2c: E2 03 00 C5 0A 00 90 00 43 [17:11:14]RAPDU: 90 00 [17:11:14]wFMCommunicate OK [17:11:14]wFMCommunicate request_size=4 [17:11:14]MH_SAM_APDU [17:11:14]CAPDU: 80 0D 03 02 [17:11:14]Write to MH i2c: E2 08 00 C6 0A 80 0D 03 02 00 00 00 00 4B [17:11:14]Write i2c OK [17:11:14]MH_I2C_Read... [17:11:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:11:14]Read from MH i2c: E2 [17:11:14]MH_I2C_Read... [17:11:14]Read from MH i2c: E2 0B 00 [17:11:14]MH_I2C_Read... [17:11:14]Read from MH i2c: E2 0B 00 C6 0A 00 9D 4D 04 25 00 EB 15 72 90 00 D1 [17:11:14]RAPDU: 9D 4D 04 25 00 EB 15 72 90 00 [17:11:14]wFMCommunicate OK [17:11:14]SAM_PROTO_SignData done [17:11:14]FM_MakeSignedData done [17:11:14]CreateOFDProtocolMessage [17:11:14]wFMCommunicate request_size=4 [17:11:14]MH_SAM_APDU [17:11:14]CAPDU: 80 11 00 00 [17:11:14]Write to MH i2c: E2 08 00 C7 0A 80 11 00 00 00 00 00 00 4B [17:11:14]Write i2c OK [17:11:14]MH_I2C_Read... [17:11:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:11:14]Read from MH i2c: E2 [17:11:14]MH_I2C_Read... [17:11:14]Read from MH i2c: E2 17 00 [17:11:14]MH_I2C_Read... [17:11:14]Read from MH i2c: E2 17 00 C7 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A2 [17:11:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:11:14]wFMCommunicate OK [17:11:14]CreateOFDProtocolMessage done [17:11:14]OFDSenderStorePacket 227531 [17:11:14]StoreOFDPacket docnum=227531 [17:11:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 9C 41 07 01 17 B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 EE 25 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 70 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 01 00 00 F4 03 04 00 B1 39 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CB 78 03 00 35 04 06 00 D7 65 33 11 3A 01 9D 4D 04 25 00 EB 15 72 [17:11:14]CheckFolder [17:11:14]dirname=/storage/ofd_packets [17:11:14]CheckFolder done [17:11:14]ProducePacketName [17:11:14]name=ofd_packets/00227531 [17:11:14]NVStorageSaveData ofd_packets/00227531 [17:11:14]File name is /storage/ofd_packets/00227531 [17:11:14]Write 301 bytes [17:11:14]NVStorageSaveData done [17:11:14]OFDSenderStorePacket done [17:11:14]KKMCreateOFDPacket done [17:11:14]NVStorageSaveData kkm_last_timestamp [17:11:14]File name is /storage/kkm_last_timestamp [17:11:14]Write 4 bytes [17:11:14]NVStorageSaveData done [17:11:14]ExternCall_PrintAddStr [17:11:14]wPrintStart [17:11:14]Write to MH i2c: 01 00 00 C8 0A D2 [17:11:14]Write i2c OK [17:11:14]MH_I2C_Read... [17:11:14]Read from MH i2c: 01 [17:11:14]MH_I2C_Read... [17:11:14]Read from MH i2c: 01 07 00 [17:11:14]MH_I2C_Read... [17:11:14]Read from MH i2c: 01 07 00 C8 0A 00 00 00 00 00 FF 0F E7 [17:11:14]RasterBufferAndPrint [17:11:14]line Счет N : (1)1963163 [17:11:14]line ИНН: 02508201610067 [17:11:14]line Контрольно-Кассовый Чек [17:11:14]line ПРОДАЖА [17:11:14]line ТРК (МРК, ГНК) : 44 [17:11:14]line Товар: 2710124500 [17:11:14]line Аи-95-К-5 [17:11:14]line 9.710 * 74.20 [17:11:14]line = 720.48 [17:11:14]line НДС 12% НСП 1% [17:11:14]line > о реализуемом товаре [17:11:14]line ОКРУГЛЕНИЕ: -0.48 [17:11:14]line ИТОГО: 720.00 [17:11:14]line Внесено: 720.00 [17:11:14]line СДАЧА: 0.00 [17:11:14]line НСП 1% : 6.38 [17:11:14]line НДС 12% : 76.51 [17:11:14]line Наличными: 720.00 [17:11:14]line Безнал.: 0.00 [17:11:14]line Место: АЗС № 133 "Партнер Нефть" [17:11:14]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:11:14]line СНО: Общий режим [17:11:14]line Чек 379 20.10.2024 17:11 [17:11:14]line Смена: 533 ФФД: 1.0 [17:11:14]line ЗНМ: 0300000091 [17:11:14]line РНМ: 0000000000091685 [17:11:14]line Версия ККМ: 001 [17:11:14]line ФМ: 0000000000871839 [17:11:14]line ФД: 227531 [17:11:14]line ФПД: 236829648435713 [17:11:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171113&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227531&fm=236829648435713&tin=02508201610067®Number=0000000000091685&sum=72000 [17:11:14]OFD Sender: Processing packet 227531 [packets to send 38, broken 37] [17:11:14]ProducePacketName [17:11:14]name=ofd_packets/00227531 [17:11:14]OFD Sender: To server: pG, [17:11:14]CommunicateWithHost lk.salyk.kg:30040 [17:11:14]ConnectInit lk.salyk.kg [17:11:14]written 0, free lines is 4095 [17:11:14]Connected sock=10 [17:11: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 33 39 0F 01 00 00 9C 41 07 01 17 B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 EE 25 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 70 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 01 00 00 F4 03 04 00 B1 39 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CB 78 03 00 35 04 06 00 D7 65 33 11 3A 01 9D 4D 04 25 00 EB 15 72 [17:11: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 33 39 4F 00 00 00 9F C3 47 00 C1 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CB 78 03 00 F4 03 04 00 B0 E4 14 67 B6 04 01 00 00 97 8F 84 03 62 FB 9E 6E [17:11:14]CommunicateWithHost err = 0 [17:11:14]CheckOFDResponse [17:11:14]1017 (14) - 77093643461234 [17:11:14]1041 (16) - 0000000000871839 [17:11:14]1040 (4) - 227531 [17:11:14]1012 (4) - 20.10.2024 11:08 [17:11:14]1206 (1) - 0 [17:11:14]OFD Sender: Remove packet 227531 [17:11:14]ProducePacketName [17:11:14]name=ofd_packets/00227531 [17:11:14]NVStorageDeleteData [17:11:15]Write to MH i2c: 01 00 00 F2 0A FC [17:11:15]Write i2c OK [17:11:15]MH_I2C_Read... [17:11:15]Read from MH i2c: 01 [17:11:15]MH_I2C_Read... [17:11:15]Read from MH i2c: 01 07 00 [17:11:15]MH_I2C_Read... [17:11:15]Read from MH i2c: 01 07 00 F2 0A 00 00 00 00 00 FE 0C 0D [17:11:15]RasterBufferAndPrint [17:11:15]line [17:11:15]line [17:11:15]line [17:11:15]line [17:11:15]line [17:11:15]written 0, free lines is 3335 [17:11:15]process_action close_receipt done [17:11:15]requested_data is exist [17:11:15]produce_requested_data [17:11:15]requested_item fm.sn is exist - process it [17:11:15]wFMCommunicate request_size=4 [17:11:15]MH_SAM_APDU [17:11:15]CAPDU: 80 11 00 00 [17:11:15]Write to MH i2c: E2 08 00 F9 0A 80 11 00 00 00 00 00 00 7D [17:11:15]Write i2c OK [17:11:15]MH_I2C_Read... [17:11:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:11:15]Read from MH i2c: E2 [17:11:15]MH_I2C_Read... [17:11:15]Read from MH i2c: E2 17 00 [17:11:15]MH_I2C_Read... [17:11:15]Read from MH i2c: E2 17 00 F9 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D4 [17:11:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:11:15]wFMCommunicate OK [17:11:15]requested_item fd.num is exist - process it [17:11:15]SAM_PROTO_GetFieldsCounters [17:11:15]wFMCommunicate request_size=4 [17:11:15]MH_SAM_APDU [17:11:15]CAPDU: 80 13 00 00 [17:11:15]Write to MH i2c: E2 08 00 FA 0A 80 13 00 00 00 00 00 00 80 [17:11:15]Write i2c OK [17:11:15]MH_I2C_Read... [17:11:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:11:15]Read from MH i2c: E2 [17:11:15]MH_I2C_Read... [17:11:15]Read from MH i2c: E2 62 00 [17:11:15]MH_I2C_Read... [17:11:15]Read from MH i2c: E2 62 00 FA 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 CB 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 7B 01 00 00 5E 04 04 00 7B 01 00 00 57 04 04 00 7C 01 00 00 19 04 04 00 00 00 00 00 90 00 7A [17:11: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 CB 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 7B 01 00 00 5E 04 04 00 7B 01 00 00 57 04 04 00 7C 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:11:15]wFMCommunicate OK [17:11:15]SAM_PROTO_GetFieldsCounters done [17:11:15]requested_item shift.num is exist - process it [17:11:15]requested_item shift.opened is exist - process it [17:11:15]req_shift_opened [17:11:15]FM_GetShiftState [17:11:15]SAM_PROTO_GetShiftState [17:11:15]wFMCommunicate request_size=4 [17:11:15]MH_SAM_APDU [17:11:15]CAPDU: 80 13 01 00 [17:11:15]Write to MH i2c: E2 08 00 FB 0A 80 13 01 00 00 00 00 00 82 [17:11:15]Write i2c OK [17:11:15]MH_I2C_Read... [17:11:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:11:15]Read from MH i2c: E2 [17:11:15]MH_I2C_Read... [17:11:15]Read from MH i2c: E2 0E 00 [17:11:15]MH_I2C_Read... [17:11:15]Read from MH i2c: E2 0E 00 FB 0A 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 9C [17:11:15]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:11:15]wFMCommunicate OK [17:11:15]SAM_PROTO_GetShiftState done [17:11:15]FM_GetShiftState done [17:11:15]req_shift_opened done [17:11:15]requested_item shift.open_date is exist - process it [17:11:15]req_shift_open_date [17:11:15]req_shift_open_date done [17:11:15]produce_requested_data done [17:11:15]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227531,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [17:11:15]process_action_free close_receipt [17:11:15]json_value_free [17:11:15]json_value_free done [17:11:15]process_json_proto returns [17:11:15]Send response to host [17:11:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227531,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [17:11:15]free response buf [17:11:15]execute_script done [17:11:15]execute_script returns [17:11:15]free content buf [17:11:15]Sock 7.Close socket [17:11:15]Sock 7.Thread stoped [17:11:15]OFD Sender: No OFD packet to send [17:11:20]OFD Sender: No OFD packet to send [17:11:25]OFD Sender: No OFD packet to send [17:11:30]OFD Sender: No OFD packet to send [17:11:35]OFD Sender: No OFD packet to send [17:11:40]OFD Sender: No OFD packet to send [17:11:45]OFD Sender: No OFD packet to send [17:11:50]OFD Sender: No OFD packet to send [17:11:55]OFD Sender: No OFD packet to send [17:12:00]OFD Sender: No OFD packet to send [17:12:05]OFD Sender: No OFD packet to send [17:12:10]OFD Sender: No OFD packet to send [17:12:15]OFD Sender: No OFD packet to send [17:12:20]OFD Sender: No OFD packet to send [17:12:25]OFD Sender: No OFD packet to send [17:12:30]OFD Sender: No OFD packet to send [17:12:35]OFD Sender: No OFD packet to send [17:12:40]OFD Sender: No OFD packet to send [17:12:45]OFD Sender: No OFD packet to send [17:12:50]OFD Sender: No OFD packet to send [17:12:55]OFD Sender: No OFD packet to send [17:12:56]accept exits with 9 [17:12:56]New connection [17:12:56]New thread 3067219300 created [17:12:56]Thread 3067362660 joined [17:12:56]Waiting for new connection... [17:12:56] Sock 9.Parse request [17:12:56]Sock 9.Check first char [17:12:56]Sock 9.First char is OK [17:12:56]request: POST /json_proto HTTP/1.0 [17:12:56]Method: POST [17:12:56]URL: /json_proto [17:12:56]Method is POST - this is cgi request [17:12:56]url: /json_proto [17:12:56]query_string will be loaded in cgi processing [17:12:56]execute_cgi json_proto POST (null) [17:12:56]execute_cgi path=json_proto method=POST [17:12:56]POST find Content-Length [17:12:56]Host: 172.17.44.195:8080 [17:12:56]Content-Length: 678 [17:12:56]Content-Type: application/json [17:12:56] [17:12:56]POST finish read [17:12:56]Found Content-Length = 678 [17:12:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963164", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:12:56]execute_script... [17:12: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)1963164", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:12:56]POST & json_proto [17:12:56]process_json_proto [17:12:56]json parsed OK: [17:12:56]protocol is kg_v1.0 [17:12:56]action value=close_receipt [17:12:56]process_action close_receipt [17:12:56]cmd_close_receipt [17:12:56]MH_GetDate [17:12:56]Write to MH i2c: F0 00 00 FC 0A F5 [17:12:56]Write i2c OK [17:12:56]MH_I2C_Read... [17:12:56]Read from MH i2c: F0 [17:12:56]MH_I2C_Read... [17:12:56]Read from MH i2c: F0 09 00 [17:12:56]MH_I2C_Read... [17:12:56]Read from MH i2c: F0 09 00 FC 0A 00 19 3A 15 67 82 C9 CF 66 4D [17:12:56]GetLastDocTimeStamp 1729444273 [17:12:56]current date 1729444377 [17:12:56]FM_GetShiftState [17:12:56]SAM_PROTO_GetShiftState [17:12:56]wFMCommunicate request_size=4 [17:12:56]MH_SAM_APDU [17:12:56]CAPDU: 80 13 01 00 [17:12:56]Write to MH i2c: E2 08 00 FD 0A 80 13 01 00 00 00 00 00 84 [17:12:56]Write i2c OK [17:12:56]MH_I2C_Read... [17:12:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:56]Read from MH i2c: E2 [17:12:56]MH_I2C_Read... [17:12:56]Read from MH i2c: E2 0E 00 [17:12:56]MH_I2C_Read... [17:12:56]Read from MH i2c: E2 0E 00 FD 0A 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 9E [17:12:56]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:12:56]wFMCommunicate OK [17:12:56]SAM_PROTO_GetShiftState done [17:12:56]FM_GetShiftState done [17:12:56]opened in 1729383750 [17:12:56]opened+sec_in_day 1729470150 [17:12:56]quantity*price = 50041 [17:12:56]sum+1 = 50042 [17:12:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 380 20.10.2024 17:12 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227532 ФПД: 64729848575022 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171257&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227532&fm=64729848575022&tin=02508201610067®Number=0000000000091685&sum=50000 [17:12:57]StoreToDocumentArchive [17:12:57]shift 533 fd 227532 [17:12:57]save to /storage/0533/doc_00227532 [17:12:57]save last doc name /storage/0533/doc_00227532 to /storage/kkm_last_doc_name [17:12:57]save OK [17:12:57]Clear old archive folders... [17:12:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:12:57]tlvbuf is B6E0C870 [17:12:57]SAM_PROTO_ClearQueue [17:12:57]wFMCommunicate request_size=4 [17:12:57]MH_SAM_APDU [17:12:57]CAPDU: 80 09 00 00 [17:12:57]Write to MH i2c: E2 08 00 0A 0B 80 09 00 00 00 00 00 00 87 [17:12:57]Write i2c OK [17:12:57]MH_I2C_Read... [17:12:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:12:57]Read from MH i2c: E2 [17:12:57]MH_I2C_Read... [17:12:57]Read from MH i2c: E2 03 00 [17:12:57]MH_I2C_Read... [17:12:57]Read from MH i2c: E2 03 00 0A 0B 00 90 00 89 [17:12:57]RAPDU: 90 00 [17:12:57]wFMCommunicate OK [17:12:57]SAM_PROTO_ClearQueue done [17:12:57]KKMCreateOFDPacket [17:12:57]OFDProtocolAddRootSTLVToBuf [17:12:57]FM_MakeSignedData [17:12:57]FM_MakeSignedData [17:12:57]SAM_PROTO_SignData [17:12:57]wFMCommunicate request_size=4 [17:12:57]MH_SAM_APDU [17:12:57]CAPDU: 80 0D 01 02 [17:12:57]Write to MH i2c: E2 08 00 0B 0B 80 0D 01 02 00 00 00 00 8F [17:12:57]Write i2c OK [17:12:57]MH_I2C_Read... [17:12:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:12:57]Read from MH i2c: E2 [17:12:57]MH_I2C_Read... [17:12:57]Read from MH i2c: E2 03 00 [17:12:57]MH_I2C_Read... [17:12:57]Read from MH i2c: E2 03 00 0B 0B 00 90 00 8A [17:12:57]RAPDU: 90 00 [17:12:57]wFMCommunicate OK [17:12:57]wFMCommunicate request_size=255 [17:12:57]MH_SAM_APDU [17:12:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 01 00 00 F4 03 04 00 19 3A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CC 78 03 00 35 04 06 00 3A [17:12:57]Write to MH i2c: E2 02 01 0C 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 01 00 00 F4 03 04 00 19 3A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CC 78 03 00 35 04 06 00 3A 00 00 0A [17:12:57]Write i2c OK [17:12:57]MH_I2C_Read... [17:12:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:57]Read from MH i2c: E2 [17:12:57]MH_I2C_Read... [17:12:57]Read from MH i2c: E2 03 00 [17:12:57]MH_I2C_Read... [17:12:57]Read from MH i2c: E2 03 00 0C 0B 00 90 00 8B [17:12:57]RAPDU: 90 00 [17:12:57]wFMCommunicate OK [17:12:57]wFMCommunicate request_size=10 [17:12:57]MH_SAM_APDU [17:12:57]CAPDU: 80 0D 02 02 05 DF 17 A1 74 2E [17:12:57]Write to MH i2c: E2 0D 00 0D 0B 80 0D 02 02 05 00 DF 17 A1 74 2E 00 00 D5 [17:12:57]Write i2c OK [17:12:57]MH_I2C_Read... [17:12:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:57]Read from MH i2c: E2 [17:12:57]MH_I2C_Read... [17:12:57]Read from MH i2c: E2 03 00 [17:12:57]MH_I2C_Read... [17:12:57]Read from MH i2c: E2 03 00 0D 0B 00 90 00 8C [17:12:57]RAPDU: 90 00 [17:12:57]wFMCommunicate OK [17:12:57]wFMCommunicate request_size=4 [17:12:57]MH_SAM_APDU [17:12:57]CAPDU: 80 0D 03 02 [17:12:57]Write to MH i2c: E2 08 00 0E 0B 80 0D 03 02 00 00 00 00 94 [17:12:57]Write i2c OK [17:12:57]MH_I2C_Read... [17:12:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:12:57]Read from MH i2c: E2 [17:12:57]MH_I2C_Read... [17:12:57]Read from MH i2c: E2 0B 00 [17:12:57]MH_I2C_Read... [17:12:57]Read from MH i2c: E2 0B 00 0E 0B 00 D5 E1 7D C4 F5 90 89 B9 90 00 53 [17:12:57]RAPDU: D5 E1 7D C4 F5 90 89 B9 90 00 [17:12:57]wFMCommunicate OK [17:12:57]SAM_PROTO_SignData done [17:12:57]FM_MakeSignedData done [17:12:57]CreateOFDProtocolMessage [17:12:57]wFMCommunicate request_size=4 [17:12:57]MH_SAM_APDU [17:12:57]CAPDU: 80 11 00 00 [17:12:57]Write to MH i2c: E2 08 00 0F 0B 80 11 00 00 00 00 00 00 94 [17:12:57]Write i2c OK [17:12:57]MH_I2C_Read... [17:12:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:57]Read from MH i2c: E2 [17:12:57]MH_I2C_Read... [17:12:57]Read from MH i2c: E2 17 00 [17:12:57]MH_I2C_Read... [17:12:57]Read from MH i2c: E2 17 00 0F 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 EB [17:12:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:12:57]wFMCommunicate OK [17:12:57]CreateOFDProtocolMessage done [17:12:57]OFDSenderStorePacket 227532 [17:12:57]StoreOFDPacket docnum=227532 [17:12:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 85 51 07 01 86 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 01 00 00 F4 03 04 00 19 3A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CC 78 03 00 35 04 06 00 3A DF 17 A1 74 2E D5 E1 7D C4 F5 90 89 B9 [17:12:57]CheckFolder [17:12:57]dirname=/storage/ofd_packets [17:12:57]CheckFolder done [17:12:57]ProducePacketName [17:12:57]name=ofd_packets/00227532 [17:12:57]NVStorageSaveData ofd_packets/00227532 [17:12:57]File name is /storage/ofd_packets/00227532 [17:12:57]Write 301 bytes [17:12:57]NVStorageSaveData done [17:12:57]OFDSenderStorePacket done [17:12:57]KKMCreateOFDPacket done [17:12:57]NVStorageSaveData kkm_last_timestamp [17:12:57]File name is /storage/kkm_last_timestamp [17:12:57]Write 4 bytes [17:12:57]NVStorageSaveData done [17:12:57]ExternCall_PrintAddStr [17:12:57]wPrintStart [17:12:57]Write to MH i2c: 01 00 00 10 0B 1B [17:12:57]Write i2c OK [17:12:57]MH_I2C_Read... [17:12:57]Read from MH i2c: 01 [17:12:57]MH_I2C_Read... [17:12:57]Read from MH i2c: 01 07 00 [17:12:57]MH_I2C_Read... [17:12:57]Read from MH i2c: 01 07 00 10 0B 00 00 00 00 00 FF 0F 30 [17:12:57]RasterBufferAndPrint [17:12:57]line Счет N : (1)1963164 [17:12:57]line ИНН: 02508201610067 [17:12:57]line Контрольно-Кассовый Чек [17:12:57]line ПРОДАЖА [17:12:57]line ТРК (МРК, ГНК) : 63 [17:12:57]line Товар: 2710124130 [17:12:57]line Аи-92-К-5 [17:12:57]line 7.480 * 66.90 [17:12:57]line = 500.41 [17:12:57]line НДС 12% НСП 1% [17:12:57]line > о реализуемом товаре [17:12:57]line ОКРУГЛЕНИЕ: -0.41 [17:12:57]line ИТОГО: 500.00 [17:12:57]line Внесено: 500.00 [17:12:57]line СДАЧА: 0.00 [17:12:57]line НСП 1% : 4.43 [17:12:57]line НДС 12% : 53.14 [17:12:57]line Наличными: 500.00 [17:12:57]line Безнал.: 0.00 [17:12:57]line Место: АЗС № 133 "Партнер Нефть" [17:12:57]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:12:57]line СНО: Общий режим [17:12:57]line Чек 380 20.10.2024 17:12 [17:12:57]line Смена: 533 ФФД: 1.0 [17:12:57]line ЗНМ: 0300000091 [17:12:57]line РНМ: 0000000000091685 [17:12:57]line Версия ККМ: 001 [17:12:57]line ФМ: 0000000000871839 [17:12:57]line ФД: 227532 [17:12:57]line ФПД: 64729848575022 [17:12:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171257&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227532&fm=64729848575022&tin=02508201610067®Number=0000000000091685&sum=50000 [17:12:58]OFD Sender: Processing packet 227532 [packets to send 38, broken 37] [17:12:58]ProducePacketName [17:12:58]name=ofd_packets/00227532 [17:12:58]OFD Sender: To server: pG, [17:12:58]CommunicateWithHost lk.salyk.kg:30040 [17:12:58]ConnectInit lk.salyk.kg [17:12:58]written 0, free lines is 4095 [17:12:58]Connected sock=10 [17:12: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 33 39 0F 01 00 00 85 51 07 01 86 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 01 00 00 F4 03 04 00 19 3A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CC 78 03 00 35 04 06 00 3A DF 17 A1 74 2E D5 E1 7D C4 F5 90 89 B9 [17:12: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 33 39 4F 00 00 00 22 6A 47 00 6D 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 33 39 10 04 04 00 CC 78 03 00 F4 03 04 00 18 E5 14 67 B6 04 01 00 00 80 BB 9D A1 05 8D BF 10 [17:12:58]CommunicateWithHost err = 0 [17:12:58]CheckOFDResponse [17:12:58]1017 (14) - 77093643461234 [17:12:58]1041 (16) - 0000000000871839 [17:12:58]1040 (4) - 227532 [17:12:58]1012 (4) - 20.10.2024 11:10 [17:12:58]1206 (1) - 0 [17:12:58]OFD Sender: Remove packet 227532 [17:12:58]ProducePacketName [17:12:58]name=ofd_packets/00227532 [17:12:58]NVStorageDeleteData [17:12:58]Write to MH i2c: 01 00 00 3A 0B 45 [17:12:58]Write i2c OK [17:12:58]MH_I2C_Read... [17:12:58]Read from MH i2c: 01 [17:12:58]MH_I2C_Read... [17:12:58]Read from MH i2c: 01 07 00 [17:12:58]MH_I2C_Read... [17:12:58]Read from MH i2c: 01 07 00 3A 0B 00 00 00 00 00 29 0D 82 [17:12:58]RasterBufferAndPrint [17:12:58]line [17:12:58]line [17:12:58]line [17:12:58]line [17:12:58]line [17:12:58]written 0, free lines is 3376 [17:12:58]process_action close_receipt done [17:12:58]requested_data is exist [17:12:58]produce_requested_data [17:12:58]requested_item fm.sn is exist - process it [17:12:58]wFMCommunicate request_size=4 [17:12:58]MH_SAM_APDU [17:12:58]CAPDU: 80 11 00 00 [17:12:58]Write to MH i2c: E2 08 00 41 0B 80 11 00 00 00 00 00 00 C6 [17:12:58]Write i2c OK [17:12:58]MH_I2C_Read... [17:12:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:58]Read from MH i2c: E2 [17:12:58]MH_I2C_Read... [17:12:58]Read from MH i2c: E2 17 00 [17:12:58]MH_I2C_Read... [17:12:58]Read from MH i2c: E2 17 00 41 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 1D [17:12:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:12:58]wFMCommunicate OK [17:12:58]requested_item fd.num is exist - process it [17:12:58]SAM_PROTO_GetFieldsCounters [17:12:58]wFMCommunicate request_size=4 [17:12:58]MH_SAM_APDU [17:12:58]CAPDU: 80 13 00 00 [17:12:58]Write to MH i2c: E2 08 00 42 0B 80 13 00 00 00 00 00 00 C9 [17:12:58]Write i2c OK [17:12:58]MH_I2C_Read... [17:12:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:12:58]Read from MH i2c: E2 [17:12:58]MH_I2C_Read... [17:12:58]Read from MH i2c: E2 62 00 [17:12:58]MH_I2C_Read... [17:12:58]Read from MH i2c: E2 62 00 42 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 CC 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 7C 01 00 00 5E 04 04 00 7C 01 00 00 57 04 04 00 7D 01 00 00 19 04 04 00 00 00 00 00 90 00 C7 [17:12:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 CC 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 7C 01 00 00 5E 04 04 00 7C 01 00 00 57 04 04 00 7D 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:12:58]wFMCommunicate OK [17:12:58]SAM_PROTO_GetFieldsCounters done [17:12:58]requested_item shift.num is exist - process it [17:12:58]requested_item shift.opened is exist - process it [17:12:58]req_shift_opened [17:12:58]FM_GetShiftState [17:12:58]SAM_PROTO_GetShiftState [17:12:58]wFMCommunicate request_size=4 [17:12:58]MH_SAM_APDU [17:12:58]CAPDU: 80 13 01 00 [17:12:58]Write to MH i2c: E2 08 00 43 0B 80 13 01 00 00 00 00 00 CB [17:12:58]Write i2c OK [17:12:58]MH_I2C_Read... [17:12:59]Read from MH i2c: E2 [17:12:59]MH_I2C_Read... [17:12:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:59]Read from MH i2c: E2 0E 00 [17:12:59]MH_I2C_Read... [17:12:59]Read from MH i2c: E2 0E 00 43 0B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 E5 [17:12:59]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:12:59]wFMCommunicate OK [17:12:59]SAM_PROTO_GetShiftState done [17:12:59]FM_GetShiftState done [17:12:59]req_shift_opened done [17:12:59]requested_item shift.open_date is exist - process it [17:12:59]req_shift_open_date [17:12:59]req_shift_open_date done [17:12:59]produce_requested_data done [17:12:59]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227532,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [17:12:59]process_action_free close_receipt [17:12:59]json_value_free [17:12:59]json_value_free done [17:12:59]process_json_proto returns [17:12:59]Send response to host [17:12:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227532,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [17:12:59]free response buf [17:12:59]execute_script done [17:12:59]execute_script returns [17:12:59]free content buf [17:12:59]Sock 9.Close socket [17:12:59]Sock 9.Thread stoped [17:12:59]OFD Sender: No OFD packet to send [17:13:04]OFD Sender: No OFD packet to send [17:13:09]OFD Sender: No OFD packet to send [17:13:14]OFD Sender: No OFD packet to send [17:13:19]OFD Sender: No OFD packet to send [17:13:20]accept exits with 7 [17:13:20]New connection [17:13:20]New thread 3067362660 created [17:13:20]Thread 3067219300 joined [17:13:20]Waiting for new connection... [17:13:20] Sock 7.Parse request [17:13:20]Sock 7.Check first char [17:13:20]Sock 7.First char is OK [17:13:20]request: POST /json_proto HTTP/1.0 [17:13:20]Method: POST [17:13:20]URL: /json_proto [17:13:20]Method is POST - this is cgi request [17:13:20]url: /json_proto [17:13:20]query_string will be loaded in cgi processing [17:13:20]execute_cgi json_proto POST (null) [17:13:20]execute_cgi path=json_proto method=POST [17:13:20]POST find Content-Length [17:13:20]Host: 172.17.44.195:8080 [17:13:20]Content-Length: 676 [17:13:20]Content-Type: application/json [17:13:20] [17:13:20]POST finish read [17:13:20]Found Content-Length = 676 [17:13:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963165", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:20]execute_script... [17:13:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963165", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:20]POST & json_proto [17:13:20]process_json_proto [17:13:20]json parsed OK: [17:13:20]protocol is kg_v1.0 [17:13:20]action value=close_receipt [17:13:20]process_action close_receipt [17:13:20]cmd_close_receipt [17:13:20]MH_GetDate [17:13:20]Write to MH i2c: F0 00 00 44 0B 3E [17:13:20]Write i2c OK [17:13:20]MH_I2C_Read... [17:13:20]Read from MH i2c: F0 [17:13:20]MH_I2C_Read... [17:13:20]Read from MH i2c: F0 09 00 [17:13:20]MH_I2C_Read... [17:13:20]Read from MH i2c: F0 09 00 44 0B 00 31 3A 15 67 82 C9 CF 66 AE [17:13:20]GetLastDocTimeStamp 1729444377 [17:13:20]current date 1729444401 [17:13:20]FM_GetShiftState [17:13:20]SAM_PROTO_GetShiftState [17:13:20]wFMCommunicate request_size=4 [17:13:20]MH_SAM_APDU [17:13:20]CAPDU: 80 13 01 00 [17:13:20]Write to MH i2c: E2 08 00 45 0B 80 13 01 00 00 00 00 00 CD [17:13:20]Write i2c OK [17:13:20]MH_I2C_Read... [17:13:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:20]Read from MH i2c: E2 [17:13:20]MH_I2C_Read... [17:13:20]Read from MH i2c: E2 0E 00 [17:13:20]MH_I2C_Read... [17:13:20]Read from MH i2c: E2 0E 00 45 0B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 E7 [17:13:20]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:13:20]wFMCommunicate OK [17:13:20]SAM_PROTO_GetShiftState done [17:13:20]FM_GetShiftState done [17:13:20]opened in 1729383750 [17:13:20]opened+sec_in_day 1729470150 [17:13:20]quantity*price = 80010 [17:13:20]sum+1 = 80011 [17:13:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 381 20.10.2024 17:13 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227533 ФПД: 154975438708429 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171322&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227533&fm=154975438708429&tin=02508201610067®Number=0000000000091685&sum=80000 [17:13:21]StoreToDocumentArchive [17:13:21]shift 533 fd 227533 [17:13:21]save to /storage/0533/doc_00227533 [17:13:21]save last doc name /storage/0533/doc_00227533 to /storage/kkm_last_doc_name [17:13:21]save OK [17:13:21]Clear old archive folders... [17:13:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:13:21]tlvbuf is 00DDB6B0 [17:13:21]SAM_PROTO_ClearQueue [17:13:21]wFMCommunicate request_size=4 [17:13:21]MH_SAM_APDU [17:13:21]CAPDU: 80 09 00 00 [17:13:21]Write to MH i2c: E2 08 00 52 0B 80 09 00 00 00 00 00 00 CF [17:13:21]Write i2c OK [17:13:21]MH_I2C_Read... [17:13:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:13:21]Read from MH i2c: E2 [17:13:21]MH_I2C_Read... [17:13:21]Read from MH i2c: E2 03 00 [17:13:21]MH_I2C_Read... [17:13:21]Read from MH i2c: E2 03 00 52 0B 00 90 00 D1 [17:13:21]RAPDU: 90 00 [17:13:21]wFMCommunicate OK [17:13:21]SAM_PROTO_ClearQueue done [17:13:21]KKMCreateOFDPacket [17:13:21]OFDProtocolAddRootSTLVToBuf [17:13:21]FM_MakeSignedData [17:13:21]FM_MakeSignedData [17:13:21]SAM_PROTO_SignData [17:13:21]wFMCommunicate request_size=4 [17:13:21]MH_SAM_APDU [17:13:21]CAPDU: 80 0D 01 02 [17:13:21]Write to MH i2c: E2 08 00 53 0B 80 0D 01 02 00 00 00 00 D7 [17:13:21]Write i2c OK [17:13:21]MH_I2C_Read... [17:13:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:13:21]Read from MH i2c: E2 [17:13:21]MH_I2C_Read... [17:13:21]Read from MH i2c: E2 03 00 [17:13:21]MH_I2C_Read... [17:13:21]Read from MH i2c: E2 03 00 53 0B 00 90 00 D2 [17:13:21]RAPDU: 90 00 [17:13:21]wFMCommunicate OK [17:13:21]wFMCommunicate request_size=255 [17:13:21]MH_SAM_APDU [17:13:21]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 01 00 00 F4 03 04 00 32 3A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CD 78 03 00 35 04 06 00 8C F3 07 F9 [17:13:21]Write to MH i2c: E2 02 01 54 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 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 01 00 00 F4 03 04 00 32 3A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CD 78 03 00 35 04 06 00 8C F3 07 F9 00 00 DB [17:13:21]Write i2c OK [17:13:21]MH_I2C_Read... [17:13:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:22]Read from MH i2c: E2 [17:13:22]MH_I2C_Read... [17:13:22]Read from MH i2c: E2 03 00 [17:13:22]MH_I2C_Read... [17:13:22]Read from MH i2c: E2 03 00 54 0B 00 90 00 D3 [17:13:22]RAPDU: 90 00 [17:13:22]wFMCommunicate OK [17:13:22]wFMCommunicate request_size=7 [17:13:22]MH_SAM_APDU [17:13:22]CAPDU: 80 0D 02 02 02 1E CD [17:13:22]Write to MH i2c: E2 0A 00 55 0B 80 0D 02 02 02 00 1E CD 00 00 C9 [17:13:22]Write i2c OK [17:13:22]MH_I2C_Read... [17:13:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:22]Read from MH i2c: E2 [17:13:22]MH_I2C_Read... [17:13:22]Read from MH i2c: E2 03 00 [17:13:22]MH_I2C_Read... [17:13:22]Read from MH i2c: E2 03 00 55 0B 00 90 00 D4 [17:13:22]RAPDU: 90 00 [17:13:22]wFMCommunicate OK [17:13:22]wFMCommunicate request_size=4 [17:13:22]MH_SAM_APDU [17:13:22]CAPDU: 80 0D 03 02 [17:13:22]Write to MH i2c: E2 08 00 56 0B 80 0D 03 02 00 00 00 00 DC [17:13:22]Write i2c OK [17:13:22]MH_I2C_Read... [17:13:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:13:22]Read from MH i2c: E2 [17:13:22]MH_I2C_Read... [17:13:22]Read from MH i2c: E2 0B 00 [17:13:22]MH_I2C_Read... [17:13:22]Read from MH i2c: E2 0B 00 56 0B 00 04 EF 30 62 89 D6 84 D8 90 00 1D [17:13:22]RAPDU: 04 EF 30 62 89 D6 84 D8 90 00 [17:13:22]wFMCommunicate OK [17:13:22]SAM_PROTO_SignData done [17:13:22]FM_MakeSignedData done [17:13:22]CreateOFDProtocolMessage [17:13:22]wFMCommunicate request_size=4 [17:13:22]MH_SAM_APDU [17:13:22]CAPDU: 80 11 00 00 [17:13:22]Write to MH i2c: E2 08 00 57 0B 80 11 00 00 00 00 00 00 DC [17:13:22]Write i2c OK [17:13:22]MH_I2C_Read... [17:13:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:22]Read from MH i2c: E2 [17:13:22]MH_I2C_Read... [17:13:22]Read from MH i2c: E2 17 00 [17:13:22]MH_I2C_Read... [17:13:22]Read from MH i2c: E2 17 00 57 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 33 [17:13:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:13:22]wFMCommunicate OK [17:13:22]CreateOFDProtocolMessage done [17:13:22]OFDSenderStorePacket 227533 [17:13:22]StoreOFDPacket docnum=227533 [17:13:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 16 26 04 01 45 1A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 01 00 00 F4 03 04 00 32 3A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CD 78 03 00 35 04 06 00 8C F3 07 F9 1E CD 04 EF 30 62 89 D6 84 D8 [17:13:22]CheckFolder [17:13:22]dirname=/storage/ofd_packets [17:13:22]CheckFolder done [17:13:22]ProducePacketName [17:13:22]name=ofd_packets/00227533 [17:13:22]NVStorageSaveData ofd_packets/00227533 [17:13:22]File name is /storage/ofd_packets/00227533 [17:13:22]Write 298 bytes [17:13:22]NVStorageSaveData done [17:13:22]OFDSenderStorePacket done [17:13:22]KKMCreateOFDPacket done [17:13:22]NVStorageSaveData kkm_last_timestamp [17:13:22]File name is /storage/kkm_last_timestamp [17:13:22]Write 4 bytes [17:13:22]NVStorageSaveData done [17:13:22]ExternCall_PrintAddStr [17:13:22]wPrintStart [17:13:22]Write to MH i2c: 01 00 00 58 0B 63 [17:13:22]Write i2c OK [17:13:22]MH_I2C_Read... [17:13:22]Read from MH i2c: 01 [17:13:22]MH_I2C_Read... [17:13:22]Read from MH i2c: 01 07 00 [17:13:22]MH_I2C_Read... [17:13:22]Read from MH i2c: 01 07 00 58 0B 00 00 00 00 00 FF 0F 78 [17:13:22]RasterBufferAndPrint [17:13:22]line Счет N : (1)1963165 [17:13:22]line ИНН: 02508201610067 [17:13:22]line Контрольно-Кассовый Чек [17:13:22]line ПРОДАЖА [17:13:22]line ТРК (МРК, ГНК) : 21 [17:13:22]line Товар: 2710194210 [17:13:22]line ДТ-К-5 [17:13:22]line 10.500 * 76.20 [17:13:22]line = 800.10 [17:13:22]line НДС 12% НСП 1% [17:13:22]line > о реализуемом товаре [17:13:22]line ОКРУГЛЕНИЕ: -0.10 [17:13:22]line ИТОГО: 800.00 [17:13:22]line Внесено: 800.00 [17:13:22]line СДАЧА: 0.00 [17:13:22]line НСП 1% : 7.08 [17:13:22]line НДС 12% : 84.97 [17:13:22]line Наличными: 800.00 [17:13:22]line Безнал.: 0.00 [17:13:22]line Место: АЗС № 133 "Партнер Нефть" [17:13:22]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:13:22]line СНО: Общий режим [17:13:22]line Чек 381 20.10.2024 17:13 [17:13:22]line Смена: 533 ФФД: 1.0 [17:13:22]line ЗНМ: 0300000091 [17:13:22]line РНМ: 0000000000091685 [17:13:22]line Версия ККМ: 001 [17:13:22]line ФМ: 0000000000871839 [17:13:22]line ФД: 227533 [17:13:22]line ФПД: 154975438708429 [17:13:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171322&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227533&fm=154975438708429&tin=02508201610067®Number=0000000000091685&sum=80000 [17:13:22]OFD Sender: Processing packet 227533 [packets to send 38, broken 37] [17:13:22]ProducePacketName [17:13:22]name=ofd_packets/00227533 [17:13:22]OFD Sender: To server: pG, [17:13:22]CommunicateWithHost lk.salyk.kg:30040 [17:13:22]ConnectInit lk.salyk.kg [17:13:22]written 0, free lines is 4095 [17:13:22]Connected sock=10 [17:13:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 16 26 04 01 45 1A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 01 00 00 F4 03 04 00 32 3A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CD 78 03 00 35 04 06 00 8C F3 07 F9 1E CD 04 EF 30 62 89 D6 84 D8 [17:13:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 33 65 47 00 16 CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CD 78 03 00 F4 03 04 00 30 E5 14 67 B6 04 01 00 00 B8 E1 F1 14 23 FA 74 44 [17:13:22]CommunicateWithHost err = 0 [17:13:22]CheckOFDResponse [17:13:22]1017 (14) - 77093643461234 [17:13:22]1041 (16) - 0000000000871839 [17:13:22]1040 (4) - 227533 [17:13:22]1012 (4) - 20.10.2024 11:10 [17:13:22]1206 (1) - 0 [17:13:22]OFD Sender: Remove packet 227533 [17:13:22]ProducePacketName [17:13:22]name=ofd_packets/00227533 [17:13:22]NVStorageDeleteData [17:13:23]Write to MH i2c: 01 00 00 82 0B 8D [17:13:23]Write i2c OK [17:13:23]MH_I2C_Read... [17:13:23]Read from MH i2c: 01 [17:13:23]MH_I2C_Read... [17:13:23]Read from MH i2c: 01 07 00 [17:13:23]MH_I2C_Read... [17:13:23]Read from MH i2c: 01 07 00 82 0B 00 00 00 00 00 04 0D A5 [17:13:23]RasterBufferAndPrint [17:13:23]line [17:13:23]line [17:13:23]line [17:13:23]line [17:13:23]line [17:13:23]written 0, free lines is 3338 [17:13:23]process_action close_receipt done [17:13:23]requested_data is exist [17:13:23]produce_requested_data [17:13:23]requested_item fm.sn is exist - process it [17:13:23]wFMCommunicate request_size=4 [17:13:23]MH_SAM_APDU [17:13:23]CAPDU: 80 11 00 00 [17:13:23]Write to MH i2c: E2 08 00 89 0B 80 11 00 00 00 00 00 00 0E [17:13:23]Write i2c OK [17:13:23]MH_I2C_Read... [17:13:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:23]Read from MH i2c: E2 [17:13:23]MH_I2C_Read... [17:13:23]Read from MH i2c: E2 17 00 [17:13:23]MH_I2C_Read... [17:13:23]Read from MH i2c: E2 17 00 89 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 65 [17:13:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:13:23]wFMCommunicate OK [17:13:23]requested_item fd.num is exist - process it [17:13:23]SAM_PROTO_GetFieldsCounters [17:13:23]wFMCommunicate request_size=4 [17:13:23]MH_SAM_APDU [17:13:23]CAPDU: 80 13 00 00 [17:13:23]Write to MH i2c: E2 08 00 8A 0B 80 13 00 00 00 00 00 00 11 [17:13:23]Write i2c OK [17:13:23]MH_I2C_Read... [17:13:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:13:23]Read from MH i2c: E2 [17:13:23]MH_I2C_Read... [17:13:23]Read from MH i2c: E2 62 00 [17:13:23]MH_I2C_Read... [17:13:23]Read from MH i2c: E2 62 00 8A 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 CD 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 7D 01 00 00 5E 04 04 00 7D 01 00 00 57 04 04 00 7E 01 00 00 19 04 04 00 00 00 00 00 90 00 13 [17:13: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 CD 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 7D 01 00 00 5E 04 04 00 7D 01 00 00 57 04 04 00 7E 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:13:23]wFMCommunicate OK [17:13:23]SAM_PROTO_GetFieldsCounters done [17:13:23]requested_item shift.num is exist - process it [17:13:23]requested_item shift.opened is exist - process it [17:13:23]req_shift_opened [17:13:23]FM_GetShiftState [17:13:23]SAM_PROTO_GetShiftState [17:13:23]wFMCommunicate request_size=4 [17:13:23]MH_SAM_APDU [17:13:23]CAPDU: 80 13 01 00 [17:13:23]Write to MH i2c: E2 08 00 8B 0B 80 13 01 00 00 00 00 00 13 [17:13:23]Write i2c OK [17:13:23]MH_I2C_Read... [17:13:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:23]Read from MH i2c: E2 [17:13:23]MH_I2C_Read... [17:13:23]Read from MH i2c: E2 0E 00 [17:13:23]MH_I2C_Read... [17:13:23]Read from MH i2c: E2 0E 00 8B 0B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 2D [17:13:23]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:13:23]wFMCommunicate OK [17:13:23]SAM_PROTO_GetShiftState done [17:13:23]FM_GetShiftState done [17:13:23]req_shift_opened done [17:13:23]requested_item shift.open_date is exist - process it [17:13:23]req_shift_open_date [17:13:23]req_shift_open_date done [17:13:23]produce_requested_data done [17:13:23]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227533,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [17:13:23]process_action_free close_receipt [17:13:23]json_value_free [17:13:23]json_value_free done [17:13:23]process_json_proto returns [17:13:23]Send response to host [17:13:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227533,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [17:13:23]free response buf [17:13:23]execute_script done [17:13:23]execute_script returns [17:13:23]free content buf [17:13:23]Sock 7.Close socket [17:13:23]Sock 7.Thread stoped [17:13:23]OFD Sender: No OFD packet to send [17:13:28]OFD Sender: No OFD packet to send [17:13:33]OFD Sender: No OFD packet to send [17:13:38]OFD Sender: No OFD packet to send [17:13:43]OFD Sender: No OFD packet to send [17:13:48]OFD Sender: No OFD packet to send [17:13:49]accept exits with 9 [17:13:49]New connection [17:13:49]New thread 3067219300 created [17:13:49]Thread 3067362660 joined [17:13:49]Waiting for new connection... [17:13:49] Sock 9.Parse request [17:13:49]Sock 9.Check first char [17:13:49]Sock 9.First char is OK [17:13:49]request: POST /json_proto HTTP/1.0 [17:13:49]Method: POST [17:13:49]URL: /json_proto [17:13:49]Method is POST - this is cgi request [17:13:49]url: /json_proto [17:13:49]query_string will be loaded in cgi processing [17:13:49]execute_cgi json_proto POST (null) [17:13:49]execute_cgi path=json_proto method=POST [17:13:49]POST find Content-Length [17:13:49]Host: 172.17.44.195:8080 [17:13:49]Content-Length: 683 [17:13:49]Content-Type: application/json [17:13:49] [17:13:49]POST finish read [17:13:49]Found Content-Length = 683 [17:13:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963166", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:49]execute_script... [17:13: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)1963166", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:49]POST & json_proto [17:13:49]process_json_proto [17:13:49]json parsed OK: [17:13:49]protocol is kg_v1.0 [17:13:49]action value=close_receipt [17:13:49]process_action close_receipt [17:13:49]cmd_close_receipt [17:13:49]MH_GetDate [17:13:49]Write to MH i2c: F0 00 00 8C 0B 86 [17:13:49]Write i2c OK [17:13:49]MH_I2C_Read... [17:13:49]Read from MH i2c: F0 [17:13:49]MH_I2C_Read... [17:13:49]Read from MH i2c: F0 09 00 [17:13:49]MH_I2C_Read... [17:13:49]Read from MH i2c: F0 09 00 8C 0B 00 4E 3A 15 67 82 C9 CF 66 13 [17:13:49]GetLastDocTimeStamp 1729444402 [17:13:49]current date 1729444430 [17:13:49]FM_GetShiftState [17:13:49]SAM_PROTO_GetShiftState [17:13:49]wFMCommunicate request_size=4 [17:13:49]MH_SAM_APDU [17:13:49]CAPDU: 80 13 01 00 [17:13:49]Write to MH i2c: E2 08 00 8D 0B 80 13 01 00 00 00 00 00 15 [17:13:49]Write i2c OK [17:13:49]MH_I2C_Read... [17:13:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:49]Read from MH i2c: E2 [17:13:49]MH_I2C_Read... [17:13:49]Read from MH i2c: E2 0E 00 [17:13:49]MH_I2C_Read... [17:13:49]Read from MH i2c: E2 0E 00 8D 0B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 2F [17:13:49]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:13:49]wFMCommunicate OK [17:13:49]SAM_PROTO_GetShiftState done [17:13:49]FM_GetShiftState done [17:13:49]opened in 1729383750 [17:13:49]opened+sec_in_day 1729470150 [17:13:49]quantity*price = 100015 [17:13:49]sum+1 = 100017 [17:13:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 382 20.10.2024 17:13 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227534 ФПД: 125981657579954 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171351&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227534&fm=125981657579954&tin=02508201610067®Number=0000000000091685&sum=100000 [17:13:50]StoreToDocumentArchive [17:13:50]shift 533 fd 227534 [17:13:50]save to /storage/0533/doc_00227534 [17:13:50]save last doc name /storage/0533/doc_00227534 to /storage/kkm_last_doc_name [17:13:50]save OK [17:13:50]Clear old archive folders... [17:13:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:13:50]tlvbuf is 00DEC540 [17:13:50]SAM_PROTO_ClearQueue [17:13:50]wFMCommunicate request_size=4 [17:13:50]MH_SAM_APDU [17:13:50]CAPDU: 80 09 00 00 [17:13:50]Write to MH i2c: E2 08 00 9A 0B 80 09 00 00 00 00 00 00 17 [17:13:50]Write i2c OK [17:13:50]MH_I2C_Read... [17:13:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:13:50]Read from MH i2c: E2 [17:13:50]MH_I2C_Read... [17:13:50]Read from MH i2c: E2 03 00 [17:13:50]MH_I2C_Read... [17:13:50]Read from MH i2c: E2 03 00 9A 0B 00 90 00 19 [17:13:50]RAPDU: 90 00 [17:13:50]wFMCommunicate OK [17:13:50]SAM_PROTO_ClearQueue done [17:13:50]KKMCreateOFDPacket [17:13:50]OFDProtocolAddRootSTLVToBuf [17:13:50]FM_MakeSignedData [17:13:50]FM_MakeSignedData [17:13:50]SAM_PROTO_SignData [17:13:50]wFMCommunicate request_size=4 [17:13:50]MH_SAM_APDU [17:13:50]CAPDU: 80 0D 01 02 [17:13:50]Write to MH i2c: E2 08 00 9B 0B 80 0D 01 02 00 00 00 00 1F [17:13:50]Write i2c OK [17:13:50]MH_I2C_Read... [17:13:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:13:50]Read from MH i2c: E2 [17:13:50]MH_I2C_Read... [17:13:50]Read from MH i2c: E2 03 00 [17:13:50]MH_I2C_Read... [17:13:50]Read from MH i2c: E2 03 00 9B 0B 00 90 00 1A [17:13:50]RAPDU: 90 00 [17:13:50]wFMCommunicate OK [17:13:50]wFMCommunicate request_size=255 [17:13:50]MH_SAM_APDU [17:13:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 4F 3A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CE 78 03 00 35 04 06 00 72 [17:13:50]Write to MH i2c: E2 02 01 9C 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 01 00 00 F4 03 04 00 4F 3A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CE 78 03 00 35 04 06 00 72 00 00 06 [17:13:50]Write i2c OK [17:13:50]MH_I2C_Read... [17:13:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:51]Read from MH i2c: E2 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: E2 03 00 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: E2 03 00 9C 0B 00 90 00 1B [17:13:51]RAPDU: 90 00 [17:13:51]wFMCommunicate OK [17:13:51]wFMCommunicate request_size=10 [17:13:51]MH_SAM_APDU [17:13:51]CAPDU: 80 0D 02 02 05 94 63 F2 C1 B2 [17:13:51]Write to MH i2c: E2 0D 00 9D 0B 80 0D 02 02 05 00 94 63 F2 C1 B2 00 00 88 [17:13:51]Write i2c OK [17:13:51]MH_I2C_Read... [17:13:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:51]Read from MH i2c: E2 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: E2 03 00 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: E2 03 00 9D 0B 00 90 00 1C [17:13:51]RAPDU: 90 00 [17:13:51]wFMCommunicate OK [17:13:51]wFMCommunicate request_size=4 [17:13:51]MH_SAM_APDU [17:13:51]CAPDU: 80 0D 03 02 [17:13:51]Write to MH i2c: E2 08 00 9E 0B 80 0D 03 02 00 00 00 00 24 [17:13:51]Write i2c OK [17:13:51]MH_I2C_Read... [17:13:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:13:51]Read from MH i2c: E2 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: E2 0B 00 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: E2 0B 00 9E 0B 00 71 8B 05 89 5F 0A 59 CA 90 00 3B [17:13:51]RAPDU: 71 8B 05 89 5F 0A 59 CA 90 00 [17:13:51]wFMCommunicate OK [17:13:51]SAM_PROTO_SignData done [17:13:51]FM_MakeSignedData done [17:13:51]CreateOFDProtocolMessage [17:13:51]wFMCommunicate request_size=4 [17:13:51]MH_SAM_APDU [17:13:51]CAPDU: 80 11 00 00 [17:13:51]Write to MH i2c: E2 08 00 9F 0B 80 11 00 00 00 00 00 00 24 [17:13:51]Write i2c OK [17:13:51]MH_I2C_Read... [17:13:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:51]Read from MH i2c: E2 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: E2 17 00 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: E2 17 00 9F 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 7B [17:13:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:13:51]wFMCommunicate OK [17:13:51]CreateOFDProtocolMessage done [17:13:51]OFDSenderStorePacket 227534 [17:13:51]StoreOFDPacket docnum=227534 [17:13:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 51 62 07 01 33 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 01 00 00 F4 03 04 00 4F 3A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CE 78 03 00 35 04 06 00 72 94 63 F2 C1 B2 71 8B 05 89 5F 0A 59 CA [17:13:51]CheckFolder [17:13:51]dirname=/storage/ofd_packets [17:13:51]CheckFolder done [17:13:51]ProducePacketName [17:13:51]name=ofd_packets/00227534 [17:13:51]NVStorageSaveData ofd_packets/00227534 [17:13:51]File name is /storage/ofd_packets/00227534 [17:13:51]Write 301 bytes [17:13:51]NVStorageSaveData done [17:13:51]OFDSenderStorePacket done [17:13:51]KKMCreateOFDPacket done [17:13:51]NVStorageSaveData kkm_last_timestamp [17:13:51]File name is /storage/kkm_last_timestamp [17:13:51]Write 4 bytes [17:13:51]NVStorageSaveData done [17:13:51]ExternCall_PrintAddStr [17:13:51]wPrintStart [17:13:51]Write to MH i2c: 01 00 00 A0 0B AB [17:13:51]OFD Sender: Processing packet 227534 [packets to send 38, broken 37] [17:13:51]ProducePacketName [17:13:51]name=ofd_packets/00227534 [17:13:51]OFD Sender: To server: pG, [17:13:51]CommunicateWithHost lk.salyk.kg:30040 [17:13:51]ConnectInit lk.salyk.kg [17:13:51]Write i2c OK [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: 01 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: 01 07 00 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: 01 07 00 A0 0B 00 00 00 00 00 FF 0F C0 [17:13:51]RasterBufferAndPrint [17:13:51]line Счет N : (1)1963166 [17:13:51]line ИНН: 02508201610067 [17:13:51]line Контрольно-Кассовый Чек [17:13:51]line ПРОДАЖА [17:13:51]line ТРК (МРК, ГНК) : 53 [17:13:51]line Товар: 2710124130 [17:13:51]line Аи-92-К-5 [17:13:51]line 14.950 * 66.90 [17:13:51]line = 1000.16 [17:13:51]line НДС 12% НСП 1% [17:13:51]line > о реализуемом товаре [17:13:51]line ОКРУГЛЕНИЕ: -0.16 [17:13:51]line ИТОГО: 1000.00 [17:13:51]line Внесено: 1000.00 [17:13:51]line СДАЧА: 0.00 [17:13:51]line НСП 1% : 8.85 [17:13:51]line НДС 12% : 106.21 [17:13:51]line Наличными: 1000.00 [17:13:51]line Безнал.: 0.00 [17:13:51]line Место: АЗС № 133 "Партнер Нефть" [17:13:51]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:13:51]line СНО: Общий режим [17:13:51]line Чек 382 20.10.2024 17:13 [17:13:51]line Смена: 533 ФФД: 1.0 [17:13:51]line ЗНМ: 0300000091 [17:13:51]line РНМ: 0000000000091685 [17:13:51]line Версия ККМ: 001 [17:13:51]line ФМ: 0000000000871839 [17:13:51]line ФД: 227534 [17:13:51]line ФПД: 125981657579954 [17:13:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171351&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227534&fm=125981657579954&tin=02508201610067®Number=0000000000091685&sum=100000 [17:13:51]Connected sock=10 [17:13: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 33 39 0F 01 00 00 51 62 07 01 33 01 5A 03 01 00 03 00 FB written 0, free lines is 4095 [17:13:51]00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 01 00 00 F4 03 04 00 4F 3A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CE 78 03 00 35 04 06 00 72 94 63 F2 C1 B2 71 8B 05 89 5F 0A 59 CA [17:13: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 33 39 4F 00 00 00 D3 A8 47 00 7A 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CE 78 03 00 F4 03 04 00 4D E5 14 67 B6 04 01 00 00 9A 58 7E B5 52 91 33 49 [17:13:51]CommunicateWithHost err = 0 [17:13:51]CheckOFDResponse [17:13:51]1017 (14) - 77093643461234 [17:13:51]1041 (16) - 0000000000871839 [17:13:51]1040 (4) - 227534 [17:13:51]1012 (4) - 20.10.2024 11:11 [17:13:51]1206 (1) - 0 [17:13:51]OFD Sender: Remove packet 227534 [17:13:51]ProducePacketName [17:13:51]name=ofd_packets/00227534 [17:13:51]NVStorageDeleteData [17:13:52]Write to MH i2c: 01 00 00 CA 0B D5 [17:13:52]Write i2c OK [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: 01 [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: 01 07 00 [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: 01 07 00 CA 0B 00 00 00 00 00 02 0D EB [17:13:52]RasterBufferAndPrint [17:13:52]line [17:13:52]line [17:13:52]line [17:13:52]line [17:13:52]line [17:13:52]written 0, free lines is 3336 [17:13:52]process_action close_receipt done [17:13:52]requested_data is exist [17:13:52]produce_requested_data [17:13:52]requested_item fm.sn is exist - process it [17:13:52]wFMCommunicate request_size=4 [17:13:52]MH_SAM_APDU [17:13:52]CAPDU: 80 11 00 00 [17:13:52]Write to MH i2c: E2 08 00 D1 0B 80 11 00 00 00 00 00 00 56 [17:13:52]Write i2c OK [17:13:52]MH_I2C_Read... [17:13:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:52]Read from MH i2c: E2 [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: E2 17 00 [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: E2 17 00 D1 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 AD [17:13:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:13:52]wFMCommunicate OK [17:13:52]requested_item fd.num is exist - process it [17:13:52]SAM_PROTO_GetFieldsCounters [17:13:52]wFMCommunicate request_size=4 [17:13:52]MH_SAM_APDU [17:13:52]CAPDU: 80 13 00 00 [17:13:52]Write to MH i2c: E2 08 00 D2 0B 80 13 00 00 00 00 00 00 59 [17:13:52]Write i2c OK [17:13:52]MH_I2C_Read... [17:13:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:13:52]Read from MH i2c: E2 [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: E2 62 00 [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: E2 62 00 D2 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 CE 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 7E 01 00 00 5E 04 04 00 7E 01 00 00 57 04 04 00 7F 01 00 00 19 04 04 00 00 00 00 00 90 00 5F [17: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 CE 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 7E 01 00 00 5E 04 04 00 7E 01 00 00 57 04 04 00 7F 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:13:52]wFMCommunicate OK [17:13:52]SAM_PROTO_GetFieldsCounters done [17:13:52]requested_item shift.num is exist - process it [17:13:52]requested_item shift.opened is exist - process it [17:13:52]req_shift_opened [17:13:52]FM_GetShiftState [17:13:52]SAM_PROTO_GetShiftState [17:13:52]wFMCommunicate request_size=4 [17:13:52]MH_SAM_APDU [17:13:52]CAPDU: 80 13 01 00 [17:13:52]Write to MH i2c: E2 08 00 D3 0B 80 13 01 00 00 00 00 00 5B [17:13:52]Write i2c OK [17:13:52]MH_I2C_Read... [17:13:52]OFD Sender: No OFD packet to send [17:13:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:52]Read from MH i2c: E2 [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: E2 0E 00 [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: E2 0E 00 D3 0B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 75 [17:13:52]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:13:52]wFMCommunicate OK [17:13:52]SAM_PROTO_GetShiftState done [17:13:52]FM_GetShiftState done [17:13:52]req_shift_opened done [17:13:52]requested_item shift.open_date is exist - process it [17:13:52]req_shift_open_date [17:13:52]req_shift_open_date done [17:13:52]produce_requested_data done [17:13:52]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227534,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [17:13:52]process_action_free close_receipt [17:13:52]json_value_free [17:13:52]json_value_free done [17:13:52]process_json_proto returns [17:13:52]Send response to host [17:13:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227534,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [17:13:52]free response buf [17:13:52]execute_script done [17:13:52]execute_script returns [17:13:52]free content buf [17:13:52]Sock 9.Close socket [17:13:52]Sock 9.Thread stoped [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:12]OFD Sender: No OFD packet to send [17:14:17]OFD Sender: No OFD packet to send [17:14:22]OFD Sender: No OFD packet to send [17:14:27]OFD Sender: No OFD packet to send [17:14:32]OFD Sender: No OFD packet to send [17:14:37]OFD Sender: No OFD packet to send [17:14:42]OFD Sender: No OFD packet to send [17:14:47]OFD Sender: No OFD packet to send [17:14:52]OFD Sender: No OFD packet to send [17:14:55]accept exits with 7 [17:14:55]New connection [17:14:55]New thread 3067362660 created [17:14:55]Thread 3067219300 joined [17:14:55]Waiting for new connection... [17:14:55] Sock 7.Parse request [17:14:55]Sock 7.Check first char [17:14:55]Sock 7.First char is OK [17:14:55]request: POST /json_proto HTTP/1.0 [17:14:55]Method: POST [17:14:55]URL: /json_proto [17:14:55]Method is POST - this is cgi request [17:14:55]url: /json_proto [17:14:55]query_string will be loaded in cgi processing [17:14:55]execute_cgi json_proto POST (null) [17:14:55]execute_cgi path=json_proto method=POST [17:14:55]POST find Content-Length [17:14:55]Host: 172.17.44.195:8080 [17:14:55]Content-Length: 770 [17:14:55]Content-Type: application/json [17:14:55] [17:14:55]POST finish read [17:14:55]Found Content-Length = 770 [17:14:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963167", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 3000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:14:55]execute_script... [17:14: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)1963167", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 3000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:14:55]POST & json_proto [17:14:55]process_json_proto [17:14:55]json parsed OK: [17:14:55]protocol is kg_v1.0 [17:14:55]action value=close_receipt [17:14:55]process_action close_receipt [17:14:55]cmd_close_receipt [17:14:55]MH_GetDate [17:14:55]Write to MH i2c: F0 00 00 D4 0B CE [17:14:55]Write i2c OK [17:14:55]MH_I2C_Read... [17:14:55]Read from MH i2c: F0 [17:14:55]MH_I2C_Read... [17:14:55]Read from MH i2c: F0 09 00 [17:14:55]MH_I2C_Read... [17:14:55]Read from MH i2c: F0 09 00 D4 0B 00 91 3A 15 67 82 C9 CF 66 9E [17:14:55]GetLastDocTimeStamp 1729444431 [17:14:55]current date 1729444497 [17:14:55]FM_GetShiftState [17:14:55]SAM_PROTO_GetShiftState [17:14:55]wFMCommunicate request_size=4 [17:14:55]MH_SAM_APDU [17:14:55]CAPDU: 80 13 01 00 [17:14:55]Write to MH i2c: E2 08 00 D5 0B 80 13 01 00 00 00 00 00 5D [17:14:55]Write i2c OK [17:14:55]MH_I2C_Read... [17:14:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:56]Read from MH i2c: E2 [17:14:56]MH_I2C_Read... [17:14:56]Read from MH i2c: E2 0E 00 [17:14:56]MH_I2C_Read... [17:14:56]Read from MH i2c: E2 0E 00 D5 0B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 77 [17:14:56]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:14:56]wFMCommunicate OK [17:14:56]SAM_PROTO_GetShiftState done [17:14:56]FM_GetShiftState done [17:14:56]opened in 1729383750 [17:14:56]opened+sec_in_day 1729470150 [17:14:56]quantity*price = 300064 [17:14:56]sum+1 = 300066 [17:14:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.65 НСП 1% : 26.55 НДС 12% : 318.65 Наличными: 0.00 Безнал.: 3000.65 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 383 20.10.2024 17:14 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 227535 ФПД: 189941386945376 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171457&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227535&fm=189941386945376&tin=02508201610067®Number=0000000000091685&sum=300065 [17:14:57]StoreToDocumentArchive [17:14:57]shift 533 fd 227535 [17:14:57]save to /storage/0533/doc_00227535 [17:14:57]save last doc name /storage/0533/doc_00227535 to /storage/kkm_last_doc_name [17:14:57]save OK [17:14:57]Clear old archive folders... [17:14:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:14:57]tlvbuf is 00DEC400 [17:14:57]SAM_PROTO_ClearQueue [17:14:57]wFMCommunicate request_size=4 [17:14:57]MH_SAM_APDU [17:14:57]CAPDU: 80 09 00 00 [17:14:57]Write to MH i2c: E2 08 00 E2 0B 80 09 00 00 00 00 00 00 5F [17:14:57]Write i2c OK [17:14:57]MH_I2C_Read... [17:14:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:14:57]Read from MH i2c: E2 [17:14:57]MH_I2C_Read... [17:14:57]Read from MH i2c: E2 03 00 [17:14:57]MH_I2C_Read... [17:14:57]Read from MH i2c: E2 03 00 E2 0B 00 90 00 61 [17:14:57]RAPDU: 90 00 [17:14:57]wFMCommunicate OK [17:14:57]SAM_PROTO_ClearQueue done [17:14:57]KKMCreateOFDPacket [17:14:57]OFDProtocolAddRootSTLVToBuf [17:14:57]FM_MakeSignedData [17:14:57]FM_MakeSignedData [17:14:57]SAM_PROTO_SignData [17:14:57]wFMCommunicate request_size=4 [17:14:57]MH_SAM_APDU [17:14:57]CAPDU: 80 0D 01 02 [17:14:57]Write to MH i2c: E2 08 00 E3 0B 80 0D 01 02 00 00 00 00 67 [17:14:57]Write i2c OK [17:14:57]MH_I2C_Read... [17:14:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:14:57]Read from MH i2c: E2 [17:14:57]MH_I2C_Read... [17:14:57]Read from MH i2c: E2 03 00 [17:14:57]MH_I2C_Read... [17:14:57]Read from MH i2c: E2 03 00 E3 0B 00 90 00 62 [17:14:57]RAPDU: 90 00 [17:14:57]wFMCommunicate OK [17:14:57]wFMCommunicate request_size=255 [17:14:57]MH_SAM_APDU [17:14:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 01 00 00 F4 03 04 00 91 3A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CF 78 03 00 35 04 06 00 AC [17:14:57]Write to MH i2c: E2 02 01 E4 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 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 01 00 00 F4 03 04 00 91 3A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CF 78 03 00 35 04 06 00 AC 00 00 87 [17:14:57]Write i2c OK [17:14:57]MH_I2C_Read... [17:14:57]OFD Sender: No OFD packet to send [17:14:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:57]Read from MH i2c: E2 [17:14:57]MH_I2C_Read... [17:14:57]Read from MH i2c: E2 03 00 [17:14:57]MH_I2C_Read... [17:14:57]Read from MH i2c: E2 03 00 E4 0B 00 90 00 63 [17:14:57]RAPDU: 90 00 [17:14:57]wFMCommunicate OK [17:14:57]wFMCommunicate request_size=10 [17:14:57]MH_SAM_APDU [17:14:57]CAPDU: 80 0D 02 02 05 C0 2C E5 A3 60 [17:14:57]Write to MH i2c: E2 0D 00 E5 0B 80 0D 02 02 05 00 C0 2C E5 A3 60 00 00 48 [17:14:57]Write i2c OK [17:14:57]MH_I2C_Read... [17:14:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:57]Read from MH i2c: E2 [17:14:57]MH_I2C_Read... [17:14:57]Read from MH i2c: E2 03 00 [17:14:57]MH_I2C_Read... [17:14:57]Read from MH i2c: E2 03 00 E5 0B 00 90 00 64 [17:14:57]RAPDU: 90 00 [17:14:57]wFMCommunicate OK [17:14:57]wFMCommunicate request_size=4 [17:14:57]MH_SAM_APDU [17:14:57]CAPDU: 80 0D 03 02 [17:14:57]Write to MH i2c: E2 08 00 E6 0B 80 0D 03 02 00 00 00 00 6C [17:14:57]Write i2c OK [17:14:57]MH_I2C_Read... [17:14:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:14:57]Read from MH i2c: E2 [17:14:57]MH_I2C_Read... [17:14:57]Read from MH i2c: E2 0B 00 [17:14:57]MH_I2C_Read... [17:14:57]Read from MH i2c: E2 0B 00 E6 0B 00 E2 D2 19 8C 49 37 79 56 90 00 15 [17:14:57]RAPDU: E2 D2 19 8C 49 37 79 56 90 00 [17:14:57]wFMCommunicate OK [17:14:57]SAM_PROTO_SignData done [17:14:57]FM_MakeSignedData done [17:14:57]CreateOFDProtocolMessage [17:14:57]wFMCommunicate request_size=4 [17:14:57]MH_SAM_APDU [17:14:57]CAPDU: 80 11 00 00 [17:14:57]Write to MH i2c: E2 08 00 E7 0B 80 11 00 00 00 00 00 00 6C [17:14:57]Write i2c OK [17:14:57]MH_I2C_Read... [17:14:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:57]Read from MH i2c: E2 [17:14:57]MH_I2C_Read... [17:14:57]Read from MH i2c: E2 17 00 [17:14:57]MH_I2C_Read... [17:14:57]Read from MH i2c: E2 17 00 E7 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C3 [17:14:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:14:57]wFMCommunicate OK [17:14:57]CreateOFDProtocolMessage done [17:14:57]OFDSenderStorePacket 227535 [17:14:57]StoreOFDPacket docnum=227535 [17:14:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 D4 9C 07 01 32 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 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 01 00 00 F4 03 04 00 91 3A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CF 78 03 00 35 04 06 00 AC C0 2C E5 A3 60 E2 D2 19 8C 49 37 79 56 [17:14:57]CheckFolder [17:14:57]dirname=/storage/ofd_packets [17:14:57]CheckFolder done [17:14:57]ProducePacketName [17:14:57]name=ofd_packets/00227535 [17:14:57]NVStorageSaveData ofd_packets/00227535 [17:14:57]File name is /storage/ofd_packets/00227535 [17:14:57]Write 301 bytes [17:14:57]NVStorageSaveData done [17:14:57]OFDSenderStorePacket done [17:14:57]KKMCreateOFDPacket done [17:14:57]NVStorageSaveData kkm_last_timestamp [17:14:57]File name is /storage/kkm_last_timestamp [17:14:57]Write 4 bytes [17:14:57]NVStorageSaveData done [17:14:57]ExternCall_PrintAddStr [17:14:57]wPrintStart [17:14:57]Write to MH i2c: 01 00 00 E8 0B F3 [17:14:57]Write i2c OK [17:14:57]MH_I2C_Read... [17:14:57]Read from MH i2c: 01 [17:14:57]MH_I2C_Read... [17:14:57]Read from MH i2c: 01 07 00 [17:14:57]MH_I2C_Read... [17:14:57]Read from MH i2c: 01 07 00 E8 0B 00 00 00 00 00 FF 0F 08 [17:14:57]RasterBufferAndPrint [17:14:57]line Счет N : (1)1963167 [17:14:57]line ИНН: 02508201610067 [17:14:57]line Контрольно-Кассовый Чек [17:14:57]line ПРОДАЖА [17:14:57]line ТРК (МРК, ГНК) : 34 [17:14:57]line Товар: 2710124500 [17:14:57]line Аи-95-К-5 [17:14:57]line 40.440 * 74.20 [17:14:57]line = 3000.65 [17:14:57]line НДС 12% НСП 1% [17:14:57]line > о реализуемом товаре [17:14:57]line ИТОГО: 3000.65 [17:14:57]line НСП 1% : 26.55 [17:14:57]line НДС 12% : 318.65 [17:14:57]line Наличными: 0.00 [17:14:57]line Безнал.: 3000.65 [17:14:57]line Место: АЗС № 133 "Партнер Нефть" [17:14:57]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:14:57]line СНО: Общий режим [17:14:57]line Чек 383 20.10.2024 17:14 [17:14:57]line Смена: 533 ФФД: 1.0 [17:14:57]line ЗНМ: 0300000091 [17:14:57]line РНМ: 0000000000091685 [17:14:57]line Версия ККМ: 001 [17:14:57]line Платежная система: Mbank [17:14:57]line ФМ: 0000000000871839 [17:14:57]line ФД: 227535 [17:14:57]line ФПД: 189941386945376 [17:14:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171457&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227535&fm=189941386945376&tin=02508201610067®Number=0000000000091685&sum=300065 [17:14:58]OFD Sender: Processing packet 227535 [packets to send 38, broken 37] [17:14:58]ProducePacketName [17:14:58]name=ofd_packets/00227535 [17:14:58]OFD Sender: To server: pG, [17:14:58]CommunicateWithHost lk.salyk.kg:30040 [17:14:58]ConnectInit lk.salyk.kg [17:14:58]written 0, free lines is 4095 [17:14:58]Connected sock=10 [17:14:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 D4 9C 07 01 32 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 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 01 00 00 F4 03 04 00 91 3A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CF 78 03 00 35 04 06 00 AC C0 2C E5 A3 60 E2 D2 19 8C 49 37 79 56 [17:14: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 33 39 4F 00 00 00 8F AE 47 00 C3 DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 CF 78 03 00 F4 03 04 00 8F E5 14 67 B6 04 01 00 00 E5 2B E2 75 A6 E6 D5 82 [17:14:58]CommunicateWithHost err = 0 [17:14:58]CheckOFDResponse [17:14:58]1017 (14) - 77093643461234 [17:14:58]1041 (16) - 0000000000871839 [17:14:58]1040 (4) - 227535 [17:14:58]1012 (4) - 20.10.2024 11:12 [17:14:58]1206 (1) - 0 [17:14:58]OFD Sender: Remove packet 227535 [17:14:58]ProducePacketName [17:14:58]name=ofd_packets/00227535 [17:14:58]NVStorageDeleteData [17:14:58]Write to MH i2c: 01 00 00 10 0C 1C [17:14:58]Write i2c OK [17:14:58]MH_I2C_Read... [17:14:58]Read from MH i2c: 01 [17:14:58]MH_I2C_Read... [17:14:58]Read from MH i2c: 01 07 00 [17:14:58]MH_I2C_Read... [17:14:58]Read from MH i2c: 01 07 00 10 0C 00 00 00 00 00 2A 0D 5A [17:14:58]RasterBufferAndPrint [17:14:58]line [17:14:58]line [17:14:58]line [17:14:58]line [17:14:58]line [17:14:58]written 0, free lines is 3376 [17:14:58]process_action close_receipt done [17:14:58]requested_data is exist [17:14:58]produce_requested_data [17:14:58]requested_item fm.sn is exist - process it [17:14:58]wFMCommunicate request_size=4 [17:14:58]MH_SAM_APDU [17:14:58]CAPDU: 80 11 00 00 [17:14:58]Write to MH i2c: E2 08 00 17 0C 80 11 00 00 00 00 00 00 9D [17:14:58]Write i2c OK [17:14:58]MH_I2C_Read... [17:14:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:58]Read from MH i2c: E2 [17:14:58]MH_I2C_Read... [17:14:58]Read from MH i2c: E2 17 00 [17:14:58]MH_I2C_Read... [17:14:58]Read from MH i2c: E2 17 00 17 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F4 [17:14:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:14:58]wFMCommunicate OK [17:14:58]requested_item fd.num is exist - process it [17:14:58]SAM_PROTO_GetFieldsCounters [17:14:58]wFMCommunicate request_size=4 [17:14:58]MH_SAM_APDU [17:14:58]CAPDU: 80 13 00 00 [17:14:58]Write to MH i2c: E2 08 00 18 0C 80 13 00 00 00 00 00 00 A0 [17:14:58]Write i2c OK [17:14:58]MH_I2C_Read... [17:14:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:14:58]Read from MH i2c: E2 [17:14:58]MH_I2C_Read... [17:14:58]Read from MH i2c: E2 62 00 [17:14:58]MH_I2C_Read... [17:14:58]Read from MH i2c: E2 62 00 18 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 CF 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 7F 01 00 00 5E 04 04 00 7F 01 00 00 57 04 04 00 80 01 00 00 19 04 04 00 00 00 00 00 90 00 AA [17:14:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 CF 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 7F 01 00 00 5E 04 04 00 7F 01 00 00 57 04 04 00 80 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:14:58]wFMCommunicate OK [17:14:58]SAM_PROTO_GetFieldsCounters done [17:14:58]requested_item shift.num is exist - process it [17:14:58]requested_item shift.opened is exist - process it [17:14:58]req_shift_opened [17:14:58]FM_GetShiftState [17:14:58]SAM_PROTO_GetShiftState [17:14:58]wFMCommunicate request_size=4 [17:14:58]MH_SAM_APDU [17:14:58]CAPDU: 80 13 01 00 [17:14:58]Write to MH i2c: E2 08 00 19 0C 80 13 01 00 00 00 00 00 A2 [17:14:58]Write i2c OK [17:14:58]MH_I2C_Read... [17:14:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:58]Read from MH i2c: E2 [17:14:58]MH_I2C_Read... [17:14:58]Read from MH i2c: E2 0E 00 [17:14:58]MH_I2C_Read... [17:14:58]Read from MH i2c: E2 0E 00 19 0C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 BC [17:14:58]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:14:58]wFMCommunicate OK [17:14:58]SAM_PROTO_GetShiftState done [17:14:58]FM_GetShiftState done [17:14:58]req_shift_opened done [17:14:58]requested_item shift.open_date is exist - process it [17:14:58]req_shift_open_date [17:14:58]req_shift_open_date done [17:14:58]produce_requested_data done [17:14:58]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227535,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [17:14:58]process_action_free close_receipt [17:14:58]json_value_free [17:14:58]json_value_free done [17:14:58]process_json_proto returns [17:14:58]Send response to host [17:14:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227535,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [17:14:58]free response buf [17:14:58]execute_script done [17:14:58]execute_script returns [17:14:58]free content buf [17:14:58]Sock 7.Close socket [17:14:58]Sock 7.Thread stoped [17:14:58]OFD Sender: No OFD packet to send [17:15:03]OFD Sender: No OFD packet to send [17:15:08]OFD Sender: No OFD packet to send [17:15:10]accept exits with 9 [17:15:10]New connection [17:15:10]New thread 3067219300 created [17:15:10]Thread 3067362660 joined [17:15:10]Waiting for new connection... [17:15:10] Sock 9.Parse request [17:15:10]Sock 9.Check first char [17:15:10]Sock 9.First char is OK [17:15:10]request: POST /json_proto HTTP/1.0 [17:15:10]Method: POST [17:15:10]URL: /json_proto [17:15:10]Method is POST - this is cgi request [17:15:10]url: /json_proto [17:15:10]query_string will be loaded in cgi processing [17:15:10]execute_cgi json_proto POST (null) [17:15:10]execute_cgi path=json_proto method=POST [17:15:10]POST find Content-Length [17:15:10]Host: 172.17.44.195:8080 [17:15:10]Content-Length: 683 [17:15:10]Content-Type: application/json [17:15:10] [17:15:10]POST finish read [17:15:10]Found Content-Length = 683 [17:15:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963168", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:15:10]execute_script... [17:15:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963168", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:15:10]POST & json_proto [17:15:10]process_json_proto [17:15:10]json parsed OK: [17:15:10]protocol is kg_v1.0 [17:15:10]action value=close_receipt [17:15:10]process_action close_receipt [17:15:10]cmd_close_receipt [17:15:10]MH_GetDate [17:15:10]Write to MH i2c: F0 00 00 1A 0C 15 [17:15:10]Write i2c OK [17:15:10]MH_I2C_Read... [17:15:10]Read from MH i2c: F0 [17:15:10]MH_I2C_Read... [17:15:10]Read from MH i2c: F0 09 00 [17:15:10]MH_I2C_Read... [17:15:10]Read from MH i2c: F0 09 00 1A 0C 00 9F 3A 15 67 82 C9 CF 66 F3 [17:15:10]GetLastDocTimeStamp 1729444497 [17:15:10]current date 1729444511 [17:15:10]FM_GetShiftState [17:15:10]SAM_PROTO_GetShiftState [17:15:10]wFMCommunicate request_size=4 [17:15:10]MH_SAM_APDU [17:15:10]CAPDU: 80 13 01 00 [17:15:10]Write to MH i2c: E2 08 00 1B 0C 80 13 01 00 00 00 00 00 A4 [17:15:10]Write i2c OK [17:15:10]MH_I2C_Read... [17:15:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:15:10]Read from MH i2c: E2 [17:15:10]MH_I2C_Read... [17:15:10]Read from MH i2c: E2 0E 00 [17:15:10]MH_I2C_Read... [17:15:10]Read from MH i2c: E2 0E 00 1B 0C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 BE [17:15:10]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:15:10]wFMCommunicate OK [17:15:10]SAM_PROTO_GetShiftState done [17:15:10]FM_GetShiftState done [17:15:10]opened in 1729383750 [17:15:10]opened+sec_in_day 1729470150 [17:15:10]quantity*price = 150056 [17:15:10]sum+1 = 150058 [17:15:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 384 20.10.2024 17:15 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227536 ФПД: 44698101270816 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171511&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227536&fm=44698101270816&tin=02508201610067®Number=0000000000091685&sum=150000 [17:15:11]StoreToDocumentArchive [17:15:11]shift 533 fd 227536 [17:15:11]save to /storage/0533/doc_00227536 [17:15:11]save last doc name /storage/0533/doc_00227536 to /storage/kkm_last_doc_name [17:15:11]save OK [17:15:11]Clear old archive folders... [17:15:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:15:11]tlvbuf is 00D89620 [17:15:11]SAM_PROTO_ClearQueue [17:15:11]wFMCommunicate request_size=4 [17:15:11]MH_SAM_APDU [17:15:11]CAPDU: 80 09 00 00 [17:15:11]Write to MH i2c: E2 08 00 28 0C 80 09 00 00 00 00 00 00 A6 [17:15:11]Write i2c OK [17:15:11]MH_I2C_Read... [17:15:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:15:11]Read from MH i2c: E2 [17:15:11]MH_I2C_Read... [17:15:11]Read from MH i2c: E2 03 00 [17:15:11]MH_I2C_Read... [17:15:11]Read from MH i2c: E2 03 00 28 0C 00 90 00 A8 [17:15:11]RAPDU: 90 00 [17:15:11]wFMCommunicate OK [17:15:11]SAM_PROTO_ClearQueue done [17:15:11]KKMCreateOFDPacket [17:15:11]OFDProtocolAddRootSTLVToBuf [17:15:11]FM_MakeSignedData [17:15:11]FM_MakeSignedData [17:15:11]SAM_PROTO_SignData [17:15:11]wFMCommunicate request_size=4 [17:15:11]MH_SAM_APDU [17:15:11]CAPDU: 80 0D 01 02 [17:15:11]Write to MH i2c: E2 08 00 29 0C 80 0D 01 02 00 00 00 00 AE [17:15:11]Write i2c OK [17:15:11]MH_I2C_Read... [17:15:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:15:11]Read from MH i2c: E2 [17:15:11]MH_I2C_Read... [17:15:11]Read from MH i2c: E2 03 00 [17:15:11]MH_I2C_Read... [17:15:11]Read from MH i2c: E2 03 00 29 0C 00 90 00 A9 [17:15:11]RAPDU: 90 00 [17:15:11]wFMCommunicate OK [17:15:11]wFMCommunicate request_size=255 [17:15:11]MH_SAM_APDU [17:15:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 01 00 00 F4 03 04 00 9F 3A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D0 78 03 00 35 04 06 00 28 [17:15:11]Write to MH i2c: E2 02 01 2A 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 01 00 00 F4 03 04 00 9F 3A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D0 78 03 00 35 04 06 00 28 00 00 EE [17:15:11]Write i2c OK [17:15:11]MH_I2C_Read... [17:15:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:15:11]Read from MH i2c: E2 [17:15:11]MH_I2C_Read... [17:15:11]Read from MH i2c: E2 03 00 [17:15:11]MH_I2C_Read... [17:15:11]Read from MH i2c: E2 03 00 2A 0C 00 90 00 AA [17:15:11]RAPDU: 90 00 [17:15:11]wFMCommunicate OK [17:15:11]wFMCommunicate request_size=10 [17:15:11]MH_SAM_APDU [17:15:11]CAPDU: 80 0D 02 02 05 A7 16 72 C9 20 [17:15:11]Write to MH i2c: E2 0D 00 2B 0C 80 0D 02 02 05 00 A7 16 72 C9 20 00 00 D3 [17:15:11]Write i2c OK [17:15:11]MH_I2C_Read... [17:15:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:15:11]Read from MH i2c: E2 [17:15:11]MH_I2C_Read... [17:15:11]Read from MH i2c: E2 03 00 [17:15:11]MH_I2C_Read... [17:15:11]Read from MH i2c: E2 03 00 2B 0C 00 90 00 AB [17:15:11]RAPDU: 90 00 [17:15:11]wFMCommunicate OK [17:15:11]wFMCommunicate request_size=4 [17:15:11]MH_SAM_APDU [17:15:11]CAPDU: 80 0D 03 02 [17:15:11]Write to MH i2c: E2 08 00 2C 0C 80 0D 03 02 00 00 00 00 B3 [17:15:11]Write i2c OK [17:15:11]MH_I2C_Read... [17:15:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:15:11]Read from MH i2c: E2 [17:15:11]MH_I2C_Read... [17:15:11]Read from MH i2c: E2 0B 00 [17:15:11]MH_I2C_Read... [17:15:11]Read from MH i2c: E2 0B 00 2C 0C 00 CF E3 10 B2 5D C1 D2 27 90 00 3F [17:15:11]RAPDU: CF E3 10 B2 5D C1 D2 27 90 00 [17:15:11]wFMCommunicate OK [17:15:11]SAM_PROTO_SignData done [17:15:11]FM_MakeSignedData done [17:15:11]CreateOFDProtocolMessage [17:15:11]wFMCommunicate request_size=4 [17:15:11]MH_SAM_APDU [17:15:11]CAPDU: 80 11 00 00 [17:15:11]Write to MH i2c: E2 08 00 2D 0C 80 11 00 00 00 00 00 00 B3 [17:15:11]Write i2c OK [17:15:11]MH_I2C_Read... [17:15:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:11]Read from MH i2c: E2 [17:15:11]MH_I2C_Read... [17:15:11]Read from MH i2c: E2 17 00 [17:15:11]MH_I2C_Read... [17:15:11]Read from MH i2c: E2 17 00 2D 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 0A [17:15:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:15:11]wFMCommunicate OK [17:15:11]CreateOFDProtocolMessage done [17:15:11]OFDSenderStorePacket 227536 [17:15:11]StoreOFDPacket docnum=227536 [17:15:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 F5 A5 07 01 78 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 01 00 00 F4 03 04 00 9F 3A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D0 78 03 00 35 04 06 00 28 A7 16 72 C9 20 CF E3 10 B2 5D C1 D2 27 [17:15:11]CheckFolder [17:15:11]dirname=/storage/ofd_packets [17:15:11]CheckFolder done [17:15:11]ProducePacketName [17:15:11]name=ofd_packets/00227536 [17:15:11]NVStorageSaveData ofd_packets/00227536 [17:15:11]File name is /storage/ofd_packets/00227536 [17:15:11]Write 301 bytes [17:15:11]NVStorageSaveData done [17:15:11]OFDSenderStorePacket done [17:15:11]KKMCreateOFDPacket done [17:15:11]NVStorageSaveData kkm_last_timestamp [17:15:11]File name is /storage/kkm_last_timestamp [17:15:11]Write 4 bytes [17:15:11]NVStorageSaveData done [17:15:11]ExternCall_PrintAddStr [17:15:11]wPrintStart [17:15:11]Write to MH i2c: 01 00 00 2E 0C 3A [17:15:11]Write i2c OK [17:15:11]MH_I2C_Read... [17:15:11]Read from MH i2c: 01 [17:15:11]MH_I2C_Read... [17:15:11]Read from MH i2c: 01 07 00 [17:15:11]MH_I2C_Read... [17:15:11]Read from MH i2c: 01 07 00 2E 0C 00 00 00 00 00 FF 0F 4F [17:15:11]RasterBufferAndPrint [17:15:11]line Счет N : (1)1963168 [17:15:11]line ИНН: 02508201610067 [17:15:11]line Контрольно-Кассовый Чек [17:15:11]line ПРОДАЖА [17:15:11]line ТРК (МРК, ГНК) : 43 [17:15:11]line Товар: 2710124130 [17:15:11]line Аи-92-К-5 [17:15:11]line 22.430 * 66.90 [17:15:11]line = 1500.57 [17:15:11]line НДС 12% НСП 1% [17:15:11]line > о реализуемом товаре [17:15:11]line ОКРУГЛЕНИЕ: -0.57 [17:15:11]line ИТОГО: 1500.00 [17:15:11]line Внесено: 1500.00 [17:15:11]line СДАЧА: 0.00 [17:15:11]line НСП 1% : 13.28 [17:15:11]line НДС 12% : 159.35 [17:15:11]line Наличными: 1500.00 [17:15:11]line Безнал.: 0.00 [17:15:11]line Место: АЗС № 133 "Партнер Нефть" [17:15:11]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:15:11]line СНО: Общий режим [17:15:11]line Чек 384 20.10.2024 17:15 [17:15:11]line Смена: 533 ФФД: 1.0 [17:15:11]line ЗНМ: 0300000091 [17:15:11]line РНМ: 0000000000091685 [17:15:11]line Версия ККМ: 001 [17:15:11]line ФМ: 0000000000871839 [17:15:11]line ФД: 227536 [17:15:11]line ФПД: 44698101270816 [17:15:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171511&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227536&fm=44698101270816&tin=02508201610067®Number=0000000000091685&sum=150000 [17:15:12]OFD Sender: Processing packet 227536 [packets to send 38, broken 37] [17:15:12]ProducePacketName [17:15:12]name=ofd_packets/00227536 [17:15:12]OFD Sender: To server: pG, [17:15:12]CommunicateWithHost lk.salyk.kg:30040 [17:15:12]ConnectInit lk.salyk.kg [17:15:12]written 0, free lines is 4095 [17:15:12]Connected sock=10 [17:15:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 F5 A5 07 01 78 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 01 00 00 F4 03 04 00 9F 3A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D0 78 03 00 35 04 06 00 28 A7 16 72 C9 20 CF E3 10 B2 5D C1 D2 27 [17:15:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 7D 6F 47 00 A7 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 33 39 10 04 04 00 D0 78 03 00 F4 03 04 00 9D E5 14 67 B6 04 01 00 00 20 96 C6 BF 6F 9B 7B 14 [17:15:12]CommunicateWithHost err = 0 [17:15:12]CheckOFDResponse [17:15:12]1017 (14) - 77093643461234 [17:15:12]1041 (16) - 0000000000871839 [17:15:12]1040 (4) - 227536 [17:15:12]1012 (4) - 20.10.2024 11:12 [17:15:12]1206 (1) - 0 [17:15:12]OFD Sender: Remove packet 227536 [17:15:12]ProducePacketName [17:15:12]name=ofd_packets/00227536 [17:15:12]NVStorageDeleteData [17:15:12]Write to MH i2c: 01 00 00 58 0C 64 [17:15:12]Write i2c OK [17:15:12]MH_I2C_Read... [17:15:12]Read from MH i2c: 01 [17:15:12]MH_I2C_Read... [17:15:12]Read from MH i2c: 01 07 00 [17:15:12]MH_I2C_Read... [17:15:12]Read from MH i2c: 01 07 00 58 0C 00 00 00 00 00 0A 0D 82 [17:15:12]RasterBufferAndPrint [17:15:12]line [17:15:12]line [17:15:12]line [17:15:12]line [17:15:12]line [17:15:12]written 0, free lines is 3344 [17:15:12]process_action close_receipt done [17:15:12]requested_data is exist [17:15:12]produce_requested_data [17:15:12]requested_item fm.sn is exist - process it [17:15:12]wFMCommunicate request_size=4 [17:15:12]MH_SAM_APDU [17:15:12]CAPDU: 80 11 00 00 [17:15:12]Write to MH i2c: E2 08 00 5F 0C 80 11 00 00 00 00 00 00 E5 [17:15:12]Write i2c OK [17:15:12]MH_I2C_Read... [17:15:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:12]Read from MH i2c: E2 [17:15:12]MH_I2C_Read... [17:15:12]Read from MH i2c: E2 17 00 [17:15:12]MH_I2C_Read... [17:15:12]Read from MH i2c: E2 17 00 5F 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 3C [17:15:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:15:12]wFMCommunicate OK [17:15:12]requested_item fd.num is exist - process it [17:15:12]SAM_PROTO_GetFieldsCounters [17:15:12]wFMCommunicate request_size=4 [17:15:12]MH_SAM_APDU [17:15:12]CAPDU: 80 13 00 00 [17:15:12]Write to MH i2c: E2 08 00 60 0C 80 13 00 00 00 00 00 00 E8 [17:15:12]Write i2c OK [17:15:12]MH_I2C_Read... [17:15:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:15:12]Read from MH i2c: E2 [17:15:12]MH_I2C_Read... [17:15:12]Read from MH i2c: E2 62 00 [17:15:12]MH_I2C_Read... [17:15:12]Read from MH i2c: E2 62 00 60 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 D0 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 80 01 00 00 5E 04 04 00 80 01 00 00 57 04 04 00 81 01 00 00 19 04 04 00 00 00 00 00 90 00 F6 [17:15: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 D0 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 80 01 00 00 5E 04 04 00 80 01 00 00 57 04 04 00 81 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:15:12]wFMCommunicate OK [17:15:12]SAM_PROTO_GetFieldsCounters done [17:15:12]requested_item shift.num is exist - process it [17:15:12]requested_item shift.opened is exist - process it [17:15:12]req_shift_opened [17:15:12]FM_GetShiftState [17:15:12]SAM_PROTO_GetShiftState [17:15:12]wFMCommunicate request_size=4 [17:15:12]MH_SAM_APDU [17:15:12]CAPDU: 80 13 01 00 [17:15:12]Write to MH i2c: E2 08 00 61 0C 80 13 01 00 00 00 00 00 EA [17:15:12]Write i2c OK [17:15:12]MH_I2C_Read... [17:15:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:15:12]Read from MH i2c: E2 [17:15:12]MH_I2C_Read... [17:15:12]Read from MH i2c: E2 0E 00 [17:15:12]MH_I2C_Read... [17:15:12]Read from MH i2c: E2 0E 00 61 0C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 04 [17:15:12]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:15:12]wFMCommunicate OK [17:15:12]SAM_PROTO_GetShiftState done [17:15:12]FM_GetShiftState done [17:15:12]req_shift_opened done [17:15:12]requested_item shift.open_date is exist - process it [17:15:12]req_shift_open_date [17:15:12]req_shift_open_date done [17:15:12]produce_requested_data done [17:15:12]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227536,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [17:15:12]process_action_free close_receipt [17:15:12]json_value_free [17:15:12]json_value_free done [17:15:12]process_json_proto returns [17:15:12]Send response to host [17:15:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227536,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [17:15:12]free response buf [17:15:12]execute_script done [17:15:12]execute_script returns [17:15:12]free content buf [17:15:12]Sock 9.Close socket [17:15:12]Sock 9.Thread stoped [17:15:12]OFD Sender: No OFD packet to send [17:15:17]OFD Sender: No OFD packet to send [17:15:22]OFD Sender: No OFD packet to send [17:15:27]OFD Sender: No OFD packet to send [17:15:30]accept exits with 7 [17:15:30]New connection [17:15:30]New thread 3067362660 created [17:15:30]Thread 3067219300 joined [17:15:30]Waiting for new connection... [17:15:30] Sock 7.Parse request [17:15:30]Sock 7.Check first char [17:15:30]Sock 7.First char is OK [17:15:30]request: POST /json_proto HTTP/1.0 [17:15:30]Method: POST [17:15:30]URL: /json_proto [17:15:30]Method is POST - this is cgi request [17:15:30]url: /json_proto [17:15:30]query_string will be loaded in cgi processing [17:15:30]execute_cgi json_proto POST (null) [17:15:30]execute_cgi path=json_proto method=POST [17:15:30]POST find Content-Length [17:15:30]Host: 172.17.44.195:8080 [17:15:30]Content-Length: 798 [17:15:30]Content-Type: application/json [17:15:30] [17:15:30]POST finish read [17:15:30]Found Content-Length = 798 [17:15:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963169", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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\u000A4381939", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:15:30]execute_script... [17:15: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)1963169", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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\u000A4381939", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:15:30]POST & json_proto [17:15:30]process_json_proto [17:15:30]json parsed OK: [17:15:30]protocol is kg_v1.0 [17:15:30]action value=close_receipt [17:15:30]process_action close_receipt [17:15:30]cmd_close_receipt [17:15:30]MH_GetDate [17:15:30]Write to MH i2c: F0 00 00 62 0C 5D [17:15:30]Write i2c OK [17:15:30]MH_I2C_Read... [17:15:30]Read from MH i2c: F0 [17:15:30]MH_I2C_Read... [17:15:30]Read from MH i2c: F0 09 00 [17:15:30]MH_I2C_Read... [17:15:30]Read from MH i2c: F0 09 00 62 0C 00 B3 3A 15 67 82 C9 CF 66 4F [17:15:30]GetLastDocTimeStamp 1729444511 [17:15:30]current date 1729444531 [17:15:30]FM_GetShiftState [17:15:30]SAM_PROTO_GetShiftState [17:15:30]wFMCommunicate request_size=4 [17:15:30]MH_SAM_APDU [17:15:30]CAPDU: 80 13 01 00 [17:15:30]Write to MH i2c: E2 08 00 63 0C 80 13 01 00 00 00 00 00 EC [17:15:30]Write i2c OK [17:15:30]MH_I2C_Read... [17:15:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:15:30]Read from MH i2c: E2 [17:15:30]MH_I2C_Read... [17:15:30]Read from MH i2c: E2 0E 00 [17:15:30]MH_I2C_Read... [17:15:30]Read from MH i2c: E2 0E 00 63 0C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 06 [17:15:30]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:15:30]wFMCommunicate OK [17:15:30]SAM_PROTO_GetShiftState done [17:15:30]FM_GetShiftState done [17:15:30]opened in 1729383750 [17:15:30]opened+sec_in_day 1729470150 [17:15:30]quantity*price = 0 [17:15:30]sum+1 = 1 [17:15:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 385 20.10.2024 17:15 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Талоны: Топливные Талоны 4381939 ФМ: 0000000000871839 ФД: 227537 ФПД: 241497252117276 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171531&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227537&fm=241497252117276&tin=02508201610067®Number=0000000000091685&sum=0 [17:15:31]StoreToDocumentArchive [17:15:31]shift 533 fd 227537 [17:15:31]save to /storage/0533/doc_00227537 [17:15:31]save last doc name /storage/0533/doc_00227537 to /storage/kkm_last_doc_name [17:15:31]save OK [17:15:31]Clear old archive folders... [17:15:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:15:31]tlvbuf is 00D898B0 [17:15:31]SAM_PROTO_ClearQueue [17:15:31]wFMCommunicate request_size=4 [17:15:31]MH_SAM_APDU [17:15:31]CAPDU: 80 09 00 00 [17:15:31]Write to MH i2c: E2 08 00 70 0C 80 09 00 00 00 00 00 00 EE [17:15:31]Write i2c OK [17:15:31]MH_I2C_Read... [17:15:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:15:31]Read from MH i2c: E2 [17:15:31]MH_I2C_Read... [17:15:31]Read from MH i2c: E2 03 00 [17:15:31]MH_I2C_Read... [17:15:31]Read from MH i2c: E2 03 00 70 0C 00 90 00 F0 [17:15:31]RAPDU: 90 00 [17:15:31]wFMCommunicate OK [17:15:31]SAM_PROTO_ClearQueue done [17:15:31]KKMCreateOFDPacket [17:15:31]OFDProtocolAddRootSTLVToBuf [17:15:31]FM_MakeSignedData [17:15:31]FM_MakeSignedData [17:15:31]SAM_PROTO_SignData [17:15:31]wFMCommunicate request_size=4 [17:15:31]MH_SAM_APDU [17:15:31]CAPDU: 80 0D 01 02 [17:15:31]Write to MH i2c: E2 08 00 71 0C 80 0D 01 02 00 00 00 00 F6 [17:15:31]Write i2c OK [17:15:31]MH_I2C_Read... [17:15:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:15:31]Read from MH i2c: E2 [17:15:31]MH_I2C_Read... [17:15:31]Read from MH i2c: E2 03 00 [17:15:31]MH_I2C_Read... [17:15:31]Read from MH i2c: E2 03 00 71 0C 00 90 00 F1 [17:15:31]RAPDU: 90 00 [17:15:31]wFMCommunicate OK [17:15:31]wFMCommunicate request_size=255 [17:15:31]MH_SAM_APDU [17:15:31]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 01 00 00 F4 03 04 00 B3 3A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D1 78 03 00 35 04 06 00 DB A3 F5 ED [17:15:31]Write to MH i2c: E2 02 01 72 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 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 81 01 00 00 F4 03 04 00 B3 3A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D1 78 03 00 35 04 06 00 DB A3 F5 ED 00 00 77 [17:15:31]Write i2c OK [17:15:31]MH_I2C_Read... [17:15:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:15:31]Read from MH i2c: E2 [17:15:31]MH_I2C_Read... [17:15:31]Read from MH i2c: E2 03 00 [17:15:31]MH_I2C_Read... [17:15:31]Read from MH i2c: E2 03 00 72 0C 00 90 00 F2 [17:15:31]RAPDU: 90 00 [17:15:31]wFMCommunicate OK [17:15:31]wFMCommunicate request_size=7 [17:15:31]MH_SAM_APDU [17:15:31]CAPDU: 80 0D 02 02 02 3B 1C [17:15:31]Write to MH i2c: E2 0A 00 73 0C 80 0D 02 02 02 00 3B 1C 00 00 54 [17:15:31]Write i2c OK [17:15:31]MH_I2C_Read... [17:15:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:15:31]Read from MH i2c: E2 [17:15:31]MH_I2C_Read... [17:15:31]Read from MH i2c: E2 03 00 [17:15:31]MH_I2C_Read... [17:15:31]Read from MH i2c: E2 03 00 73 0C 00 90 00 F3 [17:15:31]RAPDU: 90 00 [17:15:31]wFMCommunicate OK [17:15:31]wFMCommunicate request_size=4 [17:15:31]MH_SAM_APDU [17:15:31]CAPDU: 80 0D 03 02 [17:15:31]Write to MH i2c: E2 08 00 74 0C 80 0D 03 02 00 00 00 00 FB [17:15:31]Write i2c OK [17:15:31]MH_I2C_Read... [17:15:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:15:31]Read from MH i2c: E2 [17:15:31]MH_I2C_Read... [17:15:31]Read from MH i2c: E2 0B 00 [17:15:31]MH_I2C_Read... [17:15:31]Read from MH i2c: E2 0B 00 74 0C 00 94 CA E5 96 DF 39 E6 9F 90 00 72 [17:15:31]RAPDU: 94 CA E5 96 DF 39 E6 9F 90 00 [17:15:31]wFMCommunicate OK [17:15:31]SAM_PROTO_SignData done [17:15:31]FM_MakeSignedData done [17:15:31]CreateOFDProtocolMessage [17:15:31]wFMCommunicate request_size=4 [17:15:31]MH_SAM_APDU [17:15:31]CAPDU: 80 11 00 00 [17:15:31]Write to MH i2c: E2 08 00 75 0C 80 11 00 00 00 00 00 00 FB [17:15:31]Write i2c OK [17:15:31]MH_I2C_Read... [17:15:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:31]Read from MH i2c: E2 [17:15:31]MH_I2C_Read... [17:15:31]Read from MH i2c: E2 17 00 [17:15:31]MH_I2C_Read... [17:15:31]Read from MH i2c: E2 17 00 75 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 52 [17:15:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:15:31]wFMCommunicate OK [17:15:31]CreateOFDProtocolMessage done [17:15:31]OFDSenderStorePacket 227537 [17:15:31]StoreOFDPacket docnum=227537 [17:15:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 B0 83 04 01 31 39 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 01 00 00 F4 03 04 00 B3 3A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D1 78 03 00 35 04 06 00 DB A3 F5 ED 3B 1C 94 CA E5 96 DF 39 E6 9F [17:15:31]CheckFolder [17:15:31]dirname=/storage/ofd_packets [17:15:31]CheckFolder done [17:15:31]ProducePacketName [17:15:31]name=ofd_packets/00227537 [17:15:31]NVStorageSaveData ofd_packets/00227537 [17:15:31]File name is /storage/ofd_packets/00227537 [17:15:31]Write 298 bytes [17:15:31]NVStorageSaveData done [17:15:31]OFDSenderStorePacket done [17:15:31]KKMCreateOFDPacket done [17:15:31]NVStorageSaveData kkm_last_timestamp [17:15:31]File name is /storage/kkm_last_timestamp [17:15:31]Write 4 bytes [17:15:31]NVStorageSaveData done [17:15:31]ExternCall_PrintAddStr [17:15:31]wPrintStart [17:15:31]Write to MH i2c: 01 00 00 76 0C 82 [17:15:31]Write i2c OK [17:15:31]MH_I2C_Read... [17:15:31]Read from MH i2c: 01 [17:15:31]MH_I2C_Read... [17:15:31]Read from MH i2c: 01 07 00 [17:15:31]MH_I2C_Read... [17:15:31]Read from MH i2c: 01 07 00 76 0C 00 00 00 00 00 FF 0F 97 [17:15:31]RasterBufferAndPrint [17:15:31]line Счет N : (1)1963169 [17:15:31]line ИНН: 02508201610067 [17:15:31]line Контрольно-Кассовый Чек [17:15:31]line ПРОДАЖА [17:15:31]line ТРК (МРК, ГНК) : 11 [17:15:31]line Товар: 2710194210 [17:15:31]line ДТ-К-5 [17:15:31]line 20.000 * 0.00 [17:15:31]line = 0.00 [17:15:31]line НДС 12% НСП 1% [17:15:31]line > о реализуемом товаре [17:15:31]line ИТОГО: 0.00 [17:15:31]line НСП 1% : 0.00 [17:15:31]line НДС 12% : 0.00 [17:15:31]line Наличными: 0.00 [17:15:31]line Безнал.: 0.00 [17:15:31]line Место: АЗС № 133 "Партнер Нефть" [17:15:31]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:15:31]line СНО: Общий режим [17:15:31]line Чек 385 20.10.2024 17:15 [17:15:31]line Смена: 533 ФФД: 1.0 [17:15:31]line ЗНМ: 0300000091 [17:15:31]line РНМ: 0000000000091685 [17:15:31]line Версия ККМ: 001 [17:15:31]line Талоны: Топливные Талоны [17:15:31]line 4381939 [17:15:31]line ФМ: 0000000000871839 [17:15:31]line ФД: 227537 [17:15:31]line ФПД: 241497252117276 [17:15:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171531&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227537&fm=241497252117276&tin=02508201610067®Number=0000000000091685&sum=0 [17:15:32]OFD Sender: Processing packet 227537 [packets to send 38, broken 37] [17:15:32]ProducePacketName [17:15:32]name=ofd_packets/00227537 [17:15:32]OFD Sender: To server: pG, [17:15:32]CommunicateWithHost lk.salyk.kg:30040 [17:15:32]ConnectInit lk.salyk.kg [17:15:32]written 0, free lines is 4095 [17:15:32]Connected sock=9 [17:15:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 B0 83 04 01 31 39 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 01 00 00 F4 03 04 00 B3 3A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D1 78 03 00 35 04 06 00 DB A3 F5 ED 3B 1C 94 CA E5 96 DF 39 E6 9F [17:15: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 33 39 4F 00 00 00 8D EB 47 00 CE 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D1 78 03 00 F4 03 04 00 B1 E5 14 67 B6 04 01 00 00 6E FC 18 3F D1 E9 FA A0 [17:15:32]CommunicateWithHost err = 0 [17:15:32]CheckOFDResponse [17:15:32]1017 (14) - 77093643461234 [17:15:32]1041 (16) - 0000000000871839 [17:15:32]1040 (4) - 227537 [17:15:32]1012 (4) - 20.10.2024 11:12 [17:15:32]1206 (1) - 0 [17:15:32]OFD Sender: Remove packet 227537 [17:15:32]ProducePacketName [17:15:32]name=ofd_packets/00227537 [17:15:32]NVStorageDeleteData [17:15:32]Write to MH i2c: 01 00 00 9F 0C AB [17:15:32]Write i2c OK [17:15:32]MH_I2C_Read... [17:15:32]Read from MH i2c: 01 [17:15:32]MH_I2C_Read... [17:15:32]Read from MH i2c: 01 07 00 [17:15:32]MH_I2C_Read... [17:15:32]Read from MH i2c: 01 07 00 9F 0C 00 00 00 00 00 17 0D D6 [17:15:32]RasterBufferAndPrint [17:15:32]line [17:15:32]line [17:15:32]line [17:15:32]line [17:15:32]line [17:15:32]written 0, free lines is 3357 [17:15:32]process_action close_receipt done [17:15:32]requested_data is exist [17:15:32]produce_requested_data [17:15:32]requested_item fm.sn is exist - process it [17:15:32]wFMCommunicate request_size=4 [17:15:32]MH_SAM_APDU [17:15:32]CAPDU: 80 11 00 00 [17:15:32]Write to MH i2c: E2 08 00 A6 0C 80 11 00 00 00 00 00 00 2C [17:15:32]Write i2c OK [17:15:32]MH_I2C_Read... [17:15:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:32]Read from MH i2c: E2 [17:15:32]MH_I2C_Read... [17:15:32]Read from MH i2c: E2 17 00 [17:15:32]MH_I2C_Read... [17:15:32]Read from MH i2c: E2 17 00 A6 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 83 [17:15:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:15:32]wFMCommunicate OK [17:15:32]requested_item fd.num is exist - process it [17:15:32]SAM_PROTO_GetFieldsCounters [17:15:32]wFMCommunicate request_size=4 [17:15:32]MH_SAM_APDU [17:15:32]CAPDU: 80 13 00 00 [17:15:32]Write to MH i2c: E2 08 00 A7 0C 80 13 00 00 00 00 00 00 2F [17:15:32]Write i2c OK [17:15:32]MH_I2C_Read... [17:15:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:15:32]Read from MH i2c: E2 [17:15:32]MH_I2C_Read... [17:15:32]Read from MH i2c: E2 62 00 [17:15:32]MH_I2C_Read... [17:15:32]Read from MH i2c: E2 62 00 A7 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 D1 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 81 01 00 00 5E 04 04 00 81 01 00 00 57 04 04 00 82 01 00 00 19 04 04 00 00 00 00 00 90 00 41 [17:15: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 D1 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 81 01 00 00 5E 04 04 00 81 01 00 00 57 04 04 00 82 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:15:32]wFMCommunicate OK [17:15:32]SAM_PROTO_GetFieldsCounters done [17:15:32]requested_item shift.num is exist - process it [17:15:32]requested_item shift.opened is exist - process it [17:15:32]req_shift_opened [17:15:32]FM_GetShiftState [17:15:32]SAM_PROTO_GetShiftState [17:15:32]wFMCommunicate request_size=4 [17:15:32]MH_SAM_APDU [17:15:32]CAPDU: 80 13 01 00 [17:15:32]Write to MH i2c: E2 08 00 A8 0C 80 13 01 00 00 00 00 00 31 [17:15:32]Write i2c OK [17:15:32]MH_I2C_Read... [17:15:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:15:32]Read from MH i2c: E2 [17:15:32]MH_I2C_Read... [17:15:32]Read from MH i2c: E2 0E 00 [17:15:32]MH_I2C_Read... [17:15:32]Read from MH i2c: E2 0E 00 A8 0C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 4B [17:15:32]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:15:32]wFMCommunicate OK [17:15:32]SAM_PROTO_GetShiftState done [17:15:32]FM_GetShiftState done [17:15:32]req_shift_opened done [17:15:32]requested_item shift.open_date is exist - process it [17:15:32]req_shift_open_date [17:15:32]req_shift_open_date done [17:15:32]produce_requested_data done [17:15:32]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227537,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [17:15:32]process_action_free close_receipt [17:15:32]json_value_free [17:15:32]json_value_free done [17:15:32]process_json_proto returns [17:15:32]Send response to host [17:15:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227537,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [17:15:32]free response buf [17:15:32]execute_script done [17:15:32]execute_script returns [17:15:32]free content buf [17:15:32]Sock 7.Close socket [17:15:32]Sock 7.Thread stoped [17:15:33]OFD Sender: No OFD packet to send [17:15:38]OFD Sender: No OFD packet to send [17:15:43]OFD Sender: No OFD packet to send [17:15:48]OFD Sender: No OFD packet to send [17:15:53]OFD Sender: No OFD packet to send [17:15:58]OFD Sender: No OFD packet to send [17:15:58]accept exits with 10 [17:15:58]New connection [17:15:58]New thread 3067219300 created [17:15:58]Thread 3067362660 joined [17:15:58]Waiting for new connection... [17:15:58] Sock 10.Parse request [17:15:58]Sock 10.Check first char [17:15:58]Sock 10.First char is OK [17:15:58]request: POST /json_proto HTTP/1.0 [17:15:58]Method: POST [17:15:58]URL: /json_proto [17:15:58]Method is POST - this is cgi request [17:15:58]url: /json_proto [17:15:58]query_string will be loaded in cgi processing [17:15:58]execute_cgi json_proto POST (null) [17:15:58]execute_cgi path=json_proto method=POST [17:15:58]POST find Content-Length [17:15:58]Host: 172.17.44.195:8080 [17:15:58]Content-Length: 678 [17:15:58]Content-Type: application/json [17:15:58] [17:15:58]POST finish read [17:15:58]Found Content-Length = 678 [17:15:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963170", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:15:58]execute_script... [17:15: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)1963170", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:15:58]POST & json_proto [17:15:58]process_json_proto [17:15:58]json parsed OK: [17:15:58]protocol is kg_v1.0 [17:15:58]action value=close_receipt [17:15:58]process_action close_receipt [17:15:58]cmd_close_receipt [17:15:58]MH_GetDate [17:15:58]Write to MH i2c: F0 00 00 A9 0C A4 [17:15:58]Write i2c OK [17:15:58]MH_I2C_Read... [17:15:58]Read from MH i2c: F0 [17:15:58]MH_I2C_Read... [17:15:58]Read from MH i2c: F0 09 00 [17:15:58]MH_I2C_Read... [17:15:58]Read from MH i2c: F0 09 00 A9 0C 00 D0 3A 15 67 82 C9 CF 66 B3 [17:15:58]GetLastDocTimeStamp 1729444531 [17:15:58]current date 1729444560 [17:15:58]FM_GetShiftState [17:15:58]SAM_PROTO_GetShiftState [17:15:58]wFMCommunicate request_size=4 [17:15:58]MH_SAM_APDU [17:15:58]CAPDU: 80 13 01 00 [17:15:58]Write to MH i2c: E2 08 00 AA 0C 80 13 01 00 00 00 00 00 33 [17:15:58]Write i2c OK [17:15:58]MH_I2C_Read... [17:15:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:15:59]Read from MH i2c: E2 [17:15:59]MH_I2C_Read... [17:15:59]Read from MH i2c: E2 0E 00 [17:15:59]MH_I2C_Read... [17:15:59]Read from MH i2c: E2 0E 00 AA 0C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 4D [17:15:59]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:15:59]wFMCommunicate OK [17:15:59]SAM_PROTO_GetShiftState done [17:15:59]FM_GetShiftState done [17:15:59]opened in 1729383750 [17:15:59]opened+sec_in_day 1729470150 [17:15:59]quantity*price = 40006 [17:15:59]sum+1 = 40007 [17:15:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 386 20.10.2024 17:16 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227538 ФПД: 151707651390693 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171600&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227538&fm=151707651390693&tin=02508201610067®Number=0000000000091685&sum=40000 [17:16:00]StoreToDocumentArchive [17:16:00]shift 533 fd 227538 [17:16:00]save to /storage/0533/doc_00227538 [17:16:00]save last doc name /storage/0533/doc_00227538 to /storage/kkm_last_doc_name [17:16:00]save OK [17:16:00]Clear old archive folders... [17:16:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:16:00]tlvbuf is 00DDBCA0 [17:16:00]SAM_PROTO_ClearQueue [17:16:00]wFMCommunicate request_size=4 [17:16:00]MH_SAM_APDU [17:16:00]CAPDU: 80 09 00 00 [17:16:00]Write to MH i2c: E2 08 00 B7 0C 80 09 00 00 00 00 00 00 35 [17:16:00]Write i2c OK [17:16:00]MH_I2C_Read... [17:16:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:16:00]Read from MH i2c: E2 [17:16:00]MH_I2C_Read... [17:16:00]Read from MH i2c: E2 03 00 [17:16:00]MH_I2C_Read... [17:16:00]Read from MH i2c: E2 03 00 B7 0C 00 90 00 37 [17:16:00]RAPDU: 90 00 [17:16:00]wFMCommunicate OK [17:16:00]SAM_PROTO_ClearQueue done [17:16:00]KKMCreateOFDPacket [17:16:00]OFDProtocolAddRootSTLVToBuf [17:16:00]FM_MakeSignedData [17:16:00]FM_MakeSignedData [17:16:00]SAM_PROTO_SignData [17:16:00]wFMCommunicate request_size=4 [17:16:00]MH_SAM_APDU [17:16:00]CAPDU: 80 0D 01 02 [17:16:00]Write to MH i2c: E2 08 00 B8 0C 80 0D 01 02 00 00 00 00 3D [17:16:00]Write i2c OK [17:16:00]MH_I2C_Read... [17:16:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:16:00]Read from MH i2c: E2 [17:16:00]MH_I2C_Read... [17:16:00]Read from MH i2c: E2 03 00 [17:16:00]MH_I2C_Read... [17:16:00]Read from MH i2c: E2 03 00 B8 0C 00 90 00 38 [17:16:00]RAPDU: 90 00 [17:16:00]wFMCommunicate OK [17:16:00]wFMCommunicate request_size=255 [17:16:00]MH_SAM_APDU [17:16:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 01 00 00 F4 03 04 00 D0 3A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D2 78 03 00 35 04 06 00 89 [17:16:00]Write to MH i2c: E2 02 01 B9 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 01 00 00 F4 03 04 00 D0 3A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D2 78 03 00 35 04 06 00 89 00 00 99 [17:16:00]Write i2c OK [17:16:00]MH_I2C_Read... [17:16:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:00]Read from MH i2c: E2 [17:16:00]MH_I2C_Read... [17:16:00]Read from MH i2c: E2 03 00 [17:16:00]MH_I2C_Read... [17:16:00]Read from MH i2c: E2 03 00 B9 0C 00 90 00 39 [17:16:00]RAPDU: 90 00 [17:16:00]wFMCommunicate OK [17:16:00]wFMCommunicate request_size=10 [17:16:00]MH_SAM_APDU [17:16:00]CAPDU: 80 0D 02 02 05 FA 30 AB BC E5 [17:16:00]Write to MH i2c: E2 0D 00 BA 0C 80 0D 02 02 05 00 FA 30 AB BC E5 00 00 C0 [17:16:00]Write i2c OK [17:16:00]MH_I2C_Read... [17:16:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:00]Read from MH i2c: E2 [17:16:00]MH_I2C_Read... [17:16:00]Read from MH i2c: E2 03 00 [17:16:00]MH_I2C_Read... [17:16:00]Read from MH i2c: E2 03 00 BA 0C 00 90 00 3A [17:16:00]RAPDU: 90 00 [17:16:00]wFMCommunicate OK [17:16:00]wFMCommunicate request_size=4 [17:16:00]MH_SAM_APDU [17:16:00]CAPDU: 80 0D 03 02 [17:16:00]Write to MH i2c: E2 08 00 BB 0C 80 0D 03 02 00 00 00 00 42 [17:16:00]Write i2c OK [17:16:00]MH_I2C_Read... [17:16:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:16:00]Read from MH i2c: E2 [17:16:00]MH_I2C_Read... [17:16:00]Read from MH i2c: E2 0B 00 [17:16:00]MH_I2C_Read... [17:16:00]Read from MH i2c: E2 0B 00 BB 0C 00 15 0A 6F 41 45 5A 8C B5 90 00 F2 [17:16:00]RAPDU: 15 0A 6F 41 45 5A 8C B5 90 00 [17:16:00]wFMCommunicate OK [17:16:00]SAM_PROTO_SignData done [17:16:00]FM_MakeSignedData done [17:16:00]CreateOFDProtocolMessage [17:16:00]wFMCommunicate request_size=4 [17:16:00]MH_SAM_APDU [17:16:00]CAPDU: 80 11 00 00 [17:16:00]Write to MH i2c: E2 08 00 BC 0C 80 11 00 00 00 00 00 00 42 [17:16:00]Write i2c OK [17:16:00]MH_I2C_Read... [17:16:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:00]Read from MH i2c: E2 [17:16:00]MH_I2C_Read... [17:16:00]Read from MH i2c: E2 17 00 [17:16:00]MH_I2C_Read... [17:16:00]Read from MH i2c: E2 17 00 BC 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 99 [17:16:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:16:00]wFMCommunicate OK [17:16:00]CreateOFDProtocolMessage done [17:16:00]OFDSenderStorePacket 227538 [17:16:00]StoreOFDPacket docnum=227538 [17:16:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 8E C9 07 01 43 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 01 00 00 F4 03 04 00 D0 3A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D2 78 03 00 35 04 06 00 89 FA 30 AB BC E5 15 0A 6F 41 45 5A 8C B5 [17:16:00]CheckFolder [17:16:00]dirname=/storage/ofd_packets [17:16:00]CheckFolder done [17:16:00]ProducePacketName [17:16:00]name=ofd_packets/00227538 [17:16:00]NVStorageSaveData ofd_packets/00227538 [17:16:00]File name is /storage/ofd_packets/00227538 [17:16:00]Write 301 bytes [17:16:00]NVStorageSaveData done [17:16:00]OFDSenderStorePacket done [17:16:00]KKMCreateOFDPacket done [17:16:00]NVStorageSaveData kkm_last_timestamp [17:16:00]File name is /storage/kkm_last_timestamp [17:16:00]Write 4 bytes [17:16:00]NVStorageSaveData done [17:16:00]ExternCall_PrintAddStr [17:16:00]wPrintStart [17:16:00]Write to MH i2c: 01 00 00 BD 0C C9 [17:16:00]Write i2c OK [17:16:00]MH_I2C_Read... [17:16:00]Read from MH i2c: 01 [17:16:00]MH_I2C_Read... [17:16:00]Read from MH i2c: 01 07 00 [17:16:00]MH_I2C_Read... [17:16:00]Read from MH i2c: 01 07 00 BD 0C 00 00 00 00 00 FF 0F DE [17:16:00]RasterBufferAndPrint [17:16:00]line Счет N : (1)1963170 [17:16:00]line ИНН: 02508201610067 [17:16:00]line Контрольно-Кассовый Чек [17:16:00]line ПРОДАЖА [17:16:00]line ТРК (МРК, ГНК) : 63 [17:16:00]line Товар: 2710124130 [17:16:00]line Аи-92-К-5 [17:16:00]line 5.980 * 66.90 [17:16:00]line = 400.06 [17:16:00]line НДС 12% НСП 1% [17:16:00]line > о реализуемом товаре [17:16:00]line ОКРУГЛЕНИЕ: -0.06 [17:16:00]line ИТОГО: 400.00 [17:16:00]line Внесено: 400.00 [17:16:00]line СДАЧА: 0.00 [17:16:00]line НСП 1% : 3.54 [17:16:00]line НДС 12% : 42.48 [17:16:00]line Наличными: 400.00 [17:16:00]line Безнал.: 0.00 [17:16:00]line Место: АЗС № 133 "Партнер Нефть" [17:16:00]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:16:00]line СНО: Общий режим [17:16:00]line Чек 386 20.10.2024 17:16 [17:16:00]line Смена: 533 ФФД: 1.0 [17:16:00]line ЗНМ: 0300000091 [17:16:00]line РНМ: 0000000000091685 [17:16:00]line Версия ККМ: 001 [17:16:00]line ФМ: 0000000000871839 [17:16:00]line ФД: 227538 [17:16:00]line ФПД: 151707651390693 [17:16:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171600&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227538&fm=151707651390693&tin=02508201610067®Number=0000000000091685&sum=40000 [17:16:00]written 0, free lines is 4095 [17:16:00]OFD Sender: Processing packet 227538 [packets to send 38, broken 37] [17:16:00]ProducePacketName [17:16:00]name=ofd_packets/00227538 [17:16:00]OFD Sender: To server: pG, [17:16:00]CommunicateWithHost lk.salyk.kg:30040 [17:16:00]ConnectInit lk.salyk.kg [17:16:01]Connected sock=9 [17:16:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 8E C9 07 01 43 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 01 00 00 F4 03 04 00 D0 3A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D2 78 03 00 35 04 06 00 89 FA 30 AB BC E5 15 0A 6F 41 45 5A 8C B5 [17:16: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 33 39 4F 00 00 00 87 B7 47 00 B8 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 33 39 10 04 04 00 D2 78 03 00 F4 03 04 00 CE E5 14 67 B6 04 01 00 00 A9 5B BC CA 21 B9 45 A9 [17:16:01]CommunicateWithHost err = 0 [17:16:01]CheckOFDResponse [17:16:01]1017 (14) - 77093643461234 [17:16:01]1041 (16) - 0000000000871839 [17:16:01]1040 (4) - 227538 [17:16:01]1012 (4) - 20.10.2024 11:13 [17:16:01]1206 (1) - 0 [17:16:01]OFD Sender: Remove packet 227538 [17:16:01]ProducePacketName [17:16:01]name=ofd_packets/00227538 [17:16:01]NVStorageDeleteData [17:16:01]Write to MH i2c: 01 00 00 E7 0C F3 [17:16:01]Write i2c OK [17:16:01]MH_I2C_Read... [17:16:01]Read from MH i2c: 01 [17:16:01]MH_I2C_Read... [17:16:01]Read from MH i2c: 01 07 00 [17:16:01]MH_I2C_Read... [17:16:01]Read from MH i2c: 01 07 00 E7 0C 00 00 00 00 00 05 0D 0C [17:16:01]RasterBufferAndPrint [17:16:01]line [17:16:01]line [17:16:01]line [17:16:01]line [17:16:01]line [17:16:01]written 0, free lines is 3339 [17:16:01]process_action close_receipt done [17:16:01]requested_data is exist [17:16:01]produce_requested_data [17:16:01]requested_item fm.sn is exist - process it [17:16:01]wFMCommunicate request_size=4 [17:16:01]MH_SAM_APDU [17:16:01]CAPDU: 80 11 00 00 [17:16:01]Write to MH i2c: E2 08 00 EE 0C 80 11 00 00 00 00 00 00 74 [17:16:01]Write i2c OK [17:16:01]MH_I2C_Read... [17:16:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:01]Read from MH i2c: E2 [17:16:01]MH_I2C_Read... [17:16:01]Read from MH i2c: E2 17 00 [17:16:01]MH_I2C_Read... [17:16:01]Read from MH i2c: E2 17 00 EE 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 CB [17:16:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:16:01]wFMCommunicate OK [17:16:01]requested_item fd.num is exist - process it [17:16:01]SAM_PROTO_GetFieldsCounters [17:16:01]wFMCommunicate request_size=4 [17:16:01]MH_SAM_APDU [17:16:01]CAPDU: 80 13 00 00 [17:16:01]Write to MH i2c: E2 08 00 EF 0C 80 13 00 00 00 00 00 00 77 [17:16:01]Write i2c OK [17:16:01]MH_I2C_Read... [17:16:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:16:01]Read from MH i2c: E2 [17:16:01]MH_I2C_Read... [17:16:01]Read from MH i2c: E2 62 00 [17:16:01]MH_I2C_Read... [17:16:01]Read from MH i2c: E2 62 00 EF 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 D2 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 82 01 00 00 5E 04 04 00 82 01 00 00 57 04 04 00 83 01 00 00 19 04 04 00 00 00 00 00 90 00 8D [17:16: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 D2 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 82 01 00 00 5E 04 04 00 82 01 00 00 57 04 04 00 83 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:16:01]wFMCommunicate OK [17:16:01]SAM_PROTO_GetFieldsCounters done [17:16:01]requested_item shift.num is exist - process it [17:16:01]requested_item shift.opened is exist - process it [17:16:01]req_shift_opened [17:16:01]FM_GetShiftState [17:16:01]SAM_PROTO_GetShiftState [17:16:01]wFMCommunicate request_size=4 [17:16:01]MH_SAM_APDU [17:16:01]CAPDU: 80 13 01 00 [17:16:01]Write to MH i2c: E2 08 00 F0 0C 80 13 01 00 00 00 00 00 79 [17:16:01]Write i2c OK [17:16:01]MH_I2C_Read... [17:16:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:01]Read from MH i2c: E2 [17:16:01]MH_I2C_Read... [17:16:01]Read from MH i2c: E2 0E 00 [17:16:01]MH_I2C_Read... [17:16:01]Read from MH i2c: E2 0E 00 F0 0C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 93 [17:16:01]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:16:01]wFMCommunicate OK [17:16:01]SAM_PROTO_GetShiftState done [17:16:01]FM_GetShiftState done [17:16:01]req_shift_opened done [17:16:01]requested_item shift.open_date is exist - process it [17:16:01]req_shift_open_date [17:16:01]req_shift_open_date done [17:16:01]produce_requested_data done [17:16:01]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227538,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [17:16:01]process_action_free close_receipt [17:16:01]json_value_free [17:16:01]json_value_free done [17:16:01]process_json_proto returns [17:16:01]Send response to host [17:16:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227538,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [17:16:01]free response buf [17:16:01]execute_script done [17:16:01]execute_script returns [17:16:01]free content buf [17:16:01]Sock 10.Close socket [17:16:01]Sock 10.Thread stoped [17:16:01]OFD Sender: No OFD packet to send [17:16:06]OFD Sender: No OFD packet to send [17:16:11]OFD Sender: No OFD packet to send [17:16:16]OFD Sender: No OFD packet to send [17:16:21]OFD Sender: No OFD packet to send [17:16:26]OFD Sender: No OFD packet to send [17:16:31]OFD Sender: No OFD packet to send [17:16:36]OFD Sender: No OFD packet to send [17:16:41]OFD Sender: No OFD packet to send [17:16:46]OFD Sender: No OFD packet to send [17:16:48]accept exits with 7 [17:16:48]New connection [17:16:48]New thread 3067362660 created [17:16:48]Thread 3067219300 joined [17:16:48]Waiting for new connection... [17:16:48] Sock 7.Parse request [17:16:48]Sock 7.Check first char [17:16:48]Sock 7.First char is OK [17:16:48]request: POST /json_proto HTTP/1.0 [17:16:48]Method: POST [17:16:48]URL: /json_proto [17:16:48]Method is POST - this is cgi request [17:16:48]url: /json_proto [17:16:48]query_string will be loaded in cgi processing [17:16:48]execute_cgi json_proto POST (null) [17:16:48]execute_cgi path=json_proto method=POST [17:16:48]POST find Content-Length [17:16:48]Host: 172.17.44.195:8080 [17:16:48]Content-Length: 678 [17:16:48]Content-Type: application/json [17:16:48] [17:16:48]POST finish read [17:16:48]Found Content-Length = 678 [17:16:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963171", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:48]execute_script... [17:16:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963171", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:48]POST & json_proto [17:16:48]process_json_proto [17:16:48]json parsed OK: [17:16:48]protocol is kg_v1.0 [17:16:48]action value=close_receipt [17:16:48]process_action close_receipt [17:16:48]cmd_close_receipt [17:16:48]MH_GetDate [17:16:48]Write to MH i2c: F0 00 00 F1 0C EC [17:16:48]Write i2c OK [17:16:48]MH_I2C_Read... [17:16:48]Read from MH i2c: F0 [17:16:48]MH_I2C_Read... [17:16:48]Read from MH i2c: F0 09 00 [17:16:48]MH_I2C_Read... [17:16:48]Read from MH i2c: F0 09 00 F1 0C 00 02 3B 15 67 82 C9 CF 66 2E [17:16:48]GetLastDocTimeStamp 1729444560 [17:16:48]current date 1729444610 [17:16:48]FM_GetShiftState [17:16:48]SAM_PROTO_GetShiftState [17:16:48]wFMCommunicate request_size=4 [17:16:48]MH_SAM_APDU [17:16:48]CAPDU: 80 13 01 00 [17:16:48]Write to MH i2c: E2 08 00 F2 0C 80 13 01 00 00 00 00 00 7B [17:16:48]Write i2c OK [17:16:48]MH_I2C_Read... [17:16:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:48]Read from MH i2c: E2 [17:16:48]MH_I2C_Read... [17:16:48]Read from MH i2c: E2 0E 00 [17:16:48]MH_I2C_Read... [17:16:48]Read from MH i2c: E2 0E 00 F2 0C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 95 [17:16:48]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:16:48]wFMCommunicate OK [17:16:48]SAM_PROTO_GetShiftState done [17:16:48]FM_GetShiftState done [17:16:48]opened in 1729383750 [17:16:48]opened+sec_in_day 1729470150 [17:16:48]quantity*price = 30038 [17:16:48]sum+1 = 30039 [17:16:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 387 20.10.2024 17:16 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227539 ФПД: 227677696527903 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171650&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227539&fm=227677696527903&tin=02508201610067®Number=0000000000091685&sum=30000 [17:16:50]StoreToDocumentArchive [17:16:50]shift 533 fd 227539 [17:16:50]save to /storage/0533/doc_00227539 [17:16:50]save last doc name /storage/0533/doc_00227539 to /storage/kkm_last_doc_name [17:16:50]save OK [17:16:50]Clear old archive folders... [17:16:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:16:50]tlvbuf is 00D9D9F0 [17:16:50]SAM_PROTO_ClearQueue [17:16:50]wFMCommunicate request_size=4 [17:16:50]MH_SAM_APDU [17:16:50]CAPDU: 80 09 00 00 [17:16:50]Write to MH i2c: E2 08 00 FF 0C 80 09 00 00 00 00 00 00 7D [17:16:50]Write i2c OK [17:16:50]MH_I2C_Read... [17:16:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:16:50]Read from MH i2c: E2 [17:16:50]MH_I2C_Read... [17:16:50]Read from MH i2c: E2 03 00 [17:16:50]MH_I2C_Read... [17:16:50]Read from MH i2c: E2 03 00 FF 0C 00 90 00 7F [17:16:50]RAPDU: 90 00 [17:16:50]wFMCommunicate OK [17:16:50]SAM_PROTO_ClearQueue done [17:16:50]KKMCreateOFDPacket [17:16:50]OFDProtocolAddRootSTLVToBuf [17:16:50]FM_MakeSignedData [17:16:50]FM_MakeSignedData [17:16:50]SAM_PROTO_SignData [17:16:50]wFMCommunicate request_size=4 [17:16:50]MH_SAM_APDU [17:16:50]CAPDU: 80 0D 01 02 [17:16:50]Write to MH i2c: E2 08 00 00 0D 80 0D 01 02 00 00 00 00 86 [17:16:50]Write i2c OK [17:16:50]MH_I2C_Read... [17:16:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:16:50]Read from MH i2c: E2 [17:16:50]MH_I2C_Read... [17:16:50]Read from MH i2c: E2 03 00 [17:16:50]MH_I2C_Read... [17:16:50]Read from MH i2c: E2 03 00 00 0D 00 90 00 81 [17:16:50]RAPDU: 90 00 [17:16:50]wFMCommunicate OK [17:16:50]wFMCommunicate request_size=255 [17:16:50]MH_SAM_APDU [17:16:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 01 00 00 F4 03 04 00 02 3B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D3 78 03 00 35 04 06 00 CF [17:16:50]Write to MH i2c: E2 02 01 01 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 01 00 00 F4 03 04 00 02 3B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D3 78 03 00 35 04 06 00 CF 00 00 82 [17:16:50]Write i2c OK [17:16:50]MH_I2C_Read... [17:16:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:50]Read from MH i2c: E2 [17:16:50]MH_I2C_Read... [17:16:50]Read from MH i2c: E2 03 00 [17:16:50]MH_I2C_Read... [17:16:50]Read from MH i2c: E2 03 00 01 0D 00 90 00 82 [17:16:50]RAPDU: 90 00 [17:16:50]wFMCommunicate OK [17:16:50]wFMCommunicate request_size=10 [17:16:50]MH_SAM_APDU [17:16:50]CAPDU: 80 0D 02 02 05 12 58 39 8E 1F [17:16:50]Write to MH i2c: E2 0D 00 02 0D 80 0D 02 02 05 00 12 58 39 8E 1F 00 00 E3 [17:16:50]Write i2c OK [17:16:50]MH_I2C_Read... [17:16:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:50]Read from MH i2c: E2 [17:16:50]MH_I2C_Read... [17:16:50]Read from MH i2c: E2 03 00 [17:16:50]MH_I2C_Read... [17:16:50]Read from MH i2c: E2 03 00 02 0D 00 90 00 83 [17:16:50]RAPDU: 90 00 [17:16:50]wFMCommunicate OK [17:16:50]wFMCommunicate request_size=4 [17:16:50]MH_SAM_APDU [17:16:50]CAPDU: 80 0D 03 02 [17:16:50]Write to MH i2c: E2 08 00 03 0D 80 0D 03 02 00 00 00 00 8B [17:16:50]Write i2c OK [17:16:50]MH_I2C_Read... [17:16:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:16:50]Read from MH i2c: E2 [17:16:50]MH_I2C_Read... [17:16:50]Read from MH i2c: E2 0B 00 [17:16:50]MH_I2C_Read... [17:16:50]Read from MH i2c: E2 0B 00 03 0D 00 59 8F AA 47 45 C1 62 54 90 00 21 [17:16:50]RAPDU: 59 8F AA 47 45 C1 62 54 90 00 [17:16:50]wFMCommunicate OK [17:16:50]SAM_PROTO_SignData done [17:16:50]FM_MakeSignedData done [17:16:50]CreateOFDProtocolMessage [17:16:50]wFMCommunicate request_size=4 [17:16:50]MH_SAM_APDU [17:16:50]CAPDU: 80 11 00 00 [17:16:50]Write to MH i2c: E2 08 00 04 0D 80 11 00 00 00 00 00 00 8B [17:16:50]Write i2c OK [17:16:50]MH_I2C_Read... [17:16:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:50]Read from MH i2c: E2 [17:16:50]MH_I2C_Read... [17:16:50]Read from MH i2c: E2 17 00 [17:16:50]MH_I2C_Read... [17:16:50]Read from MH i2c: E2 17 00 04 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E2 [17:16:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:16:50]wFMCommunicate OK [17:16:50]CreateOFDProtocolMessage done [17:16:50]OFDSenderStorePacket 227539 [17:16:50]StoreOFDPacket docnum=227539 [17:16:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 C4 38 07 01 D8 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 01 00 00 F4 03 04 00 02 3B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D3 78 03 00 35 04 06 00 CF 12 58 39 8E 1F 59 8F AA 47 45 C1 62 54 [17:16:50]CheckFolder [17:16:50]dirname=/storage/ofd_packets [17:16:50]CheckFolder done [17:16:50]ProducePacketName [17:16:50]name=ofd_packets/00227539 [17:16:50]NVStorageSaveData ofd_packets/00227539 [17:16:50]File name is /storage/ofd_packets/00227539 [17:16:50]Write 301 bytes [17:16:50]NVStorageSaveData done [17:16:50]OFDSenderStorePacket done [17:16:50]KKMCreateOFDPacket done [17:16:50]NVStorageSaveData kkm_last_timestamp [17:16:50]File name is /storage/kkm_last_timestamp [17:16:50]Write 4 bytes [17:16:50]NVStorageSaveData done [17:16:50]ExternCall_PrintAddStr [17:16:50]wPrintStart [17:16:50]Write to MH i2c: 01 00 00 05 0D 12 [17:16:50]Write i2c OK [17:16:50]MH_I2C_Read... [17:16:50]Read from MH i2c: 01 [17:16:50]MH_I2C_Read... [17:16:50]Read from MH i2c: 01 07 00 [17:16:50]MH_I2C_Read... [17:16:50]Read from MH i2c: 01 07 00 05 0D 00 00 00 00 00 FF 0F 27 [17:16:50]RasterBufferAndPrint [17:16:50]line Счет N : (1)1963171 [17:16:50]line ИНН: 02508201610067 [17:16:50]line Контрольно-Кассовый Чек [17:16:50]line ПРОДАЖА [17:16:50]line ТРК (МРК, ГНК) : 53 [17:16:50]line Товар: 2710124130 [17:16:50]line Аи-92-К-5 [17:16:50]line 4.490 * 66.90 [17:16:50]line = 300.38 [17:16:50]line НДС 12% НСП 1% [17:16:50]line > о реализуемом товаре [17:16:50]line ОКРУГЛЕНИЕ: -0.38 [17:16:50]line ИТОГО: 300.00 [17:16:50]line Внесено: 300.00 [17:16:50]line СДАЧА: 0.00 [17:16:50]line НСП 1% : 2.66 [17:16:50]line НДС 12% : 31.90 [17:16:50]line Наличными: 300.00 [17:16:50]line Безнал.: 0.00 [17:16:50]line Место: АЗС № 133 "Партнер Нефть" [17:16:50]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:16:50]line СНО: Общий режим [17:16:50]line Чек 387 20.10.2024 17:16 [17:16:50]line Смена: 533 ФФД: 1.0 [17:16:50]line ЗНМ: 0300000091 [17:16:50]line РНМ: 0000000000091685 [17:16:50]line Версия ККМ: 001 [17:16:50]line ФМ: 0000000000871839 [17:16:50]line ФД: 227539 [17:16:50]line ФПД: 227677696527903 [17:16:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171650&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227539&fm=227677696527903&tin=02508201610067®Number=0000000000091685&sum=30000 [17:16:50]OFD Sender: Processing packet 227539 [packets to send 38, broken 37] [17:16:50]ProducePacketName [17:16:50]name=ofd_packets/00227539 [17:16:50]OFD Sender: To server: pG, [17:16:50]CommunicateWithHost lk.salyk.kg:30040 [17:16:50]ConnectInit lk.salyk.kg [17:16:50]written 0, free lines is 4095 [17:16:51]Connected sock=10 [17:16: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 33 39 0F 01 00 00 C4 38 07 01 D8 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 01 00 00 F4 03 04 00 02 3B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D3 78 03 00 35 04 06 00 CF 12 58 39 8E 1F 59 8F AA 47 45 C1 62 54 [17:16: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 33 39 4F 00 00 00 88 5C 47 00 B0 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 33 39 10 04 04 00 D3 78 03 00 F4 03 04 00 00 E6 14 67 B6 04 01 00 00 2E 87 77 F1 21 F3 A3 AF [17:16:51]CommunicateWithHost err = 0 [17:16:51]CheckOFDResponse [17:16:51]1017 (14) - 77093643461234 [17:16:51]1041 (16) - 0000000000871839 [17:16:51]1040 (4) - 227539 [17:16:51]1012 (4) - 20.10.2024 11:14 [17:16:51]1206 (1) - 0 [17:16:51]OFD Sender: Remove packet 227539 [17:16:51]ProducePacketName [17:16:51]name=ofd_packets/00227539 [17:16:51]NVStorageDeleteData [17:16:51]Write to MH i2c: 01 00 00 2F 0D 3C [17:16:51]Write i2c OK [17:16:51]MH_I2C_Read... [17:16:51]Read from MH i2c: 01 [17:16:51]MH_I2C_Read... [17:16:51]Read from MH i2c: 01 07 00 [17:16:51]MH_I2C_Read... [17:16:51]Read from MH i2c: 01 07 00 2F 0D 00 00 00 00 00 13 0D 63 [17:16:51]RasterBufferAndPrint [17:16:51]line [17:16:51]line [17:16:51]line [17:16:51]line [17:16:51]line [17:16:51]written 0, free lines is 3354 [17:16:51]process_action close_receipt done [17:16:51]requested_data is exist [17:16:51]produce_requested_data [17:16:51]requested_item fm.sn is exist - process it [17:16:51]wFMCommunicate request_size=4 [17:16:51]MH_SAM_APDU [17:16:51]CAPDU: 80 11 00 00 [17:16:51]Write to MH i2c: E2 08 00 36 0D 80 11 00 00 00 00 00 00 BD [17:16:51]Write i2c OK [17:16:51]MH_I2C_Read... [17:16:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:51]Read from MH i2c: E2 [17:16:51]MH_I2C_Read... [17:16:51]Read from MH i2c: E2 17 00 [17:16:51]MH_I2C_Read... [17:16:51]Read from MH i2c: E2 17 00 36 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 14 [17:16:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:16:51]wFMCommunicate OK [17:16:51]requested_item fd.num is exist - process it [17:16:51]SAM_PROTO_GetFieldsCounters [17:16:51]wFMCommunicate request_size=4 [17:16:51]MH_SAM_APDU [17:16:51]CAPDU: 80 13 00 00 [17:16:51]Write to MH i2c: E2 08 00 37 0D 80 13 00 00 00 00 00 00 C0 [17:16:51]Write i2c OK [17:16:51]MH_I2C_Read... [17:16:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:16:51]Read from MH i2c: E2 [17:16:51]MH_I2C_Read... [17:16:51]Read from MH i2c: E2 62 00 [17:16:51]MH_I2C_Read... [17:16:51]Read from MH i2c: E2 62 00 37 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 D3 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 83 01 00 00 5E 04 04 00 83 01 00 00 57 04 04 00 84 01 00 00 19 04 04 00 00 00 00 00 90 00 DA [17:16: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 D3 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 83 01 00 00 5E 04 04 00 83 01 00 00 57 04 04 00 84 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:16:51]wFMCommunicate OK [17:16:51]SAM_PROTO_GetFieldsCounters done [17:16:51]requested_item shift.num is exist - process it [17:16:51]requested_item shift.opened is exist - process it [17:16:51]req_shift_opened [17:16:51]FM_GetShiftState [17:16:51]SAM_PROTO_GetShiftState [17:16:51]wFMCommunicate request_size=4 [17:16:51]MH_SAM_APDU [17:16:51]CAPDU: 80 13 01 00 [17:16:51]Write to MH i2c: E2 08 00 38 0D 80 13 01 00 00 00 00 00 C2 [17:16:51]Write i2c OK [17:16:51]MH_I2C_Read... [17:16:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:51]Read from MH i2c: E2 [17:16:51]MH_I2C_Read... [17:16:51]Read from MH i2c: E2 0E 00 [17:16:51]MH_I2C_Read... [17:16:51]Read from MH i2c: E2 0E 00 38 0D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 DC [17:16:51]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:16:51]wFMCommunicate OK [17:16:51]SAM_PROTO_GetShiftState done [17:16:51]FM_GetShiftState done [17:16:51]req_shift_opened done [17:16:51]requested_item shift.open_date is exist - process it [17:16:51]req_shift_open_date [17:16:51]req_shift_open_date done [17:16:51]produce_requested_data done [17:16:51]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227539,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [17:16:51]process_action_free close_receipt [17:16:51]json_value_free [17:16:51]json_value_free done [17:16:51]process_json_proto returns [17:16:51]Send response to host [17:16:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227539,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [17:16:51]free response buf [17:16:51]execute_script done [17:16:51]execute_script returns [17:16:51]free content buf [17:16:51]Sock 7.Close socket [17:16:51]Sock 7.Thread stoped [17:16:51]OFD Sender: No OFD packet to send [17:16:56]OFD Sender: No OFD packet to send [17:17:01]OFD Sender: No OFD packet to send [17:17:06]OFD Sender: No OFD packet to send [17:17:09]accept exits with 9 [17:17:09]New connection [17:17:09]New thread 3067219300 created [17:17:09]Thread 3067362660 joined [17:17:09]Waiting for new connection... [17:17:09] Sock 9.Parse request [17:17:09]Sock 9.Check first char [17:17:09]Sock 9.First char is OK [17:17:09]request: POST /json_proto HTTP/1.0 [17:17:09]Method: POST [17:17:09]URL: /json_proto [17:17:09]Method is POST - this is cgi request [17:17:09]url: /json_proto [17:17:09]query_string will be loaded in cgi processing [17:17:09]execute_cgi json_proto POST (null) [17:17:09]execute_cgi path=json_proto method=POST [17:17:09]POST find Content-Length [17:17:09]Host: 172.17.44.195:8080 [17:17:09]Content-Length: 678 [17:17:09]Content-Type: application/json [17:17:09] [17:17:09]POST finish read [17:17:09]Found Content-Length = 678 [17:17:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963172", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:17:09]execute_script... [17:17: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)1963172", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:17:09]POST & json_proto [17:17:09]process_json_proto [17:17:09]json parsed OK: [17:17:09]protocol is kg_v1.0 [17:17:09]action value=close_receipt [17:17:09]process_action close_receipt [17:17:09]cmd_close_receipt [17:17:09]MH_GetDate [17:17:09]Write to MH i2c: F0 00 00 39 0D 35 [17:17:09]Write i2c OK [17:17:09]MH_I2C_Read... [17:17:09]Read from MH i2c: F0 [17:17:09]MH_I2C_Read... [17:17:09]Read from MH i2c: F0 09 00 [17:17:09]MH_I2C_Read... [17:17:09]Read from MH i2c: F0 09 00 39 0D 00 16 3B 15 67 82 C9 CF 66 8B [17:17:09]GetLastDocTimeStamp 1729444610 [17:17:09]current date 1729444630 [17:17:09]FM_GetShiftState [17:17:09]SAM_PROTO_GetShiftState [17:17:09]wFMCommunicate request_size=4 [17:17:09]MH_SAM_APDU [17:17:09]CAPDU: 80 13 01 00 [17:17:09]Write to MH i2c: E2 08 00 3A 0D 80 13 01 00 00 00 00 00 C4 [17:17:09]Write i2c OK [17:17:09]MH_I2C_Read... [17:17:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:09]Read from MH i2c: E2 [17:17:09]MH_I2C_Read... [17:17:09]Read from MH i2c: E2 0E 00 [17:17:09]MH_I2C_Read... [17:17:09]Read from MH i2c: E2 0E 00 3A 0D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 DE [17:17:09]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:17:09]wFMCommunicate OK [17:17:09]SAM_PROTO_GetShiftState done [17:17:09]FM_GetShiftState done [17:17:09]opened in 1729383750 [17:17:09]opened+sec_in_day 1729470150 [17:17:09]quantity*price = 50041 [17:17:09]sum+1 = 50042 [17:17:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 388 20.10.2024 17:17 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227540 ФПД: 223445352624053 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171710&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227540&fm=223445352624053&tin=02508201610067®Number=0000000000091685&sum=50000 [17:17:10]StoreToDocumentArchive [17:17:10]shift 533 fd 227540 [17:17:10]save to /storage/0533/doc_00227540 [17:17:10]save last doc name /storage/0533/doc_00227540 to /storage/kkm_last_doc_name [17:17:10]save OK [17:17:10]Clear old archive folders... [17:17:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:17:10]tlvbuf is 00DD3520 [17:17:10]SAM_PROTO_ClearQueue [17:17:10]wFMCommunicate request_size=4 [17:17:10]MH_SAM_APDU [17:17:10]CAPDU: 80 09 00 00 [17:17:10]Write to MH i2c: E2 08 00 47 0D 80 09 00 00 00 00 00 00 C6 [17:17:10]Write i2c OK [17:17:10]MH_I2C_Read... [17:17:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:17:10]Read from MH i2c: E2 [17:17:10]MH_I2C_Read... [17:17:10]Read from MH i2c: E2 03 00 [17:17:10]MH_I2C_Read... [17:17:10]Read from MH i2c: E2 03 00 47 0D 00 90 00 C8 [17:17:10]RAPDU: 90 00 [17:17:10]wFMCommunicate OK [17:17:10]SAM_PROTO_ClearQueue done [17:17:10]KKMCreateOFDPacket [17:17:10]OFDProtocolAddRootSTLVToBuf [17:17:10]FM_MakeSignedData [17:17:10]FM_MakeSignedData [17:17:10]SAM_PROTO_SignData [17:17:10]wFMCommunicate request_size=4 [17:17:10]MH_SAM_APDU [17:17:10]CAPDU: 80 0D 01 02 [17:17:10]Write to MH i2c: E2 08 00 48 0D 80 0D 01 02 00 00 00 00 CE [17:17:10]Write i2c OK [17:17:10]MH_I2C_Read... [17:17:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:17:10]Read from MH i2c: E2 [17:17:10]MH_I2C_Read... [17:17:10]Read from MH i2c: E2 03 00 [17:17:10]MH_I2C_Read... [17:17:10]Read from MH i2c: E2 03 00 48 0D 00 90 00 C9 [17:17:10]RAPDU: 90 00 [17:17:10]wFMCommunicate OK [17:17:10]wFMCommunicate request_size=255 [17:17:10]MH_SAM_APDU [17:17:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 01 00 00 F4 03 04 00 16 3B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D4 78 03 00 35 04 06 00 CB [17:17:10]Write to MH i2c: E2 02 01 49 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 01 00 00 F4 03 04 00 16 3B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D4 78 03 00 35 04 06 00 CB 00 00 E8 [17:17:10]Write i2c OK [17:17:10]MH_I2C_Read... [17:17:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:11]Read from MH i2c: E2 [17:17:11]MH_I2C_Read... [17:17:11]Read from MH i2c: E2 03 00 [17:17:11]MH_I2C_Read... [17:17:11]Read from MH i2c: E2 03 00 49 0D 00 90 00 CA [17:17:11]RAPDU: 90 00 [17:17:11]wFMCommunicate OK [17:17:11]wFMCommunicate request_size=10 [17:17:11]MH_SAM_APDU [17:17:11]CAPDU: 80 0D 02 02 05 38 EC DE AF B5 [17:17:11]Write to MH i2c: E2 0D 00 4A 0D 80 0D 02 02 05 00 38 EC DE AF B5 00 00 41 [17:17:11]Write i2c OK [17:17:11]MH_I2C_Read... [17:17:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:11]Read from MH i2c: E2 [17:17:11]MH_I2C_Read... [17:17:11]Read from MH i2c: E2 03 00 [17:17:11]MH_I2C_Read... [17:17:11]Read from MH i2c: E2 03 00 4A 0D 00 90 00 CB [17:17:11]RAPDU: 90 00 [17:17:11]wFMCommunicate OK [17:17:11]wFMCommunicate request_size=4 [17:17:11]MH_SAM_APDU [17:17:11]CAPDU: 80 0D 03 02 [17:17:11]Write to MH i2c: E2 08 00 4B 0D 80 0D 03 02 00 00 00 00 D3 [17:17:11]Write i2c OK [17:17:11]MH_I2C_Read... [17:17:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:17:11]Read from MH i2c: E2 [17:17:11]MH_I2C_Read... [17:17:11]Read from MH i2c: E2 0B 00 [17:17:11]MH_I2C_Read... [17:17:11]Read from MH i2c: E2 0B 00 4B 0D 00 D8 7F 92 88 D9 3D 28 F3 90 00 76 [17:17:11]RAPDU: D8 7F 92 88 D9 3D 28 F3 90 00 [17:17:11]wFMCommunicate OK [17:17:11]SAM_PROTO_SignData done [17:17:11]FM_MakeSignedData done [17:17:11]CreateOFDProtocolMessage [17:17:11]wFMCommunicate request_size=4 [17:17:11]MH_SAM_APDU [17:17:11]CAPDU: 80 11 00 00 [17:17:11]Write to MH i2c: E2 08 00 4C 0D 80 11 00 00 00 00 00 00 D3 [17:17:11]Write i2c OK [17:17:11]MH_I2C_Read... [17:17:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:11]Read from MH i2c: E2 [17:17:11]MH_I2C_Read... [17:17:11]Read from MH i2c: E2 17 00 [17:17:11]MH_I2C_Read... [17:17:11]Read from MH i2c: E2 17 00 4C 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 2A [17:17:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:17:11]wFMCommunicate OK [17:17:11]CreateOFDProtocolMessage done [17:17:11]OFDSenderStorePacket 227540 [17:17:11]StoreOFDPacket docnum=227540 [17:17:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 0D 70 07 01 E2 AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 01 00 00 F4 03 04 00 16 3B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D4 78 03 00 35 04 06 00 CB 38 EC DE AF B5 D8 7F 92 88 D9 3D 28 F3 [17:17:11]CheckFolder [17:17:11]dirname=/storage/ofd_packets [17:17:11]CheckFolder done [17:17:11]ProducePacketName [17:17:11]name=ofd_packets/00227540 [17:17:11]NVStorageSaveData ofd_packets/00227540 [17:17:11]File name is /storage/ofd_packets/00227540 [17:17:11]Write 301 bytes [17:17:11]NVStorageSaveData done [17:17:11]OFDSenderStorePacket done [17:17:11]KKMCreateOFDPacket done [17:17:11]NVStorageSaveData kkm_last_timestamp [17:17:11]File name is /storage/kkm_last_timestamp [17:17:11]Write 4 bytes [17:17:11]NVStorageSaveData done [17:17:11]ExternCall_PrintAddStr [17:17:11]wPrintStart [17:17:11]Write to MH i2c: 01 00 00 4D 0D 5A [17:17:11]Write i2c OK [17:17:11]MH_I2C_Read... [17:17:11]Read from MH i2c: 01 [17:17:11]MH_I2C_Read... [17:17:11]Read from MH i2c: 01 07 00 [17:17:11]MH_I2C_Read... [17:17:11]Read from MH i2c: 01 07 00 4D 0D 00 00 00 00 00 FF 0F 6F [17:17:11]RasterBufferAndPrint [17:17:11]line Счет N : (1)1963172 [17:17:11]line ИНН: 02508201610067 [17:17:11]line Контрольно-Кассовый Чек [17:17:11]line ПРОДАЖА [17:17:11]line ТРК (МРК, ГНК) : 33 [17:17:11]line Товар: 2710124130 [17:17:11]line Аи-92-К-5 [17:17:11]line 7.480 * 66.90 [17:17:11]line = 500.41 [17:17:11]line НДС 12% НСП 1% [17:17:11]line > о реализуемом товаре [17:17:11]line ОКРУГЛЕНИЕ: -0.41 [17:17:11]line ИТОГО: 500.00 [17:17:11]line Внесено: 500.00 [17:17:11]line СДАЧА: 0.00 [17:17:11]line НСП 1% : 4.43 [17:17:11]line НДС 12% : 53.14 [17:17:11]line Наличными: 500.00 [17:17:11]line Безнал.: 0.00 [17:17:11]line Место: АЗС № 133 "Партнер Нефть" [17:17:11]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:17:11]line СНО: Общий режим [17:17:11]line Чек 388 20.10.2024 17:17 [17:17:11]line Смена: 533 ФФД: 1.0 [17:17:11]line ЗНМ: 0300000091 [17:17:11]line РНМ: 0000000000091685 [17:17:11]line Версия ККМ: 001 [17:17:11]line ФМ: 0000000000871839 [17:17:11]line ФД: 227540 [17:17:11]line ФПД: 223445352624053 [17:17:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171710&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227540&fm=223445352624053&tin=02508201610067®Number=0000000000091685&sum=50000 [17:17:11]OFD Sender: Processing packet 227540 [packets to send 38, broken 37] [17:17:11]ProducePacketName [17:17:11]name=ofd_packets/00227540 [17:17:11]OFD Sender: To server: pG, [17:17:11]CommunicateWithHost lk.salyk.kg:30040 [17:17:11]ConnectInit lk.salyk.kg [17:17:11]written 0, free lines is 4095 [17:17:11]Connected sock=10 [17:17: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 33 39 0F 01 00 00 0D 70 07 01 E2 AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 01 00 00 F4 03 04 00 16 3B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D4 78 03 00 35 04 06 00 CB 38 EC DE AF B5 D8 7F 92 88 D9 3D 28 F3 [17:17: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 33 39 4F 00 00 00 AE 62 47 00 E4 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 33 39 10 04 04 00 D4 78 03 00 F4 03 04 00 15 E6 14 67 B6 04 01 00 00 B6 30 87 93 18 6C F9 E7 [17:17:11]CommunicateWithHost err = 0 [17:17:11]CheckOFDResponse [17:17:11]1017 (14) - 77093643461234 [17:17:11]1041 (16) - 0000000000871839 [17:17:11]1040 (4) - 227540 [17:17:11]1012 (4) - 20.10.2024 11:14 [17:17:11]1206 (1) - 0 [17:17:11]OFD Sender: Remove packet 227540 [17:17:11]ProducePacketName [17:17:11]name=ofd_packets/00227540 [17:17:11]NVStorageDeleteData [17:17:11]Write to MH i2c: 01 00 00 77 0D 84 [17:17:11]Write i2c OK [17:17:11]MH_I2C_Read... [17:17:11]Read from MH i2c: 01 [17:17:11]MH_I2C_Read... [17:17:11]Read from MH i2c: 01 07 00 [17:17:11]MH_I2C_Read... [17:17:11]Read from MH i2c: 01 07 00 77 0D 00 00 00 00 00 02 0D 9A [17:17:11]RasterBufferAndPrint [17:17:11]line [17:17:11]line [17:17:11]line [17:17:11]line [17:17:11]line [17:17:11]written 0, free lines is 3336 [17:17:11]process_action close_receipt done [17:17:11]requested_data is exist [17:17:11]produce_requested_data [17:17:11]requested_item fm.sn is exist - process it [17:17:11]wFMCommunicate request_size=4 [17:17:11]MH_SAM_APDU [17:17:11]CAPDU: 80 11 00 00 [17:17:11]Write to MH i2c: E2 08 00 7E 0D 80 11 00 00 00 00 00 00 05 [17:17:11]Write i2c OK [17:17:11]MH_I2C_Read... [17:17:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:12]Read from MH i2c: E2 [17:17:12]MH_I2C_Read... [17:17:12]Read from MH i2c: E2 17 00 [17:17:12]MH_I2C_Read... [17:17:12]Read from MH i2c: E2 17 00 7E 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 5C [17:17:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:17:12]wFMCommunicate OK [17:17:12]requested_item fd.num is exist - process it [17:17:12]SAM_PROTO_GetFieldsCounters [17:17:12]wFMCommunicate request_size=4 [17:17:12]MH_SAM_APDU [17:17:12]CAPDU: 80 13 00 00 [17:17:12]Write to MH i2c: E2 08 00 7F 0D 80 13 00 00 00 00 00 00 08 [17:17:12]Write i2c OK [17:17:12]MH_I2C_Read... [17:17:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:17:12]Read from MH i2c: E2 [17:17:12]MH_I2C_Read... [17:17:12]Read from MH i2c: E2 62 00 [17:17:12]MH_I2C_Read... [17:17:12]Read from MH i2c: E2 62 00 7F 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 D4 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 84 01 00 00 5E 04 04 00 84 01 00 00 57 04 04 00 85 01 00 00 19 04 04 00 00 00 00 00 90 00 26 [17:17: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 D4 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 84 01 00 00 5E 04 04 00 84 01 00 00 57 04 04 00 85 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:17:12]wFMCommunicate OK [17:17:12]SAM_PROTO_GetFieldsCounters done [17:17:12]requested_item shift.num is exist - process it [17:17:12]requested_item shift.opened is exist - process it [17:17:12]req_shift_opened [17:17:12]FM_GetShiftState [17:17:12]SAM_PROTO_GetShiftState [17:17:12]wFMCommunicate request_size=4 [17:17:12]MH_SAM_APDU [17:17:12]CAPDU: 80 13 01 00 [17:17:12]Write to MH i2c: E2 08 00 80 0D 80 13 01 00 00 00 00 00 0A [17:17:12]Write i2c OK [17:17:12]MH_I2C_Read... [17:17:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:12]Read from MH i2c: E2 [17:17:12]MH_I2C_Read... [17:17:12]Read from MH i2c: E2 0E 00 [17:17:12]MH_I2C_Read... [17:17:12]Read from MH i2c: E2 0E 00 80 0D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 24 [17:17:12]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:17:12]wFMCommunicate OK [17:17:12]SAM_PROTO_GetShiftState done [17:17:12]FM_GetShiftState done [17:17:12]req_shift_opened done [17:17:12]requested_item shift.open_date is exist - process it [17:17:12]req_shift_open_date [17:17:12]req_shift_open_date done [17:17:12]produce_requested_data done [17:17:12]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227540,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [17:17:12]process_action_free close_receipt [17:17:12]json_value_free [17:17:12]json_value_free done [17:17:12]process_json_proto returns [17:17:12]Send response to host [17:17:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227540,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [17:17:12]free response buf [17:17:12]execute_script done [17:17:12]execute_script returns [17:17:12]free content buf [17:17:12]Sock 9.Close socket [17:17:12]Sock 9.Thread stoped [17:17:12]OFD Sender: No OFD packet to send [17:17:17]OFD Sender: No OFD packet to send [17:17:22]OFD Sender: No OFD packet to send [17:17:27]OFD Sender: No OFD packet to send [17:17:32]OFD Sender: No OFD packet to send [17:17:37]OFD Sender: No OFD packet to send [17:17:42]OFD Sender: No OFD packet to send [17:17:42]accept exits with 7 [17:17:42]New connection [17:17:42]New thread 3067362660 created [17:17:42]Thread 3067219300 joined [17:17:42]Waiting for new connection... [17:17:42] Sock 7.Parse request [17:17:42]Sock 7.Check first char [17:17:42]Sock 7.First char is OK [17:17:42]request: POST /json_proto HTTP/1.0 [17:17:42]Method: POST [17:17:42]URL: /json_proto [17:17:42]Method is POST - this is cgi request [17:17:42]url: /json_proto [17:17:42]query_string will be loaded in cgi processing [17:17:42]execute_cgi json_proto POST (null) [17:17:42]execute_cgi path=json_proto method=POST [17:17:42]POST find Content-Length [17:17:42]Host: 172.17.44.195:8080 [17:17:42]Content-Length: 678 [17:17:42]Content-Type: application/json [17:17:42] [17:17:42]POST finish read [17:17:42]Found Content-Length = 678 [17:17:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963173", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.940, "sum" : 330.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 330.00, "total" : 330.00, "payments": [ { "type": 0, "sum" : 330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:17:42]execute_script... [17:17: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)1963173", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.940, "sum" : 330.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 330.00, "total" : 330.00, "payments": [ { "type": 0, "sum" : 330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:17:42]POST & json_proto [17:17:42]process_json_proto [17:17:42]json parsed OK: [17:17:42]protocol is kg_v1.0 [17:17:42]action value=close_receipt [17:17:42]process_action close_receipt [17:17:42]cmd_close_receipt [17:17:42]MH_GetDate [17:17:42]Write to MH i2c: F0 00 00 81 0D 7D [17:17:42]Write i2c OK [17:17:42]MH_I2C_Read... [17:17:42]Read from MH i2c: F0 [17:17:42]MH_I2C_Read... [17:17:42]Read from MH i2c: F0 09 00 [17:17:42]MH_I2C_Read... [17:17:42]Read from MH i2c: F0 09 00 81 0D 00 38 3B 15 67 82 C9 CF 66 F5 [17:17:42]GetLastDocTimeStamp 1729444630 [17:17:42]current date 1729444664 [17:17:42]FM_GetShiftState [17:17:42]SAM_PROTO_GetShiftState [17:17:42]wFMCommunicate request_size=4 [17:17:42]MH_SAM_APDU [17:17:42]CAPDU: 80 13 01 00 [17:17:42]Write to MH i2c: E2 08 00 82 0D 80 13 01 00 00 00 00 00 0C [17:17:42]Write i2c OK [17:17:42]MH_I2C_Read... [17:17:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:42]Read from MH i2c: E2 [17:17:42]MH_I2C_Read... [17:17:42]Read from MH i2c: E2 0E 00 [17:17:42]MH_I2C_Read... [17:17:42]Read from MH i2c: E2 0E 00 82 0D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 26 [17:17:42]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:17:42]wFMCommunicate OK [17:17:42]SAM_PROTO_GetShiftState done [17:17:42]FM_GetShiftState done [17:17:42]opened in 1729383750 [17:17:42]opened+sec_in_day 1729470150 [17:17:42]quantity*price = 33048 [17:17:42]sum+1 = 33050 [17:17:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 330.00 Внесено: 330.00 СДАЧА: 0.00 НСП 1% : 2.92 НДС 12% : 35.10 Наличными: 330.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 389 20.10.2024 17:17 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227541 ФПД: 246587009246930 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171744&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227541&fm=246587009246930&tin=02508201610067®Number=0000000000091685&sum=33000 [17:17:43]StoreToDocumentArchive [17:17:43]shift 533 fd 227541 [17:17:43]save to /storage/0533/doc_00227541 [17:17:43]save last doc name /storage/0533/doc_00227541 to /storage/kkm_last_doc_name [17:17:43]save OK [17:17:43]Clear old archive folders... [17:17:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:17:43]tlvbuf is 00D897B0 [17:17:43]SAM_PROTO_ClearQueue [17:17:43]wFMCommunicate request_size=4 [17:17:43]MH_SAM_APDU [17:17:43]CAPDU: 80 09 00 00 [17:17:43]Write to MH i2c: E2 08 00 8F 0D 80 09 00 00 00 00 00 00 0E [17:17:43]Write i2c OK [17:17:43]MH_I2C_Read... [17:17:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:17:43]Read from MH i2c: E2 [17:17:43]MH_I2C_Read... [17:17:43]Read from MH i2c: E2 03 00 [17:17:43]MH_I2C_Read... [17:17:43]Read from MH i2c: E2 03 00 8F 0D 00 90 00 10 [17:17:43]RAPDU: 90 00 [17:17:43]wFMCommunicate OK [17:17:43]SAM_PROTO_ClearQueue done [17:17:43]KKMCreateOFDPacket [17:17:43]OFDProtocolAddRootSTLVToBuf [17:17:43]FM_MakeSignedData [17:17:43]FM_MakeSignedData [17:17:43]SAM_PROTO_SignData [17:17:43]wFMCommunicate request_size=4 [17:17:43]MH_SAM_APDU [17:17:43]CAPDU: 80 0D 01 02 [17:17:43]Write to MH i2c: E2 08 00 90 0D 80 0D 01 02 00 00 00 00 16 [17:17:43]Write i2c OK [17:17:43]MH_I2C_Read... [17:17:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:17:43]Read from MH i2c: E2 [17:17:43]MH_I2C_Read... [17:17:43]Read from MH i2c: E2 03 00 [17:17:43]MH_I2C_Read... [17:17:43]Read from MH i2c: E2 03 00 90 0D 00 90 00 11 [17:17:43]RAPDU: 90 00 [17:17:43]wFMCommunicate OK [17:17:43]wFMCommunicate request_size=255 [17:17:43]MH_SAM_APDU [17:17:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 01 00 00 F4 03 04 00 38 3B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D5 78 03 00 35 04 06 00 E0 [17:17:43]Write to MH i2c: E2 02 01 91 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 01 00 00 F4 03 04 00 38 3B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D5 78 03 00 35 04 06 00 E0 00 00 D1 [17:17:43]Write i2c OK [17:17:43]MH_I2C_Read... [17:17:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:44]Read from MH i2c: E2 [17:17:44]MH_I2C_Read... [17:17:44]Read from MH i2c: E2 03 00 [17:17:44]MH_I2C_Read... [17:17:44]Read from MH i2c: E2 03 00 91 0D 00 90 00 12 [17:17:44]RAPDU: 90 00 [17:17:44]wFMCommunicate OK [17:17:44]wFMCommunicate request_size=10 [17:17:44]MH_SAM_APDU [17:17:44]CAPDU: 80 0D 02 02 05 45 03 17 A6 D2 [17:17:44]Write to MH i2c: E2 0D 00 92 0D 80 0D 02 02 05 00 45 03 17 A6 D2 00 00 FA [17:17:44]Write i2c OK [17:17:44]MH_I2C_Read... [17:17:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:44]Read from MH i2c: E2 [17:17:44]MH_I2C_Read... [17:17:44]Read from MH i2c: E2 03 00 [17:17:44]MH_I2C_Read... [17:17:44]Read from MH i2c: E2 03 00 92 0D 00 90 00 13 [17:17:44]RAPDU: 90 00 [17:17:44]wFMCommunicate OK [17:17:44]wFMCommunicate request_size=4 [17:17:44]MH_SAM_APDU [17:17:44]CAPDU: 80 0D 03 02 [17:17:44]Write to MH i2c: E2 08 00 93 0D 80 0D 03 02 00 00 00 00 1B [17:17:44]Write i2c OK [17:17:44]MH_I2C_Read... [17:17:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:17:44]Read from MH i2c: E2 [17:17:44]MH_I2C_Read... [17:17:44]Read from MH i2c: E2 0B 00 [17:17:44]MH_I2C_Read... [17:17:44]Read from MH i2c: E2 0B 00 93 0D 00 8E 23 9C 83 18 8C B4 DF 90 00 23 [17:17:44]RAPDU: 8E 23 9C 83 18 8C B4 DF 90 00 [17:17:44]wFMCommunicate OK [17:17:44]SAM_PROTO_SignData done [17:17:44]FM_MakeSignedData done [17:17:44]CreateOFDProtocolMessage [17:17:44]wFMCommunicate request_size=4 [17:17:44]MH_SAM_APDU [17:17:44]CAPDU: 80 11 00 00 [17:17:44]Write to MH i2c: E2 08 00 94 0D 80 11 00 00 00 00 00 00 1B [17:17:44]Write i2c OK [17:17:44]MH_I2C_Read... [17:17:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:44]Read from MH i2c: E2 [17:17:44]MH_I2C_Read... [17:17:44]Read from MH i2c: E2 17 00 [17:17:44]MH_I2C_Read... [17:17:44]Read from MH i2c: E2 17 00 94 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 72 [17:17:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:17:44]wFMCommunicate OK [17:17:44]CreateOFDProtocolMessage done [17:17:44]OFDSenderStorePacket 227541 [17:17:44]StoreOFDPacket docnum=227541 [17:17:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 26 79 07 01 5B 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 01 00 00 F4 03 04 00 38 3B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D5 78 03 00 35 04 06 00 E0 45 03 17 A6 D2 8E 23 9C 83 18 8C B4 DF [17:17:44]CheckFolder [17:17:44]dirname=/storage/ofd_packets [17:17:44]CheckFolder done [17:17:44]ProducePacketName [17:17:44]name=ofd_packets/00227541 [17:17:44]NVStorageSaveData ofd_packets/00227541 [17:17:44]File name is /storage/ofd_packets/00227541 [17:17:44]Write 301 bytes [17:17:44]NVStorageSaveData done [17:17:44]OFDSenderStorePacket done [17:17:44]KKMCreateOFDPacket done [17:17:44]NVStorageSaveData kkm_last_timestamp [17:17:44]File name is /storage/kkm_last_timestamp [17:17:44]Write 4 bytes [17:17:44]NVStorageSaveData done [17:17:44]ExternCall_PrintAddStr [17:17:44]wPrintStart [17:17:44]Write to MH i2c: 01 00 00 95 0D A2 [17:17:44]Write i2c OK [17:17:44]MH_I2C_Read... [17:17:44]Read from MH i2c: 01 [17:17:44]MH_I2C_Read... [17:17:44]Read from MH i2c: 01 07 00 [17:17:44]MH_I2C_Read... [17:17:44]Read from MH i2c: 01 07 00 95 0D 00 00 00 00 00 FF 0F B7 [17:17:44]RasterBufferAndPrint [17:17:44]line Счет N : (1)1963173 [17:17:44]line ИНН: 02508201610067 [17:17:44]line Контрольно-Кассовый Чек [17:17:44]line ПРОДАЖА [17:17:44]line ТРК (МРК, ГНК) : 43 [17:17:44]line Товар: 2710124130 [17:17:44]line Аи-92-К-5 [17:17:44]line 4.940 * 66.90 [17:17:44]line = 330.49 [17:17:44]line НДС 12% НСП 1% [17:17:44]line > о реализуемом товаре [17:17:44]line ОКРУГЛЕНИЕ: -0.49 [17:17:44]line ИТОГО: 330.00 [17:17:44]line Внесено: 330.00 [17:17:44]line СДАЧА: 0.00 [17:17:44]line НСП 1% : 2.92 [17:17:44]line НДС 12% : 35.10 [17:17:44]line Наличными: 330.00 [17:17:44]line Безнал.: 0.00 [17:17:44]line Место: АЗС № 133 "Партнер Нефть" [17:17:44]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:17:44]line СНО: Общий режим [17:17:44]line Чек 389 20.10.2024 17:17 [17:17:44]line Смена: 533 ФФД: 1.0 [17:17:44]line ЗНМ: 0300000091 [17:17:44]line РНМ: 0000000000091685 [17:17:44]line Версия ККМ: 001 [17:17:44]line ФМ: 0000000000871839 [17:17:44]line ФД: 227541 [17:17:44]line ФПД: 246587009246930 [17:17:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171744&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227541&fm=246587009246930&tin=02508201610067®Number=0000000000091685&sum=33000 [17:17:44]written 0, free lines is 4095 [17:17:44]OFD Sender: Processing packet 227541 [packets to send 38, broken 37] [17:17:44]ProducePacketName [17:17:44]name=ofd_packets/00227541 [17:17:44]OFD Sender: To server: pG, [17:17:44]CommunicateWithHost lk.salyk.kg:30040 [17:17:44]ConnectInit lk.salyk.kg [17:17:44]Connected sock=10 [17:17: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 33 39 0F 01 00 00 26 79 07 01 5B 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 01 00 00 F4 03 04 00 38 3B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D5 78 03 00 35 04 06 00 E0 45 03 17 A6 D2 8E 23 9C 83 18 8C B4 DF [17:17: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 33 39 4F 00 00 00 A7 D3 47 00 E3 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 33 39 10 04 04 00 D5 78 03 00 F4 03 04 00 36 E6 14 67 B6 04 01 00 00 B0 E9 10 F9 BA 4B 29 2D [17:17:45]CommunicateWithHost err = 0 [17:17:45]CheckOFDResponse [17:17:45]1017 (14) - 77093643461234 [17:17:45]1041 (16) - 0000000000871839 [17:17:45]1040 (4) - 227541 [17:17:45]1012 (4) - 20.10.2024 11:15 [17:17:45]1206 (1) - 0 [17:17:45]OFD Sender: Remove packet 227541 [17:17:45]ProducePacketName [17:17:45]name=ofd_packets/00227541 [17:17:45]NVStorageDeleteData [17:17:45]Write to MH i2c: 01 00 00 BF 0D CC [17:17:45]Write i2c OK [17:17:45]MH_I2C_Read... [17:17:45]Read from MH i2c: 01 [17:17:45]MH_I2C_Read... [17:17:45]Read from MH i2c: 01 07 00 [17:17:45]MH_I2C_Read... [17:17:45]Read from MH i2c: 01 07 00 BF 0D 00 00 00 00 00 FE 0C DD [17:17:45]RasterBufferAndPrint [17:17:45]line [17:17:45]line [17:17:45]line [17:17:45]line [17:17:45]line [17:17:45]written 0, free lines is 3335 [17:17:45]process_action close_receipt done [17:17:45]requested_data is exist [17:17:45]produce_requested_data [17:17:45]requested_item fm.sn is exist - process it [17:17:45]wFMCommunicate request_size=4 [17:17:45]MH_SAM_APDU [17:17:45]CAPDU: 80 11 00 00 [17:17:45]Write to MH i2c: E2 08 00 C6 0D 80 11 00 00 00 00 00 00 4D [17:17:45]Write i2c OK [17:17:45]MH_I2C_Read... [17:17:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:45]Read from MH i2c: E2 [17:17:45]MH_I2C_Read... [17:17:45]Read from MH i2c: E2 17 00 [17:17:45]MH_I2C_Read... [17:17:45]Read from MH i2c: E2 17 00 C6 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A4 [17:17:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:17:45]wFMCommunicate OK [17:17:45]requested_item fd.num is exist - process it [17:17:45]SAM_PROTO_GetFieldsCounters [17:17:45]wFMCommunicate request_size=4 [17:17:45]MH_SAM_APDU [17:17:45]CAPDU: 80 13 00 00 [17:17:45]Write to MH i2c: E2 08 00 C7 0D 80 13 00 00 00 00 00 00 50 [17:17:45]Write i2c OK [17:17:45]MH_I2C_Read... [17:17:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:17:45]Read from MH i2c: E2 [17:17:45]MH_I2C_Read... [17:17:45]Read from MH i2c: E2 62 00 [17:17:45]MH_I2C_Read... [17:17:45]Read from MH i2c: E2 62 00 C7 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 D5 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 85 01 00 00 5E 04 04 00 85 01 00 00 57 04 04 00 86 01 00 00 19 04 04 00 00 00 00 00 90 00 72 [17:17: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 D5 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 85 01 00 00 5E 04 04 00 85 01 00 00 57 04 04 00 86 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:17:45]wFMCommunicate OK [17:17:45]SAM_PROTO_GetFieldsCounters done [17:17:45]requested_item shift.num is exist - process it [17:17:45]requested_item shift.opened is exist - process it [17:17:45]req_shift_opened [17:17:45]FM_GetShiftState [17:17:45]SAM_PROTO_GetShiftState [17:17:45]wFMCommunicate request_size=4 [17:17:45]MH_SAM_APDU [17:17:45]CAPDU: 80 13 01 00 [17:17:45]Write to MH i2c: E2 08 00 C8 0D 80 13 01 00 00 00 00 00 52 [17:17:45]Write i2c OK [17:17:45]MH_I2C_Read... [17:17:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:45]Read from MH i2c: E2 [17:17:45]MH_I2C_Read... [17:17:45]Read from MH i2c: E2 0E 00 [17:17:45]MH_I2C_Read... [17:17:45]Read from MH i2c: E2 0E 00 C8 0D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 6C [17:17:45]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:17:45]wFMCommunicate OK [17:17:45]SAM_PROTO_GetShiftState done [17:17:45]FM_GetShiftState done [17:17:45]req_shift_opened done [17:17:45]requested_item shift.open_date is exist - process it [17:17:45]req_shift_open_date [17:17:45]req_shift_open_date done [17:17:45]produce_requested_data done [17:17:45]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227541,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [17:17:45]process_action_free close_receipt [17:17:45]json_value_free [17:17:45]json_value_free done [17:17:45]process_json_proto returns [17:17:45]Send response to host [17:17:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227541,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [17:17:45]free response buf [17:17:45]execute_script done [17:17:45]execute_script returns [17:17:45]free content buf [17:17:45]Sock 7.Close socket [17:17:45]Sock 7.Thread stoped [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:26]accept exits with 9 [17:18:26]New connection [17:18:26]New thread 3067219300 created [17:18:26]Thread 3067362660 joined [17:18:26]Waiting for new connection... [17:18:26] Sock 9.Parse request [17:18:26]Sock 9.Check first char [17:18:26]Sock 9.First char is OK [17:18:26]request: POST /json_proto HTTP/1.0 [17:18:26]Method: POST [17:18:26]URL: /json_proto [17:18:26]Method is POST - this is cgi request [17:18:26]url: /json_proto [17:18:26]query_string will be loaded in cgi processing [17:18:26]execute_cgi json_proto POST (null) [17:18:26]execute_cgi path=json_proto method=POST [17:18:26]POST find Content-Length [17:18:26]Host: 172.17.44.195:8080 [17:18:26]Content-Length: 664 [17:18:26]Content-Type: application/json [17:18:26] [17:18:26]POST finish read [17:18:26]Found Content-Length = 664 [17:18:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963174", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:18:26]execute_script... [17:18: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)1963174", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:18:26]POST & json_proto [17:18:26]process_json_proto [17:18:26]json parsed OK: [17:18:26]protocol is kg_v1.0 [17:18:26]action value=close_receipt [17:18:26]process_action close_receipt [17:18:26]cmd_close_receipt [17:18:26]MH_GetDate [17:18:26]Write to MH i2c: F0 00 00 C9 0D C5 [17:18:26]Write i2c OK [17:18:26]MH_I2C_Read... [17:18:26]Read from MH i2c: F0 [17:18:26]MH_I2C_Read... [17:18:26]Read from MH i2c: F0 09 00 [17:18:26]MH_I2C_Read... [17:18:26]Read from MH i2c: F0 09 00 C9 0D 00 63 3B 15 67 82 C9 CF 66 68 [17:18:26]GetLastDocTimeStamp 1729444664 [17:18:26]current date 1729444707 [17:18:26]FM_GetShiftState [17:18:26]SAM_PROTO_GetShiftState [17:18:26]wFMCommunicate request_size=4 [17:18:26]MH_SAM_APDU [17:18:26]CAPDU: 80 13 01 00 [17:18:26]Write to MH i2c: E2 08 00 CA 0D 80 13 01 00 00 00 00 00 54 [17:18:26]Write i2c OK [17:18:26]MH_I2C_Read... [17:18:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:18:26]Read from MH i2c: E2 [17:18:26]MH_I2C_Read... [17:18:26]Read from MH i2c: E2 0E 00 [17:18:26]MH_I2C_Read... [17:18:26]Read from MH i2c: E2 0E 00 CA 0D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 6E [17:18:26]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:18:26]wFMCommunicate OK [17:18:26]SAM_PROTO_GetShiftState done [17:18:26]FM_GetShiftState done [17:18:26]opened in 1729383750 [17:18:26]opened+sec_in_day 1729470150 [17:18:26]quantity*price = 100000 [17:18:26]sum+1 = 100002 [17:18:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 390 20.10.2024 17:18 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227542 ФПД: 204504204061316 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171828&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227542&fm=204504204061316&tin=02508201610067®Number=0000000000091685&sum=100000 [17:18:27]StoreToDocumentArchive [17:18:27]shift 533 fd 227542 [17:18:27]save to /storage/0533/doc_00227542 [17:18:27]save last doc name /storage/0533/doc_00227542 to /storage/kkm_last_doc_name [17:18:27]save OK [17:18:27]Clear old archive folders... [17:18:27]ProcessDocumentItem done err = 0, tmpTLVsize=244 [17:18:27]tlvbuf is 00D9CEF0 [17:18:27]SAM_PROTO_ClearQueue [17:18:27]wFMCommunicate request_size=4 [17:18:27]MH_SAM_APDU [17:18:27]CAPDU: 80 09 00 00 [17:18:27]Write to MH i2c: E2 08 00 D7 0D 80 09 00 00 00 00 00 00 56 [17:18:27]Write i2c OK [17:18:27]MH_I2C_Read... [17:18:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:18:27]Read from MH i2c: E2 [17:18:27]MH_I2C_Read... [17:18:27]Read from MH i2c: E2 03 00 [17:18:27]MH_I2C_Read... [17:18:27]Read from MH i2c: E2 03 00 D7 0D 00 90 00 58 [17:18:27]RAPDU: 90 00 [17:18:27]wFMCommunicate OK [17:18:27]SAM_PROTO_ClearQueue done [17:18:27]KKMCreateOFDPacket [17:18:27]OFDProtocolAddRootSTLVToBuf [17:18:27]FM_MakeSignedData [17:18:27]FM_MakeSignedData [17:18:27]SAM_PROTO_SignData [17:18:27]wFMCommunicate request_size=4 [17:18:27]MH_SAM_APDU [17:18:27]CAPDU: 80 0D 01 02 [17:18:27]Write to MH i2c: E2 08 00 D8 0D 80 0D 01 02 00 00 00 00 5E [17:18:27]Write i2c OK [17:18:27]MH_I2C_Read... [17:18:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:18:27]Read from MH i2c: E2 [17:18:27]MH_I2C_Read... [17:18:27]Read from MH i2c: E2 03 00 [17:18:27]MH_I2C_Read... [17:18:27]Read from MH i2c: E2 03 00 D8 0D 00 90 00 59 [17:18:27]RAPDU: 90 00 [17:18:27]wFMCommunicate OK [17:18:27]wFMCommunicate request_size=253 [17:18:27]MH_SAM_APDU [17:18:27]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 01 00 00 F4 03 04 00 64 3B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D6 78 03 00 35 04 06 00 B9 FE D8 70 2A 84 [17:18:27]Write to MH i2c: E2 00 01 D9 0D 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 01 00 00 F4 03 04 00 64 3B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D6 78 03 00 35 04 06 00 B9 FE D8 70 2A 84 00 00 8F [17:18:27]Write i2c OK [17:18:27]MH_I2C_Read... [17:18:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:18:28]Read from MH i2c: E2 [17:18:28]MH_I2C_Read... [17:18:28]Read from MH i2c: E2 03 00 [17:18:28]MH_I2C_Read... [17:18:28]Read from MH i2c: E2 03 00 D9 0D 00 90 00 5A [17:18:28]RAPDU: 90 00 [17:18:28]wFMCommunicate OK [17:18:28]wFMCommunicate request_size=4 [17:18:28]MH_SAM_APDU [17:18:28]CAPDU: 80 0D 03 02 [17:18:28]Write to MH i2c: E2 08 00 DA 0D 80 0D 03 02 00 00 00 00 62 [17:18:28]Write i2c OK [17:18:28]MH_I2C_Read... [17:18:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:18:28]Read from MH i2c: E2 [17:18:28]MH_I2C_Read... [17:18:28]Read from MH i2c: E2 0B 00 [17:18:28]MH_I2C_Read... [17:18:28]Read from MH i2c: E2 0B 00 DA 0D 00 8E 15 7E AE B3 52 7F E6 90 00 9C [17:18:28]RAPDU: 8E 15 7E AE B3 52 7F E6 90 00 [17:18:28]wFMCommunicate OK [17:18:28]SAM_PROTO_SignData done [17:18:28]FM_MakeSignedData done [17:18:28]CreateOFDProtocolMessage [17:18:28]wFMCommunicate request_size=4 [17:18:28]MH_SAM_APDU [17:18:28]CAPDU: 80 11 00 00 [17:18:28]Write to MH i2c: E2 08 00 DB 0D 80 11 00 00 00 00 00 00 62 [17:18:28]Write i2c OK [17:18:28]MH_I2C_Read... [17:18:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:18:28]Read from MH i2c: E2 [17:18:28]MH_I2C_Read... [17:18:28]Read from MH i2c: E2 17 00 [17:18:28]MH_I2C_Read... [17:18:28]Read from MH i2c: E2 17 00 DB 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B9 [17:18:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:18:28]wFMCommunicate OK [17:18:28]CreateOFDProtocolMessage done [17:18:28]OFDSenderStorePacket 227542 [17:18:28]StoreOFDPacket docnum=227542 [17:18:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 BE 76 00 01 15 D3 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 01 00 00 F4 03 04 00 64 3B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D6 78 03 00 35 04 06 00 B9 FE D8 70 2A 84 8E 15 7E AE B3 52 7F E6 [17:18:28]CheckFolder [17:18:28]dirname=/storage/ofd_packets [17:18:28]CheckFolder done [17:18:28]ProducePacketName [17:18:28]name=ofd_packets/00227542 [17:18:28]NVStorageSaveData ofd_packets/00227542 [17:18:28]File name is /storage/ofd_packets/00227542 [17:18:28]Write 294 bytes [17:18:28]NVStorageSaveData done [17:18:28]OFDSenderStorePacket done [17:18:28]KKMCreateOFDPacket done [17:18:28]NVStorageSaveData kkm_last_timestamp [17:18:28]File name is /storage/kkm_last_timestamp [17:18:28]Write 4 bytes [17:18:28]NVStorageSaveData done [17:18:28]ExternCall_PrintAddStr [17:18:28]wPrintStart [17:18:28]Write to MH i2c: 01 00 00 DC 0D E9 [17:18:28]Write i2c OK [17:18:28]MH_I2C_Read... [17:18:28]Read from MH i2c: 01 [17:18:28]MH_I2C_Read... [17:18:28]Read from MH i2c: 01 07 00 [17:18:28]MH_I2C_Read... [17:18:28]Read from MH i2c: 01 07 00 DC 0D 00 00 00 00 00 FF 0F FE [17:18:28]RasterBufferAndPrint [17:18:28]line Счет N : (1)1963174 [17:18:28]line ИНН: 02508201610067 [17:18:28]line Контрольно-Кассовый Чек [17:18:28]line ПРОДАЖА [17:18:28]line ТРК (МРК, ГНК) : 62 [17:18:28]line Товар: 2710124130 [17:18:28]line SU-92 [17:18:28]line 14.620 * 68.40 [17:18:28]line = 1000.01 [17:18:28]line НДС 12% НСП 1% [17:18:28]line > о реализуемом товаре [17:18:28]line ОКРУГЛЕНИЕ: -0.01 [17:18:28]line ИТОГО: 1000.00 [17:18:28]line Внесено: 1000.00 [17:18:28]line СДАЧА: 0.00 [17:18:28]line НСП 1% : 8.85 [17:18:28]line НДС 12% : 106.20 [17:18:28]line Наличными: 1000.00 [17:18:28]line Безнал.: 0.00 [17:18:28]line Место: АЗС № 133 "Партнер Нефть" [17:18:28]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:18:28]line СНО: Общий режим [17:18:28]line Чек 390 20.10.2024 17:18 [17:18:28]line Смена: 533 ФФД: 1.0 [17:18:28]line ЗНМ: 0300000091 [17:18:28]line РНМ: 0000000000091685 [17:18:28]line Версия ККМ: 001 [17:18:28]line ФМ: 0000000000871839 [17:18:28]line ФД: 227542 [17:18:28]line ФПД: 204504204061316 [17:18:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171828&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227542&fm=204504204061316&tin=02508201610067®Number=0000000000091685&sum=100000 [17:18:28]OFD Sender: Processing packet 227542 [packets to send 38, broken 37] [17:18:28]ProducePacketName [17:18:28]name=ofd_packets/00227542 [17:18:28]OFD Sender: To server: pG, [17:18:28]CommunicateWithHost lk.salyk.kg:30040 [17:18:28]ConnectInit lk.salyk.kg [17:18:28]written 0, free lines is 4095 [17:18:28]Connected sock=10 [17:18: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 33 39 08 01 00 00 BE 76 00 01 15 D3 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 01 00 00 F4 03 04 00 64 3B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D6 78 03 00 35 04 06 00 B9 FE D8 70 2A 84 8E 15 7E AE B3 52 7F E6 [17:18: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 33 39 4F 00 00 00 4F 92 47 00 AA DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D6 78 03 00 F4 03 04 00 62 E6 14 67 B6 04 01 00 00 F2 F2 64 F6 13 42 38 8B [17:18:28]CommunicateWithHost err = 0 [17:18:28]CheckOFDResponse [17:18:28]1017 (14) - 77093643461234 [17:18:28]1041 (16) - 0000000000871839 [17:18:28]1040 (4) - 227542 [17:18:28]1012 (4) - 20.10.2024 11:15 [17:18:28]1206 (1) - 0 [17:18:28]OFD Sender: Remove packet 227542 [17:18:28]ProducePacketName [17:18:28]name=ofd_packets/00227542 [17:18:28]NVStorageDeleteData [17:18:28]Write to MH i2c: 01 00 00 06 0E 14 [17:18:28]Write i2c OK [17:18:28]MH_I2C_Read... [17:18:28]Read from MH i2c: 01 [17:18:28]MH_I2C_Read... [17:18:28]Read from MH i2c: 01 07 00 [17:18:28]MH_I2C_Read... [17:18:28]Read from MH i2c: 01 07 00 06 0E 00 00 00 00 00 FB 0C 22 [17:18:28]RasterBufferAndPrint [17:18:28]line [17:18:28]line [17:18:28]line [17:18:28]line [17:18:28]line [17:18:28]written 0, free lines is 3332 [17:18:28]process_action close_receipt done [17:18:28]requested_data is exist [17:18:28]produce_requested_data [17:18:28]requested_item fm.sn is exist - process it [17:18:28]wFMCommunicate request_size=4 [17:18:28]MH_SAM_APDU [17:18:29]CAPDU: 80 11 00 00 [17:18:29]Write to MH i2c: E2 08 00 0D 0E 80 11 00 00 00 00 00 00 95 [17:18:29]Write i2c OK [17:18:29]MH_I2C_Read... [17:18:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:18:29]Read from MH i2c: E2 [17:18:29]MH_I2C_Read... [17:18:29]Read from MH i2c: E2 17 00 [17:18:29]MH_I2C_Read... [17:18:29]Read from MH i2c: E2 17 00 0D 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 EC [17:18:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:18:29]wFMCommunicate OK [17:18:29]requested_item fd.num is exist - process it [17:18:29]SAM_PROTO_GetFieldsCounters [17:18:29]wFMCommunicate request_size=4 [17:18:29]MH_SAM_APDU [17:18:29]CAPDU: 80 13 00 00 [17:18:29]Write to MH i2c: E2 08 00 0E 0E 80 13 00 00 00 00 00 00 98 [17:18:29]Write i2c OK [17:18:29]MH_I2C_Read... [17:18:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:18:29]Read from MH i2c: E2 [17:18:29]MH_I2C_Read... [17:18:29]Read from MH i2c: E2 62 00 [17:18:29]MH_I2C_Read... [17:18:29]Read from MH i2c: E2 62 00 0E 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 D6 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 86 01 00 00 5E 04 04 00 86 01 00 00 57 04 04 00 87 01 00 00 19 04 04 00 00 00 00 00 90 00 BE [17:18: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 D6 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 86 01 00 00 5E 04 04 00 86 01 00 00 57 04 04 00 87 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:18:29]wFMCommunicate OK [17:18:29]SAM_PROTO_GetFieldsCounters done [17:18:29]requested_item shift.num is exist - process it [17:18:29]requested_item shift.opened is exist - process it [17:18:29]req_shift_opened [17:18:29]FM_GetShiftState [17:18:29]SAM_PROTO_GetShiftState [17:18:29]wFMCommunicate request_size=4 [17:18:29]MH_SAM_APDU [17:18:29]CAPDU: 80 13 01 00 [17:18:29]Write to MH i2c: E2 08 00 0F 0E 80 13 01 00 00 00 00 00 9A [17:18:29]Write i2c OK [17:18:29]MH_I2C_Read... [17:18:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:18:29]Read from MH i2c: E2 [17:18:29]MH_I2C_Read... [17:18:29]Read from MH i2c: E2 0E 00 [17:18:29]MH_I2C_Read... [17:18:29]Read from MH i2c: E2 0E 00 0F 0E 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 B4 [17:18:29]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:18:29]wFMCommunicate OK [17:18:29]SAM_PROTO_GetShiftState done [17:18:29]FM_GetShiftState done [17:18:29]req_shift_opened done [17:18:29]requested_item shift.open_date is exist - process it [17:18:29]req_shift_open_date [17:18:29]req_shift_open_date done [17:18:29]produce_requested_data done [17:18:29]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227542,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [17:18:29]process_action_free close_receipt [17:18:29]json_value_free [17:18:29]json_value_free done [17:18:29]process_json_proto returns [17:18:29]Send response to host [17:18:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227542,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [17:18:29]free response buf [17:18:29]execute_script done [17:18:29]execute_script returns [17:18:29]free content buf [17:18:29]Sock 9.Close socket [17:18:29]Sock 9.Thread stoped [17:18:29]OFD Sender: No OFD packet to send [17:18:29]accept exits with 7 [17:18:29]New connection [17:18:29]New thread 3067362660 created [17:18:29]Thread 3067219300 joined [17:18:29]Waiting for new connection... [17:18:29] Sock 7.Parse request [17:18:29]Sock 7.Check first char [17:18:29]Sock 7.First char is OK [17:18:29]request: POST /json_proto HTTP/1.0 [17:18:29]Method: POST [17:18:29]URL: /json_proto [17:18:29]Method is POST - this is cgi request [17:18:29]url: /json_proto [17:18:29]query_string will be loaded in cgi processing [17:18:29]execute_cgi json_proto POST (null) [17:18:29]execute_cgi path=json_proto method=POST [17:18:29]POST find Content-Length [17:18:29]Host: 172.17.44.195:8080 [17:18:29]Content-Length: 621 [17:18:29]Content-Type: application/json [17:18:29] [17:18:29]POST finish read [17:18:29]Found Content-Length = 621 [17:18:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963175", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:18:29]execute_script... [17:18: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)1963175", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:18:29]POST & json_proto [17:18:29]process_json_proto [17:18:29]json parsed OK: [17:18:29]protocol is kg_v1.0 [17:18:29]action value=close_receipt [17:18:29]process_action close_receipt [17:18:29]cmd_close_receipt [17:18:29]MH_GetDate [17:18:29]Write to MH i2c: F0 00 00 10 0E 0D [17:18:29]Write i2c OK [17:18:29]MH_I2C_Read... [17:18:29]Read from MH i2c: F0 [17:18:29]MH_I2C_Read... [17:18:29]Read from MH i2c: F0 09 00 [17:18:29]MH_I2C_Read... [17:18:29]Read from MH i2c: F0 09 00 10 0E 00 67 3B 15 67 82 C9 CF 66 B4 [17:18:29]GetLastDocTimeStamp 1729444708 [17:18:29]current date 1729444711 [17:18:29]FM_GetShiftState [17:18:29]SAM_PROTO_GetShiftState [17:18:29]wFMCommunicate request_size=4 [17:18:29]MH_SAM_APDU [17:18:29]CAPDU: 80 13 01 00 [17:18:29]Write to MH i2c: E2 08 00 11 0E 80 13 01 00 00 00 00 00 9C [17:18:29]Write i2c OK [17:18:29]MH_I2C_Read... [17:18:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:18:29]Read from MH i2c: E2 [17:18:29]MH_I2C_Read... [17:18:29]Read from MH i2c: E2 0E 00 [17:18:29]MH_I2C_Read... [17:18:29]Read from MH i2c: E2 0E 00 11 0E 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 B6 [17:18:29]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:18:29]wFMCommunicate OK [17:18:29]SAM_PROTO_GetShiftState done [17:18:29]FM_GetShiftState done [17:18:29]opened in 1729383750 [17:18:29]opened+sec_in_day 1729470150 [17:18:29]quantity*price = 50000 [17:18:29]sum+1 = 50001 [17:18:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 391 20.10.2024 17:18 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227543 ФПД: 218338383437577 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171831&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227543&fm=218338383437577&tin=02508201610067®Number=0000000000091685&sum=50000 [17:18:31]StoreToDocumentArchive [17:18:31]shift 533 fd 227543 [17:18:31]save to /storage/0533/doc_00227543 [17:18:31]save last doc name /storage/0533/doc_00227543 to /storage/kkm_last_doc_name [17:18:31]save OK [17:18:31]Clear old archive folders... [17:18:31]ProcessDocumentItem done err = 0, tmpTLVsize=244 [17:18:31]tlvbuf is 00DC85C0 [17:18:31]SAM_PROTO_ClearQueue [17:18:31]wFMCommunicate request_size=4 [17:18:31]MH_SAM_APDU [17:18:31]CAPDU: 80 09 00 00 [17:18:31]Write to MH i2c: E2 08 00 1E 0E 80 09 00 00 00 00 00 00 9E [17:18:31]Write i2c OK [17:18:31]MH_I2C_Read... [17:18:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:18:31]Read from MH i2c: E2 [17:18:31]MH_I2C_Read... [17:18:31]Read from MH i2c: E2 03 00 [17:18:31]MH_I2C_Read... [17:18:31]Read from MH i2c: E2 03 00 1E 0E 00 90 00 A0 [17:18:31]RAPDU: 90 00 [17:18:31]wFMCommunicate OK [17:18:31]SAM_PROTO_ClearQueue done [17:18:31]KKMCreateOFDPacket [17:18:31]OFDProtocolAddRootSTLVToBuf [17:18:31]FM_MakeSignedData [17:18:31]FM_MakeSignedData [17:18:31]SAM_PROTO_SignData [17:18:31]wFMCommunicate request_size=4 [17:18:31]MH_SAM_APDU [17:18:31]CAPDU: 80 0D 01 02 [17:18:31]Write to MH i2c: E2 08 00 1F 0E 80 0D 01 02 00 00 00 00 A6 [17:18:31]Write i2c OK [17:18:31]MH_I2C_Read... [17:18:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:18:31]Read from MH i2c: E2 [17:18:31]MH_I2C_Read... [17:18:31]Read from MH i2c: E2 03 00 [17:18:31]MH_I2C_Read... [17:18:31]Read from MH i2c: E2 03 00 1F 0E 00 90 00 A1 [17:18:31]RAPDU: 90 00 [17:18:31]wFMCommunicate OK [17:18:31]wFMCommunicate request_size=253 [17:18:31]MH_SAM_APDU [17:18:31]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 01 00 00 F4 03 04 00 67 3B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D7 78 03 00 35 04 06 00 C6 93 DD C9 1F 09 [17:18:31]Write to MH i2c: E2 00 01 20 0E 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 01 00 00 F4 03 04 00 67 3B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D7 78 03 00 35 04 06 00 C6 93 DD C9 1F 09 00 00 DE [17:18:31]Write i2c OK [17:18:31]MH_I2C_Read... [17:18:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:18:31]Read from MH i2c: E2 [17:18:31]MH_I2C_Read... [17:18:31]Read from MH i2c: E2 03 00 [17:18:31]MH_I2C_Read... [17:18:31]Read from MH i2c: E2 03 00 20 0E 00 90 00 A2 [17:18:31]RAPDU: 90 00 [17:18:31]wFMCommunicate OK [17:18:31]wFMCommunicate request_size=4 [17:18:31]MH_SAM_APDU [17:18:31]CAPDU: 80 0D 03 02 [17:18:31]Write to MH i2c: E2 08 00 21 0E 80 0D 03 02 00 00 00 00 AA [17:18:31]Write i2c OK [17:18:31]MH_I2C_Read... [17:18:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:18:31]Read from MH i2c: E2 [17:18:31]MH_I2C_Read... [17:18:31]Read from MH i2c: E2 0B 00 [17:18:31]MH_I2C_Read... [17:18:31]Read from MH i2c: E2 0B 00 21 0E 00 FB CA 16 76 AB 24 54 77 90 00 96 [17:18:31]RAPDU: FB CA 16 76 AB 24 54 77 90 00 [17:18:31]wFMCommunicate OK [17:18:31]SAM_PROTO_SignData done [17:18:31]FM_MakeSignedData done [17:18:31]CreateOFDProtocolMessage [17:18:31]wFMCommunicate request_size=4 [17:18:31]MH_SAM_APDU [17:18:31]CAPDU: 80 11 00 00 [17:18:31]Write to MH i2c: E2 08 00 22 0E 80 11 00 00 00 00 00 00 AA [17:18:31]Write i2c OK [17:18:31]MH_I2C_Read... [17:18:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:18:31]Read from MH i2c: E2 [17:18:31]MH_I2C_Read... [17:18:31]Read from MH i2c: E2 17 00 [17:18:31]MH_I2C_Read... [17:18:31]Read from MH i2c: E2 17 00 22 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 01 [17:18:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:18:31]wFMCommunicate OK [17:18:31]CreateOFDProtocolMessage done [17:18:31]OFDSenderStorePacket 227543 [17:18:31]StoreOFDPacket docnum=227543 [17:18:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 39 6E 00 01 2B 63 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 01 00 00 F4 03 04 00 67 3B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D7 78 03 00 35 04 06 00 C6 93 DD C9 1F 09 FB CA 16 76 AB 24 54 77 [17:18:31]CheckFolder [17:18:31]dirname=/storage/ofd_packets [17:18:31]CheckFolder done [17:18:31]ProducePacketName [17:18:31]name=ofd_packets/00227543 [17:18:31]NVStorageSaveData ofd_packets/00227543 [17:18:31]File name is /storage/ofd_packets/00227543 [17:18:31]Write 294 bytes [17:18:31]NVStorageSaveData done [17:18:31]OFDSenderStorePacket done [17:18:31]KKMCreateOFDPacket done [17:18:31]NVStorageSaveData kkm_last_timestamp [17:18:31]File name is /storage/kkm_last_timestamp [17:18:31]Write 4 bytes [17:18:31]NVStorageSaveData done [17:18:31]ExternCall_PrintAddStr [17:18:31]wPrintStart [17:18:31]Write to MH i2c: 01 00 00 23 0E 31 [17:18:31]Write i2c OK [17:18:31]MH_I2C_Read... [17:18:31]Read from MH i2c: 01 [17:18:31]MH_I2C_Read... [17:18:31]Read from MH i2c: 01 07 00 [17:18:31]MH_I2C_Read... [17:18:31]Read from MH i2c: 01 07 00 23 0E 00 00 00 00 00 FF 0F 46 [17:18:31]RasterBufferAndPrint [17:18:31]line Счет N : (1)1963175 [17:18:31]line ИНН: 02508201610067 [17:18:31]line Контрольно-Кассовый Чек [17:18:31]line ПРОДАЖА [17:18:31]line ТРК (МРК, ГНК) : 52 [17:18:31]line Товар: 2710124130 [17:18:31]line SU-92 [17:18:31]line 7.310 * 68.40 [17:18:31]line = 500.00 [17:18:31]line НДС 12% НСП 1% [17:18:31]line > о реализуемом товаре [17:18:31]line ИТОГО: 500.00 [17:18:31]line НСП 1% : 4.42 [17:18:31]line НДС 12% : 53.10 [17:18:31]line Наличными: 500.00 [17:18:31]line Безнал.: 0.00 [17:18:31]line Место: АЗС № 133 "Партнер Нефть" [17:18:31]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:18:31]line СНО: Общий режим [17:18:31]line Чек 391 20.10.2024 17:18 [17:18:31]line Смена: 533 ФФД: 1.0 [17:18:31]line ЗНМ: 0300000091 [17:18:31]line РНМ: 0000000000091685 [17:18:31]line Версия ККМ: 001 [17:18:31]line ФМ: 0000000000871839 [17:18:31]line ФД: 227543 [17:18:31]line ФПД: 218338383437577 [17:18:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171831&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227543&fm=218338383437577&tin=02508201610067®Number=0000000000091685&sum=50000 [17:18:32]OFD Sender: Processing packet 227543 [packets to send 38, broken 37] [17:18:32]ProducePacketName [17:18:32]name=ofd_packets/00227543 [17:18:32]OFD Sender: To server: pG, [17:18:32]CommunicateWithHost lk.salyk.kg:30040 [17:18:32]ConnectInit lk.salyk.kg [17:18:32]written 0, free lines is 4095 [17:18:32]Connected sock=10 [17:18: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 33 39 08 01 00 00 39 6E 00 01 2B 63 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 01 00 00 F4 03 04 00 67 3B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D7 78 03 00 35 04 06 00 C6 93 DD C9 1F 09 FB CA 16 76 AB 24 54 77 [17:18: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 33 39 4F 00 00 00 2C D0 47 00 A7 F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D7 78 03 00 F4 03 04 00 65 E6 14 67 B6 04 01 00 00 AD 5D F3 0C F9 73 BA 61 [17:18:32]CommunicateWithHost err = 0 [17:18:32]CheckOFDResponse [17:18:32]1017 (14) - 77093643461234 [17:18:32]1041 (16) - 0000000000871839 [17:18:32]1040 (4) - 227543 [17:18:32]1012 (4) - 20.10.2024 11:15 [17:18:32]1206 (1) - 0 [17:18:32]OFD Sender: Remove packet 227543 [17:18:32]ProducePacketName [17:18:32]name=ofd_packets/00227543 [17:18:32]NVStorageDeleteData [17:18:32]Write to MH i2c: 01 00 00 4A 0E 58 [17:18:32]Write i2c OK [17:18:32]MH_I2C_Read... [17:18:32]Read from MH i2c: 01 [17:18:32]MH_I2C_Read... [17:18:32]Read from MH i2c: 01 07 00 [17:18:32]MH_I2C_Read... [17:18:32]Read from MH i2c: 01 07 00 4A 0E 00 00 00 00 00 40 0D AC [17:18:32]RasterBufferAndPrint [17:18:32]line [17:18:32]line [17:18:32]line [17:18:32]line [17:18:32]line [17:18:32]written 0, free lines is 3404 [17:18:32]process_action close_receipt done [17:18:32]requested_data is exist [17:18:32]produce_requested_data [17:18:32]requested_item fm.sn is exist - process it [17:18:32]wFMCommunicate request_size=4 [17:18:32]MH_SAM_APDU [17:18:32]CAPDU: 80 11 00 00 [17:18:32]Write to MH i2c: E2 08 00 51 0E 80 11 00 00 00 00 00 00 D9 [17:18:32]Write i2c OK [17:18:32]MH_I2C_Read... [17:18:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:18:32]Read from MH i2c: E2 [17:18:32]MH_I2C_Read... [17:18:32]Read from MH i2c: E2 17 00 [17:18:32]MH_I2C_Read... [17:18:32]Read from MH i2c: E2 17 00 51 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 30 [17:18:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:18:32]wFMCommunicate OK [17:18:32]requested_item fd.num is exist - process it [17:18:32]SAM_PROTO_GetFieldsCounters [17:18:32]wFMCommunicate request_size=4 [17:18:32]MH_SAM_APDU [17:18:32]CAPDU: 80 13 00 00 [17:18:32]Write to MH i2c: E2 08 00 52 0E 80 13 00 00 00 00 00 00 DC [17:18:32]Write i2c OK [17:18:32]MH_I2C_Read... [17:18:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:18:32]Read from MH i2c: E2 [17:18:32]MH_I2C_Read... [17:18:32]Read from MH i2c: E2 62 00 [17:18:32]MH_I2C_Read... [17:18:32]Read from MH i2c: E2 62 00 52 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 D7 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 87 01 00 00 5E 04 04 00 87 01 00 00 57 04 04 00 88 01 00 00 19 04 04 00 00 00 00 00 90 00 06 [17:18: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 D7 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 87 01 00 00 5E 04 04 00 87 01 00 00 57 04 04 00 88 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:18:32]wFMCommunicate OK [17:18:32]SAM_PROTO_GetFieldsCounters done [17:18:32]requested_item shift.num is exist - process it [17:18:32]requested_item shift.opened is exist - process it [17:18:32]req_shift_opened [17:18:32]FM_GetShiftState [17:18:32]SAM_PROTO_GetShiftState [17:18:32]wFMCommunicate request_size=4 [17:18:32]MH_SAM_APDU [17:18:32]CAPDU: 80 13 01 00 [17:18:32]Write to MH i2c: E2 08 00 53 0E 80 13 01 00 00 00 00 00 DE [17:18:32]Write i2c OK [17:18:32]MH_I2C_Read... [17:18:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:18:32]Read from MH i2c: E2 [17:18:32]MH_I2C_Read... [17:18:32]Read from MH i2c: E2 0E 00 [17:18:32]MH_I2C_Read... [17:18:32]Read from MH i2c: E2 0E 00 53 0E 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 F8 [17:18:32]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:18:32]wFMCommunicate OK [17:18:32]SAM_PROTO_GetShiftState done [17:18:32]FM_GetShiftState done [17:18:32]req_shift_opened done [17:18:32]requested_item shift.open_date is exist - process it [17:18:32]req_shift_open_date [17:18:32]req_shift_open_date done [17:18:32]produce_requested_data done [17:18:32]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227543,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [17:18:32]process_action_free close_receipt [17:18:32]json_value_free [17:18:32]json_value_free done [17:18:32]process_json_proto returns [17:18:32]Send response to host [17:18:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227543,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [17:18:32]free response buf [17:18:32]execute_script done [17:18:32]execute_script returns [17:18:32]free content buf [17:18:32]Sock 7.Close socket [17:18:32]Sock 7.Thread stoped [17:18:32]OFD Sender: No OFD packet to send [17:18:37]OFD Sender: No OFD packet to send [17:18:42]OFD Sender: No OFD packet to send [17:18:47]OFD Sender: No OFD packet to send [17:18:47]accept exits with 9 [17:18:47]New connection [17:18:47]New thread 3067219300 created [17:18:47]Thread 3067362660 joined [17:18:47]Waiting for new connection... [17:18:47] Sock 9.Parse request [17:18:47]Sock 9.Check first char [17:18:47]Sock 9.First char is OK [17:18:47]request: POST /json_proto HTTP/1.0 [17:18:47]Method: POST [17:18:47]URL: /json_proto [17:18:47]Method is POST - this is cgi request [17:18:47]url: /json_proto [17:18:47]query_string will be loaded in cgi processing [17:18:47]execute_cgi json_proto POST (null) [17:18:47]execute_cgi path=json_proto method=POST [17:18:47]POST find Content-Length [17:18:47]Host: 172.17.44.195:8080 [17:18:47]Content-Length: 683 [17:18:47]Content-Type: application/json [17:18:47] [17:18:47]POST finish read [17:18:47]Found Content-Length = 683 [17:18:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963176", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:18:47]execute_script... [17: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)1963176", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:18:47]POST & json_proto [17:18:47]process_json_proto [17:18:47]json parsed OK: [17:18:47]protocol is kg_v1.0 [17:18:47]action value=close_receipt [17:18:47]process_action close_receipt [17:18:47]cmd_close_receipt [17:18:47]MH_GetDate [17:18:47]Write to MH i2c: F0 00 00 54 0E 51 [17:18:47]Write i2c OK [17:18:47]MH_I2C_Read... [17:18:47]Read from MH i2c: F0 [17:18:47]MH_I2C_Read... [17:18:47]Read from MH i2c: F0 09 00 [17:18:47]MH_I2C_Read... [17:18:47]Read from MH i2c: F0 09 00 54 0E 00 79 3B 15 67 82 C9 CF 66 0A [17:18:47]GetLastDocTimeStamp 1729444711 [17:18:47]current date 1729444729 [17:18:47]FM_GetShiftState [17:18:47]SAM_PROTO_GetShiftState [17:18:47]wFMCommunicate request_size=4 [17:18:47]MH_SAM_APDU [17:18:47]CAPDU: 80 13 01 00 [17:18:47]Write to MH i2c: E2 08 00 55 0E 80 13 01 00 00 00 00 00 E0 [17:18:47]Write i2c OK [17:18:47]MH_I2C_Read... [17:18:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:18:48]Read from MH i2c: E2 [17:18:48]MH_I2C_Read... [17:18:48]Read from MH i2c: E2 0E 00 [17:18:48]MH_I2C_Read... [17:18:48]Read from MH i2c: E2 0E 00 55 0E 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 FA [17:18:48]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:18:48]wFMCommunicate OK [17:18:48]SAM_PROTO_GetShiftState done [17:18:48]FM_GetShiftState done [17:18:48]opened in 1729383750 [17:18:48]opened+sec_in_day 1729470150 [17:18:48]quantity*price = 100015 [17:18:48]sum+1 = 100017 [17:18:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 392 20.10.2024 17:18 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227544 ФПД: 272687501488200 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171849&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227544&fm=272687501488200&tin=02508201610067®Number=0000000000091685&sum=100000 [17:18:49]StoreToDocumentArchive [17:18:49]shift 533 fd 227544 [17:18:49]save to /storage/0533/doc_00227544 [17:18:49]save last doc name /storage/0533/doc_00227544 to /storage/kkm_last_doc_name [17:18:49]save OK [17:18:49]Clear old archive folders... [17:18:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:18:49]tlvbuf is 00DEC470 [17:18:49]SAM_PROTO_ClearQueue [17:18:49]wFMCommunicate request_size=4 [17:18:49]MH_SAM_APDU [17:18:49]CAPDU: 80 09 00 00 [17:18:49]Write to MH i2c: E2 08 00 62 0E 80 09 00 00 00 00 00 00 E2 [17:18:49]Write i2c OK [17:18:49]MH_I2C_Read... [17:18:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:18:49]Read from MH i2c: E2 [17:18:49]MH_I2C_Read... [17:18:49]Read from MH i2c: E2 03 00 [17:18:49]MH_I2C_Read... [17:18:49]Read from MH i2c: E2 03 00 62 0E 00 90 00 E4 [17:18:49]RAPDU: 90 00 [17:18:49]wFMCommunicate OK [17:18:49]SAM_PROTO_ClearQueue done [17:18:49]KKMCreateOFDPacket [17:18:49]OFDProtocolAddRootSTLVToBuf [17:18:49]FM_MakeSignedData [17:18:49]FM_MakeSignedData [17:18:49]SAM_PROTO_SignData [17:18:49]wFMCommunicate request_size=4 [17:18:49]MH_SAM_APDU [17:18:49]CAPDU: 80 0D 01 02 [17:18:49]Write to MH i2c: E2 08 00 63 0E 80 0D 01 02 00 00 00 00 EA [17:18:49]Write i2c OK [17:18:49]MH_I2C_Read... [17:18:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:18:49]Read from MH i2c: E2 [17:18:49]MH_I2C_Read... [17:18:49]Read from MH i2c: E2 03 00 [17:18:49]MH_I2C_Read... [17:18:49]Read from MH i2c: E2 03 00 63 0E 00 90 00 E5 [17:18:49]RAPDU: 90 00 [17:18:49]wFMCommunicate OK [17:18:49]wFMCommunicate request_size=255 [17:18:49]MH_SAM_APDU [17: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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 01 00 00 F4 03 04 00 79 3B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D8 78 03 00 35 04 06 00 F8 [17:18:49]Write to MH i2c: E2 02 01 64 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 01 00 00 F4 03 04 00 79 3B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D8 78 03 00 35 04 06 00 F8 00 00 96 [17:18:49]Write i2c OK [17:18:49]MH_I2C_Read... [17:18:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:18:49]Read from MH i2c: E2 [17:18:49]MH_I2C_Read... [17:18:49]Read from MH i2c: E2 03 00 [17:18:49]MH_I2C_Read... [17:18:49]Read from MH i2c: E2 03 00 64 0E 00 90 00 E6 [17:18:49]RAPDU: 90 00 [17:18:49]wFMCommunicate OK [17:18:49]wFMCommunicate request_size=10 [17:18:49]MH_SAM_APDU [17:18:49]CAPDU: 80 0D 02 02 05 02 01 A9 30 48 [17:18:49]Write to MH i2c: E2 0D 00 65 0E 80 0D 02 02 05 00 02 01 A9 30 48 00 00 1B [17:18:49]Write i2c OK [17:18:49]MH_I2C_Read... [17:18:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:18:49]Read from MH i2c: E2 [17:18:49]MH_I2C_Read... [17:18:49]Read from MH i2c: E2 03 00 [17:18:49]MH_I2C_Read... [17:18:49]Read from MH i2c: E2 03 00 65 0E 00 90 00 E7 [17:18:49]RAPDU: 90 00 [17:18:49]wFMCommunicate OK [17:18:49]wFMCommunicate request_size=4 [17:18:49]MH_SAM_APDU [17:18:49]CAPDU: 80 0D 03 02 [17:18:49]Write to MH i2c: E2 08 00 66 0E 80 0D 03 02 00 00 00 00 EF [17:18:49]Write i2c OK [17:18:49]MH_I2C_Read... [17:18:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:18:49]Read from MH i2c: E2 [17:18:49]MH_I2C_Read... [17:18:49]Read from MH i2c: E2 0B 00 [17:18:49]MH_I2C_Read... [17:18:49]Read from MH i2c: E2 0B 00 66 0E 00 3F 2F 28 42 C1 E9 36 E8 90 00 90 [17:18:49]RAPDU: 3F 2F 28 42 C1 E9 36 E8 90 00 [17:18:49]wFMCommunicate OK [17:18:49]SAM_PROTO_SignData done [17:18:49]FM_MakeSignedData done [17:18:49]CreateOFDProtocolMessage [17:18:49]wFMCommunicate request_size=4 [17:18:49]MH_SAM_APDU [17:18:49]CAPDU: 80 11 00 00 [17:18:49]Write to MH i2c: E2 08 00 67 0E 80 11 00 00 00 00 00 00 EF [17:18:49]Write i2c OK [17:18:49]MH_I2C_Read... [17:18:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:18:49]Read from MH i2c: E2 [17:18:49]MH_I2C_Read... [17:18:49]Read from MH i2c: E2 17 00 [17:18:49]MH_I2C_Read... [17:18:49]Read from MH i2c: E2 17 00 67 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 46 [17:18:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:18:49]wFMCommunicate OK [17:18:49]CreateOFDProtocolMessage done [17:18:49]OFDSenderStorePacket 227544 [17:18:49]StoreOFDPacket docnum=227544 [17:18:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 AA 14 07 01 B1 A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 01 00 00 F4 03 04 00 79 3B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D8 78 03 00 35 04 06 00 F8 02 01 A9 30 48 3F 2F 28 42 C1 E9 36 E8 [17:18:49]CheckFolder [17:18:49]dirname=/storage/ofd_packets [17:18:49]CheckFolder done [17:18:49]ProducePacketName [17:18:49]name=ofd_packets/00227544 [17:18:49]NVStorageSaveData ofd_packets/00227544 [17:18:49]File name is /storage/ofd_packets/00227544 [17:18:49]Write 301 bytes [17:18:49]NVStorageSaveData done [17:18:49]OFDSenderStorePacket done [17:18:49]KKMCreateOFDPacket done [17:18:49]NVStorageSaveData kkm_last_timestamp [17:18:49]File name is /storage/kkm_last_timestamp [17:18:49]Write 4 bytes [17:18:49]NVStorageSaveData done [17:18:49]ExternCall_PrintAddStr [17:18:49]wPrintStart [17:18:49]Write to MH i2c: 01 00 00 68 0E 76 [17:18:49]Write i2c OK [17:18:49]MH_I2C_Read... [17:18:49]Read from MH i2c: 01 [17:18:49]MH_I2C_Read... [17:18:49]Read from MH i2c: 01 07 00 [17:18:49]MH_I2C_Read... [17:18:49]Read from MH i2c: 01 07 00 68 0E 00 00 00 00 00 FF 0F 8B [17:18:49]RasterBufferAndPrint [17:18:49]line Счет N : (1)1963176 [17:18:49]line ИНН: 02508201610067 [17:18:49]line Контрольно-Кассовый Чек [17:18:49]line ПРОДАЖА [17:18:49]line ТРК (МРК, ГНК) : 43 [17:18:49]line Товар: 2710124130 [17:18:49]line Аи-92-К-5 [17:18:49]line 14.950 * 66.90 [17:18:49]line = 1000.16 [17:18:49]line НДС 12% НСП 1% [17:18:49]line > о реализуемом товаре [17:18:49]line ОКРУГЛЕНИЕ: -0.16 [17:18:49]line ИТОГО: 1000.00 [17:18:49]line Внесено: 1000.00 [17:18:49]line СДАЧА: 0.00 [17:18:49]line НСП 1% : 8.85 [17:18:49]line НДС 12% : 106.21 [17:18:49]line Наличными: 1000.00 [17:18:49]line Безнал.: 0.00 [17:18:49]line Место: АЗС № 133 "Партнер Нефть" [17:18:49]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:18:49]line СНО: Общий режим [17:18:49]line Чек 392 20.10.2024 17:18 [17:18:49]line Смена: 533 ФФД: 1.0 [17:18:49]line ЗНМ: 0300000091 [17:18:49]line РНМ: 0000000000091685 [17:18:49]line Версия ККМ: 001 [17:18:49]line ФМ: 0000000000871839 [17:18:49]line ФД: 227544 [17:18:49]line ФПД: 272687501488200 [17:18:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171849&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227544&fm=272687501488200&tin=02508201610067®Number=0000000000091685&sum=100000 [17:18:49]written 0, free lines is 4095 [17:18:49]OFD Sender: Processing packet 227544 [packets to send 38, broken 37] [17:18:49]ProducePacketName [17:18:49]name=ofd_packets/00227544 [17:18:49]OFD Sender: To server: pG, [17:18:49]CommunicateWithHost lk.salyk.kg:30040 [17:18:49]ConnectInit lk.salyk.kg [17:18:49]Connected sock=10 [17: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 33 39 0F 01 00 00 AA 14 07 01 B1 A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 01 00 00 F4 03 04 00 79 3B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D8 78 03 00 35 04 06 00 F8 02 01 A9 30 48 3F 2F 28 42 C1 E9 36 E8 [17: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 33 39 4F 00 00 00 20 64 47 00 50 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 33 39 10 04 04 00 D8 78 03 00 F4 03 04 00 77 E6 14 67 B6 04 01 00 00 A7 46 39 E3 51 23 16 58 [17:18:50]CommunicateWithHost err = 0 [17:18:50]CheckOFDResponse [17:18:50]1017 (14) - 77093643461234 [17:18:50]1041 (16) - 0000000000871839 [17:18:50]1040 (4) - 227544 [17:18:50]1012 (4) - 20.10.2024 11:16 [17:18:50]1206 (1) - 0 [17:18:50]OFD Sender: Remove packet 227544 [17:18:50]ProducePacketName [17:18:50]name=ofd_packets/00227544 [17:18:50]NVStorageDeleteData [17:18:50]Write to MH i2c: 01 00 00 92 0E A0 [17:18:50]Write i2c OK [17:18:50]MH_I2C_Read... [17:18:50]Read from MH i2c: 01 [17:18:50]MH_I2C_Read... [17:18:50]Read from MH i2c: 01 07 00 [17:18:50]MH_I2C_Read... [17:18:50]Read from MH i2c: 01 07 00 92 0E 00 00 00 00 00 0E 0D C2 [17:18:50]RasterBufferAndPrint [17:18:50]line [17:18:50]line [17:18:50]line [17:18:50]line [17:18:50]line [17:18:50]written 0, free lines is 3354 [17:18:50]process_action close_receipt done [17:18:50]requested_data is exist [17:18:50]produce_requested_data [17:18:50]requested_item fm.sn is exist - process it [17:18:50]wFMCommunicate request_size=4 [17:18:50]MH_SAM_APDU [17:18:50]CAPDU: 80 11 00 00 [17:18:50]Write to MH i2c: E2 08 00 99 0E 80 11 00 00 00 00 00 00 21 [17:18:50]Write i2c OK [17:18:50]MH_I2C_Read... [17:18:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:18:50]Read from MH i2c: E2 [17:18:50]MH_I2C_Read... [17:18:50]Read from MH i2c: E2 17 00 [17:18:50]MH_I2C_Read... [17:18:50]Read from MH i2c: E2 17 00 99 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 78 [17:18:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:18:50]wFMCommunicate OK [17:18:50]requested_item fd.num is exist - process it [17:18:50]SAM_PROTO_GetFieldsCounters [17:18:50]wFMCommunicate request_size=4 [17:18:50]MH_SAM_APDU [17:18:50]CAPDU: 80 13 00 00 [17:18:50]Write to MH i2c: E2 08 00 9A 0E 80 13 00 00 00 00 00 00 24 [17:18:50]Write i2c OK [17:18:50]MH_I2C_Read... [17:18:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:18:50]Read from MH i2c: E2 [17:18:50]MH_I2C_Read... [17:18:50]Read from MH i2c: E2 62 00 [17:18:50]MH_I2C_Read... [17:18:50]Read from MH i2c: E2 62 00 9A 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 D8 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 88 01 00 00 5E 04 04 00 88 01 00 00 57 04 04 00 89 01 00 00 19 04 04 00 00 00 00 00 90 00 52 [17:18: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 D8 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 88 01 00 00 5E 04 04 00 88 01 00 00 57 04 04 00 89 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:18:50]wFMCommunicate OK [17:18:50]SAM_PROTO_GetFieldsCounters done [17:18:50]requested_item shift.num is exist - process it [17:18:50]requested_item shift.opened is exist - process it [17:18:50]req_shift_opened [17:18:50]FM_GetShiftState [17:18:50]SAM_PROTO_GetShiftState [17:18:50]wFMCommunicate request_size=4 [17:18:50]MH_SAM_APDU [17:18:50]CAPDU: 80 13 01 00 [17:18:50]Write to MH i2c: E2 08 00 9B 0E 80 13 01 00 00 00 00 00 26 [17:18:50]Write i2c OK [17:18:50]MH_I2C_Read... [17:18:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:18:50]Read from MH i2c: E2 [17:18:50]MH_I2C_Read... [17:18:50]Read from MH i2c: E2 0E 00 [17:18:50]MH_I2C_Read... [17:18:50]Read from MH i2c: E2 0E 00 9B 0E 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 40 [17:18:50]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:18:50]wFMCommunicate OK [17:18:50]SAM_PROTO_GetShiftState done [17:18:50]FM_GetShiftState done [17:18:50]req_shift_opened done [17:18:50]requested_item shift.open_date is exist - process it [17:18:50]req_shift_open_date [17:18:50]req_shift_open_date done [17:18:50]produce_requested_data done [17:18:50]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227544,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [17:18:50]process_action_free close_receipt [17:18:50]json_value_free [17:18:50]json_value_free done [17:18:50]process_json_proto returns [17:18:50]Send response to host [17:18:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227544,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [17:18:50]free response buf [17:18:50]execute_script done [17:18:50]execute_script returns [17:18:50]free content buf [17:18:50]Sock 9.Close socket [17:18:50]Sock 9.Thread stoped [17:18:50]OFD Sender: No OFD packet to send [17:18:53]accept exits with 7 [17:18:53]New connection [17:18:53]New thread 3067362660 created [17:18:53]Thread 3067219300 joined [17:18:53]Waiting for new connection... [17:18:53] Sock 7.Parse request [17:18:53]Sock 7.Check first char [17:18:53]Sock 7.First char is OK [17:18:53]request: POST /json_proto HTTP/1.0 [17:18:53]Method: POST [17:18:53]URL: /json_proto [17:18:53]Method is POST - this is cgi request [17:18:53]url: /json_proto [17:18:53]query_string will be loaded in cgi processing [17:18:53]execute_cgi json_proto POST (null) [17:18:53]execute_cgi path=json_proto method=POST [17:18:53]POST find Content-Length [17:18:53]Host: 172.17.44.195:8080 [17:18:53]Content-Length: 678 [17:18:53]Content-Type: application/json [17:18:53] [17:18:53]POST finish read [17:18:53]Found Content-Length = 678 [17:18:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963177", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:18:53]execute_script... [17:18: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)1963177", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:18:53]POST & json_proto [17:18:53]process_json_proto [17:18:53]json parsed OK: [17:18:53]protocol is kg_v1.0 [17:18:53]action value=close_receipt [17:18:53]process_action close_receipt [17:18:53]cmd_close_receipt [17:18:53]MH_GetDate [17:18:53]Write to MH i2c: F0 00 00 9C 0E 99 [17:18:53]Write i2c OK [17:18:53]MH_I2C_Read... [17:18:53]Read from MH i2c: F0 [17:18:53]MH_I2C_Read... [17:18:53]Read from MH i2c: F0 09 00 [17:18:53]MH_I2C_Read... [17:18:53]Read from MH i2c: F0 09 00 9C 0E 00 7F 3B 15 67 82 C9 CF 66 58 [17:18:53]GetLastDocTimeStamp 1729444729 [17:18:53]current date 1729444735 [17:18:53]FM_GetShiftState [17:18:53]SAM_PROTO_GetShiftState [17:18:53]wFMCommunicate request_size=4 [17:18:53]MH_SAM_APDU [17:18:53]CAPDU: 80 13 01 00 [17:18:53]Write to MH i2c: E2 08 00 9D 0E 80 13 01 00 00 00 00 00 28 [17:18:53]Write i2c OK [17:18:53]MH_I2C_Read... [17:18:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:18:53]Read from MH i2c: E2 [17:18:53]MH_I2C_Read... [17:18:53]Read from MH i2c: E2 0E 00 [17:18:53]MH_I2C_Read... [17:18:53]Read from MH i2c: E2 0E 00 9D 0E 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 42 [17:18:53]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:18:53]wFMCommunicate OK [17:18:53]SAM_PROTO_GetShiftState done [17:18:53]FM_GetShiftState done [17:18:53]opened in 1729383750 [17:18:53]opened+sec_in_day 1729470150 [17:18:53]quantity*price = 50041 [17:18:53]sum+1 = 50042 [17:18:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 393 20.10.2024 17:18 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227545 ФПД: 18396421089102 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171855&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227545&fm=18396421089102&tin=02508201610067®Number=0000000000091685&sum=50000 [17:18:54]StoreToDocumentArchive [17:18:54]shift 533 fd 227545 [17:18:54]save to /storage/0533/doc_00227545 [17:18:54]save last doc name /storage/0533/doc_00227545 to /storage/kkm_last_doc_name [17:18:54]save OK [17:18:54]Clear old archive folders... [17:18:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:18:54]tlvbuf is 00E06D30 [17:18:54]SAM_PROTO_ClearQueue [17:18:54]wFMCommunicate request_size=4 [17:18:54]MH_SAM_APDU [17:18:54]CAPDU: 80 09 00 00 [17:18:54]Write to MH i2c: E2 08 00 AA 0E 80 09 00 00 00 00 00 00 2A [17:18:54]Write i2c OK [17:18:54]MH_I2C_Read... [17:18:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:18:54]Read from MH i2c: E2 [17:18:54]MH_I2C_Read... [17:18:54]Read from MH i2c: E2 03 00 [17:18:54]MH_I2C_Read... [17:18:54]Read from MH i2c: E2 03 00 AA 0E 00 90 00 2C [17:18:54]RAPDU: 90 00 [17:18:54]wFMCommunicate OK [17:18:54]SAM_PROTO_ClearQueue done [17:18:54]KKMCreateOFDPacket [17:18:54]OFDProtocolAddRootSTLVToBuf [17:18:54]FM_MakeSignedData [17:18:54]FM_MakeSignedData [17:18:54]SAM_PROTO_SignData [17:18:54]wFMCommunicate request_size=4 [17:18:54]MH_SAM_APDU [17:18:54]CAPDU: 80 0D 01 02 [17:18:54]Write to MH i2c: E2 08 00 AB 0E 80 0D 01 02 00 00 00 00 32 [17:18:54]Write i2c OK [17:18:54]MH_I2C_Read... [17:18:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:18:54]Read from MH i2c: E2 [17:18:54]MH_I2C_Read... [17:18:54]Read from MH i2c: E2 03 00 [17:18:54]MH_I2C_Read... [17:18:54]Read from MH i2c: E2 03 00 AB 0E 00 90 00 2D [17:18:54]RAPDU: 90 00 [17:18:54]wFMCommunicate OK [17:18:54]wFMCommunicate request_size=255 [17:18:54]MH_SAM_APDU [17:18:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 01 00 00 F4 03 04 00 7F 3B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D9 78 03 00 35 04 06 00 10 [17:18:54]Write to MH i2c: E2 02 01 AC 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 01 00 00 F4 03 04 00 7F 3B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D9 78 03 00 35 04 06 00 10 00 00 04 [17:18:54]Write i2c OK [17:18:54]MH_I2C_Read... [17:18:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:18:55]Read from MH i2c: E2 [17:18:55]MH_I2C_Read... [17:18:55]Read from MH i2c: E2 03 00 [17:18:55]MH_I2C_Read... [17:18:55]Read from MH i2c: E2 03 00 AC 0E 00 90 00 2E [17:18:55]RAPDU: 90 00 [17:18:55]wFMCommunicate OK [17:18:55]wFMCommunicate request_size=10 [17:18:55]MH_SAM_APDU [17:18:55]CAPDU: 80 0D 02 02 05 BB 40 24 E7 4E [17:18:55]Write to MH i2c: E2 0D 00 AD 0E 80 0D 02 02 05 00 BB 40 24 E7 4E 00 00 93 [17:18:55]Write i2c OK [17:18:55]MH_I2C_Read... [17:18:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:18:55]Read from MH i2c: E2 [17:18:55]MH_I2C_Read... [17:18:55]Read from MH i2c: E2 03 00 [17:18:55]MH_I2C_Read... [17:18:55]Read from MH i2c: E2 03 00 AD 0E 00 90 00 2F [17:18:55]RAPDU: 90 00 [17:18:55]wFMCommunicate OK [17:18:55]wFMCommunicate request_size=4 [17:18:55]MH_SAM_APDU [17:18:55]CAPDU: 80 0D 03 02 [17:18:55]Write to MH i2c: E2 08 00 AE 0E 80 0D 03 02 00 00 00 00 37 [17:18:55]Write i2c OK [17:18:55]MH_I2C_Read... [17:18:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:18:55]Read from MH i2c: E2 [17:18:55]MH_I2C_Read... [17:18:55]Read from MH i2c: E2 0B 00 [17:18:55]MH_I2C_Read... [17:18:55]Read from MH i2c: E2 0B 00 AE 0E 00 CB F9 89 4A F2 98 59 AA 90 00 5C [17:18:55]RAPDU: CB F9 89 4A F2 98 59 AA 90 00 [17:18:55]wFMCommunicate OK [17:18:55]SAM_PROTO_SignData done [17:18:55]FM_MakeSignedData done [17:18:55]CreateOFDProtocolMessage [17:18:55]wFMCommunicate request_size=4 [17:18:55]MH_SAM_APDU [17:18:55]CAPDU: 80 11 00 00 [17:18:55]Write to MH i2c: E2 08 00 AF 0E 80 11 00 00 00 00 00 00 37 [17:18:55]Write i2c OK [17:18:55]MH_I2C_Read... [17:18:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:18:55]Read from MH i2c: E2 [17:18:55]MH_I2C_Read... [17:18:55]Read from MH i2c: E2 17 00 [17:18:55]MH_I2C_Read... [17:18:55]Read from MH i2c: E2 17 00 AF 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 8E [17:18:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:18:55]wFMCommunicate OK [17:18:55]CreateOFDProtocolMessage done [17:18:55]OFDSenderStorePacket 227545 [17:18:55]StoreOFDPacket docnum=227545 [17:18:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 92 73 07 01 44 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 01 00 00 F4 03 04 00 7F 3B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D9 78 03 00 35 04 06 00 10 BB 40 24 E7 4E CB F9 89 4A F2 98 59 AA [17:18:55]CheckFolder [17:18:55]dirname=/storage/ofd_packets [17:18:55]CheckFolder done [17:18:55]ProducePacketName [17:18:55]name=ofd_packets/00227545 [17:18:55]NVStorageSaveData ofd_packets/00227545 [17:18:55]File name is /storage/ofd_packets/00227545 [17:18:55]Write 301 bytes [17:18:55]NVStorageSaveData done [17:18:55]OFDSenderStorePacket done [17:18:55]KKMCreateOFDPacket done [17:18:55]NVStorageSaveData kkm_last_timestamp [17:18:55]File name is /storage/kkm_last_timestamp [17:18:55]Write 4 bytes [17:18:55]NVStorageSaveData done [17:18:55]ExternCall_PrintAddStr [17:18:55]wPrintStart [17:18:55]Write to MH i2c: 01 00 00 B0 0E BE [17:18:55]Write i2c OK [17:18:55]MH_I2C_Read... [17:18:55]Read from MH i2c: 01 [17:18:55]MH_I2C_Read... [17:18:55]Read from MH i2c: 01 07 00 [17:18:55]MH_I2C_Read... [17:18:55]Read from MH i2c: 01 07 00 B0 0E 00 00 00 00 00 FF 0F D3 [17:18:55]RasterBufferAndPrint [17:18:55]line Счет N : (1)1963177 [17:18:55]line ИНН: 02508201610067 [17:18:55]line Контрольно-Кассовый Чек [17:18:55]line ПРОДАЖА [17:18:55]line ТРК (МРК, ГНК) : 33 [17:18:55]line Товар: 2710124130 [17:18:55]line Аи-92-К-5 [17:18:55]line 7.480 * 66.90 [17:18:55]line = 500.41 [17:18:55]line НДС 12% НСП 1% [17:18:55]line > о реализуемом товаре [17:18:55]line ОКРУГЛЕНИЕ: -0.41 [17:18:55]line ИТОГО: 500.00 [17:18:55]line Внесено: 500.00 [17:18:55]line СДАЧА: 0.00 [17:18:55]line НСП 1% : 4.43 [17:18:55]line НДС 12% : 53.14 [17:18:55]line Наличными: 500.00 [17:18:55]line Безнал.: 0.00 [17:18:55]line Место: АЗС № 133 "Партнер Нефть" [17:18:55]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:18:55]line СНО: Общий режим [17:18:55]line Чек 393 20.10.2024 17:18 [17:18:55]line Смена: 533 ФФД: 1.0 [17:18:55]line ЗНМ: 0300000091 [17:18:55]line РНМ: 0000000000091685 [17:18:55]line Версия ККМ: 001 [17:18:55]line ФМ: 0000000000871839 [17:18:55]line ФД: 227545 [17:18:55]line ФПД: 18396421089102 [17:18:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171855&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227545&fm=18396421089102&tin=02508201610067®Number=0000000000091685&sum=50000 [17:18:55]written 0, free lines is 4095 [17:18:55]OFD Sender: Processing packet 227545 [packets to send 38, broken 37] [17:18:55]ProducePacketName [17:18:55]name=ofd_packets/00227545 [17:18:55]OFD Sender: To server: pG, [17:18:55]CommunicateWithHost lk.salyk.kg:30040 [17:18:55]ConnectInit lk.salyk.kg [17:18:55]Connected sock=10 [17:18: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 33 39 0F 01 00 00 92 73 07 01 44 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 01 00 00 F4 03 04 00 7F 3B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 D9 78 03 00 35 04 06 00 10 BB 40 24 E7 4E CB F9 89 4A F2 98 59 AA [17:18: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 33 39 4F 00 00 00 FE 6E 47 00 3F 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 33 39 10 04 04 00 D9 78 03 00 F4 03 04 00 7D E6 14 67 B6 04 01 00 00 B0 25 39 8C 58 82 60 25 [17:18:55]CommunicateWithHost err = 0 [17:18:55]CheckOFDResponse [17:18:55]1017 (14) - 77093643461234 [17:18:55]1041 (16) - 0000000000871839 [17:18:55]1040 (4) - 227545 [17:18:55]1012 (4) - 20.10.2024 11:16 [17:18:55]1206 (1) - 0 [17:18:55]OFD Sender: Remove packet 227545 [17:18:55]ProducePacketName [17:18:55]name=ofd_packets/00227545 [17:18:55]NVStorageDeleteData [17:18:55]Write to MH i2c: 01 00 00 DA 0E E8 [17:18:55]Write i2c OK [17:18:55]MH_I2C_Read... [17:18:55]Read from MH i2c: 01 [17:18:55]MH_I2C_Read... [17:18:55]Read from MH i2c: 01 07 00 [17:18:55]MH_I2C_Read... [17:18:55]Read from MH i2c: 01 07 00 DA 0E 00 00 00 00 00 15 0D 11 [17:18:55]RasterBufferAndPrint [17:18:55]line [17:18:55]line [17:18:55]line [17:18:55]line [17:18:55]line [17:18:55]written 0, free lines is 3364 [17:18:55]process_action close_receipt done [17:18:55]requested_data is exist [17:18:55]produce_requested_data [17:18:55]requested_item fm.sn is exist - process it [17:18:55]wFMCommunicate request_size=4 [17:18:55]MH_SAM_APDU [17:18:55]CAPDU: 80 11 00 00 [17:18:55]Write to MH i2c: E2 08 00 E1 0E 80 11 00 00 00 00 00 00 69 [17:18:55]Write i2c OK [17:18:55]MH_I2C_Read... [17:18:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:18:55]Read from MH i2c: E2 [17:18:55]MH_I2C_Read... [17:18:55]Read from MH i2c: E2 17 00 [17:18:55]MH_I2C_Read... [17:18:55]Read from MH i2c: E2 17 00 E1 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C0 [17:18:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:18:55]wFMCommunicate OK [17:18:55]requested_item fd.num is exist - process it [17:18:55]SAM_PROTO_GetFieldsCounters [17:18:55]wFMCommunicate request_size=4 [17:18:55]MH_SAM_APDU [17:18:55]CAPDU: 80 13 00 00 [17:18:55]Write to MH i2c: E2 08 00 E2 0E 80 13 00 00 00 00 00 00 6C [17:18:55]Write i2c OK [17:18:55]MH_I2C_Read... [17:18:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:18:56]Read from MH i2c: E2 [17:18:56]MH_I2C_Read... [17:18:56]Read from MH i2c: E2 62 00 [17:18:56]MH_I2C_Read... [17:18:56]Read from MH i2c: E2 62 00 E2 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 D9 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 89 01 00 00 5E 04 04 00 89 01 00 00 57 04 04 00 8A 01 00 00 19 04 04 00 00 00 00 00 90 00 9E [17:18:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 D9 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 89 01 00 00 5E 04 04 00 89 01 00 00 57 04 04 00 8A 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:18:56]wFMCommunicate OK [17:18:56]SAM_PROTO_GetFieldsCounters done [17:18:56]requested_item shift.num is exist - process it [17:18:56]requested_item shift.opened is exist - process it [17:18:56]req_shift_opened [17:18:56]FM_GetShiftState [17:18:56]SAM_PROTO_GetShiftState [17:18:56]wFMCommunicate request_size=4 [17:18:56]MH_SAM_APDU [17:18:56]CAPDU: 80 13 01 00 [17:18:56]Write to MH i2c: E2 08 00 E3 0E 80 13 01 00 00 00 00 00 6E [17:18:56]Write i2c OK [17:18:56]MH_I2C_Read... [17:18:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:18:56]Read from MH i2c: E2 [17:18:56]MH_I2C_Read... [17:18:56]Read from MH i2c: E2 0E 00 [17:18:56]MH_I2C_Read... [17:18:56]Read from MH i2c: E2 0E 00 E3 0E 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 88 [17:18:56]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:18:56]wFMCommunicate OK [17:18:56]SAM_PROTO_GetShiftState done [17:18:56]FM_GetShiftState done [17:18:56]req_shift_opened done [17:18:56]requested_item shift.open_date is exist - process it [17:18:56]req_shift_open_date [17:18:56]req_shift_open_date done [17:18:56]produce_requested_data done [17:18:56]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227545,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [17:18:56]process_action_free close_receipt [17:18:56]json_value_free [17:18:56]json_value_free done [17:18:56]process_json_proto returns [17:18:56]Send response to host [17:18:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227545,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [17:18:56]free response buf [17:18:56]execute_script done [17:18:56]execute_script returns [17:18:56]free content buf [17:18:56]Sock 7.Close socket [17:18:56]Sock 7.Thread stoped [17:18:56]OFD Sender: No OFD packet to send [17:19:01]OFD Sender: No OFD packet to send [17:19:06]OFD Sender: No OFD packet to send [17:19:11]OFD Sender: No OFD packet to send [17:19:16]OFD Sender: No OFD packet to send [17:19:21]OFD Sender: No OFD packet to send [17:19:22]int [17:19:22]Write to MH i2c: 01 00 00 E4 0E F2 [17:19:22]*** FLAG_PRN_PAP1 set [17:19:22]Write i2c OK [17:19:22]MH_I2C_Read... [17:19:22]Read from MH i2c: 01 [17:19:22]MH_I2C_Read... [17:19:22]Read from MH i2c: 01 07 00 [17:19:22]MH_I2C_Read... [17:19:22]Read from MH i2c: 01 07 00 E4 0E 00 01 00 00 00 FF 0F 08 [17:19:22]state=0 [17:19:22]No paper [17:19:22]int [17:19:22]Write to MH i2c: 01 00 00 E5 0E F3 [17:19:22]*** FLAG_PRN_PAP2 set [17:19:22]Write i2c OK [17:19:22]MH_I2C_Read... [17:19:22]Read from MH i2c: 01 [17:19:22]MH_I2C_Read... [17:19:22]Read from MH i2c: 01 07 00 [17:19:22]MH_I2C_Read... [17:19:22]Read from MH i2c: 01 07 00 E5 0E 00 03 00 00 00 FF 0F 0B [17:19:22]state=0 [17:19:22]No paper [17:19:22]Cover opened [17:19:26]OFD Sender: No OFD packet to send [17:19:27]int [17:19:27]Write to MH i2c: 01 00 00 E6 0E F4 [17:19:27]*** FLAG_PRN_PAP1 reset [17:19:27]*** FLAG_PRN_PAP2 reset [17:19:27]Write i2c OK [17:19:27]MH_I2C_Read... [17:19:27]Read from MH i2c: 01 [17:19:27]MH_I2C_Read... [17:19:27]Read from MH i2c: 01 07 00 [17:19:27]MH_I2C_Read... [17:19:27]Read from MH i2c: 01 07 00 E6 0E 00 00 00 00 00 FF 0F 09 [17:19:27]state=3 [17:19:27]Cover closed [17:19:31]OFD Sender: No OFD packet to send [17:19:36]OFD Sender: No OFD packet to send [17:19:36]accept exits with 9 [17:19:36]New connection [17:19:36]New thread 3067219300 created [17:19:36]Thread 3067362660 joined [17:19:36]Waiting for new connection... [17:19:36] Sock 9.Parse request [17:19:36]Sock 9.Check first char [17:19:36]Sock 9.First char is OK [17:19:36]request: POST /json_proto HTTP/1.0 [17:19:36]Method: POST [17:19:36]URL: /json_proto [17:19:36]Method is POST - this is cgi request [17:19:36]url: /json_proto [17:19:36]query_string will be loaded in cgi processing [17:19:36]execute_cgi json_proto POST (null) [17:19:36]execute_cgi path=json_proto method=POST [17:19:36]POST find Content-Length [17:19:36]Host: 172.17.44.195:8080 [17:19:36]Content-Length: 678 [17:19:36]Content-Type: application/json [17:19:36] [17:19:36]POST finish read [17:19:36]Found Content-Length = 678 [17:19:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963178", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:36]execute_script... [17:19: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)1963178", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:36]POST & json_proto [17:19:36]process_json_proto [17:19:36]json parsed OK: [17:19:36]protocol is kg_v1.0 [17:19:36]action value=close_receipt [17:19:36]process_action close_receipt [17:19:36]cmd_close_receipt [17:19:36]MH_GetDate [17:19:36]Write to MH i2c: F0 00 00 E7 0E E4 [17:19:36]Write i2c OK [17:19:36]MH_I2C_Read... [17:19:36]Read from MH i2c: F0 [17:19:36]MH_I2C_Read... [17:19:36]Read from MH i2c: F0 09 00 [17:19:36]MH_I2C_Read... [17:19:36]Read from MH i2c: F0 09 00 E7 0E 00 AA 3B 15 67 82 C9 CF 66 CE [17:19:36]GetLastDocTimeStamp 1729444735 [17:19:36]current date 1729444778 [17:19:36]FM_GetShiftState [17:19:36]SAM_PROTO_GetShiftState [17:19:36]wFMCommunicate request_size=4 [17:19:36]MH_SAM_APDU [17:19:36]CAPDU: 80 13 01 00 [17:19:36]Write to MH i2c: E2 08 00 E8 0E 80 13 01 00 00 00 00 00 73 [17:19:36]Write i2c OK [17:19:36]MH_I2C_Read... [17:19:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:36]Read from MH i2c: E2 [17:19:36]MH_I2C_Read... [17:19:36]Read from MH i2c: E2 0E 00 [17:19:36]MH_I2C_Read... [17:19:36]Read from MH i2c: E2 0E 00 E8 0E 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 8D [17:19:36]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:19:36]wFMCommunicate OK [17:19:36]SAM_PROTO_GetShiftState done [17:19:36]FM_GetShiftState done [17:19:36]opened in 1729383750 [17:19:36]opened+sec_in_day 1729470150 [17:19:36]quantity*price = 40006 [17:19:36]sum+1 = 40007 [17:19:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 394 20.10.2024 17:19 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227546 ФПД: 148257456419341 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171938&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227546&fm=148257456419341&tin=02508201610067®Number=0000000000091685&sum=40000 [17:19:38]StoreToDocumentArchive [17:19:38]shift 533 fd 227546 [17:19:38]save to /storage/0533/doc_00227546 [17:19:38]save last doc name /storage/0533/doc_00227546 to /storage/kkm_last_doc_name [17:19:38]save OK [17:19:38]Clear old archive folders... [17:19:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:19:38]tlvbuf is 00DB9DA0 [17:19:38]SAM_PROTO_ClearQueue [17:19:38]wFMCommunicate request_size=4 [17:19:38]MH_SAM_APDU [17:19:38]CAPDU: 80 09 00 00 [17:19:38]Write to MH i2c: E2 08 00 F5 0E 80 09 00 00 00 00 00 00 75 [17:19:38]Write i2c OK [17:19:38]MH_I2C_Read... [17:19:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:19:38]Read from MH i2c: E2 [17:19:38]MH_I2C_Read... [17:19:38]Read from MH i2c: E2 03 00 [17:19:38]MH_I2C_Read... [17:19:38]Read from MH i2c: E2 03 00 F5 0E 00 90 00 77 [17:19:38]RAPDU: 90 00 [17:19:38]wFMCommunicate OK [17:19:38]SAM_PROTO_ClearQueue done [17:19:38]KKMCreateOFDPacket [17:19:38]OFDProtocolAddRootSTLVToBuf [17:19:38]FM_MakeSignedData [17:19:38]FM_MakeSignedData [17:19:38]SAM_PROTO_SignData [17:19:38]wFMCommunicate request_size=4 [17:19:38]MH_SAM_APDU [17:19:38]CAPDU: 80 0D 01 02 [17:19:38]Write to MH i2c: E2 08 00 F6 0E 80 0D 01 02 00 00 00 00 7D [17:19:38]Write i2c OK [17:19:38]MH_I2C_Read... [17:19:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:19:38]Read from MH i2c: E2 [17:19:38]MH_I2C_Read... [17:19:38]Read from MH i2c: E2 03 00 [17:19:38]MH_I2C_Read... [17:19:38]Read from MH i2c: E2 03 00 F6 0E 00 90 00 78 [17:19:38]RAPDU: 90 00 [17:19:38]wFMCommunicate OK [17:19:38]wFMCommunicate request_size=255 [17:19:38]MH_SAM_APDU [17:19:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 01 00 00 F4 03 04 00 AA 3B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DA 78 03 00 35 04 06 00 86 [17:19:38]Write to MH i2c: E2 02 01 F7 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 01 00 00 F4 03 04 00 AA 3B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DA 78 03 00 35 04 06 00 86 00 00 C1 [17:19:38]Write i2c OK [17:19:38]MH_I2C_Read... [17:19:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:38]Read from MH i2c: E2 [17:19:38]MH_I2C_Read... [17:19:38]Read from MH i2c: E2 03 00 [17:19:38]MH_I2C_Read... [17:19:38]Read from MH i2c: E2 03 00 F7 0E 00 90 00 79 [17:19:38]RAPDU: 90 00 [17:19:38]wFMCommunicate OK [17:19:38]wFMCommunicate request_size=10 [17:19:38]MH_SAM_APDU [17:19:38]CAPDU: 80 0D 02 02 05 D6 E1 06 72 0D [17:19:38]Write to MH i2c: E2 0D 00 F8 0E 80 0D 02 02 05 00 D6 E1 06 72 0D 00 00 C6 [17:19:38]Write i2c OK [17:19:38]MH_I2C_Read... [17:19:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:38]Read from MH i2c: E2 [17:19:38]MH_I2C_Read... [17:19:38]Read from MH i2c: E2 03 00 [17:19:38]MH_I2C_Read... [17:19:38]Read from MH i2c: E2 03 00 F8 0E 00 90 00 7A [17:19:38]RAPDU: 90 00 [17:19:38]wFMCommunicate OK [17:19:38]wFMCommunicate request_size=4 [17:19:38]MH_SAM_APDU [17:19:38]CAPDU: 80 0D 03 02 [17:19:38]Write to MH i2c: E2 08 00 F9 0E 80 0D 03 02 00 00 00 00 82 [17:19:38]Write i2c OK [17:19:38]MH_I2C_Read... [17:19:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:19:38]Read from MH i2c: E2 [17:19:38]MH_I2C_Read... [17:19:38]Read from MH i2c: E2 0B 00 [17:19:38]MH_I2C_Read... [17:19:38]Read from MH i2c: E2 0B 00 F9 0E 00 C9 AE 34 CC 57 E9 7B AF 90 00 64 [17:19:38]RAPDU: C9 AE 34 CC 57 E9 7B AF 90 00 [17:19:38]wFMCommunicate OK [17:19:38]SAM_PROTO_SignData done [17:19:38]FM_MakeSignedData done [17:19:38]CreateOFDProtocolMessage [17:19:38]wFMCommunicate request_size=4 [17:19:38]MH_SAM_APDU [17:19:38]CAPDU: 80 11 00 00 [17:19:38]Write to MH i2c: E2 08 00 FA 0E 80 11 00 00 00 00 00 00 82 [17:19:38]Write i2c OK [17:19:38]MH_I2C_Read... [17:19:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:38]Read from MH i2c: E2 [17:19:38]MH_I2C_Read... [17:19:38]Read from MH i2c: E2 17 00 [17:19:38]MH_I2C_Read... [17:19:38]Read from MH i2c: E2 17 00 FA 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D9 [17:19:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:19:38]wFMCommunicate OK [17:19:38]CreateOFDProtocolMessage done [17:19:38]OFDSenderStorePacket 227546 [17:19:38]StoreOFDPacket docnum=227546 [17:19:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 A4 A7 07 01 34 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 01 00 00 F4 03 04 00 AA 3B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DA 78 03 00 35 04 06 00 86 D6 E1 06 72 0D C9 AE 34 CC 57 E9 7B AF [17:19:38]CheckFolder [17:19:38]dirname=/storage/ofd_packets [17:19:38]CheckFolder done [17:19:38]ProducePacketName [17:19:38]name=ofd_packets/00227546 [17:19:38]NVStorageSaveData ofd_packets/00227546 [17:19:38]File name is /storage/ofd_packets/00227546 [17:19:38]Write 301 bytes [17:19:38]NVStorageSaveData done [17:19:38]OFDSenderStorePacket done [17:19:38]KKMCreateOFDPacket done [17:19:38]NVStorageSaveData kkm_last_timestamp [17:19:38]File name is /storage/kkm_last_timestamp [17:19:38]Write 4 bytes [17:19:38]NVStorageSaveData done [17:19:38]ExternCall_PrintAddStr [17:19:38]wPrintStart [17:19:38]Write to MH i2c: 01 00 00 FB 0E 09 [17:19:38]Write i2c OK [17:19:38]MH_I2C_Read... [17:19:38]Read from MH i2c: 01 [17:19:38]MH_I2C_Read... [17:19:38]Read from MH i2c: 01 07 00 [17:19:38]MH_I2C_Read... [17:19:38]Read from MH i2c: 01 07 00 FB 0E 00 00 00 00 00 FF 0F 1E [17:19:38]RasterBufferAndPrint [17:19:38]line Счет N : (1)1963178 [17:19:38]line ИНН: 02508201610067 [17:19:38]line Контрольно-Кассовый Чек [17:19:38]line ПРОДАЖА [17:19:38]line ТРК (МРК, ГНК) : 53 [17:19:38]line Товар: 2710124130 [17:19:38]line Аи-92-К-5 [17:19:38]line 5.980 * 66.90 [17:19:38]line = 400.06 [17:19:38]line НДС 12% НСП 1% [17:19:38]line > о реализуемом товаре [17:19:38]line ОКРУГЛЕНИЕ: -0.06 [17:19:38]line ИТОГО: 400.00 [17:19:38]line Внесено: 400.00 [17:19:38]line СДАЧА: 0.00 [17:19:38]line НСП 1% : 3.54 [17:19:38]line НДС 12% : 42.48 [17:19:38]line Наличными: 400.00 [17:19:38]line Безнал.: 0.00 [17:19:38]line Место: АЗС № 133 "Партнер Нефть" [17:19:38]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:19:38]line СНО: Общий режим [17:19:38]line Чек 394 20.10.2024 17:19 [17:19:38]line Смена: 533 ФФД: 1.0 [17:19:38]line ЗНМ: 0300000091 [17:19:38]line РНМ: 0000000000091685 [17:19:38]line Версия ККМ: 001 [17:19:38]line ФМ: 0000000000871839 [17:19:38]line ФД: 227546 [17:19:38]line ФПД: 148257456419341 [17:19:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171938&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227546&fm=148257456419341&tin=02508201610067®Number=0000000000091685&sum=40000 [17:19:38]OFD Sender: Processing packet 227546 [packets to send 38, broken 37] [17:19:38]ProducePacketName [17:19:38]name=ofd_packets/00227546 [17:19:38]OFD Sender: To server: pG, [17:19:38]CommunicateWithHost lk.salyk.kg:30040 [17:19:38]ConnectInit lk.salyk.kg [17:19:38]written 0, free lines is 4095 [17:19:39]Connected sock=10 [17:19: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 33 39 0F 01 00 00 A4 A7 07 01 34 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 01 00 00 F4 03 04 00 AA 3B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DA 78 03 00 35 04 06 00 86 D6 E1 06 72 0D C9 AE 34 CC 57 E9 7B AF [17:19: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 33 39 4F 00 00 00 F8 8A 47 00 A5 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 33 39 10 04 04 00 DA 78 03 00 F4 03 04 00 A8 E6 14 67 B6 04 01 00 00 51 2A 46 D0 FC C9 38 68 [17:19:39]CommunicateWithHost err = 0 [17:19:39]CheckOFDResponse [17:19:39]1017 (14) - 77093643461234 [17:19:39]1041 (16) - 0000000000871839 [17:19:39]1040 (4) - 227546 [17:19:39]1012 (4) - 20.10.2024 11:16 [17:19:39]1206 (1) - 0 [17:19:39]OFD Sender: Remove packet 227546 [17:19:39]ProducePacketName [17:19:39]name=ofd_packets/00227546 [17:19:39]NVStorageDeleteData [17:19:39]Write to MH i2c: 01 00 00 25 0F 34 [17:19:39]Write i2c OK [17:19:39]MH_I2C_Read... [17:19:39]Read from MH i2c: 01 [17:19:39]MH_I2C_Read... [17:19:39]Read from MH i2c: 01 07 00 [17:19:39]MH_I2C_Read... [17:19:39]Read from MH i2c: 01 07 00 25 0F 00 00 00 00 00 05 0D 4D [17:19:39]RasterBufferAndPrint [17:19:39]line [17:19:39]line [17:19:39]line [17:19:39]line [17:19:39]line [17:19:39]written 0, free lines is 3339 [17:19:39]process_action close_receipt done [17:19:39]requested_data is exist [17:19:39]produce_requested_data [17:19:39]requested_item fm.sn is exist - process it [17:19:39]wFMCommunicate request_size=4 [17:19:39]MH_SAM_APDU [17:19:39]CAPDU: 80 11 00 00 [17:19:39]Write to MH i2c: E2 08 00 2C 0F 80 11 00 00 00 00 00 00 B5 [17:19:39]Write i2c OK [17:19:39]MH_I2C_Read... [17:19:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:39]Read from MH i2c: E2 [17:19:39]MH_I2C_Read... [17:19:39]Read from MH i2c: E2 17 00 [17:19:39]MH_I2C_Read... [17:19:39]Read from MH i2c: E2 17 00 2C 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 0C [17:19:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:19:39]wFMCommunicate OK [17:19:39]requested_item fd.num is exist - process it [17:19:39]SAM_PROTO_GetFieldsCounters [17:19:39]wFMCommunicate request_size=4 [17:19:39]MH_SAM_APDU [17:19:39]CAPDU: 80 13 00 00 [17:19:39]Write to MH i2c: E2 08 00 2D 0F 80 13 00 00 00 00 00 00 B8 [17:19:39]Write i2c OK [17:19:39]MH_I2C_Read... [17:19:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:19:39]Read from MH i2c: E2 [17:19:39]MH_I2C_Read... [17:19:39]Read from MH i2c: E2 62 00 [17:19:39]MH_I2C_Read... [17:19:39]Read from MH i2c: E2 62 00 2D 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 DA 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 8A 01 00 00 5E 04 04 00 8A 01 00 00 57 04 04 00 8B 01 00 00 19 04 04 00 00 00 00 00 90 00 EE [17:19: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 DA 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 8A 01 00 00 5E 04 04 00 8A 01 00 00 57 04 04 00 8B 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:19:39]wFMCommunicate OK [17:19:39]SAM_PROTO_GetFieldsCounters done [17:19:39]requested_item shift.num is exist - process it [17:19:39]requested_item shift.opened is exist - process it [17:19:39]req_shift_opened [17:19:39]FM_GetShiftState [17:19:39]SAM_PROTO_GetShiftState [17:19:39]wFMCommunicate request_size=4 [17:19:39]MH_SAM_APDU [17:19:39]CAPDU: 80 13 01 00 [17:19:39]Write to MH i2c: E2 08 00 2E 0F 80 13 01 00 00 00 00 00 BA [17:19:39]Write i2c OK [17:19:39]MH_I2C_Read... [17:19:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:39]Read from MH i2c: E2 [17:19:39]MH_I2C_Read... [17:19:39]Read from MH i2c: E2 0E 00 [17:19:39]MH_I2C_Read... [17:19:39]Read from MH i2c: E2 0E 00 2E 0F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 D4 [17:19:39]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:19:39]wFMCommunicate OK [17:19:39]SAM_PROTO_GetShiftState done [17:19:39]FM_GetShiftState done [17:19:39]req_shift_opened done [17:19:39]requested_item shift.open_date is exist - process it [17:19:39]req_shift_open_date [17:19:39]req_shift_open_date done [17:19:39]produce_requested_data done [17:19:39]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227546,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [17:19:39]process_action_free close_receipt [17:19:39]json_value_free [17:19:39]json_value_free done [17:19:39]process_json_proto returns [17:19:39]Send response to host [17:19:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227546,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [17:19:39]free response buf [17:19:39]execute_script done [17:19:39]execute_script returns [17:19:39]free content buf [17:19:39]Sock 9.Close socket [17:19:39]Sock 9.Thread stoped [17:19:39]OFD Sender: No OFD packet to send [17:19:44]OFD Sender: No OFD packet to send [17:19:49]OFD Sender: No OFD packet to send [17:19:54]OFD Sender: No OFD packet to send [17:19:59]OFD Sender: No OFD packet to send [17:20:04]OFD Sender: No OFD packet to send [17:20:09]OFD Sender: No OFD packet to send [17:20:14]OFD Sender: No OFD packet to send [17:20:19]OFD Sender: No OFD packet to send [17:20:24]OFD Sender: No OFD packet to send [17:20:29]OFD Sender: No OFD packet to send [17:20:34]OFD Sender: No OFD packet to send [17:20:39]OFD Sender: No OFD packet to send [17:20:44]OFD Sender: No OFD packet to send [17:20:49]OFD Sender: No OFD packet to send [17:20:54]OFD Sender: No OFD packet to send [17:20:59]OFD Sender: No OFD packet to send [17:21:04]OFD Sender: No OFD packet to send [17:21:09]OFD Sender: No OFD packet to send [17:21:14]OFD Sender: No OFD packet to send [17:21:19]OFD Sender: No OFD packet to send [17:21:24]OFD Sender: No OFD packet to send [17:21:29]OFD Sender: No OFD packet to send [17:21:34]OFD Sender: No OFD packet to send [17:21:39]OFD Sender: No OFD packet to send [17:21:44]OFD Sender: No OFD packet to send [17:21:49]OFD Sender: No OFD packet to send [17:21:54]OFD Sender: No OFD packet to send [17:21:59]accept exits with 7 [17:21:59]New connection [17:21:59]New thread 3067362660 created [17:21:59]Thread 3067219300 joined [17:21:59]Waiting for new connection... [17:21:59] Sock 7.Parse request [17:21:59]Sock 7.Check first char [17:21:59]Sock 7.First char is OK [17:21:59]request: POST /json_proto HTTP/1.0 [17:21:59]Method: POST [17:21:59]URL: /json_proto [17:21:59]Method is POST - this is cgi request [17:21:59]url: /json_proto [17:21:59]query_string will be loaded in cgi processing [17:21:59]execute_cgi json_proto POST (null) [17:21:59]execute_cgi path=json_proto method=POST [17:21:59]POST find Content-Length [17:21:59]Host: 172.17.44.195:8080 [17:21:59]Content-Length: 664 [17:21:59]Content-Type: application/json [17:21:59] [17:21:59]POST finish read [17:21:59]Found Content-Length = 664 [17:21:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963179", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:21:59]execute_script... [17:21: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)1963179", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:21:59]POST & json_proto [17:21:59]process_json_proto [17:21:59]json parsed OK: [17:21:59]protocol is kg_v1.0 [17:21:59]action value=close_receipt [17:21:59]process_action close_receipt [17:21:59]cmd_close_receipt [17:21:59]MH_GetDate [17:21:59]Write to MH i2c: F0 00 00 2F 0F 2D [17:21:59]Write i2c OK [17:21:59]MH_I2C_Read... [17:21:59]Read from MH i2c: F0 [17:21:59]MH_I2C_Read... [17:21:59]Read from MH i2c: F0 09 00 [17:21:59]MH_I2C_Read... [17:21:59]Read from MH i2c: F0 09 00 2F 0F 00 38 3C 15 67 82 C9 CF 66 A6 [17:21:59]GetLastDocTimeStamp 1729444778 [17:21:59]current date 1729444920 [17:21:59]FM_GetShiftState [17:21:59]SAM_PROTO_GetShiftState [17:21:59]wFMCommunicate request_size=4 [17:21:59]MH_SAM_APDU [17:21:59]CAPDU: 80 13 01 00 [17:21:59]Write to MH i2c: E2 08 00 30 0F 80 13 01 00 00 00 00 00 BC [17:21:59]Write i2c OK [17:21:59]MH_I2C_Read... [17:21:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:59]Read from MH i2c: E2 [17:21:59]MH_I2C_Read... [17:21:59]Read from MH i2c: E2 0E 00 [17:21:59]MH_I2C_Read... [17:21:59]Read from MH i2c: E2 0E 00 30 0F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 D6 [17:21:59]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:21:59]wFMCommunicate OK [17:21:59]SAM_PROTO_GetShiftState done [17:21:59]FM_GetShiftState done [17:21:59]opened in 1729383750 [17:21:59]opened+sec_in_day 1729470150 [17:21:59]quantity*price = 100000 [17:21:59]sum+1 = 100002 [17:21:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 395 20.10.2024 17:22 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227547 ФПД: 238882019258406 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T172200&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227547&fm=238882019258406&tin=02508201610067®Number=0000000000091685&sum=100000 [17:22:00]StoreToDocumentArchive [17:22:00]shift 533 fd 227547 [17:22:00]save to /storage/0533/doc_00227547 [17:22:00]save last doc name /storage/0533/doc_00227547 to /storage/kkm_last_doc_name [17:22:00]save OK [17:22:00]Clear old archive folders... [17:22:00]ProcessDocumentItem done err = 0, tmpTLVsize=244 [17:22:00]tlvbuf is 00D9D330 [17:22:00]SAM_PROTO_ClearQueue [17:22:00]wFMCommunicate request_size=4 [17:22:00]MH_SAM_APDU [17:22:00]CAPDU: 80 09 00 00 [17:22:00]Write to MH i2c: E2 08 00 3D 0F 80 09 00 00 00 00 00 00 BE [17:22:00]Write i2c OK [17:22:00]MH_I2C_Read... [17:22:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:22:00]Read from MH i2c: E2 [17:22:00]MH_I2C_Read... [17:22:00]Read from MH i2c: E2 03 00 [17:22:00]MH_I2C_Read... [17:22:00]Read from MH i2c: E2 03 00 3D 0F 00 90 00 C0 [17:22:00]RAPDU: 90 00 [17:22:00]wFMCommunicate OK [17:22:00]SAM_PROTO_ClearQueue done [17:22:00]KKMCreateOFDPacket [17:22:00]OFDProtocolAddRootSTLVToBuf [17:22:00]FM_MakeSignedData [17:22:00]FM_MakeSignedData [17:22:00]SAM_PROTO_SignData [17:22:00]wFMCommunicate request_size=4 [17:22:00]MH_SAM_APDU [17:22:00]CAPDU: 80 0D 01 02 [17:22:00]Write to MH i2c: E2 08 00 3E 0F 80 0D 01 02 00 00 00 00 C6 [17:22:00]Write i2c OK [17:22:00]MH_I2C_Read... [17:22:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:22:00]Read from MH i2c: E2 [17:22:00]MH_I2C_Read... [17:22:00]Read from MH i2c: E2 03 00 [17:22:00]MH_I2C_Read... [17:22:00]Read from MH i2c: E2 03 00 3E 0F 00 90 00 C1 [17:22:00]RAPDU: 90 00 [17:22:00]wFMCommunicate OK [17:22:00]wFMCommunicate request_size=253 [17:22:00]MH_SAM_APDU [17:22:00]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 01 00 00 F4 03 04 00 38 3C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DB 78 03 00 35 04 06 00 D9 43 0D E6 B0 26 [17:22:00]Write to MH i2c: E2 00 01 3F 0F 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 01 00 00 F4 03 04 00 38 3C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DB 78 03 00 35 04 06 00 D9 43 0D E6 B0 26 00 00 0E [17:22:00]Write i2c OK [17:22:00]MH_I2C_Read... [17:22:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:22:00]Read from MH i2c: E2 [17:22:00]MH_I2C_Read... [17:22:00]Read from MH i2c: E2 03 00 [17:22:00]MH_I2C_Read... [17:22:00]Read from MH i2c: E2 03 00 3F 0F 00 90 00 C2 [17:22:00]RAPDU: 90 00 [17:22:00]wFMCommunicate OK [17:22:00]wFMCommunicate request_size=4 [17:22:00]MH_SAM_APDU [17:22:00]CAPDU: 80 0D 03 02 [17:22:00]Write to MH i2c: E2 08 00 40 0F 80 0D 03 02 00 00 00 00 CA [17:22:00]Write i2c OK [17:22:00]MH_I2C_Read... [17:22:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:22:00]Read from MH i2c: E2 [17:22:00]MH_I2C_Read... [17:22:00]Read from MH i2c: E2 0B 00 [17:22:00]MH_I2C_Read... [17:22:00]Read from MH i2c: E2 0B 00 40 0F 00 43 EA A9 6A 9E 69 C9 1E 90 00 F9 [17:22:00]RAPDU: 43 EA A9 6A 9E 69 C9 1E 90 00 [17:22:00]wFMCommunicate OK [17:22:00]SAM_PROTO_SignData done [17:22:00]FM_MakeSignedData done [17:22:00]CreateOFDProtocolMessage [17:22:00]wFMCommunicate request_size=4 [17:22:00]MH_SAM_APDU [17:22:00]CAPDU: 80 11 00 00 [17:22:00]Write to MH i2c: E2 08 00 41 0F 80 11 00 00 00 00 00 00 CA [17:22:00]Write i2c OK [17:22:00]MH_I2C_Read... [17:22:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:22:00]Read from MH i2c: E2 [17:22:00]MH_I2C_Read... [17:22:00]Read from MH i2c: E2 17 00 [17:22:00]MH_I2C_Read... [17:22:00]Read from MH i2c: E2 17 00 41 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 21 [17:22:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:22:00]wFMCommunicate OK [17:22:00]CreateOFDProtocolMessage done [17:22:00]OFDSenderStorePacket 227547 [17:22:00]StoreOFDPacket docnum=227547 [17:22:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 9E D8 00 01 56 48 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 01 00 00 F4 03 04 00 38 3C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DB 78 03 00 35 04 06 00 D9 43 0D E6 B0 26 43 EA A9 6A 9E 69 C9 1E [17:22:00]CheckFolder [17:22:00]dirname=/storage/ofd_packets [17:22:00]CheckFolder done [17:22:00]ProducePacketName [17:22:00]name=ofd_packets/00227547 [17:22:00]NVStorageSaveData ofd_packets/00227547 [17:22:00]File name is /storage/ofd_packets/00227547 [17:22:00]Write 294 bytes [17:22:00]NVStorageSaveData done [17:22:00]OFDSenderStorePacket done [17:22:00]KKMCreateOFDPacket done [17:22:00]NVStorageSaveData kkm_last_timestamp [17:22:00]File name is /storage/kkm_last_timestamp [17:22:00]Write 4 bytes [17:22:00]NVStorageSaveData done [17:22:00]ExternCall_PrintAddStr [17:22:00]wPrintStart [17:22:00]Write to MH i2c: 01 00 00 42 0F 51 [17:22:00]Write i2c OK [17:22:00]MH_I2C_Read... [17:22:00]Read from MH i2c: 01 [17:22:00]MH_I2C_Read... [17:22:00]Read from MH i2c: 01 07 00 [17:22:00]MH_I2C_Read... [17:22:00]Read from MH i2c: 01 07 00 42 0F 00 00 00 00 00 FF 0F 66 [17:22:00]RasterBufferAndPrint [17:22:00]line Счет N : (1)1963179 [17:22:00]line ИНН: 02508201610067 [17:22:00]line Контрольно-Кассовый Чек [17:22:00]line ПРОДАЖА [17:22:00]line ТРК (МРК, ГНК) : 62 [17:22:00]line Товар: 2710124130 [17:22:00]line SU-92 [17:22:00]line 14.620 * 68.40 [17:22:00]line = 1000.01 [17:22:00]line НДС 12% НСП 1% [17:22:00]line > о реализуемом товаре [17:22:00]line ОКРУГЛЕНИЕ: -0.01 [17:22:00]line ИТОГО: 1000.00 [17:22:00]line Внесено: 1000.00 [17:22:00]line СДАЧА: 0.00 [17:22:00]line НСП 1% : 8.85 [17:22:00]line НДС 12% : 106.20 [17:22:00]line Наличными: 1000.00 [17:22:00]line Безнал.: 0.00 [17:22:00]line Место: АЗС № 133 "Партнер Нефть" [17:22:00]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:22:00]line СНО: Общий режим [17:22:00]line Чек 395 20.10.2024 17:22 [17:22:00]line Смена: 533 ФФД: 1.0 [17:22:00]line ЗНМ: 0300000091 [17:22:00]line РНМ: 0000000000091685 [17:22:00]line Версия ККМ: 001 [17:22:00]line ФМ: 0000000000871839 [17:22:00]line ФД: 227547 [17:22:00]line ФПД: 238882019258406 [17:22:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T172200&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227547&fm=238882019258406&tin=02508201610067®Number=0000000000091685&sum=100000 [17:22:01]OFD Sender: Processing packet 227547 [packets to send 38, broken 37] [17:22:01]ProducePacketName [17:22:01]name=ofd_packets/00227547 [17:22:01]OFD Sender: To server: pG, [17:22:01]CommunicateWithHost lk.salyk.kg:30040 [17:22:01]ConnectInit lk.salyk.kg [17:22:01]written 0, free lines is 4095 [17:22:01]Connected sock=10 [17:22: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 33 39 08 01 00 00 9E D8 00 01 56 48 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 01 00 00 F4 03 04 00 38 3C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DB 78 03 00 35 04 06 00 D9 43 0D E6 B0 26 43 EA A9 6A 9E 69 C9 1E [17:22: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 33 39 4F 00 00 00 8F E6 47 00 24 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 33 39 10 04 04 00 DB 78 03 00 F4 03 04 00 36 E7 14 67 B6 04 01 00 00 73 81 67 8F C0 EC 0B C0 [17:22:01]CommunicateWithHost err = 0 [17:22:01]CheckOFDResponse [17:22:01]1017 (14) - 77093643461234 [17:22:01]1041 (16) - 0000000000871839 [17:22:01]1040 (4) - 227547 [17:22:01]1012 (4) - 20.10.2024 11:19 [17:22:01]1206 (1) - 0 [17:22:01]OFD Sender: Remove packet 227547 [17:22:01]ProducePacketName [17:22:01]name=ofd_packets/00227547 [17:22:01]NVStorageDeleteData [17:22:01]Write to MH i2c: 01 00 00 6C 0F 7B [17:22:01]Write i2c OK [17:22:01]MH_I2C_Read... [17:22:01]Read from MH i2c: 01 [17:22:01]MH_I2C_Read... [17:22:01]Read from MH i2c: 01 07 00 [17:22:01]MH_I2C_Read... [17:22:01]Read from MH i2c: 01 07 00 6C 0F 00 00 00 00 00 09 0D 98 [17:22:01]RasterBufferAndPrint [17:22:01]line [17:22:01]line [17:22:01]line [17:22:01]line [17:22:01]line [17:22:01]written 0, free lines is 3343 [17:22:01]process_action close_receipt done [17:22:01]requested_data is exist [17:22:01]produce_requested_data [17:22:01]requested_item fm.sn is exist - process it [17:22:01]wFMCommunicate request_size=4 [17:22:01]MH_SAM_APDU [17:22:01]CAPDU: 80 11 00 00 [17:22:01]Write to MH i2c: E2 08 00 73 0F 80 11 00 00 00 00 00 00 FC [17:22:01]Write i2c OK [17:22:01]MH_I2C_Read... [17:22:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:22:01]Read from MH i2c: E2 [17:22:01]MH_I2C_Read... [17:22:01]Read from MH i2c: E2 17 00 [17:22:01]MH_I2C_Read... [17:22:01]Read from MH i2c: E2 17 00 73 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 53 [17:22:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:22:01]wFMCommunicate OK [17:22:01]requested_item fd.num is exist - process it [17:22:01]SAM_PROTO_GetFieldsCounters [17:22:01]wFMCommunicate request_size=4 [17:22:01]MH_SAM_APDU [17:22:01]CAPDU: 80 13 00 00 [17:22:01]Write to MH i2c: E2 08 00 74 0F 80 13 00 00 00 00 00 00 FF [17:22:01]Write i2c OK [17:22:01]MH_I2C_Read... [17:22:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:22:01]Read from MH i2c: E2 [17:22:01]MH_I2C_Read... [17:22:01]Read from MH i2c: E2 62 00 [17:22:01]MH_I2C_Read... [17:22:01]Read from MH i2c: E2 62 00 74 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 DB 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 8B 01 00 00 5E 04 04 00 8B 01 00 00 57 04 04 00 8C 01 00 00 19 04 04 00 00 00 00 00 90 00 39 [17:22:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 DB 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 8B 01 00 00 5E 04 04 00 8B 01 00 00 57 04 04 00 8C 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:22:01]wFMCommunicate OK [17:22:01]SAM_PROTO_GetFieldsCounters done [17:22:01]requested_item shift.num is exist - process it [17:22:01]requested_item shift.opened is exist - process it [17:22:01]req_shift_opened [17:22:01]FM_GetShiftState [17:22:01]SAM_PROTO_GetShiftState [17:22:01]wFMCommunicate request_size=4 [17:22:01]MH_SAM_APDU [17:22:01]CAPDU: 80 13 01 00 [17:22:01]Write to MH i2c: E2 08 00 75 0F 80 13 01 00 00 00 00 00 01 [17:22:01]Write i2c OK [17:22:01]MH_I2C_Read... [17:22:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:01]Read from MH i2c: E2 [17:22:01]MH_I2C_Read... [17:22:01]Read from MH i2c: E2 0E 00 [17:22:01]MH_I2C_Read... [17:22:01]Read from MH i2c: E2 0E 00 75 0F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 1B [17:22:01]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:22:01]wFMCommunicate OK [17:22:01]SAM_PROTO_GetShiftState done [17:22:01]FM_GetShiftState done [17:22:01]req_shift_opened done [17:22:01]requested_item shift.open_date is exist - process it [17:22:01]req_shift_open_date [17:22:01]req_shift_open_date done [17:22:01]produce_requested_data done [17:22:01]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227547,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [17:22:01]process_action_free close_receipt [17:22:01]json_value_free [17:22:01]json_value_free done [17:22:01]process_json_proto returns [17:22:01]Send response to host [17:22:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227547,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [17:22:01]free response buf [17:22:01]execute_script done [17:22:01]execute_script returns [17:22:01]free content buf [17:22:01]Sock 7.Close socket [17:22:01]Sock 7.Thread stoped [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:19]accept exits with 9 [17:24:19]New connection [17:24:19]New thread 3067219300 created [17:24:19]Thread 3067362660 joined [17:24:19]Waiting for new connection... [17:24:19] Sock 9.Parse request [17:24:19]Sock 9.Check first char [17:24:19]Sock 9.First char is OK [17:24:19]request: POST /json_proto HTTP/1.0 [17:24:19]Method: POST [17:24:19]URL: /json_proto [17:24:19]Method is POST - this is cgi request [17:24:19]url: /json_proto [17:24:19]query_string will be loaded in cgi processing [17:24:19]execute_cgi json_proto POST (null) [17:24:19]execute_cgi path=json_proto method=POST [17:24:19]POST find Content-Length [17:24:19]Host: 172.17.44.195:8080 [17:24:19]Content-Length: 683 [17:24:19]Content-Type: application/json [17:24:19] [17:24:19]POST finish read [17:24:19]Found Content-Length = 683 [17:24:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963180", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:19]execute_script... [17:24: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)1963180", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:19]POST & json_proto [17:24:19]process_json_proto [17:24:19]json parsed OK: [17:24:19]protocol is kg_v1.0 [17:24:19]action value=close_receipt [17:24:19]process_action close_receipt [17:24:19]cmd_close_receipt [17:24:19]MH_GetDate [17:24:19]Write to MH i2c: F0 00 00 76 0F 74 [17:24:19]Write i2c OK [17:24:19]MH_I2C_Read... [17:24:19]Read from MH i2c: F0 [17:24:19]MH_I2C_Read... [17:24:19]Read from MH i2c: F0 09 00 [17:24:19]MH_I2C_Read... [17:24:19]Read from MH i2c: F0 09 00 76 0F 00 C4 3C 15 67 82 C9 CF 66 79 [17:24:19]GetLastDocTimeStamp 1729444920 [17:24:19]current date 1729445060 [17:24:19]FM_GetShiftState [17:24:19]SAM_PROTO_GetShiftState [17:24:19]wFMCommunicate request_size=4 [17:24:19]MH_SAM_APDU [17:24:19]CAPDU: 80 13 01 00 [17:24:19]Write to MH i2c: E2 08 00 77 0F 80 13 01 00 00 00 00 00 03 [17:24:19]Write i2c OK [17:24:19]MH_I2C_Read... [17:24:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:19]Read from MH i2c: E2 [17:24:19]MH_I2C_Read... [17:24:19]Read from MH i2c: E2 0E 00 [17:24:19]MH_I2C_Read... [17:24:19]Read from MH i2c: E2 0E 00 77 0F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 1D [17:24:19]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:24:19]wFMCommunicate OK [17:24:19]SAM_PROTO_GetShiftState done [17:24:19]FM_GetShiftState done [17:24:19]opened in 1729383750 [17:24:19]opened+sec_in_day 1729470150 [17:24:19]quantity*price = 100015 [17:24:19]sum+1 = 100017 [17:24:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 396 20.10.2024 17:24 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227548 ФПД: 242611359776470 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T172420&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227548&fm=242611359776470&tin=02508201610067®Number=0000000000091685&sum=100000 [17:24:20]StoreToDocumentArchive [17:24:20]shift 533 fd 227548 [17:24:20]save to /storage/0533/doc_00227548 [17:24:20]save last doc name /storage/0533/doc_00227548 to /storage/kkm_last_doc_name [17:24:20]save OK [17:24:20]Clear old archive folders... [17:24:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:24:20]tlvbuf is 00DEBC50 [17:24:20]SAM_PROTO_ClearQueue [17:24:20]wFMCommunicate request_size=4 [17:24:20]MH_SAM_APDU [17:24:20]CAPDU: 80 09 00 00 [17:24:20]Write to MH i2c: E2 08 00 84 0F 80 09 00 00 00 00 00 00 05 [17:24:20]Write i2c OK [17:24:20]MH_I2C_Read... [17:24:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:24:20]Read from MH i2c: E2 [17:24:20]MH_I2C_Read... [17:24:20]Read from MH i2c: E2 03 00 [17:24:20]MH_I2C_Read... [17:24:20]Read from MH i2c: E2 03 00 84 0F 00 90 00 07 [17:24:20]RAPDU: 90 00 [17:24:20]wFMCommunicate OK [17:24:20]SAM_PROTO_ClearQueue done [17:24:20]KKMCreateOFDPacket [17:24:20]OFDProtocolAddRootSTLVToBuf [17:24:20]FM_MakeSignedData [17:24:20]FM_MakeSignedData [17:24:20]SAM_PROTO_SignData [17:24:20]wFMCommunicate request_size=4 [17:24:20]MH_SAM_APDU [17:24:20]CAPDU: 80 0D 01 02 [17:24:20]Write to MH i2c: E2 08 00 85 0F 80 0D 01 02 00 00 00 00 0D [17:24:20]Write i2c OK [17:24:20]MH_I2C_Read... [17:24:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:24:20]Read from MH i2c: E2 [17:24:20]MH_I2C_Read... [17:24:20]Read from MH i2c: E2 03 00 [17:24:20]MH_I2C_Read... [17:24:20]Read from MH i2c: E2 03 00 85 0F 00 90 00 08 [17:24:20]RAPDU: 90 00 [17:24:20]wFMCommunicate OK [17:24:20]wFMCommunicate request_size=255 [17:24:20]MH_SAM_APDU [17:24:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 01 00 00 F4 03 04 00 C4 3C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DC 78 03 00 35 04 06 00 DC [17:24:20]Write to MH i2c: E2 02 01 86 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 01 00 00 F4 03 04 00 C4 3C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DC 78 03 00 35 04 06 00 DC 00 00 F1 [17:24:20]Write i2c OK [17:24:20]MH_I2C_Read... [17:24:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:20]Read from MH i2c: E2 [17:24:20]MH_I2C_Read... [17:24:20]Read from MH i2c: E2 03 00 [17:24:20]MH_I2C_Read... [17:24:20]Read from MH i2c: E2 03 00 86 0F 00 90 00 09 [17:24:20]RAPDU: 90 00 [17:24:20]wFMCommunicate OK [17:24:20]wFMCommunicate request_size=10 [17:24:20]MH_SAM_APDU [17:24:20]CAPDU: 80 0D 02 02 05 A7 5B EA FE D6 [17:24:20]Write to MH i2c: E2 0D 00 87 0F 80 0D 02 02 05 00 A7 5B EA FE D6 00 00 DA [17:24:20]Write i2c OK [17:24:20]MH_I2C_Read... [17:24:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:20]Read from MH i2c: E2 [17:24:20]MH_I2C_Read... [17:24:20]Read from MH i2c: E2 03 00 [17:24:20]MH_I2C_Read... [17:24:20]Read from MH i2c: E2 03 00 87 0F 00 90 00 0A [17:24:20]RAPDU: 90 00 [17:24:20]wFMCommunicate OK [17:24:20]wFMCommunicate request_size=4 [17:24:20]MH_SAM_APDU [17:24:20]CAPDU: 80 0D 03 02 [17:24:20]Write to MH i2c: E2 08 00 88 0F 80 0D 03 02 00 00 00 00 12 [17:24:20]Write i2c OK [17:24:20]MH_I2C_Read... [17:24:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:24:20]Read from MH i2c: E2 [17:24:20]MH_I2C_Read... [17:24:20]Read from MH i2c: E2 0B 00 [17:24:20]MH_I2C_Read... [17:24:20]Read from MH i2c: E2 0B 00 88 0F 00 A6 42 3C E7 51 9B C5 05 90 00 D4 [17:24:20]RAPDU: A6 42 3C E7 51 9B C5 05 90 00 [17:24:20]wFMCommunicate OK [17:24:20]SAM_PROTO_SignData done [17:24:20]FM_MakeSignedData done [17:24:20]CreateOFDProtocolMessage [17:24:20]wFMCommunicate request_size=4 [17:24:20]MH_SAM_APDU [17:24:20]CAPDU: 80 11 00 00 [17:24:20]Write to MH i2c: E2 08 00 89 0F 80 11 00 00 00 00 00 00 12 [17:24:20]Write i2c OK [17:24:20]MH_I2C_Read... [17:24:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:20]Read from MH i2c: E2 [17:24:20]MH_I2C_Read... [17:24:20]Read from MH i2c: E2 17 00 [17:24:20]MH_I2C_Read... [17:24:20]Read from MH i2c: E2 17 00 89 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 69 [17:24:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:24:20]wFMCommunicate OK [17:24:20]CreateOFDProtocolMessage done [17:24:20]OFDSenderStorePacket 227548 [17:24:20]StoreOFDPacket docnum=227548 [17:24:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 0C 78 07 01 29 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 01 00 00 F4 03 04 00 C4 3C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DC 78 03 00 35 04 06 00 DC A7 5B EA FE D6 A6 42 3C E7 51 9B C5 05 [17:24:20]CheckFolder [17:24:20]dirname=/storage/ofd_packets [17:24:20]CheckFolder done [17:24:20]ProducePacketName [17:24:20]name=ofd_packets/00227548 [17:24:20]NVStorageSaveData ofd_packets/00227548 [17:24:20]File name is /storage/ofd_packets/00227548 [17:24:20]Write 301 bytes [17:24:20]NVStorageSaveData done [17:24:20]OFDSenderStorePacket done [17:24:20]KKMCreateOFDPacket done [17:24:20]NVStorageSaveData kkm_last_timestamp [17:24:20]File name is /storage/kkm_last_timestamp [17:24:20]Write 4 bytes [17:24:20]NVStorageSaveData done [17:24:20]ExternCall_PrintAddStr [17:24:20]wPrintStart [17:24:20]Write to MH i2c: 01 00 00 8A 0F 99 [17:24:20]Write i2c OK [17:24:20]MH_I2C_Read... [17:24:20]Read from MH i2c: 01 [17:24:20]MH_I2C_Read... [17:24:20]Read from MH i2c: 01 07 00 [17:24:20]MH_I2C_Read... [17:24:20]Read from MH i2c: 01 07 00 8A 0F 00 00 00 00 00 FF 0F AE [17:24:20]RasterBufferAndPrint [17:24:20]line Счет N : (1)1963180 [17:24:20]line ИНН: 02508201610067 [17:24:20]line Контрольно-Кассовый Чек [17:24:20]line ПРОДАЖА [17:24:20]line ТРК (МРК, ГНК) : 43 [17:24:20]line Товар: 2710124130 [17:24:20]line Аи-92-К-5 [17:24:20]line 14.950 * 66.90 [17:24:20]line = 1000.16 [17:24:20]line НДС 12% НСП 1% [17:24:20]line > о реализуемом товаре [17:24:20]line ОКРУГЛЕНИЕ: -0.16 [17:24:20]line ИТОГО: 1000.00 [17:24:20]line Внесено: 1000.00 [17:24:20]line СДАЧА: 0.00 [17:24:20]line НСП 1% : 8.85 [17:24:20]line НДС 12% : 106.21 [17:24:20]line Наличными: 1000.00 [17:24:20]line Безнал.: 0.00 [17:24:20]line Место: АЗС № 133 "Партнер Нефть" [17:24:20]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:24:20]line СНО: Общий режим [17:24:20]line Чек 396 20.10.2024 17:24 [17:24:20]line Смена: 533 ФФД: 1.0 [17:24:20]line ЗНМ: 0300000091 [17:24:20]line РНМ: 0000000000091685 [17:24:20]line Версия ККМ: 001 [17:24:20]line ФМ: 0000000000871839 [17:24:20]line ФД: 227548 [17:24:20]line ФПД: 242611359776470 [17:24:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T172420&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227548&fm=242611359776470&tin=02508201610067®Number=0000000000091685&sum=100000 [17:24:21]OFD Sender: Processing packet 227548 [packets to send 38, broken 37] [17:24:21]ProducePacketName [17:24:21]name=ofd_packets/00227548 [17:24:21]OFD Sender: To server: pG, [17:24:21]CommunicateWithHost lk.salyk.kg:30040 [17:24:21]ConnectInit lk.salyk.kg [17:24:21]written 0, free lines is 4095 [17:24:21]Connected sock=10 [17:24: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 33 39 0F 01 00 00 0C 78 07 01 29 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 01 00 00 F4 03 04 00 C4 3C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DC 78 03 00 35 04 06 00 DC A7 5B EA FE D6 A6 42 3C E7 51 9B C5 05 [17:24: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 33 39 4F 00 00 00 0C A0 47 00 97 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 33 39 10 04 04 00 DC 78 03 00 F4 03 04 00 C2 E7 14 67 B6 04 01 00 00 96 A2 21 B4 EA B2 AC 27 [17:24:21]CommunicateWithHost err = 0 [17:24:21]CheckOFDResponse [17:24:21]1017 (14) - 77093643461234 [17:24:21]1041 (16) - 0000000000871839 [17:24:21]1040 (4) - 227548 [17:24:21]1012 (4) - 20.10.2024 11:21 [17:24:21]1206 (1) - 0 [17:24:21]OFD Sender: Remove packet 227548 [17:24:21]ProducePacketName [17:24:21]name=ofd_packets/00227548 [17:24:21]NVStorageDeleteData [17:24:21]Write to MH i2c: 01 00 00 B4 0F C3 [17:24:21]Write i2c OK [17:24:21]MH_I2C_Read... [17:24:21]Read from MH i2c: 01 [17:24:21]MH_I2C_Read... [17:24:21]Read from MH i2c: 01 07 00 [17:24:21]MH_I2C_Read... [17:24:21]Read from MH i2c: 01 07 00 B4 0F 00 00 00 00 00 01 0D D8 [17:24:21]RasterBufferAndPrint [17:24:21]line [17:24:21]line [17:24:21]line [17:24:21]line [17:24:21]line [17:24:21]written 0, free lines is 3335 [17:24:21]process_action close_receipt done [17:24:21]requested_data is exist [17:24:21]produce_requested_data [17:24:21]requested_item fm.sn is exist - process it [17:24:21]wFMCommunicate request_size=4 [17:24:21]MH_SAM_APDU [17:24:21]CAPDU: 80 11 00 00 [17:24:21]Write to MH i2c: E2 08 00 BB 0F 80 11 00 00 00 00 00 00 44 [17:24:21]Write i2c OK [17:24:21]MH_I2C_Read... [17:24:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:21]Read from MH i2c: E2 [17:24:21]MH_I2C_Read... [17:24:21]Read from MH i2c: E2 17 00 [17:24:21]MH_I2C_Read... [17:24:21]Read from MH i2c: E2 17 00 BB 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 9B [17:24:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:24:21]wFMCommunicate OK [17:24:21]requested_item fd.num is exist - process it [17:24:21]SAM_PROTO_GetFieldsCounters [17:24:21]wFMCommunicate request_size=4 [17:24:21]MH_SAM_APDU [17:24:21]CAPDU: 80 13 00 00 [17:24:21]Write to MH i2c: E2 08 00 BC 0F 80 13 00 00 00 00 00 00 47 [17:24:21]Write i2c OK [17:24:21]MH_I2C_Read... [17:24:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:24:21]Read from MH i2c: E2 [17:24:21]MH_I2C_Read... [17:24:21]Read from MH i2c: E2 62 00 [17:24:21]MH_I2C_Read... [17:24:21]Read from MH i2c: E2 62 00 BC 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 DC 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 8C 01 00 00 5E 04 04 00 8C 01 00 00 57 04 04 00 8D 01 00 00 19 04 04 00 00 00 00 00 90 00 85 [17:24: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 DC 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 8C 01 00 00 5E 04 04 00 8C 01 00 00 57 04 04 00 8D 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:24:21]wFMCommunicate OK [17:24:21]SAM_PROTO_GetFieldsCounters done [17:24:21]requested_item shift.num is exist - process it [17:24:21]requested_item shift.opened is exist - process it [17:24:21]req_shift_opened [17:24:21]FM_GetShiftState [17:24:21]SAM_PROTO_GetShiftState [17:24:21]wFMCommunicate request_size=4 [17:24:21]MH_SAM_APDU [17:24:21]CAPDU: 80 13 01 00 [17:24:21]Write to MH i2c: E2 08 00 BD 0F 80 13 01 00 00 00 00 00 49 [17:24:21]Write i2c OK [17:24:21]MH_I2C_Read... [17:24:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:21]Read from MH i2c: E2 [17:24:21]MH_I2C_Read... [17:24:21]Read from MH i2c: E2 0E 00 [17:24:21]MH_I2C_Read... [17:24:21]Read from MH i2c: E2 0E 00 BD 0F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 63 [17:24:21]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:24:21]wFMCommunicate OK [17:24:21]SAM_PROTO_GetShiftState done [17:24:21]FM_GetShiftState done [17:24:21]req_shift_opened done [17:24:21]requested_item shift.open_date is exist - process it [17:24:21]req_shift_open_date [17:24:21]req_shift_open_date done [17:24:21]produce_requested_data done [17:24:21]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227548,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [17:24:21]process_action_free close_receipt [17:24:21]json_value_free [17:24:21]json_value_free done [17:24:21]process_json_proto returns [17:24:21]Send response to host [17:24:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227548,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [17:24:21]free response buf [17:24:21]execute_script done [17:24:21]execute_script returns [17:24:21]free content buf [17:24:21]Sock 9.Close socket [17:24:21]Sock 9.Thread stoped [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:07]OFD Sender: No OFD packet to send [17:25:12]OFD Sender: No OFD packet to send [17:25:17]OFD Sender: No OFD packet to send [17:25:22]OFD Sender: No OFD packet to send [17:25:27]OFD Sender: No OFD packet to send [17:25:30]accept exits with 7 [17:25:30]New connection [17:25:30]New thread 3067362660 created [17:25:30]Thread 3067219300 joined [17:25:30]Waiting for new connection... [17:25:30] Sock 7.Parse request [17:25:30]Sock 7.Check first char [17:25:30]Sock 7.First char is OK [17:25:30]request: POST /json_proto HTTP/1.0 [17:25:30]Method: POST [17:25:30]URL: /json_proto [17:25:30]Method is POST - this is cgi request [17:25:30]url: /json_proto [17:25:30]query_string will be loaded in cgi processing [17:25:30]execute_cgi json_proto POST (null) [17:25:30]execute_cgi path=json_proto method=POST [17:25:30]POST find Content-Length [17:25:30]Host: 172.17.44.195:8080 [17:25:30]Content-Length: 680 [17:25:30]Content-Type: application/json [17:25:30] [17:25:30]POST finish read [17:25:30]Found Content-Length = 680 [17:25:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963181", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:25:30]execute_script... [17:25:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963181", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:25:30]POST & json_proto [17:25:30]process_json_proto [17:25:30]json parsed OK: [17:25:30]protocol is kg_v1.0 [17:25:30]action value=close_receipt [17:25:30]process_action close_receipt [17:25:30]cmd_close_receipt [17:25:30]MH_GetDate [17:25:30]Write to MH i2c: F0 00 00 BE 0F BC [17:25:30]Write i2c OK [17:25:30]MH_I2C_Read... [17:25:30]Read from MH i2c: F0 [17:25:30]MH_I2C_Read... [17:25:30]Read from MH i2c: F0 09 00 [17:25:30]MH_I2C_Read... [17:25:30]Read from MH i2c: F0 09 00 BE 0F 00 0B 3D 15 67 82 C9 CF 66 09 [17:25:30]GetLastDocTimeStamp 1729445060 [17:25:30]current date 1729445131 [17:25:30]FM_GetShiftState [17:25:30]SAM_PROTO_GetShiftState [17:25:30]wFMCommunicate request_size=4 [17:25:30]MH_SAM_APDU [17:25:30]CAPDU: 80 13 01 00 [17:25:30]Write to MH i2c: E2 08 00 BF 0F 80 13 01 00 00 00 00 00 4B [17:25:30]Write i2c OK [17:25:30]MH_I2C_Read... [17:25:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:30]Read from MH i2c: E2 [17:25:30]MH_I2C_Read... [17:25:30]Read from MH i2c: E2 0E 00 [17:25:30]MH_I2C_Read... [17:25:30]Read from MH i2c: E2 0E 00 BF 0F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 65 [17:25:30]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:25:30]wFMCommunicate OK [17:25:30]SAM_PROTO_GetShiftState done [17:25:30]FM_GetShiftState done [17:25:30]opened in 1729383750 [17:25:30]opened+sec_in_day 1729470150 [17:25:30]quantity*price = 200025 [17:25:30]sum+1 = 200026 [17:25:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 397 20.10.2024 17:25 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227549 ФПД: 208721121383154 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T172531&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227549&fm=208721121383154&tin=02508201610067®Number=0000000000091685&sum=200000 [17:25:31]StoreToDocumentArchive [17:25:31]shift 533 fd 227549 [17:25:31]save to /storage/0533/doc_00227549 [17:25:31]save last doc name /storage/0533/doc_00227549 to /storage/kkm_last_doc_name [17:25:31]save OK [17:25:31]Clear old archive folders... [17:25:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:25:31]tlvbuf is 00D9D3C0 [17:25:31]SAM_PROTO_ClearQueue [17:25:31]wFMCommunicate request_size=4 [17:25:31]MH_SAM_APDU [17:25:31]CAPDU: 80 09 00 00 [17:25:31]Write to MH i2c: E2 08 00 CC 0F 80 09 00 00 00 00 00 00 4D [17:25:31]Write i2c OK [17:25:31]MH_I2C_Read... [17:25:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:25:31]Read from MH i2c: E2 [17:25:31]MH_I2C_Read... [17:25:31]Read from MH i2c: E2 03 00 [17:25:31]MH_I2C_Read... [17:25:31]Read from MH i2c: E2 03 00 CC 0F 00 90 00 4F [17:25:31]RAPDU: 90 00 [17:25:31]wFMCommunicate OK [17:25:31]SAM_PROTO_ClearQueue done [17:25:31]KKMCreateOFDPacket [17:25:31]OFDProtocolAddRootSTLVToBuf [17:25:31]FM_MakeSignedData [17:25:31]FM_MakeSignedData [17:25:31]SAM_PROTO_SignData [17:25:31]wFMCommunicate request_size=4 [17:25:31]MH_SAM_APDU [17:25:31]CAPDU: 80 0D 01 02 [17:25:31]Write to MH i2c: E2 08 00 CD 0F 80 0D 01 02 00 00 00 00 55 [17:25:31]Write i2c OK [17:25:31]MH_I2C_Read... [17:25:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:25:31]Read from MH i2c: E2 [17:25:31]MH_I2C_Read... [17:25:31]Read from MH i2c: E2 03 00 [17:25:31]MH_I2C_Read... [17:25:31]Read from MH i2c: E2 03 00 CD 0F 00 90 00 50 [17:25:31]RAPDU: 90 00 [17:25:31]wFMCommunicate OK [17:25:31]wFMCommunicate request_size=255 [17:25:31]MH_SAM_APDU [17:25:31]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 01 00 00 F4 03 04 00 0B 3D 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DD 78 03 00 35 04 06 00 BD D4 AC 4C [17:25:31]Write to MH i2c: E2 02 01 CE 0F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 01 00 00 F4 03 04 00 0B 3D 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DD 78 03 00 35 04 06 00 BD D4 AC 4C 00 00 1A [17:25:31]Write i2c OK [17:25:31]MH_I2C_Read... [17:25:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:31]Read from MH i2c: E2 [17:25:31]MH_I2C_Read... [17:25:31]Read from MH i2c: E2 03 00 [17:25:31]MH_I2C_Read... [17:25:31]Read from MH i2c: E2 03 00 CE 0F 00 90 00 51 [17:25:31]RAPDU: 90 00 [17:25:31]wFMCommunicate OK [17:25:31]wFMCommunicate request_size=7 [17:25:31]MH_SAM_APDU [17:25:31]CAPDU: 80 0D 02 02 02 12 F2 [17:25:31]Write to MH i2c: E2 0A 00 CF 0F 80 0D 02 02 02 00 12 F2 00 00 60 [17:25:31]Write i2c OK [17:25:31]MH_I2C_Read... [17:25:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:31]Read from MH i2c: E2 [17:25:31]MH_I2C_Read... [17:25:31]Read from MH i2c: E2 03 00 [17:25:31]MH_I2C_Read... [17:25:31]Read from MH i2c: E2 03 00 CF 0F 00 90 00 52 [17:25:31]RAPDU: 90 00 [17:25:31]wFMCommunicate OK [17:25:31]wFMCommunicate request_size=4 [17:25:31]MH_SAM_APDU [17:25:31]CAPDU: 80 0D 03 02 [17:25:31]Write to MH i2c: E2 08 00 D0 0F 80 0D 03 02 00 00 00 00 5A [17:25:31]Write i2c OK [17:25:31]MH_I2C_Read... [17:25:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:25:31]Read from MH i2c: E2 [17:25:31]MH_I2C_Read... [17:25:31]Read from MH i2c: E2 0B 00 [17:25:31]MH_I2C_Read... [17:25:31]Read from MH i2c: E2 0B 00 D0 0F 00 20 EC 3C 70 CD 4C 5E 47 90 00 D1 [17:25:31]RAPDU: 20 EC 3C 70 CD 4C 5E 47 90 00 [17:25:31]wFMCommunicate OK [17:25:31]SAM_PROTO_SignData done [17:25:31]FM_MakeSignedData done [17:25:31]CreateOFDProtocolMessage [17:25:31]wFMCommunicate request_size=4 [17:25:31]MH_SAM_APDU [17:25:31]CAPDU: 80 11 00 00 [17:25:31]Write to MH i2c: E2 08 00 D1 0F 80 11 00 00 00 00 00 00 5A [17:25:31]Write i2c OK [17:25:31]MH_I2C_Read... [17:25:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:31]Read from MH i2c: E2 [17:25:31]MH_I2C_Read... [17:25:31]Read from MH i2c: E2 17 00 [17:25:31]MH_I2C_Read... [17:25:31]Read from MH i2c: E2 17 00 D1 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B1 [17:25:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:25:31]wFMCommunicate OK [17:25:31]CreateOFDProtocolMessage done [17:25:31]OFDSenderStorePacket 227549 [17:25:31]StoreOFDPacket docnum=227549 [17:25:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 57 67 04 01 D8 66 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 01 00 00 F4 03 04 00 0B 3D 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DD 78 03 00 35 04 06 00 BD D4 AC 4C 12 F2 20 EC 3C 70 CD 4C 5E 47 [17:25:31]CheckFolder [17:25:31]dirname=/storage/ofd_packets [17:25:31]CheckFolder done [17:25:31]ProducePacketName [17:25:31]name=ofd_packets/00227549 [17:25:31]NVStorageSaveData ofd_packets/00227549 [17:25:31]File name is /storage/ofd_packets/00227549 [17:25:31]Write 298 bytes [17:25:31]NVStorageSaveData done [17:25:31]OFDSenderStorePacket done [17:25:31]KKMCreateOFDPacket done [17:25:31]NVStorageSaveData kkm_last_timestamp [17:25:31]File name is /storage/kkm_last_timestamp [17:25:31]Write 4 bytes [17:25:31]NVStorageSaveData done [17:25:31]ExternCall_PrintAddStr [17:25:31]wPrintStart [17:25:31]Write to MH i2c: 01 00 00 D2 0F E1 [17:25:31]Write i2c OK [17:25:31]MH_I2C_Read... [17:25:31]Read from MH i2c: 01 [17:25:31]MH_I2C_Read... [17:25:31]Read from MH i2c: 01 07 00 [17:25:31]MH_I2C_Read... [17:25:31]Read from MH i2c: 01 07 00 D2 0F 00 00 00 00 00 FF 0F F6 [17:25:31]RasterBufferAndPrint [17:25:31]line Счет N : (1)1963181 [17:25:31]line ИНН: 02508201610067 [17:25:31]line Контрольно-Кассовый Чек [17:25:31]line ПРОДАЖА [17:25:31]line ТРК (МРК, ГНК) : 31 [17:25:31]line Товар: 2710194210 [17:25:31]line ДТ-К-5 [17:25:31]line 26.250 * 76.20 [17:25:31]line = 2000.25 [17:25:31]line НДС 12% НСП 1% [17:25:31]line > о реализуемом товаре [17:25:31]line ОКРУГЛЕНИЕ: -0.25 [17:25:31]line ИТОГО: 2000.00 [17:25:31]line Внесено: 2000.00 [17:25:31]line СДАЧА: 0.00 [17:25:31]line НСП 1% : 17.70 [17:25:31]line НДС 12% : 212.42 [17:25:31]line Наличными: 2000.00 [17:25:31]line Безнал.: 0.00 [17:25:31]line Место: АЗС № 133 "Партнер Нефть" [17:25:31]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:25:31]line СНО: Общий режим [17:25:31]line Чек 397 20.10.2024 17:25 [17:25:31]line Смена: 533 ФФД: 1.0 [17:25:31]line ЗНМ: 0300000091 [17:25:31]line РНМ: 0000000000091685 [17:25:31]line Версия ККМ: 001 [17:25:31]line ФМ: 0000000000871839 [17:25:31]line ФД: 227549 [17:25:31]line ФПД: 208721121383154 [17:25:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T172531&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227549&fm=208721121383154&tin=02508201610067®Number=0000000000091685&sum=200000 [17:25:32]OFD Sender: Processing packet 227549 [packets to send 38, broken 37] [17:25:32]ProducePacketName [17:25:32]name=ofd_packets/00227549 [17:25:32]OFD Sender: To server: pG, [17:25:32]CommunicateWithHost lk.salyk.kg:30040 [17:25:32]ConnectInit lk.salyk.kg [17:25:32]written 0, free lines is 4095 [17:25:32]Connected sock=10 [17:25:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 57 67 04 01 D8 66 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 01 00 00 F4 03 04 00 0B 3D 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DD 78 03 00 35 04 06 00 BD D4 AC 4C 12 F2 20 EC 3C 70 CD 4C 5E 47 [17:25:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 FB 13 47 00 21 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 33 39 10 04 04 00 DD 78 03 00 F4 03 04 00 09 E8 14 67 B6 04 01 00 00 F4 A1 64 32 30 08 07 C1 [17:25:32]CommunicateWithHost err = 0 [17:25:32]CheckOFDResponse [17:25:32]1017 (14) - 77093643461234 [17:25:32]1041 (16) - 0000000000871839 [17:25:32]1040 (4) - 227549 [17:25:32]1012 (4) - 20.10.2024 11:22 [17:25:32]1206 (1) - 0 [17:25:32]OFD Sender: Remove packet 227549 [17:25:32]ProducePacketName [17:25:32]name=ofd_packets/00227549 [17:25:32]NVStorageDeleteData [17:25:32]Write to MH i2c: 01 00 00 FC 0F 0B [17:25:32]Write i2c OK [17:25:32]MH_I2C_Read... [17:25:32]Read from MH i2c: 01 [17:25:32]MH_I2C_Read... [17:25:32]Read from MH i2c: 01 07 00 [17:25:32]MH_I2C_Read... [17:25:32]Read from MH i2c: 01 07 00 FC 0F 00 00 00 00 00 0A 0D 29 [17:25:32]RasterBufferAndPrint [17:25:32]line [17:25:32]line [17:25:32]line [17:25:32]line [17:25:32]line [17:25:32]written 0, free lines is 3344 [17:25:32]process_action close_receipt done [17:25:32]requested_data is exist [17:25:32]produce_requested_data [17:25:32]requested_item fm.sn is exist - process it [17:25:32]wFMCommunicate request_size=4 [17:25:32]MH_SAM_APDU [17:25:32]CAPDU: 80 11 00 00 [17:25:32]Write to MH i2c: E2 08 00 03 10 80 11 00 00 00 00 00 00 8D [17:25:32]Write i2c OK [17:25:32]MH_I2C_Read... [17:25:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:32]Read from MH i2c: E2 [17:25:32]MH_I2C_Read... [17:25:32]Read from MH i2c: E2 17 00 [17:25:32]MH_I2C_Read... [17:25:32]Read from MH i2c: E2 17 00 03 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E4 [17:25:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:25:32]wFMCommunicate OK [17:25:32]requested_item fd.num is exist - process it [17:25:32]SAM_PROTO_GetFieldsCounters [17:25:32]wFMCommunicate request_size=4 [17:25:32]MH_SAM_APDU [17:25:32]CAPDU: 80 13 00 00 [17:25:32]Write to MH i2c: E2 08 00 04 10 80 13 00 00 00 00 00 00 90 [17:25:32]Write i2c OK [17:25:32]MH_I2C_Read... [17:25:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:25:32]Read from MH i2c: E2 [17:25:32]MH_I2C_Read... [17:25:32]Read from MH i2c: E2 62 00 [17:25:32]MH_I2C_Read... [17:25:32]Read from MH i2c: E2 62 00 04 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 DD 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 8D 01 00 00 5E 04 04 00 8D 01 00 00 57 04 04 00 8E 01 00 00 19 04 04 00 00 00 00 00 90 00 D2 [17:25: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 DD 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 8D 01 00 00 5E 04 04 00 8D 01 00 00 57 04 04 00 8E 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:25:32]wFMCommunicate OK [17:25:32]SAM_PROTO_GetFieldsCounters done [17:25:32]requested_item shift.num is exist - process it [17:25:32]requested_item shift.opened is exist - process it [17:25:32]req_shift_opened [17:25:32]FM_GetShiftState [17:25:32]SAM_PROTO_GetShiftState [17:25:32]wFMCommunicate request_size=4 [17:25:32]MH_SAM_APDU [17:25:32]CAPDU: 80 13 01 00 [17:25:32]Write to MH i2c: E2 08 00 05 10 80 13 01 00 00 00 00 00 92 [17:25:32]Write i2c OK [17:25:32]MH_I2C_Read... [17:25:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:32]Read from MH i2c: E2 [17:25:32]MH_I2C_Read... [17:25:32]Read from MH i2c: E2 0E 00 [17:25:32]MH_I2C_Read... [17:25:32]Read from MH i2c: E2 0E 00 05 10 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 AC [17:25:32]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:25:32]wFMCommunicate OK [17:25:32]SAM_PROTO_GetShiftState done [17:25:32]FM_GetShiftState done [17:25:32]req_shift_opened done [17:25:32]requested_item shift.open_date is exist - process it [17:25:32]req_shift_open_date [17:25:32]req_shift_open_date done [17:25:32]produce_requested_data done [17:25:32]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227549,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [17:25:32]process_action_free close_receipt [17:25:32]json_value_free [17:25:32]json_value_free done [17:25:32]process_json_proto returns [17:25:32]Send response to host [17:25:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227549,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [17:25:32]free response buf [17:25:32]execute_script done [17:25:32]execute_script returns [17:25:32]free content buf [17:25:32]Sock 7.Close socket [17:25:32]Sock 7.Thread stoped [17:25:32]OFD Sender: No OFD packet to send [17:25:37]OFD Sender: No OFD packet to send [17:25:42]OFD Sender: No OFD packet to send [17:25:47]OFD Sender: No OFD packet to send [17:25:52]OFD Sender: No OFD packet to send [17:25:57]OFD Sender: No OFD packet to send [17:26:02]OFD Sender: No OFD packet to send [17:26:07]OFD Sender: No OFD packet to send [17:26:12]OFD Sender: No OFD packet to send [17:26:17]OFD Sender: No OFD packet to send [17:26:22]OFD Sender: No OFD packet to send [17:26:27]OFD Sender: No OFD packet to send [17:26:32]OFD Sender: No OFD packet to send [17:26:37]OFD Sender: No OFD packet to send [17:26:42]OFD Sender: No OFD packet to send [17:26:47]OFD Sender: No OFD packet to send [17:26:52]OFD Sender: No OFD packet to send [17:26:53]accept exits with 9 [17:26:53]New connection [17:26:53]New thread 3067219300 created [17:26:53]Thread 3067362660 joined [17:26:53]Waiting for new connection... [17:26:53] Sock 9.Parse request [17:26:53]Sock 9.Check first char [17:26:53]Sock 9.First char is OK [17:26:53]request: POST /json_proto HTTP/1.0 [17:26:53]Method: POST [17:26:53]URL: /json_proto [17:26:53]Method is POST - this is cgi request [17:26:53]url: /json_proto [17:26:53]query_string will be loaded in cgi processing [17:26:53]execute_cgi json_proto POST (null) [17:26:53]execute_cgi path=json_proto method=POST [17:26:53]POST find Content-Length [17:26:53]Host: 172.17.44.195:8080 [17:26:53]Content-Length: 683 [17:26:53]Content-Type: application/json [17:26:53] [17:26:53]POST finish read [17:26:53]Found Content-Length = 683 [17:26:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963183", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:53]execute_script... [17:26: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)1963183", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:53]POST & json_proto [17:26:53]process_json_proto [17:26:53]json parsed OK: [17:26:53]protocol is kg_v1.0 [17:26:53]action value=close_receipt [17:26:53]process_action close_receipt [17:26:53]cmd_close_receipt [17:26:53]MH_GetDate [17:26:53]Write to MH i2c: F0 00 00 06 10 05 [17:26:53]Write i2c OK [17:26:53]MH_I2C_Read... [17:26:53]Read from MH i2c: F0 [17:26:53]MH_I2C_Read... [17:26:53]Read from MH i2c: F0 09 00 [17:26:53]MH_I2C_Read... [17:26:53]Read from MH i2c: F0 09 00 06 10 00 5F 3D 15 67 82 C9 CF 66 A6 [17:26:53]GetLastDocTimeStamp 1729445131 [17:26:53]current date 1729445215 [17:26:53]FM_GetShiftState [17:26:53]SAM_PROTO_GetShiftState [17:26:53]wFMCommunicate request_size=4 [17:26:53]MH_SAM_APDU [17:26:53]CAPDU: 80 13 01 00 [17:26:53]Write to MH i2c: E2 08 00 07 10 80 13 01 00 00 00 00 00 94 [17:26:53]Write i2c OK [17:26:53]MH_I2C_Read... [17:26:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:53]Read from MH i2c: E2 [17:26:53]MH_I2C_Read... [17:26:53]Read from MH i2c: E2 0E 00 [17:26:53]MH_I2C_Read... [17:26:53]Read from MH i2c: E2 0E 00 07 10 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 AE [17:26:53]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:26:53]wFMCommunicate OK [17:26:53]SAM_PROTO_GetShiftState done [17:26:53]FM_GetShiftState done [17:26:53]opened in 1729383750 [17:26:53]opened+sec_in_day 1729470150 [17:26:53]quantity*price = 100015 [17:26:53]sum+1 = 100017 [17:26:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 398 20.10.2024 17:26 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227550 ФПД: 222168371236530 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T172655&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227550&fm=222168371236530&tin=02508201610067®Number=0000000000091685&sum=100000 [17:26:55]StoreToDocumentArchive [17:26:55]shift 533 fd 227550 [17:26:55]save to /storage/0533/doc_00227550 [17:26:55]save last doc name /storage/0533/doc_00227550 to /storage/kkm_last_doc_name [17:26:55]save OK [17:26:55]Clear old archive folders... [17:26:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:26:55]tlvbuf is 00D9D200 [17:26:55]SAM_PROTO_ClearQueue [17:26:55]wFMCommunicate request_size=4 [17:26:55]MH_SAM_APDU [17:26:55]CAPDU: 80 09 00 00 [17:26:55]Write to MH i2c: E2 08 00 14 10 80 09 00 00 00 00 00 00 96 [17:26:55]Write i2c OK [17:26:55]MH_I2C_Read... [17:26:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:26:55]Read from MH i2c: E2 [17:26:55]MH_I2C_Read... [17:26:55]Read from MH i2c: E2 03 00 [17:26:55]MH_I2C_Read... [17:26:55]Read from MH i2c: E2 03 00 14 10 00 90 00 98 [17:26:55]RAPDU: 90 00 [17:26:55]wFMCommunicate OK [17:26:55]SAM_PROTO_ClearQueue done [17:26:55]KKMCreateOFDPacket [17:26:55]OFDProtocolAddRootSTLVToBuf [17:26:55]FM_MakeSignedData [17:26:55]FM_MakeSignedData [17:26:55]SAM_PROTO_SignData [17:26:55]wFMCommunicate request_size=4 [17:26:55]MH_SAM_APDU [17:26:55]CAPDU: 80 0D 01 02 [17:26:55]Write to MH i2c: E2 08 00 15 10 80 0D 01 02 00 00 00 00 9E [17:26:55]Write i2c OK [17:26:55]MH_I2C_Read... [17:26:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:26:55]Read from MH i2c: E2 [17:26:55]MH_I2C_Read... [17:26:55]Read from MH i2c: E2 03 00 [17:26:55]MH_I2C_Read... [17:26:55]Read from MH i2c: E2 03 00 15 10 00 90 00 99 [17:26:55]RAPDU: 90 00 [17:26:55]wFMCommunicate OK [17:26:55]wFMCommunicate request_size=255 [17:26:55]MH_SAM_APDU [17:26:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 01 00 00 F4 03 04 00 5F 3D 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DE 78 03 00 35 04 06 00 CA [17:26:55]Write to MH i2c: E2 02 01 16 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 01 00 00 F4 03 04 00 5F 3D 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DE 78 03 00 35 04 06 00 CA 00 00 10 [17:26:55]Write i2c OK [17:26:55]MH_I2C_Read... [17:26:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:55]Read from MH i2c: E2 [17:26:55]MH_I2C_Read... [17:26:55]Read from MH i2c: E2 03 00 [17:26:55]MH_I2C_Read... [17:26:55]Read from MH i2c: E2 03 00 16 10 00 90 00 9A [17:26:55]RAPDU: 90 00 [17:26:55]wFMCommunicate OK [17:26:55]wFMCommunicate request_size=10 [17:26:55]MH_SAM_APDU [17:26:55]CAPDU: 80 0D 02 02 05 0F 9A D9 0E B2 [17:26:55]Write to MH i2c: E2 0D 00 17 10 80 0D 02 02 05 00 0F 9A D9 0E B2 00 00 ED [17:26:55]Write i2c OK [17:26:55]MH_I2C_Read... [17:26:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:55]Read from MH i2c: E2 [17:26:55]MH_I2C_Read... [17:26:55]Read from MH i2c: E2 03 00 [17:26:55]MH_I2C_Read... [17:26:55]Read from MH i2c: E2 03 00 17 10 00 90 00 9B [17:26:55]RAPDU: 90 00 [17:26:55]wFMCommunicate OK [17:26:55]wFMCommunicate request_size=4 [17:26:55]MH_SAM_APDU [17:26:55]CAPDU: 80 0D 03 02 [17:26:55]Write to MH i2c: E2 08 00 18 10 80 0D 03 02 00 00 00 00 A3 [17:26:55]Write i2c OK [17:26:55]MH_I2C_Read... [17:26:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:26:55]Read from MH i2c: E2 [17:26:55]MH_I2C_Read... [17:26:55]Read from MH i2c: E2 0B 00 [17:26:55]MH_I2C_Read... [17:26:55]Read from MH i2c: E2 0B 00 18 10 00 3E F3 6D 67 1F C5 47 5A 90 00 2E [17:26:55]RAPDU: 3E F3 6D 67 1F C5 47 5A 90 00 [17:26:55]wFMCommunicate OK [17:26:55]SAM_PROTO_SignData done [17:26:55]FM_MakeSignedData done [17:26:55]CreateOFDProtocolMessage [17:26:55]wFMCommunicate request_size=4 [17:26:55]MH_SAM_APDU [17:26:55]CAPDU: 80 11 00 00 [17:26:55]Write to MH i2c: E2 08 00 19 10 80 11 00 00 00 00 00 00 A3 [17:26:55]Write i2c OK [17:26:55]MH_I2C_Read... [17:26:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:55]Read from MH i2c: E2 [17:26:55]MH_I2C_Read... [17:26:55]Read from MH i2c: E2 17 00 [17:26:55]MH_I2C_Read... [17:26:55]Read from MH i2c: E2 17 00 19 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 FA [17:26:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:26:55]wFMCommunicate OK [17:26:55]CreateOFDProtocolMessage done [17:26:55]OFDSenderStorePacket 227550 [17:26:55]StoreOFDPacket docnum=227550 [17:26:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 F7 CB 07 01 BC 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 01 00 00 F4 03 04 00 5F 3D 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DE 78 03 00 35 04 06 00 CA 0F 9A D9 0E B2 3E F3 6D 67 1F C5 47 5A [17:26:55]CheckFolder [17:26:55]dirname=/storage/ofd_packets [17:26:55]CheckFolder done [17:26:55]ProducePacketName [17:26:55]name=ofd_packets/00227550 [17:26:55]NVStorageSaveData ofd_packets/00227550 [17:26:55]File name is /storage/ofd_packets/00227550 [17:26:55]Write 301 bytes [17:26:55]NVStorageSaveData done [17:26:55]OFDSenderStorePacket done [17:26:55]KKMCreateOFDPacket done [17:26:55]NVStorageSaveData kkm_last_timestamp [17:26:55]File name is /storage/kkm_last_timestamp [17:26:55]Write 4 bytes [17:26:55]NVStorageSaveData done [17:26:55]ExternCall_PrintAddStr [17:26:55]wPrintStart [17:26:55]Write to MH i2c: 01 00 00 1A 10 2A [17:26:55]Write i2c OK [17:26:55]MH_I2C_Read... [17:26:55]Read from MH i2c: 01 [17:26:55]MH_I2C_Read... [17:26:55]Read from MH i2c: 01 07 00 [17:26:55]MH_I2C_Read... [17:26:55]Read from MH i2c: 01 07 00 1A 10 00 00 00 00 00 FF 0F 3F [17:26:55]RasterBufferAndPrint [17:26:55]line Счет N : (1)1963183 [17:26:55]line ИНН: 02508201610067 [17:26:55]line Контрольно-Кассовый Чек [17:26:55]line ПРОДАЖА [17:26:55]line ТРК (МРК, ГНК) : 53 [17:26:55]line Товар: 2710124130 [17:26:55]line Аи-92-К-5 [17:26:55]line 14.950 * 66.90 [17:26:55]line = 1000.16 [17:26:55]line НДС 12% НСП 1% [17:26:55]line > о реализуемом товаре [17:26:55]line ОКРУГЛЕНИЕ: -0.16 [17:26:55]line ИТОГО: 1000.00 [17:26:55]line Внесено: 1000.00 [17:26:55]line СДАЧА: 0.00 [17:26:55]line НСП 1% : 8.85 [17:26:55]line НДС 12% : 106.21 [17:26:55]line Наличными: 1000.00 [17:26:55]line Безнал.: 0.00 [17:26:55]line Место: АЗС № 133 "Партнер Нефть" [17:26:55]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:26:55]line СНО: Общий режим [17:26:55]line Чек 398 20.10.2024 17:26 [17:26:55]line Смена: 533 ФФД: 1.0 [17:26:55]line ЗНМ: 0300000091 [17:26:55]line РНМ: 0000000000091685 [17:26:55]line Версия ККМ: 001 [17:26:55]line ФМ: 0000000000871839 [17:26:55]line ФД: 227550 [17:26:55]line ФПД: 222168371236530 [17:26:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T172655&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227550&fm=222168371236530&tin=02508201610067®Number=0000000000091685&sum=100000 [17:26:55]OFD Sender: Processing packet 227550 [packets to send 38, broken 37] [17:26:55]ProducePacketName [17:26:55]name=ofd_packets/00227550 [17:26:55]OFD Sender: To server: pG, [17:26:55]CommunicateWithHost lk.salyk.kg:30040 [17:26:55]ConnectInit lk.salyk.kg [17:26:55]written 0, free lines is 4095 [17:26:55]Connected sock=10 [17:26:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 F7 CB 07 01 BC 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 01 00 00 F4 03 04 00 5F 3D 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DE 78 03 00 35 04 06 00 CA 0F 9A D9 0E B2 3E F3 6D 67 1F C5 47 5A [17:26: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 33 39 4F 00 00 00 FF 17 47 00 A7 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DE 78 03 00 F4 03 04 00 5D E8 14 67 B6 04 01 00 00 14 5E 2D EA 83 33 6A EE [17:26:56]CommunicateWithHost err = 0 [17:26:56]CheckOFDResponse [17:26:56]1017 (14) - 77093643461234 [17:26:56]1041 (16) - 0000000000871839 [17:26:56]1040 (4) - 227550 [17:26:56]1012 (4) - 20.10.2024 11:24 [17:26:56]1206 (1) - 0 [17:26:56]OFD Sender: Remove packet 227550 [17:26:56]ProducePacketName [17:26:56]name=ofd_packets/00227550 [17:26:56]NVStorageDeleteData [17:26:56]Write to MH i2c: 01 00 00 44 10 54 [17:26:56]Write i2c OK [17:26:56]MH_I2C_Read... [17:26:56]Read from MH i2c: 01 [17:26:56]MH_I2C_Read... [17:26:56]Read from MH i2c: 01 07 00 [17:26:56]MH_I2C_Read... [17:26:56]Read from MH i2c: 01 07 00 44 10 00 00 00 00 00 FE 0C 65 [17:26:56]RasterBufferAndPrint [17:26:56]line [17:26:56]line [17:26:56]line [17:26:56]line [17:26:56]line [17:26:56]written 0, free lines is 3332 [17:26:56]process_action close_receipt done [17:26:56]requested_data is exist [17:26:56]produce_requested_data [17:26:56]requested_item fm.sn is exist - process it [17:26:56]wFMCommunicate request_size=4 [17:26:56]MH_SAM_APDU [17:26:56]CAPDU: 80 11 00 00 [17:26:56]Write to MH i2c: E2 08 00 4B 10 80 11 00 00 00 00 00 00 D5 [17:26:56]Write i2c OK [17:26:56]MH_I2C_Read... [17:26:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:56]Read from MH i2c: E2 [17:26:56]MH_I2C_Read... [17:26:56]Read from MH i2c: E2 17 00 [17:26:56]MH_I2C_Read... [17:26:56]Read from MH i2c: E2 17 00 4B 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 2C [17:26:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:26:56]wFMCommunicate OK [17:26:56]requested_item fd.num is exist - process it [17:26:56]SAM_PROTO_GetFieldsCounters [17:26:56]wFMCommunicate request_size=4 [17:26:56]MH_SAM_APDU [17:26:56]CAPDU: 80 13 00 00 [17:26:56]Write to MH i2c: E2 08 00 4C 10 80 13 00 00 00 00 00 00 D8 [17:26:56]Write i2c OK [17:26:56]MH_I2C_Read... [17:26:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:26:56]Read from MH i2c: E2 [17:26:56]MH_I2C_Read... [17:26:56]Read from MH i2c: E2 62 00 [17:26:56]MH_I2C_Read... [17:26:56]Read from MH i2c: E2 62 00 4C 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 DE 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 8E 01 00 00 5E 04 04 00 8E 01 00 00 57 04 04 00 8F 01 00 00 19 04 04 00 00 00 00 00 90 00 1E [17:26:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 DE 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 8E 01 00 00 5E 04 04 00 8E 01 00 00 57 04 04 00 8F 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:26:56]wFMCommunicate OK [17:26:56]SAM_PROTO_GetFieldsCounters done [17:26:56]requested_item shift.num is exist - process it [17:26:56]requested_item shift.opened is exist - process it [17:26:56]req_shift_opened [17:26:56]FM_GetShiftState [17:26:56]SAM_PROTO_GetShiftState [17:26:56]wFMCommunicate request_size=4 [17:26:56]MH_SAM_APDU [17:26:56]CAPDU: 80 13 01 00 [17:26:56]Write to MH i2c: E2 08 00 4D 10 80 13 01 00 00 00 00 00 DA [17:26:56]Write i2c OK [17:26:56]MH_I2C_Read... [17:26:56]Read from MH i2c: E2 [17:26:56]MH_I2C_Read... [17:26:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:56]Read from MH i2c: E2 0E 00 [17:26:56]MH_I2C_Read... [17:26:56]Read from MH i2c: E2 0E 00 4D 10 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 F4 [17:26:56]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:26:56]wFMCommunicate OK [17:26:56]SAM_PROTO_GetShiftState done [17:26:56]FM_GetShiftState done [17:26:56]req_shift_opened done [17:26:56]requested_item shift.open_date is exist - process it [17:26:56]req_shift_open_date [17:26:56]req_shift_open_date done [17:26:56]produce_requested_data done [17:26:56]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227550,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [17:26:56]process_action_free close_receipt [17:26:56]json_value_free [17:26:56]json_value_free done [17:26:56]process_json_proto returns [17:26:56]Send response to host [17:26:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227550,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [17:26:56]free response buf [17:26:56]execute_script done [17:26:56]execute_script returns [17:26:56]free content buf [17:26:56]Sock 9.Close socket [17:26:56]Sock 9.Thread stoped [17:26:56]OFD Sender: No OFD packet to send [17:26:58]accept exits with 7 [17:26:58]New connection [17:26:58]New thread 3067362660 created [17:26:58]Thread 3067219300 joined [17:26:58]Waiting for new connection... [17:26:58] Sock 7.Parse request [17:26:58]Sock 7.Check first char [17:26:58]Sock 7.First char is OK [17:26:58]request: POST /json_proto HTTP/1.0 [17:26:58]Method: POST [17:26:58]URL: /json_proto [17:26:58]Method is POST - this is cgi request [17:26:58]url: /json_proto [17:26:58]query_string will be loaded in cgi processing [17:26:58]execute_cgi json_proto POST (null) [17:26:58]execute_cgi path=json_proto method=POST [17:26:58]POST find Content-Length [17:26:58]Host: 172.17.44.195:8080 [17:26:58]Content-Length: 621 [17:26:58]Content-Type: application/json [17:26:58] [17:26:58]POST finish read [17:26:58]Found Content-Length = 621 [17:26:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963182", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:58]execute_script... [17:26:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963182", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:58]POST & json_proto [17:26:58]process_json_proto [17:26:58]json parsed OK: [17:26:58]protocol is kg_v1.0 [17:26:58]action value=close_receipt [17:26:58]process_action close_receipt [17:26:58]cmd_close_receipt [17:26:58]MH_GetDate [17:26:58]Write to MH i2c: F0 00 00 4E 10 4D [17:26:58]Write i2c OK [17:26:58]MH_I2C_Read... [17:26:58]Read from MH i2c: F0 [17:26:58]MH_I2C_Read... [17:26:58]Read from MH i2c: F0 09 00 [17:26:58]MH_I2C_Read... [17:26:58]Read from MH i2c: F0 09 00 4E 10 00 64 3D 15 67 82 C9 CF 66 F3 [17:26:58]GetLastDocTimeStamp 1729445215 [17:26:58]current date 1729445220 [17:26:58]FM_GetShiftState [17:26:58]SAM_PROTO_GetShiftState [17:26:58]wFMCommunicate request_size=4 [17:26:58]MH_SAM_APDU [17:26:58]CAPDU: 80 13 01 00 [17:26:58]Write to MH i2c: E2 08 00 4F 10 80 13 01 00 00 00 00 00 DC [17:26:58]Write i2c OK [17:26:58]MH_I2C_Read... [17:26:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:58]Read from MH i2c: E2 [17:26:58]MH_I2C_Read... [17:26:58]Read from MH i2c: E2 0E 00 [17:26:58]MH_I2C_Read... [17:26:58]Read from MH i2c: E2 0E 00 4F 10 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 F6 [17:26:58]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:26:58]wFMCommunicate OK [17:26:58]SAM_PROTO_GetShiftState done [17:26:58]FM_GetShiftState done [17:26:58]opened in 1729383750 [17:26:58]opened+sec_in_day 1729470150 [17:26:58]quantity*price = 50000 [17:26:58]sum+1 = 50001 [17:26:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 399 20.10.2024 17:27 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227551 ФПД: 236052170443737 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T172700&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227551&fm=236052170443737&tin=02508201610067®Number=0000000000091685&sum=50000 [17:26:59]StoreToDocumentArchive [17:26:59]shift 533 fd 227551 [17:26:59]save to /storage/0533/doc_00227551 [17:26:59]save last doc name /storage/0533/doc_00227551 to /storage/kkm_last_doc_name [17:26:59]save OK [17:26:59]Clear old archive folders... [17:26:59]ProcessDocumentItem done err = 0, tmpTLVsize=244 [17:26:59]tlvbuf is 00E3C2B0 [17:26:59]SAM_PROTO_ClearQueue [17:26:59]wFMCommunicate request_size=4 [17:26:59]MH_SAM_APDU [17:26:59]CAPDU: 80 09 00 00 [17:26:59]Write to MH i2c: E2 08 00 5C 10 80 09 00 00 00 00 00 00 DE [17:26:59]Write i2c OK [17:26:59]MH_I2C_Read... [17:26:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:26:59]Read from MH i2c: E2 [17:26:59]MH_I2C_Read... [17:26:59]Read from MH i2c: E2 03 00 [17:26:59]MH_I2C_Read... [17:26:59]Read from MH i2c: E2 03 00 5C 10 00 90 00 E0 [17:26:59]RAPDU: 90 00 [17:26:59]wFMCommunicate OK [17:26:59]SAM_PROTO_ClearQueue done [17:26:59]KKMCreateOFDPacket [17:26:59]OFDProtocolAddRootSTLVToBuf [17:26:59]FM_MakeSignedData [17:26:59]FM_MakeSignedData [17:26:59]SAM_PROTO_SignData [17:26:59]wFMCommunicate request_size=4 [17:26:59]MH_SAM_APDU [17:26:59]CAPDU: 80 0D 01 02 [17:26:59]Write to MH i2c: E2 08 00 5D 10 80 0D 01 02 00 00 00 00 E6 [17:26:59]Write i2c OK [17:26:59]MH_I2C_Read... [17:26:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:26:59]Read from MH i2c: E2 [17:26:59]MH_I2C_Read... [17:26:59]Read from MH i2c: E2 03 00 [17:26:59]MH_I2C_Read... [17:26:59]Read from MH i2c: E2 03 00 5D 10 00 90 00 E1 [17:26:59]RAPDU: 90 00 [17:26:59]wFMCommunicate OK [17:26:59]wFMCommunicate request_size=253 [17:26:59]MH_SAM_APDU [17:26:59]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 01 00 00 F4 03 04 00 64 3D 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DF 78 03 00 35 04 06 00 D6 B0 2D C4 8B D9 [17:26:59]Write to MH i2c: E2 00 01 5E 10 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 01 00 00 F4 03 04 00 64 3D 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DF 78 03 00 35 04 06 00 D6 B0 2D C4 8B D9 00 00 E1 [17:27:00]Write i2c OK [17:27:00]MH_I2C_Read... [17:27:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:00]Read from MH i2c: E2 [17:27:00]MH_I2C_Read... [17:27:00]Read from MH i2c: E2 03 00 [17:27:00]MH_I2C_Read... [17:27:00]Read from MH i2c: E2 03 00 5E 10 00 90 00 E2 [17:27:00]RAPDU: 90 00 [17:27:00]wFMCommunicate OK [17:27:00]wFMCommunicate request_size=4 [17:27:00]MH_SAM_APDU [17:27:00]CAPDU: 80 0D 03 02 [17:27:00]Write to MH i2c: E2 08 00 5F 10 80 0D 03 02 00 00 00 00 EA [17:27:00]Write i2c OK [17:27:00]MH_I2C_Read... [17:27:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:27:00]Read from MH i2c: E2 [17:27:00]MH_I2C_Read... [17:27:00]Read from MH i2c: E2 0B 00 [17:27:00]MH_I2C_Read... [17:27:00]Read from MH i2c: E2 0B 00 5F 10 00 EE 08 D5 F1 CC 4E 08 D4 90 00 9D [17:27:00]RAPDU: EE 08 D5 F1 CC 4E 08 D4 90 00 [17:27:00]wFMCommunicate OK [17:27:00]SAM_PROTO_SignData done [17:27:00]FM_MakeSignedData done [17:27:00]CreateOFDProtocolMessage [17:27:00]wFMCommunicate request_size=4 [17:27:00]MH_SAM_APDU [17:27:00]CAPDU: 80 11 00 00 [17:27:00]Write to MH i2c: E2 08 00 60 10 80 11 00 00 00 00 00 00 EA [17:27:00]Write i2c OK [17:27:00]MH_I2C_Read... [17:27:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:00]Read from MH i2c: E2 [17:27:00]MH_I2C_Read... [17:27:00]Read from MH i2c: E2 17 00 [17:27:00]MH_I2C_Read... [17:27:00]Read from MH i2c: E2 17 00 60 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 41 [17:27:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:27:00]wFMCommunicate OK [17:27:00]CreateOFDProtocolMessage done [17:27:00]OFDSenderStorePacket 227551 [17:27:00]StoreOFDPacket docnum=227551 [17:27:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 BC D2 00 01 4F 10 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 01 00 00 F4 03 04 00 64 3D 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DF 78 03 00 35 04 06 00 D6 B0 2D C4 8B D9 EE 08 D5 F1 CC 4E 08 D4 [17:27:00]CheckFolder [17:27:00]dirname=/storage/ofd_packets [17:27:00]CheckFolder done [17:27:00]ProducePacketName [17:27:00]name=ofd_packets/00227551 [17:27:00]NVStorageSaveData ofd_packets/00227551 [17:27:00]File name is /storage/ofd_packets/00227551 [17:27:00]Write 294 bytes [17:27:00]NVStorageSaveData done [17:27:00]OFDSenderStorePacket done [17:27:00]KKMCreateOFDPacket done [17:27:00]NVStorageSaveData kkm_last_timestamp [17:27:00]File name is /storage/kkm_last_timestamp [17:27:00]Write 4 bytes [17:27:00]NVStorageSaveData done [17:27:00]ExternCall_PrintAddStr [17:27:00]wPrintStart [17:27:00]Write to MH i2c: 01 00 00 61 10 71 [17:27:00]Write i2c OK [17:27:00]MH_I2C_Read... [17:27:00]Read from MH i2c: 01 [17:27:00]MH_I2C_Read... [17:27:00]Read from MH i2c: 01 07 00 [17:27:00]MH_I2C_Read... [17:27:00]Read from MH i2c: 01 07 00 61 10 00 00 00 00 00 FF 0F 86 [17:27:00]RasterBufferAndPrint [17:27:00]line Счет N : (1)1963182 [17:27:00]line ИНН: 02508201610067 [17:27:00]line Контрольно-Кассовый Чек [17:27:00]line ПРОДАЖА [17:27:00]line ТРК (МРК, ГНК) : 42 [17:27:00]line Товар: 2710124130 [17:27:00]line SU-92 [17:27:00]line 7.310 * 68.40 [17:27:00]line = 500.00 [17:27:00]line НДС 12% НСП 1% [17:27:00]line > о реализуемом товаре [17:27:00]line ИТОГО: 500.00 [17:27:00]line НСП 1% : 4.42 [17:27:00]line НДС 12% : 53.10 [17:27:00]line Наличными: 500.00 [17:27:00]line Безнал.: 0.00 [17:27:00]line Место: АЗС № 133 "Партнер Нефть" [17:27:00]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:27:00]line СНО: Общий режим [17:27:00]line Чек 399 20.10.2024 17:27 [17:27:00]line Смена: 533 ФФД: 1.0 [17:27:00]line ЗНМ: 0300000091 [17:27:00]line РНМ: 0000000000091685 [17:27:00]line Версия ККМ: 001 [17:27:00]line ФМ: 0000000000871839 [17:27:00]line ФД: 227551 [17:27:00]line ФПД: 236052170443737 [17:27:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T172700&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227551&fm=236052170443737&tin=02508201610067®Number=0000000000091685&sum=50000 [17:27:00]written 0, free lines is 4095 [17:27:00]OFD Sender: Processing packet 227551 [packets to send 38, broken 37] [17:27:00]ProducePacketName [17:27:00]name=ofd_packets/00227551 [17:27:00]OFD Sender: To server: pG, [17:27:00]CommunicateWithHost lk.salyk.kg:30040 [17:27:00]ConnectInit lk.salyk.kg [17:27:00]Connected sock=10 [17:27:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 BC D2 00 01 4F 10 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 01 00 00 F4 03 04 00 64 3D 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DF 78 03 00 35 04 06 00 D6 B0 2D C4 8B D9 EE 08 D5 F1 CC 4E 08 D4 [17:27: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 33 39 4F 00 00 00 56 93 47 00 16 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 DF 78 03 00 F4 03 04 00 62 E8 14 67 B6 04 01 00 00 45 F9 3A D1 C8 16 E9 C2 [17:27:00]CommunicateWithHost err = 0 [17:27:00]CheckOFDResponse [17:27:00]1017 (14) - 77093643461234 [17:27:00]1041 (16) - 0000000000871839 [17:27:00]1040 (4) - 227551 [17:27:00]1012 (4) - 20.10.2024 11:24 [17:27:00]1206 (1) - 0 [17:27:00]OFD Sender: Remove packet 227551 [17:27:00]ProducePacketName [17:27:00]name=ofd_packets/00227551 [17:27:00]NVStorageDeleteData [17:27:00]Write to MH i2c: 01 00 00 88 10 98 [17:27:00]Write i2c OK [17:27:00]MH_I2C_Read... [17:27:00]Read from MH i2c: 01 [17:27:00]MH_I2C_Read... [17:27:00]Read from MH i2c: 01 07 00 [17:27:00]MH_I2C_Read... [17:27:00]Read from MH i2c: 01 07 00 88 10 00 00 00 00 00 39 0D E5 [17:27:00]RasterBufferAndPrint [17:27:00]line [17:27:00]line [17:27:00]line [17:27:00]line [17:27:00]line [17:27:00]written 0, free lines is 3397 [17:27:00]process_action close_receipt done [17:27:00]requested_data is exist [17:27:00]produce_requested_data [17:27:00]requested_item fm.sn is exist - process it [17:27:00]wFMCommunicate request_size=4 [17:27:00]MH_SAM_APDU [17:27:00]CAPDU: 80 11 00 00 [17:27:00]Write to MH i2c: E2 08 00 8F 10 80 11 00 00 00 00 00 00 19 [17:27:00]Write i2c OK [17:27:00]MH_I2C_Read... [17:27:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:00]Read from MH i2c: E2 [17:27:00]MH_I2C_Read... [17:27:00]Read from MH i2c: E2 17 00 [17:27:00]MH_I2C_Read... [17:27:00]Read from MH i2c: E2 17 00 8F 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 70 [17:27:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:27:00]wFMCommunicate OK [17:27:00]requested_item fd.num is exist - process it [17:27:00]SAM_PROTO_GetFieldsCounters [17:27:00]wFMCommunicate request_size=4 [17:27:00]MH_SAM_APDU [17:27:00]CAPDU: 80 13 00 00 [17:27:00]Write to MH i2c: E2 08 00 90 10 80 13 00 00 00 00 00 00 1C [17:27:00]Write i2c OK [17:27:00]MH_I2C_Read... [17:27:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:27:01]Read from MH i2c: E2 [17:27:01]MH_I2C_Read... [17:27:01]Read from MH i2c: E2 62 00 [17:27:01]MH_I2C_Read... [17:27:01]Read from MH i2c: E2 62 00 90 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 DF 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 8F 01 00 00 5E 04 04 00 8F 01 00 00 57 04 04 00 90 01 00 00 19 04 04 00 00 00 00 00 90 00 66 [17:27:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 DF 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 8F 01 00 00 5E 04 04 00 8F 01 00 00 57 04 04 00 90 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:27:01]wFMCommunicate OK [17:27:01]SAM_PROTO_GetFieldsCounters done [17:27:01]requested_item shift.num is exist - process it [17:27:01]requested_item shift.opened is exist - process it [17:27:01]req_shift_opened [17:27:01]FM_GetShiftState [17:27:01]SAM_PROTO_GetShiftState [17:27:01]wFMCommunicate request_size=4 [17:27:01]MH_SAM_APDU [17:27:01]CAPDU: 80 13 01 00 [17:27:01]Write to MH i2c: E2 08 00 91 10 80 13 01 00 00 00 00 00 1E [17:27:01]Write i2c OK [17:27:01]MH_I2C_Read... [17:27:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:01]Read from MH i2c: E2 [17:27:01]MH_I2C_Read... [17:27:01]Read from MH i2c: E2 0E 00 [17:27:01]MH_I2C_Read... [17:27:01]Read from MH i2c: E2 0E 00 91 10 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 38 [17:27:01]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:27:01]wFMCommunicate OK [17:27:01]SAM_PROTO_GetShiftState done [17:27:01]FM_GetShiftState done [17:27:01]req_shift_opened done [17:27:01]requested_item shift.open_date is exist - process it [17:27:01]req_shift_open_date [17:27:01]req_shift_open_date done [17:27:01]produce_requested_data done [17:27:01]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227551,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [17:27:01]process_action_free close_receipt [17:27:01]json_value_free [17:27:01]json_value_free done [17:27:01]process_json_proto returns [17:27:01]Send response to host [17:27:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227551,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [17:27:01]free response buf [17:27:01]execute_script done [17:27:01]execute_script returns [17:27:01]free content buf [17:27:01]Sock 7.Close socket [17:27:01]Sock 7.Thread stoped [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:29]accept exits with 9 [17:29:29]New connection [17:29:29]New thread 3067219300 created [17:29:29]Thread 3067362660 joined [17:29:29]Waiting for new connection... [17:29:29] Sock 9.Parse request [17:29:29]Sock 9.Check first char [17:29:29]Sock 9.First char is OK [17:29:29]request: POST /json_proto HTTP/1.0 [17:29:29]Method: POST [17:29:29]URL: /json_proto [17:29:29]Method is POST - this is cgi request [17:29:29]url: /json_proto [17:29:29]query_string will be loaded in cgi processing [17:29:29]execute_cgi json_proto POST (null) [17:29:29]execute_cgi path=json_proto method=POST [17:29:29]POST find Content-Length [17:29:29]Host: 172.17.44.195:8080 [17:29:29]Content-Length: 678 [17:29:29]Content-Type: application/json [17:29:29] [17:29:29]POST finish read [17:29:29]Found Content-Length = 678 [17:29:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963184", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:29:29]execute_script... [17:29: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)1963184", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:29:29]POST & json_proto [17:29:29]process_json_proto [17:29:29]json parsed OK: [17:29:29]protocol is kg_v1.0 [17:29:29]action value=close_receipt [17:29:29]process_action close_receipt [17:29:29]cmd_close_receipt [17:29:29]MH_GetDate [17:29:29]Write to MH i2c: F0 00 00 92 10 91 [17:29:29]Write i2c OK [17:29:29]MH_I2C_Read... [17:29:29]Read from MH i2c: F0 [17:29:29]MH_I2C_Read... [17:29:29]Read from MH i2c: F0 09 00 [17:29:29]MH_I2C_Read... [17:29:29]Read from MH i2c: F0 09 00 92 10 00 FA 3D 15 67 82 C9 CF 66 CD [17:29:29]GetLastDocTimeStamp 1729445220 [17:29:29]current date 1729445370 [17:29:29]FM_GetShiftState [17:29:29]SAM_PROTO_GetShiftState [17:29:29]wFMCommunicate request_size=4 [17:29:29]MH_SAM_APDU [17:29:29]CAPDU: 80 13 01 00 [17:29:29]Write to MH i2c: E2 08 00 93 10 80 13 01 00 00 00 00 00 20 [17:29:29]Write i2c OK [17:29:29]MH_I2C_Read... [17:29:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:29:29]Read from MH i2c: E2 [17:29:29]MH_I2C_Read... [17:29:29]Read from MH i2c: E2 0E 00 [17:29:29]MH_I2C_Read... [17:29:29]Read from MH i2c: E2 0E 00 93 10 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 3A [17:29:29]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:29:29]wFMCommunicate OK [17:29:29]SAM_PROTO_GetShiftState done [17:29:29]FM_GetShiftState done [17:29:29]opened in 1729383750 [17:29:29]opened+sec_in_day 1729470150 [17:29:29]quantity*price = 40006 [17:29:29]sum+1 = 40007 [17:29:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 400 20.10.2024 17:29 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227552 ФПД: 133396335440233 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T172930&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227552&fm=133396335440233&tin=02508201610067®Number=0000000000091685&sum=40000 [17:29:30]StoreToDocumentArchive [17:29:30]shift 533 fd 227552 [17:29:30]save to /storage/0533/doc_00227552 [17:29:30]save last doc name /storage/0533/doc_00227552 to /storage/kkm_last_doc_name [17:29:30]save OK [17:29:30]Clear old archive folders... [17:29:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:29:30]tlvbuf is B6E0C660 [17:29:30]SAM_PROTO_ClearQueue [17:29:30]wFMCommunicate request_size=4 [17:29:30]MH_SAM_APDU [17:29:30]CAPDU: 80 09 00 00 [17:29:30]Write to MH i2c: E2 08 00 A0 10 80 09 00 00 00 00 00 00 22 [17:29:30]Write i2c OK [17:29:30]MH_I2C_Read... [17:29:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:29:30]Read from MH i2c: E2 [17:29:30]MH_I2C_Read... [17:29:30]Read from MH i2c: E2 03 00 [17:29:30]MH_I2C_Read... [17:29:30]Read from MH i2c: E2 03 00 A0 10 00 90 00 24 [17:29:30]RAPDU: 90 00 [17:29:30]wFMCommunicate OK [17:29:30]SAM_PROTO_ClearQueue done [17:29:30]KKMCreateOFDPacket [17:29:30]OFDProtocolAddRootSTLVToBuf [17:29:30]FM_MakeSignedData [17:29:30]FM_MakeSignedData [17:29:30]SAM_PROTO_SignData [17:29:30]wFMCommunicate request_size=4 [17:29:30]MH_SAM_APDU [17:29:30]CAPDU: 80 0D 01 02 [17:29:30]Write to MH i2c: E2 08 00 A1 10 80 0D 01 02 00 00 00 00 2A [17:29:30]Write i2c OK [17:29:30]MH_I2C_Read... [17:29:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:29:30]Read from MH i2c: E2 [17:29:30]MH_I2C_Read... [17:29:30]Read from MH i2c: E2 03 00 [17:29:30]MH_I2C_Read... [17:29:30]Read from MH i2c: E2 03 00 A1 10 00 90 00 25 [17:29:30]RAPDU: 90 00 [17:29:30]wFMCommunicate OK [17:29:30]wFMCommunicate request_size=255 [17:29:30]MH_SAM_APDU [17:29:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 01 00 00 F4 03 04 00 FA 3D 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E0 78 03 00 35 04 06 00 79 [17:29:30]Write to MH i2c: E2 02 01 A2 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 01 00 00 F4 03 04 00 FA 3D 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E0 78 03 00 35 04 06 00 79 00 00 BF [17:29:30]Write i2c OK [17:29:30]MH_I2C_Read... [17:29:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:29:30]Read from MH i2c: E2 [17:29:30]MH_I2C_Read... [17:29:30]Read from MH i2c: E2 03 00 [17:29:30]MH_I2C_Read... [17:29:30]Read from MH i2c: E2 03 00 A2 10 00 90 00 26 [17:29:30]RAPDU: 90 00 [17:29:30]wFMCommunicate OK [17:29:30]wFMCommunicate request_size=10 [17:29:30]MH_SAM_APDU [17:29:30]CAPDU: 80 0D 02 02 05 52 C1 30 31 69 [17:29:30]Write to MH i2c: E2 0D 00 A3 10 80 0D 02 02 05 00 52 C1 30 31 69 00 00 14 [17:29:30]Write i2c OK [17:29:30]MH_I2C_Read... [17:29:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:29:30]Read from MH i2c: E2 [17:29:30]MH_I2C_Read... [17:29:30]Read from MH i2c: E2 03 00 [17:29:30]MH_I2C_Read... [17:29:30]Read from MH i2c: E2 03 00 A3 10 00 90 00 27 [17:29:30]RAPDU: 90 00 [17:29:30]wFMCommunicate OK [17:29:30]wFMCommunicate request_size=4 [17:29:30]MH_SAM_APDU [17:29:30]CAPDU: 80 0D 03 02 [17:29:30]Write to MH i2c: E2 08 00 A4 10 80 0D 03 02 00 00 00 00 2F [17:29:30]Write i2c OK [17:29:30]MH_I2C_Read... [17:29:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:29:30]Read from MH i2c: E2 [17:29:30]MH_I2C_Read... [17:29:30]Read from MH i2c: E2 0B 00 [17:29:30]MH_I2C_Read... [17:29:30]Read from MH i2c: E2 0B 00 A4 10 00 96 16 79 33 D5 0A BA AB 90 00 CC [17:29:30]RAPDU: 96 16 79 33 D5 0A BA AB 90 00 [17:29:30]wFMCommunicate OK [17:29:30]SAM_PROTO_SignData done [17:29:30]FM_MakeSignedData done [17:29:30]CreateOFDProtocolMessage [17:29:30]wFMCommunicate request_size=4 [17:29:30]MH_SAM_APDU [17:29:30]CAPDU: 80 11 00 00 [17:29:30]Write to MH i2c: E2 08 00 A5 10 80 11 00 00 00 00 00 00 2F [17:29:30]Write i2c OK [17:29:30]MH_I2C_Read... [17:29:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:29:30]Read from MH i2c: E2 [17:29:30]MH_I2C_Read... [17:29:30]Read from MH i2c: E2 17 00 [17:29:30]MH_I2C_Read... [17:29:30]Read from MH i2c: E2 17 00 A5 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 86 [17:29:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:29:30]wFMCommunicate OK [17:29:30]CreateOFDProtocolMessage done [17:29:30]OFDSenderStorePacket 227552 [17:29:30]StoreOFDPacket docnum=227552 [17:29:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 61 4C 07 01 94 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 01 00 00 F4 03 04 00 FA 3D 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E0 78 03 00 35 04 06 00 79 52 C1 30 31 69 96 16 79 33 D5 0A BA AB [17:29:30]CheckFolder [17:29:30]dirname=/storage/ofd_packets [17:29:30]CheckFolder done [17:29:30]ProducePacketName [17:29:30]name=ofd_packets/00227552 [17:29:30]NVStorageSaveData ofd_packets/00227552 [17:29:30]File name is /storage/ofd_packets/00227552 [17:29:30]Write 301 bytes [17:29:30]NVStorageSaveData done [17:29:30]OFDSenderStorePacket done [17:29:30]KKMCreateOFDPacket done [17:29:30]NVStorageSaveData kkm_last_timestamp [17:29:30]File name is /storage/kkm_last_timestamp [17:29:30]Write 4 bytes [17:29:30]NVStorageSaveData done [17:29:30]ExternCall_PrintAddStr [17:29:30]wPrintStart [17:29:30]Write to MH i2c: 01 00 00 A6 10 B6 [17:29:30]OFD Sender: Processing packet 227552 [packets to send 38, broken 37] [17:29:30]ProducePacketName [17:29:30]name=ofd_packets/00227552 [17:29:30]OFD Sender: To server: pG, [17:29:30]CommunicateWithHost lk.salyk.kg:30040 [17:29:30]ConnectInit lk.salyk.kg [17:29:30]Write i2c OK [17:29:30]MH_I2C_Read... [17:29:30]Read from MH i2c: 01 [17:29:30]MH_I2C_Read... [17:29:30]Read from MH i2c: 01 07 00 [17:29:30]MH_I2C_Read... [17:29:30]Read from MH i2c: 01 07 00 A6 10 00 00 00 00 00 FF 0F CB [17:29:30]RasterBufferAndPrint [17:29:30]line Счет N : (1)1963184 [17:29:30]line ИНН: 02508201610067 [17:29:30]line Контрольно-Кассовый Чек [17:29:30]line ПРОДАЖА [17:29:30]line ТРК (МРК, ГНК) : 33 [17:29:30]line Товар: 2710124130 [17:29:30]line Аи-92-К-5 [17:29:30]line 5.980 * 66.90 [17:29:30]line = 400.06 [17:29:30]line НДС 12% НСП 1% [17:29:30]line > о реализуемом товаре [17:29:30]line ОКРУГЛЕНИЕ: -0.06 [17:29:30]line ИТОГО: 400.00 [17:29:30]line Внесено: 400.00 [17:29:30]line СДАЧА: 0.00 [17:29:30]line НСП 1% : 3.54 [17:29:30]line НДС 12% : 42.48 [17:29:30]line Наличными: 400.00 [17:29:30]line Безнал.: 0.00 [17:29:30]line Место: АЗС № 133 "Партнер Нефть" [17:29:30]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:29:30]line СНО: Общий режим [17:29:30]line Чек 400 20.10.2024 17:29 [17:29:30]line Смена: 533 ФФД: 1.0 [17:29:30]line ЗНМ: 0300000091 [17:29:30]line РНМ: 0000000000091685 [17:29:30]line Версия ККМ: 001 [17:29:30]line ФМ: 0000000000871839 [17:29:30]line ФД: 227552 [17:29:30]line ФПД: 133396335440233 [17:29:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T172930&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227552&fm=133396335440233&tin=02508201610067®Number=0000000000091685&sum=40000 [17:29:30]written 0, free lines is 4095 [17:29:30]Connected sock=10 [17:29: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 33 39 0F 01 00 00 61 4C 07 01 94 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 01 00 00 F4 03 04 00 FA 3D 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E0 78 03 00 35 04 06 00 79 52 C1 30 31 69 96 16 79 33 D5 0A BA AB [17:29:31]Write to MH i2c: 01 00 00 D0 10 E0 [17:29:31]Write i2c OK [17:29:31]MH_I2C_Read... [17:29:31]Read from MH i2c: 01 [17:29:31]MH_I2C_Read... [17:29:31]Read from MH i2c: 01 07 00 [17:29:31]MH_I2C_Read... [17:29:31]Read from MH i2c: 01 07 00 D0 10 00 00 00 00 00 0A 0D FE [17:29:31]RasterBufferAndPrint [17:29:31]line [17:29:31]line [17:29:31]line [17:29:31]line [17:29:31]line [17:29:31]written 0, free lines is 3344 [17:29:31]process_action close_receipt done [17:29:31]requested_data is exist [17:29:31]produce_requested_data [17:29:31]requested_item fm.sn is exist - process it [17:29:31]wFMCommunicate request_size=4 [17:29:31]MH_SAM_APDU [17:29:31]CAPDU: 80 11 00 00 [17:29:31]Write to MH i2c: E2 08 00 D7 10 80 11 00 00 00 00 00 00 61 [17:29:31]Write i2c OK [17:29:31]MH_I2C_Read... [17:29:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:29:31]Read from MH i2c: E2 [17:29:31]MH_I2C_Read... [17:29:31]Read from MH i2c: E2 17 00 [17:29:31]MH_I2C_Read... [17:29:31]Read from MH i2c: E2 17 00 D7 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B8 [17:29:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:29:31]wFMCommunicate OK [17:29:31]requested_item fd.num is exist - process it [17:29:31]SAM_PROTO_GetFieldsCounters [17:29:31]wFMCommunicate request_size=4 [17:29:31]MH_SAM_APDU [17:29:31]CAPDU: 80 13 00 00 [17:29:31]Write to MH i2c: E2 08 00 D8 10 80 13 00 00 00 00 00 00 64 [17:29:31]Write i2c OK [17:29:31]MH_I2C_Read... [17:29: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 33 39 4F 00 00 00 2D BE 47 00 E6 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 33 39 10 04 04 00 E0 78 03 00 F4 03 04 00 F8 E8 14 67 B6 04 01 00 00 EF B0 23 C3 C1 6E 03 A7 [17:29:31]CommunicateWithHost err = 0 [17:29:31]CheckOFDResponse [17:29:31]1017 (14) - 77093643461234 [17:29:31]1041 (16) - 0000000000871839 [17:29:31]1040 (4) - 227552 [17:29:31]1012 (4) - 20.10.2024 11:26 [17:29:31]1206 (1) - 0 [17:29:31]OFD Sender: Remove packet 227552 [17:29:31]ProducePacketName [17:29:31]name=ofd_packets/00227552 [17:29:31]NVStorageDeleteData [17:29:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:29:31]Read from MH i2c: E2 [17:29:31]MH_I2C_Read... [17:29:31]Read from MH i2c: E2 62 00 [17:29:31]MH_I2C_Read... [17:29:31]Read from MH i2c: E2 62 00 D8 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 E0 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 90 01 00 00 5E 04 04 00 90 01 00 00 57 04 04 00 91 01 00 00 19 04 04 00 00 00 00 00 90 00 B2 [17:29:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 E0 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 90 01 00 00 5E 04 04 00 90 01 00 00 57 04 04 00 91 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:29:31]wFMCommunicate OK [17:29:31]SAM_PROTO_GetFieldsCounters done [17:29:31]requested_item shift.num is exist - process it [17:29:31]requested_item shift.opened is exist - process it [17:29:31]req_shift_opened [17:29:31]FM_GetShiftState [17:29:31]SAM_PROTO_GetShiftState [17:29:31]wFMCommunicate request_size=4 [17:29:31]MH_SAM_APDU [17:29:31]CAPDU: 80 13 01 00 [17:29:31]Write to MH i2c: E2 08 00 D9 10 80 13 01 00 00 00 00 00 66 [17:29:31]Write i2c OK [17:29:31]MH_I2C_Read... [17:29:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:29:31]Read from MH i2c: E2 [17:29:31]MH_I2C_Read... [17:29:31]Read from MH i2c: E2 0E 00 [17:29:31]MH_I2C_Read... [17:29:31]Read from MH i2c: E2 0E 00 D9 10 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 80 [17:29:31]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:29:31]wFMCommunicate OK [17:29:31]SAM_PROTO_GetShiftState done [17:29:31]FM_GetShiftState done [17:29:31]req_shift_opened done [17:29:31]requested_item shift.open_date is exist - process it [17:29:31]req_shift_open_date [17:29:31]req_shift_open_date done [17:29:31]produce_requested_data done [17:29:31]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227552,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [17:29:31]process_action_free close_receipt [17:29:31]json_value_free [17:29:31]json_value_free done [17:29:31]process_json_proto returns [17:29:31]Send response to host [17:29:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227552,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [17:29:31]free response buf [17:29:31]execute_script done [17:29:31]execute_script returns [17:29:31]free content buf [17:29:31]Sock 9.Close socket [17:29:31]Sock 9.Thread stoped [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:56]OFD Sender: No OFD packet to send [17:32:01]OFD Sender: No OFD packet to send [17:32:06]OFD Sender: No OFD packet to send [17:32:11]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:35:57]accept exits with 7 [17:35:57]New connection [17:35:57]New thread 3067362660 created [17:35:57]Thread 3067219300 joined [17:35:57]Waiting for new connection... [17:35:57] Sock 7.Parse request [17:35:57]Sock 7.Check first char [17:35:57]Sock 7.First char is OK [17:35:57]request: POST /json_proto HTTP/1.0 [17:35:57]Method: POST [17:35:57]URL: /json_proto [17:35:57]Method is POST - this is cgi request [17:35:57]url: /json_proto [17:35:57]query_string will be loaded in cgi processing [17:35:57]execute_cgi json_proto POST (null) [17:35:57]execute_cgi path=json_proto method=POST [17:35:57]POST find Content-Length [17:35:57]Host: 172.17.44.195:8080 [17:35:57]Content-Length: 678 [17:35:57]Content-Type: application/json [17:35:57] [17:35:57]POST finish read [17:35:57]Found Content-Length = 678 [17:35:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963186", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:35:57]execute_script... [17:35: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)1963186", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:35:57]POST & json_proto [17:35:57]process_json_proto [17:35:57]json parsed OK: [17:35:57]protocol is kg_v1.0 [17:35:57]action value=close_receipt [17:35:57]process_action close_receipt [17:35:57]cmd_close_receipt [17:35:57]MH_GetDate [17:35:57]Write to MH i2c: F0 00 00 DA 10 D9 [17:35:57]Write i2c OK [17:35:57]MH_I2C_Read... [17:35:57]Read from MH i2c: F0 [17:35:57]MH_I2C_Read... [17:35:57]Read from MH i2c: F0 09 00 [17:35:57]MH_I2C_Read... [17:35:57]Read from MH i2c: F0 09 00 DA 10 00 7F 3F 15 67 82 C9 CF 66 9C [17:35:57]GetLastDocTimeStamp 1729445370 [17:35:57]current date 1729445759 [17:35:57]FM_GetShiftState [17:35:57]SAM_PROTO_GetShiftState [17:35:57]wFMCommunicate request_size=4 [17:35:57]MH_SAM_APDU [17:35:57]CAPDU: 80 13 01 00 [17:35:57]Write to MH i2c: E2 08 00 DB 10 80 13 01 00 00 00 00 00 68 [17:35:57]Write i2c OK [17:35:57]MH_I2C_Read... [17:35:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:35:57]Read from MH i2c: E2 [17:35:57]MH_I2C_Read... [17:35:57]Read from MH i2c: E2 0E 00 [17:35:57]MH_I2C_Read... [17:35:57]Read from MH i2c: E2 0E 00 DB 10 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 82 [17:35:57]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:35:57]wFMCommunicate OK [17:35:57]SAM_PROTO_GetShiftState done [17:35:57]FM_GetShiftState done [17:35:57]opened in 1729383750 [17:35:57]opened+sec_in_day 1729470150 [17:35:57]quantity*price = 40006 [17:35:57]sum+1 = 40007 [17:35:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 401 20.10.2024 17:35 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227553 ФПД: 247669258446039 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T173559&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227553&fm=247669258446039&tin=02508201610067®Number=0000000000091685&sum=40000 [17:35:59]StoreToDocumentArchive [17:35:59]shift 533 fd 227553 [17:35:59]save to /storage/0533/doc_00227553 [17:35:59]save last doc name /storage/0533/doc_00227553 to /storage/kkm_last_doc_name [17:35:59]save OK [17:35:59]Clear old archive folders... [17:35:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:35:59]tlvbuf is B6F0C930 [17:35:59]SAM_PROTO_ClearQueue [17:35:59]wFMCommunicate request_size=4 [17:35:59]MH_SAM_APDU [17:35:59]CAPDU: 80 09 00 00 [17:35:59]Write to MH i2c: E2 08 00 E8 10 80 09 00 00 00 00 00 00 6A [17:35:59]Write i2c OK [17:35:59]MH_I2C_Read... [17:35:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:35:59]Read from MH i2c: E2 [17:35:59]MH_I2C_Read... [17:35:59]Read from MH i2c: E2 03 00 [17:35:59]MH_I2C_Read... [17:35:59]Read from MH i2c: E2 03 00 E8 10 00 90 00 6C [17:35:59]RAPDU: 90 00 [17:35:59]wFMCommunicate OK [17:35:59]SAM_PROTO_ClearQueue done [17:35:59]KKMCreateOFDPacket [17:35:59]OFDProtocolAddRootSTLVToBuf [17:35:59]FM_MakeSignedData [17:35:59]FM_MakeSignedData [17:35:59]SAM_PROTO_SignData [17:35:59]wFMCommunicate request_size=4 [17:35:59]MH_SAM_APDU [17:35:59]CAPDU: 80 0D 01 02 [17:35:59]Write to MH i2c: E2 08 00 E9 10 80 0D 01 02 00 00 00 00 72 [17:35:59]Write i2c OK [17:35:59]MH_I2C_Read... [17:35:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:35:59]Read from MH i2c: E2 [17:35:59]MH_I2C_Read... [17:35:59]Read from MH i2c: E2 03 00 [17:35:59]MH_I2C_Read... [17:35:59]Read from MH i2c: E2 03 00 E9 10 00 90 00 6D [17:35:59]RAPDU: 90 00 [17:35:59]wFMCommunicate OK [17:35:59]wFMCommunicate request_size=255 [17:35:59]MH_SAM_APDU [17:35:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 01 00 00 F4 03 04 00 7F 3F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E1 78 03 00 35 04 06 00 E1 [17:35:59]Write to MH i2c: E2 02 01 EA 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 01 00 00 F4 03 04 00 7F 3F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E1 78 03 00 35 04 06 00 E1 00 00 F8 [17:35:59]Write i2c OK [17:35:59]MH_I2C_Read... [17:35:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:35:59]Read from MH i2c: E2 [17:35:59]MH_I2C_Read... [17:35:59]Read from MH i2c: E2 03 00 [17:35:59]MH_I2C_Read... [17:35:59]Read from MH i2c: E2 03 00 EA 10 00 90 00 6E [17:35:59]RAPDU: 90 00 [17:35:59]wFMCommunicate OK [17:35:59]wFMCommunicate request_size=10 [17:35:59]MH_SAM_APDU [17:35:59]CAPDU: 80 0D 02 02 05 40 FE 2B E4 D7 [17:35:59]Write to MH i2c: E2 0D 00 EB 10 80 0D 02 02 05 00 40 FE 2B E4 D7 00 00 A3 [17:35:59]Write i2c OK [17:35:59]MH_I2C_Read... [17:35:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:35:59]Read from MH i2c: E2 [17:35:59]MH_I2C_Read... [17:35:59]Read from MH i2c: E2 03 00 [17:35:59]MH_I2C_Read... [17:35:59]Read from MH i2c: E2 03 00 EB 10 00 90 00 6F [17:35:59]RAPDU: 90 00 [17:35:59]wFMCommunicate OK [17:35:59]wFMCommunicate request_size=4 [17:35:59]MH_SAM_APDU [17:35:59]CAPDU: 80 0D 03 02 [17:35:59]Write to MH i2c: E2 08 00 EC 10 80 0D 03 02 00 00 00 00 77 [17:35:59]Write i2c OK [17:35:59]MH_I2C_Read... [17:35:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:35:59]Read from MH i2c: E2 [17:35:59]MH_I2C_Read... [17:35:59]Read from MH i2c: E2 0B 00 [17:35:59]MH_I2C_Read... [17:35:59]Read from MH i2c: E2 0B 00 EC 10 00 CC DA AB 97 A2 30 6F 98 90 00 39 [17:35:59]RAPDU: CC DA AB 97 A2 30 6F 98 90 00 [17:35:59]wFMCommunicate OK [17:35:59]SAM_PROTO_SignData done [17:35:59]FM_MakeSignedData done [17:35:59]CreateOFDProtocolMessage [17:35:59]wFMCommunicate request_size=4 [17:35:59]MH_SAM_APDU [17:35:59]CAPDU: 80 11 00 00 [17:35:59]Write to MH i2c: E2 08 00 ED 10 80 11 00 00 00 00 00 00 77 [17:35:59]Write i2c OK [17:35:59]MH_I2C_Read... [17:35:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:35:59]Read from MH i2c: E2 [17:35:59]MH_I2C_Read... [17:35:59]Read from MH i2c: E2 17 00 [17:35:59]MH_I2C_Read... [17:35:59]Read from MH i2c: E2 17 00 ED 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 CE [17:35:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:35:59]wFMCommunicate OK [17:35:59]CreateOFDProtocolMessage done [17:35:59]OFDSenderStorePacket 227553 [17:35:59]StoreOFDPacket docnum=227553 [17:35:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 2B 48 07 01 ED 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 01 00 00 F4 03 04 00 7F 3F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E1 78 03 00 35 04 06 00 E1 40 FE 2B E4 D7 CC DA AB 97 A2 30 6F 98 [17:35:59]CheckFolder [17:35:59]dirname=/storage/ofd_packets [17:35:59]CheckFolder done [17:35:59]ProducePacketName [17:35:59]name=ofd_packets/00227553 [17:35:59]NVStorageSaveData ofd_packets/00227553 [17:35:59]File name is /storage/ofd_packets/00227553 [17:35:59]Write 301 bytes [17:35:59]NVStorageSaveData done [17:35:59]OFDSenderStorePacket done [17:35:59]KKMCreateOFDPacket done [17:35:59]NVStorageSaveData kkm_last_timestamp [17:35:59]File name is /storage/kkm_last_timestamp [17:35:59]Write 4 bytes [17:35:59]NVStorageSaveData done [17:35:59]OFD Sender: Processing packet 227553 [packets to send 38, broken 37] [17:35:59]ProducePacketName [17:35:59]name=ofd_packets/00227553 [17:35:59]OFD Sender: To server: pG, [17:35:59]CommunicateWithHost lk.salyk.kg:30040 [17:35:59]ConnectInit lk.salyk.kg [17:35:59]ExternCall_PrintAddStr [17:35:59]wPrintStart [17:35:59]Write to MH i2c: 01 00 00 EE 10 FE [17:35:59]Write i2c OK [17:35:59]MH_I2C_Read... [17:35:59]Read from MH i2c: 01 [17:35:59]MH_I2C_Read... [17:35:59]Read from MH i2c: 01 07 00 [17:35:59]MH_I2C_Read... [17:35:59]Read from MH i2c: 01 07 00 EE 10 00 00 00 00 00 FF 0F 13 [17:35:59]RasterBufferAndPrint [17:35:59]line Счет N : (1)1963186 [17:35:59]line ИНН: 02508201610067 [17:35:59]line Контрольно-Кассовый Чек [17:35:59]line ПРОДАЖА [17:35:59]line ТРК (МРК, ГНК) : 43 [17:35:59]line Товар: 2710124130 [17:35:59]line Аи-92-К-5 [17:35:59]line 5.980 * 66.90 [17:35:59]line = 400.06 [17:35:59]line НДС 12% НСП 1% [17:35:59]line > о реализуемом товаре [17:35:59]line ОКРУГЛЕНИЕ: -0.06 [17:35:59]line ИТОГО: 400.00 [17:35:59]line Внесено: 400.00 [17:35:59]line СДАЧА: 0.00 [17:35:59]line НСП 1% : 3.54 [17:35:59]line НДС 12% : 42.48 [17:35:59]line Наличными: 400.00 [17:35:59]line Безнал.: 0.00 [17:35:59]line Место: АЗС № 133 "Партнер Нефть" [17:35:59]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:35:59]line СНО: Общий режим [17:35:59]line Чек 401 20.10.2024 17:35 [17:35:59]line Смена: 533 ФФД: 1.0 [17:35:59]line ЗНМ: 0300000091 [17:35:59]line РНМ: 0000000000091685 [17:35:59]line Версия ККМ: 001 [17:35:59]line ФМ: 0000000000871839 [17:35:59]line ФД: 227553 [17:35:59]line ФПД: 247669258446039 [17:35:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T173559&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227553&fm=247669258446039&tin=02508201610067®Number=0000000000091685&sum=40000 [17:35:59]Connected sock=11 [17:35: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 33 39 0F 01 00 00 2B 48 07 01 ED 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 01 00 00 F4 03 04 00 7F 3F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E1 78 03 00 35 04 06 00 E1 40 FE 2B E4 D7 CC DA AB 97 A2 30 6F 98 [17:35:59]written 0, free lines is 4095 [17:36: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 33 39 4F 00 00 00 6C 00 47 00 61 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 33 39 10 04 04 00 E1 78 03 00 F4 03 04 00 7D EA 14 67 B6 04 01 00 00 59 24 A7 37 AE 52 14 6C [17:36:00]CommunicateWithHost err = 0 [17:36:00]CheckOFDResponse [17:36:00]1017 (14) - 77093643461234 [17:36:00]1041 (16) - 0000000000871839 [17:36:00]1040 (4) - 227553 [17:36:00]1012 (4) - 20.10.2024 11:33 [17:36:00]1206 (1) - 0 [17:36:00]OFD Sender: Remove packet 227553 [17:36:00]ProducePacketName [17:36:00]name=ofd_packets/00227553 [17:36:00]NVStorageDeleteData [17:36:00]Write to MH i2c: 01 00 00 18 11 29 [17:36:00]Write i2c OK [17:36:00]MH_I2C_Read... [17:36:00]Read from MH i2c: 01 [17:36:00]MH_I2C_Read... [17:36:00]Read from MH i2c: 01 07 00 [17:36:00]MH_I2C_Read... [17:36:00]Read from MH i2c: 01 07 00 18 11 00 00 00 00 00 05 0D 42 [17:36:00]RasterBufferAndPrint [17:36:00]line [17:36:00]line [17:36:00]line [17:36:00]line [17:36:00]line [17:36:00]written 0, free lines is 3340 [17:36:00]process_action close_receipt done [17:36:00]requested_data is exist [17:36:00]produce_requested_data [17:36:00]requested_item fm.sn is exist - process it [17:36:00]wFMCommunicate request_size=4 [17:36:00]MH_SAM_APDU [17:36:00]CAPDU: 80 11 00 00 [17:36:00]Write to MH i2c: E2 08 00 1F 11 80 11 00 00 00 00 00 00 AA [17:36:00]Write i2c OK [17:36:00]MH_I2C_Read... [17:36:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:00]Read from MH i2c: E2 [17:36:00]MH_I2C_Read... [17:36:00]Read from MH i2c: E2 17 00 [17:36:00]MH_I2C_Read... [17:36:00]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 33 39 90 00 01 [17:36:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:36:00]wFMCommunicate OK [17:36:00]requested_item fd.num is exist - process it [17:36:00]SAM_PROTO_GetFieldsCounters [17:36:00]wFMCommunicate request_size=4 [17:36:00]MH_SAM_APDU [17:36:00]CAPDU: 80 13 00 00 [17:36:00]Write to MH i2c: E2 08 00 20 11 80 13 00 00 00 00 00 00 AD [17:36:00]Write i2c OK [17:36:00]MH_I2C_Read... [17:36:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:36:00]Read from MH i2c: E2 [17:36:00]MH_I2C_Read... [17:36:00]Read from MH i2c: E2 62 00 [17:36:00]MH_I2C_Read... [17:36:00]Read from MH i2c: E2 62 00 20 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 E1 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 91 01 00 00 5E 04 04 00 91 01 00 00 57 04 04 00 92 01 00 00 19 04 04 00 00 00 00 00 90 00 FF [17:36: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 E1 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 91 01 00 00 5E 04 04 00 91 01 00 00 57 04 04 00 92 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:36:00]wFMCommunicate OK [17:36:00]SAM_PROTO_GetFieldsCounters done [17:36:00]requested_item shift.num is exist - process it [17:36:00]requested_item shift.opened is exist - process it [17:36:00]req_shift_opened [17:36:00]FM_GetShiftState [17:36:00]SAM_PROTO_GetShiftState [17:36:00]wFMCommunicate request_size=4 [17:36:00]MH_SAM_APDU [17:36:00]CAPDU: 80 13 01 00 [17:36:00]Write to MH i2c: E2 08 00 21 11 80 13 01 00 00 00 00 00 AF [17:36:00]Write i2c OK [17:36:00]MH_I2C_Read... [17:36:00]OFD Sender: No OFD packet to send [17:36:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:00]Read from MH i2c: E2 [17:36:00]MH_I2C_Read... [17:36:00]Read from MH i2c: E2 0E 00 [17:36:00]MH_I2C_Read... [17:36:00]Read from MH i2c: E2 0E 00 21 11 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 C9 [17:36:00]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:36:00]wFMCommunicate OK [17:36:00]SAM_PROTO_GetShiftState done [17:36:00]FM_GetShiftState done [17:36:00]req_shift_opened done [17:36:00]requested_item shift.open_date is exist - process it [17:36:00]req_shift_open_date [17:36:00]req_shift_open_date done [17:36:00]produce_requested_data done [17:36:00]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227553,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [17:36:00]process_action_free close_receipt [17:36:00]json_value_free [17:36:00]json_value_free done [17:36:00]process_json_proto returns [17:36:00]Send response to host [17:36:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227553,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [17:36:00]free response buf [17:36:00]execute_script done [17:36:00]execute_script returns [17:36:00]free content buf [17:36:00]Sock 7.Close socket [17:36:00]Sock 7.Thread stoped [17:36:05]OFD Sender: No OFD packet to send [17:36:10]OFD Sender: No OFD packet to send [17:36:15]OFD Sender: No OFD packet to send [17:36:20]OFD Sender: No OFD packet to send [17:36:25]OFD Sender: No OFD packet to send [17:36:29]accept exits with 9 [17:36:29]New connection [17:36:29]New thread 3067219300 created [17:36:29]Thread 3067362660 joined [17:36:29]Waiting for new connection... [17:36:29] Sock 9.Parse request [17:36:29]Sock 9.Check first char [17:36:29]Sock 9.First char is OK [17:36:29]request: POST /json_proto HTTP/1.0 [17:36:29]Method: POST [17:36:29]URL: /json_proto [17:36:29]Method is POST - this is cgi request [17:36:29]url: /json_proto [17:36:29]query_string will be loaded in cgi processing [17:36:29]execute_cgi json_proto POST (null) [17:36:29]execute_cgi path=json_proto method=POST [17:36:29]POST find Content-Length [17:36:29]Host: 172.17.44.195:8080 [17:36:29]Content-Length: 678 [17:36:29]Content-Type: application/json [17:36:29] [17:36:29]POST finish read [17:36:29]Found Content-Length = 678 [17:36:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963187", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:29]execute_script... [17:36:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963187", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:29]POST & json_proto [17:36:29]process_json_proto [17:36:29]json parsed OK: [17:36:29]protocol is kg_v1.0 [17:36:29]action value=close_receipt [17:36:29]process_action close_receipt [17:36:29]cmd_close_receipt [17:36:29]MH_GetDate [17:36:29]Write to MH i2c: F0 00 00 22 11 22 [17:36:29]Write i2c OK [17:36:29]MH_I2C_Read... [17:36:29]Read from MH i2c: F0 [17:36:29]MH_I2C_Read... [17:36:29]Read from MH i2c: F0 09 00 [17:36:29]MH_I2C_Read... [17:36:29]Read from MH i2c: F0 09 00 22 11 00 9E 3F 15 67 82 C9 CF 66 04 [17:36:29]GetLastDocTimeStamp 1729445759 [17:36:29]current date 1729445790 [17:36:29]FM_GetShiftState [17:36:29]SAM_PROTO_GetShiftState [17:36:29]wFMCommunicate request_size=4 [17:36:29]MH_SAM_APDU [17:36:29]CAPDU: 80 13 01 00 [17:36:29]Write to MH i2c: E2 08 00 23 11 80 13 01 00 00 00 00 00 B1 [17:36:29]Write i2c OK [17:36:29]MH_I2C_Read... [17:36:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:29]Read from MH i2c: E2 [17:36:29]MH_I2C_Read... [17:36:29]Read from MH i2c: E2 0E 00 [17:36:29]MH_I2C_Read... [17:36:29]Read from MH i2c: E2 0E 00 23 11 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 CB [17:36:29]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:36:29]wFMCommunicate OK [17:36:29]SAM_PROTO_GetShiftState done [17:36:29]FM_GetShiftState done [17:36:29]opened in 1729383750 [17:36:29]opened+sec_in_day 1729470150 [17:36:29]quantity*price = 50010 [17:36:29]sum+1 = 50012 [17:36:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 402 20.10.2024 17:36 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227554 ФПД: 68764659968169 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T173630&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227554&fm=68764659968169&tin=02508201610067®Number=0000000000091685&sum=50000 [17:36:30]StoreToDocumentArchive [17:36:30]shift 533 fd 227554 [17:36:30]save to /storage/0533/doc_00227554 [17:36:30]save last doc name /storage/0533/doc_00227554 to /storage/kkm_last_doc_name [17:36:30]save OK [17:36:30]Clear old archive folders... [17:36:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:36:30]tlvbuf is B6F0C6C0 [17:36:30]SAM_PROTO_ClearQueue [17:36:30]wFMCommunicate request_size=4 [17:36:30]MH_SAM_APDU [17:36:30]CAPDU: 80 09 00 00 [17:36:30]Write to MH i2c: E2 08 00 30 11 80 09 00 00 00 00 00 00 B3 [17:36:30]Write i2c OK [17:36:30]MH_I2C_Read... [17:36:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:36:30]Read from MH i2c: E2 [17:36:30]MH_I2C_Read... [17:36:30]Read from MH i2c: E2 03 00 [17:36:30]MH_I2C_Read... [17:36:30]Read from MH i2c: E2 03 00 30 11 00 90 00 B5 [17:36:30]RAPDU: 90 00 [17:36:30]wFMCommunicate OK [17:36:30]SAM_PROTO_ClearQueue done [17:36:30]KKMCreateOFDPacket [17:36:30]OFDProtocolAddRootSTLVToBuf [17:36:30]FM_MakeSignedData [17:36:30]FM_MakeSignedData [17:36:30]SAM_PROTO_SignData [17:36:30]wFMCommunicate request_size=4 [17:36:30]MH_SAM_APDU [17:36:30]CAPDU: 80 0D 01 02 [17:36:30]Write to MH i2c: E2 08 00 31 11 80 0D 01 02 00 00 00 00 BB [17:36:30]Write i2c OK [17:36:30]MH_I2C_Read... [17:36:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:36:30]Read from MH i2c: E2 [17:36:30]MH_I2C_Read... [17:36:30]Read from MH i2c: E2 03 00 [17:36:30]MH_I2C_Read... [17:36:30]Read from MH i2c: E2 03 00 31 11 00 90 00 B6 [17:36:30]RAPDU: 90 00 [17:36:30]wFMCommunicate OK [17:36:30]wFMCommunicate request_size=255 [17:36:30]MH_SAM_APDU [17:36:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 01 00 00 F4 03 04 00 9E 3F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E2 78 03 00 35 04 06 00 3E [17:36:30]Write to MH i2c: E2 02 01 32 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 01 00 00 F4 03 04 00 9E 3F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E2 78 03 00 35 04 06 00 3E 00 00 C8 [17:36:30]Write i2c OK [17:36:30]MH_I2C_Read... [17:36:30]OFD Sender: No OFD packet to send [17:36:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:30]Read from MH i2c: E2 [17:36:30]MH_I2C_Read... [17:36:30]Read from MH i2c: E2 03 00 [17:36:30]MH_I2C_Read... [17:36:30]Read from MH i2c: E2 03 00 32 11 00 90 00 B7 [17:36:30]RAPDU: 90 00 [17:36:30]wFMCommunicate OK [17:36:30]wFMCommunicate request_size=10 [17:36:30]MH_SAM_APDU [17:36:30]CAPDU: 80 0D 02 02 05 8A 85 21 68 A9 [17:36:30]Write to MH i2c: E2 0D 00 33 11 80 0D 02 02 05 00 8A 85 21 68 A9 00 00 09 [17:36:30]Write i2c OK [17:36:30]MH_I2C_Read... [17:36:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:31]Read from MH i2c: E2 [17:36:31]MH_I2C_Read... [17:36:31]Read from MH i2c: E2 03 00 [17:36:31]MH_I2C_Read... [17:36:31]Read from MH i2c: E2 03 00 33 11 00 90 00 B8 [17:36:31]RAPDU: 90 00 [17:36:31]wFMCommunicate OK [17:36:31]wFMCommunicate request_size=4 [17:36:31]MH_SAM_APDU [17:36:31]CAPDU: 80 0D 03 02 [17:36:31]Write to MH i2c: E2 08 00 34 11 80 0D 03 02 00 00 00 00 C0 [17:36:31]Write i2c OK [17:36:31]MH_I2C_Read... [17:36:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:36:31]Read from MH i2c: E2 [17:36:31]MH_I2C_Read... [17:36:31]Read from MH i2c: E2 0B 00 [17:36:31]MH_I2C_Read... [17:36:31]Read from MH i2c: E2 0B 00 34 11 00 D2 B8 CA 31 0D 69 2B 95 90 00 7C [17:36:31]RAPDU: D2 B8 CA 31 0D 69 2B 95 90 00 [17:36:31]wFMCommunicate OK [17:36:31]SAM_PROTO_SignData done [17:36:31]FM_MakeSignedData done [17:36:31]CreateOFDProtocolMessage [17:36:31]wFMCommunicate request_size=4 [17:36:31]MH_SAM_APDU [17:36:31]CAPDU: 80 11 00 00 [17:36:31]Write to MH i2c: E2 08 00 35 11 80 11 00 00 00 00 00 00 C0 [17:36:31]Write i2c OK [17:36:31]MH_I2C_Read... [17:36:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:31]Read from MH i2c: E2 [17:36:31]MH_I2C_Read... [17:36:31]Read from MH i2c: E2 17 00 [17:36:31]MH_I2C_Read... [17:36:31]Read from MH i2c: E2 17 00 35 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 17 [17:36:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:36:31]wFMCommunicate OK [17:36:31]CreateOFDProtocolMessage done [17:36:31]OFDSenderStorePacket 227554 [17:36:31]StoreOFDPacket docnum=227554 [17:36:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 72 7B 07 01 14 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 01 00 00 F4 03 04 00 9E 3F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E2 78 03 00 35 04 06 00 3E 8A 85 21 68 A9 D2 B8 CA 31 0D 69 2B 95 [17:36:31]CheckFolder [17:36:31]dirname=/storage/ofd_packets [17:36:31]CheckFolder done [17:36:31]ProducePacketName [17:36:31]name=ofd_packets/00227554 [17:36:31]NVStorageSaveData ofd_packets/00227554 [17:36:31]File name is /storage/ofd_packets/00227554 [17:36:31]Write 301 bytes [17:36:31]NVStorageSaveData done [17:36:31]OFDSenderStorePacket done [17:36:31]KKMCreateOFDPacket done [17:36:31]NVStorageSaveData kkm_last_timestamp [17:36:31]File name is /storage/kkm_last_timestamp [17:36:31]Write 4 bytes [17:36:31]NVStorageSaveData done [17:36:31]ExternCall_PrintAddStr [17:36:31]wPrintStart [17:36:31]Write to MH i2c: 01 00 00 36 11 47 [17:36:31]Write i2c OK [17:36:31]MH_I2C_Read... [17:36:31]Read from MH i2c: 01 [17:36:31]MH_I2C_Read... [17:36:31]Read from MH i2c: 01 07 00 [17:36:31]MH_I2C_Read... [17:36:31]Read from MH i2c: 01 07 00 36 11 00 00 00 00 00 FF 0F 5C [17:36:31]RasterBufferAndPrint [17:36:31]line Счет N : (1)1963187 [17:36:31]line ИНН: 02508201610067 [17:36:31]line Контрольно-Кассовый Чек [17:36:31]line ПРОДАЖА [17:36:31]line ТРК (МРК, ГНК) : 34 [17:36:31]line Товар: 2710124500 [17:36:31]line Аи-95-К-5 [17:36:31]line 6.740 * 74.20 [17:36:31]line = 500.11 [17:36:31]line НДС 12% НСП 1% [17:36:31]line > о реализуемом товаре [17:36:31]line ОКРУГЛЕНИЕ: -0.11 [17:36:31]line ИТОГО: 500.00 [17:36:31]line Внесено: 500.00 [17:36:31]line СДАЧА: 0.00 [17:36:31]line НСП 1% : 4.43 [17:36:31]line НДС 12% : 53.11 [17:36:31]line Наличными: 500.00 [17:36:31]line Безнал.: 0.00 [17:36:31]line Место: АЗС № 133 "Партнер Нефть" [17:36:31]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:36:31]line СНО: Общий режим [17:36:31]line Чек 402 20.10.2024 17:36 [17:36:31]line Смена: 533 ФФД: 1.0 [17:36:31]line ЗНМ: 0300000091 [17:36:31]line РНМ: 0000000000091685 [17:36:31]line Версия ККМ: 001 [17:36:31]line ФМ: 0000000000871839 [17:36:31]line ФД: 227554 [17:36:31]line ФПД: 68764659968169 [17:36:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T173630&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227554&fm=68764659968169&tin=02508201610067®Number=0000000000091685&sum=50000 [17:36:31]OFD Sender: Processing packet 227554 [packets to send 38, broken 37] [17:36:31]ProducePacketName [17:36:31]name=ofd_packets/00227554 [17:36:31]OFD Sender: To server: pG, [17:36:31]CommunicateWithHost lk.salyk.kg:30040 [17:36:31]ConnectInit lk.salyk.kg [17:36:31]written 0, free lines is 4095 [17:36:31]Connected sock=10 [17:36:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 72 7B 07 01 14 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 01 00 00 F4 03 04 00 9E 3F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E2 78 03 00 35 04 06 00 3E 8A 85 21 68 A9 D2 B8 CA 31 0D 69 2B 95 [17:36:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 74 8D 47 00 A6 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 33 39 10 04 04 00 E2 78 03 00 F4 03 04 00 9D EA 14 67 B6 04 01 00 00 14 D4 E3 C5 1F AB 39 0B [17:36:31]CommunicateWithHost err = 0 [17:36:31]CheckOFDResponse [17:36:31]1017 (14) - 77093643461234 [17:36:31]1041 (16) - 0000000000871839 [17:36:31]1040 (4) - 227554 [17:36:31]1012 (4) - 20.10.2024 11:33 [17:36:31]1206 (1) - 0 [17:36:31]OFD Sender: Remove packet 227554 [17:36:31]ProducePacketName [17:36:31]name=ofd_packets/00227554 [17:36:31]NVStorageDeleteData [17:36:31]Write to MH i2c: 01 00 00 60 11 71 [17:36:31]Write i2c OK [17:36:31]MH_I2C_Read... [17:36:31]Read from MH i2c: 01 [17:36:31]MH_I2C_Read... [17:36:31]Read from MH i2c: 01 07 00 [17:36:31]MH_I2C_Read... [17:36:31]Read from MH i2c: 01 07 00 60 11 00 00 00 00 00 0A 0D 8F [17:36:31]RasterBufferAndPrint [17:36:31]line [17:36:31]line [17:36:31]line [17:36:31]line [17:36:31]line [17:36:31]written 0, free lines is 3345 [17:36:31]process_action close_receipt done [17:36:31]requested_data is exist [17:36:31]produce_requested_data [17:36:31]requested_item fm.sn is exist - process it [17:36:31]wFMCommunicate request_size=4 [17:36:31]MH_SAM_APDU [17:36:31]CAPDU: 80 11 00 00 [17:36:31]Write to MH i2c: E2 08 00 67 11 80 11 00 00 00 00 00 00 F2 [17:36:31]Write i2c OK [17:36:31]MH_I2C_Read... [17:36:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:31]Read from MH i2c: E2 [17:36:31]MH_I2C_Read... [17:36:31]Read from MH i2c: E2 17 00 [17:36:31]MH_I2C_Read... [17:36:31]Read from MH i2c: E2 17 00 67 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 49 [17:36:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:36:31]wFMCommunicate OK [17:36:31]requested_item fd.num is exist - process it [17:36:31]SAM_PROTO_GetFieldsCounters [17:36:31]wFMCommunicate request_size=4 [17:36:31]MH_SAM_APDU [17:36:31]CAPDU: 80 13 00 00 [17:36:31]Write to MH i2c: E2 08 00 68 11 80 13 00 00 00 00 00 00 F5 [17:36:31]Write i2c OK [17:36:31]MH_I2C_Read... [17:36:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:36:32]Read from MH i2c: E2 [17:36:32]MH_I2C_Read... [17:36:32]Read from MH i2c: E2 62 00 [17:36:32]MH_I2C_Read... [17:36:32]Read from MH i2c: E2 62 00 68 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 E2 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 92 01 00 00 5E 04 04 00 92 01 00 00 57 04 04 00 93 01 00 00 19 04 04 00 00 00 00 00 90 00 4B [17:36:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 E2 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 92 01 00 00 5E 04 04 00 92 01 00 00 57 04 04 00 93 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:36:32]wFMCommunicate OK [17:36:32]SAM_PROTO_GetFieldsCounters done [17:36:32]requested_item shift.num is exist - process it [17:36:32]requested_item shift.opened is exist - process it [17:36:32]req_shift_opened [17:36:32]FM_GetShiftState [17:36:32]SAM_PROTO_GetShiftState [17:36:32]wFMCommunicate request_size=4 [17:36:32]MH_SAM_APDU [17:36:32]CAPDU: 80 13 01 00 [17:36:32]Write to MH i2c: E2 08 00 69 11 80 13 01 00 00 00 00 00 F7 [17:36:32]Write i2c OK [17:36:32]MH_I2C_Read... [17:36:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:32]Read from MH i2c: E2 [17:36:32]MH_I2C_Read... [17:36:32]Read from MH i2c: E2 0E 00 [17:36:32]MH_I2C_Read... [17:36:32]Read from MH i2c: E2 0E 00 69 11 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 11 [17:36:32]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:36:32]wFMCommunicate OK [17:36:32]SAM_PROTO_GetShiftState done [17:36:32]FM_GetShiftState done [17:36:32]req_shift_opened done [17:36:32]requested_item shift.open_date is exist - process it [17:36:32]req_shift_open_date [17:36:32]req_shift_open_date done [17:36:32]produce_requested_data done [17:36:32]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227554,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [17:36:32]process_action_free close_receipt [17:36:32]json_value_free [17:36:32]json_value_free done [17:36:32]process_json_proto returns [17:36:32]Send response to host [17:36:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227554,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [17:36:32]free response buf [17:36:32]execute_script done [17:36:32]execute_script returns [17:36:32]free content buf [17:36:32]Sock 9.Close socket [17:36:32]Sock 9.Thread stoped [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:28]accept exits with 7 [17:37:28]New connection [17:37:28]New thread 3067362660 created [17:37:28]Thread 3067219300 joined [17:37:28]Waiting for new connection... [17:37:28] Sock 7.Parse request [17:37:28]Sock 7.Check first char [17:37:28]Sock 7.First char is OK [17:37:28]request: POST /json_proto HTTP/1.0 [17:37:28]Method: POST [17:37:28]URL: /json_proto [17:37:28]Method is POST - this is cgi request [17:37:28]url: /json_proto [17:37:28]query_string will be loaded in cgi processing [17:37:28]execute_cgi json_proto POST (null) [17:37:28]execute_cgi path=json_proto method=POST [17:37:28]POST find Content-Length [17:37:28]Host: 172.17.44.195:8080 [17:37:28]Content-Length: 659 [17:37:28]Content-Type: application/json [17:37:28] [17:37:28]POST finish read [17:37:28]Found Content-Length = 659 [17:37:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963188", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 4.390, "sum" : 300.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:37:28]execute_script... [17:37: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)1963188", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 4.390, "sum" : 300.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:37:28]POST & json_proto [17:37:28]process_json_proto [17:37:28]json parsed OK: [17:37:28]protocol is kg_v1.0 [17:37:28]action value=close_receipt [17:37:28]process_action close_receipt [17:37:28]cmd_close_receipt [17:37:28]MH_GetDate [17:37:28]Write to MH i2c: F0 00 00 6A 11 6A [17:37:28]Write i2c OK [17:37:28]MH_I2C_Read... [17:37:28]Read from MH i2c: F0 [17:37:28]MH_I2C_Read... [17:37:28]Read from MH i2c: F0 09 00 [17:37:28]MH_I2C_Read... [17:37:28]Read from MH i2c: F0 09 00 6A 11 00 D9 3F 15 67 82 C9 CF 66 87 [17:37:28]GetLastDocTimeStamp 1729445790 [17:37:28]current date 1729445849 [17:37:28]FM_GetShiftState [17:37:28]SAM_PROTO_GetShiftState [17:37:28]wFMCommunicate request_size=4 [17:37:28]MH_SAM_APDU [17:37:28]CAPDU: 80 13 01 00 [17:37:28]Write to MH i2c: E2 08 00 6B 11 80 13 01 00 00 00 00 00 F9 [17:37:28]Write i2c OK [17:37:28]MH_I2C_Read... [17:37:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:28]Read from MH i2c: E2 [17:37:28]MH_I2C_Read... [17:37:28]Read from MH i2c: E2 0E 00 [17:37:28]MH_I2C_Read... [17:37:28]Read from MH i2c: E2 0E 00 6B 11 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 13 [17:37:28]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:37:28]wFMCommunicate OK [17:37:28]SAM_PROTO_GetShiftState done [17:37:28]FM_GetShiftState done [17:37:28]opened in 1729383750 [17:37:28]opened+sec_in_day 1729470150 [17:37:28]quantity*price = 30027 [17:37:28]sum+1 = 30029 [17:37:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 403 20.10.2024 17:37 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227555 ФПД: 88815002411592 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T173729&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227555&fm=88815002411592&tin=02508201610067®Number=0000000000091685&sum=30000 [17:37:29]StoreToDocumentArchive [17:37:29]shift 533 fd 227555 [17:37:29]save to /storage/0533/doc_00227555 [17:37:29]save last doc name /storage/0533/doc_00227555 to /storage/kkm_last_doc_name [17:37:29]save OK [17:37:29]Clear old archive folders... [17:37:29]ProcessDocumentItem done err = 0, tmpTLVsize=244 [17:37:29]tlvbuf is 00D89CD0 [17:37:29]SAM_PROTO_ClearQueue [17:37:29]wFMCommunicate request_size=4 [17:37:29]MH_SAM_APDU [17:37:29]CAPDU: 80 09 00 00 [17:37:29]Write to MH i2c: E2 08 00 78 11 80 09 00 00 00 00 00 00 FB [17:37:29]Write i2c OK [17:37:29]MH_I2C_Read... [17:37:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:37:29]Read from MH i2c: E2 [17:37:29]MH_I2C_Read... [17:37:29]Read from MH i2c: E2 03 00 [17:37:29]MH_I2C_Read... [17:37:29]Read from MH i2c: E2 03 00 78 11 00 90 00 FD [17:37:29]RAPDU: 90 00 [17:37:29]wFMCommunicate OK [17:37:29]SAM_PROTO_ClearQueue done [17:37:29]KKMCreateOFDPacket [17:37:29]OFDProtocolAddRootSTLVToBuf [17:37:29]FM_MakeSignedData [17:37:29]FM_MakeSignedData [17:37:29]SAM_PROTO_SignData [17:37:29]wFMCommunicate request_size=4 [17:37:29]MH_SAM_APDU [17:37:29]CAPDU: 80 0D 01 02 [17:37:29]Write to MH i2c: E2 08 00 79 11 80 0D 01 02 00 00 00 00 03 [17:37:29]Write i2c OK [17:37:29]MH_I2C_Read... [17:37:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:37:29]Read from MH i2c: E2 [17:37:29]MH_I2C_Read... [17:37:29]Read from MH i2c: E2 03 00 [17:37:29]MH_I2C_Read... [17:37:29]Read from MH i2c: E2 03 00 79 11 00 90 00 FE [17:37:29]RAPDU: 90 00 [17:37:29]wFMCommunicate OK [17:37:29]wFMCommunicate request_size=253 [17:37:29]MH_SAM_APDU [17:37:29]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 75 0C 00 00 00 00 07 04 06 00 30 75 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 01 00 00 F4 03 04 00 D9 3F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E3 78 03 00 35 04 06 00 50 C6 DA AB 62 48 [17:37:29]Write to MH i2c: E2 00 01 7A 11 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 75 0C 00 00 00 00 07 04 06 00 30 75 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 01 00 00 F4 03 04 00 D9 3F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E3 78 03 00 35 04 06 00 50 C6 DA AB 62 48 00 00 45 [17:37:29]Write i2c OK [17:37:29]MH_I2C_Read... [17:37:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:37:29]Read from MH i2c: E2 [17:37:29]MH_I2C_Read... [17:37:29]Read from MH i2c: E2 03 00 [17:37:29]MH_I2C_Read... [17:37:29]Read from MH i2c: E2 03 00 7A 11 00 90 00 FF [17:37:29]RAPDU: 90 00 [17:37:29]wFMCommunicate OK [17:37:29]wFMCommunicate request_size=4 [17:37:29]MH_SAM_APDU [17:37:29]CAPDU: 80 0D 03 02 [17:37:29]Write to MH i2c: E2 08 00 7B 11 80 0D 03 02 00 00 00 00 07 [17:37:29]Write i2c OK [17:37:29]MH_I2C_Read... [17:37:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:37:30]Read from MH i2c: E2 [17:37:30]MH_I2C_Read... [17:37:30]Read from MH i2c: E2 0B 00 [17:37:30]MH_I2C_Read... [17:37:30]Read from MH i2c: E2 0B 00 7B 11 00 EC 1D 96 F9 14 E8 D5 D0 90 00 41 [17:37:30]RAPDU: EC 1D 96 F9 14 E8 D5 D0 90 00 [17:37:30]wFMCommunicate OK [17:37:30]SAM_PROTO_SignData done [17:37:30]FM_MakeSignedData done [17:37:30]CreateOFDProtocolMessage [17:37:30]wFMCommunicate request_size=4 [17:37:30]MH_SAM_APDU [17:37:30]CAPDU: 80 11 00 00 [17:37:30]Write to MH i2c: E2 08 00 7C 11 80 11 00 00 00 00 00 00 07 [17:37:30]Write i2c OK [17:37:30]MH_I2C_Read... [17:37:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:30]Read from MH i2c: E2 [17:37:30]MH_I2C_Read... [17:37:30]Read from MH i2c: E2 17 00 [17:37:30]MH_I2C_Read... [17:37:30]Read from MH i2c: E2 17 00 7C 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 5E [17:37:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:37:30]wFMCommunicate OK [17:37:30]CreateOFDProtocolMessage done [17:37:30]OFDSenderStorePacket 227555 [17:37:30]StoreOFDPacket docnum=227555 [17:37:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 A0 E3 00 01 FD 10 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 75 0C 00 00 00 00 07 04 06 00 30 75 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 01 00 00 F4 03 04 00 D9 3F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E3 78 03 00 35 04 06 00 50 C6 DA AB 62 48 EC 1D 96 F9 14 E8 D5 D0 [17:37:30]CheckFolder [17:37:30]dirname=/storage/ofd_packets [17:37:30]CheckFolder done [17:37:30]ProducePacketName [17:37:30]name=ofd_packets/00227555 [17:37:30]NVStorageSaveData ofd_packets/00227555 [17:37:30]File name is /storage/ofd_packets/00227555 [17:37:30]Write 294 bytes [17:37:30]NVStorageSaveData done [17:37:30]OFDSenderStorePacket done [17:37:30]KKMCreateOFDPacket done [17:37:30]NVStorageSaveData kkm_last_timestamp [17:37:30]File name is /storage/kkm_last_timestamp [17:37:30]Write 4 bytes [17:37:30]NVStorageSaveData done [17:37:30]ExternCall_PrintAddStr [17:37:30]wPrintStart [17:37:30]Write to MH i2c: 01 00 00 7D 11 8E [17:37:30]Write i2c OK [17:37:30]MH_I2C_Read... [17:37:30]Read from MH i2c: 01 [17:37:30]MH_I2C_Read... [17:37:30]Read from MH i2c: 01 07 00 [17:37:30]MH_I2C_Read... [17:37:30]Read from MH i2c: 01 07 00 7D 11 00 00 00 00 00 FF 0F A3 [17:37:30]RasterBufferAndPrint [17:37:30]line Счет N : (1)1963188 [17:37:30]line ИНН: 02508201610067 [17:37:30]line Контрольно-Кассовый Чек [17:37:30]line ПРОДАЖА [17:37:30]line ТРК (МРК, ГНК) : 62 [17:37:30]line Товар: 2710124130 [17:37:30]line SU-92 [17:37:30]line 4.390 * 68.40 [17:37:30]line = 300.28 [17:37:30]line НДС 12% НСП 1% [17:37:30]line > о реализуемом товаре [17:37:30]line ОКРУГЛЕНИЕ: -0.28 [17:37:30]line ИТОГО: 300.00 [17:37:30]line Внесено: 300.00 [17:37:30]line СДАЧА: 0.00 [17:37:30]line НСП 1% : 2.66 [17:37:30]line НДС 12% : 31.89 [17:37:30]line Наличными: 300.00 [17:37:30]line Безнал.: 0.00 [17:37:30]line Место: АЗС № 133 "Партнер Нефть" [17:37:30]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:37:30]line СНО: Общий режим [17:37:30]line Чек 403 20.10.2024 17:37 [17:37:30]line Смена: 533 ФФД: 1.0 [17:37:30]line ЗНМ: 0300000091 [17:37:30]line РНМ: 0000000000091685 [17:37:30]line Версия ККМ: 001 [17:37:30]line ФМ: 0000000000871839 [17:37:30]line ФД: 227555 [17:37:30]line ФПД: 88815002411592 [17:37:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T173729&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227555&fm=88815002411592&tin=02508201610067®Number=0000000000091685&sum=30000 [17:37:30]OFD Sender: Processing packet 227555 [packets to send 38, broken 37] [17:37:30]ProducePacketName [17:37:30]name=ofd_packets/00227555 [17:37:30]OFD Sender: To server: pG, [17:37:30]CommunicateWithHost lk.salyk.kg:30040 [17:37:30]ConnectInit lk.salyk.kg [17:37:30]written 0, free lines is 4095 [17:37:30]Connected sock=10 [17:37: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 33 39 08 01 00 00 A0 E3 00 01 FD 10 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 75 0C 00 00 00 00 07 04 06 00 30 75 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 01 00 00 F4 03 04 00 D9 3F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E3 78 03 00 35 04 06 00 50 C6 DA AB 62 48 EC 1D 96 F9 14 E8 D5 D0 [17:37: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 33 39 4F 00 00 00 C0 2B 47 00 BB 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 33 39 10 04 04 00 E3 78 03 00 F4 03 04 00 D8 EA 14 67 B6 04 01 00 00 98 28 D2 49 DC 54 69 5F [17:37:30]CommunicateWithHost err = 0 [17:37:30]CheckOFDResponse [17:37:30]1017 (14) - 77093643461234 [17:37:30]1041 (16) - 0000000000871839 [17:37:30]1040 (4) - 227555 [17:37:30]1012 (4) - 20.10.2024 11:34 [17:37:30]1206 (1) - 0 [17:37:30]OFD Sender: Remove packet 227555 [17:37:30]ProducePacketName [17:37:30]name=ofd_packets/00227555 [17:37:30]NVStorageDeleteData [17:37:30]Write to MH i2c: 01 00 00 A7 11 B8 [17:37:30]Write i2c OK [17:37:30]MH_I2C_Read... [17:37:30]Read from MH i2c: 01 [17:37:30]MH_I2C_Read... [17:37:30]Read from MH i2c: 01 07 00 [17:37:30]MH_I2C_Read... [17:37:30]Read from MH i2c: 01 07 00 A7 11 00 00 00 00 00 FF 0C CA [17:37:30]RasterBufferAndPrint [17:37:30]line [17:37:30]line [17:37:30]line [17:37:30]line [17:37:30]line [17:37:30]written 0, free lines is 3333 [17:37:30]process_action close_receipt done [17:37:30]requested_data is exist [17:37:30]produce_requested_data [17:37:30]requested_item fm.sn is exist - process it [17:37:30]wFMCommunicate request_size=4 [17:37:30]MH_SAM_APDU [17:37:30]CAPDU: 80 11 00 00 [17:37:30]Write to MH i2c: E2 08 00 AE 11 80 11 00 00 00 00 00 00 39 [17:37:30]Write i2c OK [17:37:30]MH_I2C_Read... [17:37:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:30]Read from MH i2c: E2 [17:37:30]MH_I2C_Read... [17:37:30]Read from MH i2c: E2 17 00 [17:37:30]MH_I2C_Read... [17:37:30]Read from MH i2c: E2 17 00 AE 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 90 [17:37:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:37:30]wFMCommunicate OK [17:37:30]requested_item fd.num is exist - process it [17:37:30]SAM_PROTO_GetFieldsCounters [17:37:30]wFMCommunicate request_size=4 [17:37:30]MH_SAM_APDU [17:37:30]CAPDU: 80 13 00 00 [17:37:30]Write to MH i2c: E2 08 00 AF 11 80 13 00 00 00 00 00 00 3C [17:37:30]Write i2c OK [17:37:30]MH_I2C_Read... [17:37:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:37:31]Read from MH i2c: E2 [17:37:31]MH_I2C_Read... [17:37:31]Read from MH i2c: E2 62 00 [17:37:31]MH_I2C_Read... [17:37:31]Read from MH i2c: E2 62 00 AF 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 E3 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 93 01 00 00 5E 04 04 00 93 01 00 00 57 04 04 00 94 01 00 00 19 04 04 00 00 00 00 00 90 00 96 [17:37: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 E3 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 93 01 00 00 5E 04 04 00 93 01 00 00 57 04 04 00 94 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:37:31]wFMCommunicate OK [17:37:31]SAM_PROTO_GetFieldsCounters done [17:37:31]requested_item shift.num is exist - process it [17:37:31]requested_item shift.opened is exist - process it [17:37:31]req_shift_opened [17:37:31]FM_GetShiftState [17:37:31]SAM_PROTO_GetShiftState [17:37:31]wFMCommunicate request_size=4 [17:37:31]MH_SAM_APDU [17:37:31]CAPDU: 80 13 01 00 [17:37:31]Write to MH i2c: E2 08 00 B0 11 80 13 01 00 00 00 00 00 3E [17:37:31]Write i2c OK [17:37:31]MH_I2C_Read... [17:37:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:31]Read from MH i2c: E2 [17:37:31]MH_I2C_Read... [17:37:31]Read from MH i2c: E2 0E 00 [17:37:31]MH_I2C_Read... [17:37:31]Read from MH i2c: E2 0E 00 B0 11 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 58 [17:37:31]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:37:31]wFMCommunicate OK [17:37:31]SAM_PROTO_GetShiftState done [17:37:31]FM_GetShiftState done [17:37:31]req_shift_opened done [17:37:31]requested_item shift.open_date is exist - process it [17:37:31]req_shift_open_date [17:37:31]req_shift_open_date done [17:37:31]produce_requested_data done [17:37:31]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227555,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [17:37:31]process_action_free close_receipt [17:37:31]json_value_free [17:37:31]json_value_free done [17:37:31]process_json_proto returns [17:37:31]Send response to host [17:37:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227555,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [17:37:31]free response buf [17:37:31]execute_script done [17:37:31]execute_script returns [17:37:31]free content buf [17:37:31]Sock 7.Close socket [17:37:31]Sock 7.Thread stoped [17:37:31]OFD Sender: No OFD packet to send [17:37:36]OFD Sender: No OFD packet to send [17:37:41]OFD Sender: No OFD packet to send [17:37:46]OFD Sender: No OFD packet to send [17:37:51]OFD Sender: No OFD packet to send [17:37:56]OFD Sender: No OFD packet to send [17:38:01]OFD Sender: No OFD packet to send [17:38:06]OFD Sender: No OFD packet to send [17:38:11]OFD Sender: No OFD packet to send [17:38:16]OFD Sender: No OFD packet to send [17:38:21]OFD Sender: No OFD packet to send [17:38:26]OFD Sender: No OFD packet to send [17:38:31]OFD Sender: No OFD packet to send [17:38:36]OFD Sender: No OFD packet to send [17:38:41]OFD Sender: No OFD packet to send [17:38:46]OFD Sender: No OFD packet to send [17:38:51]OFD Sender: No OFD packet to send [17:38:56]OFD Sender: No OFD packet to send [17:39:01]OFD Sender: No OFD packet to send [17:39:06]OFD Sender: No OFD packet to send [17:39:11]OFD Sender: No OFD packet to send [17:39:16]OFD Sender: No OFD packet to send [17:39:21]OFD Sender: No OFD packet to send [17:39:26]OFD Sender: No OFD packet to send [17:39:31]OFD Sender: No OFD packet to send [17:39:36]OFD Sender: No OFD packet to send [17:39:41]OFD Sender: No OFD packet to send [17:39:46]OFD Sender: No OFD packet to send [17:39:51]OFD Sender: No OFD packet to send [17:39:56]OFD Sender: No OFD packet to send [17:40:01]OFD Sender: No OFD packet to send [17:40:02]accept exits with 9 [17:40:02]New connection [17:40:02]New thread 3067219300 created [17:40:02]Thread 3067362660 joined [17:40:02]Waiting for new connection... [17:40:02] Sock 9.Parse request [17:40:02]Sock 9.Check first char [17:40:02]Sock 9.First char is OK [17:40:02]request: POST /json_proto HTTP/1.0 [17:40:02]Method: POST [17:40:02]URL: /json_proto [17:40:02]Method is POST - this is cgi request [17:40:02]url: /json_proto [17:40:02]query_string will be loaded in cgi processing [17:40:02]execute_cgi json_proto POST (null) [17:40:02]execute_cgi path=json_proto method=POST [17:40:02]POST find Content-Length [17:40:02]Host: 172.17.44.195:8080 [17:40:02]Content-Length: 770 [17:40:02]Content-Type: application/json [17:40:02] [17:40:02]POST finish read [17:40:02]Found Content-Length = 770 [17:40:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963189", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 40.710, "sum" : 2723.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2723.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:40:02]execute_script... [17:40:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963189", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 40.710, "sum" : 2723.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2723.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:40:02]POST & json_proto [17:40:02]process_json_proto [17:40:02]json parsed OK: [17:40:02]protocol is kg_v1.0 [17:40:02]action value=close_receipt [17:40:02]process_action close_receipt [17:40:02]cmd_close_receipt [17:40:02]MH_GetDate [17:40:02]Write to MH i2c: F0 00 00 B1 11 B1 [17:40:02]Write i2c OK [17:40:02]MH_I2C_Read... [17:40:02]Read from MH i2c: F0 [17:40:02]MH_I2C_Read... [17:40:02]Read from MH i2c: F0 09 00 [17:40:02]MH_I2C_Read... [17:40:02]Read from MH i2c: F0 09 00 B1 11 00 74 40 15 67 82 C9 CF 66 6A [17:40:02]GetLastDocTimeStamp 1729445849 [17:40:02]current date 1729446004 [17:40:02]FM_GetShiftState [17:40:02]SAM_PROTO_GetShiftState [17:40:02]wFMCommunicate request_size=4 [17:40:02]MH_SAM_APDU [17:40:02]CAPDU: 80 13 01 00 [17:40:02]Write to MH i2c: E2 08 00 B2 11 80 13 01 00 00 00 00 00 40 [17:40:02]Write i2c OK [17:40:02]MH_I2C_Read... [17:40:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:40:03]Read from MH i2c: E2 [17:40:03]MH_I2C_Read... [17:40:03]Read from MH i2c: E2 0E 00 [17:40:03]MH_I2C_Read... [17:40:03]Read from MH i2c: E2 0E 00 B2 11 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 5A [17:40:03]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:40:03]wFMCommunicate OK [17:40:03]SAM_PROTO_GetShiftState done [17:40:03]FM_GetShiftState done [17:40:03]opened in 1729383750 [17:40:03]opened+sec_in_day 1729470150 [17:40:03]quantity*price = 272349 [17:40:03]sum+1 = 272351 [17:40:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2723.50 НСП 1% : 24.10 НДС 12% : 289.22 Наличными: 0.00 Безнал.: 2723.50 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 404 20.10.2024 17:40 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 227556 ФПД: 222295298944877 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T174004&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227556&fm=222295298944877&tin=02508201610067®Number=0000000000091685&sum=272350 [17:40:04]StoreToDocumentArchive [17:40:04]shift 533 fd 227556 [17:40:04]save to /storage/0533/doc_00227556 [17:40:04]save last doc name /storage/0533/doc_00227556 to /storage/kkm_last_doc_name [17:40:04]save OK [17:40:04]Clear old archive folders... [17:40:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:40:04]tlvbuf is B6F258B0 [17:40:04]SAM_PROTO_ClearQueue [17:40:04]wFMCommunicate request_size=4 [17:40:04]MH_SAM_APDU [17:40:04]CAPDU: 80 09 00 00 [17:40:04]Write to MH i2c: E2 08 00 BF 11 80 09 00 00 00 00 00 00 42 [17:40:04]Write i2c OK [17:40:04]MH_I2C_Read... [17:40:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:40:04]Read from MH i2c: E2 [17:40:04]MH_I2C_Read... [17:40:04]Read from MH i2c: E2 03 00 [17:40:04]MH_I2C_Read... [17:40:04]Read from MH i2c: E2 03 00 BF 11 00 90 00 44 [17:40:04]RAPDU: 90 00 [17:40:04]wFMCommunicate OK [17:40:04]SAM_PROTO_ClearQueue done [17:40:04]KKMCreateOFDPacket [17:40:04]OFDProtocolAddRootSTLVToBuf [17:40:04]FM_MakeSignedData [17:40:04]FM_MakeSignedData [17:40:04]SAM_PROTO_SignData [17:40:04]wFMCommunicate request_size=4 [17:40:04]MH_SAM_APDU [17:40:04]CAPDU: 80 0D 01 02 [17:40:04]Write to MH i2c: E2 08 00 C0 11 80 0D 01 02 00 00 00 00 4A [17:40:04]Write i2c OK [17:40:04]MH_I2C_Read... [17:40:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:40:04]Read from MH i2c: E2 [17:40:04]MH_I2C_Read... [17:40:04]Read from MH i2c: E2 03 00 [17:40:04]MH_I2C_Read... [17:40:04]Read from MH i2c: E2 03 00 C0 11 00 90 00 45 [17:40:04]RAPDU: 90 00 [17:40:04]wFMCommunicate OK [17:40:04]wFMCommunicate request_size=255 [17:40:04]MH_SAM_APDU [17:40:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 9F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DE 27 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DE 27 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 70 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DE 27 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 01 00 00 F4 03 04 00 74 40 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E4 78 03 00 35 04 06 00 CA [17:40:04]Write to MH i2c: E2 02 01 C1 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 9F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DE 27 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DE 27 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 70 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DE 27 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 01 00 00 F4 03 04 00 74 40 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E4 78 03 00 35 04 06 00 CA 00 00 3A [17:40:04]Write i2c OK [17:40:04]MH_I2C_Read... [17:40:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:40:04]Read from MH i2c: E2 [17:40:04]MH_I2C_Read... [17:40:04]Read from MH i2c: E2 03 00 [17:40:04]MH_I2C_Read... [17:40:04]Read from MH i2c: E2 03 00 C1 11 00 90 00 46 [17:40:04]RAPDU: 90 00 [17:40:04]wFMCommunicate OK [17:40:04]wFMCommunicate request_size=10 [17:40:04]MH_SAM_APDU [17:40:04]CAPDU: 80 0D 02 02 05 2D 28 54 2F 6D [17:40:04]Write to MH i2c: E2 0D 00 C2 11 80 0D 02 02 05 00 2D 28 54 2F 6D 00 00 9C [17:40:04]Write i2c OK [17:40:04]MH_I2C_Read... [17:40:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:40:04]Read from MH i2c: E2 [17:40:04]MH_I2C_Read... [17:40:04]Read from MH i2c: E2 03 00 [17:40:04]MH_I2C_Read... [17:40:04]Read from MH i2c: E2 03 00 C2 11 00 90 00 47 [17:40:04]RAPDU: 90 00 [17:40:04]wFMCommunicate OK [17:40:04]wFMCommunicate request_size=4 [17:40:04]MH_SAM_APDU [17:40:04]CAPDU: 80 0D 03 02 [17:40:04]Write to MH i2c: E2 08 00 C3 11 80 0D 03 02 00 00 00 00 4F [17:40:04]Write i2c OK [17:40:04]MH_I2C_Read... [17:40:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:40:04]Read from MH i2c: E2 [17:40:04]MH_I2C_Read... [17:40:04]Read from MH i2c: E2 0B 00 [17:40:04]MH_I2C_Read... [17:40:04]Read from MH i2c: E2 0B 00 C3 11 00 56 C4 35 03 2B 88 47 4E 90 00 EA [17:40:04]RAPDU: 56 C4 35 03 2B 88 47 4E 90 00 [17:40:04]wFMCommunicate OK [17:40:04]SAM_PROTO_SignData done [17:40:04]FM_MakeSignedData done [17:40:04]CreateOFDProtocolMessage [17:40:04]wFMCommunicate request_size=4 [17:40:04]MH_SAM_APDU [17:40:04]CAPDU: 80 11 00 00 [17:40:04]Write to MH i2c: E2 08 00 C4 11 80 11 00 00 00 00 00 00 4F [17:40:04]Write i2c OK [17:40:04]MH_I2C_Read... [17:40:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:40:04]Read from MH i2c: E2 [17:40:04]MH_I2C_Read... [17:40:04]Read from MH i2c: E2 17 00 [17:40:04]MH_I2C_Read... [17:40:04]Read from MH i2c: E2 17 00 C4 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A6 [17:40:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:40:04]wFMCommunicate OK [17:40:04]CreateOFDProtocolMessage done [17:40:04]OFDSenderStorePacket 227556 [17:40:04]StoreOFDPacket docnum=227556 [17:40:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 EE 0A 07 01 C6 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 9F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DE 27 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DE 27 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 70 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DE 27 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 01 00 00 F4 03 04 00 74 40 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E4 78 03 00 35 04 06 00 CA 2D 28 54 2F 6D 56 C4 35 03 2B 88 47 4E [17:40:04]CheckFolder [17:40:04]dirname=/storage/ofd_packets [17:40:04]CheckFolder done [17:40:04]ProducePacketName [17:40:04]name=ofd_packets/00227556 [17:40:04]NVStorageSaveData ofd_packets/00227556 [17:40:04]File name is /storage/ofd_packets/00227556 [17:40:04]Write 301 bytes [17:40:04]NVStorageSaveData done [17:40:04]OFDSenderStorePacket done [17:40:04]KKMCreateOFDPacket done [17:40:04]NVStorageSaveData kkm_last_timestamp [17:40:04]File name is /storage/kkm_last_timestamp [17:40:04]Write 4 bytes [17:40:04]NVStorageSaveData done [17:40:04]ExternCall_PrintAddStr [17:40:04]wPrintStart [17:40:04]Write to MH i2c: 01 00 00 C5 11 D6 [17:40:04]Write i2c OK [17:40:04]MH_I2C_Read... [17:40:04]Read from MH i2c: 01 [17:40:04]MH_I2C_Read... [17:40:04]Read from MH i2c: 01 07 00 [17:40:04]MH_I2C_Read... [17:40:04]Read from MH i2c: 01 07 00 C5 11 00 00 00 00 00 FF 0F EB [17:40:04]RasterBufferAndPrint [17:40:04]line Счет N : (1)1963189 [17:40:04]line ИНН: 02508201610067 [17:40:04]line Контрольно-Кассовый Чек [17:40:04]line ПРОДАЖА [17:40:04]line ТРК (МРК, ГНК) : 43 [17:40:04]line Товар: 2710124130 [17:40:04]line Аи-92-К-5 [17:40:04]line 40.710 * 66.90 [17:40:04]line = 2723.50 [17:40:04]line НДС 12% НСП 1% [17:40:04]line > о реализуемом товаре [17:40:04]line ИТОГО: 2723.50 [17:40:04]line НСП 1% : 24.10 [17:40:04]line НДС 12% : 289.22 [17:40:04]line Наличными: 0.00 [17:40:04]line Безнал.: 2723.50 [17:40:04]line Место: АЗС № 133 "Партнер Нефть" [17:40:04]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:40:04]line СНО: Общий режим [17:40:04]line Чек 404 20.10.2024 17:40 [17:40:04]line Смена: 533 ФФД: 1.0 [17:40:04]line ЗНМ: 0300000091 [17:40:04]line РНМ: 0000000000091685 [17:40:04]line Версия ККМ: 001 [17:40:04]line Платежная система: Mbank [17:40:04]line ФМ: 0000000000871839 [17:40:04]line ФД: 227556 [17:40:04]line ФПД: 222295298944877 [17:40:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T174004&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227556&fm=222295298944877&tin=02508201610067®Number=0000000000091685&sum=272350 [17:40:04]written 0, free lines is 4095 [17:40:04]OFD Sender: Processing packet 227556 [packets to send 38, broken 37] [17:40:04]ProducePacketName [17:40:04]name=ofd_packets/00227556 [17:40:04]OFD Sender: To server: pG, [17:40:04]CommunicateWithHost lk.salyk.kg:30040 [17:40:04]ConnectInit lk.salyk.kg [17:40:04]Connected sock=7 [17:40:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 EE 0A 07 01 C6 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 9F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DE 27 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DE 27 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 70 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DE 27 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 01 00 00 F4 03 04 00 74 40 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E4 78 03 00 35 04 06 00 CA 2D 28 54 2F 6D 56 C4 35 03 2B 88 47 4E [17:40: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 33 39 4F 00 00 00 17 CF 47 00 88 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E4 78 03 00 F4 03 04 00 72 EB 14 67 B6 04 01 00 00 DD 9B AD A9 81 95 18 07 [17:40:05]CommunicateWithHost err = 0 [17:40:05]CheckOFDResponse [17:40:05]1017 (14) - 77093643461234 [17:40:05]1041 (16) - 0000000000871839 [17:40:05]1040 (4) - 227556 [17:40:05]1012 (4) - 20.10.2024 11:37 [17:40:05]1206 (1) - 0 [17:40:05]OFD Sender: Remove packet 227556 [17:40:05]ProducePacketName [17:40:05]name=ofd_packets/00227556 [17:40:05]NVStorageDeleteData [17:40:05]Write to MH i2c: 01 00 00 ED 11 FE [17:40:05]Write i2c OK [17:40:05]MH_I2C_Read... [17:40:05]Read from MH i2c: 01 [17:40:05]MH_I2C_Read... [17:40:05]Read from MH i2c: 01 07 00 [17:40:05]MH_I2C_Read... [17:40:05]Read from MH i2c: 01 07 00 ED 11 00 00 00 00 00 3A 0D 4C [17:40:05]RasterBufferAndPrint [17:40:05]line [17:40:05]line [17:40:05]line [17:40:05]line [17:40:05]line [17:40:05]written 0, free lines is 3395 [17:40:05]process_action close_receipt done [17:40:05]requested_data is exist [17:40:05]produce_requested_data [17:40:05]requested_item fm.sn is exist - process it [17:40:05]wFMCommunicate request_size=4 [17:40:05]MH_SAM_APDU [17:40:05]CAPDU: 80 11 00 00 [17:40:05]Write to MH i2c: E2 08 00 F4 11 80 11 00 00 00 00 00 00 7F [17:40:05]Write i2c OK [17:40:05]MH_I2C_Read... [17:40:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:40:05]Read from MH i2c: E2 [17:40:05]MH_I2C_Read... [17:40:05]Read from MH i2c: E2 17 00 [17:40:05]MH_I2C_Read... [17:40:05]Read from MH i2c: E2 17 00 F4 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D6 [17:40:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:40:05]wFMCommunicate OK [17:40:05]requested_item fd.num is exist - process it [17:40:05]SAM_PROTO_GetFieldsCounters [17:40:05]wFMCommunicate request_size=4 [17:40:05]MH_SAM_APDU [17:40:05]CAPDU: 80 13 00 00 [17:40:05]Write to MH i2c: E2 08 00 F5 11 80 13 00 00 00 00 00 00 82 [17:40:05]Write i2c OK [17:40:05]MH_I2C_Read... [17:40:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:40:05]Read from MH i2c: E2 [17:40:05]MH_I2C_Read... [17:40:05]Read from MH i2c: E2 62 00 [17:40:05]MH_I2C_Read... [17:40:05]Read from MH i2c: E2 62 00 F5 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 E4 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 94 01 00 00 5E 04 04 00 94 01 00 00 57 04 04 00 95 01 00 00 19 04 04 00 00 00 00 00 90 00 E0 [17:40:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 E4 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 94 01 00 00 5E 04 04 00 94 01 00 00 57 04 04 00 95 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:40:05]wFMCommunicate OK [17:40:05]SAM_PROTO_GetFieldsCounters done [17:40:05]requested_item shift.num is exist - process it [17:40:05]requested_item shift.opened is exist - process it [17:40:05]req_shift_opened [17:40:05]FM_GetShiftState [17:40:05]SAM_PROTO_GetShiftState [17:40:05]wFMCommunicate request_size=4 [17:40:05]MH_SAM_APDU [17:40:05]CAPDU: 80 13 01 00 [17:40:05]Write to MH i2c: E2 08 00 F6 11 80 13 01 00 00 00 00 00 84 [17:40:05]Write i2c OK [17:40:05]MH_I2C_Read... [17:40:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:40:05]Read from MH i2c: E2 [17:40:05]MH_I2C_Read... [17:40:05]Read from MH i2c: E2 0E 00 [17:40:05]MH_I2C_Read... [17:40:05]Read from MH i2c: E2 0E 00 F6 11 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 9E [17:40:05]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:40:05]wFMCommunicate OK [17:40:05]SAM_PROTO_GetShiftState done [17:40:05]FM_GetShiftState done [17:40:05]req_shift_opened done [17:40:05]requested_item shift.open_date is exist - process it [17:40:05]req_shift_open_date [17:40:05]req_shift_open_date done [17:40:05]produce_requested_data done [17:40:05]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227556,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [17:40:05]process_action_free close_receipt [17:40:05]json_value_free [17:40:05]json_value_free done [17:40:05]process_json_proto returns [17:40:05]Send response to host [17:40:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227556,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [17:40:05]free response buf [17:40:05]execute_script done [17:40:05]execute_script returns [17:40:05]free content buf [17:40:05]Sock 9.Close socket [17:40:05]Sock 9.Thread stoped [17:40:05]OFD Sender: No OFD packet to send [17:40:10]OFD Sender: No OFD packet to send [17:40:15]OFD Sender: No OFD packet to send [17:40:20]OFD Sender: No OFD packet to send [17:40:25]OFD Sender: No OFD packet to send [17:40:30]OFD Sender: No OFD packet to send [17:40:35]OFD Sender: No OFD packet to send [17:40:40]OFD Sender: No OFD packet to send [17:40:45]OFD Sender: No OFD packet to send [17:40:50]OFD Sender: No OFD packet to send [17:40:55]OFD Sender: No OFD packet to send [17:41:00]OFD Sender: No OFD packet to send [17:41:05]OFD Sender: No OFD packet to send [17:41:10]OFD Sender: No OFD packet to send [17:41:15]OFD Sender: No OFD packet to send [17:41:20]OFD Sender: No OFD packet to send [17:41:25]OFD Sender: No OFD packet to send [17:41:30]OFD Sender: No OFD packet to send [17:41:35]OFD Sender: No OFD packet to send [17:41:40]OFD Sender: No OFD packet to send [17:41:45]OFD Sender: No OFD packet to send [17:41:50]OFD Sender: No OFD packet to send [17:41:55]OFD Sender: No OFD packet to send [17:42:00]OFD Sender: No OFD packet to send [17:42:05]OFD Sender: No OFD packet to send [17:42:10]OFD Sender: No OFD packet to send [17:42:15]OFD Sender: No OFD packet to send [17:42:20]OFD Sender: No OFD packet to send [17:42:25]OFD Sender: No OFD packet to send [17:42:30]OFD Sender: No OFD packet to send [17:42:35]OFD Sender: No OFD packet to send [17:42:40]OFD Sender: No OFD packet to send [17:42:45]OFD Sender: No OFD packet to send [17:42:50]OFD Sender: No OFD packet to send [17:42:55]OFD Sender: No OFD packet to send [17:43:00]OFD Sender: No OFD packet to send [17:43:05]OFD Sender: No OFD packet to send [17:43:10]OFD Sender: No OFD packet to send [17:43:15]OFD Sender: No OFD packet to send [17:43:20]OFD Sender: No OFD packet to send [17:43:25]OFD Sender: No OFD packet to send [17:43:30]OFD Sender: No OFD packet to send [17:43:35]OFD Sender: No OFD packet to send [17:43:40]OFD Sender: No OFD packet to send [17:43:45]OFD Sender: No OFD packet to send [17:43:50]OFD Sender: No OFD packet to send [17:43:55]OFD Sender: No OFD packet to send [17:44:00]OFD Sender: No OFD packet to send [17:44:05]OFD Sender: No OFD packet to send [17:44:10]OFD Sender: No OFD packet to send [17:44:15]OFD Sender: No OFD packet to send [17:44:16]accept exits with 10 [17:44:16]New connection [17:44:16]New thread 3067362660 created [17:44:16]Thread 3067219300 joined [17:44:16]Waiting for new connection... [17:44:16] Sock 10.Parse request [17:44:16]Sock 10.Check first char [17:44:16]Sock 10.First char is OK [17:44:16]request: POST /json_proto HTTP/1.0 [17:44:16]Method: POST [17:44:16]URL: /json_proto [17:44:16]Method is POST - this is cgi request [17:44:16]url: /json_proto [17:44:16]query_string will be loaded in cgi processing [17:44:16]execute_cgi json_proto POST (null) [17:44:16]execute_cgi path=json_proto method=POST [17:44:16]POST find Content-Length [17:44:16]Host: 172.17.44.195:8080 [17:44:16]Content-Length: 678 [17:44:16]Content-Type: application/json [17:44:16] [17:44:16]POST finish read [17:44:16]Found Content-Length = 678 [17:44:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963190", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:44:16]execute_script... [17:44:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963190", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:44:16]POST & json_proto [17:44:16]process_json_proto [17:44:16]json parsed OK: [17:44:16]protocol is kg_v1.0 [17:44:16]action value=close_receipt [17:44:16]process_action close_receipt [17:44:16]cmd_close_receipt [17:44:16]MH_GetDate [17:44:16]Write to MH i2c: F0 00 00 F7 11 F7 [17:44:16]Write i2c OK [17:44:16]MH_I2C_Read... [17:44:16]Read from MH i2c: F0 [17:44:16]MH_I2C_Read... [17:44:16]Read from MH i2c: F0 09 00 [17:44:16]MH_I2C_Read... [17:44:16]Read from MH i2c: F0 09 00 F7 11 00 72 41 15 67 82 C9 CF 66 AF [17:44:16]GetLastDocTimeStamp 1729446004 [17:44:16]current date 1729446258 [17:44:16]FM_GetShiftState [17:44:16]SAM_PROTO_GetShiftState [17:44:16]wFMCommunicate request_size=4 [17:44:16]MH_SAM_APDU [17:44:16]CAPDU: 80 13 01 00 [17:44:16]Write to MH i2c: E2 08 00 F8 11 80 13 01 00 00 00 00 00 86 [17:44:16]Write i2c OK [17:44:16]MH_I2C_Read... [17:44:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:44:16]Read from MH i2c: E2 [17:44:16]MH_I2C_Read... [17:44:16]Read from MH i2c: E2 0E 00 [17:44:16]MH_I2C_Read... [17:44:16]Read from MH i2c: E2 0E 00 F8 11 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 A0 [17:44:16]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:44:16]wFMCommunicate OK [17:44:16]SAM_PROTO_GetShiftState done [17:44:16]FM_GetShiftState done [17:44:16]opened in 1729383750 [17:44:16]opened+sec_in_day 1729470150 [17:44:16]quantity*price = 50041 [17:44:16]sum+1 = 50042 [17:44:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 405 20.10.2024 17:44 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227557 ФПД: 85036081401074 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T174418&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227557&fm=85036081401074&tin=02508201610067®Number=0000000000091685&sum=50000 [17:44:17]StoreToDocumentArchive [17:44:17]shift 533 fd 227557 [17:44:17]save to /storage/0533/doc_00227557 [17:44:17]save last doc name /storage/0533/doc_00227557 to /storage/kkm_last_doc_name [17:44:17]save OK [17:44:17]Clear old archive folders... [17:44:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:44:17]tlvbuf is B6F0C6F0 [17:44:17]SAM_PROTO_ClearQueue [17:44:17]wFMCommunicate request_size=4 [17:44:17]MH_SAM_APDU [17:44:17]CAPDU: 80 09 00 00 [17:44:17]Write to MH i2c: E2 08 00 05 12 80 09 00 00 00 00 00 00 89 [17:44:17]Write i2c OK [17:44:17]MH_I2C_Read... [17:44:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:44:17]Read from MH i2c: E2 [17:44:17]MH_I2C_Read... [17:44:17]Read from MH i2c: E2 03 00 [17:44:17]MH_I2C_Read... [17:44:17]Read from MH i2c: E2 03 00 05 12 00 90 00 8B [17:44:17]RAPDU: 90 00 [17:44:17]wFMCommunicate OK [17:44:17]SAM_PROTO_ClearQueue done [17:44:17]KKMCreateOFDPacket [17:44:17]OFDProtocolAddRootSTLVToBuf [17:44:17]FM_MakeSignedData [17:44:17]FM_MakeSignedData [17:44:17]SAM_PROTO_SignData [17:44:17]wFMCommunicate request_size=4 [17:44:17]MH_SAM_APDU [17:44:17]CAPDU: 80 0D 01 02 [17:44:17]Write to MH i2c: E2 08 00 06 12 80 0D 01 02 00 00 00 00 91 [17:44:17]Write i2c OK [17:44:17]MH_I2C_Read... [17:44:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:44:17]Read from MH i2c: E2 [17:44:17]MH_I2C_Read... [17:44:17]Read from MH i2c: E2 03 00 [17:44:17]MH_I2C_Read... [17:44:17]Read from MH i2c: E2 03 00 06 12 00 90 00 8C [17:44:17]RAPDU: 90 00 [17:44:17]wFMCommunicate OK [17:44:17]wFMCommunicate request_size=255 [17:44:17]MH_SAM_APDU [17:44:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 01 00 00 F4 03 04 00 72 41 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E5 78 03 00 35 04 06 00 4D [17:44:17]Write to MH i2c: E2 02 01 07 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 01 00 00 F4 03 04 00 72 41 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E5 78 03 00 35 04 06 00 4D 00 00 B1 [17:44:17]Write i2c OK [17:44:17]MH_I2C_Read... [17:44:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:44:18]Read from MH i2c: E2 [17:44:18]MH_I2C_Read... [17:44:18]Read from MH i2c: E2 03 00 [17:44:18]MH_I2C_Read... [17:44:18]Read from MH i2c: E2 03 00 07 12 00 90 00 8D [17:44:18]RAPDU: 90 00 [17:44:18]wFMCommunicate OK [17:44:18]wFMCommunicate request_size=10 [17:44:18]MH_SAM_APDU [17:44:18]CAPDU: 80 0D 02 02 05 57 01 6C CC F2 [17:44:18]Write to MH i2c: E2 0D 00 08 12 80 0D 02 02 05 00 57 01 6C CC F2 00 00 20 [17:44:18]Write i2c OK [17:44:18]MH_I2C_Read... [17:44:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:44:18]Read from MH i2c: E2 [17:44:18]MH_I2C_Read... [17:44:18]Read from MH i2c: E2 03 00 [17:44:18]MH_I2C_Read... [17:44:18]Read from MH i2c: E2 03 00 08 12 00 90 00 8E [17:44:18]RAPDU: 90 00 [17:44:18]wFMCommunicate OK [17:44:18]wFMCommunicate request_size=4 [17:44:18]MH_SAM_APDU [17:44:18]CAPDU: 80 0D 03 02 [17:44:18]Write to MH i2c: E2 08 00 09 12 80 0D 03 02 00 00 00 00 96 [17:44:18]Write i2c OK [17:44:18]MH_I2C_Read... [17:44:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:44:18]Read from MH i2c: E2 [17:44:18]MH_I2C_Read... [17:44:18]Read from MH i2c: E2 0B 00 [17:44:18]MH_I2C_Read... [17:44:18]Read from MH i2c: E2 0B 00 09 12 00 F3 61 FE CE 31 33 BC 4C 90 00 23 [17:44:18]RAPDU: F3 61 FE CE 31 33 BC 4C 90 00 [17:44:18]wFMCommunicate OK [17:44:18]SAM_PROTO_SignData done [17:44:18]FM_MakeSignedData done [17:44:18]CreateOFDProtocolMessage [17:44:18]wFMCommunicate request_size=4 [17:44:18]MH_SAM_APDU [17:44:18]CAPDU: 80 11 00 00 [17:44:18]Write to MH i2c: E2 08 00 0A 12 80 11 00 00 00 00 00 00 96 [17:44:18]Write i2c OK [17:44:18]MH_I2C_Read... [17:44:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:44:18]Read from MH i2c: E2 [17:44:18]MH_I2C_Read... [17:44:18]Read from MH i2c: E2 17 00 [17:44:18]MH_I2C_Read... [17:44:18]Read from MH i2c: E2 17 00 0A 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 ED [17:44:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:44:18]wFMCommunicate OK [17:44:18]CreateOFDProtocolMessage done [17:44:18]OFDSenderStorePacket 227557 [17:44:18]StoreOFDPacket docnum=227557 [17:44:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 23 23 07 01 0D 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 01 00 00 F4 03 04 00 72 41 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E5 78 03 00 35 04 06 00 4D 57 01 6C CC F2 F3 61 FE CE 31 33 BC 4C [17:44:18]CheckFolder [17:44:18]dirname=/storage/ofd_packets [17:44:18]CheckFolder done [17:44:18]ProducePacketName [17:44:18]name=ofd_packets/00227557 [17:44:18]NVStorageSaveData ofd_packets/00227557 [17:44:18]File name is /storage/ofd_packets/00227557 [17:44:18]Write 301 bytes [17:44:18]NVStorageSaveData done [17:44:18]OFDSenderStorePacket done [17:44:18]KKMCreateOFDPacket done [17:44:18]NVStorageSaveData kkm_last_timestamp [17:44:18]File name is /storage/kkm_last_timestamp [17:44:18]Write 4 bytes [17:44:18]NVStorageSaveData done [17:44:18]OFD Sender: Processing packet 227557 [packets to send 38, broken 37] [17:44:18]ProducePacketName [17:44:18]name=ofd_packets/00227557 [17:44:18]OFD Sender: To server: pG, [17:44:18]CommunicateWithHost lk.salyk.kg:30040 [17:44:18]ConnectInit lk.salyk.kg [17:44:18]ExternCall_PrintAddStr [17:44:18]wPrintStart [17:44:18]Write to MH i2c: 01 00 00 0B 12 1D [17:44:18]Write i2c OK [17:44:18]MH_I2C_Read... [17:44:18]Read from MH i2c: 01 [17:44:18]MH_I2C_Read... [17:44:18]Read from MH i2c: 01 07 00 [17:44:18]MH_I2C_Read... [17:44:18]Read from MH i2c: 01 07 00 0B 12 00 00 00 00 00 FF 0F 32 [17:44:18]RasterBufferAndPrint [17:44:18]line Счет N : (1)1963190 [17:44:18]line ИНН: 02508201610067 [17:44:18]line Контрольно-Кассовый Чек [17:44:18]line ПРОДАЖА [17:44:18]line ТРК (МРК, ГНК) : 33 [17:44:18]line Товар: 2710124130 [17:44:18]line Аи-92-К-5 [17:44:18]line 7.480 * 66.90 [17:44:18]line = 500.41 [17:44:18]line НДС 12% НСП 1% [17:44:18]line > о реализуемом товаре [17:44:18]line ОКРУГЛЕНИЕ: -0.41 [17:44:18]line ИТОГО: 500.00 [17:44:18]line Внесено: 500.00 [17:44:18]line СДАЧА: 0.00 [17:44:18]line НСП 1% : 4.43 [17:44:18]line НДС 12% : 53.14 [17:44:18]line Наличными: 500.00 [17:44:18]line Безнал.: 0.00 [17:44:18]line Место: АЗС № 133 "Партнер Нефть" [17:44:18]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:44:18]line СНО: Общий режим [17:44:18]line Чек 405 20.10.2024 17:44 [17:44:18]line Смена: 533 ФФД: 1.0 [17:44:18]line ЗНМ: 0300000091 [17:44:18]line РНМ: 0000000000091685 [17:44:18]line Версия ККМ: 001 [17:44:18]line ФМ: 0000000000871839 [17:44:18]line ФД: 227557 [17:44:18]line ФПД: 85036081401074 [17:44:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T174418&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227557&fm=85036081401074&tin=02508201610067®Number=0000000000091685&sum=50000 [17:44:18]Connected sock=11 [17:44:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 23 23 07 01 0D 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 01 00 00 F4 03 04 00 72 41 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E5 78 03 00 35 04 06 00 4D 57 01 6C CC F2 F3 61 FE CE 31 33 BC 4C [17:44:18]written 0, free lines is 4095 [17:44: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 33 39 4F 00 00 00 E5 D3 47 00 30 BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E5 78 03 00 F4 03 04 00 70 EC 14 67 B6 04 01 00 00 EB E7 7D 68 63 A4 02 B4 [17:44:18]CommunicateWithHost err = 0 [17:44:18]CheckOFDResponse [17:44:18]1017 (14) - 77093643461234 [17:44:18]1041 (16) - 0000000000871839 [17:44:18]1040 (4) - 227557 [17:44:18]1012 (4) - 20.10.2024 11:41 [17:44:18]1206 (1) - 0 [17:44:18]OFD Sender: Remove packet 227557 [17:44:18]ProducePacketName [17:44:18]name=ofd_packets/00227557 [17:44:18]NVStorageDeleteData [17:44:19]Write to MH i2c: 01 00 00 35 12 47 [17:44:19]Write i2c OK [17:44:19]MH_I2C_Read... [17:44:19]Read from MH i2c: 01 [17:44:19]MH_I2C_Read... [17:44:19]Read from MH i2c: 01 07 00 [17:44:19]MH_I2C_Read... [17:44:19]Read from MH i2c: 01 07 00 35 12 00 00 00 00 00 0B 0D 66 [17:44:19]RasterBufferAndPrint [17:44:19]line [17:44:19]line [17:44:19]line [17:44:19]line [17:44:19]line [17:44:19]written 0, free lines is 3345 [17:44:19]process_action close_receipt done [17:44:19]requested_data is exist [17:44:19]produce_requested_data [17:44:19]requested_item fm.sn is exist - process it [17:44:19]wFMCommunicate request_size=4 [17:44:19]MH_SAM_APDU [17:44:19]CAPDU: 80 11 00 00 [17:44:19]Write to MH i2c: E2 08 00 3C 12 80 11 00 00 00 00 00 00 C8 [17:44:19]Write i2c OK [17:44:19]MH_I2C_Read... [17:44:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:44:19]Read from MH i2c: E2 [17:44:19]MH_I2C_Read... [17:44:19]Read from MH i2c: E2 17 00 [17:44:19]MH_I2C_Read... [17:44:19]Read from MH i2c: E2 17 00 3C 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 1F [17:44:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:44:19]wFMCommunicate OK [17:44:19]requested_item fd.num is exist - process it [17:44:19]SAM_PROTO_GetFieldsCounters [17:44:19]wFMCommunicate request_size=4 [17:44:19]MH_SAM_APDU [17:44:19]CAPDU: 80 13 00 00 [17:44:19]Write to MH i2c: E2 08 00 3D 12 80 13 00 00 00 00 00 00 CB [17:44:19]Write i2c OK [17:44:19]MH_I2C_Read... [17:44:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:44:19]OFD Sender: No OFD packet to send [17:44:19]Read from MH i2c: E2 [17:44:19]MH_I2C_Read... [17:44:19]Read from MH i2c: E2 62 00 [17:44:19]MH_I2C_Read... [17:44:19]Read from MH i2c: E2 62 00 3D 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 E5 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 95 01 00 00 5E 04 04 00 95 01 00 00 57 04 04 00 96 01 00 00 19 04 04 00 00 00 00 00 90 00 2D [17:44: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 E5 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 95 01 00 00 5E 04 04 00 95 01 00 00 57 04 04 00 96 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:44:19]wFMCommunicate OK [17:44:19]SAM_PROTO_GetFieldsCounters done [17:44:19]requested_item shift.num is exist - process it [17:44:19]requested_item shift.opened is exist - process it [17:44:19]req_shift_opened [17:44:19]FM_GetShiftState [17:44:19]SAM_PROTO_GetShiftState [17:44:19]wFMCommunicate request_size=4 [17:44:19]MH_SAM_APDU [17:44:19]CAPDU: 80 13 01 00 [17:44:19]Write to MH i2c: E2 08 00 3E 12 80 13 01 00 00 00 00 00 CD [17:44:19]Write i2c OK [17:44:19]MH_I2C_Read... [17:44:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:44:19]Read from MH i2c: E2 [17:44:19]MH_I2C_Read... [17:44:19]Read from MH i2c: E2 0E 00 [17:44:19]MH_I2C_Read... [17:44:19]Read from MH i2c: E2 0E 00 3E 12 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 E7 [17:44:19]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:44:19]wFMCommunicate OK [17:44:19]SAM_PROTO_GetShiftState done [17:44:19]FM_GetShiftState done [17:44:19]req_shift_opened done [17:44:19]requested_item shift.open_date is exist - process it [17:44:19]req_shift_open_date [17:44:19]req_shift_open_date done [17:44:19]produce_requested_data done [17:44:19]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227557,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [17:44:19]process_action_free close_receipt [17:44:19]json_value_free [17:44:19]json_value_free done [17:44:19]process_json_proto returns [17:44:19]Send response to host [17:44:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227557,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [17:44:19]free response buf [17:44:19]execute_script done [17:44:19]execute_script returns [17:44:19]free content buf [17:44:19]Sock 10.Close socket [17:44:19]Sock 10.Thread stoped [17:44:24]OFD Sender: No OFD packet to send [17:44:29]OFD Sender: No OFD packet to send [17:44:34]OFD Sender: No OFD packet to send [17:44:39]OFD Sender: No OFD packet to send [17:44:44]OFD Sender: No OFD packet to send [17:44:49]OFD Sender: No OFD packet to send [17:44:54]OFD Sender: No OFD packet to send [17:44:59]OFD Sender: No OFD packet to send [17:45:04]OFD Sender: No OFD packet to send [17:45:09]OFD Sender: No OFD packet to send [17:45:14]OFD Sender: No OFD packet to send [17:45:19]OFD Sender: No OFD packet to send [17:45:24]OFD Sender: No OFD packet to send [17:45:29]OFD Sender: No OFD packet to send [17:45:29]accept exits with 9 [17:45:29]New connection [17:45:29]New thread 3067219300 created [17:45:29]Thread 3067362660 joined [17:45:29]Waiting for new connection... [17:45:29] Sock 9.Parse request [17:45:29]Sock 9.Check first char [17:45:29]Sock 9.First char is OK [17:45:29]request: POST /json_proto HTTP/1.0 [17:45:29]Method: POST [17:45:29]URL: /json_proto [17:45:29]Method is POST - this is cgi request [17:45:29]url: /json_proto [17:45:29]query_string will be loaded in cgi processing [17:45:29]execute_cgi json_proto POST (null) [17:45:29]execute_cgi path=json_proto method=POST [17:45:29]POST find Content-Length [17:45:29]Host: 172.17.44.195:8080 [17:45:29]Content-Length: 678 [17:45:29]Content-Type: application/json [17:45:29] [17:45:29]POST finish read [17:45:29]Found Content-Length = 678 [17:45:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963191", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:45:29]execute_script... [17:45: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)1963191", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:45:29]POST & json_proto [17:45:29]process_json_proto [17:45:29]json parsed OK: [17:45:29]protocol is kg_v1.0 [17:45:29]action value=close_receipt [17:45:29]process_action close_receipt [17:45:29]cmd_close_receipt [17:45:29]MH_GetDate [17:45:29]Write to MH i2c: F0 00 00 3F 12 40 [17:45:29]Write i2c OK [17:45:29]MH_I2C_Read... [17:45:29]Read from MH i2c: F0 [17:45:29]MH_I2C_Read... [17:45:29]Read from MH i2c: F0 09 00 [17:45:29]MH_I2C_Read... [17:45:29]Read from MH i2c: F0 09 00 3F 12 00 BA 41 15 67 82 C9 CF 66 40 [17:45:29]GetLastDocTimeStamp 1729446258 [17:45:29]current date 1729446330 [17:45:29]FM_GetShiftState [17:45:29]SAM_PROTO_GetShiftState [17:45:29]wFMCommunicate request_size=4 [17:45:29]MH_SAM_APDU [17:45:29]CAPDU: 80 13 01 00 [17:45:29]Write to MH i2c: E2 08 00 40 12 80 13 01 00 00 00 00 00 CF [17:45:29]Write i2c OK [17:45:29]MH_I2C_Read... [17:45:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:29]Read from MH i2c: E2 [17:45:29]MH_I2C_Read... [17:45:29]Read from MH i2c: E2 0E 00 [17:45:29]MH_I2C_Read... [17:45:29]Read from MH i2c: E2 0E 00 40 12 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 E9 [17:45:29]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:45:29]wFMCommunicate OK [17:45:29]SAM_PROTO_GetShiftState done [17:45:29]FM_GetShiftState done [17:45:29]opened in 1729383750 [17:45:29]opened+sec_in_day 1729470150 [17:45:29]quantity*price = 50010 [17:45:29]sum+1 = 50012 [17:45:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 406 20.10.2024 17:45 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227558 ФПД: 136313869695632 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T174531&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227558&fm=136313869695632&tin=02508201610067®Number=0000000000091685&sum=50000 [17:45:30]StoreToDocumentArchive [17:45:30]shift 533 fd 227558 [17:45:30]save to /storage/0533/doc_00227558 [17:45:30]save last doc name /storage/0533/doc_00227558 to /storage/kkm_last_doc_name [17:45:30]save OK [17:45:30]Clear old archive folders... [17:45:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:45:30]tlvbuf is 00DAF1D0 [17:45:30]SAM_PROTO_ClearQueue [17:45:30]wFMCommunicate request_size=4 [17:45:30]MH_SAM_APDU [17:45:30]CAPDU: 80 09 00 00 [17:45:30]Write to MH i2c: E2 08 00 4D 12 80 09 00 00 00 00 00 00 D1 [17:45:30]Write i2c OK [17:45:30]MH_I2C_Read... [17:45:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:45:30]Read from MH i2c: E2 [17:45:30]MH_I2C_Read... [17:45:30]Read from MH i2c: E2 03 00 [17:45:30]MH_I2C_Read... [17:45:30]Read from MH i2c: E2 03 00 4D 12 00 90 00 D3 [17:45:30]RAPDU: 90 00 [17:45:30]wFMCommunicate OK [17:45:30]SAM_PROTO_ClearQueue done [17:45:30]KKMCreateOFDPacket [17:45:30]OFDProtocolAddRootSTLVToBuf [17:45:30]FM_MakeSignedData [17:45:30]FM_MakeSignedData [17:45:30]SAM_PROTO_SignData [17:45:30]wFMCommunicate request_size=4 [17:45:30]MH_SAM_APDU [17:45:30]CAPDU: 80 0D 01 02 [17:45:30]Write to MH i2c: E2 08 00 4E 12 80 0D 01 02 00 00 00 00 D9 [17:45:30]Write i2c OK [17:45:30]MH_I2C_Read... [17:45:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:45:30]Read from MH i2c: E2 [17:45:30]MH_I2C_Read... [17:45:30]Read from MH i2c: E2 03 00 [17:45:30]MH_I2C_Read... [17:45:30]Read from MH i2c: E2 03 00 4E 12 00 90 00 D4 [17:45:30]RAPDU: 90 00 [17:45:30]wFMCommunicate OK [17:45:30]wFMCommunicate request_size=255 [17:45:30]MH_SAM_APDU [17:45: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 01 00 00 F4 03 04 00 BB 41 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E6 78 03 00 35 04 06 00 7B [17:45:30]Write to MH i2c: E2 02 01 4F 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 01 00 00 F4 03 04 00 BB 41 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E6 78 03 00 35 04 06 00 7B 00 00 4A [17:45:30]Write i2c OK [17:45:30]MH_I2C_Read... [17:45:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:31]Read from MH i2c: E2 [17:45:31]MH_I2C_Read... [17:45:31]Read from MH i2c: E2 03 00 [17:45:31]MH_I2C_Read... [17:45:31]Read from MH i2c: E2 03 00 4F 12 00 90 00 D5 [17:45:31]RAPDU: 90 00 [17:45:31]wFMCommunicate OK [17:45:31]wFMCommunicate request_size=10 [17:45:31]MH_SAM_APDU [17:45:31]CAPDU: 80 0D 02 02 05 FA 0B C7 FA 90 [17:45:31]Write to MH i2c: E2 0D 00 50 12 80 0D 02 02 05 00 FA 0B C7 FA 90 00 00 3C [17:45:31]Write i2c OK [17:45:31]MH_I2C_Read... [17:45:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:31]Read from MH i2c: E2 [17:45:31]MH_I2C_Read... [17:45:31]Read from MH i2c: E2 03 00 [17:45:31]MH_I2C_Read... [17:45:31]Read from MH i2c: E2 03 00 50 12 00 90 00 D6 [17:45:31]RAPDU: 90 00 [17:45:31]wFMCommunicate OK [17:45:31]wFMCommunicate request_size=4 [17:45:31]MH_SAM_APDU [17:45:31]CAPDU: 80 0D 03 02 [17:45:31]Write to MH i2c: E2 08 00 51 12 80 0D 03 02 00 00 00 00 DE [17:45:31]Write i2c OK [17:45:31]MH_I2C_Read... [17:45:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:45:31]Read from MH i2c: E2 [17:45:31]MH_I2C_Read... [17:45:31]Read from MH i2c: E2 0B 00 [17:45:31]MH_I2C_Read... [17:45:31]Read from MH i2c: E2 0B 00 51 12 00 D3 63 DB BB 14 52 A5 A2 90 00 58 [17:45:31]RAPDU: D3 63 DB BB 14 52 A5 A2 90 00 [17:45:31]wFMCommunicate OK [17:45:31]SAM_PROTO_SignData done [17:45:31]FM_MakeSignedData done [17:45:31]CreateOFDProtocolMessage [17:45:31]wFMCommunicate request_size=4 [17:45:31]MH_SAM_APDU [17:45:31]CAPDU: 80 11 00 00 [17:45:31]Write to MH i2c: E2 08 00 52 12 80 11 00 00 00 00 00 00 DE [17:45:31]Write i2c OK [17:45:31]MH_I2C_Read... [17:45:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:31]Read from MH i2c: E2 [17:45:31]MH_I2C_Read... [17:45:31]Read from MH i2c: E2 17 00 [17:45:31]MH_I2C_Read... [17:45:31]Read from MH i2c: E2 17 00 52 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 35 [17:45:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:45:31]wFMCommunicate OK [17:45:31]CreateOFDProtocolMessage done [17:45:31]OFDSenderStorePacket 227558 [17:45:31]StoreOFDPacket docnum=227558 [17:45:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 6D F4 07 01 3F E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 01 00 00 F4 03 04 00 BB 41 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E6 78 03 00 35 04 06 00 7B FA 0B C7 FA 90 D3 63 DB BB 14 52 A5 A2 [17:45:31]CheckFolder [17:45:31]dirname=/storage/ofd_packets [17:45:31]CheckFolder done [17:45:31]ProducePacketName [17:45:31]name=ofd_packets/00227558 [17:45:31]NVStorageSaveData ofd_packets/00227558 [17:45:31]File name is /storage/ofd_packets/00227558 [17:45:31]Write 301 bytes [17:45:31]NVStorageSaveData done [17:45:31]OFDSenderStorePacket done [17:45:31]KKMCreateOFDPacket done [17:45:31]NVStorageSaveData kkm_last_timestamp [17:45:31]File name is /storage/kkm_last_timestamp [17:45:31]Write 4 bytes [17:45:31]NVStorageSaveData done [17:45:31]ExternCall_PrintAddStr [17:45:31]wPrintStart [17:45:31]Write to MH i2c: 01 00 00 53 12 65 [17:45:31]Write i2c OK [17:45:31]MH_I2C_Read... [17:45:31]Read from MH i2c: 01 [17:45:31]MH_I2C_Read... [17:45:31]Read from MH i2c: 01 07 00 [17:45:31]MH_I2C_Read... [17:45:31]Read from MH i2c: 01 07 00 53 12 00 00 00 00 00 FF 0F 7A [17:45:31]RasterBufferAndPrint [17:45:31]line Счет N : (1)1963191 [17:45:31]line ИНН: 02508201610067 [17:45:31]line Контрольно-Кассовый Чек [17:45:31]line ПРОДАЖА [17:45:31]line ТРК (МРК, ГНК) : 44 [17:45:31]line Товар: 2710124500 [17:45:31]line Аи-95-К-5 [17:45:31]line 6.740 * 74.20 [17:45:31]line = 500.11 [17:45:31]line НДС 12% НСП 1% [17:45:31]line > о реализуемом товаре [17:45:31]line ОКРУГЛЕНИЕ: -0.11 [17:45:31]line ИТОГО: 500.00 [17:45:31]line Внесено: 500.00 [17:45:31]line СДАЧА: 0.00 [17:45:31]line НСП 1% : 4.43 [17:45:31]line НДС 12% : 53.11 [17:45:31]line Наличными: 500.00 [17:45:31]line Безнал.: 0.00 [17:45:31]line Место: АЗС № 133 "Партнер Нефть" [17:45:31]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:45:31]line СНО: Общий режим [17:45:31]line Чек 406 20.10.2024 17:45 [17:45:31]line Смена: 533 ФФД: 1.0 [17:45:31]line ЗНМ: 0300000091 [17:45:31]line РНМ: 0000000000091685 [17:45:31]line Версия ККМ: 001 [17:45:31]line ФМ: 0000000000871839 [17:45:31]line ФД: 227558 [17:45:31]line ФПД: 136313869695632 [17:45:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T174531&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227558&fm=136313869695632&tin=02508201610067®Number=0000000000091685&sum=50000 [17:45:31]OFD Sender: Processing packet 227558 [packets to send 38, broken 37] [17:45:31]ProducePacketName [17:45:31]name=ofd_packets/00227558 [17:45:31]OFD Sender: To server: pG, [17:45:31]CommunicateWithHost lk.salyk.kg:30040 [17:45:31]ConnectInit lk.salyk.kg [17:45:31]written 0, free lines is 4095 [17:45:31]Connected sock=10 [17:45: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 33 39 0F 01 00 00 6D F4 07 01 3F E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 01 00 00 F4 03 04 00 BB 41 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E6 78 03 00 35 04 06 00 7B FA 0B C7 FA 90 D3 63 DB BB 14 52 A5 A2 [17:45: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 33 39 4F 00 00 00 57 86 47 00 0B 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 33 39 10 04 04 00 E6 78 03 00 F4 03 04 00 B9 EC 14 67 B6 04 01 00 00 BD 82 F3 DC F6 61 B7 82 [17:45:31]CommunicateWithHost err = 0 [17:45:31]CheckOFDResponse [17:45:31]1017 (14) - 77093643461234 [17:45:31]1041 (16) - 0000000000871839 [17:45:31]1040 (4) - 227558 [17:45:31]1012 (4) - 20.10.2024 11:42 [17:45:31]1206 (1) - 0 [17:45:31]OFD Sender: Remove packet 227558 [17:45:31]ProducePacketName [17:45:31]name=ofd_packets/00227558 [17:45:31]NVStorageDeleteData [17:45:31]Write to MH i2c: 01 00 00 7D 12 8F [17:45:31]Write i2c OK [17:45:31]MH_I2C_Read... [17:45:31]Read from MH i2c: 01 [17:45:31]MH_I2C_Read... [17:45:31]Read from MH i2c: 01 07 00 [17:45:31]MH_I2C_Read... [17:45:31]Read from MH i2c: 01 07 00 7D 12 00 00 00 00 00 FB 0C 9D [17:45:31]RasterBufferAndPrint [17:45:31]line [17:45:31]line [17:45:31]line [17:45:31]line [17:45:31]line [17:45:31]written 0, free lines is 3329 [17:45:31]process_action close_receipt done [17:45:31]requested_data is exist [17:45:31]produce_requested_data [17:45:31]requested_item fm.sn is exist - process it [17:45:31]wFMCommunicate request_size=4 [17:45:31]MH_SAM_APDU [17:45:31]CAPDU: 80 11 00 00 [17:45:31]Write to MH i2c: E2 08 00 84 12 80 11 00 00 00 00 00 00 10 [17:45:31]Write i2c OK [17:45:31]MH_I2C_Read... [17:45:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:32]Read from MH i2c: E2 [17:45:32]MH_I2C_Read... [17:45:32]Read from MH i2c: E2 17 00 [17:45:32]MH_I2C_Read... [17:45:32]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 33 39 90 00 67 [17:45:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:45:32]wFMCommunicate OK [17:45:32]requested_item fd.num is exist - process it [17:45:32]SAM_PROTO_GetFieldsCounters [17:45:32]wFMCommunicate request_size=4 [17:45:32]MH_SAM_APDU [17:45:32]CAPDU: 80 13 00 00 [17:45:32]Write to MH i2c: E2 08 00 85 12 80 13 00 00 00 00 00 00 13 [17:45:32]Write i2c OK [17:45:32]MH_I2C_Read... [17:45:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:45:32]Read from MH i2c: E2 [17:45:32]MH_I2C_Read... [17:45:32]Read from MH i2c: E2 62 00 [17:45:32]MH_I2C_Read... [17:45:32]Read from MH i2c: E2 62 00 85 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 E6 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 96 01 00 00 5E 04 04 00 96 01 00 00 57 04 04 00 97 01 00 00 19 04 04 00 00 00 00 00 90 00 79 [17:45: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 E6 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 96 01 00 00 5E 04 04 00 96 01 00 00 57 04 04 00 97 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:45:32]wFMCommunicate OK [17:45:32]SAM_PROTO_GetFieldsCounters done [17:45:32]requested_item shift.num is exist - process it [17:45:32]requested_item shift.opened is exist - process it [17:45:32]req_shift_opened [17:45:32]FM_GetShiftState [17:45:32]SAM_PROTO_GetShiftState [17:45:32]wFMCommunicate request_size=4 [17:45:32]MH_SAM_APDU [17:45:32]CAPDU: 80 13 01 00 [17:45:32]Write to MH i2c: E2 08 00 86 12 80 13 01 00 00 00 00 00 15 [17:45:32]Write i2c OK [17:45:32]MH_I2C_Read... [17:45:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:32]Read from MH i2c: E2 [17:45:32]MH_I2C_Read... [17:45:32]Read from MH i2c: E2 0E 00 [17:45:32]MH_I2C_Read... [17:45:32]Read from MH i2c: E2 0E 00 86 12 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 2F [17:45:32]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:45:32]wFMCommunicate OK [17:45:32]SAM_PROTO_GetShiftState done [17:45:32]FM_GetShiftState done [17:45:32]req_shift_opened done [17:45:32]requested_item shift.open_date is exist - process it [17:45:32]req_shift_open_date [17:45:32]req_shift_open_date done [17:45:32]produce_requested_data done [17:45:32]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227558,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [17:45:32]process_action_free close_receipt [17:45:32]json_value_free [17:45:32]json_value_free done [17:45:32]process_json_proto returns [17:45:32]Send response to host [17:45:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227558,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [17:45:32]free response buf [17:45:32]execute_script done [17:45:32]execute_script returns [17:45:32]free content buf [17:45:32]Sock 9.Close socket [17:45:32]Sock 9.Thread stoped [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:56]accept exits with 7 [17:45:56]New connection [17:45:56]New thread 3067362660 created [17:45:56]Thread 3067219300 joined [17:45:56]Waiting for new connection... [17:45:56] Sock 7.Parse request [17:45:56]Sock 7.Check first char [17:45:56]Sock 7.First char is OK [17:45:56]request: POST /json_proto HTTP/1.0 [17:45:56]Method: POST [17:45:56]URL: /json_proto [17:45:56]Method is POST - this is cgi request [17:45:56]url: /json_proto [17:45:56]query_string will be loaded in cgi processing [17:45:56]execute_cgi json_proto POST (null) [17:45:56]execute_cgi path=json_proto method=POST [17:45:56]POST find Content-Length [17:45:56]Host: 172.17.44.195:8080 [17:45:56]Content-Length: 678 [17:45:56]Content-Type: application/json [17:45:56] [17:45:56]POST finish read [17:45:56]Found Content-Length = 678 [17:45:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963192", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:45:56]execute_script... [17:45:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963192", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:45:56]POST & json_proto [17:45:56]process_json_proto [17:45:56]json parsed OK: [17:45:56]protocol is kg_v1.0 [17:45:56]action value=close_receipt [17:45:56]process_action close_receipt [17:45:56]cmd_close_receipt [17:45:56]MH_GetDate [17:45:56]Write to MH i2c: F0 00 00 87 12 88 [17:45:56]Write i2c OK [17:45:56]MH_I2C_Read... [17:45:56]Read from MH i2c: F0 [17:45:56]MH_I2C_Read... [17:45:56]Read from MH i2c: F0 09 00 [17:45:56]MH_I2C_Read... [17:45:56]Read from MH i2c: F0 09 00 87 12 00 D6 41 15 67 82 C9 CF 66 A4 [17:45:56]GetLastDocTimeStamp 1729446331 [17:45:56]current date 1729446358 [17:45:56]FM_GetShiftState [17:45:56]SAM_PROTO_GetShiftState [17:45:56]wFMCommunicate request_size=4 [17:45:56]MH_SAM_APDU [17:45:56]CAPDU: 80 13 01 00 [17:45:56]Write to MH i2c: E2 08 00 88 12 80 13 01 00 00 00 00 00 17 [17:45:56]Write i2c OK [17:45:56]MH_I2C_Read... [17:45:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:56]Read from MH i2c: E2 [17:45:56]MH_I2C_Read... [17:45:56]Read from MH i2c: E2 0E 00 [17:45:56]MH_I2C_Read... [17:45:56]Read from MH i2c: E2 0E 00 88 12 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 31 [17:45:56]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:45:56]wFMCommunicate OK [17:45:56]SAM_PROTO_GetShiftState done [17:45:56]FM_GetShiftState done [17:45:56]opened in 1729383750 [17:45:56]opened+sec_in_day 1729470150 [17:45:56]quantity*price = 50041 [17:45:56]sum+1 = 50042 [17:45:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 407 20.10.2024 17:45 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227559 ФПД: 98726109323452 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T174558&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227559&fm=98726109323452&tin=02508201610067®Number=0000000000091685&sum=50000 [17:45:57]StoreToDocumentArchive [17:45:57]shift 533 fd 227559 [17:45:57]save to /storage/0533/doc_00227559 [17:45:57]save last doc name /storage/0533/doc_00227559 to /storage/kkm_last_doc_name [17:45:57]save OK [17:45:57]Clear old archive folders... [17:45:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:45:57]tlvbuf is 00D89A70 [17:45:57]SAM_PROTO_ClearQueue [17:45:57]wFMCommunicate request_size=4 [17:45:57]MH_SAM_APDU [17:45:57]CAPDU: 80 09 00 00 [17:45:57]Write to MH i2c: E2 08 00 95 12 80 09 00 00 00 00 00 00 19 [17:45:57]Write i2c OK [17:45:57]MH_I2C_Read... [17:45:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:45:58]Read from MH i2c: E2 [17:45:58]MH_I2C_Read... [17:45:58]Read from MH i2c: E2 03 00 [17:45:58]MH_I2C_Read... [17:45:58]Read from MH i2c: E2 03 00 95 12 00 90 00 1B [17:45:58]RAPDU: 90 00 [17:45:58]wFMCommunicate OK [17:45:58]SAM_PROTO_ClearQueue done [17:45:58]KKMCreateOFDPacket [17:45:58]OFDProtocolAddRootSTLVToBuf [17:45:58]FM_MakeSignedData [17:45:58]FM_MakeSignedData [17:45:58]SAM_PROTO_SignData [17:45:58]wFMCommunicate request_size=4 [17:45:58]MH_SAM_APDU [17:45:58]CAPDU: 80 0D 01 02 [17:45:58]Write to MH i2c: E2 08 00 96 12 80 0D 01 02 00 00 00 00 21 [17:45:58]Write i2c OK [17:45:58]MH_I2C_Read... [17:45:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:45:58]Read from MH i2c: E2 [17:45:58]MH_I2C_Read... [17:45:58]Read from MH i2c: E2 03 00 [17:45:58]MH_I2C_Read... [17:45:58]Read from MH i2c: E2 03 00 96 12 00 90 00 1C [17:45:58]RAPDU: 90 00 [17:45:58]wFMCommunicate OK [17:45:58]wFMCommunicate request_size=255 [17:45:58]MH_SAM_APDU [17:45:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 01 00 00 F4 03 04 00 D6 41 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E7 78 03 00 35 04 06 00 59 [17:45:58]Write to MH i2c: E2 02 01 97 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 01 00 00 F4 03 04 00 D6 41 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E7 78 03 00 35 04 06 00 59 00 00 B5 [17:45:58]Write i2c OK [17:45:58]MH_I2C_Read... [17:45:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:58]Read from MH i2c: E2 [17:45:58]MH_I2C_Read... [17:45:58]Read from MH i2c: E2 03 00 [17:45:58]MH_I2C_Read... [17:45:58]Read from MH i2c: E2 03 00 97 12 00 90 00 1D [17:45:58]RAPDU: 90 00 [17:45:58]wFMCommunicate OK [17:45:58]wFMCommunicate request_size=10 [17:45:58]MH_SAM_APDU [17:45:58]CAPDU: 80 0D 02 02 05 CA 76 AD 20 BC [17:45:58]Write to MH i2c: E2 0D 00 98 12 80 0D 02 02 05 00 CA 76 AD 20 BC 00 00 F7 [17:45:58]Write i2c OK [17:45:58]MH_I2C_Read... [17:45:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:58]Read from MH i2c: E2 [17:45:58]MH_I2C_Read... [17:45:58]Read from MH i2c: E2 03 00 [17:45:58]MH_I2C_Read... [17:45:58]Read from MH i2c: E2 03 00 98 12 00 90 00 1E [17:45:58]RAPDU: 90 00 [17:45:58]wFMCommunicate OK [17:45:58]wFMCommunicate request_size=4 [17:45:58]MH_SAM_APDU [17:45:58]CAPDU: 80 0D 03 02 [17:45:58]Write to MH i2c: E2 08 00 99 12 80 0D 03 02 00 00 00 00 26 [17:45:58]Write i2c OK [17:45:58]MH_I2C_Read... [17:45:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:45:58]Read from MH i2c: E2 [17:45:58]MH_I2C_Read... [17:45:58]Read from MH i2c: E2 0B 00 [17:45:58]MH_I2C_Read... [17:45:58]Read from MH i2c: E2 0B 00 99 12 00 26 B0 42 25 C7 C6 45 0F 90 00 45 [17:45:58]RAPDU: 26 B0 42 25 C7 C6 45 0F 90 00 [17:45:58]wFMCommunicate OK [17:45:58]SAM_PROTO_SignData done [17:45:58]FM_MakeSignedData done [17:45:58]CreateOFDProtocolMessage [17:45:58]wFMCommunicate request_size=4 [17:45:58]MH_SAM_APDU [17:45:58]CAPDU: 80 11 00 00 [17:45:58]Write to MH i2c: E2 08 00 9A 12 80 11 00 00 00 00 00 00 26 [17:45:58]Write i2c OK [17:45:58]MH_I2C_Read... [17:45:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:58]Read from MH i2c: E2 [17:45:58]MH_I2C_Read... [17:45:58]Read from MH i2c: E2 17 00 [17:45:58]MH_I2C_Read... [17:45:58]Read from MH i2c: E2 17 00 9A 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 7D [17:45:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:45:58]wFMCommunicate OK [17:45:58]CreateOFDProtocolMessage done [17:45:58]OFDSenderStorePacket 227559 [17:45:58]StoreOFDPacket docnum=227559 [17:45:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 DE 09 07 01 1E 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 01 00 00 F4 03 04 00 D6 41 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E7 78 03 00 35 04 06 00 59 CA 76 AD 20 BC 26 B0 42 25 C7 C6 45 0F [17:45:58]CheckFolder [17:45:58]dirname=/storage/ofd_packets [17:45:58]CheckFolder done [17:45:58]ProducePacketName [17:45:58]name=ofd_packets/00227559 [17:45:58]NVStorageSaveData ofd_packets/00227559 [17:45:58]File name is /storage/ofd_packets/00227559 [17:45:58]Write 301 bytes [17:45:58]NVStorageSaveData done [17:45:58]OFDSenderStorePacket done [17:45:58]KKMCreateOFDPacket done [17:45:58]NVStorageSaveData kkm_last_timestamp [17:45:58]File name is /storage/kkm_last_timestamp [17:45:58]Write 4 bytes [17:45:58]NVStorageSaveData done [17:45:58]ExternCall_PrintAddStr [17:45:58]wPrintStart [17:45:58]Write to MH i2c: 01 00 00 9B 12 AD [17:45:58]Write i2c OK [17:45:58]MH_I2C_Read... [17:45:58]Read from MH i2c: 01 [17:45:58]MH_I2C_Read... [17:45:58]Read from MH i2c: 01 07 00 [17:45:58]MH_I2C_Read... [17:45:58]Read from MH i2c: 01 07 00 9B 12 00 00 00 00 00 FF 0F C2 [17:45:58]RasterBufferAndPrint [17:45:58]line Счет N : (1)1963192 [17:45:58]line ИНН: 02508201610067 [17:45:58]line Контрольно-Кассовый Чек [17:45:58]line ПРОДАЖА [17:45:58]line ТРК (МРК, ГНК) : 53 [17:45:58]line Товар: 2710124130 [17:45:58]line Аи-92-К-5 [17:45:58]line 7.480 * 66.90 [17:45:58]line = 500.41 [17:45:58]line НДС 12% НСП 1% [17:45:58]line > о реализуемом товаре [17:45:58]line ОКРУГЛЕНИЕ: -0.41 [17:45:58]line ИТОГО: 500.00 [17:45:58]line Внесено: 500.00 [17:45:58]line СДАЧА: 0.00 [17:45:58]line НСП 1% : 4.43 [17:45:58]line НДС 12% : 53.14 [17:45:58]line Наличными: 500.00 [17:45:58]line Безнал.: 0.00 [17:45:58]line Место: АЗС № 133 "Партнер Нефть" [17:45:58]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:45:58]line СНО: Общий режим [17:45:58]line Чек 407 20.10.2024 17:45 [17:45:58]line Смена: 533 ФФД: 1.0 [17:45:58]line ЗНМ: 0300000091 [17:45:58]line РНМ: 0000000000091685 [17:45:58]line Версия ККМ: 001 [17:45:58]line ФМ: 0000000000871839 [17:45:58]line ФД: 227559 [17:45:58]line ФПД: 98726109323452 [17:45:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T174558&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227559&fm=98726109323452&tin=02508201610067®Number=0000000000091685&sum=50000 [17:45:58]OFD Sender: Processing packet 227559 [packets to send 38, broken 37] [17:45:58]ProducePacketName [17:45:58]name=ofd_packets/00227559 [17:45:58]OFD Sender: To server: pG, [17:45:58]CommunicateWithHost lk.salyk.kg:30040 [17:45:58]ConnectInit lk.salyk.kg [17:45:58]written 0, free lines is 4095 [17:45:58]Connected sock=9 [17:45:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 DE 09 07 01 1E 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 01 00 00 F4 03 04 00 D6 41 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E7 78 03 00 35 04 06 00 59 CA 76 AD 20 BC 26 B0 42 25 C7 C6 45 0F [17:45: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 33 39 4F 00 00 00 79 23 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 33 39 10 04 04 00 E7 78 03 00 F4 03 04 00 D4 EC 14 67 B6 04 01 00 00 30 F3 33 53 33 2C 1B D3 [17:45:59]CommunicateWithHost err = 0 [17:45:59]CheckOFDResponse [17:45:59]1017 (14) - 77093643461234 [17:45:59]1041 (16) - 0000000000871839 [17:45:59]1040 (4) - 227559 [17:45:59]1012 (4) - 20.10.2024 11:43 [17:45:59]1206 (1) - 0 [17:45:59]OFD Sender: Remove packet 227559 [17:45:59]ProducePacketName [17:45:59]name=ofd_packets/00227559 [17:45:59]NVStorageDeleteData [17:45:59]Write to MH i2c: 01 00 00 C5 12 D7 [17:45:59]Write i2c OK [17:45:59]MH_I2C_Read... [17:45:59]Read from MH i2c: 01 [17:45:59]MH_I2C_Read... [17:45:59]Read from MH i2c: 01 07 00 [17:45:59]MH_I2C_Read... [17:45:59]Read from MH i2c: 01 07 00 C5 12 00 00 00 00 00 02 0D ED [17:45:59]RasterBufferAndPrint [17:45:59]line [17:45:59]line [17:45:59]line [17:45:59]line [17:45:59]line [17:45:59]written 0, free lines is 3336 [17:45:59]process_action close_receipt done [17:45:59]requested_data is exist [17:45:59]produce_requested_data [17:45:59]requested_item fm.sn is exist - process it [17:45:59]wFMCommunicate request_size=4 [17:45:59]MH_SAM_APDU [17:45:59]CAPDU: 80 11 00 00 [17:45:59]Write to MH i2c: E2 08 00 CC 12 80 11 00 00 00 00 00 00 58 [17:45:59]Write i2c OK [17:45:59]MH_I2C_Read... [17:45:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:59]Read from MH i2c: E2 [17:45:59]MH_I2C_Read... [17:45:59]Read from MH i2c: E2 17 00 [17:45:59]MH_I2C_Read... [17:45:59]Read from MH i2c: E2 17 00 CC 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 AF [17:45:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:45:59]wFMCommunicate OK [17:45:59]requested_item fd.num is exist - process it [17:45:59]SAM_PROTO_GetFieldsCounters [17:45:59]wFMCommunicate request_size=4 [17:45:59]MH_SAM_APDU [17:45:59]CAPDU: 80 13 00 00 [17:45:59]Write to MH i2c: E2 08 00 CD 12 80 13 00 00 00 00 00 00 5B [17:45:59]Write i2c OK [17:45:59]MH_I2C_Read... [17:45:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:45:59]Read from MH i2c: E2 [17:45:59]MH_I2C_Read... [17:45:59]Read from MH i2c: E2 62 00 [17:45:59]MH_I2C_Read... [17:45:59]Read from MH i2c: E2 62 00 CD 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 E7 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 97 01 00 00 5E 04 04 00 97 01 00 00 57 04 04 00 98 01 00 00 19 04 04 00 00 00 00 00 90 00 C5 [17:45:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 E7 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 97 01 00 00 5E 04 04 00 97 01 00 00 57 04 04 00 98 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:45:59]wFMCommunicate OK [17:45:59]SAM_PROTO_GetFieldsCounters done [17:45:59]requested_item shift.num is exist - process it [17:45:59]requested_item shift.opened is exist - process it [17:45:59]req_shift_opened [17:45:59]FM_GetShiftState [17:45:59]SAM_PROTO_GetShiftState [17:45:59]wFMCommunicate request_size=4 [17:45:59]MH_SAM_APDU [17:45:59]CAPDU: 80 13 01 00 [17:45:59]Write to MH i2c: E2 08 00 CE 12 80 13 01 00 00 00 00 00 5D [17:45:59]Write i2c OK [17:45:59]MH_I2C_Read... [17:45:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:59]Read from MH i2c: E2 [17:45:59]MH_I2C_Read... [17:45:59]Read from MH i2c: E2 0E 00 [17:45:59]MH_I2C_Read... [17:45:59]Read from MH i2c: E2 0E 00 CE 12 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 77 [17:45:59]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:45:59]wFMCommunicate OK [17:45:59]SAM_PROTO_GetShiftState done [17:45:59]FM_GetShiftState done [17:45:59]req_shift_opened done [17:45:59]requested_item shift.open_date is exist - process it [17:45:59]req_shift_open_date [17:45:59]req_shift_open_date done [17:45:59]produce_requested_data done [17:45:59]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227559,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [17:45:59]process_action_free close_receipt [17:45:59]json_value_free [17:45:59]json_value_free done [17:45:59]process_json_proto returns [17:45:59]Send response to host [17:45:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227559,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [17:45:59]free response buf [17:45:59]execute_script done [17:45:59]execute_script returns [17:45:59]free content buf [17:45:59]Sock 7.Close socket [17:45:59]Sock 7.Thread stoped [17:45:59]OFD Sender: No OFD packet to send [17:46:04]OFD Sender: No OFD packet to send [17:46:09]OFD Sender: No OFD packet to send [17:46:11]accept exits with 10 [17:46:11]New connection [17:46:11]New thread 3067219300 created [17:46:11]Thread 3067362660 joined [17:46:11]Waiting for new connection... [17:46:11] Sock 10.Parse request [17:46:11]Sock 10.Check first char [17:46:11]Sock 10.First char is OK [17:46:11]request: POST /json_proto HTTP/1.0 [17:46:11]Method: POST [17:46:11]URL: /json_proto [17:46:11]Method is POST - this is cgi request [17:46:11]url: /json_proto [17:46:11]query_string will be loaded in cgi processing [17:46:11]execute_cgi json_proto POST (null) [17:46:11]execute_cgi path=json_proto method=POST [17:46:11]POST find Content-Length [17:46:11]Host: 172.17.44.195:8080 [17:46:11]Content-Length: 678 [17:46:11]Content-Type: application/json [17:46:11] [17:46:11]POST finish read [17:46:11]Found Content-Length = 678 [17:46:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963193", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.040, "sum" : 270.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 270.00, "total" : 270.00, "payments": [ { "type": 0, "sum" : 270.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:46:11]execute_script... [17:46: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)1963193", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.040, "sum" : 270.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 270.00, "total" : 270.00, "payments": [ { "type": 0, "sum" : 270.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:46:11]POST & json_proto [17:46:11]process_json_proto [17:46:11]json parsed OK: [17:46:11]protocol is kg_v1.0 [17:46:11]action value=close_receipt [17:46:11]process_action close_receipt [17:46:11]cmd_close_receipt [17:46:11]MH_GetDate [17:46:11]Write to MH i2c: F0 00 00 CF 12 D0 [17:46:11]Write i2c OK [17:46:11]MH_I2C_Read... [17:46:11]Read from MH i2c: F0 [17:46:11]MH_I2C_Read... [17:46:11]Read from MH i2c: F0 09 00 [17:46:11]MH_I2C_Read... [17:46:11]Read from MH i2c: F0 09 00 CF 12 00 E4 41 15 67 82 C9 CF 66 FA [17:46:11]GetLastDocTimeStamp 1729446358 [17:46:11]current date 1729446372 [17:46:11]FM_GetShiftState [17:46:11]SAM_PROTO_GetShiftState [17:46:11]wFMCommunicate request_size=4 [17:46:11]MH_SAM_APDU [17:46:11]CAPDU: 80 13 01 00 [17:46:11]Write to MH i2c: E2 08 00 D0 12 80 13 01 00 00 00 00 00 5F [17:46:11]Write i2c OK [17:46:11]MH_I2C_Read... [17:46:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:11]Read from MH i2c: E2 [17:46:11]MH_I2C_Read... [17:46:11]Read from MH i2c: E2 0E 00 [17:46:11]MH_I2C_Read... [17:46:11]Read from MH i2c: E2 0E 00 D0 12 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 79 [17:46:11]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:46:11]wFMCommunicate OK [17:46:11]SAM_PROTO_GetShiftState done [17:46:11]FM_GetShiftState done [17:46:11]opened in 1729383750 [17:46:11]opened+sec_in_day 1729470150 [17:46:11]quantity*price = 27027 [17:46:11]sum+1 = 27029 [17:46:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 270.00 Внесено: 270.00 СДАЧА: 0.00 НСП 1% : 2.39 НДС 12% : 28.70 Наличными: 270.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 408 20.10.2024 17:46 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227560 ФПД: 116225690405252 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T174613&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227560&fm=116225690405252&tin=02508201610067®Number=0000000000091685&sum=27000 [17:46:12]StoreToDocumentArchive [17:46:12]shift 533 fd 227560 [17:46:12]save to /storage/0533/doc_00227560 [17:46:12]save last doc name /storage/0533/doc_00227560 to /storage/kkm_last_doc_name [17:46:12]save OK [17:46:12]Clear old archive folders... [17:46:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:46:12]tlvbuf is 00DEBF50 [17:46:12]SAM_PROTO_ClearQueue [17:46:12]wFMCommunicate request_size=4 [17:46:12]MH_SAM_APDU [17:46:12]CAPDU: 80 09 00 00 [17:46:12]Write to MH i2c: E2 08 00 DD 12 80 09 00 00 00 00 00 00 61 [17:46:12]Write i2c OK [17:46:12]MH_I2C_Read... [17:46:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:46:12]Read from MH i2c: E2 [17:46:12]MH_I2C_Read... [17:46:12]Read from MH i2c: E2 03 00 [17:46:12]MH_I2C_Read... [17:46:12]Read from MH i2c: E2 03 00 DD 12 00 90 00 63 [17:46:12]RAPDU: 90 00 [17:46:12]wFMCommunicate OK [17:46:12]SAM_PROTO_ClearQueue done [17:46:12]KKMCreateOFDPacket [17:46:12]OFDProtocolAddRootSTLVToBuf [17:46:12]FM_MakeSignedData [17:46:12]FM_MakeSignedData [17:46:12]SAM_PROTO_SignData [17:46:12]wFMCommunicate request_size=4 [17:46:12]MH_SAM_APDU [17:46:12]CAPDU: 80 0D 01 02 [17:46:12]Write to MH i2c: E2 08 00 DE 12 80 0D 01 02 00 00 00 00 69 [17:46:12]Write i2c OK [17:46:12]MH_I2C_Read... [17:46:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:46:12]Read from MH i2c: E2 [17:46:12]MH_I2C_Read... [17:46:12]Read from MH i2c: E2 03 00 [17:46:12]MH_I2C_Read... [17:46:12]Read from MH i2c: E2 03 00 DE 12 00 90 00 64 [17:46:12]RAPDU: 90 00 [17:46:12]wFMCommunicate OK [17:46:12]wFMCommunicate request_size=255 [17:46:12]MH_SAM_APDU [17:46:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 01 00 00 F4 03 04 00 E5 41 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E8 78 03 00 35 04 06 00 69 [17:46:12]Write to MH i2c: E2 02 01 DF 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 01 00 00 F4 03 04 00 E5 41 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E8 78 03 00 35 04 06 00 69 00 00 9B [17:46:12]Write i2c OK [17:46:12]MH_I2C_Read... [17:46:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:13]Read from MH i2c: E2 [17:46:13]MH_I2C_Read... [17:46:13]Read from MH i2c: E2 03 00 [17:46:13]MH_I2C_Read... [17:46:13]Read from MH i2c: E2 03 00 DF 12 00 90 00 65 [17:46:13]RAPDU: 90 00 [17:46:13]wFMCommunicate OK [17:46:13]wFMCommunicate request_size=10 [17:46:13]MH_SAM_APDU [17:46:13]CAPDU: 80 0D 02 02 05 B4 E6 FD 89 84 [17:46:13]Write to MH i2c: E2 0D 00 E0 12 80 0D 02 02 05 00 B4 E6 FD 89 84 00 00 1A [17:46:13]Write i2c OK [17:46:13]MH_I2C_Read... [17:46:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:13]Read from MH i2c: E2 [17:46:13]MH_I2C_Read... [17:46:13]Read from MH i2c: E2 03 00 [17:46:13]MH_I2C_Read... [17:46:13]Read from MH i2c: E2 03 00 E0 12 00 90 00 66 [17:46:13]RAPDU: 90 00 [17:46:13]wFMCommunicate OK [17:46:13]wFMCommunicate request_size=4 [17:46:13]MH_SAM_APDU [17:46:13]CAPDU: 80 0D 03 02 [17:46:13]Write to MH i2c: E2 08 00 E1 12 80 0D 03 02 00 00 00 00 6E [17:46:13]Write i2c OK [17:46:13]MH_I2C_Read... [17:46:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:46:13]Read from MH i2c: E2 [17:46:13]MH_I2C_Read... [17:46:13]Read from MH i2c: E2 0B 00 [17:46:13]MH_I2C_Read... [17:46:13]Read from MH i2c: E2 0B 00 E1 12 00 C8 9C D3 49 D6 01 B7 0E 90 00 8B [17:46:13]RAPDU: C8 9C D3 49 D6 01 B7 0E 90 00 [17:46:13]wFMCommunicate OK [17:46:13]SAM_PROTO_SignData done [17:46:13]FM_MakeSignedData done [17:46:13]CreateOFDProtocolMessage [17:46:13]wFMCommunicate request_size=4 [17:46:13]MH_SAM_APDU [17:46:13]CAPDU: 80 11 00 00 [17:46:13]Write to MH i2c: E2 08 00 E2 12 80 11 00 00 00 00 00 00 6E [17:46:13]Write i2c OK [17:46:13]MH_I2C_Read... [17:46:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:13]Read from MH i2c: E2 [17:46:13]MH_I2C_Read... [17:46:13]Read from MH i2c: E2 17 00 [17:46:13]MH_I2C_Read... [17:46:13]Read from MH i2c: E2 17 00 E2 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C5 [17:46:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:46:13]wFMCommunicate OK [17:46:13]CreateOFDProtocolMessage done [17:46:13]OFDSenderStorePacket 227560 [17:46:13]StoreOFDPacket docnum=227560 [17:46:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 D2 E2 07 01 11 C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 01 00 00 F4 03 04 00 E5 41 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E8 78 03 00 35 04 06 00 69 B4 E6 FD 89 84 C8 9C D3 49 D6 01 B7 0E [17:46:13]CheckFolder [17:46:13]dirname=/storage/ofd_packets [17:46:13]CheckFolder done [17:46:13]ProducePacketName [17:46:13]name=ofd_packets/00227560 [17:46:13]NVStorageSaveData ofd_packets/00227560 [17:46:13]File name is /storage/ofd_packets/00227560 [17:46:13]Write 301 bytes [17:46:13]NVStorageSaveData done [17:46:13]OFDSenderStorePacket done [17:46:13]KKMCreateOFDPacket done [17:46:13]NVStorageSaveData kkm_last_timestamp [17:46:13]File name is /storage/kkm_last_timestamp [17:46:13]Write 4 bytes [17:46:13]NVStorageSaveData done [17:46:13]ExternCall_PrintAddStr [17:46:13]wPrintStart [17:46:13]Write to MH i2c: 01 00 00 E3 12 F5 [17:46:13]Write i2c OK [17:46:13]MH_I2C_Read... [17:46:13]Read from MH i2c: 01 [17:46:13]MH_I2C_Read... [17:46:13]Read from MH i2c: 01 07 00 [17:46:13]MH_I2C_Read... [17:46:13]Read from MH i2c: 01 07 00 E3 12 00 00 00 00 00 FF 0F 0A [17:46:13]RasterBufferAndPrint [17:46:13]line Счет N : (1)1963193 [17:46:13]line ИНН: 02508201610067 [17:46:13]line Контрольно-Кассовый Чек [17:46:13]line ПРОДАЖА [17:46:13]line ТРК (МРК, ГНК) : 63 [17:46:13]line Товар: 2710124130 [17:46:13]line Аи-92-К-5 [17:46:13]line 4.040 * 66.90 [17:46:13]line = 270.28 [17:46:13]line НДС 12% НСП 1% [17:46:13]line > о реализуемом товаре [17:46:13]line ОКРУГЛЕНИЕ: -0.28 [17:46:13]line ИТОГО: 270.00 [17:46:13]line Внесено: 270.00 [17:46:13]line СДАЧА: 0.00 [17:46:13]line НСП 1% : 2.39 [17:46:13]line НДС 12% : 28.70 [17:46:13]line Наличными: 270.00 [17:46:13]line Безнал.: 0.00 [17:46:13]line Место: АЗС № 133 "Партнер Нефть" [17:46:13]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:46:13]line СНО: Общий режим [17:46:13]line Чек 408 20.10.2024 17:46 [17:46:13]line Смена: 533 ФФД: 1.0 [17:46:13]line ЗНМ: 0300000091 [17:46:13]line РНМ: 0000000000091685 [17:46:13]line Версия ККМ: 001 [17:46:13]line ФМ: 0000000000871839 [17:46:13]line ФД: 227560 [17:46:13]line ФПД: 116225690405252 [17:46:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T174613&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227560&fm=116225690405252&tin=02508201610067®Number=0000000000091685&sum=27000 [17:46:13]written 0, free lines is 4095 [17:46:13]OFD Sender: Processing packet 227560 [packets to send 38, broken 37] [17:46:13]ProducePacketName [17:46:13]name=ofd_packets/00227560 [17:46:13]OFD Sender: To server: pG, [17:46:13]CommunicateWithHost lk.salyk.kg:30040 [17:46:13]ConnectInit lk.salyk.kg [17:46:13]Connected sock=9 [17:46: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 33 39 0F 01 00 00 D2 E2 07 01 11 C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 01 00 00 F4 03 04 00 E5 41 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E8 78 03 00 35 04 06 00 69 B4 E6 FD 89 84 C8 9C D3 49 D6 01 B7 0E [17:46: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 33 39 4F 00 00 00 FE D0 47 00 AA A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E8 78 03 00 F4 03 04 00 E3 EC 14 67 B6 04 01 00 00 C7 5F 72 E5 75 D0 AB B9 [17:46:13]CommunicateWithHost err = 0 [17:46:13]CheckOFDResponse [17:46:13]1017 (14) - 77093643461234 [17:46:13]1041 (16) - 0000000000871839 [17:46:13]1040 (4) - 227560 [17:46:13]1012 (4) - 20.10.2024 11:43 [17:46:13]1206 (1) - 0 [17:46:13]OFD Sender: Remove packet 227560 [17:46:13]ProducePacketName [17:46:13]name=ofd_packets/00227560 [17:46:13]NVStorageDeleteData [17:46:13]Write to MH i2c: 01 00 00 0D 13 20 [17:46:13]Write i2c OK [17:46:13]MH_I2C_Read... [17:46:13]Read from MH i2c: 01 [17:46:13]MH_I2C_Read... [17:46:13]Read from MH i2c: 01 07 00 [17:46:13]MH_I2C_Read... [17:46:13]Read from MH i2c: 01 07 00 0D 13 00 00 00 00 00 FF 0C 32 [17:46:13]RasterBufferAndPrint [17:46:13]line [17:46:13]line [17:46:13]line [17:46:13]line [17:46:13]line [17:46:13]written 0, free lines is 3336 [17:46:14]process_action close_receipt done [17:46:14]requested_data is exist [17:46:14]produce_requested_data [17:46:14]requested_item fm.sn is exist - process it [17:46:14]wFMCommunicate request_size=4 [17:46:14]MH_SAM_APDU [17:46:14]CAPDU: 80 11 00 00 [17:46:14]Write to MH i2c: E2 08 00 14 13 80 11 00 00 00 00 00 00 A1 [17:46:14]Write i2c OK [17:46:14]MH_I2C_Read... [17:46:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:14]Read from MH i2c: E2 [17:46:14]MH_I2C_Read... [17:46:14]Read from MH i2c: E2 17 00 [17:46:14]MH_I2C_Read... [17:46:14]Read from MH i2c: E2 17 00 14 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F8 [17:46:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:46:14]wFMCommunicate OK [17:46:14]requested_item fd.num is exist - process it [17:46:14]SAM_PROTO_GetFieldsCounters [17:46:14]wFMCommunicate request_size=4 [17:46:14]MH_SAM_APDU [17:46:14]CAPDU: 80 13 00 00 [17:46:14]Write to MH i2c: E2 08 00 15 13 80 13 00 00 00 00 00 00 A4 [17:46:14]Write i2c OK [17:46:14]MH_I2C_Read... [17:46:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:46:14]Read from MH i2c: E2 [17:46:14]MH_I2C_Read... [17:46:14]Read from MH i2c: E2 62 00 [17:46:14]MH_I2C_Read... [17:46:14]Read from MH i2c: E2 62 00 15 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 E8 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 98 01 00 00 5E 04 04 00 98 01 00 00 57 04 04 00 99 01 00 00 19 04 04 00 00 00 00 00 90 00 12 [17:46: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 E8 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 98 01 00 00 5E 04 04 00 98 01 00 00 57 04 04 00 99 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:46:14]wFMCommunicate OK [17:46:14]SAM_PROTO_GetFieldsCounters done [17:46:14]requested_item shift.num is exist - process it [17:46:14]requested_item shift.opened is exist - process it [17:46:14]req_shift_opened [17:46:14]FM_GetShiftState [17:46:14]SAM_PROTO_GetShiftState [17:46:14]wFMCommunicate request_size=4 [17:46:14]MH_SAM_APDU [17:46:14]CAPDU: 80 13 01 00 [17:46:14]Write to MH i2c: E2 08 00 16 13 80 13 01 00 00 00 00 00 A6 [17:46:14]Write i2c OK [17:46:14]MH_I2C_Read... [17:46:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:14]Read from MH i2c: E2 [17:46:14]MH_I2C_Read... [17:46:14]Read from MH i2c: E2 0E 00 [17:46:14]MH_I2C_Read... [17:46:14]Read from MH i2c: E2 0E 00 16 13 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 C0 [17:46:14]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:46:14]wFMCommunicate OK [17:46:14]SAM_PROTO_GetShiftState done [17:46:14]FM_GetShiftState done [17:46:14]req_shift_opened done [17:46:14]requested_item shift.open_date is exist - process it [17:46:14]req_shift_open_date [17:46:14]req_shift_open_date done [17:46:14]produce_requested_data done [17:46:14]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227560,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [17:46:14]process_action_free close_receipt [17:46:14]json_value_free [17:46:14]json_value_free done [17:46:14]process_json_proto returns [17:46:14]Send response to host [17:46:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227560,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [17:46:14]free response buf [17:46:14]execute_script done [17:46:14]execute_script returns [17:46:14]free content buf [17:46:14]Sock 10.Close socket [17:46:14]Sock 10.Thread stoped [17:46:14]OFD Sender: No OFD packet to send [17:46:19]OFD Sender: No OFD packet to send [17:46:24]OFD Sender: No OFD packet to send [17:46:29]OFD Sender: No OFD packet to send [17:46:34]OFD Sender: No OFD packet to send [17:46:39]OFD Sender: No OFD packet to send [17:46:40]accept exits with 7 [17:46:40]New connection [17:46:40]New thread 3067362660 created [17:46:40]Thread 3067219300 joined [17:46:40]Waiting for new connection... [17:46:40] Sock 7.Parse request [17:46:40]Sock 7.Check first char [17:46:40]Sock 7.First char is OK [17:46:40]request: POST /json_proto HTTP/1.0 [17:46:40]Method: POST [17:46:40]URL: /json_proto [17:46:40]Method is POST - this is cgi request [17:46:40]url: /json_proto [17:46:40]query_string will be loaded in cgi processing [17:46:40]execute_cgi json_proto POST (null) [17:46:40]execute_cgi path=json_proto method=POST [17:46:40]POST find Content-Length [17:46:40]Host: 172.17.44.195:8080 [17:46:40]Content-Length: 683 [17:46:40]Content-Type: application/json [17:46:40] [17:46:40]POST finish read [17:46:40]Found Content-Length = 683 [17:46:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963194", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:46:40]execute_script... [17:46: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)1963194", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:46:40]POST & json_proto [17:46:40]process_json_proto [17:46:40]json parsed OK: [17:46:40]protocol is kg_v1.0 [17:46:40]action value=close_receipt [17:46:40]process_action close_receipt [17:46:40]cmd_close_receipt [17:46:40]MH_GetDate [17:46:40]Write to MH i2c: F0 00 00 17 13 19 [17:46:40]Write i2c OK [17:46:40]MH_I2C_Read... [17:46:40]Read from MH i2c: F0 [17:46:40]MH_I2C_Read... [17:46:40]Read from MH i2c: F0 09 00 [17:46:40]MH_I2C_Read... [17:46:40]Read from MH i2c: F0 09 00 17 13 00 01 42 15 67 82 C9 CF 66 61 [17:46:40]GetLastDocTimeStamp 1729446373 [17:46:40]current date 1729446401 [17:46:40]FM_GetShiftState [17:46:40]SAM_PROTO_GetShiftState [17:46:40]wFMCommunicate request_size=4 [17:46:40]MH_SAM_APDU [17:46:40]CAPDU: 80 13 01 00 [17:46:40]Write to MH i2c: E2 08 00 18 13 80 13 01 00 00 00 00 00 A8 [17:46:40]Write i2c OK [17:46:40]MH_I2C_Read... [17:46:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:40]Read from MH i2c: E2 [17:46:40]MH_I2C_Read... [17:46:40]Read from MH i2c: E2 0E 00 [17:46:40]MH_I2C_Read... [17:46:40]Read from MH i2c: E2 0E 00 18 13 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 C2 [17:46:40]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:46:40]wFMCommunicate OK [17:46:40]SAM_PROTO_GetShiftState done [17:46:40]FM_GetShiftState done [17:46:40]opened in 1729383750 [17:46:40]opened+sec_in_day 1729470150 [17:46:40]quantity*price = 100021 [17:46:40]sum+1 = 100023 [17:46:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 409 20.10.2024 17:46 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227561 ФПД: 237518031043300 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T174641&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227561&fm=237518031043300&tin=02508201610067®Number=0000000000091685&sum=100000 [17:46:41]StoreToDocumentArchive [17:46:41]shift 533 fd 227561 [17:46:41]save to /storage/0533/doc_00227561 [17:46:41]save last doc name /storage/0533/doc_00227561 to /storage/kkm_last_doc_name [17:46:41]save OK [17:46:41]Clear old archive folders... [17:46:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:46:41]tlvbuf is 00DFE540 [17:46:41]SAM_PROTO_ClearQueue [17:46:41]wFMCommunicate request_size=4 [17:46:41]MH_SAM_APDU [17:46:41]CAPDU: 80 09 00 00 [17:46:41]Write to MH i2c: E2 08 00 25 13 80 09 00 00 00 00 00 00 AA [17:46:41]Write i2c OK [17:46:41]MH_I2C_Read... [17:46:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:46:41]Read from MH i2c: E2 [17:46:41]MH_I2C_Read... [17:46:41]Read from MH i2c: E2 03 00 [17:46:41]MH_I2C_Read... [17:46:41]Read from MH i2c: E2 03 00 25 13 00 90 00 AC [17:46:41]RAPDU: 90 00 [17:46:41]wFMCommunicate OK [17:46:41]SAM_PROTO_ClearQueue done [17:46:41]KKMCreateOFDPacket [17:46:41]OFDProtocolAddRootSTLVToBuf [17:46:41]FM_MakeSignedData [17:46:41]FM_MakeSignedData [17:46:41]SAM_PROTO_SignData [17:46:41]wFMCommunicate request_size=4 [17:46:41]MH_SAM_APDU [17:46:41]CAPDU: 80 0D 01 02 [17:46:41]Write to MH i2c: E2 08 00 26 13 80 0D 01 02 00 00 00 00 B2 [17:46:41]Write i2c OK [17:46:41]MH_I2C_Read... [17:46:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:46:41]Read from MH i2c: E2 [17:46:41]MH_I2C_Read... [17:46:41]Read from MH i2c: E2 03 00 [17:46:41]MH_I2C_Read... [17:46:41]Read from MH i2c: E2 03 00 26 13 00 90 00 AD [17:46:41]RAPDU: 90 00 [17:46:41]wFMCommunicate OK [17:46:41]wFMCommunicate request_size=255 [17:46:41]MH_SAM_APDU [17:46:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 01 00 00 F4 03 04 00 01 42 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E9 78 03 00 35 04 06 00 D8 [17:46:41]Write to MH i2c: E2 02 01 27 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 01 00 00 F4 03 04 00 01 42 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E9 78 03 00 35 04 06 00 D8 00 00 12 [17:46:41]Write i2c OK [17:46:41]MH_I2C_Read... [17:46:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:41]Read from MH i2c: E2 [17:46:41]MH_I2C_Read... [17:46:41]Read from MH i2c: E2 03 00 [17:46:41]MH_I2C_Read... [17:46:41]Read from MH i2c: E2 03 00 27 13 00 90 00 AE [17:46:41]RAPDU: 90 00 [17:46:41]wFMCommunicate OK [17:46:41]wFMCommunicate request_size=10 [17:46:41]MH_SAM_APDU [17:46:41]CAPDU: 80 0D 02 02 05 05 79 DE 3A E4 [17:46:41]Write to MH i2c: E2 0D 00 28 13 80 0D 02 02 05 00 05 79 DE 3A E4 00 00 39 [17:46:41]Write i2c OK [17:46:41]MH_I2C_Read... [17:46:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:41]Read from MH i2c: E2 [17:46:41]MH_I2C_Read... [17:46:41]Read from MH i2c: E2 03 00 [17:46:41]MH_I2C_Read... [17:46:41]Read from MH i2c: E2 03 00 28 13 00 90 00 AF [17:46:41]RAPDU: 90 00 [17:46:41]wFMCommunicate OK [17:46:41]wFMCommunicate request_size=4 [17:46:41]MH_SAM_APDU [17:46:41]CAPDU: 80 0D 03 02 [17:46:41]Write to MH i2c: E2 08 00 29 13 80 0D 03 02 00 00 00 00 B7 [17:46:41]Write i2c OK [17:46:41]MH_I2C_Read... [17:46:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:46:41]Read from MH i2c: E2 [17:46:41]MH_I2C_Read... [17:46:41]Read from MH i2c: E2 0B 00 [17:46:41]MH_I2C_Read... [17:46:41]Read from MH i2c: E2 0B 00 29 13 00 62 AF 03 7B 2A 0A 99 7E 90 00 92 [17:46:41]RAPDU: 62 AF 03 7B 2A 0A 99 7E 90 00 [17:46:41]wFMCommunicate OK [17:46:41]SAM_PROTO_SignData done [17:46:41]FM_MakeSignedData done [17:46:41]CreateOFDProtocolMessage [17:46:41]wFMCommunicate request_size=4 [17:46:41]MH_SAM_APDU [17:46:41]CAPDU: 80 11 00 00 [17:46:41]Write to MH i2c: E2 08 00 2A 13 80 11 00 00 00 00 00 00 B7 [17:46:41]Write i2c OK [17:46:41]MH_I2C_Read... [17:46:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:41]Read from MH i2c: E2 [17:46:41]MH_I2C_Read... [17:46:41]Read from MH i2c: E2 17 00 [17:46:41]MH_I2C_Read... [17:46:41]Read from MH i2c: E2 17 00 2A 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 0E [17:46:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:46:41]wFMCommunicate OK [17:46:41]CreateOFDProtocolMessage done [17:46:41]OFDSenderStorePacket 227561 [17:46:41]StoreOFDPacket docnum=227561 [17:46:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 60 ED 07 01 53 B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 01 00 00 F4 03 04 00 01 42 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E9 78 03 00 35 04 06 00 D8 05 79 DE 3A E4 62 AF 03 7B 2A 0A 99 7E [17:46:41]CheckFolder [17:46:41]dirname=/storage/ofd_packets [17:46:41]CheckFolder done [17:46:41]ProducePacketName [17:46:41]name=ofd_packets/00227561 [17:46:41]NVStorageSaveData ofd_packets/00227561 [17:46:41]File name is /storage/ofd_packets/00227561 [17:46:41]Write 301 bytes [17:46:41]NVStorageSaveData done [17:46:41]OFDSenderStorePacket done [17:46:41]KKMCreateOFDPacket done [17:46:41]NVStorageSaveData kkm_last_timestamp [17:46:41]File name is /storage/kkm_last_timestamp [17:46:41]Write 4 bytes [17:46:41]NVStorageSaveData done [17:46:41]ExternCall_PrintAddStr [17:46:41]wPrintStart [17:46:41]Write to MH i2c: 01 00 00 2B 13 3E [17:46:41]Write i2c OK [17:46:41]MH_I2C_Read... [17:46:41]Read from MH i2c: 01 [17:46:41]MH_I2C_Read... [17:46:41]Read from MH i2c: 01 07 00 [17:46:41]MH_I2C_Read... [17:46:41]Read from MH i2c: 01 07 00 2B 13 00 00 00 00 00 FF 0F 53 [17:46:41]RasterBufferAndPrint [17:46:41]line Счет N : (1)1963194 [17:46:41]line ИНН: 02508201610067 [17:46:41]line Контрольно-Кассовый Чек [17:46:41]line ПРОДАЖА [17:46:41]line ТРК (МРК, ГНК) : 34 [17:46:41]line Товар: 2710124500 [17:46:41]line Аи-95-К-5 [17:46:41]line 13.480 * 74.20 [17:46:41]line = 1000.22 [17:46:41]line НДС 12% НСП 1% [17:46:41]line > о реализуемом товаре [17:46:41]line ОКРУГЛЕНИЕ: -0.22 [17:46:41]line ИТОГО: 1000.00 [17:46:41]line Внесено: 1000.00 [17:46:41]line СДАЧА: 0.00 [17:46:41]line НСП 1% : 8.85 [17:46:41]line НДС 12% : 106.22 [17:46:41]line Наличными: 1000.00 [17:46:41]line Безнал.: 0.00 [17:46:41]line Место: АЗС № 133 "Партнер Нефть" [17:46:41]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:46:41]line СНО: Общий режим [17:46:41]line Чек 409 20.10.2024 17:46 [17:46:41]line Смена: 533 ФФД: 1.0 [17:46:41]line ЗНМ: 0300000091 [17:46:41]line РНМ: 0000000000091685 [17:46:41]line Версия ККМ: 001 [17:46:41]line ФМ: 0000000000871839 [17:46:41]line ФД: 227561 [17:46:41]line ФПД: 237518031043300 [17:46:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T174641&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227561&fm=237518031043300&tin=02508201610067®Number=0000000000091685&sum=100000 [17:46:42]OFD Sender: Processing packet 227561 [packets to send 38, broken 37] [17:46:42]ProducePacketName [17:46:42]name=ofd_packets/00227561 [17:46:42]OFD Sender: To server: pG, [17:46:42]CommunicateWithHost lk.salyk.kg:30040 [17:46:42]ConnectInit lk.salyk.kg [17:46:42]written 0, free lines is 4095 [17:46:42]Connected sock=10 [17:46: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 33 39 0F 01 00 00 60 ED 07 01 53 B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 01 00 00 F4 03 04 00 01 42 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 E9 78 03 00 35 04 06 00 D8 05 79 DE 3A E4 62 AF 03 7B 2A 0A 99 7E [17:46: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 33 39 4F 00 00 00 5C B8 47 00 42 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 33 39 10 04 04 00 E9 78 03 00 F4 03 04 00 FF EC 14 67 B6 04 01 00 00 A7 EE 11 87 AF DB B5 19 [17:46:42]CommunicateWithHost err = 0 [17:46:42]CheckOFDResponse [17:46:42]1017 (14) - 77093643461234 [17:46:42]1041 (16) - 0000000000871839 [17:46:42]1040 (4) - 227561 [17:46:42]1012 (4) - 20.10.2024 11:43 [17:46:42]1206 (1) - 0 [17:46:42]OFD Sender: Remove packet 227561 [17:46:42]ProducePacketName [17:46:42]name=ofd_packets/00227561 [17:46:42]NVStorageDeleteData [17:46:42]Write to MH i2c: 01 00 00 55 13 68 [17:46:42]Write i2c OK [17:46:42]MH_I2C_Read... [17:46:42]Read from MH i2c: 01 [17:46:42]MH_I2C_Read... [17:46:42]Read from MH i2c: 01 07 00 [17:46:42]MH_I2C_Read... [17:46:42]Read from MH i2c: 01 07 00 55 13 00 00 00 00 00 05 0D 81 [17:46:42]RasterBufferAndPrint [17:46:42]line [17:46:42]line [17:46:42]line [17:46:42]line [17:46:42]line [17:46:42]written 0, free lines is 3340 [17:46:42]process_action close_receipt done [17:46:42]requested_data is exist [17:46:42]produce_requested_data [17:46:42]requested_item fm.sn is exist - process it [17:46:42]wFMCommunicate request_size=4 [17:46:42]MH_SAM_APDU [17:46:42]CAPDU: 80 11 00 00 [17:46:42]Write to MH i2c: E2 08 00 5C 13 80 11 00 00 00 00 00 00 E9 [17:46:42]Write i2c OK [17:46:42]MH_I2C_Read... [17:46:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:42]Read from MH i2c: E2 [17:46:42]MH_I2C_Read... [17:46:42]Read from MH i2c: E2 17 00 [17:46:42]MH_I2C_Read... [17:46:42]Read from MH i2c: E2 17 00 5C 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 40 [17:46:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:46:42]wFMCommunicate OK [17:46:42]requested_item fd.num is exist - process it [17:46:42]SAM_PROTO_GetFieldsCounters [17:46:42]wFMCommunicate request_size=4 [17:46:42]MH_SAM_APDU [17:46:42]CAPDU: 80 13 00 00 [17:46:42]Write to MH i2c: E2 08 00 5D 13 80 13 00 00 00 00 00 00 EC [17:46:42]Write i2c OK [17:46:42]MH_I2C_Read... [17:46:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:46:42]Read from MH i2c: E2 [17:46:42]MH_I2C_Read... [17:46:42]Read from MH i2c: E2 62 00 [17:46:42]MH_I2C_Read... [17:46:42]Read from MH i2c: E2 62 00 5D 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 E9 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 99 01 00 00 5E 04 04 00 99 01 00 00 57 04 04 00 9A 01 00 00 19 04 04 00 00 00 00 00 90 00 5E [17:46: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 E9 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 99 01 00 00 5E 04 04 00 99 01 00 00 57 04 04 00 9A 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:46:42]wFMCommunicate OK [17:46:42]SAM_PROTO_GetFieldsCounters done [17:46:42]requested_item shift.num is exist - process it [17:46:42]requested_item shift.opened is exist - process it [17:46:42]req_shift_opened [17:46:42]FM_GetShiftState [17:46:42]SAM_PROTO_GetShiftState [17:46:42]wFMCommunicate request_size=4 [17:46:42]MH_SAM_APDU [17:46:42]CAPDU: 80 13 01 00 [17:46:42]Write to MH i2c: E2 08 00 5E 13 80 13 01 00 00 00 00 00 EE [17:46:42]Write i2c OK [17:46:42]MH_I2C_Read... [17:46:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:42]Read from MH i2c: E2 [17:46:42]MH_I2C_Read... [17:46:42]Read from MH i2c: E2 0E 00 [17:46:42]MH_I2C_Read... [17:46:42]Read from MH i2c: E2 0E 00 5E 13 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 08 [17:46:42]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:46:42]wFMCommunicate OK [17:46:42]SAM_PROTO_GetShiftState done [17:46:42]FM_GetShiftState done [17:46:42]req_shift_opened done [17:46:42]requested_item shift.open_date is exist - process it [17:46:42]req_shift_open_date [17:46:42]req_shift_open_date done [17:46:42]produce_requested_data done [17:46:42]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227561,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [17:46:42]process_action_free close_receipt [17:46:42]json_value_free [17:46:42]json_value_free done [17:46:42]process_json_proto returns [17:46:42]Send response to host [17:46:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227561,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [17:46:42]free response buf [17:46:42]execute_script done [17:46:42]execute_script returns [17:46:42]free content buf [17:46:42]Sock 7.Close socket [17:46:42]Sock 7.Thread stoped [17:46:42]OFD Sender: No OFD packet to send [17:46:47]OFD Sender: No OFD packet to send [17:46:52]OFD Sender: No OFD packet to send [17:46:57]OFD Sender: No OFD packet to send [17:47:02]OFD Sender: No OFD packet to send [17:47:07]OFD Sender: No OFD packet to send [17:47:12]OFD Sender: No OFD packet to send [17:47:17]OFD Sender: No OFD packet to send [17:47:22]OFD Sender: No OFD packet to send [17:47:27]OFD Sender: No OFD packet to send [17:47:32]OFD Sender: No OFD packet to send [17:47:37]OFD Sender: No OFD packet to send [17:47:42]OFD Sender: No OFD packet to send [17:47:47]accept exits with 9 [17:47:47]New connection [17:47:47]New thread 3067219300 created [17:47:47]Thread 3067362660 joined [17:47:47]Waiting for new connection... [17:47:47] Sock 9.Parse request [17:47:47]Sock 9.Check first char [17:47:47]Sock 9.First char is OK [17:47:47]request: POST /json_proto HTTP/1.0 [17:47:47]Method: POST [17:47:47]URL: /json_proto [17:47:47]Method is POST - this is cgi request [17:47:47]url: /json_proto [17:47:47]query_string will be loaded in cgi processing [17:47:47]execute_cgi json_proto POST (null) [17:47:47]execute_cgi path=json_proto method=POST [17:47:47]POST find Content-Length [17:47:47]Host: 172.17.44.195:8080 [17:47:47]Content-Length: 678 [17:47:47]Content-Type: application/json [17:47:47] [17:47:47]POST finish read [17:47:47]Found Content-Length = 678 [17:47:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963195", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 4.050, "sum" : 300.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:47]execute_script... [17:47: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)1963195", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 4.050, "sum" : 300.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:47]POST & json_proto [17:47:47]process_json_proto [17:47:47]json parsed OK: [17:47:47]protocol is kg_v1.0 [17:47:47]action value=close_receipt [17:47:47]process_action close_receipt [17:47:47]cmd_close_receipt [17:47:47]MH_GetDate [17:47:47]Write to MH i2c: F0 00 00 5F 13 61 [17:47:47]Write i2c OK [17:47:47]MH_I2C_Read... [17:47:47]Read from MH i2c: F0 [17:47:47]MH_I2C_Read... [17:47:47]Read from MH i2c: F0 09 00 [17:47:47]MH_I2C_Read... [17:47:47]Read from MH i2c: F0 09 00 5F 13 00 45 42 15 67 82 C9 CF 66 ED [17:47:47]GetLastDocTimeStamp 1729446401 [17:47:47]current date 1729446469 [17:47:47]FM_GetShiftState [17:47:47]SAM_PROTO_GetShiftState [17:47:47]wFMCommunicate request_size=4 [17:47:47]MH_SAM_APDU [17:47:47]CAPDU: 80 13 01 00 [17:47:47]Write to MH i2c: E2 08 00 60 13 80 13 01 00 00 00 00 00 F0 [17:47:47]Write i2c OK [17:47:47]MH_I2C_Read... [17:47:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:47]Read from MH i2c: E2 [17:47:47]MH_I2C_Read... [17:47:47]Read from MH i2c: E2 0E 00 [17:47:47]MH_I2C_Read... [17:47:47]Read from MH i2c: E2 0E 00 60 13 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 0A [17:47:47]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:47:47]wFMCommunicate OK [17:47:47]SAM_PROTO_GetShiftState done [17:47:47]FM_GetShiftState done [17:47:47]opened in 1729383750 [17:47:47]opened+sec_in_day 1729470150 [17:47:47]quantity*price = 30051 [17:47:47]sum+1 = 30052 [17:47:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 410 20.10.2024 17:47 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227562 ФПД: 126487479354169 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T174749&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227562&fm=126487479354169&tin=02508201610067®Number=0000000000091685&sum=30000 [17:47:49]StoreToDocumentArchive [17:47:49]shift 533 fd 227562 [17:47:49]save to /storage/0533/doc_00227562 [17:47:49]save last doc name /storage/0533/doc_00227562 to /storage/kkm_last_doc_name [17:47:49]save OK [17:47:49]Clear old archive folders... [17:47:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:47:49]tlvbuf is 00D89460 [17:47:49]SAM_PROTO_ClearQueue [17:47:49]wFMCommunicate request_size=4 [17:47:49]MH_SAM_APDU [17:47:49]CAPDU: 80 09 00 00 [17:47:49]Write to MH i2c: E2 08 00 6D 13 80 09 00 00 00 00 00 00 F2 [17:47:49]Write i2c OK [17:47:49]MH_I2C_Read... [17:47:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:47:49]Read from MH i2c: E2 [17:47:49]MH_I2C_Read... [17:47:49]Read from MH i2c: E2 03 00 [17:47:49]MH_I2C_Read... [17:47:49]Read from MH i2c: E2 03 00 6D 13 00 90 00 F4 [17:47:49]RAPDU: 90 00 [17:47:49]wFMCommunicate OK [17:47:49]SAM_PROTO_ClearQueue done [17:47:49]KKMCreateOFDPacket [17:47:49]OFDProtocolAddRootSTLVToBuf [17:47:49]FM_MakeSignedData [17:47:49]FM_MakeSignedData [17:47:49]SAM_PROTO_SignData [17:47:49]wFMCommunicate request_size=4 [17:47:49]MH_SAM_APDU [17:47:49]CAPDU: 80 0D 01 02 [17:47:49]Write to MH i2c: E2 08 00 6E 13 80 0D 01 02 00 00 00 00 FA [17:47:49]Write i2c OK [17:47:49]MH_I2C_Read... [17:47:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:47:49]Read from MH i2c: E2 [17:47:49]MH_I2C_Read... [17:47:49]Read from MH i2c: E2 03 00 [17:47:49]MH_I2C_Read... [17:47:49]Read from MH i2c: E2 03 00 6E 13 00 90 00 F5 [17:47:49]RAPDU: 90 00 [17:47:49]wFMCommunicate OK [17:47:49]wFMCommunicate request_size=255 [17:47:49]MH_SAM_APDU [17: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 9A 01 00 00 F4 03 04 00 45 42 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EA 78 03 00 35 04 06 00 73 [17:47:49]Write to MH i2c: E2 02 01 6F 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 9A 01 00 00 F4 03 04 00 45 42 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EA 78 03 00 35 04 06 00 73 00 00 46 [17:47:49]Write i2c OK [17:47:49]MH_I2C_Read... [17:47:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:49]Read from MH i2c: E2 [17:47:49]MH_I2C_Read... [17:47:49]Read from MH i2c: E2 03 00 [17:47:49]MH_I2C_Read... [17:47:49]Read from MH i2c: E2 03 00 6F 13 00 90 00 F6 [17:47:49]RAPDU: 90 00 [17:47:49]wFMCommunicate OK [17:47:49]wFMCommunicate request_size=10 [17:47:49]MH_SAM_APDU [17:47:49]CAPDU: 80 0D 02 02 05 0A 29 46 83 39 [17:47:49]Write to MH i2c: E2 0D 00 70 13 80 0D 02 02 05 00 0A 29 46 83 39 00 00 3C [17:47:49]Write i2c OK [17:47:49]MH_I2C_Read... [17:47:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:49]Read from MH i2c: E2 [17:47:49]MH_I2C_Read... [17:47:49]Read from MH i2c: E2 03 00 [17:47:49]MH_I2C_Read... [17:47:49]Read from MH i2c: E2 03 00 70 13 00 90 00 F7 [17:47:49]RAPDU: 90 00 [17:47:49]wFMCommunicate OK [17:47:49]wFMCommunicate request_size=4 [17:47:49]MH_SAM_APDU [17:47:49]CAPDU: 80 0D 03 02 [17:47:49]Write to MH i2c: E2 08 00 71 13 80 0D 03 02 00 00 00 00 FF [17:47:49]Write i2c OK [17:47:49]MH_I2C_Read... [17:47:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:47:49]Read from MH i2c: E2 [17:47:49]MH_I2C_Read... [17:47:49]Read from MH i2c: E2 0B 00 [17:47:49]MH_I2C_Read... [17:47:49]Read from MH i2c: E2 0B 00 71 13 00 2C FB DC 91 58 1B 2C 91 90 00 C4 [17:47:49]RAPDU: 2C FB DC 91 58 1B 2C 91 90 00 [17:47:49]wFMCommunicate OK [17:47:49]SAM_PROTO_SignData done [17:47:49]FM_MakeSignedData done [17:47:49]CreateOFDProtocolMessage [17:47:49]wFMCommunicate request_size=4 [17:47:49]MH_SAM_APDU [17:47:49]CAPDU: 80 11 00 00 [17:47:49]Write to MH i2c: E2 08 00 72 13 80 11 00 00 00 00 00 00 FF [17:47:49]Write i2c OK [17:47:49]MH_I2C_Read... [17:47:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:49]Read from MH i2c: E2 [17:47:49]MH_I2C_Read... [17:47:49]Read from MH i2c: E2 17 00 [17:47:49]MH_I2C_Read... [17:47:49]Read from MH i2c: E2 17 00 72 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 56 [17:47:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:47:49]wFMCommunicate OK [17:47:49]CreateOFDProtocolMessage done [17:47:49]OFDSenderStorePacket 227562 [17:47:49]StoreOFDPacket docnum=227562 [17:47:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 91 D0 07 01 DB BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 9A 01 00 00 F4 03 04 00 45 42 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EA 78 03 00 35 04 06 00 73 0A 29 46 83 39 2C FB DC 91 58 1B 2C 91 [17:47:49]CheckFolder [17:47:49]dirname=/storage/ofd_packets [17:47:49]CheckFolder done [17:47:49]ProducePacketName [17:47:49]name=ofd_packets/00227562 [17:47:49]NVStorageSaveData ofd_packets/00227562 [17:47:49]File name is /storage/ofd_packets/00227562 [17:47:49]Write 301 bytes [17:47:49]NVStorageSaveData done [17:47:49]OFDSenderStorePacket done [17:47:49]KKMCreateOFDPacket done [17:47:49]NVStorageSaveData kkm_last_timestamp [17:47:49]File name is /storage/kkm_last_timestamp [17:47:49]Write 4 bytes [17:47:49]NVStorageSaveData done [17:47:49]ExternCall_PrintAddStr [17:47:49]wPrintStart [17:47:49]Write to MH i2c: 01 00 00 73 13 86 [17:47:49]Write i2c OK [17:47:49]MH_I2C_Read... [17:47:49]Read from MH i2c: 01 [17:47:49]MH_I2C_Read... [17:47:49]Read from MH i2c: 01 07 00 [17:47:49]MH_I2C_Read... [17:47:49]Read from MH i2c: 01 07 00 73 13 00 00 00 00 00 FF 0F 9B [17:47:49]RasterBufferAndPrint [17:47:49]line Счет N : (1)1963195 [17:47:49]line ИНН: 02508201610067 [17:47:49]line Контрольно-Кассовый Чек [17:47:49]line ПРОДАЖА [17:47:49]line ТРК (МРК, ГНК) : 44 [17:47:49]line Товар: 2710124500 [17:47:49]line Аи-95-К-5 [17:47:49]line 4.050 * 74.20 [17:47:49]line = 300.51 [17:47:49]line НДС 12% НСП 1% [17:47:49]line > о реализуемом товаре [17:47:49]line ОКРУГЛЕНИЕ: -0.51 [17:47:49]line ИТОГО: 300.00 [17:47:49]line Внесено: 300.00 [17:47:49]line СДАЧА: 0.00 [17:47:49]line НСП 1% : 2.66 [17:47:49]line НДС 12% : 31.91 [17:47:49]line Наличными: 300.00 [17:47:49]line Безнал.: 0.00 [17:47:49]line Место: АЗС № 133 "Партнер Нефть" [17:47:49]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:47:49]line СНО: Общий режим [17:47:49]line Чек 410 20.10.2024 17:47 [17:47:49]line Смена: 533 ФФД: 1.0 [17:47:49]line ЗНМ: 0300000091 [17:47:49]line РНМ: 0000000000091685 [17:47:49]line Версия ККМ: 001 [17:47:49]line ФМ: 0000000000871839 [17:47:49]line ФД: 227562 [17:47:49]line ФПД: 126487479354169 [17:47:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T174749&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227562&fm=126487479354169&tin=02508201610067®Number=0000000000091685&sum=30000 [17:47:49]written 0, free lines is 4095 [17:47:49]OFD Sender: Processing packet 227562 [packets to send 38, broken 37] [17:47:49]ProducePacketName [17:47:49]name=ofd_packets/00227562 [17:47:49]OFD Sender: To server: pG, [17:47:49]CommunicateWithHost lk.salyk.kg:30040 [17:47:49]ConnectInit lk.salyk.kg [17:47:50]Connected sock=10 [17: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 33 39 0F 01 00 00 91 D0 07 01 DB BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 9A 01 00 00 F4 03 04 00 45 42 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EA 78 03 00 35 04 06 00 73 0A 29 46 83 39 2C FB DC 91 58 1B 2C 91 [17: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 33 39 4F 00 00 00 CB C8 47 00 68 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 33 39 10 04 04 00 EA 78 03 00 F4 03 04 00 43 ED 14 67 B6 04 01 00 00 CF CA 42 B3 8A 0E 6C AD [17:47:50]CommunicateWithHost err = 0 [17:47:50]CheckOFDResponse [17:47:50]1017 (14) - 77093643461234 [17:47:50]1041 (16) - 0000000000871839 [17:47:50]1040 (4) - 227562 [17:47:50]1012 (4) - 20.10.2024 11:45 [17:47:50]1206 (1) - 0 [17:47:50]OFD Sender: Remove packet 227562 [17:47:50]ProducePacketName [17:47:50]name=ofd_packets/00227562 [17:47:50]NVStorageDeleteData [17:47:50]Write to MH i2c: 01 00 00 9D 13 B0 [17:47:50]Write i2c OK [17:47:50]MH_I2C_Read... [17:47:50]Read from MH i2c: 01 [17:47:50]MH_I2C_Read... [17:47:50]Read from MH i2c: 01 07 00 [17:47:50]MH_I2C_Read... [17:47:50]Read from MH i2c: 01 07 00 9D 13 00 00 00 00 00 F6 0C B9 [17:47:50]RasterBufferAndPrint [17:47:50]line [17:47:50]line [17:47:50]line [17:47:50]line [17:47:50]line [17:47:50]written 0, free lines is 3325 [17:47:50]process_action close_receipt done [17:47:50]requested_data is exist [17:47:50]produce_requested_data [17:47:50]requested_item fm.sn is exist - process it [17:47:50]wFMCommunicate request_size=4 [17:47:50]MH_SAM_APDU [17:47:50]CAPDU: 80 11 00 00 [17:47:50]Write to MH i2c: E2 08 00 A4 13 80 11 00 00 00 00 00 00 31 [17:47:50]Write i2c OK [17:47:50]MH_I2C_Read... [17:47:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:50]Read from MH i2c: E2 [17:47:50]MH_I2C_Read... [17:47:50]Read from MH i2c: E2 17 00 [17:47:50]MH_I2C_Read... [17:47:50]Read from MH i2c: E2 17 00 A4 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 88 [17:47:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:47:50]wFMCommunicate OK [17:47:50]requested_item fd.num is exist - process it [17:47:50]SAM_PROTO_GetFieldsCounters [17:47:50]wFMCommunicate request_size=4 [17:47:50]MH_SAM_APDU [17:47:50]CAPDU: 80 13 00 00 [17:47:50]Write to MH i2c: E2 08 00 A5 13 80 13 00 00 00 00 00 00 34 [17:47:50]Write i2c OK [17:47:50]MH_I2C_Read... [17:47:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:47:50]Read from MH i2c: E2 [17:47:50]MH_I2C_Read... [17:47:50]Read from MH i2c: E2 62 00 [17:47:50]MH_I2C_Read... [17:47:50]Read from MH i2c: E2 62 00 A5 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 EA 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 9A 01 00 00 5E 04 04 00 9A 01 00 00 57 04 04 00 9B 01 00 00 19 04 04 00 00 00 00 00 90 00 AA [17:47: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 EA 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 9A 01 00 00 5E 04 04 00 9A 01 00 00 57 04 04 00 9B 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:47:50]wFMCommunicate OK [17:47:50]SAM_PROTO_GetFieldsCounters done [17:47:50]requested_item shift.num is exist - process it [17:47:50]requested_item shift.opened is exist - process it [17:47:50]req_shift_opened [17:47:50]FM_GetShiftState [17:47:50]SAM_PROTO_GetShiftState [17:47:50]wFMCommunicate request_size=4 [17:47:50]MH_SAM_APDU [17:47:50]CAPDU: 80 13 01 00 [17:47:50]Write to MH i2c: E2 08 00 A6 13 80 13 01 00 00 00 00 00 36 [17:47:50]Write i2c OK [17:47:50]MH_I2C_Read... [17:47:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:50]Read from MH i2c: E2 [17:47:50]MH_I2C_Read... [17:47:50]Read from MH i2c: E2 0E 00 [17:47:50]MH_I2C_Read... [17:47:50]Read from MH i2c: E2 0E 00 A6 13 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 50 [17:47:50]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:47:50]wFMCommunicate OK [17:47:50]SAM_PROTO_GetShiftState done [17:47:50]FM_GetShiftState done [17:47:50]req_shift_opened done [17:47:50]requested_item shift.open_date is exist - process it [17:47:50]req_shift_open_date [17:47:50]req_shift_open_date done [17:47:50]produce_requested_data done [17:47:50]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227562,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [17:47:50]process_action_free close_receipt [17:47:50]json_value_free [17:47:50]json_value_free done [17:47:50]process_json_proto returns [17:47:50]Send response to host [17:47:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227562,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [17:47:50]free response buf [17:47:50]execute_script done [17:47:50]execute_script returns [17:47:50]free content buf [17:47:50]Sock 9.Close socket [17:47:50]Sock 9.Thread stoped [17:47:50]OFD Sender: No OFD packet to send [17:47:55]OFD Sender: No OFD packet to send [17:48:00]OFD Sender: No OFD packet to send [17:48:05]OFD Sender: No OFD packet to send [17:48:10]OFD Sender: No OFD packet to send [17:48:12]accept exits with 7 [17:48:12]New connection [17:48:12]New thread 3067362660 created [17:48:12]Thread 3067219300 joined [17:48:12]Waiting for new connection... [17:48:12] Sock 7.Parse request [17:48:12]Sock 7.Check first char [17:48:12]Sock 7.First char is OK [17:48:12]request: POST /json_proto HTTP/1.0 [17:48:12]Method: POST [17:48:12]URL: /json_proto [17:48:12]Method is POST - this is cgi request [17:48:12]url: /json_proto [17:48:12]query_string will be loaded in cgi processing [17:48:12]execute_cgi json_proto POST (null) [17:48:12]execute_cgi path=json_proto method=POST [17:48:12]POST find Content-Length [17:48:12]Host: 172.17.44.195:8080 [17:48:12]Content-Length: 678 [17:48:12]Content-Type: application/json [17:48:12] [17:48:12]POST finish read [17:48:12]Found Content-Length = 678 [17:48:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963196", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:48:12]execute_script... [17:48: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)1963196", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:48:12]POST & json_proto [17:48:12]process_json_proto [17:48:12]json parsed OK: [17:48:12]protocol is kg_v1.0 [17:48:12]action value=close_receipt [17:48:12]process_action close_receipt [17:48:12]cmd_close_receipt [17:48:12]MH_GetDate [17:48:12]Write to MH i2c: F0 00 00 A7 13 A9 [17:48:12]Write i2c OK [17:48:12]MH_I2C_Read... [17:48:12]Read from MH i2c: F0 [17:48:12]MH_I2C_Read... [17:48:12]Read from MH i2c: F0 09 00 [17:48:12]MH_I2C_Read... [17:48:12]Read from MH i2c: F0 09 00 A7 13 00 5E 42 15 67 82 C9 CF 66 4E [17:48:12]GetLastDocTimeStamp 1729446469 [17:48:12]current date 1729446494 [17:48:12]FM_GetShiftState [17:48:12]SAM_PROTO_GetShiftState [17:48:12]wFMCommunicate request_size=4 [17:48:12]MH_SAM_APDU [17:48:12]CAPDU: 80 13 01 00 [17:48:12]Write to MH i2c: E2 08 00 A8 13 80 13 01 00 00 00 00 00 38 [17:48:12]Write i2c OK [17:48:12]MH_I2C_Read... [17:48:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:12]Read from MH i2c: E2 [17:48:12]MH_I2C_Read... [17:48:12]Read from MH i2c: E2 0E 00 [17:48:12]MH_I2C_Read... [17:48:12]Read from MH i2c: E2 0E 00 A8 13 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 52 [17:48:12]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:48:12]wFMCommunicate OK [17:48:12]SAM_PROTO_GetShiftState done [17:48:12]FM_GetShiftState done [17:48:12]opened in 1729383750 [17:48:12]opened+sec_in_day 1729470150 [17:48:12]quantity*price = 30038 [17:48:12]sum+1 = 30039 [17:48:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 411 20.10.2024 17:48 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227563 ФПД: 169297520211039 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T174814&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227563&fm=169297520211039&tin=02508201610067®Number=0000000000091685&sum=30000 [17:48:13]StoreToDocumentArchive [17:48:13]shift 533 fd 227563 [17:48:13]save to /storage/0533/doc_00227563 [17:48:13]save last doc name /storage/0533/doc_00227563 to /storage/kkm_last_doc_name [17:48:13]save OK [17:48:13]Clear old archive folders... [17:48:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:48:13]tlvbuf is 00DFDC70 [17:48:13]SAM_PROTO_ClearQueue [17:48:13]wFMCommunicate request_size=4 [17:48:13]MH_SAM_APDU [17:48:13]CAPDU: 80 09 00 00 [17:48:13]Write to MH i2c: E2 08 00 B5 13 80 09 00 00 00 00 00 00 3A [17:48:13]Write i2c OK [17:48:13]MH_I2C_Read... [17:48:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:48:13]Read from MH i2c: E2 [17:48:13]MH_I2C_Read... [17:48:13]Read from MH i2c: E2 03 00 [17:48:13]MH_I2C_Read... [17:48:13]Read from MH i2c: E2 03 00 B5 13 00 90 00 3C [17:48:13]RAPDU: 90 00 [17:48:13]wFMCommunicate OK [17:48:13]SAM_PROTO_ClearQueue done [17:48:13]KKMCreateOFDPacket [17:48:13]OFDProtocolAddRootSTLVToBuf [17:48:13]FM_MakeSignedData [17:48:13]FM_MakeSignedData [17:48:13]SAM_PROTO_SignData [17:48:13]wFMCommunicate request_size=4 [17:48:13]MH_SAM_APDU [17:48:13]CAPDU: 80 0D 01 02 [17:48:13]Write to MH i2c: E2 08 00 B6 13 80 0D 01 02 00 00 00 00 42 [17:48:13]Write i2c OK [17:48:13]MH_I2C_Read... [17:48:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:48:13]Read from MH i2c: E2 [17:48:13]MH_I2C_Read... [17:48:13]Read from MH i2c: E2 03 00 [17:48:13]MH_I2C_Read... [17:48:13]Read from MH i2c: E2 03 00 B6 13 00 90 00 3D [17:48:13]RAPDU: 90 00 [17:48:13]wFMCommunicate OK [17:48:13]wFMCommunicate request_size=255 [17:48:13]MH_SAM_APDU [17:48:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 01 00 00 F4 03 04 00 5E 42 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EB 78 03 00 35 04 06 00 99 [17:48:13]Write to MH i2c: E2 02 01 B7 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 01 00 00 F4 03 04 00 5E 42 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EB 78 03 00 35 04 06 00 99 00 00 9B [17:48:13]Write i2c OK [17:48:13]MH_I2C_Read... [17:48:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:14]Read from MH i2c: E2 [17:48:14]MH_I2C_Read... [17:48:14]Read from MH i2c: E2 03 00 [17:48:14]MH_I2C_Read... [17:48:14]Read from MH i2c: E2 03 00 B7 13 00 90 00 3E [17:48:14]RAPDU: 90 00 [17:48:14]wFMCommunicate OK [17:48:14]wFMCommunicate request_size=10 [17:48:14]MH_SAM_APDU [17:48:14]CAPDU: 80 0D 02 02 05 F9 A6 8D B4 5F [17:48:14]Write to MH i2c: E2 0D 00 B8 13 80 0D 02 02 05 00 F9 A6 8D B4 5F 00 00 8E [17:48:14]Write i2c OK [17:48:14]MH_I2C_Read... [17:48:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:14]Read from MH i2c: E2 [17:48:14]MH_I2C_Read... [17:48:14]Read from MH i2c: E2 03 00 [17:48:14]MH_I2C_Read... [17:48:14]Read from MH i2c: E2 03 00 B8 13 00 90 00 3F [17:48:14]RAPDU: 90 00 [17:48:14]wFMCommunicate OK [17:48:14]wFMCommunicate request_size=4 [17:48:14]MH_SAM_APDU [17:48:14]CAPDU: 80 0D 03 02 [17:48:14]Write to MH i2c: E2 08 00 B9 13 80 0D 03 02 00 00 00 00 47 [17:48:14]Write i2c OK [17:48:14]MH_I2C_Read... [17:48:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:48:14]Read from MH i2c: E2 [17:48:14]MH_I2C_Read... [17:48:14]Read from MH i2c: E2 0B 00 [17:48:14]MH_I2C_Read... [17:48:14]Read from MH i2c: E2 0B 00 B9 13 00 D7 5A 3E 84 E5 7D AC EC 90 00 35 [17:48:14]RAPDU: D7 5A 3E 84 E5 7D AC EC 90 00 [17:48:14]wFMCommunicate OK [17:48:14]SAM_PROTO_SignData done [17:48:14]FM_MakeSignedData done [17:48:14]CreateOFDProtocolMessage [17:48:14]wFMCommunicate request_size=4 [17:48:14]MH_SAM_APDU [17:48:14]CAPDU: 80 11 00 00 [17:48:14]Write to MH i2c: E2 08 00 BA 13 80 11 00 00 00 00 00 00 47 [17:48:14]Write i2c OK [17:48:14]MH_I2C_Read... [17:48:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:14]Read from MH i2c: E2 [17:48:14]MH_I2C_Read... [17:48:14]Read from MH i2c: E2 17 00 [17:48:14]MH_I2C_Read... [17:48:14]Read from MH i2c: E2 17 00 BA 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 9E [17:48:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:48:14]wFMCommunicate OK [17:48:14]CreateOFDProtocolMessage done [17:48:14]OFDSenderStorePacket 227563 [17:48:14]StoreOFDPacket docnum=227563 [17:48:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 59 69 07 01 1B 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 01 00 00 F4 03 04 00 5E 42 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EB 78 03 00 35 04 06 00 99 F9 A6 8D B4 5F D7 5A 3E 84 E5 7D AC EC [17:48:14]CheckFolder [17:48:14]dirname=/storage/ofd_packets [17:48:14]CheckFolder done [17:48:14]ProducePacketName [17:48:14]name=ofd_packets/00227563 [17:48:14]NVStorageSaveData ofd_packets/00227563 [17:48:14]File name is /storage/ofd_packets/00227563 [17:48:14]Write 301 bytes [17:48:14]NVStorageSaveData done [17:48:14]OFDSenderStorePacket done [17:48:14]KKMCreateOFDPacket done [17:48:14]NVStorageSaveData kkm_last_timestamp [17:48:14]File name is /storage/kkm_last_timestamp [17:48:14]Write 4 bytes [17:48:14]NVStorageSaveData done [17:48:14]ExternCall_PrintAddStr [17:48:14]wPrintStart [17:48:14]Write to MH i2c: 01 00 00 BB 13 CE [17:48:14]Write i2c OK [17:48:14]MH_I2C_Read... [17:48:14]Read from MH i2c: 01 [17:48:14]MH_I2C_Read... [17:48:14]Read from MH i2c: 01 07 00 [17:48:14]MH_I2C_Read... [17:48:14]Read from MH i2c: 01 07 00 BB 13 00 00 00 00 00 FF 0F E3 [17:48:14]RasterBufferAndPrint [17:48:14]line Счет N : (1)1963196 [17:48:14]line ИНН: 02508201610067 [17:48:14]line Контрольно-Кассовый Чек [17:48:14]line ПРОДАЖА [17:48:14]line ТРК (МРК, ГНК) : 63 [17:48:14]line Товар: 2710124130 [17:48:14]line Аи-92-К-5 [17:48:14]line 4.490 * 66.90 [17:48:14]line = 300.38 [17:48:14]line НДС 12% НСП 1% [17:48:14]line > о реализуемом товаре [17:48:14]line ОКРУГЛЕНИЕ: -0.38 [17:48:14]line ИТОГО: 300.00 [17:48:14]line Внесено: 300.00 [17:48:14]line СДАЧА: 0.00 [17:48:14]line НСП 1% : 2.66 [17:48:14]line НДС 12% : 31.90 [17:48:14]line Наличными: 300.00 [17:48:14]line Безнал.: 0.00 [17:48:14]line Место: АЗС № 133 "Партнер Нефть" [17:48:14]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:48:14]line СНО: Общий режим [17:48:14]line Чек 411 20.10.2024 17:48 [17:48:14]line Смена: 533 ФФД: 1.0 [17:48:14]line ЗНМ: 0300000091 [17:48:14]line РНМ: 0000000000091685 [17:48:14]line Версия ККМ: 001 [17:48:14]line ФМ: 0000000000871839 [17:48:14]line ФД: 227563 [17:48:14]line ФПД: 169297520211039 [17:48:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T174814&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227563&fm=169297520211039&tin=02508201610067®Number=0000000000091685&sum=30000 [17:48:14]written 0, free lines is 4095 [17:48:14]OFD Sender: Processing packet 227563 [packets to send 38, broken 37] [17:48:14]ProducePacketName [17:48:14]name=ofd_packets/00227563 [17:48:14]OFD Sender: To server: pG, [17:48:14]CommunicateWithHost lk.salyk.kg:30040 [17:48:14]ConnectInit lk.salyk.kg [17:48:14]Connected sock=10 [17:48: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 33 39 0F 01 00 00 59 69 07 01 1B 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 01 00 00 F4 03 04 00 5E 42 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EB 78 03 00 35 04 06 00 99 F9 A6 8D B4 5F D7 5A 3E 84 E5 7D AC EC [17:48: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 33 39 4F 00 00 00 E2 12 47 00 DB 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 33 39 10 04 04 00 EB 78 03 00 F4 03 04 00 5C ED 14 67 B6 04 01 00 00 18 CE B1 9E 49 D3 74 10 [17:48:14]CommunicateWithHost err = 0 [17:48:14]CheckOFDResponse [17:48:14]1017 (14) - 77093643461234 [17:48:14]1041 (16) - 0000000000871839 [17:48:14]1040 (4) - 227563 [17:48:14]1012 (4) - 20.10.2024 11:45 [17:48:14]1206 (1) - 0 [17:48:14]OFD Sender: Remove packet 227563 [17:48:14]ProducePacketName [17:48:14]name=ofd_packets/00227563 [17:48:14]NVStorageDeleteData [17:48:14]Write to MH i2c: 01 00 00 E5 13 F8 [17:48:14]Write i2c OK [17:48:14]MH_I2C_Read... [17:48:14]Read from MH i2c: 01 [17:48:14]MH_I2C_Read... [17:48:14]Read from MH i2c: 01 07 00 [17:48:14]MH_I2C_Read... [17:48:14]Read from MH i2c: 01 07 00 E5 13 00 00 00 00 00 02 0D 0E [17:48:14]RasterBufferAndPrint [17:48:14]line [17:48:14]line [17:48:14]line [17:48:14]line [17:48:14]line [17:48:14]written 0, free lines is 3336 [17:48:14]process_action close_receipt done [17:48:14]requested_data is exist [17:48:14]produce_requested_data [17:48:14]requested_item fm.sn is exist - process it [17:48:14]wFMCommunicate request_size=4 [17:48:14]MH_SAM_APDU [17:48:14]CAPDU: 80 11 00 00 [17:48:14]Write to MH i2c: E2 08 00 EC 13 80 11 00 00 00 00 00 00 79 [17:48:14]Write i2c OK [17:48:14]MH_I2C_Read... [17:48:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:14]Read from MH i2c: E2 [17:48:14]MH_I2C_Read... [17:48:14]Read from MH i2c: E2 17 00 [17:48:14]MH_I2C_Read... [17:48:14]Read from MH i2c: E2 17 00 EC 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D0 [17:48:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:48:14]wFMCommunicate OK [17:48:14]requested_item fd.num is exist - process it [17:48:14]SAM_PROTO_GetFieldsCounters [17:48:14]wFMCommunicate request_size=4 [17:48:14]MH_SAM_APDU [17:48:14]CAPDU: 80 13 00 00 [17:48:14]Write to MH i2c: E2 08 00 ED 13 80 13 00 00 00 00 00 00 7C [17:48:14]Write i2c OK [17:48:14]MH_I2C_Read... [17:48:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:48:15]Read from MH i2c: E2 [17:48:15]MH_I2C_Read... [17:48:15]Read from MH i2c: E2 62 00 [17:48:15]MH_I2C_Read... [17:48:15]Read from MH i2c: E2 62 00 ED 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 EB 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 9B 01 00 00 5E 04 04 00 9B 01 00 00 57 04 04 00 9C 01 00 00 19 04 04 00 00 00 00 00 90 00 F6 [17: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 EB 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 9B 01 00 00 5E 04 04 00 9B 01 00 00 57 04 04 00 9C 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:48:15]wFMCommunicate OK [17:48:15]SAM_PROTO_GetFieldsCounters done [17:48:15]requested_item shift.num is exist - process it [17:48:15]requested_item shift.opened is exist - process it [17:48:15]req_shift_opened [17:48:15]FM_GetShiftState [17:48:15]SAM_PROTO_GetShiftState [17:48:15]wFMCommunicate request_size=4 [17:48:15]MH_SAM_APDU [17:48:15]CAPDU: 80 13 01 00 [17:48:15]Write to MH i2c: E2 08 00 EE 13 80 13 01 00 00 00 00 00 7E [17:48:15]Write i2c OK [17:48:15]MH_I2C_Read... [17:48:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:15]Read from MH i2c: E2 [17:48:15]MH_I2C_Read... [17:48:15]Read from MH i2c: E2 0E 00 [17:48:15]MH_I2C_Read... [17:48:15]Read from MH i2c: E2 0E 00 EE 13 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 98 [17:48:15]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:48:15]wFMCommunicate OK [17:48:15]SAM_PROTO_GetShiftState done [17:48:15]FM_GetShiftState done [17:48:15]req_shift_opened done [17:48:15]requested_item shift.open_date is exist - process it [17:48:15]req_shift_open_date [17:48:15]req_shift_open_date done [17:48:15]produce_requested_data done [17:48:15]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227563,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [17:48:15]process_action_free close_receipt [17:48:15]json_value_free [17:48:15]json_value_free done [17:48:15]process_json_proto returns [17:48:15]Send response to host [17:48:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227563,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [17:48:15]free response buf [17:48:15]execute_script done [17:48:15]execute_script returns [17:48:15]free content buf [17:48:15]Sock 7.Close socket [17:48:15]Sock 7.Thread stoped [17:48:15]OFD Sender: No OFD packet to send [17:48:20]OFD Sender: No OFD packet to send [17:48:25]OFD Sender: No OFD packet to send [17:48:30]OFD Sender: No OFD packet to send [17:48:35]OFD Sender: No OFD packet to send [17:48:40]OFD Sender: No OFD packet to send [17:48:45]OFD Sender: No OFD packet to send [17:48:50]OFD Sender: No OFD packet to send [17:48:55]OFD Sender: No OFD packet to send [17:49:00]OFD Sender: No OFD packet to send [17:49:05]OFD Sender: No OFD packet to send [17:49:10]OFD Sender: No OFD packet to send [17:49:15]OFD Sender: No OFD packet to send [17:49:20]OFD Sender: No OFD packet to send [17:49:25]OFD Sender: No OFD packet to send [17:49:30]OFD Sender: No OFD packet to send [17:49:35]OFD Sender: No OFD packet to send [17:49:40]OFD Sender: No OFD packet to send [17:49:45]OFD Sender: No OFD packet to send [17:49:50]OFD Sender: No OFD packet to send [17:49:55]OFD Sender: No OFD packet to send [17:49:59]accept exits with 9 [17:49:59]New connection [17:49:59]New thread 3067219300 created [17:49:59]Thread 3067362660 joined [17:49:59]Waiting for new connection... [17:49:59] Sock 9.Parse request [17:49:59]Sock 9.Check first char [17:49:59]Sock 9.First char is OK [17:49:59]request: POST /json_proto HTTP/1.0 [17:49:59]Method: POST [17:49:59]URL: /json_proto [17:49:59]Method is POST - this is cgi request [17:49:59]url: /json_proto [17:49:59]query_string will be loaded in cgi processing [17:49:59]execute_cgi json_proto POST (null) [17:49:59]execute_cgi path=json_proto method=POST [17:49:59]POST find Content-Length [17:49:59]Host: 172.17.44.195:8080 [17:49:59]Content-Length: 678 [17:49:59]Content-Type: application/json [17:49:59] [17:49:59]POST finish read [17:49:59]Found Content-Length = 678 [17:49:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963197", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:49:59]execute_script... [17:49: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)1963197", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:49:59]POST & json_proto [17:49:59]process_json_proto [17:49:59]json parsed OK: [17:49:59]protocol is kg_v1.0 [17:49:59]action value=close_receipt [17:49:59]process_action close_receipt [17:49:59]cmd_close_receipt [17:49:59]MH_GetDate [17:49:59]Write to MH i2c: F0 00 00 EF 13 F1 [17:49:59]Write i2c OK [17:49:59]MH_I2C_Read... [17:49:59]Read from MH i2c: F0 [17:49:59]MH_I2C_Read... [17:49:59]Read from MH i2c: F0 09 00 [17:49:59]MH_I2C_Read... [17:49:59]Read from MH i2c: F0 09 00 EF 13 00 C8 42 15 67 82 C9 CF 66 00 [17:49:59]GetLastDocTimeStamp 1729446494 [17:49:59]current date 1729446600 [17:49:59]FM_GetShiftState [17:49:59]SAM_PROTO_GetShiftState [17:49:59]wFMCommunicate request_size=4 [17:49:59]MH_SAM_APDU [17:49:59]CAPDU: 80 13 01 00 [17:49:59]Write to MH i2c: E2 08 00 F0 13 80 13 01 00 00 00 00 00 80 [17:49:59]Write i2c OK [17:49:59]MH_I2C_Read... [17:49:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:49:59]Read from MH i2c: E2 [17:49:59]MH_I2C_Read... [17:49:59]Read from MH i2c: E2 0E 00 [17:49:59]MH_I2C_Read... [17:49:59]Read from MH i2c: E2 0E 00 F0 13 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 9A [17:49:59]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:49:59]wFMCommunicate OK [17:49:59]SAM_PROTO_GetShiftState done [17:49:59]FM_GetShiftState done [17:49:59]opened in 1729383750 [17:49:59]opened+sec_in_day 1729470150 [17:49:59]quantity*price = 50041 [17:49:59]sum+1 = 50042 [17:49:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 412 20.10.2024 17:50 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227564 ФПД: 183662684151385 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T175000&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227564&fm=183662684151385&tin=02508201610067®Number=0000000000091685&sum=50000 [17:50:00]StoreToDocumentArchive [17:50:00]shift 533 fd 227564 [17:50:00]save to /storage/0533/doc_00227564 [17:50:00]save last doc name /storage/0533/doc_00227564 to /storage/kkm_last_doc_name [17:50:00]save OK [17:50:00]Clear old archive folders... [17:50:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:50:00]tlvbuf is 00D762B0 [17:50:00]SAM_PROTO_ClearQueue [17:50:00]wFMCommunicate request_size=4 [17:50:00]MH_SAM_APDU [17:50:00]CAPDU: 80 09 00 00 [17:50:00]Write to MH i2c: E2 08 00 FD 13 80 09 00 00 00 00 00 00 82 [17:50:00]Write i2c OK [17:50:00]MH_I2C_Read... [17:50:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:50:00]Read from MH i2c: E2 [17:50:00]MH_I2C_Read... [17:50:00]Read from MH i2c: E2 03 00 [17:50:00]MH_I2C_Read... [17:50:00]Read from MH i2c: E2 03 00 FD 13 00 90 00 84 [17:50:00]RAPDU: 90 00 [17:50:00]wFMCommunicate OK [17:50:00]SAM_PROTO_ClearQueue done [17:50:00]KKMCreateOFDPacket [17:50:00]OFDProtocolAddRootSTLVToBuf [17:50:00]FM_MakeSignedData [17:50:00]FM_MakeSignedData [17:50:00]SAM_PROTO_SignData [17:50:00]wFMCommunicate request_size=4 [17:50:00]MH_SAM_APDU [17:50:00]CAPDU: 80 0D 01 02 [17:50:00]Write to MH i2c: E2 08 00 FE 13 80 0D 01 02 00 00 00 00 8A [17:50:00]Write i2c OK [17:50:00]MH_I2C_Read... [17:50:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:50:00]Read from MH i2c: E2 [17:50:00]MH_I2C_Read... [17:50:00]Read from MH i2c: E2 03 00 [17:50:00]MH_I2C_Read... [17:50:00]Read from MH i2c: E2 03 00 FE 13 00 90 00 85 [17:50:00]RAPDU: 90 00 [17:50:00]wFMCommunicate OK [17:50:00]wFMCommunicate request_size=255 [17:50:00]MH_SAM_APDU [17:50:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 01 00 00 F4 03 04 00 C8 42 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EC 78 03 00 35 04 06 00 A7 [17:50:00]Write to MH i2c: E2 02 01 FF 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 01 00 00 F4 03 04 00 C8 42 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EC 78 03 00 35 04 06 00 A7 00 00 69 [17:50:00]Write i2c OK [17:50:00]MH_I2C_Read... [17:50:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:00]Read from MH i2c: E2 [17:50:00]MH_I2C_Read... [17:50:00]Read from MH i2c: E2 03 00 [17:50:00]MH_I2C_Read... [17:50:00]Read from MH i2c: E2 03 00 FF 13 00 90 00 86 [17:50:00]RAPDU: 90 00 [17:50:00]wFMCommunicate OK [17:50:00]wFMCommunicate request_size=10 [17:50:00]MH_SAM_APDU [17:50:00]CAPDU: 80 0D 02 02 05 0A 4D 0C 1E 59 [17:50:00]Write to MH i2c: E2 0D 00 00 14 80 0D 02 02 05 00 0A 4D 0C 1E 59 00 00 72 [17:50:00]Write i2c OK [17:50:00]MH_I2C_Read... [17:50:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:00]Read from MH i2c: E2 [17:50:00]MH_I2C_Read... [17:50:00]Read from MH i2c: E2 03 00 [17:50:00]MH_I2C_Read... [17:50:00]Read from MH i2c: E2 03 00 00 14 00 90 00 88 [17:50:00]RAPDU: 90 00 [17:50:00]wFMCommunicate OK [17:50:00]wFMCommunicate request_size=4 [17:50:00]MH_SAM_APDU [17:50:00]CAPDU: 80 0D 03 02 [17:50:00]Write to MH i2c: E2 08 00 01 14 80 0D 03 02 00 00 00 00 90 [17:50:00]Write i2c OK [17:50:00]MH_I2C_Read... [17:50:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:50:00]Read from MH i2c: E2 [17:50:00]MH_I2C_Read... [17:50:00]Read from MH i2c: E2 0B 00 [17:50:00]MH_I2C_Read... [17:50:00]Read from MH i2c: E2 0B 00 01 14 00 B9 29 C9 B7 41 0D 54 F2 90 00 87 [17:50:00]RAPDU: B9 29 C9 B7 41 0D 54 F2 90 00 [17:50:00]wFMCommunicate OK [17:50:00]SAM_PROTO_SignData done [17:50:00]FM_MakeSignedData done [17:50:00]CreateOFDProtocolMessage [17:50:00]wFMCommunicate request_size=4 [17:50:00]MH_SAM_APDU [17:50:00]CAPDU: 80 11 00 00 [17:50:00]Write to MH i2c: E2 08 00 02 14 80 11 00 00 00 00 00 00 90 [17:50:00]Write i2c OK [17:50:00]MH_I2C_Read... [17:50:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:01]Read from MH i2c: E2 [17:50:01]MH_I2C_Read... [17:50:01]Read from MH i2c: E2 17 00 [17:50:01]MH_I2C_Read... [17:50:01]Read from MH i2c: E2 17 00 02 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E7 [17:50:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:50:01]wFMCommunicate OK [17:50:01]CreateOFDProtocolMessage done [17:50:01]OFDSenderStorePacket 227564 [17:50:01]StoreOFDPacket docnum=227564 [17:50:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 72 90 07 01 62 EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 01 00 00 F4 03 04 00 C8 42 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EC 78 03 00 35 04 06 00 A7 0A 4D 0C 1E 59 B9 29 C9 B7 41 0D 54 F2 [17:50:01]CheckFolder [17:50:01]dirname=/storage/ofd_packets [17:50:01]CheckFolder done [17:50:01]ProducePacketName [17:50:01]name=ofd_packets/00227564 [17:50:01]NVStorageSaveData ofd_packets/00227564 [17:50:01]File name is /storage/ofd_packets/00227564 [17:50:01]Write 301 bytes [17:50:01]NVStorageSaveData done [17:50:01]OFDSenderStorePacket done [17:50:01]KKMCreateOFDPacket done [17:50:01]NVStorageSaveData kkm_last_timestamp [17:50:01]File name is /storage/kkm_last_timestamp [17:50:01]Write 4 bytes [17:50:01]NVStorageSaveData done [17:50:01]ExternCall_PrintAddStr [17:50:01]wPrintStart [17:50:01]Write to MH i2c: 01 00 00 03 14 17 [17:50:01]OFD Sender: Processing packet 227564 [packets to send 38, broken 37] [17:50:01]ProducePacketName [17:50:01]name=ofd_packets/00227564 [17:50:01]OFD Sender: To server: pG, [17:50:01]CommunicateWithHost lk.salyk.kg:30040 [17:50:01]ConnectInit lk.salyk.kg [17:50:01]Write i2c OK [17:50:01]MH_I2C_Read... [17:50:01]Read from MH i2c: 01 [17:50:01]MH_I2C_Read... [17:50:01]Read from MH i2c: 01 07 00 [17:50:01]MH_I2C_Read... [17:50:01]Read from MH i2c: 01 07 00 03 14 00 00 00 00 00 FF 0F 2C [17:50:01]RasterBufferAndPrint [17:50:01]line Счет N : (1)1963197 [17:50:01]line ИНН: 02508201610067 [17:50:01]line Контрольно-Кассовый Чек [17:50:01]line ПРОДАЖА [17:50:01]line ТРК (МРК, ГНК) : 43 [17:50:01]line Товар: 2710124130 [17:50:01]line Аи-92-К-5 [17:50:01]line 7.480 * 66.90 [17:50:01]line = 500.41 [17:50:01]line НДС 12% НСП 1% [17:50:01]line > о реализуемом товаре [17:50:01]line ОКРУГЛЕНИЕ: -0.41 [17:50:01]line ИТОГО: 500.00 [17:50:01]line Внесено: 500.00 [17:50:01]line СДАЧА: 0.00 [17:50:01]line НСП 1% : 4.43 [17:50:01]line НДС 12% : 53.14 [17:50:01]line Наличными: 500.00 [17:50:01]line Безнал.: 0.00 [17:50:01]line Место: АЗС № 133 "Партнер Нефть" [17:50:01]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:50:01]line СНО: Общий режим [17:50:01]line Чек 412 20.10.2024 17:50 [17:50:01]line Смена: 533 ФФД: 1.0 [17:50:01]line ЗНМ: 0300000091 [17:50:01]line РНМ: 0000000000091685 [17:50:01]line Версия ККМ: 001 [17:50:01]line ФМ: 0000000000871839 [17:50:01]line ФД: 227564 [17:50:01]line ФПД: 183662684151385 [17:50:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T175000&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227564&fm=183662684151385&tin=02508201610067®Number=0000000000091685&sum=50000 [17:50:01]Connected sock=10 [17:50: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 33 39 0F 01 00 00 72 90 07 01 62 EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 01 00 00 F4 03 04 00 C8 42 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EC 78 03 00 35 04 06 00 A7 0A 4D 0C 1E 59 B9 29 C9 B7 41 0D 54 F2 [17:50:01]written 0, free lines is 4095 [17:50: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 33 39 4F 00 00 00 A8 B9 47 00 98 EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EC 78 03 00 F4 03 04 00 C7 ED 14 67 B6 04 01 00 00 38 D5 76 46 BC 87 A4 A9 [17:50:01]CommunicateWithHost err = 0 [17:50:01]CheckOFDResponse [17:50:01]1017 (14) - 77093643461234 [17:50:01]1041 (16) - 0000000000871839 [17:50:01]1040 (4) - 227564 [17:50:01]1012 (4) - 20.10.2024 11:47 [17:50:01]1206 (1) - 0 [17:50:01]OFD Sender: Remove packet 227564 [17:50:01]ProducePacketName [17:50:01]name=ofd_packets/00227564 [17:50:01]NVStorageDeleteData [17:50:01]Write to MH i2c: 01 00 00 2D 14 41 [17:50:01]Write i2c OK [17:50:01]MH_I2C_Read... [17:50:01]Read from MH i2c: 01 [17:50:01]MH_I2C_Read... [17:50:01]Read from MH i2c: 01 07 00 [17:50:01]MH_I2C_Read... [17:50:01]Read from MH i2c: 01 07 00 2D 14 00 00 00 00 00 02 0D 57 [17:50:01]RasterBufferAndPrint [17:50:01]line [17:50:01]line [17:50:01]line [17:50:01]line [17:50:01]line [17:50:01]written 0, free lines is 3336 [17:50:01]process_action close_receipt done [17:50:01]requested_data is exist [17:50:01]produce_requested_data [17:50:01]requested_item fm.sn is exist - process it [17:50:01]wFMCommunicate request_size=4 [17:50:01]MH_SAM_APDU [17:50:01]CAPDU: 80 11 00 00 [17:50:01]Write to MH i2c: E2 08 00 34 14 80 11 00 00 00 00 00 00 C2 [17:50:01]Write i2c OK [17:50:01]MH_I2C_Read... [17:50:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:01]Read from MH i2c: E2 [17:50:01]MH_I2C_Read... [17:50:01]Read from MH i2c: E2 17 00 [17:50:01]MH_I2C_Read... [17:50:01]Read from MH i2c: E2 17 00 34 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 19 [17:50:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:50:01]wFMCommunicate OK [17:50:01]requested_item fd.num is exist - process it [17:50:01]SAM_PROTO_GetFieldsCounters [17:50:01]wFMCommunicate request_size=4 [17:50:01]MH_SAM_APDU [17:50:01]CAPDU: 80 13 00 00 [17:50:01]Write to MH i2c: E2 08 00 35 14 80 13 00 00 00 00 00 00 C5 [17:50:01]Write i2c OK [17:50:01]MH_I2C_Read... [17:50:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:50:02]Read from MH i2c: E2 [17:50:02]MH_I2C_Read... [17:50:02]Read from MH i2c: E2 62 00 [17:50:02]MH_I2C_Read... [17:50:02]Read from MH i2c: E2 62 00 35 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 EC 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 9C 01 00 00 5E 04 04 00 9C 01 00 00 57 04 04 00 9D 01 00 00 19 04 04 00 00 00 00 00 90 00 43 [17:50: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 EC 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 9C 01 00 00 5E 04 04 00 9C 01 00 00 57 04 04 00 9D 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:50:02]wFMCommunicate OK [17:50:02]SAM_PROTO_GetFieldsCounters done [17:50:02]requested_item shift.num is exist - process it [17:50:02]requested_item shift.opened is exist - process it [17:50:02]req_shift_opened [17:50:02]FM_GetShiftState [17:50:02]SAM_PROTO_GetShiftState [17:50:02]wFMCommunicate request_size=4 [17:50:02]MH_SAM_APDU [17:50:02]CAPDU: 80 13 01 00 [17:50:02]Write to MH i2c: E2 08 00 36 14 80 13 01 00 00 00 00 00 C7 [17:50:02]Write i2c OK [17:50:02]MH_I2C_Read... [17:50:02]OFD Sender: No OFD packet to send [17:50:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:02]Read from MH i2c: E2 [17:50:02]MH_I2C_Read... [17:50:02]Read from MH i2c: E2 0E 00 [17:50:02]MH_I2C_Read... [17:50:02]Read from MH i2c: E2 0E 00 36 14 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 E1 [17:50:02]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:50:02]wFMCommunicate OK [17:50:02]SAM_PROTO_GetShiftState done [17:50:02]FM_GetShiftState done [17:50:02]req_shift_opened done [17:50:02]requested_item shift.open_date is exist - process it [17:50:02]req_shift_open_date [17:50:02]req_shift_open_date done [17:50:02]produce_requested_data done [17:50:02]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227564,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [17:50:02]process_action_free close_receipt [17:50:02]json_value_free [17:50:02]json_value_free done [17:50:02]process_json_proto returns [17:50:02]Send response to host [17:50:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227564,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [17:50:02]free response buf [17:50:02]execute_script done [17:50:02]execute_script returns [17:50:02]free content buf [17:50:02]Sock 9.Close socket [17:50:02]Sock 9.Thread stoped [17:50:07]OFD Sender: No OFD packet to send [17:50:12]OFD Sender: No OFD packet to send [17:50:17]OFD Sender: No OFD packet to send [17:50:22]OFD Sender: No OFD packet to send [17:50:27]OFD Sender: No OFD packet to send [17:50:32]OFD Sender: No OFD packet to send [17:50:37]OFD Sender: No OFD packet to send [17:50:42]OFD Sender: No OFD packet to send [17:50:47]OFD Sender: No OFD packet to send [17:50:52]OFD Sender: No OFD packet to send [17:50:57]OFD Sender: No OFD packet to send [17:51:02]OFD Sender: No OFD packet to send [17:51:07]OFD Sender: No OFD packet to send [17:51:12]OFD Sender: No OFD packet to send [17:51:17]OFD Sender: No OFD packet to send [17:51:22]OFD Sender: No OFD packet to send [17:51:27]OFD Sender: No OFD packet to send [17:51:32]OFD Sender: No OFD packet to send [17:51:37]OFD Sender: No OFD packet to send [17:51:42]OFD Sender: No OFD packet to send [17:51:47]OFD Sender: No OFD packet to send [17:51:52]OFD Sender: No OFD packet to send [17:51:57]OFD Sender: No OFD packet to send [17:52:02]OFD Sender: No OFD packet to send [17:52:07]OFD Sender: No OFD packet to send [17:52:12]OFD Sender: No OFD packet to send [17:52:17]OFD Sender: No OFD packet to send [17:52:22]OFD Sender: No OFD packet to send [17:52:27]OFD Sender: No OFD packet to send [17:52:32]OFD Sender: No OFD packet to send [17:52:37]OFD Sender: No OFD packet to send [17:52:42]OFD Sender: No OFD packet to send [17:52:47]OFD Sender: No OFD packet to send [17:52:52]OFD Sender: No OFD packet to send [17:52:57]OFD Sender: No OFD packet to send [17:53:02]OFD Sender: No OFD packet to send [17:53:07]OFD Sender: No OFD packet to send [17:53:12]OFD Sender: No OFD packet to send [17:53:17]OFD Sender: No OFD packet to send [17:53:22]OFD Sender: No OFD packet to send [17:53:27]OFD Sender: No OFD packet to send [17:53:32]OFD Sender: No OFD packet to send [17:53:37]OFD Sender: No OFD packet to send [17:53:42]OFD Sender: No OFD packet to send [17:53:47]OFD Sender: No OFD packet to send [17:53:52]OFD Sender: No OFD packet to send [17:53:57]OFD Sender: No OFD packet to send [17:54:02]OFD Sender: No OFD packet to send [17:54:07]OFD Sender: No OFD packet to send [17:54:12]OFD Sender: No OFD packet to send [17:54:17]OFD Sender: No OFD packet to send [17:54:22]OFD Sender: No OFD packet to send [17:54:27]OFD Sender: No OFD packet to send [17:54:32]OFD Sender: No OFD packet to send [17:54:37]OFD Sender: No OFD packet to send [17:54:42]OFD Sender: No OFD packet to send [17:54:47]OFD Sender: No OFD packet to send [17:54:52]OFD Sender: No OFD packet to send [17:54:57]OFD Sender: No OFD packet to send [17:55:02]OFD Sender: No OFD packet to send [17:55:07]OFD Sender: No OFD packet to send [17:55:12]OFD Sender: No OFD packet to send [17:55:17]OFD Sender: No OFD packet to send [17:55:22]OFD Sender: No OFD packet to send [17:55:27]OFD Sender: No OFD packet to send [17:55:32]OFD Sender: No OFD packet to send [17:55:37]OFD Sender: No OFD packet to send [17:55:42]OFD Sender: No OFD packet to send [17:55:47]OFD Sender: No OFD packet to send [17:55:52]OFD Sender: No OFD packet to send [17:55:57]OFD Sender: No OFD packet to send [17:56:02]OFD Sender: No OFD packet to send [17:56:07]OFD Sender: No OFD packet to send [17:56:12]OFD Sender: No OFD packet to send [17:56:17]OFD Sender: No OFD packet to send [17:56:22]OFD Sender: No OFD packet to send [17:56:27]OFD Sender: No OFD packet to send [17:56:32]OFD Sender: No OFD packet to send [17:56:37]OFD Sender: No OFD packet to send [17:56:42]OFD Sender: No OFD packet to send [17:56:47]OFD Sender: No OFD packet to send [17:56:52]OFD Sender: No OFD packet to send [17:56:57]OFD Sender: No OFD packet to send [17:57:02]OFD Sender: No OFD packet to send [17:57:07]OFD Sender: No OFD packet to send [17:57:12]OFD Sender: No OFD packet to send [17:57:17]OFD Sender: No OFD packet to send [17:57:22]OFD Sender: No OFD packet to send [17:57:27]OFD Sender: No OFD packet to send [17:57:32]OFD Sender: No OFD packet to send [17:57:37]OFD Sender: No OFD packet to send [17:57:42]OFD Sender: No OFD packet to send [17:57:47]OFD Sender: No OFD packet to send [17:57:52]OFD Sender: No OFD packet to send [17:57:57]OFD Sender: No OFD packet to send [17:58:02]OFD Sender: No OFD packet to send [17:58:07]OFD Sender: No OFD packet to send [17:58:12]OFD Sender: No OFD packet to send [17:58:17]OFD Sender: No OFD packet to send [17:58:22]OFD Sender: No OFD packet to send [17:58:27]OFD Sender: No OFD packet to send [17:58:32]OFD Sender: No OFD packet to send [17:58:37]OFD Sender: No OFD packet to send [17:58:42]OFD Sender: No OFD packet to send [17:58:47]OFD Sender: No OFD packet to send [17:58:52]OFD Sender: No OFD packet to send [17:58:54]accept exits with 7 [17:58:54]New connection [17:58:54]New thread 3067362660 created [17:58:54]Thread 3067219300 joined [17:58:54]Waiting for new connection... [17:58:54] Sock 7.Parse request [17:58:54]Sock 7.Check first char [17:58:54]Sock 7.First char is OK [17:58:54]request: POST /json_proto HTTP/1.0 [17:58:54]Method: POST [17:58:54]URL: /json_proto [17:58:54]Method is POST - this is cgi request [17:58:54]url: /json_proto [17:58:54]query_string will be loaded in cgi processing [17:58:54]execute_cgi json_proto POST (null) [17:58:54]execute_cgi path=json_proto method=POST [17:58:54]POST find Content-Length [17:58:54]Host: 172.17.44.195:8080 [17:58:54]Content-Length: 679 [17:58:54]Content-Type: application/json [17:58:54] [17:58:54]POST finish read [17:58:54]Found Content-Length = 679 [17:58:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963201", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.810, "sum" : 790.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 790.00, "total" : 790.00, "payments": [ { "type": 0, "sum" : 790.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:58:54]execute_script... [17:58: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)1963201", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.810, "sum" : 790.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 790.00, "total" : 790.00, "payments": [ { "type": 0, "sum" : 790.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:58:54]POST & json_proto [17:58:54]process_json_proto [17:58:54]json parsed OK: [17:58:54]protocol is kg_v1.0 [17:58:54]action value=close_receipt [17:58:54]process_action close_receipt [17:58:54]cmd_close_receipt [17:58:54]MH_GetDate [17:58:54]Write to MH i2c: F0 00 00 37 14 3A [17:58:54]Write i2c OK [17:58:54]MH_I2C_Read... [17:58:54]Read from MH i2c: F0 [17:58:54]MH_I2C_Read... [17:58:54]Read from MH i2c: F0 09 00 [17:58:54]MH_I2C_Read... [17:58:54]Read from MH i2c: F0 09 00 37 14 00 DF 44 15 67 82 C9 CF 66 62 [17:58:54]GetLastDocTimeStamp 1729446600 [17:58:54]current date 1729447135 [17:58:54]FM_GetShiftState [17:58:54]SAM_PROTO_GetShiftState [17:58:54]wFMCommunicate request_size=4 [17:58:54]MH_SAM_APDU [17:58:54]CAPDU: 80 13 01 00 [17:58:54]Write to MH i2c: E2 08 00 38 14 80 13 01 00 00 00 00 00 C9 [17:58:54]Write i2c OK [17:58:54]MH_I2C_Read... [17:58:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:54]Read from MH i2c: E2 [17:58:54]MH_I2C_Read... [17:58:54]Read from MH i2c: E2 0E 00 [17:58:54]MH_I2C_Read... [17:58:54]Read from MH i2c: E2 0E 00 38 14 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 E3 [17:58:54]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:58:54]wFMCommunicate OK [17:58:54]SAM_PROTO_GetShiftState done [17:58:54]FM_GetShiftState done [17:58:54]opened in 1729383750 [17:58:54]opened+sec_in_day 1729470150 [17:58:54]quantity*price = 79008 [17:58:54]sum+1 = 79010 [17:58:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 790.00 Внесено: 790.00 СДАЧА: 0.00 НСП 1% : 6.99 НДС 12% : 83.90 Наличными: 790.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 413 20.10.2024 17:58 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227565 ФПД: 137946931403926 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T175855&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227565&fm=137946931403926&tin=02508201610067®Number=0000000000091685&sum=79000 [17:58:55]StoreToDocumentArchive [17:58:55]shift 533 fd 227565 [17:58:55]save to /storage/0533/doc_00227565 [17:58:55]save last doc name /storage/0533/doc_00227565 to /storage/kkm_last_doc_name [17:58:55]save OK [17:58:55]Clear old archive folders... [17:58:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:58:55]tlvbuf is 00D9CE30 [17:58:55]SAM_PROTO_ClearQueue [17:58:55]wFMCommunicate request_size=4 [17:58:55]MH_SAM_APDU [17:58:55]CAPDU: 80 09 00 00 [17:58:55]Write to MH i2c: E2 08 00 45 14 80 09 00 00 00 00 00 00 CB [17:58:55]Write i2c OK [17:58:55]MH_I2C_Read... [17:58:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:58:55]Read from MH i2c: E2 [17:58:55]MH_I2C_Read... [17:58:55]Read from MH i2c: E2 03 00 [17:58:55]MH_I2C_Read... [17:58:55]Read from MH i2c: E2 03 00 45 14 00 90 00 CD [17:58:55]RAPDU: 90 00 [17:58:55]wFMCommunicate OK [17:58:55]SAM_PROTO_ClearQueue done [17:58:55]KKMCreateOFDPacket [17:58:55]OFDProtocolAddRootSTLVToBuf [17:58:55]FM_MakeSignedData [17:58:55]FM_MakeSignedData [17:58:55]SAM_PROTO_SignData [17:58:55]wFMCommunicate request_size=4 [17:58:55]MH_SAM_APDU [17:58:55]CAPDU: 80 0D 01 02 [17:58:55]Write to MH i2c: E2 08 00 46 14 80 0D 01 02 00 00 00 00 D3 [17:58:55]Write i2c OK [17:58:55]MH_I2C_Read... [17:58:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:58:55]Read from MH i2c: E2 [17:58:55]MH_I2C_Read... [17:58:55]Read from MH i2c: E2 03 00 [17:58:55]MH_I2C_Read... [17:58:55]Read from MH i2c: E2 03 00 46 14 00 90 00 CE [17:58:55]RAPDU: 90 00 [17:58:55]wFMCommunicate OK [17:58:55]wFMCommunicate request_size=255 [17:58:55]MH_SAM_APDU [17:58:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A1 34 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 34 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 20 00 00 00 00 07 04 06 00 98 34 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 01 00 00 F4 03 04 00 DF 44 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 ED 78 03 00 35 04 06 00 7D [17:58:55]Write to MH i2c: E2 02 01 47 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A1 34 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 34 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 20 00 00 00 00 07 04 06 00 98 34 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 01 00 00 F4 03 04 00 DF 44 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 ED 78 03 00 35 04 06 00 7D 00 00 BD [17:58:55]Write i2c OK [17:58:55]MH_I2C_Read... [17:58:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:55]Read from MH i2c: E2 [17:58:55]MH_I2C_Read... [17:58:55]Read from MH i2c: E2 03 00 [17:58:55]MH_I2C_Read... [17:58:55]Read from MH i2c: E2 03 00 47 14 00 90 00 CF [17:58:55]RAPDU: 90 00 [17:58:55]wFMCommunicate OK [17:58:55]wFMCommunicate request_size=10 [17:58:55]MH_SAM_APDU [17:58:55]CAPDU: 80 0D 02 02 05 76 45 D8 1C 96 [17:58:55]Write to MH i2c: E2 0D 00 48 14 80 0D 02 02 05 00 76 45 D8 1C 96 00 00 25 [17:58:55]Write i2c OK [17:58:55]MH_I2C_Read... [17:58:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:55]Read from MH i2c: E2 [17:58:55]MH_I2C_Read... [17:58:55]Read from MH i2c: E2 03 00 [17:58:55]MH_I2C_Read... [17:58:55]Read from MH i2c: E2 03 00 48 14 00 90 00 D0 [17:58:55]RAPDU: 90 00 [17:58:55]wFMCommunicate OK [17:58:55]wFMCommunicate request_size=4 [17:58:55]MH_SAM_APDU [17:58:55]CAPDU: 80 0D 03 02 [17:58:55]Write to MH i2c: E2 08 00 49 14 80 0D 03 02 00 00 00 00 D8 [17:58:55]Write i2c OK [17:58:55]MH_I2C_Read... [17:58:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:58:55]Read from MH i2c: E2 [17:58:55]MH_I2C_Read... [17:58:55]Read from MH i2c: E2 0B 00 [17:58:55]MH_I2C_Read... [17:58:55]Read from MH i2c: E2 0B 00 49 14 00 F4 F1 9E 5B D3 E2 DC 7A 90 00 C2 [17:58:55]RAPDU: F4 F1 9E 5B D3 E2 DC 7A 90 00 [17:58:55]wFMCommunicate OK [17:58:55]SAM_PROTO_SignData done [17:58:55]FM_MakeSignedData done [17:58:55]CreateOFDProtocolMessage [17:58:55]wFMCommunicate request_size=4 [17:58:55]MH_SAM_APDU [17:58:55]CAPDU: 80 11 00 00 [17:58:55]Write to MH i2c: E2 08 00 4A 14 80 11 00 00 00 00 00 00 D8 [17:58:55]Write i2c OK [17:58:55]MH_I2C_Read... [17:58:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:55]Read from MH i2c: E2 [17:58:55]MH_I2C_Read... [17:58:55]Read from MH i2c: E2 17 00 [17:58:55]MH_I2C_Read... [17:58:55]Read from MH i2c: E2 17 00 4A 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 2F [17:58:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:58:55]wFMCommunicate OK [17:58:55]CreateOFDProtocolMessage done [17:58:55]OFDSenderStorePacket 227565 [17:58:55]StoreOFDPacket docnum=227565 [17:58:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 3D 38 07 01 36 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A1 34 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 34 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 20 00 00 00 00 07 04 06 00 98 34 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 01 00 00 F4 03 04 00 DF 44 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 ED 78 03 00 35 04 06 00 7D 76 45 D8 1C 96 F4 F1 9E 5B D3 E2 DC 7A [17:58:55]CheckFolder [17:58:55]dirname=/storage/ofd_packets [17:58:55]CheckFolder done [17:58:55]ProducePacketName [17:58:55]name=ofd_packets/00227565 [17:58:55]NVStorageSaveData ofd_packets/00227565 [17:58:55]File name is /storage/ofd_packets/00227565 [17:58:55]Write 301 bytes [17:58:55]NVStorageSaveData done [17:58:55]OFDSenderStorePacket done [17:58:55]KKMCreateOFDPacket done [17:58:55]NVStorageSaveData kkm_last_timestamp [17:58:55]File name is /storage/kkm_last_timestamp [17:58:55]Write 4 bytes [17:58:55]NVStorageSaveData done [17:58:55]ExternCall_PrintAddStr [17:58:55]wPrintStart [17:58:55]Write to MH i2c: 01 00 00 4B 14 5F [17:58:55]Write i2c OK [17:58:55]MH_I2C_Read... [17:58:55]Read from MH i2c: 01 [17:58:55]MH_I2C_Read... [17:58:55]Read from MH i2c: 01 07 00 [17:58:55]MH_I2C_Read... [17:58:55]Read from MH i2c: 01 07 00 4B 14 00 00 00 00 00 FF 0F 74 [17:58:55]RasterBufferAndPrint [17:58:55]line Счет N : (1)1963201 [17:58:55]line ИНН: 02508201610067 [17:58:55]line Контрольно-Кассовый Чек [17:58:55]line ПРОДАЖА [17:58:55]line ТРК (МРК, ГНК) : 43 [17:58:55]line Товар: 2710124130 [17:58:55]line Аи-92-К-5 [17:58:55]line 11.810 * 66.90 [17:58:55]line = 790.09 [17:58:55]line НДС 12% НСП 1% [17:58:55]line > о реализуемом товаре [17:58:55]line ОКРУГЛЕНИЕ: -0.09 [17:58:55]line ИТОГО: 790.00 [17:58:55]line Внесено: 790.00 [17:58:55]line СДАЧА: 0.00 [17:58:55]line НСП 1% : 6.99 [17:58:55]line НДС 12% : 83.90 [17:58:55]line Наличными: 790.00 [17:58:55]line Безнал.: 0.00 [17:58:55]line Место: АЗС № 133 "Партнер Нефть" [17:58:55]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [17:58:55]line СНО: Общий режим [17:58:55]line Чек 413 20.10.2024 17:58 [17:58:55]line Смена: 533 ФФД: 1.0 [17:58:55]line ЗНМ: 0300000091 [17:58:55]line РНМ: 0000000000091685 [17:58:55]line Версия ККМ: 001 [17:58:55]line ФМ: 0000000000871839 [17:58:55]line ФД: 227565 [17:58:55]line ФПД: 137946931403926 [17:58:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T175855&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227565&fm=137946931403926&tin=02508201610067®Number=0000000000091685&sum=79000 [17:58:56]OFD Sender: Processing packet 227565 [packets to send 38, broken 37] [17:58:56]ProducePacketName [17:58:56]name=ofd_packets/00227565 [17:58:56]OFD Sender: To server: pG, [17:58:56]CommunicateWithHost lk.salyk.kg:30040 [17:58:56]ConnectInit lk.salyk.kg [17:58:56]written 0, free lines is 4095 [17:58:56]Connected sock=10 [17:58:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 3D 38 07 01 36 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A1 34 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 34 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 20 00 00 00 00 07 04 06 00 98 34 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 01 00 00 F4 03 04 00 DF 44 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 ED 78 03 00 35 04 06 00 7D 76 45 D8 1C 96 F4 F1 9E 5B D3 E2 DC 7A [17:58: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 33 39 4F 00 00 00 84 87 47 00 36 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 ED 78 03 00 F4 03 04 00 DD EF 14 67 B6 04 01 00 00 A1 CC 74 4F D7 09 C4 A4 [17:58:56]CommunicateWithHost err = 0 [17:58:56]CheckOFDResponse [17:58:56]1017 (14) - 77093643461234 [17:58:56]1041 (16) - 0000000000871839 [17:58:56]1040 (4) - 227565 [17:58:56]1012 (4) - 20.10.2024 11:56 [17:58:56]1206 (1) - 0 [17:58:56]OFD Sender: Remove packet 227565 [17:58:56]ProducePacketName [17:58:56]name=ofd_packets/00227565 [17:58:56]NVStorageDeleteData [17:58:56]Write to MH i2c: 01 00 00 75 14 89 [17:58:56]Write i2c OK [17:58:56]MH_I2C_Read... [17:58:56]Read from MH i2c: 01 [17:58:56]MH_I2C_Read... [17:58:56]Read from MH i2c: 01 07 00 [17:58:56]MH_I2C_Read... [17:58:56]Read from MH i2c: 01 07 00 75 14 00 00 00 00 00 02 0D 9F [17:58:56]RasterBufferAndPrint [17:58:56]line [17:58:56]line [17:58:56]line [17:58:56]line [17:58:56]line [17:58:56]written 0, free lines is 3336 [17:58:56]process_action close_receipt done [17:58:56]requested_data is exist [17:58:56]produce_requested_data [17:58:56]requested_item fm.sn is exist - process it [17:58:56]wFMCommunicate request_size=4 [17:58:56]MH_SAM_APDU [17:58:56]CAPDU: 80 11 00 00 [17:58:56]Write to MH i2c: E2 08 00 7C 14 80 11 00 00 00 00 00 00 0A [17:58:56]Write i2c OK [17:58:56]MH_I2C_Read... [17:58:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:56]Read from MH i2c: E2 [17:58:56]MH_I2C_Read... [17:58:56]Read from MH i2c: E2 17 00 [17:58:56]MH_I2C_Read... [17:58:56]Read from MH i2c: E2 17 00 7C 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 61 [17:58:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [17:58:56]wFMCommunicate OK [17:58:56]requested_item fd.num is exist - process it [17:58:56]SAM_PROTO_GetFieldsCounters [17:58:56]wFMCommunicate request_size=4 [17:58:56]MH_SAM_APDU [17:58:56]CAPDU: 80 13 00 00 [17:58:56]Write to MH i2c: E2 08 00 7D 14 80 13 00 00 00 00 00 00 0D [17:58:56]Write i2c OK [17:58:56]MH_I2C_Read... [17:58:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:58:56]Read from MH i2c: E2 [17:58:56]MH_I2C_Read... [17:58:56]Read from MH i2c: E2 62 00 [17:58:56]MH_I2C_Read... [17:58:56]Read from MH i2c: E2 62 00 7D 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 ED 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 9D 01 00 00 5E 04 04 00 9D 01 00 00 57 04 04 00 9E 01 00 00 19 04 04 00 00 00 00 00 90 00 8F [17:58: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 ED 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 9D 01 00 00 5E 04 04 00 9D 01 00 00 57 04 04 00 9E 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:58:56]wFMCommunicate OK [17:58:56]SAM_PROTO_GetFieldsCounters done [17:58:56]requested_item shift.num is exist - process it [17:58:56]requested_item shift.opened is exist - process it [17:58:56]req_shift_opened [17:58:56]FM_GetShiftState [17:58:56]SAM_PROTO_GetShiftState [17:58:56]wFMCommunicate request_size=4 [17:58:56]MH_SAM_APDU [17:58:56]CAPDU: 80 13 01 00 [17:58:56]Write to MH i2c: E2 08 00 7E 14 80 13 01 00 00 00 00 00 0F [17:58:56]Write i2c OK [17:58:56]MH_I2C_Read... [17:58:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:56]Read from MH i2c: E2 [17:58:56]MH_I2C_Read... [17:58:56]Read from MH i2c: E2 0E 00 [17:58:56]MH_I2C_Read... [17:58:56]Read from MH i2c: E2 0E 00 7E 14 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 29 [17:58:56]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [17:58:56]wFMCommunicate OK [17:58:56]SAM_PROTO_GetShiftState done [17:58:56]FM_GetShiftState done [17:58:56]req_shift_opened done [17:58:56]requested_item shift.open_date is exist - process it [17:58:56]req_shift_open_date [17:58:56]req_shift_open_date done [17:58:56]produce_requested_data done [17:58:56]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227565,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [17:58:56]process_action_free close_receipt [17:58:56]json_value_free [17:58:56]json_value_free done [17:58:56]process_json_proto returns [17:58:56]Send response to host [17:58:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227565,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [17:58:56]free response buf [17:58:56]execute_script done [17:58:56]execute_script returns [17:58:56]free content buf [17:58:56]Sock 7.Close socket [17:58:56]Sock 7.Thread stoped [17:58:56]OFD Sender: No OFD packet to send [17:59:01]OFD Sender: No OFD packet to send [17:59:06]OFD Sender: No OFD packet to send [17:59:11]OFD Sender: No OFD packet to send [17:59:16]OFD Sender: No OFD packet to send [17:59:21]OFD Sender: No OFD packet to send [17:59:27]OFD Sender: No OFD packet to send [17:59:32]OFD Sender: No OFD packet to send [17:59:37]OFD Sender: No OFD packet to send [17:59:42]OFD Sender: No OFD packet to send [17:59:47]OFD Sender: No OFD packet to send [17:59:52]OFD Sender: No OFD packet to send [17:59:57]OFD Sender: No OFD packet to send [18:00:02]OFD Sender: No OFD packet to send [18:00:07]OFD Sender: No OFD packet to send [18:00:12]OFD Sender: No OFD packet to send [18:00:17]OFD Sender: No OFD packet to send [18:00:22]OFD Sender: No OFD packet to send [18:00:27]OFD Sender: No OFD packet to send [18:00:32]OFD Sender: No OFD packet to send [18:00:37]OFD Sender: No OFD packet to send [18:00:42]OFD Sender: No OFD packet to send [18:00:47]OFD Sender: No OFD packet to send [18:00:52]OFD Sender: No OFD packet to send [18:00:57]OFD Sender: No OFD packet to send [18:01:02]OFD Sender: No OFD packet to send [18:01:07]OFD Sender: No OFD packet to send [18:01:12]OFD Sender: No OFD packet to send [18:01:17]OFD Sender: No OFD packet to send [18:01:22]OFD Sender: No OFD packet to send [18:01:27]OFD Sender: No OFD packet to send [18:01:32]OFD Sender: No OFD packet to send [18:01:37]OFD Sender: No OFD packet to send [18:01:42]OFD Sender: No OFD packet to send [18:01:47]OFD Sender: No OFD packet to send [18:01:52]OFD Sender: No OFD packet to send [18:01:57]OFD Sender: No OFD packet to send [18:02:02]OFD Sender: No OFD packet to send [18:02:07]OFD Sender: No OFD packet to send [18:02:12]OFD Sender: No OFD packet to send [18:02:17]OFD Sender: No OFD packet to send [18:02:22]OFD Sender: No OFD packet to send [18:02:27]OFD Sender: No OFD packet to send [18:02:32]OFD Sender: No OFD packet to send [18:02:37]OFD Sender: No OFD packet to send [18:02:42]OFD Sender: No OFD packet to send [18:02:47]OFD Sender: No OFD packet to send [18:02:52]OFD Sender: No OFD packet to send [18:02:57]OFD Sender: No OFD packet to send [18:03:02]OFD Sender: No OFD packet to send [18:03:04]accept exits with 9 [18:03:04]New connection [18:03:04]New thread 3067219300 created [18:03:04]Thread 3067362660 joined [18:03:04]Waiting for new connection... [18:03:04] Sock 9.Parse request [18:03:04]Sock 9.Check first char [18:03:04]Sock 9.First char is OK [18:03:04]request: POST /json_proto HTTP/1.0 [18:03:04]Method: POST [18:03:04]URL: /json_proto [18:03:04]Method is POST - this is cgi request [18:03:04]url: /json_proto [18:03:04]query_string will be loaded in cgi processing [18:03:04]execute_cgi json_proto POST (null) [18:03:04]execute_cgi path=json_proto method=POST [18:03:04]POST find Content-Length [18:03:04]Host: 172.17.44.195:8080 [18:03:04]Content-Length: 680 [18:03:04]Content-Type: application/json [18:03:04] [18:03:04]POST finish read [18:03:04]Found Content-Length = 680 [18:03:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963202", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:04]execute_script... [18:03: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)1963202", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:04]POST & json_proto [18:03:04]process_json_proto [18:03:04]json parsed OK: [18:03:04]protocol is kg_v1.0 [18:03:04]action value=close_receipt [18:03:04]process_action close_receipt [18:03:04]cmd_close_receipt [18:03:04]MH_GetDate [18:03:04]Write to MH i2c: F0 00 00 7F 14 82 [18:03:04]Write i2c OK [18:03:04]MH_I2C_Read... [18:03:04]Read from MH i2c: F0 [18:03:04]MH_I2C_Read... [18:03:04]Read from MH i2c: F0 09 00 [18:03:04]MH_I2C_Read... [18:03:04]Read from MH i2c: F0 09 00 7F 14 00 D9 45 15 67 82 C9 CF 66 A5 [18:03:04]GetLastDocTimeStamp 1729447135 [18:03:04]current date 1729447385 [18:03:04]FM_GetShiftState [18:03:04]SAM_PROTO_GetShiftState [18:03:04]wFMCommunicate request_size=4 [18:03:04]MH_SAM_APDU [18:03:04]CAPDU: 80 13 01 00 [18:03:04]Write to MH i2c: E2 08 00 80 14 80 13 01 00 00 00 00 00 11 [18:03:04]Write i2c OK [18:03:04]MH_I2C_Read... [18:03:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:04]Read from MH i2c: E2 [18:03:04]MH_I2C_Read... [18:03:04]Read from MH i2c: E2 0E 00 [18:03:04]MH_I2C_Read... [18:03:04]Read from MH i2c: E2 0E 00 80 14 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 2B [18:03:04]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:03:04]wFMCommunicate OK [18:03:04]SAM_PROTO_GetShiftState done [18:03:04]FM_GetShiftState done [18:03:04]opened in 1729383750 [18:03:04]opened+sec_in_day 1729470150 [18:03:04]quantity*price = 200025 [18:03:04]sum+1 = 200026 [18:03:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 414 20.10.2024 18:03 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227566 ФПД: 233923872212818 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T180306&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227566&fm=233923872212818&tin=02508201610067®Number=0000000000091685&sum=200000 [18:03:05]StoreToDocumentArchive [18:03:05]shift 533 fd 227566 [18:03:05]save to /storage/0533/doc_00227566 [18:03:05]save last doc name /storage/0533/doc_00227566 to /storage/kkm_last_doc_name [18:03:05]save OK [18:03:05]Clear old archive folders... [18:03:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:03:05]tlvbuf is 00D89500 [18:03:05]SAM_PROTO_ClearQueue [18:03:05]wFMCommunicate request_size=4 [18:03:05]MH_SAM_APDU [18:03:05]CAPDU: 80 09 00 00 [18:03:05]Write to MH i2c: E2 08 00 8D 14 80 09 00 00 00 00 00 00 13 [18:03:05]Write i2c OK [18:03:05]MH_I2C_Read... [18:03:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:03:05]Read from MH i2c: E2 [18:03:05]MH_I2C_Read... [18:03:05]Read from MH i2c: E2 03 00 [18:03:05]MH_I2C_Read... [18:03:05]Read from MH i2c: E2 03 00 8D 14 00 90 00 15 [18:03:05]RAPDU: 90 00 [18:03:05]wFMCommunicate OK [18:03:05]SAM_PROTO_ClearQueue done [18:03:05]KKMCreateOFDPacket [18:03:05]OFDProtocolAddRootSTLVToBuf [18:03:05]FM_MakeSignedData [18:03:05]FM_MakeSignedData [18:03:05]SAM_PROTO_SignData [18:03:05]wFMCommunicate request_size=4 [18:03:05]MH_SAM_APDU [18:03:05]CAPDU: 80 0D 01 02 [18:03:05]Write to MH i2c: E2 08 00 8E 14 80 0D 01 02 00 00 00 00 1B [18:03:05]Write i2c OK [18:03:05]MH_I2C_Read... [18:03:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:03:05]Read from MH i2c: E2 [18:03:05]MH_I2C_Read... [18:03:05]Read from MH i2c: E2 03 00 [18:03:05]MH_I2C_Read... [18:03:05]Read from MH i2c: E2 03 00 8E 14 00 90 00 16 [18:03:05]RAPDU: 90 00 [18:03:05]wFMCommunicate OK [18:03:05]wFMCommunicate request_size=255 [18:03:05]MH_SAM_APDU [18:03: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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 01 00 00 F4 03 04 00 DA 45 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EE 78 03 00 35 04 06 00 D4 C0 A5 4E [18:03:05]Write to MH i2c: E2 02 01 8F 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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 01 00 00 F4 03 04 00 DA 45 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EE 78 03 00 35 04 06 00 D4 C0 A5 4E 00 00 D7 [18:03:05]Write i2c OK [18:03:05]MH_I2C_Read... [18:03:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:05]Read from MH i2c: E2 [18:03:05]MH_I2C_Read... [18:03:05]Read from MH i2c: E2 03 00 [18:03:05]MH_I2C_Read... [18:03:05]Read from MH i2c: E2 03 00 8F 14 00 90 00 17 [18:03:05]RAPDU: 90 00 [18:03:05]wFMCommunicate OK [18:03:05]wFMCommunicate request_size=7 [18:03:05]MH_SAM_APDU [18:03:05]CAPDU: 80 0D 02 02 02 C7 52 [18:03:05]Write to MH i2c: E2 0A 00 90 14 80 0D 02 02 02 00 C7 52 00 00 3B [18:03:05]Write i2c OK [18:03:05]MH_I2C_Read... [18:03:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:06]Read from MH i2c: E2 [18:03:06]MH_I2C_Read... [18:03:06]Read from MH i2c: E2 03 00 [18:03:06]MH_I2C_Read... [18:03:06]Read from MH i2c: E2 03 00 90 14 00 90 00 18 [18:03:06]RAPDU: 90 00 [18:03:06]wFMCommunicate OK [18:03:06]wFMCommunicate request_size=4 [18:03:06]MH_SAM_APDU [18:03:06]CAPDU: 80 0D 03 02 [18:03:06]Write to MH i2c: E2 08 00 91 14 80 0D 03 02 00 00 00 00 20 [18:03:06]Write i2c OK [18:03:06]MH_I2C_Read... [18:03:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:03:06]Read from MH i2c: E2 [18:03:06]MH_I2C_Read... [18:03:06]Read from MH i2c: E2 0B 00 [18:03:06]MH_I2C_Read... [18:03:06]Read from MH i2c: E2 0B 00 91 14 00 61 58 16 CF 3F 78 6E 96 90 00 7A [18:03:06]RAPDU: 61 58 16 CF 3F 78 6E 96 90 00 [18:03:06]wFMCommunicate OK [18:03:06]SAM_PROTO_SignData done [18:03:06]FM_MakeSignedData done [18:03:06]CreateOFDProtocolMessage [18:03:06]wFMCommunicate request_size=4 [18:03:06]MH_SAM_APDU [18:03:06]CAPDU: 80 11 00 00 [18:03:06]Write to MH i2c: E2 08 00 92 14 80 11 00 00 00 00 00 00 20 [18:03:06]Write i2c OK [18:03:06]MH_I2C_Read... [18:03:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:06]Read from MH i2c: E2 [18:03:06]MH_I2C_Read... [18:03:06]Read from MH i2c: E2 17 00 [18:03:06]MH_I2C_Read... [18:03:06]Read from MH i2c: E2 17 00 92 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 77 [18:03:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:03:06]wFMCommunicate OK [18:03:06]CreateOFDProtocolMessage done [18:03:06]OFDSenderStorePacket 227566 [18:03:06]StoreOFDPacket docnum=227566 [18:03:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 23 61 04 01 01 28 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 01 00 00 F4 03 04 00 DA 45 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EE 78 03 00 35 04 06 00 D4 C0 A5 4E C7 52 61 58 16 CF 3F 78 6E 96 [18:03:06]CheckFolder [18:03:06]dirname=/storage/ofd_packets [18:03:06]CheckFolder done [18:03:06]ProducePacketName [18:03:06]name=ofd_packets/00227566 [18:03:06]NVStorageSaveData ofd_packets/00227566 [18:03:06]File name is /storage/ofd_packets/00227566 [18:03:06]Write 298 bytes [18:03:06]NVStorageSaveData done [18:03:06]OFDSenderStorePacket done [18:03:06]KKMCreateOFDPacket done [18:03:06]NVStorageSaveData kkm_last_timestamp [18:03:06]File name is /storage/kkm_last_timestamp [18:03:06]Write 4 bytes [18:03:06]NVStorageSaveData done [18:03:06]ExternCall_PrintAddStr [18:03:06]wPrintStart [18:03:06]Write to MH i2c: 01 00 00 93 14 A7 [18:03:06]Write i2c OK [18:03:06]MH_I2C_Read... [18:03:06]Read from MH i2c: 01 [18:03:06]MH_I2C_Read... [18:03:06]Read from MH i2c: 01 07 00 [18:03:06]MH_I2C_Read... [18:03:06]Read from MH i2c: 01 07 00 93 14 00 00 00 00 00 FF 0F BC [18:03:06]RasterBufferAndPrint [18:03:06]line Счет N : (1)1963202 [18:03:06]line ИНН: 02508201610067 [18:03:06]line Контрольно-Кассовый Чек [18:03:06]line ПРОДАЖА [18:03:06]line ТРК (МРК, ГНК) : 21 [18:03:06]line Товар: 2710194210 [18:03:06]line ДТ-К-5 [18:03:06]line 26.250 * 76.20 [18:03:06]line = 2000.25 [18:03:06]line НДС 12% НСП 1% [18:03:06]line > о реализуемом товаре [18:03:06]line ОКРУГЛЕНИЕ: -0.25 [18:03:06]line ИТОГО: 2000.00 [18:03:06]line Внесено: 2000.00 [18:03:06]line СДАЧА: 0.00 [18:03:06]line НСП 1% : 17.70 [18:03:06]line НДС 12% : 212.42 [18:03:06]line Наличными: 2000.00 [18:03:06]line Безнал.: 0.00 [18:03:06]line Место: АЗС № 133 "Партнер Нефть" [18:03:06]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:03:06]line СНО: Общий режим [18:03:06]line Чек 414 20.10.2024 18:03 [18:03:06]line Смена: 533 ФФД: 1.0 [18:03:06]line ЗНМ: 0300000091 [18:03:06]line РНМ: 0000000000091685 [18:03:06]line Версия ККМ: 001 [18:03:06]line ФМ: 0000000000871839 [18:03:06]line ФД: 227566 [18:03:06]line ФПД: 233923872212818 [18:03:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T180306&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227566&fm=233923872212818&tin=02508201610067®Number=0000000000091685&sum=200000 [18:03:06]OFD Sender: Processing packet 227566 [packets to send 38, broken 37] [18:03:06]ProducePacketName [18:03:06]name=ofd_packets/00227566 [18:03:06]OFD Sender: To server: pG, [18:03:06]CommunicateWithHost lk.salyk.kg:30040 [18:03:06]ConnectInit lk.salyk.kg [18:03:06]written 0, free lines is 4095 [18:03:06]Connected sock=10 [18:03: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 33 39 0C 01 00 00 23 61 04 01 01 28 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 01 00 00 F4 03 04 00 DA 45 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EE 78 03 00 35 04 06 00 D4 C0 A5 4E C7 52 61 58 16 CF 3F 78 6E 96 [18:03: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 33 39 4F 00 00 00 1F 54 47 00 57 DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EE 78 03 00 F4 03 04 00 D8 F0 14 67 B6 04 01 00 00 7F CA 92 A7 73 33 C0 43 [18:03:06]CommunicateWithHost err = 0 [18:03:06]CheckOFDResponse [18:03:06]1017 (14) - 77093643461234 [18:03:06]1041 (16) - 0000000000871839 [18:03:06]1040 (4) - 227566 [18:03:06]1012 (4) - 20.10.2024 12:00 [18:03:06]1206 (1) - 0 [18:03:06]OFD Sender: Remove packet 227566 [18:03:06]ProducePacketName [18:03:06]name=ofd_packets/00227566 [18:03:06]NVStorageDeleteData [18:03:06]Write to MH i2c: 01 00 00 BD 14 D1 [18:03:06]Write i2c OK [18:03:06]MH_I2C_Read... [18:03:06]Read from MH i2c: 01 [18:03:06]MH_I2C_Read... [18:03:06]Read from MH i2c: 01 07 00 [18:03:06]MH_I2C_Read... [18:03:06]Read from MH i2c: 01 07 00 BD 14 00 00 00 00 00 02 0D E7 [18:03:06]RasterBufferAndPrint [18:03:06]line [18:03:06]line [18:03:06]line [18:03:06]line [18:03:06]line [18:03:06]written 0, free lines is 3336 [18:03:06]process_action close_receipt done [18:03:06]requested_data is exist [18:03:06]produce_requested_data [18:03:06]requested_item fm.sn is exist - process it [18:03:06]wFMCommunicate request_size=4 [18:03:06]MH_SAM_APDU [18:03:06]CAPDU: 80 11 00 00 [18:03:06]Write to MH i2c: E2 08 00 C4 14 80 11 00 00 00 00 00 00 52 [18:03:06]Write i2c OK [18:03:06]MH_I2C_Read... [18:03:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:06]Read from MH i2c: E2 [18:03:06]MH_I2C_Read... [18:03:06]Read from MH i2c: E2 17 00 [18:03:06]MH_I2C_Read... [18:03:06]Read from MH i2c: E2 17 00 C4 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A9 [18:03:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:03:06]wFMCommunicate OK [18:03:06]requested_item fd.num is exist - process it [18:03:06]SAM_PROTO_GetFieldsCounters [18:03:06]wFMCommunicate request_size=4 [18:03:06]MH_SAM_APDU [18:03:06]CAPDU: 80 13 00 00 [18:03:06]Write to MH i2c: E2 08 00 C5 14 80 13 00 00 00 00 00 00 55 [18:03:06]Write i2c OK [18:03:06]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 C5 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 EE 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 9E 01 00 00 5E 04 04 00 9E 01 00 00 57 04 04 00 9F 01 00 00 19 04 04 00 00 00 00 00 90 00 DB [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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 EE 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 9E 01 00 00 5E 04 04 00 9E 01 00 00 57 04 04 00 9F 01 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 C6 14 80 13 01 00 00 00 00 00 57 [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 C6 14 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 71 [18:03:07]RAPDU: 09 00 01 46 4D 14 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":"0000000000871839","fd.num":227566,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [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":"0000000000871839","fd.num":227566,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [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 9.Close socket [18:03:07]Sock 9.Thread stoped [18:03:07]OFD Sender: No OFD packet to send [18:03:12]OFD Sender: No OFD packet to send [18:03:17]OFD Sender: No OFD packet to send [18:03:22]OFD Sender: No OFD packet to send [18:03:27]OFD Sender: No OFD packet to send [18:03:32]OFD Sender: No OFD packet to send [18:03:37]OFD Sender: No OFD packet to send [18:03:42]OFD Sender: No OFD packet to send [18:03:43]accept exits with 7 [18:03:43]New connection [18:03:43]New thread 3067362660 created [18:03:43]Thread 3067219300 joined [18:03:43]Waiting for new connection... [18:03:43] Sock 7.Parse request [18:03:43]Sock 7.Check first char [18:03:43]Sock 7.First char is OK [18:03:43]request: POST /json_proto HTTP/1.0 [18:03:43]Method: POST [18:03:43]URL: /json_proto [18:03:43]Method is POST - this is cgi request [18:03:43]url: /json_proto [18:03:43]query_string will be loaded in cgi processing [18:03:43]execute_cgi json_proto POST (null) [18:03:43]execute_cgi path=json_proto method=POST [18:03:43]POST find Content-Length [18:03:43]Host: 172.17.44.195:8080 [18:03:43]Content-Length: 660 [18:03:43]Content-Type: application/json [18:03:43] [18:03:43]POST finish read [18:03:43]Found Content-Length = 660 [18:03:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963204", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 10.820, "sum" : 740.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 740.00, "total" : 740.00, "payments": [ { "type": 0, "sum" : 740.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:43]execute_script... [18:03: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)1963204", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 10.820, "sum" : 740.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 740.00, "total" : 740.00, "payments": [ { "type": 0, "sum" : 740.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:43]POST & json_proto [18:03:43]process_json_proto [18:03:43]json parsed OK: [18:03:43]protocol is kg_v1.0 [18:03:43]action value=close_receipt [18:03:43]process_action close_receipt [18:03:43]cmd_close_receipt [18:03:43]MH_GetDate [18:03:43]Write to MH i2c: F0 00 00 C7 14 CA [18:03:43]Write i2c OK [18:03:43]MH_I2C_Read... [18:03:43]Read from MH i2c: F0 [18:03:43]MH_I2C_Read... [18:03:43]Read from MH i2c: F0 09 00 [18:03:43]MH_I2C_Read... [18:03:43]Read from MH i2c: F0 09 00 C7 14 00 00 46 15 67 82 C9 CF 66 15 [18:03:43]GetLastDocTimeStamp 1729447386 [18:03:43]current date 1729447424 [18:03:43]FM_GetShiftState [18:03:43]SAM_PROTO_GetShiftState [18:03:43]wFMCommunicate request_size=4 [18:03:43]MH_SAM_APDU [18:03:43]CAPDU: 80 13 01 00 [18:03:43]Write to MH i2c: E2 08 00 C8 14 80 13 01 00 00 00 00 00 59 [18:03:43]Write i2c OK [18:03:43]MH_I2C_Read... [18:03:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:43]Read from MH i2c: E2 [18:03:43]MH_I2C_Read... [18:03:43]Read from MH i2c: E2 0E 00 [18:03:43]MH_I2C_Read... [18:03:43]Read from MH i2c: E2 0E 00 C8 14 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 73 [18:03:43]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:03:43]wFMCommunicate OK [18:03:43]SAM_PROTO_GetShiftState done [18:03:43]FM_GetShiftState done [18:03:43]opened in 1729383750 [18:03:43]opened+sec_in_day 1729470150 [18:03:43]quantity*price = 74008 [18:03:43]sum+1 = 74010 [18:03:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 740.00 Внесено: 740.00 СДАЧА: 0.00 НСП 1% : 6.55 НДС 12% : 78.59 Наличными: 740.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 415 20.10.2024 18:03 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227567 ФПД: 67965764520100 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T180344&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227567&fm=67965764520100&tin=02508201610067®Number=0000000000091685&sum=74000 [18:03:44]StoreToDocumentArchive [18:03:44]shift 533 fd 227567 [18:03:44]save to /storage/0533/doc_00227567 [18:03:44]save last doc name /storage/0533/doc_00227567 to /storage/kkm_last_doc_name [18:03:44]save OK [18:03:44]Clear old archive folders... [18:03:44]ProcessDocumentItem done err = 0, tmpTLVsize=244 [18:03:44]tlvbuf is 00E0C630 [18:03:44]SAM_PROTO_ClearQueue [18:03:44]wFMCommunicate request_size=4 [18:03:44]MH_SAM_APDU [18:03:44]CAPDU: 80 09 00 00 [18:03:44]Write to MH i2c: E2 08 00 D5 14 80 09 00 00 00 00 00 00 5B [18:03:44]Write i2c OK [18:03:44]MH_I2C_Read... [18:03:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:03:44]Read from MH i2c: E2 [18:03:44]MH_I2C_Read... [18:03:44]Read from MH i2c: E2 03 00 [18:03:44]MH_I2C_Read... [18:03:44]Read from MH i2c: E2 03 00 D5 14 00 90 00 5D [18:03:44]RAPDU: 90 00 [18:03:44]wFMCommunicate OK [18:03:44]SAM_PROTO_ClearQueue done [18:03:44]KKMCreateOFDPacket [18:03:44]OFDProtocolAddRootSTLVToBuf [18:03:44]FM_MakeSignedData [18:03:44]FM_MakeSignedData [18:03:44]SAM_PROTO_SignData [18:03:44]wFMCommunicate request_size=4 [18:03:44]MH_SAM_APDU [18:03:44]CAPDU: 80 0D 01 02 [18:03:44]Write to MH i2c: E2 08 00 D6 14 80 0D 01 02 00 00 00 00 63 [18:03:44]Write i2c OK [18:03:44]MH_I2C_Read... [18:03:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:03:44]Read from MH i2c: E2 [18:03:44]MH_I2C_Read... [18:03:44]Read from MH i2c: E2 03 00 [18:03:44]MH_I2C_Read... [18:03:44]Read from MH i2c: E2 03 00 D6 14 00 90 00 5E [18:03:44]RAPDU: 90 00 [18:03:44]wFMCommunicate OK [18:03:44]wFMCommunicate request_size=253 [18:03:44]MH_SAM_APDU [18:03:44]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 44 2A 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 19 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 1E 00 00 00 00 07 04 06 00 10 21 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 01 00 00 F4 03 04 00 00 46 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EF 78 03 00 35 04 06 00 3D D0 83 40 48 A4 [18:03:44]Write to MH i2c: E2 00 01 D7 14 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 44 2A 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 19 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 1E 00 00 00 00 07 04 06 00 10 21 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 01 00 00 F4 03 04 00 00 46 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EF 78 03 00 35 04 06 00 3D D0 83 40 48 A4 00 00 03 [18:03:44]Write i2c OK [18:03:44]MH_I2C_Read... [18:03:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:44]Read from MH i2c: E2 [18:03:44]MH_I2C_Read... [18:03:44]Read from MH i2c: E2 03 00 [18:03:44]MH_I2C_Read... [18:03:44]Read from MH i2c: E2 03 00 D7 14 00 90 00 5F [18:03:44]RAPDU: 90 00 [18:03:44]wFMCommunicate OK [18:03:44]wFMCommunicate request_size=4 [18:03:44]MH_SAM_APDU [18:03:44]CAPDU: 80 0D 03 02 [18:03:44]Write to MH i2c: E2 08 00 D8 14 80 0D 03 02 00 00 00 00 67 [18:03:44]Write i2c OK [18:03:44]MH_I2C_Read... [18:03:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:03:44]Read from MH i2c: E2 [18:03:44]MH_I2C_Read... [18:03:44]Read from MH i2c: E2 0B 00 [18:03:44]MH_I2C_Read... [18:03:44]Read from MH i2c: E2 0B 00 D8 14 00 A9 48 05 AF 10 91 42 F7 90 00 E7 [18:03:44]RAPDU: A9 48 05 AF 10 91 42 F7 90 00 [18:03:44]wFMCommunicate OK [18:03:44]SAM_PROTO_SignData done [18:03:44]FM_MakeSignedData done [18:03:44]CreateOFDProtocolMessage [18:03:44]wFMCommunicate request_size=4 [18:03:44]MH_SAM_APDU [18:03:44]CAPDU: 80 11 00 00 [18:03:44]Write to MH i2c: E2 08 00 D9 14 80 11 00 00 00 00 00 00 67 [18:03:44]Write i2c OK [18:03:44]MH_I2C_Read... [18:03:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:44]Read from MH i2c: E2 [18:03:44]MH_I2C_Read... [18:03:44]Read from MH i2c: E2 17 00 [18:03:44]MH_I2C_Read... [18:03:44]Read from MH i2c: E2 17 00 D9 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 BE [18:03:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:03:44]wFMCommunicate OK [18:03:44]CreateOFDProtocolMessage done [18:03:44]OFDSenderStorePacket 227567 [18:03:44]StoreOFDPacket docnum=227567 [18:03:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 04 18 00 01 E7 40 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 44 2A 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 19 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 1E 00 00 00 00 07 04 06 00 10 21 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 01 00 00 F4 03 04 00 00 46 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EF 78 03 00 35 04 06 00 3D D0 83 40 48 A4 A9 48 05 AF 10 91 42 F7 [18:03:44]CheckFolder [18:03:44]dirname=/storage/ofd_packets [18:03:44]CheckFolder done [18:03:44]ProducePacketName [18:03:44]name=ofd_packets/00227567 [18:03:44]NVStorageSaveData ofd_packets/00227567 [18:03:44]File name is /storage/ofd_packets/00227567 [18:03:44]Write 294 bytes [18:03:44]NVStorageSaveData done [18:03:44]OFDSenderStorePacket done [18:03:44]KKMCreateOFDPacket done [18:03:44]NVStorageSaveData kkm_last_timestamp [18:03:44]File name is /storage/kkm_last_timestamp [18:03:44]Write 4 bytes [18:03:44]NVStorageSaveData done [18:03:44]ExternCall_PrintAddStr [18:03:44]wPrintStart [18:03:44]Write to MH i2c: 01 00 00 DA 14 EE [18:03:44]Write i2c OK [18:03:44]MH_I2C_Read... [18:03:44]Read from MH i2c: 01 [18:03:44]MH_I2C_Read... [18:03:44]Read from MH i2c: 01 07 00 [18:03:44]MH_I2C_Read... [18:03:44]Read from MH i2c: 01 07 00 DA 14 00 00 00 00 00 FF 0F 03 [18:03:44]RasterBufferAndPrint [18:03:44]line Счет N : (1)1963204 [18:03:44]line ИНН: 02508201610067 [18:03:44]line Контрольно-Кассовый Чек [18:03:44]line ПРОДАЖА [18:03:44]line ТРК (МРК, ГНК) : 42 [18:03:44]line Товар: 2710124130 [18:03:44]line SU-92 [18:03:44]line 10.820 * 68.40 [18:03:44]line = 740.09 [18:03:44]line НДС 12% НСП 1% [18:03:44]line > о реализуемом товаре [18:03:44]line ОКРУГЛЕНИЕ: -0.09 [18:03:44]line ИТОГО: 740.00 [18:03:44]line Внесено: 740.00 [18:03:44]line СДАЧА: 0.00 [18:03:44]line НСП 1% : 6.55 [18:03:44]line НДС 12% : 78.59 [18:03:44]line Наличными: 740.00 [18:03:44]line Безнал.: 0.00 [18:03:44]line Место: АЗС № 133 "Партнер Нефть" [18:03:44]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:03:44]line СНО: Общий режим [18:03:44]line Чек 415 20.10.2024 18:03 [18:03:44]line Смена: 533 ФФД: 1.0 [18:03:44]line ЗНМ: 0300000091 [18:03:44]line РНМ: 0000000000091685 [18:03:44]line Версия ККМ: 001 [18:03:44]line ФМ: 0000000000871839 [18:03:44]line ФД: 227567 [18:03:44]line ФПД: 67965764520100 [18:03:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T180344&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227567&fm=67965764520100&tin=02508201610067®Number=0000000000091685&sum=74000 [18:03:44]OFD Sender: Processing packet 227567 [packets to send 38, broken 37] [18:03:44]ProducePacketName [18:03:44]name=ofd_packets/00227567 [18:03:44]OFD Sender: To server: pG, [18:03:44]CommunicateWithHost lk.salyk.kg:30040 [18:03:44]ConnectInit lk.salyk.kg [18:03:44]written 0, free lines is 4095 [18:03:45]Connected sock=10 [18:03:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 04 18 00 01 E7 40 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 44 2A 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 19 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 1E 00 00 00 00 07 04 06 00 10 21 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 01 00 00 F4 03 04 00 00 46 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 EF 78 03 00 35 04 06 00 3D D0 83 40 48 A4 A9 48 05 AF 10 91 42 F7 [18:03:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 16 D9 47 00 61 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 33 39 10 04 04 00 EF 78 03 00 F4 03 04 00 FE F0 14 67 B6 04 01 00 00 9E F8 0A 20 32 61 5F 97 [18:03:45]CommunicateWithHost err = 0 [18:03:45]CheckOFDResponse [18:03:45]1017 (14) - 77093643461234 [18:03:45]1041 (16) - 0000000000871839 [18:03:45]1040 (4) - 227567 [18:03:45]1012 (4) - 20.10.2024 12:01 [18:03:45]1206 (1) - 0 [18:03:45]OFD Sender: Remove packet 227567 [18:03:45]ProducePacketName [18:03:45]name=ofd_packets/00227567 [18:03:45]NVStorageDeleteData [18:03:45]Write to MH i2c: 01 00 00 04 15 19 [18:03:45]Write i2c OK [18:03:45]MH_I2C_Read... [18:03:45]Read from MH i2c: 01 [18:03:45]MH_I2C_Read... [18:03:45]Read from MH i2c: 01 07 00 [18:03:45]MH_I2C_Read... [18:03:45]Read from MH i2c: 01 07 00 04 15 00 00 00 00 00 FD 0C 29 [18:03:45]RasterBufferAndPrint [18:03:45]line [18:03:45]line [18:03:45]line [18:03:45]line [18:03:45]line [18:03:45]written 0, free lines is 3331 [18:03:45]process_action close_receipt done [18:03:45]requested_data is exist [18:03:45]produce_requested_data [18:03:45]requested_item fm.sn is exist - process it [18:03:45]wFMCommunicate request_size=4 [18:03:45]MH_SAM_APDU [18:03:45]CAPDU: 80 11 00 00 [18:03:45]Write to MH i2c: E2 08 00 0B 15 80 11 00 00 00 00 00 00 9A [18:03:45]Write i2c OK [18:03:45]MH_I2C_Read... [18:03:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:45]Read from MH i2c: E2 [18:03:45]MH_I2C_Read... [18:03:45]Read from MH i2c: E2 17 00 [18:03:45]MH_I2C_Read... [18:03:45]Read from MH i2c: E2 17 00 0B 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F1 [18:03:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:03:45]wFMCommunicate OK [18:03:45]requested_item fd.num is exist - process it [18:03:45]SAM_PROTO_GetFieldsCounters [18:03:45]wFMCommunicate request_size=4 [18:03:45]MH_SAM_APDU [18:03:45]CAPDU: 80 13 00 00 [18:03:45]Write to MH i2c: E2 08 00 0C 15 80 13 00 00 00 00 00 00 9D [18:03:45]Write i2c OK [18:03:45]MH_I2C_Read... [18:03:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:03:45]Read from MH i2c: E2 [18:03:45]MH_I2C_Read... [18:03:45]Read from MH i2c: E2 62 00 [18:03:45]MH_I2C_Read... [18:03:45]Read from MH i2c: E2 62 00 0C 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 EF 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 9F 01 00 00 5E 04 04 00 9F 01 00 00 57 04 04 00 A0 01 00 00 19 04 04 00 00 00 00 00 90 00 27 [18:03: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 EF 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 9F 01 00 00 5E 04 04 00 9F 01 00 00 57 04 04 00 A0 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:03:45]wFMCommunicate OK [18:03:45]SAM_PROTO_GetFieldsCounters done [18:03:45]requested_item shift.num is exist - process it [18:03:45]requested_item shift.opened is exist - process it [18:03:45]req_shift_opened [18:03:45]FM_GetShiftState [18:03:45]SAM_PROTO_GetShiftState [18:03:45]wFMCommunicate request_size=4 [18:03:45]MH_SAM_APDU [18:03:45]CAPDU: 80 13 01 00 [18:03:45]Write to MH i2c: E2 08 00 0D 15 80 13 01 00 00 00 00 00 9F [18:03:45]Write i2c OK [18:03:45]MH_I2C_Read... [18:03:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:45]Read from MH i2c: E2 [18:03:45]MH_I2C_Read... [18:03:45]Read from MH i2c: E2 0E 00 [18:03:45]MH_I2C_Read... [18:03:45]Read from MH i2c: E2 0E 00 0D 15 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 B9 [18:03:45]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:03:45]wFMCommunicate OK [18:03:45]SAM_PROTO_GetShiftState done [18:03:45]FM_GetShiftState done [18:03:45]req_shift_opened done [18:03:45]requested_item shift.open_date is exist - process it [18:03:45]req_shift_open_date [18:03:45]req_shift_open_date done [18:03:45]produce_requested_data done [18:03:45]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227567,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [18:03:45]process_action_free close_receipt [18:03:45]json_value_free [18:03:45]json_value_free done [18:03:45]process_json_proto returns [18:03:45]Send response to host [18:03:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227567,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [18:03:45]free response buf [18:03:45]execute_script done [18:03:45]execute_script returns [18:03:45]free content buf [18:03:45]Sock 7.Close socket [18:03:45]Sock 7.Thread stoped [18:03:45]OFD Sender: No OFD packet to send [18:03:50]OFD Sender: No OFD packet to send [18:03:53]accept exits with 9 [18:03:53]New connection [18:03:53]New thread 3067219300 created [18:03:53]Thread 3067362660 joined [18:03:53]Waiting for new connection... [18:03:53] Sock 9.Parse request [18:03:53]Sock 9.Check first char [18:03:53]Sock 9.First char is OK [18:03:53]request: POST /json_proto HTTP/1.0 [18:03:53]Method: POST [18:03:53]URL: /json_proto [18:03:53]Method is POST - this is cgi request [18:03:53]url: /json_proto [18:03:53]query_string will be loaded in cgi processing [18:03:53]execute_cgi json_proto POST (null) [18:03:53]execute_cgi path=json_proto method=POST [18:03:53]POST find Content-Length [18:03:53]Host: 172.17.44.195:8080 [18:03:53]Content-Length: 683 [18:03:53]Content-Type: application/json [18:03:53] [18:03:53]POST finish read [18:03:53]Found Content-Length = 683 [18:03:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963203", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:53]execute_script... [18:03: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)1963203", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:53]POST & json_proto [18:03:53]process_json_proto [18:03:53]json parsed OK: [18:03:53]protocol is kg_v1.0 [18:03:53]action value=close_receipt [18:03:53]process_action close_receipt [18:03:53]cmd_close_receipt [18:03:53]MH_GetDate [18:03:53]Write to MH i2c: F0 00 00 0E 15 12 [18:03:53]Write i2c OK [18:03:53]MH_I2C_Read... [18:03:53]Read from MH i2c: F0 [18:03:53]MH_I2C_Read... [18:03:53]Read from MH i2c: F0 09 00 [18:03:53]MH_I2C_Read... [18:03:53]Read from MH i2c: F0 09 00 0E 15 00 0B 46 15 67 82 C9 CF 66 68 [18:03:53]GetLastDocTimeStamp 1729447424 [18:03:53]current date 1729447435 [18:03:53]FM_GetShiftState [18:03:53]SAM_PROTO_GetShiftState [18:03:53]wFMCommunicate request_size=4 [18:03:53]MH_SAM_APDU [18:03:53]CAPDU: 80 13 01 00 [18:03:53]Write to MH i2c: E2 08 00 0F 15 80 13 01 00 00 00 00 00 A1 [18:03:53]Write i2c OK [18:03:53]MH_I2C_Read... [18:03:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:54]Read from MH i2c: E2 [18:03:54]MH_I2C_Read... [18:03:54]Read from MH i2c: E2 0E 00 [18:03:54]MH_I2C_Read... [18:03:54]Read from MH i2c: E2 0E 00 0F 15 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 BB [18:03:54]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:03:54]wFMCommunicate OK [18:03:54]SAM_PROTO_GetShiftState done [18:03:54]FM_GetShiftState done [18:03:54]opened in 1729383750 [18:03:54]opened+sec_in_day 1729470150 [18:03:54]quantity*price = 150056 [18:03:54]sum+1 = 150058 [18:03:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 416 20.10.2024 18:03 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227568 ФПД: 278907115978782 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T180355&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227568&fm=278907115978782&tin=02508201610067®Number=0000000000091685&sum=150000 [18:03:55]StoreToDocumentArchive [18:03:55]shift 533 fd 227568 [18:03:55]save to /storage/0533/doc_00227568 [18:03:55]save last doc name /storage/0533/doc_00227568 to /storage/kkm_last_doc_name [18:03:55]save OK [18:03:55]Clear old archive folders... [18:03:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:03:55]tlvbuf is B6FBCA70 [18:03:55]SAM_PROTO_ClearQueue [18:03:55]wFMCommunicate request_size=4 [18:03:55]MH_SAM_APDU [18:03:55]CAPDU: 80 09 00 00 [18:03:55]Write to MH i2c: E2 08 00 1C 15 80 09 00 00 00 00 00 00 A3 [18:03:55]Write i2c OK [18:03:55]MH_I2C_Read... [18:03:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:03:55]Read from MH i2c: E2 [18:03:55]MH_I2C_Read... [18:03:55]Read from MH i2c: E2 03 00 [18:03:55]MH_I2C_Read... [18:03:55]Read from MH i2c: E2 03 00 1C 15 00 90 00 A5 [18:03:55]RAPDU: 90 00 [18:03:55]wFMCommunicate OK [18:03:55]SAM_PROTO_ClearQueue done [18:03:55]KKMCreateOFDPacket [18:03:55]OFDProtocolAddRootSTLVToBuf [18:03:55]FM_MakeSignedData [18:03:55]FM_MakeSignedData [18:03:55]SAM_PROTO_SignData [18:03:55]wFMCommunicate request_size=4 [18:03:55]MH_SAM_APDU [18:03:55]CAPDU: 80 0D 01 02 [18:03:55]Write to MH i2c: E2 08 00 1D 15 80 0D 01 02 00 00 00 00 AB [18:03:55]Write i2c OK [18:03:55]MH_I2C_Read... [18:03:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:03:55]Read from MH i2c: E2 [18:03:55]MH_I2C_Read... [18:03:55]Read from MH i2c: E2 03 00 [18:03:55]MH_I2C_Read... [18:03:55]Read from MH i2c: E2 03 00 1D 15 00 90 00 A6 [18:03:55]RAPDU: 90 00 [18:03:55]wFMCommunicate OK [18:03:55]wFMCommunicate request_size=255 [18:03:55]MH_SAM_APDU [18:03:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 01 00 00 F4 03 04 00 0B 46 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F0 78 03 00 35 04 06 00 FD [18:03:55]Write to MH i2c: E2 02 01 1E 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 01 00 00 F4 03 04 00 0B 46 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F0 78 03 00 35 04 06 00 FD 00 00 78 [18:03:55]Write i2c OK [18:03:55]MH_I2C_Read... [18:03:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:55]Read from MH i2c: E2 [18:03:55]MH_I2C_Read... [18:03:55]Read from MH i2c: E2 03 00 [18:03:55]MH_I2C_Read... [18:03:55]Read from MH i2c: E2 03 00 1E 15 00 90 00 A7 [18:03:55]RAPDU: 90 00 [18:03:55]wFMCommunicate OK [18:03:55]wFMCommunicate request_size=10 [18:03:55]MH_SAM_APDU [18:03:55]CAPDU: 80 0D 02 02 05 AA 1F 92 C0 1E [18:03:55]Write to MH i2c: E2 0D 00 1F 15 80 0D 02 02 05 00 AA 1F 92 C0 1E 00 00 F1 [18:03:55]Write i2c OK [18:03:55]MH_I2C_Read... [18:03:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:55]Read from MH i2c: E2 [18:03:55]MH_I2C_Read... [18:03:55]Read from MH i2c: E2 03 00 [18:03:55]MH_I2C_Read... [18:03:55]Read from MH i2c: E2 03 00 1F 15 00 90 00 A8 [18:03:55]RAPDU: 90 00 [18:03:55]wFMCommunicate OK [18:03:55]wFMCommunicate request_size=4 [18:03:55]MH_SAM_APDU [18:03:55]CAPDU: 80 0D 03 02 [18:03:55]Write to MH i2c: E2 08 00 20 15 80 0D 03 02 00 00 00 00 B0 [18:03:55]Write i2c OK [18:03:55]MH_I2C_Read... [18:03:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:03:55]Read from MH i2c: E2 [18:03:55]MH_I2C_Read... [18:03:55]Read from MH i2c: E2 0B 00 [18:03:55]MH_I2C_Read... [18:03:55]Read from MH i2c: E2 0B 00 20 15 00 47 69 F5 53 A7 63 1C E5 90 00 B4 [18:03:55]RAPDU: 47 69 F5 53 A7 63 1C E5 90 00 [18:03:55]wFMCommunicate OK [18:03:55]SAM_PROTO_SignData done [18:03:55]FM_MakeSignedData done [18:03:55]CreateOFDProtocolMessage [18:03:55]wFMCommunicate request_size=4 [18:03:55]MH_SAM_APDU [18:03:55]CAPDU: 80 11 00 00 [18:03:55]Write to MH i2c: E2 08 00 21 15 80 11 00 00 00 00 00 00 B0 [18:03:55]Write i2c OK [18:03:55]MH_I2C_Read... [18:03:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:55]Read from MH i2c: E2 [18:03:55]MH_I2C_Read... [18:03:55]Read from MH i2c: E2 17 00 [18:03:55]MH_I2C_Read... [18:03:55]Read from MH i2c: E2 17 00 21 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 07 [18:03:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:03:55]wFMCommunicate OK [18:03:55]CreateOFDProtocolMessage done [18:03:55]OFDSenderStorePacket 227568 [18:03:55]StoreOFDPacket docnum=227568 [18:03:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 A7 0D 07 01 DD FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 01 00 00 F4 03 04 00 0B 46 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F0 78 03 00 35 04 06 00 FD AA 1F 92 C0 1E 47 69 F5 53 A7 63 1C E5 [18:03:55]CheckFolder [18:03:55]dirname=/storage/ofd_packets [18:03:55]CheckFolder done [18:03:55]ProducePacketName [18:03:55]name=ofd_packets/00227568 [18:03:55]NVStorageSaveData ofd_packets/00227568 [18:03:55]File name is /storage/ofd_packets/00227568 [18:03:55]Write 301 bytes [18:03:55]NVStorageSaveData done [18:03:55]OFDSenderStorePacket done [18:03:55]KKMCreateOFDPacket done [18:03:55]NVStorageSaveData kkm_last_timestamp [18:03:55]File name is /storage/kkm_last_timestamp [18:03:55]Write 4 bytes [18:03:55]NVStorageSaveData done [18:03:55]ExternCall_PrintAddStr [18:03:55]wPrintStart [18:03:55]Write to MH i2c: 01 00 00 22 15 37 [18:03:55]Write i2c OK [18:03:55]MH_I2C_Read... [18:03:55]Read from MH i2c: 01 [18:03:55]MH_I2C_Read... [18:03:55]Read from MH i2c: 01 07 00 [18:03:55]MH_I2C_Read... [18:03:55]Read from MH i2c: 01 07 00 22 15 00 00 00 00 00 FF 0F 4C [18:03:55]RasterBufferAndPrint [18:03:55]line Счет N : (1)1963203 [18:03:55]line ИНН: 02508201610067 [18:03:55]line Контрольно-Кассовый Чек [18:03:55]line ПРОДАЖА [18:03:55]line ТРК (МРК, ГНК) : 33 [18:03:55]line Товар: 2710124130 [18:03:55]line Аи-92-К-5 [18:03:55]line 22.430 * 66.90 [18:03:55]line = 1500.57 [18:03:55]line НДС 12% НСП 1% [18:03:55]line > о реализуемом товаре [18:03:55]line ОКРУГЛЕНИЕ: -0.57 [18:03:55]line ИТОГО: 1500.00 [18:03:55]line Внесено: 1500.00 [18:03:55]line СДАЧА: 0.00 [18:03:55]line НСП 1% : 13.28 [18:03:55]line НДС 12% : 159.35 [18:03:55]line Наличными: 1500.00 [18:03:55]line Безнал.: 0.00 [18:03:55]line Место: АЗС № 133 "Партнер Нефть" [18:03:55]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:03:55]line СНО: Общий режим [18:03:55]line Чек 416 20.10.2024 18:03 [18:03:55]line Смена: 533 ФФД: 1.0 [18:03:55]line ЗНМ: 0300000091 [18:03:55]line РНМ: 0000000000091685 [18:03:55]line Версия ККМ: 001 [18:03:55]line ФМ: 0000000000871839 [18:03:55]line ФД: 227568 [18:03:55]line ФПД: 278907115978782 [18:03:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T180355&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227568&fm=278907115978782&tin=02508201610067®Number=0000000000091685&sum=150000 [18:03:56]OFD Sender: Processing packet 227568 [packets to send 38, broken 37] [18:03:56]ProducePacketName [18:03:56]name=ofd_packets/00227568 [18:03:56]OFD Sender: To server: pG, [18:03:56]CommunicateWithHost lk.salyk.kg:30040 [18:03:56]ConnectInit lk.salyk.kg [18:03:56]written 0, free lines is 4095 [18:03:56]Connected sock=10 [18:03:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 A7 0D 07 01 DD FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 01 00 00 F4 03 04 00 0B 46 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F0 78 03 00 35 04 06 00 FD AA 1F 92 C0 1E 47 69 F5 53 A7 63 1C E5 [18:03: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 33 39 4F 00 00 00 98 E0 47 00 56 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 33 39 10 04 04 00 F0 78 03 00 F4 03 04 00 09 F1 14 67 B6 04 01 00 00 E5 07 75 41 6C A8 AB 8D [18:03:56]CommunicateWithHost err = 0 [18:03:56]CheckOFDResponse [18:03:56]1017 (14) - 77093643461234 [18:03:56]1041 (16) - 0000000000871839 [18:03:56]1040 (4) - 227568 [18:03:56]1012 (4) - 20.10.2024 12:01 [18:03:56]1206 (1) - 0 [18:03:56]OFD Sender: Remove packet 227568 [18:03:56]ProducePacketName [18:03:56]name=ofd_packets/00227568 [18:03:56]NVStorageDeleteData [18:03:56]Write to MH i2c: 01 00 00 4C 15 61 [18:03:56]Write i2c OK [18:03:56]MH_I2C_Read... [18:03:56]Read from MH i2c: 01 [18:03:56]MH_I2C_Read... [18:03:56]Read from MH i2c: 01 07 00 [18:03:56]MH_I2C_Read... [18:03:56]Read from MH i2c: 01 07 00 4C 15 00 00 00 00 00 05 0D 7A [18:03:56]RasterBufferAndPrint [18:03:56]line [18:03:56]line [18:03:56]line [18:03:56]line [18:03:56]line [18:03:56]written 0, free lines is 3340 [18:03:56]process_action close_receipt done [18:03:56]requested_data is exist [18:03:56]produce_requested_data [18:03:56]requested_item fm.sn is exist - process it [18:03:56]wFMCommunicate request_size=4 [18:03:56]MH_SAM_APDU [18:03:56]CAPDU: 80 11 00 00 [18:03:56]Write to MH i2c: E2 08 00 53 15 80 11 00 00 00 00 00 00 E2 [18:03:56]Write i2c OK [18:03:56]MH_I2C_Read... [18:03:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:56]Read from MH i2c: E2 [18:03:56]MH_I2C_Read... [18:03:56]Read from MH i2c: E2 17 00 [18:03:56]MH_I2C_Read... [18:03:56]Read from MH i2c: E2 17 00 53 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 39 [18:03:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:03:56]wFMCommunicate OK [18:03:56]requested_item fd.num is exist - process it [18:03:56]SAM_PROTO_GetFieldsCounters [18:03:56]wFMCommunicate request_size=4 [18:03:56]MH_SAM_APDU [18:03:56]CAPDU: 80 13 00 00 [18:03:56]Write to MH i2c: E2 08 00 54 15 80 13 00 00 00 00 00 00 E5 [18:03:56]Write i2c OK [18:03:56]MH_I2C_Read... [18:03:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:03:56]Read from MH i2c: E2 [18:03:56]MH_I2C_Read... [18:03:56]Read from MH i2c: E2 62 00 [18:03:56]MH_I2C_Read... [18:03:56]Read from MH i2c: E2 62 00 54 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F0 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 A0 01 00 00 5E 04 04 00 A0 01 00 00 57 04 04 00 A1 01 00 00 19 04 04 00 00 00 00 00 90 00 73 [18:03: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F0 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 A0 01 00 00 5E 04 04 00 A0 01 00 00 57 04 04 00 A1 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:03:56]wFMCommunicate OK [18:03:56]SAM_PROTO_GetFieldsCounters done [18:03:56]requested_item shift.num is exist - process it [18:03:56]requested_item shift.opened is exist - process it [18:03:56]req_shift_opened [18:03:56]FM_GetShiftState [18:03:56]SAM_PROTO_GetShiftState [18:03:56]wFMCommunicate request_size=4 [18:03:56]MH_SAM_APDU [18:03:56]CAPDU: 80 13 01 00 [18:03:56]Write to MH i2c: E2 08 00 55 15 80 13 01 00 00 00 00 00 E7 [18:03:56]Write i2c OK [18:03:56]MH_I2C_Read... [18:03:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:56]Read from MH i2c: E2 [18:03:56]MH_I2C_Read... [18:03:56]Read from MH i2c: E2 0E 00 [18:03:56]MH_I2C_Read... [18:03:56]Read from MH i2c: E2 0E 00 55 15 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 01 [18:03:56]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:03:56]wFMCommunicate OK [18:03:56]SAM_PROTO_GetShiftState done [18:03:56]FM_GetShiftState done [18:03:56]req_shift_opened done [18:03:56]requested_item shift.open_date is exist - process it [18:03:56]req_shift_open_date [18:03:56]req_shift_open_date done [18:03:56]produce_requested_data done [18:03:56]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227568,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [18:03:56]process_action_free close_receipt [18:03:56]json_value_free [18:03:56]json_value_free done [18:03:56]process_json_proto returns [18:03:56]Send response to host [18:03:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227568,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [18:03:56]free response buf [18:03:56]execute_script done [18:03:56]execute_script returns [18:03:56]free content buf [18:03:56]Sock 9.Close socket [18:03:56]Sock 9.Thread stoped [18:03:56]OFD Sender: No OFD packet to send [18:04:01]OFD Sender: No OFD packet to send [18:04:06]accept exits with 7 [18:04:06]New connection [18:04:06]New thread 3067362660 created [18:04:06]Thread 3067219300 joined [18:04:06]Waiting for new connection... [18:04:06] Sock 7.Parse request [18:04:06]Sock 7.Check first char [18:04:06]Sock 7.First char is OK [18:04:06]request: POST /json_proto HTTP/1.0 [18:04:06]Method: POST [18:04:06]URL: /json_proto [18:04:06]Method is POST - this is cgi request [18:04:06]url: /json_proto [18:04:06]query_string will be loaded in cgi processing [18:04:06]execute_cgi json_proto POST (null) [18:04:06]execute_cgi path=json_proto method=POST [18:04:06]POST find Content-Length [18:04:06]Host: 172.17.44.195:8080 [18:04:06]Content-Length: 678 [18:04:06]Content-Type: application/json [18:04:06] [18:04:06]POST finish read [18:04:06]Found Content-Length = 678 [18:04:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963205", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:04:06]execute_script... [18: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)1963205", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:04:06]POST & json_proto [18:04:06]process_json_proto [18:04:06]json parsed OK: [18:04:06]protocol is kg_v1.0 [18:04:06]action value=close_receipt [18:04:06]process_action close_receipt [18:04:06]cmd_close_receipt [18:04:06]MH_GetDate [18:04:06]Write to MH i2c: F0 00 00 56 15 5A [18:04:06]Write i2c OK [18:04:06]MH_I2C_Read... [18:04:06]Read from MH i2c: F0 [18:04:06]MH_I2C_Read... [18:04:06]Read from MH i2c: F0 09 00 [18:04:06]MH_I2C_Read... [18:04:06]Read from MH i2c: F0 09 00 56 15 00 18 46 15 67 82 C9 CF 66 BD [18:04:06]GetLastDocTimeStamp 1729447435 [18:04:06]current date 1729447448 [18:04:06]FM_GetShiftState [18:04:06]SAM_PROTO_GetShiftState [18:04:06]wFMCommunicate request_size=4 [18:04:06]MH_SAM_APDU [18:04:06]CAPDU: 80 13 01 00 [18:04:06]Write to MH i2c: E2 08 00 57 15 80 13 01 00 00 00 00 00 E9 [18:04:06]Write i2c OK [18:04:06]MH_I2C_Read... [18:04:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:06]Read from MH i2c: E2 [18:04:06]MH_I2C_Read... [18:04:06]Read from MH i2c: E2 0E 00 [18:04:06]MH_I2C_Read... [18:04:06]Read from MH i2c: E2 0E 00 57 15 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 03 [18:04:06]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:04:06]wFMCommunicate OK [18:04:06]SAM_PROTO_GetShiftState done [18:04:06]FM_GetShiftState done [18:04:06]opened in 1729383750 [18:04:06]opened+sec_in_day 1729470150 [18:04:06]quantity*price = 30038 [18:04:06]sum+1 = 30039 [18:04:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 417 20.10.2024 18:04 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227569 ФПД: 51930797382215 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T180408&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227569&fm=51930797382215&tin=02508201610067®Number=0000000000091685&sum=30000 [18:04:07]StoreToDocumentArchive [18:04:07]shift 533 fd 227569 [18:04:07]save to /storage/0533/doc_00227569 [18:04:07]save last doc name /storage/0533/doc_00227569 to /storage/kkm_last_doc_name [18:04:07]save OK [18:04:07]Clear old archive folders... [18:04:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:04:07]tlvbuf is 00DEBF80 [18:04:07]SAM_PROTO_ClearQueue [18:04:07]wFMCommunicate request_size=4 [18:04:07]MH_SAM_APDU [18:04:07]CAPDU: 80 09 00 00 [18:04:07]Write to MH i2c: E2 08 00 64 15 80 09 00 00 00 00 00 00 EB [18:04:07]Write i2c OK [18:04:07]MH_I2C_Read... [18:04:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:04:07]Read from MH i2c: E2 [18:04:07]MH_I2C_Read... [18:04:07]Read from MH i2c: E2 03 00 [18:04:07]MH_I2C_Read... [18:04:07]Read from MH i2c: E2 03 00 64 15 00 90 00 ED [18:04:07]RAPDU: 90 00 [18:04:07]wFMCommunicate OK [18:04:07]SAM_PROTO_ClearQueue done [18:04:07]KKMCreateOFDPacket [18:04:07]OFDProtocolAddRootSTLVToBuf [18:04:07]FM_MakeSignedData [18:04:07]FM_MakeSignedData [18:04:07]SAM_PROTO_SignData [18:04:07]wFMCommunicate request_size=4 [18:04:07]MH_SAM_APDU [18:04:07]CAPDU: 80 0D 01 02 [18:04:07]Write to MH i2c: E2 08 00 65 15 80 0D 01 02 00 00 00 00 F3 [18:04:07]Write i2c OK [18:04:07]MH_I2C_Read... [18:04:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:04:07]Read from MH i2c: E2 [18:04:07]MH_I2C_Read... [18:04:07]Read from MH i2c: E2 03 00 [18:04:07]MH_I2C_Read... [18:04:07]Read from MH i2c: E2 03 00 65 15 00 90 00 EE [18:04:07]RAPDU: 90 00 [18:04:07]wFMCommunicate OK [18:04:07]wFMCommunicate request_size=255 [18:04:07]MH_SAM_APDU [18:04:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 01 00 00 F4 03 04 00 18 46 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F1 78 03 00 35 04 06 00 2F [18:04:07]Write to MH i2c: E2 02 01 66 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 01 00 00 F4 03 04 00 18 46 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F1 78 03 00 35 04 06 00 2F 00 00 AC [18:04:07]Write i2c OK [18:04:07]MH_I2C_Read... [18:04:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:08]Read from MH i2c: E2 [18:04:08]MH_I2C_Read... [18:04:08]Read from MH i2c: E2 03 00 [18:04:08]MH_I2C_Read... [18:04:08]Read from MH i2c: E2 03 00 66 15 00 90 00 EF [18:04:08]RAPDU: 90 00 [18:04:08]wFMCommunicate OK [18:04:08]wFMCommunicate request_size=10 [18:04:08]MH_SAM_APDU [18:04:08]CAPDU: 80 0D 02 02 05 3B 14 BB 1A 47 [18:04:08]Write to MH i2c: E2 0D 00 67 15 80 0D 02 02 05 00 3B 14 BB 1A 47 00 00 6B [18:04:08]Write i2c OK [18:04:08]MH_I2C_Read... [18:04:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:08]Read from MH i2c: E2 [18:04:08]MH_I2C_Read... [18:04:08]Read from MH i2c: E2 03 00 [18:04:08]MH_I2C_Read... [18:04:08]Read from MH i2c: E2 03 00 67 15 00 90 00 F0 [18:04:08]RAPDU: 90 00 [18:04:08]wFMCommunicate OK [18:04:08]wFMCommunicate request_size=4 [18:04:08]MH_SAM_APDU [18:04:08]CAPDU: 80 0D 03 02 [18:04:08]Write to MH i2c: E2 08 00 68 15 80 0D 03 02 00 00 00 00 F8 [18:04:08]Write i2c OK [18:04:08]MH_I2C_Read... [18:04:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:04:08]Read from MH i2c: E2 [18:04:08]MH_I2C_Read... [18:04:08]Read from MH i2c: E2 0B 00 [18:04:08]MH_I2C_Read... [18:04:08]Read from MH i2c: E2 0B 00 68 15 00 A6 36 E4 C0 80 7C 80 6B 90 00 60 [18:04:08]RAPDU: A6 36 E4 C0 80 7C 80 6B 90 00 [18:04:08]wFMCommunicate OK [18:04:08]SAM_PROTO_SignData done [18:04:08]FM_MakeSignedData done [18:04:08]CreateOFDProtocolMessage [18:04:08]wFMCommunicate request_size=4 [18:04:08]MH_SAM_APDU [18:04:08]CAPDU: 80 11 00 00 [18:04:08]Write to MH i2c: E2 08 00 69 15 80 11 00 00 00 00 00 00 F8 [18:04:08]Write i2c OK [18:04:08]MH_I2C_Read... [18:04:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:08]Read from MH i2c: E2 [18:04:08]MH_I2C_Read... [18:04:08]Read from MH i2c: E2 17 00 [18:04:08]MH_I2C_Read... [18:04:08]Read from MH i2c: E2 17 00 69 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 4F [18:04:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:04:08]wFMCommunicate OK [18:04:08]CreateOFDProtocolMessage done [18:04:08]OFDSenderStorePacket 227569 [18:04:08]StoreOFDPacket docnum=227569 [18:04:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 2F 94 07 01 6B 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 01 00 00 F4 03 04 00 18 46 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F1 78 03 00 35 04 06 00 2F 3B 14 BB 1A 47 A6 36 E4 C0 80 7C 80 6B [18:04:08]CheckFolder [18:04:08]dirname=/storage/ofd_packets [18:04:08]CheckFolder done [18:04:08]ProducePacketName [18:04:08]name=ofd_packets/00227569 [18:04:08]NVStorageSaveData ofd_packets/00227569 [18:04:08]File name is /storage/ofd_packets/00227569 [18:04:08]Write 301 bytes [18:04:08]NVStorageSaveData done [18:04:08]OFDSenderStorePacket done [18:04:08]KKMCreateOFDPacket done [18:04:08]NVStorageSaveData kkm_last_timestamp [18:04:08]File name is /storage/kkm_last_timestamp [18:04:08]Write 4 bytes [18:04:08]NVStorageSaveData done [18:04:08]ExternCall_PrintAddStr [18:04:08]wPrintStart [18:04:08]Write to MH i2c: 01 00 00 6A 15 7F [18:04:08]Write i2c OK [18:04:08]MH_I2C_Read... [18:04:08]Read from MH i2c: 01 [18:04:08]MH_I2C_Read... [18:04:08]Read from MH i2c: 01 07 00 [18:04:08]MH_I2C_Read... [18:04:08]Read from MH i2c: 01 07 00 6A 15 00 00 00 00 00 FF 0F 94 [18:04:08]RasterBufferAndPrint [18:04:08]line Счет N : (1)1963205 [18:04:08]line ИНН: 02508201610067 [18:04:08]line Контрольно-Кассовый Чек [18:04:08]line ПРОДАЖА [18:04:08]line ТРК (МРК, ГНК) : 63 [18:04:08]line Товар: 2710124130 [18:04:08]line Аи-92-К-5 [18:04:08]line 4.490 * 66.90 [18:04:08]line = 300.38 [18:04:08]line НДС 12% НСП 1% [18:04:08]line > о реализуемом товаре [18:04:08]line ОКРУГЛЕНИЕ: -0.38 [18:04:08]line ИТОГО: 300.00 [18:04:08]line Внесено: 300.00 [18:04:08]line СДАЧА: 0.00 [18:04:08]line НСП 1% : 2.66 [18:04:08]line НДС 12% : 31.90 [18:04:08]line Наличными: 300.00 [18:04:08]line Безнал.: 0.00 [18:04:08]line Место: АЗС № 133 "Партнер Нефть" [18:04:08]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:04:08]line СНО: Общий режим [18:04:08]line Чек 417 20.10.2024 18:04 [18:04:08]line Смена: 533 ФФД: 1.0 [18:04:08]line ЗНМ: 0300000091 [18:04:08]line РНМ: 0000000000091685 [18:04:08]line Версия ККМ: 001 [18:04:08]line ФМ: 0000000000871839 [18:04:08]line ФД: 227569 [18:04:08]line ФПД: 51930797382215 [18:04:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T180408&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227569&fm=51930797382215&tin=02508201610067®Number=0000000000091685&sum=30000 [18:04:08]written 0, free lines is 4095 [18:04:08]OFD Sender: Processing packet 227569 [packets to send 38, broken 37] [18:04:08]ProducePacketName [18:04:08]name=ofd_packets/00227569 [18:04:08]OFD Sender: To server: pG, [18:04:08]CommunicateWithHost lk.salyk.kg:30040 [18:04:08]ConnectInit lk.salyk.kg [18:04:08]Connected sock=10 [18: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 33 39 0F 01 00 00 2F 94 07 01 6B 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 01 00 00 F4 03 04 00 18 46 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F1 78 03 00 35 04 06 00 2F 3B 14 BB 1A 47 A6 36 E4 C0 80 7C 80 6B [18: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 33 39 4F 00 00 00 69 B7 47 00 3C 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F1 78 03 00 F4 03 04 00 16 F1 14 67 B6 04 01 00 00 EA D3 F1 3F 10 5B 9A 66 [18:04:08]CommunicateWithHost err = 0 [18:04:08]CheckOFDResponse [18:04:08]1017 (14) - 77093643461234 [18:04:08]1041 (16) - 0000000000871839 [18:04:08]1040 (4) - 227569 [18:04:08]1012 (4) - 20.10.2024 12:01 [18:04:08]1206 (1) - 0 [18:04:08]OFD Sender: Remove packet 227569 [18:04:08]ProducePacketName [18:04:08]name=ofd_packets/00227569 [18:04:08]NVStorageDeleteData [18:04:08]Write to MH i2c: 01 00 00 94 15 A9 [18:04:08]Write i2c OK [18:04:08]MH_I2C_Read... [18:04:08]Read from MH i2c: 01 [18:04:08]MH_I2C_Read... [18:04:08]Read from MH i2c: 01 07 00 [18:04:08]MH_I2C_Read... [18:04:08]Read from MH i2c: 01 07 00 94 15 00 00 00 00 00 18 0D D5 [18:04:08]RasterBufferAndPrint [18:04:08]line [18:04:08]line [18:04:08]line [18:04:08]line [18:04:08]line [18:04:08]written 0, free lines is 3362 [18:04:08]process_action close_receipt done [18:04:08]requested_data is exist [18:04:08]produce_requested_data [18:04:08]requested_item fm.sn is exist - process it [18:04:08]wFMCommunicate request_size=4 [18:04:08]MH_SAM_APDU [18:04:08]CAPDU: 80 11 00 00 [18:04:08]Write to MH i2c: E2 08 00 9B 15 80 11 00 00 00 00 00 00 2A [18:04:08]Write i2c OK [18:04:08]MH_I2C_Read... [18:04:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:08]Read from MH i2c: E2 [18:04:08]MH_I2C_Read... [18:04:08]Read from MH i2c: E2 17 00 [18:04:08]MH_I2C_Read... [18:04:08]Read from MH i2c: E2 17 00 9B 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 81 [18:04:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:04:08]wFMCommunicate OK [18:04:08]requested_item fd.num is exist - process it [18:04:08]SAM_PROTO_GetFieldsCounters [18:04:08]wFMCommunicate request_size=4 [18:04:08]MH_SAM_APDU [18:04:08]CAPDU: 80 13 00 00 [18:04:08]Write to MH i2c: E2 08 00 9C 15 80 13 00 00 00 00 00 00 2D [18:04:08]Write i2c OK [18:04:08]MH_I2C_Read... [18:04:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:04:09]Read from MH i2c: E2 [18:04:09]MH_I2C_Read... [18:04:09]Read from MH i2c: E2 62 00 [18:04:09]MH_I2C_Read... [18:04:09]Read from MH i2c: E2 62 00 9C 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F1 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 A1 01 00 00 5E 04 04 00 A1 01 00 00 57 04 04 00 A2 01 00 00 19 04 04 00 00 00 00 00 90 00 BF [18:04: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F1 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 A1 01 00 00 5E 04 04 00 A1 01 00 00 57 04 04 00 A2 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:04:09]wFMCommunicate OK [18:04:09]SAM_PROTO_GetFieldsCounters done [18:04:09]requested_item shift.num is exist - process it [18:04:09]requested_item shift.opened is exist - process it [18:04:09]req_shift_opened [18:04:09]FM_GetShiftState [18:04:09]SAM_PROTO_GetShiftState [18:04:09]wFMCommunicate request_size=4 [18:04:09]MH_SAM_APDU [18:04:09]CAPDU: 80 13 01 00 [18:04:09]Write to MH i2c: E2 08 00 9D 15 80 13 01 00 00 00 00 00 2F [18:04:09]Write i2c OK [18:04:09]MH_I2C_Read... [18:04:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:09]Read from MH i2c: E2 [18:04:09]MH_I2C_Read... [18:04:09]Read from MH i2c: E2 0E 00 [18:04:09]MH_I2C_Read... [18:04:09]Read from MH i2c: E2 0E 00 9D 15 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 49 [18:04:09]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:04:09]wFMCommunicate OK [18:04:09]SAM_PROTO_GetShiftState done [18:04:09]FM_GetShiftState done [18:04:09]req_shift_opened done [18:04:09]requested_item shift.open_date is exist - process it [18:04:09]req_shift_open_date [18:04:09]req_shift_open_date done [18:04:09]produce_requested_data done [18:04:09]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227569,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [18:04:09]process_action_free close_receipt [18:04:09]json_value_free [18:04:09]json_value_free done [18:04:09]process_json_proto returns [18:04:09]Send response to host [18:04:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227569,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [18:04:09]free response buf [18:04:09]execute_script done [18:04:09]execute_script returns [18:04:09]free content buf [18:04:09]Sock 7.Close socket [18:04:09]Sock 7.Thread stoped [18:04:09]OFD Sender: No OFD packet to send [18:04:14]OFD Sender: No OFD packet to send [18:04:19]OFD Sender: No OFD packet to send [18:04:24]OFD Sender: No OFD packet to send [18:04:29]OFD Sender: No OFD packet to send [18:04:34]OFD Sender: No OFD packet to send [18:04:39]OFD Sender: No OFD packet to send [18:04:44]OFD Sender: No OFD packet to send [18:04:49]OFD Sender: No OFD packet to send [18:04:54]OFD Sender: No OFD packet to send [18:04:59]OFD Sender: No OFD packet to send [18:05:04]OFD Sender: No OFD packet to send [18:05:09]OFD Sender: No OFD packet to send [18:05:14]OFD Sender: No OFD packet to send [18:05:19]OFD Sender: No OFD packet to send [18:05:24]OFD Sender: No OFD packet to send [18:05:29]OFD Sender: No OFD packet to send [18:05:34]OFD Sender: No OFD packet to send [18:05:39]OFD Sender: No OFD packet to send [18:05:44]OFD Sender: No OFD packet to send [18:05:49]OFD Sender: No OFD packet to send [18:05:54]OFD Sender: No OFD packet to send [18:05:59]OFD Sender: No OFD packet to send [18:06:04]OFD Sender: No OFD packet to send [18:06:09]OFD Sender: No OFD packet to send [18:06:14]OFD Sender: No OFD packet to send [18:06:19]OFD Sender: No OFD packet to send [18:06:24]OFD Sender: No OFD packet to send [18:06:29]OFD Sender: No OFD packet to send [18:06:34]OFD Sender: No OFD packet to send [18:06:39]OFD Sender: No OFD packet to send [18:06:44]OFD Sender: No OFD packet to send [18:06:49]OFD Sender: No OFD packet to send [18:06:54]OFD Sender: No OFD packet to send [18:06:59]OFD Sender: No OFD packet to send [18:07:04]OFD Sender: No OFD packet to send [18:07:09]accept exits with 9 [18:07:09]New connection [18:07:09]New thread 3067219300 created [18:07:09]Thread 3067362660 joined [18:07:09]Waiting for new connection... [18:07:09] Sock 9.Parse request [18:07:09]Sock 9.Check first char [18:07:09]Sock 9.First char is OK [18:07:09]request: POST /json_proto HTTP/1.0 [18:07:09]Method: POST [18:07:09]URL: /json_proto [18:07:09]Method is POST - this is cgi request [18:07:09]url: /json_proto [18:07:09]query_string will be loaded in cgi processing [18:07:09]execute_cgi json_proto POST (null) [18:07:09]execute_cgi path=json_proto method=POST [18:07:09]POST find Content-Length [18:07:09]Host: 172.17.44.195:8080 [18:07:09]Content-Length: 678 [18:07:09]Content-Type: application/json [18:07:09] [18:07:09]POST finish read [18:07:09]Found Content-Length = 678 [18:07:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963207", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:07:09]execute_script... [18:07: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)1963207", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:07:09]POST & json_proto [18:07:09]process_json_proto [18:07:09]json parsed OK: [18:07:09]protocol is kg_v1.0 [18:07:09]action value=close_receipt [18:07:09]process_action close_receipt [18:07:09]cmd_close_receipt [18:07:09]MH_GetDate [18:07:09]Write to MH i2c: F0 00 00 9E 15 A2 [18:07:09]Write i2c OK [18:07:09]MH_I2C_Read... [18:07:09]Read from MH i2c: F0 [18:07:09]MH_I2C_Read... [18:07:09]Read from MH i2c: F0 09 00 [18:07:09]MH_I2C_Read... [18:07:09]Read from MH i2c: F0 09 00 9E 15 00 CE 46 15 67 82 C9 CF 66 BB [18:07:09]GetLastDocTimeStamp 1729447448 [18:07:09]current date 1729447630 [18:07:09]FM_GetShiftState [18:07:09]SAM_PROTO_GetShiftState [18:07:09]wFMCommunicate request_size=4 [18:07:09]MH_SAM_APDU [18:07:09]CAPDU: 80 13 01 00 [18:07:09]Write to MH i2c: E2 08 00 9F 15 80 13 01 00 00 00 00 00 31 [18:07:09]Write i2c OK [18:07:09]MH_I2C_Read... [18:07:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:09]Read from MH i2c: E2 [18:07:09]MH_I2C_Read... [18:07:09]Read from MH i2c: E2 0E 00 [18:07:09]MH_I2C_Read... [18:07:09]Read from MH i2c: E2 0E 00 9F 15 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 4B [18:07:09]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:07:09]wFMCommunicate OK [18:07:09]SAM_PROTO_GetShiftState done [18:07:09]FM_GetShiftState done [18:07:09]opened in 1729383750 [18:07:09]opened+sec_in_day 1729470150 [18:07:09]quantity*price = 40006 [18:07:09]sum+1 = 40007 [18:07:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 418 20.10.2024 18:07 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227570 ФПД: 112290505643488 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T180710&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227570&fm=112290505643488&tin=02508201610067®Number=0000000000091685&sum=40000 [18:07:10]StoreToDocumentArchive [18:07:10]shift 533 fd 227570 [18:07:10]save to /storage/0533/doc_00227570 [18:07:10]save last doc name /storage/0533/doc_00227570 to /storage/kkm_last_doc_name [18:07:10]save OK [18:07:10]Clear old archive folders... [18:07:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:07:10]tlvbuf is 00DD97D0 [18:07:10]SAM_PROTO_ClearQueue [18:07:10]wFMCommunicate request_size=4 [18:07:10]MH_SAM_APDU [18:07:10]CAPDU: 80 09 00 00 [18:07:10]Write to MH i2c: E2 08 00 AC 15 80 09 00 00 00 00 00 00 33 [18:07:10]Write i2c OK [18:07:10]MH_I2C_Read... [18:07:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:07:10]Read from MH i2c: E2 [18:07:10]MH_I2C_Read... [18:07:10]Read from MH i2c: E2 03 00 [18:07:10]MH_I2C_Read... [18:07:10]Read from MH i2c: E2 03 00 AC 15 00 90 00 35 [18:07:10]RAPDU: 90 00 [18:07:10]wFMCommunicate OK [18:07:10]SAM_PROTO_ClearQueue done [18:07:10]KKMCreateOFDPacket [18:07:10]OFDProtocolAddRootSTLVToBuf [18:07:10]FM_MakeSignedData [18:07:10]FM_MakeSignedData [18:07:10]SAM_PROTO_SignData [18:07:10]wFMCommunicate request_size=4 [18:07:10]MH_SAM_APDU [18:07:10]CAPDU: 80 0D 01 02 [18:07:10]Write to MH i2c: E2 08 00 AD 15 80 0D 01 02 00 00 00 00 3B [18:07:10]Write i2c OK [18:07:10]MH_I2C_Read... [18:07:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:07:10]Read from MH i2c: E2 [18:07:10]MH_I2C_Read... [18:07:10]Read from MH i2c: E2 03 00 [18:07:10]MH_I2C_Read... [18:07:10]Read from MH i2c: E2 03 00 AD 15 00 90 00 36 [18:07:10]RAPDU: 90 00 [18:07:10]wFMCommunicate OK [18:07:10]wFMCommunicate request_size=255 [18:07:10]MH_SAM_APDU [18:07:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 01 00 00 F4 03 04 00 CE 46 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F2 78 03 00 35 04 06 00 66 [18:07:10]Write to MH i2c: E2 02 01 AE 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 01 00 00 F4 03 04 00 CE 46 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F2 78 03 00 35 04 06 00 66 00 00 BE [18:07:10]Write i2c OK [18:07:10]MH_I2C_Read... [18:07:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:10]Read from MH i2c: E2 [18:07:10]MH_I2C_Read... [18:07:10]Read from MH i2c: E2 03 00 [18:07:10]MH_I2C_Read... [18:07:10]Read from MH i2c: E2 03 00 AE 15 00 90 00 37 [18:07:10]RAPDU: 90 00 [18:07:10]wFMCommunicate OK [18:07:10]wFMCommunicate request_size=10 [18:07:10]MH_SAM_APDU [18:07:10]CAPDU: 80 0D 02 02 05 20 AB B3 55 E0 [18:07:10]Write to MH i2c: E2 0D 00 AF 15 80 0D 02 02 05 00 20 AB B3 55 E0 00 00 FB [18:07:10]Write i2c OK [18:07:10]MH_I2C_Read... [18:07:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:10]Read from MH i2c: E2 [18:07:10]MH_I2C_Read... [18:07:10]Read from MH i2c: E2 03 00 [18:07:10]MH_I2C_Read... [18:07:10]Read from MH i2c: E2 03 00 AF 15 00 90 00 38 [18:07:10]RAPDU: 90 00 [18:07:10]wFMCommunicate OK [18:07:10]wFMCommunicate request_size=4 [18:07:10]MH_SAM_APDU [18:07:10]CAPDU: 80 0D 03 02 [18:07:10]Write to MH i2c: E2 08 00 B0 15 80 0D 03 02 00 00 00 00 40 [18:07:10]Write i2c OK [18:07:10]MH_I2C_Read... [18:07:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:07:10]Read from MH i2c: E2 [18:07:10]MH_I2C_Read... [18:07:10]Read from MH i2c: E2 0B 00 [18:07:10]MH_I2C_Read... [18:07:10]Read from MH i2c: E2 0B 00 B0 15 00 76 36 BD CA 7E C3 8B B4 90 00 F4 [18:07:10]RAPDU: 76 36 BD CA 7E C3 8B B4 90 00 [18:07:10]wFMCommunicate OK [18:07:10]SAM_PROTO_SignData done [18:07:10]FM_MakeSignedData done [18:07:10]CreateOFDProtocolMessage [18:07:10]wFMCommunicate request_size=4 [18:07:10]MH_SAM_APDU [18:07:10]CAPDU: 80 11 00 00 [18:07:10]Write to MH i2c: E2 08 00 B1 15 80 11 00 00 00 00 00 00 40 [18:07:10]Write i2c OK [18:07:10]MH_I2C_Read... [18:07:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:10]Read from MH i2c: E2 [18:07:10]MH_I2C_Read... [18:07:10]Read from MH i2c: E2 17 00 [18:07:10]MH_I2C_Read... [18:07:10]Read from MH i2c: E2 17 00 B1 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 97 [18:07:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:07:10]wFMCommunicate OK [18:07:10]CreateOFDProtocolMessage done [18:07:10]OFDSenderStorePacket 227570 [18:07:10]StoreOFDPacket docnum=227570 [18:07:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 16 1C 07 01 77 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 01 00 00 F4 03 04 00 CE 46 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F2 78 03 00 35 04 06 00 66 20 AB B3 55 E0 76 36 BD CA 7E C3 8B B4 [18:07:10]CheckFolder [18:07:10]dirname=/storage/ofd_packets [18:07:10]CheckFolder done [18:07:10]ProducePacketName [18:07:10]name=ofd_packets/00227570 [18:07:10]NVStorageSaveData ofd_packets/00227570 [18:07:10]File name is /storage/ofd_packets/00227570 [18:07:10]Write 301 bytes [18:07:10]NVStorageSaveData done [18:07:10]OFDSenderStorePacket done [18:07:10]KKMCreateOFDPacket done [18:07:10]NVStorageSaveData kkm_last_timestamp [18:07:10]File name is /storage/kkm_last_timestamp [18:07:10]Write 4 bytes [18:07:10]NVStorageSaveData done [18:07:10]ExternCall_PrintAddStr [18:07:10]wPrintStart [18:07:10]Write to MH i2c: 01 00 00 B2 15 C7 [18:07:10]Write i2c OK [18:07:10]MH_I2C_Read... [18:07:10]Read from MH i2c: 01 [18:07:10]MH_I2C_Read... [18:07:10]Read from MH i2c: 01 07 00 [18:07:10]MH_I2C_Read... [18:07:10]Read from MH i2c: 01 07 00 B2 15 00 00 00 00 00 FF 0F DC [18:07:10]RasterBufferAndPrint [18:07:10]line Счет N : (1)1963207 [18:07:10]line ИНН: 02508201610067 [18:07:10]line Контрольно-Кассовый Чек [18:07:10]line ПРОДАЖА [18:07:10]line ТРК (МРК, ГНК) : 33 [18:07:10]line Товар: 2710124130 [18:07:10]line Аи-92-К-5 [18:07:10]line 5.980 * 66.90 [18:07:10]line = 400.06 [18:07:10]line НДС 12% НСП 1% [18:07:10]line > о реализуемом товаре [18:07:10]line ОКРУГЛЕНИЕ: -0.06 [18:07:10]line ИТОГО: 400.00 [18:07:10]line Внесено: 400.00 [18:07:10]line СДАЧА: 0.00 [18:07:10]line НСП 1% : 3.54 [18:07:10]line НДС 12% : 42.48 [18:07:10]line Наличными: 400.00 [18:07:10]line Безнал.: 0.00 [18:07:10]line Место: АЗС № 133 "Партнер Нефть" [18:07:10]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:07:10]line СНО: Общий режим [18:07:10]line Чек 418 20.10.2024 18:07 [18:07:10]line Смена: 533 ФФД: 1.0 [18:07:10]line ЗНМ: 0300000091 [18:07:10]line РНМ: 0000000000091685 [18:07:10]line Версия ККМ: 001 [18:07:10]line ФМ: 0000000000871839 [18:07:10]line ФД: 227570 [18:07:10]line ФПД: 112290505643488 [18:07:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T180710&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227570&fm=112290505643488&tin=02508201610067®Number=0000000000091685&sum=40000 [18:07:11]OFD Sender: Processing packet 227570 [packets to send 38, broken 37] [18:07:11]ProducePacketName [18:07:11]name=ofd_packets/00227570 [18:07:11]OFD Sender: To server: pG, [18:07:11]CommunicateWithHost lk.salyk.kg:30040 [18:07:11]ConnectInit lk.salyk.kg [18:07:11]written 0, free lines is 4095 [18:07:11]Connected sock=10 [18:07: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 33 39 0F 01 00 00 16 1C 07 01 77 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 01 00 00 F4 03 04 00 CE 46 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F2 78 03 00 35 04 06 00 66 20 AB B3 55 E0 76 36 BD CA 7E C3 8B B4 [18:07: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 33 39 4F 00 00 00 ED 81 47 00 7B 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 33 39 10 04 04 00 F2 78 03 00 F4 03 04 00 CC F1 14 67 B6 04 01 00 00 4C 96 2C FD CF 12 AA A9 [18:07:11]CommunicateWithHost err = 0 [18:07:11]CheckOFDResponse [18:07:11]1017 (14) - 77093643461234 [18:07:11]1041 (16) - 0000000000871839 [18:07:11]1040 (4) - 227570 [18:07:11]1012 (4) - 20.10.2024 12:04 [18:07:11]1206 (1) - 0 [18:07:11]OFD Sender: Remove packet 227570 [18:07:11]ProducePacketName [18:07:11]name=ofd_packets/00227570 [18:07:11]NVStorageDeleteData [18:07:11]Write to MH i2c: 01 00 00 DC 15 F1 [18:07:11]Write i2c OK [18:07:11]MH_I2C_Read... [18:07:11]Read from MH i2c: 01 [18:07:11]MH_I2C_Read... [18:07:11]Read from MH i2c: 01 07 00 [18:07:11]MH_I2C_Read... [18:07:11]Read from MH i2c: 01 07 00 DC 15 00 00 00 00 00 FE 0C 02 [18:07:11]RasterBufferAndPrint [18:07:11]line [18:07:11]line [18:07:11]line [18:07:11]line [18:07:11]line [18:07:11]written 0, free lines is 3332 [18:07:11]process_action close_receipt done [18:07:11]requested_data is exist [18:07:11]produce_requested_data [18:07:11]requested_item fm.sn is exist - process it [18:07:11]wFMCommunicate request_size=4 [18:07:11]MH_SAM_APDU [18:07:11]CAPDU: 80 11 00 00 [18:07:11]Write to MH i2c: E2 08 00 E3 15 80 11 00 00 00 00 00 00 72 [18:07:11]Write i2c OK [18:07:11]MH_I2C_Read... [18:07:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:11]Read from MH i2c: E2 [18:07:11]MH_I2C_Read... [18:07:11]Read from MH i2c: E2 17 00 [18:07:11]MH_I2C_Read... [18:07:11]Read from MH i2c: E2 17 00 E3 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C9 [18:07:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:07:11]wFMCommunicate OK [18:07:11]requested_item fd.num is exist - process it [18:07:11]SAM_PROTO_GetFieldsCounters [18:07:11]wFMCommunicate request_size=4 [18:07:11]MH_SAM_APDU [18:07:11]CAPDU: 80 13 00 00 [18:07:11]Write to MH i2c: E2 08 00 E4 15 80 13 00 00 00 00 00 00 75 [18:07:11]Write i2c OK [18:07:11]MH_I2C_Read... [18:07:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:07:11]Read from MH i2c: E2 [18:07:11]MH_I2C_Read... [18:07:11]Read from MH i2c: E2 62 00 [18:07:11]MH_I2C_Read... [18:07:11]Read from MH i2c: E2 62 00 E4 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F2 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 A2 01 00 00 5E 04 04 00 A2 01 00 00 57 04 04 00 A3 01 00 00 19 04 04 00 00 00 00 00 90 00 0B [18:07: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F2 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 A2 01 00 00 5E 04 04 00 A2 01 00 00 57 04 04 00 A3 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:07:11]wFMCommunicate OK [18:07:11]SAM_PROTO_GetFieldsCounters done [18:07:11]requested_item shift.num is exist - process it [18:07:11]requested_item shift.opened is exist - process it [18:07:11]req_shift_opened [18:07:11]FM_GetShiftState [18:07:11]SAM_PROTO_GetShiftState [18:07:11]wFMCommunicate request_size=4 [18:07:11]MH_SAM_APDU [18:07:11]CAPDU: 80 13 01 00 [18:07:11]Write to MH i2c: E2 08 00 E5 15 80 13 01 00 00 00 00 00 77 [18:07:11]Write i2c OK [18:07:11]MH_I2C_Read... [18:07:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:11]Read from MH i2c: E2 [18:07:11]MH_I2C_Read... [18:07:11]Read from MH i2c: E2 0E 00 [18:07:11]MH_I2C_Read... [18:07:11]Read from MH i2c: E2 0E 00 E5 15 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 91 [18:07:11]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:07:11]wFMCommunicate OK [18:07:11]SAM_PROTO_GetShiftState done [18:07:11]FM_GetShiftState done [18:07:11]req_shift_opened done [18:07:11]requested_item shift.open_date is exist - process it [18:07:11]req_shift_open_date [18:07:11]req_shift_open_date done [18:07:11]produce_requested_data done [18:07:11]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227570,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [18:07:11]process_action_free close_receipt [18:07:11]json_value_free [18:07:11]json_value_free done [18:07:11]process_json_proto returns [18:07:11]Send response to host [18:07:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227570,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [18:07:11]free response buf [18:07:11]execute_script done [18:07:11]execute_script returns [18:07:11]free content buf [18:07:11]Sock 9.Close socket [18:07:11]Sock 9.Thread stoped [18:07:11]OFD Sender: No OFD packet to send [18:07:14]accept exits with 7 [18:07:14]New connection [18:07:14]New thread 3067362660 created [18:07:14]Thread 3067219300 joined [18:07:14]Waiting for new connection... [18:07:14] Sock 7.Parse request [18:07:14]Sock 7.Check first char [18:07:14]Sock 7.First char is OK [18:07:14]request: POST /json_proto HTTP/1.0 [18:07:14]Method: POST [18:07:14]URL: /json_proto [18:07:14]Method is POST - this is cgi request [18:07:14]url: /json_proto [18:07:14]query_string will be loaded in cgi processing [18:07:14]execute_cgi json_proto POST (null) [18:07:14]execute_cgi path=json_proto method=POST [18:07:14]POST find Content-Length [18:07:14]Host: 172.17.44.195:8080 [18:07:14]Content-Length: 683 [18:07:14]Content-Type: application/json [18:07:14] [18:07:14]POST finish read [18:07:14]Found Content-Length = 683 [18:07:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963206", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 21.570, "sum" : 1600.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:07:14]execute_script... [18:07: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)1963206", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 21.570, "sum" : 1600.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:07:14]POST & json_proto [18:07:14]process_json_proto [18:07:14]json parsed OK: [18:07:14]protocol is kg_v1.0 [18:07:14]action value=close_receipt [18:07:14]process_action close_receipt [18:07:14]cmd_close_receipt [18:07:14]MH_GetDate [18:07:14]Write to MH i2c: F0 00 00 E6 15 EA [18:07:14]Write i2c OK [18:07:14]MH_I2C_Read... [18:07:14]Read from MH i2c: F0 [18:07:14]MH_I2C_Read... [18:07:14]Read from MH i2c: F0 09 00 [18:07:14]MH_I2C_Read... [18:07:14]Read from MH i2c: F0 09 00 E6 15 00 D3 46 15 67 82 C9 CF 66 08 [18:07:14]GetLastDocTimeStamp 1729447630 [18:07:14]current date 1729447635 [18:07:14]FM_GetShiftState [18:07:14]SAM_PROTO_GetShiftState [18:07:14]wFMCommunicate request_size=4 [18:07:14]MH_SAM_APDU [18:07:14]CAPDU: 80 13 01 00 [18:07:14]Write to MH i2c: E2 08 00 E7 15 80 13 01 00 00 00 00 00 79 [18:07:14]Write i2c OK [18:07:14]MH_I2C_Read... [18:07:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:14]Read from MH i2c: E2 [18:07:14]MH_I2C_Read... [18:07:14]Read from MH i2c: E2 0E 00 [18:07:14]MH_I2C_Read... [18:07:14]Read from MH i2c: E2 0E 00 E7 15 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 93 [18:07:14]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:07:14]wFMCommunicate OK [18:07:14]SAM_PROTO_GetShiftState done [18:07:14]FM_GetShiftState done [18:07:14]opened in 1729383750 [18:07:14]opened+sec_in_day 1729470150 [18:07:14]quantity*price = 160049 [18:07:14]sum+1 = 160050 [18:07:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.96 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 419 20.10.2024 18:07 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227571 ФПД: 64256870690583 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T180715&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227571&fm=64256870690583&tin=02508201610067®Number=0000000000091685&sum=160000 [18:07:15]StoreToDocumentArchive [18:07:15]shift 533 fd 227571 [18:07:15]save to /storage/0533/doc_00227571 [18:07:15]save last doc name /storage/0533/doc_00227571 to /storage/kkm_last_doc_name [18:07:15]save OK [18:07:15]Clear old archive folders... [18:07:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:07:15]tlvbuf is 00DD3400 [18:07:15]SAM_PROTO_ClearQueue [18:07:15]wFMCommunicate request_size=4 [18:07:15]MH_SAM_APDU [18:07:15]CAPDU: 80 09 00 00 [18:07:15]Write to MH i2c: E2 08 00 F4 15 80 09 00 00 00 00 00 00 7B [18:07:15]Write i2c OK [18:07:15]MH_I2C_Read... [18:07:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:07:15]Read from MH i2c: E2 [18:07:15]MH_I2C_Read... [18:07:15]Read from MH i2c: E2 03 00 [18:07:15]MH_I2C_Read... [18:07:15]Read from MH i2c: E2 03 00 F4 15 00 90 00 7D [18:07:15]RAPDU: 90 00 [18:07:15]wFMCommunicate OK [18:07:15]SAM_PROTO_ClearQueue done [18:07:15]KKMCreateOFDPacket [18:07:15]OFDProtocolAddRootSTLVToBuf [18:07:15]FM_MakeSignedData [18:07:15]FM_MakeSignedData [18:07:15]SAM_PROTO_SignData [18:07:15]wFMCommunicate request_size=4 [18:07:15]MH_SAM_APDU [18:07:15]CAPDU: 80 0D 01 02 [18:07:15]Write to MH i2c: E2 08 00 F5 15 80 0D 01 02 00 00 00 00 83 [18:07:15]Write i2c OK [18:07:15]MH_I2C_Read... [18:07:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:07:15]Read from MH i2c: E2 [18:07:15]MH_I2C_Read... [18:07:15]Read from MH i2c: E2 03 00 [18:07:15]MH_I2C_Read... [18:07:15]Read from MH i2c: E2 03 00 F5 15 00 90 00 7E [18:07:15]RAPDU: 90 00 [18:07:15]wFMCommunicate OK [18:07:15]wFMCommunicate request_size=255 [18:07:15]MH_SAM_APDU [18:07:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 42 54 00 00 00 00 00 37 04 06 00 FC 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 A3 01 00 00 F4 03 04 00 D3 46 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F3 78 03 00 35 04 06 00 3A [18:07:15]Write to MH i2c: E2 02 01 F6 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 42 54 00 00 00 00 00 37 04 06 00 FC 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 A3 01 00 00 F4 03 04 00 D3 46 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F3 78 03 00 35 04 06 00 3A 00 00 FC [18:07:15]Write i2c OK [18:07:15]MH_I2C_Read... [18:07:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:15]Read from MH i2c: E2 [18:07:15]MH_I2C_Read... [18:07:15]Read from MH i2c: E2 03 00 [18:07:15]MH_I2C_Read... [18:07:15]Read from MH i2c: E2 03 00 F6 15 00 90 00 7F [18:07:15]RAPDU: 90 00 [18:07:15]wFMCommunicate OK [18:07:15]wFMCommunicate request_size=10 [18:07:15]MH_SAM_APDU [18:07:15]CAPDU: 80 0D 02 02 05 70 F7 F3 AF 17 [18:07:15]Write to MH i2c: E2 0D 00 F7 15 80 0D 02 02 05 00 70 F7 F3 AF 17 00 00 B0 [18:07:15]Write i2c OK [18:07:15]MH_I2C_Read... [18:07:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:16]Read from MH i2c: E2 [18:07:16]MH_I2C_Read... [18:07:16]Read from MH i2c: E2 03 00 [18:07:16]MH_I2C_Read... [18:07:16]Read from MH i2c: E2 03 00 F7 15 00 90 00 80 [18:07:16]RAPDU: 90 00 [18:07:16]wFMCommunicate OK [18:07:16]wFMCommunicate request_size=4 [18:07:16]MH_SAM_APDU [18:07:16]CAPDU: 80 0D 03 02 [18:07:16]Write to MH i2c: E2 08 00 F8 15 80 0D 03 02 00 00 00 00 88 [18:07:16]Write i2c OK [18:07:16]MH_I2C_Read... [18:07:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:07:16]Read from MH i2c: E2 [18:07:16]MH_I2C_Read... [18:07:16]Read from MH i2c: E2 0B 00 [18:07:16]MH_I2C_Read... [18:07:16]Read from MH i2c: E2 0B 00 F8 15 00 83 87 8D D7 80 DD 8D 2A 90 00 0B [18:07:16]RAPDU: 83 87 8D D7 80 DD 8D 2A 90 00 [18:07:16]wFMCommunicate OK [18:07:16]SAM_PROTO_SignData done [18:07:16]FM_MakeSignedData done [18:07:16]CreateOFDProtocolMessage [18:07:16]wFMCommunicate request_size=4 [18:07:16]MH_SAM_APDU [18:07:16]CAPDU: 80 11 00 00 [18:07:16]Write to MH i2c: E2 08 00 F9 15 80 11 00 00 00 00 00 00 88 [18:07:16]Write i2c OK [18:07:16]MH_I2C_Read... [18:07:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:16]Read from MH i2c: E2 [18:07:16]MH_I2C_Read... [18:07:16]Read from MH i2c: E2 17 00 [18:07:16]MH_I2C_Read... [18:07:16]Read from MH i2c: E2 17 00 F9 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 DF [18:07:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:07:16]wFMCommunicate OK [18:07:16]CreateOFDProtocolMessage done [18:07:16]OFDSenderStorePacket 227571 [18:07:16]StoreOFDPacket docnum=227571 [18:07:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 44 17 07 01 B6 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 42 54 00 00 00 00 00 37 04 06 00 FC 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 A3 01 00 00 F4 03 04 00 D3 46 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F3 78 03 00 35 04 06 00 3A 70 F7 F3 AF 17 83 87 8D D7 80 DD 8D 2A [18:07:16]CheckFolder [18:07:16]dirname=/storage/ofd_packets [18:07:16]CheckFolder done [18:07:16]ProducePacketName [18:07:16]name=ofd_packets/00227571 [18:07:16]NVStorageSaveData ofd_packets/00227571 [18:07:16]File name is /storage/ofd_packets/00227571 [18:07:16]Write 301 bytes [18:07:16]NVStorageSaveData done [18:07:16]OFDSenderStorePacket done [18:07:16]KKMCreateOFDPacket done [18:07:16]NVStorageSaveData kkm_last_timestamp [18:07:16]File name is /storage/kkm_last_timestamp [18:07:16]Write 4 bytes [18:07:16]NVStorageSaveData done [18:07:16]ExternCall_PrintAddStr [18:07:16]wPrintStart [18:07:16]Write to MH i2c: 01 00 00 FA 15 0F [18:07:16]Write i2c OK [18:07:16]MH_I2C_Read... [18:07:16]Read from MH i2c: 01 [18:07:16]MH_I2C_Read... [18:07:16]Read from MH i2c: 01 07 00 [18:07:16]MH_I2C_Read... [18:07:16]Read from MH i2c: 01 07 00 FA 15 00 00 00 00 00 FF 0F 24 [18:07:16]RasterBufferAndPrint [18:07:16]line Счет N : (1)1963206 [18:07:16]line ИНН: 02508201610067 [18:07:16]line Контрольно-Кассовый Чек [18:07:16]line ПРОДАЖА [18:07:16]line ТРК (МРК, ГНК) : 44 [18:07:16]line Товар: 2710124500 [18:07:16]line Аи-95-К-5 [18:07:16]line 21.570 * 74.20 [18:07:16]line = 1600.49 [18:07:16]line НДС 12% НСП 1% [18:07:16]line > о реализуемом товаре [18:07:16]line ОКРУГЛЕНИЕ: -0.49 [18:07:16]line ИТОГО: 1600.00 [18:07:16]line Внесено: 1600.00 [18:07:16]line СДАЧА: 0.00 [18:07:16]line НСП 1% : 14.16 [18:07:16]line НДС 12% : 169.96 [18:07:16]line Наличными: 1600.00 [18:07:16]line Безнал.: 0.00 [18:07:16]line Место: АЗС № 133 "Партнер Нефть" [18:07:16]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:07:16]line СНО: Общий режим [18:07:16]line Чек 419 20.10.2024 18:07 [18:07:16]line Смена: 533 ФФД: 1.0 [18:07:16]line ЗНМ: 0300000091 [18:07:16]line РНМ: 0000000000091685 [18:07:16]line Версия ККМ: 001 [18:07:16]line ФМ: 0000000000871839 [18:07:16]line ФД: 227571 [18:07:16]line ФПД: 64256870690583 [18:07:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T180715&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227571&fm=64256870690583&tin=02508201610067®Number=0000000000091685&sum=160000 [18:07:16]OFD Sender: Processing packet 227571 [packets to send 38, broken 37] [18:07:16]ProducePacketName [18:07:16]name=ofd_packets/00227571 [18:07:16]OFD Sender: To server: pG, [18:07:16]CommunicateWithHost lk.salyk.kg:30040 [18:07:16]ConnectInit lk.salyk.kg [18:07:16]written 0, free lines is 4095 [18:07:16]Connected sock=10 [18:07:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 44 17 07 01 B6 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 42 54 00 00 00 00 00 37 04 06 00 FC 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 A3 01 00 00 F4 03 04 00 D3 46 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F3 78 03 00 35 04 06 00 3A 70 F7 F3 AF 17 83 87 8D D7 80 DD 8D 2A [18:07:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 B2 56 47 00 A1 F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F3 78 03 00 F4 03 04 00 D1 F1 14 67 B6 04 01 00 00 FC 3D 21 3D 0F 7D 0E 9D [18:07:16]CommunicateWithHost err = 0 [18:07:16]CheckOFDResponse [18:07:16]1017 (14) - 77093643461234 [18:07:16]1041 (16) - 0000000000871839 [18:07:16]1040 (4) - 227571 [18:07:16]1012 (4) - 20.10.2024 12:04 [18:07:16]1206 (1) - 0 [18:07:16]OFD Sender: Remove packet 227571 [18:07:16]ProducePacketName [18:07:16]name=ofd_packets/00227571 [18:07:16]NVStorageDeleteData [18:07:16]Write to MH i2c: 01 00 00 24 16 3A [18:07:16]Write i2c OK [18:07:16]MH_I2C_Read... [18:07:16]Read from MH i2c: 01 [18:07:16]MH_I2C_Read... [18:07:16]Read from MH i2c: 01 07 00 [18:07:16]MH_I2C_Read... [18:07:16]Read from MH i2c: 01 07 00 24 16 00 00 00 00 00 0E 0D 5C [18:07:16]RasterBufferAndPrint [18:07:16]line [18:07:16]line [18:07:16]line [18:07:16]line [18:07:16]line [18:07:16]written 0, free lines is 3354 [18:07:16]process_action close_receipt done [18:07:16]requested_data is exist [18:07:16]produce_requested_data [18:07:16]requested_item fm.sn is exist - process it [18:07:16]wFMCommunicate request_size=4 [18:07:16]MH_SAM_APDU [18:07:16]CAPDU: 80 11 00 00 [18:07:16]Write to MH i2c: E2 08 00 2B 16 80 11 00 00 00 00 00 00 BB [18:07:16]Write i2c OK [18:07:16]MH_I2C_Read... [18:07:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:16]Read from MH i2c: E2 [18:07:16]MH_I2C_Read... [18:07:16]Read from MH i2c: E2 17 00 [18:07:16]MH_I2C_Read... [18:07:16]Read from MH i2c: E2 17 00 2B 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 12 [18:07:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:07:16]wFMCommunicate OK [18:07:16]requested_item fd.num is exist - process it [18:07:16]SAM_PROTO_GetFieldsCounters [18:07:16]wFMCommunicate request_size=4 [18:07:16]MH_SAM_APDU [18:07:16]CAPDU: 80 13 00 00 [18:07:16]Write to MH i2c: E2 08 00 2C 16 80 13 00 00 00 00 00 00 BE [18:07:16]Write i2c OK [18:07:16]MH_I2C_Read... [18:07:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:07:16]Read from MH i2c: E2 [18:07:16]MH_I2C_Read... [18:07:16]Read from MH i2c: E2 62 00 [18:07:16]MH_I2C_Read... [18:07:16]Read from MH i2c: E2 62 00 2C 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F3 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 A3 01 00 00 5E 04 04 00 A3 01 00 00 57 04 04 00 A4 01 00 00 19 04 04 00 00 00 00 00 90 00 58 [18:07: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F3 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 A3 01 00 00 5E 04 04 00 A3 01 00 00 57 04 04 00 A4 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:07:16]wFMCommunicate OK [18:07:16]SAM_PROTO_GetFieldsCounters done [18:07:16]requested_item shift.num is exist - process it [18:07:16]requested_item shift.opened is exist - process it [18:07:16]req_shift_opened [18:07:16]FM_GetShiftState [18:07:16]SAM_PROTO_GetShiftState [18:07:16]wFMCommunicate request_size=4 [18:07:16]MH_SAM_APDU [18:07:16]CAPDU: 80 13 01 00 [18:07:16]Write to MH i2c: E2 08 00 2D 16 80 13 01 00 00 00 00 00 C0 [18:07:16]Write i2c OK [18:07:16]MH_I2C_Read... [18:07:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:16]Read from MH i2c: E2 [18:07:16]MH_I2C_Read... [18:07:16]Read from MH i2c: E2 0E 00 [18:07:16]MH_I2C_Read... [18:07:16]Read from MH i2c: E2 0E 00 2D 16 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 DA [18:07:16]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:07:16]wFMCommunicate OK [18:07:16]SAM_PROTO_GetShiftState done [18:07:16]FM_GetShiftState done [18:07:16]req_shift_opened done [18:07:16]requested_item shift.open_date is exist - process it [18:07:16]req_shift_open_date [18:07:16]req_shift_open_date done [18:07:16]produce_requested_data done [18:07:16]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227571,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [18:07:16]process_action_free close_receipt [18:07:16]json_value_free [18:07:16]json_value_free done [18:07:16]process_json_proto returns [18:07:16]Send response to host [18:07:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227571,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [18:07:16]free response buf [18:07:16]execute_script done [18:07:16]execute_script returns [18:07:16]free content buf [18:07:16]Sock 7.Close socket [18:07:16]Sock 7.Thread stoped [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:39]accept exits with 9 [18:07:39]New connection [18:07:39]New thread 3067219300 created [18:07:39]Thread 3067362660 joined [18:07:39]Waiting for new connection... [18:07:39] Sock 9.Parse request [18:07:39]Sock 9.Check first char [18:07:39]Sock 9.First char is OK [18:07:39]request: POST /json_proto HTTP/1.0 [18:07:39]Method: POST [18:07:39]URL: /json_proto [18:07:39]Method is POST - this is cgi request [18:07:39]url: /json_proto [18:07:39]query_string will be loaded in cgi processing [18:07:39]execute_cgi json_proto POST (null) [18:07:39]execute_cgi path=json_proto method=POST [18:07:39]POST find Content-Length [18:07:39]Host: 172.17.44.195:8080 [18:07:39]Content-Length: 678 [18:07:39]Content-Type: application/json [18:07:39] [18:07:39]POST finish read [18:07:39]Found Content-Length = 678 [18:07:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963208", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:07:39]execute_script... [18:07: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)1963208", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:07:39]POST & json_proto [18:07:39]process_json_proto [18:07:39]json parsed OK: [18:07:39]protocol is kg_v1.0 [18:07:39]action value=close_receipt [18:07:39]process_action close_receipt [18:07:39]cmd_close_receipt [18:07:39]MH_GetDate [18:07:39]Write to MH i2c: F0 00 00 2E 16 33 [18:07:39]Write i2c OK [18:07:39]MH_I2C_Read... [18:07:39]Read from MH i2c: F0 [18:07:39]MH_I2C_Read... [18:07:39]Read from MH i2c: F0 09 00 [18:07:39]MH_I2C_Read... [18:07:39]Read from MH i2c: F0 09 00 2E 16 00 ED 46 15 67 82 C9 CF 66 6B [18:07:39]GetLastDocTimeStamp 1729447635 [18:07:39]current date 1729447661 [18:07:39]FM_GetShiftState [18:07:39]SAM_PROTO_GetShiftState [18:07:39]wFMCommunicate request_size=4 [18:07:39]MH_SAM_APDU [18:07:39]CAPDU: 80 13 01 00 [18:07:39]Write to MH i2c: E2 08 00 2F 16 80 13 01 00 00 00 00 00 C2 [18:07:39]Write i2c OK [18:07:39]MH_I2C_Read... [18:07:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:39]Read from MH i2c: E2 [18:07:39]MH_I2C_Read... [18:07:39]Read from MH i2c: E2 0E 00 [18:07:39]MH_I2C_Read... [18:07:39]Read from MH i2c: E2 0E 00 2F 16 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 DC [18:07:39]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:07:39]wFMCommunicate OK [18:07:39]SAM_PROTO_GetShiftState done [18:07:39]FM_GetShiftState done [18:07:39]opened in 1729383750 [18:07:39]opened+sec_in_day 1729470150 [18:07:39]quantity*price = 60009 [18:07:39]sum+1 = 60010 [18:07:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 420 20.10.2024 18:07 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227572 ФПД: 272394923321406 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T180741&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227572&fm=272394923321406&tin=02508201610067®Number=0000000000091685&sum=60000 [18:07:40]StoreToDocumentArchive [18:07:40]shift 533 fd 227572 [18:07:40]save to /storage/0533/doc_00227572 [18:07:40]save last doc name /storage/0533/doc_00227572 to /storage/kkm_last_doc_name [18:07:40]save OK [18:07:40]Clear old archive folders... [18:07:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:07:40]tlvbuf is 00D8BFD0 [18:07:40]SAM_PROTO_ClearQueue [18:07:40]wFMCommunicate request_size=4 [18:07:40]MH_SAM_APDU [18:07:40]CAPDU: 80 09 00 00 [18:07:40]Write to MH i2c: E2 08 00 3C 16 80 09 00 00 00 00 00 00 C4 [18:07:40]Write i2c OK [18:07:40]MH_I2C_Read... [18:07:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:07:40]Read from MH i2c: E2 [18:07:40]MH_I2C_Read... [18:07:40]Read from MH i2c: E2 03 00 [18:07:40]MH_I2C_Read... [18:07:40]Read from MH i2c: E2 03 00 3C 16 00 90 00 C6 [18:07:40]RAPDU: 90 00 [18:07:40]wFMCommunicate OK [18:07:40]SAM_PROTO_ClearQueue done [18:07:40]KKMCreateOFDPacket [18:07:40]OFDProtocolAddRootSTLVToBuf [18:07:40]FM_MakeSignedData [18:07:40]FM_MakeSignedData [18:07:40]SAM_PROTO_SignData [18:07:40]wFMCommunicate request_size=4 [18:07:40]MH_SAM_APDU [18:07:40]CAPDU: 80 0D 01 02 [18:07:40]Write to MH i2c: E2 08 00 3D 16 80 0D 01 02 00 00 00 00 CC [18:07:40]Write i2c OK [18:07:40]MH_I2C_Read... [18:07:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:07:40]Read from MH i2c: E2 [18:07:40]MH_I2C_Read... [18:07:40]Read from MH i2c: E2 03 00 [18:07:40]MH_I2C_Read... [18:07:40]Read from MH i2c: E2 03 00 3D 16 00 90 00 C7 [18:07:40]RAPDU: 90 00 [18:07:40]wFMCommunicate OK [18:07:40]wFMCommunicate request_size=255 [18:07:40]MH_SAM_APDU [18:07:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 01 00 00 F4 03 04 00 ED 46 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F4 78 03 00 35 04 06 00 F7 [18:07:40]Write to MH i2c: E2 02 01 3E 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 01 00 00 F4 03 04 00 ED 46 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F4 78 03 00 35 04 06 00 F7 00 00 11 [18:07:40]Write i2c OK [18:07:40]MH_I2C_Read... [18:07:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:41]Read from MH i2c: E2 [18:07:41]MH_I2C_Read... [18:07:41]Read from MH i2c: E2 03 00 [18:07:41]MH_I2C_Read... [18:07:41]Read from MH i2c: E2 03 00 3E 16 00 90 00 C8 [18:07:41]RAPDU: 90 00 [18:07:41]wFMCommunicate OK [18:07:41]wFMCommunicate request_size=10 [18:07:41]MH_SAM_APDU [18:07:41]CAPDU: 80 0D 02 02 05 BD E2 A4 A8 3E [18:07:41]Write to MH i2c: E2 0D 00 3F 16 80 0D 02 02 05 00 BD E2 A4 A8 3E 00 00 02 [18:07:41]Write i2c OK [18:07:41]MH_I2C_Read... [18:07:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:41]Read from MH i2c: E2 [18:07:41]MH_I2C_Read... [18:07:41]Read from MH i2c: E2 03 00 [18:07:41]MH_I2C_Read... [18:07:41]Read from MH i2c: E2 03 00 3F 16 00 90 00 C9 [18:07:41]RAPDU: 90 00 [18:07:41]wFMCommunicate OK [18:07:41]wFMCommunicate request_size=4 [18:07:41]MH_SAM_APDU [18:07:41]CAPDU: 80 0D 03 02 [18:07:41]Write to MH i2c: E2 08 00 40 16 80 0D 03 02 00 00 00 00 D1 [18:07:41]Write i2c OK [18:07:41]MH_I2C_Read... [18:07:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:07:41]Read from MH i2c: E2 [18:07:41]MH_I2C_Read... [18:07:41]Read from MH i2c: E2 0B 00 [18:07:41]MH_I2C_Read... [18:07:41]Read from MH i2c: E2 0B 00 40 16 00 80 4B 95 F8 25 4A D1 BE 90 00 28 [18:07:41]RAPDU: 80 4B 95 F8 25 4A D1 BE 90 00 [18:07:41]wFMCommunicate OK [18:07:41]SAM_PROTO_SignData done [18:07:41]FM_MakeSignedData done [18:07:41]CreateOFDProtocolMessage [18:07:41]wFMCommunicate request_size=4 [18:07:41]MH_SAM_APDU [18:07:41]CAPDU: 80 11 00 00 [18:07:41]Write to MH i2c: E2 08 00 41 16 80 11 00 00 00 00 00 00 D1 [18:07:41]Write i2c OK [18:07:41]MH_I2C_Read... [18:07:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:41]Read from MH i2c: E2 [18:07:41]MH_I2C_Read... [18:07:41]Read from MH i2c: E2 17 00 [18:07:41]MH_I2C_Read... [18:07:41]Read from MH i2c: E2 17 00 41 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 28 [18:07:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:07:41]wFMCommunicate OK [18:07:41]CreateOFDProtocolMessage done [18:07:41]OFDSenderStorePacket 227572 [18:07:41]StoreOFDPacket docnum=227572 [18:07:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 06 A0 07 01 B2 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 01 00 00 F4 03 04 00 ED 46 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F4 78 03 00 35 04 06 00 F7 BD E2 A4 A8 3E 80 4B 95 F8 25 4A D1 BE [18:07:41]CheckFolder [18:07:41]dirname=/storage/ofd_packets [18:07:41]CheckFolder done [18:07:41]ProducePacketName [18:07:41]name=ofd_packets/00227572 [18:07:41]NVStorageSaveData ofd_packets/00227572 [18:07:41]File name is /storage/ofd_packets/00227572 [18:07:41]Write 301 bytes [18:07:41]NVStorageSaveData done [18:07:41]OFDSenderStorePacket done [18:07:41]KKMCreateOFDPacket done [18:07:41]NVStorageSaveData kkm_last_timestamp [18:07:41]File name is /storage/kkm_last_timestamp [18:07:41]Write 4 bytes [18:07:41]NVStorageSaveData done [18:07:41]ExternCall_PrintAddStr [18:07:41]wPrintStart [18:07:41]Write to MH i2c: 01 00 00 42 16 58 [18:07:41]Write i2c OK [18:07:41]MH_I2C_Read... [18:07:41]Read from MH i2c: 01 [18:07:41]MH_I2C_Read... [18:07:41]Read from MH i2c: 01 07 00 [18:07:41]MH_I2C_Read... [18:07:41]Read from MH i2c: 01 07 00 42 16 00 00 00 00 00 FF 0F 6D [18:07:41]RasterBufferAndPrint [18:07:41]line Счет N : (1)1963208 [18:07:41]line ИНН: 02508201610067 [18:07:41]line Контрольно-Кассовый Чек [18:07:41]line ПРОДАЖА [18:07:41]line ТРК (МРК, ГНК) : 53 [18:07:41]line Товар: 2710124130 [18:07:41]line Аи-92-К-5 [18:07:41]line 8.970 * 66.90 [18:07:41]line = 600.09 [18:07:41]line НДС 12% НСП 1% [18:07:41]line > о реализуемом товаре [18:07:41]line ОКРУГЛЕНИЕ: -0.09 [18:07:41]line ИТОГО: 600.00 [18:07:41]line Внесено: 600.00 [18:07:41]line СДАЧА: 0.00 [18:07:41]line НСП 1% : 5.31 [18:07:41]line НДС 12% : 63.73 [18:07:41]line Наличными: 600.00 [18:07:41]line Безнал.: 0.00 [18:07:41]line Место: АЗС № 133 "Партнер Нефть" [18:07:41]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:07:41]line СНО: Общий режим [18:07:41]line Чек 420 20.10.2024 18:07 [18:07:41]line Смена: 533 ФФД: 1.0 [18:07:41]line ЗНМ: 0300000091 [18:07:41]line РНМ: 0000000000091685 [18:07:41]line Версия ККМ: 001 [18:07:41]line ФМ: 0000000000871839 [18:07:41]line ФД: 227572 [18:07:41]line ФПД: 272394923321406 [18:07:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T180741&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227572&fm=272394923321406&tin=02508201610067®Number=0000000000091685&sum=60000 [18:07:41]OFD Sender: Processing packet 227572 [packets to send 38, broken 37] [18:07:41]ProducePacketName [18:07:41]name=ofd_packets/00227572 [18:07:41]OFD Sender: To server: pG, [18:07:41]CommunicateWithHost lk.salyk.kg:30040 [18:07:41]ConnectInit lk.salyk.kg [18:07:41]written 0, free lines is 4095 [18:07:41]Connected sock=10 [18:07: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 33 39 0F 01 00 00 06 A0 07 01 B2 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 01 00 00 F4 03 04 00 ED 46 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F4 78 03 00 35 04 06 00 F7 BD E2 A4 A8 3E 80 4B 95 F8 25 4A D1 BE [18:07: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 33 39 4F 00 00 00 1B 77 47 00 22 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F4 78 03 00 F4 03 04 00 EB F1 14 67 B6 04 01 00 00 C0 A5 46 2D EB E9 37 63 [18:07:41]CommunicateWithHost err = 0 [18:07:41]CheckOFDResponse [18:07:41]1017 (14) - 77093643461234 [18:07:41]1041 (16) - 0000000000871839 [18:07:41]1040 (4) - 227572 [18:07:41]1012 (4) - 20.10.2024 12:04 [18:07:41]1206 (1) - 0 [18:07:41]OFD Sender: Remove packet 227572 [18:07:41]ProducePacketName [18:07:41]name=ofd_packets/00227572 [18:07:41]NVStorageDeleteData [18:07:41]Write to MH i2c: 01 00 00 6C 16 82 [18:07:41]Write i2c OK [18:07:41]MH_I2C_Read... [18:07:41]Read from MH i2c: 01 [18:07:41]MH_I2C_Read... [18:07:41]Read from MH i2c: 01 07 00 [18:07:41]MH_I2C_Read... [18:07:41]Read from MH i2c: 01 07 00 6C 16 00 00 00 00 00 02 0D 98 [18:07:41]RasterBufferAndPrint [18:07:41]line [18:07:41]line [18:07:41]line [18:07:41]line [18:07:41]line [18:07:41]written 0, free lines is 3336 [18:07:42]process_action close_receipt done [18:07:42]requested_data is exist [18:07:42]produce_requested_data [18:07:42]requested_item fm.sn is exist - process it [18:07:42]wFMCommunicate request_size=4 [18:07:42]MH_SAM_APDU [18:07:42]CAPDU: 80 11 00 00 [18:07:42]Write to MH i2c: E2 08 00 73 16 80 11 00 00 00 00 00 00 03 [18:07:42]Write i2c OK [18:07:42]MH_I2C_Read... [18:07:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:42]Read from MH i2c: E2 [18:07:42]MH_I2C_Read... [18:07:42]Read from MH i2c: E2 17 00 [18:07:42]MH_I2C_Read... [18:07:42]Read from MH i2c: E2 17 00 73 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 5A [18:07:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:07:42]wFMCommunicate OK [18:07:42]requested_item fd.num is exist - process it [18:07:42]SAM_PROTO_GetFieldsCounters [18:07:42]wFMCommunicate request_size=4 [18:07:42]MH_SAM_APDU [18:07:42]CAPDU: 80 13 00 00 [18:07:42]Write to MH i2c: E2 08 00 74 16 80 13 00 00 00 00 00 00 06 [18:07:42]Write i2c OK [18:07:42]MH_I2C_Read... [18:07:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:07:42]Read from MH i2c: E2 [18:07:42]MH_I2C_Read... [18:07:42]Read from MH i2c: E2 62 00 [18:07:42]MH_I2C_Read... [18:07:42]Read from MH i2c: E2 62 00 74 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F4 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 A4 01 00 00 5E 04 04 00 A4 01 00 00 57 04 04 00 A5 01 00 00 19 04 04 00 00 00 00 00 90 00 A4 [18:07:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F4 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 A4 01 00 00 5E 04 04 00 A4 01 00 00 57 04 04 00 A5 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:07:42]wFMCommunicate OK [18:07:42]SAM_PROTO_GetFieldsCounters done [18:07:42]requested_item shift.num is exist - process it [18:07:42]requested_item shift.opened is exist - process it [18:07:42]req_shift_opened [18:07:42]FM_GetShiftState [18:07:42]SAM_PROTO_GetShiftState [18:07:42]wFMCommunicate request_size=4 [18:07:42]MH_SAM_APDU [18:07:42]CAPDU: 80 13 01 00 [18:07:42]Write to MH i2c: E2 08 00 75 16 80 13 01 00 00 00 00 00 08 [18:07:42]Write i2c OK [18:07:42]MH_I2C_Read... [18:07:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:42]Read from MH i2c: E2 [18:07:42]MH_I2C_Read... [18:07:42]Read from MH i2c: E2 0E 00 [18:07:42]MH_I2C_Read... [18:07:42]Read from MH i2c: E2 0E 00 75 16 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 22 [18:07:42]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:07:42]wFMCommunicate OK [18:07:42]SAM_PROTO_GetShiftState done [18:07:42]FM_GetShiftState done [18:07:42]req_shift_opened done [18:07:42]requested_item shift.open_date is exist - process it [18:07:42]req_shift_open_date [18:07:42]req_shift_open_date done [18:07:42]produce_requested_data done [18:07:42]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227572,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [18:07:42]process_action_free close_receipt [18:07:42]json_value_free [18:07:42]json_value_free done [18:07:42]process_json_proto returns [18:07:42]Send response to host [18:07:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227572,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [18:07:42]free response buf [18:07:42]execute_script done [18:07:42]execute_script returns [18:07:42]free content buf [18:07:42]Sock 9.Close socket [18:07:42]Sock 9.Thread stoped [18:07:42]OFD Sender: No OFD packet to send [18:07:47]OFD Sender: No OFD packet to send [18:07:52]OFD Sender: No OFD packet to send [18:07:57]OFD Sender: No OFD packet to send [18:08:02]OFD Sender: No OFD packet to send [18:08:07]OFD Sender: No OFD packet to send [18:08:12]OFD Sender: No OFD packet to send [18:08:17]OFD Sender: No OFD packet to send [18:08:22]OFD Sender: No OFD packet to send [18:08:27]OFD Sender: No OFD packet to send [18:08:32]OFD Sender: No OFD packet to send [18:08:37]OFD Sender: No OFD packet to send [18:08:42]OFD Sender: No OFD packet to send [18:08:47]OFD Sender: No OFD packet to send [18:08:52]OFD Sender: No OFD packet to send [18:08:57]OFD Sender: No OFD packet to send [18:09:02]OFD Sender: No OFD packet to send [18:09:07]OFD Sender: No OFD packet to send [18:09:12]OFD Sender: No OFD packet to send [18:09:17]OFD Sender: No OFD packet to send [18:09:22]OFD Sender: No OFD packet to send [18:09:27]OFD Sender: No OFD packet to send [18:09:32]OFD Sender: No OFD packet to send [18:09:37]OFD Sender: No OFD packet to send [18:09:42]OFD Sender: No OFD packet to send [18:09:42]accept exits with 7 [18:09:42]New connection [18:09:42]New thread 3067362660 created [18:09:42]Thread 3067219300 joined [18:09:42]Waiting for new connection... [18:09:42] Sock 7.Parse request [18:09:42]Sock 7.Check first char [18:09:42]Sock 7.First char is OK [18:09:42]request: POST /json_proto HTTP/1.0 [18:09:42]Method: POST [18:09:42]URL: /json_proto [18:09:42]Method is POST - this is cgi request [18:09:42]url: /json_proto [18:09:42]query_string will be loaded in cgi processing [18:09:42]execute_cgi json_proto POST (null) [18:09:42]execute_cgi path=json_proto method=POST [18:09:42]POST find Content-Length [18:09:42]Host: 172.17.44.195:8080 [18:09:42]Content-Length: 680 [18:09:42]Content-Type: application/json [18:09:42] [18:09:42]POST finish read [18:09:42]Found Content-Length = 680 [18:09:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963209", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 31.500, "sum" : 2400.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2400.00, "total" : 2400.00, "payments": [ { "type": 0, "sum" : 2400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:09:42]execute_script... [18:09: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)1963209", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 31.500, "sum" : 2400.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2400.00, "total" : 2400.00, "payments": [ { "type": 0, "sum" : 2400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:09:42]POST & json_proto [18:09:42]process_json_proto [18:09:42]json parsed OK: [18:09:42]protocol is kg_v1.0 [18:09:42]action value=close_receipt [18:09:42]process_action close_receipt [18:09:42]cmd_close_receipt [18:09:42]MH_GetDate [18:09:42]Write to MH i2c: F0 00 00 76 16 7B [18:09:42]Write i2c OK [18:09:42]MH_I2C_Read... [18:09:42]Read from MH i2c: F0 [18:09:42]MH_I2C_Read... [18:09:42]Read from MH i2c: F0 09 00 [18:09:42]MH_I2C_Read... [18:09:42]Read from MH i2c: F0 09 00 76 16 00 68 47 15 67 82 C9 CF 66 2F [18:09:42]GetLastDocTimeStamp 1729447661 [18:09:42]current date 1729447784 [18:09:42]FM_GetShiftState [18:09:42]SAM_PROTO_GetShiftState [18:09:42]wFMCommunicate request_size=4 [18:09:42]MH_SAM_APDU [18:09:42]CAPDU: 80 13 01 00 [18:09:42]Write to MH i2c: E2 08 00 77 16 80 13 01 00 00 00 00 00 0A [18:09:42]Write i2c OK [18:09:42]MH_I2C_Read... [18:09:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:09:42]Read from MH i2c: E2 [18:09:42]MH_I2C_Read... [18:09:42]Read from MH i2c: E2 0E 00 [18:09:42]MH_I2C_Read... [18:09:42]Read from MH i2c: E2 0E 00 77 16 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 24 [18:09:42]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:09:42]wFMCommunicate OK [18:09:42]SAM_PROTO_GetShiftState done [18:09:42]FM_GetShiftState done [18:09:42]opened in 1729383750 [18:09:42]opened+sec_in_day 1729470150 [18:09:42]quantity*price = 240030 [18:09:42]sum+1 = 240031 [18:09:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 2400.00 Внесено: 2400.00 СДАЧА: 0.00 НСП 1% : 21.24 НДС 12% : 254.90 Наличными: 2400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 421 20.10.2024 18:09 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227573 ФПД: 26301154947838 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T180944&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227573&fm=26301154947838&tin=02508201610067®Number=0000000000091685&sum=240000 [18:09:43]StoreToDocumentArchive [18:09:43]shift 533 fd 227573 [18:09:43]save to /storage/0533/doc_00227573 [18:09:43]save last doc name /storage/0533/doc_00227573 to /storage/kkm_last_doc_name [18:09:43]save OK [18:09:43]Clear old archive folders... [18:09:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:09:43]tlvbuf is 00DAF260 [18:09:43]SAM_PROTO_ClearQueue [18:09:43]wFMCommunicate request_size=4 [18:09:43]MH_SAM_APDU [18:09:43]CAPDU: 80 09 00 00 [18:09:43]Write to MH i2c: E2 08 00 84 16 80 09 00 00 00 00 00 00 0C [18:09:43]Write i2c OK [18:09:43]MH_I2C_Read... [18:09:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:09:43]Read from MH i2c: E2 [18:09:43]MH_I2C_Read... [18:09:43]Read from MH i2c: E2 03 00 [18:09:43]MH_I2C_Read... [18:09:43]Read from MH i2c: E2 03 00 84 16 00 90 00 0E [18:09:43]RAPDU: 90 00 [18:09:43]wFMCommunicate OK [18:09:43]SAM_PROTO_ClearQueue done [18:09:43]KKMCreateOFDPacket [18:09:43]OFDProtocolAddRootSTLVToBuf [18:09:43]FM_MakeSignedData [18:09:43]FM_MakeSignedData [18:09:43]SAM_PROTO_SignData [18:09:43]wFMCommunicate request_size=4 [18:09:43]MH_SAM_APDU [18:09:43]CAPDU: 80 0D 01 02 [18:09:43]Write to MH i2c: E2 08 00 85 16 80 0D 01 02 00 00 00 00 14 [18:09:43]Write i2c OK [18:09:43]MH_I2C_Read... [18:09:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:09:43]Read from MH i2c: E2 [18:09:43]MH_I2C_Read... [18:09:43]Read from MH i2c: E2 03 00 [18:09:43]MH_I2C_Read... [18:09:43]Read from MH i2c: E2 03 00 85 16 00 90 00 0F [18:09:43]RAPDU: 90 00 [18:09:43]wFMCommunicate OK [18:09:43]wFMCommunicate request_size=255 [18:09:43]MH_SAM_APDU [18:09:43]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C 7B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9E A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 63 00 00 00 00 07 04 06 00 80 A9 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 01 00 00 F4 03 04 00 68 47 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F5 78 03 00 35 04 06 00 17 EB B6 FF [18:09:43]Write to MH i2c: E2 02 01 86 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 0C 7B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9E A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 63 00 00 00 00 07 04 06 00 80 A9 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 01 00 00 F4 03 04 00 68 47 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F5 78 03 00 35 04 06 00 17 EB B6 FF 00 00 DB [18:09:43]Write i2c OK [18:09:43]MH_I2C_Read... [18:09:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:09:44]Read from MH i2c: E2 [18:09:44]MH_I2C_Read... [18:09:44]Read from MH i2c: E2 03 00 [18:09:44]MH_I2C_Read... [18:09:44]Read from MH i2c: E2 03 00 86 16 00 90 00 10 [18:09:44]RAPDU: 90 00 [18:09:44]wFMCommunicate OK [18:09:44]wFMCommunicate request_size=7 [18:09:44]MH_SAM_APDU [18:09:44]CAPDU: 80 0D 02 02 02 72 FE [18:09:44]Write to MH i2c: E2 0A 00 87 16 80 0D 02 02 02 00 72 FE 00 00 8B [18:09:44]Write i2c OK [18:09:44]MH_I2C_Read... [18:09:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:09:44]Read from MH i2c: E2 [18:09:44]MH_I2C_Read... [18:09:44]Read from MH i2c: E2 03 00 [18:09:44]MH_I2C_Read... [18:09:44]Read from MH i2c: E2 03 00 87 16 00 90 00 11 [18:09:44]RAPDU: 90 00 [18:09:44]wFMCommunicate OK [18:09:44]wFMCommunicate request_size=4 [18:09:44]MH_SAM_APDU [18:09:44]CAPDU: 80 0D 03 02 [18:09:44]Write to MH i2c: E2 08 00 88 16 80 0D 03 02 00 00 00 00 19 [18:09:44]Write i2c OK [18:09:44]MH_I2C_Read... [18:09:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:09:44]Read from MH i2c: E2 [18:09:44]MH_I2C_Read... [18:09:44]Read from MH i2c: E2 0B 00 [18:09:44]MH_I2C_Read... [18:09:44]Read from MH i2c: E2 0B 00 88 16 00 AF 3E 29 C5 87 45 7F 0D 90 00 4D [18:09:44]RAPDU: AF 3E 29 C5 87 45 7F 0D 90 00 [18:09:44]wFMCommunicate OK [18:09:44]SAM_PROTO_SignData done [18:09:44]FM_MakeSignedData done [18:09:44]CreateOFDProtocolMessage [18:09:44]wFMCommunicate request_size=4 [18:09:44]MH_SAM_APDU [18:09:44]CAPDU: 80 11 00 00 [18:09:44]Write to MH i2c: E2 08 00 89 16 80 11 00 00 00 00 00 00 19 [18:09:44]Write i2c OK [18:09:44]MH_I2C_Read... [18:09:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:09:44]Read from MH i2c: E2 [18:09:44]MH_I2C_Read... [18:09:44]Read from MH i2c: E2 17 00 [18:09:44]MH_I2C_Read... [18:09:44]Read from MH i2c: E2 17 00 89 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 70 [18:09:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:09:44]wFMCommunicate OK [18:09:44]CreateOFDProtocolMessage done [18:09:44]OFDSenderStorePacket 227573 [18:09:44]StoreOFDPacket docnum=227573 [18:09:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 33 DD 04 01 2F 4C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C 7B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9E A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 63 00 00 00 00 07 04 06 00 80 A9 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 01 00 00 F4 03 04 00 68 47 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F5 78 03 00 35 04 06 00 17 EB B6 FF 72 FE AF 3E 29 C5 87 45 7F 0D [18:09:44]CheckFolder [18:09:44]dirname=/storage/ofd_packets [18:09:44]CheckFolder done [18:09:44]ProducePacketName [18:09:44]name=ofd_packets/00227573 [18:09:44]NVStorageSaveData ofd_packets/00227573 [18:09:44]File name is /storage/ofd_packets/00227573 [18:09:44]Write 298 bytes [18:09:44]NVStorageSaveData done [18:09:44]OFDSenderStorePacket done [18:09:44]KKMCreateOFDPacket done [18:09:44]NVStorageSaveData kkm_last_timestamp [18:09:44]File name is /storage/kkm_last_timestamp [18:09:44]Write 4 bytes [18:09:44]NVStorageSaveData done [18:09:44]ExternCall_PrintAddStr [18:09:44]wPrintStart [18:09:44]Write to MH i2c: 01 00 00 8A 16 A0 [18:09:44]Write i2c OK [18:09:44]MH_I2C_Read... [18:09:44]Read from MH i2c: 01 [18:09:44]MH_I2C_Read... [18:09:44]Read from MH i2c: 01 07 00 [18:09:44]MH_I2C_Read... [18:09:44]Read from MH i2c: 01 07 00 8A 16 00 00 00 00 00 FF 0F B5 [18:09:44]RasterBufferAndPrint [18:09:44]line Счет N : (1)1963209 [18:09:44]line ИНН: 02508201610067 [18:09:44]line Контрольно-Кассовый Чек [18:09:44]line ПРОДАЖА [18:09:44]line ТРК (МРК, ГНК) : 61 [18:09:44]line Товар: 2710194210 [18:09:44]line ДТ-К-5 [18:09:44]line 31.500 * 76.20 [18:09:44]line = 2400.30 [18:09:44]line НДС 12% НСП 1% [18:09:44]line > о реализуемом товаре [18:09:44]line ОКРУГЛЕНИЕ: -0.30 [18:09:44]line ИТОГО: 2400.00 [18:09:44]line Внесено: 2400.00 [18:09:44]line СДАЧА: 0.00 [18:09:44]line НСП 1% : 21.24 [18:09:44]line НДС 12% : 254.90 [18:09:44]line Наличными: 2400.00 [18:09:44]line Безнал.: 0.00 [18:09:44]line Место: АЗС № 133 "Партнер Нефть" [18:09:44]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:09:44]line СНО: Общий режим [18:09:44]line Чек 421 20.10.2024 18:09 [18:09:44]line Смена: 533 ФФД: 1.0 [18:09:44]line ЗНМ: 0300000091 [18:09:44]line РНМ: 0000000000091685 [18:09:44]line Версия ККМ: 001 [18:09:44]line ФМ: 0000000000871839 [18:09:44]line ФД: 227573 [18:09:44]line ФПД: 26301154947838 [18:09:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T180944&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227573&fm=26301154947838&tin=02508201610067®Number=0000000000091685&sum=240000 [18:09:44]OFD Sender: Processing packet 227573 [packets to send 38, broken 37] [18:09:44]ProducePacketName [18:09:44]name=ofd_packets/00227573 [18:09:44]OFD Sender: To server: pG, [18:09:44]CommunicateWithHost lk.salyk.kg:30040 [18:09:44]ConnectInit lk.salyk.kg [18:09:44]written 0, free lines is 4095 [18:09:44]Connected sock=10 [18:09:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 33 DD 04 01 2F 4C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C 7B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9E A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 63 00 00 00 00 07 04 06 00 80 A9 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 01 00 00 F4 03 04 00 68 47 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F5 78 03 00 35 04 06 00 17 EB B6 FF 72 FE AF 3E 29 C5 87 45 7F 0D [18:09:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 12 BD 47 00 5A 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 33 39 10 04 04 00 F5 78 03 00 F4 03 04 00 66 F2 14 67 B6 04 01 00 00 EB 06 B5 67 49 5F 1E F6 [18:09:44]CommunicateWithHost err = 0 [18:09:44]CheckOFDResponse [18:09:44]1017 (14) - 77093643461234 [18:09:44]1041 (16) - 0000000000871839 [18:09:44]1040 (4) - 227573 [18:09:44]1012 (4) - 20.10.2024 12:07 [18:09:44]1206 (1) - 0 [18:09:44]OFD Sender: Remove packet 227573 [18:09:44]ProducePacketName [18:09:44]name=ofd_packets/00227573 [18:09:44]NVStorageDeleteData [18:09:45]Write to MH i2c: 01 00 00 B4 16 CA [18:09:45]Write i2c OK [18:09:45]MH_I2C_Read... [18:09:45]Read from MH i2c: 01 [18:09:45]MH_I2C_Read... [18:09:45]Read from MH i2c: 01 07 00 [18:09:45]MH_I2C_Read... [18:09:45]Read from MH i2c: 01 07 00 B4 16 00 00 00 00 00 0B 0D E9 [18:09:45]RasterBufferAndPrint [18:09:45]line [18:09:45]line [18:09:45]line [18:09:45]line [18:09:45]line [18:09:45]written 0, free lines is 3346 [18:09:45]process_action close_receipt done [18:09:45]requested_data is exist [18:09:45]produce_requested_data [18:09:45]requested_item fm.sn is exist - process it [18:09:45]wFMCommunicate request_size=4 [18:09:45]MH_SAM_APDU [18:09:45]CAPDU: 80 11 00 00 [18:09:45]Write to MH i2c: E2 08 00 BB 16 80 11 00 00 00 00 00 00 4B [18:09:45]Write i2c OK [18:09:45]MH_I2C_Read... [18:09:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:09:45]Read from MH i2c: E2 [18:09:45]MH_I2C_Read... [18:09:45]Read from MH i2c: E2 17 00 [18:09:45]MH_I2C_Read... [18:09:45]Read from MH i2c: E2 17 00 BB 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A2 [18:09:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:09:45]wFMCommunicate OK [18:09:45]requested_item fd.num is exist - process it [18:09:45]SAM_PROTO_GetFieldsCounters [18:09:45]wFMCommunicate request_size=4 [18:09:45]MH_SAM_APDU [18:09:45]CAPDU: 80 13 00 00 [18:09:45]Write to MH i2c: E2 08 00 BC 16 80 13 00 00 00 00 00 00 4E [18:09:45]Write i2c OK [18:09:45]MH_I2C_Read... [18:09:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:09:45]Read from MH i2c: E2 [18:09:45]MH_I2C_Read... [18:09:45]Read from MH i2c: E2 62 00 [18:09:45]MH_I2C_Read... [18:09:45]Read from MH i2c: E2 62 00 BC 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F5 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 A5 01 00 00 5E 04 04 00 A5 01 00 00 57 04 04 00 A6 01 00 00 19 04 04 00 00 00 00 00 90 00 F0 [18:09: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F5 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 A5 01 00 00 5E 04 04 00 A5 01 00 00 57 04 04 00 A6 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:09:45]wFMCommunicate OK [18:09:45]SAM_PROTO_GetFieldsCounters done [18:09:45]requested_item shift.num is exist - process it [18:09:45]requested_item shift.opened is exist - process it [18:09:45]req_shift_opened [18:09:45]FM_GetShiftState [18:09:45]SAM_PROTO_GetShiftState [18:09:45]wFMCommunicate request_size=4 [18:09:45]MH_SAM_APDU [18:09:45]CAPDU: 80 13 01 00 [18:09:45]Write to MH i2c: E2 08 00 BD 16 80 13 01 00 00 00 00 00 50 [18:09:45]Write i2c OK [18:09:45]MH_I2C_Read... [18:09:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:09:45]Read from MH i2c: E2 [18:09:45]MH_I2C_Read... [18:09:45]Read from MH i2c: E2 0E 00 [18:09:45]MH_I2C_Read... [18:09:45]Read from MH i2c: E2 0E 00 BD 16 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 6A [18:09:45]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:09:45]wFMCommunicate OK [18:09:45]SAM_PROTO_GetShiftState done [18:09:45]FM_GetShiftState done [18:09:45]req_shift_opened done [18:09:45]requested_item shift.open_date is exist - process it [18:09:45]req_shift_open_date [18:09:45]req_shift_open_date done [18:09:45]produce_requested_data done [18:09:45]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227573,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [18:09:45]process_action_free close_receipt [18:09:45]json_value_free [18:09:45]json_value_free done [18:09:45]process_json_proto returns [18:09:45]Send response to host [18:09:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227573,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [18:09:45]free response buf [18:09:45]execute_script done [18:09:45]execute_script returns [18:09:45]free content buf [18:09:45]Sock 7.Close socket [18:09:45]Sock 7.Thread stoped [18:09:45]OFD Sender: No OFD packet to send [18:09:50]OFD Sender: No OFD packet to send [18:09:55]OFD Sender: No OFD packet to send [18:10:00]OFD Sender: No OFD packet to send [18:10:05]OFD Sender: No OFD packet to send [18:10:10]OFD Sender: No OFD packet to send [18:10:15]OFD Sender: No OFD packet to send [18:10:20]OFD Sender: No OFD packet to send [18:10:25]OFD Sender: No OFD packet to send [18:10:30]OFD Sender: No OFD packet to send [18:10:35]OFD Sender: No OFD packet to send [18:10:40]OFD Sender: No OFD packet to send [18:10:45]OFD Sender: No OFD packet to send [18:10:50]OFD Sender: No OFD packet to send [18:10:52]accept exits with 9 [18:10:52]New connection [18:10:52]New thread 3067219300 created [18:10:52]Thread 3067362660 joined [18:10:52]Waiting for new connection... [18:10:52] Sock 9.Parse request [18:10:52]Sock 9.Check first char [18:10:52]Sock 9.First char is OK [18:10:52]request: POST /json_proto HTTP/1.0 [18:10:52]Method: POST [18:10:52]URL: /json_proto [18:10:52]Method is POST - this is cgi request [18:10:52]url: /json_proto [18:10:52]query_string will be loaded in cgi processing [18:10:52]execute_cgi json_proto POST (null) [18:10:52]execute_cgi path=json_proto method=POST [18:10:52]POST find Content-Length [18:10:52]Host: 172.17.44.195:8080 [18:10:52]Content-Length: 683 [18:10:52]Content-Type: application/json [18:10:52] [18:10:52]POST finish read [18:10:52]Found Content-Length = 683 [18:10:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963210", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:52]execute_script... [18:10: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)1963210", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:52]POST & json_proto [18:10:52]process_json_proto [18:10:52]json parsed OK: [18:10:52]protocol is kg_v1.0 [18:10:52]action value=close_receipt [18:10:52]process_action close_receipt [18:10:52]cmd_close_receipt [18:10:52]MH_GetDate [18:10:52]Write to MH i2c: F0 00 00 BE 16 C3 [18:10:52]Write i2c OK [18:10:52]MH_I2C_Read... [18:10:52]Read from MH i2c: F0 [18:10:52]MH_I2C_Read... [18:10:52]Read from MH i2c: F0 09 00 [18:10:52]MH_I2C_Read... [18:10:52]Read from MH i2c: F0 09 00 BE 16 00 AE 47 15 67 82 C9 CF 66 BD [18:10:52]GetLastDocTimeStamp 1729447784 [18:10:52]current date 1729447854 [18:10:52]FM_GetShiftState [18:10:52]SAM_PROTO_GetShiftState [18:10:52]wFMCommunicate request_size=4 [18:10:52]MH_SAM_APDU [18:10:52]CAPDU: 80 13 01 00 [18:10:52]Write to MH i2c: E2 08 00 BF 16 80 13 01 00 00 00 00 00 52 [18:10:52]Write i2c OK [18:10:52]MH_I2C_Read... [18:10:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:52]Read from MH i2c: E2 [18:10:52]MH_I2C_Read... [18:10:52]Read from MH i2c: E2 0E 00 [18:10:52]MH_I2C_Read... [18:10:52]Read from MH i2c: E2 0E 00 BF 16 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 6C [18:10:52]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:10:52]wFMCommunicate OK [18:10:52]SAM_PROTO_GetShiftState done [18:10:52]FM_GetShiftState done [18:10:52]opened in 1729383750 [18:10:52]opened+sec_in_day 1729470150 [18:10:52]quantity*price = 100015 [18:10:52]sum+1 = 100017 [18:10:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 422 20.10.2024 18:10 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227574 ФПД: 186875913856151 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T181054&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227574&fm=186875913856151&tin=02508201610067®Number=0000000000091685&sum=100000 [18:10:53]StoreToDocumentArchive [18:10:53]shift 533 fd 227574 [18:10:53]save to /storage/0533/doc_00227574 [18:10:53]save last doc name /storage/0533/doc_00227574 to /storage/kkm_last_doc_name [18:10:53]save OK [18:10:53]Clear old archive folders... [18:10:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:10:53]tlvbuf is B6F0C360 [18:10:53]SAM_PROTO_ClearQueue [18:10:53]wFMCommunicate request_size=4 [18:10:53]MH_SAM_APDU [18:10:53]CAPDU: 80 09 00 00 [18:10:53]Write to MH i2c: E2 08 00 CC 16 80 09 00 00 00 00 00 00 54 [18:10:53]Write i2c OK [18:10:53]MH_I2C_Read... [18:10:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:10:53]Read from MH i2c: E2 [18:10:53]MH_I2C_Read... [18:10:53]Read from MH i2c: E2 03 00 [18:10:53]MH_I2C_Read... [18:10:53]Read from MH i2c: E2 03 00 CC 16 00 90 00 56 [18:10:53]RAPDU: 90 00 [18:10:53]wFMCommunicate OK [18:10:53]SAM_PROTO_ClearQueue done [18:10:53]KKMCreateOFDPacket [18:10:53]OFDProtocolAddRootSTLVToBuf [18:10:53]FM_MakeSignedData [18:10:53]FM_MakeSignedData [18:10:53]SAM_PROTO_SignData [18:10:53]wFMCommunicate request_size=4 [18:10:53]MH_SAM_APDU [18:10:53]CAPDU: 80 0D 01 02 [18:10:53]Write to MH i2c: E2 08 00 CD 16 80 0D 01 02 00 00 00 00 5C [18:10:53]Write i2c OK [18:10:53]MH_I2C_Read... [18:10:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:10:53]Read from MH i2c: E2 [18:10:53]MH_I2C_Read... [18:10:53]Read from MH i2c: E2 03 00 [18:10:53]MH_I2C_Read... [18:10:53]Read from MH i2c: E2 03 00 CD 16 00 90 00 57 [18:10:53]RAPDU: 90 00 [18:10:53]wFMCommunicate OK [18:10:53]wFMCommunicate request_size=255 [18:10:53]MH_SAM_APDU [18:10:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 01 00 00 F4 03 04 00 AE 47 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F6 78 03 00 35 04 06 00 A9 [18:10:53]Write to MH i2c: E2 02 01 CE 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 01 00 00 F4 03 04 00 AE 47 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F6 78 03 00 35 04 06 00 A9 00 00 36 [18:10:53]Write i2c OK [18:10:53]MH_I2C_Read... [18:10:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:54]Read from MH i2c: E2 [18:10:54]MH_I2C_Read... [18:10:54]Read from MH i2c: E2 03 00 [18:10:54]MH_I2C_Read... [18:10:54]Read from MH i2c: E2 03 00 CE 16 00 90 00 58 [18:10:54]RAPDU: 90 00 [18:10:54]wFMCommunicate OK [18:10:54]wFMCommunicate request_size=10 [18:10:54]MH_SAM_APDU [18:10:54]CAPDU: 80 0D 02 02 05 F6 70 76 64 97 [18:10:54]Write to MH i2c: E2 0D 00 CF 16 80 0D 02 02 05 00 F6 70 76 64 97 00 00 40 [18:10:54]Write i2c OK [18:10:54]MH_I2C_Read... [18:10:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:54]Read from MH i2c: E2 [18:10:54]MH_I2C_Read... [18:10:54]Read from MH i2c: E2 03 00 [18:10:54]MH_I2C_Read... [18:10:54]Read from MH i2c: E2 03 00 CF 16 00 90 00 59 [18:10:54]RAPDU: 90 00 [18:10:54]wFMCommunicate OK [18:10:54]wFMCommunicate request_size=4 [18:10:54]MH_SAM_APDU [18:10:54]CAPDU: 80 0D 03 02 [18:10:54]Write to MH i2c: E2 08 00 D0 16 80 0D 03 02 00 00 00 00 61 [18:10:54]Write i2c OK [18:10:54]MH_I2C_Read... [18:10:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:10:54]Read from MH i2c: E2 [18:10:54]MH_I2C_Read... [18:10:54]Read from MH i2c: E2 0B 00 [18:10:54]MH_I2C_Read... [18:10:54]Read from MH i2c: E2 0B 00 D0 16 00 7E 04 FB 60 9C 36 CD 82 90 00 60 [18:10:54]RAPDU: 7E 04 FB 60 9C 36 CD 82 90 00 [18:10:54]wFMCommunicate OK [18:10:54]SAM_PROTO_SignData done [18:10:54]FM_MakeSignedData done [18:10:54]CreateOFDProtocolMessage [18:10:54]wFMCommunicate request_size=4 [18:10:54]MH_SAM_APDU [18:10:54]CAPDU: 80 11 00 00 [18:10:54]Write to MH i2c: E2 08 00 D1 16 80 11 00 00 00 00 00 00 61 [18:10:54]Write i2c OK [18:10:54]MH_I2C_Read... [18:10:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:54]Read from MH i2c: E2 [18:10:54]MH_I2C_Read... [18:10:54]Read from MH i2c: E2 17 00 [18:10:54]MH_I2C_Read... [18:10:54]Read from MH i2c: E2 17 00 D1 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B8 [18:10:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:10:54]wFMCommunicate OK [18:10:54]CreateOFDProtocolMessage done [18:10:54]OFDSenderStorePacket 227574 [18:10:54]StoreOFDPacket docnum=227574 [18:10:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 0C C3 07 01 E5 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 01 00 00 F4 03 04 00 AE 47 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F6 78 03 00 35 04 06 00 A9 F6 70 76 64 97 7E 04 FB 60 9C 36 CD 82 [18:10:54]CheckFolder [18:10:54]dirname=/storage/ofd_packets [18:10:54]CheckFolder done [18:10:54]ProducePacketName [18:10:54]name=ofd_packets/00227574 [18:10:54]NVStorageSaveData ofd_packets/00227574 [18:10:54]File name is /storage/ofd_packets/00227574 [18:10:54]Write 301 bytes [18:10:54]NVStorageSaveData done [18:10:54]OFDSenderStorePacket done [18:10:54]KKMCreateOFDPacket done [18:10:54]NVStorageSaveData kkm_last_timestamp [18:10:54]File name is /storage/kkm_last_timestamp [18:10:54]Write 4 bytes [18:10:54]NVStorageSaveData done [18:10:54]OFD Sender: Processing packet 227574 [packets to send 38, broken 37] [18:10:54]ProducePacketName [18:10:54]name=ofd_packets/00227574 [18:10:54]OFD Sender: To server: pG, [18:10:54]CommunicateWithHost lk.salyk.kg:30040 [18:10:54]ConnectInit lk.salyk.kg [18:10:54]ExternCall_PrintAddStr [18:10:54]wPrintStart [18:10:54]Write to MH i2c: 01 00 00 D2 16 E8 [18:10:54]Write i2c OK [18:10:54]MH_I2C_Read... [18:10:54]Read from MH i2c: 01 [18:10:54]MH_I2C_Read... [18:10:54]Read from MH i2c: 01 07 00 [18:10:54]MH_I2C_Read... [18:10:54]Read from MH i2c: 01 07 00 D2 16 00 00 00 00 00 FF 0F FD [18:10:54]RasterBufferAndPrint [18:10:54]line Счет N : (1)1963210 [18:10:54]line ИНН: 02508201610067 [18:10:54]line Контрольно-Кассовый Чек [18:10:54]line ПРОДАЖА [18:10:54]line ТРК (МРК, ГНК) : 33 [18:10:54]line Товар: 2710124130 [18:10:54]line Аи-92-К-5 [18:10:54]line 14.950 * 66.90 [18:10:54]line = 1000.16 [18:10:54]line НДС 12% НСП 1% [18:10:54]line > о реализуемом товаре [18:10:54]line ОКРУГЛЕНИЕ: -0.16 [18:10:54]line ИТОГО: 1000.00 [18:10:54]line Внесено: 1000.00 [18:10:54]line СДАЧА: 0.00 [18:10:54]line НСП 1% : 8.85 [18:10:54]line НДС 12% : 106.21 [18:10:54]line Наличными: 1000.00 [18:10:54]line Безнал.: 0.00 [18:10:54]line Место: АЗС № 133 "Партнер Нефть" [18:10:54]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:10:54]line СНО: Общий режим [18:10:54]line Чек 422 20.10.2024 18:10 [18:10:54]line Смена: 533 ФФД: 1.0 [18:10:54]line ЗНМ: 0300000091 [18:10:54]line РНМ: 0000000000091685 [18:10:54]line Версия ККМ: 001 [18:10:54]line ФМ: 0000000000871839 [18:10:54]line ФД: 227574 [18:10:54]line ФПД: 186875913856151 [18:10:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T181054&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227574&fm=186875913856151&tin=02508201610067®Number=0000000000091685&sum=100000 [18:10:54]Connected sock=11 [18:10: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 33 39 0F 01 00 00 0C C3 07 01 E5 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 01 00 00 F4 03 04 00 AE 47 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F6 78 03 00 35 04 06 00 A9 F6 70 76 64 97 7E 04 FB 60 9C 36 CD 82 [18:10:54]written 0, free lines is 4095 [18:10: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 33 39 4F 00 00 00 CE 3B 47 00 C9 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F6 78 03 00 F4 03 04 00 AC F2 14 67 B6 04 01 00 00 11 CD D5 28 E0 D6 37 B3 [18:10:54]CommunicateWithHost err = 0 [18:10:54]CheckOFDResponse [18:10:54]1017 (14) - 77093643461234 [18:10:54]1041 (16) - 0000000000871839 [18:10:54]1040 (4) - 227574 [18:10:54]1012 (4) - 20.10.2024 12:08 [18:10:54]1206 (1) - 0 [18:10:54]OFD Sender: Remove packet 227574 [18:10:54]ProducePacketName [18:10:54]name=ofd_packets/00227574 [18:10:54]NVStorageDeleteData [18:10:54]Write to MH i2c: 01 00 00 FC 16 12 [18:10:54]Write i2c OK [18:10:54]MH_I2C_Read... [18:10:54]Read from MH i2c: 01 [18:10:54]MH_I2C_Read... [18:10:54]Read from MH i2c: 01 07 00 [18:10:54]MH_I2C_Read... [18:10:54]Read from MH i2c: 01 07 00 FC 16 00 00 00 00 00 FF 0C 24 [18:10:54]RasterBufferAndPrint [18:10:54]line [18:10:54]line [18:10:54]line [18:10:54]line [18:10:54]line [18:10:54]written 0, free lines is 3333 [18:10:54]process_action close_receipt done [18:10:54]requested_data is exist [18:10:54]produce_requested_data [18:10:54]requested_item fm.sn is exist - process it [18:10:54]wFMCommunicate request_size=4 [18:10:54]MH_SAM_APDU [18:10:54]CAPDU: 80 11 00 00 [18:10:54]Write to MH i2c: E2 08 00 03 17 80 11 00 00 00 00 00 00 94 [18:10:54]Write i2c OK [18:10:54]MH_I2C_Read... [18:10:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:55]Read from MH i2c: E2 [18:10:55]MH_I2C_Read... [18:10:55]Read from MH i2c: E2 17 00 [18:10:55]MH_I2C_Read... [18:10:55]Read from MH i2c: E2 17 00 03 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 EB [18:10:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:10:55]wFMCommunicate OK [18:10:55]requested_item fd.num is exist - process it [18:10:55]SAM_PROTO_GetFieldsCounters [18:10:55]wFMCommunicate request_size=4 [18:10:55]MH_SAM_APDU [18:10:55]CAPDU: 80 13 00 00 [18:10:55]Write to MH i2c: E2 08 00 04 17 80 13 00 00 00 00 00 00 97 [18:10:55]Write i2c OK [18:10:55]MH_I2C_Read... [18:10:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:10:55]Read from MH i2c: E2 [18:10:55]MH_I2C_Read... [18:10:55]Read from MH i2c: E2 62 00 [18:10:55]MH_I2C_Read... [18:10:55]Read from MH i2c: E2 62 00 04 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F6 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 A6 01 00 00 5E 04 04 00 A6 01 00 00 57 04 04 00 A7 01 00 00 19 04 04 00 00 00 00 00 90 00 3D [18:10: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F6 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 A6 01 00 00 5E 04 04 00 A6 01 00 00 57 04 04 00 A7 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:10:55]wFMCommunicate OK [18:10:55]SAM_PROTO_GetFieldsCounters done [18:10:55]requested_item shift.num is exist - process it [18:10:55]requested_item shift.opened is exist - process it [18:10:55]req_shift_opened [18:10:55]FM_GetShiftState [18:10:55]SAM_PROTO_GetShiftState [18:10:55]wFMCommunicate request_size=4 [18:10:55]MH_SAM_APDU [18:10:55]CAPDU: 80 13 01 00 [18:10:55]Write to MH i2c: E2 08 00 05 17 80 13 01 00 00 00 00 00 99 [18:10:55]OFD Sender: No OFD packet to send [18:10:55]Write i2c OK [18:10:55]MH_I2C_Read... [18:10:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:55]Read from MH i2c: E2 [18:10:55]MH_I2C_Read... [18:10:55]Read from MH i2c: E2 0E 00 [18:10:55]MH_I2C_Read... [18:10:55]Read from MH i2c: E2 0E 00 05 17 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 B3 [18:10:55]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:10:55]wFMCommunicate OK [18:10:55]SAM_PROTO_GetShiftState done [18:10:55]FM_GetShiftState done [18:10:55]req_shift_opened done [18:10:55]requested_item shift.open_date is exist - process it [18:10:55]req_shift_open_date [18:10:55]req_shift_open_date done [18:10:55]produce_requested_data done [18:10:55]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227574,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [18:10:55]process_action_free close_receipt [18:10:55]json_value_free [18:10:55]json_value_free done [18:10:55]process_json_proto returns [18:10:55]Send response to host [18:10:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227574,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [18:10:55]free response buf [18:10:55]execute_script done [18:10:55]execute_script returns [18:10:55]free content buf [18:10:55]Sock 9.Close socket [18:10:55]Sock 9.Thread stoped [18:11:00]OFD Sender: No OFD packet to send [18:11:05]OFD Sender: No OFD packet to send [18:11:10]OFD Sender: No OFD packet to send [18:11:15]OFD Sender: No OFD packet to send [18:11:20]OFD Sender: No OFD packet to send [18:11:25]OFD Sender: No OFD packet to send [18:11:30]OFD Sender: No OFD packet to send [18:11:35]OFD Sender: No OFD packet to send [18:11:40]OFD Sender: No OFD packet to send [18:11:45]OFD Sender: No OFD packet to send [18:11:50]OFD Sender: No OFD packet to send [18:11:55]OFD Sender: No OFD packet to send [18:12:00]OFD Sender: No OFD packet to send [18:12:05]OFD Sender: No OFD packet to send [18:12:10]OFD Sender: No OFD packet to send [18:12:15]OFD Sender: No OFD packet to send [18:12:20]OFD Sender: No OFD packet to send [18:12:25]OFD Sender: No OFD packet to send [18:12:30]OFD Sender: No OFD packet to send [18:12:35]OFD Sender: No OFD packet to send [18:12:40]OFD Sender: No OFD packet to send [18:12:45]OFD Sender: No OFD packet to send [18:12:50]OFD Sender: No OFD packet to send [18:12:55]OFD Sender: No OFD packet to send [18:13:00]OFD Sender: No OFD packet to send [18:13:05]OFD Sender: No OFD packet to send [18:13:10]OFD Sender: No OFD packet to send [18:13:15]OFD Sender: No OFD packet to send [18:13:20]OFD Sender: No OFD packet to send [18:13:25]OFD Sender: No OFD packet to send [18:13:30]OFD Sender: No OFD packet to send [18:13:35]OFD Sender: No OFD packet to send [18:13:40]OFD Sender: No OFD packet to send [18:13:45]OFD Sender: No OFD packet to send [18:13:50]OFD Sender: No OFD packet to send [18:13:55]OFD Sender: No OFD packet to send [18:14:00]OFD Sender: No OFD packet to send [18:14:05]OFD Sender: No OFD packet to send [18:14:10]OFD Sender: No OFD packet to send [18:14:15]OFD Sender: No OFD packet to send [18:14:20]OFD Sender: No OFD packet to send [18:14:25]OFD Sender: No OFD packet to send [18:14:30]OFD Sender: No OFD packet to send [18:14:35]OFD Sender: No OFD packet to send [18:14:40]OFD Sender: No OFD packet to send [18:14:45]OFD Sender: No OFD packet to send [18:14:50]OFD Sender: No OFD packet to send [18:14:55]OFD Sender: No OFD packet to send [18:14:57]accept exits with 7 [18:14:57]New connection [18:14:57]New thread 3067362660 created [18:14:57]Thread 3067219300 joined [18:14:57]Waiting for new connection... [18:14:57] Sock 7.Parse request [18:14:57]Sock 7.Check first char [18:14:57]Sock 7.First char is OK [18:14:57]request: POST /json_proto HTTP/1.0 [18:14:57]Method: POST [18:14:57]URL: /json_proto [18:14:57]Method is POST - this is cgi request [18:14:57]url: /json_proto [18:14:57]query_string will be loaded in cgi processing [18:14:57]execute_cgi json_proto POST (null) [18:14:57]execute_cgi path=json_proto method=POST [18:14:57]POST find Content-Length [18:14:57]Host: 172.17.44.195:8080 [18:14:57]Content-Length: 659 [18:14:57]Content-Type: application/json [18:14:57] [18:14:57]POST finish read [18:14:57]Found Content-Length = 659 [18:14:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963211", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 4.390, "sum" : 300.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:14:57]execute_script... [18:14:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963211", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 4.390, "sum" : 300.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:14:57]POST & json_proto [18:14:57]process_json_proto [18:14:57]json parsed OK: [18:14:57]protocol is kg_v1.0 [18:14:57]action value=close_receipt [18:14:57]process_action close_receipt [18:14:57]cmd_close_receipt [18:14:57]MH_GetDate [18:14:57]Write to MH i2c: F0 00 00 06 17 0C [18:14:57]Write i2c OK [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: F0 [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: F0 09 00 [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: F0 09 00 06 17 00 A3 48 15 67 82 C9 CF 66 FC [18:14:57]GetLastDocTimeStamp 1729447854 [18:14:57]current date 1729448099 [18:14:57]FM_GetShiftState [18:14:57]SAM_PROTO_GetShiftState [18:14:57]wFMCommunicate request_size=4 [18:14:57]MH_SAM_APDU [18:14:57]CAPDU: 80 13 01 00 [18:14:57]Write to MH i2c: E2 08 00 07 17 80 13 01 00 00 00 00 00 9B [18:14:57]Write i2c OK [18:14:57]MH_I2C_Read... [18:14:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:57]Read from MH i2c: E2 [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: E2 0E 00 [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: E2 0E 00 07 17 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 B5 [18:14:57]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:14:57]wFMCommunicate OK [18:14:57]SAM_PROTO_GetShiftState done [18:14:57]FM_GetShiftState done [18:14:57]opened in 1729383750 [18:14:57]opened+sec_in_day 1729470150 [18:14:57]quantity*price = 30027 [18:14:57]sum+1 = 30029 [18:14:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 423 20.10.2024 18:14 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227575 ФПД: 269020260433720 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T181459&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227575&fm=269020260433720&tin=02508201610067®Number=0000000000091685&sum=30000 [18:14:58]StoreToDocumentArchive [18:14:58]shift 533 fd 227575 [18:14:58]save to /storage/0533/doc_00227575 [18:14:58]save last doc name /storage/0533/doc_00227575 to /storage/kkm_last_doc_name [18:14:58]save OK [18:14:58]Clear old archive folders... [18:14:58]ProcessDocumentItem done err = 0, tmpTLVsize=244 [18:14:58]tlvbuf is 00E33260 [18:14:58]SAM_PROTO_ClearQueue [18:14:58]wFMCommunicate request_size=4 [18:14:58]MH_SAM_APDU [18:14:58]CAPDU: 80 09 00 00 [18:14:58]Write to MH i2c: E2 08 00 14 17 80 09 00 00 00 00 00 00 9D [18:14:58]Write i2c OK [18:14:58]MH_I2C_Read... [18:14:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:14:58]Read from MH i2c: E2 [18:14:58]MH_I2C_Read... [18:14:58]Read from MH i2c: E2 03 00 [18:14:58]MH_I2C_Read... [18:14:58]Read from MH i2c: E2 03 00 14 17 00 90 00 9F [18:14:58]RAPDU: 90 00 [18:14:58]wFMCommunicate OK [18:14:58]SAM_PROTO_ClearQueue done [18:14:58]KKMCreateOFDPacket [18:14:58]OFDProtocolAddRootSTLVToBuf [18:14:58]FM_MakeSignedData [18:14:58]FM_MakeSignedData [18:14:58]SAM_PROTO_SignData [18:14:58]wFMCommunicate request_size=4 [18:14:58]MH_SAM_APDU [18:14:58]CAPDU: 80 0D 01 02 [18:14:58]Write to MH i2c: E2 08 00 15 17 80 0D 01 02 00 00 00 00 A5 [18:14:58]Write i2c OK [18:14:58]MH_I2C_Read... [18:14:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:14:58]Read from MH i2c: E2 [18:14:58]MH_I2C_Read... [18:14:58]Read from MH i2c: E2 03 00 [18:14:58]MH_I2C_Read... [18:14:58]Read from MH i2c: E2 03 00 15 17 00 90 00 A0 [18:14:58]RAPDU: 90 00 [18:14:58]wFMCommunicate OK [18:14:58]wFMCommunicate request_size=253 [18:14:58]MH_SAM_APDU [18:14:58]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 01 00 00 F4 03 04 00 A3 48 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F7 78 03 00 35 04 06 00 F4 AC 29 0F 7F 38 [18:14:58]Write to MH i2c: E2 00 01 16 17 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 01 00 00 F4 03 04 00 A3 48 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F7 78 03 00 35 04 06 00 F4 AC 29 0F 7F 38 00 00 2C [18:14:58]Write i2c OK [18:14:58]MH_I2C_Read... [18:14:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:14:59]Read from MH i2c: E2 [18:14:59]MH_I2C_Read... [18:14:59]Read from MH i2c: E2 03 00 [18:14:59]MH_I2C_Read... [18:14:59]Read from MH i2c: E2 03 00 16 17 00 90 00 A1 [18:14:59]RAPDU: 90 00 [18:14:59]wFMCommunicate OK [18:14:59]wFMCommunicate request_size=4 [18:14:59]MH_SAM_APDU [18:14:59]CAPDU: 80 0D 03 02 [18:14:59]Write to MH i2c: E2 08 00 17 17 80 0D 03 02 00 00 00 00 A9 [18:14:59]Write i2c OK [18:14:59]MH_I2C_Read... [18:14:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:14:59]Read from MH i2c: E2 [18:14:59]MH_I2C_Read... [18:14:59]Read from MH i2c: E2 0B 00 [18:14:59]MH_I2C_Read... [18:14:59]Read from MH i2c: E2 0B 00 17 17 00 F3 34 3F F8 64 AE 7B B1 90 00 46 [18:14:59]RAPDU: F3 34 3F F8 64 AE 7B B1 90 00 [18:14:59]wFMCommunicate OK [18:14:59]SAM_PROTO_SignData done [18:14:59]FM_MakeSignedData done [18:14:59]CreateOFDProtocolMessage [18:14:59]wFMCommunicate request_size=4 [18:14:59]MH_SAM_APDU [18:14:59]CAPDU: 80 11 00 00 [18:14:59]Write to MH i2c: E2 08 00 18 17 80 11 00 00 00 00 00 00 A9 [18:14:59]Write i2c OK [18:14:59]MH_I2C_Read... [18:14:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:59]Read from MH i2c: E2 [18:14:59]MH_I2C_Read... [18:14:59]Read from MH i2c: E2 17 00 [18:14:59]MH_I2C_Read... [18:14:59]Read from MH i2c: E2 17 00 18 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 00 [18:14:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:14:59]wFMCommunicate OK [18:14:59]CreateOFDProtocolMessage done [18:14:59]OFDSenderStorePacket 227575 [18:14:59]StoreOFDPacket docnum=227575 [18:14:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 B5 88 00 01 BE 59 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 01 00 00 F4 03 04 00 A3 48 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F7 78 03 00 35 04 06 00 F4 AC 29 0F 7F 38 F3 34 3F F8 64 AE 7B B1 [18:14:59]CheckFolder [18:14:59]dirname=/storage/ofd_packets [18:14:59]CheckFolder done [18:14:59]ProducePacketName [18:14:59]name=ofd_packets/00227575 [18:14:59]NVStorageSaveData ofd_packets/00227575 [18:14:59]File name is /storage/ofd_packets/00227575 [18:14:59]Write 294 bytes [18:14:59]NVStorageSaveData done [18:14:59]OFDSenderStorePacket done [18:14:59]KKMCreateOFDPacket done [18:14:59]NVStorageSaveData kkm_last_timestamp [18:14:59]File name is /storage/kkm_last_timestamp [18:14:59]Write 4 bytes [18:14:59]NVStorageSaveData done [18:14:59]ExternCall_PrintAddStr [18:14:59]wPrintStart [18:14:59]Write to MH i2c: 01 00 00 19 17 30 [18:14:59]Write i2c OK [18:14:59]MH_I2C_Read... [18:14:59]Read from MH i2c: 01 [18:14:59]MH_I2C_Read... [18:14:59]Read from MH i2c: 01 07 00 [18:14:59]MH_I2C_Read... [18:14:59]Read from MH i2c: 01 07 00 19 17 00 00 00 00 00 FF 0F 45 [18:14:59]RasterBufferAndPrint [18:14:59]line Счет N : (1)1963211 [18:14:59]line ИНН: 02508201610067 [18:14:59]line Контрольно-Кассовый Чек [18:14:59]line ПРОДАЖА [18:14:59]line ТРК (МРК, ГНК) : 52 [18:14:59]line Товар: 2710124130 [18:14:59]line SU-92 [18:14:59]line 4.390 * 68.40 [18:14:59]line = 300.28 [18:14:59]line НДС 12% НСП 1% [18:14:59]line > о реализуемом товаре [18:14:59]line ОКРУГЛЕНИЕ: -0.28 [18:14:59]line ИТОГО: 300.00 [18:14:59]line Внесено: 300.00 [18:14:59]line СДАЧА: 0.00 [18:14:59]line НСП 1% : 2.66 [18:14:59]line НДС 12% : 31.89 [18:14:59]line Наличными: 300.00 [18:14:59]line Безнал.: 0.00 [18:14:59]line Место: АЗС № 133 "Партнер Нефть" [18:14:59]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:14:59]line СНО: Общий режим [18:14:59]line Чек 423 20.10.2024 18:14 [18:14:59]line Смена: 533 ФФД: 1.0 [18:14:59]line ЗНМ: 0300000091 [18:14:59]line РНМ: 0000000000091685 [18:14:59]line Версия ККМ: 001 [18:14:59]line ФМ: 0000000000871839 [18:14:59]line ФД: 227575 [18:14:59]line ФПД: 269020260433720 [18:14:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T181459&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227575&fm=269020260433720&tin=02508201610067®Number=0000000000091685&sum=30000 [18:14:59]OFD Sender: Processing packet 227575 [packets to send 38, broken 37] [18:14:59]ProducePacketName [18:14:59]name=ofd_packets/00227575 [18:14:59]OFD Sender: To server: pG, [18:14:59]CommunicateWithHost lk.salyk.kg:30040 [18:14:59]ConnectInit lk.salyk.kg [18:14:59]written 0, free lines is 4095 [18:14:59]Connected sock=10 [18:14: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 33 39 08 01 00 00 B5 88 00 01 BE 59 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 01 00 00 F4 03 04 00 A3 48 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F7 78 03 00 35 04 06 00 F4 AC 29 0F 7F 38 F3 34 3F F8 64 AE 7B B1 [18:14:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 BA C2 47 00 91 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 33 39 10 04 04 00 F7 78 03 00 F4 03 04 00 A1 F3 14 67 B6 04 01 00 00 78 F7 82 F3 AA 15 99 76 [18:14:59]CommunicateWithHost err = 0 [18:14:59]CheckOFDResponse [18:14:59]1017 (14) - 77093643461234 [18:14:59]1041 (16) - 0000000000871839 [18:14:59]1040 (4) - 227575 [18:14:59]1012 (4) - 20.10.2024 12:12 [18:14:59]1206 (1) - 0 [18:14:59]OFD Sender: Remove packet 227575 [18:14:59]ProducePacketName [18:14:59]name=ofd_packets/00227575 [18:14:59]NVStorageDeleteData [18:14:59]Write to MH i2c: 01 00 00 43 17 5A [18:14:59]Write i2c OK [18:14:59]MH_I2C_Read... [18:14:59]Read from MH i2c: 01 [18:14:59]MH_I2C_Read... [18:14:59]Read from MH i2c: 01 07 00 [18:14:59]MH_I2C_Read... [18:14:59]Read from MH i2c: 01 07 00 43 17 00 00 00 00 00 03 0D 71 [18:14:59]RasterBufferAndPrint [18:14:59]line [18:14:59]line [18:14:59]line [18:14:59]line [18:14:59]line [18:14:59]written 0, free lines is 3337 [18:14:59]process_action close_receipt done [18:14:59]requested_data is exist [18:14:59]produce_requested_data [18:14:59]requested_item fm.sn is exist - process it [18:14:59]wFMCommunicate request_size=4 [18:14:59]MH_SAM_APDU [18:14:59]CAPDU: 80 11 00 00 [18:14:59]Write to MH i2c: E2 08 00 4A 17 80 11 00 00 00 00 00 00 DB [18:14:59]Write i2c OK [18:14:59]MH_I2C_Read... [18:15:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:00]Read from MH i2c: E2 [18:15:00]MH_I2C_Read... [18:15:00]Read from MH i2c: E2 17 00 [18:15:00]MH_I2C_Read... [18:15:00]Read from MH i2c: E2 17 00 4A 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 32 [18:15:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:15:00]wFMCommunicate OK [18:15:00]requested_item fd.num is exist - process it [18:15:00]SAM_PROTO_GetFieldsCounters [18:15:00]wFMCommunicate request_size=4 [18:15:00]MH_SAM_APDU [18:15:00]CAPDU: 80 13 00 00 [18:15:00]Write to MH i2c: E2 08 00 4B 17 80 13 00 00 00 00 00 00 DE [18:15:00]Write i2c OK [18:15:00]MH_I2C_Read... [18:15:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:15:00]Read from MH i2c: E2 [18:15:00]MH_I2C_Read... [18:15:00]Read from MH i2c: E2 62 00 [18:15:00]MH_I2C_Read... [18:15:00]Read from MH i2c: E2 62 00 4B 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F7 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 A7 01 00 00 5E 04 04 00 A7 01 00 00 57 04 04 00 A8 01 00 00 19 04 04 00 00 00 00 00 90 00 88 [18:15:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F7 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 A7 01 00 00 5E 04 04 00 A7 01 00 00 57 04 04 00 A8 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:15:00]wFMCommunicate OK [18:15:00]SAM_PROTO_GetFieldsCounters done [18:15:00]requested_item shift.num is exist - process it [18:15:00]requested_item shift.opened is exist - process it [18:15:00]req_shift_opened [18:15:00]FM_GetShiftState [18:15:00]SAM_PROTO_GetShiftState [18:15:00]wFMCommunicate request_size=4 [18:15:00]MH_SAM_APDU [18:15:00]CAPDU: 80 13 01 00 [18:15:00]Write to MH i2c: E2 08 00 4C 17 80 13 01 00 00 00 00 00 E0 [18:15:00]Write i2c OK [18:15:00]MH_I2C_Read... [18:15:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:00]Read from MH i2c: E2 [18:15:00]MH_I2C_Read... [18:15:00]Read from MH i2c: E2 0E 00 [18:15:00]MH_I2C_Read... [18:15:00]Read from MH i2c: E2 0E 00 4C 17 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 FA [18:15:00]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:15:00]wFMCommunicate OK [18:15:00]SAM_PROTO_GetShiftState done [18:15:00]FM_GetShiftState done [18:15:00]req_shift_opened done [18:15:00]requested_item shift.open_date is exist - process it [18:15:00]req_shift_open_date [18:15:00]req_shift_open_date done [18:15:00]produce_requested_data done [18:15:00]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227575,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [18:15:00]process_action_free close_receipt [18:15:00]json_value_free [18:15:00]json_value_free done [18:15:00]process_json_proto returns [18:15:00]Send response to host [18:15:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227575,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [18:15:00]free response buf [18:15:00]execute_script done [18:15:00]execute_script returns [18:15:00]free content buf [18:15:00]Sock 7.Close socket [18:15:00]Sock 7.Thread stoped [18:15:00]OFD Sender: No OFD packet to send [18:15:05]OFD Sender: No OFD packet to send [18:15:10]OFD Sender: No OFD packet to send [18:15:15]OFD Sender: No OFD packet to send [18:15:20]OFD Sender: No OFD packet to send [18:15:25]OFD Sender: No OFD packet to send [18:15:30]OFD Sender: No OFD packet to send [18:15:35]OFD Sender: No OFD packet to send [18:15:40]OFD Sender: No OFD packet to send [18:15:45]OFD Sender: No OFD packet to send [18:15:50]OFD Sender: No OFD packet to send [18:15:55]OFD Sender: No OFD packet to send [18:16:00]OFD Sender: No OFD packet to send [18:16:05]OFD Sender: No OFD packet to send [18:16:10]OFD Sender: No OFD packet to send [18:16:15]OFD Sender: No OFD packet to send [18:16:20]OFD Sender: No OFD packet to send [18:16:25]OFD Sender: No OFD packet to send [18:16:30]OFD Sender: No OFD packet to send [18:16:35]OFD Sender: No OFD packet to send [18:16:37]accept exits with 9 [18:16:37]New connection [18:16:37]New thread 3067219300 created [18:16:37]Thread 3067362660 joined [18:16:37]Waiting for new connection... [18:16:37] Sock 9.Parse request [18:16:37]Sock 9.Check first char [18:16:37]Sock 9.First char is OK [18:16:37]request: POST /json_proto HTTP/1.0 [18:16:37]Method: POST [18:16:37]URL: /json_proto [18:16:37]Method is POST - this is cgi request [18:16:37]url: /json_proto [18:16:37]query_string will be loaded in cgi processing [18:16:37]execute_cgi json_proto POST (null) [18:16:37]execute_cgi path=json_proto method=POST [18:16:37]POST find Content-Length [18:16:37]Host: 172.17.44.195:8080 [18:16:37]Content-Length: 770 [18:16:37]Content-Type: application/json [18:16:37] [18:16:37]POST finish read [18:16:37]Found Content-Length = 770 [18:16:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963212", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:16:37]execute_script... [18: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)1963212", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:16:37]POST & json_proto [18:16:37]process_json_proto [18:16:37]json parsed OK: [18:16:37]protocol is kg_v1.0 [18:16:37]action value=close_receipt [18:16:37]process_action close_receipt [18:16:37]cmd_close_receipt [18:16:37]MH_GetDate [18:16:37]Write to MH i2c: F0 00 00 4D 17 53 [18:16:37]Write i2c OK [18:16:37]MH_I2C_Read... [18:16:37]Read from MH i2c: F0 [18:16:37]MH_I2C_Read... [18:16:37]Read from MH i2c: F0 09 00 [18:16:37]MH_I2C_Read... [18:16:37]Read from MH i2c: F0 09 00 4D 17 00 07 49 15 67 82 C9 CF 66 A8 [18:16:37]GetLastDocTimeStamp 1729448099 [18:16:37]current date 1729448199 [18:16:37]FM_GetShiftState [18:16:37]SAM_PROTO_GetShiftState [18:16:37]wFMCommunicate request_size=4 [18:16:37]MH_SAM_APDU [18:16:37]CAPDU: 80 13 01 00 [18:16:37]Write to MH i2c: E2 08 00 4E 17 80 13 01 00 00 00 00 00 E2 [18:16:37]Write i2c OK [18:16:37]MH_I2C_Read... [18:16:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:16:37]Read from MH i2c: E2 [18:16:37]MH_I2C_Read... [18:16:37]Read from MH i2c: E2 0E 00 [18:16:37]MH_I2C_Read... [18:16:37]Read from MH i2c: E2 0E 00 4E 17 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 FC [18:16:37]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:16:37]wFMCommunicate OK [18:16:37]SAM_PROTO_GetShiftState done [18:16:37]FM_GetShiftState done [18:16:37]opened in 1729383750 [18:16:37]opened+sec_in_day 1729470150 [18:16:37]quantity*price = 100015 [18:16:37]sum+1 = 100017 [18:16:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 424 20.10.2024 18:16 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 227576 ФПД: 141875992762058 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T181639&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227576&fm=141875992762058&tin=02508201610067®Number=0000000000091685&sum=100016 [18:16:39]StoreToDocumentArchive [18:16:39]shift 533 fd 227576 [18:16:39]save to /storage/0533/doc_00227576 [18:16:39]save last doc name /storage/0533/doc_00227576 to /storage/kkm_last_doc_name [18:16:39]save OK [18:16:39]Clear old archive folders... [18:16:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:16:39]tlvbuf is 00E32F60 [18:16:39]SAM_PROTO_ClearQueue [18:16:39]wFMCommunicate request_size=4 [18:16:39]MH_SAM_APDU [18:16:39]CAPDU: 80 09 00 00 [18:16:39]Write to MH i2c: E2 08 00 5B 17 80 09 00 00 00 00 00 00 E4 [18:16:39]Write i2c OK [18:16:39]MH_I2C_Read... [18:16:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:16:39]Read from MH i2c: E2 [18:16:39]MH_I2C_Read... [18:16:39]Read from MH i2c: E2 03 00 [18:16:39]MH_I2C_Read... [18:16:39]Read from MH i2c: E2 03 00 5B 17 00 90 00 E6 [18:16:39]RAPDU: 90 00 [18:16:39]wFMCommunicate OK [18:16:39]SAM_PROTO_ClearQueue done [18:16:39]KKMCreateOFDPacket [18:16:39]OFDProtocolAddRootSTLVToBuf [18:16:39]FM_MakeSignedData [18:16:39]FM_MakeSignedData [18:16:39]SAM_PROTO_SignData [18:16:39]wFMCommunicate request_size=4 [18:16:39]MH_SAM_APDU [18:16:39]CAPDU: 80 0D 01 02 [18:16:39]Write to MH i2c: E2 08 00 5C 17 80 0D 01 02 00 00 00 00 EC [18:16:39]Write i2c OK [18:16:39]MH_I2C_Read... [18:16:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:16:39]Read from MH i2c: E2 [18:16:39]MH_I2C_Read... [18:16:39]Read from MH i2c: E2 03 00 [18:16:39]MH_I2C_Read... [18:16:39]Read from MH i2c: E2 03 00 5C 17 00 90 00 E7 [18:16:39]RAPDU: 90 00 [18:16:39]wFMCommunicate OK [18:16:39]wFMCommunicate request_size=255 [18:16:39]MH_SAM_APDU [18:16:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 01 00 00 F4 03 04 00 07 49 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F8 78 03 00 35 04 06 00 81 [18:16:39]Write to MH i2c: E2 02 01 5D 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 01 00 00 F4 03 04 00 07 49 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F8 78 03 00 35 04 06 00 81 00 00 1D [18:16:39]Write i2c OK [18:16:39]MH_I2C_Read... [18:16:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:16:39]Read from MH i2c: E2 [18:16:39]MH_I2C_Read... [18:16:39]Read from MH i2c: E2 03 00 [18:16:39]MH_I2C_Read... [18:16:39]Read from MH i2c: E2 03 00 5D 17 00 90 00 E8 [18:16:39]RAPDU: 90 00 [18:16:39]wFMCommunicate OK [18:16:39]wFMCommunicate request_size=10 [18:16:39]MH_SAM_APDU [18:16:39]CAPDU: 80 0D 02 02 05 09 14 26 96 CA [18:16:39]Write to MH i2c: E2 0D 00 5E 17 80 0D 02 02 05 00 09 14 26 96 CA 00 00 9C [18:16:39]Write i2c OK [18:16:39]MH_I2C_Read... [18:16:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:16:39]Read from MH i2c: E2 [18:16:39]MH_I2C_Read... [18:16:39]Read from MH i2c: E2 03 00 [18:16:39]MH_I2C_Read... [18:16:39]Read from MH i2c: E2 03 00 5E 17 00 90 00 E9 [18:16:39]RAPDU: 90 00 [18:16:39]wFMCommunicate OK [18:16:39]wFMCommunicate request_size=4 [18:16:39]MH_SAM_APDU [18:16:39]CAPDU: 80 0D 03 02 [18:16:39]Write to MH i2c: E2 08 00 5F 17 80 0D 03 02 00 00 00 00 F1 [18:16:39]Write i2c OK [18:16:39]MH_I2C_Read... [18:16:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:16:39]Read from MH i2c: E2 [18:16:39]MH_I2C_Read... [18:16:39]Read from MH i2c: E2 0B 00 [18:16:39]MH_I2C_Read... [18:16:39]Read from MH i2c: E2 0B 00 5F 17 00 07 39 94 CF 95 F4 EE 5A 90 00 66 [18:16:39]RAPDU: 07 39 94 CF 95 F4 EE 5A 90 00 [18:16:39]wFMCommunicate OK [18:16:39]SAM_PROTO_SignData done [18:16:39]FM_MakeSignedData done [18:16:39]CreateOFDProtocolMessage [18:16:39]wFMCommunicate request_size=4 [18:16:39]MH_SAM_APDU [18:16:39]CAPDU: 80 11 00 00 [18:16:39]Write to MH i2c: E2 08 00 60 17 80 11 00 00 00 00 00 00 F1 [18:16:39]Write i2c OK [18:16:39]MH_I2C_Read... [18:16:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:16:39]Read from MH i2c: E2 [18:16:39]MH_I2C_Read... [18:16:39]Read from MH i2c: E2 17 00 [18:16:39]MH_I2C_Read... [18:16:39]Read from MH i2c: E2 17 00 60 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 48 [18:16:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:16:39]wFMCommunicate OK [18:16:39]CreateOFDProtocolMessage done [18:16:39]OFDSenderStorePacket 227576 [18:16:39]StoreOFDPacket docnum=227576 [18:16:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 39 8B 07 01 32 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 01 00 00 F4 03 04 00 07 49 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F8 78 03 00 35 04 06 00 81 09 14 26 96 CA 07 39 94 CF 95 F4 EE 5A [18:16:39]CheckFolder [18:16:39]dirname=/storage/ofd_packets [18:16:39]CheckFolder done [18:16:39]ProducePacketName [18:16:39]name=ofd_packets/00227576 [18:16:39]NVStorageSaveData ofd_packets/00227576 [18:16:39]File name is /storage/ofd_packets/00227576 [18:16:39]Write 301 bytes [18:16:39]NVStorageSaveData done [18:16:39]OFDSenderStorePacket done [18:16:39]KKMCreateOFDPacket done [18:16:39]NVStorageSaveData kkm_last_timestamp [18:16:39]File name is /storage/kkm_last_timestamp [18:16:39]Write 4 bytes [18:16:39]NVStorageSaveData done [18:16:39]ExternCall_PrintAddStr [18:16:39]wPrintStart [18:16:39]Write to MH i2c: 01 00 00 61 17 78 [18:16:39]Write i2c OK [18:16:39]MH_I2C_Read... [18:16:39]Read from MH i2c: 01 [18:16:39]MH_I2C_Read... [18:16:39]Read from MH i2c: 01 07 00 [18:16:39]MH_I2C_Read... [18:16:39]Read from MH i2c: 01 07 00 61 17 00 00 00 00 00 FF 0F 8D [18:16:39]RasterBufferAndPrint [18:16:39]line Счет N : (1)1963212 [18:16:39]line ИНН: 02508201610067 [18:16:39]line Контрольно-Кассовый Чек [18:16:39]line ПРОДАЖА [18:16:39]line ТРК (МРК, ГНК) : 33 [18:16:39]line Товар: 2710124130 [18:16:39]line Аи-92-К-5 [18:16:39]line 14.950 * 66.90 [18:16:39]line = 1000.16 [18:16:39]line НДС 12% НСП 1% [18:16:39]line > о реализуемом товаре [18:16:39]line ИТОГО: 1000.16 [18:16:39]line НСП 1% : 8.85 [18:16:39]line НДС 12% : 106.21 [18:16:39]line Наличными: 0.00 [18:16:39]line Безнал.: 1000.16 [18:16:39]line Место: АЗС № 133 "Партнер Нефть" [18:16:39]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:16:39]line СНО: Общий режим [18:16:39]line Чек 424 20.10.2024 18:16 [18:16:39]line Смена: 533 ФФД: 1.0 [18:16:39]line ЗНМ: 0300000091 [18:16:39]line РНМ: 0000000000091685 [18:16:39]line Версия ККМ: 001 [18:16:39]line Платежная система: Mbank [18:16:39]line ФМ: 0000000000871839 [18:16:39]line ФД: 227576 [18:16:39]line ФПД: 141875992762058 [18:16:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T181639&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227576&fm=141875992762058&tin=02508201610067®Number=0000000000091685&sum=100016 [18:16:39]written 0, free lines is 4095 [18:16:39]OFD Sender: Processing packet 227576 [packets to send 38, broken 37] [18:16:39]ProducePacketName [18:16:39]name=ofd_packets/00227576 [18:16:39]OFD Sender: To server: pG, [18:16:39]CommunicateWithHost lk.salyk.kg:30040 [18:16:39]ConnectInit lk.salyk.kg [18:16:40]Connected sock=10 [18:16:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 39 8B 07 01 32 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 01 00 00 F4 03 04 00 07 49 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F8 78 03 00 35 04 06 00 81 09 14 26 96 CA 07 39 94 CF 95 F4 EE 5A [18:16:40]Write to MH i2c: 01 00 00 89 17 A0 [18:16:40]Write i2c OK [18:16:40]MH_I2C_Read... [18:16:40]Read from MH i2c: 01 [18:16:40]MH_I2C_Read... [18:16:40]Read from MH i2c: 01 07 00 [18:16:40]MH_I2C_Read... [18:16:40]Read from MH i2c: 01 07 00 89 17 00 00 00 00 00 43 0D F7 [18:16:40]RasterBufferAndPrint [18:16:40]line [18:16:40]line [18:16:40]line [18:16:40]line [18:16:40]line [18:16:40]written 0, free lines is 3401 [18:16:40]process_action close_receipt done [18:16:40]requested_data is exist [18:16:40]produce_requested_data [18:16:40]requested_item fm.sn is exist - process it [18:16:40]wFMCommunicate request_size=4 [18:16:40]MH_SAM_APDU [18:16:40]CAPDU: 80 11 00 00 [18:16:40]Write to MH i2c: E2 08 00 90 17 80 11 00 00 00 00 00 00 21 [18:16:40]Write i2c OK [18:16:40]MH_I2C_Read... [18:16:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:16:40]Read from MH i2c: E2 [18:16:40]MH_I2C_Read... [18:16:40]Read from MH i2c: E2 17 00 [18:16:40]MH_I2C_Read... [18:16:40]Read from MH i2c: E2 17 00 90 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 78 [18:16:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:16:40]wFMCommunicate OK [18:16:40]requested_item fd.num is exist - process it [18:16:40]SAM_PROTO_GetFieldsCounters [18:16:40]wFMCommunicate request_size=4 [18:16:40]MH_SAM_APDU [18:16:40]CAPDU: 80 13 00 00 [18:16:40]Write to MH i2c: E2 08 00 91 17 80 13 00 00 00 00 00 00 24 [18:16:40]Write i2c OK [18:16:40]MH_I2C_Read... [18: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 33 39 4F 00 00 00 0E F2 47 00 05 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 33 39 10 04 04 00 F8 78 03 00 F4 03 04 00 05 F4 14 67 B6 04 01 00 00 37 7D EA B3 60 F3 20 E5 [18:16:40]CommunicateWithHost err = 0 [18:16:40]CheckOFDResponse [18:16:40]1017 (14) - 77093643461234 [18:16:40]1041 (16) - 0000000000871839 [18:16:40]1040 (4) - 227576 [18:16:40]1012 (4) - 20.10.2024 12:13 [18:16:40]1206 (1) - 0 [18:16:40]OFD Sender: Remove packet 227576 [18:16:40]ProducePacketName [18:16:40]name=ofd_packets/00227576 [18:16:40]NVStorageDeleteData [18:16:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:16:40]Read from MH i2c: E2 [18:16:40]MH_I2C_Read... [18:16:40]Read from MH i2c: E2 62 00 [18:16:40]MH_I2C_Read... [18:16:40]Read from MH i2c: E2 62 00 91 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F8 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 A8 01 00 00 5E 04 04 00 A8 01 00 00 57 04 04 00 A9 01 00 00 19 04 04 00 00 00 00 00 90 00 D2 [18:16:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F8 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 A8 01 00 00 5E 04 04 00 A8 01 00 00 57 04 04 00 A9 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:16:40]wFMCommunicate OK [18:16:40]SAM_PROTO_GetFieldsCounters done [18:16:40]requested_item shift.num is exist - process it [18:16:40]requested_item shift.opened is exist - process it [18:16:40]req_shift_opened [18:16:40]FM_GetShiftState [18:16:40]SAM_PROTO_GetShiftState [18:16:40]wFMCommunicate request_size=4 [18:16:40]MH_SAM_APDU [18:16:40]CAPDU: 80 13 01 00 [18:16:40]Write to MH i2c: E2 08 00 92 17 80 13 01 00 00 00 00 00 26 [18:16:40]Write i2c OK [18:16:40]MH_I2C_Read... [18:16:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:16:40]Read from MH i2c: E2 [18:16:40]MH_I2C_Read... [18:16:40]Read from MH i2c: E2 0E 00 [18:16:40]MH_I2C_Read... [18:16:40]Read from MH i2c: E2 0E 00 92 17 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 40 [18:16:40]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:16:40]wFMCommunicate OK [18:16:40]SAM_PROTO_GetShiftState done [18:16:40]FM_GetShiftState done [18:16:40]req_shift_opened done [18:16:40]requested_item shift.open_date is exist - process it [18:16:40]req_shift_open_date [18:16:40]req_shift_open_date done [18:16:40]produce_requested_data done [18:16:40]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227576,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [18:16:40]process_action_free close_receipt [18:16:40]json_value_free [18:16:40]json_value_free done [18:16:40]process_json_proto returns [18:16:40]Send response to host [18:16:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227576,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [18:16:40]free response buf [18:16:40]execute_script done [18:16:40]execute_script returns [18:16:40]free content buf [18:16:40]Sock 9.Close socket [18:16:40]Sock 9.Thread stoped [18:16:40]OFD Sender: No OFD packet to send [18:16:45]OFD Sender: No OFD packet to send [18:16:50]OFD Sender: No OFD packet to send [18:16:55]OFD Sender: No OFD packet to send [18:17:00]OFD Sender: No OFD packet to send [18:17:05]OFD Sender: No OFD packet to send [18:17:10]OFD Sender: No OFD packet to send [18:17:15]OFD Sender: No OFD packet to send [18:17:20]OFD Sender: No OFD packet to send [18:17:25]OFD Sender: No OFD packet to send [18:17:30]OFD Sender: No OFD packet to send [18:17:35]OFD Sender: No OFD packet to send [18:17:40]OFD Sender: No OFD packet to send [18:17:42]accept exits with 7 [18:17:42]New connection [18:17:42]New thread 3067362660 created [18:17:42]Thread 3067219300 joined [18:17:42]Waiting for new connection... [18:17:42] Sock 7.Parse request [18:17:42]Sock 7.Check first char [18:17:42]Sock 7.First char is OK [18:17:42]request: POST /json_proto HTTP/1.0 [18:17:42]Method: POST [18:17:42]URL: /json_proto [18:17:42]Method is POST - this is cgi request [18:17:42]url: /json_proto [18:17:42]query_string will be loaded in cgi processing [18:17:42]execute_cgi json_proto POST (null) [18:17:42]execute_cgi path=json_proto method=POST [18:17:42]POST find Content-Length [18:17:42]Host: 172.17.44.195:8080 [18:17:42]Content-Length: 678 [18:17:42]Content-Type: application/json [18:17:42] [18:17:42]POST finish read [18:17:42]Found Content-Length = 678 [18:17:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963213", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:17:42]execute_script... [18:17: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)1963213", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:17:42]POST & json_proto [18:17:42]process_json_proto [18:17:42]json parsed OK: [18:17:42]protocol is kg_v1.0 [18:17:42]action value=close_receipt [18:17:42]process_action close_receipt [18:17:42]cmd_close_receipt [18:17:42]MH_GetDate [18:17:42]Write to MH i2c: F0 00 00 93 17 99 [18:17:42]Write i2c OK [18:17:42]MH_I2C_Read... [18:17:42]Read from MH i2c: F0 [18:17:42]MH_I2C_Read... [18:17:42]Read from MH i2c: F0 09 00 [18:17:42]MH_I2C_Read... [18:17:42]Read from MH i2c: F0 09 00 93 17 00 48 49 15 67 82 C9 CF 66 2F [18:17:42]GetLastDocTimeStamp 1729448199 [18:17:42]current date 1729448264 [18:17:42]FM_GetShiftState [18:17:42]SAM_PROTO_GetShiftState [18:17:42]wFMCommunicate request_size=4 [18:17:42]MH_SAM_APDU [18:17:42]CAPDU: 80 13 01 00 [18:17:42]Write to MH i2c: E2 08 00 94 17 80 13 01 00 00 00 00 00 28 [18:17:42]Write i2c OK [18:17:42]MH_I2C_Read... [18:17:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:17:42]Read from MH i2c: E2 [18:17:42]MH_I2C_Read... [18:17:42]Read from MH i2c: E2 0E 00 [18:17:42]MH_I2C_Read... [18:17:42]Read from MH i2c: E2 0E 00 94 17 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 42 [18:17:42]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:17:42]wFMCommunicate OK [18:17:42]SAM_PROTO_GetShiftState done [18:17:42]FM_GetShiftState done [18:17:42]opened in 1729383750 [18:17:42]opened+sec_in_day 1729470150 [18:17:42]quantity*price = 35055 [18:17:42]sum+1 = 35057 [18:17:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 425 20.10.2024 18:17 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227577 ФПД: 219594832051515 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T181744&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227577&fm=219594832051515&tin=02508201610067®Number=0000000000091685&sum=35000 [18:17:43]StoreToDocumentArchive [18:17:43]shift 533 fd 227577 [18:17:43]save to /storage/0533/doc_00227577 [18:17:43]save last doc name /storage/0533/doc_00227577 to /storage/kkm_last_doc_name [18:17:43]save OK [18:17:43]Clear old archive folders... [18:17:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:17:43]tlvbuf is B6F25500 [18:17:43]SAM_PROTO_ClearQueue [18:17:43]wFMCommunicate request_size=4 [18:17:43]MH_SAM_APDU [18:17:43]CAPDU: 80 09 00 00 [18:17:43]Write to MH i2c: E2 08 00 A1 17 80 09 00 00 00 00 00 00 2A [18:17:43]Write i2c OK [18:17:43]MH_I2C_Read... [18:17:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:17:43]Read from MH i2c: E2 [18:17:43]MH_I2C_Read... [18:17:43]Read from MH i2c: E2 03 00 [18:17:43]MH_I2C_Read... [18:17:43]Read from MH i2c: E2 03 00 A1 17 00 90 00 2C [18:17:43]RAPDU: 90 00 [18:17:43]wFMCommunicate OK [18:17:43]SAM_PROTO_ClearQueue done [18:17:43]KKMCreateOFDPacket [18:17:43]OFDProtocolAddRootSTLVToBuf [18:17:43]FM_MakeSignedData [18:17:43]FM_MakeSignedData [18:17:43]SAM_PROTO_SignData [18:17:43]wFMCommunicate request_size=4 [18:17:43]MH_SAM_APDU [18:17:43]CAPDU: 80 0D 01 02 [18:17:43]Write to MH i2c: E2 08 00 A2 17 80 0D 01 02 00 00 00 00 32 [18:17:43]Write i2c OK [18:17:43]MH_I2C_Read... [18:17:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:17:43]Read from MH i2c: E2 [18:17:43]MH_I2C_Read... [18:17:43]Read from MH i2c: E2 03 00 [18:17:43]MH_I2C_Read... [18:17:43]Read from MH i2c: E2 03 00 A2 17 00 90 00 2D [18:17:43]RAPDU: 90 00 [18:17:43]wFMCommunicate OK [18:17:43]wFMCommunicate request_size=255 [18:17:43]MH_SAM_APDU [18:17:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 01 00 00 F4 03 04 00 48 49 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F9 78 03 00 35 04 06 00 C7 [18:17:43]Write to MH i2c: E2 02 01 A3 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 01 00 00 F4 03 04 00 48 49 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F9 78 03 00 35 04 06 00 C7 00 00 DD [18:17:43]Write i2c OK [18:17:43]MH_I2C_Read... [18:17:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:17:44]Read from MH i2c: E2 [18:17:44]MH_I2C_Read... [18:17:44]Read from MH i2c: E2 03 00 [18:17:44]MH_I2C_Read... [18:17:44]Read from MH i2c: E2 03 00 A3 17 00 90 00 2E [18:17:44]RAPDU: 90 00 [18:17:44]wFMCommunicate OK [18:17:44]wFMCommunicate request_size=10 [18:17:44]MH_SAM_APDU [18:17:44]CAPDU: 80 0D 02 02 05 B8 67 F5 7D 3B [18:17:44]Write to MH i2c: E2 0D 00 A4 17 80 0D 02 02 05 00 B8 67 F5 7D 3B 00 00 0B [18:17:44]Write i2c OK [18:17:44]MH_I2C_Read... [18:17:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:17:44]Read from MH i2c: E2 [18:17:44]MH_I2C_Read... [18:17:44]Read from MH i2c: E2 03 00 [18:17:44]MH_I2C_Read... [18:17:44]Read from MH i2c: E2 03 00 A4 17 00 90 00 2F [18:17:44]RAPDU: 90 00 [18:17:44]wFMCommunicate OK [18:17:44]wFMCommunicate request_size=4 [18:17:44]MH_SAM_APDU [18:17:44]CAPDU: 80 0D 03 02 [18:17:44]Write to MH i2c: E2 08 00 A5 17 80 0D 03 02 00 00 00 00 37 [18:17:44]Write i2c OK [18:17:44]MH_I2C_Read... [18:17:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:17:44]Read from MH i2c: E2 [18:17:44]MH_I2C_Read... [18:17:44]Read from MH i2c: E2 0B 00 [18:17:44]MH_I2C_Read... [18:17:44]Read from MH i2c: E2 0B 00 A5 17 00 53 5B 9D CA B3 AF 07 7E 90 00 34 [18:17:44]RAPDU: 53 5B 9D CA B3 AF 07 7E 90 00 [18:17:44]wFMCommunicate OK [18:17:44]SAM_PROTO_SignData done [18:17:44]FM_MakeSignedData done [18:17:44]CreateOFDProtocolMessage [18:17:44]wFMCommunicate request_size=4 [18:17:44]MH_SAM_APDU [18:17:44]CAPDU: 80 11 00 00 [18:17:44]Write to MH i2c: E2 08 00 A6 17 80 11 00 00 00 00 00 00 37 [18:17:44]Write i2c OK [18:17:44]MH_I2C_Read... [18:17:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:17:44]Read from MH i2c: E2 [18:17:44]MH_I2C_Read... [18:17:44]Read from MH i2c: E2 17 00 [18:17:44]MH_I2C_Read... [18:17:44]Read from MH i2c: E2 17 00 A6 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 8E [18:17:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:17:44]wFMCommunicate OK [18:17:44]CreateOFDProtocolMessage done [18:17:44]OFDSenderStorePacket 227577 [18:17:44]StoreOFDPacket docnum=227577 [18:17:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 03 C0 07 01 FE 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 01 00 00 F4 03 04 00 48 49 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F9 78 03 00 35 04 06 00 C7 B8 67 F5 7D 3B 53 5B 9D CA B3 AF 07 7E [18:17:44]CheckFolder [18:17:44]dirname=/storage/ofd_packets [18:17:44]CheckFolder done [18:17:44]ProducePacketName [18:17:44]name=ofd_packets/00227577 [18:17:44]NVStorageSaveData ofd_packets/00227577 [18:17:44]File name is /storage/ofd_packets/00227577 [18:17:44]Write 301 bytes [18:17:44]NVStorageSaveData done [18:17:44]OFDSenderStorePacket done [18:17:44]KKMCreateOFDPacket done [18:17:44]NVStorageSaveData kkm_last_timestamp [18:17:44]File name is /storage/kkm_last_timestamp [18:17:44]Write 4 bytes [18:17:44]NVStorageSaveData done [18:17:44]ExternCall_PrintAddStr [18:17:44]wPrintStart [18:17:44]Write to MH i2c: 01 00 00 A7 17 BE [18:17:44]Write i2c OK [18:17:44]MH_I2C_Read... [18:17:44]Read from MH i2c: 01 [18:17:44]MH_I2C_Read... [18:17:44]Read from MH i2c: 01 07 00 [18:17:44]MH_I2C_Read... [18:17:44]Read from MH i2c: 01 07 00 A7 17 00 00 00 00 00 FF 0F D3 [18:17:44]RasterBufferAndPrint [18:17:44]line Счет N : (1)1963213 [18:17:44]line ИНН: 02508201610067 [18:17:44]line Контрольно-Кассовый Чек [18:17:44]line ПРОДАЖА [18:17:44]line ТРК (МРК, ГНК) : 63 [18:17:44]line Товар: 2710124130 [18:17:44]line Аи-92-К-5 [18:17:44]line 5.240 * 66.90 [18:17:44]line = 350.56 [18:17:44]line НДС 12% НСП 1% [18:17:44]line > о реализуемом товаре [18:17:44]line ОКРУГЛЕНИЕ: -0.56 [18:17:44]line ИТОГО: 350.00 [18:17:44]line Внесено: 350.00 [18:17:44]line СДАЧА: 0.00 [18:17:44]line НСП 1% : 3.10 [18:17:44]line НДС 12% : 37.23 [18:17:44]line Наличными: 350.00 [18:17:44]line Безнал.: 0.00 [18:17:44]line Место: АЗС № 133 "Партнер Нефть" [18:17:44]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:17:44]line СНО: Общий режим [18:17:44]line Чек 425 20.10.2024 18:17 [18:17:44]line Смена: 533 ФФД: 1.0 [18:17:44]line ЗНМ: 0300000091 [18:17:44]line РНМ: 0000000000091685 [18:17:44]line Версия ККМ: 001 [18:17:44]line ФМ: 0000000000871839 [18:17:44]line ФД: 227577 [18:17:44]line ФПД: 219594832051515 [18:17:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T181744&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227577&fm=219594832051515&tin=02508201610067®Number=0000000000091685&sum=35000 [18:17:44]OFD Sender: Processing packet 227577 [packets to send 38, broken 37] [18:17:44]ProducePacketName [18:17:44]name=ofd_packets/00227577 [18:17:44]OFD Sender: To server: pG, [18:17:44]CommunicateWithHost lk.salyk.kg:30040 [18:17:44]ConnectInit lk.salyk.kg [18:17:44]written 0, free lines is 4095 [18:17:44]Connected sock=10 [18:17: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 33 39 0F 01 00 00 03 C0 07 01 FE 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 01 00 00 F4 03 04 00 48 49 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 F9 78 03 00 35 04 06 00 C7 B8 67 F5 7D 3B 53 5B 9D CA B3 AF 07 7E [18:17: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 33 39 4F 00 00 00 1F 67 47 00 89 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 33 39 10 04 04 00 F9 78 03 00 F4 03 04 00 46 F4 14 67 B6 04 01 00 00 73 43 C3 07 8A EF 85 56 [18:17:44]CommunicateWithHost err = 0 [18:17:44]CheckOFDResponse [18:17:44]1017 (14) - 77093643461234 [18:17:44]1041 (16) - 0000000000871839 [18:17:44]1040 (4) - 227577 [18:17:44]1012 (4) - 20.10.2024 12:15 [18:17:44]1206 (1) - 0 [18:17:44]OFD Sender: Remove packet 227577 [18:17:44]ProducePacketName [18:17:44]name=ofd_packets/00227577 [18:17:44]NVStorageDeleteData [18:17:45]Write to MH i2c: 01 00 00 D1 17 E8 [18:17:45]Write i2c OK [18:17:45]MH_I2C_Read... [18:17:45]Read from MH i2c: 01 [18:17:45]MH_I2C_Read... [18:17:45]Read from MH i2c: 01 07 00 [18:17:45]MH_I2C_Read... [18:17:45]Read from MH i2c: 01 07 00 D1 17 00 00 00 00 00 19 0D 15 [18:17:45]RasterBufferAndPrint [18:17:45]line [18:17:45]line [18:17:45]line [18:17:45]line [18:17:45]line [18:17:45]written 0, free lines is 3360 [18:17:45]process_action close_receipt done [18:17:45]requested_data is exist [18:17:45]produce_requested_data [18:17:45]requested_item fm.sn is exist - process it [18:17:45]wFMCommunicate request_size=4 [18:17:45]MH_SAM_APDU [18:17:45]CAPDU: 80 11 00 00 [18:17:45]Write to MH i2c: E2 08 00 D8 17 80 11 00 00 00 00 00 00 69 [18:17:45]Write i2c OK [18:17:45]MH_I2C_Read... [18:17:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:17:45]Read from MH i2c: E2 [18:17:45]MH_I2C_Read... [18:17:45]Read from MH i2c: E2 17 00 [18:17:45]MH_I2C_Read... [18:17:45]Read from MH i2c: E2 17 00 D8 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C0 [18:17:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:17:45]wFMCommunicate OK [18:17:45]requested_item fd.num is exist - process it [18:17:45]SAM_PROTO_GetFieldsCounters [18:17:45]wFMCommunicate request_size=4 [18:17:45]MH_SAM_APDU [18:17:45]CAPDU: 80 13 00 00 [18:17:45]Write to MH i2c: E2 08 00 D9 17 80 13 00 00 00 00 00 00 6C [18:17:45]Write i2c OK [18:17:45]MH_I2C_Read... [18:17:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:17:45]Read from MH i2c: E2 [18:17:45]MH_I2C_Read... [18:17:45]Read from MH i2c: E2 62 00 [18:17:45]MH_I2C_Read... [18:17:45]Read from MH i2c: E2 62 00 D9 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F9 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 A9 01 00 00 5E 04 04 00 A9 01 00 00 57 04 04 00 AA 01 00 00 19 04 04 00 00 00 00 00 90 00 1E [18:17: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 F9 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 A9 01 00 00 5E 04 04 00 A9 01 00 00 57 04 04 00 AA 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:17:45]wFMCommunicate OK [18:17:45]SAM_PROTO_GetFieldsCounters done [18:17:45]requested_item shift.num is exist - process it [18:17:45]requested_item shift.opened is exist - process it [18:17:45]req_shift_opened [18:17:45]FM_GetShiftState [18:17:45]SAM_PROTO_GetShiftState [18:17:45]wFMCommunicate request_size=4 [18:17:45]MH_SAM_APDU [18:17:45]CAPDU: 80 13 01 00 [18:17:45]Write to MH i2c: E2 08 00 DA 17 80 13 01 00 00 00 00 00 6E [18:17:45]Write i2c OK [18:17:45]MH_I2C_Read... [18:17:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:17:45]Read from MH i2c: E2 [18:17:45]MH_I2C_Read... [18:17:45]Read from MH i2c: E2 0E 00 [18:17:45]MH_I2C_Read... [18:17:45]Read from MH i2c: E2 0E 00 DA 17 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 88 [18:17:45]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:17:45]wFMCommunicate OK [18:17:45]SAM_PROTO_GetShiftState done [18:17:45]FM_GetShiftState done [18:17:45]req_shift_opened done [18:17:45]requested_item shift.open_date is exist - process it [18:17:45]req_shift_open_date [18:17:45]req_shift_open_date done [18:17:45]produce_requested_data done [18:17:45]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227577,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [18:17:45]process_action_free close_receipt [18:17:45]json_value_free [18:17:45]json_value_free done [18:17:45]process_json_proto returns [18:17:45]Send response to host [18:17:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227577,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [18:17:45]free response buf [18:17:45]execute_script done [18:17:45]execute_script returns [18:17:45]free content buf [18:17:45]Sock 7.Close socket [18:17:45]Sock 7.Thread stoped [18:17:45]OFD Sender: No OFD packet to send [18:17:50]OFD Sender: No OFD packet to send [18:17:55]OFD Sender: No OFD packet to send [18:18:00]OFD Sender: No OFD packet to send [18:18:05]OFD Sender: No OFD packet to send [18:18:10]OFD Sender: No OFD packet to send [18:18:15]OFD Sender: No OFD packet to send [18:18:20]OFD Sender: No OFD packet to send [18:18:25]OFD Sender: No OFD packet to send [18:18:30]OFD Sender: No OFD packet to send [18:18:35]OFD Sender: No OFD packet to send [18:18:40]OFD Sender: No OFD packet to send [18:18:45]OFD Sender: No OFD packet to send [18:18:50]OFD Sender: No OFD packet to send [18:18:55]OFD Sender: No OFD packet to send [18:19:00]OFD Sender: No OFD packet to send [18:19:05]OFD Sender: No OFD packet to send [18:19:10]OFD Sender: No OFD packet to send [18:19:15]OFD Sender: No OFD packet to send [18:19:20]OFD Sender: No OFD packet to send [18:19:25]OFD Sender: No OFD packet to send [18:19:29]accept exits with 9 [18:19:29]New connection [18:19:29]New thread 3067219300 created [18:19:29]Thread 3067362660 joined [18:19:29]Waiting for new connection... [18:19:29] Sock 9.Parse request [18:19:29]Sock 9.Check first char [18:19:29]Sock 9.First char is OK [18:19:29]request: POST /json_proto HTTP/1.0 [18:19:29]Method: POST [18:19:29]URL: /json_proto [18:19:29]Method is POST - this is cgi request [18:19:29]url: /json_proto [18:19:29]query_string will be loaded in cgi processing [18:19:29]execute_cgi json_proto POST (null) [18:19:29]execute_cgi path=json_proto method=POST [18:19:29]POST find Content-Length [18:19:29]Host: 172.17.44.195:8080 [18:19:29]Content-Length: 678 [18:19:29]Content-Type: application/json [18:19:29] [18:19:29]POST finish read [18:19:29]Found Content-Length = 678 [18:19:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963214", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:19:29]execute_script... [18:19: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)1963214", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:19:29]POST & json_proto [18:19:29]process_json_proto [18:19:29]json parsed OK: [18:19:29]protocol is kg_v1.0 [18:19:29]action value=close_receipt [18:19:29]process_action close_receipt [18:19:29]cmd_close_receipt [18:19:29]MH_GetDate [18:19:29]Write to MH i2c: F0 00 00 DB 17 E1 [18:19:29]Write i2c OK [18:19:29]MH_I2C_Read... [18:19:29]Read from MH i2c: F0 [18:19:29]MH_I2C_Read... [18:19:29]Read from MH i2c: F0 09 00 [18:19:29]MH_I2C_Read... [18:19:29]Read from MH i2c: F0 09 00 DB 17 00 B2 49 15 67 82 C9 CF 66 E1 [18:19:29]GetLastDocTimeStamp 1729448264 [18:19:29]current date 1729448370 [18:19:29]FM_GetShiftState [18:19:29]SAM_PROTO_GetShiftState [18:19:29]wFMCommunicate request_size=4 [18:19:29]MH_SAM_APDU [18:19:29]CAPDU: 80 13 01 00 [18:19:29]Write to MH i2c: E2 08 00 DC 17 80 13 01 00 00 00 00 00 70 [18:19:29]Write i2c OK [18:19:29]MH_I2C_Read... [18:19:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:19:29]Read from MH i2c: E2 [18:19:29]MH_I2C_Read... [18:19:29]Read from MH i2c: E2 0E 00 [18:19:29]MH_I2C_Read... [18:19:29]Read from MH i2c: E2 0E 00 DC 17 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 8A [18:19:29]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:19:29]wFMCommunicate OK [18:19:29]SAM_PROTO_GetShiftState done [18:19:29]FM_GetShiftState done [18:19:29]opened in 1729383750 [18:19:29]opened+sec_in_day 1729470150 [18:19:29]quantity*price = 30038 [18:19:29]sum+1 = 30039 [18:19:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 426 20.10.2024 18:19 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227578 ФПД: 162585818690874 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T181930&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227578&fm=162585818690874&tin=02508201610067®Number=0000000000091685&sum=30000 [18:19:30]StoreToDocumentArchive [18:19:30]shift 533 fd 227578 [18:19:30]save to /storage/0533/doc_00227578 [18:19:30]save last doc name /storage/0533/doc_00227578 to /storage/kkm_last_doc_name [18:19:30]save OK [18:19:30]Clear old archive folders... [18:19:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:19:30]tlvbuf is 00E36EB0 [18:19:30]SAM_PROTO_ClearQueue [18:19:30]wFMCommunicate request_size=4 [18:19:30]MH_SAM_APDU [18:19:30]CAPDU: 80 09 00 00 [18:19:30]Write to MH i2c: E2 08 00 E9 17 80 09 00 00 00 00 00 00 72 [18:19:30]Write i2c OK [18:19:30]MH_I2C_Read... [18:19:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:19:30]Read from MH i2c: E2 [18:19:30]MH_I2C_Read... [18:19:30]Read from MH i2c: E2 03 00 [18:19:30]MH_I2C_Read... [18:19:30]Read from MH i2c: E2 03 00 E9 17 00 90 00 74 [18:19:30]RAPDU: 90 00 [18:19:30]wFMCommunicate OK [18:19:30]SAM_PROTO_ClearQueue done [18:19:30]KKMCreateOFDPacket [18:19:30]OFDProtocolAddRootSTLVToBuf [18:19:30]FM_MakeSignedData [18:19:30]FM_MakeSignedData [18:19:30]SAM_PROTO_SignData [18:19:30]wFMCommunicate request_size=4 [18:19:30]MH_SAM_APDU [18:19:30]CAPDU: 80 0D 01 02 [18:19:30]Write to MH i2c: E2 08 00 EA 17 80 0D 01 02 00 00 00 00 7A [18:19:30]Write i2c OK [18:19:30]MH_I2C_Read... [18:19:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:19:30]Read from MH i2c: E2 [18:19:30]MH_I2C_Read... [18:19:30]Read from MH i2c: E2 03 00 [18:19:30]MH_I2C_Read... [18:19:30]Read from MH i2c: E2 03 00 EA 17 00 90 00 75 [18:19:30]RAPDU: 90 00 [18:19:30]wFMCommunicate OK [18:19:30]wFMCommunicate request_size=255 [18:19:30]MH_SAM_APDU [18:19:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 01 00 00 F4 03 04 00 B2 49 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FA 78 03 00 35 04 06 00 93 [18:19:30]Write to MH i2c: E2 02 01 EB 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 01 00 00 F4 03 04 00 B2 49 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FA 78 03 00 35 04 06 00 93 00 00 46 [18:19:30]Write i2c OK [18:19:30]MH_I2C_Read... [18:19:30]OFD Sender: No OFD packet to send [18:19:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:19:30]Read from MH i2c: E2 [18:19:30]MH_I2C_Read... [18:19:30]Read from MH i2c: E2 03 00 [18:19:30]MH_I2C_Read... [18:19:30]Read from MH i2c: E2 03 00 EB 17 00 90 00 76 [18:19:30]RAPDU: 90 00 [18:19:30]wFMCommunicate OK [18:19:30]wFMCommunicate request_size=10 [18:19:30]MH_SAM_APDU [18:19:30]CAPDU: 80 0D 02 02 05 DE F5 F7 F5 3A [18:19:30]Write to MH i2c: E2 0D 00 EC 17 80 0D 02 02 05 00 DE F5 F7 F5 3A 00 00 80 [18:19:30]Write i2c OK [18:19:30]MH_I2C_Read... [18:19:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:19:30]Read from MH i2c: E2 [18:19:30]MH_I2C_Read... [18:19:30]Read from MH i2c: E2 03 00 [18:19:30]MH_I2C_Read... [18:19:30]Read from MH i2c: E2 03 00 EC 17 00 90 00 77 [18:19:30]RAPDU: 90 00 [18:19:30]wFMCommunicate OK [18:19:30]wFMCommunicate request_size=4 [18:19:30]MH_SAM_APDU [18:19:30]CAPDU: 80 0D 03 02 [18:19:30]Write to MH i2c: E2 08 00 ED 17 80 0D 03 02 00 00 00 00 7F [18:19:30]Write i2c OK [18:19:30]MH_I2C_Read... [18:19:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:19:30]Read from MH i2c: E2 [18:19:30]MH_I2C_Read... [18:19:30]Read from MH i2c: E2 0B 00 [18:19:30]MH_I2C_Read... [18:19:30]Read from MH i2c: E2 0B 00 ED 17 00 ED 20 DA 9E E0 9F 33 B8 90 00 6F [18:19:30]RAPDU: ED 20 DA 9E E0 9F 33 B8 90 00 [18:19:30]wFMCommunicate OK [18:19:30]SAM_PROTO_SignData done [18:19:30]FM_MakeSignedData done [18:19:30]CreateOFDProtocolMessage [18:19:30]wFMCommunicate request_size=4 [18:19:30]MH_SAM_APDU [18:19:30]CAPDU: 80 11 00 00 [18:19:30]Write to MH i2c: E2 08 00 EE 17 80 11 00 00 00 00 00 00 7F [18:19:30]Write i2c OK [18:19:30]MH_I2C_Read... [18:19:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:19:30]Read from MH i2c: E2 [18:19:30]MH_I2C_Read... [18:19:30]Read from MH i2c: E2 17 00 [18:19:30]MH_I2C_Read... [18:19:30]Read from MH i2c: E2 17 00 EE 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D6 [18:19:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:19:30]wFMCommunicate OK [18:19:30]CreateOFDProtocolMessage done [18:19:30]OFDSenderStorePacket 227578 [18:19:30]StoreOFDPacket docnum=227578 [18:19:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 5D 4C 07 01 AC CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 01 00 00 F4 03 04 00 B2 49 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FA 78 03 00 35 04 06 00 93 DE F5 F7 F5 3A ED 20 DA 9E E0 9F 33 B8 [18:19:30]CheckFolder [18:19:30]dirname=/storage/ofd_packets [18:19:30]CheckFolder done [18:19:30]ProducePacketName [18:19:30]name=ofd_packets/00227578 [18:19:30]NVStorageSaveData ofd_packets/00227578 [18:19:30]File name is /storage/ofd_packets/00227578 [18:19:30]Write 301 bytes [18:19:30]NVStorageSaveData done [18:19:30]OFDSenderStorePacket done [18:19:30]KKMCreateOFDPacket done [18:19:30]NVStorageSaveData kkm_last_timestamp [18:19:30]File name is /storage/kkm_last_timestamp [18:19:30]Write 4 bytes [18:19:30]NVStorageSaveData done [18:19:30]ExternCall_PrintAddStr [18:19:30]wPrintStart [18:19:30]Write to MH i2c: 01 00 00 EF 17 06 [18:19:30]Write i2c OK [18:19:30]MH_I2C_Read... [18:19:30]Read from MH i2c: 01 [18:19:30]MH_I2C_Read... [18:19:30]Read from MH i2c: 01 07 00 [18:19:30]MH_I2C_Read... [18:19:30]Read from MH i2c: 01 07 00 EF 17 00 00 00 00 00 FF 0F 1B [18:19:30]RasterBufferAndPrint [18:19:30]line Счет N : (1)1963214 [18:19:30]line ИНН: 02508201610067 [18:19:30]line Контрольно-Кассовый Чек [18:19:30]line ПРОДАЖА [18:19:30]line ТРК (МРК, ГНК) : 43 [18:19:30]line Товар: 2710124130 [18:19:30]line Аи-92-К-5 [18:19:30]line 4.490 * 66.90 [18:19:30]line = 300.38 [18:19:30]line НДС 12% НСП 1% [18:19:30]line > о реализуемом товаре [18:19:30]line ОКРУГЛЕНИЕ: -0.38 [18:19:30]line ИТОГО: 300.00 [18:19:30]line Внесено: 300.00 [18:19:30]line СДАЧА: 0.00 [18:19:30]line НСП 1% : 2.66 [18:19:30]line НДС 12% : 31.90 [18:19:30]line Наличными: 300.00 [18:19:30]line Безнал.: 0.00 [18:19:30]line Место: АЗС № 133 "Партнер Нефть" [18:19:30]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:19:30]line СНО: Общий режим [18:19:30]line Чек 426 20.10.2024 18:19 [18:19:30]line Смена: 533 ФФД: 1.0 [18:19:30]line ЗНМ: 0300000091 [18:19:30]line РНМ: 0000000000091685 [18:19:30]line Версия ККМ: 001 [18:19:30]line ФМ: 0000000000871839 [18:19:30]line ФД: 227578 [18:19:30]line ФПД: 162585818690874 [18:19:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T181930&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227578&fm=162585818690874&tin=02508201610067®Number=0000000000091685&sum=30000 [18:19:31]OFD Sender: Processing packet 227578 [packets to send 38, broken 37] [18:19:31]ProducePacketName [18:19:31]name=ofd_packets/00227578 [18:19:31]OFD Sender: To server: pG, [18:19:31]CommunicateWithHost lk.salyk.kg:30040 [18:19:31]ConnectInit lk.salyk.kg [18:19:31]written 0, free lines is 4095 [18:19:31]Connected sock=10 [18:19: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 33 39 0F 01 00 00 5D 4C 07 01 AC CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 01 00 00 F4 03 04 00 B2 49 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FA 78 03 00 35 04 06 00 93 DE F5 F7 F5 3A ED 20 DA 9E E0 9F 33 B8 [18:19: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 33 39 4F 00 00 00 95 35 47 00 0F 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 33 39 10 04 04 00 FA 78 03 00 F4 03 04 00 B1 F4 14 67 B6 04 01 00 00 B2 86 70 A2 6D 69 E0 C9 [18:19:31]CommunicateWithHost err = 0 [18:19:31]CheckOFDResponse [18:19:31]1017 (14) - 77093643461234 [18:19:31]1041 (16) - 0000000000871839 [18:19:31]1040 (4) - 227578 [18:19:31]1012 (4) - 20.10.2024 12:16 [18:19:31]1206 (1) - 0 [18:19:31]OFD Sender: Remove packet 227578 [18:19:31]ProducePacketName [18:19:31]name=ofd_packets/00227578 [18:19:31]NVStorageDeleteData [18:19:31]Write to MH i2c: 01 00 00 19 18 31 [18:19:31]Write i2c OK [18:19:31]MH_I2C_Read... [18:19:31]Read from MH i2c: 01 [18:19:31]MH_I2C_Read... [18:19:31]Read from MH i2c: 01 07 00 [18:19:31]MH_I2C_Read... [18:19:31]Read from MH i2c: 01 07 00 19 18 00 00 00 00 00 06 0D 4B [18:19:31]RasterBufferAndPrint [18:19:31]line [18:19:31]line [18:19:31]line [18:19:31]line [18:19:31]line [18:19:31]written 0, free lines is 3340 [18:19:31]process_action close_receipt done [18:19:31]requested_data is exist [18:19:31]produce_requested_data [18:19:31]requested_item fm.sn is exist - process it [18:19:31]wFMCommunicate request_size=4 [18:19:31]MH_SAM_APDU [18:19:31]CAPDU: 80 11 00 00 [18:19:31]Write to MH i2c: E2 08 00 20 18 80 11 00 00 00 00 00 00 B2 [18:19:31]Write i2c OK [18:19:31]MH_I2C_Read... [18:19:31]Read from MH i2c: E2 [18:19:31]MH_I2C_Read... [18:19:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:19:31]Read from MH i2c: E2 17 00 [18:19:31]MH_I2C_Read... [18:19:31]Read from MH i2c: E2 17 00 20 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 09 [18:19:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:19:31]wFMCommunicate OK [18:19:31]requested_item fd.num is exist - process it [18:19:31]SAM_PROTO_GetFieldsCounters [18:19:31]wFMCommunicate request_size=4 [18:19:31]MH_SAM_APDU [18:19:31]CAPDU: 80 13 00 00 [18:19:31]Write to MH i2c: E2 08 00 21 18 80 13 00 00 00 00 00 00 B5 [18:19:31]Write i2c OK [18:19:31]MH_I2C_Read... [18:19:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:19:31]Read from MH i2c: E2 [18:19:31]MH_I2C_Read... [18:19:31]Read from MH i2c: E2 62 00 [18:19:31]MH_I2C_Read... [18:19:31]Read from MH i2c: E2 62 00 21 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 FA 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 AA 01 00 00 5E 04 04 00 AA 01 00 00 57 04 04 00 AB 01 00 00 19 04 04 00 00 00 00 00 90 00 6B [18:19: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 FA 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 AA 01 00 00 5E 04 04 00 AA 01 00 00 57 04 04 00 AB 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:19:31]wFMCommunicate OK [18:19:31]SAM_PROTO_GetFieldsCounters done [18:19:31]requested_item shift.num is exist - process it [18:19:31]requested_item shift.opened is exist - process it [18:19:31]req_shift_opened [18:19:31]FM_GetShiftState [18:19:31]SAM_PROTO_GetShiftState [18:19:31]wFMCommunicate request_size=4 [18:19:31]MH_SAM_APDU [18:19:31]CAPDU: 80 13 01 00 [18:19:31]Write to MH i2c: E2 08 00 22 18 80 13 01 00 00 00 00 00 B7 [18:19:31]Write i2c OK [18:19:31]MH_I2C_Read... [18:19:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:19:32]Read from MH i2c: E2 [18:19:32]MH_I2C_Read... [18:19:32]Read from MH i2c: E2 0E 00 [18:19:32]MH_I2C_Read... [18:19:32]Read from MH i2c: E2 0E 00 22 18 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 D1 [18:19:32]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:19:32]wFMCommunicate OK [18:19:32]SAM_PROTO_GetShiftState done [18:19:32]FM_GetShiftState done [18:19:32]req_shift_opened done [18:19:32]requested_item shift.open_date is exist - process it [18:19:32]req_shift_open_date [18:19:32]req_shift_open_date done [18:19:32]produce_requested_data done [18:19:32]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227578,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [18:19:32]process_action_free close_receipt [18:19:32]json_value_free [18:19:32]json_value_free done [18:19:32]process_json_proto returns [18:19:32]Send response to host [18:19:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227578,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [18:19:32]free response buf [18:19:32]execute_script done [18:19:32]execute_script returns [18:19:32]free content buf [18:19:32]Sock 9.Close socket [18:19:32]Sock 9.Thread stoped [18:19:32]OFD Sender: No OFD packet to send [18:19:37]OFD Sender: No OFD packet to send [18:19:42]OFD Sender: No OFD packet to send [18:19:47]OFD Sender: No OFD packet to send [18:19:52]OFD Sender: No OFD packet to send [18:19:52]accept exits with 7 [18:19:52]New connection [18:19:52]New thread 3067362660 created [18:19:52]Thread 3067219300 joined [18:19:52]Waiting for new connection... [18:19:52] Sock 7.Parse request [18:19:52]Sock 7.Check first char [18:19:52]Sock 7.First char is OK [18:19:52]request: POST /json_proto HTTP/1.0 [18:19:52]Method: POST [18:19:52]URL: /json_proto [18:19:52]Method is POST - this is cgi request [18:19:52]url: /json_proto [18:19:52]query_string will be loaded in cgi processing [18:19:52]execute_cgi json_proto POST (null) [18:19:52]execute_cgi path=json_proto method=POST [18:19:52]POST find Content-Length [18:19:52]Host: 172.17.44.195:8080 [18:19:52]Content-Length: 675 [18:19:52]Content-Type: application/json [18:19:52] [18:19:52]POST finish read [18:19:52]Found Content-Length = 675 [18:19:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963215", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:19:52]execute_script... [18:19: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)1963215", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:19:52]POST & json_proto [18:19:52]process_json_proto [18:19:52]json parsed OK: [18:19:52]protocol is kg_v1.0 [18:19:52]action value=close_receipt [18:19:52]process_action close_receipt [18:19:52]cmd_close_receipt [18:19:52]MH_GetDate [18:19:52]Write to MH i2c: F0 00 00 23 18 2A [18:19:52]Write i2c OK [18:19:52]MH_I2C_Read... [18:19:52]Read from MH i2c: F0 [18:19:52]MH_I2C_Read... [18:19:52]Read from MH i2c: F0 09 00 [18:19:52]MH_I2C_Read... [18:19:52]Read from MH i2c: F0 09 00 23 18 00 C9 49 15 67 82 C9 CF 66 41 [18:19:52]GetLastDocTimeStamp 1729448370 [18:19:52]current date 1729448393 [18:19:52]FM_GetShiftState [18:19:52]SAM_PROTO_GetShiftState [18:19:52]wFMCommunicate request_size=4 [18:19:52]MH_SAM_APDU [18:19:52]CAPDU: 80 13 01 00 [18:19:52]Write to MH i2c: E2 08 00 24 18 80 13 01 00 00 00 00 00 B9 [18:19:52]Write i2c OK [18:19:52]MH_I2C_Read... [18:19:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:19:52]Read from MH i2c: E2 [18:19:52]MH_I2C_Read... [18:19:52]Read from MH i2c: E2 0E 00 [18:19:52]MH_I2C_Read... [18:19:52]Read from MH i2c: E2 0E 00 24 18 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 D3 [18:19:52]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:19:52]wFMCommunicate OK [18:19:52]SAM_PROTO_GetShiftState done [18:19:52]FM_GetShiftState done [18:19:52]opened in 1729383750 [18:19:52]opened+sec_in_day 1729470150 [18:19:52]quantity*price = 70027 [18:19:52]sum+1 = 70029 [18:19:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 427 20.10.2024 18:19 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227579 ФПД: 26118029268310 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T181953&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227579&fm=26118029268310&tin=02508201610067®Number=0000000000091685&sum=70000 [18:19:53]StoreToDocumentArchive [18:19:53]shift 533 fd 227579 [18:19:53]save to /storage/0533/doc_00227579 [18:19:53]save last doc name /storage/0533/doc_00227579 to /storage/kkm_last_doc_name [18:19:53]save OK [18:19:53]Clear old archive folders... [18:19:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:19:53]tlvbuf is B6FBCA30 [18:19:53]SAM_PROTO_ClearQueue [18:19:53]wFMCommunicate request_size=4 [18:19:53]MH_SAM_APDU [18:19:53]CAPDU: 80 09 00 00 [18:19:53]Write to MH i2c: E2 08 00 31 18 80 09 00 00 00 00 00 00 BB [18:19:53]Write i2c OK [18:19:53]MH_I2C_Read... [18:19:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:19:53]Read from MH i2c: E2 [18:19:53]MH_I2C_Read... [18:19:53]Read from MH i2c: E2 03 00 [18:19:53]MH_I2C_Read... [18:19:53]Read from MH i2c: E2 03 00 31 18 00 90 00 BD [18:19:53]RAPDU: 90 00 [18:19:53]wFMCommunicate OK [18:19:53]SAM_PROTO_ClearQueue done [18:19:53]KKMCreateOFDPacket [18:19:53]OFDProtocolAddRootSTLVToBuf [18:19:53]FM_MakeSignedData [18:19:53]FM_MakeSignedData [18:19:53]SAM_PROTO_SignData [18:19:53]wFMCommunicate request_size=4 [18:19:53]MH_SAM_APDU [18:19:53]CAPDU: 80 0D 01 02 [18:19:53]Write to MH i2c: E2 08 00 32 18 80 0D 01 02 00 00 00 00 C3 [18:19:53]Write i2c OK [18:19:53]MH_I2C_Read... [18:19:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:19:53]Read from MH i2c: E2 [18:19:53]MH_I2C_Read... [18:19:53]Read from MH i2c: E2 03 00 [18:19:53]MH_I2C_Read... [18:19:53]Read from MH i2c: E2 03 00 32 18 00 90 00 BE [18:19:53]RAPDU: 90 00 [18:19:53]wFMCommunicate OK [18:19:53]wFMCommunicate request_size=255 [18:19:53]MH_SAM_APDU [18:19:53]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 01 00 00 F4 03 04 00 C9 49 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FB 78 03 00 35 04 06 00 17 C1 13 DB [18:19:53]Write to MH i2c: E2 02 01 33 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 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 01 00 00 F4 03 04 00 C9 49 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FB 78 03 00 35 04 06 00 17 C1 13 DB 00 00 D9 [18:19:53]Write i2c OK [18:19:53]MH_I2C_Read... [18:19:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:19:53]Read from MH i2c: E2 [18:19:53]MH_I2C_Read... [18:19:53]Read from MH i2c: E2 03 00 [18:19:53]MH_I2C_Read... [18:19:53]Read from MH i2c: E2 03 00 33 18 00 90 00 BF [18:19:53]RAPDU: 90 00 [18:19:53]wFMCommunicate OK [18:19:53]wFMCommunicate request_size=7 [18:19:53]MH_SAM_APDU [18:19:53]CAPDU: 80 0D 02 02 02 55 56 [18:19:53]Write to MH i2c: E2 0A 00 34 18 80 0D 02 02 02 00 55 56 00 00 75 [18:19:53]Write i2c OK [18:19:53]MH_I2C_Read... [18:19:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:19:53]Read from MH i2c: E2 [18:19:53]MH_I2C_Read... [18:19:53]Read from MH i2c: E2 03 00 [18:19:53]MH_I2C_Read... [18:19:53]Read from MH i2c: E2 03 00 34 18 00 90 00 C0 [18:19:53]RAPDU: 90 00 [18:19:53]wFMCommunicate OK [18:19:53]wFMCommunicate request_size=4 [18:19:53]MH_SAM_APDU [18:19:53]CAPDU: 80 0D 03 02 [18:19:53]Write to MH i2c: E2 08 00 35 18 80 0D 03 02 00 00 00 00 C8 [18:19:53]Write i2c OK [18:19:53]MH_I2C_Read... [18:19:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:19:53]Read from MH i2c: E2 [18:19:53]MH_I2C_Read... [18:19:53]Read from MH i2c: E2 0B 00 [18:19:53]MH_I2C_Read... [18:19:53]Read from MH i2c: E2 0B 00 35 18 00 BE F0 89 C3 13 C8 FE 11 90 00 AD [18:19:53]RAPDU: BE F0 89 C3 13 C8 FE 11 90 00 [18:19:53]wFMCommunicate OK [18:19:53]SAM_PROTO_SignData done [18:19:53]FM_MakeSignedData done [18:19:53]CreateOFDProtocolMessage [18:19:53]wFMCommunicate request_size=4 [18:19:53]MH_SAM_APDU [18:19:53]CAPDU: 80 11 00 00 [18:19:53]Write to MH i2c: E2 08 00 36 18 80 11 00 00 00 00 00 00 C8 [18:19:53]Write i2c OK [18:19:53]MH_I2C_Read... [18:19:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:19:53]Read from MH i2c: E2 [18:19:53]MH_I2C_Read... [18:19:53]Read from MH i2c: E2 17 00 [18:19:53]MH_I2C_Read... [18:19:53]Read from MH i2c: E2 17 00 36 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 1F [18:19:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:19:53]wFMCommunicate OK [18:19:53]CreateOFDProtocolMessage done [18:19:53]OFDSenderStorePacket 227579 [18:19:53]StoreOFDPacket docnum=227579 [18:19:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 1D 72 04 01 B8 F7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 01 00 00 F4 03 04 00 C9 49 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FB 78 03 00 35 04 06 00 17 C1 13 DB 55 56 BE F0 89 C3 13 C8 FE 11 [18:19:53]CheckFolder [18:19:53]dirname=/storage/ofd_packets [18:19:53]CheckFolder done [18:19:53]ProducePacketName [18:19:53]name=ofd_packets/00227579 [18:19:53]NVStorageSaveData ofd_packets/00227579 [18:19:53]File name is /storage/ofd_packets/00227579 [18:19:53]Write 298 bytes [18:19:53]NVStorageSaveData done [18:19:53]OFDSenderStorePacket done [18:19:53]KKMCreateOFDPacket done [18:19:53]NVStorageSaveData kkm_last_timestamp [18:19:53]File name is /storage/kkm_last_timestamp [18:19:53]Write 4 bytes [18:19:53]NVStorageSaveData done [18:19:53]ExternCall_PrintAddStr [18:19:53]wPrintStart [18:19:53]Write to MH i2c: 01 00 00 37 18 4F [18:19:53]Write i2c OK [18:19:53]MH_I2C_Read... [18:19:53]Read from MH i2c: 01 [18:19:53]MH_I2C_Read... [18:19:53]Read from MH i2c: 01 07 00 [18:19:53]MH_I2C_Read... [18:19:53]Read from MH i2c: 01 07 00 37 18 00 00 00 00 00 FF 0F 64 [18:19:53]RasterBufferAndPrint [18:19:53]line Счет N : (1)1963215 [18:19:53]line ИНН: 02508201610067 [18:19:53]line Контрольно-Кассовый Чек [18:19:53]line ПРОДАЖА [18:19:53]line ТРК (МРК, ГНК) : 21 [18:19:53]line Товар: 2710194210 [18:19:53]line ДТ-К-5 [18:19:53]line 9.190 * 76.20 [18:19:53]line = 700.28 [18:19:53]line НДС 12% НСП 1% [18:19:53]line > о реализуемом товаре [18:19:53]line ОКРУГЛЕНИЕ: -0.28 [18:19:53]line ИТОГО: 700.00 [18:19:53]line Внесено: 700.00 [18:19:53]line СДАЧА: 0.00 [18:19:53]line НСП 1% : 6.20 [18:19:53]line НДС 12% : 74.37 [18:19:53]line Наличными: 700.00 [18:19:53]line Безнал.: 0.00 [18:19:53]line Место: АЗС № 133 "Партнер Нефть" [18:19:53]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:19:53]line СНО: Общий режим [18:19:53]line Чек 427 20.10.2024 18:19 [18:19:53]line Смена: 533 ФФД: 1.0 [18:19:53]line ЗНМ: 0300000091 [18:19:53]line РНМ: 0000000000091685 [18:19:53]line Версия ККМ: 001 [18:19:53]line ФМ: 0000000000871839 [18:19:53]line ФД: 227579 [18:19:53]line ФПД: 26118029268310 [18:19:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T181953&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227579&fm=26118029268310&tin=02508201610067®Number=0000000000091685&sum=70000 [18:19:54]OFD Sender: Processing packet 227579 [packets to send 38, broken 37] [18:19:54]ProducePacketName [18:19:54]name=ofd_packets/00227579 [18:19:54]OFD Sender: To server: pG, [18:19:54]CommunicateWithHost lk.salyk.kg:30040 [18:19:54]ConnectInit lk.salyk.kg [18:19:54]written 0, free lines is 4095 [18:19:54]Connected sock=10 [18:19: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 33 39 0C 01 00 00 1D 72 04 01 B8 F7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 01 00 00 F4 03 04 00 C9 49 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FB 78 03 00 35 04 06 00 17 C1 13 DB 55 56 BE F0 89 C3 13 C8 FE 11 [18:19: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 33 39 4F 00 00 00 66 C6 47 00 C3 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 33 39 10 04 04 00 FB 78 03 00 F4 03 04 00 C7 F4 14 67 B6 04 01 00 00 3D 72 79 0F AA 0D 12 F9 [18:19:54]CommunicateWithHost err = 0 [18:19:54]CheckOFDResponse [18:19:54]1017 (14) - 77093643461234 [18:19:54]1041 (16) - 0000000000871839 [18:19:54]1040 (4) - 227579 [18:19:54]1012 (4) - 20.10.2024 12:17 [18:19:54]1206 (1) - 0 [18:19:54]OFD Sender: Remove packet 227579 [18:19:54]ProducePacketName [18:19:54]name=ofd_packets/00227579 [18:19:54]NVStorageDeleteData [18:19:54]Write to MH i2c: 01 00 00 61 18 79 [18:19:54]Write i2c OK [18:19:54]MH_I2C_Read... [18:19:54]Read from MH i2c: 01 [18:19:54]MH_I2C_Read... [18:19:54]Read from MH i2c: 01 07 00 [18:19:54]MH_I2C_Read... [18:19:54]Read from MH i2c: 01 07 00 61 18 00 00 00 00 00 F5 0C 81 [18:19:54]RasterBufferAndPrint [18:19:54]line [18:19:54]line [18:19:54]line [18:19:54]line [18:19:54]line [18:19:54]written 0, free lines is 3323 [18:19:54]process_action close_receipt done [18:19:54]requested_data is exist [18:19:54]produce_requested_data [18:19:54]requested_item fm.sn is exist - process it [18:19:54]wFMCommunicate request_size=4 [18:19:54]MH_SAM_APDU [18:19:54]CAPDU: 80 11 00 00 [18:19:54]Write to MH i2c: E2 08 00 68 18 80 11 00 00 00 00 00 00 FA [18:19:54]Write i2c OK [18:19:54]MH_I2C_Read... [18:19:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:19:54]Read from MH i2c: E2 [18:19:54]MH_I2C_Read... [18:19:54]Read from MH i2c: E2 17 00 [18:19:54]MH_I2C_Read... [18:19:54]Read from MH i2c: E2 17 00 68 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 51 [18:19:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:19:54]wFMCommunicate OK [18:19:54]requested_item fd.num is exist - process it [18:19:54]SAM_PROTO_GetFieldsCounters [18:19:54]wFMCommunicate request_size=4 [18:19:54]MH_SAM_APDU [18:19:54]CAPDU: 80 13 00 00 [18:19:54]Write to MH i2c: E2 08 00 69 18 80 13 00 00 00 00 00 00 FD [18:19:54]Write i2c OK [18:19:54]MH_I2C_Read... [18:19:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:19:54]Read from MH i2c: E2 [18:19:54]MH_I2C_Read... [18:19:54]Read from MH i2c: E2 62 00 [18:19:54]MH_I2C_Read... [18:19:54]Read from MH i2c: E2 62 00 69 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 FB 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 AB 01 00 00 5E 04 04 00 AB 01 00 00 57 04 04 00 AC 01 00 00 19 04 04 00 00 00 00 00 90 00 B7 [18:19:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 FB 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 AB 01 00 00 5E 04 04 00 AB 01 00 00 57 04 04 00 AC 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:19:54]wFMCommunicate OK [18:19:54]SAM_PROTO_GetFieldsCounters done [18:19:54]requested_item shift.num is exist - process it [18:19:54]requested_item shift.opened is exist - process it [18:19:54]req_shift_opened [18:19:54]FM_GetShiftState [18:19:54]SAM_PROTO_GetShiftState [18:19:54]wFMCommunicate request_size=4 [18:19:54]MH_SAM_APDU [18:19:54]CAPDU: 80 13 01 00 [18:19:54]Write to MH i2c: E2 08 00 6A 18 80 13 01 00 00 00 00 00 FF [18:19:54]Write i2c OK [18:19:54]MH_I2C_Read... [18:19:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:19:54]Read from MH i2c: E2 [18:19:54]MH_I2C_Read... [18:19:54]Read from MH i2c: E2 0E 00 [18:19:54]MH_I2C_Read... [18:19:54]Read from MH i2c: E2 0E 00 6A 18 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 19 [18:19:54]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:19:54]wFMCommunicate OK [18:19:54]SAM_PROTO_GetShiftState done [18:19:54]FM_GetShiftState done [18:19:54]req_shift_opened done [18:19:54]requested_item shift.open_date is exist - process it [18:19:54]req_shift_open_date [18:19:54]req_shift_open_date done [18:19:54]produce_requested_data done [18:19:54]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227579,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [18:19:54]process_action_free close_receipt [18:19:54]json_value_free [18:19:54]json_value_free done [18:19:54]process_json_proto returns [18:19:54]Send response to host [18:19:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227579,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [18:19:54]free response buf [18:19:54]execute_script done [18:19:54]execute_script returns [18:19:54]free content buf [18:19:54]Sock 7.Close socket [18:19:54]Sock 7.Thread stoped [18:19:54]OFD Sender: No OFD packet to send [18:19:59]OFD Sender: No OFD packet to send [18:20:04]OFD Sender: No OFD packet to send [18:20:09]OFD Sender: No OFD packet to send [18:20:14]OFD Sender: No OFD packet to send [18:20:19]OFD Sender: No OFD packet to send [18:20:24]OFD Sender: No OFD packet to send [18:20:29]OFD Sender: No OFD packet to send [18:20:34]OFD Sender: No OFD packet to send [18:20:39]OFD Sender: No OFD packet to send [18:20:44]OFD Sender: No OFD packet to send [18:20:49]OFD Sender: No OFD packet to send [18:20:54]OFD Sender: No OFD packet to send [18:21:00]OFD Sender: No OFD packet to send [18:21:05]OFD Sender: No OFD packet to send [18:21:10]OFD Sender: No OFD packet to send [18:21:15]OFD Sender: No OFD packet to send [18:21:20]OFD Sender: No OFD packet to send [18:21:25]OFD Sender: No OFD packet to send [18:21:30]OFD Sender: No OFD packet to send [18:21:35]OFD Sender: No OFD packet to send [18:21:36]accept exits with 9 [18:21:36]New connection [18:21:36]New thread 3067219300 created [18:21:36]Thread 3067362660 joined [18:21:36]Waiting for new connection... [18:21:36] Sock 9.Parse request [18:21:36]Sock 9.Check first char [18:21:36]Sock 9.First char is OK [18:21:36]request: POST /json_proto HTTP/1.0 [18:21:36]Method: POST [18:21:36]URL: /json_proto [18:21:36]Method is POST - this is cgi request [18:21:36]url: /json_proto [18:21:36]query_string will be loaded in cgi processing [18:21:36]execute_cgi json_proto POST (null) [18:21:36]execute_cgi path=json_proto method=POST [18:21:36]POST find Content-Length [18:21:36]Host: 172.17.44.195:8080 [18:21:36]Content-Length: 678 [18:21:36]Content-Type: application/json [18:21:36] [18:21:36]POST finish read [18:21:36]Found Content-Length = 678 [18:21:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963216", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:21:36]execute_script... [18:21:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963216", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:21:36]POST & json_proto [18:21:36]process_json_proto [18:21:36]json parsed OK: [18:21:36]protocol is kg_v1.0 [18:21:36]action value=close_receipt [18:21:36]process_action close_receipt [18:21:36]cmd_close_receipt [18:21:36]MH_GetDate [18:21:36]Write to MH i2c: F0 00 00 6B 18 72 [18:21:36]Write i2c OK [18:21:36]MH_I2C_Read... [18:21:36]Read from MH i2c: F0 [18:21:36]MH_I2C_Read... [18:21:36]Read from MH i2c: F0 09 00 [18:21:36]MH_I2C_Read... [18:21:36]Read from MH i2c: F0 09 00 6B 18 00 32 4A 15 67 82 C9 CF 66 F3 [18:21:36]GetLastDocTimeStamp 1729448393 [18:21:36]current date 1729448498 [18:21:36]FM_GetShiftState [18:21:36]SAM_PROTO_GetShiftState [18:21:36]wFMCommunicate request_size=4 [18:21:36]MH_SAM_APDU [18:21:36]CAPDU: 80 13 01 00 [18:21:36]Write to MH i2c: E2 08 00 6C 18 80 13 01 00 00 00 00 00 01 [18:21:36]Write i2c OK [18:21:36]MH_I2C_Read... [18:21:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:21:36]Read from MH i2c: E2 [18:21:36]MH_I2C_Read... [18:21:36]Read from MH i2c: E2 0E 00 [18:21:36]MH_I2C_Read... [18:21:36]Read from MH i2c: E2 0E 00 6C 18 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 1B [18:21:36]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:21:36]wFMCommunicate OK [18:21:36]SAM_PROTO_GetShiftState done [18:21:36]FM_GetShiftState done [18:21:36]opened in 1729383750 [18:21:36]opened+sec_in_day 1729470150 [18:21:36]quantity*price = 70044 [18:21:36]sum+1 = 70046 [18:21:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 428 20.10.2024 18:21 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227580 ФПД: 128072680650579 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T182138&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227580&fm=128072680650579&tin=02508201610067®Number=0000000000091685&sum=70000 [18:21:38]StoreToDocumentArchive [18:21:38]shift 533 fd 227580 [18:21:38]save to /storage/0533/doc_00227580 [18:21:38]save last doc name /storage/0533/doc_00227580 to /storage/kkm_last_doc_name [18:21:38]save OK [18:21:38]Clear old archive folders... [18:21:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:21:38]tlvbuf is B6F258F0 [18:21:38]SAM_PROTO_ClearQueue [18:21:38]wFMCommunicate request_size=4 [18:21:38]MH_SAM_APDU [18:21:38]CAPDU: 80 09 00 00 [18:21:38]Write to MH i2c: E2 08 00 79 18 80 09 00 00 00 00 00 00 03 [18:21:38]Write i2c OK [18:21:38]MH_I2C_Read... [18:21:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:21:38]Read from MH i2c: E2 [18:21:38]MH_I2C_Read... [18:21:38]Read from MH i2c: E2 03 00 [18:21:38]MH_I2C_Read... [18:21:38]Read from MH i2c: E2 03 00 79 18 00 90 00 05 [18:21:38]RAPDU: 90 00 [18:21:38]wFMCommunicate OK [18:21:38]SAM_PROTO_ClearQueue done [18:21:38]KKMCreateOFDPacket [18:21:38]OFDProtocolAddRootSTLVToBuf [18:21:38]FM_MakeSignedData [18:21:38]FM_MakeSignedData [18:21:38]SAM_PROTO_SignData [18:21:38]wFMCommunicate request_size=4 [18:21:38]MH_SAM_APDU [18:21:38]CAPDU: 80 0D 01 02 [18:21:38]Write to MH i2c: E2 08 00 7A 18 80 0D 01 02 00 00 00 00 0B [18:21:38]Write i2c OK [18:21:38]MH_I2C_Read... [18:21:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:21:38]Read from MH i2c: E2 [18:21:38]MH_I2C_Read... [18:21:38]Read from MH i2c: E2 03 00 [18:21:38]MH_I2C_Read... [18:21:38]Read from MH i2c: E2 03 00 7A 18 00 90 00 06 [18:21:38]RAPDU: 90 00 [18:21:38]wFMCommunicate OK [18:21:38]wFMCommunicate request_size=255 [18:21:38]MH_SAM_APDU [18:21:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 AC 01 00 00 F4 03 04 00 32 4A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FC 78 03 00 35 04 06 00 74 [18:21:38]Write to MH i2c: E2 02 01 7B 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 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 AC 01 00 00 F4 03 04 00 32 4A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FC 78 03 00 35 04 06 00 74 00 00 30 [18:21:38]Write i2c OK [18:21:38]MH_I2C_Read... [18:21:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:21:38]Read from MH i2c: E2 [18:21:38]MH_I2C_Read... [18:21:38]Read from MH i2c: E2 03 00 [18:21:38]MH_I2C_Read... [18:21:38]Read from MH i2c: E2 03 00 7B 18 00 90 00 07 [18:21:38]RAPDU: 90 00 [18:21:38]wFMCommunicate OK [18:21:38]wFMCommunicate request_size=10 [18:21:38]MH_SAM_APDU [18:21:38]CAPDU: 80 0D 02 02 05 7B 3E A2 B7 53 [18:21:38]Write to MH i2c: E2 0D 00 7C 18 80 0D 02 02 05 00 7B 3E A2 B7 53 00 00 7D [18:21:38]Write i2c OK [18:21:38]MH_I2C_Read... [18:21:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:21:38]Read from MH i2c: E2 [18:21:38]MH_I2C_Read... [18:21:38]Read from MH i2c: E2 03 00 [18:21:38]MH_I2C_Read... [18:21:38]Read from MH i2c: E2 03 00 7C 18 00 90 00 08 [18:21:38]RAPDU: 90 00 [18:21:38]wFMCommunicate OK [18:21:38]wFMCommunicate request_size=4 [18:21:38]MH_SAM_APDU [18:21:38]CAPDU: 80 0D 03 02 [18:21:38]Write to MH i2c: E2 08 00 7D 18 80 0D 03 02 00 00 00 00 10 [18:21:38]Write i2c OK [18:21:38]MH_I2C_Read... [18:21:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:21:38]Read from MH i2c: E2 [18:21:38]MH_I2C_Read... [18:21:38]Read from MH i2c: E2 0B 00 [18:21:38]MH_I2C_Read... [18:21:38]Read from MH i2c: E2 0B 00 7D 18 00 0F 15 2B 92 50 A9 4B 3F 90 00 75 [18:21:38]RAPDU: 0F 15 2B 92 50 A9 4B 3F 90 00 [18:21:38]wFMCommunicate OK [18:21:38]SAM_PROTO_SignData done [18:21:38]FM_MakeSignedData done [18:21:38]CreateOFDProtocolMessage [18:21:38]wFMCommunicate request_size=4 [18:21:38]MH_SAM_APDU [18:21:38]CAPDU: 80 11 00 00 [18:21:38]Write to MH i2c: E2 08 00 7E 18 80 11 00 00 00 00 00 00 10 [18:21:38]Write i2c OK [18:21:38]MH_I2C_Read... [18:21:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:21:38]Read from MH i2c: E2 [18:21:38]MH_I2C_Read... [18:21:38]Read from MH i2c: E2 17 00 [18:21:38]MH_I2C_Read... [18:21:38]Read from MH i2c: E2 17 00 7E 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 67 [18:21:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:21:38]wFMCommunicate OK [18:21:38]CreateOFDProtocolMessage done [18:21:38]OFDSenderStorePacket 227580 [18:21:38]StoreOFDPacket docnum=227580 [18:21:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 A6 00 07 01 B3 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 AC 01 00 00 F4 03 04 00 32 4A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FC 78 03 00 35 04 06 00 74 7B 3E A2 B7 53 0F 15 2B 92 50 A9 4B 3F [18:21:38]CheckFolder [18:21:38]dirname=/storage/ofd_packets [18:21:38]CheckFolder done [18:21:38]ProducePacketName [18:21:38]name=ofd_packets/00227580 [18:21:38]NVStorageSaveData ofd_packets/00227580 [18:21:38]File name is /storage/ofd_packets/00227580 [18:21:38]Write 301 bytes [18:21:38]NVStorageSaveData done [18:21:38]OFDSenderStorePacket done [18:21:38]KKMCreateOFDPacket done [18:21:38]NVStorageSaveData kkm_last_timestamp [18:21:38]File name is /storage/kkm_last_timestamp [18:21:38]Write 4 bytes [18:21:38]NVStorageSaveData done [18:21:38]ExternCall_PrintAddStr [18:21:38]wPrintStart [18:21:38]Write to MH i2c: 01 00 00 7F 18 97 [18:21:38]Write i2c OK [18:21:38]MH_I2C_Read... [18:21:38]Read from MH i2c: 01 [18:21:38]MH_I2C_Read... [18:21:38]Read from MH i2c: 01 07 00 [18:21:38]MH_I2C_Read... [18:21:38]Read from MH i2c: 01 07 00 7F 18 00 00 00 00 00 FF 0F AC [18:21:38]RasterBufferAndPrint [18:21:38]line Счет N : (1)1963216 [18:21:38]line ИНН: 02508201610067 [18:21:38]line Контрольно-Кассовый Чек [18:21:38]line ПРОДАЖА [18:21:38]line ТРК (МРК, ГНК) : 64 [18:21:38]line Товар: 2710124500 [18:21:38]line Аи-95-К-5 [18:21:38]line 9.440 * 74.20 [18:21:38]line = 700.45 [18:21:38]line НДС 12% НСП 1% [18:21:38]line > о реализуемом товаре [18:21:38]line ОКРУГЛЕНИЕ: -0.45 [18:21:38]line ИТОГО: 700.00 [18:21:38]line Внесено: 700.00 [18:21:38]line СДАЧА: 0.00 [18:21:38]line НСП 1% : 6.20 [18:21:38]line НДС 12% : 74.38 [18:21:38]line Наличными: 700.00 [18:21:38]line Безнал.: 0.00 [18:21:38]line Место: АЗС № 133 "Партнер Нефть" [18:21:38]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:21:38]line СНО: Общий режим [18:21:38]line Чек 428 20.10.2024 18:21 [18:21:38]line Смена: 533 ФФД: 1.0 [18:21:38]line ЗНМ: 0300000091 [18:21:38]line РНМ: 0000000000091685 [18:21:38]line Версия ККМ: 001 [18:21:38]line ФМ: 0000000000871839 [18:21:38]line ФД: 227580 [18:21:38]line ФПД: 128072680650579 [18:21:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T182138&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227580&fm=128072680650579&tin=02508201610067®Number=0000000000091685&sum=70000 [18:21:38]OFD Sender: Processing packet 227580 [packets to send 38, broken 37] [18:21:38]ProducePacketName [18:21:38]name=ofd_packets/00227580 [18:21:38]OFD Sender: To server: pG, [18:21:38]CommunicateWithHost lk.salyk.kg:30040 [18:21:38]ConnectInit lk.salyk.kg [18:21:38]written 0, free lines is 4095 [18:21:39]Connected sock=10 [18:21:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 A6 00 07 01 B3 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 AC 01 00 00 F4 03 04 00 32 4A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FC 78 03 00 35 04 06 00 74 7B 3E A2 B7 53 0F 15 2B 92 50 A9 4B 3F [18:21: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 33 39 4F 00 00 00 58 0D 47 00 F8 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 33 39 10 04 04 00 FC 78 03 00 F4 03 04 00 30 F5 14 67 B6 04 01 00 00 A3 5D E0 0B 35 8F EE 18 [18:21:39]CommunicateWithHost err = 0 [18:21:39]CheckOFDResponse [18:21:39]1017 (14) - 77093643461234 [18:21:39]1041 (16) - 0000000000871839 [18:21:39]1040 (4) - 227580 [18:21:39]1012 (4) - 20.10.2024 12:18 [18:21:39]1206 (1) - 0 [18:21:39]OFD Sender: Remove packet 227580 [18:21:39]ProducePacketName [18:21:39]name=ofd_packets/00227580 [18:21:39]NVStorageDeleteData [18:21:39]Write to MH i2c: 01 00 00 A9 18 C1 [18:21:39]Write i2c OK [18:21:39]MH_I2C_Read... [18:21:39]Read from MH i2c: 01 [18:21:39]MH_I2C_Read... [18:21:39]Read from MH i2c: 01 07 00 [18:21:39]MH_I2C_Read... [18:21:39]Read from MH i2c: 01 07 00 A9 18 00 00 00 00 00 16 0D EB [18:21:39]RasterBufferAndPrint [18:21:39]line [18:21:39]line [18:21:39]line [18:21:39]line [18:21:39]line [18:21:39]written 0, free lines is 3357 [18:21:39]process_action close_receipt done [18:21:39]requested_data is exist [18:21:39]produce_requested_data [18:21:39]requested_item fm.sn is exist - process it [18:21:39]wFMCommunicate request_size=4 [18:21:39]MH_SAM_APDU [18:21:39]CAPDU: 80 11 00 00 [18:21:39]Write to MH i2c: E2 08 00 B0 18 80 11 00 00 00 00 00 00 42 [18:21:39]Write i2c OK [18:21:39]MH_I2C_Read... [18:21:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:21:39]Read from MH i2c: E2 [18:21:39]MH_I2C_Read... [18:21:39]Read from MH i2c: E2 17 00 [18:21:39]MH_I2C_Read... [18:21:39]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 33 39 90 00 99 [18:21:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:21:39]wFMCommunicate OK [18:21:39]requested_item fd.num is exist - process it [18:21:39]SAM_PROTO_GetFieldsCounters [18:21:39]wFMCommunicate request_size=4 [18:21:39]MH_SAM_APDU [18:21:39]CAPDU: 80 13 00 00 [18:21:39]Write to MH i2c: E2 08 00 B1 18 80 13 00 00 00 00 00 00 45 [18:21:39]Write i2c OK [18:21:39]MH_I2C_Read... [18:21:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:21:39]Read from MH i2c: E2 [18:21:39]MH_I2C_Read... [18:21:39]Read from MH i2c: E2 62 00 [18:21:39]MH_I2C_Read... [18:21:39]Read from MH i2c: E2 62 00 B1 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 FC 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 AC 01 00 00 5E 04 04 00 AC 01 00 00 57 04 04 00 AD 01 00 00 19 04 04 00 00 00 00 00 90 00 03 [18:21: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 FC 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 AC 01 00 00 5E 04 04 00 AC 01 00 00 57 04 04 00 AD 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:21:39]wFMCommunicate OK [18:21:39]SAM_PROTO_GetFieldsCounters done [18:21:39]requested_item shift.num is exist - process it [18:21:39]requested_item shift.opened is exist - process it [18:21:39]req_shift_opened [18:21:39]FM_GetShiftState [18:21:39]SAM_PROTO_GetShiftState [18:21:39]wFMCommunicate request_size=4 [18:21:39]MH_SAM_APDU [18:21:39]CAPDU: 80 13 01 00 [18:21:39]Write to MH i2c: E2 08 00 B2 18 80 13 01 00 00 00 00 00 47 [18:21:39]Write i2c OK [18:21:39]MH_I2C_Read... [18:21:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:21:39]Read from MH i2c: E2 [18:21:39]MH_I2C_Read... [18:21:39]Read from MH i2c: E2 0E 00 [18:21:39]MH_I2C_Read... [18:21:39]Read from MH i2c: E2 0E 00 B2 18 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 61 [18:21:39]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:21:39]wFMCommunicate OK [18:21:39]SAM_PROTO_GetShiftState done [18:21:39]FM_GetShiftState done [18:21:39]req_shift_opened done [18:21:39]requested_item shift.open_date is exist - process it [18:21:39]req_shift_open_date [18:21:39]req_shift_open_date done [18:21:39]produce_requested_data done [18:21:39]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227580,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [18:21:39]process_action_free close_receipt [18:21:39]json_value_free [18:21:39]json_value_free done [18:21:39]process_json_proto returns [18:21:39]Send response to host [18:21:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227580,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [18:21:39]free response buf [18:21:39]execute_script done [18:21:39]execute_script returns [18:21:39]free content buf [18:21:39]Sock 9.Close socket [18:21:39]Sock 9.Thread stoped [18:21:39]OFD Sender: No OFD packet to send [18:21:44]OFD Sender: No OFD packet to send [18:21:49]OFD Sender: No OFD packet to send [18:21:54]OFD Sender: No OFD packet to send [18:21:59]OFD Sender: No OFD packet to send [18:22:04]OFD Sender: No OFD packet to send [18:22:09]OFD Sender: No OFD packet to send [18:22:14]OFD Sender: No OFD packet to send [18:22:19]OFD Sender: No OFD packet to send [18:22:24]OFD Sender: No OFD packet to send [18:22:29]OFD Sender: No OFD packet to send [18:22:34]OFD Sender: No OFD packet to send [18:22:39]OFD Sender: No OFD packet to send [18:22:44]OFD Sender: No OFD packet to send [18:22:49]OFD Sender: No OFD packet to send [18:22:54]OFD Sender: No OFD packet to send [18:22:59]OFD Sender: No OFD packet to send [18:23:02]accept exits with 7 [18:23:02]New connection [18:23:02]New thread 3067362660 created [18:23:02]Thread 3067219300 joined [18:23:02]Waiting for new connection... [18:23:02] Sock 7.Parse request [18:23:02]Sock 7.Check first char [18:23:02]Sock 7.First char is OK [18:23:02]request: POST /json_proto HTTP/1.0 [18:23:02]Method: POST [18:23:02]URL: /json_proto [18:23:02]Method is POST - this is cgi request [18:23:02]url: /json_proto [18:23:02]query_string will be loaded in cgi processing [18:23:02]execute_cgi json_proto POST (null) [18:23:02]execute_cgi path=json_proto method=POST [18:23:02]POST find Content-Length [18:23:02]Host: 172.17.44.195:8080 [18:23:02]Content-Length: 660 [18:23:02]Content-Type: application/json [18:23:02] [18:23:02]POST finish read [18:23:02]Found Content-Length = 660 [18:23:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963217", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 10.240, "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" ] } } [18:23:02]execute_script... [18:23: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)1963217", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 10.240, "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" ] } } [18:23:02]POST & json_proto [18:23:02]process_json_proto [18:23:02]json parsed OK: [18:23:02]protocol is kg_v1.0 [18:23:02]action value=close_receipt [18:23:02]process_action close_receipt [18:23:02]cmd_close_receipt [18:23:02]MH_GetDate [18:23:02]Write to MH i2c: F0 00 00 B3 18 BA [18:23:02]Write i2c OK [18:23:02]MH_I2C_Read... [18:23:02]Read from MH i2c: F0 [18:23:02]MH_I2C_Read... [18:23:02]Read from MH i2c: F0 09 00 [18:23:02]MH_I2C_Read... [18:23:02]Read from MH i2c: F0 09 00 B3 18 00 87 4A 15 67 82 C9 CF 66 90 [18:23:02]GetLastDocTimeStamp 1729448498 [18:23:02]current date 1729448583 [18:23:02]FM_GetShiftState [18:23:02]SAM_PROTO_GetShiftState [18:23:02]wFMCommunicate request_size=4 [18:23:02]MH_SAM_APDU [18:23:02]CAPDU: 80 13 01 00 [18:23:02]Write to MH i2c: E2 08 00 B4 18 80 13 01 00 00 00 00 00 49 [18:23:02]Write i2c OK [18:23:02]MH_I2C_Read... [18:23:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:23:02]Read from MH i2c: E2 [18:23:02]MH_I2C_Read... [18:23:02]Read from MH i2c: E2 0E 00 [18:23:02]MH_I2C_Read... [18:23:02]Read from MH i2c: E2 0E 00 B4 18 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 63 [18:23:02]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:23:02]wFMCommunicate OK [18:23:02]SAM_PROTO_GetShiftState done [18:23:02]FM_GetShiftState done [18:23:02]opened in 1729383750 [18:23:02]opened+sec_in_day 1729470150 [18:23:02]quantity*price = 70041 [18:23:02]sum+1 = 70043 [18:23:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 429 20.10.2024 18:23 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227581 ФПД: 70774067411073 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T182303&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227581&fm=70774067411073&tin=02508201610067®Number=0000000000091685&sum=70000 [18:23:03]StoreToDocumentArchive [18:23:03]shift 533 fd 227581 [18:23:03]save to /storage/0533/doc_00227581 [18:23:03]save last doc name /storage/0533/doc_00227581 to /storage/kkm_last_doc_name [18:23:03]save OK [18:23:03]Clear old archive folders... [18:23:03]ProcessDocumentItem done err = 0, tmpTLVsize=244 [18:23:03]tlvbuf is B6E0C8E0 [18:23:03]SAM_PROTO_ClearQueue [18:23:03]wFMCommunicate request_size=4 [18:23:03]MH_SAM_APDU [18:23:03]CAPDU: 80 09 00 00 [18:23:03]Write to MH i2c: E2 08 00 C1 18 80 09 00 00 00 00 00 00 4B [18:23:03]Write i2c OK [18:23:03]MH_I2C_Read... [18:23:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:23:03]Read from MH i2c: E2 [18:23:03]MH_I2C_Read... [18:23:03]Read from MH i2c: E2 03 00 [18:23:03]MH_I2C_Read... [18:23:03]Read from MH i2c: E2 03 00 C1 18 00 90 00 4D [18:23:03]RAPDU: 90 00 [18:23:03]wFMCommunicate OK [18:23:03]SAM_PROTO_ClearQueue done [18:23:03]KKMCreateOFDPacket [18:23:03]OFDProtocolAddRootSTLVToBuf [18:23:03]FM_MakeSignedData [18:23:03]FM_MakeSignedData [18:23:03]SAM_PROTO_SignData [18:23:03]wFMCommunicate request_size=4 [18:23:03]MH_SAM_APDU [18:23:03]CAPDU: 80 0D 01 02 [18:23:03]Write to MH i2c: E2 08 00 C2 18 80 0D 01 02 00 00 00 00 53 [18:23:03]Write i2c OK [18:23:03]MH_I2C_Read... [18:23:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:23:03]Read from MH i2c: E2 [18:23:03]MH_I2C_Read... [18:23:03]Read from MH i2c: E2 03 00 [18:23:03]MH_I2C_Read... [18:23:03]Read from MH i2c: E2 03 00 C2 18 00 90 00 4E [18:23:03]RAPDU: 90 00 [18:23:03]wFMCommunicate OK [18:23:03]wFMCommunicate request_size=253 [18:23:03]MH_SAM_APDU [18:23:03]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 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 AD 01 00 00 F4 03 04 00 87 4A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FD 78 03 00 35 04 06 00 40 5E 5F 25 B8 81 [18:23:03]Write to MH i2c: E2 00 01 C3 18 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 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 AD 01 00 00 F4 03 04 00 87 4A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FD 78 03 00 35 04 06 00 40 5E 5F 25 B8 81 00 00 3B [18:23:03]Write i2c OK [18:23:03]MH_I2C_Read... [18:23:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:23:03]Read from MH i2c: E2 [18:23:03]MH_I2C_Read... [18:23:03]Read from MH i2c: E2 03 00 [18:23:03]MH_I2C_Read... [18:23:03]Read from MH i2c: E2 03 00 C3 18 00 90 00 4F [18:23:03]RAPDU: 90 00 [18:23:03]wFMCommunicate OK [18:23:03]wFMCommunicate request_size=4 [18:23:03]MH_SAM_APDU [18:23:03]CAPDU: 80 0D 03 02 [18:23:03]Write to MH i2c: E2 08 00 C4 18 80 0D 03 02 00 00 00 00 57 [18:23:03]Write i2c OK [18:23:03]MH_I2C_Read... [18:23:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:23:03]Read from MH i2c: E2 [18:23:03]MH_I2C_Read... [18:23:03]Read from MH i2c: E2 0B 00 [18:23:03]MH_I2C_Read... [18:23:03]Read from MH i2c: E2 0B 00 C4 18 00 1F AD 6A 01 62 52 69 EE 90 00 9A [18:23:03]RAPDU: 1F AD 6A 01 62 52 69 EE 90 00 [18:23:03]wFMCommunicate OK [18:23:03]SAM_PROTO_SignData done [18:23:03]FM_MakeSignedData done [18:23:03]CreateOFDProtocolMessage [18:23:03]wFMCommunicate request_size=4 [18:23:03]MH_SAM_APDU [18:23:03]CAPDU: 80 11 00 00 [18:23:03]Write to MH i2c: E2 08 00 C5 18 80 11 00 00 00 00 00 00 57 [18:23:03]Write i2c OK [18:23:03]MH_I2C_Read... [18:23:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:23:03]Read from MH i2c: E2 [18:23:03]MH_I2C_Read... [18:23:03]Read from MH i2c: E2 17 00 [18:23:03]MH_I2C_Read... [18:23:03]Read from MH i2c: E2 17 00 C5 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 AE [18:23:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:23:03]wFMCommunicate OK [18:23:03]CreateOFDProtocolMessage done [18:23:03]OFDSenderStorePacket 227581 [18:23:03]StoreOFDPacket docnum=227581 [18:23:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 92 65 00 01 69 D5 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 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 AD 01 00 00 F4 03 04 00 87 4A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FD 78 03 00 35 04 06 00 40 5E 5F 25 B8 81 1F AD 6A 01 62 52 69 EE [18:23:03]CheckFolder [18:23:03]dirname=/storage/ofd_packets [18:23:03]CheckFolder done [18:23:03]ProducePacketName [18:23:03]name=ofd_packets/00227581 [18:23:03]NVStorageSaveData ofd_packets/00227581 [18:23:03]File name is /storage/ofd_packets/00227581 [18:23:03]Write 294 bytes [18:23:03]NVStorageSaveData done [18:23:03]OFDSenderStorePacket done [18:23:03]KKMCreateOFDPacket done [18:23:03]NVStorageSaveData kkm_last_timestamp [18:23:03]File name is /storage/kkm_last_timestamp [18:23:03]Write 4 bytes [18:23:03]NVStorageSaveData done [18:23:03]ExternCall_PrintAddStr [18:23:03]wPrintStart [18:23:03]Write to MH i2c: 01 00 00 C6 18 DE [18:23:03]Write i2c OK [18:23:03]MH_I2C_Read... [18:23:03]Read from MH i2c: 01 [18:23:03]MH_I2C_Read... [18:23:03]Read from MH i2c: 01 07 00 [18:23:03]MH_I2C_Read... [18:23:03]Read from MH i2c: 01 07 00 C6 18 00 00 00 00 00 FF 0F F3 [18:23:03]RasterBufferAndPrint [18:23:03]line Счет N : (1)1963217 [18:23:03]line ИНН: 02508201610067 [18:23:03]line Контрольно-Кассовый Чек [18:23:03]line ПРОДАЖА [18:23:03]line ТРК (МРК, ГНК) : 52 [18:23:03]line Товар: 2710124130 [18:23:03]line SU-92 [18:23:03]line 10.240 * 68.40 [18:23:03]line = 700.42 [18:23:03]line НДС 12% НСП 1% [18:23:03]line > о реализуемом товаре [18:23:03]line ОКРУГЛЕНИЕ: -0.42 [18:23:03]line ИТОГО: 700.00 [18:23:03]line Внесено: 700.00 [18:23:03]line СДАЧА: 0.00 [18:23:03]line НСП 1% : 6.20 [18:23:03]line НДС 12% : 74.38 [18:23:03]line Наличными: 700.00 [18:23:03]line Безнал.: 0.00 [18:23:03]line Место: АЗС № 133 "Партнер Нефть" [18:23:03]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:23:03]line СНО: Общий режим [18:23:03]line Чек 429 20.10.2024 18:23 [18:23:03]line Смена: 533 ФФД: 1.0 [18:23:03]line ЗНМ: 0300000091 [18:23:03]line РНМ: 0000000000091685 [18:23:03]line Версия ККМ: 001 [18:23:03]line ФМ: 0000000000871839 [18:23:03]line ФД: 227581 [18:23:03]line ФПД: 70774067411073 [18:23:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T182303&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227581&fm=70774067411073&tin=02508201610067®Number=0000000000091685&sum=70000 [18:23:04]OFD Sender: Processing packet 227581 [packets to send 38, broken 37] [18:23:04]ProducePacketName [18:23:04]name=ofd_packets/00227581 [18:23:04]OFD Sender: To server: pG, [18:23:04]CommunicateWithHost lk.salyk.kg:30040 [18:23:04]ConnectInit lk.salyk.kg [18:23:04]written 0, free lines is 4095 [18:23:04]Connected sock=10 [18:23: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 33 39 08 01 00 00 92 65 00 01 69 D5 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 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 AD 01 00 00 F4 03 04 00 87 4A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FD 78 03 00 35 04 06 00 40 5E 5F 25 B8 81 1F AD 6A 01 62 52 69 EE [18:23: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 33 39 4F 00 00 00 7F D0 47 00 85 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 33 39 10 04 04 00 FD 78 03 00 F4 03 04 00 85 F5 14 67 B6 04 01 00 00 FC 74 7C 48 7B 4C A3 23 [18:23:04]CommunicateWithHost err = 0 [18:23:04]CheckOFDResponse [18:23:04]1017 (14) - 77093643461234 [18:23:04]1041 (16) - 0000000000871839 [18:23:04]1040 (4) - 227581 [18:23:04]1012 (4) - 20.10.2024 12:20 [18:23:04]1206 (1) - 0 [18:23:04]OFD Sender: Remove packet 227581 [18:23:04]ProducePacketName [18:23:04]name=ofd_packets/00227581 [18:23:04]NVStorageDeleteData [18:23:04]Write to MH i2c: 01 00 00 F0 18 08 [18:23:04]Write i2c OK [18:23:04]MH_I2C_Read... [18:23:04]Read from MH i2c: 01 [18:23:04]MH_I2C_Read... [18:23:04]Read from MH i2c: 01 07 00 [18:23:04]MH_I2C_Read... [18:23:04]Read from MH i2c: 01 07 00 F0 18 00 00 00 00 00 02 0D 1E [18:23:04]RasterBufferAndPrint [18:23:04]line [18:23:04]line [18:23:04]line [18:23:04]line [18:23:04]line [18:23:04]written 0, free lines is 3336 [18:23:04]process_action close_receipt done [18:23:04]requested_data is exist [18:23:04]produce_requested_data [18:23:04]requested_item fm.sn is exist - process it [18:23:04]wFMCommunicate request_size=4 [18:23:04]MH_SAM_APDU [18:23:04]CAPDU: 80 11 00 00 [18:23:04]Write to MH i2c: E2 08 00 F7 18 80 11 00 00 00 00 00 00 89 [18:23:04]Write i2c OK [18:23:04]MH_I2C_Read... [18:23:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:23:04]Read from MH i2c: E2 [18:23:04]MH_I2C_Read... [18:23:04]Read from MH i2c: E2 17 00 [18:23:04]MH_I2C_Read... [18:23:04]Read from MH i2c: E2 17 00 F7 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E0 [18:23:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:23:04]wFMCommunicate OK [18:23:04]requested_item fd.num is exist - process it [18:23:04]SAM_PROTO_GetFieldsCounters [18:23:04]wFMCommunicate request_size=4 [18:23:04]MH_SAM_APDU [18:23:04]CAPDU: 80 13 00 00 [18:23:04]Write to MH i2c: E2 08 00 F8 18 80 13 00 00 00 00 00 00 8C [18:23:04]Write i2c OK [18:23:04]MH_I2C_Read... [18:23:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:23:04]Read from MH i2c: E2 [18:23:04]MH_I2C_Read... [18:23:04]Read from MH i2c: E2 62 00 [18:23:04]MH_I2C_Read... [18:23:04]Read from MH i2c: E2 62 00 F8 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 FD 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 AD 01 00 00 5E 04 04 00 AD 01 00 00 57 04 04 00 AE 01 00 00 19 04 04 00 00 00 00 00 90 00 4E [18:23: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 FD 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 AD 01 00 00 5E 04 04 00 AD 01 00 00 57 04 04 00 AE 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:23:04]wFMCommunicate OK [18:23:04]SAM_PROTO_GetFieldsCounters done [18:23:04]requested_item shift.num is exist - process it [18:23:04]requested_item shift.opened is exist - process it [18:23:04]req_shift_opened [18:23:04]FM_GetShiftState [18:23:04]SAM_PROTO_GetShiftState [18:23:04]wFMCommunicate request_size=4 [18:23:04]MH_SAM_APDU [18:23:04]CAPDU: 80 13 01 00 [18:23:04]Write to MH i2c: E2 08 00 F9 18 80 13 01 00 00 00 00 00 8E [18:23:04]Write i2c OK [18:23:04]MH_I2C_Read... [18:23:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:23:04]Read from MH i2c: E2 [18:23:04]MH_I2C_Read... [18:23:04]Read from MH i2c: E2 0E 00 [18:23:04]MH_I2C_Read... [18:23:04]Read from MH i2c: E2 0E 00 F9 18 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 A8 [18:23:04]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:23:04]wFMCommunicate OK [18:23:04]SAM_PROTO_GetShiftState done [18:23:04]FM_GetShiftState done [18:23:04]req_shift_opened done [18:23:04]requested_item shift.open_date is exist - process it [18:23:04]req_shift_open_date [18:23:04]req_shift_open_date done [18:23:04]produce_requested_data done [18:23:04]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227581,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [18:23:04]process_action_free close_receipt [18:23:04]json_value_free [18:23:04]json_value_free done [18:23:04]process_json_proto returns [18:23:04]Send response to host [18:23:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227581,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [18:23:04]free response buf [18:23:04]execute_script done [18:23:04]execute_script returns [18:23:04]free content buf [18:23:04]Sock 7.Close socket [18:23:04]Sock 7.Thread stoped [18:23:04]OFD Sender: No OFD packet to send [18:23:08]accept exits with 9 [18:23:08]New connection [18:23:08]New thread 3067219300 created [18:23:08]Thread 3067362660 joined [18:23:08]Waiting for new connection... [18:23:08] Sock 9.Parse request [18:23:08]Sock 9.Check first char [18:23:08]Sock 9.First char is OK [18:23:08]request: POST /json_proto HTTP/1.0 [18:23:08]Method: POST [18:23:08]URL: /json_proto [18:23:08]Method is POST - this is cgi request [18:23:08]url: /json_proto [18:23:08]query_string will be loaded in cgi processing [18:23:08]execute_cgi json_proto POST (null) [18:23:08]execute_cgi path=json_proto method=POST [18:23:08]POST find Content-Length [18:23:08]Host: 172.17.44.195:8080 [18:23:08]Content-Length: 678 [18:23:08]Content-Type: application/json [18:23:08] [18:23:08]POST finish read [18:23:08]Found Content-Length = 678 [18:23:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963218", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:23:08]execute_script... [18:23: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)1963218", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:23:08]POST & json_proto [18:23:08]process_json_proto [18:23:08]json parsed OK: [18:23:08]protocol is kg_v1.0 [18:23:08]action value=close_receipt [18:23:08]process_action close_receipt [18:23:08]cmd_close_receipt [18:23:08]MH_GetDate [18:23:08]Write to MH i2c: F0 00 00 FA 18 01 [18:23:08]Write i2c OK [18:23:08]MH_I2C_Read... [18:23:08]Read from MH i2c: F0 [18:23:08]MH_I2C_Read... [18:23:08]Read from MH i2c: F0 09 00 [18:23:08]MH_I2C_Read... [18:23:08]Read from MH i2c: F0 09 00 FA 18 00 8E 4A 15 67 82 C9 CF 66 DE [18:23:08]GetLastDocTimeStamp 1729448583 [18:23:08]current date 1729448590 [18:23:08]FM_GetShiftState [18:23:08]SAM_PROTO_GetShiftState [18:23:08]wFMCommunicate request_size=4 [18:23:08]MH_SAM_APDU [18:23:08]CAPDU: 80 13 01 00 [18:23:08]Write to MH i2c: E2 08 00 FB 18 80 13 01 00 00 00 00 00 90 [18:23:08]Write i2c OK [18:23:08]MH_I2C_Read... [18:23:08]Read from MH i2c: E2 [18:23:08]MH_I2C_Read... [18:23:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:23:08]Read from MH i2c: E2 0E 00 [18:23:08]MH_I2C_Read... [18:23:08]Read from MH i2c: E2 0E 00 FB 18 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 AA [18:23:08]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:23:08]wFMCommunicate OK [18:23:08]SAM_PROTO_GetShiftState done [18:23:08]FM_GetShiftState done [18:23:08]opened in 1729383750 [18:23:08]opened+sec_in_day 1729470150 [18:23:08]quantity*price = 30038 [18:23:08]sum+1 = 30039 [18:23:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 430 20.10.2024 18:23 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227582 ФПД: 215548163844650 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T182310&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227582&fm=215548163844650&tin=02508201610067®Number=0000000000091685&sum=30000 [18:23:10]StoreToDocumentArchive [18:23:10]shift 533 fd 227582 [18:23:10]save to /storage/0533/doc_00227582 [18:23:10]save last doc name /storage/0533/doc_00227582 to /storage/kkm_last_doc_name [18:23:10]save OK [18:23:10]Clear old archive folders... [18:23:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:23:10]tlvbuf is 00E145E0 [18:23:10]SAM_PROTO_ClearQueue [18:23:10]wFMCommunicate request_size=4 [18:23:10]MH_SAM_APDU [18:23:10]CAPDU: 80 09 00 00 [18:23:10]Write to MH i2c: E2 08 00 08 19 80 09 00 00 00 00 00 00 93 [18:23:10]Write i2c OK [18:23:10]MH_I2C_Read... [18:23:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:23:10]Read from MH i2c: E2 [18:23:10]MH_I2C_Read... [18:23:10]Read from MH i2c: E2 03 00 [18:23:10]MH_I2C_Read... [18:23:10]Read from MH i2c: E2 03 00 08 19 00 90 00 95 [18:23:10]RAPDU: 90 00 [18:23:10]wFMCommunicate OK [18:23:10]SAM_PROTO_ClearQueue done [18:23:10]KKMCreateOFDPacket [18:23:10]OFDProtocolAddRootSTLVToBuf [18:23:10]FM_MakeSignedData [18:23:10]FM_MakeSignedData [18:23:10]SAM_PROTO_SignData [18:23:10]wFMCommunicate request_size=4 [18:23:10]MH_SAM_APDU [18:23:10]CAPDU: 80 0D 01 02 [18:23:10]Write to MH i2c: E2 08 00 09 19 80 0D 01 02 00 00 00 00 9B [18:23:10]Write i2c OK [18:23:10]MH_I2C_Read... [18:23:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:23:10]Read from MH i2c: E2 [18:23:10]MH_I2C_Read... [18:23:10]Read from MH i2c: E2 03 00 [18:23:10]MH_I2C_Read... [18:23:10]Read from MH i2c: E2 03 00 09 19 00 90 00 96 [18:23:10]RAPDU: 90 00 [18:23:10]wFMCommunicate OK [18:23:10]wFMCommunicate request_size=255 [18:23:10]MH_SAM_APDU [18:23:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 01 00 00 F4 03 04 00 8E 4A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FE 78 03 00 35 04 06 00 C4 [18:23:10]Write to MH i2c: E2 02 01 0A 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 01 00 00 F4 03 04 00 8E 4A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FE 78 03 00 35 04 06 00 C4 00 00 7D [18:23:10]Write i2c OK [18:23:10]MH_I2C_Read... [18:23:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:23:10]Read from MH i2c: E2 [18:23:10]MH_I2C_Read... [18:23:10]Read from MH i2c: E2 03 00 [18:23:10]MH_I2C_Read... [18:23:10]Read from MH i2c: E2 03 00 0A 19 00 90 00 97 [18:23:10]RAPDU: 90 00 [18:23:10]wFMCommunicate OK [18:23:10]wFMCommunicate request_size=10 [18:23:10]MH_SAM_APDU [18:23:10]CAPDU: 80 0D 02 02 05 0A 37 BC EA 2A [18:23:10]Write to MH i2c: E2 0D 00 0B 19 80 0D 02 02 05 00 0A 37 BC EA 2A 00 00 B9 [18:23:10]Write i2c OK [18:23:10]MH_I2C_Read... [18:23:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:23:10]Read from MH i2c: E2 [18:23:10]MH_I2C_Read... [18:23:10]Read from MH i2c: E2 03 00 [18:23:10]MH_I2C_Read... [18:23:10]Read from MH i2c: E2 03 00 0B 19 00 90 00 98 [18:23:10]RAPDU: 90 00 [18:23:10]wFMCommunicate OK [18:23:10]wFMCommunicate request_size=4 [18:23:10]MH_SAM_APDU [18:23:10]CAPDU: 80 0D 03 02 [18:23:10]Write to MH i2c: E2 08 00 0C 19 80 0D 03 02 00 00 00 00 A0 [18:23:10]Write i2c OK [18:23:10]MH_I2C_Read... [18:23:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:23:10]Read from MH i2c: E2 [18:23:10]MH_I2C_Read... [18:23:10]Read from MH i2c: E2 0B 00 [18:23:10]MH_I2C_Read... [18:23:10]Read from MH i2c: E2 0B 00 0C 19 00 F9 00 88 78 C6 C6 42 44 90 00 AC [18:23:10]RAPDU: F9 00 88 78 C6 C6 42 44 90 00 [18:23:10]wFMCommunicate OK [18:23:10]SAM_PROTO_SignData done [18:23:10]FM_MakeSignedData done [18:23:10]CreateOFDProtocolMessage [18:23:10]wFMCommunicate request_size=4 [18:23:10]MH_SAM_APDU [18:23:10]CAPDU: 80 11 00 00 [18:23:10]Write to MH i2c: E2 08 00 0D 19 80 11 00 00 00 00 00 00 A0 [18:23:10]Write i2c OK [18:23:10]MH_I2C_Read... [18:23:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:23:10]Read from MH i2c: E2 [18:23:10]MH_I2C_Read... [18:23:10]Read from MH i2c: E2 17 00 [18:23:10]MH_I2C_Read... [18:23:10]Read from MH i2c: E2 17 00 0D 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F7 [18:23:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:23:10]wFMCommunicate OK [18:23:10]CreateOFDProtocolMessage done [18:23:10]OFDSenderStorePacket 227582 [18:23:10]StoreOFDPacket docnum=227582 [18:23:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 6B C4 07 01 B5 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 01 00 00 F4 03 04 00 8E 4A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FE 78 03 00 35 04 06 00 C4 0A 37 BC EA 2A F9 00 88 78 C6 C6 42 44 [18:23:10]CheckFolder [18:23:10]dirname=/storage/ofd_packets [18:23:10]CheckFolder done [18:23:10]ProducePacketName [18:23:10]name=ofd_packets/00227582 [18:23:10]NVStorageSaveData ofd_packets/00227582 [18:23:10]File name is /storage/ofd_packets/00227582 [18:23:10]Write 301 bytes [18:23:10]NVStorageSaveData done [18:23:10]OFDSenderStorePacket done [18:23:10]KKMCreateOFDPacket done [18:23:10]NVStorageSaveData kkm_last_timestamp [18:23:10]File name is /storage/kkm_last_timestamp [18:23:10]Write 4 bytes [18:23:10]NVStorageSaveData done [18:23:10]ExternCall_PrintAddStr [18:23:10]wPrintStart [18:23:10]Write to MH i2c: 01 00 00 0E 19 27 [18:23:10]Write i2c OK [18:23:10]MH_I2C_Read... [18:23:10]Read from MH i2c: 01 [18:23:10]MH_I2C_Read... [18:23:10]Read from MH i2c: 01 07 00 [18:23:10]MH_I2C_Read... [18:23:10]Read from MH i2c: 01 07 00 0E 19 00 00 00 00 00 FF 0F 3C [18:23:10]RasterBufferAndPrint [18:23:10]line Счет N : (1)1963218 [18:23:10]line ИНН: 02508201610067 [18:23:10]line Контрольно-Кассовый Чек [18:23:10]line ПРОДАЖА [18:23:10]line ТРК (МРК, ГНК) : 43 [18:23:10]line Товар: 2710124130 [18:23:10]line Аи-92-К-5 [18:23:10]line 4.490 * 66.90 [18:23:10]line = 300.38 [18:23:10]line НДС 12% НСП 1% [18:23:10]line > о реализуемом товаре [18:23:10]line ОКРУГЛЕНИЕ: -0.38 [18:23:10]line ИТОГО: 300.00 [18:23:10]line Внесено: 300.00 [18:23:10]line СДАЧА: 0.00 [18:23:10]line НСП 1% : 2.66 [18:23:10]line НДС 12% : 31.90 [18:23:10]line Наличными: 300.00 [18:23:10]line Безнал.: 0.00 [18:23:10]line Место: АЗС № 133 "Партнер Нефть" [18:23:10]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:23:10]line СНО: Общий режим [18:23:10]line Чек 430 20.10.2024 18:23 [18:23:10]line Смена: 533 ФФД: 1.0 [18:23:10]line ЗНМ: 0300000091 [18:23:10]line РНМ: 0000000000091685 [18:23:10]line Версия ККМ: 001 [18:23:10]line ФМ: 0000000000871839 [18:23:10]line ФД: 227582 [18:23:10]line ФПД: 215548163844650 [18:23:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T182310&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227582&fm=215548163844650&tin=02508201610067®Number=0000000000091685&sum=30000 [18:23:10]written 0, free lines is 4095 [18:23:10]OFD Sender: Processing packet 227582 [packets to send 38, broken 37] [18:23:10]ProducePacketName [18:23:10]name=ofd_packets/00227582 [18:23:10]OFD Sender: To server: pG, [18:23:10]CommunicateWithHost lk.salyk.kg:30040 [18:23:10]ConnectInit lk.salyk.kg [18:23:10]Connected sock=10 [18:23: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 33 39 0F 01 00 00 6B C4 07 01 B5 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 01 00 00 F4 03 04 00 8E 4A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FE 78 03 00 35 04 06 00 C4 0A 37 BC EA 2A F9 00 88 78 C6 C6 42 44 [18:23: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 33 39 4F 00 00 00 DA 62 47 00 21 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FE 78 03 00 F4 03 04 00 8C F5 14 67 B6 04 01 00 00 05 95 74 EF C4 C6 39 92 [18:23:11]CommunicateWithHost err = 0 [18:23:11]CheckOFDResponse [18:23:11]1017 (14) - 77093643461234 [18:23:11]1041 (16) - 0000000000871839 [18:23:11]1040 (4) - 227582 [18:23:11]1012 (4) - 20.10.2024 12:20 [18:23:11]1206 (1) - 0 [18:23:11]OFD Sender: Remove packet 227582 [18:23:11]ProducePacketName [18:23:11]name=ofd_packets/00227582 [18:23:11]NVStorageDeleteData [18:23:11]Write to MH i2c: 01 00 00 38 19 51 [18:23:11]Write i2c OK [18:23:11]MH_I2C_Read... [18:23:11]Read from MH i2c: 01 [18:23:11]MH_I2C_Read... [18:23:11]Read from MH i2c: 01 07 00 [18:23:11]MH_I2C_Read... [18:23:11]Read from MH i2c: 01 07 00 38 19 00 00 00 00 00 42 0D A7 [18:23:11]RasterBufferAndPrint [18:23:11]line [18:23:11]line [18:23:11]line [18:23:11]line [18:23:11]line [18:23:11]written 0, free lines is 3406 [18:23:11]process_action close_receipt done [18:23:11]requested_data is exist [18:23:11]produce_requested_data [18:23:11]requested_item fm.sn is exist - process it [18:23:11]wFMCommunicate request_size=4 [18:23:11]MH_SAM_APDU [18:23:11]CAPDU: 80 11 00 00 [18:23:11]Write to MH i2c: E2 08 00 3F 19 80 11 00 00 00 00 00 00 D2 [18:23:11]Write i2c OK [18:23:11]MH_I2C_Read... [18:23:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:23:11]Read from MH i2c: E2 [18:23:11]MH_I2C_Read... [18:23:11]Read from MH i2c: E2 17 00 [18:23:11]MH_I2C_Read... [18:23:11]Read from MH i2c: E2 17 00 3F 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 29 [18:23:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:23:11]wFMCommunicate OK [18:23:11]requested_item fd.num is exist - process it [18:23:11]SAM_PROTO_GetFieldsCounters [18:23:11]wFMCommunicate request_size=4 [18:23:11]MH_SAM_APDU [18:23:11]CAPDU: 80 13 00 00 [18:23:11]Write to MH i2c: E2 08 00 40 19 80 13 00 00 00 00 00 00 D5 [18:23:11]Write i2c OK [18:23:11]MH_I2C_Read... [18:23:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:23:11]Read from MH i2c: E2 [18:23:11]MH_I2C_Read... [18:23:11]Read from MH i2c: E2 62 00 [18:23:11]MH_I2C_Read... [18:23:11]Read from MH i2c: E2 62 00 40 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 FE 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 AE 01 00 00 5E 04 04 00 AE 01 00 00 57 04 04 00 AF 01 00 00 19 04 04 00 00 00 00 00 90 00 9B [18:23: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 FE 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 AE 01 00 00 5E 04 04 00 AE 01 00 00 57 04 04 00 AF 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:23:11]wFMCommunicate OK [18:23:11]SAM_PROTO_GetFieldsCounters done [18:23:11]requested_item shift.num is exist - process it [18:23:11]requested_item shift.opened is exist - process it [18:23:11]req_shift_opened [18:23:11]FM_GetShiftState [18:23:11]SAM_PROTO_GetShiftState [18:23:11]wFMCommunicate request_size=4 [18:23:11]MH_SAM_APDU [18:23:11]CAPDU: 80 13 01 00 [18:23:11]Write to MH i2c: E2 08 00 41 19 80 13 01 00 00 00 00 00 D7 [18:23:11]Write i2c OK [18:23:11]MH_I2C_Read... [18:23:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:23:11]Read from MH i2c: E2 [18:23:11]MH_I2C_Read... [18:23:11]Read from MH i2c: E2 0E 00 [18:23:11]MH_I2C_Read... [18:23:11]Read from MH i2c: E2 0E 00 41 19 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 F1 [18:23:11]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:23:11]wFMCommunicate OK [18:23:11]SAM_PROTO_GetShiftState done [18:23:11]FM_GetShiftState done [18:23:11]req_shift_opened done [18:23:11]requested_item shift.open_date is exist - process it [18:23:11]req_shift_open_date [18:23:11]req_shift_open_date done [18:23:11]produce_requested_data done [18:23:11]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227582,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [18:23:11]process_action_free close_receipt [18:23:11]json_value_free [18:23:11]json_value_free done [18:23:11]process_json_proto returns [18:23:11]Send response to host [18:23:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227582,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [18:23:11]free response buf [18:23:11]execute_script done [18:23:11]execute_script returns [18:23:11]free content buf [18:23:11]Sock 9.Close socket [18:23:11]Sock 9.Thread stoped [18:23:11]OFD Sender: No OFD packet to send [18:23:11]accept exits with 7 [18:23:11]New connection [18:23:11]New thread 3067362660 created [18:23:11]Thread 3067219300 joined [18:23:11]Waiting for new connection... [18:23:11] Sock 7.Parse request [18:23:11]Sock 7.Check first char [18:23:11]Sock 7.First char is OK [18:23:11]request: POST /json_proto HTTP/1.0 [18:23:11]Method: POST [18:23:11]URL: /json_proto [18:23:11]Method is POST - this is cgi request [18:23:11]url: /json_proto [18:23:11]query_string will be loaded in cgi processing [18:23:11]execute_cgi json_proto POST (null) [18:23:11]execute_cgi path=json_proto method=POST [18:23:11]POST find Content-Length [18:23:11]Host: 172.17.44.195:8080 [18:23:11]Content-Length: 683 [18:23:11]Content-Type: application/json [18:23:11] [18:23:11]POST finish read [18:23:11]Found Content-Length = 683 [18:23:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963219", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:23:11]execute_script... [18:23: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)1963219", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:23:11]POST & json_proto [18:23:11]process_json_proto [18:23:11]json parsed OK: [18:23:11]protocol is kg_v1.0 [18:23:11]action value=close_receipt [18:23:11]process_action close_receipt [18:23:11]cmd_close_receipt [18:23:11]MH_GetDate [18:23:11]Write to MH i2c: F0 00 00 42 19 4A [18:23:11]Write i2c OK [18:23:11]MH_I2C_Read... [18:23:11]Read from MH i2c: F0 [18:23:11]MH_I2C_Read... [18:23:11]Read from MH i2c: F0 09 00 [18:23:11]MH_I2C_Read... [18:23:11]Read from MH i2c: F0 09 00 42 19 00 91 4A 15 67 82 C9 CF 66 2A [18:23:11]GetLastDocTimeStamp 1729448590 [18:23:11]current date 1729448593 [18:23:11]FM_GetShiftState [18:23:11]SAM_PROTO_GetShiftState [18:23:11]wFMCommunicate request_size=4 [18:23:11]MH_SAM_APDU [18:23:11]CAPDU: 80 13 01 00 [18:23:11]Write to MH i2c: E2 08 00 43 19 80 13 01 00 00 00 00 00 D9 [18:23:11]Write i2c OK [18:23:11]MH_I2C_Read... [18:23:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:23:11]Read from MH i2c: E2 [18:23:11]MH_I2C_Read... [18:23:11]Read from MH i2c: E2 0E 00 [18:23:11]MH_I2C_Read... [18:23:11]Read from MH i2c: E2 0E 00 43 19 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 F3 [18:23:11]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:23:11]wFMCommunicate OK [18:23:11]SAM_PROTO_GetShiftState done [18:23:11]FM_GetShiftState done [18:23:11]opened in 1729383750 [18:23:11]opened+sec_in_day 1729470150 [18:23:11]quantity*price = 200043 [18:23:11]sum+1 = 200044 [18:23:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 431 20.10.2024 18:23 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227583 ФПД: 221585847080298 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T182313&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227583&fm=221585847080298&tin=02508201610067®Number=0000000000091685&sum=200000 [18:23:13]StoreToDocumentArchive [18:23:13]shift 533 fd 227583 [18:23:13]save to /storage/0533/doc_00227583 [18:23:13]save last doc name /storage/0533/doc_00227583 to /storage/kkm_last_doc_name [18:23:13]save OK [18:23:13]Clear old archive folders... [18:23:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:23:13]tlvbuf is 00E173B0 [18:23:13]SAM_PROTO_ClearQueue [18:23:13]wFMCommunicate request_size=4 [18:23:13]MH_SAM_APDU [18:23:13]CAPDU: 80 09 00 00 [18:23:13]Write to MH i2c: E2 08 00 50 19 80 09 00 00 00 00 00 00 DB [18:23:13]Write i2c OK [18:23:13]MH_I2C_Read... [18:23:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:23:13]Read from MH i2c: E2 [18:23:13]MH_I2C_Read... [18:23:13]Read from MH i2c: E2 03 00 [18:23:13]MH_I2C_Read... [18:23:13]Read from MH i2c: E2 03 00 50 19 00 90 00 DD [18:23:13]RAPDU: 90 00 [18:23:13]wFMCommunicate OK [18:23:13]SAM_PROTO_ClearQueue done [18:23:13]KKMCreateOFDPacket [18:23:13]OFDProtocolAddRootSTLVToBuf [18:23:13]FM_MakeSignedData [18:23:13]FM_MakeSignedData [18:23:13]SAM_PROTO_SignData [18:23:13]wFMCommunicate request_size=4 [18:23:13]MH_SAM_APDU [18:23:13]CAPDU: 80 0D 01 02 [18:23:13]Write to MH i2c: E2 08 00 51 19 80 0D 01 02 00 00 00 00 E3 [18:23:13]Write i2c OK [18:23:13]MH_I2C_Read... [18:23:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:23:13]Read from MH i2c: E2 [18:23:13]MH_I2C_Read... [18:23:13]Read from MH i2c: E2 03 00 [18:23:13]MH_I2C_Read... [18:23:13]Read from MH i2c: E2 03 00 51 19 00 90 00 DE [18:23:13]RAPDU: 90 00 [18:23:13]wFMCommunicate OK [18:23:13]wFMCommunicate request_size=255 [18:23:13]MH_SAM_APDU [18:23:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 01 00 00 F4 03 04 00 91 4A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FF 78 03 00 35 04 06 00 C9 [18:23:13]Write to MH i2c: E2 02 01 52 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 01 00 00 F4 03 04 00 91 4A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FF 78 03 00 35 04 06 00 C9 00 00 83 [18:23:13]Write i2c OK [18:23:13]MH_I2C_Read... [18:23:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:23:13]Read from MH i2c: E2 [18:23:13]MH_I2C_Read... [18:23:13]Read from MH i2c: E2 03 00 [18:23:13]MH_I2C_Read... [18:23:13]Read from MH i2c: E2 03 00 52 19 00 90 00 DF [18:23:13]RAPDU: 90 00 [18:23:13]wFMCommunicate OK [18:23:13]wFMCommunicate request_size=10 [18:23:13]MH_SAM_APDU [18:23:13]CAPDU: 80 0D 02 02 05 87 F9 B3 D5 6A [18:23:13]Write to MH i2c: E2 0D 00 53 19 80 0D 02 02 05 00 87 F9 B3 D5 6A 00 00 62 [18:23:13]Write i2c OK [18:23:13]MH_I2C_Read... [18:23:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:23:13]Read from MH i2c: E2 [18:23:13]MH_I2C_Read... [18:23:13]Read from MH i2c: E2 03 00 [18:23:13]MH_I2C_Read... [18:23:13]Read from MH i2c: E2 03 00 53 19 00 90 00 E0 [18:23:13]RAPDU: 90 00 [18:23:13]wFMCommunicate OK [18:23:13]wFMCommunicate request_size=4 [18:23:13]MH_SAM_APDU [18:23:13]CAPDU: 80 0D 03 02 [18:23:13]Write to MH i2c: E2 08 00 54 19 80 0D 03 02 00 00 00 00 E8 [18:23:13]Write i2c OK [18:23:13]MH_I2C_Read... [18:23:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:23:13]Read from MH i2c: E2 [18:23:13]MH_I2C_Read... [18:23:13]Read from MH i2c: E2 0B 00 [18:23:13]MH_I2C_Read... [18:23:13]Read from MH i2c: E2 0B 00 54 19 00 55 F0 E5 3D 2E D6 B2 98 90 00 9E [18:23:13]RAPDU: 55 F0 E5 3D 2E D6 B2 98 90 00 [18:23:13]wFMCommunicate OK [18:23:13]SAM_PROTO_SignData done [18:23:13]FM_MakeSignedData done [18:23:13]CreateOFDProtocolMessage [18:23:13]wFMCommunicate request_size=4 [18:23:13]MH_SAM_APDU [18:23:13]CAPDU: 80 11 00 00 [18:23:13]Write to MH i2c: E2 08 00 55 19 80 11 00 00 00 00 00 00 E8 [18:23:13]Write i2c OK [18:23:13]MH_I2C_Read... [18:23:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:23:13]Read from MH i2c: E2 [18:23:13]MH_I2C_Read... [18:23:13]Read from MH i2c: E2 17 00 [18:23:13]MH_I2C_Read... [18:23:13]Read from MH i2c: E2 17 00 55 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 3F [18:23:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:23:13]wFMCommunicate OK [18:23:13]CreateOFDProtocolMessage done [18:23:13]OFDSenderStorePacket 227583 [18:23:13]StoreOFDPacket docnum=227583 [18:23:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 BE 96 07 01 F2 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 01 00 00 F4 03 04 00 91 4A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FF 78 03 00 35 04 06 00 C9 87 F9 B3 D5 6A 55 F0 E5 3D 2E D6 B2 98 [18:23:13]CheckFolder [18:23:13]dirname=/storage/ofd_packets [18:23:13]CheckFolder done [18:23:13]ProducePacketName [18:23:13]name=ofd_packets/00227583 [18:23:13]NVStorageSaveData ofd_packets/00227583 [18:23:13]File name is /storage/ofd_packets/00227583 [18:23:13]Write 301 bytes [18:23:13]NVStorageSaveData done [18:23:13]OFDSenderStorePacket done [18:23:13]KKMCreateOFDPacket done [18:23:13]NVStorageSaveData kkm_last_timestamp [18:23:13]File name is /storage/kkm_last_timestamp [18:23:13]Write 4 bytes [18:23:13]NVStorageSaveData done [18:23:13]ExternCall_PrintAddStr [18:23:13]wPrintStart [18:23:13]Write to MH i2c: 01 00 00 56 19 6F [18:23:13]Write i2c OK [18:23:13]MH_I2C_Read... [18:23:13]Read from MH i2c: 01 [18:23:13]MH_I2C_Read... [18:23:13]Read from MH i2c: 01 07 00 [18:23:13]MH_I2C_Read... [18:23:13]Read from MH i2c: 01 07 00 56 19 00 00 00 00 00 FF 0F 84 [18:23:13]RasterBufferAndPrint [18:23:13]line Счет N : (1)1963219 [18:23:13]line ИНН: 02508201610067 [18:23:13]line Контрольно-Кассовый Чек [18:23:13]line ПРОДАЖА [18:23:13]line ТРК (МРК, ГНК) : 34 [18:23:13]line Товар: 2710124500 [18:23:13]line Аи-95-К-5 [18:23:13]line 26.960 * 74.20 [18:23:13]line = 2000.43 [18:23:13]line НДС 12% НСП 1% [18:23:13]line > о реализуемом товаре [18:23:13]line ОКРУГЛЕНИЕ: -0.43 [18:23:13]line ИТОГО: 2000.00 [18:23:13]line Внесено: 2000.00 [18:23:13]line СДАЧА: 0.00 [18:23:13]line НСП 1% : 17.70 [18:23:13]line НДС 12% : 212.43 [18:23:13]line Наличными: 2000.00 [18:23:13]line Безнал.: 0.00 [18:23:13]line Место: АЗС № 133 "Партнер Нефть" [18:23:13]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:23:13]line СНО: Общий режим [18:23:13]line Чек 431 20.10.2024 18:23 [18:23:13]line Смена: 533 ФФД: 1.0 [18:23:13]line ЗНМ: 0300000091 [18:23:13]line РНМ: 0000000000091685 [18:23:13]line Версия ККМ: 001 [18:23:13]line ФМ: 0000000000871839 [18:23:13]line ФД: 227583 [18:23:13]line ФПД: 221585847080298 [18:23:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T182313&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227583&fm=221585847080298&tin=02508201610067®Number=0000000000091685&sum=200000 [18:23:13]written 0, free lines is 4095 [18:23:13]OFD Sender: Processing packet 227583 [packets to send 38, broken 37] [18:23:13]ProducePacketName [18:23:13]name=ofd_packets/00227583 [18:23:13]OFD Sender: To server: pG, [18:23:13]CommunicateWithHost lk.salyk.kg:30040 [18:23:13]ConnectInit lk.salyk.kg [18:23:14]Connected sock=10 [18:23: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 33 39 0F 01 00 00 BE 96 07 01 F2 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 01 00 00 F4 03 04 00 91 4A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FF 78 03 00 35 04 06 00 C9 87 F9 B3 D5 6A 55 F0 E5 3D 2E D6 B2 98 [18:23: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 33 39 4F 00 00 00 43 32 47 00 36 AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 FF 78 03 00 F4 03 04 00 8F F5 14 67 B6 04 01 00 00 F6 8A E4 6E 58 8B 62 8D [18:23:14]CommunicateWithHost err = 0 [18:23:14]CheckOFDResponse [18:23:14]1017 (14) - 77093643461234 [18:23:14]1041 (16) - 0000000000871839 [18:23:14]1040 (4) - 227583 [18:23:14]1012 (4) - 20.10.2024 12:20 [18:23:14]1206 (1) - 0 [18:23:14]OFD Sender: Remove packet 227583 [18:23:14]ProducePacketName [18:23:14]name=ofd_packets/00227583 [18:23:14]NVStorageDeleteData [18:23:14]Write to MH i2c: 01 00 00 80 19 99 [18:23:14]Write i2c OK [18:23:14]MH_I2C_Read... [18:23:14]Read from MH i2c: 01 [18:23:14]MH_I2C_Read... [18:23:14]Read from MH i2c: 01 07 00 [18:23:14]MH_I2C_Read... [18:23:14]Read from MH i2c: 01 07 00 80 19 00 00 00 00 00 39 0D E6 [18:23:14]RasterBufferAndPrint [18:23:14]line [18:23:14]line [18:23:14]line [18:23:14]line [18:23:14]line [18:23:14]written 0, free lines is 3406 [18:23:14]process_action close_receipt done [18:23:14]requested_data is exist [18:23:14]produce_requested_data [18:23:14]requested_item fm.sn is exist - process it [18:23:14]wFMCommunicate request_size=4 [18:23:14]MH_SAM_APDU [18:23:14]CAPDU: 80 11 00 00 [18:23:14]Write to MH i2c: E2 08 00 87 19 80 11 00 00 00 00 00 00 1A [18:23:14]Write i2c OK [18:23:14]MH_I2C_Read... [18:23:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:23:14]Read from MH i2c: E2 [18:23:14]MH_I2C_Read... [18:23:14]Read from MH i2c: E2 17 00 [18:23:14]MH_I2C_Read... [18:23:14]Read from MH i2c: E2 17 00 87 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 71 [18:23:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:23:14]wFMCommunicate OK [18:23:14]requested_item fd.num is exist - process it [18:23:14]SAM_PROTO_GetFieldsCounters [18:23:14]wFMCommunicate request_size=4 [18:23:14]MH_SAM_APDU [18:23:14]CAPDU: 80 13 00 00 [18:23:14]Write to MH i2c: E2 08 00 88 19 80 13 00 00 00 00 00 00 1D [18:23:14]Write i2c OK [18:23:14]MH_I2C_Read... [18:23:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:23:14]Read from MH i2c: E2 [18:23:14]MH_I2C_Read... [18:23:14]Read from MH i2c: E2 62 00 [18:23:14]MH_I2C_Read... [18:23:14]Read from MH i2c: E2 62 00 88 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 FF 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 AF 01 00 00 5E 04 04 00 AF 01 00 00 57 04 04 00 B0 01 00 00 19 04 04 00 00 00 00 00 90 00 E7 [18:23: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 FF 78 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 AF 01 00 00 5E 04 04 00 AF 01 00 00 57 04 04 00 B0 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:23:14]wFMCommunicate OK [18:23:14]SAM_PROTO_GetFieldsCounters done [18:23:14]requested_item shift.num is exist - process it [18:23:14]requested_item shift.opened is exist - process it [18:23:14]req_shift_opened [18:23:14]FM_GetShiftState [18:23:14]SAM_PROTO_GetShiftState [18:23:14]wFMCommunicate request_size=4 [18:23:14]MH_SAM_APDU [18:23:14]CAPDU: 80 13 01 00 [18:23:14]Write to MH i2c: E2 08 00 89 19 80 13 01 00 00 00 00 00 1F [18:23:14]Write i2c OK [18:23:14]MH_I2C_Read... [18:23:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:23:14]Read from MH i2c: E2 [18:23:14]MH_I2C_Read... [18:23:14]Read from MH i2c: E2 0E 00 [18:23:14]MH_I2C_Read... [18:23:14]Read from MH i2c: E2 0E 00 89 19 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 39 [18:23:14]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:23:14]wFMCommunicate OK [18:23:14]SAM_PROTO_GetShiftState done [18:23:14]FM_GetShiftState done [18:23:14]req_shift_opened done [18:23:14]requested_item shift.open_date is exist - process it [18:23:14]req_shift_open_date [18:23:14]req_shift_open_date done [18:23:14]produce_requested_data done [18:23:14]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227583,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [18:23:14]process_action_free close_receipt [18:23:14]json_value_free [18:23:14]json_value_free done [18:23:14]process_json_proto returns [18:23:14]Send response to host [18:23:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227583,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [18:23:14]free response buf [18:23:14]execute_script done [18:23:14]execute_script returns [18:23:14]free content buf [18:23:14]Sock 7.Close socket [18:23:14]Sock 7.Thread stoped [18:23:14]OFD Sender: No OFD packet to send [18:23:19]OFD Sender: No OFD packet to send [18:23:24]OFD Sender: No OFD packet to send [18:23:29]OFD Sender: No OFD packet to send [18:23:34]OFD Sender: No OFD packet to send [18:23:39]OFD Sender: No OFD packet to send [18:23:44]OFD Sender: No OFD packet to send [18:23:49]OFD Sender: No OFD packet to send [18:23:54]OFD Sender: No OFD packet to send [18:23:59]OFD Sender: No OFD packet to send [18:24:04]OFD Sender: No OFD packet to send [18:24:09]OFD Sender: No OFD packet to send [18:24:14]OFD Sender: No OFD packet to send [18:24:19]OFD Sender: No OFD packet to send [18:24:24]OFD Sender: No OFD packet to send [18:24:29]OFD Sender: No OFD packet to send [18:24:34]OFD Sender: No OFD packet to send [18:24:39]OFD Sender: No OFD packet to send [18:24:44]OFD Sender: No OFD packet to send [18:24:49]OFD Sender: No OFD packet to send [18:24:54]OFD Sender: No OFD packet to send [18:24:59]OFD Sender: No OFD packet to send [18:25:02]accept exits with 9 [18:25:02]New connection [18:25:02]New thread 3067219300 created [18:25:02]Thread 3067362660 joined [18:25:02]Waiting for new connection... [18:25:02] Sock 9.Parse request [18:25:02]Sock 9.Check first char [18:25:02]Sock 9.First char is OK [18:25:02]request: POST /json_proto HTTP/1.0 [18:25:02]Method: POST [18:25:02]URL: /json_proto [18:25:02]Method is POST - this is cgi request [18:25:02]url: /json_proto [18:25:02]query_string will be loaded in cgi processing [18:25:02]execute_cgi json_proto POST (null) [18:25:02]execute_cgi path=json_proto method=POST [18:25:02]POST find Content-Length [18:25:02]Host: 172.17.44.195:8080 [18:25:02]Content-Length: 680 [18:25:02]Content-Type: application/json [18:25:02] [18:25:02]POST finish read [18:25:02]Found Content-Length = 680 [18:25:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963220", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:25:02]execute_script... [18:25: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)1963220", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:25:02]POST & json_proto [18:25:02]process_json_proto [18:25:02]json parsed OK: [18:25:02]protocol is kg_v1.0 [18:25:02]action value=close_receipt [18:25:02]process_action close_receipt [18:25:02]cmd_close_receipt [18:25:02]MH_GetDate [18:25:02]Write to MH i2c: F0 00 00 8A 19 92 [18:25:02]Write i2c OK [18:25:02]MH_I2C_Read... [18:25:02]Read from MH i2c: F0 [18:25:02]MH_I2C_Read... [18:25:02]Read from MH i2c: F0 09 00 [18:25:02]MH_I2C_Read... [18:25:02]Read from MH i2c: F0 09 00 8A 19 00 FF 4A 15 67 82 C9 CF 66 E0 [18:25:02]GetLastDocTimeStamp 1729448593 [18:25:02]current date 1729448703 [18:25:02]FM_GetShiftState [18:25:02]SAM_PROTO_GetShiftState [18:25:02]wFMCommunicate request_size=4 [18:25:02]MH_SAM_APDU [18:25:02]CAPDU: 80 13 01 00 [18:25:02]Write to MH i2c: E2 08 00 8B 19 80 13 01 00 00 00 00 00 21 [18:25:02]Write i2c OK [18:25:02]MH_I2C_Read... [18:25:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:02]Read from MH i2c: E2 [18:25:02]MH_I2C_Read... [18:25:02]Read from MH i2c: E2 0E 00 [18:25:02]MH_I2C_Read... [18:25:02]Read from MH i2c: E2 0E 00 8B 19 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 3B [18:25:02]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:25:02]wFMCommunicate OK [18:25:02]SAM_PROTO_GetShiftState done [18:25:02]FM_GetShiftState done [18:25:02]opened in 1729383750 [18:25:02]opened+sec_in_day 1729470150 [18:25:02]quantity*price = 200025 [18:25:02]sum+1 = 200026 [18:25:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 432 20.10.2024 18:25 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227584 ФПД: 188861029028585 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T182503&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227584&fm=188861029028585&tin=02508201610067®Number=0000000000091685&sum=200000 [18:25:03]StoreToDocumentArchive [18:25:03]shift 533 fd 227584 [18:25:03]save to /storage/0533/doc_00227584 [18:25:03]save last doc name /storage/0533/doc_00227584 to /storage/kkm_last_doc_name [18:25:03]save OK [18:25:03]Clear old archive folders... [18:25:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:25:03]tlvbuf is B6F3E630 [18:25:03]SAM_PROTO_ClearQueue [18:25:03]wFMCommunicate request_size=4 [18:25:03]MH_SAM_APDU [18:25:03]CAPDU: 80 09 00 00 [18:25:03]Write to MH i2c: E2 08 00 98 19 80 09 00 00 00 00 00 00 23 [18:25:03]Write i2c OK [18:25:03]MH_I2C_Read... [18:25:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:25:03]Read from MH i2c: E2 [18:25:03]MH_I2C_Read... [18:25:03]Read from MH i2c: E2 03 00 [18:25:03]MH_I2C_Read... [18:25:03]Read from MH i2c: E2 03 00 98 19 00 90 00 25 [18:25:03]RAPDU: 90 00 [18:25:03]wFMCommunicate OK [18:25:03]SAM_PROTO_ClearQueue done [18:25:03]KKMCreateOFDPacket [18:25:03]OFDProtocolAddRootSTLVToBuf [18:25:03]FM_MakeSignedData [18:25:03]FM_MakeSignedData [18:25:03]SAM_PROTO_SignData [18:25:03]wFMCommunicate request_size=4 [18:25:03]MH_SAM_APDU [18:25:03]CAPDU: 80 0D 01 02 [18:25:03]Write to MH i2c: E2 08 00 99 19 80 0D 01 02 00 00 00 00 2B [18:25:03]Write i2c OK [18:25:03]MH_I2C_Read... [18:25:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:25:03]Read from MH i2c: E2 [18:25:03]MH_I2C_Read... [18:25:03]Read from MH i2c: E2 03 00 [18:25:03]MH_I2C_Read... [18:25:03]Read from MH i2c: E2 03 00 99 19 00 90 00 26 [18:25:03]RAPDU: 90 00 [18:25:03]wFMCommunicate OK [18:25:03]wFMCommunicate request_size=255 [18:25:03]MH_SAM_APDU [18:25: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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 01 00 00 F4 03 04 00 FF 4A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 00 79 03 00 35 04 06 00 AB C4 A2 8C [18:25:03]Write to MH i2c: E2 02 01 9A 19 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 01 00 00 F4 03 04 00 FF 4A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 00 79 03 00 35 04 06 00 AB C4 A2 8C 00 00 4C [18:25:03]Write i2c OK [18:25:03]MH_I2C_Read... [18:25:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:03]Read from MH i2c: E2 [18:25:03]MH_I2C_Read... [18:25:03]Read from MH i2c: E2 03 00 [18:25:03]MH_I2C_Read... [18:25:03]Read from MH i2c: E2 03 00 9A 19 00 90 00 27 [18:25:03]RAPDU: 90 00 [18:25:03]wFMCommunicate OK [18:25:03]wFMCommunicate request_size=7 [18:25:03]MH_SAM_APDU [18:25:03]CAPDU: 80 0D 02 02 02 12 E9 [18:25:03]Write to MH i2c: E2 0A 00 9B 19 80 0D 02 02 02 00 12 E9 00 00 2D [18:25:03]Write i2c OK [18:25:03]MH_I2C_Read... [18:25:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:03]Read from MH i2c: E2 [18:25:03]MH_I2C_Read... [18:25:03]Read from MH i2c: E2 03 00 [18:25:03]MH_I2C_Read... [18:25:03]Read from MH i2c: E2 03 00 9B 19 00 90 00 28 [18:25:03]RAPDU: 90 00 [18:25:03]wFMCommunicate OK [18:25:03]wFMCommunicate request_size=4 [18:25:03]MH_SAM_APDU [18:25:03]CAPDU: 80 0D 03 02 [18:25:03]Write to MH i2c: E2 08 00 9C 19 80 0D 03 02 00 00 00 00 30 [18:25:03]Write i2c OK [18:25:03]MH_I2C_Read... [18:25:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:25:03]Read from MH i2c: E2 [18:25:03]MH_I2C_Read... [18:25:03]Read from MH i2c: E2 0B 00 [18:25:03]MH_I2C_Read... [18:25:03]Read from MH i2c: E2 0B 00 9C 19 00 81 C5 BB 1B A0 D8 65 D1 90 00 FB [18:25:03]RAPDU: 81 C5 BB 1B A0 D8 65 D1 90 00 [18:25:03]wFMCommunicate OK [18:25:03]SAM_PROTO_SignData done [18:25:03]FM_MakeSignedData done [18:25:03]CreateOFDProtocolMessage [18:25:03]wFMCommunicate request_size=4 [18:25:03]MH_SAM_APDU [18:25:03]CAPDU: 80 11 00 00 [18:25:03]Write to MH i2c: E2 08 00 9D 19 80 11 00 00 00 00 00 00 30 [18:25:03]Write i2c OK [18:25:03]MH_I2C_Read... [18:25:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:03]Read from MH i2c: E2 [18:25:03]MH_I2C_Read... [18:25:03]Read from MH i2c: E2 17 00 [18:25:03]MH_I2C_Read... [18:25:03]Read from MH i2c: E2 17 00 9D 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 87 [18:25:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:25:03]wFMCommunicate OK [18:25:03]CreateOFDProtocolMessage done [18:25:03]OFDSenderStorePacket 227584 [18:25:03]StoreOFDPacket docnum=227584 [18:25:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 1C 61 04 01 50 11 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 01 00 00 F4 03 04 00 FF 4A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 00 79 03 00 35 04 06 00 AB C4 A2 8C 12 E9 81 C5 BB 1B A0 D8 65 D1 [18:25:03]CheckFolder [18:25:03]dirname=/storage/ofd_packets [18:25:03]CheckFolder done [18:25:03]ProducePacketName [18:25:03]name=ofd_packets/00227584 [18:25:03]NVStorageSaveData ofd_packets/00227584 [18:25:03]File name is /storage/ofd_packets/00227584 [18:25:03]Write 298 bytes [18:25:03]NVStorageSaveData done [18:25:03]OFDSenderStorePacket done [18:25:03]KKMCreateOFDPacket done [18:25:03]NVStorageSaveData kkm_last_timestamp [18:25:03]File name is /storage/kkm_last_timestamp [18:25:03]Write 4 bytes [18:25:03]NVStorageSaveData done [18:25:03]ExternCall_PrintAddStr [18:25:03]wPrintStart [18:25:03]Write to MH i2c: 01 00 00 9E 19 B7 [18:25:03]Write i2c OK [18:25:03]MH_I2C_Read... [18:25:03]Read from MH i2c: 01 [18:25:03]MH_I2C_Read... [18:25:03]Read from MH i2c: 01 07 00 [18:25:03]MH_I2C_Read... [18:25:03]Read from MH i2c: 01 07 00 9E 19 00 00 00 00 00 FF 0F CC [18:25:03]RasterBufferAndPrint [18:25:03]line Счет N : (1)1963220 [18:25:03]line ИНН: 02508201610067 [18:25:03]line Контрольно-Кассовый Чек [18:25:03]line ПРОДАЖА [18:25:03]line ТРК (МРК, ГНК) : 61 [18:25:03]line Товар: 2710194210 [18:25:03]line ДТ-К-5 [18:25:03]line 26.250 * 76.20 [18:25:03]line = 2000.25 [18:25:03]line НДС 12% НСП 1% [18:25:03]line > о реализуемом товаре [18:25:03]line ОКРУГЛЕНИЕ: -0.25 [18:25:03]line ИТОГО: 2000.00 [18:25:03]line Внесено: 2000.00 [18:25:03]line СДАЧА: 0.00 [18:25:03]line НСП 1% : 17.70 [18:25:03]line НДС 12% : 212.42 [18:25:03]line Наличными: 2000.00 [18:25:03]line Безнал.: 0.00 [18:25:03]line Место: АЗС № 133 "Партнер Нефть" [18:25:03]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:25:03]line СНО: Общий режим [18:25:03]line Чек 432 20.10.2024 18:25 [18:25:03]line Смена: 533 ФФД: 1.0 [18:25:03]line ЗНМ: 0300000091 [18:25:03]line РНМ: 0000000000091685 [18:25:03]line Версия ККМ: 001 [18:25:03]line ФМ: 0000000000871839 [18:25:03]line ФД: 227584 [18:25:03]line ФПД: 188861029028585 [18:25:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T182503&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227584&fm=188861029028585&tin=02508201610067®Number=0000000000091685&sum=200000 [18:25:04]OFD Sender: Processing packet 227584 [packets to send 38, broken 37] [18:25:04]ProducePacketName [18:25:04]name=ofd_packets/00227584 [18:25:04]OFD Sender: To server: pG, [18:25:04]CommunicateWithHost lk.salyk.kg:30040 [18:25:04]ConnectInit lk.salyk.kg [18:25:04]written 0, free lines is 4095 [18:25:04]Connected sock=10 [18:25:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 1C 61 04 01 50 11 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 01 00 00 F4 03 04 00 FF 4A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 00 79 03 00 35 04 06 00 AB C4 A2 8C 12 E9 81 C5 BB 1B A0 D8 65 D1 [18:25:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 FF A6 47 00 DD 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 33 39 10 04 04 00 00 79 03 00 F4 03 04 00 FD F5 14 67 B6 04 01 00 00 74 11 95 05 40 7B CE A7 [18:25:04]CommunicateWithHost err = 0 [18:25:04]CheckOFDResponse [18:25:04]1017 (14) - 77093643461234 [18:25:04]1041 (16) - 0000000000871839 [18:25:04]1040 (4) - 227584 [18:25:04]1012 (4) - 20.10.2024 12:22 [18:25:04]1206 (1) - 0 [18:25:04]OFD Sender: Remove packet 227584 [18:25:04]ProducePacketName [18:25:04]name=ofd_packets/00227584 [18:25:04]NVStorageDeleteData [18:25:04]Write to MH i2c: 01 00 00 C8 19 E1 [18:25:04]Write i2c OK [18:25:04]MH_I2C_Read... [18:25:04]Read from MH i2c: 01 [18:25:04]MH_I2C_Read... [18:25:04]Read from MH i2c: 01 07 00 [18:25:04]MH_I2C_Read... [18:25:04]Read from MH i2c: 01 07 00 C8 19 00 00 00 00 00 10 0D 05 [18:25:04]RasterBufferAndPrint [18:25:04]line [18:25:04]line [18:25:04]line [18:25:04]line [18:25:04]line [18:25:04]written 0, free lines is 3350 [18:25:04]process_action close_receipt done [18:25:04]requested_data is exist [18:25:04]produce_requested_data [18:25:04]requested_item fm.sn is exist - process it [18:25:04]wFMCommunicate request_size=4 [18:25:04]MH_SAM_APDU [18:25:04]CAPDU: 80 11 00 00 [18:25:04]Write to MH i2c: E2 08 00 CF 19 80 11 00 00 00 00 00 00 62 [18:25:04]Write i2c OK [18:25:04]MH_I2C_Read... [18:25:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:04]Read from MH i2c: E2 [18:25:04]MH_I2C_Read... [18:25:04]Read from MH i2c: E2 17 00 [18:25:04]MH_I2C_Read... [18:25:04]Read from MH i2c: E2 17 00 CF 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B9 [18:25:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:25:04]wFMCommunicate OK [18:25:04]requested_item fd.num is exist - process it [18:25:04]SAM_PROTO_GetFieldsCounters [18:25:04]wFMCommunicate request_size=4 [18:25:04]MH_SAM_APDU [18:25:04]CAPDU: 80 13 00 00 [18:25:04]Write to MH i2c: E2 08 00 D0 19 80 13 00 00 00 00 00 00 65 [18:25:04]Write i2c OK [18:25:04]MH_I2C_Read... [18:25:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:25:04]Read from MH i2c: E2 [18:25:04]MH_I2C_Read... [18:25:04]Read from MH i2c: E2 62 00 [18:25:04]MH_I2C_Read... [18:25:04]Read from MH i2c: E2 62 00 D0 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 00 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 B0 01 00 00 5E 04 04 00 B0 01 00 00 57 04 04 00 B1 01 00 00 19 04 04 00 00 00 00 00 90 00 34 [18:25: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 00 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 B0 01 00 00 5E 04 04 00 B0 01 00 00 57 04 04 00 B1 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:25:04]wFMCommunicate OK [18:25:04]SAM_PROTO_GetFieldsCounters done [18:25:04]requested_item shift.num is exist - process it [18:25:04]requested_item shift.opened is exist - process it [18:25:04]req_shift_opened [18:25:04]FM_GetShiftState [18:25:04]SAM_PROTO_GetShiftState [18:25:04]wFMCommunicate request_size=4 [18:25:04]MH_SAM_APDU [18:25:04]CAPDU: 80 13 01 00 [18:25:04]Write to MH i2c: E2 08 00 D1 19 80 13 01 00 00 00 00 00 67 [18:25:04]Write i2c OK [18:25:04]MH_I2C_Read... [18:25:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:04]Read from MH i2c: E2 [18:25:04]MH_I2C_Read... [18:25:04]Read from MH i2c: E2 0E 00 [18:25:04]MH_I2C_Read... [18:25:04]Read from MH i2c: E2 0E 00 D1 19 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 81 [18:25:04]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:25:04]wFMCommunicate OK [18:25:04]SAM_PROTO_GetShiftState done [18:25:04]FM_GetShiftState done [18:25:04]req_shift_opened done [18:25:04]requested_item shift.open_date is exist - process it [18:25:04]req_shift_open_date [18:25:04]req_shift_open_date done [18:25:04]produce_requested_data done [18:25:04]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227584,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [18:25:04]process_action_free close_receipt [18:25:04]json_value_free [18:25:04]json_value_free done [18:25:04]process_json_proto returns [18:25:04]Send response to host [18:25:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227584,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [18:25:04]free response buf [18:25:04]execute_script done [18:25:04]execute_script returns [18:25:04]free content buf [18:25:04]Sock 9.Close socket [18:25:04]Sock 9.Thread stoped [18:25:04]OFD Sender: No OFD packet to send [18:25:09]OFD Sender: No OFD packet to send [18:25:14]OFD Sender: No OFD packet to send [18:25:19]OFD Sender: No OFD packet to send [18:25:24]OFD Sender: No OFD packet to send [18:25:29]OFD Sender: No OFD packet to send [18:25:34]OFD Sender: No OFD packet to send [18:25:39]OFD Sender: No OFD packet to send [18:25:43]accept exits with 7 [18:25:43]New connection [18:25:43]New thread 3067362660 created [18:25:43]Thread 3067219300 joined [18:25:43]Waiting for new connection... [18:25:43] Sock 7.Parse request [18:25:43]Sock 7.Check first char [18:25:43]Sock 7.First char is OK [18:25:43]request: POST /json_proto HTTP/1.0 [18:25:43]Method: POST [18:25:43]URL: /json_proto [18:25:43]Method is POST - this is cgi request [18:25:43]url: /json_proto [18:25:43]query_string will be loaded in cgi processing [18:25:43]execute_cgi json_proto POST (null) [18:25:43]execute_cgi path=json_proto method=POST [18:25:43]POST find Content-Length [18:25:43]Host: 172.17.44.195:8080 [18:25:43]Content-Length: 678 [18:25:43]Content-Type: application/json [18:25:43] [18:25:43]POST finish read [18:25:43]Found Content-Length = 678 [18:25:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963221", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:25:43]execute_script... [18:25: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)1963221", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:25:43]POST & json_proto [18:25:43]process_json_proto [18:25:43]json parsed OK: [18:25:43]protocol is kg_v1.0 [18:25:43]action value=close_receipt [18:25:43]process_action close_receipt [18:25:43]cmd_close_receipt [18:25:43]MH_GetDate [18:25:43]Write to MH i2c: F0 00 00 D2 19 DA [18:25:43]Write i2c OK [18:25:43]MH_I2C_Read... [18:25:43]Read from MH i2c: F0 [18:25:43]MH_I2C_Read... [18:25:43]Read from MH i2c: F0 09 00 [18:25:43]MH_I2C_Read... [18:25:43]Read from MH i2c: F0 09 00 D2 19 00 29 4B 15 67 82 C9 CF 66 53 [18:25:43]GetLastDocTimeStamp 1729448703 [18:25:43]current date 1729448745 [18:25:43]FM_GetShiftState [18:25:43]SAM_PROTO_GetShiftState [18:25:43]wFMCommunicate request_size=4 [18:25:43]MH_SAM_APDU [18:25:43]CAPDU: 80 13 01 00 [18:25:43]Write to MH i2c: E2 08 00 D3 19 80 13 01 00 00 00 00 00 69 [18:25:43]Write i2c OK [18:25:43]MH_I2C_Read... [18:25:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:43]Read from MH i2c: E2 [18:25:43]MH_I2C_Read... [18:25:43]Read from MH i2c: E2 0E 00 [18:25:43]MH_I2C_Read... [18:25:43]Read from MH i2c: E2 0E 00 D3 19 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 83 [18:25:43]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:25:43]wFMCommunicate OK [18:25:43]SAM_PROTO_GetShiftState done [18:25:43]FM_GetShiftState done [18:25:43]opened in 1729383750 [18:25:43]opened+sec_in_day 1729470150 [18:25:43]quantity*price = 30038 [18:25:43]sum+1 = 30039 [18:25:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 433 20.10.2024 18:25 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227585 ФПД: 247339774152403 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T182545&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227585&fm=247339774152403&tin=02508201610067®Number=0000000000091685&sum=30000 [18:25:44]StoreToDocumentArchive [18:25:44]shift 533 fd 227585 [18:25:44]save to /storage/0533/doc_00227585 [18:25:44]save last doc name /storage/0533/doc_00227585 to /storage/kkm_last_doc_name [18:25:44]save OK [18:25:44]Clear old archive folders... [18:25:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:25:44]tlvbuf is 00E3AE50 [18:25:44]SAM_PROTO_ClearQueue [18:25:44]wFMCommunicate request_size=4 [18:25:44]MH_SAM_APDU [18:25:44]CAPDU: 80 09 00 00 [18:25:44]Write to MH i2c: E2 08 00 E0 19 80 09 00 00 00 00 00 00 6B [18:25:44]Write i2c OK [18:25:44]MH_I2C_Read... [18:25:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:25:44]Read from MH i2c: E2 [18:25:44]MH_I2C_Read... [18:25:44]Read from MH i2c: E2 03 00 [18:25:44]MH_I2C_Read... [18:25:44]Read from MH i2c: E2 03 00 E0 19 00 90 00 6D [18:25:44]RAPDU: 90 00 [18:25:44]wFMCommunicate OK [18:25:44]SAM_PROTO_ClearQueue done [18:25:44]KKMCreateOFDPacket [18:25:44]OFDProtocolAddRootSTLVToBuf [18:25:44]FM_MakeSignedData [18:25:44]FM_MakeSignedData [18:25:44]SAM_PROTO_SignData [18:25:44]wFMCommunicate request_size=4 [18:25:44]MH_SAM_APDU [18:25:44]CAPDU: 80 0D 01 02 [18:25:44]Write to MH i2c: E2 08 00 E1 19 80 0D 01 02 00 00 00 00 73 [18:25:44]Write i2c OK [18:25:44]MH_I2C_Read... [18:25:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:25:44]Read from MH i2c: E2 [18:25:44]MH_I2C_Read... [18:25:44]Read from MH i2c: E2 03 00 [18:25:44]MH_I2C_Read... [18:25:44]Read from MH i2c: E2 03 00 E1 19 00 90 00 6E [18:25:44]RAPDU: 90 00 [18:25:44]wFMCommunicate OK [18:25:44]wFMCommunicate request_size=255 [18:25:44]MH_SAM_APDU [18:25:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 01 00 00 F4 03 04 00 29 4B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 01 79 03 00 35 04 06 00 E0 [18:25:44]Write to MH i2c: E2 02 01 E2 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 01 00 00 F4 03 04 00 29 4B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 01 79 03 00 35 04 06 00 E0 00 00 14 [18:25:44]Write i2c OK [18:25:44]MH_I2C_Read... [18:25:44]OFD Sender: No OFD packet to send [18:25:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:45]Read from MH i2c: E2 [18:25:45]MH_I2C_Read... [18:25:45]Read from MH i2c: E2 03 00 [18:25:45]MH_I2C_Read... [18:25:45]Read from MH i2c: E2 03 00 E2 19 00 90 00 6F [18:25:45]RAPDU: 90 00 [18:25:45]wFMCommunicate OK [18:25:45]wFMCommunicate request_size=10 [18:25:45]MH_SAM_APDU [18:25:45]CAPDU: 80 0D 02 02 05 F4 47 60 8E D3 [18:25:45]Write to MH i2c: E2 0D 00 E3 19 80 0D 02 02 05 00 F4 47 60 8E D3 00 00 7C [18:25:45]Write i2c OK [18:25:45]MH_I2C_Read... [18:25:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:45]Read from MH i2c: E2 [18:25:45]MH_I2C_Read... [18:25:45]Read from MH i2c: E2 03 00 [18:25:45]MH_I2C_Read... [18:25:45]Read from MH i2c: E2 03 00 E3 19 00 90 00 70 [18:25:45]RAPDU: 90 00 [18:25:45]wFMCommunicate OK [18:25:45]wFMCommunicate request_size=4 [18:25:45]MH_SAM_APDU [18:25:45]CAPDU: 80 0D 03 02 [18:25:45]Write to MH i2c: E2 08 00 E4 19 80 0D 03 02 00 00 00 00 78 [18:25:45]Write i2c OK [18:25:45]MH_I2C_Read... [18:25:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:25:45]Read from MH i2c: E2 [18:25:45]MH_I2C_Read... [18:25:45]Read from MH i2c: E2 0B 00 [18:25:45]MH_I2C_Read... [18:25:45]Read from MH i2c: E2 0B 00 E4 19 00 76 04 C7 C2 39 91 D1 AA 90 00 C1 [18:25:45]RAPDU: 76 04 C7 C2 39 91 D1 AA 90 00 [18:25:45]wFMCommunicate OK [18:25:45]SAM_PROTO_SignData done [18:25:45]FM_MakeSignedData done [18:25:45]CreateOFDProtocolMessage [18:25:45]wFMCommunicate request_size=4 [18:25:45]MH_SAM_APDU [18:25:45]CAPDU: 80 11 00 00 [18:25:45]Write to MH i2c: E2 08 00 E5 19 80 11 00 00 00 00 00 00 78 [18:25:45]Write i2c OK [18:25:45]MH_I2C_Read... [18:25:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:45]Read from MH i2c: E2 [18:25:45]MH_I2C_Read... [18:25:45]Read from MH i2c: E2 17 00 [18:25:45]MH_I2C_Read... [18:25:45]Read from MH i2c: E2 17 00 E5 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 CF [18:25:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:25:45]wFMCommunicate OK [18:25:45]CreateOFDProtocolMessage done [18:25:45]OFDSenderStorePacket 227585 [18:25:45]StoreOFDPacket docnum=227585 [18:25:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 5F C0 07 01 68 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 01 00 00 F4 03 04 00 29 4B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 01 79 03 00 35 04 06 00 E0 F4 47 60 8E D3 76 04 C7 C2 39 91 D1 AA [18:25:45]CheckFolder [18:25:45]dirname=/storage/ofd_packets [18:25:45]CheckFolder done [18:25:45]ProducePacketName [18:25:45]name=ofd_packets/00227585 [18:25:45]NVStorageSaveData ofd_packets/00227585 [18:25:45]File name is /storage/ofd_packets/00227585 [18:25:45]Write 301 bytes [18:25:45]NVStorageSaveData done [18:25:45]OFDSenderStorePacket done [18:25:45]KKMCreateOFDPacket done [18:25:45]NVStorageSaveData kkm_last_timestamp [18:25:45]File name is /storage/kkm_last_timestamp [18:25:45]Write 4 bytes [18:25:45]NVStorageSaveData done [18:25:45]ExternCall_PrintAddStr [18:25:45]wPrintStart [18:25:45]Write to MH i2c: 01 00 00 E6 19 FF [18:25:45]Write i2c OK [18:25:45]MH_I2C_Read... [18:25:45]Read from MH i2c: 01 [18:25:45]MH_I2C_Read... [18:25:45]Read from MH i2c: 01 07 00 [18:25:45]MH_I2C_Read... [18:25:45]Read from MH i2c: 01 07 00 E6 19 00 00 00 00 00 FF 0F 14 [18:25:45]RasterBufferAndPrint [18:25:45]line Счет N : (1)1963221 [18:25:45]line ИНН: 02508201610067 [18:25:45]line Контрольно-Кассовый Чек [18:25:45]line ПРОДАЖА [18:25:45]line ТРК (МРК, ГНК) : 53 [18:25:45]line Товар: 2710124130 [18:25:45]line Аи-92-К-5 [18:25:45]line 4.490 * 66.90 [18:25:45]line = 300.38 [18:25:45]line НДС 12% НСП 1% [18:25:45]line > о реализуемом товаре [18:25:45]line ОКРУГЛЕНИЕ: -0.38 [18:25:45]line ИТОГО: 300.00 [18:25:45]line Внесено: 300.00 [18:25:45]line СДАЧА: 0.00 [18:25:45]line НСП 1% : 2.66 [18:25:45]line НДС 12% : 31.90 [18:25:45]line Наличными: 300.00 [18:25:45]line Безнал.: 0.00 [18:25:45]line Место: АЗС № 133 "Партнер Нефть" [18:25:45]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:25:45]line СНО: Общий режим [18:25:45]line Чек 433 20.10.2024 18:25 [18:25:45]line Смена: 533 ФФД: 1.0 [18:25:45]line ЗНМ: 0300000091 [18:25:45]line РНМ: 0000000000091685 [18:25:45]line Версия ККМ: 001 [18:25:45]line ФМ: 0000000000871839 [18:25:45]line ФД: 227585 [18:25:45]line ФПД: 247339774152403 [18:25:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T182545&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227585&fm=247339774152403&tin=02508201610067®Number=0000000000091685&sum=30000 [18:25:45]OFD Sender: Processing packet 227585 [packets to send 38, broken 37] [18:25:45]ProducePacketName [18:25:45]name=ofd_packets/00227585 [18:25:45]OFD Sender: To server: pG, [18:25:45]CommunicateWithHost lk.salyk.kg:30040 [18:25:45]ConnectInit lk.salyk.kg [18:25:45]written 0, free lines is 4095 [18:25:45]Connected sock=10 [18:25: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 33 39 0F 01 00 00 5F C0 07 01 68 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 01 00 00 F4 03 04 00 29 4B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 01 79 03 00 35 04 06 00 E0 F4 47 60 8E D3 76 04 C7 C2 39 91 D1 AA [18:25: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 33 39 4F 00 00 00 D8 74 47 00 2A 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 01 79 03 00 F4 03 04 00 27 F6 14 67 B6 04 01 00 00 62 0B 1E D4 9D 26 1F 0D [18:25:45]CommunicateWithHost err = 0 [18:25:45]CheckOFDResponse [18:25:45]1017 (14) - 77093643461234 [18:25:45]1041 (16) - 0000000000871839 [18:25:45]1040 (4) - 227585 [18:25:45]1012 (4) - 20.10.2024 12:23 [18:25:45]1206 (1) - 0 [18:25:45]OFD Sender: Remove packet 227585 [18:25:45]ProducePacketName [18:25:45]name=ofd_packets/00227585 [18:25:45]NVStorageDeleteData [18:25:46]Write to MH i2c: 01 00 00 10 1A 2A [18:25:46]Write i2c OK [18:25:46]MH_I2C_Read... [18:25:46]Read from MH i2c: 01 [18:25:46]MH_I2C_Read... [18:25:46]Read from MH i2c: 01 07 00 [18:25:46]MH_I2C_Read... [18:25:46]Read from MH i2c: 01 07 00 10 1A 00 00 00 00 00 0A 0D 48 [18:25:46]RasterBufferAndPrint [18:25:46]line [18:25:46]line [18:25:46]line [18:25:46]line [18:25:46]line [18:25:46]written 0, free lines is 3344 [18:25:46]process_action close_receipt done [18:25:46]requested_data is exist [18:25:46]produce_requested_data [18:25:46]requested_item fm.sn is exist - process it [18:25:46]wFMCommunicate request_size=4 [18:25:46]MH_SAM_APDU [18:25:46]CAPDU: 80 11 00 00 [18:25:46]Write to MH i2c: E2 08 00 17 1A 80 11 00 00 00 00 00 00 AB [18:25:46]Write i2c OK [18:25:46]MH_I2C_Read... [18:25:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:46]Read from MH i2c: E2 [18:25:46]MH_I2C_Read... [18:25:46]Read from MH i2c: E2 17 00 [18:25:46]MH_I2C_Read... [18:25:46]Read from MH i2c: E2 17 00 17 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 02 [18:25:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:25:46]wFMCommunicate OK [18:25:46]requested_item fd.num is exist - process it [18:25:46]SAM_PROTO_GetFieldsCounters [18:25:46]wFMCommunicate request_size=4 [18:25:46]MH_SAM_APDU [18:25:46]CAPDU: 80 13 00 00 [18:25:46]Write to MH i2c: E2 08 00 18 1A 80 13 00 00 00 00 00 00 AE [18:25:46]Write i2c OK [18:25:46]MH_I2C_Read... [18:25:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:25:46]Read from MH i2c: E2 [18:25:46]MH_I2C_Read... [18:25:46]Read from MH i2c: E2 62 00 [18:25:46]MH_I2C_Read... [18:25:46]Read from MH i2c: E2 62 00 18 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 01 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 B1 01 00 00 5E 04 04 00 B1 01 00 00 57 04 04 00 B2 01 00 00 19 04 04 00 00 00 00 00 90 00 81 [18: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 01 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 B1 01 00 00 5E 04 04 00 B1 01 00 00 57 04 04 00 B2 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:25:46]wFMCommunicate OK [18:25:46]SAM_PROTO_GetFieldsCounters done [18:25:46]requested_item shift.num is exist - process it [18:25:46]requested_item shift.opened is exist - process it [18:25:46]req_shift_opened [18:25:46]FM_GetShiftState [18:25:46]SAM_PROTO_GetShiftState [18:25:46]wFMCommunicate request_size=4 [18:25:46]MH_SAM_APDU [18:25:46]CAPDU: 80 13 01 00 [18:25:46]Write to MH i2c: E2 08 00 19 1A 80 13 01 00 00 00 00 00 B0 [18:25:46]Write i2c OK [18:25:46]MH_I2C_Read... [18:25:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:46]Read from MH i2c: E2 [18:25:46]MH_I2C_Read... [18:25:46]Read from MH i2c: E2 0E 00 [18:25:46]MH_I2C_Read... [18:25:46]Read from MH i2c: E2 0E 00 19 1A 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 CA [18:25:46]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:25:46]wFMCommunicate OK [18:25:46]SAM_PROTO_GetShiftState done [18:25:46]FM_GetShiftState done [18:25:46]req_shift_opened done [18:25:46]requested_item shift.open_date is exist - process it [18:25:46]req_shift_open_date [18:25:46]req_shift_open_date done [18:25:46]produce_requested_data done [18:25:46]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227585,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [18:25:46]process_action_free close_receipt [18:25:46]json_value_free [18:25:46]json_value_free done [18:25:46]process_json_proto returns [18:25:46]Send response to host [18:25:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227585,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [18:25:46]free response buf [18:25:46]execute_script done [18:25:46]execute_script returns [18:25:46]free content buf [18:25:46]Sock 7.Close socket [18:25:46]Sock 7.Thread stoped [18:25:46]OFD Sender: No OFD packet to send [18:25:51]OFD Sender: No OFD packet to send [18:25:56]OFD Sender: No OFD packet to send [18:26:01]OFD Sender: No OFD packet to send [18:26:06]OFD Sender: No OFD packet to send [18:26:11]OFD Sender: No OFD packet to send [18:26:12]accept exits with 9 [18:26:12]New connection [18:26:12]New thread 3067219300 created [18:26:12]Thread 3067362660 joined [18:26:12]Waiting for new connection... [18:26:12] Sock 9.Parse request [18:26:12]Sock 9.Check first char [18:26:12]Sock 9.First char is OK [18:26:12]request: POST /json_proto HTTP/1.0 [18:26:12]Method: POST [18:26:12]URL: /json_proto [18:26:12]Method is POST - this is cgi request [18:26:12]url: /json_proto [18:26:12]query_string will be loaded in cgi processing [18:26:12]execute_cgi json_proto POST (null) [18:26:12]execute_cgi path=json_proto method=POST [18:26:12]POST find Content-Length [18:26:12]Host: 172.17.44.195:8080 [18:26:12]Content-Length: 679 [18:26:12]Content-Type: application/json [18:26:12] [18:26:12]POST finish read [18:26:12]Found Content-Length = 679 [18:26:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963222", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 12.130, "sum" : 900.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:26:12]execute_script... [18: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)1963222", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 12.130, "sum" : 900.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:26:12]POST & json_proto [18:26:12]process_json_proto [18:26:12]json parsed OK: [18:26:12]protocol is kg_v1.0 [18:26:12]action value=close_receipt [18:26:12]process_action close_receipt [18:26:12]cmd_close_receipt [18:26:12]MH_GetDate [18:26:12]Write to MH i2c: F0 00 00 1A 1A 23 [18:26:12]Write i2c OK [18:26:12]MH_I2C_Read... [18:26:12]Read from MH i2c: F0 [18:26:12]MH_I2C_Read... [18:26:12]Read from MH i2c: F0 09 00 [18:26:12]MH_I2C_Read... [18:26:12]Read from MH i2c: F0 09 00 1A 1A 00 46 4B 15 67 82 C9 CF 66 B9 [18:26:12]GetLastDocTimeStamp 1729448745 [18:26:12]current date 1729448774 [18:26:12]FM_GetShiftState [18:26:12]SAM_PROTO_GetShiftState [18:26:12]wFMCommunicate request_size=4 [18:26:12]MH_SAM_APDU [18:26:12]CAPDU: 80 13 01 00 [18:26:12]Write to MH i2c: E2 08 00 1B 1A 80 13 01 00 00 00 00 00 B2 [18:26:12]Write i2c OK [18:26:12]MH_I2C_Read... [18:26:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:26:12]Read from MH i2c: E2 [18:26:12]MH_I2C_Read... [18:26:12]Read from MH i2c: E2 0E 00 [18:26:12]MH_I2C_Read... [18:26:12]Read from MH i2c: E2 0E 00 1B 1A 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 CC [18:26:12]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:26:12]wFMCommunicate OK [18:26:12]SAM_PROTO_GetShiftState done [18:26:12]FM_GetShiftState done [18:26:12]opened in 1729383750 [18:26:12]opened+sec_in_day 1729470150 [18:26:12]quantity*price = 90004 [18:26:12]sum+1 = 90006 [18:26:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.96 НДС 12% : 95.58 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 434 20.10.2024 18:26 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227586 ФПД: 62427971874984 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T182614&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227586&fm=62427971874984&tin=02508201610067®Number=0000000000091685&sum=90000 [18:26:13]StoreToDocumentArchive [18:26:13]shift 533 fd 227586 [18:26:13]save to /storage/0533/doc_00227586 [18:26:13]save last doc name /storage/0533/doc_00227586 to /storage/kkm_last_doc_name [18:26:13]save OK [18:26:13]Clear old archive folders... [18:26:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:26:13]tlvbuf is 00D85430 [18:26:13]SAM_PROTO_ClearQueue [18:26:13]wFMCommunicate request_size=4 [18:26:13]MH_SAM_APDU [18:26:13]CAPDU: 80 09 00 00 [18:26:13]Write to MH i2c: E2 08 00 28 1A 80 09 00 00 00 00 00 00 B4 [18:26:13]Write i2c OK [18:26:13]MH_I2C_Read... [18:26:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:26:14]Read from MH i2c: E2 [18:26:14]MH_I2C_Read... [18:26:14]Read from MH i2c: E2 03 00 [18:26:14]MH_I2C_Read... [18:26:14]Read from MH i2c: E2 03 00 28 1A 00 90 00 B6 [18:26:14]RAPDU: 90 00 [18:26:14]wFMCommunicate OK [18:26:14]SAM_PROTO_ClearQueue done [18:26:14]KKMCreateOFDPacket [18:26:14]OFDProtocolAddRootSTLVToBuf [18:26:14]FM_MakeSignedData [18:26:14]FM_MakeSignedData [18:26:14]SAM_PROTO_SignData [18:26:14]wFMCommunicate request_size=4 [18:26:14]MH_SAM_APDU [18:26:14]CAPDU: 80 0D 01 02 [18:26:14]Write to MH i2c: E2 08 00 29 1A 80 0D 01 02 00 00 00 00 BC [18:26:14]Write i2c OK [18:26:14]MH_I2C_Read... [18:26:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:26:14]Read from MH i2c: E2 [18:26:14]MH_I2C_Read... [18:26:14]Read from MH i2c: E2 03 00 [18:26:14]MH_I2C_Read... [18:26:14]Read from MH i2c: E2 03 00 29 1A 00 90 00 B7 [18:26:14]RAPDU: 90 00 [18:26:14]wFMCommunicate OK [18:26:14]wFMCommunicate request_size=255 [18:26:14]MH_SAM_APDU [18: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 62 2F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 95 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 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 01 00 00 F4 03 04 00 46 4B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 02 79 03 00 35 04 06 00 38 [18:26:14]Write to MH i2c: E2 02 01 2A 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 62 2F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 95 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 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 01 00 00 F4 03 04 00 46 4B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 02 79 03 00 35 04 06 00 38 00 00 77 [18:26:14]Write i2c OK [18:26:14]MH_I2C_Read... [18:26:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:26:14]Read from MH i2c: E2 [18:26:14]MH_I2C_Read... [18:26:14]Read from MH i2c: E2 03 00 [18:26:14]MH_I2C_Read... [18:26:14]Read from MH i2c: E2 03 00 2A 1A 00 90 00 B8 [18:26:14]RAPDU: 90 00 [18:26:14]wFMCommunicate OK [18:26:14]wFMCommunicate request_size=10 [18:26:14]MH_SAM_APDU [18:26:14]CAPDU: 80 0D 02 02 05 C7 25 16 70 A8 [18:26:14]Write to MH i2c: E2 0D 00 2B 1A 80 0D 02 02 05 00 C7 25 16 70 A8 00 00 E3 [18:26:14]Write i2c OK [18:26:14]MH_I2C_Read... [18:26:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:26:14]Read from MH i2c: E2 [18:26:14]MH_I2C_Read... [18:26:14]Read from MH i2c: E2 03 00 [18:26:14]MH_I2C_Read... [18:26:14]Read from MH i2c: E2 03 00 2B 1A 00 90 00 B9 [18:26:14]RAPDU: 90 00 [18:26:14]wFMCommunicate OK [18:26:14]wFMCommunicate request_size=4 [18:26:14]MH_SAM_APDU [18:26:14]CAPDU: 80 0D 03 02 [18:26:14]Write to MH i2c: E2 08 00 2C 1A 80 0D 03 02 00 00 00 00 C1 [18:26:14]Write i2c OK [18:26:14]MH_I2C_Read... [18:26:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:26:14]Read from MH i2c: E2 [18:26:14]MH_I2C_Read... [18:26:14]Read from MH i2c: E2 0B 00 [18:26:14]MH_I2C_Read... [18:26:14]Read from MH i2c: E2 0B 00 2C 1A 00 3A 04 08 84 6D 45 C7 A5 90 00 AA [18:26:14]RAPDU: 3A 04 08 84 6D 45 C7 A5 90 00 [18:26:14]wFMCommunicate OK [18:26:14]SAM_PROTO_SignData done [18:26:14]FM_MakeSignedData done [18:26:14]CreateOFDProtocolMessage [18:26:14]wFMCommunicate request_size=4 [18:26:14]MH_SAM_APDU [18:26:14]CAPDU: 80 11 00 00 [18:26:14]Write to MH i2c: E2 08 00 2D 1A 80 11 00 00 00 00 00 00 C1 [18:26:14]Write i2c OK [18:26:14]MH_I2C_Read... [18:26:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:26:14]Read from MH i2c: E2 [18:26:14]MH_I2C_Read... [18:26:14]Read from MH i2c: E2 17 00 [18:26:14]MH_I2C_Read... [18:26:14]Read from MH i2c: E2 17 00 2D 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 18 [18:26:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:26:14]wFMCommunicate OK [18:26:14]CreateOFDProtocolMessage done [18:26:14]OFDSenderStorePacket 227586 [18:26:14]StoreOFDPacket docnum=227586 [18:26:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 6B 0D 07 01 F6 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 62 2F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 95 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 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 01 00 00 F4 03 04 00 46 4B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 02 79 03 00 35 04 06 00 38 C7 25 16 70 A8 3A 04 08 84 6D 45 C7 A5 [18:26:14]CheckFolder [18:26:14]dirname=/storage/ofd_packets [18:26:14]CheckFolder done [18:26:14]ProducePacketName [18:26:14]name=ofd_packets/00227586 [18:26:14]NVStorageSaveData ofd_packets/00227586 [18:26:14]File name is /storage/ofd_packets/00227586 [18:26:14]Write 301 bytes [18:26:14]NVStorageSaveData done [18:26:14]OFDSenderStorePacket done [18:26:14]KKMCreateOFDPacket done [18:26:14]NVStorageSaveData kkm_last_timestamp [18:26:14]File name is /storage/kkm_last_timestamp [18:26:14]Write 4 bytes [18:26:14]NVStorageSaveData done [18:26:14]ExternCall_PrintAddStr [18:26:14]wPrintStart [18:26:14]Write to MH i2c: 01 00 00 2E 1A 48 [18:26:14]Write i2c OK [18:26:14]MH_I2C_Read... [18:26:14]Read from MH i2c: 01 [18:26:14]MH_I2C_Read... [18:26:14]Read from MH i2c: 01 07 00 [18:26:14]MH_I2C_Read... [18:26:14]Read from MH i2c: 01 07 00 2E 1A 00 00 00 00 00 FF 0F 5D [18:26:14]RasterBufferAndPrint [18:26:14]line Счет N : (1)1963222 [18:26:14]line ИНН: 02508201610067 [18:26:14]line Контрольно-Кассовый Чек [18:26:14]line ПРОДАЖА [18:26:14]line ТРК (МРК, ГНК) : 44 [18:26:14]line Товар: 2710124500 [18:26:14]line Аи-95-К-5 [18:26:14]line 12.130 * 74.20 [18:26:14]line = 900.05 [18:26:14]line НДС 12% НСП 1% [18:26:14]line > о реализуемом товаре [18:26:14]line ОКРУГЛЕНИЕ: -0.05 [18:26:14]line ИТОГО: 900.00 [18:26:14]line Внесено: 900.00 [18:26:14]line СДАЧА: 0.00 [18:26:14]line НСП 1% : 7.96 [18:26:14]line НДС 12% : 95.58 [18:26:14]line Наличными: 900.00 [18:26:14]line Безнал.: 0.00 [18:26:14]line Место: АЗС № 133 "Партнер Нефть" [18:26:14]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:26:14]line СНО: Общий режим [18:26:14]line Чек 434 20.10.2024 18:26 [18:26:14]line Смена: 533 ФФД: 1.0 [18:26:14]line ЗНМ: 0300000091 [18:26:14]line РНМ: 0000000000091685 [18:26:14]line Версия ККМ: 001 [18:26:14]line ФМ: 0000000000871839 [18:26:14]line ФД: 227586 [18:26:14]line ФПД: 62427971874984 [18:26:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T182614&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227586&fm=62427971874984&tin=02508201610067®Number=0000000000091685&sum=90000 [18:26:14]OFD Sender: Processing packet 227586 [packets to send 38, broken 37] [18:26:14]ProducePacketName [18:26:14]name=ofd_packets/00227586 [18:26:14]OFD Sender: To server: pG, [18:26:14]CommunicateWithHost lk.salyk.kg:30040 [18:26:14]ConnectInit lk.salyk.kg [18:26:14]written 0, free lines is 4095 [18:26:14]Connected sock=10 [18: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 33 39 0F 01 00 00 6B 0D 07 01 F6 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 62 2F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 95 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 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 01 00 00 F4 03 04 00 46 4B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 02 79 03 00 35 04 06 00 38 C7 25 16 70 A8 3A 04 08 84 6D 45 C7 A5 [18: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 33 39 4F 00 00 00 43 61 47 00 30 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 33 39 10 04 04 00 02 79 03 00 F4 03 04 00 44 F6 14 67 B6 04 01 00 00 EC EB 92 BC C1 0D 79 B3 [18:26:15]CommunicateWithHost err = 0 [18:26:15]CheckOFDResponse [18:26:15]1017 (14) - 77093643461234 [18:26:15]1041 (16) - 0000000000871839 [18:26:15]1040 (4) - 227586 [18:26:15]1012 (4) - 20.10.2024 12:23 [18:26:15]1206 (1) - 0 [18:26:15]OFD Sender: Remove packet 227586 [18:26:15]ProducePacketName [18:26:15]name=ofd_packets/00227586 [18:26:15]NVStorageDeleteData [18:26:15]Write to MH i2c: 01 00 00 58 1A 72 [18:26:15]Write i2c OK [18:26:15]MH_I2C_Read... [18:26:15]Read from MH i2c: 01 [18:26:15]MH_I2C_Read... [18:26:15]Read from MH i2c: 01 07 00 [18:26:15]MH_I2C_Read... [18:26:15]Read from MH i2c: 01 07 00 58 1A 00 00 00 00 00 0E 0D 94 [18:26:15]RasterBufferAndPrint [18:26:15]line [18:26:15]line [18:26:15]line [18:26:15]line [18:26:15]line [18:26:15]written 0, free lines is 3352 [18:26:15]process_action close_receipt done [18:26:15]requested_data is exist [18:26:15]produce_requested_data [18:26:15]requested_item fm.sn is exist - process it [18:26:15]wFMCommunicate request_size=4 [18:26:15]MH_SAM_APDU [18:26:15]CAPDU: 80 11 00 00 [18:26:15]Write to MH i2c: E2 08 00 5F 1A 80 11 00 00 00 00 00 00 F3 [18:26:15]Write i2c OK [18:26:15]MH_I2C_Read... [18:26:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:26:15]Read from MH i2c: E2 [18:26:15]MH_I2C_Read... [18:26:15]Read from MH i2c: E2 17 00 [18:26:15]MH_I2C_Read... [18:26:15]Read from MH i2c: E2 17 00 5F 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 4A [18:26:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:26:15]wFMCommunicate OK [18:26:15]requested_item fd.num is exist - process it [18:26:15]SAM_PROTO_GetFieldsCounters [18:26:15]wFMCommunicate request_size=4 [18:26:15]MH_SAM_APDU [18:26:15]CAPDU: 80 13 00 00 [18:26:15]Write to MH i2c: E2 08 00 60 1A 80 13 00 00 00 00 00 00 F6 [18:26:15]Write i2c OK [18:26:15]MH_I2C_Read... [18:26:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:26:15]Read from MH i2c: E2 [18:26:15]MH_I2C_Read... [18:26:15]Read from MH i2c: E2 62 00 [18:26:15]MH_I2C_Read... [18:26:15]Read from MH i2c: E2 62 00 60 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 02 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 B2 01 00 00 5E 04 04 00 B2 01 00 00 57 04 04 00 B3 01 00 00 19 04 04 00 00 00 00 00 90 00 CD [18:26: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 02 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 B2 01 00 00 5E 04 04 00 B2 01 00 00 57 04 04 00 B3 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:26:15]wFMCommunicate OK [18:26:15]SAM_PROTO_GetFieldsCounters done [18:26:15]requested_item shift.num is exist - process it [18:26:15]requested_item shift.opened is exist - process it [18:26:15]req_shift_opened [18:26:15]FM_GetShiftState [18:26:15]SAM_PROTO_GetShiftState [18:26:15]wFMCommunicate request_size=4 [18:26:15]MH_SAM_APDU [18:26:15]CAPDU: 80 13 01 00 [18:26:15]Write to MH i2c: E2 08 00 61 1A 80 13 01 00 00 00 00 00 F8 [18:26:15]Write i2c OK [18:26:15]MH_I2C_Read... [18:26:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:26:15]Read from MH i2c: E2 [18:26:15]MH_I2C_Read... [18:26:15]Read from MH i2c: E2 0E 00 [18:26:15]MH_I2C_Read... [18:26:15]Read from MH i2c: E2 0E 00 61 1A 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 12 [18:26:15]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:26:15]wFMCommunicate OK [18:26:15]SAM_PROTO_GetShiftState done [18:26:15]FM_GetShiftState done [18:26:15]req_shift_opened done [18:26:15]requested_item shift.open_date is exist - process it [18:26:15]req_shift_open_date [18:26:15]req_shift_open_date done [18:26:15]produce_requested_data done [18:26:15]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227586,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [18:26:15]process_action_free close_receipt [18:26:15]json_value_free [18:26:15]json_value_free done [18:26:15]process_json_proto returns [18:26:15]Send response to host [18:26:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227586,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [18:26:15]free response buf [18:26:15]execute_script done [18:26:15]execute_script returns [18:26:15]free content buf [18:26:15]Sock 9.Close socket [18:26:15]Sock 9.Thread stoped [18:26:15]OFD Sender: No OFD packet to send [18:26:20]OFD Sender: No OFD packet to send [18:26:25]OFD Sender: No OFD packet to send [18:26:30]OFD Sender: No OFD packet to send [18:26:35]OFD Sender: No OFD packet to send [18:26:40]OFD Sender: No OFD packet to send [18:26:45]OFD Sender: No OFD packet to send [18:26:50]OFD Sender: No OFD packet to send [18:26:55]OFD Sender: No OFD packet to send [18:27:00]OFD Sender: No OFD packet to send [18:27:05]OFD Sender: No OFD packet to send [18:27:10]OFD Sender: No OFD packet to send [18:27:14]accept exits with 7 [18:27:14]New connection [18:27:14]New thread 3067362660 created [18:27:14]Thread 3067219300 joined [18:27:14]Waiting for new connection... [18:27:14] Sock 7.Parse request [18:27:14]Sock 7.Check first char [18:27:14]Sock 7.First char is OK [18:27:14]request: POST /json_proto HTTP/1.0 [18:27:14]Method: POST [18:27:14]URL: /json_proto [18:27:14]Method is POST - this is cgi request [18:27:14]url: /json_proto [18:27:14]query_string will be loaded in cgi processing [18:27:14]execute_cgi json_proto POST (null) [18:27:14]execute_cgi path=json_proto method=POST [18:27:14]POST find Content-Length [18:27:14]Host: 172.17.44.195:8080 [18:27:14]Content-Length: 664 [18:27:14]Content-Type: application/json [18:27:14] [18:27:14]POST finish read [18:27:14]Found Content-Length = 664 [18:27:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963223", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:27:14]execute_script... [18:27: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)1963223", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:27:14]POST & json_proto [18:27:14]process_json_proto [18:27:14]json parsed OK: [18:27:14]protocol is kg_v1.0 [18:27:14]action value=close_receipt [18:27:14]process_action close_receipt [18:27:14]cmd_close_receipt [18:27:14]MH_GetDate [18:27:14]Write to MH i2c: F0 00 00 62 1A 6B [18:27:14]Write i2c OK [18:27:14]MH_I2C_Read... [18:27:14]Read from MH i2c: F0 [18:27:14]MH_I2C_Read... [18:27:14]Read from MH i2c: F0 09 00 [18:27:14]MH_I2C_Read... [18:27:14]Read from MH i2c: F0 09 00 62 1A 00 83 4B 15 67 82 C9 CF 66 3E [18:27:14]GetLastDocTimeStamp 1729448774 [18:27:14]current date 1729448835 [18:27:14]FM_GetShiftState [18:27:14]SAM_PROTO_GetShiftState [18:27:14]wFMCommunicate request_size=4 [18:27:14]MH_SAM_APDU [18:27:14]CAPDU: 80 13 01 00 [18:27:14]Write to MH i2c: E2 08 00 63 1A 80 13 01 00 00 00 00 00 FA [18:27:14]Write i2c OK [18:27:14]MH_I2C_Read... [18:27:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:14]Read from MH i2c: E2 [18:27:14]MH_I2C_Read... [18:27:14]Read from MH i2c: E2 0E 00 [18:27:14]MH_I2C_Read... [18:27:14]Read from MH i2c: E2 0E 00 63 1A 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 14 [18:27:14]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:27:14]wFMCommunicate OK [18:27:14]SAM_PROTO_GetShiftState done [18:27:14]FM_GetShiftState done [18:27:14]opened in 1729383750 [18:27:14]opened+sec_in_day 1729470150 [18:27:14]quantity*price = 100000 [18:27:14]sum+1 = 100002 [18:27:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 435 20.10.2024 18:27 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227587 ФПД: 102000834337885 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T182715&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227587&fm=102000834337885&tin=02508201610067®Number=0000000000091685&sum=100000 [18:27:15]StoreToDocumentArchive [18:27:15]shift 533 fd 227587 [18:27:15]save to /storage/0533/doc_00227587 [18:27:15]save last doc name /storage/0533/doc_00227587 to /storage/kkm_last_doc_name [18:27:15]save OK [18:27:15]Clear old archive folders... [18:27:15]ProcessDocumentItem done err = 0, tmpTLVsize=244 [18:27:15]tlvbuf is B6F258F0 [18:27:15]SAM_PROTO_ClearQueue [18:27:15]wFMCommunicate request_size=4 [18:27:15]MH_SAM_APDU [18:27:15]CAPDU: 80 09 00 00 [18:27:15]Write to MH i2c: E2 08 00 70 1A 80 09 00 00 00 00 00 00 FC [18:27:15]Write i2c OK [18:27:15]MH_I2C_Read... [18:27:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:27:15]Read from MH i2c: E2 [18:27:15]MH_I2C_Read... [18:27:15]Read from MH i2c: E2 03 00 [18:27:15]MH_I2C_Read... [18:27:15]Read from MH i2c: E2 03 00 70 1A 00 90 00 FE [18:27:15]RAPDU: 90 00 [18:27:15]wFMCommunicate OK [18:27:15]SAM_PROTO_ClearQueue done [18:27:15]KKMCreateOFDPacket [18:27:15]OFDProtocolAddRootSTLVToBuf [18:27:15]FM_MakeSignedData [18:27:15]FM_MakeSignedData [18:27:15]SAM_PROTO_SignData [18:27:15]wFMCommunicate request_size=4 [18:27:15]MH_SAM_APDU [18:27:15]CAPDU: 80 0D 01 02 [18:27:15]Write to MH i2c: E2 08 00 71 1A 80 0D 01 02 00 00 00 00 04 [18:27:15]Write i2c OK [18:27:15]MH_I2C_Read... [18:27:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:27:15]Read from MH i2c: E2 [18:27:15]MH_I2C_Read... [18:27:15]Read from MH i2c: E2 03 00 [18:27:15]MH_I2C_Read... [18:27:15]Read from MH i2c: E2 03 00 71 1A 00 90 00 FF [18:27:15]RAPDU: 90 00 [18:27:15]wFMCommunicate OK [18:27:15]wFMCommunicate request_size=253 [18:27:15]MH_SAM_APDU [18:27:15]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 01 00 00 F4 03 04 00 83 4B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 03 79 03 00 35 04 06 00 5C C4 EB 7F 5C 5D [18:27:15]Write to MH i2c: E2 00 01 72 1A 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 01 00 00 F4 03 04 00 83 4B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 03 79 03 00 35 04 06 00 5C C4 EB 7F 5C 5D 00 00 55 [18:27:15]Write i2c OK [18:27:15]MH_I2C_Read... [18:27:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:15]Read from MH i2c: E2 [18:27:15]MH_I2C_Read... [18:27:15]Read from MH i2c: E2 03 00 [18:27:15]MH_I2C_Read... [18:27:15]Read from MH i2c: E2 03 00 72 1A 00 90 00 00 [18:27:15]RAPDU: 90 00 [18:27:15]wFMCommunicate OK [18:27:15]wFMCommunicate request_size=4 [18:27:15]MH_SAM_APDU [18:27:15]CAPDU: 80 0D 03 02 [18:27:15]Write to MH i2c: E2 08 00 73 1A 80 0D 03 02 00 00 00 00 08 [18:27:15]Write i2c OK [18:27:15]MH_I2C_Read... [18:27:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:27:15]Read from MH i2c: E2 [18:27:15]MH_I2C_Read... [18:27:15]Read from MH i2c: E2 0B 00 [18:27:15]MH_I2C_Read... [18:27:15]Read from MH i2c: E2 0B 00 73 1A 00 1D 64 51 B0 5A 92 9C D3 90 00 E6 [18:27:15]RAPDU: 1D 64 51 B0 5A 92 9C D3 90 00 [18:27:15]wFMCommunicate OK [18:27:15]SAM_PROTO_SignData done [18:27:15]FM_MakeSignedData done [18:27:15]CreateOFDProtocolMessage [18:27:15]wFMCommunicate request_size=4 [18:27:15]MH_SAM_APDU [18:27:15]CAPDU: 80 11 00 00 [18:27:15]Write to MH i2c: E2 08 00 74 1A 80 11 00 00 00 00 00 00 08 [18:27:15]Write i2c OK [18:27:15]MH_I2C_Read... [18:27:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:15]Read from MH i2c: E2 [18:27:15]MH_I2C_Read... [18:27:15]Read from MH i2c: E2 17 00 [18:27:15]MH_I2C_Read... [18:27:15]Read from MH i2c: E2 17 00 74 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 5F [18:27:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:27:15]wFMCommunicate OK [18:27:15]CreateOFDProtocolMessage done [18:27:15]OFDSenderStorePacket 227587 [18:27:15]StoreOFDPacket docnum=227587 [18:27:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 1C 09 00 01 4F 6A 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 01 00 00 F4 03 04 00 83 4B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 03 79 03 00 35 04 06 00 5C C4 EB 7F 5C 5D 1D 64 51 B0 5A 92 9C D3 [18:27:15]CheckFolder [18:27:15]dirname=/storage/ofd_packets [18:27:15]CheckFolder done [18:27:15]ProducePacketName [18:27:15]name=ofd_packets/00227587 [18:27:15]NVStorageSaveData ofd_packets/00227587 [18:27:15]File name is /storage/ofd_packets/00227587 [18:27:15]Write 294 bytes [18:27:15]NVStorageSaveData done [18:27:15]OFDSenderStorePacket done [18:27:15]KKMCreateOFDPacket done [18:27:15]NVStorageSaveData kkm_last_timestamp [18:27:15]File name is /storage/kkm_last_timestamp [18:27:15]Write 4 bytes [18:27:15]NVStorageSaveData done [18:27:15]ExternCall_PrintAddStr [18:27:15]wPrintStart [18:27:15]Write to MH i2c: 01 00 00 75 1A 8F [18:27:15]Write i2c OK [18:27:15]MH_I2C_Read... [18:27:15]Read from MH i2c: 01 [18:27:15]MH_I2C_Read... [18:27:15]Read from MH i2c: 01 07 00 [18:27:15]MH_I2C_Read... [18:27:15]Read from MH i2c: 01 07 00 75 1A 00 00 00 00 00 FF 0F A4 [18:27:15]RasterBufferAndPrint [18:27:15]line Счет N : (1)1963223 [18:27:15]line ИНН: 02508201610067 [18:27:15]line Контрольно-Кассовый Чек [18:27:15]line ПРОДАЖА [18:27:15]line ТРК (МРК, ГНК) : 32 [18:27:15]line Товар: 2710124130 [18:27:15]line SU-92 [18:27:15]line 14.620 * 68.40 [18:27:15]line = 1000.01 [18:27:15]line НДС 12% НСП 1% [18:27:15]line > о реализуемом товаре [18:27:15]line ОКРУГЛЕНИЕ: -0.01 [18:27:15]line ИТОГО: 1000.00 [18:27:15]line Внесено: 1000.00 [18:27:15]line СДАЧА: 0.00 [18:27:15]line НСП 1% : 8.85 [18:27:15]line НДС 12% : 106.20 [18:27:15]line Наличными: 1000.00 [18:27:15]line Безнал.: 0.00 [18:27:15]line Место: АЗС № 133 "Партнер Нефть" [18:27:15]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:27:15]line СНО: Общий режим [18:27:15]line Чек 435 20.10.2024 18:27 [18:27:15]line Смена: 533 ФФД: 1.0 [18:27:15]line ЗНМ: 0300000091 [18:27:15]line РНМ: 0000000000091685 [18:27:15]line Версия ККМ: 001 [18:27:15]line ФМ: 0000000000871839 [18:27:15]line ФД: 227587 [18:27:15]line ФПД: 102000834337885 [18:27:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T182715&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227587&fm=102000834337885&tin=02508201610067®Number=0000000000091685&sum=100000 [18:27:16]OFD Sender: Processing packet 227587 [packets to send 38, broken 37] [18:27:16]ProducePacketName [18:27:16]name=ofd_packets/00227587 [18:27:16]OFD Sender: To server: pG, [18:27:16]CommunicateWithHost lk.salyk.kg:30040 [18:27:16]ConnectInit lk.salyk.kg [18:27:16]written 0, free lines is 4095 [18:27:16]Connected sock=10 [18:27: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 33 39 08 01 00 00 1C 09 00 01 4F 6A 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 01 00 00 F4 03 04 00 83 4B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 03 79 03 00 35 04 06 00 5C C4 EB 7F 5C 5D 1D 64 51 B0 5A 92 9C D3 [18:27: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 33 39 4F 00 00 00 0E E6 47 00 0B 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 03 79 03 00 F4 03 04 00 81 F6 14 67 B6 04 01 00 00 F3 C0 61 54 4F 6C C3 F3 [18:27:16]CommunicateWithHost err = 0 [18:27:16]CheckOFDResponse [18:27:16]1017 (14) - 77093643461234 [18:27:16]1041 (16) - 0000000000871839 [18:27:16]1040 (4) - 227587 [18:27:16]1012 (4) - 20.10.2024 12:24 [18:27:16]1206 (1) - 0 [18:27:16]OFD Sender: Remove packet 227587 [18:27:16]ProducePacketName [18:27:16]name=ofd_packets/00227587 [18:27:16]NVStorageDeleteData [18:27:16]Write to MH i2c: 01 00 00 9F 1A B9 [18:27:16]Write i2c OK [18:27:16]MH_I2C_Read... [18:27:16]Read from MH i2c: 01 [18:27:16]MH_I2C_Read... [18:27:16]Read from MH i2c: 01 07 00 [18:27:16]MH_I2C_Read... [18:27:16]Read from MH i2c: 01 07 00 9F 1A 00 00 00 00 00 17 0D E4 [18:27:16]RasterBufferAndPrint [18:27:16]line [18:27:16]line [18:27:16]line [18:27:16]line [18:27:16]line [18:27:16]written 0, free lines is 3357 [18:27:16]process_action close_receipt done [18:27:16]requested_data is exist [18:27:16]produce_requested_data [18:27:16]requested_item fm.sn is exist - process it [18:27:16]wFMCommunicate request_size=4 [18:27:16]MH_SAM_APDU [18:27:16]CAPDU: 80 11 00 00 [18:27:16]Write to MH i2c: E2 08 00 A6 1A 80 11 00 00 00 00 00 00 3A [18:27:16]Write i2c OK [18:27:16]MH_I2C_Read... [18:27:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:16]Read from MH i2c: E2 [18:27:16]MH_I2C_Read... [18:27:16]Read from MH i2c: E2 17 00 [18:27:16]MH_I2C_Read... [18:27:16]Read from MH i2c: E2 17 00 A6 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 91 [18:27:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:27:16]wFMCommunicate OK [18:27:16]requested_item fd.num is exist - process it [18:27:16]SAM_PROTO_GetFieldsCounters [18:27:16]wFMCommunicate request_size=4 [18:27:16]MH_SAM_APDU [18:27:16]CAPDU: 80 13 00 00 [18:27:16]Write to MH i2c: E2 08 00 A7 1A 80 13 00 00 00 00 00 00 3D [18:27:16]Write i2c OK [18:27:16]MH_I2C_Read... [18:27:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:27:16]Read from MH i2c: E2 [18:27:16]MH_I2C_Read... [18:27:16]Read from MH i2c: E2 62 00 [18:27:16]MH_I2C_Read... [18:27:16]Read from MH i2c: E2 62 00 A7 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 03 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 B3 01 00 00 5E 04 04 00 B3 01 00 00 57 04 04 00 B4 01 00 00 19 04 04 00 00 00 00 00 90 00 18 [18:27: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 03 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 B3 01 00 00 5E 04 04 00 B3 01 00 00 57 04 04 00 B4 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:27:16]wFMCommunicate OK [18:27:16]SAM_PROTO_GetFieldsCounters done [18:27:16]requested_item shift.num is exist - process it [18:27:16]requested_item shift.opened is exist - process it [18:27:16]req_shift_opened [18:27:16]FM_GetShiftState [18:27:16]SAM_PROTO_GetShiftState [18:27:16]wFMCommunicate request_size=4 [18:27:16]MH_SAM_APDU [18:27:16]CAPDU: 80 13 01 00 [18:27:16]Write to MH i2c: E2 08 00 A8 1A 80 13 01 00 00 00 00 00 3F [18:27:16]Write i2c OK [18:27:16]MH_I2C_Read... [18:27:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:16]Read from MH i2c: E2 [18:27:16]MH_I2C_Read... [18:27:16]Read from MH i2c: E2 0E 00 [18:27:16]MH_I2C_Read... [18:27:16]Read from MH i2c: E2 0E 00 A8 1A 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 59 [18:27:16]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:27:16]wFMCommunicate OK [18:27:16]SAM_PROTO_GetShiftState done [18:27:16]FM_GetShiftState done [18:27:16]req_shift_opened done [18:27:16]requested_item shift.open_date is exist - process it [18:27:16]req_shift_open_date [18:27:16]req_shift_open_date done [18:27:16]produce_requested_data done [18:27:16]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227587,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [18:27:16]process_action_free close_receipt [18:27:16]json_value_free [18:27:16]json_value_free done [18:27:16]process_json_proto returns [18:27:16]Send response to host [18:27:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227587,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [18:27:16]free response buf [18:27:16]execute_script done [18:27:16]execute_script returns [18:27:16]free content buf [18:27:16]Sock 7.Close socket [18:27:16]Sock 7.Thread stoped [18:27:16]OFD Sender: No OFD packet to send [18:27:21]OFD Sender: No OFD packet to send [18:27:26]OFD Sender: No OFD packet to send [18:27:31]OFD Sender: No OFD packet to send [18:27:32]accept exits with 9 [18:27:32]New connection [18:27:32]New thread 3067219300 created [18:27:32]Thread 3067362660 joined [18:27:32]Waiting for new connection... [18:27:32] Sock 9.Parse request [18:27:32]Sock 9.Check first char [18:27:32]Sock 9.First char is OK [18:27:32]request: POST /json_proto HTTP/1.0 [18:27:32]Method: POST [18:27:32]URL: /json_proto [18:27:32]Method is POST - this is cgi request [18:27:32]url: /json_proto [18:27:32]query_string will be loaded in cgi processing [18:27:32]execute_cgi json_proto POST (null) [18:27:32]execute_cgi path=json_proto method=POST [18:27:32]POST find Content-Length [18:27:32]Host: 172.17.44.195:8080 [18:27:32]Content-Length: 678 [18:27:32]Content-Type: application/json [18:27:32] [18:27:32]POST finish read [18:27:32]Found Content-Length = 678 [18:27:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963224", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:27:32]execute_script... [18:27: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)1963224", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:27:32]POST & json_proto [18:27:32]process_json_proto [18:27:32]json parsed OK: [18:27:32]protocol is kg_v1.0 [18:27:32]action value=close_receipt [18:27:32]process_action close_receipt [18:27:32]cmd_close_receipt [18:27:32]MH_GetDate [18:27:32]Write to MH i2c: F0 00 00 A9 1A B2 [18:27:32]Write i2c OK [18:27:32]MH_I2C_Read... [18:27:32]Read from MH i2c: F0 [18:27:32]MH_I2C_Read... [18:27:32]Read from MH i2c: F0 09 00 [18:27:32]MH_I2C_Read... [18:27:32]Read from MH i2c: F0 09 00 A9 1A 00 96 4B 15 67 82 C9 CF 66 98 [18:27:32]GetLastDocTimeStamp 1729448835 [18:27:32]current date 1729448854 [18:27:32]FM_GetShiftState [18:27:32]SAM_PROTO_GetShiftState [18:27:32]wFMCommunicate request_size=4 [18:27:32]MH_SAM_APDU [18:27:32]CAPDU: 80 13 01 00 [18:27:32]Write to MH i2c: E2 08 00 AA 1A 80 13 01 00 00 00 00 00 41 [18:27:32]Write i2c OK [18:27:32]MH_I2C_Read... [18:27:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:32]Read from MH i2c: E2 [18:27:32]MH_I2C_Read... [18:27:32]Read from MH i2c: E2 0E 00 [18:27:32]MH_I2C_Read... [18:27:32]Read from MH i2c: E2 0E 00 AA 1A 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 5B [18:27:32]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:27:32]wFMCommunicate OK [18:27:32]SAM_PROTO_GetShiftState done [18:27:32]FM_GetShiftState done [18:27:32]opened in 1729383750 [18:27:32]opened+sec_in_day 1729470150 [18:27:32]quantity*price = 70044 [18:27:32]sum+1 = 70046 [18:27:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 436 20.10.2024 18:27 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227588 ФПД: 263652796623973 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T182734&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227588&fm=263652796623973&tin=02508201610067®Number=0000000000091685&sum=70000 [18:27:33]StoreToDocumentArchive [18:27:33]shift 533 fd 227588 [18:27:33]save to /storage/0533/doc_00227588 [18:27:33]save last doc name /storage/0533/doc_00227588 to /storage/kkm_last_doc_name [18:27:33]save OK [18:27:33]Clear old archive folders... [18:27:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:27:33]tlvbuf is 00DD2A20 [18:27:33]SAM_PROTO_ClearQueue [18:27:33]wFMCommunicate request_size=4 [18:27:33]MH_SAM_APDU [18:27:33]CAPDU: 80 09 00 00 [18:27:33]Write to MH i2c: E2 08 00 B7 1A 80 09 00 00 00 00 00 00 43 [18:27:33]Write i2c OK [18:27:33]MH_I2C_Read... [18:27:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:27:33]Read from MH i2c: E2 [18:27:33]MH_I2C_Read... [18:27:33]Read from MH i2c: E2 03 00 [18:27:33]MH_I2C_Read... [18:27:33]Read from MH i2c: E2 03 00 B7 1A 00 90 00 45 [18:27:33]RAPDU: 90 00 [18:27:33]wFMCommunicate OK [18:27:33]SAM_PROTO_ClearQueue done [18:27:33]KKMCreateOFDPacket [18:27:33]OFDProtocolAddRootSTLVToBuf [18:27:33]FM_MakeSignedData [18:27:33]FM_MakeSignedData [18:27:33]SAM_PROTO_SignData [18:27:33]wFMCommunicate request_size=4 [18:27:33]MH_SAM_APDU [18:27:33]CAPDU: 80 0D 01 02 [18:27:33]Write to MH i2c: E2 08 00 B8 1A 80 0D 01 02 00 00 00 00 4B [18:27:33]Write i2c OK [18:27:33]MH_I2C_Read... [18:27:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:27:33]Read from MH i2c: E2 [18:27:33]MH_I2C_Read... [18:27:33]Read from MH i2c: E2 03 00 [18:27:33]MH_I2C_Read... [18:27:33]Read from MH i2c: E2 03 00 B8 1A 00 90 00 46 [18:27:33]RAPDU: 90 00 [18:27:33]wFMCommunicate OK [18:27:33]wFMCommunicate request_size=255 [18:27:33]MH_SAM_APDU [18:27: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 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 B4 01 00 00 F4 03 04 00 96 4B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 04 79 03 00 35 04 06 00 EF [18:27:33]Write to MH i2c: E2 02 01 B9 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 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 B4 01 00 00 F4 03 04 00 96 4B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 04 79 03 00 35 04 06 00 EF 00 00 61 [18:27:33]Write i2c OK [18:27:33]MH_I2C_Read... [18:27:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:34]Read from MH i2c: E2 [18:27:34]MH_I2C_Read... [18:27:34]Read from MH i2c: E2 03 00 [18:27:34]MH_I2C_Read... [18:27:34]Read from MH i2c: E2 03 00 B9 1A 00 90 00 47 [18:27:34]RAPDU: 90 00 [18:27:34]wFMCommunicate OK [18:27:34]wFMCommunicate request_size=10 [18:27:34]MH_SAM_APDU [18:27:34]CAPDU: 80 0D 02 02 05 CA 73 49 6C 65 [18:27:34]Write to MH i2c: E2 0D 00 BA 1A 80 0D 02 02 05 00 CA 73 49 6C 65 00 00 AF [18:27:34]Write i2c OK [18:27:34]MH_I2C_Read... [18:27:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:34]Read from MH i2c: E2 [18:27:34]MH_I2C_Read... [18:27:34]Read from MH i2c: E2 03 00 [18:27:34]MH_I2C_Read... [18:27:34]Read from MH i2c: E2 03 00 BA 1A 00 90 00 48 [18:27:34]RAPDU: 90 00 [18:27:34]wFMCommunicate OK [18:27:34]wFMCommunicate request_size=4 [18:27:34]MH_SAM_APDU [18:27:34]CAPDU: 80 0D 03 02 [18:27:34]Write to MH i2c: E2 08 00 BB 1A 80 0D 03 02 00 00 00 00 50 [18:27:34]Write i2c OK [18:27:34]MH_I2C_Read... [18:27:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:27:34]Read from MH i2c: E2 [18:27:34]MH_I2C_Read... [18:27:34]Read from MH i2c: E2 0B 00 [18:27:34]MH_I2C_Read... [18:27:34]Read from MH i2c: E2 0B 00 BB 1A 00 4F 72 CD B0 8E 46 B9 53 90 00 6F [18:27:34]RAPDU: 4F 72 CD B0 8E 46 B9 53 90 00 [18:27:34]wFMCommunicate OK [18:27:34]SAM_PROTO_SignData done [18:27:34]FM_MakeSignedData done [18:27:34]CreateOFDProtocolMessage [18:27:34]wFMCommunicate request_size=4 [18:27:34]MH_SAM_APDU [18:27:34]CAPDU: 80 11 00 00 [18:27:34]Write to MH i2c: E2 08 00 BC 1A 80 11 00 00 00 00 00 00 50 [18:27:34]Write i2c OK [18:27:34]MH_I2C_Read... [18:27:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:34]Read from MH i2c: E2 [18:27:34]MH_I2C_Read... [18:27:34]Read from MH i2c: E2 17 00 [18:27:34]MH_I2C_Read... [18:27:34]Read from MH i2c: E2 17 00 BC 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A7 [18:27:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:27:34]wFMCommunicate OK [18:27:34]CreateOFDProtocolMessage done [18:27:34]OFDSenderStorePacket 227588 [18:27:34]StoreOFDPacket docnum=227588 [18:27:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 D1 22 07 01 DF 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 B4 01 00 00 F4 03 04 00 96 4B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 04 79 03 00 35 04 06 00 EF CA 73 49 6C 65 4F 72 CD B0 8E 46 B9 53 [18:27:34]CheckFolder [18:27:34]dirname=/storage/ofd_packets [18:27:34]CheckFolder done [18:27:34]ProducePacketName [18:27:34]name=ofd_packets/00227588 [18:27:34]NVStorageSaveData ofd_packets/00227588 [18:27:34]File name is /storage/ofd_packets/00227588 [18:27:34]Write 301 bytes [18:27:34]NVStorageSaveData done [18:27:34]OFDSenderStorePacket done [18:27:34]KKMCreateOFDPacket done [18:27:34]NVStorageSaveData kkm_last_timestamp [18:27:34]File name is /storage/kkm_last_timestamp [18:27:34]Write 4 bytes [18:27:34]NVStorageSaveData done [18:27:34]ExternCall_PrintAddStr [18:27:34]wPrintStart [18:27:34]Write to MH i2c: 01 00 00 BD 1A D7 [18:27:34]Write i2c OK [18:27:34]MH_I2C_Read... [18:27:34]Read from MH i2c: 01 [18:27:34]MH_I2C_Read... [18:27:34]Read from MH i2c: 01 07 00 [18:27:34]MH_I2C_Read... [18:27:34]Read from MH i2c: 01 07 00 BD 1A 00 00 00 00 00 FF 0F EC [18:27:34]RasterBufferAndPrint [18:27:34]line Счет N : (1)1963224 [18:27:34]line ИНН: 02508201610067 [18:27:34]line Контрольно-Кассовый Чек [18:27:34]line ПРОДАЖА [18:27:34]line ТРК (МРК, ГНК) : 64 [18:27:34]line Товар: 2710124500 [18:27:34]line Аи-95-К-5 [18:27:34]line 9.440 * 74.20 [18:27:34]line = 700.45 [18:27:34]line НДС 12% НСП 1% [18:27:34]line > о реализуемом товаре [18:27:34]line ОКРУГЛЕНИЕ: -0.45 [18:27:34]line ИТОГО: 700.00 [18:27:34]line Внесено: 700.00 [18:27:34]line СДАЧА: 0.00 [18:27:34]line НСП 1% : 6.20 [18:27:34]line НДС 12% : 74.38 [18:27:34]line Наличными: 700.00 [18:27:34]line Безнал.: 0.00 [18:27:34]line Место: АЗС № 133 "Партнер Нефть" [18:27:34]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:27:34]line СНО: Общий режим [18:27:34]line Чек 436 20.10.2024 18:27 [18:27:34]line Смена: 533 ФФД: 1.0 [18:27:34]line ЗНМ: 0300000091 [18:27:34]line РНМ: 0000000000091685 [18:27:34]line Версия ККМ: 001 [18:27:34]line ФМ: 0000000000871839 [18:27:34]line ФД: 227588 [18:27:34]line ФПД: 263652796623973 [18:27:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T182734&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227588&fm=263652796623973&tin=02508201610067®Number=0000000000091685&sum=70000 [18:27:34]OFD Sender: Processing packet 227588 [packets to send 38, broken 37] [18:27:34]ProducePacketName [18:27:34]name=ofd_packets/00227588 [18:27:34]OFD Sender: To server: pG, [18:27:34]CommunicateWithHost lk.salyk.kg:30040 [18:27:34]ConnectInit lk.salyk.kg [18:27:34]written 0, free lines is 4095 [18:27:34]Connected sock=10 [18:27: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 33 39 0F 01 00 00 D1 22 07 01 DF 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 B4 01 00 00 F4 03 04 00 96 4B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 04 79 03 00 35 04 06 00 EF CA 73 49 6C 65 4F 72 CD B0 8E 46 B9 53 [18:27: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 33 39 4F 00 00 00 E6 2A 47 00 09 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 33 39 10 04 04 00 04 79 03 00 F4 03 04 00 94 F6 14 67 B6 04 01 00 00 F3 05 17 0C 6C 0A E1 9C [18:27:34]CommunicateWithHost err = 0 [18:27:34]CheckOFDResponse [18:27:34]1017 (14) - 77093643461234 [18:27:34]1041 (16) - 0000000000871839 [18:27:34]1040 (4) - 227588 [18:27:34]1012 (4) - 20.10.2024 12:24 [18:27:34]1206 (1) - 0 [18:27:34]OFD Sender: Remove packet 227588 [18:27:34]ProducePacketName [18:27:34]name=ofd_packets/00227588 [18:27:34]NVStorageDeleteData [18:27:35]Write to MH i2c: 01 00 00 E7 1A 01 [18:27:35]Write i2c OK [18:27:35]MH_I2C_Read... [18:27:35]Read from MH i2c: 01 [18:27:35]MH_I2C_Read... [18:27:35]Read from MH i2c: 01 07 00 [18:27:35]MH_I2C_Read... [18:27:35]Read from MH i2c: 01 07 00 E7 1A 00 00 00 00 00 21 0D 36 [18:27:35]RasterBufferAndPrint [18:27:35]line [18:27:35]line [18:27:35]line [18:27:35]line [18:27:35]line [18:27:35]written 0, free lines is 3367 [18:27:35]process_action close_receipt done [18:27:35]requested_data is exist [18:27:35]produce_requested_data [18:27:35]requested_item fm.sn is exist - process it [18:27:35]wFMCommunicate request_size=4 [18:27:35]MH_SAM_APDU [18:27:35]CAPDU: 80 11 00 00 [18:27:35]Write to MH i2c: E2 08 00 EE 1A 80 11 00 00 00 00 00 00 82 [18:27:35]Write i2c OK [18:27:35]MH_I2C_Read... [18:27:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:35]Read from MH i2c: E2 [18:27:35]MH_I2C_Read... [18:27:35]Read from MH i2c: E2 17 00 [18:27:35]MH_I2C_Read... [18:27:35]Read from MH i2c: E2 17 00 EE 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D9 [18:27:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:27:35]wFMCommunicate OK [18:27:35]requested_item fd.num is exist - process it [18:27:35]SAM_PROTO_GetFieldsCounters [18:27:35]wFMCommunicate request_size=4 [18:27:35]MH_SAM_APDU [18:27:35]CAPDU: 80 13 00 00 [18:27:35]Write to MH i2c: E2 08 00 EF 1A 80 13 00 00 00 00 00 00 85 [18:27:35]Write i2c OK [18:27:35]MH_I2C_Read... [18:27:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:27:35]Read from MH i2c: E2 [18:27:35]MH_I2C_Read... [18:27:35]Read from MH i2c: E2 62 00 [18:27:35]MH_I2C_Read... [18:27:35]Read from MH i2c: E2 62 00 EF 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 04 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 B4 01 00 00 5E 04 04 00 B4 01 00 00 57 04 04 00 B5 01 00 00 19 04 04 00 00 00 00 00 90 00 64 [18:27: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 04 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 B4 01 00 00 5E 04 04 00 B4 01 00 00 57 04 04 00 B5 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:27:35]wFMCommunicate OK [18:27:35]SAM_PROTO_GetFieldsCounters done [18:27:35]requested_item shift.num is exist - process it [18:27:35]requested_item shift.opened is exist - process it [18:27:35]req_shift_opened [18:27:35]FM_GetShiftState [18:27:35]SAM_PROTO_GetShiftState [18:27:35]wFMCommunicate request_size=4 [18:27:35]MH_SAM_APDU [18:27:35]CAPDU: 80 13 01 00 [18:27:35]Write to MH i2c: E2 08 00 F0 1A 80 13 01 00 00 00 00 00 87 [18:27:35]Write i2c OK [18:27:35]MH_I2C_Read... [18:27:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:35]Read from MH i2c: E2 [18:27:35]MH_I2C_Read... [18:27:35]Read from MH i2c: E2 0E 00 [18:27:35]MH_I2C_Read... [18:27:35]Read from MH i2c: E2 0E 00 F0 1A 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 A1 [18:27:35]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:27:35]wFMCommunicate OK [18:27:35]SAM_PROTO_GetShiftState done [18:27:35]FM_GetShiftState done [18:27:35]req_shift_opened done [18:27:35]requested_item shift.open_date is exist - process it [18:27:35]req_shift_open_date [18:27:35]req_shift_open_date done [18:27:35]produce_requested_data done [18:27:35]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227588,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [18:27:35]process_action_free close_receipt [18:27:35]json_value_free [18:27:35]json_value_free done [18:27:35]process_json_proto returns [18:27:35]Send response to host [18:27:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227588,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [18:27:35]free response buf [18:27:35]execute_script done [18:27:35]execute_script returns [18:27:35]free content buf [18:27:35]Sock 9.Close socket [18:27:35]Sock 9.Thread stoped [18:27:35]OFD Sender: No OFD packet to send [18:27:40]OFD Sender: No OFD packet to send [18:27:45]OFD Sender: No OFD packet to send [18:27:50]OFD Sender: No OFD packet to send [18:27:55]OFD Sender: No OFD packet to send [18:28:00]OFD Sender: No OFD packet to send [18:28:05]OFD Sender: No OFD packet to send [18:28:10]OFD Sender: No OFD packet to send [18:28:13]accept exits with 7 [18:28:13]New connection [18:28:13]New thread 3067362660 created [18:28:13]Thread 3067219300 joined [18:28:13]Waiting for new connection... [18:28:13] Sock 7.Parse request [18:28:13]Sock 7.Check first char [18:28:13]Sock 7.First char is OK [18:28:13]request: POST /json_proto HTTP/1.0 [18:28:13]Method: POST [18:28:13]URL: /json_proto [18:28:13]Method is POST - this is cgi request [18:28:13]url: /json_proto [18:28:13]query_string will be loaded in cgi processing [18:28:13]execute_cgi json_proto POST (null) [18:28:13]execute_cgi path=json_proto method=POST [18:28:13]POST find Content-Length [18:28:13]Host: 172.17.44.195:8080 [18:28:13]Content-Length: 678 [18:28:13]Content-Type: application/json [18:28:13] [18:28:13]POST finish read [18:28:13]Found Content-Length = 678 [18:28:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963225", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:28:13]execute_script... [18:28:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963225", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:28:13]POST & json_proto [18:28:13]process_json_proto [18:28:13]json parsed OK: [18:28:13]protocol is kg_v1.0 [18:28:13]action value=close_receipt [18:28:13]process_action close_receipt [18:28:13]cmd_close_receipt [18:28:13]MH_GetDate [18:28:13]Write to MH i2c: F0 00 00 F1 1A FA [18:28:13]Write i2c OK [18:28:13]MH_I2C_Read... [18:28:13]Read from MH i2c: F0 [18:28:13]MH_I2C_Read... [18:28:13]Read from MH i2c: F0 09 00 [18:28:13]MH_I2C_Read... [18:28:13]Read from MH i2c: F0 09 00 F1 1A 00 BE 4B 15 67 82 C9 CF 66 08 [18:28:13]GetLastDocTimeStamp 1729448854 [18:28:13]current date 1729448894 [18:28:13]FM_GetShiftState [18:28:13]SAM_PROTO_GetShiftState [18:28:13]wFMCommunicate request_size=4 [18:28:13]MH_SAM_APDU [18:28:13]CAPDU: 80 13 01 00 [18:28:13]Write to MH i2c: E2 08 00 F2 1A 80 13 01 00 00 00 00 00 89 [18:28:13]Write i2c OK [18:28:13]MH_I2C_Read... [18:28:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:28:13]Read from MH i2c: E2 [18:28:13]MH_I2C_Read... [18:28:13]Read from MH i2c: E2 0E 00 [18:28:13]MH_I2C_Read... [18:28:13]Read from MH i2c: E2 0E 00 F2 1A 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 A3 [18:28:13]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:28:13]wFMCommunicate OK [18:28:13]SAM_PROTO_GetShiftState done [18:28:13]FM_GetShiftState done [18:28:13]opened in 1729383750 [18:28:13]opened+sec_in_day 1729470150 [18:28:13]quantity*price = 30038 [18:28:13]sum+1 = 30039 [18:28:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 437 20.10.2024 18:28 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227589 ФПД: 248617757181962 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T182815&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227589&fm=248617757181962&tin=02508201610067®Number=0000000000091685&sum=30000 [18:28:14]StoreToDocumentArchive [18:28:14]shift 533 fd 227589 [18:28:14]save to /storage/0533/doc_00227589 [18:28:14]save last doc name /storage/0533/doc_00227589 to /storage/kkm_last_doc_name [18:28:14]save OK [18:28:14]Clear old archive folders... [18:28:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:28:14]tlvbuf is 00DE2580 [18:28:14]SAM_PROTO_ClearQueue [18:28:14]wFMCommunicate request_size=4 [18:28:14]MH_SAM_APDU [18:28:14]CAPDU: 80 09 00 00 [18:28:14]Write to MH i2c: E2 08 00 FF 1A 80 09 00 00 00 00 00 00 8B [18:28:14]Write i2c OK [18:28:14]MH_I2C_Read... [18:28:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:28:14]Read from MH i2c: E2 [18:28:14]MH_I2C_Read... [18:28:14]Read from MH i2c: E2 03 00 [18:28:14]MH_I2C_Read... [18:28:14]Read from MH i2c: E2 03 00 FF 1A 00 90 00 8D [18:28:14]RAPDU: 90 00 [18:28:14]wFMCommunicate OK [18:28:14]SAM_PROTO_ClearQueue done [18:28:14]KKMCreateOFDPacket [18:28:14]OFDProtocolAddRootSTLVToBuf [18:28:14]FM_MakeSignedData [18:28:14]FM_MakeSignedData [18:28:14]SAM_PROTO_SignData [18:28:14]wFMCommunicate request_size=4 [18:28:14]MH_SAM_APDU [18:28:14]CAPDU: 80 0D 01 02 [18:28:14]Write to MH i2c: E2 08 00 00 1B 80 0D 01 02 00 00 00 00 94 [18:28:14]Write i2c OK [18:28:14]MH_I2C_Read... [18:28:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:28:14]Read from MH i2c: E2 [18:28:14]MH_I2C_Read... [18:28:14]Read from MH i2c: E2 03 00 [18:28:14]MH_I2C_Read... [18:28:14]Read from MH i2c: E2 03 00 00 1B 00 90 00 8F [18:28:14]RAPDU: 90 00 [18:28:14]wFMCommunicate OK [18:28:14]wFMCommunicate request_size=255 [18:28:14]MH_SAM_APDU [18:28:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 01 00 00 F4 03 04 00 BF 4B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 05 79 03 00 35 04 06 00 E2 [18:28:14]Write to MH i2c: E2 02 01 01 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 01 00 00 F4 03 04 00 BF 4B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 05 79 03 00 35 04 06 00 E2 00 00 D5 [18:28:14]Write i2c OK [18:28:14]MH_I2C_Read... [18:28:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:28:14]Read from MH i2c: E2 [18:28:14]MH_I2C_Read... [18:28:14]Read from MH i2c: E2 03 00 [18:28:14]MH_I2C_Read... [18:28:14]Read from MH i2c: E2 03 00 01 1B 00 90 00 90 [18:28:14]RAPDU: 90 00 [18:28:14]wFMCommunicate OK [18:28:14]wFMCommunicate request_size=10 [18:28:14]MH_SAM_APDU [18:28:14]CAPDU: 80 0D 02 02 05 1D D5 1A 08 0A [18:28:14]Write to MH i2c: E2 0D 00 02 1B 80 0D 02 02 05 00 1D D5 1A 08 0A 00 00 BF [18:28:14]Write i2c OK [18:28:14]MH_I2C_Read... [18:28:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:28:14]Read from MH i2c: E2 [18:28:14]MH_I2C_Read... [18:28:14]Read from MH i2c: E2 03 00 [18:28:14]MH_I2C_Read... [18:28:14]Read from MH i2c: E2 03 00 02 1B 00 90 00 91 [18:28:14]RAPDU: 90 00 [18:28:14]wFMCommunicate OK [18:28:14]wFMCommunicate request_size=4 [18:28:14]MH_SAM_APDU [18:28:14]CAPDU: 80 0D 03 02 [18:28:14]Write to MH i2c: E2 08 00 03 1B 80 0D 03 02 00 00 00 00 99 [18:28:14]Write i2c OK [18:28:14]MH_I2C_Read... [18:28:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:28:14]Read from MH i2c: E2 [18:28:14]MH_I2C_Read... [18:28:14]Read from MH i2c: E2 0B 00 [18:28:14]MH_I2C_Read... [18:28:14]Read from MH i2c: E2 0B 00 03 1B 00 80 2B B1 01 11 43 AC E7 90 00 DE [18:28:14]RAPDU: 80 2B B1 01 11 43 AC E7 90 00 [18:28:14]wFMCommunicate OK [18:28:14]SAM_PROTO_SignData done [18:28:14]FM_MakeSignedData done [18:28:14]CreateOFDProtocolMessage [18:28:14]wFMCommunicate request_size=4 [18:28:14]MH_SAM_APDU [18:28:14]CAPDU: 80 11 00 00 [18:28:14]Write to MH i2c: E2 08 00 04 1B 80 11 00 00 00 00 00 00 99 [18:28:14]Write i2c OK [18:28:14]MH_I2C_Read... [18:28:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:28:15]Read from MH i2c: E2 [18:28:15]MH_I2C_Read... [18:28:15]Read from MH i2c: E2 17 00 [18:28:15]MH_I2C_Read... [18:28:15]Read from MH i2c: E2 17 00 04 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F0 [18:28:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:28:15]wFMCommunicate OK [18:28:15]CreateOFDProtocolMessage done [18:28:15]OFDSenderStorePacket 227589 [18:28:15]StoreOFDPacket docnum=227589 [18:28:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 63 60 07 01 AD 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 01 00 00 F4 03 04 00 BF 4B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 05 79 03 00 35 04 06 00 E2 1D D5 1A 08 0A 80 2B B1 01 11 43 AC E7 [18:28:15]CheckFolder [18:28:15]dirname=/storage/ofd_packets [18:28:15]CheckFolder done [18:28:15]ProducePacketName [18:28:15]name=ofd_packets/00227589 [18:28:15]NVStorageSaveData ofd_packets/00227589 [18:28:15]File name is /storage/ofd_packets/00227589 [18:28:15]Write 301 bytes [18:28:15]NVStorageSaveData done [18:28:15]OFDSenderStorePacket done [18:28:15]KKMCreateOFDPacket done [18:28:15]NVStorageSaveData kkm_last_timestamp [18:28:15]File name is /storage/kkm_last_timestamp [18:28:15]Write 4 bytes [18:28:15]NVStorageSaveData done [18:28:15]OFD Sender: Processing packet 227589 [packets to send 38, broken 37] [18:28:15]ProducePacketName [18:28:15]name=ofd_packets/00227589 [18:28:15]OFD Sender: To server: pG, [18:28:15]CommunicateWithHost lk.salyk.kg:30040 [18:28:15]ConnectInit lk.salyk.kg [18:28:15]ExternCall_PrintAddStr [18:28:15]wPrintStart [18:28:15]Write to MH i2c: 01 00 00 05 1B 20 [18:28:15]Write i2c OK [18:28:15]MH_I2C_Read... [18:28:15]Read from MH i2c: 01 [18:28:15]MH_I2C_Read... [18:28:15]Read from MH i2c: 01 07 00 [18:28:15]MH_I2C_Read... [18:28:15]Read from MH i2c: 01 07 00 05 1B 00 00 00 00 00 FF 0F 35 [18:28:15]RasterBufferAndPrint [18:28:15]line Счет N : (1)1963225 [18:28:15]line ИНН: 02508201610067 [18:28:15]line Контрольно-Кассовый Чек [18:28:15]line ПРОДАЖА [18:28:15]line ТРК (МРК, ГНК) : 43 [18:28:15]line Товар: 2710124130 [18:28:15]line Аи-92-К-5 [18:28:15]line 4.490 * 66.90 [18:28:15]line = 300.38 [18:28:15]line НДС 12% НСП 1% [18:28:15]line > о реализуемом товаре [18:28:15]line ОКРУГЛЕНИЕ: -0.38 [18:28:15]line ИТОГО: 300.00 [18:28:15]line Внесено: 300.00 [18:28:15]line СДАЧА: 0.00 [18:28:15]line НСП 1% : 2.66 [18:28:15]line НДС 12% : 31.90 [18:28:15]line Наличными: 300.00 [18:28:15]line Безнал.: 0.00 [18:28:15]line Место: АЗС № 133 "Партнер Нефть" [18:28:15]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:28:15]line СНО: Общий режим [18:28:15]line Чек 437 20.10.2024 18:28 [18:28:15]line Смена: 533 ФФД: 1.0 [18:28:15]line ЗНМ: 0300000091 [18:28:15]line РНМ: 0000000000091685 [18:28:15]line Версия ККМ: 001 [18:28:15]line ФМ: 0000000000871839 [18:28:15]line ФД: 227589 [18:28:15]line ФПД: 248617757181962 [18:28:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T182815&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227589&fm=248617757181962&tin=02508201610067®Number=0000000000091685&sum=30000 [18:28:15]Connected sock=11 [18:28:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 63 60 07 01 AD 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 01 00 00 F4 03 04 00 BF 4B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 05 79 03 00 35 04 06 00 E2 1D D5 1A 08 0A 80 2B B1 01 11 43 AC E7 [18:28:15]written 0, free lines is 4095 [18:28: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 33 39 4F 00 00 00 A6 2B 47 00 2B B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 05 79 03 00 F4 03 04 00 BD F6 14 67 B6 04 01 00 00 32 D4 8A 55 EB 45 4A 39 [18:28:15]CommunicateWithHost err = 0 [18:28:15]CheckOFDResponse [18:28:15]1017 (14) - 77093643461234 [18:28:15]1041 (16) - 0000000000871839 [18:28:15]1040 (4) - 227589 [18:28:15]1012 (4) - 20.10.2024 12:25 [18:28:15]1206 (1) - 0 [18:28:15]OFD Sender: Remove packet 227589 [18:28:15]ProducePacketName [18:28:15]name=ofd_packets/00227589 [18:28:15]NVStorageDeleteData [18:28:15]Write to MH i2c: 01 00 00 2F 1B 4A [18:28:15]Write i2c OK [18:28:15]MH_I2C_Read... [18:28:15]Read from MH i2c: 01 [18:28:15]MH_I2C_Read... [18:28:15]Read from MH i2c: 01 07 00 [18:28:15]MH_I2C_Read... [18:28:15]Read from MH i2c: 01 07 00 2F 1B 00 00 00 00 00 0D 0D 6B [18:28:15]RasterBufferAndPrint [18:28:15]line [18:28:15]line [18:28:15]line [18:28:15]line [18:28:15]line [18:28:15]written 0, free lines is 3347 [18:28:15]process_action close_receipt done [18:28:15]requested_data is exist [18:28:15]produce_requested_data [18:28:15]requested_item fm.sn is exist - process it [18:28:15]wFMCommunicate request_size=4 [18:28:15]MH_SAM_APDU [18:28:15]CAPDU: 80 11 00 00 [18:28:15]Write to MH i2c: E2 08 00 36 1B 80 11 00 00 00 00 00 00 CB [18:28:15]Write i2c OK [18:28:15]MH_I2C_Read... [18:28:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:28:15]Read from MH i2c: E2 [18:28:15]MH_I2C_Read... [18:28:15]Read from MH i2c: E2 17 00 [18:28:15]MH_I2C_Read... [18:28:15]Read from MH i2c: E2 17 00 36 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 22 [18:28:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:28:15]wFMCommunicate OK [18:28:15]requested_item fd.num is exist - process it [18:28:15]SAM_PROTO_GetFieldsCounters [18:28:15]wFMCommunicate request_size=4 [18:28:15]MH_SAM_APDU [18:28:15]CAPDU: 80 13 00 00 [18:28:15]Write to MH i2c: E2 08 00 37 1B 80 13 00 00 00 00 00 00 CE [18:28:15]Write i2c OK [18:28:15]MH_I2C_Read... [18:28:16]OFD Sender: No OFD packet to send [18:28:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:28:16]Read from MH i2c: E2 [18:28:16]MH_I2C_Read... [18:28:16]Read from MH i2c: E2 62 00 [18:28:16]MH_I2C_Read... [18:28:16]Read from MH i2c: E2 62 00 37 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 05 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 B5 01 00 00 5E 04 04 00 B5 01 00 00 57 04 04 00 B6 01 00 00 19 04 04 00 00 00 00 00 90 00 B1 [18:28: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 05 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 B5 01 00 00 5E 04 04 00 B5 01 00 00 57 04 04 00 B6 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:28:16]wFMCommunicate OK [18:28:16]SAM_PROTO_GetFieldsCounters done [18:28:16]requested_item shift.num is exist - process it [18:28:16]requested_item shift.opened is exist - process it [18:28:16]req_shift_opened [18:28:16]FM_GetShiftState [18:28:16]SAM_PROTO_GetShiftState [18:28:16]wFMCommunicate request_size=4 [18:28:16]MH_SAM_APDU [18:28:16]CAPDU: 80 13 01 00 [18:28:16]Write to MH i2c: E2 08 00 38 1B 80 13 01 00 00 00 00 00 D0 [18:28:16]Write i2c OK [18:28:16]MH_I2C_Read... [18:28:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:28:16]Read from MH i2c: E2 [18:28:16]MH_I2C_Read... [18:28:16]Read from MH i2c: E2 0E 00 [18:28:16]MH_I2C_Read... [18:28:16]Read from MH i2c: E2 0E 00 38 1B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 EA [18:28:16]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:28:16]wFMCommunicate OK [18:28:16]SAM_PROTO_GetShiftState done [18:28:16]FM_GetShiftState done [18:28:16]req_shift_opened done [18:28:16]requested_item shift.open_date is exist - process it [18:28:16]req_shift_open_date [18:28:16]req_shift_open_date done [18:28:16]produce_requested_data done [18:28:16]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227589,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [18:28:16]process_action_free close_receipt [18:28:16]json_value_free [18:28:16]json_value_free done [18:28:16]process_json_proto returns [18:28:16]Send response to host [18:28:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227589,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [18:28:16]free response buf [18:28:16]execute_script done [18:28:16]execute_script returns [18:28:16]free content buf [18:28:16]Sock 7.Close socket [18:28:16]Sock 7.Thread stoped [18:28:21]OFD Sender: No OFD packet to send [18:28:26]OFD Sender: No OFD packet to send [18:28:31]OFD Sender: No OFD packet to send [18:28:36]OFD Sender: No OFD packet to send [18:28:41]OFD Sender: No OFD packet to send [18:28:46]OFD Sender: No OFD packet to send [18:28:51]OFD Sender: No OFD packet to send [18:28:56]OFD Sender: No OFD packet to send [18:29:01]OFD Sender: No OFD packet to send [18:29:06]OFD Sender: No OFD packet to send [18:29:11]OFD Sender: No OFD packet to send [18:29:16]OFD Sender: No OFD packet to send [18:29:21]OFD Sender: No OFD packet to send [18:29:26]OFD Sender: No OFD packet to send [18:29:31]OFD Sender: No OFD packet to send [18:29:36]OFD Sender: No OFD packet to send [18:29:41]OFD Sender: No OFD packet to send [18:29:46]OFD Sender: No OFD packet to send [18:29:51]OFD Sender: No OFD packet to send [18:29:56]OFD Sender: No OFD packet to send [18:29:59]accept exits with 9 [18:29:59]New connection [18:29:59]New thread 3067219300 created [18:29:59]Thread 3067362660 joined [18:29:59]Waiting for new connection... [18:29:59] Sock 9.Parse request [18:29:59]Sock 9.Check first char [18:29:59]Sock 9.First char is OK [18:29:59]request: POST /json_proto HTTP/1.0 [18:29:59]Method: POST [18:29:59]URL: /json_proto [18:29:59]Method is POST - this is cgi request [18:29:59]url: /json_proto [18:29:59]query_string will be loaded in cgi processing [18:29:59]execute_cgi json_proto POST (null) [18:29:59]execute_cgi path=json_proto method=POST [18:29:59]POST find Content-Length [18:29:59]Host: 172.17.44.195:8080 [18:29:59]Content-Length: 678 [18:29:59]Content-Type: application/json [18:29:59] [18:29:59]POST finish read [18:29:59]Found Content-Length = 678 [18:29:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963228", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:29:59]execute_script... [18:29:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963228", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:29:59]POST & json_proto [18:29:59]process_json_proto [18:29:59]json parsed OK: [18:29:59]protocol is kg_v1.0 [18:29:59]action value=close_receipt [18:29:59]process_action close_receipt [18:29:59]cmd_close_receipt [18:29:59]MH_GetDate [18:29:59]Write to MH i2c: F0 00 00 39 1B 43 [18:29:59]Write i2c OK [18:29:59]MH_I2C_Read... [18:29:59]Read from MH i2c: F0 [18:29:59]MH_I2C_Read... [18:29:59]Read from MH i2c: F0 09 00 [18:29:59]MH_I2C_Read... [18:29:59]Read from MH i2c: F0 09 00 39 1B 00 29 4C 15 67 82 C9 CF 66 BD [18:29:59]GetLastDocTimeStamp 1729448895 [18:29:59]current date 1729449001 [18:29:59]FM_GetShiftState [18:29:59]SAM_PROTO_GetShiftState [18:29:59]wFMCommunicate request_size=4 [18:29:59]MH_SAM_APDU [18:29:59]CAPDU: 80 13 01 00 [18:29:59]Write to MH i2c: E2 08 00 3A 1B 80 13 01 00 00 00 00 00 D2 [18:29:59]Write i2c OK [18:29:59]MH_I2C_Read... [18:29:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:59]Read from MH i2c: E2 [18:29:59]MH_I2C_Read... [18:29:59]Read from MH i2c: E2 0E 00 [18:29:59]MH_I2C_Read... [18:29:59]Read from MH i2c: E2 0E 00 3A 1B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 EC [18:29:59]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:29:59]wFMCommunicate OK [18:29:59]SAM_PROTO_GetShiftState done [18:29:59]FM_GetShiftState done [18:29:59]opened in 1729383750 [18:29:59]opened+sec_in_day 1729470150 [18:29:59]quantity*price = 50041 [18:29:59]sum+1 = 50042 [18:29:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 438 20.10.2024 18:30 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227590 ФПД: 74166510120451 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T183001&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227590&fm=74166510120451&tin=02508201610067®Number=0000000000091685&sum=50000 [18:30:00]StoreToDocumentArchive [18:30:00]shift 533 fd 227590 [18:30:00]save to /storage/0533/doc_00227590 [18:30:00]save last doc name /storage/0533/doc_00227590 to /storage/kkm_last_doc_name [18:30:00]save OK [18:30:00]Clear old archive folders... [18:30:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:30:00]tlvbuf is 00DE2040 [18:30:00]SAM_PROTO_ClearQueue [18:30:00]wFMCommunicate request_size=4 [18:30:00]MH_SAM_APDU [18:30:00]CAPDU: 80 09 00 00 [18:30:00]Write to MH i2c: E2 08 00 47 1B 80 09 00 00 00 00 00 00 D4 [18:30:00]Write i2c OK [18:30:00]MH_I2C_Read... [18:30:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:30:00]Read from MH i2c: E2 [18:30:00]MH_I2C_Read... [18:30:00]Read from MH i2c: E2 03 00 [18:30:00]MH_I2C_Read... [18:30:00]Read from MH i2c: E2 03 00 47 1B 00 90 00 D6 [18:30:00]RAPDU: 90 00 [18:30:00]wFMCommunicate OK [18:30:00]SAM_PROTO_ClearQueue done [18:30:00]KKMCreateOFDPacket [18:30:00]OFDProtocolAddRootSTLVToBuf [18:30:00]FM_MakeSignedData [18:30:00]FM_MakeSignedData [18:30:00]SAM_PROTO_SignData [18:30:00]wFMCommunicate request_size=4 [18:30:00]MH_SAM_APDU [18:30:00]CAPDU: 80 0D 01 02 [18:30:00]Write to MH i2c: E2 08 00 48 1B 80 0D 01 02 00 00 00 00 DC [18:30:00]Write i2c OK [18:30:00]MH_I2C_Read... [18:30:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:30:00]Read from MH i2c: E2 [18:30:00]MH_I2C_Read... [18:30:00]Read from MH i2c: E2 03 00 [18:30:00]MH_I2C_Read... [18:30:00]Read from MH i2c: E2 03 00 48 1B 00 90 00 D7 [18:30:00]RAPDU: 90 00 [18:30:00]wFMCommunicate OK [18:30:00]wFMCommunicate request_size=255 [18:30:00]MH_SAM_APDU [18:30:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 01 00 00 F4 03 04 00 29 4C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 06 79 03 00 35 04 06 00 43 [18:30:00]Write to MH i2c: E2 02 01 49 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 01 00 00 F4 03 04 00 29 4C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 06 79 03 00 35 04 06 00 43 00 00 F7 [18:30:00]Write i2c OK [18:30:00]MH_I2C_Read... [18:30:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:01]Read from MH i2c: E2 [18:30:01]MH_I2C_Read... [18:30:01]Read from MH i2c: E2 03 00 [18:30:01]MH_I2C_Read... [18:30:01]Read from MH i2c: E2 03 00 49 1B 00 90 00 D8 [18:30:01]RAPDU: 90 00 [18:30:01]wFMCommunicate OK [18:30:01]wFMCommunicate request_size=10 [18:30:01]MH_SAM_APDU [18:30:01]CAPDU: 80 0D 02 02 05 74 3C 7D 6E 03 [18:30:01]Write to MH i2c: E2 0D 00 4A 1B 80 0D 02 02 05 00 74 3C 7D 6E 03 00 00 87 [18:30:01]Write i2c OK [18:30:01]MH_I2C_Read... [18:30:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:01]Read from MH i2c: E2 [18:30:01]MH_I2C_Read... [18:30:01]Read from MH i2c: E2 03 00 [18:30:01]MH_I2C_Read... [18:30:01]Read from MH i2c: E2 03 00 4A 1B 00 90 00 D9 [18:30:01]RAPDU: 90 00 [18:30:01]wFMCommunicate OK [18:30:01]wFMCommunicate request_size=4 [18:30:01]MH_SAM_APDU [18:30:01]CAPDU: 80 0D 03 02 [18:30:01]Write to MH i2c: E2 08 00 4B 1B 80 0D 03 02 00 00 00 00 E1 [18:30:01]Write i2c OK [18:30:01]MH_I2C_Read... [18:30:01]OFD Sender: No OFD packet to send [18:30:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:30:01]Read from MH i2c: E2 [18:30:01]MH_I2C_Read... [18:30:01]Read from MH i2c: E2 0B 00 [18:30:01]MH_I2C_Read... [18:30:01]Read from MH i2c: E2 0B 00 4B 1B 00 7E 36 31 5A F5 FE 53 02 90 00 69 [18:30:01]RAPDU: 7E 36 31 5A F5 FE 53 02 90 00 [18:30:01]wFMCommunicate OK [18:30:01]SAM_PROTO_SignData done [18:30:01]FM_MakeSignedData done [18:30:01]CreateOFDProtocolMessage [18:30:01]wFMCommunicate request_size=4 [18:30:01]MH_SAM_APDU [18:30:01]CAPDU: 80 11 00 00 [18:30:01]Write to MH i2c: E2 08 00 4C 1B 80 11 00 00 00 00 00 00 E1 [18:30:01]Write i2c OK [18:30:01]MH_I2C_Read... [18:30:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:01]Read from MH i2c: E2 [18:30:01]MH_I2C_Read... [18:30:01]Read from MH i2c: E2 17 00 [18:30:01]MH_I2C_Read... [18:30:01]Read from MH i2c: E2 17 00 4C 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 38 [18:30:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:30:01]wFMCommunicate OK [18:30:01]CreateOFDProtocolMessage done [18:30:01]OFDSenderStorePacket 227590 [18:30:01]StoreOFDPacket docnum=227590 [18:30:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 DF 52 07 01 F6 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 01 00 00 F4 03 04 00 29 4C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 06 79 03 00 35 04 06 00 43 74 3C 7D 6E 03 7E 36 31 5A F5 FE 53 02 [18:30:01]CheckFolder [18:30:01]dirname=/storage/ofd_packets [18:30:01]CheckFolder done [18:30:01]ProducePacketName [18:30:01]name=ofd_packets/00227590 [18:30:01]NVStorageSaveData ofd_packets/00227590 [18:30:01]File name is /storage/ofd_packets/00227590 [18:30:01]Write 301 bytes [18:30:01]NVStorageSaveData done [18:30:01]OFDSenderStorePacket done [18:30:01]KKMCreateOFDPacket done [18:30:01]NVStorageSaveData kkm_last_timestamp [18:30:01]File name is /storage/kkm_last_timestamp [18:30:01]Write 4 bytes [18:30:01]NVStorageSaveData done [18:30:01]ExternCall_PrintAddStr [18:30:01]wPrintStart [18:30:01]Write to MH i2c: 01 00 00 4D 1B 68 [18:30:01]Write i2c OK [18:30:01]MH_I2C_Read... [18:30:01]Read from MH i2c: 01 [18:30:01]MH_I2C_Read... [18:30:01]Read from MH i2c: 01 07 00 [18:30:01]MH_I2C_Read... [18:30:01]Read from MH i2c: 01 07 00 4D 1B 00 00 00 00 00 FF 0F 7D [18:30:01]RasterBufferAndPrint [18:30:01]line Счет N : (1)1963228 [18:30:01]line ИНН: 02508201610067 [18:30:01]line Контрольно-Кассовый Чек [18:30:01]line ПРОДАЖА [18:30:01]line ТРК (МРК, ГНК) : 43 [18:30:01]line Товар: 2710124130 [18:30:01]line Аи-92-К-5 [18:30:01]line 7.480 * 66.90 [18:30:01]line = 500.41 [18:30:01]line НДС 12% НСП 1% [18:30:01]line > о реализуемом товаре [18:30:01]line ОКРУГЛЕНИЕ: -0.41 [18:30:01]line ИТОГО: 500.00 [18:30:01]line Внесено: 500.00 [18:30:01]line СДАЧА: 0.00 [18:30:01]line НСП 1% : 4.43 [18:30:01]line НДС 12% : 53.14 [18:30:01]line Наличными: 500.00 [18:30:01]line Безнал.: 0.00 [18:30:01]line Место: АЗС № 133 "Партнер Нефть" [18:30:01]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:30:01]line СНО: Общий режим [18:30:01]line Чек 438 20.10.2024 18:30 [18:30:01]line Смена: 533 ФФД: 1.0 [18:30:01]line ЗНМ: 0300000091 [18:30:01]line РНМ: 0000000000091685 [18:30:01]line Версия ККМ: 001 [18:30:01]line ФМ: 0000000000871839 [18:30:01]line ФД: 227590 [18:30:01]line ФПД: 74166510120451 [18:30:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T183001&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227590&fm=74166510120451&tin=02508201610067®Number=0000000000091685&sum=50000 [18:30:01]written 0, free lines is 4095 [18:30:01]OFD Sender: Processing packet 227590 [packets to send 38, broken 37] [18:30:01]ProducePacketName [18:30:01]name=ofd_packets/00227590 [18:30:01]OFD Sender: To server: pG, [18:30:01]CommunicateWithHost lk.salyk.kg:30040 [18:30:01]ConnectInit lk.salyk.kg [18:30:01]Connected sock=10 [18:30: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 33 39 0F 01 00 00 DF 52 07 01 F6 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 01 00 00 F4 03 04 00 29 4C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 06 79 03 00 35 04 06 00 43 74 3C 7D 6E 03 7E 36 31 5A F5 FE 53 02 [18:30:01]Write to MH i2c: 01 00 00 77 1B 92 [18:30:01]Write i2c OK [18:30:01]MH_I2C_Read... [18:30:01]Read from MH i2c: 01 [18:30:01]MH_I2C_Read... [18:30:01]Read from MH i2c: 01 07 00 [18:30:01]MH_I2C_Read... [18:30:01]Read from MH i2c: 01 07 00 77 1B 00 00 00 00 00 04 0D AA [18:30:01]RasterBufferAndPrint [18:30:01]line [18:30:01]line [18:30:01]line [18:30:01]line [18:30:01]line [18:30:01]written 0, free lines is 3339 [18:30:01]process_action close_receipt done [18:30:01]requested_data is exist [18:30:01]produce_requested_data [18:30:01]requested_item fm.sn is exist - process it [18:30:01]wFMCommunicate request_size=4 [18:30:01]MH_SAM_APDU [18:30:01]CAPDU: 80 11 00 00 [18:30:01]Write to MH i2c: E2 08 00 7E 1B 80 11 00 00 00 00 00 00 13 [18:30:01]Write i2c OK [18:30:01]MH_I2C_Read... [18:30:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:01]Read from MH i2c: E2 [18:30:01]MH_I2C_Read... [18:30:01]Read from MH i2c: E2 17 00 [18:30:01]MH_I2C_Read... [18:30:01]Read from MH i2c: E2 17 00 7E 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 6A [18:30:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:30:01]wFMCommunicate OK [18:30:01]requested_item fd.num is exist - process it [18:30:01]SAM_PROTO_GetFieldsCounters [18:30:01]wFMCommunicate request_size=4 [18:30:01]MH_SAM_APDU [18:30:01]CAPDU: 80 13 00 00 [18:30:01]Write to MH i2c: E2 08 00 7F 1B 80 13 00 00 00 00 00 00 16 [18:30:01]Write i2c OK [18:30:01]MH_I2C_Read... [18:30:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:30:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 06 EB 47 00 5D 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 33 39 10 04 04 00 06 79 03 00 F4 03 04 00 27 F7 14 67 B6 04 01 00 00 DC B4 57 61 AF BA ED 8B [18:30:01]CommunicateWithHost err = 0 [18:30:01]CheckOFDResponse [18:30:01]1017 (14) - 77093643461234 [18:30:01]1041 (16) - 0000000000871839 [18:30:01]1040 (4) - 227590 [18:30:01]1012 (4) - 20.10.2024 12:27 [18:30:01]1206 (1) - 0 [18:30:01]OFD Sender: Remove packet 227590 [18:30:01]ProducePacketName [18:30:01]name=ofd_packets/00227590 [18:30:01]NVStorageDeleteData [18:30:01]Read from MH i2c: E2 [18:30:01]MH_I2C_Read... [18:30:01]Read from MH i2c: E2 62 00 [18:30:01]MH_I2C_Read... [18:30:01]Read from MH i2c: E2 62 00 7F 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 06 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 B6 01 00 00 5E 04 04 00 B6 01 00 00 57 04 04 00 B7 01 00 00 19 04 04 00 00 00 00 00 90 00 FD [18:30: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 06 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 B6 01 00 00 5E 04 04 00 B6 01 00 00 57 04 04 00 B7 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:30:01]wFMCommunicate OK [18:30:01]SAM_PROTO_GetFieldsCounters done [18:30:01]requested_item shift.num is exist - process it [18:30:01]requested_item shift.opened is exist - process it [18:30:01]req_shift_opened [18:30:01]FM_GetShiftState [18:30:01]SAM_PROTO_GetShiftState [18:30:01]wFMCommunicate request_size=4 [18:30:01]MH_SAM_APDU [18:30:01]CAPDU: 80 13 01 00 [18:30:01]Write to MH i2c: E2 08 00 80 1B 80 13 01 00 00 00 00 00 18 [18:30:01]Write i2c OK [18:30:01]MH_I2C_Read... [18:30:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:02]Read from MH i2c: E2 [18:30:02]MH_I2C_Read... [18:30:02]Read from MH i2c: E2 0E 00 [18:30:02]MH_I2C_Read... [18:30:02]Read from MH i2c: E2 0E 00 80 1B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 32 [18:30:02]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:30:02]wFMCommunicate OK [18:30:02]SAM_PROTO_GetShiftState done [18:30:02]FM_GetShiftState done [18:30:02]req_shift_opened done [18:30:02]requested_item shift.open_date is exist - process it [18:30:02]req_shift_open_date [18:30:02]req_shift_open_date done [18:30:02]produce_requested_data done [18:30:02]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227590,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [18:30:02]process_action_free close_receipt [18:30:02]json_value_free [18:30:02]json_value_free done [18:30:02]process_json_proto returns [18:30:02]Send response to host [18:30:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227590,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [18:30:02]free response buf [18:30:02]execute_script done [18:30:02]execute_script returns [18:30:02]free content buf [18:30:02]Sock 9.Close socket [18:30:02]Sock 9.Thread stoped [18:30:02]accept exits with 7 [18:30:02]New connection [18:30:02]New thread 3067362660 created [18:30:02]Thread 3067219300 joined [18:30:02]Waiting for new connection... [18:30:02] Sock 7.Parse request [18:30:02]Sock 7.Check first char [18:30:02]Sock 7.First char is OK [18:30:02]request: POST /json_proto HTTP/1.0 [18:30:02]Method: POST [18:30:02]URL: /json_proto [18:30:02]Method is POST - this is cgi request [18:30:02]url: /json_proto [18:30:02]query_string will be loaded in cgi processing [18:30:02]execute_cgi json_proto POST (null) [18:30:02]execute_cgi path=json_proto method=POST [18:30:02]POST find Content-Length [18:30:02]Host: 172.17.44.195:8080 [18:30:02]Content-Length: 659 [18:30:02]Content-Type: application/json [18:30:02] [18:30:02]POST finish read [18:30:02]Found Content-Length = 659 [18:30:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963227", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 4.390, "sum" : 300.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:30:02]execute_script... [18:30: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)1963227", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 4.390, "sum" : 300.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:30:02]POST & json_proto [18:30:02]process_json_proto [18:30:02]json parsed OK: [18:30:02]protocol is kg_v1.0 [18:30:02]action value=close_receipt [18:30:02]process_action close_receipt [18:30:02]cmd_close_receipt [18:30:02]MH_GetDate [18:30:02]Write to MH i2c: F0 00 00 81 1B 8B [18:30:02]Write i2c OK [18:30:02]MH_I2C_Read... [18:30:02]Read from MH i2c: F0 [18:30:02]MH_I2C_Read... [18:30:02]Read from MH i2c: F0 09 00 [18:30:02]MH_I2C_Read... [18:30:02]Read from MH i2c: F0 09 00 81 1B 00 2B 4C 15 67 82 C9 CF 66 07 [18:30:02]GetLastDocTimeStamp 1729449001 [18:30:02]current date 1729449003 [18:30:02]FM_GetShiftState [18:30:02]SAM_PROTO_GetShiftState [18:30:02]wFMCommunicate request_size=4 [18:30:02]MH_SAM_APDU [18:30:02]CAPDU: 80 13 01 00 [18:30:02]Write to MH i2c: E2 08 00 82 1B 80 13 01 00 00 00 00 00 1A [18:30:02]Write i2c OK [18:30:02]MH_I2C_Read... [18:30:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:02]Read from MH i2c: E2 [18:30:02]MH_I2C_Read... [18:30:02]Read from MH i2c: E2 0E 00 [18:30:02]MH_I2C_Read... [18:30:02]Read from MH i2c: E2 0E 00 82 1B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 34 [18:30:02]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:30:02]wFMCommunicate OK [18:30:02]SAM_PROTO_GetShiftState done [18:30:02]FM_GetShiftState done [18:30:02]opened in 1729383750 [18:30:02]opened+sec_in_day 1729470150 [18:30:02]quantity*price = 30027 [18:30:02]sum+1 = 30029 [18:30:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 439 20.10.2024 18:30 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227591 ФПД: 133647779324928 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T183004&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227591&fm=133647779324928&tin=02508201610067®Number=0000000000091685&sum=30000 [18:30:03]StoreToDocumentArchive [18:30:03]shift 533 fd 227591 [18:30:03]save to /storage/0533/doc_00227591 [18:30:03]save last doc name /storage/0533/doc_00227591 to /storage/kkm_last_doc_name [18:30:03]save OK [18:30:03]Clear old archive folders... [18:30:03]ProcessDocumentItem done err = 0, tmpTLVsize=244 [18:30:03]tlvbuf is 00D9AD90 [18:30:03]SAM_PROTO_ClearQueue [18:30:03]wFMCommunicate request_size=4 [18:30:03]MH_SAM_APDU [18:30:03]CAPDU: 80 09 00 00 [18:30:03]Write to MH i2c: E2 08 00 8F 1B 80 09 00 00 00 00 00 00 1C [18:30:03]Write i2c OK [18:30:03]MH_I2C_Read... [18:30:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:30:03]Read from MH i2c: E2 [18:30:03]MH_I2C_Read... [18:30:03]Read from MH i2c: E2 03 00 [18:30:03]MH_I2C_Read... [18:30:03]Read from MH i2c: E2 03 00 8F 1B 00 90 00 1E [18:30:03]RAPDU: 90 00 [18:30:03]wFMCommunicate OK [18:30:03]SAM_PROTO_ClearQueue done [18:30:03]KKMCreateOFDPacket [18:30:03]OFDProtocolAddRootSTLVToBuf [18:30:03]FM_MakeSignedData [18:30:03]FM_MakeSignedData [18:30:03]SAM_PROTO_SignData [18:30:03]wFMCommunicate request_size=4 [18:30:03]MH_SAM_APDU [18:30:03]CAPDU: 80 0D 01 02 [18:30:03]Write to MH i2c: E2 08 00 90 1B 80 0D 01 02 00 00 00 00 24 [18:30:03]Write i2c OK [18:30:03]MH_I2C_Read... [18:30:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:30:03]Read from MH i2c: E2 [18:30:03]MH_I2C_Read... [18:30:03]Read from MH i2c: E2 03 00 [18:30:03]MH_I2C_Read... [18:30:03]Read from MH i2c: E2 03 00 90 1B 00 90 00 1F [18:30:03]RAPDU: 90 00 [18:30:03]wFMCommunicate OK [18:30:03]wFMCommunicate request_size=253 [18:30:03]MH_SAM_APDU [18:30:03]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 01 00 00 F4 03 04 00 2C 4C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 07 79 03 00 35 04 06 00 79 8D 4C 69 64 00 [18:30:03]Write to MH i2c: E2 00 01 91 1B 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 01 00 00 F4 03 04 00 2C 4C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 07 79 03 00 35 04 06 00 79 8D 4C 69 64 00 00 00 E9 [18:30:04]Write i2c OK [18:30:04]MH_I2C_Read... [18:30:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:04]Read from MH i2c: E2 [18:30:04]MH_I2C_Read... [18:30:04]Read from MH i2c: E2 03 00 [18:30:04]MH_I2C_Read... [18:30:04]Read from MH i2c: E2 03 00 91 1B 00 90 00 20 [18:30:04]RAPDU: 90 00 [18:30:04]wFMCommunicate OK [18:30:04]wFMCommunicate request_size=4 [18:30:04]MH_SAM_APDU [18:30:04]CAPDU: 80 0D 03 02 [18:30:04]Write to MH i2c: E2 08 00 92 1B 80 0D 03 02 00 00 00 00 28 [18:30:04]Write i2c OK [18:30:04]MH_I2C_Read... [18:30:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:30:04]Read from MH i2c: E2 [18:30:04]MH_I2C_Read... [18:30:04]Read from MH i2c: E2 0B 00 [18:30:04]MH_I2C_Read... [18:30:04]Read from MH i2c: E2 0B 00 92 1B 00 AB B4 B5 AB 77 EA 2F 3E 90 00 B6 [18:30:04]RAPDU: AB B4 B5 AB 77 EA 2F 3E 90 00 [18:30:04]wFMCommunicate OK [18:30:04]SAM_PROTO_SignData done [18:30:04]FM_MakeSignedData done [18:30:04]CreateOFDProtocolMessage [18:30:04]wFMCommunicate request_size=4 [18:30:04]MH_SAM_APDU [18:30:04]CAPDU: 80 11 00 00 [18:30:04]Write to MH i2c: E2 08 00 93 1B 80 11 00 00 00 00 00 00 28 [18:30:04]Write i2c OK [18:30:04]MH_I2C_Read... [18:30:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:04]Read from MH i2c: E2 [18:30:04]MH_I2C_Read... [18:30:04]Read from MH i2c: E2 17 00 [18:30:04]MH_I2C_Read... [18:30:04]Read from MH i2c: E2 17 00 93 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 7F [18:30:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:30:04]wFMCommunicate OK [18:30:04]CreateOFDProtocolMessage done [18:30:04]OFDSenderStorePacket 227591 [18:30:04]StoreOFDPacket docnum=227591 [18:30:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 20 FA 00 01 95 76 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 01 00 00 F4 03 04 00 2C 4C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 07 79 03 00 35 04 06 00 79 8D 4C 69 64 00 AB B4 B5 AB 77 EA 2F 3E [18:30:04]CheckFolder [18:30:04]dirname=/storage/ofd_packets [18:30:04]CheckFolder done [18:30:04]ProducePacketName [18:30:04]name=ofd_packets/00227591 [18:30:04]NVStorageSaveData ofd_packets/00227591 [18:30:04]File name is /storage/ofd_packets/00227591 [18:30:04]Write 294 bytes [18:30:04]NVStorageSaveData done [18:30:04]OFDSenderStorePacket done [18:30:04]KKMCreateOFDPacket done [18:30:04]NVStorageSaveData kkm_last_timestamp [18:30:04]File name is /storage/kkm_last_timestamp [18:30:04]Write 4 bytes [18:30:04]NVStorageSaveData done [18:30:04]ExternCall_PrintAddStr [18:30:04]wPrintStart [18:30:04]Write to MH i2c: 01 00 00 94 1B AF [18:30:04]OFD Sender: Processing packet 227591 [packets to send 38, broken 37] [18:30:04]ProducePacketName [18:30:04]name=ofd_packets/00227591 [18:30:04]OFD Sender: To server: pG, [18:30:04]CommunicateWithHost lk.salyk.kg:30040 [18:30:04]ConnectInit lk.salyk.kg [18:30:04]Write i2c OK [18:30:04]MH_I2C_Read... [18:30:04]Read from MH i2c: 01 [18:30:04]MH_I2C_Read... [18:30:04]Read from MH i2c: 01 07 00 [18:30:04]MH_I2C_Read... [18:30:04]Read from MH i2c: 01 07 00 94 1B 00 00 00 00 00 FF 0F C4 [18:30:04]RasterBufferAndPrint [18:30:04]line Счет N : (1)1963227 [18:30:04]line ИНН: 02508201610067 [18:30:04]line Контрольно-Кассовый Чек [18:30:04]line ПРОДАЖА [18:30:04]line ТРК (МРК, ГНК) : 52 [18:30:04]line Товар: 2710124130 [18:30:04]line SU-92 [18:30:04]line 4.390 * 68.40 [18:30:04]line = 300.28 [18:30:04]line НДС 12% НСП 1% [18:30:04]line > о реализуемом товаре [18:30:04]line ОКРУГЛЕНИЕ: -0.28 [18:30:04]line ИТОГО: 300.00 [18:30:04]line Внесено: 300.00 [18:30:04]line СДАЧА: 0.00 [18:30:04]line НСП 1% : 2.66 [18:30:04]line НДС 12% : 31.89 [18:30:04]line Наличными: 300.00 [18:30:04]line Безнал.: 0.00 [18:30:04]line Место: АЗС № 133 "Партнер Нефть" [18:30:04]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:30:04]line СНО: Общий режим [18:30:04]line Чек 439 20.10.2024 18:30 [18:30:04]line Смена: 533 ФФД: 1.0 [18:30:04]line ЗНМ: 0300000091 [18:30:04]line РНМ: 0000000000091685 [18:30:04]line Версия ККМ: 001 [18:30:04]line ФМ: 0000000000871839 [18:30:04]line ФД: 227591 [18:30:04]line ФПД: 133647779324928 [18:30:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T183004&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227591&fm=133647779324928&tin=02508201610067®Number=0000000000091685&sum=30000 [18:30:04]written 0, free lines is 4095 [18:30:04]Connected sock=10 [18:30: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 33 39 08 01 00 00 20 FA 00 01 95 76 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 01 00 00 F4 03 04 00 2C 4C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 07 79 03 00 35 04 06 00 79 8D 4C 69 64 00 AB B4 B5 AB 77 EA 2F 3E [18:30: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 33 39 4F 00 00 00 FA 2D 47 00 D4 BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 07 79 03 00 F4 03 04 00 2A F7 14 67 B6 04 01 00 00 C8 5D 4E EB 4E 98 1B 72 [18:30:04]CommunicateWithHost err = 0 [18:30:04]CheckOFDResponse [18:30:04]1017 (14) - 77093643461234 [18:30:04]1041 (16) - 0000000000871839 [18:30:04]1040 (4) - 227591 [18:30:04]1012 (4) - 20.10.2024 12:27 [18:30:04]1206 (1) - 0 [18:30:04]OFD Sender: Remove packet 227591 [18:30:04]ProducePacketName [18:30:04]name=ofd_packets/00227591 [18:30:04]NVStorageDeleteData [18:30:04]Write to MH i2c: 01 00 00 BE 1B D9 [18:30:04]Write i2c OK [18:30:04]MH_I2C_Read... [18:30:04]Read from MH i2c: 01 [18:30:04]MH_I2C_Read... [18:30:04]Read from MH i2c: 01 07 00 [18:30:04]MH_I2C_Read... [18:30:04]Read from MH i2c: 01 07 00 BE 1B 00 00 00 00 00 07 0D F4 [18:30:04]RasterBufferAndPrint [18:30:04]line [18:30:04]line [18:30:04]line [18:30:04]line [18:30:04]line [18:30:04]written 0, free lines is 3347 [18:30:04]process_action close_receipt done [18:30:04]requested_data is exist [18:30:04]produce_requested_data [18:30:04]requested_item fm.sn is exist - process it [18:30:04]wFMCommunicate request_size=4 [18:30:04]MH_SAM_APDU [18:30:04]CAPDU: 80 11 00 00 [18:30:04]Write to MH i2c: E2 08 00 C5 1B 80 11 00 00 00 00 00 00 5A [18:30:04]Write i2c OK [18:30:04]MH_I2C_Read... [18:30:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:04]Read from MH i2c: E2 [18:30:04]MH_I2C_Read... [18:30:04]Read from MH i2c: E2 17 00 [18:30:04]MH_I2C_Read... [18:30:04]Read from MH i2c: E2 17 00 C5 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B1 [18:30:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:30:04]wFMCommunicate OK [18:30:04]requested_item fd.num is exist - process it [18:30:04]SAM_PROTO_GetFieldsCounters [18:30:04]wFMCommunicate request_size=4 [18:30:04]MH_SAM_APDU [18:30:04]CAPDU: 80 13 00 00 [18:30:04]Write to MH i2c: E2 08 00 C6 1B 80 13 00 00 00 00 00 00 5D [18:30:04]Write i2c OK [18:30:04]MH_I2C_Read... [18:30:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:30:05]Read from MH i2c: E2 [18:30:05]MH_I2C_Read... [18:30:05]Read from MH i2c: E2 62 00 [18:30:05]MH_I2C_Read... [18:30:05]Read from MH i2c: E2 62 00 C6 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 07 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 B7 01 00 00 5E 04 04 00 B7 01 00 00 57 04 04 00 B8 01 00 00 19 04 04 00 00 00 00 00 90 00 48 [18:30:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 07 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 B7 01 00 00 5E 04 04 00 B7 01 00 00 57 04 04 00 B8 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:30:05]wFMCommunicate OK [18:30:05]SAM_PROTO_GetFieldsCounters done [18:30:05]requested_item shift.num is exist - process it [18:30:05]requested_item shift.opened is exist - process it [18:30:05]req_shift_opened [18:30:05]FM_GetShiftState [18:30:05]SAM_PROTO_GetShiftState [18:30:05]wFMCommunicate request_size=4 [18:30:05]MH_SAM_APDU [18:30:05]CAPDU: 80 13 01 00 [18:30:05]Write to MH i2c: E2 08 00 C7 1B 80 13 01 00 00 00 00 00 5F [18:30:05]Write i2c OK [18:30:05]MH_I2C_Read... [18:30:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:05]Read from MH i2c: E2 [18:30:05]MH_I2C_Read... [18:30:05]Read from MH i2c: E2 0E 00 [18:30:05]MH_I2C_Read... [18:30:05]Read from MH i2c: E2 0E 00 C7 1B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 79 [18:30:05]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:30:05]wFMCommunicate OK [18:30:05]SAM_PROTO_GetShiftState done [18:30:05]FM_GetShiftState done [18:30:05]req_shift_opened done [18:30:05]requested_item shift.open_date is exist - process it [18:30:05]req_shift_open_date [18:30:05]req_shift_open_date done [18:30:05]produce_requested_data done [18:30:05]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227591,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [18:30:05]process_action_free close_receipt [18:30:05]json_value_free [18:30:05]json_value_free done [18:30:05]process_json_proto returns [18:30:05]Send response to host [18:30:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227591,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [18:30:05]free response buf [18:30:05]execute_script done [18:30:05]execute_script returns [18:30:05]free content buf [18:30:05]Sock 7.Close socket [18:30:05]Sock 7.Thread stoped [18:30:05]OFD Sender: No OFD packet to send [18:30:10]OFD Sender: No OFD packet to send [18:30:15]OFD Sender: No OFD packet to send [18:30:20]OFD Sender: No OFD packet to send [18:30:25]OFD Sender: No OFD packet to send [18:30:30]OFD Sender: No OFD packet to send [18:30:31]accept exits with 9 [18:30:31]New connection [18:30:31]New thread 3067219300 created [18:30:31]Thread 3067362660 joined [18:30:31]Waiting for new connection... [18:30:31] Sock 9.Parse request [18:30:31]Sock 9.Check first char [18:30:31]Sock 9.First char is OK [18:30:31]request: POST /json_proto HTTP/1.0 [18:30:31]Method: POST [18:30:31]URL: /json_proto [18:30:31]Method is POST - this is cgi request [18:30:31]url: /json_proto [18:30:31]query_string will be loaded in cgi processing [18:30:31]execute_cgi json_proto POST (null) [18:30:31]execute_cgi path=json_proto method=POST [18:30:31]POST find Content-Length [18:30:31]Host: 172.17.44.195:8080 [18:30:31]Content-Length: 664 [18:30:31]Content-Type: application/json [18:30:31] [18:30:31]POST finish read [18:30:31]Found Content-Length = 664 [18:30:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963229", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 17.400, "sum" : 1190.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1190.00, "total" : 1190.00, "payments": [ { "type": 0, "sum" : 1190.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:30:31]execute_script... [18:30: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)1963229", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 17.400, "sum" : 1190.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1190.00, "total" : 1190.00, "payments": [ { "type": 0, "sum" : 1190.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:30:31]POST & json_proto [18:30:31]process_json_proto [18:30:31]json parsed OK: [18:30:31]protocol is kg_v1.0 [18:30:31]action value=close_receipt [18:30:31]process_action close_receipt [18:30:31]cmd_close_receipt [18:30:31]MH_GetDate [18:30:31]Write to MH i2c: F0 00 00 C8 1B D2 [18:30:31]Write i2c OK [18:30:31]MH_I2C_Read... [18:30:31]Read from MH i2c: F0 [18:30:31]MH_I2C_Read... [18:30:31]Read from MH i2c: F0 09 00 [18:30:31]MH_I2C_Read... [18:30:31]Read from MH i2c: F0 09 00 C8 1B 00 49 4C 15 67 82 C9 CF 66 6C [18:30:31]GetLastDocTimeStamp 1729449004 [18:30:31]current date 1729449033 [18:30:31]FM_GetShiftState [18:30:31]SAM_PROTO_GetShiftState [18:30:31]wFMCommunicate request_size=4 [18:30:31]MH_SAM_APDU [18:30:31]CAPDU: 80 13 01 00 [18:30:31]Write to MH i2c: E2 08 00 C9 1B 80 13 01 00 00 00 00 00 61 [18:30:31]Write i2c OK [18:30:31]MH_I2C_Read... [18:30:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:31]Read from MH i2c: E2 [18:30:31]MH_I2C_Read... [18:30:31]Read from MH i2c: E2 0E 00 [18:30:31]MH_I2C_Read... [18:30:31]Read from MH i2c: E2 0E 00 C9 1B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 7B [18:30:31]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:30:31]wFMCommunicate OK [18:30:31]SAM_PROTO_GetShiftState done [18:30:31]FM_GetShiftState done [18:30:31]opened in 1729383750 [18:30:31]opened+sec_in_day 1729470150 [18:30:31]quantity*price = 119016 [18:30:31]sum+1 = 119017 [18:30:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1190.00 Внесено: 1190.00 СДАЧА: 0.00 НСП 1% : 10.53 НДС 12% : 126.39 Наличными: 1190.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 440 20.10.2024 18:30 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227592 ФПД: 66294823035200 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T183033&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227592&fm=66294823035200&tin=02508201610067®Number=0000000000091685&sum=119000 [18:30:32]StoreToDocumentArchive [18:30:32]shift 533 fd 227592 [18:30:32]save to /storage/0533/doc_00227592 [18:30:32]save last doc name /storage/0533/doc_00227592 to /storage/kkm_last_doc_name [18:30:32]save OK [18:30:32]Clear old archive folders... [18:30:32]ProcessDocumentItem done err = 0, tmpTLVsize=244 [18:30:32]tlvbuf is B6F0CED0 [18:30:32]SAM_PROTO_ClearQueue [18:30:32]wFMCommunicate request_size=4 [18:30:32]MH_SAM_APDU [18:30:32]CAPDU: 80 09 00 00 [18:30:32]Write to MH i2c: E2 08 00 D6 1B 80 09 00 00 00 00 00 00 63 [18:30:32]Write i2c OK [18:30:32]MH_I2C_Read... [18:30:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:30:32]Read from MH i2c: E2 [18:30:32]MH_I2C_Read... [18:30:32]Read from MH i2c: E2 03 00 [18:30:32]MH_I2C_Read... [18:30:32]Read from MH i2c: E2 03 00 D6 1B 00 90 00 65 [18:30:32]RAPDU: 90 00 [18:30:32]wFMCommunicate OK [18:30:32]SAM_PROTO_ClearQueue done [18:30:32]KKMCreateOFDPacket [18:30:32]OFDProtocolAddRootSTLVToBuf [18:30:32]FM_MakeSignedData [18:30:32]FM_MakeSignedData [18:30:32]SAM_PROTO_SignData [18:30:32]wFMCommunicate request_size=4 [18:30:32]MH_SAM_APDU [18:30:32]CAPDU: 80 0D 01 02 [18:30:32]Write to MH i2c: E2 08 00 D7 1B 80 0D 01 02 00 00 00 00 6B [18:30:32]Write i2c OK [18:30:32]MH_I2C_Read... [18:30:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:30:32]Read from MH i2c: E2 [18:30:32]MH_I2C_Read... [18:30:32]Read from MH i2c: E2 03 00 [18:30:32]MH_I2C_Read... [18:30:32]Read from MH i2c: E2 03 00 D7 1B 00 90 00 66 [18:30:32]RAPDU: 90 00 [18:30:32]wFMCommunicate OK [18:30:32]wFMCommunicate request_size=253 [18:30:32]MH_SAM_APDU [18:30:32]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 F8 43 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 E8 D0 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D0 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 31 00 00 00 00 07 04 06 00 D8 D0 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 01 00 00 F4 03 04 00 49 4C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 08 79 03 00 35 04 06 00 3C 4B 77 60 A1 40 [18:30:32]Write to MH i2c: E2 00 01 D8 1B 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 F8 43 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 E8 D0 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D0 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 31 00 00 00 00 07 04 06 00 D8 D0 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 01 00 00 F4 03 04 00 49 4C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 08 79 03 00 35 04 06 00 3C 4B 77 60 A1 40 00 00 98 [18:30:32]Write i2c OK [18:30:32]MH_I2C_Read... [18:30:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:33]Read from MH i2c: E2 [18:30:33]MH_I2C_Read... [18:30:33]Read from MH i2c: E2 03 00 [18:30:33]MH_I2C_Read... [18:30:33]Read from MH i2c: E2 03 00 D8 1B 00 90 00 67 [18:30:33]RAPDU: 90 00 [18:30:33]wFMCommunicate OK [18:30:33]wFMCommunicate request_size=4 [18:30:33]MH_SAM_APDU [18:30:33]CAPDU: 80 0D 03 02 [18:30:33]Write to MH i2c: E2 08 00 D9 1B 80 0D 03 02 00 00 00 00 6F [18:30:33]Write i2c OK [18:30:33]MH_I2C_Read... [18:30:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:30:33]Read from MH i2c: E2 [18:30:33]MH_I2C_Read... [18:30:33]Read from MH i2c: E2 0B 00 [18:30:33]MH_I2C_Read... [18:30:33]Read from MH i2c: E2 0B 00 D9 1B 00 80 84 80 6D 47 D3 CB 5A 90 00 A0 [18:30:33]RAPDU: 80 84 80 6D 47 D3 CB 5A 90 00 [18:30:33]wFMCommunicate OK [18:30:33]SAM_PROTO_SignData done [18:30:33]FM_MakeSignedData done [18:30:33]CreateOFDProtocolMessage [18:30:33]wFMCommunicate request_size=4 [18:30:33]MH_SAM_APDU [18:30:33]CAPDU: 80 11 00 00 [18:30:33]Write to MH i2c: E2 08 00 DA 1B 80 11 00 00 00 00 00 00 6F [18:30:33]Write i2c OK [18:30:33]MH_I2C_Read... [18:30:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:33]Read from MH i2c: E2 [18:30:33]MH_I2C_Read... [18:30:33]Read from MH i2c: E2 17 00 [18:30:33]MH_I2C_Read... [18:30:33]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 33 39 90 00 C6 [18:30:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:30:33]wFMCommunicate OK [18:30:33]CreateOFDProtocolMessage done [18:30:33]OFDSenderStorePacket 227592 [18:30:33]StoreOFDPacket docnum=227592 [18:30:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 A7 22 00 01 4C 86 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 F8 43 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 E8 D0 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D0 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 31 00 00 00 00 07 04 06 00 D8 D0 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 01 00 00 F4 03 04 00 49 4C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 08 79 03 00 35 04 06 00 3C 4B 77 60 A1 40 80 84 80 6D 47 D3 CB 5A [18:30:33]CheckFolder [18:30:33]dirname=/storage/ofd_packets [18:30:33]CheckFolder done [18:30:33]ProducePacketName [18:30:33]name=ofd_packets/00227592 [18:30:33]NVStorageSaveData ofd_packets/00227592 [18:30:33]File name is /storage/ofd_packets/00227592 [18:30:33]Write 294 bytes [18:30:33]NVStorageSaveData done [18:30:33]OFDSenderStorePacket done [18:30:33]KKMCreateOFDPacket done [18:30:33]NVStorageSaveData kkm_last_timestamp [18:30:33]File name is /storage/kkm_last_timestamp [18:30:33]Write 4 bytes [18:30:33]NVStorageSaveData done [18:30:33]ExternCall_PrintAddStr [18:30:33]wPrintStart [18:30:33]Write to MH i2c: 01 00 00 DB 1B F6 [18:30:33]Write i2c OK [18:30:33]MH_I2C_Read... [18:30:33]Read from MH i2c: 01 [18:30:33]MH_I2C_Read... [18:30:33]Read from MH i2c: 01 07 00 [18:30:33]MH_I2C_Read... [18:30:33]Read from MH i2c: 01 07 00 DB 1B 00 00 00 00 00 FF 0F 0B [18:30:33]RasterBufferAndPrint [18:30:33]line Счет N : (1)1963229 [18:30:33]line ИНН: 02508201610067 [18:30:33]line Контрольно-Кассовый Чек [18:30:33]line ПРОДАЖА [18:30:33]line ТРК (МРК, ГНК) : 62 [18:30:33]line Товар: 2710124130 [18:30:33]line SU-92 [18:30:33]line 17.400 * 68.40 [18:30:33]line = 1190.16 [18:30:33]line НДС 12% НСП 1% [18:30:33]line > о реализуемом товаре [18:30:33]line ОКРУГЛЕНИЕ: -0.16 [18:30:33]line ИТОГО: 1190.00 [18:30:33]line Внесено: 1190.00 [18:30:33]line СДАЧА: 0.00 [18:30:33]line НСП 1% : 10.53 [18:30:33]line НДС 12% : 126.39 [18:30:33]line Наличными: 1190.00 [18:30:33]line Безнал.: 0.00 [18:30:33]line Место: АЗС № 133 "Партнер Нефть" [18:30:33]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:30:33]line СНО: Общий режим [18:30:33]line Чек 440 20.10.2024 18:30 [18:30:33]line Смена: 533 ФФД: 1.0 [18:30:33]line ЗНМ: 0300000091 [18:30:33]line РНМ: 0000000000091685 [18:30:33]line Версия ККМ: 001 [18:30:33]line ФМ: 0000000000871839 [18:30:33]line ФД: 227592 [18:30:33]line ФПД: 66294823035200 [18:30:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T183033&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227592&fm=66294823035200&tin=02508201610067®Number=0000000000091685&sum=119000 [18:30:33]OFD Sender: Processing packet 227592 [packets to send 38, broken 37] [18:30:33]ProducePacketName [18:30:33]name=ofd_packets/00227592 [18:30:33]OFD Sender: To server: pG, [18:30:33]CommunicateWithHost lk.salyk.kg:30040 [18:30:33]ConnectInit lk.salyk.kg [18:30:33]written 0, free lines is 4095 [18:30:33]Connected sock=10 [18:30: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 33 39 08 01 00 00 A7 22 00 01 4C 86 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 F8 43 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 E8 D0 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D0 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 31 00 00 00 00 07 04 06 00 D8 D0 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 01 00 00 F4 03 04 00 49 4C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 08 79 03 00 35 04 06 00 3C 4B 77 60 A1 40 80 84 80 6D 47 D3 CB 5A [18:30: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 33 39 4F 00 00 00 66 BD 47 00 D9 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 33 39 10 04 04 00 08 79 03 00 F4 03 04 00 47 F7 14 67 B6 04 01 00 00 4C 93 B3 28 A0 41 E3 13 [18:30:33]CommunicateWithHost err = 0 [18:30:33]CheckOFDResponse [18:30:33]1017 (14) - 77093643461234 [18:30:33]1041 (16) - 0000000000871839 [18:30:33]1040 (4) - 227592 [18:30:33]1012 (4) - 20.10.2024 12:27 [18:30:33]1206 (1) - 0 [18:30:33]OFD Sender: Remove packet 227592 [18:30:33]ProducePacketName [18:30:33]name=ofd_packets/00227592 [18:30:33]NVStorageDeleteData [18:30:33]Write to MH i2c: 01 00 00 05 1C 21 [18:30:33]Write i2c OK [18:30:33]MH_I2C_Read... [18:30:33]Read from MH i2c: 01 [18:30:33]MH_I2C_Read... [18:30:33]Read from MH i2c: 01 07 00 [18:30:33]MH_I2C_Read... [18:30:33]Read from MH i2c: 01 07 00 05 1C 00 00 00 00 00 17 0D 4C [18:30:33]RasterBufferAndPrint [18:30:33]line [18:30:33]line [18:30:33]line [18:30:33]line [18:30:33]line [18:30:33]written 0, free lines is 3357 [18:30:33]process_action close_receipt done [18:30:33]requested_data is exist [18:30:33]produce_requested_data [18:30:33]requested_item fm.sn is exist - process it [18:30:33]wFMCommunicate request_size=4 [18:30:33]MH_SAM_APDU [18:30:33]CAPDU: 80 11 00 00 [18:30:33]Write to MH i2c: E2 08 00 0C 1C 80 11 00 00 00 00 00 00 A2 [18:30:33]Write i2c OK [18:30:33]MH_I2C_Read... [18:30:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:34]Read from MH i2c: E2 [18:30:34]MH_I2C_Read... [18:30:34]Read from MH i2c: E2 17 00 [18:30:34]MH_I2C_Read... [18:30:34]Read from MH i2c: E2 17 00 0C 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F9 [18:30:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:30:34]wFMCommunicate OK [18:30:34]requested_item fd.num is exist - process it [18:30:34]SAM_PROTO_GetFieldsCounters [18:30:34]wFMCommunicate request_size=4 [18:30:34]MH_SAM_APDU [18:30:34]CAPDU: 80 13 00 00 [18:30:34]Write to MH i2c: E2 08 00 0D 1C 80 13 00 00 00 00 00 00 A5 [18:30:34]Write i2c OK [18:30:34]MH_I2C_Read... [18:30:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:30:34]Read from MH i2c: E2 [18:30:34]MH_I2C_Read... [18:30:34]Read from MH i2c: E2 62 00 [18:30:34]MH_I2C_Read... [18:30:34]Read from MH i2c: E2 62 00 0D 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 08 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 B8 01 00 00 5E 04 04 00 B8 01 00 00 57 04 04 00 B9 01 00 00 19 04 04 00 00 00 00 00 90 00 94 [18:30: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 08 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 B8 01 00 00 5E 04 04 00 B8 01 00 00 57 04 04 00 B9 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:30:34]wFMCommunicate OK [18:30:34]SAM_PROTO_GetFieldsCounters done [18:30:34]requested_item shift.num is exist - process it [18:30:34]requested_item shift.opened is exist - process it [18:30:34]req_shift_opened [18:30:34]FM_GetShiftState [18:30:34]SAM_PROTO_GetShiftState [18:30:34]wFMCommunicate request_size=4 [18:30:34]MH_SAM_APDU [18:30:34]CAPDU: 80 13 01 00 [18:30:34]Write to MH i2c: E2 08 00 0E 1C 80 13 01 00 00 00 00 00 A7 [18:30:34]Write i2c OK [18:30:34]MH_I2C_Read... [18:30:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:34]Read from MH i2c: E2 [18:30:34]MH_I2C_Read... [18:30:34]Read from MH i2c: E2 0E 00 [18:30:34]MH_I2C_Read... [18:30:34]Read from MH i2c: E2 0E 00 0E 1C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 C1 [18:30:34]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:30:34]wFMCommunicate OK [18:30:34]SAM_PROTO_GetShiftState done [18:30:34]FM_GetShiftState done [18:30:34]req_shift_opened done [18:30:34]requested_item shift.open_date is exist - process it [18:30:34]req_shift_open_date [18:30:34]req_shift_open_date done [18:30:34]produce_requested_data done [18:30:34]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227592,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [18:30:34]process_action_free close_receipt [18:30:34]json_value_free [18:30:34]json_value_free done [18:30:34]process_json_proto returns [18:30:34]Send response to host [18:30:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227592,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [18:30:34]free response buf [18:30:34]execute_script done [18:30:34]execute_script returns [18:30:34]free content buf [18:30:34]Sock 9.Close socket [18:30:34]Sock 9.Thread stoped [18:30:34]OFD Sender: No OFD packet to send [18:30:34]accept exits with 7 [18:30:34]New connection [18:30:34]New thread 3067362660 created [18:30:34]Thread 3067219300 joined [18:30:34]Waiting for new connection... [18:30:34] Sock 7.Parse request [18:30:34]Sock 7.Check first char [18:30:34]Sock 7.First char is OK [18:30:34]request: POST /json_proto HTTP/1.0 [18:30:34]Method: POST [18:30:34]URL: /json_proto [18:30:34]Method is POST - this is cgi request [18:30:34]url: /json_proto [18:30:34]query_string will be loaded in cgi processing [18:30:34]execute_cgi json_proto POST (null) [18:30:34]execute_cgi path=json_proto method=POST [18:30:34]POST find Content-Length [18:30:34]Host: 172.17.44.195:8080 [18:30:34]Content-Length: 659 [18:30:34]Content-Type: application/json [18:30:34] [18:30:34]POST finish read [18:30:34]Found Content-Length = 659 [18:30:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963226", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 4.390, "sum" : 300.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:30:34]execute_script... [18:30:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963226", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 4.390, "sum" : 300.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:30:34]POST & json_proto [18:30:34]process_json_proto [18:30:34]json parsed OK: [18:30:34]protocol is kg_v1.0 [18:30:34]action value=close_receipt [18:30:34]process_action close_receipt [18:30:34]cmd_close_receipt [18:30:34]MH_GetDate [18:30:34]Write to MH i2c: F0 00 00 0F 1C 1A [18:30:34]Write i2c OK [18:30:34]MH_I2C_Read... [18:30:34]Read from MH i2c: F0 [18:30:34]MH_I2C_Read... [18:30:34]Read from MH i2c: F0 09 00 [18:30:34]MH_I2C_Read... [18:30:34]Read from MH i2c: F0 09 00 0F 1C 00 4C 4C 15 67 82 C9 CF 66 B7 [18:30:34]GetLastDocTimeStamp 1729449033 [18:30:34]current date 1729449036 [18:30:34]FM_GetShiftState [18:30:34]SAM_PROTO_GetShiftState [18:30:34]wFMCommunicate request_size=4 [18:30:34]MH_SAM_APDU [18:30:34]CAPDU: 80 13 01 00 [18:30:34]Write to MH i2c: E2 08 00 10 1C 80 13 01 00 00 00 00 00 A9 [18:30:34]Write i2c OK [18:30:34]MH_I2C_Read... [18:30:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:34]Read from MH i2c: E2 [18:30:34]MH_I2C_Read... [18:30:34]Read from MH i2c: E2 0E 00 [18:30:34]MH_I2C_Read... [18:30:34]Read from MH i2c: E2 0E 00 10 1C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 C3 [18:30:34]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:30:34]wFMCommunicate OK [18:30:34]SAM_PROTO_GetShiftState done [18:30:34]FM_GetShiftState done [18:30:34]opened in 1729383750 [18:30:34]opened+sec_in_day 1729470150 [18:30:34]quantity*price = 30027 [18:30:34]sum+1 = 30029 [18:30:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 441 20.10.2024 18:30 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227593 ФПД: 252412589256360 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T183036&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227593&fm=252412589256360&tin=02508201610067®Number=0000000000091685&sum=30000 [18:30:36]StoreToDocumentArchive [18:30:36]shift 533 fd 227593 [18:30:36]save to /storage/0533/doc_00227593 [18:30:36]save last doc name /storage/0533/doc_00227593 to /storage/kkm_last_doc_name [18:30:36]save OK [18:30:36]Clear old archive folders... [18:30:36]ProcessDocumentItem done err = 0, tmpTLVsize=244 [18:30:36]tlvbuf is 00D83110 [18:30:36]SAM_PROTO_ClearQueue [18:30:36]wFMCommunicate request_size=4 [18:30:36]MH_SAM_APDU [18:30:36]CAPDU: 80 09 00 00 [18:30:36]Write to MH i2c: E2 08 00 1D 1C 80 09 00 00 00 00 00 00 AB [18:30:36]Write i2c OK [18:30:36]MH_I2C_Read... [18:30:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:30:36]Read from MH i2c: E2 [18:30:36]MH_I2C_Read... [18:30:36]Read from MH i2c: E2 03 00 [18:30:36]MH_I2C_Read... [18:30:36]Read from MH i2c: E2 03 00 1D 1C 00 90 00 AD [18:30:36]RAPDU: 90 00 [18:30:36]wFMCommunicate OK [18:30:36]SAM_PROTO_ClearQueue done [18:30:36]KKMCreateOFDPacket [18:30:36]OFDProtocolAddRootSTLVToBuf [18:30:36]FM_MakeSignedData [18:30:36]FM_MakeSignedData [18:30:36]SAM_PROTO_SignData [18:30:36]wFMCommunicate request_size=4 [18:30:36]MH_SAM_APDU [18:30:36]CAPDU: 80 0D 01 02 [18:30:36]Write to MH i2c: E2 08 00 1E 1C 80 0D 01 02 00 00 00 00 B3 [18:30:36]Write i2c OK [18:30:36]MH_I2C_Read... [18:30:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:30:36]Read from MH i2c: E2 [18:30:36]MH_I2C_Read... [18:30:36]Read from MH i2c: E2 03 00 [18:30:36]MH_I2C_Read... [18:30:36]Read from MH i2c: E2 03 00 1E 1C 00 90 00 AE [18:30:36]RAPDU: 90 00 [18:30:36]wFMCommunicate OK [18:30:36]wFMCommunicate request_size=253 [18:30:36]MH_SAM_APDU [18:30:36]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 75 0C 00 00 00 00 07 04 06 00 30 75 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 01 00 00 F4 03 04 00 4C 4C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 09 79 03 00 35 04 06 00 E5 91 62 B8 2E A8 [18:30:36]Write to MH i2c: E2 00 01 1F 1C 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 75 0C 00 00 00 00 07 04 06 00 30 75 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 01 00 00 F4 03 04 00 4C 4C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 09 79 03 00 35 04 06 00 E5 91 62 B8 2E A8 00 00 E3 [18:30:36]Write i2c OK [18:30:36]MH_I2C_Read... [18:30:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:36]Read from MH i2c: E2 [18:30:36]MH_I2C_Read... [18:30:36]Read from MH i2c: E2 03 00 [18:30:36]MH_I2C_Read... [18:30:36]Read from MH i2c: E2 03 00 1F 1C 00 90 00 AF [18:30:36]RAPDU: 90 00 [18:30:36]wFMCommunicate OK [18:30:36]wFMCommunicate request_size=4 [18:30:36]MH_SAM_APDU [18:30:36]CAPDU: 80 0D 03 02 [18:30:36]Write to MH i2c: E2 08 00 20 1C 80 0D 03 02 00 00 00 00 B7 [18:30:36]Write i2c OK [18:30:36]MH_I2C_Read... [18:30:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:30:36]Read from MH i2c: E2 [18:30:36]MH_I2C_Read... [18:30:36]Read from MH i2c: E2 0B 00 [18:30:36]MH_I2C_Read... [18:30:36]Read from MH i2c: E2 0B 00 20 1C 00 B5 28 7A 46 E5 B4 81 3D 90 00 AC [18:30:36]RAPDU: B5 28 7A 46 E5 B4 81 3D 90 00 [18:30:36]wFMCommunicate OK [18:30:36]SAM_PROTO_SignData done [18:30:36]FM_MakeSignedData done [18:30:36]CreateOFDProtocolMessage [18:30:36]wFMCommunicate request_size=4 [18:30:36]MH_SAM_APDU [18:30:36]CAPDU: 80 11 00 00 [18:30:36]Write to MH i2c: E2 08 00 21 1C 80 11 00 00 00 00 00 00 B7 [18:30:36]Write i2c OK [18:30:36]MH_I2C_Read... [18:30:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:36]Read from MH i2c: E2 [18:30:36]MH_I2C_Read... [18:30:36]Read from MH i2c: E2 17 00 [18:30:36]MH_I2C_Read... [18:30:36]Read from MH i2c: E2 17 00 21 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 0E [18:30:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:30:36]wFMCommunicate OK [18:30:36]CreateOFDProtocolMessage done [18:30:36]OFDSenderStorePacket 227593 [18:30:36]StoreOFDPacket docnum=227593 [18:30:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 00 D3 00 01 9E DE 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 75 0C 00 00 00 00 07 04 06 00 30 75 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 01 00 00 F4 03 04 00 4C 4C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 09 79 03 00 35 04 06 00 E5 91 62 B8 2E A8 B5 28 7A 46 E5 B4 81 3D [18:30:36]CheckFolder [18:30:36]dirname=/storage/ofd_packets [18:30:36]CheckFolder done [18:30:36]ProducePacketName [18:30:36]name=ofd_packets/00227593 [18:30:36]NVStorageSaveData ofd_packets/00227593 [18:30:36]File name is /storage/ofd_packets/00227593 [18:30:36]Write 294 bytes [18:30:36]NVStorageSaveData done [18:30:36]OFDSenderStorePacket done [18:30:36]KKMCreateOFDPacket done [18:30:36]NVStorageSaveData kkm_last_timestamp [18:30:36]File name is /storage/kkm_last_timestamp [18:30:36]Write 4 bytes [18:30:36]NVStorageSaveData done [18:30:36]ExternCall_PrintAddStr [18:30:36]wPrintStart [18:30:36]Write to MH i2c: 01 00 00 22 1C 3E [18:30:36]Write i2c OK [18:30:36]MH_I2C_Read... [18:30:36]Read from MH i2c: 01 [18:30:36]MH_I2C_Read... [18:30:36]Read from MH i2c: 01 07 00 [18:30:36]MH_I2C_Read... [18:30:36]Read from MH i2c: 01 07 00 22 1C 00 00 00 00 00 FF 0F 53 [18:30:36]RasterBufferAndPrint [18:30:36]line Счет N : (1)1963226 [18:30:36]line ИНН: 02508201610067 [18:30:36]line Контрольно-Кассовый Чек [18:30:36]line ПРОДАЖА [18:30:36]line ТРК (МРК, ГНК) : 32 [18:30:36]line Товар: 2710124130 [18:30:36]line SU-92 [18:30:36]line 4.390 * 68.40 [18:30:36]line = 300.28 [18:30:36]line НДС 12% НСП 1% [18:30:36]line > о реализуемом товаре [18:30:36]line ОКРУГЛЕНИЕ: -0.28 [18:30:36]line ИТОГО: 300.00 [18:30:36]line Внесено: 300.00 [18:30:36]line СДАЧА: 0.00 [18:30:36]line НСП 1% : 2.66 [18:30:36]line НДС 12% : 31.89 [18:30:36]line Наличными: 300.00 [18:30:36]line Безнал.: 0.00 [18:30:36]line Место: АЗС № 133 "Партнер Нефть" [18:30:36]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:30:36]line СНО: Общий режим [18:30:36]line Чек 441 20.10.2024 18:30 [18:30:36]line Смена: 533 ФФД: 1.0 [18:30:36]line ЗНМ: 0300000091 [18:30:36]line РНМ: 0000000000091685 [18:30:36]line Версия ККМ: 001 [18:30:36]line ФМ: 0000000000871839 [18:30:36]line ФД: 227593 [18:30:36]line ФПД: 252412589256360 [18:30:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T183036&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227593&fm=252412589256360&tin=02508201610067®Number=0000000000091685&sum=30000 [18:30:36]written 0, free lines is 4095 [18:30:36]OFD Sender: Processing packet 227593 [packets to send 38, broken 37] [18:30:36]ProducePacketName [18:30:36]name=ofd_packets/00227593 [18:30:36]OFD Sender: To server: pG, [18:30:36]CommunicateWithHost lk.salyk.kg:30040 [18:30:36]ConnectInit lk.salyk.kg [18:30:36]Connected sock=10 [18:30:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 00 D3 00 01 9E DE 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 75 0C 00 00 00 00 07 04 06 00 30 75 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 01 00 00 F4 03 04 00 4C 4C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 09 79 03 00 35 04 06 00 E5 91 62 B8 2E A8 B5 28 7A 46 E5 B4 81 3D [18:30:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 C6 11 47 00 6C 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 09 79 03 00 F4 03 04 00 4A F7 14 67 B6 04 01 00 00 85 C9 09 4B F5 25 C6 0E [18:30:37]CommunicateWithHost err = 0 [18:30:37]CheckOFDResponse [18:30:37]1017 (14) - 77093643461234 [18:30:37]1041 (16) - 0000000000871839 [18:30:37]1040 (4) - 227593 [18:30:37]1012 (4) - 20.10.2024 12:27 [18:30:37]1206 (1) - 0 [18:30:37]OFD Sender: Remove packet 227593 [18:30:37]ProducePacketName [18:30:37]name=ofd_packets/00227593 [18:30:37]NVStorageDeleteData [18:30:37]Write to MH i2c: 01 00 00 4C 1C 68 [18:30:37]Write i2c OK [18:30:37]MH_I2C_Read... [18:30:37]Read from MH i2c: 01 [18:30:37]MH_I2C_Read... [18:30:37]Read from MH i2c: 01 07 00 [18:30:37]MH_I2C_Read... [18:30:37]Read from MH i2c: 01 07 00 4C 1C 00 00 00 00 00 0D 0D 89 [18:30:37]RasterBufferAndPrint [18:30:37]line [18:30:37]line [18:30:37]line [18:30:37]line [18:30:37]line [18:30:37]written 0, free lines is 3353 [18:30:37]process_action close_receipt done [18:30:37]requested_data is exist [18:30:37]produce_requested_data [18:30:37]requested_item fm.sn is exist - process it [18:30:37]wFMCommunicate request_size=4 [18:30:37]MH_SAM_APDU [18:30:37]CAPDU: 80 11 00 00 [18:30:37]Write to MH i2c: E2 08 00 53 1C 80 11 00 00 00 00 00 00 E9 [18:30:37]Write i2c OK [18:30:37]MH_I2C_Read... [18:30:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:37]Read from MH i2c: E2 [18:30:37]MH_I2C_Read... [18:30:37]Read from MH i2c: E2 17 00 [18:30:37]MH_I2C_Read... [18:30:37]Read from MH i2c: E2 17 00 53 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 40 [18:30:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:30:37]wFMCommunicate OK [18:30:37]requested_item fd.num is exist - process it [18:30:37]SAM_PROTO_GetFieldsCounters [18:30:37]wFMCommunicate request_size=4 [18:30:37]MH_SAM_APDU [18:30:37]CAPDU: 80 13 00 00 [18:30:37]Write to MH i2c: E2 08 00 54 1C 80 13 00 00 00 00 00 00 EC [18:30:37]Write i2c OK [18:30:37]MH_I2C_Read... [18:30:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:30:37]Read from MH i2c: E2 [18:30:37]MH_I2C_Read... [18:30:37]Read from MH i2c: E2 62 00 [18:30:37]MH_I2C_Read... [18:30:37]Read from MH i2c: E2 62 00 54 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 09 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 B9 01 00 00 5E 04 04 00 B9 01 00 00 57 04 04 00 BA 01 00 00 19 04 04 00 00 00 00 00 90 00 DF [18:30:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 09 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 B9 01 00 00 5E 04 04 00 B9 01 00 00 57 04 04 00 BA 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:30:37]wFMCommunicate OK [18:30:37]SAM_PROTO_GetFieldsCounters done [18:30:37]requested_item shift.num is exist - process it [18:30:37]requested_item shift.opened is exist - process it [18:30:37]req_shift_opened [18:30:37]FM_GetShiftState [18:30:37]SAM_PROTO_GetShiftState [18:30:37]wFMCommunicate request_size=4 [18:30:37]MH_SAM_APDU [18:30:37]CAPDU: 80 13 01 00 [18:30:37]Write to MH i2c: E2 08 00 55 1C 80 13 01 00 00 00 00 00 EE [18:30:37]Write i2c OK [18:30:37]MH_I2C_Read... [18:30:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:37]Read from MH i2c: E2 [18:30:37]MH_I2C_Read... [18:30:37]Read from MH i2c: E2 0E 00 [18:30:37]MH_I2C_Read... [18:30:37]Read from MH i2c: E2 0E 00 55 1C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 08 [18:30:37]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:30:37]wFMCommunicate OK [18:30:37]SAM_PROTO_GetShiftState done [18:30:37]FM_GetShiftState done [18:30:37]req_shift_opened done [18:30:37]requested_item shift.open_date is exist - process it [18:30:37]req_shift_open_date [18:30:37]req_shift_open_date done [18:30:37]produce_requested_data done [18:30:37]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227593,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [18:30:37]process_action_free close_receipt [18:30:37]json_value_free [18:30:37]json_value_free done [18:30:37]process_json_proto returns [18:30:37]Send response to host [18:30:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227593,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [18:30:37]free response buf [18:30:37]execute_script done [18:30:37]execute_script returns [18:30:37]free content buf [18:30:37]Sock 7.Close socket [18:30:37]Sock 7.Thread stoped [18:30:37]OFD Sender: No OFD packet to send [18:30:42]OFD Sender: No OFD packet to send [18:30:47]OFD Sender: No OFD packet to send [18:30:52]OFD Sender: No OFD packet to send [18:30:57]OFD Sender: No OFD packet to send [18:31:02]OFD Sender: No OFD packet to send [18:31:07]OFD Sender: No OFD packet to send [18:31:12]OFD Sender: No OFD packet to send [18:31:15]accept exits with 9 [18:31:15]New connection [18:31:15]New thread 3067219300 created [18:31:15]Thread 3067362660 joined [18:31:15]Waiting for new connection... [18:31:15] Sock 9.Parse request [18:31:15]Sock 9.Check first char [18:31:15]Sock 9.First char is OK [18:31:15]request: POST /json_proto HTTP/1.0 [18:31:15]Method: POST [18:31:15]URL: /json_proto [18:31:15]Method is POST - this is cgi request [18:31:15]url: /json_proto [18:31:15]query_string will be loaded in cgi processing [18:31:15]execute_cgi json_proto POST (null) [18:31:15]execute_cgi path=json_proto method=POST [18:31:15]POST find Content-Length [18:31:15]Host: 172.17.44.195:8080 [18:31:15]Content-Length: 659 [18:31:15]Content-Type: application/json [18:31:15] [18:31:15]POST finish read [18:31:15]Found Content-Length = 659 [18:31:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963230", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 5.850, "sum" : 400.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:15]execute_script... [18:31:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963230", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 5.850, "sum" : 400.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:15]POST & json_proto [18:31:15]process_json_proto [18:31:15]json parsed OK: [18:31:15]protocol is kg_v1.0 [18:31:15]action value=close_receipt [18:31:15]process_action close_receipt [18:31:15]cmd_close_receipt [18:31:15]MH_GetDate [18:31:15]Write to MH i2c: F0 00 00 56 1C 61 [18:31:15]Write i2c OK [18:31:15]MH_I2C_Read... [18:31:15]Read from MH i2c: F0 [18:31:15]MH_I2C_Read... [18:31:15]Read from MH i2c: F0 09 00 [18:31:15]MH_I2C_Read... [18:31:15]Read from MH i2c: F0 09 00 56 1C 00 74 4C 15 67 82 C9 CF 66 26 [18:31:15]GetLastDocTimeStamp 1729449036 [18:31:15]current date 1729449076 [18:31:15]FM_GetShiftState [18:31:15]SAM_PROTO_GetShiftState [18:31:15]wFMCommunicate request_size=4 [18:31:15]MH_SAM_APDU [18:31:15]CAPDU: 80 13 01 00 [18:31:15]Write to MH i2c: E2 08 00 57 1C 80 13 01 00 00 00 00 00 F0 [18:31:15]Write i2c OK [18:31:15]MH_I2C_Read... [18:31:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:15]Read from MH i2c: E2 [18:31:15]MH_I2C_Read... [18:31:15]Read from MH i2c: E2 0E 00 [18:31:15]MH_I2C_Read... [18:31:15]Read from MH i2c: E2 0E 00 57 1C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 0A [18:31:15]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:31:15]wFMCommunicate OK [18:31:15]SAM_PROTO_GetShiftState done [18:31:15]FM_GetShiftState done [18:31:15]opened in 1729383750 [18:31:15]opened+sec_in_day 1729470150 [18:31:15]quantity*price = 40014 [18:31:15]sum+1 = 40015 [18:31:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.49 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 442 20.10.2024 18:31 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227594 ФПД: 240000777174519 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T183116&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227594&fm=240000777174519&tin=02508201610067®Number=0000000000091685&sum=40000 [18:31:16]StoreToDocumentArchive [18:31:16]shift 533 fd 227594 [18:31:16]save to /storage/0533/doc_00227594 [18:31:16]save last doc name /storage/0533/doc_00227594 to /storage/kkm_last_doc_name [18:31:16]save OK [18:31:16]Clear old archive folders... [18:31:16]ProcessDocumentItem done err = 0, tmpTLVsize=244 [18:31:16]tlvbuf is 00E64E60 [18:31:16]SAM_PROTO_ClearQueue [18:31:16]wFMCommunicate request_size=4 [18:31:16]MH_SAM_APDU [18:31:16]CAPDU: 80 09 00 00 [18:31:16]Write to MH i2c: E2 08 00 64 1C 80 09 00 00 00 00 00 00 F2 [18:31:16]Write i2c OK [18:31:16]MH_I2C_Read... [18:31:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:31:16]Read from MH i2c: E2 [18:31:16]MH_I2C_Read... [18:31:16]Read from MH i2c: E2 03 00 [18:31:16]MH_I2C_Read... [18:31:16]Read from MH i2c: E2 03 00 64 1C 00 90 00 F4 [18:31:16]RAPDU: 90 00 [18:31:16]wFMCommunicate OK [18:31:16]SAM_PROTO_ClearQueue done [18:31:16]KKMCreateOFDPacket [18:31:16]OFDProtocolAddRootSTLVToBuf [18:31:16]FM_MakeSignedData [18:31:16]FM_MakeSignedData [18:31:16]SAM_PROTO_SignData [18:31:16]wFMCommunicate request_size=4 [18:31:16]MH_SAM_APDU [18:31:16]CAPDU: 80 0D 01 02 [18:31:16]Write to MH i2c: E2 08 00 65 1C 80 0D 01 02 00 00 00 00 FA [18:31:16]Write i2c OK [18:31:16]MH_I2C_Read... [18:31:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:31:16]Read from MH i2c: E2 [18:31:16]MH_I2C_Read... [18:31:16]Read from MH i2c: E2 03 00 [18:31:16]MH_I2C_Read... [18:31:16]Read from MH i2c: E2 03 00 65 1C 00 90 00 F5 [18:31:16]RAPDU: 90 00 [18:31:16]wFMCommunicate OK [18:31:16]wFMCommunicate request_size=253 [18:31:16]MH_SAM_APDU [18:31:16]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 10 00 00 00 00 07 04 06 00 40 9C 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 01 00 00 F4 03 04 00 74 4C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0A 79 03 00 35 04 06 00 DA 47 89 11 BD F7 [18:31:16]Write to MH i2c: E2 00 01 66 1C 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 10 00 00 00 00 07 04 06 00 40 9C 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 01 00 00 F4 03 04 00 74 4C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0A 79 03 00 35 04 06 00 DA 47 89 11 BD F7 00 00 2D [18:31:16]Write i2c OK [18:31:16]MH_I2C_Read... [18:31:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:16]Read from MH i2c: E2 [18:31:16]MH_I2C_Read... [18:31:16]Read from MH i2c: E2 03 00 [18:31:16]MH_I2C_Read... [18:31:16]Read from MH i2c: E2 03 00 66 1C 00 90 00 F6 [18:31:16]RAPDU: 90 00 [18:31:16]wFMCommunicate OK [18:31:16]wFMCommunicate request_size=4 [18:31:16]MH_SAM_APDU [18:31:16]CAPDU: 80 0D 03 02 [18:31:16]Write to MH i2c: E2 08 00 67 1C 80 0D 03 02 00 00 00 00 FE [18:31:16]Write i2c OK [18:31:16]MH_I2C_Read... [18:31:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:31:16]Read from MH i2c: E2 [18:31:16]MH_I2C_Read... [18:31:16]Read from MH i2c: E2 0B 00 [18:31:16]MH_I2C_Read... [18:31:16]Read from MH i2c: E2 0B 00 67 1C 00 E1 9C 00 44 96 F0 2B 91 90 00 02 [18:31:16]RAPDU: E1 9C 00 44 96 F0 2B 91 90 00 [18:31:16]wFMCommunicate OK [18:31:16]SAM_PROTO_SignData done [18:31:16]FM_MakeSignedData done [18:31:16]CreateOFDProtocolMessage [18:31:16]wFMCommunicate request_size=4 [18:31:16]MH_SAM_APDU [18:31:16]CAPDU: 80 11 00 00 [18:31:16]Write to MH i2c: E2 08 00 68 1C 80 11 00 00 00 00 00 00 FE [18:31:16]Write i2c OK [18:31:16]MH_I2C_Read... [18:31:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:16]Read from MH i2c: E2 [18:31:16]MH_I2C_Read... [18:31:16]Read from MH i2c: E2 17 00 [18:31:16]MH_I2C_Read... [18:31:16]Read from MH i2c: E2 17 00 68 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 55 [18:31:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:31:16]wFMCommunicate OK [18:31:16]CreateOFDProtocolMessage done [18:31:16]OFDSenderStorePacket 227594 [18:31:16]StoreOFDPacket docnum=227594 [18:31:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 FD B7 00 01 27 F8 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 10 00 00 00 00 07 04 06 00 40 9C 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 01 00 00 F4 03 04 00 74 4C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0A 79 03 00 35 04 06 00 DA 47 89 11 BD F7 E1 9C 00 44 96 F0 2B 91 [18:31:16]CheckFolder [18:31:16]dirname=/storage/ofd_packets [18:31:16]CheckFolder done [18:31:16]ProducePacketName [18:31:16]name=ofd_packets/00227594 [18:31:16]NVStorageSaveData ofd_packets/00227594 [18:31:16]File name is /storage/ofd_packets/00227594 [18:31:16]Write 294 bytes [18:31:16]NVStorageSaveData done [18:31:16]OFDSenderStorePacket done [18:31:16]KKMCreateOFDPacket done [18:31:16]NVStorageSaveData kkm_last_timestamp [18:31:16]File name is /storage/kkm_last_timestamp [18:31:16]Write 4 bytes [18:31:16]NVStorageSaveData done [18:31:16]ExternCall_PrintAddStr [18:31:16]wPrintStart [18:31:16]Write to MH i2c: 01 00 00 69 1C 85 [18:31:16]Write i2c OK [18:31:16]MH_I2C_Read... [18:31:16]Read from MH i2c: 01 [18:31:16]MH_I2C_Read... [18:31:16]Read from MH i2c: 01 07 00 [18:31:16]MH_I2C_Read... [18:31:16]Read from MH i2c: 01 07 00 69 1C 00 00 00 00 00 FF 0F 9A [18:31:16]RasterBufferAndPrint [18:31:16]line Счет N : (1)1963230 [18:31:16]line ИНН: 02508201610067 [18:31:16]line Контрольно-Кассовый Чек [18:31:16]line ПРОДАЖА [18:31:16]line ТРК (МРК, ГНК) : 32 [18:31:16]line Товар: 2710124130 [18:31:16]line SU-92 [18:31:16]line 5.850 * 68.40 [18:31:16]line = 400.14 [18:31:16]line НДС 12% НСП 1% [18:31:16]line > о реализуемом товаре [18:31:16]line ОКРУГЛЕНИЕ: -0.14 [18:31:16]line ИТОГО: 400.00 [18:31:16]line Внесено: 400.00 [18:31:16]line СДАЧА: 0.00 [18:31:16]line НСП 1% : 3.54 [18:31:16]line НДС 12% : 42.49 [18:31:16]line Наличными: 400.00 [18:31:16]line Безнал.: 0.00 [18:31:16]line Место: АЗС № 133 "Партнер Нефть" [18:31:16]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:31:16]line СНО: Общий режим [18:31:16]line Чек 442 20.10.2024 18:31 [18:31:16]line Смена: 533 ФФД: 1.0 [18:31:16]line ЗНМ: 0300000091 [18:31:16]line РНМ: 0000000000091685 [18:31:16]line Версия ККМ: 001 [18:31:16]line ФМ: 0000000000871839 [18:31:16]line ФД: 227594 [18:31:16]line ФПД: 240000777174519 [18:31:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T183116&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227594&fm=240000777174519&tin=02508201610067®Number=0000000000091685&sum=40000 [18:31:17]OFD Sender: Processing packet 227594 [packets to send 38, broken 37] [18:31:17]ProducePacketName [18:31:17]name=ofd_packets/00227594 [18:31:17]OFD Sender: To server: pG, [18:31:17]CommunicateWithHost lk.salyk.kg:30040 [18:31:17]ConnectInit lk.salyk.kg [18:31:17]written 0, free lines is 4095 [18:31:17]Connected sock=10 [18:31:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 FD B7 00 01 27 F8 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 10 00 00 00 00 07 04 06 00 40 9C 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 01 00 00 F4 03 04 00 74 4C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0A 79 03 00 35 04 06 00 DA 47 89 11 BD F7 E1 9C 00 44 96 F0 2B 91 [18:31: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 33 39 4F 00 00 00 FD D0 47 00 48 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 33 39 10 04 04 00 0A 79 03 00 F4 03 04 00 73 F7 14 67 B6 04 01 00 00 BF FA C1 C6 1E E6 29 A4 [18:31:17]CommunicateWithHost err = 0 [18:31:17]CheckOFDResponse [18:31:17]1017 (14) - 77093643461234 [18:31:17]1041 (16) - 0000000000871839 [18:31:17]1040 (4) - 227594 [18:31:17]1012 (4) - 20.10.2024 12:28 [18:31:17]1206 (1) - 0 [18:31:17]OFD Sender: Remove packet 227594 [18:31:17]ProducePacketName [18:31:17]name=ofd_packets/00227594 [18:31:17]NVStorageDeleteData [18:31:17]Write to MH i2c: 01 00 00 93 1C AF [18:31:17]Write i2c OK [18:31:17]MH_I2C_Read... [18:31:17]Read from MH i2c: 01 [18:31:17]MH_I2C_Read... [18:31:17]Read from MH i2c: 01 07 00 [18:31:17]MH_I2C_Read... [18:31:17]Read from MH i2c: 01 07 00 93 1C 00 00 00 00 00 F5 0C B7 [18:31:17]RasterBufferAndPrint [18:31:17]line [18:31:17]line [18:31:17]line [18:31:17]line [18:31:17]line [18:31:17]written 0, free lines is 3324 [18:31:17]process_action close_receipt done [18:31:17]requested_data is exist [18:31:17]produce_requested_data [18:31:17]requested_item fm.sn is exist - process it [18:31:17]wFMCommunicate request_size=4 [18:31:17]MH_SAM_APDU [18:31:17]CAPDU: 80 11 00 00 [18:31:17]Write to MH i2c: E2 08 00 9A 1C 80 11 00 00 00 00 00 00 30 [18:31:17]Write i2c OK [18:31:17]MH_I2C_Read... [18:31:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:17]Read from MH i2c: E2 [18:31:17]MH_I2C_Read... [18:31:17]Read from MH i2c: E2 17 00 [18:31:17]MH_I2C_Read... [18:31:17]Read from MH i2c: E2 17 00 9A 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 87 [18:31:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:31:17]wFMCommunicate OK [18:31:17]requested_item fd.num is exist - process it [18:31:17]SAM_PROTO_GetFieldsCounters [18:31:17]wFMCommunicate request_size=4 [18:31:17]MH_SAM_APDU [18:31:17]CAPDU: 80 13 00 00 [18:31:17]Write to MH i2c: E2 08 00 9B 1C 80 13 00 00 00 00 00 00 33 [18:31:17]Write i2c OK [18:31:17]MH_I2C_Read... [18:31:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:31:17]Read from MH i2c: E2 [18:31:17]MH_I2C_Read... [18:31:17]Read from MH i2c: E2 62 00 [18:31:17]MH_I2C_Read... [18:31:17]Read from MH i2c: E2 62 00 9B 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 0A 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 BA 01 00 00 5E 04 04 00 BA 01 00 00 57 04 04 00 BB 01 00 00 19 04 04 00 00 00 00 00 90 00 2A [18:31: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 0A 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 BA 01 00 00 5E 04 04 00 BA 01 00 00 57 04 04 00 BB 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:31:17]wFMCommunicate OK [18:31:17]SAM_PROTO_GetFieldsCounters done [18:31:17]requested_item shift.num is exist - process it [18:31:17]requested_item shift.opened is exist - process it [18:31:17]req_shift_opened [18:31:17]FM_GetShiftState [18:31:17]SAM_PROTO_GetShiftState [18:31:17]wFMCommunicate request_size=4 [18:31:17]MH_SAM_APDU [18:31:17]CAPDU: 80 13 01 00 [18:31:17]Write to MH i2c: E2 08 00 9C 1C 80 13 01 00 00 00 00 00 35 [18:31:17]Write i2c OK [18:31:17]MH_I2C_Read... [18:31:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:17]Read from MH i2c: E2 [18:31:17]MH_I2C_Read... [18:31:17]Read from MH i2c: E2 0E 00 [18:31:17]MH_I2C_Read... [18:31:17]Read from MH i2c: E2 0E 00 9C 1C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 4F [18:31:17]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:31:17]wFMCommunicate OK [18:31:17]SAM_PROTO_GetShiftState done [18:31:17]FM_GetShiftState done [18:31:17]req_shift_opened done [18:31:17]requested_item shift.open_date is exist - process it [18:31:17]req_shift_open_date [18:31:17]req_shift_open_date done [18:31:17]produce_requested_data done [18:31:17]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227594,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [18:31:17]process_action_free close_receipt [18:31:17]json_value_free [18:31:17]json_value_free done [18:31:17]process_json_proto returns [18:31:17]Send response to host [18:31:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227594,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [18:31:17]free response buf [18:31:17]execute_script done [18:31:17]execute_script returns [18:31:17]free content buf [18:31:17]Sock 9.Close socket [18:31:17]Sock 9.Thread stoped [18:31:17]OFD Sender: No OFD packet to send [18:31:22]OFD Sender: No OFD packet to send [18:31:27]OFD Sender: No OFD packet to send [18:31:32]OFD Sender: No OFD packet to send [18:31:37]OFD Sender: No OFD packet to send [18:31:42]OFD Sender: No OFD packet to send [18:31:47]OFD Sender: No OFD packet to send [18:31:52]OFD Sender: No OFD packet to send [18:31:57]OFD Sender: No OFD packet to send [18:32:02]OFD Sender: No OFD packet to send [18:32:07]OFD Sender: No OFD packet to send [18:32:12]OFD Sender: No OFD packet to send [18:32:17]OFD Sender: No OFD packet to send [18:32:22]OFD Sender: No OFD packet to send [18:32:27]OFD Sender: No OFD packet to send [18:32:32]OFD Sender: No OFD packet to send [18:32:38]OFD Sender: No OFD packet to send [18:32:43]OFD Sender: No OFD packet to send [18:32:48]OFD Sender: No OFD packet to send [18:32:53]OFD Sender: No OFD packet to send [18:32:58]OFD Sender: No OFD packet to send [18:33:03]OFD Sender: No OFD packet to send [18:33:08]OFD Sender: No OFD packet to send [18:33:13]OFD Sender: No OFD packet to send [18:33:18]OFD Sender: No OFD packet to send [18:33:23]OFD Sender: No OFD packet to send [18:33:28]OFD Sender: No OFD packet to send [18:33:33]OFD Sender: No OFD packet to send [18:33:38]OFD Sender: No OFD packet to send [18:33:43]OFD Sender: No OFD packet to send [18:33:48]OFD Sender: No OFD packet to send [18:33:53]OFD Sender: No OFD packet to send [18:33:58]OFD Sender: No OFD packet to send [18:34:03]OFD Sender: No OFD packet to send [18:34:08]OFD Sender: No OFD packet to send [18:34:13]OFD Sender: No OFD packet to send [18:34:18]OFD Sender: No OFD packet to send [18:34:23]OFD Sender: No OFD packet to send [18:34:26]accept exits with 7 [18:34:26]New connection [18:34:26]New thread 3067362660 created [18:34:26]Thread 3067219300 joined [18:34:26]Waiting for new connection... [18:34:26] Sock 7.Parse request [18:34:26]Sock 7.Check first char [18:34:26]Sock 7.First char is OK [18:34:26]request: POST /json_proto HTTP/1.0 [18:34:26]Method: POST [18:34:26]URL: /json_proto [18:34:26]Method is POST - this is cgi request [18:34:26]url: /json_proto [18:34:26]query_string will be loaded in cgi processing [18:34:26]execute_cgi json_proto POST (null) [18:34:26]execute_cgi path=json_proto method=POST [18:34:26]POST find Content-Length [18:34:26]Host: 172.17.44.195:8080 [18:34:26]Content-Length: 678 [18:34:26]Content-Type: application/json [18:34:26] [18:34:26]POST finish read [18:34:26]Found Content-Length = 678 [18:34:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963231", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:34:26]execute_script... [18:34: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)1963231", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:34:26]POST & json_proto [18:34:26]process_json_proto [18:34:26]json parsed OK: [18:34:26]protocol is kg_v1.0 [18:34:26]action value=close_receipt [18:34:26]process_action close_receipt [18:34:26]cmd_close_receipt [18:34:26]MH_GetDate [18:34:26]Write to MH i2c: F0 00 00 9D 1C A8 [18:34:26]Write i2c OK [18:34:26]MH_I2C_Read... [18:34:26]Read from MH i2c: F0 [18:34:26]MH_I2C_Read... [18:34:26]Read from MH i2c: F0 09 00 [18:34:26]MH_I2C_Read... [18:34:26]Read from MH i2c: F0 09 00 9D 1C 00 33 4D 15 67 82 C9 CF 66 2D [18:34:26]GetLastDocTimeStamp 1729449076 [18:34:26]current date 1729449267 [18:34:26]FM_GetShiftState [18:34:26]SAM_PROTO_GetShiftState [18:34:26]wFMCommunicate request_size=4 [18:34:26]MH_SAM_APDU [18:34:26]CAPDU: 80 13 01 00 [18:34:26]Write to MH i2c: E2 08 00 9E 1C 80 13 01 00 00 00 00 00 37 [18:34:26]Write i2c OK [18:34:26]MH_I2C_Read... [18:34:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:26]Read from MH i2c: E2 [18:34:26]MH_I2C_Read... [18:34:26]Read from MH i2c: E2 0E 00 [18:34:26]MH_I2C_Read... [18:34:26]Read from MH i2c: E2 0E 00 9E 1C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 51 [18:34:26]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:34:26]wFMCommunicate OK [18:34:26]SAM_PROTO_GetShiftState done [18:34:26]FM_GetShiftState done [18:34:26]opened in 1729383750 [18:34:26]opened+sec_in_day 1729470150 [18:34:26]quantity*price = 50041 [18:34:26]sum+1 = 50042 [18:34:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 443 20.10.2024 18:34 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227595 ФПД: 101155430122335 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T183428&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227595&fm=101155430122335&tin=02508201610067®Number=0000000000091685&sum=50000 [18:34:27]StoreToDocumentArchive [18:34:27]shift 533 fd 227595 [18:34:27]save to /storage/0533/doc_00227595 [18:34:27]save last doc name /storage/0533/doc_00227595 to /storage/kkm_last_doc_name [18:34:27]save OK [18:34:27]Clear old archive folders... [18:34:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:34:27]tlvbuf is 00DB9910 [18:34:27]SAM_PROTO_ClearQueue [18:34:27]wFMCommunicate request_size=4 [18:34:27]MH_SAM_APDU [18:34:27]CAPDU: 80 09 00 00 [18:34:27]Write to MH i2c: E2 08 00 AB 1C 80 09 00 00 00 00 00 00 39 [18:34:27]Write i2c OK [18:34:27]MH_I2C_Read... [18:34:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:34:27]Read from MH i2c: E2 [18:34:27]MH_I2C_Read... [18:34:27]Read from MH i2c: E2 03 00 [18:34:27]MH_I2C_Read... [18:34:27]Read from MH i2c: E2 03 00 AB 1C 00 90 00 3B [18:34:27]RAPDU: 90 00 [18:34:27]wFMCommunicate OK [18:34:27]SAM_PROTO_ClearQueue done [18:34:27]KKMCreateOFDPacket [18:34:27]OFDProtocolAddRootSTLVToBuf [18:34:27]FM_MakeSignedData [18:34:27]FM_MakeSignedData [18:34:27]SAM_PROTO_SignData [18:34:27]wFMCommunicate request_size=4 [18:34:27]MH_SAM_APDU [18:34:27]CAPDU: 80 0D 01 02 [18:34:27]Write to MH i2c: E2 08 00 AC 1C 80 0D 01 02 00 00 00 00 41 [18:34:27]Write i2c OK [18:34:27]MH_I2C_Read... [18:34:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:34:27]Read from MH i2c: E2 [18:34:27]MH_I2C_Read... [18:34:27]Read from MH i2c: E2 03 00 [18:34:27]MH_I2C_Read... [18:34:27]Read from MH i2c: E2 03 00 AC 1C 00 90 00 3C [18:34:27]RAPDU: 90 00 [18:34:27]wFMCommunicate OK [18:34:27]wFMCommunicate request_size=255 [18:34:27]MH_SAM_APDU [18:34:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 01 00 00 F4 03 04 00 34 4D 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0B 79 03 00 35 04 06 00 5C [18:34:27]Write to MH i2c: E2 02 01 AD 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 01 00 00 F4 03 04 00 34 4D 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0B 79 03 00 35 04 06 00 5C 00 00 8B [18:34:27]Write i2c OK [18:34:27]MH_I2C_Read... [18:34:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:27]Read from MH i2c: E2 [18:34:27]MH_I2C_Read... [18:34:27]Read from MH i2c: E2 03 00 [18:34:27]MH_I2C_Read... [18:34:27]Read from MH i2c: E2 03 00 AD 1C 00 90 00 3D [18:34:27]RAPDU: 90 00 [18:34:27]wFMCommunicate OK [18:34:27]wFMCommunicate request_size=10 [18:34:27]MH_SAM_APDU [18:34:27]CAPDU: 80 0D 02 02 05 00 15 7A C3 5F [18:34:27]Write to MH i2c: E2 0D 00 AE 1C 80 0D 02 02 05 00 00 15 7A C3 5F 00 00 FF [18:34:27]Write i2c OK [18:34:27]MH_I2C_Read... [18:34:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:27]Read from MH i2c: E2 [18:34:27]MH_I2C_Read... [18:34:27]Read from MH i2c: E2 03 00 [18:34:27]MH_I2C_Read... [18:34:27]Read from MH i2c: E2 03 00 AE 1C 00 90 00 3E [18:34:27]RAPDU: 90 00 [18:34:27]wFMCommunicate OK [18:34:27]wFMCommunicate request_size=4 [18:34:27]MH_SAM_APDU [18:34:27]CAPDU: 80 0D 03 02 [18:34:27]Write to MH i2c: E2 08 00 AF 1C 80 0D 03 02 00 00 00 00 46 [18:34:27]Write i2c OK [18:34:27]MH_I2C_Read... [18:34:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:34:27]Read from MH i2c: E2 [18:34:27]MH_I2C_Read... [18:34:27]Read from MH i2c: E2 0B 00 [18:34:27]MH_I2C_Read... [18:34:27]Read from MH i2c: E2 0B 00 AF 1C 00 96 C9 2F 4C F7 5F FB 3A 90 00 AC [18:34:27]RAPDU: 96 C9 2F 4C F7 5F FB 3A 90 00 [18:34:27]wFMCommunicate OK [18:34:27]SAM_PROTO_SignData done [18:34:27]FM_MakeSignedData done [18:34:27]CreateOFDProtocolMessage [18:34:27]wFMCommunicate request_size=4 [18:34:27]MH_SAM_APDU [18:34:27]CAPDU: 80 11 00 00 [18:34:27]Write to MH i2c: E2 08 00 B0 1C 80 11 00 00 00 00 00 00 46 [18:34:27]Write i2c OK [18:34:27]MH_I2C_Read... [18:34:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:27]Read from MH i2c: E2 [18:34:27]MH_I2C_Read... [18:34:27]Read from MH i2c: E2 17 00 [18:34:27]MH_I2C_Read... [18:34:27]Read from MH i2c: E2 17 00 B0 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 9D [18:34:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:34:27]wFMCommunicate OK [18:34:27]CreateOFDProtocolMessage done [18:34:27]OFDSenderStorePacket 227595 [18:34:27]StoreOFDPacket docnum=227595 [18:34:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 19 23 07 01 CD 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 01 00 00 F4 03 04 00 34 4D 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0B 79 03 00 35 04 06 00 5C 00 15 7A C3 5F 96 C9 2F 4C F7 5F FB 3A [18:34:27]CheckFolder [18:34:27]dirname=/storage/ofd_packets [18:34:27]CheckFolder done [18:34:27]ProducePacketName [18:34:27]name=ofd_packets/00227595 [18:34:27]NVStorageSaveData ofd_packets/00227595 [18:34:27]File name is /storage/ofd_packets/00227595 [18:34:27]Write 301 bytes [18:34:27]NVStorageSaveData done [18:34:27]OFDSenderStorePacket done [18:34:27]KKMCreateOFDPacket done [18:34:27]NVStorageSaveData kkm_last_timestamp [18:34:27]File name is /storage/kkm_last_timestamp [18:34:27]Write 4 bytes [18:34:27]NVStorageSaveData done [18:34:27]ExternCall_PrintAddStr [18:34:27]wPrintStart [18:34:27]Write to MH i2c: 01 00 00 B1 1C CD [18:34:28]Write i2c OK [18:34:28]MH_I2C_Read... [18:34:28]Read from MH i2c: 01 [18:34:28]MH_I2C_Read... [18:34:28]Read from MH i2c: 01 07 00 [18:34:28]MH_I2C_Read... [18:34:28]Read from MH i2c: 01 07 00 B1 1C 00 00 00 00 00 FF 0F E2 [18:34:28]RasterBufferAndPrint [18:34:28]line Счет N : (1)1963231 [18:34:28]line ИНН: 02508201610067 [18:34:28]line Контрольно-Кассовый Чек [18:34:28]line ПРОДАЖА [18:34:28]line ТРК (МРК, ГНК) : 43 [18:34:28]line Товар: 2710124130 [18:34:28]line Аи-92-К-5 [18:34:28]line 7.480 * 66.90 [18:34:28]line = 500.41 [18:34:28]line НДС 12% НСП 1% [18:34:28]line > о реализуемом товаре [18:34:28]line ОКРУГЛЕНИЕ: -0.41 [18:34:28]line ИТОГО: 500.00 [18:34:28]line Внесено: 500.00 [18:34:28]line СДАЧА: 0.00 [18:34:28]line НСП 1% : 4.43 [18:34:28]line НДС 12% : 53.14 [18:34:28]line Наличными: 500.00 [18:34:28]line Безнал.: 0.00 [18:34:28]line Место: АЗС № 133 "Партнер Нефть" [18:34:28]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:34:28]line СНО: Общий режим [18:34:28]line Чек 443 20.10.2024 18:34 [18:34:28]line Смена: 533 ФФД: 1.0 [18:34:28]line ЗНМ: 0300000091 [18:34:28]line РНМ: 0000000000091685 [18:34:28]line Версия ККМ: 001 [18:34:28]line ФМ: 0000000000871839 [18:34:28]line ФД: 227595 [18:34:28]line ФПД: 101155430122335 [18:34:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T183428&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227595&fm=101155430122335&tin=02508201610067®Number=0000000000091685&sum=50000 [18:34:28]written 0, free lines is 4095 [18:34:28]OFD Sender: Processing packet 227595 [packets to send 38, broken 37] [18:34:28]ProducePacketName [18:34:28]name=ofd_packets/00227595 [18:34:28]OFD Sender: To server: pG, [18:34:28]CommunicateWithHost lk.salyk.kg:30040 [18:34:28]ConnectInit lk.salyk.kg [18:34:28]Connected sock=10 [18:34: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 33 39 0F 01 00 00 19 23 07 01 CD 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 01 00 00 F4 03 04 00 34 4D 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0B 79 03 00 35 04 06 00 5C 00 15 7A C3 5F 96 C9 2F 4C F7 5F FB 3A [18:34: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 33 39 4F 00 00 00 39 4D 47 00 D3 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0B 79 03 00 F4 03 04 00 31 F8 14 67 B6 04 01 00 00 D6 92 6C B9 37 D5 BC 38 [18:34:28]CommunicateWithHost err = 0 [18:34:28]CheckOFDResponse [18:34:28]1017 (14) - 77093643461234 [18:34:28]1041 (16) - 0000000000871839 [18:34:28]1040 (4) - 227595 [18:34:28]1012 (4) - 20.10.2024 12:31 [18:34:28]1206 (1) - 0 [18:34:28]OFD Sender: Remove packet 227595 [18:34:28]ProducePacketName [18:34:28]name=ofd_packets/00227595 [18:34:28]NVStorageDeleteData [18:34:28]Write to MH i2c: 01 00 00 DB 1C F7 [18:34:28]Write i2c OK [18:34:28]MH_I2C_Read... [18:34:28]Read from MH i2c: 01 [18:34:28]MH_I2C_Read... [18:34:28]Read from MH i2c: 01 07 00 [18:34:28]MH_I2C_Read... [18:34:28]Read from MH i2c: 01 07 00 DB 1C 00 00 00 00 00 FB 0C 05 [18:34:28]RasterBufferAndPrint [18:34:28]line [18:34:28]line [18:34:28]line [18:34:28]line [18:34:28]line [18:34:28]written 0, free lines is 3329 [18:34:28]process_action close_receipt done [18:34:28]requested_data is exist [18:34:28]produce_requested_data [18:34:28]requested_item fm.sn is exist - process it [18:34:28]wFMCommunicate request_size=4 [18:34:28]MH_SAM_APDU [18:34:28]CAPDU: 80 11 00 00 [18:34:28]Write to MH i2c: E2 08 00 E2 1C 80 11 00 00 00 00 00 00 78 [18:34:28]Write i2c OK [18:34:28]MH_I2C_Read... [18:34:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:28]Read from MH i2c: E2 [18:34:28]MH_I2C_Read... [18:34:28]Read from MH i2c: E2 17 00 [18:34:28]MH_I2C_Read... [18:34:28]Read from MH i2c: E2 17 00 E2 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 CF [18:34:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:34:28]wFMCommunicate OK [18:34:28]requested_item fd.num is exist - process it [18:34:28]SAM_PROTO_GetFieldsCounters [18:34:28]wFMCommunicate request_size=4 [18:34:28]MH_SAM_APDU [18:34:28]CAPDU: 80 13 00 00 [18:34:28]Write to MH i2c: E2 08 00 E3 1C 80 13 00 00 00 00 00 00 7B [18:34:28]Write i2c OK [18:34:28]MH_I2C_Read... [18:34:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:34:28]Read from MH i2c: E2 [18:34:28]MH_I2C_Read... [18:34:28]Read from MH i2c: E2 62 00 [18:34:28]MH_I2C_Read... [18:34:28]Read from MH i2c: E2 62 00 E3 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 0B 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 BB 01 00 00 5E 04 04 00 BB 01 00 00 57 04 04 00 BC 01 00 00 19 04 04 00 00 00 00 00 90 00 76 [18:34:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 0B 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 BB 01 00 00 5E 04 04 00 BB 01 00 00 57 04 04 00 BC 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:34:28]wFMCommunicate OK [18:34:28]SAM_PROTO_GetFieldsCounters done [18:34:28]requested_item shift.num is exist - process it [18:34:28]requested_item shift.opened is exist - process it [18:34:28]req_shift_opened [18:34:28]FM_GetShiftState [18:34:28]SAM_PROTO_GetShiftState [18:34:28]wFMCommunicate request_size=4 [18:34:28]MH_SAM_APDU [18:34:28]CAPDU: 80 13 01 00 [18:34:28]Write to MH i2c: E2 08 00 E4 1C 80 13 01 00 00 00 00 00 7D [18:34:28]Write i2c OK [18:34:28]MH_I2C_Read... [18:34:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:28]Read from MH i2c: E2 [18:34:28]MH_I2C_Read... [18:34:28]Read from MH i2c: E2 0E 00 [18:34:28]MH_I2C_Read... [18:34:28]Read from MH i2c: E2 0E 00 E4 1C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 97 [18:34:28]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:34:28]wFMCommunicate OK [18:34:28]SAM_PROTO_GetShiftState done [18:34:28]FM_GetShiftState done [18:34:28]req_shift_opened done [18:34:28]requested_item shift.open_date is exist - process it [18:34:28]req_shift_open_date [18:34:28]req_shift_open_date done [18:34:28]produce_requested_data done [18:34:28]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227595,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [18:34:28]process_action_free close_receipt [18:34:28]json_value_free [18:34:28]json_value_free done [18:34:28]process_json_proto returns [18:34:28]Send response to host [18:34:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227595,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [18:34:28]free response buf [18:34:28]execute_script done [18:34:28]execute_script returns [18:34:28]free content buf [18:34:28]Sock 7.Close socket [18:34:28]Sock 7.Thread stoped [18:34:28]OFD Sender: No OFD packet to send [18:34:33]OFD Sender: No OFD packet to send [18:34:38]OFD Sender: No OFD packet to send [18:34:43]OFD Sender: No OFD packet to send [18:34:48]OFD Sender: No OFD packet to send [18:34:53]OFD Sender: No OFD packet to send [18:34:58]OFD Sender: No OFD packet to send [18:35:03]OFD Sender: No OFD packet to send [18:35:08]OFD Sender: No OFD packet to send [18:35:13]OFD Sender: No OFD packet to send [18:35:18]OFD Sender: No OFD packet to send [18:35:23]OFD Sender: No OFD packet to send [18:35:28]OFD Sender: No OFD packet to send [18:35:33]OFD Sender: No OFD packet to send [18:35:39]OFD Sender: No OFD packet to send [18:35:44]OFD Sender: No OFD packet to send [18:35:49]OFD Sender: No OFD packet to send [18:35:54]OFD Sender: No OFD packet to send [18:35:59]OFD Sender: No OFD packet to send [18:36:04]OFD Sender: No OFD packet to send [18:36:09]OFD Sender: No OFD packet to send [18:36:14]OFD Sender: No OFD packet to send [18:36:17]accept exits with 9 [18:36:17]New connection [18:36:17]New thread 3067219300 created [18:36:17]Thread 3067362660 joined [18:36:17]Waiting for new connection... [18:36:17] Sock 9.Parse request [18:36:17]Sock 9.Check first char [18:36:17]Sock 9.First char is OK [18:36:17]request: POST /json_proto HTTP/1.0 [18:36:17]Method: POST [18:36:17]URL: /json_proto [18:36:17]Method is POST - this is cgi request [18:36:17]url: /json_proto [18:36:17]query_string will be loaded in cgi processing [18:36:17]execute_cgi json_proto POST (null) [18:36:17]execute_cgi path=json_proto method=POST [18:36:17]POST find Content-Length [18:36:17]Host: 172.17.44.195:8080 [18:36:17]Content-Length: 683 [18:36:17]Content-Type: application/json [18:36:17] [18:36:17]POST finish read [18:36:17]Found Content-Length = 683 [18:36:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963232", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:17]execute_script... [18:36: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)1963232", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:17]POST & json_proto [18:36:17]process_json_proto [18:36:17]json parsed OK: [18:36:17]protocol is kg_v1.0 [18:36:17]action value=close_receipt [18:36:17]process_action close_receipt [18:36:17]cmd_close_receipt [18:36:17]MH_GetDate [18:36:17]Write to MH i2c: F0 00 00 E5 1C F0 [18:36:17]Write i2c OK [18:36:17]MH_I2C_Read... [18:36:17]Read from MH i2c: F0 [18:36:17]MH_I2C_Read... [18:36:17]Read from MH i2c: F0 09 00 [18:36:17]MH_I2C_Read... [18:36:17]Read from MH i2c: F0 09 00 E5 1C 00 A2 4D 15 67 82 C9 CF 66 E4 [18:36:17]GetLastDocTimeStamp 1729449268 [18:36:17]current date 1729449378 [18:36:17]FM_GetShiftState [18:36:17]SAM_PROTO_GetShiftState [18:36:17]wFMCommunicate request_size=4 [18:36:17]MH_SAM_APDU [18:36:17]CAPDU: 80 13 01 00 [18:36:17]Write to MH i2c: E2 08 00 E6 1C 80 13 01 00 00 00 00 00 7F [18:36:17]Write i2c OK [18:36:17]MH_I2C_Read... [18:36:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:17]Read from MH i2c: E2 [18:36:17]MH_I2C_Read... [18:36:17]Read from MH i2c: E2 0E 00 [18:36:17]MH_I2C_Read... [18:36:17]Read from MH i2c: E2 0E 00 E6 1C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 99 [18:36:17]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:36:17]wFMCommunicate OK [18:36:17]SAM_PROTO_GetShiftState done [18:36:17]FM_GetShiftState done [18:36:17]opened in 1729383750 [18:36:17]opened+sec_in_day 1729470150 [18:36:17]quantity*price = 100015 [18:36:17]sum+1 = 100017 [18:36:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 444 20.10.2024 18:36 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227596 ФПД: 49248682474618 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T183618&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227596&fm=49248682474618&tin=02508201610067®Number=0000000000091685&sum=100000 [18:36:18]StoreToDocumentArchive [18:36:18]shift 533 fd 227596 [18:36:18]save to /storage/0533/doc_00227596 [18:36:18]save last doc name /storage/0533/doc_00227596 to /storage/kkm_last_doc_name [18:36:18]save OK [18:36:18]Clear old archive folders... [18:36:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:36:18]tlvbuf is B6E0C2D0 [18:36:18]SAM_PROTO_ClearQueue [18:36:18]wFMCommunicate request_size=4 [18:36:18]MH_SAM_APDU [18:36:18]CAPDU: 80 09 00 00 [18:36:18]Write to MH i2c: E2 08 00 F3 1C 80 09 00 00 00 00 00 00 81 [18:36:18]Write i2c OK [18:36:18]MH_I2C_Read... [18:36:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:36:18]Read from MH i2c: E2 [18:36:18]MH_I2C_Read... [18:36:18]Read from MH i2c: E2 03 00 [18:36:18]MH_I2C_Read... [18:36:18]Read from MH i2c: E2 03 00 F3 1C 00 90 00 83 [18:36:18]RAPDU: 90 00 [18:36:18]wFMCommunicate OK [18:36:18]SAM_PROTO_ClearQueue done [18:36:18]KKMCreateOFDPacket [18:36:18]OFDProtocolAddRootSTLVToBuf [18:36:18]FM_MakeSignedData [18:36:18]FM_MakeSignedData [18:36:18]SAM_PROTO_SignData [18:36:18]wFMCommunicate request_size=4 [18:36:18]MH_SAM_APDU [18:36:18]CAPDU: 80 0D 01 02 [18:36:18]Write to MH i2c: E2 08 00 F4 1C 80 0D 01 02 00 00 00 00 89 [18:36:18]Write i2c OK [18:36:18]MH_I2C_Read... [18:36:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:36:18]Read from MH i2c: E2 [18:36:18]MH_I2C_Read... [18:36:18]Read from MH i2c: E2 03 00 [18:36:18]MH_I2C_Read... [18:36:18]Read from MH i2c: E2 03 00 F4 1C 00 90 00 84 [18:36:18]RAPDU: 90 00 [18:36:18]wFMCommunicate OK [18:36:18]wFMCommunicate request_size=255 [18:36:18]MH_SAM_APDU [18: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 01 00 00 F4 03 04 00 A2 4D 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0C 79 03 00 35 04 06 00 2C [18:36:18]Write to MH i2c: E2 02 01 F5 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 01 00 00 F4 03 04 00 A2 4D 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0C 79 03 00 35 04 06 00 2C 00 00 0D [18:36:18]Write i2c OK [18:36:18]MH_I2C_Read... [18:36:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:18]Read from MH i2c: E2 [18:36:18]MH_I2C_Read... [18:36:18]Read from MH i2c: E2 03 00 [18:36:18]MH_I2C_Read... [18:36:18]Read from MH i2c: E2 03 00 F5 1C 00 90 00 85 [18:36:18]RAPDU: 90 00 [18:36:18]wFMCommunicate OK [18:36:18]wFMCommunicate request_size=10 [18:36:18]MH_SAM_APDU [18:36:18]CAPDU: 80 0D 02 02 05 CA 9A 39 7C 7A [18:36:18]Write to MH i2c: E2 0D 00 F6 1C 80 0D 02 02 05 00 CA 9A 39 7C 7A 00 00 29 [18:36:18]Write i2c OK [18:36:18]MH_I2C_Read... [18:36:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:18]Read from MH i2c: E2 [18:36:18]MH_I2C_Read... [18:36:18]Read from MH i2c: E2 03 00 [18:36:18]MH_I2C_Read... [18:36:18]Read from MH i2c: E2 03 00 F6 1C 00 90 00 86 [18:36:18]RAPDU: 90 00 [18:36:18]wFMCommunicate OK [18:36:18]wFMCommunicate request_size=4 [18:36:18]MH_SAM_APDU [18:36:18]CAPDU: 80 0D 03 02 [18:36:18]Write to MH i2c: E2 08 00 F7 1C 80 0D 03 02 00 00 00 00 8E [18:36:18]Write i2c OK [18:36:18]MH_I2C_Read... [18:36:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:36:18]Read from MH i2c: E2 [18:36:18]MH_I2C_Read... [18:36:18]Read from MH i2c: E2 0B 00 [18:36:18]MH_I2C_Read... [18:36:18]Read from MH i2c: E2 0B 00 F7 1C 00 3E 67 17 CA A4 C2 AC 9E 90 00 C5 [18:36:18]RAPDU: 3E 67 17 CA A4 C2 AC 9E 90 00 [18:36:18]wFMCommunicate OK [18:36:18]SAM_PROTO_SignData done [18:36:18]FM_MakeSignedData done [18:36:18]CreateOFDProtocolMessage [18:36:18]wFMCommunicate request_size=4 [18:36:18]MH_SAM_APDU [18:36:18]CAPDU: 80 11 00 00 [18:36:18]Write to MH i2c: E2 08 00 F8 1C 80 11 00 00 00 00 00 00 8E [18:36:18]Write i2c OK [18:36:18]MH_I2C_Read... [18:36:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:18]Read from MH i2c: E2 [18:36:18]MH_I2C_Read... [18:36:18]Read from MH i2c: E2 17 00 [18:36:18]MH_I2C_Read... [18:36:18]Read from MH i2c: E2 17 00 F8 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E5 [18:36:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:36:18]wFMCommunicate OK [18:36:18]CreateOFDProtocolMessage done [18:36:18]OFDSenderStorePacket 227596 [18:36:18]StoreOFDPacket docnum=227596 [18:36:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 69 30 07 01 11 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 01 00 00 F4 03 04 00 A2 4D 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0C 79 03 00 35 04 06 00 2C CA 9A 39 7C 7A 3E 67 17 CA A4 C2 AC 9E [18:36:18]CheckFolder [18:36:18]dirname=/storage/ofd_packets [18:36:18]CheckFolder done [18:36:18]ProducePacketName [18:36:18]name=ofd_packets/00227596 [18:36:18]NVStorageSaveData ofd_packets/00227596 [18:36:18]File name is /storage/ofd_packets/00227596 [18:36:18]Write 301 bytes [18:36:18]NVStorageSaveData done [18:36:18]OFDSenderStorePacket done [18:36:18]KKMCreateOFDPacket done [18:36:18]NVStorageSaveData kkm_last_timestamp [18:36:18]File name is /storage/kkm_last_timestamp [18:36:18]Write 4 bytes [18:36:18]NVStorageSaveData done [18:36:18]ExternCall_PrintAddStr [18:36:18]wPrintStart [18:36:18]Write to MH i2c: 01 00 00 F9 1C 15 [18:36:18]Write i2c OK [18:36:18]MH_I2C_Read... [18:36:18]Read from MH i2c: 01 [18:36:18]MH_I2C_Read... [18:36:18]Read from MH i2c: 01 07 00 [18:36:18]MH_I2C_Read... [18:36:18]Read from MH i2c: 01 07 00 F9 1C 00 00 00 00 00 FF 0F 2A [18:36:18]RasterBufferAndPrint [18:36:18]line Счет N : (1)1963232 [18:36:18]line ИНН: 02508201610067 [18:36:18]line Контрольно-Кассовый Чек [18:36:18]line ПРОДАЖА [18:36:18]line ТРК (МРК, ГНК) : 53 [18:36:18]line Товар: 2710124130 [18:36:18]line Аи-92-К-5 [18:36:18]line 14.950 * 66.90 [18:36:18]line = 1000.16 [18:36:18]line НДС 12% НСП 1% [18:36:18]line > о реализуемом товаре [18:36:18]line ОКРУГЛЕНИЕ: -0.16 [18:36:18]line ИТОГО: 1000.00 [18:36:18]line Внесено: 1000.00 [18:36:18]line СДАЧА: 0.00 [18:36:18]line НСП 1% : 8.85 [18:36:18]line НДС 12% : 106.21 [18:36:18]line Наличными: 1000.00 [18:36:18]line Безнал.: 0.00 [18:36:18]line Место: АЗС № 133 "Партнер Нефть" [18:36:18]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:36:18]line СНО: Общий режим [18:36:18]line Чек 444 20.10.2024 18:36 [18:36:18]line Смена: 533 ФФД: 1.0 [18:36:18]line ЗНМ: 0300000091 [18:36:18]line РНМ: 0000000000091685 [18:36:18]line Версия ККМ: 001 [18:36:18]line ФМ: 0000000000871839 [18:36:18]line ФД: 227596 [18:36:18]line ФПД: 49248682474618 [18:36:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T183618&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227596&fm=49248682474618&tin=02508201610067®Number=0000000000091685&sum=100000 [18:36:19]OFD Sender: Processing packet 227596 [packets to send 38, broken 37] [18:36:19]ProducePacketName [18:36:19]name=ofd_packets/00227596 [18:36:19]OFD Sender: To server: pG, [18:36:19]CommunicateWithHost lk.salyk.kg:30040 [18:36:19]ConnectInit lk.salyk.kg [18:36:19]written 0, free lines is 4095 [18:36:19]Connected sock=10 [18:36:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 69 30 07 01 11 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 01 00 00 F4 03 04 00 A2 4D 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0C 79 03 00 35 04 06 00 2C CA 9A 39 7C 7A 3E 67 17 CA A4 C2 AC 9E [18: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 33 39 4F 00 00 00 B2 87 47 00 03 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 33 39 10 04 04 00 0C 79 03 00 F4 03 04 00 A1 F8 14 67 B6 04 01 00 00 E0 84 6D AB BC 78 E6 23 [18:36:19]CommunicateWithHost err = 0 [18:36:19]CheckOFDResponse [18:36:19]1017 (14) - 77093643461234 [18:36:19]1041 (16) - 0000000000871839 [18:36:19]1040 (4) - 227596 [18:36:19]1012 (4) - 20.10.2024 12:33 [18:36:19]1206 (1) - 0 [18:36:19]OFD Sender: Remove packet 227596 [18:36:19]ProducePacketName [18:36:19]name=ofd_packets/00227596 [18:36:19]NVStorageDeleteData [18:36:19]Write to MH i2c: 01 00 00 23 1D 40 [18:36:19]Write i2c OK [18:36:19]MH_I2C_Read... [18:36:19]Read from MH i2c: 01 [18:36:19]MH_I2C_Read... [18:36:19]Read from MH i2c: 01 07 00 [18:36:19]MH_I2C_Read... [18:36:19]Read from MH i2c: 01 07 00 23 1D 00 00 00 00 00 02 0D 56 [18:36:19]RasterBufferAndPrint [18:36:19]line [18:36:19]line [18:36:19]line [18:36:19]line [18:36:19]line [18:36:19]written 0, free lines is 3336 [18:36:19]process_action close_receipt done [18:36:19]requested_data is exist [18:36:19]produce_requested_data [18:36:19]requested_item fm.sn is exist - process it [18:36:19]wFMCommunicate request_size=4 [18:36:19]MH_SAM_APDU [18:36:19]CAPDU: 80 11 00 00 [18:36:19]Write to MH i2c: E2 08 00 2A 1D 80 11 00 00 00 00 00 00 C1 [18:36:19]Write i2c OK [18:36:19]MH_I2C_Read... [18:36:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:19]Read from MH i2c: E2 [18:36:19]MH_I2C_Read... [18:36:19]Read from MH i2c: E2 17 00 [18:36:19]MH_I2C_Read... [18:36:19]Read from MH i2c: E2 17 00 2A 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 18 [18:36:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:36:19]wFMCommunicate OK [18:36:19]requested_item fd.num is exist - process it [18:36:19]SAM_PROTO_GetFieldsCounters [18:36:19]wFMCommunicate request_size=4 [18:36:19]MH_SAM_APDU [18:36:19]CAPDU: 80 13 00 00 [18:36:19]Write to MH i2c: E2 08 00 2B 1D 80 13 00 00 00 00 00 00 C4 [18:36:19]Write i2c OK [18:36:19]MH_I2C_Read... [18:36:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:36:19]Read from MH i2c: E2 [18:36:19]MH_I2C_Read... [18:36:19]Read from MH i2c: E2 62 00 [18:36:19]MH_I2C_Read... [18:36:19]Read from MH i2c: E2 62 00 2B 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 0C 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 BC 01 00 00 5E 04 04 00 BC 01 00 00 57 04 04 00 BD 01 00 00 19 04 04 00 00 00 00 00 90 00 C3 [18:36: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 0C 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 BC 01 00 00 5E 04 04 00 BC 01 00 00 57 04 04 00 BD 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:36:19]wFMCommunicate OK [18:36:19]SAM_PROTO_GetFieldsCounters done [18:36:19]requested_item shift.num is exist - process it [18:36:19]requested_item shift.opened is exist - process it [18:36:19]req_shift_opened [18:36:19]FM_GetShiftState [18:36:19]SAM_PROTO_GetShiftState [18:36:19]wFMCommunicate request_size=4 [18:36:19]MH_SAM_APDU [18:36:19]CAPDU: 80 13 01 00 [18:36:19]Write to MH i2c: E2 08 00 2C 1D 80 13 01 00 00 00 00 00 C6 [18:36:19]Write i2c OK [18:36:19]MH_I2C_Read... [18:36:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:19]Read from MH i2c: E2 [18:36:19]MH_I2C_Read... [18:36:19]Read from MH i2c: E2 0E 00 [18:36:19]MH_I2C_Read... [18:36:19]Read from MH i2c: E2 0E 00 2C 1D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 E0 [18:36:19]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:36:19]wFMCommunicate OK [18:36:19]SAM_PROTO_GetShiftState done [18:36:19]FM_GetShiftState done [18:36:19]req_shift_opened done [18:36:19]requested_item shift.open_date is exist - process it [18:36:19]req_shift_open_date [18:36:19]req_shift_open_date done [18:36:19]produce_requested_data done [18:36:19]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227596,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [18:36:19]process_action_free close_receipt [18:36:19]json_value_free [18:36:19]json_value_free done [18:36:19]process_json_proto returns [18:36:19]Send response to host [18:36:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227596,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [18:36:19]free response buf [18:36:19]execute_script done [18:36:19]execute_script returns [18:36:19]free content buf [18:36:19]Sock 9.Close socket [18:36:19]Sock 9.Thread stoped [18:36:19]OFD Sender: No OFD packet to send [18:36:24]OFD Sender: No OFD packet to send [18:36:28]accept exits with 7 [18:36:28]New connection [18:36:28]New thread 3067362660 created [18:36:28]Thread 3067219300 joined [18:36:28]Waiting for new connection... [18:36:28] Sock 7.Parse request [18:36:28]Sock 7.Check first char [18:36:28]Sock 7.First char is OK [18:36:28]request: POST /json_proto HTTP/1.0 [18:36:28]Method: POST [18:36:28]URL: /json_proto [18:36:28]Method is POST - this is cgi request [18:36:28]url: /json_proto [18:36:28]query_string will be loaded in cgi processing [18:36:28]execute_cgi json_proto POST (null) [18:36:28]execute_cgi path=json_proto method=POST [18:36:28]POST find Content-Length [18:36:28]Host: 172.17.44.195:8080 [18:36:28]Content-Length: 678 [18:36:28]Content-Type: application/json [18:36:28] [18:36:28]POST finish read [18:36:28]Found Content-Length = 678 [18:36:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963233", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:28]execute_script... [18:36:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963233", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:28]POST & json_proto [18:36:28]process_json_proto [18:36:28]json parsed OK: [18:36:28]protocol is kg_v1.0 [18:36:28]action value=close_receipt [18:36:28]process_action close_receipt [18:36:28]cmd_close_receipt [18:36:28]MH_GetDate [18:36:28]Write to MH i2c: F0 00 00 2D 1D 39 [18:36:28]Write i2c OK [18:36:28]MH_I2C_Read... [18:36:28]Read from MH i2c: F0 [18:36:28]MH_I2C_Read... [18:36:28]Read from MH i2c: F0 09 00 [18:36:28]MH_I2C_Read... [18:36:28]Read from MH i2c: F0 09 00 2D 1D 00 AE 4D 15 67 82 C9 CF 66 39 [18:36:28]GetLastDocTimeStamp 1729449378 [18:36:28]current date 1729449390 [18:36:28]FM_GetShiftState [18:36:28]SAM_PROTO_GetShiftState [18:36:28]wFMCommunicate request_size=4 [18:36:28]MH_SAM_APDU [18:36:28]CAPDU: 80 13 01 00 [18:36:28]Write to MH i2c: E2 08 00 2E 1D 80 13 01 00 00 00 00 00 C8 [18:36:28]Write i2c OK [18:36:28]MH_I2C_Read... [18:36:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:28]Read from MH i2c: E2 [18:36:28]MH_I2C_Read... [18:36:28]Read from MH i2c: E2 0E 00 [18:36:28]MH_I2C_Read... [18:36:28]Read from MH i2c: E2 0E 00 2E 1D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 E2 [18:36:28]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:36:28]wFMCommunicate OK [18:36:28]SAM_PROTO_GetShiftState done [18:36:28]FM_GetShiftState done [18:36:28]opened in 1729383750 [18:36:28]opened+sec_in_day 1729470150 [18:36:28]quantity*price = 25020 [18:36:28]sum+1 = 25022 [18:36:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 445 20.10.2024 18:36 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227597 ФПД: 43861159578149 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T183630&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227597&fm=43861159578149&tin=02508201610067®Number=0000000000091685&sum=25000 [18:36:29]StoreToDocumentArchive [18:36:29]shift 533 fd 227597 [18:36:29]save to /storage/0533/doc_00227597 [18:36:29]save last doc name /storage/0533/doc_00227597 to /storage/kkm_last_doc_name [18:36:29]save OK [18:36:29]Clear old archive folders... [18:36:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:36:29]tlvbuf is 00DAF320 [18:36:29]SAM_PROTO_ClearQueue [18:36:29]wFMCommunicate request_size=4 [18:36:29]MH_SAM_APDU [18:36:29]CAPDU: 80 09 00 00 [18:36:29]Write to MH i2c: E2 08 00 3B 1D 80 09 00 00 00 00 00 00 CA [18:36:29]Write i2c OK [18:36:29]MH_I2C_Read... [18:36:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:36:29]Read from MH i2c: E2 [18:36:29]MH_I2C_Read... [18:36:29]Read from MH i2c: E2 03 00 [18:36:29]MH_I2C_Read... [18:36:29]Read from MH i2c: E2 03 00 3B 1D 00 90 00 CC [18:36:29]RAPDU: 90 00 [18:36:29]wFMCommunicate OK [18:36:29]SAM_PROTO_ClearQueue done [18:36:29]KKMCreateOFDPacket [18:36:29]OFDProtocolAddRootSTLVToBuf [18:36:29]FM_MakeSignedData [18:36:29]FM_MakeSignedData [18:36:29]SAM_PROTO_SignData [18:36:29]wFMCommunicate request_size=4 [18:36:29]MH_SAM_APDU [18:36:29]CAPDU: 80 0D 01 02 [18:36:29]Write to MH i2c: E2 08 00 3C 1D 80 0D 01 02 00 00 00 00 D2 [18:36:29]Write i2c OK [18:36:29]MH_I2C_Read... [18:36:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:36:29]Read from MH i2c: E2 [18:36:29]MH_I2C_Read... [18:36:29]Read from MH i2c: E2 03 00 [18:36:29]MH_I2C_Read... [18:36:29]Read from MH i2c: E2 03 00 3C 1D 00 90 00 CD [18:36:29]RAPDU: 90 00 [18:36:29]wFMCommunicate OK [18:36:29]wFMCommunicate request_size=255 [18:36:29]MH_SAM_APDU [18:36:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 01 00 00 F4 03 04 00 AE 4D 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0D 79 03 00 35 04 06 00 27 [18:36:29]Write to MH i2c: E2 02 01 3D 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 01 00 00 F4 03 04 00 AE 4D 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0D 79 03 00 35 04 06 00 27 00 00 3E [18:36:29]Write i2c OK [18:36:29]MH_I2C_Read... [18:36:30]OFD Sender: No OFD packet to send [18:36:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:30]Read from MH i2c: E2 [18:36:30]MH_I2C_Read... [18:36:30]Read from MH i2c: E2 03 00 [18:36:30]MH_I2C_Read... [18:36:30]Read from MH i2c: E2 03 00 3D 1D 00 90 00 CE [18:36:30]RAPDU: 90 00 [18:36:30]wFMCommunicate OK [18:36:30]wFMCommunicate request_size=10 [18:36:30]MH_SAM_APDU [18:36:30]CAPDU: 80 0D 02 02 05 E4 38 D6 0A 25 [18:36:30]Write to MH i2c: E2 0D 00 3E 1D 80 0D 02 02 05 00 E4 38 D6 0A 25 00 00 00 [18:36:30]Write i2c OK [18:36:30]MH_I2C_Read... [18:36:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:30]Read from MH i2c: E2 [18:36:30]MH_I2C_Read... [18:36:30]Read from MH i2c: E2 03 00 [18:36:30]MH_I2C_Read... [18:36:30]Read from MH i2c: E2 03 00 3E 1D 00 90 00 CF [18:36:30]RAPDU: 90 00 [18:36:30]wFMCommunicate OK [18:36:30]wFMCommunicate request_size=4 [18:36:30]MH_SAM_APDU [18:36:30]CAPDU: 80 0D 03 02 [18:36:30]Write to MH i2c: E2 08 00 3F 1D 80 0D 03 02 00 00 00 00 D7 [18:36:30]Write i2c OK [18:36:30]MH_I2C_Read... [18:36:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:36:30]Read from MH i2c: E2 [18:36:30]MH_I2C_Read... [18:36:30]Read from MH i2c: E2 0B 00 [18:36:30]MH_I2C_Read... [18:36:30]Read from MH i2c: E2 0B 00 3F 1D 00 CC 12 05 27 F4 2D CB 03 90 00 D1 [18:36:30]RAPDU: CC 12 05 27 F4 2D CB 03 90 00 [18:36:30]wFMCommunicate OK [18:36:30]SAM_PROTO_SignData done [18:36:30]FM_MakeSignedData done [18:36:30]CreateOFDProtocolMessage [18:36:30]wFMCommunicate request_size=4 [18:36:30]MH_SAM_APDU [18:36:30]CAPDU: 80 11 00 00 [18:36:30]Write to MH i2c: E2 08 00 40 1D 80 11 00 00 00 00 00 00 D7 [18:36:30]Write i2c OK [18:36:30]MH_I2C_Read... [18:36:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:30]Read from MH i2c: E2 [18:36:30]MH_I2C_Read... [18:36:30]Read from MH i2c: E2 17 00 [18:36:30]MH_I2C_Read... [18:36:30]Read from MH i2c: E2 17 00 40 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 2E [18:36:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:36:30]wFMCommunicate OK [18:36:30]CreateOFDProtocolMessage done [18:36:30]OFDSenderStorePacket 227597 [18:36:30]StoreOFDPacket docnum=227597 [18:36:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 23 15 07 01 43 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 01 00 00 F4 03 04 00 AE 4D 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0D 79 03 00 35 04 06 00 27 E4 38 D6 0A 25 CC 12 05 27 F4 2D CB 03 [18:36:30]CheckFolder [18:36:30]dirname=/storage/ofd_packets [18:36:30]CheckFolder done [18:36:30]ProducePacketName [18:36:30]name=ofd_packets/00227597 [18:36:30]NVStorageSaveData ofd_packets/00227597 [18:36:30]File name is /storage/ofd_packets/00227597 [18:36:30]Write 301 bytes [18:36:30]NVStorageSaveData done [18:36:30]OFDSenderStorePacket done [18:36:30]KKMCreateOFDPacket done [18:36:30]NVStorageSaveData kkm_last_timestamp [18:36:30]File name is /storage/kkm_last_timestamp [18:36:30]Write 4 bytes [18:36:30]NVStorageSaveData done [18:36:30]ExternCall_PrintAddStr [18:36:30]wPrintStart [18:36:30]Write to MH i2c: 01 00 00 41 1D 5E [18:36:30]Write i2c OK [18:36:30]MH_I2C_Read... [18:36:30]Read from MH i2c: 01 [18:36:30]MH_I2C_Read... [18:36:30]Read from MH i2c: 01 07 00 [18:36:30]MH_I2C_Read... [18:36:30]Read from MH i2c: 01 07 00 41 1D 00 00 00 00 00 FF 0F 73 [18:36:30]RasterBufferAndPrint [18:36:30]line Счет N : (1)1963233 [18:36:30]line ИНН: 02508201610067 [18:36:30]line Контрольно-Кассовый Чек [18:36:30]line ПРОДАЖА [18:36:30]line ТРК (МРК, ГНК) : 63 [18:36:30]line Товар: 2710124130 [18:36:30]line Аи-92-К-5 [18:36:30]line 3.740 * 66.90 [18:36:30]line = 250.21 [18:36:30]line НДС 12% НСП 1% [18:36:30]line > о реализуемом товаре [18:36:30]line ОКРУГЛЕНИЕ: -0.21 [18:36:30]line ИТОГО: 250.00 [18:36:30]line Внесено: 250.00 [18:36:30]line СДАЧА: 0.00 [18:36:30]line НСП 1% : 2.21 [18:36:30]line НДС 12% : 26.57 [18:36:30]line Наличными: 250.00 [18:36:30]line Безнал.: 0.00 [18:36:30]line Место: АЗС № 133 "Партнер Нефть" [18:36:30]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:36:30]line СНО: Общий режим [18:36:30]line Чек 445 20.10.2024 18:36 [18:36:30]line Смена: 533 ФФД: 1.0 [18:36:30]line ЗНМ: 0300000091 [18:36:30]line РНМ: 0000000000091685 [18:36:30]line Версия ККМ: 001 [18:36:30]line ФМ: 0000000000871839 [18:36:30]line ФД: 227597 [18:36:30]line ФПД: 43861159578149 [18:36:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T183630&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227597&fm=43861159578149&tin=02508201610067®Number=0000000000091685&sum=25000 [18:36:30]OFD Sender: Processing packet 227597 [packets to send 38, broken 37] [18:36:30]ProducePacketName [18:36:30]name=ofd_packets/00227597 [18:36:30]OFD Sender: To server: pG, [18:36:30]CommunicateWithHost lk.salyk.kg:30040 [18:36:30]ConnectInit lk.salyk.kg [18:36:30]written 0, free lines is 4095 [18:36:30]Connected sock=10 [18:36:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 23 15 07 01 43 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 01 00 00 F4 03 04 00 AE 4D 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0D 79 03 00 35 04 06 00 27 E4 38 D6 0A 25 CC 12 05 27 F4 2D CB 03 [18:36:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 CE F1 47 00 A9 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 33 39 10 04 04 00 0D 79 03 00 F4 03 04 00 AC F8 14 67 B6 04 01 00 00 6F 1F C1 AC 7D 3A 21 C6 [18:36:30]CommunicateWithHost err = 0 [18:36:30]CheckOFDResponse [18:36:30]1017 (14) - 77093643461234 [18:36:30]1041 (16) - 0000000000871839 [18:36:30]1040 (4) - 227597 [18:36:30]1012 (4) - 20.10.2024 12:33 [18:36:30]1206 (1) - 0 [18:36:30]OFD Sender: Remove packet 227597 [18:36:30]ProducePacketName [18:36:30]name=ofd_packets/00227597 [18:36:30]NVStorageDeleteData [18:36:30]Write to MH i2c: 01 00 00 6B 1D 88 [18:36:30]Write i2c OK [18:36:30]MH_I2C_Read... [18:36:30]Read from MH i2c: 01 [18:36:30]MH_I2C_Read... [18:36:30]Read from MH i2c: 01 07 00 [18:36:30]MH_I2C_Read... [18:36:30]Read from MH i2c: 01 07 00 6B 1D 00 00 00 00 00 FE 0C 99 [18:36:30]RasterBufferAndPrint [18:36:30]line [18:36:30]line [18:36:30]line [18:36:30]line [18:36:30]line [18:36:30]written 0, free lines is 3335 [18:36:30]process_action close_receipt done [18:36:30]requested_data is exist [18:36:30]produce_requested_data [18:36:30]requested_item fm.sn is exist - process it [18:36:30]wFMCommunicate request_size=4 [18:36:30]MH_SAM_APDU [18:36:30]CAPDU: 80 11 00 00 [18:36:30]Write to MH i2c: E2 08 00 72 1D 80 11 00 00 00 00 00 00 09 [18:36:30]Write i2c OK [18:36:30]MH_I2C_Read... [18:36:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:31]Read from MH i2c: E2 [18:36:31]MH_I2C_Read... [18:36:31]Read from MH i2c: E2 17 00 [18:36:31]MH_I2C_Read... [18:36:31]Read from MH i2c: E2 17 00 72 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 60 [18:36:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:36:31]wFMCommunicate OK [18:36:31]requested_item fd.num is exist - process it [18:36:31]SAM_PROTO_GetFieldsCounters [18:36:31]wFMCommunicate request_size=4 [18:36:31]MH_SAM_APDU [18:36:31]CAPDU: 80 13 00 00 [18:36:31]Write to MH i2c: E2 08 00 73 1D 80 13 00 00 00 00 00 00 0C [18:36:31]Write i2c OK [18:36:31]MH_I2C_Read... [18:36:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:36:31]Read from MH i2c: E2 [18:36:31]MH_I2C_Read... [18:36:31]Read from MH i2c: E2 62 00 [18:36:31]MH_I2C_Read... [18:36:31]Read from MH i2c: E2 62 00 73 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 0D 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 BD 01 00 00 5E 04 04 00 BD 01 00 00 57 04 04 00 BE 01 00 00 19 04 04 00 00 00 00 00 90 00 0F [18:36: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 0D 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 BD 01 00 00 5E 04 04 00 BD 01 00 00 57 04 04 00 BE 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:36:31]wFMCommunicate OK [18:36:31]SAM_PROTO_GetFieldsCounters done [18:36:31]requested_item shift.num is exist - process it [18:36:31]requested_item shift.opened is exist - process it [18:36:31]req_shift_opened [18:36:31]FM_GetShiftState [18:36:31]SAM_PROTO_GetShiftState [18:36:31]wFMCommunicate request_size=4 [18:36:31]MH_SAM_APDU [18:36:31]CAPDU: 80 13 01 00 [18:36:31]Write to MH i2c: E2 08 00 74 1D 80 13 01 00 00 00 00 00 0E [18:36:31]Write i2c OK [18:36:31]MH_I2C_Read... [18:36:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:31]Read from MH i2c: E2 [18:36:31]MH_I2C_Read... [18:36:31]Read from MH i2c: E2 0E 00 [18:36:31]MH_I2C_Read... [18:36:31]Read from MH i2c: E2 0E 00 74 1D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 28 [18:36:31]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:36:31]wFMCommunicate OK [18:36:31]SAM_PROTO_GetShiftState done [18:36:31]FM_GetShiftState done [18:36:31]req_shift_opened done [18:36:31]requested_item shift.open_date is exist - process it [18:36:31]req_shift_open_date [18:36:31]req_shift_open_date done [18:36:31]produce_requested_data done [18:36:31]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227597,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [18:36:31]process_action_free close_receipt [18:36:31]json_value_free [18:36:31]json_value_free done [18:36:31]process_json_proto returns [18:36:31]Send response to host [18:36:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227597,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [18:36:31]free response buf [18:36:31]execute_script done [18:36:31]execute_script returns [18:36:31]free content buf [18:36:31]Sock 7.Close socket [18:36:31]Sock 7.Thread stoped [18:36:31]OFD Sender: No OFD packet to send [18:36:36]OFD Sender: No OFD packet to send [18:36:41]OFD Sender: No OFD packet to send [18:36:46]OFD Sender: No OFD packet to send [18:36:47]accept exits with 9 [18:36:47]New connection [18:36:47]New thread 3067219300 created [18:36:47]Thread 3067362660 joined [18:36:47]Waiting for new connection... [18:36:47] Sock 9.Parse request [18:36:47]Sock 9.Check first char [18:36:47]Sock 9.First char is OK [18:36:47]request: POST /json_proto HTTP/1.0 [18:36:47]Method: POST [18:36:47]URL: /json_proto [18:36:47]Method is POST - this is cgi request [18:36:47]url: /json_proto [18:36:47]query_string will be loaded in cgi processing [18:36:47]execute_cgi json_proto POST (null) [18:36:47]execute_cgi path=json_proto method=POST [18:36:47]POST find Content-Length [18:36:47]Host: 172.17.44.195:8080 [18:36:48]Content-Length: 678 [18:36:48]Content-Type: application/json [18:36:48] [18:36:48]POST finish read [18:36:48]Found Content-Length = 678 [18:36:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963234", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:48]execute_script... [18:36: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)1963234", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:48]POST & json_proto [18:36:48]process_json_proto [18:36:48]json parsed OK: [18:36:48]protocol is kg_v1.0 [18:36:48]action value=close_receipt [18:36:48]process_action close_receipt [18:36:48]cmd_close_receipt [18:36:48]MH_GetDate [18:36:48]Write to MH i2c: F0 00 00 75 1D 81 [18:36:48]Write i2c OK [18:36:48]MH_I2C_Read... [18:36:48]Read from MH i2c: F0 [18:36:48]MH_I2C_Read... [18:36:48]Read from MH i2c: F0 09 00 [18:36:48]MH_I2C_Read... [18:36:48]Read from MH i2c: F0 09 00 75 1D 00 C1 4D 15 67 82 C9 CF 66 94 [18:36:48]GetLastDocTimeStamp 1729449390 [18:36:48]current date 1729449409 [18:36:48]FM_GetShiftState [18:36:48]SAM_PROTO_GetShiftState [18:36:48]wFMCommunicate request_size=4 [18:36:48]MH_SAM_APDU [18:36:48]CAPDU: 80 13 01 00 [18:36:48]Write to MH i2c: E2 08 00 76 1D 80 13 01 00 00 00 00 00 10 [18:36:48]Write i2c OK [18:36:48]MH_I2C_Read... [18:36:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:48]Read from MH i2c: E2 [18:36:48]MH_I2C_Read... [18:36:48]Read from MH i2c: E2 0E 00 [18:36:48]MH_I2C_Read... [18:36:48]Read from MH i2c: E2 0E 00 76 1D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 2A [18:36:48]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:36:48]wFMCommunicate OK [18:36:48]SAM_PROTO_GetShiftState done [18:36:48]FM_GetShiftState done [18:36:48]opened in 1729383750 [18:36:48]opened+sec_in_day 1729470150 [18:36:48]quantity*price = 70044 [18:36:48]sum+1 = 70046 [18:36:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 446 20.10.2024 18:36 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227598 ФПД: 93991515658603 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T183649&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227598&fm=93991515658603&tin=02508201610067®Number=0000000000091685&sum=70000 [18:36:49]StoreToDocumentArchive [18:36:49]shift 533 fd 227598 [18:36:49]save to /storage/0533/doc_00227598 [18:36:49]save last doc name /storage/0533/doc_00227598 to /storage/kkm_last_doc_name [18:36:49]save OK [18:36:49]Clear old archive folders... [18:36:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:36:49]tlvbuf is 00DD2C30 [18:36:49]SAM_PROTO_ClearQueue [18:36:49]wFMCommunicate request_size=4 [18:36:49]MH_SAM_APDU [18:36:49]CAPDU: 80 09 00 00 [18:36:49]Write to MH i2c: E2 08 00 83 1D 80 09 00 00 00 00 00 00 12 [18:36:49]Write i2c OK [18:36:49]MH_I2C_Read... [18:36:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:36:49]Read from MH i2c: E2 [18:36:49]MH_I2C_Read... [18:36:49]Read from MH i2c: E2 03 00 [18:36:49]MH_I2C_Read... [18:36:49]Read from MH i2c: E2 03 00 83 1D 00 90 00 14 [18:36:49]RAPDU: 90 00 [18:36:49]wFMCommunicate OK [18:36:49]SAM_PROTO_ClearQueue done [18:36:49]KKMCreateOFDPacket [18:36:49]OFDProtocolAddRootSTLVToBuf [18:36:49]FM_MakeSignedData [18:36:49]FM_MakeSignedData [18:36:49]SAM_PROTO_SignData [18:36:49]wFMCommunicate request_size=4 [18:36:49]MH_SAM_APDU [18:36:49]CAPDU: 80 0D 01 02 [18:36:49]Write to MH i2c: E2 08 00 84 1D 80 0D 01 02 00 00 00 00 1A [18:36:49]Write i2c OK [18:36:49]MH_I2C_Read... [18:36:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:36:49]Read from MH i2c: E2 [18:36:49]MH_I2C_Read... [18:36:49]Read from MH i2c: E2 03 00 [18:36:49]MH_I2C_Read... [18:36:49]Read from MH i2c: E2 03 00 84 1D 00 90 00 15 [18:36:49]RAPDU: 90 00 [18:36:49]wFMCommunicate OK [18:36:49]wFMCommunicate request_size=255 [18:36:49]MH_SAM_APDU [18:36:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 BE 01 00 00 F4 03 04 00 C1 4D 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0E 79 03 00 35 04 06 00 55 [18:36:49]Write to MH i2c: E2 02 01 85 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 BE 01 00 00 F4 03 04 00 C1 4D 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0E 79 03 00 35 04 06 00 55 00 00 D7 [18:36:49]Write i2c OK [18:36:49]MH_I2C_Read... [18:36:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:49]Read from MH i2c: E2 [18:36:49]MH_I2C_Read... [18:36:49]Read from MH i2c: E2 03 00 [18:36:49]MH_I2C_Read... [18:36:49]Read from MH i2c: E2 03 00 85 1D 00 90 00 16 [18:36:49]RAPDU: 90 00 [18:36:49]wFMCommunicate OK [18:36:49]wFMCommunicate request_size=10 [18:36:49]MH_SAM_APDU [18:36:49]CAPDU: 80 0D 02 02 05 7C 1A E7 19 6B [18:36:49]Write to MH i2c: E2 0D 00 86 1D 80 0D 02 02 05 00 7C 1A E7 19 6B 00 00 28 [18:36:49]Write i2c OK [18:36:49]MH_I2C_Read... [18:36:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:49]Read from MH i2c: E2 [18:36:49]MH_I2C_Read... [18:36:49]Read from MH i2c: E2 03 00 [18:36:49]MH_I2C_Read... [18:36:49]Read from MH i2c: E2 03 00 86 1D 00 90 00 17 [18:36:49]RAPDU: 90 00 [18:36:49]wFMCommunicate OK [18:36:49]wFMCommunicate request_size=4 [18:36:49]MH_SAM_APDU [18:36:49]CAPDU: 80 0D 03 02 [18:36:49]Write to MH i2c: E2 08 00 87 1D 80 0D 03 02 00 00 00 00 1F [18:36:49]Write i2c OK [18:36:49]MH_I2C_Read... [18:36:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:36:49]Read from MH i2c: E2 [18:36:49]MH_I2C_Read... [18:36:49]Read from MH i2c: E2 0B 00 [18:36:49]MH_I2C_Read... [18:36:49]Read from MH i2c: E2 0B 00 87 1D 00 17 9B 0C 5A BF 46 C2 50 90 00 4F [18:36:49]RAPDU: 17 9B 0C 5A BF 46 C2 50 90 00 [18:36:49]wFMCommunicate OK [18:36:49]SAM_PROTO_SignData done [18:36:49]FM_MakeSignedData done [18:36:49]CreateOFDProtocolMessage [18:36:49]wFMCommunicate request_size=4 [18:36:49]MH_SAM_APDU [18:36:49]CAPDU: 80 11 00 00 [18:36:49]Write to MH i2c: E2 08 00 88 1D 80 11 00 00 00 00 00 00 1F [18:36:49]Write i2c OK [18:36:49]MH_I2C_Read... [18:36:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:49]Read from MH i2c: E2 [18:36:49]MH_I2C_Read... [18:36:49]Read from MH i2c: E2 17 00 [18:36:49]MH_I2C_Read... [18:36:49]Read from MH i2c: E2 17 00 88 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 76 [18:36:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:36:49]wFMCommunicate OK [18:36:49]CreateOFDProtocolMessage done [18:36:49]OFDSenderStorePacket 227598 [18:36:49]StoreOFDPacket docnum=227598 [18:36:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 B9 B9 07 01 D6 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 BE 01 00 00 F4 03 04 00 C1 4D 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0E 79 03 00 35 04 06 00 55 7C 1A E7 19 6B 17 9B 0C 5A BF 46 C2 50 [18:36:49]CheckFolder [18:36:49]dirname=/storage/ofd_packets [18:36:49]CheckFolder done [18:36:49]ProducePacketName [18:36:49]name=ofd_packets/00227598 [18:36:49]NVStorageSaveData ofd_packets/00227598 [18:36:49]File name is /storage/ofd_packets/00227598 [18:36:49]Write 301 bytes [18:36:49]NVStorageSaveData done [18:36:49]OFDSenderStorePacket done [18:36:49]KKMCreateOFDPacket done [18:36:49]NVStorageSaveData kkm_last_timestamp [18:36:49]File name is /storage/kkm_last_timestamp [18:36:49]Write 4 bytes [18:36:49]NVStorageSaveData done [18:36:49]ExternCall_PrintAddStr [18:36:49]wPrintStart [18:36:49]Write to MH i2c: 01 00 00 89 1D A6 [18:36:49]Write i2c OK [18:36:49]MH_I2C_Read... [18:36:49]Read from MH i2c: 01 [18:36:49]MH_I2C_Read... [18:36:49]Read from MH i2c: 01 07 00 [18:36:49]MH_I2C_Read... [18:36:49]Read from MH i2c: 01 07 00 89 1D 00 00 00 00 00 FF 0F BB [18:36:49]RasterBufferAndPrint [18:36:49]line Счет N : (1)1963234 [18:36:49]line ИНН: 02508201610067 [18:36:49]line Контрольно-Кассовый Чек [18:36:49]line ПРОДАЖА [18:36:49]line ТРК (МРК, ГНК) : 34 [18:36:49]line Товар: 2710124500 [18:36:49]line Аи-95-К-5 [18:36:49]line 9.440 * 74.20 [18:36:49]line = 700.45 [18:36:49]line НДС 12% НСП 1% [18:36:49]line > о реализуемом товаре [18:36:49]line ОКРУГЛЕНИЕ: -0.45 [18:36:49]line ИТОГО: 700.00 [18:36:49]line Внесено: 700.00 [18:36:49]line СДАЧА: 0.00 [18:36:49]line НСП 1% : 6.20 [18:36:49]line НДС 12% : 74.38 [18:36:49]line Наличными: 700.00 [18:36:49]line Безнал.: 0.00 [18:36:49]line Место: АЗС № 133 "Партнер Нефть" [18:36:49]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:36:49]line СНО: Общий режим [18:36:49]line Чек 446 20.10.2024 18:36 [18:36:49]line Смена: 533 ФФД: 1.0 [18:36:49]line ЗНМ: 0300000091 [18:36:49]line РНМ: 0000000000091685 [18:36:49]line Версия ККМ: 001 [18:36:49]line ФМ: 0000000000871839 [18:36:49]line ФД: 227598 [18:36:49]line ФПД: 93991515658603 [18:36:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T183649&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227598&fm=93991515658603&tin=02508201610067®Number=0000000000091685&sum=70000 [18:36:50]OFD Sender: Processing packet 227598 [packets to send 38, broken 37] [18:36:50]ProducePacketName [18:36:50]name=ofd_packets/00227598 [18:36:50]OFD Sender: To server: pG, [18:36:50]CommunicateWithHost lk.salyk.kg:30040 [18:36:50]ConnectInit lk.salyk.kg [18:36:50]written 0, free lines is 4095 [18:36:50]Connected sock=10 [18:36:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 B9 B9 07 01 D6 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 BE 01 00 00 F4 03 04 00 C1 4D 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0E 79 03 00 35 04 06 00 55 7C 1A E7 19 6B 17 9B 0C 5A BF 46 C2 50 [18:36:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 2F B0 47 00 9D 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 33 39 10 04 04 00 0E 79 03 00 F4 03 04 00 BF F8 14 67 B6 04 01 00 00 43 DA A9 E4 97 D0 E7 FB [18:36:50]CommunicateWithHost err = 0 [18:36:50]CheckOFDResponse [18:36:50]1017 (14) - 77093643461234 [18:36:50]1041 (16) - 0000000000871839 [18:36:50]1040 (4) - 227598 [18:36:50]1012 (4) - 20.10.2024 12:34 [18:36:50]1206 (1) - 0 [18:36:50]OFD Sender: Remove packet 227598 [18:36:50]ProducePacketName [18:36:50]name=ofd_packets/00227598 [18:36:50]NVStorageDeleteData [18:36:50]Write to MH i2c: 01 00 00 B3 1D D0 [18:36:50]Write i2c OK [18:36:50]MH_I2C_Read... [18:36:50]Read from MH i2c: 01 [18:36:50]MH_I2C_Read... [18:36:50]Read from MH i2c: 01 07 00 [18:36:50]MH_I2C_Read... [18:36:50]Read from MH i2c: 01 07 00 B3 1D 00 00 00 00 00 FE 0C E1 [18:36:50]RasterBufferAndPrint [18:36:50]line [18:36:50]line [18:36:50]line [18:36:50]line [18:36:50]line [18:36:50]written 0, free lines is 3332 [18:36:50]process_action close_receipt done [18:36:50]requested_data is exist [18:36:50]produce_requested_data [18:36:50]requested_item fm.sn is exist - process it [18:36:50]wFMCommunicate request_size=4 [18:36:50]MH_SAM_APDU [18:36:50]CAPDU: 80 11 00 00 [18:36:50]Write to MH i2c: E2 08 00 BA 1D 80 11 00 00 00 00 00 00 51 [18:36:50]Write i2c OK [18:36:50]MH_I2C_Read... [18:36:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:50]Read from MH i2c: E2 [18:36:50]MH_I2C_Read... [18:36:50]Read from MH i2c: E2 17 00 [18:36:50]MH_I2C_Read... [18:36:50]Read from MH i2c: E2 17 00 BA 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A8 [18:36:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:36:50]wFMCommunicate OK [18:36:50]requested_item fd.num is exist - process it [18:36:50]SAM_PROTO_GetFieldsCounters [18:36:50]wFMCommunicate request_size=4 [18:36:50]MH_SAM_APDU [18:36:50]CAPDU: 80 13 00 00 [18:36:50]Write to MH i2c: E2 08 00 BB 1D 80 13 00 00 00 00 00 00 54 [18:36:50]Write i2c OK [18:36:50]MH_I2C_Read... [18:36:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:36:50]Read from MH i2c: E2 [18:36:50]MH_I2C_Read... [18:36:50]Read from MH i2c: E2 62 00 [18:36:50]MH_I2C_Read... [18:36:50]Read from MH i2c: E2 62 00 BB 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 0E 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 BE 01 00 00 5E 04 04 00 BE 01 00 00 57 04 04 00 BF 01 00 00 19 04 04 00 00 00 00 00 90 00 5B [18:36: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 0E 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 BE 01 00 00 5E 04 04 00 BE 01 00 00 57 04 04 00 BF 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:36:50]wFMCommunicate OK [18:36:50]SAM_PROTO_GetFieldsCounters done [18:36:50]requested_item shift.num is exist - process it [18:36:50]requested_item shift.opened is exist - process it [18:36:50]req_shift_opened [18:36:50]FM_GetShiftState [18:36:50]SAM_PROTO_GetShiftState [18:36:50]wFMCommunicate request_size=4 [18:36:50]MH_SAM_APDU [18:36:50]CAPDU: 80 13 01 00 [18:36:50]Write to MH i2c: E2 08 00 BC 1D 80 13 01 00 00 00 00 00 56 [18:36:50]Write i2c OK [18:36:50]MH_I2C_Read... [18:36:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:50]Read from MH i2c: E2 [18:36:50]MH_I2C_Read... [18:36:50]Read from MH i2c: E2 0E 00 [18:36:50]MH_I2C_Read... [18:36:50]Read from MH i2c: E2 0E 00 BC 1D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 70 [18:36:50]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:36:50]wFMCommunicate OK [18:36:50]SAM_PROTO_GetShiftState done [18:36:50]FM_GetShiftState done [18:36:50]req_shift_opened done [18:36:50]requested_item shift.open_date is exist - process it [18:36:50]req_shift_open_date [18:36:50]req_shift_open_date done [18:36:50]produce_requested_data done [18:36:50]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227598,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [18:36:50]process_action_free close_receipt [18:36:50]json_value_free [18:36:50]json_value_free done [18:36:50]process_json_proto returns [18:36:50]Send response to host [18:36:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227598,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [18:36:50]free response buf [18:36:50]execute_script done [18:36:50]execute_script returns [18:36:50]free content buf [18:36:50]Sock 9.Close socket [18:36:50]Sock 9.Thread stoped [18:36:50]OFD Sender: No OFD packet to send [18:36:55]OFD Sender: No OFD packet to send [18:37:00]OFD Sender: No OFD packet to send [18:37:05]OFD Sender: No OFD packet to send [18:37:10]OFD Sender: No OFD packet to send [18:37:15]OFD Sender: No OFD packet to send [18:37:20]OFD Sender: No OFD packet to send [18:37:25]OFD Sender: No OFD packet to send [18:37:30]OFD Sender: No OFD packet to send [18:37:35]OFD Sender: No OFD packet to send [18:37:40]OFD Sender: No OFD packet to send [18:37:45]OFD Sender: No OFD packet to send [18:37:50]OFD Sender: No OFD packet to send [18:37:55]OFD Sender: No OFD packet to send [18:38:00]OFD Sender: No OFD packet to send [18:38:05]OFD Sender: No OFD packet to send [18:38:10]OFD Sender: No OFD packet to send [18:38:15]OFD Sender: No OFD packet to send [18:38:17]accept exits with 7 [18:38:17]New connection [18:38:17]New thread 3067362660 created [18:38:17]Thread 3067219300 joined [18:38:17]Waiting for new connection... [18:38:17] Sock 7.Parse request [18:38:17]Sock 7.Check first char [18:38:17]Sock 7.First char is OK [18:38:17]request: POST /json_proto HTTP/1.0 [18:38:17]Method: POST [18:38:17]URL: /json_proto [18:38:17]Method is POST - this is cgi request [18:38:17]url: /json_proto [18:38:17]query_string will be loaded in cgi processing [18:38:17]execute_cgi json_proto POST (null) [18:38:17]execute_cgi path=json_proto method=POST [18:38:17]POST find Content-Length [18:38:17]Host: 172.17.44.195:8080 [18:38:17]Content-Length: 678 [18:38:17]Content-Type: application/json [18:38:17] [18:38:17]POST finish read [18:38:17]Found Content-Length = 678 [18:38:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963235", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:38:17]execute_script... [18:38: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)1963235", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:38:17]POST & json_proto [18:38:17]process_json_proto [18:38:17]json parsed OK: [18:38:17]protocol is kg_v1.0 [18:38:17]action value=close_receipt [18:38:17]process_action close_receipt [18:38:17]cmd_close_receipt [18:38:17]MH_GetDate [18:38:17]Write to MH i2c: F0 00 00 BD 1D C9 [18:38:17]Write i2c OK [18:38:17]MH_I2C_Read... [18:38:17]Read from MH i2c: F0 [18:38:17]MH_I2C_Read... [18:38:17]Read from MH i2c: F0 09 00 [18:38:17]MH_I2C_Read... [18:38:17]Read from MH i2c: F0 09 00 BD 1D 00 1B 4E 15 67 82 C9 CF 66 37 [18:38:17]GetLastDocTimeStamp 1729449409 [18:38:17]current date 1729449499 [18:38:17]FM_GetShiftState [18:38:17]SAM_PROTO_GetShiftState [18:38:17]wFMCommunicate request_size=4 [18:38:17]MH_SAM_APDU [18:38:17]CAPDU: 80 13 01 00 [18:38:17]Write to MH i2c: E2 08 00 BE 1D 80 13 01 00 00 00 00 00 58 [18:38:17]Write i2c OK [18:38:17]MH_I2C_Read... [18:38:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:38:17]Read from MH i2c: E2 [18:38:17]MH_I2C_Read... [18:38:17]Read from MH i2c: E2 0E 00 [18:38:17]MH_I2C_Read... [18:38:17]Read from MH i2c: E2 0E 00 BE 1D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 72 [18:38:17]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:38:17]wFMCommunicate OK [18:38:17]SAM_PROTO_GetShiftState done [18:38:17]FM_GetShiftState done [18:38:17]opened in 1729383750 [18:38:17]opened+sec_in_day 1729470150 [18:38:17]quantity*price = 40006 [18:38:17]sum+1 = 40007 [18:38:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 447 20.10.2024 18:38 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227599 ФПД: 31690369338184 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T183819&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227599&fm=31690369338184&tin=02508201610067®Number=0000000000091685&sum=40000 [18:38:18]StoreToDocumentArchive [18:38:18]shift 533 fd 227599 [18:38:18]save to /storage/0533/doc_00227599 [18:38:18]save last doc name /storage/0533/doc_00227599 to /storage/kkm_last_doc_name [18:38:18]save OK [18:38:18]Clear old archive folders... [18:38:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:38:18]tlvbuf is 00DE1D80 [18:38:18]SAM_PROTO_ClearQueue [18:38:18]wFMCommunicate request_size=4 [18:38:18]MH_SAM_APDU [18:38:18]CAPDU: 80 09 00 00 [18:38:18]Write to MH i2c: E2 08 00 CB 1D 80 09 00 00 00 00 00 00 5A [18:38:18]Write i2c OK [18:38:18]MH_I2C_Read... [18:38:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:38:18]Read from MH i2c: E2 [18:38:18]MH_I2C_Read... [18:38:18]Read from MH i2c: E2 03 00 [18:38:18]MH_I2C_Read... [18:38:18]Read from MH i2c: E2 03 00 CB 1D 00 90 00 5C [18:38:18]RAPDU: 90 00 [18:38:18]wFMCommunicate OK [18:38:18]SAM_PROTO_ClearQueue done [18:38:18]KKMCreateOFDPacket [18:38:18]OFDProtocolAddRootSTLVToBuf [18:38:18]FM_MakeSignedData [18:38:18]FM_MakeSignedData [18:38:18]SAM_PROTO_SignData [18:38:18]wFMCommunicate request_size=4 [18:38:18]MH_SAM_APDU [18:38:18]CAPDU: 80 0D 01 02 [18:38:18]Write to MH i2c: E2 08 00 CC 1D 80 0D 01 02 00 00 00 00 62 [18:38:18]Write i2c OK [18:38:18]MH_I2C_Read... [18:38:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:38:18]Read from MH i2c: E2 [18:38:18]MH_I2C_Read... [18:38:18]Read from MH i2c: E2 03 00 [18:38:18]MH_I2C_Read... [18:38:18]Read from MH i2c: E2 03 00 CC 1D 00 90 00 5D [18:38:18]RAPDU: 90 00 [18:38:18]wFMCommunicate OK [18:38:18]wFMCommunicate request_size=255 [18:38:18]MH_SAM_APDU [18:38:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 01 00 00 F4 03 04 00 1B 4E 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0F 79 03 00 35 04 06 00 1C [18:38:18]Write to MH i2c: E2 02 01 CD 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 01 00 00 F4 03 04 00 1B 4E 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0F 79 03 00 35 04 06 00 1C 00 00 2B [18:38:18]Write i2c OK [18:38:18]MH_I2C_Read... [18:38:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:38:19]Read from MH i2c: E2 [18:38:19]MH_I2C_Read... [18:38:19]Read from MH i2c: E2 03 00 [18:38:19]MH_I2C_Read... [18:38:19]Read from MH i2c: E2 03 00 CD 1D 00 90 00 5E [18:38:19]RAPDU: 90 00 [18:38:19]wFMCommunicate OK [18:38:19]wFMCommunicate request_size=10 [18:38:19]MH_SAM_APDU [18:38:19]CAPDU: 80 0D 02 02 05 D2 7D 35 0B 48 [18:38:19]Write to MH i2c: E2 0D 00 CE 1D 80 0D 02 02 05 00 D2 7D 35 0B 48 00 00 46 [18:38:19]Write i2c OK [18:38:19]MH_I2C_Read... [18:38:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:38:19]Read from MH i2c: E2 [18:38:19]MH_I2C_Read... [18:38:19]Read from MH i2c: E2 03 00 [18:38:19]MH_I2C_Read... [18:38:19]Read from MH i2c: E2 03 00 CE 1D 00 90 00 5F [18:38:19]RAPDU: 90 00 [18:38:19]wFMCommunicate OK [18:38:19]wFMCommunicate request_size=4 [18:38:19]MH_SAM_APDU [18:38:19]CAPDU: 80 0D 03 02 [18:38:19]Write to MH i2c: E2 08 00 CF 1D 80 0D 03 02 00 00 00 00 67 [18:38:19]Write i2c OK [18:38:19]MH_I2C_Read... [18:38:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:38:19]Read from MH i2c: E2 [18:38:19]MH_I2C_Read... [18:38:19]Read from MH i2c: E2 0B 00 [18:38:19]MH_I2C_Read... [18:38:19]Read from MH i2c: E2 0B 00 CF 1D 00 C7 24 2D FB 0E 2A B2 EE 90 00 53 [18:38:19]RAPDU: C7 24 2D FB 0E 2A B2 EE 90 00 [18:38:19]wFMCommunicate OK [18:38:19]SAM_PROTO_SignData done [18:38:19]FM_MakeSignedData done [18:38:19]CreateOFDProtocolMessage [18:38:19]wFMCommunicate request_size=4 [18:38:19]MH_SAM_APDU [18:38:19]CAPDU: 80 11 00 00 [18:38:19]Write to MH i2c: E2 08 00 D0 1D 80 11 00 00 00 00 00 00 67 [18:38:19]Write i2c OK [18:38:19]MH_I2C_Read... [18:38:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:38:19]Read from MH i2c: E2 [18:38:19]MH_I2C_Read... [18:38:19]Read from MH i2c: E2 17 00 [18:38:19]MH_I2C_Read... [18:38:19]Read from MH i2c: E2 17 00 D0 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 BE [18:38:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:38:19]wFMCommunicate OK [18:38:19]CreateOFDProtocolMessage done [18:38:19]OFDSenderStorePacket 227599 [18:38:19]StoreOFDPacket docnum=227599 [18:38:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 E1 B8 07 01 FE F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 01 00 00 F4 03 04 00 1B 4E 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0F 79 03 00 35 04 06 00 1C D2 7D 35 0B 48 C7 24 2D FB 0E 2A B2 EE [18:38:19]CheckFolder [18:38:19]dirname=/storage/ofd_packets [18:38:19]CheckFolder done [18:38:19]ProducePacketName [18:38:19]name=ofd_packets/00227599 [18:38:19]NVStorageSaveData ofd_packets/00227599 [18:38:19]File name is /storage/ofd_packets/00227599 [18:38:19]Write 301 bytes [18:38:19]NVStorageSaveData done [18:38:19]OFDSenderStorePacket done [18:38:19]KKMCreateOFDPacket done [18:38:19]NVStorageSaveData kkm_last_timestamp [18:38:19]File name is /storage/kkm_last_timestamp [18:38:19]Write 4 bytes [18:38:19]NVStorageSaveData done [18:38:19]ExternCall_PrintAddStr [18:38:19]wPrintStart [18:38:19]Write to MH i2c: 01 00 00 D1 1D EE [18:38:19]Write i2c OK [18:38:19]MH_I2C_Read... [18:38:19]Read from MH i2c: 01 [18:38:19]MH_I2C_Read... [18:38:19]Read from MH i2c: 01 07 00 [18:38:19]MH_I2C_Read... [18:38:19]Read from MH i2c: 01 07 00 D1 1D 00 00 00 00 00 FF 0F 03 [18:38:19]RasterBufferAndPrint [18:38:19]line Счет N : (1)1963235 [18:38:19]line ИНН: 02508201610067 [18:38:19]line Контрольно-Кассовый Чек [18:38:19]line ПРОДАЖА [18:38:19]line ТРК (МРК, ГНК) : 53 [18:38:19]line Товар: 2710124130 [18:38:19]line Аи-92-К-5 [18:38:19]line 5.980 * 66.90 [18:38:19]line = 400.06 [18:38:19]line НДС 12% НСП 1% [18:38:19]line > о реализуемом товаре [18:38:19]line ОКРУГЛЕНИЕ: -0.06 [18:38:19]line ИТОГО: 400.00 [18:38:19]line Внесено: 400.00 [18:38:19]line СДАЧА: 0.00 [18:38:19]line НСП 1% : 3.54 [18:38:19]line НДС 12% : 42.48 [18:38:19]line Наличными: 400.00 [18:38:19]line Безнал.: 0.00 [18:38:19]line Место: АЗС № 133 "Партнер Нефть" [18:38:19]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:38:19]line СНО: Общий режим [18:38:19]line Чек 447 20.10.2024 18:38 [18:38:19]line Смена: 533 ФФД: 1.0 [18:38:19]line ЗНМ: 0300000091 [18:38:19]line РНМ: 0000000000091685 [18:38:19]line Версия ККМ: 001 [18:38:19]line ФМ: 0000000000871839 [18:38:19]line ФД: 227599 [18:38:19]line ФПД: 31690369338184 [18:38:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T183819&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227599&fm=31690369338184&tin=02508201610067®Number=0000000000091685&sum=40000 [18:38:19]written 0, free lines is 4095 [18:38:19]OFD Sender: Processing packet 227599 [packets to send 38, broken 37] [18:38:19]ProducePacketName [18:38:19]name=ofd_packets/00227599 [18:38:19]OFD Sender: To server: pG, [18:38:19]CommunicateWithHost lk.salyk.kg:30040 [18:38:19]ConnectInit lk.salyk.kg [18:38:19]Connected sock=10 [18:38: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 33 39 0F 01 00 00 E1 B8 07 01 FE F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 01 00 00 F4 03 04 00 1B 4E 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 0F 79 03 00 35 04 06 00 1C D2 7D 35 0B 48 C7 24 2D FB 0E 2A B2 EE [18:38: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 33 39 4F 00 00 00 0B 5D 47 00 6E 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 33 39 10 04 04 00 0F 79 03 00 F4 03 04 00 19 F9 14 67 B6 04 01 00 00 88 2A B0 A8 FE 71 53 9B [18:38:19]CommunicateWithHost err = 0 [18:38:19]CheckOFDResponse [18:38:19]1017 (14) - 77093643461234 [18:38:19]1041 (16) - 0000000000871839 [18:38:19]1040 (4) - 227599 [18:38:19]1012 (4) - 20.10.2024 12:35 [18:38:19]1206 (1) - 0 [18:38:19]OFD Sender: Remove packet 227599 [18:38:19]ProducePacketName [18:38:19]name=ofd_packets/00227599 [18:38:19]NVStorageDeleteData [18:38:19]Write to MH i2c: 01 00 00 FB 1D 18 [18:38:19]Write i2c OK [18:38:19]MH_I2C_Read... [18:38:19]Read from MH i2c: 01 [18:38:19]MH_I2C_Read... [18:38:19]Read from MH i2c: 01 07 00 [18:38:19]MH_I2C_Read... [18:38:19]Read from MH i2c: 01 07 00 FB 1D 00 00 00 00 00 19 0D 45 [18:38:19]RasterBufferAndPrint [18:38:19]line [18:38:19]line [18:38:19]line [18:38:19]line [18:38:19]line [18:38:19]written 0, free lines is 3359 [18:38:19]process_action close_receipt done [18:38:19]requested_data is exist [18:38:19]produce_requested_data [18:38:19]requested_item fm.sn is exist - process it [18:38:19]wFMCommunicate request_size=4 [18:38:19]MH_SAM_APDU [18:38:19]CAPDU: 80 11 00 00 [18:38:19]Write to MH i2c: E2 08 00 02 1E 80 11 00 00 00 00 00 00 9A [18:38:19]Write i2c OK [18:38:19]MH_I2C_Read... [18:38:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:38:19]Read from MH i2c: E2 [18:38:19]MH_I2C_Read... [18:38:19]Read from MH i2c: E2 17 00 [18:38:19]MH_I2C_Read... [18:38:19]Read from MH i2c: E2 17 00 02 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F1 [18:38:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:38:19]wFMCommunicate OK [18:38:19]requested_item fd.num is exist - process it [18:38:19]SAM_PROTO_GetFieldsCounters [18:38:19]wFMCommunicate request_size=4 [18:38:19]MH_SAM_APDU [18:38:19]CAPDU: 80 13 00 00 [18:38:19]Write to MH i2c: E2 08 00 03 1E 80 13 00 00 00 00 00 00 9D [18:38:19]Write i2c OK [18:38:19]MH_I2C_Read... [18:38:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:38:19]Read from MH i2c: E2 [18:38:19]MH_I2C_Read... [18:38:19]Read from MH i2c: E2 62 00 [18:38:19]MH_I2C_Read... [18:38:19]Read from MH i2c: E2 62 00 03 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 0F 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 BF 01 00 00 5E 04 04 00 BF 01 00 00 57 04 04 00 C0 01 00 00 19 04 04 00 00 00 00 00 90 00 A8 [18:38: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 0F 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 BF 01 00 00 5E 04 04 00 BF 01 00 00 57 04 04 00 C0 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:38:19]wFMCommunicate OK [18:38:19]SAM_PROTO_GetFieldsCounters done [18:38:19]requested_item shift.num is exist - process it [18:38:19]requested_item shift.opened is exist - process it [18:38:19]req_shift_opened [18:38:19]FM_GetShiftState [18:38:19]SAM_PROTO_GetShiftState [18:38:19]wFMCommunicate request_size=4 [18:38:19]MH_SAM_APDU [18:38:19]CAPDU: 80 13 01 00 [18:38:19]Write to MH i2c: E2 08 00 04 1E 80 13 01 00 00 00 00 00 9F [18:38:19]Write i2c OK [18:38:19]MH_I2C_Read... [18:38:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:38:19]Read from MH i2c: E2 [18:38:19]MH_I2C_Read... [18:38:19]Read from MH i2c: E2 0E 00 [18:38:19]MH_I2C_Read... [18:38:19]Read from MH i2c: E2 0E 00 04 1E 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 B9 [18:38:19]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:38:19]wFMCommunicate OK [18:38:19]SAM_PROTO_GetShiftState done [18:38:19]FM_GetShiftState done [18:38:19]req_shift_opened done [18:38:19]requested_item shift.open_date is exist - process it [18:38:19]req_shift_open_date [18:38:19]req_shift_open_date done [18:38:19]produce_requested_data done [18:38:19]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227599,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [18:38:19]process_action_free close_receipt [18:38:19]json_value_free [18:38:19]json_value_free done [18:38:19]process_json_proto returns [18:38:19]Send response to host [18:38:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227599,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [18:38:19]free response buf [18:38:19]execute_script done [18:38:19]execute_script returns [18:38:19]free content buf [18:38:19]Sock 7.Close socket [18:38:19]Sock 7.Thread stoped [18:38:19]OFD Sender: No OFD packet to send [18:38:24]OFD Sender: No OFD packet to send [18:38:29]OFD Sender: No OFD packet to send [18:38:34]OFD Sender: No OFD packet to send [18:38:40]OFD Sender: No OFD packet to send [18:38:45]OFD Sender: No OFD packet to send [18:38:50]OFD Sender: No OFD packet to send [18:38:55]OFD Sender: No OFD packet to send [18:39:00]OFD Sender: No OFD packet to send [18:39:05]OFD Sender: No OFD packet to send [18:39:07]accept exits with 9 [18:39:07]New connection [18:39:07]New thread 3067219300 created [18:39:07]Thread 3067362660 joined [18:39:07]Waiting for new connection... [18:39:07] Sock 9.Parse request [18:39:07]Sock 9.Check first char [18:39:07]Sock 9.First char is OK [18:39:07]request: POST /json_proto HTTP/1.0 [18:39:07]Method: POST [18:39:07]URL: /json_proto [18:39:07]Method is POST - this is cgi request [18:39:07]url: /json_proto [18:39:07]query_string will be loaded in cgi processing [18:39:07]execute_cgi json_proto POST (null) [18:39:07]execute_cgi path=json_proto method=POST [18:39:07]POST find Content-Length [18:39:07]Host: 172.17.44.195:8080 [18:39:07]Content-Length: 683 [18:39:07]Content-Type: application/json [18:39:07] [18:39:07]POST finish read [18:39:07]Found Content-Length = 683 [18:39:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963236", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:39:07]execute_script... [18:39:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963236", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:39:07]POST & json_proto [18:39:07]process_json_proto [18:39:07]json parsed OK: [18:39:07]protocol is kg_v1.0 [18:39:07]action value=close_receipt [18:39:07]process_action close_receipt [18:39:07]cmd_close_receipt [18:39:07]MH_GetDate [18:39:07]Write to MH i2c: F0 00 00 05 1E 12 [18:39:07]Write i2c OK [18:39:07]MH_I2C_Read... [18:39:07]Read from MH i2c: F0 [18:39:07]MH_I2C_Read... [18:39:07]Read from MH i2c: F0 09 00 [18:39:07]MH_I2C_Read... [18:39:07]Read from MH i2c: F0 09 00 05 1E 00 4C 4E 15 67 82 C9 CF 66 B1 [18:39:07]GetLastDocTimeStamp 1729449499 [18:39:07]current date 1729449548 [18:39:07]FM_GetShiftState [18:39:07]SAM_PROTO_GetShiftState [18:39:07]wFMCommunicate request_size=4 [18:39:07]MH_SAM_APDU [18:39:07]CAPDU: 80 13 01 00 [18:39:07]Write to MH i2c: E2 08 00 06 1E 80 13 01 00 00 00 00 00 A1 [18:39:07]Write i2c OK [18:39:07]MH_I2C_Read... [18:39:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:39:07]Read from MH i2c: E2 [18:39:07]MH_I2C_Read... [18:39:07]Read from MH i2c: E2 0E 00 [18:39:07]MH_I2C_Read... [18:39:07]Read from MH i2c: E2 0E 00 06 1E 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 BB [18:39:07]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:39:07]wFMCommunicate OK [18:39:07]SAM_PROTO_GetShiftState done [18:39:07]FM_GetShiftState done [18:39:07]opened in 1729383750 [18:39:07]opened+sec_in_day 1729470150 [18:39:07]quantity*price = 100015 [18:39:07]sum+1 = 100017 [18:39:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 448 20.10.2024 18:39 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227600 ФПД: 119917237200538 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T183908&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227600&fm=119917237200538&tin=02508201610067®Number=0000000000091685&sum=100000 [18:39:08]StoreToDocumentArchive [18:39:08]shift 533 fd 227600 [18:39:08]save to /storage/0533/doc_00227600 [18:39:08]save last doc name /storage/0533/doc_00227600 to /storage/kkm_last_doc_name [18:39:08]save OK [18:39:08]Clear old archive folders... [18:39:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:39:08]tlvbuf is 00D82C20 [18:39:08]SAM_PROTO_ClearQueue [18:39:08]wFMCommunicate request_size=4 [18:39:08]MH_SAM_APDU [18:39:08]CAPDU: 80 09 00 00 [18:39:08]Write to MH i2c: E2 08 00 13 1E 80 09 00 00 00 00 00 00 A3 [18:39:08]Write i2c OK [18:39:08]MH_I2C_Read... [18:39:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:39:08]Read from MH i2c: E2 [18:39:08]MH_I2C_Read... [18:39:08]Read from MH i2c: E2 03 00 [18:39:08]MH_I2C_Read... [18:39:08]Read from MH i2c: E2 03 00 13 1E 00 90 00 A5 [18:39:08]RAPDU: 90 00 [18:39:08]wFMCommunicate OK [18:39:08]SAM_PROTO_ClearQueue done [18:39:08]KKMCreateOFDPacket [18:39:08]OFDProtocolAddRootSTLVToBuf [18:39:08]FM_MakeSignedData [18:39:08]FM_MakeSignedData [18:39:08]SAM_PROTO_SignData [18:39:08]wFMCommunicate request_size=4 [18:39:08]MH_SAM_APDU [18:39:08]CAPDU: 80 0D 01 02 [18:39:08]Write to MH i2c: E2 08 00 14 1E 80 0D 01 02 00 00 00 00 AB [18:39:08]Write i2c OK [18:39:08]MH_I2C_Read... [18:39:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:39:08]Read from MH i2c: E2 [18:39:08]MH_I2C_Read... [18:39:08]Read from MH i2c: E2 03 00 [18:39:08]MH_I2C_Read... [18:39:08]Read from MH i2c: E2 03 00 14 1E 00 90 00 A6 [18:39:08]RAPDU: 90 00 [18:39:08]wFMCommunicate OK [18:39:08]wFMCommunicate request_size=255 [18:39:08]MH_SAM_APDU [18:39:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 01 00 00 F4 03 04 00 4C 4E 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 10 79 03 00 35 04 06 00 6D [18:39:08]Write to MH i2c: E2 02 01 15 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 01 00 00 F4 03 04 00 4C 4E 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 10 79 03 00 35 04 06 00 6D 00 00 23 [18:39:08]Write i2c OK [18:39:08]MH_I2C_Read... [18:39:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:39:08]Read from MH i2c: E2 [18:39:08]MH_I2C_Read... [18:39:08]Read from MH i2c: E2 03 00 [18:39:08]MH_I2C_Read... [18:39:08]Read from MH i2c: E2 03 00 15 1E 00 90 00 A7 [18:39:08]RAPDU: 90 00 [18:39:08]wFMCommunicate OK [18:39:08]wFMCommunicate request_size=10 [18:39:08]MH_SAM_APDU [18:39:08]CAPDU: 80 0D 02 02 05 10 68 53 66 9A [18:39:08]Write to MH i2c: E2 0D 00 16 1E 80 0D 02 02 05 00 10 68 53 66 9A 00 00 83 [18:39:08]Write i2c OK [18:39:08]MH_I2C_Read... [18:39:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:39:08]Read from MH i2c: E2 [18:39:08]MH_I2C_Read... [18:39:08]Read from MH i2c: E2 03 00 [18:39:08]MH_I2C_Read... [18:39:08]Read from MH i2c: E2 03 00 16 1E 00 90 00 A8 [18:39:08]RAPDU: 90 00 [18:39:08]wFMCommunicate OK [18:39:08]wFMCommunicate request_size=4 [18:39:08]MH_SAM_APDU [18:39:08]CAPDU: 80 0D 03 02 [18:39:08]Write to MH i2c: E2 08 00 17 1E 80 0D 03 02 00 00 00 00 B0 [18:39:08]Write i2c OK [18:39:08]MH_I2C_Read... [18:39:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:39:08]Read from MH i2c: E2 [18:39:08]MH_I2C_Read... [18:39:08]Read from MH i2c: E2 0B 00 [18:39:08]MH_I2C_Read... [18:39:08]Read from MH i2c: E2 0B 00 17 1E 00 E6 E9 0F 77 06 CC 33 5C 90 00 67 [18:39:08]RAPDU: E6 E9 0F 77 06 CC 33 5C 90 00 [18:39:08]wFMCommunicate OK [18:39:08]SAM_PROTO_SignData done [18:39:08]FM_MakeSignedData done [18:39:08]CreateOFDProtocolMessage [18:39:08]wFMCommunicate request_size=4 [18:39:08]MH_SAM_APDU [18:39:08]CAPDU: 80 11 00 00 [18:39:08]Write to MH i2c: E2 08 00 18 1E 80 11 00 00 00 00 00 00 B0 [18:39:08]Write i2c OK [18:39:08]MH_I2C_Read... [18:39:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:39:08]Read from MH i2c: E2 [18:39:08]MH_I2C_Read... [18:39:08]Read from MH i2c: E2 17 00 [18:39:08]MH_I2C_Read... [18:39:08]Read from MH i2c: E2 17 00 18 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 07 [18:39:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:39:08]wFMCommunicate OK [18:39:08]CreateOFDProtocolMessage done [18:39:08]OFDSenderStorePacket 227600 [18:39:08]StoreOFDPacket docnum=227600 [18:39:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 77 E2 07 01 EE 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 01 00 00 F4 03 04 00 4C 4E 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 10 79 03 00 35 04 06 00 6D 10 68 53 66 9A E6 E9 0F 77 06 CC 33 5C [18:39:08]CheckFolder [18:39:08]dirname=/storage/ofd_packets [18:39:08]CheckFolder done [18:39:08]ProducePacketName [18:39:08]name=ofd_packets/00227600 [18:39:08]NVStorageSaveData ofd_packets/00227600 [18:39:08]File name is /storage/ofd_packets/00227600 [18:39:08]Write 301 bytes [18:39:08]NVStorageSaveData done [18:39:08]OFDSenderStorePacket done [18:39:08]KKMCreateOFDPacket done [18:39:08]NVStorageSaveData kkm_last_timestamp [18:39:08]File name is /storage/kkm_last_timestamp [18:39:08]Write 4 bytes [18:39:08]NVStorageSaveData done [18:39:08]ExternCall_PrintAddStr [18:39:08]wPrintStart [18:39:08]Write to MH i2c: 01 00 00 19 1E 37 [18:39:08]Write i2c OK [18:39:08]MH_I2C_Read... [18:39:08]Read from MH i2c: 01 [18:39:08]MH_I2C_Read... [18:39:08]Read from MH i2c: 01 07 00 [18:39:08]MH_I2C_Read... [18:39:08]Read from MH i2c: 01 07 00 19 1E 00 00 00 00 00 FF 0F 4C [18:39:08]RasterBufferAndPrint [18:39:08]line Счет N : (1)1963236 [18:39:08]line ИНН: 02508201610067 [18:39:08]line Контрольно-Кассовый Чек [18:39:08]line ПРОДАЖА [18:39:08]line ТРК (МРК, ГНК) : 33 [18:39:08]line Товар: 2710124130 [18:39:08]line Аи-92-К-5 [18:39:08]line 14.950 * 66.90 [18:39:08]line = 1000.16 [18:39:08]line НДС 12% НСП 1% [18:39:08]line > о реализуемом товаре [18:39:08]line ОКРУГЛЕНИЕ: -0.16 [18:39:08]line ИТОГО: 1000.00 [18:39:08]line Внесено: 1000.00 [18:39:08]line СДАЧА: 0.00 [18:39:08]line НСП 1% : 8.85 [18:39:08]line НДС 12% : 106.21 [18:39:08]line Наличными: 1000.00 [18:39:08]line Безнал.: 0.00 [18:39:08]line Место: АЗС № 133 "Партнер Нефть" [18:39:08]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:39:08]line СНО: Общий режим [18:39:08]line Чек 448 20.10.2024 18:39 [18:39:08]line Смена: 533 ФФД: 1.0 [18:39:08]line ЗНМ: 0300000091 [18:39:08]line РНМ: 0000000000091685 [18:39:08]line Версия ККМ: 001 [18:39:08]line ФМ: 0000000000871839 [18:39:08]line ФД: 227600 [18:39:08]line ФПД: 119917237200538 [18:39:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T183908&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227600&fm=119917237200538&tin=02508201610067®Number=0000000000091685&sum=100000 [18:39:09]OFD Sender: Processing packet 227600 [packets to send 38, broken 37] [18:39:09]ProducePacketName [18:39:09]name=ofd_packets/00227600 [18:39:09]OFD Sender: To server: pG, [18:39:09]CommunicateWithHost lk.salyk.kg:30040 [18:39:09]ConnectInit lk.salyk.kg [18:39:09]written 0, free lines is 4095 [18:39:09]Connected sock=10 [18:39:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 77 E2 07 01 EE 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 01 00 00 F4 03 04 00 4C 4E 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 10 79 03 00 35 04 06 00 6D 10 68 53 66 9A E6 E9 0F 77 06 CC 33 5C [18:39:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 11 00 47 00 BC 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 33 39 10 04 04 00 10 79 03 00 F4 03 04 00 4A F9 14 67 B6 04 01 00 00 DA B5 1A 64 FB E1 6C 0F [18:39:09]CommunicateWithHost err = 0 [18:39:09]CheckOFDResponse [18:39:09]1017 (14) - 77093643461234 [18:39:09]1041 (16) - 0000000000871839 [18:39:09]1040 (4) - 227600 [18:39:09]1012 (4) - 20.10.2024 12:36 [18:39:09]1206 (1) - 0 [18:39:09]OFD Sender: Remove packet 227600 [18:39:09]ProducePacketName [18:39:09]name=ofd_packets/00227600 [18:39:09]NVStorageDeleteData [18:39:09]Write to MH i2c: 01 00 00 43 1E 61 [18:39:09]Write i2c OK [18:39:09]MH_I2C_Read... [18:39:09]Read from MH i2c: 01 [18:39:09]MH_I2C_Read... [18:39:09]Read from MH i2c: 01 07 00 [18:39:09]MH_I2C_Read... [18:39:09]Read from MH i2c: 01 07 00 43 1E 00 00 00 00 00 FE 0C 72 [18:39:09]RasterBufferAndPrint [18:39:09]line [18:39:09]line [18:39:09]line [18:39:09]line [18:39:09]line [18:39:09]written 0, free lines is 3332 [18:39:09]process_action close_receipt done [18:39:09]requested_data is exist [18:39:09]produce_requested_data [18:39:09]requested_item fm.sn is exist - process it [18:39:09]wFMCommunicate request_size=4 [18:39:09]MH_SAM_APDU [18:39:09]CAPDU: 80 11 00 00 [18:39:09]Write to MH i2c: E2 08 00 4A 1E 80 11 00 00 00 00 00 00 E2 [18:39:09]Write i2c OK [18:39:09]MH_I2C_Read... [18:39:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:39:09]Read from MH i2c: E2 [18:39:09]MH_I2C_Read... [18:39:09]Read from MH i2c: E2 17 00 [18:39:09]MH_I2C_Read... [18:39:09]Read from MH i2c: E2 17 00 4A 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 39 [18:39:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:39:09]wFMCommunicate OK [18:39:09]requested_item fd.num is exist - process it [18:39:09]SAM_PROTO_GetFieldsCounters [18:39:09]wFMCommunicate request_size=4 [18:39:09]MH_SAM_APDU [18:39:09]CAPDU: 80 13 00 00 [18:39:09]Write to MH i2c: E2 08 00 4B 1E 80 13 00 00 00 00 00 00 E5 [18:39:09]Write i2c OK [18:39:09]MH_I2C_Read... [18:39:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:39:09]Read from MH i2c: E2 [18:39:09]MH_I2C_Read... [18:39:09]Read from MH i2c: E2 62 00 [18:39:09]MH_I2C_Read... [18:39:09]Read from MH i2c: E2 62 00 4B 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 10 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 C0 01 00 00 5E 04 04 00 C0 01 00 00 57 04 04 00 C1 01 00 00 19 04 04 00 00 00 00 00 90 00 F4 [18: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 10 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 C0 01 00 00 5E 04 04 00 C0 01 00 00 57 04 04 00 C1 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:39:09]wFMCommunicate OK [18:39:09]SAM_PROTO_GetFieldsCounters done [18:39:09]requested_item shift.num is exist - process it [18:39:09]requested_item shift.opened is exist - process it [18:39:09]req_shift_opened [18:39:09]FM_GetShiftState [18:39:09]SAM_PROTO_GetShiftState [18:39:09]wFMCommunicate request_size=4 [18:39:09]MH_SAM_APDU [18:39:09]CAPDU: 80 13 01 00 [18:39:09]Write to MH i2c: E2 08 00 4C 1E 80 13 01 00 00 00 00 00 E7 [18:39:09]Write i2c OK [18:39:09]MH_I2C_Read... [18:39:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:39:09]Read from MH i2c: E2 [18:39:09]MH_I2C_Read... [18:39:09]Read from MH i2c: E2 0E 00 [18:39:09]MH_I2C_Read... [18:39:09]Read from MH i2c: E2 0E 00 4C 1E 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 01 [18:39:09]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:39:09]wFMCommunicate OK [18:39:09]SAM_PROTO_GetShiftState done [18:39:09]FM_GetShiftState done [18:39:09]req_shift_opened done [18:39:09]requested_item shift.open_date is exist - process it [18:39:09]req_shift_open_date [18:39:09]req_shift_open_date done [18:39:09]produce_requested_data done [18:39:09]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227600,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [18:39:09]process_action_free close_receipt [18:39:09]json_value_free [18:39:09]json_value_free done [18:39:09]process_json_proto returns [18:39:09]Send response to host [18:39:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227600,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [18:39:09]free response buf [18:39:09]execute_script done [18:39:09]execute_script returns [18:39:09]free content buf [18:39:09]Sock 9.Close socket [18:39:09]Sock 9.Thread stoped [18:39:09]OFD Sender: No OFD packet to send [18:39:14]OFD Sender: No OFD packet to send [18:39:19]OFD Sender: No OFD packet to send [18:39:24]OFD Sender: No OFD packet to send [18:39:29]OFD Sender: No OFD packet to send [18:39:34]OFD Sender: No OFD packet to send [18:39:39]OFD Sender: No OFD packet to send [18:39:44]OFD Sender: No OFD packet to send [18:39:49]OFD Sender: No OFD packet to send [18:39:54]OFD Sender: No OFD packet to send [18:39:59]OFD Sender: No OFD packet to send [18:40:04]OFD Sender: No OFD packet to send [18:40:09]OFD Sender: No OFD packet to send [18:40:14]OFD Sender: No OFD packet to send [18:40:19]OFD Sender: No OFD packet to send [18:40:24]OFD Sender: No OFD packet to send [18:40:29]OFD Sender: No OFD packet to send [18:40:34]OFD Sender: No OFD packet to send [18:40:39]OFD Sender: No OFD packet to send [18:40:44]OFD Sender: No OFD packet to send [18:40:49]OFD Sender: No OFD packet to send [18:40:54]OFD Sender: No OFD packet to send [18:40:59]OFD Sender: No OFD packet to send [18:41:04]OFD Sender: No OFD packet to send [18:41:09]OFD Sender: No OFD packet to send [18:41:14]OFD Sender: No OFD packet to send [18:41:19]OFD Sender: No OFD packet to send [18:41:24]OFD Sender: No OFD packet to send [18:41:29]OFD Sender: No OFD packet to send [18:41:34]OFD Sender: No OFD packet to send [18:41:39]OFD Sender: No OFD packet to send [18:41:44]OFD Sender: No OFD packet to send [18:41:50]OFD Sender: No OFD packet to send [18:41:55]OFD Sender: No OFD packet to send [18:42:00]OFD Sender: No OFD packet to send [18:42:05]OFD Sender: No OFD packet to send [18:42:10]OFD Sender: No OFD packet to send [18:42:15]OFD Sender: No OFD packet to send [18:42:20]OFD Sender: No OFD packet to send [18:42:25]OFD Sender: No OFD packet to send [18:42:30]OFD Sender: No OFD packet to send [18:42:35]OFD Sender: No OFD packet to send [18:42:40]OFD Sender: No OFD packet to send [18:42:45]OFD Sender: No OFD packet to send [18:42:50]OFD Sender: No OFD packet to send [18:42:55]OFD Sender: No OFD packet to send [18:43:00]OFD Sender: No OFD packet to send [18:43:05]OFD Sender: No OFD packet to send [18:43:07]accept exits with 7 [18:43:07]New connection [18:43:07]New thread 3067362660 created [18:43:07]Thread 3067219300 joined [18:43:07]Waiting for new connection... [18:43:07] Sock 7.Parse request [18:43:07]Sock 7.Check first char [18:43:07]Sock 7.First char is OK [18:43:07]request: POST /json_proto HTTP/1.0 [18:43:07]Method: POST [18:43:07]URL: /json_proto [18:43:07]Method is POST - this is cgi request [18:43:07]url: /json_proto [18:43:07]query_string will be loaded in cgi processing [18:43:07]execute_cgi json_proto POST (null) [18:43:07]execute_cgi path=json_proto method=POST [18:43:07]POST find Content-Length [18:43:07]Host: 172.17.44.195:8080 [18:43:07]Content-Length: 664 [18:43:07]Content-Type: application/json [18:43:07] [18:43:07]POST finish read [18:43:07]Found Content-Length = 664 [18:43:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963237", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 43.860, "sum" : 3000.02, "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" ] } } [18:43:07]execute_script... [18:43:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963237", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 43.860, "sum" : 3000.02, "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" ] } } [18:43:07]POST & json_proto [18:43:07]process_json_proto [18:43:07]json parsed OK: [18:43:07]protocol is kg_v1.0 [18:43:07]action value=close_receipt [18:43:07]process_action close_receipt [18:43:07]cmd_close_receipt [18:43:07]MH_GetDate [18:43:07]Write to MH i2c: F0 00 00 4D 1E 5A [18:43:07]Write i2c OK [18:43:07]MH_I2C_Read... [18:43:07]Read from MH i2c: F0 [18:43:07]MH_I2C_Read... [18:43:07]Read from MH i2c: F0 09 00 [18:43:07]MH_I2C_Read... [18:43:07]Read from MH i2c: F0 09 00 4D 1E 00 3C 4F 15 67 82 C9 CF 66 EA [18:43:07]GetLastDocTimeStamp 1729449548 [18:43:07]current date 1729449788 [18:43:07]FM_GetShiftState [18:43:07]SAM_PROTO_GetShiftState [18:43:07]wFMCommunicate request_size=4 [18:43:07]MH_SAM_APDU [18:43:07]CAPDU: 80 13 01 00 [18:43:07]Write to MH i2c: E2 08 00 4E 1E 80 13 01 00 00 00 00 00 E9 [18:43:07]Write i2c OK [18:43:07]MH_I2C_Read... [18:43:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:07]Read from MH i2c: E2 [18:43:07]MH_I2C_Read... [18:43:07]Read from MH i2c: E2 0E 00 [18:43:07]MH_I2C_Read... [18:43:07]Read from MH i2c: E2 0E 00 4E 1E 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 03 [18:43:07]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:43:07]wFMCommunicate OK [18:43:07]SAM_PROTO_GetShiftState done [18:43:07]FM_GetShiftState done [18:43:07]opened in 1729383750 [18:43:07]opened+sec_in_day 1729470150 [18:43:07]quantity*price = 300002 [18:43:07]sum+1 = 300003 [18:43:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.59 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 449 20.10.2024 18:43 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227601 ФПД: 188444047437295 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T184308&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227601&fm=188444047437295&tin=02508201610067®Number=0000000000091685&sum=300000 [18:43:08]StoreToDocumentArchive [18:43:08]shift 533 fd 227601 [18:43:08]save to /storage/0533/doc_00227601 [18:43:08]save last doc name /storage/0533/doc_00227601 to /storage/kkm_last_doc_name [18:43:08]save OK [18:43:08]Clear old archive folders... [18:43:08]ProcessDocumentItem done err = 0, tmpTLVsize=244 [18:43:08]tlvbuf is B6E0C160 [18:43:08]SAM_PROTO_ClearQueue [18:43:08]wFMCommunicate request_size=4 [18:43:08]MH_SAM_APDU [18:43:08]CAPDU: 80 09 00 00 [18:43:08]Write to MH i2c: E2 08 00 5B 1E 80 09 00 00 00 00 00 00 EB [18:43:08]Write i2c OK [18:43:08]MH_I2C_Read... [18:43:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:43:08]Read from MH i2c: E2 [18:43:08]MH_I2C_Read... [18:43:08]Read from MH i2c: E2 03 00 [18:43:08]MH_I2C_Read... [18:43:08]Read from MH i2c: E2 03 00 5B 1E 00 90 00 ED [18:43:08]RAPDU: 90 00 [18:43:08]wFMCommunicate OK [18:43:08]SAM_PROTO_ClearQueue done [18:43:08]KKMCreateOFDPacket [18:43:08]OFDProtocolAddRootSTLVToBuf [18:43:08]FM_MakeSignedData [18:43:08]FM_MakeSignedData [18:43:08]SAM_PROTO_SignData [18:43:08]wFMCommunicate request_size=4 [18:43:08]MH_SAM_APDU [18:43:08]CAPDU: 80 0D 01 02 [18:43:08]Write to MH i2c: E2 08 00 5C 1E 80 0D 01 02 00 00 00 00 F3 [18:43:08]Write i2c OK [18:43:08]MH_I2C_Read... [18:43:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:43:08]Read from MH i2c: E2 [18:43:08]MH_I2C_Read... [18:43:08]Read from MH i2c: E2 03 00 [18:43:08]MH_I2C_Read... [18:43:08]Read from MH i2c: E2 03 00 5C 1E 00 90 00 EE [18:43:08]RAPDU: 90 00 [18:43:08]wFMCommunicate OK [18:43:08]wFMCommunicate request_size=253 [18:43:08]MH_SAM_APDU [18:43:08]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 54 AB 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 E2 93 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 73 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 C1 01 00 00 F4 03 04 00 3C 4F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 11 79 03 00 35 04 06 00 AB 63 8C 81 ED EF [18:43:08]Write to MH i2c: E2 00 01 5D 1E 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 54 AB 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 E2 93 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 73 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 C1 01 00 00 F4 03 04 00 3C 4F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 11 79 03 00 35 04 06 00 AB 63 8C 81 ED EF 00 00 A7 [18:43:08]Write i2c OK [18:43:08]MH_I2C_Read... [18:43:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:08]Read from MH i2c: E2 [18:43:08]MH_I2C_Read... [18:43:08]Read from MH i2c: E2 03 00 [18:43:08]MH_I2C_Read... [18:43:08]Read from MH i2c: E2 03 00 5D 1E 00 90 00 EF [18:43:08]RAPDU: 90 00 [18:43:08]wFMCommunicate OK [18:43:08]wFMCommunicate request_size=4 [18:43:08]MH_SAM_APDU [18:43:08]CAPDU: 80 0D 03 02 [18:43:08]Write to MH i2c: E2 08 00 5E 1E 80 0D 03 02 00 00 00 00 F7 [18:43:08]Write i2c OK [18:43:08]MH_I2C_Read... [18:43:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:43:08]Read from MH i2c: E2 [18:43:08]MH_I2C_Read... [18:43:08]Read from MH i2c: E2 0B 00 [18:43:08]MH_I2C_Read... [18:43:08]Read from MH i2c: E2 0B 00 5E 1E 00 45 A1 5E 79 59 C2 34 E2 90 00 E6 [18:43:08]RAPDU: 45 A1 5E 79 59 C2 34 E2 90 00 [18:43:08]wFMCommunicate OK [18:43:08]SAM_PROTO_SignData done [18:43:08]FM_MakeSignedData done [18:43:08]CreateOFDProtocolMessage [18:43:08]wFMCommunicate request_size=4 [18:43:08]MH_SAM_APDU [18:43:08]CAPDU: 80 11 00 00 [18:43:08]Write to MH i2c: E2 08 00 5F 1E 80 11 00 00 00 00 00 00 F7 [18:43:08]Write i2c OK [18:43:08]MH_I2C_Read... [18:43:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:08]Read from MH i2c: E2 [18:43:08]MH_I2C_Read... [18:43:08]Read from MH i2c: E2 17 00 [18:43:08]MH_I2C_Read... [18:43:08]Read from MH i2c: E2 17 00 5F 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 4E [18:43:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:43:08]wFMCommunicate OK [18:43:08]CreateOFDProtocolMessage done [18:43:08]OFDSenderStorePacket 227601 [18:43:08]StoreOFDPacket docnum=227601 [18:43:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 E2 CE 00 01 50 18 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 54 AB 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 E2 93 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 73 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 C1 01 00 00 F4 03 04 00 3C 4F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 11 79 03 00 35 04 06 00 AB 63 8C 81 ED EF 45 A1 5E 79 59 C2 34 E2 [18:43:08]CheckFolder [18:43:08]dirname=/storage/ofd_packets [18:43:08]CheckFolder done [18:43:08]ProducePacketName [18:43:08]name=ofd_packets/00227601 [18:43:08]NVStorageSaveData ofd_packets/00227601 [18:43:08]File name is /storage/ofd_packets/00227601 [18:43:08]Write 294 bytes [18:43:08]NVStorageSaveData done [18:43:08]OFDSenderStorePacket done [18:43:08]KKMCreateOFDPacket done [18:43:08]NVStorageSaveData kkm_last_timestamp [18:43:08]File name is /storage/kkm_last_timestamp [18:43:08]Write 4 bytes [18:43:08]NVStorageSaveData done [18:43:08]ExternCall_PrintAddStr [18:43:08]wPrintStart [18:43:08]Write to MH i2c: 01 00 00 60 1E 7E [18:43:08]Write i2c OK [18:43:08]MH_I2C_Read... [18:43:08]Read from MH i2c: 01 [18:43:08]MH_I2C_Read... [18:43:08]Read from MH i2c: 01 07 00 [18:43:08]MH_I2C_Read... [18:43:08]Read from MH i2c: 01 07 00 60 1E 00 00 00 00 00 FF 0F 93 [18:43:08]RasterBufferAndPrint [18:43:08]line Счет N : (1)1963237 [18:43:08]line ИНН: 02508201610067 [18:43:08]line Контрольно-Кассовый Чек [18:43:08]line ПРОДАЖА [18:43:08]line ТРК (МРК, ГНК) : 52 [18:43:08]line Товар: 2710124130 [18:43:08]line SU-92 [18:43:08]line 43.860 * 68.40 [18:43:08]line = 3000.02 [18:43:08]line НДС 12% НСП 1% [18:43:08]line > о реализуемом товаре [18:43:08]line ОКРУГЛЕНИЕ: -0.02 [18:43:08]line ИТОГО: 3000.00 [18:43:08]line Внесено: 3000.00 [18:43:08]line СДАЧА: 0.00 [18:43:08]line НСП 1% : 26.55 [18:43:08]line НДС 12% : 318.59 [18:43:08]line Наличными: 3000.00 [18:43:08]line Безнал.: 0.00 [18:43:08]line Место: АЗС № 133 "Партнер Нефть" [18:43:08]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:43:08]line СНО: Общий режим [18:43:08]line Чек 449 20.10.2024 18:43 [18:43:08]line Смена: 533 ФФД: 1.0 [18:43:08]line ЗНМ: 0300000091 [18:43:08]line РНМ: 0000000000091685 [18:43:08]line Версия ККМ: 001 [18:43:08]line ФМ: 0000000000871839 [18:43:08]line ФД: 227601 [18:43:08]line ФПД: 188444047437295 [18:43:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T184308&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227601&fm=188444047437295&tin=02508201610067®Number=0000000000091685&sum=300000 [18:43:08]OFD Sender: Processing packet 227601 [packets to send 38, broken 37] [18:43:08]ProducePacketName [18:43:08]name=ofd_packets/00227601 [18:43:08]OFD Sender: To server: pG, [18:43:08]CommunicateWithHost lk.salyk.kg:30040 [18:43:08]ConnectInit lk.salyk.kg [18:43:08]written 0, free lines is 4095 [18:43:09]Connected sock=10 [18:43:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 E2 CE 00 01 50 18 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 54 AB 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 E2 93 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 73 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 C1 01 00 00 F4 03 04 00 3C 4F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 11 79 03 00 35 04 06 00 AB 63 8C 81 ED EF 45 A1 5E 79 59 C2 34 E2 [18:43: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 33 39 4F 00 00 00 36 C5 47 00 D4 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 11 79 03 00 F4 03 04 00 3A FA 14 67 B6 04 01 00 00 AC CB EF 83 7D 6E 49 83 [18:43:09]CommunicateWithHost err = 0 [18:43:09]CheckOFDResponse [18:43:09]1017 (14) - 77093643461234 [18:43:09]1041 (16) - 0000000000871839 [18:43:09]1040 (4) - 227601 [18:43:09]1012 (4) - 20.10.2024 12:40 [18:43:09]1206 (1) - 0 [18:43:09]OFD Sender: Remove packet 227601 [18:43:09]ProducePacketName [18:43:09]name=ofd_packets/00227601 [18:43:09]NVStorageDeleteData [18:43:09]Write to MH i2c: 01 00 00 8A 1E A8 [18:43:09]Write i2c OK [18:43:09]MH_I2C_Read... [18:43:09]Read from MH i2c: 01 [18:43:09]MH_I2C_Read... [18:43:09]Read from MH i2c: 01 07 00 [18:43:09]MH_I2C_Read... [18:43:09]Read from MH i2c: 01 07 00 8A 1E 00 00 00 00 00 11 0D CD [18:43:09]RasterBufferAndPrint [18:43:09]line [18:43:09]line [18:43:09]line [18:43:09]line [18:43:09]line [18:43:09]written 0, free lines is 3351 [18:43:09]process_action close_receipt done [18:43:09]requested_data is exist [18:43:09]produce_requested_data [18:43:09]requested_item fm.sn is exist - process it [18:43:09]wFMCommunicate request_size=4 [18:43:09]MH_SAM_APDU [18:43:09]CAPDU: 80 11 00 00 [18:43:09]Write to MH i2c: E2 08 00 91 1E 80 11 00 00 00 00 00 00 29 [18:43:09]Write i2c OK [18:43:09]MH_I2C_Read... [18:43:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:09]Read from MH i2c: E2 [18:43:09]MH_I2C_Read... [18:43:09]Read from MH i2c: E2 17 00 [18:43:09]MH_I2C_Read... [18:43:09]Read from MH i2c: E2 17 00 91 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 80 [18:43:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:43:09]wFMCommunicate OK [18:43:09]requested_item fd.num is exist - process it [18:43:09]SAM_PROTO_GetFieldsCounters [18:43:09]wFMCommunicate request_size=4 [18:43:09]MH_SAM_APDU [18:43:09]CAPDU: 80 13 00 00 [18:43:09]Write to MH i2c: E2 08 00 92 1E 80 13 00 00 00 00 00 00 2C [18:43:09]Write i2c OK [18:43:09]MH_I2C_Read... [18:43:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:43:09]Read from MH i2c: E2 [18:43:09]MH_I2C_Read... [18:43:09]Read from MH i2c: E2 62 00 [18:43:09]MH_I2C_Read... [18:43:09]Read from MH i2c: E2 62 00 92 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 11 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 C1 01 00 00 5E 04 04 00 C1 01 00 00 57 04 04 00 C2 01 00 00 19 04 04 00 00 00 00 00 90 00 3F [18:43: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 11 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 C1 01 00 00 5E 04 04 00 C1 01 00 00 57 04 04 00 C2 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:43:09]wFMCommunicate OK [18:43:09]SAM_PROTO_GetFieldsCounters done [18:43:09]requested_item shift.num is exist - process it [18:43:09]requested_item shift.opened is exist - process it [18:43:09]req_shift_opened [18:43:09]FM_GetShiftState [18:43:09]SAM_PROTO_GetShiftState [18:43:09]wFMCommunicate request_size=4 [18:43:09]MH_SAM_APDU [18:43:09]CAPDU: 80 13 01 00 [18:43:09]Write to MH i2c: E2 08 00 93 1E 80 13 01 00 00 00 00 00 2E [18:43:09]Write i2c OK [18:43:09]MH_I2C_Read... [18:43:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:09]Read from MH i2c: E2 [18:43:09]MH_I2C_Read... [18:43:09]Read from MH i2c: E2 0E 00 [18:43:09]MH_I2C_Read... [18:43:09]Read from MH i2c: E2 0E 00 93 1E 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 48 [18:43:09]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:43:09]wFMCommunicate OK [18:43:09]SAM_PROTO_GetShiftState done [18:43:09]FM_GetShiftState done [18:43:09]req_shift_opened done [18:43:09]requested_item shift.open_date is exist - process it [18:43:09]req_shift_open_date [18:43:09]req_shift_open_date done [18:43:09]produce_requested_data done [18:43:09]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227601,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [18:43:09]process_action_free close_receipt [18:43:09]json_value_free [18:43:09]json_value_free done [18:43:09]process_json_proto returns [18:43:09]Send response to host [18:43:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227601,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [18:43:09]free response buf [18:43:09]execute_script done [18:43:09]execute_script returns [18:43:09]free content buf [18:43:09]Sock 7.Close socket [18:43:09]Sock 7.Thread stoped [18:43:09]OFD Sender: No OFD packet to send [18:43:14]OFD Sender: No OFD packet to send [18:43:19]OFD Sender: No OFD packet to send [18:43:24]OFD Sender: No OFD packet to send [18:43:29]OFD Sender: No OFD packet to send [18:43:34]OFD Sender: No OFD packet to send [18:43:39]OFD Sender: No OFD packet to send [18:43:40]accept exits with 9 [18:43:40]New connection [18:43:40]New thread 3067219300 created [18:43:40]Thread 3067362660 joined [18:43:40]Waiting for new connection... [18:43:40] Sock 9.Parse request [18:43:40]Sock 9.Check first char [18:43:40]Sock 9.First char is OK [18:43:40]request: POST /json_proto HTTP/1.0 [18:43:40]Method: POST [18:43:40]URL: /json_proto [18:43:40]Method is POST - this is cgi request [18:43:40]url: /json_proto [18:43:40]query_string will be loaded in cgi processing [18:43:40]execute_cgi json_proto POST (null) [18:43:40]execute_cgi path=json_proto method=POST [18:43:40]POST find Content-Length [18:43:40]Host: 172.17.44.195:8080 [18:43:40]Content-Length: 683 [18:43:40]Content-Type: application/json [18:43:40] [18:43:40]POST finish read [18:43:40]Found Content-Length = 683 [18:43:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963238", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:43:40]execute_script... [18:43:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963238", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:43:40]POST & json_proto [18:43:40]process_json_proto [18:43:40]json parsed OK: [18:43:40]protocol is kg_v1.0 [18:43:40]action value=close_receipt [18:43:40]process_action close_receipt [18:43:40]cmd_close_receipt [18:43:40]MH_GetDate [18:43:40]Write to MH i2c: F0 00 00 94 1E A1 [18:43:40]Write i2c OK [18:43:40]MH_I2C_Read... [18:43:40]Read from MH i2c: F0 [18:43:40]MH_I2C_Read... [18:43:40]Read from MH i2c: F0 09 00 [18:43:40]MH_I2C_Read... [18:43:40]Read from MH i2c: F0 09 00 94 1E 00 5E 4F 15 67 82 C9 CF 66 53 [18:43:40]GetLastDocTimeStamp 1729449788 [18:43:40]current date 1729449822 [18:43:40]FM_GetShiftState [18:43:40]SAM_PROTO_GetShiftState [18:43:40]wFMCommunicate request_size=4 [18:43:40]MH_SAM_APDU [18:43:40]CAPDU: 80 13 01 00 [18:43:40]Write to MH i2c: E2 08 00 95 1E 80 13 01 00 00 00 00 00 30 [18:43:40]Write i2c OK [18:43:40]MH_I2C_Read... [18:43:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:40]Read from MH i2c: E2 [18:43:40]MH_I2C_Read... [18:43:40]Read from MH i2c: E2 0E 00 [18:43:40]MH_I2C_Read... [18:43:40]Read from MH i2c: E2 0E 00 95 1E 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 4A [18:43:40]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:43:40]wFMCommunicate OK [18:43:40]SAM_PROTO_GetShiftState done [18:43:40]FM_GetShiftState done [18:43:40]opened in 1729383750 [18:43:40]opened+sec_in_day 1729470150 [18:43:40]quantity*price = 100015 [18:43:40]sum+1 = 100017 [18:43:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 450 20.10.2024 18:43 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227602 ФПД: 31037843912600 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T184342&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227602&fm=31037843912600&tin=02508201610067®Number=0000000000091685&sum=100000 [18:43:41]StoreToDocumentArchive [18:43:41]shift 533 fd 227602 [18:43:41]save to /storage/0533/doc_00227602 [18:43:41]save last doc name /storage/0533/doc_00227602 to /storage/kkm_last_doc_name [18:43:41]save OK [18:43:41]Clear old archive folders... [18:43:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:43:41]tlvbuf is 00DE28D0 [18:43:41]SAM_PROTO_ClearQueue [18:43:41]wFMCommunicate request_size=4 [18:43:41]MH_SAM_APDU [18:43:41]CAPDU: 80 09 00 00 [18:43:41]Write to MH i2c: E2 08 00 A2 1E 80 09 00 00 00 00 00 00 32 [18:43:41]Write i2c OK [18:43:41]MH_I2C_Read... [18:43:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:43:41]Read from MH i2c: E2 [18:43:41]MH_I2C_Read... [18:43:41]Read from MH i2c: E2 03 00 [18:43:41]MH_I2C_Read... [18:43:41]Read from MH i2c: E2 03 00 A2 1E 00 90 00 34 [18:43:41]RAPDU: 90 00 [18:43:41]wFMCommunicate OK [18:43:41]SAM_PROTO_ClearQueue done [18:43:41]KKMCreateOFDPacket [18:43:41]OFDProtocolAddRootSTLVToBuf [18:43:41]FM_MakeSignedData [18:43:41]FM_MakeSignedData [18:43:41]SAM_PROTO_SignData [18:43:41]wFMCommunicate request_size=4 [18:43:41]MH_SAM_APDU [18:43:41]CAPDU: 80 0D 01 02 [18:43:41]Write to MH i2c: E2 08 00 A3 1E 80 0D 01 02 00 00 00 00 3A [18:43:41]Write i2c OK [18:43:41]MH_I2C_Read... [18:43:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:43:41]Read from MH i2c: E2 [18:43:41]MH_I2C_Read... [18:43:41]Read from MH i2c: E2 03 00 [18:43:41]MH_I2C_Read... [18:43:41]Read from MH i2c: E2 03 00 A3 1E 00 90 00 35 [18:43:41]RAPDU: 90 00 [18:43:41]wFMCommunicate OK [18:43:41]wFMCommunicate request_size=255 [18:43:41]MH_SAM_APDU [18:43:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 01 00 00 F4 03 04 00 5E 4F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 12 79 03 00 35 04 06 00 1C [18:43:41]Write to MH i2c: E2 02 01 A4 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 01 00 00 F4 03 04 00 5E 4F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 12 79 03 00 35 04 06 00 1C 00 00 78 [18:43:41]Write i2c OK [18:43:41]MH_I2C_Read... [18:43:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:42]Read from MH i2c: E2 [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: E2 03 00 [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: E2 03 00 A4 1E 00 90 00 36 [18:43:42]RAPDU: 90 00 [18:43:42]wFMCommunicate OK [18:43:42]wFMCommunicate request_size=10 [18:43:42]MH_SAM_APDU [18:43:42]CAPDU: 80 0D 02 02 05 3A 8F A9 37 98 [18:43:42]Write to MH i2c: E2 0D 00 A5 1E 80 0D 02 02 05 00 3A 8F A9 37 98 00 00 88 [18:43:42]Write i2c OK [18:43:42]MH_I2C_Read... [18:43:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:42]Read from MH i2c: E2 [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: E2 03 00 [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: E2 03 00 A5 1E 00 90 00 37 [18:43:42]RAPDU: 90 00 [18:43:42]wFMCommunicate OK [18:43:42]wFMCommunicate request_size=4 [18:43:42]MH_SAM_APDU [18:43:42]CAPDU: 80 0D 03 02 [18:43:42]Write to MH i2c: E2 08 00 A6 1E 80 0D 03 02 00 00 00 00 3F [18:43:42]Write i2c OK [18:43:42]MH_I2C_Read... [18:43:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:43:42]Read from MH i2c: E2 [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: E2 0B 00 [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: E2 0B 00 A6 1E 00 44 3D BF 48 C2 67 FF 55 90 00 45 [18:43:42]RAPDU: 44 3D BF 48 C2 67 FF 55 90 00 [18:43:42]wFMCommunicate OK [18:43:42]SAM_PROTO_SignData done [18:43:42]FM_MakeSignedData done [18:43:42]CreateOFDProtocolMessage [18:43:42]wFMCommunicate request_size=4 [18:43:42]MH_SAM_APDU [18:43:42]CAPDU: 80 11 00 00 [18:43:42]Write to MH i2c: E2 08 00 A7 1E 80 11 00 00 00 00 00 00 3F [18:43:42]Write i2c OK [18:43:42]MH_I2C_Read... [18:43:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:42]Read from MH i2c: E2 [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: E2 17 00 [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: E2 17 00 A7 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 96 [18:43:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:43:42]wFMCommunicate OK [18:43:42]CreateOFDProtocolMessage done [18:43:42]OFDSenderStorePacket 227602 [18:43:42]StoreOFDPacket docnum=227602 [18:43:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 A1 32 07 01 1D 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 01 00 00 F4 03 04 00 5E 4F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 12 79 03 00 35 04 06 00 1C 3A 8F A9 37 98 44 3D BF 48 C2 67 FF 55 [18:43:42]CheckFolder [18:43:42]dirname=/storage/ofd_packets [18:43:42]CheckFolder done [18:43:42]ProducePacketName [18:43:42]name=ofd_packets/00227602 [18:43:42]NVStorageSaveData ofd_packets/00227602 [18:43:42]File name is /storage/ofd_packets/00227602 [18:43:42]Write 301 bytes [18:43:42]NVStorageSaveData done [18:43:42]OFDSenderStorePacket done [18:43:42]KKMCreateOFDPacket done [18:43:42]NVStorageSaveData kkm_last_timestamp [18:43:42]File name is /storage/kkm_last_timestamp [18:43:42]Write 4 bytes [18:43:42]NVStorageSaveData done [18:43:42]ExternCall_PrintAddStr [18:43:42]wPrintStart [18:43:42]Write to MH i2c: 01 00 00 A8 1E C6 [18:43:42]Write i2c OK [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: 01 [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: 01 07 00 [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: 01 07 00 A8 1E 00 00 00 00 00 FF 0F DB [18:43:42]RasterBufferAndPrint [18:43:42]line Счет N : (1)1963238 [18:43:42]line ИНН: 02508201610067 [18:43:42]line Контрольно-Кассовый Чек [18:43:42]line ПРОДАЖА [18:43:42]line ТРК (МРК, ГНК) : 43 [18:43:42]line Товар: 2710124130 [18:43:42]line Аи-92-К-5 [18:43:42]line 14.950 * 66.90 [18:43:42]line = 1000.16 [18:43:42]line НДС 12% НСП 1% [18:43:42]line > о реализуемом товаре [18:43:42]line ОКРУГЛЕНИЕ: -0.16 [18:43:42]line ИТОГО: 1000.00 [18:43:42]line Внесено: 1000.00 [18:43:42]line СДАЧА: 0.00 [18:43:42]line НСП 1% : 8.85 [18:43:42]line НДС 12% : 106.21 [18:43:42]line Наличными: 1000.00 [18:43:42]line Безнал.: 0.00 [18:43:42]line Место: АЗС № 133 "Партнер Нефть" [18:43:42]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:43:42]line СНО: Общий режим [18:43:42]line Чек 450 20.10.2024 18:43 [18:43:42]line Смена: 533 ФФД: 1.0 [18:43:42]line ЗНМ: 0300000091 [18:43:42]line РНМ: 0000000000091685 [18:43:42]line Версия ККМ: 001 [18:43:42]line ФМ: 0000000000871839 [18:43:42]line ФД: 227602 [18:43:42]line ФПД: 31037843912600 [18:43:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T184342&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227602&fm=31037843912600&tin=02508201610067®Number=0000000000091685&sum=100000 [18:43:42]written 0, free lines is 4095 [18:43:42]OFD Sender: Processing packet 227602 [packets to send 38, broken 37] [18:43:42]ProducePacketName [18:43:42]name=ofd_packets/00227602 [18:43:42]OFD Sender: To server: pG, [18:43:42]CommunicateWithHost lk.salyk.kg:30040 [18:43:42]ConnectInit lk.salyk.kg [18:43:42]Connected sock=10 [18:43:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 A1 32 07 01 1D 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 01 00 00 F4 03 04 00 5E 4F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 12 79 03 00 35 04 06 00 1C 3A 8F A9 37 98 44 3D BF 48 C2 67 FF 55 [18:43:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 E4 AA 47 00 CD 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 12 79 03 00 F4 03 04 00 5C FA 14 67 B6 04 01 00 00 18 29 AD B7 B9 BF 50 35 [18:43:42]CommunicateWithHost err = 0 [18:43:42]CheckOFDResponse [18:43:42]1017 (14) - 77093643461234 [18:43:42]1041 (16) - 0000000000871839 [18:43:42]1040 (4) - 227602 [18:43:42]1012 (4) - 20.10.2024 12:41 [18:43:42]1206 (1) - 0 [18:43:42]OFD Sender: Remove packet 227602 [18:43:42]ProducePacketName [18:43:42]name=ofd_packets/00227602 [18:43:42]NVStorageDeleteData [18:43:43]Write to MH i2c: 01 00 00 D2 1E F0 [18:43:43]Write i2c OK [18:43:43]MH_I2C_Read... [18:43:43]Read from MH i2c: 01 [18:43:43]MH_I2C_Read... [18:43:43]Read from MH i2c: 01 07 00 [18:43:43]MH_I2C_Read... [18:43:43]Read from MH i2c: 01 07 00 D2 1E 00 00 00 00 00 02 0D 06 [18:43:43]RasterBufferAndPrint [18:43:43]line [18:43:43]line [18:43:43]line [18:43:43]line [18:43:43]line [18:43:43]written 0, free lines is 3336 [18:43:43]process_action close_receipt done [18:43:43]requested_data is exist [18:43:43]produce_requested_data [18:43:43]requested_item fm.sn is exist - process it [18:43:43]wFMCommunicate request_size=4 [18:43:43]MH_SAM_APDU [18:43:43]CAPDU: 80 11 00 00 [18:43:43]Write to MH i2c: E2 08 00 D9 1E 80 11 00 00 00 00 00 00 71 [18:43:43]Write i2c OK [18:43:43]MH_I2C_Read... [18:43:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:43]Read from MH i2c: E2 [18:43:43]MH_I2C_Read... [18:43:43]Read from MH i2c: E2 17 00 [18:43:43]MH_I2C_Read... [18:43:43]Read from MH i2c: E2 17 00 D9 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C8 [18:43:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:43:43]wFMCommunicate OK [18:43:43]requested_item fd.num is exist - process it [18:43:43]SAM_PROTO_GetFieldsCounters [18:43:43]wFMCommunicate request_size=4 [18:43:43]MH_SAM_APDU [18:43:43]CAPDU: 80 13 00 00 [18:43:43]Write to MH i2c: E2 08 00 DA 1E 80 13 00 00 00 00 00 00 74 [18:43:43]Write i2c OK [18:43:43]MH_I2C_Read... [18:43:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:43:43]Read from MH i2c: E2 [18:43:43]MH_I2C_Read... [18:43:43]Read from MH i2c: E2 62 00 [18:43:43]MH_I2C_Read... [18:43:43]Read from MH i2c: E2 62 00 DA 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 12 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 C2 01 00 00 5E 04 04 00 C2 01 00 00 57 04 04 00 C3 01 00 00 19 04 04 00 00 00 00 00 90 00 8B [18:43:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 12 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 C2 01 00 00 5E 04 04 00 C2 01 00 00 57 04 04 00 C3 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:43:43]wFMCommunicate OK [18:43:43]SAM_PROTO_GetFieldsCounters done [18:43:43]requested_item shift.num is exist - process it [18:43:43]requested_item shift.opened is exist - process it [18:43:43]req_shift_opened [18:43:43]FM_GetShiftState [18:43:43]SAM_PROTO_GetShiftState [18:43:43]wFMCommunicate request_size=4 [18:43:43]MH_SAM_APDU [18:43:43]CAPDU: 80 13 01 00 [18:43:43]Write to MH i2c: E2 08 00 DB 1E 80 13 01 00 00 00 00 00 76 [18:43:43]Write i2c OK [18:43:43]MH_I2C_Read... [18:43:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:43]Read from MH i2c: E2 [18:43:43]MH_I2C_Read... [18:43:43]Read from MH i2c: E2 0E 00 [18:43:43]MH_I2C_Read... [18:43:43]Read from MH i2c: E2 0E 00 DB 1E 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 90 [18:43:43]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:43:43]wFMCommunicate OK [18:43:43]SAM_PROTO_GetShiftState done [18:43:43]FM_GetShiftState done [18:43:43]req_shift_opened done [18:43:43]requested_item shift.open_date is exist - process it [18:43:43]req_shift_open_date [18:43:43]req_shift_open_date done [18:43:43]produce_requested_data done [18:43:43]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227602,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [18:43:43]process_action_free close_receipt [18:43:43]json_value_free [18:43:43]json_value_free done [18:43:43]process_json_proto returns [18:43:43]Send response to host [18:43:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227602,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [18:43:43]free response buf [18:43:43]execute_script done [18:43:43]execute_script returns [18:43:43]free content buf [18:43:43]Sock 9.Close socket [18:43:43]Sock 9.Thread stoped [18:43:43]OFD Sender: No OFD packet to send [18:43:48]OFD Sender: No OFD packet to send [18:43:53]OFD Sender: No OFD packet to send [18:43:58]OFD Sender: No OFD packet to send [18:44:03]OFD Sender: No OFD packet to send [18:44:08]OFD Sender: No OFD packet to send [18:44:13]OFD Sender: No OFD packet to send [18:44:18]OFD Sender: No OFD packet to send [18:44:23]OFD Sender: No OFD packet to send [18:44:28]OFD Sender: No OFD packet to send [18:44:33]OFD Sender: No OFD packet to send [18:44:38]OFD Sender: No OFD packet to send [18:44:43]OFD Sender: No OFD packet to send [18:44:48]OFD Sender: No OFD packet to send [18:44:52]accept exits with 7 [18:44:52]New connection [18:44:52]New thread 3067362660 created [18:44:52]Thread 3067219300 joined [18:44:52]Waiting for new connection... [18:44:52] Sock 7.Parse request [18:44:52]Sock 7.Check first char [18:44:52]Sock 7.First char is OK [18:44:52]request: POST /json_proto HTTP/1.0 [18:44:52]Method: POST [18:44:52]URL: /json_proto [18:44:52]Method is POST - this is cgi request [18:44:52]url: /json_proto [18:44:52]query_string will be loaded in cgi processing [18:44:52]execute_cgi json_proto POST (null) [18:44:52]execute_cgi path=json_proto method=POST [18:44:52]POST find Content-Length [18:44:52]Host: 172.17.44.195:8080 [18:44:52]Content-Length: 801 [18:44:52]Content-Type: application/json [18:44:52] [18:44:52]POST finish read [18:44:52]Found Content-Length = 801 [18:44:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963239", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A1645396", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:44:52]execute_script... [18:44:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963239", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A1645396", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:44:52]POST & json_proto [18:44:52]process_json_proto [18:44:52]json parsed OK: [18:44:52]protocol is kg_v1.0 [18:44:52]action value=close_receipt [18:44:52]process_action close_receipt [18:44:52]cmd_close_receipt [18:44:52]MH_GetDate [18:44:52]Write to MH i2c: F0 00 00 DC 1E E9 [18:44:52]Write i2c OK [18:44:52]MH_I2C_Read... [18:44:52]Read from MH i2c: F0 [18:44:52]MH_I2C_Read... [18:44:52]Read from MH i2c: F0 09 00 [18:44:52]MH_I2C_Read... [18:44:52]Read from MH i2c: F0 09 00 DC 1E 00 A5 4F 15 67 82 C9 CF 66 E2 [18:44:52]GetLastDocTimeStamp 1729449822 [18:44:52]current date 1729449893 [18:44:52]FM_GetShiftState [18:44:52]SAM_PROTO_GetShiftState [18:44:52]wFMCommunicate request_size=4 [18:44:52]MH_SAM_APDU [18:44:52]CAPDU: 80 13 01 00 [18:44:52]Write to MH i2c: E2 08 00 DD 1E 80 13 01 00 00 00 00 00 78 [18:44:52]Write i2c OK [18:44:52]MH_I2C_Read... [18:44:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:52]Read from MH i2c: E2 [18:44:52]MH_I2C_Read... [18:44:52]Read from MH i2c: E2 0E 00 [18:44:52]MH_I2C_Read... [18:44:52]Read from MH i2c: E2 0E 00 DD 1E 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 92 [18:44:52]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:44:52]wFMCommunicate OK [18:44:52]SAM_PROTO_GetShiftState done [18:44:52]FM_GetShiftState done [18:44:52]opened in 1729383750 [18:44:52]opened+sec_in_day 1729470150 [18:44:52]quantity*price = 0 [18:44:52]sum+1 = 1 [18:44:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 451 20.10.2024 18:44 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Талоны: Топливные Талоны 1645396 ФМ: 0000000000871839 ФД: 227603 ФПД: 122715671613253 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T184453&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227603&fm=122715671613253&tin=02508201610067®Number=0000000000091685&sum=0 [18:44:53]StoreToDocumentArchive [18:44:53]shift 533 fd 227603 [18:44:53]save to /storage/0533/doc_00227603 [18:44:53]save last doc name /storage/0533/doc_00227603 to /storage/kkm_last_doc_name [18:44:53]save OK [18:44:53]Clear old archive folders... [18:44:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:44:53]tlvbuf is 00DE2330 [18:44:53]SAM_PROTO_ClearQueue [18:44:53]wFMCommunicate request_size=4 [18:44:53]MH_SAM_APDU [18:44:53]CAPDU: 80 09 00 00 [18:44:53]Write to MH i2c: E2 08 00 EA 1E 80 09 00 00 00 00 00 00 7A [18:44:53]Write i2c OK [18:44:53]MH_I2C_Read... [18:44:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:44:53]Read from MH i2c: E2 [18:44:53]MH_I2C_Read... [18:44:53]Read from MH i2c: E2 03 00 [18:44:53]MH_I2C_Read... [18:44:53]Read from MH i2c: E2 03 00 EA 1E 00 90 00 7C [18:44:53]RAPDU: 90 00 [18:44:53]wFMCommunicate OK [18:44:53]SAM_PROTO_ClearQueue done [18:44:53]KKMCreateOFDPacket [18:44:53]OFDProtocolAddRootSTLVToBuf [18:44:53]FM_MakeSignedData [18:44:53]FM_MakeSignedData [18:44:53]SAM_PROTO_SignData [18:44:53]wFMCommunicate request_size=4 [18:44:53]MH_SAM_APDU [18:44:53]CAPDU: 80 0D 01 02 [18:44:53]Write to MH i2c: E2 08 00 EB 1E 80 0D 01 02 00 00 00 00 82 [18:44:53]Write i2c OK [18:44:53]MH_I2C_Read... [18:44:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:44:53]Read from MH i2c: E2 [18:44:53]MH_I2C_Read... [18:44:53]Read from MH i2c: E2 03 00 [18:44:53]MH_I2C_Read... [18:44:53]Read from MH i2c: E2 03 00 EB 1E 00 90 00 7D [18:44:53]RAPDU: 90 00 [18:44:53]wFMCommunicate OK [18:44:53]wFMCommunicate request_size=255 [18:44:53]MH_SAM_APDU [18:44:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 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 C3 01 00 00 F4 03 04 00 A5 4F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 13 79 03 00 35 04 06 00 6F [18:44:53]Write to MH i2c: E2 02 01 EC 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 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 C3 01 00 00 F4 03 04 00 A5 4F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 13 79 03 00 35 04 06 00 6F 00 00 86 [18:44:53]Write i2c OK [18:44:53]MH_I2C_Read... [18:44:53]OFD Sender: No OFD packet to send [18:44:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:53]Read from MH i2c: E2 [18:44:53]MH_I2C_Read... [18:44:53]Read from MH i2c: E2 03 00 [18:44:53]MH_I2C_Read... [18:44:53]Read from MH i2c: E2 03 00 EC 1E 00 90 00 7E [18:44:53]RAPDU: 90 00 [18:44:53]wFMCommunicate OK [18:44:53]wFMCommunicate request_size=10 [18:44:53]MH_SAM_APDU [18:44:53]CAPDU: 80 0D 02 02 05 9B F8 03 CF 45 [18:44:53]Write to MH i2c: E2 0D 00 ED 1E 80 0D 02 02 05 00 9B F8 03 CF 45 00 00 39 [18:44:53]Write i2c OK [18:44:53]MH_I2C_Read... [18:44:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:53]Read from MH i2c: E2 [18:44:53]MH_I2C_Read... [18:44:53]Read from MH i2c: E2 03 00 [18:44:53]MH_I2C_Read... [18:44:53]Read from MH i2c: E2 03 00 ED 1E 00 90 00 7F [18:44:53]RAPDU: 90 00 [18:44:53]wFMCommunicate OK [18:44:53]wFMCommunicate request_size=4 [18:44:53]MH_SAM_APDU [18:44:53]CAPDU: 80 0D 03 02 [18:44:53]Write to MH i2c: E2 08 00 EE 1E 80 0D 03 02 00 00 00 00 87 [18:44:53]Write i2c OK [18:44:53]MH_I2C_Read... [18:44:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:44:53]Read from MH i2c: E2 [18:44:53]MH_I2C_Read... [18:44:53]Read from MH i2c: E2 0B 00 [18:44:53]MH_I2C_Read... [18:44:53]Read from MH i2c: E2 0B 00 EE 1E 00 09 B0 44 FA C4 5A A8 2E 90 00 73 [18:44:53]RAPDU: 09 B0 44 FA C4 5A A8 2E 90 00 [18:44:53]wFMCommunicate OK [18:44:53]SAM_PROTO_SignData done [18:44:53]FM_MakeSignedData done [18:44:53]CreateOFDProtocolMessage [18:44:53]wFMCommunicate request_size=4 [18:44:53]MH_SAM_APDU [18:44:53]CAPDU: 80 11 00 00 [18:44:53]Write to MH i2c: E2 08 00 EF 1E 80 11 00 00 00 00 00 00 87 [18:44:53]Write i2c OK [18:44:53]MH_I2C_Read... [18:44:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:53]Read from MH i2c: E2 [18:44:53]MH_I2C_Read... [18:44:53]Read from MH i2c: E2 17 00 [18:44:53]MH_I2C_Read... [18:44:53]Read from MH i2c: E2 17 00 EF 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 DE [18:44:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:44:53]wFMCommunicate OK [18:44:53]CreateOFDProtocolMessage done [18:44:53]OFDSenderStorePacket 227603 [18:44:53]StoreOFDPacket docnum=227603 [18:44:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 7F D5 07 01 67 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 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 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 C3 01 00 00 F4 03 04 00 A5 4F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 13 79 03 00 35 04 06 00 6F 9B F8 03 CF 45 09 B0 44 FA C4 5A A8 2E [18:44:53]CheckFolder [18:44:53]dirname=/storage/ofd_packets [18:44:53]CheckFolder done [18:44:53]ProducePacketName [18:44:53]name=ofd_packets/00227603 [18:44:53]NVStorageSaveData ofd_packets/00227603 [18:44:53]File name is /storage/ofd_packets/00227603 [18:44:53]Write 301 bytes [18:44:53]NVStorageSaveData done [18:44:53]OFDSenderStorePacket done [18:44:53]KKMCreateOFDPacket done [18:44:53]NVStorageSaveData kkm_last_timestamp [18:44:53]File name is /storage/kkm_last_timestamp [18:44:53]Write 4 bytes [18:44:53]NVStorageSaveData done [18:44:53]ExternCall_PrintAddStr [18:44:53]wPrintStart [18:44:53]Write to MH i2c: 01 00 00 F0 1E 0E [18:44:53]Write i2c OK [18:44:53]MH_I2C_Read... [18:44:53]Read from MH i2c: 01 [18:44:53]MH_I2C_Read... [18:44:53]Read from MH i2c: 01 07 00 [18:44:53]MH_I2C_Read... [18:44:53]Read from MH i2c: 01 07 00 F0 1E 00 00 00 00 00 FF 0F 23 [18:44:53]RasterBufferAndPrint [18:44:53]line Счет N : (1)1963239 [18:44:53]line ИНН: 02508201610067 [18:44:53]line Контрольно-Кассовый Чек [18:44:53]line ПРОДАЖА [18:44:53]line ТРК (МРК, ГНК) : 34 [18:44:53]line Товар: 2710124500 [18:44:53]line Аи-95-К-5 [18:44:53]line 30.000 * 0.00 [18:44:53]line = 0.00 [18:44:53]line НДС 12% НСП 1% [18:44:53]line > о реализуемом товаре [18:44:53]line ИТОГО: 0.00 [18:44:53]line НСП 1% : 0.00 [18:44:53]line НДС 12% : 0.00 [18:44:53]line Наличными: 0.00 [18:44:53]line Безнал.: 0.00 [18:44:53]line Место: АЗС № 133 "Партнер Нефть" [18:44:53]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:44:53]line СНО: Общий режим [18:44:53]line Чек 451 20.10.2024 18:44 [18:44:53]line Смена: 533 ФФД: 1.0 [18:44:53]line ЗНМ: 0300000091 [18:44:53]line РНМ: 0000000000091685 [18:44:53]line Версия ККМ: 001 [18:44:53]line Талоны: Топливные Талоны [18:44:53]line 1645396 [18:44:53]line ФМ: 0000000000871839 [18:44:53]line ФД: 227603 [18:44:53]line ФПД: 122715671613253 [18:44:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T184453&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227603&fm=122715671613253&tin=02508201610067®Number=0000000000091685&sum=0 [18:44:54]written 0, free lines is 4095 [18:44:54]OFD Sender: Processing packet 227603 [packets to send 38, broken 37] [18:44:54]ProducePacketName [18:44:54]name=ofd_packets/00227603 [18:44:54]OFD Sender: To server: pG, [18:44:54]CommunicateWithHost lk.salyk.kg:30040 [18:44:54]ConnectInit lk.salyk.kg [18:44:54]Connected sock=10 [18:44:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 7F D5 07 01 67 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 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 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 C3 01 00 00 F4 03 04 00 A5 4F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 13 79 03 00 35 04 06 00 6F 9B F8 03 CF 45 09 B0 44 FA C4 5A A8 2E [18:44:54]Write to MH i2c: 01 00 00 19 1F 38 [18:44:54]Write i2c OK [18:44:54]MH_I2C_Read... [18:44:54]Read from MH i2c: 01 [18:44:54]MH_I2C_Read... [18:44:54]Read from MH i2c: 01 07 00 [18:44:54]MH_I2C_Read... [18:44:54]Read from MH i2c: 01 07 00 19 1F 00 00 00 00 00 17 0D 63 [18:44:54]RasterBufferAndPrint [18:44:54]line [18:44:54]line [18:44:54]line [18:44:54]line [18:44:54]line [18:44:54]written 0, free lines is 3357 [18:44:54]process_action close_receipt done [18:44:54]requested_data is exist [18:44:54]produce_requested_data [18:44:54]requested_item fm.sn is exist - process it [18:44:54]wFMCommunicate request_size=4 [18:44:54]MH_SAM_APDU [18:44:54]CAPDU: 80 11 00 00 [18:44:54]Write to MH i2c: E2 08 00 20 1F 80 11 00 00 00 00 00 00 B9 [18:44:54]Write i2c OK [18:44:54]MH_I2C_Read... [18:44: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 33 39 4F 00 00 00 15 58 47 00 B6 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 13 79 03 00 F4 03 04 00 A4 FA 14 67 B6 04 01 00 00 4D C3 5C B3 87 09 81 98 [18:44:54]CommunicateWithHost err = 0 [18:44:54]CheckOFDResponse [18:44:54]1017 (14) - 77093643461234 [18:44:54]1041 (16) - 0000000000871839 [18:44:54]1040 (4) - 227603 [18:44:54]1012 (4) - 20.10.2024 12:42 [18:44:54]1206 (1) - 0 [18:44:54]OFD Sender: Remove packet 227603 [18:44:54]ProducePacketName [18:44:54]name=ofd_packets/00227603 [18:44:54]NVStorageDeleteData [18:44:54]Read from MH i2c: E2 [18:44:54]MH_I2C_Read... [18:44:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:54]Read from MH i2c: E2 17 00 [18:44:54]MH_I2C_Read... [18:44:54]Read from MH i2c: E2 17 00 20 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 10 [18:44:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:44:54]wFMCommunicate OK [18:44:54]requested_item fd.num is exist - process it [18:44:54]SAM_PROTO_GetFieldsCounters [18:44:54]wFMCommunicate request_size=4 [18:44:54]MH_SAM_APDU [18:44:54]CAPDU: 80 13 00 00 [18:44:54]Write to MH i2c: E2 08 00 21 1F 80 13 00 00 00 00 00 00 BC [18:44:54]Write i2c OK [18:44:54]MH_I2C_Read... [18:44:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:44:54]Read from MH i2c: E2 [18:44:54]MH_I2C_Read... [18:44:54]Read from MH i2c: E2 62 00 [18:44:54]MH_I2C_Read... [18:44:54]Read from MH i2c: E2 62 00 21 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 13 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 C3 01 00 00 5E 04 04 00 C3 01 00 00 57 04 04 00 C4 01 00 00 19 04 04 00 00 00 00 00 90 00 D7 [18:44: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 13 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 C3 01 00 00 5E 04 04 00 C3 01 00 00 57 04 04 00 C4 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:44:54]wFMCommunicate OK [18:44:54]SAM_PROTO_GetFieldsCounters done [18:44:54]requested_item shift.num is exist - process it [18:44:54]requested_item shift.opened is exist - process it [18:44:54]req_shift_opened [18:44:54]FM_GetShiftState [18:44:54]SAM_PROTO_GetShiftState [18:44:54]wFMCommunicate request_size=4 [18:44:54]MH_SAM_APDU [18:44:54]CAPDU: 80 13 01 00 [18:44:54]Write to MH i2c: E2 08 00 22 1F 80 13 01 00 00 00 00 00 BE [18:44:54]Write i2c OK [18:44:54]MH_I2C_Read... [18:44:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:54]Read from MH i2c: E2 [18:44:54]MH_I2C_Read... [18:44:54]Read from MH i2c: E2 0E 00 [18:44:54]MH_I2C_Read... [18:44:54]Read from MH i2c: E2 0E 00 22 1F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 D8 [18:44:54]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:44:54]wFMCommunicate OK [18:44:54]SAM_PROTO_GetShiftState done [18:44:54]FM_GetShiftState done [18:44:54]req_shift_opened done [18:44:54]requested_item shift.open_date is exist - process it [18:44:54]req_shift_open_date [18:44:54]req_shift_open_date done [18:44:54]produce_requested_data done [18:44:54]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227603,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [18:44:54]process_action_free close_receipt [18:44:54]json_value_free [18:44:54]json_value_free done [18:44:54]process_json_proto returns [18:44:54]Send response to host [18:44:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227603,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [18:44:54]free response buf [18:44:54]execute_script done [18:44:54]execute_script returns [18:44:54]free content buf [18:44:54]Sock 7.Close socket [18:44:54]Sock 7.Thread stoped [18:44:55]OFD Sender: No OFD packet to send [18:45:00]OFD Sender: No OFD packet to send [18:45:05]OFD Sender: No OFD packet to send [18:45:10]OFD Sender: No OFD packet to send [18:45:15]OFD Sender: No OFD packet to send [18:45:20]OFD Sender: No OFD packet to send [18:45:25]OFD Sender: No OFD packet to send [18:45:30]OFD Sender: No OFD packet to send [18:45:35]OFD Sender: No OFD packet to send [18:45:40]OFD Sender: No OFD packet to send [18:45:45]OFD Sender: No OFD packet to send [18:45:50]OFD Sender: No OFD packet to send [18:45:55]OFD Sender: No OFD packet to send [18:46:00]OFD Sender: No OFD packet to send [18:46:05]OFD Sender: No OFD packet to send [18:46:10]OFD Sender: No OFD packet to send [18:46:15]OFD Sender: No OFD packet to send [18:46:20]OFD Sender: No OFD packet to send [18:46:25]OFD Sender: No OFD packet to send [18:46:29]accept exits with 9 [18:46:29]New connection [18:46:29]New thread 3067219300 created [18:46:29]Thread 3067362660 joined [18:46:29]Waiting for new connection... [18:46:29] Sock 9.Parse request [18:46:29]Sock 9.Check first char [18:46:29]Sock 9.First char is OK [18:46:29]request: POST /json_proto HTTP/1.0 [18:46:29]Method: POST [18:46:29]URL: /json_proto [18:46:29]Method is POST - this is cgi request [18:46:29]url: /json_proto [18:46:29]query_string will be loaded in cgi processing [18:46:29]execute_cgi json_proto POST (null) [18:46:29]execute_cgi path=json_proto method=POST [18:46:29]POST find Content-Length [18:46:29]Host: 172.17.44.195:8080 [18:46:29]Content-Length: 678 [18:46:29]Content-Type: application/json [18:46:29] [18:46:29]POST finish read [18:46:29]Found Content-Length = 678 [18:46:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963240", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:46:29]execute_script... [18:46:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963240", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:46:29]POST & json_proto [18:46:29]process_json_proto [18:46:29]json parsed OK: [18:46:29]protocol is kg_v1.0 [18:46:29]action value=close_receipt [18:46:29]process_action close_receipt [18:46:29]cmd_close_receipt [18:46:29]MH_GetDate [18:46:29]Write to MH i2c: F0 00 00 23 1F 31 [18:46:29]Write i2c OK [18:46:29]MH_I2C_Read... [18:46:29]Read from MH i2c: F0 [18:46:29]MH_I2C_Read... [18:46:29]Read from MH i2c: F0 09 00 [18:46:29]MH_I2C_Read... [18:46:29]Read from MH i2c: F0 09 00 23 1F 00 06 50 15 67 82 C9 CF 66 8C [18:46:29]GetLastDocTimeStamp 1729449893 [18:46:29]current date 1729449990 [18:46:29]FM_GetShiftState [18:46:29]SAM_PROTO_GetShiftState [18:46:29]wFMCommunicate request_size=4 [18:46:29]MH_SAM_APDU [18:46:29]CAPDU: 80 13 01 00 [18:46:29]Write to MH i2c: E2 08 00 24 1F 80 13 01 00 00 00 00 00 C0 [18:46:29]Write i2c OK [18:46:29]MH_I2C_Read... [18:46:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:29]Read from MH i2c: E2 [18:46:29]MH_I2C_Read... [18:46:29]Read from MH i2c: E2 0E 00 [18:46:29]MH_I2C_Read... [18:46:29]Read from MH i2c: E2 0E 00 24 1F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 DA [18:46:29]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:46:29]wFMCommunicate OK [18:46:29]SAM_PROTO_GetShiftState done [18:46:29]FM_GetShiftState done [18:46:29]opened in 1729383750 [18:46:29]opened+sec_in_day 1729470150 [18:46:29]quantity*price = 50041 [18:46:29]sum+1 = 50042 [18:46:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 452 20.10.2024 18:46 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227604 ФПД: 221208624836886 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T184630&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227604&fm=221208624836886&tin=02508201610067®Number=0000000000091685&sum=50000 [18:46:30]StoreToDocumentArchive [18:46:30]shift 533 fd 227604 [18:46:30]save to /storage/0533/doc_00227604 [18:46:30]save last doc name /storage/0533/doc_00227604 to /storage/kkm_last_doc_name [18:46:30]save OK [18:46:30]Clear old archive folders... [18:46:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:46:30]tlvbuf is B6FBC4F0 [18:46:30]SAM_PROTO_ClearQueue [18:46:30]wFMCommunicate request_size=4 [18:46:30]MH_SAM_APDU [18:46:30]CAPDU: 80 09 00 00 [18:46:30]Write to MH i2c: E2 08 00 31 1F 80 09 00 00 00 00 00 00 C2 [18:46:30]Write i2c OK [18:46:30]MH_I2C_Read... [18:46:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:46:30]Read from MH i2c: E2 [18:46:30]MH_I2C_Read... [18:46:30]Read from MH i2c: E2 03 00 [18:46:30]MH_I2C_Read... [18:46:30]Read from MH i2c: E2 03 00 31 1F 00 90 00 C4 [18:46:30]RAPDU: 90 00 [18:46:30]wFMCommunicate OK [18:46:30]SAM_PROTO_ClearQueue done [18:46:30]KKMCreateOFDPacket [18:46:30]OFDProtocolAddRootSTLVToBuf [18:46:30]FM_MakeSignedData [18:46:30]FM_MakeSignedData [18:46:30]SAM_PROTO_SignData [18:46:30]wFMCommunicate request_size=4 [18:46:30]MH_SAM_APDU [18:46:30]CAPDU: 80 0D 01 02 [18:46:30]Write to MH i2c: E2 08 00 32 1F 80 0D 01 02 00 00 00 00 CA [18:46:30]Write i2c OK [18:46:30]MH_I2C_Read... [18:46:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:46:30]Read from MH i2c: E2 [18:46:30]MH_I2C_Read... [18:46:30]Read from MH i2c: E2 03 00 [18:46:30]MH_I2C_Read... [18:46:30]Read from MH i2c: E2 03 00 32 1F 00 90 00 C5 [18:46:30]RAPDU: 90 00 [18:46:30]wFMCommunicate OK [18:46:30]wFMCommunicate request_size=255 [18:46:30]MH_SAM_APDU [18:46:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 01 00 00 F4 03 04 00 06 50 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 14 79 03 00 35 04 06 00 C9 [18:46:30]Write to MH i2c: E2 02 01 33 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 01 00 00 F4 03 04 00 06 50 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 14 79 03 00 35 04 06 00 C9 00 00 68 [18:46:30]Write i2c OK [18:46:30]MH_I2C_Read... [18:46:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:30]Read from MH i2c: E2 [18:46:30]MH_I2C_Read... [18:46:30]Read from MH i2c: E2 03 00 [18:46:30]MH_I2C_Read... [18:46:30]Read from MH i2c: E2 03 00 33 1F 00 90 00 C6 [18:46:30]RAPDU: 90 00 [18:46:30]wFMCommunicate OK [18:46:30]wFMCommunicate request_size=10 [18:46:30]MH_SAM_APDU [18:46:30]CAPDU: 80 0D 02 02 05 30 25 81 31 16 [18:46:30]Write to MH i2c: E2 0D 00 34 1F 80 0D 02 02 05 00 30 25 81 31 16 00 00 F4 [18:46:30]Write i2c OK [18:46:30]MH_I2C_Read... [18:46:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:30]Read from MH i2c: E2 [18:46:30]MH_I2C_Read... [18:46:30]Read from MH i2c: E2 03 00 [18:46:30]MH_I2C_Read... [18:46:30]Read from MH i2c: E2 03 00 34 1F 00 90 00 C7 [18:46:30]RAPDU: 90 00 [18:46:30]wFMCommunicate OK [18:46:30]wFMCommunicate request_size=4 [18:46:30]MH_SAM_APDU [18:46:30]CAPDU: 80 0D 03 02 [18:46:30]Write to MH i2c: E2 08 00 35 1F 80 0D 03 02 00 00 00 00 CF [18:46:30]Write i2c OK [18:46:30]MH_I2C_Read... [18:46:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:46:30]Read from MH i2c: E2 [18:46:30]MH_I2C_Read... [18:46:30]Read from MH i2c: E2 0B 00 [18:46:30]MH_I2C_Read... [18:46:30]Read from MH i2c: E2 0B 00 35 1F 00 85 B4 DC 83 1D 1D 2E A7 90 00 77 [18:46:30]RAPDU: 85 B4 DC 83 1D 1D 2E A7 90 00 [18:46:30]wFMCommunicate OK [18:46:30]SAM_PROTO_SignData done [18:46:30]FM_MakeSignedData done [18:46:30]CreateOFDProtocolMessage [18:46:30]wFMCommunicate request_size=4 [18:46:30]MH_SAM_APDU [18:46:30]CAPDU: 80 11 00 00 [18:46:30]Write to MH i2c: E2 08 00 36 1F 80 11 00 00 00 00 00 00 CF [18:46:30]Write i2c OK [18:46:30]MH_I2C_Read... [18:46:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:30]Read from MH i2c: E2 [18:46:30]MH_I2C_Read... [18:46:30]Read from MH i2c: E2 17 00 [18:46:30]MH_I2C_Read... [18:46:30]Read from MH i2c: E2 17 00 36 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 26 [18:46:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:46:30]wFMCommunicate OK [18:46:30]CreateOFDProtocolMessage done [18:46:30]OFDSenderStorePacket 227604 [18:46:30]StoreOFDPacket docnum=227604 [18:46:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 8C 70 07 01 D7 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 01 00 00 F4 03 04 00 06 50 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 14 79 03 00 35 04 06 00 C9 30 25 81 31 16 85 B4 DC 83 1D 1D 2E A7 [18:46:30]CheckFolder [18:46:30]dirname=/storage/ofd_packets [18:46:30]CheckFolder done [18:46:30]ProducePacketName [18:46:30]name=ofd_packets/00227604 [18:46:30]NVStorageSaveData ofd_packets/00227604 [18:46:30]File name is /storage/ofd_packets/00227604 [18:46:30]Write 301 bytes [18:46:30]NVStorageSaveData done [18:46:30]OFDSenderStorePacket done [18:46:30]KKMCreateOFDPacket done [18:46:30]NVStorageSaveData kkm_last_timestamp [18:46:30]File name is /storage/kkm_last_timestamp [18:46:30]Write 4 bytes [18:46:30]NVStorageSaveData done [18:46:30]ExternCall_PrintAddStr [18:46:30]wPrintStart [18:46:30]Write to MH i2c: 01 00 00 37 1F 56 [18:46:30]Write i2c OK [18:46:30]MH_I2C_Read... [18:46:30]Read from MH i2c: 01 [18:46:30]MH_I2C_Read... [18:46:30]Read from MH i2c: 01 07 00 [18:46:30]MH_I2C_Read... [18:46:30]Read from MH i2c: 01 07 00 37 1F 00 00 00 00 00 FF 0F 6B [18:46:30]RasterBufferAndPrint [18:46:30]line Счет N : (1)1963240 [18:46:30]line ИНН: 02508201610067 [18:46:30]line Контрольно-Кассовый Чек [18:46:30]line ПРОДАЖА [18:46:30]line ТРК (МРК, ГНК) : 53 [18:46:30]line Товар: 2710124130 [18:46:30]line Аи-92-К-5 [18:46:30]line 7.480 * 66.90 [18:46:30]line = 500.41 [18:46:30]line НДС 12% НСП 1% [18:46:30]line > о реализуемом товаре [18:46:30]line ОКРУГЛЕНИЕ: -0.41 [18:46:30]line ИТОГО: 500.00 [18:46:30]line Внесено: 500.00 [18:46:30]line СДАЧА: 0.00 [18:46:30]line НСП 1% : 4.43 [18:46:30]line НДС 12% : 53.14 [18:46:30]line Наличными: 500.00 [18:46:30]line Безнал.: 0.00 [18:46:30]line Место: АЗС № 133 "Партнер Нефть" [18:46:30]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:46:30]line СНО: Общий режим [18:46:30]line Чек 452 20.10.2024 18:46 [18:46:30]line Смена: 533 ФФД: 1.0 [18:46:30]line ЗНМ: 0300000091 [18:46:30]line РНМ: 0000000000091685 [18:46:30]line Версия ККМ: 001 [18:46:30]line ФМ: 0000000000871839 [18:46:30]line ФД: 227604 [18:46:30]line ФПД: 221208624836886 [18:46:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T184630&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227604&fm=221208624836886&tin=02508201610067®Number=0000000000091685&sum=50000 [18:46:31]OFD Sender: Processing packet 227604 [packets to send 38, broken 37] [18:46:31]ProducePacketName [18:46:31]name=ofd_packets/00227604 [18:46:31]OFD Sender: To server: pG, [18:46:31]CommunicateWithHost lk.salyk.kg:30040 [18:46:31]ConnectInit lk.salyk.kg [18:46:31]written 0, free lines is 4095 [18:46:31]Write to MH i2c: 01 00 00 61 1F 80 [18:46:31]Write i2c OK [18:46:31]MH_I2C_Read... [18:46:31]Read from MH i2c: 01 [18:46:31]MH_I2C_Read... [18:46:31]Read from MH i2c: 01 07 00 [18:46:31]MH_I2C_Read... [18:46:31]Read from MH i2c: 01 07 00 61 1F 00 00 00 00 00 02 0D 96 [18:46:31]RasterBufferAndPrint [18:46:31]line [18:46:31]line [18:46:31]line [18:46:31]line [18:46:31]line [18:46:31]written 0, free lines is 3333 [18:46:31]process_action close_receipt done [18:46:31]requested_data is exist [18:46:31]produce_requested_data [18:46:31]requested_item fm.sn is exist - process it [18:46:31]wFMCommunicate request_size=4 [18:46:31]MH_SAM_APDU [18:46:31]CAPDU: 80 11 00 00 [18:46:31]Write to MH i2c: E2 08 00 68 1F 80 11 00 00 00 00 00 00 01 [18:46:31]Write i2c OK [18:46:31]MH_I2C_Read... [18:46:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:31]Read from MH i2c: E2 [18:46:31]MH_I2C_Read... [18:46:31]Read from MH i2c: E2 17 00 [18:46:31]MH_I2C_Read... [18:46:31]Read from MH i2c: E2 17 00 68 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 58 [18:46:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:46:31]wFMCommunicate OK [18:46:31]requested_item fd.num is exist - process it [18:46:31]SAM_PROTO_GetFieldsCounters [18:46:31]wFMCommunicate request_size=4 [18:46:31]MH_SAM_APDU [18:46:31]CAPDU: 80 13 00 00 [18:46:31]Write to MH i2c: E2 08 00 69 1F 80 13 00 00 00 00 00 00 04 [18:46:31]Write i2c OK [18:46:31]MH_I2C_Read... [18:46:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:46:31]Read from MH i2c: E2 [18:46:31]MH_I2C_Read... [18:46:31]Read from MH i2c: E2 62 00 [18:46:31]MH_I2C_Read... [18:46:31]Read from MH i2c: E2 62 00 69 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 14 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 C4 01 00 00 5E 04 04 00 C4 01 00 00 57 04 04 00 C5 01 00 00 19 04 04 00 00 00 00 00 90 00 23 [18:46:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 14 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 C4 01 00 00 5E 04 04 00 C4 01 00 00 57 04 04 00 C5 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:46:31]wFMCommunicate OK [18:46:31]SAM_PROTO_GetFieldsCounters done [18:46:31]requested_item shift.num is exist - process it [18:46:31]requested_item shift.opened is exist - process it [18:46:31]req_shift_opened [18:46:31]FM_GetShiftState [18:46:31]SAM_PROTO_GetShiftState [18:46:31]wFMCommunicate request_size=4 [18:46:31]MH_SAM_APDU [18:46:31]CAPDU: 80 13 01 00 [18:46:31]Write to MH i2c: E2 08 00 6A 1F 80 13 01 00 00 00 00 00 06 [18:46:31]Write i2c OK [18:46:31]MH_I2C_Read... [18:46:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:31]Read from MH i2c: E2 [18:46:31]MH_I2C_Read... [18:46:31]Read from MH i2c: E2 0E 00 [18:46:31]MH_I2C_Read... [18:46:31]Read from MH i2c: E2 0E 00 6A 1F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 20 [18:46:31]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:46:31]wFMCommunicate OK [18:46:31]SAM_PROTO_GetShiftState done [18:46:31]FM_GetShiftState done [18:46:31]req_shift_opened done [18:46:31]requested_item shift.open_date is exist - process it [18:46:31]req_shift_open_date [18:46:31]req_shift_open_date done [18:46:31]produce_requested_data done [18:46:31]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227604,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [18:46:31]process_action_free close_receipt [18:46:31]json_value_free [18:46:31]json_value_free done [18:46:31]process_json_proto returns [18:46:31]Send response to host [18:46:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227604,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [18:46:31]free response buf [18:46:31]execute_script done [18:46:31]execute_script returns [18:46:31]free content buf [18:46:31]Sock 9.Close socket [18:46:31]Sock 9.Thread stoped [18:48:22]accept exits with 7 [18:48:22]New connection [18:48:22]New thread 3067362660 created [18:48:22]Thread 3067219300 joined [18:48:22]Waiting for new connection... [18:48:22] Sock 7.Parse request [18:48:22]Sock 7.Check first char [18:48:22]Sock 7.First char is OK [18:48:22]request: POST /json_proto HTTP/1.0 [18:48:22]Method: POST [18:48:22]URL: /json_proto [18:48:22]Method is POST - this is cgi request [18:48:22]url: /json_proto [18:48:22]query_string will be loaded in cgi processing [18:48:22]execute_cgi json_proto POST (null) [18:48:22]execute_cgi path=json_proto method=POST [18:48:22]POST find Content-Length [18:48:22]Host: 172.17.44.195:8080 [18:48:22]Content-Length: 675 [18:48:22]Content-Type: application/json [18:48:22] [18:48:22]POST finish read [18:48:22]Found Content-Length = 675 [18:48:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963241", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:22]execute_script... [18:48:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963241", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:22]POST & json_proto [18:48:22]process_json_proto [18:48:22]json parsed OK: [18:48:22]protocol is kg_v1.0 [18:48:22]action value=close_receipt [18:48:22]process_action close_receipt [18:48:22]cmd_close_receipt [18:48:22]MH_GetDate [18:48:22]Write to MH i2c: F0 00 00 6B 1F 79 [18:48:22]Write i2c OK [18:48:22]MH_I2C_Read... [18:48:22]Read from MH i2c: F0 [18:48:22]MH_I2C_Read... [18:48:22]Read from MH i2c: F0 09 00 [18:48:22]MH_I2C_Read... [18:48:22]Read from MH i2c: F0 09 00 6B 1F 00 77 50 15 67 82 C9 CF 66 45 [18:48:22]GetLastDocTimeStamp 1729449990 [18:48:22]current date 1729450103 [18:48:22]FM_GetShiftState [18:48:22]SAM_PROTO_GetShiftState [18:48:22]wFMCommunicate request_size=4 [18:48:22]MH_SAM_APDU [18:48:22]CAPDU: 80 13 01 00 [18:48:22]Write to MH i2c: E2 08 00 6C 1F 80 13 01 00 00 00 00 00 08 [18:48:22]Write i2c OK [18:48:22]MH_I2C_Read... [18:48:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:22]Read from MH i2c: E2 [18:48:22]MH_I2C_Read... [18:48:22]Read from MH i2c: E2 0E 00 [18:48:22]MH_I2C_Read... [18:48:22]Read from MH i2c: E2 0E 00 6C 1F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 22 [18:48:22]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:48:22]wFMCommunicate OK [18:48:22]SAM_PROTO_GetShiftState done [18:48:22]FM_GetShiftState done [18:48:22]opened in 1729383750 [18:48:22]opened+sec_in_day 1729470150 [18:48:22]quantity*price = 50063 [18:48:22]sum+1 = 50064 [18:48:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 453 20.10.2024 18:48 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227605 ФПД: 22684115065003 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T184823&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227605&fm=22684115065003&tin=02508201610067®Number=0000000000091685&sum=50000 [18:48:23]StoreToDocumentArchive [18:48:23]shift 533 fd 227605 [18:48:23]save to /storage/0533/doc_00227605 [18:48:23]save last doc name /storage/0533/doc_00227605 to /storage/kkm_last_doc_name [18:48:23]save OK [18:48:23]Clear old archive folders... [18:48:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:48:23]tlvbuf is 00E5A130 [18:48:23]SAM_PROTO_ClearQueue [18:48:23]wFMCommunicate request_size=4 [18:48:23]MH_SAM_APDU [18:48:23]CAPDU: 80 09 00 00 [18:48:23]Write to MH i2c: E2 08 00 79 1F 80 09 00 00 00 00 00 00 0A [18:48:23]Write i2c OK [18:48:23]MH_I2C_Read... [18:48:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:48:23]Read from MH i2c: E2 [18:48:23]MH_I2C_Read... [18:48:23]Read from MH i2c: E2 03 00 [18:48:23]MH_I2C_Read... [18:48:23]Read from MH i2c: E2 03 00 79 1F 00 90 00 0C [18:48:23]RAPDU: 90 00 [18:48:23]wFMCommunicate OK [18:48:23]SAM_PROTO_ClearQueue done [18:48:23]KKMCreateOFDPacket [18:48:23]OFDProtocolAddRootSTLVToBuf [18:48:23]FM_MakeSignedData [18:48:23]FM_MakeSignedData [18:48:23]SAM_PROTO_SignData [18:48:23]wFMCommunicate request_size=4 [18:48:23]MH_SAM_APDU [18:48:23]CAPDU: 80 0D 01 02 [18:48:23]Write to MH i2c: E2 08 00 7A 1F 80 0D 01 02 00 00 00 00 12 [18:48:23]Write i2c OK [18:48:23]MH_I2C_Read... [18:48:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:48:23]Read from MH i2c: E2 [18:48:23]MH_I2C_Read... [18:48:23]Read from MH i2c: E2 03 00 [18:48:23]MH_I2C_Read... [18:48:23]Read from MH i2c: E2 03 00 7A 1F 00 90 00 0D [18:48:23]RAPDU: 90 00 [18:48:23]wFMCommunicate OK [18:48:23]wFMCommunicate request_size=255 [18:48:23]MH_SAM_APDU [18:48:23]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 01 00 00 F4 03 04 00 77 50 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 15 79 03 00 35 04 06 00 14 A1 8E 9E [18:48:23]Write to MH i2c: E2 02 01 7B 1F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 01 00 00 F4 03 04 00 77 50 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 15 79 03 00 35 04 06 00 14 A1 8E 9E 00 00 B9 [18:48:23]Write i2c OK [18:48:23]MH_I2C_Read... [18:48:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:23]Read from MH i2c: E2 [18:48:23]MH_I2C_Read... [18:48:23]Read from MH i2c: E2 03 00 [18:48:23]MH_I2C_Read... [18:48:23]Read from MH i2c: E2 03 00 7B 1F 00 90 00 0E [18:48:23]RAPDU: 90 00 [18:48:23]wFMCommunicate OK [18:48:23]wFMCommunicate request_size=7 [18:48:23]MH_SAM_APDU [18:48:23]CAPDU: 80 0D 02 02 02 D8 AB [18:48:23]Write to MH i2c: E2 0A 00 7C 1F 80 0D 02 02 02 00 D8 AB 00 00 9C [18:48:23]Write i2c OK [18:48:23]MH_I2C_Read... [18:48:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:23]Read from MH i2c: E2 [18:48:23]MH_I2C_Read... [18:48:23]Read from MH i2c: E2 03 00 [18:48:23]MH_I2C_Read... [18:48:23]Read from MH i2c: E2 03 00 7C 1F 00 90 00 0F [18:48:23]RAPDU: 90 00 [18:48:23]wFMCommunicate OK [18:48:23]wFMCommunicate request_size=4 [18:48:23]MH_SAM_APDU [18:48:23]CAPDU: 80 0D 03 02 [18:48:23]Write to MH i2c: E2 08 00 7D 1F 80 0D 03 02 00 00 00 00 17 [18:48:23]Write i2c OK [18:48:23]MH_I2C_Read... [18:48:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:48:23]Read from MH i2c: E2 [18:48:23]MH_I2C_Read... [18:48:23]Read from MH i2c: E2 0B 00 [18:48:23]MH_I2C_Read... [18:48:23]Read from MH i2c: E2 0B 00 7D 1F 00 5D 6B 26 E0 F9 82 16 0E 90 00 85 [18:48:23]RAPDU: 5D 6B 26 E0 F9 82 16 0E 90 00 [18:48:23]wFMCommunicate OK [18:48:23]SAM_PROTO_SignData done [18:48:23]FM_MakeSignedData done [18:48:23]CreateOFDProtocolMessage [18:48:23]wFMCommunicate request_size=4 [18:48:23]MH_SAM_APDU [18:48:23]CAPDU: 80 11 00 00 [18:48:23]Write to MH i2c: E2 08 00 7E 1F 80 11 00 00 00 00 00 00 17 [18:48:23]Write i2c OK [18:48:23]MH_I2C_Read... [18:48:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:23]Read from MH i2c: E2 [18:48:23]MH_I2C_Read... [18:48:23]Read from MH i2c: E2 17 00 [18:48:23]MH_I2C_Read... [18:48:23]Read from MH i2c: E2 17 00 7E 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 6E [18:48:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:48:23]wFMCommunicate OK [18:48:23]CreateOFDProtocolMessage done [18:48:23]OFDSenderStorePacket 227605 [18:48:23]StoreOFDPacket docnum=227605 [18:48:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 99 AA 04 01 34 8E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 01 00 00 F4 03 04 00 77 50 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 15 79 03 00 35 04 06 00 14 A1 8E 9E D8 AB 5D 6B 26 E0 F9 82 16 0E [18:48:23]CheckFolder [18:48:23]dirname=/storage/ofd_packets [18:48:23]CheckFolder done [18:48:23]ProducePacketName [18:48:23]name=ofd_packets/00227605 [18:48:23]NVStorageSaveData ofd_packets/00227605 [18:48:23]File name is /storage/ofd_packets/00227605 [18:48:23]Write 298 bytes [18:48:23]NVStorageSaveData done [18:48:23]OFDSenderStorePacket done [18:48:23]KKMCreateOFDPacket done [18:48:23]NVStorageSaveData kkm_last_timestamp [18:48:23]File name is /storage/kkm_last_timestamp [18:48:23]Write 4 bytes [18:48:23]NVStorageSaveData done [18:48:23]ExternCall_PrintAddStr [18:48:23]wPrintStart [18:48:23]Write to MH i2c: 01 00 00 7F 1F 9E [18:48:23]Write i2c OK [18:48:23]MH_I2C_Read... [18:48:23]Read from MH i2c: 01 [18:48:23]MH_I2C_Read... [18:48:23]Read from MH i2c: 01 07 00 [18:48:23]MH_I2C_Read... [18:48:23]Read from MH i2c: 01 07 00 7F 1F 00 00 00 00 00 FF 0F B3 [18:48:23]RasterBufferAndPrint [18:48:23]line Счет N : (1)1963241 [18:48:23]line ИНН: 02508201610067 [18:48:23]line Контрольно-Кассовый Чек [18:48:23]line ПРОДАЖА [18:48:23]line ТРК (МРК, ГНК) : 21 [18:48:23]line Товар: 2710194210 [18:48:23]line ДТ-К-5 [18:48:23]line 6.570 * 76.20 [18:48:23]line = 500.63 [18:48:23]line НДС 12% НСП 1% [18:48:23]line > о реализуемом товаре [18:48:23]line ОКРУГЛЕНИЕ: -0.63 [18:48:23]line ИТОГО: 500.00 [18:48:23]line Внесено: 500.00 [18:48:23]line СДАЧА: 0.00 [18:48:23]line НСП 1% : 4.43 [18:48:23]line НДС 12% : 53.16 [18:48:23]line Наличными: 500.00 [18:48:23]line Безнал.: 0.00 [18:48:23]line Место: АЗС № 133 "Партнер Нефть" [18:48:23]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:48:23]line СНО: Общий режим [18:48:23]line Чек 453 20.10.2024 18:48 [18:48:23]line Смена: 533 ФФД: 1.0 [18:48:23]line ЗНМ: 0300000091 [18:48:23]line РНМ: 0000000000091685 [18:48:23]line Версия ККМ: 001 [18:48:23]line ФМ: 0000000000871839 [18:48:23]line ФД: 227605 [18:48:23]line ФПД: 22684115065003 [18:48:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T184823&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227605&fm=22684115065003&tin=02508201610067®Number=0000000000091685&sum=50000 [18:48:24]written 0, free lines is 4095 [18:48:24]Write to MH i2c: 01 00 00 A9 1F C8 [18:48:24]Write i2c OK [18:48:24]MH_I2C_Read... [18:48:24]Read from MH i2c: 01 [18:48:24]MH_I2C_Read... [18:48:24]Read from MH i2c: 01 07 00 [18:48:24]MH_I2C_Read... [18:48:24]Read from MH i2c: 01 07 00 A9 1F 00 00 00 00 00 FD 0C D8 [18:48:24]RasterBufferAndPrint [18:48:24]line [18:48:24]line [18:48:24]line [18:48:24]line [18:48:24]line [18:48:24]written 0, free lines is 3331 [18:48:24]process_action close_receipt done [18:48:24]requested_data is exist [18:48:24]produce_requested_data [18:48:24]requested_item fm.sn is exist - process it [18:48:24]wFMCommunicate request_size=4 [18:48:24]MH_SAM_APDU [18:48:24]CAPDU: 80 11 00 00 [18:48:24]Write to MH i2c: E2 08 00 B0 1F 80 11 00 00 00 00 00 00 49 [18:48:24]Write i2c OK [18:48:24]MH_I2C_Read... [18:48:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:24]Read from MH i2c: E2 [18:48:24]MH_I2C_Read... [18:48:24]Read from MH i2c: E2 17 00 [18:48:24]MH_I2C_Read... [18:48:24]Read from MH i2c: E2 17 00 B0 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A0 [18:48:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:48:24]wFMCommunicate OK [18:48:24]requested_item fd.num is exist - process it [18:48:24]SAM_PROTO_GetFieldsCounters [18:48:24]wFMCommunicate request_size=4 [18:48:24]MH_SAM_APDU [18:48:24]CAPDU: 80 13 00 00 [18:48:24]Write to MH i2c: E2 08 00 B1 1F 80 13 00 00 00 00 00 00 4C [18:48:24]Write i2c OK [18:48:24]MH_I2C_Read... [18:48:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:48:24]Read from MH i2c: E2 [18:48:24]MH_I2C_Read... [18:48:24]Read from MH i2c: E2 62 00 [18:48:24]MH_I2C_Read... [18:48:24]Read from MH i2c: E2 62 00 B1 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 15 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 C5 01 00 00 5E 04 04 00 C5 01 00 00 57 04 04 00 C6 01 00 00 19 04 04 00 00 00 00 00 90 00 6F [18:48:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 15 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 C5 01 00 00 5E 04 04 00 C5 01 00 00 57 04 04 00 C6 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:48:24]wFMCommunicate OK [18:48:24]SAM_PROTO_GetFieldsCounters done [18:48:24]requested_item shift.num is exist - process it [18:48:24]requested_item shift.opened is exist - process it [18:48:24]req_shift_opened [18:48:24]FM_GetShiftState [18:48:24]SAM_PROTO_GetShiftState [18:48:24]wFMCommunicate request_size=4 [18:48:24]MH_SAM_APDU [18:48:24]CAPDU: 80 13 01 00 [18:48:24]Write to MH i2c: E2 08 00 B2 1F 80 13 01 00 00 00 00 00 4E [18:48:24]Write i2c OK [18:48:24]MH_I2C_Read... [18:48:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:24]Read from MH i2c: E2 [18:48:24]MH_I2C_Read... [18:48:24]Read from MH i2c: E2 0E 00 [18:48:24]MH_I2C_Read... [18:48:24]Read from MH i2c: E2 0E 00 B2 1F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 68 [18:48:24]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:48:24]wFMCommunicate OK [18:48:24]SAM_PROTO_GetShiftState done [18:48:24]FM_GetShiftState done [18:48:24]req_shift_opened done [18:48:24]requested_item shift.open_date is exist - process it [18:48:24]req_shift_open_date [18:48:24]req_shift_open_date done [18:48:24]produce_requested_data done [18:48:24]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227605,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [18:48:24]process_action_free close_receipt [18:48:24]json_value_free [18:48:24]json_value_free done [18:48:24]process_json_proto returns [18:48:24]Send response to host [18:48:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227605,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [18:48:24]free response buf [18:48:24]execute_script done [18:48:24]execute_script returns [18:48:24]free content buf [18:48:24]Sock 7.Close socket [18:48:24]Sock 7.Thread stoped [18:48:41]ConnectInit Can't connect to host [18:48:41]CommunicateWithHost connect error [18:48:41]CommunicateWithHost err = -1 [18:48:41]OFD Sender: Server communicate error [18:48:41]OFD Sender: Processing packet 227604 [packets to send 39, broken 37] [18:48:41]ProducePacketName [18:48:41]name=ofd_packets/00227604 [18:48:41]OFD Sender: To server: pG, [18:48:41]CommunicateWithHost lk.salyk.kg:30040 [18:48:41]ConnectInit lk.salyk.kg [18:48:42]Connected sock=7 [18: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 33 39 0F 01 00 00 8C 70 07 01 D7 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 01 00 00 F4 03 04 00 06 50 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 14 79 03 00 35 04 06 00 C9 30 25 81 31 16 85 B4 DC 83 1D 1D 2E A7 [18:48: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 33 39 4F 00 00 00 64 E3 47 00 16 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 33 39 10 04 04 00 14 79 03 00 F4 03 04 00 87 FB 14 67 B6 04 01 00 00 D4 FD 3A EF 56 CB EC DE [18:48:42]CommunicateWithHost err = 0 [18:48:42]CheckOFDResponse [18:48:42]1017 (14) - 77093643461234 [18:48:42]1041 (16) - 0000000000871839 [18:48:42]1040 (4) - 227604 [18:48:42]1012 (4) - 20.10.2024 12:45 [18:48:42]1206 (1) - 0 [18:48:42]OFD Sender: Remove packet 227604 [18:48:42]ProducePacketName [18:48:42]name=ofd_packets/00227604 [18:48:42]NVStorageDeleteData [18:48:42]OFD Sender: Processing packet 227605 [packets to send 38, broken 37] [18:48:42]ProducePacketName [18:48:42]name=ofd_packets/00227605 [18:48:42]OFD Sender: To server: pG, [18:48:42]CommunicateWithHost lk.salyk.kg:30040 [18:48:42]ConnectInit lk.salyk.kg [18:48:42]Connected sock=7 [18: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 33 39 0C 01 00 00 99 AA 04 01 34 8E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 01 00 00 F4 03 04 00 77 50 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 15 79 03 00 35 04 06 00 14 A1 8E 9E D8 AB 5D 6B 26 E0 F9 82 16 0E [18: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 33 39 4F 00 00 00 DA E3 47 00 14 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 15 79 03 00 F4 03 04 00 88 FB 14 67 B6 04 01 00 00 3F 18 1C 82 60 8C 2E F2 [18:48:43]CommunicateWithHost err = 0 [18:48:43]CheckOFDResponse [18:48:43]1017 (14) - 77093643461234 [18:48:43]1041 (16) - 0000000000871839 [18:48:43]1040 (4) - 227605 [18:48:43]1012 (4) - 20.10.2024 12:46 [18:48:43]1206 (1) - 0 [18:48:43]OFD Sender: Remove packet 227605 [18:48:43]ProducePacketName [18:48:43]name=ofd_packets/00227605 [18:48:43]NVStorageDeleteData [18:48:43]OFD Sender: No OFD packet to send [18:48:48]OFD Sender: No OFD packet to send [18:48:53]OFD Sender: No OFD packet to send [18:48:58]OFD Sender: No OFD packet to send [18:49:03]OFD Sender: No OFD packet to send [18:49:08]OFD Sender: No OFD packet to send [18:49:13]OFD Sender: No OFD packet to send [18:49:18]OFD Sender: No OFD packet to send [18:49:23]OFD Sender: No OFD packet to send [18:49:28]OFD Sender: No OFD packet to send [18:49:33]OFD Sender: No OFD packet to send [18:49:38]OFD Sender: No OFD packet to send [18:49:43]OFD Sender: No OFD packet to send [18:49:47]accept exits with 9 [18:49:47]New connection [18:49:47]New thread 3067219300 created [18:49:47]Thread 3067362660 joined [18:49:47]Waiting for new connection... [18:49:47] Sock 9.Parse request [18:49:47]Sock 9.Check first char [18:49:47]Sock 9.First char is OK [18:49:47]request: POST /json_proto HTTP/1.0 [18:49:47]Method: POST [18:49:47]URL: /json_proto [18:49:47]Method is POST - this is cgi request [18:49:47]url: /json_proto [18:49:47]query_string will be loaded in cgi processing [18:49:47]execute_cgi json_proto POST (null) [18:49:47]execute_cgi path=json_proto method=POST [18:49:47]POST find Content-Length [18:49:47]Host: 172.17.44.195:8080 [18:49:47]Content-Length: 659 [18:49:47]Content-Type: application/json [18:49:47] [18:49:47]POST finish read [18:49:47]Found Content-Length = 659 [18:49:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963242", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 3.810, "sum" : 260.60, "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" ] } } [18:49:47]execute_script... [18:49: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)1963242", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 3.810, "sum" : 260.60, "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" ] } } [18:49:47]POST & json_proto [18:49:47]process_json_proto [18:49:47]json parsed OK: [18:49:47]protocol is kg_v1.0 [18:49:47]action value=close_receipt [18:49:47]process_action close_receipt [18:49:47]cmd_close_receipt [18:49:47]MH_GetDate [18:49:47]Write to MH i2c: F0 00 00 B3 1F C1 [18:49:47]Write i2c OK [18:49:47]MH_I2C_Read... [18:49:47]Read from MH i2c: F0 [18:49:47]MH_I2C_Read... [18:49:47]Read from MH i2c: F0 09 00 [18:49:47]MH_I2C_Read... [18:49:47]Read from MH i2c: F0 09 00 B3 1F 00 CC 50 15 67 82 C9 CF 66 E2 [18:49:47]GetLastDocTimeStamp 1729450103 [18:49:47]current date 1729450188 [18:49:47]FM_GetShiftState [18:49:47]SAM_PROTO_GetShiftState [18:49:47]wFMCommunicate request_size=4 [18:49:47]MH_SAM_APDU [18:49:47]CAPDU: 80 13 01 00 [18:49:47]Write to MH i2c: E2 08 00 B4 1F 80 13 01 00 00 00 00 00 50 [18:49:47]Write i2c OK [18:49:47]MH_I2C_Read... [18:49:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:49:47]Read from MH i2c: E2 [18:49:47]MH_I2C_Read... [18:49:47]Read from MH i2c: E2 0E 00 [18:49:47]MH_I2C_Read... [18:49:47]Read from MH i2c: E2 0E 00 B4 1F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 6A [18:49:47]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:49:47]wFMCommunicate OK [18:49:47]SAM_PROTO_GetShiftState done [18:49:47]FM_GetShiftState done [18:49:47]opened in 1729383750 [18:49:47]opened+sec_in_day 1729470150 [18:49:47]quantity*price = 26060 [18:49:47]sum+1 = 26061 [18:49:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 260.00 Внесено: 260.00 СДАЧА: 0.00 НСП 1% : 2.31 НДС 12% : 27.67 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 454 20.10.2024 18:49 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227606 ФПД: 139284300821840 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T184948&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227606&fm=139284300821840&tin=02508201610067®Number=0000000000091685&sum=26000 [18:49:48]StoreToDocumentArchive [18:49:48]shift 533 fd 227606 [18:49:48]save to /storage/0533/doc_00227606 [18:49:48]save last doc name /storage/0533/doc_00227606 to /storage/kkm_last_doc_name [18:49:48]save OK [18:49:48]Clear old archive folders... [18:49:48]ProcessDocumentItem done err = 0, tmpTLVsize=244 [18:49:48]tlvbuf is 00E5ABB0 [18:49:48]SAM_PROTO_ClearQueue [18:49:48]wFMCommunicate request_size=4 [18:49:48]MH_SAM_APDU [18:49:48]CAPDU: 80 09 00 00 [18:49:48]Write to MH i2c: E2 08 00 C1 1F 80 09 00 00 00 00 00 00 52 [18:49:48]Write i2c OK [18:49:48]MH_I2C_Read... [18:49:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:49:48]Read from MH i2c: E2 [18:49:48]MH_I2C_Read... [18:49:48]Read from MH i2c: E2 03 00 [18:49:48]MH_I2C_Read... [18:49:48]Read from MH i2c: E2 03 00 C1 1F 00 90 00 54 [18:49:48]RAPDU: 90 00 [18:49:48]wFMCommunicate OK [18:49:48]SAM_PROTO_ClearQueue done [18:49:48]KKMCreateOFDPacket [18:49:48]OFDProtocolAddRootSTLVToBuf [18:49:48]FM_MakeSignedData [18:49:48]FM_MakeSignedData [18:49:48]SAM_PROTO_SignData [18:49:48]wFMCommunicate request_size=4 [18:49:48]MH_SAM_APDU [18:49:48]CAPDU: 80 0D 01 02 [18:49:48]Write to MH i2c: E2 08 00 C2 1F 80 0D 01 02 00 00 00 00 5A [18:49:48]Write i2c OK [18:49:48]MH_I2C_Read... [18:49:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:49:48]Read from MH i2c: E2 [18:49:48]MH_I2C_Read... [18:49:48]Read from MH i2c: E2 03 00 [18:49:48]MH_I2C_Read... [18:49:48]Read from MH i2c: E2 03 00 C2 1F 00 90 00 55 [18:49:48]RAPDU: 90 00 [18:49:48]wFMCommunicate OK [18:49:48]wFMCommunicate request_size=253 [18:49:48]MH_SAM_APDU [18:49:48]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 E2 0E 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 CC 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 E7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 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 C6 01 00 00 F4 03 04 00 CC 50 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 16 79 03 00 35 04 06 00 7E AD A7 45 F5 50 [18:49:48]Write to MH i2c: E2 00 01 C3 1F 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 E2 0E 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 CC 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 E7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 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 C6 01 00 00 F4 03 04 00 CC 50 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 16 79 03 00 35 04 06 00 7E AD A7 45 F5 50 00 00 1B [18:49:48]Write i2c OK [18:49:48]MH_I2C_Read... [18:49:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:49:48]Read from MH i2c: E2 [18:49:48]MH_I2C_Read... [18:49:48]Read from MH i2c: E2 03 00 [18:49:48]MH_I2C_Read... [18:49:48]Read from MH i2c: E2 03 00 C3 1F 00 90 00 56 [18:49:48]RAPDU: 90 00 [18:49:48]wFMCommunicate OK [18:49:48]wFMCommunicate request_size=4 [18:49:48]MH_SAM_APDU [18:49:48]CAPDU: 80 0D 03 02 [18:49:48]Write to MH i2c: E2 08 00 C4 1F 80 0D 03 02 00 00 00 00 5E [18:49:48]Write i2c OK [18:49:48]MH_I2C_Read... [18:49:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:49:48]Read from MH i2c: E2 [18:49:48]MH_I2C_Read... [18:49:48]Read from MH i2c: E2 0B 00 [18:49:48]MH_I2C_Read... [18:49:48]Read from MH i2c: E2 0B 00 C4 1F 00 D8 C5 6F 27 64 05 E6 2F 90 00 10 [18:49:48]RAPDU: D8 C5 6F 27 64 05 E6 2F 90 00 [18:49:48]wFMCommunicate OK [18:49:48]SAM_PROTO_SignData done [18:49:48]FM_MakeSignedData done [18:49:48]CreateOFDProtocolMessage [18:49:48]wFMCommunicate request_size=4 [18:49:48]MH_SAM_APDU [18:49:48]CAPDU: 80 11 00 00 [18:49:48]Write to MH i2c: E2 08 00 C5 1F 80 11 00 00 00 00 00 00 5E [18:49:48]Write i2c OK [18:49:48]MH_I2C_Read... [18:49:48]OFD Sender: No OFD packet to send [18:49:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:49:48]Read from MH i2c: E2 [18:49:48]MH_I2C_Read... [18:49:48]Read from MH i2c: E2 17 00 [18:49:48]MH_I2C_Read... [18:49:48]Read from MH i2c: E2 17 00 C5 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B5 [18:49:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:49:48]wFMCommunicate OK [18:49:48]CreateOFDProtocolMessage done [18:49:48]OFDSenderStorePacket 227606 [18:49:48]StoreOFDPacket docnum=227606 [18:49:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 B8 D5 00 01 34 FB 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 E2 0E 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 CC 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 E7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 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 C6 01 00 00 F4 03 04 00 CC 50 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 16 79 03 00 35 04 06 00 7E AD A7 45 F5 50 D8 C5 6F 27 64 05 E6 2F [18:49:48]CheckFolder [18:49:48]dirname=/storage/ofd_packets [18:49:48]CheckFolder done [18:49:48]ProducePacketName [18:49:48]name=ofd_packets/00227606 [18:49:48]NVStorageSaveData ofd_packets/00227606 [18:49:48]File name is /storage/ofd_packets/00227606 [18:49:48]Write 294 bytes [18:49:48]NVStorageSaveData done [18:49:48]OFDSenderStorePacket done [18:49:48]KKMCreateOFDPacket done [18:49:48]NVStorageSaveData kkm_last_timestamp [18:49:48]File name is /storage/kkm_last_timestamp [18:49:48]Write 4 bytes [18:49:48]NVStorageSaveData done [18:49:48]ExternCall_PrintAddStr [18:49:48]wPrintStart [18:49:48]Write to MH i2c: 01 00 00 C6 1F E5 [18:49:48]Write i2c OK [18:49:48]MH_I2C_Read... [18:49:48]Read from MH i2c: 01 [18:49:48]MH_I2C_Read... [18:49:48]Read from MH i2c: 01 07 00 [18:49:48]MH_I2C_Read... [18:49:48]Read from MH i2c: 01 07 00 C6 1F 00 00 00 00 00 FF 0F FA [18:49:48]RasterBufferAndPrint [18:49:48]line Счет N : (1)1963242 [18:49:48]line ИНН: 02508201610067 [18:49:48]line Контрольно-Кассовый Чек [18:49:48]line ПРОДАЖА [18:49:48]line ТРК (МРК, ГНК) : 32 [18:49:48]line Товар: 2710124130 [18:49:48]line SU-92 [18:49:48]line 3.810 * 68.40 [18:49:48]line = 260.60 [18:49:48]line НДС 12% НСП 1% [18:49:48]line > о реализуемом товаре [18:49:48]line ОКРУГЛЕНИЕ: -0.60 [18:49:48]line ИТОГО: 260.00 [18:49:48]line Внесено: 260.00 [18:49:48]line СДАЧА: 0.00 [18:49:48]line НСП 1% : 2.31 [18:49:48]line НДС 12% : 27.67 [18:49:48]line Наличными: 260.00 [18:49:48]line Безнал.: 0.00 [18:49:48]line Место: АЗС № 133 "Партнер Нефть" [18:49:48]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:49:48]line СНО: Общий режим [18:49:48]line Чек 454 20.10.2024 18:49 [18:49:48]line Смена: 533 ФФД: 1.0 [18:49:48]line ЗНМ: 0300000091 [18:49:48]line РНМ: 0000000000091685 [18:49:48]line Версия ККМ: 001 [18:49:48]line ФМ: 0000000000871839 [18:49:48]line ФД: 227606 [18:49:48]line ФПД: 139284300821840 [18:49:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T184948&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227606&fm=139284300821840&tin=02508201610067®Number=0000000000091685&sum=26000 [18:49:48]OFD Sender: Processing packet 227606 [packets to send 38, broken 37] [18:49:48]ProducePacketName [18:49:48]name=ofd_packets/00227606 [18:49:48]OFD Sender: To server: pG, [18:49:48]CommunicateWithHost lk.salyk.kg:30040 [18:49:48]ConnectInit lk.salyk.kg [18:49:48]written 0, free lines is 4095 [18:49:49]Connected sock=10 [18:49: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 33 39 08 01 00 00 B8 D5 00 01 34 FB 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 E2 0E 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 CC 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 E7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 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 C6 01 00 00 F4 03 04 00 CC 50 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 16 79 03 00 35 04 06 00 7E AD A7 45 F5 50 D8 C5 6F 27 64 05 E6 2F [18:49: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 33 39 4F 00 00 00 A0 CF 47 00 D4 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 16 79 03 00 F4 03 04 00 CA FB 14 67 B6 04 01 00 00 83 2C 14 99 97 3B BE 47 [18:49:49]CommunicateWithHost err = 0 [18:49:49]CheckOFDResponse [18:49:49]1017 (14) - 77093643461234 [18:49:49]1041 (16) - 0000000000871839 [18:49:49]1040 (4) - 227606 [18:49:49]1012 (4) - 20.10.2024 12:47 [18:49:49]1206 (1) - 0 [18:49:49]OFD Sender: Remove packet 227606 [18:49:49]ProducePacketName [18:49:49]name=ofd_packets/00227606 [18:49:49]NVStorageDeleteData [18:49:49]Write to MH i2c: 01 00 00 F0 1F 0F [18:49:49]Write i2c OK [18:49:49]MH_I2C_Read... [18:49:49]Read from MH i2c: 01 [18:49:49]MH_I2C_Read... [18:49:49]Read from MH i2c: 01 07 00 [18:49:49]MH_I2C_Read... [18:49:49]Read from MH i2c: 01 07 00 F0 1F 00 00 00 00 00 0C 0D 2F [18:49:49]RasterBufferAndPrint [18:49:49]line [18:49:49]line [18:49:49]line [18:49:49]line [18:49:49]line [18:49:49]written 0, free lines is 3346 [18:49:49]process_action close_receipt done [18:49:49]requested_data is exist [18:49:49]produce_requested_data [18:49:49]requested_item fm.sn is exist - process it [18:49:49]wFMCommunicate request_size=4 [18:49:49]MH_SAM_APDU [18:49:49]CAPDU: 80 11 00 00 [18:49:49]Write to MH i2c: E2 08 00 F7 1F 80 11 00 00 00 00 00 00 90 [18:49:49]Write i2c OK [18:49:49]MH_I2C_Read... [18:49:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:49:49]Read from MH i2c: E2 [18:49:49]MH_I2C_Read... [18:49:49]Read from MH i2c: E2 17 00 [18:49:49]MH_I2C_Read... [18:49:49]Read from MH i2c: E2 17 00 F7 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E7 [18:49:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:49:49]wFMCommunicate OK [18:49:49]requested_item fd.num is exist - process it [18:49:49]SAM_PROTO_GetFieldsCounters [18:49:49]wFMCommunicate request_size=4 [18:49:49]MH_SAM_APDU [18:49:49]CAPDU: 80 13 00 00 [18:49:49]Write to MH i2c: E2 08 00 F8 1F 80 13 00 00 00 00 00 00 93 [18:49:49]Write i2c OK [18:49:49]MH_I2C_Read... [18:49:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:49:49]Read from MH i2c: E2 [18:49:49]MH_I2C_Read... [18:49:49]Read from MH i2c: E2 62 00 [18:49:49]MH_I2C_Read... [18:49:49]Read from MH i2c: E2 62 00 F8 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 16 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 C6 01 00 00 5E 04 04 00 C6 01 00 00 57 04 04 00 C7 01 00 00 19 04 04 00 00 00 00 00 90 00 BA [18:49: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 16 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 C6 01 00 00 5E 04 04 00 C6 01 00 00 57 04 04 00 C7 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:49:49]wFMCommunicate OK [18:49:49]SAM_PROTO_GetFieldsCounters done [18:49:49]requested_item shift.num is exist - process it [18:49:49]requested_item shift.opened is exist - process it [18:49:49]req_shift_opened [18:49:49]FM_GetShiftState [18:49:49]SAM_PROTO_GetShiftState [18:49:49]wFMCommunicate request_size=4 [18:49:49]MH_SAM_APDU [18:49:49]CAPDU: 80 13 01 00 [18:49:49]Write to MH i2c: E2 08 00 F9 1F 80 13 01 00 00 00 00 00 95 [18:49:49]Write i2c OK [18:49:49]MH_I2C_Read... [18:49:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:49:49]Read from MH i2c: E2 [18:49:49]MH_I2C_Read... [18:49:49]Read from MH i2c: E2 0E 00 [18:49:49]MH_I2C_Read... [18:49:49]Read from MH i2c: E2 0E 00 F9 1F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 AF [18:49:49]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:49:49]wFMCommunicate OK [18:49:49]SAM_PROTO_GetShiftState done [18:49:49]FM_GetShiftState done [18:49:49]req_shift_opened done [18:49:49]requested_item shift.open_date is exist - process it [18:49:49]req_shift_open_date [18:49:49]req_shift_open_date done [18:49:49]produce_requested_data done [18:49:49]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227606,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [18:49:49]process_action_free close_receipt [18:49:49]json_value_free [18:49:49]json_value_free done [18:49:49]process_json_proto returns [18:49:49]Send response to host [18:49:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227606,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [18:49:49]free response buf [18:49:49]execute_script done [18:49:49]execute_script returns [18:49:49]free content buf [18:49:49]Sock 9.Close socket [18:49:49]Sock 9.Thread stoped [18:49:49]OFD Sender: No OFD packet to send [18:49:54]OFD Sender: No OFD packet to send [18:49:59]OFD Sender: No OFD packet to send [18:50:04]OFD Sender: No OFD packet to send [18:50:09]OFD Sender: No OFD packet to send [18:50:13]accept exits with 7 [18:50:13]New connection [18:50:13]New thread 3067362660 created [18:50:13]Thread 3067219300 joined [18:50:13]Waiting for new connection... [18:50:13] Sock 7.Parse request [18:50:13]Sock 7.Check first char [18:50:13]Sock 7.First char is OK [18:50:13]request: POST /json_proto HTTP/1.0 [18:50:13]Method: POST [18:50:13]URL: /json_proto [18:50:13]Method is POST - this is cgi request [18:50:13]url: /json_proto [18:50:13]query_string will be loaded in cgi processing [18:50:13]execute_cgi json_proto POST (null) [18:50:13]execute_cgi path=json_proto method=POST [18:50:13]POST find Content-Length [18:50:13]Host: 172.17.44.195:8080 [18:50:13]Content-Length: 659 [18:50:13]Content-Type: application/json [18:50:13] [18:50:13]POST finish read [18:50:13]Found Content-Length = 659 [18:50:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963243", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 5.850, "sum" : 400.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:50:13]execute_script... [18:50: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)1963243", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 5.850, "sum" : 400.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:50:13]POST & json_proto [18:50:13]process_json_proto [18:50:13]json parsed OK: [18:50:13]protocol is kg_v1.0 [18:50:13]action value=close_receipt [18:50:13]process_action close_receipt [18:50:13]cmd_close_receipt [18:50:13]MH_GetDate [18:50:13]Write to MH i2c: F0 00 00 FA 1F 08 [18:50:13]Write i2c OK [18:50:13]MH_I2C_Read... [18:50:13]Read from MH i2c: F0 [18:50:13]MH_I2C_Read... [18:50:13]Read from MH i2c: F0 09 00 [18:50:13]MH_I2C_Read... [18:50:13]Read from MH i2c: F0 09 00 FA 1F 00 E7 50 15 67 82 C9 CF 66 44 [18:50:13]GetLastDocTimeStamp 1729450188 [18:50:13]current date 1729450215 [18:50:13]FM_GetShiftState [18:50:13]SAM_PROTO_GetShiftState [18:50:13]wFMCommunicate request_size=4 [18:50:13]MH_SAM_APDU [18:50:13]CAPDU: 80 13 01 00 [18:50:13]Write to MH i2c: E2 08 00 FB 1F 80 13 01 00 00 00 00 00 97 [18:50:13]Write i2c OK [18:50:13]MH_I2C_Read... [18:50:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:50:13]Read from MH i2c: E2 [18:50:13]MH_I2C_Read... [18:50:13]Read from MH i2c: E2 0E 00 [18:50:13]MH_I2C_Read... [18:50:13]Read from MH i2c: E2 0E 00 FB 1F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 B1 [18:50:13]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:50:13]wFMCommunicate OK [18:50:13]SAM_PROTO_GetShiftState done [18:50:13]FM_GetShiftState done [18:50:13]opened in 1729383750 [18:50:13]opened+sec_in_day 1729470150 [18:50:13]quantity*price = 40014 [18:50:13]sum+1 = 40015 [18:50:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.49 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 455 20.10.2024 18:50 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227607 ФПД: 68838028728622 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T185015&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227607&fm=68838028728622&tin=02508201610067®Number=0000000000091685&sum=40000 [18:50:14]StoreToDocumentArchive [18:50:14]shift 533 fd 227607 [18:50:14]save to /storage/0533/doc_00227607 [18:50:14]save last doc name /storage/0533/doc_00227607 to /storage/kkm_last_doc_name [18:50:14]OFD Sender: No OFD packet to send [18:50:14]save OK [18:50:14]Clear old archive folders... [18:50:14]ProcessDocumentItem done err = 0, tmpTLVsize=244 [18:50:14]tlvbuf is 00E5A2B0 [18:50:14]SAM_PROTO_ClearQueue [18:50:14]wFMCommunicate request_size=4 [18:50:14]MH_SAM_APDU [18:50:14]CAPDU: 80 09 00 00 [18:50:14]Write to MH i2c: E2 08 00 08 20 80 09 00 00 00 00 00 00 9A [18:50:14]Write i2c OK [18:50:14]MH_I2C_Read... [18:50:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:50:14]Read from MH i2c: E2 [18:50:14]MH_I2C_Read... [18:50:14]Read from MH i2c: E2 03 00 [18:50:14]MH_I2C_Read... [18:50:14]Read from MH i2c: E2 03 00 08 20 00 90 00 9C [18:50:14]RAPDU: 90 00 [18:50:14]wFMCommunicate OK [18:50:14]SAM_PROTO_ClearQueue done [18:50:14]KKMCreateOFDPacket [18:50:14]OFDProtocolAddRootSTLVToBuf [18:50:14]FM_MakeSignedData [18:50:14]FM_MakeSignedData [18:50:14]SAM_PROTO_SignData [18:50:14]wFMCommunicate request_size=4 [18:50:14]MH_SAM_APDU [18:50:14]CAPDU: 80 0D 01 02 [18:50:14]Write to MH i2c: E2 08 00 09 20 80 0D 01 02 00 00 00 00 A2 [18:50:14]Write i2c OK [18:50:14]MH_I2C_Read... [18:50:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:50:14]Read from MH i2c: E2 [18:50:14]MH_I2C_Read... [18:50:14]Read from MH i2c: E2 03 00 [18:50:14]MH_I2C_Read... [18:50:14]Read from MH i2c: E2 03 00 09 20 00 90 00 9D [18:50:14]RAPDU: 90 00 [18:50:14]wFMCommunicate OK [18:50:14]wFMCommunicate request_size=253 [18:50:14]MH_SAM_APDU [18:50:14]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 10 00 00 00 00 07 04 06 00 40 9C 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 01 00 00 F4 03 04 00 E7 50 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 17 79 03 00 35 04 06 00 3E 9B 9A 3F D9 2E [18:50:14]Write to MH i2c: E2 00 01 0A 20 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 10 00 00 00 00 07 04 06 00 40 9C 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 01 00 00 F4 03 04 00 E7 50 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 17 79 03 00 35 04 06 00 3E 9B 9A 3F D9 2E 00 00 B0 [18:50:14]Write i2c OK [18:50:14]MH_I2C_Read... [18:50:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:50:15]Read from MH i2c: E2 [18:50:15]MH_I2C_Read... [18:50:15]Read from MH i2c: E2 03 00 [18:50:15]MH_I2C_Read... [18:50:15]Read from MH i2c: E2 03 00 0A 20 00 90 00 9E [18:50:15]RAPDU: 90 00 [18:50:15]wFMCommunicate OK [18:50:15]wFMCommunicate request_size=4 [18:50:15]MH_SAM_APDU [18:50:15]CAPDU: 80 0D 03 02 [18:50:15]Write to MH i2c: E2 08 00 0B 20 80 0D 03 02 00 00 00 00 A6 [18:50:15]Write i2c OK [18:50:15]MH_I2C_Read... [18:50:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:50:15]Read from MH i2c: E2 [18:50:15]MH_I2C_Read... [18:50:15]Read from MH i2c: E2 0B 00 [18:50:15]MH_I2C_Read... [18:50:15]Read from MH i2c: E2 0B 00 0B 20 00 02 B2 42 C4 19 6A BC 2E 90 00 CE [18:50:15]RAPDU: 02 B2 42 C4 19 6A BC 2E 90 00 [18:50:15]wFMCommunicate OK [18:50:15]SAM_PROTO_SignData done [18:50:15]FM_MakeSignedData done [18:50:15]CreateOFDProtocolMessage [18:50:15]wFMCommunicate request_size=4 [18:50:15]MH_SAM_APDU [18:50:15]CAPDU: 80 11 00 00 [18:50:15]Write to MH i2c: E2 08 00 0C 20 80 11 00 00 00 00 00 00 A6 [18:50:15]Write i2c OK [18:50:15]MH_I2C_Read... [18:50:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:50:15]Read from MH i2c: E2 [18:50:15]MH_I2C_Read... [18:50:15]Read from MH i2c: E2 17 00 [18:50:15]MH_I2C_Read... [18:50:15]Read from MH i2c: E2 17 00 0C 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 FD [18:50:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:50:15]wFMCommunicate OK [18:50:15]CreateOFDProtocolMessage done [18:50:15]OFDSenderStorePacket 227607 [18:50:15]StoreOFDPacket docnum=227607 [18:50:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 84 FB 00 01 FF 04 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 10 00 00 00 00 07 04 06 00 40 9C 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 01 00 00 F4 03 04 00 E7 50 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 17 79 03 00 35 04 06 00 3E 9B 9A 3F D9 2E 02 B2 42 C4 19 6A BC 2E [18:50:15]CheckFolder [18:50:15]dirname=/storage/ofd_packets [18:50:15]CheckFolder done [18:50:15]ProducePacketName [18:50:15]name=ofd_packets/00227607 [18:50:15]NVStorageSaveData ofd_packets/00227607 [18:50:15]File name is /storage/ofd_packets/00227607 [18:50:15]Write 294 bytes [18:50:15]NVStorageSaveData done [18:50:15]OFDSenderStorePacket done [18:50:15]KKMCreateOFDPacket done [18:50:15]NVStorageSaveData kkm_last_timestamp [18:50:15]File name is /storage/kkm_last_timestamp [18:50:15]Write 4 bytes [18:50:15]NVStorageSaveData done [18:50:15]ExternCall_PrintAddStr [18:50:15]wPrintStart [18:50:15]Write to MH i2c: 01 00 00 0D 20 2D [18:50:15]Write i2c OK [18:50:15]MH_I2C_Read... [18:50:15]Read from MH i2c: 01 [18:50:15]MH_I2C_Read... [18:50:15]Read from MH i2c: 01 07 00 [18:50:15]MH_I2C_Read... [18:50:15]Read from MH i2c: 01 07 00 0D 20 00 00 00 00 00 FF 0F 42 [18:50:15]RasterBufferAndPrint [18:50:15]line Счет N : (1)1963243 [18:50:15]line ИНН: 02508201610067 [18:50:15]line Контрольно-Кассовый Чек [18:50:15]line ПРОДАЖА [18:50:15]line ТРК (МРК, ГНК) : 42 [18:50:15]line Товар: 2710124130 [18:50:15]line SU-92 [18:50:15]line 5.850 * 68.40 [18:50:15]line = 400.14 [18:50:15]line НДС 12% НСП 1% [18:50:15]line > о реализуемом товаре [18:50:15]line ОКРУГЛЕНИЕ: -0.14 [18:50:15]line ИТОГО: 400.00 [18:50:15]line Внесено: 400.00 [18:50:15]line СДАЧА: 0.00 [18:50:15]line НСП 1% : 3.54 [18:50:15]line НДС 12% : 42.49 [18:50:15]line Наличными: 400.00 [18:50:15]line Безнал.: 0.00 [18:50:15]line Место: АЗС № 133 "Партнер Нефть" [18:50:15]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:50:15]line СНО: Общий режим [18:50:15]line Чек 455 20.10.2024 18:50 [18:50:15]line Смена: 533 ФФД: 1.0 [18:50:15]line ЗНМ: 0300000091 [18:50:15]line РНМ: 0000000000091685 [18:50:15]line Версия ККМ: 001 [18:50:15]line ФМ: 0000000000871839 [18:50:15]line ФД: 227607 [18:50:15]line ФПД: 68838028728622 [18:50:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T185015&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227607&fm=68838028728622&tin=02508201610067®Number=0000000000091685&sum=40000 [18:50:15]OFD Sender: Processing packet 227607 [packets to send 38, broken 37] [18:50:15]ProducePacketName [18:50:15]name=ofd_packets/00227607 [18:50:15]OFD Sender: To server: pG, [18:50:15]CommunicateWithHost lk.salyk.kg:30040 [18:50:15]ConnectInit lk.salyk.kg [18:50:15]written 0, free lines is 4095 [18:50:15]Connected sock=10 [18:50: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 33 39 08 01 00 00 84 FB 00 01 FF 04 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 10 00 00 00 00 07 04 06 00 40 9C 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 01 00 00 F4 03 04 00 E7 50 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 17 79 03 00 35 04 06 00 3E 9B 9A 3F D9 2E 02 B2 42 C4 19 6A BC 2E [18:50:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 02 1A 47 00 7E 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 33 39 10 04 04 00 17 79 03 00 F4 03 04 00 E5 FB 14 67 B6 04 01 00 00 EF 31 5F C9 51 A9 11 38 [18:50:15]CommunicateWithHost err = 0 [18:50:15]CheckOFDResponse [18:50:15]1017 (14) - 77093643461234 [18:50:15]1041 (16) - 0000000000871839 [18:50:15]1040 (4) - 227607 [18:50:15]1012 (4) - 20.10.2024 12:47 [18:50:15]1206 (1) - 0 [18:50:15]OFD Sender: Remove packet 227607 [18:50:15]ProducePacketName [18:50:15]name=ofd_packets/00227607 [18:50:15]NVStorageDeleteData [18:50:16]Write to MH i2c: 01 00 00 37 20 57 [18:50:16]Write i2c OK [18:50:16]MH_I2C_Read... [18:50:16]Read from MH i2c: 01 [18:50:16]MH_I2C_Read... [18:50:16]Read from MH i2c: 01 07 00 [18:50:16]MH_I2C_Read... [18:50:16]Read from MH i2c: 01 07 00 37 20 00 00 00 00 00 FC 0C 66 [18:50:16]RasterBufferAndPrint [18:50:16]line [18:50:16]line [18:50:16]line [18:50:16]line [18:50:16]line [18:50:16]written 0, free lines is 3330 [18:50:16]process_action close_receipt done [18:50:16]requested_data is exist [18:50:16]produce_requested_data [18:50:16]requested_item fm.sn is exist - process it [18:50:16]wFMCommunicate request_size=4 [18:50:16]MH_SAM_APDU [18:50:16]CAPDU: 80 11 00 00 [18:50:16]Write to MH i2c: E2 08 00 3E 20 80 11 00 00 00 00 00 00 D8 [18:50:16]Write i2c OK [18:50:16]MH_I2C_Read... [18:50:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:50:16]Read from MH i2c: E2 [18:50:16]MH_I2C_Read... [18:50:16]Read from MH i2c: E2 17 00 [18:50:16]MH_I2C_Read... [18:50:16]Read from MH i2c: E2 17 00 3E 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 2F [18:50:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:50:16]wFMCommunicate OK [18:50:16]requested_item fd.num is exist - process it [18:50:16]SAM_PROTO_GetFieldsCounters [18:50:16]wFMCommunicate request_size=4 [18:50:16]MH_SAM_APDU [18:50:16]CAPDU: 80 13 00 00 [18:50:16]Write to MH i2c: E2 08 00 3F 20 80 13 00 00 00 00 00 00 DB [18:50:16]Write i2c OK [18:50:16]MH_I2C_Read... [18:50:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:50:16]Read from MH i2c: E2 [18:50:16]MH_I2C_Read... [18:50:16]Read from MH i2c: E2 62 00 [18:50:16]MH_I2C_Read... [18:50:16]Read from MH i2c: E2 62 00 3F 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 17 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 C7 01 00 00 5E 04 04 00 C7 01 00 00 57 04 04 00 C8 01 00 00 19 04 04 00 00 00 00 00 90 00 06 [18:50:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 17 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 C7 01 00 00 5E 04 04 00 C7 01 00 00 57 04 04 00 C8 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:50:16]wFMCommunicate OK [18:50:16]SAM_PROTO_GetFieldsCounters done [18:50:16]requested_item shift.num is exist - process it [18:50:16]requested_item shift.opened is exist - process it [18:50:16]req_shift_opened [18:50:16]FM_GetShiftState [18:50:16]SAM_PROTO_GetShiftState [18:50:16]wFMCommunicate request_size=4 [18:50:16]MH_SAM_APDU [18:50:16]CAPDU: 80 13 01 00 [18:50:16]Write to MH i2c: E2 08 00 40 20 80 13 01 00 00 00 00 00 DD [18:50:16]Write i2c OK [18:50:16]MH_I2C_Read... [18:50:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:50:16]Read from MH i2c: E2 [18:50:16]MH_I2C_Read... [18:50:16]Read from MH i2c: E2 0E 00 [18:50:16]MH_I2C_Read... [18:50:16]Read from MH i2c: E2 0E 00 40 20 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 F7 [18:50:16]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:50:16]wFMCommunicate OK [18:50:16]SAM_PROTO_GetShiftState done [18:50:16]FM_GetShiftState done [18:50:16]req_shift_opened done [18:50:16]requested_item shift.open_date is exist - process it [18:50:16]req_shift_open_date [18:50:16]req_shift_open_date done [18:50:16]produce_requested_data done [18:50:16]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227607,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [18:50:16]process_action_free close_receipt [18:50:16]json_value_free [18:50:16]json_value_free done [18:50:16]process_json_proto returns [18:50:16]Send response to host [18:50:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227607,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [18:50:16]free response buf [18:50:16]execute_script done [18:50:16]execute_script returns [18:50:16]free content buf [18:50:16]Sock 7.Close socket [18:50:16]Sock 7.Thread stoped [18:50:16]OFD Sender: No OFD packet to send [18:50:21]OFD Sender: No OFD packet to send [18:50:26]OFD Sender: No OFD packet to send [18:50:31]OFD Sender: No OFD packet to send [18:50:36]OFD Sender: No OFD packet to send [18:50:41]OFD Sender: No OFD packet to send [18:50:46]OFD Sender: No OFD packet to send [18:50:51]OFD Sender: No OFD packet to send [18:50:56]OFD Sender: No OFD packet to send [18:51:01]OFD Sender: No OFD packet to send [18:51:06]OFD Sender: No OFD packet to send [18:51:11]OFD Sender: No OFD packet to send [18:51:16]OFD Sender: No OFD packet to send [18:51:21]OFD Sender: No OFD packet to send [18:51:26]OFD Sender: No OFD packet to send [18:51:31]OFD Sender: No OFD packet to send [18:51:36]OFD Sender: No OFD packet to send [18:51:41]OFD Sender: No OFD packet to send [18:51:46]OFD Sender: No OFD packet to send [18:51:51]OFD Sender: No OFD packet to send [18:51:56]OFD Sender: No OFD packet to send [18:51:58]accept exits with 9 [18:51:58]New connection [18:51:58]New thread 3067219300 created [18:51:58]Thread 3067362660 joined [18:51:58]Waiting for new connection... [18:51:58] Sock 9.Parse request [18:51:58]Sock 9.Check first char [18:51:58]Sock 9.First char is OK [18:51:58]request: POST /json_proto HTTP/1.0 [18:51:58]Method: POST [18:51:58]URL: /json_proto [18:51:58]Method is POST - this is cgi request [18:51:58]url: /json_proto [18:51:58]query_string will be loaded in cgi processing [18:51:58]execute_cgi json_proto POST (null) [18:51:58]execute_cgi path=json_proto method=POST [18:51:58]POST find Content-Length [18:51:58]Host: 172.17.44.195:8080 [18:51:58]Content-Length: 680 [18:51:58]Content-Type: application/json [18:51:58] [18:51:58]POST finish read [18:51:58]Found Content-Length = 680 [18:51:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963244", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 38.260, "sum" : 2915.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2915.00, "total" : 2915.00, "payments": [ { "type": 0, "sum" : 2915.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:51:58]execute_script... [18:51: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)1963244", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 38.260, "sum" : 2915.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2915.00, "total" : 2915.00, "payments": [ { "type": 0, "sum" : 2915.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:51:58]POST & json_proto [18:51:58]process_json_proto [18:51:58]json parsed OK: [18:51:58]protocol is kg_v1.0 [18:51:58]action value=close_receipt [18:51:58]process_action close_receipt [18:51:58]cmd_close_receipt [18:51:58]MH_GetDate [18:51:58]Write to MH i2c: F0 00 00 41 20 50 [18:51:58]Write i2c OK [18:51:58]MH_I2C_Read... [18:51:58]Read from MH i2c: F0 [18:51:58]MH_I2C_Read... [18:51:58]Read from MH i2c: F0 09 00 [18:51:58]MH_I2C_Read... [18:51:58]Read from MH i2c: F0 09 00 41 20 00 50 51 15 67 82 C9 CF 66 F6 [18:51:58]GetLastDocTimeStamp 1729450215 [18:51:58]current date 1729450320 [18:51:58]FM_GetShiftState [18:51:58]SAM_PROTO_GetShiftState [18:51:58]wFMCommunicate request_size=4 [18:51:58]MH_SAM_APDU [18:51:58]CAPDU: 80 13 01 00 [18:51:58]Write to MH i2c: E2 08 00 42 20 80 13 01 00 00 00 00 00 DF [18:51:58]Write i2c OK [18:51:58]MH_I2C_Read... [18:51:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:58]Read from MH i2c: E2 [18:51:58]MH_I2C_Read... [18:51:58]Read from MH i2c: E2 0E 00 [18:51:58]MH_I2C_Read... [18:51:58]Read from MH i2c: E2 0E 00 42 20 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 F9 [18:51:58]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:51:58]wFMCommunicate OK [18:51:58]SAM_PROTO_GetShiftState done [18:51:58]FM_GetShiftState done [18:51:58]opened in 1729383750 [18:51:58]opened+sec_in_day 1729470150 [18:51:58]quantity*price = 291541 [18:51:58]sum+1 = 291542 [18:51:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 2915.00 Внесено: 2915.00 СДАЧА: 0.00 НСП 1% : 25.80 НДС 12% : 309.60 Наличными: 2915.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 456 20.10.2024 18:52 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227608 ФПД: 33155125852310 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T185200&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227608&fm=33155125852310&tin=02508201610067®Number=0000000000091685&sum=291500 [18:51:59]StoreToDocumentArchive [18:51:59]shift 533 fd 227608 [18:51:59]save to /storage/0533/doc_00227608 [18:51:59]save last doc name /storage/0533/doc_00227608 to /storage/kkm_last_doc_name [18:51:59]save OK [18:51:59]Clear old archive folders... [18:51:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:51:59]tlvbuf is 00E5AD90 [18:51:59]SAM_PROTO_ClearQueue [18:51:59]wFMCommunicate request_size=4 [18:51:59]MH_SAM_APDU [18:51:59]CAPDU: 80 09 00 00 [18:51:59]Write to MH i2c: E2 08 00 4F 20 80 09 00 00 00 00 00 00 E1 [18:51:59]Write i2c OK [18:51:59]MH_I2C_Read... [18:51:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:51:59]Read from MH i2c: E2 [18:51:59]MH_I2C_Read... [18:51:59]Read from MH i2c: E2 03 00 [18:51:59]MH_I2C_Read... [18:51:59]Read from MH i2c: E2 03 00 4F 20 00 90 00 E3 [18:51:59]RAPDU: 90 00 [18:51:59]wFMCommunicate OK [18:51:59]SAM_PROTO_ClearQueue done [18:51:59]KKMCreateOFDPacket [18:51:59]OFDProtocolAddRootSTLVToBuf [18:51:59]FM_MakeSignedData [18:51:59]FM_MakeSignedData [18:51:59]SAM_PROTO_SignData [18:51:59]wFMCommunicate request_size=4 [18:51:59]MH_SAM_APDU [18:51:59]CAPDU: 80 0D 01 02 [18:51:59]Write to MH i2c: E2 08 00 50 20 80 0D 01 02 00 00 00 00 E9 [18:51:59]Write i2c OK [18:51:59]MH_I2C_Read... [18:51:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:51:59]Read from MH i2c: E2 [18:51:59]MH_I2C_Read... [18:51:59]Read from MH i2c: E2 03 00 [18:51:59]MH_I2C_Read... [18:51:59]Read from MH i2c: E2 03 00 50 20 00 90 00 E4 [18:51:59]RAPDU: 90 00 [18:51:59]wFMCommunicate OK [18:51:59]wFMCommunicate request_size=255 [18:51:59]MH_SAM_APDU [18:51: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 74 95 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D5 72 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 72 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 78 00 00 00 00 07 04 06 00 AC 72 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 01 00 00 F4 03 04 00 50 51 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 18 79 03 00 35 04 06 00 1E 27 87 7F [18:51:59]Write to MH i2c: E2 02 01 51 20 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 95 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D5 72 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 72 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 78 00 00 00 00 07 04 06 00 AC 72 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 01 00 00 F4 03 04 00 50 51 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 18 79 03 00 35 04 06 00 1E 27 87 7F 00 00 29 [18:51:59]Write i2c OK [18:51:59]MH_I2C_Read... [18:52:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:52:00]Read from MH i2c: E2 [18:52:00]MH_I2C_Read... [18:52:00]Read from MH i2c: E2 03 00 [18:52:00]MH_I2C_Read... [18:52:00]Read from MH i2c: E2 03 00 51 20 00 90 00 E5 [18:52:00]RAPDU: 90 00 [18:52:00]wFMCommunicate OK [18:52:00]wFMCommunicate request_size=7 [18:52:00]MH_SAM_APDU [18:52:00]CAPDU: 80 0D 02 02 02 B8 96 [18:52:00]Write to MH i2c: E2 0A 00 52 20 80 0D 02 02 02 00 B8 96 00 00 3E [18:52:00]Write i2c OK [18:52:00]MH_I2C_Read... [18:52:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:52:00]Read from MH i2c: E2 [18:52:00]MH_I2C_Read... [18:52:00]Read from MH i2c: E2 03 00 [18:52:00]MH_I2C_Read... [18:52:00]Read from MH i2c: E2 03 00 52 20 00 90 00 E6 [18:52:00]RAPDU: 90 00 [18:52:00]wFMCommunicate OK [18:52:00]wFMCommunicate request_size=4 [18:52:00]MH_SAM_APDU [18:52:00]CAPDU: 80 0D 03 02 [18:52:00]Write to MH i2c: E2 08 00 53 20 80 0D 03 02 00 00 00 00 EE [18:52:00]Write i2c OK [18:52:00]MH_I2C_Read... [18:52:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:52:00]Read from MH i2c: E2 [18:52:00]MH_I2C_Read... [18:52:00]Read from MH i2c: E2 0B 00 [18:52:00]MH_I2C_Read... [18:52:00]Read from MH i2c: E2 0B 00 53 20 00 68 CC 5B B6 0F 63 A9 3A 90 00 89 [18:52:00]RAPDU: 68 CC 5B B6 0F 63 A9 3A 90 00 [18:52:00]wFMCommunicate OK [18:52:00]SAM_PROTO_SignData done [18:52:00]FM_MakeSignedData done [18:52:00]CreateOFDProtocolMessage [18:52:00]wFMCommunicate request_size=4 [18:52:00]MH_SAM_APDU [18:52:00]CAPDU: 80 11 00 00 [18:52:00]Write to MH i2c: E2 08 00 54 20 80 11 00 00 00 00 00 00 EE [18:52:00]Write i2c OK [18:52:00]MH_I2C_Read... [18:52:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:52:00]Read from MH i2c: E2 [18:52:00]MH_I2C_Read... [18:52:00]Read from MH i2c: E2 17 00 [18:52:00]MH_I2C_Read... [18:52:00]Read from MH i2c: E2 17 00 54 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 45 [18:52:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:52:00]wFMCommunicate OK [18:52:00]CreateOFDProtocolMessage done [18:52:00]OFDSenderStorePacket 227608 [18:52:00]StoreOFDPacket docnum=227608 [18:52:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 2F 31 04 01 34 2D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 95 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D5 72 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 72 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 78 00 00 00 00 07 04 06 00 AC 72 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 01 00 00 F4 03 04 00 50 51 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 18 79 03 00 35 04 06 00 1E 27 87 7F B8 96 68 CC 5B B6 0F 63 A9 3A [18:52:00]CheckFolder [18:52:00]dirname=/storage/ofd_packets [18:52:00]CheckFolder done [18:52:00]ProducePacketName [18:52:00]name=ofd_packets/00227608 [18:52:00]NVStorageSaveData ofd_packets/00227608 [18:52:00]File name is /storage/ofd_packets/00227608 [18:52:00]Write 298 bytes [18:52:00]NVStorageSaveData done [18:52:00]OFDSenderStorePacket done [18:52:00]KKMCreateOFDPacket done [18:52:00]NVStorageSaveData kkm_last_timestamp [18:52:00]File name is /storage/kkm_last_timestamp [18:52:00]Write 4 bytes [18:52:00]NVStorageSaveData done [18:52:00]ExternCall_PrintAddStr [18:52:00]wPrintStart [18:52:00]Write to MH i2c: 01 00 00 55 20 75 [18:52:00]Write i2c OK [18:52:00]MH_I2C_Read... [18:52:00]Read from MH i2c: 01 [18:52:00]MH_I2C_Read... [18:52:00]Read from MH i2c: 01 07 00 [18:52:00]MH_I2C_Read... [18:52:00]Read from MH i2c: 01 07 00 55 20 00 00 00 00 00 FF 0F 8A [18:52:00]RasterBufferAndPrint [18:52:00]line Счет N : (1)1963244 [18:52:00]line ИНН: 02508201610067 [18:52:00]line Контрольно-Кассовый Чек [18:52:00]line ПРОДАЖА [18:52:00]line ТРК (МРК, ГНК) : 61 [18:52:00]line Товар: 2710194210 [18:52:00]line ДТ-К-5 [18:52:00]line 38.260 * 76.20 [18:52:00]line = 2915.41 [18:52:00]line НДС 12% НСП 1% [18:52:00]line > о реализуемом товаре [18:52:00]line ОКРУГЛЕНИЕ: -0.41 [18:52:00]line ИТОГО: 2915.00 [18:52:00]line Внесено: 2915.00 [18:52:00]line СДАЧА: 0.00 [18:52:00]line НСП 1% : 25.80 [18:52:00]line НДС 12% : 309.60 [18:52:00]line Наличными: 2915.00 [18:52:00]line Безнал.: 0.00 [18:52:00]line Место: АЗС № 133 "Партнер Нефть" [18:52:00]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:52:00]line СНО: Общий режим [18:52:00]line Чек 456 20.10.2024 18:52 [18:52:00]line Смена: 533 ФФД: 1.0 [18:52:00]line ЗНМ: 0300000091 [18:52:00]line РНМ: 0000000000091685 [18:52:00]line Версия ККМ: 001 [18:52:00]line ФМ: 0000000000871839 [18:52:00]line ФД: 227608 [18:52:00]line ФПД: 33155125852310 [18:52:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T185200&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227608&fm=33155125852310&tin=02508201610067®Number=0000000000091685&sum=291500 [18:52:00]OFD Sender: Processing packet 227608 [packets to send 38, broken 37] [18:52:00]ProducePacketName [18:52:00]name=ofd_packets/00227608 [18:52:00]OFD Sender: To server: pG, [18:52:00]CommunicateWithHost lk.salyk.kg:30040 [18:52:00]ConnectInit lk.salyk.kg [18:52:00]written 0, free lines is 4095 [18:52:00]Connected sock=10 [18:52: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 33 39 0C 01 00 00 2F 31 04 01 34 2D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 95 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D5 72 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 72 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 78 00 00 00 00 07 04 06 00 AC 72 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 01 00 00 F4 03 04 00 50 51 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 18 79 03 00 35 04 06 00 1E 27 87 7F B8 96 68 CC 5B B6 0F 63 A9 3A [18:52: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 33 39 4F 00 00 00 CD 10 47 00 E0 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 18 79 03 00 F4 03 04 00 4E FC 14 67 B6 04 01 00 00 63 8E C5 E9 00 81 01 E5 [18:52:01]CommunicateWithHost err = 0 [18:52:01]CheckOFDResponse [18:52:01]1017 (14) - 77093643461234 [18:52:01]1041 (16) - 0000000000871839 [18:52:01]1040 (4) - 227608 [18:52:01]1012 (4) - 20.10.2024 12:49 [18:52:01]1206 (1) - 0 [18:52:01]OFD Sender: Remove packet 227608 [18:52:01]ProducePacketName [18:52:01]name=ofd_packets/00227608 [18:52:01]NVStorageDeleteData [18:52:01]Write to MH i2c: 01 00 00 7F 20 9F [18:52:01]Write i2c OK [18:52:01]MH_I2C_Read... [18:52:01]Read from MH i2c: 01 [18:52:01]MH_I2C_Read... [18:52:01]Read from MH i2c: 01 07 00 [18:52:01]MH_I2C_Read... [18:52:01]Read from MH i2c: 01 07 00 7F 20 00 00 00 00 00 0D 0D C0 [18:52:01]RasterBufferAndPrint [18:52:01]line [18:52:01]line [18:52:01]line [18:52:01]line [18:52:01]line [18:52:01]written 0, free lines is 3347 [18:52:01]process_action close_receipt done [18:52:01]requested_data is exist [18:52:01]produce_requested_data [18:52:01]requested_item fm.sn is exist - process it [18:52:01]wFMCommunicate request_size=4 [18:52:01]MH_SAM_APDU [18:52:01]CAPDU: 80 11 00 00 [18:52:01]Write to MH i2c: E2 08 00 86 20 80 11 00 00 00 00 00 00 20 [18:52:01]Write i2c OK [18:52:01]MH_I2C_Read... [18:52:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:52:01]Read from MH i2c: E2 [18:52:01]MH_I2C_Read... [18:52:01]Read from MH i2c: E2 17 00 [18:52:01]MH_I2C_Read... [18:52:01]Read from MH i2c: E2 17 00 86 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 77 [18:52:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:52:01]wFMCommunicate OK [18:52:01]requested_item fd.num is exist - process it [18:52:01]SAM_PROTO_GetFieldsCounters [18:52:01]wFMCommunicate request_size=4 [18:52:01]MH_SAM_APDU [18:52:01]CAPDU: 80 13 00 00 [18:52:01]Write to MH i2c: E2 08 00 87 20 80 13 00 00 00 00 00 00 23 [18:52:01]Write i2c OK [18:52:01]MH_I2C_Read... [18:52:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:52:01]Read from MH i2c: E2 [18:52:01]MH_I2C_Read... [18:52:01]Read from MH i2c: E2 62 00 [18:52:01]MH_I2C_Read... [18:52:01]Read from MH i2c: E2 62 00 87 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 18 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 C8 01 00 00 5E 04 04 00 C8 01 00 00 57 04 04 00 C9 01 00 00 19 04 04 00 00 00 00 00 90 00 52 [18:52: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 18 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 C8 01 00 00 5E 04 04 00 C8 01 00 00 57 04 04 00 C9 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:52:01]wFMCommunicate OK [18:52:01]SAM_PROTO_GetFieldsCounters done [18:52:01]requested_item shift.num is exist - process it [18:52:01]requested_item shift.opened is exist - process it [18:52:01]req_shift_opened [18:52:01]FM_GetShiftState [18:52:01]SAM_PROTO_GetShiftState [18:52:01]wFMCommunicate request_size=4 [18:52:01]MH_SAM_APDU [18:52:01]CAPDU: 80 13 01 00 [18:52:01]Write to MH i2c: E2 08 00 88 20 80 13 01 00 00 00 00 00 25 [18:52:01]Write i2c OK [18:52:01]MH_I2C_Read... [18:52:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:52:01]Read from MH i2c: E2 [18:52:01]MH_I2C_Read... [18:52:01]Read from MH i2c: E2 0E 00 [18:52:01]MH_I2C_Read... [18:52:01]Read from MH i2c: E2 0E 00 88 20 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 3F [18:52:01]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:52:01]wFMCommunicate OK [18:52:01]SAM_PROTO_GetShiftState done [18:52:01]FM_GetShiftState done [18:52:01]req_shift_opened done [18:52:01]requested_item shift.open_date is exist - process it [18:52:01]req_shift_open_date [18:52:01]req_shift_open_date done [18:52:01]produce_requested_data done [18:52:01]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227608,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [18:52:01]process_action_free close_receipt [18:52:01]json_value_free [18:52:01]json_value_free done [18:52:01]process_json_proto returns [18:52:01]Send response to host [18:52:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227608,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [18:52:01]free response buf [18:52:01]execute_script done [18:52:01]execute_script returns [18:52:01]free content buf [18:52:01]Sock 9.Close socket [18:52:01]Sock 9.Thread stoped [18:52:01]OFD Sender: No OFD packet to send [18:52:06]OFD Sender: No OFD packet to send [18:52:11]OFD Sender: No OFD packet to send [18:52:16]OFD Sender: No OFD packet to send [18:52:21]OFD Sender: No OFD packet to send [18:52:26]accept exits with 7 [18:52:26]New connection [18:52:26]New thread 3067362660 created [18:52:26]Thread 3067219300 joined [18:52:26]Waiting for new connection... [18:52:26] Sock 7.Parse request [18:52:26]Sock 7.Check first char [18:52:26]Sock 7.First char is OK [18:52:26]request: POST /json_proto HTTP/1.0 [18:52:26]Method: POST [18:52:26]URL: /json_proto [18:52:26]Method is POST - this is cgi request [18:52:26]url: /json_proto [18:52:26]query_string will be loaded in cgi processing [18:52:26]execute_cgi json_proto POST (null) [18:52:26]execute_cgi path=json_proto method=POST [18:52:26]POST find Content-Length [18:52:26]Host: 172.17.44.195:8080 [18:52:26]Content-Length: 683 [18:52:26]Content-Type: application/json [18:52:26] [18:52:26]POST finish read [18:52:26]Found Content-Length = 683 [18:52:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963245", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:52:26]execute_script... [18:52:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963245", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:52:26]POST & json_proto [18:52:26]process_json_proto [18:52:26]json parsed OK: [18:52:26]protocol is kg_v1.0 [18:52:26]action value=close_receipt [18:52:26]process_action close_receipt [18:52:26]cmd_close_receipt [18:52:26]MH_GetDate [18:52:26]Write to MH i2c: F0 00 00 89 20 98 [18:52:26]Write i2c OK [18:52:26]MH_I2C_Read... [18:52:26]Read from MH i2c: F0 [18:52:26]MH_I2C_Read... [18:52:26]Read from MH i2c: F0 09 00 [18:52:26]MH_I2C_Read... [18:52:26]Read from MH i2c: F0 09 00 89 20 00 6C 51 15 67 82 C9 CF 66 5A [18:52:26]GetLastDocTimeStamp 1729450320 [18:52:26]current date 1729450348 [18:52:26]FM_GetShiftState [18:52:26]SAM_PROTO_GetShiftState [18:52:26]wFMCommunicate request_size=4 [18:52:26]MH_SAM_APDU [18:52:26]CAPDU: 80 13 01 00 [18:52:26]Write to MH i2c: E2 08 00 8A 20 80 13 01 00 00 00 00 00 27 [18:52:26]Write i2c OK [18:52:26]MH_I2C_Read... [18:52:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:52:26]Read from MH i2c: E2 [18:52:26]MH_I2C_Read... [18:52:26]Read from MH i2c: E2 0E 00 [18:52:26]MH_I2C_Read... [18:52:26]Read from MH i2c: E2 0E 00 8A 20 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 41 [18:52:26]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:52:26]wFMCommunicate OK [18:52:26]SAM_PROTO_GetShiftState done [18:52:26]FM_GetShiftState done [18:52:26]opened in 1729383750 [18:52:26]opened+sec_in_day 1729470150 [18:52:26]quantity*price = 150032 [18:52:26]sum+1 = 150033 [18:52:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 457 20.10.2024 18:52 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227609 ФПД: 192055871826289 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T185228&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227609&fm=192055871826289&tin=02508201610067®Number=0000000000091685&sum=150000 [18:52:27]StoreToDocumentArchive [18:52:27]shift 533 fd 227609 [18:52:27]save to /storage/0533/doc_00227609 [18:52:27]save last doc name /storage/0533/doc_00227609 to /storage/kkm_last_doc_name [18:52:27]save OK [18:52:27]Clear old archive folders... [18:52:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:52:27]tlvbuf is 00E32DC0 [18:52:27]SAM_PROTO_ClearQueue [18:52:27]wFMCommunicate request_size=4 [18:52:27]MH_SAM_APDU [18:52:27]CAPDU: 80 09 00 00 [18:52:27]Write to MH i2c: E2 08 00 97 20 80 09 00 00 00 00 00 00 29 [18:52:27]Write i2c OK [18:52:27]MH_I2C_Read... [18:52:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:52:27]Read from MH i2c: E2 [18:52:27]MH_I2C_Read... [18:52:27]Read from MH i2c: E2 03 00 [18:52:27]MH_I2C_Read... [18:52:27]Read from MH i2c: E2 03 00 97 20 00 90 00 2B [18:52:27]RAPDU: 90 00 [18:52:27]wFMCommunicate OK [18:52:27]SAM_PROTO_ClearQueue done [18:52:27]KKMCreateOFDPacket [18:52:27]OFDProtocolAddRootSTLVToBuf [18:52:27]FM_MakeSignedData [18:52:27]FM_MakeSignedData [18:52:27]SAM_PROTO_SignData [18:52:27]wFMCommunicate request_size=4 [18:52:27]MH_SAM_APDU [18:52:27]CAPDU: 80 0D 01 02 [18:52:27]Write to MH i2c: E2 08 00 98 20 80 0D 01 02 00 00 00 00 31 [18:52:27]Write i2c OK [18:52:27]MH_I2C_Read... [18:52:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:52:27]Read from MH i2c: E2 [18:52:27]MH_I2C_Read... [18:52:27]Read from MH i2c: E2 03 00 [18:52:27]MH_I2C_Read... [18:52:27]Read from MH i2c: E2 03 00 98 20 00 90 00 2C [18:52:27]RAPDU: 90 00 [18:52:27]wFMCommunicate OK [18:52:27]wFMCommunicate request_size=255 [18:52:27]MH_SAM_APDU [18:52:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 01 00 00 F4 03 04 00 6C 51 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 19 79 03 00 35 04 06 00 AE [18:52:27]Write to MH i2c: E2 02 01 99 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 01 00 00 F4 03 04 00 6C 51 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 19 79 03 00 35 04 06 00 AE 00 00 88 [18:52:27]Write i2c OK [18:52:27]MH_I2C_Read... [18:52:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:52:27]Read from MH i2c: E2 [18:52:27]MH_I2C_Read... [18:52:27]Read from MH i2c: E2 03 00 [18:52:27]MH_I2C_Read... [18:52:27]Read from MH i2c: E2 03 00 99 20 00 90 00 2D [18:52:27]RAPDU: 90 00 [18:52:27]wFMCommunicate OK [18:52:27]wFMCommunicate request_size=10 [18:52:27]MH_SAM_APDU [18:52:27]CAPDU: 80 0D 02 02 05 AC 7E 04 69 71 [18:52:27]Write to MH i2c: E2 0D 00 9A 20 80 0D 02 02 05 00 AC 7E 04 69 71 00 00 46 [18:52:27]Write i2c OK [18:52:27]MH_I2C_Read... [18:52:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:52:27]Read from MH i2c: E2 [18:52:27]MH_I2C_Read... [18:52:27]Read from MH i2c: E2 03 00 [18:52:27]MH_I2C_Read... [18:52:27]Read from MH i2c: E2 03 00 9A 20 00 90 00 2E [18:52:27]RAPDU: 90 00 [18:52:27]wFMCommunicate OK [18:52:27]wFMCommunicate request_size=4 [18:52:27]MH_SAM_APDU [18:52:27]CAPDU: 80 0D 03 02 [18:52:27]Write to MH i2c: E2 08 00 9B 20 80 0D 03 02 00 00 00 00 36 [18:52:27]Write i2c OK [18:52:27]MH_I2C_Read... [18:52:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:52:28]Read from MH i2c: E2 [18:52:28]MH_I2C_Read... [18:52:28]Read from MH i2c: E2 0B 00 [18:52:28]MH_I2C_Read... [18:52:28]Read from MH i2c: E2 0B 00 9B 20 00 91 FF FF 7B 27 0B FC A2 90 00 11 [18:52:28]RAPDU: 91 FF FF 7B 27 0B FC A2 90 00 [18:52:28]wFMCommunicate OK [18:52:28]SAM_PROTO_SignData done [18:52:28]FM_MakeSignedData done [18:52:28]CreateOFDProtocolMessage [18:52:28]wFMCommunicate request_size=4 [18:52:28]MH_SAM_APDU [18:52:28]CAPDU: 80 11 00 00 [18:52:28]Write to MH i2c: E2 08 00 9C 20 80 11 00 00 00 00 00 00 36 [18:52:28]Write i2c OK [18:52:28]MH_I2C_Read... [18:52:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:52:28]Read from MH i2c: E2 [18:52:28]MH_I2C_Read... [18:52:28]Read from MH i2c: E2 17 00 [18:52:28]MH_I2C_Read... [18:52:28]Read from MH i2c: E2 17 00 9C 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 8D [18:52:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:52:28]wFMCommunicate OK [18:52:28]CreateOFDProtocolMessage done [18:52:28]OFDSenderStorePacket 227609 [18:52:28]StoreOFDPacket docnum=227609 [18:52:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 4D E8 07 01 C1 35 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 01 00 00 F4 03 04 00 6C 51 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 19 79 03 00 35 04 06 00 AE AC 7E 04 69 71 91 FF FF 7B 27 0B FC A2 [18:52:28]CheckFolder [18:52:28]dirname=/storage/ofd_packets [18:52:28]CheckFolder done [18:52:28]ProducePacketName [18:52:28]name=ofd_packets/00227609 [18:52:28]NVStorageSaveData ofd_packets/00227609 [18:52:28]File name is /storage/ofd_packets/00227609 [18:52:28]Write 301 bytes [18:52:28]NVStorageSaveData done [18:52:28]OFDSenderStorePacket done [18:52:28]KKMCreateOFDPacket done [18:52:28]NVStorageSaveData kkm_last_timestamp [18:52:28]File name is /storage/kkm_last_timestamp [18:52:28]Write 4 bytes [18:52:28]NVStorageSaveData done [18:52:28]ExternCall_PrintAddStr [18:52:28]wPrintStart [18:52:28]Write to MH i2c: 01 00 00 9D 20 BD [18:52:28]Write i2c OK [18:52:28]MH_I2C_Read... [18:52:28]Read from MH i2c: 01 [18:52:28]MH_I2C_Read... [18:52:28]Read from MH i2c: 01 07 00 [18:52:28]MH_I2C_Read... [18:52:28]Read from MH i2c: 01 07 00 9D 20 00 00 00 00 00 FF 0F D2 [18:52:28]RasterBufferAndPrint [18:52:28]line Счет N : (1)1963245 [18:52:28]line ИНН: 02508201610067 [18:52:28]line Контрольно-Кассовый Чек [18:52:28]line ПРОДАЖА [18:52:28]line ТРК (МРК, ГНК) : 54 [18:52:28]line Товар: 2710124500 [18:52:28]line Аи-95-К-5 [18:52:28]line 20.220 * 74.20 [18:52:28]line = 1500.32 [18:52:28]line НДС 12% НСП 1% [18:52:28]line > о реализуемом товаре [18:52:28]line ОКРУГЛЕНИЕ: -0.32 [18:52:28]line ИТОГО: 1500.00 [18:52:28]line Внесено: 1500.00 [18:52:28]line СДАЧА: 0.00 [18:52:28]line НСП 1% : 13.28 [18:52:28]line НДС 12% : 159.33 [18:52:28]line Наличными: 1500.00 [18:52:28]line Безнал.: 0.00 [18:52:28]line Место: АЗС № 133 "Партнер Нефть" [18:52:28]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:52:28]line СНО: Общий режим [18:52:28]line Чек 457 20.10.2024 18:52 [18:52:28]line Смена: 533 ФФД: 1.0 [18:52:28]line ЗНМ: 0300000091 [18:52:28]line РНМ: 0000000000091685 [18:52:28]line Версия ККМ: 001 [18:52:28]line ФМ: 0000000000871839 [18:52:28]line ФД: 227609 [18:52:28]line ФПД: 192055871826289 [18:52:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T185228&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227609&fm=192055871826289&tin=02508201610067®Number=0000000000091685&sum=150000 [18:52:28]OFD Sender: Processing packet 227609 [packets to send 38, broken 37] [18:52:28]ProducePacketName [18:52:28]name=ofd_packets/00227609 [18:52:28]OFD Sender: To server: pG, [18:52:28]CommunicateWithHost lk.salyk.kg:30040 [18:52:28]ConnectInit lk.salyk.kg [18:52:28]written 0, free lines is 4095 [18:52:28]Connected sock=10 [18:52:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 4D E8 07 01 C1 35 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 01 00 00 F4 03 04 00 6C 51 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 19 79 03 00 35 04 06 00 AE AC 7E 04 69 71 91 FF FF 7B 27 0B FC A2 [18:52: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 33 39 4F 00 00 00 85 D6 47 00 D7 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 19 79 03 00 F4 03 04 00 6A FC 14 67 B6 04 01 00 00 EC BB E0 54 CA 85 D1 86 [18:52:28]CommunicateWithHost err = 0 [18:52:28]CheckOFDResponse [18:52:28]1017 (14) - 77093643461234 [18:52:28]1041 (16) - 0000000000871839 [18:52:28]1040 (4) - 227609 [18:52:28]1012 (4) - 20.10.2024 12:49 [18:52:28]1206 (1) - 0 [18:52:28]OFD Sender: Remove packet 227609 [18:52:28]ProducePacketName [18:52:28]name=ofd_packets/00227609 [18:52:28]NVStorageDeleteData [18:52:28]Write to MH i2c: 01 00 00 C7 20 E7 [18:52:28]Write i2c OK [18:52:28]MH_I2C_Read... [18:52:28]Read from MH i2c: 01 [18:52:28]MH_I2C_Read... [18:52:28]Read from MH i2c: 01 07 00 [18:52:28]MH_I2C_Read... [18:52:28]Read from MH i2c: 01 07 00 C7 20 00 00 00 00 00 14 0D 0F [18:52:28]RasterBufferAndPrint [18:52:28]line [18:52:28]line [18:52:28]line [18:52:28]line [18:52:28]line [18:52:28]written 0, free lines is 3355 [18:52:28]process_action close_receipt done [18:52:28]requested_data is exist [18:52:28]produce_requested_data [18:52:28]requested_item fm.sn is exist - process it [18:52:28]wFMCommunicate request_size=4 [18:52:28]MH_SAM_APDU [18:52:28]CAPDU: 80 11 00 00 [18:52:28]Write to MH i2c: E2 08 00 CE 20 80 11 00 00 00 00 00 00 68 [18:52:28]Write i2c OK [18:52:28]MH_I2C_Read... [18:52:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:52:28]Read from MH i2c: E2 [18:52:28]MH_I2C_Read... [18:52:28]Read from MH i2c: E2 17 00 [18:52:28]MH_I2C_Read... [18:52:28]Read from MH i2c: E2 17 00 CE 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 BF [18:52:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:52:28]wFMCommunicate OK [18:52:28]requested_item fd.num is exist - process it [18:52:28]SAM_PROTO_GetFieldsCounters [18:52:28]wFMCommunicate request_size=4 [18:52:28]MH_SAM_APDU [18:52:28]CAPDU: 80 13 00 00 [18:52:28]Write to MH i2c: E2 08 00 CF 20 80 13 00 00 00 00 00 00 6B [18:52:28]Write i2c OK [18:52:28]MH_I2C_Read... [18:52:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:52:29]Read from MH i2c: E2 [18:52:29]MH_I2C_Read... [18:52:29]Read from MH i2c: E2 62 00 [18:52:29]MH_I2C_Read... [18:52:29]Read from MH i2c: E2 62 00 CF 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 19 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 C9 01 00 00 5E 04 04 00 C9 01 00 00 57 04 04 00 CA 01 00 00 19 04 04 00 00 00 00 00 90 00 9E [18:52: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 19 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 C9 01 00 00 5E 04 04 00 C9 01 00 00 57 04 04 00 CA 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:52:29]wFMCommunicate OK [18:52:29]SAM_PROTO_GetFieldsCounters done [18:52:29]requested_item shift.num is exist - process it [18:52:29]requested_item shift.opened is exist - process it [18:52:29]req_shift_opened [18:52:29]FM_GetShiftState [18:52:29]SAM_PROTO_GetShiftState [18:52:29]wFMCommunicate request_size=4 [18:52:29]MH_SAM_APDU [18:52:29]CAPDU: 80 13 01 00 [18:52:29]Write to MH i2c: E2 08 00 D0 20 80 13 01 00 00 00 00 00 6D [18:52:29]Write i2c OK [18:52:29]MH_I2C_Read... [18:52:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:52:29]Read from MH i2c: E2 [18:52:29]MH_I2C_Read... [18:52:29]Read from MH i2c: E2 0E 00 [18:52:29]MH_I2C_Read... [18:52:29]Read from MH i2c: E2 0E 00 D0 20 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 87 [18:52:29]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:52:29]wFMCommunicate OK [18:52:29]SAM_PROTO_GetShiftState done [18:52:29]FM_GetShiftState done [18:52:29]req_shift_opened done [18:52:29]requested_item shift.open_date is exist - process it [18:52:29]req_shift_open_date [18:52:29]req_shift_open_date done [18:52:29]produce_requested_data done [18:52:29]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227609,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [18:52:29]process_action_free close_receipt [18:52:29]json_value_free [18:52:29]json_value_free done [18:52:29]process_json_proto returns [18:52:29]Send response to host [18:52:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227609,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [18:52:29]free response buf [18:52:29]execute_script done [18:52:29]execute_script returns [18:52:29]free content buf [18:52:29]Sock 7.Close socket [18:52:29]Sock 7.Thread stoped [18:52:29]OFD Sender: No OFD packet to send [18:52:34]OFD Sender: No OFD packet to send [18:52:39]OFD Sender: No OFD packet to send [18:52:42]accept exits with 9 [18:52:42]New connection [18:52:42]New thread 3067219300 created [18:52:42]Thread 3067362660 joined [18:52:42]Waiting for new connection... [18:52:42] Sock 9.Parse request [18:52:42]Sock 9.Check first char [18:52:42]Sock 9.First char is OK [18:52:42]request: POST /json_proto HTTP/1.0 [18:52:42]Method: POST [18:52:42]URL: /json_proto [18:52:42]Method is POST - this is cgi request [18:52:42]url: /json_proto [18:52:42]query_string will be loaded in cgi processing [18:52:42]execute_cgi json_proto POST (null) [18:52:42]execute_cgi path=json_proto method=POST [18:52:42]POST find Content-Length [18:52:42]Host: 172.17.44.195:8080 [18:52:42]Content-Length: 680 [18:52:42]Content-Type: application/json [18:52:42] [18:52:42]POST finish read [18:52:42]Found Content-Length = 680 [18:52:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963247", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 14.440, "sum" : 1100.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:52:42]execute_script... [18:52: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)1963247", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 14.440, "sum" : 1100.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:52:42]POST & json_proto [18:52:42]process_json_proto [18:52:42]json parsed OK: [18:52:42]protocol is kg_v1.0 [18:52:42]action value=close_receipt [18:52:42]process_action close_receipt [18:52:42]cmd_close_receipt [18:52:42]MH_GetDate [18:52:42]Write to MH i2c: F0 00 00 D1 20 E0 [18:52:42]Write i2c OK [18:52:42]MH_I2C_Read... [18:52:42]Read from MH i2c: F0 [18:52:42]MH_I2C_Read... [18:52:42]Read from MH i2c: F0 09 00 [18:52:42]MH_I2C_Read... [18:52:42]Read from MH i2c: F0 09 00 D1 20 00 7B 51 15 67 82 C9 CF 66 B1 [18:52:42]GetLastDocTimeStamp 1729450348 [18:52:42]current date 1729450363 [18:52:42]FM_GetShiftState [18:52:42]SAM_PROTO_GetShiftState [18:52:42]wFMCommunicate request_size=4 [18:52:42]MH_SAM_APDU [18:52:42]CAPDU: 80 13 01 00 [18:52:42]Write to MH i2c: E2 08 00 D2 20 80 13 01 00 00 00 00 00 6F [18:52:42]Write i2c OK [18:52:42]MH_I2C_Read... [18:52:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:52:42]Read from MH i2c: E2 [18:52:42]MH_I2C_Read... [18:52:42]Read from MH i2c: E2 0E 00 [18:52:42]MH_I2C_Read... [18:52:42]Read from MH i2c: E2 0E 00 D2 20 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 89 [18:52:42]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:52:42]wFMCommunicate OK [18:52:42]SAM_PROTO_GetShiftState done [18:52:42]FM_GetShiftState done [18:52:42]opened in 1729383750 [18:52:42]opened+sec_in_day 1729470150 [18:52:42]quantity*price = 110032 [18:52:42]sum+1 = 110034 [18:52:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 1100.00 Внесено: 1100.00 СДАЧА: 0.00 НСП 1% : 9.74 НДС 12% : 116.85 Наличными: 1100.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 458 20.10.2024 18:52 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227610 ФПД: 224350673331417 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T185243&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227610&fm=224350673331417&tin=02508201610067®Number=0000000000091685&sum=110000 [18:52:43]StoreToDocumentArchive [18:52:43]shift 533 fd 227610 [18:52:43]save to /storage/0533/doc_00227610 [18:52:43]save last doc name /storage/0533/doc_00227610 to /storage/kkm_last_doc_name [18:52:43]save OK [18:52:43]Clear old archive folders... [18:52:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:52:43]tlvbuf is B6FB9180 [18:52:43]SAM_PROTO_ClearQueue [18:52:43]wFMCommunicate request_size=4 [18:52:43]MH_SAM_APDU [18:52:43]CAPDU: 80 09 00 00 [18:52:43]Write to MH i2c: E2 08 00 DF 20 80 09 00 00 00 00 00 00 71 [18:52:43]Write i2c OK [18:52:43]MH_I2C_Read... [18:52:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:52:43]Read from MH i2c: E2 [18:52:43]MH_I2C_Read... [18:52:43]Read from MH i2c: E2 03 00 [18:52:43]MH_I2C_Read... [18:52:43]Read from MH i2c: E2 03 00 DF 20 00 90 00 73 [18:52:43]RAPDU: 90 00 [18:52:43]wFMCommunicate OK [18:52:43]SAM_PROTO_ClearQueue done [18:52:43]KKMCreateOFDPacket [18:52:43]OFDProtocolAddRootSTLVToBuf [18:52:43]FM_MakeSignedData [18:52:43]FM_MakeSignedData [18:52:43]SAM_PROTO_SignData [18:52:43]wFMCommunicate request_size=4 [18:52:43]MH_SAM_APDU [18:52:43]CAPDU: 80 0D 01 02 [18:52:43]Write to MH i2c: E2 08 00 E0 20 80 0D 01 02 00 00 00 00 79 [18:52:43]Write i2c OK [18:52:43]MH_I2C_Read... [18:52:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:52:43]Read from MH i2c: E2 [18:52:43]MH_I2C_Read... [18:52:43]Read from MH i2c: E2 03 00 [18:52:43]MH_I2C_Read... [18:52:43]Read from MH i2c: E2 03 00 E0 20 00 90 00 74 [18:52:43]RAPDU: 90 00 [18:52:43]wFMCommunicate OK [18:52:43]wFMCommunicate request_size=255 [18:52:43]MH_SAM_APDU [18:52: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 68 38 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D1 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 01 00 00 F4 03 04 00 7B 51 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1A 79 03 00 35 04 06 00 CC 0B B6 30 [18:52:43]Write to MH i2c: E2 02 01 E1 20 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 38 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D1 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 01 00 00 F4 03 04 00 7B 51 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1A 79 03 00 35 04 06 00 CC 0B B6 30 00 00 BA [18:52:43]Write i2c OK [18:52:43]MH_I2C_Read... [18:52:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:52:43]Read from MH i2c: E2 [18:52:43]MH_I2C_Read... [18:52:43]Read from MH i2c: E2 03 00 [18:52:43]MH_I2C_Read... [18:52:43]Read from MH i2c: E2 03 00 E1 20 00 90 00 75 [18:52:43]RAPDU: 90 00 [18:52:43]wFMCommunicate OK [18:52:43]wFMCommunicate request_size=7 [18:52:43]MH_SAM_APDU [18:52:43]CAPDU: 80 0D 02 02 02 64 D9 [18:52:43]Write to MH i2c: E2 0A 00 E2 20 80 0D 02 02 02 00 64 D9 00 00 BD [18:52:43]Write i2c OK [18:52:43]MH_I2C_Read... [18:52:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:52:43]Read from MH i2c: E2 [18:52:43]MH_I2C_Read... [18:52:43]Read from MH i2c: E2 03 00 [18:52:43]MH_I2C_Read... [18:52:43]Read from MH i2c: E2 03 00 E2 20 00 90 00 76 [18:52:43]RAPDU: 90 00 [18:52:43]wFMCommunicate OK [18:52:43]wFMCommunicate request_size=4 [18:52:43]MH_SAM_APDU [18:52:43]CAPDU: 80 0D 03 02 [18:52:43]Write to MH i2c: E2 08 00 E3 20 80 0D 03 02 00 00 00 00 7E [18:52:43]Write i2c OK [18:52:43]MH_I2C_Read... [18:52:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:52:43]Read from MH i2c: E2 [18:52:43]MH_I2C_Read... [18:52:43]Read from MH i2c: E2 0B 00 [18:52:43]MH_I2C_Read... [18:52:43]Read from MH i2c: E2 0B 00 E3 20 00 6B AC 17 32 60 3A D7 66 90 00 B6 [18:52:43]RAPDU: 6B AC 17 32 60 3A D7 66 90 00 [18:52:43]wFMCommunicate OK [18:52:43]SAM_PROTO_SignData done [18:52:43]FM_MakeSignedData done [18:52:43]CreateOFDProtocolMessage [18:52:43]wFMCommunicate request_size=4 [18:52:43]MH_SAM_APDU [18:52:43]CAPDU: 80 11 00 00 [18:52:43]Write to MH i2c: E2 08 00 E4 20 80 11 00 00 00 00 00 00 7E [18:52:43]Write i2c OK [18:52:43]MH_I2C_Read... [18:52:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:52:43]Read from MH i2c: E2 [18:52:43]MH_I2C_Read... [18:52:43]Read from MH i2c: E2 17 00 [18:52:43]MH_I2C_Read... [18:52:43]Read from MH i2c: E2 17 00 E4 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D5 [18:52:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:52:43]wFMCommunicate OK [18:52:43]CreateOFDProtocolMessage done [18:52:43]OFDSenderStorePacket 227610 [18:52:43]StoreOFDPacket docnum=227610 [18:52:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 0C 0A 04 01 2A E3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 38 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D1 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 01 00 00 F4 03 04 00 7B 51 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1A 79 03 00 35 04 06 00 CC 0B B6 30 64 D9 6B AC 17 32 60 3A D7 66 [18:52:43]CheckFolder [18:52:43]dirname=/storage/ofd_packets [18:52:43]CheckFolder done [18:52:43]ProducePacketName [18:52:43]name=ofd_packets/00227610 [18:52:43]NVStorageSaveData ofd_packets/00227610 [18:52:43]File name is /storage/ofd_packets/00227610 [18:52:43]Write 298 bytes [18:52:43]NVStorageSaveData done [18:52:43]OFDSenderStorePacket done [18:52:43]KKMCreateOFDPacket done [18:52:43]NVStorageSaveData kkm_last_timestamp [18:52:43]File name is /storage/kkm_last_timestamp [18:52:43]Write 4 bytes [18:52:43]NVStorageSaveData done [18:52:43]ExternCall_PrintAddStr [18:52:43]wPrintStart [18:52:43]Write to MH i2c: 01 00 00 E5 20 05 [18:52:43]Write i2c OK [18:52:43]MH_I2C_Read... [18:52:43]Read from MH i2c: 01 [18:52:43]MH_I2C_Read... [18:52:43]Read from MH i2c: 01 07 00 [18:52:43]MH_I2C_Read... [18:52:43]Read from MH i2c: 01 07 00 E5 20 00 00 00 00 00 FF 0F 1A [18:52:43]RasterBufferAndPrint [18:52:43]line Счет N : (1)1963247 [18:52:43]line ИНН: 02508201610067 [18:52:43]line Контрольно-Кассовый Чек [18:52:43]line ПРОДАЖА [18:52:43]line ТРК (МРК, ГНК) : 21 [18:52:43]line Товар: 2710194210 [18:52:43]line ДТ-К-5 [18:52:43]line 14.440 * 76.20 [18:52:43]line = 1100.33 [18:52:43]line НДС 12% НСП 1% [18:52:43]line > о реализуемом товаре [18:52:43]line ОКРУГЛЕНИЕ: -0.33 [18:52:43]line ИТОГО: 1100.00 [18:52:43]line Внесено: 1100.00 [18:52:43]line СДАЧА: 0.00 [18:52:43]line НСП 1% : 9.74 [18:52:43]line НДС 12% : 116.85 [18:52:43]line Наличными: 1100.00 [18:52:43]line Безнал.: 0.00 [18:52:43]line Место: АЗС № 133 "Партнер Нефть" [18:52:43]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:52:43]line СНО: Общий режим [18:52:43]line Чек 458 20.10.2024 18:52 [18:52:43]line Смена: 533 ФФД: 1.0 [18:52:43]line ЗНМ: 0300000091 [18:52:43]line РНМ: 0000000000091685 [18:52:43]line Версия ККМ: 001 [18:52:43]line ФМ: 0000000000871839 [18:52:43]line ФД: 227610 [18:52:43]line ФПД: 224350673331417 [18:52:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T185243&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227610&fm=224350673331417&tin=02508201610067®Number=0000000000091685&sum=110000 [18:52:44]OFD Sender: Processing packet 227610 [packets to send 38, broken 37] [18:52:44]ProducePacketName [18:52:44]name=ofd_packets/00227610 [18:52:44]OFD Sender: To server: pG, [18:52:44]CommunicateWithHost lk.salyk.kg:30040 [18:52:44]ConnectInit lk.salyk.kg [18:52:44]written 0, free lines is 4095 [18:52:44]Connected sock=10 [18:52: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 33 39 0C 01 00 00 0C 0A 04 01 2A E3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 38 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D1 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 01 00 00 F4 03 04 00 7B 51 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1A 79 03 00 35 04 06 00 CC 0B B6 30 64 D9 6B AC 17 32 60 3A D7 66 [18:52: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 33 39 4F 00 00 00 AD 52 47 00 0F 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 33 39 10 04 04 00 1A 79 03 00 F4 03 04 00 7A FC 14 67 B6 04 01 00 00 48 E8 A9 5A DD 22 21 25 [18:52:44]CommunicateWithHost err = 0 [18:52:44]CheckOFDResponse [18:52:44]1017 (14) - 77093643461234 [18:52:44]1041 (16) - 0000000000871839 [18:52:44]1040 (4) - 227610 [18:52:44]1012 (4) - 20.10.2024 12:50 [18:52:44]1206 (1) - 0 [18:52:44]OFD Sender: Remove packet 227610 [18:52:44]ProducePacketName [18:52:44]name=ofd_packets/00227610 [18:52:44]NVStorageDeleteData [18:52:44]Write to MH i2c: 01 00 00 0F 21 30 [18:52:44]Write i2c OK [18:52:44]MH_I2C_Read... [18:52:44]Read from MH i2c: 01 [18:52:44]MH_I2C_Read... [18:52:44]Read from MH i2c: 01 07 00 [18:52:44]MH_I2C_Read... [18:52:44]Read from MH i2c: 01 07 00 0F 21 00 00 00 00 00 FF 0C 42 [18:52:44]RasterBufferAndPrint [18:52:44]line [18:52:44]line [18:52:44]line [18:52:44]line [18:52:44]line [18:52:44]written 0, free lines is 3333 [18:52:44]process_action close_receipt done [18:52:44]requested_data is exist [18:52:44]produce_requested_data [18:52:44]requested_item fm.sn is exist - process it [18:52:44]wFMCommunicate request_size=4 [18:52:44]MH_SAM_APDU [18:52:44]CAPDU: 80 11 00 00 [18:52:44]Write to MH i2c: E2 08 00 16 21 80 11 00 00 00 00 00 00 B1 [18:52:44]Write i2c OK [18:52:44]MH_I2C_Read... [18:52:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:52:44]Read from MH i2c: E2 [18:52:44]MH_I2C_Read... [18:52:44]Read from MH i2c: E2 17 00 [18:52:44]MH_I2C_Read... [18:52:44]Read from MH i2c: E2 17 00 16 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 08 [18:52:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:52:44]wFMCommunicate OK [18:52:44]requested_item fd.num is exist - process it [18:52:44]SAM_PROTO_GetFieldsCounters [18:52:44]wFMCommunicate request_size=4 [18:52:44]MH_SAM_APDU [18:52:44]CAPDU: 80 13 00 00 [18:52:44]Write to MH i2c: E2 08 00 17 21 80 13 00 00 00 00 00 00 B4 [18:52:44]Write i2c OK [18:52:44]MH_I2C_Read... [18:52:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:52:44]Read from MH i2c: E2 [18:52:44]MH_I2C_Read... [18:52:44]Read from MH i2c: E2 62 00 [18:52:44]MH_I2C_Read... [18:52:44]Read from MH i2c: E2 62 00 17 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 1A 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 CA 01 00 00 5E 04 04 00 CA 01 00 00 57 04 04 00 CB 01 00 00 19 04 04 00 00 00 00 00 90 00 EB [18:52: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 1A 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 CA 01 00 00 5E 04 04 00 CA 01 00 00 57 04 04 00 CB 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:52:44]wFMCommunicate OK [18:52:44]SAM_PROTO_GetFieldsCounters done [18:52:44]requested_item shift.num is exist - process it [18:52:44]requested_item shift.opened is exist - process it [18:52:44]req_shift_opened [18:52:44]FM_GetShiftState [18:52:44]SAM_PROTO_GetShiftState [18:52:44]wFMCommunicate request_size=4 [18:52:44]MH_SAM_APDU [18:52:44]CAPDU: 80 13 01 00 [18:52:44]Write to MH i2c: E2 08 00 18 21 80 13 01 00 00 00 00 00 B6 [18:52:44]Write i2c OK [18:52:44]MH_I2C_Read... [18:52:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:52:44]Read from MH i2c: E2 [18:52:44]MH_I2C_Read... [18:52:44]Read from MH i2c: E2 0E 00 [18:52:44]MH_I2C_Read... [18:52:44]Read from MH i2c: E2 0E 00 18 21 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 D0 [18:52:44]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:52:44]wFMCommunicate OK [18:52:44]SAM_PROTO_GetShiftState done [18:52:44]FM_GetShiftState done [18:52:44]req_shift_opened done [18:52:44]requested_item shift.open_date is exist - process it [18:52:44]req_shift_open_date [18:52:44]req_shift_open_date done [18:52:44]produce_requested_data done [18:52:44]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227610,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [18:52:44]process_action_free close_receipt [18:52:44]json_value_free [18:52:44]json_value_free done [18:52:44]process_json_proto returns [18:52:44]Send response to host [18:52:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227610,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [18:52:44]free response buf [18:52:44]execute_script done [18:52:44]execute_script returns [18:52:44]free content buf [18:52:44]Sock 9.Close socket [18:52:44]Sock 9.Thread stoped [18:52:45]OFD Sender: No OFD packet to send [18:52:50]OFD Sender: No OFD packet to send [18:52:55]OFD Sender: No OFD packet to send [18:53:00]OFD Sender: No OFD packet to send [18:53:05]OFD Sender: No OFD packet to send [18:53:10]OFD Sender: No OFD packet to send [18:53:15]OFD Sender: No OFD packet to send [18:53:20]OFD Sender: No OFD packet to send [18:53:25]OFD Sender: No OFD packet to send [18:53:30]OFD Sender: No OFD packet to send [18:53:35]OFD Sender: No OFD packet to send [18:53:36]accept exits with 7 [18:53:36]New connection [18:53:36]New thread 3067362660 created [18:53:36]Thread 3067219300 joined [18:53:36]Waiting for new connection... [18:53:36] Sock 7.Parse request [18:53:36]Sock 7.Check first char [18:53:36]Sock 7.First char is OK [18:53:36]request: POST /json_proto HTTP/1.0 [18:53:36]Method: POST [18:53:36]URL: /json_proto [18:53:36]Method is POST - this is cgi request [18:53:36]url: /json_proto [18:53:36]query_string will be loaded in cgi processing [18:53:36]execute_cgi json_proto POST (null) [18:53:36]execute_cgi path=json_proto method=POST [18:53:36]POST find Content-Length [18:53:36]Host: 172.17.44.195:8080 [18:53:36]Content-Length: 660 [18:53:36]Content-Type: application/json [18:53:36] [18:53:36]POST finish read [18:53:36]Found Content-Length = 660 [18:53:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963248", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 11.700, "sum" : 800.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:53:36]execute_script... [18:53:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963248", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 11.700, "sum" : 800.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:53:36]POST & json_proto [18:53:36]process_json_proto [18:53:36]json parsed OK: [18:53:36]protocol is kg_v1.0 [18:53:36]action value=close_receipt [18:53:36]process_action close_receipt [18:53:36]cmd_close_receipt [18:53:36]MH_GetDate [18:53:36]Write to MH i2c: F0 00 00 19 21 29 [18:53:36]Write i2c OK [18:53:36]MH_I2C_Read... [18:53:36]Read from MH i2c: F0 [18:53:36]MH_I2C_Read... [18:53:36]Read from MH i2c: F0 09 00 [18:53:36]MH_I2C_Read... [18:53:36]Read from MH i2c: F0 09 00 19 21 00 B2 51 15 67 82 C9 CF 66 31 [18:53:36]GetLastDocTimeStamp 1729450363 [18:53:36]current date 1729450418 [18:53:36]FM_GetShiftState [18:53:36]SAM_PROTO_GetShiftState [18:53:36]wFMCommunicate request_size=4 [18:53:36]MH_SAM_APDU [18:53:36]CAPDU: 80 13 01 00 [18:53:36]Write to MH i2c: E2 08 00 1A 21 80 13 01 00 00 00 00 00 B8 [18:53:36]Write i2c OK [18:53:36]MH_I2C_Read... [18:53:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:36]Read from MH i2c: E2 [18:53:36]MH_I2C_Read... [18:53:36]Read from MH i2c: E2 0E 00 [18:53:36]MH_I2C_Read... [18:53:36]Read from MH i2c: E2 0E 00 1A 21 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 D2 [18:53:36]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:53:36]wFMCommunicate OK [18:53:36]SAM_PROTO_GetShiftState done [18:53:36]FM_GetShiftState done [18:53:36]opened in 1729383750 [18:53:36]opened+sec_in_day 1729470150 [18:53:36]quantity*price = 80028 [18:53:36]sum+1 = 80029 [18:53:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.98 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 459 20.10.2024 18:53 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227611 ФПД: 82746400958306 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T185338&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227611&fm=82746400958306&tin=02508201610067®Number=0000000000091685&sum=80000 [18:53:37]StoreToDocumentArchive [18:53:37]shift 533 fd 227611 [18:53:37]save to /storage/0533/doc_00227611 [18:53:37]save last doc name /storage/0533/doc_00227611 to /storage/kkm_last_doc_name [18:53:37]save OK [18:53:37]Clear old archive folders... [18:53:37]ProcessDocumentItem done err = 0, tmpTLVsize=244 [18:53:37]tlvbuf is 00E5A3A0 [18:53:37]SAM_PROTO_ClearQueue [18:53:37]wFMCommunicate request_size=4 [18:53:37]MH_SAM_APDU [18:53:37]CAPDU: 80 09 00 00 [18:53:37]Write to MH i2c: E2 08 00 27 21 80 09 00 00 00 00 00 00 BA [18:53:37]Write i2c OK [18:53:37]MH_I2C_Read... [18:53:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:53:37]Read from MH i2c: E2 [18:53:37]MH_I2C_Read... [18:53:37]Read from MH i2c: E2 03 00 [18:53:37]MH_I2C_Read... [18:53:37]Read from MH i2c: E2 03 00 27 21 00 90 00 BC [18:53:37]RAPDU: 90 00 [18:53:37]wFMCommunicate OK [18:53:37]SAM_PROTO_ClearQueue done [18:53:37]KKMCreateOFDPacket [18:53:37]OFDProtocolAddRootSTLVToBuf [18:53:37]FM_MakeSignedData [18:53:37]FM_MakeSignedData [18:53:37]SAM_PROTO_SignData [18:53:37]wFMCommunicate request_size=4 [18:53:37]MH_SAM_APDU [18:53:37]CAPDU: 80 0D 01 02 [18:53:37]Write to MH i2c: E2 08 00 28 21 80 0D 01 02 00 00 00 00 C2 [18:53:37]Write i2c OK [18:53:37]MH_I2C_Read... [18:53:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:53:37]Read from MH i2c: E2 [18:53:37]MH_I2C_Read... [18:53:37]Read from MH i2c: E2 03 00 [18:53:37]MH_I2C_Read... [18:53:37]Read from MH i2c: E2 03 00 28 21 00 90 00 BD [18:53:37]RAPDU: 90 00 [18:53:37]wFMCommunicate OK [18:53:37]wFMCommunicate request_size=253 [18:53:37]MH_SAM_APDU [18:53:37]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 B4 2D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9C 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 CB 01 00 00 F4 03 04 00 B2 51 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1B 79 03 00 35 04 06 00 4B 41 E5 D5 E7 62 [18:53:37]Write to MH i2c: E2 00 01 29 21 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 B4 2D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9C 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 CB 01 00 00 F4 03 04 00 B2 51 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1B 79 03 00 35 04 06 00 4B 41 E5 D5 E7 62 00 00 1D [18:53:37]Write i2c OK [18:53:37]MH_I2C_Read... [18:53:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:53:37]Read from MH i2c: E2 [18:53:37]MH_I2C_Read... [18:53:37]Read from MH i2c: E2 03 00 [18:53:37]MH_I2C_Read... [18:53:37]Read from MH i2c: E2 03 00 29 21 00 90 00 BE [18:53:37]RAPDU: 90 00 [18:53:37]wFMCommunicate OK [18:53:37]wFMCommunicate request_size=4 [18:53:37]MH_SAM_APDU [18:53:37]CAPDU: 80 0D 03 02 [18:53:37]Write to MH i2c: E2 08 00 2A 21 80 0D 03 02 00 00 00 00 C6 [18:53:37]Write i2c OK [18:53:37]MH_I2C_Read... [18:53:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:53:37]Read from MH i2c: E2 [18:53:37]MH_I2C_Read... [18:53:37]Read from MH i2c: E2 0B 00 [18:53:37]MH_I2C_Read... [18:53:37]Read from MH i2c: E2 0B 00 2A 21 00 F5 F1 ED 3D 7E E6 45 92 90 00 12 [18:53:37]RAPDU: F5 F1 ED 3D 7E E6 45 92 90 00 [18:53:37]wFMCommunicate OK [18:53:37]SAM_PROTO_SignData done [18:53:37]FM_MakeSignedData done [18:53:37]CreateOFDProtocolMessage [18:53:37]wFMCommunicate request_size=4 [18:53:37]MH_SAM_APDU [18:53:37]CAPDU: 80 11 00 00 [18:53:37]Write to MH i2c: E2 08 00 2B 21 80 11 00 00 00 00 00 00 C6 [18:53:37]Write i2c OK [18:53:37]MH_I2C_Read... [18:53:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:37]Read from MH i2c: E2 [18:53:37]MH_I2C_Read... [18:53:37]Read from MH i2c: E2 17 00 [18:53:37]MH_I2C_Read... [18:53:37]Read from MH i2c: E2 17 00 2B 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 1D [18:53:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:53:37]wFMCommunicate OK [18:53:37]CreateOFDProtocolMessage done [18:53:37]OFDSenderStorePacket 227611 [18:53:37]StoreOFDPacket docnum=227611 [18:53:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 52 84 00 01 E4 75 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 B4 2D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9C 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 CB 01 00 00 F4 03 04 00 B2 51 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1B 79 03 00 35 04 06 00 4B 41 E5 D5 E7 62 F5 F1 ED 3D 7E E6 45 92 [18:53:37]CheckFolder [18:53:37]dirname=/storage/ofd_packets [18:53:37]CheckFolder done [18:53:37]ProducePacketName [18:53:37]name=ofd_packets/00227611 [18:53:37]NVStorageSaveData ofd_packets/00227611 [18:53:37]File name is /storage/ofd_packets/00227611 [18:53:37]Write 294 bytes [18:53:37]NVStorageSaveData done [18:53:37]OFDSenderStorePacket done [18:53:37]KKMCreateOFDPacket done [18:53:37]NVStorageSaveData kkm_last_timestamp [18:53:37]File name is /storage/kkm_last_timestamp [18:53:37]Write 4 bytes [18:53:37]NVStorageSaveData done [18:53:37]ExternCall_PrintAddStr [18:53:37]wPrintStart [18:53:37]Write to MH i2c: 01 00 00 2C 21 4D [18:53:37]Write i2c OK [18:53:37]MH_I2C_Read... [18:53:37]Read from MH i2c: 01 [18:53:37]MH_I2C_Read... [18:53:37]Read from MH i2c: 01 07 00 [18:53:37]MH_I2C_Read... [18:53:37]Read from MH i2c: 01 07 00 2C 21 00 00 00 00 00 FF 0F 62 [18:53:37]RasterBufferAndPrint [18:53:37]line Счет N : (1)1963248 [18:53:37]line ИНН: 02508201610067 [18:53:37]line Контрольно-Кассовый Чек [18:53:37]line ПРОДАЖА [18:53:37]line ТРК (МРК, ГНК) : 42 [18:53:37]line Товар: 2710124130 [18:53:37]line SU-92 [18:53:37]line 11.700 * 68.40 [18:53:37]line = 800.28 [18:53:37]line НДС 12% НСП 1% [18:53:37]line > о реализуемом товаре [18:53:37]line ОКРУГЛЕНИЕ: -0.28 [18:53:37]line ИТОГО: 800.00 [18:53:37]line Внесено: 800.00 [18:53:37]line СДАЧА: 0.00 [18:53:37]line НСП 1% : 7.08 [18:53:37]line НДС 12% : 84.98 [18:53:37]line Наличными: 800.00 [18:53:37]line Безнал.: 0.00 [18:53:37]line Место: АЗС № 133 "Партнер Нефть" [18:53:37]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:53:37]line СНО: Общий режим [18:53:37]line Чек 459 20.10.2024 18:53 [18:53:37]line Смена: 533 ФФД: 1.0 [18:53:37]line ЗНМ: 0300000091 [18:53:37]line РНМ: 0000000000091685 [18:53:37]line Версия ККМ: 001 [18:53:37]line ФМ: 0000000000871839 [18:53:37]line ФД: 227611 [18:53:37]line ФПД: 82746400958306 [18:53:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T185338&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227611&fm=82746400958306&tin=02508201610067®Number=0000000000091685&sum=80000 [18:53:38]OFD Sender: Processing packet 227611 [packets to send 38, broken 37] [18:53:38]ProducePacketName [18:53:38]name=ofd_packets/00227611 [18:53:38]OFD Sender: To server: pG, [18:53:38]CommunicateWithHost lk.salyk.kg:30040 [18:53:38]ConnectInit lk.salyk.kg [18:53:38]written 0, free lines is 4095 [18:53:38]Connected sock=10 [18:53:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 52 84 00 01 E4 75 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 B4 2D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9C 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 CB 01 00 00 F4 03 04 00 B2 51 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1B 79 03 00 35 04 06 00 4B 41 E5 D5 E7 62 F5 F1 ED 3D 7E E6 45 92 [18:53: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 33 39 4F 00 00 00 C3 7B 47 00 CE 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 33 39 10 04 04 00 1B 79 03 00 F4 03 04 00 B0 FC 14 67 B6 04 01 00 00 E5 23 62 5F CB 03 65 D5 [18:53:38]CommunicateWithHost err = 0 [18:53:38]CheckOFDResponse [18:53:38]1017 (14) - 77093643461234 [18:53:38]1041 (16) - 0000000000871839 [18:53:38]1040 (4) - 227611 [18:53:38]1012 (4) - 20.10.2024 12:50 [18:53:38]1206 (1) - 0 [18:53:38]OFD Sender: Remove packet 227611 [18:53:38]ProducePacketName [18:53:38]name=ofd_packets/00227611 [18:53:38]NVStorageDeleteData [18:53:38]Write to MH i2c: 01 00 00 56 21 77 [18:53:38]Write i2c OK [18:53:38]MH_I2C_Read... [18:53:38]Read from MH i2c: 01 [18:53:38]MH_I2C_Read... [18:53:38]Read from MH i2c: 01 07 00 [18:53:38]MH_I2C_Read... [18:53:38]Read from MH i2c: 01 07 00 56 21 00 00 00 00 00 00 0D 8B [18:53:38]RasterBufferAndPrint [18:53:38]line [18:53:38]line [18:53:38]line [18:53:38]line [18:53:38]line [18:53:38]written 0, free lines is 3334 [18:53:38]process_action close_receipt done [18:53:38]requested_data is exist [18:53:38]produce_requested_data [18:53:38]requested_item fm.sn is exist - process it [18:53:38]wFMCommunicate request_size=4 [18:53:38]MH_SAM_APDU [18:53:38]CAPDU: 80 11 00 00 [18:53:38]Write to MH i2c: E2 08 00 5D 21 80 11 00 00 00 00 00 00 F8 [18:53:38]Write i2c OK [18:53:38]MH_I2C_Read... [18:53:38]Read from MH i2c: E2 [18:53:38]MH_I2C_Read... [18:53:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:38]Read from MH i2c: E2 17 00 [18:53:38]MH_I2C_Read... [18:53:38]Read from MH i2c: E2 17 00 5D 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 4F [18:53:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:53:38]wFMCommunicate OK [18:53:38]requested_item fd.num is exist - process it [18:53:38]SAM_PROTO_GetFieldsCounters [18:53:38]wFMCommunicate request_size=4 [18:53:38]MH_SAM_APDU [18:53:38]CAPDU: 80 13 00 00 [18:53:38]Write to MH i2c: E2 08 00 5E 21 80 13 00 00 00 00 00 00 FB [18:53:38]Write i2c OK [18:53:38]MH_I2C_Read... [18:53:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:53:38]Read from MH i2c: E2 [18:53:38]MH_I2C_Read... [18:53:38]Read from MH i2c: E2 62 00 [18:53:38]MH_I2C_Read... [18:53:38]Read from MH i2c: E2 62 00 5E 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 1B 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 CB 01 00 00 5E 04 04 00 CB 01 00 00 57 04 04 00 CC 01 00 00 19 04 04 00 00 00 00 00 90 00 36 [18:53:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 1B 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 CB 01 00 00 5E 04 04 00 CB 01 00 00 57 04 04 00 CC 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:53:38]wFMCommunicate OK [18:53:38]SAM_PROTO_GetFieldsCounters done [18:53:38]requested_item shift.num is exist - process it [18:53:38]requested_item shift.opened is exist - process it [18:53:38]req_shift_opened [18:53:38]FM_GetShiftState [18:53:38]SAM_PROTO_GetShiftState [18:53:38]wFMCommunicate request_size=4 [18:53:38]MH_SAM_APDU [18:53:38]CAPDU: 80 13 01 00 [18:53:38]Write to MH i2c: E2 08 00 5F 21 80 13 01 00 00 00 00 00 FD [18:53:38]Write i2c OK [18:53:38]MH_I2C_Read... [18:53:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:39]Read from MH i2c: E2 [18:53:39]MH_I2C_Read... [18:53:39]Read from MH i2c: E2 0E 00 [18:53:39]MH_I2C_Read... [18:53:39]Read from MH i2c: E2 0E 00 5F 21 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 17 [18:53:39]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:53:39]wFMCommunicate OK [18:53:39]SAM_PROTO_GetShiftState done [18:53:39]FM_GetShiftState done [18:53:39]req_shift_opened done [18:53:39]requested_item shift.open_date is exist - process it [18:53:39]req_shift_open_date [18:53:39]req_shift_open_date done [18:53:39]produce_requested_data done [18:53:39]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227611,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [18:53:39]process_action_free close_receipt [18:53:39]json_value_free [18:53:39]json_value_free done [18:53:39]process_json_proto returns [18:53:39]Send response to host [18:53:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227611,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [18:53:39]free response buf [18:53:39]execute_script done [18:53:39]execute_script returns [18:53:39]free content buf [18:53:39]Sock 7.Close socket [18:53:39]Sock 7.Thread stoped [18:53:39]OFD Sender: No OFD packet to send [18:53:39]accept exits with 9 [18:53:39]New connection [18:53:39]New thread 3067219300 created [18:53:39]Thread 3067362660 joined [18:53:39]Waiting for new connection... [18:53:39] Sock 9.Parse request [18:53:39]Sock 9.Check first char [18:53:39]Sock 9.First char is OK [18:53:39]request: POST /json_proto HTTP/1.0 [18:53:39]Method: POST [18:53:39]URL: /json_proto [18:53:39]Method is POST - this is cgi request [18:53:39]url: /json_proto [18:53:39]query_string will be loaded in cgi processing [18:53:39]execute_cgi json_proto POST (null) [18:53:39]execute_cgi path=json_proto method=POST [18:53:39]POST find Content-Length [18:53:39]Host: 172.17.44.195:8080 [18:53:39]Content-Length: 683 [18:53:39]Content-Type: application/json [18:53:39] [18:53:39]POST finish read [18:53:39]Found Content-Length = 683 [18:53:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963246", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:53:39]execute_script... [18:53:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963246", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:53:39]POST & json_proto [18:53:39]process_json_proto [18:53:39]json parsed OK: [18:53:39]protocol is kg_v1.0 [18:53:39]action value=close_receipt [18:53:39]process_action close_receipt [18:53:39]cmd_close_receipt [18:53:39]MH_GetDate [18:53:39]Write to MH i2c: F0 00 00 60 21 70 [18:53:39]Write i2c OK [18:53:39]MH_I2C_Read... [18:53:39]Read from MH i2c: F0 [18:53:39]MH_I2C_Read... [18:53:39]Read from MH i2c: F0 09 00 [18:53:39]MH_I2C_Read... [18:53:39]Read from MH i2c: F0 09 00 60 21 00 B5 51 15 67 82 C9 CF 66 7B [18:53:39]GetLastDocTimeStamp 1729450418 [18:53:39]current date 1729450421 [18:53:39]FM_GetShiftState [18:53:39]SAM_PROTO_GetShiftState [18:53:39]wFMCommunicate request_size=4 [18:53:39]MH_SAM_APDU [18:53:39]CAPDU: 80 13 01 00 [18:53:39]Write to MH i2c: E2 08 00 61 21 80 13 01 00 00 00 00 00 FF [18:53:39]Write i2c OK [18:53:39]MH_I2C_Read... [18:53:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:39]Read from MH i2c: E2 [18:53:39]MH_I2C_Read... [18:53:39]Read from MH i2c: E2 0E 00 [18:53:39]MH_I2C_Read... [18:53:39]Read from MH i2c: E2 0E 00 61 21 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 19 [18:53:39]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:53:39]wFMCommunicate OK [18:53:39]SAM_PROTO_GetShiftState done [18:53:39]FM_GetShiftState done [18:53:39]opened in 1729383750 [18:53:39]opened+sec_in_day 1729470150 [18:53:39]quantity*price = 100015 [18:53:39]sum+1 = 100017 [18:53:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 460 20.10.2024 18:53 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227612 ФПД: 90200921177820 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T185341&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227612&fm=90200921177820&tin=02508201610067®Number=0000000000091685&sum=100000 [18:53:40]StoreToDocumentArchive [18:53:40]shift 533 fd 227612 [18:53:40]save to /storage/0533/doc_00227612 [18:53:40]save last doc name /storage/0533/doc_00227612 to /storage/kkm_last_doc_name [18:53:40]save OK [18:53:40]Clear old archive folders... [18:53:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:53:40]tlvbuf is 00DC4CE0 [18:53:40]SAM_PROTO_ClearQueue [18:53:40]wFMCommunicate request_size=4 [18:53:40]MH_SAM_APDU [18:53:40]CAPDU: 80 09 00 00 [18:53:40]Write to MH i2c: E2 08 00 6E 21 80 09 00 00 00 00 00 00 01 [18:53:40]Write i2c OK [18:53:40]MH_I2C_Read... [18:53:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:53:40]Read from MH i2c: E2 [18:53:40]MH_I2C_Read... [18:53:40]Read from MH i2c: E2 03 00 [18:53:40]MH_I2C_Read... [18:53:40]Read from MH i2c: E2 03 00 6E 21 00 90 00 03 [18:53:40]RAPDU: 90 00 [18:53:40]wFMCommunicate OK [18:53:40]SAM_PROTO_ClearQueue done [18:53:40]KKMCreateOFDPacket [18:53:40]OFDProtocolAddRootSTLVToBuf [18:53:40]FM_MakeSignedData [18:53:40]FM_MakeSignedData [18:53:40]SAM_PROTO_SignData [18:53:40]wFMCommunicate request_size=4 [18:53:40]MH_SAM_APDU [18:53:40]CAPDU: 80 0D 01 02 [18:53:40]Write to MH i2c: E2 08 00 6F 21 80 0D 01 02 00 00 00 00 09 [18:53:40]Write i2c OK [18:53:40]MH_I2C_Read... [18:53:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:53:40]Read from MH i2c: E2 [18:53:40]MH_I2C_Read... [18:53:40]Read from MH i2c: E2 03 00 [18:53:40]MH_I2C_Read... [18:53:40]Read from MH i2c: E2 03 00 6F 21 00 90 00 04 [18:53:40]RAPDU: 90 00 [18:53:40]wFMCommunicate OK [18:53:40]wFMCommunicate request_size=255 [18:53:40]MH_SAM_APDU [18:53:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 01 00 00 F4 03 04 00 B5 51 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1C 79 03 00 35 04 06 00 52 [18:53:40]Write to MH i2c: E2 02 01 70 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 01 00 00 F4 03 04 00 B5 51 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1C 79 03 00 35 04 06 00 52 00 00 EA [18:53:40]Write i2c OK [18:53:40]MH_I2C_Read... [18:53:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:53:40]Read from MH i2c: E2 [18:53:40]MH_I2C_Read... [18:53:40]Read from MH i2c: E2 03 00 [18:53:40]MH_I2C_Read... [18:53:40]Read from MH i2c: E2 03 00 70 21 00 90 00 05 [18:53:40]RAPDU: 90 00 [18:53:40]wFMCommunicate OK [18:53:40]wFMCommunicate request_size=10 [18:53:40]MH_SAM_APDU [18:53:40]CAPDU: 80 0D 02 02 05 09 89 DD 7E DC [18:53:40]Write to MH i2c: E2 0D 00 71 21 80 0D 02 02 05 00 09 89 DD 7E DC 00 00 DF [18:53:40]Write i2c OK [18:53:40]MH_I2C_Read... [18:53:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:53:41]Read from MH i2c: E2 [18:53:41]MH_I2C_Read... [18:53:41]Read from MH i2c: E2 03 00 [18:53:41]MH_I2C_Read... [18:53:41]Read from MH i2c: E2 03 00 71 21 00 90 00 06 [18:53:41]RAPDU: 90 00 [18:53:41]wFMCommunicate OK [18:53:41]wFMCommunicate request_size=4 [18:53:41]MH_SAM_APDU [18:53:41]CAPDU: 80 0D 03 02 [18:53:41]Write to MH i2c: E2 08 00 72 21 80 0D 03 02 00 00 00 00 0E [18:53:41]Write i2c OK [18:53:41]MH_I2C_Read... [18:53:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:53:41]Read from MH i2c: E2 [18:53:41]MH_I2C_Read... [18:53:41]Read from MH i2c: E2 0B 00 [18:53:41]MH_I2C_Read... [18:53:41]Read from MH i2c: E2 0B 00 72 21 00 10 78 20 79 89 62 1E AD 90 00 E6 [18:53:41]RAPDU: 10 78 20 79 89 62 1E AD 90 00 [18:53:41]wFMCommunicate OK [18:53:41]SAM_PROTO_SignData done [18:53:41]FM_MakeSignedData done [18:53:41]CreateOFDProtocolMessage [18:53:41]wFMCommunicate request_size=4 [18:53:41]MH_SAM_APDU [18:53:41]CAPDU: 80 11 00 00 [18:53:41]Write to MH i2c: E2 08 00 73 21 80 11 00 00 00 00 00 00 0E [18:53:41]Write i2c OK [18:53:41]MH_I2C_Read... [18:53:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:41]Read from MH i2c: E2 [18:53:41]MH_I2C_Read... [18:53:41]Read from MH i2c: E2 17 00 [18:53:41]MH_I2C_Read... [18:53:41]Read from MH i2c: E2 17 00 73 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 65 [18:53:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:53:41]wFMCommunicate OK [18:53:41]CreateOFDProtocolMessage done [18:53:41]OFDSenderStorePacket 227612 [18:53:41]StoreOFDPacket docnum=227612 [18:53:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 13 2C 07 01 81 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 01 00 00 F4 03 04 00 B5 51 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1C 79 03 00 35 04 06 00 52 09 89 DD 7E DC 10 78 20 79 89 62 1E AD [18:53:41]CheckFolder [18:53:41]dirname=/storage/ofd_packets [18:53:41]CheckFolder done [18:53:41]ProducePacketName [18:53:41]name=ofd_packets/00227612 [18:53:41]NVStorageSaveData ofd_packets/00227612 [18:53:41]File name is /storage/ofd_packets/00227612 [18:53:41]Write 301 bytes [18:53:41]NVStorageSaveData done [18:53:41]OFDSenderStorePacket done [18:53:41]KKMCreateOFDPacket done [18:53:41]NVStorageSaveData kkm_last_timestamp [18:53:41]File name is /storage/kkm_last_timestamp [18:53:41]Write 4 bytes [18:53:41]NVStorageSaveData done [18:53:41]ExternCall_PrintAddStr [18:53:41]wPrintStart [18:53:41]Write to MH i2c: 01 00 00 74 21 95 [18:53:41]Write i2c OK [18:53:41]MH_I2C_Read... [18:53:41]Read from MH i2c: 01 [18:53:41]MH_I2C_Read... [18:53:41]Read from MH i2c: 01 07 00 [18:53:41]MH_I2C_Read... [18:53:41]Read from MH i2c: 01 07 00 74 21 00 00 00 00 00 FF 0F AA [18:53:41]RasterBufferAndPrint [18:53:41]line Счет N : (1)1963246 [18:53:41]line ИНН: 02508201610067 [18:53:41]line Контрольно-Кассовый Чек [18:53:41]line ПРОДАЖА [18:53:41]line ТРК (МРК, ГНК) : 33 [18:53:41]line Товар: 2710124130 [18:53:41]line Аи-92-К-5 [18:53:41]line 14.950 * 66.90 [18:53:41]line = 1000.16 [18:53:41]line НДС 12% НСП 1% [18:53:41]line > о реализуемом товаре [18:53:41]line ОКРУГЛЕНИЕ: -0.16 [18:53:41]line ИТОГО: 1000.00 [18:53:41]line Внесено: 1000.00 [18:53:41]line СДАЧА: 0.00 [18:53:41]line НСП 1% : 8.85 [18:53:41]line НДС 12% : 106.21 [18:53:41]line Наличными: 1000.00 [18:53:41]line Безнал.: 0.00 [18:53:41]line Место: АЗС № 133 "Партнер Нефть" [18:53:41]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:53:41]line СНО: Общий режим [18:53:41]line Чек 460 20.10.2024 18:53 [18:53:41]line Смена: 533 ФФД: 1.0 [18:53:41]line ЗНМ: 0300000091 [18:53:41]line РНМ: 0000000000091685 [18:53:41]line Версия ККМ: 001 [18:53:41]line ФМ: 0000000000871839 [18:53:41]line ФД: 227612 [18:53:41]line ФПД: 90200921177820 [18:53:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T185341&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227612&fm=90200921177820&tin=02508201610067®Number=0000000000091685&sum=100000 [18:53:41]OFD Sender: Processing packet 227612 [packets to send 38, broken 37] [18:53:41]ProducePacketName [18:53:41]name=ofd_packets/00227612 [18:53:41]OFD Sender: To server: pG, [18:53:41]CommunicateWithHost lk.salyk.kg:30040 [18:53:41]ConnectInit lk.salyk.kg [18:53:41]written 0, free lines is 4095 [18:53:41]Connected sock=10 [18:53: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 33 39 0F 01 00 00 13 2C 07 01 81 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 01 00 00 F4 03 04 00 B5 51 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1C 79 03 00 35 04 06 00 52 09 89 DD 7E DC 10 78 20 79 89 62 1E AD [18: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 33 39 4F 00 00 00 03 48 47 00 2D 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1C 79 03 00 F4 03 04 00 B3 FC 14 67 B6 04 01 00 00 61 FC 13 07 17 72 87 89 [18:53:42]CommunicateWithHost err = 0 [18:53:42]CheckOFDResponse [18:53:42]1017 (14) - 77093643461234 [18:53:42]1041 (16) - 0000000000871839 [18:53:42]1040 (4) - 227612 [18:53:42]1012 (4) - 20.10.2024 12:50 [18:53:42]1206 (1) - 0 [18:53:42]OFD Sender: Remove packet 227612 [18:53:42]ProducePacketName [18:53:42]name=ofd_packets/00227612 [18:53:42]NVStorageDeleteData [18:53:42]Write to MH i2c: 01 00 00 9E 21 BF [18:53:42]Write i2c OK [18:53:42]MH_I2C_Read... [18:53:42]Read from MH i2c: 01 [18:53:42]MH_I2C_Read... [18:53:42]Read from MH i2c: 01 07 00 [18:53:42]MH_I2C_Read... [18:53:42]Read from MH i2c: 01 07 00 9E 21 00 00 00 00 00 1C 0D EF [18:53:42]RasterBufferAndPrint [18:53:42]line [18:53:42]line [18:53:42]line [18:53:42]line [18:53:42]line [18:53:42]written 0, free lines is 3371 [18:53:42]process_action close_receipt done [18:53:42]requested_data is exist [18:53:42]produce_requested_data [18:53:42]requested_item fm.sn is exist - process it [18:53:42]wFMCommunicate request_size=4 [18:53:42]MH_SAM_APDU [18:53:42]CAPDU: 80 11 00 00 [18:53:42]Write to MH i2c: E2 08 00 A5 21 80 11 00 00 00 00 00 00 40 [18:53:42]Write i2c OK [18:53:42]MH_I2C_Read... [18:53:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:42]Read from MH i2c: E2 [18:53:42]MH_I2C_Read... [18:53:42]Read from MH i2c: E2 17 00 [18:53:42]MH_I2C_Read... [18:53:42]Read from MH i2c: E2 17 00 A5 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 97 [18:53:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:53:42]wFMCommunicate OK [18:53:42]requested_item fd.num is exist - process it [18:53:42]SAM_PROTO_GetFieldsCounters [18:53:42]wFMCommunicate request_size=4 [18:53:42]MH_SAM_APDU [18:53:42]CAPDU: 80 13 00 00 [18:53:42]Write to MH i2c: E2 08 00 A6 21 80 13 00 00 00 00 00 00 43 [18:53:42]Write i2c OK [18:53:42]MH_I2C_Read... [18:53:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:53:42]Read from MH i2c: E2 [18:53:42]MH_I2C_Read... [18:53:42]Read from MH i2c: E2 62 00 [18:53:42]MH_I2C_Read... [18:53:42]Read from MH i2c: E2 62 00 A6 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 1C 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 CC 01 00 00 5E 04 04 00 CC 01 00 00 57 04 04 00 CD 01 00 00 19 04 04 00 00 00 00 00 90 00 82 [18:53: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 1C 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 CC 01 00 00 5E 04 04 00 CC 01 00 00 57 04 04 00 CD 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:53:42]wFMCommunicate OK [18:53:42]SAM_PROTO_GetFieldsCounters done [18:53:42]requested_item shift.num is exist - process it [18:53:42]requested_item shift.opened is exist - process it [18:53:42]req_shift_opened [18:53:42]FM_GetShiftState [18:53:42]SAM_PROTO_GetShiftState [18:53:42]wFMCommunicate request_size=4 [18:53:42]MH_SAM_APDU [18:53:42]CAPDU: 80 13 01 00 [18:53:42]Write to MH i2c: E2 08 00 A7 21 80 13 01 00 00 00 00 00 45 [18:53:42]Write i2c OK [18:53:42]MH_I2C_Read... [18:53:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:42]Read from MH i2c: E2 [18:53:42]MH_I2C_Read... [18:53:42]Read from MH i2c: E2 0E 00 [18:53:42]MH_I2C_Read... [18:53:42]Read from MH i2c: E2 0E 00 A7 21 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 5F [18:53:42]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:53:42]wFMCommunicate OK [18:53:42]SAM_PROTO_GetShiftState done [18:53:42]FM_GetShiftState done [18:53:42]req_shift_opened done [18:53:42]requested_item shift.open_date is exist - process it [18:53:42]req_shift_open_date [18:53:42]req_shift_open_date done [18:53:42]produce_requested_data done [18:53:42]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227612,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [18:53:42]process_action_free close_receipt [18:53:42]json_value_free [18:53:42]json_value_free done [18:53:42]process_json_proto returns [18:53:42]Send response to host [18:53:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227612,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [18:53:42]free response buf [18:53:42]execute_script done [18:53:42]execute_script returns [18:53:42]free content buf [18:53:42]Sock 9.Close socket [18:53:42]Sock 9.Thread stoped [18:53:42]OFD Sender: No OFD packet to send [18:53:47]OFD Sender: No OFD packet to send [18:53:52]OFD Sender: No OFD packet to send [18:53:57]OFD Sender: No OFD packet to send [18:54:02]OFD Sender: No OFD packet to send [18:54:07]OFD Sender: No OFD packet to send [18:54:12]OFD Sender: No OFD packet to send [18:54:17]OFD Sender: No OFD packet to send [18:54:22]OFD Sender: No OFD packet to send [18:54:24]accept exits with 7 [18:54:24]New connection [18:54:24]New thread 3067362660 created [18:54:24]Thread 3067219300 joined [18:54:24]Waiting for new connection... [18:54:24] Sock 7.Parse request [18:54:24]Sock 7.Check first char [18:54:24]Sock 7.First char is OK [18:54:24]request: POST /json_proto HTTP/1.0 [18:54:24]Method: POST [18:54:24]URL: /json_proto [18:54:24]Method is POST - this is cgi request [18:54:24]url: /json_proto [18:54:24]query_string will be loaded in cgi processing [18:54:24]execute_cgi json_proto POST (null) [18:54:24]execute_cgi path=json_proto method=POST [18:54:24]POST find Content-Length [18:54:24]Host: 172.17.44.195:8080 [18:54:24]Content-Length: 683 [18:54:24]Content-Type: application/json [18:54:24] [18:54:24]POST finish read [18:54:24]Found Content-Length = 683 [18:54:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963249", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:54:24]execute_script... [18:54:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963249", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:54:24]POST & json_proto [18:54:24]process_json_proto [18:54:24]json parsed OK: [18:54:24]protocol is kg_v1.0 [18:54:24]action value=close_receipt [18:54:24]process_action close_receipt [18:54:24]cmd_close_receipt [18:54:24]MH_GetDate [18:54:24]Write to MH i2c: F0 00 00 A8 21 B8 [18:54:24]Write i2c OK [18:54:24]MH_I2C_Read... [18:54:24]Read from MH i2c: F0 [18:54:24]MH_I2C_Read... [18:54:24]Read from MH i2c: F0 09 00 [18:54:24]MH_I2C_Read... [18:54:24]Read from MH i2c: F0 09 00 A8 21 00 E2 51 15 67 82 C9 CF 66 F0 [18:54:24]GetLastDocTimeStamp 1729450421 [18:54:24]current date 1729450466 [18:54:24]FM_GetShiftState [18:54:24]SAM_PROTO_GetShiftState [18:54:24]wFMCommunicate request_size=4 [18:54:24]MH_SAM_APDU [18:54:24]CAPDU: 80 13 01 00 [18:54:24]Write to MH i2c: E2 08 00 A9 21 80 13 01 00 00 00 00 00 47 [18:54:24]Write i2c OK [18:54:24]MH_I2C_Read... [18:54:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:24]Read from MH i2c: E2 [18:54:24]MH_I2C_Read... [18:54:24]Read from MH i2c: E2 0E 00 [18:54:24]MH_I2C_Read... [18:54:24]Read from MH i2c: E2 0E 00 A9 21 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 61 [18:54:24]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:54:24]wFMCommunicate OK [18:54:24]SAM_PROTO_GetShiftState done [18:54:24]FM_GetShiftState done [18:54:24]opened in 1729383750 [18:54:24]opened+sec_in_day 1729470150 [18:54:24]quantity*price = 200043 [18:54:24]sum+1 = 200044 [18:54:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 461 20.10.2024 18:54 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227613 ФПД: 198283473267313 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T185426&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227613&fm=198283473267313&tin=02508201610067®Number=0000000000091685&sum=200000 [18:54:26]StoreToDocumentArchive [18:54:26]shift 533 fd 227613 [18:54:26]save to /storage/0533/doc_00227613 [18:54:26]save last doc name /storage/0533/doc_00227613 to /storage/kkm_last_doc_name [18:54:26]save OK [18:54:26]Clear old archive folders... [18:54:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:54:26]tlvbuf is 00DC55D0 [18:54:26]SAM_PROTO_ClearQueue [18:54:26]wFMCommunicate request_size=4 [18:54:26]MH_SAM_APDU [18:54:26]CAPDU: 80 09 00 00 [18:54:26]Write to MH i2c: E2 08 00 B6 21 80 09 00 00 00 00 00 00 49 [18:54:26]Write i2c OK [18:54:26]MH_I2C_Read... [18:54:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:54:26]Read from MH i2c: E2 [18:54:26]MH_I2C_Read... [18:54:26]Read from MH i2c: E2 03 00 [18:54:26]MH_I2C_Read... [18:54:26]Read from MH i2c: E2 03 00 B6 21 00 90 00 4B [18:54:26]RAPDU: 90 00 [18:54:26]wFMCommunicate OK [18:54:26]SAM_PROTO_ClearQueue done [18:54:26]KKMCreateOFDPacket [18:54:26]OFDProtocolAddRootSTLVToBuf [18:54:26]FM_MakeSignedData [18:54:26]FM_MakeSignedData [18:54:26]SAM_PROTO_SignData [18:54:26]wFMCommunicate request_size=4 [18:54:26]MH_SAM_APDU [18:54:26]CAPDU: 80 0D 01 02 [18:54:26]Write to MH i2c: E2 08 00 B7 21 80 0D 01 02 00 00 00 00 51 [18:54:26]Write i2c OK [18:54:26]MH_I2C_Read... [18:54:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:54:26]Read from MH i2c: E2 [18:54:26]MH_I2C_Read... [18:54:26]Read from MH i2c: E2 03 00 [18:54:26]MH_I2C_Read... [18:54:26]Read from MH i2c: E2 03 00 B7 21 00 90 00 4C [18:54:26]RAPDU: 90 00 [18:54:26]wFMCommunicate OK [18:54:26]wFMCommunicate request_size=255 [18:54:26]MH_SAM_APDU [18:54:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 01 00 00 F4 03 04 00 E2 51 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1D 79 03 00 35 04 06 00 B4 [18:54:26]Write to MH i2c: E2 02 01 B8 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 01 00 00 F4 03 04 00 E2 51 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1D 79 03 00 35 04 06 00 B4 00 00 71 [18:54:26]Write i2c OK [18:54:26]MH_I2C_Read... [18:54:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:26]Read from MH i2c: E2 [18:54:26]MH_I2C_Read... [18:54:26]Read from MH i2c: E2 03 00 [18:54:26]MH_I2C_Read... [18:54:26]Read from MH i2c: E2 03 00 B8 21 00 90 00 4D [18:54:26]RAPDU: 90 00 [18:54:26]wFMCommunicate OK [18:54:26]wFMCommunicate request_size=10 [18:54:26]MH_SAM_APDU [18:54:26]CAPDU: 80 0D 02 02 05 56 77 FD 2A 71 [18:54:26]Write to MH i2c: E2 0D 00 B9 21 80 0D 02 02 05 00 56 77 FD 2A 71 00 00 C3 [18:54:26]Write i2c OK [18:54:26]MH_I2C_Read... [18:54:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:26]Read from MH i2c: E2 [18:54:26]MH_I2C_Read... [18:54:26]Read from MH i2c: E2 03 00 [18:54:26]MH_I2C_Read... [18:54:26]Read from MH i2c: E2 03 00 B9 21 00 90 00 4E [18:54:26]RAPDU: 90 00 [18:54:26]wFMCommunicate OK [18:54:26]wFMCommunicate request_size=4 [18:54:26]MH_SAM_APDU [18:54:26]CAPDU: 80 0D 03 02 [18:54:26]Write to MH i2c: E2 08 00 BA 21 80 0D 03 02 00 00 00 00 56 [18:54:26]Write i2c OK [18:54:26]MH_I2C_Read... [18:54:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:54:26]Read from MH i2c: E2 [18:54:26]MH_I2C_Read... [18:54:26]Read from MH i2c: E2 0B 00 [18:54:26]MH_I2C_Read... [18:54:26]Read from MH i2c: E2 0B 00 BA 21 00 7D 7A A9 92 18 B8 2D FB 90 00 81 [18:54:26]RAPDU: 7D 7A A9 92 18 B8 2D FB 90 00 [18:54:26]wFMCommunicate OK [18:54:26]SAM_PROTO_SignData done [18:54:26]FM_MakeSignedData done [18:54:26]CreateOFDProtocolMessage [18:54:26]wFMCommunicate request_size=4 [18:54:26]MH_SAM_APDU [18:54:26]CAPDU: 80 11 00 00 [18:54:26]Write to MH i2c: E2 08 00 BB 21 80 11 00 00 00 00 00 00 56 [18:54:26]Write i2c OK [18:54:26]MH_I2C_Read... [18:54:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:26]Read from MH i2c: E2 [18:54:26]MH_I2C_Read... [18:54:26]Read from MH i2c: E2 17 00 [18:54:26]MH_I2C_Read... [18:54:26]Read from MH i2c: E2 17 00 BB 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 AD [18:54:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:54:26]wFMCommunicate OK [18:54:26]CreateOFDProtocolMessage done [18:54:26]OFDSenderStorePacket 227613 [18:54:26]StoreOFDPacket docnum=227613 [18:54:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 2E A0 07 01 86 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 01 00 00 F4 03 04 00 E2 51 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1D 79 03 00 35 04 06 00 B4 56 77 FD 2A 71 7D 7A A9 92 18 B8 2D FB [18:54:26]CheckFolder [18:54:26]dirname=/storage/ofd_packets [18:54:26]CheckFolder done [18:54:26]ProducePacketName [18:54:26]name=ofd_packets/00227613 [18:54:26]NVStorageSaveData ofd_packets/00227613 [18:54:26]File name is /storage/ofd_packets/00227613 [18:54:26]Write 301 bytes [18:54:26]NVStorageSaveData done [18:54:26]OFDSenderStorePacket done [18:54:26]KKMCreateOFDPacket done [18:54:26]NVStorageSaveData kkm_last_timestamp [18:54:26]File name is /storage/kkm_last_timestamp [18:54:26]Write 4 bytes [18:54:26]NVStorageSaveData done [18:54:26]ExternCall_PrintAddStr [18:54:26]wPrintStart [18:54:26]Write to MH i2c: 01 00 00 BC 21 DD [18:54:26]Write i2c OK [18:54:26]MH_I2C_Read... [18:54:26]Read from MH i2c: 01 [18:54:26]MH_I2C_Read... [18:54:26]Read from MH i2c: 01 07 00 [18:54:26]MH_I2C_Read... [18:54:26]Read from MH i2c: 01 07 00 BC 21 00 00 00 00 00 FF 0F F2 [18:54:26]RasterBufferAndPrint [18:54:26]line Счет N : (1)1963249 [18:54:26]line ИНН: 02508201610067 [18:54:26]line Контрольно-Кассовый Чек [18:54:26]line ПРОДАЖА [18:54:26]line ТРК (МРК, ГНК) : 64 [18:54:26]line Товар: 2710124500 [18:54:26]line Аи-95-К-5 [18:54:26]line 26.960 * 74.20 [18:54:26]line = 2000.43 [18:54:26]line НДС 12% НСП 1% [18:54:26]line > о реализуемом товаре [18:54:26]line ОКРУГЛЕНИЕ: -0.43 [18:54:26]line ИТОГО: 2000.00 [18:54:26]line Внесено: 2000.00 [18:54:26]line СДАЧА: 0.00 [18:54:26]line НСП 1% : 17.70 [18:54:26]line НДС 12% : 212.43 [18:54:26]line Наличными: 2000.00 [18:54:26]line Безнал.: 0.00 [18:54:26]line Место: АЗС № 133 "Партнер Нефть" [18:54:26]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:54:26]line СНО: Общий режим [18:54:26]line Чек 461 20.10.2024 18:54 [18:54:26]line Смена: 533 ФФД: 1.0 [18:54:26]line ЗНМ: 0300000091 [18:54:26]line РНМ: 0000000000091685 [18:54:26]line Версия ККМ: 001 [18:54:26]line ФМ: 0000000000871839 [18:54:26]line ФД: 227613 [18:54:26]line ФПД: 198283473267313 [18:54:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T185426&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227613&fm=198283473267313&tin=02508201610067®Number=0000000000091685&sum=200000 [18:54:26]OFD Sender: Processing packet 227613 [packets to send 38, broken 37] [18:54:26]ProducePacketName [18:54:26]name=ofd_packets/00227613 [18:54:26]OFD Sender: To server: pG, [18:54:26]CommunicateWithHost lk.salyk.kg:30040 [18:54:26]ConnectInit lk.salyk.kg [18:54:26]written 0, free lines is 4095 [18:54:26]Connected sock=10 [18:54:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 2E A0 07 01 86 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 01 00 00 F4 03 04 00 E2 51 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1D 79 03 00 35 04 06 00 B4 56 77 FD 2A 71 7D 7A A9 92 18 B8 2D FB [18:54: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 33 39 4F 00 00 00 9C 4E 47 00 4B B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1D 79 03 00 F4 03 04 00 E0 FC 14 67 B6 04 01 00 00 27 A1 11 73 31 83 EA 72 [18:54:27]CommunicateWithHost err = 0 [18:54:27]CheckOFDResponse [18:54:27]1017 (14) - 77093643461234 [18:54:27]1041 (16) - 0000000000871839 [18:54:27]1040 (4) - 227613 [18:54:27]1012 (4) - 20.10.2024 12:51 [18:54:27]1206 (1) - 0 [18:54:27]OFD Sender: Remove packet 227613 [18:54:27]ProducePacketName [18:54:27]name=ofd_packets/00227613 [18:54:27]NVStorageDeleteData [18:54:27]Write to MH i2c: 01 00 00 E6 21 07 [18:54:27]Write i2c OK [18:54:27]MH_I2C_Read... [18:54:27]Read from MH i2c: 01 [18:54:27]MH_I2C_Read... [18:54:27]Read from MH i2c: 01 07 00 [18:54:27]MH_I2C_Read... [18:54:27]Read from MH i2c: 01 07 00 E6 21 00 00 00 00 00 10 0D 2B [18:54:27]RasterBufferAndPrint [18:54:27]line [18:54:27]line [18:54:27]line [18:54:27]line [18:54:27]line [18:54:27]written 0, free lines is 3350 [18:54:27]process_action close_receipt done [18:54:27]requested_data is exist [18:54:27]produce_requested_data [18:54:27]requested_item fm.sn is exist - process it [18:54:27]wFMCommunicate request_size=4 [18:54:27]MH_SAM_APDU [18:54:27]CAPDU: 80 11 00 00 [18:54:27]Write to MH i2c: E2 08 00 ED 21 80 11 00 00 00 00 00 00 88 [18:54:27]Write i2c OK [18:54:27]MH_I2C_Read... [18:54:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:27]Read from MH i2c: E2 [18:54:27]MH_I2C_Read... [18:54:27]Read from MH i2c: E2 17 00 [18:54:27]MH_I2C_Read... [18:54:27]Read from MH i2c: E2 17 00 ED 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 DF [18:54:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:54:27]wFMCommunicate OK [18:54:27]requested_item fd.num is exist - process it [18:54:27]SAM_PROTO_GetFieldsCounters [18:54:27]wFMCommunicate request_size=4 [18:54:27]MH_SAM_APDU [18:54:27]CAPDU: 80 13 00 00 [18:54:27]Write to MH i2c: E2 08 00 EE 21 80 13 00 00 00 00 00 00 8B [18:54:27]Write i2c OK [18:54:27]MH_I2C_Read... [18:54:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:54:27]Read from MH i2c: E2 [18:54:27]MH_I2C_Read... [18:54:27]Read from MH i2c: E2 62 00 [18:54:27]MH_I2C_Read... [18:54:27]Read from MH i2c: E2 62 00 EE 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 1D 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 CD 01 00 00 5E 04 04 00 CD 01 00 00 57 04 04 00 CE 01 00 00 19 04 04 00 00 00 00 00 90 00 CE [18:54:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 1D 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 CD 01 00 00 5E 04 04 00 CD 01 00 00 57 04 04 00 CE 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:54:27]wFMCommunicate OK [18:54:27]SAM_PROTO_GetFieldsCounters done [18:54:27]requested_item shift.num is exist - process it [18:54:27]requested_item shift.opened is exist - process it [18:54:27]req_shift_opened [18:54:27]FM_GetShiftState [18:54:27]SAM_PROTO_GetShiftState [18:54:27]wFMCommunicate request_size=4 [18:54:27]MH_SAM_APDU [18:54:27]CAPDU: 80 13 01 00 [18:54:27]Write to MH i2c: E2 08 00 EF 21 80 13 01 00 00 00 00 00 8D [18:54:27]Write i2c OK [18:54:27]MH_I2C_Read... [18:54:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:27]Read from MH i2c: E2 [18:54:27]MH_I2C_Read... [18:54:27]Read from MH i2c: E2 0E 00 [18:54:27]MH_I2C_Read... [18:54:27]Read from MH i2c: E2 0E 00 EF 21 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 A7 [18:54:27]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:54:27]wFMCommunicate OK [18:54:27]SAM_PROTO_GetShiftState done [18:54:27]FM_GetShiftState done [18:54:27]req_shift_opened done [18:54:27]requested_item shift.open_date is exist - process it [18:54:27]req_shift_open_date [18:54:27]req_shift_open_date done [18:54:27]produce_requested_data done [18:54:27]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227613,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [18:54:27]process_action_free close_receipt [18:54:27]json_value_free [18:54:27]json_value_free done [18:54:27]process_json_proto returns [18:54:27]Send response to host [18:54:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227613,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [18:54:27]free response buf [18:54:27]execute_script done [18:54:27]execute_script returns [18:54:27]free content buf [18:54:27]Sock 7.Close socket [18:54:27]Sock 7.Thread stoped [18:54:27]OFD Sender: No OFD packet to send [18:54:32]OFD Sender: No OFD packet to send [18:54:37]OFD Sender: No OFD packet to send [18:54:42]OFD Sender: No OFD packet to send [18:54:47]OFD Sender: No OFD packet to send [18:54:52]OFD Sender: No OFD packet to send [18:54:57]OFD Sender: No OFD packet to send [18:55:01]accept exits with 9 [18:55:01]New connection [18:55:01]New thread 3067219300 created [18:55:01]Thread 3067362660 joined [18:55:01]Waiting for new connection... [18:55:01] Sock 9.Parse request [18:55:01]Sock 9.Check first char [18:55:01]Sock 9.First char is OK [18:55:01]request: POST /json_proto HTTP/1.0 [18:55:01]Method: POST [18:55:01]URL: /json_proto [18:55:01]Method is POST - this is cgi request [18:55:01]url: /json_proto [18:55:01]query_string will be loaded in cgi processing [18:55:01]execute_cgi json_proto POST (null) [18:55:01]execute_cgi path=json_proto method=POST [18:55:01]POST find Content-Length [18:55:01]Host: 172.17.44.195:8080 [18:55:01]Content-Length: 678 [18:55:01]Content-Type: application/json [18:55:01] [18:55:01]POST finish read [18:55:01]Found Content-Length = 678 [18:55:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963250", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:55:01]execute_script... [18:55:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963250", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:55:01]POST & json_proto [18:55:01]process_json_proto [18:55:01]json parsed OK: [18:55:01]protocol is kg_v1.0 [18:55:01]action value=close_receipt [18:55:01]process_action close_receipt [18:55:01]cmd_close_receipt [18:55:01]MH_GetDate [18:55:01]Write to MH i2c: F0 00 00 F0 21 00 [18:55:01]Write i2c OK [18:55:01]MH_I2C_Read... [18:55:01]Read from MH i2c: F0 [18:55:01]MH_I2C_Read... [18:55:01]Read from MH i2c: F0 09 00 [18:55:01]MH_I2C_Read... [18:55:01]Read from MH i2c: F0 09 00 F0 21 00 07 52 15 67 82 C9 CF 66 5E [18:55:01]GetLastDocTimeStamp 1729450466 [18:55:01]current date 1729450503 [18:55:01]FM_GetShiftState [18:55:01]SAM_PROTO_GetShiftState [18:55:01]wFMCommunicate request_size=4 [18:55:01]MH_SAM_APDU [18:55:01]CAPDU: 80 13 01 00 [18:55:01]Write to MH i2c: E2 08 00 F1 21 80 13 01 00 00 00 00 00 8F [18:55:01]Write i2c OK [18:55:01]MH_I2C_Read... [18:55:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:55:01]Read from MH i2c: E2 [18:55:01]MH_I2C_Read... [18:55:01]Read from MH i2c: E2 0E 00 [18:55:01]MH_I2C_Read... [18:55:01]Read from MH i2c: E2 0E 00 F1 21 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 A9 [18:55:01]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:55:01]wFMCommunicate OK [18:55:01]SAM_PROTO_GetShiftState done [18:55:01]FM_GetShiftState done [18:55:01]opened in 1729383750 [18:55:01]opened+sec_in_day 1729470150 [18:55:01]quantity*price = 30038 [18:55:01]sum+1 = 30039 [18:55:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 462 20.10.2024 18:55 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227614 ФПД: 105154773660827 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T185503&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227614&fm=105154773660827&tin=02508201610067®Number=0000000000091685&sum=30000 [18:55:02]StoreToDocumentArchive [18:55:02]shift 533 fd 227614 [18:55:02]save to /storage/0533/doc_00227614 [18:55:02]save last doc name /storage/0533/doc_00227614 to /storage/kkm_last_doc_name [18:55:02]save OK [18:55:02]Clear old archive folders... [18:55:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:55:02]tlvbuf is B6E0C4D0 [18:55:02]SAM_PROTO_ClearQueue [18:55:02]wFMCommunicate request_size=4 [18:55:02]MH_SAM_APDU [18:55:02]CAPDU: 80 09 00 00 [18:55:02]Write to MH i2c: E2 08 00 FE 21 80 09 00 00 00 00 00 00 91 [18:55:02]Write i2c OK [18:55:02]MH_I2C_Read... [18:55:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:55:02]Read from MH i2c: E2 [18:55:02]MH_I2C_Read... [18:55:02]Read from MH i2c: E2 03 00 [18:55:02]MH_I2C_Read... [18:55:02]Read from MH i2c: E2 03 00 FE 21 00 90 00 93 [18:55:02]RAPDU: 90 00 [18:55:02]wFMCommunicate OK [18:55:02]SAM_PROTO_ClearQueue done [18:55:02]KKMCreateOFDPacket [18:55:02]OFDProtocolAddRootSTLVToBuf [18:55:02]FM_MakeSignedData [18:55:02]FM_MakeSignedData [18:55:02]SAM_PROTO_SignData [18:55:02]wFMCommunicate request_size=4 [18:55:02]MH_SAM_APDU [18:55:02]CAPDU: 80 0D 01 02 [18:55:02]Write to MH i2c: E2 08 00 FF 21 80 0D 01 02 00 00 00 00 99 [18:55:02]Write i2c OK [18:55:02]MH_I2C_Read... [18:55:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:55:02]Read from MH i2c: E2 [18:55:02]MH_I2C_Read... [18:55:02]Read from MH i2c: E2 03 00 [18:55:02]MH_I2C_Read... [18:55:02]Read from MH i2c: E2 03 00 FF 21 00 90 00 94 [18:55:02]RAPDU: 90 00 [18:55:02]wFMCommunicate OK [18:55:02]wFMCommunicate request_size=255 [18:55:02]MH_SAM_APDU [18:55:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 01 00 00 F4 03 04 00 07 52 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1E 79 03 00 35 04 06 00 5F [18:55:02]Write to MH i2c: E2 02 01 00 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 01 00 00 F4 03 04 00 07 52 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1E 79 03 00 35 04 06 00 5F 00 00 D9 [18:55:02]Write i2c OK [18:55:02]MH_I2C_Read... [18:55:02]OFD Sender: No OFD packet to send [18:55:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:55:02]Read from MH i2c: E2 [18:55:02]MH_I2C_Read... [18:55:02]Read from MH i2c: E2 03 00 [18:55:02]MH_I2C_Read... [18:55:02]Read from MH i2c: E2 03 00 00 22 00 90 00 96 [18:55:02]RAPDU: 90 00 [18:55:02]wFMCommunicate OK [18:55:02]wFMCommunicate request_size=10 [18:55:02]MH_SAM_APDU [18:55:02]CAPDU: 80 0D 02 02 05 A3 40 EE 34 9B [18:55:02]Write to MH i2c: E2 0D 00 01 22 80 0D 02 02 05 00 A3 40 EE 34 9B 00 00 47 [18:55:02]Write i2c OK [18:55:02]MH_I2C_Read... [18:55:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:55:02]Read from MH i2c: E2 [18:55:02]MH_I2C_Read... [18:55:02]Read from MH i2c: E2 03 00 [18:55:02]MH_I2C_Read... [18:55:02]Read from MH i2c: E2 03 00 01 22 00 90 00 97 [18:55:02]RAPDU: 90 00 [18:55:02]wFMCommunicate OK [18:55:02]wFMCommunicate request_size=4 [18:55:02]MH_SAM_APDU [18:55:02]CAPDU: 80 0D 03 02 [18:55:02]Write to MH i2c: E2 08 00 02 22 80 0D 03 02 00 00 00 00 9F [18:55:02]Write i2c OK [18:55:02]MH_I2C_Read... [18:55:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:55:02]Read from MH i2c: E2 [18:55:02]MH_I2C_Read... [18:55:02]Read from MH i2c: E2 0B 00 [18:55:02]MH_I2C_Read... [18:55:03]Read from MH i2c: E2 0B 00 02 22 00 A4 CC E4 AA E4 50 D4 27 90 00 CD [18:55:03]RAPDU: A4 CC E4 AA E4 50 D4 27 90 00 [18:55:03]wFMCommunicate OK [18:55:03]SAM_PROTO_SignData done [18:55:03]FM_MakeSignedData done [18:55:03]CreateOFDProtocolMessage [18:55:03]wFMCommunicate request_size=4 [18:55:03]MH_SAM_APDU [18:55:03]CAPDU: 80 11 00 00 [18:55:03]Write to MH i2c: E2 08 00 03 22 80 11 00 00 00 00 00 00 9F [18:55:03]Write i2c OK [18:55:03]MH_I2C_Read... [18:55:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:55:03]Read from MH i2c: E2 [18:55:03]MH_I2C_Read... [18:55:03]Read from MH i2c: E2 17 00 [18:55:03]MH_I2C_Read... [18:55:03]Read from MH i2c: E2 17 00 03 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F6 [18:55:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:55:03]wFMCommunicate OK [18:55:03]CreateOFDProtocolMessage done [18:55:03]OFDSenderStorePacket 227614 [18:55:03]StoreOFDPacket docnum=227614 [18:55:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 8B A9 07 01 0F CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 01 00 00 F4 03 04 00 07 52 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1E 79 03 00 35 04 06 00 5F A3 40 EE 34 9B A4 CC E4 AA E4 50 D4 27 [18:55:03]CheckFolder [18:55:03]dirname=/storage/ofd_packets [18:55:03]CheckFolder done [18:55:03]ProducePacketName [18:55:03]name=ofd_packets/00227614 [18:55:03]NVStorageSaveData ofd_packets/00227614 [18:55:03]File name is /storage/ofd_packets/00227614 [18:55:03]Write 301 bytes [18:55:03]NVStorageSaveData done [18:55:03]OFDSenderStorePacket done [18:55:03]KKMCreateOFDPacket done [18:55:03]NVStorageSaveData kkm_last_timestamp [18:55:03]File name is /storage/kkm_last_timestamp [18:55:03]Write 4 bytes [18:55:03]NVStorageSaveData done [18:55:03]ExternCall_PrintAddStr [18:55:03]wPrintStart [18:55:03]Write to MH i2c: 01 00 00 04 22 26 [18:55:03]OFD Sender: Processing packet 227614 [packets to send 38, broken 37] [18:55:03]ProducePacketName [18:55:03]name=ofd_packets/00227614 [18:55:03]OFD Sender: To server: pG, [18:55:03]CommunicateWithHost lk.salyk.kg:30040 [18:55:03]ConnectInit lk.salyk.kg [18:55:03]Write i2c OK [18:55:03]MH_I2C_Read... [18:55:03]Read from MH i2c: 01 [18:55:03]MH_I2C_Read... [18:55:03]Read from MH i2c: 01 07 00 [18:55:03]MH_I2C_Read... [18:55:03]Read from MH i2c: 01 07 00 04 22 00 00 00 00 00 FF 0F 3B [18:55:03]RasterBufferAndPrint [18:55:03]line Счет N : (1)1963250 [18:55:03]line ИНН: 02508201610067 [18:55:03]line Контрольно-Кассовый Чек [18:55:03]line ПРОДАЖА [18:55:03]line ТРК (МРК, ГНК) : 33 [18:55:03]line Товар: 2710124130 [18:55:03]line Аи-92-К-5 [18:55:03]line 4.490 * 66.90 [18:55:03]line = 300.38 [18:55:03]line НДС 12% НСП 1% [18:55:03]line > о реализуемом товаре [18:55:03]line ОКРУГЛЕНИЕ: -0.38 [18:55:03]line ИТОГО: 300.00 [18:55:03]line Внесено: 300.00 [18:55:03]line СДАЧА: 0.00 [18:55:03]line НСП 1% : 2.66 [18:55:03]line НДС 12% : 31.90 [18:55:03]line Наличными: 300.00 [18:55:03]line Безнал.: 0.00 [18:55:03]line Место: АЗС № 133 "Партнер Нефть" [18:55:03]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:55:03]line СНО: Общий режим [18:55:03]line Чек 462 20.10.2024 18:55 [18:55:03]line Смена: 533 ФФД: 1.0 [18:55:03]line ЗНМ: 0300000091 [18:55:03]line РНМ: 0000000000091685 [18:55:03]line Версия ККМ: 001 [18:55:03]line ФМ: 0000000000871839 [18:55:03]line ФД: 227614 [18:55:03]line ФПД: 105154773660827 [18:55:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T185503&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227614&fm=105154773660827&tin=02508201610067®Number=0000000000091685&sum=30000 [18:55:03]written 0, free lines is 4095 [18:55:03]Write to MH i2c: 01 00 00 2E 22 50 [18:55:03]Write i2c OK [18:55:03]MH_I2C_Read... [18:55:03]Read from MH i2c: 01 [18:55:03]MH_I2C_Read... [18:55:03]Read from MH i2c: 01 07 00 [18:55:03]MH_I2C_Read... [18:55:03]Read from MH i2c: 01 07 00 2E 22 00 00 00 00 00 02 0D 66 [18:55:03]RasterBufferAndPrint [18:55:03]line [18:55:03]line [18:55:03]line [18:55:03]line [18:55:03]line [18:55:03]written 0, free lines is 3336 [18:55:03]process_action close_receipt done [18:55:03]requested_data is exist [18:55:03]produce_requested_data [18:55:03]requested_item fm.sn is exist - process it [18:55:03]wFMCommunicate request_size=4 [18:55:03]MH_SAM_APDU [18:55:03]CAPDU: 80 11 00 00 [18:55:03]Write to MH i2c: E2 08 00 35 22 80 11 00 00 00 00 00 00 D1 [18:55:03]Write i2c OK [18:55:03]MH_I2C_Read... [18:55:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:55:03]Read from MH i2c: E2 [18:55:03]MH_I2C_Read... [18:55:03]Read from MH i2c: E2 17 00 [18:55:03]MH_I2C_Read... [18:55:03]Read from MH i2c: E2 17 00 35 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 28 [18:55:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:55:03]wFMCommunicate OK [18:55:03]requested_item fd.num is exist - process it [18:55:03]SAM_PROTO_GetFieldsCounters [18:55:03]wFMCommunicate request_size=4 [18:55:03]MH_SAM_APDU [18:55:03]CAPDU: 80 13 00 00 [18:55:03]Write to MH i2c: E2 08 00 36 22 80 13 00 00 00 00 00 00 D4 [18:55:03]Write i2c OK [18:55:03]MH_I2C_Read... [18:55:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:55:04]Read from MH i2c: E2 [18:55:04]MH_I2C_Read... [18:55:04]Read from MH i2c: E2 62 00 [18:55:04]MH_I2C_Read... [18:55:04]Read from MH i2c: E2 62 00 36 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 1E 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 CE 01 00 00 5E 04 04 00 CE 01 00 00 57 04 04 00 CF 01 00 00 19 04 04 00 00 00 00 00 90 00 1B [18:55: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 1E 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 CE 01 00 00 5E 04 04 00 CE 01 00 00 57 04 04 00 CF 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:55:04]wFMCommunicate OK [18:55:04]SAM_PROTO_GetFieldsCounters done [18:55:04]requested_item shift.num is exist - process it [18:55:04]requested_item shift.opened is exist - process it [18:55:04]req_shift_opened [18:55:04]FM_GetShiftState [18:55:04]SAM_PROTO_GetShiftState [18:55:04]wFMCommunicate request_size=4 [18:55:04]MH_SAM_APDU [18:55:04]CAPDU: 80 13 01 00 [18:55:04]Write to MH i2c: E2 08 00 37 22 80 13 01 00 00 00 00 00 D6 [18:55:04]Write i2c OK [18:55:04]MH_I2C_Read... [18:55:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:55:04]Read from MH i2c: E2 [18:55:04]MH_I2C_Read... [18:55:04]Read from MH i2c: E2 0E 00 [18:55:04]MH_I2C_Read... [18:55:04]Read from MH i2c: E2 0E 00 37 22 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 F0 [18:55:04]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:55:04]wFMCommunicate OK [18:55:04]SAM_PROTO_GetShiftState done [18:55:04]FM_GetShiftState done [18:55:04]req_shift_opened done [18:55:04]requested_item shift.open_date is exist - process it [18:55:04]req_shift_open_date [18:55:04]req_shift_open_date done [18:55:04]produce_requested_data done [18:55:04]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227614,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [18:55:04]process_action_free close_receipt [18:55:04]json_value_free [18:55:04]json_value_free done [18:55:04]process_json_proto returns [18:55:04]Send response to host [18:55:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227614,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [18:55:04]free response buf [18:55:04]execute_script done [18:55:04]execute_script returns [18:55:04]free content buf [18:55:04]Sock 9.Close socket [18:55:04]Sock 9.Thread stoped [18:55:14]accept exits with 7 [18:55:14]New connection [18:55:14]New thread 3067362660 created [18:55:14]Thread 3067219300 joined [18:55:14]Waiting for new connection... [18:55:14] Sock 7.Parse request [18:55:14]Sock 7.Check first char [18:55:14]Sock 7.First char is OK [18:55:14]request: POST /json_proto HTTP/1.0 [18:55:14]Method: POST [18:55:14]URL: /json_proto [18:55:14]Method is POST - this is cgi request [18:55:14]url: /json_proto [18:55:14]query_string will be loaded in cgi processing [18:55:14]execute_cgi json_proto POST (null) [18:55:14]execute_cgi path=json_proto method=POST [18:55:14]POST find Content-Length [18:55:14]Host: 172.17.44.195:8080 [18:55:14]Content-Length: 679 [18:55:14]Content-Type: application/json [18:55:14] [18:55:14]POST finish read [18:55:14]Found Content-Length = 679 [18:55:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963251", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:55:14]execute_script... [18:55: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)1963251", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:55:14]POST & json_proto [18:55:14]process_json_proto [18:55:14]json parsed OK: [18:55:14]protocol is kg_v1.0 [18:55:14]action value=close_receipt [18:55:14]process_action close_receipt [18:55:14]cmd_close_receipt [18:55:14]MH_GetDate [18:55:14]Write to MH i2c: F0 00 00 38 22 49 [18:55:14]Write i2c OK [18:55:14]MH_I2C_Read... [18:55:14]Read from MH i2c: F0 [18:55:14]MH_I2C_Read... [18:55:14]Read from MH i2c: F0 09 00 [18:55:14]MH_I2C_Read... [18:55:14]Read from MH i2c: F0 09 00 38 22 00 14 52 15 67 82 C9 CF 66 B4 [18:55:14]GetLastDocTimeStamp 1729450503 [18:55:14]current date 1729450516 [18:55:14]FM_GetShiftState [18:55:14]SAM_PROTO_GetShiftState [18:55:14]wFMCommunicate request_size=4 [18:55:14]MH_SAM_APDU [18:55:14]CAPDU: 80 13 01 00 [18:55:14]Write to MH i2c: E2 08 00 39 22 80 13 01 00 00 00 00 00 D8 [18:55:14]Write i2c OK [18:55:14]MH_I2C_Read... [18:55:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:55:14]Read from MH i2c: E2 [18:55:14]MH_I2C_Read... [18:55:14]Read from MH i2c: E2 0E 00 [18:55:14]MH_I2C_Read... [18:55:14]Read from MH i2c: E2 0E 00 39 22 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 F2 [18:55:14]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:55:14]wFMCommunicate OK [18:55:14]SAM_PROTO_GetShiftState done [18:55:14]FM_GetShiftState done [18:55:14]opened in 1729383750 [18:55:14]opened+sec_in_day 1729470150 [18:55:14]quantity*price = 80061 [18:55:14]sum+1 = 80063 [18:55:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 463 20.10.2024 18:55 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227615 ФПД: 244411648771962 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T185516&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227615&fm=244411648771962&tin=02508201610067®Number=0000000000091685&sum=80000 [18:55:15]StoreToDocumentArchive [18:55:15]shift 533 fd 227615 [18:55:15]save to /storage/0533/doc_00227615 [18:55:15]save last doc name /storage/0533/doc_00227615 to /storage/kkm_last_doc_name [18:55:15]save OK [18:55:15]Clear old archive folders... [18:55:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:55:15]tlvbuf is 00DE28D0 [18:55:15]SAM_PROTO_ClearQueue [18:55:15]wFMCommunicate request_size=4 [18:55:15]MH_SAM_APDU [18:55:15]CAPDU: 80 09 00 00 [18:55:15]Write to MH i2c: E2 08 00 46 22 80 09 00 00 00 00 00 00 DA [18:55:15]Write i2c OK [18:55:15]MH_I2C_Read... [18:55:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:55:15]Read from MH i2c: E2 [18:55:15]MH_I2C_Read... [18:55:15]Read from MH i2c: E2 03 00 [18:55:15]MH_I2C_Read... [18:55:15]Read from MH i2c: E2 03 00 46 22 00 90 00 DC [18:55:15]RAPDU: 90 00 [18:55:15]wFMCommunicate OK [18:55:15]SAM_PROTO_ClearQueue done [18:55:15]KKMCreateOFDPacket [18:55:15]OFDProtocolAddRootSTLVToBuf [18:55:15]FM_MakeSignedData [18:55:15]FM_MakeSignedData [18:55:15]SAM_PROTO_SignData [18:55:15]wFMCommunicate request_size=4 [18:55:15]MH_SAM_APDU [18:55:15]CAPDU: 80 0D 01 02 [18:55:15]Write to MH i2c: E2 08 00 47 22 80 0D 01 02 00 00 00 00 E2 [18:55:15]Write i2c OK [18:55:15]MH_I2C_Read... [18:55:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:55:15]Read from MH i2c: E2 [18:55:15]MH_I2C_Read... [18:55:15]Read from MH i2c: E2 03 00 [18:55:15]MH_I2C_Read... [18:55:15]Read from MH i2c: E2 03 00 47 22 00 90 00 DD [18:55:15]RAPDU: 90 00 [18:55:15]wFMCommunicate OK [18:55:15]wFMCommunicate request_size=255 [18:55:15]MH_SAM_APDU [18:55:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 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 CF 01 00 00 F4 03 04 00 14 52 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1F 79 03 00 35 04 06 00 DE [18:55:15]Write to MH i2c: E2 02 01 48 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 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 CF 01 00 00 F4 03 04 00 14 52 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1F 79 03 00 35 04 06 00 DE 00 00 28 [18:55:15]Write i2c OK [18:55:15]MH_I2C_Read... [18:55:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:55:16]Read from MH i2c: E2 [18:55:16]MH_I2C_Read... [18:55:16]Read from MH i2c: E2 03 00 [18:55:16]MH_I2C_Read... [18:55:16]Read from MH i2c: E2 03 00 48 22 00 90 00 DE [18:55:16]RAPDU: 90 00 [18:55:16]wFMCommunicate OK [18:55:16]wFMCommunicate request_size=10 [18:55:16]MH_SAM_APDU [18:55:16]CAPDU: 80 0D 02 02 05 4A 85 81 07 7A [18:55:16]Write to MH i2c: E2 0D 00 49 22 80 0D 02 02 05 00 4A 85 81 07 7A 00 00 C0 [18:55:16]Write i2c OK [18:55:16]MH_I2C_Read... [18:55:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:55:16]Read from MH i2c: E2 [18:55:16]MH_I2C_Read... [18:55:16]Read from MH i2c: E2 03 00 [18:55:16]MH_I2C_Read... [18:55:16]Read from MH i2c: E2 03 00 49 22 00 90 00 DF [18:55:16]RAPDU: 90 00 [18:55:16]wFMCommunicate OK [18:55:16]wFMCommunicate request_size=4 [18:55:16]MH_SAM_APDU [18:55:16]CAPDU: 80 0D 03 02 [18:55:16]Write to MH i2c: E2 08 00 4A 22 80 0D 03 02 00 00 00 00 E7 [18:55:16]Write i2c OK [18:55:16]MH_I2C_Read... [18:55:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:55:16]Read from MH i2c: E2 [18:55:16]MH_I2C_Read... [18:55:16]Read from MH i2c: E2 0B 00 [18:55:16]MH_I2C_Read... [18:55:16]Read from MH i2c: E2 0B 00 4A 22 00 35 39 88 BC 59 F1 09 47 90 00 34 [18:55:16]RAPDU: 35 39 88 BC 59 F1 09 47 90 00 [18:55:16]wFMCommunicate OK [18:55:16]SAM_PROTO_SignData done [18:55:16]FM_MakeSignedData done [18:55:16]CreateOFDProtocolMessage [18:55:16]wFMCommunicate request_size=4 [18:55:16]MH_SAM_APDU [18:55:16]CAPDU: 80 11 00 00 [18:55:16]Write to MH i2c: E2 08 00 4B 22 80 11 00 00 00 00 00 00 E7 [18:55:16]Write i2c OK [18:55:16]MH_I2C_Read... [18:55:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:55:16]Read from MH i2c: E2 [18:55:16]MH_I2C_Read... [18:55:16]Read from MH i2c: E2 17 00 [18:55:16]MH_I2C_Read... [18:55:16]Read from MH i2c: E2 17 00 4B 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 3E [18:55:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:55:16]wFMCommunicate OK [18:55:16]CreateOFDProtocolMessage done [18:55:16]OFDSenderStorePacket 227615 [18:55:16]StoreOFDPacket docnum=227615 [18:55:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 13 C1 07 01 4C 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 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 CF 01 00 00 F4 03 04 00 14 52 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1F 79 03 00 35 04 06 00 DE 4A 85 81 07 7A 35 39 88 BC 59 F1 09 47 [18:55:16]CheckFolder [18:55:16]dirname=/storage/ofd_packets [18:55:16]CheckFolder done [18:55:16]ProducePacketName [18:55:16]name=ofd_packets/00227615 [18:55:16]NVStorageSaveData ofd_packets/00227615 [18:55:16]File name is /storage/ofd_packets/00227615 [18:55:16]Write 301 bytes [18:55:16]NVStorageSaveData done [18:55:16]OFDSenderStorePacket done [18:55:16]KKMCreateOFDPacket done [18:55:16]NVStorageSaveData kkm_last_timestamp [18:55:16]File name is /storage/kkm_last_timestamp [18:55:16]Write 4 bytes [18:55:16]NVStorageSaveData done [18:55:16]ExternCall_PrintAddStr [18:55:16]wPrintStart [18:55:16]Write to MH i2c: 01 00 00 4C 22 6E [18:55:16]Write i2c OK [18:55:16]MH_I2C_Read... [18:55:16]Read from MH i2c: 01 [18:55:16]MH_I2C_Read... [18:55:16]Read from MH i2c: 01 07 00 [18:55:16]MH_I2C_Read... [18:55:16]Read from MH i2c: 01 07 00 4C 22 00 00 00 00 00 FF 0F 83 [18:55:16]RasterBufferAndPrint [18:55:16]line Счет N : (1)1963251 [18:55:16]line ИНН: 02508201610067 [18:55:16]line Контрольно-Кассовый Чек [18:55:16]line ПРОДАЖА [18:55:16]line ТРК (МРК, ГНК) : 54 [18:55:16]line Товар: 2710124500 [18:55:16]line Аи-95-К-5 [18:55:16]line 10.790 * 74.20 [18:55:16]line = 800.62 [18:55:16]line НДС 12% НСП 1% [18:55:16]line > о реализуемом товаре [18:55:16]line ОКРУГЛЕНИЕ: -0.62 [18:55:16]line ИТОГО: 800.00 [18:55:16]line Внесено: 800.00 [18:55:16]line СДАЧА: 0.00 [18:55:16]line НСП 1% : 7.08 [18:55:16]line НДС 12% : 85.02 [18:55:16]line Наличными: 800.00 [18:55:16]line Безнал.: 0.00 [18:55:16]line Место: АЗС № 133 "Партнер Нефть" [18:55:16]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:55:16]line СНО: Общий режим [18:55:16]line Чек 463 20.10.2024 18:55 [18:55:16]line Смена: 533 ФФД: 1.0 [18:55:16]line ЗНМ: 0300000091 [18:55:16]line РНМ: 0000000000091685 [18:55:16]line Версия ККМ: 001 [18:55:16]line ФМ: 0000000000871839 [18:55:16]line ФД: 227615 [18:55:16]line ФПД: 244411648771962 [18:55:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T185516&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227615&fm=244411648771962&tin=02508201610067®Number=0000000000091685&sum=80000 [18:55:16]written 0, free lines is 4095 [18:55:17]Write to MH i2c: 01 00 00 76 22 98 [18:55:17]Write i2c OK [18:55:17]MH_I2C_Read... [18:55:17]Read from MH i2c: 01 [18:55:17]MH_I2C_Read... [18:55:17]Read from MH i2c: 01 07 00 [18:55:17]MH_I2C_Read... [18:55:17]Read from MH i2c: 01 07 00 76 22 00 00 00 00 00 02 0D AE [18:55:17]RasterBufferAndPrint [18:55:17]line [18:55:17]line [18:55:17]line [18:55:17]line [18:55:17]line [18:55:17]written 0, free lines is 3336 [18:55:17]process_action close_receipt done [18:55:17]requested_data is exist [18:55:17]produce_requested_data [18:55:17]requested_item fm.sn is exist - process it [18:55:17]wFMCommunicate request_size=4 [18:55:17]MH_SAM_APDU [18:55:17]CAPDU: 80 11 00 00 [18:55:17]Write to MH i2c: E2 08 00 7D 22 80 11 00 00 00 00 00 00 19 [18:55:17]Write i2c OK [18:55:17]MH_I2C_Read... [18:55:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:55:17]Read from MH i2c: E2 [18:55:17]MH_I2C_Read... [18:55:17]Read from MH i2c: E2 17 00 [18:55:17]MH_I2C_Read... [18:55:17]Read from MH i2c: E2 17 00 7D 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 70 [18:55:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:55:17]wFMCommunicate OK [18:55:17]requested_item fd.num is exist - process it [18:55:17]SAM_PROTO_GetFieldsCounters [18:55:17]wFMCommunicate request_size=4 [18:55:17]MH_SAM_APDU [18:55:17]CAPDU: 80 13 00 00 [18:55:17]Write to MH i2c: E2 08 00 7E 22 80 13 00 00 00 00 00 00 1C [18:55:17]Write i2c OK [18:55:17]MH_I2C_Read... [18:55:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:55:17]Read from MH i2c: E2 [18:55:17]MH_I2C_Read... [18:55:17]Read from MH i2c: E2 62 00 [18:55:17]MH_I2C_Read... [18:55:17]Read from MH i2c: E2 62 00 7E 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 1F 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 CF 01 00 00 5E 04 04 00 CF 01 00 00 57 04 04 00 D0 01 00 00 19 04 04 00 00 00 00 00 90 00 67 [18:55:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 1F 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 CF 01 00 00 5E 04 04 00 CF 01 00 00 57 04 04 00 D0 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:55:17]wFMCommunicate OK [18:55:17]SAM_PROTO_GetFieldsCounters done [18:55:17]requested_item shift.num is exist - process it [18:55:17]requested_item shift.opened is exist - process it [18:55:17]req_shift_opened [18:55:17]FM_GetShiftState [18:55:17]SAM_PROTO_GetShiftState [18:55:17]wFMCommunicate request_size=4 [18:55:17]MH_SAM_APDU [18:55:17]CAPDU: 80 13 01 00 [18:55:17]Write to MH i2c: E2 08 00 7F 22 80 13 01 00 00 00 00 00 1E [18:55:17]Write i2c OK [18:55:17]MH_I2C_Read... [18:55:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:55:17]Read from MH i2c: E2 [18:55:17]MH_I2C_Read... [18:55:17]Read from MH i2c: E2 0E 00 [18:55:17]MH_I2C_Read... [18:55:17]Read from MH i2c: E2 0E 00 7F 22 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 38 [18:55:17]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:55:17]wFMCommunicate OK [18:55:17]SAM_PROTO_GetShiftState done [18:55:17]FM_GetShiftState done [18:55:17]req_shift_opened done [18:55:17]requested_item shift.open_date is exist - process it [18:55:17]req_shift_open_date [18:55:17]req_shift_open_date done [18:55:17]produce_requested_data done [18:55:17]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227615,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [18:55:17]process_action_free close_receipt [18:55:17]json_value_free [18:55:17]json_value_free done [18:55:17]process_json_proto returns [18:55:17]Send response to host [18:55:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227615,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [18:55:17]free response buf [18:55:17]execute_script done [18:55:17]execute_script returns [18:55:17]free content buf [18:55:17]Sock 7.Close socket [18:55:17]Sock 7.Thread stoped [18:56:23]accept exits with 9 [18:56:23]New connection [18:56:23]New thread 3067219300 created [18:56:23]Thread 3067362660 joined [18:56:23]Waiting for new connection... [18:56:23] Sock 9.Parse request [18:56:23]Sock 9.Check first char [18:56:23]Sock 9.First char is OK [18:56:23]request: POST /json_proto HTTP/1.0 [18:56:23]Method: POST [18:56:23]URL: /json_proto [18:56:23]Method is POST - this is cgi request [18:56:23]url: /json_proto [18:56:23]query_string will be loaded in cgi processing [18:56:23]execute_cgi json_proto POST (null) [18:56:23]execute_cgi path=json_proto method=POST [18:56:23]POST find Content-Length [18:56:23]Host: 172.17.44.195:8080 [18:56:23]Content-Length: 844 [18:56:23]Content-Type: application/json [18:56:23] [18:56:23]POST finish read [18:56:23]Found Content-Length = 844 [18:56:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963252", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:56:23]execute_script... [18:56:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963252", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:56:23]POST & json_proto [18:56:23]process_json_proto [18:56:23]json parsed OK: [18:56:23]protocol is kg_v1.0 [18:56:23]action value=close_receipt [18:56:23]process_action close_receipt [18:56:23]cmd_close_receipt [18:56:23]MH_GetDate [18:56:23]Write to MH i2c: F0 00 00 80 22 91 [18:56:23]Write i2c OK [18:56:23]MH_I2C_Read... [18:56:23]Read from MH i2c: F0 [18:56:23]MH_I2C_Read... [18:56:23]Read from MH i2c: F0 09 00 [18:56:23]MH_I2C_Read... [18:56:23]Read from MH i2c: F0 09 00 80 22 00 58 52 15 67 82 C9 CF 66 40 [18:56:23]GetLastDocTimeStamp 1729450516 [18:56:23]current date 1729450584 [18:56:23]FM_GetShiftState [18:56:23]SAM_PROTO_GetShiftState [18:56:23]wFMCommunicate request_size=4 [18:56:23]MH_SAM_APDU [18:56:23]CAPDU: 80 13 01 00 [18:56:23]Write to MH i2c: E2 08 00 81 22 80 13 01 00 00 00 00 00 20 [18:56:23]Write i2c OK [18:56:23]MH_I2C_Read... [18:56:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:23]Read from MH i2c: E2 [18:56:23]MH_I2C_Read... [18:56:23]Read from MH i2c: E2 0E 00 [18:56:23]MH_I2C_Read... [18:56:23]Read from MH i2c: E2 0E 00 81 22 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 3A [18:56:23]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:56:23]wFMCommunicate OK [18:56:23]SAM_PROTO_GetShiftState done [18:56:23]FM_GetShiftState done [18:56:23]opened in 1729383750 [18:56:23]opened+sec_in_day 1729470150 [18:56:23]quantity*price = 150056 [18:56:23]sum+1 = 150058 [18:56:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.57 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 0.00 Безнал.: 1500.57 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 464 20.10.2024 18:56 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000871839 ФД: 227616 ФПД: 47142288442490 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T185624&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227616&fm=47142288442490&tin=02508201610067®Number=0000000000091685&sum=150057 [18:56:24]StoreToDocumentArchive [18:56:24]shift 533 fd 227616 [18:56:24]save to /storage/0533/doc_00227616 [18:56:24]save last doc name /storage/0533/doc_00227616 to /storage/kkm_last_doc_name [18:56:24]save OK [18:56:24]Clear old archive folders... [18:56:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:56:24]tlvbuf is 00D84C10 [18:56:24]SAM_PROTO_ClearQueue [18:56:24]wFMCommunicate request_size=4 [18:56:24]MH_SAM_APDU [18:56:24]CAPDU: 80 09 00 00 [18:56:24]Write to MH i2c: E2 08 00 8E 22 80 09 00 00 00 00 00 00 22 [18:56:24]Write i2c OK [18:56:24]MH_I2C_Read... [18:56:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:56:24]Read from MH i2c: E2 [18:56:24]MH_I2C_Read... [18:56:24]Read from MH i2c: E2 03 00 [18:56:24]MH_I2C_Read... [18:56:24]Read from MH i2c: E2 03 00 8E 22 00 90 00 24 [18:56:24]RAPDU: 90 00 [18:56:24]wFMCommunicate OK [18:56:24]SAM_PROTO_ClearQueue done [18:56:24]KKMCreateOFDPacket [18:56:24]OFDProtocolAddRootSTLVToBuf [18:56:24]FM_MakeSignedData [18:56:24]FM_MakeSignedData [18:56:24]SAM_PROTO_SignData [18:56:24]wFMCommunicate request_size=4 [18:56:24]MH_SAM_APDU [18:56:24]CAPDU: 80 0D 01 02 [18:56:24]Write to MH i2c: E2 08 00 8F 22 80 0D 01 02 00 00 00 00 2A [18:56:24]Write i2c OK [18:56:24]MH_I2C_Read... [18:56:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:56:24]Read from MH i2c: E2 [18:56:24]MH_I2C_Read... [18:56:24]Read from MH i2c: E2 03 00 [18:56:24]MH_I2C_Read... [18:56:24]Read from MH i2c: E2 03 00 8F 22 00 90 00 25 [18:56:24]RAPDU: 90 00 [18:56:24]wFMCommunicate OK [18:56:24]wFMCommunicate request_size=255 [18:56:24]MH_SAM_APDU [18:56:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 01 00 00 F4 03 04 00 58 52 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 20 79 03 00 35 04 06 00 2A [18:56:24]Write to MH i2c: E2 02 01 90 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 01 00 00 F4 03 04 00 58 52 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 20 79 03 00 35 04 06 00 2A 00 00 52 [18:56:24]Write i2c OK [18:56:24]MH_I2C_Read... [18:56:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:24]Read from MH i2c: E2 [18:56:24]MH_I2C_Read... [18:56:24]Read from MH i2c: E2 03 00 [18:56:24]MH_I2C_Read... [18:56:24]Read from MH i2c: E2 03 00 90 22 00 90 00 26 [18:56:24]RAPDU: 90 00 [18:56:24]wFMCommunicate OK [18:56:24]wFMCommunicate request_size=10 [18:56:24]MH_SAM_APDU [18:56:24]CAPDU: 80 0D 02 02 05 E0 2B 5B 44 7A [18:56:24]Write to MH i2c: E2 0D 00 91 22 80 0D 02 02 05 00 E0 2B 5B 44 7A 00 00 5B [18:56:24]Write i2c OK [18:56:24]MH_I2C_Read... [18:56:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:24]Read from MH i2c: E2 [18:56:24]MH_I2C_Read... [18:56:24]Read from MH i2c: E2 03 00 [18:56:24]MH_I2C_Read... [18:56:24]Read from MH i2c: E2 03 00 91 22 00 90 00 27 [18:56:24]RAPDU: 90 00 [18:56:24]wFMCommunicate OK [18:56:24]wFMCommunicate request_size=4 [18:56:24]MH_SAM_APDU [18:56:24]CAPDU: 80 0D 03 02 [18:56:24]Write to MH i2c: E2 08 00 92 22 80 0D 03 02 00 00 00 00 2F [18:56:24]Write i2c OK [18:56:24]MH_I2C_Read... [18:56:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:56:24]Read from MH i2c: E2 [18:56:24]MH_I2C_Read... [18:56:24]Read from MH i2c: E2 0B 00 [18:56:24]MH_I2C_Read... [18:56:24]Read from MH i2c: E2 0B 00 92 22 00 80 7F D0 1A D9 2A 68 80 90 00 04 [18:56:24]RAPDU: 80 7F D0 1A D9 2A 68 80 90 00 [18:56:24]wFMCommunicate OK [18:56:24]SAM_PROTO_SignData done [18:56:24]FM_MakeSignedData done [18:56:24]CreateOFDProtocolMessage [18:56:24]wFMCommunicate request_size=4 [18:56:24]MH_SAM_APDU [18:56:24]CAPDU: 80 11 00 00 [18:56:24]Write to MH i2c: E2 08 00 93 22 80 11 00 00 00 00 00 00 2F [18:56:24]Write i2c OK [18:56:24]MH_I2C_Read... [18:56:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:24]Read from MH i2c: E2 [18:56:24]MH_I2C_Read... [18:56:24]Read from MH i2c: E2 17 00 [18:56:24]MH_I2C_Read... [18:56:24]Read from MH i2c: E2 17 00 93 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 86 [18:56:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:56:24]wFMCommunicate OK [18:56:24]CreateOFDProtocolMessage done [18:56:24]OFDSenderStorePacket 227616 [18:56:24]StoreOFDPacket docnum=227616 [18:56:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 87 D1 07 01 91 D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 01 00 00 F4 03 04 00 58 52 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 20 79 03 00 35 04 06 00 2A E0 2B 5B 44 7A 80 7F D0 1A D9 2A 68 80 [18:56:24]CheckFolder [18:56:24]dirname=/storage/ofd_packets [18:56:24]CheckFolder done [18:56:24]ProducePacketName [18:56:24]name=ofd_packets/00227616 [18:56:24]NVStorageSaveData ofd_packets/00227616 [18:56:24]File name is /storage/ofd_packets/00227616 [18:56:24]Write 301 bytes [18:56:24]NVStorageSaveData done [18:56:24]OFDSenderStorePacket done [18:56:24]KKMCreateOFDPacket done [18:56:24]NVStorageSaveData kkm_last_timestamp [18:56:24]File name is /storage/kkm_last_timestamp [18:56:24]Write 4 bytes [18:56:24]NVStorageSaveData done [18:56:24]ExternCall_PrintAddStr [18:56:24]wPrintStart [18:56:24]Write to MH i2c: 01 00 00 94 22 B6 [18:56:24]Write i2c OK [18:56:24]MH_I2C_Read... [18:56:24]Read from MH i2c: 01 [18:56:24]MH_I2C_Read... [18:56:24]Read from MH i2c: 01 07 00 [18:56:24]MH_I2C_Read... [18:56:24]Read from MH i2c: 01 07 00 94 22 00 00 00 00 00 FF 0F CB [18:56:24]RasterBufferAndPrint [18:56:24]line Счет N : (1)1963252 [18:56:24]line ИНН: 02508201610067 [18:56:24]line Контрольно-Кассовый Чек [18:56:24]line ПРОДАЖА [18:56:24]line ТРК (МРК, ГНК) : 43 [18:56:24]line Товар: 2710124130 [18:56:24]line Аи-92-К-5 [18:56:24]line 22.430 * 66.90 [18:56:24]line = 1500.57 [18:56:24]line НДС 12% НСП 1% [18:56:24]line > о реализуемом товаре [18:56:24]line ИТОГО: 1500.57 [18:56:24]line НСП 1% : 13.28 [18:56:24]line НДС 12% : 159.35 [18:56:24]line Наличными: 0.00 [18:56:24]line Безнал.: 1500.57 [18:56:24]line Место: АЗС № 133 "Партнер Нефть" [18:56:24]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:56:24]line СНО: Общий режим [18:56:24]line Чек 464 20.10.2024 18:56 [18:56:24]line Смена: 533 ФФД: 1.0 [18:56:24]line ЗНМ: 0300000091 [18:56:24]line РНМ: 0000000000091685 [18:56:24]line Версия ККМ: 001 [18:56:24]line Платежная система: АКБ Кыргызстан [18:56:24]line ФМ: 0000000000871839 [18:56:24]line ФД: 227616 [18:56:24]line ФПД: 47142288442490 [18:56:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T185624&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227616&fm=47142288442490&tin=02508201610067®Number=0000000000091685&sum=150057 [18:56:25]written 0, free lines is 4095 [18:56:25]Write to MH i2c: 01 00 00 BD 22 DF [18:56:25]Write i2c OK [18:56:25]MH_I2C_Read... [18:56:25]Read from MH i2c: 01 [18:56:25]MH_I2C_Read... [18:56:25]Read from MH i2c: 01 07 00 [18:56:25]MH_I2C_Read... [18:56:25]Read from MH i2c: 01 07 00 BD 22 00 00 00 00 00 1D 0D 10 [18:56:25]RasterBufferAndPrint [18:56:25]line [18:56:25]line [18:56:25]line [18:56:25]line [18:56:25]line [18:56:25]written 0, free lines is 3363 [18:56:25]process_action close_receipt done [18:56:25]requested_data is exist [18:56:25]produce_requested_data [18:56:25]requested_item fm.sn is exist - process it [18:56:25]wFMCommunicate request_size=4 [18:56:25]MH_SAM_APDU [18:56:25]CAPDU: 80 11 00 00 [18:56:25]Write to MH i2c: E2 08 00 C4 22 80 11 00 00 00 00 00 00 60 [18:56:25]Write i2c OK [18:56:25]MH_I2C_Read... [18:56:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:25]Read from MH i2c: E2 [18:56:25]MH_I2C_Read... [18:56:25]Read from MH i2c: E2 17 00 [18:56:25]MH_I2C_Read... [18:56:25]Read from MH i2c: E2 17 00 C4 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B7 [18:56:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:56:25]wFMCommunicate OK [18:56:25]requested_item fd.num is exist - process it [18:56:25]SAM_PROTO_GetFieldsCounters [18:56:25]wFMCommunicate request_size=4 [18:56:25]MH_SAM_APDU [18:56:25]CAPDU: 80 13 00 00 [18:56:25]Write to MH i2c: E2 08 00 C5 22 80 13 00 00 00 00 00 00 63 [18:56:25]Write i2c OK [18:56:25]MH_I2C_Read... [18:56:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:56:25]Read from MH i2c: E2 [18:56:25]MH_I2C_Read... [18:56:25]Read from MH i2c: E2 62 00 [18:56:25]MH_I2C_Read... [18:56:25]Read from MH i2c: E2 62 00 C5 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 20 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 D0 01 00 00 5E 04 04 00 D0 01 00 00 57 04 04 00 D1 01 00 00 19 04 04 00 00 00 00 00 90 00 B2 [18:56: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 20 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 D0 01 00 00 5E 04 04 00 D0 01 00 00 57 04 04 00 D1 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:56:25]wFMCommunicate OK [18:56:25]SAM_PROTO_GetFieldsCounters done [18:56:25]requested_item shift.num is exist - process it [18:56:25]requested_item shift.opened is exist - process it [18:56:25]req_shift_opened [18:56:25]FM_GetShiftState [18:56:25]SAM_PROTO_GetShiftState [18:56:25]wFMCommunicate request_size=4 [18:56:25]MH_SAM_APDU [18:56:25]CAPDU: 80 13 01 00 [18:56:25]Write to MH i2c: E2 08 00 C6 22 80 13 01 00 00 00 00 00 65 [18:56:25]Write i2c OK [18:56:25]MH_I2C_Read... [18:56:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:25]Read from MH i2c: E2 [18:56:25]MH_I2C_Read... [18:56:25]Read from MH i2c: E2 0E 00 [18:56:25]MH_I2C_Read... [18:56:25]Read from MH i2c: E2 0E 00 C6 22 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 7F [18:56:25]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:56:25]wFMCommunicate OK [18:56:25]SAM_PROTO_GetShiftState done [18:56:25]FM_GetShiftState done [18:56:25]req_shift_opened done [18:56:25]requested_item shift.open_date is exist - process it [18:56:25]req_shift_open_date [18:56:25]req_shift_open_date done [18:56:25]produce_requested_data done [18:56:25]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227616,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [18:56:25]process_action_free close_receipt [18:56:25]json_value_free [18:56:25]json_value_free done [18:56:25]process_json_proto returns [18:56:25]Send response to host [18:56:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227616,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [18:56:25]free response buf [18:56:25]execute_script done [18:56:25]execute_script returns [18:56:25]free content buf [18:56:25]Sock 9.Close socket [18:56:25]Sock 9.Thread stoped [18:56:36]accept exits with 7 [18:56:36]New connection [18:56:36]New thread 3067362660 created [18:56:36]Thread 3067219300 joined [18:56:36]Waiting for new connection... [18:56:36] Sock 7.Parse request [18:56:36]Sock 7.Check first char [18:56:36]Sock 7.First char is OK [18:56:36]request: POST /json_proto HTTP/1.0 [18:56:36]Method: POST [18:56:36]URL: /json_proto [18:56:36]Method is POST - this is cgi request [18:56:36]url: /json_proto [18:56:36]query_string will be loaded in cgi processing [18:56:36]execute_cgi json_proto POST (null) [18:56:36]execute_cgi path=json_proto method=POST [18:56:36]POST find Content-Length [18:56:36]Host: 172.17.44.195:8080 [18:56:36]Content-Length: 679 [18:56:36]Content-Type: application/json [18:56:36] [18:56:36]POST finish read [18:56:36]Found Content-Length = 679 [18:56:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963253", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:56:36]execute_script... [18:56:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963253", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:56:36]POST & json_proto [18:56:36]process_json_proto [18:56:36]json parsed OK: [18:56:36]protocol is kg_v1.0 [18:56:36]action value=close_receipt [18:56:36]process_action close_receipt [18:56:36]cmd_close_receipt [18:56:36]MH_GetDate [18:56:36]Write to MH i2c: F0 00 00 C7 22 D8 [18:56:36]Write i2c OK [18:56:36]MH_I2C_Read... [18:56:36]Read from MH i2c: F0 [18:56:36]MH_I2C_Read... [18:56:36]Read from MH i2c: F0 09 00 [18:56:36]MH_I2C_Read... [18:56:36]Read from MH i2c: F0 09 00 C7 22 00 65 52 15 67 82 C9 CF 66 94 [18:56:36]GetLastDocTimeStamp 1729450584 [18:56:36]current date 1729450597 [18:56:36]FM_GetShiftState [18:56:36]SAM_PROTO_GetShiftState [18:56:36]wFMCommunicate request_size=4 [18:56:36]MH_SAM_APDU [18:56:36]CAPDU: 80 13 01 00 [18:56:36]Write to MH i2c: E2 08 00 C8 22 80 13 01 00 00 00 00 00 67 [18:56:36]Write i2c OK [18:56:36]MH_I2C_Read... [18:56:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:36]Read from MH i2c: E2 [18:56:36]MH_I2C_Read... [18:56:36]Read from MH i2c: E2 0E 00 [18:56:36]MH_I2C_Read... [18:56:36]Read from MH i2c: E2 0E 00 C8 22 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 81 [18:56:36]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:56:36]wFMCommunicate OK [18:56:36]SAM_PROTO_GetShiftState done [18:56:36]FM_GetShiftState done [18:56:36]opened in 1729383750 [18:56:36]opened+sec_in_day 1729470150 [18:56:36]quantity*price = 70044 [18:56:36]sum+1 = 70045 [18:56:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 465 20.10.2024 18:56 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227617 ФПД: 208010102244520 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T185637&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227617&fm=208010102244520&tin=02508201610067®Number=0000000000091685&sum=70000 [18:56:37]StoreToDocumentArchive [18:56:37]shift 533 fd 227617 [18:56:37]save to /storage/0533/doc_00227617 [18:56:37]save last doc name /storage/0533/doc_00227617 to /storage/kkm_last_doc_name [18:56:37]save OK [18:56:37]Clear old archive folders... [18:56:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:56:37]tlvbuf is 00E64EA0 [18:56:37]SAM_PROTO_ClearQueue [18:56:37]wFMCommunicate request_size=4 [18:56:37]MH_SAM_APDU [18:56:37]CAPDU: 80 09 00 00 [18:56:37]Write to MH i2c: E2 08 00 D5 22 80 09 00 00 00 00 00 00 69 [18:56:37]Write i2c OK [18:56:37]MH_I2C_Read... [18:56:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:56:37]Read from MH i2c: E2 [18:56:37]MH_I2C_Read... [18:56:37]Read from MH i2c: E2 03 00 [18:56:37]MH_I2C_Read... [18:56:37]Read from MH i2c: E2 03 00 D5 22 00 90 00 6B [18:56:37]RAPDU: 90 00 [18:56:37]wFMCommunicate OK [18:56:37]SAM_PROTO_ClearQueue done [18:56:37]KKMCreateOFDPacket [18:56:37]OFDProtocolAddRootSTLVToBuf [18:56:37]FM_MakeSignedData [18:56:37]FM_MakeSignedData [18:56:37]SAM_PROTO_SignData [18:56:37]wFMCommunicate request_size=4 [18:56:37]MH_SAM_APDU [18:56:37]CAPDU: 80 0D 01 02 [18:56:37]Write to MH i2c: E2 08 00 D6 22 80 0D 01 02 00 00 00 00 71 [18:56:37]Write i2c OK [18:56:37]MH_I2C_Read... [18:56:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:56:37]Read from MH i2c: E2 [18:56:37]MH_I2C_Read... [18:56:37]Read from MH i2c: E2 03 00 [18:56:37]MH_I2C_Read... [18:56:37]Read from MH i2c: E2 03 00 D6 22 00 90 00 6C [18:56:37]RAPDU: 90 00 [18:56:37]wFMCommunicate OK [18:56:37]wFMCommunicate request_size=255 [18:56:37]MH_SAM_APDU [18:56:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 01 00 00 F4 03 04 00 65 52 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 21 79 03 00 35 04 06 00 BD [18:56:37]Write to MH i2c: E2 02 01 D7 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 01 00 00 F4 03 04 00 65 52 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 21 79 03 00 35 04 06 00 BD 00 00 8E [18:56:37]Write i2c OK [18:56:37]MH_I2C_Read... [18:56:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:37]Read from MH i2c: E2 [18:56:37]MH_I2C_Read... [18:56:37]Read from MH i2c: E2 03 00 [18:56:37]MH_I2C_Read... [18:56:37]Read from MH i2c: E2 03 00 D7 22 00 90 00 6D [18:56:37]RAPDU: 90 00 [18:56:37]wFMCommunicate OK [18:56:37]wFMCommunicate request_size=10 [18:56:37]MH_SAM_APDU [18:56:37]CAPDU: 80 0D 02 02 05 2F 20 41 04 A8 [18:56:37]Write to MH i2c: E2 0D 00 D8 22 80 0D 02 02 05 00 2F 20 41 04 A8 00 00 BA [18:56:37]Write i2c OK [18:56:37]MH_I2C_Read... [18:56:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:37]Read from MH i2c: E2 [18:56:37]MH_I2C_Read... [18:56:37]Read from MH i2c: E2 03 00 [18:56:37]MH_I2C_Read... [18:56:37]Read from MH i2c: E2 03 00 D8 22 00 90 00 6E [18:56:37]RAPDU: 90 00 [18:56:37]wFMCommunicate OK [18:56:37]wFMCommunicate request_size=4 [18:56:37]MH_SAM_APDU [18:56:37]CAPDU: 80 0D 03 02 [18:56:37]Write to MH i2c: E2 08 00 D9 22 80 0D 03 02 00 00 00 00 76 [18:56:37]Write i2c OK [18:56:37]MH_I2C_Read... [18:56:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:56:37]Read from MH i2c: E2 [18:56:37]MH_I2C_Read... [18:56:37]Read from MH i2c: E2 0B 00 [18:56:37]MH_I2C_Read... [18:56:37]Read from MH i2c: E2 0B 00 D9 22 00 C5 93 D8 45 40 48 EC 6D 90 00 CD [18:56:37]RAPDU: C5 93 D8 45 40 48 EC 6D 90 00 [18:56:37]wFMCommunicate OK [18:56:37]SAM_PROTO_SignData done [18:56:37]FM_MakeSignedData done [18:56:37]CreateOFDProtocolMessage [18:56:37]wFMCommunicate request_size=4 [18:56:37]MH_SAM_APDU [18:56:37]CAPDU: 80 11 00 00 [18:56:37]Write to MH i2c: E2 08 00 DA 22 80 11 00 00 00 00 00 00 76 [18:56:37]Write i2c OK [18:56:37]MH_I2C_Read... [18:56:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:37]Read from MH i2c: E2 [18:56:37]MH_I2C_Read... [18:56:37]Read from MH i2c: E2 17 00 [18:56:37]MH_I2C_Read... [18:56:37]Read from MH i2c: E2 17 00 DA 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 CD [18:56:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:56:37]wFMCommunicate OK [18:56:37]CreateOFDProtocolMessage done [18:56:37]OFDSenderStorePacket 227617 [18:56:37]StoreOFDPacket docnum=227617 [18:56:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 03 41 07 01 AF F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 01 00 00 F4 03 04 00 65 52 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 21 79 03 00 35 04 06 00 BD 2F 20 41 04 A8 C5 93 D8 45 40 48 EC 6D [18:56:37]CheckFolder [18:56:37]dirname=/storage/ofd_packets [18:56:37]CheckFolder done [18:56:37]ProducePacketName [18:56:37]name=ofd_packets/00227617 [18:56:37]NVStorageSaveData ofd_packets/00227617 [18:56:37]File name is /storage/ofd_packets/00227617 [18:56:37]Write 301 bytes [18:56:37]NVStorageSaveData done [18:56:37]OFDSenderStorePacket done [18:56:37]KKMCreateOFDPacket done [18:56:37]NVStorageSaveData kkm_last_timestamp [18:56:37]File name is /storage/kkm_last_timestamp [18:56:37]Write 4 bytes [18:56:37]NVStorageSaveData done [18:56:37]ExternCall_PrintAddStr [18:56:37]wPrintStart [18:56:37]Write to MH i2c: 01 00 00 DB 22 FD [18:56:37]Write i2c OK [18:56:37]MH_I2C_Read... [18:56:37]Read from MH i2c: 01 [18:56:37]MH_I2C_Read... [18:56:37]Read from MH i2c: 01 07 00 [18:56:37]MH_I2C_Read... [18:56:37]Read from MH i2c: 01 07 00 DB 22 00 00 00 00 00 FF 0F 12 [18:56:37]RasterBufferAndPrint [18:56:37]line Счет N : (1)1963253 [18:56:37]line ИНН: 02508201610067 [18:56:37]line Контрольно-Кассовый Чек [18:56:37]line ПРОДАЖА [18:56:37]line ТРК (МРК, ГНК) : 33 [18:56:37]line Товар: 2710124130 [18:56:37]line Аи-92-К-5 [18:56:37]line 10.470 * 66.90 [18:56:37]line = 700.44 [18:56:37]line НДС 12% НСП 1% [18:56:37]line > о реализуемом товаре [18:56:37]line ОКРУГЛЕНИЕ: -0.44 [18:56:37]line ИТОГО: 700.00 [18:56:37]line Внесено: 700.00 [18:56:37]line СДАЧА: 0.00 [18:56:37]line НСП 1% : 6.20 [18:56:37]line НДС 12% : 74.38 [18:56:37]line Наличными: 700.00 [18:56:37]line Безнал.: 0.00 [18:56:37]line Место: АЗС № 133 "Партнер Нефть" [18:56:37]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [18:56:37]line СНО: Общий режим [18:56:37]line Чек 465 20.10.2024 18:56 [18:56:37]line Смена: 533 ФФД: 1.0 [18:56:37]line ЗНМ: 0300000091 [18:56:37]line РНМ: 0000000000091685 [18:56:37]line Версия ККМ: 001 [18:56:37]line ФМ: 0000000000871839 [18:56:37]line ФД: 227617 [18:56:37]line ФПД: 208010102244520 [18:56:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T185637&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227617&fm=208010102244520&tin=02508201610067®Number=0000000000091685&sum=70000 [18:56:37]written 0, free lines is 4095 [18:56:38]Write to MH i2c: 01 00 00 05 23 28 [18:56:38]Write i2c OK [18:56:38]MH_I2C_Read... [18:56:38]Read from MH i2c: 01 [18:56:38]MH_I2C_Read... [18:56:38]Read from MH i2c: 01 07 00 [18:56:38]MH_I2C_Read... [18:56:38]Read from MH i2c: 01 07 00 05 23 00 00 00 00 00 05 0D 41 [18:56:38]RasterBufferAndPrint [18:56:38]line [18:56:38]line [18:56:38]line [18:56:38]line [18:56:38]line [18:56:38]written 0, free lines is 3340 [18:56:38]process_action close_receipt done [18:56:38]requested_data is exist [18:56:38]produce_requested_data [18:56:38]requested_item fm.sn is exist - process it [18:56:38]wFMCommunicate request_size=4 [18:56:38]MH_SAM_APDU [18:56:38]CAPDU: 80 11 00 00 [18:56:38]Write to MH i2c: E2 08 00 0C 23 80 11 00 00 00 00 00 00 A9 [18:56:38]Write i2c OK [18:56:38]MH_I2C_Read... [18:56:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:38]Read from MH i2c: E2 [18:56:38]MH_I2C_Read... [18:56:38]Read from MH i2c: E2 17 00 [18:56:38]MH_I2C_Read... [18:56:38]Read from MH i2c: E2 17 00 0C 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 00 [18:56:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [18:56:38]wFMCommunicate OK [18:56:38]requested_item fd.num is exist - process it [18:56:38]SAM_PROTO_GetFieldsCounters [18:56:38]wFMCommunicate request_size=4 [18:56:38]MH_SAM_APDU [18:56:38]CAPDU: 80 13 00 00 [18:56:38]Write to MH i2c: E2 08 00 0D 23 80 13 00 00 00 00 00 00 AC [18:56:38]Write i2c OK [18:56:38]MH_I2C_Read... [18:56:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:56:38]Read from MH i2c: E2 [18:56:38]MH_I2C_Read... [18:56:38]Read from MH i2c: E2 62 00 [18:56:38]MH_I2C_Read... [18:56:38]Read from MH i2c: E2 62 00 0D 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 21 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 D1 01 00 00 5E 04 04 00 D1 01 00 00 57 04 04 00 D2 01 00 00 19 04 04 00 00 00 00 00 90 00 FF [18:56: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 21 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 D1 01 00 00 5E 04 04 00 D1 01 00 00 57 04 04 00 D2 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:56:38]wFMCommunicate OK [18:56:38]SAM_PROTO_GetFieldsCounters done [18:56:38]requested_item shift.num is exist - process it [18:56:38]requested_item shift.opened is exist - process it [18:56:38]req_shift_opened [18:56:38]FM_GetShiftState [18:56:38]SAM_PROTO_GetShiftState [18:56:38]wFMCommunicate request_size=4 [18:56:38]MH_SAM_APDU [18:56:38]CAPDU: 80 13 01 00 [18:56:38]Write to MH i2c: E2 08 00 0E 23 80 13 01 00 00 00 00 00 AE [18:56:38]Write i2c OK [18:56:38]MH_I2C_Read... [18:56:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:38]Read from MH i2c: E2 [18:56:38]MH_I2C_Read... [18:56:38]Read from MH i2c: E2 0E 00 [18:56:38]MH_I2C_Read... [18:56:38]Read from MH i2c: E2 0E 00 0E 23 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 C8 [18:56:38]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [18:56:38]wFMCommunicate OK [18:56:38]SAM_PROTO_GetShiftState done [18:56:38]FM_GetShiftState done [18:56:38]req_shift_opened done [18:56:38]requested_item shift.open_date is exist - process it [18:56:38]req_shift_open_date [18:56:38]req_shift_open_date done [18:56:38]produce_requested_data done [18:56:38]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227617,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [18:56:38]process_action_free close_receipt [18:56:38]json_value_free [18:56:38]json_value_free done [18:56:38]process_json_proto returns [18:56:38]Send response to host [18:56:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227617,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [18:56:38]free response buf [18:56:38]execute_script done [18:56:38]execute_script returns [18:56:38]free content buf [18:56:38]Sock 7.Close socket [18:56:38]Sock 7.Thread stoped [18:57:13]ConnectInit Can't connect to host [18:57:13]CommunicateWithHost connect error [18:57:13]CommunicateWithHost err = -1 [18:57:13]OFD Sender: Server communicate error [18:57:13]OFD Sender: Processing packet 227614 [packets to send 41, broken 37] [18:57:13]ProducePacketName [18:57:13]name=ofd_packets/00227614 [18:57:13]OFD Sender: To server: pG, [18:57:13]CommunicateWithHost lk.salyk.kg:30040 [18:57:13]ConnectInit lk.salyk.kg [18:57:14]Connected sock=7 [18:57: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 33 39 0F 01 00 00 8B A9 07 01 0F CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 01 00 00 F4 03 04 00 07 52 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1E 79 03 00 35 04 06 00 5F A3 40 EE 34 9B A4 CC E4 AA E4 50 D4 27 [18:57: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 33 39 4F 00 00 00 8A 45 47 00 12 AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1E 79 03 00 F4 03 04 00 87 FD 14 67 B6 04 01 00 00 6D 13 5F E2 98 5B B2 0D [18:57:14]CommunicateWithHost err = 0 [18:57:14]CheckOFDResponse [18:57:14]1017 (14) - 77093643461234 [18:57:14]1041 (16) - 0000000000871839 [18:57:14]1040 (4) - 227614 [18:57:14]1012 (4) - 20.10.2024 12:54 [18:57:14]1206 (1) - 0 [18:57:14]OFD Sender: Remove packet 227614 [18:57:14]ProducePacketName [18:57:14]name=ofd_packets/00227614 [18:57:14]NVStorageDeleteData [18:57:14]OFD Sender: Processing packet 227615 [packets to send 40, broken 37] [18:57:14]ProducePacketName [18:57:14]name=ofd_packets/00227615 [18:57:14]OFD Sender: To server: pG, [18:57:14]CommunicateWithHost lk.salyk.kg:30040 [18:57:14]ConnectInit lk.salyk.kg [18:57:14]Connected sock=7 [18:57: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 33 39 0F 01 00 00 13 C1 07 01 4C 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 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 CF 01 00 00 F4 03 04 00 14 52 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1F 79 03 00 35 04 06 00 DE 4A 85 81 07 7A 35 39 88 BC 59 F1 09 47 [18:57: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 33 39 4F 00 00 00 BD 44 47 00 17 B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 1F 79 03 00 F4 03 04 00 88 FD 14 67 B6 04 01 00 00 A7 D7 02 E7 C8 E6 CE D0 [18:57:15]CommunicateWithHost err = 0 [18:57:15]CheckOFDResponse [18:57:15]1017 (14) - 77093643461234 [18:57:15]1041 (16) - 0000000000871839 [18:57:15]1040 (4) - 227615 [18:57:15]1012 (4) - 20.10.2024 12:54 [18:57:15]1206 (1) - 0 [18:57:15]OFD Sender: Remove packet 227615 [18:57:15]ProducePacketName [18:57:15]name=ofd_packets/00227615 [18:57:15]NVStorageDeleteData [18:57:15]OFD Sender: Processing packet 227616 [packets to send 39, broken 37] [18:57:15]ProducePacketName [18:57:15]name=ofd_packets/00227616 [18:57:15]OFD Sender: To server: pG, [18:57:15]CommunicateWithHost lk.salyk.kg:30040 [18:57:15]ConnectInit lk.salyk.kg [18:57:15]Connected sock=7 [18:57: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 33 39 0F 01 00 00 87 D1 07 01 91 D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 01 00 00 F4 03 04 00 58 52 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 20 79 03 00 35 04 06 00 2A E0 2B 5B 44 7A 80 7F D0 1A D9 2A 68 80 [18:57: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 33 39 4F 00 00 00 46 37 47 00 80 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 33 39 10 04 04 00 20 79 03 00 F4 03 04 00 89 FD 14 67 B6 04 01 00 00 10 81 5E 84 09 6F 67 3B [18:57:15]CommunicateWithHost err = 0 [18:57:15]CheckOFDResponse [18:57:15]1017 (14) - 77093643461234 [18:57:15]1041 (16) - 0000000000871839 [18:57:15]1040 (4) - 227616 [18:57:15]1012 (4) - 20.10.2024 12:54 [18:57:15]1206 (1) - 0 [18:57:15]OFD Sender: Remove packet 227616 [18:57:15]ProducePacketName [18:57:15]name=ofd_packets/00227616 [18:57:15]NVStorageDeleteData [18:57:16]OFD Sender: Processing packet 227617 [packets to send 38, broken 37] [18:57:16]ProducePacketName [18:57:16]name=ofd_packets/00227617 [18:57:16]OFD Sender: To server: pG, [18:57:16]CommunicateWithHost lk.salyk.kg:30040 [18:57:16]ConnectInit lk.salyk.kg [00:00:09] *** EcrCore started. Build 196 *** [00:00:09]/dev/ttyS4 opened [00:00:09]MH_InterfaceInit /dev/i2c-1 [00:00:09]Malloc ok [00:00:09]MH_GetMetrics [00:00:09]Write to MH i2c: 00 00 00 01 00 00 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 E7 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 8C [00:00:09]Are we in boot? [00:00:09]We are in boot - try to switch [00:00:09]Write to MH i2c: A0 00 00 02 00 A1 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 [00:00:09]MH_I2C_Read... [00:00:09]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:09]*** [00:00:09]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:09]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:09]*** Waiting for read because exit forced [00:00:09]*** 10 ms more... [00:00:09]*** MH1903S init start (LINUX_LIGHT) [00:00:09]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:09]*** Serial: 3139303353513838 54000000005725E7 (1903SQ88T) [00:00:09]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:09]*** step 0: 5000 (2650, 2350 REF) [00:00:09]*** step 1: 4835 (2500, 2335 REF) [00:00:09]*** step 2: 4676 (2440, 2236 REF) [00:00:09]*** step 3: 4523 (2280, 2243 REF) [00:00:09]*** step 4: 4376 (2160, 2216 REF) [00:00:09]*** step 5: 4235 (2050, 2185 REF) [00:00:09]*** step 6: 4098 (1950, 2148 REF) [00:00:09]*** step 7: 3967 (1870, 2097 REF) [00:00:09]*** step 8: 3840 (1828, 2012 REF) [00:00:09]*** step 9: 3719 (1728, 1991 REF) [00:00:09]*** step 10: 3601 (1675, 1926 REF) [00:00:09]*** step 11: 3488 (1635, 1853 REF) [00:00:09]*** step 12: 3379 (1595, 1784 REF) [00:00:09]*** step 13: 3275 (1565, 1710 REF) [00:00:09]*** step 14: 3174 (1543, 1631 REF) [00:00:09]*** step 15: 3077 (1523, 1554 REF) [00:00:09]*** step 16: 2983 (1503, 1480 REF) [00:00:09]*** step 17: 2893 (1486, 1407 REF) [00:00:09]*** step 18: 2806 (1466, 1340 REF) [00:00:09]*** step 19: 2723 (1426, 1297 REF) [00:00:09]*** step 20: 2642 (1406, 1236 REF) [00:00:09]*** step 21: 2565 (1384, 1181 REF) [00:00:09]*** step 22: 2490 (1364, 1126 REF) [00:00:09]*** step 23: 2418 (1344, 1074 REF) [00:00:09]*** step 24: 2349 (1322, 1027 REF) [00:00:09]*** step 25: 2283 (1302, 981 REF) [00:00:09]*** step 26: 2218 (1282, 936 REF) [00:00:09]*** step 27: 2157 (1262, 895 REF) [00:00:09]*** step 28: 2097 (1242, 855 REF) [00:00:09]*** step 29: 2040 (1222, 818 REF) [00:00:09]*** step 30: 1985 (1202, 783 REF) [00:00:09]*** step 31: 1932 (1191, 741 REF) [00:00:09]*** step 32: 1880 (1181, 699 REF) [00:00:09]*** step 33: 1831 (1171, 660 REF) [00:00:09]*** step 34: 1784 (1161, 623 REF) [00:00:09]*** step 35: 1738 (1151, 587 REF) [00:00:09]*** step 36: 1694 (1141, 553 REF) [00:00:09]*** step 37: 1652 (1131, 521 REF) [00:00:09]*** step 38: 1611 (1121, 490 REF) [00:00:09]*** step 39: 1572 (1111, 461 REF) [00:00:09]*** step 40: 1534 (1103, 431 REF) [00:00:09]*** step 41: 1497 (1093, 404 REF) [00:00:09]*** step 42: 1462 (1083, 379 REF) [00:00:09]*** step 43: 1428 (1073, 355 REF) [00:00:09]*** step 44: 1396 (1063, 333 REF) [00:00:09]*** step 45: 1365 (1053, 312 REF) [00:00:09]*** step 46: 1334 (1043, 291 REF) [00:00:09]*** step 47: 1305 (1033, 272 REF) [00:00:09]*** step 48: 1277 (1023, 254 REF) [00:00:09]*** step 49: 1250 (1013, 237 REF) [00:00:09]*** step 50: 1224 (990, 234 REF) [00:00:09]*** step 51: 1199 (980, 219 REF) [00:00:09]*** step 52: 1175 (970, 205 REF) [00:00:09]*** step 53: 1152 (960, 192 REF) [00:00:09]*** step 54: 1130 (950, 180 REF) [00:00:09]*** step 55: 1108 (940, 168 REF) [00:00:09]*** step 56: 1088 (930, 158 REF) [00:00:09]*** step 57: 1068 (920, 148 REF) [00:00:09]*** step 58: 1049 (910, 139 REF) [00:00:09]*** step 59: 1030 (900, 130 REF) [00:00:09]*** step 60: 1012 (890, 122 REF) [00:00:09]*** step 61: 995 (880, 115 REF) [00:00:09]*** step 62: 979 (870, 109 REF) [00:00:09]*** step 63: 963 (860, 103 REF) [00:00:09]*** step 64: 948 (850, 98 REF) [00:00:09]*** step 65: 933 (840, 93 REF) [00:00:09]*** step 66: 919 (830, 89 REF) [00:00:09]*** step 67: 905 (820, 85 REF) [00:00:09]*** step 68: 892 (810, 82 REF) [00:00:09]*** step 69: 879 (800, 79 REF) [00:00:09]*** step 70: 867 (790, 77 REF) [00:00:09]*** step 71: 855 (780, 75 REF) [00:00:09]*** step 72: 844 (770, 74 REF) [00:00:09]*** step 73: 833 (760, 73 REF) [00:00:09]*** step 74: 822 (750, 72 REF) [00:00:09]*** step 75: 812 (740, 72 REF) [00:00:09]*** step 76: 803 (730, 73 REF) [00:00:09]*** step 77: 793 (720, 73 REF) [00:00:09]*** step 78: 784 (710, 74 REF) [00:00:09]*** step 79: 776 (700, 76 REF) [00:00:09]*** step 80: 767 (690, 77 REF) [00:00:09]*** step 81: 759 (680, 79 REF) [00:00:09]*** step 82: 751 (670, 81 REF) [00:00:09]*** step 83: 744 (660, 84 REF) [00:00:09]*** step 84: 737 (650, 87 REF) [00:00:09]*** step 85: 730 (640, 90 REF) [00:00:09]*** step 86: 723 (630, 93 REF) [00:00:09]*** step 87: 717 (620, 97 REF) [00:00:09]*** step 88: 710 (610, 100 REF) [00:00:09]*** step 89: 705 (600, 105 REF) [00:00:09]*** step 90: 699 [00:00:09]*** step 91: 693 [00:00:09]*** step 92: 688 [00:00:09]*** step 93: 683 [00:00:09]*** step 94: 678 [00:00:09]*** step 95: 673 [00:00:09]*** step 96: 669 [00:00:09]*** step 97: 664 [00:00:09]*** step 98: 660 [00:00:09]*** step 99: 656 [00:00:09]*** step 100: 652 [00:00:09]*** step 101: 648 [00:00:09]*** step 102: 644 [00:00:09]*** step 103: 641 [00:00:09]*** step 104: 638 [00:00:09]*** step 105: 634 [00:00:09]*** step 106: 631 [00:00:09]*** step 107: 628 [00:00:09]*** step 108: 625 [00:00:09]*** step 109: 622 [00:00:09]*** step 110: 620 [00:00:09]*** step 111: 617 [00:00:09]*** step 112: 615 [00:00:09]*** step 113: 612 [00:00:09]*** step 114: 610 [00:00:09]*** step 115: 608 [00:00:09]*** step 116: 605 [00:00:09]*** step 117: 603 [00:00:09]*** step 118: 601 [00:00:09]*** step 119: 599 [00:00:09]*** printer: Printer HW initialized [00:00:09]*** initSamCard finished [00:00:09]*** RTC: 4557624+1724893570=1729451194 [00:00:09]*** BPK Status Register BPK_RDY = 0x0 [00:00:09]*** SEN State Register SEN_STATE = 0x220ff [00:00:09]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:09]*** Analog Control Register 0 SEN_ANA0 = 0x33530623 [00:00:09]*** Is cutter blocked? [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 03 00 02 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 E7 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 8D [00:00:10]Are we in boot? [00:00:10]We are not in boot now [00:00:10]Write to MH i2c: 01 00 00 04 00 04 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:10]Model is 3 [00:00:10]MH firmware is 30620 [00:00:10]MH boot firmware is 3 [00:00:10]MH_SetPrinterDots 448 [00:00:10]HeadWidthInBytes 56 [00:00:10]maxmasksize 7 [00:00:10]Write to MH i2c: D6 06 00 05 00 41 00 60 00 FF FF 7F [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:10]Write to MH i2c: D5 00 00 06 00 DA [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]ExternCall_SetCallbacks [00:00:10]NVStorageInit [00:00:10]MH_GetDate [00:00:10]Write to MH i2c: F0 00 00 07 00 F6 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 07 00 00 BB 54 15 67 82 C9 CF 66 0A [19:06:35]Current date/time: 20.10.2024 19:06 [19:06:35]FM_Init [19:06:35]wFMConnect [19:06:35]MH_SAM_On [19:06:35]Write to MH i2c: E0 00 00 08 00 E7 [19:06:35]Write i2c OK [19:06:35]MH_I2C_Read... [19:06:35]*** iso7816_init finished! [19:06:35]*** atr: [19:06:35]*** 0F 3B D5 18 FF 81 91 FE [19:06:35]*** 1F C3 80 73 C8 21 10 0A [19:06:35]*** 00 00 00 00 00 00 00 00 [19:06:35]*** 00 00 00 00 00 00 00 00 [19:06:35]*** 00 00 00 00 00 00 00 00 [19:06:35]*** 00 00 00 00 00 00 00 00 [19:06:35]*** 00 00 00 00 00 00 00 00 [19:06:35]*** 00 00 00 00 00 00 00 00 [19:06:35]Read from MH i2c: E0 [19:06:35]MH_I2C_Read... [19:06:35]Read from MH i2c: E0 10 00 [19:06:35]MH_I2C_Read... [19:06:35]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 [19:06:35]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [19:06:35]wFMCommunicate request_size=10 [19:06:35]MH_SAM_APDU [19:06:35]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [19:06:35]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [19:06:35]Write i2c OK [19:06:35]MH_I2C_Read... [19:06:35]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [19:06:35]Read from MH i2c: E2 [19:06:35]MH_I2C_Read... [19:06:35]Read from MH i2c: E2 03 00 [19:06:35]MH_I2C_Read... [19:06:35]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [19:06:35]RAPDU: 90 00 [19:06:35]wFMCommunicate OK [19:06:35]wFMCommunicate request_size=4 [19:06:35]MH_SAM_APDU [19:06:35]CAPDU: 80 11 00 00 [19:06:35]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [19:06:35]Write i2c OK [19:06:35]MH_I2C_Read... [19:06:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:35]Read from MH i2c: E2 [19:06:35]MH_I2C_Read... [19:06:35]Read from MH i2c: E2 17 00 [19:06:35]MH_I2C_Read... [19:06:35]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 33 39 90 00 DB [19:06:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:06:35]wFMCommunicate OK [19:06:35]Detected FM SN is 0000000000871839 [19:06:35]Stored FM SN is 0000000000871839 [19:06:35]wFMCommunicate request_size=9 [19:06:35]MH_SAM_APDU [19:06:35]CAPDU: 80 16 00 00 04 79 A4 00 00 [19:06:35]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 79 A4 00 00 00 00 AF [19:06:35]Write i2c OK [19:06:35]MH_I2C_Read... [19:06:35]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [19:06:35]Read from MH i2c: E2 [19:06:35]MH_I2C_Read... [19:06:35]Read from MH i2c: E2 03 00 [19:06:35]MH_I2C_Read... [19:06:35]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [19:06:35]RAPDU: 90 00 [19:06:35]wFMCommunicate OK [19:06:35]FM PIN OK [19:06:35]wFMCommunicate request_size=8 [19:06:35]MH_SAM_APDU [19:06:35]CAPDU: 80 14 04 00 03 02 00 01 [19:06:35]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [19:06:35]Write i2c OK [19:06:35]MH_I2C_Read... [19:06:35]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [19:06:35]Read from MH i2c: E2 [19:06:35]MH_I2C_Read... [19:06:35]Read from MH i2c: E2 03 00 [19:06:35]MH_I2C_Read... [19:06:35]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [19:06:35]RAPDU: 90 00 [19:06:35]wFMCommunicate OK [19:06:35]wFMCommunicate request_size=13 [19:06:35]MH_SAM_APDU [19:06:35]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [19:06:35]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 [19:06:35]Write i2c OK [19:06:35]MH_I2C_Read... [19:06:35]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [19:06:35]Read from MH i2c: E2 [19:06:35]MH_I2C_Read... [19:06:35]Read from MH i2c: E2 03 00 [19:06:35]MH_I2C_Read... [19:06:35]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [19:06:35]RAPDU: 90 00 [19:06:35]wFMCommunicate OK [19:06:35]wFMCommunicate request_size=4 [19:06:35]MH_SAM_APDU [19:06:35]CAPDU: 80 11 00 00 [19:06:35]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [19:06:35]Write i2c OK [19:06:35]MH_I2C_Read... [19:06:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:35]Read from MH i2c: E2 [19:06:35]MH_I2C_Read... [19:06:35]Read from MH i2c: E2 17 00 [19:06:35]MH_I2C_Read... [19:06:35]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 33 39 90 00 DF [19:06:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:06:35]wFMCommunicate OK [19:06:35]DocumentArchiveInit [19:06:35]Start Httpd... [19:06:35]Httpd thread 3067096420 created [19:06:35]Write to MH i2c: 01 00 00 0F 00 0F [19:06:35]Write i2c OK [19:06:35]MH_I2C_Read... [19:06:35]Read from MH i2c: 01 [19:06:35]MH_I2C_Read... [19:06:35]Read from MH i2c: 01 07 00 [19:06:35]MH_I2C_Read... [19:06:35]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [19:06:35]Allocated Socket 5 [19:06:35]Bind OK [19:06:35]Listen OK [19:06:35]httpd running on port 8080 [19:06:35]Waiting for new connection... [19:06:35]MH Int Process started [19:06:35]OFD Sender: Processing packet 227617 [packets to send 38, broken 37] [19:06:35]ProducePacketName [19:06:35]name=ofd_packets/00227617 [19:06:35]OFD Sender: To server: pG, [19:06:35]CommunicateWithHost lk.salyk.kg:30040 [19:06:35]ConnectInit lk.salyk.kg [19:06:35]Connected sock=7 [19:06:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 03 41 07 01 AF F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 01 00 00 F4 03 04 00 65 52 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 21 79 03 00 35 04 06 00 BD 2F 20 41 04 A8 C5 93 D8 45 40 48 EC 6D [19:06: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 33 39 4F 00 00 00 2A D5 47 00 D0 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 33 39 10 04 04 00 21 79 03 00 F4 03 04 00 B8 FF 14 67 B6 04 01 00 00 E3 34 DE 39 1B 6C A2 8D [19:06:35]CommunicateWithHost err = 0 [19:06:35]CheckOFDResponse [19:06:35]1017 (14) - 77093643461234 [19:06:35]1041 (16) - 0000000000871839 [19:06:35]1040 (4) - 227617 [19:06:35]1012 (4) - 20.10.2024 13:03 [19:06:35]1206 (1) - 0 [19:06:35]OFD Sender: Remove packet 227617 [19:06:35]ProducePacketName [19:06:35]name=ofd_packets/00227617 [19:06:35]NVStorageDeleteData [19:06:36]OFD Sender: No OFD packet to send [19:06:41]OFD Sender: No OFD packet to send [19:06:46]OFD Sender: No OFD packet to send [19:06:51]OFD Sender: No OFD packet to send [19:06:56]OFD Sender: No OFD packet to send [19:07:01]OFD Sender: No OFD packet to send [19:07:06]OFD Sender: No OFD packet to send [19:07:11]OFD Sender: No OFD packet to send [19:07:16]OFD Sender: No OFD packet to send [19:07:21]OFD Sender: No OFD packet to send [19:07:26]OFD Sender: No OFD packet to send [19:07:31]OFD Sender: No OFD packet to send [19:07:36]OFD Sender: No OFD packet to send [19:07:41]OFD Sender: No OFD packet to send [19:07:46]OFD Sender: No OFD packet to send [19:07:51]OFD Sender: No OFD packet to send [19:07:56]OFD Sender: No OFD packet to send [19:08:01]OFD Sender: No OFD packet to send [19:08:06]OFD Sender: No OFD packet to send [19:08:07]accept exits with 6 [19:08:07]New connection [19:08:07]New thread 3066809700 created [19:08:07]Waiting for new connection... [19:08:07] Sock 6.Parse request [19:08:07]Sock 6.Check first char [19:08:07]Sock 6.First char is OK [19:08:07]request: POST /json_proto HTTP/1.0 [19:08:07]Method: POST [19:08:07]URL: /json_proto [19:08:07]Method is POST - this is cgi request [19:08:07]url: /json_proto [19:08:07]query_string will be loaded in cgi processing [19:08:07]execute_cgi json_proto POST (null) [19:08:07]execute_cgi path=json_proto method=POST [19:08:07]POST find Content-Length [19:08:07]Host: 172.17.44.195:8080 [19:08:07]Content-Length: 215 [19:08:07]Content-Type: application/json [19:08:07] [19:08:07]POST finish read [19:08:07]Found Content-Length = 215 [19:08:07]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" ] } } [19:08:07]execute_script... [19:08:07]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" ] } } [19:08:07]POST & json_proto [19:08:07]process_json_proto [19:08:07]json parsed OK: [19:08:07]protocol is kg_v1.0 [19:08:07]action value=get_value [19:08:07]process_action get_value [19:08:07]cmd_get_value [19:08:07]process_action get_value done [19:08:07]requested_data is exist [19:08:07]produce_requested_data [19:08:07]requested_item kkm.sn is exist - process it [19:08:07]requested_item kkm.ver is exist - process it [19:08:07]requested_item fm.sn is exist - process it [19:08:07]wFMCommunicate request_size=4 [19:08:07]MH_SAM_APDU [19:08:07]CAPDU: 80 11 00 00 [19:08:07]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [19:08:07]Write i2c OK [19:08:07]MH_I2C_Read... [19:08:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:07]Read from MH i2c: E2 [19:08:07]MH_I2C_Read... [19:08:07]Read from MH i2c: E2 17 00 [19:08:07]MH_I2C_Read... [19:08:07]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 33 39 90 00 E1 [19:08:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:08:07]wFMCommunicate OK [19:08:07]requested_item fd.num is exist - process it [19:08:07]SAM_PROTO_GetFieldsCounters [19:08:07]wFMCommunicate request_size=4 [19:08:07]MH_SAM_APDU [19:08:07]CAPDU: 80 13 00 00 [19:08:07]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [19:08:07]Write i2c OK [19:08:07]MH_I2C_Read... [19:08:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:08:08]Read from MH i2c: E2 [19:08:08]MH_I2C_Read... [19:08:08]Read from MH i2c: E2 62 00 [19:08:08]MH_I2C_Read... [19:08:08]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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 21 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 D1 01 00 00 5E 04 04 00 D1 01 00 00 57 04 04 00 D2 01 00 00 19 04 04 00 00 00 00 00 90 00 E0 [19:08:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 21 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 D1 01 00 00 5E 04 04 00 D1 01 00 00 57 04 04 00 D2 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:08:08]wFMCommunicate OK [19:08:08]SAM_PROTO_GetFieldsCounters done [19:08:08]requested_item shift.num is exist - process it [19:08:08]requested_item shift.opened is exist - process it [19:08:08]req_shift_opened [19:08:08]FM_GetShiftState [19:08:08]SAM_PROTO_GetShiftState [19:08:08]wFMCommunicate request_size=4 [19:08:08]MH_SAM_APDU [19:08:08]CAPDU: 80 13 01 00 [19:08:08]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [19:08:08]Write i2c OK [19:08:08]MH_I2C_Read... [19:08:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:08]Read from MH i2c: E2 [19:08:08]MH_I2C_Read... [19:08:08]Read from MH i2c: E2 0E 00 [19:08:08]MH_I2C_Read... [19:08:08]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 A9 [19:08:08]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [19:08:08]wFMCommunicate OK [19:08:08]SAM_PROTO_GetShiftState done [19:08:08]FM_GetShiftState done [19:08:08]req_shift_opened done [19:08:08]requested_item shift.open_date is exist - process it [19:08:08]req_shift_open_date [19:08:08]req_shift_open_date done [19:08:08]produce_requested_data done [19:08:08]produce_requested_data return {"kkm.sn":"0300000091","kkm.ver":"001","fm.sn":"0000000000871839","fd.num":227617,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [19:08:08]process_action_free get_value [19:08:08]json_value_free [19:08:08]json_value_free done [19:08:08]process_json_proto returns [19:08:08]Send response to host [19:08:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000091","kkm.ver":"001","fm.sn":"0000000000871839","fd.num":227617,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [19:08:08]free response buf [19:08:08]execute_script done [19:08:08]execute_script returns [19:08:08]free content buf [19:08:08]Sock 6.Close socket [19:08:08]Sock 6.Thread stoped [19:08:08]accept exits with 9 [19:08:08]New connection [19:08:08]New thread 3066666340 created [19:08:08]Thread 3066809700 joined [19:08:08]Waiting for new connection... [19:08:08] Sock 9.Parse request [19:08:08]Sock 9.Check first char [19:08:08]Sock 9.First char is OK [19:08:08]request: POST /json_proto HTTP/1.0 [19:08:08]Method: POST [19:08:08]URL: /json_proto [19:08:08]Method is POST - this is cgi request [19:08:08]url: /json_proto [19:08:08]query_string will be loaded in cgi processing [19:08:08]execute_cgi json_proto POST (null) [19:08:08]execute_cgi path=json_proto method=POST [19:08:08]POST find Content-Length [19:08:08]Host: 172.17.44.195:8080 [19:08:08]Content-Length: 331 [19:08:08]Content-Type: application/json [19:08:08] [19:08:08]POST finish read [19:08:08]Found Content-Length = 331 [19:08:08]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" ] } } [19:08:08]execute_script... [19:08:08]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" ] } } [19:08:08]POST & json_proto [19:08:08]process_json_proto [19:08:08]json parsed OK: [19:08:08]protocol is kg_v1.0 [19:08:08]action value=get_value [19:08:08]process_action get_value [19:08:08]cmd_get_value [19:08:08]process_action get_value done [19:08:08]requested_data is exist [19:08:08]produce_requested_data [19:08:08]requested_item fm.sale.total is exist - process it [19:08:08]SAM_PROTO_GetFMData [19:08:08]wFMCommunicate request_size=4 [19:08:08]MH_SAM_APDU [19:08:08]CAPDU: 80 13 03 00 [19:08:08]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [19:08:08]Write i2c OK [19:08:08]MH_I2C_Read... [19:08:08]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [19:08:08]Read from MH i2c: E2 [19:08:08]MH_I2C_Read... [19:08:08]Read from MH i2c: E2 FD 00 [19:08:08]MH_I2C_Read... [19:08:08]Read from MH i2c: E2 FD 00 13 00 00 C5 04 85 04 C1 04 6E 04 04 00 F7 74 03 00 69 04 A3 00 6F 04 04 00 08 6E 03 00 B1 04 05 00 DC 55 1E C5 04 70 04 05 00 A0 A9 AC 4B 04 72 04 04 00 3C AC 71 79 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 30 E0 B7 81 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 54 26 CF 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 EF 06 00 00 B1 04 04 00 C8 99 CF 1E 70 04 04 00 C8 99 CF 1E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 79 B4 45 03 EF 03 09 90 00 6C [19:08:08]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 F7 74 03 00 69 04 A3 00 6F 04 04 00 08 6E 03 00 B1 04 05 00 DC 55 1E C5 04 70 04 05 00 A0 A9 AC 4B 04 72 04 04 00 3C AC 71 79 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 30 E0 B7 81 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 54 26 CF 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 EF 06 00 00 B1 04 04 00 C8 99 CF 1E 70 04 04 00 C8 99 CF 1E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 79 B4 45 03 EF 03 09 90 00 [19:08:08]wFMCommunicate OK [19:08:08]wFMCommunicate request_size=4 [19:08:08]MH_SAM_APDU [19:08:08]CAPDU: 80 17 00 00 [19:08:08]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [19:08:08]Write i2c OK [19:08:08]MH_I2C_Read... [19:08:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:08:09]Read from MH i2c: E2 [19:08:09]MH_I2C_Read... [19:08:09]Read from MH i2c: E2 FD 00 [19:08:09]MH_I2C_Read... [19:08:09]Read from MH i2c: E2 FD 00 14 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8E CE 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 EB [19:08:09]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8E CE 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [19:08:09]wFMCommunicate OK [19:08:09]wFMCommunicate request_size=4 [19:08:09]MH_SAM_APDU [19:08:09]CAPDU: 80 17 00 00 [19:08:09]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [19:08:09]Write i2c OK [19:08:09]MH_I2C_Read... [19:08:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:08:09]Read from MH i2c: E2 [19:08:09]MH_I2C_Read... [19:08:09]Read from MH i2c: E2 FD 00 [19:08:09]MH_I2C_Read... [19:08:09]Read from MH i2c: E2 FD 00 15 00 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 A7 [19:08:09]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [19:08:09]wFMCommunicate OK [19:08:09]wFMCommunicate request_size=4 [19:08:09]MH_SAM_APDU [19:08:09]CAPDU: 80 17 00 00 [19:08:09]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [19:08:09]Write i2c OK [19:08:09]MH_I2C_Read... [19:08:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:08:09]Read from MH i2c: E2 [19:08:09]MH_I2C_Read... [19:08:09]Read from MH i2c: E2 FD 00 [19:08:09]MH_I2C_Read... [19:08:09]Read from MH i2c: E2 FD 00 16 00 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 22 [19:08:09]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [19:08:09]wFMCommunicate OK [19:08:09]wFMCommunicate request_size=4 [19:08:09]MH_SAM_APDU [19:08:09]CAPDU: 80 17 00 00 [19:08:09]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [19:08:09]Write i2c OK [19:08:09]MH_I2C_Read... [19:08:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [19:08:09]Read from MH i2c: E2 [19:08:09]MH_I2C_Read... [19:08:09]Read from MH i2c: E2 E2 00 [19:08:09]MH_I2C_Read... [19:08:09]Read from MH i2c: E2 E2 00 17 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 75 [19:08:09]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [19:08:09]wFMCommunicate OK [19:08:09]SAM_PROTO_GetFMData done [19:08:09]requested_item fm.sale_refund.total is exist - process it [19:08:09]requested_item fm.buy.total is exist - process it [19:08:09]requested_item shift.sale.total is exist - process it [19:08:09]SAM_PROTO_GetShiftData [19:08:09]wFMCommunicate request_size=4 [19:08:09]MH_SAM_APDU [19:08:09]CAPDU: 80 13 02 00 [19:08:09]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [19:08:09]Write i2c OK [19:08:09]MH_I2C_Read... [19:08:10]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [19:08:10]Read from MH i2c: E2 [19:08:10]MH_I2C_Read... [19:08:10]Read from MH i2c: E2 FD 00 [19:08:10]MH_I2C_Read... [19:08:10]Read from MH i2c: E2 FD 00 18 00 00 B1 04 AA 04 AD 04 6E 04 04 00 D1 01 00 00 69 04 9E 00 6F 04 04 00 D1 01 00 00 B1 04 04 00 46 CC 28 03 70 04 04 00 D0 08 C0 02 72 04 03 00 76 C3 68 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 21 E9 55 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B4 28 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 CB [19:08:10]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 D1 01 00 00 69 04 9E 00 6F 04 04 00 D1 01 00 00 B1 04 04 00 46 CC 28 03 70 04 04 00 D0 08 C0 02 72 04 03 00 76 C3 68 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 21 E9 55 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B4 28 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [19:08:10]wFMCommunicate OK [19:08:10]wFMCommunicate request_size=4 [19:08:10]MH_SAM_APDU [19:08:10]CAPDU: 80 17 00 00 [19:08:10]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [19:08:10]Write i2c OK [19:08:10]MH_I2C_Read... [19:08:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:08:10]Read from MH i2c: E2 [19:08:10]MH_I2C_Read... [19:08:10]Read from MH i2c: E2 FD 00 [19:08:10]MH_I2C_Read... [19:08:10]Read from MH i2c: E2 FD 00 19 00 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 B2 [19:08:10]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [19:08:10]wFMCommunicate OK [19:08:10]wFMCommunicate request_size=4 [19:08:10]MH_SAM_APDU [19:08:10]CAPDU: 80 17 00 00 [19:08:10]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [19:08:10]Write i2c OK [19:08:10]MH_I2C_Read... [19:08:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:08:10]Read from MH i2c: E2 [19:08:10]MH_I2C_Read... [19:08:10]Read from MH i2c: E2 FD 00 [19:08:10]MH_I2C_Read... [19:08:10]Read from MH i2c: E2 FD 00 1A 00 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 53 [19:08:10]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [19:08:10]wFMCommunicate OK [19:08:10]wFMCommunicate request_size=4 [19:08:10]MH_SAM_APDU [19:08:10]CAPDU: 80 17 00 00 [19:08:10]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [19:08:10]Write i2c OK [19:08:10]MH_I2C_Read... [19:08:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:08:11]Read from MH i2c: E2 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: E2 FD 00 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: E2 FD 00 1B 00 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 13 [19:08:11]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [19:08:11]wFMCommunicate OK [19:08:11]wFMCommunicate request_size=4 [19:08:11]MH_SAM_APDU [19:08:11]CAPDU: 80 17 00 00 [19:08:11]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [19:08:11]Write i2c OK [19:08:11]MH_I2C_Read... [19:08:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [19:08:11]Read from MH i2c: E2 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: E2 CE 00 [19:08:11]MH_I2C_Read... [19:08:11]OFD Sender: No OFD packet to send [19:08:11]Read from MH i2c: E2 CE 00 1C 00 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 81 [19:08:11]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [19:08:11]wFMCommunicate OK [19:08:11]SAM_PROTO_GetShiftData done [19:08:11]requested_item shift.sale.total_cash is exist - process it [19:08:11]requested_item shift.sale_refund.total is exist - process it [19:08:11]requested_item shift.sale_refund.total_cash is exist - process it [19:08:11]requested_item shift.buy.total is exist - process it [19:08:11]requested_item shift.buy.total_cash is exist - process it [19:08:11]produce_requested_data done [19:08:11]produce_requested_data return {"fm.sale.total":204869687.96,"fm.sale_refund.total":5169218.00,"fm.buy.total":0.00,"shift.sale.total":530053.82,"shift.sale.total_cash":461396.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [19:08:11]process_action_free get_value [19:08:11]json_value_free [19:08:11]json_value_free done [19:08:11]process_json_proto returns [19:08:11]Send response to host [19:08:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":204869687.96,"fm.sale_refund.total":5169218.00,"fm.buy.total":0.00,"shift.sale.total":530053.82,"shift.sale.total_cash":461396.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [19:08:11]free response buf [19:08:11]execute_script done [19:08:11]execute_script returns [19:08:11]free content buf [19:08:11]Sock 9.Close socket [19:08:11]Sock 9.Thread stoped [19:08:11]accept exits with 6 [19:08:11]New connection [19:08:11]New thread 3066809700 created [19:08:11]Thread 3066666340 joined [19:08:11]Waiting for new connection... [19:08:11] Sock 6.Parse request [19:08:11]Sock 6.Check first char [19:08:11]Sock 6.First char is OK [19:08:11]request: POST /json_proto HTTP/1.0 [19:08:11]Method: POST [19:08:11]URL: /json_proto [19:08:11]Method is POST - this is cgi request [19:08:11]url: /json_proto [19:08:11]query_string will be loaded in cgi processing [19:08:11]execute_cgi json_proto POST (null) [19:08:11]execute_cgi path=json_proto method=POST [19:08:11]POST find Content-Length [19:08:11]Host: 172.17.44.195:8080 [19:08:11]Content-Length: 678 [19:08:11]Content-Type: application/json [19:08:11] [19:08:11]POST finish read [19:08:11]Found Content-Length = 678 [19:08:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963254", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:08:11]execute_script... [19:08: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)1963254", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:08:11]POST & json_proto [19:08:11]process_json_proto [19:08:11]json parsed OK: [19:08:11]protocol is kg_v1.0 [19:08:11]action value=close_receipt [19:08:11]process_action close_receipt [19:08:11]cmd_close_receipt [19:08:11]MH_GetDate [19:08:11]Write to MH i2c: F0 00 00 1D 00 0C [19:08:11]Write i2c OK [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: F0 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: F0 09 00 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: F0 09 00 1D 00 00 1C 55 15 67 82 C9 CF 66 82 [19:08:11]GetLastDocTimeStamp 1729450597 [19:08:11]current date 1729451292 [19:08:11]FM_GetShiftState [19:08:11]SAM_PROTO_GetShiftState [19:08:11]wFMCommunicate request_size=4 [19:08:11]MH_SAM_APDU [19:08:11]CAPDU: 80 13 01 00 [19:08:11]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [19:08:11]Write i2c OK [19:08:11]MH_I2C_Read... [19:08:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:11]Read from MH i2c: E2 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: E2 0E 00 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 B5 [19:08:11]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [19:08:11]wFMCommunicate OK [19:08:11]SAM_PROTO_GetShiftState done [19:08:11]FM_GetShiftState done [19:08:11]opened in 1729383750 [19:08:11]opened+sec_in_day 1729470150 [19:08:11]quantity*price = 50010 [19:08:11]sum+1 = 50012 [19:08:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 466 20.10.2024 19:08 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227618 ФПД: 127446579417146 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T190812&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227618&fm=127446579417146&tin=02508201610067®Number=0000000000091685&sum=50000 [19:08:12]StoreToDocumentArchive [19:08:12]shift 533 fd 227618 [19:08:12]save to /storage/0533/doc_00227618 [19:08:12]save last doc name /storage/0533/doc_00227618 to /storage/kkm_last_doc_name [19:08:12]save OK [19:08:12]Clear old archive folders... [19:08:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:08:12]tlvbuf is 00C72120 [19:08:12]SAM_PROTO_ClearQueue [19:08:12]wFMCommunicate request_size=4 [19:08:12]MH_SAM_APDU [19:08:12]CAPDU: 80 09 00 00 [19:08:12]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [19:08:12]Write i2c OK [19:08:12]MH_I2C_Read... [19:08:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:08:12]Read from MH i2c: E2 [19:08:12]MH_I2C_Read... [19:08:12]Read from MH i2c: E2 03 00 [19:08:12]MH_I2C_Read... [19:08:12]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [19:08:12]RAPDU: 90 00 [19:08:12]wFMCommunicate OK [19:08:12]SAM_PROTO_ClearQueue done [19:08:12]KKMCreateOFDPacket [19:08:12]OFDProtocolAddRootSTLVToBuf [19:08:12]FM_MakeSignedData [19:08:12]FM_MakeSignedData [19:08:12]SAM_PROTO_SignData [19:08:12]wFMCommunicate request_size=4 [19:08:12]MH_SAM_APDU [19:08:12]CAPDU: 80 0D 01 02 [19:08:12]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [19:08:12]Write i2c OK [19:08:12]MH_I2C_Read... [19:08:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:08:13]Read from MH i2c: E2 [19:08:13]MH_I2C_Read... [19:08:13]Read from MH i2c: E2 03 00 [19:08:13]MH_I2C_Read... [19:08:13]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [19:08:13]RAPDU: 90 00 [19:08:13]wFMCommunicate OK [19:08:13]wFMCommunicate request_size=255 [19:08:13]MH_SAM_APDU [19:08:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 01 00 00 F4 03 04 00 1C 55 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 22 79 03 00 35 04 06 00 73 [19:08:13]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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 01 00 00 F4 03 04 00 1C 55 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 22 79 03 00 35 04 06 00 73 00 00 FC [19:08:13]Write i2c OK [19:08:13]MH_I2C_Read... [19:08:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:13]Read from MH i2c: E2 [19:08:13]MH_I2C_Read... [19:08:13]Read from MH i2c: E2 03 00 [19:08:13]MH_I2C_Read... [19:08:13]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [19:08:13]RAPDU: 90 00 [19:08:13]wFMCommunicate OK [19:08:13]wFMCommunicate request_size=10 [19:08:13]MH_SAM_APDU [19:08:13]CAPDU: 80 0D 02 02 05 E9 78 18 10 3A [19:08:13]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 E9 78 18 10 3A 00 00 75 [19:08:13]Write i2c OK [19:08:13]MH_I2C_Read... [19:08:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:13]Read from MH i2c: E2 [19:08:13]MH_I2C_Read... [19:08:13]Read from MH i2c: E2 03 00 [19:08:13]MH_I2C_Read... [19:08:13]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [19:08:13]RAPDU: 90 00 [19:08:13]wFMCommunicate OK [19:08:13]wFMCommunicate request_size=4 [19:08:13]MH_SAM_APDU [19:08:13]CAPDU: 80 0D 03 02 [19:08:13]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [19:08:13]Write i2c OK [19:08:13]MH_I2C_Read... [19:08:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:08:13]Read from MH i2c: E2 [19:08:13]MH_I2C_Read... [19:08:13]Read from MH i2c: E2 0B 00 [19:08:13]MH_I2C_Read... [19:08:13]Read from MH i2c: E2 0B 00 2F 00 00 34 02 3A 88 94 38 73 C4 90 00 A6 [19:08:13]RAPDU: 34 02 3A 88 94 38 73 C4 90 00 [19:08:13]wFMCommunicate OK [19:08:13]SAM_PROTO_SignData done [19:08:13]FM_MakeSignedData done [19:08:13]CreateOFDProtocolMessage [19:08:13]wFMCommunicate request_size=4 [19:08:13]MH_SAM_APDU [19:08:13]CAPDU: 80 11 00 00 [19:08:13]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [19:08:13]Write i2c OK [19:08:13]MH_I2C_Read... [19:08:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:13]Read from MH i2c: E2 [19:08:13]MH_I2C_Read... [19:08:13]Read from MH i2c: E2 17 00 [19:08:13]MH_I2C_Read... [19:08:13]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 33 39 90 00 01 [19:08:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:08:13]wFMCommunicate OK [19:08:13]CreateOFDProtocolMessage done [19:08:13]OFDSenderStorePacket 227618 [19:08:13]StoreOFDPacket docnum=227618 [19:08:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 72 0A 07 01 85 BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 01 00 00 F4 03 04 00 1C 55 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 22 79 03 00 35 04 06 00 73 E9 78 18 10 3A 34 02 3A 88 94 38 73 C4 [19:08:13]CheckFolder [19:08:13]dirname=/storage/ofd_packets [19:08:13]CheckFolder done [19:08:13]ProducePacketName [19:08:13]name=ofd_packets/00227618 [19:08:13]NVStorageSaveData ofd_packets/00227618 [19:08:13]File name is /storage/ofd_packets/00227618 [19:08:13]Write 301 bytes [19:08:13]NVStorageSaveData done [19:08:13]OFDSenderStorePacket done [19:08:13]KKMCreateOFDPacket done [19:08:13]NVStorageSaveData kkm_last_timestamp [19:08:13]File name is /storage/kkm_last_timestamp [19:08:13]Write 4 bytes [19:08:13]NVStorageSaveData done [19:08:13]ExternCall_PrintAddStr [19:08:13]wPrintStart [19:08:13]Write to MH i2c: 01 00 00 31 00 31 [19:08:13]Write i2c OK [19:08:13]MH_I2C_Read... [19:08:13]Read from MH i2c: 01 [19:08:13]MH_I2C_Read... [19:08:13]Read from MH i2c: 01 07 00 [19:08:13]MH_I2C_Read... [19:08:13]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [19:08:13]RasterBufferAndPrint [19:08:13]line Счет N : (1)1963254 [19:08:13]OFD Sender: Processing packet 227618 [packets to send 38, broken 37] [19:08:13]ProducePacketName [19:08:13]name=ofd_packets/00227618 [19:08:13]OFD Sender: To server: pG, [19:08:13]CommunicateWithHost lk.salyk.kg:30040 [19:08:13]ConnectInit lk.salyk.kg [19:08:13]line ИНН: 02508201610067 [19:08:13]line Контрольно-Кассовый Чек [19:08:13]line ПРОДАЖА [19:08:13]line ТРК (МРК, ГНК) : 64 [19:08:13]line Товар: 2710124500 [19:08:13]line Аи-95-К-5 [19:08:13]line 6.740 * 74.20 [19:08:13]line = 500.11 [19:08:13]line НДС 12% НСП 1% [19:08:13]line > о реализуемом товаре [19:08:13]line ОКРУГЛЕНИЕ: -0.11 [19:08:13]line ИТОГО: 500.00 [19:08:13]line Внесено: 500.00 [19:08:13]line СДАЧА: 0.00 [19:08:13]line НСП 1% : 4.43 [19:08:13]line НДС 12% : 53.11 [19:08:13]line Наличными: 500.00 [19:08:13]line Безнал.: 0.00 [19:08:13]line Место: АЗС № 133 "Партнер Нефть" [19:08:13]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [19:08:13]line СНО: Общий режим [19:08:13]line Чек 466 20.10.2024 19:08 [19:08:13]line Смена: 533 ФФД: 1.0 [19:08:13]line ЗНМ: 0300000091 [19:08:13]line РНМ: 0000000000091685 [19:08:13]line Версия ККМ: 001 [19:08:13]line ФМ: 0000000000871839 [19:08:13]line ФД: 227618 [19:08:13]line ФПД: 127446579417146 [19:08:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T190812&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227618&fm=127446579417146&tin=02508201610067®Number=0000000000091685&sum=50000 [19:08:14]Connected sock=10 [19:08: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 33 39 0F 01 00 00 72 0A 07 01 85 BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 01 00 00 F4 03 04 00 1C 55 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 22 79 03 00 35 04 06 00 73 E9 78 18 10 3A 34 02 3A 88 94 38 73 C4 [19:08:14]written 0, free lines is 4095 [19:08: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 33 39 4F 00 00 00 32 7C 47 00 56 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 33 39 10 04 04 00 22 79 03 00 F4 03 04 00 1A 00 15 67 B6 04 01 00 00 5A 1D E1 B3 A8 64 4F 6B [19:08:14]CommunicateWithHost err = 0 [19:08:14]CheckOFDResponse [19:08:14]1017 (14) - 77093643461234 [19:08:14]1041 (16) - 0000000000871839 [19:08:14]1040 (4) - 227618 [19:08:14]1012 (4) - 20.10.2024 13:05 [19:08:14]1206 (1) - 0 [19:08:14]OFD Sender: Remove packet 227618 [19:08:14]ProducePacketName [19:08:14]name=ofd_packets/00227618 [19:08:14]NVStorageDeleteData [19:08:14]Write to MH i2c: 01 00 00 5B 00 5B [19:08:14]Write i2c OK [19:08:14]MH_I2C_Read... [19:08:14]Read from MH i2c: 01 [19:08:14]MH_I2C_Read... [19:08:14]Read from MH i2c: 01 07 00 [19:08:14]MH_I2C_Read... [19:08:14]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 08 0D 77 [19:08:14]RasterBufferAndPrint [19:08:14]line [19:08:14]line [19:08:14]line [19:08:14]line [19:08:14]line [19:08:14]written 0, free lines is 3348 [19:08:14]process_action close_receipt done [19:08:14]requested_data is exist [19:08:14]produce_requested_data [19:08:14]requested_item fm.sn is exist - process it [19:08:14]wFMCommunicate request_size=4 [19:08:14]MH_SAM_APDU [19:08:14]CAPDU: 80 11 00 00 [19:08:14]Write to MH i2c: E2 08 00 62 00 80 11 00 00 00 00 00 00 DC [19:08:14]Write i2c OK [19:08:14]MH_I2C_Read... [19:08:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:14]Read from MH i2c: E2 [19:08:14]MH_I2C_Read... [19:08:14]Read from MH i2c: E2 17 00 [19:08:14]MH_I2C_Read... [19:08:14]Read from MH i2c: E2 17 00 62 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 33 [19:08:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:08:14]wFMCommunicate OK [19:08:14]requested_item fd.num is exist - process it [19:08:14]SAM_PROTO_GetFieldsCounters [19:08:14]wFMCommunicate request_size=4 [19:08:14]MH_SAM_APDU [19:08:14]CAPDU: 80 13 00 00 [19:08:14]Write to MH i2c: E2 08 00 63 00 80 13 00 00 00 00 00 00 DF [19:08:14]Write i2c OK [19:08:14]MH_I2C_Read... [19:08:14]OFD Sender: No OFD packet to send [19:08:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:08:15]Read from MH i2c: E2 [19:08:15]MH_I2C_Read... [19:08:15]Read from MH i2c: E2 62 00 [19:08:15]MH_I2C_Read... [19:08:15]Read from MH i2c: E2 62 00 63 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 22 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 D2 01 00 00 5E 04 04 00 D2 01 00 00 57 04 04 00 D3 01 00 00 19 04 04 00 00 00 00 00 90 00 36 [19:08: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 22 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 D2 01 00 00 5E 04 04 00 D2 01 00 00 57 04 04 00 D3 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:08:15]wFMCommunicate OK [19:08:15]SAM_PROTO_GetFieldsCounters done [19:08:15]requested_item shift.num is exist - process it [19:08:15]requested_item shift.opened is exist - process it [19:08:15]req_shift_opened [19:08:15]FM_GetShiftState [19:08:15]SAM_PROTO_GetShiftState [19:08:15]wFMCommunicate request_size=4 [19:08:15]MH_SAM_APDU [19:08:15]CAPDU: 80 13 01 00 [19:08:15]Write to MH i2c: E2 08 00 64 00 80 13 01 00 00 00 00 00 E1 [19:08:15]Write i2c OK [19:08:15]MH_I2C_Read... [19:08:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:15]Read from MH i2c: E2 [19:08:15]MH_I2C_Read... [19:08:15]Read from MH i2c: E2 0E 00 [19:08:15]MH_I2C_Read... [19:08:15]Read from MH i2c: E2 0E 00 64 00 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 FB [19:08:15]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [19:08:15]wFMCommunicate OK [19:08:15]SAM_PROTO_GetShiftState done [19:08:15]FM_GetShiftState done [19:08:15]req_shift_opened done [19:08:15]requested_item shift.open_date is exist - process it [19:08:15]req_shift_open_date [19:08:15]req_shift_open_date done [19:08:15]produce_requested_data done [19:08:15]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227618,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [19:08:15]process_action_free close_receipt [19:08:15]json_value_free [19:08:15]json_value_free done [19:08:15]process_json_proto returns [19:08:15]Send response to host [19:08:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227618,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [19:08:15]free response buf [19:08:15]execute_script done [19:08:15]execute_script returns [19:08:15]free content buf [19:08:15]Sock 6.Close socket [19:08:15]Sock 6.Thread stoped [19:08:19]accept exits with 9 [19:08:19]New connection [19:08:19]New thread 3066666340 created [19:08:19]Thread 3066809700 joined [19:08:19]Waiting for new connection... [19:08:19] Sock 9.Parse request [19:08:19]Sock 9.Check first char [19:08:19]Sock 9.First char is OK [19:08:19]request: POST /json_proto HTTP/1.0 [19:08:19]Method: POST [19:08:19]URL: /json_proto [19:08:19]Method is POST - this is cgi request [19:08:19]url: /json_proto [19:08:19]query_string will be loaded in cgi processing [19:08:19]execute_cgi json_proto POST (null) [19:08:19]execute_cgi path=json_proto method=POST [19:08:19]POST find Content-Length [19:08:19]Host: 172.17.44.195:8080 [19:08:19]Content-Length: 683 [19:08:19]Content-Type: application/json [19:08:19] [19:08:19]POST finish read [19:08:19]Found Content-Length = 683 [19:08:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963255", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:08:19]execute_script... [19:08: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)1963255", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:08:19]POST & json_proto [19:08:19]process_json_proto [19:08:19]json parsed OK: [19:08:19]protocol is kg_v1.0 [19:08:19]action value=close_receipt [19:08:19]process_action close_receipt [19:08:19]cmd_close_receipt [19:08:19]MH_GetDate [19:08:19]Write to MH i2c: F0 00 00 65 00 54 [19:08:19]Write i2c OK [19:08:19]MH_I2C_Read... [19:08:19]Read from MH i2c: F0 [19:08:19]MH_I2C_Read... [19:08:19]Read from MH i2c: F0 09 00 [19:08:19]MH_I2C_Read... [19:08:19]Read from MH i2c: F0 09 00 65 00 00 24 55 15 67 82 C9 CF 66 D2 [19:08:19]GetLastDocTimeStamp 1729451292 [19:08:19]current date 1729451300 [19:08:19]FM_GetShiftState [19:08:19]SAM_PROTO_GetShiftState [19:08:19]wFMCommunicate request_size=4 [19:08:19]MH_SAM_APDU [19:08:19]CAPDU: 80 13 01 00 [19:08:19]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [19:08:19]Write i2c OK [19:08:19]MH_I2C_Read... [19:08:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:19]Read from MH i2c: E2 [19:08:19]MH_I2C_Read... [19:08:19]Read from MH i2c: E2 0E 00 [19:08:19]MH_I2C_Read... [19:08:19]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 FD [19:08:19]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [19:08:19]wFMCommunicate OK [19:08:19]SAM_PROTO_GetShiftState done [19:08:19]FM_GetShiftState done [19:08:19]opened in 1729383750 [19:08:19]opened+sec_in_day 1729470150 [19:08:19]quantity*price = 100021 [19:08:19]sum+1 = 100023 [19:08:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 467 20.10.2024 19:08 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227619 ФПД: 10145461749921 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T190820&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227619&fm=10145461749921&tin=02508201610067®Number=0000000000091685&sum=100000 [19:08:20]StoreToDocumentArchive [19:08:20]shift 533 fd 227619 [19:08:20]save to /storage/0533/doc_00227619 [19:08:20]save last doc name /storage/0533/doc_00227619 to /storage/kkm_last_doc_name [19:08:20]save OK [19:08:20]Clear old archive folders... [19:08:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:08:20]tlvbuf is 00C26850 [19:08:20]SAM_PROTO_ClearQueue [19:08:20]wFMCommunicate request_size=4 [19:08:20]MH_SAM_APDU [19:08:20]CAPDU: 80 09 00 00 [19:08:20]Write to MH i2c: E2 08 00 73 00 80 09 00 00 00 00 00 00 E5 [19:08:20]Write i2c OK [19:08:20]MH_I2C_Read... [19:08:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:08:20]Read from MH i2c: E2 [19:08:20]MH_I2C_Read... [19:08:20]Read from MH i2c: E2 03 00 [19:08:20]MH_I2C_Read... [19:08:20]Read from MH i2c: E2 03 00 73 00 00 90 00 E7 [19:08:20]RAPDU: 90 00 [19:08:20]wFMCommunicate OK [19:08:20]SAM_PROTO_ClearQueue done [19:08:20]KKMCreateOFDPacket [19:08:20]OFDProtocolAddRootSTLVToBuf [19:08:20]FM_MakeSignedData [19:08:20]FM_MakeSignedData [19:08:20]SAM_PROTO_SignData [19:08:20]wFMCommunicate request_size=4 [19:08:20]MH_SAM_APDU [19:08:20]CAPDU: 80 0D 01 02 [19:08:20]Write to MH i2c: E2 08 00 74 00 80 0D 01 02 00 00 00 00 ED [19:08:20]Write i2c OK [19:08:20]MH_I2C_Read... [19:08:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:08:20]Read from MH i2c: E2 [19:08:20]MH_I2C_Read... [19:08:20]Read from MH i2c: E2 03 00 [19:08:20]MH_I2C_Read... [19:08:20]Read from MH i2c: E2 03 00 74 00 00 90 00 E8 [19:08:20]RAPDU: 90 00 [19:08:20]wFMCommunicate OK [19:08:20]wFMCommunicate request_size=255 [19:08:20]MH_SAM_APDU [19:08: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 01 00 00 F4 03 04 00 24 55 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 23 79 03 00 35 04 06 00 09 [19:08:20]Write to MH i2c: E2 02 01 75 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 01 00 00 F4 03 04 00 24 55 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 23 79 03 00 35 04 06 00 09 00 00 29 [19:08:20]Write i2c OK [19:08:20]MH_I2C_Read... [19:08:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:21]Read from MH i2c: E2 [19:08:21]MH_I2C_Read... [19:08:21]Read from MH i2c: E2 03 00 [19:08:21]MH_I2C_Read... [19:08:21]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [19:08:21]RAPDU: 90 00 [19:08:21]wFMCommunicate OK [19:08:21]wFMCommunicate request_size=10 [19:08:21]MH_SAM_APDU [19:08:21]CAPDU: 80 0D 02 02 05 3A 2C A4 C8 A1 [19:08:21]Write to MH i2c: E2 0D 00 76 00 80 0D 02 02 05 00 3A 2C A4 C8 A1 00 00 6D [19:08:21]Write i2c OK [19:08:21]MH_I2C_Read... [19:08:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:21]Read from MH i2c: E2 [19:08:21]MH_I2C_Read... [19:08:21]Read from MH i2c: E2 03 00 [19:08:21]MH_I2C_Read... [19:08:21]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [19:08:21]RAPDU: 90 00 [19:08:21]wFMCommunicate OK [19:08:21]wFMCommunicate request_size=4 [19:08:21]MH_SAM_APDU [19:08:21]CAPDU: 80 0D 03 02 [19:08:21]Write to MH i2c: E2 08 00 77 00 80 0D 03 02 00 00 00 00 F2 [19:08:21]Write i2c OK [19:08:21]MH_I2C_Read... [19:08:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:08:21]Read from MH i2c: E2 [19:08:21]MH_I2C_Read... [19:08:21]Read from MH i2c: E2 0B 00 [19:08:21]MH_I2C_Read... [19:08:21]Read from MH i2c: E2 0B 00 77 00 00 D0 AB 1C 7F 84 48 46 3D 90 00 58 [19:08:21]RAPDU: D0 AB 1C 7F 84 48 46 3D 90 00 [19:08:21]wFMCommunicate OK [19:08:21]SAM_PROTO_SignData done [19:08:21]FM_MakeSignedData done [19:08:21]CreateOFDProtocolMessage [19:08:21]wFMCommunicate request_size=4 [19:08:21]MH_SAM_APDU [19:08:21]CAPDU: 80 11 00 00 [19:08:21]Write to MH i2c: E2 08 00 78 00 80 11 00 00 00 00 00 00 F2 [19:08:21]Write i2c OK [19:08:21]MH_I2C_Read... [19:08:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:21]Read from MH i2c: E2 [19:08:21]MH_I2C_Read... [19:08:21]Read from MH i2c: E2 17 00 [19:08:21]MH_I2C_Read... [19:08:21]Read from MH i2c: E2 17 00 78 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 49 [19:08:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:08:21]wFMCommunicate OK [19:08:21]CreateOFDProtocolMessage done [19:08:21]OFDSenderStorePacket 227619 [19:08:21]StoreOFDPacket docnum=227619 [19:08:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 31 A1 07 01 31 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 01 00 00 F4 03 04 00 24 55 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 23 79 03 00 35 04 06 00 09 3A 2C A4 C8 A1 D0 AB 1C 7F 84 48 46 3D [19:08:21]CheckFolder [19:08:21]dirname=/storage/ofd_packets [19:08:21]CheckFolder done [19:08:21]ProducePacketName [19:08:21]name=ofd_packets/00227619 [19:08:21]NVStorageSaveData ofd_packets/00227619 [19:08:21]File name is /storage/ofd_packets/00227619 [19:08:21]Write 301 bytes [19:08:21]NVStorageSaveData done [19:08:21]OFDSenderStorePacket done [19:08:21]KKMCreateOFDPacket done [19:08:21]NVStorageSaveData kkm_last_timestamp [19:08:21]File name is /storage/kkm_last_timestamp [19:08:21]Write 4 bytes [19:08:21]NVStorageSaveData done [19:08:21]ExternCall_PrintAddStr [19:08:21]wPrintStart [19:08:21]Write to MH i2c: 01 00 00 79 00 79 [19:08:21]Write i2c OK [19:08:21]MH_I2C_Read... [19:08:21]Read from MH i2c: 01 [19:08:21]MH_I2C_Read... [19:08:21]Read from MH i2c: 01 07 00 [19:08:21]MH_I2C_Read... [19:08:21]Read from MH i2c: 01 07 00 79 00 00 00 00 00 00 FF 0F 8E [19:08:21]RasterBufferAndPrint [19:08:21]line Счет N : (1)1963255 [19:08:21]line ИНН: 02508201610067 [19:08:21]line Контрольно-Кассовый Чек [19:08:21]line ПРОДАЖА [19:08:21]line ТРК (МРК, ГНК) : 54 [19:08:21]line Товар: 2710124500 [19:08:21]line Аи-95-К-5 [19:08:21]line 13.480 * 74.20 [19:08:21]line = 1000.22 [19:08:21]line НДС 12% НСП 1% [19:08:21]line > о реализуемом товаре [19:08:21]line ОКРУГЛЕНИЕ: -0.22 [19:08:21]line ИТОГО: 1000.00 [19:08:21]line Внесено: 1000.00 [19:08:21]line СДАЧА: 0.00 [19:08:21]line НСП 1% : 8.85 [19:08:21]line НДС 12% : 106.22 [19:08:21]line Наличными: 1000.00 [19:08:21]line Безнал.: 0.00 [19:08:21]line Место: АЗС № 133 "Партнер Нефть" [19:08:21]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [19:08:21]line СНО: Общий режим [19:08:21]line Чек 467 20.10.2024 19:08 [19:08:21]line Смена: 533 ФФД: 1.0 [19:08:21]line ЗНМ: 0300000091 [19:08:21]line РНМ: 0000000000091685 [19:08:21]line Версия ККМ: 001 [19:08:21]line ФМ: 0000000000871839 [19:08:21]line ФД: 227619 [19:08:21]line ФПД: 10145461749921 [19:08:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T190820&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227619&fm=10145461749921&tin=02508201610067®Number=0000000000091685&sum=100000 [19:08:21]written 0, free lines is 4095 [19:08:21]OFD Sender: Processing packet 227619 [packets to send 38, broken 37] [19:08:21]ProducePacketName [19:08:21]name=ofd_packets/00227619 [19:08:21]OFD Sender: To server: pG, [19:08:21]CommunicateWithHost lk.salyk.kg:30040 [19:08:21]ConnectInit lk.salyk.kg [19:08:21]Connected sock=10 [19:08: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 33 39 0F 01 00 00 31 A1 07 01 31 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 01 00 00 F4 03 04 00 24 55 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 23 79 03 00 35 04 06 00 09 3A 2C A4 C8 A1 D0 AB 1C 7F 84 48 46 3D [19:08: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 33 39 4F 00 00 00 90 99 47 00 90 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 23 79 03 00 F4 03 04 00 22 00 15 67 B6 04 01 00 00 05 91 39 7E E6 F6 70 91 [19:08:21]CommunicateWithHost err = 0 [19:08:21]CheckOFDResponse [19:08:21]1017 (14) - 77093643461234 [19:08:21]1041 (16) - 0000000000871839 [19:08:21]1040 (4) - 227619 [19:08:21]1012 (4) - 20.10.2024 13:05 [19:08:21]1206 (1) - 0 [19:08:21]OFD Sender: Remove packet 227619 [19:08:21]ProducePacketName [19:08:21]name=ofd_packets/00227619 [19:08:21]NVStorageDeleteData [19:08:21]Write to MH i2c: 01 00 00 A3 00 A3 [19:08:21]Write i2c OK [19:08:21]MH_I2C_Read... [19:08:21]Read from MH i2c: 01 [19:08:21]MH_I2C_Read... [19:08:21]Read from MH i2c: 01 07 00 [19:08:21]MH_I2C_Read... [19:08:21]Read from MH i2c: 01 07 00 A3 00 00 00 00 00 00 12 0D C9 [19:08:21]RasterBufferAndPrint [19:08:21]line [19:08:21]line [19:08:21]line [19:08:21]line [19:08:21]line [19:08:21]written 0, free lines is 3361 [19:08:21]process_action close_receipt done [19:08:21]requested_data is exist [19:08:21]produce_requested_data [19:08:21]requested_item fm.sn is exist - process it [19:08:21]wFMCommunicate request_size=4 [19:08:21]MH_SAM_APDU [19:08:21]CAPDU: 80 11 00 00 [19:08:21]Write to MH i2c: E2 08 00 AA 00 80 11 00 00 00 00 00 00 24 [19:08:21]Write i2c OK [19:08:21]MH_I2C_Read... [19:08:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:21]Read from MH i2c: E2 [19:08:21]MH_I2C_Read... [19:08:21]Read from MH i2c: E2 17 00 [19:08:21]MH_I2C_Read... [19:08:21]Read from MH i2c: E2 17 00 AA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 7B [19:08:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:08:21]wFMCommunicate OK [19:08:21]requested_item fd.num is exist - process it [19:08:21]SAM_PROTO_GetFieldsCounters [19:08:21]wFMCommunicate request_size=4 [19:08:21]MH_SAM_APDU [19:08:21]CAPDU: 80 13 00 00 [19:08:21]Write to MH i2c: E2 08 00 AB 00 80 13 00 00 00 00 00 00 27 [19:08:21]Write i2c OK [19:08:21]MH_I2C_Read... [19:08:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:08:21]Read from MH i2c: E2 [19:08:21]MH_I2C_Read... [19:08:21]Read from MH i2c: E2 62 00 [19:08:21]MH_I2C_Read... [19:08:21]Read from MH i2c: E2 62 00 AB 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 23 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 D3 01 00 00 5E 04 04 00 D3 01 00 00 57 04 04 00 D4 01 00 00 19 04 04 00 00 00 00 00 90 00 82 [19:08:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 23 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 D3 01 00 00 5E 04 04 00 D3 01 00 00 57 04 04 00 D4 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:08:22]wFMCommunicate OK [19:08:22]SAM_PROTO_GetFieldsCounters done [19:08:22]requested_item shift.num is exist - process it [19:08:22]requested_item shift.opened is exist - process it [19:08:22]req_shift_opened [19:08:22]FM_GetShiftState [19:08:22]SAM_PROTO_GetShiftState [19:08:22]wFMCommunicate request_size=4 [19:08:22]MH_SAM_APDU [19:08:22]CAPDU: 80 13 01 00 [19:08:22]Write to MH i2c: E2 08 00 AC 00 80 13 01 00 00 00 00 00 29 [19:08:22]Write i2c OK [19:08:22]MH_I2C_Read... [19:08:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:22]Read from MH i2c: E2 [19:08:22]MH_I2C_Read... [19:08:22]Read from MH i2c: E2 0E 00 [19:08:22]MH_I2C_Read... [19:08:22]Read from MH i2c: E2 0E 00 AC 00 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 43 [19:08:22]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [19:08:22]wFMCommunicate OK [19:08:22]SAM_PROTO_GetShiftState done [19:08:22]FM_GetShiftState done [19:08:22]req_shift_opened done [19:08:22]requested_item shift.open_date is exist - process it [19:08:22]req_shift_open_date [19:08:22]req_shift_open_date done [19:08:22]produce_requested_data done [19:08:22]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227619,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [19:08:22]process_action_free close_receipt [19:08:22]json_value_free [19:08:22]json_value_free done [19:08:22]process_json_proto returns [19:08:22]Send response to host [19:08:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227619,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [19:08:22]free response buf [19:08:22]execute_script done [19:08:22]execute_script returns [19:08:22]free content buf [19:08:22]Sock 9.Close socket [19:08:22]Sock 9.Thread stoped [19:08:22]OFD Sender: No OFD packet to send [19:08:27]OFD Sender: No OFD packet to send [19:08:32]OFD Sender: No OFD packet to send [19:08:37]OFD Sender: No OFD packet to send [19:08:42]OFD Sender: No OFD packet to send [19:08:47]OFD Sender: No OFD packet to send [19:08:52]OFD Sender: No OFD packet to send [19:08:57]OFD Sender: No OFD packet to send [19:09:02]OFD Sender: No OFD packet to send [19:09:07]OFD Sender: No OFD packet to send [19:09:12]OFD Sender: No OFD packet to send [19:09:17]OFD Sender: No OFD packet to send [19:09:22]OFD Sender: No OFD packet to send [19:09:27]OFD Sender: No OFD packet to send [19:09:32]OFD Sender: No OFD packet to send [19:09:37]OFD Sender: No OFD packet to send [19:09:42]OFD Sender: No OFD packet to send [19:09:47]OFD Sender: No OFD packet to send [19:09:52]OFD Sender: No OFD packet to send [19:09:57]OFD Sender: No OFD packet to send [19:10:02]OFD Sender: No OFD packet to send [19:10:07]OFD Sender: No OFD packet to send [19:10:12]OFD Sender: No OFD packet to send [19:10:17]OFD Sender: No OFD packet to send [19:10:22]OFD Sender: No OFD packet to send [19:10:27]OFD Sender: No OFD packet to send [19:10:32]OFD Sender: No OFD packet to send [19:10:37]OFD Sender: No OFD packet to send [19:10:42]OFD Sender: No OFD packet to send [19:10:47]OFD Sender: No OFD packet to send [19:10:52]OFD Sender: No OFD packet to send [19:10:57]OFD Sender: No OFD packet to send [19:11:02]OFD Sender: No OFD packet to send [19:11:07]OFD Sender: No OFD packet to send [19:11:12]OFD Sender: No OFD packet to send [19:11:17]OFD Sender: No OFD packet to send [19:11:22]OFD Sender: No OFD packet to send [19:11:27]OFD Sender: No OFD packet to send [19:11:32]OFD Sender: No OFD packet to send [19:11:37]OFD Sender: No OFD packet to send [19:11:42]OFD Sender: No OFD packet to send [19:11:47]OFD Sender: No OFD packet to send [19:11:52]OFD Sender: No OFD packet to send [19:11:57]OFD Sender: No OFD packet to send [19:12:02]OFD Sender: No OFD packet to send [19:12:07]OFD Sender: No OFD packet to send [19:12:12]OFD Sender: No OFD packet to send [19:12:17]OFD Sender: No OFD packet to send [19:12:22]OFD Sender: No OFD packet to send [19:12:27]OFD Sender: No OFD packet to send [19:12:32]OFD Sender: No OFD packet to send [19:12:37]OFD Sender: No OFD packet to send [19:12:42]OFD Sender: No OFD packet to send [19:12:47]OFD Sender: No OFD packet to send [19:12:52]OFD Sender: No OFD packet to send [19:12:57]OFD Sender: No OFD packet to send [19:13:02]OFD Sender: No OFD packet to send [19:13:07]OFD Sender: No OFD packet to send [19:13:12]OFD Sender: No OFD packet to send [19:13:17]OFD Sender: No OFD packet to send [19:13:22]OFD Sender: No OFD packet to send [19:13:27]OFD Sender: No OFD packet to send [19:13:32]OFD Sender: No OFD packet to send [19:13:37]OFD Sender: No OFD packet to send [19:13:42]OFD Sender: No OFD packet to send [19:13:47]OFD Sender: No OFD packet to send [19:13:52]OFD Sender: No OFD packet to send [19:13:57]OFD Sender: No OFD packet to send [19:14:02]OFD Sender: No OFD packet to send [19:14:07]OFD Sender: No OFD packet to send [19:14:12]OFD Sender: No OFD packet to send [19:14:17]OFD Sender: No OFD packet to send [19:14:22]OFD Sender: No OFD packet to send [19:14:27]OFD Sender: No OFD packet to send [19:14:32]OFD Sender: No OFD packet to send [19:14:37]OFD Sender: No OFD packet to send [19:14:42]OFD Sender: No OFD packet to send [19:14:47]OFD Sender: No OFD packet to send [19:14:52]OFD Sender: No OFD packet to send [19:14:57]OFD Sender: No OFD packet to send [19:15:02]OFD Sender: No OFD packet to send [19:15:07]OFD Sender: No OFD packet to send [19:15:12]OFD Sender: No OFD packet to send [19:15:17]OFD Sender: No OFD packet to send [19:15:22]OFD Sender: No OFD packet to send [19:15:27]OFD Sender: No OFD packet to send [19:15:32]OFD Sender: No OFD packet to send [19:15:37]OFD Sender: No OFD packet to send [19:15:42]OFD Sender: No OFD packet to send [19:15:47]OFD Sender: No OFD packet to send [19:15:52]OFD Sender: No OFD packet to send [19:15:57]OFD Sender: No OFD packet to send [19:16:02]OFD Sender: No OFD packet to send [19:16:07]OFD Sender: No OFD packet to send [19:16:12]OFD Sender: No OFD packet to send [19:16:17]OFD Sender: No OFD packet to send [19:16:22]OFD Sender: No OFD packet to send [19:16:27]OFD Sender: No OFD packet to send [19:16:32]OFD Sender: No OFD packet to send [19:16:37]OFD Sender: No OFD packet to send [19:16:42]OFD Sender: No OFD packet to send [19:16:47]OFD Sender: No OFD packet to send [19:16:52]OFD Sender: No OFD packet to send [19:16:57]OFD Sender: No OFD packet to send [19:17:02]OFD Sender: No OFD packet to send [19:17:07]OFD Sender: No OFD packet to send [19:17:12]OFD Sender: No OFD packet to send [19:17:17]OFD Sender: No OFD packet to send [19:17:22]OFD Sender: No OFD packet to send [19:17:27]OFD Sender: No OFD packet to send [19:17:32]OFD Sender: No OFD packet to send [19:17:37]OFD Sender: No OFD packet to send [19:17:42]OFD Sender: No OFD packet to send [19:17:47]OFD Sender: No OFD packet to send [19:17:52]OFD Sender: No OFD packet to send [19:17:57]OFD Sender: No OFD packet to send [19:18:02]OFD Sender: No OFD packet to send [19:18:07]OFD Sender: No OFD packet to send [19:18:12]OFD Sender: No OFD packet to send [19:18:17]OFD Sender: No OFD packet to send [19:18:22]OFD Sender: No OFD packet to send [19:18:27]OFD Sender: No OFD packet to send [19:18:32]OFD Sender: No OFD packet to send [19:18:37]OFD Sender: No OFD packet to send [19:18:42]OFD Sender: No OFD packet to send [19:18:47]OFD Sender: No OFD packet to send [19:18:52]OFD Sender: No OFD packet to send [19:18:57]OFD Sender: No OFD packet to send [19:19:02]OFD Sender: No OFD packet to send [19:19:07]OFD Sender: No OFD packet to send [19:19:12]OFD Sender: No OFD packet to send [19:19:17]OFD Sender: No OFD packet to send [19:19:22]OFD Sender: No OFD packet to send [19:19:27]OFD Sender: No OFD packet to send [19:19:32]OFD Sender: No OFD packet to send [19:19:37]OFD Sender: No OFD packet to send [19:19:42]OFD Sender: No OFD packet to send [19:19:47]OFD Sender: No OFD packet to send [19:19:52]OFD Sender: No OFD packet to send [19:19:57]OFD Sender: No OFD packet to send [19:20:02]OFD Sender: No OFD packet to send [19:20:07]OFD Sender: No OFD packet to send [19:20:12]OFD Sender: No OFD packet to send [19:20:17]OFD Sender: No OFD packet to send [19:20:22]OFD Sender: No OFD packet to send [19:20:27]OFD Sender: No OFD packet to send [19:20:32]OFD Sender: No OFD packet to send [19:20:37]OFD Sender: No OFD packet to send [19:20:42]OFD Sender: No OFD packet to send [19:20:47]OFD Sender: No OFD packet to send [19:20:52]OFD Sender: No OFD packet to send [19:20:57]OFD Sender: No OFD packet to send [19:21:02]OFD Sender: No OFD packet to send [19:21:07]OFD Sender: No OFD packet to send [19:21:12]OFD Sender: No OFD packet to send [19:21:17]OFD Sender: No OFD packet to send [19:21:22]OFD Sender: No OFD packet to send [19:21:27]OFD Sender: No OFD packet to send [19:21:32]OFD Sender: No OFD packet to send [19:21:37]OFD Sender: No OFD packet to send [19:21:42]OFD Sender: No OFD packet to send [19:21:47]OFD Sender: No OFD packet to send [19:21:52]OFD Sender: No OFD packet to send [19:21:57]OFD Sender: No OFD packet to send [19:22:02]OFD Sender: No OFD packet to send [19:22:07]OFD Sender: No OFD packet to send [19:22:12]OFD Sender: No OFD packet to send [19:22:17]OFD Sender: No OFD packet to send [19:22:22]OFD Sender: No OFD packet to send [19:22:27]OFD Sender: No OFD packet to send [19:22:32]OFD Sender: No OFD packet to send [19:22:37]OFD Sender: No OFD packet to send [19:22:42]OFD Sender: No OFD packet to send [19:22:47]OFD Sender: No OFD packet to send [19:22:52]OFD Sender: No OFD packet to send [19:22:57]OFD Sender: No OFD packet to send [19:23:02]OFD Sender: No OFD packet to send [19:23:07]OFD Sender: No OFD packet to send [19:23:12]OFD Sender: No OFD packet to send [19:23:17]OFD Sender: No OFD packet to send [19:23:22]OFD Sender: No OFD packet to send [19:23:27]OFD Sender: No OFD packet to send [19:23:32]OFD Sender: No OFD packet to send [19:23:37]OFD Sender: No OFD packet to send [19:23:42]OFD Sender: No OFD packet to send [19:23:47]OFD Sender: No OFD packet to send [19:23:53]OFD Sender: No OFD packet to send [19:23:58]OFD Sender: No OFD packet to send [19:24:03]OFD Sender: No OFD packet to send [19:24:08]OFD Sender: No OFD packet to send [19:24:13]OFD Sender: No OFD packet to send [19:24:18]OFD Sender: No OFD packet to send [19:24:23]OFD Sender: No OFD packet to send [19:24:24]accept exits with 7 [19:24:24]New connection [19:24:24]New thread 3066809700 created [19:24:24]Thread 3066666340 joined [19:24:24]Waiting for new connection... [19:24:24] Sock 7.Parse request [19:24:24]Sock 7.Check first char [19:24:24]Sock 7.First char is OK [19:24:24]request: POST /json_proto HTTP/1.0 [19:24:24]Method: POST [19:24:24]URL: /json_proto [19:24:24]Method is POST - this is cgi request [19:24:24]url: /json_proto [19:24:24]query_string will be loaded in cgi processing [19:24:24]execute_cgi json_proto POST (null) [19:24:24]execute_cgi path=json_proto method=POST [19:24:24]POST find Content-Length [19:24:24]Host: 172.17.44.195:8080 [19:24:24]Content-Length: 678 [19:24:24]Content-Type: application/json [19:24:24] [19:24:24]POST finish read [19:24:24]Found Content-Length = 678 [19:24:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963274", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:24:24]execute_script... [19:24: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)1963274", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:24:24]POST & json_proto [19:24:24]process_json_proto [19:24:24]json parsed OK: [19:24:24]protocol is kg_v1.0 [19:24:24]action value=close_receipt [19:24:24]process_action close_receipt [19:24:24]cmd_close_receipt [19:24:24]MH_GetDate [19:24:24]Write to MH i2c: F0 00 00 AD 00 9C [19:24:24]Write i2c OK [19:24:24]MH_I2C_Read... [19:24:24]Read from MH i2c: F0 [19:24:24]MH_I2C_Read... [19:24:24]Read from MH i2c: F0 09 00 [19:24:24]MH_I2C_Read... [19:24:24]Read from MH i2c: F0 09 00 AD 00 00 E9 58 15 67 82 C9 CF 66 E2 [19:24:24]GetLastDocTimeStamp 1729451300 [19:24:24]current date 1729452265 [19:24:24]FM_GetShiftState [19:24:24]SAM_PROTO_GetShiftState [19:24:24]wFMCommunicate request_size=4 [19:24:24]MH_SAM_APDU [19:24:24]CAPDU: 80 13 01 00 [19:24:24]Write to MH i2c: E2 08 00 AE 00 80 13 01 00 00 00 00 00 2B [19:24:24]Write i2c OK [19:24:24]MH_I2C_Read... [19:24:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:24]Read from MH i2c: E2 [19:24:24]MH_I2C_Read... [19:24:24]Read from MH i2c: E2 0E 00 [19:24:24]MH_I2C_Read... [19:24:24]Read from MH i2c: E2 0E 00 AE 00 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 45 [19:24:24]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [19:24:24]wFMCommunicate OK [19:24:24]SAM_PROTO_GetShiftState done [19:24:24]FM_GetShiftState done [19:24:24]opened in 1729383750 [19:24:24]opened+sec_in_day 1729470150 [19:24:24]quantity*price = 50041 [19:24:24]sum+1 = 50042 [19:24:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 468 20.10.2024 19:24 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227620 ФПД: 62530544707131 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T192425&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227620&fm=62530544707131&tin=02508201610067®Number=0000000000091685&sum=50000 [19:24:25]StoreToDocumentArchive [19:24:25]shift 533 fd 227620 [19:24:25]save to /storage/0533/doc_00227620 [19:24:25]save last doc name /storage/0533/doc_00227620 to /storage/kkm_last_doc_name [19:24:25]save OK [19:24:25]Clear old archive folders... [19:24:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:24:25]tlvbuf is 00BFE1B0 [19:24:25]SAM_PROTO_ClearQueue [19:24:25]wFMCommunicate request_size=4 [19:24:25]MH_SAM_APDU [19:24:25]CAPDU: 80 09 00 00 [19:24:25]Write to MH i2c: E2 08 00 BB 00 80 09 00 00 00 00 00 00 2D [19:24:25]Write i2c OK [19:24:25]MH_I2C_Read... [19:24:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:24:25]Read from MH i2c: E2 [19:24:25]MH_I2C_Read... [19:24:25]Read from MH i2c: E2 03 00 [19:24:25]MH_I2C_Read... [19:24:25]Read from MH i2c: E2 03 00 BB 00 00 90 00 2F [19:24:25]RAPDU: 90 00 [19:24:25]wFMCommunicate OK [19:24:25]SAM_PROTO_ClearQueue done [19:24:25]KKMCreateOFDPacket [19:24:25]OFDProtocolAddRootSTLVToBuf [19:24:25]FM_MakeSignedData [19:24:25]FM_MakeSignedData [19:24:25]SAM_PROTO_SignData [19:24:25]wFMCommunicate request_size=4 [19:24:25]MH_SAM_APDU [19:24:25]CAPDU: 80 0D 01 02 [19:24:25]Write to MH i2c: E2 08 00 BC 00 80 0D 01 02 00 00 00 00 35 [19:24:25]Write i2c OK [19:24:25]MH_I2C_Read... [19:24:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:24:25]Read from MH i2c: E2 [19:24:25]MH_I2C_Read... [19:24:25]Read from MH i2c: E2 03 00 [19:24:25]MH_I2C_Read... [19:24:25]Read from MH i2c: E2 03 00 BC 00 00 90 00 30 [19:24:25]RAPDU: 90 00 [19:24:25]wFMCommunicate OK [19:24:25]wFMCommunicate request_size=255 [19:24:25]MH_SAM_APDU [19:24:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 01 00 00 F4 03 04 00 E9 58 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 24 79 03 00 35 04 06 00 38 [19:24:25]Write to MH i2c: E2 02 01 BD 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 01 00 00 F4 03 04 00 E9 58 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 24 79 03 00 35 04 06 00 38 00 00 4D [19:24:25]Write i2c OK [19:24:25]MH_I2C_Read... [19:24:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:26]Read from MH i2c: E2 [19:24:26]MH_I2C_Read... [19:24:26]Read from MH i2c: E2 03 00 [19:24:26]MH_I2C_Read... [19:24:26]Read from MH i2c: E2 03 00 BD 00 00 90 00 31 [19:24:26]RAPDU: 90 00 [19:24:26]wFMCommunicate OK [19:24:26]wFMCommunicate request_size=10 [19:24:26]MH_SAM_APDU [19:24:26]CAPDU: 80 0D 02 02 05 DF 06 E7 A6 3B [19:24:26]Write to MH i2c: E2 0D 00 BE 00 80 0D 02 02 05 00 DF 06 E7 A6 3B 00 00 EF [19:24:26]Write i2c OK [19:24:26]MH_I2C_Read... [19:24:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:26]Read from MH i2c: E2 [19:24:26]MH_I2C_Read... [19:24:26]Read from MH i2c: E2 03 00 [19:24:26]MH_I2C_Read... [19:24:26]Read from MH i2c: E2 03 00 BE 00 00 90 00 32 [19:24:26]RAPDU: 90 00 [19:24:26]wFMCommunicate OK [19:24:26]wFMCommunicate request_size=4 [19:24:26]MH_SAM_APDU [19:24:26]CAPDU: 80 0D 03 02 [19:24:26]Write to MH i2c: E2 08 00 BF 00 80 0D 03 02 00 00 00 00 3A [19:24:26]Write i2c OK [19:24:26]MH_I2C_Read... [19:24:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:24:26]Read from MH i2c: E2 [19:24:26]MH_I2C_Read... [19:24:26]Read from MH i2c: E2 0B 00 [19:24:26]MH_I2C_Read... [19:24:26]Read from MH i2c: E2 0B 00 BF 00 00 33 86 7E 3A 95 9C AF 88 90 00 14 [19:24:26]RAPDU: 33 86 7E 3A 95 9C AF 88 90 00 [19:24:26]wFMCommunicate OK [19:24:26]SAM_PROTO_SignData done [19:24:26]FM_MakeSignedData done [19:24:26]CreateOFDProtocolMessage [19:24:26]wFMCommunicate request_size=4 [19:24:26]MH_SAM_APDU [19:24:26]CAPDU: 80 11 00 00 [19:24:26]Write to MH i2c: E2 08 00 C0 00 80 11 00 00 00 00 00 00 3A [19:24:26]Write i2c OK [19:24:26]MH_I2C_Read... [19:24:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:26]Read from MH i2c: E2 [19:24:26]MH_I2C_Read... [19:24:26]Read from MH i2c: E2 17 00 [19:24:26]MH_I2C_Read... [19:24:26]Read from MH i2c: E2 17 00 C0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 91 [19:24:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:24:26]wFMCommunicate OK [19:24:26]CreateOFDProtocolMessage done [19:24:26]OFDSenderStorePacket 227620 [19:24:26]StoreOFDPacket docnum=227620 [19:24:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 03 96 07 01 78 A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 01 00 00 F4 03 04 00 E9 58 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 24 79 03 00 35 04 06 00 38 DF 06 E7 A6 3B 33 86 7E 3A 95 9C AF 88 [19:24:26]CheckFolder [19:24:26]dirname=/storage/ofd_packets [19:24:26]CheckFolder done [19:24:26]ProducePacketName [19:24:26]name=ofd_packets/00227620 [19:24:26]NVStorageSaveData ofd_packets/00227620 [19:24:26]File name is /storage/ofd_packets/00227620 [19:24:26]Write 301 bytes [19:24:26]NVStorageSaveData done [19:24:26]OFDSenderStorePacket done [19:24:26]KKMCreateOFDPacket done [19:24:26]NVStorageSaveData kkm_last_timestamp [19:24:26]File name is /storage/kkm_last_timestamp [19:24:26]Write 4 bytes [19:24:26]NVStorageSaveData done [19:24:26]ExternCall_PrintAddStr [19:24:26]wPrintStart [19:24:26]Write to MH i2c: 01 00 00 C1 00 C1 [19:24:26]Write i2c OK [19:24:26]MH_I2C_Read... [19:24:26]Read from MH i2c: 01 [19:24:26]MH_I2C_Read... [19:24:26]Read from MH i2c: 01 07 00 [19:24:26]MH_I2C_Read... [19:24:26]Read from MH i2c: 01 07 00 C1 00 00 00 00 00 00 FF 0F D6 [19:24:26]RasterBufferAndPrint [19:24:26]line Счет N : (1)1963274 [19:24:26]line ИНН: 02508201610067 [19:24:26]line Контрольно-Кассовый Чек [19:24:26]line ПРОДАЖА [19:24:26]line ТРК (МРК, ГНК) : 33 [19:24:26]line Товар: 2710124130 [19:24:26]line Аи-92-К-5 [19:24:26]line 7.480 * 66.90 [19:24:26]line = 500.41 [19:24:26]line НДС 12% НСП 1% [19:24:26]line > о реализуемом товаре [19:24:26]line ОКРУГЛЕНИЕ: -0.41 [19:24:26]line ИТОГО: 500.00 [19:24:26]line Внесено: 500.00 [19:24:26]line СДАЧА: 0.00 [19:24:26]line НСП 1% : 4.43 [19:24:26]line НДС 12% : 53.14 [19:24:26]line Наличными: 500.00 [19:24:26]line Безнал.: 0.00 [19:24:26]line Место: АЗС № 133 "Партнер Нефть" [19:24:26]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [19:24:26]line СНО: Общий режим [19:24:26]line Чек 468 20.10.2024 19:24 [19:24:26]line Смена: 533 ФФД: 1.0 [19:24:26]line ЗНМ: 0300000091 [19:24:26]line РНМ: 0000000000091685 [19:24:26]line Версия ККМ: 001 [19:24:26]line ФМ: 0000000000871839 [19:24:26]line ФД: 227620 [19:24:26]line ФПД: 62530544707131 [19:24:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T192425&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227620&fm=62530544707131&tin=02508201610067®Number=0000000000091685&sum=50000 [19:24:26]written 0, free lines is 4095 [19:24:26]OFD Sender: Processing packet 227620 [packets to send 38, broken 37] [19:24:26]ProducePacketName [19:24:26]name=ofd_packets/00227620 [19:24:26]OFD Sender: To server: pG, [19:24:26]CommunicateWithHost lk.salyk.kg:30040 [19:24:26]ConnectInit lk.salyk.kg [19:24:26]Connected sock=10 [19:24: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 33 39 0F 01 00 00 03 96 07 01 78 A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 01 00 00 F4 03 04 00 E9 58 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 24 79 03 00 35 04 06 00 38 DF 06 E7 A6 3B 33 86 7E 3A 95 9C AF 88 [19:24: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 33 39 4F 00 00 00 1E E7 47 00 AF 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 33 39 10 04 04 00 24 79 03 00 F4 03 04 00 E7 03 15 67 B6 04 01 00 00 7D 1E AD 24 D3 38 80 C9 [19:24:26]CommunicateWithHost err = 0 [19:24:26]CheckOFDResponse [19:24:26]1017 (14) - 77093643461234 [19:24:26]1041 (16) - 0000000000871839 [19:24:26]1040 (4) - 227620 [19:24:26]1012 (4) - 20.10.2024 13:21 [19:24:26]1206 (1) - 0 [19:24:26]OFD Sender: Remove packet 227620 [19:24:26]ProducePacketName [19:24:26]name=ofd_packets/00227620 [19:24:26]NVStorageDeleteData [19:24:26]Write to MH i2c: 01 00 00 EB 00 EB [19:24:26]Write i2c OK [19:24:26]MH_I2C_Read... [19:24:26]Read from MH i2c: 01 [19:24:26]MH_I2C_Read... [19:24:26]Read from MH i2c: 01 07 00 [19:24:26]MH_I2C_Read... [19:24:26]Read from MH i2c: 01 07 00 EB 00 00 00 00 00 00 04 0D 03 [19:24:26]RasterBufferAndPrint [19:24:26]line [19:24:26]line [19:24:26]line [19:24:26]line [19:24:26]line [19:24:26]written 0, free lines is 3339 [19:24:26]process_action close_receipt done [19:24:26]requested_data is exist [19:24:26]produce_requested_data [19:24:26]requested_item fm.sn is exist - process it [19:24:26]wFMCommunicate request_size=4 [19:24:26]MH_SAM_APDU [19:24:26]CAPDU: 80 11 00 00 [19:24:26]Write to MH i2c: E2 08 00 F2 00 80 11 00 00 00 00 00 00 6C [19:24:26]Write i2c OK [19:24:26]MH_I2C_Read... [19:24:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:26]Read from MH i2c: E2 [19:24:26]MH_I2C_Read... [19:24:26]Read from MH i2c: E2 17 00 [19:24:26]MH_I2C_Read... [19:24:26]Read from MH i2c: E2 17 00 F2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C3 [19:24:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:24:26]wFMCommunicate OK [19:24:26]requested_item fd.num is exist - process it [19:24:26]SAM_PROTO_GetFieldsCounters [19:24:26]wFMCommunicate request_size=4 [19:24:26]MH_SAM_APDU [19:24:26]CAPDU: 80 13 00 00 [19:24:26]Write to MH i2c: E2 08 00 F3 00 80 13 00 00 00 00 00 00 6F [19:24:26]Write i2c OK [19:24:26]MH_I2C_Read... [19:24:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:24:27]Read from MH i2c: E2 [19:24:27]MH_I2C_Read... [19:24:27]Read from MH i2c: E2 62 00 [19:24:27]MH_I2C_Read... [19:24:27]Read from MH i2c: E2 62 00 F3 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 24 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 D4 01 00 00 5E 04 04 00 D4 01 00 00 57 04 04 00 D5 01 00 00 19 04 04 00 00 00 00 00 90 00 CE [19:24:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 24 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 D4 01 00 00 5E 04 04 00 D4 01 00 00 57 04 04 00 D5 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:24:27]wFMCommunicate OK [19:24:27]SAM_PROTO_GetFieldsCounters done [19:24:27]requested_item shift.num is exist - process it [19:24:27]requested_item shift.opened is exist - process it [19:24:27]req_shift_opened [19:24:27]FM_GetShiftState [19:24:27]SAM_PROTO_GetShiftState [19:24:27]wFMCommunicate request_size=4 [19:24:27]MH_SAM_APDU [19:24:27]CAPDU: 80 13 01 00 [19:24:27]Write to MH i2c: E2 08 00 F4 00 80 13 01 00 00 00 00 00 71 [19:24:27]Write i2c OK [19:24:27]MH_I2C_Read... [19:24:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:27]Read from MH i2c: E2 [19:24:27]MH_I2C_Read... [19:24:27]Read from MH i2c: E2 0E 00 [19:24:27]MH_I2C_Read... [19:24:27]Read from MH i2c: E2 0E 00 F4 00 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 8B [19:24:27]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [19:24:27]wFMCommunicate OK [19:24:27]SAM_PROTO_GetShiftState done [19:24:27]FM_GetShiftState done [19:24:27]req_shift_opened done [19:24:27]requested_item shift.open_date is exist - process it [19:24:27]req_shift_open_date [19:24:27]req_shift_open_date done [19:24:27]produce_requested_data done [19:24:27]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227620,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [19:24:27]process_action_free close_receipt [19:24:27]json_value_free [19:24:27]json_value_free done [19:24:27]process_json_proto returns [19:24:27]Send response to host [19:24:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227620,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [19:24:27]free response buf [19:24:27]execute_script done [19:24:27]execute_script returns [19:24:27]free content buf [19:24:27]Sock 7.Close socket [19:24:27]Sock 7.Thread stoped [19:24:27]OFD Sender: No OFD packet to send [19:24:32]OFD Sender: No OFD packet to send [19:24:37]OFD Sender: No OFD packet to send [19:24:42]OFD Sender: No OFD packet to send [19:24:45]accept exits with 9 [19:24:45]New connection [19:24:45]New thread 3066666340 created [19:24:45]Thread 3066809700 joined [19:24:45]Waiting for new connection... [19:24:45] Sock 9.Parse request [19:24:45]Sock 9.Check first char [19:24:45]Sock 9.First char is OK [19:24:45]request: POST /json_proto HTTP/1.0 [19:24:45]Method: POST [19:24:45]URL: /json_proto [19:24:45]Method is POST - this is cgi request [19:24:45]url: /json_proto [19:24:45]query_string will be loaded in cgi processing [19:24:45]execute_cgi json_proto POST (null) [19:24:45]execute_cgi path=json_proto method=POST [19:24:45]POST find Content-Length [19:24:45]Host: 172.17.44.195:8080 [19:24:45]Content-Length: 678 [19:24:45]Content-Type: application/json [19:24:45] [19:24:45]POST finish read [19:24:45]Found Content-Length = 678 [19:24:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963275", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:24:45]execute_script... [19:24: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)1963275", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:24:45]POST & json_proto [19:24:45]process_json_proto [19:24:45]json parsed OK: [19:24:45]protocol is kg_v1.0 [19:24:45]action value=close_receipt [19:24:45]process_action close_receipt [19:24:45]cmd_close_receipt [19:24:45]MH_GetDate [19:24:45]Write to MH i2c: F0 00 00 F5 00 E4 [19:24:45]Write i2c OK [19:24:45]MH_I2C_Read... [19:24:45]Read from MH i2c: F0 [19:24:45]MH_I2C_Read... [19:24:45]Read from MH i2c: F0 09 00 [19:24:45]MH_I2C_Read... [19:24:45]Read from MH i2c: F0 09 00 F5 00 00 FE 58 15 67 82 C9 CF 66 3F [19:24:45]GetLastDocTimeStamp 1729452265 [19:24:45]current date 1729452286 [19:24:45]FM_GetShiftState [19:24:45]SAM_PROTO_GetShiftState [19:24:45]wFMCommunicate request_size=4 [19:24:45]MH_SAM_APDU [19:24:45]CAPDU: 80 13 01 00 [19:24:45]Write to MH i2c: E2 08 00 F6 00 80 13 01 00 00 00 00 00 73 [19:24:45]Write i2c OK [19:24:45]MH_I2C_Read... [19:24:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:45]Read from MH i2c: E2 [19:24:45]MH_I2C_Read... [19:24:45]Read from MH i2c: E2 0E 00 [19:24:45]MH_I2C_Read... [19:24:45]Read from MH i2c: E2 0E 00 F6 00 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 8D [19:24:45]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [19:24:45]wFMCommunicate OK [19:24:45]SAM_PROTO_GetShiftState done [19:24:45]FM_GetShiftState done [19:24:45]opened in 1729383750 [19:24:45]opened+sec_in_day 1729470150 [19:24:45]quantity*price = 50041 [19:24:45]sum+1 = 50042 [19:24:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 469 20.10.2024 19:24 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227621 ФПД: 218090448593923 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T192446&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227621&fm=218090448593923&tin=02508201610067®Number=0000000000091685&sum=50000 [19:24:46]StoreToDocumentArchive [19:24:46]shift 533 fd 227621 [19:24:46]save to /storage/0533/doc_00227621 [19:24:46]save last doc name /storage/0533/doc_00227621 to /storage/kkm_last_doc_name [19:24:46]save OK [19:24:46]Clear old archive folders... [19:24:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:24:46]tlvbuf is 00C24EB0 [19:24:46]SAM_PROTO_ClearQueue [19:24:46]wFMCommunicate request_size=4 [19:24:46]MH_SAM_APDU [19:24:46]CAPDU: 80 09 00 00 [19:24:46]Write to MH i2c: E2 08 00 03 01 80 09 00 00 00 00 00 00 76 [19:24:46]Write i2c OK [19:24:46]MH_I2C_Read... [19:24:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:24:46]Read from MH i2c: E2 [19:24:46]MH_I2C_Read... [19:24:46]Read from MH i2c: E2 03 00 [19:24:46]MH_I2C_Read... [19:24:46]Read from MH i2c: E2 03 00 03 01 00 90 00 78 [19:24:46]RAPDU: 90 00 [19:24:46]wFMCommunicate OK [19:24:46]SAM_PROTO_ClearQueue done [19:24:46]KKMCreateOFDPacket [19:24:46]OFDProtocolAddRootSTLVToBuf [19:24:46]FM_MakeSignedData [19:24:46]FM_MakeSignedData [19:24:46]SAM_PROTO_SignData [19:24:46]wFMCommunicate request_size=4 [19:24:46]MH_SAM_APDU [19:24:46]CAPDU: 80 0D 01 02 [19:24:46]Write to MH i2c: E2 08 00 04 01 80 0D 01 02 00 00 00 00 7E [19:24:46]Write i2c OK [19:24:46]MH_I2C_Read... [19:24:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:24:46]Read from MH i2c: E2 [19:24:46]MH_I2C_Read... [19:24:46]Read from MH i2c: E2 03 00 [19:24:46]MH_I2C_Read... [19:24:46]Read from MH i2c: E2 03 00 04 01 00 90 00 79 [19:24:46]RAPDU: 90 00 [19:24:46]wFMCommunicate OK [19:24:46]wFMCommunicate request_size=255 [19:24:46]MH_SAM_APDU [19:24:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 01 00 00 F4 03 04 00 FE 58 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 25 79 03 00 35 04 06 00 C6 [19:24:46]Write to MH i2c: E2 02 01 05 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 01 00 00 F4 03 04 00 FE 58 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 25 79 03 00 35 04 06 00 C6 00 00 3B [19:24:46]Write i2c OK [19:24:46]MH_I2C_Read... [19:24:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:47]Read from MH i2c: E2 [19:24:47]MH_I2C_Read... [19:24:47]Read from MH i2c: E2 03 00 [19:24:47]MH_I2C_Read... [19:24:47]Read from MH i2c: E2 03 00 05 01 00 90 00 7A [19:24:47]RAPDU: 90 00 [19:24:47]wFMCommunicate OK [19:24:47]wFMCommunicate request_size=10 [19:24:47]MH_SAM_APDU [19:24:47]CAPDU: 80 0D 02 02 05 5A 23 B7 A4 03 [19:24:47]Write to MH i2c: E2 0D 00 06 01 80 0D 02 02 05 00 5A 23 B7 A4 03 00 00 66 [19:24:47]Write i2c OK [19:24:47]MH_I2C_Read... [19:24:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:47]Read from MH i2c: E2 [19:24:47]MH_I2C_Read... [19:24:47]Read from MH i2c: E2 03 00 [19:24:47]MH_I2C_Read... [19:24:47]Read from MH i2c: E2 03 00 06 01 00 90 00 7B [19:24:47]RAPDU: 90 00 [19:24:47]wFMCommunicate OK [19:24:47]wFMCommunicate request_size=4 [19:24:47]MH_SAM_APDU [19:24:47]CAPDU: 80 0D 03 02 [19:24:47]Write to MH i2c: E2 08 00 07 01 80 0D 03 02 00 00 00 00 83 [19:24:47]Write i2c OK [19:24:47]MH_I2C_Read... [19:24:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:24:47]Read from MH i2c: E2 [19:24:47]MH_I2C_Read... [19:24:47]Read from MH i2c: E2 0B 00 [19:24:47]MH_I2C_Read... [19:24:47]Read from MH i2c: E2 0B 00 07 01 00 26 74 9B D9 5F 0F F4 5B 90 00 4F [19:24:47]RAPDU: 26 74 9B D9 5F 0F F4 5B 90 00 [19:24:47]wFMCommunicate OK [19:24:47]SAM_PROTO_SignData done [19:24:47]FM_MakeSignedData done [19:24:47]CreateOFDProtocolMessage [19:24:47]wFMCommunicate request_size=4 [19:24:47]MH_SAM_APDU [19:24:47]CAPDU: 80 11 00 00 [19:24:47]Write to MH i2c: E2 08 00 08 01 80 11 00 00 00 00 00 00 83 [19:24:47]Write i2c OK [19:24:47]MH_I2C_Read... [19:24:47]OFD Sender: No OFD packet to send [19:24:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:47]Read from MH i2c: E2 [19:24:47]MH_I2C_Read... [19:24:47]Read from MH i2c: E2 17 00 [19:24:47]MH_I2C_Read... [19:24:47]Read from MH i2c: E2 17 00 08 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 DA [19:24:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:24:47]wFMCommunicate OK [19:24:47]CreateOFDProtocolMessage done [19:24:47]OFDSenderStorePacket 227621 [19:24:47]StoreOFDPacket docnum=227621 [19:24:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 AD FD 07 01 1B 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 01 00 00 F4 03 04 00 FE 58 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 25 79 03 00 35 04 06 00 C6 5A 23 B7 A4 03 26 74 9B D9 5F 0F F4 5B [19:24:47]CheckFolder [19:24:47]dirname=/storage/ofd_packets [19:24:47]CheckFolder done [19:24:47]ProducePacketName [19:24:47]name=ofd_packets/00227621 [19:24:47]NVStorageSaveData ofd_packets/00227621 [19:24:47]File name is /storage/ofd_packets/00227621 [19:24:47]Write 301 bytes [19:24:47]NVStorageSaveData done [19:24:47]OFDSenderStorePacket done [19:24:47]KKMCreateOFDPacket done [19:24:47]NVStorageSaveData kkm_last_timestamp [19:24:47]File name is /storage/kkm_last_timestamp [19:24:47]Write 4 bytes [19:24:47]NVStorageSaveData done [19:24:47]ExternCall_PrintAddStr [19:24:47]wPrintStart [19:24:47]Write to MH i2c: 01 00 00 09 01 0A [19:24:47]Write i2c OK [19:24:47]MH_I2C_Read... [19:24:47]Read from MH i2c: 01 [19:24:47]MH_I2C_Read... [19:24:47]Read from MH i2c: 01 07 00 [19:24:47]MH_I2C_Read... [19:24:47]Read from MH i2c: 01 07 00 09 01 00 00 00 00 00 FF 0F 1F [19:24:47]RasterBufferAndPrint [19:24:47]line Счет N : (1)1963275 [19:24:47]line ИНН: 02508201610067 [19:24:47]line Контрольно-Кассовый Чек [19:24:47]line ПРОДАЖА [19:24:47]line ТРК (МРК, ГНК) : 43 [19:24:47]line Товар: 2710124130 [19:24:47]line Аи-92-К-5 [19:24:47]line 7.480 * 66.90 [19:24:47]line = 500.41 [19:24:47]line НДС 12% НСП 1% [19:24:47]line > о реализуемом товаре [19:24:47]line ОКРУГЛЕНИЕ: -0.41 [19:24:47]line ИТОГО: 500.00 [19:24:47]line Внесено: 500.00 [19:24:47]line СДАЧА: 0.00 [19:24:47]line НСП 1% : 4.43 [19:24:47]line НДС 12% : 53.14 [19:24:47]line Наличными: 500.00 [19:24:47]line Безнал.: 0.00 [19:24:47]line Место: АЗС № 133 "Партнер Нефть" [19:24:47]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [19:24:47]line СНО: Общий режим [19:24:47]line Чек 469 20.10.2024 19:24 [19:24:47]line Смена: 533 ФФД: 1.0 [19:24:47]line ЗНМ: 0300000091 [19:24:47]line РНМ: 0000000000091685 [19:24:47]line Версия ККМ: 001 [19:24:47]line ФМ: 0000000000871839 [19:24:47]line ФД: 227621 [19:24:47]line ФПД: 218090448593923 [19:24:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T192446&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227621&fm=218090448593923&tin=02508201610067®Number=0000000000091685&sum=50000 [19:24:47]OFD Sender: Processing packet 227621 [packets to send 38, broken 37] [19:24:47]ProducePacketName [19:24:47]name=ofd_packets/00227621 [19:24:47]OFD Sender: To server: pG, [19:24:47]CommunicateWithHost lk.salyk.kg:30040 [19:24:47]ConnectInit lk.salyk.kg [19:24:47]written 0, free lines is 4095 [19:24:47]Connected sock=10 [19:24: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 33 39 0F 01 00 00 AD FD 07 01 1B 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 01 00 00 F4 03 04 00 FE 58 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 25 79 03 00 35 04 06 00 C6 5A 23 B7 A4 03 26 74 9B D9 5F 0F F4 5B [19:24: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 33 39 4F 00 00 00 A3 C3 47 00 2D 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 33 39 10 04 04 00 25 79 03 00 F4 03 04 00 FC 03 15 67 B6 04 01 00 00 A6 6A 00 2A 28 04 4B 31 [19:24:48]CommunicateWithHost err = 0 [19:24:48]CheckOFDResponse [19:24:48]1017 (14) - 77093643461234 [19:24:48]1041 (16) - 0000000000871839 [19:24:48]1040 (4) - 227621 [19:24:48]1012 (4) - 20.10.2024 13:22 [19:24:48]1206 (1) - 0 [19:24:48]OFD Sender: Remove packet 227621 [19:24:48]ProducePacketName [19:24:48]name=ofd_packets/00227621 [19:24:48]NVStorageDeleteData [19:24:48]Write to MH i2c: 01 00 00 33 01 34 [19:24:48]Write i2c OK [19:24:48]MH_I2C_Read... [19:24:48]Read from MH i2c: 01 [19:24:48]MH_I2C_Read... [19:24:48]Read from MH i2c: 01 07 00 [19:24:48]MH_I2C_Read... [19:24:48]Read from MH i2c: 01 07 00 33 01 00 00 00 00 00 10 0D 58 [19:24:48]RasterBufferAndPrint [19:24:48]line [19:24:48]line [19:24:48]line [19:24:48]line [19:24:48]line [19:24:48]written 0, free lines is 3350 [19:24:48]process_action close_receipt done [19:24:48]requested_data is exist [19:24:48]produce_requested_data [19:24:48]requested_item fm.sn is exist - process it [19:24:48]wFMCommunicate request_size=4 [19:24:48]MH_SAM_APDU [19:24:48]CAPDU: 80 11 00 00 [19:24:48]Write to MH i2c: E2 08 00 3A 01 80 11 00 00 00 00 00 00 B5 [19:24:48]Write i2c OK [19:24:48]MH_I2C_Read... [19:24:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:48]Read from MH i2c: E2 [19:24:48]MH_I2C_Read... [19:24:48]Read from MH i2c: E2 17 00 [19:24:48]MH_I2C_Read... [19:24:48]Read from MH i2c: E2 17 00 3A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 0C [19:24:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:24:48]wFMCommunicate OK [19:24:48]requested_item fd.num is exist - process it [19:24:48]SAM_PROTO_GetFieldsCounters [19:24:48]wFMCommunicate request_size=4 [19:24:48]MH_SAM_APDU [19:24:48]CAPDU: 80 13 00 00 [19:24:48]Write to MH i2c: E2 08 00 3B 01 80 13 00 00 00 00 00 00 B8 [19:24:48]Write i2c OK [19:24:48]MH_I2C_Read... [19:24:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:24:48]Read from MH i2c: E2 [19:24:48]MH_I2C_Read... [19:24:48]Read from MH i2c: E2 62 00 [19:24:48]MH_I2C_Read... [19:24:48]Read from MH i2c: E2 62 00 3B 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 25 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 D5 01 00 00 5E 04 04 00 D5 01 00 00 57 04 04 00 D6 01 00 00 19 04 04 00 00 00 00 00 90 00 1B [19:24:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 25 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 D5 01 00 00 5E 04 04 00 D5 01 00 00 57 04 04 00 D6 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:24:48]wFMCommunicate OK [19:24:48]SAM_PROTO_GetFieldsCounters done [19:24:48]requested_item shift.num is exist - process it [19:24:48]requested_item shift.opened is exist - process it [19:24:48]req_shift_opened [19:24:48]FM_GetShiftState [19:24:48]SAM_PROTO_GetShiftState [19:24:48]wFMCommunicate request_size=4 [19:24:48]MH_SAM_APDU [19:24:48]CAPDU: 80 13 01 00 [19:24:48]Write to MH i2c: E2 08 00 3C 01 80 13 01 00 00 00 00 00 BA [19:24:48]Write i2c OK [19:24:48]MH_I2C_Read... [19:24:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:48]Read from MH i2c: E2 [19:24:48]MH_I2C_Read... [19:24:48]Read from MH i2c: E2 0E 00 [19:24:48]MH_I2C_Read... [19:24:48]Read from MH i2c: E2 0E 00 3C 01 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 D4 [19:24:48]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [19:24:48]wFMCommunicate OK [19:24:48]SAM_PROTO_GetShiftState done [19:24:48]FM_GetShiftState done [19:24:48]req_shift_opened done [19:24:48]requested_item shift.open_date is exist - process it [19:24:48]req_shift_open_date [19:24:48]req_shift_open_date done [19:24:48]produce_requested_data done [19:24:48]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227621,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [19:24:48]process_action_free close_receipt [19:24:48]json_value_free [19:24:48]json_value_free done [19:24:48]process_json_proto returns [19:24:48]Send response to host [19:24:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227621,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [19:24:48]free response buf [19:24:48]execute_script done [19:24:48]execute_script returns [19:24:48]free content buf [19:24:48]Sock 9.Close socket [19:24:48]Sock 9.Thread stoped [19:24:48]OFD Sender: No OFD packet to send [19:24:48]accept exits with 7 [19:24:48]New connection [19:24:48]New thread 3066809700 created [19:24:48]Thread 3066666340 joined [19:24:48]Waiting for new connection... [19:24:48] Sock 7.Parse request [19:24:48]Sock 7.Check first char [19:24:48]Sock 7.First char is OK [19:24:48]request: POST /json_proto HTTP/1.0 [19:24:48]Method: POST [19:24:48]URL: /json_proto [19:24:48]Method is POST - this is cgi request [19:24:48]url: /json_proto [19:24:48]query_string will be loaded in cgi processing [19:24:48]execute_cgi json_proto POST (null) [19:24:48]execute_cgi path=json_proto method=POST [19:24:48]POST find Content-Length [19:24:48]Host: 172.17.44.195:8080 [19:24:48]Content-Length: 678 [19:24:48]Content-Type: application/json [19:24:48] [19:24:48]POST finish read [19:24:48]Found Content-Length = 678 [19:24:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963276", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:24:48]execute_script... [19:24: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)1963276", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:24:48]POST & json_proto [19:24:48]process_json_proto [19:24:48]json parsed OK: [19:24:48]protocol is kg_v1.0 [19:24:48]action value=close_receipt [19:24:48]process_action close_receipt [19:24:48]cmd_close_receipt [19:24:48]MH_GetDate [19:24:48]Write to MH i2c: F0 00 00 3D 01 2D [19:24:48]Write i2c OK [19:24:48]MH_I2C_Read... [19:24:48]Read from MH i2c: F0 [19:24:48]MH_I2C_Read... [19:24:48]Read from MH i2c: F0 09 00 [19:24:48]MH_I2C_Read... [19:24:48]Read from MH i2c: F0 09 00 3D 01 00 01 59 15 67 82 C9 CF 66 8C [19:24:48]GetLastDocTimeStamp 1729452286 [19:24:48]current date 1729452289 [19:24:48]FM_GetShiftState [19:24:48]SAM_PROTO_GetShiftState [19:24:48]wFMCommunicate request_size=4 [19:24:48]MH_SAM_APDU [19:24:48]CAPDU: 80 13 01 00 [19:24:48]Write to MH i2c: E2 08 00 3E 01 80 13 01 00 00 00 00 00 BC [19:24:48]Write i2c OK [19:24:48]MH_I2C_Read... [19:24:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:48]Read from MH i2c: E2 [19:24:48]MH_I2C_Read... [19:24:48]Read from MH i2c: E2 0E 00 [19:24:48]MH_I2C_Read... [19:24:48]Read from MH i2c: E2 0E 00 3E 01 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 D6 [19:24:48]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [19:24:48]wFMCommunicate OK [19:24:48]SAM_PROTO_GetShiftState done [19:24:48]FM_GetShiftState done [19:24:48]opened in 1729383750 [19:24:48]opened+sec_in_day 1729470150 [19:24:48]quantity*price = 50041 [19:24:48]sum+1 = 50042 [19:24:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 470 20.10.2024 19:24 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227622 ФПД: 185691266818768 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T192449&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227622&fm=185691266818768&tin=02508201610067®Number=0000000000091685&sum=50000 [19:24:50]StoreToDocumentArchive [19:24:50]shift 533 fd 227622 [19:24:50]save to /storage/0533/doc_00227622 [19:24:50]save last doc name /storage/0533/doc_00227622 to /storage/kkm_last_doc_name [19:24:50]save OK [19:24:50]Clear old archive folders... [19:24:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:24:50]tlvbuf is 00C8E830 [19:24:50]SAM_PROTO_ClearQueue [19:24:50]wFMCommunicate request_size=4 [19:24:50]MH_SAM_APDU [19:24:50]CAPDU: 80 09 00 00 [19:24:50]Write to MH i2c: E2 08 00 4B 01 80 09 00 00 00 00 00 00 BE [19:24:50]Write i2c OK [19:24:50]MH_I2C_Read... [19:24:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:24:50]Read from MH i2c: E2 [19:24:50]MH_I2C_Read... [19:24:50]Read from MH i2c: E2 03 00 [19:24:50]MH_I2C_Read... [19:24:50]Read from MH i2c: E2 03 00 4B 01 00 90 00 C0 [19:24:50]RAPDU: 90 00 [19:24:50]wFMCommunicate OK [19:24:50]SAM_PROTO_ClearQueue done [19:24:50]KKMCreateOFDPacket [19:24:50]OFDProtocolAddRootSTLVToBuf [19:24:50]FM_MakeSignedData [19:24:50]FM_MakeSignedData [19:24:50]SAM_PROTO_SignData [19:24:50]wFMCommunicate request_size=4 [19:24:50]MH_SAM_APDU [19:24:50]CAPDU: 80 0D 01 02 [19:24:50]Write to MH i2c: E2 08 00 4C 01 80 0D 01 02 00 00 00 00 C6 [19:24:50]Write i2c OK [19:24:50]MH_I2C_Read... [19:24:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:24:50]Read from MH i2c: E2 [19:24:50]MH_I2C_Read... [19:24:50]Read from MH i2c: E2 03 00 [19:24:50]MH_I2C_Read... [19:24:50]Read from MH i2c: E2 03 00 4C 01 00 90 00 C1 [19:24:50]RAPDU: 90 00 [19:24:50]wFMCommunicate OK [19:24:50]wFMCommunicate request_size=255 [19:24:50]MH_SAM_APDU [19:24:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 01 00 00 F4 03 04 00 01 59 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 26 79 03 00 35 04 06 00 A8 [19:24:50]Write to MH i2c: E2 02 01 4D 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 01 00 00 F4 03 04 00 01 59 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 26 79 03 00 35 04 06 00 A8 00 00 6B [19:24:50]Write i2c OK [19:24:50]MH_I2C_Read... [19:24:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:50]Read from MH i2c: E2 [19:24:50]MH_I2C_Read... [19:24:50]Read from MH i2c: E2 03 00 [19:24:50]MH_I2C_Read... [19:24:50]Read from MH i2c: E2 03 00 4D 01 00 90 00 C2 [19:24:50]RAPDU: 90 00 [19:24:50]wFMCommunicate OK [19:24:50]wFMCommunicate request_size=10 [19:24:50]MH_SAM_APDU [19:24:50]CAPDU: 80 0D 02 02 05 E2 9D FF 22 D0 [19:24:50]Write to MH i2c: E2 0D 00 4E 01 80 0D 02 02 05 00 E2 9D FF 22 D0 00 00 43 [19:24:50]Write i2c OK [19:24:50]MH_I2C_Read... [19:24:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:50]Read from MH i2c: E2 [19:24:50]MH_I2C_Read... [19:24:50]Read from MH i2c: E2 03 00 [19:24:50]MH_I2C_Read... [19:24:50]Read from MH i2c: E2 03 00 4E 01 00 90 00 C3 [19:24:50]RAPDU: 90 00 [19:24:50]wFMCommunicate OK [19:24:50]wFMCommunicate request_size=4 [19:24:50]MH_SAM_APDU [19:24:50]CAPDU: 80 0D 03 02 [19:24:50]Write to MH i2c: E2 08 00 4F 01 80 0D 03 02 00 00 00 00 CB [19:24:50]Write i2c OK [19:24:50]MH_I2C_Read... [19:24:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:24:50]Read from MH i2c: E2 [19:24:50]MH_I2C_Read... [19:24:50]Read from MH i2c: E2 0B 00 [19:24:50]MH_I2C_Read... [19:24:50]Read from MH i2c: E2 0B 00 4F 01 00 2C E3 62 62 FF 86 C5 5C 90 00 45 [19:24:50]RAPDU: 2C E3 62 62 FF 86 C5 5C 90 00 [19:24:50]wFMCommunicate OK [19:24:50]SAM_PROTO_SignData done [19:24:50]FM_MakeSignedData done [19:24:50]CreateOFDProtocolMessage [19:24:50]wFMCommunicate request_size=4 [19:24:50]MH_SAM_APDU [19:24:50]CAPDU: 80 11 00 00 [19:24:50]Write to MH i2c: E2 08 00 50 01 80 11 00 00 00 00 00 00 CB [19:24:50]Write i2c OK [19:24:50]MH_I2C_Read... [19:24:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:50]Read from MH i2c: E2 [19:24:50]MH_I2C_Read... [19:24:50]Read from MH i2c: E2 17 00 [19:24:50]MH_I2C_Read... [19:24:50]Read from MH i2c: E2 17 00 50 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 22 [19:24:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:24:50]wFMCommunicate OK [19:24:50]CreateOFDProtocolMessage done [19:24:50]OFDSenderStorePacket 227622 [19:24:50]StoreOFDPacket docnum=227622 [19:24:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 ED 24 07 01 DB 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 01 00 00 F4 03 04 00 01 59 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 26 79 03 00 35 04 06 00 A8 E2 9D FF 22 D0 2C E3 62 62 FF 86 C5 5C [19:24:50]CheckFolder [19:24:50]dirname=/storage/ofd_packets [19:24:50]CheckFolder done [19:24:50]ProducePacketName [19:24:50]name=ofd_packets/00227622 [19:24:50]NVStorageSaveData ofd_packets/00227622 [19:24:50]File name is /storage/ofd_packets/00227622 [19:24:50]Write 301 bytes [19:24:50]NVStorageSaveData done [19:24:50]OFDSenderStorePacket done [19:24:50]KKMCreateOFDPacket done [19:24:50]NVStorageSaveData kkm_last_timestamp [19:24:50]File name is /storage/kkm_last_timestamp [19:24:50]Write 4 bytes [19:24:50]NVStorageSaveData done [19:24:50]ExternCall_PrintAddStr [19:24:50]wPrintStart [19:24:50]Write to MH i2c: 01 00 00 51 01 52 [19:24:50]Write i2c OK [19:24:50]MH_I2C_Read... [19:24:50]Read from MH i2c: 01 [19:24:50]MH_I2C_Read... [19:24:50]Read from MH i2c: 01 07 00 [19:24:50]MH_I2C_Read... [19:24:50]Read from MH i2c: 01 07 00 51 01 00 00 00 00 00 FF 0F 67 [19:24:50]RasterBufferAndPrint [19:24:50]line Счет N : (1)1963276 [19:24:50]line ИНН: 02508201610067 [19:24:50]line Контрольно-Кассовый Чек [19:24:50]line ПРОДАЖА [19:24:50]line ТРК (МРК, ГНК) : 53 [19:24:50]line Товар: 2710124130 [19:24:50]line Аи-92-К-5 [19:24:50]line 7.480 * 66.90 [19:24:50]line = 500.41 [19:24:50]line НДС 12% НСП 1% [19:24:50]line > о реализуемом товаре [19:24:50]line ОКРУГЛЕНИЕ: -0.41 [19:24:50]line ИТОГО: 500.00 [19:24:50]line Внесено: 500.00 [19:24:50]line СДАЧА: 0.00 [19:24:50]line НСП 1% : 4.43 [19:24:50]line НДС 12% : 53.14 [19:24:50]line Наличными: 500.00 [19:24:50]line Безнал.: 0.00 [19:24:50]line Место: АЗС № 133 "Партнер Нефть" [19:24:50]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [19:24:50]line СНО: Общий режим [19:24:50]line Чек 470 20.10.2024 19:24 [19:24:50]line Смена: 533 ФФД: 1.0 [19:24:50]line ЗНМ: 0300000091 [19:24:50]line РНМ: 0000000000091685 [19:24:50]line Версия ККМ: 001 [19:24:50]line ФМ: 0000000000871839 [19:24:51]line ФД: 227622 [19:24:51]line ФПД: 185691266818768 [19:24:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T192449&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227622&fm=185691266818768&tin=02508201610067®Number=0000000000091685&sum=50000 [19:24:51]OFD Sender: Processing packet 227622 [packets to send 38, broken 37] [19:24:51]ProducePacketName [19:24:51]name=ofd_packets/00227622 [19:24:51]OFD Sender: To server: pG, [19:24:51]CommunicateWithHost lk.salyk.kg:30040 [19:24:51]ConnectInit lk.salyk.kg [19:24:51]written 0, free lines is 4095 [19:24:51]Connected sock=10 [19:24: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 33 39 0F 01 00 00 ED 24 07 01 DB 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 01 00 00 F4 03 04 00 01 59 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 26 79 03 00 35 04 06 00 A8 E2 9D FF 22 D0 2C E3 62 62 FF 86 C5 5C [19:24: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 33 39 4F 00 00 00 FC A9 47 00 F3 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 33 39 10 04 04 00 26 79 03 00 F4 03 04 00 00 04 15 67 B6 04 01 00 00 28 13 42 7F 72 58 BC 3A [19:24:51]CommunicateWithHost err = 0 [19:24:51]CheckOFDResponse [19:24:51]1017 (14) - 77093643461234 [19:24:51]1041 (16) - 0000000000871839 [19:24:51]1040 (4) - 227622 [19:24:51]1012 (4) - 20.10.2024 13:22 [19:24:51]1206 (1) - 0 [19:24:51]OFD Sender: Remove packet 227622 [19:24:51]ProducePacketName [19:24:51]name=ofd_packets/00227622 [19:24:51]NVStorageDeleteData [19:24:51]Write to MH i2c: 01 00 00 7B 01 7C [19:24:51]Write i2c OK [19:24:51]MH_I2C_Read... [19:24:51]Read from MH i2c: 01 [19:24:51]MH_I2C_Read... [19:24:51]Read from MH i2c: 01 07 00 [19:24:51]MH_I2C_Read... [19:24:51]Read from MH i2c: 01 07 00 7B 01 00 00 00 00 00 08 0D 98 [19:24:51]RasterBufferAndPrint [19:24:51]line [19:24:51]line [19:24:51]line [19:24:51]line [19:24:51]line [19:24:51]written 0, free lines is 3348 [19:24:51]process_action close_receipt done [19:24:51]requested_data is exist [19:24:51]produce_requested_data [19:24:51]requested_item fm.sn is exist - process it [19:24:51]wFMCommunicate request_size=4 [19:24:51]MH_SAM_APDU [19:24:51]CAPDU: 80 11 00 00 [19:24:51]Write to MH i2c: E2 08 00 82 01 80 11 00 00 00 00 00 00 FD [19:24:51]Write i2c OK [19:24:51]MH_I2C_Read... [19:24:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:51]Read from MH i2c: E2 [19:24:51]MH_I2C_Read... [19:24:51]Read from MH i2c: E2 17 00 [19:24:51]MH_I2C_Read... [19:24:51]Read from MH i2c: E2 17 00 82 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 54 [19:24:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:24:51]wFMCommunicate OK [19:24:51]requested_item fd.num is exist - process it [19:24:51]SAM_PROTO_GetFieldsCounters [19:24:51]wFMCommunicate request_size=4 [19:24:51]MH_SAM_APDU [19:24:51]CAPDU: 80 13 00 00 [19:24:51]Write to MH i2c: E2 08 00 83 01 80 13 00 00 00 00 00 00 00 [19:24:51]Write i2c OK [19:24:51]MH_I2C_Read... [19:24:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:24:51]Read from MH i2c: E2 [19:24:51]MH_I2C_Read... [19:24:51]Read from MH i2c: E2 62 00 [19:24:51]MH_I2C_Read... [19:24:51]Read from MH i2c: E2 62 00 83 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 26 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 D6 01 00 00 5E 04 04 00 D6 01 00 00 57 04 04 00 D7 01 00 00 19 04 04 00 00 00 00 00 90 00 67 [19:24:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 26 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 D6 01 00 00 5E 04 04 00 D6 01 00 00 57 04 04 00 D7 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:24:51]wFMCommunicate OK [19:24:51]SAM_PROTO_GetFieldsCounters done [19:24:51]requested_item shift.num is exist - process it [19:24:51]requested_item shift.opened is exist - process it [19:24:51]req_shift_opened [19:24:51]FM_GetShiftState [19:24:51]SAM_PROTO_GetShiftState [19:24:51]wFMCommunicate request_size=4 [19:24:51]MH_SAM_APDU [19:24:51]CAPDU: 80 13 01 00 [19:24:51]Write to MH i2c: E2 08 00 84 01 80 13 01 00 00 00 00 00 02 [19:24:51]Write i2c OK [19:24:51]MH_I2C_Read... [19:24:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:52]Read from MH i2c: E2 [19:24:52]MH_I2C_Read... [19:24:52]Read from MH i2c: E2 0E 00 [19:24:52]MH_I2C_Read... [19:24:52]Read from MH i2c: E2 0E 00 84 01 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 1C [19:24:52]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [19:24:52]wFMCommunicate OK [19:24:52]SAM_PROTO_GetShiftState done [19:24:52]FM_GetShiftState done [19:24:52]req_shift_opened done [19:24:52]requested_item shift.open_date is exist - process it [19:24:52]req_shift_open_date [19:24:52]req_shift_open_date done [19:24:52]produce_requested_data done [19:24:52]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227622,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [19:24:52]process_action_free close_receipt [19:24:52]json_value_free [19:24:52]json_value_free done [19:24:52]process_json_proto returns [19:24:52]Send response to host [19:24:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227622,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [19:24:52]free response buf [19:24:52]execute_script done [19:24:52]execute_script returns [19:24:52]free content buf [19:24:52]Sock 7.Close socket [19:24:52]Sock 7.Thread stoped [19:24:52]OFD Sender: No OFD packet to send [19:24:57]OFD Sender: No OFD packet to send [19:25:02]OFD Sender: No OFD packet to send [19:25:07]OFD Sender: No OFD packet to send [19:25:12]OFD Sender: No OFD packet to send [19:25:17]OFD Sender: No OFD packet to send [19:25:22]OFD Sender: No OFD packet to send [19:25:27]OFD Sender: No OFD packet to send [19:25:32]OFD Sender: No OFD packet to send [19:25:37]OFD Sender: No OFD packet to send [19:25:42]OFD Sender: No OFD packet to send [19:25:47]OFD Sender: No OFD packet to send [19:25:52]OFD Sender: No OFD packet to send [19:25:57]OFD Sender: No OFD packet to send [19:26:02]OFD Sender: No OFD packet to send [19:26:07]OFD Sender: No OFD packet to send [19:26:12]OFD Sender: No OFD packet to send [19:26:17]OFD Sender: No OFD packet to send [19:26:22]OFD Sender: No OFD packet to send [19:26:27]OFD Sender: No OFD packet to send [19:26:32]OFD Sender: No OFD packet to send [19:26:37]OFD Sender: No OFD packet to send [19:26:42]OFD Sender: No OFD packet to send [19:26:47]OFD Sender: No OFD packet to send [19:26:52]OFD Sender: No OFD packet to send [19:26:53]accept exits with 9 [19:26:53]New connection [19:26:53]New thread 3066666340 created [19:26:53]Thread 3066809700 joined [19:26:53]Waiting for new connection... [19:26:53] Sock 9.Parse request [19:26:53]Sock 9.Check first char [19:26:53]Sock 9.First char is OK [19:26:53]request: POST /json_proto HTTP/1.0 [19:26:53]Method: POST [19:26:53]URL: /json_proto [19:26:53]Method is POST - this is cgi request [19:26:53]url: /json_proto [19:26:53]query_string will be loaded in cgi processing [19:26:53]execute_cgi json_proto POST (null) [19:26:53]execute_cgi path=json_proto method=POST [19:26:53]POST find Content-Length [19:26:53]Host: 172.17.44.195:8080 [19:26:53]Content-Length: 678 [19:26:53]Content-Type: application/json [19:26:53] [19:26:53]POST finish read [19:26:53]Found Content-Length = 678 [19:26:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963278", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:53]execute_script... [19:26: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)1963278", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:53]POST & json_proto [19:26:53]process_json_proto [19:26:53]json parsed OK: [19:26:53]protocol is kg_v1.0 [19:26:53]action value=close_receipt [19:26:53]process_action close_receipt [19:26:53]cmd_close_receipt [19:26:53]MH_GetDate [19:26:53]Write to MH i2c: F0 00 00 85 01 75 [19:26:53]Write i2c OK [19:26:53]MH_I2C_Read... [19:26:53]Read from MH i2c: F0 [19:26:53]MH_I2C_Read... [19:26:53]Read from MH i2c: F0 09 00 [19:26:53]MH_I2C_Read... [19:26:53]Read from MH i2c: F0 09 00 85 01 00 7E 59 15 67 82 C9 CF 66 51 [19:26:53]GetLastDocTimeStamp 1729452289 [19:26:53]current date 1729452414 [19:26:53]FM_GetShiftState [19:26:53]SAM_PROTO_GetShiftState [19:26:53]wFMCommunicate request_size=4 [19:26:53]MH_SAM_APDU [19:26:53]CAPDU: 80 13 01 00 [19:26:53]Write to MH i2c: E2 08 00 86 01 80 13 01 00 00 00 00 00 04 [19:26:53]Write i2c OK [19:26:53]MH_I2C_Read... [19:26:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:53]Read from MH i2c: E2 [19:26:53]MH_I2C_Read... [19:26:53]Read from MH i2c: E2 0E 00 [19:26:53]MH_I2C_Read... [19:26:53]Read from MH i2c: E2 0E 00 86 01 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 1E [19:26:53]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [19:26:53]wFMCommunicate OK [19:26:53]SAM_PROTO_GetShiftState done [19:26:53]FM_GetShiftState done [19:26:53]opened in 1729383750 [19:26:53]opened+sec_in_day 1729470150 [19:26:53]quantity*price = 50041 [19:26:53]sum+1 = 50042 [19:26:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 471 20.10.2024 19:26 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227623 ФПД: 15844292208055 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T192654&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227623&fm=15844292208055&tin=02508201610067®Number=0000000000091685&sum=50000 [19:26:54]StoreToDocumentArchive [19:26:54]shift 533 fd 227623 [19:26:54]save to /storage/0533/doc_00227623 [19:26:54]save last doc name /storage/0533/doc_00227623 to /storage/kkm_last_doc_name [19:26:54]save OK [19:26:54]Clear old archive folders... [19:26:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:26:54]tlvbuf is 00C25D20 [19:26:54]SAM_PROTO_ClearQueue [19:26:54]wFMCommunicate request_size=4 [19:26:54]MH_SAM_APDU [19:26:54]CAPDU: 80 09 00 00 [19:26:54]Write to MH i2c: E2 08 00 93 01 80 09 00 00 00 00 00 00 06 [19:26:54]Write i2c OK [19:26:54]MH_I2C_Read... [19:26:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:26:54]Read from MH i2c: E2 [19:26:54]MH_I2C_Read... [19:26:54]Read from MH i2c: E2 03 00 [19:26:54]MH_I2C_Read... [19:26:54]Read from MH i2c: E2 03 00 93 01 00 90 00 08 [19:26:54]RAPDU: 90 00 [19:26:54]wFMCommunicate OK [19:26:54]SAM_PROTO_ClearQueue done [19:26:54]KKMCreateOFDPacket [19:26:54]OFDProtocolAddRootSTLVToBuf [19:26:54]FM_MakeSignedData [19:26:54]FM_MakeSignedData [19:26:54]SAM_PROTO_SignData [19:26:54]wFMCommunicate request_size=4 [19:26:54]MH_SAM_APDU [19:26:54]CAPDU: 80 0D 01 02 [19:26:54]Write to MH i2c: E2 08 00 94 01 80 0D 01 02 00 00 00 00 0E [19:26:54]Write i2c OK [19:26:54]MH_I2C_Read... [19:26:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:26:54]Read from MH i2c: E2 [19:26:54]MH_I2C_Read... [19:26:54]Read from MH i2c: E2 03 00 [19:26:54]MH_I2C_Read... [19:26:54]Read from MH i2c: E2 03 00 94 01 00 90 00 09 [19:26:54]RAPDU: 90 00 [19:26:54]wFMCommunicate OK [19:26:54]wFMCommunicate request_size=255 [19:26:54]MH_SAM_APDU [19:26:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 01 00 00 F4 03 04 00 7E 59 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 27 79 03 00 35 04 06 00 0E [19:26:54]Write to MH i2c: E2 02 01 95 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 01 00 00 F4 03 04 00 7E 59 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 27 79 03 00 35 04 06 00 0E 00 00 98 [19:26:54]Write i2c OK [19:26:54]MH_I2C_Read... [19:26:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:54]Read from MH i2c: E2 [19:26:54]MH_I2C_Read... [19:26:54]Read from MH i2c: E2 03 00 [19:26:54]MH_I2C_Read... [19:26:54]Read from MH i2c: E2 03 00 95 01 00 90 00 0A [19:26:54]RAPDU: 90 00 [19:26:54]wFMCommunicate OK [19:26:54]wFMCommunicate request_size=10 [19:26:54]MH_SAM_APDU [19:26:54]CAPDU: 80 0D 02 02 05 69 09 68 A5 B7 [19:26:54]Write to MH i2c: E2 0D 00 96 01 80 0D 02 02 05 00 69 09 68 A5 B7 00 00 51 [19:26:54]Write i2c OK [19:26:54]MH_I2C_Read... [19:26:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:54]Read from MH i2c: E2 [19:26:54]MH_I2C_Read... [19:26:54]Read from MH i2c: E2 03 00 [19:26:54]MH_I2C_Read... [19:26:54]Read from MH i2c: E2 03 00 96 01 00 90 00 0B [19:26:54]RAPDU: 90 00 [19:26:54]wFMCommunicate OK [19:26:54]wFMCommunicate request_size=4 [19:26:54]MH_SAM_APDU [19:26:54]CAPDU: 80 0D 03 02 [19:26:54]Write to MH i2c: E2 08 00 97 01 80 0D 03 02 00 00 00 00 13 [19:26:54]Write i2c OK [19:26:54]MH_I2C_Read... [19:26:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:26:54]Read from MH i2c: E2 [19:26:54]MH_I2C_Read... [19:26:54]Read from MH i2c: E2 0B 00 [19:26:54]MH_I2C_Read... [19:26:54]Read from MH i2c: E2 0B 00 97 01 00 66 83 BC A4 04 3A 5B A2 90 00 98 [19:26:54]RAPDU: 66 83 BC A4 04 3A 5B A2 90 00 [19:26:54]wFMCommunicate OK [19:26:54]SAM_PROTO_SignData done [19:26:54]FM_MakeSignedData done [19:26:54]CreateOFDProtocolMessage [19:26:54]wFMCommunicate request_size=4 [19:26:54]MH_SAM_APDU [19:26:54]CAPDU: 80 11 00 00 [19:26:54]Write to MH i2c: E2 08 00 98 01 80 11 00 00 00 00 00 00 13 [19:26:54]Write i2c OK [19:26:54]MH_I2C_Read... [19:26:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:55]Read from MH i2c: E2 [19:26:55]MH_I2C_Read... [19:26:55]Read from MH i2c: E2 17 00 [19:26:55]MH_I2C_Read... [19:26:55]Read from MH i2c: E2 17 00 98 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 6A [19:26:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:26:55]wFMCommunicate OK [19:26:55]CreateOFDProtocolMessage done [19:26:55]OFDSenderStorePacket 227623 [19:26:55]StoreOFDPacket docnum=227623 [19:26:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 DD 65 07 01 FE D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 01 00 00 F4 03 04 00 7E 59 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 27 79 03 00 35 04 06 00 0E 69 09 68 A5 B7 66 83 BC A4 04 3A 5B A2 [19:26:55]CheckFolder [19:26:55]dirname=/storage/ofd_packets [19:26:55]CheckFolder done [19:26:55]ProducePacketName [19:26:55]name=ofd_packets/00227623 [19:26:55]NVStorageSaveData ofd_packets/00227623 [19:26:55]File name is /storage/ofd_packets/00227623 [19:26:55]Write 301 bytes [19:26:55]NVStorageSaveData done [19:26:55]OFDSenderStorePacket done [19:26:55]KKMCreateOFDPacket done [19:26:55]NVStorageSaveData kkm_last_timestamp [19:26:55]File name is /storage/kkm_last_timestamp [19:26:55]Write 4 bytes [19:26:55]NVStorageSaveData done [19:26:55]ExternCall_PrintAddStr [19:26:55]wPrintStart [19:26:55]Write to MH i2c: 01 00 00 99 01 9A [19:26:55]Write i2c OK [19:26:55]MH_I2C_Read... [19:26:55]Read from MH i2c: 01 [19:26:55]MH_I2C_Read... [19:26:55]Read from MH i2c: 01 07 00 [19:26:55]MH_I2C_Read... [19:26:55]Read from MH i2c: 01 07 00 99 01 00 00 00 00 00 FF 0F AF [19:26:55]RasterBufferAndPrint [19:26:55]line Счет N : (1)1963278 [19:26:55]line ИНН: 02508201610067 [19:26:55]line Контрольно-Кассовый Чек [19:26:55]line ПРОДАЖА [19:26:55]line ТРК (МРК, ГНК) : 63 [19:26:55]line Товар: 2710124130 [19:26:55]line Аи-92-К-5 [19:26:55]line 7.480 * 66.90 [19:26:55]line = 500.41 [19:26:55]line НДС 12% НСП 1% [19:26:55]line > о реализуемом товаре [19:26:55]line ОКРУГЛЕНИЕ: -0.41 [19:26:55]line ИТОГО: 500.00 [19:26:55]line Внесено: 500.00 [19:26:55]line СДАЧА: 0.00 [19:26:55]line НСП 1% : 4.43 [19:26:55]line НДС 12% : 53.14 [19:26:55]line Наличными: 500.00 [19:26:55]line Безнал.: 0.00 [19:26:55]line Место: АЗС № 133 "Партнер Нефть" [19:26:55]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [19:26:55]line СНО: Общий режим [19:26:55]line Чек 471 20.10.2024 19:26 [19:26:55]line Смена: 533 ФФД: 1.0 [19:26:55]line ЗНМ: 0300000091 [19:26:55]line РНМ: 0000000000091685 [19:26:55]line Версия ККМ: 001 [19:26:55]line ФМ: 0000000000871839 [19:26:55]line ФД: 227623 [19:26:55]line ФПД: 15844292208055 [19:26:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T192654&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227623&fm=15844292208055&tin=02508201610067®Number=0000000000091685&sum=50000 [19:26:55]OFD Sender: Processing packet 227623 [packets to send 38, broken 37] [19:26:55]ProducePacketName [19:26:55]name=ofd_packets/00227623 [19:26:55]OFD Sender: To server: pG, [19:26:55]CommunicateWithHost lk.salyk.kg:30040 [19:26:55]ConnectInit lk.salyk.kg [19:26:55]written 0, free lines is 4095 [19:26:55]Connected sock=10 [19:26:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 DD 65 07 01 FE D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 01 00 00 F4 03 04 00 7E 59 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 27 79 03 00 35 04 06 00 0E 69 09 68 A5 B7 66 83 BC A4 04 3A 5B A2 [19:26: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 33 39 4F 00 00 00 9D AD 47 00 41 F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 27 79 03 00 F4 03 04 00 7C 04 15 67 B6 04 01 00 00 D4 9D 5B E7 54 8D 61 8A [19:26:55]CommunicateWithHost err = 0 [19:26:55]CheckOFDResponse [19:26:55]1017 (14) - 77093643461234 [19:26:55]1041 (16) - 0000000000871839 [19:26:55]1040 (4) - 227623 [19:26:55]1012 (4) - 20.10.2024 13:24 [19:26:55]1206 (1) - 0 [19:26:55]OFD Sender: Remove packet 227623 [19:26:55]ProducePacketName [19:26:55]name=ofd_packets/00227623 [19:26:55]NVStorageDeleteData [19:26:55]Write to MH i2c: 01 00 00 C3 01 C4 [19:26:55]Write i2c OK [19:26:55]MH_I2C_Read... [19:26:55]Read from MH i2c: 01 [19:26:55]MH_I2C_Read... [19:26:55]Read from MH i2c: 01 07 00 [19:26:55]MH_I2C_Read... [19:26:55]Read from MH i2c: 01 07 00 C3 01 00 00 00 00 00 02 0D DA [19:26:55]RasterBufferAndPrint [19:26:55]line [19:26:55]line [19:26:55]line [19:26:55]line [19:26:55]line [19:26:55]written 0, free lines is 3336 [19:26:55]process_action close_receipt done [19:26:55]requested_data is exist [19:26:55]produce_requested_data [19:26:55]requested_item fm.sn is exist - process it [19:26:55]wFMCommunicate request_size=4 [19:26:55]MH_SAM_APDU [19:26:55]CAPDU: 80 11 00 00 [19:26:55]Write to MH i2c: E2 08 00 CA 01 80 11 00 00 00 00 00 00 45 [19:26:55]Write i2c OK [19:26:55]MH_I2C_Read... [19:26:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:55]Read from MH i2c: E2 [19:26:55]MH_I2C_Read... [19:26:55]Read from MH i2c: E2 17 00 [19:26:55]MH_I2C_Read... [19:26:55]Read from MH i2c: E2 17 00 CA 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 9C [19:26:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:26:55]wFMCommunicate OK [19:26:55]requested_item fd.num is exist - process it [19:26:55]SAM_PROTO_GetFieldsCounters [19:26:55]wFMCommunicate request_size=4 [19:26:55]MH_SAM_APDU [19:26:55]CAPDU: 80 13 00 00 [19:26:55]Write to MH i2c: E2 08 00 CB 01 80 13 00 00 00 00 00 00 48 [19:26:55]Write i2c OK [19:26:55]MH_I2C_Read... [19:26:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:26:56]Read from MH i2c: E2 [19:26:56]MH_I2C_Read... [19:26:56]Read from MH i2c: E2 62 00 [19:26:56]MH_I2C_Read... [19:26:56]Read from MH i2c: E2 62 00 CB 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 27 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 D7 01 00 00 5E 04 04 00 D7 01 00 00 57 04 04 00 D8 01 00 00 19 04 04 00 00 00 00 00 90 00 B3 [19:26:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 27 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 D7 01 00 00 5E 04 04 00 D7 01 00 00 57 04 04 00 D8 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:26:56]wFMCommunicate OK [19:26:56]SAM_PROTO_GetFieldsCounters done [19:26:56]requested_item shift.num is exist - process it [19:26:56]requested_item shift.opened is exist - process it [19:26:56]req_shift_opened [19:26:56]FM_GetShiftState [19:26:56]SAM_PROTO_GetShiftState [19:26:56]wFMCommunicate request_size=4 [19:26:56]MH_SAM_APDU [19:26:56]CAPDU: 80 13 01 00 [19:26:56]Write to MH i2c: E2 08 00 CC 01 80 13 01 00 00 00 00 00 4A [19:26:56]Write i2c OK [19:26:56]MH_I2C_Read... [19:26:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:56]Read from MH i2c: E2 [19:26:56]MH_I2C_Read... [19:26:56]Read from MH i2c: E2 0E 00 [19:26:56]MH_I2C_Read... [19:26:56]Read from MH i2c: E2 0E 00 CC 01 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 64 [19:26:56]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [19:26:56]wFMCommunicate OK [19:26:56]SAM_PROTO_GetShiftState done [19:26:56]FM_GetShiftState done [19:26:56]req_shift_opened done [19:26:56]requested_item shift.open_date is exist - process it [19:26:56]req_shift_open_date [19:26:56]req_shift_open_date done [19:26:56]produce_requested_data done [19:26:56]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227623,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [19:26:56]process_action_free close_receipt [19:26:56]json_value_free [19:26:56]json_value_free done [19:26:56]process_json_proto returns [19:26:56]Send response to host [19:26:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227623,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [19:26:56]free response buf [19:26:56]execute_script done [19:26:56]execute_script returns [19:26:56]free content buf [19:26:56]Sock 9.Close socket [19:26:56]Sock 9.Thread stoped [19:26:56]OFD Sender: No OFD packet to send [19:27:01]OFD Sender: No OFD packet to send [19:27:06]OFD Sender: No OFD packet to send [19:27:11]OFD Sender: No OFD packet to send [19:27:16]OFD Sender: No OFD packet to send [19:27:21]OFD Sender: No OFD packet to send [19:27:26]OFD Sender: No OFD packet to send [19:27:31]OFD Sender: No OFD packet to send [19:27:31]accept exits with 7 [19:27:31]New connection [19:27:31]New thread 3066809700 created [19:27:31]Thread 3066666340 joined [19:27:31]Waiting for new connection... [19:27:31] Sock 7.Parse request [19:27:31]Sock 7.Check first char [19:27:31]Sock 7.First char is OK [19:27:31]request: POST /json_proto HTTP/1.0 [19:27:31]Method: POST [19:27:31]URL: /json_proto [19:27:31]Method is POST - this is cgi request [19:27:31]url: /json_proto [19:27:31]query_string will be loaded in cgi processing [19:27:31]execute_cgi json_proto POST (null) [19:27:31]execute_cgi path=json_proto method=POST [19:27:31]POST find Content-Length [19:27:31]Host: 172.17.44.195:8080 [19:27:31]Content-Length: 678 [19:27:31]Content-Type: application/json [19:27:31] [19:27:31]POST finish read [19:27:31]Found Content-Length = 678 [19:27:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963279", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:27:31]execute_script... [19:27: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)1963279", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:27:31]POST & json_proto [19:27:31]process_json_proto [19:27:31]json parsed OK: [19:27:31]protocol is kg_v1.0 [19:27:31]action value=close_receipt [19:27:31]process_action close_receipt [19:27:31]cmd_close_receipt [19:27:31]MH_GetDate [19:27:31]Write to MH i2c: F0 00 00 CD 01 BD [19:27:31]Write i2c OK [19:27:31]MH_I2C_Read... [19:27:31]Read from MH i2c: F0 [19:27:31]MH_I2C_Read... [19:27:31]Read from MH i2c: F0 09 00 [19:27:31]MH_I2C_Read... [19:27:31]Read from MH i2c: F0 09 00 CD 01 00 A4 59 15 67 82 C9 CF 66 BF [19:27:31]GetLastDocTimeStamp 1729452414 [19:27:31]current date 1729452452 [19:27:31]FM_GetShiftState [19:27:31]SAM_PROTO_GetShiftState [19:27:31]wFMCommunicate request_size=4 [19:27:31]MH_SAM_APDU [19:27:31]CAPDU: 80 13 01 00 [19:27:31]Write to MH i2c: E2 08 00 CE 01 80 13 01 00 00 00 00 00 4C [19:27:31]Write i2c OK [19:27:31]MH_I2C_Read... [19:27:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:31]Read from MH i2c: E2 [19:27:31]MH_I2C_Read... [19:27:31]Read from MH i2c: E2 0E 00 [19:27:31]MH_I2C_Read... [19:27:31]Read from MH i2c: E2 0E 00 CE 01 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 66 [19:27:31]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [19:27:31]wFMCommunicate OK [19:27:31]SAM_PROTO_GetShiftState done [19:27:31]FM_GetShiftState done [19:27:31]opened in 1729383750 [19:27:31]opened+sec_in_day 1729470150 [19:27:31]quantity*price = 50041 [19:27:31]sum+1 = 50042 [19:27:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 472 20.10.2024 19:27 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227624 ФПД: 86826528298179 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T192732&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227624&fm=86826528298179&tin=02508201610067®Number=0000000000091685&sum=50000 [19:27:32]StoreToDocumentArchive [19:27:32]shift 533 fd 227624 [19:27:32]save to /storage/0533/doc_00227624 [19:27:32]save last doc name /storage/0533/doc_00227624 to /storage/kkm_last_doc_name [19:27:32]save OK [19:27:32]Clear old archive folders... [19:27:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:27:32]tlvbuf is 00C21A20 [19:27:32]SAM_PROTO_ClearQueue [19:27:32]wFMCommunicate request_size=4 [19:27:32]MH_SAM_APDU [19:27:32]CAPDU: 80 09 00 00 [19:27:32]Write to MH i2c: E2 08 00 DB 01 80 09 00 00 00 00 00 00 4E [19:27:32]Write i2c OK [19:27:32]MH_I2C_Read... [19:27:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:27:32]Read from MH i2c: E2 [19:27:32]MH_I2C_Read... [19:27:32]Read from MH i2c: E2 03 00 [19:27:32]MH_I2C_Read... [19:27:32]Read from MH i2c: E2 03 00 DB 01 00 90 00 50 [19:27:32]RAPDU: 90 00 [19:27:32]wFMCommunicate OK [19:27:32]SAM_PROTO_ClearQueue done [19:27:32]KKMCreateOFDPacket [19:27:32]OFDProtocolAddRootSTLVToBuf [19:27:32]FM_MakeSignedData [19:27:32]FM_MakeSignedData [19:27:32]SAM_PROTO_SignData [19:27:32]wFMCommunicate request_size=4 [19:27:32]MH_SAM_APDU [19:27:32]CAPDU: 80 0D 01 02 [19:27:32]Write to MH i2c: E2 08 00 DC 01 80 0D 01 02 00 00 00 00 56 [19:27:32]Write i2c OK [19:27:32]MH_I2C_Read... [19:27:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:27:32]Read from MH i2c: E2 [19:27:32]MH_I2C_Read... [19:27:32]Read from MH i2c: E2 03 00 [19:27:32]MH_I2C_Read... [19:27:32]Read from MH i2c: E2 03 00 DC 01 00 90 00 51 [19:27:32]RAPDU: 90 00 [19:27:32]wFMCommunicate OK [19:27:32]wFMCommunicate request_size=255 [19:27:32]MH_SAM_APDU [19:27:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 01 00 00 F4 03 04 00 A4 59 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 28 79 03 00 35 04 06 00 4E [19:27:32]Write to MH i2c: E2 02 01 DD 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 01 00 00 F4 03 04 00 A4 59 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 28 79 03 00 35 04 06 00 4E 00 00 48 [19:27:32]Write i2c OK [19:27:32]MH_I2C_Read... [19:27:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:27:32]Read from MH i2c: E2 [19:27:32]MH_I2C_Read... [19:27:32]Read from MH i2c: E2 03 00 [19:27:32]MH_I2C_Read... [19:27:32]Read from MH i2c: E2 03 00 DD 01 00 90 00 52 [19:27:32]RAPDU: 90 00 [19:27:32]wFMCommunicate OK [19:27:32]wFMCommunicate request_size=10 [19:27:32]MH_SAM_APDU [19:27:32]CAPDU: 80 0D 02 02 05 F7 E0 60 54 C3 [19:27:32]Write to MH i2c: E2 0D 00 DE 01 80 0D 02 02 05 00 F7 E0 60 54 C3 00 00 B1 [19:27:32]Write i2c OK [19:27:32]MH_I2C_Read... [19:27:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:27:32]Read from MH i2c: E2 [19:27:32]MH_I2C_Read... [19:27:32]Read from MH i2c: E2 03 00 [19:27:32]MH_I2C_Read... [19:27:32]Read from MH i2c: E2 03 00 DE 01 00 90 00 53 [19:27:32]RAPDU: 90 00 [19:27:32]wFMCommunicate OK [19:27:32]wFMCommunicate request_size=4 [19:27:32]MH_SAM_APDU [19:27:32]CAPDU: 80 0D 03 02 [19:27:32]Write to MH i2c: E2 08 00 DF 01 80 0D 03 02 00 00 00 00 5B [19:27:32]Write i2c OK [19:27:32]MH_I2C_Read... [19:27:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:27:32]Read from MH i2c: E2 [19:27:32]MH_I2C_Read... [19:27:32]Read from MH i2c: E2 0B 00 [19:27:32]MH_I2C_Read... [19:27:32]Read from MH i2c: E2 0B 00 DF 01 00 AB C8 70 69 20 33 37 ED 90 00 1F [19:27:32]RAPDU: AB C8 70 69 20 33 37 ED 90 00 [19:27:32]wFMCommunicate OK [19:27:32]SAM_PROTO_SignData done [19:27:32]FM_MakeSignedData done [19:27:32]CreateOFDProtocolMessage [19:27:32]wFMCommunicate request_size=4 [19:27:32]MH_SAM_APDU [19:27:32]CAPDU: 80 11 00 00 [19:27:32]Write to MH i2c: E2 08 00 E0 01 80 11 00 00 00 00 00 00 5B [19:27:32]Write i2c OK [19:27:32]MH_I2C_Read... [19:27:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:33]Read from MH i2c: E2 [19:27:33]MH_I2C_Read... [19:27:33]Read from MH i2c: E2 17 00 [19:27:33]MH_I2C_Read... [19:27:33]Read from MH i2c: E2 17 00 E0 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B2 [19:27:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:27:33]wFMCommunicate OK [19:27:33]CreateOFDProtocolMessage done [19:27:33]OFDSenderStorePacket 227624 [19:27:33]StoreOFDPacket docnum=227624 [19:27:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 54 5D 07 01 08 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 01 00 00 F4 03 04 00 A4 59 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 28 79 03 00 35 04 06 00 4E F7 E0 60 54 C3 AB C8 70 69 20 33 37 ED [19:27:33]CheckFolder [19:27:33]dirname=/storage/ofd_packets [19:27:33]CheckFolder done [19:27:33]ProducePacketName [19:27:33]name=ofd_packets/00227624 [19:27:33]NVStorageSaveData ofd_packets/00227624 [19:27:33]File name is /storage/ofd_packets/00227624 [19:27:33]Write 301 bytes [19:27:33]NVStorageSaveData done [19:27:33]OFDSenderStorePacket done [19:27:33]KKMCreateOFDPacket done [19:27:33]NVStorageSaveData kkm_last_timestamp [19:27:33]File name is /storage/kkm_last_timestamp [19:27:33]Write 4 bytes [19:27:33]NVStorageSaveData done [19:27:33]ExternCall_PrintAddStr [19:27:33]wPrintStart [19:27:33]Write to MH i2c: 01 00 00 E1 01 E2 [19:27:33]Write i2c OK [19:27:33]MH_I2C_Read... [19:27:33]Read from MH i2c: 01 [19:27:33]MH_I2C_Read... [19:27:33]Read from MH i2c: 01 07 00 [19:27:33]MH_I2C_Read... [19:27:33]Read from MH i2c: 01 07 00 E1 01 00 00 00 00 00 FF 0F F7 [19:27:33]RasterBufferAndPrint [19:27:33]line Счет N : (1)1963279 [19:27:33]line ИНН: 02508201610067 [19:27:33]line Контрольно-Кассовый Чек [19:27:33]line ПРОДАЖА [19:27:33]line ТРК (МРК, ГНК) : 33 [19:27:33]line Товар: 2710124130 [19:27:33]line Аи-92-К-5 [19:27:33]line 7.480 * 66.90 [19:27:33]line = 500.41 [19:27:33]line НДС 12% НСП 1% [19:27:33]line > о реализуемом товаре [19:27:33]line ОКРУГЛЕНИЕ: -0.41 [19:27:33]line ИТОГО: 500.00 [19:27:33]line Внесено: 500.00 [19:27:33]line СДАЧА: 0.00 [19:27:33]line НСП 1% : 4.43 [19:27:33]line НДС 12% : 53.14 [19:27:33]line Наличными: 500.00 [19:27:33]line Безнал.: 0.00 [19:27:33]line Место: АЗС № 133 "Партнер Нефть" [19:27:33]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [19:27:33]line СНО: Общий режим [19:27:33]line Чек 472 20.10.2024 19:27 [19:27:33]line Смена: 533 ФФД: 1.0 [19:27:33]line ЗНМ: 0300000091 [19:27:33]line РНМ: 0000000000091685 [19:27:33]line Версия ККМ: 001 [19:27:33]line ФМ: 0000000000871839 [19:27:33]line ФД: 227624 [19:27:33]line ФПД: 86826528298179 [19:27:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T192732&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227624&fm=86826528298179&tin=02508201610067®Number=0000000000091685&sum=50000 [19:27:33]written 0, free lines is 4095 [19:27:33]OFD Sender: Processing packet 227624 [packets to send 38, broken 37] [19:27:33]ProducePacketName [19:27:33]name=ofd_packets/00227624 [19:27:33]OFD Sender: To server: pG, [19:27:33]CommunicateWithHost lk.salyk.kg:30040 [19:27:33]ConnectInit lk.salyk.kg [19:27:33]Connected sock=10 [19:27: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 33 39 0F 01 00 00 54 5D 07 01 08 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 01 00 00 F4 03 04 00 A4 59 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 28 79 03 00 35 04 06 00 4E F7 E0 60 54 C3 AB C8 70 69 20 33 37 ED [19:27: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 33 39 4F 00 00 00 6B 67 47 00 6F 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 33 39 10 04 04 00 28 79 03 00 F4 03 04 00 A2 04 15 67 B6 04 01 00 00 70 8B B7 7A 49 99 D5 C4 [19:27:33]CommunicateWithHost err = 0 [19:27:33]CheckOFDResponse [19:27:33]1017 (14) - 77093643461234 [19:27:33]1041 (16) - 0000000000871839 [19:27:33]1040 (4) - 227624 [19:27:33]1012 (4) - 20.10.2024 13:24 [19:27:33]1206 (1) - 0 [19:27:33]OFD Sender: Remove packet 227624 [19:27:33]ProducePacketName [19:27:33]name=ofd_packets/00227624 [19:27:33]NVStorageDeleteData [19:27:33]Write to MH i2c: 01 00 00 0B 02 0D [19:27:33]Write i2c OK [19:27:33]MH_I2C_Read... [19:27:33]Read from MH i2c: 01 [19:27:33]MH_I2C_Read... [19:27:33]Read from MH i2c: 01 07 00 [19:27:33]MH_I2C_Read... [19:27:33]Read from MH i2c: 01 07 00 0B 02 00 00 00 00 00 01 0D 22 [19:27:33]RasterBufferAndPrint [19:27:33]line [19:27:33]line [19:27:33]line [19:27:33]line [19:27:33]line [19:27:33]written 0, free lines is 3335 [19:27:33]process_action close_receipt done [19:27:33]requested_data is exist [19:27:33]produce_requested_data [19:27:33]requested_item fm.sn is exist - process it [19:27:33]wFMCommunicate request_size=4 [19:27:33]MH_SAM_APDU [19:27:33]CAPDU: 80 11 00 00 [19:27:33]Write to MH i2c: E2 08 00 12 02 80 11 00 00 00 00 00 00 8E [19:27:33]Write i2c OK [19:27:33]MH_I2C_Read... [19:27:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:33]Read from MH i2c: E2 [19:27:33]MH_I2C_Read... [19:27:33]Read from MH i2c: E2 17 00 [19:27:33]MH_I2C_Read... [19:27:33]Read from MH i2c: E2 17 00 12 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E5 [19:27:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:27:33]wFMCommunicate OK [19:27:33]requested_item fd.num is exist - process it [19:27:33]SAM_PROTO_GetFieldsCounters [19:27:33]wFMCommunicate request_size=4 [19:27:33]MH_SAM_APDU [19:27:33]CAPDU: 80 13 00 00 [19:27:33]Write to MH i2c: E2 08 00 13 02 80 13 00 00 00 00 00 00 91 [19:27:33]Write i2c OK [19:27:33]MH_I2C_Read... [19:27:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:27:34]Read from MH i2c: E2 [19:27:34]MH_I2C_Read... [19:27:34]Read from MH i2c: E2 62 00 [19:27:34]MH_I2C_Read... [19:27:34]Read from MH i2c: E2 62 00 13 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 28 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 D8 01 00 00 5E 04 04 00 D8 01 00 00 57 04 04 00 D9 01 00 00 19 04 04 00 00 00 00 00 90 00 00 [19:27: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 28 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 D8 01 00 00 5E 04 04 00 D8 01 00 00 57 04 04 00 D9 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:27:34]wFMCommunicate OK [19:27:34]SAM_PROTO_GetFieldsCounters done [19:27:34]requested_item shift.num is exist - process it [19:27:34]requested_item shift.opened is exist - process it [19:27:34]req_shift_opened [19:27:34]FM_GetShiftState [19:27:34]SAM_PROTO_GetShiftState [19:27:34]wFMCommunicate request_size=4 [19:27:34]MH_SAM_APDU [19:27:34]CAPDU: 80 13 01 00 [19:27:34]Write to MH i2c: E2 08 00 14 02 80 13 01 00 00 00 00 00 93 [19:27:34]Write i2c OK [19:27:34]MH_I2C_Read... [19:27:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:34]Read from MH i2c: E2 [19:27:34]MH_I2C_Read... [19:27:34]Read from MH i2c: E2 0E 00 [19:27:34]MH_I2C_Read... [19:27:34]Read from MH i2c: E2 0E 00 14 02 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 AD [19:27:34]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [19:27:34]wFMCommunicate OK [19:27:34]SAM_PROTO_GetShiftState done [19:27:34]FM_GetShiftState done [19:27:34]req_shift_opened done [19:27:34]requested_item shift.open_date is exist - process it [19:27:34]req_shift_open_date [19:27:34]req_shift_open_date done [19:27:34]produce_requested_data done [19:27:34]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227624,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [19:27:34]process_action_free close_receipt [19:27:34]json_value_free [19:27:34]json_value_free done [19:27:34]process_json_proto returns [19:27:34]Send response to host [19:27:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227624,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [19:27:34]free response buf [19:27:34]execute_script done [19:27:34]execute_script returns [19:27:34]free content buf [19:27:34]Sock 7.Close socket [19:27:34]Sock 7.Thread stoped [19:27:34]OFD Sender: No OFD packet to send [19:27:39]OFD Sender: No OFD packet to send [19:27:44]OFD Sender: No OFD packet to send [19:27:49]OFD Sender: No OFD packet to send [19:27:54]OFD Sender: No OFD packet to send [19:27:59]OFD Sender: No OFD packet to send [19:28:04]OFD Sender: No OFD packet to send [19:28:09]OFD Sender: No OFD packet to send [19:28:14]OFD Sender: No OFD packet to send [19:28:19]OFD Sender: No OFD packet to send [19:28:24]OFD Sender: No OFD packet to send [19:28:29]OFD Sender: No OFD packet to send [19:28:34]OFD Sender: No OFD packet to send [19:28:39]OFD Sender: No OFD packet to send [19:28:44]OFD Sender: No OFD packet to send [19:28:49]OFD Sender: No OFD packet to send [19:28:54]OFD Sender: No OFD packet to send [19:28:59]OFD Sender: No OFD packet to send [19:29:04]OFD Sender: No OFD packet to send [19:29:07]accept exits with 9 [19:29:07]New connection [19:29:07]New thread 3066666340 created [19:29:07]Thread 3066809700 joined [19:29:07]Waiting for new connection... [19:29:07] Sock 9.Parse request [19:29:07]Sock 9.Check first char [19:29:07]Sock 9.First char is OK [19:29:07]request: POST /json_proto HTTP/1.0 [19:29:07]Method: POST [19:29:07]URL: /json_proto [19:29:07]Method is POST - this is cgi request [19:29:07]url: /json_proto [19:29:07]query_string will be loaded in cgi processing [19:29:07]execute_cgi json_proto POST (null) [19:29:07]execute_cgi path=json_proto method=POST [19:29:07]POST find Content-Length [19:29:07]Host: 172.17.44.195:8080 [19:29:07]Content-Length: 678 [19:29:07]Content-Type: application/json [19:29:07] [19:29:07]POST finish read [19:29:07]Found Content-Length = 678 [19:29:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963280", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:29:07]execute_script... [19:29: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)1963280", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:29:07]POST & json_proto [19:29:07]process_json_proto [19:29:07]json parsed OK: [19:29:07]protocol is kg_v1.0 [19:29:07]action value=close_receipt [19:29:07]process_action close_receipt [19:29:07]cmd_close_receipt [19:29:07]MH_GetDate [19:29:07]Write to MH i2c: F0 00 00 15 02 06 [19:29:07]Write i2c OK [19:29:07]MH_I2C_Read... [19:29:07]Read from MH i2c: F0 [19:29:07]MH_I2C_Read... [19:29:07]Read from MH i2c: F0 09 00 [19:29:07]MH_I2C_Read... [19:29:07]Read from MH i2c: F0 09 00 15 02 00 04 5A 15 67 82 C9 CF 66 69 [19:29:07]GetLastDocTimeStamp 1729452452 [19:29:07]current date 1729452548 [19:29:07]FM_GetShiftState [19:29:07]SAM_PROTO_GetShiftState [19:29:07]wFMCommunicate request_size=4 [19:29:07]MH_SAM_APDU [19:29:07]CAPDU: 80 13 01 00 [19:29:07]Write to MH i2c: E2 08 00 16 02 80 13 01 00 00 00 00 00 95 [19:29:07]Write i2c OK [19:29:07]MH_I2C_Read... [19:29:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:29:07]Read from MH i2c: E2 [19:29:07]MH_I2C_Read... [19:29:07]Read from MH i2c: E2 0E 00 [19:29:07]MH_I2C_Read... [19:29:07]Read from MH i2c: E2 0E 00 16 02 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 AF [19:29:07]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [19:29:07]wFMCommunicate OK [19:29:07]SAM_PROTO_GetShiftState done [19:29:07]FM_GetShiftState done [19:29:07]opened in 1729383750 [19:29:07]opened+sec_in_day 1729470150 [19:29:07]quantity*price = 50041 [19:29:07]sum+1 = 50042 [19:29:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 473 20.10.2024 19:29 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227625 ФПД: 88475673546303 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T192908&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227625&fm=88475673546303&tin=02508201610067®Number=0000000000091685&sum=50000 [19:29:08]StoreToDocumentArchive [19:29:08]shift 533 fd 227625 [19:29:08]save to /storage/0533/doc_00227625 [19:29:08]save last doc name /storage/0533/doc_00227625 to /storage/kkm_last_doc_name [19:29:08]save OK [19:29:08]Clear old archive folders... [19:29:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:29:08]tlvbuf is 00C23340 [19:29:08]SAM_PROTO_ClearQueue [19:29:08]wFMCommunicate request_size=4 [19:29:08]MH_SAM_APDU [19:29:08]CAPDU: 80 09 00 00 [19:29:08]Write to MH i2c: E2 08 00 23 02 80 09 00 00 00 00 00 00 97 [19:29:08]Write i2c OK [19:29:08]MH_I2C_Read... [19:29:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:29:08]Read from MH i2c: E2 [19:29:08]MH_I2C_Read... [19:29:08]Read from MH i2c: E2 03 00 [19:29:08]MH_I2C_Read... [19:29:08]Read from MH i2c: E2 03 00 23 02 00 90 00 99 [19:29:08]RAPDU: 90 00 [19:29:08]wFMCommunicate OK [19:29:08]SAM_PROTO_ClearQueue done [19:29:08]KKMCreateOFDPacket [19:29:08]OFDProtocolAddRootSTLVToBuf [19:29:08]FM_MakeSignedData [19:29:08]FM_MakeSignedData [19:29:08]SAM_PROTO_SignData [19:29:08]wFMCommunicate request_size=4 [19:29:08]MH_SAM_APDU [19:29:08]CAPDU: 80 0D 01 02 [19:29:08]Write to MH i2c: E2 08 00 24 02 80 0D 01 02 00 00 00 00 9F [19:29:08]Write i2c OK [19:29:08]MH_I2C_Read... [19:29:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:29:08]Read from MH i2c: E2 [19:29:08]MH_I2C_Read... [19:29:08]Read from MH i2c: E2 03 00 [19:29:08]MH_I2C_Read... [19:29:08]Read from MH i2c: E2 03 00 24 02 00 90 00 9A [19:29:08]RAPDU: 90 00 [19:29:08]wFMCommunicate OK [19:29:08]wFMCommunicate request_size=255 [19:29:08]MH_SAM_APDU [19:29:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 01 00 00 F4 03 04 00 04 5A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 29 79 03 00 35 04 06 00 50 [19:29:08]Write to MH i2c: E2 02 01 25 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 01 00 00 F4 03 04 00 04 5A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 29 79 03 00 35 04 06 00 50 00 00 F6 [19:29:08]Write i2c OK [19:29:08]MH_I2C_Read... [19:29:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:29:09]Read from MH i2c: E2 [19:29:09]MH_I2C_Read... [19:29:09]Read from MH i2c: E2 03 00 [19:29:09]MH_I2C_Read... [19:29:09]Read from MH i2c: E2 03 00 25 02 00 90 00 9B [19:29:09]RAPDU: 90 00 [19:29:09]wFMCommunicate OK [19:29:09]wFMCommunicate request_size=10 [19:29:09]MH_SAM_APDU [19:29:09]CAPDU: 80 0D 02 02 05 77 D9 17 CE 3F [19:29:09]Write to MH i2c: E2 0D 00 26 02 80 0D 02 02 05 00 77 D9 17 CE 3F 00 00 20 [19:29:09]Write i2c OK [19:29:09]MH_I2C_Read... [19:29:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:29:09]Read from MH i2c: E2 [19:29:09]MH_I2C_Read... [19:29:09]Read from MH i2c: E2 03 00 [19:29:09]MH_I2C_Read... [19:29:09]Read from MH i2c: E2 03 00 26 02 00 90 00 9C [19:29:09]RAPDU: 90 00 [19:29:09]wFMCommunicate OK [19:29:09]wFMCommunicate request_size=4 [19:29:09]MH_SAM_APDU [19:29:09]CAPDU: 80 0D 03 02 [19:29:09]Write to MH i2c: E2 08 00 27 02 80 0D 03 02 00 00 00 00 A4 [19:29:09]Write i2c OK [19:29:09]MH_I2C_Read... [19:29:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:29:09]Read from MH i2c: E2 [19:29:09]MH_I2C_Read... [19:29:09]Read from MH i2c: E2 0B 00 [19:29:09]MH_I2C_Read... [19:29:09]Read from MH i2c: E2 0B 00 27 02 00 5C B6 3B 7C 7E 64 F5 60 90 00 A5 [19:29:09]RAPDU: 5C B6 3B 7C 7E 64 F5 60 90 00 [19:29:09]wFMCommunicate OK [19:29:09]SAM_PROTO_SignData done [19:29:09]FM_MakeSignedData done [19:29:09]CreateOFDProtocolMessage [19:29:09]wFMCommunicate request_size=4 [19:29:09]MH_SAM_APDU [19:29:09]CAPDU: 80 11 00 00 [19:29:09]Write to MH i2c: E2 08 00 28 02 80 11 00 00 00 00 00 00 A4 [19:29:09]Write i2c OK [19:29:09]MH_I2C_Read... [19:29:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:29:09]Read from MH i2c: E2 [19:29:09]MH_I2C_Read... [19:29:09]Read from MH i2c: E2 17 00 [19:29:09]MH_I2C_Read... [19:29:09]Read from MH i2c: E2 17 00 28 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 FB [19:29:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:29:09]wFMCommunicate OK [19:29:09]CreateOFDProtocolMessage done [19:29:09]OFDSenderStorePacket 227625 [19:29:09]StoreOFDPacket docnum=227625 [19:29:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 75 A1 07 01 55 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 01 00 00 F4 03 04 00 04 5A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 29 79 03 00 35 04 06 00 50 77 D9 17 CE 3F 5C B6 3B 7C 7E 64 F5 60 [19:29:09]CheckFolder [19:29:09]dirname=/storage/ofd_packets [19:29:09]CheckFolder done [19:29:09]ProducePacketName [19:29:09]name=ofd_packets/00227625 [19:29:09]NVStorageSaveData ofd_packets/00227625 [19:29:09]File name is /storage/ofd_packets/00227625 [19:29:09]Write 301 bytes [19:29:09]NVStorageSaveData done [19:29:09]OFDSenderStorePacket done [19:29:09]KKMCreateOFDPacket done [19:29:09]NVStorageSaveData kkm_last_timestamp [19:29:09]File name is /storage/kkm_last_timestamp [19:29:09]Write 4 bytes [19:29:09]NVStorageSaveData done [19:29:09]ExternCall_PrintAddStr [19:29:09]wPrintStart [19:29:09]Write to MH i2c: 01 00 00 29 02 2B [19:29:09]Write i2c OK [19:29:09]MH_I2C_Read... [19:29:09]Read from MH i2c: 01 [19:29:09]MH_I2C_Read... [19:29:09]Read from MH i2c: 01 07 00 [19:29:09]MH_I2C_Read... [19:29:09]Read from MH i2c: 01 07 00 29 02 00 00 00 00 00 FF 0F 40 [19:29:09]RasterBufferAndPrint [19:29:09]line Счет N : (1)1963280 [19:29:09]line ИНН: 02508201610067 [19:29:09]line Контрольно-Кассовый Чек [19:29:09]line ПРОДАЖА [19:29:09]line ТРК (МРК, ГНК) : 53 [19:29:09]line Товар: 2710124130 [19:29:09]line Аи-92-К-5 [19:29:09]line 7.480 * 66.90 [19:29:09]line = 500.41 [19:29:09]line НДС 12% НСП 1% [19:29:09]line > о реализуемом товаре [19:29:09]line ОКРУГЛЕНИЕ: -0.41 [19:29:09]line ИТОГО: 500.00 [19:29:09]line Внесено: 500.00 [19:29:09]line СДАЧА: 0.00 [19:29:09]line НСП 1% : 4.43 [19:29:09]line НДС 12% : 53.14 [19:29:09]line Наличными: 500.00 [19:29:09]line Безнал.: 0.00 [19:29:09]line Место: АЗС № 133 "Партнер Нефть" [19:29:09]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [19:29:09]line СНО: Общий режим [19:29:09]line Чек 473 20.10.2024 19:29 [19:29:09]line Смена: 533 ФФД: 1.0 [19:29:09]line ЗНМ: 0300000091 [19:29:09]line РНМ: 0000000000091685 [19:29:09]line Версия ККМ: 001 [19:29:09]line ФМ: 0000000000871839 [19:29:09]line ФД: 227625 [19:29:09]line ФПД: 88475673546303 [19:29:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T192908&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227625&fm=88475673546303&tin=02508201610067®Number=0000000000091685&sum=50000 [19:29:09]written 0, free lines is 4095 [19:29:09]OFD Sender: Processing packet 227625 [packets to send 38, broken 37] [19:29:09]ProducePacketName [19:29:09]name=ofd_packets/00227625 [19:29:09]OFD Sender: To server: pG, [19:29:09]CommunicateWithHost lk.salyk.kg:30040 [19:29:09]ConnectInit lk.salyk.kg [19:29:09]Connected sock=10 [19:29: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 33 39 0F 01 00 00 75 A1 07 01 55 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 01 00 00 F4 03 04 00 04 5A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 29 79 03 00 35 04 06 00 50 77 D9 17 CE 3F 5C B6 3B 7C 7E 64 F5 60 [19:29: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 33 39 4F 00 00 00 30 69 47 00 8A 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 29 79 03 00 F4 03 04 00 02 05 15 67 B6 04 01 00 00 91 9D 26 A4 AC 1A 31 5B [19:29:09]CommunicateWithHost err = 0 [19:29:09]CheckOFDResponse [19:29:09]1017 (14) - 77093643461234 [19:29:09]1041 (16) - 0000000000871839 [19:29:09]1040 (4) - 227625 [19:29:09]1012 (4) - 20.10.2024 13:26 [19:29:09]1206 (1) - 0 [19:29:09]OFD Sender: Remove packet 227625 [19:29:09]ProducePacketName [19:29:09]name=ofd_packets/00227625 [19:29:09]NVStorageDeleteData [19:29:09]Write to MH i2c: 01 00 00 53 02 55 [19:29:09]Write i2c OK [19:29:09]MH_I2C_Read... [19:29:09]Read from MH i2c: 01 [19:29:09]MH_I2C_Read... [19:29:09]Read from MH i2c: 01 07 00 [19:29:09]MH_I2C_Read... [19:29:09]Read from MH i2c: 01 07 00 53 02 00 00 00 00 00 FB 0C 63 [19:29:09]RasterBufferAndPrint [19:29:09]line [19:29:09]line [19:29:09]line [19:29:09]line [19:29:09]line [19:29:09]written 0, free lines is 3332 [19:29:10]process_action close_receipt done [19:29:10]requested_data is exist [19:29:10]produce_requested_data [19:29:10]requested_item fm.sn is exist - process it [19:29:10]wFMCommunicate request_size=4 [19:29:10]MH_SAM_APDU [19:29:10]CAPDU: 80 11 00 00 [19:29:10]Write to MH i2c: E2 08 00 5A 02 80 11 00 00 00 00 00 00 D6 [19:29:10]Write i2c OK [19:29:10]MH_I2C_Read... [19:29:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:29:10]Read from MH i2c: E2 [19:29:10]MH_I2C_Read... [19:29:10]Read from MH i2c: E2 17 00 [19:29:10]MH_I2C_Read... [19:29:10]Read from MH i2c: E2 17 00 5A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 2D [19:29:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:29:10]wFMCommunicate OK [19:29:10]requested_item fd.num is exist - process it [19:29:10]SAM_PROTO_GetFieldsCounters [19:29:10]wFMCommunicate request_size=4 [19:29:10]MH_SAM_APDU [19:29:10]CAPDU: 80 13 00 00 [19:29:10]Write to MH i2c: E2 08 00 5B 02 80 13 00 00 00 00 00 00 D9 [19:29:10]Write i2c OK [19:29:10]MH_I2C_Read... [19:29:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:29:10]Read from MH i2c: E2 [19:29:10]MH_I2C_Read... [19:29:10]Read from MH i2c: E2 62 00 [19:29:10]MH_I2C_Read... [19:29:10]Read from MH i2c: E2 62 00 5B 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 29 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 D9 01 00 00 5E 04 04 00 D9 01 00 00 57 04 04 00 DA 01 00 00 19 04 04 00 00 00 00 00 90 00 4C [19:29:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 29 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 D9 01 00 00 5E 04 04 00 D9 01 00 00 57 04 04 00 DA 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:29:10]wFMCommunicate OK [19:29:10]SAM_PROTO_GetFieldsCounters done [19:29:10]requested_item shift.num is exist - process it [19:29:10]requested_item shift.opened is exist - process it [19:29:10]req_shift_opened [19:29:10]FM_GetShiftState [19:29:10]SAM_PROTO_GetShiftState [19:29:10]wFMCommunicate request_size=4 [19:29:10]MH_SAM_APDU [19:29:10]CAPDU: 80 13 01 00 [19:29:10]Write to MH i2c: E2 08 00 5C 02 80 13 01 00 00 00 00 00 DB [19:29:10]Write i2c OK [19:29:10]MH_I2C_Read... [19:29:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:29:10]Read from MH i2c: E2 [19:29:10]MH_I2C_Read... [19:29:10]Read from MH i2c: E2 0E 00 [19:29:10]MH_I2C_Read... [19:29:10]Read from MH i2c: E2 0E 00 5C 02 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 F5 [19:29:10]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [19:29:10]wFMCommunicate OK [19:29:10]SAM_PROTO_GetShiftState done [19:29:10]FM_GetShiftState done [19:29:10]req_shift_opened done [19:29:10]requested_item shift.open_date is exist - process it [19:29:10]req_shift_open_date [19:29:10]req_shift_open_date done [19:29:10]produce_requested_data done [19:29:10]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227625,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [19:29:10]process_action_free close_receipt [19:29:10]json_value_free [19:29:10]json_value_free done [19:29:10]process_json_proto returns [19:29:10]Send response to host [19:29:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227625,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [19:29:10]free response buf [19:29:10]execute_script done [19:29:10]execute_script returns [19:29:10]free content buf [19:29:10]Sock 9.Close socket [19:29:10]Sock 9.Thread stoped [19:29:10]OFD Sender: No OFD packet to send [19:29:15]OFD Sender: No OFD packet to send [19:29:20]OFD Sender: No OFD packet to send [19:29:25]OFD Sender: No OFD packet to send [19:29:30]OFD Sender: No OFD packet to send [19:29:35]OFD Sender: No OFD packet to send [19:29:40]OFD Sender: No OFD packet to send [19:29:45]OFD Sender: No OFD packet to send [19:29:50]OFD Sender: No OFD packet to send [19:29:55]OFD Sender: No OFD packet to send [19:30:00]OFD Sender: No OFD packet to send [19:30:05]OFD Sender: No OFD packet to send [19:30:10]OFD Sender: No OFD packet to send [19:30:15]OFD Sender: No OFD packet to send [19:30:20]OFD Sender: No OFD packet to send [19:30:25]OFD Sender: No OFD packet to send [19:30:30]OFD Sender: No OFD packet to send [19:30:35]OFD Sender: No OFD packet to send [19:30:40]OFD Sender: No OFD packet to send [19:30:45]OFD Sender: No OFD packet to send [19:30:50]OFD Sender: No OFD packet to send [19:30:53]accept exits with 7 [19:30:53]New connection [19:30:53]New thread 3066809700 created [19:30:53]Thread 3066666340 joined [19:30:53]Waiting for new connection... [19:30:53] Sock 7.Parse request [19:30:53]Sock 7.Check first char [19:30:53]Sock 7.First char is OK [19:30:53]request: POST /json_proto HTTP/1.0 [19:30:53]Method: POST [19:30:53]URL: /json_proto [19:30:53]Method is POST - this is cgi request [19:30:53]url: /json_proto [19:30:53]query_string will be loaded in cgi processing [19:30:53]execute_cgi json_proto POST (null) [19:30:53]execute_cgi path=json_proto method=POST [19:30:53]POST find Content-Length [19:30:53]Host: 172.17.44.195:8080 [19:30:53]Content-Length: 664 [19:30:53]Content-Type: application/json [19:30:53] [19:30:53]POST finish read [19:30:53]Found Content-Length = 664 [19:30:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963281", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:30:53]execute_script... [19:30: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)1963281", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:30:53]POST & json_proto [19:30:53]process_json_proto [19:30:53]json parsed OK: [19:30:53]protocol is kg_v1.0 [19:30:53]action value=close_receipt [19:30:53]process_action close_receipt [19:30:53]cmd_close_receipt [19:30:53]MH_GetDate [19:30:53]Write to MH i2c: F0 00 00 5D 02 4E [19:30:53]Write i2c OK [19:30:53]MH_I2C_Read... [19:30:53]Read from MH i2c: F0 [19:30:53]MH_I2C_Read... [19:30:53]Read from MH i2c: F0 09 00 [19:30:53]MH_I2C_Read... [19:30:53]Read from MH i2c: F0 09 00 5D 02 00 6E 5A 15 67 82 C9 CF 66 1B [19:30:53]GetLastDocTimeStamp 1729452548 [19:30:53]current date 1729452654 [19:30:53]FM_GetShiftState [19:30:53]SAM_PROTO_GetShiftState [19:30:53]wFMCommunicate request_size=4 [19:30:53]MH_SAM_APDU [19:30:53]CAPDU: 80 13 01 00 [19:30:53]Write to MH i2c: E2 08 00 5E 02 80 13 01 00 00 00 00 00 DD [19:30:53]Write i2c OK [19:30:53]MH_I2C_Read... [19:30:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:53]Read from MH i2c: E2 [19:30:53]MH_I2C_Read... [19:30:53]Read from MH i2c: E2 0E 00 [19:30:53]MH_I2C_Read... [19:30:53]Read from MH i2c: E2 0E 00 5E 02 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 F7 [19:30:53]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [19:30:53]wFMCommunicate OK [19:30:53]SAM_PROTO_GetShiftState done [19:30:53]FM_GetShiftState done [19:30:53]opened in 1729383750 [19:30:53]opened+sec_in_day 1729470150 [19:30:53]quantity*price = 100000 [19:30:53]sum+1 = 100002 [19:30:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 474 20.10.2024 19:30 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227626 ФПД: 1847006483916 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T193054&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227626&fm=1847006483916&tin=02508201610067®Number=0000000000091685&sum=100000 [19:30:54]StoreToDocumentArchive [19:30:54]shift 533 fd 227626 [19:30:54]save to /storage/0533/doc_00227626 [19:30:54]save last doc name /storage/0533/doc_00227626 to /storage/kkm_last_doc_name [19:30:54]save OK [19:30:54]Clear old archive folders... [19:30:54]ProcessDocumentItem done err = 0, tmpTLVsize=244 [19:30:54]tlvbuf is 00C179A0 [19:30:54]SAM_PROTO_ClearQueue [19:30:54]wFMCommunicate request_size=4 [19:30:54]MH_SAM_APDU [19:30:54]CAPDU: 80 09 00 00 [19:30:54]Write to MH i2c: E2 08 00 6B 02 80 09 00 00 00 00 00 00 DF [19:30:54]Write i2c OK [19:30:54]MH_I2C_Read... [19:30:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:30:54]Read from MH i2c: E2 [19:30:54]MH_I2C_Read... [19:30:54]Read from MH i2c: E2 03 00 [19:30:54]MH_I2C_Read... [19:30:54]Read from MH i2c: E2 03 00 6B 02 00 90 00 E1 [19:30:54]RAPDU: 90 00 [19:30:54]wFMCommunicate OK [19:30:54]SAM_PROTO_ClearQueue done [19:30:54]KKMCreateOFDPacket [19:30:54]OFDProtocolAddRootSTLVToBuf [19:30:54]FM_MakeSignedData [19:30:54]FM_MakeSignedData [19:30:54]SAM_PROTO_SignData [19:30:54]wFMCommunicate request_size=4 [19:30:54]MH_SAM_APDU [19:30:54]CAPDU: 80 0D 01 02 [19:30:54]Write to MH i2c: E2 08 00 6C 02 80 0D 01 02 00 00 00 00 E7 [19:30:54]Write i2c OK [19:30:54]MH_I2C_Read... [19:30:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:30:55]Read from MH i2c: E2 [19:30:55]MH_I2C_Read... [19:30:55]Read from MH i2c: E2 03 00 [19:30:55]MH_I2C_Read... [19:30:55]Read from MH i2c: E2 03 00 6C 02 00 90 00 E2 [19:30:55]RAPDU: 90 00 [19:30:55]wFMCommunicate OK [19:30:55]wFMCommunicate request_size=253 [19:30:55]MH_SAM_APDU [19:30:55]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 01 00 00 F4 03 04 00 6E 5A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2A 79 03 00 35 04 06 00 01 AE 0A 2A 55 CC [19:30:55]Write to MH i2c: E2 00 01 6D 02 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 01 00 00 F4 03 04 00 6E 5A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2A 79 03 00 35 04 06 00 01 AE 0A 2A 55 CC 00 00 41 [19:30:55]Write i2c OK [19:30:55]MH_I2C_Read... [19:30:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:55]Read from MH i2c: E2 [19:30:55]MH_I2C_Read... [19:30:55]Read from MH i2c: E2 03 00 [19:30:55]MH_I2C_Read... [19:30:55]Read from MH i2c: E2 03 00 6D 02 00 90 00 E3 [19:30:55]RAPDU: 90 00 [19:30:55]wFMCommunicate OK [19:30:55]wFMCommunicate request_size=4 [19:30:55]MH_SAM_APDU [19:30:55]CAPDU: 80 0D 03 02 [19:30:55]Write to MH i2c: E2 08 00 6E 02 80 0D 03 02 00 00 00 00 EB [19:30:55]Write i2c OK [19:30:55]MH_I2C_Read... [19:30:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:30:55]Read from MH i2c: E2 [19:30:55]MH_I2C_Read... [19:30:55]Read from MH i2c: E2 0B 00 [19:30:55]MH_I2C_Read... [19:30:55]Read from MH i2c: E2 0B 00 6E 02 00 A3 14 5C 6C 32 53 5F 54 90 00 A3 [19:30:55]RAPDU: A3 14 5C 6C 32 53 5F 54 90 00 [19:30:55]wFMCommunicate OK [19:30:55]SAM_PROTO_SignData done [19:30:55]FM_MakeSignedData done [19:30:55]CreateOFDProtocolMessage [19:30:55]wFMCommunicate request_size=4 [19:30:55]MH_SAM_APDU [19:30:55]CAPDU: 80 11 00 00 [19:30:55]Write to MH i2c: E2 08 00 6F 02 80 11 00 00 00 00 00 00 EB [19:30:55]Write i2c OK [19:30:55]MH_I2C_Read... [19:30:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:55]Read from MH i2c: E2 [19:30:55]MH_I2C_Read... [19:30:55]Read from MH i2c: E2 17 00 [19:30:55]MH_I2C_Read... [19:30:55]Read from MH i2c: E2 17 00 6F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 42 [19:30:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:30:55]wFMCommunicate OK [19:30:55]CreateOFDProtocolMessage done [19:30:55]OFDSenderStorePacket 227626 [19:30:55]StoreOFDPacket docnum=227626 [19:30:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 9E 47 00 01 85 6A 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 01 00 00 F4 03 04 00 6E 5A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2A 79 03 00 35 04 06 00 01 AE 0A 2A 55 CC A3 14 5C 6C 32 53 5F 54 [19:30:55]CheckFolder [19:30:55]dirname=/storage/ofd_packets [19:30:55]CheckFolder done [19:30:55]ProducePacketName [19:30:55]name=ofd_packets/00227626 [19:30:55]NVStorageSaveData ofd_packets/00227626 [19:30:55]File name is /storage/ofd_packets/00227626 [19:30:55]Write 294 bytes [19:30:55]NVStorageSaveData done [19:30:55]OFDSenderStorePacket done [19:30:55]KKMCreateOFDPacket done [19:30:55]NVStorageSaveData kkm_last_timestamp [19:30:55]File name is /storage/kkm_last_timestamp [19:30:55]Write 4 bytes [19:30:55]NVStorageSaveData done [19:30:55]ExternCall_PrintAddStr [19:30:55]wPrintStart [19:30:55]Write to MH i2c: 01 00 00 70 02 72 [19:30:55]Write i2c OK [19:30:55]MH_I2C_Read... [19:30:55]Read from MH i2c: 01 [19:30:55]MH_I2C_Read... [19:30:55]Read from MH i2c: 01 07 00 [19:30:55]MH_I2C_Read... [19:30:55]Read from MH i2c: 01 07 00 70 02 00 00 00 00 00 FF 0F 87 [19:30:55]RasterBufferAndPrint [19:30:55]line Счет N : (1)1963281 [19:30:55]line ИНН: 02508201610067 [19:30:55]line Контрольно-Кассовый Чек [19:30:55]line ПРОДАЖА [19:30:55]line ТРК (МРК, ГНК) : 32 [19:30:55]line Товар: 2710124130 [19:30:55]line SU-92 [19:30:55]line 14.620 * 68.40 [19:30:55]line = 1000.01 [19:30:55]line НДС 12% НСП 1% [19:30:55]line > о реализуемом товаре [19:30:55]line ОКРУГЛЕНИЕ: -0.01 [19:30:55]line ИТОГО: 1000.00 [19:30:55]line Внесено: 1000.00 [19:30:55]line СДАЧА: 0.00 [19:30:55]line НСП 1% : 8.85 [19:30:55]line НДС 12% : 106.20 [19:30:55]line Наличными: 1000.00 [19:30:55]line Безнал.: 0.00 [19:30:55]line Место: АЗС № 133 "Партнер Нефть" [19:30:55]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [19:30:55]line СНО: Общий режим [19:30:55]line Чек 474 20.10.2024 19:30 [19:30:55]line Смена: 533 ФФД: 1.0 [19:30:55]line ЗНМ: 0300000091 [19:30:55]line РНМ: 0000000000091685 [19:30:55]line Версия ККМ: 001 [19:30:55]line ФМ: 0000000000871839 [19:30:55]line ФД: 227626 [19:30:55]line ФПД: 1847006483916 [19:30:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T193054&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227626&fm=1847006483916&tin=02508201610067®Number=0000000000091685&sum=100000 [19:30:55]OFD Sender: Processing packet 227626 [packets to send 38, broken 37] [19:30:55]ProducePacketName [19:30:55]name=ofd_packets/00227626 [19:30:55]OFD Sender: To server: pG, [19:30:55]CommunicateWithHost lk.salyk.kg:30040 [19:30:55]ConnectInit lk.salyk.kg [19:30:55]written 0, free lines is 4095 [19:30:55]Connected sock=10 [19:30: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 33 39 08 01 00 00 9E 47 00 01 85 6A 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 01 00 00 F4 03 04 00 6E 5A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2A 79 03 00 35 04 06 00 01 AE 0A 2A 55 CC A3 14 5C 6C 32 53 5F 54 [19:30: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 33 39 4F 00 00 00 45 73 47 00 9E 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 33 39 10 04 04 00 2A 79 03 00 F4 03 04 00 6C 05 15 67 B6 04 01 00 00 4E 3D D5 2F 3B DE 8E CD [19:30:56]CommunicateWithHost err = 0 [19:30:56]CheckOFDResponse [19:30:56]1017 (14) - 77093643461234 [19:30:56]1041 (16) - 0000000000871839 [19:30:56]1040 (4) - 227626 [19:30:56]1012 (4) - 20.10.2024 13:28 [19:30:56]1206 (1) - 0 [19:30:56]OFD Sender: Remove packet 227626 [19:30:56]ProducePacketName [19:30:56]name=ofd_packets/00227626 [19:30:56]NVStorageDeleteData [19:30:56]Write to MH i2c: 01 00 00 9A 02 9C [19:30:56]Write i2c OK [19:30:56]MH_I2C_Read... [19:30:56]Read from MH i2c: 01 [19:30:56]MH_I2C_Read... [19:30:56]Read from MH i2c: 01 07 00 [19:30:56]MH_I2C_Read... [19:30:56]Read from MH i2c: 01 07 00 9A 02 00 00 00 00 00 02 0D B2 [19:30:56]RasterBufferAndPrint [19:30:56]line [19:30:56]line [19:30:56]line [19:30:56]line [19:30:56]line [19:30:56]written 0, free lines is 3336 [19:30:56]process_action close_receipt done [19:30:56]requested_data is exist [19:30:56]produce_requested_data [19:30:56]requested_item fm.sn is exist - process it [19:30:56]wFMCommunicate request_size=4 [19:30:56]MH_SAM_APDU [19:30:56]CAPDU: 80 11 00 00 [19:30:56]Write to MH i2c: E2 08 00 A1 02 80 11 00 00 00 00 00 00 1D [19:30:56]Write i2c OK [19:30:56]MH_I2C_Read... [19:30:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:56]Read from MH i2c: E2 [19:30:56]MH_I2C_Read... [19:30:56]Read from MH i2c: E2 17 00 [19:30:56]MH_I2C_Read... [19:30:56]Read from MH i2c: E2 17 00 A1 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 74 [19:30:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:30:56]wFMCommunicate OK [19:30:56]requested_item fd.num is exist - process it [19:30:56]SAM_PROTO_GetFieldsCounters [19:30:56]wFMCommunicate request_size=4 [19:30:56]MH_SAM_APDU [19:30:56]CAPDU: 80 13 00 00 [19:30:56]Write to MH i2c: E2 08 00 A2 02 80 13 00 00 00 00 00 00 20 [19:30:56]Write i2c OK [19:30:56]MH_I2C_Read... [19:30:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:30:56]Read from MH i2c: E2 [19:30:56]MH_I2C_Read... [19:30:56]Read from MH i2c: E2 62 00 [19:30:56]MH_I2C_Read... [19:30:56]Read from MH i2c: E2 62 00 A2 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 2A 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 DA 01 00 00 5E 04 04 00 DA 01 00 00 57 04 04 00 DB 01 00 00 19 04 04 00 00 00 00 00 90 00 97 [19: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 2A 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 DA 01 00 00 5E 04 04 00 DA 01 00 00 57 04 04 00 DB 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:30:56]wFMCommunicate OK [19:30:56]SAM_PROTO_GetFieldsCounters done [19:30:56]requested_item shift.num is exist - process it [19:30:56]requested_item shift.opened is exist - process it [19:30:56]req_shift_opened [19:30:56]FM_GetShiftState [19:30:56]SAM_PROTO_GetShiftState [19:30:56]wFMCommunicate request_size=4 [19:30:56]MH_SAM_APDU [19:30:56]CAPDU: 80 13 01 00 [19:30:56]Write to MH i2c: E2 08 00 A3 02 80 13 01 00 00 00 00 00 22 [19:30:56]Write i2c OK [19:30:56]MH_I2C_Read... [19:30:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:56]Read from MH i2c: E2 [19:30:56]MH_I2C_Read... [19:30:56]Read from MH i2c: E2 0E 00 [19:30:56]MH_I2C_Read... [19:30:56]Read from MH i2c: E2 0E 00 A3 02 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 3C [19:30:56]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [19:30:56]wFMCommunicate OK [19:30:56]SAM_PROTO_GetShiftState done [19:30:56]FM_GetShiftState done [19:30:56]req_shift_opened done [19:30:56]requested_item shift.open_date is exist - process it [19:30:56]req_shift_open_date [19:30:56]req_shift_open_date done [19:30:56]produce_requested_data done [19:30:56]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227626,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [19:30:56]process_action_free close_receipt [19:30:56]json_value_free [19:30:56]json_value_free done [19:30:56]process_json_proto returns [19:30:56]Send response to host [19:30:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227626,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [19:30:56]free response buf [19:30:56]execute_script done [19:30:56]execute_script returns [19:30:56]free content buf [19:30:56]Sock 7.Close socket [19:30:56]Sock 7.Thread stoped [19:30:56]OFD Sender: No OFD packet to send [19:31:01]OFD Sender: No OFD packet to send [19:31:06]OFD Sender: No OFD packet to send [19:31:11]OFD Sender: No OFD packet to send [19:31:16]OFD Sender: No OFD packet to send [19:31:21]OFD Sender: No OFD packet to send [19:31:26]OFD Sender: No OFD packet to send [19:31:31]OFD Sender: No OFD packet to send [19:31:36]OFD Sender: No OFD packet to send [19:31:41]OFD Sender: No OFD packet to send [19:31:46]OFD Sender: No OFD packet to send [19:31:51]OFD Sender: No OFD packet to send [19:31:56]OFD Sender: No OFD packet to send [19:32:01]OFD Sender: No OFD packet to send [19:32:06]OFD Sender: No OFD packet to send [19:32:11]OFD Sender: No OFD packet to send [19:32:16]OFD Sender: No OFD packet to send [19:32:21]OFD Sender: No OFD packet to send [19:32:26]OFD Sender: No OFD packet to send [19:32:31]OFD Sender: No OFD packet to send [19:32:36]OFD Sender: No OFD packet to send [19:32:38]accept exits with 9 [19:32:38]New connection [19:32:38]New thread 3066666340 created [19:32:38]Thread 3066809700 joined [19:32:38]Waiting for new connection... [19:32:38] Sock 9.Parse request [19:32:38]Sock 9.Check first char [19:32:38]Sock 9.First char is OK [19:32:38]request: POST /json_proto HTTP/1.0 [19:32:38]Method: POST [19:32:38]URL: /json_proto [19:32:38]Method is POST - this is cgi request [19:32:38]url: /json_proto [19:32:38]query_string will be loaded in cgi processing [19:32:38]execute_cgi json_proto POST (null) [19:32:38]execute_cgi path=json_proto method=POST [19:32:38]POST find Content-Length [19:32:38]Host: 172.17.44.195:8080 [19:32:38]Content-Length: 680 [19:32:38]Content-Type: application/json [19:32:38] [19:32:38]POST finish read [19:32:38]Found Content-Length = 680 [19:32:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963282", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 16.800, "sum" : 1280.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1280.00, "total" : 1280.00, "payments": [ { "type": 0, "sum" : 1280.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:32:38]execute_script... [19: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)1963282", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 16.800, "sum" : 1280.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1280.00, "total" : 1280.00, "payments": [ { "type": 0, "sum" : 1280.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:32:38]POST & json_proto [19:32:38]process_json_proto [19:32:38]json parsed OK: [19:32:38]protocol is kg_v1.0 [19:32:38]action value=close_receipt [19:32:38]process_action close_receipt [19:32:38]cmd_close_receipt [19:32:38]MH_GetDate [19:32:38]Write to MH i2c: F0 00 00 A4 02 95 [19:32:38]Write i2c OK [19:32:38]MH_I2C_Read... [19:32:38]Read from MH i2c: F0 [19:32:38]MH_I2C_Read... [19:32:38]Read from MH i2c: F0 09 00 [19:32:38]MH_I2C_Read... [19:32:38]Read from MH i2c: F0 09 00 A4 02 00 D7 5A 15 67 82 C9 CF 66 CB [19:32:38]GetLastDocTimeStamp 1729452654 [19:32:38]current date 1729452759 [19:32:38]FM_GetShiftState [19:32:38]SAM_PROTO_GetShiftState [19:32:38]wFMCommunicate request_size=4 [19:32:38]MH_SAM_APDU [19:32:38]CAPDU: 80 13 01 00 [19:32:38]Write to MH i2c: E2 08 00 A5 02 80 13 01 00 00 00 00 00 24 [19:32:38]Write i2c OK [19:32:38]MH_I2C_Read... [19:32:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:32:38]Read from MH i2c: E2 [19:32:38]MH_I2C_Read... [19:32:38]Read from MH i2c: E2 0E 00 [19:32:38]MH_I2C_Read... [19:32:38]Read from MH i2c: E2 0E 00 A5 02 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 3E [19:32:38]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [19:32:38]wFMCommunicate OK [19:32:38]SAM_PROTO_GetShiftState done [19:32:38]FM_GetShiftState done [19:32:38]opened in 1729383750 [19:32:38]opened+sec_in_day 1729470150 [19:32:38]quantity*price = 128016 [19:32:38]sum+1 = 128017 [19:32:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1280.00 Внесено: 1280.00 СДАЧА: 0.00 НСП 1% : 11.33 НДС 12% : 135.95 Наличными: 1280.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 475 20.10.2024 19:32 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227627 ФПД: 191838083927787 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T193239&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227627&fm=191838083927787&tin=02508201610067®Number=0000000000091685&sum=128000 [19:32:39]StoreToDocumentArchive [19:32:39]shift 533 fd 227627 [19:32:39]save to /storage/0533/doc_00227627 [19:32:39]save last doc name /storage/0533/doc_00227627 to /storage/kkm_last_doc_name [19:32:39]save OK [19:32:39]Clear old archive folders... [19:32:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:32:39]tlvbuf is 00C21FE0 [19:32:39]SAM_PROTO_ClearQueue [19:32:39]wFMCommunicate request_size=4 [19:32:39]MH_SAM_APDU [19:32:39]CAPDU: 80 09 00 00 [19:32:39]Write to MH i2c: E2 08 00 B2 02 80 09 00 00 00 00 00 00 26 [19:32:39]Write i2c OK [19:32:39]MH_I2C_Read... [19:32:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:32:39]Read from MH i2c: E2 [19:32:39]MH_I2C_Read... [19:32:39]Read from MH i2c: E2 03 00 [19:32:39]MH_I2C_Read... [19:32:39]Read from MH i2c: E2 03 00 B2 02 00 90 00 28 [19:32:39]RAPDU: 90 00 [19:32:39]wFMCommunicate OK [19:32:39]SAM_PROTO_ClearQueue done [19:32:39]KKMCreateOFDPacket [19:32:39]OFDProtocolAddRootSTLVToBuf [19:32:39]FM_MakeSignedData [19:32:39]FM_MakeSignedData [19:32:39]SAM_PROTO_SignData [19:32:39]wFMCommunicate request_size=4 [19:32:39]MH_SAM_APDU [19:32:39]CAPDU: 80 0D 01 02 [19:32:39]Write to MH i2c: E2 08 00 B3 02 80 0D 01 02 00 00 00 00 2E [19:32:39]Write i2c OK [19:32:39]MH_I2C_Read... [19:32:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:32:40]Read from MH i2c: E2 [19:32:40]MH_I2C_Read... [19:32:40]Read from MH i2c: E2 03 00 [19:32:40]MH_I2C_Read... [19:32:40]Read from MH i2c: E2 03 00 B3 02 00 90 00 29 [19:32:40]RAPDU: 90 00 [19:32:40]wFMCommunicate OK [19:32:40]wFMCommunicate request_size=255 [19:32:40]MH_SAM_APDU [19: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 A0 41 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 10 F4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 F4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 35 00 00 00 00 07 04 06 00 00 F4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 01 00 00 F4 03 04 00 D7 5A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2B 79 03 00 35 04 06 00 AE 79 C8 D8 [19:32:40]Write to MH i2c: E2 02 01 B4 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 A0 41 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 10 F4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 F4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 35 00 00 00 00 07 04 06 00 00 F4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 01 00 00 F4 03 04 00 D7 5A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2B 79 03 00 35 04 06 00 AE 79 C8 D8 00 00 13 [19:32:40]Write i2c OK [19:32:40]MH_I2C_Read... [19:32:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:32:40]Read from MH i2c: E2 [19:32:40]MH_I2C_Read... [19:32:40]Read from MH i2c: E2 03 00 [19:32:40]MH_I2C_Read... [19:32:40]Read from MH i2c: E2 03 00 B4 02 00 90 00 2A [19:32:40]RAPDU: 90 00 [19:32:40]wFMCommunicate OK [19:32:40]wFMCommunicate request_size=7 [19:32:40]MH_SAM_APDU [19:32:40]CAPDU: 80 0D 02 02 02 CE EB [19:32:40]Write to MH i2c: E2 0A 00 B5 02 80 0D 02 02 02 00 CE EB 00 00 EE [19:32:40]Write i2c OK [19:32:40]MH_I2C_Read... [19:32:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:32:40]Read from MH i2c: E2 [19:32:40]MH_I2C_Read... [19:32:40]Read from MH i2c: E2 03 00 [19:32:40]MH_I2C_Read... [19:32:40]Read from MH i2c: E2 03 00 B5 02 00 90 00 2B [19:32:40]RAPDU: 90 00 [19:32:40]wFMCommunicate OK [19:32:40]wFMCommunicate request_size=4 [19:32:40]MH_SAM_APDU [19:32:40]CAPDU: 80 0D 03 02 [19:32:40]Write to MH i2c: E2 08 00 B6 02 80 0D 03 02 00 00 00 00 33 [19:32:40]Write i2c OK [19:32:40]MH_I2C_Read... [19:32:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:32:40]Read from MH i2c: E2 [19:32:40]MH_I2C_Read... [19:32:40]Read from MH i2c: E2 0B 00 [19:32:40]MH_I2C_Read... [19:32:40]Read from MH i2c: E2 0B 00 B6 02 00 B7 DE 2F DA DA 41 05 B1 90 00 A3 [19:32:40]RAPDU: B7 DE 2F DA DA 41 05 B1 90 00 [19:32:40]wFMCommunicate OK [19:32:40]SAM_PROTO_SignData done [19:32:40]FM_MakeSignedData done [19:32:40]CreateOFDProtocolMessage [19:32:40]wFMCommunicate request_size=4 [19:32:40]MH_SAM_APDU [19:32:40]CAPDU: 80 11 00 00 [19:32:40]Write to MH i2c: E2 08 00 B7 02 80 11 00 00 00 00 00 00 33 [19:32:40]Write i2c OK [19:32:40]MH_I2C_Read... [19:32:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:32:40]Read from MH i2c: E2 [19:32:40]MH_I2C_Read... [19:32:40]Read from MH i2c: E2 17 00 [19:32:40]MH_I2C_Read... [19:32:40]Read from MH i2c: E2 17 00 B7 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 8A [19:32:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:32:40]wFMCommunicate OK [19:32:40]CreateOFDProtocolMessage done [19:32:40]OFDSenderStorePacket 227627 [19:32:40]StoreOFDPacket docnum=227627 [19:32:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 DA 9B 04 01 83 FC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 41 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 10 F4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 F4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 35 00 00 00 00 07 04 06 00 00 F4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 01 00 00 F4 03 04 00 D7 5A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2B 79 03 00 35 04 06 00 AE 79 C8 D8 CE EB B7 DE 2F DA DA 41 05 B1 [19:32:40]CheckFolder [19:32:40]dirname=/storage/ofd_packets [19:32:40]CheckFolder done [19:32:40]ProducePacketName [19:32:40]name=ofd_packets/00227627 [19:32:40]NVStorageSaveData ofd_packets/00227627 [19:32:40]File name is /storage/ofd_packets/00227627 [19:32:40]Write 298 bytes [19:32:40]NVStorageSaveData done [19:32:40]OFDSenderStorePacket done [19:32:40]KKMCreateOFDPacket done [19:32:40]NVStorageSaveData kkm_last_timestamp [19:32:40]File name is /storage/kkm_last_timestamp [19:32:40]Write 4 bytes [19:32:40]NVStorageSaveData done [19:32:40]ExternCall_PrintAddStr [19:32:40]wPrintStart [19:32:40]Write to MH i2c: 01 00 00 B8 02 BA [19:32:40]Write i2c OK [19:32:40]MH_I2C_Read... [19:32:40]Read from MH i2c: 01 [19:32:40]MH_I2C_Read... [19:32:40]Read from MH i2c: 01 07 00 [19:32:40]MH_I2C_Read... [19:32:40]Read from MH i2c: 01 07 00 B8 02 00 00 00 00 00 FF 0F CF [19:32:40]RasterBufferAndPrint [19:32:40]line Счет N : (1)1963282 [19:32:40]line ИНН: 02508201610067 [19:32:40]line Контрольно-Кассовый Чек [19:32:40]line ПРОДАЖА [19:32:40]line ТРК (МРК, ГНК) : 41 [19:32:40]line Товар: 2710194210 [19:32:40]line ДТ-К-5 [19:32:40]line 16.800 * 76.20 [19:32:40]line = 1280.16 [19:32:40]line НДС 12% НСП 1% [19:32:40]line > о реализуемом товаре [19:32:40]line ОКРУГЛЕНИЕ: -0.16 [19:32:40]line ИТОГО: 1280.00 [19:32:40]line Внесено: 1280.00 [19:32:40]line СДАЧА: 0.00 [19:32:40]line НСП 1% : 11.33 [19:32:40]line НДС 12% : 135.95 [19:32:40]line Наличными: 1280.00 [19:32:40]line Безнал.: 0.00 [19:32:40]line Место: АЗС № 133 "Партнер Нефть" [19:32:40]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [19:32:40]line СНО: Общий режим [19:32:40]line Чек 475 20.10.2024 19:32 [19:32:40]line Смена: 533 ФФД: 1.0 [19:32:40]line ЗНМ: 0300000091 [19:32:40]line РНМ: 0000000000091685 [19:32:40]line Версия ККМ: 001 [19:32:40]line ФМ: 0000000000871839 [19:32:40]line ФД: 227627 [19:32:40]line ФПД: 191838083927787 [19:32:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T193239&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227627&fm=191838083927787&tin=02508201610067®Number=0000000000091685&sum=128000 [19:32:40]OFD Sender: Processing packet 227627 [packets to send 38, broken 37] [19:32:40]ProducePacketName [19:32:40]name=ofd_packets/00227627 [19:32:40]OFD Sender: To server: pG, [19:32:40]CommunicateWithHost lk.salyk.kg:30040 [19:32:40]ConnectInit lk.salyk.kg [19:32:40]written 0, free lines is 4095 [19:32:40]Connected sock=10 [19:32:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 DA 9B 04 01 83 FC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 41 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 10 F4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 F4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 35 00 00 00 00 07 04 06 00 00 F4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 01 00 00 F4 03 04 00 D7 5A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2B 79 03 00 35 04 06 00 AE 79 C8 D8 CE EB B7 DE 2F DA DA 41 05 B1 [19: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 33 39 4F 00 00 00 C7 37 47 00 E9 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2B 79 03 00 F4 03 04 00 D5 05 15 67 B6 04 01 00 00 D4 EB 51 91 0A 9D 9C 96 [19:32:41]CommunicateWithHost err = 0 [19:32:41]CheckOFDResponse [19:32:41]1017 (14) - 77093643461234 [19:32:41]1041 (16) - 0000000000871839 [19:32:41]1040 (4) - 227627 [19:32:41]1012 (4) - 20.10.2024 13:29 [19:32:41]1206 (1) - 0 [19:32:41]OFD Sender: Remove packet 227627 [19:32:41]ProducePacketName [19:32:41]name=ofd_packets/00227627 [19:32:41]NVStorageDeleteData [19:32:41]Write to MH i2c: 01 00 00 E2 02 E4 [19:32:41]Write i2c OK [19:32:41]MH_I2C_Read... [19:32:41]Read from MH i2c: 01 [19:32:41]MH_I2C_Read... [19:32:41]Read from MH i2c: 01 07 00 [19:32:41]MH_I2C_Read... [19:32:41]Read from MH i2c: 01 07 00 E2 02 00 00 00 00 00 B2 0C A9 [19:32:41]RasterBufferAndPrint [19:32:41]line [19:32:41]line [19:32:41]line [19:32:41]line [19:32:41]line [19:32:41]written 0, free lines is 3255 [19:32:41]process_action close_receipt done [19:32:41]requested_data is exist [19:32:41]produce_requested_data [19:32:41]requested_item fm.sn is exist - process it [19:32:41]wFMCommunicate request_size=4 [19:32:41]MH_SAM_APDU [19:32:41]CAPDU: 80 11 00 00 [19:32:41]Write to MH i2c: E2 08 00 E9 02 80 11 00 00 00 00 00 00 65 [19:32:41]Write i2c OK [19:32:41]MH_I2C_Read... [19:32:41]Read from MH i2c: E2 [19:32:41]MH_I2C_Read... [19:32:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:32:41]Read from MH i2c: E2 17 00 [19:32:41]MH_I2C_Read... [19:32:41]Read from MH i2c: E2 17 00 E9 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 BC [19:32:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:32:41]wFMCommunicate OK [19:32:41]requested_item fd.num is exist - process it [19:32:41]SAM_PROTO_GetFieldsCounters [19:32:41]wFMCommunicate request_size=4 [19:32:41]MH_SAM_APDU [19:32:41]CAPDU: 80 13 00 00 [19:32:41]Write to MH i2c: E2 08 00 EA 02 80 13 00 00 00 00 00 00 68 [19:32:41]Write i2c OK [19:32:41]MH_I2C_Read... [19:32:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:32:41]Read from MH i2c: E2 [19:32:41]MH_I2C_Read... [19:32:41]Read from MH i2c: E2 62 00 [19:32:41]MH_I2C_Read... [19:32:41]Read from MH i2c: E2 62 00 EA 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 2B 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 DB 01 00 00 5E 04 04 00 DB 01 00 00 57 04 04 00 DC 01 00 00 19 04 04 00 00 00 00 00 90 00 E3 [19:32:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 2B 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 DB 01 00 00 5E 04 04 00 DB 01 00 00 57 04 04 00 DC 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:32:41]wFMCommunicate OK [19:32:41]SAM_PROTO_GetFieldsCounters done [19:32:41]requested_item shift.num is exist - process it [19:32:41]requested_item shift.opened is exist - process it [19:32:41]req_shift_opened [19:32:41]FM_GetShiftState [19:32:41]SAM_PROTO_GetShiftState [19:32:41]wFMCommunicate request_size=4 [19:32:41]MH_SAM_APDU [19:32:41]CAPDU: 80 13 01 00 [19:32:41]Write to MH i2c: E2 08 00 EB 02 80 13 01 00 00 00 00 00 6A [19:32:41]Write i2c OK [19:32:41]MH_I2C_Read... [19:32:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:32:41]Read from MH i2c: E2 [19:32:41]MH_I2C_Read... [19:32:41]Read from MH i2c: E2 0E 00 [19:32:41]MH_I2C_Read... [19:32:41]Read from MH i2c: E2 0E 00 EB 02 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 84 [19:32:41]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [19:32:41]wFMCommunicate OK [19:32:41]SAM_PROTO_GetShiftState done [19:32:41]FM_GetShiftState done [19:32:41]req_shift_opened done [19:32:41]requested_item shift.open_date is exist - process it [19:32:41]req_shift_open_date [19:32:41]req_shift_open_date done [19:32:41]produce_requested_data done [19:32:41]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227627,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [19:32:41]process_action_free close_receipt [19:32:41]json_value_free [19:32:41]json_value_free done [19:32:41]process_json_proto returns [19:32:41]Send response to host [19:32:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227627,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [19:32:41]free response buf [19:32:41]execute_script done [19:32:41]execute_script returns [19:32:41]free content buf [19:32:41]Sock 9.Close socket [19:32:41]Sock 9.Thread stoped [19:32:41]OFD Sender: No OFD packet to send [19:32:46]OFD Sender: No OFD packet to send [19:32:51]OFD Sender: No OFD packet to send [19:32:56]OFD Sender: No OFD packet to send [19:33:01]OFD Sender: No OFD packet to send [19:33:06]OFD Sender: No OFD packet to send [19:33:11]OFD Sender: No OFD packet to send [19:33:16]OFD Sender: No OFD packet to send [19:33:21]OFD Sender: No OFD packet to send [19:33:26]OFD Sender: No OFD packet to send [19:33:31]OFD Sender: No OFD packet to send [19:33:36]OFD Sender: No OFD packet to send [19:33:40]accept exits with 7 [19:33:40]New connection [19:33:40]New thread 3066809700 created [19:33:40]Thread 3066666340 joined [19:33:40]Waiting for new connection... [19:33:40] Sock 7.Parse request [19:33:40]Sock 7.Check first char [19:33:40]Sock 7.First char is OK [19:33:40]request: POST /json_proto HTTP/1.0 [19:33:40]Method: POST [19:33:40]URL: /json_proto [19:33:40]Method is POST - this is cgi request [19:33:40]url: /json_proto [19:33:40]query_string will be loaded in cgi processing [19:33:40]execute_cgi json_proto POST (null) [19:33:40]execute_cgi path=json_proto method=POST [19:33:40]POST find Content-Length [19:33:40]Host: 172.17.44.195:8080 [19:33:40]Content-Length: 215 [19:33:40]Content-Type: application/json [19:33:40] [19:33:40]POST finish read [19:33:40]Found Content-Length = 215 [19:33:40]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" ] } } [19:33:40]execute_script... [19:33:40]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" ] } } [19:33:40]POST & json_proto [19:33:40]process_json_proto [19:33:40]json parsed OK: [19:33:40]protocol is kg_v1.0 [19:33:40]action value=get_value [19:33:40]process_action get_value [19:33:40]cmd_get_value [19:33:40]process_action get_value done [19:33:40]requested_data is exist [19:33:40]produce_requested_data [19:33:40]requested_item kkm.sn is exist - process it [19:33:40]requested_item kkm.ver is exist - process it [19:33:40]requested_item fm.sn is exist - process it [19:33:40]wFMCommunicate request_size=4 [19:33:40]MH_SAM_APDU [19:33:40]CAPDU: 80 11 00 00 [19:33:40]Write to MH i2c: E2 08 00 EC 02 80 11 00 00 00 00 00 00 68 [19:33:40]Write i2c OK [19:33:40]MH_I2C_Read... [19:33:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:40]Read from MH i2c: E2 [19:33:40]MH_I2C_Read... [19:33:40]Read from MH i2c: E2 17 00 [19:33:40]MH_I2C_Read... [19:33:40]Read from MH i2c: E2 17 00 EC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 BF [19:33:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:33:40]wFMCommunicate OK [19:33:40]requested_item fd.num is exist - process it [19:33:40]SAM_PROTO_GetFieldsCounters [19:33:40]wFMCommunicate request_size=4 [19:33:40]MH_SAM_APDU [19:33:40]CAPDU: 80 13 00 00 [19:33:40]Write to MH i2c: E2 08 00 ED 02 80 13 00 00 00 00 00 00 6B [19:33:40]Write i2c OK [19:33:40]MH_I2C_Read... [19:33:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:33:40]Read from MH i2c: E2 [19:33:40]MH_I2C_Read... [19:33:40]Read from MH i2c: E2 62 00 [19:33:40]MH_I2C_Read... [19:33:40]Read from MH i2c: E2 62 00 ED 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 2B 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 DB 01 00 00 5E 04 04 00 DB 01 00 00 57 04 04 00 DC 01 00 00 19 04 04 00 00 00 00 00 90 00 E6 [19:33: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 2B 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 DB 01 00 00 5E 04 04 00 DB 01 00 00 57 04 04 00 DC 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:33:40]wFMCommunicate OK [19:33:40]SAM_PROTO_GetFieldsCounters done [19:33:40]requested_item shift.num is exist - process it [19:33:40]requested_item shift.opened is exist - process it [19:33:40]req_shift_opened [19:33:40]FM_GetShiftState [19:33:40]SAM_PROTO_GetShiftState [19:33:40]wFMCommunicate request_size=4 [19:33:40]MH_SAM_APDU [19:33:40]CAPDU: 80 13 01 00 [19:33:40]Write to MH i2c: E2 08 00 EE 02 80 13 01 00 00 00 00 00 6D [19:33:40]Write i2c OK [19:33:40]MH_I2C_Read... [19:33:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:40]Read from MH i2c: E2 [19:33:40]MH_I2C_Read... [19:33:40]Read from MH i2c: E2 0E 00 [19:33:40]MH_I2C_Read... [19:33:40]Read from MH i2c: E2 0E 00 EE 02 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 87 [19:33:40]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [19:33:40]wFMCommunicate OK [19:33:40]SAM_PROTO_GetShiftState done [19:33:40]FM_GetShiftState done [19:33:40]req_shift_opened done [19:33:40]requested_item shift.open_date is exist - process it [19:33:40]req_shift_open_date [19:33:40]req_shift_open_date done [19:33:40]produce_requested_data done [19:33:40]produce_requested_data return {"kkm.sn":"0300000091","kkm.ver":"001","fm.sn":"0000000000871839","fd.num":227627,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [19:33:40]process_action_free get_value [19:33:40]json_value_free [19:33:40]json_value_free done [19:33:40]process_json_proto returns [19:33:40]Send response to host [19:33:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000091","kkm.ver":"001","fm.sn":"0000000000871839","fd.num":227627,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [19:33:40]free response buf [19:33:40]execute_script done [19:33:40]execute_script returns [19:33:40]free content buf [19:33:40]Sock 7.Close socket [19:33:40]Sock 7.Thread stoped [19:33:40]accept exits with 9 [19:33:40]New connection [19:33:40]New thread 3066666340 created [19:33:40]Thread 3066809700 joined [19:33:40]Waiting for new connection... [19:33:40] Sock 9.Parse request [19:33:40]Sock 9.Check first char [19:33:40]Sock 9.First char is OK [19:33:40]request: POST /json_proto HTTP/1.0 [19:33:40]Method: POST [19:33:40]URL: /json_proto [19:33:40]Method is POST - this is cgi request [19:33:40]url: /json_proto [19:33:40]query_string will be loaded in cgi processing [19:33:40]execute_cgi json_proto POST (null) [19:33:40]execute_cgi path=json_proto method=POST [19:33:40]POST find Content-Length [19:33:40]Host: 172.17.44.195:8080 [19:33:40]Content-Length: 331 [19:33:40]Content-Type: application/json [19:33:40] [19:33:40]POST finish read [19:33:40]Found Content-Length = 331 [19:33:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [19:33:40]execute_script... [19:33:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [19:33:40]POST & json_proto [19:33:40]process_json_proto [19:33:40]json parsed OK: [19:33:40]protocol is kg_v1.0 [19:33:40]action value=get_value [19:33:40]process_action get_value [19:33:40]cmd_get_value [19:33:40]process_action get_value done [19:33:40]requested_data is exist [19:33:40]produce_requested_data [19:33:40]requested_item fm.sale.total is exist - process it [19:33:40]SAM_PROTO_GetFMData [19:33:40]wFMCommunicate request_size=4 [19:33:40]MH_SAM_APDU [19:33:40]CAPDU: 80 13 03 00 [19:33:40]Write to MH i2c: E2 08 00 EF 02 80 13 03 00 00 00 00 00 70 [19:33:40]Write i2c OK [19:33:40]MH_I2C_Read... [19:33:41]Read from MH i2c: E2 [19:33:41]MH_I2C_Read... [19:33:41]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [19:33:41]Read from MH i2c: E2 FD 00 [19:33:41]MH_I2C_Read... [19:33:41]Read from MH i2c: E2 FD 00 EF 02 00 C5 04 85 04 C1 04 6E 04 04 00 01 75 03 00 69 04 A3 00 6F 04 04 00 12 6E 03 00 B1 04 05 00 4C AE 28 C5 04 70 04 05 00 10 02 B7 4B 04 72 04 04 00 3C AC 71 79 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 90 F9 B8 81 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 C8 3D CF 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 EF 06 00 00 B1 04 04 00 C8 99 CF 1E 70 04 04 00 C8 99 CF 1E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 79 B4 45 03 EF 03 09 90 00 0B [19:33:41]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 01 75 03 00 69 04 A3 00 6F 04 04 00 12 6E 03 00 B1 04 05 00 4C AE 28 C5 04 70 04 05 00 10 02 B7 4B 04 72 04 04 00 3C AC 71 79 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 90 F9 B8 81 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 C8 3D CF 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 EF 06 00 00 B1 04 04 00 C8 99 CF 1E 70 04 04 00 C8 99 CF 1E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 79 B4 45 03 EF 03 09 90 00 [19:33:41]wFMCommunicate OK [19:33:41]wFMCommunicate request_size=4 [19:33:41]MH_SAM_APDU [19:33:41]CAPDU: 80 17 00 00 [19:33:41]Write to MH i2c: E2 08 00 F0 02 80 17 00 00 00 00 00 00 72 [19:33:41]Write i2c OK [19:33:41]MH_I2C_Read... [19:33:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:33:41]Read from MH i2c: E2 [19:33:41]MH_I2C_Read... [19:33:41]Read from MH i2c: E2 FD 00 [19:33:41]MH_I2C_Read... [19:33:41]Read from MH i2c: E2 FD 00 F0 02 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8E CE 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 C9 [19:33:41]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8E CE 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [19:33:41]wFMCommunicate OK [19:33:41]wFMCommunicate request_size=4 [19:33:41]MH_SAM_APDU [19:33:41]CAPDU: 80 17 00 00 [19:33:41]Write to MH i2c: E2 08 00 F1 02 80 17 00 00 00 00 00 00 73 [19:33:41]Write i2c OK [19:33:41]MH_I2C_Read... [19:33:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:33:41]Read from MH i2c: E2 [19:33:41]MH_I2C_Read... [19:33:41]Read from MH i2c: E2 FD 00 [19:33:41]MH_I2C_Read... [19:33:41]Read from MH i2c: E2 FD 00 F1 02 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 85 [19:33:41]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [19:33:41]wFMCommunicate OK [19:33:41]wFMCommunicate request_size=4 [19:33:41]MH_SAM_APDU [19:33:41]CAPDU: 80 17 00 00 [19:33:41]Write to MH i2c: E2 08 00 F2 02 80 17 00 00 00 00 00 00 74 [19:33:41]Write i2c OK [19:33:41]MH_I2C_Read... [19:33:41]OFD Sender: No OFD packet to send [19:33:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:33:41]Read from MH i2c: E2 [19:33:41]MH_I2C_Read... [19:33:41]Read from MH i2c: E2 FD 00 [19:33:41]MH_I2C_Read... [19:33:41]Read from MH i2c: E2 FD 00 F2 02 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 00 [19:33:41]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [19:33:41]wFMCommunicate OK [19:33:41]wFMCommunicate request_size=4 [19:33:41]MH_SAM_APDU [19:33:41]CAPDU: 80 17 00 00 [19:33:41]Write to MH i2c: E2 08 00 F3 02 80 17 00 00 00 00 00 00 75 [19:33:41]Write i2c OK [19:33:41]MH_I2C_Read... [19:33:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [19:33:42]Read from MH i2c: E2 [19:33:42]MH_I2C_Read... [19:33:42]Read from MH i2c: E2 E2 00 [19:33:42]MH_I2C_Read... [19:33:42]Read from MH i2c: E2 E2 00 F3 02 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 53 [19:33:42]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [19:33:42]wFMCommunicate OK [19:33:42]SAM_PROTO_GetFMData done [19:33:42]requested_item fm.sale_refund.total is exist - process it [19:33:42]requested_item fm.buy.total is exist - process it [19:33:42]requested_item shift.sale.total is exist - process it [19:33:42]SAM_PROTO_GetShiftData [19:33:42]wFMCommunicate request_size=4 [19:33:42]MH_SAM_APDU [19:33:42]CAPDU: 80 13 02 00 [19:33:42]Write to MH i2c: E2 08 00 F4 02 80 13 02 00 00 00 00 00 74 [19:33:42]Write i2c OK [19:33:42]MH_I2C_Read... [19:33:42]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [19:33:42]Read from MH i2c: E2 [19:33:42]MH_I2C_Read... [19:33:42]Read from MH i2c: E2 FD 00 [19:33:42]MH_I2C_Read... [19:33:42]Read from MH i2c: E2 FD 00 F4 02 00 B1 04 AA 04 AD 04 6E 04 04 00 DB 01 00 00 69 04 9E 00 6F 04 04 00 DB 01 00 00 B1 04 04 00 B6 24 33 03 70 04 04 00 40 61 CA 02 72 04 03 00 76 C3 68 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 81 02 57 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 28 40 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 6A [19:33:42]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 DB 01 00 00 69 04 9E 00 6F 04 04 00 DB 01 00 00 B1 04 04 00 B6 24 33 03 70 04 04 00 40 61 CA 02 72 04 03 00 76 C3 68 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 81 02 57 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 28 40 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [19:33:42]wFMCommunicate OK [19:33:42]wFMCommunicate request_size=4 [19:33:42]MH_SAM_APDU [19:33:42]CAPDU: 80 17 00 00 [19:33:42]Write to MH i2c: E2 08 00 F5 02 80 17 00 00 00 00 00 00 77 [19:33:42]Write i2c OK [19:33:42]MH_I2C_Read... [19:33:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:33:42]Read from MH i2c: E2 [19:33:42]MH_I2C_Read... [19:33:42]Read from MH i2c: E2 FD 00 [19:33:42]MH_I2C_Read... [19:33:42]Read from MH i2c: E2 FD 00 F5 02 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 90 [19:33:42]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [19:33:42]wFMCommunicate OK [19:33:42]wFMCommunicate request_size=4 [19:33:42]MH_SAM_APDU [19:33:42]CAPDU: 80 17 00 00 [19:33:42]Write to MH i2c: E2 08 00 F6 02 80 17 00 00 00 00 00 00 78 [19:33:42]Write i2c OK [19:33:42]MH_I2C_Read... [19:33:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:33:43]Read from MH i2c: E2 [19:33:43]MH_I2C_Read... [19:33:43]Read from MH i2c: E2 FD 00 [19:33:43]MH_I2C_Read... [19:33:43]Read from MH i2c: E2 FD 00 F6 02 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 31 [19:33:43]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [19:33:43]wFMCommunicate OK [19:33:43]wFMCommunicate request_size=4 [19:33:43]MH_SAM_APDU [19:33:43]CAPDU: 80 17 00 00 [19:33:43]Write to MH i2c: E2 08 00 F7 02 80 17 00 00 00 00 00 00 79 [19:33:43]Write i2c OK [19:33:43]MH_I2C_Read... [19:33:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:33:43]Read from MH i2c: E2 [19:33:43]MH_I2C_Read... [19:33:43]Read from MH i2c: E2 FD 00 [19:33:43]MH_I2C_Read... [19:33:43]Read from MH i2c: E2 FD 00 F7 02 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 F1 [19:33:43]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [19:33:43]wFMCommunicate OK [19:33:43]wFMCommunicate request_size=4 [19:33:43]MH_SAM_APDU [19:33:43]CAPDU: 80 17 00 00 [19:33:43]Write to MH i2c: E2 08 00 F8 02 80 17 00 00 00 00 00 00 7A [19:33:43]Write i2c OK [19:33:43]MH_I2C_Read... [19:33:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [19:33:43]Read from MH i2c: E2 [19:33:43]MH_I2C_Read... [19:33:43]Read from MH i2c: E2 CE 00 [19:33:43]MH_I2C_Read... [19:33:43]Read from MH i2c: E2 CE 00 F8 02 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 5F [19:33:43]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [19:33:43]wFMCommunicate OK [19:33:43]SAM_PROTO_GetShiftData done [19:33:43]requested_item shift.sale.total_cash is exist - process it [19:33:43]requested_item shift.sale_refund.total is exist - process it [19:33:43]requested_item shift.sale_refund.total_cash is exist - process it [19:33:43]requested_item shift.buy.total is exist - process it [19:33:43]requested_item shift.buy.total_cash is exist - process it [19:33:43]produce_requested_data done [19:33:43]produce_requested_data return {"fm.sale.total":204876467.96,"fm.sale_refund.total":5169218.00,"fm.buy.total":0.00,"shift.sale.total":536833.82,"shift.sale.total_cash":468176.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [19:33:43]process_action_free get_value [19:33:43]json_value_free [19:33:43]json_value_free done [19:33:43]process_json_proto returns [19:33:43]Send response to host [19:33:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":204876467.96,"fm.sale_refund.total":5169218.00,"fm.buy.total":0.00,"shift.sale.total":536833.82,"shift.sale.total_cash":468176.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [19:33:43]free response buf [19:33:43]execute_script done [19:33:43]execute_script returns [19:33:43]free content buf [19:33:43]Sock 9.Close socket [19:33:43]Sock 9.Thread stoped [19:33:46]OFD Sender: No OFD packet to send [19:33:51]OFD Sender: No OFD packet to send [19:33:56]OFD Sender: No OFD packet to send [19:34:01]OFD Sender: No OFD packet to send [19:34:02]accept exits with 7 [19:34:02]New connection [19:34:02]New thread 3066809700 created [19:34:02]Thread 3066666340 joined [19:34:02]Waiting for new connection... [19:34:02] Sock 7.Parse request [19:34:02]Sock 7.Check first char [19:34:02]Sock 7.First char is OK [19:34:02]request: POST /json_proto HTTP/1.0 [19:34:02]Method: POST [19:34:02]URL: /json_proto [19:34:02]Method is POST - this is cgi request [19:34:02]url: /json_proto [19:34:02]query_string will be loaded in cgi processing [19:34:02]execute_cgi json_proto POST (null) [19:34:02]execute_cgi path=json_proto method=POST [19:34:02]POST find Content-Length [19:34:02]Host: 172.17.44.195:8080 [19:34:02]Content-Length: 675 [19:34:02]Content-Type: application/json [19:34:02] [19:34:02]POST finish read [19:34:02]Found Content-Length = 675 [19:34:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963284", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 1.320, "sum" : 100.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:02]execute_script... [19:34:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963284", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 1.320, "sum" : 100.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:02]POST & json_proto [19:34:02]process_json_proto [19:34:02]json parsed OK: [19:34:02]protocol is kg_v1.0 [19:34:02]action value=close_receipt [19:34:02]process_action close_receipt [19:34:02]cmd_close_receipt [19:34:02]MH_GetDate [19:34:02]Write to MH i2c: F0 00 00 F9 02 EA [19:34:02]Write i2c OK [19:34:02]MH_I2C_Read... [19:34:02]Read from MH i2c: F0 [19:34:02]MH_I2C_Read... [19:34:02]Read from MH i2c: F0 09 00 [19:34:02]MH_I2C_Read... [19:34:02]Read from MH i2c: F0 09 00 F9 02 00 2B 5B 15 67 82 C9 CF 66 75 [19:34:02]GetLastDocTimeStamp 1729452759 [19:34:02]current date 1729452843 [19:34:02]FM_GetShiftState [19:34:02]SAM_PROTO_GetShiftState [19:34:02]wFMCommunicate request_size=4 [19:34:02]MH_SAM_APDU [19:34:02]CAPDU: 80 13 01 00 [19:34:02]Write to MH i2c: E2 08 00 FA 02 80 13 01 00 00 00 00 00 79 [19:34:02]Write i2c OK [19:34:02]MH_I2C_Read... [19:34:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:02]Read from MH i2c: E2 [19:34:02]MH_I2C_Read... [19:34:02]Read from MH i2c: E2 0E 00 [19:34:02]MH_I2C_Read... [19:34:02]Read from MH i2c: E2 0E 00 FA 02 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 93 [19:34:02]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [19:34:02]wFMCommunicate OK [19:34:02]SAM_PROTO_GetShiftState done [19:34:02]FM_GetShiftState done [19:34:02]opened in 1729383750 [19:34:02]opened+sec_in_day 1729470150 [19:34:02]quantity*price = 10058 [19:34:02]sum+1 = 10059 [19:34:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.58 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.68 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 476 20.10.2024 19:34 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227628 ФПД: 66996882305827 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T193403&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227628&fm=66996882305827&tin=02508201610067®Number=0000000000091685&sum=10000 [19:34:03]StoreToDocumentArchive [19:34:03]shift 533 fd 227628 [19:34:03]save to /storage/0533/doc_00227628 [19:34:03]save last doc name /storage/0533/doc_00227628 to /storage/kkm_last_doc_name [19:34:03]save OK [19:34:03]Clear old archive folders... [19:34:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:34:03]tlvbuf is 00C23900 [19:34:03]SAM_PROTO_ClearQueue [19:34:03]wFMCommunicate request_size=4 [19:34:03]MH_SAM_APDU [19:34:03]CAPDU: 80 09 00 00 [19:34:03]Write to MH i2c: E2 08 00 07 03 80 09 00 00 00 00 00 00 7C [19:34:03]Write i2c OK [19:34:03]MH_I2C_Read... [19:34:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:34:03]Read from MH i2c: E2 [19:34:03]MH_I2C_Read... [19:34:03]Read from MH i2c: E2 03 00 [19:34:03]MH_I2C_Read... [19:34:03]Read from MH i2c: E2 03 00 07 03 00 90 00 7E [19:34:03]RAPDU: 90 00 [19:34:03]wFMCommunicate OK [19:34:03]SAM_PROTO_ClearQueue done [19:34:03]KKMCreateOFDPacket [19:34:03]OFDProtocolAddRootSTLVToBuf [19:34:03]FM_MakeSignedData [19:34:03]FM_MakeSignedData [19:34:03]SAM_PROTO_SignData [19:34:03]wFMCommunicate request_size=4 [19:34:03]MH_SAM_APDU [19:34:03]CAPDU: 80 0D 01 02 [19:34:03]Write to MH i2c: E2 08 00 08 03 80 0D 01 02 00 00 00 00 84 [19:34:03]Write i2c OK [19:34:03]MH_I2C_Read... [19:34:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:34:03]Read from MH i2c: E2 [19:34:03]MH_I2C_Read... [19:34:03]Read from MH i2c: E2 03 00 [19:34:03]MH_I2C_Read... [19:34:03]Read from MH i2c: E2 03 00 08 03 00 90 00 7F [19:34:03]RAPDU: 90 00 [19:34:03]wFMCommunicate OK [19:34:03]wFMCommunicate request_size=255 [19:34:03]MH_SAM_APDU [19:34: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 28 05 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4A 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 2C 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 DC 01 00 00 F4 03 04 00 2B 5B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2C 79 03 00 35 04 06 00 3C EE ED 5E [19:34:03]Write to MH i2c: E2 02 01 09 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 28 05 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4A 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 2C 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 DC 01 00 00 F4 03 04 00 2B 5B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2C 79 03 00 35 04 06 00 3C EE ED 5E 00 00 72 [19:34:03]Write i2c OK [19:34:03]MH_I2C_Read... [19:34:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:04]Read from MH i2c: E2 [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: E2 03 00 [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: E2 03 00 09 03 00 90 00 80 [19:34:04]RAPDU: 90 00 [19:34:04]wFMCommunicate OK [19:34:04]wFMCommunicate request_size=7 [19:34:04]MH_SAM_APDU [19:34:04]CAPDU: 80 0D 02 02 02 F3 23 [19:34:04]Write to MH i2c: E2 0A 00 0A 03 80 0D 02 02 02 00 F3 23 00 00 A1 [19:34:04]Write i2c OK [19:34:04]MH_I2C_Read... [19:34:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:04]Read from MH i2c: E2 [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: E2 03 00 [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: E2 03 00 0A 03 00 90 00 81 [19:34:04]RAPDU: 90 00 [19:34:04]wFMCommunicate OK [19:34:04]wFMCommunicate request_size=4 [19:34:04]MH_SAM_APDU [19:34:04]CAPDU: 80 0D 03 02 [19:34:04]Write to MH i2c: E2 08 00 0B 03 80 0D 03 02 00 00 00 00 89 [19:34:04]Write i2c OK [19:34:04]MH_I2C_Read... [19:34:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:34:04]Read from MH i2c: E2 [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: E2 0B 00 [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: E2 0B 00 0B 03 00 71 F7 72 55 CF 59 2C B8 90 00 C5 [19:34:04]RAPDU: 71 F7 72 55 CF 59 2C B8 90 00 [19:34:04]wFMCommunicate OK [19:34:04]SAM_PROTO_SignData done [19:34:04]FM_MakeSignedData done [19:34:04]CreateOFDProtocolMessage [19:34:04]wFMCommunicate request_size=4 [19:34:04]MH_SAM_APDU [19:34:04]CAPDU: 80 11 00 00 [19:34:04]Write to MH i2c: E2 08 00 0C 03 80 11 00 00 00 00 00 00 89 [19:34:04]Write i2c OK [19:34:04]MH_I2C_Read... [19:34:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:04]Read from MH i2c: E2 [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: E2 17 00 [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: E2 17 00 0C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E0 [19:34:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:34:04]wFMCommunicate OK [19:34:04]CreateOFDProtocolMessage done [19:34:04]OFDSenderStorePacket 227628 [19:34:04]StoreOFDPacket docnum=227628 [19:34:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 DF C7 04 01 27 1A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 28 05 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4A 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 2C 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 DC 01 00 00 F4 03 04 00 2B 5B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2C 79 03 00 35 04 06 00 3C EE ED 5E F3 23 71 F7 72 55 CF 59 2C B8 [19:34:04]CheckFolder [19:34:04]dirname=/storage/ofd_packets [19:34:04]CheckFolder done [19:34:04]ProducePacketName [19:34:04]name=ofd_packets/00227628 [19:34:04]NVStorageSaveData ofd_packets/00227628 [19:34:04]File name is /storage/ofd_packets/00227628 [19:34:04]Write 298 bytes [19:34:04]NVStorageSaveData done [19:34:04]OFDSenderStorePacket done [19:34:04]KKMCreateOFDPacket done [19:34:04]NVStorageSaveData kkm_last_timestamp [19:34:04]File name is /storage/kkm_last_timestamp [19:34:04]Write 4 bytes [19:34:04]NVStorageSaveData done [19:34:04]ExternCall_PrintAddStr [19:34:04]wPrintStart [19:34:04]Write to MH i2c: 01 00 00 0D 03 10 [19:34:04]Write i2c OK [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: 01 [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: 01 07 00 [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: 01 07 00 0D 03 00 00 00 00 00 FF 0F 25 [19:34:04]RasterBufferAndPrint [19:34:04]line Счет N : (1)1963284 [19:34:04]line ИНН: 02508201610067 [19:34:04]line Контрольно-Кассовый Чек [19:34:04]line ПРОДАЖА [19:34:04]line ТРК (МРК, ГНК) : 21 [19:34:04]line Товар: 2710194210 [19:34:04]line ДТ-К-5 [19:34:04]line 1.320 * 76.20 [19:34:04]line = 100.58 [19:34:04]line НДС 12% НСП 1% [19:34:04]line > о реализуемом товаре [19:34:04]line ОКРУГЛЕНИЕ: -0.58 [19:34:04]line ИТОГО: 100.00 [19:34:04]line Внесено: 100.00 [19:34:04]line СДАЧА: 0.00 [19:34:04]line НСП 1% : 0.89 [19:34:04]line НДС 12% : 10.68 [19:34:04]line Наличными: 100.00 [19:34:04]line Безнал.: 0.00 [19:34:04]line Место: АЗС № 133 "Партнер Нефть" [19:34:04]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [19:34:04]line СНО: Общий режим [19:34:04]line Чек 476 20.10.2024 19:34 [19:34:04]line Смена: 533 ФФД: 1.0 [19:34:04]line ЗНМ: 0300000091 [19:34:04]line РНМ: 0000000000091685 [19:34:04]line Версия ККМ: 001 [19:34:04]line ФМ: 0000000000871839 [19:34:04]line ФД: 227628 [19:34:04]line ФПД: 66996882305827 [19:34:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T193403&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227628&fm=66996882305827&tin=02508201610067®Number=0000000000091685&sum=10000 [19:34:04]OFD Sender: Processing packet 227628 [packets to send 38, broken 37] [19:34:04]ProducePacketName [19:34:04]name=ofd_packets/00227628 [19:34:04]OFD Sender: To server: pG, [19:34:04]CommunicateWithHost lk.salyk.kg:30040 [19:34:04]ConnectInit lk.salyk.kg [19:34:04]written 0, free lines is 4095 [19:34:04]Connected sock=10 [19:34: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 33 39 0C 01 00 00 DF C7 04 01 27 1A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 28 05 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4A 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 2C 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 DC 01 00 00 F4 03 04 00 2B 5B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2C 79 03 00 35 04 06 00 3C EE ED 5E F3 23 71 F7 72 55 CF 59 2C B8 [19:34: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 33 39 4F 00 00 00 0F 7D 47 00 A9 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 33 39 10 04 04 00 2C 79 03 00 F4 03 04 00 29 06 15 67 B6 04 01 00 00 93 B5 BE 4F 19 08 5E A0 [19:34:04]CommunicateWithHost err = 0 [19:34:04]CheckOFDResponse [19:34:04]1017 (14) - 77093643461234 [19:34:04]1041 (16) - 0000000000871839 [19:34:04]1040 (4) - 227628 [19:34:04]1012 (4) - 20.10.2024 13:31 [19:34:04]1206 (1) - 0 [19:34:04]OFD Sender: Remove packet 227628 [19:34:04]ProducePacketName [19:34:04]name=ofd_packets/00227628 [19:34:04]NVStorageDeleteData [19:34:05]Write to MH i2c: 01 00 00 37 03 3A [19:34:05]Write i2c OK [19:34:05]MH_I2C_Read... [19:34:05]Read from MH i2c: 01 [19:34:05]MH_I2C_Read... [19:34:05]Read from MH i2c: 01 07 00 [19:34:05]MH_I2C_Read... [19:34:05]Read from MH i2c: 01 07 00 37 03 00 00 00 00 00 AA 0C F7 [19:34:05]RasterBufferAndPrint [19:34:05]line [19:34:05]line [19:34:05]line [19:34:05]line [19:34:05]line [19:34:05]written 0, free lines is 3247 [19:34:05]process_action close_receipt done [19:34:05]requested_data is exist [19:34:05]produce_requested_data [19:34:05]requested_item fm.sn is exist - process it [19:34:05]wFMCommunicate request_size=4 [19:34:05]MH_SAM_APDU [19:34:05]CAPDU: 80 11 00 00 [19:34:05]Write to MH i2c: E2 08 00 3E 03 80 11 00 00 00 00 00 00 BB [19:34:05]Write i2c OK [19:34:05]MH_I2C_Read... [19:34:05]Read from MH i2c: E2 [19:34:05]MH_I2C_Read... [19:34:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:05]Read from MH i2c: E2 17 00 [19:34:05]MH_I2C_Read... [19:34:05]Read from MH i2c: E2 17 00 3E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 12 [19:34:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:34:05]wFMCommunicate OK [19:34:05]requested_item fd.num is exist - process it [19:34:05]SAM_PROTO_GetFieldsCounters [19:34:05]wFMCommunicate request_size=4 [19:34:05]MH_SAM_APDU [19:34:05]CAPDU: 80 13 00 00 [19:34:05]Write to MH i2c: E2 08 00 3F 03 80 13 00 00 00 00 00 00 BE [19:34:05]Write i2c OK [19:34:05]MH_I2C_Read... [19:34:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:34:05]Read from MH i2c: E2 [19:34:05]MH_I2C_Read... [19:34:05]Read from MH i2c: E2 62 00 [19:34:05]MH_I2C_Read... [19:34:05]Read from MH i2c: E2 62 00 3F 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 2C 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 DC 01 00 00 5E 04 04 00 DC 01 00 00 57 04 04 00 DD 01 00 00 19 04 04 00 00 00 00 00 90 00 3D [19:34: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 2C 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 DC 01 00 00 5E 04 04 00 DC 01 00 00 57 04 04 00 DD 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:34:05]wFMCommunicate OK [19:34:05]SAM_PROTO_GetFieldsCounters done [19:34:05]requested_item shift.num is exist - process it [19:34:05]requested_item shift.opened is exist - process it [19:34:05]req_shift_opened [19:34:05]FM_GetShiftState [19:34:05]SAM_PROTO_GetShiftState [19:34:05]wFMCommunicate request_size=4 [19:34:05]MH_SAM_APDU [19:34:05]CAPDU: 80 13 01 00 [19:34:05]Write to MH i2c: E2 08 00 40 03 80 13 01 00 00 00 00 00 C0 [19:34:05]Write i2c OK [19:34:05]MH_I2C_Read... [19:34:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:05]Read from MH i2c: E2 [19:34:05]MH_I2C_Read... [19:34:05]Read from MH i2c: E2 0E 00 [19:34:05]MH_I2C_Read... [19:34:05]Read from MH i2c: E2 0E 00 40 03 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 DA [19:34:05]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [19:34:05]wFMCommunicate OK [19:34:05]SAM_PROTO_GetShiftState done [19:34:05]FM_GetShiftState done [19:34:05]req_shift_opened done [19:34:05]requested_item shift.open_date is exist - process it [19:34:05]req_shift_open_date [19:34:05]req_shift_open_date done [19:34:05]produce_requested_data done [19:34:05]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227628,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [19:34:05]process_action_free close_receipt [19:34:05]json_value_free [19:34:05]json_value_free done [19:34:05]process_json_proto returns [19:34:05]Send response to host [19:34:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227628,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [19:34:05]free response buf [19:34:05]execute_script done [19:34:05]execute_script returns [19:34:05]free content buf [19:34:05]Sock 7.Close socket [19:34:05]Sock 7.Thread stoped [19:34:05]OFD Sender: No OFD packet to send [19:34:07]accept exits with 9 [19:34:07]New connection [19:34:07]New thread 3066666340 created [19:34:07]Thread 3066809700 joined [19:34:07]Waiting for new connection... [19:34:07] Sock 9.Parse request [19:34:07]Sock 9.Check first char [19:34:07]Sock 9.First char is OK [19:34:07]request: POST /json_proto HTTP/1.0 [19:34:07]Method: POST [19:34:07]URL: /json_proto [19:34:07]Method is POST - this is cgi request [19:34:07]url: /json_proto [19:34:07]query_string will be loaded in cgi processing [19:34:07]execute_cgi json_proto POST (null) [19:34:07]execute_cgi path=json_proto method=POST [19:34:07]POST find Content-Length [19:34:07]Host: 172.17.44.195:8080 [19:34:07]Content-Length: 732 [19:34:07]Content-Type: application/json [19:34:07] [19:34:07]POST finish read [19:34:07]Found Content-Length = 732 [19:34:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 227628, "base_FM": "0000000000871839", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963284", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 1.320, "sum" : 100.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:07]execute_script... [19:34:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 227628, "base_FM": "0000000000871839", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963284", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 1.320, "sum" : 100.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:07]POST & json_proto [19:34:07]process_json_proto [19:34:07]json parsed OK: [19:34:07]protocol is kg_v1.0 [19:34:07]action value=close_receipt [19:34:07]process_action close_receipt [19:34:07]cmd_close_receipt [19:34:07]MH_GetDate [19:34:07]Write to MH i2c: F0 00 00 41 03 33 [19:34:07]Write i2c OK [19:34:07]MH_I2C_Read... [19:34:07]Read from MH i2c: F0 [19:34:07]MH_I2C_Read... [19:34:07]Read from MH i2c: F0 09 00 [19:34:07]MH_I2C_Read... [19:34:07]Read from MH i2c: F0 09 00 41 03 00 2F 5B 15 67 82 C9 CF 66 C2 [19:34:07]GetLastDocTimeStamp 1729452843 [19:34:07]current date 1729452847 [19:34:07]FM_GetShiftState [19:34:07]SAM_PROTO_GetShiftState [19:34:07]wFMCommunicate request_size=4 [19:34:07]MH_SAM_APDU [19:34:07]CAPDU: 80 13 01 00 [19:34:07]Write to MH i2c: E2 08 00 42 03 80 13 01 00 00 00 00 00 C2 [19:34:07]Write i2c OK [19:34:07]MH_I2C_Read... [19:34:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:07]Read from MH i2c: E2 [19:34:07]MH_I2C_Read... [19:34:07]Read from MH i2c: E2 0E 00 [19:34:07]MH_I2C_Read... [19:34:07]Read from MH i2c: E2 0E 00 42 03 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 DC [19:34:07]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [19:34:07]wFMCommunicate OK [19:34:07]SAM_PROTO_GetShiftState done [19:34:07]FM_GetShiftState done [19:34:07]opened in 1729383750 [19:34:07]opened+sec_in_day 1729470150 [19:34:07]quantity*price = 10058 [19:34:07]sum+1 = 10059 [19:34:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.58 ИТОГО: 100.00 НСП 1% : 0.89 НДС 12% : 10.68 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 477 20.10.2024 19:34 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФД осн.: 227628 ФМ осн.: 0000000000871839 ФМ: 0000000000871839 ФД: 227629 ФПД: 143051721359419 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T193407&type=2&operation_type=1&fn_number=0000000000871839&fd_number=227629&fm=143051721359419&tin=02508201610067®Number=0000000000091685&sum=10000 [19:34:08]StoreToDocumentArchive [19:34:08]shift 533 fd 227629 [19:34:08]save to /storage/0533/doc_00227629 [19:34:08]save last doc name /storage/0533/doc_00227629 to /storage/kkm_last_doc_name [19:34:08]save OK [19:34:08]Clear old archive folders... [19:34:08]ProcessDocumentItem done err = 0, tmpTLVsize=276 [19:34:08]tlvbuf is 00C21730 [19:34:08]SAM_PROTO_ClearQueue [19:34:08]wFMCommunicate request_size=4 [19:34:08]MH_SAM_APDU [19:34:08]CAPDU: 80 09 00 00 [19:34:08]Write to MH i2c: E2 08 00 51 03 80 09 00 00 00 00 00 00 C6 [19:34:08]Write i2c OK [19:34:08]MH_I2C_Read... [19:34:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:34:08]Read from MH i2c: E2 [19:34:08]MH_I2C_Read... [19:34:08]Read from MH i2c: E2 03 00 [19:34:08]MH_I2C_Read... [19:34:08]Read from MH i2c: E2 03 00 51 03 00 90 00 C8 [19:34:08]RAPDU: 90 00 [19:34:08]wFMCommunicate OK [19:34:08]SAM_PROTO_ClearQueue done [19:34:08]KKMCreateOFDPacket [19:34:08]OFDProtocolAddRootSTLVToBuf [19:34:08]FM_MakeSignedData [19:34:08]FM_MakeSignedData [19:34:08]SAM_PROTO_SignData [19:34:08]wFMCommunicate request_size=4 [19:34:08]MH_SAM_APDU [19:34:08]CAPDU: 80 0D 01 02 [19:34:08]Write to MH i2c: E2 08 00 52 03 80 0D 01 02 00 00 00 00 CE [19:34:08]Write i2c OK [19:34:08]MH_I2C_Read... [19:34:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:34:08]Read from MH i2c: E2 [19:34:08]MH_I2C_Read... [19:34:08]Read from MH i2c: E2 03 00 [19:34:08]MH_I2C_Read... [19:34:08]Read from MH i2c: E2 03 00 52 03 00 90 00 C9 [19:34:08]RAPDU: 90 00 [19:34:08]wFMCommunicate OK [19:34:08]wFMCommunicate request_size=255 [19:34:08]MH_SAM_APDU [19:34:08]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 28 05 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4A 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 2C 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 DD 01 00 00 F4 03 04 00 2F 5B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 27 04 04 00 2C 79 03 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 11 04 10 00 30 30 30 30 [19:34:08]Write to MH i2c: E2 02 01 53 03 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 28 05 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4A 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 2C 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 DD 01 00 00 F4 03 04 00 2F 5B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 27 04 04 00 2C 79 03 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 11 04 10 00 30 30 30 30 00 00 3E [19:34:08]Write i2c OK [19:34:08]MH_I2C_Read... [19:34:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:08]Read from MH i2c: E2 [19:34:08]MH_I2C_Read... [19:34:08]Read from MH i2c: E2 03 00 [19:34:08]MH_I2C_Read... [19:34:08]Read from MH i2c: E2 03 00 53 03 00 90 00 CA [19:34:08]RAPDU: 90 00 [19:34:08]wFMCommunicate OK [19:34:08]wFMCommunicate request_size=35 [19:34:08]MH_SAM_APDU [19:34:08]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2D 79 03 00 35 04 06 00 82 1A D3 09 40 3B [19:34:08]Write to MH i2c: E2 26 00 54 03 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2D 79 03 00 35 04 06 00 82 1A D3 09 40 3B 00 00 64 [19:34:08]Write i2c OK [19:34:08]MH_I2C_Read... [19:34:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:08]Read from MH i2c: E2 [19:34:08]MH_I2C_Read... [19:34:08]Read from MH i2c: E2 03 00 [19:34:08]MH_I2C_Read... [19:34:08]Read from MH i2c: E2 03 00 54 03 00 90 00 CB [19:34:08]RAPDU: 90 00 [19:34:08]wFMCommunicate OK [19:34:08]wFMCommunicate request_size=4 [19:34:08]MH_SAM_APDU [19:34:08]CAPDU: 80 0D 03 02 [19:34:08]Write to MH i2c: E2 08 00 55 03 80 0D 03 02 00 00 00 00 D3 [19:34:08]Write i2c OK [19:34:08]MH_I2C_Read... [19:34:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:34:09]Read from MH i2c: E2 [19:34:09]MH_I2C_Read... [19:34:09]Read from MH i2c: E2 0B 00 [19:34:09]MH_I2C_Read... [19:34:09]Read from MH i2c: E2 0B 00 55 03 00 F7 DF 08 6E AE 87 B5 61 90 00 6B [19:34:09]RAPDU: F7 DF 08 6E AE 87 B5 61 90 00 [19:34:09]wFMCommunicate OK [19:34:09]SAM_PROTO_SignData done [19:34:09]FM_MakeSignedData done [19:34:09]CreateOFDProtocolMessage [19:34:09]wFMCommunicate request_size=4 [19:34:09]MH_SAM_APDU [19:34:09]CAPDU: 80 11 00 00 [19:34:09]Write to MH i2c: E2 08 00 56 03 80 11 00 00 00 00 00 00 D3 [19:34:09]Write i2c OK [19:34:09]MH_I2C_Read... [19:34:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:09]Read from MH i2c: E2 [19:34:09]MH_I2C_Read... [19:34:09]Read from MH i2c: E2 17 00 [19:34:09]MH_I2C_Read... [19:34:09]Read from MH i2c: E2 17 00 56 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 2A [19:34:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:34:09]wFMCommunicate OK [19:34:09]CreateOFDProtocolMessage done [19:34:09]OFDSenderStorePacket 227629 [19:34:09]StoreOFDPacket docnum=227629 [19:34:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 28 01 00 00 DF 0B 20 01 A7 65 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 28 05 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4A 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 2C 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 DD 01 00 00 F4 03 04 00 2F 5B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 27 04 04 00 2C 79 03 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2D 79 03 00 35 04 06 00 82 1A D3 09 40 3B F7 DF 08 6E AE 87 B5 61 [19:34:09]CheckFolder [19:34:09]dirname=/storage/ofd_packets [19:34:09]CheckFolder done [19:34:09]ProducePacketName [19:34:09]name=ofd_packets/00227629 [19:34:09]NVStorageSaveData ofd_packets/00227629 [19:34:09]File name is /storage/ofd_packets/00227629 [19:34:09]Write 326 bytes [19:34:09]NVStorageSaveData done [19:34:09]OFDSenderStorePacket done [19:34:09]KKMCreateOFDPacket done [19:34:09]NVStorageSaveData kkm_last_timestamp [19:34:09]File name is /storage/kkm_last_timestamp [19:34:09]Write 4 bytes [19:34:09]NVStorageSaveData done [19:34:09]ExternCall_PrintAddStr [19:34:09]wPrintStart [19:34:09]Write to MH i2c: 01 00 00 57 03 5A [19:34:09]Write i2c OK [19:34:09]MH_I2C_Read... [19:34:09]Read from MH i2c: 01 [19:34:09]MH_I2C_Read... [19:34:09]Read from MH i2c: 01 07 00 [19:34:09]MH_I2C_Read... [19:34:09]Read from MH i2c: 01 07 00 57 03 00 00 00 00 00 FF 0F 6F [19:34:09]RasterBufferAndPrint [19:34:09]line Счет N : (1)1963284 [19:34:09]line ИНН: 02508201610067 [19:34:09]line Контрольно-Кассовый Чек [19:34:09]line ВОЗВРАТ ПРОДАЖИ [19:34:09]line ТРК (МРК, ГНК) : 21 [19:34:09]line Товар: 2710194210 [19:34:09]line ДТ-К-5 [19:34:09]line 1.320 * 76.20 [19:34:09]line = 100.58 [19:34:09]line НДС 12% НСП 1% [19:34:09]line > о реализуемом товаре [19:34:09]line ОКРУГЛЕНИЕ: -0.58 [19:34:09]line ИТОГО: 100.00 [19:34:09]line НСП 1% : 0.89 [19:34:09]line НДС 12% : 10.68 [19:34:09]line Наличными: 100.00 [19:34:09]line Безнал.: 0.00 [19:34:09]line Место: АЗС № 133 "Партнер Нефть" [19:34:09]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [19:34:09]line СНО: Общий режим [19:34:09]line Чек 477 20.10.2024 19:34 [19:34:09]line Смена: 533 ФФД: 1.0 [19:34:09]line ЗНМ: 0300000091 [19:34:09]line РНМ: 0000000000091685 [19:34:09]line Версия ККМ: 001 [19:34:09]line ФД осн.: 227628 [19:34:09]line ФМ осн.: 0000000000871839 [19:34:09]line ФМ: 0000000000871839 [19:34:09]line ФД: 227629 [19:34:09]line ФПД: 143051721359419 [19:34:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T193407&type=2&operation_type=1&fn_number=0000000000871839&fd_number=227629&fm=143051721359419&tin=02508201610067®Number=0000000000091685&sum=10000 [19:34:09]written 0, free lines is 4095 [19:34:09]OFD Sender: Processing packet 227629 [packets to send 38, broken 37] [19:34:09]ProducePacketName [19:34:09]name=ofd_packets/00227629 [19:34:09]OFD Sender: To server: pG, [19:34:09]CommunicateWithHost lk.salyk.kg:30040 [19:34:09]ConnectInit lk.salyk.kg [19:34:09]Connected sock=7 [19:34: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 33 39 28 01 00 00 DF 0B 20 01 A7 65 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 28 05 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4A 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 2C 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 DD 01 00 00 F4 03 04 00 2F 5B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 27 04 04 00 2C 79 03 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2D 79 03 00 35 04 06 00 82 1A D3 09 40 3B F7 DF 08 6E AE 87 B5 61 [19:34: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 33 39 4F 00 00 00 36 A6 47 00 F8 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 33 39 10 04 04 00 2D 79 03 00 F4 03 04 00 2D 06 15 67 B6 04 01 00 00 CB 94 0E BD EF 9B 9D C1 [19:34:09]CommunicateWithHost err = 0 [19:34:09]CheckOFDResponse [19:34:09]1017 (14) - 77093643461234 [19:34:09]1041 (16) - 0000000000871839 [19:34:09]1040 (4) - 227629 [19:34:09]1012 (4) - 20.10.2024 13:31 [19:34:09]1206 (1) - 0 [19:34:09]OFD Sender: Remove packet 227629 [19:34:09]ProducePacketName [19:34:09]name=ofd_packets/00227629 [19:34:09]NVStorageDeleteData [19:34:09]Write to MH i2c: 01 00 00 81 03 84 [19:34:09]Write i2c OK [19:34:09]MH_I2C_Read... [19:34:09]Read from MH i2c: 01 [19:34:09]MH_I2C_Read... [19:34:09]Read from MH i2c: 01 07 00 [19:34:09]MH_I2C_Read... [19:34:09]Read from MH i2c: 01 07 00 81 03 00 00 00 00 00 B2 0C 49 [19:34:09]RasterBufferAndPrint [19:34:09]line [19:34:09]line [19:34:09]line [19:34:09]line [19:34:09]line [19:34:09]written 0, free lines is 3259 [19:34:09]process_action close_receipt done [19:34:09]requested_data is exist [19:34:09]produce_requested_data [19:34:09]requested_item fm.sn is exist - process it [19:34:09]wFMCommunicate request_size=4 [19:34:09]MH_SAM_APDU [19:34:09]CAPDU: 80 11 00 00 [19:34:09]Write to MH i2c: E2 08 00 88 03 80 11 00 00 00 00 00 00 05 [19:34:09]Write i2c OK [19:34:09]MH_I2C_Read... [19:34:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:09]Read from MH i2c: E2 [19:34:09]MH_I2C_Read... [19:34:09]Read from MH i2c: E2 17 00 [19:34:09]MH_I2C_Read... [19:34:09]Read from MH i2c: E2 17 00 88 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 5C [19:34:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:34:09]wFMCommunicate OK [19:34:09]requested_item fd.num is exist - process it [19:34:09]SAM_PROTO_GetFieldsCounters [19:34:09]wFMCommunicate request_size=4 [19:34:09]MH_SAM_APDU [19:34:09]CAPDU: 80 13 00 00 [19:34:09]Write to MH i2c: E2 08 00 89 03 80 13 00 00 00 00 00 00 08 [19:34:09]Write i2c OK [19:34:09]MH_I2C_Read... [19:34:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:34:09]Read from MH i2c: E2 [19:34:09]MH_I2C_Read... [19:34:09]Read from MH i2c: E2 62 00 [19:34:09]MH_I2C_Read... [19:34:09]Read from MH i2c: E2 62 00 89 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 2D 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 DD 01 00 00 5E 04 04 00 DD 01 00 00 57 04 04 00 DE 01 00 00 19 04 04 00 00 00 00 00 90 00 8B [19:34: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 2D 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 DD 01 00 00 5E 04 04 00 DD 01 00 00 57 04 04 00 DE 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:34:09]wFMCommunicate OK [19:34:09]SAM_PROTO_GetFieldsCounters done [19:34:09]requested_item shift.num is exist - process it [19:34:09]requested_item shift.opened is exist - process it [19:34:09]req_shift_opened [19:34:09]FM_GetShiftState [19:34:09]SAM_PROTO_GetShiftState [19:34:09]wFMCommunicate request_size=4 [19:34:09]MH_SAM_APDU [19:34:09]CAPDU: 80 13 01 00 [19:34:09]Write to MH i2c: E2 08 00 8A 03 80 13 01 00 00 00 00 00 0A [19:34:09]Write i2c OK [19:34:09]MH_I2C_Read... [19:34:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:09]Read from MH i2c: E2 [19:34:09]MH_I2C_Read... [19:34:09]Read from MH i2c: E2 0E 00 [19:34:09]MH_I2C_Read... [19:34:09]Read from MH i2c: E2 0E 00 8A 03 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 24 [19:34:09]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [19:34:09]wFMCommunicate OK [19:34:09]SAM_PROTO_GetShiftState done [19:34:09]FM_GetShiftState done [19:34:09]req_shift_opened done [19:34:09]requested_item shift.open_date is exist - process it [19:34:09]req_shift_open_date [19:34:09]req_shift_open_date done [19:34:09]produce_requested_data done [19:34:09]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227629,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [19:34:09]process_action_free close_receipt [19:34:09]json_value_free [19:34:09]json_value_free done [19:34:09]process_json_proto returns [19:34:09]Send response to host [19:34:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227629,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [19:34:09]free response buf [19:34:09]execute_script done [19:34:09]execute_script returns [19:34:09]free content buf [19:34:09]Sock 9.Close socket [19:34:09]Sock 9.Thread stoped [19:34:10]OFD Sender: No OFD packet to send [19:34:15]OFD Sender: No OFD packet to send [19:34:20]OFD Sender: No OFD packet to send [19:34:25]OFD Sender: No OFD packet to send [19:34:30]OFD Sender: No OFD packet to send [19:34:35]OFD Sender: No OFD packet to send [19:34:40]OFD Sender: No OFD packet to send [19:34:45]OFD Sender: No OFD packet to send [19:34:50]OFD Sender: No OFD packet to send [19:34:55]OFD Sender: No OFD packet to send [19:35:00]OFD Sender: No OFD packet to send [19:35:05]OFD Sender: No OFD packet to send [19:35:10]OFD Sender: No OFD packet to send [19:35:15]OFD Sender: No OFD packet to send [19:35:20]OFD Sender: No OFD packet to send [19:35:25]OFD Sender: No OFD packet to send [19:35:30]OFD Sender: No OFD packet to send [19:35:35]OFD Sender: No OFD packet to send [19:35:40]OFD Sender: No OFD packet to send [19:35:45]OFD Sender: No OFD packet to send [19:35:50]OFD Sender: No OFD packet to send [19:35:55]OFD Sender: No OFD packet to send [19:36:00]OFD Sender: No OFD packet to send [19:36:05]OFD Sender: No OFD packet to send [19:36:10]OFD Sender: No OFD packet to send [19:36:15]OFD Sender: No OFD packet to send [19:36:20]OFD Sender: No OFD packet to send [19:36:25]OFD Sender: No OFD packet to send [19:36:30]OFD Sender: No OFD packet to send [19:36:35]OFD Sender: No OFD packet to send [19:36:40]OFD Sender: No OFD packet to send [19:36:45]OFD Sender: No OFD packet to send [19:36:50]OFD Sender: No OFD packet to send [19:36:55]OFD Sender: No OFD packet to send [19:37:00]OFD Sender: No OFD packet to send [19:37:05]OFD Sender: No OFD packet to send [19:37:10]OFD Sender: No OFD packet to send [19:37:15]OFD Sender: No OFD packet to send [19:37:20]OFD Sender: No OFD packet to send [19:37:25]OFD Sender: No OFD packet to send [19:37:30]OFD Sender: No OFD packet to send [19:37:35]OFD Sender: No OFD packet to send [19:37:40]OFD Sender: No OFD packet to send [19:37:45]OFD Sender: No OFD packet to send [19:37:50]OFD Sender: No OFD packet to send [19:37:55]OFD Sender: No OFD packet to send [19:38:00]OFD Sender: No OFD packet to send [19:38:05]OFD Sender: No OFD packet to send [19:38:10]OFD Sender: No OFD packet to send [19:38:15]OFD Sender: No OFD packet to send [19:38:20]OFD Sender: No OFD packet to send [19:38:25]OFD Sender: No OFD packet to send [19:38:30]OFD Sender: No OFD packet to send [19:38:35]OFD Sender: No OFD packet to send [19:38:40]OFD Sender: No OFD packet to send [19:38:45]OFD Sender: No OFD packet to send [19:38:50]OFD Sender: No OFD packet to send [19:38:55]OFD Sender: No OFD packet to send [19:39:00]OFD Sender: No OFD packet to send [19:39:05]OFD Sender: No OFD packet to send [19:39:10]OFD Sender: No OFD packet to send [19:39:15]OFD Sender: No OFD packet to send [19:39:20]OFD Sender: No OFD packet to send [19:39:25]OFD Sender: No OFD packet to send [19:39:29]accept exits with 10 [19:39:29]New connection [19:39:29]New thread 3066809700 created [19:39:29]Thread 3066666340 joined [19:39:29]Waiting for new connection... [19:39:29] Sock 10.Parse request [19:39:29]Sock 10.Check first char [19:39:29]Sock 10.First char is OK [19:39:29]request: POST /json_proto HTTP/1.0 [19:39:29]Method: POST [19:39:29]URL: /json_proto [19:39:29]Method is POST - this is cgi request [19:39:29]url: /json_proto [19:39:29]query_string will be loaded in cgi processing [19:39:29]execute_cgi json_proto POST (null) [19:39:29]execute_cgi path=json_proto method=POST [19:39:29]POST find Content-Length [19:39:29]Host: 172.17.44.195:8080 [19:39:29]Content-Length: 678 [19:39:29]Content-Type: application/json [19:39:29] [19:39:29]POST finish read [19:39:29]Found Content-Length = 678 [19:39:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963290", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.950, "sum" : 130.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 130.00, "total" : 130.00, "payments": [ { "type": 0, "sum" : 130.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:39:29]execute_script... [19:39: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)1963290", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.950, "sum" : 130.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 130.00, "total" : 130.00, "payments": [ { "type": 0, "sum" : 130.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:39:29]POST & json_proto [19:39:29]process_json_proto [19:39:29]json parsed OK: [19:39:29]protocol is kg_v1.0 [19:39:29]action value=close_receipt [19:39:29]process_action close_receipt [19:39:29]cmd_close_receipt [19:39:29]MH_GetDate [19:39:29]Write to MH i2c: F0 00 00 8B 03 7D [19:39:29]Write i2c OK [19:39:29]MH_I2C_Read... [19:39:29]Read from MH i2c: F0 [19:39:29]MH_I2C_Read... [19:39:29]Read from MH i2c: F0 09 00 [19:39:29]MH_I2C_Read... [19:39:29]Read from MH i2c: F0 09 00 8B 03 00 72 5C 15 67 82 C9 CF 66 50 [19:39:29]GetLastDocTimeStamp 1729452847 [19:39:29]current date 1729453170 [19:39:29]FM_GetShiftState [19:39:29]SAM_PROTO_GetShiftState [19:39:29]wFMCommunicate request_size=4 [19:39:29]MH_SAM_APDU [19:39:29]CAPDU: 80 13 01 00 [19:39:29]Write to MH i2c: E2 08 00 8C 03 80 13 01 00 00 00 00 00 0C [19:39:29]Write i2c OK [19:39:29]MH_I2C_Read... [19:39:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:29]Read from MH i2c: E2 [19:39:29]MH_I2C_Read... [19:39:29]Read from MH i2c: E2 0E 00 [19:39:29]MH_I2C_Read... [19:39:29]Read from MH i2c: E2 0E 00 8C 03 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 26 [19:39:29]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [19:39:29]wFMCommunicate OK [19:39:29]SAM_PROTO_GetShiftState done [19:39:29]FM_GetShiftState done [19:39:29]opened in 1729383750 [19:39:29]opened+sec_in_day 1729470150 [19:39:29]quantity*price = 13045 [19:39:29]sum+1 = 13047 [19:39:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 130.00 Внесено: 130.00 СДАЧА: 0.00 НСП 1% : 1.15 НДС 12% : 13.85 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 478 20.10.2024 19:39 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227630 ФПД: 194884238030802 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T193930&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227630&fm=194884238030802&tin=02508201610067®Number=0000000000091685&sum=13000 [19:39:30]StoreToDocumentArchive [19:39:30]shift 533 fd 227630 [19:39:30]save to /storage/0533/doc_00227630 [19:39:30]save last doc name /storage/0533/doc_00227630 to /storage/kkm_last_doc_name [19:39:30]save OK [19:39:30]Clear old archive folders... [19:39:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:39:30]tlvbuf is 00C34D50 [19:39:30]SAM_PROTO_ClearQueue [19:39:30]wFMCommunicate request_size=4 [19:39:30]MH_SAM_APDU [19:39:30]CAPDU: 80 09 00 00 [19:39:30]Write to MH i2c: E2 08 00 99 03 80 09 00 00 00 00 00 00 0E [19:39:30]Write i2c OK [19:39:30]MH_I2C_Read... [19:39:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:39:30]Read from MH i2c: E2 [19:39:30]MH_I2C_Read... [19:39:30]Read from MH i2c: E2 03 00 [19:39:30]MH_I2C_Read... [19:39:30]Read from MH i2c: E2 03 00 99 03 00 90 00 10 [19:39:30]RAPDU: 90 00 [19:39:30]wFMCommunicate OK [19:39:30]SAM_PROTO_ClearQueue done [19:39:30]KKMCreateOFDPacket [19:39:30]OFDProtocolAddRootSTLVToBuf [19:39:30]FM_MakeSignedData [19:39:30]FM_MakeSignedData [19:39:30]SAM_PROTO_SignData [19:39:30]wFMCommunicate request_size=4 [19:39:30]MH_SAM_APDU [19:39:30]CAPDU: 80 0D 01 02 [19:39:30]Write to MH i2c: E2 08 00 9A 03 80 0D 01 02 00 00 00 00 16 [19:39:30]Write i2c OK [19:39:30]MH_I2C_Read... [19:39:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:39:30]Read from MH i2c: E2 [19:39:30]MH_I2C_Read... [19:39:30]Read from MH i2c: E2 03 00 [19:39:30]MH_I2C_Read... [19:39:30]Read from MH i2c: E2 03 00 9A 03 00 90 00 11 [19:39:30]RAPDU: 90 00 [19:39:30]wFMCommunicate OK [19:39:30]wFMCommunicate request_size=255 [19:39:30]MH_SAM_APDU [19:39:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 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 DE 01 00 00 F4 03 04 00 72 5C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2E 79 03 00 35 04 06 00 B1 [19:39:30]Write to MH i2c: E2 02 01 9B 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 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 DE 01 00 00 F4 03 04 00 72 5C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2E 79 03 00 35 04 06 00 B1 00 00 A1 [19:39:30]Write i2c OK [19:39:30]MH_I2C_Read... [19:39:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:30]Read from MH i2c: E2 [19:39:30]MH_I2C_Read... [19:39:30]Read from MH i2c: E2 03 00 [19:39:30]MH_I2C_Read... [19:39:30]Read from MH i2c: E2 03 00 9B 03 00 90 00 12 [19:39:30]RAPDU: 90 00 [19:39:30]wFMCommunicate OK [19:39:30]wFMCommunicate request_size=10 [19:39:30]MH_SAM_APDU [19:39:30]CAPDU: 80 0D 02 02 05 3F 05 C7 B7 D2 [19:39:30]Write to MH i2c: E2 0D 00 9C 03 80 0D 02 02 05 00 3F 05 C7 B7 D2 00 00 B7 [19:39:30]Write i2c OK [19:39:30]MH_I2C_Read... [19:39:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:30]Read from MH i2c: E2 [19:39:30]MH_I2C_Read... [19:39:30]Read from MH i2c: E2 03 00 [19:39:30]MH_I2C_Read... [19:39:30]Read from MH i2c: E2 03 00 9C 03 00 90 00 13 [19:39:30]RAPDU: 90 00 [19:39:30]wFMCommunicate OK [19:39:30]wFMCommunicate request_size=4 [19:39:30]MH_SAM_APDU [19:39:30]CAPDU: 80 0D 03 02 [19:39:30]Write to MH i2c: E2 08 00 9D 03 80 0D 03 02 00 00 00 00 1B [19:39:30]Write i2c OK [19:39:30]MH_I2C_Read... [19:39:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:39:30]Read from MH i2c: E2 [19:39:30]MH_I2C_Read... [19:39:30]Read from MH i2c: E2 0B 00 [19:39:30]MH_I2C_Read... [19:39:30]Read from MH i2c: E2 0B 00 9D 03 00 89 CD 81 70 6A 2D 47 A7 90 00 E8 [19:39:30]RAPDU: 89 CD 81 70 6A 2D 47 A7 90 00 [19:39:30]wFMCommunicate OK [19:39:30]SAM_PROTO_SignData done [19:39:30]FM_MakeSignedData done [19:39:30]CreateOFDProtocolMessage [19:39:30]wFMCommunicate request_size=4 [19:39:30]MH_SAM_APDU [19:39:30]CAPDU: 80 11 00 00 [19:39:30]Write to MH i2c: E2 08 00 9E 03 80 11 00 00 00 00 00 00 1B [19:39:30]Write i2c OK [19:39:30]MH_I2C_Read... [19:39:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:30]Read from MH i2c: E2 [19:39:30]MH_I2C_Read... [19:39:30]Read from MH i2c: E2 17 00 [19:39:30]MH_I2C_Read... [19:39:31]Read from MH i2c: E2 17 00 9E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 72 [19:39:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:39:31]wFMCommunicate OK [19:39:31]CreateOFDProtocolMessage done [19:39:31]OFDSenderStorePacket 227630 [19:39:31]StoreOFDPacket docnum=227630 [19:39:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 B1 E1 07 01 DD B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 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 DE 01 00 00 F4 03 04 00 72 5C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2E 79 03 00 35 04 06 00 B1 3F 05 C7 B7 D2 89 CD 81 70 6A 2D 47 A7 [19:39:31]CheckFolder [19:39:31]dirname=/storage/ofd_packets [19:39:31]CheckFolder done [19:39:31]ProducePacketName [19:39:31]name=ofd_packets/00227630 [19:39:31]NVStorageSaveData ofd_packets/00227630 [19:39:31]File name is /storage/ofd_packets/00227630 [19:39:31]Write 301 bytes [19:39:31]NVStorageSaveData done [19:39:31]OFDSenderStorePacket done [19:39:31]KKMCreateOFDPacket done [19:39:31]NVStorageSaveData kkm_last_timestamp [19:39:31]File name is /storage/kkm_last_timestamp [19:39:31]Write 4 bytes [19:39:31]NVStorageSaveData done [19:39:31]ExternCall_PrintAddStr [19:39:31]wPrintStart [19:39:31]Write to MH i2c: 01 00 00 9F 03 A2 [19:39:31]Write i2c OK [19:39:31]MH_I2C_Read... [19:39:31]Read from MH i2c: 01 [19:39:31]MH_I2C_Read... [19:39:31]Read from MH i2c: 01 07 00 [19:39:31]MH_I2C_Read... [19:39:31]Read from MH i2c: 01 07 00 9F 03 00 00 00 00 00 FF 0F B7 [19:39:31]RasterBufferAndPrint [19:39:31]line Счет N : (1)1963290 [19:39:31]line ИНН: 02508201610067 [19:39:31]line Контрольно-Кассовый Чек [19:39:31]line ПРОДАЖА [19:39:31]line ТРК (МРК, ГНК) : 33 [19:39:31]line Товар: 2710124130 [19:39:31]line Аи-92-К-5 [19:39:31]line 1.950 * 66.90 [19:39:31]line = 130.46 [19:39:31]line НДС 12% НСП 1% [19:39:31]line > о реализуемом товаре [19:39:31]line ОКРУГЛЕНИЕ: -0.46 [19:39:31]line ИТОГО: 130.00 [19:39:31]line Внесено: 130.00 [19:39:31]line СДАЧА: 0.00 [19:39:31]line НСП 1% : 1.15 [19:39:31]line НДС 12% : 13.85 [19:39:31]line Наличными: 130.00 [19:39:31]line Безнал.: 0.00 [19:39:31]line Место: АЗС № 133 "Партнер Нефть" [19:39:31]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [19:39:31]line СНО: Общий режим [19:39:31]line Чек 478 20.10.2024 19:39 [19:39:31]line Смена: 533 ФФД: 1.0 [19:39:31]line ЗНМ: 0300000091 [19:39:31]line РНМ: 0000000000091685 [19:39:31]line Версия ККМ: 001 [19:39:31]line ФМ: 0000000000871839 [19:39:31]line ФД: 227630 [19:39:31]line ФПД: 194884238030802 [19:39:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T193930&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227630&fm=194884238030802&tin=02508201610067®Number=0000000000091685&sum=13000 [19:39:31]written 0, free lines is 4095 [19:39:31]OFD Sender: Processing packet 227630 [packets to send 38, broken 37] [19:39:31]ProducePacketName [19:39:31]name=ofd_packets/00227630 [19:39:31]OFD Sender: To server: pG, [19:39:31]CommunicateWithHost lk.salyk.kg:30040 [19:39:31]ConnectInit lk.salyk.kg [19:39:31]Connected sock=7 [19: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 33 39 0F 01 00 00 B1 E1 07 01 DD B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 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 DE 01 00 00 F4 03 04 00 72 5C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2E 79 03 00 35 04 06 00 B1 3F 05 C7 B7 D2 89 CD 81 70 6A 2D 47 A7 [19: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 33 39 4F 00 00 00 A2 91 47 00 38 F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2E 79 03 00 F4 03 04 00 70 07 15 67 B6 04 01 00 00 FD 1B 41 CA 84 1F 0C CD [19:39:31]CommunicateWithHost err = 0 [19:39:31]CheckOFDResponse [19:39:31]1017 (14) - 77093643461234 [19:39:31]1041 (16) - 0000000000871839 [19:39:31]1040 (4) - 227630 [19:39:31]1012 (4) - 20.10.2024 13:36 [19:39:31]1206 (1) - 0 [19:39:31]OFD Sender: Remove packet 227630 [19:39:31]ProducePacketName [19:39:31]name=ofd_packets/00227630 [19:39:31]NVStorageDeleteData [19:39:31]Write to MH i2c: 01 00 00 C9 03 CC [19:39:31]Write i2c OK [19:39:31]MH_I2C_Read... [19:39:31]Read from MH i2c: 01 [19:39:31]MH_I2C_Read... [19:39:31]Read from MH i2c: 01 07 00 [19:39:31]MH_I2C_Read... [19:39:31]Read from MH i2c: 01 07 00 C9 03 00 00 00 00 00 A8 0C 87 [19:39:31]RasterBufferAndPrint [19:39:31]line [19:39:31]line [19:39:31]line [19:39:31]line [19:39:31]line [19:39:31]written 0, free lines is 3245 [19:39:31]process_action close_receipt done [19:39:31]requested_data is exist [19:39:31]produce_requested_data [19:39:31]requested_item fm.sn is exist - process it [19:39:31]wFMCommunicate request_size=4 [19:39:31]MH_SAM_APDU [19:39:31]CAPDU: 80 11 00 00 [19:39:31]Write to MH i2c: E2 08 00 D0 03 80 11 00 00 00 00 00 00 4D [19:39:31]Write i2c OK [19:39:31]MH_I2C_Read... [19:39:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:31]Read from MH i2c: E2 [19:39:31]MH_I2C_Read... [19:39:31]Read from MH i2c: E2 17 00 [19:39:31]MH_I2C_Read... [19:39:31]Read from MH i2c: E2 17 00 D0 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A4 [19:39:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:39:31]wFMCommunicate OK [19:39:31]requested_item fd.num is exist - process it [19:39:31]SAM_PROTO_GetFieldsCounters [19:39:31]wFMCommunicate request_size=4 [19:39:31]MH_SAM_APDU [19:39:31]CAPDU: 80 13 00 00 [19:39:31]Write to MH i2c: E2 08 00 D1 03 80 13 00 00 00 00 00 00 50 [19:39:31]Write i2c OK [19:39:31]MH_I2C_Read... [19:39:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:39:31]Read from MH i2c: E2 [19:39:31]MH_I2C_Read... [19:39:31]Read from MH i2c: E2 62 00 [19:39:31]MH_I2C_Read... [19:39:31]Read from MH i2c: E2 62 00 D1 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 2E 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 DE 01 00 00 5E 04 04 00 DE 01 00 00 57 04 04 00 DF 01 00 00 19 04 04 00 00 00 00 00 90 00 D7 [19:39:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 2E 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 DE 01 00 00 5E 04 04 00 DE 01 00 00 57 04 04 00 DF 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:39:31]wFMCommunicate OK [19:39:31]SAM_PROTO_GetFieldsCounters done [19:39:31]requested_item shift.num is exist - process it [19:39:31]requested_item shift.opened is exist - process it [19:39:31]req_shift_opened [19:39:31]FM_GetShiftState [19:39:31]SAM_PROTO_GetShiftState [19:39:31]wFMCommunicate request_size=4 [19:39:31]MH_SAM_APDU [19:39:31]CAPDU: 80 13 01 00 [19:39:31]Write to MH i2c: E2 08 00 D2 03 80 13 01 00 00 00 00 00 52 [19:39:31]Write i2c OK [19:39:31]MH_I2C_Read... [19:39:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:32]Read from MH i2c: E2 [19:39:32]MH_I2C_Read... [19:39:32]Read from MH i2c: E2 0E 00 [19:39:32]MH_I2C_Read... [19:39:32]Read from MH i2c: E2 0E 00 D2 03 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 6C [19:39:32]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [19:39:32]wFMCommunicate OK [19:39:32]SAM_PROTO_GetShiftState done [19:39:32]FM_GetShiftState done [19:39:32]req_shift_opened done [19:39:32]requested_item shift.open_date is exist - process it [19:39:32]req_shift_open_date [19:39:32]req_shift_open_date done [19:39:32]produce_requested_data done [19:39:32]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227630,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [19:39:32]process_action_free close_receipt [19:39:32]json_value_free [19:39:32]json_value_free done [19:39:32]process_json_proto returns [19:39:32]Send response to host [19:39:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227630,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [19:39:32]free response buf [19:39:32]execute_script done [19:39:32]execute_script returns [19:39:32]free content buf [19:39:32]Sock 10.Close socket [19:39:32]Sock 10.Thread stoped [19:39:32]OFD Sender: No OFD packet to send [19:39:37]OFD Sender: No OFD packet to send [19:39:42]OFD Sender: No OFD packet to send [19:39:47]OFD Sender: No OFD packet to send [19:39:52]OFD Sender: No OFD packet to send [19:39:57]OFD Sender: No OFD packet to send [19:40:02]OFD Sender: No OFD packet to send [19:40:07]OFD Sender: No OFD packet to send [19:40:10]accept exits with 9 [19:40:10]New connection [19:40:10]New thread 3066666340 created [19:40:10]Thread 3066809700 joined [19:40:10]Waiting for new connection... [19:40:10] Sock 9.Parse request [19:40:10]Sock 9.Check first char [19:40:10]Sock 9.First char is OK [19:40:10]request: POST /json_proto HTTP/1.0 [19:40:10]Method: POST [19:40:10]URL: /json_proto [19:40:10]Method is POST - this is cgi request [19:40:10]url: /json_proto [19:40:10]query_string will be loaded in cgi processing [19:40:10]execute_cgi json_proto POST (null) [19:40:10]execute_cgi path=json_proto method=POST [19:40:10]POST find Content-Length [19:40:10]Host: 172.17.44.195:8080 [19:40:10]Content-Length: 678 [19:40:10]Content-Type: application/json [19:40:10] [19:40:10]POST finish read [19:40:10]Found Content-Length = 678 [19:40:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963292", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:40:10]execute_script... [19:40:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963292", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:40:10]POST & json_proto [19:40:10]process_json_proto [19:40:10]json parsed OK: [19:40:10]protocol is kg_v1.0 [19:40:10]action value=close_receipt [19:40:10]process_action close_receipt [19:40:10]cmd_close_receipt [19:40:10]MH_GetDate [19:40:10]Write to MH i2c: F0 00 00 D3 03 C5 [19:40:10]Write i2c OK [19:40:10]MH_I2C_Read... [19:40:10]Read from MH i2c: F0 [19:40:10]MH_I2C_Read... [19:40:10]Read from MH i2c: F0 09 00 [19:40:10]MH_I2C_Read... [19:40:10]Read from MH i2c: F0 09 00 D3 03 00 9B 5C 15 67 82 C9 CF 66 C1 [19:40:10]GetLastDocTimeStamp 1729453170 [19:40:10]current date 1729453211 [19:40:10]FM_GetShiftState [19:40:10]SAM_PROTO_GetShiftState [19:40:10]wFMCommunicate request_size=4 [19:40:10]MH_SAM_APDU [19:40:10]CAPDU: 80 13 01 00 [19:40:10]Write to MH i2c: E2 08 00 D4 03 80 13 01 00 00 00 00 00 54 [19:40:10]Write i2c OK [19:40:10]MH_I2C_Read... [19:40:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:10]Read from MH i2c: E2 [19:40:10]MH_I2C_Read... [19:40:10]Read from MH i2c: E2 0E 00 [19:40:10]MH_I2C_Read... [19:40:10]Read from MH i2c: E2 0E 00 D4 03 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 6E [19:40:10]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [19:40:10]wFMCommunicate OK [19:40:10]SAM_PROTO_GetShiftState done [19:40:10]FM_GetShiftState done [19:40:10]opened in 1729383750 [19:40:10]opened+sec_in_day 1729470150 [19:40:10]quantity*price = 50010 [19:40:10]sum+1 = 50012 [19:40:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 479 20.10.2024 19:40 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227631 ФПД: 175466658264086 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T194011&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227631&fm=175466658264086&tin=02508201610067®Number=0000000000091685&sum=50000 [19:40:12]StoreToDocumentArchive [19:40:12]shift 533 fd 227631 [19:40:12]save to /storage/0533/doc_00227631 [19:40:12]save last doc name /storage/0533/doc_00227631 to /storage/kkm_last_doc_name [19:40:12]save OK [19:40:12]Clear old archive folders... [19:40:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:40:12]tlvbuf is 00C44FD0 [19:40:12]SAM_PROTO_ClearQueue [19:40:12]wFMCommunicate request_size=4 [19:40:12]MH_SAM_APDU [19:40:12]CAPDU: 80 09 00 00 [19:40:12]Write to MH i2c: E2 08 00 E1 03 80 09 00 00 00 00 00 00 56 [19:40:12]Write i2c OK [19:40:12]MH_I2C_Read... [19:40:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:40:12]Read from MH i2c: E2 [19:40:12]MH_I2C_Read... [19:40:12]Read from MH i2c: E2 03 00 [19:40:12]MH_I2C_Read... [19:40:12]Read from MH i2c: E2 03 00 E1 03 00 90 00 58 [19:40:12]RAPDU: 90 00 [19:40:12]wFMCommunicate OK [19:40:12]SAM_PROTO_ClearQueue done [19:40:12]KKMCreateOFDPacket [19:40:12]OFDProtocolAddRootSTLVToBuf [19:40:12]FM_MakeSignedData [19:40:12]FM_MakeSignedData [19:40:12]SAM_PROTO_SignData [19:40:12]wFMCommunicate request_size=4 [19:40:12]MH_SAM_APDU [19:40:12]CAPDU: 80 0D 01 02 [19:40:12]Write to MH i2c: E2 08 00 E2 03 80 0D 01 02 00 00 00 00 5E [19:40:12]Write i2c OK [19:40:12]MH_I2C_Read... [19:40:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:40:12]Read from MH i2c: E2 [19:40:12]MH_I2C_Read... [19:40:12]Read from MH i2c: E2 03 00 [19:40:12]MH_I2C_Read... [19:40:12]Read from MH i2c: E2 03 00 E2 03 00 90 00 59 [19:40:12]RAPDU: 90 00 [19:40:12]wFMCommunicate OK [19:40:12]wFMCommunicate request_size=255 [19:40:12]MH_SAM_APDU [19:40: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 01 00 00 F4 03 04 00 9B 5C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2F 79 03 00 35 04 06 00 9F [19:40:12]Write to MH i2c: E2 02 01 E3 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 01 00 00 F4 03 04 00 9B 5C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2F 79 03 00 35 04 06 00 9F 00 00 81 [19:40:12]Write i2c OK [19:40:12]MH_I2C_Read... [19:40:12]OFD Sender: No OFD packet to send [19:40:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:12]Read from MH i2c: E2 [19:40:12]MH_I2C_Read... [19:40:12]Read from MH i2c: E2 03 00 [19:40:12]MH_I2C_Read... [19:40:12]Read from MH i2c: E2 03 00 E3 03 00 90 00 5A [19:40:12]RAPDU: 90 00 [19:40:12]wFMCommunicate OK [19:40:12]wFMCommunicate request_size=10 [19:40:12]MH_SAM_APDU [19:40:12]CAPDU: 80 0D 02 02 05 96 03 D5 F4 16 [19:40:12]Write to MH i2c: E2 0D 00 E4 03 80 0D 02 02 05 00 96 03 D5 F4 16 00 00 E3 [19:40:12]Write i2c OK [19:40:12]MH_I2C_Read... [19:40:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:12]Read from MH i2c: E2 [19:40:12]MH_I2C_Read... [19:40:12]Read from MH i2c: E2 03 00 [19:40:12]MH_I2C_Read... [19:40:12]Read from MH i2c: E2 03 00 E4 03 00 90 00 5B [19:40:12]RAPDU: 90 00 [19:40:12]wFMCommunicate OK [19:40:12]wFMCommunicate request_size=4 [19:40:12]MH_SAM_APDU [19:40:12]CAPDU: 80 0D 03 02 [19:40:12]Write to MH i2c: E2 08 00 E5 03 80 0D 03 02 00 00 00 00 63 [19:40:12]Write i2c OK [19:40:12]MH_I2C_Read... [19:40:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:40:12]Read from MH i2c: E2 [19:40:12]MH_I2C_Read... [19:40:12]Read from MH i2c: E2 0B 00 [19:40:12]MH_I2C_Read... [19:40:12]Read from MH i2c: E2 0B 00 E5 03 00 53 F4 D3 D0 29 B1 57 7D 90 00 FC [19:40:12]RAPDU: 53 F4 D3 D0 29 B1 57 7D 90 00 [19:40:12]wFMCommunicate OK [19:40:12]SAM_PROTO_SignData done [19:40:12]FM_MakeSignedData done [19:40:12]CreateOFDProtocolMessage [19:40:12]wFMCommunicate request_size=4 [19:40:12]MH_SAM_APDU [19:40:12]CAPDU: 80 11 00 00 [19:40:12]Write to MH i2c: E2 08 00 E6 03 80 11 00 00 00 00 00 00 63 [19:40:12]Write i2c OK [19:40:12]MH_I2C_Read... [19:40:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:12]Read from MH i2c: E2 [19:40:12]MH_I2C_Read... [19:40:12]Read from MH i2c: E2 17 00 [19:40:12]MH_I2C_Read... [19:40:12]Read from MH i2c: E2 17 00 E6 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 BA [19:40:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:40:12]wFMCommunicate OK [19:40:12]CreateOFDProtocolMessage done [19:40:12]OFDSenderStorePacket 227631 [19:40:12]StoreOFDPacket docnum=227631 [19:40:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 70 DF 07 01 0A 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 01 00 00 F4 03 04 00 9B 5C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2F 79 03 00 35 04 06 00 9F 96 03 D5 F4 16 53 F4 D3 D0 29 B1 57 7D [19:40:12]CheckFolder [19:40:12]dirname=/storage/ofd_packets [19:40:12]CheckFolder done [19:40:12]ProducePacketName [19:40:12]name=ofd_packets/00227631 [19:40:12]NVStorageSaveData ofd_packets/00227631 [19:40:12]File name is /storage/ofd_packets/00227631 [19:40:12]Write 301 bytes [19:40:12]NVStorageSaveData done [19:40:12]OFDSenderStorePacket done [19:40:12]KKMCreateOFDPacket done [19:40:12]NVStorageSaveData kkm_last_timestamp [19:40:12]File name is /storage/kkm_last_timestamp [19:40:12]Write 4 bytes [19:40:12]NVStorageSaveData done [19:40:12]ExternCall_PrintAddStr [19:40:12]wPrintStart [19:40:12]Write to MH i2c: 01 00 00 E7 03 EA [19:40:12]Write i2c OK [19:40:12]MH_I2C_Read... [19:40:12]Read from MH i2c: 01 [19:40:12]MH_I2C_Read... [19:40:12]Read from MH i2c: 01 07 00 [19:40:12]MH_I2C_Read... [19:40:12]Read from MH i2c: 01 07 00 E7 03 00 00 00 00 00 FF 0F FF [19:40:12]RasterBufferAndPrint [19:40:12]line Счет N : (1)1963292 [19:40:12]line ИНН: 02508201610067 [19:40:12]line Контрольно-Кассовый Чек [19:40:12]line ПРОДАЖА [19:40:12]line ТРК (МРК, ГНК) : 54 [19:40:12]line Товар: 2710124500 [19:40:12]line Аи-95-К-5 [19:40:12]line 6.740 * 74.20 [19:40:12]line = 500.11 [19:40:12]line НДС 12% НСП 1% [19:40:12]line > о реализуемом товаре [19:40:12]line ОКРУГЛЕНИЕ: -0.11 [19:40:12]line ИТОГО: 500.00 [19:40:12]line Внесено: 500.00 [19:40:12]line СДАЧА: 0.00 [19:40:12]line НСП 1% : 4.43 [19:40:12]line НДС 12% : 53.11 [19:40:12]line Наличными: 500.00 [19:40:12]line Безнал.: 0.00 [19:40:12]line Место: АЗС № 133 "Партнер Нефть" [19:40:12]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [19:40:12]line СНО: Общий режим [19:40:12]line Чек 479 20.10.2024 19:40 [19:40:12]line Смена: 533 ФФД: 1.0 [19:40:12]line ЗНМ: 0300000091 [19:40:12]line РНМ: 0000000000091685 [19:40:12]line Версия ККМ: 001 [19:40:12]line ФМ: 0000000000871839 [19:40:12]line ФД: 227631 [19:40:12]line ФПД: 175466658264086 [19:40:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T194011&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227631&fm=175466658264086&tin=02508201610067®Number=0000000000091685&sum=50000 [19:40:12]OFD Sender: Processing packet 227631 [packets to send 38, broken 37] [19:40:12]ProducePacketName [19:40:12]name=ofd_packets/00227631 [19:40:12]OFD Sender: To server: pG, [19:40:12]CommunicateWithHost lk.salyk.kg:30040 [19:40:12]ConnectInit lk.salyk.kg [19:40:12]written 0, free lines is 4095 [19:40:12]Connected sock=10 [19:40:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 70 DF 07 01 0A 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 01 00 00 F4 03 04 00 9B 5C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 2F 79 03 00 35 04 06 00 9F 96 03 D5 F4 16 53 F4 D3 D0 29 B1 57 7D [19:40: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 33 39 4F 00 00 00 D9 61 47 00 14 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 33 39 10 04 04 00 2F 79 03 00 F4 03 04 00 99 07 15 67 B6 04 01 00 00 D2 0F CB E8 10 EF 63 4B [19:40:13]CommunicateWithHost err = 0 [19:40:13]CheckOFDResponse [19:40:13]1017 (14) - 77093643461234 [19:40:13]1041 (16) - 0000000000871839 [19:40:13]1040 (4) - 227631 [19:40:13]1012 (4) - 20.10.2024 13:37 [19:40:13]1206 (1) - 0 [19:40:13]OFD Sender: Remove packet 227631 [19:40:13]ProducePacketName [19:40:13]name=ofd_packets/00227631 [19:40:13]NVStorageDeleteData [19:40:13]Write to MH i2c: 01 00 00 11 04 15 [19:40:13]Write i2c OK [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: 01 [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: 01 07 00 [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: 01 07 00 11 04 00 00 00 00 00 A9 0C D1 [19:40:13]RasterBufferAndPrint [19:40:13]line [19:40:13]line [19:40:13]line [19:40:13]line [19:40:13]line [19:40:13]written 0, free lines is 3245 [19:40:13]process_action close_receipt done [19:40:13]requested_data is exist [19:40:13]produce_requested_data [19:40:13]requested_item fm.sn is exist - process it [19:40:13]wFMCommunicate request_size=4 [19:40:13]MH_SAM_APDU [19:40:13]CAPDU: 80 11 00 00 [19:40:13]Write to MH i2c: E2 08 00 18 04 80 11 00 00 00 00 00 00 96 [19:40:13]Write i2c OK [19:40:13]MH_I2C_Read... [19:40:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:13]Read from MH i2c: E2 [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: E2 17 00 [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: E2 17 00 18 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 ED [19:40:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:40:13]wFMCommunicate OK [19:40:13]requested_item fd.num is exist - process it [19:40:13]SAM_PROTO_GetFieldsCounters [19:40:13]wFMCommunicate request_size=4 [19:40:13]MH_SAM_APDU [19:40:13]CAPDU: 80 13 00 00 [19:40:13]Write to MH i2c: E2 08 00 19 04 80 13 00 00 00 00 00 00 99 [19:40:13]Write i2c OK [19:40:13]MH_I2C_Read... [19:40:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:40:13]Read from MH i2c: E2 [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: E2 62 00 [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: E2 62 00 19 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 2F 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 DF 01 00 00 5E 04 04 00 DF 01 00 00 57 04 04 00 E0 01 00 00 19 04 04 00 00 00 00 00 90 00 24 [19:40: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 2F 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 DF 01 00 00 5E 04 04 00 DF 01 00 00 57 04 04 00 E0 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:40:13]wFMCommunicate OK [19:40:13]SAM_PROTO_GetFieldsCounters done [19:40:13]requested_item shift.num is exist - process it [19:40:13]requested_item shift.opened is exist - process it [19:40:13]req_shift_opened [19:40:13]FM_GetShiftState [19:40:13]SAM_PROTO_GetShiftState [19:40:13]wFMCommunicate request_size=4 [19:40:13]MH_SAM_APDU [19:40:13]CAPDU: 80 13 01 00 [19:40:13]Write to MH i2c: E2 08 00 1A 04 80 13 01 00 00 00 00 00 9B [19:40:13]Write i2c OK [19:40:13]MH_I2C_Read... [19:40:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:13]Read from MH i2c: E2 [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: E2 0E 00 [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: E2 0E 00 1A 04 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 B5 [19:40:13]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [19:40:13]wFMCommunicate OK [19:40:13]SAM_PROTO_GetShiftState done [19:40:13]FM_GetShiftState done [19:40:13]req_shift_opened done [19:40:13]requested_item shift.open_date is exist - process it [19:40:13]req_shift_open_date [19:40:13]req_shift_open_date done [19:40:13]produce_requested_data done [19:40:13]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227631,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [19:40:13]process_action_free close_receipt [19:40:13]json_value_free [19:40:13]json_value_free done [19:40:13]process_json_proto returns [19:40:13]Send response to host [19:40:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227631,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [19:40:13]free response buf [19:40:13]execute_script done [19:40:13]execute_script returns [19:40:13]free content buf [19:40:13]Sock 9.Close socket [19:40:13]Sock 9.Thread stoped [19:40:13]OFD Sender: No OFD packet to send [19:40:15]int [19:40:15]Write to MH i2c: 01 00 00 1B 04 1F [19:40:15]*** FLAG_PRN_PAP1 set [19:40:15]Write i2c OK [19:40:15]MH_I2C_Read... [19:40:15]Read from MH i2c: 01 [19:40:15]MH_I2C_Read... [19:40:15]Read from MH i2c: 01 07 00 [19:40:15]MH_I2C_Read... [19:40:15]Read from MH i2c: 01 07 00 1B 04 00 01 00 00 00 FF 0F 35 [19:40:15]state=0 [19:40:15]No paper [19:40:15]int [19:40:15]Write to MH i2c: 01 00 00 1C 04 20 [19:40:15]*** FLAG_PRN_PAP2 set [19:40:15]Write i2c OK [19:40:15]MH_I2C_Read... [19:40:15]Read from MH i2c: 01 [19:40:15]MH_I2C_Read... [19:40:15]Read from MH i2c: 01 07 00 [19:40:15]MH_I2C_Read... [19:40:15]Read from MH i2c: 01 07 00 1C 04 00 03 00 00 00 FF 0F 38 [19:40:15]state=0 [19:40:15]No paper [19:40:15]Cover opened [19:40:18]int [19:40:18]Write to MH i2c: 01 00 00 1D 04 21 [19:40:18]*** FLAG_PRN_PAP1 reset [19:40:18]*** FLAG_PRN_PAP2 reset [19:40:18]Write i2c OK [19:40:18]MH_I2C_Read... [19:40:18]Read from MH i2c: 01 [19:40:18]MH_I2C_Read... [19:40:18]Read from MH i2c: 01 07 00 [19:40:18]MH_I2C_Read... [19:40:18]Read from MH i2c: 01 07 00 1D 04 00 00 00 00 00 FF 0F 36 [19:40:18]state=3 [19:40:18]Cover closed [19:40:18]OFD Sender: No OFD packet to send [19:40:23]OFD Sender: No OFD packet to send [19:40:28]OFD Sender: No OFD packet to send [19:40:33]OFD Sender: No OFD packet to send [19:40:38]OFD Sender: No OFD packet to send [19:40:43]OFD Sender: No OFD packet to send [19:40:48]OFD Sender: No OFD packet to send [19:40:53]OFD Sender: No OFD packet to send [19:40:58]OFD Sender: No OFD packet to send [19:41:03]OFD Sender: No OFD packet to send [19:41:07]accept exits with 7 [19:41:07]New connection [19:41:07]New thread 3066809700 created [19:41:07]Thread 3066666340 joined [19:41:07]Waiting for new connection... [19:41:07] Sock 7.Parse request [19:41:07]Sock 7.Check first char [19:41:07]Sock 7.First char is OK [19:41:07]request: POST /json_proto HTTP/1.0 [19:41:07]Method: POST [19:41:07]URL: /json_proto [19:41:07]Method is POST - this is cgi request [19:41:07]url: /json_proto [19:41:07]query_string will be loaded in cgi processing [19:41:07]execute_cgi json_proto POST (null) [19:41:07]execute_cgi path=json_proto method=POST [19:41:07]POST find Content-Length [19:41:07]Host: 172.17.44.195:8080 [19:41:07]Content-Length: 678 [19:41:07]Content-Type: application/json [19:41:07] [19:41:07]POST finish read [19:41:07]Found Content-Length = 678 [19:41:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963294", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:41:07]execute_script... [19:41: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)1963294", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:41:07]POST & json_proto [19:41:07]process_json_proto [19:41:07]json parsed OK: [19:41:07]protocol is kg_v1.0 [19:41:07]action value=close_receipt [19:41:07]process_action close_receipt [19:41:07]cmd_close_receipt [19:41:07]MH_GetDate [19:41:07]Write to MH i2c: F0 00 00 1E 04 11 [19:41:07]Write i2c OK [19:41:07]MH_I2C_Read... [19:41:07]Read from MH i2c: F0 [19:41:07]MH_I2C_Read... [19:41:07]Read from MH i2c: F0 09 00 [19:41:07]MH_I2C_Read... [19:41:07]Read from MH i2c: F0 09 00 1E 04 00 D4 5C 15 67 82 C9 CF 66 46 [19:41:07]GetLastDocTimeStamp 1729453211 [19:41:07]current date 1729453268 [19:41:07]FM_GetShiftState [19:41:07]SAM_PROTO_GetShiftState [19:41:07]wFMCommunicate request_size=4 [19:41:07]MH_SAM_APDU [19:41:07]CAPDU: 80 13 01 00 [19:41:07]Write to MH i2c: E2 08 00 1F 04 80 13 01 00 00 00 00 00 A0 [19:41:07]Write i2c OK [19:41:07]MH_I2C_Read... [19:41:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:41:08]Read from MH i2c: E2 [19:41:08]MH_I2C_Read... [19:41:08]Read from MH i2c: E2 0E 00 [19:41:08]MH_I2C_Read... [19:41:08]Read from MH i2c: E2 0E 00 1F 04 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 BA [19:41:08]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [19:41:08]wFMCommunicate OK [19:41:08]SAM_PROTO_GetShiftState done [19:41:08]FM_GetShiftState done [19:41:08]opened in 1729383750 [19:41:08]opened+sec_in_day 1729470150 [19:41:08]quantity*price = 60009 [19:41:08]sum+1 = 60010 [19:41:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 480 20.10.2024 19:41 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227632 ФПД: 271728936386163 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T194108&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227632&fm=271728936386163&tin=02508201610067®Number=0000000000091685&sum=60000 [19:41:09]StoreToDocumentArchive [19:41:09]shift 533 fd 227632 [19:41:09]save to /storage/0533/doc_00227632 [19:41:09]save last doc name /storage/0533/doc_00227632 to /storage/kkm_last_doc_name [19:41:09]save OK [19:41:09]Clear old archive folders... [19:41:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:41:09]tlvbuf is 00C21A30 [19:41:09]SAM_PROTO_ClearQueue [19:41:09]wFMCommunicate request_size=4 [19:41:09]MH_SAM_APDU [19:41:09]CAPDU: 80 09 00 00 [19:41:09]Write to MH i2c: E2 08 00 2C 04 80 09 00 00 00 00 00 00 A2 [19:41:09]Write i2c OK [19:41:09]MH_I2C_Read... [19:41:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:41:09]Read from MH i2c: E2 [19:41:09]MH_I2C_Read... [19:41:09]Read from MH i2c: E2 03 00 [19:41:09]MH_I2C_Read... [19:41:09]Read from MH i2c: E2 03 00 2C 04 00 90 00 A4 [19:41:09]RAPDU: 90 00 [19:41:09]wFMCommunicate OK [19:41:09]SAM_PROTO_ClearQueue done [19:41:09]KKMCreateOFDPacket [19:41:09]OFDProtocolAddRootSTLVToBuf [19:41:09]FM_MakeSignedData [19:41:09]FM_MakeSignedData [19:41:09]SAM_PROTO_SignData [19:41:09]wFMCommunicate request_size=4 [19:41:09]MH_SAM_APDU [19:41:09]CAPDU: 80 0D 01 02 [19:41:09]Write to MH i2c: E2 08 00 2D 04 80 0D 01 02 00 00 00 00 AA [19:41:09]Write i2c OK [19:41:09]MH_I2C_Read... [19:41:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:41:09]Read from MH i2c: E2 [19:41:09]MH_I2C_Read... [19:41:09]Read from MH i2c: E2 03 00 [19:41:09]MH_I2C_Read... [19:41:09]Read from MH i2c: E2 03 00 2D 04 00 90 00 A5 [19:41:09]RAPDU: 90 00 [19:41:09]wFMCommunicate OK [19:41:09]wFMCommunicate request_size=255 [19:41:09]MH_SAM_APDU [19:41:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 01 00 00 F4 03 04 00 D4 5C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 30 79 03 00 35 04 06 00 F7 [19:41:09]Write to MH i2c: E2 02 01 2E 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 01 00 00 F4 03 04 00 D4 5C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 30 79 03 00 35 04 06 00 F7 00 00 65 [19:41:09]Write i2c OK [19:41:09]MH_I2C_Read... [19:41:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:41:09]Read from MH i2c: E2 [19:41:09]MH_I2C_Read... [19:41:09]Read from MH i2c: E2 03 00 [19:41:09]MH_I2C_Read... [19:41:09]Read from MH i2c: E2 03 00 2E 04 00 90 00 A6 [19:41:09]RAPDU: 90 00 [19:41:09]wFMCommunicate OK [19:41:09]wFMCommunicate request_size=10 [19:41:09]MH_SAM_APDU [19:41:09]CAPDU: 80 0D 02 02 05 22 D2 BA 7E 73 [19:41:09]Write to MH i2c: E2 0D 00 2F 04 80 0D 02 02 05 00 22 D2 BA 7E 73 00 00 56 [19:41:09]Write i2c OK [19:41:09]MH_I2C_Read... [19:41:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:41:09]Read from MH i2c: E2 [19:41:09]MH_I2C_Read... [19:41:09]Read from MH i2c: E2 03 00 [19:41:09]MH_I2C_Read... [19:41:09]Read from MH i2c: E2 03 00 2F 04 00 90 00 A7 [19:41:09]RAPDU: 90 00 [19:41:09]wFMCommunicate OK [19:41:09]wFMCommunicate request_size=4 [19:41:09]MH_SAM_APDU [19:41:09]CAPDU: 80 0D 03 02 [19:41:09]Write to MH i2c: E2 08 00 30 04 80 0D 03 02 00 00 00 00 AF [19:41:09]Write i2c OK [19:41:09]MH_I2C_Read... [19:41:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:41:09]Read from MH i2c: E2 [19:41:09]MH_I2C_Read... [19:41:09]Read from MH i2c: E2 0B 00 [19:41:09]MH_I2C_Read... [19:41:09]Read from MH i2c: E2 0B 00 30 04 00 63 FB DC B9 26 FE C2 F7 90 00 80 [19:41:09]RAPDU: 63 FB DC B9 26 FE C2 F7 90 00 [19:41:09]wFMCommunicate OK [19:41:09]SAM_PROTO_SignData done [19:41:09]FM_MakeSignedData done [19:41:09]CreateOFDProtocolMessage [19:41:09]wFMCommunicate request_size=4 [19:41:09]MH_SAM_APDU [19:41:09]CAPDU: 80 11 00 00 [19:41:09]Write to MH i2c: E2 08 00 31 04 80 11 00 00 00 00 00 00 AF [19:41:09]Write i2c OK [19:41:09]MH_I2C_Read... [19:41:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:41:09]Read from MH i2c: E2 [19:41:09]MH_I2C_Read... [19:41:09]Read from MH i2c: E2 17 00 [19:41:09]MH_I2C_Read... [19:41:09]Read from MH i2c: E2 17 00 31 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 06 [19:41:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:41:09]wFMCommunicate OK [19:41:09]CreateOFDProtocolMessage done [19:41:09]OFDSenderStorePacket 227632 [19:41:09]StoreOFDPacket docnum=227632 [19:41:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 20 61 07 01 8C BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 01 00 00 F4 03 04 00 D4 5C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 30 79 03 00 35 04 06 00 F7 22 D2 BA 7E 73 63 FB DC B9 26 FE C2 F7 [19:41:09]CheckFolder [19:41:09]dirname=/storage/ofd_packets [19:41:09]CheckFolder done [19:41:09]ProducePacketName [19:41:09]name=ofd_packets/00227632 [19:41:09]NVStorageSaveData ofd_packets/00227632 [19:41:09]File name is /storage/ofd_packets/00227632 [19:41:09]Write 301 bytes [19:41:09]NVStorageSaveData done [19:41:09]OFDSenderStorePacket done [19:41:09]KKMCreateOFDPacket done [19:41:09]NVStorageSaveData kkm_last_timestamp [19:41:09]File name is /storage/kkm_last_timestamp [19:41:09]Write 4 bytes [19:41:09]NVStorageSaveData done [19:41:09]ExternCall_PrintAddStr [19:41:09]wPrintStart [19:41:09]Write to MH i2c: 01 00 00 32 04 36 [19:41:09]Write i2c OK [19:41:09]MH_I2C_Read... [19:41:09]Read from MH i2c: 01 [19:41:09]MH_I2C_Read... [19:41:09]Read from MH i2c: 01 07 00 [19:41:09]MH_I2C_Read... [19:41:09]Read from MH i2c: 01 07 00 32 04 00 00 00 00 00 FF 0F 4B [19:41:09]RasterBufferAndPrint [19:41:09]line Счет N : (1)1963294 [19:41:09]line ИНН: 02508201610067 [19:41:09]line Контрольно-Кассовый Чек [19:41:09]line ПРОДАЖА [19:41:09]line ТРК (МРК, ГНК) : 43 [19:41:09]line Товар: 2710124130 [19:41:09]line Аи-92-К-5 [19:41:09]line 8.970 * 66.90 [19:41:09]line = 600.09 [19:41:09]line НДС 12% НСП 1% [19:41:09]line > о реализуемом товаре [19:41:09]line ОКРУГЛЕНИЕ: -0.09 [19:41:09]line ИТОГО: 600.00 [19:41:09]line Внесено: 600.00 [19:41:09]line СДАЧА: 0.00 [19:41:09]line НСП 1% : 5.31 [19:41:09]line НДС 12% : 63.73 [19:41:09]line Наличными: 600.00 [19:41:09]line Безнал.: 0.00 [19:41:09]line Место: АЗС № 133 "Партнер Нефть" [19:41:09]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [19:41:09]line СНО: Общий режим [19:41:09]line Чек 480 20.10.2024 19:41 [19:41:09]line Смена: 533 ФФД: 1.0 [19:41:09]line ЗНМ: 0300000091 [19:41:09]line РНМ: 0000000000091685 [19:41:09]line Версия ККМ: 001 [19:41:09]line ФМ: 0000000000871839 [19:41:09]line ФД: 227632 [19:41:09]line ФПД: 271728936386163 [19:41:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T194108&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227632&fm=271728936386163&tin=02508201610067®Number=0000000000091685&sum=60000 [19:41:09]written 0, free lines is 4095 [19:41:09]OFD Sender: Processing packet 227632 [packets to send 38, broken 37] [19:41:09]ProducePacketName [19:41:10]name=ofd_packets/00227632 [19:41:10]OFD Sender: To server: pG, [19:41:10]CommunicateWithHost lk.salyk.kg:30040 [19:41:10]ConnectInit lk.salyk.kg [19:41:10]Connected sock=10 [19:41: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 33 39 0F 01 00 00 20 61 07 01 8C BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 01 00 00 F4 03 04 00 D4 5C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 30 79 03 00 35 04 06 00 F7 22 D2 BA 7E 73 63 FB DC B9 26 FE C2 F7 [19:41: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 33 39 4F 00 00 00 BD AA 47 00 70 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 33 39 10 04 04 00 30 79 03 00 F4 03 04 00 D2 07 15 67 B6 04 01 00 00 11 A8 11 98 E0 52 DB A0 [19:41:10]CommunicateWithHost err = 0 [19:41:10]CheckOFDResponse [19:41:10]1017 (14) - 77093643461234 [19:41:10]1041 (16) - 0000000000871839 [19:41:10]1040 (4) - 227632 [19:41:10]1012 (4) - 20.10.2024 13:38 [19:41:10]1206 (1) - 0 [19:41:10]OFD Sender: Remove packet 227632 [19:41:10]ProducePacketName [19:41:10]name=ofd_packets/00227632 [19:41:10]NVStorageDeleteData [19:41:10]Write to MH i2c: 01 00 00 5C 04 60 [19:41:10]Write i2c OK [19:41:10]MH_I2C_Read... [19:41:10]Read from MH i2c: 01 [19:41:10]MH_I2C_Read... [19:41:10]Read from MH i2c: 01 07 00 [19:41:10]MH_I2C_Read... [19:41:10]Read from MH i2c: 01 07 00 5C 04 00 00 00 00 00 B5 0C 28 [19:41:10]RasterBufferAndPrint [19:41:10]line [19:41:10]line [19:41:10]line [19:41:10]line [19:41:10]line [19:41:10]written 0, free lines is 3256 [19:41:10]process_action close_receipt done [19:41:10]requested_data is exist [19:41:10]produce_requested_data [19:41:10]requested_item fm.sn is exist - process it [19:41:10]wFMCommunicate request_size=4 [19:41:10]MH_SAM_APDU [19:41:10]CAPDU: 80 11 00 00 [19:41:10]Write to MH i2c: E2 08 00 63 04 80 11 00 00 00 00 00 00 E1 [19:41:10]Write i2c OK [19:41:10]MH_I2C_Read... [19:41:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:41:10]Read from MH i2c: E2 [19:41:10]MH_I2C_Read... [19:41:10]Read from MH i2c: E2 17 00 [19:41:10]MH_I2C_Read... [19:41:10]Read from MH i2c: E2 17 00 63 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 38 [19:41:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:41:10]wFMCommunicate OK [19:41:10]requested_item fd.num is exist - process it [19:41:10]SAM_PROTO_GetFieldsCounters [19:41:10]wFMCommunicate request_size=4 [19:41:10]MH_SAM_APDU [19:41:10]CAPDU: 80 13 00 00 [19:41:10]Write to MH i2c: E2 08 00 64 04 80 13 00 00 00 00 00 00 E4 [19:41:10]Write i2c OK [19:41:10]MH_I2C_Read... [19:41:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:41:10]Read from MH i2c: E2 [19:41:10]MH_I2C_Read... [19:41:10]Read from MH i2c: E2 62 00 [19:41:10]MH_I2C_Read... [19:41:10]Read from MH i2c: E2 62 00 64 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 30 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 E0 01 00 00 5E 04 04 00 E0 01 00 00 57 04 04 00 E1 01 00 00 19 04 04 00 00 00 00 00 90 00 73 [19: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 30 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 E0 01 00 00 5E 04 04 00 E0 01 00 00 57 04 04 00 E1 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:41:10]wFMCommunicate OK [19:41:10]SAM_PROTO_GetFieldsCounters done [19:41:10]requested_item shift.num is exist - process it [19:41:10]requested_item shift.opened is exist - process it [19:41:10]req_shift_opened [19:41:10]FM_GetShiftState [19:41:10]SAM_PROTO_GetShiftState [19:41:10]wFMCommunicate request_size=4 [19:41:10]MH_SAM_APDU [19:41:10]CAPDU: 80 13 01 00 [19:41:10]Write to MH i2c: E2 08 00 65 04 80 13 01 00 00 00 00 00 E6 [19:41:10]Write i2c OK [19:41:10]MH_I2C_Read... [19:41:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:41:10]Read from MH i2c: E2 [19:41:10]MH_I2C_Read... [19:41:10]Read from MH i2c: E2 0E 00 [19:41:10]MH_I2C_Read... [19:41:10]Read from MH i2c: E2 0E 00 65 04 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 00 [19:41:10]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [19:41:10]wFMCommunicate OK [19:41:10]SAM_PROTO_GetShiftState done [19:41:10]FM_GetShiftState done [19:41:10]req_shift_opened done [19:41:10]requested_item shift.open_date is exist - process it [19:41:10]req_shift_open_date [19:41:10]req_shift_open_date done [19:41:10]produce_requested_data done [19:41:10]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227632,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [19:41:10]process_action_free close_receipt [19:41:10]json_value_free [19:41:10]json_value_free done [19:41:10]process_json_proto returns [19:41:10]Send response to host [19:41:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227632,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [19:41:10]free response buf [19:41:10]execute_script done [19:41:10]execute_script returns [19:41:10]free content buf [19:41:10]Sock 7.Close socket [19:41:10]Sock 7.Thread stoped [19:41:10]OFD Sender: No OFD packet to send [19:41:15]OFD Sender: No OFD packet to send [19:41:20]OFD Sender: No OFD packet to send [19:41:25]OFD Sender: No OFD packet to send [19:41:30]OFD Sender: No OFD packet to send [19:41:35]OFD Sender: No OFD packet to send [19:41:38]accept exits with 9 [19:41:38]New connection [19:41:38]New thread 3066666340 created [19:41:38]Thread 3066809700 joined [19:41:38]Waiting for new connection... [19:41:38] Sock 9.Parse request [19:41:38]Sock 9.Check first char [19:41:38]Sock 9.First char is OK [19:41:38]request: POST /json_proto HTTP/1.0 [19:41:38]Method: POST [19:41:38]URL: /json_proto [19:41:38]Method is POST - this is cgi request [19:41:38]url: /json_proto [19:41:38]query_string will be loaded in cgi processing [19:41:38]execute_cgi json_proto POST (null) [19:41:38]execute_cgi path=json_proto method=POST [19:41:38]POST find Content-Length [19:41:38]Host: 172.17.44.195:8080 [19:41:38]Content-Length: 683 [19:41:38]Content-Type: application/json [19:41:38] [19:41:38]POST finish read [19:41:38]Found Content-Length = 683 [19:41:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963295", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:41:38]execute_script... [19:41: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)1963295", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:41:38]POST & json_proto [19:41:38]process_json_proto [19:41:38]json parsed OK: [19:41:38]protocol is kg_v1.0 [19:41:38]action value=close_receipt [19:41:38]process_action close_receipt [19:41:38]cmd_close_receipt [19:41:38]MH_GetDate [19:41:38]Write to MH i2c: F0 00 00 66 04 59 [19:41:38]Write i2c OK [19:41:38]MH_I2C_Read... [19:41:38]Read from MH i2c: F0 [19:41:38]MH_I2C_Read... [19:41:38]Read from MH i2c: F0 09 00 [19:41:38]MH_I2C_Read... [19:41:38]Read from MH i2c: F0 09 00 66 04 00 F3 5C 15 67 82 C9 CF 66 AD [19:41:38]GetLastDocTimeStamp 1729453268 [19:41:38]current date 1729453299 [19:41:38]FM_GetShiftState [19:41:38]SAM_PROTO_GetShiftState [19:41:38]wFMCommunicate request_size=4 [19:41:38]MH_SAM_APDU [19:41:38]CAPDU: 80 13 01 00 [19:41:38]Write to MH i2c: E2 08 00 67 04 80 13 01 00 00 00 00 00 E8 [19:41:38]Write i2c OK [19:41:38]MH_I2C_Read... [19:41:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:41:38]Read from MH i2c: E2 [19:41:38]MH_I2C_Read... [19:41:38]Read from MH i2c: E2 0E 00 [19:41:38]MH_I2C_Read... [19:41:38]Read from MH i2c: E2 0E 00 67 04 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 02 [19:41:38]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [19:41:38]wFMCommunicate OK [19:41:38]SAM_PROTO_GetShiftState done [19:41:38]FM_GetShiftState done [19:41:38]opened in 1729383750 [19:41:38]opened+sec_in_day 1729470150 [19:41:38]quantity*price = 100021 [19:41:38]sum+1 = 100023 [19:41:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 481 20.10.2024 19:41 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227633 ФПД: 178055171829375 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T194139&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227633&fm=178055171829375&tin=02508201610067®Number=0000000000091685&sum=100000 [19:41:39]StoreToDocumentArchive [19:41:39]shift 533 fd 227633 [19:41:39]save to /storage/0533/doc_00227633 [19:41:39]save last doc name /storage/0533/doc_00227633 to /storage/kkm_last_doc_name [19:41:39]save OK [19:41:39]Clear old archive folders... [19:41:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:41:39]tlvbuf is 00C16E20 [19:41:39]SAM_PROTO_ClearQueue [19:41:39]wFMCommunicate request_size=4 [19:41:39]MH_SAM_APDU [19:41:39]CAPDU: 80 09 00 00 [19:41:39]Write to MH i2c: E2 08 00 74 04 80 09 00 00 00 00 00 00 EA [19:41:40]Write i2c OK [19:41:40]MH_I2C_Read... [19:41:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:41:40]Read from MH i2c: E2 [19:41:40]MH_I2C_Read... [19:41:40]Read from MH i2c: E2 03 00 [19:41:40]MH_I2C_Read... [19:41:40]Read from MH i2c: E2 03 00 74 04 00 90 00 EC [19:41:40]RAPDU: 90 00 [19:41:40]wFMCommunicate OK [19:41:40]SAM_PROTO_ClearQueue done [19:41:40]KKMCreateOFDPacket [19:41:40]OFDProtocolAddRootSTLVToBuf [19:41:40]FM_MakeSignedData [19:41:40]FM_MakeSignedData [19:41:40]SAM_PROTO_SignData [19:41:40]wFMCommunicate request_size=4 [19:41:40]MH_SAM_APDU [19:41:40]CAPDU: 80 0D 01 02 [19:41:40]Write to MH i2c: E2 08 00 75 04 80 0D 01 02 00 00 00 00 F2 [19:41:40]Write i2c OK [19:41:40]MH_I2C_Read... [19:41:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:41:40]Read from MH i2c: E2 [19:41:40]MH_I2C_Read... [19:41:40]Read from MH i2c: E2 03 00 [19:41:40]MH_I2C_Read... [19:41:40]Read from MH i2c: E2 03 00 75 04 00 90 00 ED [19:41:40]RAPDU: 90 00 [19:41:40]wFMCommunicate OK [19:41:40]wFMCommunicate request_size=255 [19:41:40]MH_SAM_APDU [19:41: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 01 00 00 F4 03 04 00 F3 5C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 31 79 03 00 35 04 06 00 A1 [19:41:40]Write to MH i2c: E2 02 01 76 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 01 00 00 F4 03 04 00 F3 5C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 31 79 03 00 35 04 06 00 A1 00 00 B8 [19:41:40]Write i2c OK [19:41:40]MH_I2C_Read... [19:41:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:41:40]Read from MH i2c: E2 [19:41:40]MH_I2C_Read... [19:41:40]Read from MH i2c: E2 03 00 [19:41:40]MH_I2C_Read... [19:41:40]Read from MH i2c: E2 03 00 76 04 00 90 00 EE [19:41:40]RAPDU: 90 00 [19:41:40]wFMCommunicate OK [19:41:40]wFMCommunicate request_size=10 [19:41:40]MH_SAM_APDU [19:41:40]CAPDU: 80 0D 02 02 05 F0 B3 44 6E 7F [19:41:40]Write to MH i2c: E2 0D 00 77 04 80 0D 02 02 05 00 F0 B3 44 6E 7F 00 00 D3 [19:41:40]Write i2c OK [19:41:40]MH_I2C_Read... [19:41:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:41:40]Read from MH i2c: E2 [19:41:40]MH_I2C_Read... [19:41:40]Read from MH i2c: E2 03 00 [19:41:40]MH_I2C_Read... [19:41:40]Read from MH i2c: E2 03 00 77 04 00 90 00 EF [19:41:40]RAPDU: 90 00 [19:41:40]wFMCommunicate OK [19:41:40]wFMCommunicate request_size=4 [19:41:40]MH_SAM_APDU [19:41:40]CAPDU: 80 0D 03 02 [19:41:40]Write to MH i2c: E2 08 00 78 04 80 0D 03 02 00 00 00 00 F7 [19:41:40]Write i2c OK [19:41:40]MH_I2C_Read... [19:41:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:41:40]Read from MH i2c: E2 [19:41:40]MH_I2C_Read... [19:41:40]Read from MH i2c: E2 0B 00 [19:41:40]MH_I2C_Read... [19:41:40]Read from MH i2c: E2 0B 00 78 04 00 13 76 26 72 13 BA BA D2 90 00 72 [19:41:40]RAPDU: 13 76 26 72 13 BA BA D2 90 00 [19:41:40]wFMCommunicate OK [19:41:40]SAM_PROTO_SignData done [19:41:40]FM_MakeSignedData done [19:41:40]CreateOFDProtocolMessage [19:41:40]wFMCommunicate request_size=4 [19:41:40]MH_SAM_APDU [19:41:40]CAPDU: 80 11 00 00 [19:41:40]Write to MH i2c: E2 08 00 79 04 80 11 00 00 00 00 00 00 F7 [19:41:40]Write i2c OK [19:41:40]MH_I2C_Read... [19:41:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:41:40]Read from MH i2c: E2 [19:41:40]MH_I2C_Read... [19:41:40]Read from MH i2c: E2 17 00 [19:41:40]MH_I2C_Read... [19:41:40]Read from MH i2c: E2 17 00 79 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 4E [19:41:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:41:40]wFMCommunicate OK [19:41:40]CreateOFDProtocolMessage done [19:41:40]OFDSenderStorePacket 227633 [19:41:40]StoreOFDPacket docnum=227633 [19:41:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 63 C0 07 01 50 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 01 00 00 F4 03 04 00 F3 5C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 31 79 03 00 35 04 06 00 A1 F0 B3 44 6E 7F 13 76 26 72 13 BA BA D2 [19:41:40]CheckFolder [19:41:40]dirname=/storage/ofd_packets [19:41:40]CheckFolder done [19:41:40]ProducePacketName [19:41:40]name=ofd_packets/00227633 [19:41:40]NVStorageSaveData ofd_packets/00227633 [19:41:40]File name is /storage/ofd_packets/00227633 [19:41:40]Write 301 bytes [19:41:40]NVStorageSaveData done [19:41:40]OFDSenderStorePacket done [19:41:40]KKMCreateOFDPacket done [19:41:40]NVStorageSaveData kkm_last_timestamp [19:41:40]File name is /storage/kkm_last_timestamp [19:41:40]Write 4 bytes [19:41:40]NVStorageSaveData done [19:41:40]ExternCall_PrintAddStr [19:41:40]wPrintStart [19:41:40]Write to MH i2c: 01 00 00 7A 04 7E [19:41:40]Write i2c OK [19:41:40]MH_I2C_Read... [19:41:40]Read from MH i2c: 01 [19:41:40]MH_I2C_Read... [19:41:40]Read from MH i2c: 01 07 00 [19:41:40]MH_I2C_Read... [19:41:40]Read from MH i2c: 01 07 00 7A 04 00 00 00 00 00 FF 0F 93 [19:41:40]RasterBufferAndPrint [19:41:40]line Счет N : (1)1963295 [19:41:40]line ИНН: 02508201610067 [19:41:40]line Контрольно-Кассовый Чек [19:41:40]line ПРОДАЖА [19:41:40]line ТРК (МРК, ГНК) : 64 [19:41:40]line Товар: 2710124500 [19:41:40]line Аи-95-К-5 [19:41:40]line 13.480 * 74.20 [19:41:40]line = 1000.22 [19:41:40]line НДС 12% НСП 1% [19:41:40]line > о реализуемом товаре [19:41:40]line ОКРУГЛЕНИЕ: -0.22 [19:41:40]line ИТОГО: 1000.00 [19:41:40]line Внесено: 1000.00 [19:41:40]line СДАЧА: 0.00 [19:41:40]line НСП 1% : 8.85 [19:41:40]line НДС 12% : 106.22 [19:41:40]line Наличными: 1000.00 [19:41:40]line Безнал.: 0.00 [19:41:40]line Место: АЗС № 133 "Партнер Нефть" [19:41:40]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [19:41:40]line СНО: Общий режим [19:41:40]line Чек 481 20.10.2024 19:41 [19:41:40]line Смена: 533 ФФД: 1.0 [19:41:40]line ЗНМ: 0300000091 [19:41:40]line РНМ: 0000000000091685 [19:41:40]line Версия ККМ: 001 [19:41:40]line ФМ: 0000000000871839 [19:41:40]line ФД: 227633 [19:41:40]line ФПД: 178055171829375 [19:41:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T194139&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227633&fm=178055171829375&tin=02508201610067®Number=0000000000091685&sum=100000 [19:41:40]OFD Sender: Processing packet 227633 [packets to send 38, broken 37] [19:41:40]ProducePacketName [19:41:40]name=ofd_packets/00227633 [19:41:40]OFD Sender: To server: pG, [19:41:40]CommunicateWithHost lk.salyk.kg:30040 [19:41:40]ConnectInit lk.salyk.kg [19:41:40]written 0, free lines is 4095 [19:41:40]Connected sock=10 [19:41: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 33 39 0F 01 00 00 63 C0 07 01 50 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 01 00 00 F4 03 04 00 F3 5C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 31 79 03 00 35 04 06 00 A1 F0 B3 44 6E 7F 13 76 26 72 13 BA BA D2 [19:41: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 33 39 4F 00 00 00 B5 4A 47 00 F3 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 33 39 10 04 04 00 31 79 03 00 F4 03 04 00 F1 07 15 67 B6 04 01 00 00 51 DB 32 18 A2 5E FA BB [19:41:41]CommunicateWithHost err = 0 [19:41:41]CheckOFDResponse [19:41:41]1017 (14) - 77093643461234 [19:41:41]1041 (16) - 0000000000871839 [19:41:41]1040 (4) - 227633 [19:41:41]1012 (4) - 20.10.2024 13:38 [19:41:41]1206 (1) - 0 [19:41:41]OFD Sender: Remove packet 227633 [19:41:41]ProducePacketName [19:41:41]name=ofd_packets/00227633 [19:41:41]NVStorageDeleteData [19:41:41]Write to MH i2c: 01 00 00 A4 04 A8 [19:41:41]Write i2c OK [19:41:41]MH_I2C_Read... [19:41:41]Read from MH i2c: 01 [19:41:41]MH_I2C_Read... [19:41:41]Read from MH i2c: 01 07 00 [19:41:41]MH_I2C_Read... [19:41:41]Read from MH i2c: 01 07 00 A4 04 00 00 00 00 00 AD 0C 68 [19:41:41]RasterBufferAndPrint [19:41:41]line [19:41:41]line [19:41:41]line [19:41:41]line [19:41:41]line [19:41:41]written 0, free lines is 3248 [19:41:41]process_action close_receipt done [19:41:41]requested_data is exist [19:41:41]produce_requested_data [19:41:41]requested_item fm.sn is exist - process it [19:41:41]wFMCommunicate request_size=4 [19:41:41]MH_SAM_APDU [19:41:41]CAPDU: 80 11 00 00 [19:41:41]Write to MH i2c: E2 08 00 AB 04 80 11 00 00 00 00 00 00 29 [19:41:41]Write i2c OK [19:41:41]MH_I2C_Read... [19:41:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:41:41]Read from MH i2c: E2 [19:41:41]MH_I2C_Read... [19:41:41]Read from MH i2c: E2 17 00 [19:41:41]MH_I2C_Read... [19:41:41]Read from MH i2c: E2 17 00 AB 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 80 [19:41:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:41:41]wFMCommunicate OK [19:41:41]requested_item fd.num is exist - process it [19:41:41]SAM_PROTO_GetFieldsCounters [19:41:41]wFMCommunicate request_size=4 [19:41:41]MH_SAM_APDU [19:41:41]CAPDU: 80 13 00 00 [19:41:41]Write to MH i2c: E2 08 00 AC 04 80 13 00 00 00 00 00 00 2C [19:41:41]Write i2c OK [19:41:41]MH_I2C_Read... [19:41:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:41:41]Read from MH i2c: E2 [19:41:41]MH_I2C_Read... [19:41:41]Read from MH i2c: E2 62 00 [19:41:41]MH_I2C_Read... [19:41:41]Read from MH i2c: E2 62 00 AC 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 31 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 E1 01 00 00 5E 04 04 00 E1 01 00 00 57 04 04 00 E2 01 00 00 19 04 04 00 00 00 00 00 90 00 BF [19:41: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 31 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 E1 01 00 00 5E 04 04 00 E1 01 00 00 57 04 04 00 E2 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:41:41]wFMCommunicate OK [19:41:41]SAM_PROTO_GetFieldsCounters done [19:41:41]requested_item shift.num is exist - process it [19:41:41]requested_item shift.opened is exist - process it [19:41:41]req_shift_opened [19:41:41]FM_GetShiftState [19:41:41]SAM_PROTO_GetShiftState [19:41:41]wFMCommunicate request_size=4 [19:41:41]MH_SAM_APDU [19:41:41]CAPDU: 80 13 01 00 [19:41:41]Write to MH i2c: E2 08 00 AD 04 80 13 01 00 00 00 00 00 2E [19:41:41]Write i2c OK [19:41:41]MH_I2C_Read... [19:41:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:41:41]Read from MH i2c: E2 [19:41:41]MH_I2C_Read... [19:41:41]Read from MH i2c: E2 0E 00 [19:41:41]MH_I2C_Read... [19:41:41]Read from MH i2c: E2 0E 00 AD 04 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 48 [19:41:41]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [19:41:41]wFMCommunicate OK [19:41:41]SAM_PROTO_GetShiftState done [19:41:41]FM_GetShiftState done [19:41:41]req_shift_opened done [19:41:41]requested_item shift.open_date is exist - process it [19:41:41]req_shift_open_date [19:41:41]req_shift_open_date done [19:41:41]produce_requested_data done [19:41:41]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227633,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [19:41:41]process_action_free close_receipt [19:41:41]json_value_free [19:41:41]json_value_free done [19:41:41]process_json_proto returns [19:41:41]Send response to host [19:41:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227633,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [19:41:41]free response buf [19:41:41]execute_script done [19:41:41]execute_script returns [19:41:41]free content buf [19:41:41]Sock 9.Close socket [19:41:41]Sock 9.Thread stoped [19:41:41]OFD Sender: No OFD packet to send [19:41:46]OFD Sender: No OFD packet to send [19:41:51]OFD Sender: No OFD packet to send [19:41:56]OFD Sender: No OFD packet to send [19:42:01]OFD Sender: No OFD packet to send [19:42:06]OFD Sender: No OFD packet to send [19:42:11]OFD Sender: No OFD packet to send [19:42:16]OFD Sender: No OFD packet to send [19:42:21]OFD Sender: No OFD packet to send [19:42:26]OFD Sender: No OFD packet to send [19:42:31]OFD Sender: No OFD packet to send [19:42:36]OFD Sender: No OFD packet to send [19:42:41]OFD Sender: No OFD packet to send [19:42:46]OFD Sender: No OFD packet to send [19:42:51]OFD Sender: No OFD packet to send [19:42:56]OFD Sender: No OFD packet to send [19:43:01]OFD Sender: No OFD packet to send [19:43:06]OFD Sender: No OFD packet to send [19:43:11]OFD Sender: No OFD packet to send [19:43:16]OFD Sender: No OFD packet to send [19:43:21]OFD Sender: No OFD packet to send [19:43:26]OFD Sender: No OFD packet to send [19:43:31]OFD Sender: No OFD packet to send [19:43:36]OFD Sender: No OFD packet to send [19:43:41]OFD Sender: No OFD packet to send [19:43:46]OFD Sender: No OFD packet to send [19:43:51]OFD Sender: No OFD packet to send [19:43:56]OFD Sender: No OFD packet to send [19:44:01]OFD Sender: No OFD packet to send [19:44:06]OFD Sender: No OFD packet to send [19:44:11]OFD Sender: No OFD packet to send [19:44:16]OFD Sender: No OFD packet to send [19:44:21]OFD Sender: No OFD packet to send [19:44:26]OFD Sender: No OFD packet to send [19:44:31]OFD Sender: No OFD packet to send [19:44:36]OFD Sender: No OFD packet to send [19:44:41]OFD Sender: No OFD packet to send [19:44:45]accept exits with 7 [19:44:45]New connection [19:44:45]New thread 3066809700 created [19:44:45]Thread 3066666340 joined [19:44:45]Waiting for new connection... [19:44:45] Sock 7.Parse request [19:44:45]Sock 7.Check first char [19:44:45]Sock 7.First char is OK [19:44:45]request: POST /json_proto HTTP/1.0 [19:44:45]Method: POST [19:44:45]URL: /json_proto [19:44:45]Method is POST - this is cgi request [19:44:45]url: /json_proto [19:44:45]query_string will be loaded in cgi processing [19:44:45]execute_cgi json_proto POST (null) [19:44:45]execute_cgi path=json_proto method=POST [19:44:45]POST find Content-Length [19:44:45]Host: 172.17.44.195:8080 [19:44:45]Content-Length: 767 [19:44:45]Content-Type: application/json [19:44:45] [19:44:45]POST finish read [19:44:45]Found Content-Length = 767 [19:44:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963296", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:44:45]execute_script... [19:44: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)1963296", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:44:45]POST & json_proto [19:44:45]process_json_proto [19:44:45]json parsed OK: [19:44:45]protocol is kg_v1.0 [19:44:45]action value=close_receipt [19:44:45]process_action close_receipt [19:44:45]cmd_close_receipt [19:44:45]MH_GetDate [19:44:45]Write to MH i2c: F0 00 00 AE 04 A1 [19:44:45]Write i2c OK [19:44:45]MH_I2C_Read... [19:44:45]Read from MH i2c: F0 [19:44:45]MH_I2C_Read... [19:44:45]Read from MH i2c: F0 09 00 [19:44:45]MH_I2C_Read... [19:44:45]Read from MH i2c: F0 09 00 AE 04 00 AE 5D 15 67 82 C9 CF 66 B1 [19:44:45]GetLastDocTimeStamp 1729453299 [19:44:45]current date 1729453486 [19:44:45]FM_GetShiftState [19:44:45]SAM_PROTO_GetShiftState [19:44:45]wFMCommunicate request_size=4 [19:44:45]MH_SAM_APDU [19:44:45]CAPDU: 80 13 01 00 [19:44:45]Write to MH i2c: E2 08 00 AF 04 80 13 01 00 00 00 00 00 30 [19:44:45]Write i2c OK [19:44:45]MH_I2C_Read... [19:44:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:44:45]Read from MH i2c: E2 [19:44:45]MH_I2C_Read... [19:44:45]Read from MH i2c: E2 0E 00 [19:44:45]MH_I2C_Read... [19:44:45]Read from MH i2c: E2 0E 00 AF 04 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 4A [19:44:45]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [19:44:45]wFMCommunicate OK [19:44:45]SAM_PROTO_GetShiftState done [19:44:45]FM_GetShiftState done [19:44:45]opened in 1729383750 [19:44:45]opened+sec_in_day 1729470150 [19:44:45]quantity*price = 30038 [19:44:45]sum+1 = 30039 [19:44:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 482 20.10.2024 19:44 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 227634 ФПД: 271637498793315 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T194446&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227634&fm=271637498793315&tin=02508201610067®Number=0000000000091685&sum=30038 [19:44:46]StoreToDocumentArchive [19:44:46]shift 533 fd 227634 [19:44:46]save to /storage/0533/doc_00227634 [19:44:46]save last doc name /storage/0533/doc_00227634 to /storage/kkm_last_doc_name [19:44:46]save OK [19:44:46]Clear old archive folders... [19:44:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:44:46]tlvbuf is 00C9AE80 [19:44:46]SAM_PROTO_ClearQueue [19:44:46]wFMCommunicate request_size=4 [19:44:46]MH_SAM_APDU [19:44:46]CAPDU: 80 09 00 00 [19:44:46]Write to MH i2c: E2 08 00 BC 04 80 09 00 00 00 00 00 00 32 [19:44:46]Write i2c OK [19:44:46]MH_I2C_Read... [19:44:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:44:46]Read from MH i2c: E2 [19:44:46]MH_I2C_Read... [19:44:46]Read from MH i2c: E2 03 00 [19:44:46]MH_I2C_Read... [19:44:46]Read from MH i2c: E2 03 00 BC 04 00 90 00 34 [19:44:46]RAPDU: 90 00 [19:44:46]wFMCommunicate OK [19:44:46]SAM_PROTO_ClearQueue done [19:44:46]KKMCreateOFDPacket [19:44:46]OFDProtocolAddRootSTLVToBuf [19:44:46]FM_MakeSignedData [19:44:46]FM_MakeSignedData [19:44:46]SAM_PROTO_SignData [19:44:46]wFMCommunicate request_size=4 [19:44:46]MH_SAM_APDU [19:44:46]CAPDU: 80 0D 01 02 [19:44:46]Write to MH i2c: E2 08 00 BD 04 80 0D 01 02 00 00 00 00 3A [19:44:46]Write i2c OK [19:44:46]MH_I2C_Read... [19:44:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:44:46]Read from MH i2c: E2 [19:44:46]MH_I2C_Read... [19:44:46]Read from MH i2c: E2 03 00 [19:44:46]MH_I2C_Read... [19:44:46]Read from MH i2c: E2 03 00 BD 04 00 90 00 35 [19:44:46]RAPDU: 90 00 [19:44:46]wFMCommunicate OK [19:44:46]wFMCommunicate request_size=255 [19:44:46]MH_SAM_APDU [19:44:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 01 00 00 F4 03 04 00 AE 5D 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 32 79 03 00 35 04 06 00 F7 [19:44:46]Write to MH i2c: E2 02 01 BE 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 01 00 00 F4 03 04 00 AE 5D 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 32 79 03 00 35 04 06 00 F7 00 00 37 [19:44:46]Write i2c OK [19:44:46]MH_I2C_Read... [19:44:46]OFD Sender: No OFD packet to send [19:44:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:44:47]Read from MH i2c: E2 [19:44:47]MH_I2C_Read... [19:44:47]Read from MH i2c: E2 03 00 [19:44:47]MH_I2C_Read... [19:44:47]Read from MH i2c: E2 03 00 BE 04 00 90 00 36 [19:44:47]RAPDU: 90 00 [19:44:47]wFMCommunicate OK [19:44:47]wFMCommunicate request_size=10 [19:44:47]MH_SAM_APDU [19:44:47]CAPDU: 80 0D 02 02 05 0D 88 9F 8D 63 [19:44:47]Write to MH i2c: E2 0D 00 BF 04 80 0D 02 02 05 00 0D 88 9F 8D 63 00 00 6B [19:44:47]Write i2c OK [19:44:47]MH_I2C_Read... [19:44:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:44:47]Read from MH i2c: E2 [19:44:47]MH_I2C_Read... [19:44:47]Read from MH i2c: E2 03 00 [19:44:47]MH_I2C_Read... [19:44:47]Read from MH i2c: E2 03 00 BF 04 00 90 00 37 [19:44:47]RAPDU: 90 00 [19:44:47]wFMCommunicate OK [19:44:47]wFMCommunicate request_size=4 [19:44:47]MH_SAM_APDU [19:44:47]CAPDU: 80 0D 03 02 [19:44:47]Write to MH i2c: E2 08 00 C0 04 80 0D 03 02 00 00 00 00 3F [19:44:47]Write i2c OK [19:44:47]MH_I2C_Read... [19:44:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:44:47]Read from MH i2c: E2 [19:44:47]MH_I2C_Read... [19:44:47]Read from MH i2c: E2 0B 00 [19:44:47]MH_I2C_Read... [19:44:47]Read from MH i2c: E2 0B 00 C0 04 00 17 B7 80 36 65 6A A4 D2 90 00 09 [19:44:47]RAPDU: 17 B7 80 36 65 6A A4 D2 90 00 [19:44:47]wFMCommunicate OK [19:44:47]SAM_PROTO_SignData done [19:44:47]FM_MakeSignedData done [19:44:47]CreateOFDProtocolMessage [19:44:47]wFMCommunicate request_size=4 [19:44:47]MH_SAM_APDU [19:44:47]CAPDU: 80 11 00 00 [19:44:47]Write to MH i2c: E2 08 00 C1 04 80 11 00 00 00 00 00 00 3F [19:44:47]Write i2c OK [19:44:47]MH_I2C_Read... [19:44:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:44:47]Read from MH i2c: E2 [19:44:47]MH_I2C_Read... [19:44:47]Read from MH i2c: E2 17 00 [19:44:47]MH_I2C_Read... [19:44:47]Read from MH i2c: E2 17 00 C1 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 96 [19:44:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:44:47]wFMCommunicate OK [19:44:47]CreateOFDProtocolMessage done [19:44:47]OFDSenderStorePacket 227634 [19:44:47]StoreOFDPacket docnum=227634 [19:44:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 33 27 07 01 1A 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 01 00 00 F4 03 04 00 AE 5D 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 32 79 03 00 35 04 06 00 F7 0D 88 9F 8D 63 17 B7 80 36 65 6A A4 D2 [19:44:47]CheckFolder [19:44:47]dirname=/storage/ofd_packets [19:44:47]CheckFolder done [19:44:47]ProducePacketName [19:44:47]name=ofd_packets/00227634 [19:44:47]NVStorageSaveData ofd_packets/00227634 [19:44:47]File name is /storage/ofd_packets/00227634 [19:44:47]Write 301 bytes [19:44:47]NVStorageSaveData done [19:44:47]OFDSenderStorePacket done [19:44:47]KKMCreateOFDPacket done [19:44:47]NVStorageSaveData kkm_last_timestamp [19:44:47]File name is /storage/kkm_last_timestamp [19:44:47]Write 4 bytes [19:44:47]NVStorageSaveData done [19:44:47]ExternCall_PrintAddStr [19:44:47]wPrintStart [19:44:47]Write to MH i2c: 01 00 00 C2 04 C6 [19:44:47]Write i2c OK [19:44:47]MH_I2C_Read... [19:44:47]Read from MH i2c: 01 [19:44:47]MH_I2C_Read... [19:44:47]Read from MH i2c: 01 07 00 [19:44:47]MH_I2C_Read... [19:44:47]Read from MH i2c: 01 07 00 C2 04 00 00 00 00 00 FF 0F DB [19:44:47]RasterBufferAndPrint [19:44:47]line Счет N : (1)1963296 [19:44:47]line ИНН: 02508201610067 [19:44:47]line Контрольно-Кассовый Чек [19:44:47]line ПРОДАЖА [19:44:47]line ТРК (МРК, ГНК) : 43 [19:44:47]line Товар: 2710124130 [19:44:47]line Аи-92-К-5 [19:44:47]line 4.490 * 66.90 [19:44:47]line = 300.38 [19:44:47]line НДС 12% НСП 1% [19:44:47]line > о реализуемом товаре [19:44:47]line ИТОГО: 300.38 [19:44:47]line НСП 1% : 2.66 [19:44:47]line НДС 12% : 31.90 [19:44:47]line Наличными: 0.00 [19:44:47]line Безнал.: 300.38 [19:44:47]line Место: АЗС № 133 "Партнер Нефть" [19:44:47]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [19:44:47]line СНО: Общий режим [19:44:47]line Чек 482 20.10.2024 19:44 [19:44:47]line Смена: 533 ФФД: 1.0 [19:44:47]line ЗНМ: 0300000091 [19:44:47]line РНМ: 0000000000091685 [19:44:47]line Версия ККМ: 001 [19:44:47]line Платежная система: Mbank [19:44:47]line ФМ: 0000000000871839 [19:44:47]line ФД: 227634 [19:44:47]line ФПД: 271637498793315 [19:44:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T194446&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227634&fm=271637498793315&tin=02508201610067®Number=0000000000091685&sum=30038 [19:44:47]OFD Sender: Processing packet 227634 [packets to send 38, broken 37] [19:44:47]ProducePacketName [19:44:47]name=ofd_packets/00227634 [19:44:47]OFD Sender: To server: pG, [19:44:47]CommunicateWithHost lk.salyk.kg:30040 [19:44:47]ConnectInit lk.salyk.kg [19:44:47]written 0, free lines is 4095 [19:44:47]Connected sock=10 [19:44: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 33 39 0F 01 00 00 33 27 07 01 1A 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 01 00 00 F4 03 04 00 AE 5D 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 32 79 03 00 35 04 06 00 F7 0D 88 9F 8D 63 17 B7 80 36 65 6A A4 D2 [19:44: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 33 39 4F 00 00 00 48 4B 47 00 77 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 33 39 10 04 04 00 32 79 03 00 F4 03 04 00 AC 08 15 67 B6 04 01 00 00 78 E3 52 A4 E3 B0 6B 65 [19:44:47]CommunicateWithHost err = 0 [19:44:47]CheckOFDResponse [19:44:47]1017 (14) - 77093643461234 [19:44:47]1041 (16) - 0000000000871839 [19:44:47]1040 (4) - 227634 [19:44:47]1012 (4) - 20.10.2024 13:42 [19:44:47]1206 (1) - 0 [19:44:47]OFD Sender: Remove packet 227634 [19:44:47]ProducePacketName [19:44:47]name=ofd_packets/00227634 [19:44:47]NVStorageDeleteData [19:44:47]Write to MH i2c: 01 00 00 EA 04 EE [19:44:47]Write i2c OK [19:44:47]MH_I2C_Read... [19:44:47]Read from MH i2c: 01 [19:44:47]MH_I2C_Read... [19:44:47]Read from MH i2c: 01 07 00 [19:44:47]MH_I2C_Read... [19:44:47]Read from MH i2c: 01 07 00 EA 04 00 00 00 00 00 DD 0C DE [19:44:47]RasterBufferAndPrint [19:44:47]line [19:44:47]line [19:44:47]line [19:44:47]line [19:44:47]line [19:44:47]written 0, free lines is 3298 [19:44:47]process_action close_receipt done [19:44:47]requested_data is exist [19:44:47]produce_requested_data [19:44:47]requested_item fm.sn is exist - process it [19:44:47]wFMCommunicate request_size=4 [19:44:47]MH_SAM_APDU [19:44:47]CAPDU: 80 11 00 00 [19:44:47]Write to MH i2c: E2 08 00 F1 04 80 11 00 00 00 00 00 00 6F [19:44:47]Write i2c OK [19:44:47]MH_I2C_Read... [19:44:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:44:48]Read from MH i2c: E2 [19:44:48]MH_I2C_Read... [19:44:48]Read from MH i2c: E2 17 00 [19:44:48]MH_I2C_Read... [19:44:48]Read from MH i2c: E2 17 00 F1 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C6 [19:44:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:44:48]wFMCommunicate OK [19:44:48]requested_item fd.num is exist - process it [19:44:48]SAM_PROTO_GetFieldsCounters [19:44:48]wFMCommunicate request_size=4 [19:44:48]MH_SAM_APDU [19:44:48]CAPDU: 80 13 00 00 [19:44:48]Write to MH i2c: E2 08 00 F2 04 80 13 00 00 00 00 00 00 72 [19:44:48]Write i2c OK [19:44:48]MH_I2C_Read... [19:44:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:44:48]Read from MH i2c: E2 [19:44:48]MH_I2C_Read... [19:44:48]Read from MH i2c: E2 62 00 [19:44:48]MH_I2C_Read... [19:44:48]Read from MH i2c: E2 62 00 F2 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 32 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 E2 01 00 00 5E 04 04 00 E2 01 00 00 57 04 04 00 E3 01 00 00 19 04 04 00 00 00 00 00 90 00 09 [19:44: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 32 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 E2 01 00 00 5E 04 04 00 E2 01 00 00 57 04 04 00 E3 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:44:48]wFMCommunicate OK [19:44:48]SAM_PROTO_GetFieldsCounters done [19:44:48]requested_item shift.num is exist - process it [19:44:48]requested_item shift.opened is exist - process it [19:44:48]req_shift_opened [19:44:48]FM_GetShiftState [19:44:48]SAM_PROTO_GetShiftState [19:44:48]wFMCommunicate request_size=4 [19:44:48]MH_SAM_APDU [19:44:48]CAPDU: 80 13 01 00 [19:44:48]Write to MH i2c: E2 08 00 F3 04 80 13 01 00 00 00 00 00 74 [19:44:48]Write i2c OK [19:44:48]MH_I2C_Read... [19:44:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:44:48]Read from MH i2c: E2 [19:44:48]MH_I2C_Read... [19:44:48]Read from MH i2c: E2 0E 00 [19:44:48]MH_I2C_Read... [19:44:48]Read from MH i2c: E2 0E 00 F3 04 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 8E [19:44:48]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [19:44:48]wFMCommunicate OK [19:44:48]SAM_PROTO_GetShiftState done [19:44:48]FM_GetShiftState done [19:44:48]req_shift_opened done [19:44:48]requested_item shift.open_date is exist - process it [19:44:48]req_shift_open_date [19:44:48]req_shift_open_date done [19:44:48]produce_requested_data done [19:44:48]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227634,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [19:44:48]process_action_free close_receipt [19:44:48]json_value_free [19:44:48]json_value_free done [19:44:48]process_json_proto returns [19:44:48]Send response to host [19:44:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227634,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [19:44:48]free response buf [19:44:48]execute_script done [19:44:48]execute_script returns [19:44:48]free content buf [19:44:48]Sock 7.Close socket [19:44:48]Sock 7.Thread stoped [19:44:48]OFD Sender: No OFD packet to send [19:44:53]OFD Sender: No OFD packet to send [19:44:58]OFD Sender: No OFD packet to send [19:45:03]OFD Sender: No OFD packet to send [19:45:08]OFD Sender: No OFD packet to send [19:45:13]OFD Sender: No OFD packet to send [19:45:18]OFD Sender: No OFD packet to send [19:45:23]OFD Sender: No OFD packet to send [19:45:28]OFD Sender: No OFD packet to send [19:45:33]OFD Sender: No OFD packet to send [19:45:38]OFD Sender: No OFD packet to send [19:45:43]OFD Sender: No OFD packet to send [19:45:48]OFD Sender: No OFD packet to send [19:45:53]OFD Sender: No OFD packet to send [19:45:58]OFD Sender: No OFD packet to send [19:46:03]OFD Sender: No OFD packet to send [19:46:08]OFD Sender: No OFD packet to send [19:46:13]OFD Sender: No OFD packet to send [19:46:18]OFD Sender: No OFD packet to send [19:46:23]OFD Sender: No OFD packet to send [19:46:28]OFD Sender: No OFD packet to send [19:46:33]OFD Sender: No OFD packet to send [19:46:38]OFD Sender: No OFD packet to send [19:46:43]OFD Sender: No OFD packet to send [19:46:48]OFD Sender: No OFD packet to send [19:46:53]OFD Sender: No OFD packet to send [19:46:58]OFD Sender: No OFD packet to send [19:47:03]OFD Sender: No OFD packet to send [19:47:07]accept exits with 9 [19:47:07]New connection [19:47:07]New thread 3066666340 created [19:47:07]Thread 3066809700 joined [19:47:07]Waiting for new connection... [19:47:07] Sock 9.Parse request [19:47:07]Sock 9.Check first char [19:47:07]Sock 9.First char is OK [19:47:07]request: POST /json_proto HTTP/1.0 [19:47:07]Method: POST [19:47:07]URL: /json_proto [19:47:07]Method is POST - this is cgi request [19:47:07]url: /json_proto [19:47:07]query_string will be loaded in cgi processing [19:47:07]execute_cgi json_proto POST (null) [19:47:07]execute_cgi path=json_proto method=POST [19:47:07]POST find Content-Length [19:47:07]Host: 172.17.44.195:8080 [19:47:07]Content-Length: 621 [19:47:07]Content-Type: application/json [19:47:07] [19:47:07]POST finish read [19:47:07]Found Content-Length = 621 [19:47:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963297", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:47:07]execute_script... [19:47: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)1963297", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:47:07]POST & json_proto [19:47:07]process_json_proto [19:47:07]json parsed OK: [19:47:07]protocol is kg_v1.0 [19:47:07]action value=close_receipt [19:47:07]process_action close_receipt [19:47:07]cmd_close_receipt [19:47:07]MH_GetDate [19:47:07]Write to MH i2c: F0 00 00 F4 04 E7 [19:47:07]Write i2c OK [19:47:07]MH_I2C_Read... [19:47:07]Read from MH i2c: F0 [19:47:07]MH_I2C_Read... [19:47:07]Read from MH i2c: F0 09 00 [19:47:07]MH_I2C_Read... [19:47:07]Read from MH i2c: F0 09 00 F4 04 00 3C 5E 15 67 82 C9 CF 66 86 [19:47:07]GetLastDocTimeStamp 1729453486 [19:47:07]current date 1729453628 [19:47:07]FM_GetShiftState [19:47:07]SAM_PROTO_GetShiftState [19:47:07]wFMCommunicate request_size=4 [19:47:07]MH_SAM_APDU [19:47:07]CAPDU: 80 13 01 00 [19:47:07]Write to MH i2c: E2 08 00 F5 04 80 13 01 00 00 00 00 00 76 [19:47:07]Write i2c OK [19:47:07]MH_I2C_Read... [19:47:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:47:07]Read from MH i2c: E2 [19:47:07]MH_I2C_Read... [19:47:07]Read from MH i2c: E2 0E 00 [19:47:07]MH_I2C_Read... [19:47:07]Read from MH i2c: E2 0E 00 F5 04 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 90 [19:47:07]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [19:47:07]wFMCommunicate OK [19:47:07]SAM_PROTO_GetShiftState done [19:47:07]FM_GetShiftState done [19:47:07]opened in 1729383750 [19:47:07]opened+sec_in_day 1729470150 [19:47:07]quantity*price = 50000 [19:47:07]sum+1 = 50001 [19:47:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 483 20.10.2024 19:47 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227635 ФПД: 268663218829945 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T194708&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227635&fm=268663218829945&tin=02508201610067®Number=0000000000091685&sum=50000 [19:47:08]StoreToDocumentArchive [19:47:08]shift 533 fd 227635 [19:47:08]save to /storage/0533/doc_00227635 [19:47:08]save last doc name /storage/0533/doc_00227635 to /storage/kkm_last_doc_name [19:47:08]save OK [19:47:08]Clear old archive folders... [19:47:08]ProcessDocumentItem done err = 0, tmpTLVsize=244 [19:47:08]tlvbuf is 00C39290 [19:47:08]SAM_PROTO_ClearQueue [19:47:08]wFMCommunicate request_size=4 [19:47:08]MH_SAM_APDU [19:47:08]CAPDU: 80 09 00 00 [19:47:08]Write to MH i2c: E2 08 00 02 05 80 09 00 00 00 00 00 00 79 [19:47:08]Write i2c OK [19:47:08]MH_I2C_Read... [19:47:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:47:08]Read from MH i2c: E2 [19:47:08]MH_I2C_Read... [19:47:08]Read from MH i2c: E2 03 00 [19:47:08]MH_I2C_Read... [19:47:08]Read from MH i2c: E2 03 00 02 05 00 90 00 7B [19:47:08]RAPDU: 90 00 [19:47:08]wFMCommunicate OK [19:47:08]SAM_PROTO_ClearQueue done [19:47:08]KKMCreateOFDPacket [19:47:08]OFDProtocolAddRootSTLVToBuf [19:47:08]FM_MakeSignedData [19:47:08]FM_MakeSignedData [19:47:08]SAM_PROTO_SignData [19:47:08]wFMCommunicate request_size=4 [19:47:08]MH_SAM_APDU [19:47:08]CAPDU: 80 0D 01 02 [19:47:08]Write to MH i2c: E2 08 00 03 05 80 0D 01 02 00 00 00 00 81 [19:47:08]Write i2c OK [19:47:08]MH_I2C_Read... [19:47:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:47:08]Read from MH i2c: E2 [19:47:08]MH_I2C_Read... [19:47:08]Read from MH i2c: E2 03 00 [19:47:08]MH_I2C_Read... [19:47:08]Read from MH i2c: E2 03 00 03 05 00 90 00 7C [19:47:08]RAPDU: 90 00 [19:47:08]wFMCommunicate OK [19:47:08]wFMCommunicate request_size=253 [19:47:08]MH_SAM_APDU [19:47:08]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 01 00 00 F4 03 04 00 3C 5E 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 33 79 03 00 35 04 06 00 F4 59 07 B8 FA 79 [19:47:08]Write to MH i2c: E2 00 01 04 05 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 01 00 00 F4 03 04 00 3C 5E 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 33 79 03 00 35 04 06 00 F4 59 07 B8 FA 79 00 00 C2 [19:47:08]Write i2c OK [19:47:08]MH_I2C_Read... [19:47:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:47:09]Read from MH i2c: E2 [19:47:09]MH_I2C_Read... [19:47:09]Read from MH i2c: E2 03 00 [19:47:09]MH_I2C_Read... [19:47:09]Read from MH i2c: E2 03 00 04 05 00 90 00 7D [19:47:09]RAPDU: 90 00 [19:47:09]wFMCommunicate OK [19:47:09]wFMCommunicate request_size=4 [19:47:09]MH_SAM_APDU [19:47:09]CAPDU: 80 0D 03 02 [19:47:09]Write to MH i2c: E2 08 00 05 05 80 0D 03 02 00 00 00 00 85 [19:47:09]Write i2c OK [19:47:09]MH_I2C_Read... [19:47:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:47:09]Read from MH i2c: E2 [19:47:09]MH_I2C_Read... [19:47:09]Read from MH i2c: E2 0B 00 [19:47:09]MH_I2C_Read... [19:47:09]Read from MH i2c: E2 0B 00 05 05 00 22 C7 D3 71 94 5C 85 10 90 00 38 [19:47:09]RAPDU: 22 C7 D3 71 94 5C 85 10 90 00 [19:47:09]wFMCommunicate OK [19:47:09]SAM_PROTO_SignData done [19:47:09]FM_MakeSignedData done [19:47:09]CreateOFDProtocolMessage [19:47:09]wFMCommunicate request_size=4 [19:47:09]MH_SAM_APDU [19:47:09]CAPDU: 80 11 00 00 [19:47:09]Write to MH i2c: E2 08 00 06 05 80 11 00 00 00 00 00 00 85 [19:47:09]Write i2c OK [19:47:09]MH_I2C_Read... [19:47:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:47:09]Read from MH i2c: E2 [19:47:09]MH_I2C_Read... [19:47:09]Read from MH i2c: E2 17 00 [19:47:09]MH_I2C_Read... [19:47:09]Read from MH i2c: E2 17 00 06 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 DC [19:47:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:47:09]wFMCommunicate OK [19:47:09]CreateOFDProtocolMessage done [19:47:09]OFDSenderStorePacket 227635 [19:47:09]StoreOFDPacket docnum=227635 [19:47:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 0C 20 00 01 86 B7 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 01 00 00 F4 03 04 00 3C 5E 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 33 79 03 00 35 04 06 00 F4 59 07 B8 FA 79 22 C7 D3 71 94 5C 85 10 [19:47:09]CheckFolder [19:47:09]dirname=/storage/ofd_packets [19:47:09]CheckFolder done [19:47:09]ProducePacketName [19:47:09]name=ofd_packets/00227635 [19:47:09]NVStorageSaveData ofd_packets/00227635 [19:47:09]File name is /storage/ofd_packets/00227635 [19:47:09]Write 294 bytes [19:47:09]NVStorageSaveData done [19:47:09]OFDSenderStorePacket done [19:47:09]KKMCreateOFDPacket done [19:47:09]NVStorageSaveData kkm_last_timestamp [19:47:09]File name is /storage/kkm_last_timestamp [19:47:09]Write 4 bytes [19:47:09]NVStorageSaveData done [19:47:09]ExternCall_PrintAddStr [19:47:09]wPrintStart [19:47:09]Write to MH i2c: 01 00 00 07 05 0C [19:47:09]Write i2c OK [19:47:09]MH_I2C_Read... [19:47:09]Read from MH i2c: 01 [19:47:09]MH_I2C_Read... [19:47:09]Read from MH i2c: 01 07 00 [19:47:09]MH_I2C_Read... [19:47:09]Read from MH i2c: 01 07 00 07 05 00 00 00 00 00 FF 0F 21 [19:47:09]RasterBufferAndPrint [19:47:09]line Счет N : (1)1963297 [19:47:09]line ИНН: 02508201610067 [19:47:09]line Контрольно-Кассовый Чек [19:47:09]line ПРОДАЖА [19:47:09]line ТРК (МРК, ГНК) : 52 [19:47:09]line Товар: 2710124130 [19:47:09]line SU-92 [19:47:09]line 7.310 * 68.40 [19:47:09]line = 500.00 [19:47:09]line НДС 12% НСП 1% [19:47:09]line > о реализуемом товаре [19:47:09]line ИТОГО: 500.00 [19:47:09]line НСП 1% : 4.42 [19:47:09]line НДС 12% : 53.10 [19:47:09]line Наличными: 500.00 [19:47:09]line Безнал.: 0.00 [19:47:09]line Место: АЗС № 133 "Партнер Нефть" [19:47:09]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [19:47:09]line СНО: Общий режим [19:47:09]line Чек 483 20.10.2024 19:47 [19:47:09]line Смена: 533 ФФД: 1.0 [19:47:09]line ЗНМ: 0300000091 [19:47:09]line РНМ: 0000000000091685 [19:47:09]line Версия ККМ: 001 [19:47:09]line ФМ: 0000000000871839 [19:47:09]line ФД: 227635 [19:47:09]line ФПД: 268663218829945 [19:47:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T194708&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227635&fm=268663218829945&tin=02508201610067®Number=0000000000091685&sum=50000 [19:47:09]written 0, free lines is 4095 [19:47:09]OFD Sender: Processing packet 227635 [packets to send 38, broken 37] [19:47:09]ProducePacketName [19:47:09]name=ofd_packets/00227635 [19:47:09]OFD Sender: To server: pG, [19:47:09]CommunicateWithHost lk.salyk.kg:30040 [19:47:09]ConnectInit lk.salyk.kg [19:47:09]Connected sock=10 [19:47: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 33 39 08 01 00 00 0C 20 00 01 86 B7 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 01 00 00 F4 03 04 00 3C 5E 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 33 79 03 00 35 04 06 00 F4 59 07 B8 FA 79 22 C7 D3 71 94 5C 85 10 [19:47: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 33 39 4F 00 00 00 1B 53 47 00 06 D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 33 79 03 00 F4 03 04 00 3A 09 15 67 B6 04 01 00 00 C7 C1 04 8F B6 43 9F 28 [19:47:09]CommunicateWithHost err = 0 [19:47:09]CheckOFDResponse [19:47:09]1017 (14) - 77093643461234 [19:47:09]1041 (16) - 0000000000871839 [19:47:09]1040 (4) - 227635 [19:47:09]1012 (4) - 20.10.2024 13:44 [19:47:09]1206 (1) - 0 [19:47:09]OFD Sender: Remove packet 227635 [19:47:09]ProducePacketName [19:47:09]name=ofd_packets/00227635 [19:47:09]NVStorageDeleteData [19:47:09]Write to MH i2c: 01 00 00 2E 05 33 [19:47:09]Write i2c OK [19:47:09]MH_I2C_Read... [19:47:09]Read from MH i2c: 01 [19:47:09]MH_I2C_Read... [19:47:09]Read from MH i2c: 01 07 00 [19:47:09]MH_I2C_Read... [19:47:09]Read from MH i2c: 01 07 00 2E 05 00 00 00 00 00 EA 0C 30 [19:47:09]RasterBufferAndPrint [19:47:09]line [19:47:09]line [19:47:09]line [19:47:09]line [19:47:09]line [19:47:09]written 0, free lines is 3309 [19:47:09]process_action close_receipt done [19:47:09]requested_data is exist [19:47:09]produce_requested_data [19:47:09]requested_item fm.sn is exist - process it [19:47:09]wFMCommunicate request_size=4 [19:47:09]MH_SAM_APDU [19:47:09]CAPDU: 80 11 00 00 [19:47:09]Write to MH i2c: E2 08 00 35 05 80 11 00 00 00 00 00 00 B4 [19:47:09]Write i2c OK [19:47:09]MH_I2C_Read... [19:47:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:47:09]Read from MH i2c: E2 [19:47:09]MH_I2C_Read... [19:47:09]Read from MH i2c: E2 17 00 [19:47:09]MH_I2C_Read... [19:47:09]Read from MH i2c: E2 17 00 35 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 0B [19:47:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:47:09]wFMCommunicate OK [19:47:09]requested_item fd.num is exist - process it [19:47:09]SAM_PROTO_GetFieldsCounters [19:47:09]wFMCommunicate request_size=4 [19:47:09]MH_SAM_APDU [19:47:09]CAPDU: 80 13 00 00 [19:47:09]Write to MH i2c: E2 08 00 36 05 80 13 00 00 00 00 00 00 B7 [19:47:09]Write i2c OK [19:47:09]MH_I2C_Read... [19:47:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:47:09]Read from MH i2c: E2 [19:47:09]MH_I2C_Read... [19:47:09]Read from MH i2c: E2 62 00 [19:47:09]MH_I2C_Read... [19:47:09]Read from MH i2c: E2 62 00 36 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 33 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 E3 01 00 00 5E 04 04 00 E3 01 00 00 57 04 04 00 E4 01 00 00 19 04 04 00 00 00 00 00 90 00 52 [19:47: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 33 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 E3 01 00 00 5E 04 04 00 E3 01 00 00 57 04 04 00 E4 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:47:09]wFMCommunicate OK [19:47:09]SAM_PROTO_GetFieldsCounters done [19:47:09]requested_item shift.num is exist - process it [19:47:09]requested_item shift.opened is exist - process it [19:47:09]req_shift_opened [19:47:09]FM_GetShiftState [19:47:09]SAM_PROTO_GetShiftState [19:47:09]wFMCommunicate request_size=4 [19:47:09]MH_SAM_APDU [19:47:09]CAPDU: 80 13 01 00 [19:47:09]Write to MH i2c: E2 08 00 37 05 80 13 01 00 00 00 00 00 B9 [19:47:09]Write i2c OK [19:47:09]MH_I2C_Read... [19:47:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:47:10]Read from MH i2c: E2 [19:47:10]MH_I2C_Read... [19:47:10]Read from MH i2c: E2 0E 00 [19:47:10]MH_I2C_Read... [19:47:10]Read from MH i2c: E2 0E 00 37 05 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 D3 [19:47:10]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [19:47:10]wFMCommunicate OK [19:47:10]SAM_PROTO_GetShiftState done [19:47:10]FM_GetShiftState done [19:47:10]req_shift_opened done [19:47:10]requested_item shift.open_date is exist - process it [19:47:10]req_shift_open_date [19:47:10]req_shift_open_date done [19:47:10]produce_requested_data done [19:47:10]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227635,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [19:47:10]process_action_free close_receipt [19:47:10]json_value_free [19:47:10]json_value_free done [19:47:10]process_json_proto returns [19:47:10]Send response to host [19:47:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227635,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [19:47:10]free response buf [19:47:10]execute_script done [19:47:10]execute_script returns [19:47:10]free content buf [19:47:10]Sock 9.Close socket [19:47:10]Sock 9.Thread stoped [19:47:10]OFD Sender: No OFD packet to send [19:47:15]OFD Sender: No OFD packet to send [19:47:20]OFD Sender: No OFD packet to send [19:47:25]OFD Sender: No OFD packet to send [19:47:30]OFD Sender: No OFD packet to send [19:47:35]OFD Sender: No OFD packet to send [19:47:40]OFD Sender: No OFD packet to send [19:47:45]OFD Sender: No OFD packet to send [19:47:50]OFD Sender: No OFD packet to send [19:47:55]OFD Sender: No OFD packet to send [19:48:00]OFD Sender: No OFD packet to send [19:48:05]OFD Sender: No OFD packet to send [19:48:10]OFD Sender: No OFD packet to send [19:48:15]OFD Sender: No OFD packet to send [19:48:20]OFD Sender: No OFD packet to send [19:48:25]OFD Sender: No OFD packet to send [19:48:30]OFD Sender: No OFD packet to send [19:48:35]OFD Sender: No OFD packet to send [19:48:40]OFD Sender: No OFD packet to send [19:48:45]OFD Sender: No OFD packet to send [19:48:50]OFD Sender: No OFD packet to send [19:48:55]OFD Sender: No OFD packet to send [19:49:00]OFD Sender: No OFD packet to send [19:49:05]OFD Sender: No OFD packet to send [19:49:10]OFD Sender: No OFD packet to send [19:49:15]OFD Sender: No OFD packet to send [19:49:20]OFD Sender: No OFD packet to send [19:49:25]OFD Sender: No OFD packet to send [19:49:30]OFD Sender: No OFD packet to send [19:49:35]OFD Sender: No OFD packet to send [19:49:40]OFD Sender: No OFD packet to send [19:49:45]OFD Sender: No OFD packet to send [19:49:50]OFD Sender: No OFD packet to send [19:49:55]OFD Sender: No OFD packet to send [19:50:00]OFD Sender: No OFD packet to send [19:50:05]OFD Sender: No OFD packet to send [19:50:10]OFD Sender: No OFD packet to send [19:50:15]OFD Sender: No OFD packet to send [19:50:20]OFD Sender: No OFD packet to send [19:50:25]OFD Sender: No OFD packet to send [19:50:30]OFD Sender: No OFD packet to send [19:50:35]OFD Sender: No OFD packet to send [19:50:40]OFD Sender: No OFD packet to send [19:50:45]OFD Sender: No OFD packet to send [19:50:50]OFD Sender: No OFD packet to send [19:50:55]OFD Sender: No OFD packet to send [19:51:00]OFD Sender: No OFD packet to send [19:51:05]OFD Sender: No OFD packet to send [19:51:10]OFD Sender: No OFD packet to send [19:51:15]OFD Sender: No OFD packet to send [19:51:20]OFD Sender: No OFD packet to send [19:51:25]OFD Sender: No OFD packet to send [19:51:30]OFD Sender: No OFD packet to send [19:51:35]OFD Sender: No OFD packet to send [19:51:40]OFD Sender: No OFD packet to send [19:51:45]OFD Sender: No OFD packet to send [19:51:50]OFD Sender: No OFD packet to send [19:51:55]OFD Sender: No OFD packet to send [19:52:00]OFD Sender: No OFD packet to send [19:52:05]OFD Sender: No OFD packet to send [19:52:10]OFD Sender: No OFD packet to send [19:52:15]OFD Sender: No OFD packet to send [19:52:20]OFD Sender: No OFD packet to send [19:52:25]OFD Sender: No OFD packet to send [19:52:30]OFD Sender: No OFD packet to send [19:52:35]OFD Sender: No OFD packet to send [19:52:40]OFD Sender: No OFD packet to send [19:52:45]OFD Sender: No OFD packet to send [19:52:50]OFD Sender: No OFD packet to send [19:52:55]OFD Sender: No OFD packet to send [19:53:00]OFD Sender: No OFD packet to send [19:53:05]OFD Sender: No OFD packet to send [19:53:10]OFD Sender: No OFD packet to send [19:53:15]OFD Sender: No OFD packet to send [19:53:20]OFD Sender: No OFD packet to send [19:53:22]accept exits with 7 [19:53:22]New connection [19:53:22]New thread 3066809700 created [19:53:22]Thread 3066666340 joined [19:53:22]Waiting for new connection... [19:53:22] Sock 7.Parse request [19:53:22]Sock 7.Check first char [19:53:22]Sock 7.First char is OK [19:53:22]request: POST /json_proto HTTP/1.0 [19:53:22]Method: POST [19:53:22]URL: /json_proto [19:53:22]Method is POST - this is cgi request [19:53:22]url: /json_proto [19:53:22]query_string will be loaded in cgi processing [19:53:22]execute_cgi json_proto POST (null) [19:53:22]execute_cgi path=json_proto method=POST [19:53:22]POST find Content-Length [19:53:22]Host: 172.17.44.195:8080 [19:53:22]Content-Length: 678 [19:53:22]Content-Type: application/json [19:53:22] [19:53:22]POST finish read [19:53:22]Found Content-Length = 678 [19:53:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963299", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:53:22]execute_script... [19:53: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)1963299", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:53:22]POST & json_proto [19:53:22]process_json_proto [19:53:22]json parsed OK: [19:53:22]protocol is kg_v1.0 [19:53:22]action value=close_receipt [19:53:22]process_action close_receipt [19:53:22]cmd_close_receipt [19:53:22]MH_GetDate [19:53:22]Write to MH i2c: F0 00 00 38 05 2C [19:53:22]Write i2c OK [19:53:22]MH_I2C_Read... [19:53:22]Read from MH i2c: F0 [19:53:22]MH_I2C_Read... [19:53:22]Read from MH i2c: F0 09 00 [19:53:22]MH_I2C_Read... [19:53:22]Read from MH i2c: F0 09 00 38 05 00 B3 5F 15 67 82 C9 CF 66 43 [19:53:22]GetLastDocTimeStamp 1729453628 [19:53:22]current date 1729454003 [19:53:22]FM_GetShiftState [19:53:22]SAM_PROTO_GetShiftState [19:53:22]wFMCommunicate request_size=4 [19:53:22]MH_SAM_APDU [19:53:22]CAPDU: 80 13 01 00 [19:53:22]Write to MH i2c: E2 08 00 39 05 80 13 01 00 00 00 00 00 BB [19:53:22]Write i2c OK [19:53:22]MH_I2C_Read... [19:53:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:53:22]Read from MH i2c: E2 [19:53:22]MH_I2C_Read... [19:53:22]Read from MH i2c: E2 0E 00 [19:53:22]MH_I2C_Read... [19:53:22]Read from MH i2c: E2 0E 00 39 05 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 D5 [19:53:22]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [19:53:22]wFMCommunicate OK [19:53:22]SAM_PROTO_GetShiftState done [19:53:22]FM_GetShiftState done [19:53:22]opened in 1729383750 [19:53:22]opened+sec_in_day 1729470150 [19:53:22]quantity*price = 50041 [19:53:22]sum+1 = 50042 [19:53:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 484 20.10.2024 19:53 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227636 ФПД: 273015843832673 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T195323&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227636&fm=273015843832673&tin=02508201610067®Number=0000000000091685&sum=50000 [19:53:23]StoreToDocumentArchive [19:53:23]shift 533 fd 227636 [19:53:23]save to /storage/0533/doc_00227636 [19:53:23]save last doc name /storage/0533/doc_00227636 to /storage/kkm_last_doc_name [19:53:23]save OK [19:53:23]Clear old archive folders... [19:53:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:53:23]tlvbuf is 00C38EB0 [19:53:23]SAM_PROTO_ClearQueue [19:53:23]wFMCommunicate request_size=4 [19:53:23]MH_SAM_APDU [19:53:23]CAPDU: 80 09 00 00 [19:53:23]Write to MH i2c: E2 08 00 46 05 80 09 00 00 00 00 00 00 BD [19:53:23]Write i2c OK [19:53:23]MH_I2C_Read... [19:53:23]Read from MH i2c: E2 [19:53:23]MH_I2C_Read... [19:53:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:53:23]Read from MH i2c: E2 03 00 [19:53:23]MH_I2C_Read... [19:53:23]Read from MH i2c: E2 03 00 46 05 00 90 00 BF [19:53:23]RAPDU: 90 00 [19:53:23]wFMCommunicate OK [19:53:23]SAM_PROTO_ClearQueue done [19:53:23]KKMCreateOFDPacket [19:53:23]OFDProtocolAddRootSTLVToBuf [19:53:23]FM_MakeSignedData [19:53:23]FM_MakeSignedData [19:53:23]SAM_PROTO_SignData [19:53:23]wFMCommunicate request_size=4 [19:53:23]MH_SAM_APDU [19:53:23]CAPDU: 80 0D 01 02 [19:53:23]Write to MH i2c: E2 08 00 47 05 80 0D 01 02 00 00 00 00 C5 [19:53:23]Write i2c OK [19:53:23]MH_I2C_Read... [19:53:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:53:23]Read from MH i2c: E2 [19:53:23]MH_I2C_Read... [19:53:23]Read from MH i2c: E2 03 00 [19:53:23]MH_I2C_Read... [19:53:23]Read from MH i2c: E2 03 00 47 05 00 90 00 C0 [19:53:23]RAPDU: 90 00 [19:53:23]wFMCommunicate OK [19:53:23]wFMCommunicate request_size=255 [19:53:23]MH_SAM_APDU [19:53:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 01 00 00 F4 03 04 00 B3 5F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 34 79 03 00 35 04 06 00 F8 [19:53:23]Write to MH i2c: E2 02 01 48 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 01 00 00 F4 03 04 00 B3 5F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 34 79 03 00 35 04 06 00 F8 00 00 8E [19:53:23]Write i2c OK [19:53:23]MH_I2C_Read... [19:53:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:53:24]Read from MH i2c: E2 [19:53:24]MH_I2C_Read... [19:53:24]Read from MH i2c: E2 03 00 [19:53:24]MH_I2C_Read... [19:53:24]Read from MH i2c: E2 03 00 48 05 00 90 00 C1 [19:53:24]RAPDU: 90 00 [19:53:24]wFMCommunicate OK [19:53:24]wFMCommunicate request_size=10 [19:53:24]MH_SAM_APDU [19:53:24]CAPDU: 80 0D 02 02 05 4E 74 63 C3 61 [19:53:24]Write to MH i2c: E2 0D 00 49 05 80 0D 02 02 05 00 4E 74 63 C3 61 00 00 1B [19:53:24]Write i2c OK [19:53:24]MH_I2C_Read... [19:53:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:53:24]Read from MH i2c: E2 [19:53:24]MH_I2C_Read... [19:53:24]Read from MH i2c: E2 03 00 [19:53:24]MH_I2C_Read... [19:53:24]Read from MH i2c: E2 03 00 49 05 00 90 00 C2 [19:53:24]RAPDU: 90 00 [19:53:24]wFMCommunicate OK [19:53:24]wFMCommunicate request_size=4 [19:53:24]MH_SAM_APDU [19:53:24]CAPDU: 80 0D 03 02 [19:53:24]Write to MH i2c: E2 08 00 4A 05 80 0D 03 02 00 00 00 00 CA [19:53:24]Write i2c OK [19:53:24]MH_I2C_Read... [19:53:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:53:24]Read from MH i2c: E2 [19:53:24]MH_I2C_Read... [19:53:24]Read from MH i2c: E2 0B 00 [19:53:24]MH_I2C_Read... [19:53:24]Read from MH i2c: E2 0B 00 4A 05 00 D0 93 7B 87 E8 27 11 7D 90 00 CD [19:53:24]RAPDU: D0 93 7B 87 E8 27 11 7D 90 00 [19:53:24]wFMCommunicate OK [19:53:24]SAM_PROTO_SignData done [19:53:24]FM_MakeSignedData done [19:53:24]CreateOFDProtocolMessage [19:53:24]wFMCommunicate request_size=4 [19:53:24]MH_SAM_APDU [19:53:24]CAPDU: 80 11 00 00 [19:53:24]Write to MH i2c: E2 08 00 4B 05 80 11 00 00 00 00 00 00 CA [19:53:24]Write i2c OK [19:53:24]MH_I2C_Read... [19:53:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:53:24]Read from MH i2c: E2 [19:53:24]MH_I2C_Read... [19:53:24]Read from MH i2c: E2 17 00 [19:53:24]MH_I2C_Read... [19:53:24]Read from MH i2c: E2 17 00 4B 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 21 [19:53:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:53:24]wFMCommunicate OK [19:53:24]CreateOFDProtocolMessage done [19:53:24]OFDSenderStorePacket 227636 [19:53:24]StoreOFDPacket docnum=227636 [19:53:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 7A 9E 07 01 68 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 01 00 00 F4 03 04 00 B3 5F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 34 79 03 00 35 04 06 00 F8 4E 74 63 C3 61 D0 93 7B 87 E8 27 11 7D [19:53:24]CheckFolder [19:53:24]dirname=/storage/ofd_packets [19:53:24]CheckFolder done [19:53:24]ProducePacketName [19:53:24]name=ofd_packets/00227636 [19:53:24]NVStorageSaveData ofd_packets/00227636 [19:53:24]File name is /storage/ofd_packets/00227636 [19:53:24]Write 301 bytes [19:53:24]NVStorageSaveData done [19:53:24]OFDSenderStorePacket done [19:53:24]KKMCreateOFDPacket done [19:53:24]NVStorageSaveData kkm_last_timestamp [19:53:24]File name is /storage/kkm_last_timestamp [19:53:24]Write 4 bytes [19:53:24]NVStorageSaveData done [19:53:24]ExternCall_PrintAddStr [19:53:24]wPrintStart [19:53:24]Write to MH i2c: 01 00 00 4C 05 51 [19:53:24]Write i2c OK [19:53:24]MH_I2C_Read... [19:53:24]Read from MH i2c: 01 [19:53:24]MH_I2C_Read... [19:53:24]Read from MH i2c: 01 07 00 [19:53:24]MH_I2C_Read... [19:53:24]Read from MH i2c: 01 07 00 4C 05 00 00 00 00 00 FF 0F 66 [19:53:24]RasterBufferAndPrint [19:53:24]line Счет N : (1)1963299 [19:53:24]line ИНН: 02508201610067 [19:53:24]line Контрольно-Кассовый Чек [19:53:24]line ПРОДАЖА [19:53:24]line ТРК (МРК, ГНК) : 43 [19:53:24]line Товар: 2710124130 [19:53:24]line Аи-92-К-5 [19:53:24]line 7.480 * 66.90 [19:53:24]line = 500.41 [19:53:24]line НДС 12% НСП 1% [19:53:24]line > о реализуемом товаре [19:53:24]line ОКРУГЛЕНИЕ: -0.41 [19:53:24]line ИТОГО: 500.00 [19:53:24]line Внесено: 500.00 [19:53:24]line СДАЧА: 0.00 [19:53:24]line НСП 1% : 4.43 [19:53:24]line НДС 12% : 53.14 [19:53:24]line Наличными: 500.00 [19:53:24]line Безнал.: 0.00 [19:53:24]line Место: АЗС № 133 "Партнер Нефть" [19:53:24]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [19:53:24]line СНО: Общий режим [19:53:24]line Чек 484 20.10.2024 19:53 [19:53:24]line Смена: 533 ФФД: 1.0 [19:53:24]line ЗНМ: 0300000091 [19:53:24]line РНМ: 0000000000091685 [19:53:24]line Версия ККМ: 001 [19:53:24]line ФМ: 0000000000871839 [19:53:24]line ФД: 227636 [19:53:24]line ФПД: 273015843832673 [19:53:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T195323&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227636&fm=273015843832673&tin=02508201610067®Number=0000000000091685&sum=50000 [19:53:24]OFD Sender: Processing packet 227636 [packets to send 38, broken 37] [19:53:24]ProducePacketName [19:53:24]name=ofd_packets/00227636 [19:53:24]OFD Sender: To server: pG, [19:53:24]CommunicateWithHost lk.salyk.kg:30040 [19:53:24]ConnectInit lk.salyk.kg [19:53:24]written 0, free lines is 4095 [19:53:24]Connected sock=10 [19:53: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 33 39 0F 01 00 00 7A 9E 07 01 68 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 01 00 00 F4 03 04 00 B3 5F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 34 79 03 00 35 04 06 00 F8 4E 74 63 C3 61 D0 93 7B 87 E8 27 11 7D [19:53: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 33 39 4F 00 00 00 BC 52 47 00 FE 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 33 39 10 04 04 00 34 79 03 00 F4 03 04 00 B1 0A 15 67 B6 04 01 00 00 D9 5E 66 9D 58 61 7A 9B [19:53:25]CommunicateWithHost err = 0 [19:53:25]CheckOFDResponse [19:53:25]1017 (14) - 77093643461234 [19:53:25]1041 (16) - 0000000000871839 [19:53:25]1040 (4) - 227636 [19:53:25]1012 (4) - 20.10.2024 13:50 [19:53:25]1206 (1) - 0 [19:53:25]OFD Sender: Remove packet 227636 [19:53:25]ProducePacketName [19:53:25]name=ofd_packets/00227636 [19:53:25]NVStorageDeleteData [19:53:25]Write to MH i2c: 01 00 00 76 05 7B [19:53:25]Write i2c OK [19:53:25]MH_I2C_Read... [19:53:25]Read from MH i2c: 01 [19:53:25]MH_I2C_Read... [19:53:25]Read from MH i2c: 01 07 00 [19:53:25]MH_I2C_Read... [19:53:25]Read from MH i2c: 01 07 00 76 05 00 00 00 00 00 A6 0C 34 [19:53:25]RasterBufferAndPrint [19:53:25]line [19:53:25]line [19:53:25]line [19:53:25]line [19:53:25]line [19:53:25]written 0, free lines is 3242 [19:53:25]process_action close_receipt done [19:53:25]requested_data is exist [19:53:25]produce_requested_data [19:53:25]requested_item fm.sn is exist - process it [19:53:25]wFMCommunicate request_size=4 [19:53:25]MH_SAM_APDU [19:53:25]CAPDU: 80 11 00 00 [19:53:25]Write to MH i2c: E2 08 00 7D 05 80 11 00 00 00 00 00 00 FC [19:53:25]Write i2c OK [19:53:25]MH_I2C_Read... [19:53:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:53:25]Read from MH i2c: E2 [19:53:25]MH_I2C_Read... [19:53:25]Read from MH i2c: E2 17 00 [19:53:25]MH_I2C_Read... [19:53:25]Read from MH i2c: E2 17 00 7D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 53 [19:53:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:53:25]wFMCommunicate OK [19:53:25]requested_item fd.num is exist - process it [19:53:25]SAM_PROTO_GetFieldsCounters [19:53:25]wFMCommunicate request_size=4 [19:53:25]MH_SAM_APDU [19:53:25]CAPDU: 80 13 00 00 [19:53:25]Write to MH i2c: E2 08 00 7E 05 80 13 00 00 00 00 00 00 FF [19:53:25]Write i2c OK [19:53:25]MH_I2C_Read... [19:53:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:53:25]Read from MH i2c: E2 [19:53:25]MH_I2C_Read... [19:53:25]Read from MH i2c: E2 62 00 [19:53:25]MH_I2C_Read... [19:53:25]Read from MH i2c: E2 62 00 7E 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 34 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 E4 01 00 00 5E 04 04 00 E4 01 00 00 57 04 04 00 E5 01 00 00 19 04 04 00 00 00 00 00 90 00 9E [19:53: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 34 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 E4 01 00 00 5E 04 04 00 E4 01 00 00 57 04 04 00 E5 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:53:25]wFMCommunicate OK [19:53:25]SAM_PROTO_GetFieldsCounters done [19:53:25]requested_item shift.num is exist - process it [19:53:25]requested_item shift.opened is exist - process it [19:53:25]req_shift_opened [19:53:25]FM_GetShiftState [19:53:25]SAM_PROTO_GetShiftState [19:53:25]wFMCommunicate request_size=4 [19:53:25]MH_SAM_APDU [19:53:25]CAPDU: 80 13 01 00 [19:53:25]Write to MH i2c: E2 08 00 7F 05 80 13 01 00 00 00 00 00 01 [19:53:25]Write i2c OK [19:53:25]MH_I2C_Read... [19:53:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:53:25]Read from MH i2c: E2 [19:53:25]MH_I2C_Read... [19:53:25]Read from MH i2c: E2 0E 00 [19:53:25]MH_I2C_Read... [19:53:25]Read from MH i2c: E2 0E 00 7F 05 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 1B [19:53:25]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [19:53:25]wFMCommunicate OK [19:53:25]SAM_PROTO_GetShiftState done [19:53:25]FM_GetShiftState done [19:53:25]req_shift_opened done [19:53:25]requested_item shift.open_date is exist - process it [19:53:25]req_shift_open_date [19:53:25]req_shift_open_date done [19:53:25]produce_requested_data done [19:53:25]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227636,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [19:53:25]process_action_free close_receipt [19:53:25]json_value_free [19:53:25]json_value_free done [19:53:25]process_json_proto returns [19:53:25]Send response to host [19:53:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227636,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [19:53:25]free response buf [19:53:25]execute_script done [19:53:25]execute_script returns [19:53:25]free content buf [19:53:25]Sock 7.Close socket [19:53:25]Sock 7.Thread stoped [19:53:25]OFD Sender: No OFD packet to send [19:53:30]OFD Sender: No OFD packet to send [19:53:35]OFD Sender: No OFD packet to send [19:53:40]OFD Sender: No OFD packet to send [19:53:43]accept exits with 9 [19:53:43]New connection [19:53:43]New thread 3066666340 created [19:53:43]Thread 3066809700 joined [19:53:43]Waiting for new connection... [19:53:43] Sock 9.Parse request [19:53:43]Sock 9.Check first char [19:53:43]Sock 9.First char is OK [19:53:43]request: POST /json_proto HTTP/1.0 [19:53:43]Method: POST [19:53:43]URL: /json_proto [19:53:43]Method is POST - this is cgi request [19:53:43]url: /json_proto [19:53:43]query_string will be loaded in cgi processing [19:53:43]execute_cgi json_proto POST (null) [19:53:43]execute_cgi path=json_proto method=POST [19:53:43]POST find Content-Length [19:53:43]Host: 172.17.44.195:8080 [19:53:43]Content-Length: 680 [19:53:43]Content-Type: application/json [19:53:43] [19:53:43]POST finish read [19:53:43]Found Content-Length = 680 [19:53:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963298", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 30.840, "sum" : 2350.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2350.00, "total" : 2350.00, "payments": [ { "type": 0, "sum" : 2350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:53:43]execute_script... [19:53: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)1963298", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 30.840, "sum" : 2350.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2350.00, "total" : 2350.00, "payments": [ { "type": 0, "sum" : 2350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:53:43]POST & json_proto [19:53:43]process_json_proto [19:53:43]json parsed OK: [19:53:43]protocol is kg_v1.0 [19:53:43]action value=close_receipt [19:53:43]process_action close_receipt [19:53:43]cmd_close_receipt [19:53:43]MH_GetDate [19:53:43]Write to MH i2c: F0 00 00 80 05 74 [19:53:43]Write i2c OK [19:53:43]MH_I2C_Read... [19:53:43]Read from MH i2c: F0 [19:53:43]MH_I2C_Read... [19:53:43]Read from MH i2c: F0 09 00 [19:53:43]MH_I2C_Read... [19:53:43]Read from MH i2c: F0 09 00 80 05 00 C8 5F 15 67 82 C9 CF 66 A0 [19:53:43]GetLastDocTimeStamp 1729454003 [19:53:43]current date 1729454024 [19:53:43]FM_GetShiftState [19:53:43]SAM_PROTO_GetShiftState [19:53:43]wFMCommunicate request_size=4 [19:53:43]MH_SAM_APDU [19:53:43]CAPDU: 80 13 01 00 [19:53:43]Write to MH i2c: E2 08 00 81 05 80 13 01 00 00 00 00 00 03 [19:53:43]Write i2c OK [19:53:43]MH_I2C_Read... [19:53:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:53:43]Read from MH i2c: E2 [19:53:43]MH_I2C_Read... [19:53:43]Read from MH i2c: E2 0E 00 [19:53:43]MH_I2C_Read... [19:53:43]Read from MH i2c: E2 0E 00 81 05 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 1D [19:53:43]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [19:53:43]wFMCommunicate OK [19:53:43]SAM_PROTO_GetShiftState done [19:53:43]FM_GetShiftState done [19:53:43]opened in 1729383750 [19:53:43]opened+sec_in_day 1729470150 [19:53:43]quantity*price = 235000 [19:53:43]sum+1 = 235002 [19:53:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 2350.00 Внесено: 2350.00 СДАЧА: 0.00 НСП 1% : 20.80 НДС 12% : 249.56 Наличными: 2350.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 485 20.10.2024 19:53 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227637 ФПД: 99101469949209 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T195344&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227637&fm=99101469949209&tin=02508201610067®Number=0000000000091685&sum=235000 [19:53:44]StoreToDocumentArchive [19:53:44]shift 533 fd 227637 [19:53:44]save to /storage/0533/doc_00227637 [19:53:44]save last doc name /storage/0533/doc_00227637 to /storage/kkm_last_doc_name [19:53:44]save OK [19:53:44]Clear old archive folders... [19:53:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:53:44]tlvbuf is 00C25FB0 [19:53:44]SAM_PROTO_ClearQueue [19:53:44]wFMCommunicate request_size=4 [19:53:44]MH_SAM_APDU [19:53:44]CAPDU: 80 09 00 00 [19:53:44]Write to MH i2c: E2 08 00 8E 05 80 09 00 00 00 00 00 00 05 [19:53:44]Write i2c OK [19:53:44]MH_I2C_Read... [19:53:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:53:44]Read from MH i2c: E2 [19:53:44]MH_I2C_Read... [19:53:44]Read from MH i2c: E2 03 00 [19:53:44]MH_I2C_Read... [19:53:44]Read from MH i2c: E2 03 00 8E 05 00 90 00 07 [19:53:44]RAPDU: 90 00 [19:53:44]wFMCommunicate OK [19:53:44]SAM_PROTO_ClearQueue done [19:53:44]KKMCreateOFDPacket [19:53:44]OFDProtocolAddRootSTLVToBuf [19:53:44]FM_MakeSignedData [19:53:44]FM_MakeSignedData [19:53:44]SAM_PROTO_SignData [19:53:44]wFMCommunicate request_size=4 [19:53:44]MH_SAM_APDU [19:53:44]CAPDU: 80 0D 01 02 [19:53:44]Write to MH i2c: E2 08 00 8F 05 80 0D 01 02 00 00 00 00 0D [19:53:44]Write i2c OK [19:53:44]MH_I2C_Read... [19:53:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:53:44]Read from MH i2c: E2 [19:53:44]MH_I2C_Read... [19:53:44]Read from MH i2c: E2 03 00 [19:53:44]MH_I2C_Read... [19:53:44]Read from MH i2c: E2 03 00 8F 05 00 90 00 08 [19:53:44]RAPDU: 90 00 [19:53:44]wFMCommunicate OK [19:53:44]wFMCommunicate request_size=255 [19:53:44]MH_SAM_APDU [19:53: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 78 78 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F9 95 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 95 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 61 00 00 00 00 07 04 06 00 F8 95 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 01 00 00 F4 03 04 00 C8 5F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 35 79 03 00 35 04 06 00 5A 21 DB E9 [19:53:44]Write to MH i2c: E2 02 01 90 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 78 78 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F9 95 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 95 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 61 00 00 00 00 07 04 06 00 F8 95 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 01 00 00 F4 03 04 00 C8 5F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 35 79 03 00 35 04 06 00 5A 21 DB E9 00 00 89 [19:53:44]Write i2c OK [19:53:44]MH_I2C_Read... [19:53:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:53:45]Read from MH i2c: E2 [19:53:45]MH_I2C_Read... [19:53:45]Read from MH i2c: E2 03 00 [19:53:45]MH_I2C_Read... [19:53:45]Read from MH i2c: E2 03 00 90 05 00 90 00 09 [19:53:45]RAPDU: 90 00 [19:53:45]wFMCommunicate OK [19:53:45]wFMCommunicate request_size=7 [19:53:45]MH_SAM_APDU [19:53:45]CAPDU: 80 0D 02 02 02 BD 19 [19:53:45]Write to MH i2c: E2 0A 00 91 05 80 0D 02 02 02 00 BD 19 00 00 EA [19:53:45]Write i2c OK [19:53:45]MH_I2C_Read... [19:53:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:53:45]Read from MH i2c: E2 [19:53:45]MH_I2C_Read... [19:53:45]Read from MH i2c: E2 03 00 [19:53:45]MH_I2C_Read... [19:53:45]Read from MH i2c: E2 03 00 91 05 00 90 00 0A [19:53:45]RAPDU: 90 00 [19:53:45]wFMCommunicate OK [19:53:45]wFMCommunicate request_size=4 [19:53:45]MH_SAM_APDU [19:53:45]CAPDU: 80 0D 03 02 [19:53:45]Write to MH i2c: E2 08 00 92 05 80 0D 03 02 00 00 00 00 12 [19:53:45]Write i2c OK [19:53:45]MH_I2C_Read... [19:53:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:53:45]Read from MH i2c: E2 [19:53:45]MH_I2C_Read... [19:53:45]Read from MH i2c: E2 0B 00 [19:53:45]MH_I2C_Read... [19:53:45]Read from MH i2c: E2 0B 00 92 05 00 95 8C 17 32 27 09 3E 7E 90 00 69 [19:53:45]RAPDU: 95 8C 17 32 27 09 3E 7E 90 00 [19:53:45]wFMCommunicate OK [19:53:45]SAM_PROTO_SignData done [19:53:45]FM_MakeSignedData done [19:53:45]CreateOFDProtocolMessage [19:53:45]wFMCommunicate request_size=4 [19:53:45]MH_SAM_APDU [19:53:45]CAPDU: 80 11 00 00 [19:53:45]Write to MH i2c: E2 08 00 93 05 80 11 00 00 00 00 00 00 12 [19:53:45]Write i2c OK [19:53:45]MH_I2C_Read... [19:53:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:53:45]Read from MH i2c: E2 [19:53:45]MH_I2C_Read... [19:53:45]Read from MH i2c: E2 17 00 [19:53:45]MH_I2C_Read... [19:53:45]Read from MH i2c: E2 17 00 93 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 69 [19:53:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:53:45]wFMCommunicate OK [19:53:45]CreateOFDProtocolMessage done [19:53:45]OFDSenderStorePacket 227637 [19:53:45]StoreOFDPacket docnum=227637 [19:53:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 8E BB 04 01 75 07 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 78 78 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F9 95 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 95 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 61 00 00 00 00 07 04 06 00 F8 95 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 01 00 00 F4 03 04 00 C8 5F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 35 79 03 00 35 04 06 00 5A 21 DB E9 BD 19 95 8C 17 32 27 09 3E 7E [19:53:45]CheckFolder [19:53:45]dirname=/storage/ofd_packets [19:53:45]CheckFolder done [19:53:45]ProducePacketName [19:53:45]name=ofd_packets/00227637 [19:53:45]NVStorageSaveData ofd_packets/00227637 [19:53:45]File name is /storage/ofd_packets/00227637 [19:53:45]Write 298 bytes [19:53:45]NVStorageSaveData done [19:53:45]OFDSenderStorePacket done [19:53:45]KKMCreateOFDPacket done [19:53:45]NVStorageSaveData kkm_last_timestamp [19:53:45]File name is /storage/kkm_last_timestamp [19:53:45]Write 4 bytes [19:53:45]NVStorageSaveData done [19:53:45]ExternCall_PrintAddStr [19:53:45]wPrintStart [19:53:45]Write to MH i2c: 01 00 00 94 05 99 [19:53:45]Write i2c OK [19:53:45]MH_I2C_Read... [19:53:45]Read from MH i2c: 01 [19:53:45]MH_I2C_Read... [19:53:45]Read from MH i2c: 01 07 00 [19:53:45]MH_I2C_Read... [19:53:45]Read from MH i2c: 01 07 00 94 05 00 00 00 00 00 FF 0F AE [19:53:45]RasterBufferAndPrint [19:53:45]line Счет N : (1)1963298 [19:53:45]line ИНН: 02508201610067 [19:53:45]line Контрольно-Кассовый Чек [19:53:45]line ПРОДАЖА [19:53:45]line ТРК (МРК, ГНК) : 31 [19:53:45]line Товар: 2710194210 [19:53:45]line ДТ-К-5 [19:53:45]line 30.840 * 76.20 [19:53:45]line = 2350.01 [19:53:45]line НДС 12% НСП 1% [19:53:45]line > о реализуемом товаре [19:53:45]line ОКРУГЛЕНИЕ: -0.01 [19:53:45]line ИТОГО: 2350.00 [19:53:45]line Внесено: 2350.00 [19:53:45]line СДАЧА: 0.00 [19:53:45]line НСП 1% : 20.80 [19:53:45]line НДС 12% : 249.56 [19:53:45]line Наличными: 2350.00 [19:53:45]line Безнал.: 0.00 [19:53:45]line Место: АЗС № 133 "Партнер Нефть" [19:53:45]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [19:53:45]line СНО: Общий режим [19:53:45]line Чек 485 20.10.2024 19:53 [19:53:45]line Смена: 533 ФФД: 1.0 [19:53:45]line ЗНМ: 0300000091 [19:53:45]line РНМ: 0000000000091685 [19:53:45]line Версия ККМ: 001 [19:53:45]line ФМ: 0000000000871839 [19:53:45]line ФД: 227637 [19:53:45]line ФПД: 99101469949209 [19:53:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T195344&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227637&fm=99101469949209&tin=02508201610067®Number=0000000000091685&sum=235000 [19:53:45]OFD Sender: Processing packet 227637 [packets to send 38, broken 37] [19:53:45]ProducePacketName [19:53:45]name=ofd_packets/00227637 [19:53:45]OFD Sender: To server: pG, [19:53:45]CommunicateWithHost lk.salyk.kg:30040 [19:53:45]ConnectInit lk.salyk.kg [19:53:45]written 0, free lines is 4095 [19:53:45]Connected sock=10 [19:53:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 8E BB 04 01 75 07 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 78 78 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F9 95 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 95 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 61 00 00 00 00 07 04 06 00 F8 95 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 01 00 00 F4 03 04 00 C8 5F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 35 79 03 00 35 04 06 00 5A 21 DB E9 BD 19 95 8C 17 32 27 09 3E 7E [19:53: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 33 39 4F 00 00 00 4B 17 47 00 7C 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 33 39 10 04 04 00 35 79 03 00 F4 03 04 00 C6 0A 15 67 B6 04 01 00 00 CD 88 40 DF F6 A3 31 55 [19:53:45]CommunicateWithHost err = 0 [19:53:45]CheckOFDResponse [19:53:45]1017 (14) - 77093643461234 [19:53:45]1041 (16) - 0000000000871839 [19:53:45]1040 (4) - 227637 [19:53:45]1012 (4) - 20.10.2024 13:51 [19:53:45]1206 (1) - 0 [19:53:45]OFD Sender: Remove packet 227637 [19:53:45]ProducePacketName [19:53:45]name=ofd_packets/00227637 [19:53:45]NVStorageDeleteData [19:53:45]Write to MH i2c: 01 00 00 BE 05 C3 [19:53:45]Write i2c OK [19:53:45]MH_I2C_Read... [19:53:45]Read from MH i2c: 01 [19:53:45]MH_I2C_Read... [19:53:45]Read from MH i2c: 01 07 00 [19:53:45]MH_I2C_Read... [19:53:45]Read from MH i2c: 01 07 00 BE 05 00 00 00 00 00 AE 0C 84 [19:53:45]RasterBufferAndPrint [19:53:45]line [19:53:45]line [19:53:45]line [19:53:45]line [19:53:45]line [19:53:45]written 0, free lines is 3249 [19:53:45]process_action close_receipt done [19:53:45]requested_data is exist [19:53:45]produce_requested_data [19:53:45]requested_item fm.sn is exist - process it [19:53:45]wFMCommunicate request_size=4 [19:53:45]MH_SAM_APDU [19:53:45]CAPDU: 80 11 00 00 [19:53:45]Write to MH i2c: E2 08 00 C5 05 80 11 00 00 00 00 00 00 44 [19:53:45]Write i2c OK [19:53:45]MH_I2C_Read... [19:53:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:53:46]Read from MH i2c: E2 [19:53:46]MH_I2C_Read... [19:53:46]Read from MH i2c: E2 17 00 [19:53:46]MH_I2C_Read... [19:53:46]Read from MH i2c: E2 17 00 C5 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 9B [19:53:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:53:46]wFMCommunicate OK [19:53:46]requested_item fd.num is exist - process it [19:53:46]SAM_PROTO_GetFieldsCounters [19:53:46]wFMCommunicate request_size=4 [19:53:46]MH_SAM_APDU [19:53:46]CAPDU: 80 13 00 00 [19:53:46]Write to MH i2c: E2 08 00 C6 05 80 13 00 00 00 00 00 00 47 [19:53:46]Write i2c OK [19:53:46]MH_I2C_Read... [19:53:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:53:46]Read from MH i2c: E2 [19:53:46]MH_I2C_Read... [19:53:46]Read from MH i2c: E2 62 00 [19:53:46]MH_I2C_Read... [19:53:46]Read from MH i2c: E2 62 00 C6 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 35 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 E5 01 00 00 5E 04 04 00 E5 01 00 00 57 04 04 00 E6 01 00 00 19 04 04 00 00 00 00 00 90 00 EA [19: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 35 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 E5 01 00 00 5E 04 04 00 E5 01 00 00 57 04 04 00 E6 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:53:46]wFMCommunicate OK [19:53:46]SAM_PROTO_GetFieldsCounters done [19:53:46]requested_item shift.num is exist - process it [19:53:46]requested_item shift.opened is exist - process it [19:53:46]req_shift_opened [19:53:46]FM_GetShiftState [19:53:46]SAM_PROTO_GetShiftState [19:53:46]wFMCommunicate request_size=4 [19:53:46]MH_SAM_APDU [19:53:46]CAPDU: 80 13 01 00 [19:53:46]Write to MH i2c: E2 08 00 C7 05 80 13 01 00 00 00 00 00 49 [19:53:46]Write i2c OK [19:53:46]MH_I2C_Read... [19:53:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:53:46]Read from MH i2c: E2 [19:53:46]MH_I2C_Read... [19:53:46]Read from MH i2c: E2 0E 00 [19:53:46]MH_I2C_Read... [19:53:46]Read from MH i2c: E2 0E 00 C7 05 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 63 [19:53:46]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [19:53:46]wFMCommunicate OK [19:53:46]SAM_PROTO_GetShiftState done [19:53:46]FM_GetShiftState done [19:53:46]req_shift_opened done [19:53:46]requested_item shift.open_date is exist - process it [19:53:46]req_shift_open_date [19:53:46]req_shift_open_date done [19:53:46]produce_requested_data done [19:53:46]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227637,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [19:53:46]process_action_free close_receipt [19:53:46]json_value_free [19:53:46]json_value_free done [19:53:46]process_json_proto returns [19:53:46]Send response to host [19:53:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227637,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [19:53:46]free response buf [19:53:46]execute_script done [19:53:46]execute_script returns [19:53:46]free content buf [19:53:46]Sock 9.Close socket [19:53:46]Sock 9.Thread stoped [19:53:46]OFD Sender: No OFD packet to send [19:53:51]OFD Sender: No OFD packet to send [19:53:56]OFD Sender: No OFD packet to send [19:54:01]OFD Sender: No OFD packet to send [19:54:06]OFD Sender: No OFD packet to send [19:54:11]OFD Sender: No OFD packet to send [19:54:16]OFD Sender: No OFD packet to send [19:54:21]OFD Sender: No OFD packet to send [19:54:26]OFD Sender: No OFD packet to send [19:54:31]OFD Sender: No OFD packet to send [19:54:36]OFD Sender: No OFD packet to send [19:54:41]accept exits with 7 [19:54:41]New connection [19:54:41]New thread 3066809700 created [19:54:41]Thread 3066666340 joined [19:54:41]Waiting for new connection... [19:54:41] Sock 7.Parse request [19:54:41]Sock 7.Check first char [19:54:41]Sock 7.First char is OK [19:54:41]request: POST /json_proto HTTP/1.0 [19:54:41]Method: POST [19:54:41]URL: /json_proto [19:54:41]Method is POST - this is cgi request [19:54:41]url: /json_proto [19:54:41]query_string will be loaded in cgi processing [19:54:41]execute_cgi json_proto POST (null) [19:54:41]execute_cgi path=json_proto method=POST [19:54:41]POST find Content-Length [19:54:41]Host: 172.17.44.195:8080 [19:54:41]Content-Length: 659 [19:54:41]Content-Type: application/json [19:54:41] [19:54:41]POST finish read [19:54:41]Found Content-Length = 659 [19:54:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963300", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 8.780, "sum" : 600.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:54:41]execute_script... [19: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)1963300", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 8.780, "sum" : 600.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:54:41]POST & json_proto [19:54:41]process_json_proto [19:54:41]json parsed OK: [19:54:41]protocol is kg_v1.0 [19:54:41]action value=close_receipt [19:54:41]process_action close_receipt [19:54:41]cmd_close_receipt [19:54:41]MH_GetDate [19:54:41]Write to MH i2c: F0 00 00 C8 05 BC [19:54:41]Write i2c OK [19:54:41]MH_I2C_Read... [19:54:41]Read from MH i2c: F0 [19:54:41]MH_I2C_Read... [19:54:41]Read from MH i2c: F0 09 00 [19:54:41]MH_I2C_Read... [19:54:41]Read from MH i2c: F0 09 00 C8 05 00 02 60 15 67 82 C9 CF 66 23 [19:54:41]GetLastDocTimeStamp 1729454024 [19:54:41]current date 1729454082 [19:54:41]FM_GetShiftState [19:54:41]SAM_PROTO_GetShiftState [19:54:41]wFMCommunicate request_size=4 [19:54:41]MH_SAM_APDU [19:54:41]CAPDU: 80 13 01 00 [19:54:41]Write to MH i2c: E2 08 00 C9 05 80 13 01 00 00 00 00 00 4B [19:54:41]Write i2c OK [19:54:41]MH_I2C_Read... [19:54:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:54:41]Read from MH i2c: E2 [19:54:41]MH_I2C_Read... [19:54:41]Read from MH i2c: E2 0E 00 [19:54:41]MH_I2C_Read... [19:54:41]Read from MH i2c: E2 0E 00 C9 05 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 65 [19:54:41]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [19:54:41]wFMCommunicate OK [19:54:41]SAM_PROTO_GetShiftState done [19:54:41]FM_GetShiftState done [19:54:41]opened in 1729383750 [19:54:41]opened+sec_in_day 1729470150 [19:54:41]quantity*price = 60055 [19:54:41]sum+1 = 60056 [19:54:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 486 20.10.2024 19:54 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227638 ФПД: 48657787749860 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T195442&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227638&fm=48657787749860&tin=02508201610067®Number=0000000000091685&sum=60000 [19:54:42]StoreToDocumentArchive [19:54:42]shift 533 fd 227638 [19:54:42]save to /storage/0533/doc_00227638 [19:54:42]save last doc name /storage/0533/doc_00227638 to /storage/kkm_last_doc_name [19:54:42]save OK [19:54:42]Clear old archive folders... [19:54:42]ProcessDocumentItem done err = 0, tmpTLVsize=244 [19:54:42]tlvbuf is 00C41AD0 [19:54:42]SAM_PROTO_ClearQueue [19:54:42]wFMCommunicate request_size=4 [19:54:42]MH_SAM_APDU [19:54:42]CAPDU: 80 09 00 00 [19:54:42]Write to MH i2c: E2 08 00 D6 05 80 09 00 00 00 00 00 00 4D [19:54:42]Write i2c OK [19:54:42]MH_I2C_Read... [19:54:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:54:42]Read from MH i2c: E2 [19:54:42]MH_I2C_Read... [19:54:42]Read from MH i2c: E2 03 00 [19:54:42]MH_I2C_Read... [19:54:42]Read from MH i2c: E2 03 00 D6 05 00 90 00 4F [19:54:42]RAPDU: 90 00 [19:54:42]wFMCommunicate OK [19:54:42]SAM_PROTO_ClearQueue done [19:54:42]KKMCreateOFDPacket [19:54:42]OFDProtocolAddRootSTLVToBuf [19:54:42]FM_MakeSignedData [19:54:42]FM_MakeSignedData [19:54:42]SAM_PROTO_SignData [19:54:42]wFMCommunicate request_size=4 [19:54:42]MH_SAM_APDU [19:54:42]CAPDU: 80 0D 01 02 [19:54:42]Write to MH i2c: E2 08 00 D7 05 80 0D 01 02 00 00 00 00 55 [19:54:42]Write i2c OK [19:54:42]MH_I2C_Read... [19:54:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:54:42]Read from MH i2c: E2 [19:54:42]MH_I2C_Read... [19:54:42]Read from MH i2c: E2 03 00 [19:54:42]MH_I2C_Read... [19:54:42]Read from MH i2c: E2 03 00 D7 05 00 90 00 50 [19:54:42]RAPDU: 90 00 [19:54:42]wFMCommunicate OK [19:54:42]wFMCommunicate request_size=253 [19:54:42]MH_SAM_APDU [19:54:42]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 01 00 00 F4 03 04 00 02 60 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 36 79 03 00 35 04 06 00 2C 41 06 27 85 E4 [19:54:42]Write to MH i2c: E2 00 01 D8 05 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 01 00 00 F4 03 04 00 02 60 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 36 79 03 00 35 04 06 00 2C 41 06 27 85 E4 00 00 11 [19:54:42]Write i2c OK [19:54:42]MH_I2C_Read... [19:54:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:54:42]Read from MH i2c: E2 [19:54:42]MH_I2C_Read... [19:54:42]Read from MH i2c: E2 03 00 [19:54:42]MH_I2C_Read... [19:54:42]Read from MH i2c: E2 03 00 D8 05 00 90 00 51 [19:54:42]RAPDU: 90 00 [19:54:42]wFMCommunicate OK [19:54:42]wFMCommunicate request_size=4 [19:54:42]MH_SAM_APDU [19:54:42]CAPDU: 80 0D 03 02 [19:54:42]Write to MH i2c: E2 08 00 D9 05 80 0D 03 02 00 00 00 00 59 [19:54:42]Write i2c OK [19:54:42]MH_I2C_Read... [19:54:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:54:42]Read from MH i2c: E2 [19:54:42]MH_I2C_Read... [19:54:42]Read from MH i2c: E2 0B 00 [19:54:42]MH_I2C_Read... [19:54:42]Read from MH i2c: E2 0B 00 D9 05 00 BE DA 47 60 A8 E5 3E 01 90 00 65 [19:54:42]RAPDU: BE DA 47 60 A8 E5 3E 01 90 00 [19:54:42]wFMCommunicate OK [19:54:42]SAM_PROTO_SignData done [19:54:42]FM_MakeSignedData done [19:54:42]CreateOFDProtocolMessage [19:54:42]wFMCommunicate request_size=4 [19:54:42]MH_SAM_APDU [19:54:42]CAPDU: 80 11 00 00 [19:54:42]Write to MH i2c: E2 08 00 DA 05 80 11 00 00 00 00 00 00 59 [19:54:42]Write i2c OK [19:54:42]MH_I2C_Read... [19:54:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:54:42]Read from MH i2c: E2 [19:54:42]MH_I2C_Read... [19:54:42]Read from MH i2c: E2 17 00 [19:54:42]MH_I2C_Read... [19:54:42]Read from MH i2c: E2 17 00 DA 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B0 [19:54:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:54:42]wFMCommunicate OK [19:54:42]CreateOFDProtocolMessage done [19:54:42]OFDSenderStorePacket 227638 [19:54:42]StoreOFDPacket docnum=227638 [19:54:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 C8 00 00 01 4D 9B 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 01 00 00 F4 03 04 00 02 60 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 36 79 03 00 35 04 06 00 2C 41 06 27 85 E4 BE DA 47 60 A8 E5 3E 01 [19:54:42]CheckFolder [19:54:42]dirname=/storage/ofd_packets [19:54:42]CheckFolder done [19:54:42]ProducePacketName [19:54:42]name=ofd_packets/00227638 [19:54:42]NVStorageSaveData ofd_packets/00227638 [19:54:42]File name is /storage/ofd_packets/00227638 [19:54:42]Write 294 bytes [19:54:42]NVStorageSaveData done [19:54:42]OFDSenderStorePacket done [19:54:42]KKMCreateOFDPacket done [19:54:42]NVStorageSaveData kkm_last_timestamp [19:54:42]File name is /storage/kkm_last_timestamp [19:54:42]Write 4 bytes [19:54:42]NVStorageSaveData done [19:54:42]ExternCall_PrintAddStr [19:54:42]wPrintStart [19:54:42]Write to MH i2c: 01 00 00 DB 05 E0 [19:54:42]Write i2c OK [19:54:42]MH_I2C_Read... [19:54:42]Read from MH i2c: 01 [19:54:42]MH_I2C_Read... [19:54:42]Read from MH i2c: 01 07 00 [19:54:42]MH_I2C_Read... [19:54:42]Read from MH i2c: 01 07 00 DB 05 00 00 00 00 00 FF 0F F5 [19:54:42]RasterBufferAndPrint [19:54:42]line Счет N : (1)1963300 [19:54:42]line ИНН: 02508201610067 [19:54:42]line Контрольно-Кассовый Чек [19:54:42]line ПРОДАЖА [19:54:42]line ТРК (МРК, ГНК) : 52 [19:54:42]line Товар: 2710124130 [19:54:42]line SU-92 [19:54:42]line 8.780 * 68.40 [19:54:42]line = 600.55 [19:54:42]line НДС 12% НСП 1% [19:54:42]line > о реализуемом товаре [19:54:42]line ОКРУГЛЕНИЕ: -0.55 [19:54:42]line ИТОГО: 600.00 [19:54:42]line Внесено: 600.00 [19:54:42]line СДАЧА: 0.00 [19:54:42]line НСП 1% : 5.31 [19:54:42]line НДС 12% : 63.77 [19:54:42]line Наличными: 600.00 [19:54:42]line Безнал.: 0.00 [19:54:42]line Место: АЗС № 133 "Партнер Нефть" [19:54:42]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [19:54:42]line СНО: Общий режим [19:54:42]line Чек 486 20.10.2024 19:54 [19:54:42]line Смена: 533 ФФД: 1.0 [19:54:42]line ЗНМ: 0300000091 [19:54:42]line РНМ: 0000000000091685 [19:54:42]line Версия ККМ: 001 [19:54:42]line ФМ: 0000000000871839 [19:54:42]line ФД: 227638 [19:54:42]line ФПД: 48657787749860 [19:54:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T195442&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227638&fm=48657787749860&tin=02508201610067®Number=0000000000091685&sum=60000 [19:54:43]OFD Sender: Processing packet 227638 [packets to send 38, broken 37] [19:54:43]ProducePacketName [19:54:43]name=ofd_packets/00227638 [19:54:43]OFD Sender: To server: pG, [19:54:43]CommunicateWithHost lk.salyk.kg:30040 [19:54:43]ConnectInit lk.salyk.kg [19:54:43]written 0, free lines is 4095 [19:54:43]Connected sock=10 [19: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 33 39 08 01 00 00 C8 00 00 01 4D 9B 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 01 00 00 F4 03 04 00 02 60 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 36 79 03 00 35 04 06 00 2C 41 06 27 85 E4 BE DA 47 60 A8 E5 3E 01 [19: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 33 39 4F 00 00 00 B8 AF 47 00 A3 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 33 39 10 04 04 00 36 79 03 00 F4 03 04 00 00 0B 15 67 B6 04 01 00 00 0F D5 D4 F3 86 D6 F1 D3 [19:54:43]CommunicateWithHost err = 0 [19:54:43]CheckOFDResponse [19:54:43]1017 (14) - 77093643461234 [19:54:43]1041 (16) - 0000000000871839 [19:54:43]1040 (4) - 227638 [19:54:43]1012 (4) - 20.10.2024 13:52 [19:54:43]1206 (1) - 0 [19:54:43]OFD Sender: Remove packet 227638 [19:54:43]ProducePacketName [19:54:43]name=ofd_packets/00227638 [19:54:43]NVStorageDeleteData [19:54:43]Write to MH i2c: 01 00 00 05 06 0B [19:54:43]Write i2c OK [19:54:43]MH_I2C_Read... [19:54:43]Read from MH i2c: 01 [19:54:43]MH_I2C_Read... [19:54:43]Read from MH i2c: 01 07 00 [19:54:43]MH_I2C_Read... [19:54:43]Read from MH i2c: 01 07 00 05 06 00 00 00 00 00 B5 0C D3 [19:54:43]RasterBufferAndPrint [19:54:43]line [19:54:43]line [19:54:43]line [19:54:43]line [19:54:43]line [19:54:43]written 0, free lines is 3256 [19:54:43]process_action close_receipt done [19:54:43]requested_data is exist [19:54:43]produce_requested_data [19:54:43]requested_item fm.sn is exist - process it [19:54:43]wFMCommunicate request_size=4 [19:54:43]MH_SAM_APDU [19:54:43]CAPDU: 80 11 00 00 [19:54:43]Write to MH i2c: E2 08 00 0C 06 80 11 00 00 00 00 00 00 8C [19:54:43]Write i2c OK [19:54:43]MH_I2C_Read... [19:54:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:54:43]Read from MH i2c: E2 [19:54:43]MH_I2C_Read... [19:54:43]Read from MH i2c: E2 17 00 [19:54:43]MH_I2C_Read... [19:54:43]Read from MH i2c: E2 17 00 0C 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E3 [19:54:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:54:43]wFMCommunicate OK [19:54:43]requested_item fd.num is exist - process it [19:54:43]SAM_PROTO_GetFieldsCounters [19:54:43]wFMCommunicate request_size=4 [19:54:43]MH_SAM_APDU [19:54:43]CAPDU: 80 13 00 00 [19:54:43]Write to MH i2c: E2 08 00 0D 06 80 13 00 00 00 00 00 00 8F [19:54:43]Write i2c OK [19:54:43]MH_I2C_Read... [19:54:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:54:43]Read from MH i2c: E2 [19:54:43]MH_I2C_Read... [19:54:43]Read from MH i2c: E2 62 00 [19:54:43]MH_I2C_Read... [19:54:43]Read from MH i2c: E2 62 00 0D 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 36 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 E6 01 00 00 5E 04 04 00 E6 01 00 00 57 04 04 00 E7 01 00 00 19 04 04 00 00 00 00 00 90 00 36 [19:54:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 36 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 E6 01 00 00 5E 04 04 00 E6 01 00 00 57 04 04 00 E7 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:54:43]wFMCommunicate OK [19:54:43]SAM_PROTO_GetFieldsCounters done [19:54:43]requested_item shift.num is exist - process it [19:54:43]requested_item shift.opened is exist - process it [19:54:43]req_shift_opened [19:54:43]FM_GetShiftState [19:54:43]SAM_PROTO_GetShiftState [19:54:43]wFMCommunicate request_size=4 [19:54:43]MH_SAM_APDU [19:54:43]CAPDU: 80 13 01 00 [19:54:43]Write to MH i2c: E2 08 00 0E 06 80 13 01 00 00 00 00 00 91 [19:54:43]Write i2c OK [19:54:43]MH_I2C_Read... [19:54:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:54:43]Read from MH i2c: E2 [19:54:43]MH_I2C_Read... [19:54:43]Read from MH i2c: E2 0E 00 [19:54:43]MH_I2C_Read... [19:54:43]Read from MH i2c: E2 0E 00 0E 06 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 AB [19:54:43]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [19:54:43]wFMCommunicate OK [19:54:43]SAM_PROTO_GetShiftState done [19:54:43]FM_GetShiftState done [19:54:43]req_shift_opened done [19:54:43]requested_item shift.open_date is exist - process it [19:54:43]req_shift_open_date [19:54:43]req_shift_open_date done [19:54:43]produce_requested_data done [19:54:43]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227638,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [19:54:43]process_action_free close_receipt [19:54:43]json_value_free [19:54:43]json_value_free done [19:54:43]process_json_proto returns [19:54:43]Send response to host [19:54:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227638,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [19:54:43]free response buf [19:54:43]execute_script done [19:54:43]execute_script returns [19:54:43]free content buf [19:54:43]Sock 7.Close socket [19:54:43]Sock 7.Thread stoped [19:54:43]OFD Sender: No OFD packet to send [19:54:48]OFD Sender: No OFD packet to send [19:54:54]OFD Sender: No OFD packet to send [19:54:59]OFD Sender: No OFD packet to send [19:55:04]OFD Sender: No OFD packet to send [19:55:09]OFD Sender: No OFD packet to send [19:55:14]OFD Sender: No OFD packet to send [19:55:19]OFD Sender: No OFD packet to send [19:55:24]OFD Sender: No OFD packet to send [19:55:29]OFD Sender: No OFD packet to send [19:55:34]OFD Sender: No OFD packet to send [19:55:39]OFD Sender: No OFD packet to send [19:55:44]OFD Sender: No OFD packet to send [19:55:49]OFD Sender: No OFD packet to send [19:55:54]OFD Sender: No OFD packet to send [19:55:59]OFD Sender: No OFD packet to send [19:56:04]OFD Sender: No OFD packet to send [19:56:09]OFD Sender: No OFD packet to send [19:56:14]OFD Sender: No OFD packet to send [19:56:19]OFD Sender: No OFD packet to send [19:56:24]OFD Sender: No OFD packet to send [19:56:29]OFD Sender: No OFD packet to send [19:56:34]OFD Sender: No OFD packet to send [19:56:39]OFD Sender: No OFD packet to send [19:56:44]OFD Sender: No OFD packet to send [19:56:49]OFD Sender: No OFD packet to send [19:56:54]OFD Sender: No OFD packet to send [19:56:59]OFD Sender: No OFD packet to send [19:57:04]OFD Sender: No OFD packet to send [19:57:09]OFD Sender: No OFD packet to send [19:57:14]OFD Sender: No OFD packet to send [19:57:19]OFD Sender: No OFD packet to send [19:57:24]OFD Sender: No OFD packet to send [19:57:29]OFD Sender: No OFD packet to send [19:57:34]OFD Sender: No OFD packet to send [19:57:39]OFD Sender: No OFD packet to send [19:57:44]OFD Sender: No OFD packet to send [19:57:49]OFD Sender: No OFD packet to send [19:57:54]OFD Sender: No OFD packet to send [19:57:59]OFD Sender: No OFD packet to send [19:58:04]OFD Sender: No OFD packet to send [19:58:08]accept exits with 9 [19:58:08]New connection [19:58:08]New thread 3066666340 created [19:58:08]Thread 3066809700 joined [19:58:08]Waiting for new connection... [19:58:08] Sock 9.Parse request [19:58:08]Sock 9.Check first char [19:58:08]Sock 9.First char is OK [19:58:08]request: POST /json_proto HTTP/1.0 [19:58:08]Method: POST [19:58:08]URL: /json_proto [19:58:08]Method is POST - this is cgi request [19:58:08]url: /json_proto [19:58:08]query_string will be loaded in cgi processing [19:58:08]execute_cgi json_proto POST (null) [19:58:08]execute_cgi path=json_proto method=POST [19:58:08]POST find Content-Length [19:58:08]Host: 172.17.44.195:8080 [19:58:08]Content-Length: 675 [19:58:08]Content-Type: application/json [19:58:08] [19:58:08]POST finish read [19:58:08]Found Content-Length = 675 [19:58:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963302", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 2.630, "sum" : 200.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:58:08]execute_script... [19:58: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)1963302", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 2.630, "sum" : 200.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:58:08]POST & json_proto [19:58:08]process_json_proto [19:58:08]json parsed OK: [19:58:08]protocol is kg_v1.0 [19:58:08]action value=close_receipt [19:58:08]process_action close_receipt [19:58:08]cmd_close_receipt [19:58:08]MH_GetDate [19:58:08]Write to MH i2c: F0 00 00 0F 06 04 [19:58:08]Write i2c OK [19:58:08]MH_I2C_Read... [19:58:08]Read from MH i2c: F0 [19:58:08]MH_I2C_Read... [19:58:08]Read from MH i2c: F0 09 00 [19:58:08]MH_I2C_Read... [19:58:08]Read from MH i2c: F0 09 00 0F 06 00 D1 60 15 67 82 C9 CF 66 3A [19:58:08]GetLastDocTimeStamp 1729454082 [19:58:08]current date 1729454289 [19:58:08]FM_GetShiftState [19:58:08]SAM_PROTO_GetShiftState [19:58:08]wFMCommunicate request_size=4 [19:58:08]MH_SAM_APDU [19:58:08]CAPDU: 80 13 01 00 [19:58:08]Write to MH i2c: E2 08 00 10 06 80 13 01 00 00 00 00 00 93 [19:58:08]Write i2c OK [19:58:08]MH_I2C_Read... [19:58:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:58:08]Read from MH i2c: E2 [19:58:08]MH_I2C_Read... [19:58:08]Read from MH i2c: E2 0E 00 [19:58:08]MH_I2C_Read... [19:58:08]Read from MH i2c: E2 0E 00 10 06 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 AD [19:58:08]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [19:58:08]wFMCommunicate OK [19:58:08]SAM_PROTO_GetShiftState done [19:58:08]FM_GetShiftState done [19:58:08]opened in 1729383750 [19:58:08]opened+sec_in_day 1729470150 [19:58:08]quantity*price = 20040 [19:58:08]sum+1 = 20042 [19:58:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.28 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 487 20.10.2024 19:58 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227639 ФПД: 71691212988957 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T195809&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227639&fm=71691212988957&tin=02508201610067®Number=0000000000091685&sum=20000 [19:58:10]StoreToDocumentArchive [19:58:10]shift 533 fd 227639 [19:58:10]save to /storage/0533/doc_00227639 [19:58:10]save last doc name /storage/0533/doc_00227639 to /storage/kkm_last_doc_name [19:58:10]save OK [19:58:10]Clear old archive folders... [19:58:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:58:10]tlvbuf is 00C8E4D0 [19:58:10]SAM_PROTO_ClearQueue [19:58:10]wFMCommunicate request_size=4 [19:58:10]MH_SAM_APDU [19:58:10]CAPDU: 80 09 00 00 [19:58:10]Write to MH i2c: E2 08 00 1D 06 80 09 00 00 00 00 00 00 95 [19:58:10]Write i2c OK [19:58:10]MH_I2C_Read... [19:58:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:58:10]Read from MH i2c: E2 [19:58:10]MH_I2C_Read... [19:58:10]Read from MH i2c: E2 03 00 [19:58:10]MH_I2C_Read... [19:58:10]Read from MH i2c: E2 03 00 1D 06 00 90 00 97 [19:58:10]RAPDU: 90 00 [19:58:10]wFMCommunicate OK [19:58:10]SAM_PROTO_ClearQueue done [19:58:10]KKMCreateOFDPacket [19:58:10]OFDProtocolAddRootSTLVToBuf [19:58:10]FM_MakeSignedData [19:58:10]FM_MakeSignedData [19:58:10]SAM_PROTO_SignData [19:58:10]wFMCommunicate request_size=4 [19:58:10]MH_SAM_APDU [19:58:10]CAPDU: 80 0D 01 02 [19:58:10]Write to MH i2c: E2 08 00 1E 06 80 0D 01 02 00 00 00 00 9D [19:58:10]Write i2c OK [19:58:10]MH_I2C_Read... [19:58:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:58:10]Read from MH i2c: E2 [19:58:10]MH_I2C_Read... [19:58:10]Read from MH i2c: E2 03 00 [19:58:10]MH_I2C_Read... [19:58:10]Read from MH i2c: E2 03 00 1E 06 00 90 00 98 [19:58:10]RAPDU: 90 00 [19:58:10]wFMCommunicate OK [19:58:10]wFMCommunicate request_size=255 [19:58:10]MH_SAM_APDU [19:58:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 E7 01 00 00 F4 03 04 00 D1 60 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 37 79 03 00 35 04 06 00 41 33 E9 48 [19:58:10]Write to MH i2c: E2 02 01 1F 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 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 E7 01 00 00 F4 03 04 00 D1 60 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 37 79 03 00 35 04 06 00 41 33 E9 48 00 00 B3 [19:58:10]Write i2c OK [19:58:10]MH_I2C_Read... [19:58:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:58:10]Read from MH i2c: E2 [19:58:10]MH_I2C_Read... [19:58:10]Read from MH i2c: E2 03 00 [19:58:10]MH_I2C_Read... [19:58:10]Read from MH i2c: E2 03 00 1F 06 00 90 00 99 [19:58:10]RAPDU: 90 00 [19:58:10]wFMCommunicate OK [19:58:10]wFMCommunicate request_size=7 [19:58:10]MH_SAM_APDU [19:58:10]CAPDU: 80 0D 02 02 02 A2 1D [19:58:10]Write to MH i2c: E2 0A 00 20 06 80 0D 02 02 02 00 A2 1D 00 00 63 [19:58:10]Write i2c OK [19:58:10]MH_I2C_Read... [19:58:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:58:10]Read from MH i2c: E2 [19:58:10]MH_I2C_Read... [19:58:10]Read from MH i2c: E2 03 00 [19:58:10]MH_I2C_Read... [19:58:10]Read from MH i2c: E2 03 00 20 06 00 90 00 9A [19:58:10]RAPDU: 90 00 [19:58:10]wFMCommunicate OK [19:58:10]wFMCommunicate request_size=4 [19:58:10]MH_SAM_APDU [19:58:10]CAPDU: 80 0D 03 02 [19:58:10]Write to MH i2c: E2 08 00 21 06 80 0D 03 02 00 00 00 00 A2 [19:58:10]Write i2c OK [19:58:10]MH_I2C_Read... [19:58:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:58:10]Read from MH i2c: E2 [19:58:10]MH_I2C_Read... [19:58:10]Read from MH i2c: E2 0B 00 [19:58:10]MH_I2C_Read... [19:58:10]Read from MH i2c: E2 0B 00 21 06 00 28 C2 3D 41 F4 F1 A5 3A 90 00 CF [19:58:10]RAPDU: 28 C2 3D 41 F4 F1 A5 3A 90 00 [19:58:10]wFMCommunicate OK [19:58:10]SAM_PROTO_SignData done [19:58:10]FM_MakeSignedData done [19:58:10]CreateOFDProtocolMessage [19:58:10]wFMCommunicate request_size=4 [19:58:10]MH_SAM_APDU [19:58:10]CAPDU: 80 11 00 00 [19:58:10]Write to MH i2c: E2 08 00 22 06 80 11 00 00 00 00 00 00 A2 [19:58:10]Write i2c OK [19:58:10]MH_I2C_Read... [19:58:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:58:10]Read from MH i2c: E2 [19:58:10]MH_I2C_Read... [19:58:10]Read from MH i2c: E2 17 00 [19:58:10]MH_I2C_Read... [19:58:10]Read from MH i2c: E2 17 00 22 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F9 [19:58:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:58:10]wFMCommunicate OK [19:58:10]CreateOFDProtocolMessage done [19:58:10]OFDSenderStorePacket 227639 [19:58:10]StoreOFDPacket docnum=227639 [19:58:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 BC 91 04 01 D1 EA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 E7 01 00 00 F4 03 04 00 D1 60 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 37 79 03 00 35 04 06 00 41 33 E9 48 A2 1D 28 C2 3D 41 F4 F1 A5 3A [19:58:10]CheckFolder [19:58:10]dirname=/storage/ofd_packets [19:58:10]CheckFolder done [19:58:10]ProducePacketName [19:58:10]name=ofd_packets/00227639 [19:58:10]NVStorageSaveData ofd_packets/00227639 [19:58:10]File name is /storage/ofd_packets/00227639 [19:58:10]Write 298 bytes [19:58:10]NVStorageSaveData done [19:58:10]OFDSenderStorePacket done [19:58:10]KKMCreateOFDPacket done [19:58:10]NVStorageSaveData kkm_last_timestamp [19:58:10]File name is /storage/kkm_last_timestamp [19:58:10]Write 4 bytes [19:58:10]NVStorageSaveData done [19:58:10]ExternCall_PrintAddStr [19:58:10]wPrintStart [19:58:10]Write to MH i2c: 01 00 00 23 06 29 [19:58:10]Write i2c OK [19:58:10]MH_I2C_Read... [19:58:10]Read from MH i2c: 01 [19:58:10]MH_I2C_Read... [19:58:10]Read from MH i2c: 01 07 00 [19:58:10]MH_I2C_Read... [19:58:10]Read from MH i2c: 01 07 00 23 06 00 00 00 00 00 FF 0F 3E [19:58:10]RasterBufferAndPrint [19:58:10]line Счет N : (1)1963302 [19:58:10]line ИНН: 02508201610067 [19:58:10]line Контрольно-Кассовый Чек [19:58:10]line ПРОДАЖА [19:58:10]line ТРК (МРК, ГНК) : 21 [19:58:10]line Товар: 2710194210 [19:58:10]line ДТ-К-5 [19:58:10]line 2.630 * 76.20 [19:58:10]line = 200.41 [19:58:10]line НДС 12% НСП 1% [19:58:10]line > о реализуемом товаре [19:58:10]line ОКРУГЛЕНИЕ: -0.41 [19:58:10]line ИТОГО: 200.00 [19:58:10]line Внесено: 200.00 [19:58:10]line СДАЧА: 0.00 [19:58:10]line НСП 1% : 1.77 [19:58:10]line НДС 12% : 21.28 [19:58:10]line Наличными: 200.00 [19:58:10]line Безнал.: 0.00 [19:58:10]line Место: АЗС № 133 "Партнер Нефть" [19:58:10]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [19:58:10]line СНО: Общий режим [19:58:10]line Чек 487 20.10.2024 19:58 [19:58:10]line Смена: 533 ФФД: 1.0 [19:58:10]line ЗНМ: 0300000091 [19:58:10]line РНМ: 0000000000091685 [19:58:10]line Версия ККМ: 001 [19:58:10]line ФМ: 0000000000871839 [19:58:10]line ФД: 227639 [19:58:10]line ФПД: 71691212988957 [19:58:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T195809&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227639&fm=71691212988957&tin=02508201610067®Number=0000000000091685&sum=20000 [19:58:10]OFD Sender: Processing packet 227639 [packets to send 38, broken 37] [19:58:10]ProducePacketName [19:58:10]name=ofd_packets/00227639 [19:58:10]OFD Sender: To server: pG, [19:58:10]CommunicateWithHost lk.salyk.kg:30040 [19:58:10]ConnectInit lk.salyk.kg [19:58:10]written 0, free lines is 4095 [19:58:10]Connected sock=7 [19:58: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 33 39 0C 01 00 00 BC 91 04 01 D1 EA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 E7 01 00 00 F4 03 04 00 D1 60 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 37 79 03 00 35 04 06 00 41 33 E9 48 A2 1D 28 C2 3D 41 F4 F1 A5 3A [19:58: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 33 39 4F 00 00 00 B8 AC 47 00 57 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 33 39 10 04 04 00 37 79 03 00 F4 03 04 00 CF 0B 15 67 B6 04 01 00 00 9D 9B 81 09 A3 3C 4A 39 [19:58:11]CommunicateWithHost err = 0 [19:58:11]CheckOFDResponse [19:58:11]1017 (14) - 77093643461234 [19:58:11]1041 (16) - 0000000000871839 [19:58:11]1040 (4) - 227639 [19:58:11]1012 (4) - 20.10.2024 13:55 [19:58:11]1206 (1) - 0 [19:58:11]OFD Sender: Remove packet 227639 [19:58:11]ProducePacketName [19:58:11]name=ofd_packets/00227639 [19:58:11]NVStorageDeleteData [19:58:11]Write to MH i2c: 01 00 00 4D 06 53 [19:58:11]Write i2c OK [19:58:11]MH_I2C_Read... [19:58:11]Read from MH i2c: 01 [19:58:11]MH_I2C_Read... [19:58:11]Read from MH i2c: 01 07 00 [19:58:11]MH_I2C_Read... [19:58:11]Read from MH i2c: 01 07 00 4D 06 00 00 00 00 00 A9 0C 0F [19:58:11]RasterBufferAndPrint [19:58:11]line [19:58:11]line [19:58:11]line [19:58:11]line [19:58:11]line [19:58:11]written 0, free lines is 3246 [19:58:11]MH_Cut [19:58:11]Write to MH i2c: D1 01 00 54 06 01 2C [19:58:11]Write i2c OK [19:58:11]MH_I2C_Read... [19:58:11]Read from MH i2c: D1 [19:58:11]MH_I2C_Read... [19:58:11]Read from MH i2c: D1 01 00 [19:58:11]MH_I2C_Read... [19:58:11]Read from MH i2c: D1 01 00 54 06 00 2B [19:58:11]Write to MH i2c: 01 00 00 55 06 5B [19:58:11]Write i2c OK [19:58:11]MH_I2C_Read... [19:58:11]OFD Sender: No OFD packet to send [19:58:12]*** Cut start [19:58:12]*** Partial cut [19:58:12]*** CUTSNS_PIN = 1 [19:58:12]*** CUTSNS_PIN = 0 [19:58:12]*** Brake cut motor [19:58:12]Read from MH i2c: 01 [19:58:12]MH_I2C_Read... [19:58:12]*** Stop cut motor [19:58:12]*** Cut end [19:58:12]Read from MH i2c: 01 07 00 [19:58:12]MH_I2C_Read... [19:58:12]Read from MH i2c: 01 07 00 55 06 00 00 00 00 00 FF 0F 70 [19:58:12]process_action close_receipt done [19:58:12]requested_data is exist [19:58:12]produce_requested_data [19:58:12]requested_item fm.sn is exist - process it [19:58:12]wFMCommunicate request_size=4 [19:58:12]MH_SAM_APDU [19:58:12]CAPDU: 80 11 00 00 [19:58:12]Write to MH i2c: E2 08 00 56 06 80 11 00 00 00 00 00 00 D6 [19:58:12]Write i2c OK [19:58:12]MH_I2C_Read... [19:58:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:58:12]Read from MH i2c: E2 [19:58:12]MH_I2C_Read... [19:58:12]Read from MH i2c: E2 17 00 [19:58:12]MH_I2C_Read... [19:58:12]Read from MH i2c: E2 17 00 56 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 2D [19:58:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:58:12]wFMCommunicate OK [19:58:12]requested_item fd.num is exist - process it [19:58:12]SAM_PROTO_GetFieldsCounters [19:58:12]wFMCommunicate request_size=4 [19:58:12]MH_SAM_APDU [19:58:12]CAPDU: 80 13 00 00 [19:58:12]Write to MH i2c: E2 08 00 57 06 80 13 00 00 00 00 00 00 D9 [19:58:12]Write i2c OK [19:58:12]MH_I2C_Read... [19:58:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:58:13]Read from MH i2c: E2 [19:58:13]MH_I2C_Read... [19:58:13]Read from MH i2c: E2 62 00 [19:58:13]MH_I2C_Read... [19:58:13]Read from MH i2c: E2 62 00 57 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 37 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 E7 01 00 00 5E 04 04 00 E7 01 00 00 57 04 04 00 E8 01 00 00 19 04 04 00 00 00 00 00 90 00 84 [19:58: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 37 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 E7 01 00 00 5E 04 04 00 E7 01 00 00 57 04 04 00 E8 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:58:13]wFMCommunicate OK [19:58:13]SAM_PROTO_GetFieldsCounters done [19:58:13]requested_item shift.num is exist - process it [19:58:13]requested_item shift.opened is exist - process it [19:58:13]req_shift_opened [19:58:13]FM_GetShiftState [19:58:13]SAM_PROTO_GetShiftState [19:58:13]wFMCommunicate request_size=4 [19:58:13]MH_SAM_APDU [19:58:13]CAPDU: 80 13 01 00 [19:58:13]Write to MH i2c: E2 08 00 58 06 80 13 01 00 00 00 00 00 DB [19:58:13]Write i2c OK [19:58:13]MH_I2C_Read... [19:58:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:58:13]Read from MH i2c: E2 [19:58:13]MH_I2C_Read... [19:58:13]Read from MH i2c: E2 0E 00 [19:58:13]MH_I2C_Read... [19:58:13]Read from MH i2c: E2 0E 00 58 06 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 F5 [19:58:13]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [19:58:13]wFMCommunicate OK [19:58:13]SAM_PROTO_GetShiftState done [19:58:13]FM_GetShiftState done [19:58:13]req_shift_opened done [19:58:13]requested_item shift.open_date is exist - process it [19:58:13]req_shift_open_date [19:58:13]req_shift_open_date done [19:58:13]produce_requested_data done [19:58:13]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227639,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [19:58:13]process_action_free close_receipt [19:58:13]json_value_free [19:58:13]json_value_free done [19:58:13]process_json_proto returns [19:58:13]Send response to host [19:58:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227639,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [19:58:13]free response buf [19:58:13]execute_script done [19:58:13]execute_script returns [19:58:13]free content buf [19:58:13]Sock 9.Close socket [19:58:13]Sock 9.Thread stoped [19:58:16]OFD Sender: No OFD packet to send [19:58:21]OFD Sender: No OFD packet to send [19:58:26]OFD Sender: No OFD packet to send [19:58:31]OFD Sender: No OFD packet to send [19:58:36]OFD Sender: No OFD packet to send [19:58:41]OFD Sender: No OFD packet to send [19:58:46]OFD Sender: No OFD packet to send [19:58:51]OFD Sender: No OFD packet to send [19:58:56]OFD Sender: No OFD packet to send [19:59:01]OFD Sender: No OFD packet to send [19:59:06]OFD Sender: No OFD packet to send [19:59:10]accept exits with 10 [19:59:10]New connection [19:59:10]New thread 3066809700 created [19:59:10]Thread 3066666340 joined [19:59:10]Waiting for new connection... [19:59:10] Sock 10.Parse request [19:59:10]Sock 10.Check first char [19:59:10]Sock 10.First char is OK [19:59:10]request: POST /json_proto HTTP/1.0 [19:59:10]Method: POST [19:59:10]URL: /json_proto [19:59:10]Method is POST - this is cgi request [19:59:10]url: /json_proto [19:59:10]query_string will be loaded in cgi processing [19:59:10]execute_cgi json_proto POST (null) [19:59:10]execute_cgi path=json_proto method=POST [19:59:10]POST find Content-Length [19:59:10]Host: 172.17.44.195:8080 [19:59:10]Content-Length: 679 [19:59:10]Content-Type: application/json [19:59:10] [19:59:10]POST finish read [19:59:10]Found Content-Length = 679 [19:59:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963303", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 12.560, "sum" : 840.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 840.00, "total" : 840.00, "payments": [ { "type": 0, "sum" : 840.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:59:10]execute_script... [19:59:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963303", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 12.560, "sum" : 840.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 840.00, "total" : 840.00, "payments": [ { "type": 0, "sum" : 840.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:59:10]POST & json_proto [19:59:10]process_json_proto [19:59:10]json parsed OK: [19:59:10]protocol is kg_v1.0 [19:59:10]action value=close_receipt [19:59:10]process_action close_receipt [19:59:10]cmd_close_receipt [19:59:10]MH_GetDate [19:59:10]Write to MH i2c: F0 00 00 59 06 4E [19:59:10]Write i2c OK [19:59:10]MH_I2C_Read... [19:59:10]Read from MH i2c: F0 [19:59:10]MH_I2C_Read... [19:59:10]Read from MH i2c: F0 09 00 [19:59:10]MH_I2C_Read... [19:59:10]Read from MH i2c: F0 09 00 59 06 00 0F 61 15 67 82 C9 CF 66 C3 [19:59:10]GetLastDocTimeStamp 1729454289 [19:59:10]current date 1729454351 [19:59:10]FM_GetShiftState [19:59:10]SAM_PROTO_GetShiftState [19:59:10]wFMCommunicate request_size=4 [19:59:10]MH_SAM_APDU [19:59:10]CAPDU: 80 13 01 00 [19:59:10]Write to MH i2c: E2 08 00 5A 06 80 13 01 00 00 00 00 00 DD [19:59:10]Write i2c OK [19:59:10]MH_I2C_Read... [19:59:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:59:10]Read from MH i2c: E2 [19:59:10]MH_I2C_Read... [19:59:10]Read from MH i2c: E2 0E 00 [19:59:10]MH_I2C_Read... [19:59:10]Read from MH i2c: E2 0E 00 5A 06 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 F7 [19:59:10]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [19:59:10]wFMCommunicate OK [19:59:10]SAM_PROTO_GetShiftState done [19:59:10]FM_GetShiftState done [19:59:10]opened in 1729383750 [19:59:10]opened+sec_in_day 1729470150 [19:59:10]quantity*price = 84026 [19:59:10]sum+1 = 84027 [19:59:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 840.00 Внесено: 840.00 СДАЧА: 0.00 НСП 1% : 7.44 НДС 12% : 89.23 Наличными: 840.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 488 20.10.2024 19:59 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227640 ФПД: 69834681646979 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T195911&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227640&fm=69834681646979&tin=02508201610067®Number=0000000000091685&sum=84000 [19:59:11]StoreToDocumentArchive [19:59:11]shift 533 fd 227640 [19:59:11]save to /storage/0533/doc_00227640 [19:59:11]save last doc name /storage/0533/doc_00227640 to /storage/kkm_last_doc_name [19:59:11]save OK [19:59:11]Clear old archive folders... [19:59:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:59:11]tlvbuf is 00C182A0 [19:59:11]SAM_PROTO_ClearQueue [19:59:11]wFMCommunicate request_size=4 [19:59:11]MH_SAM_APDU [19:59:11]CAPDU: 80 09 00 00 [19:59:11]Write to MH i2c: E2 08 00 67 06 80 09 00 00 00 00 00 00 DF [19:59:11]Write i2c OK [19:59:11]MH_I2C_Read... [19:59:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:59:11]Read from MH i2c: E2 [19:59:11]MH_I2C_Read... [19:59:11]Read from MH i2c: E2 03 00 [19:59:11]MH_I2C_Read... [19:59:11]Read from MH i2c: E2 03 00 67 06 00 90 00 E1 [19:59:11]RAPDU: 90 00 [19:59:11]wFMCommunicate OK [19:59:11]SAM_PROTO_ClearQueue done [19:59:11]KKMCreateOFDPacket [19:59:11]OFDProtocolAddRootSTLVToBuf [19:59:11]FM_MakeSignedData [19:59:11]FM_MakeSignedData [19:59:11]SAM_PROTO_SignData [19:59:11]wFMCommunicate request_size=4 [19:59:11]MH_SAM_APDU [19:59:11]CAPDU: 80 0D 01 02 [19:59:11]Write to MH i2c: E2 08 00 68 06 80 0D 01 02 00 00 00 00 E7 [19:59:11]Write i2c OK [19:59:11]MH_I2C_Read... [19:59:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:59:11]Read from MH i2c: E2 [19:59:11]MH_I2C_Read... [19:59:11]Read from MH i2c: E2 03 00 [19:59:11]MH_I2C_Read... [19:59:11]Read from MH i2c: E2 03 00 68 06 00 90 00 E2 [19:59:11]RAPDU: 90 00 [19:59:11]wFMCommunicate OK [19:59:11]wFMCommunicate request_size=255 [19:59:11]MH_SAM_APDU [19:59:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3A 48 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 48 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E8 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DB 22 00 00 00 00 07 04 06 00 20 48 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 01 00 00 F4 03 04 00 0F 61 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 38 79 03 00 35 04 06 00 3F [19:59:11]Write to MH i2c: E2 02 01 69 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3A 48 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 48 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E8 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DB 22 00 00 00 00 07 04 06 00 20 48 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 01 00 00 F4 03 04 00 0F 61 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 38 79 03 00 35 04 06 00 3F 00 00 91 [19:59:11]Write i2c OK [19:59:11]MH_I2C_Read... [19:59:11]OFD Sender: No OFD packet to send [19:59:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:59:11]Read from MH i2c: E2 [19:59:11]MH_I2C_Read... [19:59:11]Read from MH i2c: E2 03 00 [19:59:11]MH_I2C_Read... [19:59:11]Read from MH i2c: E2 03 00 69 06 00 90 00 E3 [19:59:11]RAPDU: 90 00 [19:59:11]wFMCommunicate OK [19:59:11]wFMCommunicate request_size=10 [19:59:11]MH_SAM_APDU [19:59:11]CAPDU: 80 0D 02 02 05 83 A7 64 7F 83 [19:59:11]Write to MH i2c: E2 0D 00 6A 06 80 0D 02 02 05 00 83 A7 64 7F 83 00 00 84 [19:59:11]Write i2c OK [19:59:11]MH_I2C_Read... [19:59:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:59:11]Read from MH i2c: E2 [19:59:11]MH_I2C_Read... [19:59:11]Read from MH i2c: E2 03 00 [19:59:11]MH_I2C_Read... [19:59:11]Read from MH i2c: E2 03 00 6A 06 00 90 00 E4 [19:59:11]RAPDU: 90 00 [19:59:11]wFMCommunicate OK [19:59:11]wFMCommunicate request_size=4 [19:59:11]MH_SAM_APDU [19:59:11]CAPDU: 80 0D 03 02 [19:59:11]Write to MH i2c: E2 08 00 6B 06 80 0D 03 02 00 00 00 00 EC [19:59:11]Write i2c OK [19:59:11]MH_I2C_Read... [19:59:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:59:12]Read from MH i2c: E2 [19:59:12]MH_I2C_Read... [19:59:12]Read from MH i2c: E2 0B 00 [19:59:12]MH_I2C_Read... [19:59:12]Read from MH i2c: E2 0B 00 6B 06 00 32 42 24 98 1B E9 63 5F 90 00 E3 [19:59:12]RAPDU: 32 42 24 98 1B E9 63 5F 90 00 [19:59:12]wFMCommunicate OK [19:59:12]SAM_PROTO_SignData done [19:59:12]FM_MakeSignedData done [19:59:12]CreateOFDProtocolMessage [19:59:12]wFMCommunicate request_size=4 [19:59:12]MH_SAM_APDU [19:59:12]CAPDU: 80 11 00 00 [19:59:12]Write to MH i2c: E2 08 00 6C 06 80 11 00 00 00 00 00 00 EC [19:59:12]Write i2c OK [19:59:12]MH_I2C_Read... [19:59:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:59:12]Read from MH i2c: E2 [19:59:12]MH_I2C_Read... [19:59:12]Read from MH i2c: E2 17 00 [19:59:12]MH_I2C_Read... [19:59:12]Read from MH i2c: E2 17 00 6C 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 43 [19:59:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:59:12]wFMCommunicate OK [19:59:12]CreateOFDProtocolMessage done [19:59:12]OFDSenderStorePacket 227640 [19:59:12]StoreOFDPacket docnum=227640 [19:59:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 7F 38 07 01 2D F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3A 48 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 48 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E8 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DB 22 00 00 00 00 07 04 06 00 20 48 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 01 00 00 F4 03 04 00 0F 61 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 38 79 03 00 35 04 06 00 3F 83 A7 64 7F 83 32 42 24 98 1B E9 63 5F [19:59:12]CheckFolder [19:59:12]dirname=/storage/ofd_packets [19:59:12]CheckFolder done [19:59:12]ProducePacketName [19:59:12]name=ofd_packets/00227640 [19:59:12]NVStorageSaveData ofd_packets/00227640 [19:59:12]File name is /storage/ofd_packets/00227640 [19:59:12]Write 301 bytes [19:59:12]NVStorageSaveData done [19:59:12]OFDSenderStorePacket done [19:59:12]KKMCreateOFDPacket done [19:59:12]NVStorageSaveData kkm_last_timestamp [19:59:12]File name is /storage/kkm_last_timestamp [19:59:12]Write 4 bytes [19:59:12]NVStorageSaveData done [19:59:12]ExternCall_PrintAddStr [19:59:12]wPrintStart [19:59:12]Write to MH i2c: 01 00 00 6D 06 73 [19:59:12]OFD Sender: Processing packet 227640 [packets to send 38, broken 37] [19:59:12]ProducePacketName [19:59:12]name=ofd_packets/00227640 [19:59:12]OFD Sender: To server: pG, [19:59:12]CommunicateWithHost lk.salyk.kg:30040 [19:59:12]ConnectInit lk.salyk.kg [19:59:12]Write i2c OK [19:59:12]MH_I2C_Read... [19:59:12]Read from MH i2c: 01 [19:59:12]MH_I2C_Read... [19:59:12]Read from MH i2c: 01 07 00 [19:59:12]MH_I2C_Read... [19:59:12]Read from MH i2c: 01 07 00 6D 06 00 00 00 00 00 FF 0F 88 [19:59:12]RasterBufferAndPrint [19:59:12]line Счет N : (1)1963303 [19:59:12]line ИНН: 02508201610067 [19:59:12]line Контрольно-Кассовый Чек [19:59:12]line ПРОДАЖА [19:59:12]line ТРК (МРК, ГНК) : 53 [19:59:12]line Товар: 2710124130 [19:59:12]line Аи-92-К-5 [19:59:12]line 12.560 * 66.90 [19:59:12]line = 840.26 [19:59:12]line НДС 12% НСП 1% [19:59:12]line > о реализуемом товаре [19:59:12]line ОКРУГЛЕНИЕ: -0.26 [19:59:12]line ИТОГО: 840.00 [19:59:12]line Внесено: 840.00 [19:59:12]line СДАЧА: 0.00 [19:59:12]line НСП 1% : 7.44 [19:59:12]line НДС 12% : 89.23 [19:59:12]line Наличными: 840.00 [19:59:12]line Безнал.: 0.00 [19:59:12]line Место: АЗС № 133 "Партнер Нефть" [19:59:12]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [19:59:12]line СНО: Общий режим [19:59:12]line Чек 488 20.10.2024 19:59 [19:59:12]line Смена: 533 ФФД: 1.0 [19:59:12]line ЗНМ: 0300000091 [19:59:12]line РНМ: 0000000000091685 [19:59:12]line Версия ККМ: 001 [19:59:12]line ФМ: 0000000000871839 [19:59:12]line ФД: 227640 [19:59:12]line ФПД: 69834681646979 [19:59:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T195911&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227640&fm=69834681646979&tin=02508201610067®Number=0000000000091685&sum=84000 [19:59:12]Connected sock=11 [19:59: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 33 39 0F 01 00 00 7F 38 07 01 2D F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3A 48 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 48 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E8 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DB 22 00 00 00 00 07 04 06 00 20 48 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 01 00 00 F4 03 04 00 0F 61 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 38 79 03 00 35 04 06 00 3F 83 A7 64 7F 83 32 42 24 98 1B E9 63 5F [19:59:12]written 0, free lines is 4095 [19:59:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 F9 6A 47 00 3E 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 38 79 03 00 F4 03 04 00 0D 0C 15 67 B6 04 01 00 00 83 DC 09 69 B6 38 BA B0 [19:59:12]CommunicateWithHost err = 0 [19:59:12]CheckOFDResponse [19:59:12]1017 (14) - 77093643461234 [19:59:12]1041 (16) - 0000000000871839 [19:59:12]1040 (4) - 227640 [19:59:12]1012 (4) - 20.10.2024 13:56 [19:59:12]1206 (1) - 0 [19:59:12]OFD Sender: Remove packet 227640 [19:59:12]ProducePacketName [19:59:12]name=ofd_packets/00227640 [19:59:12]NVStorageDeleteData [19:59:12]Write to MH i2c: 01 00 00 97 06 9D [19:59:12]Write i2c OK [19:59:12]MH_I2C_Read... [19:59:12]Read from MH i2c: 01 [19:59:12]MH_I2C_Read... [19:59:12]Read from MH i2c: 01 07 00 [19:59:12]MH_I2C_Read... [19:59:12]Read from MH i2c: 01 07 00 97 06 00 00 00 00 00 AE 0C 5E [19:59:12]RasterBufferAndPrint [19:59:12]line [19:59:12]line [19:59:12]line [19:59:12]line [19:59:12]line [19:59:12]written 0, free lines is 3250 [19:59:12]MH_Cut [19:59:12]Write to MH i2c: D1 01 00 9E 06 01 76 [19:59:12]Write i2c OK [19:59:12]MH_I2C_Read... [19:59:12]Read from MH i2c: D1 [19:59:12]MH_I2C_Read... [19:59:12]Read from MH i2c: D1 01 00 [19:59:12]MH_I2C_Read... [19:59:12]Read from MH i2c: D1 01 00 9E 06 00 75 [19:59:12]Write to MH i2c: 01 00 00 9F 06 A5 [19:59:12]Write i2c OK [19:59:12]MH_I2C_Read... [19:59:13]OFD Sender: No OFD packet to send [19:59:13]*** Cut start [19:59:13]*** Partial cut [19:59:13]*** CUTSNS_PIN = 1 [19:59:13]*** CUTSNS_PIN = 0 [19:59:14]*** Brake cut motor [19:59:14]Read from MH i2c: 01 [19:59:14]MH_I2C_Read... [19:59:14]*** Stop cut motor [19:59:14]*** Cut end [19:59:14]Read from MH i2c: 01 07 00 [19:59:14]MH_I2C_Read... [19:59:14]Read from MH i2c: 01 07 00 9F 06 00 00 00 00 00 FF 0F BA [19:59:14]process_action close_receipt done [19:59:14]requested_data is exist [19:59:14]produce_requested_data [19:59:14]requested_item fm.sn is exist - process it [19:59:14]wFMCommunicate request_size=4 [19:59:14]MH_SAM_APDU [19:59:14]CAPDU: 80 11 00 00 [19:59:14]Write to MH i2c: E2 08 00 A0 06 80 11 00 00 00 00 00 00 20 [19:59:14]Write i2c OK [19:59:14]MH_I2C_Read... [19:59:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:59:14]Read from MH i2c: E2 [19:59:14]MH_I2C_Read... [19:59:14]Read from MH i2c: E2 17 00 [19:59:14]MH_I2C_Read... [19:59:14]Read from MH i2c: E2 17 00 A0 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 77 [19:59:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [19:59:14]wFMCommunicate OK [19:59:14]requested_item fd.num is exist - process it [19:59:14]SAM_PROTO_GetFieldsCounters [19:59:14]wFMCommunicate request_size=4 [19:59:14]MH_SAM_APDU [19:59:14]CAPDU: 80 13 00 00 [19:59:14]Write to MH i2c: E2 08 00 A1 06 80 13 00 00 00 00 00 00 23 [19:59:14]Write i2c OK [19:59:14]MH_I2C_Read... [19:59:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:59:14]Read from MH i2c: E2 [19:59:14]MH_I2C_Read... [19:59:14]Read from MH i2c: E2 62 00 [19:59:14]MH_I2C_Read... [19:59:14]Read from MH i2c: E2 62 00 A1 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 38 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 E8 01 00 00 5E 04 04 00 E8 01 00 00 57 04 04 00 E9 01 00 00 19 04 04 00 00 00 00 00 90 00 D2 [19:59: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 38 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 E8 01 00 00 5E 04 04 00 E8 01 00 00 57 04 04 00 E9 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:59:14]wFMCommunicate OK [19:59:14]SAM_PROTO_GetFieldsCounters done [19:59:14]requested_item shift.num is exist - process it [19:59:14]requested_item shift.opened is exist - process it [19:59:14]req_shift_opened [19:59:14]FM_GetShiftState [19:59:14]SAM_PROTO_GetShiftState [19:59:14]wFMCommunicate request_size=4 [19:59:14]MH_SAM_APDU [19:59:14]CAPDU: 80 13 01 00 [19:59:14]Write to MH i2c: E2 08 00 A2 06 80 13 01 00 00 00 00 00 25 [19:59:14]Write i2c OK [19:59:14]MH_I2C_Read... [19:59:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:59:14]Read from MH i2c: E2 [19:59:14]MH_I2C_Read... [19:59:14]Read from MH i2c: E2 0E 00 [19:59:14]MH_I2C_Read... [19:59:14]Read from MH i2c: E2 0E 00 A2 06 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 3F [19:59:14]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [19:59:14]wFMCommunicate OK [19:59:14]SAM_PROTO_GetShiftState done [19:59:14]FM_GetShiftState done [19:59:14]req_shift_opened done [19:59:14]requested_item shift.open_date is exist - process it [19:59:14]req_shift_open_date [19:59:14]req_shift_open_date done [19:59:14]produce_requested_data done [19:59:14]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227640,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [19:59:14]process_action_free close_receipt [19:59:14]json_value_free [19:59:14]json_value_free done [19:59:14]process_json_proto returns [19:59:14]Send response to host [19:59:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227640,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [19:59:14]free response buf [19:59:14]execute_script done [19:59:14]execute_script returns [19:59:14]free content buf [19:59:14]Sock 10.Close socket [19:59:14]Sock 10.Thread stoped [19:59:18]OFD Sender: No OFD packet to send [19:59:23]OFD Sender: No OFD packet to send [19:59:28]OFD Sender: No OFD packet to send [19:59:33]OFD Sender: No OFD packet to send [19:59:38]OFD Sender: No OFD packet to send [19:59:43]OFD Sender: No OFD packet to send [19:59:48]OFD Sender: No OFD packet to send [19:59:53]OFD Sender: No OFD packet to send [19:59:58]OFD Sender: No OFD packet to send [20:00:03]OFD Sender: No OFD packet to send [20:00:08]OFD Sender: No OFD packet to send [20:00:13]OFD Sender: No OFD packet to send [20:00:17]accept exits with 7 [20:00:17]New connection [20:00:17]New thread 3066666340 created [20:00:17]Thread 3066809700 joined [20:00:17]Waiting for new connection... [20:00:17] Sock 7.Parse request [20:00:17]Sock 7.Check first char [20:00:17]Sock 7.First char is OK [20:00:17]request: POST /json_proto HTTP/1.0 [20:00:17]Method: POST [20:00:17]URL: /json_proto [20:00:17]Method is POST - this is cgi request [20:00:17]url: /json_proto [20:00:17]query_string will be loaded in cgi processing [20:00:17]execute_cgi json_proto POST (null) [20:00:17]execute_cgi path=json_proto method=POST [20:00:17]POST find Content-Length [20:00:17]Host: 172.17.44.195:8080 [20:00:17]Content-Length: 767 [20:00:17]Content-Type: application/json [20:00:17] [20:00:17]POST finish read [20:00:17]Found Content-Length = 767 [20:00:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963304", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:00:17]execute_script... [20:00: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)1963304", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:00:17]POST & json_proto [20:00:17]process_json_proto [20:00:17]json parsed OK: [20:00:17]protocol is kg_v1.0 [20:00:17]action value=close_receipt [20:00:17]process_action close_receipt [20:00:17]cmd_close_receipt [20:00:17]MH_GetDate [20:00:17]Write to MH i2c: F0 00 00 A3 06 98 [20:00:17]Write i2c OK [20:00:17]MH_I2C_Read... [20:00:17]Read from MH i2c: F0 [20:00:17]MH_I2C_Read... [20:00:17]Read from MH i2c: F0 09 00 [20:00:17]MH_I2C_Read... [20:00:17]Read from MH i2c: F0 09 00 A3 06 00 52 61 15 67 82 C9 CF 66 50 [20:00:17]GetLastDocTimeStamp 1729454351 [20:00:17]current date 1729454418 [20:00:17]FM_GetShiftState [20:00:17]SAM_PROTO_GetShiftState [20:00:17]wFMCommunicate request_size=4 [20:00:17]MH_SAM_APDU [20:00:17]CAPDU: 80 13 01 00 [20:00:17]Write to MH i2c: E2 08 00 A4 06 80 13 01 00 00 00 00 00 27 [20:00:17]Write i2c OK [20:00:17]MH_I2C_Read... [20:00:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:00:17]Read from MH i2c: E2 [20:00:17]MH_I2C_Read... [20:00:17]Read from MH i2c: E2 0E 00 [20:00:17]MH_I2C_Read... [20:00:17]Read from MH i2c: E2 0E 00 A4 06 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 41 [20:00:17]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:00:17]wFMCommunicate OK [20:00:17]SAM_PROTO_GetShiftState done [20:00:17]FM_GetShiftState done [20:00:17]opened in 1729383750 [20:00:17]opened+sec_in_day 1729470150 [20:00:17]quantity*price = 50041 [20:00:17]sum+1 = 50042 [20:00:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 489 20.10.2024 20:00 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 227641 ФПД: 127405424461718 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T200018&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227641&fm=127405424461718&tin=02508201610067®Number=0000000000091685&sum=50041 [20:00:18]StoreToDocumentArchive [20:00:18]shift 533 fd 227641 [20:00:18]save to /storage/0533/doc_00227641 [20:00:18]save last doc name /storage/0533/doc_00227641 to /storage/kkm_last_doc_name [20:00:18]save OK [20:00:18]Clear old archive folders... [20:00:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:00:18]tlvbuf is 00C301F0 [20:00:18]SAM_PROTO_ClearQueue [20:00:18]wFMCommunicate request_size=4 [20:00:18]MH_SAM_APDU [20:00:18]CAPDU: 80 09 00 00 [20:00:18]Write to MH i2c: E2 08 00 B1 06 80 09 00 00 00 00 00 00 29 [20:00:18]Write i2c OK [20:00:18]MH_I2C_Read... [20:00:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:00:18]Read from MH i2c: E2 [20:00:18]MH_I2C_Read... [20:00:18]Read from MH i2c: E2 03 00 [20:00:18]MH_I2C_Read... [20:00:18]Read from MH i2c: E2 03 00 B1 06 00 90 00 2B [20:00:18]RAPDU: 90 00 [20:00:18]wFMCommunicate OK [20:00:18]SAM_PROTO_ClearQueue done [20:00:18]KKMCreateOFDPacket [20:00:18]OFDProtocolAddRootSTLVToBuf [20:00:18]FM_MakeSignedData [20:00:18]FM_MakeSignedData [20:00:18]SAM_PROTO_SignData [20:00:18]wFMCommunicate request_size=4 [20:00:18]MH_SAM_APDU [20:00:18]CAPDU: 80 0D 01 02 [20:00:18]Write to MH i2c: E2 08 00 B2 06 80 0D 01 02 00 00 00 00 31 [20:00:18]Write i2c OK [20:00:18]MH_I2C_Read... [20:00:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:00:18]Read from MH i2c: E2 [20:00:18]MH_I2C_Read... [20:00:18]Read from MH i2c: E2 03 00 [20:00:18]MH_I2C_Read... [20:00:18]Read from MH i2c: E2 03 00 B2 06 00 90 00 2C [20:00:18]RAPDU: 90 00 [20:00:18]wFMCommunicate OK [20:00:18]wFMCommunicate request_size=255 [20:00:18]MH_SAM_APDU [20:00:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 01 00 00 F4 03 04 00 52 61 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 39 79 03 00 35 04 06 00 73 [20:00:18]Write to MH i2c: E2 02 01 B3 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 01 00 00 F4 03 04 00 52 61 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 39 79 03 00 35 04 06 00 73 00 00 72 [20:00:18]Write i2c OK [20:00:18]MH_I2C_Read... [20:00:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:00:18]Read from MH i2c: E2 [20:00:18]MH_I2C_Read... [20:00:18]Read from MH i2c: E2 03 00 [20:00:18]MH_I2C_Read... [20:00:18]Read from MH i2c: E2 03 00 B3 06 00 90 00 2D [20:00:18]RAPDU: 90 00 [20:00:18]wFMCommunicate OK [20:00:18]wFMCommunicate request_size=10 [20:00:18]MH_SAM_APDU [20:00:18]CAPDU: 80 0D 02 02 05 DF E3 11 47 96 [20:00:18]Write to MH i2c: E2 0D 00 B4 06 80 0D 02 02 05 00 DF E3 11 47 96 00 00 EE [20:00:18]Write i2c OK [20:00:18]MH_I2C_Read... [20:00:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:00:18]Read from MH i2c: E2 [20:00:18]MH_I2C_Read... [20:00:18]Read from MH i2c: E2 03 00 [20:00:18]MH_I2C_Read... [20:00:18]Read from MH i2c: E2 03 00 B4 06 00 90 00 2E [20:00:18]RAPDU: 90 00 [20:00:18]wFMCommunicate OK [20:00:18]wFMCommunicate request_size=4 [20:00:18]MH_SAM_APDU [20:00:18]CAPDU: 80 0D 03 02 [20:00:18]Write to MH i2c: E2 08 00 B5 06 80 0D 03 02 00 00 00 00 36 [20:00:18]Write i2c OK [20:00:18]MH_I2C_Read... [20:00:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:00:19]Read from MH i2c: E2 [20:00:19]MH_I2C_Read... [20:00:19]Read from MH i2c: E2 0B 00 [20:00:19]MH_I2C_Read... [20:00:19]Read from MH i2c: E2 0B 00 B5 06 00 CD 9C D5 A6 D3 0C 40 38 90 00 72 [20:00:19]RAPDU: CD 9C D5 A6 D3 0C 40 38 90 00 [20:00:19]wFMCommunicate OK [20:00:19]SAM_PROTO_SignData done [20:00:19]FM_MakeSignedData done [20:00:19]CreateOFDProtocolMessage [20:00:19]wFMCommunicate request_size=4 [20:00:19]MH_SAM_APDU [20:00:19]CAPDU: 80 11 00 00 [20:00:19]Write to MH i2c: E2 08 00 B6 06 80 11 00 00 00 00 00 00 36 [20:00:19]Write i2c OK [20:00:19]MH_I2C_Read... [20:00:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:00:19]Read from MH i2c: E2 [20:00:19]MH_I2C_Read... [20:00:19]Read from MH i2c: E2 17 00 [20:00:19]MH_I2C_Read... [20:00:19]Read from MH i2c: E2 17 00 B6 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 8D [20:00:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:00:19]wFMCommunicate OK [20:00:19]CreateOFDProtocolMessage done [20:00:19]OFDSenderStorePacket 227641 [20:00:19]StoreOFDPacket docnum=227641 [20:00:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 50 56 07 01 DE 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 01 00 00 F4 03 04 00 52 61 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 39 79 03 00 35 04 06 00 73 DF E3 11 47 96 CD 9C D5 A6 D3 0C 40 38 [20:00:19]CheckFolder [20:00:19]dirname=/storage/ofd_packets [20:00:19]CheckFolder done [20:00:19]ProducePacketName [20:00:19]name=ofd_packets/00227641 [20:00:19]NVStorageSaveData ofd_packets/00227641 [20:00:19]File name is /storage/ofd_packets/00227641 [20:00:19]Write 301 bytes [20:00:19]NVStorageSaveData done [20:00:19]OFDSenderStorePacket done [20:00:19]KKMCreateOFDPacket done [20:00:19]NVStorageSaveData kkm_last_timestamp [20:00:19]File name is /storage/kkm_last_timestamp [20:00:19]Write 4 bytes [20:00:19]NVStorageSaveData done [20:00:19]ExternCall_PrintAddStr [20:00:19]wPrintStart [20:00:19]Write to MH i2c: 01 00 00 B7 06 BD [20:00:19]Write i2c OK [20:00:19]MH_I2C_Read... [20:00:19]Read from MH i2c: 01 [20:00:19]MH_I2C_Read... [20:00:19]Read from MH i2c: 01 07 00 [20:00:19]MH_I2C_Read... [20:00:19]Read from MH i2c: 01 07 00 B7 06 00 00 00 00 00 FF 0F D2 [20:00:19]RasterBufferAndPrint [20:00:19]line Счет N : (1)1963304 [20:00:19]line ИНН: 02508201610067 [20:00:19]line Контрольно-Кассовый Чек [20:00:19]line ПРОДАЖА [20:00:19]line ТРК (МРК, ГНК) : 33 [20:00:19]line Товар: 2710124130 [20:00:19]line Аи-92-К-5 [20:00:19]line 7.480 * 66.90 [20:00:19]line = 500.41 [20:00:19]line НДС 12% НСП 1% [20:00:19]line > о реализуемом товаре [20:00:19]line ИТОГО: 500.41 [20:00:19]line НСП 1% : 4.43 [20:00:19]line НДС 12% : 53.14 [20:00:19]line Наличными: 0.00 [20:00:19]line Безнал.: 500.41 [20:00:19]line Место: АЗС № 133 "Партнер Нефть" [20:00:19]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [20:00:19]line СНО: Общий режим [20:00:19]line Чек 489 20.10.2024 20:00 [20:00:19]line Смена: 533 ФФД: 1.0 [20:00:19]line ЗНМ: 0300000091 [20:00:19]line РНМ: 0000000000091685 [20:00:19]line Версия ККМ: 001 [20:00:19]line Платежная система: Mbank [20:00:19]line ФМ: 0000000000871839 [20:00:19]line ФД: 227641 [20:00:19]line ФПД: 127405424461718 [20:00:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T200018&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227641&fm=127405424461718&tin=02508201610067®Number=0000000000091685&sum=50041 [20:00:19]written 0, free lines is 4095 [20:00:19]OFD Sender: Processing packet 227641 [packets to send 38, broken 37] [20:00:19]ProducePacketName [20:00:19]name=ofd_packets/00227641 [20:00:19]OFD Sender: To server: pG, [20:00:19]CommunicateWithHost lk.salyk.kg:30040 [20:00:19]ConnectInit lk.salyk.kg [20:00:19]Write to MH i2c: 01 00 00 DF 06 E5 [20:00:19]Connected sock=10 [20:00: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 33 39 0F 01 00 00 50 56 07 01 DE 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 01 00 00 F4 03 04 00 52 61 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 39 79 03 00 35 04 06 00 73 DF E3 11 47 96 CD 9C D5 A6 D3 0C 40 38 [20:00:19]Write i2c OK [20:00:19]MH_I2C_Read... [20:00:19]Read from MH i2c: 01 [20:00:19]MH_I2C_Read... [20:00:19]Read from MH i2c: 01 07 00 [20:00:19]MH_I2C_Read... [20:00:19]Read from MH i2c: 01 07 00 DF 06 00 00 00 00 00 E9 0C E1 [20:00:19]RasterBufferAndPrint [20:00:19]line [20:00:19]line [20:00:19]line [20:00:19]line [20:00:19]line [20:00:19]written 0, free lines is 3337 [20:00:19]MH_Cut [20:00:19]Write to MH i2c: D1 01 00 E6 06 01 BE [20:00:19]Write i2c OK [20:00:19]MH_I2C_Read... [20:00:19]Read from MH i2c: D1 [20:00:19]MH_I2C_Read... [20:00:19]Read from MH i2c: D1 01 00 [20:00:19]MH_I2C_Read... [20:00:19]Read from MH i2c: D1 01 00 E6 06 00 BD [20:00:19]Write to MH i2c: 01 00 00 E7 06 ED [20:00:19]Write i2c OK [20:00:19]MH_I2C_Read... [20:00: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 33 39 4F 00 00 00 04 C2 47 00 F6 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 33 39 10 04 04 00 39 79 03 00 F4 03 04 00 50 0C 15 67 B6 04 01 00 00 AC 89 3D 54 BF 83 A3 4D [20:00:19]CommunicateWithHost err = 0 [20:00:19]CheckOFDResponse [20:00:19]1017 (14) - 77093643461234 [20:00:19]1041 (16) - 0000000000871839 [20:00:19]1040 (4) - 227641 [20:00:19]1012 (4) - 20.10.2024 13:57 [20:00:19]1206 (1) - 0 [20:00:19]OFD Sender: Remove packet 227641 [20:00:19]ProducePacketName [20:00:19]name=ofd_packets/00227641 [20:00:19]NVStorageDeleteData [20:00:20]OFD Sender: No OFD packet to send [20:00:20]*** Cut start [20:00:20]*** Partial cut [20:00:20]*** CUTSNS_PIN = 1 [20:00:20]*** CUTSNS_PIN = 0 [20:00:20]*** Brake cut motor [20:00:21]Read from MH i2c: 01 [20:00:21]MH_I2C_Read... [20:00:21]*** Stop cut motor [20:00:21]*** Cut end [20:00:21]Read from MH i2c: 01 07 00 [20:00:21]MH_I2C_Read... [20:00:21]Read from MH i2c: 01 07 00 E7 06 00 00 00 00 00 FF 0F 02 [20:00:21]process_action close_receipt done [20:00:21]requested_data is exist [20:00:21]produce_requested_data [20:00:21]requested_item fm.sn is exist - process it [20:00:21]wFMCommunicate request_size=4 [20:00:21]MH_SAM_APDU [20:00:21]CAPDU: 80 11 00 00 [20:00:21]Write to MH i2c: E2 08 00 E8 06 80 11 00 00 00 00 00 00 68 [20:00:21]Write i2c OK [20:00:21]MH_I2C_Read... [20:00:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:00:21]Read from MH i2c: E2 [20:00:21]MH_I2C_Read... [20:00:21]Read from MH i2c: E2 17 00 [20:00:21]MH_I2C_Read... [20:00:21]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 33 39 90 00 BF [20:00:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:00:21]wFMCommunicate OK [20:00:21]requested_item fd.num is exist - process it [20:00:21]SAM_PROTO_GetFieldsCounters [20:00:21]wFMCommunicate request_size=4 [20:00:21]MH_SAM_APDU [20:00:21]CAPDU: 80 13 00 00 [20:00:21]Write to MH i2c: E2 08 00 E9 06 80 13 00 00 00 00 00 00 6B [20:00:21]Write i2c OK [20:00:21]MH_I2C_Read... [20:00:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:00:21]Read from MH i2c: E2 [20:00:21]MH_I2C_Read... [20:00:21]Read from MH i2c: E2 62 00 [20:00:21]MH_I2C_Read... [20:00:21]Read from MH i2c: E2 62 00 E9 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 39 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 E9 01 00 00 5E 04 04 00 E9 01 00 00 57 04 04 00 EA 01 00 00 19 04 04 00 00 00 00 00 90 00 1E [20:00: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 39 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 E9 01 00 00 5E 04 04 00 E9 01 00 00 57 04 04 00 EA 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:00:21]wFMCommunicate OK [20:00:21]SAM_PROTO_GetFieldsCounters done [20:00:21]requested_item shift.num is exist - process it [20:00:21]requested_item shift.opened is exist - process it [20:00:21]req_shift_opened [20:00:21]FM_GetShiftState [20:00:21]SAM_PROTO_GetShiftState [20:00:21]wFMCommunicate request_size=4 [20:00:21]MH_SAM_APDU [20:00:21]CAPDU: 80 13 01 00 [20:00:21]Write to MH i2c: E2 08 00 EA 06 80 13 01 00 00 00 00 00 6D [20:00:21]Write i2c OK [20:00:21]MH_I2C_Read... [20:00:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:00:21]Read from MH i2c: E2 [20:00:21]MH_I2C_Read... [20:00:21]Read from MH i2c: E2 0E 00 [20:00:21]MH_I2C_Read... [20:00:21]Read from MH i2c: E2 0E 00 EA 06 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 87 [20:00:21]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:00:21]wFMCommunicate OK [20:00:21]SAM_PROTO_GetShiftState done [20:00:21]FM_GetShiftState done [20:00:21]req_shift_opened done [20:00:21]requested_item shift.open_date is exist - process it [20:00:21]req_shift_open_date [20:00:21]req_shift_open_date done [20:00:21]produce_requested_data done [20:00:21]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227641,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [20:00:21]process_action_free close_receipt [20:00:21]json_value_free [20:00:21]json_value_free done [20:00:21]process_json_proto returns [20:00:21]Send response to host [20:00:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227641,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [20:00:21]free response buf [20:00:21]execute_script done [20:00:21]execute_script returns [20:00:21]free content buf [20:00:21]Sock 7.Close socket [20:00:21]Sock 7.Thread stoped [20:00:25]OFD Sender: No OFD packet to send [20:00:30]OFD Sender: No OFD packet to send [20:00:35]OFD Sender: No OFD packet to send [20:00:40]OFD Sender: No OFD packet to send [20:00:45]OFD Sender: No OFD packet to send [20:00:50]OFD Sender: No OFD packet to send [20:00:55]OFD Sender: No OFD packet to send [20:01:00]OFD Sender: No OFD packet to send [20:01:05]OFD Sender: No OFD packet to send [20:01:10]OFD Sender: No OFD packet to send [20:01:11]accept exits with 9 [20:01:11]New connection [20:01:11]New thread 3066809700 created [20:01:11]Thread 3066666340 joined [20:01:11]Waiting for new connection... [20:01:11] Sock 9.Parse request [20:01:11]Sock 9.Check first char [20:01:11]Sock 9.First char is OK [20:01:11]request: POST /json_proto HTTP/1.0 [20:01:11]Method: POST [20:01:11]URL: /json_proto [20:01:11]Method is POST - this is cgi request [20:01:11]url: /json_proto [20:01:11]query_string will be loaded in cgi processing [20:01:11]execute_cgi json_proto POST (null) [20:01:11]execute_cgi path=json_proto method=POST [20:01:11]POST find Content-Length [20:01:11]Host: 172.17.44.195:8080 [20:01:11]Content-Length: 981 [20:01:11]Content-Type: application/json [20:01:11] [20:01:11]POST finish read [20:01:11]Found Content-Length = 981 [20:01:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963301", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 106.390, "sum" : 8000.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 133\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 106.39 \u0441\u043E\u043C", "deposit" : 8000.00, "total" : 8000.00, "payments": [ { "type": 0, "sum" : 8000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:01:11]execute_script... [20: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)1963301", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 106.390, "sum" : 8000.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 133\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 106.39 \u0441\u043E\u043C", "deposit" : 8000.00, "total" : 8000.00, "payments": [ { "type": 0, "sum" : 8000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:01:11]POST & json_proto [20:01:11]process_json_proto [20:01:11]json parsed OK: [20:01:11]protocol is kg_v1.0 [20:01:11]action value=close_receipt [20:01:11]process_action close_receipt [20:01:11]cmd_close_receipt [20:01:11]MH_GetDate [20:01:11]Write to MH i2c: F0 00 00 EB 06 E0 [20:01:11]Write i2c OK [20:01:11]MH_I2C_Read... [20:01:11]Read from MH i2c: F0 [20:01:11]MH_I2C_Read... [20:01:11]Read from MH i2c: F0 09 00 [20:01:11]MH_I2C_Read... [20:01:11]Read from MH i2c: F0 09 00 EB 06 00 88 61 15 67 82 C9 CF 66 CE [20:01:11]GetLastDocTimeStamp 1729454418 [20:01:11]current date 1729454472 [20:01:11]FM_GetShiftState [20:01:11]SAM_PROTO_GetShiftState [20:01:11]wFMCommunicate request_size=4 [20:01:11]MH_SAM_APDU [20:01:11]CAPDU: 80 13 01 00 [20:01:11]Write to MH i2c: E2 08 00 EC 06 80 13 01 00 00 00 00 00 6F [20:01:11]Write i2c OK [20:01:11]MH_I2C_Read... [20:01:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:01:11]Read from MH i2c: E2 [20:01:11]MH_I2C_Read... [20:01:11]Read from MH i2c: E2 0E 00 [20:01:11]MH_I2C_Read... [20:01:11]Read from MH i2c: E2 0E 00 EC 06 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 89 [20:01:11]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:01:11]wFMCommunicate OK [20:01:11]SAM_PROTO_GetShiftState done [20:01:11]FM_GetShiftState done [20:01:11]opened in 1729383750 [20:01:11]opened+sec_in_day 1729470150 [20:01:11]quantity*price = 800052 [20:01:11]sum+1 = 800054 [20:01:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 8000.00 Внесено: 8000.00 СДАЧА: 0.00 НСП 1% : 70.80 НДС 12% : 849.61 Наличными: 8000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 490 20.10.2024 20:01 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Дисконтная программа ДТ номер 133 сэкономлено 106.39 сом ФМ: 0000000000871839 ФД: 227642 ФПД: 204088294648937 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T200112&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227642&fm=204088294648937&tin=02508201610067®Number=0000000000091685&sum=800000 [20:01:12]StoreToDocumentArchive [20:01:12]shift 533 fd 227642 [20:01:12]save to /storage/0533/doc_00227642 [20:01:12]save last doc name /storage/0533/doc_00227642 to /storage/kkm_last_doc_name [20:01:12]save OK [20:01:12]Clear old archive folders... [20:01:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:01:12]tlvbuf is 00C421F0 [20:01:12]SAM_PROTO_ClearQueue [20:01:12]wFMCommunicate request_size=4 [20:01:12]MH_SAM_APDU [20:01:12]CAPDU: 80 09 00 00 [20:01:12]Write to MH i2c: E2 08 00 F9 06 80 09 00 00 00 00 00 00 71 [20:01:12]Write i2c OK [20:01:12]MH_I2C_Read... [20:01:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:01:12]Read from MH i2c: E2 [20:01:12]MH_I2C_Read... [20:01:12]Read from MH i2c: E2 03 00 [20:01:12]MH_I2C_Read... [20:01:12]Read from MH i2c: E2 03 00 F9 06 00 90 00 73 [20:01:12]RAPDU: 90 00 [20:01:12]wFMCommunicate OK [20:01:12]SAM_PROTO_ClearQueue done [20:01:12]KKMCreateOFDPacket [20:01:12]OFDProtocolAddRootSTLVToBuf [20:01:12]FM_MakeSignedData [20:01:12]FM_MakeSignedData [20:01:12]SAM_PROTO_SignData [20:01:12]wFMCommunicate request_size=4 [20:01:12]MH_SAM_APDU [20:01:12]CAPDU: 80 0D 01 02 [20:01:12]Write to MH i2c: E2 08 00 FA 06 80 0D 01 02 00 00 00 00 79 [20:01:12]Write i2c OK [20:01:12]MH_I2C_Read... [20:01:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:01:12]Read from MH i2c: E2 [20:01:12]MH_I2C_Read... [20:01:12]Read from MH i2c: E2 03 00 [20:01:12]MH_I2C_Read... [20:01:12]Read from MH i2c: E2 03 00 FA 06 00 90 00 74 [20:01:12]RAPDU: 90 00 [20:01:12]wFMCommunicate OK [20:01:12]wFMCommunicate request_size=255 [20:01:12]MH_SAM_APDU [20:01:12]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 96 9F 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 35 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 01 00 00 F4 03 04 00 88 61 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3A 79 03 00 35 04 06 00 B9 9E 02 4E [20:01:12]Write to MH i2c: E2 02 01 FB 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 96 9F 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 35 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 01 00 00 F4 03 04 00 88 61 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3A 79 03 00 35 04 06 00 B9 9E 02 4E 00 00 3D [20:01:12]Write i2c OK [20:01:12]MH_I2C_Read... [20:01:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:01:12]Read from MH i2c: E2 [20:01:12]MH_I2C_Read... [20:01:12]Read from MH i2c: E2 03 00 [20:01:12]MH_I2C_Read... [20:01:12]Read from MH i2c: E2 03 00 FB 06 00 90 00 75 [20:01:12]RAPDU: 90 00 [20:01:12]wFMCommunicate OK [20:01:12]wFMCommunicate request_size=7 [20:01:12]MH_SAM_APDU [20:01:12]CAPDU: 80 0D 02 02 02 2C 69 [20:01:12]Write to MH i2c: E2 0A 00 FC 06 80 0D 02 02 02 00 2C 69 00 00 15 [20:01:12]Write i2c OK [20:01:12]MH_I2C_Read... [20:01:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:01:12]Read from MH i2c: E2 [20:01:12]MH_I2C_Read... [20:01:12]Read from MH i2c: E2 03 00 [20:01:12]MH_I2C_Read... [20:01:12]Read from MH i2c: E2 03 00 FC 06 00 90 00 76 [20:01:12]RAPDU: 90 00 [20:01:12]wFMCommunicate OK [20:01:12]wFMCommunicate request_size=4 [20:01:12]MH_SAM_APDU [20:01:12]CAPDU: 80 0D 03 02 [20:01:12]Write to MH i2c: E2 08 00 FD 06 80 0D 03 02 00 00 00 00 7E [20:01:12]Write i2c OK [20:01:12]MH_I2C_Read... [20:01:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:01:12]Read from MH i2c: E2 [20:01:12]MH_I2C_Read... [20:01:12]Read from MH i2c: E2 0B 00 [20:01:12]MH_I2C_Read... [20:01:12]Read from MH i2c: E2 0B 00 FD 06 00 31 58 32 EC 41 8F 08 F6 90 00 F4 [20:01:12]RAPDU: 31 58 32 EC 41 8F 08 F6 90 00 [20:01:12]wFMCommunicate OK [20:01:12]SAM_PROTO_SignData done [20:01:12]FM_MakeSignedData done [20:01:12]CreateOFDProtocolMessage [20:01:12]wFMCommunicate request_size=4 [20:01:12]MH_SAM_APDU [20:01:12]CAPDU: 80 11 00 00 [20:01:12]Write to MH i2c: E2 08 00 FE 06 80 11 00 00 00 00 00 00 7E [20:01:12]Write i2c OK [20:01:12]MH_I2C_Read... [20:01:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:01:13]Read from MH i2c: E2 [20:01:13]MH_I2C_Read... [20:01:13]Read from MH i2c: E2 17 00 [20:01:13]MH_I2C_Read... [20:01:13]Read from MH i2c: E2 17 00 FE 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D5 [20:01:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:01:13]wFMCommunicate OK [20:01:13]CreateOFDProtocolMessage done [20:01:13]OFDSenderStorePacket 227642 [20:01:13]StoreOFDPacket docnum=227642 [20:01:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 EC BF 04 01 46 63 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 96 9F 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 35 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 01 00 00 F4 03 04 00 88 61 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3A 79 03 00 35 04 06 00 B9 9E 02 4E 2C 69 31 58 32 EC 41 8F 08 F6 [20:01:13]CheckFolder [20:01:13]dirname=/storage/ofd_packets [20:01:13]CheckFolder done [20:01:13]ProducePacketName [20:01:13]name=ofd_packets/00227642 [20:01:13]NVStorageSaveData ofd_packets/00227642 [20:01:13]File name is /storage/ofd_packets/00227642 [20:01:13]Write 298 bytes [20:01:13]NVStorageSaveData done [20:01:13]OFDSenderStorePacket done [20:01:13]KKMCreateOFDPacket done [20:01:13]NVStorageSaveData kkm_last_timestamp [20:01:13]File name is /storage/kkm_last_timestamp [20:01:13]Write 4 bytes [20:01:13]NVStorageSaveData done [20:01:13]ExternCall_PrintAddStr [20:01:13]wPrintStart [20:01:13]Write to MH i2c: 01 00 00 FF 06 05 [20:01:13]Write i2c OK [20:01:13]MH_I2C_Read... [20:01:13]Read from MH i2c: 01 [20:01:13]MH_I2C_Read... [20:01:13]Read from MH i2c: 01 07 00 [20:01:13]MH_I2C_Read... [20:01:13]Read from MH i2c: 01 07 00 FF 06 00 00 00 00 00 FF 0F 1A [20:01:13]RasterBufferAndPrint [20:01:13]line Счет N : (1)1963301 [20:01:13]line ИНН: 02508201610067 [20:01:13]line Контрольно-Кассовый Чек [20:01:13]line ПРОДАЖА [20:01:13]line ТРК (МРК, ГНК) : 11 [20:01:13]line Товар: 2710194210 [20:01:13]line ДТ-К-5 [20:01:13]line 106.390 * 75.20 [20:01:13]line = 8000.53 [20:01:13]line НДС 12% НСП 1% [20:01:13]line > о реализуемом товаре [20:01:13]line ОКРУГЛЕНИЕ: -0.53 [20:01:13]line ИТОГО: 8000.00 [20:01:13]line Внесено: 8000.00 [20:01:13]line СДАЧА: 0.00 [20:01:13]line НСП 1% : 70.80 [20:01:13]line НДС 12% : 849.61 [20:01:13]line Наличными: 8000.00 [20:01:13]line Безнал.: 0.00 [20:01:13]line Место: АЗС № 133 "Партнер Нефть" [20:01:13]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [20:01:13]line СНО: Общий режим [20:01:13]line Чек 490 20.10.2024 20:01 [20:01:13]line Смена: 533 ФФД: 1.0 [20:01:13]line ЗНМ: 0300000091 [20:01:13]line РНМ: 0000000000091685 [20:01:13]line Версия ККМ: 001 [20:01:13]line [20:01:13]line Дисконтная программа [20:01:13]line ДТ [20:01:13]line номер 133 [20:01:13]line сэкономлено 106.39 сом [20:01:13]line ФМ: 0000000000871839 [20:01:13]line ФД: 227642 [20:01:13]line ФПД: 204088294648937 [20:01:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T200112&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227642&fm=204088294648937&tin=02508201610067®Number=0000000000091685&sum=800000 [20:01:13]OFD Sender: Processing packet 227642 [packets to send 38, broken 37] [20:01:13]ProducePacketName [20:01:13]name=ofd_packets/00227642 [20:01:13]OFD Sender: To server: pG, [20:01:13]CommunicateWithHost lk.salyk.kg:30040 [20:01:13]ConnectInit lk.salyk.kg [20:01:13]written 0, free lines is 4095 [20:01:13]Connected sock=11 [20: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 33 39 0C 01 00 00 EC BF 04 01 46 63 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 96 9F 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 35 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 01 00 00 F4 03 04 00 88 61 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3A 79 03 00 35 04 06 00 B9 9E 02 4E 2C 69 31 58 32 EC 41 8F 08 F6 [20:01: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 33 39 4F 00 00 00 C9 99 47 00 6B 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 33 39 10 04 04 00 3A 79 03 00 F4 03 04 00 86 0C 15 67 B6 04 01 00 00 02 99 6B 49 A0 C3 AB B9 [20:01:13]CommunicateWithHost err = 0 [20:01:13]CheckOFDResponse [20:01:13]1017 (14) - 77093643461234 [20:01:13]1041 (16) - 0000000000871839 [20:01:13]1040 (4) - 227642 [20:01:13]1012 (4) - 20.10.2024 13:58 [20:01:13]1206 (1) - 0 [20:01:13]OFD Sender: Remove packet 227642 [20:01:13]ProducePacketName [20:01:13]name=ofd_packets/00227642 [20:01:13]NVStorageDeleteData [20:01:13]Write to MH i2c: 01 00 00 2E 07 35 [20:01:13]Write i2c OK [20:01:13]MH_I2C_Read... [20:01:13]Read from MH i2c: 01 [20:01:13]MH_I2C_Read... [20:01:13]Read from MH i2c: 01 07 00 [20:01:13]MH_I2C_Read... [20:01:13]Read from MH i2c: 01 07 00 2E 07 00 00 00 00 00 43 0C 8B [20:01:13]RasterBufferAndPrint [20:01:13]line [20:01:13]line [20:01:13]line [20:01:13]line [20:01:13]line [20:01:13]written 0, free lines is 3145 [20:01:13]MH_Cut [20:01:13]Write to MH i2c: D1 01 00 35 07 01 0E [20:01:13]Write i2c OK [20:01:13]MH_I2C_Read... [20:01:13]Read from MH i2c: D1 [20:01:13]MH_I2C_Read... [20:01:13]Read from MH i2c: D1 01 00 [20:01:13]MH_I2C_Read... [20:01:13]Read from MH i2c: D1 01 00 35 07 00 0D [20:01:13]Write to MH i2c: 01 00 00 36 07 3D [20:01:13]Write i2c OK [20:01:13]MH_I2C_Read... [20:01:14]OFD Sender: No OFD packet to send [20:01:14]*** Cut start [20:01:14]*** Partial cut [20:01:14]*** CUTSNS_PIN = 1 [20:01:14]*** CUTSNS_PIN = 0 [20:01:15]*** Brake cut motor [20:01:15]Read from MH i2c: 01 [20:01:15]MH_I2C_Read... [20:01:15]*** Stop cut motor [20:01:15]*** Cut end [20:01:15]Read from MH i2c: 01 07 00 [20:01:15]MH_I2C_Read... [20:01:15]Read from MH i2c: 01 07 00 36 07 00 00 00 00 00 FF 0F 52 [20:01:15]process_action close_receipt done [20:01:15]requested_data is exist [20:01:15]produce_requested_data [20:01:15]requested_item fm.sn is exist - process it [20:01:15]wFMCommunicate request_size=4 [20:01:15]MH_SAM_APDU [20:01:15]CAPDU: 80 11 00 00 [20:01:15]Write to MH i2c: E2 08 00 37 07 80 11 00 00 00 00 00 00 B8 [20:01:15]Write i2c OK [20:01:15]MH_I2C_Read... [20:01:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:01:15]Read from MH i2c: E2 [20:01:15]MH_I2C_Read... [20:01:15]Read from MH i2c: E2 17 00 [20:01:15]MH_I2C_Read... [20:01:15]Read from MH i2c: E2 17 00 37 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 0F [20:01:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:01:15]wFMCommunicate OK [20:01:15]requested_item fd.num is exist - process it [20:01:15]SAM_PROTO_GetFieldsCounters [20:01:15]wFMCommunicate request_size=4 [20:01:15]MH_SAM_APDU [20:01:15]CAPDU: 80 13 00 00 [20:01:15]Write to MH i2c: E2 08 00 38 07 80 13 00 00 00 00 00 00 BB [20:01:15]Write i2c OK [20:01:15]MH_I2C_Read... [20:01:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:01:15]Read from MH i2c: E2 [20:01:15]MH_I2C_Read... [20:01:15]Read from MH i2c: E2 62 00 [20:01:15]MH_I2C_Read... [20:01:15]Read from MH i2c: E2 62 00 38 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 3A 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 EA 01 00 00 5E 04 04 00 EA 01 00 00 57 04 04 00 EB 01 00 00 19 04 04 00 00 00 00 00 90 00 72 [20: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 3A 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 EA 01 00 00 5E 04 04 00 EA 01 00 00 57 04 04 00 EB 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:01:15]wFMCommunicate OK [20:01:15]SAM_PROTO_GetFieldsCounters done [20:01:15]requested_item shift.num is exist - process it [20:01:15]requested_item shift.opened is exist - process it [20:01:15]req_shift_opened [20:01:15]FM_GetShiftState [20:01:15]SAM_PROTO_GetShiftState [20:01:15]wFMCommunicate request_size=4 [20:01:15]MH_SAM_APDU [20:01:15]CAPDU: 80 13 01 00 [20:01:15]Write to MH i2c: E2 08 00 39 07 80 13 01 00 00 00 00 00 BD [20:01:15]Write i2c OK [20:01:15]MH_I2C_Read... [20:01:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:01:15]Read from MH i2c: E2 [20:01:15]MH_I2C_Read... [20:01:15]Read from MH i2c: E2 0E 00 [20:01:15]MH_I2C_Read... [20:01:15]Read from MH i2c: E2 0E 00 39 07 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 D7 [20:01:15]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:01:15]wFMCommunicate OK [20:01:15]SAM_PROTO_GetShiftState done [20:01:15]FM_GetShiftState done [20:01:15]req_shift_opened done [20:01:15]requested_item shift.open_date is exist - process it [20:01:15]req_shift_open_date [20:01:15]req_shift_open_date done [20:01:15]produce_requested_data done [20:01:15]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227642,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [20:01:15]process_action_free close_receipt [20:01:15]json_value_free [20:01:15]json_value_free done [20:01:15]process_json_proto returns [20:01:15]Send response to host [20:01:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227642,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [20:01:15]free response buf [20:01:15]execute_script done [20:01:15]execute_script returns [20:01:15]free content buf [20:01:15]Sock 9.Close socket [20:01:15]Sock 9.Thread stoped [20:01:19]OFD Sender: No OFD packet to send [20:01:24]OFD Sender: No OFD packet to send [20:01:29]OFD Sender: No OFD packet to send [20:01:34]OFD Sender: No OFD packet to send [20:01:39]OFD Sender: No OFD packet to send [20:01:44]OFD Sender: No OFD packet to send [20:01:49]OFD Sender: No OFD packet to send [20:01:54]OFD Sender: No OFD packet to send [20:01:59]OFD Sender: No OFD packet to send [20:02:04]OFD Sender: No OFD packet to send [20:02:09]OFD Sender: No OFD packet to send [20:02:14]OFD Sender: No OFD packet to send [20:02:19]OFD Sender: No OFD packet to send [20:02:24]OFD Sender: No OFD packet to send [20:02:29]OFD Sender: No OFD packet to send [20:02:34]OFD Sender: No OFD packet to send [20:02:39]OFD Sender: No OFD packet to send [20:02:44]OFD Sender: No OFD packet to send [20:02:49]OFD Sender: No OFD packet to send [20:02:54]OFD Sender: No OFD packet to send [20:02:59]OFD Sender: No OFD packet to send [20:03:04]OFD Sender: No OFD packet to send [20:03:09]OFD Sender: No OFD packet to send [20:03:14]OFD Sender: No OFD packet to send [20:03:19]OFD Sender: No OFD packet to send [20:03:24]OFD Sender: No OFD packet to send [20:03:29]OFD Sender: No OFD packet to send [20:03:34]OFD Sender: No OFD packet to send [20:03:39]OFD Sender: No OFD packet to send [20:03:44]OFD Sender: No OFD packet to send [20:03:49]OFD Sender: No OFD packet to send [20:03:54]OFD Sender: No OFD packet to send [20:03:59]OFD Sender: No OFD packet to send [20:04:04]OFD Sender: No OFD packet to send [20:04:09]OFD Sender: No OFD packet to send [20:04:14]OFD Sender: No OFD packet to send [20:04:19]OFD Sender: No OFD packet to send [20:04:24]OFD Sender: No OFD packet to send [20:04:29]OFD Sender: No OFD packet to send [20:04:34]OFD Sender: No OFD packet to send [20:04:39]OFD Sender: No OFD packet to send [20:04:44]OFD Sender: No OFD packet to send [20:04:49]OFD Sender: No OFD packet to send [20:04:54]OFD Sender: No OFD packet to send [20:04:59]OFD Sender: No OFD packet to send [20:05:04]OFD Sender: No OFD packet to send [20:05:07]accept exits with 7 [20:05:07]New connection [20:05:07]New thread 3066666340 created [20:05:07]Thread 3066809700 joined [20:05:07]Waiting for new connection... [20:05:07] Sock 7.Parse request [20:05:07]Sock 7.Check first char [20:05:07]Sock 7.First char is OK [20:05:07]request: POST /json_proto HTTP/1.0 [20:05:07]Method: POST [20:05:07]URL: /json_proto [20:05:07]Method is POST - this is cgi request [20:05:07]url: /json_proto [20:05:07]query_string will be loaded in cgi processing [20:05:07]execute_cgi json_proto POST (null) [20:05:07]execute_cgi path=json_proto method=POST [20:05:07]POST find Content-Length [20:05:07]Host: 172.17.44.195:8080 [20:05:07]Content-Length: 767 [20:05:07]Content-Type: application/json [20:05:07] [20:05:07]POST finish read [20:05:07]Found Content-Length = 767 [20:05:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963305", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:07]execute_script... [20:05:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963305", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:07]POST & json_proto [20:05:07]process_json_proto [20:05:07]json parsed OK: [20:05:07]protocol is kg_v1.0 [20:05:07]action value=close_receipt [20:05:07]process_action close_receipt [20:05:07]cmd_close_receipt [20:05:07]MH_GetDate [20:05:07]Write to MH i2c: F0 00 00 3A 07 30 [20:05:07]Write i2c OK [20:05:07]MH_I2C_Read... [20:05:07]Read from MH i2c: F0 [20:05:07]MH_I2C_Read... [20:05:07]Read from MH i2c: F0 09 00 [20:05:07]MH_I2C_Read... [20:05:07]Read from MH i2c: F0 09 00 3A 07 00 74 62 15 67 82 C9 CF 66 0B [20:05:07]GetLastDocTimeStamp 1729454472 [20:05:07]current date 1729454708 [20:05:07]FM_GetShiftState [20:05:07]SAM_PROTO_GetShiftState [20:05:08]wFMCommunicate request_size=4 [20:05:08]MH_SAM_APDU [20:05:08]CAPDU: 80 13 01 00 [20:05:08]Write to MH i2c: E2 08 00 3B 07 80 13 01 00 00 00 00 00 BF [20:05:08]Write i2c OK [20:05:08]MH_I2C_Read... [20:05:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:08]Read from MH i2c: E2 [20:05:08]MH_I2C_Read... [20:05:08]Read from MH i2c: E2 0E 00 [20:05:08]MH_I2C_Read... [20:05:08]Read from MH i2c: E2 0E 00 3B 07 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 D9 [20:05:08]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:05:08]wFMCommunicate OK [20:05:08]SAM_PROTO_GetShiftState done [20:05:08]FM_GetShiftState done [20:05:08]opened in 1729383750 [20:05:08]opened+sec_in_day 1729470150 [20:05:08]quantity*price = 100050 [20:05:08]sum+1 = 100052 [20:05:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 491 20.10.2024 20:05 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 227643 ФПД: 79189985492027 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T200508&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227643&fm=79189985492027&tin=02508201610067®Number=0000000000091685&sum=100051 [20:05:09]StoreToDocumentArchive [20:05:09]shift 533 fd 227643 [20:05:09]save to /storage/0533/doc_00227643 [20:05:09]save last doc name /storage/0533/doc_00227643 to /storage/kkm_last_doc_name [20:05:09]save OK [20:05:09]Clear old archive folders... [20:05:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:05:09]tlvbuf is 00C99320 [20:05:09]SAM_PROTO_ClearQueue [20:05:09]wFMCommunicate request_size=4 [20:05:09]MH_SAM_APDU [20:05:09]CAPDU: 80 09 00 00 [20:05:09]Write to MH i2c: E2 08 00 48 07 80 09 00 00 00 00 00 00 C1 [20:05:09]Write i2c OK [20:05:09]MH_I2C_Read... [20:05:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:05:09]Read from MH i2c: E2 [20:05:09]MH_I2C_Read... [20:05:09]Read from MH i2c: E2 03 00 [20:05:09]MH_I2C_Read... [20:05:09]Read from MH i2c: E2 03 00 48 07 00 90 00 C3 [20:05:09]RAPDU: 90 00 [20:05:09]wFMCommunicate OK [20:05:09]SAM_PROTO_ClearQueue done [20:05:09]KKMCreateOFDPacket [20:05:09]OFDProtocolAddRootSTLVToBuf [20:05:09]FM_MakeSignedData [20:05:09]FM_MakeSignedData [20:05:09]SAM_PROTO_SignData [20:05:09]wFMCommunicate request_size=4 [20:05:09]MH_SAM_APDU [20:05:09]CAPDU: 80 0D 01 02 [20:05:09]Write to MH i2c: E2 08 00 49 07 80 0D 01 02 00 00 00 00 C9 [20:05:09]Write i2c OK [20:05:09]MH_I2C_Read... [20:05:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:05:09]Read from MH i2c: E2 [20:05:09]MH_I2C_Read... [20:05:09]Read from MH i2c: E2 03 00 [20:05:09]MH_I2C_Read... [20:05:09]Read from MH i2c: E2 03 00 49 07 00 90 00 C4 [20:05:09]RAPDU: 90 00 [20:05:09]wFMCommunicate OK [20:05:09]wFMCommunicate request_size=255 [20:05:09]MH_SAM_APDU [20:05: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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 01 00 00 F4 03 04 00 74 62 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3B 79 03 00 35 04 06 00 48 05 DA F4 [20:05:09]Write to MH i2c: E2 02 01 4A 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 01 00 00 F4 03 04 00 74 62 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3B 79 03 00 35 04 06 00 48 05 DA F4 00 00 E3 [20:05:09]Write i2c OK [20:05:09]MH_I2C_Read... [20:05:09]OFD Sender: No OFD packet to send [20:05:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:09]Read from MH i2c: E2 [20:05:09]MH_I2C_Read... [20:05:09]Read from MH i2c: E2 03 00 [20:05:09]MH_I2C_Read... [20:05:09]Read from MH i2c: E2 03 00 4A 07 00 90 00 C5 [20:05:09]RAPDU: 90 00 [20:05:09]wFMCommunicate OK [20:05:09]wFMCommunicate request_size=7 [20:05:09]MH_SAM_APDU [20:05:09]CAPDU: 80 0D 02 02 02 7C 3B [20:05:09]Write to MH i2c: E2 0A 00 4B 07 80 0D 02 02 02 00 7C 3B 00 00 87 [20:05:09]Write i2c OK [20:05:09]MH_I2C_Read... [20:05:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:09]Read from MH i2c: E2 [20:05:09]MH_I2C_Read... [20:05:09]Read from MH i2c: E2 03 00 [20:05:09]MH_I2C_Read... [20:05:09]Read from MH i2c: E2 03 00 4B 07 00 90 00 C6 [20:05:09]RAPDU: 90 00 [20:05:09]wFMCommunicate OK [20:05:09]wFMCommunicate request_size=4 [20:05:09]MH_SAM_APDU [20:05:09]CAPDU: 80 0D 03 02 [20:05:09]Write to MH i2c: E2 08 00 4C 07 80 0D 03 02 00 00 00 00 CE [20:05:09]Write i2c OK [20:05:09]MH_I2C_Read... [20:05:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:05:09]Read from MH i2c: E2 [20:05:09]MH_I2C_Read... [20:05:09]Read from MH i2c: E2 0B 00 [20:05:09]MH_I2C_Read... [20:05:09]Read from MH i2c: E2 0B 00 4C 07 00 5A 8C 3A ED EF 82 E5 64 90 00 96 [20:05:09]RAPDU: 5A 8C 3A ED EF 82 E5 64 90 00 [20:05:09]wFMCommunicate OK [20:05:09]SAM_PROTO_SignData done [20:05:09]FM_MakeSignedData done [20:05:09]CreateOFDProtocolMessage [20:05:09]wFMCommunicate request_size=4 [20:05:09]MH_SAM_APDU [20:05:09]CAPDU: 80 11 00 00 [20:05:09]Write to MH i2c: E2 08 00 4D 07 80 11 00 00 00 00 00 00 CE [20:05:09]Write i2c OK [20:05:09]MH_I2C_Read... [20:05:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:09]Read from MH i2c: E2 [20:05:09]MH_I2C_Read... [20:05:09]Read from MH i2c: E2 17 00 [20:05:09]MH_I2C_Read... [20:05:09]Read from MH i2c: E2 17 00 4D 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 25 [20:05:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:05:09]wFMCommunicate OK [20:05:09]CreateOFDProtocolMessage done [20:05:09]OFDSenderStorePacket 227643 [20:05:09]StoreOFDPacket docnum=227643 [20:05:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 39 71 04 01 CE 1E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 01 00 00 F4 03 04 00 74 62 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3B 79 03 00 35 04 06 00 48 05 DA F4 7C 3B 5A 8C 3A ED EF 82 E5 64 [20:05:09]CheckFolder [20:05:09]dirname=/storage/ofd_packets [20:05:09]CheckFolder done [20:05:09]ProducePacketName [20:05:09]name=ofd_packets/00227643 [20:05:09]NVStorageSaveData ofd_packets/00227643 [20:05:09]File name is /storage/ofd_packets/00227643 [20:05:09]Write 298 bytes [20:05:09]NVStorageSaveData done [20:05:09]OFDSenderStorePacket done [20:05:09]KKMCreateOFDPacket done [20:05:09]NVStorageSaveData kkm_last_timestamp [20:05:09]File name is /storage/kkm_last_timestamp [20:05:09]Write 4 bytes [20:05:09]NVStorageSaveData done [20:05:09]ExternCall_PrintAddStr [20:05:09]wPrintStart [20:05:09]Write to MH i2c: 01 00 00 4E 07 55 [20:05:09]Write i2c OK [20:05:09]MH_I2C_Read... [20:05:09]Read from MH i2c: 01 [20:05:09]MH_I2C_Read... [20:05:09]Read from MH i2c: 01 07 00 [20:05:09]MH_I2C_Read... [20:05:09]Read from MH i2c: 01 07 00 4E 07 00 00 00 00 00 FF 0F 6A [20:05:09]RasterBufferAndPrint [20:05:09]line Счет N : (1)1963305 [20:05:09]line ИНН: 02508201610067 [20:05:09]line Контрольно-Кассовый Чек [20:05:09]line ПРОДАЖА [20:05:09]line ТРК (МРК, ГНК) : 11 [20:05:09]line Товар: 2710194210 [20:05:09]line ДТ-К-5 [20:05:09]line 13.130 * 76.20 [20:05:09]line = 1000.51 [20:05:09]line НДС 12% НСП 1% [20:05:09]line > о реализуемом товаре [20:05:09]line ИТОГО: 1000.51 [20:05:09]line НСП 1% : 8.85 [20:05:09]line НДС 12% : 106.25 [20:05:09]line Наличными: 0.00 [20:05:09]line Безнал.: 1000.51 [20:05:09]line Место: АЗС № 133 "Партнер Нефть" [20:05:09]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [20:05:09]line СНО: Общий режим [20:05:09]line Чек 491 20.10.2024 20:05 [20:05:09]line Смена: 533 ФФД: 1.0 [20:05:09]line ЗНМ: 0300000091 [20:05:09]line РНМ: 0000000000091685 [20:05:09]line Версия ККМ: 001 [20:05:09]line Платежная система: Mbank [20:05:09]line ФМ: 0000000000871839 [20:05:09]line ФД: 227643 [20:05:09]line ФПД: 79189985492027 [20:05:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T200508&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227643&fm=79189985492027&tin=02508201610067®Number=0000000000091685&sum=100051 [20:05:10]OFD Sender: Processing packet 227643 [packets to send 38, broken 37] [20:05:10]ProducePacketName [20:05:10]name=ofd_packets/00227643 [20:05:10]OFD Sender: To server: pG, [20:05:10]CommunicateWithHost lk.salyk.kg:30040 [20:05:10]ConnectInit lk.salyk.kg [20:05:10]written 0, free lines is 4095 [20:05:10]Connected sock=10 [20:05: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 33 39 0C 01 00 00 39 71 04 01 CE 1E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 01 00 00 F4 03 04 00 74 62 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3B 79 03 00 35 04 06 00 48 05 DA F4 7C 3B 5A 8C 3A ED EF 82 E5 64 [20:05: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 33 39 4F 00 00 00 57 C2 47 00 B1 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3B 79 03 00 F4 03 04 00 72 0D 15 67 B6 04 01 00 00 2C 31 38 DC 10 D2 9A 0B [20:05:10]CommunicateWithHost err = 0 [20:05:10]CheckOFDResponse [20:05:10]1017 (14) - 77093643461234 [20:05:10]1041 (16) - 0000000000871839 [20:05:10]1040 (4) - 227643 [20:05:10]1012 (4) - 20.10.2024 14:02 [20:05:10]1206 (1) - 0 [20:05:10]OFD Sender: Remove packet 227643 [20:05:10]ProducePacketName [20:05:10]name=ofd_packets/00227643 [20:05:10]NVStorageDeleteData [20:05:10]Write to MH i2c: 01 00 00 76 07 7D [20:05:10]Write i2c OK [20:05:10]MH_I2C_Read... [20:05:10]Read from MH i2c: 01 [20:05:10]MH_I2C_Read... [20:05:10]Read from MH i2c: 01 07 00 [20:05:10]MH_I2C_Read... [20:05:10]Read from MH i2c: 01 07 00 76 07 00 00 00 00 00 CE 0C 5E [20:05:10]RasterBufferAndPrint [20:05:10]line [20:05:10]line [20:05:10]line [20:05:10]line [20:05:10]line [20:05:10]written 0, free lines is 3282 [20:05:10]MH_Cut [20:05:10]Write to MH i2c: D1 01 00 7D 07 01 56 [20:05:10]Write i2c OK [20:05:10]MH_I2C_Read... [20:05:10]Read from MH i2c: D1 [20:05:10]MH_I2C_Read... [20:05:10]Read from MH i2c: D1 01 00 [20:05:10]MH_I2C_Read... [20:05:10]Read from MH i2c: D1 01 00 7D 07 00 55 [20:05:10]Write to MH i2c: 01 00 00 7E 07 85 [20:05:10]Write i2c OK [20:05:10]MH_I2C_Read... [20:05:10]OFD Sender: No OFD packet to send [20:05:11]*** Cut start [20:05:11]*** Partial cut [20:05:11]*** CUTSNS_PIN = 1 [20:05:11]*** CUTSNS_PIN = 0 [20:05:11]*** Brake cut motor [20:05:12]Read from MH i2c: 01 [20:05:12]MH_I2C_Read... [20:05:12]*** Stop cut motor [20:05:12]*** Cut end [20:05:12]Read from MH i2c: 01 07 00 [20:05:12]MH_I2C_Read... [20:05:12]Read from MH i2c: 01 07 00 7E 07 00 00 00 00 00 FF 0F 9A [20:05:12]process_action close_receipt done [20:05:12]requested_data is exist [20:05:12]produce_requested_data [20:05:12]requested_item fm.sn is exist - process it [20:05:12]wFMCommunicate request_size=4 [20:05:12]MH_SAM_APDU [20:05:12]CAPDU: 80 11 00 00 [20:05:12]Write to MH i2c: E2 08 00 7F 07 80 11 00 00 00 00 00 00 00 [20:05:12]Write i2c OK [20:05:12]MH_I2C_Read... [20:05:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:12]Read from MH i2c: E2 [20:05:12]MH_I2C_Read... [20:05:12]Read from MH i2c: E2 17 00 [20:05:12]MH_I2C_Read... [20:05:12]Read from MH i2c: E2 17 00 7F 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 57 [20:05:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:05:12]wFMCommunicate OK [20:05:12]requested_item fd.num is exist - process it [20:05:12]SAM_PROTO_GetFieldsCounters [20:05:12]wFMCommunicate request_size=4 [20:05:12]MH_SAM_APDU [20:05:12]CAPDU: 80 13 00 00 [20:05:12]Write to MH i2c: E2 08 00 80 07 80 13 00 00 00 00 00 00 03 [20:05:12]Write i2c OK [20:05:12]MH_I2C_Read... [20:05:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:05:12]Read from MH i2c: E2 [20:05:12]MH_I2C_Read... [20:05:12]Read from MH i2c: E2 62 00 [20:05:12]MH_I2C_Read... [20:05:12]Read from MH i2c: E2 62 00 80 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 3B 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 EB 01 00 00 5E 04 04 00 EB 01 00 00 57 04 04 00 EC 01 00 00 19 04 04 00 00 00 00 00 90 00 BE [20:05: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 3B 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 EB 01 00 00 5E 04 04 00 EB 01 00 00 57 04 04 00 EC 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:05:12]wFMCommunicate OK [20:05:12]SAM_PROTO_GetFieldsCounters done [20:05:12]requested_item shift.num is exist - process it [20:05:12]requested_item shift.opened is exist - process it [20:05:12]req_shift_opened [20:05:12]FM_GetShiftState [20:05:12]SAM_PROTO_GetShiftState [20:05:12]wFMCommunicate request_size=4 [20:05:12]MH_SAM_APDU [20:05:12]CAPDU: 80 13 01 00 [20:05:12]Write to MH i2c: E2 08 00 81 07 80 13 01 00 00 00 00 00 05 [20:05:12]Write i2c OK [20:05:12]MH_I2C_Read... [20:05:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:12]Read from MH i2c: E2 [20:05:12]MH_I2C_Read... [20:05:12]Read from MH i2c: E2 0E 00 [20:05:12]MH_I2C_Read... [20:05:12]Read from MH i2c: E2 0E 00 81 07 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 1F [20:05:12]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:05:12]wFMCommunicate OK [20:05:12]SAM_PROTO_GetShiftState done [20:05:12]FM_GetShiftState done [20:05:12]req_shift_opened done [20:05:12]requested_item shift.open_date is exist - process it [20:05:12]req_shift_open_date [20:05:12]req_shift_open_date done [20:05:12]produce_requested_data done [20:05:12]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227643,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [20:05:12]process_action_free close_receipt [20:05:12]json_value_free [20:05:12]json_value_free done [20:05:12]process_json_proto returns [20:05:12]Send response to host [20:05:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227643,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [20:05:12]free response buf [20:05:12]execute_script done [20:05:12]execute_script returns [20:05:12]free content buf [20:05:12]Sock 7.Close socket [20:05:12]Sock 7.Thread stoped [20:05:15]OFD Sender: No OFD packet to send [20:05:20]OFD Sender: No OFD packet to send [20:05:24]accept exits with 9 [20:05:24]New connection [20:05:24]New thread 3066809700 created [20:05:24]Thread 3066666340 joined [20:05:24]Waiting for new connection... [20:05:24] Sock 9.Parse request [20:05:24]Sock 9.Check first char [20:05:24]Sock 9.First char is OK [20:05:24]request: POST /json_proto HTTP/1.0 [20:05:24]Method: POST [20:05:24]URL: /json_proto [20:05:24]Method is POST - this is cgi request [20:05:24]url: /json_proto [20:05:24]query_string will be loaded in cgi processing [20:05:24]execute_cgi json_proto POST (null) [20:05:24]execute_cgi path=json_proto method=POST [20:05:24]POST find Content-Length [20:05:24]Host: 172.17.44.195:8080 [20:05:24]Content-Length: 659 [20:05:24]Content-Type: application/json [20:05:24] [20:05:24]POST finish read [20:05:24]Found Content-Length = 659 [20:05:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963306", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 8.780, "sum" : 600.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:24]execute_script... [20:05: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)1963306", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 8.780, "sum" : 600.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:24]POST & json_proto [20:05:24]process_json_proto [20:05:24]json parsed OK: [20:05:24]protocol is kg_v1.0 [20:05:24]action value=close_receipt [20:05:24]process_action close_receipt [20:05:24]cmd_close_receipt [20:05:24]MH_GetDate [20:05:24]Write to MH i2c: F0 00 00 82 07 78 [20:05:24]Write i2c OK [20:05:24]MH_I2C_Read... [20:05:24]Read from MH i2c: F0 [20:05:24]MH_I2C_Read... [20:05:24]Read from MH i2c: F0 09 00 [20:05:24]MH_I2C_Read... [20:05:24]Read from MH i2c: F0 09 00 82 07 00 85 62 15 67 82 C9 CF 66 64 [20:05:24]GetLastDocTimeStamp 1729454708 [20:05:24]current date 1729454725 [20:05:24]FM_GetShiftState [20:05:24]SAM_PROTO_GetShiftState [20:05:24]wFMCommunicate request_size=4 [20:05:24]MH_SAM_APDU [20:05:24]CAPDU: 80 13 01 00 [20:05:24]Write to MH i2c: E2 08 00 83 07 80 13 01 00 00 00 00 00 07 [20:05:24]Write i2c OK [20:05:24]MH_I2C_Read... [20:05:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:24]Read from MH i2c: E2 [20:05:24]MH_I2C_Read... [20:05:24]Read from MH i2c: E2 0E 00 [20:05:24]MH_I2C_Read... [20:05:24]Read from MH i2c: E2 0E 00 83 07 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 21 [20:05:24]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:05:24]wFMCommunicate OK [20:05:24]SAM_PROTO_GetShiftState done [20:05:24]FM_GetShiftState done [20:05:24]opened in 1729383750 [20:05:24]opened+sec_in_day 1729470150 [20:05:24]quantity*price = 60055 [20:05:24]sum+1 = 60056 [20:05:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 492 20.10.2024 20:05 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227644 ФПД: 74548273596871 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T200525&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227644&fm=74548273596871&tin=02508201610067®Number=0000000000091685&sum=60000 [20:05:25]StoreToDocumentArchive [20:05:25]shift 533 fd 227644 [20:05:25]save to /storage/0533/doc_00227644 [20:05:25]save last doc name /storage/0533/doc_00227644 to /storage/kkm_last_doc_name [20:05:25]save OK [20:05:25]Clear old archive folders... [20:05:25]ProcessDocumentItem done err = 0, tmpTLVsize=244 [20:05:25]tlvbuf is 00C1C570 [20:05:25]SAM_PROTO_ClearQueue [20:05:25]wFMCommunicate request_size=4 [20:05:25]MH_SAM_APDU [20:05:25]CAPDU: 80 09 00 00 [20:05:25]Write to MH i2c: E2 08 00 90 07 80 09 00 00 00 00 00 00 09 [20:05:25]Write i2c OK [20:05:25]MH_I2C_Read... [20:05:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:05:25]Read from MH i2c: E2 [20:05:25]MH_I2C_Read... [20:05:25]Read from MH i2c: E2 03 00 [20:05:25]MH_I2C_Read... [20:05:25]Read from MH i2c: E2 03 00 90 07 00 90 00 0B [20:05:25]RAPDU: 90 00 [20:05:25]wFMCommunicate OK [20:05:25]SAM_PROTO_ClearQueue done [20:05:25]KKMCreateOFDPacket [20:05:25]OFDProtocolAddRootSTLVToBuf [20:05:25]FM_MakeSignedData [20:05:25]FM_MakeSignedData [20:05:25]SAM_PROTO_SignData [20:05:25]wFMCommunicate request_size=4 [20:05:25]MH_SAM_APDU [20:05:25]CAPDU: 80 0D 01 02 [20:05:25]Write to MH i2c: E2 08 00 91 07 80 0D 01 02 00 00 00 00 11 [20:05:25]Write i2c OK [20:05:25]MH_I2C_Read... [20:05:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:05:25]Read from MH i2c: E2 [20:05:25]MH_I2C_Read... [20:05:25]Read from MH i2c: E2 03 00 [20:05:25]MH_I2C_Read... [20:05:25]Read from MH i2c: E2 03 00 91 07 00 90 00 0C [20:05:25]RAPDU: 90 00 [20:05:25]wFMCommunicate OK [20:05:25]wFMCommunicate request_size=253 [20:05:25]MH_SAM_APDU [20:05:25]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 01 00 00 F4 03 04 00 85 62 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3C 79 03 00 35 04 06 00 43 CD 1F 5D C9 C7 [20:05:25]Write to MH i2c: E2 00 01 92 07 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 01 00 00 F4 03 04 00 85 62 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3C 79 03 00 35 04 06 00 43 CD 1F 5D C9 C7 00 00 77 [20:05:25]Write i2c OK [20:05:25]MH_I2C_Read... [20:05:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:25]Read from MH i2c: E2 [20:05:25]MH_I2C_Read... [20:05:25]Read from MH i2c: E2 03 00 [20:05:25]MH_I2C_Read... [20:05:25]Read from MH i2c: E2 03 00 92 07 00 90 00 0D [20:05:25]RAPDU: 90 00 [20:05:25]wFMCommunicate OK [20:05:25]wFMCommunicate request_size=4 [20:05:25]MH_SAM_APDU [20:05:25]CAPDU: 80 0D 03 02 [20:05:25]Write to MH i2c: E2 08 00 93 07 80 0D 03 02 00 00 00 00 15 [20:05:25]Write i2c OK [20:05:25]MH_I2C_Read... [20:05:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:05:25]Read from MH i2c: E2 [20:05:25]MH_I2C_Read... [20:05:25]Read from MH i2c: E2 0B 00 [20:05:25]MH_I2C_Read... [20:05:25]Read from MH i2c: E2 0B 00 93 07 00 C7 84 E8 77 FE 02 B5 94 90 00 09 [20:05:25]RAPDU: C7 84 E8 77 FE 02 B5 94 90 00 [20:05:25]wFMCommunicate OK [20:05:25]SAM_PROTO_SignData done [20:05:25]FM_MakeSignedData done [20:05:25]CreateOFDProtocolMessage [20:05:25]wFMCommunicate request_size=4 [20:05:25]MH_SAM_APDU [20:05:25]CAPDU: 80 11 00 00 [20:05:25]Write to MH i2c: E2 08 00 94 07 80 11 00 00 00 00 00 00 15 [20:05:25]Write i2c OK [20:05:25]MH_I2C_Read... [20:05:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:25]Read from MH i2c: E2 [20:05:25]MH_I2C_Read... [20:05:25]Read from MH i2c: E2 17 00 [20:05:25]MH_I2C_Read... [20:05:25]Read from MH i2c: E2 17 00 94 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 6C [20:05:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:05:25]wFMCommunicate OK [20:05:25]CreateOFDProtocolMessage done [20:05:25]OFDSenderStorePacket 227644 [20:05:25]StoreOFDPacket docnum=227644 [20:05:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 4F A9 00 01 86 66 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 01 00 00 F4 03 04 00 85 62 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3C 79 03 00 35 04 06 00 43 CD 1F 5D C9 C7 C7 84 E8 77 FE 02 B5 94 [20:05:25]CheckFolder [20:05:25]dirname=/storage/ofd_packets [20:05:25]CheckFolder done [20:05:25]ProducePacketName [20:05:25]name=ofd_packets/00227644 [20:05:25]NVStorageSaveData ofd_packets/00227644 [20:05:25]File name is /storage/ofd_packets/00227644 [20:05:25]Write 294 bytes [20:05:25]NVStorageSaveData done [20:05:25]OFDSenderStorePacket done [20:05:25]KKMCreateOFDPacket done [20:05:25]NVStorageSaveData kkm_last_timestamp [20:05:25]File name is /storage/kkm_last_timestamp [20:05:25]Write 4 bytes [20:05:25]NVStorageSaveData done [20:05:25]ExternCall_PrintAddStr [20:05:25]wPrintStart [20:05:25]Write to MH i2c: 01 00 00 95 07 9C [20:05:25]Write i2c OK [20:05:25]MH_I2C_Read... [20:05:25]Read from MH i2c: 01 [20:05:25]MH_I2C_Read... [20:05:25]Read from MH i2c: 01 07 00 [20:05:25]MH_I2C_Read... [20:05:25]Read from MH i2c: 01 07 00 95 07 00 00 00 00 00 FF 0F B1 [20:05:25]RasterBufferAndPrint [20:05:25]line Счет N : (1)1963306 [20:05:25]line ИНН: 02508201610067 [20:05:25]line Контрольно-Кассовый Чек [20:05:25]line ПРОДАЖА [20:05:25]line ТРК (МРК, ГНК) : 32 [20:05:25]line Товар: 2710124130 [20:05:25]line SU-92 [20:05:25]line 8.780 * 68.40 [20:05:25]line = 600.55 [20:05:25]line НДС 12% НСП 1% [20:05:25]line > о реализуемом товаре [20:05:25]line ОКРУГЛЕНИЕ: -0.55 [20:05:25]line ИТОГО: 600.00 [20:05:25]line Внесено: 600.00 [20:05:25]line СДАЧА: 0.00 [20:05:25]line НСП 1% : 5.31 [20:05:25]line НДС 12% : 63.77 [20:05:25]line Наличными: 600.00 [20:05:25]line Безнал.: 0.00 [20:05:25]line Место: АЗС № 133 "Партнер Нефть" [20:05:25]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [20:05:25]line СНО: Общий режим [20:05:25]line Чек 492 20.10.2024 20:05 [20:05:25]line Смена: 533 ФФД: 1.0 [20:05:25]line ЗНМ: 0300000091 [20:05:25]line РНМ: 0000000000091685 [20:05:25]line Версия ККМ: 001 [20:05:25]line ФМ: 0000000000871839 [20:05:25]line ФД: 227644 [20:05:25]line ФПД: 74548273596871 [20:05:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T200525&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227644&fm=74548273596871&tin=02508201610067®Number=0000000000091685&sum=60000 [20:05:26]OFD Sender: Processing packet 227644 [packets to send 38, broken 37] [20:05:26]ProducePacketName [20:05:26]name=ofd_packets/00227644 [20:05:26]OFD Sender: To server: pG, [20:05:26]CommunicateWithHost lk.salyk.kg:30040 [20:05:26]ConnectInit lk.salyk.kg [20:05:26]written 0, free lines is 4095 [20:05:26]Connected sock=10 [20:05:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 4F A9 00 01 86 66 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 01 00 00 F4 03 04 00 85 62 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3C 79 03 00 35 04 06 00 43 CD 1F 5D C9 C7 C7 84 E8 77 FE 02 B5 94 [20:05: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 33 39 4F 00 00 00 72 3A 47 00 19 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 33 39 10 04 04 00 3C 79 03 00 F4 03 04 00 82 0D 15 67 B6 04 01 00 00 A4 3A 36 6A CD 3F 10 5E [20:05:26]CommunicateWithHost err = 0 [20:05:26]CheckOFDResponse [20:05:26]1017 (14) - 77093643461234 [20:05:26]1041 (16) - 0000000000871839 [20:05:26]1040 (4) - 227644 [20:05:26]1012 (4) - 20.10.2024 14:02 [20:05:26]1206 (1) - 0 [20:05:26]OFD Sender: Remove packet 227644 [20:05:26]ProducePacketName [20:05:26]name=ofd_packets/00227644 [20:05:26]NVStorageDeleteData [20:05:26]Write to MH i2c: 01 00 00 BF 07 C6 [20:05:26]Write i2c OK [20:05:26]MH_I2C_Read... [20:05:26]Read from MH i2c: 01 [20:05:26]MH_I2C_Read... [20:05:26]Read from MH i2c: 01 07 00 [20:05:26]MH_I2C_Read... [20:05:26]Read from MH i2c: 01 07 00 BF 07 00 00 00 00 00 A9 0C 82 [20:05:26]RasterBufferAndPrint [20:05:26]line [20:05:26]line [20:05:26]line [20:05:26]line [20:05:26]line [20:05:26]written 0, free lines is 3246 [20:05:26]MH_Cut [20:05:26]Write to MH i2c: D1 01 00 C6 07 01 9F [20:05:26]Write i2c OK [20:05:26]MH_I2C_Read... [20:05:26]Read from MH i2c: D1 [20:05:26]MH_I2C_Read... [20:05:26]Read from MH i2c: D1 01 00 [20:05:26]MH_I2C_Read... [20:05:26]Read from MH i2c: D1 01 00 C6 07 00 9E [20:05:26]Write to MH i2c: 01 00 00 C7 07 CE [20:05:26]Write i2c OK [20:05:26]MH_I2C_Read... [20:05:26]OFD Sender: No OFD packet to send [20:05:27]*** Cut start [20:05:27]*** Partial cut [20:05:27]*** CUTSNS_PIN = 1 [20:05:27]*** CUTSNS_PIN = 0 [20:05:27]*** Brake cut motor [20:05:28]Read from MH i2c: 01 [20:05:28]MH_I2C_Read... [20:05:28]*** Stop cut motor [20:05:28]*** Cut end [20:05:28]Read from MH i2c: 01 07 00 [20:05:28]MH_I2C_Read... [20:05:28]Read from MH i2c: 01 07 00 C7 07 00 00 00 00 00 FF 0F E3 [20:05:28]process_action close_receipt done [20:05:28]requested_data is exist [20:05:28]produce_requested_data [20:05:28]requested_item fm.sn is exist - process it [20:05:28]wFMCommunicate request_size=4 [20:05:28]MH_SAM_APDU [20:05:28]CAPDU: 80 11 00 00 [20:05:28]Write to MH i2c: E2 08 00 C8 07 80 11 00 00 00 00 00 00 49 [20:05:28]Write i2c OK [20:05:28]MH_I2C_Read... [20:05:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:28]Read from MH i2c: E2 [20:05:28]MH_I2C_Read... [20:05:28]Read from MH i2c: E2 17 00 [20:05:28]MH_I2C_Read... [20:05:28]Read from MH i2c: E2 17 00 C8 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A0 [20:05:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:05:28]wFMCommunicate OK [20:05:28]requested_item fd.num is exist - process it [20:05:28]SAM_PROTO_GetFieldsCounters [20:05:28]wFMCommunicate request_size=4 [20:05:28]MH_SAM_APDU [20:05:28]CAPDU: 80 13 00 00 [20:05:28]Write to MH i2c: E2 08 00 C9 07 80 13 00 00 00 00 00 00 4C [20:05:28]Write i2c OK [20:05:28]MH_I2C_Read... [20:05:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:05:28]Read from MH i2c: E2 [20:05:28]MH_I2C_Read... [20:05:28]Read from MH i2c: E2 62 00 [20:05:28]MH_I2C_Read... [20:05:28]Read from MH i2c: E2 62 00 C9 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 3C 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 EC 01 00 00 5E 04 04 00 EC 01 00 00 57 04 04 00 ED 01 00 00 19 04 04 00 00 00 00 00 90 00 0B [20:05: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 3C 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 EC 01 00 00 5E 04 04 00 EC 01 00 00 57 04 04 00 ED 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:05:28]wFMCommunicate OK [20:05:28]SAM_PROTO_GetFieldsCounters done [20:05:28]requested_item shift.num is exist - process it [20:05:28]requested_item shift.opened is exist - process it [20:05:28]req_shift_opened [20:05:28]FM_GetShiftState [20:05:28]SAM_PROTO_GetShiftState [20:05:28]wFMCommunicate request_size=4 [20:05:28]MH_SAM_APDU [20:05:28]CAPDU: 80 13 01 00 [20:05:28]Write to MH i2c: E2 08 00 CA 07 80 13 01 00 00 00 00 00 4E [20:05:28]Write i2c OK [20:05:28]MH_I2C_Read... [20:05:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:28]Read from MH i2c: E2 [20:05:28]MH_I2C_Read... [20:05:28]Read from MH i2c: E2 0E 00 [20:05:28]MH_I2C_Read... [20:05:28]Read from MH i2c: E2 0E 00 CA 07 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 68 [20:05:28]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:05:28]wFMCommunicate OK [20:05:28]SAM_PROTO_GetShiftState done [20:05:28]FM_GetShiftState done [20:05:28]req_shift_opened done [20:05:28]requested_item shift.open_date is exist - process it [20:05:28]req_shift_open_date [20:05:28]req_shift_open_date done [20:05:28]produce_requested_data done [20:05:28]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227644,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [20:05:28]process_action_free close_receipt [20:05:28]json_value_free [20:05:28]json_value_free done [20:05:28]process_json_proto returns [20:05:28]Send response to host [20:05:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227644,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [20:05:28]free response buf [20:05:28]execute_script done [20:05:28]execute_script returns [20:05:28]free content buf [20:05:28]Sock 9.Close socket [20:05:28]Sock 9.Thread stoped [20:05:31]OFD Sender: No OFD packet to send [20:05:36]OFD Sender: No OFD packet to send [20:05:41]OFD Sender: No OFD packet to send [20:05:46]OFD Sender: No OFD packet to send [20:05:51]OFD Sender: No OFD packet to send [20:05:56]OFD Sender: No OFD packet to send [20:06:01]OFD Sender: No OFD packet to send [20:06:06]OFD Sender: No OFD packet to send [20:06:11]OFD Sender: No OFD packet to send [20:06:16]OFD Sender: No OFD packet to send [20:06:21]OFD Sender: No OFD packet to send [20:06:26]OFD Sender: No OFD packet to send [20:06:31]OFD Sender: No OFD packet to send [20:06:36]OFD Sender: No OFD packet to send [20:06:41]OFD Sender: No OFD packet to send [20:06:47]OFD Sender: No OFD packet to send [20:06:52]OFD Sender: No OFD packet to send [20:06:57]OFD Sender: No OFD packet to send [20:07:02]OFD Sender: No OFD packet to send [20:07:07]OFD Sender: No OFD packet to send [20:07:12]OFD Sender: No OFD packet to send [20:07:17]OFD Sender: No OFD packet to send [20:07:22]OFD Sender: No OFD packet to send [20:07:27]OFD Sender: No OFD packet to send [20:07:32]OFD Sender: No OFD packet to send [20:07:37]OFD Sender: No OFD packet to send [20:07:42]OFD Sender: No OFD packet to send [20:07:47]OFD Sender: No OFD packet to send [20:07:52]OFD Sender: No OFD packet to send [20:07:57]OFD Sender: No OFD packet to send [20:08:02]OFD Sender: No OFD packet to send [20:08:07]OFD Sender: No OFD packet to send [20:08:12]OFD Sender: No OFD packet to send [20:08:17]OFD Sender: No OFD packet to send [20:08:22]OFD Sender: No OFD packet to send [20:08:27]OFD Sender: No OFD packet to send [20:08:32]OFD Sender: No OFD packet to send [20:08:37]OFD Sender: No OFD packet to send [20:08:42]OFD Sender: No OFD packet to send [20:08:47]OFD Sender: No OFD packet to send [20:08:52]OFD Sender: No OFD packet to send [20:08:57]OFD Sender: No OFD packet to send [20:09:02]OFD Sender: No OFD packet to send [20:09:07]OFD Sender: No OFD packet to send [20:09:09]accept exits with 7 [20:09:09]New connection [20:09:09]New thread 3066666340 created [20:09:09]Thread 3066809700 joined [20:09:09]Waiting for new connection... [20:09:09] Sock 7.Parse request [20:09:09]Sock 7.Check first char [20:09:09]Sock 7.First char is OK [20:09:09]request: POST /json_proto HTTP/1.0 [20:09:09]Method: POST [20:09:09]URL: /json_proto [20:09:09]Method is POST - this is cgi request [20:09:09]url: /json_proto [20:09:09]query_string will be loaded in cgi processing [20:09:09]execute_cgi json_proto POST (null) [20:09:09]execute_cgi path=json_proto method=POST [20:09:09]POST find Content-Length [20:09:09]Host: 172.17.44.195:8080 [20:09:09]Content-Length: 621 [20:09:09]Content-Type: application/json [20:09:09] [20:09:09]POST finish read [20:09:09]Found Content-Length = 621 [20:09:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963307", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:09:09]execute_script... [20:09: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)1963307", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:09:09]POST & json_proto [20:09:09]process_json_proto [20:09:09]json parsed OK: [20:09:09]protocol is kg_v1.0 [20:09:09]action value=close_receipt [20:09:09]process_action close_receipt [20:09:09]cmd_close_receipt [20:09:09]MH_GetDate [20:09:09]Write to MH i2c: F0 00 00 CB 07 C1 [20:09:09]Write i2c OK [20:09:09]MH_I2C_Read... [20:09:09]Read from MH i2c: F0 [20:09:09]MH_I2C_Read... [20:09:09]Read from MH i2c: F0 09 00 [20:09:09]MH_I2C_Read... [20:09:09]Read from MH i2c: F0 09 00 CB 07 00 66 63 15 67 82 C9 CF 66 8F [20:09:09]GetLastDocTimeStamp 1729454725 [20:09:09]current date 1729454950 [20:09:09]FM_GetShiftState [20:09:09]SAM_PROTO_GetShiftState [20:09:09]wFMCommunicate request_size=4 [20:09:09]MH_SAM_APDU [20:09:09]CAPDU: 80 13 01 00 [20:09:09]Write to MH i2c: E2 08 00 CC 07 80 13 01 00 00 00 00 00 50 [20:09:09]Write i2c OK [20:09:09]MH_I2C_Read... [20:09:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:09:09]Read from MH i2c: E2 [20:09:09]MH_I2C_Read... [20:09:09]Read from MH i2c: E2 0E 00 [20:09:09]MH_I2C_Read... [20:09:09]Read from MH i2c: E2 0E 00 CC 07 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 6A [20:09:09]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:09:09]wFMCommunicate OK [20:09:09]SAM_PROTO_GetShiftState done [20:09:09]FM_GetShiftState done [20:09:09]opened in 1729383750 [20:09:09]opened+sec_in_day 1729470150 [20:09:09]quantity*price = 50000 [20:09:09]sum+1 = 50001 [20:09:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 493 20.10.2024 20:09 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227645 ФПД: 24302604972501 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T200910&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227645&fm=24302604972501&tin=02508201610067®Number=0000000000091685&sum=50000 [20:09:10]StoreToDocumentArchive [20:09:10]shift 533 fd 227645 [20:09:10]save to /storage/0533/doc_00227645 [20:09:10]save last doc name /storage/0533/doc_00227645 to /storage/kkm_last_doc_name [20:09:10]save OK [20:09:10]Clear old archive folders... [20:09:10]ProcessDocumentItem done err = 0, tmpTLVsize=244 [20:09:10]tlvbuf is 00C98660 [20:09:10]SAM_PROTO_ClearQueue [20:09:10]wFMCommunicate request_size=4 [20:09:10]MH_SAM_APDU [20:09:10]CAPDU: 80 09 00 00 [20:09:10]Write to MH i2c: E2 08 00 D9 07 80 09 00 00 00 00 00 00 52 [20:09:10]Write i2c OK [20:09:10]MH_I2C_Read... [20:09:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:09:10]Read from MH i2c: E2 [20:09:10]MH_I2C_Read... [20:09:10]Read from MH i2c: E2 03 00 [20:09:10]MH_I2C_Read... [20:09:10]Read from MH i2c: E2 03 00 D9 07 00 90 00 54 [20:09:10]RAPDU: 90 00 [20:09:10]wFMCommunicate OK [20:09:10]SAM_PROTO_ClearQueue done [20:09:10]KKMCreateOFDPacket [20:09:10]OFDProtocolAddRootSTLVToBuf [20:09:10]FM_MakeSignedData [20:09:10]FM_MakeSignedData [20:09:10]SAM_PROTO_SignData [20:09:10]wFMCommunicate request_size=4 [20:09:10]MH_SAM_APDU [20:09:10]CAPDU: 80 0D 01 02 [20:09:10]Write to MH i2c: E2 08 00 DA 07 80 0D 01 02 00 00 00 00 5A [20:09:10]Write i2c OK [20:09:10]MH_I2C_Read... [20:09:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:09:10]Read from MH i2c: E2 [20:09:10]MH_I2C_Read... [20:09:10]Read from MH i2c: E2 03 00 [20:09:10]MH_I2C_Read... [20:09:10]Read from MH i2c: E2 03 00 DA 07 00 90 00 55 [20:09:10]RAPDU: 90 00 [20:09:10]wFMCommunicate OK [20:09:10]wFMCommunicate request_size=253 [20:09:10]MH_SAM_APDU [20:09:10]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 01 00 00 F4 03 04 00 66 63 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3D 79 03 00 35 04 06 00 16 1A 64 22 F1 D5 [20:09:10]Write to MH i2c: E2 00 01 DB 07 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 01 00 00 F4 03 04 00 66 63 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3D 79 03 00 35 04 06 00 16 1A 64 22 F1 D5 00 00 DB [20:09:10]Write i2c OK [20:09:10]MH_I2C_Read... [20:09:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:09:10]Read from MH i2c: E2 [20:09:10]MH_I2C_Read... [20:09:10]Read from MH i2c: E2 03 00 [20:09:10]MH_I2C_Read... [20:09:10]Read from MH i2c: E2 03 00 DB 07 00 90 00 56 [20:09:10]RAPDU: 90 00 [20:09:10]wFMCommunicate OK [20:09:10]wFMCommunicate request_size=4 [20:09:10]MH_SAM_APDU [20:09:10]CAPDU: 80 0D 03 02 [20:09:10]Write to MH i2c: E2 08 00 DC 07 80 0D 03 02 00 00 00 00 5E [20:09:11]Write i2c OK [20:09:11]MH_I2C_Read... [20:09:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:09:11]Read from MH i2c: E2 [20:09:11]MH_I2C_Read... [20:09:11]Read from MH i2c: E2 0B 00 [20:09:11]MH_I2C_Read... [20:09:11]Read from MH i2c: E2 0B 00 DC 07 00 BD 29 FB 8B 69 A9 10 FB 90 00 E8 [20:09:11]RAPDU: BD 29 FB 8B 69 A9 10 FB 90 00 [20:09:11]wFMCommunicate OK [20:09:11]SAM_PROTO_SignData done [20:09:11]FM_MakeSignedData done [20:09:11]CreateOFDProtocolMessage [20:09:11]wFMCommunicate request_size=4 [20:09:11]MH_SAM_APDU [20:09:11]CAPDU: 80 11 00 00 [20:09:11]Write to MH i2c: E2 08 00 DD 07 80 11 00 00 00 00 00 00 5E [20:09:11]Write i2c OK [20:09:11]MH_I2C_Read... [20:09:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:09:11]Read from MH i2c: E2 [20:09:11]MH_I2C_Read... [20:09:11]Read from MH i2c: E2 17 00 [20:09:11]MH_I2C_Read... [20:09:11]Read from MH i2c: E2 17 00 DD 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B5 [20:09:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:09:11]wFMCommunicate OK [20:09:11]CreateOFDProtocolMessage done [20:09:11]OFDSenderStorePacket 227645 [20:09:11]StoreOFDPacket docnum=227645 [20:09:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 D1 FD 00 01 B5 BB 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 01 00 00 F4 03 04 00 66 63 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3D 79 03 00 35 04 06 00 16 1A 64 22 F1 D5 BD 29 FB 8B 69 A9 10 FB [20:09:11]CheckFolder [20:09:11]dirname=/storage/ofd_packets [20:09:11]CheckFolder done [20:09:11]ProducePacketName [20:09:11]name=ofd_packets/00227645 [20:09:11]NVStorageSaveData ofd_packets/00227645 [20:09:11]File name is /storage/ofd_packets/00227645 [20:09:11]Write 294 bytes [20:09:11]NVStorageSaveData done [20:09:11]OFDSenderStorePacket done [20:09:11]KKMCreateOFDPacket done [20:09:11]NVStorageSaveData kkm_last_timestamp [20:09:11]File name is /storage/kkm_last_timestamp [20:09:11]Write 4 bytes [20:09:11]NVStorageSaveData done [20:09:11]ExternCall_PrintAddStr [20:09:11]wPrintStart [20:09:11]Write to MH i2c: 01 00 00 DE 07 E5 [20:09:11]Write i2c OK [20:09:11]MH_I2C_Read... [20:09:11]Read from MH i2c: 01 [20:09:11]MH_I2C_Read... [20:09:11]Read from MH i2c: 01 07 00 [20:09:11]MH_I2C_Read... [20:09:11]Read from MH i2c: 01 07 00 DE 07 00 00 00 00 00 FF 0F FA [20:09:11]RasterBufferAndPrint [20:09:11]line Счет N : (1)1963307 [20:09:11]line ИНН: 02508201610067 [20:09:11]line Контрольно-Кассовый Чек [20:09:11]line ПРОДАЖА [20:09:11]line ТРК (МРК, ГНК) : 32 [20:09:11]line Товар: 2710124130 [20:09:11]line SU-92 [20:09:11]line 7.310 * 68.40 [20:09:11]line = 500.00 [20:09:11]line НДС 12% НСП 1% [20:09:11]line > о реализуемом товаре [20:09:11]line ИТОГО: 500.00 [20:09:11]line НСП 1% : 4.42 [20:09:11]line НДС 12% : 53.10 [20:09:11]line Наличными: 500.00 [20:09:11]line Безнал.: 0.00 [20:09:11]line Место: АЗС № 133 "Партнер Нефть" [20:09:11]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [20:09:11]line СНО: Общий режим [20:09:11]line Чек 493 20.10.2024 20:09 [20:09:11]line Смена: 533 ФФД: 1.0 [20:09:11]line ЗНМ: 0300000091 [20:09:11]line РНМ: 0000000000091685 [20:09:11]line Версия ККМ: 001 [20:09:11]line ФМ: 0000000000871839 [20:09:11]line ФД: 227645 [20:09:11]line ФПД: 24302604972501 [20:09:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T200910&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227645&fm=24302604972501&tin=02508201610067®Number=0000000000091685&sum=50000 [20:09:11]OFD Sender: Processing packet 227645 [packets to send 38, broken 37] [20:09:11]ProducePacketName [20:09:11]name=ofd_packets/00227645 [20:09:11]OFD Sender: To server: pG, [20:09:11]CommunicateWithHost lk.salyk.kg:30040 [20:09:11]ConnectInit lk.salyk.kg [20:09:11]written 0, free lines is 4095 [20:09:11]Connected sock=10 [20:09:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 D1 FD 00 01 B5 BB 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 01 00 00 F4 03 04 00 66 63 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3D 79 03 00 35 04 06 00 16 1A 64 22 F1 D5 BD 29 FB 8B 69 A9 10 FB [20:09:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 6C 78 47 00 AC 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3D 79 03 00 F4 03 04 00 64 0E 15 67 B6 04 01 00 00 AB 9A 29 88 B3 E4 FD D9 [20:09:11]CommunicateWithHost err = 0 [20:09:11]CheckOFDResponse [20:09:11]1017 (14) - 77093643461234 [20:09:11]1041 (16) - 0000000000871839 [20:09:11]1040 (4) - 227645 [20:09:11]1012 (4) - 20.10.2024 14:06 [20:09:11]1206 (1) - 0 [20:09:11]OFD Sender: Remove packet 227645 [20:09:11]ProducePacketName [20:09:11]name=ofd_packets/00227645 [20:09:11]NVStorageDeleteData [20:09:11]Write to MH i2c: 01 00 00 05 08 0D [20:09:11]Write i2c OK [20:09:11]MH_I2C_Read... [20:09:11]Read from MH i2c: 01 [20:09:11]MH_I2C_Read... [20:09:11]Read from MH i2c: 01 07 00 [20:09:11]MH_I2C_Read... [20:09:11]Read from MH i2c: 01 07 00 05 08 00 00 00 00 00 E2 0C 02 [20:09:11]RasterBufferAndPrint [20:09:11]line [20:09:11]line [20:09:11]line [20:09:11]line [20:09:11]line [20:09:11]written 0, free lines is 3303 [20:09:11]MH_Cut [20:09:11]Write to MH i2c: D1 01 00 0C 08 01 E6 [20:09:11]Write i2c OK [20:09:11]MH_I2C_Read... [20:09:11]Read from MH i2c: D1 [20:09:11]MH_I2C_Read... [20:09:11]Read from MH i2c: D1 01 00 [20:09:11]MH_I2C_Read... [20:09:11]Read from MH i2c: D1 01 00 0C 08 00 E5 [20:09:11]Write to MH i2c: 01 00 00 0D 08 15 [20:09:11]Write i2c OK [20:09:11]MH_I2C_Read... [20:09:12]OFD Sender: No OFD packet to send [20:09:12]*** Cut start [20:09:12]*** Partial cut [20:09:12]*** CUTSNS_PIN = 1 [20:09:12]*** CUTSNS_PIN = 0 [20:09:13]*** Brake cut motor [20:09:13]Read from MH i2c: 01 [20:09:13]MH_I2C_Read... [20:09:13]*** Stop cut motor [20:09:13]*** Cut end [20:09:13]Read from MH i2c: 01 07 00 [20:09:13]MH_I2C_Read... [20:09:13]Read from MH i2c: 01 07 00 0D 08 00 00 00 00 00 FF 0F 2A [20:09:13]process_action close_receipt done [20:09:13]requested_data is exist [20:09:13]produce_requested_data [20:09:13]requested_item fm.sn is exist - process it [20:09:13]wFMCommunicate request_size=4 [20:09:13]MH_SAM_APDU [20:09:13]CAPDU: 80 11 00 00 [20:09:13]Write to MH i2c: E2 08 00 0E 08 80 11 00 00 00 00 00 00 90 [20:09:13]Write i2c OK [20:09:13]MH_I2C_Read... [20:09:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:09:13]Read from MH i2c: E2 [20:09:13]MH_I2C_Read... [20:09:13]Read from MH i2c: E2 17 00 [20:09:13]MH_I2C_Read... [20:09:13]Read from MH i2c: E2 17 00 0E 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E7 [20:09:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:09:13]wFMCommunicate OK [20:09:13]requested_item fd.num is exist - process it [20:09:13]SAM_PROTO_GetFieldsCounters [20:09:13]wFMCommunicate request_size=4 [20:09:13]MH_SAM_APDU [20:09:13]CAPDU: 80 13 00 00 [20:09:13]Write to MH i2c: E2 08 00 0F 08 80 13 00 00 00 00 00 00 93 [20:09:13]Write i2c OK [20:09:13]MH_I2C_Read... [20:09:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:09:13]Read from MH i2c: E2 [20:09:13]MH_I2C_Read... [20:09:13]Read from MH i2c: E2 62 00 [20:09:13]MH_I2C_Read... [20:09:13]Read from MH i2c: E2 62 00 0F 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 3D 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 ED 01 00 00 5E 04 04 00 ED 01 00 00 57 04 04 00 EE 01 00 00 19 04 04 00 00 00 00 00 90 00 56 [20:09: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 3D 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 ED 01 00 00 5E 04 04 00 ED 01 00 00 57 04 04 00 EE 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:09:13]wFMCommunicate OK [20:09:13]SAM_PROTO_GetFieldsCounters done [20:09:13]requested_item shift.num is exist - process it [20:09:13]requested_item shift.opened is exist - process it [20:09:13]req_shift_opened [20:09:13]FM_GetShiftState [20:09:13]SAM_PROTO_GetShiftState [20:09:13]wFMCommunicate request_size=4 [20:09:13]MH_SAM_APDU [20:09:13]CAPDU: 80 13 01 00 [20:09:13]Write to MH i2c: E2 08 00 10 08 80 13 01 00 00 00 00 00 95 [20:09:13]Write i2c OK [20:09:13]MH_I2C_Read... [20:09:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:09:13]Read from MH i2c: E2 [20:09:13]MH_I2C_Read... [20:09:13]Read from MH i2c: E2 0E 00 [20:09:13]MH_I2C_Read... [20:09:13]Read from MH i2c: E2 0E 00 10 08 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 AF [20:09:13]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:09:13]wFMCommunicate OK [20:09:13]SAM_PROTO_GetShiftState done [20:09:13]FM_GetShiftState done [20:09:13]req_shift_opened done [20:09:13]requested_item shift.open_date is exist - process it [20:09:13]req_shift_open_date [20:09:13]req_shift_open_date done [20:09:13]produce_requested_data done [20:09:13]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227645,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [20:09:13]process_action_free close_receipt [20:09:13]json_value_free [20:09:13]json_value_free done [20:09:13]process_json_proto returns [20:09:13]Send response to host [20:09:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227645,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [20:09:13]free response buf [20:09:13]execute_script done [20:09:13]execute_script returns [20:09:13]free content buf [20:09:13]Sock 7.Close socket [20:09:13]Sock 7.Thread stoped [20:09:17]OFD Sender: No OFD packet to send [20:09:22]OFD Sender: No OFD packet to send [20:09:27]OFD Sender: No OFD packet to send [20:09:32]OFD Sender: No OFD packet to send [20:09:37]OFD Sender: No OFD packet to send [20:09:38]accept exits with 9 [20:09:38]New connection [20:09:38]New thread 3066809700 created [20:09:38]Thread 3066666340 joined [20:09:38]Waiting for new connection... [20:09:38] Sock 9.Parse request [20:09:38]Sock 9.Check first char [20:09:38]Sock 9.First char is OK [20:09:38]request: POST /json_proto HTTP/1.0 [20:09:38]Method: POST [20:09:38]URL: /json_proto [20:09:38]Method is POST - this is cgi request [20:09:38]url: /json_proto [20:09:38]query_string will be loaded in cgi processing [20:09:38]execute_cgi json_proto POST (null) [20:09:38]execute_cgi path=json_proto method=POST [20:09:38]POST find Content-Length [20:09:38]Host: 172.17.44.195:8080 [20:09:38]Content-Length: 767 [20:09:38]Content-Type: application/json [20:09:38] [20:09:38]POST finish read [20:09:38]Found Content-Length = 767 [20:09:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963308", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:09:38]execute_script... [20:09:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963308", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:09:38]POST & json_proto [20:09:38]process_json_proto [20:09:38]json parsed OK: [20:09:38]protocol is kg_v1.0 [20:09:38]action value=close_receipt [20:09:38]process_action close_receipt [20:09:38]cmd_close_receipt [20:09:38]MH_GetDate [20:09:38]Write to MH i2c: F0 00 00 11 08 08 [20:09:38]Write i2c OK [20:09:38]MH_I2C_Read... [20:09:38]Read from MH i2c: F0 [20:09:38]MH_I2C_Read... [20:09:38]Read from MH i2c: F0 09 00 [20:09:38]MH_I2C_Read... [20:09:38]Read from MH i2c: F0 09 00 11 08 00 83 63 15 67 82 C9 CF 66 F3 [20:09:38]GetLastDocTimeStamp 1729454950 [20:09:38]current date 1729454979 [20:09:38]FM_GetShiftState [20:09:38]SAM_PROTO_GetShiftState [20:09:38]wFMCommunicate request_size=4 [20:09:38]MH_SAM_APDU [20:09:38]CAPDU: 80 13 01 00 [20:09:38]Write to MH i2c: E2 08 00 12 08 80 13 01 00 00 00 00 00 97 [20:09:38]Write i2c OK [20:09:38]MH_I2C_Read... [20:09:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:09:38]Read from MH i2c: E2 [20:09:38]MH_I2C_Read... [20:09:38]Read from MH i2c: E2 0E 00 [20:09:38]MH_I2C_Read... [20:09:38]Read from MH i2c: E2 0E 00 12 08 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 B1 [20:09:38]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:09:38]wFMCommunicate OK [20:09:38]SAM_PROTO_GetShiftState done [20:09:38]FM_GetShiftState done [20:09:38]opened in 1729383750 [20:09:38]opened+sec_in_day 1729470150 [20:09:38]quantity*price = 50041 [20:09:38]sum+1 = 50042 [20:09:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 494 20.10.2024 20:09 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 227646 ФПД: 261440992254333 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T200939&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227646&fm=261440992254333&tin=02508201610067®Number=0000000000091685&sum=50041 [20:09:39]StoreToDocumentArchive [20:09:39]shift 533 fd 227646 [20:09:39]save to /storage/0533/doc_00227646 [20:09:39]save last doc name /storage/0533/doc_00227646 to /storage/kkm_last_doc_name [20:09:39]save OK [20:09:39]Clear old archive folders... [20:09:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:09:39]tlvbuf is 00C1FBA0 [20:09:39]SAM_PROTO_ClearQueue [20:09:39]wFMCommunicate request_size=4 [20:09:39]MH_SAM_APDU [20:09:39]CAPDU: 80 09 00 00 [20:09:39]Write to MH i2c: E2 08 00 1F 08 80 09 00 00 00 00 00 00 99 [20:09:39]Write i2c OK [20:09:39]MH_I2C_Read... [20:09:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:09:39]Read from MH i2c: E2 [20:09:39]MH_I2C_Read... [20:09:39]Read from MH i2c: E2 03 00 [20:09:39]MH_I2C_Read... [20:09:39]Read from MH i2c: E2 03 00 1F 08 00 90 00 9B [20:09:39]RAPDU: 90 00 [20:09:39]wFMCommunicate OK [20:09:39]SAM_PROTO_ClearQueue done [20:09:39]KKMCreateOFDPacket [20:09:39]OFDProtocolAddRootSTLVToBuf [20:09:39]FM_MakeSignedData [20:09:39]FM_MakeSignedData [20:09:39]SAM_PROTO_SignData [20:09:39]wFMCommunicate request_size=4 [20:09:39]MH_SAM_APDU [20:09:39]CAPDU: 80 0D 01 02 [20:09:39]Write to MH i2c: E2 08 00 20 08 80 0D 01 02 00 00 00 00 A1 [20:09:39]Write i2c OK [20:09:39]MH_I2C_Read... [20:09:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:09:39]Read from MH i2c: E2 [20:09:39]MH_I2C_Read... [20:09:39]Read from MH i2c: E2 03 00 [20:09:39]MH_I2C_Read... [20:09:39]Read from MH i2c: E2 03 00 20 08 00 90 00 9C [20:09:39]RAPDU: 90 00 [20:09:39]wFMCommunicate OK [20:09:39]wFMCommunicate request_size=255 [20:09:39]MH_SAM_APDU [20:09:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 01 00 00 F4 03 04 00 83 63 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3E 79 03 00 35 04 06 00 ED [20:09:39]Write to MH i2c: E2 02 01 21 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 01 00 00 F4 03 04 00 83 63 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3E 79 03 00 35 04 06 00 ED 00 00 99 [20:09:39]Write i2c OK [20:09:39]MH_I2C_Read... [20:09:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:09:40]Read from MH i2c: E2 [20:09:40]MH_I2C_Read... [20:09:40]Read from MH i2c: E2 03 00 [20:09:40]MH_I2C_Read... [20:09:40]Read from MH i2c: E2 03 00 21 08 00 90 00 9D [20:09:40]RAPDU: 90 00 [20:09:40]wFMCommunicate OK [20:09:40]wFMCommunicate request_size=10 [20:09:40]MH_SAM_APDU [20:09:40]CAPDU: 80 0D 02 02 05 C7 79 79 19 7D [20:09:40]Write to MH i2c: E2 0D 00 22 08 80 0D 02 02 05 00 C7 79 79 19 7D 00 00 FD [20:09:40]Write i2c OK [20:09:40]MH_I2C_Read... [20:09:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:09:40]Read from MH i2c: E2 [20:09:40]MH_I2C_Read... [20:09:40]Read from MH i2c: E2 03 00 [20:09:40]MH_I2C_Read... [20:09:40]Read from MH i2c: E2 03 00 22 08 00 90 00 9E [20:09:40]RAPDU: 90 00 [20:09:40]wFMCommunicate OK [20:09:40]wFMCommunicate request_size=4 [20:09:40]MH_SAM_APDU [20:09:40]CAPDU: 80 0D 03 02 [20:09:40]Write to MH i2c: E2 08 00 23 08 80 0D 03 02 00 00 00 00 A6 [20:09:40]Write i2c OK [20:09:40]MH_I2C_Read... [20:09:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:09:40]Read from MH i2c: E2 [20:09:40]MH_I2C_Read... [20:09:40]Read from MH i2c: E2 0B 00 [20:09:40]MH_I2C_Read... [20:09:40]Read from MH i2c: E2 0B 00 23 08 00 A8 7A 74 8C 4D D6 AB E9 90 00 80 [20:09:40]RAPDU: A8 7A 74 8C 4D D6 AB E9 90 00 [20:09:40]wFMCommunicate OK [20:09:40]SAM_PROTO_SignData done [20:09:40]FM_MakeSignedData done [20:09:40]CreateOFDProtocolMessage [20:09:40]wFMCommunicate request_size=4 [20:09:40]MH_SAM_APDU [20:09:40]CAPDU: 80 11 00 00 [20:09:40]Write to MH i2c: E2 08 00 24 08 80 11 00 00 00 00 00 00 A6 [20:09:40]Write i2c OK [20:09:40]MH_I2C_Read... [20:09:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:09:40]Read from MH i2c: E2 [20:09:40]MH_I2C_Read... [20:09:40]Read from MH i2c: E2 17 00 [20:09:40]MH_I2C_Read... [20:09:40]Read from MH i2c: E2 17 00 24 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 FD [20:09:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:09:40]wFMCommunicate OK [20:09:40]CreateOFDProtocolMessage done [20:09:40]OFDSenderStorePacket 227646 [20:09:40]StoreOFDPacket docnum=227646 [20:09:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 C9 96 07 01 AB 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 01 00 00 F4 03 04 00 83 63 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3E 79 03 00 35 04 06 00 ED C7 79 79 19 7D A8 7A 74 8C 4D D6 AB E9 [20:09:40]CheckFolder [20:09:40]dirname=/storage/ofd_packets [20:09:40]CheckFolder done [20:09:40]ProducePacketName [20:09:40]name=ofd_packets/00227646 [20:09:40]NVStorageSaveData ofd_packets/00227646 [20:09:40]File name is /storage/ofd_packets/00227646 [20:09:40]Write 301 bytes [20:09:40]NVStorageSaveData done [20:09:40]OFDSenderStorePacket done [20:09:40]KKMCreateOFDPacket done [20:09:40]NVStorageSaveData kkm_last_timestamp [20:09:40]File name is /storage/kkm_last_timestamp [20:09:40]Write 4 bytes [20:09:40]NVStorageSaveData done [20:09:40]ExternCall_PrintAddStr [20:09:40]wPrintStart [20:09:40]Write to MH i2c: 01 00 00 25 08 2D [20:09:40]Write i2c OK [20:09:40]MH_I2C_Read... [20:09:40]Read from MH i2c: 01 [20:09:40]MH_I2C_Read... [20:09:40]Read from MH i2c: 01 07 00 [20:09:40]MH_I2C_Read... [20:09:40]Read from MH i2c: 01 07 00 25 08 00 00 00 00 00 FF 0F 42 [20:09:40]RasterBufferAndPrint [20:09:40]line Счет N : (1)1963308 [20:09:40]line ИНН: 02508201610067 [20:09:40]line Контрольно-Кассовый Чек [20:09:40]line ПРОДАЖА [20:09:40]line ТРК (МРК, ГНК) : 53 [20:09:40]line Товар: 2710124130 [20:09:40]line Аи-92-К-5 [20:09:40]line 7.480 * 66.90 [20:09:40]line = 500.41 [20:09:40]line НДС 12% НСП 1% [20:09:40]line > о реализуемом товаре [20:09:40]line ИТОГО: 500.41 [20:09:40]line НСП 1% : 4.43 [20:09:40]line НДС 12% : 53.14 [20:09:40]line Наличными: 0.00 [20:09:40]line Безнал.: 500.41 [20:09:40]line Место: АЗС № 133 "Партнер Нефть" [20:09:40]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [20:09:40]line СНО: Общий режим [20:09:40]line Чек 494 20.10.2024 20:09 [20:09:40]line Смена: 533 ФФД: 1.0 [20:09:40]line ЗНМ: 0300000091 [20:09:40]line РНМ: 0000000000091685 [20:09:40]line Версия ККМ: 001 [20:09:40]line Платежная система: Mbank [20:09:40]line ФМ: 0000000000871839 [20:09:40]line ФД: 227646 [20:09:40]line ФПД: 261440992254333 [20:09:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T200939&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227646&fm=261440992254333&tin=02508201610067®Number=0000000000091685&sum=50041 [20:09:40]written 0, free lines is 4095 [20:09:40]OFD Sender: Processing packet 227646 [packets to send 38, broken 37] [20:09:40]ProducePacketName [20:09:40]name=ofd_packets/00227646 [20:09:40]OFD Sender: To server: pG, [20:09:40]CommunicateWithHost lk.salyk.kg:30040 [20:09:40]ConnectInit lk.salyk.kg [20:09:40]Connected sock=11 [20:09:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 C9 96 07 01 AB 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 01 00 00 F4 03 04 00 83 63 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3E 79 03 00 35 04 06 00 ED C7 79 79 19 7D A8 7A 74 8C 4D D6 AB E9 [20:09: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 33 39 4F 00 00 00 46 BA 47 00 8D 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 33 39 10 04 04 00 3E 79 03 00 F4 03 04 00 81 0E 15 67 B6 04 01 00 00 C1 83 F0 9B C5 98 34 09 [20:09:40]CommunicateWithHost err = 0 [20:09:40]CheckOFDResponse [20:09:40]1017 (14) - 77093643461234 [20:09:40]1041 (16) - 0000000000871839 [20:09:40]1040 (4) - 227646 [20:09:40]1012 (4) - 20.10.2024 14:06 [20:09:40]1206 (1) - 0 [20:09:40]OFD Sender: Remove packet 227646 [20:09:40]ProducePacketName [20:09:40]name=ofd_packets/00227646 [20:09:40]NVStorageDeleteData [20:09:40]Write to MH i2c: 01 00 00 4D 08 55 [20:09:40]Write i2c OK [20:09:40]MH_I2C_Read... [20:09:40]Read from MH i2c: 01 [20:09:40]MH_I2C_Read... [20:09:40]Read from MH i2c: 01 07 00 [20:09:40]MH_I2C_Read... [20:09:40]Read from MH i2c: 01 07 00 4D 08 00 00 00 00 00 E1 0C 49 [20:09:40]RasterBufferAndPrint [20:09:40]line [20:09:40]line [20:09:40]line [20:09:40]line [20:09:40]line [20:09:40]written 0, free lines is 3301 [20:09:40]MH_Cut [20:09:40]Write to MH i2c: D1 01 00 54 08 01 2E [20:09:40]Write i2c OK [20:09:40]MH_I2C_Read... [20:09:40]Read from MH i2c: D1 [20:09:40]MH_I2C_Read... [20:09:40]Read from MH i2c: D1 01 00 [20:09:40]MH_I2C_Read... [20:09:40]Read from MH i2c: D1 01 00 54 08 00 2D [20:09:40]Write to MH i2c: 01 00 00 55 08 5D [20:09:40]Write i2c OK [20:09:40]MH_I2C_Read... [20:09:41]OFD Sender: No OFD packet to send [20:09:41]*** Cut start [20:09:41]*** Partial cut [20:09:41]*** CUTSNS_PIN = 1 [20:09:41]*** CUTSNS_PIN = 0 [20:09:42]*** Brake cut motor [20:09:42]Read from MH i2c: 01 [20:09:42]MH_I2C_Read... [20:09:42]*** Stop cut motor [20:09:42]*** Cut end [20:09:42]Read from MH i2c: 01 07 00 [20:09:42]MH_I2C_Read... [20:09:42]Read from MH i2c: 01 07 00 55 08 00 00 00 00 00 FF 0F 72 [20:09:42]process_action close_receipt done [20:09:42]requested_data is exist [20:09:42]produce_requested_data [20:09:42]requested_item fm.sn is exist - process it [20:09:42]wFMCommunicate request_size=4 [20:09:42]MH_SAM_APDU [20:09:42]CAPDU: 80 11 00 00 [20:09:42]Write to MH i2c: E2 08 00 56 08 80 11 00 00 00 00 00 00 D8 [20:09:42]Write i2c OK [20:09:42]MH_I2C_Read... [20:09:42]Read from MH i2c: E2 [20:09:42]MH_I2C_Read... [20:09:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:09:42]Read from MH i2c: E2 17 00 [20:09:42]MH_I2C_Read... [20:09:42]Read from MH i2c: E2 17 00 56 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 2F [20:09:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:09:42]wFMCommunicate OK [20:09:42]requested_item fd.num is exist - process it [20:09:42]SAM_PROTO_GetFieldsCounters [20:09:42]wFMCommunicate request_size=4 [20:09:42]MH_SAM_APDU [20:09:42]CAPDU: 80 13 00 00 [20:09:42]Write to MH i2c: E2 08 00 57 08 80 13 00 00 00 00 00 00 DB [20:09:42]Write i2c OK [20:09:42]MH_I2C_Read... [20:09:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:09:42]Read from MH i2c: E2 [20:09:42]MH_I2C_Read... [20:09:42]Read from MH i2c: E2 62 00 [20:09:42]MH_I2C_Read... [20:09:42]Read from MH i2c: E2 62 00 57 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 3E 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 EE 01 00 00 5E 04 04 00 EE 01 00 00 57 04 04 00 EF 01 00 00 19 04 04 00 00 00 00 00 90 00 A2 [20:09:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 3E 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 EE 01 00 00 5E 04 04 00 EE 01 00 00 57 04 04 00 EF 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:09:42]wFMCommunicate OK [20:09:42]SAM_PROTO_GetFieldsCounters done [20:09:42]requested_item shift.num is exist - process it [20:09:42]requested_item shift.opened is exist - process it [20:09:42]req_shift_opened [20:09:42]FM_GetShiftState [20:09:42]SAM_PROTO_GetShiftState [20:09:42]wFMCommunicate request_size=4 [20:09:42]MH_SAM_APDU [20:09:42]CAPDU: 80 13 01 00 [20:09:42]Write to MH i2c: E2 08 00 58 08 80 13 01 00 00 00 00 00 DD [20:09:42]Write i2c OK [20:09:42]MH_I2C_Read... [20:09:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:09:42]Read from MH i2c: E2 [20:09:42]MH_I2C_Read... [20:09:42]Read from MH i2c: E2 0E 00 [20:09:42]MH_I2C_Read... [20:09:42]Read from MH i2c: E2 0E 00 58 08 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 F7 [20:09:42]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:09:42]wFMCommunicate OK [20:09:42]SAM_PROTO_GetShiftState done [20:09:42]FM_GetShiftState done [20:09:42]req_shift_opened done [20:09:42]requested_item shift.open_date is exist - process it [20:09:42]req_shift_open_date [20:09:42]req_shift_open_date done [20:09:42]produce_requested_data done [20:09:42]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227646,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [20:09:42]process_action_free close_receipt [20:09:42]json_value_free [20:09:42]json_value_free done [20:09:42]process_json_proto returns [20:09:42]Send response to host [20:09:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227646,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [20:09:42]free response buf [20:09:42]execute_script done [20:09:42]execute_script returns [20:09:42]free content buf [20:09:42]Sock 9.Close socket [20:09:42]Sock 9.Thread stoped [20:09:46]OFD Sender: No OFD packet to send [20:09:51]OFD Sender: No OFD packet to send [20:09:56]OFD Sender: No OFD packet to send [20:10:01]OFD Sender: No OFD packet to send [20:10:06]OFD Sender: No OFD packet to send [20:10:11]OFD Sender: No OFD packet to send [20:10:16]OFD Sender: No OFD packet to send [20:10:21]OFD Sender: No OFD packet to send [20:10:26]OFD Sender: No OFD packet to send [20:10:31]OFD Sender: No OFD packet to send [20:10:36]OFD Sender: No OFD packet to send [20:10:41]OFD Sender: No OFD packet to send [20:10:46]OFD Sender: No OFD packet to send [20:10:46]accept exits with 7 [20:10:46]New connection [20:10:46]New thread 3066666340 created [20:10:46]Thread 3066809700 joined [20:10:46]Waiting for new connection... [20:10:46] Sock 7.Parse request [20:10:46]Sock 7.Check first char [20:10:46]Sock 7.First char is OK [20:10:46]request: POST /json_proto HTTP/1.0 [20:10:46]Method: POST [20:10:46]URL: /json_proto [20:10:46]Method is POST - this is cgi request [20:10:46]url: /json_proto [20:10:46]query_string will be loaded in cgi processing [20:10:46]execute_cgi json_proto POST (null) [20:10:46]execute_cgi path=json_proto method=POST [20:10:46]POST find Content-Length [20:10:46]Host: 172.17.44.195:8080 [20:10:46]Content-Length: 678 [20:10:46]Content-Type: application/json [20:10:46] [20:10:46]POST finish read [20:10:46]Found Content-Length = 678 [20:10:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963309", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.790, "sum" : 320.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:10:46]execute_script... [20:10:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963309", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.790, "sum" : 320.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:10:46]POST & json_proto [20:10:46]process_json_proto [20:10:46]json parsed OK: [20:10:46]protocol is kg_v1.0 [20:10:46]action value=close_receipt [20:10:46]process_action close_receipt [20:10:46]cmd_close_receipt [20:10:46]MH_GetDate [20:10:46]Write to MH i2c: F0 00 00 59 08 50 [20:10:46]Write i2c OK [20:10:46]MH_I2C_Read... [20:10:46]Read from MH i2c: F0 [20:10:46]MH_I2C_Read... [20:10:46]Read from MH i2c: F0 09 00 [20:10:46]MH_I2C_Read... [20:10:46]Read from MH i2c: F0 09 00 59 08 00 C7 63 15 67 82 C9 CF 66 7F [20:10:46]GetLastDocTimeStamp 1729454979 [20:10:46]current date 1729455047 [20:10:46]FM_GetShiftState [20:10:46]SAM_PROTO_GetShiftState [20:10:46]wFMCommunicate request_size=4 [20:10:46]MH_SAM_APDU [20:10:46]CAPDU: 80 13 01 00 [20:10:46]Write to MH i2c: E2 08 00 5A 08 80 13 01 00 00 00 00 00 DF [20:10:46]Write i2c OK [20:10:46]MH_I2C_Read... [20:10:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:10:46]Read from MH i2c: E2 [20:10:46]MH_I2C_Read... [20:10:46]Read from MH i2c: E2 0E 00 [20:10:46]MH_I2C_Read... [20:10:46]Read from MH i2c: E2 0E 00 5A 08 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 F9 [20:10:46]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:10:46]wFMCommunicate OK [20:10:46]SAM_PROTO_GetShiftState done [20:10:46]FM_GetShiftState done [20:10:46]opened in 1729383750 [20:10:46]opened+sec_in_day 1729470150 [20:10:46]quantity*price = 32045 [20:10:46]sum+1 = 32046 [20:10:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 320.00 Внесено: 320.00 СДАЧА: 0.00 НСП 1% : 2.84 НДС 12% : 34.03 Наличными: 320.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 495 20.10.2024 20:10 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227647 ФПД: 188424536928259 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T201047&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227647&fm=188424536928259&tin=02508201610067®Number=0000000000091685&sum=32000 [20:10:47]StoreToDocumentArchive [20:10:47]shift 533 fd 227647 [20:10:47]save to /storage/0533/doc_00227647 [20:10:47]save last doc name /storage/0533/doc_00227647 to /storage/kkm_last_doc_name [20:10:47]save OK [20:10:47]Clear old archive folders... [20:10:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:10:47]tlvbuf is 00C18860 [20:10:47]SAM_PROTO_ClearQueue [20:10:47]wFMCommunicate request_size=4 [20:10:47]MH_SAM_APDU [20:10:47]CAPDU: 80 09 00 00 [20:10:47]Write to MH i2c: E2 08 00 67 08 80 09 00 00 00 00 00 00 E1 [20:10:47]Write i2c OK [20:10:47]MH_I2C_Read... [20:10:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:10:47]Read from MH i2c: E2 [20:10:47]MH_I2C_Read... [20:10:47]Read from MH i2c: E2 03 00 [20:10:47]MH_I2C_Read... [20:10:47]Read from MH i2c: E2 03 00 67 08 00 90 00 E3 [20:10:47]RAPDU: 90 00 [20:10:47]wFMCommunicate OK [20:10:47]SAM_PROTO_ClearQueue done [20:10:47]KKMCreateOFDPacket [20:10:47]OFDProtocolAddRootSTLVToBuf [20:10:47]FM_MakeSignedData [20:10:47]FM_MakeSignedData [20:10:47]SAM_PROTO_SignData [20:10:47]wFMCommunicate request_size=4 [20:10:47]MH_SAM_APDU [20:10:47]CAPDU: 80 0D 01 02 [20:10:47]Write to MH i2c: E2 08 00 68 08 80 0D 01 02 00 00 00 00 E9 [20:10:47]Write i2c OK [20:10:47]MH_I2C_Read... [20:10:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:10:47]Read from MH i2c: E2 [20:10:47]MH_I2C_Read... [20:10:47]Read from MH i2c: E2 03 00 [20:10:47]MH_I2C_Read... [20:10:47]Read from MH i2c: E2 03 00 68 08 00 90 00 E4 [20:10:47]RAPDU: 90 00 [20:10:47]wFMCommunicate OK [20:10:47]wFMCommunicate request_size=255 [20:10:47]MH_SAM_APDU [20:10:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B6 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 01 00 00 F4 03 04 00 C7 63 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3F 79 03 00 35 04 06 00 AB [20:10:47]Write to MH i2c: E2 02 01 69 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B6 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 01 00 00 F4 03 04 00 C7 63 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3F 79 03 00 35 04 06 00 AB 00 00 2B [20:10:47]Write i2c OK [20:10:47]MH_I2C_Read... [20:10:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:10:48]Read from MH i2c: E2 [20:10:48]MH_I2C_Read... [20:10:48]Read from MH i2c: E2 03 00 [20:10:48]MH_I2C_Read... [20:10:48]Read from MH i2c: E2 03 00 69 08 00 90 00 E5 [20:10:48]RAPDU: 90 00 [20:10:48]wFMCommunicate OK [20:10:48]wFMCommunicate request_size=10 [20:10:48]MH_SAM_APDU [20:10:48]CAPDU: 80 0D 02 02 05 5F 01 97 30 03 [20:10:48]Write to MH i2c: E2 0D 00 6A 08 80 0D 02 02 05 00 5F 01 97 30 03 00 00 20 [20:10:48]Write i2c OK [20:10:48]MH_I2C_Read... [20:10:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:10:48]Read from MH i2c: E2 [20:10:48]MH_I2C_Read... [20:10:48]Read from MH i2c: E2 03 00 [20:10:48]MH_I2C_Read... [20:10:48]Read from MH i2c: E2 03 00 6A 08 00 90 00 E6 [20:10:48]RAPDU: 90 00 [20:10:48]wFMCommunicate OK [20:10:48]wFMCommunicate request_size=4 [20:10:48]MH_SAM_APDU [20:10:48]CAPDU: 80 0D 03 02 [20:10:48]Write to MH i2c: E2 08 00 6B 08 80 0D 03 02 00 00 00 00 EE [20:10:48]Write i2c OK [20:10:48]MH_I2C_Read... [20:10:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:10:48]Read from MH i2c: E2 [20:10:48]MH_I2C_Read... [20:10:48]Read from MH i2c: E2 0B 00 [20:10:48]MH_I2C_Read... [20:10:48]Read from MH i2c: E2 0B 00 6B 08 00 9F DD C8 ED 67 8D 8A 59 90 00 F7 [20:10:48]RAPDU: 9F DD C8 ED 67 8D 8A 59 90 00 [20:10:48]wFMCommunicate OK [20:10:48]SAM_PROTO_SignData done [20:10:48]FM_MakeSignedData done [20:10:48]CreateOFDProtocolMessage [20:10:48]wFMCommunicate request_size=4 [20:10:48]MH_SAM_APDU [20:10:48]CAPDU: 80 11 00 00 [20:10:48]Write to MH i2c: E2 08 00 6C 08 80 11 00 00 00 00 00 00 EE [20:10:48]Write i2c OK [20:10:48]MH_I2C_Read... [20:10:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:10:48]Read from MH i2c: E2 [20:10:48]MH_I2C_Read... [20:10:48]Read from MH i2c: E2 17 00 [20:10:48]MH_I2C_Read... [20:10:48]Read from MH i2c: E2 17 00 6C 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 45 [20:10:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:10:48]wFMCommunicate OK [20:10:48]CreateOFDProtocolMessage done [20:10:48]OFDSenderStorePacket 227647 [20:10:48]StoreOFDPacket docnum=227647 [20:10:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 1B 50 07 01 83 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B6 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 01 00 00 F4 03 04 00 C7 63 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3F 79 03 00 35 04 06 00 AB 5F 01 97 30 03 9F DD C8 ED 67 8D 8A 59 [20:10:48]CheckFolder [20:10:48]dirname=/storage/ofd_packets [20:10:48]CheckFolder done [20:10:48]ProducePacketName [20:10:48]name=ofd_packets/00227647 [20:10:48]NVStorageSaveData ofd_packets/00227647 [20:10:48]File name is /storage/ofd_packets/00227647 [20:10:48]Write 301 bytes [20:10:48]NVStorageSaveData done [20:10:48]OFDSenderStorePacket done [20:10:48]KKMCreateOFDPacket done [20:10:48]NVStorageSaveData kkm_last_timestamp [20:10:48]File name is /storage/kkm_last_timestamp [20:10:48]Write 4 bytes [20:10:48]NVStorageSaveData done [20:10:48]ExternCall_PrintAddStr [20:10:48]wPrintStart [20:10:48]Write to MH i2c: 01 00 00 6D 08 75 [20:10:48]Write i2c OK [20:10:48]MH_I2C_Read... [20:10:48]Read from MH i2c: 01 [20:10:48]MH_I2C_Read... [20:10:48]Read from MH i2c: 01 07 00 [20:10:48]MH_I2C_Read... [20:10:48]Read from MH i2c: 01 07 00 6D 08 00 00 00 00 00 FF 0F 8A [20:10:48]RasterBufferAndPrint [20:10:48]line Счет N : (1)1963309 [20:10:48]line ИНН: 02508201610067 [20:10:48]line Контрольно-Кассовый Чек [20:10:48]line ПРОДАЖА [20:10:48]line ТРК (МРК, ГНК) : 43 [20:10:48]line Товар: 2710124130 [20:10:48]line Аи-92-К-5 [20:10:48]line 4.790 * 66.90 [20:10:48]line = 320.45 [20:10:48]line НДС 12% НСП 1% [20:10:48]line > о реализуемом товаре [20:10:48]line ОКРУГЛЕНИЕ: -0.45 [20:10:48]line ИТОГО: 320.00 [20:10:48]line Внесено: 320.00 [20:10:48]line СДАЧА: 0.00 [20:10:48]line НСП 1% : 2.84 [20:10:48]line НДС 12% : 34.03 [20:10:48]line Наличными: 320.00 [20:10:48]line Безнал.: 0.00 [20:10:48]line Место: АЗС № 133 "Партнер Нефть" [20:10:48]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [20:10:48]line СНО: Общий режим [20:10:48]line Чек 495 20.10.2024 20:10 [20:10:48]line Смена: 533 ФФД: 1.0 [20:10:48]line ЗНМ: 0300000091 [20:10:48]line РНМ: 0000000000091685 [20:10:48]line Версия ККМ: 001 [20:10:48]line ФМ: 0000000000871839 [20:10:48]line ФД: 227647 [20:10:48]line ФПД: 188424536928259 [20:10:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T201047&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227647&fm=188424536928259&tin=02508201610067®Number=0000000000091685&sum=32000 [20:10:48]written 0, free lines is 4095 [20:10:48]OFD Sender: Processing packet 227647 [packets to send 38, broken 37] [20:10:48]ProducePacketName [20:10:48]name=ofd_packets/00227647 [20:10:48]OFD Sender: To server: pG, [20:10:48]CommunicateWithHost lk.salyk.kg:30040 [20:10:48]ConnectInit lk.salyk.kg [20:10:48]Connected sock=10 [20:10:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 1B 50 07 01 83 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B6 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 01 00 00 F4 03 04 00 C7 63 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 3F 79 03 00 35 04 06 00 AB 5F 01 97 30 03 9F DD C8 ED 67 8D 8A 59 [20:10:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 02 E0 47 00 17 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 33 39 10 04 04 00 3F 79 03 00 F4 03 04 00 C5 0E 15 67 B6 04 01 00 00 B1 6A 13 FD 36 71 EB 23 [20:10:48]CommunicateWithHost err = 0 [20:10:48]CheckOFDResponse [20:10:48]1017 (14) - 77093643461234 [20:10:48]1041 (16) - 0000000000871839 [20:10:48]1040 (4) - 227647 [20:10:48]1012 (4) - 20.10.2024 14:08 [20:10:48]1206 (1) - 0 [20:10:48]OFD Sender: Remove packet 227647 [20:10:48]ProducePacketName [20:10:48]name=ofd_packets/00227647 [20:10:48]NVStorageDeleteData [20:10:48]Write to MH i2c: 01 00 00 97 08 9F [20:10:48]Write i2c OK [20:10:48]MH_I2C_Read... [20:10:48]Read from MH i2c: 01 [20:10:48]MH_I2C_Read... [20:10:48]Read from MH i2c: 01 07 00 [20:10:48]MH_I2C_Read... [20:10:48]Read from MH i2c: 01 07 00 97 08 00 00 00 00 00 A9 0C 5B [20:10:48]RasterBufferAndPrint [20:10:48]line [20:10:48]line [20:10:48]line [20:10:48]line [20:10:48]line [20:10:48]written 0, free lines is 3245 [20:10:48]MH_Cut [20:10:48]Write to MH i2c: D1 01 00 9E 08 01 78 [20:10:48]Write i2c OK [20:10:48]MH_I2C_Read... [20:10:48]Read from MH i2c: D1 [20:10:48]MH_I2C_Read... [20:10:48]Read from MH i2c: D1 01 00 [20:10:48]MH_I2C_Read... [20:10:48]Read from MH i2c: D1 01 00 9E 08 00 77 [20:10:48]Write to MH i2c: 01 00 00 9F 08 A7 [20:10:48]Write i2c OK [20:10:48]MH_I2C_Read... [20:10:49]OFD Sender: No OFD packet to send [20:10:49]*** Cut start [20:10:49]*** Partial cut [20:10:49]*** CUTSNS_PIN = 1 [20:10:49]*** CUTSNS_PIN = 0 [20:10:50]*** Brake cut motor [20:10:50]Read from MH i2c: 01 [20:10:50]MH_I2C_Read... [20:10:50]*** Stop cut motor [20:10:50]*** Cut end [20:10:50]Read from MH i2c: 01 07 00 [20:10:50]MH_I2C_Read... [20:10:50]Read from MH i2c: 01 07 00 9F 08 00 00 00 00 00 FF 0F BC [20:10:50]process_action close_receipt done [20:10:50]requested_data is exist [20:10:50]produce_requested_data [20:10:50]requested_item fm.sn is exist - process it [20:10:50]wFMCommunicate request_size=4 [20:10:50]MH_SAM_APDU [20:10:50]CAPDU: 80 11 00 00 [20:10:50]Write to MH i2c: E2 08 00 A0 08 80 11 00 00 00 00 00 00 22 [20:10:50]Write i2c OK [20:10:50]MH_I2C_Read... [20:10:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:10:50]Read from MH i2c: E2 [20:10:50]MH_I2C_Read... [20:10:50]Read from MH i2c: E2 17 00 [20:10:50]MH_I2C_Read... [20:10:50]Read from MH i2c: E2 17 00 A0 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 79 [20:10:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:10:50]wFMCommunicate OK [20:10:50]requested_item fd.num is exist - process it [20:10:50]SAM_PROTO_GetFieldsCounters [20:10:50]wFMCommunicate request_size=4 [20:10:50]MH_SAM_APDU [20:10:50]CAPDU: 80 13 00 00 [20:10:50]Write to MH i2c: E2 08 00 A1 08 80 13 00 00 00 00 00 00 25 [20:10:50]Write i2c OK [20:10:50]MH_I2C_Read... [20:10:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:10:50]Read from MH i2c: E2 [20:10:50]MH_I2C_Read... [20:10:50]Read from MH i2c: E2 62 00 [20:10:50]MH_I2C_Read... [20:10:50]Read from MH i2c: E2 62 00 A1 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 3F 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 EF 01 00 00 5E 04 04 00 EF 01 00 00 57 04 04 00 F0 01 00 00 19 04 04 00 00 00 00 00 90 00 F0 [20:10: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 3F 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 EF 01 00 00 5E 04 04 00 EF 01 00 00 57 04 04 00 F0 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:10:50]wFMCommunicate OK [20:10:50]SAM_PROTO_GetFieldsCounters done [20:10:50]requested_item shift.num is exist - process it [20:10:50]requested_item shift.opened is exist - process it [20:10:50]req_shift_opened [20:10:50]FM_GetShiftState [20:10:50]SAM_PROTO_GetShiftState [20:10:50]wFMCommunicate request_size=4 [20:10:50]MH_SAM_APDU [20:10:50]CAPDU: 80 13 01 00 [20:10:50]Write to MH i2c: E2 08 00 A2 08 80 13 01 00 00 00 00 00 27 [20:10:50]Write i2c OK [20:10:50]MH_I2C_Read... [20:10:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:10:50]Read from MH i2c: E2 [20:10:50]MH_I2C_Read... [20:10:50]Read from MH i2c: E2 0E 00 [20:10:50]MH_I2C_Read... [20:10:50]Read from MH i2c: E2 0E 00 A2 08 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 41 [20:10:50]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:10:50]wFMCommunicate OK [20:10:50]SAM_PROTO_GetShiftState done [20:10:50]FM_GetShiftState done [20:10:50]req_shift_opened done [20:10:50]requested_item shift.open_date is exist - process it [20:10:50]req_shift_open_date [20:10:50]req_shift_open_date done [20:10:50]produce_requested_data done [20:10:50]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227647,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [20:10:50]process_action_free close_receipt [20:10:50]json_value_free [20:10:50]json_value_free done [20:10:50]process_json_proto returns [20:10:50]Send response to host [20:10:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227647,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [20:10:50]free response buf [20:10:50]execute_script done [20:10:50]execute_script returns [20:10:50]free content buf [20:10:50]Sock 7.Close socket [20:10:50]Sock 7.Thread stoped [20:10:54]OFD Sender: No OFD packet to send [20:10:59]OFD Sender: No OFD packet to send [20:11:04]OFD Sender: No OFD packet to send [20:11:09]OFD Sender: No OFD packet to send [20:11:14]OFD Sender: No OFD packet to send [20:11:19]OFD Sender: No OFD packet to send [20:11:24]OFD Sender: No OFD packet to send [20:11:29]OFD Sender: No OFD packet to send [20:11:34]OFD Sender: No OFD packet to send [20:11:39]OFD Sender: No OFD packet to send [20:11:44]OFD Sender: No OFD packet to send [20:11:44]accept exits with 9 [20:11:44]New connection [20:11:44]New thread 3066809700 created [20:11:44]Thread 3066666340 joined [20:11:44]Waiting for new connection... [20:11:44] Sock 9.Parse request [20:11:44]Sock 9.Check first char [20:11:44]Sock 9.First char is OK [20:11:44]request: POST /json_proto HTTP/1.0 [20:11:44]Method: POST [20:11:44]URL: /json_proto [20:11:44]Method is POST - this is cgi request [20:11:44]url: /json_proto [20:11:44]query_string will be loaded in cgi processing [20:11:44]execute_cgi json_proto POST (null) [20:11:44]execute_cgi path=json_proto method=POST [20:11:44]POST find Content-Length [20:11:44]Host: 172.17.44.195:8080 [20:11:44]Content-Length: 678 [20:11:44]Content-Type: application/json [20:11:44] [20:11:44]POST finish read [20:11:44]Found Content-Length = 678 [20:11:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963310", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:11:44]execute_script... [20:11:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963310", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:11:44]POST & json_proto [20:11:44]process_json_proto [20:11:44]json parsed OK: [20:11:44]protocol is kg_v1.0 [20:11:44]action value=close_receipt [20:11:44]process_action close_receipt [20:11:44]cmd_close_receipt [20:11:44]MH_GetDate [20:11:44]Write to MH i2c: F0 00 00 A3 08 9A [20:11:44]Write i2c OK [20:11:44]MH_I2C_Read... [20:11:44]Read from MH i2c: F0 [20:11:44]MH_I2C_Read... [20:11:44]Read from MH i2c: F0 09 00 [20:11:44]MH_I2C_Read... [20:11:44]Read from MH i2c: F0 09 00 A3 08 00 01 64 15 67 82 C9 CF 66 04 [20:11:44]GetLastDocTimeStamp 1729455047 [20:11:44]current date 1729455105 [20:11:44]FM_GetShiftState [20:11:44]SAM_PROTO_GetShiftState [20:11:44]wFMCommunicate request_size=4 [20:11:44]MH_SAM_APDU [20:11:44]CAPDU: 80 13 01 00 [20:11:44]Write to MH i2c: E2 08 00 A4 08 80 13 01 00 00 00 00 00 29 [20:11:44]Write i2c OK [20:11:44]MH_I2C_Read... [20:11:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:11:44]Read from MH i2c: E2 [20:11:44]MH_I2C_Read... [20:11:44]Read from MH i2c: E2 0E 00 [20:11:44]MH_I2C_Read... [20:11:44]Read from MH i2c: E2 0E 00 A4 08 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 43 [20:11:44]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:11:44]wFMCommunicate OK [20:11:44]SAM_PROTO_GetShiftState done [20:11:44]FM_GetShiftState done [20:11:44]opened in 1729383750 [20:11:44]opened+sec_in_day 1729470150 [20:11:44]quantity*price = 50041 [20:11:44]sum+1 = 50042 [20:11:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 496 20.10.2024 20:11 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227648 ФПД: 152738327343718 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T201145&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227648&fm=152738327343718&tin=02508201610067®Number=0000000000091685&sum=50000 [20:11:46]StoreToDocumentArchive [20:11:46]shift 533 fd 227648 [20:11:46]save to /storage/0533/doc_00227648 [20:11:46]save last doc name /storage/0533/doc_00227648 to /storage/kkm_last_doc_name [20:11:46]save OK [20:11:46]Clear old archive folders... [20:11:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:11:46]tlvbuf is 00C1C1E0 [20:11:46]SAM_PROTO_ClearQueue [20:11:46]wFMCommunicate request_size=4 [20:11:46]MH_SAM_APDU [20:11:46]CAPDU: 80 09 00 00 [20:11:46]Write to MH i2c: E2 08 00 B1 08 80 09 00 00 00 00 00 00 2B [20:11:46]Write i2c OK [20:11:46]MH_I2C_Read... [20:11:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:11:46]Read from MH i2c: E2 [20:11:46]MH_I2C_Read... [20:11:46]Read from MH i2c: E2 03 00 [20:11:46]MH_I2C_Read... [20:11:46]Read from MH i2c: E2 03 00 B1 08 00 90 00 2D [20:11:46]RAPDU: 90 00 [20:11:46]wFMCommunicate OK [20:11:46]SAM_PROTO_ClearQueue done [20:11:46]KKMCreateOFDPacket [20:11:46]OFDProtocolAddRootSTLVToBuf [20:11:46]FM_MakeSignedData [20:11:46]FM_MakeSignedData [20:11:46]SAM_PROTO_SignData [20:11:46]wFMCommunicate request_size=4 [20:11:46]MH_SAM_APDU [20:11:46]CAPDU: 80 0D 01 02 [20:11:46]Write to MH i2c: E2 08 00 B2 08 80 0D 01 02 00 00 00 00 33 [20:11:46]Write i2c OK [20:11:46]MH_I2C_Read... [20:11:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:11:46]Read from MH i2c: E2 [20:11:46]MH_I2C_Read... [20:11:46]Read from MH i2c: E2 03 00 [20:11:46]MH_I2C_Read... [20:11:46]Read from MH i2c: E2 03 00 B2 08 00 90 00 2E [20:11:46]RAPDU: 90 00 [20:11:46]wFMCommunicate OK [20:11:46]wFMCommunicate request_size=255 [20:11:46]MH_SAM_APDU [20:11:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 01 00 00 F4 03 04 00 01 64 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 40 79 03 00 35 04 06 00 8A [20:11:46]Write to MH i2c: E2 02 01 B3 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 01 00 00 F4 03 04 00 01 64 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 40 79 03 00 35 04 06 00 8A 00 00 F9 [20:11:46]Write i2c OK [20:11:46]MH_I2C_Read... [20:11:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:11:46]Read from MH i2c: E2 [20:11:46]MH_I2C_Read... [20:11:46]Read from MH i2c: E2 03 00 [20:11:46]MH_I2C_Read... [20:11:46]Read from MH i2c: E2 03 00 B3 08 00 90 00 2F [20:11:46]RAPDU: 90 00 [20:11:46]wFMCommunicate OK [20:11:46]wFMCommunicate request_size=10 [20:11:46]MH_SAM_APDU [20:11:46]CAPDU: 80 0D 02 02 05 EA 29 BE B2 66 [20:11:46]Write to MH i2c: E2 0D 00 B4 08 80 0D 02 02 05 00 EA 29 BE B2 66 00 00 29 [20:11:46]Write i2c OK [20:11:46]MH_I2C_Read... [20:11:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:11:46]Read from MH i2c: E2 [20:11:46]MH_I2C_Read... [20:11:46]Read from MH i2c: E2 03 00 [20:11:46]MH_I2C_Read... [20:11:46]Read from MH i2c: E2 03 00 B4 08 00 90 00 30 [20:11:46]RAPDU: 90 00 [20:11:46]wFMCommunicate OK [20:11:46]wFMCommunicate request_size=4 [20:11:46]MH_SAM_APDU [20:11:46]CAPDU: 80 0D 03 02 [20:11:46]Write to MH i2c: E2 08 00 B5 08 80 0D 03 02 00 00 00 00 38 [20:11:46]Write i2c OK [20:11:46]MH_I2C_Read... [20:11:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:11:46]Read from MH i2c: E2 [20:11:46]MH_I2C_Read... [20:11:46]Read from MH i2c: E2 0B 00 [20:11:46]MH_I2C_Read... [20:11:46]Read from MH i2c: E2 0B 00 B5 08 00 AC 0E F9 A0 5C AB BA 20 90 00 6D [20:11:46]RAPDU: AC 0E F9 A0 5C AB BA 20 90 00 [20:11:46]wFMCommunicate OK [20:11:46]SAM_PROTO_SignData done [20:11:46]FM_MakeSignedData done [20:11:46]CreateOFDProtocolMessage [20:11:46]wFMCommunicate request_size=4 [20:11:46]MH_SAM_APDU [20:11:46]CAPDU: 80 11 00 00 [20:11:46]Write to MH i2c: E2 08 00 B6 08 80 11 00 00 00 00 00 00 38 [20:11:46]Write i2c OK [20:11:46]MH_I2C_Read... [20:11:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:11:46]Read from MH i2c: E2 [20:11:46]MH_I2C_Read... [20:11:46]Read from MH i2c: E2 17 00 [20:11:46]MH_I2C_Read... [20:11:46]Read from MH i2c: E2 17 00 B6 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 8F [20:11:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:11:46]wFMCommunicate OK [20:11:46]CreateOFDProtocolMessage done [20:11:46]OFDSenderStorePacket 227648 [20:11:46]StoreOFDPacket docnum=227648 [20:11:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 92 E5 07 01 70 FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 01 00 00 F4 03 04 00 01 64 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 40 79 03 00 35 04 06 00 8A EA 29 BE B2 66 AC 0E F9 A0 5C AB BA 20 [20:11:46]CheckFolder [20:11:46]dirname=/storage/ofd_packets [20:11:46]CheckFolder done [20:11:46]ProducePacketName [20:11:46]name=ofd_packets/00227648 [20:11:46]NVStorageSaveData ofd_packets/00227648 [20:11:46]File name is /storage/ofd_packets/00227648 [20:11:46]Write 301 bytes [20:11:46]NVStorageSaveData done [20:11:46]OFDSenderStorePacket done [20:11:46]KKMCreateOFDPacket done [20:11:46]NVStorageSaveData kkm_last_timestamp [20:11:46]File name is /storage/kkm_last_timestamp [20:11:46]Write 4 bytes [20:11:46]NVStorageSaveData done [20:11:46]ExternCall_PrintAddStr [20:11:46]wPrintStart [20:11:46]Write to MH i2c: 01 00 00 B7 08 BF [20:11:46]Write i2c OK [20:11:46]MH_I2C_Read... [20:11:46]Read from MH i2c: 01 [20:11:46]MH_I2C_Read... [20:11:46]Read from MH i2c: 01 07 00 [20:11:46]MH_I2C_Read... [20:11:46]Read from MH i2c: 01 07 00 B7 08 00 00 00 00 00 FF 0F D4 [20:11:46]RasterBufferAndPrint [20:11:46]line Счет N : (1)1963310 [20:11:46]line ИНН: 02508201610067 [20:11:46]line Контрольно-Кассовый Чек [20:11:46]line ПРОДАЖА [20:11:46]line ТРК (МРК, ГНК) : 63 [20:11:46]line Товар: 2710124130 [20:11:46]line Аи-92-К-5 [20:11:46]line 7.480 * 66.90 [20:11:46]line = 500.41 [20:11:46]line НДС 12% НСП 1% [20:11:46]line > о реализуемом товаре [20:11:46]line ОКРУГЛЕНИЕ: -0.41 [20:11:46]line ИТОГО: 500.00 [20:11:46]line Внесено: 500.00 [20:11:46]line СДАЧА: 0.00 [20:11:46]line НСП 1% : 4.43 [20:11:46]line НДС 12% : 53.14 [20:11:46]line Наличными: 500.00 [20:11:46]line Безнал.: 0.00 [20:11:46]line Место: АЗС № 133 "Партнер Нефть" [20:11:46]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [20:11:46]line СНО: Общий режим [20:11:46]line Чек 496 20.10.2024 20:11 [20:11:46]line Смена: 533 ФФД: 1.0 [20:11:46]line ЗНМ: 0300000091 [20:11:46]line РНМ: 0000000000091685 [20:11:46]line Версия ККМ: 001 [20:11:46]line ФМ: 0000000000871839 [20:11:46]line ФД: 227648 [20:11:46]line ФПД: 152738327343718 [20:11:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T201145&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227648&fm=152738327343718&tin=02508201610067®Number=0000000000091685&sum=50000 [20:11:46]written 0, free lines is 4095 [20:11:46]OFD Sender: Processing packet 227648 [packets to send 38, broken 37] [20:11:46]ProducePacketName [20:11:46]name=ofd_packets/00227648 [20:11:46]OFD Sender: To server: pG, [20:11:46]CommunicateWithHost lk.salyk.kg:30040 [20:11:46]ConnectInit lk.salyk.kg [20:11:46]Connected sock=10 [20:11:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 92 E5 07 01 70 FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 01 00 00 F4 03 04 00 01 64 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 40 79 03 00 35 04 06 00 8A EA 29 BE B2 66 AC 0E F9 A0 5C AB BA 20 [20:11: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 33 39 4F 00 00 00 B9 43 47 00 65 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 33 39 10 04 04 00 40 79 03 00 F4 03 04 00 FF 0E 15 67 B6 04 01 00 00 2D 34 BF 2B 15 BE 9B 6D [20:11:47]CommunicateWithHost err = 0 [20:11:47]CheckOFDResponse [20:11:47]1017 (14) - 77093643461234 [20:11:47]1041 (16) - 0000000000871839 [20:11:47]1040 (4) - 227648 [20:11:47]1012 (4) - 20.10.2024 14:09 [20:11:47]1206 (1) - 0 [20:11:47]OFD Sender: Remove packet 227648 [20:11:47]ProducePacketName [20:11:47]name=ofd_packets/00227648 [20:11:47]NVStorageDeleteData [20:11:47]Write to MH i2c: 01 00 00 E1 08 E9 [20:11:47]Write i2c OK [20:11:47]MH_I2C_Read... [20:11:47]Read from MH i2c: 01 [20:11:47]MH_I2C_Read... [20:11:47]Read from MH i2c: 01 07 00 [20:11:47]MH_I2C_Read... [20:11:47]Read from MH i2c: 01 07 00 E1 08 00 00 00 00 00 A9 0C A5 [20:11:47]RasterBufferAndPrint [20:11:47]line [20:11:47]line [20:11:47]line [20:11:47]line [20:11:47]line [20:11:47]written 0, free lines is 3243 [20:11:47]MH_Cut [20:11:47]Write to MH i2c: D1 01 00 E8 08 01 C2 [20:11:47]Write i2c OK [20:11:47]MH_I2C_Read... [20:11:47]Read from MH i2c: D1 [20:11:47]MH_I2C_Read... [20:11:47]Read from MH i2c: D1 01 00 [20:11:47]MH_I2C_Read... [20:11:47]Read from MH i2c: D1 01 00 E8 08 00 C1 [20:11:47]Write to MH i2c: 01 00 00 E9 08 F1 [20:11:47]Write i2c OK [20:11:47]MH_I2C_Read... [20:11:47]OFD Sender: No OFD packet to send [20:11:48]*** Cut start [20:11:48]*** Partial cut [20:11:48]*** CUTSNS_PIN = 1 [20:11:48]*** CUTSNS_PIN = 0 [20:11:48]*** Brake cut motor [20:11:48]Read from MH i2c: 01 [20:11:48]MH_I2C_Read... [20:11:48]*** Stop cut motor [20:11:48]*** Cut end [20:11:48]Read from MH i2c: 01 07 00 [20:11:48]MH_I2C_Read... [20:11:48]Read from MH i2c: 01 07 00 E9 08 00 00 00 00 00 FF 0F 06 [20:11:48]process_action close_receipt done [20:11:48]requested_data is exist [20:11:48]produce_requested_data [20:11:48]requested_item fm.sn is exist - process it [20:11:48]wFMCommunicate request_size=4 [20:11:48]MH_SAM_APDU [20:11:48]CAPDU: 80 11 00 00 [20:11:48]Write to MH i2c: E2 08 00 EA 08 80 11 00 00 00 00 00 00 6C [20:11:48]Write i2c OK [20:11:48]MH_I2C_Read... [20:11:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:11:48]Read from MH i2c: E2 [20:11:48]MH_I2C_Read... [20:11:48]Read from MH i2c: E2 17 00 [20:11:48]MH_I2C_Read... [20:11:48]Read from MH i2c: E2 17 00 EA 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C3 [20:11:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:11:48]wFMCommunicate OK [20:11:48]requested_item fd.num is exist - process it [20:11:48]SAM_PROTO_GetFieldsCounters [20:11:48]wFMCommunicate request_size=4 [20:11:48]MH_SAM_APDU [20:11:48]CAPDU: 80 13 00 00 [20:11:48]Write to MH i2c: E2 08 00 EB 08 80 13 00 00 00 00 00 00 6F [20:11:48]Write i2c OK [20:11:48]MH_I2C_Read... [20:11:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:11:49]Read from MH i2c: E2 [20:11:49]MH_I2C_Read... [20:11:49]Read from MH i2c: E2 62 00 [20:11:49]MH_I2C_Read... [20:11:49]Read from MH i2c: E2 62 00 EB 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 40 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 F0 01 00 00 5E 04 04 00 F0 01 00 00 57 04 04 00 F1 01 00 00 19 04 04 00 00 00 00 00 90 00 3E [20:11:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 40 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 F0 01 00 00 5E 04 04 00 F0 01 00 00 57 04 04 00 F1 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:11:49]wFMCommunicate OK [20:11:49]SAM_PROTO_GetFieldsCounters done [20:11:49]requested_item shift.num is exist - process it [20:11:49]requested_item shift.opened is exist - process it [20:11:49]req_shift_opened [20:11:49]FM_GetShiftState [20:11:49]SAM_PROTO_GetShiftState [20:11:49]wFMCommunicate request_size=4 [20:11:49]MH_SAM_APDU [20:11:49]CAPDU: 80 13 01 00 [20:11:49]Write to MH i2c: E2 08 00 EC 08 80 13 01 00 00 00 00 00 71 [20:11:49]Write i2c OK [20:11:49]MH_I2C_Read... [20:11:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:11:49]Read from MH i2c: E2 [20:11:49]MH_I2C_Read... [20:11:49]Read from MH i2c: E2 0E 00 [20:11:49]MH_I2C_Read... [20:11:49]Read from MH i2c: E2 0E 00 EC 08 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 8B [20:11:49]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:11:49]wFMCommunicate OK [20:11:49]SAM_PROTO_GetShiftState done [20:11:49]FM_GetShiftState done [20:11:49]req_shift_opened done [20:11:49]requested_item shift.open_date is exist - process it [20:11:49]req_shift_open_date [20:11:49]req_shift_open_date done [20:11:49]produce_requested_data done [20:11:49]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227648,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [20:11:49]process_action_free close_receipt [20:11:49]json_value_free [20:11:49]json_value_free done [20:11:49]process_json_proto returns [20:11:49]Send response to host [20:11:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227648,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [20:11:49]free response buf [20:11:49]execute_script done [20:11:49]execute_script returns [20:11:49]free content buf [20:11:49]Sock 9.Close socket [20:11:49]Sock 9.Thread stoped [20:11:52]OFD Sender: No OFD packet to send [20:11:57]OFD Sender: No OFD packet to send [20:12:02]OFD Sender: No OFD packet to send [20:12:07]OFD Sender: No OFD packet to send [20:12:11]accept exits with 7 [20:12:11]New connection [20:12:11]New thread 3066666340 created [20:12:11]Thread 3066809700 joined [20:12:11]Waiting for new connection... [20:12:11] Sock 7.Parse request [20:12:11]Sock 7.Check first char [20:12:11]Sock 7.First char is OK [20:12:11]request: POST /json_proto HTTP/1.0 [20:12:11]Method: POST [20:12:11]URL: /json_proto [20:12:11]Method is POST - this is cgi request [20:12:11]url: /json_proto [20:12:11]query_string will be loaded in cgi processing [20:12:11]execute_cgi json_proto POST (null) [20:12:11]execute_cgi path=json_proto method=POST [20:12:11]POST find Content-Length [20:12:11]Host: 172.17.44.195:8080 [20:12:11]Content-Length: 683 [20:12:11]Content-Type: application/json [20:12:11] [20:12:11]POST finish read [20:12:11]Found Content-Length = 683 [20:12:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963311", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:12:11]execute_script... [20:12: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)1963311", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:12:11]POST & json_proto [20:12:11]process_json_proto [20:12:11]json parsed OK: [20:12:11]protocol is kg_v1.0 [20:12:11]action value=close_receipt [20:12:11]process_action close_receipt [20:12:11]cmd_close_receipt [20:12:11]MH_GetDate [20:12:11]Write to MH i2c: F0 00 00 ED 08 E4 [20:12:11]Write i2c OK [20:12:11]MH_I2C_Read... [20:12:11]Read from MH i2c: F0 [20:12:11]MH_I2C_Read... [20:12:11]Read from MH i2c: F0 09 00 [20:12:11]MH_I2C_Read... [20:12:11]Read from MH i2c: F0 09 00 ED 08 00 1C 64 15 67 82 C9 CF 66 69 [20:12:11]GetLastDocTimeStamp 1729455105 [20:12:11]current date 1729455132 [20:12:11]FM_GetShiftState [20:12:11]SAM_PROTO_GetShiftState [20:12:11]wFMCommunicate request_size=4 [20:12:11]MH_SAM_APDU [20:12:11]CAPDU: 80 13 01 00 [20:12:11]Write to MH i2c: E2 08 00 EE 08 80 13 01 00 00 00 00 00 73 [20:12:11]Write i2c OK [20:12:11]MH_I2C_Read... [20:12:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:12:11]Read from MH i2c: E2 [20:12:11]MH_I2C_Read... [20:12:11]Read from MH i2c: E2 0E 00 [20:12:11]MH_I2C_Read... [20:12:11]Read from MH i2c: E2 0E 00 EE 08 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 8D [20:12:11]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:12:11]wFMCommunicate OK [20:12:11]SAM_PROTO_GetShiftState done [20:12:11]FM_GetShiftState done [20:12:11]opened in 1729383750 [20:12:11]opened+sec_in_day 1729470150 [20:12:11]quantity*price = 100021 [20:12:11]sum+1 = 100023 [20:12:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 497 20.10.2024 20:12 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227649 ФПД: 122190743769811 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T201212&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227649&fm=122190743769811&tin=02508201610067®Number=0000000000091685&sum=100000 [20:12:12]StoreToDocumentArchive [20:12:12]shift 533 fd 227649 [20:12:12]save to /storage/0533/doc_00227649 [20:12:12]save last doc name /storage/0533/doc_00227649 to /storage/kkm_last_doc_name [20:12:12]save OK [20:12:12]Clear old archive folders... [20:12:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:12:12]tlvbuf is 00C28430 [20:12:12]SAM_PROTO_ClearQueue [20:12:12]wFMCommunicate request_size=4 [20:12:12]MH_SAM_APDU [20:12:12]CAPDU: 80 09 00 00 [20:12:12]Write to MH i2c: E2 08 00 FB 08 80 09 00 00 00 00 00 00 75 [20:12:12]Write i2c OK [20:12:12]MH_I2C_Read... [20:12:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:12:12]Read from MH i2c: E2 [20:12:12]MH_I2C_Read... [20:12:12]Read from MH i2c: E2 03 00 [20:12:12]MH_I2C_Read... [20:12:12]Read from MH i2c: E2 03 00 FB 08 00 90 00 77 [20:12:12]RAPDU: 90 00 [20:12:12]wFMCommunicate OK [20:12:12]SAM_PROTO_ClearQueue done [20:12:12]KKMCreateOFDPacket [20:12:12]OFDProtocolAddRootSTLVToBuf [20:12:12]FM_MakeSignedData [20:12:12]FM_MakeSignedData [20:12:12]SAM_PROTO_SignData [20:12:12]wFMCommunicate request_size=4 [20:12:12]MH_SAM_APDU [20:12:12]CAPDU: 80 0D 01 02 [20:12:12]Write to MH i2c: E2 08 00 FC 08 80 0D 01 02 00 00 00 00 7D [20:12:12]Write i2c OK [20:12:12]MH_I2C_Read... [20:12:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:12:12]Read from MH i2c: E2 [20:12:12]MH_I2C_Read... [20:12:12]Read from MH i2c: E2 03 00 [20:12:12]MH_I2C_Read... [20:12:12]Read from MH i2c: E2 03 00 FC 08 00 90 00 78 [20:12:12]RAPDU: 90 00 [20:12:12]wFMCommunicate OK [20:12:12]wFMCommunicate request_size=255 [20:12:12]MH_SAM_APDU [20:12: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 01 00 00 F4 03 04 00 1C 64 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 41 79 03 00 35 04 06 00 6F [20:12:12]Write to MH i2c: E2 02 01 FD 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 01 00 00 F4 03 04 00 1C 64 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 41 79 03 00 35 04 06 00 6F 00 00 62 [20:12:12]Write i2c OK [20:12:12]MH_I2C_Read... [20:12:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:12:12]Read from MH i2c: E2 [20:12:12]MH_I2C_Read... [20:12:12]Read from MH i2c: E2 03 00 [20:12:12]MH_I2C_Read... [20:12:12]Read from MH i2c: E2 03 00 FD 08 00 90 00 79 [20:12:12]RAPDU: 90 00 [20:12:12]wFMCommunicate OK [20:12:12]wFMCommunicate request_size=10 [20:12:12]MH_SAM_APDU [20:12:12]CAPDU: 80 0D 02 02 05 21 BF E0 92 D3 [20:12:12]Write to MH i2c: E2 0D 00 FE 08 80 0D 02 02 05 00 21 BF E0 92 D3 00 00 AF [20:12:12]Write i2c OK [20:12:12]MH_I2C_Read... [20:12:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:12:12]Read from MH i2c: E2 [20:12:12]MH_I2C_Read... [20:12:12]Read from MH i2c: E2 03 00 [20:12:12]MH_I2C_Read... [20:12:12]Read from MH i2c: E2 03 00 FE 08 00 90 00 7A [20:12:12]RAPDU: 90 00 [20:12:12]wFMCommunicate OK [20:12:12]wFMCommunicate request_size=4 [20:12:12]MH_SAM_APDU [20:12:12]CAPDU: 80 0D 03 02 [20:12:12]Write to MH i2c: E2 08 00 FF 08 80 0D 03 02 00 00 00 00 82 [20:12:12]Write i2c OK [20:12:12]MH_I2C_Read... [20:12:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:12:12]Read from MH i2c: E2 [20:12:12]MH_I2C_Read... [20:12:12]Read from MH i2c: E2 0B 00 [20:12:12]MH_I2C_Read... [20:12:12]Read from MH i2c: E2 0B 00 FF 08 00 95 85 C8 D8 09 A3 0D 3C 90 00 32 [20:12:12]RAPDU: 95 85 C8 D8 09 A3 0D 3C 90 00 [20:12:12]wFMCommunicate OK [20:12:12]SAM_PROTO_SignData done [20:12:12]FM_MakeSignedData done [20:12:12]CreateOFDProtocolMessage [20:12:12]wFMCommunicate request_size=4 [20:12:12]MH_SAM_APDU [20:12:12]CAPDU: 80 11 00 00 [20:12:12]Write to MH i2c: E2 08 00 00 09 80 11 00 00 00 00 00 00 83 [20:12:12]Write i2c OK [20:12:12]MH_I2C_Read... [20:12:12]OFD Sender: No OFD packet to send [20:12:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:12:12]Read from MH i2c: E2 [20:12:12]MH_I2C_Read... [20:12:12]Read from MH i2c: E2 17 00 [20:12:12]MH_I2C_Read... [20:12:12]Read from MH i2c: E2 17 00 00 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 DA [20:12:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:12:12]wFMCommunicate OK [20:12:12]CreateOFDProtocolMessage done [20:12:12]OFDSenderStorePacket 227649 [20:12:12]StoreOFDPacket docnum=227649 [20:12:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 74 F3 07 01 4C 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 01 00 00 F4 03 04 00 1C 64 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 41 79 03 00 35 04 06 00 6F 21 BF E0 92 D3 95 85 C8 D8 09 A3 0D 3C [20:12:12]CheckFolder [20:12:12]dirname=/storage/ofd_packets [20:12:12]CheckFolder done [20:12:12]ProducePacketName [20:12:12]name=ofd_packets/00227649 [20:12:12]NVStorageSaveData ofd_packets/00227649 [20:12:12]File name is /storage/ofd_packets/00227649 [20:12:12]Write 301 bytes [20:12:12]NVStorageSaveData done [20:12:12]OFDSenderStorePacket done [20:12:12]KKMCreateOFDPacket done [20:12:12]NVStorageSaveData kkm_last_timestamp [20:12:12]File name is /storage/kkm_last_timestamp [20:12:12]Write 4 bytes [20:12:12]NVStorageSaveData done [20:12:12]ExternCall_PrintAddStr [20:12:12]wPrintStart [20:12:12]Write to MH i2c: 01 00 00 01 09 0A [20:12:12]Write i2c OK [20:12:12]MH_I2C_Read... [20:12:12]Read from MH i2c: 01 [20:12:12]MH_I2C_Read... [20:12:12]Read from MH i2c: 01 07 00 [20:12:12]MH_I2C_Read... [20:12:12]Read from MH i2c: 01 07 00 01 09 00 00 00 00 00 FF 0F 1F [20:12:12]RasterBufferAndPrint [20:12:12]line Счет N : (1)1963311 [20:12:12]line ИНН: 02508201610067 [20:12:12]line Контрольно-Кассовый Чек [20:12:12]line ПРОДАЖА [20:12:12]line ТРК (МРК, ГНК) : 54 [20:12:12]line Товар: 2710124500 [20:12:12]line Аи-95-К-5 [20:12:12]line 13.480 * 74.20 [20:12:12]line = 1000.22 [20:12:12]line НДС 12% НСП 1% [20:12:12]line > о реализуемом товаре [20:12:12]line ОКРУГЛЕНИЕ: -0.22 [20:12:12]line ИТОГО: 1000.00 [20:12:12]line Внесено: 1000.00 [20:12:12]line СДАЧА: 0.00 [20:12:12]line НСП 1% : 8.85 [20:12:12]line НДС 12% : 106.22 [20:12:12]line Наличными: 1000.00 [20:12:12]line Безнал.: 0.00 [20:12:12]line Место: АЗС № 133 "Партнер Нефть" [20:12:12]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [20:12:12]line СНО: Общий режим [20:12:12]line Чек 497 20.10.2024 20:12 [20:12:12]line Смена: 533 ФФД: 1.0 [20:12:12]line ЗНМ: 0300000091 [20:12:12]line РНМ: 0000000000091685 [20:12:12]line Версия ККМ: 001 [20:12:12]line ФМ: 0000000000871839 [20:12:12]line ФД: 227649 [20:12:12]line ФПД: 122190743769811 [20:12:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T201212&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227649&fm=122190743769811&tin=02508201610067®Number=0000000000091685&sum=100000 [20:12:13]OFD Sender: Processing packet 227649 [packets to send 38, broken 37] [20:12:13]ProducePacketName [20:12:13]name=ofd_packets/00227649 [20:12:13]OFD Sender: To server: pG, [20:12:13]CommunicateWithHost lk.salyk.kg:30040 [20:12:13]ConnectInit lk.salyk.kg [20:12:13]written 0, free lines is 4095 [20:12:13]Connected sock=10 [20:12: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 33 39 0F 01 00 00 74 F3 07 01 4C 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 01 00 00 F4 03 04 00 1C 64 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 41 79 03 00 35 04 06 00 6F 21 BF E0 92 D3 95 85 C8 D8 09 A3 0D 3C [20:12: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 33 39 4F 00 00 00 29 9E 47 00 67 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 33 39 10 04 04 00 41 79 03 00 F4 03 04 00 19 0F 15 67 B6 04 01 00 00 06 1F 5C F0 F3 9E 3E F1 [20:12:13]CommunicateWithHost err = 0 [20:12:13]CheckOFDResponse [20:12:13]1017 (14) - 77093643461234 [20:12:13]1041 (16) - 0000000000871839 [20:12:13]1040 (4) - 227649 [20:12:13]1012 (4) - 20.10.2024 14:09 [20:12:13]1206 (1) - 0 [20:12:13]OFD Sender: Remove packet 227649 [20:12:13]ProducePacketName [20:12:13]name=ofd_packets/00227649 [20:12:13]NVStorageDeleteData [20:12:13]Write to MH i2c: 01 00 00 2B 09 34 [20:12:13]Write i2c OK [20:12:13]MH_I2C_Read... [20:12:13]Read from MH i2c: 01 [20:12:13]MH_I2C_Read... [20:12:13]Read from MH i2c: 01 07 00 [20:12:13]MH_I2C_Read... [20:12:13]Read from MH i2c: 01 07 00 2B 09 00 00 00 00 00 AA 0C F1 [20:12:13]RasterBufferAndPrint [20:12:13]line [20:12:13]line [20:12:13]line [20:12:13]line [20:12:13]line [20:12:13]written 0, free lines is 3246 [20:12:13]MH_Cut [20:12:13]Write to MH i2c: D1 01 00 32 09 01 0D [20:12:13]Write i2c OK [20:12:13]MH_I2C_Read... [20:12:13]Read from MH i2c: D1 [20:12:13]MH_I2C_Read... [20:12:13]Read from MH i2c: D1 01 00 [20:12:13]MH_I2C_Read... [20:12:13]Read from MH i2c: D1 01 00 32 09 00 0C [20:12:13]Write to MH i2c: 01 00 00 33 09 3C [20:12:13]Write i2c OK [20:12:13]MH_I2C_Read... [20:12:13]OFD Sender: No OFD packet to send [20:12:14]*** Cut start [20:12:14]*** Partial cut [20:12:14]*** CUTSNS_PIN = 1 [20:12:14]*** CUTSNS_PIN = 0 [20:12:14]*** Brake cut motor [20:12:15]Read from MH i2c: 01 [20:12:15]MH_I2C_Read... [20:12:15]*** Stop cut motor [20:12:15]*** Cut end [20:12:15]Read from MH i2c: 01 07 00 [20:12:15]MH_I2C_Read... [20:12:15]Read from MH i2c: 01 07 00 33 09 00 00 00 00 00 FF 0F 51 [20:12:15]process_action close_receipt done [20:12:15]requested_data is exist [20:12:15]produce_requested_data [20:12:15]requested_item fm.sn is exist - process it [20:12:15]wFMCommunicate request_size=4 [20:12:15]MH_SAM_APDU [20:12:15]CAPDU: 80 11 00 00 [20:12:15]Write to MH i2c: E2 08 00 34 09 80 11 00 00 00 00 00 00 B7 [20:12:15]Write i2c OK [20:12:15]MH_I2C_Read... [20:12:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:12:15]Read from MH i2c: E2 [20:12:15]MH_I2C_Read... [20:12:15]Read from MH i2c: E2 17 00 [20:12:15]MH_I2C_Read... [20:12:15]Read from MH i2c: E2 17 00 34 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 0E [20:12:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:12:15]wFMCommunicate OK [20:12:15]requested_item fd.num is exist - process it [20:12:15]SAM_PROTO_GetFieldsCounters [20:12:15]wFMCommunicate request_size=4 [20:12:15]MH_SAM_APDU [20:12:15]CAPDU: 80 13 00 00 [20:12:15]Write to MH i2c: E2 08 00 35 09 80 13 00 00 00 00 00 00 BA [20:12:15]Write i2c OK [20:12:15]MH_I2C_Read... [20:12:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:12:15]Read from MH i2c: E2 [20:12:15]MH_I2C_Read... [20:12:15]Read from MH i2c: E2 62 00 [20:12:15]MH_I2C_Read... [20:12:15]Read from MH i2c: E2 62 00 35 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 41 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 F1 01 00 00 5E 04 04 00 F1 01 00 00 57 04 04 00 F2 01 00 00 19 04 04 00 00 00 00 00 90 00 8D [20:12: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 41 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 F1 01 00 00 5E 04 04 00 F1 01 00 00 57 04 04 00 F2 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:12:15]wFMCommunicate OK [20:12:15]SAM_PROTO_GetFieldsCounters done [20:12:15]requested_item shift.num is exist - process it [20:12:15]requested_item shift.opened is exist - process it [20:12:15]req_shift_opened [20:12:15]FM_GetShiftState [20:12:15]SAM_PROTO_GetShiftState [20:12:15]wFMCommunicate request_size=4 [20:12:15]MH_SAM_APDU [20:12:15]CAPDU: 80 13 01 00 [20:12:15]Write to MH i2c: E2 08 00 36 09 80 13 01 00 00 00 00 00 BC [20:12:15]Write i2c OK [20:12:15]MH_I2C_Read... [20:12:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:12:15]Read from MH i2c: E2 [20:12:15]MH_I2C_Read... [20:12:15]Read from MH i2c: E2 0E 00 [20:12:15]MH_I2C_Read... [20:12:15]Read from MH i2c: E2 0E 00 36 09 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 D6 [20:12:15]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:12:15]wFMCommunicate OK [20:12:15]SAM_PROTO_GetShiftState done [20:12:15]FM_GetShiftState done [20:12:15]req_shift_opened done [20:12:15]requested_item shift.open_date is exist - process it [20:12:15]req_shift_open_date [20:12:15]req_shift_open_date done [20:12:15]produce_requested_data done [20:12:15]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227649,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [20:12:15]process_action_free close_receipt [20:12:15]json_value_free [20:12:15]json_value_free done [20:12:15]process_json_proto returns [20:12:15]Send response to host [20:12:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227649,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [20:12:15]free response buf [20:12:15]execute_script done [20:12:15]execute_script returns [20:12:15]free content buf [20:12:15]Sock 7.Close socket [20:12:15]Sock 7.Thread stoped [20:12:18]OFD Sender: No OFD packet to send [20:12:23]OFD Sender: No OFD packet to send [20:12:26]accept exits with 9 [20:12:26]New connection [20:12:26]New thread 3066809700 created [20:12:26]Thread 3066666340 joined [20:12:26]Waiting for new connection... [20:12:26] Sock 9.Parse request [20:12:26]Sock 9.Check first char [20:12:26]Sock 9.First char is OK [20:12:26]request: POST /json_proto HTTP/1.0 [20:12:26]Method: POST [20:12:26]URL: /json_proto [20:12:26]Method is POST - this is cgi request [20:12:26]url: /json_proto [20:12:26]query_string will be loaded in cgi processing [20:12:26]execute_cgi json_proto POST (null) [20:12:26]execute_cgi path=json_proto method=POST [20:12:26]POST find Content-Length [20:12:26]Host: 172.17.44.195:8080 [20:12:26]Content-Length: 678 [20:12:26]Content-Type: application/json [20:12:26] [20:12:26]POST finish read [20:12:26]Found Content-Length = 678 [20:12:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963312", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:12:26]execute_script... [20:12:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963312", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:12:26]POST & json_proto [20:12:26]process_json_proto [20:12:26]json parsed OK: [20:12:26]protocol is kg_v1.0 [20:12:26]action value=close_receipt [20:12:26]process_action close_receipt [20:12:26]cmd_close_receipt [20:12:26]MH_GetDate [20:12:26]Write to MH i2c: F0 00 00 37 09 2F [20:12:26]Write i2c OK [20:12:26]MH_I2C_Read... [20:12:26]Read from MH i2c: F0 [20:12:26]MH_I2C_Read... [20:12:26]Read from MH i2c: F0 09 00 [20:12:26]MH_I2C_Read... [20:12:26]Read from MH i2c: F0 09 00 37 09 00 2B 64 15 67 82 C9 CF 66 C3 [20:12:26]GetLastDocTimeStamp 1729455132 [20:12:26]current date 1729455147 [20:12:26]FM_GetShiftState [20:12:26]SAM_PROTO_GetShiftState [20:12:26]wFMCommunicate request_size=4 [20:12:26]MH_SAM_APDU [20:12:26]CAPDU: 80 13 01 00 [20:12:26]Write to MH i2c: E2 08 00 38 09 80 13 01 00 00 00 00 00 BE [20:12:26]Write i2c OK [20:12:26]MH_I2C_Read... [20:12:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:12:26]Read from MH i2c: E2 [20:12:26]MH_I2C_Read... [20:12:26]Read from MH i2c: E2 0E 00 [20:12:26]MH_I2C_Read... [20:12:26]Read from MH i2c: E2 0E 00 38 09 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 D8 [20:12:26]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:12:26]wFMCommunicate OK [20:12:26]SAM_PROTO_GetShiftState done [20:12:26]FM_GetShiftState done [20:12:26]opened in 1729383750 [20:12:26]opened+sec_in_day 1729470150 [20:12:26]quantity*price = 20003 [20:12:26]sum+1 = 20004 [20:12:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 498 20.10.2024 20:12 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227650 ФПД: 15236887963817 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T201227&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227650&fm=15236887963817&tin=02508201610067®Number=0000000000091685&sum=20000 [20:12:27]StoreToDocumentArchive [20:12:27]shift 533 fd 227650 [20:12:27]save to /storage/0533/doc_00227650 [20:12:27]save last doc name /storage/0533/doc_00227650 to /storage/kkm_last_doc_name [20:12:27]save OK [20:12:27]Clear old archive folders... [20:12:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:12:27]tlvbuf is 00C28190 [20:12:27]SAM_PROTO_ClearQueue [20:12:27]wFMCommunicate request_size=4 [20:12:27]MH_SAM_APDU [20:12:27]CAPDU: 80 09 00 00 [20:12:27]Write to MH i2c: E2 08 00 45 09 80 09 00 00 00 00 00 00 C0 [20:12:27]Write i2c OK [20:12:27]MH_I2C_Read... [20:12:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:12:27]Read from MH i2c: E2 [20:12:27]MH_I2C_Read... [20:12:27]Read from MH i2c: E2 03 00 [20:12:27]MH_I2C_Read... [20:12:27]Read from MH i2c: E2 03 00 45 09 00 90 00 C2 [20:12:27]RAPDU: 90 00 [20:12:27]wFMCommunicate OK [20:12:27]SAM_PROTO_ClearQueue done [20:12:27]KKMCreateOFDPacket [20:12:27]OFDProtocolAddRootSTLVToBuf [20:12:27]FM_MakeSignedData [20:12:27]FM_MakeSignedData [20:12:27]SAM_PROTO_SignData [20:12:27]wFMCommunicate request_size=4 [20:12:27]MH_SAM_APDU [20:12:27]CAPDU: 80 0D 01 02 [20:12:27]Write to MH i2c: E2 08 00 46 09 80 0D 01 02 00 00 00 00 C8 [20:12:27]Write i2c OK [20:12:27]MH_I2C_Read... [20:12:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:12:27]Read from MH i2c: E2 [20:12:27]MH_I2C_Read... [20:12:27]Read from MH i2c: E2 03 00 [20:12:27]MH_I2C_Read... [20:12:27]Read from MH i2c: E2 03 00 46 09 00 90 00 C3 [20:12:27]RAPDU: 90 00 [20:12:27]wFMCommunicate OK [20:12:27]wFMCommunicate request_size=255 [20:12:27]MH_SAM_APDU [20:12:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 01 00 00 F4 03 04 00 2B 64 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 42 79 03 00 35 04 06 00 0D [20:12:27]Write to MH i2c: E2 02 01 47 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 01 00 00 F4 03 04 00 2B 64 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 42 79 03 00 35 04 06 00 0D 00 00 01 [20:12:27]Write i2c OK [20:12:27]MH_I2C_Read... [20:12:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:12:28]Read from MH i2c: E2 [20:12:28]MH_I2C_Read... [20:12:28]Read from MH i2c: E2 03 00 [20:12:28]MH_I2C_Read... [20:12:28]Read from MH i2c: E2 03 00 47 09 00 90 00 C4 [20:12:28]RAPDU: 90 00 [20:12:28]wFMCommunicate OK [20:12:28]wFMCommunicate request_size=10 [20:12:28]MH_SAM_APDU [20:12:28]CAPDU: 80 0D 02 02 05 DB 9D 4B 68 A9 [20:12:28]Write to MH i2c: E2 0D 00 48 09 80 0D 02 02 05 00 DB 9D 4B 68 A9 00 00 A9 [20:12:28]Write i2c OK [20:12:28]MH_I2C_Read... [20:12:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:12:28]Read from MH i2c: E2 [20:12:28]MH_I2C_Read... [20:12:28]Read from MH i2c: E2 03 00 [20:12:28]MH_I2C_Read... [20:12:28]Read from MH i2c: E2 03 00 48 09 00 90 00 C5 [20:12:28]RAPDU: 90 00 [20:12:28]wFMCommunicate OK [20:12:28]wFMCommunicate request_size=4 [20:12:28]MH_SAM_APDU [20:12:28]CAPDU: 80 0D 03 02 [20:12:28]Write to MH i2c: E2 08 00 49 09 80 0D 03 02 00 00 00 00 CD [20:12:28]Write i2c OK [20:12:28]MH_I2C_Read... [20:12:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:12:28]Read from MH i2c: E2 [20:12:28]MH_I2C_Read... [20:12:28]Read from MH i2c: E2 0B 00 [20:12:28]MH_I2C_Read... [20:12:28]Read from MH i2c: E2 0B 00 49 09 00 8D 90 2B 44 E1 A6 C3 8D 90 00 31 [20:12:28]RAPDU: 8D 90 2B 44 E1 A6 C3 8D 90 00 [20:12:28]wFMCommunicate OK [20:12:28]SAM_PROTO_SignData done [20:12:28]FM_MakeSignedData done [20:12:28]CreateOFDProtocolMessage [20:12:28]wFMCommunicate request_size=4 [20:12:28]MH_SAM_APDU [20:12:28]CAPDU: 80 11 00 00 [20:12:28]Write to MH i2c: E2 08 00 4A 09 80 11 00 00 00 00 00 00 CD [20:12:28]Write i2c OK [20:12:28]MH_I2C_Read... [20:12:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:12:28]Read from MH i2c: E2 [20:12:28]MH_I2C_Read... [20:12:28]Read from MH i2c: E2 17 00 [20:12:28]MH_I2C_Read... [20:12:28]Read from MH i2c: E2 17 00 4A 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 24 [20:12:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:12:28]wFMCommunicate OK [20:12:28]CreateOFDProtocolMessage done [20:12:28]OFDSenderStorePacket 227650 [20:12:28]StoreOFDPacket docnum=227650 [20:12:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 7F B5 07 01 AF 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 01 00 00 F4 03 04 00 2B 64 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 42 79 03 00 35 04 06 00 0D DB 9D 4B 68 A9 8D 90 2B 44 E1 A6 C3 8D [20:12:28]CheckFolder [20:12:28]dirname=/storage/ofd_packets [20:12:28]CheckFolder done [20:12:28]ProducePacketName [20:12:28]name=ofd_packets/00227650 [20:12:28]NVStorageSaveData ofd_packets/00227650 [20:12:28]File name is /storage/ofd_packets/00227650 [20:12:28]Write 301 bytes [20:12:28]NVStorageSaveData done [20:12:28]OFDSenderStorePacket done [20:12:28]KKMCreateOFDPacket done [20:12:28]NVStorageSaveData kkm_last_timestamp [20:12:28]File name is /storage/kkm_last_timestamp [20:12:28]Write 4 bytes [20:12:28]NVStorageSaveData done [20:12:28]ExternCall_PrintAddStr [20:12:28]wPrintStart [20:12:28]Write to MH i2c: 01 00 00 4B 09 54 [20:12:28]Write i2c OK [20:12:28]MH_I2C_Read... [20:12:28]Read from MH i2c: 01 [20:12:28]MH_I2C_Read... [20:12:28]Read from MH i2c: 01 07 00 [20:12:28]MH_I2C_Read... [20:12:28]Read from MH i2c: 01 07 00 4B 09 00 00 00 00 00 FF 0F 69 [20:12:28]RasterBufferAndPrint [20:12:28]line Счет N : (1)1963312 [20:12:28]line ИНН: 02508201610067 [20:12:28]line Контрольно-Кассовый Чек [20:12:28]line ПРОДАЖА [20:12:28]line ТРК (МРК, ГНК) : 33 [20:12:28]line Товар: 2710124130 [20:12:28]line Аи-92-К-5 [20:12:28]line 2.990 * 66.90 [20:12:28]line = 200.03 [20:12:28]line НДС 12% НСП 1% [20:12:28]line > о реализуемом товаре [20:12:28]line ОКРУГЛЕНИЕ: -0.03 [20:12:28]line ИТОГО: 200.00 [20:12:28]line Внесено: 200.00 [20:12:28]line СДАЧА: 0.00 [20:12:28]line НСП 1% : 1.77 [20:12:28]line НДС 12% : 21.24 [20:12:28]line Наличными: 200.00 [20:12:28]line Безнал.: 0.00 [20:12:28]line Место: АЗС № 133 "Партнер Нефть" [20:12:28]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [20:12:28]line СНО: Общий режим [20:12:28]line Чек 498 20.10.2024 20:12 [20:12:28]line Смена: 533 ФФД: 1.0 [20:12:28]line ЗНМ: 0300000091 [20:12:28]line РНМ: 0000000000091685 [20:12:28]line Версия ККМ: 001 [20:12:28]line ФМ: 0000000000871839 [20:12:28]line ФД: 227650 [20:12:28]line ФПД: 15236887963817 [20:12:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T201227&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227650&fm=15236887963817&tin=02508201610067®Number=0000000000091685&sum=20000 [20:12:28]written 0, free lines is 4095 [20:12:28]OFD Sender: Processing packet 227650 [packets to send 38, broken 37] [20:12:28]ProducePacketName [20:12:28]name=ofd_packets/00227650 [20:12:28]OFD Sender: To server: pG, [20:12:28]CommunicateWithHost lk.salyk.kg:30040 [20:12:28]ConnectInit lk.salyk.kg [20:12:28]Connected sock=10 [20:12:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 7F B5 07 01 AF 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 01 00 00 F4 03 04 00 2B 64 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 42 79 03 00 35 04 06 00 0D DB 9D 4B 68 A9 8D 90 2B 44 E1 A6 C3 8D [20:12: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 33 39 4F 00 00 00 26 FB 47 00 F3 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 33 39 10 04 04 00 42 79 03 00 F4 03 04 00 29 0F 15 67 B6 04 01 00 00 08 38 A8 E5 6C 0A 79 BE [20:12:29]CommunicateWithHost err = 0 [20:12:29]CheckOFDResponse [20:12:29]1017 (14) - 77093643461234 [20:12:29]1041 (16) - 0000000000871839 [20:12:29]1040 (4) - 227650 [20:12:29]1012 (4) - 20.10.2024 14:09 [20:12:29]1206 (1) - 0 [20:12:29]OFD Sender: Remove packet 227650 [20:12:29]ProducePacketName [20:12:29]name=ofd_packets/00227650 [20:12:29]NVStorageDeleteData [20:12:29]Write to MH i2c: 01 00 00 75 09 7E [20:12:29]Write i2c OK [20:12:29]MH_I2C_Read... [20:12:29]Read from MH i2c: 01 [20:12:29]MH_I2C_Read... [20:12:29]Read from MH i2c: 01 07 00 [20:12:29]MH_I2C_Read... [20:12:29]Read from MH i2c: 01 07 00 75 09 00 00 00 00 00 AA 0C 3B [20:12:29]RasterBufferAndPrint [20:12:29]line [20:12:29]line [20:12:29]line [20:12:29]line [20:12:29]line [20:12:29]written 0, free lines is 3248 [20:12:29]MH_Cut [20:12:29]Write to MH i2c: D1 01 00 7C 09 01 57 [20:12:29]Write i2c OK [20:12:29]MH_I2C_Read... [20:12:29]Read from MH i2c: D1 [20:12:29]MH_I2C_Read... [20:12:29]Read from MH i2c: D1 01 00 [20:12:29]MH_I2C_Read... [20:12:29]Read from MH i2c: D1 01 00 7C 09 00 56 [20:12:29]Write to MH i2c: 01 00 00 7D 09 86 [20:12:29]Write i2c OK [20:12:29]MH_I2C_Read... [20:12:29]OFD Sender: No OFD packet to send [20:12:30]*** Cut start [20:12:30]*** Partial cut [20:12:30]*** CUTSNS_PIN = 1 [20:12:30]*** CUTSNS_PIN = 0 [20:12:30]*** Brake cut motor [20:12:30]Read from MH i2c: 01 [20:12:30]MH_I2C_Read... [20:12:30]*** Stop cut motor [20:12:30]*** Cut end [20:12:30]Read from MH i2c: 01 07 00 [20:12:30]MH_I2C_Read... [20:12:30]Read from MH i2c: 01 07 00 7D 09 00 00 00 00 00 FF 0F 9B [20:12:30]process_action close_receipt done [20:12:30]requested_data is exist [20:12:30]produce_requested_data [20:12:30]requested_item fm.sn is exist - process it [20:12:30]wFMCommunicate request_size=4 [20:12:30]MH_SAM_APDU [20:12:30]CAPDU: 80 11 00 00 [20:12:30]Write to MH i2c: E2 08 00 7E 09 80 11 00 00 00 00 00 00 01 [20:12:30]Write i2c OK [20:12:30]MH_I2C_Read... [20:12:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:12:30]Read from MH i2c: E2 [20:12:30]MH_I2C_Read... [20:12:30]Read from MH i2c: E2 17 00 [20:12:30]MH_I2C_Read... [20:12:30]Read from MH i2c: E2 17 00 7E 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 58 [20:12:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:12:30]wFMCommunicate OK [20:12:30]requested_item fd.num is exist - process it [20:12:30]SAM_PROTO_GetFieldsCounters [20:12:30]wFMCommunicate request_size=4 [20:12:30]MH_SAM_APDU [20:12:30]CAPDU: 80 13 00 00 [20:12:30]Write to MH i2c: E2 08 00 7F 09 80 13 00 00 00 00 00 00 04 [20:12:30]Write i2c OK [20:12:30]MH_I2C_Read... [20:12:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:12:30]Read from MH i2c: E2 [20:12:30]MH_I2C_Read... [20:12:30]Read from MH i2c: E2 62 00 [20:12:30]MH_I2C_Read... [20:12:30]Read from MH i2c: E2 62 00 7F 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 42 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 F2 01 00 00 5E 04 04 00 F2 01 00 00 57 04 04 00 F3 01 00 00 19 04 04 00 00 00 00 00 90 00 DB [20:12:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 42 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 F2 01 00 00 5E 04 04 00 F2 01 00 00 57 04 04 00 F3 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:12:30]wFMCommunicate OK [20:12:30]SAM_PROTO_GetFieldsCounters done [20:12:30]requested_item shift.num is exist - process it [20:12:30]requested_item shift.opened is exist - process it [20:12:30]req_shift_opened [20:12:30]FM_GetShiftState [20:12:30]SAM_PROTO_GetShiftState [20:12:30]wFMCommunicate request_size=4 [20:12:30]MH_SAM_APDU [20:12:30]CAPDU: 80 13 01 00 [20:12:30]Write to MH i2c: E2 08 00 80 09 80 13 01 00 00 00 00 00 06 [20:12:30]Write i2c OK [20:12:30]MH_I2C_Read... [20:12:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:12:30]Read from MH i2c: E2 [20:12:30]MH_I2C_Read... [20:12:30]Read from MH i2c: E2 0E 00 [20:12:30]MH_I2C_Read... [20:12:30]Read from MH i2c: E2 0E 00 80 09 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 20 [20:12:30]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:12:30]wFMCommunicate OK [20:12:30]SAM_PROTO_GetShiftState done [20:12:30]FM_GetShiftState done [20:12:30]req_shift_opened done [20:12:30]requested_item shift.open_date is exist - process it [20:12:30]req_shift_open_date [20:12:30]req_shift_open_date done [20:12:30]produce_requested_data done [20:12:30]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227650,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [20:12:30]process_action_free close_receipt [20:12:30]json_value_free [20:12:30]json_value_free done [20:12:30]process_json_proto returns [20:12:30]Send response to host [20:12:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227650,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [20:12:30]free response buf [20:12:30]execute_script done [20:12:30]execute_script returns [20:12:30]free content buf [20:12:30]Sock 9.Close socket [20:12:30]Sock 9.Thread stoped [20:12:34]OFD Sender: No OFD packet to send [20:12:39]OFD Sender: No OFD packet to send [20:12:44]OFD Sender: No OFD packet to send [20:12:49]OFD Sender: No OFD packet to send [20:12:54]OFD Sender: No OFD packet to send [20:12:59]OFD Sender: No OFD packet to send [20:13:04]OFD Sender: No OFD packet to send [20:13:09]OFD Sender: No OFD packet to send [20:13:14]OFD Sender: No OFD packet to send [20:13:19]OFD Sender: No OFD packet to send [20:13:24]OFD Sender: No OFD packet to send [20:13:29]OFD Sender: No OFD packet to send [20:13:34]OFD Sender: No OFD packet to send [20:13:39]OFD Sender: No OFD packet to send [20:13:44]OFD Sender: No OFD packet to send [20:13:49]OFD Sender: No OFD packet to send [20:13:54]OFD Sender: No OFD packet to send [20:13:59]OFD Sender: No OFD packet to send [20:14:04]OFD Sender: No OFD packet to send [20:14:09]OFD Sender: No OFD packet to send [20:14:14]OFD Sender: No OFD packet to send [20:14:19]OFD Sender: No OFD packet to send [20:14:24]OFD Sender: No OFD packet to send [20:14:29]OFD Sender: No OFD packet to send [20:14:34]OFD Sender: No OFD packet to send [20:14:39]OFD Sender: No OFD packet to send [20:14:42]accept exits with 7 [20:14:42]New connection [20:14:42]New thread 3066666340 created [20:14:42]Thread 3066809700 joined [20:14:42]Waiting for new connection... [20:14:42] Sock 7.Parse request [20:14:42]Sock 7.Check first char [20:14:42]Sock 7.First char is OK [20:14:42]request: POST /json_proto HTTP/1.0 [20:14:42]Method: POST [20:14:42]URL: /json_proto [20:14:42]Method is POST - this is cgi request [20:14:42]url: /json_proto [20:14:42]query_string will be loaded in cgi processing [20:14:42]execute_cgi json_proto POST (null) [20:14:42]execute_cgi path=json_proto method=POST [20:14:42]POST find Content-Length [20:14:42]Host: 172.17.44.195:8080 [20:14:42]Content-Length: 767 [20:14:42]Content-Type: application/json [20:14:42] [20:14:42]POST finish read [20:14:42]Found Content-Length = 767 [20:14:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963313", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:14:42]execute_script... [20:14: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)1963313", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:14:42]POST & json_proto [20:14:42]process_json_proto [20:14:42]json parsed OK: [20:14:42]protocol is kg_v1.0 [20:14:42]action value=close_receipt [20:14:42]process_action close_receipt [20:14:42]cmd_close_receipt [20:14:42]MH_GetDate [20:14:42]Write to MH i2c: F0 00 00 81 09 79 [20:14:42]Write i2c OK [20:14:42]MH_I2C_Read... [20:14:42]Read from MH i2c: F0 [20:14:42]MH_I2C_Read... [20:14:42]Read from MH i2c: F0 09 00 [20:14:42]MH_I2C_Read... [20:14:42]Read from MH i2c: F0 09 00 81 09 00 B2 64 15 67 82 C9 CF 66 94 [20:14:42]GetLastDocTimeStamp 1729455147 [20:14:42]current date 1729455282 [20:14:42]FM_GetShiftState [20:14:42]SAM_PROTO_GetShiftState [20:14:42]wFMCommunicate request_size=4 [20:14:42]MH_SAM_APDU [20:14:42]CAPDU: 80 13 01 00 [20:14:42]Write to MH i2c: E2 08 00 82 09 80 13 01 00 00 00 00 00 08 [20:14:42]Write i2c OK [20:14:42]MH_I2C_Read... [20:14:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:14:42]Read from MH i2c: E2 [20:14:42]MH_I2C_Read... [20:14:42]Read from MH i2c: E2 0E 00 [20:14:42]MH_I2C_Read... [20:14:42]Read from MH i2c: E2 0E 00 82 09 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 22 [20:14:42]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:14:42]wFMCommunicate OK [20:14:42]SAM_PROTO_GetShiftState done [20:14:42]FM_GetShiftState done [20:14:42]opened in 1729383750 [20:14:42]opened+sec_in_day 1729470150 [20:14:42]quantity*price = 100050 [20:14:42]sum+1 = 100052 [20:14:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 499 20.10.2024 20:14 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 227651 ФПД: 868119637478 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T201443&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227651&fm=868119637478&tin=02508201610067®Number=0000000000091685&sum=100051 [20:14:43]StoreToDocumentArchive [20:14:43]shift 533 fd 227651 [20:14:43]save to /storage/0533/doc_00227651 [20:14:43]save last doc name /storage/0533/doc_00227651 to /storage/kkm_last_doc_name [20:14:43]save OK [20:14:43]Clear old archive folders... [20:14:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:14:43]tlvbuf is 00BFEF10 [20:14:43]SAM_PROTO_ClearQueue [20:14:43]wFMCommunicate request_size=4 [20:14:43]MH_SAM_APDU [20:14:43]CAPDU: 80 09 00 00 [20:14:43]Write to MH i2c: E2 08 00 8F 09 80 09 00 00 00 00 00 00 0A [20:14:43]Write i2c OK [20:14:43]MH_I2C_Read... [20:14:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:14:43]Read from MH i2c: E2 [20:14:43]MH_I2C_Read... [20:14:43]Read from MH i2c: E2 03 00 [20:14:43]MH_I2C_Read... [20:14:43]Read from MH i2c: E2 03 00 8F 09 00 90 00 0C [20:14:43]RAPDU: 90 00 [20:14:43]wFMCommunicate OK [20:14:43]SAM_PROTO_ClearQueue done [20:14:43]KKMCreateOFDPacket [20:14:43]OFDProtocolAddRootSTLVToBuf [20:14:43]FM_MakeSignedData [20:14:43]FM_MakeSignedData [20:14:43]SAM_PROTO_SignData [20:14:43]wFMCommunicate request_size=4 [20:14:43]MH_SAM_APDU [20:14:43]CAPDU: 80 0D 01 02 [20:14:43]Write to MH i2c: E2 08 00 90 09 80 0D 01 02 00 00 00 00 12 [20:14:43]Write i2c OK [20:14:43]MH_I2C_Read... [20:14:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:14:43]Read from MH i2c: E2 [20:14:43]MH_I2C_Read... [20:14:43]Read from MH i2c: E2 03 00 [20:14:43]MH_I2C_Read... [20:14:43]Read from MH i2c: E2 03 00 90 09 00 90 00 0D [20:14:43]RAPDU: 90 00 [20:14:43]wFMCommunicate OK [20:14:43]wFMCommunicate request_size=255 [20:14:43]MH_SAM_APDU [20:14: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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 01 00 00 F4 03 04 00 B3 64 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 43 79 03 00 35 04 06 00 00 CA 1F F6 [20:14:43]Write to MH i2c: E2 02 01 91 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 01 00 00 F4 03 04 00 B3 64 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 43 79 03 00 35 04 06 00 00 CA 1F F6 00 00 41 [20:14:43]Write i2c OK [20:14:43]MH_I2C_Read... [20:14:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:14:43]Read from MH i2c: E2 [20:14:43]MH_I2C_Read... [20:14:43]Read from MH i2c: E2 03 00 [20:14:43]MH_I2C_Read... [20:14:43]Read from MH i2c: E2 03 00 91 09 00 90 00 0E [20:14:43]RAPDU: 90 00 [20:14:43]wFMCommunicate OK [20:14:43]wFMCommunicate request_size=7 [20:14:43]MH_SAM_APDU [20:14:43]CAPDU: 80 0D 02 02 02 6D E6 [20:14:43]Write to MH i2c: E2 0A 00 92 09 80 0D 02 02 02 00 6D E6 00 00 6C [20:14:43]Write i2c OK [20:14:43]MH_I2C_Read... [20:14:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:14:43]Read from MH i2c: E2 [20:14:43]MH_I2C_Read... [20:14:43]Read from MH i2c: E2 03 00 [20:14:43]MH_I2C_Read... [20:14:43]Read from MH i2c: E2 03 00 92 09 00 90 00 0F [20:14:43]RAPDU: 90 00 [20:14:43]wFMCommunicate OK [20:14:43]wFMCommunicate request_size=4 [20:14:43]MH_SAM_APDU [20:14:43]CAPDU: 80 0D 03 02 [20:14:43]Write to MH i2c: E2 08 00 93 09 80 0D 03 02 00 00 00 00 17 [20:14:43]Write i2c OK [20:14:43]MH_I2C_Read... [20:14:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:14:43]Read from MH i2c: E2 [20:14:43]MH_I2C_Read... [20:14:43]Read from MH i2c: E2 0B 00 [20:14:43]MH_I2C_Read... [20:14:43]Read from MH i2c: E2 0B 00 93 09 00 45 03 FC 61 4B 54 FA 94 90 00 EA [20:14:43]RAPDU: 45 03 FC 61 4B 54 FA 94 90 00 [20:14:43]wFMCommunicate OK [20:14:43]SAM_PROTO_SignData done [20:14:43]FM_MakeSignedData done [20:14:43]CreateOFDProtocolMessage [20:14:43]wFMCommunicate request_size=4 [20:14:43]MH_SAM_APDU [20:14:43]CAPDU: 80 11 00 00 [20:14:43]Write to MH i2c: E2 08 00 94 09 80 11 00 00 00 00 00 00 17 [20:14:43]Write i2c OK [20:14:43]MH_I2C_Read... [20:14:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:14:43]Read from MH i2c: E2 [20:14:43]MH_I2C_Read... [20:14:43]Read from MH i2c: E2 17 00 [20:14:43]MH_I2C_Read... [20:14:43]Read from MH i2c: E2 17 00 94 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 6E [20:14:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:14:43]wFMCommunicate OK [20:14:43]CreateOFDProtocolMessage done [20:14:43]OFDSenderStorePacket 227651 [20:14:43]StoreOFDPacket docnum=227651 [20:14:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 7D 6C 04 01 B4 C1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 01 00 00 F4 03 04 00 B3 64 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 43 79 03 00 35 04 06 00 00 CA 1F F6 6D E6 45 03 FC 61 4B 54 FA 94 [20:14:43]CheckFolder [20:14:43]dirname=/storage/ofd_packets [20:14:43]CheckFolder done [20:14:43]ProducePacketName [20:14:43]name=ofd_packets/00227651 [20:14:43]NVStorageSaveData ofd_packets/00227651 [20:14:43]File name is /storage/ofd_packets/00227651 [20:14:43]Write 298 bytes [20:14:43]NVStorageSaveData done [20:14:43]OFDSenderStorePacket done [20:14:43]KKMCreateOFDPacket done [20:14:43]NVStorageSaveData kkm_last_timestamp [20:14:43]File name is /storage/kkm_last_timestamp [20:14:43]Write 4 bytes [20:14:43]NVStorageSaveData done [20:14:43]ExternCall_PrintAddStr [20:14:43]wPrintStart [20:14:43]Write to MH i2c: 01 00 00 95 09 9E [20:14:43]Write i2c OK [20:14:43]MH_I2C_Read... [20:14:43]Read from MH i2c: 01 [20:14:43]MH_I2C_Read... [20:14:43]Read from MH i2c: 01 07 00 [20:14:43]MH_I2C_Read... [20:14:43]Read from MH i2c: 01 07 00 95 09 00 00 00 00 00 FF 0F B3 [20:14:43]RasterBufferAndPrint [20:14:43]line Счет N : (1)1963313 [20:14:43]line ИНН: 02508201610067 [20:14:43]line Контрольно-Кассовый Чек [20:14:43]line ПРОДАЖА [20:14:43]line ТРК (МРК, ГНК) : 11 [20:14:43]line Товар: 2710194210 [20:14:43]line ДТ-К-5 [20:14:43]line 13.130 * 76.20 [20:14:43]line = 1000.51 [20:14:43]line НДС 12% НСП 1% [20:14:43]line > о реализуемом товаре [20:14:43]line ИТОГО: 1000.51 [20:14:43]line НСП 1% : 8.85 [20:14:43]line НДС 12% : 106.25 [20:14:43]line Наличными: 0.00 [20:14:43]line Безнал.: 1000.51 [20:14:43]line Место: АЗС № 133 "Партнер Нефть" [20:14:43]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [20:14:43]line СНО: Общий режим [20:14:43]line Чек 499 20.10.2024 20:14 [20:14:43]line Смена: 533 ФФД: 1.0 [20:14:43]line ЗНМ: 0300000091 [20:14:43]line РНМ: 0000000000091685 [20:14:43]line Версия ККМ: 001 [20:14:43]line Платежная система: Mbank [20:14:43]line ФМ: 0000000000871839 [20:14:43]line ФД: 227651 [20:14:43]line ФПД: 868119637478 [20:14:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T201443&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227651&fm=868119637478&tin=02508201610067®Number=0000000000091685&sum=100051 [20:14:44]OFD Sender: Processing packet 227651 [packets to send 38, broken 37] [20:14:44]ProducePacketName [20:14:44]name=ofd_packets/00227651 [20:14:44]OFD Sender: To server: pG, [20:14:44]CommunicateWithHost lk.salyk.kg:30040 [20:14:44]ConnectInit lk.salyk.kg [20:14:44]written 0, free lines is 4095 [20:14:44]Connected sock=10 [20:14: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 33 39 0C 01 00 00 7D 6C 04 01 B4 C1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 01 00 00 F4 03 04 00 B3 64 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 43 79 03 00 35 04 06 00 00 CA 1F F6 6D E6 45 03 FC 61 4B 54 FA 94 [20:14: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 33 39 4F 00 00 00 77 33 47 00 97 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 43 79 03 00 F4 03 04 00 B0 0F 15 67 B6 04 01 00 00 EE 5B 72 71 FC 3B D4 8E [20:14:44]CommunicateWithHost err = 0 [20:14:44]CheckOFDResponse [20:14:44]1017 (14) - 77093643461234 [20:14:44]1041 (16) - 0000000000871839 [20:14:44]1040 (4) - 227651 [20:14:44]1012 (4) - 20.10.2024 14:12 [20:14:44]1206 (1) - 0 [20:14:44]OFD Sender: Remove packet 227651 [20:14:44]ProducePacketName [20:14:44]name=ofd_packets/00227651 [20:14:44]NVStorageDeleteData [20:14:44]Write to MH i2c: 01 00 00 BD 09 C6 [20:14:44]Write i2c OK [20:14:44]MH_I2C_Read... [20:14:44]Read from MH i2c: 01 [20:14:44]MH_I2C_Read... [20:14:44]Read from MH i2c: 01 07 00 [20:14:44]MH_I2C_Read... [20:14:44]Read from MH i2c: 01 07 00 BD 09 00 00 00 00 00 D3 0C AC [20:14:44]RasterBufferAndPrint [20:14:44]line [20:14:44]line [20:14:44]line [20:14:44]line [20:14:44]line [20:14:44]written 0, free lines is 3286 [20:14:44]MH_Cut [20:14:44]Write to MH i2c: D1 01 00 C4 09 01 9F [20:14:44]Write i2c OK [20:14:44]MH_I2C_Read... [20:14:44]Read from MH i2c: D1 [20:14:44]MH_I2C_Read... [20:14:44]Read from MH i2c: D1 01 00 [20:14:44]MH_I2C_Read... [20:14:44]Read from MH i2c: D1 01 00 C4 09 00 9E [20:14:44]Write to MH i2c: 01 00 00 C5 09 CE [20:14:44]Write i2c OK [20:14:44]MH_I2C_Read... [20:14:44]OFD Sender: No OFD packet to send [20:14:45]*** Cut start [20:14:45]*** Partial cut [20:14:45]*** CUTSNS_PIN = 1 [20:14:45]*** CUTSNS_PIN = 0 [20:14:45]*** Brake cut motor [20:14:46]Read from MH i2c: 01 [20:14:46]MH_I2C_Read... [20:14:46]*** Stop cut motor [20:14:46]*** Cut end [20:14:46]Read from MH i2c: 01 07 00 [20:14:46]MH_I2C_Read... [20:14:46]Read from MH i2c: 01 07 00 C5 09 00 00 00 00 00 FF 0F E3 [20:14:46]process_action close_receipt done [20:14:46]requested_data is exist [20:14:46]produce_requested_data [20:14:46]requested_item fm.sn is exist - process it [20:14:46]wFMCommunicate request_size=4 [20:14:46]MH_SAM_APDU [20:14:46]CAPDU: 80 11 00 00 [20:14:46]Write to MH i2c: E2 08 00 C6 09 80 11 00 00 00 00 00 00 49 [20:14:46]Write i2c OK [20:14:46]MH_I2C_Read... [20:14:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:14:46]Read from MH i2c: E2 [20:14:46]MH_I2C_Read... [20:14:46]Read from MH i2c: E2 17 00 [20:14:46]MH_I2C_Read... [20:14:46]Read from MH i2c: E2 17 00 C6 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A0 [20:14:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:14:46]wFMCommunicate OK [20:14:46]requested_item fd.num is exist - process it [20:14:46]SAM_PROTO_GetFieldsCounters [20:14:46]wFMCommunicate request_size=4 [20:14:46]MH_SAM_APDU [20:14:46]CAPDU: 80 13 00 00 [20:14:46]Write to MH i2c: E2 08 00 C7 09 80 13 00 00 00 00 00 00 4C [20:14:46]Write i2c OK [20:14:46]MH_I2C_Read... [20:14:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:14:46]Read from MH i2c: E2 [20:14:46]MH_I2C_Read... [20:14:46]Read from MH i2c: E2 62 00 [20:14:46]MH_I2C_Read... [20:14:46]Read from MH i2c: E2 62 00 C7 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 43 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 F3 01 00 00 5E 04 04 00 F3 01 00 00 57 04 04 00 F4 01 00 00 19 04 04 00 00 00 00 00 90 00 27 [20:14: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 43 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 F3 01 00 00 5E 04 04 00 F3 01 00 00 57 04 04 00 F4 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:14:46]wFMCommunicate OK [20:14:46]SAM_PROTO_GetFieldsCounters done [20:14:46]requested_item shift.num is exist - process it [20:14:46]requested_item shift.opened is exist - process it [20:14:46]req_shift_opened [20:14:46]FM_GetShiftState [20:14:46]SAM_PROTO_GetShiftState [20:14:46]wFMCommunicate request_size=4 [20:14:46]MH_SAM_APDU [20:14:46]CAPDU: 80 13 01 00 [20:14:46]Write to MH i2c: E2 08 00 C8 09 80 13 01 00 00 00 00 00 4E [20:14:46]Write i2c OK [20:14:46]MH_I2C_Read... [20:14:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:14:46]Read from MH i2c: E2 [20:14:46]MH_I2C_Read... [20:14:46]Read from MH i2c: E2 0E 00 [20:14:46]MH_I2C_Read... [20:14:46]Read from MH i2c: E2 0E 00 C8 09 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 68 [20:14:46]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:14:46]wFMCommunicate OK [20:14:46]SAM_PROTO_GetShiftState done [20:14:46]FM_GetShiftState done [20:14:46]req_shift_opened done [20:14:46]requested_item shift.open_date is exist - process it [20:14:46]req_shift_open_date [20:14:46]req_shift_open_date done [20:14:46]produce_requested_data done [20:14:46]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227651,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [20:14:46]process_action_free close_receipt [20:14:46]json_value_free [20:14:46]json_value_free done [20:14:46]process_json_proto returns [20:14:46]Send response to host [20:14:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227651,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [20:14:46]free response buf [20:14:46]execute_script done [20:14:46]execute_script returns [20:14:46]free content buf [20:14:46]Sock 7.Close socket [20:14:46]Sock 7.Thread stoped [20:14:49]OFD Sender: No OFD packet to send [20:14:54]OFD Sender: No OFD packet to send [20:14:58]accept exits with 9 [20:14:58]New connection [20:14:58]New thread 3066809700 created [20:14:58]Thread 3066666340 joined [20:14:58]Waiting for new connection... [20:14:58] Sock 9.Parse request [20:14:58]Sock 9.Check first char [20:14:58]Sock 9.First char is OK [20:14:58]request: POST /json_proto HTTP/1.0 [20:14:58]Method: POST [20:14:58]URL: /json_proto [20:14:58]Method is POST - this is cgi request [20:14:58]url: /json_proto [20:14:58]query_string will be loaded in cgi processing [20:14:58]execute_cgi json_proto POST (null) [20:14:58]execute_cgi path=json_proto method=POST [20:14:58]POST find Content-Length [20:14:58]Host: 172.17.44.195:8080 [20:14:58]Content-Length: 678 [20:14:58]Content-Type: application/json [20:14:58] [20:14:58]POST finish read [20:14:58]Found Content-Length = 678 [20:14:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963314", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 9.870, "sum" : 660.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:14:58]execute_script... [20:14: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)1963314", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 9.870, "sum" : 660.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:14:58]POST & json_proto [20:14:58]process_json_proto [20:14:58]json parsed OK: [20:14:58]protocol is kg_v1.0 [20:14:58]action value=close_receipt [20:14:58]process_action close_receipt [20:14:58]cmd_close_receipt [20:14:58]MH_GetDate [20:14:58]Write to MH i2c: F0 00 00 C9 09 C1 [20:14:58]Write i2c OK [20:14:58]MH_I2C_Read... [20:14:58]Read from MH i2c: F0 [20:14:58]MH_I2C_Read... [20:14:58]Read from MH i2c: F0 09 00 [20:14:58]MH_I2C_Read... [20:14:58]Read from MH i2c: F0 09 00 C9 09 00 C3 64 15 67 82 C9 CF 66 ED [20:14:58]GetLastDocTimeStamp 1729455283 [20:14:58]current date 1729455299 [20:14:58]FM_GetShiftState [20:14:58]SAM_PROTO_GetShiftState [20:14:58]wFMCommunicate request_size=4 [20:14:58]MH_SAM_APDU [20:14:58]CAPDU: 80 13 01 00 [20:14:58]Write to MH i2c: E2 08 00 CA 09 80 13 01 00 00 00 00 00 50 [20:14:58]Write i2c OK [20:14:58]MH_I2C_Read... [20:14:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:14:58]Read from MH i2c: E2 [20:14:58]MH_I2C_Read... [20:14:58]Read from MH i2c: E2 0E 00 [20:14:58]MH_I2C_Read... [20:14:58]Read from MH i2c: E2 0E 00 CA 09 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 6A [20:14:58]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:14:58]wFMCommunicate OK [20:14:58]SAM_PROTO_GetShiftState done [20:14:58]FM_GetShiftState done [20:14:58]opened in 1729383750 [20:14:58]opened+sec_in_day 1729470150 [20:14:58]quantity*price = 66030 [20:14:58]sum+1 = 66031 [20:14:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 660.00 Внесено: 660.00 СДАЧА: 0.00 НСП 1% : 5.84 НДС 12% : 70.12 Наличными: 660.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 500 20.10.2024 20:14 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227652 ФПД: 59979606514981 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T201459&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227652&fm=59979606514981&tin=02508201610067®Number=0000000000091685&sum=66000 [20:14:59]StoreToDocumentArchive [20:14:59]shift 533 fd 227652 [20:14:59]save to /storage/0533/doc_00227652 [20:14:59]save last doc name /storage/0533/doc_00227652 to /storage/kkm_last_doc_name [20:14:59]save OK [20:14:59]Clear old archive folders... [20:14:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:14:59]tlvbuf is 00C28A80 [20:14:59]SAM_PROTO_ClearQueue [20:14:59]wFMCommunicate request_size=4 [20:14:59]MH_SAM_APDU [20:14:59]CAPDU: 80 09 00 00 [20:14:59]Write to MH i2c: E2 08 00 D7 09 80 09 00 00 00 00 00 00 52 [20:14:59]Write i2c OK [20:14:59]MH_I2C_Read... [20:14:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:14:59]Read from MH i2c: E2 [20:14:59]MH_I2C_Read... [20:14:59]Read from MH i2c: E2 03 00 [20:14:59]MH_I2C_Read... [20:14:59]Read from MH i2c: E2 03 00 D7 09 00 90 00 54 [20:14:59]RAPDU: 90 00 [20:14:59]wFMCommunicate OK [20:14:59]SAM_PROTO_ClearQueue done [20:14:59]KKMCreateOFDPacket [20:14:59]OFDProtocolAddRootSTLVToBuf [20:14:59]FM_MakeSignedData [20:14:59]FM_MakeSignedData [20:14:59]SAM_PROTO_SignData [20:14:59]wFMCommunicate request_size=4 [20:14:59]MH_SAM_APDU [20:14:59]CAPDU: 80 0D 01 02 [20:14:59]Write to MH i2c: E2 08 00 D8 09 80 0D 01 02 00 00 00 00 5A [20:14:59]Write i2c OK [20:14:59]MH_I2C_Read... [20:14:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:14:59]Read from MH i2c: E2 [20:14:59]MH_I2C_Read... [20:14:59]Read from MH i2c: E2 03 00 [20:14:59]MH_I2C_Read... [20:14:59]Read from MH i2c: E2 03 00 D8 09 00 90 00 55 [20:14:59]RAPDU: 90 00 [20:14:59]wFMCommunicate OK [20:14:59]wFMCommunicate request_size=255 [20:14:59]MH_SAM_APDU [20:14:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 26 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 EE 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 01 00 00 F4 03 04 00 C3 64 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 44 79 03 00 35 04 06 00 36 [20:14:59]Write to MH i2c: E2 02 01 D9 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 26 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 EE 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 01 00 00 F4 03 04 00 C3 64 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 44 79 03 00 35 04 06 00 36 00 00 5E [20:14:59]Write i2c OK [20:14:59]MH_I2C_Read... [20:14:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:14:59]Read from MH i2c: E2 [20:14:59]MH_I2C_Read... [20:14:59]Read from MH i2c: E2 03 00 [20:14:59]MH_I2C_Read... [20:14:59]Read from MH i2c: E2 03 00 D9 09 00 90 00 56 [20:14:59]RAPDU: 90 00 [20:14:59]wFMCommunicate OK [20:14:59]wFMCommunicate request_size=10 [20:14:59]MH_SAM_APDU [20:14:59]CAPDU: 80 0D 02 02 05 8D 17 23 DD 25 [20:14:59]Write to MH i2c: E2 0D 00 DA 09 80 0D 02 02 05 00 8D 17 23 DD 25 00 00 30 [20:14:59]Write i2c OK [20:14:59]MH_I2C_Read... [20:14:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:14:59]Read from MH i2c: E2 [20:14:59]MH_I2C_Read... [20:14:59]Read from MH i2c: E2 03 00 [20:14:59]MH_I2C_Read... [20:14:59]Read from MH i2c: E2 03 00 DA 09 00 90 00 57 [20:14:59]RAPDU: 90 00 [20:14:59]wFMCommunicate OK [20:14:59]wFMCommunicate request_size=4 [20:14:59]MH_SAM_APDU [20:14:59]CAPDU: 80 0D 03 02 [20:14:59]Write to MH i2c: E2 08 00 DB 09 80 0D 03 02 00 00 00 00 5F [20:14:59]Write i2c OK [20:14:59]MH_I2C_Read... [20:14:59]OFD Sender: No OFD packet to send [20:14:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:14:59]Read from MH i2c: E2 [20:14:59]MH_I2C_Read... [20:14:59]Read from MH i2c: E2 0B 00 [20:14:59]MH_I2C_Read... [20:14:59]Read from MH i2c: E2 0B 00 DB 09 00 1A C5 3D D7 CE 5C FE C8 90 00 43 [20:14:59]RAPDU: 1A C5 3D D7 CE 5C FE C8 90 00 [20:14:59]wFMCommunicate OK [20:14:59]SAM_PROTO_SignData done [20:14:59]FM_MakeSignedData done [20:14:59]CreateOFDProtocolMessage [20:14:59]wFMCommunicate request_size=4 [20:14:59]MH_SAM_APDU [20:14:59]CAPDU: 80 11 00 00 [20:14:59]Write to MH i2c: E2 08 00 DC 09 80 11 00 00 00 00 00 00 5F [20:14:59]Write i2c OK [20:14:59]MH_I2C_Read... [20:14:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:14:59]Read from MH i2c: E2 [20:14:59]MH_I2C_Read... [20:14:59]Read from MH i2c: E2 17 00 [20:14:59]MH_I2C_Read... [20:14:59]Read from MH i2c: E2 17 00 DC 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B6 [20:14:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:14:59]wFMCommunicate OK [20:14:59]CreateOFDProtocolMessage done [20:14:59]OFDSenderStorePacket 227652 [20:14:59]StoreOFDPacket docnum=227652 [20:14:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 8A 8F 07 01 A5 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 26 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 EE 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 01 00 00 F4 03 04 00 C3 64 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 44 79 03 00 35 04 06 00 36 8D 17 23 DD 25 1A C5 3D D7 CE 5C FE C8 [20:14:59]CheckFolder [20:14:59]dirname=/storage/ofd_packets [20:14:59]CheckFolder done [20:14:59]ProducePacketName [20:14:59]name=ofd_packets/00227652 [20:14:59]NVStorageSaveData ofd_packets/00227652 [20:14:59]File name is /storage/ofd_packets/00227652 [20:14:59]Write 301 bytes [20:14:59]NVStorageSaveData done [20:14:59]OFDSenderStorePacket done [20:14:59]KKMCreateOFDPacket done [20:14:59]NVStorageSaveData kkm_last_timestamp [20:14:59]File name is /storage/kkm_last_timestamp [20:14:59]Write 4 bytes [20:14:59]NVStorageSaveData done [20:14:59]ExternCall_PrintAddStr [20:14:59]wPrintStart [20:14:59]Write to MH i2c: 01 00 00 DD 09 E6 [20:14:59]Write i2c OK [20:14:59]MH_I2C_Read... [20:14:59]Read from MH i2c: 01 [20:14:59]MH_I2C_Read... [20:14:59]Read from MH i2c: 01 07 00 [20:14:59]MH_I2C_Read... [20:14:59]Read from MH i2c: 01 07 00 DD 09 00 00 00 00 00 FF 0F FB [20:14:59]RasterBufferAndPrint [20:14:59]line Счет N : (1)1963314 [20:14:59]line ИНН: 02508201610067 [20:14:59]line Контрольно-Кассовый Чек [20:14:59]line ПРОДАЖА [20:14:59]line ТРК (МРК, ГНК) : 63 [20:14:59]line Товар: 2710124130 [20:14:59]line Аи-92-К-5 [20:14:59]line 9.870 * 66.90 [20:14:59]line = 660.30 [20:14:59]line НДС 12% НСП 1% [20:14:59]line > о реализуемом товаре [20:14:59]line ОКРУГЛЕНИЕ: -0.30 [20:14:59]line ИТОГО: 660.00 [20:14:59]line Внесено: 660.00 [20:14:59]line СДАЧА: 0.00 [20:14:59]line НСП 1% : 5.84 [20:14:59]line НДС 12% : 70.12 [20:14:59]line Наличными: 660.00 [20:14:59]line Безнал.: 0.00 [20:14:59]line Место: АЗС № 133 "Партнер Нефть" [20:14:59]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [20:14:59]line СНО: Общий режим [20:14:59]line Чек 500 20.10.2024 20:14 [20:14:59]line Смена: 533 ФФД: 1.0 [20:14:59]line ЗНМ: 0300000091 [20:14:59]line РНМ: 0000000000091685 [20:14:59]line Версия ККМ: 001 [20:14:59]line ФМ: 0000000000871839 [20:14:59]line ФД: 227652 [20:14:59]line ФПД: 59979606514981 [20:14:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T201459&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227652&fm=59979606514981&tin=02508201610067®Number=0000000000091685&sum=66000 [20:14:59]written 0, free lines is 4095 [20:14:59]OFD Sender: Processing packet 227652 [packets to send 38, broken 37] [20:14:59]ProducePacketName [20:14:59]name=ofd_packets/00227652 [20:14:59]OFD Sender: To server: pG, [20:14:59]CommunicateWithHost lk.salyk.kg:30040 [20:15:00]ConnectInit lk.salyk.kg [20:15:00]Connected sock=10 [20:15:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 8A 8F 07 01 A5 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 26 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 EE 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 01 00 00 F4 03 04 00 C3 64 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 44 79 03 00 35 04 06 00 36 8D 17 23 DD 25 1A C5 3D D7 CE 5C FE C8 [20:15:00]Write to MH i2c: 01 00 00 07 0A 11 [20:15:00]Write i2c OK [20:15:00]MH_I2C_Read... [20:15:00]Read from MH i2c: 01 [20:15:00]MH_I2C_Read... [20:15:00]Read from MH i2c: 01 07 00 [20:15:00]MH_I2C_Read... [20:15:00]Read from MH i2c: 01 07 00 07 0A 00 00 00 00 00 B5 0C D9 [20:15:00]RasterBufferAndPrint [20:15:00]line [20:15:00]line [20:15:00]line [20:15:00]line [20:15:00]line [20:15:00]written 0, free lines is 3257 [20:15:00]MH_Cut [20:15:00]Write to MH i2c: D1 01 00 0E 0A 01 EA [20:15:00]Write i2c OK [20:15:00]MH_I2C_Read... [20:15:00]Read from MH i2c: D1 [20:15:00]MH_I2C_Read... [20:15:00]Read from MH i2c: D1 01 00 [20:15:00]MH_I2C_Read... [20:15:00]Read from MH i2c: D1 01 00 0E 0A 00 E9 [20:15:00]Write to MH i2c: 01 00 00 0F 0A 19 [20:15:00]Write i2c OK [20:15:00]MH_I2C_Read... [20:15: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 33 39 4F 00 00 00 BC E3 47 00 E1 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 33 39 10 04 04 00 44 79 03 00 F4 03 04 00 C1 0F 15 67 B6 04 01 00 00 0D D0 68 EE 1E B8 EE 67 [20:15:00]CommunicateWithHost err = 0 [20:15:00]CheckOFDResponse [20:15:00]1017 (14) - 77093643461234 [20:15:00]1041 (16) - 0000000000871839 [20:15:00]1040 (4) - 227652 [20:15:00]1012 (4) - 20.10.2024 14:12 [20:15:00]1206 (1) - 0 [20:15:00]OFD Sender: Remove packet 227652 [20:15:00]ProducePacketName [20:15:00]name=ofd_packets/00227652 [20:15:00]NVStorageDeleteData [20:15:01]OFD Sender: No OFD packet to send [20:15:01]*** Cut start [20:15:01]*** Partial cut [20:15:01]*** CUTSNS_PIN = 1 [20:15:01]*** CUTSNS_PIN = 0 [20:15:01]*** Brake cut motor [20:15:01]Read from MH i2c: 01 [20:15:01]MH_I2C_Read... [20:15:01]*** Stop cut motor [20:15:01]*** Cut end [20:15:01]Read from MH i2c: 01 07 00 [20:15:01]MH_I2C_Read... [20:15:01]Read from MH i2c: 01 07 00 0F 0A 00 00 00 00 00 FF 0F 2E [20:15:01]process_action close_receipt done [20:15:01]requested_data is exist [20:15:01]produce_requested_data [20:15:01]requested_item fm.sn is exist - process it [20:15:01]wFMCommunicate request_size=4 [20:15:01]MH_SAM_APDU [20:15:01]CAPDU: 80 11 00 00 [20:15:01]Write to MH i2c: E2 08 00 10 0A 80 11 00 00 00 00 00 00 94 [20:15:01]Write i2c OK [20:15:01]MH_I2C_Read... [20:15:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:02]Read from MH i2c: E2 [20:15:02]MH_I2C_Read... [20:15:02]Read from MH i2c: E2 17 00 [20:15:02]MH_I2C_Read... [20:15:02]Read from MH i2c: E2 17 00 10 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 EB [20:15:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:15:02]wFMCommunicate OK [20:15:02]requested_item fd.num is exist - process it [20:15:02]SAM_PROTO_GetFieldsCounters [20:15:02]wFMCommunicate request_size=4 [20:15:02]MH_SAM_APDU [20:15:02]CAPDU: 80 13 00 00 [20:15:02]Write to MH i2c: E2 08 00 11 0A 80 13 00 00 00 00 00 00 97 [20:15:02]Write i2c OK [20:15:02]MH_I2C_Read... [20:15:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:15:02]Read from MH i2c: E2 [20:15:02]MH_I2C_Read... [20:15:02]Read from MH i2c: E2 62 00 [20:15:02]MH_I2C_Read... [20:15:02]Read from MH i2c: E2 62 00 11 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 44 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 F4 01 00 00 5E 04 04 00 F4 01 00 00 57 04 04 00 F5 01 00 00 19 04 04 00 00 00 00 00 90 00 76 [20:15: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 44 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 F4 01 00 00 5E 04 04 00 F4 01 00 00 57 04 04 00 F5 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:15:02]wFMCommunicate OK [20:15:02]SAM_PROTO_GetFieldsCounters done [20:15:02]requested_item shift.num is exist - process it [20:15:02]requested_item shift.opened is exist - process it [20:15:02]req_shift_opened [20:15:02]FM_GetShiftState [20:15:02]SAM_PROTO_GetShiftState [20:15:02]wFMCommunicate request_size=4 [20:15:02]MH_SAM_APDU [20:15:02]CAPDU: 80 13 01 00 [20:15:02]Write to MH i2c: E2 08 00 12 0A 80 13 01 00 00 00 00 00 99 [20:15:02]Write i2c OK [20:15:02]MH_I2C_Read... [20:15:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:15:02]Read from MH i2c: E2 [20:15:02]MH_I2C_Read... [20:15:02]Read from MH i2c: E2 0E 00 [20:15:02]MH_I2C_Read... [20:15:02]Read from MH i2c: E2 0E 00 12 0A 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 B3 [20:15:02]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:15:02]wFMCommunicate OK [20:15:02]SAM_PROTO_GetShiftState done [20:15:02]FM_GetShiftState done [20:15:02]req_shift_opened done [20:15:02]requested_item shift.open_date is exist - process it [20:15:02]req_shift_open_date [20:15:02]req_shift_open_date done [20:15:02]produce_requested_data done [20:15:02]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227652,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [20:15:02]process_action_free close_receipt [20:15:02]json_value_free [20:15:02]json_value_free done [20:15:02]process_json_proto returns [20:15:02]Send response to host [20:15:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227652,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [20:15:02]free response buf [20:15:02]execute_script done [20:15:02]execute_script returns [20:15:02]free content buf [20:15:02]Sock 9.Close socket [20:15:02]Sock 9.Thread stoped [20:15:06]OFD Sender: No OFD packet to send [20:15:11]OFD Sender: No OFD packet to send [20:15:16]OFD Sender: No OFD packet to send [20:15:21]OFD Sender: No OFD packet to send [20:15:22]accept exits with 7 [20:15:22]New connection [20:15:22]New thread 3066666340 created [20:15:22]Thread 3066809700 joined [20:15:22]Waiting for new connection... [20:15:22] Sock 7.Parse request [20:15:22]Sock 7.Check first char [20:15:22]Sock 7.First char is OK [20:15:22]request: POST /json_proto HTTP/1.0 [20:15:22]Method: POST [20:15:22]URL: /json_proto [20:15:22]Method is POST - this is cgi request [20:15:22]url: /json_proto [20:15:22]query_string will be loaded in cgi processing [20:15:22]execute_cgi json_proto POST (null) [20:15:22]execute_cgi path=json_proto method=POST [20:15:22]POST find Content-Length [20:15:22]Host: 172.17.44.195:8080 [20:15:22]Content-Length: 678 [20:15:22]Content-Type: application/json [20:15:22] [20:15:22]POST finish read [20:15:22]Found Content-Length = 678 [20:15:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963315", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:15:22]execute_script... [20:15:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963315", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:15:22]POST & json_proto [20:15:22]process_json_proto [20:15:22]json parsed OK: [20:15:22]protocol is kg_v1.0 [20:15:22]action value=close_receipt [20:15:22]process_action close_receipt [20:15:22]cmd_close_receipt [20:15:22]MH_GetDate [20:15:22]Write to MH i2c: F0 00 00 13 0A 0C [20:15:22]Write i2c OK [20:15:22]MH_I2C_Read... [20:15:22]Read from MH i2c: F0 [20:15:22]MH_I2C_Read... [20:15:22]Read from MH i2c: F0 09 00 [20:15:22]MH_I2C_Read... [20:15:22]Read from MH i2c: F0 09 00 13 0A 00 DB 64 15 67 82 C9 CF 66 50 [20:15:22]GetLastDocTimeStamp 1729455299 [20:15:22]current date 1729455323 [20:15:22]FM_GetShiftState [20:15:22]SAM_PROTO_GetShiftState [20:15:22]wFMCommunicate request_size=4 [20:15:22]MH_SAM_APDU [20:15:22]CAPDU: 80 13 01 00 [20:15:22]Write to MH i2c: E2 08 00 14 0A 80 13 01 00 00 00 00 00 9B [20:15:22]Write i2c OK [20:15:22]MH_I2C_Read... [20:15:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:15:22]Read from MH i2c: E2 [20:15:22]MH_I2C_Read... [20:15:22]Read from MH i2c: E2 0E 00 [20:15:22]MH_I2C_Read... [20:15:22]Read from MH i2c: E2 0E 00 14 0A 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 B5 [20:15:22]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:15:22]wFMCommunicate OK [20:15:22]SAM_PROTO_GetShiftState done [20:15:22]FM_GetShiftState done [20:15:22]opened in 1729383750 [20:15:22]opened+sec_in_day 1729470150 [20:15:22]quantity*price = 50041 [20:15:22]sum+1 = 50042 [20:15:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 501 20.10.2024 20:15 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227653 ФПД: 83866086036072 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T201523&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227653&fm=83866086036072&tin=02508201610067®Number=0000000000091685&sum=50000 [20:15:23]StoreToDocumentArchive [20:15:23]shift 533 fd 227653 [20:15:23]save to /storage/0533/doc_00227653 [20:15:23]save last doc name /storage/0533/doc_00227653 to /storage/kkm_last_doc_name [20:15:23]save OK [20:15:23]Clear old archive folders... [20:15:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:15:23]tlvbuf is 00C193C0 [20:15:23]SAM_PROTO_ClearQueue [20:15:23]wFMCommunicate request_size=4 [20:15:23]MH_SAM_APDU [20:15:23]CAPDU: 80 09 00 00 [20:15:23]Write to MH i2c: E2 08 00 21 0A 80 09 00 00 00 00 00 00 9D [20:15:23]Write i2c OK [20:15:23]MH_I2C_Read... [20:15:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:15:24]Read from MH i2c: E2 [20:15:24]MH_I2C_Read... [20:15:24]Read from MH i2c: E2 03 00 [20:15:24]MH_I2C_Read... [20:15:24]Read from MH i2c: E2 03 00 21 0A 00 90 00 9F [20:15:24]RAPDU: 90 00 [20:15:24]wFMCommunicate OK [20:15:24]SAM_PROTO_ClearQueue done [20:15:24]KKMCreateOFDPacket [20:15:24]OFDProtocolAddRootSTLVToBuf [20:15:24]FM_MakeSignedData [20:15:24]FM_MakeSignedData [20:15:24]SAM_PROTO_SignData [20:15:24]wFMCommunicate request_size=4 [20:15:24]MH_SAM_APDU [20:15:24]CAPDU: 80 0D 01 02 [20:15:24]Write to MH i2c: E2 08 00 22 0A 80 0D 01 02 00 00 00 00 A5 [20:15:24]Write i2c OK [20:15:24]MH_I2C_Read... [20:15:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:15:24]Read from MH i2c: E2 [20:15:24]MH_I2C_Read... [20:15:24]Read from MH i2c: E2 03 00 [20:15:24]MH_I2C_Read... [20:15:24]Read from MH i2c: E2 03 00 22 0A 00 90 00 A0 [20:15:24]RAPDU: 90 00 [20:15:24]wFMCommunicate OK [20:15:24]wFMCommunicate request_size=255 [20:15:24]MH_SAM_APDU [20:15:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 01 00 00 F4 03 04 00 DB 64 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 45 79 03 00 35 04 06 00 4C [20:15:24]Write to MH i2c: E2 02 01 23 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 01 00 00 F4 03 04 00 DB 64 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 45 79 03 00 35 04 06 00 4C 00 00 11 [20:15:24]Write i2c OK [20:15:24]MH_I2C_Read... [20:15:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:15:24]Read from MH i2c: E2 [20:15:24]MH_I2C_Read... [20:15:24]Read from MH i2c: E2 03 00 [20:15:24]MH_I2C_Read... [20:15:24]Read from MH i2c: E2 03 00 23 0A 00 90 00 A1 [20:15:24]RAPDU: 90 00 [20:15:24]wFMCommunicate OK [20:15:24]wFMCommunicate request_size=10 [20:15:24]MH_SAM_APDU [20:15:24]CAPDU: 80 0D 02 02 05 46 98 44 52 68 [20:15:24]Write to MH i2c: E2 0D 00 24 0A 80 0D 02 02 05 00 46 98 44 52 68 00 00 8E [20:15:24]Write i2c OK [20:15:24]MH_I2C_Read... [20:15:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:15:24]Read from MH i2c: E2 [20:15:24]MH_I2C_Read... [20:15:24]Read from MH i2c: E2 03 00 [20:15:24]MH_I2C_Read... [20:15:24]Read from MH i2c: E2 03 00 24 0A 00 90 00 A2 [20:15:24]RAPDU: 90 00 [20:15:24]wFMCommunicate OK [20:15:24]wFMCommunicate request_size=4 [20:15:24]MH_SAM_APDU [20:15:24]CAPDU: 80 0D 03 02 [20:15:24]Write to MH i2c: E2 08 00 25 0A 80 0D 03 02 00 00 00 00 AA [20:15:24]Write i2c OK [20:15:24]MH_I2C_Read... [20:15:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:15:24]Read from MH i2c: E2 [20:15:24]MH_I2C_Read... [20:15:24]Read from MH i2c: E2 0B 00 [20:15:24]MH_I2C_Read... [20:15:24]Read from MH i2c: E2 0B 00 25 0A 00 F2 B5 01 F1 A1 4F 83 D0 90 00 87 [20:15:24]RAPDU: F2 B5 01 F1 A1 4F 83 D0 90 00 [20:15:24]wFMCommunicate OK [20:15:24]SAM_PROTO_SignData done [20:15:24]FM_MakeSignedData done [20:15:24]CreateOFDProtocolMessage [20:15:24]wFMCommunicate request_size=4 [20:15:24]MH_SAM_APDU [20:15:24]CAPDU: 80 11 00 00 [20:15:24]Write to MH i2c: E2 08 00 26 0A 80 11 00 00 00 00 00 00 AA [20:15:24]Write i2c OK [20:15:24]MH_I2C_Read... [20:15:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:24]Read from MH i2c: E2 [20:15:24]MH_I2C_Read... [20:15:24]Read from MH i2c: E2 17 00 [20:15:24]MH_I2C_Read... [20:15:24]Read from MH i2c: E2 17 00 26 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 01 [20:15:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:15:24]wFMCommunicate OK [20:15:24]CreateOFDProtocolMessage done [20:15:24]OFDSenderStorePacket 227653 [20:15:24]StoreOFDPacket docnum=227653 [20:15:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 9C 42 07 01 8E 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 01 00 00 F4 03 04 00 DB 64 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 45 79 03 00 35 04 06 00 4C 46 98 44 52 68 F2 B5 01 F1 A1 4F 83 D0 [20:15:24]CheckFolder [20:15:24]dirname=/storage/ofd_packets [20:15:24]CheckFolder done [20:15:24]ProducePacketName [20:15:24]name=ofd_packets/00227653 [20:15:24]NVStorageSaveData ofd_packets/00227653 [20:15:24]File name is /storage/ofd_packets/00227653 [20:15:24]Write 301 bytes [20:15:24]NVStorageSaveData done [20:15:24]OFDSenderStorePacket done [20:15:24]KKMCreateOFDPacket done [20:15:24]NVStorageSaveData kkm_last_timestamp [20:15:24]File name is /storage/kkm_last_timestamp [20:15:24]Write 4 bytes [20:15:24]NVStorageSaveData done [20:15:24]ExternCall_PrintAddStr [20:15:24]wPrintStart [20:15:24]Write to MH i2c: 01 00 00 27 0A 31 [20:15:24]Write i2c OK [20:15:24]MH_I2C_Read... [20:15:24]Read from MH i2c: 01 [20:15:24]MH_I2C_Read... [20:15:24]Read from MH i2c: 01 07 00 [20:15:24]MH_I2C_Read... [20:15:24]Read from MH i2c: 01 07 00 27 0A 00 00 00 00 00 FF 0F 46 [20:15:24]RasterBufferAndPrint [20:15:24]line Счет N : (1)1963315 [20:15:24]line ИНН: 02508201610067 [20:15:24]line Контрольно-Кассовый Чек [20:15:24]line ПРОДАЖА [20:15:24]line ТРК (МРК, ГНК) : 53 [20:15:24]line Товар: 2710124130 [20:15:24]line Аи-92-К-5 [20:15:24]line 7.480 * 66.90 [20:15:24]line = 500.41 [20:15:24]line НДС 12% НСП 1% [20:15:24]line > о реализуемом товаре [20:15:24]line ОКРУГЛЕНИЕ: -0.41 [20:15:24]line ИТОГО: 500.00 [20:15:24]line Внесено: 500.00 [20:15:24]line СДАЧА: 0.00 [20:15:24]line НСП 1% : 4.43 [20:15:24]line НДС 12% : 53.14 [20:15:24]line Наличными: 500.00 [20:15:24]line Безнал.: 0.00 [20:15:24]line Место: АЗС № 133 "Партнер Нефть" [20:15:24]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [20:15:24]line СНО: Общий режим [20:15:24]line Чек 501 20.10.2024 20:15 [20:15:24]line Смена: 533 ФФД: 1.0 [20:15:24]line ЗНМ: 0300000091 [20:15:24]line РНМ: 0000000000091685 [20:15:24]line Версия ККМ: 001 [20:15:24]line ФМ: 0000000000871839 [20:15:24]line ФД: 227653 [20:15:24]line ФПД: 83866086036072 [20:15:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T201523&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227653&fm=83866086036072&tin=02508201610067®Number=0000000000091685&sum=50000 [20:15:24]OFD Sender: Processing packet 227653 [packets to send 38, broken 37] [20:15:24]ProducePacketName [20:15:24]name=ofd_packets/00227653 [20:15:24]OFD Sender: To server: pG, [20:15:24]CommunicateWithHost lk.salyk.kg:30040 [20:15:24]ConnectInit lk.salyk.kg [20:15:24]written 0, free lines is 4095 [20:15:24]Connected sock=10 [20:15:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 9C 42 07 01 8E 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 01 00 00 F4 03 04 00 DB 64 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 45 79 03 00 35 04 06 00 4C 46 98 44 52 68 F2 B5 01 F1 A1 4F 83 D0 [20:15:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 99 8E 47 00 72 FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 45 79 03 00 F4 03 04 00 D9 0F 15 67 B6 04 01 00 00 FD 7D AC D9 23 14 FA 54 [20:15:25]CommunicateWithHost err = 0 [20:15:25]CheckOFDResponse [20:15:25]1017 (14) - 77093643461234 [20:15:25]1041 (16) - 0000000000871839 [20:15:25]1040 (4) - 227653 [20:15:25]1012 (4) - 20.10.2024 14:12 [20:15:25]1206 (1) - 0 [20:15:25]OFD Sender: Remove packet 227653 [20:15:25]ProducePacketName [20:15:25]name=ofd_packets/00227653 [20:15:25]NVStorageDeleteData [20:15:25]Write to MH i2c: 01 00 00 51 0A 5B [20:15:25]Write i2c OK [20:15:25]MH_I2C_Read... [20:15:25]Read from MH i2c: 01 [20:15:25]MH_I2C_Read... [20:15:25]Read from MH i2c: 01 07 00 [20:15:25]MH_I2C_Read... [20:15:25]Read from MH i2c: 01 07 00 51 0A 00 00 00 00 00 AD 0C 1B [20:15:25]RasterBufferAndPrint [20:15:25]line [20:15:25]line [20:15:25]line [20:15:25]line [20:15:25]line [20:15:25]written 0, free lines is 3248 [20:15:25]MH_Cut [20:15:25]Write to MH i2c: D1 01 00 58 0A 01 34 [20:15:25]Write i2c OK [20:15:25]MH_I2C_Read... [20:15:25]Read from MH i2c: D1 [20:15:25]MH_I2C_Read... [20:15:25]Read from MH i2c: D1 01 00 [20:15:25]MH_I2C_Read... [20:15:25]Read from MH i2c: D1 01 00 58 0A 00 33 [20:15:25]Write to MH i2c: 01 00 00 59 0A 63 [20:15:25]Write i2c OK [20:15:25]MH_I2C_Read... [20:15:25]OFD Sender: No OFD packet to send [20:15:26]*** Cut start [20:15:26]*** Partial cut [20:15:26]*** CUTSNS_PIN = 1 [20:15:26]*** CUTSNS_PIN = 0 [20:15:26]*** Brake cut motor [20:15:26]Read from MH i2c: 01 [20:15:26]MH_I2C_Read... [20:15:26]*** Stop cut motor [20:15:26]*** Cut end [20:15:26]Read from MH i2c: 01 07 00 [20:15:26]MH_I2C_Read... [20:15:26]Read from MH i2c: 01 07 00 59 0A 00 00 00 00 00 FF 0F 78 [20:15:26]process_action close_receipt done [20:15:26]requested_data is exist [20:15:26]produce_requested_data [20:15:26]requested_item fm.sn is exist - process it [20:15:26]wFMCommunicate request_size=4 [20:15:26]MH_SAM_APDU [20:15:26]CAPDU: 80 11 00 00 [20:15:26]Write to MH i2c: E2 08 00 5A 0A 80 11 00 00 00 00 00 00 DE [20:15:26]Write i2c OK [20:15:26]MH_I2C_Read... [20:15:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:26]Read from MH i2c: E2 [20:15:26]MH_I2C_Read... [20:15:26]Read from MH i2c: E2 17 00 [20:15:26]MH_I2C_Read... [20:15:26]Read from MH i2c: E2 17 00 5A 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 35 [20:15:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:15:26]wFMCommunicate OK [20:15:26]requested_item fd.num is exist - process it [20:15:26]SAM_PROTO_GetFieldsCounters [20:15:26]wFMCommunicate request_size=4 [20:15:26]MH_SAM_APDU [20:15:26]CAPDU: 80 13 00 00 [20:15:26]Write to MH i2c: E2 08 00 5B 0A 80 13 00 00 00 00 00 00 E1 [20:15:26]Write i2c OK [20:15:26]MH_I2C_Read... [20:15:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:15:27]Read from MH i2c: E2 [20:15:27]MH_I2C_Read... [20:15:27]Read from MH i2c: E2 62 00 [20:15:27]MH_I2C_Read... [20:15:27]Read from MH i2c: E2 62 00 5B 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 45 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 F5 01 00 00 5E 04 04 00 F5 01 00 00 57 04 04 00 F6 01 00 00 19 04 04 00 00 00 00 00 90 00 C4 [20:15: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 45 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 F5 01 00 00 5E 04 04 00 F5 01 00 00 57 04 04 00 F6 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:15:27]wFMCommunicate OK [20:15:27]SAM_PROTO_GetFieldsCounters done [20:15:27]requested_item shift.num is exist - process it [20:15:27]requested_item shift.opened is exist - process it [20:15:27]req_shift_opened [20:15:27]FM_GetShiftState [20:15:27]SAM_PROTO_GetShiftState [20:15:27]wFMCommunicate request_size=4 [20:15:27]MH_SAM_APDU [20:15:27]CAPDU: 80 13 01 00 [20:15:27]Write to MH i2c: E2 08 00 5C 0A 80 13 01 00 00 00 00 00 E3 [20:15:27]Write i2c OK [20:15:27]MH_I2C_Read... [20:15:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:15:27]Read from MH i2c: E2 [20:15:27]MH_I2C_Read... [20:15:27]Read from MH i2c: E2 0E 00 [20:15:27]MH_I2C_Read... [20:15:27]Read from MH i2c: E2 0E 00 5C 0A 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 FD [20:15:27]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:15:27]wFMCommunicate OK [20:15:27]SAM_PROTO_GetShiftState done [20:15:27]FM_GetShiftState done [20:15:27]req_shift_opened done [20:15:27]requested_item shift.open_date is exist - process it [20:15:27]req_shift_open_date [20:15:27]req_shift_open_date done [20:15:27]produce_requested_data done [20:15:27]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227653,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [20:15:27]process_action_free close_receipt [20:15:27]json_value_free [20:15:27]json_value_free done [20:15:27]process_json_proto returns [20:15:27]Send response to host [20:15:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227653,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [20:15:27]free response buf [20:15:27]execute_script done [20:15:27]execute_script returns [20:15:27]free content buf [20:15:27]Sock 7.Close socket [20:15:27]Sock 7.Thread stoped [20:15:30]OFD Sender: No OFD packet to send [20:15:35]OFD Sender: No OFD packet to send [20:15:40]OFD Sender: No OFD packet to send [20:15:45]OFD Sender: No OFD packet to send [20:15:50]OFD Sender: No OFD packet to send [20:15:55]OFD Sender: No OFD packet to send [20:16:00]OFD Sender: No OFD packet to send [20:16:05]OFD Sender: No OFD packet to send [20:16:10]OFD Sender: No OFD packet to send [20:16:15]OFD Sender: No OFD packet to send [20:16:20]OFD Sender: No OFD packet to send [20:16:25]OFD Sender: No OFD packet to send [20:16:30]accept exits with 9 [20:16:30]New connection [20:16:30]New thread 3066809700 created [20:16:30]Thread 3066666340 joined [20:16:30]Waiting for new connection... [20:16:30] Sock 9.Parse request [20:16:30]Sock 9.Check first char [20:16:30]Sock 9.First char is OK [20:16:30]request: POST /json_proto HTTP/1.0 [20:16:30]Method: POST [20:16:30]URL: /json_proto [20:16:30]Method is POST - this is cgi request [20:16:30]url: /json_proto [20:16:30]query_string will be loaded in cgi processing [20:16:30]execute_cgi json_proto POST (null) [20:16:30]execute_cgi path=json_proto method=POST [20:16:30]POST find Content-Length [20:16:30]Host: 172.17.44.195:8080 [20:16:30]Content-Length: 678 [20:16:30]Content-Type: application/json [20:16:30] [20:16:30]POST finish read [20:16:30]Found Content-Length = 678 [20:16:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963316", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:16:30]execute_script... [20:16:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963316", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:16:30]POST & json_proto [20:16:30]process_json_proto [20:16:30]json parsed OK: [20:16:30]protocol is kg_v1.0 [20:16:30]action value=close_receipt [20:16:30]process_action close_receipt [20:16:30]cmd_close_receipt [20:16:30]MH_GetDate [20:16:30]Write to MH i2c: F0 00 00 5D 0A 56 [20:16:30]Write i2c OK [20:16:30]MH_I2C_Read... [20:16:30]Read from MH i2c: F0 [20:16:30]MH_I2C_Read... [20:16:30]Read from MH i2c: F0 09 00 [20:16:30]MH_I2C_Read... [20:16:30]Read from MH i2c: F0 09 00 5D 0A 00 1F 65 15 67 82 C9 CF 66 DF [20:16:30]GetLastDocTimeStamp 1729455323 [20:16:30]current date 1729455391 [20:16:30]FM_GetShiftState [20:16:30]SAM_PROTO_GetShiftState [20:16:30]wFMCommunicate request_size=4 [20:16:30]MH_SAM_APDU [20:16:30]CAPDU: 80 13 01 00 [20:16:30]Write to MH i2c: E2 08 00 5E 0A 80 13 01 00 00 00 00 00 E5 [20:16:30]Write i2c OK [20:16:30]MH_I2C_Read... [20:16:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:16:30]Read from MH i2c: E2 [20:16:30]MH_I2C_Read... [20:16:30]Read from MH i2c: E2 0E 00 [20:16:30]MH_I2C_Read... [20:16:30]Read from MH i2c: E2 0E 00 5E 0A 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 FF [20:16:30]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:16:30]wFMCommunicate OK [20:16:30]SAM_PROTO_GetShiftState done [20:16:30]FM_GetShiftState done [20:16:30]opened in 1729383750 [20:16:30]opened+sec_in_day 1729470150 [20:16:30]quantity*price = 60009 [20:16:30]sum+1 = 60010 [20:16:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 502 20.10.2024 20:16 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227654 ФПД: 280569800649892 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T201631&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227654&fm=280569800649892&tin=02508201610067®Number=0000000000091685&sum=60000 [20:16:31]StoreToDocumentArchive [20:16:31]shift 533 fd 227654 [20:16:31]save to /storage/0533/doc_00227654 [20:16:31]save last doc name /storage/0533/doc_00227654 to /storage/kkm_last_doc_name [20:16:31]save OK [20:16:31]Clear old archive folders... [20:16:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:16:31]tlvbuf is 00C2EFB0 [20:16:31]SAM_PROTO_ClearQueue [20:16:31]wFMCommunicate request_size=4 [20:16:31]MH_SAM_APDU [20:16:31]CAPDU: 80 09 00 00 [20:16:31]Write to MH i2c: E2 08 00 6B 0A 80 09 00 00 00 00 00 00 E7 [20:16:31]Write i2c OK [20:16:31]MH_I2C_Read... [20:16:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:16:31]Read from MH i2c: E2 [20:16:31]MH_I2C_Read... [20:16:31]Read from MH i2c: E2 03 00 [20:16:31]MH_I2C_Read... [20:16:31]Read from MH i2c: E2 03 00 6B 0A 00 90 00 E9 [20:16:31]RAPDU: 90 00 [20:16:31]wFMCommunicate OK [20:16:31]SAM_PROTO_ClearQueue done [20:16:31]KKMCreateOFDPacket [20:16:31]OFDProtocolAddRootSTLVToBuf [20:16:31]FM_MakeSignedData [20:16:31]FM_MakeSignedData [20:16:31]SAM_PROTO_SignData [20:16:31]wFMCommunicate request_size=4 [20:16:31]MH_SAM_APDU [20:16:31]CAPDU: 80 0D 01 02 [20:16:31]Write to MH i2c: E2 08 00 6C 0A 80 0D 01 02 00 00 00 00 EF [20:16:31]Write i2c OK [20:16:31]MH_I2C_Read... [20:16:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:16:31]Read from MH i2c: E2 [20:16:31]MH_I2C_Read... [20:16:31]Read from MH i2c: E2 03 00 [20:16:31]MH_I2C_Read... [20:16:31]Read from MH i2c: E2 03 00 6C 0A 00 90 00 EA [20:16:31]RAPDU: 90 00 [20:16:31]wFMCommunicate OK [20:16:31]wFMCommunicate request_size=255 [20:16:31]MH_SAM_APDU [20:16:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 01 00 00 F4 03 04 00 1F 65 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 46 79 03 00 35 04 06 00 FF [20:16:31]Write to MH i2c: E2 02 01 6D 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 01 00 00 F4 03 04 00 1F 65 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 46 79 03 00 35 04 06 00 FF 00 00 32 [20:16:31]Write i2c OK [20:16:31]MH_I2C_Read... [20:16:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:16:31]Read from MH i2c: E2 [20:16:31]MH_I2C_Read... [20:16:31]Read from MH i2c: E2 03 00 [20:16:31]MH_I2C_Read... [20:16:31]Read from MH i2c: E2 03 00 6D 0A 00 90 00 EB [20:16:31]RAPDU: 90 00 [20:16:31]wFMCommunicate OK [20:16:31]wFMCommunicate request_size=10 [20:16:31]MH_SAM_APDU [20:16:31]CAPDU: 80 0D 02 02 05 2D 3F 4D 6C A4 [20:16:31]Write to MH i2c: E2 0D 00 6E 0A 80 0D 02 02 05 00 2D 3F 4D 6C A4 00 00 C5 [20:16:31]Write i2c OK [20:16:31]MH_I2C_Read... [20:16:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:16:31]Read from MH i2c: E2 [20:16:31]MH_I2C_Read... [20:16:31]Read from MH i2c: E2 03 00 [20:16:31]MH_I2C_Read... [20:16:31]Read from MH i2c: E2 03 00 6E 0A 00 90 00 EC [20:16:31]RAPDU: 90 00 [20:16:31]wFMCommunicate OK [20:16:31]wFMCommunicate request_size=4 [20:16:31]MH_SAM_APDU [20:16:31]CAPDU: 80 0D 03 02 [20:16:31]Write to MH i2c: E2 08 00 6F 0A 80 0D 03 02 00 00 00 00 F4 [20:16:31]Write i2c OK [20:16:31]MH_I2C_Read... [20:16:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:16:31]Read from MH i2c: E2 [20:16:31]MH_I2C_Read... [20:16:31]Read from MH i2c: E2 0B 00 [20:16:31]MH_I2C_Read... [20:16:31]Read from MH i2c: E2 0B 00 6F 0A 00 2F 30 2F 4B 33 8A F9 06 90 00 8A [20:16:31]RAPDU: 2F 30 2F 4B 33 8A F9 06 90 00 [20:16:31]wFMCommunicate OK [20:16:31]SAM_PROTO_SignData done [20:16:31]FM_MakeSignedData done [20:16:31]CreateOFDProtocolMessage [20:16:31]wFMCommunicate request_size=4 [20:16:31]MH_SAM_APDU [20:16:31]CAPDU: 80 11 00 00 [20:16:31]Write to MH i2c: E2 08 00 70 0A 80 11 00 00 00 00 00 00 F4 [20:16:31]Write i2c OK [20:16:31]MH_I2C_Read... [20:16:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:16:31]Read from MH i2c: E2 [20:16:31]MH_I2C_Read... [20:16:31]Read from MH i2c: E2 17 00 [20:16:31]MH_I2C_Read... [20:16:31]Read from MH i2c: E2 17 00 70 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 4B [20:16:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:16:31]wFMCommunicate OK [20:16:31]CreateOFDProtocolMessage done [20:16:31]OFDSenderStorePacket 227654 [20:16:31]StoreOFDPacket docnum=227654 [20:16:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 16 08 07 01 8B 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 01 00 00 F4 03 04 00 1F 65 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 46 79 03 00 35 04 06 00 FF 2D 3F 4D 6C A4 2F 30 2F 4B 33 8A F9 06 [20:16:31]CheckFolder [20:16:31]dirname=/storage/ofd_packets [20:16:31]CheckFolder done [20:16:31]ProducePacketName [20:16:31]name=ofd_packets/00227654 [20:16:31]NVStorageSaveData ofd_packets/00227654 [20:16:31]File name is /storage/ofd_packets/00227654 [20:16:31]Write 301 bytes [20:16:31]NVStorageSaveData done [20:16:31]OFDSenderStorePacket done [20:16:31]KKMCreateOFDPacket done [20:16:31]NVStorageSaveData kkm_last_timestamp [20:16:31]File name is /storage/kkm_last_timestamp [20:16:31]Write 4 bytes [20:16:31]NVStorageSaveData done [20:16:31]ExternCall_PrintAddStr [20:16:31]wPrintStart [20:16:31]Write to MH i2c: 01 00 00 71 0A 7B [20:16:31]Write i2c OK [20:16:31]MH_I2C_Read... [20:16:31]Read from MH i2c: 01 [20:16:31]MH_I2C_Read... [20:16:31]Read from MH i2c: 01 07 00 [20:16:31]MH_I2C_Read... [20:16:31]Read from MH i2c: 01 07 00 71 0A 00 00 00 00 00 FF 0F 90 [20:16:31]RasterBufferAndPrint [20:16:31]line Счет N : (1)1963316 [20:16:31]line ИНН: 02508201610067 [20:16:31]line Контрольно-Кассовый Чек [20:16:31]line ПРОДАЖА [20:16:31]line ТРК (МРК, ГНК) : 33 [20:16:31]line Товар: 2710124130 [20:16:31]line Аи-92-К-5 [20:16:31]line 8.970 * 66.90 [20:16:31]line = 600.09 [20:16:31]line НДС 12% НСП 1% [20:16:31]line > о реализуемом товаре [20:16:31]line ОКРУГЛЕНИЕ: -0.09 [20:16:31]line ИТОГО: 600.00 [20:16:31]line Внесено: 600.00 [20:16:31]line СДАЧА: 0.00 [20:16:31]line НСП 1% : 5.31 [20:16:31]line НДС 12% : 63.73 [20:16:31]line Наличными: 600.00 [20:16:31]line Безнал.: 0.00 [20:16:31]line Место: АЗС № 133 "Партнер Нефть" [20:16:31]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [20:16:31]line СНО: Общий режим [20:16:31]line Чек 502 20.10.2024 20:16 [20:16:31]line Смена: 533 ФФД: 1.0 [20:16:31]line ЗНМ: 0300000091 [20:16:31]line РНМ: 0000000000091685 [20:16:31]line Версия ККМ: 001 [20:16:31]line ФМ: 0000000000871839 [20:16:31]line ФД: 227654 [20:16:31]line ФПД: 280569800649892 [20:16:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T201631&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227654&fm=280569800649892&tin=02508201610067®Number=0000000000091685&sum=60000 [20:16:32]OFD Sender: Processing packet 227654 [packets to send 38, broken 37] [20:16:32]ProducePacketName [20:16:32]name=ofd_packets/00227654 [20:16:32]OFD Sender: To server: pG, [20:16:32]CommunicateWithHost lk.salyk.kg:30040 [20:16:32]ConnectInit lk.salyk.kg [20:16:32]written 0, free lines is 4095 [20:16:32]Connected sock=11 [20:16:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 16 08 07 01 8B 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 01 00 00 F4 03 04 00 1F 65 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 46 79 03 00 35 04 06 00 FF 2D 3F 4D 6C A4 2F 30 2F 4B 33 8A F9 06 [20:16: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 33 39 4F 00 00 00 FD 16 47 00 56 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 33 39 10 04 04 00 46 79 03 00 F4 03 04 00 1D 10 15 67 B6 04 01 00 00 AE E5 9E E6 3D 79 B9 AA [20:16:32]CommunicateWithHost err = 0 [20:16:32]CheckOFDResponse [20:16:32]1017 (14) - 77093643461234 [20:16:32]1041 (16) - 0000000000871839 [20:16:32]1040 (4) - 227654 [20:16:32]1012 (4) - 20.10.2024 14:13 [20:16:32]1206 (1) - 0 [20:16:32]OFD Sender: Remove packet 227654 [20:16:32]ProducePacketName [20:16:32]name=ofd_packets/00227654 [20:16:32]NVStorageDeleteData [20:16:32]Write to MH i2c: 01 00 00 9B 0A A5 [20:16:32]Write i2c OK [20:16:32]MH_I2C_Read... [20:16:32]Read from MH i2c: 01 [20:16:32]MH_I2C_Read... [20:16:32]Read from MH i2c: 01 07 00 [20:16:32]MH_I2C_Read... [20:16:32]Read from MH i2c: 01 07 00 9B 0A 00 00 00 00 00 B2 0C 6A [20:16:32]RasterBufferAndPrint [20:16:32]line [20:16:32]line [20:16:32]line [20:16:32]line [20:16:32]line [20:16:32]written 0, free lines is 3254 [20:16:32]MH_Cut [20:16:32]Write to MH i2c: D1 01 00 A2 0A 01 7E [20:16:32]Write i2c OK [20:16:32]MH_I2C_Read... [20:16:32]Read from MH i2c: D1 [20:16:32]MH_I2C_Read... [20:16:32]Read from MH i2c: D1 01 00 [20:16:32]MH_I2C_Read... [20:16:32]Read from MH i2c: D1 01 00 A2 0A 00 7D [20:16:32]Write to MH i2c: 01 00 00 A3 0A AD [20:16:32]Write i2c OK [20:16:32]MH_I2C_Read... [20:16:33]OFD Sender: No OFD packet to send [20:16:33]*** Cut start [20:16:33]*** Partial cut [20:16:33]*** CUTSNS_PIN = 1 [20:16:33]*** CUTSNS_PIN = 0 [20:16:33]*** Brake cut motor [20:16:34]Read from MH i2c: 01 [20:16:34]MH_I2C_Read... [20:16:34]*** Stop cut motor [20:16:34]*** Cut end [20:16:34]Read from MH i2c: 01 07 00 [20:16:34]MH_I2C_Read... [20:16:34]Read from MH i2c: 01 07 00 A3 0A 00 00 00 00 00 FF 0F C2 [20:16:34]process_action close_receipt done [20:16:34]requested_data is exist [20:16:34]produce_requested_data [20:16:34]requested_item fm.sn is exist - process it [20:16:34]wFMCommunicate request_size=4 [20:16:34]MH_SAM_APDU [20:16:34]CAPDU: 80 11 00 00 [20:16:34]Write to MH i2c: E2 08 00 A4 0A 80 11 00 00 00 00 00 00 28 [20:16:34]Write i2c OK [20:16:34]MH_I2C_Read... [20:16:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:16:34]Read from MH i2c: E2 [20:16:34]MH_I2C_Read... [20:16:34]Read from MH i2c: E2 17 00 [20:16:34]MH_I2C_Read... [20:16:34]Read from MH i2c: E2 17 00 A4 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 7F [20:16:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:16:34]wFMCommunicate OK [20:16:34]requested_item fd.num is exist - process it [20:16:34]SAM_PROTO_GetFieldsCounters [20:16:34]wFMCommunicate request_size=4 [20:16:34]MH_SAM_APDU [20:16:34]CAPDU: 80 13 00 00 [20:16:34]Write to MH i2c: E2 08 00 A5 0A 80 13 00 00 00 00 00 00 2B [20:16:34]Write i2c OK [20:16:34]MH_I2C_Read... [20:16:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:16:34]Read from MH i2c: E2 [20:16:34]MH_I2C_Read... [20:16:34]Read from MH i2c: E2 62 00 [20:16:34]MH_I2C_Read... [20:16:34]Read from MH i2c: E2 62 00 A5 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 46 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 F6 01 00 00 5E 04 04 00 F6 01 00 00 57 04 04 00 F7 01 00 00 19 04 04 00 00 00 00 00 90 00 12 [20:16:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 46 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 F6 01 00 00 5E 04 04 00 F6 01 00 00 57 04 04 00 F7 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:16:34]wFMCommunicate OK [20:16:34]SAM_PROTO_GetFieldsCounters done [20:16:34]requested_item shift.num is exist - process it [20:16:34]requested_item shift.opened is exist - process it [20:16:34]req_shift_opened [20:16:34]FM_GetShiftState [20:16:34]SAM_PROTO_GetShiftState [20:16:34]wFMCommunicate request_size=4 [20:16:34]MH_SAM_APDU [20:16:34]CAPDU: 80 13 01 00 [20:16:34]Write to MH i2c: E2 08 00 A6 0A 80 13 01 00 00 00 00 00 2D [20:16:34]Write i2c OK [20:16:34]MH_I2C_Read... [20:16:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:16:34]Read from MH i2c: E2 [20:16:34]MH_I2C_Read... [20:16:34]Read from MH i2c: E2 0E 00 [20:16:34]MH_I2C_Read... [20:16:34]Read from MH i2c: E2 0E 00 A6 0A 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 47 [20:16:34]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:16:34]wFMCommunicate OK [20:16:34]SAM_PROTO_GetShiftState done [20:16:34]FM_GetShiftState done [20:16:34]req_shift_opened done [20:16:34]requested_item shift.open_date is exist - process it [20:16:34]req_shift_open_date [20:16:34]req_shift_open_date done [20:16:34]produce_requested_data done [20:16:34]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227654,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [20:16:34]process_action_free close_receipt [20:16:34]json_value_free [20:16:34]json_value_free done [20:16:34]process_json_proto returns [20:16:34]Send response to host [20:16:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227654,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [20:16:34]free response buf [20:16:34]execute_script done [20:16:34]execute_script returns [20:16:34]free content buf [20:16:34]Sock 9.Close socket [20:16:34]Sock 9.Thread stoped [20:16:38]OFD Sender: No OFD packet to send [20:16:43]OFD Sender: No OFD packet to send [20:16:44]accept exits with 7 [20:16:44]New connection [20:16:44]New thread 3066666340 created [20:16:44]Thread 3066809700 joined [20:16:44]Waiting for new connection... [20:16:44] Sock 7.Parse request [20:16:44]Sock 7.Check first char [20:16:44]Sock 7.First char is OK [20:16:44]request: POST /json_proto HTTP/1.0 [20:16:44]Method: POST [20:16:44]URL: /json_proto [20:16:44]Method is POST - this is cgi request [20:16:44]url: /json_proto [20:16:44]query_string will be loaded in cgi processing [20:16:44]execute_cgi json_proto POST (null) [20:16:44]execute_cgi path=json_proto method=POST [20:16:44]POST find Content-Length [20:16:44]Host: 172.17.44.195:8080 [20:16:44]Content-Length: 680 [20:16:44]Content-Type: application/json [20:16:44] [20:16:44]POST finish read [20:16:44]Found Content-Length = 680 [20:16:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963317", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 24.270, "sum" : 1849.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1849.00, "total" : 1849.00, "payments": [ { "type": 0, "sum" : 1849.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:16:44]execute_script... [20:16: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)1963317", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 24.270, "sum" : 1849.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1849.00, "total" : 1849.00, "payments": [ { "type": 0, "sum" : 1849.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:16:44]POST & json_proto [20:16:44]process_json_proto [20:16:44]json parsed OK: [20:16:44]protocol is kg_v1.0 [20:16:44]action value=close_receipt [20:16:44]process_action close_receipt [20:16:44]cmd_close_receipt [20:16:44]MH_GetDate [20:16:44]Write to MH i2c: F0 00 00 A7 0A A0 [20:16:44]Write i2c OK [20:16:44]MH_I2C_Read... [20:16:44]Read from MH i2c: F0 [20:16:44]MH_I2C_Read... [20:16:44]Read from MH i2c: F0 09 00 [20:16:44]MH_I2C_Read... [20:16:44]Read from MH i2c: F0 09 00 A7 0A 00 2D 65 15 67 82 C9 CF 66 37 [20:16:44]GetLastDocTimeStamp 1729455391 [20:16:44]current date 1729455405 [20:16:44]FM_GetShiftState [20:16:44]SAM_PROTO_GetShiftState [20:16:44]wFMCommunicate request_size=4 [20:16:44]MH_SAM_APDU [20:16:44]CAPDU: 80 13 01 00 [20:16:44]Write to MH i2c: E2 08 00 A8 0A 80 13 01 00 00 00 00 00 2F [20:16:44]Write i2c OK [20:16:44]MH_I2C_Read... [20:16:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:16:44]Read from MH i2c: E2 [20:16:44]MH_I2C_Read... [20:16:44]Read from MH i2c: E2 0E 00 [20:16:44]MH_I2C_Read... [20:16:44]Read from MH i2c: E2 0E 00 A8 0A 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 49 [20:16:44]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:16:44]wFMCommunicate OK [20:16:44]SAM_PROTO_GetShiftState done [20:16:44]FM_GetShiftState done [20:16:44]opened in 1729383750 [20:16:44]opened+sec_in_day 1729470150 [20:16:44]quantity*price = 184937 [20:16:44]sum+1 = 184938 [20:16:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 1849.00 Внесено: 1849.00 СДАЧА: 0.00 НСП 1% : 16.37 НДС 12% : 196.39 Наличными: 1849.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 503 20.10.2024 20:16 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227655 ФПД: 23579872741578 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T201645&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227655&fm=23579872741578&tin=02508201610067®Number=0000000000091685&sum=184900 [20:16:46]StoreToDocumentArchive [20:16:46]shift 533 fd 227655 [20:16:46]save to /storage/0533/doc_00227655 [20:16:46]save last doc name /storage/0533/doc_00227655 to /storage/kkm_last_doc_name [20:16:46]save OK [20:16:46]Clear old archive folders... [20:16:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:16:46]tlvbuf is 00C2F360 [20:16:46]SAM_PROTO_ClearQueue [20:16:46]wFMCommunicate request_size=4 [20:16:46]MH_SAM_APDU [20:16:46]CAPDU: 80 09 00 00 [20:16:46]Write to MH i2c: E2 08 00 B5 0A 80 09 00 00 00 00 00 00 31 [20:16:46]Write i2c OK [20:16:46]MH_I2C_Read... [20:16:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:16:46]Read from MH i2c: E2 [20:16:46]MH_I2C_Read... [20:16:46]Read from MH i2c: E2 03 00 [20:16:46]MH_I2C_Read... [20:16:46]Read from MH i2c: E2 03 00 B5 0A 00 90 00 33 [20:16:46]RAPDU: 90 00 [20:16:46]wFMCommunicate OK [20:16:46]SAM_PROTO_ClearQueue done [20:16:46]KKMCreateOFDPacket [20:16:46]OFDProtocolAddRootSTLVToBuf [20:16:46]FM_MakeSignedData [20:16:46]FM_MakeSignedData [20:16:46]SAM_PROTO_SignData [20:16:46]wFMCommunicate request_size=4 [20:16:46]MH_SAM_APDU [20:16:46]CAPDU: 80 0D 01 02 [20:16:46]Write to MH i2c: E2 08 00 B6 0A 80 0D 01 02 00 00 00 00 39 [20:16:46]Write i2c OK [20:16:46]MH_I2C_Read... [20:16:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:16:46]Read from MH i2c: E2 [20:16:46]MH_I2C_Read... [20:16:46]Read from MH i2c: E2 03 00 [20:16:46]MH_I2C_Read... [20:16:46]Read from MH i2c: E2 03 00 B6 0A 00 90 00 34 [20:16:46]RAPDU: 90 00 [20:16:46]wFMCommunicate OK [20:16:46]wFMCommunicate request_size=255 [20:16:46]MH_SAM_APDU [20:16:46]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CE 5E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 69 D2 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 D2 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 4C 00 00 00 00 07 04 06 00 44 D2 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 01 00 00 F4 03 04 00 2D 65 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 47 79 03 00 35 04 06 00 15 72 1D F0 [20:16:46]Write to MH i2c: E2 02 01 B7 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 CE 5E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 69 D2 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 D2 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 4C 00 00 00 00 07 04 06 00 44 D2 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 01 00 00 F4 03 04 00 2D 65 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 47 79 03 00 35 04 06 00 15 72 1D F0 00 00 FA [20:16:46]Write i2c OK [20:16:46]MH_I2C_Read... [20:16:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:16:46]Read from MH i2c: E2 [20:16:46]MH_I2C_Read... [20:16:46]Read from MH i2c: E2 03 00 [20:16:46]MH_I2C_Read... [20:16:46]Read from MH i2c: E2 03 00 B7 0A 00 90 00 35 [20:16:46]RAPDU: 90 00 [20:16:46]wFMCommunicate OK [20:16:46]wFMCommunicate request_size=7 [20:16:46]MH_SAM_APDU [20:16:46]CAPDU: 80 0D 02 02 02 48 CA [20:16:46]Write to MH i2c: E2 0A 00 B8 0A 80 0D 02 02 02 00 48 CA 00 00 52 [20:16:46]Write i2c OK [20:16:46]MH_I2C_Read... [20:16:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:16:46]Read from MH i2c: E2 [20:16:46]MH_I2C_Read... [20:16:46]Read from MH i2c: E2 03 00 [20:16:46]MH_I2C_Read... [20:16:46]Read from MH i2c: E2 03 00 B8 0A 00 90 00 36 [20:16:46]RAPDU: 90 00 [20:16:46]wFMCommunicate OK [20:16:46]wFMCommunicate request_size=4 [20:16:46]MH_SAM_APDU [20:16:46]CAPDU: 80 0D 03 02 [20:16:46]Write to MH i2c: E2 08 00 B9 0A 80 0D 03 02 00 00 00 00 3E [20:16:46]Write i2c OK [20:16:46]MH_I2C_Read... [20:16:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:16:46]Read from MH i2c: E2 [20:16:46]MH_I2C_Read... [20:16:46]Read from MH i2c: E2 0B 00 [20:16:46]MH_I2C_Read... [20:16:46]Read from MH i2c: E2 0B 00 B9 0A 00 E9 2C 56 41 29 EE 90 19 90 00 AB [20:16:46]RAPDU: E9 2C 56 41 29 EE 90 19 90 00 [20:16:46]wFMCommunicate OK [20:16:46]SAM_PROTO_SignData done [20:16:46]FM_MakeSignedData done [20:16:46]CreateOFDProtocolMessage [20:16:46]wFMCommunicate request_size=4 [20:16:46]MH_SAM_APDU [20:16:46]CAPDU: 80 11 00 00 [20:16:46]Write to MH i2c: E2 08 00 BA 0A 80 11 00 00 00 00 00 00 3E [20:16:46]Write i2c OK [20:16:46]MH_I2C_Read... [20:16:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:16:46]Read from MH i2c: E2 [20:16:46]MH_I2C_Read... [20:16:46]Read from MH i2c: E2 17 00 [20:16:46]MH_I2C_Read... [20:16:46]Read from MH i2c: E2 17 00 BA 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 95 [20:16:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:16:46]wFMCommunicate OK [20:16:46]CreateOFDProtocolMessage done [20:16:46]OFDSenderStorePacket 227655 [20:16:46]StoreOFDPacket docnum=227655 [20:16:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 45 54 04 01 CE 9A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CE 5E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 69 D2 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 D2 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 4C 00 00 00 00 07 04 06 00 44 D2 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 01 00 00 F4 03 04 00 2D 65 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 47 79 03 00 35 04 06 00 15 72 1D F0 48 CA E9 2C 56 41 29 EE 90 19 [20:16:46]CheckFolder [20:16:46]dirname=/storage/ofd_packets [20:16:46]CheckFolder done [20:16:46]ProducePacketName [20:16:46]name=ofd_packets/00227655 [20:16:46]NVStorageSaveData ofd_packets/00227655 [20:16:46]File name is /storage/ofd_packets/00227655 [20:16:46]Write 298 bytes [20:16:46]NVStorageSaveData done [20:16:46]OFDSenderStorePacket done [20:16:46]KKMCreateOFDPacket done [20:16:46]NVStorageSaveData kkm_last_timestamp [20:16:46]File name is /storage/kkm_last_timestamp [20:16:46]Write 4 bytes [20:16:46]NVStorageSaveData done [20:16:46]ExternCall_PrintAddStr [20:16:46]wPrintStart [20:16:46]Write to MH i2c: 01 00 00 BB 0A C5 [20:16:46]Write i2c OK [20:16:46]MH_I2C_Read... [20:16:46]Read from MH i2c: 01 [20:16:46]MH_I2C_Read... [20:16:46]Read from MH i2c: 01 07 00 [20:16:46]MH_I2C_Read... [20:16:46]Read from MH i2c: 01 07 00 BB 0A 00 00 00 00 00 FF 0F DA [20:16:46]RasterBufferAndPrint [20:16:46]line Счет N : (1)1963317 [20:16:46]line ИНН: 02508201610067 [20:16:46]line Контрольно-Кассовый Чек [20:16:46]line ПРОДАЖА [20:16:46]line ТРК (МРК, ГНК) : 11 [20:16:46]line Товар: 2710194210 [20:16:46]line ДТ-К-5 [20:16:46]line 24.270 * 76.20 [20:16:46]line = 1849.37 [20:16:46]line НДС 12% НСП 1% [20:16:46]line > о реализуемом товаре [20:16:46]line ОКРУГЛЕНИЕ: -0.37 [20:16:46]line ИТОГО: 1849.00 [20:16:46]line Внесено: 1849.00 [20:16:46]line СДАЧА: 0.00 [20:16:46]line НСП 1% : 16.37 [20:16:46]line НДС 12% : 196.39 [20:16:46]line Наличными: 1849.00 [20:16:46]line Безнал.: 0.00 [20:16:46]line Место: АЗС № 133 "Партнер Нефть" [20:16:46]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [20:16:46]line СНО: Общий режим [20:16:46]line Чек 503 20.10.2024 20:16 [20:16:46]line Смена: 533 ФФД: 1.0 [20:16:46]line ЗНМ: 0300000091 [20:16:46]line РНМ: 0000000000091685 [20:16:46]line Версия ККМ: 001 [20:16:46]line ФМ: 0000000000871839 [20:16:46]line ФД: 227655 [20:16:46]line ФПД: 23579872741578 [20:16:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T201645&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227655&fm=23579872741578&tin=02508201610067®Number=0000000000091685&sum=184900 [20:16:46]OFD Sender: Processing packet 227655 [packets to send 38, broken 37] [20:16:46]ProducePacketName [20:16:46]name=ofd_packets/00227655 [20:16:46]OFD Sender: To server: pG, [20:16:46]CommunicateWithHost lk.salyk.kg:30040 [20:16:46]ConnectInit lk.salyk.kg [20:16:46]written 0, free lines is 4095 [20:16:47]Connected sock=10 [20:16: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 33 39 0C 01 00 00 45 54 04 01 CE 9A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CE 5E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 69 D2 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 D2 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 4C 00 00 00 00 07 04 06 00 44 D2 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 01 00 00 F4 03 04 00 2D 65 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 47 79 03 00 35 04 06 00 15 72 1D F0 48 CA E9 2C 56 41 29 EE 90 19 [20:16: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 33 39 4F 00 00 00 D5 E9 47 00 B7 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 47 79 03 00 F4 03 04 00 2B 10 15 67 B6 04 01 00 00 C7 4E AF D6 E6 D8 03 78 [20:16:47]CommunicateWithHost err = 0 [20:16:47]CheckOFDResponse [20:16:47]1017 (14) - 77093643461234 [20:16:47]1041 (16) - 0000000000871839 [20:16:47]1040 (4) - 227655 [20:16:47]1012 (4) - 20.10.2024 14:14 [20:16:47]1206 (1) - 0 [20:16:47]OFD Sender: Remove packet 227655 [20:16:47]ProducePacketName [20:16:47]name=ofd_packets/00227655 [20:16:47]NVStorageDeleteData [20:16:47]Write to MH i2c: 01 00 00 E5 0A EF [20:16:47]Write i2c OK [20:16:47]MH_I2C_Read... [20:16:47]Read from MH i2c: 01 [20:16:47]MH_I2C_Read... [20:16:47]Read from MH i2c: 01 07 00 [20:16:47]MH_I2C_Read... [20:16:47]Read from MH i2c: 01 07 00 E5 0A 00 00 00 00 00 B1 0C B3 [20:16:47]RasterBufferAndPrint [20:16:47]line [20:16:47]line [20:16:47]line [20:16:47]line [20:16:47]line [20:16:47]written 0, free lines is 3253 [20:16:47]MH_Cut [20:16:47]Write to MH i2c: D1 01 00 EC 0A 01 C8 [20:16:47]Write i2c OK [20:16:47]MH_I2C_Read... [20:16:47]Read from MH i2c: D1 [20:16:47]MH_I2C_Read... [20:16:47]Read from MH i2c: D1 01 00 [20:16:47]MH_I2C_Read... [20:16:47]Read from MH i2c: D1 01 00 EC 0A 00 C7 [20:16:47]Write to MH i2c: 01 00 00 ED 0A F7 [20:16:47]Write i2c OK [20:16:47]MH_I2C_Read... [20:16:47]OFD Sender: No OFD packet to send [20:16:48]*** Cut start [20:16:48]*** Partial cut [20:16:48]*** CUTSNS_PIN = 1 [20:16:48]*** CUTSNS_PIN = 0 [20:16:48]*** Brake cut motor [20:16:48]Read from MH i2c: 01 [20:16:48]MH_I2C_Read... [20:16:48]*** Stop cut motor [20:16:48]*** Cut end [20:16:48]Read from MH i2c: 01 07 00 [20:16:48]MH_I2C_Read... [20:16:48]Read from MH i2c: 01 07 00 ED 0A 00 00 00 00 00 FF 0F 0C [20:16:48]process_action close_receipt done [20:16:48]requested_data is exist [20:16:48]produce_requested_data [20:16:48]requested_item fm.sn is exist - process it [20:16:48]wFMCommunicate request_size=4 [20:16:48]MH_SAM_APDU [20:16:48]CAPDU: 80 11 00 00 [20:16:48]Write to MH i2c: E2 08 00 EE 0A 80 11 00 00 00 00 00 00 72 [20:16:48]Write i2c OK [20:16:48]MH_I2C_Read... [20:16:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:16:48]Read from MH i2c: E2 [20:16:48]MH_I2C_Read... [20:16:48]Read from MH i2c: E2 17 00 [20:16:48]MH_I2C_Read... [20:16:48]Read from MH i2c: E2 17 00 EE 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C9 [20:16:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:16:48]wFMCommunicate OK [20:16:48]requested_item fd.num is exist - process it [20:16:48]SAM_PROTO_GetFieldsCounters [20:16:48]wFMCommunicate request_size=4 [20:16:48]MH_SAM_APDU [20:16:48]CAPDU: 80 13 00 00 [20:16:48]Write to MH i2c: E2 08 00 EF 0A 80 13 00 00 00 00 00 00 75 [20:16:48]Write i2c OK [20:16:48]MH_I2C_Read... [20:16:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:16:49]Read from MH i2c: E2 [20:16:49]MH_I2C_Read... [20:16:49]Read from MH i2c: E2 62 00 [20:16:49]MH_I2C_Read... [20:16:49]Read from MH i2c: E2 62 00 EF 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 47 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 F7 01 00 00 5E 04 04 00 F7 01 00 00 57 04 04 00 F8 01 00 00 19 04 04 00 00 00 00 00 90 00 60 [20:16: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 47 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 F7 01 00 00 5E 04 04 00 F7 01 00 00 57 04 04 00 F8 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:16:49]wFMCommunicate OK [20:16:49]SAM_PROTO_GetFieldsCounters done [20:16:49]requested_item shift.num is exist - process it [20:16:49]requested_item shift.opened is exist - process it [20:16:49]req_shift_opened [20:16:49]FM_GetShiftState [20:16:49]SAM_PROTO_GetShiftState [20:16:49]wFMCommunicate request_size=4 [20:16:49]MH_SAM_APDU [20:16:49]CAPDU: 80 13 01 00 [20:16:49]Write to MH i2c: E2 08 00 F0 0A 80 13 01 00 00 00 00 00 77 [20:16:49]Write i2c OK [20:16:49]MH_I2C_Read... [20:16:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:16:49]Read from MH i2c: E2 [20:16:49]MH_I2C_Read... [20:16:49]Read from MH i2c: E2 0E 00 [20:16:49]MH_I2C_Read... [20:16:49]Read from MH i2c: E2 0E 00 F0 0A 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 91 [20:16:49]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:16:49]wFMCommunicate OK [20:16:49]SAM_PROTO_GetShiftState done [20:16:49]FM_GetShiftState done [20:16:49]req_shift_opened done [20:16:49]requested_item shift.open_date is exist - process it [20:16:49]req_shift_open_date [20:16:49]req_shift_open_date done [20:16:49]produce_requested_data done [20:16:49]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227655,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [20:16:49]process_action_free close_receipt [20:16:49]json_value_free [20:16:49]json_value_free done [20:16:49]process_json_proto returns [20:16:49]Send response to host [20:16:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227655,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [20:16:49]free response buf [20:16:49]execute_script done [20:16:49]execute_script returns [20:16:49]free content buf [20:16:49]Sock 7.Close socket [20:16:49]Sock 7.Thread stoped [20:16:52]OFD Sender: No OFD packet to send [20:16:57]OFD Sender: No OFD packet to send [20:17:02]OFD Sender: No OFD packet to send [20:17:07]OFD Sender: No OFD packet to send [20:17:12]OFD Sender: No OFD packet to send [20:17:17]OFD Sender: No OFD packet to send [20:17:22]OFD Sender: No OFD packet to send [20:17:27]OFD Sender: No OFD packet to send [20:17:32]OFD Sender: No OFD packet to send [20:17:37]OFD Sender: No OFD packet to send [20:17:42]OFD Sender: No OFD packet to send [20:17:47]OFD Sender: No OFD packet to send [20:17:52]OFD Sender: No OFD packet to send [20:17:57]OFD Sender: No OFD packet to send [20:18:02]OFD Sender: No OFD packet to send [20:18:07]OFD Sender: No OFD packet to send [20:18:12]OFD Sender: No OFD packet to send [20:18:17]OFD Sender: No OFD packet to send [20:18:22]OFD Sender: No OFD packet to send [20:18:27]OFD Sender: No OFD packet to send [20:18:32]OFD Sender: No OFD packet to send [20:18:37]accept exits with 9 [20:18:37]New connection [20:18:37]New thread 3066809700 created [20:18:37]Thread 3066666340 joined [20:18:37]Waiting for new connection... [20:18:37] Sock 9.Parse request [20:18:37]Sock 9.Check first char [20:18:37]Sock 9.First char is OK [20:18:37]request: POST /json_proto HTTP/1.0 [20:18:37]Method: POST [20:18:37]URL: /json_proto [20:18:37]Method is POST - this is cgi request [20:18:37]url: /json_proto [20:18:37]query_string will be loaded in cgi processing [20:18:37]execute_cgi json_proto POST (null) [20:18:37]execute_cgi path=json_proto method=POST [20:18:37]POST find Content-Length [20:18:37]Host: 172.17.44.195:8080 [20:18:37]Content-Length: 678 [20:18:37]Content-Type: application/json [20:18:37] [20:18:37]POST finish read [20:18:37]Found Content-Length = 678 [20:18:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963319", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:18:37]execute_script... [20:18: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)1963319", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:18:37]POST & json_proto [20:18:37]process_json_proto [20:18:37]json parsed OK: [20:18:37]protocol is kg_v1.0 [20:18:37]action value=close_receipt [20:18:37]process_action close_receipt [20:18:37]cmd_close_receipt [20:18:37]MH_GetDate [20:18:37]Write to MH i2c: F0 00 00 F1 0A EA [20:18:37]Write i2c OK [20:18:37]MH_I2C_Read... [20:18:37]Read from MH i2c: F0 [20:18:37]MH_I2C_Read... [20:18:37]Read from MH i2c: F0 09 00 [20:18:37]MH_I2C_Read... [20:18:37]Read from MH i2c: F0 09 00 F1 0A 00 9E 65 15 67 82 C9 CF 66 F2 [20:18:37]GetLastDocTimeStamp 1729455405 [20:18:37]current date 1729455518 [20:18:37]FM_GetShiftState [20:18:37]SAM_PROTO_GetShiftState [20:18:37]wFMCommunicate request_size=4 [20:18:37]MH_SAM_APDU [20:18:37]CAPDU: 80 13 01 00 [20:18:37]Write to MH i2c: E2 08 00 F2 0A 80 13 01 00 00 00 00 00 79 [20:18:37]Write i2c OK [20:18:37]MH_I2C_Read... [20:18:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:37]Read from MH i2c: E2 [20:18:37]MH_I2C_Read... [20:18:37]Read from MH i2c: E2 0E 00 [20:18:37]MH_I2C_Read... [20:18:37]Read from MH i2c: E2 0E 00 F2 0A 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 93 [20:18:37]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:18:37]wFMCommunicate OK [20:18:37]SAM_PROTO_GetShiftState done [20:18:37]FM_GetShiftState done [20:18:37]opened in 1729383750 [20:18:37]opened+sec_in_day 1729470150 [20:18:37]quantity*price = 25020 [20:18:37]sum+1 = 25022 [20:18:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 504 20.10.2024 20:18 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227656 ФПД: 266033907762008 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T201838&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227656&fm=266033907762008&tin=02508201610067®Number=0000000000091685&sum=25000 [20:18:38]StoreToDocumentArchive [20:18:38]shift 533 fd 227656 [20:18:38]save to /storage/0533/doc_00227656 [20:18:38]save last doc name /storage/0533/doc_00227656 to /storage/kkm_last_doc_name [20:18:38]save OK [20:18:38]Clear old archive folders... [20:18:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:18:38]tlvbuf is 00C93330 [20:18:38]SAM_PROTO_ClearQueue [20:18:38]wFMCommunicate request_size=4 [20:18:38]MH_SAM_APDU [20:18:38]CAPDU: 80 09 00 00 [20:18:38]Write to MH i2c: E2 08 00 FF 0A 80 09 00 00 00 00 00 00 7B [20:18:38]Write i2c OK [20:18:38]MH_I2C_Read... [20:18:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:18:38]Read from MH i2c: E2 [20:18:38]MH_I2C_Read... [20:18:38]Read from MH i2c: E2 03 00 [20:18:38]MH_I2C_Read... [20:18:38]Read from MH i2c: E2 03 00 FF 0A 00 90 00 7D [20:18:38]RAPDU: 90 00 [20:18:38]wFMCommunicate OK [20:18:38]SAM_PROTO_ClearQueue done [20:18:38]KKMCreateOFDPacket [20:18:38]OFDProtocolAddRootSTLVToBuf [20:18:38]FM_MakeSignedData [20:18:38]FM_MakeSignedData [20:18:38]SAM_PROTO_SignData [20:18:38]wFMCommunicate request_size=4 [20:18:38]MH_SAM_APDU [20:18:38]CAPDU: 80 0D 01 02 [20:18:38]Write to MH i2c: E2 08 00 00 0B 80 0D 01 02 00 00 00 00 84 [20:18:38]Write i2c OK [20:18:38]MH_I2C_Read... [20:18:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:18:38]Read from MH i2c: E2 [20:18:38]MH_I2C_Read... [20:18:38]Read from MH i2c: E2 03 00 [20:18:38]MH_I2C_Read... [20:18:38]Read from MH i2c: E2 03 00 00 0B 00 90 00 7F [20:18:38]RAPDU: 90 00 [20:18:38]wFMCommunicate OK [20:18:38]wFMCommunicate request_size=255 [20:18:38]MH_SAM_APDU [20:18:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 01 00 00 F4 03 04 00 9E 65 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 48 79 03 00 35 04 06 00 F1 [20:18:38]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 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 01 00 00 F4 03 04 00 9E 65 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 48 79 03 00 35 04 06 00 F1 00 00 38 [20:18:38]Write i2c OK [20:18:38]MH_I2C_Read... [20:18:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:38]Read from MH i2c: E2 [20:18:38]MH_I2C_Read... [20:18:38]Read from MH i2c: E2 03 00 [20:18:38]MH_I2C_Read... [20:18:38]Read from MH i2c: E2 03 00 01 0B 00 90 00 80 [20:18:38]RAPDU: 90 00 [20:18:38]wFMCommunicate OK [20:18:38]wFMCommunicate request_size=10 [20:18:38]MH_SAM_APDU [20:18:38]CAPDU: 80 0D 02 02 05 F4 D8 92 03 58 [20:18:38]Write to MH i2c: E2 0D 00 02 0B 80 0D 02 02 05 00 F4 D8 92 03 58 00 00 4A [20:18:38]Write i2c OK [20:18:38]MH_I2C_Read... [20:18:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:38]Read from MH i2c: E2 [20:18:38]MH_I2C_Read... [20:18:38]Read from MH i2c: E2 03 00 [20:18:38]MH_I2C_Read... [20:18:38]Read from MH i2c: E2 03 00 02 0B 00 90 00 81 [20:18:38]RAPDU: 90 00 [20:18:38]wFMCommunicate OK [20:18:38]wFMCommunicate request_size=4 [20:18:38]MH_SAM_APDU [20:18:38]CAPDU: 80 0D 03 02 [20:18:38]Write to MH i2c: E2 08 00 03 0B 80 0D 03 02 00 00 00 00 89 [20:18:38]Write i2c OK [20:18:38]MH_I2C_Read... [20:18:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:18:38]Read from MH i2c: E2 [20:18:38]MH_I2C_Read... [20:18:38]Read from MH i2c: E2 0B 00 [20:18:38]MH_I2C_Read... [20:18:38]Read from MH i2c: E2 0B 00 03 0B 00 C9 74 3D 59 2F BB 21 AF 90 00 17 [20:18:38]RAPDU: C9 74 3D 59 2F BB 21 AF 90 00 [20:18:38]wFMCommunicate OK [20:18:38]SAM_PROTO_SignData done [20:18:38]FM_MakeSignedData done [20:18:38]CreateOFDProtocolMessage [20:18:38]wFMCommunicate request_size=4 [20:18:38]MH_SAM_APDU [20:18:38]CAPDU: 80 11 00 00 [20:18:38]Write to MH i2c: E2 08 00 04 0B 80 11 00 00 00 00 00 00 89 [20:18:38]Write i2c OK [20:18:38]MH_I2C_Read... [20:18:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:38]Read from MH i2c: E2 [20:18:38]MH_I2C_Read... [20:18:38]Read from MH i2c: E2 17 00 [20:18:38]MH_I2C_Read... [20:18:38]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 33 39 90 00 E0 [20:18:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:18:38]wFMCommunicate OK [20:18:38]CreateOFDProtocolMessage done [20:18:38]OFDSenderStorePacket 227656 [20:18:38]StoreOFDPacket docnum=227656 [20:18:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 8E AF 07 01 30 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 01 00 00 F4 03 04 00 9E 65 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 48 79 03 00 35 04 06 00 F1 F4 D8 92 03 58 C9 74 3D 59 2F BB 21 AF [20:18:38]CheckFolder [20:18:38]dirname=/storage/ofd_packets [20:18:38]CheckFolder done [20:18:38]ProducePacketName [20:18:38]name=ofd_packets/00227656 [20:18:38]NVStorageSaveData ofd_packets/00227656 [20:18:38]File name is /storage/ofd_packets/00227656 [20:18:38]Write 301 bytes [20:18:38]NVStorageSaveData done [20:18:38]OFDSenderStorePacket done [20:18:38]KKMCreateOFDPacket done [20:18:38]NVStorageSaveData kkm_last_timestamp [20:18:38]File name is /storage/kkm_last_timestamp [20:18:38]Write 4 bytes [20:18:38]NVStorageSaveData done [20:18:38]ExternCall_PrintAddStr [20:18:38]wPrintStart [20:18:38]Write to MH i2c: 01 00 00 05 0B 10 [20:18:38]Write i2c OK [20:18:38]MH_I2C_Read... [20:18:38]Read from MH i2c: 01 [20:18:38]MH_I2C_Read... [20:18:38]Read from MH i2c: 01 07 00 [20:18:38]MH_I2C_Read... [20:18:38]Read from MH i2c: 01 07 00 05 0B 00 00 00 00 00 FF 0F 25 [20:18:38]RasterBufferAndPrint [20:18:38]line Счет N : (1)1963319 [20:18:38]line ИНН: 02508201610067 [20:18:38]line Контрольно-Кассовый Чек [20:18:38]line ПРОДАЖА [20:18:38]line ТРК (МРК, ГНК) : 53 [20:18:38]line Товар: 2710124130 [20:18:38]line Аи-92-К-5 [20:18:38]line 3.740 * 66.90 [20:18:38]line = 250.21 [20:18:38]line НДС 12% НСП 1% [20:18:38]line > о реализуемом товаре [20:18:38]line ОКРУГЛЕНИЕ: -0.21 [20:18:38]line ИТОГО: 250.00 [20:18:38]line Внесено: 250.00 [20:18:38]line СДАЧА: 0.00 [20:18:38]line НСП 1% : 2.21 [20:18:38]line НДС 12% : 26.57 [20:18:38]line Наличными: 250.00 [20:18:38]line Безнал.: 0.00 [20:18:38]line Место: АЗС № 133 "Партнер Нефть" [20:18:38]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [20:18:38]line СНО: Общий режим [20:18:38]line Чек 504 20.10.2024 20:18 [20:18:38]line Смена: 533 ФФД: 1.0 [20:18:38]line ЗНМ: 0300000091 [20:18:38]line РНМ: 0000000000091685 [20:18:38]line Версия ККМ: 001 [20:18:38]line ФМ: 0000000000871839 [20:18:38]line ФД: 227656 [20:18:38]line ФПД: 266033907762008 [20:18:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T201838&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227656&fm=266033907762008&tin=02508201610067®Number=0000000000091685&sum=25000 [20:18:39]written 0, free lines is 4095 [20:18:39]OFD Sender: Processing packet 227656 [packets to send 38, broken 37] [20:18:39]ProducePacketName [20:18:39]name=ofd_packets/00227656 [20:18:39]OFD Sender: To server: pG, [20:18:39]CommunicateWithHost lk.salyk.kg:30040 [20:18:39]ConnectInit lk.salyk.kg [20:18:39]Connected sock=10 [20:18: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 33 39 0F 01 00 00 8E AF 07 01 30 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 01 00 00 F4 03 04 00 9E 65 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 48 79 03 00 35 04 06 00 F1 F4 D8 92 03 58 C9 74 3D 59 2F BB 21 AF [20:18: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 33 39 4F 00 00 00 B9 CE 47 00 4B 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 33 39 10 04 04 00 48 79 03 00 F4 03 04 00 9C 10 15 67 B6 04 01 00 00 7A 19 CA C1 D7 49 4E BB [20:18:39]CommunicateWithHost err = 0 [20:18:39]CheckOFDResponse [20:18:39]1017 (14) - 77093643461234 [20:18:39]1041 (16) - 0000000000871839 [20:18:39]1040 (4) - 227656 [20:18:39]1012 (4) - 20.10.2024 14:15 [20:18:39]1206 (1) - 0 [20:18:39]OFD Sender: Remove packet 227656 [20:18:39]ProducePacketName [20:18:39]name=ofd_packets/00227656 [20:18:39]NVStorageDeleteData [20:18:39]Write to MH i2c: 01 00 00 2F 0B 3A [20:18:39]Write i2c OK [20:18:39]MH_I2C_Read... [20:18:39]Read from MH i2c: 01 [20:18:39]MH_I2C_Read... [20:18:39]Read from MH i2c: 01 07 00 [20:18:39]MH_I2C_Read... [20:18:39]Read from MH i2c: 01 07 00 2F 0B 00 00 00 00 00 AD 0C FA [20:18:39]RasterBufferAndPrint [20:18:39]line [20:18:39]line [20:18:39]line [20:18:39]line [20:18:39]line [20:18:39]written 0, free lines is 3248 [20:18:39]MH_Cut [20:18:39]Write to MH i2c: D1 01 00 36 0B 01 13 [20:18:39]Write i2c OK [20:18:39]MH_I2C_Read... [20:18:39]Read from MH i2c: D1 [20:18:39]MH_I2C_Read... [20:18:39]Read from MH i2c: D1 01 00 [20:18:39]MH_I2C_Read... [20:18:39]Read from MH i2c: D1 01 00 36 0B 00 12 [20:18:39]Write to MH i2c: 01 00 00 37 0B 42 [20:18:39]Write i2c OK [20:18:39]MH_I2C_Read... [20:18:40]OFD Sender: No OFD packet to send [20:18:40]*** Cut start [20:18:40]*** Partial cut [20:18:40]*** CUTSNS_PIN = 1 [20:18:40]*** CUTSNS_PIN = 0 [20:18:40]*** Brake cut motor [20:18:41]Read from MH i2c: 01 [20:18:41]MH_I2C_Read... [20:18:41]*** Stop cut motor [20:18:41]*** Cut end [20:18:41]Read from MH i2c: 01 07 00 [20:18:41]MH_I2C_Read... [20:18:41]Read from MH i2c: 01 07 00 37 0B 00 00 00 00 00 FF 0F 57 [20:18:41]process_action close_receipt done [20:18:41]requested_data is exist [20:18:41]produce_requested_data [20:18:41]requested_item fm.sn is exist - process it [20:18:41]wFMCommunicate request_size=4 [20:18:41]MH_SAM_APDU [20:18:41]CAPDU: 80 11 00 00 [20:18:41]Write to MH i2c: E2 08 00 38 0B 80 11 00 00 00 00 00 00 BD [20:18:41]Write i2c OK [20:18:41]MH_I2C_Read... [20:18:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:41]Read from MH i2c: E2 [20:18:41]MH_I2C_Read... [20:18:41]Read from MH i2c: E2 17 00 [20:18:41]MH_I2C_Read... [20:18:41]Read from MH i2c: E2 17 00 38 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 14 [20:18:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:18:41]wFMCommunicate OK [20:18:41]requested_item fd.num is exist - process it [20:18:41]SAM_PROTO_GetFieldsCounters [20:18:41]wFMCommunicate request_size=4 [20:18:41]MH_SAM_APDU [20:18:41]CAPDU: 80 13 00 00 [20:18:41]Write to MH i2c: E2 08 00 39 0B 80 13 00 00 00 00 00 00 C0 [20:18:41]Write i2c OK [20:18:41]MH_I2C_Read... [20:18:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:18:41]Read from MH i2c: E2 [20:18:41]MH_I2C_Read... [20:18:41]Read from MH i2c: E2 62 00 [20:18:41]MH_I2C_Read... [20:18:41]Read from MH i2c: E2 62 00 39 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 48 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 F8 01 00 00 5E 04 04 00 F8 01 00 00 57 04 04 00 F9 01 00 00 19 04 04 00 00 00 00 00 90 00 AF [20:18: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 48 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 F8 01 00 00 5E 04 04 00 F8 01 00 00 57 04 04 00 F9 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:18:41]wFMCommunicate OK [20:18:41]SAM_PROTO_GetFieldsCounters done [20:18:41]requested_item shift.num is exist - process it [20:18:41]requested_item shift.opened is exist - process it [20:18:41]req_shift_opened [20:18:41]FM_GetShiftState [20:18:41]SAM_PROTO_GetShiftState [20:18:41]wFMCommunicate request_size=4 [20:18:41]MH_SAM_APDU [20:18:41]CAPDU: 80 13 01 00 [20:18:41]Write to MH i2c: E2 08 00 3A 0B 80 13 01 00 00 00 00 00 C2 [20:18:41]Write i2c OK [20:18:41]MH_I2C_Read... [20:18:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:41]Read from MH i2c: E2 [20:18:41]MH_I2C_Read... [20:18:41]Read from MH i2c: E2 0E 00 [20:18:41]MH_I2C_Read... [20:18:41]Read from MH i2c: E2 0E 00 3A 0B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 DC [20:18:41]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:18:41]wFMCommunicate OK [20:18:41]SAM_PROTO_GetShiftState done [20:18:41]FM_GetShiftState done [20:18:41]req_shift_opened done [20:18:41]requested_item shift.open_date is exist - process it [20:18:41]req_shift_open_date [20:18:41]req_shift_open_date done [20:18:41]produce_requested_data done [20:18:41]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227656,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [20:18:41]process_action_free close_receipt [20:18:41]json_value_free [20:18:41]json_value_free done [20:18:41]process_json_proto returns [20:18:41]Send response to host [20:18:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227656,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [20:18:41]free response buf [20:18:41]execute_script done [20:18:41]execute_script returns [20:18:41]free content buf [20:18:41]Sock 9.Close socket [20:18:41]Sock 9.Thread stoped [20:18:45]OFD Sender: No OFD packet to send [20:18:50]OFD Sender: No OFD packet to send [20:18:55]OFD Sender: No OFD packet to send [20:18:55]accept exits with 7 [20:18:55]New connection [20:18:55]New thread 3066666340 created [20:18:55]Thread 3066809700 joined [20:18:55]Waiting for new connection... [20:18:55] Sock 7.Parse request [20:18:55]Sock 7.Check first char [20:18:55]Sock 7.First char is OK [20:18:55]request: POST /json_proto HTTP/1.0 [20:18:55]Method: POST [20:18:55]URL: /json_proto [20:18:55]Method is POST - this is cgi request [20:18:55]url: /json_proto [20:18:55]query_string will be loaded in cgi processing [20:18:55]execute_cgi json_proto POST (null) [20:18:55]execute_cgi path=json_proto method=POST [20:18:55]POST find Content-Length [20:18:55]Host: 172.17.44.195:8080 [20:18:55]Content-Length: 793 [20:18:55]Content-Type: application/json [20:18:55] [20:18:55]POST finish read [20:18:55]Found Content-Length = 793 [20:18:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963318", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A31055", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:18:55]execute_script... [20:18: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)1963318", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A31055", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:18:55]POST & json_proto [20:18:55]process_json_proto [20:18:55]json parsed OK: [20:18:55]protocol is kg_v1.0 [20:18:55]action value=close_receipt [20:18:55]process_action close_receipt [20:18:55]cmd_close_receipt [20:18:55]MH_GetDate [20:18:55]Write to MH i2c: F0 00 00 3B 0B 35 [20:18:55]Write i2c OK [20:18:55]MH_I2C_Read... [20:18:55]Read from MH i2c: F0 [20:18:55]MH_I2C_Read... [20:18:55]Read from MH i2c: F0 09 00 [20:18:55]MH_I2C_Read... [20:18:55]Read from MH i2c: F0 09 00 3B 0B 00 B0 65 15 67 82 C9 CF 66 4F [20:18:55]GetLastDocTimeStamp 1729455518 [20:18:55]current date 1729455536 [20:18:55]FM_GetShiftState [20:18:55]SAM_PROTO_GetShiftState [20:18:55]wFMCommunicate request_size=4 [20:18:55]MH_SAM_APDU [20:18:55]CAPDU: 80 13 01 00 [20:18:55]Write to MH i2c: E2 08 00 3C 0B 80 13 01 00 00 00 00 00 C4 [20:18:55]Write i2c OK [20:18:55]MH_I2C_Read... [20:18:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:55]Read from MH i2c: E2 [20:18:55]MH_I2C_Read... [20:18:55]Read from MH i2c: E2 0E 00 [20:18:55]MH_I2C_Read... [20:18:55]Read from MH i2c: E2 0E 00 3C 0B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 DE [20:18:55]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:18:55]wFMCommunicate OK [20:18:55]SAM_PROTO_GetShiftState done [20:18:55]FM_GetShiftState done [20:18:55]opened in 1729383750 [20:18:55]opened+sec_in_day 1729470150 [20:18:55]quantity*price = 0 [20:18:55]sum+1 = 1 [20:18:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 505 20.10.2024 20:18 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Талоны: Топливная Карта 31055 ФМ: 0000000000871839 ФД: 227657 ФПД: 256051024582029 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T201856&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227657&fm=256051024582029&tin=02508201610067®Number=0000000000091685&sum=0 [20:18:57]StoreToDocumentArchive [20:18:57]shift 533 fd 227657 [20:18:57]save to /storage/0533/doc_00227657 [20:18:57]save last doc name /storage/0533/doc_00227657 to /storage/kkm_last_doc_name [20:18:57]save OK [20:18:57]Clear old archive folders... [20:18:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:18:57]tlvbuf is 00C38760 [20:18:57]SAM_PROTO_ClearQueue [20:18:57]wFMCommunicate request_size=4 [20:18:57]MH_SAM_APDU [20:18:57]CAPDU: 80 09 00 00 [20:18:57]Write to MH i2c: E2 08 00 49 0B 80 09 00 00 00 00 00 00 C6 [20:18:57]Write i2c OK [20:18:57]MH_I2C_Read... [20:18:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:18:57]Read from MH i2c: E2 [20:18:57]MH_I2C_Read... [20:18:57]Read from MH i2c: E2 03 00 [20:18:57]MH_I2C_Read... [20:18:57]Read from MH i2c: E2 03 00 49 0B 00 90 00 C8 [20:18:57]RAPDU: 90 00 [20:18:57]wFMCommunicate OK [20:18:57]SAM_PROTO_ClearQueue done [20:18:57]KKMCreateOFDPacket [20:18:57]OFDProtocolAddRootSTLVToBuf [20:18:57]FM_MakeSignedData [20:18:57]FM_MakeSignedData [20:18:57]SAM_PROTO_SignData [20:18:57]wFMCommunicate request_size=4 [20:18:57]MH_SAM_APDU [20:18:57]CAPDU: 80 0D 01 02 [20:18:57]Write to MH i2c: E2 08 00 4A 0B 80 0D 01 02 00 00 00 00 CE [20:18:57]Write i2c OK [20:18:57]MH_I2C_Read... [20:18:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:18:57]Read from MH i2c: E2 [20:18:57]MH_I2C_Read... [20:18:57]Read from MH i2c: E2 03 00 [20:18:57]MH_I2C_Read... [20:18:57]Read from MH i2c: E2 03 00 4A 0B 00 90 00 C9 [20:18:57]RAPDU: 90 00 [20:18:57]wFMCommunicate OK [20:18:57]wFMCommunicate request_size=255 [20:18:57]MH_SAM_APDU [20:18:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 01 00 00 F4 03 04 00 B0 65 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 49 79 03 00 35 04 06 00 E8 [20:18:57]Write to MH i2c: E2 02 01 4B 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 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 F9 01 00 00 F4 03 04 00 B0 65 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 49 79 03 00 35 04 06 00 E8 00 00 46 [20:18:57]Write i2c OK [20:18:57]MH_I2C_Read... [20:18:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:57]Read from MH i2c: E2 [20:18:57]MH_I2C_Read... [20:18:57]Read from MH i2c: E2 03 00 [20:18:57]MH_I2C_Read... [20:18:57]Read from MH i2c: E2 03 00 4B 0B 00 90 00 CA [20:18:57]RAPDU: 90 00 [20:18:57]wFMCommunicate OK [20:18:57]wFMCommunicate request_size=10 [20:18:57]MH_SAM_APDU [20:18:57]CAPDU: 80 0D 02 02 05 E0 86 5D 55 8D [20:18:57]Write to MH i2c: E2 0D 00 4C 0B 80 0D 02 02 05 00 E0 86 5D 55 8D 00 00 80 [20:18:57]Write i2c OK [20:18:57]MH_I2C_Read... [20:18:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:57]Read from MH i2c: E2 [20:18:57]MH_I2C_Read... [20:18:57]Read from MH i2c: E2 03 00 [20:18:57]MH_I2C_Read... [20:18:57]Read from MH i2c: E2 03 00 4C 0B 00 90 00 CB [20:18:57]RAPDU: 90 00 [20:18:57]wFMCommunicate OK [20:18:57]wFMCommunicate request_size=4 [20:18:57]MH_SAM_APDU [20:18:57]CAPDU: 80 0D 03 02 [20:18:57]Write to MH i2c: E2 08 00 4D 0B 80 0D 03 02 00 00 00 00 D3 [20:18:57]Write i2c OK [20:18:57]MH_I2C_Read... [20:18:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:18:57]Read from MH i2c: E2 [20:18:57]MH_I2C_Read... [20:18:57]Read from MH i2c: E2 0B 00 [20:18:57]MH_I2C_Read... [20:18:57]Read from MH i2c: E2 0B 00 4D 0B 00 B1 22 02 C2 E9 E6 12 E8 90 00 34 [20:18:57]RAPDU: B1 22 02 C2 E9 E6 12 E8 90 00 [20:18:57]wFMCommunicate OK [20:18:57]SAM_PROTO_SignData done [20:18:57]FM_MakeSignedData done [20:18:57]CreateOFDProtocolMessage [20:18:57]wFMCommunicate request_size=4 [20:18:57]MH_SAM_APDU [20:18:57]CAPDU: 80 11 00 00 [20:18:57]Write to MH i2c: E2 08 00 4E 0B 80 11 00 00 00 00 00 00 D3 [20:18:57]Write i2c OK [20:18:57]MH_I2C_Read... [20:18:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:57]Read from MH i2c: E2 [20:18:57]MH_I2C_Read... [20:18:57]Read from MH i2c: E2 17 00 [20:18:57]MH_I2C_Read... [20:18:57]Read from MH i2c: E2 17 00 4E 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 2A [20:18:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:18:57]wFMCommunicate OK [20:18:57]CreateOFDProtocolMessage done [20:18:57]OFDSenderStorePacket 227657 [20:18:57]StoreOFDPacket docnum=227657 [20:18:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 82 3F 07 01 C6 A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 01 00 00 F4 03 04 00 B0 65 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 49 79 03 00 35 04 06 00 E8 E0 86 5D 55 8D B1 22 02 C2 E9 E6 12 E8 [20:18:57]CheckFolder [20:18:57]dirname=/storage/ofd_packets [20:18:57]CheckFolder done [20:18:57]ProducePacketName [20:18:57]name=ofd_packets/00227657 [20:18:57]NVStorageSaveData ofd_packets/00227657 [20:18:57]File name is /storage/ofd_packets/00227657 [20:18:57]Write 301 bytes [20:18:57]NVStorageSaveData done [20:18:57]OFDSenderStorePacket done [20:18:57]KKMCreateOFDPacket done [20:18:57]NVStorageSaveData kkm_last_timestamp [20:18:57]File name is /storage/kkm_last_timestamp [20:18:57]Write 4 bytes [20:18:57]NVStorageSaveData done [20:18:57]ExternCall_PrintAddStr [20:18:57]wPrintStart [20:18:57]Write to MH i2c: 01 00 00 4F 0B 5A [20:18:57]Write i2c OK [20:18:57]MH_I2C_Read... [20:18:57]Read from MH i2c: 01 [20:18:57]MH_I2C_Read... [20:18:57]Read from MH i2c: 01 07 00 [20:18:57]MH_I2C_Read... [20:18:57]Read from MH i2c: 01 07 00 4F 0B 00 00 00 00 00 FF 0F 6F [20:18:57]RasterBufferAndPrint [20:18:57]line Счет N : (1)1963318 [20:18:57]line ИНН: 02508201610067 [20:18:57]line Контрольно-Кассовый Чек [20:18:57]line ПРОДАЖА [20:18:57]line ТРК (МРК, ГНК) : 64 [20:18:57]line Товар: 2710124500 [20:18:57]line Аи-95-К-5 [20:18:57]line 50.000 * 0.00 [20:18:57]line = 0.00 [20:18:57]line НДС 12% НСП 1% [20:18:57]line > о реализуемом товаре [20:18:57]line ИТОГО: 0.00 [20:18:57]line НСП 1% : 0.00 [20:18:57]line НДС 12% : 0.00 [20:18:57]line Наличными: 0.00 [20:18:57]line Безнал.: 0.00 [20:18:57]line Место: АЗС № 133 "Партнер Нефть" [20:18:57]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [20:18:57]line СНО: Общий режим [20:18:57]line Чек 505 20.10.2024 20:18 [20:18:57]line Смена: 533 ФФД: 1.0 [20:18:57]line ЗНМ: 0300000091 [20:18:57]line РНМ: 0000000000091685 [20:18:57]line Версия ККМ: 001 [20:18:57]line Талоны: Топливная Карта [20:18:57]line 31055 [20:18:57]line ФМ: 0000000000871839 [20:18:57]line ФД: 227657 [20:18:57]line ФПД: 256051024582029 [20:18:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T201856&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227657&fm=256051024582029&tin=02508201610067®Number=0000000000091685&sum=0 [20:18:57]written 0, free lines is 4095 [20:18:57]OFD Sender: Processing packet 227657 [packets to send 38, broken 37] [20:18:57]ProducePacketName [20:18:57]name=ofd_packets/00227657 [20:18:57]OFD Sender: To server: pG, [20:18:57]CommunicateWithHost lk.salyk.kg:30040 [20:18:57]ConnectInit lk.salyk.kg [20:18:57]Connected sock=10 [20:18: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 33 39 0F 01 00 00 82 3F 07 01 C6 A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 01 00 00 F4 03 04 00 B0 65 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 49 79 03 00 35 04 06 00 E8 E0 86 5D 55 8D B1 22 02 C2 E9 E6 12 E8 [20:18: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 33 39 4F 00 00 00 A5 F5 47 00 C2 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 49 79 03 00 F4 03 04 00 AE 10 15 67 B6 04 01 00 00 6F 4B FE D5 1D EA E5 46 [20:18:57]CommunicateWithHost err = 0 [20:18:57]CheckOFDResponse [20:18:57]1017 (14) - 77093643461234 [20:18:57]1041 (16) - 0000000000871839 [20:18:57]1040 (4) - 227657 [20:18:57]1012 (4) - 20.10.2024 14:16 [20:18:57]1206 (1) - 0 [20:18:57]OFD Sender: Remove packet 227657 [20:18:57]ProducePacketName [20:18:57]name=ofd_packets/00227657 [20:18:57]NVStorageDeleteData [20:18:58]Write to MH i2c: 01 00 00 78 0B 83 [20:18:58]Write i2c OK [20:18:58]MH_I2C_Read... [20:18:58]Read from MH i2c: 01 [20:18:58]MH_I2C_Read... [20:18:58]Read from MH i2c: 01 07 00 [20:18:58]MH_I2C_Read... [20:18:58]Read from MH i2c: 01 07 00 78 0B 00 00 00 00 00 CA 0C 60 [20:18:58]RasterBufferAndPrint [20:18:58]line [20:18:58]line [20:18:58]line [20:18:58]line [20:18:58]line [20:18:58]written 0, free lines is 3279 [20:18:58]MH_Cut [20:18:58]Write to MH i2c: D1 01 00 7F 0B 01 5C [20:18:58]Write i2c OK [20:18:58]MH_I2C_Read... [20:18:58]Read from MH i2c: D1 [20:18:58]MH_I2C_Read... [20:18:58]Read from MH i2c: D1 01 00 [20:18:58]MH_I2C_Read... [20:18:58]Read from MH i2c: D1 01 00 7F 0B 00 5B [20:18:58]Write to MH i2c: 01 00 00 80 0B 8B [20:18:58]Write i2c OK [20:18:58]MH_I2C_Read... [20:18:58]OFD Sender: No OFD packet to send [20:18:58]*** Cut start [20:18:58]*** Partial cut [20:18:58]*** CUTSNS_PIN = 1 [20:18:59]*** CUTSNS_PIN = 0 [20:18:59]*** Brake cut motor [20:18:59]Read from MH i2c: 01 [20:18:59]MH_I2C_Read... [20:18:59]*** Stop cut motor [20:18:59]*** Cut end [20:18:59]Read from MH i2c: 01 07 00 [20:18:59]MH_I2C_Read... [20:18:59]Read from MH i2c: 01 07 00 80 0B 00 00 00 00 00 FF 0F A0 [20:18:59]process_action close_receipt done [20:18:59]requested_data is exist [20:18:59]produce_requested_data [20:18:59]requested_item fm.sn is exist - process it [20:18:59]wFMCommunicate request_size=4 [20:18:59]MH_SAM_APDU [20:18:59]CAPDU: 80 11 00 00 [20:18:59]Write to MH i2c: E2 08 00 81 0B 80 11 00 00 00 00 00 00 06 [20:18:59]Write i2c OK [20:18:59]MH_I2C_Read... [20:18:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:59]Read from MH i2c: E2 [20:18:59]MH_I2C_Read... [20:18:59]Read from MH i2c: E2 17 00 [20:18:59]MH_I2C_Read... [20:18:59]Read from MH i2c: E2 17 00 81 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 5D [20:18:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:18:59]wFMCommunicate OK [20:18:59]requested_item fd.num is exist - process it [20:18:59]SAM_PROTO_GetFieldsCounters [20:18:59]wFMCommunicate request_size=4 [20:18:59]MH_SAM_APDU [20:18:59]CAPDU: 80 13 00 00 [20:18:59]Write to MH i2c: E2 08 00 82 0B 80 13 00 00 00 00 00 00 09 [20:18:59]Write i2c OK [20:18:59]MH_I2C_Read... [20:18:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:18:59]Read from MH i2c: E2 [20:18:59]MH_I2C_Read... [20:18:59]Read from MH i2c: E2 62 00 [20:18:59]MH_I2C_Read... [20:18:59]Read from MH i2c: E2 62 00 82 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 49 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 F9 01 00 00 5E 04 04 00 F9 01 00 00 57 04 04 00 FA 01 00 00 19 04 04 00 00 00 00 00 90 00 FC [20:18: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 49 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 F9 01 00 00 5E 04 04 00 F9 01 00 00 57 04 04 00 FA 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:18:59]wFMCommunicate OK [20:18:59]SAM_PROTO_GetFieldsCounters done [20:18:59]requested_item shift.num is exist - process it [20:18:59]requested_item shift.opened is exist - process it [20:18:59]req_shift_opened [20:18:59]FM_GetShiftState [20:18:59]SAM_PROTO_GetShiftState [20:18:59]wFMCommunicate request_size=4 [20:18:59]MH_SAM_APDU [20:18:59]CAPDU: 80 13 01 00 [20:18:59]Write to MH i2c: E2 08 00 83 0B 80 13 01 00 00 00 00 00 0B [20:18:59]Write i2c OK [20:18:59]MH_I2C_Read... [20:18:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:59]Read from MH i2c: E2 [20:18:59]MH_I2C_Read... [20:18:59]Read from MH i2c: E2 0E 00 [20:18:59]MH_I2C_Read... [20:18:59]Read from MH i2c: E2 0E 00 83 0B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 25 [20:18:59]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:18:59]wFMCommunicate OK [20:18:59]SAM_PROTO_GetShiftState done [20:18:59]FM_GetShiftState done [20:18:59]req_shift_opened done [20:18:59]requested_item shift.open_date is exist - process it [20:18:59]req_shift_open_date [20:18:59]req_shift_open_date done [20:18:59]produce_requested_data done [20:18:59]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227657,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [20:18:59]process_action_free close_receipt [20:18:59]json_value_free [20:18:59]json_value_free done [20:18:59]process_json_proto returns [20:18:59]Send response to host [20:18:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227657,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [20:18:59]free response buf [20:18:59]execute_script done [20:18:59]execute_script returns [20:18:59]free content buf [20:18:59]Sock 7.Close socket [20:18:59]Sock 7.Thread stoped [20:19:03]OFD Sender: No OFD packet to send [20:19:08]OFD Sender: No OFD packet to send [20:19:13]OFD Sender: No OFD packet to send [20:19:18]OFD Sender: No OFD packet to send [20:19:23]OFD Sender: No OFD packet to send [20:19:28]OFD Sender: No OFD packet to send [20:19:33]OFD Sender: No OFD packet to send [20:19:38]OFD Sender: No OFD packet to send [20:19:43]OFD Sender: No OFD packet to send [20:19:48]OFD Sender: No OFD packet to send [20:19:53]OFD Sender: No OFD packet to send [20:19:58]OFD Sender: No OFD packet to send [20:20:03]OFD Sender: No OFD packet to send [20:20:08]OFD Sender: No OFD packet to send [20:20:13]OFD Sender: No OFD packet to send [20:20:18]OFD Sender: No OFD packet to send [20:20:23]OFD Sender: No OFD packet to send [20:20:28]OFD Sender: No OFD packet to send [20:20:33]OFD Sender: No OFD packet to send [20:20:38]OFD Sender: No OFD packet to send [20:20:43]OFD Sender: No OFD packet to send [20:20:48]OFD Sender: No OFD packet to send [20:20:53]OFD Sender: No OFD packet to send [20:20:58]OFD Sender: No OFD packet to send [20:21:03]OFD Sender: No OFD packet to send [20:21:08]OFD Sender: No OFD packet to send [20:21:13]OFD Sender: No OFD packet to send [20:21:18]OFD Sender: No OFD packet to send [20:21:23]OFD Sender: No OFD packet to send [20:21:28]OFD Sender: No OFD packet to send [20:21:29]accept exits with 9 [20:21:29]New connection [20:21:29]New thread 3066809700 created [20:21:29]Thread 3066666340 joined [20:21:29]Waiting for new connection... [20:21:29] Sock 9.Parse request [20:21:29]Sock 9.Check first char [20:21:29]Sock 9.First char is OK [20:21:29]request: POST /json_proto HTTP/1.0 [20:21:29]Method: POST [20:21:29]URL: /json_proto [20:21:29]Method is POST - this is cgi request [20:21:29]url: /json_proto [20:21:29]query_string will be loaded in cgi processing [20:21:29]execute_cgi json_proto POST (null) [20:21:29]execute_cgi path=json_proto method=POST [20:21:29]POST find Content-Length [20:21:29]Host: 172.17.44.195:8080 [20:21:29]Content-Length: 683 [20:21:29]Content-Type: application/json [20:21:29] [20:21:29]POST finish read [20:21:29]Found Content-Length = 683 [20:21:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963321", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:21:29]execute_script... [20:21: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)1963321", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:21:29]POST & json_proto [20:21:29]process_json_proto [20:21:29]json parsed OK: [20:21:29]protocol is kg_v1.0 [20:21:29]action value=close_receipt [20:21:29]process_action close_receipt [20:21:29]cmd_close_receipt [20:21:29]MH_GetDate [20:21:29]Write to MH i2c: F0 00 00 84 0B 7E [20:21:29]Write i2c OK [20:21:29]MH_I2C_Read... [20:21:29]Read from MH i2c: F0 [20:21:29]MH_I2C_Read... [20:21:29]Read from MH i2c: F0 09 00 [20:21:29]MH_I2C_Read... [20:21:29]Read from MH i2c: F0 09 00 84 0B 00 4A 66 15 67 82 C9 CF 66 33 [20:21:29]GetLastDocTimeStamp 1729455536 [20:21:29]current date 1729455690 [20:21:29]FM_GetShiftState [20:21:29]SAM_PROTO_GetShiftState [20:21:29]wFMCommunicate request_size=4 [20:21:29]MH_SAM_APDU [20:21:29]CAPDU: 80 13 01 00 [20:21:29]Write to MH i2c: E2 08 00 85 0B 80 13 01 00 00 00 00 00 0D [20:21:29]Write i2c OK [20:21:29]MH_I2C_Read... [20:21:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:21:29]Read from MH i2c: E2 [20:21:29]MH_I2C_Read... [20:21:29]Read from MH i2c: E2 0E 00 [20:21:29]MH_I2C_Read... [20:21:29]Read from MH i2c: E2 0E 00 85 0B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 27 [20:21:29]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:21:29]wFMCommunicate OK [20:21:29]SAM_PROTO_GetShiftState done [20:21:29]FM_GetShiftState done [20:21:29]opened in 1729383750 [20:21:29]opened+sec_in_day 1729470150 [20:21:29]quantity*price = 100021 [20:21:29]sum+1 = 100023 [20:21:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 506 20.10.2024 20:21 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227658 ФПД: 53941646875312 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T202130&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227658&fm=53941646875312&tin=02508201610067®Number=0000000000091685&sum=100000 [20:21:30]StoreToDocumentArchive [20:21:30]shift 533 fd 227658 [20:21:30]save to /storage/0533/doc_00227658 [20:21:30]save last doc name /storage/0533/doc_00227658 to /storage/kkm_last_doc_name [20:21:30]save OK [20:21:30]Clear old archive folders... [20:21:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:21:30]tlvbuf is 00C39100 [20:21:30]SAM_PROTO_ClearQueue [20:21:30]wFMCommunicate request_size=4 [20:21:30]MH_SAM_APDU [20:21:30]CAPDU: 80 09 00 00 [20:21:30]Write to MH i2c: E2 08 00 92 0B 80 09 00 00 00 00 00 00 0F [20:21:30]Write i2c OK [20:21:30]MH_I2C_Read... [20:21:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:21:30]Read from MH i2c: E2 [20:21:30]MH_I2C_Read... [20:21:30]Read from MH i2c: E2 03 00 [20:21:30]MH_I2C_Read... [20:21:30]Read from MH i2c: E2 03 00 92 0B 00 90 00 11 [20:21:30]RAPDU: 90 00 [20:21:30]wFMCommunicate OK [20:21:30]SAM_PROTO_ClearQueue done [20:21:30]KKMCreateOFDPacket [20:21:30]OFDProtocolAddRootSTLVToBuf [20:21:30]FM_MakeSignedData [20:21:30]FM_MakeSignedData [20:21:30]SAM_PROTO_SignData [20:21:30]wFMCommunicate request_size=4 [20:21:30]MH_SAM_APDU [20:21:30]CAPDU: 80 0D 01 02 [20:21:30]Write to MH i2c: E2 08 00 93 0B 80 0D 01 02 00 00 00 00 17 [20:21:30]Write i2c OK [20:21:30]MH_I2C_Read... [20:21:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:21:30]Read from MH i2c: E2 [20:21:30]MH_I2C_Read... [20:21:30]Read from MH i2c: E2 03 00 [20:21:30]MH_I2C_Read... [20:21:30]Read from MH i2c: E2 03 00 93 0B 00 90 00 12 [20:21:30]RAPDU: 90 00 [20:21:30]wFMCommunicate OK [20:21:30]wFMCommunicate request_size=255 [20:21:30]MH_SAM_APDU [20:21: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 01 00 00 F4 03 04 00 4A 66 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4A 79 03 00 35 04 06 00 31 [20:21:30]Write to MH i2c: E2 02 01 94 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 01 00 00 F4 03 04 00 4A 66 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4A 79 03 00 35 04 06 00 31 00 00 00 [20:21:30]Write i2c OK [20:21:30]MH_I2C_Read... [20:21:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:21:30]Read from MH i2c: E2 [20:21:30]MH_I2C_Read... [20:21:30]Read from MH i2c: E2 03 00 [20:21:30]MH_I2C_Read... [20:21:30]Read from MH i2c: E2 03 00 94 0B 00 90 00 13 [20:21:30]RAPDU: 90 00 [20:21:30]wFMCommunicate OK [20:21:30]wFMCommunicate request_size=10 [20:21:30]MH_SAM_APDU [20:21:30]CAPDU: 80 0D 02 02 05 0F 44 B3 5A B0 [20:21:30]Write to MH i2c: E2 0D 00 95 0B 80 0D 02 02 05 00 0F 44 B3 5A B0 00 00 34 [20:21:30]Write i2c OK [20:21:30]MH_I2C_Read... [20:21:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:21:31]Read from MH i2c: E2 [20:21:31]MH_I2C_Read... [20:21:31]Read from MH i2c: E2 03 00 [20:21:31]MH_I2C_Read... [20:21:31]Read from MH i2c: E2 03 00 95 0B 00 90 00 14 [20:21:31]RAPDU: 90 00 [20:21:31]wFMCommunicate OK [20:21:31]wFMCommunicate request_size=4 [20:21:31]MH_SAM_APDU [20:21:31]CAPDU: 80 0D 03 02 [20:21:31]Write to MH i2c: E2 08 00 96 0B 80 0D 03 02 00 00 00 00 1C [20:21:31]Write i2c OK [20:21:31]MH_I2C_Read... [20:21:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:21:31]Read from MH i2c: E2 [20:21:31]MH_I2C_Read... [20:21:31]Read from MH i2c: E2 0B 00 [20:21:31]MH_I2C_Read... [20:21:31]Read from MH i2c: E2 0B 00 96 0B 00 77 60 ED 51 89 7D 34 55 90 00 C1 [20:21:31]RAPDU: 77 60 ED 51 89 7D 34 55 90 00 [20:21:31]wFMCommunicate OK [20:21:31]SAM_PROTO_SignData done [20:21:31]FM_MakeSignedData done [20:21:31]CreateOFDProtocolMessage [20:21:31]wFMCommunicate request_size=4 [20:21:31]MH_SAM_APDU [20:21:31]CAPDU: 80 11 00 00 [20:21:31]Write to MH i2c: E2 08 00 97 0B 80 11 00 00 00 00 00 00 1C [20:21:31]Write i2c OK [20:21:31]MH_I2C_Read... [20:21:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:21:31]Read from MH i2c: E2 [20:21:31]MH_I2C_Read... [20:21:31]Read from MH i2c: E2 17 00 [20:21:31]MH_I2C_Read... [20:21:31]Read from MH i2c: E2 17 00 97 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 73 [20:21:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:21:31]wFMCommunicate OK [20:21:31]CreateOFDProtocolMessage done [20:21:31]OFDSenderStorePacket 227658 [20:21:31]StoreOFDPacket docnum=227658 [20:21:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 4E 63 07 01 84 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 01 00 00 F4 03 04 00 4A 66 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4A 79 03 00 35 04 06 00 31 0F 44 B3 5A B0 77 60 ED 51 89 7D 34 55 [20:21:31]CheckFolder [20:21:31]dirname=/storage/ofd_packets [20:21:31]CheckFolder done [20:21:31]ProducePacketName [20:21:31]name=ofd_packets/00227658 [20:21:31]NVStorageSaveData ofd_packets/00227658 [20:21:31]File name is /storage/ofd_packets/00227658 [20:21:31]Write 301 bytes [20:21:31]NVStorageSaveData done [20:21:31]OFDSenderStorePacket done [20:21:31]KKMCreateOFDPacket done [20:21:31]NVStorageSaveData kkm_last_timestamp [20:21:31]File name is /storage/kkm_last_timestamp [20:21:31]Write 4 bytes [20:21:31]NVStorageSaveData done [20:21:31]ExternCall_PrintAddStr [20:21:31]wPrintStart [20:21:31]Write to MH i2c: 01 00 00 98 0B A3 [20:21:31]Write i2c OK [20:21:31]MH_I2C_Read... [20:21:31]Read from MH i2c: 01 [20:21:31]MH_I2C_Read... [20:21:31]Read from MH i2c: 01 07 00 [20:21:31]MH_I2C_Read... [20:21:31]Read from MH i2c: 01 07 00 98 0B 00 00 00 00 00 FF 0F B8 [20:21:31]RasterBufferAndPrint [20:21:31]line Счет N : (1)1963321 [20:21:31]line ИНН: 02508201610067 [20:21:31]line Контрольно-Кассовый Чек [20:21:31]line ПРОДАЖА [20:21:31]line ТРК (МРК, ГНК) : 44 [20:21:31]line Товар: 2710124500 [20:21:31]line Аи-95-К-5 [20:21:31]line 13.480 * 74.20 [20:21:31]line = 1000.22 [20:21:31]line НДС 12% НСП 1% [20:21:31]line > о реализуемом товаре [20:21:31]line ОКРУГЛЕНИЕ: -0.22 [20:21:31]line ИТОГО: 1000.00 [20:21:31]line Внесено: 1000.00 [20:21:31]line СДАЧА: 0.00 [20:21:31]line НСП 1% : 8.85 [20:21:31]line НДС 12% : 106.22 [20:21:31]line Наличными: 1000.00 [20:21:31]line Безнал.: 0.00 [20:21:31]line Место: АЗС № 133 "Партнер Нефть" [20:21:31]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [20:21:31]line СНО: Общий режим [20:21:31]line Чек 506 20.10.2024 20:21 [20:21:31]line Смена: 533 ФФД: 1.0 [20:21:31]line ЗНМ: 0300000091 [20:21:31]line РНМ: 0000000000091685 [20:21:31]line Версия ККМ: 001 [20:21:31]line ФМ: 0000000000871839 [20:21:31]line ФД: 227658 [20:21:31]line ФПД: 53941646875312 [20:21:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T202130&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227658&fm=53941646875312&tin=02508201610067®Number=0000000000091685&sum=100000 [20:21:31]written 0, free lines is 4095 [20:21:31]OFD Sender: Processing packet 227658 [packets to send 38, broken 37] [20:21:31]ProducePacketName [20:21:31]name=ofd_packets/00227658 [20:21:31]OFD Sender: To server: pG, [20:21:31]CommunicateWithHost lk.salyk.kg:30040 [20:21:31]ConnectInit lk.salyk.kg [20:21:31]Connected sock=10 [20:21: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 33 39 0F 01 00 00 4E 63 07 01 84 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 01 00 00 F4 03 04 00 4A 66 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4A 79 03 00 35 04 06 00 31 0F 44 B3 5A B0 77 60 ED 51 89 7D 34 55 [20:21: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 33 39 4F 00 00 00 9C 11 47 00 33 BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4A 79 03 00 F4 03 04 00 48 11 15 67 B6 04 01 00 00 B9 83 B3 69 51 46 DA 45 [20:21:31]CommunicateWithHost err = 0 [20:21:31]CheckOFDResponse [20:21:31]1017 (14) - 77093643461234 [20:21:31]1041 (16) - 0000000000871839 [20:21:31]1040 (4) - 227658 [20:21:31]1012 (4) - 20.10.2024 14:18 [20:21:31]1206 (1) - 0 [20:21:31]OFD Sender: Remove packet 227658 [20:21:31]ProducePacketName [20:21:31]name=ofd_packets/00227658 [20:21:31]NVStorageDeleteData [20:21:31]Write to MH i2c: 01 00 00 C2 0B CD [20:21:31]Write i2c OK [20:21:31]MH_I2C_Read... [20:21:31]Read from MH i2c: 01 [20:21:31]MH_I2C_Read... [20:21:31]Read from MH i2c: 01 07 00 [20:21:31]MH_I2C_Read... [20:21:31]Read from MH i2c: 01 07 00 C2 0B 00 00 00 00 00 AD 0C 8D [20:21:31]RasterBufferAndPrint [20:21:31]line [20:21:31]line [20:21:31]line [20:21:31]line [20:21:31]line [20:21:31]written 0, free lines is 3248 [20:21:31]MH_Cut [20:21:31]Write to MH i2c: D1 01 00 C9 0B 01 A6 [20:21:31]Write i2c OK [20:21:31]MH_I2C_Read... [20:21:31]Read from MH i2c: D1 [20:21:31]MH_I2C_Read... [20:21:31]Read from MH i2c: D1 01 00 [20:21:31]MH_I2C_Read... [20:21:31]Read from MH i2c: D1 01 00 C9 0B 00 A5 [20:21:31]Write to MH i2c: 01 00 00 CA 0B D5 [20:21:31]Write i2c OK [20:21:31]MH_I2C_Read... [20:21:32]OFD Sender: No OFD packet to send [20:21:32]*** Cut start [20:21:32]*** Partial cut [20:21:32]*** CUTSNS_PIN = 1 [20:21:32]*** CUTSNS_PIN = 0 [20:21:33]*** Brake cut motor [20:21:33]Read from MH i2c: 01 [20:21:33]*** Stop cut motor [20:21:33]*** Cut end [20:21:33]MH_I2C_Read... [20:21:33]Read from MH i2c: 01 07 00 [20:21:33]MH_I2C_Read... [20:21:33]Read from MH i2c: 01 07 00 CA 0B 00 00 00 00 00 FF 0F EA [20:21:33]process_action close_receipt done [20:21:33]requested_data is exist [20:21:33]produce_requested_data [20:21:33]requested_item fm.sn is exist - process it [20:21:33]wFMCommunicate request_size=4 [20:21:33]MH_SAM_APDU [20:21:33]CAPDU: 80 11 00 00 [20:21:33]Write to MH i2c: E2 08 00 CB 0B 80 11 00 00 00 00 00 00 50 [20:21:33]Write i2c OK [20:21:33]MH_I2C_Read... [20:21:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:21:33]Read from MH i2c: E2 [20:21:33]MH_I2C_Read... [20:21:33]Read from MH i2c: E2 17 00 [20:21:33]MH_I2C_Read... [20:21:33]Read from MH i2c: E2 17 00 CB 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A7 [20:21:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:21:33]wFMCommunicate OK [20:21:33]requested_item fd.num is exist - process it [20:21:33]SAM_PROTO_GetFieldsCounters [20:21:33]wFMCommunicate request_size=4 [20:21:33]MH_SAM_APDU [20:21:33]CAPDU: 80 13 00 00 [20:21:33]Write to MH i2c: E2 08 00 CC 0B 80 13 00 00 00 00 00 00 53 [20:21:33]Write i2c OK [20:21:33]MH_I2C_Read... [20:21:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:21:33]Read from MH i2c: E2 [20:21:33]MH_I2C_Read... [20:21:33]Read from MH i2c: E2 62 00 [20:21:33]MH_I2C_Read... [20:21:33]Read from MH i2c: E2 62 00 CC 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 4A 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 FA 01 00 00 5E 04 04 00 FA 01 00 00 57 04 04 00 FB 01 00 00 19 04 04 00 00 00 00 00 90 00 4A [20:21: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 4A 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 FA 01 00 00 5E 04 04 00 FA 01 00 00 57 04 04 00 FB 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:21:33]wFMCommunicate OK [20:21:33]SAM_PROTO_GetFieldsCounters done [20:21:33]requested_item shift.num is exist - process it [20:21:33]requested_item shift.opened is exist - process it [20:21:33]req_shift_opened [20:21:33]FM_GetShiftState [20:21:33]SAM_PROTO_GetShiftState [20:21:33]wFMCommunicate request_size=4 [20:21:33]MH_SAM_APDU [20:21:33]CAPDU: 80 13 01 00 [20:21:33]Write to MH i2c: E2 08 00 CD 0B 80 13 01 00 00 00 00 00 55 [20:21:33]Write i2c OK [20:21:33]MH_I2C_Read... [20:21:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:21:33]Read from MH i2c: E2 [20:21:33]MH_I2C_Read... [20:21:33]Read from MH i2c: E2 0E 00 [20:21:33]MH_I2C_Read... [20:21:33]Read from MH i2c: E2 0E 00 CD 0B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 6F [20:21:33]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:21:33]wFMCommunicate OK [20:21:33]SAM_PROTO_GetShiftState done [20:21:33]FM_GetShiftState done [20:21:33]req_shift_opened done [20:21:33]requested_item shift.open_date is exist - process it [20:21:33]req_shift_open_date [20:21:33]req_shift_open_date done [20:21:33]produce_requested_data done [20:21:33]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227658,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [20:21:33]process_action_free close_receipt [20:21:33]json_value_free [20:21:33]json_value_free done [20:21:33]process_json_proto returns [20:21:33]Send response to host [20:21:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227658,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [20:21:33]free response buf [20:21:33]execute_script done [20:21:33]execute_script returns [20:21:33]free content buf [20:21:33]Sock 9.Close socket [20:21:33]Sock 9.Thread stoped [20:21:37]OFD Sender: No OFD packet to send [20:21:42]OFD Sender: No OFD packet to send [20:21:43]accept exits with 7 [20:21:43]New connection [20:21:43]New thread 3066666340 created [20:21:43]Thread 3066809700 joined [20:21:43]Waiting for new connection... [20:21:43] Sock 7.Parse request [20:21:43]Sock 7.Check first char [20:21:43]Sock 7.First char is OK [20:21:43]request: POST /json_proto HTTP/1.0 [20:21:43]Method: POST [20:21:43]URL: /json_proto [20:21:43]Method is POST - this is cgi request [20:21:43]url: /json_proto [20:21:43]query_string will be loaded in cgi processing [20:21:43]execute_cgi json_proto POST (null) [20:21:43]execute_cgi path=json_proto method=POST [20:21:43]POST find Content-Length [20:21:43]Host: 172.17.44.195:8080 [20:21:43]Content-Length: 683 [20:21:43]Content-Type: application/json [20:21:43] [20:21:43]POST finish read [20:21:43]Found Content-Length = 683 [20:21:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963322", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:21:43]execute_script... [20:21: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)1963322", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:21:43]POST & json_proto [20:21:43]process_json_proto [20:21:43]json parsed OK: [20:21:43]protocol is kg_v1.0 [20:21:43]action value=close_receipt [20:21:43]process_action close_receipt [20:21:43]cmd_close_receipt [20:21:43]MH_GetDate [20:21:43]Write to MH i2c: F0 00 00 CE 0B C8 [20:21:43]Write i2c OK [20:21:43]MH_I2C_Read... [20:21:43]Read from MH i2c: F0 [20:21:43]MH_I2C_Read... [20:21:43]Read from MH i2c: F0 09 00 [20:21:43]MH_I2C_Read... [20:21:43]Read from MH i2c: F0 09 00 CE 0B 00 58 66 15 67 82 C9 CF 66 8B [20:21:43]GetLastDocTimeStamp 1729455690 [20:21:43]current date 1729455704 [20:21:43]FM_GetShiftState [20:21:43]SAM_PROTO_GetShiftState [20:21:43]wFMCommunicate request_size=4 [20:21:43]MH_SAM_APDU [20:21:43]CAPDU: 80 13 01 00 [20:21:43]Write to MH i2c: E2 08 00 CF 0B 80 13 01 00 00 00 00 00 57 [20:21:43]Write i2c OK [20:21:43]MH_I2C_Read... [20:21:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:21:43]Read from MH i2c: E2 [20:21:43]MH_I2C_Read... [20:21:43]Read from MH i2c: E2 0E 00 [20:21:43]MH_I2C_Read... [20:21:43]Read from MH i2c: E2 0E 00 CF 0B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 71 [20:21:43]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:21:43]wFMCommunicate OK [20:21:43]SAM_PROTO_GetShiftState done [20:21:43]FM_GetShiftState done [20:21:43]opened in 1729383750 [20:21:43]opened+sec_in_day 1729470150 [20:21:43]quantity*price = 100015 [20:21:43]sum+1 = 100017 [20:21:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 507 20.10.2024 20:21 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227659 ФПД: 132292514848201 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T202144&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227659&fm=132292514848201&tin=02508201610067®Number=0000000000091685&sum=100000 [20:21:44]StoreToDocumentArchive [20:21:44]shift 533 fd 227659 [20:21:44]save to /storage/0533/doc_00227659 [20:21:44]save last doc name /storage/0533/doc_00227659 to /storage/kkm_last_doc_name [20:21:44]save OK [20:21:44]Clear old archive folders... [20:21:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:21:44]tlvbuf is 00CAE140 [20:21:44]SAM_PROTO_ClearQueue [20:21:44]wFMCommunicate request_size=4 [20:21:44]MH_SAM_APDU [20:21:44]CAPDU: 80 09 00 00 [20:21:44]Write to MH i2c: E2 08 00 DC 0B 80 09 00 00 00 00 00 00 59 [20:21:44]Write i2c OK [20:21:44]MH_I2C_Read... [20:21:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:21:44]Read from MH i2c: E2 [20:21:44]MH_I2C_Read... [20:21:44]Read from MH i2c: E2 03 00 [20:21:44]MH_I2C_Read... [20:21:44]Read from MH i2c: E2 03 00 DC 0B 00 90 00 5B [20:21:44]RAPDU: 90 00 [20:21:44]wFMCommunicate OK [20:21:44]SAM_PROTO_ClearQueue done [20:21:44]KKMCreateOFDPacket [20:21:44]OFDProtocolAddRootSTLVToBuf [20:21:44]FM_MakeSignedData [20:21:44]FM_MakeSignedData [20:21:44]SAM_PROTO_SignData [20:21:44]wFMCommunicate request_size=4 [20:21:44]MH_SAM_APDU [20:21:44]CAPDU: 80 0D 01 02 [20:21:44]Write to MH i2c: E2 08 00 DD 0B 80 0D 01 02 00 00 00 00 61 [20:21:44]Write i2c OK [20:21:44]MH_I2C_Read... [20:21:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:21:44]Read from MH i2c: E2 [20:21:44]MH_I2C_Read... [20:21:44]Read from MH i2c: E2 03 00 [20:21:44]MH_I2C_Read... [20:21:44]Read from MH i2c: E2 03 00 DD 0B 00 90 00 5C [20:21:44]RAPDU: 90 00 [20:21:44]wFMCommunicate OK [20:21:44]wFMCommunicate request_size=255 [20:21:44]MH_SAM_APDU [20:21:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 01 00 00 F4 03 04 00 58 66 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4B 79 03 00 35 04 06 00 78 [20:21:44]Write to MH i2c: E2 02 01 DE 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 01 00 00 F4 03 04 00 58 66 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4B 79 03 00 35 04 06 00 78 00 00 7E [20:21:44]Write i2c OK [20:21:44]MH_I2C_Read... [20:21:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:21:44]Read from MH i2c: E2 [20:21:44]MH_I2C_Read... [20:21:44]Read from MH i2c: E2 03 00 [20:21:44]MH_I2C_Read... [20:21:44]Read from MH i2c: E2 03 00 DE 0B 00 90 00 5D [20:21:44]RAPDU: 90 00 [20:21:44]wFMCommunicate OK [20:21:44]wFMCommunicate request_size=10 [20:21:44]MH_SAM_APDU [20:21:44]CAPDU: 80 0D 02 02 05 51 C0 5A 9D C9 [20:21:44]Write to MH i2c: E2 0D 00 DF 0B 80 0D 02 02 05 00 51 C0 5A 9D C9 00 00 3F [20:21:44]Write i2c OK [20:21:44]MH_I2C_Read... [20:21:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:21:44]Read from MH i2c: E2 [20:21:44]MH_I2C_Read... [20:21:44]Read from MH i2c: E2 03 00 [20:21:44]MH_I2C_Read... [20:21:44]Read from MH i2c: E2 03 00 DF 0B 00 90 00 5E [20:21:44]RAPDU: 90 00 [20:21:44]wFMCommunicate OK [20:21:44]wFMCommunicate request_size=4 [20:21:44]MH_SAM_APDU [20:21:44]CAPDU: 80 0D 03 02 [20:21:44]Write to MH i2c: E2 08 00 E0 0B 80 0D 03 02 00 00 00 00 66 [20:21:44]Write i2c OK [20:21:44]MH_I2C_Read... [20:21:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:21:44]Read from MH i2c: E2 [20:21:44]MH_I2C_Read... [20:21:44]Read from MH i2c: E2 0B 00 [20:21:44]MH_I2C_Read... [20:21:44]Read from MH i2c: E2 0B 00 E0 0B 00 B5 D1 A9 71 2F B0 69 FA 90 00 49 [20:21:44]RAPDU: B5 D1 A9 71 2F B0 69 FA 90 00 [20:21:44]wFMCommunicate OK [20:21:44]SAM_PROTO_SignData done [20:21:44]FM_MakeSignedData done [20:21:44]CreateOFDProtocolMessage [20:21:44]wFMCommunicate request_size=4 [20:21:44]MH_SAM_APDU [20:21:44]CAPDU: 80 11 00 00 [20:21:44]Write to MH i2c: E2 08 00 E1 0B 80 11 00 00 00 00 00 00 66 [20:21:44]Write i2c OK [20:21:44]MH_I2C_Read... [20:21:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:21:44]Read from MH i2c: E2 [20:21:44]MH_I2C_Read... [20:21:44]Read from MH i2c: E2 17 00 [20:21:44]MH_I2C_Read... [20:21:44]Read from MH i2c: E2 17 00 E1 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 BD [20:21:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:21:44]wFMCommunicate OK [20:21:44]CreateOFDProtocolMessage done [20:21:44]OFDSenderStorePacket 227659 [20:21:44]StoreOFDPacket docnum=227659 [20:21:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 8A F2 07 01 60 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 01 00 00 F4 03 04 00 58 66 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4B 79 03 00 35 04 06 00 78 51 C0 5A 9D C9 B5 D1 A9 71 2F B0 69 FA [20:21:44]CheckFolder [20:21:44]dirname=/storage/ofd_packets [20:21:44]CheckFolder done [20:21:44]ProducePacketName [20:21:44]name=ofd_packets/00227659 [20:21:44]NVStorageSaveData ofd_packets/00227659 [20:21:44]File name is /storage/ofd_packets/00227659 [20:21:44]Write 301 bytes [20:21:44]NVStorageSaveData done [20:21:44]OFDSenderStorePacket done [20:21:44]KKMCreateOFDPacket done [20:21:44]NVStorageSaveData kkm_last_timestamp [20:21:44]File name is /storage/kkm_last_timestamp [20:21:44]Write 4 bytes [20:21:44]NVStorageSaveData done [20:21:44]ExternCall_PrintAddStr [20:21:44]wPrintStart [20:21:44]Write to MH i2c: 01 00 00 E2 0B ED [20:21:44]Write i2c OK [20:21:44]MH_I2C_Read... [20:21:44]Read from MH i2c: 01 [20:21:44]MH_I2C_Read... [20:21:44]Read from MH i2c: 01 07 00 [20:21:44]MH_I2C_Read... [20:21:44]Read from MH i2c: 01 07 00 E2 0B 00 00 00 00 00 FF 0F 02 [20:21:44]RasterBufferAndPrint [20:21:44]line Счет N : (1)1963322 [20:21:44]line ИНН: 02508201610067 [20:21:44]line Контрольно-Кассовый Чек [20:21:44]line ПРОДАЖА [20:21:44]line ТРК (МРК, ГНК) : 63 [20:21:44]line Товар: 2710124130 [20:21:44]line Аи-92-К-5 [20:21:44]line 14.950 * 66.90 [20:21:44]line = 1000.16 [20:21:44]line НДС 12% НСП 1% [20:21:44]line > о реализуемом товаре [20:21:44]line ОКРУГЛЕНИЕ: -0.16 [20:21:44]line ИТОГО: 1000.00 [20:21:44]line Внесено: 1000.00 [20:21:44]line СДАЧА: 0.00 [20:21:44]line НСП 1% : 8.85 [20:21:44]line НДС 12% : 106.21 [20:21:44]line Наличными: 1000.00 [20:21:44]line Безнал.: 0.00 [20:21:44]line Место: АЗС № 133 "Партнер Нефть" [20:21:44]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [20:21:44]line СНО: Общий режим [20:21:44]line Чек 507 20.10.2024 20:21 [20:21:44]line Смена: 533 ФФД: 1.0 [20:21:44]line ЗНМ: 0300000091 [20:21:44]line РНМ: 0000000000091685 [20:21:44]line Версия ККМ: 001 [20:21:44]line ФМ: 0000000000871839 [20:21:44]line ФД: 227659 [20:21:44]line ФПД: 132292514848201 [20:21:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T202144&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227659&fm=132292514848201&tin=02508201610067®Number=0000000000091685&sum=100000 [20:21:45]written 0, free lines is 4095 [20:21:45]OFD Sender: Processing packet 227659 [packets to send 38, broken 37] [20:21:45]ProducePacketName [20:21:45]name=ofd_packets/00227659 [20:21:45]OFD Sender: To server: pG, [20:21:45]CommunicateWithHost lk.salyk.kg:30040 [20:21:45]ConnectInit lk.salyk.kg [20:21:45]Connected sock=10 [20:21: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 33 39 0F 01 00 00 8A F2 07 01 60 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 01 00 00 F4 03 04 00 58 66 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4B 79 03 00 35 04 06 00 78 51 C0 5A 9D C9 B5 D1 A9 71 2F B0 69 FA [20:21: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 33 39 4F 00 00 00 EE F9 47 00 31 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4B 79 03 00 F4 03 04 00 56 11 15 67 B6 04 01 00 00 C5 E0 2D 28 94 04 4C 35 [20:21:45]CommunicateWithHost err = 0 [20:21:45]CheckOFDResponse [20:21:45]1017 (14) - 77093643461234 [20:21:45]1041 (16) - 0000000000871839 [20:21:45]1040 (4) - 227659 [20:21:45]1012 (4) - 20.10.2024 14:19 [20:21:45]1206 (1) - 0 [20:21:45]OFD Sender: Remove packet 227659 [20:21:45]ProducePacketName [20:21:45]name=ofd_packets/00227659 [20:21:45]NVStorageDeleteData [20:21:45]Write to MH i2c: 01 00 00 0C 0C 18 [20:21:45]Write i2c OK [20:21:45]MH_I2C_Read... [20:21:45]Read from MH i2c: 01 [20:21:45]MH_I2C_Read... [20:21:45]Read from MH i2c: 01 07 00 [20:21:45]MH_I2C_Read... [20:21:45]Read from MH i2c: 01 07 00 0C 0C 00 00 00 00 00 A8 0C D3 [20:21:45]RasterBufferAndPrint [20:21:45]line [20:21:45]line [20:21:45]line [20:21:45]line [20:21:45]line [20:21:45]written 0, free lines is 3245 [20:21:45]MH_Cut [20:21:45]Write to MH i2c: D1 01 00 13 0C 01 F1 [20:21:45]Write i2c OK [20:21:45]MH_I2C_Read... [20:21:45]Read from MH i2c: D1 [20:21:45]MH_I2C_Read... [20:21:45]Read from MH i2c: D1 01 00 [20:21:45]MH_I2C_Read... [20:21:45]Read from MH i2c: D1 01 00 13 0C 00 F0 [20:21:45]Write to MH i2c: 01 00 00 14 0C 20 [20:21:45]Write i2c OK [20:21:45]MH_I2C_Read... [20:21:45]OFD Sender: No OFD packet to send [20:21:46]*** Cut start [20:21:46]*** Partial cut [20:21:46]*** CUTSNS_PIN = 1 [20:21:46]*** CUTSNS_PIN = 0 [20:21:46]*** Brake cut motor [20:21:47]Read from MH i2c: 01 [20:21:47]MH_I2C_Read... [20:21:47]*** Stop cut motor [20:21:47]*** Cut end [20:21:47]Read from MH i2c: 01 07 00 [20:21:47]MH_I2C_Read... [20:21:47]Read from MH i2c: 01 07 00 14 0C 00 00 00 00 00 FF 0F 35 [20:21:47]process_action close_receipt done [20:21:47]requested_data is exist [20:21:47]produce_requested_data [20:21:47]requested_item fm.sn is exist - process it [20:21:47]wFMCommunicate request_size=4 [20:21:47]MH_SAM_APDU [20:21:47]CAPDU: 80 11 00 00 [20:21:47]Write to MH i2c: E2 08 00 15 0C 80 11 00 00 00 00 00 00 9B [20:21:47]Write i2c OK [20:21:47]MH_I2C_Read... [20:21:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:21:47]Read from MH i2c: E2 [20:21:47]MH_I2C_Read... [20:21:47]Read from MH i2c: E2 17 00 [20:21:47]MH_I2C_Read... [20:21:47]Read from MH i2c: E2 17 00 15 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F2 [20:21:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:21:47]wFMCommunicate OK [20:21:47]requested_item fd.num is exist - process it [20:21:47]SAM_PROTO_GetFieldsCounters [20:21:47]wFMCommunicate request_size=4 [20:21:47]MH_SAM_APDU [20:21:47]CAPDU: 80 13 00 00 [20:21:47]Write to MH i2c: E2 08 00 16 0C 80 13 00 00 00 00 00 00 9E [20:21:47]Write i2c OK [20:21:47]MH_I2C_Read... [20:21:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:21:47]Read from MH i2c: E2 [20:21:47]MH_I2C_Read... [20:21:47]Read from MH i2c: E2 62 00 [20:21:47]MH_I2C_Read... [20:21:47]Read from MH i2c: E2 62 00 16 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 4B 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 FB 01 00 00 5E 04 04 00 FB 01 00 00 57 04 04 00 FC 01 00 00 19 04 04 00 00 00 00 00 90 00 99 [20:21: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 4B 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 FB 01 00 00 5E 04 04 00 FB 01 00 00 57 04 04 00 FC 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:21:47]wFMCommunicate OK [20:21:47]SAM_PROTO_GetFieldsCounters done [20:21:47]requested_item shift.num is exist - process it [20:21:47]requested_item shift.opened is exist - process it [20:21:47]req_shift_opened [20:21:47]FM_GetShiftState [20:21:47]SAM_PROTO_GetShiftState [20:21:47]wFMCommunicate request_size=4 [20:21:47]MH_SAM_APDU [20:21:47]CAPDU: 80 13 01 00 [20:21:47]Write to MH i2c: E2 08 00 17 0C 80 13 01 00 00 00 00 00 A0 [20:21:47]Write i2c OK [20:21:47]MH_I2C_Read... [20:21:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:21:47]Read from MH i2c: E2 [20:21:47]MH_I2C_Read... [20:21:47]Read from MH i2c: E2 0E 00 [20:21:47]MH_I2C_Read... [20:21:47]Read from MH i2c: E2 0E 00 17 0C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 BA [20:21:47]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:21:47]wFMCommunicate OK [20:21:47]SAM_PROTO_GetShiftState done [20:21:47]FM_GetShiftState done [20:21:47]req_shift_opened done [20:21:47]requested_item shift.open_date is exist - process it [20:21:47]req_shift_open_date [20:21:47]req_shift_open_date done [20:21:47]produce_requested_data done [20:21:47]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227659,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [20:21:47]process_action_free close_receipt [20:21:47]json_value_free [20:21:47]json_value_free done [20:21:47]process_json_proto returns [20:21:47]Send response to host [20:21:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227659,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [20:21:47]free response buf [20:21:47]execute_script done [20:21:47]execute_script returns [20:21:47]free content buf [20:21:47]Sock 7.Close socket [20:21:47]Sock 7.Thread stoped [20:21:50]OFD Sender: No OFD packet to send [20:21:55]OFD Sender: No OFD packet to send [20:22:00]OFD Sender: No OFD packet to send [20:22:05]OFD Sender: No OFD packet to send [20:22:10]OFD Sender: No OFD packet to send [20:22:13]accept exits with 9 [20:22:13]New connection [20:22:13]New thread 3066809700 created [20:22:13]Thread 3066666340 joined [20:22:13]Waiting for new connection... [20:22:13] Sock 9.Parse request [20:22:13]Sock 9.Check first char [20:22:13]Sock 9.First char is OK [20:22:13]request: POST /json_proto HTTP/1.0 [20:22:13]Method: POST [20:22:13]URL: /json_proto [20:22:13]Method is POST - this is cgi request [20:22:13]url: /json_proto [20:22:13]query_string will be loaded in cgi processing [20:22:13]execute_cgi json_proto POST (null) [20:22:13]execute_cgi path=json_proto method=POST [20:22:13]POST find Content-Length [20:22:13]Host: 172.17.44.195:8080 [20:22:13]Content-Length: 660 [20:22:13]Content-Type: application/json [20:22:13] [20:22:13]POST finish read [20:22:13]Found Content-Length = 660 [20:22:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963323", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 11.700, "sum" : 800.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:22:13]execute_script... [20: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)1963323", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 11.700, "sum" : 800.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:22:13]POST & json_proto [20:22:13]process_json_proto [20:22:13]json parsed OK: [20:22:13]protocol is kg_v1.0 [20:22:13]action value=close_receipt [20:22:13]process_action close_receipt [20:22:13]cmd_close_receipt [20:22:13]MH_GetDate [20:22:13]Write to MH i2c: F0 00 00 18 0C 13 [20:22:13]Write i2c OK [20:22:13]MH_I2C_Read... [20:22:13]Read from MH i2c: F0 [20:22:13]MH_I2C_Read... [20:22:13]Read from MH i2c: F0 09 00 [20:22:13]MH_I2C_Read... [20:22:13]Read from MH i2c: F0 09 00 18 0C 00 76 66 15 67 82 C9 CF 66 F4 [20:22:13]GetLastDocTimeStamp 1729455704 [20:22:13]current date 1729455734 [20:22:13]FM_GetShiftState [20:22:13]SAM_PROTO_GetShiftState [20:22:13]wFMCommunicate request_size=4 [20:22:13]MH_SAM_APDU [20:22:13]CAPDU: 80 13 01 00 [20:22:13]Write to MH i2c: E2 08 00 19 0C 80 13 01 00 00 00 00 00 A2 [20:22:13]Write i2c OK [20:22:13]MH_I2C_Read... [20:22:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:22:13]Read from MH i2c: E2 [20:22:13]MH_I2C_Read... [20:22:13]Read from MH i2c: E2 0E 00 [20:22:13]MH_I2C_Read... [20:22:13]Read from MH i2c: E2 0E 00 19 0C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 BC [20:22:13]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:22:13]wFMCommunicate OK [20:22:13]SAM_PROTO_GetShiftState done [20:22:13]FM_GetShiftState done [20:22:13]opened in 1729383750 [20:22:13]opened+sec_in_day 1729470150 [20:22:13]quantity*price = 80028 [20:22:13]sum+1 = 80029 [20:22:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.98 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 508 20.10.2024 20:22 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227660 ФПД: 141768351001272 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T202214&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227660&fm=141768351001272&tin=02508201610067®Number=0000000000091685&sum=80000 [20:22:14]StoreToDocumentArchive [20:22:14]shift 533 fd 227660 [20:22:14]save to /storage/0533/doc_00227660 [20:22:14]save last doc name /storage/0533/doc_00227660 to /storage/kkm_last_doc_name [20:22:14]save OK [20:22:14]Clear old archive folders... [20:22:14]ProcessDocumentItem done err = 0, tmpTLVsize=244 [20:22:14]tlvbuf is 00C92FC0 [20:22:14]SAM_PROTO_ClearQueue [20:22:14]wFMCommunicate request_size=4 [20:22:14]MH_SAM_APDU [20:22:14]CAPDU: 80 09 00 00 [20:22:14]Write to MH i2c: E2 08 00 26 0C 80 09 00 00 00 00 00 00 A4 [20:22:14]Write i2c OK [20:22:14]MH_I2C_Read... [20:22:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:22:14]Read from MH i2c: E2 [20:22:14]MH_I2C_Read... [20:22:14]Read from MH i2c: E2 03 00 [20:22:14]MH_I2C_Read... [20:22:14]Read from MH i2c: E2 03 00 26 0C 00 90 00 A6 [20:22:14]RAPDU: 90 00 [20:22:14]wFMCommunicate OK [20:22:14]SAM_PROTO_ClearQueue done [20:22:14]KKMCreateOFDPacket [20:22:14]OFDProtocolAddRootSTLVToBuf [20:22:14]FM_MakeSignedData [20:22:14]FM_MakeSignedData [20:22:14]SAM_PROTO_SignData [20:22:14]wFMCommunicate request_size=4 [20:22:14]MH_SAM_APDU [20:22:14]CAPDU: 80 0D 01 02 [20:22:14]Write to MH i2c: E2 08 00 27 0C 80 0D 01 02 00 00 00 00 AC [20:22:14]Write i2c OK [20:22:14]MH_I2C_Read... [20:22:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:22:15]Read from MH i2c: E2 [20:22:15]MH_I2C_Read... [20:22:15]Read from MH i2c: E2 03 00 [20:22:15]MH_I2C_Read... [20:22:15]Read from MH i2c: E2 03 00 27 0C 00 90 00 A7 [20:22:15]RAPDU: 90 00 [20:22:15]wFMCommunicate OK [20:22:15]wFMCommunicate request_size=253 [20:22:15]MH_SAM_APDU [20:22:15]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 B4 2D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9C 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 FC 01 00 00 F4 03 04 00 76 66 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4C 79 03 00 35 04 06 00 80 F0 04 33 AA B8 [20:22:15]Write to MH i2c: E2 00 01 28 0C 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 B4 2D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9C 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 FC 01 00 00 F4 03 04 00 76 66 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4C 79 03 00 35 04 06 00 80 F0 04 33 AA B8 00 00 BC [20:22:15]Write i2c OK [20:22:15]MH_I2C_Read... [20:22:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:22:15]Read from MH i2c: E2 [20:22:15]MH_I2C_Read... [20:22:15]Read from MH i2c: E2 03 00 [20:22:15]MH_I2C_Read... [20:22:15]Read from MH i2c: E2 03 00 28 0C 00 90 00 A8 [20:22:15]RAPDU: 90 00 [20:22:15]wFMCommunicate OK [20:22:15]wFMCommunicate request_size=4 [20:22:15]MH_SAM_APDU [20:22:15]CAPDU: 80 0D 03 02 [20:22:15]Write to MH i2c: E2 08 00 29 0C 80 0D 03 02 00 00 00 00 B0 [20:22:15]Write i2c OK [20:22:15]MH_I2C_Read... [20:22:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:22:15]Read from MH i2c: E2 [20:22:15]MH_I2C_Read... [20:22:15]Read from MH i2c: E2 0B 00 [20:22:15]MH_I2C_Read... [20:22:15]Read from MH i2c: E2 0B 00 29 0C 00 B3 73 70 52 B5 4C 9F 82 90 00 BB [20:22:15]RAPDU: B3 73 70 52 B5 4C 9F 82 90 00 [20:22:15]wFMCommunicate OK [20:22:15]SAM_PROTO_SignData done [20:22:15]FM_MakeSignedData done [20:22:15]CreateOFDProtocolMessage [20:22:15]wFMCommunicate request_size=4 [20:22:15]MH_SAM_APDU [20:22:15]CAPDU: 80 11 00 00 [20:22:15]Write to MH i2c: E2 08 00 2A 0C 80 11 00 00 00 00 00 00 B0 [20:22:15]Write i2c OK [20:22:15]MH_I2C_Read... [20:22:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:22:15]Read from MH i2c: E2 [20:22:15]MH_I2C_Read... [20:22:15]Read from MH i2c: E2 17 00 [20:22:15]MH_I2C_Read... [20:22:15]Read from MH i2c: E2 17 00 2A 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 07 [20:22:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:22:15]wFMCommunicate OK [20:22:15]CreateOFDProtocolMessage done [20:22:15]OFDSenderStorePacket 227660 [20:22:15]StoreOFDPacket docnum=227660 [20:22:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 E4 2F 00 01 7C D8 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 B4 2D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9C 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 FC 01 00 00 F4 03 04 00 76 66 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4C 79 03 00 35 04 06 00 80 F0 04 33 AA B8 B3 73 70 52 B5 4C 9F 82 [20:22:15]CheckFolder [20:22:15]dirname=/storage/ofd_packets [20:22:15]CheckFolder done [20:22:15]ProducePacketName [20:22:15]name=ofd_packets/00227660 [20:22:15]NVStorageSaveData ofd_packets/00227660 [20:22:15]File name is /storage/ofd_packets/00227660 [20:22:15]Write 294 bytes [20:22:15]NVStorageSaveData done [20:22:15]OFDSenderStorePacket done [20:22:15]KKMCreateOFDPacket done [20:22:15]NVStorageSaveData kkm_last_timestamp [20:22:15]File name is /storage/kkm_last_timestamp [20:22:15]Write 4 bytes [20:22:15]NVStorageSaveData done [20:22:15]ExternCall_PrintAddStr [20:22:15]wPrintStart [20:22:15]Write to MH i2c: 01 00 00 2B 0C 37 [20:22:15]Write i2c OK [20:22:15]MH_I2C_Read... [20:22:15]Read from MH i2c: 01 [20:22:15]MH_I2C_Read... [20:22:15]Read from MH i2c: 01 07 00 [20:22:15]MH_I2C_Read... [20:22:15]Read from MH i2c: 01 07 00 2B 0C 00 00 00 00 00 FF 0F 4C [20:22:15]RasterBufferAndPrint [20:22:15]line Счет N : (1)1963323 [20:22:15]line ИНН: 02508201610067 [20:22:15]line Контрольно-Кассовый Чек [20:22:15]line ПРОДАЖА [20:22:15]line ТРК (МРК, ГНК) : 52 [20:22:15]line Товар: 2710124130 [20:22:15]line SU-92 [20:22:15]line 11.700 * 68.40 [20:22:15]line = 800.28 [20:22:15]line НДС 12% НСП 1% [20:22:15]line > о реализуемом товаре [20:22:15]line ОКРУГЛЕНИЕ: -0.28 [20:22:15]line ИТОГО: 800.00 [20:22:15]line Внесено: 800.00 [20:22:15]line СДАЧА: 0.00 [20:22:15]line НСП 1% : 7.08 [20:22:15]line НДС 12% : 84.98 [20:22:15]line Наличными: 800.00 [20:22:15]line Безнал.: 0.00 [20:22:15]line Место: АЗС № 133 "Партнер Нефть" [20:22:15]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [20:22:15]line СНО: Общий режим [20:22:15]line Чек 508 20.10.2024 20:22 [20:22:15]line Смена: 533 ФФД: 1.0 [20:22:15]line ЗНМ: 0300000091 [20:22:15]line РНМ: 0000000000091685 [20:22:15]line Версия ККМ: 001 [20:22:15]line ФМ: 0000000000871839 [20:22:15]line ФД: 227660 [20:22:15]line ФПД: 141768351001272 [20:22:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T202214&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227660&fm=141768351001272&tin=02508201610067®Number=0000000000091685&sum=80000 [20:22:15]OFD Sender: Processing packet 227660 [packets to send 38, broken 37] [20:22:15]ProducePacketName [20:22:15]name=ofd_packets/00227660 [20:22:15]OFD Sender: To server: pG, [20:22:15]CommunicateWithHost lk.salyk.kg:30040 [20:22:15]ConnectInit lk.salyk.kg [20:22:15]written 0, free lines is 4095 [20:22:15]Connected sock=10 [20:22: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 33 39 08 01 00 00 E4 2F 00 01 7C D8 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 B4 2D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9C 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 FC 01 00 00 F4 03 04 00 76 66 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4C 79 03 00 35 04 06 00 80 F0 04 33 AA B8 B3 73 70 52 B5 4C 9F 82 [20: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 33 39 4F 00 00 00 2C AB 47 00 9E 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4C 79 03 00 F4 03 04 00 74 11 15 67 B6 04 01 00 00 67 29 85 A0 68 7B B6 1E [20:22:16]CommunicateWithHost err = 0 [20:22:16]CheckOFDResponse [20:22:16]1017 (14) - 77093643461234 [20:22:16]1041 (16) - 0000000000871839 [20:22:16]1040 (4) - 227660 [20:22:16]1012 (4) - 20.10.2024 14:19 [20:22:16]1206 (1) - 0 [20:22:16]OFD Sender: Remove packet 227660 [20:22:16]ProducePacketName [20:22:16]name=ofd_packets/00227660 [20:22:16]NVStorageDeleteData [20:22:16]Write to MH i2c: 01 00 00 55 0C 61 [20:22:16]Write i2c OK [20:22:16]MH_I2C_Read... [20:22:16]Read from MH i2c: 01 [20:22:16]MH_I2C_Read... [20:22:16]Read from MH i2c: 01 07 00 [20:22:16]MH_I2C_Read... [20:22:16]Read from MH i2c: 01 07 00 55 0C 00 00 00 00 00 B5 0C 29 [20:22:16]RasterBufferAndPrint [20:22:16]line [20:22:16]line [20:22:16]line [20:22:16]line [20:22:16]line [20:22:16]written 0, free lines is 3256 [20:22:16]MH_Cut [20:22:16]Write to MH i2c: D1 01 00 5C 0C 01 3A [20:22:16]Write i2c OK [20:22:16]MH_I2C_Read... [20:22:16]Read from MH i2c: D1 [20:22:16]MH_I2C_Read... [20:22:16]Read from MH i2c: D1 01 00 [20:22:16]MH_I2C_Read... [20:22:16]Read from MH i2c: D1 01 00 5C 0C 00 39 [20:22:16]Write to MH i2c: 01 00 00 5D 0C 69 [20:22:16]Write i2c OK [20:22:16]MH_I2C_Read... [20:22:16]OFD Sender: No OFD packet to send [20:22:17]*** Cut start [20:22:17]*** Partial cut [20:22:17]*** CUTSNS_PIN = 1 [20:22:17]*** CUTSNS_PIN = 0 [20:22:17]*** Brake cut motor [20:22:17]Read from MH i2c: 01 [20:22:17]MH_I2C_Read... [20:22:17]*** Stop cut motor [20:22:17]*** Cut end [20:22:17]Read from MH i2c: 01 07 00 [20:22:17]MH_I2C_Read... [20:22:17]Read from MH i2c: 01 07 00 5D 0C 00 00 00 00 00 FF 0F 7E [20:22:17]process_action close_receipt done [20:22:17]requested_data is exist [20:22:17]produce_requested_data [20:22:17]requested_item fm.sn is exist - process it [20:22:17]wFMCommunicate request_size=4 [20:22:17]MH_SAM_APDU [20:22:17]CAPDU: 80 11 00 00 [20:22:17]Write to MH i2c: E2 08 00 5E 0C 80 11 00 00 00 00 00 00 E4 [20:22:17]Write i2c OK [20:22:17]MH_I2C_Read... [20:22:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:22:17]Read from MH i2c: E2 [20:22:17]MH_I2C_Read... [20:22:17]Read from MH i2c: E2 17 00 [20:22:17]MH_I2C_Read... [20:22:17]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 33 39 90 00 3B [20:22:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:22:17]wFMCommunicate OK [20:22:17]requested_item fd.num is exist - process it [20:22:17]SAM_PROTO_GetFieldsCounters [20:22:17]wFMCommunicate request_size=4 [20:22:17]MH_SAM_APDU [20:22:17]CAPDU: 80 13 00 00 [20:22:17]Write to MH i2c: E2 08 00 5F 0C 80 13 00 00 00 00 00 00 E7 [20:22:17]Write i2c OK [20:22:17]MH_I2C_Read... [20:22:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:22:17]Read from MH i2c: E2 [20:22:17]MH_I2C_Read... [20:22:17]Read from MH i2c: E2 62 00 [20:22:17]MH_I2C_Read... [20:22:17]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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 4C 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 FC 01 00 00 5E 04 04 00 FC 01 00 00 57 04 04 00 FD 01 00 00 19 04 04 00 00 00 00 00 90 00 E6 [20: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 4C 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 FC 01 00 00 5E 04 04 00 FC 01 00 00 57 04 04 00 FD 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:22:17]wFMCommunicate OK [20:22:17]SAM_PROTO_GetFieldsCounters done [20:22:17]requested_item shift.num is exist - process it [20:22:17]requested_item shift.opened is exist - process it [20:22:17]req_shift_opened [20:22:17]FM_GetShiftState [20:22:17]SAM_PROTO_GetShiftState [20:22:17]wFMCommunicate request_size=4 [20:22:17]MH_SAM_APDU [20:22:17]CAPDU: 80 13 01 00 [20:22:17]Write to MH i2c: E2 08 00 60 0C 80 13 01 00 00 00 00 00 E9 [20:22:17]Write i2c OK [20:22:17]MH_I2C_Read... [20:22:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:22:17]Read from MH i2c: E2 [20:22:17]MH_I2C_Read... [20:22:17]Read from MH i2c: E2 0E 00 [20:22:17]MH_I2C_Read... [20:22:17]Read from MH i2c: E2 0E 00 60 0C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 03 [20:22:17]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:22:17]wFMCommunicate OK [20:22:17]SAM_PROTO_GetShiftState done [20:22:17]FM_GetShiftState done [20:22:17]req_shift_opened done [20:22:17]requested_item shift.open_date is exist - process it [20:22:17]req_shift_open_date [20:22:17]req_shift_open_date done [20:22:17]produce_requested_data done [20:22:17]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227660,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [20:22:17]process_action_free close_receipt [20:22:17]json_value_free [20:22:17]json_value_free done [20:22:17]process_json_proto returns [20:22:17]Send response to host [20:22:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227660,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [20:22:17]free response buf [20:22:17]execute_script done [20:22:17]execute_script returns [20:22:17]free content buf [20:22:17]Sock 9.Close socket [20:22:17]Sock 9.Thread stoped [20:22:21]OFD Sender: No OFD packet to send [20:22:26]OFD Sender: No OFD packet to send [20:22:31]OFD Sender: No OFD packet to send [20:22:32]accept exits with 7 [20:22:32]New connection [20:22:32]New thread 3066666340 created [20:22:32]Thread 3066809700 joined [20:22:32]Waiting for new connection... [20:22:32] Sock 7.Parse request [20:22:32]Sock 7.Check first char [20:22:32]Sock 7.First char is OK [20:22:32]request: POST /json_proto HTTP/1.0 [20:22:32]Method: POST [20:22:32]URL: /json_proto [20:22:32]Method is POST - this is cgi request [20:22:32]url: /json_proto [20:22:32]query_string will be loaded in cgi processing [20:22:32]execute_cgi json_proto POST (null) [20:22:32]execute_cgi path=json_proto method=POST [20:22:32]POST find Content-Length [20:22:32]Host: 172.17.44.195:8080 [20:22:32]Content-Length: 748 [20:22:32]Content-Type: application/json [20:22:32] [20:22:32]POST finish read [20:22:32]Found Content-Length = 748 [20:22:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963324", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:22:32]execute_script... [20:22:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963324", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:22:32]POST & json_proto [20:22:32]process_json_proto [20:22:32]json parsed OK: [20:22:32]protocol is kg_v1.0 [20:22:32]action value=close_receipt [20:22:32]process_action close_receipt [20:22:32]cmd_close_receipt [20:22:32]MH_GetDate [20:22:32]Write to MH i2c: F0 00 00 61 0C 5C [20:22:32]Write i2c OK [20:22:32]MH_I2C_Read... [20:22:32]Read from MH i2c: F0 [20:22:32]MH_I2C_Read... [20:22:32]Read from MH i2c: F0 09 00 [20:22:32]MH_I2C_Read... [20:22:32]Read from MH i2c: F0 09 00 61 0C 00 88 66 15 67 82 C9 CF 66 4F [20:22:32]GetLastDocTimeStamp 1729455734 [20:22:32]current date 1729455752 [20:22:32]FM_GetShiftState [20:22:32]SAM_PROTO_GetShiftState [20:22:32]wFMCommunicate request_size=4 [20:22:32]MH_SAM_APDU [20:22:32]CAPDU: 80 13 01 00 [20:22:32]Write to MH i2c: E2 08 00 62 0C 80 13 01 00 00 00 00 00 EB [20:22:32]Write i2c OK [20:22:32]MH_I2C_Read... [20:22:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:22:32]Read from MH i2c: E2 [20:22:32]MH_I2C_Read... [20:22:32]Read from MH i2c: E2 0E 00 [20:22:32]MH_I2C_Read... [20:22:32]Read from MH i2c: E2 0E 00 62 0C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 05 [20:22:32]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:22:32]wFMCommunicate OK [20:22:32]SAM_PROTO_GetShiftState done [20:22:32]FM_GetShiftState done [20:22:32]opened in 1729383750 [20:22:32]opened+sec_in_day 1729470150 [20:22:32]quantity*price = 50000 [20:22:32]sum+1 = 50001 [20:22:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 0.00 Безнал.: 500.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 509 20.10.2024 20:22 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 227661 ФПД: 125341567967603 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T202233&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227661&fm=125341567967603&tin=02508201610067®Number=0000000000091685&sum=50000 [20:22:33]StoreToDocumentArchive [20:22:33]shift 533 fd 227661 [20:22:33]save to /storage/0533/doc_00227661 [20:22:33]save last doc name /storage/0533/doc_00227661 to /storage/kkm_last_doc_name [20:22:33]save OK [20:22:33]Clear old archive folders... [20:22:33]ProcessDocumentItem done err = 0, tmpTLVsize=244 [20:22:33]tlvbuf is 00C281E0 [20:22:33]SAM_PROTO_ClearQueue [20:22:33]wFMCommunicate request_size=4 [20:22:33]MH_SAM_APDU [20:22:33]CAPDU: 80 09 00 00 [20:22:33]Write to MH i2c: E2 08 00 6F 0C 80 09 00 00 00 00 00 00 ED [20:22:33]Write i2c OK [20:22:33]MH_I2C_Read... [20:22:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:22:33]Read from MH i2c: E2 [20:22:33]MH_I2C_Read... [20:22:33]Read from MH i2c: E2 03 00 [20:22:33]MH_I2C_Read... [20:22:33]Read from MH i2c: E2 03 00 6F 0C 00 90 00 EF [20:22:33]RAPDU: 90 00 [20:22:33]wFMCommunicate OK [20:22:33]SAM_PROTO_ClearQueue done [20:22:33]KKMCreateOFDPacket [20:22:33]OFDProtocolAddRootSTLVToBuf [20:22:33]FM_MakeSignedData [20:22:33]FM_MakeSignedData [20:22:33]SAM_PROTO_SignData [20:22:33]wFMCommunicate request_size=4 [20:22:33]MH_SAM_APDU [20:22:33]CAPDU: 80 0D 01 02 [20:22:33]Write to MH i2c: E2 08 00 70 0C 80 0D 01 02 00 00 00 00 F5 [20:22:33]Write i2c OK [20:22:33]MH_I2C_Read... [20:22:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:22:33]Read from MH i2c: E2 [20:22:33]MH_I2C_Read... [20:22:33]Read from MH i2c: E2 03 00 [20:22:33]MH_I2C_Read... [20:22:33]Read from MH i2c: E2 03 00 70 0C 00 90 00 F0 [20:22:33]RAPDU: 90 00 [20:22:33]wFMCommunicate OK [20:22:33]wFMCommunicate request_size=253 [20:22:33]MH_SAM_APDU [20:22:33]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 01 00 00 F4 03 04 00 89 66 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4D 79 03 00 35 04 06 00 71 FF 5B A2 61 73 [20:22:33]Write to MH i2c: E2 00 01 71 0C 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 01 00 00 F4 03 04 00 89 66 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4D 79 03 00 35 04 06 00 71 FF 5B A2 61 73 00 00 81 [20:22:33]Write i2c OK [20:22:33]MH_I2C_Read... [20:22:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:22:33]Read from MH i2c: E2 [20:22:33]MH_I2C_Read... [20:22:33]Read from MH i2c: E2 03 00 [20:22:33]MH_I2C_Read... [20:22:33]Read from MH i2c: E2 03 00 71 0C 00 90 00 F1 [20:22:33]RAPDU: 90 00 [20:22:33]wFMCommunicate OK [20:22:33]wFMCommunicate request_size=4 [20:22:33]MH_SAM_APDU [20:22:33]CAPDU: 80 0D 03 02 [20:22:33]Write to MH i2c: E2 08 00 72 0C 80 0D 03 02 00 00 00 00 F9 [20:22:33]Write i2c OK [20:22:33]MH_I2C_Read... [20:22:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:22:33]Read from MH i2c: E2 [20:22:33]MH_I2C_Read... [20:22:33]Read from MH i2c: E2 0B 00 [20:22:33]MH_I2C_Read... [20:22:33]Read from MH i2c: E2 0B 00 72 0C 00 D4 81 BC 78 EF 12 FA 02 90 00 80 [20:22:33]RAPDU: D4 81 BC 78 EF 12 FA 02 90 00 [20:22:33]wFMCommunicate OK [20:22:33]SAM_PROTO_SignData done [20:22:33]FM_MakeSignedData done [20:22:33]CreateOFDProtocolMessage [20:22:33]wFMCommunicate request_size=4 [20:22:33]MH_SAM_APDU [20:22:33]CAPDU: 80 11 00 00 [20:22:33]Write to MH i2c: E2 08 00 73 0C 80 11 00 00 00 00 00 00 F9 [20:22:33]Write i2c OK [20:22:33]MH_I2C_Read... [20:22:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:22:33]Read from MH i2c: E2 [20:22:33]MH_I2C_Read... [20:22:33]Read from MH i2c: E2 17 00 [20:22:33]MH_I2C_Read... [20:22:33]Read from MH i2c: E2 17 00 73 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 50 [20:22:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:22:33]wFMCommunicate OK [20:22:33]CreateOFDProtocolMessage done [20:22:33]OFDSenderStorePacket 227661 [20:22:33]StoreOFDPacket docnum=227661 [20:22:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 2A 96 00 01 E1 72 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 01 00 00 F4 03 04 00 89 66 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4D 79 03 00 35 04 06 00 71 FF 5B A2 61 73 D4 81 BC 78 EF 12 FA 02 [20:22:33]CheckFolder [20:22:33]dirname=/storage/ofd_packets [20:22:33]CheckFolder done [20:22:33]ProducePacketName [20:22:33]name=ofd_packets/00227661 [20:22:33]NVStorageSaveData ofd_packets/00227661 [20:22:33]File name is /storage/ofd_packets/00227661 [20:22:33]Write 294 bytes [20:22:33]NVStorageSaveData done [20:22:33]OFDSenderStorePacket done [20:22:33]KKMCreateOFDPacket done [20:22:33]NVStorageSaveData kkm_last_timestamp [20:22:33]File name is /storage/kkm_last_timestamp [20:22:33]Write 4 bytes [20:22:33]NVStorageSaveData done [20:22:33]ExternCall_PrintAddStr [20:22:33]wPrintStart [20:22:33]Write to MH i2c: 01 00 00 74 0C 80 [20:22:33]Write i2c OK [20:22:33]MH_I2C_Read... [20:22:33]Read from MH i2c: 01 [20:22:33]MH_I2C_Read... [20:22:33]Read from MH i2c: 01 07 00 [20:22:33]MH_I2C_Read... [20:22:33]Read from MH i2c: 01 07 00 74 0C 00 00 00 00 00 FF 0F 95 [20:22:33]RasterBufferAndPrint [20:22:33]line Счет N : (1)1963324 [20:22:33]line ИНН: 02508201610067 [20:22:33]line Контрольно-Кассовый Чек [20:22:33]line ПРОДАЖА [20:22:33]line ТРК (МРК, ГНК) : 32 [20:22:33]line Товар: 2710124130 [20:22:33]line SU-92 [20:22:33]line 7.310 * 68.40 [20:22:33]line = 500.00 [20:22:33]line НДС 12% НСП 1% [20:22:33]line > о реализуемом товаре [20:22:33]line ИТОГО: 500.00 [20:22:33]line НСП 1% : 4.42 [20:22:33]line НДС 12% : 53.10 [20:22:33]line Наличными: 0.00 [20:22:33]line Безнал.: 500.00 [20:22:33]line Место: АЗС № 133 "Партнер Нефть" [20:22:33]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [20:22:33]line СНО: Общий режим [20:22:33]line Чек 509 20.10.2024 20:22 [20:22:33]line Смена: 533 ФФД: 1.0 [20:22:33]line ЗНМ: 0300000091 [20:22:33]line РНМ: 0000000000091685 [20:22:33]line Версия ККМ: 001 [20:22:33]line Платежная система: Mbank [20:22:33]line ФМ: 0000000000871839 [20:22:33]line ФД: 227661 [20:22:33]line ФПД: 125341567967603 [20:22:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T202233&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227661&fm=125341567967603&tin=02508201610067®Number=0000000000091685&sum=50000 [20:22:33]OFD Sender: Processing packet 227661 [packets to send 38, broken 37] [20:22:33]ProducePacketName [20:22:33]name=ofd_packets/00227661 [20:22:33]OFD Sender: To server: pG, [20:22:33]CommunicateWithHost lk.salyk.kg:30040 [20:22:33]ConnectInit lk.salyk.kg [20:22:33]written 0, free lines is 4095 [20:22:33]Connected sock=10 [20: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 33 39 08 01 00 00 2A 96 00 01 E1 72 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 01 00 00 F4 03 04 00 89 66 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4D 79 03 00 35 04 06 00 71 FF 5B A2 61 73 D4 81 BC 78 EF 12 FA 02 [20:22:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 14 1D 47 00 7A 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 33 39 10 04 04 00 4D 79 03 00 F4 03 04 00 86 11 15 67 B6 04 01 00 00 95 B0 C4 8C 86 8F 54 59 [20:22:34]CommunicateWithHost err = 0 [20:22:34]CheckOFDResponse [20:22:34]1017 (14) - 77093643461234 [20:22:34]1041 (16) - 0000000000871839 [20:22:34]1040 (4) - 227661 [20:22:34]1012 (4) - 20.10.2024 14:19 [20:22:34]1206 (1) - 0 [20:22:34]OFD Sender: Remove packet 227661 [20:22:34]ProducePacketName [20:22:34]name=ofd_packets/00227661 [20:22:34]NVStorageDeleteData [20:22:34]Write to MH i2c: 01 00 00 9C 0C A8 [20:22:34]Write i2c OK [20:22:34]MH_I2C_Read... [20:22:34]Read from MH i2c: 01 [20:22:34]MH_I2C_Read... [20:22:34]Read from MH i2c: 01 07 00 [20:22:34]MH_I2C_Read... [20:22:34]Read from MH i2c: 01 07 00 9C 0C 00 00 00 00 00 E6 0C A1 [20:22:34]RasterBufferAndPrint [20:22:34]line [20:22:34]line [20:22:34]line [20:22:34]line [20:22:34]line [20:22:34]written 0, free lines is 3308 [20:22:34]MH_Cut [20:22:34]Write to MH i2c: D1 01 00 A3 0C 01 81 [20:22:34]Write i2c OK [20:22:34]MH_I2C_Read... [20:22:34]Read from MH i2c: D1 [20:22:34]MH_I2C_Read... [20:22:34]Read from MH i2c: D1 01 00 [20:22:34]MH_I2C_Read... [20:22:34]Read from MH i2c: D1 01 00 A3 0C 00 80 [20:22:34]Write to MH i2c: 01 00 00 A4 0C B0 [20:22:34]Write i2c OK [20:22:34]MH_I2C_Read... [20:22:34]OFD Sender: No OFD packet to send [20:22:35]*** Cut start [20:22:35]*** Partial cut [20:22:35]*** CUTSNS_PIN = 1 [20:22:35]*** CUTSNS_PIN = 0 [20:22:35]*** Brake cut motor [20:22:35]Read from MH i2c: 01 [20:22:35]MH_I2C_Read... [20:22:35]*** Stop cut motor [20:22:35]*** Cut end [20:22:35]Read from MH i2c: 01 07 00 [20:22:35]MH_I2C_Read... [20:22:35]Read from MH i2c: 01 07 00 A4 0C 00 00 00 00 00 FF 0F C5 [20:22:35]process_action close_receipt done [20:22:35]requested_data is exist [20:22:35]produce_requested_data [20:22:35]requested_item fm.sn is exist - process it [20:22:35]wFMCommunicate request_size=4 [20:22:35]MH_SAM_APDU [20:22:35]CAPDU: 80 11 00 00 [20:22:35]Write to MH i2c: E2 08 00 A5 0C 80 11 00 00 00 00 00 00 2B [20:22:35]Write i2c OK [20:22:35]MH_I2C_Read... [20:22:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:22:35]Read from MH i2c: E2 [20:22:35]MH_I2C_Read... [20:22:35]Read from MH i2c: E2 17 00 [20:22:35]MH_I2C_Read... [20:22:35]Read from MH i2c: E2 17 00 A5 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 82 [20:22:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:22:35]wFMCommunicate OK [20:22:35]requested_item fd.num is exist - process it [20:22:35]SAM_PROTO_GetFieldsCounters [20:22:35]wFMCommunicate request_size=4 [20:22:35]MH_SAM_APDU [20:22:35]CAPDU: 80 13 00 00 [20:22:35]Write to MH i2c: E2 08 00 A6 0C 80 13 00 00 00 00 00 00 2E [20:22:35]Write i2c OK [20:22:35]MH_I2C_Read... [20:22:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:22:36]Read from MH i2c: E2 [20:22:36]MH_I2C_Read... [20:22:36]Read from MH i2c: E2 62 00 [20:22:36]MH_I2C_Read... [20:22:36]Read from MH i2c: E2 62 00 A6 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 4D 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 FD 01 00 00 5E 04 04 00 FD 01 00 00 57 04 04 00 FE 01 00 00 19 04 04 00 00 00 00 00 90 00 31 [20:22: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 4D 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 FD 01 00 00 5E 04 04 00 FD 01 00 00 57 04 04 00 FE 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:22:36]wFMCommunicate OK [20:22:36]SAM_PROTO_GetFieldsCounters done [20:22:36]requested_item shift.num is exist - process it [20:22:36]requested_item shift.opened is exist - process it [20:22:36]req_shift_opened [20:22:36]FM_GetShiftState [20:22:36]SAM_PROTO_GetShiftState [20:22:36]wFMCommunicate request_size=4 [20:22:36]MH_SAM_APDU [20:22:36]CAPDU: 80 13 01 00 [20:22:36]Write to MH i2c: E2 08 00 A7 0C 80 13 01 00 00 00 00 00 30 [20:22:36]Write i2c OK [20:22:36]MH_I2C_Read... [20:22:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:22:36]Read from MH i2c: E2 [20:22:36]MH_I2C_Read... [20:22:36]Read from MH i2c: E2 0E 00 [20:22:36]MH_I2C_Read... [20:22:36]Read from MH i2c: E2 0E 00 A7 0C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 4A [20:22:36]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:22:36]wFMCommunicate OK [20:22:36]SAM_PROTO_GetShiftState done [20:22:36]FM_GetShiftState done [20:22:36]req_shift_opened done [20:22:36]requested_item shift.open_date is exist - process it [20:22:36]req_shift_open_date [20:22:36]req_shift_open_date done [20:22:36]produce_requested_data done [20:22:36]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227661,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [20:22:36]process_action_free close_receipt [20:22:36]json_value_free [20:22:36]json_value_free done [20:22:36]process_json_proto returns [20:22:36]Send response to host [20:22:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227661,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [20:22:36]free response buf [20:22:36]execute_script done [20:22:36]execute_script returns [20:22:36]free content buf [20:22:36]Sock 7.Close socket [20:22:36]Sock 7.Thread stoped [20:22:39]OFD Sender: No OFD packet to send [20:22:44]OFD Sender: No OFD packet to send [20:22:49]OFD Sender: No OFD packet to send [20:22:54]OFD Sender: No OFD packet to send [20:22:59]OFD Sender: No OFD packet to send [20:23:04]OFD Sender: No OFD packet to send [20:23:09]OFD Sender: No OFD packet to send [20:23:14]OFD Sender: No OFD packet to send [20:23:19]OFD Sender: No OFD packet to send [20:23:24]OFD Sender: No OFD packet to send [20:23:29]OFD Sender: No OFD packet to send [20:23:31]accept exits with 9 [20:23:31]New connection [20:23:31]New thread 3066809700 created [20:23:31]Thread 3066666340 joined [20:23:31]Waiting for new connection... [20:23:31] Sock 9.Parse request [20:23:31]Sock 9.Check first char [20:23:31]Sock 9.First char is OK [20:23:31]request: POST /json_proto HTTP/1.0 [20:23:31]Method: POST [20:23:31]URL: /json_proto [20:23:31]Method is POST - this is cgi request [20:23:31]url: /json_proto [20:23:31]query_string will be loaded in cgi processing [20:23:31]execute_cgi json_proto POST (null) [20:23:31]execute_cgi path=json_proto method=POST [20:23:31]POST find Content-Length [20:23:31]Host: 172.17.44.195:8080 [20:23:31]Content-Length: 678 [20:23:31]Content-Type: application/json [20:23:31] [20:23:31]POST finish read [20:23:31]Found Content-Length = 678 [20:23:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963325", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:23:31]execute_script... [20:23: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)1963325", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:23:31]POST & json_proto [20:23:31]process_json_proto [20:23:31]json parsed OK: [20:23:31]protocol is kg_v1.0 [20:23:31]action value=close_receipt [20:23:31]process_action close_receipt [20:23:31]cmd_close_receipt [20:23:31]MH_GetDate [20:23:31]Write to MH i2c: F0 00 00 A8 0C A3 [20:23:31]Write i2c OK [20:23:31]MH_I2C_Read... [20:23:31]Read from MH i2c: F0 [20:23:31]MH_I2C_Read... [20:23:31]Read from MH i2c: F0 09 00 [20:23:31]MH_I2C_Read... [20:23:31]Read from MH i2c: F0 09 00 A8 0C 00 C3 66 15 67 82 C9 CF 66 D1 [20:23:31]GetLastDocTimeStamp 1729455753 [20:23:31]current date 1729455811 [20:23:31]FM_GetShiftState [20:23:31]SAM_PROTO_GetShiftState [20:23:31]wFMCommunicate request_size=4 [20:23:31]MH_SAM_APDU [20:23:31]CAPDU: 80 13 01 00 [20:23:31]Write to MH i2c: E2 08 00 A9 0C 80 13 01 00 00 00 00 00 32 [20:23:31]Write i2c OK [20:23:31]MH_I2C_Read... [20:23:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:23:31]Read from MH i2c: E2 [20:23:31]MH_I2C_Read... [20:23:31]Read from MH i2c: E2 0E 00 [20:23:31]MH_I2C_Read... [20:23:31]Read from MH i2c: E2 0E 00 A9 0C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 4C [20:23:31]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:23:31]wFMCommunicate OK [20:23:31]SAM_PROTO_GetShiftState done [20:23:31]FM_GetShiftState done [20:23:31]opened in 1729383750 [20:23:31]opened+sec_in_day 1729470150 [20:23:31]quantity*price = 20003 [20:23:31]sum+1 = 20004 [20:23:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 510 20.10.2024 20:23 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227662 ФПД: 128845758082105 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T202332&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227662&fm=128845758082105&tin=02508201610067®Number=0000000000091685&sum=20000 [20:23:32]StoreToDocumentArchive [20:23:32]shift 533 fd 227662 [20:23:32]save to /storage/0533/doc_00227662 [20:23:32]save last doc name /storage/0533/doc_00227662 to /storage/kkm_last_doc_name [20:23:32]save OK [20:23:32]Clear old archive folders... [20:23:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:23:32]tlvbuf is 00C38870 [20:23:32]SAM_PROTO_ClearQueue [20:23:32]wFMCommunicate request_size=4 [20:23:32]MH_SAM_APDU [20:23:32]CAPDU: 80 09 00 00 [20:23:32]Write to MH i2c: E2 08 00 B6 0C 80 09 00 00 00 00 00 00 34 [20:23:32]Write i2c OK [20:23:32]MH_I2C_Read... [20:23:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:23:32]Read from MH i2c: E2 [20:23:32]MH_I2C_Read... [20:23:32]Read from MH i2c: E2 03 00 [20:23:32]MH_I2C_Read... [20:23:32]Read from MH i2c: E2 03 00 B6 0C 00 90 00 36 [20:23:32]RAPDU: 90 00 [20:23:32]wFMCommunicate OK [20:23:32]SAM_PROTO_ClearQueue done [20:23:32]KKMCreateOFDPacket [20:23:32]OFDProtocolAddRootSTLVToBuf [20:23:32]FM_MakeSignedData [20:23:32]FM_MakeSignedData [20:23:32]SAM_PROTO_SignData [20:23:32]wFMCommunicate request_size=4 [20:23:32]MH_SAM_APDU [20:23:32]CAPDU: 80 0D 01 02 [20:23:32]Write to MH i2c: E2 08 00 B7 0C 80 0D 01 02 00 00 00 00 3C [20:23:32]Write i2c OK [20:23:32]MH_I2C_Read... [20:23:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:23:32]Read from MH i2c: E2 [20:23:32]MH_I2C_Read... [20:23:32]Read from MH i2c: E2 03 00 [20:23:32]MH_I2C_Read... [20:23:32]Read from MH i2c: E2 03 00 B7 0C 00 90 00 37 [20:23:32]RAPDU: 90 00 [20:23:32]wFMCommunicate OK [20:23:32]wFMCommunicate request_size=255 [20:23:32]MH_SAM_APDU [20:23:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 01 00 00 F4 03 04 00 C4 66 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4E 79 03 00 35 04 06 00 75 [20:23:32]Write to MH i2c: E2 02 01 B8 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 01 00 00 F4 03 04 00 C4 66 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4E 79 03 00 35 04 06 00 75 00 00 90 [20:23:32]Write i2c OK [20:23:32]MH_I2C_Read... [20:23:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:23:32]Read from MH i2c: E2 [20:23:32]MH_I2C_Read... [20:23:32]Read from MH i2c: E2 03 00 [20:23:32]MH_I2C_Read... [20:23:32]Read from MH i2c: E2 03 00 B8 0C 00 90 00 38 [20:23:32]RAPDU: 90 00 [20:23:32]wFMCommunicate OK [20:23:32]wFMCommunicate request_size=10 [20:23:32]MH_SAM_APDU [20:23:32]CAPDU: 80 0D 02 02 05 2F 3D A4 2C 39 [20:23:32]Write to MH i2c: E2 0D 00 B9 0C 80 0D 02 02 05 00 2F 3D A4 2C 39 00 00 BE [20:23:32]Write i2c OK [20:23:32]MH_I2C_Read... [20:23:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:23:32]Read from MH i2c: E2 [20:23:32]MH_I2C_Read... [20:23:32]Read from MH i2c: E2 03 00 [20:23:32]MH_I2C_Read... [20:23:32]Read from MH i2c: E2 03 00 B9 0C 00 90 00 39 [20:23:32]RAPDU: 90 00 [20:23:32]wFMCommunicate OK [20:23:32]wFMCommunicate request_size=4 [20:23:32]MH_SAM_APDU [20:23:32]CAPDU: 80 0D 03 02 [20:23:32]Write to MH i2c: E2 08 00 BA 0C 80 0D 03 02 00 00 00 00 41 [20:23:32]Write i2c OK [20:23:32]MH_I2C_Read... [20:23:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:23:32]Read from MH i2c: E2 [20:23:32]MH_I2C_Read... [20:23:32]Read from MH i2c: E2 0B 00 [20:23:32]MH_I2C_Read... [20:23:32]Read from MH i2c: E2 0B 00 BA 0C 00 6F BF 89 CE 00 06 2B 7F 90 00 77 [20:23:32]RAPDU: 6F BF 89 CE 00 06 2B 7F 90 00 [20:23:32]wFMCommunicate OK [20:23:32]SAM_PROTO_SignData done [20:23:32]FM_MakeSignedData done [20:23:32]CreateOFDProtocolMessage [20:23:32]wFMCommunicate request_size=4 [20:23:32]MH_SAM_APDU [20:23:32]CAPDU: 80 11 00 00 [20:23:32]Write to MH i2c: E2 08 00 BB 0C 80 11 00 00 00 00 00 00 41 [20:23:32]Write i2c OK [20:23:32]MH_I2C_Read... [20:23:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:23:32]Read from MH i2c: E2 [20:23:32]MH_I2C_Read... [20:23:32]Read from MH i2c: E2 17 00 [20:23:32]MH_I2C_Read... [20:23:32]Read from MH i2c: E2 17 00 BB 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 98 [20:23:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:23:32]wFMCommunicate OK [20:23:32]CreateOFDProtocolMessage done [20:23:32]OFDSenderStorePacket 227662 [20:23:32]StoreOFDPacket docnum=227662 [20:23:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 8D 41 07 01 9F 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 01 00 00 F4 03 04 00 C4 66 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4E 79 03 00 35 04 06 00 75 2F 3D A4 2C 39 6F BF 89 CE 00 06 2B 7F [20:23:32]CheckFolder [20:23:32]dirname=/storage/ofd_packets [20:23:32]CheckFolder done [20:23:32]ProducePacketName [20:23:32]name=ofd_packets/00227662 [20:23:32]NVStorageSaveData ofd_packets/00227662 [20:23:32]File name is /storage/ofd_packets/00227662 [20:23:32]Write 301 bytes [20:23:32]NVStorageSaveData done [20:23:32]OFDSenderStorePacket done [20:23:32]KKMCreateOFDPacket done [20:23:32]NVStorageSaveData kkm_last_timestamp [20:23:32]File name is /storage/kkm_last_timestamp [20:23:32]Write 4 bytes [20:23:32]NVStorageSaveData done [20:23:32]ExternCall_PrintAddStr [20:23:32]wPrintStart [20:23:32]Write to MH i2c: 01 00 00 BC 0C C8 [20:23:32]Write i2c OK [20:23:32]MH_I2C_Read... [20:23:32]Read from MH i2c: 01 [20:23:32]MH_I2C_Read... [20:23:32]Read from MH i2c: 01 07 00 [20:23:32]MH_I2C_Read... [20:23:32]Read from MH i2c: 01 07 00 BC 0C 00 00 00 00 00 FF 0F DD [20:23:32]RasterBufferAndPrint [20:23:32]line Счет N : (1)1963325 [20:23:32]line ИНН: 02508201610067 [20:23:32]line Контрольно-Кассовый Чек [20:23:32]line ПРОДАЖА [20:23:32]line ТРК (МРК, ГНК) : 43 [20:23:32]line Товар: 2710124130 [20:23:32]line Аи-92-К-5 [20:23:32]line 2.990 * 66.90 [20:23:32]line = 200.03 [20:23:32]line НДС 12% НСП 1% [20:23:32]line > о реализуемом товаре [20:23:32]line ОКРУГЛЕНИЕ: -0.03 [20:23:32]line ИТОГО: 200.00 [20:23:32]line Внесено: 200.00 [20:23:32]line СДАЧА: 0.00 [20:23:32]line НСП 1% : 1.77 [20:23:32]line НДС 12% : 21.24 [20:23:32]line Наличными: 200.00 [20:23:32]line Безнал.: 0.00 [20:23:32]line Место: АЗС № 133 "Партнер Нефть" [20:23:32]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [20:23:32]line СНО: Общий режим [20:23:32]line Чек 510 20.10.2024 20:23 [20:23:32]line Смена: 533 ФФД: 1.0 [20:23:32]line ЗНМ: 0300000091 [20:23:32]line РНМ: 0000000000091685 [20:23:32]line Версия ККМ: 001 [20:23:32]line ФМ: 0000000000871839 [20:23:32]line ФД: 227662 [20:23:32]line ФПД: 128845758082105 [20:23:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T202332&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227662&fm=128845758082105&tin=02508201610067®Number=0000000000091685&sum=20000 [20:23:33]written 0, free lines is 4095 [20:23:33]OFD Sender: Processing packet 227662 [packets to send 38, broken 37] [20:23:33]ProducePacketName [20:23:33]name=ofd_packets/00227662 [20:23:33]OFD Sender: To server: pG, [20:23:33]CommunicateWithHost lk.salyk.kg:30040 [20:23:33]ConnectInit lk.salyk.kg [20:23:33]Connected sock=10 [20:23: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 33 39 0F 01 00 00 8D 41 07 01 9F 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 01 00 00 F4 03 04 00 C4 66 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4E 79 03 00 35 04 06 00 75 2F 3D A4 2C 39 6F BF 89 CE 00 06 2B 7F [20:23: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 33 39 4F 00 00 00 97 6B 47 00 E3 CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4E 79 03 00 F4 03 04 00 C1 11 15 67 B6 04 01 00 00 58 2B 4C 03 BD 5B CC 00 [20:23:33]CommunicateWithHost err = 0 [20:23:33]CheckOFDResponse [20:23:33]1017 (14) - 77093643461234 [20:23:33]1041 (16) - 0000000000871839 [20:23:33]1040 (4) - 227662 [20:23:33]1012 (4) - 20.10.2024 14:20 [20:23:33]1206 (1) - 0 [20:23:33]OFD Sender: Remove packet 227662 [20:23:33]ProducePacketName [20:23:33]name=ofd_packets/00227662 [20:23:33]NVStorageDeleteData [20:23:33]Write to MH i2c: 01 00 00 E6 0C F2 [20:23:33]Write i2c OK [20:23:33]MH_I2C_Read... [20:23:33]Read from MH i2c: 01 [20:23:33]MH_I2C_Read... [20:23:33]Read from MH i2c: 01 07 00 [20:23:33]MH_I2C_Read... [20:23:33]Read from MH i2c: 01 07 00 E6 0C 00 00 00 00 00 AA 0C AF [20:23:33]RasterBufferAndPrint [20:23:33]line [20:23:33]line [20:23:33]line [20:23:33]line [20:23:33]line [20:23:33]written 0, free lines is 3247 [20:23:33]MH_Cut [20:23:33]Write to MH i2c: D1 01 00 ED 0C 01 CB [20:23:33]Write i2c OK [20:23:33]MH_I2C_Read... [20:23:33]Read from MH i2c: D1 [20:23:33]MH_I2C_Read... [20:23:33]Read from MH i2c: D1 01 00 [20:23:33]MH_I2C_Read... [20:23:33]Read from MH i2c: D1 01 00 ED 0C 00 CA [20:23:33]Write to MH i2c: 01 00 00 EE 0C FA [20:23:33]Write i2c OK [20:23:33]MH_I2C_Read... [20:23:33]OFD Sender: No OFD packet to send [20:23:34]*** Cut start [20:23:34]*** Partial cut [20:23:34]*** CUTSNS_PIN = 1 [20:23:34]*** CUTSNS_PIN = 0 [20:23:34]*** Brake cut motor [20:23:35]Read from MH i2c: 01 [20:23:35]MH_I2C_Read... [20:23:35]*** Stop cut motor [20:23:35]*** Cut end [20:23:35]Read from MH i2c: 01 07 00 [20:23:35]MH_I2C_Read... [20:23:35]Read from MH i2c: 01 07 00 EE 0C 00 00 00 00 00 FF 0F 0F [20:23:35]process_action close_receipt done [20:23:35]requested_data is exist [20:23:35]produce_requested_data [20:23:35]requested_item fm.sn is exist - process it [20:23:35]wFMCommunicate request_size=4 [20:23:35]MH_SAM_APDU [20:23:35]CAPDU: 80 11 00 00 [20:23:35]Write to MH i2c: E2 08 00 EF 0C 80 11 00 00 00 00 00 00 75 [20:23:35]Write i2c OK [20:23:35]MH_I2C_Read... [20:23:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:23:35]Read from MH i2c: E2 [20:23:35]MH_I2C_Read... [20:23:35]Read from MH i2c: E2 17 00 [20:23:35]MH_I2C_Read... [20:23:35]Read from MH i2c: E2 17 00 EF 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 CC [20:23:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:23:35]wFMCommunicate OK [20:23:35]requested_item fd.num is exist - process it [20:23:35]SAM_PROTO_GetFieldsCounters [20:23:35]wFMCommunicate request_size=4 [20:23:35]MH_SAM_APDU [20:23:35]CAPDU: 80 13 00 00 [20:23:35]Write to MH i2c: E2 08 00 F0 0C 80 13 00 00 00 00 00 00 78 [20:23:35]Write i2c OK [20:23:35]MH_I2C_Read... [20:23:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:23:35]Read from MH i2c: E2 [20:23:35]MH_I2C_Read... [20:23:35]Read from MH i2c: E2 62 00 [20:23:35]MH_I2C_Read... [20:23:35]Read from MH i2c: E2 62 00 F0 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 4E 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 FE 01 00 00 5E 04 04 00 FE 01 00 00 57 04 04 00 FF 01 00 00 19 04 04 00 00 00 00 00 90 00 7F [20:23: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 4E 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 FE 01 00 00 5E 04 04 00 FE 01 00 00 57 04 04 00 FF 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:23:35]wFMCommunicate OK [20:23:35]SAM_PROTO_GetFieldsCounters done [20:23:35]requested_item shift.num is exist - process it [20:23:35]requested_item shift.opened is exist - process it [20:23:35]req_shift_opened [20:23:35]FM_GetShiftState [20:23:35]SAM_PROTO_GetShiftState [20:23:35]wFMCommunicate request_size=4 [20:23:35]MH_SAM_APDU [20:23:35]CAPDU: 80 13 01 00 [20:23:35]Write to MH i2c: E2 08 00 F1 0C 80 13 01 00 00 00 00 00 7A [20:23:35]Write i2c OK [20:23:35]MH_I2C_Read... [20:23:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:23:35]Read from MH i2c: E2 [20:23:35]MH_I2C_Read... [20:23:35]Read from MH i2c: E2 0E 00 [20:23:35]MH_I2C_Read... [20:23:35]Read from MH i2c: E2 0E 00 F1 0C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 94 [20:23:35]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:23:35]wFMCommunicate OK [20:23:35]SAM_PROTO_GetShiftState done [20:23:35]FM_GetShiftState done [20:23:35]req_shift_opened done [20:23:35]requested_item shift.open_date is exist - process it [20:23:35]req_shift_open_date [20:23:35]req_shift_open_date done [20:23:35]produce_requested_data done [20:23:35]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227662,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [20:23:35]process_action_free close_receipt [20:23:35]json_value_free [20:23:35]json_value_free done [20:23:35]process_json_proto returns [20:23:35]Send response to host [20:23:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227662,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [20:23:35]free response buf [20:23:35]execute_script done [20:23:35]execute_script returns [20:23:35]free content buf [20:23:35]Sock 9.Close socket [20:23:35]Sock 9.Thread stoped [20:23:38]OFD Sender: No OFD packet to send [20:23:43]OFD Sender: No OFD packet to send [20:23:48]OFD Sender: No OFD packet to send [20:23:53]OFD Sender: No OFD packet to send [20:23:58]OFD Sender: No OFD packet to send [20:24:03]OFD Sender: No OFD packet to send [20:24:08]OFD Sender: No OFD packet to send [20:24:13]OFD Sender: No OFD packet to send [20:24:18]OFD Sender: No OFD packet to send [20:24:23]OFD Sender: No OFD packet to send [20:24:28]OFD Sender: No OFD packet to send [20:24:33]OFD Sender: No OFD packet to send [20:24:38]OFD Sender: No OFD packet to send [20:24:43]OFD Sender: No OFD packet to send [20:24:48]OFD Sender: No OFD packet to send [20:24:53]OFD Sender: No OFD packet to send [20:24:58]OFD Sender: No OFD packet to send [20:25:03]OFD Sender: No OFD packet to send [20:25:08]OFD Sender: No OFD packet to send [20:25:13]OFD Sender: No OFD packet to send [20:25:18]OFD Sender: No OFD packet to send [20:25:23]OFD Sender: No OFD packet to send [20:25:28]OFD Sender: No OFD packet to send [20:25:33]OFD Sender: No OFD packet to send [20:25:38]OFD Sender: No OFD packet to send [20:25:43]OFD Sender: No OFD packet to send [20:25:48]OFD Sender: No OFD packet to send [20:25:53]OFD Sender: No OFD packet to send [20:25:58]OFD Sender: No OFD packet to send [20:26:04]OFD Sender: No OFD packet to send [20:26:09]OFD Sender: No OFD packet to send [20:26:14]OFD Sender: No OFD packet to send [20:26:19]OFD Sender: No OFD packet to send [20:26:24]OFD Sender: No OFD packet to send [20:26:29]OFD Sender: No OFD packet to send [20:26:34]OFD Sender: No OFD packet to send [20:26:39]OFD Sender: No OFD packet to send [20:26:44]OFD Sender: No OFD packet to send [20:26:49]OFD Sender: No OFD packet to send [20:26:54]OFD Sender: No OFD packet to send [20:26:59]OFD Sender: No OFD packet to send [20:27:04]OFD Sender: No OFD packet to send [20:27:09]OFD Sender: No OFD packet to send [20:27:14]OFD Sender: No OFD packet to send [20:27:19]OFD Sender: No OFD packet to send [20:27:24]OFD Sender: No OFD packet to send [20:27:29]OFD Sender: No OFD packet to send [20:27:34]OFD Sender: No OFD packet to send [20:27:39]OFD Sender: No OFD packet to send [20:27:44]OFD Sender: No OFD packet to send [20:27:49]OFD Sender: No OFD packet to send [20:27:54]OFD Sender: No OFD packet to send [20:27:59]OFD Sender: No OFD packet to send [20:28:04]OFD Sender: No OFD packet to send [20:28:09]OFD Sender: No OFD packet to send [20:28:14]OFD Sender: No OFD packet to send [20:28:19]OFD Sender: No OFD packet to send [20:28:24]OFD Sender: No OFD packet to send [20:28:28]accept exits with 7 [20:28:28]New connection [20:28:28]New thread 3066666340 created [20:28:28]Thread 3066809700 joined [20:28:28]Waiting for new connection... [20:28:28] Sock 7.Parse request [20:28:28]Sock 7.Check first char [20:28:28]Sock 7.First char is OK [20:28:28]request: POST /json_proto HTTP/1.0 [20:28:28]Method: POST [20:28:28]URL: /json_proto [20:28:28]Method is POST - this is cgi request [20:28:28]url: /json_proto [20:28:28]query_string will be loaded in cgi processing [20:28:28]execute_cgi json_proto POST (null) [20:28:28]execute_cgi path=json_proto method=POST [20:28:28]POST find Content-Length [20:28:28]Host: 172.17.44.195:8080 [20:28:28]Content-Length: 678 [20:28:28]Content-Type: application/json [20:28:28] [20:28:28]POST finish read [20:28:28]Found Content-Length = 678 [20:28:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963326", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:28:28]execute_script... [20:28: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)1963326", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:28:28]POST & json_proto [20:28:28]process_json_proto [20:28:28]json parsed OK: [20:28:28]protocol is kg_v1.0 [20:28:28]action value=close_receipt [20:28:28]process_action close_receipt [20:28:28]cmd_close_receipt [20:28:28]MH_GetDate [20:28:28]Write to MH i2c: F0 00 00 F2 0C ED [20:28:28]Write i2c OK [20:28:28]MH_I2C_Read... [20:28:28]Read from MH i2c: F0 [20:28:28]MH_I2C_Read... [20:28:28]Read from MH i2c: F0 09 00 [20:28:28]MH_I2C_Read... [20:28:28]Read from MH i2c: F0 09 00 F2 0C 00 ED 67 15 67 82 C9 CF 66 46 [20:28:28]GetLastDocTimeStamp 1729455812 [20:28:28]current date 1729456109 [20:28:28]FM_GetShiftState [20:28:28]SAM_PROTO_GetShiftState [20:28:28]wFMCommunicate request_size=4 [20:28:28]MH_SAM_APDU [20:28:28]CAPDU: 80 13 01 00 [20:28:28]Write to MH i2c: E2 08 00 F3 0C 80 13 01 00 00 00 00 00 7C [20:28:28]Write i2c OK [20:28:28]MH_I2C_Read... [20:28:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:29]Read from MH i2c: E2 [20:28:29]MH_I2C_Read... [20:28:29]Read from MH i2c: E2 0E 00 [20:28:29]MH_I2C_Read... [20:28:29]Read from MH i2c: E2 0E 00 F3 0C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 96 [20:28:29]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:28:29]wFMCommunicate OK [20:28:29]SAM_PROTO_GetShiftState done [20:28:29]FM_GetShiftState done [20:28:29]opened in 1729383750 [20:28:29]opened+sec_in_day 1729470150 [20:28:29]quantity*price = 50041 [20:28:29]sum+1 = 50042 [20:28:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 511 20.10.2024 20:28 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227663 ФПД: 244066661780463 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T202830&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227663&fm=244066661780463&tin=02508201610067®Number=0000000000091685&sum=50000 [20:28:30]StoreToDocumentArchive [20:28:30]shift 533 fd 227663 [20:28:30]save to /storage/0533/doc_00227663 [20:28:30]save last doc name /storage/0533/doc_00227663 to /storage/kkm_last_doc_name [20:28:30]save OK [20:28:30]Clear old archive folders... [20:28:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:28:30]tlvbuf is 00BFDEA0 [20:28:30]SAM_PROTO_ClearQueue [20:28:30]wFMCommunicate request_size=4 [20:28:30]MH_SAM_APDU [20:28:30]CAPDU: 80 09 00 00 [20:28:30]Write to MH i2c: E2 08 00 00 0D 80 09 00 00 00 00 00 00 7F [20:28:30]Write i2c OK [20:28:30]MH_I2C_Read... [20:28:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:28:30]Read from MH i2c: E2 [20:28:30]MH_I2C_Read... [20:28:30]Read from MH i2c: E2 03 00 [20:28:30]MH_I2C_Read... [20:28:30]Read from MH i2c: E2 03 00 00 0D 00 90 00 81 [20:28:30]RAPDU: 90 00 [20:28:30]wFMCommunicate OK [20:28:30]SAM_PROTO_ClearQueue done [20:28:30]KKMCreateOFDPacket [20:28:30]OFDProtocolAddRootSTLVToBuf [20:28:30]FM_MakeSignedData [20:28:30]FM_MakeSignedData [20:28:30]SAM_PROTO_SignData [20:28:30]wFMCommunicate request_size=4 [20:28:30]MH_SAM_APDU [20:28:30]CAPDU: 80 0D 01 02 [20:28:30]Write to MH i2c: E2 08 00 01 0D 80 0D 01 02 00 00 00 00 87 [20:28:30]Write i2c OK [20:28:30]MH_I2C_Read... [20:28:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:28:30]Read from MH i2c: E2 [20:28:30]MH_I2C_Read... [20:28:30]Read from MH i2c: E2 03 00 [20:28:30]MH_I2C_Read... [20:28:30]Read from MH i2c: E2 03 00 01 0D 00 90 00 82 [20:28:30]RAPDU: 90 00 [20:28:30]wFMCommunicate OK [20:28:30]wFMCommunicate request_size=255 [20:28:30]MH_SAM_APDU [20:28:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 01 00 00 F4 03 04 00 EE 67 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4F 79 03 00 35 04 06 00 DD [20:28:30]Write to MH i2c: E2 02 01 02 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 01 00 00 F4 03 04 00 EE 67 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4F 79 03 00 35 04 06 00 DD 00 00 AE [20:28:30]Write i2c OK [20:28:30]MH_I2C_Read... [20:28:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:30]Read from MH i2c: E2 [20:28:30]MH_I2C_Read... [20:28:30]Read from MH i2c: E2 03 00 [20:28:30]MH_I2C_Read... [20:28:30]Read from MH i2c: E2 03 00 02 0D 00 90 00 83 [20:28:30]RAPDU: 90 00 [20:28:30]wFMCommunicate OK [20:28:30]wFMCommunicate request_size=10 [20:28:30]MH_SAM_APDU [20:28:30]CAPDU: 80 0D 02 02 05 FA 32 AD 4B EF [20:28:30]Write to MH i2c: E2 0D 00 03 0D 80 0D 02 02 05 00 FA 32 AD 4B EF 00 00 A7 [20:28:30]Write i2c OK [20:28:30]MH_I2C_Read... [20:28:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:30]Read from MH i2c: E2 [20:28:30]MH_I2C_Read... [20:28:30]Read from MH i2c: E2 03 00 [20:28:30]MH_I2C_Read... [20:28:30]Read from MH i2c: E2 03 00 03 0D 00 90 00 84 [20:28:30]RAPDU: 90 00 [20:28:30]wFMCommunicate OK [20:28:30]wFMCommunicate request_size=4 [20:28:30]MH_SAM_APDU [20:28:30]CAPDU: 80 0D 03 02 [20:28:30]Write to MH i2c: E2 08 00 04 0D 80 0D 03 02 00 00 00 00 8C [20:28:30]Write i2c OK [20:28:30]MH_I2C_Read... [20:28:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:28:30]Read from MH i2c: E2 [20:28:30]MH_I2C_Read... [20:28:30]Read from MH i2c: E2 0B 00 [20:28:30]MH_I2C_Read... [20:28:30]Read from MH i2c: E2 0B 00 04 0D 00 1F D6 81 CE 0A D9 64 76 90 00 8E [20:28:30]RAPDU: 1F D6 81 CE 0A D9 64 76 90 00 [20:28:30]wFMCommunicate OK [20:28:30]SAM_PROTO_SignData done [20:28:30]FM_MakeSignedData done [20:28:30]CreateOFDProtocolMessage [20:28:30]wFMCommunicate request_size=4 [20:28:30]MH_SAM_APDU [20:28:30]CAPDU: 80 11 00 00 [20:28:30]Write to MH i2c: E2 08 00 05 0D 80 11 00 00 00 00 00 00 8C [20:28:30]Write i2c OK [20:28:30]MH_I2C_Read... [20:28:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:30]Read from MH i2c: E2 [20:28:30]MH_I2C_Read... [20:28:30]Read from MH i2c: E2 17 00 [20:28:30]MH_I2C_Read... [20:28:30]Read from MH i2c: E2 17 00 05 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E3 [20:28:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:28:30]wFMCommunicate OK [20:28:30]CreateOFDProtocolMessage done [20:28:30]OFDSenderStorePacket 227663 [20:28:30]StoreOFDPacket docnum=227663 [20:28:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 34 19 07 01 67 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 01 00 00 F4 03 04 00 EE 67 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4F 79 03 00 35 04 06 00 DD FA 32 AD 4B EF 1F D6 81 CE 0A D9 64 76 [20:28:30]CheckFolder [20:28:30]dirname=/storage/ofd_packets [20:28:30]CheckFolder done [20:28:30]ProducePacketName [20:28:30]name=ofd_packets/00227663 [20:28:30]NVStorageSaveData ofd_packets/00227663 [20:28:30]File name is /storage/ofd_packets/00227663 [20:28:30]Write 301 bytes [20:28:30]NVStorageSaveData done [20:28:30]OFDSenderStorePacket done [20:28:30]KKMCreateOFDPacket done [20:28:30]NVStorageSaveData kkm_last_timestamp [20:28:30]File name is /storage/kkm_last_timestamp [20:28:30]Write 4 bytes [20:28:30]NVStorageSaveData done [20:28:30]ExternCall_PrintAddStr [20:28:30]wPrintStart [20:28:30]Write to MH i2c: 01 00 00 06 0D 13 [20:28:30]Write i2c OK [20:28:30]MH_I2C_Read... [20:28:30]Read from MH i2c: 01 [20:28:30]MH_I2C_Read... [20:28:30]Read from MH i2c: 01 07 00 [20:28:30]MH_I2C_Read... [20:28:30]Read from MH i2c: 01 07 00 06 0D 00 00 00 00 00 FF 0F 28 [20:28:30]RasterBufferAndPrint [20:28:30]line Счет N : (1)1963326 [20:28:30]line ИНН: 02508201610067 [20:28:30]line Контрольно-Кассовый Чек [20:28:30]line ПРОДАЖА [20:28:30]line ТРК (МРК, ГНК) : 43 [20:28:30]line Товар: 2710124130 [20:28:30]line Аи-92-К-5 [20:28:30]line 7.480 * 66.90 [20:28:30]line = 500.41 [20:28:30]line НДС 12% НСП 1% [20:28:30]line > о реализуемом товаре [20:28:30]line ОКРУГЛЕНИЕ: -0.41 [20:28:30]line ИТОГО: 500.00 [20:28:30]line Внесено: 500.00 [20:28:30]line СДАЧА: 0.00 [20:28:30]line НСП 1% : 4.43 [20:28:30]line НДС 12% : 53.14 [20:28:30]line Наличными: 500.00 [20:28:30]line Безнал.: 0.00 [20:28:30]line Место: АЗС № 133 "Партнер Нефть" [20:28:30]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [20:28:30]line СНО: Общий режим [20:28:30]line Чек 511 20.10.2024 20:28 [20:28:30]line Смена: 533 ФФД: 1.0 [20:28:30]line ЗНМ: 0300000091 [20:28:30]line РНМ: 0000000000091685 [20:28:30]line Версия ККМ: 001 [20:28:30]line ФМ: 0000000000871839 [20:28:30]line ФД: 227663 [20:28:30]line ФПД: 244066661780463 [20:28:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T202830&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227663&fm=244066661780463&tin=02508201610067®Number=0000000000091685&sum=50000 [20:28:30]OFD Sender: Processing packet 227663 [packets to send 38, broken 37] [20:28:30]ProducePacketName [20:28:31]name=ofd_packets/00227663 [20:28:31]OFD Sender: To server: pG, [20:28:31]CommunicateWithHost lk.salyk.kg:30040 [20:28:31]ConnectInit lk.salyk.kg [20:28:31]written 0, free lines is 4095 [20:28:31]Connected sock=10 [20:28: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 33 39 0F 01 00 00 34 19 07 01 67 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 01 00 00 F4 03 04 00 EE 67 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 4F 79 03 00 35 04 06 00 DD FA 32 AD 4B EF 1F D6 81 CE 0A D9 64 76 [20:28: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 33 39 4F 00 00 00 23 C1 47 00 A3 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 33 39 10 04 04 00 4F 79 03 00 F4 03 04 00 EB 12 15 67 B6 04 01 00 00 DA 91 4F D9 10 0F 29 8F [20:28:31]CommunicateWithHost err = 0 [20:28:31]CheckOFDResponse [20:28:31]1017 (14) - 77093643461234 [20:28:31]1041 (16) - 0000000000871839 [20:28:31]1040 (4) - 227663 [20:28:31]1012 (4) - 20.10.2024 14:25 [20:28:31]1206 (1) - 0 [20:28:31]OFD Sender: Remove packet 227663 [20:28:31]ProducePacketName [20:28:31]name=ofd_packets/00227663 [20:28:31]NVStorageDeleteData [20:28:31]Write to MH i2c: 01 00 00 30 0D 3D [20:28:31]Write i2c OK [20:28:31]MH_I2C_Read... [20:28:31]Read from MH i2c: 01 [20:28:31]MH_I2C_Read... [20:28:31]Read from MH i2c: 01 07 00 [20:28:31]MH_I2C_Read... [20:28:31]Read from MH i2c: 01 07 00 30 0D 00 00 00 00 00 AA 0C FA [20:28:31]RasterBufferAndPrint [20:28:31]line [20:28:31]line [20:28:31]line [20:28:31]line [20:28:31]line [20:28:31]written 0, free lines is 3246 [20:28:31]MH_Cut [20:28:31]Write to MH i2c: D1 01 00 37 0D 01 16 [20:28:31]Write i2c OK [20:28:31]MH_I2C_Read... [20:28:31]Read from MH i2c: D1 [20:28:31]MH_I2C_Read... [20:28:31]Read from MH i2c: D1 01 00 [20:28:31]MH_I2C_Read... [20:28:31]Read from MH i2c: D1 01 00 37 0D 00 15 [20:28:31]Write to MH i2c: 01 00 00 38 0D 45 [20:28:31]Write i2c OK [20:28:31]MH_I2C_Read... [20:28:31]OFD Sender: No OFD packet to send [20:28:32]*** Cut start [20:28:32]*** Partial cut [20:28:32]*** CUTSNS_PIN = 1 [20:28:32]*** CUTSNS_PIN = 0 [20:28:32]*** Brake cut motor [20:28:33]Read from MH i2c: 01 [20:28:33]MH_I2C_Read... [20:28:33]*** Stop cut motor [20:28:33]*** Cut end [20:28:33]Read from MH i2c: 01 07 00 [20:28:33]MH_I2C_Read... [20:28:33]Read from MH i2c: 01 07 00 38 0D 00 00 00 00 00 FF 0F 5A [20:28:33]process_action close_receipt done [20:28:33]requested_data is exist [20:28:33]produce_requested_data [20:28:33]requested_item fm.sn is exist - process it [20:28:33]wFMCommunicate request_size=4 [20:28:33]MH_SAM_APDU [20:28:33]CAPDU: 80 11 00 00 [20:28:33]Write to MH i2c: E2 08 00 39 0D 80 11 00 00 00 00 00 00 C0 [20:28:33]Write i2c OK [20:28:33]MH_I2C_Read... [20:28:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:33]Read from MH i2c: E2 [20:28:33]MH_I2C_Read... [20:28:33]Read from MH i2c: E2 17 00 [20:28:33]MH_I2C_Read... [20:28:33]Read from MH i2c: E2 17 00 39 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 17 [20:28:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:28:33]wFMCommunicate OK [20:28:33]requested_item fd.num is exist - process it [20:28:33]SAM_PROTO_GetFieldsCounters [20:28:33]wFMCommunicate request_size=4 [20:28:33]MH_SAM_APDU [20:28:33]CAPDU: 80 13 00 00 [20:28:33]Write to MH i2c: E2 08 00 3A 0D 80 13 00 00 00 00 00 00 C3 [20:28:33]Write i2c OK [20:28:33]MH_I2C_Read... [20:28:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:28:33]Read from MH i2c: E2 [20:28:33]MH_I2C_Read... [20:28:33]Read from MH i2c: E2 62 00 [20:28:33]MH_I2C_Read... [20:28:33]Read from MH i2c: E2 62 00 3A 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 4F 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 FF 01 00 00 5E 04 04 00 FF 01 00 00 57 04 04 00 00 02 00 00 19 04 04 00 00 00 00 00 90 00 CF [20:28: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 4F 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 FF 01 00 00 5E 04 04 00 FF 01 00 00 57 04 04 00 00 02 00 00 19 04 04 00 00 00 00 00 90 00 [20:28:33]wFMCommunicate OK [20:28:33]SAM_PROTO_GetFieldsCounters done [20:28:33]requested_item shift.num is exist - process it [20:28:33]requested_item shift.opened is exist - process it [20:28:33]req_shift_opened [20:28:33]FM_GetShiftState [20:28:33]SAM_PROTO_GetShiftState [20:28:33]wFMCommunicate request_size=4 [20:28:33]MH_SAM_APDU [20:28:33]CAPDU: 80 13 01 00 [20:28:33]Write to MH i2c: E2 08 00 3B 0D 80 13 01 00 00 00 00 00 C5 [20:28:33]Write i2c OK [20:28:33]MH_I2C_Read... [20:28:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:33]Read from MH i2c: E2 [20:28:33]MH_I2C_Read... [20:28:33]Read from MH i2c: E2 0E 00 [20:28:33]MH_I2C_Read... [20:28:33]Read from MH i2c: E2 0E 00 3B 0D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 DF [20:28:33]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:28:33]wFMCommunicate OK [20:28:33]SAM_PROTO_GetShiftState done [20:28:33]FM_GetShiftState done [20:28:33]req_shift_opened done [20:28:33]requested_item shift.open_date is exist - process it [20:28:33]req_shift_open_date [20:28:33]req_shift_open_date done [20:28:33]produce_requested_data done [20:28:33]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227663,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [20:28:33]process_action_free close_receipt [20:28:33]json_value_free [20:28:33]json_value_free done [20:28:33]process_json_proto returns [20:28:33]Send response to host [20:28:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227663,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [20:28:33]free response buf [20:28:33]execute_script done [20:28:33]execute_script returns [20:28:33]free content buf [20:28:33]Sock 7.Close socket [20:28:33]Sock 7.Thread stoped [20:28:36]OFD Sender: No OFD packet to send [20:28:41]OFD Sender: No OFD packet to send [20:28:46]OFD Sender: No OFD packet to send [20:28:51]OFD Sender: No OFD packet to send [20:28:56]OFD Sender: No OFD packet to send [20:29:01]OFD Sender: No OFD packet to send [20:29:06]OFD Sender: No OFD packet to send [20:29:11]OFD Sender: No OFD packet to send [20:29:16]OFD Sender: No OFD packet to send [20:29:21]OFD Sender: No OFD packet to send [20:29:26]OFD Sender: No OFD packet to send [20:29:31]OFD Sender: No OFD packet to send [20:29:36]OFD Sender: No OFD packet to send [20:29:41]OFD Sender: No OFD packet to send [20:29:46]OFD Sender: No OFD packet to send [20:29:51]OFD Sender: No OFD packet to send [20:29:56]OFD Sender: No OFD packet to send [20:30:01]OFD Sender: No OFD packet to send [20:30:06]OFD Sender: No OFD packet to send [20:30:11]OFD Sender: No OFD packet to send [20:30:16]OFD Sender: No OFD packet to send [20:30:21]OFD Sender: No OFD packet to send [20:30:26]OFD Sender: No OFD packet to send [20:30:31]OFD Sender: No OFD packet to send [20:30:36]OFD Sender: No OFD packet to send [20:30:41]OFD Sender: No OFD packet to send [20:30:46]OFD Sender: No OFD packet to send [20:30:51]OFD Sender: No OFD packet to send [20:30:56]OFD Sender: No OFD packet to send [20:31:01]OFD Sender: No OFD packet to send [20:31:06]OFD Sender: No OFD packet to send [20:31:11]OFD Sender: No OFD packet to send [20:31:16]OFD Sender: No OFD packet to send [20:31:21]OFD Sender: No OFD packet to send [20:31:26]OFD Sender: No OFD packet to send [20:31:31]OFD Sender: No OFD packet to send [20:31:36]OFD Sender: No OFD packet to send [20:31:41]OFD Sender: No OFD packet to send [20:31:46]OFD Sender: No OFD packet to send [20:31:51]OFD Sender: No OFD packet to send [20:31:56]OFD Sender: No OFD packet to send [20:32:01]OFD Sender: No OFD packet to send [20:32:06]OFD Sender: No OFD packet to send [20:32:12]OFD Sender: No OFD packet to send [20:32:17]OFD Sender: No OFD packet to send [20:32:22]OFD Sender: No OFD packet to send [20:32:27]OFD Sender: No OFD packet to send [20:32:32]OFD Sender: No OFD packet to send [20:32:37]OFD Sender: No OFD packet to send [20:32:42]OFD Sender: No OFD packet to send [20:32:47]OFD Sender: No OFD packet to send [20:32:52]OFD Sender: No OFD packet to send [20:32:57]OFD Sender: No OFD packet to send [20:33:02]OFD Sender: No OFD packet to send [20:33:07]OFD Sender: No OFD packet to send [20:33:12]OFD Sender: No OFD packet to send [20:33:17]OFD Sender: No OFD packet to send [20:33:22]OFD Sender: No OFD packet to send [20:33:27]OFD Sender: No OFD packet to send [20:33:32]OFD Sender: No OFD packet to send [20:33:36]accept exits with 9 [20:33:36]New connection [20:33:36]New thread 3066809700 created [20:33:36]Thread 3066666340 joined [20:33:36]Waiting for new connection... [20:33:36] Sock 9.Parse request [20:33:36]Sock 9.Check first char [20:33:36]Sock 9.First char is OK [20:33:36]request: POST /json_proto HTTP/1.0 [20:33:36]Method: POST [20:33:36]URL: /json_proto [20:33:36]Method is POST - this is cgi request [20:33:36]url: /json_proto [20:33:36]query_string will be loaded in cgi processing [20:33:36]execute_cgi json_proto POST (null) [20:33:36]execute_cgi path=json_proto method=POST [20:33:36]POST find Content-Length [20:33:36]Host: 172.17.44.195:8080 [20:33:36]Content-Length: 678 [20:33:36]Content-Type: application/json [20:33:36] [20:33:36]POST finish read [20:33:36]Found Content-Length = 678 [20:33:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963327", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:33:36]execute_script... [20:33: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)1963327", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:33:36]POST & json_proto [20:33:36]process_json_proto [20:33:36]json parsed OK: [20:33:36]protocol is kg_v1.0 [20:33:36]action value=close_receipt [20:33:36]process_action close_receipt [20:33:36]cmd_close_receipt [20:33:36]MH_GetDate [20:33:36]Write to MH i2c: F0 00 00 3C 0D 38 [20:33:36]Write i2c OK [20:33:36]MH_I2C_Read... [20:33:36]Read from MH i2c: F0 [20:33:36]MH_I2C_Read... [20:33:36]Read from MH i2c: F0 09 00 [20:33:36]MH_I2C_Read... [20:33:36]Read from MH i2c: F0 09 00 3C 0D 00 21 69 15 67 82 C9 CF 66 C7 [20:33:36]GetLastDocTimeStamp 1729456110 [20:33:36]current date 1729456417 [20:33:36]FM_GetShiftState [20:33:36]SAM_PROTO_GetShiftState [20:33:36]wFMCommunicate request_size=4 [20:33:36]MH_SAM_APDU [20:33:36]CAPDU: 80 13 01 00 [20:33:36]Write to MH i2c: E2 08 00 3D 0D 80 13 01 00 00 00 00 00 C7 [20:33:36]Write i2c OK [20:33:36]MH_I2C_Read... [20:33:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:33:36]Read from MH i2c: E2 [20:33:36]MH_I2C_Read... [20:33:36]Read from MH i2c: E2 0E 00 [20:33:36]MH_I2C_Read... [20:33:36]Read from MH i2c: E2 0E 00 3D 0D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 E1 [20:33:36]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:33:36]wFMCommunicate OK [20:33:36]SAM_PROTO_GetShiftState done [20:33:36]FM_GetShiftState done [20:33:36]opened in 1729383750 [20:33:36]opened+sec_in_day 1729470150 [20:33:36]quantity*price = 30038 [20:33:36]sum+1 = 30039 [20:33:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 512 20.10.2024 20:33 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227664 ФПД: 93932443228410 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T203337&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227664&fm=93932443228410&tin=02508201610067®Number=0000000000091685&sum=30000 [20:33:37]StoreToDocumentArchive [20:33:37]shift 533 fd 227664 [20:33:37]save to /storage/0533/doc_00227664 [20:33:37]save last doc name /storage/0533/doc_00227664 to /storage/kkm_last_doc_name [20:33:37]save OK [20:33:37]Clear old archive folders... [20:33:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:33:37]tlvbuf is 00CB03A0 [20:33:37]SAM_PROTO_ClearQueue [20:33:37]wFMCommunicate request_size=4 [20:33:37]MH_SAM_APDU [20:33:37]CAPDU: 80 09 00 00 [20:33:37]Write to MH i2c: E2 08 00 4A 0D 80 09 00 00 00 00 00 00 C9 [20:33:37]Write i2c OK [20:33:37]MH_I2C_Read... [20:33:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:33:37]Read from MH i2c: E2 [20:33:37]MH_I2C_Read... [20:33:37]Read from MH i2c: E2 03 00 [20:33:37]MH_I2C_Read... [20:33:37]Read from MH i2c: E2 03 00 4A 0D 00 90 00 CB [20:33:37]RAPDU: 90 00 [20:33:37]wFMCommunicate OK [20:33:37]SAM_PROTO_ClearQueue done [20:33:37]KKMCreateOFDPacket [20:33:37]OFDProtocolAddRootSTLVToBuf [20:33:37]FM_MakeSignedData [20:33:37]FM_MakeSignedData [20:33:37]SAM_PROTO_SignData [20:33:37]wFMCommunicate request_size=4 [20:33:37]MH_SAM_APDU [20:33:37]CAPDU: 80 0D 01 02 [20:33:37]Write to MH i2c: E2 08 00 4B 0D 80 0D 01 02 00 00 00 00 D1 [20:33:37]Write i2c OK [20:33:37]MH_I2C_Read... [20:33:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:33:37]Read from MH i2c: E2 [20:33:37]MH_I2C_Read... [20:33:37]Read from MH i2c: E2 03 00 [20:33:37]MH_I2C_Read... [20:33:37]Read from MH i2c: E2 03 00 4B 0D 00 90 00 CC [20:33:37]RAPDU: 90 00 [20:33:37]wFMCommunicate OK [20:33:37]wFMCommunicate request_size=255 [20:33:37]MH_SAM_APDU [20:33:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 02 00 00 F4 03 04 00 21 69 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 50 79 03 00 35 04 06 00 55 [20:33:37]Write to MH i2c: E2 02 01 4C 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 02 00 00 F4 03 04 00 21 69 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 50 79 03 00 35 04 06 00 55 00 00 9C [20:33:37]Write i2c OK [20:33:37]MH_I2C_Read... [20:33:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:33:37]Read from MH i2c: E2 [20:33:37]MH_I2C_Read... [20:33:37]Read from MH i2c: E2 03 00 [20:33:37]MH_I2C_Read... [20:33:37]Read from MH i2c: E2 03 00 4C 0D 00 90 00 CD [20:33:37]RAPDU: 90 00 [20:33:37]wFMCommunicate OK [20:33:37]wFMCommunicate request_size=10 [20:33:37]MH_SAM_APDU [20:33:37]CAPDU: 80 0D 02 02 05 6E 59 E9 58 FA [20:33:37]Write to MH i2c: E2 0D 00 4D 0D 80 0D 02 02 05 00 6E 59 E9 58 FA 00 00 E0 [20:33:37]Write i2c OK [20:33:37]MH_I2C_Read... [20:33:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:33:37]Read from MH i2c: E2 [20:33:37]MH_I2C_Read... [20:33:37]Read from MH i2c: E2 03 00 [20:33:37]MH_I2C_Read... [20:33:37]Read from MH i2c: E2 03 00 4D 0D 00 90 00 CE [20:33:37]RAPDU: 90 00 [20:33:37]wFMCommunicate OK [20:33:37]wFMCommunicate request_size=4 [20:33:37]MH_SAM_APDU [20:33:37]CAPDU: 80 0D 03 02 [20:33:37]Write to MH i2c: E2 08 00 4E 0D 80 0D 03 02 00 00 00 00 D6 [20:33:37]Write i2c OK [20:33:37]MH_I2C_Read... [20:33:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:33:38]Read from MH i2c: E2 [20:33:38]MH_I2C_Read... [20:33:38]Read from MH i2c: E2 0B 00 [20:33:38]MH_I2C_Read... [20:33:38]Read from MH i2c: E2 0B 00 4E 0D 00 DF 78 30 5D 9D D2 17 E9 90 00 2A [20:33:38]RAPDU: DF 78 30 5D 9D D2 17 E9 90 00 [20:33:38]wFMCommunicate OK [20:33:38]SAM_PROTO_SignData done [20:33:38]FM_MakeSignedData done [20:33:38]CreateOFDProtocolMessage [20:33:38]wFMCommunicate request_size=4 [20:33:38]MH_SAM_APDU [20:33:38]CAPDU: 80 11 00 00 [20:33:38]Write to MH i2c: E2 08 00 4F 0D 80 11 00 00 00 00 00 00 D6 [20:33:38]Write i2c OK [20:33:38]MH_I2C_Read... [20:33:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:33:38]Read from MH i2c: E2 [20:33:38]MH_I2C_Read... [20:33:38]Read from MH i2c: E2 17 00 [20:33:38]MH_I2C_Read... [20:33:38]Read from MH i2c: E2 17 00 4F 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 2D [20:33:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:33:38]wFMCommunicate OK [20:33:38]CreateOFDProtocolMessage done [20:33:38]OFDSenderStorePacket 227664 [20:33:38]StoreOFDPacket docnum=227664 [20:33:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 FB 40 07 01 7B 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 02 00 00 F4 03 04 00 21 69 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 50 79 03 00 35 04 06 00 55 6E 59 E9 58 FA DF 78 30 5D 9D D2 17 E9 [20:33:38]CheckFolder [20:33:38]dirname=/storage/ofd_packets [20:33:38]CheckFolder done [20:33:38]ProducePacketName [20:33:38]name=ofd_packets/00227664 [20:33:38]NVStorageSaveData ofd_packets/00227664 [20:33:38]File name is /storage/ofd_packets/00227664 [20:33:38]Write 301 bytes [20:33:38]NVStorageSaveData done [20:33:38]OFDSenderStorePacket done [20:33:38]KKMCreateOFDPacket done [20:33:38]NVStorageSaveData kkm_last_timestamp [20:33:38]File name is /storage/kkm_last_timestamp [20:33:38]Write 4 bytes [20:33:38]NVStorageSaveData done [20:33:38]ExternCall_PrintAddStr [20:33:38]wPrintStart [20:33:38]Write to MH i2c: 01 00 00 50 0D 5D [20:33:38]Write i2c OK [20:33:38]MH_I2C_Read... [20:33:38]Read from MH i2c: 01 [20:33:38]MH_I2C_Read... [20:33:38]Read from MH i2c: 01 07 00 [20:33:38]MH_I2C_Read... [20:33:38]Read from MH i2c: 01 07 00 50 0D 00 00 00 00 00 FF 0F 72 [20:33:38]RasterBufferAndPrint [20:33:38]line Счет N : (1)1963327 [20:33:38]line ИНН: 02508201610067 [20:33:38]line Контрольно-Кассовый Чек [20:33:38]line ПРОДАЖА [20:33:38]line ТРК (МРК, ГНК) : 53 [20:33:38]line Товар: 2710124130 [20:33:38]line Аи-92-К-5 [20:33:38]line 4.490 * 66.90 [20:33:38]line = 300.38 [20:33:38]line НДС 12% НСП 1% [20:33:38]line > о реализуемом товаре [20:33:38]line ОКРУГЛЕНИЕ: -0.38 [20:33:38]line ИТОГО: 300.00 [20:33:38]line Внесено: 300.00 [20:33:38]line СДАЧА: 0.00 [20:33:38]line НСП 1% : 2.66 [20:33:38]line НДС 12% : 31.90 [20:33:38]line Наличными: 300.00 [20:33:38]line Безнал.: 0.00 [20:33:38]line Место: АЗС № 133 "Партнер Нефть" [20:33:38]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [20:33:38]line СНО: Общий режим [20:33:38]line Чек 512 20.10.2024 20:33 [20:33:38]line Смена: 533 ФФД: 1.0 [20:33:38]line ЗНМ: 0300000091 [20:33:38]line РНМ: 0000000000091685 [20:33:38]line Версия ККМ: 001 [20:33:38]line ФМ: 0000000000871839 [20:33:38]line ФД: 227664 [20:33:38]line ФПД: 93932443228410 [20:33:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T203337&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227664&fm=93932443228410&tin=02508201610067®Number=0000000000091685&sum=30000 [20:33:38]OFD Sender: Processing packet 227664 [packets to send 38, broken 37] [20:33:38]ProducePacketName [20:33:38]name=ofd_packets/00227664 [20:33:38]OFD Sender: To server: pG, [20:33:38]CommunicateWithHost lk.salyk.kg:30040 [20:33:38]ConnectInit lk.salyk.kg [20:33:38]written 0, free lines is 4095 [20:33:38]Connected sock=10 [20:33: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 33 39 0F 01 00 00 FB 40 07 01 7B 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 02 00 00 F4 03 04 00 21 69 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 50 79 03 00 35 04 06 00 55 6E 59 E9 58 FA DF 78 30 5D 9D D2 17 E9 [20:33: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 33 39 4F 00 00 00 A2 08 47 00 3B 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 33 39 10 04 04 00 50 79 03 00 F4 03 04 00 1F 14 15 67 B6 04 01 00 00 E9 C0 3C 2F 88 77 B3 49 [20:33:38]CommunicateWithHost err = 0 [20:33:38]CheckOFDResponse [20:33:38]1017 (14) - 77093643461234 [20:33:38]1041 (16) - 0000000000871839 [20:33:38]1040 (4) - 227664 [20:33:38]1012 (4) - 20.10.2024 14:30 [20:33:38]1206 (1) - 0 [20:33:38]OFD Sender: Remove packet 227664 [20:33:38]ProducePacketName [20:33:38]name=ofd_packets/00227664 [20:33:38]NVStorageDeleteData [20:33:38]Write to MH i2c: 01 00 00 7A 0D 87 [20:33:38]Write i2c OK [20:33:38]MH_I2C_Read... [20:33:38]Read from MH i2c: 01 [20:33:38]MH_I2C_Read... [20:33:38]Read from MH i2c: 01 07 00 [20:33:38]MH_I2C_Read... [20:33:38]Read from MH i2c: 01 07 00 7A 0D 00 00 00 00 00 AD 0C 47 [20:33:38]RasterBufferAndPrint [20:33:38]line [20:33:38]line [20:33:38]line [20:33:38]line [20:33:38]line [20:33:38]written 0, free lines is 3249 [20:33:38]MH_Cut [20:33:38]Write to MH i2c: D1 01 00 81 0D 01 60 [20:33:38]Write i2c OK [20:33:38]MH_I2C_Read... [20:33:38]Read from MH i2c: D1 [20:33:38]MH_I2C_Read... [20:33:38]Read from MH i2c: D1 01 00 [20:33:38]MH_I2C_Read... [20:33:38]Read from MH i2c: D1 01 00 81 0D 00 5F [20:33:38]Write to MH i2c: 01 00 00 82 0D 8F [20:33:38]Write i2c OK [20:33:38]MH_I2C_Read... [20:33:39]OFD Sender: No OFD packet to send [20:33:39]*** Cut start [20:33:39]*** Partial cut [20:33:39]*** CUTSNS_PIN = 1 [20:33:39]*** CUTSNS_PIN = 0 [20:33:40]*** Brake cut motor [20:33:40]Read from MH i2c: 01 [20:33:40]MH_I2C_Read... [20:33:40]*** Stop cut motor [20:33:40]*** Cut end [20:33:40]Read from MH i2c: 01 07 00 [20:33:40]MH_I2C_Read... [20:33:40]Read from MH i2c: 01 07 00 82 0D 00 00 00 00 00 FF 0F A4 [20:33:40]process_action close_receipt done [20:33:40]requested_data is exist [20:33:40]produce_requested_data [20:33:40]requested_item fm.sn is exist - process it [20:33:40]wFMCommunicate request_size=4 [20:33:40]MH_SAM_APDU [20:33:40]CAPDU: 80 11 00 00 [20:33:40]Write to MH i2c: E2 08 00 83 0D 80 11 00 00 00 00 00 00 0A [20:33:40]Write i2c OK [20:33:40]MH_I2C_Read... [20:33:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:33:40]Read from MH i2c: E2 [20:33:40]MH_I2C_Read... [20:33:40]Read from MH i2c: E2 17 00 [20:33:40]MH_I2C_Read... [20:33:40]Read from MH i2c: E2 17 00 83 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 61 [20:33:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:33:40]wFMCommunicate OK [20:33:40]requested_item fd.num is exist - process it [20:33:40]SAM_PROTO_GetFieldsCounters [20:33:40]wFMCommunicate request_size=4 [20:33:40]MH_SAM_APDU [20:33:40]CAPDU: 80 13 00 00 [20:33:40]Write to MH i2c: E2 08 00 84 0D 80 13 00 00 00 00 00 00 0D [20:33:40]Write i2c OK [20:33:40]MH_I2C_Read... [20:33:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:33:40]Read from MH i2c: E2 [20:33:40]MH_I2C_Read... [20:33:40]Read from MH i2c: E2 62 00 [20:33:40]MH_I2C_Read... [20:33:40]Read from MH i2c: E2 62 00 84 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 50 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 00 02 00 00 5E 04 04 00 00 02 00 00 57 04 04 00 01 02 00 00 19 04 04 00 00 00 00 00 90 00 1F [20:33: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 50 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 00 02 00 00 5E 04 04 00 00 02 00 00 57 04 04 00 01 02 00 00 19 04 04 00 00 00 00 00 90 00 [20:33:40]wFMCommunicate OK [20:33:40]SAM_PROTO_GetFieldsCounters done [20:33:40]requested_item shift.num is exist - process it [20:33:40]requested_item shift.opened is exist - process it [20:33:40]req_shift_opened [20:33:40]FM_GetShiftState [20:33:40]SAM_PROTO_GetShiftState [20:33:40]wFMCommunicate request_size=4 [20:33:40]MH_SAM_APDU [20:33:40]CAPDU: 80 13 01 00 [20:33:40]Write to MH i2c: E2 08 00 85 0D 80 13 01 00 00 00 00 00 0F [20:33:40]Write i2c OK [20:33:40]MH_I2C_Read... [20:33:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:33:40]Read from MH i2c: E2 [20:33:40]MH_I2C_Read... [20:33:40]Read from MH i2c: E2 0E 00 [20:33:40]MH_I2C_Read... [20:33:40]Read from MH i2c: E2 0E 00 85 0D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 29 [20:33:40]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:33:40]wFMCommunicate OK [20:33:40]SAM_PROTO_GetShiftState done [20:33:40]FM_GetShiftState done [20:33:40]req_shift_opened done [20:33:40]requested_item shift.open_date is exist - process it [20:33:40]req_shift_open_date [20:33:40]req_shift_open_date done [20:33:40]produce_requested_data done [20:33:40]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227664,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [20:33:40]process_action_free close_receipt [20:33:40]json_value_free [20:33:40]json_value_free done [20:33:40]process_json_proto returns [20:33:40]Send response to host [20:33:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227664,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [20:33:40]free response buf [20:33:40]execute_script done [20:33:40]execute_script returns [20:33:40]free content buf [20:33:40]Sock 9.Close socket [20:33:40]Sock 9.Thread stoped [20:33:44]OFD Sender: No OFD packet to send [20:33:49]OFD Sender: No OFD packet to send [20:33:54]OFD Sender: No OFD packet to send [20:33:59]OFD Sender: No OFD packet to send [20:34:04]accept exits with 7 [20:34:04]New connection [20:34:04]New thread 3066666340 created [20:34:04]Thread 3066809700 joined [20:34:04]Waiting for new connection... [20:34:04] Sock 7.Parse request [20:34:04]Sock 7.Check first char [20:34:04]Sock 7.First char is OK [20:34:04]request: POST /json_proto HTTP/1.0 [20:34:04]Method: POST [20:34:04]URL: /json_proto [20:34:04]Method is POST - this is cgi request [20:34:04]url: /json_proto [20:34:04]query_string will be loaded in cgi processing [20:34:04]execute_cgi json_proto POST (null) [20:34:04]execute_cgi path=json_proto method=POST [20:34:04]POST find Content-Length [20:34:04]Host: 172.17.44.195:8080 [20:34:04]Content-Length: 678 [20:34:04]Content-Type: application/json [20:34:04] [20:34:04]POST finish read [20:34:04]Found Content-Length = 678 [20:34:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963328", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:34:04]execute_script... [20:34:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963328", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:34:04]POST & json_proto [20:34:04]process_json_proto [20:34:04]json parsed OK: [20:34:04]protocol is kg_v1.0 [20:34:04]action value=close_receipt [20:34:04]process_action close_receipt [20:34:04]cmd_close_receipt [20:34:04]MH_GetDate [20:34:04]Write to MH i2c: F0 00 00 86 0D 82 [20:34:04]Write i2c OK [20:34:04]MH_I2C_Read... [20:34:04]Read from MH i2c: F0 [20:34:04]MH_I2C_Read... [20:34:04]Read from MH i2c: F0 09 00 [20:34:04]MH_I2C_Read... [20:34:04]Read from MH i2c: F0 09 00 86 0D 00 3D 69 15 67 82 C9 CF 66 2D [20:34:04]GetLastDocTimeStamp 1729456417 [20:34:04]current date 1729456445 [20:34:04]FM_GetShiftState [20:34:04]SAM_PROTO_GetShiftState [20:34:04]wFMCommunicate request_size=4 [20:34:04]MH_SAM_APDU [20:34:04]CAPDU: 80 13 01 00 [20:34:04]Write to MH i2c: E2 08 00 87 0D 80 13 01 00 00 00 00 00 11 [20:34:04]Write i2c OK [20:34:04]MH_I2C_Read... [20:34:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:34:04]Read from MH i2c: E2 [20:34:04]MH_I2C_Read... [20:34:04]Read from MH i2c: E2 0E 00 [20:34:04]MH_I2C_Read... [20:34:04]Read from MH i2c: E2 0E 00 87 0D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 2B [20:34:04]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:34:04]wFMCommunicate OK [20:34:04]SAM_PROTO_GetShiftState done [20:34:04]FM_GetShiftState done [20:34:04]opened in 1729383750 [20:34:04]opened+sec_in_day 1729470150 [20:34:04]quantity*price = 20003 [20:34:04]sum+1 = 20004 [20:34:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 513 20.10.2024 20:34 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227665 ФПД: 252282999580538 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T203405&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227665&fm=252282999580538&tin=02508201610067®Number=0000000000091685&sum=20000 [20:34:05]StoreToDocumentArchive [20:34:05]shift 533 fd 227665 [20:34:05]save to /storage/0533/doc_00227665 [20:34:05]save last doc name /storage/0533/doc_00227665 to /storage/kkm_last_doc_name [20:34:05]save OK [20:34:05]Clear old archive folders... [20:34:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:34:05]tlvbuf is 00C93D30 [20:34:05]SAM_PROTO_ClearQueue [20:34:05]wFMCommunicate request_size=4 [20:34:05]MH_SAM_APDU [20:34:05]CAPDU: 80 09 00 00 [20:34:05]Write to MH i2c: E2 08 00 94 0D 80 09 00 00 00 00 00 00 13 [20:34:05]Write i2c OK [20:34:05]MH_I2C_Read... [20:34:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:34:05]Read from MH i2c: E2 [20:34:05]MH_I2C_Read... [20:34:05]Read from MH i2c: E2 03 00 [20:34:05]MH_I2C_Read... [20:34:05]Read from MH i2c: E2 03 00 94 0D 00 90 00 15 [20:34:05]RAPDU: 90 00 [20:34:05]wFMCommunicate OK [20:34:05]SAM_PROTO_ClearQueue done [20:34:05]KKMCreateOFDPacket [20:34:05]OFDProtocolAddRootSTLVToBuf [20:34:05]FM_MakeSignedData [20:34:05]FM_MakeSignedData [20:34:05]SAM_PROTO_SignData [20:34:05]wFMCommunicate request_size=4 [20:34:05]MH_SAM_APDU [20:34:05]CAPDU: 80 0D 01 02 [20:34:05]Write to MH i2c: E2 08 00 95 0D 80 0D 01 02 00 00 00 00 1B [20:34:05]Write i2c OK [20:34:05]MH_I2C_Read... [20:34:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:34:05]Read from MH i2c: E2 [20:34:05]MH_I2C_Read... [20:34:05]Read from MH i2c: E2 03 00 [20:34:05]MH_I2C_Read... [20:34:05]Read from MH i2c: E2 03 00 95 0D 00 90 00 16 [20:34:05]RAPDU: 90 00 [20:34:05]wFMCommunicate OK [20:34:05]wFMCommunicate request_size=255 [20:34:05]MH_SAM_APDU [20:34:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 02 00 00 F4 03 04 00 3D 69 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 51 79 03 00 35 04 06 00 E5 [20:34:05]Write to MH i2c: E2 02 01 96 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 02 00 00 F4 03 04 00 3D 69 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 51 79 03 00 35 04 06 00 E5 00 00 62 [20:34:05]Write i2c OK [20:34:05]MH_I2C_Read... [20:34:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:34:05]Read from MH i2c: E2 [20:34:05]MH_I2C_Read... [20:34:05]Read from MH i2c: E2 03 00 [20:34:05]MH_I2C_Read... [20:34:05]Read from MH i2c: E2 03 00 96 0D 00 90 00 17 [20:34:05]RAPDU: 90 00 [20:34:05]wFMCommunicate OK [20:34:05]wFMCommunicate request_size=10 [20:34:05]MH_SAM_APDU [20:34:05]CAPDU: 80 0D 02 02 05 73 36 92 A7 7A [20:34:05]Write to MH i2c: E2 0D 00 97 0D 80 0D 02 02 05 00 73 36 92 A7 7A 00 00 84 [20:34:05]Write i2c OK [20:34:05]MH_I2C_Read... [20:34:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:34:05]Read from MH i2c: E2 [20:34:05]MH_I2C_Read... [20:34:05]Read from MH i2c: E2 03 00 [20:34:05]MH_I2C_Read... [20:34:05]Read from MH i2c: E2 03 00 97 0D 00 90 00 18 [20:34:05]RAPDU: 90 00 [20:34:05]wFMCommunicate OK [20:34:05]wFMCommunicate request_size=4 [20:34:05]MH_SAM_APDU [20:34:05]CAPDU: 80 0D 03 02 [20:34:05]Write to MH i2c: E2 08 00 98 0D 80 0D 03 02 00 00 00 00 20 [20:34:05]Write i2c OK [20:34:05]MH_I2C_Read... [20:34:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:34:05]Read from MH i2c: E2 [20:34:05]MH_I2C_Read... [20:34:05]Read from MH i2c: E2 0B 00 [20:34:05]MH_I2C_Read... [20:34:05]Read from MH i2c: E2 0B 00 98 0D 00 9D 08 D4 E1 0A 80 3A 56 90 00 95 [20:34:05]RAPDU: 9D 08 D4 E1 0A 80 3A 56 90 00 [20:34:05]wFMCommunicate OK [20:34:05]SAM_PROTO_SignData done [20:34:05]FM_MakeSignedData done [20:34:05]CreateOFDProtocolMessage [20:34:05]wFMCommunicate request_size=4 [20:34:05]MH_SAM_APDU [20:34:05]CAPDU: 80 11 00 00 [20:34:05]Write to MH i2c: E2 08 00 99 0D 80 11 00 00 00 00 00 00 20 [20:34:05]Write i2c OK [20:34:05]MH_I2C_Read... [20:34:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:34:05]Read from MH i2c: E2 [20:34:05]MH_I2C_Read... [20:34:05]Read from MH i2c: E2 17 00 [20:34:05]MH_I2C_Read... [20:34:05]Read from MH i2c: E2 17 00 99 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 77 [20:34:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:34:05]wFMCommunicate OK [20:34:05]CreateOFDProtocolMessage done [20:34:05]OFDSenderStorePacket 227665 [20:34:05]StoreOFDPacket docnum=227665 [20:34:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 F5 AA 07 01 32 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 02 00 00 F4 03 04 00 3D 69 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 51 79 03 00 35 04 06 00 E5 73 36 92 A7 7A 9D 08 D4 E1 0A 80 3A 56 [20:34:05]CheckFolder [20:34:05]dirname=/storage/ofd_packets [20:34:05]CheckFolder done [20:34:05]ProducePacketName [20:34:05]name=ofd_packets/00227665 [20:34:05]NVStorageSaveData ofd_packets/00227665 [20:34:05]File name is /storage/ofd_packets/00227665 [20:34:05]Write 301 bytes [20:34:05]NVStorageSaveData done [20:34:05]OFDSenderStorePacket done [20:34:05]KKMCreateOFDPacket done [20:34:05]NVStorageSaveData kkm_last_timestamp [20:34:05]File name is /storage/kkm_last_timestamp [20:34:05]Write 4 bytes [20:34:05]NVStorageSaveData done [20:34:05]ExternCall_PrintAddStr [20:34:05]wPrintStart [20:34:05]Write to MH i2c: 01 00 00 9A 0D A7 [20:34:05]Write i2c OK [20:34:05]MH_I2C_Read... [20:34:05]Read from MH i2c: 01 [20:34:05]MH_I2C_Read... [20:34:05]Read from MH i2c: 01 07 00 [20:34:05]MH_I2C_Read... [20:34:05]Read from MH i2c: 01 07 00 9A 0D 00 00 00 00 00 FF 0F BC [20:34:05]RasterBufferAndPrint [20:34:05]line Счет N : (1)1963328 [20:34:05]line ИНН: 02508201610067 [20:34:05]line Контрольно-Кассовый Чек [20:34:05]line ПРОДАЖА [20:34:05]line ТРК (МРК, ГНК) : 33 [20:34:05]line Товар: 2710124130 [20:34:05]line Аи-92-К-5 [20:34:05]line 2.990 * 66.90 [20:34:05]line = 200.03 [20:34:05]line НДС 12% НСП 1% [20:34:05]line > о реализуемом товаре [20:34:05]line ОКРУГЛЕНИЕ: -0.03 [20:34:05]line ИТОГО: 200.00 [20:34:05]line Внесено: 200.00 [20:34:05]line СДАЧА: 0.00 [20:34:05]line НСП 1% : 1.77 [20:34:05]line НДС 12% : 21.24 [20:34:05]line Наличными: 200.00 [20:34:05]line Безнал.: 0.00 [20:34:05]line Место: АЗС № 133 "Партнер Нефть" [20:34:05]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [20:34:05]line СНО: Общий режим [20:34:05]line Чек 513 20.10.2024 20:34 [20:34:05]line Смена: 533 ФФД: 1.0 [20:34:05]line ЗНМ: 0300000091 [20:34:05]line РНМ: 0000000000091685 [20:34:05]line Версия ККМ: 001 [20:34:05]line ФМ: 0000000000871839 [20:34:05]line ФД: 227665 [20:34:05]line ФПД: 252282999580538 [20:34:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T203405&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227665&fm=252282999580538&tin=02508201610067®Number=0000000000091685&sum=20000 [20:34:06]written 0, free lines is 4095 [20:34:06]OFD Sender: Processing packet 227665 [packets to send 38, broken 37] [20:34:06]ProducePacketName [20:34:06]name=ofd_packets/00227665 [20:34:06]OFD Sender: To server: pG, [20:34:06]CommunicateWithHost lk.salyk.kg:30040 [20:34:06]ConnectInit lk.salyk.kg [20:34:06]Connected sock=10 [20:34:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 F5 AA 07 01 32 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 02 00 00 F4 03 04 00 3D 69 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 51 79 03 00 35 04 06 00 E5 73 36 92 A7 7A 9D 08 D4 E1 0A 80 3A 56 [20:34: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 33 39 4F 00 00 00 07 08 47 00 57 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 51 79 03 00 F4 03 04 00 3B 14 15 67 B6 04 01 00 00 C1 1D FA CD D7 EA B3 C6 [20:34:06]CommunicateWithHost err = 0 [20:34:06]CheckOFDResponse [20:34:06]1017 (14) - 77093643461234 [20:34:06]1041 (16) - 0000000000871839 [20:34:06]1040 (4) - 227665 [20:34:06]1012 (4) - 20.10.2024 14:31 [20:34:06]1206 (1) - 0 [20:34:06]OFD Sender: Remove packet 227665 [20:34:06]ProducePacketName [20:34:06]name=ofd_packets/00227665 [20:34:06]NVStorageDeleteData [20:34:06]Write to MH i2c: 01 00 00 C4 0D D1 [20:34:06]Write i2c OK [20:34:06]MH_I2C_Read... [20:34:06]Read from MH i2c: 01 [20:34:06]MH_I2C_Read... [20:34:06]Read from MH i2c: 01 07 00 [20:34:06]MH_I2C_Read... [20:34:06]Read from MH i2c: 01 07 00 C4 0D 00 00 00 00 00 AF 0C 93 [20:34:06]RasterBufferAndPrint [20:34:06]line [20:34:06]line [20:34:06]line [20:34:06]line [20:34:06]line [20:34:06]written 0, free lines is 3251 [20:34:06]MH_Cut [20:34:06]Write to MH i2c: D1 01 00 CB 0D 01 AA [20:34:06]Write i2c OK [20:34:06]MH_I2C_Read... [20:34:06]Read from MH i2c: D1 [20:34:06]MH_I2C_Read... [20:34:06]Read from MH i2c: D1 01 00 [20:34:06]MH_I2C_Read... [20:34:06]Read from MH i2c: D1 01 00 CB 0D 00 A9 [20:34:06]Write to MH i2c: 01 00 00 CC 0D D9 [20:34:06]Write i2c OK [20:34:06]MH_I2C_Read... [20:34:06]OFD Sender: No OFD packet to send [20:34:07]*** Cut start [20:34:07]*** Partial cut [20:34:07]*** CUTSNS_PIN = 1 [20:34:07]*** CUTSNS_PIN = 0 [20:34:07]*** Brake cut motor [20:34:08]Read from MH i2c: 01 [20:34:08]MH_I2C_Read... [20:34:08]*** Stop cut motor [20:34:08]*** Cut end [20:34:08]Read from MH i2c: 01 07 00 [20:34:08]MH_I2C_Read... [20:34:08]Read from MH i2c: 01 07 00 CC 0D 00 00 00 00 00 FF 0F EE [20:34:08]process_action close_receipt done [20:34:08]requested_data is exist [20:34:08]produce_requested_data [20:34:08]requested_item fm.sn is exist - process it [20:34:08]wFMCommunicate request_size=4 [20:34:08]MH_SAM_APDU [20:34:08]CAPDU: 80 11 00 00 [20:34:08]Write to MH i2c: E2 08 00 CD 0D 80 11 00 00 00 00 00 00 54 [20:34:08]Write i2c OK [20:34:08]MH_I2C_Read... [20:34:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:34:08]Read from MH i2c: E2 [20:34:08]MH_I2C_Read... [20:34:08]Read from MH i2c: E2 17 00 [20:34:08]MH_I2C_Read... [20:34:08]Read from MH i2c: E2 17 00 CD 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 AB [20:34:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:34:08]wFMCommunicate OK [20:34:08]requested_item fd.num is exist - process it [20:34:08]SAM_PROTO_GetFieldsCounters [20:34:08]wFMCommunicate request_size=4 [20:34:08]MH_SAM_APDU [20:34:08]CAPDU: 80 13 00 00 [20:34:08]Write to MH i2c: E2 08 00 CE 0D 80 13 00 00 00 00 00 00 57 [20:34:08]Write i2c OK [20:34:08]MH_I2C_Read... [20:34:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:34:08]Read from MH i2c: E2 [20:34:08]MH_I2C_Read... [20:34:08]Read from MH i2c: E2 62 00 [20:34:08]MH_I2C_Read... [20:34:08]Read from MH i2c: E2 62 00 CE 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 51 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 01 02 00 00 5E 04 04 00 01 02 00 00 57 04 04 00 02 02 00 00 19 04 04 00 00 00 00 00 90 00 6D [20:34:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 51 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 01 02 00 00 5E 04 04 00 01 02 00 00 57 04 04 00 02 02 00 00 19 04 04 00 00 00 00 00 90 00 [20:34:08]wFMCommunicate OK [20:34:08]SAM_PROTO_GetFieldsCounters done [20:34:08]requested_item shift.num is exist - process it [20:34:08]requested_item shift.opened is exist - process it [20:34:08]req_shift_opened [20:34:08]FM_GetShiftState [20:34:08]SAM_PROTO_GetShiftState [20:34:08]wFMCommunicate request_size=4 [20:34:08]MH_SAM_APDU [20:34:08]CAPDU: 80 13 01 00 [20:34:08]Write to MH i2c: E2 08 00 CF 0D 80 13 01 00 00 00 00 00 59 [20:34:08]Write i2c OK [20:34:08]MH_I2C_Read... [20:34:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:34:08]Read from MH i2c: E2 [20:34:08]MH_I2C_Read... [20:34:08]Read from MH i2c: E2 0E 00 [20:34:08]MH_I2C_Read... [20:34:08]Read from MH i2c: E2 0E 00 CF 0D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 73 [20:34:08]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:34:08]wFMCommunicate OK [20:34:08]SAM_PROTO_GetShiftState done [20:34:08]FM_GetShiftState done [20:34:08]req_shift_opened done [20:34:08]requested_item shift.open_date is exist - process it [20:34:08]req_shift_open_date [20:34:08]req_shift_open_date done [20:34:08]produce_requested_data done [20:34:08]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227665,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [20:34:08]process_action_free close_receipt [20:34:08]json_value_free [20:34:08]json_value_free done [20:34:08]process_json_proto returns [20:34:08]Send response to host [20:34:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227665,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [20:34:08]free response buf [20:34:08]execute_script done [20:34:08]execute_script returns [20:34:08]free content buf [20:34:08]Sock 7.Close socket [20:34:08]Sock 7.Thread stoped [20:34:11]OFD Sender: No OFD packet to send [20:34:16]OFD Sender: No OFD packet to send [20:34:21]OFD Sender: No OFD packet to send [20:34:26]OFD Sender: No OFD packet to send [20:34:31]OFD Sender: No OFD packet to send [20:34:36]OFD Sender: No OFD packet to send [20:34:40]accept exits with 9 [20:34:40]New connection [20:34:40]New thread 3066809700 created [20:34:40]Thread 3066666340 joined [20:34:40]Waiting for new connection... [20:34:40] Sock 9.Parse request [20:34:40]Sock 9.Check first char [20:34:40]Sock 9.First char is OK [20:34:40]request: POST /json_proto HTTP/1.0 [20:34:40]Method: POST [20:34:40]URL: /json_proto [20:34:40]Method is POST - this is cgi request [20:34:40]url: /json_proto [20:34:40]query_string will be loaded in cgi processing [20:34:40]execute_cgi json_proto POST (null) [20:34:40]execute_cgi path=json_proto method=POST [20:34:40]POST find Content-Length [20:34:40]Host: 172.17.44.195:8080 [20:34:40]Content-Length: 678 [20:34:40]Content-Type: application/json [20:34:40] [20:34:40]POST finish read [20:34:40]Found Content-Length = 678 [20:34:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963329", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:34:40]execute_script... [20:34:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963329", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:34:40]POST & json_proto [20:34:40]process_json_proto [20:34:40]json parsed OK: [20:34:40]protocol is kg_v1.0 [20:34:40]action value=close_receipt [20:34:40]process_action close_receipt [20:34:40]cmd_close_receipt [20:34:40]MH_GetDate [20:34:40]Write to MH i2c: F0 00 00 D0 0D CC [20:34:40]Write i2c OK [20:34:40]MH_I2C_Read... [20:34:40]Read from MH i2c: F0 [20:34:40]MH_I2C_Read... [20:34:40]Read from MH i2c: F0 09 00 [20:34:40]MH_I2C_Read... [20:34:40]Read from MH i2c: F0 09 00 D0 0D 00 61 69 15 67 82 C9 CF 66 9B [20:34:40]GetLastDocTimeStamp 1729456445 [20:34:40]current date 1729456481 [20:34:40]FM_GetShiftState [20:34:40]SAM_PROTO_GetShiftState [20:34:40]wFMCommunicate request_size=4 [20:34:40]MH_SAM_APDU [20:34:40]CAPDU: 80 13 01 00 [20:34:40]Write to MH i2c: E2 08 00 D1 0D 80 13 01 00 00 00 00 00 5B [20:34:40]Write i2c OK [20:34:40]MH_I2C_Read... [20:34:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:34:40]Read from MH i2c: E2 [20:34:40]MH_I2C_Read... [20:34:40]Read from MH i2c: E2 0E 00 [20:34:40]MH_I2C_Read... [20:34:40]Read from MH i2c: E2 0E 00 D1 0D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 75 [20:34:40]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:34:40]wFMCommunicate OK [20:34:40]SAM_PROTO_GetShiftState done [20:34:40]FM_GetShiftState done [20:34:40]opened in 1729383750 [20:34:40]opened+sec_in_day 1729470150 [20:34:40]quantity*price = 40006 [20:34:40]sum+1 = 40007 [20:34:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 514 20.10.2024 20:34 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227666 ФПД: 219229641933508 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T203441&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227666&fm=219229641933508&tin=02508201610067®Number=0000000000091685&sum=40000 [20:34:41]StoreToDocumentArchive [20:34:41]shift 533 fd 227666 [20:34:41]save to /storage/0533/doc_00227666 [20:34:41]save last doc name /storage/0533/doc_00227666 to /storage/kkm_last_doc_name [20:34:41]save OK [20:34:41]Clear old archive folders... [20:34:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:34:41]tlvbuf is 00CB0890 [20:34:41]SAM_PROTO_ClearQueue [20:34:41]wFMCommunicate request_size=4 [20:34:41]MH_SAM_APDU [20:34:41]CAPDU: 80 09 00 00 [20:34:41]Write to MH i2c: E2 08 00 DE 0D 80 09 00 00 00 00 00 00 5D [20:34:41]Write i2c OK [20:34:41]MH_I2C_Read... [20:34:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:34:41]Read from MH i2c: E2 [20:34:41]MH_I2C_Read... [20:34:41]Read from MH i2c: E2 03 00 [20:34:41]MH_I2C_Read... [20:34:41]Read from MH i2c: E2 03 00 DE 0D 00 90 00 5F [20:34:41]RAPDU: 90 00 [20:34:41]wFMCommunicate OK [20:34:41]SAM_PROTO_ClearQueue done [20:34:41]KKMCreateOFDPacket [20:34:41]OFDProtocolAddRootSTLVToBuf [20:34:41]FM_MakeSignedData [20:34:41]FM_MakeSignedData [20:34:41]SAM_PROTO_SignData [20:34:41]wFMCommunicate request_size=4 [20:34:41]MH_SAM_APDU [20:34:41]CAPDU: 80 0D 01 02 [20:34:41]Write to MH i2c: E2 08 00 DF 0D 80 0D 01 02 00 00 00 00 65 [20:34:41]Write i2c OK [20:34:41]MH_I2C_Read... [20:34:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:34:41]Read from MH i2c: E2 [20:34:41]MH_I2C_Read... [20:34:41]Read from MH i2c: E2 03 00 [20:34:41]MH_I2C_Read... [20:34:41]Read from MH i2c: E2 03 00 DF 0D 00 90 00 60 [20:34:41]RAPDU: 90 00 [20:34:41]wFMCommunicate OK [20:34:41]wFMCommunicate request_size=255 [20:34:41]MH_SAM_APDU [20:34:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 02 00 00 F4 03 04 00 61 69 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 52 79 03 00 35 04 06 00 C7 [20:34:41]Write to MH i2c: E2 02 01 E0 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 02 00 00 F4 03 04 00 61 69 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 52 79 03 00 35 04 06 00 C7 00 00 C1 [20:34:41]Write i2c OK [20:34:41]MH_I2C_Read... [20:34:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:34:41]Read from MH i2c: E2 [20:34:41]MH_I2C_Read... [20:34:41]Read from MH i2c: E2 03 00 [20:34:41]MH_I2C_Read... [20:34:41]Read from MH i2c: E2 03 00 E0 0D 00 90 00 61 [20:34:41]RAPDU: 90 00 [20:34:41]wFMCommunicate OK [20:34:41]wFMCommunicate request_size=10 [20:34:41]MH_SAM_APDU [20:34:41]CAPDU: 80 0D 02 02 05 63 60 EE 82 C4 [20:34:41]Write to MH i2c: E2 0D 00 E1 0D 80 0D 02 02 05 00 63 60 EE 82 C4 00 00 69 [20:34:41]Write i2c OK [20:34:41]MH_I2C_Read... [20:34:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:34:42]Read from MH i2c: E2 [20:34:42]MH_I2C_Read... [20:34:42]Read from MH i2c: E2 03 00 [20:34:42]MH_I2C_Read... [20:34:42]Read from MH i2c: E2 03 00 E1 0D 00 90 00 62 [20:34:42]RAPDU: 90 00 [20:34:42]wFMCommunicate OK [20:34:42]wFMCommunicate request_size=4 [20:34:42]MH_SAM_APDU [20:34:42]CAPDU: 80 0D 03 02 [20:34:42]Write to MH i2c: E2 08 00 E2 0D 80 0D 03 02 00 00 00 00 6A [20:34:42]Write i2c OK [20:34:42]MH_I2C_Read... [20:34:42]OFD Sender: No OFD packet to send [20:34:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:34:42]Read from MH i2c: E2 [20:34:42]MH_I2C_Read... [20:34:42]Read from MH i2c: E2 0B 00 [20:34:42]MH_I2C_Read... [20:34:42]Read from MH i2c: E2 0B 00 E2 0D 00 96 05 1F 21 B7 7A 78 C3 90 00 B2 [20:34:42]RAPDU: 96 05 1F 21 B7 7A 78 C3 90 00 [20:34:42]wFMCommunicate OK [20:34:42]SAM_PROTO_SignData done [20:34:42]FM_MakeSignedData done [20:34:42]CreateOFDProtocolMessage [20:34:42]wFMCommunicate request_size=4 [20:34:42]MH_SAM_APDU [20:34:42]CAPDU: 80 11 00 00 [20:34:42]Write to MH i2c: E2 08 00 E3 0D 80 11 00 00 00 00 00 00 6A [20:34:42]Write i2c OK [20:34:42]MH_I2C_Read... [20:34:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:34:42]Read from MH i2c: E2 [20:34:42]MH_I2C_Read... [20:34:42]Read from MH i2c: E2 17 00 [20:34:42]MH_I2C_Read... [20:34:42]Read from MH i2c: E2 17 00 E3 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C1 [20:34:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:34:42]wFMCommunicate OK [20:34:42]CreateOFDProtocolMessage done [20:34:42]OFDSenderStorePacket 227666 [20:34:42]StoreOFDPacket docnum=227666 [20:34:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 64 97 07 01 14 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 02 00 00 F4 03 04 00 61 69 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 52 79 03 00 35 04 06 00 C7 63 60 EE 82 C4 96 05 1F 21 B7 7A 78 C3 [20:34:42]CheckFolder [20:34:42]dirname=/storage/ofd_packets [20:34:42]CheckFolder done [20:34:42]ProducePacketName [20:34:42]name=ofd_packets/00227666 [20:34:42]NVStorageSaveData ofd_packets/00227666 [20:34:42]File name is /storage/ofd_packets/00227666 [20:34:42]Write 301 bytes [20:34:42]NVStorageSaveData done [20:34:42]OFDSenderStorePacket done [20:34:42]KKMCreateOFDPacket done [20:34:42]NVStorageSaveData kkm_last_timestamp [20:34:42]File name is /storage/kkm_last_timestamp [20:34:42]Write 4 bytes [20:34:42]NVStorageSaveData done [20:34:42]ExternCall_PrintAddStr [20:34:42]wPrintStart [20:34:42]Write to MH i2c: 01 00 00 E4 0D F1 [20:34:42]Write i2c OK [20:34:42]MH_I2C_Read... [20:34:42]Read from MH i2c: 01 [20:34:42]MH_I2C_Read... [20:34:42]Read from MH i2c: 01 07 00 [20:34:42]MH_I2C_Read... [20:34:42]Read from MH i2c: 01 07 00 E4 0D 00 00 00 00 00 FF 0F 06 [20:34:42]RasterBufferAndPrint [20:34:42]line Счет N : (1)1963329 [20:34:42]line ИНН: 02508201610067 [20:34:42]line Контрольно-Кассовый Чек [20:34:42]line ПРОДАЖА [20:34:42]line ТРК (МРК, ГНК) : 43 [20:34:42]line Товар: 2710124130 [20:34:42]line Аи-92-К-5 [20:34:42]line 5.980 * 66.90 [20:34:42]line = 400.06 [20:34:42]line НДС 12% НСП 1% [20:34:42]line > о реализуемом товаре [20:34:42]line ОКРУГЛЕНИЕ: -0.06 [20:34:42]line ИТОГО: 400.00 [20:34:42]line Внесено: 400.00 [20:34:42]line СДАЧА: 0.00 [20:34:42]line НСП 1% : 3.54 [20:34:42]line НДС 12% : 42.48 [20:34:42]line Наличными: 400.00 [20:34:42]line Безнал.: 0.00 [20:34:42]line Место: АЗС № 133 "Партнер Нефть" [20:34:42]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [20:34:42]line СНО: Общий режим [20:34:42]line Чек 514 20.10.2024 20:34 [20:34:42]line Смена: 533 ФФД: 1.0 [20:34:42]line ЗНМ: 0300000091 [20:34:42]line РНМ: 0000000000091685 [20:34:42]line Версия ККМ: 001 [20:34:42]line ФМ: 0000000000871839 [20:34:42]line ФД: 227666 [20:34:42]line ФПД: 219229641933508 [20:34:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T203441&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227666&fm=219229641933508&tin=02508201610067®Number=0000000000091685&sum=40000 [20:34:42]OFD Sender: Processing packet 227666 [packets to send 38, broken 37] [20:34:42]ProducePacketName [20:34:42]name=ofd_packets/00227666 [20:34:42]OFD Sender: To server: pG, [20:34:42]CommunicateWithHost lk.salyk.kg:30040 [20:34:42]ConnectInit lk.salyk.kg [20:34:42]written 0, free lines is 4095 [20:34:42]Connected sock=10 [20:34: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 33 39 0F 01 00 00 64 97 07 01 14 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 02 00 00 F4 03 04 00 61 69 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 52 79 03 00 35 04 06 00 C7 63 60 EE 82 C4 96 05 1F 21 B7 7A 78 C3 [20:34: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 33 39 4F 00 00 00 47 DB 47 00 00 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 52 79 03 00 F4 03 04 00 5F 14 15 67 B6 04 01 00 00 E2 E2 B0 D0 02 49 3C 58 [20:34:42]CommunicateWithHost err = 0 [20:34:42]CheckOFDResponse [20:34:42]1017 (14) - 77093643461234 [20:34:42]1041 (16) - 0000000000871839 [20:34:42]1040 (4) - 227666 [20:34:42]1012 (4) - 20.10.2024 14:31 [20:34:42]1206 (1) - 0 [20:34:42]OFD Sender: Remove packet 227666 [20:34:42]ProducePacketName [20:34:42]name=ofd_packets/00227666 [20:34:42]NVStorageDeleteData [20:34:42]Write to MH i2c: 01 00 00 0E 0E 1C [20:34:42]Write i2c OK [20:34:42]MH_I2C_Read... [20:34:42]Read from MH i2c: 01 [20:34:42]MH_I2C_Read... [20:34:42]Read from MH i2c: 01 07 00 [20:34:42]MH_I2C_Read... [20:34:42]Read from MH i2c: 01 07 00 0E 0E 00 00 00 00 00 AF 0C DE [20:34:42]RasterBufferAndPrint [20:34:42]line [20:34:42]line [20:34:42]line [20:34:42]line [20:34:42]line [20:34:42]written 0, free lines is 3251 [20:34:42]MH_Cut [20:34:42]Write to MH i2c: D1 01 00 15 0E 01 F5 [20:34:42]Write i2c OK [20:34:42]MH_I2C_Read... [20:34:42]Read from MH i2c: D1 [20:34:42]MH_I2C_Read... [20:34:42]Read from MH i2c: D1 01 00 [20:34:42]MH_I2C_Read... [20:34:42]Read from MH i2c: D1 01 00 15 0E 00 F4 [20:34:42]Write to MH i2c: 01 00 00 16 0E 24 [20:34:42]Write i2c OK [20:34:42]MH_I2C_Read... [20:34:43]OFD Sender: No OFD packet to send [20:34:43]*** Cut start [20:34:43]*** Partial cut [20:34:43]*** CUTSNS_PIN = 1 [20:34:43]*** CUTSNS_PIN = 0 [20:34:44]*** Brake cut motor [20:34:44]Read from MH i2c: 01 [20:34:44]MH_I2C_Read... [20:34:44]*** Stop cut motor [20:34:44]*** Cut end [20:34:44]Read from MH i2c: 01 07 00 [20:34:44]MH_I2C_Read... [20:34:44]Read from MH i2c: 01 07 00 16 0E 00 00 00 00 00 FF 0F 39 [20:34:44]process_action close_receipt done [20:34:44]requested_data is exist [20:34:44]produce_requested_data [20:34:44]requested_item fm.sn is exist - process it [20:34:44]wFMCommunicate request_size=4 [20:34:44]MH_SAM_APDU [20:34:44]CAPDU: 80 11 00 00 [20:34:44]Write to MH i2c: E2 08 00 17 0E 80 11 00 00 00 00 00 00 9F [20:34:44]Write i2c OK [20:34:44]MH_I2C_Read... [20:34:44]Read from MH i2c: E2 [20:34:44]MH_I2C_Read... [20:34:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:34:44]Read from MH i2c: E2 17 00 [20:34:44]MH_I2C_Read... [20:34:44]Read from MH i2c: E2 17 00 17 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F6 [20:34:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:34:44]wFMCommunicate OK [20:34:44]requested_item fd.num is exist - process it [20:34:44]SAM_PROTO_GetFieldsCounters [20:34:44]wFMCommunicate request_size=4 [20:34:44]MH_SAM_APDU [20:34:44]CAPDU: 80 13 00 00 [20:34:44]Write to MH i2c: E2 08 00 18 0E 80 13 00 00 00 00 00 00 A2 [20:34:44]Write i2c OK [20:34:44]MH_I2C_Read... [20:34:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:34:44]Read from MH i2c: E2 [20:34:44]MH_I2C_Read... [20:34:44]Read from MH i2c: E2 62 00 [20:34:44]MH_I2C_Read... [20:34:44]Read from MH i2c: E2 62 00 18 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 52 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 02 02 00 00 5E 04 04 00 02 02 00 00 57 04 04 00 03 02 00 00 19 04 04 00 00 00 00 00 90 00 BC [20:34: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 52 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 02 02 00 00 5E 04 04 00 02 02 00 00 57 04 04 00 03 02 00 00 19 04 04 00 00 00 00 00 90 00 [20:34:44]wFMCommunicate OK [20:34:44]SAM_PROTO_GetFieldsCounters done [20:34:44]requested_item shift.num is exist - process it [20:34:44]requested_item shift.opened is exist - process it [20:34:44]req_shift_opened [20:34:44]FM_GetShiftState [20:34:44]SAM_PROTO_GetShiftState [20:34:44]wFMCommunicate request_size=4 [20:34:44]MH_SAM_APDU [20:34:44]CAPDU: 80 13 01 00 [20:34:44]Write to MH i2c: E2 08 00 19 0E 80 13 01 00 00 00 00 00 A4 [20:34:44]Write i2c OK [20:34:44]MH_I2C_Read... [20:34:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:34:44]Read from MH i2c: E2 [20:34:44]MH_I2C_Read... [20:34:44]Read from MH i2c: E2 0E 00 [20:34:44]MH_I2C_Read... [20:34:44]Read from MH i2c: E2 0E 00 19 0E 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 BE [20:34:44]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:34:44]wFMCommunicate OK [20:34:44]SAM_PROTO_GetShiftState done [20:34:44]FM_GetShiftState done [20:34:44]req_shift_opened done [20:34:44]requested_item shift.open_date is exist - process it [20:34:44]req_shift_open_date [20:34:44]req_shift_open_date done [20:34:44]produce_requested_data done [20:34:44]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227666,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [20:34:44]process_action_free close_receipt [20:34:44]json_value_free [20:34:44]json_value_free done [20:34:44]process_json_proto returns [20:34:44]Send response to host [20:34:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227666,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [20:34:44]free response buf [20:34:44]execute_script done [20:34:44]execute_script returns [20:34:44]free content buf [20:34:44]Sock 9.Close socket [20:34:44]Sock 9.Thread stoped [20:34:48]OFD Sender: No OFD packet to send [20:34:53]OFD Sender: No OFD packet to send [20:34:55]accept exits with 7 [20:34:55]New connection [20:34:55]New thread 3066666340 created [20:34:55]Thread 3066809700 joined [20:34:55]Waiting for new connection... [20:34:55] Sock 7.Parse request [20:34:55]Sock 7.Check first char [20:34:55]Sock 7.First char is OK [20:34:55]request: POST /json_proto HTTP/1.0 [20:34:55]Method: POST [20:34:55]URL: /json_proto [20:34:55]Method is POST - this is cgi request [20:34:55]url: /json_proto [20:34:55]query_string will be loaded in cgi processing [20:34:55]execute_cgi json_proto POST (null) [20:34:55]execute_cgi path=json_proto method=POST [20:34:55]POST find Content-Length [20:34:55]Host: 172.17.44.195:8080 [20:34:55]Content-Length: 683 [20:34:55]Content-Type: application/json [20:34:55] [20:34:55]POST finish read [20:34:55]Found Content-Length = 683 [20:34:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963330", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:34:55]execute_script... [20:34: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)1963330", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:34:55]POST & json_proto [20:34:55]process_json_proto [20:34:55]json parsed OK: [20:34:55]protocol is kg_v1.0 [20:34:55]action value=close_receipt [20:34:55]process_action close_receipt [20:34:55]cmd_close_receipt [20:34:55]MH_GetDate [20:34:55]Write to MH i2c: F0 00 00 1A 0E 17 [20:34:55]Write i2c OK [20:34:55]MH_I2C_Read... [20:34:55]Read from MH i2c: F0 [20:34:55]MH_I2C_Read... [20:34:55]Read from MH i2c: F0 09 00 [20:34:55]MH_I2C_Read... [20:34:55]Read from MH i2c: F0 09 00 1A 0E 00 70 69 15 67 82 C9 CF 66 F5 [20:34:55]GetLastDocTimeStamp 1729456481 [20:34:55]current date 1729456496 [20:34:55]FM_GetShiftState [20:34:55]SAM_PROTO_GetShiftState [20:34:55]wFMCommunicate request_size=4 [20:34:55]MH_SAM_APDU [20:34:55]CAPDU: 80 13 01 00 [20:34:55]Write to MH i2c: E2 08 00 1B 0E 80 13 01 00 00 00 00 00 A6 [20:34:55]Write i2c OK [20:34:55]MH_I2C_Read... [20:34:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:34:55]Read from MH i2c: E2 [20:34:55]MH_I2C_Read... [20:34:55]Read from MH i2c: E2 0E 00 [20:34:55]MH_I2C_Read... [20:34:55]Read from MH i2c: E2 0E 00 1B 0E 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 C0 [20:34:55]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:34:55]wFMCommunicate OK [20:34:55]SAM_PROTO_GetShiftState done [20:34:55]FM_GetShiftState done [20:34:55]opened in 1729383750 [20:34:55]opened+sec_in_day 1729470150 [20:34:55]quantity*price = 100021 [20:34:55]sum+1 = 100023 [20:34:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 515 20.10.2024 20:34 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227667 ФПД: 165271624837340 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T203456&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227667&fm=165271624837340&tin=02508201610067®Number=0000000000091685&sum=100000 [20:34:56]StoreToDocumentArchive [20:34:56]shift 533 fd 227667 [20:34:56]save to /storage/0533/doc_00227667 [20:34:56]save last doc name /storage/0533/doc_00227667 to /storage/kkm_last_doc_name [20:34:56]save OK [20:34:56]Clear old archive folders... [20:34:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:34:56]tlvbuf is 00CB5A00 [20:34:56]SAM_PROTO_ClearQueue [20:34:56]wFMCommunicate request_size=4 [20:34:56]MH_SAM_APDU [20:34:56]CAPDU: 80 09 00 00 [20:34:56]Write to MH i2c: E2 08 00 28 0E 80 09 00 00 00 00 00 00 A8 [20:34:56]Write i2c OK [20:34:56]MH_I2C_Read... [20:34:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:34:56]Read from MH i2c: E2 [20:34:56]MH_I2C_Read... [20:34:56]Read from MH i2c: E2 03 00 [20:34:56]MH_I2C_Read... [20:34:56]Read from MH i2c: E2 03 00 28 0E 00 90 00 AA [20:34:56]RAPDU: 90 00 [20:34:56]wFMCommunicate OK [20:34:56]SAM_PROTO_ClearQueue done [20:34:56]KKMCreateOFDPacket [20:34:56]OFDProtocolAddRootSTLVToBuf [20:34:56]FM_MakeSignedData [20:34:56]FM_MakeSignedData [20:34:56]SAM_PROTO_SignData [20:34:56]wFMCommunicate request_size=4 [20:34:56]MH_SAM_APDU [20:34:56]CAPDU: 80 0D 01 02 [20:34:56]Write to MH i2c: E2 08 00 29 0E 80 0D 01 02 00 00 00 00 B0 [20:34:56]Write i2c OK [20:34:56]MH_I2C_Read... [20:34:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:34:57]Read from MH i2c: E2 [20:34:57]MH_I2C_Read... [20:34:57]Read from MH i2c: E2 03 00 [20:34:57]MH_I2C_Read... [20:34:57]Read from MH i2c: E2 03 00 29 0E 00 90 00 AB [20:34:57]RAPDU: 90 00 [20:34:57]wFMCommunicate OK [20:34:57]wFMCommunicate request_size=255 [20:34:57]MH_SAM_APDU [20:34: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 02 00 00 F4 03 04 00 70 69 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 53 79 03 00 35 04 06 00 96 [20:34:57]Write to MH i2c: E2 02 01 2A 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 02 00 00 F4 03 04 00 70 69 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 53 79 03 00 35 04 06 00 96 00 00 3A [20:34:57]Write i2c OK [20:34:57]MH_I2C_Read... [20:34:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:34:57]Read from MH i2c: E2 [20:34:57]MH_I2C_Read... [20:34:57]Read from MH i2c: E2 03 00 [20:34:57]MH_I2C_Read... [20:34:57]Read from MH i2c: E2 03 00 2A 0E 00 90 00 AC [20:34:57]RAPDU: 90 00 [20:34:57]wFMCommunicate OK [20:34:57]wFMCommunicate request_size=10 [20:34:57]MH_SAM_APDU [20:34:57]CAPDU: 80 0D 02 02 05 50 4C 7D 68 DC [20:34:57]Write to MH i2c: E2 0D 00 2B 0E 80 0D 02 02 05 00 50 4C 7D 68 DC 00 00 1A [20:34:57]Write i2c OK [20:34:57]MH_I2C_Read... [20:34:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:34:57]Read from MH i2c: E2 [20:34:57]MH_I2C_Read... [20:34:57]Read from MH i2c: E2 03 00 [20:34:57]MH_I2C_Read... [20:34:57]Read from MH i2c: E2 03 00 2B 0E 00 90 00 AD [20:34:57]RAPDU: 90 00 [20:34:57]wFMCommunicate OK [20:34:57]wFMCommunicate request_size=4 [20:34:57]MH_SAM_APDU [20:34:57]CAPDU: 80 0D 03 02 [20:34:57]Write to MH i2c: E2 08 00 2C 0E 80 0D 03 02 00 00 00 00 B5 [20:34:57]Write i2c OK [20:34:57]MH_I2C_Read... [20:34:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:34:57]Read from MH i2c: E2 [20:34:57]MH_I2C_Read... [20:34:57]Read from MH i2c: E2 0B 00 [20:34:57]MH_I2C_Read... [20:34:57]Read from MH i2c: E2 0B 00 2C 0E 00 EB EC E0 14 15 D1 1E BE 90 00 43 [20:34:57]RAPDU: EB EC E0 14 15 D1 1E BE 90 00 [20:34:57]wFMCommunicate OK [20:34:57]SAM_PROTO_SignData done [20:34:57]FM_MakeSignedData done [20:34:57]CreateOFDProtocolMessage [20:34:57]wFMCommunicate request_size=4 [20:34:57]MH_SAM_APDU [20:34:57]CAPDU: 80 11 00 00 [20:34:57]Write to MH i2c: E2 08 00 2D 0E 80 11 00 00 00 00 00 00 B5 [20:34:57]Write i2c OK [20:34:57]MH_I2C_Read... [20:34:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:34:57]Read from MH i2c: E2 [20:34:57]MH_I2C_Read... [20:34:57]Read from MH i2c: E2 17 00 [20:34:57]MH_I2C_Read... [20:34:57]Read from MH i2c: E2 17 00 2D 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 0C [20:34:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:34:57]wFMCommunicate OK [20:34:57]CreateOFDProtocolMessage done [20:34:57]OFDSenderStorePacket 227667 [20:34:57]StoreOFDPacket docnum=227667 [20:34:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 99 C3 07 01 DC 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 02 00 00 F4 03 04 00 70 69 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 53 79 03 00 35 04 06 00 96 50 4C 7D 68 DC EB EC E0 14 15 D1 1E BE [20:34:57]CheckFolder [20:34:57]dirname=/storage/ofd_packets [20:34:57]CheckFolder done [20:34:57]ProducePacketName [20:34:57]name=ofd_packets/00227667 [20:34:57]NVStorageSaveData ofd_packets/00227667 [20:34:57]File name is /storage/ofd_packets/00227667 [20:34:57]Write 301 bytes [20:34:57]NVStorageSaveData done [20:34:57]OFDSenderStorePacket done [20:34:57]KKMCreateOFDPacket done [20:34:57]NVStorageSaveData kkm_last_timestamp [20:34:57]File name is /storage/kkm_last_timestamp [20:34:57]Write 4 bytes [20:34:57]NVStorageSaveData done [20:34:57]ExternCall_PrintAddStr [20:34:57]wPrintStart [20:34:57]Write to MH i2c: 01 00 00 2E 0E 3C [20:34:57]Write i2c OK [20:34:57]MH_I2C_Read... [20:34:57]Read from MH i2c: 01 [20:34:57]MH_I2C_Read... [20:34:57]Read from MH i2c: 01 07 00 [20:34:57]MH_I2C_Read... [20:34:57]Read from MH i2c: 01 07 00 2E 0E 00 00 00 00 00 FF 0F 51 [20:34:57]RasterBufferAndPrint [20:34:57]line Счет N : (1)1963330 [20:34:57]line ИНН: 02508201610067 [20:34:57]line Контрольно-Кассовый Чек [20:34:57]line ПРОДАЖА [20:34:57]line ТРК (МРК, ГНК) : 64 [20:34:57]line Товар: 2710124500 [20:34:57]line Аи-95-К-5 [20:34:57]line 13.480 * 74.20 [20:34:57]line = 1000.22 [20:34:57]line НДС 12% НСП 1% [20:34:57]line > о реализуемом товаре [20:34:57]line ОКРУГЛЕНИЕ: -0.22 [20:34:57]line ИТОГО: 1000.00 [20:34:57]line Внесено: 1000.00 [20:34:57]line СДАЧА: 0.00 [20:34:57]line НСП 1% : 8.85 [20:34:57]line НДС 12% : 106.22 [20:34:57]line Наличными: 1000.00 [20:34:57]line Безнал.: 0.00 [20:34:57]line Место: АЗС № 133 "Партнер Нефть" [20:34:57]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [20:34:57]line СНО: Общий режим [20:34:57]line Чек 515 20.10.2024 20:34 [20:34:57]line Смена: 533 ФФД: 1.0 [20:34:57]line ЗНМ: 0300000091 [20:34:57]line РНМ: 0000000000091685 [20:34:57]line Версия ККМ: 001 [20:34:57]line ФМ: 0000000000871839 [20:34:57]line ФД: 227667 [20:34:57]line ФПД: 165271624837340 [20:34:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T203456&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227667&fm=165271624837340&tin=02508201610067®Number=0000000000091685&sum=100000 [20:34:57]OFD Sender: Processing packet 227667 [packets to send 38, broken 37] [20:34:57]ProducePacketName [20:34:57]name=ofd_packets/00227667 [20:34:57]OFD Sender: To server: pG, [20:34:57]CommunicateWithHost lk.salyk.kg:30040 [20:34:57]ConnectInit lk.salyk.kg [20:34:57]written 0, free lines is 4095 [20:34:57]Connected sock=10 [20:34: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 33 39 0F 01 00 00 99 C3 07 01 DC 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 02 00 00 F4 03 04 00 70 69 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 53 79 03 00 35 04 06 00 96 50 4C 7D 68 DC EB EC E0 14 15 D1 1E BE [20:34: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 33 39 4F 00 00 00 EC 52 47 00 5B 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 33 39 10 04 04 00 53 79 03 00 F4 03 04 00 6E 14 15 67 B6 04 01 00 00 4B 8D 60 8E AF 6D 42 A4 [20:34:58]CommunicateWithHost err = 0 [20:34:58]CheckOFDResponse [20:34:58]1017 (14) - 77093643461234 [20:34:58]1041 (16) - 0000000000871839 [20:34:58]1040 (4) - 227667 [20:34:58]1012 (4) - 20.10.2024 14:32 [20:34:58]1206 (1) - 0 [20:34:58]OFD Sender: Remove packet 227667 [20:34:58]ProducePacketName [20:34:58]name=ofd_packets/00227667 [20:34:58]NVStorageDeleteData [20:34:58]Write to MH i2c: 01 00 00 58 0E 66 [20:34:58]Write i2c OK [20:34:58]MH_I2C_Read... [20:34:58]Read from MH i2c: 01 [20:34:58]MH_I2C_Read... [20:34:58]Read from MH i2c: 01 07 00 [20:34:58]MH_I2C_Read... [20:34:58]Read from MH i2c: 01 07 00 58 0E 00 00 00 00 00 B7 0C 30 [20:34:58]RasterBufferAndPrint [20:34:58]line [20:34:58]line [20:34:58]line [20:34:58]line [20:34:58]line [20:34:58]written 0, free lines is 3259 [20:34:58]MH_Cut [20:34:58]Write to MH i2c: D1 01 00 5F 0E 01 3F [20:34:58]Write i2c OK [20:34:58]MH_I2C_Read... [20:34:58]Read from MH i2c: D1 [20:34:58]MH_I2C_Read... [20:34:58]Read from MH i2c: D1 01 00 [20:34:58]MH_I2C_Read... [20:34:58]Read from MH i2c: D1 01 00 5F 0E 00 3E [20:34:58]Write to MH i2c: 01 00 00 60 0E 6E [20:34:58]Write i2c OK [20:34:58]MH_I2C_Read... [20:34:58]OFD Sender: No OFD packet to send [20:34:59]*** Cut start [20:34:59]*** Partial cut [20:34:59]*** CUTSNS_PIN = 1 [20:34:59]*** CUTSNS_PIN = 0 [20:34:59]*** Brake cut motor [20:34:59]Read from MH i2c: 01 [20:34:59]MH_I2C_Read... [20:34:59]*** Stop cut motor [20:34:59]*** Cut end [20:34:59]Read from MH i2c: 01 07 00 [20:34:59]MH_I2C_Read... [20:34:59]Read from MH i2c: 01 07 00 60 0E 00 00 00 00 00 FF 0F 83 [20:34:59]process_action close_receipt done [20:34:59]requested_data is exist [20:34:59]produce_requested_data [20:34:59]requested_item fm.sn is exist - process it [20:34:59]wFMCommunicate request_size=4 [20:34:59]MH_SAM_APDU [20:34:59]CAPDU: 80 11 00 00 [20:34:59]Write to MH i2c: E2 08 00 61 0E 80 11 00 00 00 00 00 00 E9 [20:34:59]Write i2c OK [20:34:59]MH_I2C_Read... [20:34:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:34:59]Read from MH i2c: E2 [20:34:59]MH_I2C_Read... [20:34:59]Read from MH i2c: E2 17 00 [20:34:59]MH_I2C_Read... [20:34:59]Read from MH i2c: E2 17 00 61 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 40 [20:34:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:34:59]wFMCommunicate OK [20:34:59]requested_item fd.num is exist - process it [20:34:59]SAM_PROTO_GetFieldsCounters [20:34:59]wFMCommunicate request_size=4 [20:34:59]MH_SAM_APDU [20:34:59]CAPDU: 80 13 00 00 [20:34:59]Write to MH i2c: E2 08 00 62 0E 80 13 00 00 00 00 00 00 EC [20:34:59]Write i2c OK [20:34:59]MH_I2C_Read... [20:34:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:34:59]Read from MH i2c: E2 [20:34:59]MH_I2C_Read... [20:34:59]Read from MH i2c: E2 62 00 [20:34:59]MH_I2C_Read... [20:35:00]Read from MH i2c: E2 62 00 62 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 53 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 03 02 00 00 5E 04 04 00 03 02 00 00 57 04 04 00 04 02 00 00 19 04 04 00 00 00 00 00 90 00 0A [20:35: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 53 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 03 02 00 00 5E 04 04 00 03 02 00 00 57 04 04 00 04 02 00 00 19 04 04 00 00 00 00 00 90 00 [20:35:00]wFMCommunicate OK [20:35:00]SAM_PROTO_GetFieldsCounters done [20:35:00]requested_item shift.num is exist - process it [20:35:00]requested_item shift.opened is exist - process it [20:35:00]req_shift_opened [20:35:00]FM_GetShiftState [20:35:00]SAM_PROTO_GetShiftState [20:35:00]wFMCommunicate request_size=4 [20:35:00]MH_SAM_APDU [20:35:00]CAPDU: 80 13 01 00 [20:35:00]Write to MH i2c: E2 08 00 63 0E 80 13 01 00 00 00 00 00 EE [20:35:00]Write i2c OK [20:35:00]MH_I2C_Read... [20:35:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:35:00]Read from MH i2c: E2 [20:35:00]MH_I2C_Read... [20:35:00]Read from MH i2c: E2 0E 00 [20:35:00]MH_I2C_Read... [20:35:00]Read from MH i2c: E2 0E 00 63 0E 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 08 [20:35:00]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:35:00]wFMCommunicate OK [20:35:00]SAM_PROTO_GetShiftState done [20:35:00]FM_GetShiftState done [20:35:00]req_shift_opened done [20:35:00]requested_item shift.open_date is exist - process it [20:35:00]req_shift_open_date [20:35:00]req_shift_open_date done [20:35:00]produce_requested_data done [20:35:00]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227667,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [20:35:00]process_action_free close_receipt [20:35:00]json_value_free [20:35:00]json_value_free done [20:35:00]process_json_proto returns [20:35:00]Send response to host [20:35:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227667,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [20:35:00]free response buf [20:35:00]execute_script done [20:35:00]execute_script returns [20:35:00]free content buf [20:35:00]Sock 7.Close socket [20:35:00]Sock 7.Thread stoped [20:35:03]OFD Sender: No OFD packet to send [20:35:08]OFD Sender: No OFD packet to send [20:35:13]OFD Sender: No OFD packet to send [20:35:18]OFD Sender: No OFD packet to send [20:35:23]OFD Sender: No OFD packet to send [20:35:28]OFD Sender: No OFD packet to send [20:35:33]OFD Sender: No OFD packet to send [20:35:38]OFD Sender: No OFD packet to send [20:35:43]OFD Sender: No OFD packet to send [20:35:48]OFD Sender: No OFD packet to send [20:35:53]OFD Sender: No OFD packet to send [20:35:58]OFD Sender: No OFD packet to send [20:36:03]OFD Sender: No OFD packet to send [20:36:08]OFD Sender: No OFD packet to send [20:36:13]OFD Sender: No OFD packet to send [20:36:18]OFD Sender: No OFD packet to send [20:36:23]OFD Sender: No OFD packet to send [20:36:28]OFD Sender: No OFD packet to send [20:36:33]OFD Sender: No OFD packet to send [20:36:34]accept exits with 9 [20:36:34]New connection [20:36:34]New thread 3066809700 created [20:36:34]Thread 3066666340 joined [20:36:34]Waiting for new connection... [20:36:34] Sock 9.Parse request [20:36:34]Sock 9.Check first char [20:36:34]Sock 9.First char is OK [20:36:34]request: POST /json_proto HTTP/1.0 [20:36:34]Method: POST [20:36:34]URL: /json_proto [20:36:34]Method is POST - this is cgi request [20:36:34]url: /json_proto [20:36:34]query_string will be loaded in cgi processing [20:36:34]execute_cgi json_proto POST (null) [20:36:34]execute_cgi path=json_proto method=POST [20:36:34]POST find Content-Length [20:36:34]Host: 172.17.44.195:8080 [20:36:34]Content-Length: 678 [20:36:34]Content-Type: application/json [20:36:34] [20:36:34]POST finish read [20:36:34]Found Content-Length = 678 [20:36:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963331", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:36:34]execute_script... [20:36: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)1963331", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:36:34]POST & json_proto [20:36:34]process_json_proto [20:36:34]json parsed OK: [20:36:34]protocol is kg_v1.0 [20:36:34]action value=close_receipt [20:36:34]process_action close_receipt [20:36:34]cmd_close_receipt [20:36:34]MH_GetDate [20:36:34]Write to MH i2c: F0 00 00 64 0E 61 [20:36:34]Write i2c OK [20:36:34]MH_I2C_Read... [20:36:34]Read from MH i2c: F0 [20:36:34]MH_I2C_Read... [20:36:34]Read from MH i2c: F0 09 00 [20:36:34]MH_I2C_Read... [20:36:34]Read from MH i2c: F0 09 00 64 0E 00 D3 69 15 67 82 C9 CF 66 A2 [20:36:34]GetLastDocTimeStamp 1729456496 [20:36:34]current date 1729456595 [20:36:34]FM_GetShiftState [20:36:34]SAM_PROTO_GetShiftState [20:36:34]wFMCommunicate request_size=4 [20:36:34]MH_SAM_APDU [20:36:34]CAPDU: 80 13 01 00 [20:36:34]Write to MH i2c: E2 08 00 65 0E 80 13 01 00 00 00 00 00 F0 [20:36:34]Write i2c OK [20:36:34]MH_I2C_Read... [20:36:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:36:34]Read from MH i2c: E2 [20:36:34]MH_I2C_Read... [20:36:34]Read from MH i2c: E2 0E 00 [20:36:34]MH_I2C_Read... [20:36:34]Read from MH i2c: E2 0E 00 65 0E 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 0A [20:36:34]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:36:34]wFMCommunicate OK [20:36:34]SAM_PROTO_GetShiftState done [20:36:34]FM_GetShiftState done [20:36:34]opened in 1729383750 [20:36:34]opened+sec_in_day 1729470150 [20:36:34]quantity*price = 30038 [20:36:34]sum+1 = 30039 [20:36:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 516 20.10.2024 20:36 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227668 ФПД: 171859242558724 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T203635&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227668&fm=171859242558724&tin=02508201610067®Number=0000000000091685&sum=30000 [20:36:35]StoreToDocumentArchive [20:36:35]shift 533 fd 227668 [20:36:35]save to /storage/0533/doc_00227668 [20:36:35]save last doc name /storage/0533/doc_00227668 to /storage/kkm_last_doc_name [20:36:35]save OK [20:36:35]Clear old archive folders... [20:36:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:36:35]tlvbuf is B6E9EA00 [20:36:35]SAM_PROTO_ClearQueue [20:36:35]wFMCommunicate request_size=4 [20:36:35]MH_SAM_APDU [20:36:35]CAPDU: 80 09 00 00 [20:36:35]Write to MH i2c: E2 08 00 72 0E 80 09 00 00 00 00 00 00 F2 [20:36:35]Write i2c OK [20:36:35]MH_I2C_Read... [20:36:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:36:35]Read from MH i2c: E2 [20:36:35]MH_I2C_Read... [20:36:35]Read from MH i2c: E2 03 00 [20:36:35]MH_I2C_Read... [20:36:35]Read from MH i2c: E2 03 00 72 0E 00 90 00 F4 [20:36:35]RAPDU: 90 00 [20:36:35]wFMCommunicate OK [20:36:35]SAM_PROTO_ClearQueue done [20:36:35]KKMCreateOFDPacket [20:36:35]OFDProtocolAddRootSTLVToBuf [20:36:35]FM_MakeSignedData [20:36:35]FM_MakeSignedData [20:36:35]SAM_PROTO_SignData [20:36:35]wFMCommunicate request_size=4 [20:36:35]MH_SAM_APDU [20:36:35]CAPDU: 80 0D 01 02 [20:36:35]Write to MH i2c: E2 08 00 73 0E 80 0D 01 02 00 00 00 00 FA [20:36:35]Write i2c OK [20:36:35]MH_I2C_Read... [20:36:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:36:35]Read from MH i2c: E2 [20:36:35]MH_I2C_Read... [20:36:35]Read from MH i2c: E2 03 00 [20:36:35]MH_I2C_Read... [20:36:35]Read from MH i2c: E2 03 00 73 0E 00 90 00 F5 [20:36:35]RAPDU: 90 00 [20:36:35]wFMCommunicate OK [20:36:35]wFMCommunicate request_size=255 [20:36:35]MH_SAM_APDU [20:36:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 02 00 00 F4 03 04 00 D3 69 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 54 79 03 00 35 04 06 00 9C [20:36:35]Write to MH i2c: E2 02 01 74 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 02 00 00 F4 03 04 00 D3 69 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 54 79 03 00 35 04 06 00 9C 00 00 C6 [20:36:35]Write i2c OK [20:36:35]MH_I2C_Read... [20:36:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:36:35]Read from MH i2c: E2 [20:36:35]MH_I2C_Read... [20:36:35]Read from MH i2c: E2 03 00 [20:36:35]MH_I2C_Read... [20:36:35]Read from MH i2c: E2 03 00 74 0E 00 90 00 F6 [20:36:35]RAPDU: 90 00 [20:36:35]wFMCommunicate OK [20:36:35]wFMCommunicate request_size=10 [20:36:35]MH_SAM_APDU [20:36:35]CAPDU: 80 0D 02 02 05 4E 19 1A A5 04 [20:36:35]Write to MH i2c: E2 0D 00 75 0E 80 0D 02 02 05 00 4E 19 1A A5 04 00 00 31 [20:36:35]Write i2c OK [20:36:35]MH_I2C_Read... [20:36:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:36:35]Read from MH i2c: E2 [20:36:35]MH_I2C_Read... [20:36:35]Read from MH i2c: E2 03 00 [20:36:35]MH_I2C_Read... [20:36:35]Read from MH i2c: E2 03 00 75 0E 00 90 00 F7 [20:36:35]RAPDU: 90 00 [20:36:35]wFMCommunicate OK [20:36:35]wFMCommunicate request_size=4 [20:36:35]MH_SAM_APDU [20:36:35]CAPDU: 80 0D 03 02 [20:36:35]Write to MH i2c: E2 08 00 76 0E 80 0D 03 02 00 00 00 00 FF [20:36:35]Write i2c OK [20:36:35]MH_I2C_Read... [20:36:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:36:35]Read from MH i2c: E2 [20:36:35]MH_I2C_Read... [20:36:35]Read from MH i2c: E2 0B 00 [20:36:35]MH_I2C_Read... [20:36:35]Read from MH i2c: E2 0B 00 76 0E 00 D9 06 EC C9 43 69 67 B7 90 00 5E [20:36:35]RAPDU: D9 06 EC C9 43 69 67 B7 90 00 [20:36:35]wFMCommunicate OK [20:36:35]SAM_PROTO_SignData done [20:36:35]FM_MakeSignedData done [20:36:35]CreateOFDProtocolMessage [20:36:35]wFMCommunicate request_size=4 [20:36:35]MH_SAM_APDU [20:36:35]CAPDU: 80 11 00 00 [20:36:35]Write to MH i2c: E2 08 00 77 0E 80 11 00 00 00 00 00 00 FF [20:36:35]Write i2c OK [20:36:35]MH_I2C_Read... [20:36:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:36:35]Read from MH i2c: E2 [20:36:35]MH_I2C_Read... [20:36:35]Read from MH i2c: E2 17 00 [20:36:35]MH_I2C_Read... [20:36:35]Read from MH i2c: E2 17 00 77 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 56 [20:36:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:36:35]wFMCommunicate OK [20:36:35]CreateOFDProtocolMessage done [20:36:35]OFDSenderStorePacket 227668 [20:36:35]StoreOFDPacket docnum=227668 [20:36:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 73 25 07 01 DE CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 02 00 00 F4 03 04 00 D3 69 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 54 79 03 00 35 04 06 00 9C 4E 19 1A A5 04 D9 06 EC C9 43 69 67 B7 [20:36:35]CheckFolder [20:36:35]dirname=/storage/ofd_packets [20:36:35]CheckFolder done [20:36:35]ProducePacketName [20:36:35]name=ofd_packets/00227668 [20:36:35]NVStorageSaveData ofd_packets/00227668 [20:36:35]File name is /storage/ofd_packets/00227668 [20:36:35]Write 301 bytes [20:36:35]NVStorageSaveData done [20:36:35]OFDSenderStorePacket done [20:36:35]KKMCreateOFDPacket done [20:36:35]NVStorageSaveData kkm_last_timestamp [20:36:35]File name is /storage/kkm_last_timestamp [20:36:35]Write 4 bytes [20:36:35]NVStorageSaveData done [20:36:35]ExternCall_PrintAddStr [20:36:35]wPrintStart [20:36:35]Write to MH i2c: 01 00 00 78 0E 86 [20:36:35]Write i2c OK [20:36:35]MH_I2C_Read... [20:36:35]Read from MH i2c: 01 [20:36:35]MH_I2C_Read... [20:36:35]Read from MH i2c: 01 07 00 [20:36:35]MH_I2C_Read... [20:36:35]Read from MH i2c: 01 07 00 78 0E 00 00 00 00 00 FF 0F 9B [20:36:35]RasterBufferAndPrint [20:36:35]line Счет N : (1)1963331 [20:36:35]line ИНН: 02508201610067 [20:36:35]line Контрольно-Кассовый Чек [20:36:35]line ПРОДАЖА [20:36:35]line ТРК (МРК, ГНК) : 53 [20:36:35]line Товар: 2710124130 [20:36:35]line Аи-92-К-5 [20:36:35]line 4.490 * 66.90 [20:36:35]line = 300.38 [20:36:35]line НДС 12% НСП 1% [20:36:35]line > о реализуемом товаре [20:36:35]line ОКРУГЛЕНИЕ: -0.38 [20:36:35]line ИТОГО: 300.00 [20:36:35]line Внесено: 300.00 [20:36:35]line СДАЧА: 0.00 [20:36:35]line НСП 1% : 2.66 [20:36:35]line НДС 12% : 31.90 [20:36:35]line Наличными: 300.00 [20:36:35]line Безнал.: 0.00 [20:36:35]line Место: АЗС № 133 "Партнер Нефть" [20:36:35]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [20:36:35]line СНО: Общий режим [20:36:35]line Чек 516 20.10.2024 20:36 [20:36:35]line Смена: 533 ФФД: 1.0 [20:36:35]line ЗНМ: 0300000091 [20:36:35]line РНМ: 0000000000091685 [20:36:35]line Версия ККМ: 001 [20:36:35]line ФМ: 0000000000871839 [20:36:35]line ФД: 227668 [20:36:35]line ФПД: 171859242558724 [20:36:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T203635&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227668&fm=171859242558724&tin=02508201610067®Number=0000000000091685&sum=30000 [20:36:36]written 0, free lines is 4095 [20:36:36]OFD Sender: Processing packet 227668 [packets to send 38, broken 37] [20:36:36]ProducePacketName [20:36:36]name=ofd_packets/00227668 [20:36:36]OFD Sender: To server: pG, [20:36:36]CommunicateWithHost lk.salyk.kg:30040 [20:36:36]ConnectInit lk.salyk.kg [20:36:36]Connected sock=11 [20:36:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 73 25 07 01 DE CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 02 00 00 F4 03 04 00 D3 69 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 54 79 03 00 35 04 06 00 9C 4E 19 1A A5 04 D9 06 EC C9 43 69 67 B7 [20:36:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 2F D3 47 00 D4 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 33 39 10 04 04 00 54 79 03 00 F4 03 04 00 D1 14 15 67 B6 04 01 00 00 38 81 BE EC E6 65 1D E6 [20:36:36]CommunicateWithHost err = 0 [20:36:36]CheckOFDResponse [20:36:36]1017 (14) - 77093643461234 [20:36:36]1041 (16) - 0000000000871839 [20:36:36]1040 (4) - 227668 [20:36:36]1012 (4) - 20.10.2024 14:33 [20:36:36]1206 (1) - 0 [20:36:36]OFD Sender: Remove packet 227668 [20:36:36]ProducePacketName [20:36:36]name=ofd_packets/00227668 [20:36:36]NVStorageDeleteData [20:36:36]Write to MH i2c: 01 00 00 A2 0E B0 [20:36:36]Write i2c OK [20:36:36]MH_I2C_Read... [20:36:36]Read from MH i2c: 01 [20:36:36]MH_I2C_Read... [20:36:36]Read from MH i2c: 01 07 00 [20:36:36]MH_I2C_Read... [20:36:36]Read from MH i2c: 01 07 00 A2 0E 00 00 00 00 00 B2 0C 75 [20:36:36]RasterBufferAndPrint [20:36:36]line [20:36:36]line [20:36:36]line [20:36:36]line [20:36:36]line [20:36:36]written 0, free lines is 3254 [20:36:36]MH_Cut [20:36:36]Write to MH i2c: D1 01 00 A9 0E 01 89 [20:36:36]Write i2c OK [20:36:36]MH_I2C_Read... [20:36:36]Read from MH i2c: D1 [20:36:36]MH_I2C_Read... [20:36:36]Read from MH i2c: D1 01 00 [20:36:36]MH_I2C_Read... [20:36:36]Read from MH i2c: D1 01 00 A9 0E 00 88 [20:36:36]Write to MH i2c: 01 00 00 AA 0E B8 [20:36:36]Write i2c OK [20:36:36]MH_I2C_Read... [20:36:37]OFD Sender: No OFD packet to send [20:36:37]*** Cut start [20:36:37]*** Partial cut [20:36:37]*** CUTSNS_PIN = 1 [20:36:37]*** CUTSNS_PIN = 0 [20:36:37]*** Brake cut motor [20:36:38]Read from MH i2c: 01 [20:36:38]MH_I2C_Read... [20:36:38]*** Stop cut motor [20:36:38]*** Cut end [20:36:38]Read from MH i2c: 01 07 00 [20:36:38]MH_I2C_Read... [20:36:38]Read from MH i2c: 01 07 00 AA 0E 00 00 00 00 00 FF 0F CD [20:36:38]process_action close_receipt done [20:36:38]requested_data is exist [20:36:38]produce_requested_data [20:36:38]requested_item fm.sn is exist - process it [20:36:38]wFMCommunicate request_size=4 [20:36:38]MH_SAM_APDU [20:36:38]CAPDU: 80 11 00 00 [20:36:38]Write to MH i2c: E2 08 00 AB 0E 80 11 00 00 00 00 00 00 33 [20:36:38]Write i2c OK [20:36:38]MH_I2C_Read... [20:36:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:36:38]Read from MH i2c: E2 [20:36:38]MH_I2C_Read... [20:36:38]Read from MH i2c: E2 17 00 [20:36:38]MH_I2C_Read... [20:36:38]Read from MH i2c: E2 17 00 AB 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 8A [20:36:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:36:38]wFMCommunicate OK [20:36:38]requested_item fd.num is exist - process it [20:36:38]SAM_PROTO_GetFieldsCounters [20:36:38]wFMCommunicate request_size=4 [20:36:38]MH_SAM_APDU [20:36:38]CAPDU: 80 13 00 00 [20:36:38]Write to MH i2c: E2 08 00 AC 0E 80 13 00 00 00 00 00 00 36 [20:36:38]Write i2c OK [20:36:38]MH_I2C_Read... [20:36:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:36:38]Read from MH i2c: E2 [20:36:38]MH_I2C_Read... [20:36:38]Read from MH i2c: E2 62 00 [20:36:38]MH_I2C_Read... [20:36:38]Read from MH i2c: E2 62 00 AC 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 54 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 04 02 00 00 5E 04 04 00 04 02 00 00 57 04 04 00 05 02 00 00 19 04 04 00 00 00 00 00 90 00 58 [20:36: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 54 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 04 02 00 00 5E 04 04 00 04 02 00 00 57 04 04 00 05 02 00 00 19 04 04 00 00 00 00 00 90 00 [20:36:38]wFMCommunicate OK [20:36:38]SAM_PROTO_GetFieldsCounters done [20:36:38]requested_item shift.num is exist - process it [20:36:38]requested_item shift.opened is exist - process it [20:36:38]req_shift_opened [20:36:38]FM_GetShiftState [20:36:38]SAM_PROTO_GetShiftState [20:36:38]wFMCommunicate request_size=4 [20:36:38]MH_SAM_APDU [20:36:38]CAPDU: 80 13 01 00 [20:36:38]Write to MH i2c: E2 08 00 AD 0E 80 13 01 00 00 00 00 00 38 [20:36:38]Write i2c OK [20:36:38]MH_I2C_Read... [20:36:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:36:38]Read from MH i2c: E2 [20:36:38]MH_I2C_Read... [20:36:38]Read from MH i2c: E2 0E 00 [20:36:38]MH_I2C_Read... [20:36:38]Read from MH i2c: E2 0E 00 AD 0E 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 52 [20:36:38]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:36:38]wFMCommunicate OK [20:36:38]SAM_PROTO_GetShiftState done [20:36:38]FM_GetShiftState done [20:36:38]req_shift_opened done [20:36:38]requested_item shift.open_date is exist - process it [20:36:38]req_shift_open_date [20:36:38]req_shift_open_date done [20:36:38]produce_requested_data done [20:36:38]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227668,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [20:36:38]process_action_free close_receipt [20:36:38]json_value_free [20:36:38]json_value_free done [20:36:38]process_json_proto returns [20:36:38]Send response to host [20:36:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227668,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [20:36:38]free response buf [20:36:38]execute_script done [20:36:38]execute_script returns [20:36:38]free content buf [20:36:38]Sock 9.Close socket [20:36:38]Sock 9.Thread stoped [20:36:42]OFD Sender: No OFD packet to send [20:36:47]OFD Sender: No OFD packet to send [20:36:52]OFD Sender: No OFD packet to send [20:36:57]OFD Sender: No OFD packet to send [20:37:02]OFD Sender: No OFD packet to send [20:37:07]OFD Sender: No OFD packet to send [20:37:12]OFD Sender: No OFD packet to send [20:37:17]OFD Sender: No OFD packet to send [20:37:22]OFD Sender: No OFD packet to send [20:37:27]OFD Sender: No OFD packet to send [20:37:32]OFD Sender: No OFD packet to send [20:37:37]OFD Sender: No OFD packet to send [20:37:42]OFD Sender: No OFD packet to send [20:37:47]OFD Sender: No OFD packet to send [20:37:52]OFD Sender: No OFD packet to send [20:37:57]OFD Sender: No OFD packet to send [20:38:02]OFD Sender: No OFD packet to send [20:38:07]OFD Sender: No OFD packet to send [20:38:12]OFD Sender: No OFD packet to send [20:38:17]OFD Sender: No OFD packet to send [20:38:22]OFD Sender: No OFD packet to send [20:38:27]OFD Sender: No OFD packet to send [20:38:32]OFD Sender: No OFD packet to send [20:38:37]OFD Sender: No OFD packet to send [20:38:42]OFD Sender: No OFD packet to send [20:38:47]OFD Sender: No OFD packet to send [20:38:52]OFD Sender: No OFD packet to send [20:38:57]OFD Sender: No OFD packet to send [20:39:02]OFD Sender: No OFD packet to send [20:39:07]OFD Sender: No OFD packet to send [20:39:12]OFD Sender: No OFD packet to send [20:39:17]OFD Sender: No OFD packet to send [20:39:22]OFD Sender: No OFD packet to send [20:39:27]OFD Sender: No OFD packet to send [20:39:28]accept exits with 7 [20:39:28]New connection [20:39:28]New thread 3066666340 created [20:39:28]Thread 3066809700 joined [20:39:28]Waiting for new connection... [20:39:28] Sock 7.Parse request [20:39:28]Sock 7.Check first char [20:39:28]Sock 7.First char is OK [20:39:28]request: POST /json_proto HTTP/1.0 [20:39:28]Method: POST [20:39:28]URL: /json_proto [20:39:28]Method is POST - this is cgi request [20:39:28]url: /json_proto [20:39:28]query_string will be loaded in cgi processing [20:39:28]execute_cgi json_proto POST (null) [20:39:28]execute_cgi path=json_proto method=POST [20:39:28]POST find Content-Length [20:39:28]Host: 172.17.44.195:8080 [20:39:28]Content-Length: 678 [20:39:28]Content-Type: application/json [20:39:28] [20:39:28]POST finish read [20:39:28]Found Content-Length = 678 [20:39:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963332", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:39:28]execute_script... [20:39: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)1963332", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:39:28]POST & json_proto [20:39:28]process_json_proto [20:39:28]json parsed OK: [20:39:28]protocol is kg_v1.0 [20:39:28]action value=close_receipt [20:39:28]process_action close_receipt [20:39:28]cmd_close_receipt [20:39:28]MH_GetDate [20:39:28]Write to MH i2c: F0 00 00 AE 0E AB [20:39:28]Write i2c OK [20:39:28]MH_I2C_Read... [20:39:28]Read from MH i2c: F0 [20:39:28]MH_I2C_Read... [20:39:28]Read from MH i2c: F0 09 00 [20:39:28]MH_I2C_Read... [20:39:28]Read from MH i2c: F0 09 00 AE 0E 00 81 6A 15 67 82 C9 CF 66 9B [20:39:28]GetLastDocTimeStamp 1729456595 [20:39:28]current date 1729456769 [20:39:28]FM_GetShiftState [20:39:28]SAM_PROTO_GetShiftState [20:39:28]wFMCommunicate request_size=4 [20:39:28]MH_SAM_APDU [20:39:28]CAPDU: 80 13 01 00 [20:39:28]Write to MH i2c: E2 08 00 AF 0E 80 13 01 00 00 00 00 00 3A [20:39:28]Write i2c OK [20:39:28]MH_I2C_Read... [20:39:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:39:28]Read from MH i2c: E2 [20:39:28]MH_I2C_Read... [20:39:28]Read from MH i2c: E2 0E 00 [20:39:28]MH_I2C_Read... [20:39:28]Read from MH i2c: E2 0E 00 AF 0E 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 54 [20:39:28]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:39:28]wFMCommunicate OK [20:39:28]SAM_PROTO_GetShiftState done [20:39:28]FM_GetShiftState done [20:39:28]opened in 1729383750 [20:39:28]opened+sec_in_day 1729470150 [20:39:28]quantity*price = 20003 [20:39:28]sum+1 = 20004 [20:39:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 517 20.10.2024 20:39 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227669 ФПД: 26444304212457 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T203929&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227669&fm=26444304212457&tin=02508201610067®Number=0000000000091685&sum=20000 [20:39:29]StoreToDocumentArchive [20:39:29]shift 533 fd 227669 [20:39:29]save to /storage/0533/doc_00227669 [20:39:29]save last doc name /storage/0533/doc_00227669 to /storage/kkm_last_doc_name [20:39:29]save OK [20:39:29]Clear old archive folders... [20:39:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:39:29]tlvbuf is B6E9E6D0 [20:39:29]SAM_PROTO_ClearQueue [20:39:29]wFMCommunicate request_size=4 [20:39:29]MH_SAM_APDU [20:39:29]CAPDU: 80 09 00 00 [20:39:29]Write to MH i2c: E2 08 00 BC 0E 80 09 00 00 00 00 00 00 3C [20:39:29]Write i2c OK [20:39:29]MH_I2C_Read... [20:39:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:39:29]Read from MH i2c: E2 [20:39:29]MH_I2C_Read... [20:39:29]Read from MH i2c: E2 03 00 [20:39:29]MH_I2C_Read... [20:39:29]Read from MH i2c: E2 03 00 BC 0E 00 90 00 3E [20:39:29]RAPDU: 90 00 [20:39:29]wFMCommunicate OK [20:39:29]SAM_PROTO_ClearQueue done [20:39:29]KKMCreateOFDPacket [20:39:29]OFDProtocolAddRootSTLVToBuf [20:39:29]FM_MakeSignedData [20:39:29]FM_MakeSignedData [20:39:29]SAM_PROTO_SignData [20:39:29]wFMCommunicate request_size=4 [20:39:29]MH_SAM_APDU [20:39:29]CAPDU: 80 0D 01 02 [20:39:29]Write to MH i2c: E2 08 00 BD 0E 80 0D 01 02 00 00 00 00 44 [20:39:29]Write i2c OK [20:39:29]MH_I2C_Read... [20:39:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:39:29]Read from MH i2c: E2 [20:39:29]MH_I2C_Read... [20:39:29]Read from MH i2c: E2 03 00 [20:39:29]MH_I2C_Read... [20:39:29]Read from MH i2c: E2 03 00 BD 0E 00 90 00 3F [20:39:29]RAPDU: 90 00 [20:39:29]wFMCommunicate OK [20:39:29]wFMCommunicate request_size=255 [20:39:29]MH_SAM_APDU [20:39:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 02 00 00 F4 03 04 00 81 6A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 55 79 03 00 35 04 06 00 18 [20:39:29]Write to MH i2c: E2 02 01 BE 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 02 00 00 F4 03 04 00 81 6A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 55 79 03 00 35 04 06 00 18 00 00 0B [20:39:29]Write i2c OK [20:39:29]MH_I2C_Read... [20:39:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:39:29]Read from MH i2c: E2 [20:39:29]MH_I2C_Read... [20:39:29]Read from MH i2c: E2 03 00 [20:39:29]MH_I2C_Read... [20:39:29]Read from MH i2c: E2 03 00 BE 0E 00 90 00 40 [20:39:29]RAPDU: 90 00 [20:39:29]wFMCommunicate OK [20:39:29]wFMCommunicate request_size=10 [20:39:29]MH_SAM_APDU [20:39:29]CAPDU: 80 0D 02 02 05 0D 0B 5B E1 E9 [20:39:29]Write to MH i2c: E2 0D 00 BF 0E 80 0D 02 02 05 00 0D 0B 5B E1 E9 00 00 8E [20:39:29]Write i2c OK [20:39:29]MH_I2C_Read... [20:39:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:39:29]Read from MH i2c: E2 [20:39:29]MH_I2C_Read... [20:39:29]Read from MH i2c: E2 03 00 [20:39:29]MH_I2C_Read... [20:39:29]Read from MH i2c: E2 03 00 BF 0E 00 90 00 41 [20:39:29]RAPDU: 90 00 [20:39:29]wFMCommunicate OK [20:39:29]wFMCommunicate request_size=4 [20:39:29]MH_SAM_APDU [20:39:29]CAPDU: 80 0D 03 02 [20:39:29]Write to MH i2c: E2 08 00 C0 0E 80 0D 03 02 00 00 00 00 49 [20:39:29]Write i2c OK [20:39:29]MH_I2C_Read... [20:39:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:39:29]Read from MH i2c: E2 [20:39:29]MH_I2C_Read... [20:39:29]Read from MH i2c: E2 0B 00 [20:39:29]MH_I2C_Read... [20:39:29]Read from MH i2c: E2 0B 00 C0 0E 00 C4 B1 88 4C AA 43 43 6C 90 00 2F [20:39:29]RAPDU: C4 B1 88 4C AA 43 43 6C 90 00 [20:39:29]wFMCommunicate OK [20:39:29]SAM_PROTO_SignData done [20:39:29]FM_MakeSignedData done [20:39:29]CreateOFDProtocolMessage [20:39:29]wFMCommunicate request_size=4 [20:39:29]MH_SAM_APDU [20:39:29]CAPDU: 80 11 00 00 [20:39:29]Write to MH i2c: E2 08 00 C1 0E 80 11 00 00 00 00 00 00 49 [20:39:29]Write i2c OK [20:39:29]MH_I2C_Read... [20:39:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:30]Read from MH i2c: E2 [20:39:30]MH_I2C_Read... [20:39:30]Read from MH i2c: E2 17 00 [20:39:30]MH_I2C_Read... [20:39:30]Read from MH i2c: E2 17 00 C1 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A0 [20:39:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:39:30]wFMCommunicate OK [20:39:30]CreateOFDProtocolMessage done [20:39:30]OFDSenderStorePacket 227669 [20:39:30]StoreOFDPacket docnum=227669 [20:39:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 43 94 07 01 BC 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 02 00 00 F4 03 04 00 81 6A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 55 79 03 00 35 04 06 00 18 0D 0B 5B E1 E9 C4 B1 88 4C AA 43 43 6C [20:39:30]CheckFolder [20:39:30]dirname=/storage/ofd_packets [20:39:30]CheckFolder done [20:39:30]ProducePacketName [20:39:30]name=ofd_packets/00227669 [20:39:30]NVStorageSaveData ofd_packets/00227669 [20:39:30]File name is /storage/ofd_packets/00227669 [20:39:30]Write 301 bytes [20:39:30]NVStorageSaveData done [20:39:30]OFDSenderStorePacket done [20:39:30]KKMCreateOFDPacket done [20:39:30]NVStorageSaveData kkm_last_timestamp [20:39:30]File name is /storage/kkm_last_timestamp [20:39:30]Write 4 bytes [20:39:30]NVStorageSaveData done [20:39:30]ExternCall_PrintAddStr [20:39:30]wPrintStart [20:39:30]Write to MH i2c: 01 00 00 C2 0E D0 [20:39:30]Write i2c OK [20:39:30]MH_I2C_Read... [20:39:30]Read from MH i2c: 01 [20:39:30]MH_I2C_Read... [20:39:30]Read from MH i2c: 01 07 00 [20:39:30]MH_I2C_Read... [20:39:30]Read from MH i2c: 01 07 00 C2 0E 00 00 00 00 00 FF 0F E5 [20:39:30]RasterBufferAndPrint [20:39:30]line Счет N : (1)1963332 [20:39:30]line ИНН: 02508201610067 [20:39:30]line Контрольно-Кассовый Чек [20:39:30]line ПРОДАЖА [20:39:30]line ТРК (МРК, ГНК) : 53 [20:39:30]line Товар: 2710124130 [20:39:30]line Аи-92-К-5 [20:39:30]line 2.990 * 66.90 [20:39:30]line = 200.03 [20:39:30]line НДС 12% НСП 1% [20:39:30]line > о реализуемом товаре [20:39:30]line ОКРУГЛЕНИЕ: -0.03 [20:39:30]line ИТОГО: 200.00 [20:39:30]line Внесено: 200.00 [20:39:30]line СДАЧА: 0.00 [20:39:30]line НСП 1% : 1.77 [20:39:30]line НДС 12% : 21.24 [20:39:30]line Наличными: 200.00 [20:39:30]line Безнал.: 0.00 [20:39:30]line Место: АЗС № 133 "Партнер Нефть" [20:39:30]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [20:39:30]line СНО: Общий режим [20:39:30]line Чек 517 20.10.2024 20:39 [20:39:30]line Смена: 533 ФФД: 1.0 [20:39:30]line ЗНМ: 0300000091 [20:39:30]line РНМ: 0000000000091685 [20:39:30]line Версия ККМ: 001 [20:39:30]line ФМ: 0000000000871839 [20:39:30]line ФД: 227669 [20:39:30]line ФПД: 26444304212457 [20:39:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T203929&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227669&fm=26444304212457&tin=02508201610067®Number=0000000000091685&sum=20000 [20:39:30]written 0, free lines is 4095 [20:39:30]OFD Sender: Processing packet 227669 [packets to send 38, broken 37] [20:39:30]ProducePacketName [20:39:30]name=ofd_packets/00227669 [20:39:30]OFD Sender: To server: pG, [20:39:30]CommunicateWithHost lk.salyk.kg:30040 [20:39:30]ConnectInit lk.salyk.kg [20:39:30]Connected sock=10 [20: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 33 39 0F 01 00 00 43 94 07 01 BC 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 02 00 00 F4 03 04 00 81 6A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 55 79 03 00 35 04 06 00 18 0D 0B 5B E1 E9 C4 B1 88 4C AA 43 43 6C [20: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 33 39 4F 00 00 00 07 EA 47 00 2B 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 33 39 10 04 04 00 55 79 03 00 F4 03 04 00 7F 15 15 67 B6 04 01 00 00 6C A4 76 92 F4 4C DC 2A [20:39:30]CommunicateWithHost err = 0 [20:39:30]CheckOFDResponse [20:39:30]1017 (14) - 77093643461234 [20:39:30]1041 (16) - 0000000000871839 [20:39:30]1040 (4) - 227669 [20:39:30]1012 (4) - 20.10.2024 14:36 [20:39:30]1206 (1) - 0 [20:39:30]OFD Sender: Remove packet 227669 [20:39:30]ProducePacketName [20:39:30]name=ofd_packets/00227669 [20:39:30]NVStorageDeleteData [20:39:30]Write to MH i2c: 01 00 00 EC 0E FA [20:39:30]Write i2c OK [20:39:30]MH_I2C_Read... [20:39:30]Read from MH i2c: 01 [20:39:30]MH_I2C_Read... [20:39:30]Read from MH i2c: 01 07 00 [20:39:30]MH_I2C_Read... [20:39:30]Read from MH i2c: 01 07 00 EC 0E 00 00 00 00 00 A7 0C B4 [20:39:30]RasterBufferAndPrint [20:39:30]line [20:39:30]line [20:39:30]line [20:39:30]line [20:39:30]line [20:39:30]written 0, free lines is 3242 [20:39:30]MH_Cut [20:39:30]Write to MH i2c: D1 01 00 F3 0E 01 D3 [20:39:30]Write i2c OK [20:39:30]MH_I2C_Read... [20:39:30]Read from MH i2c: D1 [20:39:30]MH_I2C_Read... [20:39:30]Read from MH i2c: D1 01 00 [20:39:30]MH_I2C_Read... [20:39:30]Read from MH i2c: D1 01 00 F3 0E 00 D2 [20:39:30]Write to MH i2c: 01 00 00 F4 0E 02 [20:39:30]Write i2c OK [20:39:30]MH_I2C_Read... [20:39:31]OFD Sender: No OFD packet to send [20:39:31]*** Cut start [20:39:31]*** Partial cut [20:39:31]*** CUTSNS_PIN = 1 [20:39:31]*** CUTSNS_PIN = 0 [20:39:32]*** Brake cut motor [20:39:32]Read from MH i2c: 01 [20:39:32]MH_I2C_Read... [20:39:32]*** Stop cut motor [20:39:32]*** Cut end [20:39:32]Read from MH i2c: 01 07 00 [20:39:32]MH_I2C_Read... [20:39:32]Read from MH i2c: 01 07 00 F4 0E 00 00 00 00 00 FF 0F 17 [20:39:32]process_action close_receipt done [20:39:32]requested_data is exist [20:39:32]produce_requested_data [20:39:32]requested_item fm.sn is exist - process it [20:39:32]wFMCommunicate request_size=4 [20:39:32]MH_SAM_APDU [20:39:32]CAPDU: 80 11 00 00 [20:39:32]Write to MH i2c: E2 08 00 F5 0E 80 11 00 00 00 00 00 00 7D [20:39:32]Write i2c OK [20:39:32]MH_I2C_Read... [20:39:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:32]Read from MH i2c: E2 [20:39:32]MH_I2C_Read... [20:39:32]Read from MH i2c: E2 17 00 [20:39:32]MH_I2C_Read... [20:39:32]Read from MH i2c: E2 17 00 F5 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D4 [20:39:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:39:32]wFMCommunicate OK [20:39:32]requested_item fd.num is exist - process it [20:39:32]SAM_PROTO_GetFieldsCounters [20:39:32]wFMCommunicate request_size=4 [20:39:32]MH_SAM_APDU [20:39:32]CAPDU: 80 13 00 00 [20:39:32]Write to MH i2c: E2 08 00 F6 0E 80 13 00 00 00 00 00 00 80 [20:39:32]Write i2c OK [20:39:32]MH_I2C_Read... [20:39:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:39:32]Read from MH i2c: E2 [20:39:32]MH_I2C_Read... [20:39:32]Read from MH i2c: E2 62 00 [20:39:32]MH_I2C_Read... [20:39:32]Read from MH i2c: E2 62 00 F6 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 55 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 05 02 00 00 5E 04 04 00 05 02 00 00 57 04 04 00 06 02 00 00 19 04 04 00 00 00 00 00 90 00 A6 [20:39: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 55 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 05 02 00 00 5E 04 04 00 05 02 00 00 57 04 04 00 06 02 00 00 19 04 04 00 00 00 00 00 90 00 [20:39:32]wFMCommunicate OK [20:39:32]SAM_PROTO_GetFieldsCounters done [20:39:32]requested_item shift.num is exist - process it [20:39:32]requested_item shift.opened is exist - process it [20:39:32]req_shift_opened [20:39:32]FM_GetShiftState [20:39:32]SAM_PROTO_GetShiftState [20:39:32]wFMCommunicate request_size=4 [20:39:32]MH_SAM_APDU [20:39:32]CAPDU: 80 13 01 00 [20:39:32]Write to MH i2c: E2 08 00 F7 0E 80 13 01 00 00 00 00 00 82 [20:39:32]Write i2c OK [20:39:32]MH_I2C_Read... [20:39:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:39:32]Read from MH i2c: E2 [20:39:32]MH_I2C_Read... [20:39:32]Read from MH i2c: E2 0E 00 [20:39:32]MH_I2C_Read... [20:39:32]Read from MH i2c: E2 0E 00 F7 0E 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 9C [20:39:32]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:39:32]wFMCommunicate OK [20:39:32]SAM_PROTO_GetShiftState done [20:39:32]FM_GetShiftState done [20:39:32]req_shift_opened done [20:39:32]requested_item shift.open_date is exist - process it [20:39:32]req_shift_open_date [20:39:32]req_shift_open_date done [20:39:32]produce_requested_data done [20:39:32]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227669,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [20:39:32]process_action_free close_receipt [20:39:32]json_value_free [20:39:32]json_value_free done [20:39:32]process_json_proto returns [20:39:32]Send response to host [20:39:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227669,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [20:39:32]free response buf [20:39:32]execute_script done [20:39:32]execute_script returns [20:39:32]free content buf [20:39:32]Sock 7.Close socket [20:39:32]Sock 7.Thread stoped [20:39:36]OFD Sender: No OFD packet to send [20:39:41]OFD Sender: No OFD packet to send [20:39:46]OFD Sender: No OFD packet to send [20:39:51]OFD Sender: No OFD packet to send [20:39:56]OFD Sender: No OFD packet to send [20:40:01]OFD Sender: No OFD packet to send [20:40:06]OFD Sender: No OFD packet to send [20:40:11]OFD Sender: No OFD packet to send [20:40:16]OFD Sender: No OFD packet to send [20:40:21]OFD Sender: No OFD packet to send [20:40:26]OFD Sender: No OFD packet to send [20:40:31]OFD Sender: No OFD packet to send [20:40:36]OFD Sender: No OFD packet to send [20:40:41]OFD Sender: No OFD packet to send [20:40:46]OFD Sender: No OFD packet to send [20:40:51]OFD Sender: No OFD packet to send [20:40:56]OFD Sender: No OFD packet to send [20:41:01]OFD Sender: No OFD packet to send [20:41:06]OFD Sender: No OFD packet to send [20:41:11]OFD Sender: No OFD packet to send [20:41:16]OFD Sender: No OFD packet to send [20:41:21]OFD Sender: No OFD packet to send [20:41:26]OFD Sender: No OFD packet to send [20:41:31]OFD Sender: No OFD packet to send [20:41:36]OFD Sender: No OFD packet to send [20:41:40]accept exits with 9 [20:41:40]New connection [20:41:40]New thread 3066809700 created [20:41:40]Thread 3066666340 joined [20:41:40]Waiting for new connection... [20:41:40] Sock 9.Parse request [20:41:40]Sock 9.Check first char [20:41:40]Sock 9.First char is OK [20:41:40]request: POST /json_proto HTTP/1.0 [20:41:40]Method: POST [20:41:40]URL: /json_proto [20:41:40]Method is POST - this is cgi request [20:41:40]url: /json_proto [20:41:40]query_string will be loaded in cgi processing [20:41:40]execute_cgi json_proto POST (null) [20:41:40]execute_cgi path=json_proto method=POST [20:41:40]POST find Content-Length [20:41:40]Host: 172.17.44.195:8080 [20:41:40]Content-Length: 770 [20:41:40]Content-Type: application/json [20:41:40] [20:41:40]POST finish read [20:41:40]Found Content-Length = 770 [20:41:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963333", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:41:40]execute_script... [20:41:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963333", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:41:40]POST & json_proto [20:41:40]process_json_proto [20:41:40]json parsed OK: [20:41:40]protocol is kg_v1.0 [20:41:40]action value=close_receipt [20:41:40]process_action close_receipt [20:41:40]cmd_close_receipt [20:41:40]MH_GetDate [20:41:40]Write to MH i2c: F0 00 00 F8 0E F5 [20:41:40]Write i2c OK [20:41:40]MH_I2C_Read... [20:41:40]Read from MH i2c: F0 [20:41:40]MH_I2C_Read... [20:41:40]Read from MH i2c: F0 09 00 [20:41:40]MH_I2C_Read... [20:41:40]Read from MH i2c: F0 09 00 F8 0E 00 05 6B 15 67 82 C9 CF 66 6A [20:41:40]GetLastDocTimeStamp 1729456769 [20:41:40]current date 1729456901 [20:41:40]FM_GetShiftState [20:41:40]SAM_PROTO_GetShiftState [20:41:40]wFMCommunicate request_size=4 [20:41:40]MH_SAM_APDU [20:41:40]CAPDU: 80 13 01 00 [20:41:40]Write to MH i2c: E2 08 00 F9 0E 80 13 01 00 00 00 00 00 84 [20:41:40]Write i2c OK [20:41:40]MH_I2C_Read... [20:41:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:41:40]Read from MH i2c: E2 [20:41:40]MH_I2C_Read... [20:41:40]Read from MH i2c: E2 0E 00 [20:41:40]MH_I2C_Read... [20:41:40]Read from MH i2c: E2 0E 00 F9 0E 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 9E [20:41:40]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:41:40]wFMCommunicate OK [20:41:40]SAM_PROTO_GetShiftState done [20:41:40]FM_GetShiftState done [20:41:40]opened in 1729383750 [20:41:40]opened+sec_in_day 1729470150 [20:41:40]quantity*price = 150056 [20:41:40]sum+1 = 150058 [20:41:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.57 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 0.00 Безнал.: 1500.57 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 518 20.10.2024 20:41 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 227670 ФПД: 206848990259587 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T204141&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227670&fm=206848990259587&tin=02508201610067®Number=0000000000091685&sum=150057 [20:41:41]StoreToDocumentArchive [20:41:41]shift 533 fd 227670 [20:41:41]save to /storage/0533/doc_00227670 [20:41:41]save last doc name /storage/0533/doc_00227670 to /storage/kkm_last_doc_name [20:41:41]save OK [20:41:41]Clear old archive folders... [20:41:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:41:41]tlvbuf is 00CB0690 [20:41:41]SAM_PROTO_ClearQueue [20:41:41]wFMCommunicate request_size=4 [20:41:41]MH_SAM_APDU [20:41:41]CAPDU: 80 09 00 00 [20:41:41]Write to MH i2c: E2 08 00 06 0F 80 09 00 00 00 00 00 00 87 [20:41:41]Write i2c OK [20:41:41]MH_I2C_Read... [20:41:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:41:41]Read from MH i2c: E2 [20:41:41]MH_I2C_Read... [20:41:41]Read from MH i2c: E2 03 00 [20:41:41]MH_I2C_Read... [20:41:41]Read from MH i2c: E2 03 00 06 0F 00 90 00 89 [20:41:41]RAPDU: 90 00 [20:41:41]wFMCommunicate OK [20:41:41]SAM_PROTO_ClearQueue done [20:41:41]KKMCreateOFDPacket [20:41:41]OFDProtocolAddRootSTLVToBuf [20:41:41]FM_MakeSignedData [20:41:41]FM_MakeSignedData [20:41:41]SAM_PROTO_SignData [20:41:41]wFMCommunicate request_size=4 [20:41:41]MH_SAM_APDU [20:41:41]CAPDU: 80 0D 01 02 [20:41:41]Write to MH i2c: E2 08 00 07 0F 80 0D 01 02 00 00 00 00 8F [20:41:41]Write i2c OK [20:41:41]MH_I2C_Read... [20:41:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:41:41]Read from MH i2c: E2 [20:41:41]MH_I2C_Read... [20:41:41]Read from MH i2c: E2 03 00 [20:41:41]MH_I2C_Read... [20:41:41]Read from MH i2c: E2 03 00 07 0F 00 90 00 8A [20:41:41]RAPDU: 90 00 [20:41:41]wFMCommunicate OK [20:41:41]wFMCommunicate request_size=255 [20:41:41]MH_SAM_APDU [20:41:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 02 00 00 F4 03 04 00 05 6B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 56 79 03 00 35 04 06 00 BC [20:41:41]Write to MH i2c: E2 02 01 08 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 02 00 00 F4 03 04 00 05 6B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 56 79 03 00 35 04 06 00 BC 00 00 7C [20:41:41]Write i2c OK [20:41:41]MH_I2C_Read... [20:41:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:41:42]Read from MH i2c: E2 [20:41:42]MH_I2C_Read... [20:41:42]Read from MH i2c: E2 03 00 [20:41:42]MH_I2C_Read... [20:41:42]Read from MH i2c: E2 03 00 08 0F 00 90 00 8B [20:41:42]RAPDU: 90 00 [20:41:42]wFMCommunicate OK [20:41:42]wFMCommunicate request_size=10 [20:41:42]MH_SAM_APDU [20:41:42]CAPDU: 80 0D 02 02 05 20 C8 96 29 83 [20:41:42]Write to MH i2c: E2 0D 00 09 0F 80 0D 02 02 05 00 20 C8 96 29 83 00 00 C6 [20:41:42]Write i2c OK [20:41:42]MH_I2C_Read... [20:41:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:41:42]Read from MH i2c: E2 [20:41:42]MH_I2C_Read... [20:41:42]Read from MH i2c: E2 03 00 [20:41:42]MH_I2C_Read... [20:41:42]Read from MH i2c: E2 03 00 09 0F 00 90 00 8C [20:41:42]RAPDU: 90 00 [20:41:42]wFMCommunicate OK [20:41:42]wFMCommunicate request_size=4 [20:41:42]MH_SAM_APDU [20:41:42]CAPDU: 80 0D 03 02 [20:41:42]Write to MH i2c: E2 08 00 0A 0F 80 0D 03 02 00 00 00 00 94 [20:41:42]Write i2c OK [20:41:42]MH_I2C_Read... [20:41:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:41:42]Read from MH i2c: E2 [20:41:42]MH_I2C_Read... [20:41:42]Read from MH i2c: E2 0B 00 [20:41:42]MH_I2C_Read... [20:41:42]Read from MH i2c: E2 0B 00 0A 0F 00 00 FD B1 01 C3 FF 54 04 90 00 5E [20:41:42]RAPDU: 00 FD B1 01 C3 FF 54 04 90 00 [20:41:42]wFMCommunicate OK [20:41:42]SAM_PROTO_SignData done [20:41:42]FM_MakeSignedData done [20:41:42]CreateOFDProtocolMessage [20:41:42]wFMCommunicate request_size=4 [20:41:42]MH_SAM_APDU [20:41:42]CAPDU: 80 11 00 00 [20:41:42]Write to MH i2c: E2 08 00 0B 0F 80 11 00 00 00 00 00 00 94 [20:41:42]Write i2c OK [20:41:42]MH_I2C_Read... [20:41:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:41:42]Read from MH i2c: E2 [20:41:42]MH_I2C_Read... [20:41:42]Read from MH i2c: E2 17 00 [20:41:42]MH_I2C_Read... [20:41:42]Read from MH i2c: E2 17 00 0B 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 EB [20:41:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:41:42]wFMCommunicate OK [20:41:42]CreateOFDProtocolMessage done [20:41:42]OFDSenderStorePacket 227670 [20:41:42]StoreOFDPacket docnum=227670 [20:41:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 8C 67 07 01 B2 AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 02 00 00 F4 03 04 00 05 6B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 56 79 03 00 35 04 06 00 BC 20 C8 96 29 83 00 FD B1 01 C3 FF 54 04 [20:41:42]CheckFolder [20:41:42]dirname=/storage/ofd_packets [20:41:42]CheckFolder done [20:41:42]ProducePacketName [20:41:42]name=ofd_packets/00227670 [20:41:42]NVStorageSaveData ofd_packets/00227670 [20:41:42]File name is /storage/ofd_packets/00227670 [20:41:42]Write 301 bytes [20:41:42]NVStorageSaveData done [20:41:42]OFDSenderStorePacket done [20:41:42]KKMCreateOFDPacket done [20:41:42]NVStorageSaveData kkm_last_timestamp [20:41:42]File name is /storage/kkm_last_timestamp [20:41:42]Write 4 bytes [20:41:42]NVStorageSaveData done [20:41:42]ExternCall_PrintAddStr [20:41:42]wPrintStart [20:41:42]Write to MH i2c: 01 00 00 0C 0F 1B [20:41:42]Write i2c OK [20:41:42]MH_I2C_Read... [20:41:42]Read from MH i2c: 01 [20:41:42]MH_I2C_Read... [20:41:42]Read from MH i2c: 01 07 00 [20:41:42]MH_I2C_Read... [20:41:42]Read from MH i2c: 01 07 00 0C 0F 00 00 00 00 00 FF 0F 30 [20:41:42]RasterBufferAndPrint [20:41:42]line Счет N : (1)1963333 [20:41:42]line ИНН: 02508201610067 [20:41:42]line Контрольно-Кассовый Чек [20:41:42]line ПРОДАЖА [20:41:42]line ТРК (МРК, ГНК) : 33 [20:41:42]line Товар: 2710124130 [20:41:42]line Аи-92-К-5 [20:41:42]line 22.430 * 66.90 [20:41:42]line = 1500.57 [20:41:42]line НДС 12% НСП 1% [20:41:42]line > о реализуемом товаре [20:41:42]line ИТОГО: 1500.57 [20:41:42]line НСП 1% : 13.28 [20:41:42]line НДС 12% : 159.35 [20:41:42]line Наличными: 0.00 [20:41:42]line Безнал.: 1500.57 [20:41:42]line Место: АЗС № 133 "Партнер Нефть" [20:41:42]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [20:41:42]line СНО: Общий режим [20:41:42]line Чек 518 20.10.2024 20:41 [20:41:42]line Смена: 533 ФФД: 1.0 [20:41:42]line ЗНМ: 0300000091 [20:41:42]line РНМ: 0000000000091685 [20:41:42]line Версия ККМ: 001 [20:41:42]line Платежная система: Mbank [20:41:42]line ФМ: 0000000000871839 [20:41:42]line ФД: 227670 [20:41:42]line ФПД: 206848990259587 [20:41:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T204141&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227670&fm=206848990259587&tin=02508201610067®Number=0000000000091685&sum=150057 [20:41:42]written 0, free lines is 4095 [20:41:42]OFD Sender: Processing packet 227670 [packets to send 38, broken 37] [20:41:42]ProducePacketName [20:41:42]name=ofd_packets/00227670 [20:41:42]OFD Sender: To server: pG, [20:41:42]CommunicateWithHost lk.salyk.kg:30040 [20:41:42]ConnectInit lk.salyk.kg [20:41:42]Write to MH i2c: 01 00 00 34 0F 43 [20:41:42]Write i2c OK [20:41:42]MH_I2C_Read... [20:41:42]Read from MH i2c: 01 [20:41:42]MH_I2C_Read... [20:41:42]Read from MH i2c: 01 07 00 [20:41:42]MH_I2C_Read... [20:41:42]Read from MH i2c: 01 07 00 34 0F 00 00 00 00 00 D4 0C 2A [20:41:42]RasterBufferAndPrint [20:41:42]line [20:41:42]line [20:41:42]line [20:41:42]line [20:41:42]line [20:41:42]written 0, free lines is 3287 [20:41:42]MH_Cut [20:41:42]Write to MH i2c: D1 01 00 3B 0F 01 1C [20:41:42]Write i2c OK [20:41:42]MH_I2C_Read... [20:41:42]Read from MH i2c: D1 [20:41:42]MH_I2C_Read... [20:41:42]Read from MH i2c: D1 01 00 [20:41:42]MH_I2C_Read... [20:41:42]Read from MH i2c: D1 01 00 3B 0F 00 1B [20:41:42]Write to MH i2c: 01 00 00 3C 0F 4B [20:41:42]Write i2c OK [20:41:42]MH_I2C_Read... [20:41:42]Connected sock=11 [20:41:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 8C 67 07 01 B2 AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 02 00 00 F4 03 04 00 05 6B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 56 79 03 00 35 04 06 00 BC 20 C8 96 29 83 00 FD B1 01 C3 FF 54 04 [20:41: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 33 39 4F 00 00 00 26 0D 47 00 A2 CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 56 79 03 00 F4 03 04 00 03 16 15 67 B6 04 01 00 00 01 CC 13 1C 51 44 68 3D [20:41:43]CommunicateWithHost err = 0 [20:41:43]CheckOFDResponse [20:41:43]1017 (14) - 77093643461234 [20:41:43]1041 (16) - 0000000000871839 [20:41:43]1040 (4) - 227670 [20:41:43]1012 (4) - 20.10.2024 14:38 [20:41:43]1206 (1) - 0 [20:41:43]OFD Sender: Remove packet 227670 [20:41:43]ProducePacketName [20:41:43]name=ofd_packets/00227670 [20:41:43]NVStorageDeleteData [20:41:43]OFD Sender: No OFD packet to send [20:41:43]*** Cut start [20:41:43]*** Partial cut [20:41:43]*** CUTSNS_PIN = 1 [20:41:43]*** CUTSNS_PIN = 0 [20:41:43]*** Brake cut motor [20:41:44]Read from MH i2c: 01 [20:41:44]MH_I2C_Read... [20:41:44]*** Stop cut motor [20:41:44]*** Cut end [20:41:44]Read from MH i2c: 01 07 00 [20:41:44]MH_I2C_Read... [20:41:44]Read from MH i2c: 01 07 00 3C 0F 00 00 00 00 00 FF 0F 60 [20:41:44]process_action close_receipt done [20:41:44]requested_data is exist [20:41:44]produce_requested_data [20:41:44]requested_item fm.sn is exist - process it [20:41:44]wFMCommunicate request_size=4 [20:41:44]MH_SAM_APDU [20:41:44]CAPDU: 80 11 00 00 [20:41:44]Write to MH i2c: E2 08 00 3D 0F 80 11 00 00 00 00 00 00 C6 [20:41:44]Write i2c OK [20:41:44]MH_I2C_Read... [20:41:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:41:44]Read from MH i2c: E2 [20:41:44]MH_I2C_Read... [20:41:44]Read from MH i2c: E2 17 00 [20:41:44]MH_I2C_Read... [20:41:44]Read from MH i2c: E2 17 00 3D 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 1D [20:41:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:41:44]wFMCommunicate OK [20:41:44]requested_item fd.num is exist - process it [20:41:44]SAM_PROTO_GetFieldsCounters [20:41:44]wFMCommunicate request_size=4 [20:41:44]MH_SAM_APDU [20:41:44]CAPDU: 80 13 00 00 [20:41:44]Write to MH i2c: E2 08 00 3E 0F 80 13 00 00 00 00 00 00 C9 [20:41:44]Write i2c OK [20:41:44]MH_I2C_Read... [20:41:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:41:44]Read from MH i2c: E2 [20:41:44]MH_I2C_Read... [20:41:44]Read from MH i2c: E2 62 00 [20:41:44]MH_I2C_Read... [20:41:44]Read from MH i2c: E2 62 00 3E 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 56 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 06 02 00 00 5E 04 04 00 06 02 00 00 57 04 04 00 07 02 00 00 19 04 04 00 00 00 00 00 90 00 F3 [20:41:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 56 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 06 02 00 00 5E 04 04 00 06 02 00 00 57 04 04 00 07 02 00 00 19 04 04 00 00 00 00 00 90 00 [20:41:44]wFMCommunicate OK [20:41:44]SAM_PROTO_GetFieldsCounters done [20:41:44]requested_item shift.num is exist - process it [20:41:44]requested_item shift.opened is exist - process it [20:41:44]req_shift_opened [20:41:44]FM_GetShiftState [20:41:44]SAM_PROTO_GetShiftState [20:41:44]wFMCommunicate request_size=4 [20:41:44]MH_SAM_APDU [20:41:44]CAPDU: 80 13 01 00 [20:41:44]Write to MH i2c: E2 08 00 3F 0F 80 13 01 00 00 00 00 00 CB [20:41:44]Write i2c OK [20:41:44]MH_I2C_Read... [20:41:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:41:44]Read from MH i2c: E2 [20:41:44]MH_I2C_Read... [20:41:44]Read from MH i2c: E2 0E 00 [20:41:44]MH_I2C_Read... [20:41:44]Read from MH i2c: E2 0E 00 3F 0F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 E5 [20:41:44]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:41:44]wFMCommunicate OK [20:41:44]SAM_PROTO_GetShiftState done [20:41:44]FM_GetShiftState done [20:41:44]req_shift_opened done [20:41:44]requested_item shift.open_date is exist - process it [20:41:44]req_shift_open_date [20:41:44]req_shift_open_date done [20:41:44]produce_requested_data done [20:41:44]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227670,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [20:41:44]process_action_free close_receipt [20:41:44]json_value_free [20:41:44]json_value_free done [20:41:44]process_json_proto returns [20:41:44]Send response to host [20:41:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227670,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [20:41:44]free response buf [20:41:44]execute_script done [20:41:44]execute_script returns [20:41:44]free content buf [20:41:44]Sock 9.Close socket [20:41:44]Sock 9.Thread stoped [20:41:48]OFD Sender: No OFD packet to send [20:41:53]OFD Sender: No OFD packet to send [20:41:58]OFD Sender: No OFD packet to send [20:42:03]OFD Sender: No OFD packet to send [20:42:08]OFD Sender: No OFD packet to send [20:42:13]OFD Sender: No OFD packet to send [20:42:18]OFD Sender: No OFD packet to send [20:42:23]OFD Sender: No OFD packet to send [20:42:28]OFD Sender: No OFD packet to send [20:42:33]OFD Sender: No OFD packet to send [20:42:38]OFD Sender: No OFD packet to send [20:42:43]OFD Sender: No OFD packet to send [20:42:48]OFD Sender: No OFD packet to send [20:42:53]OFD Sender: No OFD packet to send [20:42:58]OFD Sender: No OFD packet to send [20:43:03]OFD Sender: No OFD packet to send [20:43:08]OFD Sender: No OFD packet to send [20:43:13]OFD Sender: No OFD packet to send [20:43:18]OFD Sender: No OFD packet to send [20:43:23]OFD Sender: No OFD packet to send [20:43:28]OFD Sender: No OFD packet to send [20:43:33]OFD Sender: No OFD packet to send [20:43:38]OFD Sender: No OFD packet to send [20:43:43]OFD Sender: No OFD packet to send [20:43:48]OFD Sender: No OFD packet to send [20:43:53]OFD Sender: No OFD packet to send [20:43:58]OFD Sender: No OFD packet to send [20:44:03]OFD Sender: No OFD packet to send [20:44:08]OFD Sender: No OFD packet to send [20:44:13]OFD Sender: No OFD packet to send [20:44:18]OFD Sender: No OFD packet to send [20:44:22]accept exits with 7 [20:44:22]New connection [20:44:22]New thread 3066666340 created [20:44:22]Thread 3066809700 joined [20:44:22]Waiting for new connection... [20:44:22] Sock 7.Parse request [20:44:22]Sock 7.Check first char [20:44:22]Sock 7.First char is OK [20:44:22]request: POST /json_proto HTTP/1.0 [20:44:22]Method: POST [20:44:22]URL: /json_proto [20:44:22]Method is POST - this is cgi request [20:44:22]url: /json_proto [20:44:22]query_string will be loaded in cgi processing [20:44:22]execute_cgi json_proto POST (null) [20:44:22]execute_cgi path=json_proto method=POST [20:44:22]POST find Content-Length [20:44:22]Host: 172.17.44.195:8080 [20:44:22]Content-Length: 678 [20:44:22]Content-Type: application/json [20:44:22] [20:44:22]POST finish read [20:44:22]Found Content-Length = 678 [20:44:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963334", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:44:22]execute_script... [20:44: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)1963334", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:44:22]POST & json_proto [20:44:22]process_json_proto [20:44:22]json parsed OK: [20:44:22]protocol is kg_v1.0 [20:44:22]action value=close_receipt [20:44:22]process_action close_receipt [20:44:22]cmd_close_receipt [20:44:22]MH_GetDate [20:44:22]Write to MH i2c: F0 00 00 40 0F 3E [20:44:22]Write i2c OK [20:44:22]MH_I2C_Read... [20:44:22]Read from MH i2c: F0 [20:44:22]MH_I2C_Read... [20:44:22]Read from MH i2c: F0 09 00 [20:44:22]MH_I2C_Read... [20:44:22]Read from MH i2c: F0 09 00 40 0F 00 A7 6B 15 67 82 C9 CF 66 55 [20:44:22]GetLastDocTimeStamp 1729456901 [20:44:22]current date 1729457063 [20:44:22]FM_GetShiftState [20:44:22]SAM_PROTO_GetShiftState [20:44:22]wFMCommunicate request_size=4 [20:44:22]MH_SAM_APDU [20:44:22]CAPDU: 80 13 01 00 [20:44:22]Write to MH i2c: E2 08 00 41 0F 80 13 01 00 00 00 00 00 CD [20:44:22]Write i2c OK [20:44:22]MH_I2C_Read... [20:44:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:44:22]Read from MH i2c: E2 [20:44:22]MH_I2C_Read... [20:44:22]Read from MH i2c: E2 0E 00 [20:44:22]MH_I2C_Read... [20:44:22]Read from MH i2c: E2 0E 00 41 0F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 E7 [20:44:22]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:44:22]wFMCommunicate OK [20:44:22]SAM_PROTO_GetShiftState done [20:44:22]FM_GetShiftState done [20:44:22]opened in 1729383750 [20:44:22]opened+sec_in_day 1729470150 [20:44:22]quantity*price = 50010 [20:44:22]sum+1 = 50012 [20:44:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 519 20.10.2024 20:44 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227671 ФПД: 148309101653875 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T204423&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227671&fm=148309101653875&tin=02508201610067®Number=0000000000091685&sum=50000 [20:44:24]StoreToDocumentArchive [20:44:24]shift 533 fd 227671 [20:44:24]save to /storage/0533/doc_00227671 [20:44:24]save last doc name /storage/0533/doc_00227671 to /storage/kkm_last_doc_name [20:44:24]save OK [20:44:24]Clear old archive folders... [20:44:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:44:24]tlvbuf is 00C933A0 [20:44:24]SAM_PROTO_ClearQueue [20:44:24]wFMCommunicate request_size=4 [20:44:24]MH_SAM_APDU [20:44:24]CAPDU: 80 09 00 00 [20:44:24]Write to MH i2c: E2 08 00 4E 0F 80 09 00 00 00 00 00 00 CF [20:44:24]Write i2c OK [20:44:24]MH_I2C_Read... [20:44:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:44:24]Read from MH i2c: E2 [20:44:24]MH_I2C_Read... [20:44:24]Read from MH i2c: E2 03 00 [20:44:24]MH_I2C_Read... [20:44:24]Read from MH i2c: E2 03 00 4E 0F 00 90 00 D1 [20:44:24]RAPDU: 90 00 [20:44:24]wFMCommunicate OK [20:44:24]SAM_PROTO_ClearQueue done [20:44:24]KKMCreateOFDPacket [20:44:24]OFDProtocolAddRootSTLVToBuf [20:44:24]FM_MakeSignedData [20:44:24]FM_MakeSignedData [20:44:24]SAM_PROTO_SignData [20:44:24]wFMCommunicate request_size=4 [20:44:24]MH_SAM_APDU [20:44:24]CAPDU: 80 0D 01 02 [20:44:24]Write to MH i2c: E2 08 00 4F 0F 80 0D 01 02 00 00 00 00 D7 [20:44:24]Write i2c OK [20:44:24]MH_I2C_Read... [20:44:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:44:24]Read from MH i2c: E2 [20:44:24]MH_I2C_Read... [20:44:24]Read from MH i2c: E2 03 00 [20:44:24]MH_I2C_Read... [20:44:24]Read from MH i2c: E2 03 00 4F 0F 00 90 00 D2 [20:44:24]RAPDU: 90 00 [20:44:24]wFMCommunicate OK [20:44:24]wFMCommunicate request_size=255 [20:44:24]MH_SAM_APDU [20: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 02 00 00 F4 03 04 00 A7 6B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 57 79 03 00 35 04 06 00 86 [20:44:24]Write to MH i2c: E2 02 01 50 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 02 00 00 F4 03 04 00 A7 6B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 57 79 03 00 35 04 06 00 86 00 00 4D [20:44:24]Write i2c OK [20:44:24]MH_I2C_Read... [20:44:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:44:24]Read from MH i2c: E2 [20:44:24]MH_I2C_Read... [20:44:24]Read from MH i2c: E2 03 00 [20:44:24]MH_I2C_Read... [20:44:24]Read from MH i2c: E2 03 00 50 0F 00 90 00 D3 [20:44:24]RAPDU: 90 00 [20:44:24]wFMCommunicate OK [20:44:24]wFMCommunicate request_size=10 [20:44:24]MH_SAM_APDU [20:44:24]CAPDU: 80 0D 02 02 05 E2 E7 52 2F 73 [20:44:24]Write to MH i2c: E2 0D 00 51 0F 80 0D 02 02 05 00 E2 E7 52 2F 73 00 00 A1 [20:44:24]Write i2c OK [20:44:24]MH_I2C_Read... [20:44:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:44:24]Read from MH i2c: E2 [20:44:24]MH_I2C_Read... [20:44:24]Read from MH i2c: E2 03 00 [20:44:24]MH_I2C_Read... [20:44:24]Read from MH i2c: E2 03 00 51 0F 00 90 00 D4 [20:44:24]RAPDU: 90 00 [20:44:24]wFMCommunicate OK [20:44:24]wFMCommunicate request_size=4 [20:44:24]MH_SAM_APDU [20:44:24]CAPDU: 80 0D 03 02 [20:44:24]Write to MH i2c: E2 08 00 52 0F 80 0D 03 02 00 00 00 00 DC [20:44:24]Write i2c OK [20:44:24]MH_I2C_Read... [20:44:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:44:24]Read from MH i2c: E2 [20:44:24]MH_I2C_Read... [20:44:24]Read from MH i2c: E2 0B 00 [20:44:24]MH_I2C_Read... [20:44:24]Read from MH i2c: E2 0B 00 52 0F 00 62 1E 5F D7 76 DF 18 16 90 00 16 [20:44:24]RAPDU: 62 1E 5F D7 76 DF 18 16 90 00 [20:44:24]wFMCommunicate OK [20:44:24]SAM_PROTO_SignData done [20:44:24]FM_MakeSignedData done [20:44:24]CreateOFDProtocolMessage [20:44:24]wFMCommunicate request_size=4 [20:44:24]MH_SAM_APDU [20:44:24]CAPDU: 80 11 00 00 [20:44:24]Write to MH i2c: E2 08 00 53 0F 80 11 00 00 00 00 00 00 DC [20:44:24]Write i2c OK [20:44:24]MH_I2C_Read... [20:44:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:24]Read from MH i2c: E2 [20:44:24]MH_I2C_Read... [20:44:24]Read from MH i2c: E2 17 00 [20:44:24]MH_I2C_Read... [20:44:24]Read from MH i2c: E2 17 00 53 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 33 [20:44:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:44:24]wFMCommunicate OK [20:44:24]CreateOFDProtocolMessage done [20:44:24]OFDSenderStorePacket 227671 [20:44:24]StoreOFDPacket docnum=227671 [20:44:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 B8 2E 07 01 D8 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 02 00 00 F4 03 04 00 A7 6B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 57 79 03 00 35 04 06 00 86 E2 E7 52 2F 73 62 1E 5F D7 76 DF 18 16 [20:44:24]CheckFolder [20:44:24]dirname=/storage/ofd_packets [20:44:24]CheckFolder done [20:44:24]ProducePacketName [20:44:24]name=ofd_packets/00227671 [20:44:24]NVStorageSaveData ofd_packets/00227671 [20:44:24]File name is /storage/ofd_packets/00227671 [20:44:24]Write 301 bytes [20:44:24]NVStorageSaveData done [20:44:24]OFDSenderStorePacket done [20:44:24]KKMCreateOFDPacket done [20:44:24]NVStorageSaveData kkm_last_timestamp [20:44:24]File name is /storage/kkm_last_timestamp [20:44:24]Write 4 bytes [20:44:24]NVStorageSaveData done [20:44:24]ExternCall_PrintAddStr [20:44:24]wPrintStart [20:44:24]Write to MH i2c: 01 00 00 54 0F 63 [20:44:24]Write i2c OK [20:44:24]MH_I2C_Read... [20:44:24]Read from MH i2c: 01 [20:44:24]MH_I2C_Read... [20:44:24]Read from MH i2c: 01 07 00 [20:44:24]MH_I2C_Read... [20:44:24]Read from MH i2c: 01 07 00 54 0F 00 00 00 00 00 FF 0F 78 [20:44:24]RasterBufferAndPrint [20:44:24]line Счет N : (1)1963334 [20:44:24]line ИНН: 02508201610067 [20:44:24]line Контрольно-Кассовый Чек [20:44:24]line ПРОДАЖА [20:44:24]line ТРК (МРК, ГНК) : 34 [20:44:24]line Товар: 2710124500 [20:44:24]line Аи-95-К-5 [20:44:24]line 6.740 * 74.20 [20:44:24]line = 500.11 [20:44:24]line НДС 12% НСП 1% [20:44:24]line > о реализуемом товаре [20:44:24]line ОКРУГЛЕНИЕ: -0.11 [20:44:24]line ИТОГО: 500.00 [20:44:24]line Внесено: 500.00 [20:44:24]line СДАЧА: 0.00 [20:44:24]line НСП 1% : 4.43 [20:44:24]line НДС 12% : 53.11 [20:44:24]line Наличными: 500.00 [20:44:24]line Безнал.: 0.00 [20:44:24]line Место: АЗС № 133 "Партнер Нефть" [20:44:24]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [20:44:24]line СНО: Общий режим [20:44:24]line Чек 519 20.10.2024 20:44 [20:44:24]line Смена: 533 ФФД: 1.0 [20:44:24]line ЗНМ: 0300000091 [20:44:24]line РНМ: 0000000000091685 [20:44:24]line Версия ККМ: 001 [20:44:24]line ФМ: 0000000000871839 [20:44:24]line ФД: 227671 [20:44:24]line ФПД: 148309101653875 [20:44:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T204423&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227671&fm=148309101653875&tin=02508201610067®Number=0000000000091685&sum=50000 [20:44:24]written 0, free lines is 4095 [20:44:24]OFD Sender: Processing packet 227671 [packets to send 38, broken 37] [20:44:24]ProducePacketName [20:44:24]name=ofd_packets/00227671 [20:44:24]OFD Sender: To server: pG, [20:44:24]CommunicateWithHost lk.salyk.kg:30040 [20:44:24]ConnectInit lk.salyk.kg [20:44:25]Connected sock=10 [20:44:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 B8 2E 07 01 D8 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 02 00 00 F4 03 04 00 A7 6B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 57 79 03 00 35 04 06 00 86 E2 E7 52 2F 73 62 1E 5F D7 76 DF 18 16 [20:44: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 33 39 4F 00 00 00 73 2C 47 00 F0 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 33 39 10 04 04 00 57 79 03 00 F4 03 04 00 A5 16 15 67 B6 04 01 00 00 68 11 0A 9D 68 14 71 34 [20:44:25]CommunicateWithHost err = 0 [20:44:25]CheckOFDResponse [20:44:25]1017 (14) - 77093643461234 [20:44:25]1041 (16) - 0000000000871839 [20:44:25]1040 (4) - 227671 [20:44:25]1012 (4) - 20.10.2024 14:41 [20:44:25]1206 (1) - 0 [20:44:25]OFD Sender: Remove packet 227671 [20:44:25]ProducePacketName [20:44:25]name=ofd_packets/00227671 [20:44:25]NVStorageDeleteData [20:44:25]Write to MH i2c: 01 00 00 7E 0F 8D [20:44:25]Write i2c OK [20:44:25]MH_I2C_Read... [20:44:25]Read from MH i2c: 01 [20:44:25]MH_I2C_Read... [20:44:25]Read from MH i2c: 01 07 00 [20:44:25]MH_I2C_Read... [20:44:25]Read from MH i2c: 01 07 00 7E 0F 00 00 00 00 00 9E 0C 3E [20:44:25]RasterBufferAndPrint [20:44:25]line [20:44:25]line [20:44:25]line [20:44:25]line [20:44:25]line [20:44:25]written 0, free lines is 3237 [20:44:25]MH_Cut [20:44:25]Write to MH i2c: D1 01 00 85 0F 01 66 [20:44:25]Write i2c OK [20:44:25]MH_I2C_Read... [20:44:25]Read from MH i2c: D1 [20:44:25]MH_I2C_Read... [20:44:25]Read from MH i2c: D1 01 00 [20:44:25]MH_I2C_Read... [20:44:25]Read from MH i2c: D1 01 00 85 0F 00 65 [20:44:25]Write to MH i2c: 01 00 00 86 0F 95 [20:44:25]Write i2c OK [20:44:25]MH_I2C_Read... [20:44:25]OFD Sender: No OFD packet to send [20:44:26]*** Cut start [20:44:26]*** Partial cut [20:44:26]*** CUTSNS_PIN = 1 [20:44:26]*** CUTSNS_PIN = 0 [20:44:26]*** Brake cut motor [20:44:26]Read from MH i2c: 01 [20:44:26]MH_I2C_Read... [20:44:26]*** Stop cut motor [20:44:26]*** Cut end [20:44:26]Read from MH i2c: 01 07 00 [20:44:26]MH_I2C_Read... [20:44:26]Read from MH i2c: 01 07 00 86 0F 00 00 00 00 00 FF 0F AA [20:44:26]process_action close_receipt done [20:44:26]requested_data is exist [20:44:26]produce_requested_data [20:44:26]requested_item fm.sn is exist - process it [20:44:26]wFMCommunicate request_size=4 [20:44:26]MH_SAM_APDU [20:44:26]CAPDU: 80 11 00 00 [20:44:26]Write to MH i2c: E2 08 00 87 0F 80 11 00 00 00 00 00 00 10 [20:44:26]Write i2c OK [20:44:26]MH_I2C_Read... [20:44:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:27]Read from MH i2c: E2 [20:44:27]MH_I2C_Read... [20:44:27]Read from MH i2c: E2 17 00 [20:44:27]MH_I2C_Read... [20:44:27]Read from MH i2c: E2 17 00 87 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 67 [20:44:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:44:27]wFMCommunicate OK [20:44:27]requested_item fd.num is exist - process it [20:44:27]SAM_PROTO_GetFieldsCounters [20:44:27]wFMCommunicate request_size=4 [20:44:27]MH_SAM_APDU [20:44:27]CAPDU: 80 13 00 00 [20:44:27]Write to MH i2c: E2 08 00 88 0F 80 13 00 00 00 00 00 00 13 [20:44:27]Write i2c OK [20:44:27]MH_I2C_Read... [20:44:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:44:27]Read from MH i2c: E2 [20:44:27]MH_I2C_Read... [20:44:27]Read from MH i2c: E2 62 00 [20:44:27]MH_I2C_Read... [20:44:27]Read from MH i2c: E2 62 00 88 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 57 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 07 02 00 00 5E 04 04 00 07 02 00 00 57 04 04 00 08 02 00 00 19 04 04 00 00 00 00 00 90 00 41 [20: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 57 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 07 02 00 00 5E 04 04 00 07 02 00 00 57 04 04 00 08 02 00 00 19 04 04 00 00 00 00 00 90 00 [20:44:27]wFMCommunicate OK [20:44:27]SAM_PROTO_GetFieldsCounters done [20:44:27]requested_item shift.num is exist - process it [20:44:27]requested_item shift.opened is exist - process it [20:44:27]req_shift_opened [20:44:27]FM_GetShiftState [20:44:27]SAM_PROTO_GetShiftState [20:44:27]wFMCommunicate request_size=4 [20:44:27]MH_SAM_APDU [20:44:27]CAPDU: 80 13 01 00 [20:44:27]Write to MH i2c: E2 08 00 89 0F 80 13 01 00 00 00 00 00 15 [20:44:27]Write i2c OK [20:44:27]MH_I2C_Read... [20:44:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:44:27]Read from MH i2c: E2 [20:44:27]MH_I2C_Read... [20:44:27]Read from MH i2c: E2 0E 00 [20:44:27]MH_I2C_Read... [20:44:27]Read from MH i2c: E2 0E 00 89 0F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 2F [20:44:27]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:44:27]wFMCommunicate OK [20:44:27]SAM_PROTO_GetShiftState done [20:44:27]FM_GetShiftState done [20:44:27]req_shift_opened done [20:44:27]requested_item shift.open_date is exist - process it [20:44:27]req_shift_open_date [20:44:27]req_shift_open_date done [20:44:27]produce_requested_data done [20:44:27]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227671,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [20:44:27]process_action_free close_receipt [20:44:27]json_value_free [20:44:27]json_value_free done [20:44:27]process_json_proto returns [20:44:27]Send response to host [20:44:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227671,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [20:44:27]free response buf [20:44:27]execute_script done [20:44:27]execute_script returns [20:44:27]free content buf [20:44:27]Sock 7.Close socket [20:44:27]Sock 7.Thread stoped [20:44:30]OFD Sender: No OFD packet to send [20:44:35]OFD Sender: No OFD packet to send [20:44:40]OFD Sender: No OFD packet to send [20:44:45]OFD Sender: No OFD packet to send [20:44:50]OFD Sender: No OFD packet to send [20:44:55]OFD Sender: No OFD packet to send [20:45:00]OFD Sender: No OFD packet to send [20:45:05]OFD Sender: No OFD packet to send [20:45:10]OFD Sender: No OFD packet to send [20:45:15]OFD Sender: No OFD packet to send [20:45:20]OFD Sender: No OFD packet to send [20:45:21]accept exits with 9 [20:45:21]New connection [20:45:21]New thread 3066809700 created [20:45:21]Thread 3066666340 joined [20:45:21]Waiting for new connection... [20:45:21] Sock 9.Parse request [20:45:21]Sock 9.Check first char [20:45:21]Sock 9.First char is OK [20:45:21]request: POST /json_proto HTTP/1.0 [20:45:21]Method: POST [20:45:21]URL: /json_proto [20:45:21]Method is POST - this is cgi request [20:45:21]url: /json_proto [20:45:21]query_string will be loaded in cgi processing [20:45:21]execute_cgi json_proto POST (null) [20:45:21]execute_cgi path=json_proto method=POST [20:45:21]POST find Content-Length [20:45:21]Host: 172.17.44.195:8080 [20:45:21]Content-Length: 621 [20:45:21]Content-Type: application/json [20:45:21] [20:45:21]POST finish read [20:45:21]Found Content-Length = 621 [20:45:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963335", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:45:21]execute_script... [20:45: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)1963335", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:45:21]POST & json_proto [20:45:21]process_json_proto [20:45:21]json parsed OK: [20:45:21]protocol is kg_v1.0 [20:45:21]action value=close_receipt [20:45:21]process_action close_receipt [20:45:21]cmd_close_receipt [20:45:21]MH_GetDate [20:45:21]Write to MH i2c: F0 00 00 8A 0F 88 [20:45:21]Write i2c OK [20:45:21]MH_I2C_Read... [20:45:21]Read from MH i2c: F0 [20:45:21]MH_I2C_Read... [20:45:21]Read from MH i2c: F0 09 00 [20:45:21]MH_I2C_Read... [20:45:21]Read from MH i2c: F0 09 00 8A 0F 00 E2 6B 15 67 82 C9 CF 66 DA [20:45:21]GetLastDocTimeStamp 1729457063 [20:45:21]current date 1729457122 [20:45:21]FM_GetShiftState [20:45:21]SAM_PROTO_GetShiftState [20:45:21]wFMCommunicate request_size=4 [20:45:21]MH_SAM_APDU [20:45:21]CAPDU: 80 13 01 00 [20:45:21]Write to MH i2c: E2 08 00 8B 0F 80 13 01 00 00 00 00 00 17 [20:45:21]Write i2c OK [20:45:21]MH_I2C_Read... [20:45:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:45:21]Read from MH i2c: E2 [20:45:21]MH_I2C_Read... [20:45:21]Read from MH i2c: E2 0E 00 [20:45:21]MH_I2C_Read... [20:45:21]Read from MH i2c: E2 0E 00 8B 0F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 31 [20:45:21]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:45:21]wFMCommunicate OK [20:45:21]SAM_PROTO_GetShiftState done [20:45:21]FM_GetShiftState done [20:45:21]opened in 1729383750 [20:45:21]opened+sec_in_day 1729470150 [20:45:21]quantity*price = 50000 [20:45:21]sum+1 = 50001 [20:45:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 520 20.10.2024 20:45 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227672 ФПД: 224148048858632 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T204522&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227672&fm=224148048858632&tin=02508201610067®Number=0000000000091685&sum=50000 [20:45:22]StoreToDocumentArchive [20:45:22]shift 533 fd 227672 [20:45:22]save to /storage/0533/doc_00227672 [20:45:22]save last doc name /storage/0533/doc_00227672 to /storage/kkm_last_doc_name [20:45:22]save OK [20:45:22]Clear old archive folders... [20:45:22]ProcessDocumentItem done err = 0, tmpTLVsize=244 [20:45:22]tlvbuf is 00CB0580 [20:45:22]SAM_PROTO_ClearQueue [20:45:22]wFMCommunicate request_size=4 [20:45:22]MH_SAM_APDU [20:45:22]CAPDU: 80 09 00 00 [20:45:22]Write to MH i2c: E2 08 00 98 0F 80 09 00 00 00 00 00 00 19 [20:45:22]Write i2c OK [20:45:22]MH_I2C_Read... [20:45:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:45:22]Read from MH i2c: E2 [20:45:22]MH_I2C_Read... [20:45:22]Read from MH i2c: E2 03 00 [20:45:22]MH_I2C_Read... [20:45:22]Read from MH i2c: E2 03 00 98 0F 00 90 00 1B [20:45:22]RAPDU: 90 00 [20:45:22]wFMCommunicate OK [20:45:22]SAM_PROTO_ClearQueue done [20:45:22]KKMCreateOFDPacket [20:45:22]OFDProtocolAddRootSTLVToBuf [20:45:22]FM_MakeSignedData [20:45:22]FM_MakeSignedData [20:45:22]SAM_PROTO_SignData [20:45:22]wFMCommunicate request_size=4 [20:45:22]MH_SAM_APDU [20:45:22]CAPDU: 80 0D 01 02 [20:45:22]Write to MH i2c: E2 08 00 99 0F 80 0D 01 02 00 00 00 00 21 [20:45:22]Write i2c OK [20:45:22]MH_I2C_Read... [20:45:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:45:22]Read from MH i2c: E2 [20:45:22]MH_I2C_Read... [20:45:22]Read from MH i2c: E2 03 00 [20:45:22]MH_I2C_Read... [20:45:22]Read from MH i2c: E2 03 00 99 0F 00 90 00 1C [20:45:22]RAPDU: 90 00 [20:45:22]wFMCommunicate OK [20:45:22]wFMCommunicate request_size=253 [20:45:22]MH_SAM_APDU [20:45:22]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 02 00 00 F4 03 04 00 E2 6B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 58 79 03 00 35 04 06 00 CB DC 88 D4 4E 08 [20:45:22]Write to MH i2c: E2 00 01 9A 0F 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 02 00 00 F4 03 04 00 E2 6B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 58 79 03 00 35 04 06 00 CB DC 88 D4 4E 08 00 00 3A [20:45:22]Write i2c OK [20:45:22]MH_I2C_Read... [20:45:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:45:22]Read from MH i2c: E2 [20:45:22]MH_I2C_Read... [20:45:22]Read from MH i2c: E2 03 00 [20:45:22]MH_I2C_Read... [20:45:22]Read from MH i2c: E2 03 00 9A 0F 00 90 00 1D [20:45:22]RAPDU: 90 00 [20:45:22]wFMCommunicate OK [20:45:22]wFMCommunicate request_size=4 [20:45:22]MH_SAM_APDU [20:45:22]CAPDU: 80 0D 03 02 [20:45:22]Write to MH i2c: E2 08 00 9B 0F 80 0D 03 02 00 00 00 00 25 [20:45:22]Write i2c OK [20:45:22]MH_I2C_Read... [20:45:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:45:22]Read from MH i2c: E2 [20:45:22]MH_I2C_Read... [20:45:22]Read from MH i2c: E2 0B 00 [20:45:22]MH_I2C_Read... [20:45:22]Read from MH i2c: E2 0B 00 9B 0F 00 A6 40 90 82 CB F6 ED C1 90 00 8D [20:45:22]RAPDU: A6 40 90 82 CB F6 ED C1 90 00 [20:45:22]wFMCommunicate OK [20:45:22]SAM_PROTO_SignData done [20:45:22]FM_MakeSignedData done [20:45:22]CreateOFDProtocolMessage [20:45:22]wFMCommunicate request_size=4 [20:45:22]MH_SAM_APDU [20:45:22]CAPDU: 80 11 00 00 [20:45:22]Write to MH i2c: E2 08 00 9C 0F 80 11 00 00 00 00 00 00 25 [20:45:22]Write i2c OK [20:45:22]MH_I2C_Read... [20:45:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:45:22]Read from MH i2c: E2 [20:45:22]MH_I2C_Read... [20:45:22]Read from MH i2c: E2 17 00 [20:45:22]MH_I2C_Read... [20:45:22]Read from MH i2c: E2 17 00 9C 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 7C [20:45:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:45:22]wFMCommunicate OK [20:45:22]CreateOFDProtocolMessage done [20:45:22]OFDSenderStorePacket 227672 [20:45:22]StoreOFDPacket docnum=227672 [20:45:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 EA 95 00 01 87 E1 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 02 00 00 F4 03 04 00 E2 6B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 58 79 03 00 35 04 06 00 CB DC 88 D4 4E 08 A6 40 90 82 CB F6 ED C1 [20:45:22]CheckFolder [20:45:22]dirname=/storage/ofd_packets [20:45:22]CheckFolder done [20:45:22]ProducePacketName [20:45:22]name=ofd_packets/00227672 [20:45:22]NVStorageSaveData ofd_packets/00227672 [20:45:22]File name is /storage/ofd_packets/00227672 [20:45:22]Write 294 bytes [20:45:22]NVStorageSaveData done [20:45:22]OFDSenderStorePacket done [20:45:22]KKMCreateOFDPacket done [20:45:22]NVStorageSaveData kkm_last_timestamp [20:45:22]File name is /storage/kkm_last_timestamp [20:45:22]Write 4 bytes [20:45:22]NVStorageSaveData done [20:45:22]ExternCall_PrintAddStr [20:45:22]wPrintStart [20:45:22]Write to MH i2c: 01 00 00 9D 0F AC [20:45:22]Write i2c OK [20:45:22]MH_I2C_Read... [20:45:22]Read from MH i2c: 01 [20:45:22]MH_I2C_Read... [20:45:22]Read from MH i2c: 01 07 00 [20:45:22]MH_I2C_Read... [20:45:22]Read from MH i2c: 01 07 00 9D 0F 00 00 00 00 00 FF 0F C1 [20:45:22]RasterBufferAndPrint [20:45:22]line Счет N : (1)1963335 [20:45:22]line ИНН: 02508201610067 [20:45:22]line Контрольно-Кассовый Чек [20:45:22]line ПРОДАЖА [20:45:22]line ТРК (МРК, ГНК) : 42 [20:45:22]line Товар: 2710124130 [20:45:22]line SU-92 [20:45:22]line 7.310 * 68.40 [20:45:22]line = 500.00 [20:45:22]line НДС 12% НСП 1% [20:45:22]line > о реализуемом товаре [20:45:22]line ИТОГО: 500.00 [20:45:22]line НСП 1% : 4.42 [20:45:22]line НДС 12% : 53.10 [20:45:22]line Наличными: 500.00 [20:45:22]line Безнал.: 0.00 [20:45:22]line Место: АЗС № 133 "Партнер Нефть" [20:45:22]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [20:45:22]line СНО: Общий режим [20:45:22]line Чек 520 20.10.2024 20:45 [20:45:22]line Смена: 533 ФФД: 1.0 [20:45:22]line ЗНМ: 0300000091 [20:45:22]line РНМ: 0000000000091685 [20:45:22]line Версия ККМ: 001 [20:45:22]line ФМ: 0000000000871839 [20:45:22]line ФД: 227672 [20:45:22]line ФПД: 224148048858632 [20:45:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T204522&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227672&fm=224148048858632&tin=02508201610067®Number=0000000000091685&sum=50000 [20:45:23]OFD Sender: Processing packet 227672 [packets to send 38, broken 37] [20:45:23]ProducePacketName [20:45:23]name=ofd_packets/00227672 [20:45:23]OFD Sender: To server: pG, [20:45:23]CommunicateWithHost lk.salyk.kg:30040 [20:45:23]ConnectInit lk.salyk.kg [20:45:23]written 0, free lines is 4095 [20:45:23]Connected sock=10 [20:45: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 33 39 08 01 00 00 EA 95 00 01 87 E1 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 02 00 00 F4 03 04 00 E2 6B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 58 79 03 00 35 04 06 00 CB DC 88 D4 4E 08 A6 40 90 82 CB F6 ED C1 [20:45: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 33 39 4F 00 00 00 73 08 47 00 F7 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 33 39 10 04 04 00 58 79 03 00 F4 03 04 00 E0 16 15 67 B6 04 01 00 00 A8 50 8F 0A 54 2E 37 E9 [20:45:23]CommunicateWithHost err = 0 [20:45:23]CheckOFDResponse [20:45:23]1017 (14) - 77093643461234 [20:45:23]1041 (16) - 0000000000871839 [20:45:23]1040 (4) - 227672 [20:45:23]1012 (4) - 20.10.2024 14:42 [20:45:23]1206 (1) - 0 [20:45:23]OFD Sender: Remove packet 227672 [20:45:23]ProducePacketName [20:45:23]name=ofd_packets/00227672 [20:45:23]NVStorageDeleteData [20:45:23]Write to MH i2c: 01 00 00 C4 0F D3 [20:45:23]Write i2c OK [20:45:23]MH_I2C_Read... [20:45:23]Read from MH i2c: 01 [20:45:23]MH_I2C_Read... [20:45:23]Read from MH i2c: 01 07 00 [20:45:23]MH_I2C_Read... [20:45:23]Read from MH i2c: 01 07 00 C4 0F 00 00 00 00 00 E0 0C C6 [20:45:23]RasterBufferAndPrint [20:45:23]line [20:45:23]line [20:45:23]line [20:45:23]line [20:45:23]line [20:45:23]written 0, free lines is 3301 [20:45:23]MH_Cut [20:45:23]Write to MH i2c: D1 01 00 CB 0F 01 AC [20:45:23]Write i2c OK [20:45:23]MH_I2C_Read... [20:45:23]Read from MH i2c: D1 [20:45:23]MH_I2C_Read... [20:45:23]Read from MH i2c: D1 01 00 [20:45:23]MH_I2C_Read... [20:45:23]Read from MH i2c: D1 01 00 CB 0F 00 AB [20:45:23]Write to MH i2c: 01 00 00 CC 0F DB [20:45:23]Write i2c OK [20:45:23]MH_I2C_Read... [20:45:24]OFD Sender: No OFD packet to send [20:45:24]*** Cut start [20:45:24]*** Partial cut [20:45:24]*** CUTSNS_PIN = 1 [20:45:24]*** CUTSNS_PIN = 0 [20:45:24]*** Brake cut motor [20:45:25]Read from MH i2c: 01 [20:45:25]MH_I2C_Read... [20:45:25]*** Stop cut motor [20:45:25]*** Cut end [20:45:25]Read from MH i2c: 01 07 00 [20:45:25]MH_I2C_Read... [20:45:25]Read from MH i2c: 01 07 00 CC 0F 00 00 00 00 00 FF 0F F0 [20:45:25]process_action close_receipt done [20:45:25]requested_data is exist [20:45:25]produce_requested_data [20:45:25]requested_item fm.sn is exist - process it [20:45:25]wFMCommunicate request_size=4 [20:45:25]MH_SAM_APDU [20:45:25]CAPDU: 80 11 00 00 [20:45:25]Write to MH i2c: E2 08 00 CD 0F 80 11 00 00 00 00 00 00 56 [20:45:25]Write i2c OK [20:45:25]MH_I2C_Read... [20:45:25]Read from MH i2c: E2 [20:45:25]MH_I2C_Read... [20:45:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:45:25]Read from MH i2c: E2 17 00 [20:45:25]MH_I2C_Read... [20:45:25]Read from MH i2c: E2 17 00 CD 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 AD [20:45:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:45:25]wFMCommunicate OK [20:45:25]requested_item fd.num is exist - process it [20:45:25]SAM_PROTO_GetFieldsCounters [20:45:25]wFMCommunicate request_size=4 [20:45:25]MH_SAM_APDU [20:45:25]CAPDU: 80 13 00 00 [20:45:25]Write to MH i2c: E2 08 00 CE 0F 80 13 00 00 00 00 00 00 59 [20:45:25]Write i2c OK [20:45:25]MH_I2C_Read... [20:45:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:45:25]Read from MH i2c: E2 [20:45:25]MH_I2C_Read... [20:45:25]Read from MH i2c: E2 62 00 [20:45:25]MH_I2C_Read... [20:45:25]Read from MH i2c: E2 62 00 CE 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 58 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 08 02 00 00 5E 04 04 00 08 02 00 00 57 04 04 00 09 02 00 00 19 04 04 00 00 00 00 00 90 00 8B [20:45: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 58 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 08 02 00 00 5E 04 04 00 08 02 00 00 57 04 04 00 09 02 00 00 19 04 04 00 00 00 00 00 90 00 [20:45:25]wFMCommunicate OK [20:45:25]SAM_PROTO_GetFieldsCounters done [20:45:25]requested_item shift.num is exist - process it [20:45:25]requested_item shift.opened is exist - process it [20:45:25]req_shift_opened [20:45:25]FM_GetShiftState [20:45:25]SAM_PROTO_GetShiftState [20:45:25]wFMCommunicate request_size=4 [20:45:25]MH_SAM_APDU [20:45:25]CAPDU: 80 13 01 00 [20:45:25]Write to MH i2c: E2 08 00 CF 0F 80 13 01 00 00 00 00 00 5B [20:45:25]Write i2c OK [20:45:25]MH_I2C_Read... [20:45:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:45:25]Read from MH i2c: E2 [20:45:25]MH_I2C_Read... [20:45:25]Read from MH i2c: E2 0E 00 [20:45:25]MH_I2C_Read... [20:45:25]Read from MH i2c: E2 0E 00 CF 0F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 75 [20:45:25]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:45:25]wFMCommunicate OK [20:45:25]SAM_PROTO_GetShiftState done [20:45:25]FM_GetShiftState done [20:45:25]req_shift_opened done [20:45:25]requested_item shift.open_date is exist - process it [20:45:25]req_shift_open_date [20:45:25]req_shift_open_date done [20:45:25]produce_requested_data done [20:45:25]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227672,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [20:45:25]process_action_free close_receipt [20:45:25]json_value_free [20:45:25]json_value_free done [20:45:25]process_json_proto returns [20:45:25]Send response to host [20:45:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227672,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [20:45:25]free response buf [20:45:25]execute_script done [20:45:25]execute_script returns [20:45:25]free content buf [20:45:25]Sock 9.Close socket [20:45:25]Sock 9.Thread stoped [20:45:29]OFD Sender: No OFD packet to send [20:45:34]OFD Sender: No OFD packet to send [20:45:39]OFD Sender: No OFD packet to send [20:45:44]OFD Sender: No OFD packet to send [20:45:49]OFD Sender: No OFD packet to send [20:45:54]OFD Sender: No OFD packet to send [20:45:59]OFD Sender: No OFD packet to send [20:46:04]OFD Sender: No OFD packet to send [20:46:09]OFD Sender: No OFD packet to send [20:46:14]OFD Sender: No OFD packet to send [20:46:19]OFD Sender: No OFD packet to send [20:46:24]OFD Sender: No OFD packet to send [20:46:29]OFD Sender: No OFD packet to send [20:46:34]OFD Sender: No OFD packet to send [20:46:39]OFD Sender: No OFD packet to send [20:46:44]OFD Sender: No OFD packet to send [20:46:49]OFD Sender: No OFD packet to send [20:46:54]OFD Sender: No OFD packet to send [20:46:59]OFD Sender: No OFD packet to send [20:47:04]OFD Sender: No OFD packet to send [20:47:09]OFD Sender: No OFD packet to send [20:47:14]OFD Sender: No OFD packet to send [20:47:19]OFD Sender: No OFD packet to send [20:47:24]OFD Sender: No OFD packet to send [20:47:29]OFD Sender: No OFD packet to send [20:47:34]OFD Sender: No OFD packet to send [20:47:39]OFD Sender: No OFD packet to send [20:47:44]OFD Sender: No OFD packet to send [20:47:49]OFD Sender: No OFD packet to send [20:47:54]OFD Sender: No OFD packet to send [20:47:59]OFD Sender: No OFD packet to send [20:48:04]OFD Sender: No OFD packet to send [20:48:09]OFD Sender: No OFD packet to send [20:48:14]OFD Sender: No OFD packet to send [20:48:19]OFD Sender: No OFD packet to send [20:48:24]OFD Sender: No OFD packet to send [20:48:29]OFD Sender: No OFD packet to send [20:48:32]accept exits with 7 [20:48:32]New connection [20:48:32]New thread 3066666340 created [20:48:32]Thread 3066809700 joined [20:48:32]Waiting for new connection... [20:48:32] Sock 7.Parse request [20:48:32]Sock 7.Check first char [20:48:32]Sock 7.First char is OK [20:48:32]request: POST /json_proto HTTP/1.0 [20:48:32]Method: POST [20:48:32]URL: /json_proto [20:48:32]Method is POST - this is cgi request [20:48:32]url: /json_proto [20:48:32]query_string will be loaded in cgi processing [20:48:32]execute_cgi json_proto POST (null) [20:48:32]execute_cgi path=json_proto method=POST [20:48:32]POST find Content-Length [20:48:32]Host: 172.17.44.195:8080 [20:48:32]Content-Length: 764 [20:48:32]Content-Type: application/json [20:48:32] [20:48:32]POST finish read [20:48:32]Found Content-Length = 764 [20:48:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963336", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 4.600, "sum" : 350.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 350.52 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:48:32]execute_script... [20:48:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963336", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 4.600, "sum" : 350.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 350.52 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:48:32]POST & json_proto [20:48:32]process_json_proto [20:48:32]json parsed OK: [20:48:32]protocol is kg_v1.0 [20:48:32]action value=close_receipt [20:48:32]process_action close_receipt [20:48:32]cmd_close_receipt [20:48:32]MH_GetDate [20:48:32]Write to MH i2c: F0 00 00 D0 0F CE [20:48:32]Write i2c OK [20:48:32]MH_I2C_Read... [20:48:32]Read from MH i2c: F0 [20:48:32]MH_I2C_Read... [20:48:32]Read from MH i2c: F0 09 00 [20:48:32]MH_I2C_Read... [20:48:32]Read from MH i2c: F0 09 00 D0 0F 00 A1 6C 15 67 82 C9 CF 66 E0 [20:48:32]GetLastDocTimeStamp 1729457122 [20:48:32]current date 1729457313 [20:48:32]FM_GetShiftState [20:48:32]SAM_PROTO_GetShiftState [20:48:32]wFMCommunicate request_size=4 [20:48:32]MH_SAM_APDU [20:48:32]CAPDU: 80 13 01 00 [20:48:32]Write to MH i2c: E2 08 00 D1 0F 80 13 01 00 00 00 00 00 5D [20:48:32]Write i2c OK [20:48:32]MH_I2C_Read... [20:48:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:48:32]Read from MH i2c: E2 [20:48:32]MH_I2C_Read... [20:48:32]Read from MH i2c: E2 0E 00 [20:48:32]MH_I2C_Read... [20:48:32]Read from MH i2c: E2 0E 00 D1 0F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 77 [20:48:32]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:48:32]wFMCommunicate OK [20:48:32]SAM_PROTO_GetShiftState done [20:48:32]FM_GetShiftState done [20:48:32]opened in 1729383750 [20:48:32]opened+sec_in_day 1729470150 [20:48:32]quantity*price = 35052 [20:48:32]sum+1 = 35053 [20:48:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 350.52 НСП 1% : 3.10 НДС 12% : 37.22 Наличными: 0.00 Безнал.: 350.52 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 521 20.10.2024 20:48 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 227673 ФПД: 131473055460214 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T204833&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227673&fm=131473055460214&tin=02508201610067®Number=0000000000091685&sum=35052 [20:48:33]StoreToDocumentArchive [20:48:33]shift 533 fd 227673 [20:48:33]save to /storage/0533/doc_00227673 [20:48:33]save last doc name /storage/0533/doc_00227673 to /storage/kkm_last_doc_name [20:48:33]save OK [20:48:33]Clear old archive folders... [20:48:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:48:33]tlvbuf is 00CB0850 [20:48:33]SAM_PROTO_ClearQueue [20:48:33]wFMCommunicate request_size=4 [20:48:33]MH_SAM_APDU [20:48:33]CAPDU: 80 09 00 00 [20:48:33]Write to MH i2c: E2 08 00 DE 0F 80 09 00 00 00 00 00 00 5F [20:48:33]Write i2c OK [20:48:33]MH_I2C_Read... [20:48:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:48:33]Read from MH i2c: E2 [20:48:33]MH_I2C_Read... [20:48:33]Read from MH i2c: E2 03 00 [20:48:33]MH_I2C_Read... [20:48:33]Read from MH i2c: E2 03 00 DE 0F 00 90 00 61 [20:48:33]RAPDU: 90 00 [20:48:33]wFMCommunicate OK [20:48:33]SAM_PROTO_ClearQueue done [20:48:33]KKMCreateOFDPacket [20:48:33]OFDProtocolAddRootSTLVToBuf [20:48:33]FM_MakeSignedData [20:48:33]FM_MakeSignedData [20:48:33]SAM_PROTO_SignData [20:48:33]wFMCommunicate request_size=4 [20:48:33]MH_SAM_APDU [20:48:33]CAPDU: 80 0D 01 02 [20:48:33]Write to MH i2c: E2 08 00 DF 0F 80 0D 01 02 00 00 00 00 67 [20:48:33]Write i2c OK [20:48:33]MH_I2C_Read... [20:48:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:48:34]Read from MH i2c: E2 [20:48:34]MH_I2C_Read... [20:48:34]Read from MH i2c: E2 03 00 [20:48:34]MH_I2C_Read... [20:48:34]Read from MH i2c: E2 03 00 DF 0F 00 90 00 62 [20:48:34]RAPDU: 90 00 [20:48:34]wFMCommunicate OK [20:48:34]wFMCommunicate request_size=255 [20:48:34]MH_SAM_APDU [20:48: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 F8 11 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EC 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 02 00 00 F4 03 04 00 A1 6C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 59 79 03 00 35 04 06 00 77 92 F4 C4 [20:48:34]Write to MH i2c: E2 02 01 E0 0F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EC 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 02 00 00 F4 03 04 00 A1 6C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 59 79 03 00 35 04 06 00 77 92 F4 C4 00 00 22 [20:48:34]Write i2c OK [20:48:34]MH_I2C_Read... [20:48:34]OFD Sender: No OFD packet to send [20:48:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:48:34]Read from MH i2c: E2 [20:48:34]MH_I2C_Read... [20:48:34]Read from MH i2c: E2 03 00 [20:48:34]MH_I2C_Read... [20:48:34]Read from MH i2c: E2 03 00 E0 0F 00 90 00 63 [20:48:34]RAPDU: 90 00 [20:48:34]wFMCommunicate OK [20:48:34]wFMCommunicate request_size=7 [20:48:34]MH_SAM_APDU [20:48:34]CAPDU: 80 0D 02 02 02 AB 76 [20:48:34]Write to MH i2c: E2 0A 00 E1 0F 80 0D 02 02 02 00 AB 76 00 00 8F [20:48:34]Write i2c OK [20:48:34]MH_I2C_Read... [20:48:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:48:34]Read from MH i2c: E2 [20:48:34]MH_I2C_Read... [20:48:34]Read from MH i2c: E2 03 00 [20:48:34]MH_I2C_Read... [20:48:34]Read from MH i2c: E2 03 00 E1 0F 00 90 00 64 [20:48:34]RAPDU: 90 00 [20:48:34]wFMCommunicate OK [20:48:34]wFMCommunicate request_size=4 [20:48:34]MH_SAM_APDU [20:48:34]CAPDU: 80 0D 03 02 [20:48:34]Write to MH i2c: E2 08 00 E2 0F 80 0D 03 02 00 00 00 00 6C [20:48:34]Write i2c OK [20:48:34]MH_I2C_Read... [20:48:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:48:34]Read from MH i2c: E2 [20:48:34]MH_I2C_Read... [20:48:34]Read from MH i2c: E2 0B 00 [20:48:34]MH_I2C_Read... [20:48:34]Read from MH i2c: E2 0B 00 E2 0F 00 82 26 66 DA 2B A7 B2 7B 90 00 54 [20:48:34]RAPDU: 82 26 66 DA 2B A7 B2 7B 90 00 [20:48:34]wFMCommunicate OK [20:48:34]SAM_PROTO_SignData done [20:48:34]FM_MakeSignedData done [20:48:34]CreateOFDProtocolMessage [20:48:34]wFMCommunicate request_size=4 [20:48:34]MH_SAM_APDU [20:48:34]CAPDU: 80 11 00 00 [20:48:34]Write to MH i2c: E2 08 00 E3 0F 80 11 00 00 00 00 00 00 6C [20:48:34]Write i2c OK [20:48:34]MH_I2C_Read... [20:48:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:48:34]Read from MH i2c: E2 [20:48:34]MH_I2C_Read... [20:48:34]Read from MH i2c: E2 17 00 [20:48:34]MH_I2C_Read... [20:48:34]Read from MH i2c: E2 17 00 E3 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C3 [20:48:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:48:34]wFMCommunicate OK [20:48:34]CreateOFDProtocolMessage done [20:48:34]OFDSenderStorePacket 227673 [20:48:34]StoreOFDPacket docnum=227673 [20:48:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 52 51 04 01 2A 99 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EC 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 02 00 00 F4 03 04 00 A1 6C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 59 79 03 00 35 04 06 00 77 92 F4 C4 AB 76 82 26 66 DA 2B A7 B2 7B [20:48:34]CheckFolder [20:48:34]dirname=/storage/ofd_packets [20:48:34]CheckFolder done [20:48:34]ProducePacketName [20:48:34]name=ofd_packets/00227673 [20:48:34]NVStorageSaveData ofd_packets/00227673 [20:48:34]File name is /storage/ofd_packets/00227673 [20:48:34]Write 298 bytes [20:48:34]NVStorageSaveData done [20:48:34]OFDSenderStorePacket done [20:48:34]KKMCreateOFDPacket done [20:48:34]NVStorageSaveData kkm_last_timestamp [20:48:34]File name is /storage/kkm_last_timestamp [20:48:34]Write 4 bytes [20:48:34]NVStorageSaveData done [20:48:34]ExternCall_PrintAddStr [20:48:34]wPrintStart [20:48:34]Write to MH i2c: 01 00 00 E4 0F F3 [20:48:34]Write i2c OK [20:48:34]MH_I2C_Read... [20:48:34]Read from MH i2c: 01 [20:48:34]MH_I2C_Read... [20:48:34]Read from MH i2c: 01 07 00 [20:48:34]MH_I2C_Read... [20:48:34]Read from MH i2c: 01 07 00 E4 0F 00 00 00 00 00 FF 0F 08 [20:48:34]RasterBufferAndPrint [20:48:34]line Счет N : (1)1963336 [20:48:34]line ИНН: 02508201610067 [20:48:34]line Контрольно-Кассовый Чек [20:48:34]line ПРОДАЖА [20:48:34]line ТРК (МРК, ГНК) : 31 [20:48:34]line Товар: 2710194210 [20:48:34]line ДТ-К-5 [20:48:34]line 4.600 * 76.20 [20:48:34]line = 350.52 [20:48:34]line НДС 12% НСП 1% [20:48:34]line > о реализуемом товаре [20:48:34]line ИТОГО: 350.52 [20:48:34]line НСП 1% : 3.10 [20:48:34]line НДС 12% : 37.22 [20:48:34]line Наличными: 0.00 [20:48:34]line Безнал.: 350.52 [20:48:34]line Место: АЗС № 133 "Партнер Нефть" [20:48:34]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [20:48:34]line СНО: Общий режим [20:48:34]line Чек 521 20.10.2024 20:48 [20:48:34]line Смена: 533 ФФД: 1.0 [20:48:34]line ЗНМ: 0300000091 [20:48:34]line РНМ: 0000000000091685 [20:48:34]line Версия ККМ: 001 [20:48:34]line Платежная система: Mbank [20:48:34]line ФМ: 0000000000871839 [20:48:34]line ФД: 227673 [20:48:34]line ФПД: 131473055460214 [20:48:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T204833&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227673&fm=131473055460214&tin=02508201610067®Number=0000000000091685&sum=35052 [20:48:34]written 0, free lines is 4095 [20:48:34]OFD Sender: Processing packet 227673 [packets to send 38, broken 37] [20:48:34]ProducePacketName [20:48:34]name=ofd_packets/00227673 [20:48:34]OFD Sender: To server: pG, [20:48:34]CommunicateWithHost lk.salyk.kg:30040 [20:48:34]ConnectInit lk.salyk.kg [20:48:34]Write to MH i2c: 01 00 00 0C 10 1C [20:48:34]Write i2c OK [20:48:34]MH_I2C_Read... [20:48:34]Read from MH i2c: 01 [20:48:34]MH_I2C_Read... [20:48:34]Read from MH i2c: 01 07 00 [20:48:34]MH_I2C_Read... [20:48:34]Read from MH i2c: 01 07 00 0C 10 00 00 00 00 00 D2 0C 01 [20:48:34]RasterBufferAndPrint [20:48:34]line [20:48:34]line [20:48:34]line [20:48:34]line [20:48:34]line [20:48:34]written 0, free lines is 3285 [20:48:34]MH_Cut [20:48:34]Write to MH i2c: D1 01 00 13 10 01 F5 [20:48:34]Write i2c OK [20:48:34]MH_I2C_Read... [20:48:34]Read from MH i2c: D1 [20:48:34]MH_I2C_Read... [20:48:34]Read from MH i2c: D1 01 00 [20:48:34]MH_I2C_Read... [20:48:34]Read from MH i2c: D1 01 00 13 10 00 F4 [20:48:34]Write to MH i2c: 01 00 00 14 10 24 [20:48:34]Write i2c OK [20:48:34]MH_I2C_Read... [20:48:35]*** Cut start [20:48:35]*** Partial cut [20:48:35]*** CUTSNS_PIN = 1 [20:48:35]*** CUTSNS_PIN = 0 [20:48:36]*** Brake cut motor [20:48:36]Read from MH i2c: 01 [20:48:36]MH_I2C_Read... [20:48:36]*** Stop cut motor [20:48:36]*** Cut end [20:48:36]Read from MH i2c: 01 07 00 [20:48:36]MH_I2C_Read... [20:48:36]Read from MH i2c: 01 07 00 14 10 00 00 00 00 00 FF 0F 39 [20:48:36]process_action close_receipt done [20:48:36]requested_data is exist [20:48:36]produce_requested_data [20:48:36]requested_item fm.sn is exist - process it [20:48:36]wFMCommunicate request_size=4 [20:48:36]MH_SAM_APDU [20:48:36]CAPDU: 80 11 00 00 [20:48:36]Write to MH i2c: E2 08 00 15 10 80 11 00 00 00 00 00 00 9F [20:48:36]Write i2c OK [20:48:36]MH_I2C_Read... [20:48:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:48:36]Read from MH i2c: E2 [20:48:36]MH_I2C_Read... [20:48:36]Read from MH i2c: E2 17 00 [20:48:36]MH_I2C_Read... [20:48:36]Read from MH i2c: E2 17 00 15 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F6 [20:48:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:48:36]wFMCommunicate OK [20:48:36]requested_item fd.num is exist - process it [20:48:36]SAM_PROTO_GetFieldsCounters [20:48:36]wFMCommunicate request_size=4 [20:48:36]MH_SAM_APDU [20:48:36]CAPDU: 80 13 00 00 [20:48:36]Write to MH i2c: E2 08 00 16 10 80 13 00 00 00 00 00 00 A2 [20:48:36]Write i2c OK [20:48:36]MH_I2C_Read... [20:48:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:48:36]Read from MH i2c: E2 [20:48:36]MH_I2C_Read... [20:48:36]Read from MH i2c: E2 62 00 [20:48:36]MH_I2C_Read... [20:48:36]Read from MH i2c: E2 62 00 16 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 59 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 09 02 00 00 5E 04 04 00 09 02 00 00 57 04 04 00 0A 02 00 00 19 04 04 00 00 00 00 00 90 00 D8 [20:48: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 59 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 09 02 00 00 5E 04 04 00 09 02 00 00 57 04 04 00 0A 02 00 00 19 04 04 00 00 00 00 00 90 00 [20:48:36]wFMCommunicate OK [20:48:36]SAM_PROTO_GetFieldsCounters done [20:48:36]requested_item shift.num is exist - process it [20:48:36]requested_item shift.opened is exist - process it [20:48:36]req_shift_opened [20:48:36]FM_GetShiftState [20:48:36]SAM_PROTO_GetShiftState [20:48:36]wFMCommunicate request_size=4 [20:48:36]MH_SAM_APDU [20:48:36]CAPDU: 80 13 01 00 [20:48:36]Write to MH i2c: E2 08 00 17 10 80 13 01 00 00 00 00 00 A4 [20:48:36]Write i2c OK [20:48:36]MH_I2C_Read... [20:48:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:48:36]Read from MH i2c: E2 [20:48:36]MH_I2C_Read... [20:48:36]Read from MH i2c: E2 0E 00 [20:48:36]MH_I2C_Read... [20:48:36]Read from MH i2c: E2 0E 00 17 10 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 BE [20:48:36]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:48:36]wFMCommunicate OK [20:48:36]SAM_PROTO_GetShiftState done [20:48:36]FM_GetShiftState done [20:48:36]req_shift_opened done [20:48:36]requested_item shift.open_date is exist - process it [20:48:36]req_shift_open_date [20:48:36]req_shift_open_date done [20:48:36]produce_requested_data done [20:48:36]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227673,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [20:48:36]process_action_free close_receipt [20:48:36]json_value_free [20:48:36]json_value_free done [20:48:36]process_json_proto returns [20:48:36]Send response to host [20:48:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227673,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [20:48:36]free response buf [20:48:36]execute_script done [20:48:36]execute_script returns [20:48:36]free content buf [20:48:36]Sock 7.Close socket [20:48:36]Sock 7.Thread stoped [20:50:46]ConnectInit Can't connect to host [20:50:46]CommunicateWithHost connect error [20:50:46]CommunicateWithHost err = -1 [20:50:46]OFD Sender: Server communicate error [20:50:51]OFD Sender: Processing packet 227673 [packets to send 38, broken 37] [20:50:51]ProducePacketName [20:50:51]name=ofd_packets/00227673 [20:50:51]OFD Sender: To server: pG, [20:50:51]CommunicateWithHost lk.salyk.kg:30040 [20:50:51]ConnectInit lk.salyk.kg [20:50:51]Connected sock=7 [20:50: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 33 39 0C 01 00 00 52 51 04 01 2A 99 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EC 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 02 00 00 F4 03 04 00 A1 6C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 59 79 03 00 35 04 06 00 77 92 F4 C4 AB 76 82 26 66 DA 2B A7 B2 7B [20:50: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 33 39 4F 00 00 00 C9 2B 47 00 E5 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 33 39 10 04 04 00 59 79 03 00 F4 03 04 00 28 18 15 67 B6 04 01 00 00 CB 62 21 CC 67 38 6E AD [20:50:52]CommunicateWithHost err = 0 [20:50:52]CheckOFDResponse [20:50:52]1017 (14) - 77093643461234 [20:50:52]1041 (16) - 0000000000871839 [20:50:52]1040 (4) - 227673 [20:50:52]1012 (4) - 20.10.2024 14:48 [20:50:52]1206 (1) - 0 [20:50:52]OFD Sender: Remove packet 227673 [20:50:52]ProducePacketName [20:50:52]name=ofd_packets/00227673 [20:50:52]NVStorageDeleteData [20:50:52]OFD Sender: No OFD packet to send [20:50:57]OFD Sender: No OFD packet to send [20:51:02]OFD Sender: No OFD packet to send [20:51:07]OFD Sender: No OFD packet to send [20:51:12]OFD Sender: No OFD packet to send [20:51:17]OFD Sender: No OFD packet to send [20:51:22]OFD Sender: No OFD packet to send [20:51:27]OFD Sender: No OFD packet to send [20:51:32]OFD Sender: No OFD packet to send [20:51:37]OFD Sender: No OFD packet to send [20:51:42]OFD Sender: No OFD packet to send [20:51:47]OFD Sender: No OFD packet to send [20:51:52]OFD Sender: No OFD packet to send [20:51:57]OFD Sender: No OFD packet to send [20:52:02]OFD Sender: No OFD packet to send [20:52:07]OFD Sender: No OFD packet to send [20:52:12]OFD Sender: No OFD packet to send [20:52:13]accept exits with 9 [20:52:13]New connection [20:52:13]New thread 3066809700 created [20:52:13]Thread 3066666340 joined [20:52:13]Waiting for new connection... [20:52:13] Sock 9.Parse request [20:52:13]Sock 9.Check first char [20:52:13]Sock 9.First char is OK [20:52:13]request: POST /json_proto HTTP/1.0 [20:52:13]Method: POST [20:52:13]URL: /json_proto [20:52:13]Method is POST - this is cgi request [20:52:13]url: /json_proto [20:52:13]query_string will be loaded in cgi processing [20:52:13]execute_cgi json_proto POST (null) [20:52:13]execute_cgi path=json_proto method=POST [20:52:13]POST find Content-Length [20:52:13]Host: 172.17.44.195:8080 [20:52:13]Content-Length: 678 [20:52:13]Content-Type: application/json [20:52:13] [20:52:13]POST finish read [20:52:13]Found Content-Length = 678 [20:52:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963337", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:52:13]execute_script... [20:52:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963337", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:52:13]POST & json_proto [20:52:13]process_json_proto [20:52:13]json parsed OK: [20:52:13]protocol is kg_v1.0 [20:52:13]action value=close_receipt [20:52:13]process_action close_receipt [20:52:13]cmd_close_receipt [20:52:13]MH_GetDate [20:52:13]Write to MH i2c: F0 00 00 18 10 17 [20:52:13]Write i2c OK [20:52:13]MH_I2C_Read... [20:52:13]Read from MH i2c: F0 [20:52:13]MH_I2C_Read... [20:52:13]Read from MH i2c: F0 09 00 [20:52:13]MH_I2C_Read... [20:52:13]Read from MH i2c: F0 09 00 18 10 00 7E 6D 15 67 82 C9 CF 66 07 [20:52:13]GetLastDocTimeStamp 1729457313 [20:52:13]current date 1729457534 [20:52:13]FM_GetShiftState [20:52:13]SAM_PROTO_GetShiftState [20:52:13]wFMCommunicate request_size=4 [20:52:13]MH_SAM_APDU [20:52:13]CAPDU: 80 13 01 00 [20:52:13]Write to MH i2c: E2 08 00 19 10 80 13 01 00 00 00 00 00 A6 [20:52:13]Write i2c OK [20:52:13]MH_I2C_Read... [20:52:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:52:13]Read from MH i2c: E2 [20:52:13]MH_I2C_Read... [20:52:13]Read from MH i2c: E2 0E 00 [20:52:13]MH_I2C_Read... [20:52:13]Read from MH i2c: E2 0E 00 19 10 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 C0 [20:52:13]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:52:13]wFMCommunicate OK [20:52:13]SAM_PROTO_GetShiftState done [20:52:13]FM_GetShiftState done [20:52:13]opened in 1729383750 [20:52:13]opened+sec_in_day 1729470150 [20:52:13]quantity*price = 40068 [20:52:13]sum+1 = 40069 [20:52:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.55 НДС 12% : 42.55 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 522 20.10.2024 20:52 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227674 ФПД: 138896967342683 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T205215&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227674&fm=138896967342683&tin=02508201610067®Number=0000000000091685&sum=40000 [20:52:15]StoreToDocumentArchive [20:52:15]shift 533 fd 227674 [20:52:15]save to /storage/0533/doc_00227674 [20:52:15]save last doc name /storage/0533/doc_00227674 to /storage/kkm_last_doc_name [20:52:15]save OK [20:52:15]Clear old archive folders... [20:52:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:52:15]tlvbuf is 00C9DA00 [20:52:15]SAM_PROTO_ClearQueue [20:52:15]wFMCommunicate request_size=4 [20:52:15]MH_SAM_APDU [20:52:15]CAPDU: 80 09 00 00 [20:52:15]Write to MH i2c: E2 08 00 26 10 80 09 00 00 00 00 00 00 A8 [20:52:15]Write i2c OK [20:52:15]MH_I2C_Read... [20:52:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:52:15]Read from MH i2c: E2 [20:52:15]MH_I2C_Read... [20:52:15]Read from MH i2c: E2 03 00 [20:52:15]MH_I2C_Read... [20:52:15]Read from MH i2c: E2 03 00 26 10 00 90 00 AA [20:52:15]RAPDU: 90 00 [20:52:15]wFMCommunicate OK [20:52:15]SAM_PROTO_ClearQueue done [20:52:15]KKMCreateOFDPacket [20:52:15]OFDProtocolAddRootSTLVToBuf [20:52:15]FM_MakeSignedData [20:52:15]FM_MakeSignedData [20:52:15]SAM_PROTO_SignData [20:52:15]wFMCommunicate request_size=4 [20:52:15]MH_SAM_APDU [20:52:15]CAPDU: 80 0D 01 02 [20:52:15]Write to MH i2c: E2 08 00 27 10 80 0D 01 02 00 00 00 00 B0 [20:52:15]Write i2c OK [20:52:15]MH_I2C_Read... [20:52:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:52:15]Read from MH i2c: E2 [20:52:15]MH_I2C_Read... [20:52:15]Read from MH i2c: E2 03 00 [20:52:15]MH_I2C_Read... [20:52:15]Read from MH i2c: E2 03 00 27 10 00 90 00 AB [20:52:15]RAPDU: 90 00 [20:52:15]wFMCommunicate OK [20:52:15]wFMCommunicate request_size=255 [20:52:15]MH_SAM_APDU [20:52:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 02 00 00 F4 03 04 00 7F 6D 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5A 79 03 00 35 04 06 00 7E [20:52:15]Write to MH i2c: E2 02 01 28 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 02 00 00 F4 03 04 00 7F 6D 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5A 79 03 00 35 04 06 00 7E 00 00 D5 [20:52:15]Write i2c OK [20:52:15]MH_I2C_Read... [20:52:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:52:15]Read from MH i2c: E2 [20:52:15]MH_I2C_Read... [20:52:15]Read from MH i2c: E2 03 00 [20:52:15]MH_I2C_Read... [20:52:15]Read from MH i2c: E2 03 00 28 10 00 90 00 AC [20:52:15]RAPDU: 90 00 [20:52:15]wFMCommunicate OK [20:52:15]wFMCommunicate request_size=10 [20:52:15]MH_SAM_APDU [20:52:15]CAPDU: 80 0D 02 02 05 53 78 66 1A 5B [20:52:15]Write to MH i2c: E2 0D 00 29 10 80 0D 02 02 05 00 53 78 66 1A 5B 00 00 63 [20:52:15]Write i2c OK [20:52:15]MH_I2C_Read... [20:52:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:52:15]Read from MH i2c: E2 [20:52:15]MH_I2C_Read... [20:52:15]Read from MH i2c: E2 03 00 [20:52:15]MH_I2C_Read... [20:52:15]Read from MH i2c: E2 03 00 29 10 00 90 00 AD [20:52:15]RAPDU: 90 00 [20:52:15]wFMCommunicate OK [20:52:15]wFMCommunicate request_size=4 [20:52:15]MH_SAM_APDU [20:52:15]CAPDU: 80 0D 03 02 [20:52:15]Write to MH i2c: E2 08 00 2A 10 80 0D 03 02 00 00 00 00 B5 [20:52:15]Write i2c OK [20:52:15]MH_I2C_Read... [20:52:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:52:15]Read from MH i2c: E2 [20:52:15]MH_I2C_Read... [20:52:15]Read from MH i2c: E2 0B 00 [20:52:15]MH_I2C_Read... [20:52:15]Read from MH i2c: E2 0B 00 2A 10 00 2E 33 B4 A6 3E 75 08 D4 90 00 00 [20:52:15]RAPDU: 2E 33 B4 A6 3E 75 08 D4 90 00 [20:52:15]wFMCommunicate OK [20:52:15]SAM_PROTO_SignData done [20:52:15]FM_MakeSignedData done [20:52:15]CreateOFDProtocolMessage [20:52:15]wFMCommunicate request_size=4 [20:52:15]MH_SAM_APDU [20:52:15]CAPDU: 80 11 00 00 [20:52:15]Write to MH i2c: E2 08 00 2B 10 80 11 00 00 00 00 00 00 B5 [20:52:15]Write i2c OK [20:52:15]MH_I2C_Read... [20:52:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:52:15]Read from MH i2c: E2 [20:52:15]MH_I2C_Read... [20:52:15]Read from MH i2c: E2 17 00 [20:52:15]MH_I2C_Read... [20:52:15]Read from MH i2c: E2 17 00 2B 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 0C [20:52:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:52:15]wFMCommunicate OK [20:52:15]CreateOFDProtocolMessage done [20:52:15]OFDSenderStorePacket 227674 [20:52:15]StoreOFDPacket docnum=227674 [20:52:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 59 F6 07 01 DE 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 02 00 00 F4 03 04 00 7F 6D 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5A 79 03 00 35 04 06 00 7E 53 78 66 1A 5B 2E 33 B4 A6 3E 75 08 D4 [20:52:15]CheckFolder [20:52:15]dirname=/storage/ofd_packets [20:52:15]CheckFolder done [20:52:15]ProducePacketName [20:52:15]name=ofd_packets/00227674 [20:52:15]NVStorageSaveData ofd_packets/00227674 [20:52:15]File name is /storage/ofd_packets/00227674 [20:52:15]Write 301 bytes [20:52:15]NVStorageSaveData done [20:52:15]OFDSenderStorePacket done [20:52:15]KKMCreateOFDPacket done [20:52:15]NVStorageSaveData kkm_last_timestamp [20:52:15]File name is /storage/kkm_last_timestamp [20:52:15]Write 4 bytes [20:52:15]NVStorageSaveData done [20:52:15]ExternCall_PrintAddStr [20:52:15]wPrintStart [20:52:15]Write to MH i2c: 01 00 00 2C 10 3C [20:52:15]Write i2c OK [20:52:15]MH_I2C_Read... [20:52:15]Read from MH i2c: 01 [20:52:15]MH_I2C_Read... [20:52:15]Read from MH i2c: 01 07 00 [20:52:15]MH_I2C_Read... [20:52:15]Read from MH i2c: 01 07 00 2C 10 00 00 00 00 00 FF 0F 51 [20:52:15]RasterBufferAndPrint [20:52:15]line Счет N : (1)1963337 [20:52:15]line ИНН: 02508201610067 [20:52:15]line Контрольно-Кассовый Чек [20:52:15]line ПРОДАЖА [20:52:15]line ТРК (МРК, ГНК) : 34 [20:52:15]line Товар: 2710124500 [20:52:15]line Аи-95-К-5 [20:52:15]line 5.400 * 74.20 [20:52:15]line = 400.68 [20:52:15]line НДС 12% НСП 1% [20:52:15]line > о реализуемом товаре [20:52:15]line ОКРУГЛЕНИЕ: -0.68 [20:52:15]line ИТОГО: 400.00 [20:52:15]line Внесено: 400.00 [20:52:15]line СДАЧА: 0.00 [20:52:15]line НСП 1% : 3.55 [20:52:15]line НДС 12% : 42.55 [20:52:15]line Наличными: 400.00 [20:52:15]line Безнал.: 0.00 [20:52:15]line Место: АЗС № 133 "Партнер Нефть" [20:52:15]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [20:52:15]line СНО: Общий режим [20:52:15]line Чек 522 20.10.2024 20:52 [20:52:15]line Смена: 533 ФФД: 1.0 [20:52:15]line ЗНМ: 0300000091 [20:52:15]line РНМ: 0000000000091685 [20:52:15]line Версия ККМ: 001 [20:52:15]line ФМ: 0000000000871839 [20:52:15]line ФД: 227674 [20:52:15]line ФПД: 138896967342683 [20:52:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T205215&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227674&fm=138896967342683&tin=02508201610067®Number=0000000000091685&sum=40000 [20:52:15]OFD Sender: Processing packet 227674 [packets to send 38, broken 37] [20:52:15]ProducePacketName [20:52:15]name=ofd_packets/00227674 [20:52:15]OFD Sender: To server: pG, [20:52:15]CommunicateWithHost lk.salyk.kg:30040 [20:52:15]ConnectInit lk.salyk.kg [20:52:15]written 0, free lines is 4095 [20:52:15]Connected sock=10 [20:52:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 59 F6 07 01 DE 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 02 00 00 F4 03 04 00 7F 6D 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5A 79 03 00 35 04 06 00 7E 53 78 66 1A 5B 2E 33 B4 A6 3E 75 08 D4 [20:52: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 33 39 4F 00 00 00 5C 11 47 00 0E 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5A 79 03 00 F4 03 04 00 7C 18 15 67 B6 04 01 00 00 E2 9A 4B B6 56 5B A7 10 [20:52:16]CommunicateWithHost err = 0 [20:52:16]CheckOFDResponse [20:52:16]1017 (14) - 77093643461234 [20:52:16]1041 (16) - 0000000000871839 [20:52:16]1040 (4) - 227674 [20:52:16]1012 (4) - 20.10.2024 14:49 [20:52:16]1206 (1) - 0 [20:52:16]OFD Sender: Remove packet 227674 [20:52:16]ProducePacketName [20:52:16]name=ofd_packets/00227674 [20:52:16]NVStorageDeleteData [20:52:16]Write to MH i2c: 01 00 00 56 10 66 [20:52:16]Write i2c OK [20:52:16]MH_I2C_Read... [20:52:16]Read from MH i2c: 01 [20:52:16]MH_I2C_Read... [20:52:16]Read from MH i2c: 01 07 00 [20:52:16]MH_I2C_Read... [20:52:16]Read from MH i2c: 01 07 00 56 10 00 00 00 00 00 A3 0C 1C [20:52:16]RasterBufferAndPrint [20:52:16]line [20:52:16]line [20:52:16]line [20:52:16]line [20:52:16]line [20:52:16]written 0, free lines is 3239 [20:52:16]MH_Cut [20:52:16]Write to MH i2c: D1 01 00 5D 10 01 3F [20:52:16]Write i2c OK [20:52:16]MH_I2C_Read... [20:52:16]Read from MH i2c: D1 [20:52:16]MH_I2C_Read... [20:52:16]Read from MH i2c: D1 01 00 [20:52:16]MH_I2C_Read... [20:52:16]Read from MH i2c: D1 01 00 5D 10 00 3E [20:52:16]Write to MH i2c: 01 00 00 5E 10 6E [20:52:16]Write i2c OK [20:52:16]MH_I2C_Read... [20:52:16]OFD Sender: No OFD packet to send [20:52:17]*** Cut start [20:52:17]*** Partial cut [20:52:17]*** CUTSNS_PIN = 1 [20:52:17]*** CUTSNS_PIN = 0 [20:52:17]*** Brake cut motor [20:52:17]Read from MH i2c: 01 [20:52:17]MH_I2C_Read... [20:52:17]*** Stop cut motor [20:52:17]*** Cut end [20:52:17]Read from MH i2c: 01 07 00 [20:52:17]MH_I2C_Read... [20:52:17]Read from MH i2c: 01 07 00 5E 10 00 00 00 00 00 FF 0F 83 [20:52:17]process_action close_receipt done [20:52:17]requested_data is exist [20:52:17]produce_requested_data [20:52:17]requested_item fm.sn is exist - process it [20:52:17]wFMCommunicate request_size=4 [20:52:17]MH_SAM_APDU [20:52:17]CAPDU: 80 11 00 00 [20:52:17]Write to MH i2c: E2 08 00 5F 10 80 11 00 00 00 00 00 00 E9 [20:52:17]Write i2c OK [20:52:17]MH_I2C_Read... [20:52:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:52:17]Read from MH i2c: E2 [20:52:17]MH_I2C_Read... [20:52:17]Read from MH i2c: E2 17 00 [20:52:17]MH_I2C_Read... [20:52:17]Read from MH i2c: E2 17 00 5F 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 40 [20:52:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [20:52:17]wFMCommunicate OK [20:52:17]requested_item fd.num is exist - process it [20:52:17]SAM_PROTO_GetFieldsCounters [20:52:17]wFMCommunicate request_size=4 [20:52:17]MH_SAM_APDU [20:52:17]CAPDU: 80 13 00 00 [20:52:17]Write to MH i2c: E2 08 00 60 10 80 13 00 00 00 00 00 00 EC [20:52:18]Write i2c OK [20:52:18]MH_I2C_Read... [20:52:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:52:18]Read from MH i2c: E2 [20:52:18]MH_I2C_Read... [20:52:18]Read from MH i2c: E2 62 00 [20:52:18]MH_I2C_Read... [20:52:18]Read from MH i2c: E2 62 00 60 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 5A 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 0A 02 00 00 5E 04 04 00 0A 02 00 00 57 04 04 00 0B 02 00 00 19 04 04 00 00 00 00 00 90 00 26 [20:52: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 5A 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 0A 02 00 00 5E 04 04 00 0A 02 00 00 57 04 04 00 0B 02 00 00 19 04 04 00 00 00 00 00 90 00 [20:52:18]wFMCommunicate OK [20:52:18]SAM_PROTO_GetFieldsCounters done [20:52:18]requested_item shift.num is exist - process it [20:52:18]requested_item shift.opened is exist - process it [20:52:18]req_shift_opened [20:52:18]FM_GetShiftState [20:52:18]SAM_PROTO_GetShiftState [20:52:18]wFMCommunicate request_size=4 [20:52:18]MH_SAM_APDU [20:52:18]CAPDU: 80 13 01 00 [20:52:18]Write to MH i2c: E2 08 00 61 10 80 13 01 00 00 00 00 00 EE [20:52:18]Write i2c OK [20:52:18]MH_I2C_Read... [20:52:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:52:18]Read from MH i2c: E2 [20:52:18]MH_I2C_Read... [20:52:18]Read from MH i2c: E2 0E 00 [20:52:18]MH_I2C_Read... [20:52:18]Read from MH i2c: E2 0E 00 61 10 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 08 [20:52:18]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [20:52:18]wFMCommunicate OK [20:52:18]SAM_PROTO_GetShiftState done [20:52:18]FM_GetShiftState done [20:52:18]req_shift_opened done [20:52:18]requested_item shift.open_date is exist - process it [20:52:18]req_shift_open_date [20:52:18]req_shift_open_date done [20:52:18]produce_requested_data done [20:52:18]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227674,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [20:52:18]process_action_free close_receipt [20:52:18]json_value_free [20:52:18]json_value_free done [20:52:18]process_json_proto returns [20:52:18]Send response to host [20:52:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227674,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [20:52:18]free response buf [20:52:18]execute_script done [20:52:18]execute_script returns [20:52:18]free content buf [20:52:18]Sock 9.Close socket [20:52:18]Sock 9.Thread stoped [20:52:21]OFD Sender: No OFD packet to send [20:52:26]OFD Sender: No OFD packet to send [20:52:31]OFD Sender: No OFD packet to send [20:52:36]OFD Sender: No OFD packet to send [20:52:41]OFD Sender: No OFD packet to send [20:52:46]OFD Sender: No OFD packet to send [20:52:51]OFD Sender: No OFD packet to send [20:52:56]OFD Sender: No OFD packet to send [20:53:01]OFD Sender: No OFD packet to send [20:53:06]OFD Sender: No OFD packet to send [20:53:11]OFD Sender: No OFD packet to send [20:53:16]OFD Sender: No OFD packet to send [20:53:21]OFD Sender: No OFD packet to send [20:53:26]OFD Sender: No OFD packet to send [20:53:31]OFD Sender: No OFD packet to send [20:53:36]OFD Sender: No OFD packet to send [20:53:41]OFD Sender: No OFD packet to send [20:53:46]OFD Sender: No OFD packet to send [20:53:51]OFD Sender: No OFD packet to send [20:53:56]OFD Sender: No OFD packet to send [20:54:01]OFD Sender: No OFD packet to send [20:54:06]OFD Sender: No OFD packet to send [20:54:11]OFD Sender: No OFD packet to send [20:54:16]OFD Sender: No OFD packet to send [20:54:21]OFD Sender: No OFD packet to send [20:54:26]OFD Sender: No OFD packet to send [20:54:31]OFD Sender: No OFD packet to send [20:54:36]OFD Sender: No OFD packet to send [20:54:41]OFD Sender: No OFD packet to send [20:54:46]OFD Sender: No OFD packet to send [20:54:51]OFD Sender: No OFD packet to send [20:54:56]OFD Sender: No OFD packet to send [20:55:01]OFD Sender: No OFD packet to send [20:55:06]OFD Sender: No OFD packet to send [20:55:11]OFD Sender: No OFD packet to send [20:55:16]OFD Sender: No OFD packet to send [20:55:21]OFD Sender: No OFD packet to send [20:55:26]OFD Sender: No OFD packet to send [20:55:31]OFD Sender: No OFD packet to send [20:55:36]OFD Sender: No OFD packet to send [20:55:41]OFD Sender: No OFD packet to send [20:55:46]OFD Sender: No OFD packet to send [20:55:51]OFD Sender: No OFD packet to send [20:55:56]OFD Sender: No OFD packet to send [20:56:01]OFD Sender: No OFD packet to send [20:56:06]OFD Sender: No OFD packet to send [20:56:11]OFD Sender: No OFD packet to send [20:56:16]OFD Sender: No OFD packet to send [20:56:21]OFD Sender: No OFD packet to send [20:56:26]OFD Sender: No OFD packet to send [20:56:31]OFD Sender: No OFD packet to send [20:56:36]OFD Sender: No OFD packet to send [20:56:41]OFD Sender: No OFD packet to send [20:56:46]OFD Sender: No OFD packet to send [20:56:51]OFD Sender: No OFD packet to send [20:56:56]OFD Sender: No OFD packet to send [20:57:01]OFD Sender: No OFD packet to send [20:57:06]OFD Sender: No OFD packet to send [20:57:11]OFD Sender: No OFD packet to send [20:57:16]OFD Sender: No OFD packet to send [20:57:21]OFD Sender: No OFD packet to send [20:57:26]OFD Sender: No OFD packet to send [20:57:31]OFD Sender: No OFD packet to send [20:57:36]OFD Sender: No OFD packet to send [20:57:41]OFD Sender: No OFD packet to send [20:57:46]OFD Sender: No OFD packet to send [20:57:52]OFD Sender: No OFD packet to send [20:57:57]OFD Sender: No OFD packet to send [20:58:02]OFD Sender: No OFD packet to send [20:58:07]OFD Sender: No OFD packet to send [20:58:12]OFD Sender: No OFD packet to send [20:58:17]OFD Sender: No OFD packet to send [20:58:22]OFD Sender: No OFD packet to send [20:58:27]OFD Sender: No OFD packet to send [20:58:32]OFD Sender: No OFD packet to send [20:58:37]OFD Sender: No OFD packet to send [20:58:42]OFD Sender: No OFD packet to send [20:58:47]OFD Sender: No OFD packet to send [20:58:52]OFD Sender: No OFD packet to send [20:58:57]OFD Sender: No OFD packet to send [20:59:02]OFD Sender: No OFD packet to send [20:59:07]OFD Sender: No OFD packet to send [20:59:12]OFD Sender: No OFD packet to send [20:59:17]OFD Sender: No OFD packet to send [20:59:22]OFD Sender: No OFD packet to send [20:59:27]OFD Sender: No OFD packet to send [20:59:32]OFD Sender: No OFD packet to send [20:59:37]OFD Sender: No OFD packet to send [20:59:42]OFD Sender: No OFD packet to send [20:59:47]OFD Sender: No OFD packet to send [20:59:52]OFD Sender: No OFD packet to send [20:59:57]OFD Sender: No OFD packet to send [21:00:02]OFD Sender: No OFD packet to send [21:00:07]OFD Sender: No OFD packet to send [21:00:12]OFD Sender: No OFD packet to send [21:00:17]OFD Sender: No OFD packet to send [21:00:22]OFD Sender: No OFD packet to send [21:00:27]OFD Sender: No OFD packet to send [21:00:32]OFD Sender: No OFD packet to send [21:00:37]OFD Sender: No OFD packet to send [21:00:42]OFD Sender: No OFD packet to send [21:00:47]OFD Sender: No OFD packet to send [21:00:52]OFD Sender: No OFD packet to send [21:00:57]OFD Sender: No OFD packet to send [21:01:02]OFD Sender: No OFD packet to send [21:01:07]OFD Sender: No OFD packet to send [21:01:12]OFD Sender: No OFD packet to send [21:01:17]OFD Sender: No OFD packet to send [21:01:22]OFD Sender: No OFD packet to send [21:01:27]OFD Sender: No OFD packet to send [21:01:32]OFD Sender: No OFD packet to send [21:01:37]OFD Sender: No OFD packet to send [21:01:42]OFD Sender: No OFD packet to send [21:01:47]OFD Sender: No OFD packet to send [21:01:52]OFD Sender: No OFD packet to send [21:01:57]OFD Sender: No OFD packet to send [21:02:02]OFD Sender: No OFD packet to send [21:02:07]OFD Sender: No OFD packet to send [21:02:12]OFD Sender: No OFD packet to send [21:02:17]OFD Sender: No OFD packet to send [21:02:22]OFD Sender: No OFD packet to send [21:02:27]OFD Sender: No OFD packet to send [21:02:32]OFD Sender: No OFD packet to send [21:02:37]OFD Sender: No OFD packet to send [21:02:42]OFD Sender: No OFD packet to send [21:02:47]OFD Sender: No OFD packet to send [21:02:52]OFD Sender: No OFD packet to send [21:02:57]OFD Sender: No OFD packet to send [21:03:02]OFD Sender: No OFD packet to send [21:03:07]OFD Sender: No OFD packet to send [21:03:12]OFD Sender: No OFD packet to send [21:03:17]OFD Sender: No OFD packet to send [21:03:22]OFD Sender: No OFD packet to send [21:03:27]OFD Sender: No OFD packet to send [21:03:32]OFD Sender: No OFD packet to send [21:03:37]OFD Sender: No OFD packet to send [21:03:42]OFD Sender: No OFD packet to send [21:03:47]OFD Sender: No OFD packet to send [21:03:52]OFD Sender: No OFD packet to send [21:03:57]OFD Sender: No OFD packet to send [21:04:02]OFD Sender: No OFD packet to send [21:04:07]OFD Sender: No OFD packet to send [21:04:12]OFD Sender: No OFD packet to send [21:04:17]OFD Sender: No OFD packet to send [21:04:22]OFD Sender: No OFD packet to send [21:04:27]OFD Sender: No OFD packet to send [21:04:32]OFD Sender: No OFD packet to send [21:04:37]OFD Sender: No OFD packet to send [21:04:42]OFD Sender: No OFD packet to send [21:04:47]OFD Sender: No OFD packet to send [21:04:52]OFD Sender: No OFD packet to send [21:04:57]OFD Sender: No OFD packet to send [21:05:02]OFD Sender: No OFD packet to send [21:05:07]OFD Sender: No OFD packet to send [21:05:12]OFD Sender: No OFD packet to send [21:05:17]OFD Sender: No OFD packet to send [21:05:22]OFD Sender: No OFD packet to send [21:05:27]OFD Sender: No OFD packet to send [21:05:32]OFD Sender: No OFD packet to send [21:05:37]OFD Sender: No OFD packet to send [21:05:42]OFD Sender: No OFD packet to send [21:05:47]OFD Sender: No OFD packet to send [21:05:51]accept exits with 7 [21:05:51]New connection [21:05:51]New thread 3066666340 created [21:05:51]Thread 3066809700 joined [21:05:51]Waiting for new connection... [21:05:51] Sock 7.Parse request [21:05:51]Sock 7.Check first char [21:05:51]Sock 7.First char is OK [21:05:51]request: POST /json_proto HTTP/1.0 [21:05:51]Method: POST [21:05:51]URL: /json_proto [21:05:51]Method is POST - this is cgi request [21:05:51]url: /json_proto [21:05:51]query_string will be loaded in cgi processing [21:05:51]execute_cgi json_proto POST (null) [21:05:51]execute_cgi path=json_proto method=POST [21:05:51]POST find Content-Length [21:05:51]Host: 172.17.44.195:8080 [21:05:51]Content-Length: 683 [21:05:51]Content-Type: application/json [21:05:51] [21:05:51]POST finish read [21:05:51]Found Content-Length = 683 [21:05:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963338", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:05:51]execute_script... [21:05:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963338", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:05:51]POST & json_proto [21:05:51]process_json_proto [21:05:51]json parsed OK: [21:05:51]protocol is kg_v1.0 [21:05:51]action value=close_receipt [21:05:51]process_action close_receipt [21:05:51]cmd_close_receipt [21:05:51]MH_GetDate [21:05:51]Write to MH i2c: F0 00 00 62 10 61 [21:05:51]Write i2c OK [21:05:51]MH_I2C_Read... [21:05:51]Read from MH i2c: F0 [21:05:51]MH_I2C_Read... [21:05:51]Read from MH i2c: F0 09 00 [21:05:51]MH_I2C_Read... [21:05:51]Read from MH i2c: F0 09 00 62 10 00 B0 70 15 67 82 C9 CF 66 86 [21:05:51]GetLastDocTimeStamp 1729457535 [21:05:51]current date 1729458352 [21:05:51]FM_GetShiftState [21:05:51]SAM_PROTO_GetShiftState [21:05:51]wFMCommunicate request_size=4 [21:05:51]MH_SAM_APDU [21:05:51]CAPDU: 80 13 01 00 [21:05:51]Write to MH i2c: E2 08 00 63 10 80 13 01 00 00 00 00 00 F0 [21:05:51]Write i2c OK [21:05:51]MH_I2C_Read... [21:05:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:05:51]Read from MH i2c: E2 [21:05:51]MH_I2C_Read... [21:05:51]Read from MH i2c: E2 0E 00 [21:05:51]MH_I2C_Read... [21:05:51]Read from MH i2c: E2 0E 00 63 10 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 0A [21:05:51]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:05:51]wFMCommunicate OK [21:05:51]SAM_PROTO_GetShiftState done [21:05:51]FM_GetShiftState done [21:05:51]opened in 1729383750 [21:05:51]opened+sec_in_day 1729470150 [21:05:51]quantity*price = 100015 [21:05:51]sum+1 = 100017 [21:05:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 523 20.10.2024 21:05 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227675 ФПД: 107414358343018 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T210552&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227675&fm=107414358343018&tin=02508201610067®Number=0000000000091685&sum=100000 [21:05:52]StoreToDocumentArchive [21:05:52]shift 533 fd 227675 [21:05:52]save to /storage/0533/doc_00227675 [21:05:52]save last doc name /storage/0533/doc_00227675 to /storage/kkm_last_doc_name [21:05:52]save OK [21:05:52]Clear old archive folders... [21:05:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:05:52]tlvbuf is 00CB5E10 [21:05:52]SAM_PROTO_ClearQueue [21:05:52]wFMCommunicate request_size=4 [21:05:52]MH_SAM_APDU [21:05:52]CAPDU: 80 09 00 00 [21:05:52]Write to MH i2c: E2 08 00 70 10 80 09 00 00 00 00 00 00 F2 [21:05:52]Write i2c OK [21:05:52]MH_I2C_Read... [21:05:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:05:52]Read from MH i2c: E2 [21:05:52]MH_I2C_Read... [21:05:52]Read from MH i2c: E2 03 00 [21:05:52]MH_I2C_Read... [21:05:52]Read from MH i2c: E2 03 00 70 10 00 90 00 F4 [21:05:52]RAPDU: 90 00 [21:05:52]wFMCommunicate OK [21:05:52]SAM_PROTO_ClearQueue done [21:05:52]KKMCreateOFDPacket [21:05:52]OFDProtocolAddRootSTLVToBuf [21:05:52]FM_MakeSignedData [21:05:52]FM_MakeSignedData [21:05:52]SAM_PROTO_SignData [21:05:52]wFMCommunicate request_size=4 [21:05:52]MH_SAM_APDU [21:05:52]CAPDU: 80 0D 01 02 [21:05:52]Write to MH i2c: E2 08 00 71 10 80 0D 01 02 00 00 00 00 FA [21:05:52]Write i2c OK [21:05:52]MH_I2C_Read... [21:05:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:05:52]Read from MH i2c: E2 [21:05:52]MH_I2C_Read... [21:05:52]Read from MH i2c: E2 03 00 [21:05:52]MH_I2C_Read... [21:05:52]Read from MH i2c: E2 03 00 71 10 00 90 00 F5 [21:05:52]RAPDU: 90 00 [21:05:52]wFMCommunicate OK [21:05:52]wFMCommunicate request_size=255 [21:05:52]MH_SAM_APDU [21:05:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 02 00 00 F4 03 04 00 B0 70 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5B 79 03 00 35 04 06 00 61 [21:05:52]Write to MH i2c: E2 02 01 72 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 02 00 00 F4 03 04 00 B0 70 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5B 79 03 00 35 04 06 00 61 00 00 83 [21:05:52]Write i2c OK [21:05:52]MH_I2C_Read... [21:05:52]OFD Sender: No OFD packet to send [21:05:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:05:52]Read from MH i2c: E2 [21:05:52]MH_I2C_Read... [21:05:52]Read from MH i2c: E2 03 00 [21:05:52]MH_I2C_Read... [21:05:52]Read from MH i2c: E2 03 00 72 10 00 90 00 F6 [21:05:52]RAPDU: 90 00 [21:05:52]wFMCommunicate OK [21:05:52]wFMCommunicate request_size=10 [21:05:52]MH_SAM_APDU [21:05:52]CAPDU: 80 0D 02 02 05 B1 5A AC 3D 6A [21:05:52]Write to MH i2c: E2 0D 00 73 10 80 0D 02 02 05 00 B1 5A AC 3D 6A 00 00 65 [21:05:52]Write i2c OK [21:05:52]MH_I2C_Read... [21:05:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:05:52]Read from MH i2c: E2 [21:05:52]MH_I2C_Read... [21:05:52]Read from MH i2c: E2 03 00 [21:05:52]MH_I2C_Read... [21:05:52]Read from MH i2c: E2 03 00 73 10 00 90 00 F7 [21:05:52]RAPDU: 90 00 [21:05:52]wFMCommunicate OK [21:05:52]wFMCommunicate request_size=4 [21:05:52]MH_SAM_APDU [21:05:52]CAPDU: 80 0D 03 02 [21:05:52]Write to MH i2c: E2 08 00 74 10 80 0D 03 02 00 00 00 00 FF [21:05:52]Write i2c OK [21:05:52]MH_I2C_Read... [21:05:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:05:52]Read from MH i2c: E2 [21:05:52]MH_I2C_Read... [21:05:52]Read from MH i2c: E2 0B 00 [21:05:52]MH_I2C_Read... [21:05:52]Read from MH i2c: E2 0B 00 74 10 00 22 C7 B5 54 4C 8D AB 42 90 00 B8 [21:05:52]RAPDU: 22 C7 B5 54 4C 8D AB 42 90 00 [21:05:52]wFMCommunicate OK [21:05:52]SAM_PROTO_SignData done [21:05:52]FM_MakeSignedData done [21:05:52]CreateOFDProtocolMessage [21:05:52]wFMCommunicate request_size=4 [21:05:52]MH_SAM_APDU [21:05:52]CAPDU: 80 11 00 00 [21:05:52]Write to MH i2c: E2 08 00 75 10 80 11 00 00 00 00 00 00 FF [21:05:52]Write i2c OK [21:05:52]MH_I2C_Read... [21:05:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:05:52]Read from MH i2c: E2 [21:05:52]MH_I2C_Read... [21:05:52]Read from MH i2c: E2 17 00 [21:05:52]MH_I2C_Read... [21:05:52]Read from MH i2c: E2 17 00 75 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 56 [21:05:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:05:52]wFMCommunicate OK [21:05:52]CreateOFDProtocolMessage done [21:05:52]OFDSenderStorePacket 227675 [21:05:52]StoreOFDPacket docnum=227675 [21:05:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 98 3E 07 01 72 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 02 00 00 F4 03 04 00 B0 70 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5B 79 03 00 35 04 06 00 61 B1 5A AC 3D 6A 22 C7 B5 54 4C 8D AB 42 [21:05:52]CheckFolder [21:05:52]dirname=/storage/ofd_packets [21:05:52]CheckFolder done [21:05:52]ProducePacketName [21:05:52]name=ofd_packets/00227675 [21:05:52]NVStorageSaveData ofd_packets/00227675 [21:05:52]File name is /storage/ofd_packets/00227675 [21:05:52]Write 301 bytes [21:05:52]NVStorageSaveData done [21:05:52]OFDSenderStorePacket done [21:05:52]KKMCreateOFDPacket done [21:05:52]NVStorageSaveData kkm_last_timestamp [21:05:52]File name is /storage/kkm_last_timestamp [21:05:52]Write 4 bytes [21:05:52]NVStorageSaveData done [21:05:52]ExternCall_PrintAddStr [21:05:52]wPrintStart [21:05:52]Write to MH i2c: 01 00 00 76 10 86 [21:05:52]Write i2c OK [21:05:52]MH_I2C_Read... [21:05:52]Read from MH i2c: 01 [21:05:52]MH_I2C_Read... [21:05:52]Read from MH i2c: 01 07 00 [21:05:52]MH_I2C_Read... [21:05:52]Read from MH i2c: 01 07 00 76 10 00 00 00 00 00 FF 0F 9B [21:05:52]RasterBufferAndPrint [21:05:52]line Счет N : (1)1963338 [21:05:52]line ИНН: 02508201610067 [21:05:52]line Контрольно-Кассовый Чек [21:05:52]line ПРОДАЖА [21:05:52]line ТРК (МРК, ГНК) : 33 [21:05:52]line Товар: 2710124130 [21:05:52]line Аи-92-К-5 [21:05:52]line 14.950 * 66.90 [21:05:52]line = 1000.16 [21:05:52]line НДС 12% НСП 1% [21:05:52]line > о реализуемом товаре [21:05:52]line ОКРУГЛЕНИЕ: -0.16 [21:05:52]line ИТОГО: 1000.00 [21:05:52]line Внесено: 1000.00 [21:05:52]line СДАЧА: 0.00 [21:05:52]line НСП 1% : 8.85 [21:05:52]line НДС 12% : 106.21 [21:05:52]line Наличными: 1000.00 [21:05:52]line Безнал.: 0.00 [21:05:52]line Место: АЗС № 133 "Партнер Нефть" [21:05:52]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [21:05:52]line СНО: Общий режим [21:05:52]line Чек 523 20.10.2024 21:05 [21:05:52]line Смена: 533 ФФД: 1.0 [21:05:52]line ЗНМ: 0300000091 [21:05:52]line РНМ: 0000000000091685 [21:05:52]line Версия ККМ: 001 [21:05:52]line ФМ: 0000000000871839 [21:05:52]line ФД: 227675 [21:05:52]line ФПД: 107414358343018 [21:05:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T210552&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227675&fm=107414358343018&tin=02508201610067®Number=0000000000091685&sum=100000 [21:05:53]OFD Sender: Processing packet 227675 [packets to send 38, broken 37] [21:05:53]ProducePacketName [21:05:53]name=ofd_packets/00227675 [21:05:53]OFD Sender: To server: pG, [21:05:53]CommunicateWithHost lk.salyk.kg:30040 [21:05:53]ConnectInit lk.salyk.kg [21:05:53]written 0, free lines is 4095 [21:05:53]Connected sock=10 [21:05:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 98 3E 07 01 72 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 02 00 00 F4 03 04 00 B0 70 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5B 79 03 00 35 04 06 00 61 B1 5A AC 3D 6A 22 C7 B5 54 4C 8D AB 42 [21:05:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 93 A9 47 00 7B 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 33 39 10 04 04 00 5B 79 03 00 F4 03 04 00 AE 1B 15 67 B6 04 01 00 00 CF E9 B0 12 64 B4 88 79 [21:05:53]CommunicateWithHost err = 0 [21:05:53]CheckOFDResponse [21:05:53]1017 (14) - 77093643461234 [21:05:53]1041 (16) - 0000000000871839 [21:05:53]1040 (4) - 227675 [21:05:53]1012 (4) - 20.10.2024 15:03 [21:05:53]1206 (1) - 0 [21:05:53]OFD Sender: Remove packet 227675 [21:05:53]ProducePacketName [21:05:53]name=ofd_packets/00227675 [21:05:53]NVStorageDeleteData [21:05:53]Write to MH i2c: 01 00 00 A0 10 B0 [21:05:53]Write i2c OK [21:05:53]MH_I2C_Read... [21:05:53]Read from MH i2c: 01 [21:05:53]MH_I2C_Read... [21:05:53]Read from MH i2c: 01 07 00 [21:05:53]MH_I2C_Read... [21:05:53]Read from MH i2c: 01 07 00 A0 10 00 00 00 00 00 A2 0C 65 [21:05:53]RasterBufferAndPrint [21:05:53]line [21:05:53]line [21:05:53]line [21:05:53]line [21:05:53]line [21:05:53]written 0, free lines is 3240 [21:05:53]MH_Cut [21:05:53]Write to MH i2c: D1 01 00 A7 10 01 89 [21:05:53]Write i2c OK [21:05:53]MH_I2C_Read... [21:05:53]Read from MH i2c: D1 [21:05:53]MH_I2C_Read... [21:05:53]Read from MH i2c: D1 01 00 [21:05:53]MH_I2C_Read... [21:05:53]Read from MH i2c: D1 01 00 A7 10 00 88 [21:05:53]Write to MH i2c: 01 00 00 A8 10 B8 [21:05:53]Write i2c OK [21:05:53]MH_I2C_Read... [21:05:53]OFD Sender: No OFD packet to send [21:05:54]*** Cut start [21:05:54]*** Partial cut [21:05:54]*** CUTSNS_PIN = 1 [21:05:54]*** CUTSNS_PIN = 0 [21:05:54]*** Brake cut motor [21:05:55]Read from MH i2c: 01 [21:05:55]MH_I2C_Read... [21:05:55]*** Stop cut motor [21:05:55]*** Cut end [21:05:55]Read from MH i2c: 01 07 00 [21:05:55]MH_I2C_Read... [21:05:55]Read from MH i2c: 01 07 00 A8 10 00 00 00 00 00 FF 0F CD [21:05:55]process_action close_receipt done [21:05:55]requested_data is exist [21:05:55]produce_requested_data [21:05:55]requested_item fm.sn is exist - process it [21:05:55]wFMCommunicate request_size=4 [21:05:55]MH_SAM_APDU [21:05:55]CAPDU: 80 11 00 00 [21:05:55]Write to MH i2c: E2 08 00 A9 10 80 11 00 00 00 00 00 00 33 [21:05:55]Write i2c OK [21:05:55]MH_I2C_Read... [21:05:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:05:55]Read from MH i2c: E2 [21:05:55]MH_I2C_Read... [21:05:55]Read from MH i2c: E2 17 00 [21:05:55]MH_I2C_Read... [21:05:55]Read from MH i2c: E2 17 00 A9 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 8A [21:05:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:05:55]wFMCommunicate OK [21:05:55]requested_item fd.num is exist - process it [21:05:55]SAM_PROTO_GetFieldsCounters [21:05:55]wFMCommunicate request_size=4 [21:05:55]MH_SAM_APDU [21:05:55]CAPDU: 80 13 00 00 [21:05:55]Write to MH i2c: E2 08 00 AA 10 80 13 00 00 00 00 00 00 36 [21:05:55]Write i2c OK [21:05:55]MH_I2C_Read... [21:05:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:05:55]Read from MH i2c: E2 [21:05:55]MH_I2C_Read... [21:05:55]Read from MH i2c: E2 62 00 [21:05:55]MH_I2C_Read... [21:05:55]Read from MH i2c: E2 62 00 AA 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 5B 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 0B 02 00 00 5E 04 04 00 0B 02 00 00 57 04 04 00 0C 02 00 00 19 04 04 00 00 00 00 00 90 00 74 [21:05:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 5B 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 0B 02 00 00 5E 04 04 00 0B 02 00 00 57 04 04 00 0C 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:05:55]wFMCommunicate OK [21:05:55]SAM_PROTO_GetFieldsCounters done [21:05:55]requested_item shift.num is exist - process it [21:05:55]requested_item shift.opened is exist - process it [21:05:55]req_shift_opened [21:05:55]FM_GetShiftState [21:05:55]SAM_PROTO_GetShiftState [21:05:55]wFMCommunicate request_size=4 [21:05:55]MH_SAM_APDU [21:05:55]CAPDU: 80 13 01 00 [21:05:55]Write to MH i2c: E2 08 00 AB 10 80 13 01 00 00 00 00 00 38 [21:05:55]Write i2c OK [21:05:55]MH_I2C_Read... [21:05:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:05:55]Read from MH i2c: E2 [21:05:55]MH_I2C_Read... [21:05:55]Read from MH i2c: E2 0E 00 [21:05:55]MH_I2C_Read... [21:05:55]Read from MH i2c: E2 0E 00 AB 10 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 52 [21:05:55]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:05:55]wFMCommunicate OK [21:05:55]SAM_PROTO_GetShiftState done [21:05:55]FM_GetShiftState done [21:05:55]req_shift_opened done [21:05:55]requested_item shift.open_date is exist - process it [21:05:55]req_shift_open_date [21:05:55]req_shift_open_date done [21:05:55]produce_requested_data done [21:05:55]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227675,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [21:05:55]process_action_free close_receipt [21:05:55]json_value_free [21:05:55]json_value_free done [21:05:55]process_json_proto returns [21:05:55]Send response to host [21:05:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227675,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [21:05:55]free response buf [21:05:55]execute_script done [21:05:55]execute_script returns [21:05:55]free content buf [21:05:55]Sock 7.Close socket [21:05:55]Sock 7.Thread stoped [21:05:58]OFD Sender: No OFD packet to send [21:06:03]OFD Sender: No OFD packet to send [21:06:08]OFD Sender: No OFD packet to send [21:06:13]OFD Sender: No OFD packet to send [21:06:18]OFD Sender: No OFD packet to send [21:06:23]OFD Sender: No OFD packet to send [21:06:28]OFD Sender: No OFD packet to send [21:06:34]OFD Sender: No OFD packet to send [21:06:39]OFD Sender: No OFD packet to send [21:06:44]OFD Sender: No OFD packet to send [21:06:49]OFD Sender: No OFD packet to send [21:06:54]OFD Sender: No OFD packet to send [21:06:59]OFD Sender: No OFD packet to send [21:07:04]OFD Sender: No OFD packet to send [21:07:09]OFD Sender: No OFD packet to send [21:07:14]OFD Sender: No OFD packet to send [21:07:19]OFD Sender: No OFD packet to send [21:07:24]OFD Sender: No OFD packet to send [21:07:29]OFD Sender: No OFD packet to send [21:07:34]OFD Sender: No OFD packet to send [21:07:39]OFD Sender: No OFD packet to send [21:07:44]OFD Sender: No OFD packet to send [21:07:49]OFD Sender: No OFD packet to send [21:07:54]OFD Sender: No OFD packet to send [21:07:59]OFD Sender: No OFD packet to send [21:08:04]OFD Sender: No OFD packet to send [21:08:09]OFD Sender: No OFD packet to send [21:08:14]OFD Sender: No OFD packet to send [21:08:19]OFD Sender: No OFD packet to send [21:08:24]OFD Sender: No OFD packet to send [21:08:29]OFD Sender: No OFD packet to send [21:08:34]OFD Sender: No OFD packet to send [21:08:39]OFD Sender: No OFD packet to send [21:08:44]OFD Sender: No OFD packet to send [21:08:44]accept exits with 9 [21:08:44]New connection [21:08:44]New thread 3066809700 created [21:08:44]Thread 3066666340 joined [21:08:44]Waiting for new connection... [21:08:44] Sock 9.Parse request [21:08:44]Sock 9.Check first char [21:08:44]Sock 9.First char is OK [21:08:44]request: POST /json_proto HTTP/1.0 [21:08:44]Method: POST [21:08:44]URL: /json_proto [21:08:44]Method is POST - this is cgi request [21:08:44]url: /json_proto [21:08:44]query_string will be loaded in cgi processing [21:08:44]execute_cgi json_proto POST (null) [21:08:44]execute_cgi path=json_proto method=POST [21:08:44]POST find Content-Length [21:08:44]Host: 172.17.44.195:8080 [21:08:44]Content-Length: 659 [21:08:44]Content-Type: application/json [21:08:44] [21:08:44]POST finish read [21:08:44]Found Content-Length = 659 [21:08:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963339", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 5.850, "sum" : 400.14, "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" ] } } [21:08:44]execute_script... [21: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)1963339", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 5.850, "sum" : 400.14, "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" ] } } [21:08:44]POST & json_proto [21:08:44]process_json_proto [21:08:44]json parsed OK: [21:08:44]protocol is kg_v1.0 [21:08:44]action value=close_receipt [21:08:44]process_action close_receipt [21:08:44]cmd_close_receipt [21:08:44]MH_GetDate [21:08:44]Write to MH i2c: F0 00 00 AC 10 AB [21:08:44]Write i2c OK [21:08:44]MH_I2C_Read... [21:08:44]Read from MH i2c: F0 [21:08:44]MH_I2C_Read... [21:08:44]Read from MH i2c: F0 09 00 [21:08:44]MH_I2C_Read... [21:08:44]Read from MH i2c: F0 09 00 AC 10 00 5E 71 15 67 82 C9 CF 66 7F [21:08:44]GetLastDocTimeStamp 1729458352 [21:08:44]current date 1729458526 [21:08:44]FM_GetShiftState [21:08:44]SAM_PROTO_GetShiftState [21:08:44]wFMCommunicate request_size=4 [21:08:44]MH_SAM_APDU [21:08:44]CAPDU: 80 13 01 00 [21:08:44]Write to MH i2c: E2 08 00 AD 10 80 13 01 00 00 00 00 00 3A [21:08:44]Write i2c OK [21:08:44]MH_I2C_Read... [21:08:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:08:45]Read from MH i2c: E2 [21:08:45]MH_I2C_Read... [21:08:45]Read from MH i2c: E2 0E 00 [21:08:45]MH_I2C_Read... [21:08:45]Read from MH i2c: E2 0E 00 AD 10 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 54 [21:08:45]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:08:45]wFMCommunicate OK [21:08:45]SAM_PROTO_GetShiftState done [21:08:45]FM_GetShiftState done [21:08:45]opened in 1729383750 [21:08:45]opened+sec_in_day 1729470150 [21:08:45]quantity*price = 40014 [21:08:45]sum+1 = 40015 [21:08:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.49 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 524 20.10.2024 21:08 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227676 ФПД: 66576893907977 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T210846&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227676&fm=66576893907977&tin=02508201610067®Number=0000000000091685&sum=40000 [21:08:46]StoreToDocumentArchive [21:08:46]shift 533 fd 227676 [21:08:46]save to /storage/0533/doc_00227676 [21:08:46]save last doc name /storage/0533/doc_00227676 to /storage/kkm_last_doc_name [21:08:46]save OK [21:08:46]Clear old archive folders... [21:08:46]ProcessDocumentItem done err = 0, tmpTLVsize=244 [21:08:46]tlvbuf is 00C45B60 [21:08:46]SAM_PROTO_ClearQueue [21:08:46]wFMCommunicate request_size=4 [21:08:46]MH_SAM_APDU [21:08:46]CAPDU: 80 09 00 00 [21:08:46]Write to MH i2c: E2 08 00 BA 10 80 09 00 00 00 00 00 00 3C [21:08:46]Write i2c OK [21:08:46]MH_I2C_Read... [21:08:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:08:46]Read from MH i2c: E2 [21:08:46]MH_I2C_Read... [21:08:46]Read from MH i2c: E2 03 00 [21:08:46]MH_I2C_Read... [21:08:46]Read from MH i2c: E2 03 00 BA 10 00 90 00 3E [21:08:46]RAPDU: 90 00 [21:08:46]wFMCommunicate OK [21:08:46]SAM_PROTO_ClearQueue done [21:08:46]KKMCreateOFDPacket [21:08:46]OFDProtocolAddRootSTLVToBuf [21:08:46]FM_MakeSignedData [21:08:46]FM_MakeSignedData [21:08:46]SAM_PROTO_SignData [21:08:46]wFMCommunicate request_size=4 [21:08:46]MH_SAM_APDU [21:08:46]CAPDU: 80 0D 01 02 [21:08:46]Write to MH i2c: E2 08 00 BB 10 80 0D 01 02 00 00 00 00 44 [21:08:46]Write i2c OK [21:08:46]MH_I2C_Read... [21:08:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:08:46]Read from MH i2c: E2 [21:08:46]MH_I2C_Read... [21:08:46]Read from MH i2c: E2 03 00 [21:08:46]MH_I2C_Read... [21:08:46]Read from MH i2c: E2 03 00 BB 10 00 90 00 3F [21:08:46]RAPDU: 90 00 [21:08:46]wFMCommunicate OK [21:08:46]wFMCommunicate request_size=253 [21:08:46]MH_SAM_APDU [21:08:46]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 10 00 00 00 00 07 04 06 00 40 9C 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 02 00 00 F4 03 04 00 5E 71 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5C 79 03 00 35 04 06 00 3C 8D 24 1C 94 09 [21:08:46]Write to MH i2c: E2 00 01 BC 10 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 10 00 00 00 00 07 04 06 00 40 9C 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 02 00 00 F4 03 04 00 5E 71 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5C 79 03 00 35 04 06 00 3C 8D 24 1C 94 09 00 00 62 [21:08:46]Write i2c OK [21:08:46]MH_I2C_Read... [21:08:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:08:46]Read from MH i2c: E2 [21:08:46]MH_I2C_Read... [21:08:46]Read from MH i2c: E2 03 00 [21:08:46]MH_I2C_Read... [21:08:46]Read from MH i2c: E2 03 00 BC 10 00 90 00 40 [21:08:46]RAPDU: 90 00 [21:08:46]wFMCommunicate OK [21:08:46]wFMCommunicate request_size=4 [21:08:46]MH_SAM_APDU [21:08:46]CAPDU: 80 0D 03 02 [21:08:46]Write to MH i2c: E2 08 00 BD 10 80 0D 03 02 00 00 00 00 48 [21:08:46]Write i2c OK [21:08:46]MH_I2C_Read... [21:08:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:08:46]Read from MH i2c: E2 [21:08:46]MH_I2C_Read... [21:08:46]Read from MH i2c: E2 0B 00 [21:08:46]MH_I2C_Read... [21:08:46]Read from MH i2c: E2 0B 00 BD 10 00 04 5E AC 2F 6C 4B 1D 3E 90 00 98 [21:08:46]RAPDU: 04 5E AC 2F 6C 4B 1D 3E 90 00 [21:08:46]wFMCommunicate OK [21:08:46]SAM_PROTO_SignData done [21:08:46]FM_MakeSignedData done [21:08:46]CreateOFDProtocolMessage [21:08:46]wFMCommunicate request_size=4 [21:08:46]MH_SAM_APDU [21:08:46]CAPDU: 80 11 00 00 [21:08:46]Write to MH i2c: E2 08 00 BE 10 80 11 00 00 00 00 00 00 48 [21:08:46]Write i2c OK [21:08:46]MH_I2C_Read... [21:08:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:08:46]Read from MH i2c: E2 [21:08:46]MH_I2C_Read... [21:08:46]Read from MH i2c: E2 17 00 [21:08:46]MH_I2C_Read... [21:08:46]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 33 39 90 00 9F [21:08:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:08:46]wFMCommunicate OK [21:08:46]CreateOFDProtocolMessage done [21:08:46]OFDSenderStorePacket 227676 [21:08:46]StoreOFDPacket docnum=227676 [21:08:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 63 23 00 01 F3 65 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 10 00 00 00 00 07 04 06 00 40 9C 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 02 00 00 F4 03 04 00 5E 71 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5C 79 03 00 35 04 06 00 3C 8D 24 1C 94 09 04 5E AC 2F 6C 4B 1D 3E [21:08:46]CheckFolder [21:08:46]dirname=/storage/ofd_packets [21:08:46]CheckFolder done [21:08:46]ProducePacketName [21:08:46]name=ofd_packets/00227676 [21:08:46]NVStorageSaveData ofd_packets/00227676 [21:08:46]File name is /storage/ofd_packets/00227676 [21:08:46]Write 294 bytes [21:08:46]NVStorageSaveData done [21:08:46]OFDSenderStorePacket done [21:08:46]KKMCreateOFDPacket done [21:08:46]NVStorageSaveData kkm_last_timestamp [21:08:46]File name is /storage/kkm_last_timestamp [21:08:46]Write 4 bytes [21:08:46]NVStorageSaveData done [21:08:46]ExternCall_PrintAddStr [21:08:46]wPrintStart [21:08:46]Write to MH i2c: 01 00 00 BF 10 CF [21:08:46]Write i2c OK [21:08:46]MH_I2C_Read... [21:08:46]Read from MH i2c: 01 [21:08:46]MH_I2C_Read... [21:08:46]Read from MH i2c: 01 07 00 [21:08:46]MH_I2C_Read... [21:08:46]Read from MH i2c: 01 07 00 BF 10 00 00 00 00 00 FF 0F E4 [21:08:46]RasterBufferAndPrint [21:08:46]line Счет N : (1)1963339 [21:08:46]line ИНН: 02508201610067 [21:08:46]line Контрольно-Кассовый Чек [21:08:46]line ПРОДАЖА [21:08:46]line ТРК (МРК, ГНК) : 42 [21:08:46]line Товар: 2710124130 [21:08:46]line SU-92 [21:08:46]line 5.850 * 68.40 [21:08:46]line = 400.14 [21:08:46]line НДС 12% НСП 1% [21:08:46]line > о реализуемом товаре [21:08:46]line ОКРУГЛЕНИЕ: -0.14 [21:08:46]line ИТОГО: 400.00 [21:08:46]line Внесено: 400.00 [21:08:46]line СДАЧА: 0.00 [21:08:46]line НСП 1% : 3.54 [21:08:46]line НДС 12% : 42.49 [21:08:46]line Наличными: 400.00 [21:08:46]line Безнал.: 0.00 [21:08:46]line Место: АЗС № 133 "Партнер Нефть" [21:08:46]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [21:08:46]line СНО: Общий режим [21:08:46]line Чек 524 20.10.2024 21:08 [21:08:46]line Смена: 533 ФФД: 1.0 [21:08:46]line ЗНМ: 0300000091 [21:08:46]line РНМ: 0000000000091685 [21:08:46]line Версия ККМ: 001 [21:08:46]line ФМ: 0000000000871839 [21:08:46]line ФД: 227676 [21:08:46]line ФПД: 66576893907977 [21:08:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T210846&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227676&fm=66576893907977&tin=02508201610067®Number=0000000000091685&sum=40000 [21:08:46]OFD Sender: Processing packet 227676 [packets to send 38, broken 37] [21:08:46]ProducePacketName [21:08:46]name=ofd_packets/00227676 [21:08:46]OFD Sender: To server: pG, [21:08:46]CommunicateWithHost lk.salyk.kg:30040 [21:08:46]ConnectInit lk.salyk.kg [21:08:46]written 0, free lines is 4095 [21:08:47]Connected sock=10 [21:08: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 33 39 08 01 00 00 63 23 00 01 F3 65 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 10 00 00 00 00 07 04 06 00 40 9C 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 02 00 00 F4 03 04 00 5E 71 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5C 79 03 00 35 04 06 00 3C 8D 24 1C 94 09 04 5E AC 2F 6C 4B 1D 3E [21:08: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 33 39 4F 00 00 00 AC 00 47 00 7F 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 33 39 10 04 04 00 5C 79 03 00 F4 03 04 00 5B 1C 15 67 B6 04 01 00 00 E0 56 0E E3 FE B8 11 FB [21:08:47]CommunicateWithHost err = 0 [21:08:47]CheckOFDResponse [21:08:47]1017 (14) - 77093643461234 [21:08:47]1041 (16) - 0000000000871839 [21:08:47]1040 (4) - 227676 [21:08:47]1012 (4) - 20.10.2024 15:06 [21:08:47]1206 (1) - 0 [21:08:47]OFD Sender: Remove packet 227676 [21:08:47]ProducePacketName [21:08:47]name=ofd_packets/00227676 [21:08:47]NVStorageDeleteData [21:08:47]Write to MH i2c: 01 00 00 E9 10 F9 [21:08:47]Write i2c OK [21:08:47]MH_I2C_Read... [21:08:47]Read from MH i2c: 01 [21:08:47]MH_I2C_Read... [21:08:47]Read from MH i2c: 01 07 00 [21:08:47]MH_I2C_Read... [21:08:47]Read from MH i2c: 01 07 00 E9 10 00 00 00 00 00 9E 0C AA [21:08:47]RasterBufferAndPrint [21:08:47]line [21:08:47]line [21:08:47]line [21:08:47]line [21:08:47]line [21:08:47]written 0, free lines is 3235 [21:08:47]MH_Cut [21:08:47]Write to MH i2c: D1 01 00 F0 10 01 D2 [21:08:47]Write i2c OK [21:08:47]MH_I2C_Read... [21:08:47]Read from MH i2c: D1 [21:08:47]MH_I2C_Read... [21:08:47]Read from MH i2c: D1 01 00 [21:08:47]MH_I2C_Read... [21:08:47]Read from MH i2c: D1 01 00 F0 10 00 D1 [21:08:47]Write to MH i2c: 01 00 00 F1 10 01 [21:08:47]Write i2c OK [21:08:47]MH_I2C_Read... [21:08:47]OFD Sender: No OFD packet to send [21:08:48]*** Cut start [21:08:48]*** Partial cut [21:08:48]*** CUTSNS_PIN = 1 [21:08:48]*** CUTSNS_PIN = 0 [21:08:48]*** Brake cut motor [21:08:48]Read from MH i2c: 01 [21:08:48]MH_I2C_Read... [21:08:48]*** Stop cut motor [21:08:48]*** Cut end [21:08:48]Read from MH i2c: 01 07 00 [21:08:48]MH_I2C_Read... [21:08:48]Read from MH i2c: 01 07 00 F1 10 00 00 00 00 00 FF 0F 16 [21:08:48]process_action close_receipt done [21:08:48]requested_data is exist [21:08:48]produce_requested_data [21:08:48]requested_item fm.sn is exist - process it [21:08:48]wFMCommunicate request_size=4 [21:08:48]MH_SAM_APDU [21:08:48]CAPDU: 80 11 00 00 [21:08:48]Write to MH i2c: E2 08 00 F2 10 80 11 00 00 00 00 00 00 7C [21:08:48]Write i2c OK [21:08:48]MH_I2C_Read... [21:08:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:08:49]Read from MH i2c: E2 [21:08:49]MH_I2C_Read... [21:08:49]Read from MH i2c: E2 17 00 [21:08:49]MH_I2C_Read... [21:08:49]Read from MH i2c: E2 17 00 F2 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D3 [21:08:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:08:49]wFMCommunicate OK [21:08:49]requested_item fd.num is exist - process it [21:08:49]SAM_PROTO_GetFieldsCounters [21:08:49]wFMCommunicate request_size=4 [21:08:49]MH_SAM_APDU [21:08:49]CAPDU: 80 13 00 00 [21:08:49]Write to MH i2c: E2 08 00 F3 10 80 13 00 00 00 00 00 00 7F [21:08:49]Write i2c OK [21:08:49]MH_I2C_Read... [21:08:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:08:49]Read from MH i2c: E2 [21:08:49]MH_I2C_Read... [21:08:49]Read from MH i2c: E2 62 00 [21:08:49]MH_I2C_Read... [21:08:49]Read from MH i2c: E2 62 00 F3 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 5C 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 0C 02 00 00 5E 04 04 00 0C 02 00 00 57 04 04 00 0D 02 00 00 19 04 04 00 00 00 00 00 90 00 C1 [21:08: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 5C 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 0C 02 00 00 5E 04 04 00 0C 02 00 00 57 04 04 00 0D 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:08:49]wFMCommunicate OK [21:08:49]SAM_PROTO_GetFieldsCounters done [21:08:49]requested_item shift.num is exist - process it [21:08:49]requested_item shift.opened is exist - process it [21:08:49]req_shift_opened [21:08:49]FM_GetShiftState [21:08:49]SAM_PROTO_GetShiftState [21:08:49]wFMCommunicate request_size=4 [21:08:49]MH_SAM_APDU [21:08:49]CAPDU: 80 13 01 00 [21:08:49]Write to MH i2c: E2 08 00 F4 10 80 13 01 00 00 00 00 00 81 [21:08:49]Write i2c OK [21:08:49]MH_I2C_Read... [21:08:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:08:49]Read from MH i2c: E2 [21:08:49]MH_I2C_Read... [21:08:49]Read from MH i2c: E2 0E 00 [21:08:49]MH_I2C_Read... [21:08:49]Read from MH i2c: E2 0E 00 F4 10 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 9B [21:08:49]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:08:49]wFMCommunicate OK [21:08:49]SAM_PROTO_GetShiftState done [21:08:49]FM_GetShiftState done [21:08:49]req_shift_opened done [21:08:49]requested_item shift.open_date is exist - process it [21:08:49]req_shift_open_date [21:08:49]req_shift_open_date done [21:08:49]produce_requested_data done [21:08:49]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227676,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [21:08:49]process_action_free close_receipt [21:08:49]json_value_free [21:08:49]json_value_free done [21:08:49]process_json_proto returns [21:08:49]Send response to host [21:08:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227676,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [21:08:49]free response buf [21:08:49]execute_script done [21:08:49]execute_script returns [21:08:49]free content buf [21:08:49]Sock 9.Close socket [21:08:49]Sock 9.Thread stoped [21:08:52]OFD Sender: No OFD packet to send [21:08:57]OFD Sender: No OFD packet to send [21:09:02]OFD Sender: No OFD packet to send [21:09:07]OFD Sender: No OFD packet to send [21:09:12]OFD Sender: No OFD packet to send [21:09:17]OFD Sender: No OFD packet to send [21:09:22]OFD Sender: No OFD packet to send [21:09:27]OFD Sender: No OFD packet to send [21:09:32]OFD Sender: No OFD packet to send [21:09:37]OFD Sender: No OFD packet to send [21:09:42]OFD Sender: No OFD packet to send [21:09:47]OFD Sender: No OFD packet to send [21:09:52]OFD Sender: No OFD packet to send [21:09:57]OFD Sender: No OFD packet to send [21:10:02]OFD Sender: No OFD packet to send [21:10:07]OFD Sender: No OFD packet to send [21:10:12]OFD Sender: No OFD packet to send [21:10:17]OFD Sender: No OFD packet to send [21:10:22]OFD Sender: No OFD packet to send [21:10:27]OFD Sender: No OFD packet to send [21:10:32]OFD Sender: No OFD packet to send [21:10:37]OFD Sender: No OFD packet to send [21:10:42]OFD Sender: No OFD packet to send [21:10:47]OFD Sender: No OFD packet to send [21:10:50]accept exits with 7 [21:10:50]New connection [21:10:50]New thread 3066666340 created [21:10:50]Thread 3066809700 joined [21:10:50]Waiting for new connection... [21:10:50] Sock 7.Parse request [21:10:50]Sock 7.Check first char [21:10:50]Sock 7.First char is OK [21:10:50]request: POST /json_proto HTTP/1.0 [21:10:50]Method: POST [21:10:50]URL: /json_proto [21:10:50]Method is POST - this is cgi request [21:10:50]url: /json_proto [21:10:50]query_string will be loaded in cgi processing [21:10:50]execute_cgi json_proto POST (null) [21:10:50]execute_cgi path=json_proto method=POST [21:10:50]POST find Content-Length [21:10:50]Host: 172.17.44.195:8080 [21:10:50]Content-Length: 678 [21:10:50]Content-Type: application/json [21:10:50] [21:10:50]POST finish read [21:10:50]Found Content-Length = 678 [21:10:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963340", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:10:50]execute_script... [21: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)1963340", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:10:50]POST & json_proto [21:10:50]process_json_proto [21:10:50]json parsed OK: [21:10:50]protocol is kg_v1.0 [21:10:50]action value=close_receipt [21:10:50]process_action close_receipt [21:10:50]cmd_close_receipt [21:10:50]MH_GetDate [21:10:50]Write to MH i2c: F0 00 00 F5 10 F4 [21:10:50]Write i2c OK [21:10:50]MH_I2C_Read... [21:10:50]Read from MH i2c: F0 [21:10:50]MH_I2C_Read... [21:10:50]Read from MH i2c: F0 09 00 [21:10:50]MH_I2C_Read... [21:10:50]Read from MH i2c: F0 09 00 F5 10 00 DB 71 15 67 82 C9 CF 66 45 [21:10:50]GetLastDocTimeStamp 1729458526 [21:10:50]current date 1729458651 [21:10:50]FM_GetShiftState [21:10:50]SAM_PROTO_GetShiftState [21:10:50]wFMCommunicate request_size=4 [21:10:50]MH_SAM_APDU [21:10:50]CAPDU: 80 13 01 00 [21:10:50]Write to MH i2c: E2 08 00 F6 10 80 13 01 00 00 00 00 00 83 [21:10:50]Write i2c OK [21:10:50]MH_I2C_Read... [21:10:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:10:50]Read from MH i2c: E2 [21:10:50]MH_I2C_Read... [21:10:50]Read from MH i2c: E2 0E 00 [21:10:50]MH_I2C_Read... [21:10:50]Read from MH i2c: E2 0E 00 F6 10 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 9D [21:10:50]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:10:50]wFMCommunicate OK [21:10:50]SAM_PROTO_GetShiftState done [21:10:50]FM_GetShiftState done [21:10:50]opened in 1729383750 [21:10:50]opened+sec_in_day 1729470150 [21:10:50]quantity*price = 40006 [21:10:50]sum+1 = 40007 [21:10:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 525 20.10.2024 21:10 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227677 ФПД: 237972771859440 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T211051&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227677&fm=237972771859440&tin=02508201610067®Number=0000000000091685&sum=40000 [21:10:51]StoreToDocumentArchive [21:10:51]shift 533 fd 227677 [21:10:51]save to /storage/0533/doc_00227677 [21:10:51]save last doc name /storage/0533/doc_00227677 to /storage/kkm_last_doc_name [21:10:51]save OK [21:10:51]Clear old archive folders... [21:10:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:10:51]tlvbuf is B6E857B0 [21:10:51]SAM_PROTO_ClearQueue [21:10:51]wFMCommunicate request_size=4 [21:10:51]MH_SAM_APDU [21:10:51]CAPDU: 80 09 00 00 [21:10:51]Write to MH i2c: E2 08 00 03 11 80 09 00 00 00 00 00 00 86 [21:10:51]Write i2c OK [21:10:51]MH_I2C_Read... [21:10:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:10:51]Read from MH i2c: E2 [21:10:51]MH_I2C_Read... [21:10:51]Read from MH i2c: E2 03 00 [21:10:51]MH_I2C_Read... [21:10:51]Read from MH i2c: E2 03 00 03 11 00 90 00 88 [21:10:51]RAPDU: 90 00 [21:10:51]wFMCommunicate OK [21:10:51]SAM_PROTO_ClearQueue done [21:10:51]KKMCreateOFDPacket [21:10:51]OFDProtocolAddRootSTLVToBuf [21:10:51]FM_MakeSignedData [21:10:51]FM_MakeSignedData [21:10:51]SAM_PROTO_SignData [21:10:51]wFMCommunicate request_size=4 [21:10:51]MH_SAM_APDU [21:10:51]CAPDU: 80 0D 01 02 [21:10:51]Write to MH i2c: E2 08 00 04 11 80 0D 01 02 00 00 00 00 8E [21:10:51]Write i2c OK [21:10:51]MH_I2C_Read... [21:10:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:10:51]Read from MH i2c: E2 [21:10:51]MH_I2C_Read... [21:10:51]Read from MH i2c: E2 03 00 [21:10:51]MH_I2C_Read... [21:10:51]Read from MH i2c: E2 03 00 04 11 00 90 00 89 [21:10:51]RAPDU: 90 00 [21:10:51]wFMCommunicate OK [21:10:51]wFMCommunicate request_size=255 [21:10:51]MH_SAM_APDU [21:10:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 02 00 00 F4 03 04 00 DB 71 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5D 79 03 00 35 04 06 00 D8 [21:10:51]Write to MH i2c: E2 02 01 05 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 02 00 00 F4 03 04 00 DB 71 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5D 79 03 00 35 04 06 00 D8 00 00 93 [21:10:51]Write i2c OK [21:10:51]MH_I2C_Read... [21:10:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:10:51]Read from MH i2c: E2 [21:10:51]MH_I2C_Read... [21:10:51]Read from MH i2c: E2 03 00 [21:10:51]MH_I2C_Read... [21:10:51]Read from MH i2c: E2 03 00 05 11 00 90 00 8A [21:10:51]RAPDU: 90 00 [21:10:51]wFMCommunicate OK [21:10:51]wFMCommunicate request_size=10 [21:10:51]MH_SAM_APDU [21:10:51]CAPDU: 80 0D 02 02 05 6F 5A 88 6B F0 [21:10:51]Write to MH i2c: E2 0D 00 06 11 80 0D 02 02 05 00 6F 5A 88 6B F0 00 00 47 [21:10:51]Write i2c OK [21:10:51]MH_I2C_Read... [21:10:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:10:51]Read from MH i2c: E2 [21:10:51]MH_I2C_Read... [21:10:51]Read from MH i2c: E2 03 00 [21:10:51]MH_I2C_Read... [21:10:51]Read from MH i2c: E2 03 00 06 11 00 90 00 8B [21:10:51]RAPDU: 90 00 [21:10:51]wFMCommunicate OK [21:10:51]wFMCommunicate request_size=4 [21:10:51]MH_SAM_APDU [21:10:51]CAPDU: 80 0D 03 02 [21:10:51]Write to MH i2c: E2 08 00 07 11 80 0D 03 02 00 00 00 00 93 [21:10:51]Write i2c OK [21:10:51]MH_I2C_Read... [21:10:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:10:51]Read from MH i2c: E2 [21:10:51]MH_I2C_Read... [21:10:51]Read from MH i2c: E2 0B 00 [21:10:51]MH_I2C_Read... [21:10:51]Read from MH i2c: E2 0B 00 07 11 00 08 03 4B 04 32 5C 8D 75 90 00 7E [21:10:51]RAPDU: 08 03 4B 04 32 5C 8D 75 90 00 [21:10:51]wFMCommunicate OK [21:10:51]SAM_PROTO_SignData done [21:10:51]FM_MakeSignedData done [21:10:51]CreateOFDProtocolMessage [21:10:51]wFMCommunicate request_size=4 [21:10:51]MH_SAM_APDU [21:10:51]CAPDU: 80 11 00 00 [21:10:51]Write to MH i2c: E2 08 00 08 11 80 11 00 00 00 00 00 00 93 [21:10:51]Write i2c OK [21:10:51]MH_I2C_Read... [21:10:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:10:52]Read from MH i2c: E2 [21:10:52]MH_I2C_Read... [21:10:52]Read from MH i2c: E2 17 00 [21:10:52]MH_I2C_Read... [21:10:52]Read from MH i2c: E2 17 00 08 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 EA [21:10:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:10:52]wFMCommunicate OK [21:10:52]CreateOFDProtocolMessage done [21:10:52]OFDSenderStorePacket 227677 [21:10:52]StoreOFDPacket docnum=227677 [21:10:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 6E 34 07 01 F1 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 02 00 00 F4 03 04 00 DB 71 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5D 79 03 00 35 04 06 00 D8 6F 5A 88 6B F0 08 03 4B 04 32 5C 8D 75 [21:10:52]CheckFolder [21:10:52]dirname=/storage/ofd_packets [21:10:52]CheckFolder done [21:10:52]ProducePacketName [21:10:52]name=ofd_packets/00227677 [21:10:52]NVStorageSaveData ofd_packets/00227677 [21:10:52]File name is /storage/ofd_packets/00227677 [21:10:52]Write 301 bytes [21:10:52]NVStorageSaveData done [21:10:52]OFDSenderStorePacket done [21:10:52]KKMCreateOFDPacket done [21:10:52]NVStorageSaveData kkm_last_timestamp [21:10:52]File name is /storage/kkm_last_timestamp [21:10:52]Write 4 bytes [21:10:52]NVStorageSaveData done [21:10:52]ExternCall_PrintAddStr [21:10:52]wPrintStart [21:10:52]Write to MH i2c: 01 00 00 09 11 1A [21:10:52]Write i2c OK [21:10:52]MH_I2C_Read... [21:10:52]Read from MH i2c: 01 [21:10:52]MH_I2C_Read... [21:10:52]Read from MH i2c: 01 07 00 [21:10:52]MH_I2C_Read... [21:10:52]Read from MH i2c: 01 07 00 09 11 00 00 00 00 00 FF 0F 2F [21:10:52]RasterBufferAndPrint [21:10:52]line Счет N : (1)1963340 [21:10:52]line ИНН: 02508201610067 [21:10:52]line Контрольно-Кассовый Чек [21:10:52]line ПРОДАЖА [21:10:52]line ТРК (МРК, ГНК) : 53 [21:10:52]line Товар: 2710124130 [21:10:52]line Аи-92-К-5 [21:10:52]line 5.980 * 66.90 [21:10:52]line = 400.06 [21:10:52]line НДС 12% НСП 1% [21:10:52]line > о реализуемом товаре [21:10:52]line ОКРУГЛЕНИЕ: -0.06 [21:10:52]line ИТОГО: 400.00 [21:10:52]line Внесено: 400.00 [21:10:52]line СДАЧА: 0.00 [21:10:52]line НСП 1% : 3.54 [21:10:52]line НДС 12% : 42.48 [21:10:52]line Наличными: 400.00 [21:10:52]line Безнал.: 0.00 [21:10:52]line Место: АЗС № 133 "Партнер Нефть" [21:10:52]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [21:10:52]line СНО: Общий режим [21:10:52]line Чек 525 20.10.2024 21:10 [21:10:52]line Смена: 533 ФФД: 1.0 [21:10:52]line ЗНМ: 0300000091 [21:10:52]line РНМ: 0000000000091685 [21:10:52]line Версия ККМ: 001 [21:10:52]line ФМ: 0000000000871839 [21:10:52]line ФД: 227677 [21:10:52]line ФПД: 237972771859440 [21:10:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T211051&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227677&fm=237972771859440&tin=02508201610067®Number=0000000000091685&sum=40000 [21:10:52]OFD Sender: Processing packet 227677 [packets to send 38, broken 37] [21:10:52]ProducePacketName [21:10:52]name=ofd_packets/00227677 [21:10:52]OFD Sender: To server: pG, [21:10:52]CommunicateWithHost lk.salyk.kg:30040 [21:10:52]ConnectInit lk.salyk.kg [21:10:52]written 0, free lines is 4095 [21:10:52]Connected sock=10 [21:10: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 33 39 0F 01 00 00 6E 34 07 01 F1 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 02 00 00 F4 03 04 00 DB 71 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5D 79 03 00 35 04 06 00 D8 6F 5A 88 6B F0 08 03 4B 04 32 5C 8D 75 [21:10: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 33 39 4F 00 00 00 D7 B8 47 00 B4 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 33 39 10 04 04 00 5D 79 03 00 F4 03 04 00 D9 1C 15 67 B6 04 01 00 00 41 06 C1 E6 12 F3 7F 4B [21:10:52]CommunicateWithHost err = 0 [21:10:52]CheckOFDResponse [21:10:52]1017 (14) - 77093643461234 [21:10:52]1041 (16) - 0000000000871839 [21:10:52]1040 (4) - 227677 [21:10:52]1012 (4) - 20.10.2024 15:08 [21:10:52]1206 (1) - 0 [21:10:52]OFD Sender: Remove packet 227677 [21:10:52]ProducePacketName [21:10:52]name=ofd_packets/00227677 [21:10:52]NVStorageDeleteData [21:10:52]Write to MH i2c: 01 00 00 33 11 44 [21:10:52]Write i2c OK [21:10:52]MH_I2C_Read... [21:10:52]Read from MH i2c: 01 [21:10:52]MH_I2C_Read... [21:10:52]Read from MH i2c: 01 07 00 [21:10:52]MH_I2C_Read... [21:10:52]Read from MH i2c: 01 07 00 33 11 00 00 00 00 00 A5 0C FC [21:10:52]RasterBufferAndPrint [21:10:52]line [21:10:52]line [21:10:52]line [21:10:52]line [21:10:52]line [21:10:52]written 0, free lines is 3241 [21:10:52]MH_Cut [21:10:52]Write to MH i2c: D1 01 00 3A 11 01 1D [21:10:52]Write i2c OK [21:10:52]MH_I2C_Read... [21:10:52]Read from MH i2c: D1 [21:10:52]MH_I2C_Read... [21:10:52]Read from MH i2c: D1 01 00 [21:10:52]MH_I2C_Read... [21:10:52]Read from MH i2c: D1 01 00 3A 11 00 1C [21:10:52]Write to MH i2c: 01 00 00 3B 11 4C [21:10:52]Write i2c OK [21:10:52]MH_I2C_Read... [21:10:53]OFD Sender: No OFD packet to send [21:10:53]*** Cut start [21:10:53]*** Partial cut [21:10:53]*** CUTSNS_PIN = 1 [21:10:53]*** CUTSNS_PIN = 0 [21:10:54]*** Brake cut motor [21:10:54]Read from MH i2c: 01 [21:10:54]MH_I2C_Read... [21:10:54]*** Stop cut motor [21:10:54]*** Cut end [21:10:54]Read from MH i2c: 01 07 00 [21:10:54]MH_I2C_Read... [21:10:54]Read from MH i2c: 01 07 00 3B 11 00 00 00 00 00 FF 0F 61 [21:10:54]process_action close_receipt done [21:10:54]requested_data is exist [21:10:54]produce_requested_data [21:10:54]requested_item fm.sn is exist - process it [21:10:54]wFMCommunicate request_size=4 [21:10:54]MH_SAM_APDU [21:10:54]CAPDU: 80 11 00 00 [21:10:54]Write to MH i2c: E2 08 00 3C 11 80 11 00 00 00 00 00 00 C7 [21:10:54]Write i2c OK [21:10:54]MH_I2C_Read... [21:10:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:10:54]Read from MH i2c: E2 [21:10:54]MH_I2C_Read... [21:10:54]Read from MH i2c: E2 17 00 [21:10:54]MH_I2C_Read... [21:10:54]Read from MH i2c: E2 17 00 3C 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 1E [21:10:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:10:54]wFMCommunicate OK [21:10:54]requested_item fd.num is exist - process it [21:10:54]SAM_PROTO_GetFieldsCounters [21:10:54]wFMCommunicate request_size=4 [21:10:54]MH_SAM_APDU [21:10:54]CAPDU: 80 13 00 00 [21:10:54]Write to MH i2c: E2 08 00 3D 11 80 13 00 00 00 00 00 00 CA [21:10:54]Write i2c OK [21:10:54]MH_I2C_Read... [21:10:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:10:54]Read from MH i2c: E2 [21:10:54]MH_I2C_Read... [21:10:54]Read from MH i2c: E2 62 00 [21:10:54]MH_I2C_Read... [21:10:54]Read from MH i2c: E2 62 00 3D 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 5D 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 0D 02 00 00 5E 04 04 00 0D 02 00 00 57 04 04 00 0E 02 00 00 19 04 04 00 00 00 00 00 90 00 10 [21: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 5D 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 0D 02 00 00 5E 04 04 00 0D 02 00 00 57 04 04 00 0E 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:10:54]wFMCommunicate OK [21:10:54]SAM_PROTO_GetFieldsCounters done [21:10:54]requested_item shift.num is exist - process it [21:10:54]requested_item shift.opened is exist - process it [21:10:54]req_shift_opened [21:10:54]FM_GetShiftState [21:10:54]SAM_PROTO_GetShiftState [21:10:54]wFMCommunicate request_size=4 [21:10:54]MH_SAM_APDU [21:10:54]CAPDU: 80 13 01 00 [21:10:54]Write to MH i2c: E2 08 00 3E 11 80 13 01 00 00 00 00 00 CC [21:10:54]Write i2c OK [21:10:54]MH_I2C_Read... [21:10:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:10:54]Read from MH i2c: E2 [21:10:54]MH_I2C_Read... [21:10:54]Read from MH i2c: E2 0E 00 [21:10:54]MH_I2C_Read... [21:10:54]Read from MH i2c: E2 0E 00 3E 11 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 E6 [21:10:54]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:10:54]wFMCommunicate OK [21:10:54]SAM_PROTO_GetShiftState done [21:10:54]FM_GetShiftState done [21:10:54]req_shift_opened done [21:10:54]requested_item shift.open_date is exist - process it [21:10:54]req_shift_open_date [21:10:54]req_shift_open_date done [21:10:54]produce_requested_data done [21:10:54]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227677,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [21:10:54]process_action_free close_receipt [21:10:54]json_value_free [21:10:54]json_value_free done [21:10:54]process_json_proto returns [21:10:54]Send response to host [21:10:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227677,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [21:10:54]free response buf [21:10:54]execute_script done [21:10:54]execute_script returns [21:10:54]free content buf [21:10:54]Sock 7.Close socket [21:10:54]Sock 7.Thread stoped [21:10:58]OFD Sender: No OFD packet to send [21:11:03]OFD Sender: No OFD packet to send [21:11:08]OFD Sender: No OFD packet to send [21:11:13]OFD Sender: No OFD packet to send [21:11:18]OFD Sender: No OFD packet to send [21:11:23]OFD Sender: No OFD packet to send [21:11:28]OFD Sender: No OFD packet to send [21:11:33]OFD Sender: No OFD packet to send [21:11:38]OFD Sender: No OFD packet to send [21:11:43]OFD Sender: No OFD packet to send [21:11:48]OFD Sender: No OFD packet to send [21:11:53]OFD Sender: No OFD packet to send [21:11:58]OFD Sender: No OFD packet to send [21:12:03]OFD Sender: No OFD packet to send [21:12:08]OFD Sender: No OFD packet to send [21:12:13]OFD Sender: No OFD packet to send [21:12:18]OFD Sender: No OFD packet to send [21:12:23]OFD Sender: No OFD packet to send [21:12:28]OFD Sender: No OFD packet to send [21:12:33]OFD Sender: No OFD packet to send [21:12:38]OFD Sender: No OFD packet to send [21:12:43]OFD Sender: No OFD packet to send [21:12:48]OFD Sender: No OFD packet to send [21:12:53]OFD Sender: No OFD packet to send [21:12:58]OFD Sender: No OFD packet to send [21:13:03]OFD Sender: No OFD packet to send [21:13:08]OFD Sender: No OFD packet to send [21:13:13]OFD Sender: No OFD packet to send [21:13:18]OFD Sender: No OFD packet to send [21:13:23]OFD Sender: No OFD packet to send [21:13:28]OFD Sender: No OFD packet to send [21:13:33]OFD Sender: No OFD packet to send [21:13:38]OFD Sender: No OFD packet to send [21:13:43]OFD Sender: No OFD packet to send [21:13:48]OFD Sender: No OFD packet to send [21:13:53]OFD Sender: No OFD packet to send [21:13:58]OFD Sender: No OFD packet to send [21:14:03]OFD Sender: No OFD packet to send [21:14:08]OFD Sender: No OFD packet to send [21:14:13]OFD Sender: No OFD packet to send [21:14:18]OFD Sender: No OFD packet to send [21:14:23]OFD Sender: No OFD packet to send [21:14:28]OFD Sender: No OFD packet to send [21:14:33]OFD Sender: No OFD packet to send [21:14:38]OFD Sender: No OFD packet to send [21:14:43]OFD Sender: No OFD packet to send [21:14:46]accept exits with 9 [21:14:46]New connection [21:14:46]New thread 3066809700 created [21:14:46]Thread 3066666340 joined [21:14:46]Waiting for new connection... [21:14:46] Sock 9.Parse request [21:14:46]Sock 9.Check first char [21:14:46]Sock 9.First char is OK [21:14:46]request: POST /json_proto HTTP/1.0 [21:14:46]Method: POST [21:14:46]URL: /json_proto [21:14:46]Method is POST - this is cgi request [21:14:46]url: /json_proto [21:14:46]query_string will be loaded in cgi processing [21:14:46]execute_cgi json_proto POST (null) [21:14:46]execute_cgi path=json_proto method=POST [21:14:46]POST find Content-Length [21:14:46]Host: 172.17.44.195:8080 [21:14:46]Content-Length: 680 [21:14:46]Content-Type: application/json [21:14:46] [21:14:46]POST finish read [21:14:46]Found Content-Length = 680 [21:14:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963341", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 29.620, "sum" : 2257.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2257.00, "total" : 2257.00, "payments": [ { "type": 0, "sum" : 2257.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:14:46]execute_script... [21:14:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963341", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 29.620, "sum" : 2257.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2257.00, "total" : 2257.00, "payments": [ { "type": 0, "sum" : 2257.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:14:46]POST & json_proto [21:14:46]process_json_proto [21:14:46]json parsed OK: [21:14:46]protocol is kg_v1.0 [21:14:46]action value=close_receipt [21:14:46]process_action close_receipt [21:14:46]cmd_close_receipt [21:14:46]MH_GetDate [21:14:46]Write to MH i2c: F0 00 00 3F 11 3F [21:14:46]Write i2c OK [21:14:46]MH_I2C_Read... [21:14:46]Read from MH i2c: F0 [21:14:46]MH_I2C_Read... [21:14:46]Read from MH i2c: F0 09 00 [21:14:46]MH_I2C_Read... [21:14:46]Read from MH i2c: F0 09 00 3F 11 00 C7 72 15 67 82 C9 CF 66 7D [21:14:46]GetLastDocTimeStamp 1729458651 [21:14:46]current date 1729458887 [21:14:46]FM_GetShiftState [21:14:46]SAM_PROTO_GetShiftState [21:14:46]wFMCommunicate request_size=4 [21:14:46]MH_SAM_APDU [21:14:46]CAPDU: 80 13 01 00 [21:14:46]Write to MH i2c: E2 08 00 40 11 80 13 01 00 00 00 00 00 CE [21:14:46]Write i2c OK [21:14:46]MH_I2C_Read... [21:14:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:14:46]Read from MH i2c: E2 [21:14:46]MH_I2C_Read... [21:14:46]Read from MH i2c: E2 0E 00 [21:14:46]MH_I2C_Read... [21:14:46]Read from MH i2c: E2 0E 00 40 11 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 E8 [21:14:46]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:14:46]wFMCommunicate OK [21:14:46]SAM_PROTO_GetShiftState done [21:14:46]FM_GetShiftState done [21:14:46]opened in 1729383750 [21:14:46]opened+sec_in_day 1729470150 [21:14:46]quantity*price = 225704 [21:14:46]sum+1 = 225705 [21:14:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 2257.00 Внесено: 2257.00 СДАЧА: 0.00 НСП 1% : 19.97 НДС 12% : 239.69 Наличными: 2257.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 526 20.10.2024 21:14 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227678 ФПД: 130128583567464 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T211447&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227678&fm=130128583567464&tin=02508201610067®Number=0000000000091685&sum=225700 [21:14:47]StoreToDocumentArchive [21:14:47]shift 533 fd 227678 [21:14:47]save to /storage/0533/doc_00227678 [21:14:47]save last doc name /storage/0533/doc_00227678 to /storage/kkm_last_doc_name [21:14:47]save OK [21:14:47]Clear old archive folders... [21:14:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:14:47]tlvbuf is 00C41040 [21:14:47]SAM_PROTO_ClearQueue [21:14:47]wFMCommunicate request_size=4 [21:14:47]MH_SAM_APDU [21:14:47]CAPDU: 80 09 00 00 [21:14:47]Write to MH i2c: E2 08 00 4D 11 80 09 00 00 00 00 00 00 D0 [21:14:47]Write i2c OK [21:14:47]MH_I2C_Read... [21:14:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:14:47]Read from MH i2c: E2 [21:14:47]MH_I2C_Read... [21:14:47]Read from MH i2c: E2 03 00 [21:14:47]MH_I2C_Read... [21:14:47]Read from MH i2c: E2 03 00 4D 11 00 90 00 D2 [21:14:47]RAPDU: 90 00 [21:14:47]wFMCommunicate OK [21:14:47]SAM_PROTO_ClearQueue done [21:14:47]KKMCreateOFDPacket [21:14:47]OFDProtocolAddRootSTLVToBuf [21:14:47]FM_MakeSignedData [21:14:47]FM_MakeSignedData [21:14:47]SAM_PROTO_SignData [21:14:47]wFMCommunicate request_size=4 [21:14:47]MH_SAM_APDU [21:14:47]CAPDU: 80 0D 01 02 [21:14:47]Write to MH i2c: E2 08 00 4E 11 80 0D 01 02 00 00 00 00 D8 [21:14:47]Write i2c OK [21:14:47]MH_I2C_Read... [21:14:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:14:47]Read from MH i2c: E2 [21:14:47]MH_I2C_Read... [21:14:47]Read from MH i2c: E2 03 00 [21:14:47]MH_I2C_Read... [21:14:47]Read from MH i2c: E2 03 00 4E 11 00 90 00 D3 [21:14:47]RAPDU: 90 00 [21:14:47]wFMCommunicate OK [21:14:47]wFMCommunicate request_size=255 [21:14:47]MH_SAM_APDU [21:14: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 B4 73 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A8 71 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 71 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 5D 00 00 00 00 07 04 06 00 A4 71 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 02 00 00 F4 03 04 00 C7 72 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5E 79 03 00 35 04 06 00 76 59 EB FF [21:14:47]Write to MH i2c: E2 02 01 4F 11 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B4 73 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A8 71 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 71 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 5D 00 00 00 00 07 04 06 00 A4 71 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 02 00 00 F4 03 04 00 C7 72 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5E 79 03 00 35 04 06 00 76 59 EB FF 00 00 D2 [21:14:47]Write i2c OK [21:14:47]MH_I2C_Read... [21:14:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:14:47]Read from MH i2c: E2 [21:14:47]MH_I2C_Read... [21:14:47]Read from MH i2c: E2 03 00 [21:14:47]MH_I2C_Read... [21:14:47]Read from MH i2c: E2 03 00 4F 11 00 90 00 D4 [21:14:47]RAPDU: 90 00 [21:14:47]wFMCommunicate OK [21:14:47]wFMCommunicate request_size=7 [21:14:47]MH_SAM_APDU [21:14:47]CAPDU: 80 0D 02 02 02 A8 68 [21:14:47]Write to MH i2c: E2 0A 00 50 11 80 0D 02 02 02 00 A8 68 00 00 EF [21:14:47]Write i2c OK [21:14:47]MH_I2C_Read... [21:14:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:14:47]Read from MH i2c: E2 [21:14:47]MH_I2C_Read... [21:14:47]Read from MH i2c: E2 03 00 [21:14:47]MH_I2C_Read... [21:14:47]Read from MH i2c: E2 03 00 50 11 00 90 00 D5 [21:14:47]RAPDU: 90 00 [21:14:47]wFMCommunicate OK [21:14:47]wFMCommunicate request_size=4 [21:14:47]MH_SAM_APDU [21:14:47]CAPDU: 80 0D 03 02 [21:14:47]Write to MH i2c: E2 08 00 51 11 80 0D 03 02 00 00 00 00 DD [21:14:47]Write i2c OK [21:14:47]MH_I2C_Read... [21:14:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:14:47]Read from MH i2c: E2 [21:14:47]MH_I2C_Read... [21:14:47]Read from MH i2c: E2 0B 00 [21:14:47]MH_I2C_Read... [21:14:47]Read from MH i2c: E2 0B 00 51 11 00 76 9A 45 95 9B BD CA 75 90 00 5F [21:14:47]RAPDU: 76 9A 45 95 9B BD CA 75 90 00 [21:14:47]wFMCommunicate OK [21:14:47]SAM_PROTO_SignData done [21:14:47]FM_MakeSignedData done [21:14:47]CreateOFDProtocolMessage [21:14:47]wFMCommunicate request_size=4 [21:14:47]MH_SAM_APDU [21:14:47]CAPDU: 80 11 00 00 [21:14:47]Write to MH i2c: E2 08 00 52 11 80 11 00 00 00 00 00 00 DD [21:14:47]Write i2c OK [21:14:47]MH_I2C_Read... [21:14:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:14:47]Read from MH i2c: E2 [21:14:47]MH_I2C_Read... [21:14:47]Read from MH i2c: E2 17 00 [21:14:47]MH_I2C_Read... [21:14:47]Read from MH i2c: E2 17 00 52 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 34 [21:14:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:14:47]wFMCommunicate OK [21:14:47]CreateOFDProtocolMessage done [21:14:47]OFDSenderStorePacket 227678 [21:14:47]StoreOFDPacket docnum=227678 [21:14:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 64 8A 04 01 7B 1A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B4 73 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A8 71 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 71 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 5D 00 00 00 00 07 04 06 00 A4 71 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 02 00 00 F4 03 04 00 C7 72 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5E 79 03 00 35 04 06 00 76 59 EB FF A8 68 76 9A 45 95 9B BD CA 75 [21:14:47]CheckFolder [21:14:47]dirname=/storage/ofd_packets [21:14:47]CheckFolder done [21:14:47]ProducePacketName [21:14:47]name=ofd_packets/00227678 [21:14:47]NVStorageSaveData ofd_packets/00227678 [21:14:47]File name is /storage/ofd_packets/00227678 [21:14:47]Write 298 bytes [21:14:47]NVStorageSaveData done [21:14:47]OFDSenderStorePacket done [21:14:47]KKMCreateOFDPacket done [21:14:47]NVStorageSaveData kkm_last_timestamp [21:14:47]File name is /storage/kkm_last_timestamp [21:14:47]Write 4 bytes [21:14:47]NVStorageSaveData done [21:14:47]ExternCall_PrintAddStr [21:14:47]wPrintStart [21:14:47]Write to MH i2c: 01 00 00 53 11 64 [21:14:47]Write i2c OK [21:14:47]MH_I2C_Read... [21:14:47]Read from MH i2c: 01 [21:14:47]MH_I2C_Read... [21:14:47]Read from MH i2c: 01 07 00 [21:14:47]MH_I2C_Read... [21:14:47]Read from MH i2c: 01 07 00 53 11 00 00 00 00 00 FF 0F 79 [21:14:47]RasterBufferAndPrint [21:14:47]line Счет N : (1)1963341 [21:14:47]line ИНН: 02508201610067 [21:14:47]line Контрольно-Кассовый Чек [21:14:47]line ПРОДАЖА [21:14:47]line ТРК (МРК, ГНК) : 21 [21:14:47]line Товар: 2710194210 [21:14:47]line ДТ-К-5 [21:14:47]line 29.620 * 76.20 [21:14:47]line = 2257.04 [21:14:47]line НДС 12% НСП 1% [21:14:47]line > о реализуемом товаре [21:14:47]line ОКРУГЛЕНИЕ: -0.04 [21:14:47]line ИТОГО: 2257.00 [21:14:47]line Внесено: 2257.00 [21:14:47]line СДАЧА: 0.00 [21:14:47]line НСП 1% : 19.97 [21:14:47]line НДС 12% : 239.69 [21:14:47]line Наличными: 2257.00 [21:14:47]line Безнал.: 0.00 [21:14:47]line Место: АЗС № 133 "Партнер Нефть" [21:14:47]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [21:14:47]line СНО: Общий режим [21:14:47]line Чек 526 20.10.2024 21:14 [21:14:47]line Смена: 533 ФФД: 1.0 [21:14:47]line ЗНМ: 0300000091 [21:14:47]line РНМ: 0000000000091685 [21:14:47]line Версия ККМ: 001 [21:14:47]line ФМ: 0000000000871839 [21:14:47]line ФД: 227678 [21:14:47]line ФПД: 130128583567464 [21:14:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T211447&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227678&fm=130128583567464&tin=02508201610067®Number=0000000000091685&sum=225700 [21:14:48]OFD Sender: Processing packet 227678 [packets to send 38, broken 37] [21:14:48]ProducePacketName [21:14:48]name=ofd_packets/00227678 [21:14:48]OFD Sender: To server: pG, [21:14:48]CommunicateWithHost lk.salyk.kg:30040 [21:14:48]ConnectInit lk.salyk.kg [21:14:48]written 0, free lines is 4095 [21:14:48]Connected sock=10 [21:14: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 33 39 0C 01 00 00 64 8A 04 01 7B 1A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B4 73 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A8 71 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 71 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 5D 00 00 00 00 07 04 06 00 A4 71 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 02 00 00 F4 03 04 00 C7 72 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5E 79 03 00 35 04 06 00 76 59 EB FF A8 68 76 9A 45 95 9B BD CA 75 [21:14: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 33 39 4F 00 00 00 AD E3 47 00 33 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5E 79 03 00 F4 03 04 00 C5 1D 15 67 B6 04 01 00 00 DF 2C B5 EA C0 2D F1 E4 [21:14:48]CommunicateWithHost err = 0 [21:14:48]CheckOFDResponse [21:14:48]1017 (14) - 77093643461234 [21:14:48]1041 (16) - 0000000000871839 [21:14:48]1040 (4) - 227678 [21:14:48]1012 (4) - 20.10.2024 15:12 [21:14:48]1206 (1) - 0 [21:14:48]OFD Sender: Remove packet 227678 [21:14:48]ProducePacketName [21:14:48]name=ofd_packets/00227678 [21:14:48]NVStorageDeleteData [21:14:48]Write to MH i2c: 01 00 00 7D 11 8E [21:14:48]Write i2c OK [21:14:48]MH_I2C_Read... [21:14:48]Read from MH i2c: 01 [21:14:48]MH_I2C_Read... [21:14:48]Read from MH i2c: 01 07 00 [21:14:48]MH_I2C_Read... [21:14:48]Read from MH i2c: 01 07 00 7D 11 00 00 00 00 00 A5 0C 46 [21:14:48]RasterBufferAndPrint [21:14:48]line [21:14:48]line [21:14:48]line [21:14:48]line [21:14:48]line [21:14:48]written 0, free lines is 3241 [21:14:48]MH_Cut [21:14:48]Write to MH i2c: D1 01 00 84 11 01 67 [21:14:48]Write i2c OK [21:14:48]MH_I2C_Read... [21:14:48]Read from MH i2c: D1 [21:14:48]MH_I2C_Read... [21:14:48]Read from MH i2c: D1 01 00 [21:14:48]MH_I2C_Read... [21:14:48]Read from MH i2c: D1 01 00 84 11 00 66 [21:14:48]Write to MH i2c: 01 00 00 85 11 96 [21:14:48]Write i2c OK [21:14:48]MH_I2C_Read... [21:14:48]OFD Sender: No OFD packet to send [21:14:49]*** Cut start [21:14:49]*** Partial cut [21:14:49]*** CUTSNS_PIN = 1 [21:14:49]*** CUTSNS_PIN = 0 [21:14:49]*** Brake cut motor [21:14:50]Read from MH i2c: 01 [21:14:50]MH_I2C_Read... [21:14:50]*** Stop cut motor [21:14:50]*** Cut end [21:14:50]Read from MH i2c: 01 07 00 [21:14:50]MH_I2C_Read... [21:14:50]Read from MH i2c: 01 07 00 85 11 00 00 00 00 00 FF 0F AB [21:14:50]process_action close_receipt done [21:14:50]requested_data is exist [21:14:50]produce_requested_data [21:14:50]requested_item fm.sn is exist - process it [21:14:50]wFMCommunicate request_size=4 [21:14:50]MH_SAM_APDU [21:14:50]CAPDU: 80 11 00 00 [21:14:50]Write to MH i2c: E2 08 00 86 11 80 11 00 00 00 00 00 00 11 [21:14:50]Write i2c OK [21:14:50]MH_I2C_Read... [21:14:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:14:50]Read from MH i2c: E2 [21:14:50]MH_I2C_Read... [21:14:50]Read from MH i2c: E2 17 00 [21:14:50]MH_I2C_Read... [21:14:50]Read from MH i2c: E2 17 00 86 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 68 [21:14:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:14:50]wFMCommunicate OK [21:14:50]requested_item fd.num is exist - process it [21:14:50]SAM_PROTO_GetFieldsCounters [21:14:50]wFMCommunicate request_size=4 [21:14:50]MH_SAM_APDU [21:14:50]CAPDU: 80 13 00 00 [21:14:50]Write to MH i2c: E2 08 00 87 11 80 13 00 00 00 00 00 00 14 [21:14:50]Write i2c OK [21:14:50]MH_I2C_Read... [21:14:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:14:50]Read from MH i2c: E2 [21:14:50]MH_I2C_Read... [21:14:50]Read from MH i2c: E2 62 00 [21:14:50]MH_I2C_Read... [21:14:50]Read from MH i2c: E2 62 00 87 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 5E 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 0E 02 00 00 5E 04 04 00 0E 02 00 00 57 04 04 00 0F 02 00 00 19 04 04 00 00 00 00 00 90 00 5E [21:14:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 5E 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 0E 02 00 00 5E 04 04 00 0E 02 00 00 57 04 04 00 0F 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:14:50]wFMCommunicate OK [21:14:50]SAM_PROTO_GetFieldsCounters done [21:14:50]requested_item shift.num is exist - process it [21:14:50]requested_item shift.opened is exist - process it [21:14:50]req_shift_opened [21:14:50]FM_GetShiftState [21:14:50]SAM_PROTO_GetShiftState [21:14:50]wFMCommunicate request_size=4 [21:14:50]MH_SAM_APDU [21:14:50]CAPDU: 80 13 01 00 [21:14:50]Write to MH i2c: E2 08 00 88 11 80 13 01 00 00 00 00 00 16 [21:14:50]Write i2c OK [21:14:50]MH_I2C_Read... [21:14:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:14:50]Read from MH i2c: E2 [21:14:50]MH_I2C_Read... [21:14:50]Read from MH i2c: E2 0E 00 [21:14:50]MH_I2C_Read... [21:14:50]Read from MH i2c: E2 0E 00 88 11 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 30 [21:14:50]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:14:50]wFMCommunicate OK [21:14:50]SAM_PROTO_GetShiftState done [21:14:50]FM_GetShiftState done [21:14:50]req_shift_opened done [21:14:50]requested_item shift.open_date is exist - process it [21:14:50]req_shift_open_date [21:14:50]req_shift_open_date done [21:14:50]produce_requested_data done [21:14:50]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227678,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [21:14:50]process_action_free close_receipt [21:14:50]json_value_free [21:14:50]json_value_free done [21:14:50]process_json_proto returns [21:14:50]Send response to host [21:14:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227678,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [21:14:50]free response buf [21:14:50]execute_script done [21:14:50]execute_script returns [21:14:50]free content buf [21:14:50]Sock 9.Close socket [21:14:50]Sock 9.Thread stoped [21:14:53]OFD Sender: No OFD packet to send [21:14:56]accept exits with 7 [21:14:56]New connection [21:14:56]New thread 3066666340 created [21:14:56]Thread 3066809700 joined [21:14:56]Waiting for new connection... [21:14:56] Sock 7.Parse request [21:14:56]Sock 7.Check first char [21:14:56]Sock 7.First char is OK [21:14:56]request: POST /json_proto HTTP/1.0 [21:14:56]Method: POST [21:14:56]URL: /json_proto [21:14:56]Method is POST - this is cgi request [21:14:56]url: /json_proto [21:14:56]query_string will be loaded in cgi processing [21:14:56]execute_cgi json_proto POST (null) [21:14:56]execute_cgi path=json_proto method=POST [21:14:56]POST find Content-Length [21:14:56]Host: 172.17.44.195:8080 [21:14:56]Content-Length: 683 [21:14:56]Content-Type: application/json [21:14:56] [21:14:56]POST finish read [21:14:56]Found Content-Length = 683 [21:14:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963342", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 53.910, "sum" : 4000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:14:56]execute_script... [21:14:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963342", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 53.910, "sum" : 4000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:14:56]POST & json_proto [21:14:56]process_json_proto [21:14:56]json parsed OK: [21:14:56]protocol is kg_v1.0 [21:14:56]action value=close_receipt [21:14:56]process_action close_receipt [21:14:56]cmd_close_receipt [21:14:56]MH_GetDate [21:14:56]Write to MH i2c: F0 00 00 89 11 89 [21:14:56]Write i2c OK [21:14:56]MH_I2C_Read... [21:14:56]Read from MH i2c: F0 [21:14:56]MH_I2C_Read... [21:14:56]Read from MH i2c: F0 09 00 [21:14:56]MH_I2C_Read... [21:14:56]Read from MH i2c: F0 09 00 89 11 00 D1 72 15 67 82 C9 CF 66 D1 [21:14:56]GetLastDocTimeStamp 1729458887 [21:14:56]current date 1729458897 [21:14:56]FM_GetShiftState [21:14:56]SAM_PROTO_GetShiftState [21:14:56]wFMCommunicate request_size=4 [21:14:56]MH_SAM_APDU [21:14:56]CAPDU: 80 13 01 00 [21:14:56]Write to MH i2c: E2 08 00 8A 11 80 13 01 00 00 00 00 00 18 [21:14:56]Write i2c OK [21:14:56]MH_I2C_Read... [21:14:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:14:56]Read from MH i2c: E2 [21:14:56]MH_I2C_Read... [21:14:56]Read from MH i2c: E2 0E 00 [21:14:56]MH_I2C_Read... [21:14:56]Read from MH i2c: E2 0E 00 8A 11 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 32 [21:14:56]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:14:56]wFMCommunicate OK [21:14:56]SAM_PROTO_GetShiftState done [21:14:56]FM_GetShiftState done [21:14:56]opened in 1729383750 [21:14:56]opened+sec_in_day 1729470150 [21:14:56]quantity*price = 400012 [21:14:56]sum+1 = 400013 [21:14:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.79 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 527 20.10.2024 21:14 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227679 ФПД: 88386332362652 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T211457&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227679&fm=88386332362652&tin=02508201610067®Number=0000000000091685&sum=400000 [21:14:57]StoreToDocumentArchive [21:14:57]shift 533 fd 227679 [21:14:57]save to /storage/0533/doc_00227679 [21:14:57]save last doc name /storage/0533/doc_00227679 to /storage/kkm_last_doc_name [21:14:57]save OK [21:14:57]Clear old archive folders... [21:14:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:14:57]tlvbuf is 00C542B0 [21:14:57]SAM_PROTO_ClearQueue [21:14:57]wFMCommunicate request_size=4 [21:14:57]MH_SAM_APDU [21:14:57]CAPDU: 80 09 00 00 [21:14:57]Write to MH i2c: E2 08 00 97 11 80 09 00 00 00 00 00 00 1A [21:14:57]Write i2c OK [21:14:57]MH_I2C_Read... [21:14:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:14:57]Read from MH i2c: E2 [21:14:57]MH_I2C_Read... [21:14:57]Read from MH i2c: E2 03 00 [21:14:57]MH_I2C_Read... [21:14:57]Read from MH i2c: E2 03 00 97 11 00 90 00 1C [21:14:57]RAPDU: 90 00 [21:14:57]wFMCommunicate OK [21:14:57]SAM_PROTO_ClearQueue done [21:14:57]KKMCreateOFDPacket [21:14:57]OFDProtocolAddRootSTLVToBuf [21:14:57]FM_MakeSignedData [21:14:57]FM_MakeSignedData [21:14:57]SAM_PROTO_SignData [21:14:57]wFMCommunicate request_size=4 [21:14:57]MH_SAM_APDU [21:14:57]CAPDU: 80 0D 01 02 [21:14:57]Write to MH i2c: E2 08 00 98 11 80 0D 01 02 00 00 00 00 22 [21:14:57]Write i2c OK [21:14:57]MH_I2C_Read... [21:14:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:14:57]Read from MH i2c: E2 [21:14:57]MH_I2C_Read... [21:14:57]Read from MH i2c: E2 03 00 [21:14:57]MH_I2C_Read... [21:14:57]Read from MH i2c: E2 03 00 98 11 00 90 00 1D [21:14:57]RAPDU: 90 00 [21:14:57]wFMCommunicate OK [21:14:57]wFMCommunicate request_size=255 [21:14:57]MH_SAM_APDU [21:14:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 96 D2 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8C 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 02 00 00 F4 03 04 00 D1 72 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5F 79 03 00 35 04 06 00 50 [21:14:57]Write to MH i2c: E2 02 01 99 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 96 D2 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8C 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 02 00 00 F4 03 04 00 D1 72 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5F 79 03 00 35 04 06 00 50 00 00 2B [21:14:57]Write i2c OK [21:14:57]MH_I2C_Read... [21:14:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:14:57]Read from MH i2c: E2 [21:14:57]MH_I2C_Read... [21:14:57]Read from MH i2c: E2 03 00 [21:14:57]MH_I2C_Read... [21:14:57]Read from MH i2c: E2 03 00 99 11 00 90 00 1E [21:14:57]RAPDU: 90 00 [21:14:57]wFMCommunicate OK [21:14:57]wFMCommunicate request_size=10 [21:14:57]MH_SAM_APDU [21:14:57]CAPDU: 80 0D 02 02 05 63 0B F1 87 9C [21:14:57]Write to MH i2c: E2 0D 00 9A 11 80 0D 02 02 05 00 63 0B F1 87 9C 00 00 B1 [21:14:57]Write i2c OK [21:14:57]MH_I2C_Read... [21:14:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:14:57]Read from MH i2c: E2 [21:14:57]MH_I2C_Read... [21:14:57]Read from MH i2c: E2 03 00 [21:14:57]MH_I2C_Read... [21:14:57]Read from MH i2c: E2 03 00 9A 11 00 90 00 1F [21:14:57]RAPDU: 90 00 [21:14:57]wFMCommunicate OK [21:14:57]wFMCommunicate request_size=4 [21:14:57]MH_SAM_APDU [21:14:57]CAPDU: 80 0D 03 02 [21:14:57]Write to MH i2c: E2 08 00 9B 11 80 0D 03 02 00 00 00 00 27 [21:14:57]Write i2c OK [21:14:57]MH_I2C_Read... [21:14:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:14:57]Read from MH i2c: E2 [21:14:57]MH_I2C_Read... [21:14:57]Read from MH i2c: E2 0B 00 [21:14:57]MH_I2C_Read... [21:14:57]Read from MH i2c: E2 0B 00 9B 11 00 3D ED 2F D5 74 71 9E 27 90 00 00 [21:14:57]RAPDU: 3D ED 2F D5 74 71 9E 27 90 00 [21:14:57]wFMCommunicate OK [21:14:57]SAM_PROTO_SignData done [21:14:57]FM_MakeSignedData done [21:14:57]CreateOFDProtocolMessage [21:14:57]wFMCommunicate request_size=4 [21:14:57]MH_SAM_APDU [21:14:57]CAPDU: 80 11 00 00 [21:14:57]Write to MH i2c: E2 08 00 9C 11 80 11 00 00 00 00 00 00 27 [21:14:57]Write i2c OK [21:14:57]MH_I2C_Read... [21:14:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:14:57]Read from MH i2c: E2 [21:14:57]MH_I2C_Read... [21:14:57]Read from MH i2c: E2 17 00 [21:14:57]MH_I2C_Read... [21:14:57]Read from MH i2c: E2 17 00 9C 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 7E [21:14:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:14:57]wFMCommunicate OK [21:14:57]CreateOFDProtocolMessage done [21:14:57]OFDSenderStorePacket 227679 [21:14:57]StoreOFDPacket docnum=227679 [21:14:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 0A C3 07 01 9A 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 96 D2 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8C 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 02 00 00 F4 03 04 00 D1 72 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5F 79 03 00 35 04 06 00 50 63 0B F1 87 9C 3D ED 2F D5 74 71 9E 27 [21:14:57]CheckFolder [21:14:57]dirname=/storage/ofd_packets [21:14:57]CheckFolder done [21:14:57]ProducePacketName [21:14:57]name=ofd_packets/00227679 [21:14:57]NVStorageSaveData ofd_packets/00227679 [21:14:57]File name is /storage/ofd_packets/00227679 [21:14:57]Write 301 bytes [21:14:57]NVStorageSaveData done [21:14:57]OFDSenderStorePacket done [21:14:57]KKMCreateOFDPacket done [21:14:57]NVStorageSaveData kkm_last_timestamp [21:14:57]File name is /storage/kkm_last_timestamp [21:14:57]Write 4 bytes [21:14:57]NVStorageSaveData done [21:14:57]ExternCall_PrintAddStr [21:14:57]wPrintStart [21:14:57]Write to MH i2c: 01 00 00 9D 11 AE [21:14:57]Write i2c OK [21:14:57]MH_I2C_Read... [21:14:57]Read from MH i2c: 01 [21:14:57]MH_I2C_Read... [21:14:57]Read from MH i2c: 01 07 00 [21:14:57]MH_I2C_Read... [21:14:57]Read from MH i2c: 01 07 00 9D 11 00 00 00 00 00 FF 0F C3 [21:14:57]RasterBufferAndPrint [21:14:57]line Счет N : (1)1963342 [21:14:57]line ИНН: 02508201610067 [21:14:57]line Контрольно-Кассовый Чек [21:14:57]line ПРОДАЖА [21:14:57]line ТРК (МРК, ГНК) : 34 [21:14:57]line Товар: 2710124500 [21:14:57]line Аи-95-К-5 [21:14:57]line 53.910 * 74.20 [21:14:57]line = 4000.12 [21:14:57]line НДС 12% НСП 1% [21:14:57]line > о реализуемом товаре [21:14:57]line ОКРУГЛЕНИЕ: -0.12 [21:14:57]line ИТОГО: 4000.00 [21:14:57]line Внесено: 4000.00 [21:14:57]line СДАЧА: 0.00 [21:14:57]line НСП 1% : 35.40 [21:14:57]line НДС 12% : 424.79 [21:14:57]line Наличными: 4000.00 [21:14:57]line Безнал.: 0.00 [21:14:57]line Место: АЗС № 133 "Партнер Нефть" [21:14:57]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [21:14:57]line СНО: Общий режим [21:14:57]line Чек 527 20.10.2024 21:14 [21:14:57]line Смена: 533 ФФД: 1.0 [21:14:57]line ЗНМ: 0300000091 [21:14:57]line РНМ: 0000000000091685 [21:14:57]line Версия ККМ: 001 [21:14:57]line ФМ: 0000000000871839 [21:14:57]line ФД: 227679 [21:14:57]line ФПД: 88386332362652 [21:14:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T211457&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227679&fm=88386332362652&tin=02508201610067®Number=0000000000091685&sum=400000 [21:14:57]written 0, free lines is 4095 [21:14:58]OFD Sender: Processing packet 227679 [packets to send 38, broken 37] [21:14:58]ProducePacketName [21:14:58]name=ofd_packets/00227679 [21:14:58]OFD Sender: To server: pG, [21:14:58]CommunicateWithHost lk.salyk.kg:30040 [21:14:58]ConnectInit lk.salyk.kg [21:14:58]Connected sock=10 [21:14:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 0A C3 07 01 9A 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 96 D2 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8C 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 02 00 00 F4 03 04 00 D1 72 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 5F 79 03 00 35 04 06 00 50 63 0B F1 87 9C 3D ED 2F D5 74 71 9E 27 [21:14: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 33 39 4F 00 00 00 1A E3 47 00 4C 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 33 39 10 04 04 00 5F 79 03 00 F4 03 04 00 CF 1D 15 67 B6 04 01 00 00 91 82 BE E3 9E 81 25 13 [21:14:58]CommunicateWithHost err = 0 [21:14:58]CheckOFDResponse [21:14:58]1017 (14) - 77093643461234 [21:14:58]1041 (16) - 0000000000871839 [21:14:58]1040 (4) - 227679 [21:14:58]1012 (4) - 20.10.2024 15:12 [21:14:58]1206 (1) - 0 [21:14:58]OFD Sender: Remove packet 227679 [21:14:58]ProducePacketName [21:14:58]name=ofd_packets/00227679 [21:14:58]NVStorageDeleteData [21:14:58]Write to MH i2c: 01 00 00 C7 11 D8 [21:14:58]Write i2c OK [21:14:58]MH_I2C_Read... [21:14:58]Read from MH i2c: 01 [21:14:58]MH_I2C_Read... [21:14:58]Read from MH i2c: 01 07 00 [21:14:58]MH_I2C_Read... [21:14:58]Read from MH i2c: 01 07 00 C7 11 00 00 00 00 00 B0 0C 9B [21:14:58]RasterBufferAndPrint [21:14:58]line [21:14:58]line [21:14:58]line [21:14:58]line [21:14:58]line [21:14:58]written 0, free lines is 3253 [21:14:58]MH_Cut [21:14:58]Write to MH i2c: D1 01 00 CE 11 01 B1 [21:14:58]Write i2c OK [21:14:58]MH_I2C_Read... [21:14:58]Read from MH i2c: D1 [21:14:58]MH_I2C_Read... [21:14:58]Read from MH i2c: D1 01 00 [21:14:58]MH_I2C_Read... [21:14:58]Read from MH i2c: D1 01 00 CE 11 00 B0 [21:14:58]Write to MH i2c: 01 00 00 CF 11 E0 [21:14:58]Write i2c OK [21:14:58]MH_I2C_Read... [21:14:58]OFD Sender: No OFD packet to send [21:14:59]*** Cut start [21:14:59]*** Partial cut [21:14:59]*** CUTSNS_PIN = 1 [21:14:59]*** CUTSNS_PIN = 0 [21:14:59]*** Brake cut motor [21:14:59]Read from MH i2c: 01 [21:14:59]MH_I2C_Read... [21:14:59]*** Stop cut motor [21:14:59]*** Cut end [21:14:59]Read from MH i2c: 01 07 00 [21:14:59]MH_I2C_Read... [21:14:59]Read from MH i2c: 01 07 00 CF 11 00 00 00 00 00 FF 0F F5 [21:14:59]process_action close_receipt done [21:14:59]requested_data is exist [21:14:59]produce_requested_data [21:14:59]requested_item fm.sn is exist - process it [21:14:59]wFMCommunicate request_size=4 [21:14:59]MH_SAM_APDU [21:14:59]CAPDU: 80 11 00 00 [21:14:59]Write to MH i2c: E2 08 00 D0 11 80 11 00 00 00 00 00 00 5B [21:15:00]Write i2c OK [21:15:00]MH_I2C_Read... [21:15:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:15:00]Read from MH i2c: E2 [21:15:00]MH_I2C_Read... [21:15:00]Read from MH i2c: E2 17 00 [21:15:00]MH_I2C_Read... [21:15:00]Read from MH i2c: E2 17 00 D0 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B2 [21:15:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:15:00]wFMCommunicate OK [21:15:00]requested_item fd.num is exist - process it [21:15:00]SAM_PROTO_GetFieldsCounters [21:15:00]wFMCommunicate request_size=4 [21:15:00]MH_SAM_APDU [21:15:00]CAPDU: 80 13 00 00 [21:15:00]Write to MH i2c: E2 08 00 D1 11 80 13 00 00 00 00 00 00 5E [21:15:00]Write i2c OK [21:15:00]MH_I2C_Read... [21:15:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:15:00]Read from MH i2c: E2 [21:15:00]MH_I2C_Read... [21:15:00]Read from MH i2c: E2 62 00 [21:15:00]MH_I2C_Read... [21:15:00]Read from MH i2c: E2 62 00 D1 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 5F 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 0F 02 00 00 5E 04 04 00 0F 02 00 00 57 04 04 00 10 02 00 00 19 04 04 00 00 00 00 00 90 00 AC [21:15:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 5F 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 0F 02 00 00 5E 04 04 00 0F 02 00 00 57 04 04 00 10 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:15:00]wFMCommunicate OK [21:15:00]SAM_PROTO_GetFieldsCounters done [21:15:00]requested_item shift.num is exist - process it [21:15:00]requested_item shift.opened is exist - process it [21:15:00]req_shift_opened [21:15:00]FM_GetShiftState [21:15:00]SAM_PROTO_GetShiftState [21:15:00]wFMCommunicate request_size=4 [21:15:00]MH_SAM_APDU [21:15:00]CAPDU: 80 13 01 00 [21:15:00]Write to MH i2c: E2 08 00 D2 11 80 13 01 00 00 00 00 00 60 [21:15:00]Write i2c OK [21:15:00]MH_I2C_Read... [21:15:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:15:00]Read from MH i2c: E2 [21:15:00]MH_I2C_Read... [21:15:00]Read from MH i2c: E2 0E 00 [21:15:00]MH_I2C_Read... [21:15:00]Read from MH i2c: E2 0E 00 D2 11 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 7A [21:15:00]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:15:00]wFMCommunicate OK [21:15:00]SAM_PROTO_GetShiftState done [21:15:00]FM_GetShiftState done [21:15:00]req_shift_opened done [21:15:00]requested_item shift.open_date is exist - process it [21:15:00]req_shift_open_date [21:15:00]req_shift_open_date done [21:15:00]produce_requested_data done [21:15:00]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227679,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [21:15:00]process_action_free close_receipt [21:15:00]json_value_free [21:15:00]json_value_free done [21:15:00]process_json_proto returns [21:15:00]Send response to host [21:15:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227679,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [21:15:00]free response buf [21:15:00]execute_script done [21:15:00]execute_script returns [21:15:00]free content buf [21:15:00]Sock 7.Close socket [21:15:00]Sock 7.Thread stoped [21:15:00]accept exits with 9 [21:15:00]New connection [21:15:00]New thread 3066809700 created [21:15:00]Thread 3066666340 joined [21:15:00]Waiting for new connection... [21:15:00] Sock 9.Parse request [21:15:00]Sock 9.Check first char [21:15:00]Sock 9.First char is OK [21:15:00]request: POST /json_proto HTTP/1.0 [21:15:00]Method: POST [21:15:00]URL: /json_proto [21:15:00]Method is POST - this is cgi request [21:15:00]url: /json_proto [21:15:00]query_string will be loaded in cgi processing [21:15:00]execute_cgi json_proto POST (null) [21:15:00]execute_cgi path=json_proto method=POST [21:15:00]POST find Content-Length [21:15:00]Host: 172.17.44.195:8080 [21:15:00]Content-Length: 678 [21:15:00]Content-Type: application/json [21:15:00] [21:15:00]POST finish read [21:15:00]Found Content-Length = 678 [21:15:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963344", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:15:00]execute_script... [21:15:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963344", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:15:00]POST & json_proto [21:15:00]process_json_proto [21:15:00]json parsed OK: [21:15:00]protocol is kg_v1.0 [21:15:00]action value=close_receipt [21:15:00]process_action close_receipt [21:15:00]cmd_close_receipt [21:15:00]MH_GetDate [21:15:00]Write to MH i2c: F0 00 00 D3 11 D3 [21:15:00]Write i2c OK [21:15:00]MH_I2C_Read... [21:15:00]Read from MH i2c: F0 [21:15:00]MH_I2C_Read... [21:15:00]Read from MH i2c: F0 09 00 [21:15:00]MH_I2C_Read... [21:15:00]Read from MH i2c: F0 09 00 D3 11 00 D5 72 15 67 82 C9 CF 66 1F [21:15:00]GetLastDocTimeStamp 1729458897 [21:15:00]current date 1729458901 [21:15:00]FM_GetShiftState [21:15:00]SAM_PROTO_GetShiftState [21:15:00]wFMCommunicate request_size=4 [21:15:00]MH_SAM_APDU [21:15:00]CAPDU: 80 13 01 00 [21:15:00]Write to MH i2c: E2 08 00 D4 11 80 13 01 00 00 00 00 00 62 [21:15:00]Write i2c OK [21:15:00]MH_I2C_Read... [21:15:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:15:00]Read from MH i2c: E2 [21:15:00]MH_I2C_Read... [21:15:00]Read from MH i2c: E2 0E 00 [21:15:00]MH_I2C_Read... [21:15:00]Read from MH i2c: E2 0E 00 D4 11 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 7C [21:15:00]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:15:00]wFMCommunicate OK [21:15:00]SAM_PROTO_GetShiftState done [21:15:00]FM_GetShiftState done [21:15:00]opened in 1729383750 [21:15:00]opened+sec_in_day 1729470150 [21:15:00]quantity*price = 40006 [21:15:00]sum+1 = 40007 [21:15:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 528 20.10.2024 21:15 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227680 ФПД: 209179026719959 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T211501&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227680&fm=209179026719959&tin=02508201610067®Number=0000000000091685&sum=40000 [21:15:01]StoreToDocumentArchive [21:15:01]shift 533 fd 227680 [21:15:01]save to /storage/0533/doc_00227680 [21:15:01]save last doc name /storage/0533/doc_00227680 to /storage/kkm_last_doc_name [21:15:01]save OK [21:15:01]Clear old archive folders... [21:15:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:15:01]tlvbuf is 00C72D00 [21:15:01]SAM_PROTO_ClearQueue [21:15:01]wFMCommunicate request_size=4 [21:15:01]MH_SAM_APDU [21:15:01]CAPDU: 80 09 00 00 [21:15:01]Write to MH i2c: E2 08 00 E1 11 80 09 00 00 00 00 00 00 64 [21:15:01]Write i2c OK [21:15:01]MH_I2C_Read... [21:15:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:15:01]Read from MH i2c: E2 [21:15:01]MH_I2C_Read... [21:15:01]Read from MH i2c: E2 03 00 [21:15:01]MH_I2C_Read... [21:15:01]Read from MH i2c: E2 03 00 E1 11 00 90 00 66 [21:15:01]RAPDU: 90 00 [21:15:01]wFMCommunicate OK [21:15:01]SAM_PROTO_ClearQueue done [21:15:01]KKMCreateOFDPacket [21:15:01]OFDProtocolAddRootSTLVToBuf [21:15:01]FM_MakeSignedData [21:15:01]FM_MakeSignedData [21:15:01]SAM_PROTO_SignData [21:15:01]wFMCommunicate request_size=4 [21:15:01]MH_SAM_APDU [21:15:01]CAPDU: 80 0D 01 02 [21:15:01]Write to MH i2c: E2 08 00 E2 11 80 0D 01 02 00 00 00 00 6C [21:15:01]Write i2c OK [21:15:01]MH_I2C_Read... [21:15:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:15:02]Read from MH i2c: E2 [21:15:02]MH_I2C_Read... [21:15:02]Read from MH i2c: E2 03 00 [21:15:02]MH_I2C_Read... [21:15:02]Read from MH i2c: E2 03 00 E2 11 00 90 00 67 [21:15:02]RAPDU: 90 00 [21:15:02]wFMCommunicate OK [21:15:02]wFMCommunicate request_size=255 [21:15:02]MH_SAM_APDU [21:15:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 02 00 00 F4 03 04 00 D5 72 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 60 79 03 00 35 04 06 00 BE [21:15:02]Write to MH i2c: E2 02 01 E3 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 02 00 00 F4 03 04 00 D5 72 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 60 79 03 00 35 04 06 00 BE 00 00 58 [21:15:02]Write i2c OK [21:15:02]MH_I2C_Read... [21:15:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:15:02]Read from MH i2c: E2 [21:15:02]MH_I2C_Read... [21:15:02]Read from MH i2c: E2 03 00 [21:15:02]MH_I2C_Read... [21:15:02]Read from MH i2c: E2 03 00 E3 11 00 90 00 68 [21:15:02]RAPDU: 90 00 [21:15:02]wFMCommunicate OK [21:15:02]wFMCommunicate request_size=10 [21:15:02]MH_SAM_APDU [21:15:02]CAPDU: 80 0D 02 02 05 3F 49 95 04 D7 [21:15:02]Write to MH i2c: E2 0D 00 E4 11 80 0D 02 02 05 00 3F 49 95 04 D7 00 00 71 [21:15:02]Write i2c OK [21:15:02]MH_I2C_Read... [21:15:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:15:02]Read from MH i2c: E2 [21:15:02]MH_I2C_Read... [21:15:02]Read from MH i2c: E2 03 00 [21:15:02]MH_I2C_Read... [21:15:02]Read from MH i2c: E2 03 00 E4 11 00 90 00 69 [21:15:02]RAPDU: 90 00 [21:15:02]wFMCommunicate OK [21:15:02]wFMCommunicate request_size=4 [21:15:02]MH_SAM_APDU [21:15:02]CAPDU: 80 0D 03 02 [21:15:02]Write to MH i2c: E2 08 00 E5 11 80 0D 03 02 00 00 00 00 71 [21:15:02]Write i2c OK [21:15:02]MH_I2C_Read... [21:15:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:15:02]Read from MH i2c: E2 [21:15:02]MH_I2C_Read... [21:15:02]Read from MH i2c: E2 0B 00 [21:15:02]MH_I2C_Read... [21:15:02]Read from MH i2c: E2 0B 00 E5 11 00 BA 75 CB FE 4A 9A 04 B6 90 00 08 [21:15:02]RAPDU: BA 75 CB FE 4A 9A 04 B6 90 00 [21:15:02]wFMCommunicate OK [21:15:02]SAM_PROTO_SignData done [21:15:02]FM_MakeSignedData done [21:15:02]CreateOFDProtocolMessage [21:15:02]wFMCommunicate request_size=4 [21:15:02]MH_SAM_APDU [21:15:02]CAPDU: 80 11 00 00 [21:15:02]Write to MH i2c: E2 08 00 E6 11 80 11 00 00 00 00 00 00 71 [21:15:02]Write i2c OK [21:15:02]MH_I2C_Read... [21:15:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:15:02]Read from MH i2c: E2 [21:15:02]MH_I2C_Read... [21:15:02]Read from MH i2c: E2 17 00 [21:15:02]MH_I2C_Read... [21:15:02]Read from MH i2c: E2 17 00 E6 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C8 [21:15:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:15:02]wFMCommunicate OK [21:15:02]CreateOFDProtocolMessage done [21:15:02]OFDSenderStorePacket 227680 [21:15:02]StoreOFDPacket docnum=227680 [21:15:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 57 8A 07 01 24 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 02 00 00 F4 03 04 00 D5 72 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 60 79 03 00 35 04 06 00 BE 3F 49 95 04 D7 BA 75 CB FE 4A 9A 04 B6 [21:15:02]CheckFolder [21:15:02]dirname=/storage/ofd_packets [21:15:02]CheckFolder done [21:15:02]ProducePacketName [21:15:02]name=ofd_packets/00227680 [21:15:02]NVStorageSaveData ofd_packets/00227680 [21:15:02]File name is /storage/ofd_packets/00227680 [21:15:02]Write 301 bytes [21:15:02]NVStorageSaveData done [21:15:02]OFDSenderStorePacket done [21:15:02]KKMCreateOFDPacket done [21:15:02]NVStorageSaveData kkm_last_timestamp [21:15:02]File name is /storage/kkm_last_timestamp [21:15:02]Write 4 bytes [21:15:02]NVStorageSaveData done [21:15:02]ExternCall_PrintAddStr [21:15:02]wPrintStart [21:15:02]Write to MH i2c: 01 00 00 E7 11 F8 [21:15:02]Write i2c OK [21:15:02]MH_I2C_Read... [21:15:02]Read from MH i2c: 01 [21:15:02]MH_I2C_Read... [21:15:02]Read from MH i2c: 01 07 00 [21:15:02]MH_I2C_Read... [21:15:02]Read from MH i2c: 01 07 00 E7 11 00 00 00 00 00 FF 0F 0D [21:15:02]RasterBufferAndPrint [21:15:02]line Счет N : (1)1963344 [21:15:02]line ИНН: 02508201610067 [21:15:02]line Контрольно-Кассовый Чек [21:15:02]line ПРОДАЖА [21:15:02]line ТРК (МРК, ГНК) : 63 [21:15:02]line Товар: 2710124130 [21:15:02]line Аи-92-К-5 [21:15:02]line 5.980 * 66.90 [21:15:02]line = 400.06 [21:15:02]line НДС 12% НСП 1% [21:15:02]line > о реализуемом товаре [21:15:02]line ОКРУГЛЕНИЕ: -0.06 [21:15:02]line ИТОГО: 400.00 [21:15:02]line Внесено: 400.00 [21:15:02]line СДАЧА: 0.00 [21:15:02]line НСП 1% : 3.54 [21:15:02]line НДС 12% : 42.48 [21:15:02]line Наличными: 400.00 [21:15:02]line Безнал.: 0.00 [21:15:02]line Место: АЗС № 133 "Партнер Нефть" [21:15:02]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [21:15:02]line СНО: Общий режим [21:15:02]line Чек 528 20.10.2024 21:15 [21:15:02]line Смена: 533 ФФД: 1.0 [21:15:02]line ЗНМ: 0300000091 [21:15:02]line РНМ: 0000000000091685 [21:15:02]line Версия ККМ: 001 [21:15:02]line ФМ: 0000000000871839 [21:15:02]line ФД: 227680 [21:15:02]line ФПД: 209179026719959 [21:15:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T211501&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227680&fm=209179026719959&tin=02508201610067®Number=0000000000091685&sum=40000 [21:15:02]written 0, free lines is 4095 [21:15:02]OFD Sender: Processing packet 227680 [packets to send 38, broken 37] [21:15:02]ProducePacketName [21:15:02]name=ofd_packets/00227680 [21:15:02]OFD Sender: To server: pG, [21:15:02]CommunicateWithHost lk.salyk.kg:30040 [21:15:02]ConnectInit lk.salyk.kg [21:15:03]Connected sock=11 [21:15:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 57 8A 07 01 24 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 02 00 00 F4 03 04 00 D5 72 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 60 79 03 00 35 04 06 00 BE 3F 49 95 04 D7 BA 75 CB FE 4A 9A 04 B6 [21:15:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 B8 55 47 00 8C 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 33 39 10 04 04 00 60 79 03 00 F4 03 04 00 D3 1D 15 67 B6 04 01 00 00 18 3E 5D B2 E0 25 FB 1E [21:15:03]CommunicateWithHost err = 0 [21:15:03]CheckOFDResponse [21:15:03]1017 (14) - 77093643461234 [21:15:03]1041 (16) - 0000000000871839 [21:15:03]1040 (4) - 227680 [21:15:03]1012 (4) - 20.10.2024 15:12 [21:15:03]1206 (1) - 0 [21:15:03]OFD Sender: Remove packet 227680 [21:15:03]ProducePacketName [21:15:03]name=ofd_packets/00227680 [21:15:03]NVStorageDeleteData [21:15:03]Write to MH i2c: 01 00 00 11 12 23 [21:15:03]Write i2c OK [21:15:03]MH_I2C_Read... [21:15:03]Read from MH i2c: 01 [21:15:03]MH_I2C_Read... [21:15:03]Read from MH i2c: 01 07 00 [21:15:03]MH_I2C_Read... [21:15:03]Read from MH i2c: 01 07 00 11 12 00 00 00 00 00 B1 0C E7 [21:15:03]RasterBufferAndPrint [21:15:03]line [21:15:03]line [21:15:03]line [21:15:03]line [21:15:03]line [21:15:03]written 0, free lines is 3259 [21:15:03]MH_Cut [21:15:03]Write to MH i2c: D1 01 00 18 12 01 FC [21:15:03]Write i2c OK [21:15:03]MH_I2C_Read... [21:15:03]Read from MH i2c: D1 [21:15:03]MH_I2C_Read... [21:15:03]Read from MH i2c: D1 01 00 [21:15:03]MH_I2C_Read... [21:15:03]Read from MH i2c: D1 01 00 18 12 00 FB [21:15:03]Write to MH i2c: 01 00 00 19 12 2B [21:15:03]Write i2c OK [21:15:03]MH_I2C_Read... [21:15:03]OFD Sender: No OFD packet to send [21:15:04]*** Cut start [21:15:04]*** Partial cut [21:15:04]*** CUTSNS_PIN = 1 [21:15:04]*** CUTSNS_PIN = 0 [21:15:04]*** Brake cut motor [21:15:04]Read from MH i2c: 01 [21:15:04]MH_I2C_Read... [21:15:04]*** Stop cut motor [21:15:04]*** Cut end [21:15:04]Read from MH i2c: 01 07 00 [21:15:04]MH_I2C_Read... [21:15:04]Read from MH i2c: 01 07 00 19 12 00 00 00 00 00 FF 0F 40 [21:15:04]process_action close_receipt done [21:15:04]requested_data is exist [21:15:04]produce_requested_data [21:15:04]requested_item fm.sn is exist - process it [21:15:04]wFMCommunicate request_size=4 [21:15:04]MH_SAM_APDU [21:15:04]CAPDU: 80 11 00 00 [21:15:04]Write to MH i2c: E2 08 00 1A 12 80 11 00 00 00 00 00 00 A6 [21:15:04]Write i2c OK [21:15:04]MH_I2C_Read... [21:15:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:15:04]Read from MH i2c: E2 [21:15:04]MH_I2C_Read... [21:15:04]Read from MH i2c: E2 17 00 [21:15:04]MH_I2C_Read... [21:15:04]Read from MH i2c: E2 17 00 1A 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 FD [21:15:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:15:04]wFMCommunicate OK [21:15:04]requested_item fd.num is exist - process it [21:15:04]SAM_PROTO_GetFieldsCounters [21:15:04]wFMCommunicate request_size=4 [21:15:04]MH_SAM_APDU [21:15:04]CAPDU: 80 13 00 00 [21:15:04]Write to MH i2c: E2 08 00 1B 12 80 13 00 00 00 00 00 00 A9 [21:15:04]Write i2c OK [21:15:04]MH_I2C_Read... [21:15:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:15:05]Read from MH i2c: E2 [21:15:05]MH_I2C_Read... [21:15:05]Read from MH i2c: E2 62 00 [21:15:05]MH_I2C_Read... [21:15:05]Read from MH i2c: E2 62 00 1B 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 60 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 10 02 00 00 5E 04 04 00 10 02 00 00 57 04 04 00 11 02 00 00 19 04 04 00 00 00 00 00 90 00 FB [21:15: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 60 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 10 02 00 00 5E 04 04 00 10 02 00 00 57 04 04 00 11 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:15:05]wFMCommunicate OK [21:15:05]SAM_PROTO_GetFieldsCounters done [21:15:05]requested_item shift.num is exist - process it [21:15:05]requested_item shift.opened is exist - process it [21:15:05]req_shift_opened [21:15:05]FM_GetShiftState [21:15:05]SAM_PROTO_GetShiftState [21:15:05]wFMCommunicate request_size=4 [21:15:05]MH_SAM_APDU [21:15:05]CAPDU: 80 13 01 00 [21:15:05]Write to MH i2c: E2 08 00 1C 12 80 13 01 00 00 00 00 00 AB [21:15:05]Write i2c OK [21:15:05]MH_I2C_Read... [21:15:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:15:05]Read from MH i2c: E2 [21:15:05]MH_I2C_Read... [21:15:05]Read from MH i2c: E2 0E 00 [21:15:05]MH_I2C_Read... [21:15:05]Read from MH i2c: E2 0E 00 1C 12 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 C5 [21:15:05]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:15:05]wFMCommunicate OK [21:15:05]SAM_PROTO_GetShiftState done [21:15:05]FM_GetShiftState done [21:15:05]req_shift_opened done [21:15:05]requested_item shift.open_date is exist - process it [21:15:05]req_shift_open_date [21:15:05]req_shift_open_date done [21:15:05]produce_requested_data done [21:15:05]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227680,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [21:15:05]process_action_free close_receipt [21:15:05]json_value_free [21:15:05]json_value_free done [21:15:05]process_json_proto returns [21:15:05]Send response to host [21:15:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227680,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [21:15:05]free response buf [21:15:05]execute_script done [21:15:05]execute_script returns [21:15:05]free content buf [21:15:05]Sock 9.Close socket [21:15:05]Sock 9.Thread stoped [21:15:08]OFD Sender: No OFD packet to send [21:15:13]OFD Sender: No OFD packet to send [21:15:18]OFD Sender: No OFD packet to send [21:15:23]OFD Sender: No OFD packet to send [21:15:28]OFD Sender: No OFD packet to send [21:15:32]accept exits with 7 [21:15:32]New connection [21:15:32]New thread 3066666340 created [21:15:32]Thread 3066809700 joined [21:15:32]Waiting for new connection... [21:15:32] Sock 7.Parse request [21:15:32]Sock 7.Check first char [21:15:32]Sock 7.First char is OK [21:15:32]request: POST /json_proto HTTP/1.0 [21:15:32]Method: POST [21:15:32]URL: /json_proto [21:15:32]Method is POST - this is cgi request [21:15:32]url: /json_proto [21:15:32]query_string will be loaded in cgi processing [21:15:32]execute_cgi json_proto POST (null) [21:15:32]execute_cgi path=json_proto method=POST [21:15:32]POST find Content-Length [21:15:32]Host: 172.17.44.195:8080 [21:15:32]Content-Length: 678 [21:15:32]Content-Type: application/json [21:15:32] [21:15:32]POST finish read [21:15:32]Found Content-Length = 678 [21:15:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963343", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:15:32]execute_script... [21:15: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)1963343", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:15:32]POST & json_proto [21:15:32]process_json_proto [21:15:32]json parsed OK: [21:15:32]protocol is kg_v1.0 [21:15:32]action value=close_receipt [21:15:32]process_action close_receipt [21:15:32]cmd_close_receipt [21:15:32]MH_GetDate [21:15:32]Write to MH i2c: F0 00 00 1D 12 1E [21:15:32]Write i2c OK [21:15:32]MH_I2C_Read... [21:15:32]Read from MH i2c: F0 [21:15:32]MH_I2C_Read... [21:15:32]Read from MH i2c: F0 09 00 [21:15:32]MH_I2C_Read... [21:15:32]Read from MH i2c: F0 09 00 1D 12 00 F6 72 15 67 82 C9 CF 66 8B [21:15:32]GetLastDocTimeStamp 1729458901 [21:15:32]current date 1729458934 [21:15:32]FM_GetShiftState [21:15:32]SAM_PROTO_GetShiftState [21:15:32]wFMCommunicate request_size=4 [21:15:32]MH_SAM_APDU [21:15:32]CAPDU: 80 13 01 00 [21:15:32]Write to MH i2c: E2 08 00 1E 12 80 13 01 00 00 00 00 00 AD [21:15:32]Write i2c OK [21:15:32]MH_I2C_Read... [21:15:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:15:33]Read from MH i2c: E2 [21:15:33]MH_I2C_Read... [21:15:33]Read from MH i2c: E2 0E 00 [21:15:33]MH_I2C_Read... [21:15:33]Read from MH i2c: E2 0E 00 1E 12 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 C7 [21:15:33]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:15:33]wFMCommunicate OK [21:15:33]SAM_PROTO_GetShiftState done [21:15:33]FM_GetShiftState done [21:15:33]opened in 1729383750 [21:15:33]opened+sec_in_day 1729470150 [21:15:33]quantity*price = 30038 [21:15:33]sum+1 = 30039 [21:15:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 529 20.10.2024 21:15 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227681 ФПД: 201492323309449 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T211534&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227681&fm=201492323309449&tin=02508201610067®Number=0000000000091685&sum=30000 [21:15:34]StoreToDocumentArchive [21:15:34]shift 533 fd 227681 [21:15:34]save to /storage/0533/doc_00227681 [21:15:34]save last doc name /storage/0533/doc_00227681 to /storage/kkm_last_doc_name [21:15:34]save OK [21:15:34]Clear old archive folders... [21:15:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:15:34]tlvbuf is B6E850E0 [21:15:34]SAM_PROTO_ClearQueue [21:15:34]wFMCommunicate request_size=4 [21:15:34]MH_SAM_APDU [21:15:34]CAPDU: 80 09 00 00 [21:15:34]Write to MH i2c: E2 08 00 2B 12 80 09 00 00 00 00 00 00 AF [21:15:34]Write i2c OK [21:15:34]MH_I2C_Read... [21:15:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:15:34]Read from MH i2c: E2 [21:15:34]MH_I2C_Read... [21:15:34]Read from MH i2c: E2 03 00 [21:15:34]MH_I2C_Read... [21:15:34]Read from MH i2c: E2 03 00 2B 12 00 90 00 B1 [21:15:34]RAPDU: 90 00 [21:15:34]wFMCommunicate OK [21:15:34]SAM_PROTO_ClearQueue done [21:15:34]KKMCreateOFDPacket [21:15:34]OFDProtocolAddRootSTLVToBuf [21:15:34]FM_MakeSignedData [21:15:34]FM_MakeSignedData [21:15:34]SAM_PROTO_SignData [21:15:34]wFMCommunicate request_size=4 [21:15:34]MH_SAM_APDU [21:15:34]CAPDU: 80 0D 01 02 [21:15:34]Write to MH i2c: E2 08 00 2C 12 80 0D 01 02 00 00 00 00 B7 [21:15:34]Write i2c OK [21:15:34]MH_I2C_Read... [21:15:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:15:34]Read from MH i2c: E2 [21:15:34]MH_I2C_Read... [21:15:34]Read from MH i2c: E2 03 00 [21:15:34]MH_I2C_Read... [21:15:34]Read from MH i2c: E2 03 00 2C 12 00 90 00 B2 [21:15:34]RAPDU: 90 00 [21:15:34]wFMCommunicate OK [21:15:34]wFMCommunicate request_size=255 [21:15:34]MH_SAM_APDU [21:15:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 02 00 00 F4 03 04 00 F6 72 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 61 79 03 00 35 04 06 00 B7 [21:15:34]Write to MH i2c: E2 02 01 2D 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 02 00 00 F4 03 04 00 F6 72 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 61 79 03 00 35 04 06 00 B7 00 00 E4 [21:15:34]Write i2c OK [21:15:34]MH_I2C_Read... [21:15:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:15:34]Read from MH i2c: E2 [21:15:34]MH_I2C_Read... [21:15:34]Read from MH i2c: E2 03 00 [21:15:34]MH_I2C_Read... [21:15:34]Read from MH i2c: E2 03 00 2D 12 00 90 00 B3 [21:15:34]RAPDU: 90 00 [21:15:34]wFMCommunicate OK [21:15:34]wFMCommunicate request_size=10 [21:15:34]MH_SAM_APDU [21:15:34]CAPDU: 80 0D 02 02 05 41 96 5B 17 89 [21:15:34]Write to MH i2c: E2 0D 00 2E 12 80 0D 02 02 05 00 41 96 5B 17 89 00 00 96 [21:15:34]Write i2c OK [21:15:34]MH_I2C_Read... [21:15:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:15:34]Read from MH i2c: E2 [21:15:34]MH_I2C_Read... [21:15:34]Read from MH i2c: E2 03 00 [21:15:34]MH_I2C_Read... [21:15:34]Read from MH i2c: E2 03 00 2E 12 00 90 00 B4 [21:15:34]RAPDU: 90 00 [21:15:34]wFMCommunicate OK [21:15:34]wFMCommunicate request_size=4 [21:15:34]MH_SAM_APDU [21:15:34]CAPDU: 80 0D 03 02 [21:15:34]Write to MH i2c: E2 08 00 2F 12 80 0D 03 02 00 00 00 00 BC [21:15:34]Write i2c OK [21:15:34]MH_I2C_Read... [21:15:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:15:34]Read from MH i2c: E2 [21:15:34]MH_I2C_Read... [21:15:34]Read from MH i2c: E2 0B 00 [21:15:34]MH_I2C_Read... [21:15:34]Read from MH i2c: E2 0B 00 2F 12 00 37 E7 A1 2A E5 84 35 D1 90 00 15 [21:15:34]RAPDU: 37 E7 A1 2A E5 84 35 D1 90 00 [21:15:34]wFMCommunicate OK [21:15:34]SAM_PROTO_SignData done [21:15:34]FM_MakeSignedData done [21:15:34]CreateOFDProtocolMessage [21:15:34]wFMCommunicate request_size=4 [21:15:34]MH_SAM_APDU [21:15:34]CAPDU: 80 11 00 00 [21:15:34]Write to MH i2c: E2 08 00 30 12 80 11 00 00 00 00 00 00 BC [21:15:34]Write i2c OK [21:15:34]MH_I2C_Read... [21:15:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:15:34]Read from MH i2c: E2 [21:15:34]MH_I2C_Read... [21:15:34]Read from MH i2c: E2 17 00 [21:15:34]MH_I2C_Read... [21:15:34]Read from MH i2c: E2 17 00 30 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 13 [21:15:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:15:34]wFMCommunicate OK [21:15:34]CreateOFDProtocolMessage done [21:15:34]OFDSenderStorePacket 227681 [21:15:34]StoreOFDPacket docnum=227681 [21:15:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 00 00 07 01 30 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 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 02 00 00 F4 03 04 00 F6 72 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 61 79 03 00 35 04 06 00 B7 41 96 5B 17 89 37 E7 A1 2A E5 84 35 D1 [21:15:34]CheckFolder [21:15:34]dirname=/storage/ofd_packets [21:15:34]CheckFolder done [21:15:34]ProducePacketName [21:15:34]name=ofd_packets/00227681 [21:15:34]NVStorageSaveData ofd_packets/00227681 [21:15:34]File name is /storage/ofd_packets/00227681 [21:15:34]Write 301 bytes [21:15:34]NVStorageSaveData done [21:15:34]OFDSenderStorePacket done [21:15:34]KKMCreateOFDPacket done [21:15:34]NVStorageSaveData kkm_last_timestamp [21:15:34]File name is /storage/kkm_last_timestamp [21:15:34]Write 4 bytes [21:15:34]NVStorageSaveData done [21:15:34]ExternCall_PrintAddStr [21:15:34]wPrintStart [21:15:34]Write to MH i2c: 01 00 00 31 12 43 [21:15:34]Write i2c OK [21:15:34]MH_I2C_Read... [21:15:34]Read from MH i2c: 01 [21:15:34]MH_I2C_Read... [21:15:34]Read from MH i2c: 01 07 00 [21:15:34]MH_I2C_Read... [21:15:34]Read from MH i2c: 01 07 00 31 12 00 00 00 00 00 FF 0F 58 [21:15:34]RasterBufferAndPrint [21:15:34]line Счет N : (1)1963343 [21:15:34]line ИНН: 02508201610067 [21:15:34]line Контрольно-Кассовый Чек [21:15:34]line ПРОДАЖА [21:15:34]line ТРК (МРК, ГНК) : 43 [21:15:34]line Товар: 2710124130 [21:15:34]line Аи-92-К-5 [21:15:34]line 4.490 * 66.90 [21:15:34]line = 300.38 [21:15:34]line НДС 12% НСП 1% [21:15:34]line > о реализуемом товаре [21:15:34]line ОКРУГЛЕНИЕ: -0.38 [21:15:34]line ИТОГО: 300.00 [21:15:34]line Внесено: 300.00 [21:15:34]line СДАЧА: 0.00 [21:15:34]line НСП 1% : 2.66 [21:15:34]line НДС 12% : 31.90 [21:15:34]line Наличными: 300.00 [21:15:34]line Безнал.: 0.00 [21:15:34]line Место: АЗС № 133 "Партнер Нефть" [21:15:34]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [21:15:34]line СНО: Общий режим [21:15:34]line Чек 529 20.10.2024 21:15 [21:15:34]line Смена: 533 ФФД: 1.0 [21:15:34]line ЗНМ: 0300000091 [21:15:34]line РНМ: 0000000000091685 [21:15:34]line Версия ККМ: 001 [21:15:34]line ФМ: 0000000000871839 [21:15:34]line ФД: 227681 [21:15:34]line ФПД: 201492323309449 [21:15:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T211534&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227681&fm=201492323309449&tin=02508201610067®Number=0000000000091685&sum=30000 [21:15:35]written 0, free lines is 4095 [21:15:35]OFD Sender: Processing packet 227681 [packets to send 38, broken 37] [21:15:35]ProducePacketName [21:15:35]name=ofd_packets/00227681 [21:15:35]OFD Sender: To server: pG, [21:15:35]CommunicateWithHost lk.salyk.kg:30040 [21:15:35]ConnectInit lk.salyk.kg [21:15:35]Connected sock=10 [21:15: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 33 39 0F 01 00 00 00 00 07 01 30 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 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 02 00 00 F4 03 04 00 F6 72 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 61 79 03 00 35 04 06 00 B7 41 96 5B 17 89 37 E7 A1 2A E5 84 35 D1 [21:15: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 33 39 4F 00 00 00 65 60 47 00 C4 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 33 39 10 04 04 00 61 79 03 00 F4 03 04 00 F4 1D 15 67 B6 04 01 00 00 2E FE 8A CF 43 13 24 57 [21:15:35]CommunicateWithHost err = 0 [21:15:35]CheckOFDResponse [21:15:35]1017 (14) - 77093643461234 [21:15:35]1041 (16) - 0000000000871839 [21:15:35]1040 (4) - 227681 [21:15:35]1012 (4) - 20.10.2024 15:12 [21:15:35]1206 (1) - 0 [21:15:35]OFD Sender: Remove packet 227681 [21:15:35]ProducePacketName [21:15:35]name=ofd_packets/00227681 [21:15:35]NVStorageDeleteData [21:15:35]Write to MH i2c: 01 00 00 5B 12 6D [21:15:35]Write i2c OK [21:15:35]MH_I2C_Read... [21:15:35]Read from MH i2c: 01 [21:15:35]MH_I2C_Read... [21:15:35]Read from MH i2c: 01 07 00 [21:15:35]MH_I2C_Read... [21:15:35]Read from MH i2c: 01 07 00 5B 12 00 00 00 00 00 A9 0C 29 [21:15:35]RasterBufferAndPrint [21:15:35]line [21:15:35]line [21:15:35]line [21:15:35]line [21:15:35]line [21:15:35]written 0, free lines is 3245 [21:15:35]MH_Cut [21:15:35]Write to MH i2c: D1 01 00 62 12 01 46 [21:15:35]Write i2c OK [21:15:35]MH_I2C_Read... [21:15:35]Read from MH i2c: D1 [21:15:35]MH_I2C_Read... [21:15:35]Read from MH i2c: D1 01 00 [21:15:35]MH_I2C_Read... [21:15:35]Read from MH i2c: D1 01 00 62 12 00 45 [21:15:35]Write to MH i2c: 01 00 00 63 12 75 [21:15:35]Write i2c OK [21:15:35]MH_I2C_Read... [21:15:35]OFD Sender: No OFD packet to send [21:15:36]*** Cut start [21:15:36]*** Partial cut [21:15:36]*** CUTSNS_PIN = 1 [21:15:36]*** CUTSNS_PIN = 0 [21:15:36]*** Brake cut motor [21:15:37]Read from MH i2c: 01 [21:15:37]MH_I2C_Read... [21:15:37]*** Stop cut motor [21:15:37]*** Cut end [21:15:37]Read from MH i2c: 01 07 00 [21:15:37]MH_I2C_Read... [21:15:37]Read from MH i2c: 01 07 00 63 12 00 00 00 00 00 FF 0F 8A [21:15:37]process_action close_receipt done [21:15:37]requested_data is exist [21:15:37]produce_requested_data [21:15:37]requested_item fm.sn is exist - process it [21:15:37]wFMCommunicate request_size=4 [21:15:37]MH_SAM_APDU [21:15:37]CAPDU: 80 11 00 00 [21:15:37]Write to MH i2c: E2 08 00 64 12 80 11 00 00 00 00 00 00 F0 [21:15:37]Write i2c OK [21:15:37]MH_I2C_Read... [21:15:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:15:37]Read from MH i2c: E2 [21:15:37]MH_I2C_Read... [21:15:37]Read from MH i2c: E2 17 00 [21:15:37]MH_I2C_Read... [21:15:37]Read from MH i2c: E2 17 00 64 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 47 [21:15:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:15:37]wFMCommunicate OK [21:15:37]requested_item fd.num is exist - process it [21:15:37]SAM_PROTO_GetFieldsCounters [21:15:37]wFMCommunicate request_size=4 [21:15:37]MH_SAM_APDU [21:15:37]CAPDU: 80 13 00 00 [21:15:37]Write to MH i2c: E2 08 00 65 12 80 13 00 00 00 00 00 00 F3 [21:15:37]Write i2c OK [21:15:37]MH_I2C_Read... [21:15:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:15:37]Read from MH i2c: E2 [21:15:37]MH_I2C_Read... [21:15:37]Read from MH i2c: E2 62 00 [21:15:37]MH_I2C_Read... [21:15:37]Read from MH i2c: E2 62 00 65 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 61 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 11 02 00 00 5E 04 04 00 11 02 00 00 57 04 04 00 12 02 00 00 19 04 04 00 00 00 00 00 90 00 49 [21:15: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 61 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 11 02 00 00 5E 04 04 00 11 02 00 00 57 04 04 00 12 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:15:37]wFMCommunicate OK [21:15:37]SAM_PROTO_GetFieldsCounters done [21:15:37]requested_item shift.num is exist - process it [21:15:37]requested_item shift.opened is exist - process it [21:15:37]req_shift_opened [21:15:37]FM_GetShiftState [21:15:37]SAM_PROTO_GetShiftState [21:15:37]wFMCommunicate request_size=4 [21:15:37]MH_SAM_APDU [21:15:37]CAPDU: 80 13 01 00 [21:15:37]Write to MH i2c: E2 08 00 66 12 80 13 01 00 00 00 00 00 F5 [21:15:37]Write i2c OK [21:15:37]MH_I2C_Read... [21:15:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:15:37]Read from MH i2c: E2 [21:15:37]MH_I2C_Read... [21:15:37]Read from MH i2c: E2 0E 00 [21:15:37]MH_I2C_Read... [21:15:37]Read from MH i2c: E2 0E 00 66 12 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 0F [21:15:37]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:15:37]wFMCommunicate OK [21:15:37]SAM_PROTO_GetShiftState done [21:15:37]FM_GetShiftState done [21:15:37]req_shift_opened done [21:15:37]requested_item shift.open_date is exist - process it [21:15:37]req_shift_open_date [21:15:37]req_shift_open_date done [21:15:37]produce_requested_data done [21:15:37]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227681,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [21:15:37]process_action_free close_receipt [21:15:37]json_value_free [21:15:37]json_value_free done [21:15:37]process_json_proto returns [21:15:37]Send response to host [21:15:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227681,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [21:15:37]free response buf [21:15:37]execute_script done [21:15:37]execute_script returns [21:15:37]free content buf [21:15:37]Sock 7.Close socket [21:15:37]Sock 7.Thread stoped [21:15:40]OFD Sender: No OFD packet to send [21:15:45]OFD Sender: No OFD packet to send [21:15:50]OFD Sender: No OFD packet to send [21:15:55]OFD Sender: No OFD packet to send [21:16:00]OFD Sender: No OFD packet to send [21:16:05]OFD Sender: No OFD packet to send [21:16:10]OFD Sender: No OFD packet to send [21:16:15]OFD Sender: No OFD packet to send [21:16:20]OFD Sender: No OFD packet to send [21:16:25]OFD Sender: No OFD packet to send [21:16:30]OFD Sender: No OFD packet to send [21:16:35]OFD Sender: No OFD packet to send [21:16:40]OFD Sender: No OFD packet to send [21:16:45]OFD Sender: No OFD packet to send [21:16:47]accept exits with 9 [21:16:47]New connection [21:16:47]New thread 3066809700 created [21:16:47]Thread 3066666340 joined [21:16:47]Waiting for new connection... [21:16:47] Sock 9.Parse request [21:16:47]Sock 9.Check first char [21:16:47]Sock 9.First char is OK [21:16:47]request: POST /json_proto HTTP/1.0 [21:16:47]Method: POST [21:16:47]URL: /json_proto [21:16:47]Method is POST - this is cgi request [21:16:47]url: /json_proto [21:16:47]query_string will be loaded in cgi processing [21:16:47]execute_cgi json_proto POST (null) [21:16:47]execute_cgi path=json_proto method=POST [21:16:47]POST find Content-Length [21:16:47]Host: 172.17.44.195:8080 [21:16:47]Content-Length: 680 [21:16:47]Content-Type: application/json [21:16:47] [21:16:47]POST finish read [21:16:47]Found Content-Length = 680 [21:16:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963345", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.030, "sum" : 1450.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1450.00, "total" : 1450.00, "payments": [ { "type": 0, "sum" : 1450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:16:47]execute_script... [21:16: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)1963345", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.030, "sum" : 1450.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1450.00, "total" : 1450.00, "payments": [ { "type": 0, "sum" : 1450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:16:47]POST & json_proto [21:16:47]process_json_proto [21:16:47]json parsed OK: [21:16:47]protocol is kg_v1.0 [21:16:47]action value=close_receipt [21:16:47]process_action close_receipt [21:16:47]cmd_close_receipt [21:16:47]MH_GetDate [21:16:47]Write to MH i2c: F0 00 00 67 12 68 [21:16:47]Write i2c OK [21:16:47]MH_I2C_Read... [21:16:47]Read from MH i2c: F0 [21:16:47]MH_I2C_Read... [21:16:47]Read from MH i2c: F0 09 00 [21:16:47]MH_I2C_Read... [21:16:47]Read from MH i2c: F0 09 00 67 12 00 40 73 15 67 82 C9 CF 66 20 [21:16:47]GetLastDocTimeStamp 1729458934 [21:16:47]current date 1729459008 [21:16:47]FM_GetShiftState [21:16:47]SAM_PROTO_GetShiftState [21:16:47]wFMCommunicate request_size=4 [21:16:47]MH_SAM_APDU [21:16:47]CAPDU: 80 13 01 00 [21:16:47]Write to MH i2c: E2 08 00 68 12 80 13 01 00 00 00 00 00 F7 [21:16:47]Write i2c OK [21:16:47]MH_I2C_Read... [21:16:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:16:47]Read from MH i2c: E2 [21:16:47]MH_I2C_Read... [21:16:47]Read from MH i2c: E2 0E 00 [21:16:47]MH_I2C_Read... [21:16:47]Read from MH i2c: E2 0E 00 68 12 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 11 [21:16:47]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:16:47]wFMCommunicate OK [21:16:47]SAM_PROTO_GetShiftState done [21:16:47]FM_GetShiftState done [21:16:47]opened in 1729383750 [21:16:47]opened+sec_in_day 1729470150 [21:16:47]quantity*price = 145008 [21:16:47]sum+1 = 145010 [21:16:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 1450.00 Внесено: 1450.00 СДАЧА: 0.00 НСП 1% : 12.83 НДС 12% : 153.99 Наличными: 1450.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 530 20.10.2024 21:16 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227682 ФПД: 237235181686614 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T211648&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227682&fm=237235181686614&tin=02508201610067®Number=0000000000091685&sum=145000 [21:16:48]StoreToDocumentArchive [21:16:48]shift 533 fd 227682 [21:16:48]save to /storage/0533/doc_00227682 [21:16:48]save last doc name /storage/0533/doc_00227682 to /storage/kkm_last_doc_name [21:16:48]save OK [21:16:48]Clear old archive folders... [21:16:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:16:48]tlvbuf is 00C169E0 [21:16:48]SAM_PROTO_ClearQueue [21:16:48]wFMCommunicate request_size=4 [21:16:48]MH_SAM_APDU [21:16:48]CAPDU: 80 09 00 00 [21:16:48]Write to MH i2c: E2 08 00 75 12 80 09 00 00 00 00 00 00 F9 [21:16:48]Write i2c OK [21:16:48]MH_I2C_Read... [21:16:48]Read from MH i2c: E2 [21:16:48]MH_I2C_Read... [21:16:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:16:48]Read from MH i2c: E2 03 00 [21:16:48]MH_I2C_Read... [21:16:48]Read from MH i2c: E2 03 00 75 12 00 90 00 FB [21:16:48]RAPDU: 90 00 [21:16:48]wFMCommunicate OK [21:16:48]SAM_PROTO_ClearQueue done [21:16:48]KKMCreateOFDPacket [21:16:48]OFDProtocolAddRootSTLVToBuf [21:16:48]FM_MakeSignedData [21:16:48]FM_MakeSignedData [21:16:48]SAM_PROTO_SignData [21:16:48]wFMCommunicate request_size=4 [21:16:48]MH_SAM_APDU [21:16:48]CAPDU: 80 0D 01 02 [21:16:48]Write to MH i2c: E2 08 00 76 12 80 0D 01 02 00 00 00 00 01 [21:16:48]Write i2c OK [21:16:48]MH_I2C_Read... [21:16:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:16:48]Read from MH i2c: E2 [21:16:48]MH_I2C_Read... [21:16:48]Read from MH i2c: E2 03 00 [21:16:48]MH_I2C_Read... [21:16:48]Read from MH i2c: E2 03 00 76 12 00 90 00 FC [21:16:48]RAPDU: 90 00 [21:16:48]wFMCommunicate OK [21:16:48]wFMCommunicate request_size=255 [21:16:48]MH_SAM_APDU [21:16:48]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 4A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 71 36 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 36 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 3C 00 00 00 00 07 04 06 00 68 36 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 02 00 00 F4 03 04 00 40 73 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 62 79 03 00 35 04 06 00 D7 C3 9E BB [21:16:48]Write to MH i2c: E2 02 01 77 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 56 4A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 71 36 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 36 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 3C 00 00 00 00 07 04 06 00 68 36 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 02 00 00 F4 03 04 00 40 73 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 62 79 03 00 35 04 06 00 D7 C3 9E BB 00 00 66 [21:16:48]Write i2c OK [21:16:48]MH_I2C_Read... [21:16:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:16:49]Read from MH i2c: E2 [21:16:49]MH_I2C_Read... [21:16:49]Read from MH i2c: E2 03 00 [21:16:49]MH_I2C_Read... [21:16:49]Read from MH i2c: E2 03 00 77 12 00 90 00 FD [21:16:49]RAPDU: 90 00 [21:16:49]wFMCommunicate OK [21:16:49]wFMCommunicate request_size=7 [21:16:49]MH_SAM_APDU [21:16:49]CAPDU: 80 0D 02 02 02 8F 56 [21:16:49]Write to MH i2c: E2 0A 00 78 12 80 0D 02 02 02 00 8F 56 00 00 ED [21:16:49]Write i2c OK [21:16:49]MH_I2C_Read... [21:16:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:16:49]Read from MH i2c: E2 [21:16:49]MH_I2C_Read... [21:16:49]Read from MH i2c: E2 03 00 [21:16:49]MH_I2C_Read... [21:16:49]Read from MH i2c: E2 03 00 78 12 00 90 00 FE [21:16:49]RAPDU: 90 00 [21:16:49]wFMCommunicate OK [21:16:49]wFMCommunicate request_size=4 [21:16:49]MH_SAM_APDU [21:16:49]CAPDU: 80 0D 03 02 [21:16:49]Write to MH i2c: E2 08 00 79 12 80 0D 03 02 00 00 00 00 06 [21:16:49]Write i2c OK [21:16:49]MH_I2C_Read... [21:16:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:16:49]Read from MH i2c: E2 [21:16:49]MH_I2C_Read... [21:16:49]Read from MH i2c: E2 0B 00 [21:16:49]MH_I2C_Read... [21:16:49]Read from MH i2c: E2 0B 00 79 12 00 D0 CB DA E7 6A 6D 3D CC 90 00 43 [21:16:49]RAPDU: D0 CB DA E7 6A 6D 3D CC 90 00 [21:16:49]wFMCommunicate OK [21:16:49]SAM_PROTO_SignData done [21:16:49]FM_MakeSignedData done [21:16:49]CreateOFDProtocolMessage [21:16:49]wFMCommunicate request_size=4 [21:16:49]MH_SAM_APDU [21:16:49]CAPDU: 80 11 00 00 [21:16:49]Write to MH i2c: E2 08 00 7A 12 80 11 00 00 00 00 00 00 06 [21:16:49]Write i2c OK [21:16:49]MH_I2C_Read... [21:16:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:16:49]Read from MH i2c: E2 [21:16:49]MH_I2C_Read... [21:16:49]Read from MH i2c: E2 17 00 [21:16:49]MH_I2C_Read... [21:16:49]Read from MH i2c: E2 17 00 7A 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 5D [21:16:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:16:49]wFMCommunicate OK [21:16:49]CreateOFDProtocolMessage done [21:16:49]OFDSenderStorePacket 227682 [21:16:49]StoreOFDPacket docnum=227682 [21:16:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 38 F2 04 01 E0 05 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 4A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 71 36 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 36 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 3C 00 00 00 00 07 04 06 00 68 36 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 02 00 00 F4 03 04 00 40 73 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 62 79 03 00 35 04 06 00 D7 C3 9E BB 8F 56 D0 CB DA E7 6A 6D 3D CC [21:16:49]CheckFolder [21:16:49]dirname=/storage/ofd_packets [21:16:49]CheckFolder done [21:16:49]ProducePacketName [21:16:49]name=ofd_packets/00227682 [21:16:49]NVStorageSaveData ofd_packets/00227682 [21:16:49]File name is /storage/ofd_packets/00227682 [21:16:49]Write 298 bytes [21:16:49]NVStorageSaveData done [21:16:49]OFDSenderStorePacket done [21:16:49]KKMCreateOFDPacket done [21:16:49]NVStorageSaveData kkm_last_timestamp [21:16:49]File name is /storage/kkm_last_timestamp [21:16:49]Write 4 bytes [21:16:49]NVStorageSaveData done [21:16:49]ExternCall_PrintAddStr [21:16:49]wPrintStart [21:16:49]Write to MH i2c: 01 00 00 7B 12 8D [21:16:49]Write i2c OK [21:16:49]MH_I2C_Read... [21:16:49]Read from MH i2c: 01 [21:16:49]MH_I2C_Read... [21:16:49]Read from MH i2c: 01 07 00 [21:16:49]MH_I2C_Read... [21:16:49]Read from MH i2c: 01 07 00 7B 12 00 00 00 00 00 FF 0F A2 [21:16:49]RasterBufferAndPrint [21:16:49]line Счет N : (1)1963345 [21:16:49]line ИНН: 02508201610067 [21:16:49]line Контрольно-Кассовый Чек [21:16:49]line ПРОДАЖА [21:16:49]line ТРК (МРК, ГНК) : 11 [21:16:49]line Товар: 2710194210 [21:16:49]line ДТ-К-5 [21:16:49]line 19.030 * 76.20 [21:16:49]line = 1450.09 [21:16:49]line НДС 12% НСП 1% [21:16:49]line > о реализуемом товаре [21:16:49]line ОКРУГЛЕНИЕ: -0.09 [21:16:49]line ИТОГО: 1450.00 [21:16:49]line Внесено: 1450.00 [21:16:49]line СДАЧА: 0.00 [21:16:49]line НСП 1% : 12.83 [21:16:49]line НДС 12% : 153.99 [21:16:49]line Наличными: 1450.00 [21:16:49]line Безнал.: 0.00 [21:16:49]line Место: АЗС № 133 "Партнер Нефть" [21:16:49]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [21:16:49]line СНО: Общий режим [21:16:49]line Чек 530 20.10.2024 21:16 [21:16:49]line Смена: 533 ФФД: 1.0 [21:16:49]line ЗНМ: 0300000091 [21:16:49]line РНМ: 0000000000091685 [21:16:49]line Версия ККМ: 001 [21:16:49]line ФМ: 0000000000871839 [21:16:49]line ФД: 227682 [21:16:49]line ФПД: 237235181686614 [21:16:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T211648&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227682&fm=237235181686614&tin=02508201610067®Number=0000000000091685&sum=145000 [21:16:49]OFD Sender: Processing packet 227682 [packets to send 38, broken 37] [21:16:49]ProducePacketName [21:16:49]name=ofd_packets/00227682 [21:16:49]OFD Sender: To server: pG, [21:16:49]CommunicateWithHost lk.salyk.kg:30040 [21:16:49]ConnectInit lk.salyk.kg [21:16:49]written 0, free lines is 4095 [21:16:49]Connected sock=10 [21:16: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 33 39 0C 01 00 00 38 F2 04 01 E0 05 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 4A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 71 36 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 36 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 3C 00 00 00 00 07 04 06 00 68 36 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 02 00 00 F4 03 04 00 40 73 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 62 79 03 00 35 04 06 00 D7 C3 9E BB 8F 56 D0 CB DA E7 6A 6D 3D CC [21:16: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 33 39 4F 00 00 00 69 66 47 00 BD 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 62 79 03 00 F4 03 04 00 3E 1E 15 67 B6 04 01 00 00 80 AD CC C4 B7 B5 BA 05 [21:16:49]CommunicateWithHost err = 0 [21:16:49]CheckOFDResponse [21:16:49]1017 (14) - 77093643461234 [21:16:49]1041 (16) - 0000000000871839 [21:16:49]1040 (4) - 227682 [21:16:49]1012 (4) - 20.10.2024 15:14 [21:16:49]1206 (1) - 0 [21:16:49]OFD Sender: Remove packet 227682 [21:16:49]ProducePacketName [21:16:49]name=ofd_packets/00227682 [21:16:49]NVStorageDeleteData [21:16:49]Write to MH i2c: 01 00 00 A5 12 B7 [21:16:49]Write i2c OK [21:16:49]MH_I2C_Read... [21:16:49]Read from MH i2c: 01 [21:16:49]MH_I2C_Read... [21:16:49]Read from MH i2c: 01 07 00 [21:16:49]MH_I2C_Read... [21:16:49]Read from MH i2c: 01 07 00 A5 12 00 00 00 00 00 AB 0C 75 [21:16:49]RasterBufferAndPrint [21:16:49]line [21:16:49]line [21:16:49]line [21:16:49]line [21:16:49]line [21:16:49]written 0, free lines is 3247 [21:16:49]MH_Cut [21:16:49]Write to MH i2c: D1 01 00 AC 12 01 90 [21:16:49]Write i2c OK [21:16:49]MH_I2C_Read... [21:16:49]Read from MH i2c: D1 [21:16:49]MH_I2C_Read... [21:16:49]Read from MH i2c: D1 01 00 [21:16:49]MH_I2C_Read... [21:16:49]Read from MH i2c: D1 01 00 AC 12 00 8F [21:16:49]Write to MH i2c: 01 00 00 AD 12 BF [21:16:49]Write i2c OK [21:16:49]MH_I2C_Read... [21:16:50]OFD Sender: No OFD packet to send [21:16:50]*** Cut start [21:16:50]*** Partial cut [21:16:50]*** CUTSNS_PIN = 1 [21:16:50]*** CUTSNS_PIN = 0 [21:16:51]*** Brake cut motor [21:16:51]Read from MH i2c: 01 [21:16:51]MH_I2C_Read... [21:16:51]*** Stop cut motor [21:16:51]*** Cut end [21:16:51]Read from MH i2c: 01 07 00 [21:16:51]MH_I2C_Read... [21:16:51]Read from MH i2c: 01 07 00 AD 12 00 00 00 00 00 FF 0F D4 [21:16:51]process_action close_receipt done [21:16:51]requested_data is exist [21:16:51]produce_requested_data [21:16:51]requested_item fm.sn is exist - process it [21:16:51]wFMCommunicate request_size=4 [21:16:51]MH_SAM_APDU [21:16:51]CAPDU: 80 11 00 00 [21:16:51]Write to MH i2c: E2 08 00 AE 12 80 11 00 00 00 00 00 00 3A [21:16:51]Write i2c OK [21:16:51]MH_I2C_Read... [21:16:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:16:51]Read from MH i2c: E2 [21:16:51]MH_I2C_Read... [21:16:51]Read from MH i2c: E2 17 00 [21:16:51]MH_I2C_Read... [21:16:51]Read from MH i2c: E2 17 00 AE 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 91 [21:16:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:16:51]wFMCommunicate OK [21:16:51]requested_item fd.num is exist - process it [21:16:51]SAM_PROTO_GetFieldsCounters [21:16:51]wFMCommunicate request_size=4 [21:16:51]MH_SAM_APDU [21:16:51]CAPDU: 80 13 00 00 [21:16:51]Write to MH i2c: E2 08 00 AF 12 80 13 00 00 00 00 00 00 3D [21:16:51]Write i2c OK [21:16:51]MH_I2C_Read... [21:16:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:16:51]Read from MH i2c: E2 [21:16:51]MH_I2C_Read... [21:16:51]Read from MH i2c: E2 62 00 [21:16:51]MH_I2C_Read... [21:16:51]Read from MH i2c: E2 62 00 AF 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 62 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 12 02 00 00 5E 04 04 00 12 02 00 00 57 04 04 00 13 02 00 00 19 04 04 00 00 00 00 00 90 00 97 [21:16: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 62 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 12 02 00 00 5E 04 04 00 12 02 00 00 57 04 04 00 13 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:16:51]wFMCommunicate OK [21:16:51]SAM_PROTO_GetFieldsCounters done [21:16:51]requested_item shift.num is exist - process it [21:16:51]requested_item shift.opened is exist - process it [21:16:51]req_shift_opened [21:16:51]FM_GetShiftState [21:16:51]SAM_PROTO_GetShiftState [21:16:51]wFMCommunicate request_size=4 [21:16:51]MH_SAM_APDU [21:16:51]CAPDU: 80 13 01 00 [21:16:51]Write to MH i2c: E2 08 00 B0 12 80 13 01 00 00 00 00 00 3F [21:16:51]Write i2c OK [21:16:51]MH_I2C_Read... [21:16:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:16:51]Read from MH i2c: E2 [21:16:51]MH_I2C_Read... [21:16:51]Read from MH i2c: E2 0E 00 [21:16:51]MH_I2C_Read... [21:16:51]Read from MH i2c: E2 0E 00 B0 12 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 59 [21:16:51]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:16:51]wFMCommunicate OK [21:16:51]SAM_PROTO_GetShiftState done [21:16:51]FM_GetShiftState done [21:16:51]req_shift_opened done [21:16:51]requested_item shift.open_date is exist - process it [21:16:51]req_shift_open_date [21:16:51]req_shift_open_date done [21:16:51]produce_requested_data done [21:16:51]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227682,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [21:16:51]process_action_free close_receipt [21:16:51]json_value_free [21:16:51]json_value_free done [21:16:51]process_json_proto returns [21:16:51]Send response to host [21:16:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227682,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [21:16:51]free response buf [21:16:51]execute_script done [21:16:51]execute_script returns [21:16:51]free content buf [21:16:51]Sock 9.Close socket [21:16:51]Sock 9.Thread stoped [21:16:55]OFD Sender: No OFD packet to send [21:16:58]accept exits with 7 [21:16:58]New connection [21:16:58]New thread 3066666340 created [21:16:58]Thread 3066809700 joined [21:16:58]Waiting for new connection... [21:16:58] Sock 7.Parse request [21:16:58]Sock 7.Check first char [21:16:58]Sock 7.First char is OK [21:16:58]request: POST /json_proto HTTP/1.0 [21:16:58]Method: POST [21:16:58]URL: /json_proto [21:16:58]Method is POST - this is cgi request [21:16:58]url: /json_proto [21:16:58]query_string will be loaded in cgi processing [21:16:58]execute_cgi json_proto POST (null) [21:16:58]execute_cgi path=json_proto method=POST [21:16:58]POST find Content-Length [21:16:58]Host: 172.17.44.195:8080 [21:16:58]Content-Length: 678 [21:16:58]Content-Type: application/json [21:16:58] [21:16:58]POST finish read [21:16:58]Found Content-Length = 678 [21:16:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963346", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:16:58]execute_script... [21:16: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)1963346", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:16:58]POST & json_proto [21:16:58]process_json_proto [21:16:58]json parsed OK: [21:16:58]protocol is kg_v1.0 [21:16:58]action value=close_receipt [21:16:58]process_action close_receipt [21:16:58]cmd_close_receipt [21:16:58]MH_GetDate [21:16:58]Write to MH i2c: F0 00 00 B1 12 B2 [21:16:58]Write i2c OK [21:16:58]MH_I2C_Read... [21:16:58]Read from MH i2c: F0 [21:16:58]MH_I2C_Read... [21:16:58]Read from MH i2c: F0 09 00 [21:16:58]MH_I2C_Read... [21:16:58]Read from MH i2c: F0 09 00 B1 12 00 4B 73 15 67 82 C9 CF 66 75 [21:16:58]GetLastDocTimeStamp 1729459008 [21:16:58]current date 1729459019 [21:16:58]FM_GetShiftState [21:16:58]SAM_PROTO_GetShiftState [21:16:58]wFMCommunicate request_size=4 [21:16:58]MH_SAM_APDU [21:16:58]CAPDU: 80 13 01 00 [21:16:58]Write to MH i2c: E2 08 00 B2 12 80 13 01 00 00 00 00 00 41 [21:16:58]Write i2c OK [21:16:58]MH_I2C_Read... [21:16:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:16:58]Read from MH i2c: E2 [21:16:58]MH_I2C_Read... [21:16:58]Read from MH i2c: E2 0E 00 [21:16:58]MH_I2C_Read... [21:16:58]Read from MH i2c: E2 0E 00 B2 12 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 5B [21:16:58]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:16:58]wFMCommunicate OK [21:16:58]SAM_PROTO_GetShiftState done [21:16:58]FM_GetShiftState done [21:16:58]opened in 1729383750 [21:16:58]opened+sec_in_day 1729470150 [21:16:58]quantity*price = 50041 [21:16:58]sum+1 = 50042 [21:16:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 531 20.10.2024 21:16 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227683 ФПД: 146183629833417 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T211659&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227683&fm=146183629833417&tin=02508201610067®Number=0000000000091685&sum=50000 [21:16:59]StoreToDocumentArchive [21:16:59]shift 533 fd 227683 [21:16:59]save to /storage/0533/doc_00227683 [21:16:59]save last doc name /storage/0533/doc_00227683 to /storage/kkm_last_doc_name [21:16:59]save OK [21:16:59]Clear old archive folders... [21:16:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:16:59]tlvbuf is 00C436A0 [21:16:59]SAM_PROTO_ClearQueue [21:16:59]wFMCommunicate request_size=4 [21:16:59]MH_SAM_APDU [21:16:59]CAPDU: 80 09 00 00 [21:16:59]Write to MH i2c: E2 08 00 BF 12 80 09 00 00 00 00 00 00 43 [21:16:59]Write i2c OK [21:16:59]MH_I2C_Read... [21:16:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:16:59]Read from MH i2c: E2 [21:16:59]MH_I2C_Read... [21:16:59]Read from MH i2c: E2 03 00 [21:16:59]MH_I2C_Read... [21:16:59]Read from MH i2c: E2 03 00 BF 12 00 90 00 45 [21:16:59]RAPDU: 90 00 [21:16:59]wFMCommunicate OK [21:16:59]SAM_PROTO_ClearQueue done [21:16:59]KKMCreateOFDPacket [21:16:59]OFDProtocolAddRootSTLVToBuf [21:16:59]FM_MakeSignedData [21:16:59]FM_MakeSignedData [21:16:59]SAM_PROTO_SignData [21:16:59]wFMCommunicate request_size=4 [21:16:59]MH_SAM_APDU [21:16:59]CAPDU: 80 0D 01 02 [21:16:59]Write to MH i2c: E2 08 00 C0 12 80 0D 01 02 00 00 00 00 4B [21:16:59]Write i2c OK [21:16:59]MH_I2C_Read... [21:16:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:16:59]Read from MH i2c: E2 [21:16:59]MH_I2C_Read... [21:16:59]Read from MH i2c: E2 03 00 [21:16:59]MH_I2C_Read... [21:16:59]Read from MH i2c: E2 03 00 C0 12 00 90 00 46 [21:16:59]RAPDU: 90 00 [21:16:59]wFMCommunicate OK [21:16:59]wFMCommunicate request_size=255 [21:16:59]MH_SAM_APDU [21:16:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 02 00 00 F4 03 04 00 4B 73 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 63 79 03 00 35 04 06 00 84 [21:16:59]Write to MH i2c: E2 02 01 C1 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 02 00 00 F4 03 04 00 4B 73 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 63 79 03 00 35 04 06 00 84 00 00 AB [21:16:59]Write i2c OK [21:16:59]MH_I2C_Read... [21:17:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:17:00]Read from MH i2c: E2 [21:17:00]MH_I2C_Read... [21:17:00]Read from MH i2c: E2 03 00 [21:17:00]MH_I2C_Read... [21:17:00]Read from MH i2c: E2 03 00 C1 12 00 90 00 47 [21:17:00]RAPDU: 90 00 [21:17:00]wFMCommunicate OK [21:17:00]wFMCommunicate request_size=10 [21:17:00]MH_SAM_APDU [21:17:00]CAPDU: 80 0D 02 02 05 F4 07 54 04 C9 [21:17:00]Write to MH i2c: E2 0D 00 C2 12 80 0D 02 02 05 00 F4 07 54 04 C9 00 00 74 [21:17:00]Write i2c OK [21:17:00]MH_I2C_Read... [21:17:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:17:00]Read from MH i2c: E2 [21:17:00]MH_I2C_Read... [21:17:00]Read from MH i2c: E2 03 00 [21:17:00]MH_I2C_Read... [21:17:00]Read from MH i2c: E2 03 00 C2 12 00 90 00 48 [21:17:00]RAPDU: 90 00 [21:17:00]wFMCommunicate OK [21:17:00]wFMCommunicate request_size=4 [21:17:00]MH_SAM_APDU [21:17:00]CAPDU: 80 0D 03 02 [21:17:00]Write to MH i2c: E2 08 00 C3 12 80 0D 03 02 00 00 00 00 50 [21:17:00]Write i2c OK [21:17:00]MH_I2C_Read... [21:17:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:17:00]Read from MH i2c: E2 [21:17:00]MH_I2C_Read... [21:17:00]Read from MH i2c: E2 0B 00 [21:17:00]MH_I2C_Read... [21:17:00]Read from MH i2c: E2 0B 00 C3 12 00 CC F0 B5 95 45 DC 3F 34 90 00 EB [21:17:00]RAPDU: CC F0 B5 95 45 DC 3F 34 90 00 [21:17:00]wFMCommunicate OK [21:17:00]SAM_PROTO_SignData done [21:17:00]FM_MakeSignedData done [21:17:00]CreateOFDProtocolMessage [21:17:00]wFMCommunicate request_size=4 [21:17:00]MH_SAM_APDU [21:17:00]CAPDU: 80 11 00 00 [21:17:00]Write to MH i2c: E2 08 00 C4 12 80 11 00 00 00 00 00 00 50 [21:17:00]Write i2c OK [21:17:00]MH_I2C_Read... [21:17:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:17:00]Read from MH i2c: E2 [21:17:00]MH_I2C_Read... [21:17:00]Read from MH i2c: E2 17 00 [21:17:00]MH_I2C_Read... [21:17:00]Read from MH i2c: E2 17 00 C4 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A7 [21:17:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:17:00]wFMCommunicate OK [21:17:00]CreateOFDProtocolMessage done [21:17:00]OFDSenderStorePacket 227683 [21:17:00]StoreOFDPacket docnum=227683 [21:17:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 78 B2 07 01 51 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 02 00 00 F4 03 04 00 4B 73 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 63 79 03 00 35 04 06 00 84 F4 07 54 04 C9 CC F0 B5 95 45 DC 3F 34 [21:17:00]CheckFolder [21:17:00]dirname=/storage/ofd_packets [21:17:00]CheckFolder done [21:17:00]ProducePacketName [21:17:00]name=ofd_packets/00227683 [21:17:00]NVStorageSaveData ofd_packets/00227683 [21:17:00]File name is /storage/ofd_packets/00227683 [21:17:00]Write 301 bytes [21:17:00]NVStorageSaveData done [21:17:00]OFDSenderStorePacket done [21:17:00]KKMCreateOFDPacket done [21:17:00]NVStorageSaveData kkm_last_timestamp [21:17:00]File name is /storage/kkm_last_timestamp [21:17:00]Write 4 bytes [21:17:00]NVStorageSaveData done [21:17:00]ExternCall_PrintAddStr [21:17:00]wPrintStart [21:17:00]Write to MH i2c: 01 00 00 C5 12 D7 [21:17:00]Write i2c OK [21:17:00]MH_I2C_Read... [21:17:00]Read from MH i2c: 01 [21:17:00]MH_I2C_Read... [21:17:00]Read from MH i2c: 01 07 00 [21:17:00]MH_I2C_Read... [21:17:00]Read from MH i2c: 01 07 00 C5 12 00 00 00 00 00 FF 0F EC [21:17:00]RasterBufferAndPrint [21:17:00]line Счет N : (1)1963346 [21:17:00]line ИНН: 02508201610067 [21:17:00]line Контрольно-Кассовый Чек [21:17:00]line ПРОДАЖА [21:17:00]line ТРК (МРК, ГНК) : 43 [21:17:00]line Товар: 2710124130 [21:17:00]line Аи-92-К-5 [21:17:00]line 7.480 * 66.90 [21:17:00]line = 500.41 [21:17:00]line НДС 12% НСП 1% [21:17:00]line > о реализуемом товаре [21:17:00]line ОКРУГЛЕНИЕ: -0.41 [21:17:00]line ИТОГО: 500.00 [21:17:00]line Внесено: 500.00 [21:17:00]line СДАЧА: 0.00 [21:17:00]line НСП 1% : 4.43 [21:17:00]line НДС 12% : 53.14 [21:17:00]line Наличными: 500.00 [21:17:00]line Безнал.: 0.00 [21:17:00]line Место: АЗС № 133 "Партнер Нефть" [21:17:00]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [21:17:00]line СНО: Общий режим [21:17:00]line Чек 531 20.10.2024 21:16 [21:17:00]line Смена: 533 ФФД: 1.0 [21:17:00]line ЗНМ: 0300000091 [21:17:00]line РНМ: 0000000000091685 [21:17:00]line Версия ККМ: 001 [21:17:00]line ФМ: 0000000000871839 [21:17:00]line ФД: 227683 [21:17:00]line ФПД: 146183629833417 [21:17:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T211659&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227683&fm=146183629833417&tin=02508201610067®Number=0000000000091685&sum=50000 [21:17:00]written 0, free lines is 4095 [21:17:00]OFD Sender: Processing packet 227683 [packets to send 38, broken 37] [21:17:00]ProducePacketName [21:17:00]name=ofd_packets/00227683 [21:17:00]OFD Sender: To server: pG, [21:17:00]CommunicateWithHost lk.salyk.kg:30040 [21:17:00]ConnectInit lk.salyk.kg [21:17:00]Connected sock=10 [21:17: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 33 39 0F 01 00 00 78 B2 07 01 51 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 02 00 00 F4 03 04 00 4B 73 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 63 79 03 00 35 04 06 00 84 F4 07 54 04 C9 CC F0 B5 95 45 DC 3F 34 [21:17: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 33 39 4F 00 00 00 A1 58 47 00 6D 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 33 39 10 04 04 00 63 79 03 00 F4 03 04 00 49 1E 15 67 B6 04 01 00 00 B0 8B 14 4E BF F2 FF 2A [21:17:00]CommunicateWithHost err = 0 [21:17:00]CheckOFDResponse [21:17:00]1017 (14) - 77093643461234 [21:17:00]1041 (16) - 0000000000871839 [21:17:00]1040 (4) - 227683 [21:17:00]1012 (4) - 20.10.2024 15:14 [21:17:00]1206 (1) - 0 [21:17:00]OFD Sender: Remove packet 227683 [21:17:00]ProducePacketName [21:17:00]name=ofd_packets/00227683 [21:17:00]NVStorageDeleteData [21:17:00]Write to MH i2c: 01 00 00 EF 12 01 [21:17:00]Write i2c OK [21:17:00]MH_I2C_Read... [21:17:00]Read from MH i2c: 01 [21:17:00]MH_I2C_Read... [21:17:00]Read from MH i2c: 01 07 00 [21:17:00]MH_I2C_Read... [21:17:00]Read from MH i2c: 01 07 00 EF 12 00 00 00 00 00 AB 0C BF [21:17:00]RasterBufferAndPrint [21:17:00]line [21:17:00]line [21:17:00]line [21:17:00]line [21:17:00]line [21:17:00]written 0, free lines is 3248 [21:17:00]MH_Cut [21:17:00]Write to MH i2c: D1 01 00 F6 12 01 DA [21:17:00]Write i2c OK [21:17:00]MH_I2C_Read... [21:17:00]Read from MH i2c: D1 [21:17:00]MH_I2C_Read... [21:17:00]Read from MH i2c: D1 01 00 [21:17:00]MH_I2C_Read... [21:17:00]Read from MH i2c: D1 01 00 F6 12 00 D9 [21:17:00]Write to MH i2c: 01 00 00 F7 12 09 [21:17:00]Write i2c OK [21:17:00]MH_I2C_Read... [21:17:01]OFD Sender: No OFD packet to send [21:17:01]*** Cut start [21:17:01]*** Partial cut [21:17:01]*** CUTSNS_PIN = 1 [21:17:01]*** CUTSNS_PIN = 0 [21:17:02]*** Brake cut motor [21:17:02]Read from MH i2c: 01 [21:17:02]MH_I2C_Read... [21:17:02]*** Stop cut motor [21:17:02]*** Cut end [21:17:02]Read from MH i2c: 01 07 00 [21:17:02]MH_I2C_Read... [21:17:02]Read from MH i2c: 01 07 00 F7 12 00 00 00 00 00 FF 0F 1E [21:17:02]process_action close_receipt done [21:17:02]requested_data is exist [21:17:02]produce_requested_data [21:17:02]requested_item fm.sn is exist - process it [21:17:02]wFMCommunicate request_size=4 [21:17:02]MH_SAM_APDU [21:17:02]CAPDU: 80 11 00 00 [21:17:02]Write to MH i2c: E2 08 00 F8 12 80 11 00 00 00 00 00 00 84 [21:17:02]Write i2c OK [21:17:02]MH_I2C_Read... [21:17:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:17:02]Read from MH i2c: E2 [21:17:02]MH_I2C_Read... [21:17:02]Read from MH i2c: E2 17 00 [21:17:02]MH_I2C_Read... [21:17:02]Read from MH i2c: E2 17 00 F8 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 DB [21:17:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:17:02]wFMCommunicate OK [21:17:02]requested_item fd.num is exist - process it [21:17:02]SAM_PROTO_GetFieldsCounters [21:17:02]wFMCommunicate request_size=4 [21:17:02]MH_SAM_APDU [21:17:02]CAPDU: 80 13 00 00 [21:17:02]Write to MH i2c: E2 08 00 F9 12 80 13 00 00 00 00 00 00 87 [21:17:02]Write i2c OK [21:17:02]MH_I2C_Read... [21:17:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:17:02]Read from MH i2c: E2 [21:17:02]MH_I2C_Read... [21:17:02]Read from MH i2c: E2 62 00 [21:17:02]MH_I2C_Read... [21:17:02]Read from MH i2c: E2 62 00 F9 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 63 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 13 02 00 00 5E 04 04 00 13 02 00 00 57 04 04 00 14 02 00 00 19 04 04 00 00 00 00 00 90 00 E5 [21:17: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 63 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 13 02 00 00 5E 04 04 00 13 02 00 00 57 04 04 00 14 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:17:02]wFMCommunicate OK [21:17:02]SAM_PROTO_GetFieldsCounters done [21:17:02]requested_item shift.num is exist - process it [21:17:02]requested_item shift.opened is exist - process it [21:17:02]req_shift_opened [21:17:02]FM_GetShiftState [21:17:02]SAM_PROTO_GetShiftState [21:17:02]wFMCommunicate request_size=4 [21:17:02]MH_SAM_APDU [21:17:02]CAPDU: 80 13 01 00 [21:17:02]Write to MH i2c: E2 08 00 FA 12 80 13 01 00 00 00 00 00 89 [21:17:02]Write i2c OK [21:17:02]MH_I2C_Read... [21:17:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:17:02]Read from MH i2c: E2 [21:17:02]MH_I2C_Read... [21:17:02]Read from MH i2c: E2 0E 00 [21:17:02]MH_I2C_Read... [21:17:02]Read from MH i2c: E2 0E 00 FA 12 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 A3 [21:17:02]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:17:02]wFMCommunicate OK [21:17:02]SAM_PROTO_GetShiftState done [21:17:02]FM_GetShiftState done [21:17:02]req_shift_opened done [21:17:02]requested_item shift.open_date is exist - process it [21:17:02]req_shift_open_date [21:17:02]req_shift_open_date done [21:17:02]produce_requested_data done [21:17:02]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227683,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [21:17:02]process_action_free close_receipt [21:17:02]json_value_free [21:17:02]json_value_free done [21:17:02]process_json_proto returns [21:17:02]Send response to host [21:17:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227683,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [21:17:02]free response buf [21:17:02]execute_script done [21:17:02]execute_script returns [21:17:02]free content buf [21:17:02]Sock 7.Close socket [21:17:02]Sock 7.Thread stoped [21:17:06]OFD Sender: No OFD packet to send [21:17:11]OFD Sender: No OFD packet to send [21:17:16]OFD Sender: No OFD packet to send [21:17:21]OFD Sender: No OFD packet to send [21:17:26]OFD Sender: No OFD packet to send [21:17:31]OFD Sender: No OFD packet to send [21:17:36]OFD Sender: No OFD packet to send [21:17:41]OFD Sender: No OFD packet to send [21:17:46]OFD Sender: No OFD packet to send [21:17:50]accept exits with 9 [21:17:50]New connection [21:17:50]New thread 3066809700 created [21:17:50]Thread 3066666340 joined [21:17:50]Waiting for new connection... [21:17:50] Sock 9.Parse request [21:17:50]Sock 9.Check first char [21:17:50]Sock 9.First char is OK [21:17:50]request: POST /json_proto HTTP/1.0 [21:17:50]Method: POST [21:17:50]URL: /json_proto [21:17:50]Method is POST - this is cgi request [21:17:50]url: /json_proto [21:17:50]query_string will be loaded in cgi processing [21:17:50]execute_cgi json_proto POST (null) [21:17:50]execute_cgi path=json_proto method=POST [21:17:50]POST find Content-Length [21:17:50]Host: 172.17.44.195:8080 [21:17:50]Content-Length: 770 [21:17:50]Content-Type: application/json [21:17:50] [21:17:50]POST finish read [21:17:50]Found Content-Length = 770 [21:17:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963347", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:17:50]execute_script... [21:17: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)1963347", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:17:50]POST & json_proto [21:17:50]process_json_proto [21:17:50]json parsed OK: [21:17:50]protocol is kg_v1.0 [21:17:50]action value=close_receipt [21:17:50]process_action close_receipt [21:17:50]cmd_close_receipt [21:17:50]MH_GetDate [21:17:50]Write to MH i2c: F0 00 00 FB 12 FC [21:17:50]Write i2c OK [21:17:50]MH_I2C_Read... [21:17:50]Read from MH i2c: F0 [21:17:50]MH_I2C_Read... [21:17:50]Read from MH i2c: F0 09 00 [21:17:50]MH_I2C_Read... [21:17:50]Read from MH i2c: F0 09 00 FB 12 00 7F 73 15 67 82 C9 CF 66 F3 [21:17:50]GetLastDocTimeStamp 1729459019 [21:17:50]current date 1729459071 [21:17:50]FM_GetShiftState [21:17:50]SAM_PROTO_GetShiftState [21:17:50]wFMCommunicate request_size=4 [21:17:50]MH_SAM_APDU [21:17:50]CAPDU: 80 13 01 00 [21:17:50]Write to MH i2c: E2 08 00 FC 12 80 13 01 00 00 00 00 00 8B [21:17:50]Write i2c OK [21:17:50]MH_I2C_Read... [21:17:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:17:50]Read from MH i2c: E2 [21:17:50]MH_I2C_Read... [21:17:50]Read from MH i2c: E2 0E 00 [21:17:50]MH_I2C_Read... [21:17:50]Read from MH i2c: E2 0E 00 FC 12 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 A5 [21:17:50]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:17:50]wFMCommunicate OK [21:17:50]SAM_PROTO_GetShiftState done [21:17:50]FM_GetShiftState done [21:17:50]opened in 1729383750 [21:17:50]opened+sec_in_day 1729470150 [21:17:50]quantity*price = 100021 [21:17:50]sum+1 = 100023 [21:17:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 532 20.10.2024 21:17 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 227684 ФПД: 101883943645964 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T211751&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227684&fm=101883943645964&tin=02508201610067®Number=0000000000091685&sum=100022 [21:17:51]StoreToDocumentArchive [21:17:51]shift 533 fd 227684 [21:17:51]save to /storage/0533/doc_00227684 [21:17:51]save last doc name /storage/0533/doc_00227684 to /storage/kkm_last_doc_name [21:17:51]save OK [21:17:51]Clear old archive folders... [21:17:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:17:51]tlvbuf is B6EB7B20 [21:17:51]SAM_PROTO_ClearQueue [21:17:51]wFMCommunicate request_size=4 [21:17:51]MH_SAM_APDU [21:17:51]CAPDU: 80 09 00 00 [21:17:51]Write to MH i2c: E2 08 00 09 13 80 09 00 00 00 00 00 00 8E [21:17:51]Write i2c OK [21:17:51]MH_I2C_Read... [21:17:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:17:51]Read from MH i2c: E2 [21:17:51]MH_I2C_Read... [21:17:51]Read from MH i2c: E2 03 00 [21:17:51]MH_I2C_Read... [21:17:51]Read from MH i2c: E2 03 00 09 13 00 90 00 90 [21:17:51]RAPDU: 90 00 [21:17:51]wFMCommunicate OK [21:17:51]SAM_PROTO_ClearQueue done [21:17:51]KKMCreateOFDPacket [21:17:51]OFDProtocolAddRootSTLVToBuf [21:17:51]FM_MakeSignedData [21:17:51]FM_MakeSignedData [21:17:51]SAM_PROTO_SignData [21:17:51]wFMCommunicate request_size=4 [21:17:51]MH_SAM_APDU [21:17:51]CAPDU: 80 0D 01 02 [21:17:51]Write to MH i2c: E2 08 00 0A 13 80 0D 01 02 00 00 00 00 96 [21:17:51]Write i2c OK [21:17:51]MH_I2C_Read... [21:17:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:17:52]Read from MH i2c: E2 [21:17:52]MH_I2C_Read... [21:17:52]Read from MH i2c: E2 03 00 [21:17:52]MH_I2C_Read... [21:17:52]Read from MH i2c: E2 03 00 0A 13 00 90 00 91 [21:17:52]RAPDU: 90 00 [21:17:52]wFMCommunicate OK [21:17:52]wFMCommunicate request_size=255 [21:17:52]MH_SAM_APDU [21:17: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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 02 00 00 F4 03 04 00 7F 73 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 64 79 03 00 35 04 06 00 5C [21:17:52]Write to MH i2c: E2 02 01 0B 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 02 00 00 F4 03 04 00 7F 73 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 64 79 03 00 35 04 06 00 5C 00 00 4D [21:17:52]Write i2c OK [21:17:52]MH_I2C_Read... [21:17:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:17:52]Read from MH i2c: E2 [21:17:52]MH_I2C_Read... [21:17:52]Read from MH i2c: E2 03 00 [21:17:52]MH_I2C_Read... [21:17:52]Read from MH i2c: E2 03 00 0B 13 00 90 00 92 [21:17:52]RAPDU: 90 00 [21:17:52]wFMCommunicate OK [21:17:52]wFMCommunicate request_size=10 [21:17:52]MH_SAM_APDU [21:17:52]CAPDU: 80 0D 02 02 05 A9 B4 44 F3 0C [21:17:52]Write to MH i2c: E2 0D 00 0C 13 80 0D 02 02 05 00 A9 B4 44 F3 0C 00 00 43 [21:17:52]Write i2c OK [21:17:52]MH_I2C_Read... [21:17:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:17:52]Read from MH i2c: E2 [21:17:52]MH_I2C_Read... [21:17:52]Read from MH i2c: E2 03 00 [21:17:52]MH_I2C_Read... [21:17:52]Read from MH i2c: E2 03 00 0C 13 00 90 00 93 [21:17:52]RAPDU: 90 00 [21:17:52]wFMCommunicate OK [21:17:52]wFMCommunicate request_size=4 [21:17:52]MH_SAM_APDU [21:17:52]CAPDU: 80 0D 03 02 [21:17:52]Write to MH i2c: E2 08 00 0D 13 80 0D 03 02 00 00 00 00 9B [21:17:52]Write i2c OK [21:17:52]MH_I2C_Read... [21:17:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:17:52]Read from MH i2c: E2 [21:17:52]MH_I2C_Read... [21:17:52]Read from MH i2c: E2 0B 00 [21:17:52]MH_I2C_Read... [21:17:52]Read from MH i2c: E2 0B 00 0D 13 00 CB 46 8C F0 D6 14 96 8B 90 00 34 [21:17:52]RAPDU: CB 46 8C F0 D6 14 96 8B 90 00 [21:17:52]wFMCommunicate OK [21:17:52]SAM_PROTO_SignData done [21:17:52]FM_MakeSignedData done [21:17:52]CreateOFDProtocolMessage [21:17:52]wFMCommunicate request_size=4 [21:17:52]MH_SAM_APDU [21:17:52]CAPDU: 80 11 00 00 [21:17:52]Write to MH i2c: E2 08 00 0E 13 80 11 00 00 00 00 00 00 9B [21:17:52]Write i2c OK [21:17:52]MH_I2C_Read... [21:17:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:17:52]Read from MH i2c: E2 [21:17:52]MH_I2C_Read... [21:17:52]Read from MH i2c: E2 17 00 [21:17:52]MH_I2C_Read... [21:17:52]Read from MH i2c: E2 17 00 0E 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F2 [21:17:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:17:52]wFMCommunicate OK [21:17:52]CreateOFDProtocolMessage done [21:17:52]OFDSenderStorePacket 227684 [21:17:52]StoreOFDPacket docnum=227684 [21:17:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 CC 56 07 01 1A 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 02 00 00 F4 03 04 00 7F 73 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 64 79 03 00 35 04 06 00 5C A9 B4 44 F3 0C CB 46 8C F0 D6 14 96 8B [21:17:52]CheckFolder [21:17:52]dirname=/storage/ofd_packets [21:17:52]CheckFolder done [21:17:52]ProducePacketName [21:17:52]name=ofd_packets/00227684 [21:17:52]NVStorageSaveData ofd_packets/00227684 [21:17:52]File name is /storage/ofd_packets/00227684 [21:17:52]Write 301 bytes [21:17:52]NVStorageSaveData done [21:17:52]OFDSenderStorePacket done [21:17:52]KKMCreateOFDPacket done [21:17:52]NVStorageSaveData kkm_last_timestamp [21:17:52]File name is /storage/kkm_last_timestamp [21:17:52]Write 4 bytes [21:17:52]NVStorageSaveData done [21:17:52]ExternCall_PrintAddStr [21:17:52]wPrintStart [21:17:52]Write to MH i2c: 01 00 00 0F 13 22 [21:17:52]Write i2c OK [21:17:52]MH_I2C_Read... [21:17:52]Read from MH i2c: 01 [21:17:52]MH_I2C_Read... [21:17:52]Read from MH i2c: 01 07 00 [21:17:52]MH_I2C_Read... [21:17:52]Read from MH i2c: 01 07 00 0F 13 00 00 00 00 00 FF 0F 37 [21:17:52]RasterBufferAndPrint [21:17:52]line Счет N : (1)1963347 [21:17:52]line ИНН: 02508201610067 [21:17:52]line Контрольно-Кассовый Чек [21:17:52]line ПРОДАЖА [21:17:52]line ТРК (МРК, ГНК) : 64 [21:17:52]line Товар: 2710124500 [21:17:52]line Аи-95-К-5 [21:17:52]line 13.480 * 74.20 [21:17:52]line = 1000.22 [21:17:52]line НДС 12% НСП 1% [21:17:52]line > о реализуемом товаре [21:17:52]line ИТОГО: 1000.22 [21:17:52]line НСП 1% : 8.85 [21:17:52]line НДС 12% : 106.22 [21:17:52]line Наличными: 0.00 [21:17:52]line Безнал.: 1000.22 [21:17:52]line Место: АЗС № 133 "Партнер Нефть" [21:17:52]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [21:17:52]line СНО: Общий режим [21:17:52]line Чек 532 20.10.2024 21:17 [21:17:52]line Смена: 533 ФФД: 1.0 [21:17:52]line ЗНМ: 0300000091 [21:17:52]line РНМ: 0000000000091685 [21:17:52]line Версия ККМ: 001 [21:17:52]line Платежная система: Mbank [21:17:52]line ФМ: 0000000000871839 [21:17:52]line ФД: 227684 [21:17:52]line ФПД: 101883943645964 [21:17:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T211751&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227684&fm=101883943645964&tin=02508201610067®Number=0000000000091685&sum=100022 [21:17:52]OFD Sender: Processing packet 227684 [packets to send 38, broken 37] [21:17:52]ProducePacketName [21:17:52]name=ofd_packets/00227684 [21:17:52]OFD Sender: To server: pG, [21:17:52]CommunicateWithHost lk.salyk.kg:30040 [21:17:52]ConnectInit lk.salyk.kg [21:17:52]written 0, free lines is 4095 [21:17:52]Connected sock=10 [21:17: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 33 39 0F 01 00 00 CC 56 07 01 1A 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 02 00 00 F4 03 04 00 7F 73 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 64 79 03 00 35 04 06 00 5C A9 B4 44 F3 0C CB 46 8C F0 D6 14 96 8B [21:17: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 33 39 4F 00 00 00 11 27 47 00 09 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 64 79 03 00 F4 03 04 00 7D 1E 15 67 B6 04 01 00 00 7F 77 9E 94 9C 49 4F D8 [21:17:53]CommunicateWithHost err = 0 [21:17:53]CheckOFDResponse [21:17:53]1017 (14) - 77093643461234 [21:17:53]1041 (16) - 0000000000871839 [21:17:53]1040 (4) - 227684 [21:17:53]1012 (4) - 20.10.2024 15:15 [21:17:53]1206 (1) - 0 [21:17:53]OFD Sender: Remove packet 227684 [21:17:53]ProducePacketName [21:17:53]name=ofd_packets/00227684 [21:17:53]NVStorageDeleteData [21:17:53]Write to MH i2c: 01 00 00 37 13 4A [21:17:53]Write i2c OK [21:17:53]MH_I2C_Read... [21:17:53]Read from MH i2c: 01 [21:17:53]MH_I2C_Read... [21:17:53]Read from MH i2c: 01 07 00 [21:17:53]MH_I2C_Read... [21:17:53]Read from MH i2c: 01 07 00 37 13 00 00 00 00 00 E2 0C 3F [21:17:53]RasterBufferAndPrint [21:17:53]line [21:17:53]line [21:17:53]line [21:17:53]line [21:17:53]line [21:17:53]written 0, free lines is 3302 [21:17:53]MH_Cut [21:17:53]Write to MH i2c: D1 01 00 3E 13 01 23 [21:17:53]Write i2c OK [21:17:53]MH_I2C_Read... [21:17:53]Read from MH i2c: D1 [21:17:53]MH_I2C_Read... [21:17:53]Read from MH i2c: D1 01 00 [21:17:53]MH_I2C_Read... [21:17:53]Read from MH i2c: D1 01 00 3E 13 00 22 [21:17:53]Write to MH i2c: 01 00 00 3F 13 52 [21:17:53]Write i2c OK [21:17:53]MH_I2C_Read... [21:17:53]OFD Sender: No OFD packet to send [21:17:54]*** Cut start [21:17:54]*** Partial cut [21:17:54]*** CUTSNS_PIN = 1 [21:17:54]*** CUTSNS_PIN = 0 [21:17:54]*** Brake cut motor [21:17:54]Read from MH i2c: 01 [21:17:54]MH_I2C_Read... [21:17:54]*** Stop cut motor [21:17:54]*** Cut end [21:17:54]Read from MH i2c: 01 07 00 [21:17:54]MH_I2C_Read... [21:17:54]Read from MH i2c: 01 07 00 3F 13 00 00 00 00 00 FF 0F 67 [21:17:54]process_action close_receipt done [21:17:54]requested_data is exist [21:17:54]produce_requested_data [21:17:54]requested_item fm.sn is exist - process it [21:17:54]wFMCommunicate request_size=4 [21:17:54]MH_SAM_APDU [21:17:54]CAPDU: 80 11 00 00 [21:17:54]Write to MH i2c: E2 08 00 40 13 80 11 00 00 00 00 00 00 CD [21:17:54]Write i2c OK [21:17:54]MH_I2C_Read... [21:17:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:17:54]Read from MH i2c: E2 [21:17:54]MH_I2C_Read... [21:17:54]Read from MH i2c: E2 17 00 [21:17:54]MH_I2C_Read... [21:17:54]Read from MH i2c: E2 17 00 40 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 24 [21:17:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:17:54]wFMCommunicate OK [21:17:54]requested_item fd.num is exist - process it [21:17:54]SAM_PROTO_GetFieldsCounters [21:17:54]wFMCommunicate request_size=4 [21:17:54]MH_SAM_APDU [21:17:54]CAPDU: 80 13 00 00 [21:17:54]Write to MH i2c: E2 08 00 41 13 80 13 00 00 00 00 00 00 D0 [21:17:54]Write i2c OK [21:17:54]MH_I2C_Read... [21:17:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:17:54]Read from MH i2c: E2 [21:17:54]MH_I2C_Read... [21:17:54]Read from MH i2c: E2 62 00 [21:17:54]MH_I2C_Read... [21:17:54]Read from MH i2c: E2 62 00 41 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 64 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 14 02 00 00 5E 04 04 00 14 02 00 00 57 04 04 00 15 02 00 00 19 04 04 00 00 00 00 00 90 00 32 [21:17: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 64 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 14 02 00 00 5E 04 04 00 14 02 00 00 57 04 04 00 15 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:17:54]wFMCommunicate OK [21:17:54]SAM_PROTO_GetFieldsCounters done [21:17:54]requested_item shift.num is exist - process it [21:17:54]requested_item shift.opened is exist - process it [21:17:54]req_shift_opened [21:17:54]FM_GetShiftState [21:17:54]SAM_PROTO_GetShiftState [21:17:54]wFMCommunicate request_size=4 [21:17:54]MH_SAM_APDU [21:17:54]CAPDU: 80 13 01 00 [21:17:54]Write to MH i2c: E2 08 00 42 13 80 13 01 00 00 00 00 00 D2 [21:17:54]Write i2c OK [21:17:54]MH_I2C_Read... [21:17:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:17:55]Read from MH i2c: E2 [21:17:55]MH_I2C_Read... [21:17:55]Read from MH i2c: E2 0E 00 [21:17:55]MH_I2C_Read... [21:17:55]Read from MH i2c: E2 0E 00 42 13 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 EC [21:17:55]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:17:55]wFMCommunicate OK [21:17:55]SAM_PROTO_GetShiftState done [21:17:55]FM_GetShiftState done [21:17:55]req_shift_opened done [21:17:55]requested_item shift.open_date is exist - process it [21:17:55]req_shift_open_date [21:17:55]req_shift_open_date done [21:17:55]produce_requested_data done [21:17:55]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227684,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [21:17:55]process_action_free close_receipt [21:17:55]json_value_free [21:17:55]json_value_free done [21:17:55]process_json_proto returns [21:17:55]Send response to host [21:17:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227684,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [21:17:55]free response buf [21:17:55]execute_script done [21:17:55]execute_script returns [21:17:55]free content buf [21:17:55]Sock 9.Close socket [21:17:55]Sock 9.Thread stoped [21:17:56]int [21:17:56]Write to MH i2c: 01 00 00 43 13 56 [21:17:56]*** FLAG_PRN_PAP1 set [21:17:56]Write i2c OK [21:17:56]MH_I2C_Read... [21:17:56]Read from MH i2c: 01 [21:17:56]MH_I2C_Read... [21:17:56]Read from MH i2c: 01 07 00 [21:17:56]MH_I2C_Read... [21:17:56]Read from MH i2c: 01 07 00 43 13 00 01 00 00 00 FF 0F 6C [21:17:56]state=0 [21:17:56]No paper [21:17:56]int [21:17:56]Write to MH i2c: 01 00 00 44 13 57 [21:17:57]*** FLAG_PRN_PAP2 set [21:17:57]Write i2c OK [21:17:57]MH_I2C_Read... [21:17:57]Read from MH i2c: 01 [21:17:57]MH_I2C_Read... [21:17:57]Read from MH i2c: 01 07 00 [21:17:57]MH_I2C_Read... [21:17:57]Read from MH i2c: 01 07 00 44 13 00 03 00 00 00 FF 0F 6F [21:17:57]state=0 [21:17:57]No paper [21:17:57]Cover opened [21:17:58]OFD Sender: No OFD packet to send [21:18:02]Write to MH i2c: 01 00 00 45 13 58 [21:18:02]Write i2c OK [21:18:02]MH_I2C_Read... [21:18:02]Read from MH i2c: 01 [21:18:02]MH_I2C_Read... [21:18:02]Read from MH i2c: 01 07 00 [21:18:02]MH_I2C_Read... [21:18:02]Read from MH i2c: 01 07 00 45 13 00 03 00 00 00 FF 0F 70 [21:18:02]state=3 [21:18:02]No paper [21:18:02]Cover opened [21:18:03]OFD Sender: No OFD packet to send [21:18:03]int [21:18:03]Write to MH i2c: 01 00 00 46 13 59 [21:18:03]*** FLAG_PRN_PAP1 reset [21:18:03]*** FLAG_PRN_PAP2 reset [21:18:03]Write i2c OK [21:18:03]MH_I2C_Read... [21:18:03]Read from MH i2c: 01 [21:18:03]MH_I2C_Read... [21:18:03]Read from MH i2c: 01 07 00 [21:18:03]MH_I2C_Read... [21:18:03]Read from MH i2c: 01 07 00 46 13 00 00 00 00 00 FF 0F 6E [21:18:03]state=3 [21:18:03]Cover closed [21:18:08]OFD Sender: No OFD packet to send [21:18:13]OFD Sender: No OFD packet to send [21:18:18]OFD Sender: No OFD packet to send [21:18:23]OFD Sender: No OFD packet to send [21:18:28]OFD Sender: No OFD packet to send [21:18:33]OFD Sender: No OFD packet to send [21:18:38]OFD Sender: No OFD packet to send [21:18:43]OFD Sender: No OFD packet to send [21:18:48]OFD Sender: No OFD packet to send [21:18:53]OFD Sender: No OFD packet to send [21:18:58]OFD Sender: No OFD packet to send [21:19:03]OFD Sender: No OFD packet to send [21:19:08]OFD Sender: No OFD packet to send [21:19:13]OFD Sender: No OFD packet to send [21:19:18]OFD Sender: No OFD packet to send [21:19:23]OFD Sender: No OFD packet to send [21:19:28]OFD Sender: No OFD packet to send [21:19:33]OFD Sender: No OFD packet to send [21:19:38]OFD Sender: No OFD packet to send [21:19:43]OFD Sender: No OFD packet to send [21:19:48]OFD Sender: No OFD packet to send [21:19:53]OFD Sender: No OFD packet to send [21:19:58]OFD Sender: No OFD packet to send [21:20:03]OFD Sender: No OFD packet to send [21:20:08]OFD Sender: No OFD packet to send [21:20:13]OFD Sender: No OFD packet to send [21:20:18]OFD Sender: No OFD packet to send [21:20:23]OFD Sender: No OFD packet to send [21:20:28]OFD Sender: No OFD packet to send [21:20:33]OFD Sender: No OFD packet to send [21:20:38]OFD Sender: No OFD packet to send [21:20:43]OFD Sender: No OFD packet to send [21:20:48]OFD Sender: No OFD packet to send [21:20:51]accept exits with 7 [21:20:51]New connection [21:20:51]New thread 3066666340 created [21:20:51]Thread 3066809700 joined [21:20:51]Waiting for new connection... [21:20:51] Sock 7.Parse request [21:20:51]Sock 7.Check first char [21:20:51]Sock 7.First char is OK [21:20:51]request: POST /json_proto HTTP/1.0 [21:20:51]Method: POST [21:20:51]URL: /json_proto [21:20:51]Method is POST - this is cgi request [21:20:51]url: /json_proto [21:20:51]query_string will be loaded in cgi processing [21:20:51]execute_cgi json_proto POST (null) [21:20:51]execute_cgi path=json_proto method=POST [21:20:51]POST find Content-Length [21:20:51]Host: 172.17.44.195:8080 [21:20:51]Content-Length: 679 [21:20:51]Content-Type: application/json [21:20:51] [21:20:51]POST finish read [21:20:51]Found Content-Length = 679 [21:20:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963349", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:20:51]execute_script... [21:20: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)1963349", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:20:51]POST & json_proto [21:20:51]process_json_proto [21:20:51]json parsed OK: [21:20:51]protocol is kg_v1.0 [21:20:51]action value=close_receipt [21:20:51]process_action close_receipt [21:20:51]cmd_close_receipt [21:20:51]MH_GetDate [21:20:51]Write to MH i2c: F0 00 00 47 13 49 [21:20:51]Write i2c OK [21:20:51]MH_I2C_Read... [21:20:51]Read from MH i2c: F0 [21:20:51]MH_I2C_Read... [21:20:51]Read from MH i2c: F0 09 00 [21:20:51]MH_I2C_Read... [21:20:51]Read from MH i2c: F0 09 00 47 13 00 34 74 15 67 82 C9 CF 66 F6 [21:20:51]GetLastDocTimeStamp 1729459071 [21:20:51]current date 1729459252 [21:20:51]FM_GetShiftState [21:20:51]SAM_PROTO_GetShiftState [21:20:51]wFMCommunicate request_size=4 [21:20:51]MH_SAM_APDU [21:20:51]CAPDU: 80 13 01 00 [21:20:51]Write to MH i2c: E2 08 00 48 13 80 13 01 00 00 00 00 00 D8 [21:20:51]Write i2c OK [21:20:51]MH_I2C_Read... [21:20:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:20:51]Read from MH i2c: E2 [21:20:51]MH_I2C_Read... [21:20:51]Read from MH i2c: E2 0E 00 [21:20:51]MH_I2C_Read... [21:20:51]Read from MH i2c: E2 0E 00 48 13 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 F2 [21:20:51]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:20:51]wFMCommunicate OK [21:20:51]SAM_PROTO_GetShiftState done [21:20:51]FM_GetShiftState done [21:20:51]opened in 1729383750 [21:20:51]opened+sec_in_day 1729470150 [21:20:51]quantity*price = 70044 [21:20:51]sum+1 = 70045 [21:20:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 533 20.10.2024 21:20 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227685 ФПД: 15543948807368 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T212052&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227685&fm=15543948807368&tin=02508201610067®Number=0000000000091685&sum=70000 [21:20:52]StoreToDocumentArchive [21:20:52]shift 533 fd 227685 [21:20:52]save to /storage/0533/doc_00227685 [21:20:52]save last doc name /storage/0533/doc_00227685 to /storage/kkm_last_doc_name [21:20:52]save OK [21:20:52]Clear old archive folders... [21:20:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:20:52]tlvbuf is B6E85380 [21:20:52]SAM_PROTO_ClearQueue [21:20:52]wFMCommunicate request_size=4 [21:20:52]MH_SAM_APDU [21:20:52]CAPDU: 80 09 00 00 [21:20:52]Write to MH i2c: E2 08 00 55 13 80 09 00 00 00 00 00 00 DA [21:20:52]Write i2c OK [21:20:52]MH_I2C_Read... [21:20:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:20:52]Read from MH i2c: E2 [21:20:52]MH_I2C_Read... [21:20:52]Read from MH i2c: E2 03 00 [21:20:52]MH_I2C_Read... [21:20:52]Read from MH i2c: E2 03 00 55 13 00 90 00 DC [21:20:52]RAPDU: 90 00 [21:20:52]wFMCommunicate OK [21:20:52]SAM_PROTO_ClearQueue done [21:20:52]KKMCreateOFDPacket [21:20:52]OFDProtocolAddRootSTLVToBuf [21:20:52]FM_MakeSignedData [21:20:52]FM_MakeSignedData [21:20:52]SAM_PROTO_SignData [21:20:52]wFMCommunicate request_size=4 [21:20:52]MH_SAM_APDU [21:20:52]CAPDU: 80 0D 01 02 [21:20:52]Write to MH i2c: E2 08 00 56 13 80 0D 01 02 00 00 00 00 E2 [21:20:52]Write i2c OK [21:20:52]MH_I2C_Read... [21:20:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:20:52]Read from MH i2c: E2 [21:20:52]MH_I2C_Read... [21:20:52]Read from MH i2c: E2 03 00 [21:20:52]MH_I2C_Read... [21:20:52]Read from MH i2c: E2 03 00 56 13 00 90 00 DD [21:20:52]RAPDU: 90 00 [21:20:52]wFMCommunicate OK [21:20:52]wFMCommunicate request_size=255 [21:20:52]MH_SAM_APDU [21:20:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 02 00 00 F4 03 04 00 34 74 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 65 79 03 00 35 04 06 00 0E [21:20:52]Write to MH i2c: E2 02 01 57 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 02 00 00 F4 03 04 00 34 74 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 65 79 03 00 35 04 06 00 0E 00 00 CA [21:20:52]Write i2c OK [21:20:52]MH_I2C_Read... [21:20:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:20:53]Read from MH i2c: E2 [21:20:53]MH_I2C_Read... [21:20:53]Read from MH i2c: E2 03 00 [21:20:53]MH_I2C_Read... [21:20:53]Read from MH i2c: E2 03 00 57 13 00 90 00 DE [21:20:53]RAPDU: 90 00 [21:20:53]wFMCommunicate OK [21:20:53]wFMCommunicate request_size=10 [21:20:53]MH_SAM_APDU [21:20:53]CAPDU: 80 0D 02 02 05 23 1B 8C 0C C8 [21:20:53]Write to MH i2c: E2 0D 00 58 13 80 0D 02 02 05 00 23 1B 8C 0C C8 00 00 8D [21:20:53]Write i2c OK [21:20:53]MH_I2C_Read... [21:20:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:20:53]Read from MH i2c: E2 [21:20:53]MH_I2C_Read... [21:20:53]Read from MH i2c: E2 03 00 [21:20:53]MH_I2C_Read... [21:20:53]Read from MH i2c: E2 03 00 58 13 00 90 00 DF [21:20:53]RAPDU: 90 00 [21:20:53]wFMCommunicate OK [21:20:53]wFMCommunicate request_size=4 [21:20:53]MH_SAM_APDU [21:20:53]CAPDU: 80 0D 03 02 [21:20:53]Write to MH i2c: E2 08 00 59 13 80 0D 03 02 00 00 00 00 E7 [21:20:53]Write i2c OK [21:20:53]MH_I2C_Read... [21:20:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:20:53]Read from MH i2c: E2 [21:20:53]MH_I2C_Read... [21:20:53]Read from MH i2c: E2 0B 00 [21:20:53]MH_I2C_Read... [21:20:53]Read from MH i2c: E2 0B 00 59 13 00 B1 2C 6F 11 91 F0 68 4A 90 00 78 [21:20:53]RAPDU: B1 2C 6F 11 91 F0 68 4A 90 00 [21:20:53]wFMCommunicate OK [21:20:53]SAM_PROTO_SignData done [21:20:53]FM_MakeSignedData done [21:20:53]CreateOFDProtocolMessage [21:20:53]wFMCommunicate request_size=4 [21:20:53]MH_SAM_APDU [21:20:53]CAPDU: 80 11 00 00 [21:20:53]Write to MH i2c: E2 08 00 5A 13 80 11 00 00 00 00 00 00 E7 [21:20:53]Write i2c OK [21:20:53]MH_I2C_Read... [21:20:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:20:53]Read from MH i2c: E2 [21:20:53]MH_I2C_Read... [21:20:53]Read from MH i2c: E2 17 00 [21:20:53]MH_I2C_Read... [21:20:53]Read from MH i2c: E2 17 00 5A 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 3E [21:20:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:20:53]wFMCommunicate OK [21:20:53]CreateOFDProtocolMessage done [21:20:53]OFDSenderStorePacket 227685 [21:20:53]StoreOFDPacket docnum=227685 [21:20:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 31 EC 07 01 01 A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 02 00 00 F4 03 04 00 34 74 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 65 79 03 00 35 04 06 00 0E 23 1B 8C 0C C8 B1 2C 6F 11 91 F0 68 4A [21:20:53]CheckFolder [21:20:53]dirname=/storage/ofd_packets [21:20:53]CheckFolder done [21:20:53]ProducePacketName [21:20:53]name=ofd_packets/00227685 [21:20:53]NVStorageSaveData ofd_packets/00227685 [21:20:53]File name is /storage/ofd_packets/00227685 [21:20:53]Write 301 bytes [21:20:53]NVStorageSaveData done [21:20:53]OFDSenderStorePacket done [21:20:53]KKMCreateOFDPacket done [21:20:53]NVStorageSaveData kkm_last_timestamp [21:20:53]File name is /storage/kkm_last_timestamp [21:20:53]Write 4 bytes [21:20:53]NVStorageSaveData done [21:20:53]ExternCall_PrintAddStr [21:20:53]wPrintStart [21:20:53]Write to MH i2c: 01 00 00 5B 13 6E [21:20:53]Write i2c OK [21:20:53]MH_I2C_Read... [21:20:53]Read from MH i2c: 01 [21:20:53]MH_I2C_Read... [21:20:53]Read from MH i2c: 01 07 00 [21:20:53]MH_I2C_Read... [21:20:53]Read from MH i2c: 01 07 00 5B 13 00 00 00 00 00 FF 0F 83 [21:20:53]RasterBufferAndPrint [21:20:53]line Счет N : (1)1963349 [21:20:53]line ИНН: 02508201610067 [21:20:53]line Контрольно-Кассовый Чек [21:20:53]line ПРОДАЖА [21:20:53]line ТРК (МРК, ГНК) : 43 [21:20:53]line Товар: 2710124130 [21:20:53]line Аи-92-К-5 [21:20:53]line 10.470 * 66.90 [21:20:53]line = 700.44 [21:20:53]line НДС 12% НСП 1% [21:20:53]line > о реализуемом товаре [21:20:53]line ОКРУГЛЕНИЕ: -0.44 [21:20:53]line ИТОГО: 700.00 [21:20:53]line Внесено: 700.00 [21:20:53]line СДАЧА: 0.00 [21:20:53]line НСП 1% : 6.20 [21:20:53]line НДС 12% : 74.38 [21:20:53]line Наличными: 700.00 [21:20:53]line Безнал.: 0.00 [21:20:53]line Место: АЗС № 133 "Партнер Нефть" [21:20:53]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [21:20:53]line СНО: Общий режим [21:20:53]line Чек 533 20.10.2024 21:20 [21:20:53]line Смена: 533 ФФД: 1.0 [21:20:53]line ЗНМ: 0300000091 [21:20:53]line РНМ: 0000000000091685 [21:20:53]line Версия ККМ: 001 [21:20:53]line ФМ: 0000000000871839 [21:20:53]line ФД: 227685 [21:20:53]line ФПД: 15543948807368 [21:20:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T212052&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227685&fm=15543948807368&tin=02508201610067®Number=0000000000091685&sum=70000 [21:20:53]written 0, free lines is 4095 [21:20:53]OFD Sender: Processing packet 227685 [packets to send 38, broken 37] [21:20:53]ProducePacketName [21:20:53]name=ofd_packets/00227685 [21:20:53]OFD Sender: To server: pG, [21:20:53]CommunicateWithHost lk.salyk.kg:30040 [21:20:53]ConnectInit lk.salyk.kg [21:20:53]Connected sock=9 [21:20:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 31 EC 07 01 01 A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 02 00 00 F4 03 04 00 34 74 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 65 79 03 00 35 04 06 00 0E 23 1B 8C 0C C8 B1 2C 6F 11 91 F0 68 4A [21:20:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 68 86 47 00 60 CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 65 79 03 00 F4 03 04 00 32 1F 15 67 B6 04 01 00 00 AC 87 FE DB 8A A7 47 11 [21:20:53]CommunicateWithHost err = 0 [21:20:53]CheckOFDResponse [21:20:53]1017 (14) - 77093643461234 [21:20:53]1041 (16) - 0000000000871839 [21:20:53]1040 (4) - 227685 [21:20:53]1012 (4) - 20.10.2024 15:18 [21:20:53]1206 (1) - 0 [21:20:53]OFD Sender: Remove packet 227685 [21:20:53]ProducePacketName [21:20:53]name=ofd_packets/00227685 [21:20:53]NVStorageDeleteData [21:20:54]Write to MH i2c: 01 00 00 85 13 98 [21:20:54]Write i2c OK [21:20:54]MH_I2C_Read... [21:20:54]Read from MH i2c: 01 [21:20:54]MH_I2C_Read... [21:20:54]Read from MH i2c: 01 07 00 [21:20:54]MH_I2C_Read... [21:20:54]Read from MH i2c: 01 07 00 85 13 00 00 00 00 00 AB 0C 56 [21:20:54]RasterBufferAndPrint [21:20:54]line [21:20:54]line [21:20:54]line [21:20:54]line [21:20:54]line [21:20:54]written 0, free lines is 3248 [21:20:54]MH_Cut [21:20:54]Write to MH i2c: D1 01 00 8C 13 01 71 [21:20:54]Write i2c OK [21:20:54]MH_I2C_Read... [21:20:54]Read from MH i2c: D1 [21:20:54]MH_I2C_Read... [21:20:54]Read from MH i2c: D1 01 00 [21:20:54]MH_I2C_Read... [21:20:54]Read from MH i2c: D1 01 00 8C 13 00 70 [21:20:54]Write to MH i2c: 01 00 00 8D 13 A0 [21:20:54]Write i2c OK [21:20:54]MH_I2C_Read... [21:20:54]OFD Sender: No OFD packet to send [21:20:54]*** Cut start [21:20:54]*** Partial cut [21:20:54]*** CUTSNS_PIN = 1 [21:20:55]*** CUTSNS_PIN = 0 [21:20:55]*** Brake cut motor [21:20:55]Read from MH i2c: 01 [21:20:55]MH_I2C_Read... [21:20:55]*** Stop cut motor [21:20:55]*** Cut end [21:20:55]Read from MH i2c: 01 07 00 [21:20:55]MH_I2C_Read... [21:20:55]Read from MH i2c: 01 07 00 8D 13 00 00 00 00 00 FF 0F B5 [21:20:55]process_action close_receipt done [21:20:55]requested_data is exist [21:20:55]produce_requested_data [21:20:55]requested_item fm.sn is exist - process it [21:20:55]wFMCommunicate request_size=4 [21:20:55]MH_SAM_APDU [21:20:55]CAPDU: 80 11 00 00 [21:20:55]Write to MH i2c: E2 08 00 8E 13 80 11 00 00 00 00 00 00 1B [21:20:55]Write i2c OK [21:20:55]MH_I2C_Read... [21:20:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:20:55]Read from MH i2c: E2 [21:20:55]MH_I2C_Read... [21:20:55]Read from MH i2c: E2 17 00 [21:20:55]MH_I2C_Read... [21:20:55]Read from MH i2c: E2 17 00 8E 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 72 [21:20:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:20:55]wFMCommunicate OK [21:20:55]requested_item fd.num is exist - process it [21:20:55]SAM_PROTO_GetFieldsCounters [21:20:55]wFMCommunicate request_size=4 [21:20:55]MH_SAM_APDU [21:20:55]CAPDU: 80 13 00 00 [21:20:55]Write to MH i2c: E2 08 00 8F 13 80 13 00 00 00 00 00 00 1E [21:20:55]Write i2c OK [21:20:55]MH_I2C_Read... [21:20:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:20:55]Read from MH i2c: E2 [21:20:55]MH_I2C_Read... [21:20:55]Read from MH i2c: E2 62 00 [21:20:55]MH_I2C_Read... [21:20:55]Read from MH i2c: E2 62 00 8F 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 65 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 15 02 00 00 5E 04 04 00 15 02 00 00 57 04 04 00 16 02 00 00 19 04 04 00 00 00 00 00 90 00 84 [21:20:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 65 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 15 02 00 00 5E 04 04 00 15 02 00 00 57 04 04 00 16 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:20:55]wFMCommunicate OK [21:20:55]SAM_PROTO_GetFieldsCounters done [21:20:55]requested_item shift.num is exist - process it [21:20:55]requested_item shift.opened is exist - process it [21:20:55]req_shift_opened [21:20:55]FM_GetShiftState [21:20:55]SAM_PROTO_GetShiftState [21:20:55]wFMCommunicate request_size=4 [21:20:55]MH_SAM_APDU [21:20:55]CAPDU: 80 13 01 00 [21:20:55]Write to MH i2c: E2 08 00 90 13 80 13 01 00 00 00 00 00 20 [21:20:55]Write i2c OK [21:20:55]MH_I2C_Read... [21:20:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:20:55]Read from MH i2c: E2 [21:20:55]MH_I2C_Read... [21:20:55]Read from MH i2c: E2 0E 00 [21:20:55]MH_I2C_Read... [21:20:55]Read from MH i2c: E2 0E 00 90 13 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 3A [21:20:55]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:20:55]wFMCommunicate OK [21:20:55]SAM_PROTO_GetShiftState done [21:20:55]FM_GetShiftState done [21:20:55]req_shift_opened done [21:20:55]requested_item shift.open_date is exist - process it [21:20:55]req_shift_open_date [21:20:55]req_shift_open_date done [21:20:55]produce_requested_data done [21:20:55]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227685,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [21:20:55]process_action_free close_receipt [21:20:55]json_value_free [21:20:55]json_value_free done [21:20:55]process_json_proto returns [21:20:55]Send response to host [21:20:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227685,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [21:20:55]free response buf [21:20:55]execute_script done [21:20:55]execute_script returns [21:20:55]free content buf [21:20:55]Sock 7.Close socket [21:20:55]Sock 7.Thread stoped [21:20:59]OFD Sender: No OFD packet to send [21:20:59]accept exits with 10 [21:20:59]New connection [21:20:59]New thread 3066809700 created [21:20:59]Thread 3066666340 joined [21:20:59]Waiting for new connection... [21:20:59] Sock 10.Parse request [21:20:59]Sock 10.Check first char [21:20:59]Sock 10.First char is OK [21:20:59]request: POST /json_proto HTTP/1.0 [21:20:59]Method: POST [21:20:59]URL: /json_proto [21:20:59]Method is POST - this is cgi request [21:20:59]url: /json_proto [21:20:59]query_string will be loaded in cgi processing [21:20:59]execute_cgi json_proto POST (null) [21:20:59]execute_cgi path=json_proto method=POST [21:20:59]POST find Content-Length [21:20:59]Host: 172.17.44.195:8080 [21:20:59]Content-Length: 664 [21:20:59]Content-Type: application/json [21:20:59] [21:20:59]POST finish read [21:20:59]Found Content-Length = 664 [21:20:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963348", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 29.240, "sum" : 2000.02, "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" ] } } [21:20:59]execute_script... [21:20: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)1963348", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 29.240, "sum" : 2000.02, "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" ] } } [21:20:59]POST & json_proto [21:20:59]process_json_proto [21:20:59]json parsed OK: [21:20:59]protocol is kg_v1.0 [21:20:59]action value=close_receipt [21:20:59]process_action close_receipt [21:20:59]cmd_close_receipt [21:20:59]MH_GetDate [21:20:59]Write to MH i2c: F0 00 00 91 13 93 [21:20:59]Write i2c OK [21:20:59]MH_I2C_Read... [21:20:59]Read from MH i2c: F0 [21:20:59]MH_I2C_Read... [21:20:59]Read from MH i2c: F0 09 00 [21:20:59]MH_I2C_Read... [21:20:59]Read from MH i2c: F0 09 00 91 13 00 3C 74 15 67 82 C9 CF 66 48 [21:20:59]GetLastDocTimeStamp 1729459252 [21:20:59]current date 1729459260 [21:20:59]FM_GetShiftState [21:20:59]SAM_PROTO_GetShiftState [21:20:59]wFMCommunicate request_size=4 [21:20:59]MH_SAM_APDU [21:20:59]CAPDU: 80 13 01 00 [21:20:59]Write to MH i2c: E2 08 00 92 13 80 13 01 00 00 00 00 00 22 [21:20:59]Write i2c OK [21:20:59]MH_I2C_Read... [21:20:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:20:59]Read from MH i2c: E2 [21:20:59]MH_I2C_Read... [21:20:59]Read from MH i2c: E2 0E 00 [21:20:59]MH_I2C_Read... [21:20:59]Read from MH i2c: E2 0E 00 92 13 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 3C [21:20:59]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:20:59]wFMCommunicate OK [21:20:59]SAM_PROTO_GetShiftState done [21:20:59]FM_GetShiftState done [21:20:59]opened in 1729383750 [21:20:59]opened+sec_in_day 1729470150 [21:20:59]quantity*price = 200001 [21:20:59]sum+1 = 200003 [21:20:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.39 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 534 20.10.2024 21:21 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227686 ФПД: 274406925570328 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T212100&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227686&fm=274406925570328&tin=02508201610067®Number=0000000000091685&sum=200000 [21:21:00]StoreToDocumentArchive [21:21:00]shift 533 fd 227686 [21:21:00]save to /storage/0533/doc_00227686 [21:21:00]save last doc name /storage/0533/doc_00227686 to /storage/kkm_last_doc_name [21:21:00]save OK [21:21:00]Clear old archive folders... [21:21:00]ProcessDocumentItem done err = 0, tmpTLVsize=244 [21:21:00]tlvbuf is 00CC8380 [21:21:00]SAM_PROTO_ClearQueue [21:21:00]wFMCommunicate request_size=4 [21:21:00]MH_SAM_APDU [21:21:00]CAPDU: 80 09 00 00 [21:21:00]Write to MH i2c: E2 08 00 9F 13 80 09 00 00 00 00 00 00 24 [21:21:00]Write i2c OK [21:21:00]MH_I2C_Read... [21:21:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:21:00]Read from MH i2c: E2 [21:21:00]MH_I2C_Read... [21:21:00]Read from MH i2c: E2 03 00 [21:21:00]MH_I2C_Read... [21:21:00]Read from MH i2c: E2 03 00 9F 13 00 90 00 26 [21:21:00]RAPDU: 90 00 [21:21:00]wFMCommunicate OK [21:21:00]SAM_PROTO_ClearQueue done [21:21:00]KKMCreateOFDPacket [21:21:00]OFDProtocolAddRootSTLVToBuf [21:21:00]FM_MakeSignedData [21:21:00]FM_MakeSignedData [21:21:00]SAM_PROTO_SignData [21:21:00]wFMCommunicate request_size=4 [21:21:00]MH_SAM_APDU [21:21:00]CAPDU: 80 0D 01 02 [21:21:00]Write to MH i2c: E2 08 00 A0 13 80 0D 01 02 00 00 00 00 2C [21:21:00]Write i2c OK [21:21:00]MH_I2C_Read... [21:21:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:21:01]Read from MH i2c: E2 [21:21:01]MH_I2C_Read... [21:21:01]Read from MH i2c: E2 03 00 [21:21:01]MH_I2C_Read... [21:21:01]Read from MH i2c: E2 03 00 A0 13 00 90 00 27 [21:21:01]RAPDU: 90 00 [21:21:01]wFMCommunicate OK [21:21:01]wFMCommunicate request_size=253 [21:21:01]MH_SAM_APDU [21:21:01]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 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 F7 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 16 02 00 00 F4 03 04 00 3C 74 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 66 79 03 00 35 04 06 00 F9 92 57 52 91 18 [21:21:01]Write to MH i2c: E2 00 01 A1 13 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 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 F7 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 16 02 00 00 F4 03 04 00 3C 74 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 66 79 03 00 35 04 06 00 F9 92 57 52 91 18 00 00 AD [21:21:01]Write i2c OK [21:21:01]MH_I2C_Read... [21:21:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:21:01]Read from MH i2c: E2 [21:21:01]MH_I2C_Read... [21:21:01]Read from MH i2c: E2 03 00 [21:21:01]MH_I2C_Read... [21:21:01]Read from MH i2c: E2 03 00 A1 13 00 90 00 28 [21:21:01]RAPDU: 90 00 [21:21:01]wFMCommunicate OK [21:21:01]wFMCommunicate request_size=4 [21:21:01]MH_SAM_APDU [21:21:01]CAPDU: 80 0D 03 02 [21:21:01]Write to MH i2c: E2 08 00 A2 13 80 0D 03 02 00 00 00 00 30 [21:21:01]Write i2c OK [21:21:01]MH_I2C_Read... [21:21:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:21:01]Read from MH i2c: E2 [21:21:01]MH_I2C_Read... [21:21:01]Read from MH i2c: E2 0B 00 [21:21:01]MH_I2C_Read... [21:21:01]Read from MH i2c: E2 0B 00 A2 13 00 49 7E 5B 83 4C 36 D0 AD 90 00 D5 [21:21:01]RAPDU: 49 7E 5B 83 4C 36 D0 AD 90 00 [21:21:01]wFMCommunicate OK [21:21:01]SAM_PROTO_SignData done [21:21:01]FM_MakeSignedData done [21:21:01]CreateOFDProtocolMessage [21:21:01]wFMCommunicate request_size=4 [21:21:01]MH_SAM_APDU [21:21:01]CAPDU: 80 11 00 00 [21:21:01]Write to MH i2c: E2 08 00 A3 13 80 11 00 00 00 00 00 00 30 [21:21:01]Write i2c OK [21:21:01]MH_I2C_Read... [21:21:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:21:01]Read from MH i2c: E2 [21:21:01]MH_I2C_Read... [21:21:01]Read from MH i2c: E2 17 00 [21:21:01]MH_I2C_Read... [21:21:01]Read from MH i2c: E2 17 00 A3 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 87 [21:21:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:21:01]wFMCommunicate OK [21:21:01]CreateOFDProtocolMessage done [21:21:01]OFDSenderStorePacket 227686 [21:21:01]StoreOFDPacket docnum=227686 [21:21:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 61 3F 00 01 D4 6C 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 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 F7 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 16 02 00 00 F4 03 04 00 3C 74 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 66 79 03 00 35 04 06 00 F9 92 57 52 91 18 49 7E 5B 83 4C 36 D0 AD [21:21:01]CheckFolder [21:21:01]dirname=/storage/ofd_packets [21:21:01]CheckFolder done [21:21:01]ProducePacketName [21:21:01]name=ofd_packets/00227686 [21:21:01]NVStorageSaveData ofd_packets/00227686 [21:21:01]File name is /storage/ofd_packets/00227686 [21:21:01]Write 294 bytes [21:21:01]NVStorageSaveData done [21:21:01]OFDSenderStorePacket done [21:21:01]KKMCreateOFDPacket done [21:21:01]NVStorageSaveData kkm_last_timestamp [21:21:01]File name is /storage/kkm_last_timestamp [21:21:01]Write 4 bytes [21:21:01]NVStorageSaveData done [21:21:01]ExternCall_PrintAddStr [21:21:01]wPrintStart [21:21:01]Write to MH i2c: 01 00 00 A4 13 B7 [21:21:01]Write i2c OK [21:21:01]MH_I2C_Read... [21:21:01]Read from MH i2c: 01 [21:21:01]MH_I2C_Read... [21:21:01]Read from MH i2c: 01 07 00 [21:21:01]MH_I2C_Read... [21:21:01]Read from MH i2c: 01 07 00 A4 13 00 00 00 00 00 FF 0F CC [21:21:01]RasterBufferAndPrint [21:21:01]line Счет N : (1)1963348 [21:21:01]line ИНН: 02508201610067 [21:21:01]line Контрольно-Кассовый Чек [21:21:01]line ПРОДАЖА [21:21:01]line ТРК (МРК, ГНК) : 62 [21:21:01]line Товар: 2710124130 [21:21:01]line SU-92 [21:21:01]line 29.240 * 68.40 [21:21:01]line = 2000.02 [21:21:01]line НДС 12% НСП 1% [21:21:01]line > о реализуемом товаре [21:21:01]line ОКРУГЛЕНИЕ: -0.02 [21:21:01]line ИТОГО: 2000.00 [21:21:01]line Внесено: 2000.00 [21:21:01]line СДАЧА: 0.00 [21:21:01]line НСП 1% : 17.70 [21:21:01]line НДС 12% : 212.39 [21:21:01]line Наличными: 2000.00 [21:21:01]line Безнал.: 0.00 [21:21:01]line Место: АЗС № 133 "Партнер Нефть" [21:21:01]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [21:21:01]line СНО: Общий режим [21:21:01]line Чек 534 20.10.2024 21:21 [21:21:01]line Смена: 533 ФФД: 1.0 [21:21:01]line ЗНМ: 0300000091 [21:21:01]line РНМ: 0000000000091685 [21:21:01]line Версия ККМ: 001 [21:21:01]line ФМ: 0000000000871839 [21:21:01]line ФД: 227686 [21:21:01]line ФПД: 274406925570328 [21:21:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T212100&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227686&fm=274406925570328&tin=02508201610067®Number=0000000000091685&sum=200000 [21:21:01]written 0, free lines is 4095 [21:21:01]OFD Sender: Processing packet 227686 [packets to send 38, broken 37] [21:21:01]ProducePacketName [21:21:01]name=ofd_packets/00227686 [21:21:01]OFD Sender: To server: pG, [21:21:01]CommunicateWithHost lk.salyk.kg:30040 [21:21:01]ConnectInit lk.salyk.kg [21:21:01]Connected sock=9 [21:21: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 33 39 08 01 00 00 61 3F 00 01 D4 6C 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 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 F7 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 16 02 00 00 F4 03 04 00 3C 74 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 66 79 03 00 35 04 06 00 F9 92 57 52 91 18 49 7E 5B 83 4C 36 D0 AD [21:21: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 33 39 4F 00 00 00 D3 D3 47 00 60 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 66 79 03 00 F4 03 04 00 3A 1F 15 67 B6 04 01 00 00 11 CB 2B 7B EC 95 DA C6 [21:21:01]CommunicateWithHost err = 0 [21:21:01]CheckOFDResponse [21:21:01]1017 (14) - 77093643461234 [21:21:01]1041 (16) - 0000000000871839 [21:21:01]1040 (4) - 227686 [21:21:01]1012 (4) - 20.10.2024 15:18 [21:21:01]1206 (1) - 0 [21:21:01]OFD Sender: Remove packet 227686 [21:21:01]ProducePacketName [21:21:01]name=ofd_packets/00227686 [21:21:01]NVStorageDeleteData [21:21:01]Write to MH i2c: 01 00 00 CE 13 E1 [21:21:01]Write i2c OK [21:21:01]MH_I2C_Read... [21:21:01]Read from MH i2c: 01 [21:21:01]MH_I2C_Read... [21:21:01]Read from MH i2c: 01 07 00 [21:21:01]MH_I2C_Read... [21:21:01]Read from MH i2c: 01 07 00 CE 13 00 00 00 00 00 BD 0C B1 [21:21:01]RasterBufferAndPrint [21:21:01]line [21:21:01]line [21:21:01]line [21:21:01]line [21:21:01]line [21:21:01]written 0, free lines is 3268 [21:21:01]MH_Cut [21:21:01]Write to MH i2c: D1 01 00 D5 13 01 BA [21:21:01]Write i2c OK [21:21:01]MH_I2C_Read... [21:21:01]Read from MH i2c: D1 [21:21:01]MH_I2C_Read... [21:21:01]Read from MH i2c: D1 01 00 [21:21:01]MH_I2C_Read... [21:21:01]Read from MH i2c: D1 01 00 D5 13 00 B9 [21:21:01]Write to MH i2c: 01 00 00 D6 13 E9 [21:21:01]Write i2c OK [21:21:01]MH_I2C_Read... [21:21:02]OFD Sender: No OFD packet to send [21:21:02]*** Cut start [21:21:02]*** Partial cut [21:21:02]*** CUTSNS_PIN = 1 [21:21:02]*** CUTSNS_PIN = 0 [21:21:03]*** Brake cut motor [21:21:03]Read from MH i2c: 01 [21:21:03]MH_I2C_Read... [21:21:03]*** Stop cut motor [21:21:03]*** Cut end [21:21:03]Read from MH i2c: 01 07 00 [21:21:03]MH_I2C_Read... [21:21:03]Read from MH i2c: 01 07 00 D6 13 00 00 00 00 00 FF 0F FE [21:21:03]process_action close_receipt done [21:21:03]requested_data is exist [21:21:03]produce_requested_data [21:21:03]requested_item fm.sn is exist - process it [21:21:03]wFMCommunicate request_size=4 [21:21:03]MH_SAM_APDU [21:21:03]CAPDU: 80 11 00 00 [21:21:03]Write to MH i2c: E2 08 00 D7 13 80 11 00 00 00 00 00 00 64 [21:21:03]Write i2c OK [21:21:03]MH_I2C_Read... [21:21:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:21:03]Read from MH i2c: E2 [21:21:03]MH_I2C_Read... [21:21:03]Read from MH i2c: E2 17 00 [21:21:03]MH_I2C_Read... [21:21:03]Read from MH i2c: E2 17 00 D7 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 BB [21:21:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:21:03]wFMCommunicate OK [21:21:03]requested_item fd.num is exist - process it [21:21:03]SAM_PROTO_GetFieldsCounters [21:21:03]wFMCommunicate request_size=4 [21:21:03]MH_SAM_APDU [21:21:03]CAPDU: 80 13 00 00 [21:21:03]Write to MH i2c: E2 08 00 D8 13 80 13 00 00 00 00 00 00 67 [21:21:03]Write i2c OK [21:21:03]MH_I2C_Read... [21:21:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:21:03]Read from MH i2c: E2 [21:21:03]MH_I2C_Read... [21:21:03]Read from MH i2c: E2 62 00 [21:21:03]MH_I2C_Read... [21:21:03]Read from MH i2c: E2 62 00 D8 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 66 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 16 02 00 00 5E 04 04 00 16 02 00 00 57 04 04 00 17 02 00 00 19 04 04 00 00 00 00 00 90 00 D1 [21:21:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 66 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 16 02 00 00 5E 04 04 00 16 02 00 00 57 04 04 00 17 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:21:03]wFMCommunicate OK [21:21:03]SAM_PROTO_GetFieldsCounters done [21:21:03]requested_item shift.num is exist - process it [21:21:03]requested_item shift.opened is exist - process it [21:21:03]req_shift_opened [21:21:03]FM_GetShiftState [21:21:03]SAM_PROTO_GetShiftState [21:21:03]wFMCommunicate request_size=4 [21:21:03]MH_SAM_APDU [21:21:03]CAPDU: 80 13 01 00 [21:21:03]Write to MH i2c: E2 08 00 D9 13 80 13 01 00 00 00 00 00 69 [21:21:03]Write i2c OK [21:21:03]MH_I2C_Read... [21:21:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:21:03]Read from MH i2c: E2 [21:21:03]MH_I2C_Read... [21:21:03]Read from MH i2c: E2 0E 00 [21:21:03]MH_I2C_Read... [21:21:03]Read from MH i2c: E2 0E 00 D9 13 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 83 [21:21:03]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:21:03]wFMCommunicate OK [21:21:03]SAM_PROTO_GetShiftState done [21:21:03]FM_GetShiftState done [21:21:03]req_shift_opened done [21:21:03]requested_item shift.open_date is exist - process it [21:21:03]req_shift_open_date [21:21:03]req_shift_open_date done [21:21:03]produce_requested_data done [21:21:03]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227686,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [21:21:03]process_action_free close_receipt [21:21:03]json_value_free [21:21:03]json_value_free done [21:21:03]process_json_proto returns [21:21:03]Send response to host [21:21:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227686,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [21:21:03]free response buf [21:21:03]execute_script done [21:21:03]execute_script returns [21:21:03]free content buf [21:21:03]Sock 10.Close socket [21:21:03]Sock 10.Thread stoped [21:21:07]OFD Sender: No OFD packet to send [21:21:12]OFD Sender: No OFD packet to send [21:21:17]OFD Sender: No OFD packet to send [21:21:22]OFD Sender: No OFD packet to send [21:21:27]OFD Sender: No OFD packet to send [21:21:32]OFD Sender: No OFD packet to send [21:21:37]OFD Sender: No OFD packet to send [21:21:42]OFD Sender: No OFD packet to send [21:21:47]OFD Sender: No OFD packet to send [21:21:52]OFD Sender: No OFD packet to send [21:21:57]OFD Sender: No OFD packet to send [21:22:02]OFD Sender: No OFD packet to send [21:22:07]OFD Sender: No OFD packet to send [21:22:12]OFD Sender: No OFD packet to send [21:22:17]OFD Sender: No OFD packet to send [21:22:22]OFD Sender: No OFD packet to send [21:22:27]OFD Sender: No OFD packet to send [21:22:32]OFD Sender: No OFD packet to send [21:22:37]OFD Sender: No OFD packet to send [21:22:42]OFD Sender: No OFD packet to send [21:22:47]OFD Sender: No OFD packet to send [21:22:52]OFD Sender: No OFD packet to send [21:22:57]OFD Sender: No OFD packet to send [21:23:02]OFD Sender: No OFD packet to send [21:23:07]OFD Sender: No OFD packet to send [21:23:12]OFD Sender: No OFD packet to send [21:23:17]OFD Sender: No OFD packet to send [21:23:22]OFD Sender: No OFD packet to send [21:23:27]OFD Sender: No OFD packet to send [21:23:30]accept exits with 7 [21:23:30]New connection [21:23:30]New thread 3066666340 created [21:23:30]Thread 3066809700 joined [21:23:30]Waiting for new connection... [21:23:30] Sock 7.Parse request [21:23:30]Sock 7.Check first char [21:23:30]Sock 7.First char is OK [21:23:30]request: POST /json_proto HTTP/1.0 [21:23:30]Method: POST [21:23:30]URL: /json_proto [21:23:30]Method is POST - this is cgi request [21:23:30]url: /json_proto [21:23:30]query_string will be loaded in cgi processing [21:23:30]execute_cgi json_proto POST (null) [21:23:30]execute_cgi path=json_proto method=POST [21:23:30]POST find Content-Length [21:23:30]Host: 172.17.44.195:8080 [21:23:30]Content-Length: 678 [21:23:30]Content-Type: application/json [21:23:30] [21:23:30]POST finish read [21:23:30]Found Content-Length = 678 [21:23:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963350", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:23:30]execute_script... [21:23:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963350", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:23:30]POST & json_proto [21:23:30]process_json_proto [21:23:30]json parsed OK: [21:23:30]protocol is kg_v1.0 [21:23:30]action value=close_receipt [21:23:30]process_action close_receipt [21:23:30]cmd_close_receipt [21:23:30]MH_GetDate [21:23:30]Write to MH i2c: F0 00 00 DA 13 DC [21:23:30]Write i2c OK [21:23:30]MH_I2C_Read... [21:23:30]Read from MH i2c: F0 [21:23:30]MH_I2C_Read... [21:23:30]Read from MH i2c: F0 09 00 [21:23:30]MH_I2C_Read... [21:23:30]Read from MH i2c: F0 09 00 DA 13 00 D3 74 15 67 82 C9 CF 66 28 [21:23:30]GetLastDocTimeStamp 1729459260 [21:23:30]current date 1729459411 [21:23:30]FM_GetShiftState [21:23:30]SAM_PROTO_GetShiftState [21:23:30]wFMCommunicate request_size=4 [21:23:30]MH_SAM_APDU [21:23:30]CAPDU: 80 13 01 00 [21:23:30]Write to MH i2c: E2 08 00 DB 13 80 13 01 00 00 00 00 00 6B [21:23:30]Write i2c OK [21:23:30]MH_I2C_Read... [21:23:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:23:30]Read from MH i2c: E2 [21:23:30]MH_I2C_Read... [21:23:30]Read from MH i2c: E2 0E 00 [21:23:30]MH_I2C_Read... [21:23:30]Read from MH i2c: E2 0E 00 DB 13 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 85 [21:23:30]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:23:30]wFMCommunicate OK [21:23:30]SAM_PROTO_GetShiftState done [21:23:30]FM_GetShiftState done [21:23:30]opened in 1729383750 [21:23:30]opened+sec_in_day 1729470150 [21:23:30]quantity*price = 70044 [21:23:30]sum+1 = 70046 [21:23:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 535 20.10.2024 21:23 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227687 ФПД: 28536747368131 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T212331&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227687&fm=28536747368131&tin=02508201610067®Number=0000000000091685&sum=70000 [21:23:31]StoreToDocumentArchive [21:23:31]shift 533 fd 227687 [21:23:31]save to /storage/0533/doc_00227687 [21:23:31]save last doc name /storage/0533/doc_00227687 to /storage/kkm_last_doc_name [21:23:31]save OK [21:23:31]Clear old archive folders... [21:23:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:23:31]tlvbuf is 00C235F0 [21:23:31]SAM_PROTO_ClearQueue [21:23:31]wFMCommunicate request_size=4 [21:23:31]MH_SAM_APDU [21:23:31]CAPDU: 80 09 00 00 [21:23:31]Write to MH i2c: E2 08 00 E8 13 80 09 00 00 00 00 00 00 6D [21:23:31]Write i2c OK [21:23:31]MH_I2C_Read... [21:23:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:23:31]Read from MH i2c: E2 [21:23:31]MH_I2C_Read... [21:23:31]Read from MH i2c: E2 03 00 [21:23:31]MH_I2C_Read... [21:23:31]Read from MH i2c: E2 03 00 E8 13 00 90 00 6F [21:23:31]RAPDU: 90 00 [21:23:31]wFMCommunicate OK [21:23:31]SAM_PROTO_ClearQueue done [21:23:31]KKMCreateOFDPacket [21:23:31]OFDProtocolAddRootSTLVToBuf [21:23:31]FM_MakeSignedData [21:23:31]FM_MakeSignedData [21:23:31]SAM_PROTO_SignData [21:23:31]wFMCommunicate request_size=4 [21:23:31]MH_SAM_APDU [21:23:31]CAPDU: 80 0D 01 02 [21:23:31]Write to MH i2c: E2 08 00 E9 13 80 0D 01 02 00 00 00 00 75 [21:23:31]Write i2c OK [21:23:31]MH_I2C_Read... [21:23:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:23:31]Read from MH i2c: E2 [21:23:31]MH_I2C_Read... [21:23:31]Read from MH i2c: E2 03 00 [21:23:31]MH_I2C_Read... [21:23:31]Read from MH i2c: E2 03 00 E9 13 00 90 00 70 [21:23:31]RAPDU: 90 00 [21:23:31]wFMCommunicate OK [21:23:31]wFMCommunicate request_size=255 [21:23:31]MH_SAM_APDU [21:23:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 17 02 00 00 F4 03 04 00 D3 74 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 67 79 03 00 35 04 06 00 19 [21:23:31]Write to MH i2c: E2 02 01 EA 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 17 02 00 00 F4 03 04 00 D3 74 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 67 79 03 00 35 04 06 00 19 00 00 E2 [21:23:31]Write i2c OK [21:23:31]MH_I2C_Read... [21:23:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:23:31]Read from MH i2c: E2 [21:23:31]MH_I2C_Read... [21:23:31]Read from MH i2c: E2 03 00 [21:23:31]MH_I2C_Read... [21:23:31]Read from MH i2c: E2 03 00 EA 13 00 90 00 71 [21:23:31]RAPDU: 90 00 [21:23:31]wFMCommunicate OK [21:23:31]wFMCommunicate request_size=10 [21:23:31]MH_SAM_APDU [21:23:31]CAPDU: 80 0D 02 02 05 F4 3A B0 9E C3 [21:23:31]Write to MH i2c: E2 0D 00 EB 13 80 0D 02 02 05 00 F4 3A B0 9E C3 00 00 C1 [21:23:31]Write i2c OK [21:23:31]MH_I2C_Read... [21:23:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:23:31]Read from MH i2c: E2 [21:23:31]MH_I2C_Read... [21:23:31]Read from MH i2c: E2 03 00 [21:23:31]MH_I2C_Read... [21:23:31]Read from MH i2c: E2 03 00 EB 13 00 90 00 72 [21:23:31]RAPDU: 90 00 [21:23:31]wFMCommunicate OK [21:23:31]wFMCommunicate request_size=4 [21:23:31]MH_SAM_APDU [21:23:31]CAPDU: 80 0D 03 02 [21:23:31]Write to MH i2c: E2 08 00 EC 13 80 0D 03 02 00 00 00 00 7A [21:23:31]Write i2c OK [21:23:31]MH_I2C_Read... [21:23:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:23:31]Read from MH i2c: E2 [21:23:31]MH_I2C_Read... [21:23:31]Read from MH i2c: E2 0B 00 [21:23:31]MH_I2C_Read... [21:23:31]Read from MH i2c: E2 0B 00 EC 13 00 0E 75 50 43 D7 99 B6 C1 90 00 78 [21:23:31]RAPDU: 0E 75 50 43 D7 99 B6 C1 90 00 [21:23:31]wFMCommunicate OK [21:23:31]SAM_PROTO_SignData done [21:23:31]FM_MakeSignedData done [21:23:31]CreateOFDProtocolMessage [21:23:31]wFMCommunicate request_size=4 [21:23:31]MH_SAM_APDU [21:23:31]CAPDU: 80 11 00 00 [21:23:31]Write to MH i2c: E2 08 00 ED 13 80 11 00 00 00 00 00 00 7A [21:23:31]Write i2c OK [21:23:31]MH_I2C_Read... [21:23:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:23:31]Read from MH i2c: E2 [21:23:31]MH_I2C_Read... [21:23:31]Read from MH i2c: E2 17 00 [21:23:31]MH_I2C_Read... [21:23:31]Read from MH i2c: E2 17 00 ED 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D1 [21:23:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:23:31]wFMCommunicate OK [21:23:31]CreateOFDProtocolMessage done [21:23:31]OFDSenderStorePacket 227687 [21:23:31]StoreOFDPacket docnum=227687 [21:23:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 D8 99 07 01 EE A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 17 02 00 00 F4 03 04 00 D3 74 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 67 79 03 00 35 04 06 00 19 F4 3A B0 9E C3 0E 75 50 43 D7 99 B6 C1 [21:23:31]CheckFolder [21:23:31]dirname=/storage/ofd_packets [21:23:31]CheckFolder done [21:23:31]ProducePacketName [21:23:31]name=ofd_packets/00227687 [21:23:31]NVStorageSaveData ofd_packets/00227687 [21:23:31]File name is /storage/ofd_packets/00227687 [21:23:31]Write 301 bytes [21:23:31]NVStorageSaveData done [21:23:31]OFDSenderStorePacket done [21:23:31]KKMCreateOFDPacket done [21:23:31]NVStorageSaveData kkm_last_timestamp [21:23:31]File name is /storage/kkm_last_timestamp [21:23:31]Write 4 bytes [21:23:31]NVStorageSaveData done [21:23:31]ExternCall_PrintAddStr [21:23:31]wPrintStart [21:23:31]Write to MH i2c: 01 00 00 EE 13 01 [21:23:31]Write i2c OK [21:23:31]MH_I2C_Read... [21:23:31]Read from MH i2c: 01 [21:23:31]MH_I2C_Read... [21:23:31]Read from MH i2c: 01 07 00 [21:23:31]MH_I2C_Read... [21:23:31]Read from MH i2c: 01 07 00 EE 13 00 00 00 00 00 FF 0F 16 [21:23:31]RasterBufferAndPrint [21:23:31]line Счет N : (1)1963350 [21:23:31]line ИНН: 02508201610067 [21:23:31]line Контрольно-Кассовый Чек [21:23:31]line ПРОДАЖА [21:23:31]line ТРК (МРК, ГНК) : 34 [21:23:31]line Товар: 2710124500 [21:23:31]line Аи-95-К-5 [21:23:31]line 9.440 * 74.20 [21:23:31]line = 700.45 [21:23:31]line НДС 12% НСП 1% [21:23:31]line > о реализуемом товаре [21:23:31]line ОКРУГЛЕНИЕ: -0.45 [21:23:31]line ИТОГО: 700.00 [21:23:31]line Внесено: 700.00 [21:23:31]line СДАЧА: 0.00 [21:23:31]line НСП 1% : 6.20 [21:23:31]line НДС 12% : 74.38 [21:23:31]line Наличными: 700.00 [21:23:31]line Безнал.: 0.00 [21:23:31]line Место: АЗС № 133 "Партнер Нефть" [21:23:31]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [21:23:31]line СНО: Общий режим [21:23:31]line Чек 535 20.10.2024 21:23 [21:23:31]line Смена: 533 ФФД: 1.0 [21:23:31]line ЗНМ: 0300000091 [21:23:31]line РНМ: 0000000000091685 [21:23:31]line Версия ККМ: 001 [21:23:31]line ФМ: 0000000000871839 [21:23:31]line ФД: 227687 [21:23:31]line ФПД: 28536747368131 [21:23:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T212331&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227687&fm=28536747368131&tin=02508201610067®Number=0000000000091685&sum=70000 [21:23:32]written 0, free lines is 4095 [21:23:32]OFD Sender: Processing packet 227687 [packets to send 38, broken 37] [21:23:32]ProducePacketName [21:23:32]name=ofd_packets/00227687 [21:23:32]OFD Sender: To server: pG, [21:23:32]CommunicateWithHost lk.salyk.kg:30040 [21:23:32]ConnectInit lk.salyk.kg [21:23:32]Connected sock=10 [21:23:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 D8 99 07 01 EE A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 17 02 00 00 F4 03 04 00 D3 74 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 67 79 03 00 35 04 06 00 19 F4 3A B0 9E C3 0E 75 50 43 D7 99 B6 C1 [21:23:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 04 F2 47 00 9A 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 33 39 10 04 04 00 67 79 03 00 F4 03 04 00 D1 1F 15 67 B6 04 01 00 00 44 31 30 B2 47 DC 3B 40 [21:23:32]CommunicateWithHost err = 0 [21:23:32]CheckOFDResponse [21:23:32]1017 (14) - 77093643461234 [21:23:32]1041 (16) - 0000000000871839 [21:23:32]1040 (4) - 227687 [21:23:32]1012 (4) - 20.10.2024 15:20 [21:23:32]1206 (1) - 0 [21:23:32]OFD Sender: Remove packet 227687 [21:23:32]ProducePacketName [21:23:32]name=ofd_packets/00227687 [21:23:32]NVStorageDeleteData [21:23:32]Write to MH i2c: 01 00 00 18 14 2C [21:23:32]Write i2c OK [21:23:32]MH_I2C_Read... [21:23:32]Read from MH i2c: 01 [21:23:32]MH_I2C_Read... [21:23:32]Read from MH i2c: 01 07 00 [21:23:32]MH_I2C_Read... [21:23:32]Read from MH i2c: 01 07 00 18 14 00 00 00 00 00 A7 0C E6 [21:23:32]RasterBufferAndPrint [21:23:32]line [21:23:32]line [21:23:32]line [21:23:32]line [21:23:32]line [21:23:32]written 0, free lines is 3243 [21:23:32]MH_Cut [21:23:32]Write to MH i2c: D1 01 00 1F 14 01 05 [21:23:32]Write i2c OK [21:23:32]MH_I2C_Read... [21:23:32]Read from MH i2c: D1 [21:23:32]MH_I2C_Read... [21:23:32]Read from MH i2c: D1 01 00 [21:23:32]MH_I2C_Read... [21:23:32]Read from MH i2c: D1 01 00 1F 14 00 04 [21:23:32]Write to MH i2c: 01 00 00 20 14 34 [21:23:32]Write i2c OK [21:23:32]MH_I2C_Read... [21:23:33]OFD Sender: No OFD packet to send [21:23:33]*** Cut start [21:23:33]*** Partial cut [21:23:33]*** CUTSNS_PIN = 1 [21:23:33]*** CUTSNS_PIN = 0 [21:23:33]*** Brake cut motor [21:23:34]Read from MH i2c: 01 [21:23:34]MH_I2C_Read... [21:23:34]*** Stop cut motor [21:23:34]*** Cut end [21:23:34]Read from MH i2c: 01 07 00 [21:23:34]MH_I2C_Read... [21:23:34]Read from MH i2c: 01 07 00 20 14 00 00 00 00 00 FF 0F 49 [21:23:34]process_action close_receipt done [21:23:34]requested_data is exist [21:23:34]produce_requested_data [21:23:34]requested_item fm.sn is exist - process it [21:23:34]wFMCommunicate request_size=4 [21:23:34]MH_SAM_APDU [21:23:34]CAPDU: 80 11 00 00 [21:23:34]Write to MH i2c: E2 08 00 21 14 80 11 00 00 00 00 00 00 AF [21:23:34]Write i2c OK [21:23:34]MH_I2C_Read... [21:23:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:23:34]Read from MH i2c: E2 [21:23:34]MH_I2C_Read... [21:23:34]Read from MH i2c: E2 17 00 [21:23:34]MH_I2C_Read... [21:23:34]Read from MH i2c: E2 17 00 21 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 06 [21:23:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:23:34]wFMCommunicate OK [21:23:34]requested_item fd.num is exist - process it [21:23:34]SAM_PROTO_GetFieldsCounters [21:23:34]wFMCommunicate request_size=4 [21:23:34]MH_SAM_APDU [21:23:34]CAPDU: 80 13 00 00 [21:23:34]Write to MH i2c: E2 08 00 22 14 80 13 00 00 00 00 00 00 B2 [21:23:34]Write i2c OK [21:23:34]MH_I2C_Read... [21:23:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:23:34]Read from MH i2c: E2 [21:23:34]MH_I2C_Read... [21:23:34]Read from MH i2c: E2 62 00 [21:23:34]MH_I2C_Read... [21:23:34]Read from MH i2c: E2 62 00 22 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 67 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 17 02 00 00 5E 04 04 00 17 02 00 00 57 04 04 00 18 02 00 00 19 04 04 00 00 00 00 00 90 00 20 [21:23:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 67 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 17 02 00 00 5E 04 04 00 17 02 00 00 57 04 04 00 18 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:23:34]wFMCommunicate OK [21:23:34]SAM_PROTO_GetFieldsCounters done [21:23:34]requested_item shift.num is exist - process it [21:23:34]requested_item shift.opened is exist - process it [21:23:34]req_shift_opened [21:23:34]FM_GetShiftState [21:23:34]SAM_PROTO_GetShiftState [21:23:34]wFMCommunicate request_size=4 [21:23:34]MH_SAM_APDU [21:23:34]CAPDU: 80 13 01 00 [21:23:34]Write to MH i2c: E2 08 00 23 14 80 13 01 00 00 00 00 00 B4 [21:23:34]Write i2c OK [21:23:34]MH_I2C_Read... [21:23:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:23:34]Read from MH i2c: E2 [21:23:34]MH_I2C_Read... [21:23:34]Read from MH i2c: E2 0E 00 [21:23:34]MH_I2C_Read... [21:23:34]Read from MH i2c: E2 0E 00 23 14 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 CE [21:23:34]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:23:34]wFMCommunicate OK [21:23:34]SAM_PROTO_GetShiftState done [21:23:34]FM_GetShiftState done [21:23:34]req_shift_opened done [21:23:34]requested_item shift.open_date is exist - process it [21:23:34]req_shift_open_date [21:23:34]req_shift_open_date done [21:23:34]produce_requested_data done [21:23:34]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227687,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [21:23:34]process_action_free close_receipt [21:23:34]json_value_free [21:23:34]json_value_free done [21:23:34]process_json_proto returns [21:23:34]Send response to host [21:23:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227687,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [21:23:34]free response buf [21:23:34]execute_script done [21:23:34]execute_script returns [21:23:34]free content buf [21:23:34]Sock 7.Close socket [21:23:34]Sock 7.Thread stoped [21:23:38]OFD Sender: No OFD packet to send [21:23:43]OFD Sender: No OFD packet to send [21:23:48]OFD Sender: No OFD packet to send [21:23:53]OFD Sender: No OFD packet to send [21:23:58]OFD Sender: No OFD packet to send [21:24:03]OFD Sender: No OFD packet to send [21:24:08]OFD Sender: No OFD packet to send [21:24:13]OFD Sender: No OFD packet to send [21:24:18]OFD Sender: No OFD packet to send [21:24:23]OFD Sender: No OFD packet to send [21:24:28]OFD Sender: No OFD packet to send [21:24:33]OFD Sender: No OFD packet to send [21:24:38]OFD Sender: No OFD packet to send [21:24:43]OFD Sender: No OFD packet to send [21:24:48]OFD Sender: No OFD packet to send [21:24:53]OFD Sender: No OFD packet to send [21:24:58]OFD Sender: No OFD packet to send [21:25:03]OFD Sender: No OFD packet to send [21:25:08]OFD Sender: No OFD packet to send [21:25:13]OFD Sender: No OFD packet to send [21:25:18]OFD Sender: No OFD packet to send [21:25:23]OFD Sender: No OFD packet to send [21:25:28]OFD Sender: No OFD packet to send [21:25:33]OFD Sender: No OFD packet to send [21:25:38]OFD Sender: No OFD packet to send [21:25:40]accept exits with 9 [21:25:40]New connection [21:25:40]New thread 3066809700 created [21:25:40]Thread 3066666340 joined [21:25:40]Waiting for new connection... [21:25:40] Sock 9.Parse request [21:25:40]Sock 9.Check first char [21:25:40]Sock 9.First char is OK [21:25:40]request: POST /json_proto HTTP/1.0 [21:25:40]Method: POST [21:25:40]URL: /json_proto [21:25:40]Method is POST - this is cgi request [21:25:40]url: /json_proto [21:25:40]query_string will be loaded in cgi processing [21:25:40]execute_cgi json_proto POST (null) [21:25:40]execute_cgi path=json_proto method=POST [21:25:40]POST find Content-Length [21:25:40]Host: 172.17.44.195:8080 [21:25:40]Content-Length: 683 [21:25:40]Content-Type: application/json [21:25:40] [21:25:40]POST finish read [21:25:40]Found Content-Length = 683 [21:25:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963351", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 20.030, "sum" : 1340.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1340.00, "total" : 1340.00, "payments": [ { "type": 0, "sum" : 1340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:25:40]execute_script... [21:25: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)1963351", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 20.030, "sum" : 1340.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1340.00, "total" : 1340.00, "payments": [ { "type": 0, "sum" : 1340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:25:40]POST & json_proto [21:25:40]process_json_proto [21:25:40]json parsed OK: [21:25:40]protocol is kg_v1.0 [21:25:40]action value=close_receipt [21:25:40]process_action close_receipt [21:25:40]cmd_close_receipt [21:25:40]MH_GetDate [21:25:40]Write to MH i2c: F0 00 00 24 14 27 [21:25:40]Write i2c OK [21:25:40]MH_I2C_Read... [21:25:40]Read from MH i2c: F0 [21:25:40]MH_I2C_Read... [21:25:40]Read from MH i2c: F0 09 00 [21:25:40]MH_I2C_Read... [21:25:40]Read from MH i2c: F0 09 00 24 14 00 55 75 15 67 82 C9 CF 66 F6 [21:25:40]GetLastDocTimeStamp 1729459411 [21:25:40]current date 1729459541 [21:25:40]FM_GetShiftState [21:25:40]SAM_PROTO_GetShiftState [21:25:40]wFMCommunicate request_size=4 [21:25:40]MH_SAM_APDU [21:25:40]CAPDU: 80 13 01 00 [21:25:40]Write to MH i2c: E2 08 00 25 14 80 13 01 00 00 00 00 00 B6 [21:25:40]Write i2c OK [21:25:40]MH_I2C_Read... [21:25:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:25:40]Read from MH i2c: E2 [21:25:40]MH_I2C_Read... [21:25:40]Read from MH i2c: E2 0E 00 [21:25:40]MH_I2C_Read... [21:25:40]Read from MH i2c: E2 0E 00 25 14 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 D0 [21:25:40]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:25:40]wFMCommunicate OK [21:25:40]SAM_PROTO_GetShiftState done [21:25:40]FM_GetShiftState done [21:25:40]opened in 1729383750 [21:25:40]opened+sec_in_day 1729470150 [21:25:40]quantity*price = 134000 [21:25:40]sum+1 = 134002 [21:25:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1340.00 Внесено: 1340.00 СДАЧА: 0.00 НСП 1% : 11.86 НДС 12% : 142.30 Наличными: 1340.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 536 20.10.2024 21:25 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227688 ФПД: 203865242027984 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T212541&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227688&fm=203865242027984&tin=02508201610067®Number=0000000000091685&sum=134000 [21:25:41]StoreToDocumentArchive [21:25:41]shift 533 fd 227688 [21:25:41]save to /storage/0533/doc_00227688 [21:25:41]save last doc name /storage/0533/doc_00227688 to /storage/kkm_last_doc_name [21:25:41]save OK [21:25:41]Clear old archive folders... [21:25:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:25:41]tlvbuf is B6E85250 [21:25:41]SAM_PROTO_ClearQueue [21:25:41]wFMCommunicate request_size=4 [21:25:41]MH_SAM_APDU [21:25:41]CAPDU: 80 09 00 00 [21:25:41]Write to MH i2c: E2 08 00 32 14 80 09 00 00 00 00 00 00 B8 [21:25:41]Write i2c OK [21:25:41]MH_I2C_Read... [21:25:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:25:41]Read from MH i2c: E2 [21:25:41]MH_I2C_Read... [21:25:41]Read from MH i2c: E2 03 00 [21:25:41]MH_I2C_Read... [21:25:41]Read from MH i2c: E2 03 00 32 14 00 90 00 BA [21:25:41]RAPDU: 90 00 [21:25:41]wFMCommunicate OK [21:25:41]SAM_PROTO_ClearQueue done [21:25:41]KKMCreateOFDPacket [21:25:41]OFDProtocolAddRootSTLVToBuf [21:25:41]FM_MakeSignedData [21:25:41]FM_MakeSignedData [21:25:41]SAM_PROTO_SignData [21:25:41]wFMCommunicate request_size=4 [21:25:41]MH_SAM_APDU [21:25:41]CAPDU: 80 0D 01 02 [21:25:41]Write to MH i2c: E2 08 00 33 14 80 0D 01 02 00 00 00 00 C0 [21:25:41]Write i2c OK [21:25:41]MH_I2C_Read... [21:25:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:25:41]Read from MH i2c: E2 [21:25:41]MH_I2C_Read... [21:25:41]Read from MH i2c: E2 03 00 [21:25:41]MH_I2C_Read... [21:25:41]Read from MH i2c: E2 03 00 33 14 00 90 00 BB [21:25:41]RAPDU: 90 00 [21:25:41]wFMCommunicate OK [21:25:41]wFMCommunicate request_size=255 [21:25:41]MH_SAM_APDU [21:25:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 71 0B 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 0B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 37 00 00 00 00 07 04 06 00 70 0B 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 02 00 00 F4 03 04 00 55 75 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 68 79 03 00 35 04 06 00 B9 [21:25:41]Write to MH i2c: E2 02 01 34 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 71 0B 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 0B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 37 00 00 00 00 07 04 06 00 70 0B 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 02 00 00 F4 03 04 00 55 75 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 68 79 03 00 35 04 06 00 B9 00 00 99 [21:25:41]Write i2c OK [21:25:41]MH_I2C_Read... [21:25:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:25:41]Read from MH i2c: E2 [21:25:41]MH_I2C_Read... [21:25:41]Read from MH i2c: E2 03 00 [21:25:41]MH_I2C_Read... [21:25:41]Read from MH i2c: E2 03 00 34 14 00 90 00 BC [21:25:41]RAPDU: 90 00 [21:25:41]wFMCommunicate OK [21:25:41]wFMCommunicate request_size=10 [21:25:41]MH_SAM_APDU [21:25:41]CAPDU: 80 0D 02 02 05 6A 13 55 47 D0 [21:25:41]Write to MH i2c: E2 0D 00 35 14 80 0D 02 02 05 00 6A 13 55 47 D0 00 00 B6 [21:25:41]Write i2c OK [21:25:41]MH_I2C_Read... [21:25:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:25:41]Read from MH i2c: E2 [21:25:41]MH_I2C_Read... [21:25:41]Read from MH i2c: E2 03 00 [21:25:41]MH_I2C_Read... [21:25:41]Read from MH i2c: E2 03 00 35 14 00 90 00 BD [21:25:41]RAPDU: 90 00 [21:25:41]wFMCommunicate OK [21:25:41]wFMCommunicate request_size=4 [21:25:41]MH_SAM_APDU [21:25:41]CAPDU: 80 0D 03 02 [21:25:41]Write to MH i2c: E2 08 00 36 14 80 0D 03 02 00 00 00 00 C5 [21:25:41]Write i2c OK [21:25:41]MH_I2C_Read... [21:25:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:25:41]Read from MH i2c: E2 [21:25:41]MH_I2C_Read... [21:25:41]Read from MH i2c: E2 0B 00 [21:25:41]MH_I2C_Read... [21:25:41]Read from MH i2c: E2 0B 00 36 14 00 30 BB C1 90 CD DA 6C B1 90 00 C6 [21:25:41]RAPDU: 30 BB C1 90 CD DA 6C B1 90 00 [21:25:41]wFMCommunicate OK [21:25:41]SAM_PROTO_SignData done [21:25:41]FM_MakeSignedData done [21:25:41]CreateOFDProtocolMessage [21:25:41]wFMCommunicate request_size=4 [21:25:41]MH_SAM_APDU [21:25:41]CAPDU: 80 11 00 00 [21:25:41]Write to MH i2c: E2 08 00 37 14 80 11 00 00 00 00 00 00 C5 [21:25:41]Write i2c OK [21:25:41]MH_I2C_Read... [21:25:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:25:41]Read from MH i2c: E2 [21:25:41]MH_I2C_Read... [21:25:41]Read from MH i2c: E2 17 00 [21:25:41]MH_I2C_Read... [21:25:41]Read from MH i2c: E2 17 00 37 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 1C [21:25:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:25:41]wFMCommunicate OK [21:25:41]CreateOFDProtocolMessage done [21:25:41]OFDSenderStorePacket 227688 [21:25:41]StoreOFDPacket docnum=227688 [21:25:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 75 A4 07 01 F0 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 71 0B 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 0B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 37 00 00 00 00 07 04 06 00 70 0B 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 02 00 00 F4 03 04 00 55 75 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 68 79 03 00 35 04 06 00 B9 6A 13 55 47 D0 30 BB C1 90 CD DA 6C B1 [21:25:41]CheckFolder [21:25:41]dirname=/storage/ofd_packets [21:25:41]CheckFolder done [21:25:41]ProducePacketName [21:25:41]name=ofd_packets/00227688 [21:25:41]NVStorageSaveData ofd_packets/00227688 [21:25:41]File name is /storage/ofd_packets/00227688 [21:25:41]Write 301 bytes [21:25:41]NVStorageSaveData done [21:25:41]OFDSenderStorePacket done [21:25:41]KKMCreateOFDPacket done [21:25:41]NVStorageSaveData kkm_last_timestamp [21:25:41]File name is /storage/kkm_last_timestamp [21:25:41]Write 4 bytes [21:25:41]NVStorageSaveData done [21:25:41]ExternCall_PrintAddStr [21:25:41]wPrintStart [21:25:41]Write to MH i2c: 01 00 00 38 14 4C [21:25:41]Write i2c OK [21:25:41]MH_I2C_Read... [21:25:41]Read from MH i2c: 01 [21:25:41]MH_I2C_Read... [21:25:41]Read from MH i2c: 01 07 00 [21:25:41]MH_I2C_Read... [21:25:41]Read from MH i2c: 01 07 00 38 14 00 00 00 00 00 FF 0F 61 [21:25:41]RasterBufferAndPrint [21:25:41]line Счет N : (1)1963351 [21:25:41]line ИНН: 02508201610067 [21:25:41]line Контрольно-Кассовый Чек [21:25:41]line ПРОДАЖА [21:25:41]line ТРК (МРК, ГНК) : 43 [21:25:41]line Товар: 2710124130 [21:25:41]line Аи-92-К-5 [21:25:41]line 20.030 * 66.90 [21:25:41]line = 1340.01 [21:25:41]line НДС 12% НСП 1% [21:25:41]line > о реализуемом товаре [21:25:41]line ОКРУГЛЕНИЕ: -0.01 [21:25:41]line ИТОГО: 1340.00 [21:25:41]line Внесено: 1340.00 [21:25:41]line СДАЧА: 0.00 [21:25:41]line НСП 1% : 11.86 [21:25:41]line НДС 12% : 142.30 [21:25:41]line Наличными: 1340.00 [21:25:41]line Безнал.: 0.00 [21:25:41]line Место: АЗС № 133 "Партнер Нефть" [21:25:41]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [21:25:41]line СНО: Общий режим [21:25:41]line Чек 536 20.10.2024 21:25 [21:25:41]line Смена: 533 ФФД: 1.0 [21:25:41]line ЗНМ: 0300000091 [21:25:41]line РНМ: 0000000000091685 [21:25:41]line Версия ККМ: 001 [21:25:41]line ФМ: 0000000000871839 [21:25:41]line ФД: 227688 [21:25:41]line ФПД: 203865242027984 [21:25:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T212541&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227688&fm=203865242027984&tin=02508201610067®Number=0000000000091685&sum=134000 [21:25:42]written 0, free lines is 4095 [21:25:42]OFD Sender: Processing packet 227688 [packets to send 38, broken 37] [21:25:42]ProducePacketName [21:25:42]name=ofd_packets/00227688 [21:25:42]OFD Sender: To server: pG, [21:25:42]CommunicateWithHost lk.salyk.kg:30040 [21:25:42]ConnectInit lk.salyk.kg [21:25:42]Connected sock=10 [21:25: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 33 39 0F 01 00 00 75 A4 07 01 F0 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 71 0B 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 0B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 37 00 00 00 00 07 04 06 00 70 0B 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 02 00 00 F4 03 04 00 55 75 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 68 79 03 00 35 04 06 00 B9 6A 13 55 47 D0 30 BB C1 90 CD DA 6C B1 [21:25: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 33 39 4F 00 00 00 B2 AF 47 00 1F 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 33 39 10 04 04 00 68 79 03 00 F4 03 04 00 53 20 15 67 B6 04 01 00 00 83 2A 59 EB A0 9D 3C 64 [21:25:42]CommunicateWithHost err = 0 [21:25:42]CheckOFDResponse [21:25:42]1017 (14) - 77093643461234 [21:25:42]1041 (16) - 0000000000871839 [21:25:42]1040 (4) - 227688 [21:25:42]1012 (4) - 20.10.2024 15:22 [21:25:42]1206 (1) - 0 [21:25:42]OFD Sender: Remove packet 227688 [21:25:42]ProducePacketName [21:25:42]name=ofd_packets/00227688 [21:25:42]NVStorageDeleteData [21:25:42]Write to MH i2c: 01 00 00 62 14 76 [21:25:42]Write i2c OK [21:25:42]MH_I2C_Read... [21:25:42]Read from MH i2c: 01 [21:25:42]MH_I2C_Read... [21:25:42]Read from MH i2c: 01 07 00 [21:25:42]MH_I2C_Read... [21:25:42]Read from MH i2c: 01 07 00 62 14 00 00 00 00 00 AB 0C 34 [21:25:42]RasterBufferAndPrint [21:25:42]line [21:25:42]line [21:25:42]line [21:25:42]line [21:25:42]line [21:25:42]written 0, free lines is 3247 [21:25:42]MH_Cut [21:25:42]Write to MH i2c: D1 01 00 69 14 01 4F [21:25:42]Write i2c OK [21:25:42]MH_I2C_Read... [21:25:42]Read from MH i2c: D1 [21:25:42]MH_I2C_Read... [21:25:42]Read from MH i2c: D1 01 00 [21:25:42]MH_I2C_Read... [21:25:42]Read from MH i2c: D1 01 00 69 14 00 4E [21:25:42]Write to MH i2c: 01 00 00 6A 14 7E [21:25:42]Write i2c OK [21:25:42]MH_I2C_Read... [21:25:43]OFD Sender: No OFD packet to send [21:25:43]*** Cut start [21:25:43]*** Partial cut [21:25:43]*** CUTSNS_PIN = 1 [21:25:43]*** CUTSNS_PIN = 0 [21:25:43]*** Brake cut motor [21:25:44]Read from MH i2c: 01 [21:25:44]MH_I2C_Read... [21:25:44]*** Stop cut motor [21:25:44]*** Cut end [21:25:44]Read from MH i2c: 01 07 00 [21:25:44]MH_I2C_Read... [21:25:44]Read from MH i2c: 01 07 00 6A 14 00 00 00 00 00 FF 0F 93 [21:25:44]process_action close_receipt done [21:25:44]requested_data is exist [21:25:44]produce_requested_data [21:25:44]requested_item fm.sn is exist - process it [21:25:44]wFMCommunicate request_size=4 [21:25:44]MH_SAM_APDU [21:25:44]CAPDU: 80 11 00 00 [21:25:44]Write to MH i2c: E2 08 00 6B 14 80 11 00 00 00 00 00 00 F9 [21:25:44]Write i2c OK [21:25:44]MH_I2C_Read... [21:25:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:25:44]Read from MH i2c: E2 [21:25:44]MH_I2C_Read... [21:25:44]Read from MH i2c: E2 17 00 [21:25:44]MH_I2C_Read... [21:25:44]Read from MH i2c: E2 17 00 6B 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 50 [21:25:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:25:44]wFMCommunicate OK [21:25:44]requested_item fd.num is exist - process it [21:25:44]SAM_PROTO_GetFieldsCounters [21:25:44]wFMCommunicate request_size=4 [21:25:44]MH_SAM_APDU [21:25:44]CAPDU: 80 13 00 00 [21:25:44]Write to MH i2c: E2 08 00 6C 14 80 13 00 00 00 00 00 00 FC [21:25:44]Write i2c OK [21:25:44]MH_I2C_Read... [21:25:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:25:44]Read from MH i2c: E2 [21:25:44]MH_I2C_Read... [21:25:44]Read from MH i2c: E2 62 00 [21:25:44]MH_I2C_Read... [21:25:44]Read from MH i2c: E2 62 00 6C 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 68 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 18 02 00 00 5E 04 04 00 18 02 00 00 57 04 04 00 19 02 00 00 19 04 04 00 00 00 00 00 90 00 6E [21:25: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 68 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 18 02 00 00 5E 04 04 00 18 02 00 00 57 04 04 00 19 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:25:44]wFMCommunicate OK [21:25:44]SAM_PROTO_GetFieldsCounters done [21:25:44]requested_item shift.num is exist - process it [21:25:44]requested_item shift.opened is exist - process it [21:25:44]req_shift_opened [21:25:44]FM_GetShiftState [21:25:44]SAM_PROTO_GetShiftState [21:25:44]wFMCommunicate request_size=4 [21:25:44]MH_SAM_APDU [21:25:44]CAPDU: 80 13 01 00 [21:25:44]Write to MH i2c: E2 08 00 6D 14 80 13 01 00 00 00 00 00 FE [21:25:44]Write i2c OK [21:25:44]MH_I2C_Read... [21:25:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:25:44]Read from MH i2c: E2 [21:25:44]MH_I2C_Read... [21:25:44]Read from MH i2c: E2 0E 00 [21:25:44]MH_I2C_Read... [21:25:44]Read from MH i2c: E2 0E 00 6D 14 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 18 [21:25:44]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:25:44]wFMCommunicate OK [21:25:44]SAM_PROTO_GetShiftState done [21:25:44]FM_GetShiftState done [21:25:44]req_shift_opened done [21:25:44]requested_item shift.open_date is exist - process it [21:25:44]req_shift_open_date [21:25:44]req_shift_open_date done [21:25:44]produce_requested_data done [21:25:44]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227688,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [21:25:44]process_action_free close_receipt [21:25:44]json_value_free [21:25:44]json_value_free done [21:25:44]process_json_proto returns [21:25:44]Send response to host [21:25:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227688,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [21:25:44]free response buf [21:25:44]execute_script done [21:25:44]execute_script returns [21:25:44]free content buf [21:25:44]Sock 9.Close socket [21:25:44]Sock 9.Thread stoped [21:25:44]accept exits with 7 [21:25:44]New connection [21:25:44]New thread 3066666340 created [21:25:44]Thread 3066809700 joined [21:25:44]Waiting for new connection... [21:25:44] Sock 7.Parse request [21:25:44]Sock 7.Check first char [21:25:44]Sock 7.First char is OK [21:25:44]request: POST /json_proto HTTP/1.0 [21:25:44]Method: POST [21:25:44]URL: /json_proto [21:25:44]Method is POST - this is cgi request [21:25:44]url: /json_proto [21:25:44]query_string will be loaded in cgi processing [21:25:44]execute_cgi json_proto POST (null) [21:25:44]execute_cgi path=json_proto method=POST [21:25:44]POST find Content-Length [21:25:44]Host: 172.17.44.195:8080 [21:25:44]Content-Length: 659 [21:25:44]Content-Type: application/json [21:25:44] [21:25:44]POST finish read [21:25:44]Found Content-Length = 659 [21:25:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963352", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 4.390, "sum" : 300.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:25:44]execute_script... [21:25: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)1963352", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 4.390, "sum" : 300.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:25:44]POST & json_proto [21:25:44]process_json_proto [21:25:44]json parsed OK: [21:25:44]protocol is kg_v1.0 [21:25:44]action value=close_receipt [21:25:44]process_action close_receipt [21:25:44]cmd_close_receipt [21:25:44]MH_GetDate [21:25:44]Write to MH i2c: F0 00 00 6E 14 71 [21:25:44]Write i2c OK [21:25:44]MH_I2C_Read... [21:25:44]Read from MH i2c: F0 [21:25:44]MH_I2C_Read... [21:25:44]Read from MH i2c: F0 09 00 [21:25:44]MH_I2C_Read... [21:25:44]Read from MH i2c: F0 09 00 6E 14 00 5A 75 15 67 82 C9 CF 66 45 [21:25:44]GetLastDocTimeStamp 1729459541 [21:25:44]current date 1729459546 [21:25:44]FM_GetShiftState [21:25:44]SAM_PROTO_GetShiftState [21:25:44]wFMCommunicate request_size=4 [21:25:44]MH_SAM_APDU [21:25:44]CAPDU: 80 13 01 00 [21:25:44]Write to MH i2c: E2 08 00 6F 14 80 13 01 00 00 00 00 00 00 [21:25:44]Write i2c OK [21:25:44]MH_I2C_Read... [21:25:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:25:44]Read from MH i2c: E2 [21:25:44]MH_I2C_Read... [21:25:44]Read from MH i2c: E2 0E 00 [21:25:44]MH_I2C_Read... [21:25:44]Read from MH i2c: E2 0E 00 6F 14 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 1A [21:25:44]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:25:44]wFMCommunicate OK [21:25:44]SAM_PROTO_GetShiftState done [21:25:44]FM_GetShiftState done [21:25:44]opened in 1729383750 [21:25:44]opened+sec_in_day 1729470150 [21:25:44]quantity*price = 30027 [21:25:44]sum+1 = 30029 [21:25:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 537 20.10.2024 21:25 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227689 ФПД: 60752733566014 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T212546&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227689&fm=60752733566014&tin=02508201610067®Number=0000000000091685&sum=30000 [21:25:46]StoreToDocumentArchive [21:25:46]shift 533 fd 227689 [21:25:46]save to /storage/0533/doc_00227689 [21:25:46]save last doc name /storage/0533/doc_00227689 to /storage/kkm_last_doc_name [21:25:46]save OK [21:25:46]Clear old archive folders... [21:25:46]ProcessDocumentItem done err = 0, tmpTLVsize=244 [21:25:46]tlvbuf is 00CD3380 [21:25:46]SAM_PROTO_ClearQueue [21:25:46]wFMCommunicate request_size=4 [21:25:46]MH_SAM_APDU [21:25:46]CAPDU: 80 09 00 00 [21:25:46]Write to MH i2c: E2 08 00 7C 14 80 09 00 00 00 00 00 00 02 [21:25:46]Write i2c OK [21:25:46]MH_I2C_Read... [21:25:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:25:46]Read from MH i2c: E2 [21:25:46]MH_I2C_Read... [21:25:46]Read from MH i2c: E2 03 00 [21:25:46]MH_I2C_Read... [21:25:46]Read from MH i2c: E2 03 00 7C 14 00 90 00 04 [21:25:46]RAPDU: 90 00 [21:25:46]wFMCommunicate OK [21:25:46]SAM_PROTO_ClearQueue done [21:25:46]KKMCreateOFDPacket [21:25:46]OFDProtocolAddRootSTLVToBuf [21:25:46]FM_MakeSignedData [21:25:46]FM_MakeSignedData [21:25:46]SAM_PROTO_SignData [21:25:46]wFMCommunicate request_size=4 [21:25:46]MH_SAM_APDU [21:25:46]CAPDU: 80 0D 01 02 [21:25:46]Write to MH i2c: E2 08 00 7D 14 80 0D 01 02 00 00 00 00 0A [21:25:46]Write i2c OK [21:25:46]MH_I2C_Read... [21:25:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:25:46]Read from MH i2c: E2 [21:25:46]MH_I2C_Read... [21:25:46]Read from MH i2c: E2 03 00 [21:25:46]MH_I2C_Read... [21:25:46]Read from MH i2c: E2 03 00 7D 14 00 90 00 05 [21:25:46]RAPDU: 90 00 [21:25:46]wFMCommunicate OK [21:25:46]wFMCommunicate request_size=253 [21:25:46]MH_SAM_APDU [21:25:46]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 02 00 00 F4 03 04 00 5A 75 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 69 79 03 00 35 04 06 00 37 41 19 1A 74 3E [21:25:46]Write to MH i2c: E2 00 01 7E 14 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 02 00 00 F4 03 04 00 5A 75 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 69 79 03 00 35 04 06 00 37 41 19 1A 74 3E 00 00 29 [21:25:46]Write i2c OK [21:25:46]MH_I2C_Read... [21:25:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:25:46]Read from MH i2c: E2 [21:25:46]MH_I2C_Read... [21:25:46]Read from MH i2c: E2 03 00 [21:25:46]MH_I2C_Read... [21:25:46]Read from MH i2c: E2 03 00 7E 14 00 90 00 06 [21:25:46]RAPDU: 90 00 [21:25:46]wFMCommunicate OK [21:25:46]wFMCommunicate request_size=4 [21:25:46]MH_SAM_APDU [21:25:46]CAPDU: 80 0D 03 02 [21:25:46]Write to MH i2c: E2 08 00 7F 14 80 0D 03 02 00 00 00 00 0E [21:25:46]Write i2c OK [21:25:46]MH_I2C_Read... [21:25:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:25:46]Read from MH i2c: E2 [21:25:46]MH_I2C_Read... [21:25:46]Read from MH i2c: E2 0B 00 [21:25:46]MH_I2C_Read... [21:25:46]Read from MH i2c: E2 0B 00 7F 14 00 59 54 EE DD AC CE 1F 90 90 00 B0 [21:25:46]RAPDU: 59 54 EE DD AC CE 1F 90 90 00 [21:25:46]wFMCommunicate OK [21:25:46]SAM_PROTO_SignData done [21:25:46]FM_MakeSignedData done [21:25:46]CreateOFDProtocolMessage [21:25:46]wFMCommunicate request_size=4 [21:25:46]MH_SAM_APDU [21:25:46]CAPDU: 80 11 00 00 [21:25:46]Write to MH i2c: E2 08 00 80 14 80 11 00 00 00 00 00 00 0E [21:25:46]Write i2c OK [21:25:46]MH_I2C_Read... [21:25:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:25:46]Read from MH i2c: E2 [21:25:46]MH_I2C_Read... [21:25:46]Read from MH i2c: E2 17 00 [21:25:46]MH_I2C_Read... [21:25:46]Read from MH i2c: E2 17 00 80 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 65 [21:25:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:25:46]wFMCommunicate OK [21:25:46]CreateOFDProtocolMessage done [21:25:46]OFDSenderStorePacket 227689 [21:25:46]StoreOFDPacket docnum=227689 [21:25:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 19 2D 00 01 1E 42 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 02 00 00 F4 03 04 00 5A 75 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 69 79 03 00 35 04 06 00 37 41 19 1A 74 3E 59 54 EE DD AC CE 1F 90 [21:25:46]CheckFolder [21:25:46]dirname=/storage/ofd_packets [21:25:46]CheckFolder done [21:25:46]ProducePacketName [21:25:46]name=ofd_packets/00227689 [21:25:46]NVStorageSaveData ofd_packets/00227689 [21:25:46]File name is /storage/ofd_packets/00227689 [21:25:46]Write 294 bytes [21:25:46]NVStorageSaveData done [21:25:46]OFDSenderStorePacket done [21:25:46]KKMCreateOFDPacket done [21:25:46]NVStorageSaveData kkm_last_timestamp [21:25:46]File name is /storage/kkm_last_timestamp [21:25:46]Write 4 bytes [21:25:46]NVStorageSaveData done [21:25:46]ExternCall_PrintAddStr [21:25:46]wPrintStart [21:25:46]Write to MH i2c: 01 00 00 81 14 95 [21:25:46]Write i2c OK [21:25:46]MH_I2C_Read... [21:25:46]Read from MH i2c: 01 [21:25:46]MH_I2C_Read... [21:25:46]Read from MH i2c: 01 07 00 [21:25:46]MH_I2C_Read... [21:25:46]Read from MH i2c: 01 07 00 81 14 00 00 00 00 00 FF 0F AA [21:25:46]RasterBufferAndPrint [21:25:46]line Счет N : (1)1963352 [21:25:46]line ИНН: 02508201610067 [21:25:46]line Контрольно-Кассовый Чек [21:25:46]line ПРОДАЖА [21:25:46]line ТРК (МРК, ГНК) : 62 [21:25:46]line Товар: 2710124130 [21:25:46]line SU-92 [21:25:46]line 4.390 * 68.40 [21:25:46]line = 300.28 [21:25:46]line НДС 12% НСП 1% [21:25:46]line > о реализуемом товаре [21:25:46]line ОКРУГЛЕНИЕ: -0.28 [21:25:46]line ИТОГО: 300.00 [21:25:46]line Внесено: 300.00 [21:25:46]line СДАЧА: 0.00 [21:25:46]line НСП 1% : 2.66 [21:25:46]line НДС 12% : 31.89 [21:25:46]line Наличными: 300.00 [21:25:46]line Безнал.: 0.00 [21:25:46]line Место: АЗС № 133 "Партнер Нефть" [21:25:46]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [21:25:46]line СНО: Общий режим [21:25:46]line Чек 537 20.10.2024 21:25 [21:25:47]line Смена: 533 ФФД: 1.0 [21:25:47]line ЗНМ: 0300000091 [21:25:47]line РНМ: 0000000000091685 [21:25:47]line Версия ККМ: 001 [21:25:47]line ФМ: 0000000000871839 [21:25:47]line ФД: 227689 [21:25:47]line ФПД: 60752733566014 [21:25:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T212546&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227689&fm=60752733566014&tin=02508201610067®Number=0000000000091685&sum=30000 [21:25:47]OFD Sender: Processing packet 227689 [packets to send 38, broken 37] [21:25:47]ProducePacketName [21:25:47]name=ofd_packets/00227689 [21:25:47]OFD Sender: To server: pG, [21:25:47]CommunicateWithHost lk.salyk.kg:30040 [21:25:47]ConnectInit lk.salyk.kg [21:25:47]written 0, free lines is 4095 [21:25:47]Connected sock=11 [21:25: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 33 39 08 01 00 00 19 2D 00 01 1E 42 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 02 00 00 F4 03 04 00 5A 75 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 69 79 03 00 35 04 06 00 37 41 19 1A 74 3E 59 54 EE DD AC CE 1F 90 [21:25: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 33 39 4F 00 00 00 8C 7F 47 00 83 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 33 39 10 04 04 00 69 79 03 00 F4 03 04 00 58 20 15 67 B6 04 01 00 00 F2 49 C0 0F 13 BC C0 66 [21:25:47]CommunicateWithHost err = 0 [21:25:47]CheckOFDResponse [21:25:47]1017 (14) - 77093643461234 [21:25:47]1041 (16) - 0000000000871839 [21:25:47]1040 (4) - 227689 [21:25:47]1012 (4) - 20.10.2024 15:23 [21:25:47]1206 (1) - 0 [21:25:47]OFD Sender: Remove packet 227689 [21:25:47]ProducePacketName [21:25:47]name=ofd_packets/00227689 [21:25:47]NVStorageDeleteData [21:25:47]Write to MH i2c: 01 00 00 AB 14 BF [21:25:47]Write i2c OK [21:25:47]MH_I2C_Read... [21:25:47]Read from MH i2c: 01 [21:25:47]MH_I2C_Read... [21:25:47]Read from MH i2c: 01 07 00 [21:25:47]MH_I2C_Read... [21:25:47]Read from MH i2c: 01 07 00 AB 14 00 00 00 00 00 B6 0C 88 [21:25:47]RasterBufferAndPrint [21:25:47]line [21:25:47]line [21:25:47]line [21:25:47]line [21:25:47]line [21:25:47]written 0, free lines is 3261 [21:25:47]MH_Cut [21:25:47]Write to MH i2c: D1 01 00 B2 14 01 98 [21:25:47]Write i2c OK [21:25:47]MH_I2C_Read... [21:25:47]Read from MH i2c: D1 [21:25:47]MH_I2C_Read... [21:25:47]Read from MH i2c: D1 01 00 [21:25:47]MH_I2C_Read... [21:25:47]Read from MH i2c: D1 01 00 B2 14 00 97 [21:25:47]Write to MH i2c: 01 00 00 B3 14 C7 [21:25:47]Write i2c OK [21:25:47]MH_I2C_Read... [21:25:48]OFD Sender: No OFD packet to send [21:25:48]*** Cut start [21:25:48]*** Partial cut [21:25:48]*** CUTSNS_PIN = 1 [21:25:48]*** CUTSNS_PIN = 0 [21:25:48]*** Brake cut motor [21:25:49]Read from MH i2c: *** Stop cut motor [21:25:49]*** Cut end [21:25:49]01 [21:25:49]MH_I2C_Read... [21:25:49]Read from MH i2c: 01 07 00 [21:25:49]MH_I2C_Read... [21:25:49]Read from MH i2c: 01 07 00 B3 14 00 00 00 00 00 FF 0F DC [21:25:49]process_action close_receipt done [21:25:49]requested_data is exist [21:25:49]produce_requested_data [21:25:49]requested_item fm.sn is exist - process it [21:25:49]wFMCommunicate request_size=4 [21:25:49]MH_SAM_APDU [21:25:49]CAPDU: 80 11 00 00 [21:25:49]Write to MH i2c: E2 08 00 B4 14 80 11 00 00 00 00 00 00 42 [21:25:49]Write i2c OK [21:25:49]MH_I2C_Read... [21:25:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:25:49]Read from MH i2c: E2 [21:25:49]MH_I2C_Read... [21:25:49]Read from MH i2c: E2 17 00 [21:25:49]MH_I2C_Read... [21:25:49]Read from MH i2c: E2 17 00 B4 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 99 [21:25:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:25:49]wFMCommunicate OK [21:25:49]requested_item fd.num is exist - process it [21:25:49]SAM_PROTO_GetFieldsCounters [21:25:49]wFMCommunicate request_size=4 [21:25:49]MH_SAM_APDU [21:25:49]CAPDU: 80 13 00 00 [21:25:49]Write to MH i2c: E2 08 00 B5 14 80 13 00 00 00 00 00 00 45 [21:25:49]Write i2c OK [21:25:49]MH_I2C_Read... [21:25:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:25:49]Read from MH i2c: E2 [21:25:49]MH_I2C_Read... [21:25:49]Read from MH i2c: E2 62 00 [21:25:49]MH_I2C_Read... [21:25:49]Read from MH i2c: E2 62 00 B5 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 69 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 19 02 00 00 5E 04 04 00 19 02 00 00 57 04 04 00 1A 02 00 00 19 04 04 00 00 00 00 00 90 00 BB [21:25: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 69 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 19 02 00 00 5E 04 04 00 19 02 00 00 57 04 04 00 1A 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:25:49]wFMCommunicate OK [21:25:49]SAM_PROTO_GetFieldsCounters done [21:25:49]requested_item shift.num is exist - process it [21:25:49]requested_item shift.opened is exist - process it [21:25:49]req_shift_opened [21:25:49]FM_GetShiftState [21:25:49]SAM_PROTO_GetShiftState [21:25:49]wFMCommunicate request_size=4 [21:25:49]MH_SAM_APDU [21:25:49]CAPDU: 80 13 01 00 [21:25:49]Write to MH i2c: E2 08 00 B6 14 80 13 01 00 00 00 00 00 47 [21:25:49]Write i2c OK [21:25:49]MH_I2C_Read... [21:25:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:25:49]Read from MH i2c: E2 [21:25:49]MH_I2C_Read... [21:25:49]Read from MH i2c: E2 0E 00 [21:25:49]MH_I2C_Read... [21:25:49]Read from MH i2c: E2 0E 00 B6 14 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 61 [21:25:49]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:25:49]wFMCommunicate OK [21:25:49]SAM_PROTO_GetShiftState done [21:25:49]FM_GetShiftState done [21:25:49]req_shift_opened done [21:25:49]requested_item shift.open_date is exist - process it [21:25:49]req_shift_open_date [21:25:49]req_shift_open_date done [21:25:49]produce_requested_data done [21:25:49]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227689,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [21:25:49]process_action_free close_receipt [21:25:49]json_value_free [21:25:49]json_value_free done [21:25:49]process_json_proto returns [21:25:49]Send response to host [21:25:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227689,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [21:25:49]free response buf [21:25:49]execute_script done [21:25:49]execute_script returns [21:25:49]free content buf [21:25:49]Sock 7.Close socket [21:25:49]Sock 7.Thread stoped [21:25:49]accept exits with 9 [21:25:49]New connection [21:25:49]New thread 3066809700 created [21:25:49]Thread 3066666340 joined [21:25:49]Waiting for new connection... [21:25:49] Sock 9.Parse request [21:25:49]Sock 9.Check first char [21:25:49]Sock 9.First char is OK [21:25:49]request: POST /json_proto HTTP/1.0 [21:25:49]Method: POST [21:25:49]URL: /json_proto [21:25:49]Method is POST - this is cgi request [21:25:49]url: /json_proto [21:25:49]query_string will be loaded in cgi processing [21:25:49]execute_cgi json_proto POST (null) [21:25:49]execute_cgi path=json_proto method=POST [21:25:49]POST find Content-Length [21:25:49]Host: 172.17.44.195:8080 [21:25:49]Content-Length: 678 [21:25:49]Content-Type: application/json [21:25:49] [21:25:49]POST finish read [21:25:49]Found Content-Length = 678 [21:25:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963353", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:25:49]execute_script... [21:25: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)1963353", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:25:49]POST & json_proto [21:25:49]process_json_proto [21:25:49]json parsed OK: [21:25:49]protocol is kg_v1.0 [21:25:49]action value=close_receipt [21:25:49]process_action close_receipt [21:25:49]cmd_close_receipt [21:25:49]MH_GetDate [21:25:49]Write to MH i2c: F0 00 00 B7 14 BA [21:25:49]Write i2c OK [21:25:49]MH_I2C_Read... [21:25:49]Read from MH i2c: F0 [21:25:49]MH_I2C_Read... [21:25:49]Read from MH i2c: F0 09 00 [21:25:49]MH_I2C_Read... [21:25:49]Read from MH i2c: F0 09 00 B7 14 00 5F 75 15 67 82 C9 CF 66 93 [21:25:49]GetLastDocTimeStamp 1729459546 [21:25:49]current date 1729459551 [21:25:49]FM_GetShiftState [21:25:49]SAM_PROTO_GetShiftState [21:25:49]wFMCommunicate request_size=4 [21:25:49]MH_SAM_APDU [21:25:49]CAPDU: 80 13 01 00 [21:25:49]Write to MH i2c: E2 08 00 B8 14 80 13 01 00 00 00 00 00 49 [21:25:49]Write i2c OK [21:25:49]MH_I2C_Read... [21:25:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:25:49]Read from MH i2c: E2 [21:25:49]MH_I2C_Read... [21:25:49]Read from MH i2c: E2 0E 00 [21:25:49]MH_I2C_Read... [21:25:49]Read from MH i2c: E2 0E 00 B8 14 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 63 [21:25:49]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:25:49]wFMCommunicate OK [21:25:49]SAM_PROTO_GetShiftState done [21:25:49]FM_GetShiftState done [21:25:49]opened in 1729383750 [21:25:49]opened+sec_in_day 1729470150 [21:25:49]quantity*price = 50010 [21:25:49]sum+1 = 50012 [21:25:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 538 20.10.2024 21:25 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227690 ФПД: 56094844771955 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T212551&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227690&fm=56094844771955&tin=02508201610067®Number=0000000000091685&sum=50000 [21:25:51]StoreToDocumentArchive [21:25:51]shift 533 fd 227690 [21:25:51]save to /storage/0533/doc_00227690 [21:25:51]save last doc name /storage/0533/doc_00227690 to /storage/kkm_last_doc_name [21:25:51]save OK [21:25:51]Clear old archive folders... [21:25:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:25:51]tlvbuf is 00CEE100 [21:25:51]SAM_PROTO_ClearQueue [21:25:51]wFMCommunicate request_size=4 [21:25:51]MH_SAM_APDU [21:25:51]CAPDU: 80 09 00 00 [21:25:51]Write to MH i2c: E2 08 00 C5 14 80 09 00 00 00 00 00 00 4B [21:25:51]Write i2c OK [21:25:51]MH_I2C_Read... [21:25:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:25:51]Read from MH i2c: E2 [21:25:51]MH_I2C_Read... [21:25:51]Read from MH i2c: E2 03 00 [21:25:51]MH_I2C_Read... [21:25:51]Read from MH i2c: E2 03 00 C5 14 00 90 00 4D [21:25:51]RAPDU: 90 00 [21:25:51]wFMCommunicate OK [21:25:51]SAM_PROTO_ClearQueue done [21:25:51]KKMCreateOFDPacket [21:25:51]OFDProtocolAddRootSTLVToBuf [21:25:51]FM_MakeSignedData [21:25:51]FM_MakeSignedData [21:25:51]SAM_PROTO_SignData [21:25:51]wFMCommunicate request_size=4 [21:25:51]MH_SAM_APDU [21:25:51]CAPDU: 80 0D 01 02 [21:25:51]Write to MH i2c: E2 08 00 C6 14 80 0D 01 02 00 00 00 00 53 [21:25:51]Write i2c OK [21:25:51]MH_I2C_Read... [21:25:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:25:51]Read from MH i2c: E2 [21:25:51]MH_I2C_Read... [21:25:51]Read from MH i2c: E2 03 00 [21:25:51]MH_I2C_Read... [21:25:51]Read from MH i2c: E2 03 00 C6 14 00 90 00 4E [21:25:51]RAPDU: 90 00 [21:25:51]wFMCommunicate OK [21:25:51]wFMCommunicate request_size=255 [21:25:51]MH_SAM_APDU [21:25: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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 02 00 00 F4 03 04 00 5F 75 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6A 79 03 00 35 04 06 00 33 [21:25:51]Write to MH i2c: E2 02 01 C7 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 02 00 00 F4 03 04 00 5F 75 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6A 79 03 00 35 04 06 00 33 00 00 5E [21:25:51]Write i2c OK [21:25:51]MH_I2C_Read... [21:25:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:25:51]Read from MH i2c: E2 [21:25:51]MH_I2C_Read... [21:25:51]Read from MH i2c: E2 03 00 [21:25:51]MH_I2C_Read... [21:25:51]Read from MH i2c: E2 03 00 C7 14 00 90 00 4F [21:25:51]RAPDU: 90 00 [21:25:51]wFMCommunicate OK [21:25:51]wFMCommunicate request_size=10 [21:25:51]MH_SAM_APDU [21:25:51]CAPDU: 80 0D 02 02 05 04 99 4B DE 73 [21:25:51]Write to MH i2c: E2 0D 00 C8 14 80 0D 02 02 05 00 04 99 4B DE 73 00 00 99 [21:25:51]Write i2c OK [21:25:51]MH_I2C_Read... [21:25:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:25:51]Read from MH i2c: E2 [21:25:51]MH_I2C_Read... [21:25:51]Read from MH i2c: E2 03 00 [21:25:51]MH_I2C_Read... [21:25:51]Read from MH i2c: E2 03 00 C8 14 00 90 00 50 [21:25:51]RAPDU: 90 00 [21:25:51]wFMCommunicate OK [21:25:51]wFMCommunicate request_size=4 [21:25:51]MH_SAM_APDU [21:25:51]CAPDU: 80 0D 03 02 [21:25:51]Write to MH i2c: E2 08 00 C9 14 80 0D 03 02 00 00 00 00 58 [21:25:51]Write i2c OK [21:25:51]MH_I2C_Read... [21:25:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:25:51]Read from MH i2c: E2 [21:25:51]MH_I2C_Read... [21:25:51]Read from MH i2c: E2 0B 00 [21:25:51]MH_I2C_Read... [21:25:51]Read from MH i2c: E2 0B 00 C9 14 00 9D 88 A8 B8 74 EB 48 52 90 00 D7 [21:25:51]RAPDU: 9D 88 A8 B8 74 EB 48 52 90 00 [21:25:51]wFMCommunicate OK [21:25:51]SAM_PROTO_SignData done [21:25:51]FM_MakeSignedData done [21:25:51]CreateOFDProtocolMessage [21:25:51]wFMCommunicate request_size=4 [21:25:51]MH_SAM_APDU [21:25:51]CAPDU: 80 11 00 00 [21:25:51]Write to MH i2c: E2 08 00 CA 14 80 11 00 00 00 00 00 00 58 [21:25:51]Write i2c OK [21:25:51]MH_I2C_Read... [21:25:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:25:51]Read from MH i2c: E2 [21:25:51]MH_I2C_Read... [21:25:51]Read from MH i2c: E2 17 00 [21:25:51]MH_I2C_Read... [21:25:51]Read from MH i2c: E2 17 00 CA 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 AF [21:25:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:25:51]wFMCommunicate OK [21:25:51]CreateOFDProtocolMessage done [21:25:51]OFDSenderStorePacket 227690 [21:25:51]StoreOFDPacket docnum=227690 [21:25:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 85 37 07 01 72 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 02 00 00 F4 03 04 00 5F 75 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6A 79 03 00 35 04 06 00 33 04 99 4B DE 73 9D 88 A8 B8 74 EB 48 52 [21:25:51]CheckFolder [21:25:51]dirname=/storage/ofd_packets [21:25:51]CheckFolder done [21:25:51]ProducePacketName [21:25:51]name=ofd_packets/00227690 [21:25:51]NVStorageSaveData ofd_packets/00227690 [21:25:51]File name is /storage/ofd_packets/00227690 [21:25:51]Write 301 bytes [21:25:51]NVStorageSaveData done [21:25:51]OFDSenderStorePacket done [21:25:51]KKMCreateOFDPacket done [21:25:51]NVStorageSaveData kkm_last_timestamp [21:25:51]File name is /storage/kkm_last_timestamp [21:25:51]Write 4 bytes [21:25:51]NVStorageSaveData done [21:25:51]ExternCall_PrintAddStr [21:25:51]wPrintStart [21:25:51]Write to MH i2c: 01 00 00 CB 14 DF [21:25:52]Write i2c OK [21:25:52]MH_I2C_Read... [21:25:52]Read from MH i2c: 01 [21:25:52]MH_I2C_Read... [21:25:52]Read from MH i2c: 01 07 00 [21:25:52]MH_I2C_Read... [21:25:52]Read from MH i2c: 01 07 00 CB 14 00 00 00 00 00 FF 0F F4 [21:25:52]RasterBufferAndPrint [21:25:52]line Счет N : (1)1963353 [21:25:52]line ИНН: 02508201610067 [21:25:52]line Контрольно-Кассовый Чек [21:25:52]line ПРОДАЖА [21:25:52]line ТРК (МРК, ГНК) : 54 [21:25:52]line Товар: 2710124500 [21:25:52]line Аи-95-К-5 [21:25:52]line 6.740 * 74.20 [21:25:52]line = 500.11 [21:25:52]line НДС 12% НСП 1% [21:25:52]line > о реализуемом товаре [21:25:52]line ОКРУГЛЕНИЕ: -0.11 [21:25:52]line ИТОГО: 500.00 [21:25:52]line Внесено: 500.00 [21:25:52]line СДАЧА: 0.00 [21:25:52]line НСП 1% : 4.43 [21:25:52]line НДС 12% : 53.11 [21:25:52]line Наличными: 500.00 [21:25:52]line Безнал.: 0.00 [21:25:52]line Место: АЗС № 133 "Партнер Нефть" [21:25:52]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [21:25:52]line СНО: Общий режим [21:25:52]line Чек 538 20.10.2024 21:25 [21:25:52]line Смена: 533 ФФД: 1.0 [21:25:52]line ЗНМ: 0300000091 [21:25:52]line РНМ: 0000000000091685 [21:25:52]line Версия ККМ: 001 [21:25:52]line ФМ: 0000000000871839 [21:25:52]line ФД: 227690 [21:25:52]line ФПД: 56094844771955 [21:25:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T212551&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227690&fm=56094844771955&tin=02508201610067®Number=0000000000091685&sum=50000 [21:25:52]written 0, free lines is 4095 [21:25:52]OFD Sender: Processing packet 227690 [packets to send 38, broken 37] [21:25:52]ProducePacketName [21:25:52]name=ofd_packets/00227690 [21:25:52]OFD Sender: To server: pG, [21:25:52]CommunicateWithHost lk.salyk.kg:30040 [21:25:52]ConnectInit lk.salyk.kg [21:25:52]Connected sock=10 [21:25: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 33 39 0F 01 00 00 85 37 07 01 72 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 02 00 00 F4 03 04 00 5F 75 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6A 79 03 00 35 04 06 00 33 04 99 4B DE 73 9D 88 A8 B8 74 EB 48 52 [21:25: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 33 39 4F 00 00 00 2F D0 47 00 45 B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6A 79 03 00 F4 03 04 00 5D 20 15 67 B6 04 01 00 00 BB 10 12 65 9F 82 FD 12 [21:25:52]CommunicateWithHost err = 0 [21:25:52]CheckOFDResponse [21:25:52]1017 (14) - 77093643461234 [21:25:52]1041 (16) - 0000000000871839 [21:25:52]1040 (4) - 227690 [21:25:52]1012 (4) - 20.10.2024 15:23 [21:25:52]1206 (1) - 0 [21:25:52]OFD Sender: Remove packet 227690 [21:25:52]ProducePacketName [21:25:52]name=ofd_packets/00227690 [21:25:52]NVStorageDeleteData [21:25:52]Write to MH i2c: 01 00 00 F5 14 09 [21:25:52]Write i2c OK [21:25:52]MH_I2C_Read... [21:25:52]Read from MH i2c: 01 [21:25:52]MH_I2C_Read... [21:25:52]Read from MH i2c: 01 07 00 [21:25:52]MH_I2C_Read... [21:25:52]Read from MH i2c: 01 07 00 F5 14 00 00 00 00 00 BB 0C D7 [21:25:52]RasterBufferAndPrint [21:25:52]line [21:25:52]line [21:25:52]line [21:25:52]line [21:25:52]line [21:25:52]written 0, free lines is 3272 [21:25:52]MH_Cut [21:25:52]Write to MH i2c: D1 01 00 FC 14 01 E2 [21:25:52]Write i2c OK [21:25:52]MH_I2C_Read... [21:25:52]Read from MH i2c: D1 [21:25:52]MH_I2C_Read... [21:25:52]Read from MH i2c: D1 01 00 [21:25:52]MH_I2C_Read... [21:25:52]Read from MH i2c: D1 01 00 FC 14 00 E1 [21:25:52]Write to MH i2c: 01 00 00 FD 14 11 [21:25:52]Write i2c OK [21:25:52]MH_I2C_Read... [21:25:52]OFD Sender: No OFD packet to send [21:25:53]*** Cut start [21:25:53]*** Partial cut [21:25:53]*** CUTSNS_PIN = 1 [21:25:53]*** CUTSNS_PIN = 0 [21:25:53]*** Brake cut motor [21:25:53]Read from MH i2c: 01 [21:25:53]MH_I2C_Read... [21:25:53]*** Stop cut motor [21:25:53]*** Cut end [21:25:53]Read from MH i2c: 01 07 00 [21:25:54]MH_I2C_Read... [21:25:54]Read from MH i2c: 01 07 00 FD 14 00 00 00 00 00 FF 0F 26 [21:25:54]process_action close_receipt done [21:25:54]requested_data is exist [21:25:54]produce_requested_data [21:25:54]requested_item fm.sn is exist - process it [21:25:54]wFMCommunicate request_size=4 [21:25:54]MH_SAM_APDU [21:25:54]CAPDU: 80 11 00 00 [21:25:54]Write to MH i2c: E2 08 00 FE 14 80 11 00 00 00 00 00 00 8C [21:25:54]Write i2c OK [21:25:54]MH_I2C_Read... [21:25:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:25:54]Read from MH i2c: E2 [21:25:54]MH_I2C_Read... [21:25:54]Read from MH i2c: E2 17 00 [21:25:54]MH_I2C_Read... [21:25:54]Read from MH i2c: E2 17 00 FE 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E3 [21:25:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:25:54]wFMCommunicate OK [21:25:54]requested_item fd.num is exist - process it [21:25:54]SAM_PROTO_GetFieldsCounters [21:25:54]wFMCommunicate request_size=4 [21:25:54]MH_SAM_APDU [21:25:54]CAPDU: 80 13 00 00 [21:25:54]Write to MH i2c: E2 08 00 FF 14 80 13 00 00 00 00 00 00 8F [21:25:54]Write i2c OK [21:25:54]MH_I2C_Read... [21:25:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:25:54]Read from MH i2c: E2 [21:25:54]MH_I2C_Read... [21:25:54]Read from MH i2c: E2 62 00 [21:25:54]MH_I2C_Read... [21:25:54]Read from MH i2c: E2 62 00 FF 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6A 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 1A 02 00 00 5E 04 04 00 1A 02 00 00 57 04 04 00 1B 02 00 00 19 04 04 00 00 00 00 00 90 00 09 [21:25:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6A 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 1A 02 00 00 5E 04 04 00 1A 02 00 00 57 04 04 00 1B 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:25:54]wFMCommunicate OK [21:25:54]SAM_PROTO_GetFieldsCounters done [21:25:54]requested_item shift.num is exist - process it [21:25:54]requested_item shift.opened is exist - process it [21:25:54]req_shift_opened [21:25:54]FM_GetShiftState [21:25:54]SAM_PROTO_GetShiftState [21:25:54]wFMCommunicate request_size=4 [21:25:54]MH_SAM_APDU [21:25:54]CAPDU: 80 13 01 00 [21:25:54]Write to MH i2c: E2 08 00 00 15 80 13 01 00 00 00 00 00 92 [21:25:54]Write i2c OK [21:25:54]MH_I2C_Read... [21:25:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:25:54]Read from MH i2c: E2 [21:25:54]MH_I2C_Read... [21:25:54]Read from MH i2c: E2 0E 00 [21:25:54]MH_I2C_Read... [21:25:54]Read from MH i2c: E2 0E 00 00 15 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 AC [21:25:54]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:25:54]wFMCommunicate OK [21:25:54]SAM_PROTO_GetShiftState done [21:25:54]FM_GetShiftState done [21:25:54]req_shift_opened done [21:25:54]requested_item shift.open_date is exist - process it [21:25:54]req_shift_open_date [21:25:54]req_shift_open_date done [21:25:54]produce_requested_data done [21:25:54]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227690,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [21:25:54]process_action_free close_receipt [21:25:54]json_value_free [21:25:54]json_value_free done [21:25:54]process_json_proto returns [21:25:54]Send response to host [21:25:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227690,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [21:25:54]free response buf [21:25:54]execute_script done [21:25:54]execute_script returns [21:25:54]free content buf [21:25:54]Sock 9.Close socket [21:25:54]Sock 9.Thread stoped [21:25:57]OFD Sender: No OFD packet to send [21:26:02]OFD Sender: No OFD packet to send [21:26:07]OFD Sender: No OFD packet to send [21:26:12]OFD Sender: No OFD packet to send [21:26:17]OFD Sender: No OFD packet to send [21:26:22]OFD Sender: No OFD packet to send [21:26:27]OFD Sender: No OFD packet to send [21:26:33]OFD Sender: No OFD packet to send [21:26:38]OFD Sender: No OFD packet to send [21:26:43]OFD Sender: No OFD packet to send [21:26:48]OFD Sender: No OFD packet to send [21:26:52]accept exits with 7 [21:26:52]New connection [21:26:52]New thread 3066666340 created [21:26:52]Thread 3066809700 joined [21:26:52]Waiting for new connection... [21:26:52] Sock 7.Parse request [21:26:52]Sock 7.Check first char [21:26:52]Sock 7.First char is OK [21:26:52]request: POST /json_proto HTTP/1.0 [21:26:52]Method: POST [21:26:52]URL: /json_proto [21:26:52]Method is POST - this is cgi request [21:26:52]url: /json_proto [21:26:52]query_string will be loaded in cgi processing [21:26:52]execute_cgi json_proto POST (null) [21:26:52]execute_cgi path=json_proto method=POST [21:26:52]POST find Content-Length [21:26:52]Host: 172.17.44.195:8080 [21:26:52]Content-Length: 683 [21:26:52]Content-Type: application/json [21:26:52] [21:26:52]POST finish read [21:26:52]Found Content-Length = 683 [21:26:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963354", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:26:52]execute_script... [21:26:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963354", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:26:52]POST & json_proto [21:26:52]process_json_proto [21:26:52]json parsed OK: [21:26:52]protocol is kg_v1.0 [21:26:52]action value=close_receipt [21:26:52]process_action close_receipt [21:26:52]cmd_close_receipt [21:26:52]MH_GetDate [21:26:52]Write to MH i2c: F0 00 00 01 15 05 [21:26:52]Write i2c OK [21:26:52]MH_I2C_Read... [21:26:52]Read from MH i2c: F0 [21:26:52]MH_I2C_Read... [21:26:52]Read from MH i2c: F0 09 00 [21:26:52]MH_I2C_Read... [21:26:52]Read from MH i2c: F0 09 00 01 15 00 9E 75 15 67 82 C9 CF 66 1D [21:26:52]GetLastDocTimeStamp 1729459551 [21:26:52]current date 1729459614 [21:26:52]FM_GetShiftState [21:26:52]SAM_PROTO_GetShiftState [21:26:52]wFMCommunicate request_size=4 [21:26:52]MH_SAM_APDU [21:26:52]CAPDU: 80 13 01 00 [21:26:52]Write to MH i2c: E2 08 00 02 15 80 13 01 00 00 00 00 00 94 [21:26:52]Write i2c OK [21:26:52]MH_I2C_Read... [21:26:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:26:52]Read from MH i2c: E2 [21:26:52]MH_I2C_Read... [21:26:52]Read from MH i2c: E2 0E 00 [21:26:52]MH_I2C_Read... [21:26:52]Read from MH i2c: E2 0E 00 02 15 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 AE [21:26:52]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:26:52]wFMCommunicate OK [21:26:52]SAM_PROTO_GetShiftState done [21:26:52]FM_GetShiftState done [21:26:52]opened in 1729383750 [21:26:52]opened+sec_in_day 1729470150 [21:26:52]quantity*price = 100015 [21:26:52]sum+1 = 100017 [21:26:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 539 20.10.2024 21:26 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227691 ФПД: 44061770141426 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T212654&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227691&fm=44061770141426&tin=02508201610067®Number=0000000000091685&sum=100000 [21:26:54]StoreToDocumentArchive [21:26:54]shift 533 fd 227691 [21:26:54]save to /storage/0533/doc_00227691 [21:26:54]save last doc name /storage/0533/doc_00227691 to /storage/kkm_last_doc_name [21:26:54]save OK [21:26:54]Clear old archive folders... [21:26:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:26:54]tlvbuf is 00C457F0 [21:26:54]SAM_PROTO_ClearQueue [21:26:54]wFMCommunicate request_size=4 [21:26:54]MH_SAM_APDU [21:26:54]CAPDU: 80 09 00 00 [21:26:54]Write to MH i2c: E2 08 00 0F 15 80 09 00 00 00 00 00 00 96 [21:26:54]Write i2c OK [21:26:54]MH_I2C_Read... [21:26:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:26:54]Read from MH i2c: E2 [21:26:54]MH_I2C_Read... [21:26:54]Read from MH i2c: E2 03 00 [21:26:54]MH_I2C_Read... [21:26:54]Read from MH i2c: E2 03 00 0F 15 00 90 00 98 [21:26:54]RAPDU: 90 00 [21:26:54]wFMCommunicate OK [21:26:54]SAM_PROTO_ClearQueue done [21:26:54]KKMCreateOFDPacket [21:26:54]OFDProtocolAddRootSTLVToBuf [21:26:54]FM_MakeSignedData [21:26:54]FM_MakeSignedData [21:26:54]SAM_PROTO_SignData [21:26:54]wFMCommunicate request_size=4 [21:26:54]MH_SAM_APDU [21:26:54]CAPDU: 80 0D 01 02 [21:26:54]Write to MH i2c: E2 08 00 10 15 80 0D 01 02 00 00 00 00 9E [21:26:54]Write i2c OK [21:26:54]MH_I2C_Read... [21:26:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:26:54]Read from MH i2c: E2 [21:26:54]MH_I2C_Read... [21:26:54]Read from MH i2c: E2 03 00 [21:26:54]MH_I2C_Read... [21:26:54]Read from MH i2c: E2 03 00 10 15 00 90 00 99 [21:26:54]RAPDU: 90 00 [21:26:54]wFMCommunicate OK [21:26:54]wFMCommunicate request_size=255 [21:26:54]MH_SAM_APDU [21:26:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 02 00 00 F4 03 04 00 9E 75 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6B 79 03 00 35 04 06 00 28 [21:26:54]Write to MH i2c: E2 02 01 11 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 02 00 00 F4 03 04 00 9E 75 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6B 79 03 00 35 04 06 00 28 00 00 01 [21:26:54]Write i2c OK [21:26:54]MH_I2C_Read... [21:26:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:26:54]Read from MH i2c: E2 [21:26:54]MH_I2C_Read... [21:26:54]Read from MH i2c: E2 03 00 [21:26:54]MH_I2C_Read... [21:26:54]Read from MH i2c: E2 03 00 11 15 00 90 00 9A [21:26:54]RAPDU: 90 00 [21:26:54]wFMCommunicate OK [21:26:54]wFMCommunicate request_size=10 [21:26:54]MH_SAM_APDU [21:26:54]CAPDU: 80 0D 02 02 05 12 EE 28 4E F2 [21:26:54]Write to MH i2c: E2 0D 00 12 15 80 0D 02 02 05 00 12 EE 28 4E F2 00 00 13 [21:26:54]Write i2c OK [21:26:54]MH_I2C_Read... [21:26:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:26:54]Read from MH i2c: E2 [21:26:54]MH_I2C_Read... [21:26:54]Read from MH i2c: E2 03 00 [21:26:54]MH_I2C_Read... [21:26:54]Read from MH i2c: E2 03 00 12 15 00 90 00 9B [21:26:54]RAPDU: 90 00 [21:26:54]wFMCommunicate OK [21:26:54]wFMCommunicate request_size=4 [21:26:54]MH_SAM_APDU [21:26:54]CAPDU: 80 0D 03 02 [21:26:54]Write to MH i2c: E2 08 00 13 15 80 0D 03 02 00 00 00 00 A3 [21:26:54]Write i2c OK [21:26:54]MH_I2C_Read... [21:26:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:26:54]Read from MH i2c: E2 [21:26:54]MH_I2C_Read... [21:26:54]Read from MH i2c: E2 0B 00 [21:26:54]MH_I2C_Read... [21:26:54]Read from MH i2c: E2 0B 00 13 15 00 63 17 59 FE 67 56 42 13 90 00 87 [21:26:54]RAPDU: 63 17 59 FE 67 56 42 13 90 00 [21:26:54]wFMCommunicate OK [21:26:54]SAM_PROTO_SignData done [21:26:54]FM_MakeSignedData done [21:26:54]CreateOFDProtocolMessage [21:26:54]wFMCommunicate request_size=4 [21:26:54]MH_SAM_APDU [21:26:54]CAPDU: 80 11 00 00 [21:26:54]Write to MH i2c: E2 08 00 14 15 80 11 00 00 00 00 00 00 A3 [21:26:54]Write i2c OK [21:26:54]MH_I2C_Read... [21:26:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:26:54]Read from MH i2c: E2 [21:26:54]MH_I2C_Read... [21:26:54]Read from MH i2c: E2 17 00 [21:26:54]MH_I2C_Read... [21:26:54]Read from MH i2c: E2 17 00 14 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 FA [21:26:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:26:54]wFMCommunicate OK [21:26:54]CreateOFDProtocolMessage done [21:26:54]OFDSenderStorePacket 227691 [21:26:54]StoreOFDPacket docnum=227691 [21:26:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 5A 2E 07 01 3F FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 02 00 00 F4 03 04 00 9E 75 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6B 79 03 00 35 04 06 00 28 12 EE 28 4E F2 63 17 59 FE 67 56 42 13 [21:26:54]CheckFolder [21:26:54]dirname=/storage/ofd_packets [21:26:54]CheckFolder done [21:26:54]ProducePacketName [21:26:54]name=ofd_packets/00227691 [21:26:54]NVStorageSaveData ofd_packets/00227691 [21:26:54]File name is /storage/ofd_packets/00227691 [21:26:54]Write 301 bytes [21:26:54]NVStorageSaveData done [21:26:54]OFDSenderStorePacket done [21:26:54]KKMCreateOFDPacket done [21:26:54]NVStorageSaveData kkm_last_timestamp [21:26:54]File name is /storage/kkm_last_timestamp [21:26:54]Write 4 bytes [21:26:54]NVStorageSaveData done [21:26:54]ExternCall_PrintAddStr [21:26:54]wPrintStart [21:26:54]Write to MH i2c: 01 00 00 15 15 2A [21:26:54]OFD Sender: Processing packet 227691 [packets to send 38, broken 37] [21:26:54]ProducePacketName [21:26:54]name=ofd_packets/00227691 [21:26:54]OFD Sender: To server: pG, [21:26:54]CommunicateWithHost lk.salyk.kg:30040 [21:26:54]ConnectInit lk.salyk.kg [21:26:54]Write i2c OK [21:26:54]MH_I2C_Read... [21:26:54]Read from MH i2c: 01 [21:26:54]MH_I2C_Read... [21:26:54]Read from MH i2c: 01 07 00 [21:26:54]MH_I2C_Read... [21:26:54]Read from MH i2c: 01 07 00 15 15 00 00 00 00 00 FF 0F 3F [21:26:54]RasterBufferAndPrint [21:26:54]line Счет N : (1)1963354 [21:26:54]line ИНН: 02508201610067 [21:26:54]line Контрольно-Кассовый Чек [21:26:54]line ПРОДАЖА [21:26:54]line ТРК (МРК, ГНК) : 43 [21:26:54]line Товар: 2710124130 [21:26:54]line Аи-92-К-5 [21:26:54]line 14.950 * 66.90 [21:26:54]line = 1000.16 [21:26:54]line НДС 12% НСП 1% [21:26:54]line > о реализуемом товаре [21:26:54]line ОКРУГЛЕНИЕ: -0.16 [21:26:54]line ИТОГО: 1000.00 [21:26:54]line Внесено: 1000.00 [21:26:54]line СДАЧА: 0.00 [21:26:54]line НСП 1% : 8.85 [21:26:54]line НДС 12% : 106.21 [21:26:54]line Наличными: 1000.00 [21:26:54]line Безнал.: 0.00 [21:26:54]line Место: АЗС № 133 "Партнер Нефть" [21:26:54]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [21:26:54]line СНО: Общий режим [21:26:54]line Чек 539 20.10.2024 21:26 [21:26:54]line Смена: 533 ФФД: 1.0 [21:26:54]line ЗНМ: 0300000091 [21:26:54]line РНМ: 0000000000091685 [21:26:54]line Версия ККМ: 001 [21:26:54]line ФМ: 0000000000871839 [21:26:54]line ФД: 227691 [21:26:54]line ФПД: 44061770141426 [21:26:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T212654&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227691&fm=44061770141426&tin=02508201610067®Number=0000000000091685&sum=100000 [21:26:54]written 0, free lines is 4095 [21:26:54]Connected sock=10 [21:26: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 33 39 0F 01 00 00 5A 2E 07 01 3F FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 02 00 00 F4 03 04 00 9E 75 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6B 79 03 00 35 04 06 00 28 12 EE 28 4E F2 63 17 59 FE 67 56 42 13 [21:26: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 33 39 4F 00 00 00 BF 61 47 00 E1 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6B 79 03 00 F4 03 04 00 9B 20 15 67 B6 04 01 00 00 72 B6 F0 7B 1C E1 90 31 [21:26:54]CommunicateWithHost err = 0 [21:26:54]CheckOFDResponse [21:26:54]1017 (14) - 77093643461234 [21:26:54]1041 (16) - 0000000000871839 [21:26:54]1040 (4) - 227691 [21:26:54]1012 (4) - 20.10.2024 15:24 [21:26:54]1206 (1) - 0 [21:26:54]OFD Sender: Remove packet 227691 [21:26:54]ProducePacketName [21:26:54]name=ofd_packets/00227691 [21:26:54]NVStorageDeleteData [21:26:55]Write to MH i2c: 01 00 00 3F 15 54 [21:26:55]Write i2c OK [21:26:55]MH_I2C_Read... [21:26:55]Read from MH i2c: 01 [21:26:55]MH_I2C_Read... [21:26:55]Read from MH i2c: 01 07 00 [21:26:55]MH_I2C_Read... [21:26:55]Read from MH i2c: 01 07 00 3F 15 00 00 00 00 00 AE 0C 15 [21:26:55]RasterBufferAndPrint [21:26:55]line [21:26:55]line [21:26:55]line [21:26:55]line [21:26:55]line [21:26:55]written 0, free lines is 3251 [21:26:55]MH_Cut [21:26:55]Write to MH i2c: D1 01 00 46 15 01 2D [21:26:55]Write i2c OK [21:26:55]MH_I2C_Read... [21:26:55]Read from MH i2c: D1 [21:26:55]MH_I2C_Read... [21:26:55]Read from MH i2c: D1 01 00 [21:26:55]MH_I2C_Read... [21:26:55]Read from MH i2c: D1 01 00 46 15 00 2C [21:26:55]Write to MH i2c: 01 00 00 47 15 5C [21:26:55]Write i2c OK [21:26:55]MH_I2C_Read... [21:26:55]OFD Sender: No OFD packet to send [21:26:56]*** Cut start [21:26:56]*** Partial cut [21:26:56]*** CUTSNS_PIN = 1 [21:26:56]*** CUTSNS_PIN = 0 [21:26:56]*** Brake cut motor [21:26:56]Read from MH i2c: 01 [21:26:56]MH_I2C_Read... [21:26:56]*** Stop cut motor [21:26:56]*** Cut end [21:26:56]Read from MH i2c: 01 07 00 [21:26:56]MH_I2C_Read... [21:26:56]Read from MH i2c: 01 07 00 47 15 00 00 00 00 00 FF 0F 71 [21:26:56]process_action close_receipt done [21:26:56]requested_data is exist [21:26:56]produce_requested_data [21:26:56]requested_item fm.sn is exist - process it [21:26:56]wFMCommunicate request_size=4 [21:26:56]MH_SAM_APDU [21:26:56]CAPDU: 80 11 00 00 [21:26:56]Write to MH i2c: E2 08 00 48 15 80 11 00 00 00 00 00 00 D7 [21:26:56]Write i2c OK [21:26:56]MH_I2C_Read... [21:26:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:26:56]Read from MH i2c: E2 [21:26:56]MH_I2C_Read... [21:26:56]Read from MH i2c: E2 17 00 [21:26:56]MH_I2C_Read... [21:26:56]Read from MH i2c: E2 17 00 48 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 2E [21:26:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:26:56]wFMCommunicate OK [21:26:56]requested_item fd.num is exist - process it [21:26:56]SAM_PROTO_GetFieldsCounters [21:26:56]wFMCommunicate request_size=4 [21:26:56]MH_SAM_APDU [21:26:56]CAPDU: 80 13 00 00 [21:26:56]Write to MH i2c: E2 08 00 49 15 80 13 00 00 00 00 00 00 DA [21:26:56]Write i2c OK [21:26:56]MH_I2C_Read... [21:26:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:26:56]Read from MH i2c: E2 [21:26:56]MH_I2C_Read... [21:26:56]Read from MH i2c: E2 62 00 [21:26:56]MH_I2C_Read... [21:26:56]Read from MH i2c: E2 62 00 49 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6B 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 1B 02 00 00 5E 04 04 00 1B 02 00 00 57 04 04 00 1C 02 00 00 19 04 04 00 00 00 00 00 90 00 58 [21:26:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6B 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 1B 02 00 00 5E 04 04 00 1B 02 00 00 57 04 04 00 1C 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:26:56]wFMCommunicate OK [21:26:56]SAM_PROTO_GetFieldsCounters done [21:26:56]requested_item shift.num is exist - process it [21:26:56]requested_item shift.opened is exist - process it [21:26:56]req_shift_opened [21:26:56]FM_GetShiftState [21:26:56]SAM_PROTO_GetShiftState [21:26:56]wFMCommunicate request_size=4 [21:26:56]MH_SAM_APDU [21:26:56]CAPDU: 80 13 01 00 [21:26:56]Write to MH i2c: E2 08 00 4A 15 80 13 01 00 00 00 00 00 DC [21:26:56]Write i2c OK [21:26:56]MH_I2C_Read... [21:26:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:26:56]Read from MH i2c: E2 [21:26:56]MH_I2C_Read... [21:26:56]Read from MH i2c: E2 0E 00 [21:26:56]MH_I2C_Read... [21:26:56]Read from MH i2c: E2 0E 00 4A 15 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 F6 [21:26:56]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:26:56]wFMCommunicate OK [21:26:56]SAM_PROTO_GetShiftState done [21:26:56]FM_GetShiftState done [21:26:56]req_shift_opened done [21:26:56]requested_item shift.open_date is exist - process it [21:26:56]req_shift_open_date [21:26:56]req_shift_open_date done [21:26:56]produce_requested_data done [21:26:56]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227691,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [21:26:56]process_action_free close_receipt [21:26:56]json_value_free [21:26:56]json_value_free done [21:26:56]process_json_proto returns [21:26:56]Send response to host [21:26:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227691,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [21:26:56]free response buf [21:26:56]execute_script done [21:26:56]execute_script returns [21:26:56]free content buf [21:26:56]Sock 7.Close socket [21:26:56]Sock 7.Thread stoped [21:27:00]OFD Sender: No OFD packet to send [21:27:05]OFD Sender: No OFD packet to send [21:27:10]OFD Sender: No OFD packet to send [21:27:15]OFD Sender: No OFD packet to send [21:27:20]OFD Sender: No OFD packet to send [21:27:25]OFD Sender: No OFD packet to send [21:27:30]OFD Sender: No OFD packet to send [21:27:35]OFD Sender: No OFD packet to send [21:27:40]OFD Sender: No OFD packet to send [21:27:45]OFD Sender: No OFD packet to send [21:27:50]OFD Sender: No OFD packet to send [21:27:55]OFD Sender: No OFD packet to send [21:28:00]OFD Sender: No OFD packet to send [21:28:05]OFD Sender: No OFD packet to send [21:28:10]OFD Sender: No OFD packet to send [21:28:15]OFD Sender: No OFD packet to send [21:28:20]OFD Sender: No OFD packet to send [21:28:25]OFD Sender: No OFD packet to send [21:28:30]OFD Sender: No OFD packet to send [21:28:35]OFD Sender: No OFD packet to send [21:28:40]OFD Sender: No OFD packet to send [21:28:45]OFD Sender: No OFD packet to send [21:28:50]OFD Sender: No OFD packet to send [21:28:55]OFD Sender: No OFD packet to send [21:28:56]accept exits with 9 [21:28:56]New connection [21:28:56]New thread 3066809700 created [21:28:56]Thread 3066666340 joined [21:28:56]Waiting for new connection... [21:28:56] Sock 9.Parse request [21:28:56]Sock 9.Check first char [21:28:56]Sock 9.First char is OK [21:28:56]request: POST /json_proto HTTP/1.0 [21:28:56]Method: POST [21:28:56]URL: /json_proto [21:28:56]Method is POST - this is cgi request [21:28:56]url: /json_proto [21:28:56]query_string will be loaded in cgi processing [21:28:56]execute_cgi json_proto POST (null) [21:28:56]execute_cgi path=json_proto method=POST [21:28:56]POST find Content-Length [21:28:56]Host: 172.17.44.195:8080 [21:28:56]Content-Length: 675 [21:28:56]Content-Type: application/json [21:28:56] [21:28:56]POST finish read [21:28:56]Found Content-Length = 675 [21:28:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963355", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:28:56]execute_script... [21:28:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963355", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:28:56]POST & json_proto [21:28:56]process_json_proto [21:28:56]json parsed OK: [21:28:56]protocol is kg_v1.0 [21:28:56]action value=close_receipt [21:28:56]process_action close_receipt [21:28:56]cmd_close_receipt [21:28:56]MH_GetDate [21:28:56]Write to MH i2c: F0 00 00 4B 15 4F [21:28:56]Write i2c OK [21:28:56]MH_I2C_Read... [21:28:56]Read from MH i2c: F0 [21:28:56]MH_I2C_Read... [21:28:56]Read from MH i2c: F0 09 00 [21:28:56]MH_I2C_Read... [21:28:56]Read from MH i2c: F0 09 00 4B 15 00 19 76 15 67 82 C9 CF 66 E3 [21:28:56]GetLastDocTimeStamp 1729459614 [21:28:56]current date 1729459737 [21:28:56]FM_GetShiftState [21:28:56]SAM_PROTO_GetShiftState [21:28:56]wFMCommunicate request_size=4 [21:28:56]MH_SAM_APDU [21:28:56]CAPDU: 80 13 01 00 [21:28:56]Write to MH i2c: E2 08 00 4C 15 80 13 01 00 00 00 00 00 DE [21:28:56]Write i2c OK [21:28:56]MH_I2C_Read... [21:28:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:28:56]Read from MH i2c: E2 [21:28:56]MH_I2C_Read... [21:28:56]Read from MH i2c: E2 0E 00 [21:28:56]MH_I2C_Read... [21:28:56]Read from MH i2c: E2 0E 00 4C 15 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 F8 [21:28:56]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:28:56]wFMCommunicate OK [21:28:56]SAM_PROTO_GetShiftState done [21:28:56]FM_GetShiftState done [21:28:56]opened in 1729383750 [21:28:56]opened+sec_in_day 1729470150 [21:28:56]quantity*price = 60045 [21:28:56]sum+1 = 60047 [21:28:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 540 20.10.2024 21:28 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227692 ФПД: 108567183173871 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T212857&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227692&fm=108567183173871&tin=02508201610067®Number=0000000000091685&sum=60000 [21:28:57]StoreToDocumentArchive [21:28:57]shift 533 fd 227692 [21:28:57]save to /storage/0533/doc_00227692 [21:28:57]save last doc name /storage/0533/doc_00227692 to /storage/kkm_last_doc_name [21:28:57]save OK [21:28:57]Clear old archive folders... [21:28:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:28:57]tlvbuf is B6E9E670 [21:28:57]SAM_PROTO_ClearQueue [21:28:57]wFMCommunicate request_size=4 [21:28:57]MH_SAM_APDU [21:28:57]CAPDU: 80 09 00 00 [21:28:57]Write to MH i2c: E2 08 00 59 15 80 09 00 00 00 00 00 00 E0 [21:28:57]Write i2c OK [21:28:57]MH_I2C_Read... [21:28:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:28:57]Read from MH i2c: E2 [21:28:57]MH_I2C_Read... [21:28:57]Read from MH i2c: E2 03 00 [21:28:57]MH_I2C_Read... [21:28:57]Read from MH i2c: E2 03 00 59 15 00 90 00 E2 [21:28:57]RAPDU: 90 00 [21:28:57]wFMCommunicate OK [21:28:57]SAM_PROTO_ClearQueue done [21:28:57]KKMCreateOFDPacket [21:28:57]OFDProtocolAddRootSTLVToBuf [21:28:57]FM_MakeSignedData [21:28:57]FM_MakeSignedData [21:28:57]SAM_PROTO_SignData [21:28:57]wFMCommunicate request_size=4 [21:28:57]MH_SAM_APDU [21:28:57]CAPDU: 80 0D 01 02 [21:28:57]Write to MH i2c: E2 08 00 5A 15 80 0D 01 02 00 00 00 00 E8 [21:28:57]Write i2c OK [21:28:57]MH_I2C_Read... [21:28:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:28:57]Read from MH i2c: E2 [21:28:57]MH_I2C_Read... [21:28:57]Read from MH i2c: E2 03 00 [21:28:57]MH_I2C_Read... [21:28:57]Read from MH i2c: E2 03 00 5A 15 00 90 00 E3 [21:28:57]RAPDU: 90 00 [21:28:57]wFMCommunicate OK [21:28:57]wFMCommunicate request_size=255 [21:28:57]MH_SAM_APDU [21:28:57]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 02 00 00 F4 03 04 00 19 76 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6C 79 03 00 35 04 06 00 62 BD C4 63 [21:28:57]Write to MH i2c: E2 02 01 5B 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 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 02 00 00 F4 03 04 00 19 76 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6C 79 03 00 35 04 06 00 62 BD C4 63 00 00 A4 [21:28:57]Write i2c OK [21:28:57]MH_I2C_Read... [21:28:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:28:57]Read from MH i2c: E2 [21:28:57]MH_I2C_Read... [21:28:57]Read from MH i2c: E2 03 00 [21:28:57]MH_I2C_Read... [21:28:57]Read from MH i2c: E2 03 00 5B 15 00 90 00 E4 [21:28:57]RAPDU: 90 00 [21:28:57]wFMCommunicate OK [21:28:57]wFMCommunicate request_size=7 [21:28:57]MH_SAM_APDU [21:28:57]CAPDU: 80 0D 02 02 02 28 EF [21:28:57]Write to MH i2c: E2 0A 00 5C 15 80 0D 02 02 02 00 28 EF 00 00 06 [21:28:57]Write i2c OK [21:28:57]MH_I2C_Read... [21:28:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:28:57]Read from MH i2c: E2 [21:28:57]MH_I2C_Read... [21:28:57]Read from MH i2c: E2 03 00 [21:28:57]MH_I2C_Read... [21:28:57]Read from MH i2c: E2 03 00 5C 15 00 90 00 E5 [21:28:57]RAPDU: 90 00 [21:28:57]wFMCommunicate OK [21:28:57]wFMCommunicate request_size=4 [21:28:57]MH_SAM_APDU [21:28:57]CAPDU: 80 0D 03 02 [21:28:57]Write to MH i2c: E2 08 00 5D 15 80 0D 03 02 00 00 00 00 ED [21:28:57]Write i2c OK [21:28:57]MH_I2C_Read... [21:28:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:28:57]Read from MH i2c: E2 [21:28:57]MH_I2C_Read... [21:28:57]Read from MH i2c: E2 0B 00 [21:28:57]MH_I2C_Read... [21:28:57]Read from MH i2c: E2 0B 00 5D 15 00 C4 3C 14 8E 0A 9A A1 09 90 00 DE [21:28:57]RAPDU: C4 3C 14 8E 0A 9A A1 09 90 00 [21:28:57]wFMCommunicate OK [21:28:57]SAM_PROTO_SignData done [21:28:57]FM_MakeSignedData done [21:28:57]CreateOFDProtocolMessage [21:28:57]wFMCommunicate request_size=4 [21:28:57]MH_SAM_APDU [21:28:57]CAPDU: 80 11 00 00 [21:28:57]Write to MH i2c: E2 08 00 5E 15 80 11 00 00 00 00 00 00 ED [21:28:57]Write i2c OK [21:28:57]MH_I2C_Read... [21:28:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:28:58]Read from MH i2c: E2 [21:28:58]MH_I2C_Read... [21:28:58]Read from MH i2c: E2 17 00 [21:28:58]MH_I2C_Read... [21:28:58]Read from MH i2c: E2 17 00 5E 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 44 [21:28:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:28:58]wFMCommunicate OK [21:28:58]CreateOFDProtocolMessage done [21:28:58]OFDSenderStorePacket 227692 [21:28:58]StoreOFDPacket docnum=227692 [21:28:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 04 3E 04 01 6B 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 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 02 00 00 F4 03 04 00 19 76 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6C 79 03 00 35 04 06 00 62 BD C4 63 28 EF C4 3C 14 8E 0A 9A A1 09 [21:28:58]CheckFolder [21:28:58]dirname=/storage/ofd_packets [21:28:58]CheckFolder done [21:28:58]ProducePacketName [21:28:58]name=ofd_packets/00227692 [21:28:58]NVStorageSaveData ofd_packets/00227692 [21:28:58]File name is /storage/ofd_packets/00227692 [21:28:58]Write 298 bytes [21:28:58]NVStorageSaveData done [21:28:58]OFDSenderStorePacket done [21:28:58]KKMCreateOFDPacket done [21:28:58]NVStorageSaveData kkm_last_timestamp [21:28:58]File name is /storage/kkm_last_timestamp [21:28:58]Write 4 bytes [21:28:58]NVStorageSaveData done [21:28:58]ExternCall_PrintAddStr [21:28:58]wPrintStart [21:28:58]Write to MH i2c: 01 00 00 5F 15 74 [21:28:58]Write i2c OK [21:28:58]MH_I2C_Read... [21:28:58]Read from MH i2c: 01 [21:28:58]MH_I2C_Read... [21:28:58]Read from MH i2c: 01 07 00 [21:28:58]MH_I2C_Read... [21:28:58]Read from MH i2c: 01 07 00 5F 15 00 00 00 00 00 FF 0F 89 [21:28:58]RasterBufferAndPrint [21:28:58]line Счет N : (1)1963355 [21:28:58]line ИНН: 02508201610067 [21:28:58]line Контрольно-Кассовый Чек [21:28:58]line ПРОДАЖА [21:28:58]line ТРК (МРК, ГНК) : 41 [21:28:58]line Товар: 2710194210 [21:28:58]line ДТ-К-5 [21:28:58]line 7.880 * 76.20 [21:28:58]line = 600.46 [21:28:58]line НДС 12% НСП 1% [21:28:58]line > о реализуемом товаре [21:28:58]line ОКРУГЛЕНИЕ: -0.46 [21:28:58]line ИТОГО: 600.00 [21:28:58]line Внесено: 600.00 [21:28:58]line СДАЧА: 0.00 [21:28:58]line НСП 1% : 5.31 [21:28:58]line НДС 12% : 63.77 [21:28:58]line Наличными: 600.00 [21:28:58]line Безнал.: 0.00 [21:28:58]line Место: АЗС № 133 "Партнер Нефть" [21:28:58]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [21:28:58]line СНО: Общий режим [21:28:58]line Чек 540 20.10.2024 21:28 [21:28:58]line Смена: 533 ФФД: 1.0 [21:28:58]line ЗНМ: 0300000091 [21:28:58]line РНМ: 0000000000091685 [21:28:58]line Версия ККМ: 001 [21:28:58]line ФМ: 0000000000871839 [21:28:58]line ФД: 227692 [21:28:58]line ФПД: 108567183173871 [21:28:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T212857&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227692&fm=108567183173871&tin=02508201610067®Number=0000000000091685&sum=60000 [21:28:58]OFD Sender: Processing packet 227692 [packets to send 38, broken 37] [21:28:58]ProducePacketName [21:28:58]name=ofd_packets/00227692 [21:28:58]OFD Sender: To server: pG, [21:28:58]CommunicateWithHost lk.salyk.kg:30040 [21:28:58]ConnectInit lk.salyk.kg [21:28:58]written 0, free lines is 4095 [21:28:58]Connected sock=10 [21:28:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 04 3E 04 01 6B 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 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 02 00 00 F4 03 04 00 19 76 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6C 79 03 00 35 04 06 00 62 BD C4 63 28 EF C4 3C 14 8E 0A 9A A1 09 [21:28:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 B2 84 47 00 D4 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 33 39 10 04 04 00 6C 79 03 00 F4 03 04 00 17 21 15 67 B6 04 01 00 00 72 33 27 2A A0 18 92 D9 [21:28:58]CommunicateWithHost err = 0 [21:28:58]CheckOFDResponse [21:28:58]1017 (14) - 77093643461234 [21:28:58]1041 (16) - 0000000000871839 [21:28:58]1040 (4) - 227692 [21:28:58]1012 (4) - 20.10.2024 15:26 [21:28:58]1206 (1) - 0 [21:28:58]OFD Sender: Remove packet 227692 [21:28:58]ProducePacketName [21:28:58]name=ofd_packets/00227692 [21:28:58]NVStorageDeleteData [21:28:58]Write to MH i2c: 01 00 00 89 15 9E [21:28:58]Write i2c OK [21:28:58]MH_I2C_Read... [21:28:58]Read from MH i2c: 01 [21:28:58]MH_I2C_Read... [21:28:58]Read from MH i2c: 01 07 00 [21:28:58]MH_I2C_Read... [21:28:58]Read from MH i2c: 01 07 00 89 15 00 00 00 00 00 AF 0C 60 [21:28:58]RasterBufferAndPrint [21:28:58]line [21:28:58]line [21:28:58]line [21:28:58]line [21:28:58]line [21:28:58]written 0, free lines is 3250 [21:28:58]MH_Cut [21:28:58]Write to MH i2c: D1 01 00 90 15 01 77 [21:28:58]Write i2c OK [21:28:58]MH_I2C_Read... [21:28:58]Read from MH i2c: D1 [21:28:58]MH_I2C_Read... [21:28:58]Read from MH i2c: D1 01 00 [21:28:58]MH_I2C_Read... [21:28:58]Read from MH i2c: D1 01 00 90 15 00 76 [21:28:58]Write to MH i2c: 01 00 00 91 15 A6 [21:28:58]Write i2c OK [21:28:58]MH_I2C_Read... [21:28:59]OFD Sender: No OFD packet to send [21:28:59]*** Cut start [21:28:59]*** Partial cut [21:28:59]*** CUTSNS_PIN = 1 [21:28:59]*** CUTSNS_PIN = 0 [21:29:00]*** Brake cut motor [21:29:00]Read from MH i2c: 01 [21:29:00]MH_I2C_Read... [21:29:00]*** Stop cut motor [21:29:00]*** Cut end [21:29:00]Read from MH i2c: 01 07 00 [21:29:00]MH_I2C_Read... [21:29:00]Read from MH i2c: 01 07 00 91 15 00 00 00 00 00 FF 0F BB [21:29:00]process_action close_receipt done [21:29:00]requested_data is exist [21:29:00]produce_requested_data [21:29:00]requested_item fm.sn is exist - process it [21:29:00]wFMCommunicate request_size=4 [21:29:00]MH_SAM_APDU [21:29:00]CAPDU: 80 11 00 00 [21:29:00]Write to MH i2c: E2 08 00 92 15 80 11 00 00 00 00 00 00 21 [21:29:00]Write i2c OK [21:29:00]MH_I2C_Read... [21:29:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:29:00]Read from MH i2c: E2 [21:29:00]MH_I2C_Read... [21:29:00]Read from MH i2c: E2 17 00 [21:29:00]MH_I2C_Read... [21:29:00]Read from MH i2c: E2 17 00 92 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 78 [21:29:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:29:00]wFMCommunicate OK [21:29:00]requested_item fd.num is exist - process it [21:29:00]SAM_PROTO_GetFieldsCounters [21:29:00]wFMCommunicate request_size=4 [21:29:00]MH_SAM_APDU [21:29:00]CAPDU: 80 13 00 00 [21:29:00]Write to MH i2c: E2 08 00 93 15 80 13 00 00 00 00 00 00 24 [21:29:00]Write i2c OK [21:29:00]MH_I2C_Read... [21:29:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:29:00]Read from MH i2c: E2 [21:29:00]MH_I2C_Read... [21:29:00]Read from MH i2c: E2 62 00 [21:29:00]MH_I2C_Read... [21:29:00]Read from MH i2c: E2 62 00 93 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6C 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 1C 02 00 00 5E 04 04 00 1C 02 00 00 57 04 04 00 1D 02 00 00 19 04 04 00 00 00 00 00 90 00 A6 [21:29:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6C 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 1C 02 00 00 5E 04 04 00 1C 02 00 00 57 04 04 00 1D 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:29:00]wFMCommunicate OK [21:29:00]SAM_PROTO_GetFieldsCounters done [21:29:00]requested_item shift.num is exist - process it [21:29:00]requested_item shift.opened is exist - process it [21:29:00]req_shift_opened [21:29:00]FM_GetShiftState [21:29:00]SAM_PROTO_GetShiftState [21:29:00]wFMCommunicate request_size=4 [21:29:00]MH_SAM_APDU [21:29:00]CAPDU: 80 13 01 00 [21:29:00]Write to MH i2c: E2 08 00 94 15 80 13 01 00 00 00 00 00 26 [21:29:00]Write i2c OK [21:29:00]MH_I2C_Read... [21:29:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:29:00]Read from MH i2c: E2 [21:29:00]MH_I2C_Read... [21:29:00]Read from MH i2c: E2 0E 00 [21:29:00]MH_I2C_Read... [21:29:00]Read from MH i2c: E2 0E 00 94 15 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 40 [21:29:00]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:29:00]wFMCommunicate OK [21:29:00]SAM_PROTO_GetShiftState done [21:29:00]FM_GetShiftState done [21:29:00]req_shift_opened done [21:29:00]requested_item shift.open_date is exist - process it [21:29:00]req_shift_open_date [21:29:00]req_shift_open_date done [21:29:00]produce_requested_data done [21:29:00]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227692,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [21:29:00]process_action_free close_receipt [21:29:00]json_value_free [21:29:00]json_value_free done [21:29:00]process_json_proto returns [21:29:00]Send response to host [21:29:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227692,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [21:29:00]free response buf [21:29:00]execute_script done [21:29:00]execute_script returns [21:29:00]free content buf [21:29:00]Sock 9.Close socket [21:29:00]Sock 9.Thread stoped [21:29:04]OFD Sender: No OFD packet to send [21:29:09]OFD Sender: No OFD packet to send [21:29:14]OFD Sender: No OFD packet to send [21:29:19]OFD Sender: No OFD packet to send [21:29:24]OFD Sender: No OFD packet to send [21:29:29]OFD Sender: No OFD packet to send [21:29:34]OFD Sender: No OFD packet to send [21:29:39]OFD Sender: No OFD packet to send [21:29:44]OFD Sender: No OFD packet to send [21:29:49]OFD Sender: No OFD packet to send [21:29:54]OFD Sender: No OFD packet to send [21:29:59]OFD Sender: No OFD packet to send [21:30:04]OFD Sender: No OFD packet to send [21:30:09]OFD Sender: No OFD packet to send [21:30:14]OFD Sender: No OFD packet to send [21:30:19]OFD Sender: No OFD packet to send [21:30:24]OFD Sender: No OFD packet to send [21:30:29]OFD Sender: No OFD packet to send [21:30:34]OFD Sender: No OFD packet to send [21:30:39]OFD Sender: No OFD packet to send [21:30:40]accept exits with 7 [21:30:40]New connection [21:30:40]New thread 3066666340 created [21:30:40]Thread 3066809700 joined [21:30:40]Waiting for new connection... [21:30:40] Sock 7.Parse request [21:30:40]Sock 7.Check first char [21:30:40]Sock 7.First char is OK [21:30:40]request: POST /json_proto HTTP/1.0 [21:30:40]Method: POST [21:30:40]URL: /json_proto [21:30:40]Method is POST - this is cgi request [21:30:40]url: /json_proto [21:30:40]query_string will be loaded in cgi processing [21:30:40]execute_cgi json_proto POST (null) [21:30:40]execute_cgi path=json_proto method=POST [21:30:40]POST find Content-Length [21:30:40]Host: 172.17.44.195:8080 [21:30:40]Content-Length: 678 [21:30:40]Content-Type: application/json [21:30:40] [21:30:40]POST finish read [21:30:40]Found Content-Length = 678 [21:30:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963356", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:30:40]execute_script... [21:30: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)1963356", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:30:40]POST & json_proto [21:30:40]process_json_proto [21:30:40]json parsed OK: [21:30:40]protocol is kg_v1.0 [21:30:40]action value=close_receipt [21:30:40]process_action close_receipt [21:30:40]cmd_close_receipt [21:30:40]MH_GetDate [21:30:40]Write to MH i2c: F0 00 00 95 15 99 [21:30:40]Write i2c OK [21:30:40]MH_I2C_Read... [21:30:40]Read from MH i2c: F0 [21:30:40]MH_I2C_Read... [21:30:40]Read from MH i2c: F0 09 00 [21:30:40]MH_I2C_Read... [21:30:40]Read from MH i2c: F0 09 00 95 15 00 81 76 15 67 82 C9 CF 66 95 [21:30:40]GetLastDocTimeStamp 1729459737 [21:30:40]current date 1729459841 [21:30:40]FM_GetShiftState [21:30:40]SAM_PROTO_GetShiftState [21:30:40]wFMCommunicate request_size=4 [21:30:40]MH_SAM_APDU [21:30:40]CAPDU: 80 13 01 00 [21:30:40]Write to MH i2c: E2 08 00 96 15 80 13 01 00 00 00 00 00 28 [21:30:40]Write i2c OK [21:30:40]MH_I2C_Read... [21:30:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:30:40]Read from MH i2c: E2 [21:30:40]MH_I2C_Read... [21:30:40]Read from MH i2c: E2 0E 00 [21:30:40]MH_I2C_Read... [21:30:40]Read from MH i2c: E2 0E 00 96 15 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 42 [21:30:40]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:30:40]wFMCommunicate OK [21:30:40]SAM_PROTO_GetShiftState done [21:30:40]FM_GetShiftState done [21:30:40]opened in 1729383750 [21:30:40]opened+sec_in_day 1729470150 [21:30:40]quantity*price = 50041 [21:30:40]sum+1 = 50042 [21:30:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 541 20.10.2024 21:30 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227693 ФПД: 106536206126572 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T213042&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227693&fm=106536206126572&tin=02508201610067®Number=0000000000091685&sum=50000 [21:30:41]StoreToDocumentArchive [21:30:41]shift 533 fd 227693 [21:30:41]save to /storage/0533/doc_00227693 [21:30:41]save last doc name /storage/0533/doc_00227693 to /storage/kkm_last_doc_name [21:30:41]save OK [21:30:41]Clear old archive folders... [21:30:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:30:41]tlvbuf is 00C4DCD0 [21:30:41]SAM_PROTO_ClearQueue [21:30:41]wFMCommunicate request_size=4 [21:30:41]MH_SAM_APDU [21:30:41]CAPDU: 80 09 00 00 [21:30:41]Write to MH i2c: E2 08 00 A3 15 80 09 00 00 00 00 00 00 2A [21:30:41]Write i2c OK [21:30:41]MH_I2C_Read... [21:30:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:30:41]Read from MH i2c: E2 [21:30:41]MH_I2C_Read... [21:30:41]Read from MH i2c: E2 03 00 [21:30:41]MH_I2C_Read... [21:30:41]Read from MH i2c: E2 03 00 A3 15 00 90 00 2C [21:30:41]RAPDU: 90 00 [21:30:41]wFMCommunicate OK [21:30:41]SAM_PROTO_ClearQueue done [21:30:41]KKMCreateOFDPacket [21:30:41]OFDProtocolAddRootSTLVToBuf [21:30:41]FM_MakeSignedData [21:30:41]FM_MakeSignedData [21:30:41]SAM_PROTO_SignData [21:30:41]wFMCommunicate request_size=4 [21:30:41]MH_SAM_APDU [21:30:41]CAPDU: 80 0D 01 02 [21:30:41]Write to MH i2c: E2 08 00 A4 15 80 0D 01 02 00 00 00 00 32 [21:30:41]Write i2c OK [21:30:41]MH_I2C_Read... [21:30:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:30:42]Read from MH i2c: E2 [21:30:42]MH_I2C_Read... [21:30:42]Read from MH i2c: E2 03 00 [21:30:42]MH_I2C_Read... [21:30:42]Read from MH i2c: E2 03 00 A4 15 00 90 00 2D [21:30:42]RAPDU: 90 00 [21:30:42]wFMCommunicate OK [21:30:42]wFMCommunicate request_size=255 [21:30:42]MH_SAM_APDU [21:30:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 02 00 00 F4 03 04 00 82 76 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6D 79 03 00 35 04 06 00 60 [21:30:42]Write to MH i2c: E2 02 01 A5 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 02 00 00 F4 03 04 00 82 76 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6D 79 03 00 35 04 06 00 60 00 00 BC [21:30:42]Write i2c OK [21:30:42]MH_I2C_Read... [21:30:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:30:42]Read from MH i2c: E2 [21:30:42]MH_I2C_Read... [21:30:42]Read from MH i2c: E2 03 00 [21:30:42]MH_I2C_Read... [21:30:42]Read from MH i2c: E2 03 00 A5 15 00 90 00 2E [21:30:42]RAPDU: 90 00 [21:30:42]wFMCommunicate OK [21:30:42]wFMCommunicate request_size=10 [21:30:42]MH_SAM_APDU [21:30:42]CAPDU: 80 0D 02 02 05 E4 E4 B8 CD EC [21:30:42]Write to MH i2c: E2 0D 00 A6 15 80 0D 02 02 05 00 E4 E4 B8 CD EC 00 00 78 [21:30:42]Write i2c OK [21:30:42]MH_I2C_Read... [21:30:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:30:42]Read from MH i2c: E2 [21:30:42]MH_I2C_Read... [21:30:42]Read from MH i2c: E2 03 00 [21:30:42]MH_I2C_Read... [21:30:42]Read from MH i2c: E2 03 00 A6 15 00 90 00 2F [21:30:42]RAPDU: 90 00 [21:30:42]wFMCommunicate OK [21:30:42]wFMCommunicate request_size=4 [21:30:42]MH_SAM_APDU [21:30:42]CAPDU: 80 0D 03 02 [21:30:42]Write to MH i2c: E2 08 00 A7 15 80 0D 03 02 00 00 00 00 37 [21:30:42]Write i2c OK [21:30:42]MH_I2C_Read... [21:30:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:30:42]Read from MH i2c: E2 [21:30:42]MH_I2C_Read... [21:30:42]Read from MH i2c: E2 0B 00 [21:30:42]MH_I2C_Read... [21:30:42]Read from MH i2c: E2 0B 00 A7 15 00 06 B5 2B BF E6 DA 79 5F 90 00 75 [21:30:42]RAPDU: 06 B5 2B BF E6 DA 79 5F 90 00 [21:30:42]wFMCommunicate OK [21:30:42]SAM_PROTO_SignData done [21:30:42]FM_MakeSignedData done [21:30:42]CreateOFDProtocolMessage [21:30:42]wFMCommunicate request_size=4 [21:30:42]MH_SAM_APDU [21:30:42]CAPDU: 80 11 00 00 [21:30:42]Write to MH i2c: E2 08 00 A8 15 80 11 00 00 00 00 00 00 37 [21:30:42]Write i2c OK [21:30:42]MH_I2C_Read... [21:30:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:30:42]Read from MH i2c: E2 [21:30:42]MH_I2C_Read... [21:30:42]Read from MH i2c: E2 17 00 [21:30:42]MH_I2C_Read... [21:30:42]Read from MH i2c: E2 17 00 A8 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 8E [21:30:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:30:42]wFMCommunicate OK [21:30:42]CreateOFDProtocolMessage done [21:30:42]OFDSenderStorePacket 227693 [21:30:42]StoreOFDPacket docnum=227693 [21:30:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 95 71 07 01 1F 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 02 00 00 F4 03 04 00 82 76 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6D 79 03 00 35 04 06 00 60 E4 E4 B8 CD EC 06 B5 2B BF E6 DA 79 5F [21:30:42]CheckFolder [21:30:42]dirname=/storage/ofd_packets [21:30:42]CheckFolder done [21:30:42]ProducePacketName [21:30:42]name=ofd_packets/00227693 [21:30:42]NVStorageSaveData ofd_packets/00227693 [21:30:42]File name is /storage/ofd_packets/00227693 [21:30:42]Write 301 bytes [21:30:42]NVStorageSaveData done [21:30:42]OFDSenderStorePacket done [21:30:42]KKMCreateOFDPacket done [21:30:42]NVStorageSaveData kkm_last_timestamp [21:30:42]File name is /storage/kkm_last_timestamp [21:30:42]Write 4 bytes [21:30:42]NVStorageSaveData done [21:30:42]ExternCall_PrintAddStr [21:30:42]wPrintStart [21:30:42]Write to MH i2c: 01 00 00 A9 15 BE [21:30:42]Write i2c OK [21:30:42]MH_I2C_Read... [21:30:42]Read from MH i2c: 01 [21:30:42]MH_I2C_Read... [21:30:42]Read from MH i2c: 01 07 00 [21:30:42]MH_I2C_Read... [21:30:42]Read from MH i2c: 01 07 00 A9 15 00 00 00 00 00 FF 0F D3 [21:30:42]RasterBufferAndPrint [21:30:42]line Счет N : (1)1963356 [21:30:42]line ИНН: 02508201610067 [21:30:42]line Контрольно-Кассовый Чек [21:30:42]line ПРОДАЖА [21:30:42]line ТРК (МРК, ГНК) : 33 [21:30:42]line Товар: 2710124130 [21:30:42]line Аи-92-К-5 [21:30:42]line 7.480 * 66.90 [21:30:42]line = 500.41 [21:30:42]line НДС 12% НСП 1% [21:30:42]line > о реализуемом товаре [21:30:42]line ОКРУГЛЕНИЕ: -0.41 [21:30:42]line ИТОГО: 500.00 [21:30:42]line Внесено: 500.00 [21:30:42]line СДАЧА: 0.00 [21:30:42]line НСП 1% : 4.43 [21:30:42]line НДС 12% : 53.14 [21:30:42]line Наличными: 500.00 [21:30:42]line Безнал.: 0.00 [21:30:42]line Место: АЗС № 133 "Партнер Нефть" [21:30:42]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [21:30:42]line СНО: Общий режим [21:30:42]line Чек 541 20.10.2024 21:30 [21:30:42]line Смена: 533 ФФД: 1.0 [21:30:42]line ЗНМ: 0300000091 [21:30:42]line РНМ: 0000000000091685 [21:30:42]line Версия ККМ: 001 [21:30:42]line ФМ: 0000000000871839 [21:30:42]line ФД: 227693 [21:30:42]line ФПД: 106536206126572 [21:30:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T213042&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227693&fm=106536206126572&tin=02508201610067®Number=0000000000091685&sum=50000 [21:30:42]written 0, free lines is 4095 [21:30:42]OFD Sender: Processing packet 227693 [packets to send 38, broken 37] [21:30:42]ProducePacketName [21:30:42]name=ofd_packets/00227693 [21:30:42]OFD Sender: To server: pG, [21:30:42]CommunicateWithHost lk.salyk.kg:30040 [21:30:42]ConnectInit lk.salyk.kg [21:30:42]Connected sock=11 [21:30: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 33 39 0F 01 00 00 95 71 07 01 1F 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 02 00 00 F4 03 04 00 82 76 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6D 79 03 00 35 04 06 00 60 E4 E4 B8 CD EC 06 B5 2B BF E6 DA 79 5F [21:30: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 33 39 4F 00 00 00 CC 36 47 00 23 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 33 39 10 04 04 00 6D 79 03 00 F4 03 04 00 7F 21 15 67 B6 04 01 00 00 9B EA FF 78 58 B0 D1 F7 [21:30:43]CommunicateWithHost err = 0 [21:30:43]CheckOFDResponse [21:30:43]1017 (14) - 77093643461234 [21:30:43]1041 (16) - 0000000000871839 [21:30:43]1040 (4) - 227693 [21:30:43]1012 (4) - 20.10.2024 15:27 [21:30:43]1206 (1) - 0 [21:30:43]OFD Sender: Remove packet 227693 [21:30:43]ProducePacketName [21:30:43]name=ofd_packets/00227693 [21:30:43]NVStorageDeleteData [21:30:43]Write to MH i2c: 01 00 00 D3 15 E8 [21:30:43]Write i2c OK [21:30:43]MH_I2C_Read... [21:30:43]Read from MH i2c: 01 [21:30:43]MH_I2C_Read... [21:30:43]Read from MH i2c: 01 07 00 [21:30:43]MH_I2C_Read... [21:30:43]Read from MH i2c: 01 07 00 D3 15 00 00 00 00 00 A9 0C A4 [21:30:43]RasterBufferAndPrint [21:30:43]line [21:30:43]line [21:30:43]line [21:30:43]line [21:30:43]line [21:30:43]written 0, free lines is 3245 [21:30:43]MH_Cut [21:30:43]Write to MH i2c: D1 01 00 DA 15 01 C1 [21:30:43]Write i2c OK [21:30:43]MH_I2C_Read... [21:30:43]Read from MH i2c: D1 [21:30:43]MH_I2C_Read... [21:30:43]Read from MH i2c: D1 01 00 [21:30:43]MH_I2C_Read... [21:30:43]Read from MH i2c: D1 01 00 DA 15 00 C0 [21:30:43]Write to MH i2c: 01 00 00 DB 15 F0 [21:30:43]Write i2c OK [21:30:43]MH_I2C_Read... [21:30:43]OFD Sender: No OFD packet to send [21:30:44]*** Cut start [21:30:44]*** Partial cut [21:30:44]*** CUTSNS_PIN = 1 [21:30:44]*** CUTSNS_PIN = 0 [21:30:44]*** Brake cut motor [21:30:44]Read from MH i2c: 01 [21:30:44]MH_I2C_Read... [21:30:44]*** Stop cut motor [21:30:44]*** Cut end [21:30:44]Read from MH i2c: 01 07 00 [21:30:44]MH_I2C_Read... [21:30:44]Read from MH i2c: 01 07 00 DB 15 00 00 00 00 00 FF 0F 05 [21:30:44]process_action close_receipt done [21:30:44]requested_data is exist [21:30:44]produce_requested_data [21:30:44]requested_item fm.sn is exist - process it [21:30:44]wFMCommunicate request_size=4 [21:30:44]MH_SAM_APDU [21:30:44]CAPDU: 80 11 00 00 [21:30:44]Write to MH i2c: E2 08 00 DC 15 80 11 00 00 00 00 00 00 6B [21:30:44]Write i2c OK [21:30:44]MH_I2C_Read... [21:30:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:30:44]Read from MH i2c: E2 [21:30:44]MH_I2C_Read... [21:30:44]Read from MH i2c: E2 17 00 [21:30:44]MH_I2C_Read... [21:30:44]Read from MH i2c: E2 17 00 DC 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C2 [21:30:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:30:44]wFMCommunicate OK [21:30:44]requested_item fd.num is exist - process it [21:30:44]SAM_PROTO_GetFieldsCounters [21:30:44]wFMCommunicate request_size=4 [21:30:44]MH_SAM_APDU [21:30:44]CAPDU: 80 13 00 00 [21:30:44]Write to MH i2c: E2 08 00 DD 15 80 13 00 00 00 00 00 00 6E [21:30:44]Write i2c OK [21:30:44]MH_I2C_Read... [21:30:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:30:44]Read from MH i2c: E2 [21:30:44]MH_I2C_Read... [21:30:44]Read from MH i2c: E2 62 00 [21:30:44]MH_I2C_Read... [21:30:44]Read from MH i2c: E2 62 00 DD 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6D 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 1D 02 00 00 5E 04 04 00 1D 02 00 00 57 04 04 00 1E 02 00 00 19 04 04 00 00 00 00 00 90 00 F4 [21:30: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6D 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 1D 02 00 00 5E 04 04 00 1D 02 00 00 57 04 04 00 1E 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:30:45]wFMCommunicate OK [21:30:45]SAM_PROTO_GetFieldsCounters done [21:30:45]requested_item shift.num is exist - process it [21:30:45]requested_item shift.opened is exist - process it [21:30:45]req_shift_opened [21:30:45]FM_GetShiftState [21:30:45]SAM_PROTO_GetShiftState [21:30:45]wFMCommunicate request_size=4 [21:30:45]MH_SAM_APDU [21:30:45]CAPDU: 80 13 01 00 [21:30:45]Write to MH i2c: E2 08 00 DE 15 80 13 01 00 00 00 00 00 70 [21:30:45]Write i2c OK [21:30:45]MH_I2C_Read... [21:30:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:30:45]Read from MH i2c: E2 [21:30:45]MH_I2C_Read... [21:30:45]Read from MH i2c: E2 0E 00 [21:30:45]MH_I2C_Read... [21:30:45]Read from MH i2c: E2 0E 00 DE 15 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 8A [21:30:45]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:30:45]wFMCommunicate OK [21:30:45]SAM_PROTO_GetShiftState done [21:30:45]FM_GetShiftState done [21:30:45]req_shift_opened done [21:30:45]requested_item shift.open_date is exist - process it [21:30:45]req_shift_open_date [21:30:45]req_shift_open_date done [21:30:45]produce_requested_data done [21:30:45]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227693,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [21:30:45]process_action_free close_receipt [21:30:45]json_value_free [21:30:45]json_value_free done [21:30:45]process_json_proto returns [21:30:45]Send response to host [21:30:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227693,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [21:30:45]free response buf [21:30:45]execute_script done [21:30:45]execute_script returns [21:30:45]free content buf [21:30:45]Sock 7.Close socket [21:30:45]Sock 7.Thread stoped [21:30:48]OFD Sender: No OFD packet to send [21:30:53]OFD Sender: No OFD packet to send [21:30:58]OFD Sender: No OFD packet to send [21:31:03]OFD Sender: No OFD packet to send [21:31:08]OFD Sender: No OFD packet to send [21:31:13]OFD Sender: No OFD packet to send [21:31:18]OFD Sender: No OFD packet to send [21:31:23]OFD Sender: No OFD packet to send [21:31:28]OFD Sender: No OFD packet to send [21:31:33]OFD Sender: No OFD packet to send [21:31:38]OFD Sender: No OFD packet to send [21:31:43]OFD Sender: No OFD packet to send [21:31:48]OFD Sender: No OFD packet to send [21:31:53]OFD Sender: No OFD packet to send [21:31:58]OFD Sender: No OFD packet to send [21:32:03]OFD Sender: No OFD packet to send [21:32:08]OFD Sender: No OFD packet to send [21:32:13]OFD Sender: No OFD packet to send [21:32:18]OFD Sender: No OFD packet to send [21:32:23]OFD Sender: No OFD packet to send [21:32:28]OFD Sender: No OFD packet to send [21:32:33]OFD Sender: No OFD packet to send [21:32:37]accept exits with 9 [21:32:37]New connection [21:32:37]New thread 3066809700 created [21:32:37]Thread 3066666340 joined [21:32:37]Waiting for new connection... [21:32:37] Sock 9.Parse request [21:32:37]Sock 9.Check first char [21:32:37]Sock 9.First char is OK [21:32:37]request: POST /json_proto HTTP/1.0 [21:32:37]Method: POST [21:32:37]URL: /json_proto [21:32:37]Method is POST - this is cgi request [21:32:37]url: /json_proto [21:32:37]query_string will be loaded in cgi processing [21:32:37]execute_cgi json_proto POST (null) [21:32:37]execute_cgi path=json_proto method=POST [21:32:37]POST find Content-Length [21:32:37]Host: 172.17.44.195:8080 [21:32:37]Content-Length: 660 [21:32:37]Content-Type: application/json [21:32:37] [21:32:37]POST finish read [21:32:37]Found Content-Length = 660 [21:32:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963357", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 11.700, "sum" : 800.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:32:37]execute_script... [21:32:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963357", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 11.700, "sum" : 800.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:32:37]POST & json_proto [21:32:37]process_json_proto [21:32:37]json parsed OK: [21:32:37]protocol is kg_v1.0 [21:32:37]action value=close_receipt [21:32:37]process_action close_receipt [21:32:37]cmd_close_receipt [21:32:37]MH_GetDate [21:32:37]Write to MH i2c: F0 00 00 DF 15 E3 [21:32:37]Write i2c OK [21:32:37]MH_I2C_Read... [21:32:37]Read from MH i2c: F0 [21:32:37]MH_I2C_Read... [21:32:37]Read from MH i2c: F0 09 00 [21:32:37]MH_I2C_Read... [21:32:37]Read from MH i2c: F0 09 00 DF 15 00 F7 76 15 67 82 C9 CF 66 55 [21:32:37]GetLastDocTimeStamp 1729459842 [21:32:37]current date 1729459959 [21:32:37]FM_GetShiftState [21:32:37]SAM_PROTO_GetShiftState [21:32:37]wFMCommunicate request_size=4 [21:32:37]MH_SAM_APDU [21:32:37]CAPDU: 80 13 01 00 [21:32:37]Write to MH i2c: E2 08 00 E0 15 80 13 01 00 00 00 00 00 72 [21:32:37]Write i2c OK [21:32:37]MH_I2C_Read... [21:32:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:32:37]Read from MH i2c: E2 [21:32:37]MH_I2C_Read... [21:32:37]Read from MH i2c: E2 0E 00 [21:32:37]MH_I2C_Read... [21:32:37]Read from MH i2c: E2 0E 00 E0 15 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 8C [21:32:37]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:32:37]wFMCommunicate OK [21:32:37]SAM_PROTO_GetShiftState done [21:32:37]FM_GetShiftState done [21:32:37]opened in 1729383750 [21:32:37]opened+sec_in_day 1729470150 [21:32:37]quantity*price = 80028 [21:32:37]sum+1 = 80029 [21:32:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.98 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 542 20.10.2024 21:32 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227694 ФПД: 198249054426578 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T213239&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227694&fm=198249054426578&tin=02508201610067®Number=0000000000091685&sum=80000 [21:32:39]StoreToDocumentArchive [21:32:39]shift 533 fd 227694 [21:32:39]save to /storage/0533/doc_00227694 [21:32:39]save last doc name /storage/0533/doc_00227694 to /storage/kkm_last_doc_name [21:32:39]save OK [21:32:39]Clear old archive folders... [21:32:39]ProcessDocumentItem done err = 0, tmpTLVsize=244 [21:32:39]tlvbuf is 00C9DC90 [21:32:39]SAM_PROTO_ClearQueue [21:32:39]wFMCommunicate request_size=4 [21:32:39]MH_SAM_APDU [21:32:39]CAPDU: 80 09 00 00 [21:32:39]Write to MH i2c: E2 08 00 ED 15 80 09 00 00 00 00 00 00 74 [21:32:39]Write i2c OK [21:32:39]MH_I2C_Read... [21:32:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:32:39]Read from MH i2c: E2 [21:32:39]MH_I2C_Read... [21:32:39]Read from MH i2c: E2 03 00 [21:32:39]MH_I2C_Read... [21:32:39]Read from MH i2c: E2 03 00 ED 15 00 90 00 76 [21:32:39]RAPDU: 90 00 [21:32:39]wFMCommunicate OK [21:32:39]SAM_PROTO_ClearQueue done [21:32:39]KKMCreateOFDPacket [21:32:39]OFDProtocolAddRootSTLVToBuf [21:32:39]FM_MakeSignedData [21:32:39]FM_MakeSignedData [21:32:39]SAM_PROTO_SignData [21:32:39]wFMCommunicate request_size=4 [21:32:39]MH_SAM_APDU [21:32:39]CAPDU: 80 0D 01 02 [21:32:39]Write to MH i2c: E2 08 00 EE 15 80 0D 01 02 00 00 00 00 7C [21:32:39]Write i2c OK [21:32:39]MH_I2C_Read... [21:32:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:32:39]Read from MH i2c: E2 [21:32:39]MH_I2C_Read... [21:32:39]Read from MH i2c: E2 03 00 [21:32:39]MH_I2C_Read... [21:32:39]Read from MH i2c: E2 03 00 EE 15 00 90 00 77 [21:32:39]RAPDU: 90 00 [21:32:39]wFMCommunicate OK [21:32:39]wFMCommunicate request_size=253 [21:32:39]MH_SAM_APDU [21:32:39]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 B4 2D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9C 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 1E 02 00 00 F4 03 04 00 F7 76 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6E 79 03 00 35 04 06 00 B4 4E 74 77 55 D2 [21:32:39]Write to MH i2c: E2 00 01 EF 15 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 B4 2D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9C 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 1E 02 00 00 F4 03 04 00 F7 76 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6E 79 03 00 35 04 06 00 B4 4E 74 77 55 D2 00 00 6D [21:32:39]Write i2c OK [21:32:39]MH_I2C_Read... [21:32:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:32:39]Read from MH i2c: E2 [21:32:39]MH_I2C_Read... [21:32:39]Read from MH i2c: E2 03 00 [21:32:39]MH_I2C_Read... [21:32:39]Read from MH i2c: E2 03 00 EF 15 00 90 00 78 [21:32:39]RAPDU: 90 00 [21:32:39]wFMCommunicate OK [21:32:39]wFMCommunicate request_size=4 [21:32:39]MH_SAM_APDU [21:32:39]CAPDU: 80 0D 03 02 [21:32:39]Write to MH i2c: E2 08 00 F0 15 80 0D 03 02 00 00 00 00 80 [21:32:39]Write i2c OK [21:32:39]MH_I2C_Read... [21:32:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:32:39]Read from MH i2c: E2 [21:32:39]MH_I2C_Read... [21:32:39]Read from MH i2c: E2 0B 00 [21:32:39]MH_I2C_Read... [21:32:39]Read from MH i2c: E2 0B 00 F0 15 00 C8 84 54 31 7A 3C D4 49 90 00 25 [21:32:39]RAPDU: C8 84 54 31 7A 3C D4 49 90 00 [21:32:39]wFMCommunicate OK [21:32:39]SAM_PROTO_SignData done [21:32:39]FM_MakeSignedData done [21:32:39]CreateOFDProtocolMessage [21:32:39]wFMCommunicate request_size=4 [21:32:39]MH_SAM_APDU [21:32:39]CAPDU: 80 11 00 00 [21:32:39]Write to MH i2c: E2 08 00 F1 15 80 11 00 00 00 00 00 00 80 [21:32:39]Write i2c OK [21:32:39]MH_I2C_Read... [21:32:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:32:39]Read from MH i2c: E2 [21:32:39]MH_I2C_Read... [21:32:39]Read from MH i2c: E2 17 00 [21:32:39]MH_I2C_Read... [21:32:39]Read from MH i2c: E2 17 00 F1 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D7 [21:32:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:32:39]wFMCommunicate OK [21:32:39]CreateOFDProtocolMessage done [21:32:39]OFDSenderStorePacket 227694 [21:32:39]StoreOFDPacket docnum=227694 [21:32:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 33 1A 00 01 0B 5F 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 B4 2D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9C 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 1E 02 00 00 F4 03 04 00 F7 76 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6E 79 03 00 35 04 06 00 B4 4E 74 77 55 D2 C8 84 54 31 7A 3C D4 49 [21:32:39]CheckFolder [21:32:39]dirname=/storage/ofd_packets [21:32:39]CheckFolder done [21:32:39]ProducePacketName [21:32:39]name=ofd_packets/00227694 [21:32:39]NVStorageSaveData ofd_packets/00227694 [21:32:39]File name is /storage/ofd_packets/00227694 [21:32:39]Write 294 bytes [21:32:39]NVStorageSaveData done [21:32:39]OFDSenderStorePacket done [21:32:39]KKMCreateOFDPacket done [21:32:39]NVStorageSaveData kkm_last_timestamp [21:32:39]File name is /storage/kkm_last_timestamp [21:32:39]Write 4 bytes [21:32:39]NVStorageSaveData done [21:32:39]ExternCall_PrintAddStr [21:32:39]wPrintStart [21:32:39]Write to MH i2c: 01 00 00 F2 15 07 [21:32:39]Write i2c OK [21:32:39]MH_I2C_Read... [21:32:39]Read from MH i2c: 01 [21:32:39]MH_I2C_Read... [21:32:39]Read from MH i2c: 01 07 00 [21:32:39]MH_I2C_Read... [21:32:39]Read from MH i2c: 01 07 00 F2 15 00 00 00 00 00 FF 0F 1C [21:32:39]RasterBufferAndPrint [21:32:39]line Счет N : (1)1963357 [21:32:39]line ИНН: 02508201610067 [21:32:39]line Контрольно-Кассовый Чек [21:32:39]line ПРОДАЖА [21:32:39]line ТРК (МРК, ГНК) : 42 [21:32:39]line Товар: 2710124130 [21:32:39]line SU-92 [21:32:39]line 11.700 * 68.40 [21:32:39]line = 800.28 [21:32:39]line НДС 12% НСП 1% [21:32:39]line > о реализуемом товаре [21:32:39]line ОКРУГЛЕНИЕ: -0.28 [21:32:39]line ИТОГО: 800.00 [21:32:39]line Внесено: 800.00 [21:32:39]line СДАЧА: 0.00 [21:32:39]line НСП 1% : 7.08 [21:32:39]line НДС 12% : 84.98 [21:32:39]line Наличными: 800.00 [21:32:39]line Безнал.: 0.00 [21:32:39]line Место: АЗС № 133 "Партнер Нефть" [21:32:39]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [21:32:39]line СНО: Общий режим [21:32:39]line Чек 542 20.10.2024 21:32 [21:32:39]line Смена: 533 ФФД: 1.0 [21:32:39]line ЗНМ: 0300000091 [21:32:39]line РНМ: 0000000000091685 [21:32:39]line Версия ККМ: 001 [21:32:39]line ФМ: 0000000000871839 [21:32:39]line ФД: 227694 [21:32:39]line ФПД: 198249054426578 [21:32:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T213239&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227694&fm=198249054426578&tin=02508201610067®Number=0000000000091685&sum=80000 [21:32:39]OFD Sender: Processing packet 227694 [packets to send 38, broken 37] [21:32:39]ProducePacketName [21:32:39]name=ofd_packets/00227694 [21:32:39]OFD Sender: To server: pG, [21:32:39]CommunicateWithHost lk.salyk.kg:30040 [21:32:39]ConnectInit lk.salyk.kg [21:32:39]written 0, free lines is 4095 [21:32:39]Connected sock=10 [21:32:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 33 1A 00 01 0B 5F 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 B4 2D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9C 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 1E 02 00 00 F4 03 04 00 F7 76 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6E 79 03 00 35 04 06 00 B4 4E 74 77 55 D2 C8 84 54 31 7A 3C D4 49 [21:32: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 33 39 4F 00 00 00 44 1D 47 00 FC 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 33 39 10 04 04 00 6E 79 03 00 F4 03 04 00 F4 21 15 67 B6 04 01 00 00 AA 82 60 B3 3A CE E6 A6 [21:32:40]CommunicateWithHost err = 0 [21:32:40]CheckOFDResponse [21:32:40]1017 (14) - 77093643461234 [21:32:40]1041 (16) - 0000000000871839 [21:32:40]1040 (4) - 227694 [21:32:40]1012 (4) - 20.10.2024 15:29 [21:32:40]1206 (1) - 0 [21:32:40]OFD Sender: Remove packet 227694 [21:32:40]ProducePacketName [21:32:40]name=ofd_packets/00227694 [21:32:40]NVStorageDeleteData [21:32:40]Write to MH i2c: 01 00 00 1C 16 32 [21:32:40]Write i2c OK [21:32:40]MH_I2C_Read... [21:32:40]Read from MH i2c: 01 [21:32:40]MH_I2C_Read... [21:32:40]Read from MH i2c: 01 07 00 [21:32:40]MH_I2C_Read... [21:32:40]Read from MH i2c: 01 07 00 1C 16 00 00 00 00 00 A9 0C EE [21:32:40]RasterBufferAndPrint [21:32:40]line [21:32:40]line [21:32:40]line [21:32:40]line [21:32:40]line [21:32:40]written 0, free lines is 3245 [21:32:40]MH_Cut [21:32:40]Write to MH i2c: D1 01 00 23 16 01 0B [21:32:40]Write i2c OK [21:32:40]MH_I2C_Read... [21:32:40]Read from MH i2c: D1 [21:32:40]MH_I2C_Read... [21:32:40]Read from MH i2c: D1 01 00 [21:32:40]MH_I2C_Read... [21:32:40]Read from MH i2c: D1 01 00 23 16 00 0A [21:32:40]Write to MH i2c: 01 00 00 24 16 3A [21:32:40]Write i2c OK [21:32:40]MH_I2C_Read... [21:32:40]OFD Sender: No OFD packet to send [21:32:41]*** Cut start [21:32:41]*** Partial cut [21:32:41]*** CUTSNS_PIN = 1 [21:32:41]*** CUTSNS_PIN = 0 [21:32:41]*** Brake cut motor [21:32:41]Read from MH i2c: 01 [21:32:41]MH_I2C_Read... [21:32:41]*** Stop cut motor [21:32:41]*** Cut end [21:32:41]Read from MH i2c: 01 07 00 [21:32:41]MH_I2C_Read... [21:32:41]Read from MH i2c: 01 07 00 24 16 00 00 00 00 00 FF 0F 4F [21:32:41]process_action close_receipt done [21:32:41]requested_data is exist [21:32:41]produce_requested_data [21:32:41]requested_item fm.sn is exist - process it [21:32:41]wFMCommunicate request_size=4 [21:32:41]MH_SAM_APDU [21:32:41]CAPDU: 80 11 00 00 [21:32:41]Write to MH i2c: E2 08 00 25 16 80 11 00 00 00 00 00 00 B5 [21:32:41]Write i2c OK [21:32:41]MH_I2C_Read... [21:32:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:32:41]Read from MH i2c: E2 [21:32:41]MH_I2C_Read... [21:32:41]Read from MH i2c: E2 17 00 [21:32:41]MH_I2C_Read... [21:32:41]Read from MH i2c: E2 17 00 25 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 0C [21:32:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:32:41]wFMCommunicate OK [21:32:41]requested_item fd.num is exist - process it [21:32:41]SAM_PROTO_GetFieldsCounters [21:32:41]wFMCommunicate request_size=4 [21:32:41]MH_SAM_APDU [21:32:41]CAPDU: 80 13 00 00 [21:32:41]Write to MH i2c: E2 08 00 26 16 80 13 00 00 00 00 00 00 B8 [21:32:41]Write i2c OK [21:32:41]MH_I2C_Read... [21:32:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:32:42]Read from MH i2c: E2 [21:32:42]MH_I2C_Read... [21:32:42]Read from MH i2c: E2 62 00 [21:32:42]MH_I2C_Read... [21:32:42]Read from MH i2c: E2 62 00 26 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6E 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 1E 02 00 00 5E 04 04 00 1E 02 00 00 57 04 04 00 1F 02 00 00 19 04 04 00 00 00 00 00 90 00 42 [21: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6E 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 1E 02 00 00 5E 04 04 00 1E 02 00 00 57 04 04 00 1F 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:32:42]wFMCommunicate OK [21:32:42]SAM_PROTO_GetFieldsCounters done [21:32:42]requested_item shift.num is exist - process it [21:32:42]requested_item shift.opened is exist - process it [21:32:42]req_shift_opened [21:32:42]FM_GetShiftState [21:32:42]SAM_PROTO_GetShiftState [21:32:42]wFMCommunicate request_size=4 [21:32:42]MH_SAM_APDU [21:32:42]CAPDU: 80 13 01 00 [21:32:42]Write to MH i2c: E2 08 00 27 16 80 13 01 00 00 00 00 00 BA [21:32:42]Write i2c OK [21:32:42]MH_I2C_Read... [21:32:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:32:42]Read from MH i2c: E2 [21:32:42]MH_I2C_Read... [21:32:42]Read from MH i2c: E2 0E 00 [21:32:42]MH_I2C_Read... [21:32:42]Read from MH i2c: E2 0E 00 27 16 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 D4 [21:32:42]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:32:42]wFMCommunicate OK [21:32:42]SAM_PROTO_GetShiftState done [21:32:42]FM_GetShiftState done [21:32:42]req_shift_opened done [21:32:42]requested_item shift.open_date is exist - process it [21:32:42]req_shift_open_date [21:32:42]req_shift_open_date done [21:32:42]produce_requested_data done [21:32:42]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227694,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [21:32:42]process_action_free close_receipt [21:32:42]json_value_free [21:32:42]json_value_free done [21:32:42]process_json_proto returns [21:32:42]Send response to host [21:32:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227694,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [21:32:42]free response buf [21:32:42]execute_script done [21:32:42]execute_script returns [21:32:42]free content buf [21:32:42]Sock 9.Close socket [21:32:42]Sock 9.Thread stoped [21:32:45]OFD Sender: No OFD packet to send [21:32:50]OFD Sender: No OFD packet to send [21:32:55]OFD Sender: No OFD packet to send [21:33:00]OFD Sender: No OFD packet to send [21:33:05]OFD Sender: No OFD packet to send [21:33:10]OFD Sender: No OFD packet to send [21:33:15]OFD Sender: No OFD packet to send [21:33:20]OFD Sender: No OFD packet to send [21:33:25]OFD Sender: No OFD packet to send [21:33:30]OFD Sender: No OFD packet to send [21:33:35]OFD Sender: No OFD packet to send [21:33:40]OFD Sender: No OFD packet to send [21:33:45]OFD Sender: No OFD packet to send [21:33:50]OFD Sender: No OFD packet to send [21:33:55]OFD Sender: No OFD packet to send [21:34:00]OFD Sender: No OFD packet to send [21:34:05]OFD Sender: No OFD packet to send [21:34:10]OFD Sender: No OFD packet to send [21:34:15]OFD Sender: No OFD packet to send [21:34:20]OFD Sender: No OFD packet to send [21:34:25]OFD Sender: No OFD packet to send [21:34:30]OFD Sender: No OFD packet to send [21:34:35]OFD Sender: No OFD packet to send [21:34:40]OFD Sender: No OFD packet to send [21:34:45]OFD Sender: No OFD packet to send [21:34:50]OFD Sender: No OFD packet to send [21:34:55]OFD Sender: No OFD packet to send [21:35:00]OFD Sender: No OFD packet to send [21:35:05]OFD Sender: No OFD packet to send [21:35:10]OFD Sender: No OFD packet to send [21:35:15]OFD Sender: No OFD packet to send [21:35:20]OFD Sender: No OFD packet to send [21:35:25]OFD Sender: No OFD packet to send [21:35:30]OFD Sender: No OFD packet to send [21:35:35]OFD Sender: No OFD packet to send [21:35:40]OFD Sender: No OFD packet to send [21:35:45]OFD Sender: No OFD packet to send [21:35:50]accept exits with 7 [21:35:50]New connection [21:35:50]New thread 3066666340 created [21:35:50]Thread 3066809700 joined [21:35:50]Waiting for new connection... [21:35:50] Sock 7.Parse request [21:35:50]Sock 7.Check first char [21:35:50]Sock 7.First char is OK [21:35:50]request: POST /json_proto HTTP/1.0 [21:35:50]Method: POST [21:35:50]URL: /json_proto [21:35:50]Method is POST - this is cgi request [21:35:50]url: /json_proto [21:35:50]query_string will be loaded in cgi processing [21:35:50]execute_cgi json_proto POST (null) [21:35:50]execute_cgi path=json_proto method=POST [21:35:50]POST find Content-Length [21:35:50]Host: 172.17.44.195:8080 [21:35:50]Content-Length: 683 [21:35:50]Content-Type: application/json [21:35:50] [21:35:50]POST finish read [21:35:50]Found Content-Length = 683 [21:35:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963358", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:35:50]execute_script... [21:35: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)1963358", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:35:50]POST & json_proto [21:35:50]process_json_proto [21:35:50]json parsed OK: [21:35:50]protocol is kg_v1.0 [21:35:50]action value=close_receipt [21:35:50]process_action close_receipt [21:35:50]cmd_close_receipt [21:35:50]MH_GetDate [21:35:50]Write to MH i2c: F0 00 00 28 16 2D [21:35:50]Write i2c OK [21:35:50]MH_I2C_Read... [21:35:50]Read from MH i2c: F0 [21:35:50]MH_I2C_Read... [21:35:50]Read from MH i2c: F0 09 00 [21:35:50]MH_I2C_Read... [21:35:50]Read from MH i2c: F0 09 00 28 16 00 B7 77 15 67 82 C9 CF 66 60 [21:35:50]GetLastDocTimeStamp 1729459959 [21:35:50]current date 1729460151 [21:35:50]FM_GetShiftState [21:35:50]SAM_PROTO_GetShiftState [21:35:50]wFMCommunicate request_size=4 [21:35:50]MH_SAM_APDU [21:35:50]CAPDU: 80 13 01 00 [21:35:50]Write to MH i2c: E2 08 00 29 16 80 13 01 00 00 00 00 00 BC [21:35:50]Write i2c OK [21:35:50]MH_I2C_Read... [21:35:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:35:50]Read from MH i2c: E2 [21:35:50]MH_I2C_Read... [21:35:50]Read from MH i2c: E2 0E 00 [21:35:50]MH_I2C_Read... [21:35:50]Read from MH i2c: E2 0E 00 29 16 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 D6 [21:35:50]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:35:50]wFMCommunicate OK [21:35:50]SAM_PROTO_GetShiftState done [21:35:50]FM_GetShiftState done [21:35:50]opened in 1729383750 [21:35:50]opened+sec_in_day 1729470150 [21:35:50]quantity*price = 100021 [21:35:50]sum+1 = 100023 [21:35:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 543 20.10.2024 21:35 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227695 ФПД: 219416525386149 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T213551&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227695&fm=219416525386149&tin=02508201610067®Number=0000000000091685&sum=100000 [21:35:51]StoreToDocumentArchive [21:35:51]shift 533 fd 227695 [21:35:51]save to /storage/0533/doc_00227695 [21:35:51]save last doc name /storage/0533/doc_00227695 to /storage/kkm_last_doc_name [21:35:51]save OK [21:35:51]Clear old archive folders... [21:35:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:35:51]tlvbuf is 00C837E0 [21:35:51]SAM_PROTO_ClearQueue [21:35:51]wFMCommunicate request_size=4 [21:35:51]MH_SAM_APDU [21:35:51]CAPDU: 80 09 00 00 [21:35:51]Write to MH i2c: E2 08 00 36 16 80 09 00 00 00 00 00 00 BE [21:35:51]Write i2c OK [21:35:51]MH_I2C_Read... [21:35:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:35:51]Read from MH i2c: E2 [21:35:51]MH_I2C_Read... [21:35:51]Read from MH i2c: E2 03 00 [21:35:51]MH_I2C_Read... [21:35:51]Read from MH i2c: E2 03 00 36 16 00 90 00 C0 [21:35:51]RAPDU: 90 00 [21:35:51]wFMCommunicate OK [21:35:51]SAM_PROTO_ClearQueue done [21:35:51]KKMCreateOFDPacket [21:35:51]OFDProtocolAddRootSTLVToBuf [21:35:51]FM_MakeSignedData [21:35:51]FM_MakeSignedData [21:35:51]SAM_PROTO_SignData [21:35:51]wFMCommunicate request_size=4 [21:35:51]MH_SAM_APDU [21:35:51]CAPDU: 80 0D 01 02 [21:35:51]Write to MH i2c: E2 08 00 37 16 80 0D 01 02 00 00 00 00 C6 [21:35:51]Write i2c OK [21:35:51]MH_I2C_Read... [21:35:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:35:51]Read from MH i2c: E2 [21:35:51]MH_I2C_Read... [21:35:51]Read from MH i2c: E2 03 00 [21:35:51]MH_I2C_Read... [21:35:51]Read from MH i2c: E2 03 00 37 16 00 90 00 C1 [21:35:51]RAPDU: 90 00 [21:35:51]wFMCommunicate OK [21:35:51]wFMCommunicate request_size=255 [21:35:51]MH_SAM_APDU [21:35: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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 02 00 00 F4 03 04 00 B7 77 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6F 79 03 00 35 04 06 00 C7 [21:35:51]Write to MH i2c: E2 02 01 38 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 02 00 00 F4 03 04 00 B7 77 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6F 79 03 00 35 04 06 00 C7 00 00 0E [21:35:51]Write i2c OK [21:35:51]MH_I2C_Read... [21:35:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:35:51]Read from MH i2c: E2 [21:35:51]MH_I2C_Read... [21:35:51]Read from MH i2c: E2 03 00 [21:35:51]MH_I2C_Read... [21:35:51]Read from MH i2c: E2 03 00 38 16 00 90 00 C2 [21:35:51]RAPDU: 90 00 [21:35:51]wFMCommunicate OK [21:35:51]wFMCommunicate request_size=10 [21:35:51]MH_SAM_APDU [21:35:51]CAPDU: 80 0D 02 02 05 8E E4 0D B1 A5 [21:35:51]Write to MH i2c: E2 0D 00 39 16 80 0D 02 02 05 00 8E E4 0D B1 A5 00 00 A8 [21:35:51]Write i2c OK [21:35:51]MH_I2C_Read... [21:35:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:35:51]Read from MH i2c: E2 [21:35:51]MH_I2C_Read... [21:35:51]Read from MH i2c: E2 03 00 [21:35:51]MH_I2C_Read... [21:35:51]Read from MH i2c: E2 03 00 39 16 00 90 00 C3 [21:35:51]RAPDU: 90 00 [21:35:51]wFMCommunicate OK [21:35:51]wFMCommunicate request_size=4 [21:35:51]MH_SAM_APDU [21:35:51]CAPDU: 80 0D 03 02 [21:35:51]Write to MH i2c: E2 08 00 3A 16 80 0D 03 02 00 00 00 00 CB [21:35:51]Write i2c OK [21:35:51]MH_I2C_Read... [21:35:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:35:51]Read from MH i2c: E2 [21:35:51]MH_I2C_Read... [21:35:51]Read from MH i2c: E2 0B 00 [21:35:51]MH_I2C_Read... [21:35:51]Read from MH i2c: E2 0B 00 3A 16 00 8E D4 9E D1 05 6B C6 BF 90 00 92 [21:35:51]RAPDU: 8E D4 9E D1 05 6B C6 BF 90 00 [21:35:51]wFMCommunicate OK [21:35:51]SAM_PROTO_SignData done [21:35:51]FM_MakeSignedData done [21:35:51]CreateOFDProtocolMessage [21:35:51]wFMCommunicate request_size=4 [21:35:51]MH_SAM_APDU [21:35:51]CAPDU: 80 11 00 00 [21:35:51]Write to MH i2c: E2 08 00 3B 16 80 11 00 00 00 00 00 00 CB [21:35:51]Write i2c OK [21:35:51]MH_I2C_Read... [21:35:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:35:51]Read from MH i2c: E2 [21:35:51]MH_I2C_Read... [21:35:51]Read from MH i2c: E2 17 00 [21:35:51]MH_I2C_Read... [21:35:51]Read from MH i2c: E2 17 00 3B 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 22 [21:35:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:35:51]wFMCommunicate OK [21:35:51]CreateOFDProtocolMessage done [21:35:51]OFDSenderStorePacket 227695 [21:35:51]StoreOFDPacket docnum=227695 [21:35:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 C8 52 07 01 01 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 02 00 00 F4 03 04 00 B7 77 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6F 79 03 00 35 04 06 00 C7 8E E4 0D B1 A5 8E D4 9E D1 05 6B C6 BF [21:35:51]CheckFolder [21:35:51]dirname=/storage/ofd_packets [21:35:51]CheckFolder done [21:35:51]ProducePacketName [21:35:51]name=ofd_packets/00227695 [21:35:51]NVStorageSaveData ofd_packets/00227695 [21:35:51]File name is /storage/ofd_packets/00227695 [21:35:51]Write 301 bytes [21:35:51]NVStorageSaveData done [21:35:51]OFDSenderStorePacket done [21:35:51]KKMCreateOFDPacket done [21:35:51]NVStorageSaveData kkm_last_timestamp [21:35:51]File name is /storage/kkm_last_timestamp [21:35:51]Write 4 bytes [21:35:51]NVStorageSaveData done [21:35:51]ExternCall_PrintAddStr [21:35:51]wPrintStart [21:35:51]Write to MH i2c: 01 00 00 3C 16 52 [21:35:51]Write i2c OK [21:35:51]MH_I2C_Read... [21:35:51]Read from MH i2c: 01 [21:35:51]MH_I2C_Read... [21:35:51]Read from MH i2c: 01 07 00 [21:35:51]MH_I2C_Read... [21:35:51]Read from MH i2c: 01 07 00 3C 16 00 00 00 00 00 FF 0F 67 [21:35:51]RasterBufferAndPrint [21:35:51]line Счет N : (1)1963358 [21:35:51]line ИНН: 02508201610067 [21:35:51]line Контрольно-Кассовый Чек [21:35:51]line ПРОДАЖА [21:35:51]line ТРК (МРК, ГНК) : 44 [21:35:51]line Товар: 2710124500 [21:35:51]line Аи-95-К-5 [21:35:51]line 13.480 * 74.20 [21:35:51]line = 1000.22 [21:35:51]line НДС 12% НСП 1% [21:35:51]line > о реализуемом товаре [21:35:51]line ОКРУГЛЕНИЕ: -0.22 [21:35:51]line ИТОГО: 1000.00 [21:35:51]line Внесено: 1000.00 [21:35:51]line СДАЧА: 0.00 [21:35:51]line НСП 1% : 8.85 [21:35:51]line НДС 12% : 106.22 [21:35:51]line Наличными: 1000.00 [21:35:51]line Безнал.: 0.00 [21:35:51]line Место: АЗС № 133 "Партнер Нефть" [21:35:51]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [21:35:51]line СНО: Общий режим [21:35:51]line Чек 543 20.10.2024 21:35 [21:35:51]line Смена: 533 ФФД: 1.0 [21:35:51]line ЗНМ: 0300000091 [21:35:51]line РНМ: 0000000000091685 [21:35:51]line Версия ККМ: 001 [21:35:51]line ФМ: 0000000000871839 [21:35:51]line ФД: 227695 [21:35:51]line ФПД: 219416525386149 [21:35:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T213551&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227695&fm=219416525386149&tin=02508201610067®Number=0000000000091685&sum=100000 [21:35:52]OFD Sender: Processing packet 227695 [packets to send 38, broken 37] [21:35:52]ProducePacketName [21:35:52]name=ofd_packets/00227695 [21:35:52]OFD Sender: To server: pG, [21:35:52]CommunicateWithHost lk.salyk.kg:30040 [21:35:52]ConnectInit lk.salyk.kg [21:35:52]written 0, free lines is 4095 [21:35:52]Connected sock=10 [21:35: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 33 39 0F 01 00 00 C8 52 07 01 01 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 02 00 00 F4 03 04 00 B7 77 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6F 79 03 00 35 04 06 00 C7 8E E4 0D B1 A5 8E D4 9E D1 05 6B C6 BF [21:35: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 33 39 4F 00 00 00 16 C1 47 00 11 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 6F 79 03 00 F4 03 04 00 B5 22 15 67 B6 04 01 00 00 B6 B7 AD 26 2C 9B 3C 14 [21:35:52]CommunicateWithHost err = 0 [21:35:52]CheckOFDResponse [21:35:52]1017 (14) - 77093643461234 [21:35:52]1041 (16) - 0000000000871839 [21:35:52]1040 (4) - 227695 [21:35:52]1012 (4) - 20.10.2024 15:33 [21:35:52]1206 (1) - 0 [21:35:52]OFD Sender: Remove packet 227695 [21:35:52]ProducePacketName [21:35:52]name=ofd_packets/00227695 [21:35:52]NVStorageDeleteData [21:35:52]Write to MH i2c: 01 00 00 66 16 7C [21:35:52]Write i2c OK [21:35:52]MH_I2C_Read... [21:35:52]Read from MH i2c: 01 [21:35:52]MH_I2C_Read... [21:35:52]Read from MH i2c: 01 07 00 [21:35:52]MH_I2C_Read... [21:35:52]Read from MH i2c: 01 07 00 66 16 00 00 00 00 00 AD 0C 3C [21:35:52]RasterBufferAndPrint [21:35:52]line [21:35:52]line [21:35:52]line [21:35:52]line [21:35:52]line [21:35:52]written 0, free lines is 3249 [21:35:52]MH_Cut [21:35:52]Write to MH i2c: D1 01 00 6D 16 01 55 [21:35:52]Write i2c OK [21:35:52]MH_I2C_Read... [21:35:52]Read from MH i2c: D1 [21:35:52]MH_I2C_Read... [21:35:52]Read from MH i2c: D1 01 00 [21:35:52]MH_I2C_Read... [21:35:52]Read from MH i2c: D1 01 00 6D 16 00 54 [21:35:52]Write to MH i2c: 01 00 00 6E 16 84 [21:35:52]Write i2c OK [21:35:52]MH_I2C_Read... [21:35:52]OFD Sender: No OFD packet to send [21:35:53]*** Cut start [21:35:53]*** Partial cut [21:35:53]*** CUTSNS_PIN = 1 [21:35:53]*** CUTSNS_PIN = 0 [21:35:53]*** Brake cut motor [21:35:54]Read from MH i2c: 01 [21:35:54]MH_I2C_Read... [21:35:54]*** Stop cut motor [21:35:54]*** Cut end [21:35:54]Read from MH i2c: 01 07 00 [21:35:54]MH_I2C_Read... [21:35:54]Read from MH i2c: 01 07 00 6E 16 00 00 00 00 00 FF 0F 99 [21:35:54]process_action close_receipt done [21:35:54]requested_data is exist [21:35:54]produce_requested_data [21:35:54]requested_item fm.sn is exist - process it [21:35:54]wFMCommunicate request_size=4 [21:35:54]MH_SAM_APDU [21:35:54]CAPDU: 80 11 00 00 [21:35:54]Write to MH i2c: E2 08 00 6F 16 80 11 00 00 00 00 00 00 FF [21:35:54]Write i2c OK [21:35:54]MH_I2C_Read... [21:35:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:35:54]Read from MH i2c: E2 [21:35:54]MH_I2C_Read... [21:35:54]Read from MH i2c: E2 17 00 [21:35:54]MH_I2C_Read... [21:35:54]Read from MH i2c: E2 17 00 6F 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 56 [21:35:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:35:54]wFMCommunicate OK [21:35:54]requested_item fd.num is exist - process it [21:35:54]SAM_PROTO_GetFieldsCounters [21:35:54]wFMCommunicate request_size=4 [21:35:54]MH_SAM_APDU [21:35:54]CAPDU: 80 13 00 00 [21:35:54]Write to MH i2c: E2 08 00 70 16 80 13 00 00 00 00 00 00 02 [21:35:54]Write i2c OK [21:35:54]MH_I2C_Read... [21:35:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:35:54]Read from MH i2c: E2 [21:35:54]MH_I2C_Read... [21:35:54]Read from MH i2c: E2 62 00 [21:35:54]MH_I2C_Read... [21:35:54]Read from MH i2c: E2 62 00 70 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6F 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 1F 02 00 00 5E 04 04 00 1F 02 00 00 57 04 04 00 20 02 00 00 19 04 04 00 00 00 00 00 90 00 90 [21:35: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 6F 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 1F 02 00 00 5E 04 04 00 1F 02 00 00 57 04 04 00 20 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:35:54]wFMCommunicate OK [21:35:54]SAM_PROTO_GetFieldsCounters done [21:35:54]requested_item shift.num is exist - process it [21:35:54]requested_item shift.opened is exist - process it [21:35:54]req_shift_opened [21:35:54]FM_GetShiftState [21:35:54]SAM_PROTO_GetShiftState [21:35:54]wFMCommunicate request_size=4 [21:35:54]MH_SAM_APDU [21:35:54]CAPDU: 80 13 01 00 [21:35:54]Write to MH i2c: E2 08 00 71 16 80 13 01 00 00 00 00 00 04 [21:35:54]Write i2c OK [21:35:54]MH_I2C_Read... [21:35:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:35:54]Read from MH i2c: E2 [21:35:54]MH_I2C_Read... [21:35:54]Read from MH i2c: E2 0E 00 [21:35:54]MH_I2C_Read... [21:35:54]Read from MH i2c: E2 0E 00 71 16 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 1E [21:35:54]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:35:54]wFMCommunicate OK [21:35:54]SAM_PROTO_GetShiftState done [21:35:54]FM_GetShiftState done [21:35:54]req_shift_opened done [21:35:54]requested_item shift.open_date is exist - process it [21:35:54]req_shift_open_date [21:35:54]req_shift_open_date done [21:35:54]produce_requested_data done [21:35:54]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227695,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [21:35:54]process_action_free close_receipt [21:35:54]json_value_free [21:35:54]json_value_free done [21:35:54]process_json_proto returns [21:35:54]Send response to host [21:35:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227695,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [21:35:54]free response buf [21:35:54]execute_script done [21:35:54]execute_script returns [21:35:54]free content buf [21:35:54]Sock 7.Close socket [21:35:54]Sock 7.Thread stoped [21:35:57]OFD Sender: No OFD packet to send [21:36:02]OFD Sender: No OFD packet to send [21:36:07]OFD Sender: No OFD packet to send [21:36:12]OFD Sender: No OFD packet to send [21:36:17]OFD Sender: No OFD packet to send [21:36:22]OFD Sender: No OFD packet to send [21:36:27]OFD Sender: No OFD packet to send [21:36:29]accept exits with 9 [21:36:29]New connection [21:36:29]New thread 3066809700 created [21:36:29]Thread 3066666340 joined [21:36:29]Waiting for new connection... [21:36:29] Sock 9.Parse request [21:36:29]Sock 9.Check first char [21:36:29]Sock 9.First char is OK [21:36:29]request: POST /json_proto HTTP/1.0 [21:36:29]Method: POST [21:36:29]URL: /json_proto [21:36:29]Method is POST - this is cgi request [21:36:29]url: /json_proto [21:36:29]query_string will be loaded in cgi processing [21:36:29]execute_cgi json_proto POST (null) [21:36:29]execute_cgi path=json_proto method=POST [21:36:29]POST find Content-Length [21:36:29]Host: 172.17.44.195:8080 [21:36:29]Content-Length: 770 [21:36:29]Content-Type: application/json [21:36:29] [21:36:29]POST finish read [21:36:29]Found Content-Length = 770 [21:36:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963359", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.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: Mbank", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:36:29]execute_script... [21:36:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963359", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.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: Mbank", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:36:29]POST & json_proto [21:36:29]process_json_proto [21:36:29]json parsed OK: [21:36:29]protocol is kg_v1.0 [21:36:29]action value=close_receipt [21:36:29]process_action close_receipt [21:36:29]cmd_close_receipt [21:36:29]MH_GetDate [21:36:29]Write to MH i2c: F0 00 00 72 16 77 [21:36:29]Write i2c OK [21:36:29]MH_I2C_Read... [21:36:29]Read from MH i2c: F0 [21:36:29]MH_I2C_Read... [21:36:29]Read from MH i2c: F0 09 00 [21:36:29]MH_I2C_Read... [21:36:29]Read from MH i2c: F0 09 00 72 16 00 DE 77 15 67 82 C9 CF 66 D1 [21:36:29]GetLastDocTimeStamp 1729460151 [21:36:29]current date 1729460190 [21:36:29]FM_GetShiftState [21:36:29]SAM_PROTO_GetShiftState [21:36:29]wFMCommunicate request_size=4 [21:36:29]MH_SAM_APDU [21:36:29]CAPDU: 80 13 01 00 [21:36:29]Write to MH i2c: E2 08 00 73 16 80 13 01 00 00 00 00 00 06 [21:36:29]Write i2c OK [21:36:29]MH_I2C_Read... [21:36:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:36:29]Read from MH i2c: E2 [21:36:29]MH_I2C_Read... [21:36:29]Read from MH i2c: E2 0E 00 [21:36:29]MH_I2C_Read... [21:36:29]Read from MH i2c: E2 0E 00 73 16 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 20 [21:36:29]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:36:29]wFMCommunicate OK [21:36:29]SAM_PROTO_GetShiftState done [21:36:29]FM_GetShiftState done [21:36:29]opened in 1729383750 [21:36:29]opened+sec_in_day 1729470150 [21:36:29]quantity*price = 200043 [21:36:29]sum+1 = 200044 [21:36:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.43 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.43 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 544 20.10.2024 21:36 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 227696 ФПД: 36820059422526 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T213631&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227696&fm=36820059422526&tin=02508201610067®Number=0000000000091685&sum=200043 [21:36:30]StoreToDocumentArchive [21:36:30]shift 533 fd 227696 [21:36:30]save to /storage/0533/doc_00227696 [21:36:30]save last doc name /storage/0533/doc_00227696 to /storage/kkm_last_doc_name [21:36:30]save OK [21:36:30]Clear old archive folders... [21:36:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:36:30]tlvbuf is B6F325C0 [21:36:30]SAM_PROTO_ClearQueue [21:36:30]wFMCommunicate request_size=4 [21:36:30]MH_SAM_APDU [21:36:30]CAPDU: 80 09 00 00 [21:36:30]Write to MH i2c: E2 08 00 80 16 80 09 00 00 00 00 00 00 08 [21:36:30]Write i2c OK [21:36:30]MH_I2C_Read... [21:36:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:36:30]Read from MH i2c: E2 [21:36:30]MH_I2C_Read... [21:36:30]Read from MH i2c: E2 03 00 [21:36:30]MH_I2C_Read... [21:36:30]Read from MH i2c: E2 03 00 80 16 00 90 00 0A [21:36:30]RAPDU: 90 00 [21:36:30]wFMCommunicate OK [21:36:30]SAM_PROTO_ClearQueue done [21:36:30]KKMCreateOFDPacket [21:36:30]OFDProtocolAddRootSTLVToBuf [21:36:30]FM_MakeSignedData [21:36:30]FM_MakeSignedData [21:36:30]SAM_PROTO_SignData [21:36:30]wFMCommunicate request_size=4 [21:36:30]MH_SAM_APDU [21:36:30]CAPDU: 80 0D 01 02 [21:36:30]Write to MH i2c: E2 08 00 81 16 80 0D 01 02 00 00 00 00 10 [21:36:30]Write i2c OK [21:36:30]MH_I2C_Read... [21:36:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:36:30]Read from MH i2c: E2 [21:36:30]MH_I2C_Read... [21:36:30]Read from MH i2c: E2 03 00 [21:36:30]MH_I2C_Read... [21:36:30]Read from MH i2c: E2 03 00 81 16 00 90 00 0B [21:36:30]RAPDU: 90 00 [21:36:30]wFMCommunicate OK [21:36:30]wFMCommunicate request_size=255 [21:36:30]MH_SAM_APDU [21:36:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 02 00 00 F4 03 04 00 DF 77 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 70 79 03 00 35 04 06 00 21 [21:36:30]Write to MH i2c: E2 02 01 82 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 02 00 00 F4 03 04 00 DF 77 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 70 79 03 00 35 04 06 00 21 00 00 BD [21:36:31]Write i2c OK [21:36:31]MH_I2C_Read... [21:36:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:36:31]Read from MH i2c: E2 [21:36:31]MH_I2C_Read... [21:36:31]Read from MH i2c: E2 03 00 [21:36:31]MH_I2C_Read... [21:36:31]Read from MH i2c: E2 03 00 82 16 00 90 00 0C [21:36:31]RAPDU: 90 00 [21:36:31]wFMCommunicate OK [21:36:31]wFMCommunicate request_size=10 [21:36:31]MH_SAM_APDU [21:36:31]CAPDU: 80 0D 02 02 05 7C D6 8F FF 3E [21:36:31]Write to MH i2c: E2 0D 00 83 16 80 0D 02 02 05 00 7C D6 8F FF 3E 00 00 3B [21:36:31]Write i2c OK [21:36:31]MH_I2C_Read... [21:36:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:36:31]Read from MH i2c: E2 [21:36:31]MH_I2C_Read... [21:36:31]Read from MH i2c: E2 03 00 [21:36:31]MH_I2C_Read... [21:36:31]Read from MH i2c: E2 03 00 83 16 00 90 00 0D [21:36:31]RAPDU: 90 00 [21:36:31]wFMCommunicate OK [21:36:31]wFMCommunicate request_size=4 [21:36:31]MH_SAM_APDU [21:36:31]CAPDU: 80 0D 03 02 [21:36:31]Write to MH i2c: E2 08 00 84 16 80 0D 03 02 00 00 00 00 15 [21:36:31]Write i2c OK [21:36:31]MH_I2C_Read... [21:36:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:36:31]Read from MH i2c: E2 [21:36:31]MH_I2C_Read... [21:36:31]Read from MH i2c: E2 0B 00 [21:36:31]MH_I2C_Read... [21:36:31]Read from MH i2c: E2 0B 00 84 16 00 26 5E 95 94 79 D6 50 92 90 00 F4 [21:36:31]RAPDU: 26 5E 95 94 79 D6 50 92 90 00 [21:36:31]wFMCommunicate OK [21:36:31]SAM_PROTO_SignData done [21:36:31]FM_MakeSignedData done [21:36:31]CreateOFDProtocolMessage [21:36:31]wFMCommunicate request_size=4 [21:36:31]MH_SAM_APDU [21:36:31]CAPDU: 80 11 00 00 [21:36:31]Write to MH i2c: E2 08 00 85 16 80 11 00 00 00 00 00 00 15 [21:36:31]Write i2c OK [21:36:31]MH_I2C_Read... [21:36:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:36:31]Read from MH i2c: E2 [21:36:31]MH_I2C_Read... [21:36:31]Read from MH i2c: E2 17 00 [21:36:31]MH_I2C_Read... [21:36:31]Read from MH i2c: E2 17 00 85 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 6C [21:36:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:36:31]wFMCommunicate OK [21:36:31]CreateOFDProtocolMessage done [21:36:31]OFDSenderStorePacket 227696 [21:36:31]StoreOFDPacket docnum=227696 [21:36:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 25 EA 07 01 31 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 02 00 00 F4 03 04 00 DF 77 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 70 79 03 00 35 04 06 00 21 7C D6 8F FF 3E 26 5E 95 94 79 D6 50 92 [21:36:31]CheckFolder [21:36:31]dirname=/storage/ofd_packets [21:36:31]CheckFolder done [21:36:31]ProducePacketName [21:36:31]name=ofd_packets/00227696 [21:36:31]NVStorageSaveData ofd_packets/00227696 [21:36:31]File name is /storage/ofd_packets/00227696 [21:36:31]Write 301 bytes [21:36:31]NVStorageSaveData done [21:36:31]OFDSenderStorePacket done [21:36:31]KKMCreateOFDPacket done [21:36:31]NVStorageSaveData kkm_last_timestamp [21:36:31]File name is /storage/kkm_last_timestamp [21:36:31]Write 4 bytes [21:36:31]NVStorageSaveData done [21:36:31]ExternCall_PrintAddStr [21:36:31]wPrintStart [21:36:31]Write to MH i2c: 01 00 00 86 16 9C [21:36:31]Write i2c OK [21:36:31]MH_I2C_Read... [21:36:31]Read from MH i2c: 01 [21:36:31]MH_I2C_Read... [21:36:31]Read from MH i2c: 01 07 00 [21:36:31]MH_I2C_Read... [21:36:31]Read from MH i2c: 01 07 00 86 16 00 00 00 00 00 FF 0F B1 [21:36:31]RasterBufferAndPrint [21:36:31]line Счет N : (1)1963359 [21:36:31]line ИНН: 02508201610067 [21:36:31]line Контрольно-Кассовый Чек [21:36:31]line ПРОДАЖА [21:36:31]line ТРК (МРК, ГНК) : 54 [21:36:31]line Товар: 2710124500 [21:36:31]line Аи-95-К-5 [21:36:31]line 26.960 * 74.20 [21:36:31]line = 2000.43 [21:36:31]line НДС 12% НСП 1% [21:36:31]line > о реализуемом товаре [21:36:31]line ИТОГО: 2000.43 [21:36:31]line НСП 1% : 17.70 [21:36:31]line НДС 12% : 212.43 [21:36:31]line Наличными: 0.00 [21:36:31]line Безнал.: 2000.43 [21:36:31]line Место: АЗС № 133 "Партнер Нефть" [21:36:31]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [21:36:31]line СНО: Общий режим [21:36:31]line Чек 544 20.10.2024 21:36 [21:36:31]line Смена: 533 ФФД: 1.0 [21:36:31]line ЗНМ: 0300000091 [21:36:31]line РНМ: 0000000000091685 [21:36:31]line Версия ККМ: 001 [21:36:31]line Платежная система: Mbank [21:36:31]line ФМ: 0000000000871839 [21:36:31]line ФД: 227696 [21:36:31]line ФПД: 36820059422526 [21:36:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T213631&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227696&fm=36820059422526&tin=02508201610067®Number=0000000000091685&sum=200043 [21:36:31]OFD Sender: Processing packet 227696 [packets to send 38, broken 37] [21:36:31]ProducePacketName [21:36:31]name=ofd_packets/00227696 [21:36:31]OFD Sender: To server: pG, [21:36:31]CommunicateWithHost lk.salyk.kg:30040 [21:36:31]ConnectInit lk.salyk.kg [21:36:31]Connected sock=11 [21:36:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 25 EA 07 01 31 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 02 00 00 F4 03 04 00 DF 77 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 70 79 03 00 35 04 06 00 21 7C D6 8F FF 3E 26 5E 95 94 79 D6 50 92 [21:36:31]written 0, free lines is 4095 [21:36:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 EB 2E 47 00 B4 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 33 39 10 04 04 00 70 79 03 00 F4 03 04 00 DC 22 15 67 B6 04 01 00 00 A5 FD E6 34 29 BC C7 2D [21:36:31]CommunicateWithHost err = 0 [21:36:31]CheckOFDResponse [21:36:31]1017 (14) - 77093643461234 [21:36:31]1041 (16) - 0000000000871839 [21:36:31]1040 (4) - 227696 [21:36:31]1012 (4) - 20.10.2024 15:33 [21:36:31]1206 (1) - 0 [21:36:31]OFD Sender: Remove packet 227696 [21:36:31]ProducePacketName [21:36:31]name=ofd_packets/00227696 [21:36:31]NVStorageDeleteData [21:36:32]Write to MH i2c: 01 00 00 AE 16 C4 [21:36:32]Write i2c OK [21:36:32]MH_I2C_Read... [21:36:32]Read from MH i2c: 01 [21:36:32]MH_I2C_Read... [21:36:32]Read from MH i2c: 01 07 00 [21:36:32]MH_I2C_Read... [21:36:32]Read from MH i2c: 01 07 00 AE 16 00 00 00 00 00 E1 0C B8 [21:36:32]RasterBufferAndPrint [21:36:32]line [21:36:32]line [21:36:32]line [21:36:32]line [21:36:32]line [21:36:32]written 0, free lines is 3300 [21:36:32]MH_Cut [21:36:32]Write to MH i2c: D1 01 00 B5 16 01 9D [21:36:32]Write i2c OK [21:36:32]MH_I2C_Read... [21:36:32]Read from MH i2c: D1 [21:36:32]MH_I2C_Read... [21:36:32]Read from MH i2c: D1 01 00 [21:36:32]MH_I2C_Read... [21:36:32]Read from MH i2c: D1 01 00 B5 16 00 9C [21:36:32]Write to MH i2c: 01 00 00 B6 16 CC [21:36:32]Write i2c OK [21:36:32]MH_I2C_Read... [21:36:32]OFD Sender: No OFD packet to send [21:36:33]*** Cut start [21:36:33]*** Partial cut [21:36:33]*** CUTSNS_PIN = 1 [21:36:33]*** CUTSNS_PIN = 0 [21:36:33]*** Brake cut motor [21:36:33]Read from MH i2c: 01 [21:36:33]MH_I2C_Read... [21:36:33]*** Stop cut motor [21:36:33]*** Cut end [21:36:33]Read from MH i2c: 01 07 00 [21:36:33]MH_I2C_Read... [21:36:33]Read from MH i2c: 01 07 00 B6 16 00 00 00 00 00 FF 0F E1 [21:36:33]process_action close_receipt done [21:36:33]requested_data is exist [21:36:33]produce_requested_data [21:36:33]requested_item fm.sn is exist - process it [21:36:33]wFMCommunicate request_size=4 [21:36:33]MH_SAM_APDU [21:36:33]CAPDU: 80 11 00 00 [21:36:33]Write to MH i2c: E2 08 00 B7 16 80 11 00 00 00 00 00 00 47 [21:36:33]Write i2c OK [21:36:33]MH_I2C_Read... [21:36:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:36:33]Read from MH i2c: E2 [21:36:33]MH_I2C_Read... [21:36:33]Read from MH i2c: E2 17 00 [21:36:33]MH_I2C_Read... [21:36:33]Read from MH i2c: E2 17 00 B7 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 9E [21:36:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:36:33]wFMCommunicate OK [21:36:33]requested_item fd.num is exist - process it [21:36:33]SAM_PROTO_GetFieldsCounters [21:36:33]wFMCommunicate request_size=4 [21:36:33]MH_SAM_APDU [21:36:33]CAPDU: 80 13 00 00 [21:36:33]Write to MH i2c: E2 08 00 B8 16 80 13 00 00 00 00 00 00 4A [21:36:33]Write i2c OK [21:36:33]MH_I2C_Read... [21:36:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:36:33]Read from MH i2c: E2 [21:36:33]MH_I2C_Read... [21:36:33]Read from MH i2c: E2 62 00 [21:36:33]MH_I2C_Read... [21:36:33]Read from MH i2c: E2 62 00 B8 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 70 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 20 02 00 00 5E 04 04 00 20 02 00 00 57 04 04 00 21 02 00 00 19 04 04 00 00 00 00 00 90 00 DC [21:36:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 70 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 20 02 00 00 5E 04 04 00 20 02 00 00 57 04 04 00 21 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:36:33]wFMCommunicate OK [21:36:33]SAM_PROTO_GetFieldsCounters done [21:36:33]requested_item shift.num is exist - process it [21:36:33]requested_item shift.opened is exist - process it [21:36:33]req_shift_opened [21:36:33]FM_GetShiftState [21:36:33]SAM_PROTO_GetShiftState [21:36:33]wFMCommunicate request_size=4 [21:36:33]MH_SAM_APDU [21:36:33]CAPDU: 80 13 01 00 [21:36:33]Write to MH i2c: E2 08 00 B9 16 80 13 01 00 00 00 00 00 4C [21:36:33]Write i2c OK [21:36:33]MH_I2C_Read... [21:36:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:36:34]Read from MH i2c: E2 [21:36:34]MH_I2C_Read... [21:36:34]Read from MH i2c: E2 0E 00 [21:36:34]MH_I2C_Read... [21:36:34]Read from MH i2c: E2 0E 00 B9 16 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 66 [21:36:34]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:36:34]wFMCommunicate OK [21:36:34]SAM_PROTO_GetShiftState done [21:36:34]FM_GetShiftState done [21:36:34]req_shift_opened done [21:36:34]requested_item shift.open_date is exist - process it [21:36:34]req_shift_open_date [21:36:34]req_shift_open_date done [21:36:34]produce_requested_data done [21:36:34]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227696,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [21:36:34]process_action_free close_receipt [21:36:34]json_value_free [21:36:34]json_value_free done [21:36:34]process_json_proto returns [21:36:34]Send response to host [21:36:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227696,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [21:36:34]free response buf [21:36:34]execute_script done [21:36:34]execute_script returns [21:36:34]free content buf [21:36:34]Sock 9.Close socket [21:36:34]Sock 9.Thread stoped [21:36:37]OFD Sender: No OFD packet to send [21:36:42]OFD Sender: No OFD packet to send [21:36:47]OFD Sender: No OFD packet to send [21:36:52]OFD Sender: No OFD packet to send [21:36:57]OFD Sender: No OFD packet to send [21:37:02]OFD Sender: No OFD packet to send [21:37:07]OFD Sender: No OFD packet to send [21:37:12]OFD Sender: No OFD packet to send [21:37:17]OFD Sender: No OFD packet to send [21:37:22]OFD Sender: No OFD packet to send [21:37:27]OFD Sender: No OFD packet to send [21:37:32]OFD Sender: No OFD packet to send [21:37:37]OFD Sender: No OFD packet to send [21:37:42]OFD Sender: No OFD packet to send [21:37:47]OFD Sender: No OFD packet to send [21:37:52]OFD Sender: No OFD packet to send [21:37:57]OFD Sender: No OFD packet to send [21:38:02]OFD Sender: No OFD packet to send [21:38:07]OFD Sender: No OFD packet to send [21:38:12]OFD Sender: No OFD packet to send [21:38:13]accept exits with 7 [21:38:13]New connection [21:38:13]New thread 3066666340 created [21:38:13]Thread 3066809700 joined [21:38:13]Waiting for new connection... [21:38:13] Sock 7.Parse request [21:38:13]Sock 7.Check first char [21:38:13]Sock 7.First char is OK [21:38:13]request: POST /json_proto HTTP/1.0 [21:38:13]Method: POST [21:38:13]URL: /json_proto [21:38:13]Method is POST - this is cgi request [21:38:13]url: /json_proto [21:38:13]query_string will be loaded in cgi processing [21:38:13]execute_cgi json_proto POST (null) [21:38:13]execute_cgi path=json_proto method=POST [21:38:13]POST find Content-Length [21:38:13]Host: 172.17.44.195:8080 [21:38:13]Content-Length: 678 [21:38:13]Content-Type: application/json [21:38:13] [21:38:13]POST finish read [21:38:13]Found Content-Length = 678 [21:38:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963360", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:38:13]execute_script... [21:38:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963360", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:38:13]POST & json_proto [21:38:13]process_json_proto [21:38:13]json parsed OK: [21:38:13]protocol is kg_v1.0 [21:38:13]action value=close_receipt [21:38:13]process_action close_receipt [21:38:13]cmd_close_receipt [21:38:13]MH_GetDate [21:38:13]Write to MH i2c: F0 00 00 BA 16 BF [21:38:13]Write i2c OK [21:38:13]MH_I2C_Read... [21:38:13]Read from MH i2c: F0 [21:38:13]MH_I2C_Read... [21:38:13]Read from MH i2c: F0 09 00 [21:38:13]MH_I2C_Read... [21:38:13]Read from MH i2c: F0 09 00 BA 16 00 46 78 15 67 82 C9 CF 66 82 [21:38:13]GetLastDocTimeStamp 1729460191 [21:38:13]current date 1729460294 [21:38:13]FM_GetShiftState [21:38:13]SAM_PROTO_GetShiftState [21:38:13]wFMCommunicate request_size=4 [21:38:13]MH_SAM_APDU [21:38:13]CAPDU: 80 13 01 00 [21:38:13]Write to MH i2c: E2 08 00 BB 16 80 13 01 00 00 00 00 00 4E [21:38:13]Write i2c OK [21:38:13]MH_I2C_Read... [21:38:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:38:13]Read from MH i2c: E2 [21:38:13]MH_I2C_Read... [21:38:13]Read from MH i2c: E2 0E 00 [21:38:13]MH_I2C_Read... [21:38:13]Read from MH i2c: E2 0E 00 BB 16 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 68 [21:38:13]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:38:13]wFMCommunicate OK [21:38:13]SAM_PROTO_GetShiftState done [21:38:13]FM_GetShiftState done [21:38:13]opened in 1729383750 [21:38:13]opened+sec_in_day 1729470150 [21:38:13]quantity*price = 60009 [21:38:13]sum+1 = 60010 [21:38:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 545 20.10.2024 21:38 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227697 ФПД: 129243853514084 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T213814&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227697&fm=129243853514084&tin=02508201610067®Number=0000000000091685&sum=60000 [21:38:14]StoreToDocumentArchive [21:38:14]shift 533 fd 227697 [21:38:14]save to /storage/0533/doc_00227697 [21:38:14]save last doc name /storage/0533/doc_00227697 to /storage/kkm_last_doc_name [21:38:14]save OK [21:38:14]Clear old archive folders... [21:38:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:38:14]tlvbuf is 00CADAB0 [21:38:14]SAM_PROTO_ClearQueue [21:38:14]wFMCommunicate request_size=4 [21:38:14]MH_SAM_APDU [21:38:14]CAPDU: 80 09 00 00 [21:38:14]Write to MH i2c: E2 08 00 C8 16 80 09 00 00 00 00 00 00 50 [21:38:14]Write i2c OK [21:38:14]MH_I2C_Read... [21:38:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:38:14]Read from MH i2c: E2 [21:38:14]MH_I2C_Read... [21:38:14]Read from MH i2c: E2 03 00 [21:38:14]MH_I2C_Read... [21:38:14]Read from MH i2c: E2 03 00 C8 16 00 90 00 52 [21:38:14]RAPDU: 90 00 [21:38:14]wFMCommunicate OK [21:38:14]SAM_PROTO_ClearQueue done [21:38:14]KKMCreateOFDPacket [21:38:14]OFDProtocolAddRootSTLVToBuf [21:38:14]FM_MakeSignedData [21:38:14]FM_MakeSignedData [21:38:14]SAM_PROTO_SignData [21:38:14]wFMCommunicate request_size=4 [21:38:14]MH_SAM_APDU [21:38:14]CAPDU: 80 0D 01 02 [21:38:14]Write to MH i2c: E2 08 00 C9 16 80 0D 01 02 00 00 00 00 58 [21:38:14]Write i2c OK [21:38:14]MH_I2C_Read... [21:38:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:38:14]Read from MH i2c: E2 [21:38:14]MH_I2C_Read... [21:38:14]Read from MH i2c: E2 03 00 [21:38:14]MH_I2C_Read... [21:38:14]Read from MH i2c: E2 03 00 C9 16 00 90 00 53 [21:38:14]RAPDU: 90 00 [21:38:14]wFMCommunicate OK [21:38:14]wFMCommunicate request_size=255 [21:38:14]MH_SAM_APDU [21:38:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 02 00 00 F4 03 04 00 46 78 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 71 79 03 00 35 04 06 00 75 [21:38:14]Write to MH i2c: E2 02 01 CA 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 02 00 00 F4 03 04 00 46 78 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 71 79 03 00 35 04 06 00 75 00 00 A2 [21:38:14]Write i2c OK [21:38:14]MH_I2C_Read... [21:38:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:38:14]Read from MH i2c: E2 [21:38:14]MH_I2C_Read... [21:38:14]Read from MH i2c: E2 03 00 [21:38:14]MH_I2C_Read... [21:38:14]Read from MH i2c: E2 03 00 CA 16 00 90 00 54 [21:38:14]RAPDU: 90 00 [21:38:14]wFMCommunicate OK [21:38:14]wFMCommunicate request_size=10 [21:38:14]MH_SAM_APDU [21:38:14]CAPDU: 80 0D 02 02 05 8B ED FA 65 64 [21:38:14]Write to MH i2c: E2 0D 00 CB 16 80 0D 02 02 05 00 8B ED FA 65 64 00 00 A0 [21:38:14]Write i2c OK [21:38:14]MH_I2C_Read... [21:38:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:38:15]Read from MH i2c: E2 [21:38:15]MH_I2C_Read... [21:38:15]Read from MH i2c: E2 03 00 [21:38:15]MH_I2C_Read... [21:38:15]Read from MH i2c: E2 03 00 CB 16 00 90 00 55 [21:38:15]RAPDU: 90 00 [21:38:15]wFMCommunicate OK [21:38:15]wFMCommunicate request_size=4 [21:38:15]MH_SAM_APDU [21:38:15]CAPDU: 80 0D 03 02 [21:38:15]Write to MH i2c: E2 08 00 CC 16 80 0D 03 02 00 00 00 00 5D [21:38:15]Write i2c OK [21:38:15]MH_I2C_Read... [21:38:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:38:15]Read from MH i2c: E2 [21:38:15]MH_I2C_Read... [21:38:15]Read from MH i2c: E2 0B 00 [21:38:15]MH_I2C_Read... [21:38:15]Read from MH i2c: E2 0B 00 CC 16 00 4B 48 B9 7D 75 41 BE A0 90 00 3B [21:38:15]RAPDU: 4B 48 B9 7D 75 41 BE A0 90 00 [21:38:15]wFMCommunicate OK [21:38:15]SAM_PROTO_SignData done [21:38:15]FM_MakeSignedData done [21:38:15]CreateOFDProtocolMessage [21:38:15]wFMCommunicate request_size=4 [21:38:15]MH_SAM_APDU [21:38:15]CAPDU: 80 11 00 00 [21:38:15]Write to MH i2c: E2 08 00 CD 16 80 11 00 00 00 00 00 00 5D [21:38:15]Write i2c OK [21:38:15]MH_I2C_Read... [21:38:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:38:15]Read from MH i2c: E2 [21:38:15]MH_I2C_Read... [21:38:15]Read from MH i2c: E2 17 00 [21:38:15]MH_I2C_Read... [21:38:15]Read from MH i2c: E2 17 00 CD 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B4 [21:38:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:38:15]wFMCommunicate OK [21:38:15]CreateOFDProtocolMessage done [21:38:15]OFDSenderStorePacket 227697 [21:38:15]StoreOFDPacket docnum=227697 [21:38:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 FD E5 07 01 5C C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 02 00 00 F4 03 04 00 46 78 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 71 79 03 00 35 04 06 00 75 8B ED FA 65 64 4B 48 B9 7D 75 41 BE A0 [21:38:15]CheckFolder [21:38:15]dirname=/storage/ofd_packets [21:38:15]CheckFolder done [21:38:15]ProducePacketName [21:38:15]name=ofd_packets/00227697 [21:38:15]NVStorageSaveData ofd_packets/00227697 [21:38:15]File name is /storage/ofd_packets/00227697 [21:38:15]Write 301 bytes [21:38:15]NVStorageSaveData done [21:38:15]OFDSenderStorePacket done [21:38:15]KKMCreateOFDPacket done [21:38:15]NVStorageSaveData kkm_last_timestamp [21:38:15]File name is /storage/kkm_last_timestamp [21:38:15]Write 4 bytes [21:38:15]NVStorageSaveData done [21:38:15]ExternCall_PrintAddStr [21:38:15]wPrintStart [21:38:15]Write to MH i2c: 01 00 00 CE 16 E4 [21:38:15]Write i2c OK [21:38:15]MH_I2C_Read... [21:38:15]Read from MH i2c: 01 [21:38:15]MH_I2C_Read... [21:38:15]Read from MH i2c: 01 07 00 [21:38:15]MH_I2C_Read... [21:38:15]Read from MH i2c: 01 07 00 CE 16 00 00 00 00 00 FF 0F F9 [21:38:15]RasterBufferAndPrint [21:38:15]line Счет N : (1)1963360 [21:38:15]line ИНН: 02508201610067 [21:38:15]line Контрольно-Кассовый Чек [21:38:15]line ПРОДАЖА [21:38:15]line ТРК (МРК, ГНК) : 63 [21:38:15]line Товар: 2710124130 [21:38:15]line Аи-92-К-5 [21:38:15]line 8.970 * 66.90 [21:38:15]line = 600.09 [21:38:15]line НДС 12% НСП 1% [21:38:15]line > о реализуемом товаре [21:38:15]line ОКРУГЛЕНИЕ: -0.09 [21:38:15]line ИТОГО: 600.00 [21:38:15]line Внесено: 600.00 [21:38:15]line СДАЧА: 0.00 [21:38:15]line НСП 1% : 5.31 [21:38:15]line НДС 12% : 63.73 [21:38:15]line Наличными: 600.00 [21:38:15]line Безнал.: 0.00 [21:38:15]line Место: АЗС № 133 "Партнер Нефть" [21:38:15]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [21:38:15]line СНО: Общий режим [21:38:15]line Чек 545 20.10.2024 21:38 [21:38:15]line Смена: 533 ФФД: 1.0 [21:38:15]line ЗНМ: 0300000091 [21:38:15]line РНМ: 0000000000091685 [21:38:15]line Версия ККМ: 001 [21:38:15]line ФМ: 0000000000871839 [21:38:15]line ФД: 227697 [21:38:15]line ФПД: 129243853514084 [21:38:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T213814&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227697&fm=129243853514084&tin=02508201610067®Number=0000000000091685&sum=60000 [21:38:15]OFD Sender: Processing packet 227697 [packets to send 38, broken 37] [21:38:15]ProducePacketName [21:38:15]name=ofd_packets/00227697 [21:38:15]OFD Sender: To server: pG, [21:38:15]CommunicateWithHost lk.salyk.kg:30040 [21:38:15]ConnectInit lk.salyk.kg [21:38:15]written 0, free lines is 4095 [21:38:15]Connected sock=10 [21:38:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 FD E5 07 01 5C C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 02 00 00 F4 03 04 00 46 78 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 71 79 03 00 35 04 06 00 75 8B ED FA 65 64 4B 48 B9 7D 75 41 BE A0 [21:38: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 33 39 4F 00 00 00 9C 2D 47 00 44 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 33 39 10 04 04 00 71 79 03 00 F4 03 04 00 44 23 15 67 B6 04 01 00 00 F9 4C B5 B8 87 8F E7 CC [21:38:15]CommunicateWithHost err = 0 [21:38:15]CheckOFDResponse [21:38:15]1017 (14) - 77093643461234 [21:38:15]1041 (16) - 0000000000871839 [21:38:15]1040 (4) - 227697 [21:38:15]1012 (4) - 20.10.2024 15:35 [21:38:15]1206 (1) - 0 [21:38:15]OFD Sender: Remove packet 227697 [21:38:15]ProducePacketName [21:38:15]name=ofd_packets/00227697 [21:38:15]NVStorageDeleteData [21:38:15]Write to MH i2c: 01 00 00 F8 16 0E [21:38:15]Write i2c OK [21:38:15]MH_I2C_Read... [21:38:15]Read from MH i2c: 01 [21:38:15]MH_I2C_Read... [21:38:15]Read from MH i2c: 01 07 00 [21:38:15]MH_I2C_Read... [21:38:15]Read from MH i2c: 01 07 00 F8 16 00 00 00 00 00 B2 0C D3 [21:38:15]RasterBufferAndPrint [21:38:15]line [21:38:15]line [21:38:15]line [21:38:15]line [21:38:15]line [21:38:15]written 0, free lines is 3255 [21:38:15]MH_Cut [21:38:15]Write to MH i2c: D1 01 00 FF 16 01 E7 [21:38:15]Write i2c OK [21:38:15]MH_I2C_Read... [21:38:15]Read from MH i2c: D1 [21:38:15]MH_I2C_Read... [21:38:15]Read from MH i2c: D1 01 00 [21:38:15]MH_I2C_Read... [21:38:15]Read from MH i2c: D1 01 00 FF 16 00 E6 [21:38:15]Write to MH i2c: 01 00 00 00 17 17 [21:38:15]Write i2c OK [21:38:15]MH_I2C_Read... [21:38:16]OFD Sender: No OFD packet to send [21:38:16]*** Cut start [21:38:16]*** Partial cut [21:38:16]*** CUTSNS_PIN = 1 [21:38:16]*** CUTSNS_PIN = 0 [21:38:17]*** Brake cut motor [21:38:17]Read from MH i2c: 01 [21:38:17]MH_I2C_Read... [21:38:17]*** Stop cut motor [21:38:17]*** Cut end [21:38:17]Read from MH i2c: 01 07 00 [21:38:17]MH_I2C_Read... [21:38:17]Read from MH i2c: 01 07 00 00 17 00 00 00 00 00 FF 0F 2C [21:38:17]process_action close_receipt done [21:38:17]requested_data is exist [21:38:17]produce_requested_data [21:38:17]requested_item fm.sn is exist - process it [21:38:17]wFMCommunicate request_size=4 [21:38:17]MH_SAM_APDU [21:38:17]CAPDU: 80 11 00 00 [21:38:17]Write to MH i2c: E2 08 00 01 17 80 11 00 00 00 00 00 00 92 [21:38:17]Write i2c OK [21:38:17]MH_I2C_Read... [21:38:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:38:17]Read from MH i2c: E2 [21:38:17]MH_I2C_Read... [21:38:17]Read from MH i2c: E2 17 00 [21:38:17]MH_I2C_Read... [21:38:17]Read from MH i2c: E2 17 00 01 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E9 [21:38:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:38:17]wFMCommunicate OK [21:38:17]requested_item fd.num is exist - process it [21:38:17]SAM_PROTO_GetFieldsCounters [21:38:17]wFMCommunicate request_size=4 [21:38:17]MH_SAM_APDU [21:38:17]CAPDU: 80 13 00 00 [21:38:17]Write to MH i2c: E2 08 00 02 17 80 13 00 00 00 00 00 00 95 [21:38:17]Write i2c OK [21:38:17]MH_I2C_Read... [21:38:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:38:17]Read from MH i2c: E2 [21:38:17]MH_I2C_Read... [21:38:17]Read from MH i2c: E2 62 00 [21:38:17]MH_I2C_Read... [21:38:17]Read from MH i2c: E2 62 00 02 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 71 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 21 02 00 00 5E 04 04 00 21 02 00 00 57 04 04 00 22 02 00 00 19 04 04 00 00 00 00 00 90 00 2B [21:38:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 71 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 21 02 00 00 5E 04 04 00 21 02 00 00 57 04 04 00 22 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:38:17]wFMCommunicate OK [21:38:17]SAM_PROTO_GetFieldsCounters done [21:38:17]requested_item shift.num is exist - process it [21:38:17]requested_item shift.opened is exist - process it [21:38:17]req_shift_opened [21:38:17]FM_GetShiftState [21:38:17]SAM_PROTO_GetShiftState [21:38:17]wFMCommunicate request_size=4 [21:38:17]MH_SAM_APDU [21:38:17]CAPDU: 80 13 01 00 [21:38:17]Write to MH i2c: E2 08 00 03 17 80 13 01 00 00 00 00 00 97 [21:38:17]Write i2c OK [21:38:17]MH_I2C_Read... [21:38:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:38:17]Read from MH i2c: E2 [21:38:17]MH_I2C_Read... [21:38:17]Read from MH i2c: E2 0E 00 [21:38:17]MH_I2C_Read... [21:38:17]Read from MH i2c: E2 0E 00 03 17 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 B1 [21:38:17]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:38:17]wFMCommunicate OK [21:38:17]SAM_PROTO_GetShiftState done [21:38:17]FM_GetShiftState done [21:38:17]req_shift_opened done [21:38:17]requested_item shift.open_date is exist - process it [21:38:17]req_shift_open_date [21:38:17]req_shift_open_date done [21:38:17]produce_requested_data done [21:38:17]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227697,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [21:38:17]process_action_free close_receipt [21:38:17]json_value_free [21:38:17]json_value_free done [21:38:17]process_json_proto returns [21:38:17]Send response to host [21:38:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227697,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [21:38:17]free response buf [21:38:17]execute_script done [21:38:17]execute_script returns [21:38:17]free content buf [21:38:17]Sock 7.Close socket [21:38:17]Sock 7.Thread stoped [21:38:21]OFD Sender: No OFD packet to send [21:38:26]OFD Sender: No OFD packet to send [21:38:31]OFD Sender: No OFD packet to send [21:38:36]OFD Sender: No OFD packet to send [21:38:41]OFD Sender: No OFD packet to send [21:38:46]OFD Sender: No OFD packet to send [21:38:51]OFD Sender: No OFD packet to send [21:38:56]OFD Sender: No OFD packet to send [21:39:01]OFD Sender: No OFD packet to send [21:39:06]OFD Sender: No OFD packet to send [21:39:11]OFD Sender: No OFD packet to send [21:39:16]OFD Sender: No OFD packet to send [21:39:21]OFD Sender: No OFD packet to send [21:39:26]OFD Sender: No OFD packet to send [21:39:31]OFD Sender: No OFD packet to send [21:39:36]OFD Sender: No OFD packet to send [21:39:41]OFD Sender: No OFD packet to send [21:39:46]OFD Sender: No OFD packet to send [21:39:51]OFD Sender: No OFD packet to send [21:39:56]OFD Sender: No OFD packet to send [21:40:01]OFD Sender: No OFD packet to send [21:40:06]OFD Sender: No OFD packet to send [21:40:06]accept exits with 9 [21:40:06]New connection [21:40:06]New thread 3066809700 created [21:40:06]Thread 3066666340 joined [21:40:06]Waiting for new connection... [21:40:06] Sock 9.Parse request [21:40:06]Sock 9.Check first char [21:40:06]Sock 9.First char is OK [21:40:06]request: POST /json_proto HTTP/1.0 [21:40:06]Method: POST [21:40:06]URL: /json_proto [21:40:06]Method is POST - this is cgi request [21:40:06]url: /json_proto [21:40:06]query_string will be loaded in cgi processing [21:40:06]execute_cgi json_proto POST (null) [21:40:06]execute_cgi path=json_proto method=POST [21:40:06]POST find Content-Length [21:40:06]Host: 172.17.44.195:8080 [21:40:06]Content-Length: 678 [21:40:06]Content-Type: application/json [21:40:06] [21:40:06]POST finish read [21:40:06]Found Content-Length = 678 [21:40:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963361", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:40:06]execute_script... [21:40:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963361", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:40:06]POST & json_proto [21:40:06]process_json_proto [21:40:06]json parsed OK: [21:40:06]protocol is kg_v1.0 [21:40:06]action value=close_receipt [21:40:06]process_action close_receipt [21:40:06]cmd_close_receipt [21:40:06]MH_GetDate [21:40:06]Write to MH i2c: F0 00 00 04 17 0A [21:40:06]Write i2c OK [21:40:06]MH_I2C_Read... [21:40:06]Read from MH i2c: F0 [21:40:06]MH_I2C_Read... [21:40:06]Read from MH i2c: F0 09 00 [21:40:06]MH_I2C_Read... [21:40:06]Read from MH i2c: F0 09 00 04 17 00 B8 78 15 67 82 C9 CF 66 3F [21:40:06]GetLastDocTimeStamp 1729460294 [21:40:06]current date 1729460408 [21:40:06]FM_GetShiftState [21:40:06]SAM_PROTO_GetShiftState [21:40:06]wFMCommunicate request_size=4 [21:40:06]MH_SAM_APDU [21:40:06]CAPDU: 80 13 01 00 [21:40:06]Write to MH i2c: E2 08 00 05 17 80 13 01 00 00 00 00 00 99 [21:40:06]Write i2c OK [21:40:06]MH_I2C_Read... [21:40:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:40:06]Read from MH i2c: E2 [21:40:06]MH_I2C_Read... [21:40:06]Read from MH i2c: E2 0E 00 [21:40:06]MH_I2C_Read... [21:40:06]Read from MH i2c: E2 0E 00 05 17 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 B3 [21:40:06]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:40:06]wFMCommunicate OK [21:40:06]SAM_PROTO_GetShiftState done [21:40:06]FM_GetShiftState done [21:40:06]opened in 1729383750 [21:40:06]opened+sec_in_day 1729470150 [21:40:06]quantity*price = 40068 [21:40:06]sum+1 = 40069 [21:40:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.55 НДС 12% : 42.55 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 546 20.10.2024 21:40 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227698 ФПД: 81713209110645 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T214008&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227698&fm=81713209110645&tin=02508201610067®Number=0000000000091685&sum=40000 [21:40:08]StoreToDocumentArchive [21:40:08]shift 533 fd 227698 [21:40:08]save to /storage/0533/doc_00227698 [21:40:08]save last doc name /storage/0533/doc_00227698 to /storage/kkm_last_doc_name [21:40:08]save OK [21:40:08]Clear old archive folders... [21:40:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:40:08]tlvbuf is 00CBBE10 [21:40:08]SAM_PROTO_ClearQueue [21:40:08]wFMCommunicate request_size=4 [21:40:08]MH_SAM_APDU [21:40:08]CAPDU: 80 09 00 00 [21:40:08]Write to MH i2c: E2 08 00 12 17 80 09 00 00 00 00 00 00 9B [21:40:08]Write i2c OK [21:40:08]MH_I2C_Read... [21:40:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:40:08]Read from MH i2c: E2 [21:40:08]MH_I2C_Read... [21:40:08]Read from MH i2c: E2 03 00 [21:40:08]MH_I2C_Read... [21:40:08]Read from MH i2c: E2 03 00 12 17 00 90 00 9D [21:40:08]RAPDU: 90 00 [21:40:08]wFMCommunicate OK [21:40:08]SAM_PROTO_ClearQueue done [21:40:08]KKMCreateOFDPacket [21:40:08]OFDProtocolAddRootSTLVToBuf [21:40:08]FM_MakeSignedData [21:40:08]FM_MakeSignedData [21:40:08]SAM_PROTO_SignData [21:40:08]wFMCommunicate request_size=4 [21:40:08]MH_SAM_APDU [21:40:08]CAPDU: 80 0D 01 02 [21:40:08]Write to MH i2c: E2 08 00 13 17 80 0D 01 02 00 00 00 00 A3 [21:40:08]Write i2c OK [21:40:08]MH_I2C_Read... [21:40:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:40:08]Read from MH i2c: E2 [21:40:08]MH_I2C_Read... [21:40:08]Read from MH i2c: E2 03 00 [21:40:08]MH_I2C_Read... [21:40:08]Read from MH i2c: E2 03 00 13 17 00 90 00 9E [21:40:08]RAPDU: 90 00 [21:40:08]wFMCommunicate OK [21:40:08]wFMCommunicate request_size=255 [21:40:08]MH_SAM_APDU [21:40:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 02 00 00 F4 03 04 00 B8 78 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 72 79 03 00 35 04 06 00 4A [21:40:08]Write to MH i2c: E2 02 01 14 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 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 02 00 00 F4 03 04 00 B8 78 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 72 79 03 00 35 04 06 00 4A 00 00 08 [21:40:08]Write i2c OK [21:40:08]MH_I2C_Read... [21:40:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:40:08]Read from MH i2c: E2 [21:40:08]MH_I2C_Read... [21:40:08]Read from MH i2c: E2 03 00 [21:40:08]MH_I2C_Read... [21:40:08]Read from MH i2c: E2 03 00 14 17 00 90 00 9F [21:40:08]RAPDU: 90 00 [21:40:08]wFMCommunicate OK [21:40:08]wFMCommunicate request_size=10 [21:40:08]MH_SAM_APDU [21:40:08]CAPDU: 80 0D 02 02 05 51 56 CD 70 75 [21:40:08]Write to MH i2c: E2 0D 00 15 17 80 0D 02 02 05 00 51 56 CD 70 75 00 00 09 [21:40:08]Write i2c OK [21:40:08]MH_I2C_Read... [21:40:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:40:08]Read from MH i2c: E2 [21:40:08]MH_I2C_Read... [21:40:08]Read from MH i2c: E2 03 00 [21:40:08]MH_I2C_Read... [21:40:08]Read from MH i2c: E2 03 00 15 17 00 90 00 A0 [21:40:08]RAPDU: 90 00 [21:40:08]wFMCommunicate OK [21:40:08]wFMCommunicate request_size=4 [21:40:08]MH_SAM_APDU [21:40:08]CAPDU: 80 0D 03 02 [21:40:08]Write to MH i2c: E2 08 00 16 17 80 0D 03 02 00 00 00 00 A8 [21:40:08]Write i2c OK [21:40:08]MH_I2C_Read... [21:40:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:40:08]Read from MH i2c: E2 [21:40:08]MH_I2C_Read... [21:40:08]Read from MH i2c: E2 0B 00 [21:40:08]MH_I2C_Read... [21:40:08]Read from MH i2c: E2 0B 00 16 17 00 42 D7 5C 18 4D F1 91 8C 90 00 91 [21:40:08]RAPDU: 42 D7 5C 18 4D F1 91 8C 90 00 [21:40:08]wFMCommunicate OK [21:40:08]SAM_PROTO_SignData done [21:40:08]FM_MakeSignedData done [21:40:08]CreateOFDProtocolMessage [21:40:08]wFMCommunicate request_size=4 [21:40:08]MH_SAM_APDU [21:40:08]CAPDU: 80 11 00 00 [21:40:08]Write to MH i2c: E2 08 00 17 17 80 11 00 00 00 00 00 00 A8 [21:40:08]Write i2c OK [21:40:08]MH_I2C_Read... [21:40:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:40:08]Read from MH i2c: E2 [21:40:08]MH_I2C_Read... [21:40:08]Read from MH i2c: E2 17 00 [21:40:08]MH_I2C_Read... [21:40:08]Read from MH i2c: E2 17 00 17 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 FF [21:40:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:40:08]wFMCommunicate OK [21:40:08]CreateOFDProtocolMessage done [21:40:08]OFDSenderStorePacket 227698 [21:40:08]StoreOFDPacket docnum=227698 [21:40:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 B9 52 07 01 27 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 02 00 00 F4 03 04 00 B8 78 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 72 79 03 00 35 04 06 00 4A 51 56 CD 70 75 42 D7 5C 18 4D F1 91 8C [21:40:08]CheckFolder [21:40:08]dirname=/storage/ofd_packets [21:40:08]CheckFolder done [21:40:08]ProducePacketName [21:40:08]name=ofd_packets/00227698 [21:40:08]NVStorageSaveData ofd_packets/00227698 [21:40:08]File name is /storage/ofd_packets/00227698 [21:40:08]Write 301 bytes [21:40:08]NVStorageSaveData done [21:40:08]OFDSenderStorePacket done [21:40:08]KKMCreateOFDPacket done [21:40:08]NVStorageSaveData kkm_last_timestamp [21:40:08]File name is /storage/kkm_last_timestamp [21:40:08]Write 4 bytes [21:40:08]NVStorageSaveData done [21:40:08]ExternCall_PrintAddStr [21:40:08]wPrintStart [21:40:08]Write to MH i2c: 01 00 00 18 17 2F [21:40:08]Write i2c OK [21:40:08]MH_I2C_Read... [21:40:08]Read from MH i2c: 01 [21:40:08]MH_I2C_Read... [21:40:08]Read from MH i2c: 01 07 00 [21:40:08]MH_I2C_Read... [21:40:08]Read from MH i2c: 01 07 00 18 17 00 00 00 00 00 FF 0F 44 [21:40:08]RasterBufferAndPrint [21:40:08]line Счет N : (1)1963361 [21:40:08]line ИНН: 02508201610067 [21:40:08]line Контрольно-Кассовый Чек [21:40:08]line ПРОДАЖА [21:40:08]line ТРК (МРК, ГНК) : 44 [21:40:08]line Товар: 2710124500 [21:40:08]line Аи-95-К-5 [21:40:08]line 5.400 * 74.20 [21:40:08]line = 400.68 [21:40:08]line НДС 12% НСП 1% [21:40:08]line > о реализуемом товаре [21:40:08]line ОКРУГЛЕНИЕ: -0.68 [21:40:08]line ИТОГО: 400.00 [21:40:08]line Внесено: 400.00 [21:40:08]line СДАЧА: 0.00 [21:40:08]line НСП 1% : 3.55 [21:40:08]line НДС 12% : 42.55 [21:40:08]line Наличными: 400.00 [21:40:08]line Безнал.: 0.00 [21:40:08]line Место: АЗС № 133 "Партнер Нефть" [21:40:08]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [21:40:08]line СНО: Общий режим [21:40:08]line Чек 546 20.10.2024 21:40 [21:40:08]line Смена: 533 ФФД: 1.0 [21:40:08]line ЗНМ: 0300000091 [21:40:08]line РНМ: 0000000000091685 [21:40:08]line Версия ККМ: 001 [21:40:08]line ФМ: 0000000000871839 [21:40:08]line ФД: 227698 [21:40:08]line ФПД: 81713209110645 [21:40:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T214008&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227698&fm=81713209110645&tin=02508201610067®Number=0000000000091685&sum=40000 [21:40:08]OFD Sender: Processing packet 227698 [packets to send 38, broken 37] [21:40:08]ProducePacketName [21:40:08]name=ofd_packets/00227698 [21:40:08]OFD Sender: To server: pG, [21:40:08]CommunicateWithHost lk.salyk.kg:30040 [21:40:08]ConnectInit lk.salyk.kg [21:40:08]written 0, free lines is 4095 [21:40:08]Connected sock=10 [21:40:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 B9 52 07 01 27 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 02 00 00 F4 03 04 00 B8 78 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 72 79 03 00 35 04 06 00 4A 51 56 CD 70 75 42 D7 5C 18 4D F1 91 8C [21:40: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 33 39 4F 00 00 00 B1 11 47 00 0D 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 72 79 03 00 F4 03 04 00 B5 23 15 67 B6 04 01 00 00 01 4C 1B DA C1 E8 DE C4 [21:40:09]CommunicateWithHost err = 0 [21:40:09]CheckOFDResponse [21:40:09]1017 (14) - 77093643461234 [21:40:09]1041 (16) - 0000000000871839 [21:40:09]1040 (4) - 227698 [21:40:09]1012 (4) - 20.10.2024 15:37 [21:40:09]1206 (1) - 0 [21:40:09]OFD Sender: Remove packet 227698 [21:40:09]ProducePacketName [21:40:09]name=ofd_packets/00227698 [21:40:09]NVStorageDeleteData [21:40:09]Write to MH i2c: 01 00 00 42 17 59 [21:40:09]Write i2c OK [21:40:09]MH_I2C_Read... [21:40:09]Read from MH i2c: 01 [21:40:09]MH_I2C_Read... [21:40:09]Read from MH i2c: 01 07 00 [21:40:09]MH_I2C_Read... [21:40:09]Read from MH i2c: 01 07 00 42 17 00 00 00 00 00 A4 0C 10 [21:40:09]RasterBufferAndPrint [21:40:09]line [21:40:09]line [21:40:09]line [21:40:09]line [21:40:09]line [21:40:09]written 0, free lines is 3240 [21:40:09]MH_Cut [21:40:09]Write to MH i2c: D1 01 00 49 17 01 32 [21:40:09]Write i2c OK [21:40:09]MH_I2C_Read... [21:40:09]Read from MH i2c: D1 [21:40:09]MH_I2C_Read... [21:40:09]Read from MH i2c: D1 01 00 [21:40:09]MH_I2C_Read... [21:40:09]Read from MH i2c: D1 01 00 49 17 00 31 [21:40:09]Write to MH i2c: 01 00 00 4A 17 61 [21:40:09]Write i2c OK [21:40:09]MH_I2C_Read... [21:40:09]OFD Sender: No OFD packet to send [21:40:10]*** Cut start [21:40:10]*** Partial cut [21:40:10]*** CUTSNS_PIN = 1 [21:40:10]*** CUTSNS_PIN = 0 [21:40:10]*** Brake cut motor [21:40:10]Read from MH i2c: 01 [21:40:10]*** Stop cut motor [21:40:10]*** Cut end [21:40:10]MH_I2C_Read... [21:40:10]Read from MH i2c: 01 07 00 [21:40:10]MH_I2C_Read... [21:40:10]Read from MH i2c: 01 07 00 4A 17 00 00 00 00 00 FF 0F 76 [21:40:10]process_action close_receipt done [21:40:10]requested_data is exist [21:40:10]produce_requested_data [21:40:10]requested_item fm.sn is exist - process it [21:40:10]wFMCommunicate request_size=4 [21:40:10]MH_SAM_APDU [21:40:10]CAPDU: 80 11 00 00 [21:40:10]Write to MH i2c: E2 08 00 4B 17 80 11 00 00 00 00 00 00 DC [21:40:10]Write i2c OK [21:40:10]MH_I2C_Read... [21:40:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:40:10]Read from MH i2c: E2 [21:40:10]MH_I2C_Read... [21:40:10]Read from MH i2c: E2 17 00 [21:40:10]MH_I2C_Read... [21:40:10]Read from MH i2c: E2 17 00 4B 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 33 [21:40:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:40:10]wFMCommunicate OK [21:40:10]requested_item fd.num is exist - process it [21:40:10]SAM_PROTO_GetFieldsCounters [21:40:10]wFMCommunicate request_size=4 [21:40:10]MH_SAM_APDU [21:40:10]CAPDU: 80 13 00 00 [21:40:10]Write to MH i2c: E2 08 00 4C 17 80 13 00 00 00 00 00 00 DF [21:40:10]Write i2c OK [21:40:10]MH_I2C_Read... [21:40:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:40:11]Read from MH i2c: E2 [21:40:11]MH_I2C_Read... [21:40:11]Read from MH i2c: E2 62 00 [21:40:11]MH_I2C_Read... [21:40:11]Read from MH i2c: E2 62 00 4C 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 72 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 22 02 00 00 5E 04 04 00 22 02 00 00 57 04 04 00 23 02 00 00 19 04 04 00 00 00 00 00 90 00 79 [21:40: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 72 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 22 02 00 00 5E 04 04 00 22 02 00 00 57 04 04 00 23 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:40:11]wFMCommunicate OK [21:40:11]SAM_PROTO_GetFieldsCounters done [21:40:11]requested_item shift.num is exist - process it [21:40:11]requested_item shift.opened is exist - process it [21:40:11]req_shift_opened [21:40:11]FM_GetShiftState [21:40:11]SAM_PROTO_GetShiftState [21:40:11]wFMCommunicate request_size=4 [21:40:11]MH_SAM_APDU [21:40:11]CAPDU: 80 13 01 00 [21:40:11]Write to MH i2c: E2 08 00 4D 17 80 13 01 00 00 00 00 00 E1 [21:40:11]Write i2c OK [21:40:11]MH_I2C_Read... [21:40:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:40:11]Read from MH i2c: E2 [21:40:11]MH_I2C_Read... [21:40:11]Read from MH i2c: E2 0E 00 [21:40:11]MH_I2C_Read... [21:40:11]Read from MH i2c: E2 0E 00 4D 17 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 FB [21:40:11]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:40:11]wFMCommunicate OK [21:40:11]SAM_PROTO_GetShiftState done [21:40:11]FM_GetShiftState done [21:40:11]req_shift_opened done [21:40:11]requested_item shift.open_date is exist - process it [21:40:11]req_shift_open_date [21:40:11]req_shift_open_date done [21:40:11]produce_requested_data done [21:40:11]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227698,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [21:40:11]process_action_free close_receipt [21:40:11]json_value_free [21:40:11]json_value_free done [21:40:11]process_json_proto returns [21:40:11]Send response to host [21:40:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227698,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [21:40:11]free response buf [21:40:11]execute_script done [21:40:11]execute_script returns [21:40:11]free content buf [21:40:11]Sock 9.Close socket [21:40:11]Sock 9.Thread stoped [21:40:14]OFD Sender: No OFD packet to send [21:40:19]OFD Sender: No OFD packet to send [21:40:24]OFD Sender: No OFD packet to send [21:40:29]OFD Sender: No OFD packet to send [21:40:34]OFD Sender: No OFD packet to send [21:40:39]OFD Sender: No OFD packet to send [21:40:44]OFD Sender: No OFD packet to send [21:40:49]OFD Sender: No OFD packet to send [21:40:54]OFD Sender: No OFD packet to send [21:40:59]OFD Sender: No OFD packet to send [21:41:04]OFD Sender: No OFD packet to send [21:41:09]OFD Sender: No OFD packet to send [21:41:14]OFD Sender: No OFD packet to send [21:41:19]OFD Sender: No OFD packet to send [21:41:24]OFD Sender: No OFD packet to send [21:41:29]OFD Sender: No OFD packet to send [21:41:34]OFD Sender: No OFD packet to send [21:41:39]OFD Sender: No OFD packet to send [21:41:44]OFD Sender: No OFD packet to send [21:41:49]OFD Sender: No OFD packet to send [21:41:54]OFD Sender: No OFD packet to send [21:41:59]OFD Sender: No OFD packet to send [21:42:04]OFD Sender: No OFD packet to send [21:42:09]OFD Sender: No OFD packet to send [21:42:14]OFD Sender: No OFD packet to send [21:42:19]OFD Sender: No OFD packet to send [21:42:24]OFD Sender: No OFD packet to send [21:42:29]OFD Sender: No OFD packet to send [21:42:34]OFD Sender: No OFD packet to send [21:42:38]accept exits with 7 [21:42:38]New connection [21:42:38]New thread 3066666340 created [21:42:38]Thread 3066809700 joined [21:42:38]Waiting for new connection... [21:42:38] Sock 7.Parse request [21:42:38]Sock 7.Check first char [21:42:38]Sock 7.First char is OK [21:42:38]request: POST /json_proto HTTP/1.0 [21:42:38]Method: POST [21:42:38]URL: /json_proto [21:42:38]Method is POST - this is cgi request [21:42:38]url: /json_proto [21:42:38]query_string will be loaded in cgi processing [21:42:38]execute_cgi json_proto POST (null) [21:42:38]execute_cgi path=json_proto method=POST [21:42:38]POST find Content-Length [21:42:38]Host: 172.17.44.195:8080 [21:42:38]Content-Length: 678 [21:42:38]Content-Type: application/json [21:42:38] [21:42:38]POST finish read [21:42:38]Found Content-Length = 678 [21:42:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963362", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.540, "sum" : 370.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 370.00, "total" : 370.00, "payments": [ { "type": 0, "sum" : 370.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:42:38]execute_script... [21:42: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)1963362", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.540, "sum" : 370.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 370.00, "total" : 370.00, "payments": [ { "type": 0, "sum" : 370.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:42:38]POST & json_proto [21:42:38]process_json_proto [21:42:38]json parsed OK: [21:42:38]protocol is kg_v1.0 [21:42:38]action value=close_receipt [21:42:38]process_action close_receipt [21:42:38]cmd_close_receipt [21:42:38]MH_GetDate [21:42:38]Write to MH i2c: F0 00 00 4E 17 54 [21:42:38]Write i2c OK [21:42:38]MH_I2C_Read... [21:42:38]Read from MH i2c: F0 [21:42:38]MH_I2C_Read... [21:42:38]Read from MH i2c: F0 09 00 [21:42:38]MH_I2C_Read... [21:42:38]Read from MH i2c: F0 09 00 4E 17 00 50 79 15 67 82 C9 CF 66 22 [21:42:38]GetLastDocTimeStamp 1729460408 [21:42:38]current date 1729460560 [21:42:38]FM_GetShiftState [21:42:38]SAM_PROTO_GetShiftState [21:42:38]wFMCommunicate request_size=4 [21:42:38]MH_SAM_APDU [21:42:38]CAPDU: 80 13 01 00 [21:42:38]Write to MH i2c: E2 08 00 4F 17 80 13 01 00 00 00 00 00 E3 [21:42:38]Write i2c OK [21:42:38]MH_I2C_Read... [21:42:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:42:38]Read from MH i2c: E2 [21:42:38]MH_I2C_Read... [21:42:38]Read from MH i2c: E2 0E 00 [21:42:38]MH_I2C_Read... [21:42:38]Read from MH i2c: E2 0E 00 4F 17 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 FD [21:42:38]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:42:38]wFMCommunicate OK [21:42:38]SAM_PROTO_GetShiftState done [21:42:38]FM_GetShiftState done [21:42:38]opened in 1729383750 [21:42:38]opened+sec_in_day 1729470150 [21:42:38]quantity*price = 37062 [21:42:38]sum+1 = 37064 [21:42:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 370.00 Внесено: 370.00 СДАЧА: 0.00 НСП 1% : 3.28 НДС 12% : 39.36 Наличными: 370.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 547 20.10.2024 21:42 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227699 ФПД: 77295757194269 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T214240&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227699&fm=77295757194269&tin=02508201610067®Number=0000000000091685&sum=37000 [21:42:40]StoreToDocumentArchive [21:42:40]shift 533 fd 227699 [21:42:40]save to /storage/0533/doc_00227699 [21:42:40]save last doc name /storage/0533/doc_00227699 to /storage/kkm_last_doc_name [21:42:40]save OK [21:42:40]Clear old archive folders... [21:42:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:42:40]tlvbuf is 00C836E0 [21:42:40]SAM_PROTO_ClearQueue [21:42:40]wFMCommunicate request_size=4 [21:42:40]MH_SAM_APDU [21:42:40]CAPDU: 80 09 00 00 [21:42:40]Write to MH i2c: E2 08 00 5C 17 80 09 00 00 00 00 00 00 E5 [21:42:40]Write i2c OK [21:42:40]MH_I2C_Read... [21:42:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:42:40]Read from MH i2c: E2 [21:42:40]MH_I2C_Read... [21:42:40]Read from MH i2c: E2 03 00 [21:42:40]MH_I2C_Read... [21:42:40]Read from MH i2c: E2 03 00 5C 17 00 90 00 E7 [21:42:40]RAPDU: 90 00 [21:42:40]wFMCommunicate OK [21:42:40]SAM_PROTO_ClearQueue done [21:42:40]KKMCreateOFDPacket [21:42:40]OFDProtocolAddRootSTLVToBuf [21:42:40]FM_MakeSignedData [21:42:40]FM_MakeSignedData [21:42:40]SAM_PROTO_SignData [21:42:40]wFMCommunicate request_size=4 [21:42:40]MH_SAM_APDU [21:42:40]CAPDU: 80 0D 01 02 [21:42:40]Write to MH i2c: E2 08 00 5D 17 80 0D 01 02 00 00 00 00 ED [21:42:40]Write i2c OK [21:42:40]MH_I2C_Read... [21:42:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:42:40]Read from MH i2c: E2 [21:42:40]MH_I2C_Read... [21:42:40]Read from MH i2c: E2 03 00 [21:42:40]MH_I2C_Read... [21:42:40]Read from MH i2c: E2 03 00 5D 17 00 90 00 E8 [21:42:40]RAPDU: 90 00 [21:42:40]wFMCommunicate OK [21:42:40]wFMCommunicate request_size=255 [21:42:40]MH_SAM_APDU [21:42:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 02 00 00 F4 03 04 00 50 79 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 73 79 03 00 35 04 06 00 46 [21:42:40]Write to MH i2c: E2 02 01 5E 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 02 00 00 F4 03 04 00 50 79 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 73 79 03 00 35 04 06 00 46 00 00 E9 [21:42:40]Write i2c OK [21:42:40]MH_I2C_Read... [21:42:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:42:40]Read from MH i2c: E2 [21:42:40]MH_I2C_Read... [21:42:40]Read from MH i2c: E2 03 00 [21:42:40]MH_I2C_Read... [21:42:40]Read from MH i2c: E2 03 00 5E 17 00 90 00 E9 [21:42:40]RAPDU: 90 00 [21:42:40]wFMCommunicate OK [21:42:40]wFMCommunicate request_size=10 [21:42:40]MH_SAM_APDU [21:42:40]CAPDU: 80 0D 02 02 05 4C D2 26 74 1D [21:42:40]Write to MH i2c: E2 0D 00 5F 17 80 0D 02 02 05 00 4C D2 26 74 1D 00 00 CF [21:42:40]Write i2c OK [21:42:40]MH_I2C_Read... [21:42:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:42:40]Read from MH i2c: E2 [21:42:40]MH_I2C_Read... [21:42:40]Read from MH i2c: E2 03 00 [21:42:40]MH_I2C_Read... [21:42:40]Read from MH i2c: E2 03 00 5F 17 00 90 00 EA [21:42:40]RAPDU: 90 00 [21:42:40]wFMCommunicate OK [21:42:40]wFMCommunicate request_size=4 [21:42:40]MH_SAM_APDU [21:42:40]CAPDU: 80 0D 03 02 [21:42:40]Write to MH i2c: E2 08 00 60 17 80 0D 03 02 00 00 00 00 F2 [21:42:40]Write i2c OK [21:42:40]MH_I2C_Read... [21:42:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:42:40]Read from MH i2c: E2 [21:42:40]MH_I2C_Read... [21:42:40]Read from MH i2c: E2 0B 00 [21:42:40]MH_I2C_Read... [21:42:40]Read from MH i2c: E2 0B 00 60 17 00 D9 3C 2A 0E 2F E2 2F C9 90 00 49 [21:42:40]RAPDU: D9 3C 2A 0E 2F E2 2F C9 90 00 [21:42:40]wFMCommunicate OK [21:42:40]SAM_PROTO_SignData done [21:42:40]FM_MakeSignedData done [21:42:40]CreateOFDProtocolMessage [21:42:40]wFMCommunicate request_size=4 [21:42:40]MH_SAM_APDU [21:42:40]CAPDU: 80 11 00 00 [21:42:40]Write to MH i2c: E2 08 00 61 17 80 11 00 00 00 00 00 00 F2 [21:42:40]Write i2c OK [21:42:40]MH_I2C_Read... [21:42:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:42:40]Read from MH i2c: E2 [21:42:40]MH_I2C_Read... [21:42:40]Read from MH i2c: E2 17 00 [21:42:40]MH_I2C_Read... [21:42:40]Read from MH i2c: E2 17 00 61 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 49 [21:42:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:42:40]wFMCommunicate OK [21:42:40]CreateOFDProtocolMessage done [21:42:40]OFDSenderStorePacket 227699 [21:42:40]StoreOFDPacket docnum=227699 [21:42:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 EC 16 07 01 0A 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 02 00 00 F4 03 04 00 50 79 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 73 79 03 00 35 04 06 00 46 4C D2 26 74 1D D9 3C 2A 0E 2F E2 2F C9 [21:42:40]CheckFolder [21:42:40]dirname=/storage/ofd_packets [21:42:40]CheckFolder done [21:42:40]ProducePacketName [21:42:40]name=ofd_packets/00227699 [21:42:40]NVStorageSaveData ofd_packets/00227699 [21:42:40]File name is /storage/ofd_packets/00227699 [21:42:40]Write 301 bytes [21:42:40]NVStorageSaveData done [21:42:40]OFDSenderStorePacket done [21:42:40]KKMCreateOFDPacket done [21:42:40]NVStorageSaveData kkm_last_timestamp [21:42:40]File name is /storage/kkm_last_timestamp [21:42:40]Write 4 bytes [21:42:40]NVStorageSaveData done [21:42:40]ExternCall_PrintAddStr [21:42:40]wPrintStart [21:42:40]Write to MH i2c: 01 00 00 62 17 79 [21:42:40]Write i2c OK [21:42:40]MH_I2C_Read... [21:42:40]Read from MH i2c: 01 [21:42:40]MH_I2C_Read... [21:42:40]Read from MH i2c: 01 07 00 [21:42:40]MH_I2C_Read... [21:42:40]Read from MH i2c: 01 07 00 62 17 00 00 00 00 00 FF 0F 8E [21:42:40]RasterBufferAndPrint [21:42:40]line Счет N : (1)1963362 [21:42:40]line ИНН: 02508201610067 [21:42:40]line Контрольно-Кассовый Чек [21:42:40]line ПРОДАЖА [21:42:40]line ТРК (МРК, ГНК) : 53 [21:42:40]line Товар: 2710124130 [21:42:40]line Аи-92-К-5 [21:42:40]line 5.540 * 66.90 [21:42:40]line = 370.63 [21:42:40]line НДС 12% НСП 1% [21:42:40]line > о реализуемом товаре [21:42:40]line ОКРУГЛЕНИЕ: -0.63 [21:42:40]line ИТОГО: 370.00 [21:42:40]line Внесено: 370.00 [21:42:40]line СДАЧА: 0.00 [21:42:40]line НСП 1% : 3.28 [21:42:40]line НДС 12% : 39.36 [21:42:40]line Наличными: 370.00 [21:42:40]line Безнал.: 0.00 [21:42:40]line Место: АЗС № 133 "Партнер Нефть" [21:42:40]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [21:42:40]line СНО: Общий режим [21:42:40]line Чек 547 20.10.2024 21:42 [21:42:40]line Смена: 533 ФФД: 1.0 [21:42:40]line ЗНМ: 0300000091 [21:42:40]line РНМ: 0000000000091685 [21:42:40]line Версия ККМ: 001 [21:42:40]line ФМ: 0000000000871839 [21:42:40]line ФД: 227699 [21:42:40]line ФПД: 77295757194269 [21:42:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T214240&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227699&fm=77295757194269&tin=02508201610067®Number=0000000000091685&sum=37000 [21:42:40]written 0, free lines is 4095 [21:42:40]OFD Sender: Processing packet 227699 [packets to send 38, broken 37] [21:42:40]ProducePacketName [21:42:40]name=ofd_packets/00227699 [21:42:40]OFD Sender: To server: pG, [21:42:40]CommunicateWithHost lk.salyk.kg:30040 [21:42:40]ConnectInit lk.salyk.kg [21:42:40]Connected sock=10 [21:42: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 33 39 0F 01 00 00 EC 16 07 01 0A 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 02 00 00 F4 03 04 00 50 79 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 73 79 03 00 35 04 06 00 46 4C D2 26 74 1D D9 3C 2A 0E 2F E2 2F C9 [21:42: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 33 39 4F 00 00 00 FD F4 47 00 6C 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 73 79 03 00 F4 03 04 00 4D 24 15 67 B6 04 01 00 00 88 3E 7C 85 35 53 A6 AD [21:42:41]CommunicateWithHost err = 0 [21:42:41]CheckOFDResponse [21:42:41]1017 (14) - 77093643461234 [21:42:41]1041 (16) - 0000000000871839 [21:42:41]1040 (4) - 227699 [21:42:41]1012 (4) - 20.10.2024 15:39 [21:42:41]1206 (1) - 0 [21:42:41]OFD Sender: Remove packet 227699 [21:42:41]ProducePacketName [21:42:41]name=ofd_packets/00227699 [21:42:41]NVStorageDeleteData [21:42:41]Write to MH i2c: 01 00 00 8C 17 A3 [21:42:41]Write i2c OK [21:42:41]MH_I2C_Read... [21:42:41]Read from MH i2c: 01 [21:42:41]MH_I2C_Read... [21:42:41]Read from MH i2c: 01 07 00 [21:42:41]MH_I2C_Read... [21:42:41]Read from MH i2c: 01 07 00 8C 17 00 00 00 00 00 A9 0C 5F [21:42:41]RasterBufferAndPrint [21:42:41]line [21:42:41]line [21:42:41]line [21:42:41]line [21:42:41]line [21:42:41]written 0, free lines is 3245 [21:42:41]MH_Cut [21:42:41]Write to MH i2c: D1 01 00 93 17 01 7C [21:42:41]Write i2c OK [21:42:41]MH_I2C_Read... [21:42:41]Read from MH i2c: D1 [21:42:41]MH_I2C_Read... [21:42:41]Read from MH i2c: D1 01 00 [21:42:41]MH_I2C_Read... [21:42:41]Read from MH i2c: D1 01 00 93 17 00 7B [21:42:41]Write to MH i2c: 01 00 00 94 17 AB [21:42:41]Write i2c OK [21:42:41]MH_I2C_Read... [21:42:41]OFD Sender: No OFD packet to send [21:42:42]*** Cut start [21:42:42]*** Partial cut [21:42:42]*** CUTSNS_PIN = 1 [21:42:42]*** CUTSNS_PIN = 0 [21:42:42]*** Brake cut motor [21:42:42]Read from MH i2c: 01 [21:42:42]MH_I2C_Read... [21:42:42]*** Stop cut motor [21:42:42]*** Cut end [21:42:42]Read from MH i2c: 01 07 00 [21:42:42]MH_I2C_Read... [21:42:42]Read from MH i2c: 01 07 00 94 17 00 00 00 00 00 FF 0F C0 [21:42:42]process_action close_receipt done [21:42:42]requested_data is exist [21:42:42]produce_requested_data [21:42:42]requested_item fm.sn is exist - process it [21:42:42]wFMCommunicate request_size=4 [21:42:42]MH_SAM_APDU [21:42:42]CAPDU: 80 11 00 00 [21:42:42]Write to MH i2c: E2 08 00 95 17 80 11 00 00 00 00 00 00 26 [21:42:42]Write i2c OK [21:42:42]MH_I2C_Read... [21:42:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:42:42]Read from MH i2c: E2 [21:42:42]MH_I2C_Read... [21:42:42]Read from MH i2c: E2 17 00 [21:42:42]MH_I2C_Read... [21:42:43]Read from MH i2c: E2 17 00 95 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 7D [21:42:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:42:43]wFMCommunicate OK [21:42:43]requested_item fd.num is exist - process it [21:42:43]SAM_PROTO_GetFieldsCounters [21:42:43]wFMCommunicate request_size=4 [21:42:43]MH_SAM_APDU [21:42:43]CAPDU: 80 13 00 00 [21:42:43]Write to MH i2c: E2 08 00 96 17 80 13 00 00 00 00 00 00 29 [21:42:43]Write i2c OK [21:42:43]MH_I2C_Read... [21:42:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:42:43]Read from MH i2c: E2 [21:42:43]MH_I2C_Read... [21:42:43]Read from MH i2c: E2 62 00 [21:42:43]MH_I2C_Read... [21:42:43]Read from MH i2c: E2 62 00 96 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 73 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 23 02 00 00 5E 04 04 00 23 02 00 00 57 04 04 00 24 02 00 00 19 04 04 00 00 00 00 00 90 00 C7 [21:42: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 73 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 23 02 00 00 5E 04 04 00 23 02 00 00 57 04 04 00 24 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:42:43]wFMCommunicate OK [21:42:43]SAM_PROTO_GetFieldsCounters done [21:42:43]requested_item shift.num is exist - process it [21:42:43]requested_item shift.opened is exist - process it [21:42:43]req_shift_opened [21:42:43]FM_GetShiftState [21:42:43]SAM_PROTO_GetShiftState [21:42:43]wFMCommunicate request_size=4 [21:42:43]MH_SAM_APDU [21:42:43]CAPDU: 80 13 01 00 [21:42:43]Write to MH i2c: E2 08 00 97 17 80 13 01 00 00 00 00 00 2B [21:42:43]Write i2c OK [21:42:43]MH_I2C_Read... [21:42:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:42:43]Read from MH i2c: E2 [21:42:43]MH_I2C_Read... [21:42:43]Read from MH i2c: E2 0E 00 [21:42:43]MH_I2C_Read... [21:42:43]Read from MH i2c: E2 0E 00 97 17 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 45 [21:42:43]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:42:43]wFMCommunicate OK [21:42:43]SAM_PROTO_GetShiftState done [21:42:43]FM_GetShiftState done [21:42:43]req_shift_opened done [21:42:43]requested_item shift.open_date is exist - process it [21:42:43]req_shift_open_date [21:42:43]req_shift_open_date done [21:42:43]produce_requested_data done [21:42:43]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227699,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [21:42:43]process_action_free close_receipt [21:42:43]json_value_free [21:42:43]json_value_free done [21:42:43]process_json_proto returns [21:42:43]Send response to host [21:42:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227699,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [21:42:43]free response buf [21:42:43]execute_script done [21:42:43]execute_script returns [21:42:43]free content buf [21:42:43]Sock 7.Close socket [21:42:43]Sock 7.Thread stoped [21:42:46]OFD Sender: No OFD packet to send [21:42:51]OFD Sender: No OFD packet to send [21:42:56]OFD Sender: No OFD packet to send [21:43:01]OFD Sender: No OFD packet to send [21:43:06]OFD Sender: No OFD packet to send [21:43:11]OFD Sender: No OFD packet to send [21:43:16]OFD Sender: No OFD packet to send [21:43:21]OFD Sender: No OFD packet to send [21:43:26]OFD Sender: No OFD packet to send [21:43:31]OFD Sender: No OFD packet to send [21:43:36]OFD Sender: No OFD packet to send [21:43:41]OFD Sender: No OFD packet to send [21:43:46]OFD Sender: No OFD packet to send [21:43:51]OFD Sender: No OFD packet to send [21:43:56]OFD Sender: No OFD packet to send [21:44:01]OFD Sender: No OFD packet to send [21:44:06]OFD Sender: No OFD packet to send [21:44:11]OFD Sender: No OFD packet to send [21:44:16]OFD Sender: No OFD packet to send [21:44:21]OFD Sender: No OFD packet to send [21:44:26]OFD Sender: No OFD packet to send [21:44:31]OFD Sender: No OFD packet to send [21:44:36]OFD Sender: No OFD packet to send [21:44:41]OFD Sender: No OFD packet to send [21:44:46]OFD Sender: No OFD packet to send [21:44:51]OFD Sender: No OFD packet to send [21:44:56]OFD Sender: No OFD packet to send [21:45:01]OFD Sender: No OFD packet to send [21:45:06]OFD Sender: No OFD packet to send [21:45:11]OFD Sender: No OFD packet to send [21:45:16]OFD Sender: No OFD packet to send [21:45:21]OFD Sender: No OFD packet to send [21:45:26]OFD Sender: No OFD packet to send [21:45:31]OFD Sender: No OFD packet to send [21:45:36]OFD Sender: No OFD packet to send [21:45:41]OFD Sender: No OFD packet to send [21:45:46]OFD Sender: No OFD packet to send [21:45:51]OFD Sender: No OFD packet to send [21:45:56]OFD Sender: No OFD packet to send [21:46:01]OFD Sender: No OFD packet to send [21:46:06]OFD Sender: No OFD packet to send [21:46:11]OFD Sender: No OFD packet to send [21:46:16]OFD Sender: No OFD packet to send [21:46:21]OFD Sender: No OFD packet to send [21:46:26]OFD Sender: No OFD packet to send [21:46:31]OFD Sender: No OFD packet to send [21:46:36]OFD Sender: No OFD packet to send [21:46:41]OFD Sender: No OFD packet to send [21:46:46]OFD Sender: No OFD packet to send [21:46:51]OFD Sender: No OFD packet to send [21:46:56]OFD Sender: No OFD packet to send [21:47:01]OFD Sender: No OFD packet to send [21:47:06]OFD Sender: No OFD packet to send [21:47:11]OFD Sender: No OFD packet to send [21:47:16]OFD Sender: No OFD packet to send [21:47:17]accept exits with 9 [21:47:17]New connection [21:47:17]New thread 3066809700 created [21:47:17]Thread 3066666340 joined [21:47:17]Waiting for new connection... [21:47:17] Sock 9.Parse request [21:47:17]Sock 9.Check first char [21:47:17]Sock 9.First char is OK [21:47:17]request: POST /json_proto HTTP/1.0 [21:47:17]Method: POST [21:47:17]URL: /json_proto [21:47:17]Method is POST - this is cgi request [21:47:17]url: /json_proto [21:47:17]query_string will be loaded in cgi processing [21:47:17]execute_cgi json_proto POST (null) [21:47:17]execute_cgi path=json_proto method=POST [21:47:17]POST find Content-Length [21:47:17]Host: 172.17.44.195:8080 [21:47:17]Content-Length: 683 [21:47:17]Content-Type: application/json [21:47:17] [21:47:17]POST finish read [21:47:17]Found Content-Length = 683 [21:47:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963364", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:47:17]execute_script... [21:47: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)1963364", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:47:17]POST & json_proto [21:47:17]process_json_proto [21:47:17]json parsed OK: [21:47:17]protocol is kg_v1.0 [21:47:17]action value=close_receipt [21:47:17]process_action close_receipt [21:47:17]cmd_close_receipt [21:47:17]MH_GetDate [21:47:17]Write to MH i2c: F0 00 00 98 17 9E [21:47:17]Write i2c OK [21:47:17]MH_I2C_Read... [21:47:17]Read from MH i2c: F0 [21:47:17]MH_I2C_Read... [21:47:17]Read from MH i2c: F0 09 00 [21:47:17]MH_I2C_Read... [21:47:17]Read from MH i2c: F0 09 00 98 17 00 67 7A 15 67 82 C9 CF 66 84 [21:47:17]GetLastDocTimeStamp 1729460560 [21:47:17]current date 1729460839 [21:47:17]FM_GetShiftState [21:47:17]SAM_PROTO_GetShiftState [21:47:17]wFMCommunicate request_size=4 [21:47:17]MH_SAM_APDU [21:47:17]CAPDU: 80 13 01 00 [21:47:17]Write to MH i2c: E2 08 00 99 17 80 13 01 00 00 00 00 00 2D [21:47:17]Write i2c OK [21:47:17]MH_I2C_Read... [21:47:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:47:17]Read from MH i2c: E2 [21:47:17]MH_I2C_Read... [21:47:17]Read from MH i2c: E2 0E 00 [21:47:17]MH_I2C_Read... [21:47:17]Read from MH i2c: E2 0E 00 99 17 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 47 [21:47:17]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:47:17]wFMCommunicate OK [21:47:17]SAM_PROTO_GetShiftState done [21:47:17]FM_GetShiftState done [21:47:17]opened in 1729383750 [21:47:17]opened+sec_in_day 1729470150 [21:47:17]quantity*price = 100015 [21:47:17]sum+1 = 100017 [21:47:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 548 20.10.2024 21:47 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227700 ФПД: 75826497914491 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T214719&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227700&fm=75826497914491&tin=02508201610067®Number=0000000000091685&sum=100000 [21:47:18]StoreToDocumentArchive [21:47:18]shift 533 fd 227700 [21:47:18]save to /storage/0533/doc_00227700 [21:47:18]save last doc name /storage/0533/doc_00227700 to /storage/kkm_last_doc_name [21:47:18]save OK [21:47:18]Clear old archive folders... [21:47:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:47:18]tlvbuf is 00CC35C0 [21:47:18]SAM_PROTO_ClearQueue [21:47:18]wFMCommunicate request_size=4 [21:47:18]MH_SAM_APDU [21:47:18]CAPDU: 80 09 00 00 [21:47:18]Write to MH i2c: E2 08 00 A6 17 80 09 00 00 00 00 00 00 2F [21:47:18]Write i2c OK [21:47:18]MH_I2C_Read... [21:47:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:47:18]Read from MH i2c: E2 [21:47:18]MH_I2C_Read... [21:47:18]Read from MH i2c: E2 03 00 [21:47:18]MH_I2C_Read... [21:47:18]Read from MH i2c: E2 03 00 A6 17 00 90 00 31 [21:47:18]RAPDU: 90 00 [21:47:18]wFMCommunicate OK [21:47:18]SAM_PROTO_ClearQueue done [21:47:18]KKMCreateOFDPacket [21:47:18]OFDProtocolAddRootSTLVToBuf [21:47:18]FM_MakeSignedData [21:47:18]FM_MakeSignedData [21:47:18]SAM_PROTO_SignData [21:47:18]wFMCommunicate request_size=4 [21:47:18]MH_SAM_APDU [21:47:18]CAPDU: 80 0D 01 02 [21:47:18]Write to MH i2c: E2 08 00 A7 17 80 0D 01 02 00 00 00 00 37 [21:47:18]Write i2c OK [21:47:18]MH_I2C_Read... [21:47:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:47:18]Read from MH i2c: E2 [21:47:18]MH_I2C_Read... [21:47:18]Read from MH i2c: E2 03 00 [21:47:18]MH_I2C_Read... [21:47:18]Read from MH i2c: E2 03 00 A7 17 00 90 00 32 [21:47:18]RAPDU: 90 00 [21:47:18]wFMCommunicate OK [21:47:18]wFMCommunicate request_size=255 [21:47:18]MH_SAM_APDU [21:47:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 02 00 00 F4 03 04 00 67 7A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 74 79 03 00 35 04 06 00 44 [21:47:18]Write to MH i2c: E2 02 01 A8 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 02 00 00 F4 03 04 00 67 7A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 74 79 03 00 35 04 06 00 44 00 00 96 [21:47:18]Write i2c OK [21:47:18]MH_I2C_Read... [21:47:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:47:19]Read from MH i2c: E2 [21:47:19]MH_I2C_Read... [21:47:19]Read from MH i2c: E2 03 00 [21:47:19]MH_I2C_Read... [21:47:19]Read from MH i2c: E2 03 00 A8 17 00 90 00 33 [21:47:19]RAPDU: 90 00 [21:47:19]wFMCommunicate OK [21:47:19]wFMCommunicate request_size=10 [21:47:19]MH_SAM_APDU [21:47:19]CAPDU: 80 0D 02 02 05 F6 BB 79 06 7B [21:47:19]Write to MH i2c: E2 0D 00 A9 17 80 0D 02 02 05 00 F6 BB 79 06 7B 00 00 EF [21:47:19]Write i2c OK [21:47:19]MH_I2C_Read... [21:47:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:47:19]Read from MH i2c: E2 [21:47:19]MH_I2C_Read... [21:47:19]Read from MH i2c: E2 03 00 [21:47:19]MH_I2C_Read... [21:47:19]Read from MH i2c: E2 03 00 A9 17 00 90 00 34 [21:47:19]RAPDU: 90 00 [21:47:19]wFMCommunicate OK [21:47:19]wFMCommunicate request_size=4 [21:47:19]MH_SAM_APDU [21:47:19]CAPDU: 80 0D 03 02 [21:47:19]Write to MH i2c: E2 08 00 AA 17 80 0D 03 02 00 00 00 00 3C [21:47:19]Write i2c OK [21:47:19]MH_I2C_Read... [21:47:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:47:19]Read from MH i2c: E2 [21:47:19]MH_I2C_Read... [21:47:19]Read from MH i2c: E2 0B 00 [21:47:19]MH_I2C_Read... [21:47:19]Read from MH i2c: E2 0B 00 AA 17 00 5A 47 19 84 EA BE 4E EA 90 00 5B [21:47:19]RAPDU: 5A 47 19 84 EA BE 4E EA 90 00 [21:47:19]wFMCommunicate OK [21:47:19]SAM_PROTO_SignData done [21:47:19]FM_MakeSignedData done [21:47:19]CreateOFDProtocolMessage [21:47:19]wFMCommunicate request_size=4 [21:47:19]MH_SAM_APDU [21:47:19]CAPDU: 80 11 00 00 [21:47:19]Write to MH i2c: E2 08 00 AB 17 80 11 00 00 00 00 00 00 3C [21:47:19]Write i2c OK [21:47:19]MH_I2C_Read... [21:47:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:47:19]Read from MH i2c: E2 [21:47:19]MH_I2C_Read... [21:47:19]Read from MH i2c: E2 17 00 [21:47:19]MH_I2C_Read... [21:47:19]Read from MH i2c: E2 17 00 AB 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 93 [21:47:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:47:19]wFMCommunicate OK [21:47:19]CreateOFDProtocolMessage done [21:47:19]OFDSenderStorePacket 227700 [21:47:19]StoreOFDPacket docnum=227700 [21:47:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 EA E3 07 01 10 FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 02 00 00 F4 03 04 00 67 7A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 74 79 03 00 35 04 06 00 44 F6 BB 79 06 7B 5A 47 19 84 EA BE 4E EA [21:47:19]CheckFolder [21:47:19]dirname=/storage/ofd_packets [21:47:19]CheckFolder done [21:47:19]ProducePacketName [21:47:19]name=ofd_packets/00227700 [21:47:19]NVStorageSaveData ofd_packets/00227700 [21:47:19]File name is /storage/ofd_packets/00227700 [21:47:19]Write 301 bytes [21:47:19]NVStorageSaveData done [21:47:19]OFDSenderStorePacket done [21:47:19]KKMCreateOFDPacket done [21:47:19]NVStorageSaveData kkm_last_timestamp [21:47:19]File name is /storage/kkm_last_timestamp [21:47:19]Write 4 bytes [21:47:19]NVStorageSaveData done [21:47:19]ExternCall_PrintAddStr [21:47:19]wPrintStart [21:47:19]Write to MH i2c: 01 00 00 AC 17 C3 [21:47:19]Write i2c OK [21:47:19]MH_I2C_Read... [21:47:19]Read from MH i2c: 01 [21:47:19]MH_I2C_Read... [21:47:19]Read from MH i2c: 01 07 00 [21:47:19]MH_I2C_Read... [21:47:19]Read from MH i2c: 01 07 00 AC 17 00 00 00 00 00 FF 0F D8 [21:47:19]RasterBufferAndPrint [21:47:19]line Счет N : (1)1963364 [21:47:19]line ИНН: 02508201610067 [21:47:19]line Контрольно-Кассовый Чек [21:47:19]line ПРОДАЖА [21:47:19]line ТРК (МРК, ГНК) : 53 [21:47:19]line Товар: 2710124130 [21:47:19]line Аи-92-К-5 [21:47:19]line 14.950 * 66.90 [21:47:19]line = 1000.16 [21:47:19]line НДС 12% НСП 1% [21:47:19]line > о реализуемом товаре [21:47:19]line ОКРУГЛЕНИЕ: -0.16 [21:47:19]line ИТОГО: 1000.00 [21:47:19]line Внесено: 1000.00 [21:47:19]line СДАЧА: 0.00 [21:47:19]line НСП 1% : 8.85 [21:47:19]line НДС 12% : 106.21 [21:47:19]line Наличными: 1000.00 [21:47:19]line Безнал.: 0.00 [21:47:19]line Место: АЗС № 133 "Партнер Нефть" [21:47:19]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [21:47:19]line СНО: Общий режим [21:47:19]line Чек 548 20.10.2024 21:47 [21:47:19]line Смена: 533 ФФД: 1.0 [21:47:19]line ЗНМ: 0300000091 [21:47:19]line РНМ: 0000000000091685 [21:47:19]line Версия ККМ: 001 [21:47:19]line ФМ: 0000000000871839 [21:47:19]line ФД: 227700 [21:47:19]line ФПД: 75826497914491 [21:47:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T214719&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227700&fm=75826497914491&tin=02508201610067®Number=0000000000091685&sum=100000 [21:47:19]written 0, free lines is 4095 [21:47:19]OFD Sender: Processing packet 227700 [packets to send 38, broken 37] [21:47:19]ProducePacketName [21:47:19]name=ofd_packets/00227700 [21:47:19]OFD Sender: To server: pG, [21:47:19]CommunicateWithHost lk.salyk.kg:30040 [21:47:19]ConnectInit lk.salyk.kg [21:47:19]Connected sock=10 [21:47: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 33 39 0F 01 00 00 EA E3 07 01 10 FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 02 00 00 F4 03 04 00 67 7A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 74 79 03 00 35 04 06 00 44 F6 BB 79 06 7B 5A 47 19 84 EA BE 4E EA [21:47: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 33 39 4F 00 00 00 37 B0 47 00 74 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 74 79 03 00 F4 03 04 00 64 25 15 67 B6 04 01 00 00 B3 2F 8F 5F 86 85 33 F7 [21:47:20]CommunicateWithHost err = 0 [21:47:20]CheckOFDResponse [21:47:20]1017 (14) - 77093643461234 [21:47:20]1041 (16) - 0000000000871839 [21:47:20]1040 (4) - 227700 [21:47:20]1012 (4) - 20.10.2024 15:44 [21:47:20]1206 (1) - 0 [21:47:20]OFD Sender: Remove packet 227700 [21:47:20]ProducePacketName [21:47:20]name=ofd_packets/00227700 [21:47:20]NVStorageDeleteData [21:47:20]Write to MH i2c: 01 00 00 D6 17 ED [21:47:20]Write i2c OK [21:47:20]MH_I2C_Read... [21:47:20]Read from MH i2c: 01 [21:47:20]MH_I2C_Read... [21:47:20]Read from MH i2c: 01 07 00 [21:47:20]MH_I2C_Read... [21:47:20]Read from MH i2c: 01 07 00 D6 17 00 00 00 00 00 A2 0C A2 [21:47:20]RasterBufferAndPrint [21:47:20]line [21:47:20]line [21:47:20]line [21:47:20]line [21:47:20]line [21:47:20]written 0, free lines is 3239 [21:47:20]MH_Cut [21:47:20]Write to MH i2c: D1 01 00 DD 17 01 C6 [21:47:20]Write i2c OK [21:47:20]MH_I2C_Read... [21:47:20]Read from MH i2c: D1 [21:47:20]MH_I2C_Read... [21:47:20]Read from MH i2c: D1 01 00 [21:47:20]MH_I2C_Read... [21:47:20]Read from MH i2c: D1 01 00 DD 17 00 C5 [21:47:20]Write to MH i2c: 01 00 00 DE 17 F5 [21:47:20]Write i2c OK [21:47:20]MH_I2C_Read... [21:47:20]OFD Sender: No OFD packet to send [21:47:21]*** Cut start [21:47:21]*** Partial cut [21:47:21]*** CUTSNS_PIN = 1 [21:47:21]*** CUTSNS_PIN = 0 [21:47:21]*** Brake cut motor [21:47:21]Read from MH i2c: 01 [21:47:21]MH_I2C_Read... [21:47:21]*** Stop cut motor [21:47:21]*** Cut end [21:47:21]Read from MH i2c: 01 07 00 [21:47:21]MH_I2C_Read... [21:47:21]Read from MH i2c: 01 07 00 DE 17 00 00 00 00 00 FF 0F 0A [21:47:21]process_action close_receipt done [21:47:21]requested_data is exist [21:47:21]produce_requested_data [21:47:21]requested_item fm.sn is exist - process it [21:47:21]wFMCommunicate request_size=4 [21:47:21]MH_SAM_APDU [21:47:21]CAPDU: 80 11 00 00 [21:47:21]Write to MH i2c: E2 08 00 DF 17 80 11 00 00 00 00 00 00 70 [21:47:21]Write i2c OK [21:47:21]MH_I2C_Read... [21:47:21]Read from MH i2c: E2 [21:47:21]MH_I2C_Read... [21:47:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:47:21]Read from MH i2c: E2 17 00 [21:47:21]MH_I2C_Read... [21:47:21]Read from MH i2c: E2 17 00 DF 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C7 [21:47:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:47:21]wFMCommunicate OK [21:47:21]requested_item fd.num is exist - process it [21:47:21]SAM_PROTO_GetFieldsCounters [21:47:21]wFMCommunicate request_size=4 [21:47:21]MH_SAM_APDU [21:47:21]CAPDU: 80 13 00 00 [21:47:21]Write to MH i2c: E2 08 00 E0 17 80 13 00 00 00 00 00 00 73 [21:47:21]Write i2c OK [21:47:21]MH_I2C_Read... [21:47:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:47:21]Read from MH i2c: E2 [21:47:21]MH_I2C_Read... [21:47:21]Read from MH i2c: E2 62 00 [21:47:21]MH_I2C_Read... [21:47:21]Read from MH i2c: E2 62 00 E0 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 74 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 24 02 00 00 5E 04 04 00 24 02 00 00 57 04 04 00 25 02 00 00 19 04 04 00 00 00 00 00 90 00 15 [21:47: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 74 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 24 02 00 00 5E 04 04 00 24 02 00 00 57 04 04 00 25 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:47:21]wFMCommunicate OK [21:47:21]SAM_PROTO_GetFieldsCounters done [21:47:21]requested_item shift.num is exist - process it [21:47:21]requested_item shift.opened is exist - process it [21:47:21]req_shift_opened [21:47:21]FM_GetShiftState [21:47:21]SAM_PROTO_GetShiftState [21:47:21]wFMCommunicate request_size=4 [21:47:21]MH_SAM_APDU [21:47:21]CAPDU: 80 13 01 00 [21:47:21]Write to MH i2c: E2 08 00 E1 17 80 13 01 00 00 00 00 00 75 [21:47:21]Write i2c OK [21:47:21]MH_I2C_Read... [21:47:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:47:22]Read from MH i2c: E2 [21:47:22]MH_I2C_Read... [21:47:22]Read from MH i2c: E2 0E 00 [21:47:22]MH_I2C_Read... [21:47:22]Read from MH i2c: E2 0E 00 E1 17 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 8F [21:47:22]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:47:22]wFMCommunicate OK [21:47:22]SAM_PROTO_GetShiftState done [21:47:22]FM_GetShiftState done [21:47:22]req_shift_opened done [21:47:22]requested_item shift.open_date is exist - process it [21:47:22]req_shift_open_date [21:47:22]req_shift_open_date done [21:47:22]produce_requested_data done [21:47:22]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227700,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [21:47:22]process_action_free close_receipt [21:47:22]json_value_free [21:47:22]json_value_free done [21:47:22]process_json_proto returns [21:47:22]Send response to host [21:47:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227700,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [21:47:22]free response buf [21:47:22]execute_script done [21:47:22]execute_script returns [21:47:22]free content buf [21:47:22]Sock 9.Close socket [21:47:22]Sock 9.Thread stoped [21:47:25]OFD Sender: No OFD packet to send [21:47:30]OFD Sender: No OFD packet to send [21:47:35]OFD Sender: No OFD packet to send [21:47:40]OFD Sender: No OFD packet to send [21:47:45]OFD Sender: No OFD packet to send [21:47:50]OFD Sender: No OFD packet to send [21:47:55]OFD Sender: No OFD packet to send [21:48:00]OFD Sender: No OFD packet to send [21:48:05]OFD Sender: No OFD packet to send [21:48:10]OFD Sender: No OFD packet to send [21:48:11]accept exits with 7 [21:48:11]New connection [21:48:11]New thread 3066666340 created [21:48:11]Thread 3066809700 joined [21:48:11]Waiting for new connection... [21:48:11] Sock 7.Parse request [21:48:11]Sock 7.Check first char [21:48:11]Sock 7.First char is OK [21:48:11]request: POST /json_proto HTTP/1.0 [21:48:11]Method: POST [21:48:11]URL: /json_proto [21:48:11]Method is POST - this is cgi request [21:48:11]url: /json_proto [21:48:11]query_string will be loaded in cgi processing [21:48:11]execute_cgi json_proto POST (null) [21:48:11]execute_cgi path=json_proto method=POST [21:48:11]POST find Content-Length [21:48:11]Host: 172.17.44.195:8080 [21:48:11]Content-Length: 678 [21:48:11]Content-Type: application/json [21:48:11] [21:48:11]POST finish read [21:48:11]Found Content-Length = 678 [21:48:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963365", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.890, "sum" : 260.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 260.00, "total" : 260.00, "payments": [ { "type": 0, "sum" : 260.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:48:11]execute_script... [21: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)1963365", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.890, "sum" : 260.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 260.00, "total" : 260.00, "payments": [ { "type": 0, "sum" : 260.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:48:11]POST & json_proto [21:48:11]process_json_proto [21:48:11]json parsed OK: [21:48:11]protocol is kg_v1.0 [21:48:11]action value=close_receipt [21:48:11]process_action close_receipt [21:48:11]cmd_close_receipt [21:48:11]MH_GetDate [21:48:11]Write to MH i2c: F0 00 00 E2 17 E8 [21:48:11]Write i2c OK [21:48:11]MH_I2C_Read... [21:48:11]Read from MH i2c: F0 [21:48:11]MH_I2C_Read... [21:48:11]Read from MH i2c: F0 09 00 [21:48:11]MH_I2C_Read... [21:48:11]Read from MH i2c: F0 09 00 E2 17 00 9C 7A 15 67 82 C9 CF 66 03 [21:48:11]GetLastDocTimeStamp 1729460839 [21:48:11]current date 1729460892 [21:48:11]FM_GetShiftState [21:48:11]SAM_PROTO_GetShiftState [21:48:11]wFMCommunicate request_size=4 [21:48:11]MH_SAM_APDU [21:48:11]CAPDU: 80 13 01 00 [21:48:11]Write to MH i2c: E2 08 00 E3 17 80 13 01 00 00 00 00 00 77 [21:48:11]Write i2c OK [21:48:11]MH_I2C_Read... [21:48:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:48:11]Read from MH i2c: E2 [21:48:11]MH_I2C_Read... [21:48:11]Read from MH i2c: E2 0E 00 [21:48:11]MH_I2C_Read... [21:48:11]Read from MH i2c: E2 0E 00 E3 17 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 91 [21:48:11]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:48:11]wFMCommunicate OK [21:48:11]SAM_PROTO_GetShiftState done [21:48:11]FM_GetShiftState done [21:48:11]opened in 1729383750 [21:48:11]opened+sec_in_day 1729470150 [21:48:11]quantity*price = 26024 [21:48:11]sum+1 = 26025 [21:48:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 260.00 Внесено: 260.00 СДАЧА: 0.00 НСП 1% : 2.30 НДС 12% : 27.64 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 549 20.10.2024 21:48 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227701 ФПД: 20681135385079 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T214812&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227701&fm=20681135385079&tin=02508201610067®Number=0000000000091685&sum=26000 [21:48:12]StoreToDocumentArchive [21:48:12]shift 533 fd 227701 [21:48:12]save to /storage/0533/doc_00227701 [21:48:12]save last doc name /storage/0533/doc_00227701 to /storage/kkm_last_doc_name [21:48:12]save OK [21:48:12]Clear old archive folders... [21:48:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:48:12]tlvbuf is 00CBF510 [21:48:12]SAM_PROTO_ClearQueue [21:48:12]wFMCommunicate request_size=4 [21:48:12]MH_SAM_APDU [21:48:12]CAPDU: 80 09 00 00 [21:48:12]Write to MH i2c: E2 08 00 F0 17 80 09 00 00 00 00 00 00 79 [21:48:12]Write i2c OK [21:48:12]MH_I2C_Read... [21:48:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:48:12]Read from MH i2c: E2 [21:48:12]MH_I2C_Read... [21:48:12]Read from MH i2c: E2 03 00 [21:48:12]MH_I2C_Read... [21:48:12]Read from MH i2c: E2 03 00 F0 17 00 90 00 7B [21:48:12]RAPDU: 90 00 [21:48:12]wFMCommunicate OK [21:48:12]SAM_PROTO_ClearQueue done [21:48:12]KKMCreateOFDPacket [21:48:12]OFDProtocolAddRootSTLVToBuf [21:48:12]FM_MakeSignedData [21:48:12]FM_MakeSignedData [21:48:12]SAM_PROTO_SignData [21:48:12]wFMCommunicate request_size=4 [21:48:12]MH_SAM_APDU [21:48:12]CAPDU: 80 0D 01 02 [21:48:12]Write to MH i2c: E2 08 00 F1 17 80 0D 01 02 00 00 00 00 81 [21:48:12]Write i2c OK [21:48:12]MH_I2C_Read... [21:48:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:48:12]Read from MH i2c: E2 [21:48:12]MH_I2C_Read... [21:48:12]Read from MH i2c: E2 03 00 [21:48:12]MH_I2C_Read... [21:48:12]Read from MH i2c: E2 03 00 F1 17 00 90 00 7C [21:48:12]RAPDU: 90 00 [21:48:12]wFMCommunicate OK [21:48:12]wFMCommunicate request_size=255 [21:48:12]MH_SAM_APDU [21: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 35 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 02 00 00 F4 03 04 00 9C 7A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 75 79 03 00 35 04 06 00 12 [21:48:12]Write to MH i2c: E2 02 01 F2 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 02 00 00 F4 03 04 00 9C 7A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 75 79 03 00 35 04 06 00 12 00 00 96 [21:48:12]Write i2c OK [21:48:12]MH_I2C_Read... [21:48:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:48:12]Read from MH i2c: E2 [21:48:12]MH_I2C_Read... [21:48:12]Read from MH i2c: E2 03 00 [21:48:12]MH_I2C_Read... [21:48:12]Read from MH i2c: E2 03 00 F2 17 00 90 00 7D [21:48:12]RAPDU: 90 00 [21:48:12]wFMCommunicate OK [21:48:12]wFMCommunicate request_size=10 [21:48:12]MH_SAM_APDU [21:48:12]CAPDU: 80 0D 02 02 05 CF 33 BA 69 F7 [21:48:12]Write to MH i2c: E2 0D 00 F3 17 80 0D 02 02 05 00 CF 33 BA 69 F7 00 00 AA [21:48:12]Write i2c OK [21:48:12]MH_I2C_Read... [21:48:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:48:12]Read from MH i2c: E2 [21:48:12]MH_I2C_Read... [21:48:12]Read from MH i2c: E2 03 00 [21:48:12]MH_I2C_Read... [21:48:12]Read from MH i2c: E2 03 00 F3 17 00 90 00 7E [21:48:12]RAPDU: 90 00 [21:48:12]wFMCommunicate OK [21:48:12]wFMCommunicate request_size=4 [21:48:12]MH_SAM_APDU [21:48:12]CAPDU: 80 0D 03 02 [21:48:12]Write to MH i2c: E2 08 00 F4 17 80 0D 03 02 00 00 00 00 86 [21:48:12]Write i2c OK [21:48:12]MH_I2C_Read... [21:48:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:48:12]Read from MH i2c: E2 [21:48:12]MH_I2C_Read... [21:48:12]Read from MH i2c: E2 0B 00 [21:48:12]MH_I2C_Read... [21:48:12]Read from MH i2c: E2 0B 00 F4 17 00 3F 67 E6 03 C4 9E D5 54 90 00 A1 [21:48:12]RAPDU: 3F 67 E6 03 C4 9E D5 54 90 00 [21:48:12]wFMCommunicate OK [21:48:12]SAM_PROTO_SignData done [21:48:12]FM_MakeSignedData done [21:48:12]CreateOFDProtocolMessage [21:48:12]wFMCommunicate request_size=4 [21:48:12]MH_SAM_APDU [21:48:12]CAPDU: 80 11 00 00 [21:48:12]Write to MH i2c: E2 08 00 F5 17 80 11 00 00 00 00 00 00 86 [21:48:12]Write i2c OK [21:48:12]MH_I2C_Read... [21:48:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:48:12]Read from MH i2c: E2 [21:48:12]MH_I2C_Read... [21:48:12]Read from MH i2c: E2 17 00 [21:48:12]MH_I2C_Read... [21:48:12]Read from MH i2c: E2 17 00 F5 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 DD [21:48:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:48:12]wFMCommunicate OK [21:48:12]CreateOFDProtocolMessage done [21:48:12]OFDSenderStorePacket 227701 [21:48:12]StoreOFDPacket docnum=227701 [21:48:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 1D B7 07 01 DE B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 02 00 00 F4 03 04 00 9C 7A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 75 79 03 00 35 04 06 00 12 CF 33 BA 69 F7 3F 67 E6 03 C4 9E D5 54 [21:48:12]CheckFolder [21:48:12]dirname=/storage/ofd_packets [21:48:12]CheckFolder done [21:48:12]ProducePacketName [21:48:12]name=ofd_packets/00227701 [21:48:12]NVStorageSaveData ofd_packets/00227701 [21:48:12]File name is /storage/ofd_packets/00227701 [21:48:12]Write 301 bytes [21:48:12]NVStorageSaveData done [21:48:12]OFDSenderStorePacket done [21:48:12]KKMCreateOFDPacket done [21:48:12]NVStorageSaveData kkm_last_timestamp [21:48:12]File name is /storage/kkm_last_timestamp [21:48:12]Write 4 bytes [21:48:12]NVStorageSaveData done [21:48:12]ExternCall_PrintAddStr [21:48:12]wPrintStart [21:48:12]Write to MH i2c: 01 00 00 F6 17 0D [21:48:12]Write i2c OK [21:48:12]MH_I2C_Read... [21:48:12]Read from MH i2c: 01 [21:48:12]MH_I2C_Read... [21:48:12]Read from MH i2c: 01 07 00 [21:48:12]MH_I2C_Read... [21:48:12]Read from MH i2c: 01 07 00 F6 17 00 00 00 00 00 FF 0F 22 [21:48:12]RasterBufferAndPrint [21:48:12]line Счет N : (1)1963365 [21:48:12]line ИНН: 02508201610067 [21:48:12]line Контрольно-Кассовый Чек [21:48:12]line ПРОДАЖА [21:48:12]line ТРК (МРК, ГНК) : 53 [21:48:12]line Товар: 2710124130 [21:48:12]line Аи-92-К-5 [21:48:12]line 3.890 * 66.90 [21:48:12]line = 260.24 [21:48:12]line НДС 12% НСП 1% [21:48:12]line > о реализуемом товаре [21:48:12]line ОКРУГЛЕНИЕ: -0.24 [21:48:12]line ИТОГО: 260.00 [21:48:12]line Внесено: 260.00 [21:48:12]line СДАЧА: 0.00 [21:48:12]line НСП 1% : 2.30 [21:48:12]line НДС 12% : 27.64 [21:48:12]line Наличными: 260.00 [21:48:12]line Безнал.: 0.00 [21:48:12]line Место: АЗС № 133 "Партнер Нефть" [21:48:12]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [21:48:12]line СНО: Общий режим [21:48:12]line Чек 549 20.10.2024 21:48 [21:48:12]line Смена: 533 ФФД: 1.0 [21:48:12]line ЗНМ: 0300000091 [21:48:12]line РНМ: 0000000000091685 [21:48:12]line Версия ККМ: 001 [21:48:12]line ФМ: 0000000000871839 [21:48:12]line ФД: 227701 [21:48:12]line ФПД: 20681135385079 [21:48:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T214812&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227701&fm=20681135385079&tin=02508201610067®Number=0000000000091685&sum=26000 [21:48:13]written 0, free lines is 4095 [21:48:13]OFD Sender: Processing packet 227701 [packets to send 38, broken 37] [21:48:13]ProducePacketName [21:48:13]name=ofd_packets/00227701 [21:48:13]OFD Sender: To server: pG, [21:48:13]CommunicateWithHost lk.salyk.kg:30040 [21:48:13]ConnectInit lk.salyk.kg [21:48:13]Connected sock=10 [21: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 33 39 0F 01 00 00 1D B7 07 01 DE B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 02 00 00 F4 03 04 00 9C 7A 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 75 79 03 00 35 04 06 00 12 CF 33 BA 69 F7 3F 67 E6 03 C4 9E D5 54 [21: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 33 39 4F 00 00 00 82 BE 47 00 36 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 33 39 10 04 04 00 75 79 03 00 F4 03 04 00 9A 25 15 67 B6 04 01 00 00 2E CC C8 1A 5F F2 64 25 [21:48:13]CommunicateWithHost err = 0 [21:48:13]CheckOFDResponse [21:48:13]1017 (14) - 77093643461234 [21:48:13]1041 (16) - 0000000000871839 [21:48:13]1040 (4) - 227701 [21:48:13]1012 (4) - 20.10.2024 15:45 [21:48:13]1206 (1) - 0 [21:48:13]OFD Sender: Remove packet 227701 [21:48:13]ProducePacketName [21:48:13]name=ofd_packets/00227701 [21:48:13]NVStorageDeleteData [21:48:13]Write to MH i2c: 01 00 00 20 18 38 [21:48:13]Write i2c OK [21:48:13]MH_I2C_Read... [21:48:13]Read from MH i2c: 01 [21:48:13]MH_I2C_Read... [21:48:13]Read from MH i2c: 01 07 00 [21:48:13]MH_I2C_Read... [21:48:13]Read from MH i2c: 01 07 00 20 18 00 00 00 00 00 A6 0C F1 [21:48:13]RasterBufferAndPrint [21:48:13]line [21:48:13]line [21:48:13]line [21:48:13]line [21:48:13]line [21:48:13]written 0, free lines is 3242 [21:48:13]MH_Cut [21:48:13]Write to MH i2c: D1 01 00 27 18 01 11 [21:48:13]Write i2c OK [21:48:13]MH_I2C_Read... [21:48:13]Read from MH i2c: D1 [21:48:13]MH_I2C_Read... [21:48:13]Read from MH i2c: D1 01 00 [21:48:13]MH_I2C_Read... [21:48:13]Read from MH i2c: D1 01 00 27 18 00 10 [21:48:13]Write to MH i2c: 01 00 00 28 18 40 [21:48:13]Write i2c OK [21:48:13]MH_I2C_Read... [21:48:13]OFD Sender: No OFD packet to send [21:48:14]*** Cut start [21:48:14]*** Partial cut [21:48:14]*** CUTSNS_PIN = 1 [21:48:14]*** CUTSNS_PIN = 0 [21:48:14]*** Brake cut motor [21:48:15]Read from MH i2c: 01 [21:48:15]MH_I2C_Read... [21:48:15]*** Stop cut motor [21:48:15]*** Cut end [21:48:15]Read from MH i2c: 01 07 00 [21:48:15]MH_I2C_Read... [21:48:15]Read from MH i2c: 01 07 00 28 18 00 00 00 00 00 FF 0F 55 [21:48:15]process_action close_receipt done [21:48:15]requested_data is exist [21:48:15]produce_requested_data [21:48:15]requested_item fm.sn is exist - process it [21:48:15]wFMCommunicate request_size=4 [21:48:15]MH_SAM_APDU [21:48:15]CAPDU: 80 11 00 00 [21:48:15]Write to MH i2c: E2 08 00 29 18 80 11 00 00 00 00 00 00 BB [21:48:15]Write i2c OK [21:48:15]MH_I2C_Read... [21:48:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:48:15]Read from MH i2c: E2 [21:48:15]MH_I2C_Read... [21:48:15]Read from MH i2c: E2 17 00 [21:48:15]MH_I2C_Read... [21:48:15]Read from MH i2c: E2 17 00 29 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 12 [21:48:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:48:15]wFMCommunicate OK [21:48:15]requested_item fd.num is exist - process it [21:48:15]SAM_PROTO_GetFieldsCounters [21:48:15]wFMCommunicate request_size=4 [21:48:15]MH_SAM_APDU [21:48:15]CAPDU: 80 13 00 00 [21:48:15]Write to MH i2c: E2 08 00 2A 18 80 13 00 00 00 00 00 00 BE [21:48:15]Write i2c OK [21:48:15]MH_I2C_Read... [21:48:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:48:15]Read from MH i2c: E2 [21:48:15]MH_I2C_Read... [21:48:15]Read from MH i2c: E2 62 00 [21:48:15]MH_I2C_Read... [21:48:15]Read from MH i2c: E2 62 00 2A 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 75 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 25 02 00 00 5E 04 04 00 25 02 00 00 57 04 04 00 26 02 00 00 19 04 04 00 00 00 00 00 90 00 64 [21: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 75 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 25 02 00 00 5E 04 04 00 25 02 00 00 57 04 04 00 26 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:48:15]wFMCommunicate OK [21:48:15]SAM_PROTO_GetFieldsCounters done [21:48:15]requested_item shift.num is exist - process it [21:48:15]requested_item shift.opened is exist - process it [21:48:15]req_shift_opened [21:48:15]FM_GetShiftState [21:48:15]SAM_PROTO_GetShiftState [21:48:15]wFMCommunicate request_size=4 [21:48:15]MH_SAM_APDU [21:48:15]CAPDU: 80 13 01 00 [21:48:15]Write to MH i2c: E2 08 00 2B 18 80 13 01 00 00 00 00 00 C0 [21:48:15]Write i2c OK [21:48:15]MH_I2C_Read... [21:48:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:48:15]Read from MH i2c: E2 [21:48:15]MH_I2C_Read... [21:48:15]Read from MH i2c: E2 0E 00 [21:48:15]MH_I2C_Read... [21:48:15]Read from MH i2c: E2 0E 00 2B 18 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 DA [21:48:15]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:48:15]wFMCommunicate OK [21:48:15]SAM_PROTO_GetShiftState done [21:48:15]FM_GetShiftState done [21:48:15]req_shift_opened done [21:48:15]requested_item shift.open_date is exist - process it [21:48:15]req_shift_open_date [21:48:15]req_shift_open_date done [21:48:15]produce_requested_data done [21:48:15]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227701,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [21:48:15]process_action_free close_receipt [21:48:15]json_value_free [21:48:15]json_value_free done [21:48:15]process_json_proto returns [21:48:15]Send response to host [21:48:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227701,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [21:48:15]free response buf [21:48:15]execute_script done [21:48:15]execute_script returns [21:48:15]free content buf [21:48:15]Sock 7.Close socket [21:48:15]Sock 7.Thread stoped [21:48:18]OFD Sender: No OFD packet to send [21:48:23]OFD Sender: No OFD packet to send [21:48:28]OFD Sender: No OFD packet to send [21:48:33]OFD Sender: No OFD packet to send [21:48:38]OFD Sender: No OFD packet to send [21:48:43]OFD Sender: No OFD packet to send [21:48:48]OFD Sender: No OFD packet to send [21:48:53]OFD Sender: No OFD packet to send [21:48:58]OFD Sender: No OFD packet to send [21:49:03]OFD Sender: No OFD packet to send [21:49:08]OFD Sender: No OFD packet to send [21:49:13]OFD Sender: No OFD packet to send [21:49:18]OFD Sender: No OFD packet to send [21:49:23]OFD Sender: No OFD packet to send [21:49:28]OFD Sender: No OFD packet to send [21:49:33]OFD Sender: No OFD packet to send [21:49:38]OFD Sender: No OFD packet to send [21:49:43]OFD Sender: No OFD packet to send [21:49:48]OFD Sender: No OFD packet to send [21:49:53]OFD Sender: No OFD packet to send [21:49:58]OFD Sender: No OFD packet to send [21:50:04]OFD Sender: No OFD packet to send [21:50:09]OFD Sender: No OFD packet to send [21:50:14]OFD Sender: No OFD packet to send [21:50:19]OFD Sender: No OFD packet to send [21:50:24]OFD Sender: No OFD packet to send [21:50:29]OFD Sender: No OFD packet to send [21:50:34]OFD Sender: No OFD packet to send [21:50:39]OFD Sender: No OFD packet to send [21:50:44]OFD Sender: No OFD packet to send [21:50:49]OFD Sender: No OFD packet to send [21:50:54]OFD Sender: No OFD packet to send [21:50:59]OFD Sender: No OFD packet to send [21:51:04]OFD Sender: No OFD packet to send [21:51:09]OFD Sender: No OFD packet to send [21:51:14]OFD Sender: No OFD packet to send [21:51:19]OFD Sender: No OFD packet to send [21:51:24]OFD Sender: No OFD packet to send [21:51:29]OFD Sender: No OFD packet to send [21:51:34]OFD Sender: No OFD packet to send [21:51:37]accept exits with 9 [21:51:37]New connection [21:51:37]New thread 3066809700 created [21:51:37]Thread 3066666340 joined [21:51:37]Waiting for new connection... [21:51:37] Sock 9.Parse request [21:51:37]Sock 9.Check first char [21:51:37]Sock 9.First char is OK [21:51:37]request: POST /json_proto HTTP/1.0 [21:51:37]Method: POST [21:51:37]URL: /json_proto [21:51:37]Method is POST - this is cgi request [21:51:37]url: /json_proto [21:51:37]query_string will be loaded in cgi processing [21:51:37]execute_cgi json_proto POST (null) [21:51:37]execute_cgi path=json_proto method=POST [21:51:37]POST find Content-Length [21:51:37]Host: 172.17.44.195:8080 [21:51:37]Content-Length: 678 [21:51:37]Content-Type: application/json [21:51:37] [21:51:37]POST finish read [21:51:37]Found Content-Length = 678 [21:51:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963366", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:51:37]execute_script... [21:51: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)1963366", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:51:37]POST & json_proto [21:51:37]process_json_proto [21:51:37]json parsed OK: [21:51:37]protocol is kg_v1.0 [21:51:37]action value=close_receipt [21:51:37]process_action close_receipt [21:51:37]cmd_close_receipt [21:51:37]MH_GetDate [21:51:37]Write to MH i2c: F0 00 00 2C 18 33 [21:51:37]Write i2c OK [21:51:37]MH_I2C_Read... [21:51:37]Read from MH i2c: F0 [21:51:37]MH_I2C_Read... [21:51:37]Read from MH i2c: F0 09 00 [21:51:37]MH_I2C_Read... [21:51:37]Read from MH i2c: F0 09 00 2C 18 00 6A 7B 15 67 82 C9 CF 66 1D [21:51:37]GetLastDocTimeStamp 1729460892 [21:51:37]current date 1729461098 [21:51:37]FM_GetShiftState [21:51:37]SAM_PROTO_GetShiftState [21:51:37]wFMCommunicate request_size=4 [21:51:37]MH_SAM_APDU [21:51:37]CAPDU: 80 13 01 00 [21:51:37]Write to MH i2c: E2 08 00 2D 18 80 13 01 00 00 00 00 00 C2 [21:51:37]Write i2c OK [21:51:37]MH_I2C_Read... [21:51:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:51:37]Read from MH i2c: E2 [21:51:37]MH_I2C_Read... [21:51:37]Read from MH i2c: E2 0E 00 [21:51:37]MH_I2C_Read... [21:51:37]Read from MH i2c: E2 0E 00 2D 18 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 DC [21:51:37]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:51:37]wFMCommunicate OK [21:51:37]SAM_PROTO_GetShiftState done [21:51:37]FM_GetShiftState done [21:51:37]opened in 1729383750 [21:51:37]opened+sec_in_day 1729470150 [21:51:37]quantity*price = 60009 [21:51:37]sum+1 = 60010 [21:51:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 550 20.10.2024 21:51 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227702 ФПД: 252916256842166 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T215138&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227702&fm=252916256842166&tin=02508201610067®Number=0000000000091685&sum=60000 [21:51:38]StoreToDocumentArchive [21:51:38]shift 533 fd 227702 [21:51:38]save to /storage/0533/doc_00227702 [21:51:38]save last doc name /storage/0533/doc_00227702 to /storage/kkm_last_doc_name [21:51:38]save OK [21:51:38]Clear old archive folders... [21:51:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:51:38]tlvbuf is 00C4DF90 [21:51:38]SAM_PROTO_ClearQueue [21:51:38]wFMCommunicate request_size=4 [21:51:38]MH_SAM_APDU [21:51:38]CAPDU: 80 09 00 00 [21:51:38]Write to MH i2c: E2 08 00 3A 18 80 09 00 00 00 00 00 00 C4 [21:51:38]Write i2c OK [21:51:38]MH_I2C_Read... [21:51:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:51:38]Read from MH i2c: E2 [21:51:38]MH_I2C_Read... [21:51:38]Read from MH i2c: E2 03 00 [21:51:38]MH_I2C_Read... [21:51:38]Read from MH i2c: E2 03 00 3A 18 00 90 00 C6 [21:51:38]RAPDU: 90 00 [21:51:38]wFMCommunicate OK [21:51:38]SAM_PROTO_ClearQueue done [21:51:38]KKMCreateOFDPacket [21:51:38]OFDProtocolAddRootSTLVToBuf [21:51:38]FM_MakeSignedData [21:51:38]FM_MakeSignedData [21:51:38]SAM_PROTO_SignData [21:51:38]wFMCommunicate request_size=4 [21:51:38]MH_SAM_APDU [21:51:38]CAPDU: 80 0D 01 02 [21:51:38]Write to MH i2c: E2 08 00 3B 18 80 0D 01 02 00 00 00 00 CC [21:51:38]Write i2c OK [21:51:38]MH_I2C_Read... [21:51:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:51:38]Read from MH i2c: E2 [21:51:38]MH_I2C_Read... [21:51:38]Read from MH i2c: E2 03 00 [21:51:38]MH_I2C_Read... [21:51:38]Read from MH i2c: E2 03 00 3B 18 00 90 00 C7 [21:51:38]RAPDU: 90 00 [21:51:38]wFMCommunicate OK [21:51:38]wFMCommunicate request_size=255 [21:51:38]MH_SAM_APDU [21:51:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 02 00 00 F4 03 04 00 6A 7B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 76 79 03 00 35 04 06 00 E6 [21:51:38]Write to MH i2c: E2 02 01 3C 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 02 00 00 F4 03 04 00 6A 7B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 76 79 03 00 35 04 06 00 E6 00 00 B8 [21:51:38]Write i2c OK [21:51:38]MH_I2C_Read... [21:51:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:51:38]Read from MH i2c: E2 [21:51:38]MH_I2C_Read... [21:51:38]Read from MH i2c: E2 03 00 [21:51:38]MH_I2C_Read... [21:51:38]Read from MH i2c: E2 03 00 3C 18 00 90 00 C8 [21:51:38]RAPDU: 90 00 [21:51:38]wFMCommunicate OK [21:51:38]wFMCommunicate request_size=10 [21:51:38]MH_SAM_APDU [21:51:38]CAPDU: 80 0D 02 02 05 06 A7 A5 A1 B6 [21:51:38]Write to MH i2c: E2 0D 00 3D 18 80 0D 02 02 05 00 06 A7 A5 A1 B6 00 00 82 [21:51:38]Write i2c OK [21:51:38]MH_I2C_Read... [21:51:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:51:38]Read from MH i2c: E2 [21:51:38]MH_I2C_Read... [21:51:38]Read from MH i2c: E2 03 00 [21:51:38]MH_I2C_Read... [21:51:38]Read from MH i2c: E2 03 00 3D 18 00 90 00 C9 [21:51:38]RAPDU: 90 00 [21:51:38]wFMCommunicate OK [21:51:38]wFMCommunicate request_size=4 [21:51:38]MH_SAM_APDU [21:51:38]CAPDU: 80 0D 03 02 [21:51:38]Write to MH i2c: E2 08 00 3E 18 80 0D 03 02 00 00 00 00 D1 [21:51:38]Write i2c OK [21:51:38]MH_I2C_Read... [21:51:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:51:38]Read from MH i2c: E2 [21:51:38]MH_I2C_Read... [21:51:38]Read from MH i2c: E2 0B 00 [21:51:38]MH_I2C_Read... [21:51:38]Read from MH i2c: E2 0B 00 3E 18 00 ED 81 6F CA 2F 76 9E CF 90 00 8B [21:51:38]RAPDU: ED 81 6F CA 2F 76 9E CF 90 00 [21:51:38]wFMCommunicate OK [21:51:38]SAM_PROTO_SignData done [21:51:38]FM_MakeSignedData done [21:51:38]CreateOFDProtocolMessage [21:51:38]wFMCommunicate request_size=4 [21:51:38]MH_SAM_APDU [21:51:38]CAPDU: 80 11 00 00 [21:51:38]Write to MH i2c: E2 08 00 3F 18 80 11 00 00 00 00 00 00 D1 [21:51:38]Write i2c OK [21:51:38]MH_I2C_Read... [21:51:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:51:38]Read from MH i2c: E2 [21:51:38]MH_I2C_Read... [21:51:38]Read from MH i2c: E2 17 00 [21:51:38]MH_I2C_Read... [21:51:38]Read from MH i2c: E2 17 00 3F 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 28 [21:51:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:51:38]wFMCommunicate OK [21:51:38]CreateOFDProtocolMessage done [21:51:38]OFDSenderStorePacket 227702 [21:51:38]StoreOFDPacket docnum=227702 [21:51:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 52 62 07 01 C8 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 02 00 00 F4 03 04 00 6A 7B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 76 79 03 00 35 04 06 00 E6 06 A7 A5 A1 B6 ED 81 6F CA 2F 76 9E CF [21:51:38]CheckFolder [21:51:38]dirname=/storage/ofd_packets [21:51:38]CheckFolder done [21:51:38]ProducePacketName [21:51:38]name=ofd_packets/00227702 [21:51:38]NVStorageSaveData ofd_packets/00227702 [21:51:38]File name is /storage/ofd_packets/00227702 [21:51:38]Write 301 bytes [21:51:38]NVStorageSaveData done [21:51:38]OFDSenderStorePacket done [21:51:38]KKMCreateOFDPacket done [21:51:38]NVStorageSaveData kkm_last_timestamp [21:51:38]File name is /storage/kkm_last_timestamp [21:51:38]Write 4 bytes [21:51:38]NVStorageSaveData done [21:51:38]ExternCall_PrintAddStr [21:51:38]wPrintStart [21:51:38]Write to MH i2c: 01 00 00 40 18 58 [21:51:38]Write i2c OK [21:51:38]MH_I2C_Read... [21:51:38]Read from MH i2c: 01 [21:51:38]MH_I2C_Read... [21:51:38]Read from MH i2c: 01 07 00 [21:51:38]MH_I2C_Read... [21:51:38]Read from MH i2c: 01 07 00 40 18 00 00 00 00 00 FF 0F 6D [21:51:38]RasterBufferAndPrint [21:51:38]line Счет N : (1)1963366 [21:51:38]line ИНН: 02508201610067 [21:51:38]line Контрольно-Кассовый Чек [21:51:38]line ПРОДАЖА [21:51:38]line ТРК (МРК, ГНК) : 53 [21:51:38]line Товар: 2710124130 [21:51:38]line Аи-92-К-5 [21:51:38]line 8.970 * 66.90 [21:51:38]line = 600.09 [21:51:38]line НДС 12% НСП 1% [21:51:38]line > о реализуемом товаре [21:51:38]line ОКРУГЛЕНИЕ: -0.09 [21:51:38]line ИТОГО: 600.00 [21:51:38]line Внесено: 600.00 [21:51:38]line СДАЧА: 0.00 [21:51:38]line НСП 1% : 5.31 [21:51:38]line НДС 12% : 63.73 [21:51:38]line Наличными: 600.00 [21:51:38]line Безнал.: 0.00 [21:51:38]line Место: АЗС № 133 "Партнер Нефть" [21:51:38]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [21:51:38]line СНО: Общий режим [21:51:38]line Чек 550 20.10.2024 21:51 [21:51:38]line Смена: 533 ФФД: 1.0 [21:51:38]line ЗНМ: 0300000091 [21:51:38]line РНМ: 0000000000091685 [21:51:38]line Версия ККМ: 001 [21:51:38]line ФМ: 0000000000871839 [21:51:38]line ФД: 227702 [21:51:38]line ФПД: 252916256842166 [21:51:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T215138&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227702&fm=252916256842166&tin=02508201610067®Number=0000000000091685&sum=60000 [21:51:39]written 0, free lines is 4095 [21:51:39]OFD Sender: Processing packet 227702 [packets to send 38, broken 37] [21:51:39]ProducePacketName [21:51:39]name=ofd_packets/00227702 [21:51:39]OFD Sender: To server: pG, [21:51:39]CommunicateWithHost lk.salyk.kg:30040 [21:51:39]ConnectInit lk.salyk.kg [21:51:39]Connected sock=10 [21:51:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 52 62 07 01 C8 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 02 00 00 F4 03 04 00 6A 7B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 76 79 03 00 35 04 06 00 E6 06 A7 A5 A1 B6 ED 81 6F CA 2F 76 9E CF [21:51:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 7D B2 47 00 7B 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 76 79 03 00 F4 03 04 00 68 26 15 67 B6 04 01 00 00 1D A0 F0 7A 2E 36 67 5A [21:51:39]CommunicateWithHost err = 0 [21:51:39]CheckOFDResponse [21:51:39]1017 (14) - 77093643461234 [21:51:39]1041 (16) - 0000000000871839 [21:51:39]1040 (4) - 227702 [21:51:39]1012 (4) - 20.10.2024 15:48 [21:51:39]1206 (1) - 0 [21:51:39]OFD Sender: Remove packet 227702 [21:51:39]ProducePacketName [21:51:39]name=ofd_packets/00227702 [21:51:39]NVStorageDeleteData [21:51:39]Write to MH i2c: 01 00 00 6A 18 82 [21:51:39]Write i2c OK [21:51:39]MH_I2C_Read... [21:51:39]Read from MH i2c: 01 [21:51:39]MH_I2C_Read... [21:51:39]Read from MH i2c: 01 07 00 [21:51:39]MH_I2C_Read... [21:51:39]Read from MH i2c: 01 07 00 6A 18 00 00 00 00 00 A5 0C 3A [21:51:39]RasterBufferAndPrint [21:51:39]line [21:51:39]line [21:51:39]line [21:51:39]line [21:51:39]line [21:51:39]written 0, free lines is 3242 [21:51:39]MH_Cut [21:51:39]Write to MH i2c: D1 01 00 71 18 01 5B [21:51:39]Write i2c OK [21:51:39]MH_I2C_Read... [21:51:39]Read from MH i2c: D1 [21:51:39]MH_I2C_Read... [21:51:39]Read from MH i2c: D1 01 00 [21:51:39]MH_I2C_Read... [21:51:39]Read from MH i2c: D1 01 00 71 18 00 5A [21:51:39]Write to MH i2c: 01 00 00 72 18 8A [21:51:39]Write i2c OK [21:51:39]MH_I2C_Read... [21:51:40]OFD Sender: No OFD packet to send [21:51:40]*** Cut start [21:51:40]*** Partial cut [21:51:40]*** CUTSNS_PIN = 1 [21:51:40]*** CUTSNS_PIN = 0 [21:51:40]*** Brake cut motor [21:51:41]Read from MH i2c: 01 [21:51:41]MH_I2C_Read... [21:51:41]*** Stop cut motor [21:51:41]*** Cut end [21:51:41]Read from MH i2c: 01 07 00 [21:51:41]MH_I2C_Read... [21:51:41]Read from MH i2c: 01 07 00 72 18 00 00 00 00 00 FF 0F 9F [21:51:41]process_action close_receipt done [21:51:41]requested_data is exist [21:51:41]produce_requested_data [21:51:41]requested_item fm.sn is exist - process it [21:51:41]wFMCommunicate request_size=4 [21:51:41]MH_SAM_APDU [21:51:41]CAPDU: 80 11 00 00 [21:51:41]Write to MH i2c: E2 08 00 73 18 80 11 00 00 00 00 00 00 05 [21:51:41]Write i2c OK [21:51:41]MH_I2C_Read... [21:51:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:51:41]Read from MH i2c: E2 [21:51:41]MH_I2C_Read... [21:51:41]Read from MH i2c: E2 17 00 [21:51:41]MH_I2C_Read... [21:51:41]Read from MH i2c: E2 17 00 73 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 5C [21:51:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:51:41]wFMCommunicate OK [21:51:41]requested_item fd.num is exist - process it [21:51:41]SAM_PROTO_GetFieldsCounters [21:51:41]wFMCommunicate request_size=4 [21:51:41]MH_SAM_APDU [21:51:41]CAPDU: 80 13 00 00 [21:51:41]Write to MH i2c: E2 08 00 74 18 80 13 00 00 00 00 00 00 08 [21:51:41]Write i2c OK [21:51:41]MH_I2C_Read... [21:51:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:51:41]Read from MH i2c: E2 [21:51:41]MH_I2C_Read... [21:51:41]Read from MH i2c: E2 62 00 [21:51:41]MH_I2C_Read... [21:51:41]Read from MH i2c: E2 62 00 74 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 76 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 26 02 00 00 5E 04 04 00 26 02 00 00 57 04 04 00 27 02 00 00 19 04 04 00 00 00 00 00 90 00 B2 [21:51:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 76 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 26 02 00 00 5E 04 04 00 26 02 00 00 57 04 04 00 27 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:51:41]wFMCommunicate OK [21:51:41]SAM_PROTO_GetFieldsCounters done [21:51:41]requested_item shift.num is exist - process it [21:51:41]requested_item shift.opened is exist - process it [21:51:41]req_shift_opened [21:51:41]FM_GetShiftState [21:51:41]SAM_PROTO_GetShiftState [21:51:41]wFMCommunicate request_size=4 [21:51:41]MH_SAM_APDU [21:51:41]CAPDU: 80 13 01 00 [21:51:41]Write to MH i2c: E2 08 00 75 18 80 13 01 00 00 00 00 00 0A [21:51:41]Write i2c OK [21:51:41]MH_I2C_Read... [21:51:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:51:41]Read from MH i2c: E2 [21:51:41]MH_I2C_Read... [21:51:41]Read from MH i2c: E2 0E 00 [21:51:41]MH_I2C_Read... [21:51:41]Read from MH i2c: E2 0E 00 75 18 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 24 [21:51:41]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:51:41]wFMCommunicate OK [21:51:41]SAM_PROTO_GetShiftState done [21:51:41]FM_GetShiftState done [21:51:41]req_shift_opened done [21:51:41]requested_item shift.open_date is exist - process it [21:51:41]req_shift_open_date [21:51:41]req_shift_open_date done [21:51:41]produce_requested_data done [21:51:41]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227702,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [21:51:41]process_action_free close_receipt [21:51:41]json_value_free [21:51:41]json_value_free done [21:51:41]process_json_proto returns [21:51:41]Send response to host [21:51:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227702,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [21:51:41]free response buf [21:51:41]execute_script done [21:51:41]execute_script returns [21:51:41]free content buf [21:51:41]Sock 9.Close socket [21:51:41]Sock 9.Thread stoped [21:51:45]OFD Sender: No OFD packet to send [21:51:50]OFD Sender: No OFD packet to send [21:51:55]OFD Sender: No OFD packet to send [21:52:00]OFD Sender: No OFD packet to send [21:52:05]OFD Sender: No OFD packet to send [21:52:10]OFD Sender: No OFD packet to send [21:52:15]OFD Sender: No OFD packet to send [21:52:18]accept exits with 7 [21:52:18]New connection [21:52:18]New thread 3066666340 created [21:52:18]Thread 3066809700 joined [21:52:18]Waiting for new connection... [21:52:18] Sock 7.Parse request [21:52:18]Sock 7.Check first char [21:52:18]Sock 7.First char is OK [21:52:18]request: POST /json_proto HTTP/1.0 [21:52:18]Method: POST [21:52:18]URL: /json_proto [21:52:18]Method is POST - this is cgi request [21:52:18]url: /json_proto [21:52:18]query_string will be loaded in cgi processing [21:52:18]execute_cgi json_proto POST (null) [21:52:18]execute_cgi path=json_proto method=POST [21:52:18]POST find Content-Length [21:52:18]Host: 172.17.44.195:8080 [21:52:18]Content-Length: 683 [21:52:18]Content-Type: application/json [21:52:18] [21:52:18]POST finish read [21:52:18]Found Content-Length = 683 [21:52:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963367", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:52:18]execute_script... [21:52:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963367", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:52:18]POST & json_proto [21:52:18]process_json_proto [21:52:18]json parsed OK: [21:52:18]protocol is kg_v1.0 [21:52:18]action value=close_receipt [21:52:18]process_action close_receipt [21:52:18]cmd_close_receipt [21:52:18]MH_GetDate [21:52:18]Write to MH i2c: F0 00 00 76 18 7D [21:52:18]Write i2c OK [21:52:18]MH_I2C_Read... [21:52:18]Read from MH i2c: F0 [21:52:18]MH_I2C_Read... [21:52:18]Read from MH i2c: F0 09 00 [21:52:18]MH_I2C_Read... [21:52:18]Read from MH i2c: F0 09 00 76 18 00 93 7B 15 67 82 C9 CF 66 90 [21:52:18]GetLastDocTimeStamp 1729461098 [21:52:18]current date 1729461139 [21:52:18]FM_GetShiftState [21:52:18]SAM_PROTO_GetShiftState [21:52:18]wFMCommunicate request_size=4 [21:52:18]MH_SAM_APDU [21:52:18]CAPDU: 80 13 01 00 [21:52:18]Write to MH i2c: E2 08 00 77 18 80 13 01 00 00 00 00 00 0C [21:52:18]Write i2c OK [21:52:18]MH_I2C_Read... [21:52:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:52:18]Read from MH i2c: E2 [21:52:18]MH_I2C_Read... [21:52:18]Read from MH i2c: E2 0E 00 [21:52:18]MH_I2C_Read... [21:52:18]Read from MH i2c: E2 0E 00 77 18 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 26 [21:52:18]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:52:18]wFMCommunicate OK [21:52:18]SAM_PROTO_GetShiftState done [21:52:18]FM_GetShiftState done [21:52:18]opened in 1729383750 [21:52:18]opened+sec_in_day 1729470150 [21:52:18]quantity*price = 100015 [21:52:18]sum+1 = 100017 [21:52:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 551 20.10.2024 21:52 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227703 ФПД: 29130477156275 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T215219&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227703&fm=29130477156275&tin=02508201610067®Number=0000000000091685&sum=100000 [21:52:19]StoreToDocumentArchive [21:52:19]shift 533 fd 227703 [21:52:19]save to /storage/0533/doc_00227703 [21:52:19]save last doc name /storage/0533/doc_00227703 to /storage/kkm_last_doc_name [21:52:19]save OK [21:52:19]Clear old archive folders... [21:52:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:52:19]tlvbuf is B6F32070 [21:52:19]SAM_PROTO_ClearQueue [21:52:19]wFMCommunicate request_size=4 [21:52:19]MH_SAM_APDU [21:52:19]CAPDU: 80 09 00 00 [21:52:19]Write to MH i2c: E2 08 00 84 18 80 09 00 00 00 00 00 00 0E [21:52:19]Write i2c OK [21:52:19]MH_I2C_Read... [21:52:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:52:19]Read from MH i2c: E2 [21:52:19]MH_I2C_Read... [21:52:19]Read from MH i2c: E2 03 00 [21:52:19]MH_I2C_Read... [21:52:19]Read from MH i2c: E2 03 00 84 18 00 90 00 10 [21:52:19]RAPDU: 90 00 [21:52:19]wFMCommunicate OK [21:52:19]SAM_PROTO_ClearQueue done [21:52:19]KKMCreateOFDPacket [21:52:19]OFDProtocolAddRootSTLVToBuf [21:52:19]FM_MakeSignedData [21:52:19]FM_MakeSignedData [21:52:19]SAM_PROTO_SignData [21:52:19]wFMCommunicate request_size=4 [21:52:19]MH_SAM_APDU [21:52:19]CAPDU: 80 0D 01 02 [21:52:19]Write to MH i2c: E2 08 00 85 18 80 0D 01 02 00 00 00 00 16 [21:52:19]Write i2c OK [21:52:19]MH_I2C_Read... [21:52:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:52:19]Read from MH i2c: E2 [21:52:19]MH_I2C_Read... [21:52:19]Read from MH i2c: E2 03 00 [21:52:19]MH_I2C_Read... [21:52:19]Read from MH i2c: E2 03 00 85 18 00 90 00 11 [21:52:19]RAPDU: 90 00 [21:52:19]wFMCommunicate OK [21:52:19]wFMCommunicate request_size=255 [21:52:19]MH_SAM_APDU [21:52:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 02 00 00 F4 03 04 00 93 7B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 77 79 03 00 35 04 06 00 1A [21:52:19]Write to MH i2c: E2 02 01 86 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 02 00 00 F4 03 04 00 93 7B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 77 79 03 00 35 04 06 00 1A 00 00 7E [21:52:19]Write i2c OK [21:52:19]MH_I2C_Read... [21:52:20]OFD Sender: No OFD packet to send [21:52:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:52:20]Read from MH i2c: E2 [21:52:20]MH_I2C_Read... [21:52:20]Read from MH i2c: E2 03 00 [21:52:20]MH_I2C_Read... [21:52:20]Read from MH i2c: E2 03 00 86 18 00 90 00 12 [21:52:20]RAPDU: 90 00 [21:52:20]wFMCommunicate OK [21:52:20]wFMCommunicate request_size=10 [21:52:20]MH_SAM_APDU [21:52:20]CAPDU: 80 0D 02 02 05 7E 77 BE 37 B3 [21:52:20]Write to MH i2c: E2 0D 00 87 18 80 0D 02 02 05 00 7E 77 BE 37 B3 00 00 C0 [21:52:20]Write i2c OK [21:52:20]MH_I2C_Read... [21:52:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:52:20]Read from MH i2c: E2 [21:52:20]MH_I2C_Read... [21:52:20]Read from MH i2c: E2 03 00 [21:52:20]MH_I2C_Read... [21:52:20]Read from MH i2c: E2 03 00 87 18 00 90 00 13 [21:52:20]RAPDU: 90 00 [21:52:20]wFMCommunicate OK [21:52:20]wFMCommunicate request_size=4 [21:52:20]MH_SAM_APDU [21:52:20]CAPDU: 80 0D 03 02 [21:52:20]Write to MH i2c: E2 08 00 88 18 80 0D 03 02 00 00 00 00 1B [21:52:20]Write i2c OK [21:52:20]MH_I2C_Read... [21:52:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:52:20]Read from MH i2c: E2 [21:52:20]MH_I2C_Read... [21:52:20]Read from MH i2c: E2 0B 00 [21:52:20]MH_I2C_Read... [21:52:20]Read from MH i2c: E2 0B 00 88 18 00 C5 46 7E 6E BF 2A 9F A3 90 00 3E [21:52:20]RAPDU: C5 46 7E 6E BF 2A 9F A3 90 00 [21:52:20]wFMCommunicate OK [21:52:20]SAM_PROTO_SignData done [21:52:20]FM_MakeSignedData done [21:52:20]CreateOFDProtocolMessage [21:52:20]wFMCommunicate request_size=4 [21:52:20]MH_SAM_APDU [21:52:20]CAPDU: 80 11 00 00 [21:52:20]Write to MH i2c: E2 08 00 89 18 80 11 00 00 00 00 00 00 1B [21:52:20]Write i2c OK [21:52:20]MH_I2C_Read... [21:52:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:52:20]Read from MH i2c: E2 [21:52:20]MH_I2C_Read... [21:52:20]Read from MH i2c: E2 17 00 [21:52:20]MH_I2C_Read... [21:52:20]Read from MH i2c: E2 17 00 89 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 72 [21:52:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:52:20]wFMCommunicate OK [21:52:20]CreateOFDProtocolMessage done [21:52:20]OFDSenderStorePacket 227703 [21:52:20]StoreOFDPacket docnum=227703 [21:52:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 38 23 07 01 04 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 02 00 00 F4 03 04 00 93 7B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 77 79 03 00 35 04 06 00 1A 7E 77 BE 37 B3 C5 46 7E 6E BF 2A 9F A3 [21:52:20]CheckFolder [21:52:20]dirname=/storage/ofd_packets [21:52:20]CheckFolder done [21:52:20]ProducePacketName [21:52:20]name=ofd_packets/00227703 [21:52:20]NVStorageSaveData ofd_packets/00227703 [21:52:20]File name is /storage/ofd_packets/00227703 [21:52:20]Write 301 bytes [21:52:20]NVStorageSaveData done [21:52:20]OFDSenderStorePacket done [21:52:20]KKMCreateOFDPacket done [21:52:20]NVStorageSaveData kkm_last_timestamp [21:52:20]File name is /storage/kkm_last_timestamp [21:52:20]Write 4 bytes [21:52:20]NVStorageSaveData done [21:52:20]ExternCall_PrintAddStr [21:52:20]wPrintStart [21:52:20]Write to MH i2c: 01 00 00 8A 18 A2 [21:52:20]Write i2c OK [21:52:20]MH_I2C_Read... [21:52:20]Read from MH i2c: 01 [21:52:20]MH_I2C_Read... [21:52:20]Read from MH i2c: 01 07 00 [21:52:20]MH_I2C_Read... [21:52:20]Read from MH i2c: 01 07 00 8A 18 00 00 00 00 00 FF 0F B7 [21:52:20]RasterBufferAndPrint [21:52:20]line Счет N : (1)1963367 [21:52:20]line ИНН: 02508201610067 [21:52:20]line Контрольно-Кассовый Чек [21:52:20]line ПРОДАЖА [21:52:20]line ТРК (МРК, ГНК) : 43 [21:52:20]line Товар: 2710124130 [21:52:20]line Аи-92-К-5 [21:52:20]line 14.950 * 66.90 [21:52:20]line = 1000.16 [21:52:20]line НДС 12% НСП 1% [21:52:20]line > о реализуемом товаре [21:52:20]line ОКРУГЛЕНИЕ: -0.16 [21:52:20]line ИТОГО: 1000.00 [21:52:20]line Внесено: 1000.00 [21:52:20]line СДАЧА: 0.00 [21:52:20]line НСП 1% : 8.85 [21:52:20]line НДС 12% : 106.21 [21:52:20]line Наличными: 1000.00 [21:52:20]line Безнал.: 0.00 [21:52:20]line Место: АЗС № 133 "Партнер Нефть" [21:52:20]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [21:52:20]line СНО: Общий режим [21:52:20]line Чек 551 20.10.2024 21:52 [21:52:20]line Смена: 533 ФФД: 1.0 [21:52:20]line ЗНМ: 0300000091 [21:52:20]line РНМ: 0000000000091685 [21:52:20]line Версия ККМ: 001 [21:52:20]line ФМ: 0000000000871839 [21:52:20]line ФД: 227703 [21:52:20]line ФПД: 29130477156275 [21:52:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T215219&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227703&fm=29130477156275&tin=02508201610067®Number=0000000000091685&sum=100000 [21:52:20]OFD Sender: Processing packet 227703 [packets to send 38, broken 37] [21:52:20]ProducePacketName [21:52:20]name=ofd_packets/00227703 [21:52:20]OFD Sender: To server: pG, [21:52:20]CommunicateWithHost lk.salyk.kg:30040 [21:52:20]ConnectInit lk.salyk.kg [21:52:20]written 0, free lines is 4095 [21:52:20]Connected sock=10 [21:52:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 38 23 07 01 04 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 02 00 00 F4 03 04 00 93 7B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 77 79 03 00 35 04 06 00 1A 7E 77 BE 37 B3 C5 46 7E 6E BF 2A 9F A3 [21:52:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 93 99 47 00 17 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 33 39 10 04 04 00 77 79 03 00 F4 03 04 00 91 26 15 67 B6 04 01 00 00 59 6B BF 70 16 E2 A0 B6 [21:52:20]CommunicateWithHost err = 0 [21:52:20]CheckOFDResponse [21:52:20]1017 (14) - 77093643461234 [21:52:20]1041 (16) - 0000000000871839 [21:52:20]1040 (4) - 227703 [21:52:20]1012 (4) - 20.10.2024 15:49 [21:52:20]1206 (1) - 0 [21:52:20]OFD Sender: Remove packet 227703 [21:52:20]ProducePacketName [21:52:20]name=ofd_packets/00227703 [21:52:20]NVStorageDeleteData [21:52:21]Write to MH i2c: 01 00 00 B4 18 CC [21:52:21]Write i2c OK [21:52:21]MH_I2C_Read... [21:52:21]Read from MH i2c: 01 [21:52:21]MH_I2C_Read... [21:52:21]Read from MH i2c: 01 07 00 [21:52:21]MH_I2C_Read... [21:52:21]Read from MH i2c: 01 07 00 B4 18 00 00 00 00 00 AD 0C 8C [21:52:21]RasterBufferAndPrint [21:52:21]line [21:52:21]line [21:52:21]line [21:52:21]line [21:52:21]line [21:52:21]written 0, free lines is 3249 [21:52:21]MH_Cut [21:52:21]Write to MH i2c: D1 01 00 BB 18 01 A5 [21:52:21]Write i2c OK [21:52:21]MH_I2C_Read... [21:52:21]Read from MH i2c: D1 [21:52:21]MH_I2C_Read... [21:52:21]Read from MH i2c: D1 01 00 [21:52:21]MH_I2C_Read... [21:52:21]Read from MH i2c: D1 01 00 BB 18 00 A4 [21:52:21]Write to MH i2c: 01 00 00 BC 18 D4 [21:52:21]Write i2c OK [21:52:21]MH_I2C_Read... [21:52:21]OFD Sender: No OFD packet to send [21:52:22]*** Cut start [21:52:22]*** Partial cut [21:52:22]*** CUTSNS_PIN = 1 [21:52:22]*** CUTSNS_PIN = 0 [21:52:22]*** Brake cut motor [21:52:22]Read from MH i2c: 01 [21:52:22]MH_I2C_Read... [21:52:22]*** Stop cut motor [21:52:22]*** Cut end [21:52:22]Read from MH i2c: 01 07 00 [21:52:22]MH_I2C_Read... [21:52:22]Read from MH i2c: 01 07 00 BC 18 00 00 00 00 00 FF 0F E9 [21:52:22]process_action close_receipt done [21:52:22]requested_data is exist [21:52:22]produce_requested_data [21:52:22]requested_item fm.sn is exist - process it [21:52:22]wFMCommunicate request_size=4 [21:52:22]MH_SAM_APDU [21:52:22]CAPDU: 80 11 00 00 [21:52:22]Write to MH i2c: E2 08 00 BD 18 80 11 00 00 00 00 00 00 4F [21:52:22]Write i2c OK [21:52:22]MH_I2C_Read... [21:52:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:52:22]Read from MH i2c: E2 [21:52:22]MH_I2C_Read... [21:52:22]Read from MH i2c: E2 17 00 [21:52:22]MH_I2C_Read... [21:52:22]Read from MH i2c: E2 17 00 BD 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A6 [21:52:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:52:22]wFMCommunicate OK [21:52:22]requested_item fd.num is exist - process it [21:52:22]SAM_PROTO_GetFieldsCounters [21:52:22]wFMCommunicate request_size=4 [21:52:22]MH_SAM_APDU [21:52:22]CAPDU: 80 13 00 00 [21:52:22]Write to MH i2c: E2 08 00 BE 18 80 13 00 00 00 00 00 00 52 [21:52:22]Write i2c OK [21:52:22]MH_I2C_Read... [21:52:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:52:22]Read from MH i2c: E2 [21:52:22]MH_I2C_Read... [21:52:22]Read from MH i2c: E2 62 00 [21:52:22]MH_I2C_Read... [21:52:22]Read from MH i2c: E2 62 00 BE 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 77 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 27 02 00 00 5E 04 04 00 27 02 00 00 57 04 04 00 28 02 00 00 19 04 04 00 00 00 00 00 90 00 00 [21:52:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 77 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 27 02 00 00 5E 04 04 00 27 02 00 00 57 04 04 00 28 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:52:22]wFMCommunicate OK [21:52:22]SAM_PROTO_GetFieldsCounters done [21:52:22]requested_item shift.num is exist - process it [21:52:22]requested_item shift.opened is exist - process it [21:52:22]req_shift_opened [21:52:22]FM_GetShiftState [21:52:22]SAM_PROTO_GetShiftState [21:52:22]wFMCommunicate request_size=4 [21:52:22]MH_SAM_APDU [21:52:22]CAPDU: 80 13 01 00 [21:52:22]Write to MH i2c: E2 08 00 BF 18 80 13 01 00 00 00 00 00 54 [21:52:22]Write i2c OK [21:52:22]MH_I2C_Read... [21:52:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:52:22]Read from MH i2c: E2 [21:52:22]MH_I2C_Read... [21:52:22]Read from MH i2c: E2 0E 00 [21:52:22]MH_I2C_Read... [21:52:22]Read from MH i2c: E2 0E 00 BF 18 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 6E [21:52:22]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:52:22]wFMCommunicate OK [21:52:22]SAM_PROTO_GetShiftState done [21:52:22]FM_GetShiftState done [21:52:22]req_shift_opened done [21:52:22]requested_item shift.open_date is exist - process it [21:52:22]req_shift_open_date [21:52:22]req_shift_open_date done [21:52:22]produce_requested_data done [21:52:22]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227703,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [21:52:22]process_action_free close_receipt [21:52:22]json_value_free [21:52:22]json_value_free done [21:52:22]process_json_proto returns [21:52:22]Send response to host [21:52:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227703,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [21:52:22]free response buf [21:52:22]execute_script done [21:52:22]execute_script returns [21:52:22]free content buf [21:52:22]Sock 7.Close socket [21:52:22]Sock 7.Thread stoped [21:52:26]OFD Sender: No OFD packet to send [21:52:31]OFD Sender: No OFD packet to send [21:52:36]OFD Sender: No OFD packet to send [21:52:41]OFD Sender: No OFD packet to send [21:52:46]OFD Sender: No OFD packet to send [21:52:51]OFD Sender: No OFD packet to send [21:52:55]accept exits with 9 [21:52:55]New connection [21:52:55]New thread 3066809700 created [21:52:55]Thread 3066666340 joined [21:52:55]Waiting for new connection... [21:52:55] Sock 9.Parse request [21:52:55]Sock 9.Check first char [21:52:55]Sock 9.First char is OK [21:52:55]request: POST /json_proto HTTP/1.0 [21:52:55]Method: POST [21:52:55]URL: /json_proto [21:52:55]Method is POST - this is cgi request [21:52:55]url: /json_proto [21:52:55]query_string will be loaded in cgi processing [21:52:55]execute_cgi json_proto POST (null) [21:52:55]execute_cgi path=json_proto method=POST [21:52:55]POST find Content-Length [21:52:55]Host: 172.17.44.195:8080 [21:52:55]Content-Length: 679 [21:52:55]Content-Type: application/json [21:52:55] [21:52:55]POST finish read [21:52:55]Found Content-Length = 679 [21:52:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963369", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:52:55]execute_script... [21:52: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)1963369", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:52:55]POST & json_proto [21:52:55]process_json_proto [21:52:55]json parsed OK: [21:52:55]protocol is kg_v1.0 [21:52:55]action value=close_receipt [21:52:55]process_action close_receipt [21:52:55]cmd_close_receipt [21:52:55]MH_GetDate [21:52:55]Write to MH i2c: F0 00 00 C0 18 C7 [21:52:55]Write i2c OK [21:52:55]MH_I2C_Read... [21:52:55]Read from MH i2c: F0 [21:52:55]MH_I2C_Read... [21:52:55]Read from MH i2c: F0 09 00 [21:52:55]MH_I2C_Read... [21:52:55]Read from MH i2c: F0 09 00 C0 18 00 B8 7B 15 67 82 C9 CF 66 FF [21:52:55]GetLastDocTimeStamp 1729461139 [21:52:55]current date 1729461176 [21:52:55]FM_GetShiftState [21:52:55]SAM_PROTO_GetShiftState [21:52:55]wFMCommunicate request_size=4 [21:52:55]MH_SAM_APDU [21:52:55]CAPDU: 80 13 01 00 [21:52:55]Write to MH i2c: E2 08 00 C1 18 80 13 01 00 00 00 00 00 56 [21:52:55]Write i2c OK [21:52:55]MH_I2C_Read... [21:52:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:52:55]Read from MH i2c: E2 [21:52:55]MH_I2C_Read... [21:52:55]Read from MH i2c: E2 0E 00 [21:52:55]MH_I2C_Read... [21:52:55]Read from MH i2c: E2 0E 00 C1 18 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 70 [21:52:55]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:52:55]wFMCommunicate OK [21:52:55]SAM_PROTO_GetShiftState done [21:52:55]FM_GetShiftState done [21:52:55]opened in 1729383750 [21:52:55]opened+sec_in_day 1729470150 [21:52:55]quantity*price = 70044 [21:52:55]sum+1 = 70045 [21:52:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 552 20.10.2024 21:52 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227704 ФПД: 112166104253899 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T215256&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227704&fm=112166104253899&tin=02508201610067®Number=0000000000091685&sum=70000 [21:52:56]StoreToDocumentArchive [21:52:56]shift 533 fd 227704 [21:52:56]save to /storage/0533/doc_00227704 [21:52:56]save last doc name /storage/0533/doc_00227704 to /storage/kkm_last_doc_name [21:52:56]save OK [21:52:56]Clear old archive folders... [21:52:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:52:56]tlvbuf is 00C8C840 [21:52:56]SAM_PROTO_ClearQueue [21:52:56]wFMCommunicate request_size=4 [21:52:56]MH_SAM_APDU [21:52:56]CAPDU: 80 09 00 00 [21:52:56]Write to MH i2c: E2 08 00 CE 18 80 09 00 00 00 00 00 00 58 [21:52:56]Write i2c OK [21:52:56]MH_I2C_Read... [21:52:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:52:56]Read from MH i2c: E2 [21:52:56]MH_I2C_Read... [21:52:56]Read from MH i2c: E2 03 00 [21:52:56]MH_I2C_Read... [21:52:56]Read from MH i2c: E2 03 00 CE 18 00 90 00 5A [21:52:56]RAPDU: 90 00 [21:52:56]wFMCommunicate OK [21:52:56]SAM_PROTO_ClearQueue done [21:52:56]KKMCreateOFDPacket [21:52:56]OFDProtocolAddRootSTLVToBuf [21:52:56]FM_MakeSignedData [21:52:56]FM_MakeSignedData [21:52:56]SAM_PROTO_SignData [21:52:56]wFMCommunicate request_size=4 [21:52:56]MH_SAM_APDU [21:52:56]CAPDU: 80 0D 01 02 [21:52:56]Write to MH i2c: E2 08 00 CF 18 80 0D 01 02 00 00 00 00 60 [21:52:56]Write i2c OK [21:52:56]MH_I2C_Read... [21:52:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:52:56]Read from MH i2c: E2 [21:52:56]MH_I2C_Read... [21:52:56]Read from MH i2c: E2 03 00 [21:52:56]MH_I2C_Read... [21:52:56]Read from MH i2c: E2 03 00 CF 18 00 90 00 5B [21:52:56]RAPDU: 90 00 [21:52:56]wFMCommunicate OK [21:52:56]wFMCommunicate request_size=255 [21:52:56]MH_SAM_APDU [21:52:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 02 00 00 F4 03 04 00 B8 7B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 78 79 03 00 35 04 06 00 66 [21:52:56]Write to MH i2c: E2 02 01 D0 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 02 00 00 F4 03 04 00 B8 7B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 78 79 03 00 35 04 06 00 66 00 00 51 [21:52:56]Write i2c OK [21:52:56]MH_I2C_Read... [21:52:56]OFD Sender: No OFD packet to send [21:52:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:52:56]Read from MH i2c: E2 [21:52:56]MH_I2C_Read... [21:52:56]Read from MH i2c: E2 03 00 [21:52:56]MH_I2C_Read... [21:52:56]Read from MH i2c: E2 03 00 D0 18 00 90 00 5C [21:52:56]RAPDU: 90 00 [21:52:56]wFMCommunicate OK [21:52:56]wFMCommunicate request_size=10 [21:52:56]MH_SAM_APDU [21:52:56]CAPDU: 80 0D 02 02 05 03 B4 CC C5 CB [21:52:56]Write to MH i2c: E2 0D 00 D1 18 80 0D 02 02 05 00 03 B4 CC C5 CB 00 00 80 [21:52:56]Write i2c OK [21:52:56]MH_I2C_Read... [21:52:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:52:56]Read from MH i2c: E2 [21:52:56]MH_I2C_Read... [21:52:56]Read from MH i2c: E2 03 00 [21:52:56]MH_I2C_Read... [21:52:56]Read from MH i2c: E2 03 00 D1 18 00 90 00 5D [21:52:56]RAPDU: 90 00 [21:52:56]wFMCommunicate OK [21:52:56]wFMCommunicate request_size=4 [21:52:56]MH_SAM_APDU [21:52:56]CAPDU: 80 0D 03 02 [21:52:56]Write to MH i2c: E2 08 00 D2 18 80 0D 03 02 00 00 00 00 65 [21:52:56]Write i2c OK [21:52:56]MH_I2C_Read... [21:52:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:52:56]Read from MH i2c: E2 [21:52:56]MH_I2C_Read... [21:52:56]Read from MH i2c: E2 0B 00 [21:52:56]MH_I2C_Read... [21:52:56]Read from MH i2c: E2 0B 00 D2 18 00 66 43 9A C8 65 EA F8 87 90 00 3F [21:52:56]RAPDU: 66 43 9A C8 65 EA F8 87 90 00 [21:52:56]wFMCommunicate OK [21:52:56]SAM_PROTO_SignData done [21:52:56]FM_MakeSignedData done [21:52:56]CreateOFDProtocolMessage [21:52:56]wFMCommunicate request_size=4 [21:52:56]MH_SAM_APDU [21:52:56]CAPDU: 80 11 00 00 [21:52:56]Write to MH i2c: E2 08 00 D3 18 80 11 00 00 00 00 00 00 65 [21:52:56]Write i2c OK [21:52:56]MH_I2C_Read... [21:52:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:52:56]Read from MH i2c: E2 [21:52:56]MH_I2C_Read... [21:52:56]Read from MH i2c: E2 17 00 [21:52:56]MH_I2C_Read... [21:52:56]Read from MH i2c: E2 17 00 D3 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 BC [21:52:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:52:56]wFMCommunicate OK [21:52:56]CreateOFDProtocolMessage done [21:52:56]OFDSenderStorePacket 227704 [21:52:56]StoreOFDPacket docnum=227704 [21:52:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 9B F2 07 01 E8 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 02 00 00 F4 03 04 00 B8 7B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 78 79 03 00 35 04 06 00 66 03 B4 CC C5 CB 66 43 9A C8 65 EA F8 87 [21:52:56]CheckFolder [21:52:56]dirname=/storage/ofd_packets [21:52:56]CheckFolder done [21:52:56]ProducePacketName [21:52:56]name=ofd_packets/00227704 [21:52:56]NVStorageSaveData ofd_packets/00227704 [21:52:56]File name is /storage/ofd_packets/00227704 [21:52:56]Write 301 bytes [21:52:56]NVStorageSaveData done [21:52:56]OFDSenderStorePacket done [21:52:56]KKMCreateOFDPacket done [21:52:56]NVStorageSaveData kkm_last_timestamp [21:52:56]File name is /storage/kkm_last_timestamp [21:52:56]Write 4 bytes [21:52:56]NVStorageSaveData done [21:52:56]ExternCall_PrintAddStr [21:52:56]wPrintStart [21:52:56]Write to MH i2c: 01 00 00 D4 18 EC [21:52:56]Write i2c OK [21:52:56]MH_I2C_Read... [21:52:56]Read from MH i2c: 01 [21:52:56]MH_I2C_Read... [21:52:56]Read from MH i2c: 01 07 00 [21:52:56]MH_I2C_Read... [21:52:56]Read from MH i2c: 01 07 00 D4 18 00 00 00 00 00 FF 0F 01 [21:52:56]RasterBufferAndPrint [21:52:56]line Счет N : (1)1963369 [21:52:56]line ИНН: 02508201610067 [21:52:56]line Контрольно-Кассовый Чек [21:52:56]line ПРОДАЖА [21:52:56]line ТРК (МРК, ГНК) : 33 [21:52:56]line Товар: 2710124130 [21:52:56]line Аи-92-К-5 [21:52:56]line 10.470 * 66.90 [21:52:56]line = 700.44 [21:52:56]line НДС 12% НСП 1% [21:52:56]line > о реализуемом товаре [21:52:56]line ОКРУГЛЕНИЕ: -0.44 [21:52:56]line ИТОГО: 700.00 [21:52:56]line Внесено: 700.00 [21:52:56]line СДАЧА: 0.00 [21:52:56]line НСП 1% : 6.20 [21:52:56]line НДС 12% : 74.38 [21:52:56]line Наличными: 700.00 [21:52:56]line Безнал.: 0.00 [21:52:56]line Место: АЗС № 133 "Партнер Нефть" [21:52:56]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [21:52:56]line СНО: Общий режим [21:52:56]line Чек 552 20.10.2024 21:52 [21:52:56]line Смена: 533 ФФД: 1.0 [21:52:56]line ЗНМ: 0300000091 [21:52:56]line РНМ: 0000000000091685 [21:52:56]line Версия ККМ: 001 [21:52:56]line ФМ: 0000000000871839 [21:52:56]line ФД: 227704 [21:52:56]line ФПД: 112166104253899 [21:52:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T215256&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227704&fm=112166104253899&tin=02508201610067®Number=0000000000091685&sum=70000 [21:52:57]OFD Sender: Processing packet 227704 [packets to send 38, broken 37] [21:52:57]ProducePacketName [21:52:57]name=ofd_packets/00227704 [21:52:57]OFD Sender: To server: pG, [21:52:57]CommunicateWithHost lk.salyk.kg:30040 [21:52:57]ConnectInit lk.salyk.kg [21:52:57]written 0, free lines is 4095 [21:52:57]Connected sock=10 [21:52: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 33 39 0F 01 00 00 9B F2 07 01 E8 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 02 00 00 F4 03 04 00 B8 7B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 78 79 03 00 35 04 06 00 66 03 B4 CC C5 CB 66 43 9A C8 65 EA F8 87 [21:52: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 33 39 4F 00 00 00 98 BC 47 00 F9 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 78 79 03 00 F4 03 04 00 B6 26 15 67 B6 04 01 00 00 89 AA 30 AF 4D 7C 9B 0A [21:52:57]CommunicateWithHost err = 0 [21:52:57]CheckOFDResponse [21:52:57]1017 (14) - 77093643461234 [21:52:57]1041 (16) - 0000000000871839 [21:52:57]1040 (4) - 227704 [21:52:57]1012 (4) - 20.10.2024 15:50 [21:52:57]1206 (1) - 0 [21:52:57]OFD Sender: Remove packet 227704 [21:52:57]ProducePacketName [21:52:57]name=ofd_packets/00227704 [21:52:57]NVStorageDeleteData [21:52:57]Write to MH i2c: 01 00 00 FE 18 16 [21:52:57]Write i2c OK [21:52:57]MH_I2C_Read... [21:52:57]Read from MH i2c: 01 [21:52:57]MH_I2C_Read... [21:52:57]Read from MH i2c: 01 07 00 [21:52:57]MH_I2C_Read... [21:52:57]Read from MH i2c: 01 07 00 FE 18 00 00 00 00 00 B2 0C DB [21:52:57]RasterBufferAndPrint [21:52:57]line [21:52:57]line [21:52:57]line [21:52:57]line [21:52:57]line [21:52:57]written 0, free lines is 3254 [21:52:57]MH_Cut [21:52:57]Write to MH i2c: D1 01 00 05 19 01 F0 [21:52:57]Write i2c OK [21:52:57]MH_I2C_Read... [21:52:57]Read from MH i2c: D1 [21:52:57]MH_I2C_Read... [21:52:57]Read from MH i2c: D1 01 00 [21:52:57]MH_I2C_Read... [21:52:57]Read from MH i2c: D1 01 00 05 19 00 EF [21:52:57]Write to MH i2c: 01 00 00 06 19 1F [21:52:57]Write i2c OK [21:52:57]MH_I2C_Read... [21:52:57]OFD Sender: No OFD packet to send [21:52:58]*** Cut start [21:52:58]*** Partial cut [21:52:58]*** CUTSNS_PIN = 1 [21:52:58]*** CUTSNS_PIN = 0 [21:52:58]*** Brake cut motor [21:52:59]Read from MH i2c: 01 [21:52:59]MH_I2C_Read... [21:52:59]*** Stop cut motor [21:52:59]*** Cut end [21:52:59]Read from MH i2c: 01 07 00 [21:52:59]MH_I2C_Read... [21:52:59]Read from MH i2c: 01 07 00 06 19 00 00 00 00 00 FF 0F 34 [21:52:59]process_action close_receipt done [21:52:59]requested_data is exist [21:52:59]produce_requested_data [21:52:59]requested_item fm.sn is exist - process it [21:52:59]wFMCommunicate request_size=4 [21:52:59]MH_SAM_APDU [21:52:59]CAPDU: 80 11 00 00 [21:52:59]Write to MH i2c: E2 08 00 07 19 80 11 00 00 00 00 00 00 9A [21:52:59]Write i2c OK [21:52:59]MH_I2C_Read... [21:52:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:52:59]Read from MH i2c: E2 [21:52:59]MH_I2C_Read... [21:52:59]Read from MH i2c: E2 17 00 [21:52:59]MH_I2C_Read... [21:52:59]Read from MH i2c: E2 17 00 07 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F1 [21:52:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:52:59]wFMCommunicate OK [21:52:59]requested_item fd.num is exist - process it [21:52:59]SAM_PROTO_GetFieldsCounters [21:52:59]wFMCommunicate request_size=4 [21:52:59]MH_SAM_APDU [21:52:59]CAPDU: 80 13 00 00 [21:52:59]Write to MH i2c: E2 08 00 08 19 80 13 00 00 00 00 00 00 9D [21:52:59]Write i2c OK [21:52:59]MH_I2C_Read... [21:52:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:52:59]Read from MH i2c: E2 [21:52:59]MH_I2C_Read... [21:52:59]Read from MH i2c: E2 62 00 [21:52:59]MH_I2C_Read... [21:52:59]Read from MH i2c: E2 62 00 08 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 78 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 28 02 00 00 5E 04 04 00 28 02 00 00 57 04 04 00 29 02 00 00 19 04 04 00 00 00 00 00 90 00 4F [21:52: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 78 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 28 02 00 00 5E 04 04 00 28 02 00 00 57 04 04 00 29 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:52:59]wFMCommunicate OK [21:52:59]SAM_PROTO_GetFieldsCounters done [21:52:59]requested_item shift.num is exist - process it [21:52:59]requested_item shift.opened is exist - process it [21:52:59]req_shift_opened [21:52:59]FM_GetShiftState [21:52:59]SAM_PROTO_GetShiftState [21:52:59]wFMCommunicate request_size=4 [21:52:59]MH_SAM_APDU [21:52:59]CAPDU: 80 13 01 00 [21:52:59]Write to MH i2c: E2 08 00 09 19 80 13 01 00 00 00 00 00 9F [21:52:59]Write i2c OK [21:52:59]MH_I2C_Read... [21:52:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:52:59]Read from MH i2c: E2 [21:52:59]MH_I2C_Read... [21:52:59]Read from MH i2c: E2 0E 00 [21:52:59]MH_I2C_Read... [21:52:59]Read from MH i2c: E2 0E 00 09 19 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 B9 [21:52:59]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:52:59]wFMCommunicate OK [21:52:59]SAM_PROTO_GetShiftState done [21:52:59]FM_GetShiftState done [21:52:59]req_shift_opened done [21:52:59]requested_item shift.open_date is exist - process it [21:52:59]req_shift_open_date [21:52:59]req_shift_open_date done [21:52:59]produce_requested_data done [21:52:59]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227704,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [21:52:59]process_action_free close_receipt [21:52:59]json_value_free [21:52:59]json_value_free done [21:52:59]process_json_proto returns [21:52:59]Send response to host [21:52:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227704,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [21:52:59]free response buf [21:52:59]execute_script done [21:52:59]execute_script returns [21:52:59]free content buf [21:52:59]Sock 9.Close socket [21:52:59]Sock 9.Thread stoped [21:53:02]OFD Sender: No OFD packet to send [21:53:08]OFD Sender: No OFD packet to send [21:53:10]accept exits with 7 [21:53:10]New connection [21:53:10]New thread 3066666340 created [21:53:10]Thread 3066809700 joined [21:53:10]Waiting for new connection... [21:53:10] Sock 7.Parse request [21:53:10]Sock 7.Check first char [21:53:10]Sock 7.First char is OK [21:53:10]request: POST /json_proto HTTP/1.0 [21:53:10]Method: POST [21:53:10]URL: /json_proto [21:53:10]Method is POST - this is cgi request [21:53:10]url: /json_proto [21:53:10]query_string will be loaded in cgi processing [21:53:10]execute_cgi json_proto POST (null) [21:53:10]execute_cgi path=json_proto method=POST [21:53:10]POST find Content-Length [21:53:10]Host: 172.17.44.195:8080 [21:53:10]Content-Length: 680 [21:53:10]Content-Type: application/json [21:53:10] [21:53:10]POST finish read [21:53:10]Found Content-Length = 680 [21:53:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963368", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:53:10]execute_script... [21:53:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963368", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:53:10]POST & json_proto [21:53:10]process_json_proto [21:53:10]json parsed OK: [21:53:10]protocol is kg_v1.0 [21:53:10]action value=close_receipt [21:53:10]process_action close_receipt [21:53:10]cmd_close_receipt [21:53:10]MH_GetDate [21:53:10]Write to MH i2c: F0 00 00 0A 19 12 [21:53:10]Write i2c OK [21:53:10]MH_I2C_Read... [21:53:10]Read from MH i2c: F0 [21:53:10]MH_I2C_Read... [21:53:10]Read from MH i2c: F0 09 00 [21:53:10]MH_I2C_Read... [21:53:10]Read from MH i2c: F0 09 00 0A 19 00 C8 7B 15 67 82 C9 CF 66 5A [21:53:10]GetLastDocTimeStamp 1729461176 [21:53:10]current date 1729461192 [21:53:10]FM_GetShiftState [21:53:10]SAM_PROTO_GetShiftState [21:53:10]wFMCommunicate request_size=4 [21:53:10]MH_SAM_APDU [21:53:10]CAPDU: 80 13 01 00 [21:53:10]Write to MH i2c: E2 08 00 0B 19 80 13 01 00 00 00 00 00 A1 [21:53:10]Write i2c OK [21:53:10]MH_I2C_Read... [21:53:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:53:10]Read from MH i2c: E2 [21:53:10]MH_I2C_Read... [21:53:10]Read from MH i2c: E2 0E 00 [21:53:10]MH_I2C_Read... [21:53:10]Read from MH i2c: E2 0E 00 0B 19 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 BB [21:53:10]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:53:10]wFMCommunicate OK [21:53:10]SAM_PROTO_GetShiftState done [21:53:10]FM_GetShiftState done [21:53:10]opened in 1729383750 [21:53:10]opened+sec_in_day 1729470150 [21:53:10]quantity*price = 300075 [21:53:10]sum+1 = 300077 [21:53:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 553 20.10.2024 21:53 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227705 ФПД: 231313296291883 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T215312&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227705&fm=231313296291883&tin=02508201610067®Number=0000000000091685&sum=300000 [21:53:11]StoreToDocumentArchive [21:53:11]shift 533 fd 227705 [21:53:11]save to /storage/0533/doc_00227705 [21:53:11]save last doc name /storage/0533/doc_00227705 to /storage/kkm_last_doc_name [21:53:11]save OK [21:53:11]Clear old archive folders... [21:53:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:53:11]tlvbuf is B6D85190 [21:53:11]SAM_PROTO_ClearQueue [21:53:11]wFMCommunicate request_size=4 [21:53:11]MH_SAM_APDU [21:53:11]CAPDU: 80 09 00 00 [21:53:11]Write to MH i2c: E2 08 00 18 19 80 09 00 00 00 00 00 00 A3 [21:53:11]Write i2c OK [21:53:11]MH_I2C_Read... [21:53:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:53:11]Read from MH i2c: E2 [21:53:11]MH_I2C_Read... [21:53:11]Read from MH i2c: E2 03 00 [21:53:11]MH_I2C_Read... [21:53:11]Read from MH i2c: E2 03 00 18 19 00 90 00 A5 [21:53:11]RAPDU: 90 00 [21:53:11]wFMCommunicate OK [21:53:11]SAM_PROTO_ClearQueue done [21:53:11]KKMCreateOFDPacket [21:53:11]OFDProtocolAddRootSTLVToBuf [21:53:11]FM_MakeSignedData [21:53:11]FM_MakeSignedData [21:53:11]SAM_PROTO_SignData [21:53:11]wFMCommunicate request_size=4 [21:53:11]MH_SAM_APDU [21:53:11]CAPDU: 80 0D 01 02 [21:53:11]Write to MH i2c: E2 08 00 19 19 80 0D 01 02 00 00 00 00 AB [21:53:11]Write i2c OK [21:53:11]MH_I2C_Read... [21:53:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:53:11]Read from MH i2c: E2 [21:53:11]MH_I2C_Read... [21:53:11]Read from MH i2c: E2 03 00 [21:53:11]MH_I2C_Read... [21:53:11]Read from MH i2c: E2 03 00 19 19 00 90 00 A6 [21:53:11]RAPDU: 90 00 [21:53:11]wFMCommunicate OK [21:53:11]wFMCommunicate request_size=255 [21:53:11]MH_SAM_APDU [21:53:11]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 02 00 00 F4 03 04 00 C8 7B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 79 79 03 00 35 04 06 00 D2 60 D2 DB [21:53:11]Write to MH i2c: E2 02 01 1A 19 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 02 00 00 F4 03 04 00 C8 7B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 79 79 03 00 35 04 06 00 D2 60 D2 DB 00 00 44 [21:53:11]Write i2c OK [21:53:11]MH_I2C_Read... [21:53:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:53:12]Read from MH i2c: E2 [21:53:12]MH_I2C_Read... [21:53:12]Read from MH i2c: E2 03 00 [21:53:12]MH_I2C_Read... [21:53:12]Read from MH i2c: E2 03 00 1A 19 00 90 00 A7 [21:53:12]RAPDU: 90 00 [21:53:12]wFMCommunicate OK [21:53:12]wFMCommunicate request_size=7 [21:53:12]MH_SAM_APDU [21:53:12]CAPDU: 80 0D 02 02 02 78 2B [21:53:12]Write to MH i2c: E2 0A 00 1B 19 80 0D 02 02 02 00 78 2B 00 00 55 [21:53:12]Write i2c OK [21:53:12]MH_I2C_Read... [21:53:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:53:12]Read from MH i2c: E2 [21:53:12]MH_I2C_Read... [21:53:12]Read from MH i2c: E2 03 00 [21:53:12]MH_I2C_Read... [21:53:12]Read from MH i2c: E2 03 00 1B 19 00 90 00 A8 [21:53:12]RAPDU: 90 00 [21:53:12]wFMCommunicate OK [21:53:12]wFMCommunicate request_size=4 [21:53:12]MH_SAM_APDU [21:53:12]CAPDU: 80 0D 03 02 [21:53:12]Write to MH i2c: E2 08 00 1C 19 80 0D 03 02 00 00 00 00 B0 [21:53:12]Write i2c OK [21:53:12]MH_I2C_Read... [21:53:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:53:12]Read from MH i2c: E2 [21:53:12]MH_I2C_Read... [21:53:12]Read from MH i2c: E2 0B 00 [21:53:12]MH_I2C_Read... [21:53:12]Read from MH i2c: E2 0B 00 1C 19 00 CB F0 E7 8F 06 90 F3 FC 90 00 67 [21:53:12]RAPDU: CB F0 E7 8F 06 90 F3 FC 90 00 [21:53:12]wFMCommunicate OK [21:53:12]SAM_PROTO_SignData done [21:53:12]FM_MakeSignedData done [21:53:12]CreateOFDProtocolMessage [21:53:12]wFMCommunicate request_size=4 [21:53:12]MH_SAM_APDU [21:53:12]CAPDU: 80 11 00 00 [21:53:12]Write to MH i2c: E2 08 00 1D 19 80 11 00 00 00 00 00 00 B0 [21:53:12]Write i2c OK [21:53:12]MH_I2C_Read... [21:53:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:53:12]Read from MH i2c: E2 [21:53:12]MH_I2C_Read... [21:53:12]Read from MH i2c: E2 17 00 [21:53:12]MH_I2C_Read... [21:53:12]Read from MH i2c: E2 17 00 1D 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 07 [21:53:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:53:12]wFMCommunicate OK [21:53:12]CreateOFDProtocolMessage done [21:53:12]OFDSenderStorePacket 227705 [21:53:12]StoreOFDPacket docnum=227705 [21:53:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 0D E5 04 01 ED F8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 02 00 00 F4 03 04 00 C8 7B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 79 79 03 00 35 04 06 00 D2 60 D2 DB 78 2B CB F0 E7 8F 06 90 F3 FC [21:53:12]CheckFolder [21:53:12]dirname=/storage/ofd_packets [21:53:12]CheckFolder done [21:53:12]ProducePacketName [21:53:12]name=ofd_packets/00227705 [21:53:12]NVStorageSaveData ofd_packets/00227705 [21:53:12]File name is /storage/ofd_packets/00227705 [21:53:12]Write 298 bytes [21:53:12]NVStorageSaveData done [21:53:12]OFDSenderStorePacket done [21:53:12]KKMCreateOFDPacket done [21:53:12]NVStorageSaveData kkm_last_timestamp [21:53:12]File name is /storage/kkm_last_timestamp [21:53:12]Write 4 bytes [21:53:12]NVStorageSaveData done [21:53:12]ExternCall_PrintAddStr [21:53:12]wPrintStart [21:53:12]Write to MH i2c: 01 00 00 1E 19 37 [21:53:12]Write i2c OK [21:53:12]MH_I2C_Read... [21:53:12]Read from MH i2c: 01 [21:53:12]MH_I2C_Read... [21:53:12]Read from MH i2c: 01 07 00 [21:53:12]MH_I2C_Read... [21:53:12]Read from MH i2c: 01 07 00 1E 19 00 00 00 00 00 FF 0F 4C [21:53:12]RasterBufferAndPrint [21:53:12]line Счет N : (1)1963368 [21:53:12]line ИНН: 02508201610067 [21:53:12]line Контрольно-Кассовый Чек [21:53:12]line ПРОДАЖА [21:53:12]line ТРК (МРК, ГНК) : 11 [21:53:12]line Товар: 2710194210 [21:53:12]line ДТ-К-5 [21:53:12]line 39.380 * 76.20 [21:53:12]line = 3000.76 [21:53:12]line НДС 12% НСП 1% [21:53:12]line > о реализуемом товаре [21:53:12]line ОКРУГЛЕНИЕ: -0.76 [21:53:12]line ИТОГО: 3000.00 [21:53:12]line Внесено: 3000.00 [21:53:12]line СДАЧА: 0.00 [21:53:12]line НСП 1% : 26.55 [21:53:12]line НДС 12% : 318.66 [21:53:12]line Наличными: 3000.00 [21:53:12]line Безнал.: 0.00 [21:53:12]line Место: АЗС № 133 "Партнер Нефть" [21:53:12]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [21:53:12]line СНО: Общий режим [21:53:12]line Чек 553 20.10.2024 21:53 [21:53:12]line Смена: 533 ФФД: 1.0 [21:53:12]line ЗНМ: 0300000091 [21:53:12]line РНМ: 0000000000091685 [21:53:12]line Версия ККМ: 001 [21:53:12]line ФМ: 0000000000871839 [21:53:12]line ФД: 227705 [21:53:12]line ФПД: 231313296291883 [21:53:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T215312&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227705&fm=231313296291883&tin=02508201610067®Number=0000000000091685&sum=300000 [21:53:12]OFD Sender: Processing packet 227705 [packets to send 38, broken 37] [21:53:12]ProducePacketName [21:53:12]name=ofd_packets/00227705 [21:53:12]OFD Sender: To server: pG, [21:53:12]CommunicateWithHost lk.salyk.kg:30040 [21:53:12]ConnectInit lk.salyk.kg [21:53:12]written 0, free lines is 4095 [21:53:12]Connected sock=10 [21:53: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 33 39 0C 01 00 00 0D E5 04 01 ED F8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 02 00 00 F4 03 04 00 C8 7B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 79 79 03 00 35 04 06 00 D2 60 D2 DB 78 2B CB F0 E7 8F 06 90 F3 FC [21:53: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 33 39 4F 00 00 00 16 4F 47 00 CB 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 79 79 03 00 F4 03 04 00 C5 26 15 67 B6 04 01 00 00 30 65 E7 9B D9 69 81 B6 [21:53:13]CommunicateWithHost err = 0 [21:53:13]CheckOFDResponse [21:53:13]1017 (14) - 77093643461234 [21:53:13]1041 (16) - 0000000000871839 [21:53:13]1040 (4) - 227705 [21:53:13]1012 (4) - 20.10.2024 15:50 [21:53:13]1206 (1) - 0 [21:53:13]OFD Sender: Remove packet 227705 [21:53:13]ProducePacketName [21:53:13]name=ofd_packets/00227705 [21:53:13]NVStorageDeleteData [21:53:13]Write to MH i2c: 01 00 00 48 19 61 [21:53:13]Write i2c OK [21:53:13]MH_I2C_Read... [21:53:13]Read from MH i2c: 01 [21:53:13]MH_I2C_Read... [21:53:13]Read from MH i2c: 01 07 00 [21:53:13]MH_I2C_Read... [21:53:13]Read from MH i2c: 01 07 00 48 19 00 00 00 00 00 AE 0C 22 [21:53:13]RasterBufferAndPrint [21:53:13]line [21:53:13]line [21:53:13]line [21:53:13]line [21:53:13]line [21:53:13]written 0, free lines is 3250 [21:53:13]MH_Cut [21:53:13]Write to MH i2c: D1 01 00 4F 19 01 3A [21:53:13]Write i2c OK [21:53:13]MH_I2C_Read... [21:53:13]Read from MH i2c: D1 [21:53:13]MH_I2C_Read... [21:53:13]Read from MH i2c: D1 01 00 [21:53:13]MH_I2C_Read... [21:53:13]Read from MH i2c: D1 01 00 4F 19 00 39 [21:53:13]Write to MH i2c: 01 00 00 50 19 69 [21:53:13]Write i2c OK [21:53:13]MH_I2C_Read... [21:53:13]OFD Sender: No OFD packet to send [21:53:14]*** Cut start [21:53:14]*** Partial cut [21:53:14]*** CUTSNS_PIN = 1 [21:53:14]*** CUTSNS_PIN = 0 [21:53:14]*** Brake cut motor [21:53:14]Read from MH i2c: 01 [21:53:14]MH_I2C_Read... [21:53:14]*** Stop cut motor [21:53:14]*** Cut end [21:53:14]Read from MH i2c: 01 07 00 [21:53:14]MH_I2C_Read... [21:53:14]Read from MH i2c: 01 07 00 50 19 00 00 00 00 00 FF 0F 7E [21:53:14]process_action close_receipt done [21:53:14]requested_data is exist [21:53:14]produce_requested_data [21:53:14]requested_item fm.sn is exist - process it [21:53:14]wFMCommunicate request_size=4 [21:53:14]MH_SAM_APDU [21:53:14]CAPDU: 80 11 00 00 [21:53:14]Write to MH i2c: E2 08 00 51 19 80 11 00 00 00 00 00 00 E4 [21:53:14]Write i2c OK [21:53:14]MH_I2C_Read... [21:53:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:53:14]Read from MH i2c: E2 [21:53:14]MH_I2C_Read... [21:53:14]Read from MH i2c: E2 17 00 [21:53:14]MH_I2C_Read... [21:53:14]Read from MH i2c: E2 17 00 51 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 3B [21:53:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:53:14]wFMCommunicate OK [21:53:14]requested_item fd.num is exist - process it [21:53:14]SAM_PROTO_GetFieldsCounters [21:53:14]wFMCommunicate request_size=4 [21:53:14]MH_SAM_APDU [21:53:14]CAPDU: 80 13 00 00 [21:53:14]Write to MH i2c: E2 08 00 52 19 80 13 00 00 00 00 00 00 E7 [21:53:14]Write i2c OK [21:53:14]MH_I2C_Read... [21:53:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:53:14]Read from MH i2c: E2 [21:53:14]MH_I2C_Read... [21:53:14]Read from MH i2c: E2 62 00 [21:53:14]MH_I2C_Read... [21:53:14]Read from MH i2c: E2 62 00 52 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 79 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 29 02 00 00 5E 04 04 00 29 02 00 00 57 04 04 00 2A 02 00 00 19 04 04 00 00 00 00 00 90 00 9D [21:53: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 79 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 29 02 00 00 5E 04 04 00 29 02 00 00 57 04 04 00 2A 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:53:14]wFMCommunicate OK [21:53:14]SAM_PROTO_GetFieldsCounters done [21:53:14]requested_item shift.num is exist - process it [21:53:14]requested_item shift.opened is exist - process it [21:53:14]req_shift_opened [21:53:14]FM_GetShiftState [21:53:14]SAM_PROTO_GetShiftState [21:53:14]wFMCommunicate request_size=4 [21:53:14]MH_SAM_APDU [21:53:14]CAPDU: 80 13 01 00 [21:53:14]Write to MH i2c: E2 08 00 53 19 80 13 01 00 00 00 00 00 E9 [21:53:14]Write i2c OK [21:53:14]MH_I2C_Read... [21:53:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:53:14]Read from MH i2c: E2 [21:53:14]MH_I2C_Read... [21:53:14]Read from MH i2c: E2 0E 00 [21:53:14]MH_I2C_Read... [21:53:14]Read from MH i2c: E2 0E 00 53 19 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 03 [21:53:14]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:53:14]wFMCommunicate OK [21:53:14]SAM_PROTO_GetShiftState done [21:53:14]FM_GetShiftState done [21:53:14]req_shift_opened done [21:53:14]requested_item shift.open_date is exist - process it [21:53:14]req_shift_open_date [21:53:14]req_shift_open_date done [21:53:14]produce_requested_data done [21:53:14]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227705,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [21:53:14]process_action_free close_receipt [21:53:14]json_value_free [21:53:14]json_value_free done [21:53:14]process_json_proto returns [21:53:14]Send response to host [21:53:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227705,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [21:53:14]free response buf [21:53:14]execute_script done [21:53:14]execute_script returns [21:53:14]free content buf [21:53:14]Sock 7.Close socket [21:53:14]Sock 7.Thread stoped [21:53:18]OFD Sender: No OFD packet to send [21:53:23]OFD Sender: No OFD packet to send [21:53:28]OFD Sender: No OFD packet to send [21:53:33]accept exits with 9 [21:53:33]New connection [21:53:33]New thread 3066809700 created [21:53:33]Thread 3066666340 joined [21:53:33]Waiting for new connection... [21:53:33] Sock 9.Parse request [21:53:33]Sock 9.Check first char [21:53:33]Sock 9.First char is OK [21:53:33]request: POST /json_proto HTTP/1.0 [21:53:33]Method: POST [21:53:33]URL: /json_proto [21:53:33]Method is POST - this is cgi request [21:53:33]url: /json_proto [21:53:33]query_string will be loaded in cgi processing [21:53:33]execute_cgi json_proto POST (null) [21:53:33]execute_cgi path=json_proto method=POST [21:53:33]POST find Content-Length [21:53:33]Host: 172.17.44.195:8080 [21:53:33]Content-Length: 678 [21:53:33]Content-Type: application/json [21:53:33] [21:53:33]POST finish read [21:53:33]Found Content-Length = 678 [21:53:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963370", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:53:33]execute_script... [21:53:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963370", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:53:33]POST & json_proto [21:53:33]process_json_proto [21:53:33]json parsed OK: [21:53:33]protocol is kg_v1.0 [21:53:33]action value=close_receipt [21:53:33]process_action close_receipt [21:53:33]cmd_close_receipt [21:53:33]MH_GetDate [21:53:33]Write to MH i2c: F0 00 00 54 19 5C [21:53:33]Write i2c OK [21:53:33]MH_I2C_Read... [21:53:33]Read from MH i2c: F0 [21:53:33]MH_I2C_Read... [21:53:33]Read from MH i2c: F0 09 00 [21:53:33]MH_I2C_Read... [21:53:33]Read from MH i2c: F0 09 00 54 19 00 DE 7B 15 67 82 C9 CF 66 BA [21:53:33]GetLastDocTimeStamp 1729461192 [21:53:33]current date 1729461214 [21:53:33]FM_GetShiftState [21:53:33]SAM_PROTO_GetShiftState [21:53:33]wFMCommunicate request_size=4 [21:53:33]MH_SAM_APDU [21:53:33]CAPDU: 80 13 01 00 [21:53:33]Write to MH i2c: E2 08 00 55 19 80 13 01 00 00 00 00 00 EB [21:53:33]Write i2c OK [21:53:33]MH_I2C_Read... [21:53:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:53:33]Read from MH i2c: E2 [21:53:33]MH_I2C_Read... [21:53:33]Read from MH i2c: E2 0E 00 [21:53:33]MH_I2C_Read... [21:53:33]Read from MH i2c: E2 0E 00 55 19 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 05 [21:53:33]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:53:33]wFMCommunicate OK [21:53:33]SAM_PROTO_GetShiftState done [21:53:33]FM_GetShiftState done [21:53:33]opened in 1729383750 [21:53:33]opened+sec_in_day 1729470150 [21:53:33]quantity*price = 50041 [21:53:33]sum+1 = 50042 [21:53:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 554 20.10.2024 21:53 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227706 ФПД: 176459480549915 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T215334&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227706&fm=176459480549915&tin=02508201610067®Number=0000000000091685&sum=50000 [21:53:34]StoreToDocumentArchive [21:53:34]shift 533 fd 227706 [21:53:34]save to /storage/0533/doc_00227706 [21:53:34]save last doc name /storage/0533/doc_00227706 to /storage/kkm_last_doc_name [21:53:34]save OK [21:53:34]Clear old archive folders... [21:53:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:53:34]tlvbuf is B6D852D0 [21:53:34]SAM_PROTO_ClearQueue [21:53:34]wFMCommunicate request_size=4 [21:53:34]MH_SAM_APDU [21:53:34]CAPDU: 80 09 00 00 [21:53:34]Write to MH i2c: E2 08 00 62 19 80 09 00 00 00 00 00 00 ED [21:53:34]Write i2c OK [21:53:34]MH_I2C_Read... [21:53:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:53:34]Read from MH i2c: E2 [21:53:34]MH_I2C_Read... [21:53:34]Read from MH i2c: E2 03 00 [21:53:34]MH_I2C_Read... [21:53:34]Read from MH i2c: E2 03 00 62 19 00 90 00 EF [21:53:34]RAPDU: 90 00 [21:53:34]wFMCommunicate OK [21:53:34]SAM_PROTO_ClearQueue done [21:53:34]KKMCreateOFDPacket [21:53:34]OFDProtocolAddRootSTLVToBuf [21:53:34]FM_MakeSignedData [21:53:34]FM_MakeSignedData [21:53:34]SAM_PROTO_SignData [21:53:34]wFMCommunicate request_size=4 [21:53:34]MH_SAM_APDU [21:53:34]CAPDU: 80 0D 01 02 [21:53:34]Write to MH i2c: E2 08 00 63 19 80 0D 01 02 00 00 00 00 F5 [21:53:34]Write i2c OK [21:53:34]MH_I2C_Read... [21:53:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:53:34]Read from MH i2c: E2 [21:53:34]MH_I2C_Read... [21:53:34]Read from MH i2c: E2 03 00 [21:53:34]MH_I2C_Read... [21:53:34]Read from MH i2c: E2 03 00 63 19 00 90 00 F0 [21:53:34]RAPDU: 90 00 [21:53:34]wFMCommunicate OK [21:53:34]wFMCommunicate request_size=255 [21:53:34]MH_SAM_APDU [21:53:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 02 00 00 F4 03 04 00 DE 7B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7A 79 03 00 35 04 06 00 A0 [21:53:34]Write to MH i2c: E2 02 01 64 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 02 00 00 F4 03 04 00 DE 7B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7A 79 03 00 35 04 06 00 A0 00 00 3A [21:53:34]Write i2c OK [21:53:34]MH_I2C_Read... [21:53:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:53:34]Read from MH i2c: E2 [21:53:34]MH_I2C_Read... [21:53:34]Read from MH i2c: E2 03 00 [21:53:34]MH_I2C_Read... [21:53:34]Read from MH i2c: E2 03 00 64 19 00 90 00 F1 [21:53:34]RAPDU: 90 00 [21:53:34]wFMCommunicate OK [21:53:34]wFMCommunicate request_size=10 [21:53:34]MH_SAM_APDU [21:53:34]CAPDU: 80 0D 02 02 05 7D 2C A7 CA 1B [21:53:34]Write to MH i2c: E2 0D 00 65 19 80 0D 02 02 05 00 7D 2C A7 CA 1B 00 00 37 [21:53:34]Write i2c OK [21:53:34]MH_I2C_Read... [21:53:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:53:34]Read from MH i2c: E2 [21:53:34]MH_I2C_Read... [21:53:34]Read from MH i2c: E2 03 00 [21:53:34]MH_I2C_Read... [21:53:34]Read from MH i2c: E2 03 00 65 19 00 90 00 F2 [21:53:34]RAPDU: 90 00 [21:53:34]wFMCommunicate OK [21:53:34]wFMCommunicate request_size=4 [21:53:34]MH_SAM_APDU [21:53:34]CAPDU: 80 0D 03 02 [21:53:34]Write to MH i2c: E2 08 00 66 19 80 0D 03 02 00 00 00 00 FA [21:53:34]Write i2c OK [21:53:34]MH_I2C_Read... [21:53:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:53:34]Read from MH i2c: E2 [21:53:34]MH_I2C_Read... [21:53:34]Read from MH i2c: E2 0B 00 [21:53:34]MH_I2C_Read... [21:53:34]Read from MH i2c: E2 0B 00 66 19 00 B6 ED 0C A7 2F BA 4E 3B 90 00 C3 [21:53:34]RAPDU: B6 ED 0C A7 2F BA 4E 3B 90 00 [21:53:34]wFMCommunicate OK [21:53:34]SAM_PROTO_SignData done [21:53:34]FM_MakeSignedData done [21:53:34]CreateOFDProtocolMessage [21:53:34]wFMCommunicate request_size=4 [21:53:34]MH_SAM_APDU [21:53:34]CAPDU: 80 11 00 00 [21:53:34]Write to MH i2c: E2 08 00 67 19 80 11 00 00 00 00 00 00 FA [21:53:34]Write i2c OK [21:53:34]MH_I2C_Read... [21:53:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:53:34]Read from MH i2c: E2 [21:53:34]MH_I2C_Read... [21:53:34]Read from MH i2c: E2 17 00 [21:53:34]MH_I2C_Read... [21:53:34]Read from MH i2c: E2 17 00 67 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 51 [21:53:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:53:34]wFMCommunicate OK [21:53:34]CreateOFDProtocolMessage done [21:53:34]OFDSenderStorePacket 227706 [21:53:34]StoreOFDPacket docnum=227706 [21:53:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 31 8F 07 01 D7 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 02 00 00 F4 03 04 00 DE 7B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7A 79 03 00 35 04 06 00 A0 7D 2C A7 CA 1B B6 ED 0C A7 2F BA 4E 3B [21:53:34]CheckFolder [21:53:34]dirname=/storage/ofd_packets [21:53:34]CheckFolder done [21:53:34]ProducePacketName [21:53:34]name=ofd_packets/00227706 [21:53:34]NVStorageSaveData ofd_packets/00227706 [21:53:34]File name is /storage/ofd_packets/00227706 [21:53:34]Write 301 bytes [21:53:34]NVStorageSaveData done [21:53:34]OFDSenderStorePacket done [21:53:34]KKMCreateOFDPacket done [21:53:34]NVStorageSaveData kkm_last_timestamp [21:53:34]File name is /storage/kkm_last_timestamp [21:53:34]Write 4 bytes [21:53:34]NVStorageSaveData done [21:53:34]ExternCall_PrintAddStr [21:53:34]wPrintStart [21:53:34]Write to MH i2c: 01 00 00 68 19 81 [21:53:34]Write i2c OK [21:53:34]MH_I2C_Read... [21:53:34]Read from MH i2c: 01 [21:53:34]MH_I2C_Read... [21:53:34]Read from MH i2c: 01 07 00 [21:53:34]MH_I2C_Read... [21:53:34]Read from MH i2c: 01 07 00 68 19 00 00 00 00 00 FF 0F 96 [21:53:34]RasterBufferAndPrint [21:53:34]line Счет N : (1)1963370 [21:53:34]line ИНН: 02508201610067 [21:53:34]line Контрольно-Кассовый Чек [21:53:34]line ПРОДАЖА [21:53:34]line ТРК (МРК, ГНК) : 53 [21:53:34]line Товар: 2710124130 [21:53:34]line Аи-92-К-5 [21:53:34]line 7.480 * 66.90 [21:53:34]line = 500.41 [21:53:34]line НДС 12% НСП 1% [21:53:34]line > о реализуемом товаре [21:53:34]line ОКРУГЛЕНИЕ: -0.41 [21:53:34]line ИТОГО: 500.00 [21:53:34]line Внесено: 500.00 [21:53:34]line СДАЧА: 0.00 [21:53:34]line НСП 1% : 4.43 [21:53:34]line НДС 12% : 53.14 [21:53:34]line Наличными: 500.00 [21:53:34]line Безнал.: 0.00 [21:53:34]line Место: АЗС № 133 "Партнер Нефть" [21:53:34]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [21:53:34]line СНО: Общий режим [21:53:34]line Чек 554 20.10.2024 21:53 [21:53:34]line Смена: 533 ФФД: 1.0 [21:53:34]line ЗНМ: 0300000091 [21:53:34]line РНМ: 0000000000091685 [21:53:34]line Версия ККМ: 001 [21:53:34]line ФМ: 0000000000871839 [21:53:34]line ФД: 227706 [21:53:34]line ФПД: 176459480549915 [21:53:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T215334&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227706&fm=176459480549915&tin=02508201610067®Number=0000000000091685&sum=50000 [21:53:35]written 0, free lines is 4095 [21:53:35]OFD Sender: Processing packet 227706 [packets to send 38, broken 37] [21:53:35]ProducePacketName [21:53:35]name=ofd_packets/00227706 [21:53:35]OFD Sender: To server: pG, [21:53:35]CommunicateWithHost lk.salyk.kg:30040 [21:53:35]ConnectInit lk.salyk.kg [21:53:35]Connected sock=10 [21:53:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 31 8F 07 01 D7 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 02 00 00 F4 03 04 00 DE 7B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7A 79 03 00 35 04 06 00 A0 7D 2C A7 CA 1B B6 ED 0C A7 2F BA 4E 3B [21:53: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 33 39 4F 00 00 00 DC 92 47 00 F3 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7A 79 03 00 F4 03 04 00 DC 26 15 67 B6 04 01 00 00 73 64 5F FF 1B 64 CF 26 [21:53:35]CommunicateWithHost err = 0 [21:53:35]CheckOFDResponse [21:53:35]1017 (14) - 77093643461234 [21:53:35]1041 (16) - 0000000000871839 [21:53:35]1040 (4) - 227706 [21:53:35]1012 (4) - 20.10.2024 15:50 [21:53:35]1206 (1) - 0 [21:53:35]OFD Sender: Remove packet 227706 [21:53:35]ProducePacketName [21:53:35]name=ofd_packets/00227706 [21:53:35]NVStorageDeleteData [21:53:35]Write to MH i2c: 01 00 00 92 19 AB [21:53:35]Write i2c OK [21:53:35]MH_I2C_Read... [21:53:35]Read from MH i2c: 01 [21:53:35]MH_I2C_Read... [21:53:35]Read from MH i2c: 01 07 00 [21:53:35]MH_I2C_Read... [21:53:35]Read from MH i2c: 01 07 00 92 19 00 00 00 00 00 A9 0C 67 [21:53:35]RasterBufferAndPrint [21:53:35]line [21:53:35]line [21:53:35]line [21:53:35]line [21:53:35]line [21:53:35]written 0, free lines is 3246 [21:53:35]MH_Cut [21:53:35]Write to MH i2c: D1 01 00 99 19 01 84 [21:53:35]Write i2c OK [21:53:35]MH_I2C_Read... [21:53:35]Read from MH i2c: D1 [21:53:35]MH_I2C_Read... [21:53:35]Read from MH i2c: D1 01 00 [21:53:35]MH_I2C_Read... [21:53:35]Read from MH i2c: D1 01 00 99 19 00 83 [21:53:35]Write to MH i2c: 01 00 00 9A 19 B3 [21:53:35]Write i2c OK [21:53:35]MH_I2C_Read... [21:53:36]OFD Sender: No OFD packet to send [21:53:36]*** Cut start [21:53:36]*** Partial cut [21:53:36]*** CUTSNS_PIN = 1 [21:53:36]*** CUTSNS_PIN = 0 [21:53:36]*** Brake cut motor [21:53:37]Read from MH i2c: 01 [21:53:37]MH_I2C_Read... [21:53:37]*** Stop cut motor [21:53:37]*** Cut end [21:53:37]Read from MH i2c: 01 07 00 [21:53:37]MH_I2C_Read... [21:53:37]Read from MH i2c: 01 07 00 9A 19 00 00 00 00 00 FF 0F C8 [21:53:37]process_action close_receipt done [21:53:37]requested_data is exist [21:53:37]produce_requested_data [21:53:37]requested_item fm.sn is exist - process it [21:53:37]wFMCommunicate request_size=4 [21:53:37]MH_SAM_APDU [21:53:37]CAPDU: 80 11 00 00 [21:53:37]Write to MH i2c: E2 08 00 9B 19 80 11 00 00 00 00 00 00 2E [21:53:37]Write i2c OK [21:53:37]MH_I2C_Read... [21:53:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:53:37]Read from MH i2c: E2 [21:53:37]MH_I2C_Read... [21:53:37]Read from MH i2c: E2 17 00 [21:53:37]MH_I2C_Read... [21:53:37]Read from MH i2c: E2 17 00 9B 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 85 [21:53:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:53:37]wFMCommunicate OK [21:53:37]requested_item fd.num is exist - process it [21:53:37]SAM_PROTO_GetFieldsCounters [21:53:37]wFMCommunicate request_size=4 [21:53:37]MH_SAM_APDU [21:53:37]CAPDU: 80 13 00 00 [21:53:37]Write to MH i2c: E2 08 00 9C 19 80 13 00 00 00 00 00 00 31 [21:53:37]Write i2c OK [21:53:37]MH_I2C_Read... [21:53:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:53:37]Read from MH i2c: E2 [21:53:37]MH_I2C_Read... [21:53:37]Read from MH i2c: E2 62 00 [21:53:37]MH_I2C_Read... [21:53:37]Read from MH i2c: E2 62 00 9C 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 7A 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 2A 02 00 00 5E 04 04 00 2A 02 00 00 57 04 04 00 2B 02 00 00 19 04 04 00 00 00 00 00 90 00 EB [21:53:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 7A 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 2A 02 00 00 5E 04 04 00 2A 02 00 00 57 04 04 00 2B 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:53:37]wFMCommunicate OK [21:53:37]SAM_PROTO_GetFieldsCounters done [21:53:37]requested_item shift.num is exist - process it [21:53:37]requested_item shift.opened is exist - process it [21:53:37]req_shift_opened [21:53:37]FM_GetShiftState [21:53:37]SAM_PROTO_GetShiftState [21:53:37]wFMCommunicate request_size=4 [21:53:37]MH_SAM_APDU [21:53:37]CAPDU: 80 13 01 00 [21:53:37]Write to MH i2c: E2 08 00 9D 19 80 13 01 00 00 00 00 00 33 [21:53:37]Write i2c OK [21:53:37]MH_I2C_Read... [21:53:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:53:37]Read from MH i2c: E2 [21:53:37]MH_I2C_Read... [21:53:37]Read from MH i2c: E2 0E 00 [21:53:37]MH_I2C_Read... [21:53:37]Read from MH i2c: E2 0E 00 9D 19 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 4D [21:53:37]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:53:37]wFMCommunicate OK [21:53:37]SAM_PROTO_GetShiftState done [21:53:37]FM_GetShiftState done [21:53:37]req_shift_opened done [21:53:37]requested_item shift.open_date is exist - process it [21:53:37]req_shift_open_date [21:53:37]req_shift_open_date done [21:53:37]produce_requested_data done [21:53:37]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227706,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [21:53:37]process_action_free close_receipt [21:53:37]json_value_free [21:53:37]json_value_free done [21:53:37]process_json_proto returns [21:53:37]Send response to host [21:53:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227706,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [21:53:37]free response buf [21:53:37]execute_script done [21:53:37]execute_script returns [21:53:37]free content buf [21:53:37]Sock 9.Close socket [21:53:37]Sock 9.Thread stoped [21:53:41]OFD Sender: No OFD packet to send [21:53:46]OFD Sender: No OFD packet to send [21:53:51]OFD Sender: No OFD packet to send [21:53:56]OFD Sender: No OFD packet to send [21:54:01]OFD Sender: No OFD packet to send [21:54:06]OFD Sender: No OFD packet to send [21:54:11]OFD Sender: No OFD packet to send [21:54:16]OFD Sender: No OFD packet to send [21:54:21]OFD Sender: No OFD packet to send [21:54:26]OFD Sender: No OFD packet to send [21:54:31]OFD Sender: No OFD packet to send [21:54:34]accept exits with 7 [21:54:34]New connection [21:54:34]New thread 3066666340 created [21:54:34]Thread 3066809700 joined [21:54:34]Waiting for new connection... [21:54:34] Sock 7.Parse request [21:54:34]Sock 7.Check first char [21:54:34]Sock 7.First char is OK [21:54:34]request: POST /json_proto HTTP/1.0 [21:54:34]Method: POST [21:54:34]URL: /json_proto [21:54:34]Method is POST - this is cgi request [21:54:34]url: /json_proto [21:54:34]query_string will be loaded in cgi processing [21:54:34]execute_cgi json_proto POST (null) [21:54:34]execute_cgi path=json_proto method=POST [21:54:34]POST find Content-Length [21:54:34]Host: 172.17.44.195:8080 [21:54:34]Content-Length: 678 [21:54:34]Content-Type: application/json [21:54:34] [21:54:34]POST finish read [21:54:34]Found Content-Length = 678 [21:54:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963371", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:54:34]execute_script... [21:54: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)1963371", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:54:34]POST & json_proto [21:54:34]process_json_proto [21:54:34]json parsed OK: [21:54:34]protocol is kg_v1.0 [21:54:34]action value=close_receipt [21:54:34]process_action close_receipt [21:54:34]cmd_close_receipt [21:54:34]MH_GetDate [21:54:34]Write to MH i2c: F0 00 00 9E 19 A6 [21:54:34]Write i2c OK [21:54:34]MH_I2C_Read... [21:54:34]Read from MH i2c: F0 [21:54:34]MH_I2C_Read... [21:54:34]Read from MH i2c: F0 09 00 [21:54:34]MH_I2C_Read... [21:54:34]Read from MH i2c: F0 09 00 9E 19 00 1B 7C 15 67 82 C9 CF 66 42 [21:54:34]GetLastDocTimeStamp 1729461214 [21:54:34]current date 1729461275 [21:54:34]FM_GetShiftState [21:54:34]SAM_PROTO_GetShiftState [21:54:34]wFMCommunicate request_size=4 [21:54:34]MH_SAM_APDU [21:54:34]CAPDU: 80 13 01 00 [21:54:34]Write to MH i2c: E2 08 00 9F 19 80 13 01 00 00 00 00 00 35 [21:54:34]Write i2c OK [21:54:34]MH_I2C_Read... [21:54:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:54:34]Read from MH i2c: E2 [21:54:34]MH_I2C_Read... [21:54:34]Read from MH i2c: E2 0E 00 [21:54:34]MH_I2C_Read... [21:54:34]Read from MH i2c: E2 0E 00 9F 19 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 4F [21:54:34]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:54:34]wFMCommunicate OK [21:54:34]SAM_PROTO_GetShiftState done [21:54:34]FM_GetShiftState done [21:54:34]opened in 1729383750 [21:54:34]opened+sec_in_day 1729470150 [21:54:34]quantity*price = 40006 [21:54:34]sum+1 = 40007 [21:54:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 555 20.10.2024 21:54 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227707 ФПД: 99931796406850 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T215435&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227707&fm=99931796406850&tin=02508201610067®Number=0000000000091685&sum=40000 [21:54:35]StoreToDocumentArchive [21:54:35]shift 533 fd 227707 [21:54:35]save to /storage/0533/doc_00227707 [21:54:35]save last doc name /storage/0533/doc_00227707 to /storage/kkm_last_doc_name [21:54:35]save OK [21:54:35]Clear old archive folders... [21:54:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:54:35]tlvbuf is 00C43180 [21:54:35]SAM_PROTO_ClearQueue [21:54:35]wFMCommunicate request_size=4 [21:54:35]MH_SAM_APDU [21:54:35]CAPDU: 80 09 00 00 [21:54:35]Write to MH i2c: E2 08 00 AC 19 80 09 00 00 00 00 00 00 37 [21:54:35]Write i2c OK [21:54:35]MH_I2C_Read... [21:54:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:54:35]Read from MH i2c: E2 [21:54:35]MH_I2C_Read... [21:54:35]Read from MH i2c: E2 03 00 [21:54:35]MH_I2C_Read... [21:54:35]Read from MH i2c: E2 03 00 AC 19 00 90 00 39 [21:54:35]RAPDU: 90 00 [21:54:35]wFMCommunicate OK [21:54:35]SAM_PROTO_ClearQueue done [21:54:35]KKMCreateOFDPacket [21:54:35]OFDProtocolAddRootSTLVToBuf [21:54:35]FM_MakeSignedData [21:54:35]FM_MakeSignedData [21:54:35]SAM_PROTO_SignData [21:54:35]wFMCommunicate request_size=4 [21:54:35]MH_SAM_APDU [21:54:35]CAPDU: 80 0D 01 02 [21:54:35]Write to MH i2c: E2 08 00 AD 19 80 0D 01 02 00 00 00 00 3F [21:54:35]Write i2c OK [21:54:35]MH_I2C_Read... [21:54:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:54:35]Read from MH i2c: E2 [21:54:35]MH_I2C_Read... [21:54:35]Read from MH i2c: E2 03 00 [21:54:35]MH_I2C_Read... [21:54:35]Read from MH i2c: E2 03 00 AD 19 00 90 00 3A [21:54:35]RAPDU: 90 00 [21:54:35]wFMCommunicate OK [21:54:35]wFMCommunicate request_size=255 [21:54:35]MH_SAM_APDU [21:54:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 02 00 00 F4 03 04 00 1B 7C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7B 79 03 00 35 04 06 00 5A [21:54:35]Write to MH i2c: E2 02 01 AE 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 02 00 00 F4 03 04 00 1B 7C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7B 79 03 00 35 04 06 00 5A 00 00 4D [21:54:35]Write i2c OK [21:54:35]MH_I2C_Read... [21:54:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:54:35]Read from MH i2c: E2 [21:54:35]MH_I2C_Read... [21:54:35]Read from MH i2c: E2 03 00 [21:54:35]MH_I2C_Read... [21:54:35]Read from MH i2c: E2 03 00 AE 19 00 90 00 3B [21:54:35]RAPDU: 90 00 [21:54:35]wFMCommunicate OK [21:54:35]wFMCommunicate request_size=10 [21:54:35]MH_SAM_APDU [21:54:35]CAPDU: 80 0D 02 02 05 E3 2F 3A 02 42 [21:54:35]Write to MH i2c: E2 0D 00 AF 19 80 0D 02 02 05 00 E3 2F 3A 02 42 00 00 DC [21:54:35]Write i2c OK [21:54:35]MH_I2C_Read... [21:54:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:54:35]Read from MH i2c: E2 [21:54:35]MH_I2C_Read... [21:54:35]Read from MH i2c: E2 03 00 [21:54:35]MH_I2C_Read... [21:54:35]Read from MH i2c: E2 03 00 AF 19 00 90 00 3C [21:54:35]RAPDU: 90 00 [21:54:35]wFMCommunicate OK [21:54:35]wFMCommunicate request_size=4 [21:54:35]MH_SAM_APDU [21:54:35]CAPDU: 80 0D 03 02 [21:54:35]Write to MH i2c: E2 08 00 B0 19 80 0D 03 02 00 00 00 00 44 [21:54:35]Write i2c OK [21:54:35]MH_I2C_Read... [21:54:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:54:35]Read from MH i2c: E2 [21:54:35]MH_I2C_Read... [21:54:35]Read from MH i2c: E2 0B 00 [21:54:35]MH_I2C_Read... [21:54:35]Read from MH i2c: E2 0B 00 B0 19 00 1C 99 CA C5 78 F4 62 F8 90 00 4F [21:54:35]RAPDU: 1C 99 CA C5 78 F4 62 F8 90 00 [21:54:35]wFMCommunicate OK [21:54:35]SAM_PROTO_SignData done [21:54:35]FM_MakeSignedData done [21:54:35]CreateOFDProtocolMessage [21:54:35]wFMCommunicate request_size=4 [21:54:35]MH_SAM_APDU [21:54:35]CAPDU: 80 11 00 00 [21:54:35]Write to MH i2c: E2 08 00 B1 19 80 11 00 00 00 00 00 00 44 [21:54:35]Write i2c OK [21:54:35]MH_I2C_Read... [21:54:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:54:35]Read from MH i2c: E2 [21:54:35]MH_I2C_Read... [21:54:35]Read from MH i2c: E2 17 00 [21:54:35]MH_I2C_Read... [21:54:35]Read from MH i2c: E2 17 00 B1 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 9B [21:54:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:54:35]wFMCommunicate OK [21:54:35]CreateOFDProtocolMessage done [21:54:35]OFDSenderStorePacket 227707 [21:54:35]StoreOFDPacket docnum=227707 [21:54:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 48 BE 07 01 C3 D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 02 00 00 F4 03 04 00 1B 7C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7B 79 03 00 35 04 06 00 5A E3 2F 3A 02 42 1C 99 CA C5 78 F4 62 F8 [21:54:35]CheckFolder [21:54:35]dirname=/storage/ofd_packets [21:54:35]CheckFolder done [21:54:35]ProducePacketName [21:54:35]name=ofd_packets/00227707 [21:54:35]NVStorageSaveData ofd_packets/00227707 [21:54:35]File name is /storage/ofd_packets/00227707 [21:54:35]Write 301 bytes [21:54:35]NVStorageSaveData done [21:54:35]OFDSenderStorePacket done [21:54:35]KKMCreateOFDPacket done [21:54:35]NVStorageSaveData kkm_last_timestamp [21:54:35]File name is /storage/kkm_last_timestamp [21:54:35]Write 4 bytes [21:54:35]NVStorageSaveData done [21:54:35]ExternCall_PrintAddStr [21:54:35]wPrintStart [21:54:35]Write to MH i2c: 01 00 00 B2 19 CB [21:54:35]Write i2c OK [21:54:35]MH_I2C_Read... [21:54:35]Read from MH i2c: 01 [21:54:35]MH_I2C_Read... [21:54:35]Read from MH i2c: 01 07 00 [21:54:35]MH_I2C_Read... [21:54:35]Read from MH i2c: 01 07 00 B2 19 00 00 00 00 00 FF 0F E0 [21:54:35]RasterBufferAndPrint [21:54:35]line Счет N : (1)1963371 [21:54:35]line ИНН: 02508201610067 [21:54:35]line Контрольно-Кассовый Чек [21:54:35]line ПРОДАЖА [21:54:35]line ТРК (МРК, ГНК) : 63 [21:54:35]line Товар: 2710124130 [21:54:35]line Аи-92-К-5 [21:54:35]line 5.980 * 66.90 [21:54:35]line = 400.06 [21:54:35]line НДС 12% НСП 1% [21:54:35]line > о реализуемом товаре [21:54:35]line ОКРУГЛЕНИЕ: -0.06 [21:54:35]line ИТОГО: 400.00 [21:54:35]line Внесено: 400.00 [21:54:35]line СДАЧА: 0.00 [21:54:35]line НСП 1% : 3.54 [21:54:35]line НДС 12% : 42.48 [21:54:35]line Наличными: 400.00 [21:54:35]line Безнал.: 0.00 [21:54:35]line Место: АЗС № 133 "Партнер Нефть" [21:54:35]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [21:54:35]line СНО: Общий режим [21:54:35]line Чек 555 20.10.2024 21:54 [21:54:35]line Смена: 533 ФФД: 1.0 [21:54:35]line ЗНМ: 0300000091 [21:54:35]line РНМ: 0000000000091685 [21:54:35]line Версия ККМ: 001 [21:54:35]line ФМ: 0000000000871839 [21:54:35]line ФД: 227707 [21:54:35]line ФПД: 99931796406850 [21:54:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T215435&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227707&fm=99931796406850&tin=02508201610067®Number=0000000000091685&sum=40000 [21:54:36]written 0, free lines is 4095 [21:54:36]OFD Sender: Processing packet 227707 [packets to send 38, broken 37] [21:54:36]ProducePacketName [21:54:36]name=ofd_packets/00227707 [21:54:36]OFD Sender: To server: pG, [21:54:36]CommunicateWithHost lk.salyk.kg:30040 [21:54:36]ConnectInit lk.salyk.kg [21:54:36]Connected sock=9 [21:54: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 33 39 0F 01 00 00 48 BE 07 01 C3 D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 02 00 00 F4 03 04 00 1B 7C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7B 79 03 00 35 04 06 00 5A E3 2F 3A 02 42 1C 99 CA C5 78 F4 62 F8 [21:54: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 33 39 4F 00 00 00 C3 5F 47 00 C9 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 33 39 10 04 04 00 7B 79 03 00 F4 03 04 00 19 27 15 67 B6 04 01 00 00 F7 26 33 4A 2F 68 21 7A [21:54:36]CommunicateWithHost err = 0 [21:54:36]CheckOFDResponse [21:54:36]1017 (14) - 77093643461234 [21:54:36]1041 (16) - 0000000000871839 [21:54:36]1040 (4) - 227707 [21:54:36]1012 (4) - 20.10.2024 15:51 [21:54:36]1206 (1) - 0 [21:54:36]OFD Sender: Remove packet 227707 [21:54:36]ProducePacketName [21:54:36]name=ofd_packets/00227707 [21:54:36]NVStorageDeleteData [21:54:36]Write to MH i2c: 01 00 00 DC 19 F5 [21:54:36]Write i2c OK [21:54:36]MH_I2C_Read... [21:54:36]Read from MH i2c: 01 [21:54:36]MH_I2C_Read... [21:54:36]Read from MH i2c: 01 07 00 [21:54:36]MH_I2C_Read... [21:54:36]Read from MH i2c: 01 07 00 DC 19 00 00 00 00 00 A9 0C B1 [21:54:36]RasterBufferAndPrint [21:54:36]line [21:54:36]line [21:54:36]line [21:54:36]line [21:54:36]line [21:54:36]written 0, free lines is 3245 [21:54:36]MH_Cut [21:54:36]Write to MH i2c: D1 01 00 E3 19 01 CE [21:54:36]Write i2c OK [21:54:36]MH_I2C_Read... [21:54:36]Read from MH i2c: D1 [21:54:36]MH_I2C_Read... [21:54:36]Read from MH i2c: D1 01 00 [21:54:36]MH_I2C_Read... [21:54:36]Read from MH i2c: D1 01 00 E3 19 00 CD [21:54:36]Write to MH i2c: 01 00 00 E4 19 FD [21:54:36]Write i2c OK [21:54:36]MH_I2C_Read... [21:54:37]OFD Sender: No OFD packet to send [21:54:37]*** Cut start [21:54:37]*** Partial cut [21:54:37]*** CUTSNS_PIN = 1 [21:54:37]*** CUTSNS_PIN = 0 [21:54:37]*** Brake cut motor [21:54:38]Read from MH i2c: 01 [21:54:38]MH_I2C_Read... [21:54:38]*** Stop cut motor [21:54:38]*** Cut end [21:54:38]Read from MH i2c: 01 07 00 [21:54:38]MH_I2C_Read... [21:54:38]Read from MH i2c: 01 07 00 E4 19 00 00 00 00 00 FF 0F 12 [21:54:38]process_action close_receipt done [21:54:38]requested_data is exist [21:54:38]produce_requested_data [21:54:38]requested_item fm.sn is exist - process it [21:54:38]wFMCommunicate request_size=4 [21:54:38]MH_SAM_APDU [21:54:38]CAPDU: 80 11 00 00 [21:54:38]Write to MH i2c: E2 08 00 E5 19 80 11 00 00 00 00 00 00 78 [21:54:38]Write i2c OK [21:54:38]MH_I2C_Read... [21:54:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:54:38]Read from MH i2c: E2 [21:54:38]MH_I2C_Read... [21:54:38]Read from MH i2c: E2 17 00 [21:54:38]MH_I2C_Read... [21:54:38]Read from MH i2c: E2 17 00 E5 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 CF [21:54:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:54:38]wFMCommunicate OK [21:54:38]requested_item fd.num is exist - process it [21:54:38]SAM_PROTO_GetFieldsCounters [21:54:38]wFMCommunicate request_size=4 [21:54:38]MH_SAM_APDU [21:54:38]CAPDU: 80 13 00 00 [21:54:38]Write to MH i2c: E2 08 00 E6 19 80 13 00 00 00 00 00 00 7B [21:54:38]Write i2c OK [21:54:38]MH_I2C_Read... [21:54:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:54:38]Read from MH i2c: E2 [21:54:38]MH_I2C_Read... [21:54:38]Read from MH i2c: E2 62 00 [21:54:38]MH_I2C_Read... [21:54:38]Read from MH i2c: E2 62 00 E6 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 7B 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 2B 02 00 00 5E 04 04 00 2B 02 00 00 57 04 04 00 2C 02 00 00 19 04 04 00 00 00 00 00 90 00 39 [21:54: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 7B 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 2B 02 00 00 5E 04 04 00 2B 02 00 00 57 04 04 00 2C 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:54:38]wFMCommunicate OK [21:54:38]SAM_PROTO_GetFieldsCounters done [21:54:38]requested_item shift.num is exist - process it [21:54:38]requested_item shift.opened is exist - process it [21:54:38]req_shift_opened [21:54:38]FM_GetShiftState [21:54:38]SAM_PROTO_GetShiftState [21:54:38]wFMCommunicate request_size=4 [21:54:38]MH_SAM_APDU [21:54:38]CAPDU: 80 13 01 00 [21:54:38]Write to MH i2c: E2 08 00 E7 19 80 13 01 00 00 00 00 00 7D [21:54:38]Write i2c OK [21:54:38]MH_I2C_Read... [21:54:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:54:38]Read from MH i2c: E2 [21:54:38]MH_I2C_Read... [21:54:38]Read from MH i2c: E2 0E 00 [21:54:38]MH_I2C_Read... [21:54:38]Read from MH i2c: E2 0E 00 E7 19 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 97 [21:54:38]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:54:38]wFMCommunicate OK [21:54:38]SAM_PROTO_GetShiftState done [21:54:38]FM_GetShiftState done [21:54:38]req_shift_opened done [21:54:38]requested_item shift.open_date is exist - process it [21:54:38]req_shift_open_date [21:54:38]req_shift_open_date done [21:54:38]produce_requested_data done [21:54:38]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227707,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [21:54:38]process_action_free close_receipt [21:54:38]json_value_free [21:54:38]json_value_free done [21:54:38]process_json_proto returns [21:54:38]Send response to host [21:54:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227707,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [21:54:38]free response buf [21:54:38]execute_script done [21:54:38]execute_script returns [21:54:38]free content buf [21:54:38]Sock 7.Close socket [21:54:38]Sock 7.Thread stoped [21:54:42]OFD Sender: No OFD packet to send [21:54:47]OFD Sender: No OFD packet to send [21:54:52]OFD Sender: No OFD packet to send [21:54:57]OFD Sender: No OFD packet to send [21:55:02]OFD Sender: No OFD packet to send [21:55:07]OFD Sender: No OFD packet to send [21:55:12]OFD Sender: No OFD packet to send [21:55:17]OFD Sender: No OFD packet to send [21:55:22]OFD Sender: No OFD packet to send [21:55:27]OFD Sender: No OFD packet to send [21:55:32]OFD Sender: No OFD packet to send [21:55:37]OFD Sender: No OFD packet to send [21:55:42]OFD Sender: No OFD packet to send [21:55:47]OFD Sender: No OFD packet to send [21:55:52]OFD Sender: No OFD packet to send [21:55:57]OFD Sender: No OFD packet to send [21:56:02]OFD Sender: No OFD packet to send [21:56:07]OFD Sender: No OFD packet to send [21:56:12]OFD Sender: No OFD packet to send [21:56:17]OFD Sender: No OFD packet to send [21:56:22]OFD Sender: No OFD packet to send [21:56:27]OFD Sender: No OFD packet to send [21:56:32]OFD Sender: No OFD packet to send [21:56:37]OFD Sender: No OFD packet to send [21:56:42]OFD Sender: No OFD packet to send [21:56:46]accept exits with 10 [21:56:46]New connection [21:56:46]New thread 3066809700 created [21:56:46]Thread 3066666340 joined [21:56:46]Waiting for new connection... [21:56:46] Sock 10.Parse request [21:56:46]Sock 10.Check first char [21:56:46]Sock 10.First char is OK [21:56:46]request: POST /json_proto HTTP/1.0 [21:56:46]Method: POST [21:56:46]URL: /json_proto [21:56:46]Method is POST - this is cgi request [21:56:46]url: /json_proto [21:56:46]query_string will be loaded in cgi processing [21:56:46]execute_cgi json_proto POST (null) [21:56:46]execute_cgi path=json_proto method=POST [21:56:46]POST find Content-Length [21:56:46]Host: 172.17.44.195:8080 [21:56:46]Content-Length: 678 [21:56:46]Content-Type: application/json [21:56:46] [21:56:46]POST finish read [21:56:46]Found Content-Length = 678 [21:56:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963372", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:56:46]execute_script... [21:56: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)1963372", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:56:46]POST & json_proto [21:56:46]process_json_proto [21:56:46]json parsed OK: [21:56:46]protocol is kg_v1.0 [21:56:46]action value=close_receipt [21:56:46]process_action close_receipt [21:56:46]cmd_close_receipt [21:56:46]MH_GetDate [21:56:46]Write to MH i2c: F0 00 00 E8 19 F0 [21:56:46]Write i2c OK [21:56:46]MH_I2C_Read... [21:56:46]Read from MH i2c: F0 [21:56:46]MH_I2C_Read... [21:56:46]Read from MH i2c: F0 09 00 [21:56:46]MH_I2C_Read... [21:56:46]Read from MH i2c: F0 09 00 E8 19 00 9F 7C 15 67 82 C9 CF 66 10 [21:56:46]GetLastDocTimeStamp 1729461275 [21:56:46]current date 1729461407 [21:56:46]FM_GetShiftState [21:56:46]SAM_PROTO_GetShiftState [21:56:46]wFMCommunicate request_size=4 [21:56:46]MH_SAM_APDU [21:56:46]CAPDU: 80 13 01 00 [21:56:46]Write to MH i2c: E2 08 00 E9 19 80 13 01 00 00 00 00 00 7F [21:56:46]Write i2c OK [21:56:46]MH_I2C_Read... [21:56:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:56:46]Read from MH i2c: E2 [21:56:46]MH_I2C_Read... [21:56:46]Read from MH i2c: E2 0E 00 [21:56:46]MH_I2C_Read... [21:56:46]Read from MH i2c: E2 0E 00 E9 19 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 99 [21:56:46]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:56:46]wFMCommunicate OK [21:56:46]SAM_PROTO_GetShiftState done [21:56:46]FM_GetShiftState done [21:56:46]opened in 1729383750 [21:56:46]opened+sec_in_day 1729470150 [21:56:46]quantity*price = 60009 [21:56:46]sum+1 = 60010 [21:56:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 556 20.10.2024 21:56 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227708 ФПД: 161195776463959 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T215647&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227708&fm=161195776463959&tin=02508201610067®Number=0000000000091685&sum=60000 [21:56:47]StoreToDocumentArchive [21:56:47]shift 533 fd 227708 [21:56:47]save to /storage/0533/doc_00227708 [21:56:47]save last doc name /storage/0533/doc_00227708 to /storage/kkm_last_doc_name [21:56:47]save OK [21:56:47]Clear old archive folders... [21:56:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:56:47]tlvbuf is 00C431A0 [21:56:47]SAM_PROTO_ClearQueue [21:56:47]wFMCommunicate request_size=4 [21:56:47]MH_SAM_APDU [21:56:47]CAPDU: 80 09 00 00 [21:56:47]Write to MH i2c: E2 08 00 F6 19 80 09 00 00 00 00 00 00 81 [21:56:47]Write i2c OK [21:56:47]MH_I2C_Read... [21:56:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:56:47]Read from MH i2c: E2 [21:56:47]MH_I2C_Read... [21:56:47]Read from MH i2c: E2 03 00 [21:56:47]MH_I2C_Read... [21:56:47]Read from MH i2c: E2 03 00 F6 19 00 90 00 83 [21:56:47]RAPDU: 90 00 [21:56:47]wFMCommunicate OK [21:56:47]SAM_PROTO_ClearQueue done [21:56:47]KKMCreateOFDPacket [21:56:47]OFDProtocolAddRootSTLVToBuf [21:56:47]FM_MakeSignedData [21:56:47]FM_MakeSignedData [21:56:47]SAM_PROTO_SignData [21:56:47]wFMCommunicate request_size=4 [21:56:47]MH_SAM_APDU [21:56:47]CAPDU: 80 0D 01 02 [21:56:47]Write to MH i2c: E2 08 00 F7 19 80 0D 01 02 00 00 00 00 89 [21:56:47]Write i2c OK [21:56:47]MH_I2C_Read... [21:56:47]OFD Sender: No OFD packet to send [21:56:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:56:47]Read from MH i2c: E2 [21:56:47]MH_I2C_Read... [21:56:47]Read from MH i2c: E2 03 00 [21:56:47]MH_I2C_Read... [21:56:47]Read from MH i2c: E2 03 00 F7 19 00 90 00 84 [21:56:47]RAPDU: 90 00 [21:56:47]wFMCommunicate OK [21:56:47]wFMCommunicate request_size=255 [21:56:47]MH_SAM_APDU [21:56:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 02 00 00 F4 03 04 00 9F 7C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7C 79 03 00 35 04 06 00 92 [21:56:47]Write to MH i2c: E2 02 01 F8 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 02 00 00 F4 03 04 00 9F 7C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7C 79 03 00 35 04 06 00 92 00 00 63 [21:56:47]Write i2c OK [21:56:47]MH_I2C_Read... [21:56:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:56:47]Read from MH i2c: E2 [21:56:47]MH_I2C_Read... [21:56:47]Read from MH i2c: E2 03 00 [21:56:47]MH_I2C_Read... [21:56:47]Read from MH i2c: E2 03 00 F8 19 00 90 00 85 [21:56:47]RAPDU: 90 00 [21:56:47]wFMCommunicate OK [21:56:47]wFMCommunicate request_size=10 [21:56:47]MH_SAM_APDU [21:56:47]CAPDU: 80 0D 02 02 05 9B 50 FE D4 57 [21:56:47]Write to MH i2c: E2 0D 00 F9 19 80 0D 02 02 05 00 9B 50 FE D4 57 00 00 AA [21:56:47]Write i2c OK [21:56:47]MH_I2C_Read... [21:56:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:56:47]Read from MH i2c: E2 [21:56:47]MH_I2C_Read... [21:56:47]Read from MH i2c: E2 03 00 [21:56:47]MH_I2C_Read... [21:56:47]Read from MH i2c: E2 03 00 F9 19 00 90 00 86 [21:56:47]RAPDU: 90 00 [21:56:47]wFMCommunicate OK [21:56:47]wFMCommunicate request_size=4 [21:56:47]MH_SAM_APDU [21:56:47]CAPDU: 80 0D 03 02 [21:56:47]Write to MH i2c: E2 08 00 FA 19 80 0D 03 02 00 00 00 00 8E [21:56:47]Write i2c OK [21:56:47]MH_I2C_Read... [21:56:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:56:47]Read from MH i2c: E2 [21:56:47]MH_I2C_Read... [21:56:47]Read from MH i2c: E2 0B 00 [21:56:47]MH_I2C_Read... [21:56:47]Read from MH i2c: E2 0B 00 FA 19 00 DD 94 5B 9D AF EB 0F B5 90 00 56 [21:56:47]RAPDU: DD 94 5B 9D AF EB 0F B5 90 00 [21:56:47]wFMCommunicate OK [21:56:47]SAM_PROTO_SignData done [21:56:47]FM_MakeSignedData done [21:56:47]CreateOFDProtocolMessage [21:56:47]wFMCommunicate request_size=4 [21:56:47]MH_SAM_APDU [21:56:47]CAPDU: 80 11 00 00 [21:56:47]Write to MH i2c: E2 08 00 FB 19 80 11 00 00 00 00 00 00 8E [21:56:47]Write i2c OK [21:56:47]MH_I2C_Read... [21:56:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:56:47]Read from MH i2c: E2 [21:56:47]MH_I2C_Read... [21:56:47]Read from MH i2c: E2 17 00 [21:56:47]MH_I2C_Read... [21:56:47]Read from MH i2c: E2 17 00 FB 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E5 [21:56:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:56:47]wFMCommunicate OK [21:56:47]CreateOFDProtocolMessage done [21:56:47]OFDSenderStorePacket 227708 [21:56:47]StoreOFDPacket docnum=227708 [21:56:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 34 45 07 01 89 35 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 02 00 00 F4 03 04 00 9F 7C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7C 79 03 00 35 04 06 00 92 9B 50 FE D4 57 DD 94 5B 9D AF EB 0F B5 [21:56:47]CheckFolder [21:56:47]dirname=/storage/ofd_packets [21:56:47]CheckFolder done [21:56:47]ProducePacketName [21:56:47]name=ofd_packets/00227708 [21:56:47]NVStorageSaveData ofd_packets/00227708 [21:56:47]File name is /storage/ofd_packets/00227708 [21:56:47]Write 301 bytes [21:56:47]NVStorageSaveData done [21:56:47]OFDSenderStorePacket done [21:56:47]KKMCreateOFDPacket done [21:56:47]NVStorageSaveData kkm_last_timestamp [21:56:47]File name is /storage/kkm_last_timestamp [21:56:47]Write 4 bytes [21:56:47]NVStorageSaveData done [21:56:47]ExternCall_PrintAddStr [21:56:47]wPrintStart [21:56:47]Write to MH i2c: 01 00 00 FC 19 15 [21:56:47]Write i2c OK [21:56:47]MH_I2C_Read... [21:56:47]Read from MH i2c: 01 [21:56:47]MH_I2C_Read... [21:56:47]Read from MH i2c: 01 07 00 [21:56:47]MH_I2C_Read... [21:56:47]Read from MH i2c: 01 07 00 FC 19 00 00 00 00 00 FF 0F 2A [21:56:47]RasterBufferAndPrint [21:56:47]line Счет N : (1)1963372 [21:56:47]line ИНН: 02508201610067 [21:56:47]line Контрольно-Кассовый Чек [21:56:47]line ПРОДАЖА [21:56:47]line ТРК (МРК, ГНК) : 33 [21:56:47]line Товар: 2710124130 [21:56:47]line Аи-92-К-5 [21:56:47]line 8.970 * 66.90 [21:56:47]line = 600.09 [21:56:47]line НДС 12% НСП 1% [21:56:47]line > о реализуемом товаре [21:56:47]line ОКРУГЛЕНИЕ: -0.09 [21:56:47]line ИТОГО: 600.00 [21:56:47]line Внесено: 600.00 [21:56:47]line СДАЧА: 0.00 [21:56:47]line НСП 1% : 5.31 [21:56:47]line НДС 12% : 63.73 [21:56:47]line Наличными: 600.00 [21:56:47]line Безнал.: 0.00 [21:56:47]line Место: АЗС № 133 "Партнер Нефть" [21:56:47]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [21:56:47]line СНО: Общий режим [21:56:47]line Чек 556 20.10.2024 21:56 [21:56:47]line Смена: 533 ФФД: 1.0 [21:56:47]line ЗНМ: 0300000091 [21:56:47]line РНМ: 0000000000091685 [21:56:47]line Версия ККМ: 001 [21:56:47]line ФМ: 0000000000871839 [21:56:47]line ФД: 227708 [21:56:47]line ФПД: 161195776463959 [21:56:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T215647&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227708&fm=161195776463959&tin=02508201610067®Number=0000000000091685&sum=60000 [21:56:48]OFD Sender: Processing packet 227708 [packets to send 38, broken 37] [21:56:48]ProducePacketName [21:56:48]name=ofd_packets/00227708 [21:56:48]OFD Sender: To server: pG, [21:56:48]CommunicateWithHost lk.salyk.kg:30040 [21:56:48]ConnectInit lk.salyk.kg [21:56:48]written 0, free lines is 4095 [21:56:48]Connected sock=7 [21:56: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 33 39 0F 01 00 00 34 45 07 01 89 35 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 02 00 00 F4 03 04 00 9F 7C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7C 79 03 00 35 04 06 00 92 9B 50 FE D4 57 DD 94 5B 9D AF EB 0F B5 [21:56: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 33 39 4F 00 00 00 76 F4 47 00 9A C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7C 79 03 00 F4 03 04 00 9D 27 15 67 B6 04 01 00 00 C6 74 D5 2D CB 42 95 D1 [21:56:48]CommunicateWithHost err = 0 [21:56:48]CheckOFDResponse [21:56:48]1017 (14) - 77093643461234 [21:56:48]1041 (16) - 0000000000871839 [21:56:48]1040 (4) - 227708 [21:56:48]1012 (4) - 20.10.2024 15:54 [21:56:48]1206 (1) - 0 [21:56:48]OFD Sender: Remove packet 227708 [21:56:48]ProducePacketName [21:56:48]name=ofd_packets/00227708 [21:56:48]NVStorageDeleteData [21:56:48]Write to MH i2c: 01 00 00 26 1A 40 [21:56:48]Write i2c OK [21:56:48]MH_I2C_Read... [21:56:48]Read from MH i2c: 01 [21:56:48]MH_I2C_Read... [21:56:48]Read from MH i2c: 01 07 00 [21:56:48]MH_I2C_Read... [21:56:48]Read from MH i2c: 01 07 00 26 1A 00 00 00 00 00 A3 0C F6 [21:56:48]RasterBufferAndPrint [21:56:48]line [21:56:48]line [21:56:48]line [21:56:48]line [21:56:48]line [21:56:48]written 0, free lines is 3240 [21:56:48]MH_Cut [21:56:48]Write to MH i2c: D1 01 00 2D 1A 01 19 [21:56:48]Write i2c OK [21:56:48]MH_I2C_Read... [21:56:48]Read from MH i2c: D1 [21:56:48]MH_I2C_Read... [21:56:48]Read from MH i2c: D1 01 00 [21:56:48]MH_I2C_Read... [21:56:48]Read from MH i2c: D1 01 00 2D 1A 00 18 [21:56:48]Write to MH i2c: 01 00 00 2E 1A 48 [21:56:48]Write i2c OK [21:56:48]MH_I2C_Read... [21:56:48]OFD Sender: No OFD packet to send [21:56:49]*** Cut start [21:56:49]*** Partial cut [21:56:49]*** CUTSNS_PIN = 1 [21:56:49]*** CUTSNS_PIN = 0 [21:56:49]*** Brake cut motor [21:56:50]Read from MH i2c: 01 [21:56:50]MH_I2C_Read... [21:56:50]*** Stop cut motor [21:56:50]*** Cut end [21:56:50]Read from MH i2c: 01 07 00 [21:56:50]MH_I2C_Read... [21:56:50]Read from MH i2c: 01 07 00 2E 1A 00 00 00 00 00 FF 0F 5D [21:56:50]process_action close_receipt done [21:56:50]requested_data is exist [21:56:50]produce_requested_data [21:56:50]requested_item fm.sn is exist - process it [21:56:50]wFMCommunicate request_size=4 [21:56:50]MH_SAM_APDU [21:56:50]CAPDU: 80 11 00 00 [21:56:50]Write to MH i2c: E2 08 00 2F 1A 80 11 00 00 00 00 00 00 C3 [21:56:50]Write i2c OK [21:56:50]MH_I2C_Read... [21:56:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:56:50]Read from MH i2c: E2 [21:56:50]MH_I2C_Read... [21:56:50]Read from MH i2c: E2 17 00 [21:56:50]MH_I2C_Read... [21:56:50]Read from MH i2c: E2 17 00 2F 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 1A [21:56:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [21:56:50]wFMCommunicate OK [21:56:50]requested_item fd.num is exist - process it [21:56:50]SAM_PROTO_GetFieldsCounters [21:56:50]wFMCommunicate request_size=4 [21:56:50]MH_SAM_APDU [21:56:50]CAPDU: 80 13 00 00 [21:56:50]Write to MH i2c: E2 08 00 30 1A 80 13 00 00 00 00 00 00 C6 [21:56:50]Write i2c OK [21:56:50]MH_I2C_Read... [21:56:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:56:50]Read from MH i2c: E2 [21:56:50]MH_I2C_Read... [21:56:50]Read from MH i2c: E2 62 00 [21:56:50]MH_I2C_Read... [21:56:50]Read from MH i2c: E2 62 00 30 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 7C 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 2C 02 00 00 5E 04 04 00 2C 02 00 00 57 04 04 00 2D 02 00 00 19 04 04 00 00 00 00 00 90 00 88 [21:56: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 7C 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 2C 02 00 00 5E 04 04 00 2C 02 00 00 57 04 04 00 2D 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:56:50]wFMCommunicate OK [21:56:50]SAM_PROTO_GetFieldsCounters done [21:56:50]requested_item shift.num is exist - process it [21:56:50]requested_item shift.opened is exist - process it [21:56:50]req_shift_opened [21:56:50]FM_GetShiftState [21:56:50]SAM_PROTO_GetShiftState [21:56:50]wFMCommunicate request_size=4 [21:56:50]MH_SAM_APDU [21:56:50]CAPDU: 80 13 01 00 [21:56:50]Write to MH i2c: E2 08 00 31 1A 80 13 01 00 00 00 00 00 C8 [21:56:50]Write i2c OK [21:56:50]MH_I2C_Read... [21:56:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:56:50]Read from MH i2c: E2 [21:56:50]MH_I2C_Read... [21:56:50]Read from MH i2c: E2 0E 00 [21:56:50]MH_I2C_Read... [21:56:50]Read from MH i2c: E2 0E 00 31 1A 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 E2 [21:56:50]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [21:56:50]wFMCommunicate OK [21:56:50]SAM_PROTO_GetShiftState done [21:56:50]FM_GetShiftState done [21:56:50]req_shift_opened done [21:56:50]requested_item shift.open_date is exist - process it [21:56:50]req_shift_open_date [21:56:50]req_shift_open_date done [21:56:50]produce_requested_data done [21:56:50]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227708,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [21:56:50]process_action_free close_receipt [21:56:50]json_value_free [21:56:50]json_value_free done [21:56:50]process_json_proto returns [21:56:50]Send response to host [21:56:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227708,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [21:56:50]free response buf [21:56:50]execute_script done [21:56:50]execute_script returns [21:56:50]free content buf [21:56:50]Sock 10.Close socket [21:56:50]Sock 10.Thread stoped [21:56:53]OFD Sender: No OFD packet to send [21:56:58]OFD Sender: No OFD packet to send [21:57:03]OFD Sender: No OFD packet to send [21:57:08]OFD Sender: No OFD packet to send [21:57:13]OFD Sender: No OFD packet to send [21:57:18]OFD Sender: No OFD packet to send [21:57:24]OFD Sender: No OFD packet to send [21:57:29]OFD Sender: No OFD packet to send [21:57:34]OFD Sender: No OFD packet to send [21:57:39]OFD Sender: No OFD packet to send [21:57:44]OFD Sender: No OFD packet to send [21:57:49]OFD Sender: No OFD packet to send [21:57:54]OFD Sender: No OFD packet to send [21:57:59]OFD Sender: No OFD packet to send [21:58:04]OFD Sender: No OFD packet to send [21:58:09]OFD Sender: No OFD packet to send [21:58:14]OFD Sender: No OFD packet to send [21:58:19]OFD Sender: No OFD packet to send [21:58:24]OFD Sender: No OFD packet to send [21:58:29]OFD Sender: No OFD packet to send [21:58:34]OFD Sender: No OFD packet to send [21:58:39]OFD Sender: No OFD packet to send [21:58:44]OFD Sender: No OFD packet to send [21:58:49]OFD Sender: No OFD packet to send [21:58:54]OFD Sender: No OFD packet to send [21:58:59]OFD Sender: No OFD packet to send [21:59:04]OFD Sender: No OFD packet to send [21:59:09]OFD Sender: No OFD packet to send [21:59:14]OFD Sender: No OFD packet to send [21:59:19]OFD Sender: No OFD packet to send [21:59:24]OFD Sender: No OFD packet to send [21:59:29]OFD Sender: No OFD packet to send [21:59:34]OFD Sender: No OFD packet to send [21:59:39]OFD Sender: No OFD packet to send [21:59:44]OFD Sender: No OFD packet to send [21:59:49]OFD Sender: No OFD packet to send [21:59:54]OFD Sender: No OFD packet to send [21:59:59]OFD Sender: No OFD packet to send [22:00:04]OFD Sender: No OFD packet to send [22:00:09]OFD Sender: No OFD packet to send [22:00:14]OFD Sender: No OFD packet to send [22:00:19]OFD Sender: No OFD packet to send [22:00:24]OFD Sender: No OFD packet to send [22:00:29]OFD Sender: No OFD packet to send [22:00:34]OFD Sender: No OFD packet to send [22:00:39]OFD Sender: No OFD packet to send [22:00:44]OFD Sender: No OFD packet to send [22:00:49]OFD Sender: No OFD packet to send [22:00:54]OFD Sender: No OFD packet to send [22:00:59]OFD Sender: No OFD packet to send [22:01:04]OFD Sender: No OFD packet to send [22:01:09]OFD Sender: No OFD packet to send [22:01:14]OFD Sender: No OFD packet to send [22:01:19]OFD Sender: No OFD packet to send [22:01:24]OFD Sender: No OFD packet to send [22:01:29]OFD Sender: No OFD packet to send [22:01:34]OFD Sender: No OFD packet to send [22:01:39]OFD Sender: No OFD packet to send [22:01:44]OFD Sender: No OFD packet to send [22:01:49]OFD Sender: No OFD packet to send [22:01:54]OFD Sender: No OFD packet to send [22:01:59]OFD Sender: No OFD packet to send [22:02:04]OFD Sender: No OFD packet to send [22:02:09]OFD Sender: No OFD packet to send [22:02:14]OFD Sender: No OFD packet to send [22:02:19]OFD Sender: No OFD packet to send [22:02:24]OFD Sender: No OFD packet to send [22:02:29]OFD Sender: No OFD packet to send [22:02:34]OFD Sender: No OFD packet to send [22:02:39]OFD Sender: No OFD packet to send [22:02:44]OFD Sender: No OFD packet to send [22:02:49]OFD Sender: No OFD packet to send [22:02:54]OFD Sender: No OFD packet to send [22:02:59]OFD Sender: No OFD packet to send [22:03:04]OFD Sender: No OFD packet to send [22:03:09]OFD Sender: No OFD packet to send [22:03:14]OFD Sender: No OFD packet to send [22:03:19]OFD Sender: No OFD packet to send [22:03:24]OFD Sender: No OFD packet to send [22:03:29]OFD Sender: No OFD packet to send [22:03:34]OFD Sender: No OFD packet to send [22:03:39]OFD Sender: No OFD packet to send [22:03:44]OFD Sender: No OFD packet to send [22:03:49]OFD Sender: No OFD packet to send [22:03:54]OFD Sender: No OFD packet to send [22:03:59]OFD Sender: No OFD packet to send [22:04:04]OFD Sender: No OFD packet to send [22:04:09]OFD Sender: No OFD packet to send [22:04:14]OFD Sender: No OFD packet to send [22:04:19]OFD Sender: No OFD packet to send [22:04:24]OFD Sender: No OFD packet to send [22:04:29]OFD Sender: No OFD packet to send [22:04:34]OFD Sender: No OFD packet to send [22:04:39]OFD Sender: No OFD packet to send [22:04:44]OFD Sender: No OFD packet to send [22:04:49]OFD Sender: No OFD packet to send [22:04:54]OFD Sender: No OFD packet to send [22:04:59]OFD Sender: No OFD packet to send [22:05:04]OFD Sender: No OFD packet to send [22:05:09]OFD Sender: No OFD packet to send [22:05:13]accept exits with 9 [22:05:13]New connection [22:05:13]New thread 3066666340 created [22:05:13]Thread 3066809700 joined [22:05:13]Waiting for new connection... [22:05:13] Sock 9.Parse request [22:05:13]Sock 9.Check first char [22:05:13]Sock 9.First char is OK [22:05:13]request: POST /json_proto HTTP/1.0 [22:05:13]Method: POST [22:05:13]URL: /json_proto [22:05:13]Method is POST - this is cgi request [22:05:13]url: /json_proto [22:05:13]query_string will be loaded in cgi processing [22:05:13]execute_cgi json_proto POST (null) [22:05:13]execute_cgi path=json_proto method=POST [22:05:13]POST find Content-Length [22:05:13]Host: 172.17.44.195:8080 [22:05:13]Content-Length: 683 [22:05:13]Content-Type: application/json [22:05:13] [22:05:13]POST finish read [22:05:13]Found Content-Length = 683 [22:05:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963379", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:05:13]execute_script... [22:05: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)1963379", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:05:13]POST & json_proto [22:05:13]process_json_proto [22:05:13]json parsed OK: [22:05:13]protocol is kg_v1.0 [22:05:13]action value=close_receipt [22:05:13]process_action close_receipt [22:05:13]cmd_close_receipt [22:05:13]MH_GetDate [22:05:13]Write to MH i2c: F0 00 00 32 1A 3B [22:05:13]Write i2c OK [22:05:13]MH_I2C_Read... [22:05:13]Read from MH i2c: F0 [22:05:13]MH_I2C_Read... [22:05:13]Read from MH i2c: F0 09 00 [22:05:13]MH_I2C_Read... [22:05:13]Read from MH i2c: F0 09 00 32 1A 00 9A 7E 15 67 82 C9 CF 66 58 [22:05:13]GetLastDocTimeStamp 1729461407 [22:05:13]current date 1729461914 [22:05:13]FM_GetShiftState [22:05:13]SAM_PROTO_GetShiftState [22:05:13]wFMCommunicate request_size=4 [22:05:13]MH_SAM_APDU [22:05:13]CAPDU: 80 13 01 00 [22:05:13]Write to MH i2c: E2 08 00 33 1A 80 13 01 00 00 00 00 00 CA [22:05:13]Write i2c OK [22:05:13]MH_I2C_Read... [22:05:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:05:13]Read from MH i2c: E2 [22:05:13]MH_I2C_Read... [22:05:13]Read from MH i2c: E2 0E 00 [22:05:13]MH_I2C_Read... [22:05:13]Read from MH i2c: E2 0E 00 33 1A 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 E4 [22:05:13]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [22:05:13]wFMCommunicate OK [22:05:13]SAM_PROTO_GetShiftState done [22:05:13]FM_GetShiftState done [22:05:13]opened in 1729383750 [22:05:13]opened+sec_in_day 1729470150 [22:05:13]quantity*price = 100021 [22:05:13]sum+1 = 100023 [22:05:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 557 20.10.2024 22:05 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227709 ФПД: 106057370680875 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T220514&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227709&fm=106057370680875&tin=02508201610067®Number=0000000000091685&sum=100000 [22:05:14]StoreToDocumentArchive [22:05:14]shift 533 fd 227709 [22:05:14]save to /storage/0533/doc_00227709 [22:05:14]save last doc name /storage/0533/doc_00227709 to /storage/kkm_last_doc_name [22:05:14]save OK [22:05:14]Clear old archive folders... [22:05:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:05:14]tlvbuf is 00C83990 [22:05:14]SAM_PROTO_ClearQueue [22:05:14]wFMCommunicate request_size=4 [22:05:14]MH_SAM_APDU [22:05:14]CAPDU: 80 09 00 00 [22:05:14]Write to MH i2c: E2 08 00 40 1A 80 09 00 00 00 00 00 00 CC [22:05:14]Write i2c OK [22:05:14]MH_I2C_Read... [22:05:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:05:14]Read from MH i2c: E2 [22:05:14]MH_I2C_Read... [22:05:14]Read from MH i2c: E2 03 00 [22:05:14]MH_I2C_Read... [22:05:14]Read from MH i2c: E2 03 00 40 1A 00 90 00 CE [22:05:14]RAPDU: 90 00 [22:05:14]wFMCommunicate OK [22:05:14]SAM_PROTO_ClearQueue done [22:05:14]KKMCreateOFDPacket [22:05:14]OFDProtocolAddRootSTLVToBuf [22:05:14]FM_MakeSignedData [22:05:14]FM_MakeSignedData [22:05:14]SAM_PROTO_SignData [22:05:14]wFMCommunicate request_size=4 [22:05:14]MH_SAM_APDU [22:05:14]CAPDU: 80 0D 01 02 [22:05:14]Write to MH i2c: E2 08 00 41 1A 80 0D 01 02 00 00 00 00 D4 [22:05:14]Write i2c OK [22:05:14]MH_I2C_Read... [22:05:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:05:14]Read from MH i2c: E2 [22:05:14]MH_I2C_Read... [22:05:14]Read from MH i2c: E2 03 00 [22:05:14]MH_I2C_Read... [22:05:14]Read from MH i2c: E2 03 00 41 1A 00 90 00 CF [22:05:14]RAPDU: 90 00 [22:05:14]wFMCommunicate OK [22:05:14]wFMCommunicate request_size=255 [22:05:14]MH_SAM_APDU [22:05:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 02 00 00 F4 03 04 00 9A 7E 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7D 79 03 00 35 04 06 00 60 [22:05:14]Write to MH i2c: E2 02 01 42 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 02 00 00 F4 03 04 00 9A 7E 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7D 79 03 00 35 04 06 00 60 00 00 BB [22:05:14]Write i2c OK [22:05:14]MH_I2C_Read... [22:05:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:05:14]Read from MH i2c: E2 [22:05:14]MH_I2C_Read... [22:05:14]Read from MH i2c: E2 03 00 [22:05:14]MH_I2C_Read... [22:05:14]Read from MH i2c: E2 03 00 42 1A 00 90 00 D0 [22:05:14]RAPDU: 90 00 [22:05:14]wFMCommunicate OK [22:05:14]wFMCommunicate request_size=10 [22:05:14]MH_SAM_APDU [22:05:14]CAPDU: 80 0D 02 02 05 75 67 E7 BE 2B [22:05:14]Write to MH i2c: E2 0D 00 43 1A 80 0D 02 02 05 00 75 67 E7 BE 2B 00 00 8D [22:05:15]Write i2c OK [22:05:15]MH_I2C_Read... [22:05:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:05:15]Read from MH i2c: E2 [22:05:15]MH_I2C_Read... [22:05:15]Read from MH i2c: E2 03 00 [22:05:15]MH_I2C_Read... [22:05:15]Read from MH i2c: E2 03 00 43 1A 00 90 00 D1 [22:05:15]RAPDU: 90 00 [22:05:15]wFMCommunicate OK [22:05:15]wFMCommunicate request_size=4 [22:05:15]MH_SAM_APDU [22:05:15]CAPDU: 80 0D 03 02 [22:05:15]Write to MH i2c: E2 08 00 44 1A 80 0D 03 02 00 00 00 00 D9 [22:05:15]Write i2c OK [22:05:15]MH_I2C_Read... [22:05:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:05:15]Read from MH i2c: E2 [22:05:15]MH_I2C_Read... [22:05:15]Read from MH i2c: E2 0B 00 [22:05:15]MH_I2C_Read... [22:05:15]Read from MH i2c: E2 0B 00 44 1A 00 DF A6 F7 AE B7 9A 9A 02 90 00 F1 [22:05:15]RAPDU: DF A6 F7 AE B7 9A 9A 02 90 00 [22:05:15]wFMCommunicate OK [22:05:15]SAM_PROTO_SignData done [22:05:15]FM_MakeSignedData done [22:05:15]CreateOFDProtocolMessage [22:05:15]wFMCommunicate request_size=4 [22:05:15]MH_SAM_APDU [22:05:15]CAPDU: 80 11 00 00 [22:05:15]Write to MH i2c: E2 08 00 45 1A 80 11 00 00 00 00 00 00 D9 [22:05:15]Write i2c OK [22:05:15]MH_I2C_Read... [22:05:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:05:15]Read from MH i2c: E2 [22:05:15]MH_I2C_Read... [22:05:15]Read from MH i2c: E2 17 00 [22:05:15]MH_I2C_Read... [22:05:15]Read from MH i2c: E2 17 00 45 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 30 [22:05:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [22:05:15]wFMCommunicate OK [22:05:15]CreateOFDProtocolMessage done [22:05:15]OFDSenderStorePacket 227709 [22:05:15]StoreOFDPacket docnum=227709 [22:05:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 2B B1 07 01 5B D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 02 00 00 F4 03 04 00 9A 7E 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7D 79 03 00 35 04 06 00 60 75 67 E7 BE 2B DF A6 F7 AE B7 9A 9A 02 [22:05:15]CheckFolder [22:05:15]dirname=/storage/ofd_packets [22:05:15]CheckFolder done [22:05:15]ProducePacketName [22:05:15]name=ofd_packets/00227709 [22:05:15]NVStorageSaveData ofd_packets/00227709 [22:05:15]File name is /storage/ofd_packets/00227709 [22:05:15]Write 301 bytes [22:05:15]NVStorageSaveData done [22:05:15]OFDSenderStorePacket done [22:05:15]KKMCreateOFDPacket done [22:05:15]NVStorageSaveData kkm_last_timestamp [22:05:15]File name is /storage/kkm_last_timestamp [22:05:15]Write 4 bytes [22:05:15]NVStorageSaveData done [22:05:15]ExternCall_PrintAddStr [22:05:15]wPrintStart [22:05:15]Write to MH i2c: 01 00 00 46 1A 60 [22:05:15]Write i2c OK [22:05:15]MH_I2C_Read... [22:05:15]Read from MH i2c: 01 [22:05:15]MH_I2C_Read... [22:05:15]Read from MH i2c: 01 07 00 [22:05:15]MH_I2C_Read... [22:05:15]Read from MH i2c: 01 07 00 46 1A 00 00 00 00 00 FF 0F 75 [22:05:15]RasterBufferAndPrint [22:05:15]line Счет N : (1)1963379 [22:05:15]line ИНН: 02508201610067 [22:05:15]line Контрольно-Кассовый Чек [22:05:15]line ПРОДАЖА [22:05:15]line ТРК (МРК, ГНК) : 44 [22:05:15]line Товар: 2710124500 [22:05:15]line Аи-95-К-5 [22:05:15]line 13.480 * 74.20 [22:05:15]line = 1000.22 [22:05:15]line НДС 12% НСП 1% [22:05:15]line > о реализуемом товаре [22:05:15]line ОКРУГЛЕНИЕ: -0.22 [22:05:15]line ИТОГО: 1000.00 [22:05:15]line Внесено: 1000.00 [22:05:15]line СДАЧА: 0.00 [22:05:15]line НСП 1% : 8.85 [22:05:15]line НДС 12% : 106.22 [22:05:15]line Наличными: 1000.00 [22:05:15]line Безнал.: 0.00 [22:05:15]line Место: АЗС № 133 "Партнер Нефть" [22:05:15]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [22:05:15]line СНО: Общий режим [22:05:15]line Чек 557 20.10.2024 22:05 [22:05:15]line Смена: 533 ФФД: 1.0 [22:05:15]line ЗНМ: 0300000091 [22:05:15]line РНМ: 0000000000091685 [22:05:15]line Версия ККМ: 001 [22:05:15]line ФМ: 0000000000871839 [22:05:15]line ФД: 227709 [22:05:15]line ФПД: 106057370680875 [22:05:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T220514&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227709&fm=106057370680875&tin=02508201610067®Number=0000000000091685&sum=100000 [22:05:15]written 0, free lines is 4095 [22:05:15]OFD Sender: Processing packet 227709 [packets to send 38, broken 37] [22:05:15]ProducePacketName [22:05:15]name=ofd_packets/00227709 [22:05:15]OFD Sender: To server: pG, [22:05:15]CommunicateWithHost lk.salyk.kg:30040 [22:05:15]ConnectInit lk.salyk.kg [22:05:15]Connected sock=7 [22:05: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 33 39 0F 01 00 00 2B B1 07 01 5B D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 02 00 00 F4 03 04 00 9A 7E 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7D 79 03 00 35 04 06 00 60 75 67 E7 BE 2B DF A6 F7 AE B7 9A 9A 02 [22:05: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 33 39 4F 00 00 00 24 C5 47 00 81 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7D 79 03 00 F4 03 04 00 98 29 15 67 B6 04 01 00 00 C1 8E 66 E5 40 F3 17 EC [22:05:15]CommunicateWithHost err = 0 [22:05:15]CheckOFDResponse [22:05:15]1017 (14) - 77093643461234 [22:05:15]1041 (16) - 0000000000871839 [22:05:15]1040 (4) - 227709 [22:05:15]1012 (4) - 20.10.2024 16:02 [22:05:15]1206 (1) - 0 [22:05:15]OFD Sender: Remove packet 227709 [22:05:15]ProducePacketName [22:05:15]name=ofd_packets/00227709 [22:05:15]NVStorageDeleteData [22:05:15]Write to MH i2c: 01 00 00 70 1A 8A [22:05:15]Write i2c OK [22:05:15]MH_I2C_Read... [22:05:15]Read from MH i2c: 01 [22:05:15]MH_I2C_Read... [22:05:15]Read from MH i2c: 01 07 00 [22:05:15]MH_I2C_Read... [22:05:15]Read from MH i2c: 01 07 00 70 1A 00 00 00 00 00 A7 0C 44 [22:05:15]RasterBufferAndPrint [22:05:15]line [22:05:15]line [22:05:15]line [22:05:15]line [22:05:15]line [22:05:15]written 0, free lines is 3242 [22:05:15]MH_Cut [22:05:15]Write to MH i2c: D1 01 00 77 1A 01 63 [22:05:15]Write i2c OK [22:05:15]MH_I2C_Read... [22:05:15]Read from MH i2c: D1 [22:05:15]MH_I2C_Read... [22:05:15]Read from MH i2c: D1 01 00 [22:05:15]MH_I2C_Read... [22:05:15]Read from MH i2c: D1 01 00 77 1A 00 62 [22:05:15]Write to MH i2c: 01 00 00 78 1A 92 [22:05:15]Write i2c OK [22:05:15]MH_I2C_Read... [22:05:16]OFD Sender: No OFD packet to send [22:05:16]*** Cut start [22:05:16]*** Partial cut [22:05:16]*** CUTSNS_PIN = 1 [22:05:16]*** CUTSNS_PIN = 0 [22:05:17]*** Brake cut motor [22:05:17]Read from MH i2c: 01 [22:05:17]MH_I2C_Read... [22:05:17]*** Stop cut motor [22:05:17]*** Cut end [22:05:17]Read from MH i2c: 01 07 00 [22:05:17]MH_I2C_Read... [22:05:17]Read from MH i2c: 01 07 00 78 1A 00 00 00 00 00 FF 0F A7 [22:05:17]process_action close_receipt done [22:05:17]requested_data is exist [22:05:17]produce_requested_data [22:05:17]requested_item fm.sn is exist - process it [22:05:17]wFMCommunicate request_size=4 [22:05:17]MH_SAM_APDU [22:05:17]CAPDU: 80 11 00 00 [22:05:17]Write to MH i2c: E2 08 00 79 1A 80 11 00 00 00 00 00 00 0D [22:05:17]Write i2c OK [22:05:17]MH_I2C_Read... [22:05:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:05:17]Read from MH i2c: E2 [22:05:17]MH_I2C_Read... [22:05:17]Read from MH i2c: E2 17 00 [22:05:17]MH_I2C_Read... [22:05:17]Read from MH i2c: E2 17 00 79 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 64 [22:05:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [22:05:17]wFMCommunicate OK [22:05:17]requested_item fd.num is exist - process it [22:05:17]SAM_PROTO_GetFieldsCounters [22:05:17]wFMCommunicate request_size=4 [22:05:17]MH_SAM_APDU [22:05:17]CAPDU: 80 13 00 00 [22:05:17]Write to MH i2c: E2 08 00 7A 1A 80 13 00 00 00 00 00 00 10 [22:05:17]Write i2c OK [22:05:17]MH_I2C_Read... [22:05:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:05:17]Read from MH i2c: E2 [22:05:17]MH_I2C_Read... [22:05:17]Read from MH i2c: E2 62 00 [22:05:17]MH_I2C_Read... [22:05:17]Read from MH i2c: E2 62 00 7A 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 7D 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 2D 02 00 00 5E 04 04 00 2D 02 00 00 57 04 04 00 2E 02 00 00 19 04 04 00 00 00 00 00 90 00 D6 [22:05: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 7D 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 2D 02 00 00 5E 04 04 00 2D 02 00 00 57 04 04 00 2E 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:05:17]wFMCommunicate OK [22:05:17]SAM_PROTO_GetFieldsCounters done [22:05:17]requested_item shift.num is exist - process it [22:05:17]requested_item shift.opened is exist - process it [22:05:17]req_shift_opened [22:05:17]FM_GetShiftState [22:05:17]SAM_PROTO_GetShiftState [22:05:17]wFMCommunicate request_size=4 [22:05:17]MH_SAM_APDU [22:05:17]CAPDU: 80 13 01 00 [22:05:17]Write to MH i2c: E2 08 00 7B 1A 80 13 01 00 00 00 00 00 12 [22:05:17]Write i2c OK [22:05:17]MH_I2C_Read... [22:05:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:05:17]Read from MH i2c: E2 [22:05:17]MH_I2C_Read... [22:05:17]Read from MH i2c: E2 0E 00 [22:05:17]MH_I2C_Read... [22:05:17]Read from MH i2c: E2 0E 00 7B 1A 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 2C [22:05:17]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [22:05:17]wFMCommunicate OK [22:05:17]SAM_PROTO_GetShiftState done [22:05:17]FM_GetShiftState done [22:05:17]req_shift_opened done [22:05:17]requested_item shift.open_date is exist - process it [22:05:17]req_shift_open_date [22:05:17]req_shift_open_date done [22:05:17]produce_requested_data done [22:05:17]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227709,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [22:05:17]process_action_free close_receipt [22:05:17]json_value_free [22:05:17]json_value_free done [22:05:17]process_json_proto returns [22:05:17]Send response to host [22:05:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227709,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [22:05:17]free response buf [22:05:17]execute_script done [22:05:17]execute_script returns [22:05:17]free content buf [22:05:17]Sock 9.Close socket [22:05:17]Sock 9.Thread stoped [22:05:21]OFD Sender: No OFD packet to send [22:05:26]OFD Sender: No OFD packet to send [22:05:31]OFD Sender: No OFD packet to send [22:05:36]OFD Sender: No OFD packet to send [22:05:41]OFD Sender: No OFD packet to send [22:05:46]OFD Sender: No OFD packet to send [22:05:51]OFD Sender: No OFD packet to send [22:05:56]OFD Sender: No OFD packet to send [22:06:01]OFD Sender: No OFD packet to send [22:06:06]OFD Sender: No OFD packet to send [22:06:11]OFD Sender: No OFD packet to send [22:06:16]OFD Sender: No OFD packet to send [22:06:21]OFD Sender: No OFD packet to send [22:06:26]OFD Sender: No OFD packet to send [22:06:31]OFD Sender: No OFD packet to send [22:06:36]OFD Sender: No OFD packet to send [22:06:41]OFD Sender: No OFD packet to send [22:06:46]OFD Sender: No OFD packet to send [22:06:51]OFD Sender: No OFD packet to send [22:06:56]OFD Sender: No OFD packet to send [22:07:01]OFD Sender: No OFD packet to send [22:07:06]OFD Sender: No OFD packet to send [22:07:11]OFD Sender: No OFD packet to send [22:07:16]OFD Sender: No OFD packet to send [22:07:21]OFD Sender: No OFD packet to send [22:07:26]OFD Sender: No OFD packet to send [22:07:28]accept exits with 10 [22:07:28]New connection [22:07:28]New thread 3066809700 created [22:07:28]Thread 3066666340 joined [22:07:28]Waiting for new connection... [22:07:28] Sock 10.Parse request [22:07:28]Sock 10.Check first char [22:07:28]Sock 10.First char is OK [22:07:28]request: POST /json_proto HTTP/1.0 [22:07:28]Method: POST [22:07:28]URL: /json_proto [22:07:28]Method is POST - this is cgi request [22:07:28]url: /json_proto [22:07:28]query_string will be loaded in cgi processing [22:07:28]execute_cgi json_proto POST (null) [22:07:28]execute_cgi path=json_proto method=POST [22:07:28]POST find Content-Length [22:07:28]Host: 172.17.44.195:8080 [22:07:28]Content-Length: 678 [22:07:28]Content-Type: application/json [22:07:28] [22:07:28]POST finish read [22:07:28]Found Content-Length = 678 [22:07:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963378", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:07:28]execute_script... [22:07: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)1963378", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:07:28]POST & json_proto [22:07:28]process_json_proto [22:07:28]json parsed OK: [22:07:28]protocol is kg_v1.0 [22:07:28]action value=close_receipt [22:07:28]process_action close_receipt [22:07:28]cmd_close_receipt [22:07:28]MH_GetDate [22:07:28]Write to MH i2c: F0 00 00 7C 1A 85 [22:07:28]Write i2c OK [22:07:28]MH_I2C_Read... [22:07:28]Read from MH i2c: F0 [22:07:28]MH_I2C_Read... [22:07:28]Read from MH i2c: F0 09 00 [22:07:28]MH_I2C_Read... [22:07:28]Read from MH i2c: F0 09 00 7C 1A 00 21 7F 15 67 82 C9 CF 66 2A [22:07:28]GetLastDocTimeStamp 1729461914 [22:07:28]current date 1729462049 [22:07:28]FM_GetShiftState [22:07:28]SAM_PROTO_GetShiftState [22:07:28]wFMCommunicate request_size=4 [22:07:28]MH_SAM_APDU [22:07:28]CAPDU: 80 13 01 00 [22:07:28]Write to MH i2c: E2 08 00 7D 1A 80 13 01 00 00 00 00 00 14 [22:07:28]Write i2c OK [22:07:28]MH_I2C_Read... [22:07:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:07:28]Read from MH i2c: E2 [22:07:28]MH_I2C_Read... [22:07:28]Read from MH i2c: E2 0E 00 [22:07:28]MH_I2C_Read... [22:07:28]Read from MH i2c: E2 0E 00 7D 1A 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 2E [22:07:28]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [22:07:28]wFMCommunicate OK [22:07:28]SAM_PROTO_GetShiftState done [22:07:28]FM_GetShiftState done [22:07:28]opened in 1729383750 [22:07:28]opened+sec_in_day 1729470150 [22:07:28]quantity*price = 50041 [22:07:28]sum+1 = 50042 [22:07:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 558 20.10.2024 22:07 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227710 ФПД: 195510812948578 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T220729&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227710&fm=195510812948578&tin=02508201610067®Number=0000000000091685&sum=50000 [22:07:29]StoreToDocumentArchive [22:07:29]shift 533 fd 227710 [22:07:29]save to /storage/0533/doc_00227710 [22:07:29]save last doc name /storage/0533/doc_00227710 to /storage/kkm_last_doc_name [22:07:29]save OK [22:07:29]Clear old archive folders... [22:07:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:07:29]tlvbuf is 00C43250 [22:07:29]SAM_PROTO_ClearQueue [22:07:29]wFMCommunicate request_size=4 [22:07:29]MH_SAM_APDU [22:07:29]CAPDU: 80 09 00 00 [22:07:29]Write to MH i2c: E2 08 00 8A 1A 80 09 00 00 00 00 00 00 16 [22:07:29]Write i2c OK [22:07:29]MH_I2C_Read... [22:07:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:07:29]Read from MH i2c: E2 [22:07:29]MH_I2C_Read... [22:07:29]Read from MH i2c: E2 03 00 [22:07:29]MH_I2C_Read... [22:07:29]Read from MH i2c: E2 03 00 8A 1A 00 90 00 18 [22:07:29]RAPDU: 90 00 [22:07:29]wFMCommunicate OK [22:07:29]SAM_PROTO_ClearQueue done [22:07:29]KKMCreateOFDPacket [22:07:29]OFDProtocolAddRootSTLVToBuf [22:07:29]FM_MakeSignedData [22:07:29]FM_MakeSignedData [22:07:29]SAM_PROTO_SignData [22:07:29]wFMCommunicate request_size=4 [22:07:29]MH_SAM_APDU [22:07:29]CAPDU: 80 0D 01 02 [22:07:29]Write to MH i2c: E2 08 00 8B 1A 80 0D 01 02 00 00 00 00 1E [22:07:29]Write i2c OK [22:07:29]MH_I2C_Read... [22:07:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:07:29]Read from MH i2c: E2 [22:07:29]MH_I2C_Read... [22:07:29]Read from MH i2c: E2 03 00 [22:07:29]MH_I2C_Read... [22:07:29]Read from MH i2c: E2 03 00 8B 1A 00 90 00 19 [22:07:29]RAPDU: 90 00 [22:07:29]wFMCommunicate OK [22:07:29]wFMCommunicate request_size=255 [22:07:29]MH_SAM_APDU [22:07:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 02 00 00 F4 03 04 00 21 7F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7E 79 03 00 35 04 06 00 B1 [22:07:29]Write to MH i2c: E2 02 01 8C 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 02 00 00 F4 03 04 00 21 7F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7E 79 03 00 35 04 06 00 B1 00 00 C3 [22:07:29]Write i2c OK [22:07:29]MH_I2C_Read... [22:07:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:07:30]Read from MH i2c: E2 [22:07:30]MH_I2C_Read... [22:07:30]Read from MH i2c: E2 03 00 [22:07:30]MH_I2C_Read... [22:07:30]Read from MH i2c: E2 03 00 8C 1A 00 90 00 1A [22:07:30]RAPDU: 90 00 [22:07:30]wFMCommunicate OK [22:07:30]wFMCommunicate request_size=10 [22:07:30]MH_SAM_APDU [22:07:30]CAPDU: 80 0D 02 02 05 D0 E8 8E 38 62 [22:07:30]Write to MH i2c: E2 0D 00 8D 1A 80 0D 02 02 05 00 D0 E8 8E 38 62 00 00 0B [22:07:30]Write i2c OK [22:07:30]MH_I2C_Read... [22:07:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:07:30]Read from MH i2c: E2 [22:07:30]MH_I2C_Read... [22:07:30]Read from MH i2c: E2 03 00 [22:07:30]MH_I2C_Read... [22:07:30]Read from MH i2c: E2 03 00 8D 1A 00 90 00 1B [22:07:30]RAPDU: 90 00 [22:07:30]wFMCommunicate OK [22:07:30]wFMCommunicate request_size=4 [22:07:30]MH_SAM_APDU [22:07:30]CAPDU: 80 0D 03 02 [22:07:30]Write to MH i2c: E2 08 00 8E 1A 80 0D 03 02 00 00 00 00 23 [22:07:30]Write i2c OK [22:07:30]MH_I2C_Read... [22:07:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:07:30]Read from MH i2c: E2 [22:07:30]MH_I2C_Read... [22:07:30]Read from MH i2c: E2 0B 00 [22:07:30]MH_I2C_Read... [22:07:30]Read from MH i2c: E2 0B 00 8E 1A 00 76 B0 48 6D A3 50 7D EC 90 00 5B [22:07:30]RAPDU: 76 B0 48 6D A3 50 7D EC 90 00 [22:07:30]wFMCommunicate OK [22:07:30]SAM_PROTO_SignData done [22:07:30]FM_MakeSignedData done [22:07:30]CreateOFDProtocolMessage [22:07:30]wFMCommunicate request_size=4 [22:07:30]MH_SAM_APDU [22:07:30]CAPDU: 80 11 00 00 [22:07:30]Write to MH i2c: E2 08 00 8F 1A 80 11 00 00 00 00 00 00 23 [22:07:30]Write i2c OK [22:07:30]MH_I2C_Read... [22:07:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:07:30]Read from MH i2c: E2 [22:07:30]MH_I2C_Read... [22:07:30]Read from MH i2c: E2 17 00 [22:07:30]MH_I2C_Read... [22:07:30]Read from MH i2c: E2 17 00 8F 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 7A [22:07:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [22:07:30]wFMCommunicate OK [22:07:30]CreateOFDProtocolMessage done [22:07:30]OFDSenderStorePacket 227710 [22:07:30]StoreOFDPacket docnum=227710 [22:07:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 C4 67 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 02 00 00 F4 03 04 00 21 7F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7E 79 03 00 35 04 06 00 B1 D0 E8 8E 38 62 76 B0 48 6D A3 50 7D EC [22:07:30]CheckFolder [22:07:30]dirname=/storage/ofd_packets [22:07:30]CheckFolder done [22:07:30]ProducePacketName [22:07:30]name=ofd_packets/00227710 [22:07:30]NVStorageSaveData ofd_packets/00227710 [22:07:30]File name is /storage/ofd_packets/00227710 [22:07:30]Write 301 bytes [22:07:30]NVStorageSaveData done [22:07:30]OFDSenderStorePacket done [22:07:30]KKMCreateOFDPacket done [22:07:30]NVStorageSaveData kkm_last_timestamp [22:07:30]File name is /storage/kkm_last_timestamp [22:07:30]Write 4 bytes [22:07:30]NVStorageSaveData done [22:07:30]ExternCall_PrintAddStr [22:07:30]wPrintStart [22:07:30]Write to MH i2c: 01 00 00 90 1A AA [22:07:30]Write i2c OK [22:07:30]MH_I2C_Read... [22:07:30]Read from MH i2c: 01 [22:07:30]MH_I2C_Read... [22:07:30]Read from MH i2c: 01 07 00 [22:07:30]MH_I2C_Read... [22:07:30]Read from MH i2c: 01 07 00 90 1A 00 00 00 00 00 FF 0F BF [22:07:30]RasterBufferAndPrint [22:07:30]line Счет N : (1)1963378 [22:07:30]line ИНН: 02508201610067 [22:07:30]line Контрольно-Кассовый Чек [22:07:30]line ПРОДАЖА [22:07:30]line ТРК (МРК, ГНК) : 63 [22:07:30]line Товар: 2710124130 [22:07:30]line Аи-92-К-5 [22:07:30]line 7.480 * 66.90 [22:07:30]line = 500.41 [22:07:30]line НДС 12% НСП 1% [22:07:30]line > о реализуемом товаре [22:07:30]line ОКРУГЛЕНИЕ: -0.41 [22:07:30]line ИТОГО: 500.00 [22:07:30]line Внесено: 500.00 [22:07:30]line СДАЧА: 0.00 [22:07:30]line НСП 1% : 4.43 [22:07:30]line НДС 12% : 53.14 [22:07:30]line Наличными: 500.00 [22:07:30]line Безнал.: 0.00 [22:07:30]line Место: АЗС № 133 "Партнер Нефть" [22:07:30]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [22:07:30]line СНО: Общий режим [22:07:30]line Чек 558 20.10.2024 22:07 [22:07:30]line Смена: 533 ФФД: 1.0 [22:07:30]line ЗНМ: 0300000091 [22:07:30]line РНМ: 0000000000091685 [22:07:30]line Версия ККМ: 001 [22:07:30]line ФМ: 0000000000871839 [22:07:30]line ФД: 227710 [22:07:30]line ФПД: 195510812948578 [22:07:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T220729&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227710&fm=195510812948578&tin=02508201610067®Number=0000000000091685&sum=50000 [22:07:30]written 0, free lines is 4095 [22:07:30]OFD Sender: Processing packet 227710 [packets to send 38, broken 37] [22:07:30]ProducePacketName [22:07:30]name=ofd_packets/00227710 [22:07:30]OFD Sender: To server: pG, [22:07:30]CommunicateWithHost lk.salyk.kg:30040 [22:07:30]ConnectInit lk.salyk.kg [22:07:30]Write to MH i2c: 01 00 00 BA 1A D4 [22:07:30]Write i2c OK [22:07:30]MH_I2C_Read... [22:07:30]Read from MH i2c: 01 [22:07:30]MH_I2C_Read... [22:07:30]Read from MH i2c: 01 07 00 [22:07:30]MH_I2C_Read... [22:07:30]Read from MH i2c: 01 07 00 BA 1A 00 00 00 00 00 A2 0C 89 [22:07:30]RasterBufferAndPrint [22:07:30]line [22:07:30]line [22:07:30]line [22:07:30]line [22:07:30]line [22:07:30]written 0, free lines is 3237 [22:07:30]MH_Cut [22:07:30]Write to MH i2c: D1 01 00 C1 1A 01 AD [22:07:30]Write i2c OK [22:07:30]MH_I2C_Read... [22:07:30]Read from MH i2c: D1 [22:07:30]MH_I2C_Read... [22:07:30]Read from MH i2c: D1 01 00 [22:07:30]MH_I2C_Read... [22:07:30]Read from MH i2c: D1 01 00 C1 1A 00 AC [22:07:30]Write to MH i2c: 01 00 00 C2 1A DC [22:07:30]Write i2c OK [22:07:30]MH_I2C_Read... [22:07:31]*** Cut start [22:07:31]*** Partial cut [22:07:31]*** CUTSNS_PIN = 1 [22:07:31]*** CUTSNS_PIN = 0 [22:07:32]*** Brake cut motor [22:07:32]Read from MH i2c: 01 [22:07:32]MH_I2C_Read... [22:07:32]*** Stop cut motor [22:07:32]Read from MH i2c: 01 *** Cut end [22:07:32]07 00 [22:07:32]MH_I2C_Read... [22:07:32]Read from MH i2c: 01 07 00 C2 1A 00 00 00 00 00 FF 0F F1 [22:07:32]process_action close_receipt done [22:07:32]requested_data is exist [22:07:32]produce_requested_data [22:07:32]requested_item fm.sn is exist - process it [22:07:32]wFMCommunicate request_size=4 [22:07:32]MH_SAM_APDU [22:07:32]CAPDU: 80 11 00 00 [22:07:32]Write to MH i2c: E2 08 00 C3 1A 80 11 00 00 00 00 00 00 57 [22:07:32]Write i2c OK [22:07:32]MH_I2C_Read... [22:07:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:07:32]Read from MH i2c: E2 [22:07:32]MH_I2C_Read... [22:07:32]Read from MH i2c: E2 17 00 [22:07:32]MH_I2C_Read... [22:07:32]Read from MH i2c: E2 17 00 C3 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 AE [22:07:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [22:07:32]wFMCommunicate OK [22:07:32]requested_item fd.num is exist - process it [22:07:32]SAM_PROTO_GetFieldsCounters [22:07:32]wFMCommunicate request_size=4 [22:07:32]MH_SAM_APDU [22:07:32]CAPDU: 80 13 00 00 [22:07:32]Write to MH i2c: E2 08 00 C4 1A 80 13 00 00 00 00 00 00 5A [22:07:32]Write i2c OK [22:07:32]MH_I2C_Read... [22:07:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:07:32]Read from MH i2c: E2 [22:07:32]MH_I2C_Read... [22:07:32]Read from MH i2c: E2 62 00 [22:07:32]MH_I2C_Read... [22:07:32]Read from MH i2c: E2 62 00 C4 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 7E 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 2E 02 00 00 5E 04 04 00 2E 02 00 00 57 04 04 00 2F 02 00 00 19 04 04 00 00 00 00 00 90 00 24 [22:07: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 7E 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 2E 02 00 00 5E 04 04 00 2E 02 00 00 57 04 04 00 2F 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:07:32]wFMCommunicate OK [22:07:32]SAM_PROTO_GetFieldsCounters done [22:07:32]requested_item shift.num is exist - process it [22:07:32]requested_item shift.opened is exist - process it [22:07:32]req_shift_opened [22:07:32]FM_GetShiftState [22:07:32]SAM_PROTO_GetShiftState [22:07:32]wFMCommunicate request_size=4 [22:07:32]MH_SAM_APDU [22:07:32]CAPDU: 80 13 01 00 [22:07:32]Write to MH i2c: E2 08 00 C5 1A 80 13 01 00 00 00 00 00 5C [22:07:32]Write i2c OK [22:07:32]MH_I2C_Read... [22:07:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:07:32]Read from MH i2c: E2 [22:07:32]MH_I2C_Read... [22:07:32]Read from MH i2c: E2 0E 00 [22:07:32]MH_I2C_Read... [22:07:32]Read from MH i2c: E2 0E 00 C5 1A 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 76 [22:07:32]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [22:07:32]wFMCommunicate OK [22:07:32]SAM_PROTO_GetShiftState done [22:07:32]FM_GetShiftState done [22:07:32]req_shift_opened done [22:07:32]requested_item shift.open_date is exist - process it [22:07:32]req_shift_open_date [22:07:32]req_shift_open_date done [22:07:32]produce_requested_data done [22:07:32]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227710,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [22:07:32]process_action_free close_receipt [22:07:32]json_value_free [22:07:32]json_value_free done [22:07:32]process_json_proto returns [22:07:32]Send response to host [22:07:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227710,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [22:07:32]free response buf [22:07:32]execute_script done [22:07:32]execute_script returns [22:07:32]free content buf [22:07:32]Sock 10.Close socket [22:07:32]Sock 10.Thread stoped [22:07:34]accept exits with 7 [22:07:34]New connection [22:07:34]New thread 3066666340 created [22:07:34]Thread 3066809700 joined [22:07:34]Waiting for new connection... [22:07:34] Sock 7.Parse request [22:07:34]Sock 7.Check first char [22:07:34]Sock 7.First char is OK [22:07:34]request: POST /json_proto HTTP/1.0 [22:07:34]Method: POST [22:07:34]URL: /json_proto [22:07:34]Method is POST - this is cgi request [22:07:34]url: /json_proto [22:07:34]query_string will be loaded in cgi processing [22:07:34]execute_cgi json_proto POST (null) [22:07:34]execute_cgi path=json_proto method=POST [22:07:34]POST find Content-Length [22:07:34]Host: 172.17.44.195:8080 [22:07:34]Content-Length: 749 [22:07:34]Content-Type: application/json [22:07:34] [22:07:34]POST finish read [22:07:34]Found Content-Length = 749 [22:07:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963380", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.480, "sum" : 990.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: Mbank", "payments": [ { "type": 1, "sum" : 990.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:07:34]execute_script... [22:07: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)1963380", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.480, "sum" : 990.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: Mbank", "payments": [ { "type": 1, "sum" : 990.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:07:34]POST & json_proto [22:07:34]process_json_proto [22:07:34]json parsed OK: [22:07:34]protocol is kg_v1.0 [22:07:34]action value=close_receipt [22:07:34]process_action close_receipt [22:07:34]cmd_close_receipt [22:07:34]MH_GetDate [22:07:34]Write to MH i2c: F0 00 00 C6 1A CF [22:07:34]Write i2c OK [22:07:34]MH_I2C_Read... [22:07:34]Read from MH i2c: F0 [22:07:34]MH_I2C_Read... [22:07:34]Read from MH i2c: F0 09 00 [22:07:34]MH_I2C_Read... [22:07:34]Read from MH i2c: F0 09 00 C6 1A 00 28 7F 15 67 82 C9 CF 66 7B [22:07:34]GetLastDocTimeStamp 1729462049 [22:07:34]current date 1729462056 [22:07:34]FM_GetShiftState [22:07:34]SAM_PROTO_GetShiftState [22:07:34]wFMCommunicate request_size=4 [22:07:34]MH_SAM_APDU [22:07:34]CAPDU: 80 13 01 00 [22:07:34]Write to MH i2c: E2 08 00 C7 1A 80 13 01 00 00 00 00 00 5E [22:07:34]Write i2c OK [22:07:34]MH_I2C_Read... [22:07:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:07:35]Read from MH i2c: E2 [22:07:35]MH_I2C_Read... [22:07:35]Read from MH i2c: E2 0E 00 [22:07:35]MH_I2C_Read... [22:07:35]Read from MH i2c: E2 0E 00 C7 1A 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 78 [22:07:35]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [22:07:35]wFMCommunicate OK [22:07:35]SAM_PROTO_GetShiftState done [22:07:35]FM_GetShiftState done [22:07:35]opened in 1729383750 [22:07:35]opened+sec_in_day 1729470150 [22:07:35]quantity*price = 99043 [22:07:35]sum+1 = 99044 [22:07:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 990.43 НСП 1% : 8.76 НДС 12% : 105.18 Наличными: 0.00 Безнал.: 990.43 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 559 20.10.2024 22:07 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 227711 ФПД: 207016567957838 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T220736&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227711&fm=207016567957838&tin=02508201610067®Number=0000000000091685&sum=99043 [22:07:36]StoreToDocumentArchive [22:07:36]shift 533 fd 227711 [22:07:36]save to /storage/0533/doc_00227711 [22:07:36]save last doc name /storage/0533/doc_00227711 to /storage/kkm_last_doc_name [22:07:36]save OK [22:07:36]Clear old archive folders... [22:07:36]ProcessDocumentItem done err = 0, tmpTLVsize=244 [22:07:36]tlvbuf is 00CAE0B0 [22:07:36]SAM_PROTO_ClearQueue [22:07:36]wFMCommunicate request_size=4 [22:07:36]MH_SAM_APDU [22:07:36]CAPDU: 80 09 00 00 [22:07:36]Write to MH i2c: E2 08 00 D4 1A 80 09 00 00 00 00 00 00 60 [22:07:36]Write i2c OK [22:07:36]MH_I2C_Read... [22:07:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:07:36]Read from MH i2c: E2 [22:07:36]MH_I2C_Read... [22:07:36]Read from MH i2c: E2 03 00 [22:07:36]MH_I2C_Read... [22:07:36]Read from MH i2c: E2 03 00 D4 1A 00 90 00 62 [22:07:36]RAPDU: 90 00 [22:07:36]wFMCommunicate OK [22:07:36]SAM_PROTO_ClearQueue done [22:07:36]KKMCreateOFDPacket [22:07:36]OFDProtocolAddRootSTLVToBuf [22:07:36]FM_MakeSignedData [22:07:36]FM_MakeSignedData [22:07:36]SAM_PROTO_SignData [22:07:36]wFMCommunicate request_size=4 [22:07:36]MH_SAM_APDU [22:07:36]CAPDU: 80 0D 01 02 [22:07:36]Write to MH i2c: E2 08 00 D5 1A 80 0D 01 02 00 00 00 00 68 [22:07:36]Write i2c OK [22:07:36]MH_I2C_Read... [22:07:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:07:36]Read from MH i2c: E2 [22:07:36]MH_I2C_Read... [22:07:36]Read from MH i2c: E2 03 00 [22:07:36]MH_I2C_Read... [22:07:36]Read from MH i2c: E2 03 00 D5 1A 00 90 00 63 [22:07:36]RAPDU: 90 00 [22:07:36]wFMCommunicate OK [22:07:36]wFMCommunicate request_size=253 [22:07:36]MH_SAM_APDU [22:07:36]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 90 38 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 E3 82 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E3 82 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E3 82 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 02 00 00 F4 03 04 00 28 7F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7F 79 03 00 35 04 06 00 BC 47 CC FE E9 4E [22:07:36]Write to MH i2c: E2 00 01 D6 1A 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 90 38 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 E3 82 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E3 82 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E3 82 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 02 00 00 F4 03 04 00 28 7F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7F 79 03 00 35 04 06 00 BC 47 CC FE E9 4E 00 00 0C [22:07:36]Write i2c OK [22:07:36]MH_I2C_Read... [22:07:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:07:36]Read from MH i2c: E2 [22:07:36]MH_I2C_Read... [22:07:36]Read from MH i2c: E2 03 00 [22:07:36]MH_I2C_Read... [22:07:36]Read from MH i2c: E2 03 00 D6 1A 00 90 00 64 [22:07:36]RAPDU: 90 00 [22:07:36]wFMCommunicate OK [22:07:36]wFMCommunicate request_size=4 [22:07:36]MH_SAM_APDU [22:07:36]CAPDU: 80 0D 03 02 [22:07:36]Write to MH i2c: E2 08 00 D7 1A 80 0D 03 02 00 00 00 00 6C [22:07:36]Write i2c OK [22:07:36]MH_I2C_Read... [22:07:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:07:36]Read from MH i2c: E2 [22:07:36]MH_I2C_Read... [22:07:36]Read from MH i2c: E2 0B 00 [22:07:36]MH_I2C_Read... [22:07:36]Read from MH i2c: E2 0B 00 D7 1A 00 DD 5C 25 1A 93 63 B9 49 90 00 DD [22:07:36]RAPDU: DD 5C 25 1A 93 63 B9 49 90 00 [22:07:36]wFMCommunicate OK [22:07:36]SAM_PROTO_SignData done [22:07:36]FM_MakeSignedData done [22:07:36]CreateOFDProtocolMessage [22:07:36]wFMCommunicate request_size=4 [22:07:36]MH_SAM_APDU [22:07:36]CAPDU: 80 11 00 00 [22:07:36]Write to MH i2c: E2 08 00 D8 1A 80 11 00 00 00 00 00 00 6C [22:07:36]Write i2c OK [22:07:36]MH_I2C_Read... [22:07:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:07:36]Read from MH i2c: E2 [22:07:36]MH_I2C_Read... [22:07:36]Read from MH i2c: E2 17 00 [22:07:36]MH_I2C_Read... [22:07:36]Read from MH i2c: E2 17 00 D8 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C3 [22:07:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [22:07:36]wFMCommunicate OK [22:07:36]CreateOFDProtocolMessage done [22:07:36]OFDSenderStorePacket 227711 [22:07:36]StoreOFDPacket docnum=227711 [22:07:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 86 2E 00 01 78 E3 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 90 38 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 E3 82 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E3 82 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E3 82 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 02 00 00 F4 03 04 00 28 7F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7F 79 03 00 35 04 06 00 BC 47 CC FE E9 4E DD 5C 25 1A 93 63 B9 49 [22:07:36]CheckFolder [22:07:36]dirname=/storage/ofd_packets [22:07:36]CheckFolder done [22:07:36]ProducePacketName [22:07:36]name=ofd_packets/00227711 [22:07:36]NVStorageSaveData ofd_packets/00227711 [22:07:36]File name is /storage/ofd_packets/00227711 [22:07:36]Write 294 bytes [22:07:36]NVStorageSaveData done [22:07:36]OFDSenderStorePacket done [22:07:36]KKMCreateOFDPacket done [22:07:36]NVStorageSaveData kkm_last_timestamp [22:07:36]File name is /storage/kkm_last_timestamp [22:07:36]Write 4 bytes [22:07:36]NVStorageSaveData done [22:07:36]ExternCall_PrintAddStr [22:07:36]wPrintStart [22:07:36]Write to MH i2c: 01 00 00 D9 1A F3 [22:07:36]Write i2c OK [22:07:36]MH_I2C_Read... [22:07:36]Read from MH i2c: 01 [22:07:36]MH_I2C_Read... [22:07:36]Read from MH i2c: 01 07 00 [22:07:36]MH_I2C_Read... [22:07:36]Read from MH i2c: 01 07 00 D9 1A 00 00 00 00 00 FF 0F 08 [22:07:36]RasterBufferAndPrint [22:07:36]line Счет N : (1)1963380 [22:07:36]line ИНН: 02508201610067 [22:07:36]line Контрольно-Кассовый Чек [22:07:36]line ПРОДАЖА [22:07:36]line ТРК (МРК, ГНК) : 52 [22:07:36]line Товар: 2710124130 [22:07:36]line SU-92 [22:07:36]line 14.480 * 68.40 [22:07:36]line = 990.43 [22:07:36]line НДС 12% НСП 1% [22:07:36]line > о реализуемом товаре [22:07:36]line ИТОГО: 990.43 [22:07:36]line НСП 1% : 8.76 [22:07:36]line НДС 12% : 105.18 [22:07:36]line Наличными: 0.00 [22:07:36]line Безнал.: 990.43 [22:07:36]line Место: АЗС № 133 "Партнер Нефть" [22:07:36]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [22:07:36]line СНО: Общий режим [22:07:36]line Чек 559 20.10.2024 22:07 [22:07:36]line Смена: 533 ФФД: 1.0 [22:07:36]line ЗНМ: 0300000091 [22:07:36]line РНМ: 0000000000091685 [22:07:36]line Версия ККМ: 001 [22:07:36]line Платежная система: Mbank [22:07:36]line ФМ: 0000000000871839 [22:07:36]line ФД: 227711 [22:07:36]line ФПД: 207016567957838 [22:07:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T220736&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227711&fm=207016567957838&tin=02508201610067®Number=0000000000091685&sum=99043 [22:07:36]written 0, free lines is 4095 [22:07:37]Write to MH i2c: 01 00 00 01 1B 1C [22:07:37]Write i2c OK [22:07:37]MH_I2C_Read... [22:07:37]Read from MH i2c: 01 [22:07:37]MH_I2C_Read... [22:07:37]Read from MH i2c: 01 07 00 [22:07:37]MH_I2C_Read... [22:07:37]Read from MH i2c: 01 07 00 01 1B 00 00 00 00 00 D7 0C 06 [22:07:37]RasterBufferAndPrint [22:07:37]line [22:07:37]line [22:07:37]line [22:07:37]line [22:07:37]line [22:07:37]written 0, free lines is 3293 [22:07:37]MH_Cut [22:07:37]Write to MH i2c: D1 01 00 08 1B 01 F5 [22:07:37]Write i2c OK [22:07:37]MH_I2C_Read... [22:07:37]Read from MH i2c: D1 [22:07:37]MH_I2C_Read... [22:07:37]Read from MH i2c: D1 01 00 [22:07:37]MH_I2C_Read... [22:07:37]Read from MH i2c: D1 01 00 08 1B 00 F4 [22:07:37]Write to MH i2c: 01 00 00 09 1B 24 [22:07:37]Write i2c OK [22:07:37]MH_I2C_Read... [22:07:37]*** Cut start [22:07:37]*** Partial cut [22:07:37]*** CUTSNS_PIN = 1 [22:07:38]*** CUTSNS_PIN = 0 [22:07:38]*** Brake cut motor [22:07:38]Read from MH i2c: 01 [22:07:38]MH_I2C_Read... [22:07:38]*** Stop cut motor [22:07:38]*** Cut end [22:07:38]Read from MH i2c: 01 07 00 [22:07:38]MH_I2C_Read... [22:07:38]Read from MH i2c: 01 07 00 09 1B 00 00 00 00 00 FF 0F 39 [22:07:38]process_action close_receipt done [22:07:38]requested_data is exist [22:07:38]produce_requested_data [22:07:38]requested_item fm.sn is exist - process it [22:07:38]wFMCommunicate request_size=4 [22:07:38]MH_SAM_APDU [22:07:38]CAPDU: 80 11 00 00 [22:07:38]Write to MH i2c: E2 08 00 0A 1B 80 11 00 00 00 00 00 00 9F [22:07:38]Write i2c OK [22:07:38]MH_I2C_Read... [22:07:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:07:38]Read from MH i2c: E2 [22:07:38]MH_I2C_Read... [22:07:38]Read from MH i2c: E2 17 00 [22:07:38]MH_I2C_Read... [22:07:38]Read from MH i2c: E2 17 00 0A 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F6 [22:07:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [22:07:38]wFMCommunicate OK [22:07:38]requested_item fd.num is exist - process it [22:07:38]SAM_PROTO_GetFieldsCounters [22:07:38]wFMCommunicate request_size=4 [22:07:38]MH_SAM_APDU [22:07:38]CAPDU: 80 13 00 00 [22:07:38]Write to MH i2c: E2 08 00 0B 1B 80 13 00 00 00 00 00 00 A2 [22:07:38]Write i2c OK [22:07:38]MH_I2C_Read... [22:07:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:07:38]Read from MH i2c: E2 [22:07:38]MH_I2C_Read... [22:07:38]Read from MH i2c: E2 62 00 [22:07:38]MH_I2C_Read... [22:07:38]Read from MH i2c: E2 62 00 0B 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 7F 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 2F 02 00 00 5E 04 04 00 2F 02 00 00 57 04 04 00 30 02 00 00 19 04 04 00 00 00 00 00 90 00 70 [22:07: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 7F 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 2F 02 00 00 5E 04 04 00 2F 02 00 00 57 04 04 00 30 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:07:38]wFMCommunicate OK [22:07:38]SAM_PROTO_GetFieldsCounters done [22:07:38]requested_item shift.num is exist - process it [22:07:38]requested_item shift.opened is exist - process it [22:07:38]req_shift_opened [22:07:38]FM_GetShiftState [22:07:38]SAM_PROTO_GetShiftState [22:07:38]wFMCommunicate request_size=4 [22:07:38]MH_SAM_APDU [22:07:38]CAPDU: 80 13 01 00 [22:07:38]Write to MH i2c: E2 08 00 0C 1B 80 13 01 00 00 00 00 00 A4 [22:07:38]Write i2c OK [22:07:38]MH_I2C_Read... [22:07:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:07:38]Read from MH i2c: E2 [22:07:38]MH_I2C_Read... [22:07:38]Read from MH i2c: E2 0E 00 [22:07:38]MH_I2C_Read... [22:07:38]Read from MH i2c: E2 0E 00 0C 1B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 BE [22:07:38]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [22:07:38]wFMCommunicate OK [22:07:38]SAM_PROTO_GetShiftState done [22:07:38]FM_GetShiftState done [22:07:38]req_shift_opened done [22:07:38]requested_item shift.open_date is exist - process it [22:07:38]req_shift_open_date [22:07:38]req_shift_open_date done [22:07:38]produce_requested_data done [22:07:38]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227711,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [22:07:38]process_action_free close_receipt [22:07:38]json_value_free [22:07:38]json_value_free done [22:07:38]process_json_proto returns [22:07:38]Send response to host [22:07:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227711,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [22:07:38]free response buf [22:07:38]execute_script done [22:07:38]execute_script returns [22:07:38]free content buf [22:07:38]Sock 7.Close socket [22:07:38]Sock 7.Thread stoped [22:07:48]accept exits with 10 [22:07:48]New connection [22:07:48]New thread 3066809700 created [22:07:48]Thread 3066666340 joined [22:07:48]Waiting for new connection... [22:07:48] Sock 10.Parse request [22:07:48]Sock 10.Check first char [22:07:48]Sock 10.First char is OK [22:07:48]request: POST /json_proto HTTP/1.0 [22:07:48]Method: POST [22:07:48]URL: /json_proto [22:07:48]Method is POST - this is cgi request [22:07:48]url: /json_proto [22:07:48]query_string will be loaded in cgi processing [22:07:48]execute_cgi json_proto POST (null) [22:07:48]execute_cgi path=json_proto method=POST [22:07:48]POST find Content-Length [22:07:48]Host: 172.17.44.195:8080 [22:07:48]Content-Length: 678 [22:07:48]Content-Type: application/json [22:07:48] [22:07:48]POST finish read [22:07:48]Found Content-Length = 678 [22:07:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963381", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:07:48]execute_script... [22:07: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)1963381", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:07:48]POST & json_proto [22:07:48]process_json_proto [22:07:48]json parsed OK: [22:07:48]protocol is kg_v1.0 [22:07:48]action value=close_receipt [22:07:48]process_action close_receipt [22:07:48]cmd_close_receipt [22:07:48]MH_GetDate [22:07:48]Write to MH i2c: F0 00 00 0D 1B 17 [22:07:48]Write i2c OK [22:07:48]MH_I2C_Read... [22:07:48]Read from MH i2c: F0 [22:07:48]MH_I2C_Read... [22:07:48]Read from MH i2c: F0 09 00 [22:07:48]MH_I2C_Read... [22:07:48]Read from MH i2c: F0 09 00 0D 1B 00 35 7F 15 67 82 C9 CF 66 D0 [22:07:48]GetLastDocTimeStamp 1729462056 [22:07:48]current date 1729462069 [22:07:48]FM_GetShiftState [22:07:48]SAM_PROTO_GetShiftState [22:07:48]wFMCommunicate request_size=4 [22:07:48]MH_SAM_APDU [22:07:48]CAPDU: 80 13 01 00 [22:07:48]Write to MH i2c: E2 08 00 0E 1B 80 13 01 00 00 00 00 00 A6 [22:07:48]Write i2c OK [22:07:48]MH_I2C_Read... [22:07:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:07:48]Read from MH i2c: E2 [22:07:48]MH_I2C_Read... [22:07:48]Read from MH i2c: E2 0E 00 [22:07:48]MH_I2C_Read... [22:07:48]Read from MH i2c: E2 0E 00 0E 1B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 C0 [22:07:48]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [22:07:48]wFMCommunicate OK [22:07:48]SAM_PROTO_GetShiftState done [22:07:48]FM_GetShiftState done [22:07:48]opened in 1729383750 [22:07:48]opened+sec_in_day 1729470150 [22:07:48]quantity*price = 50041 [22:07:48]sum+1 = 50042 [22:07:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 560 20.10.2024 22:07 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227712 ФПД: 158857752727228 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T220749&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227712&fm=158857752727228&tin=02508201610067®Number=0000000000091685&sum=50000 [22:07:49]StoreToDocumentArchive [22:07:49]shift 533 fd 227712 [22:07:49]save to /storage/0533/doc_00227712 [22:07:49]save last doc name /storage/0533/doc_00227712 to /storage/kkm_last_doc_name [22:07:49]save OK [22:07:49]Clear old archive folders... [22:07:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:07:49]tlvbuf is 00C28310 [22:07:49]SAM_PROTO_ClearQueue [22:07:49]wFMCommunicate request_size=4 [22:07:49]MH_SAM_APDU [22:07:49]CAPDU: 80 09 00 00 [22:07:49]Write to MH i2c: E2 08 00 1B 1B 80 09 00 00 00 00 00 00 A8 [22:07:49]Write i2c OK [22:07:49]MH_I2C_Read... [22:07:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:07:49]Read from MH i2c: E2 [22:07:49]MH_I2C_Read... [22:07:49]Read from MH i2c: E2 03 00 [22:07:49]MH_I2C_Read... [22:07:49]Read from MH i2c: E2 03 00 1B 1B 00 90 00 AA [22:07:49]RAPDU: 90 00 [22:07:49]wFMCommunicate OK [22:07:49]SAM_PROTO_ClearQueue done [22:07:49]KKMCreateOFDPacket [22:07:49]OFDProtocolAddRootSTLVToBuf [22:07:49]FM_MakeSignedData [22:07:49]FM_MakeSignedData [22:07:49]SAM_PROTO_SignData [22:07:49]wFMCommunicate request_size=4 [22:07:49]MH_SAM_APDU [22:07:49]CAPDU: 80 0D 01 02 [22:07:49]Write to MH i2c: E2 08 00 1C 1B 80 0D 01 02 00 00 00 00 B0 [22:07:49]Write i2c OK [22:07:49]MH_I2C_Read... [22:07:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:07:49]Read from MH i2c: E2 [22:07:49]MH_I2C_Read... [22:07:49]Read from MH i2c: E2 03 00 [22:07:49]MH_I2C_Read... [22:07:49]Read from MH i2c: E2 03 00 1C 1B 00 90 00 AB [22:07:49]RAPDU: 90 00 [22:07:49]wFMCommunicate OK [22:07:49]wFMCommunicate request_size=255 [22:07:49]MH_SAM_APDU [22:07:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 02 00 00 F4 03 04 00 35 7F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 80 79 03 00 35 04 06 00 90 [22:07:49]Write to MH i2c: E2 02 01 1D 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 02 00 00 F4 03 04 00 35 7F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 80 79 03 00 35 04 06 00 90 00 00 4C [22:07:49]Write i2c OK [22:07:49]MH_I2C_Read... [22:07:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:07:49]Read from MH i2c: E2 [22:07:49]MH_I2C_Read... [22:07:49]Read from MH i2c: E2 03 00 [22:07:49]MH_I2C_Read... [22:07:49]Read from MH i2c: E2 03 00 1D 1B 00 90 00 AC [22:07:49]RAPDU: 90 00 [22:07:49]wFMCommunicate OK [22:07:49]wFMCommunicate request_size=10 [22:07:49]MH_SAM_APDU [22:07:49]CAPDU: 80 0D 02 02 05 7A F3 EB CE BC [22:07:49]Write to MH i2c: E2 0D 00 1E 1B 80 0D 02 02 05 00 7A F3 EB CE BC 00 00 9F [22:07:49]Write i2c OK [22:07:49]MH_I2C_Read... [22:07:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:07:50]Read from MH i2c: E2 [22:07:50]MH_I2C_Read... [22:07:50]Read from MH i2c: E2 03 00 [22:07:50]MH_I2C_Read... [22:07:50]Read from MH i2c: E2 03 00 1E 1B 00 90 00 AD [22:07:50]RAPDU: 90 00 [22:07:50]wFMCommunicate OK [22:07:50]wFMCommunicate request_size=4 [22:07:50]MH_SAM_APDU [22:07:50]CAPDU: 80 0D 03 02 [22:07:50]Write to MH i2c: E2 08 00 1F 1B 80 0D 03 02 00 00 00 00 B5 [22:07:50]Write i2c OK [22:07:50]MH_I2C_Read... [22:07:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:07:50]Read from MH i2c: E2 [22:07:50]MH_I2C_Read... [22:07:50]Read from MH i2c: E2 0B 00 [22:07:50]MH_I2C_Read... [22:07:50]Read from MH i2c: E2 0B 00 1F 1B 00 4E 80 F6 8C F7 55 12 CB 90 00 2F [22:07:50]RAPDU: 4E 80 F6 8C F7 55 12 CB 90 00 [22:07:50]wFMCommunicate OK [22:07:50]SAM_PROTO_SignData done [22:07:50]FM_MakeSignedData done [22:07:50]CreateOFDProtocolMessage [22:07:50]wFMCommunicate request_size=4 [22:07:50]MH_SAM_APDU [22:07:50]CAPDU: 80 11 00 00 [22:07:50]Write to MH i2c: E2 08 00 20 1B 80 11 00 00 00 00 00 00 B5 [22:07:50]Write i2c OK [22:07:50]MH_I2C_Read... [22:07:50]Read from MH i2c: E2 [22:07:50]MH_I2C_Read... [22:07:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:07:50]Read from MH i2c: E2 17 00 [22:07:50]MH_I2C_Read... [22:07:50]Read from MH i2c: E2 17 00 20 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 0C [22:07:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [22:07:50]wFMCommunicate OK [22:07:50]CreateOFDProtocolMessage done [22:07:50]OFDSenderStorePacket 227712 [22:07:50]StoreOFDPacket docnum=227712 [22:07:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 7B 5C 07 01 FE 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 02 00 00 F4 03 04 00 35 7F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 80 79 03 00 35 04 06 00 90 7A F3 EB CE BC 4E 80 F6 8C F7 55 12 CB [22:07:50]CheckFolder [22:07:50]dirname=/storage/ofd_packets [22:07:50]CheckFolder done [22:07:50]ProducePacketName [22:07:50]name=ofd_packets/00227712 [22:07:50]NVStorageSaveData ofd_packets/00227712 [22:07:50]File name is /storage/ofd_packets/00227712 [22:07:50]Write 301 bytes [22:07:50]NVStorageSaveData done [22:07:50]OFDSenderStorePacket done [22:07:50]KKMCreateOFDPacket done [22:07:50]NVStorageSaveData kkm_last_timestamp [22:07:50]File name is /storage/kkm_last_timestamp [22:07:50]Write 4 bytes [22:07:50]NVStorageSaveData done [22:07:50]ExternCall_PrintAddStr [22:07:50]wPrintStart [22:07:50]Write to MH i2c: 01 00 00 21 1B 3C [22:07:50]Write i2c OK [22:07:50]MH_I2C_Read... [22:07:50]Read from MH i2c: 01 [22:07:50]MH_I2C_Read... [22:07:50]Read from MH i2c: 01 07 00 [22:07:50]MH_I2C_Read... [22:07:50]Read from MH i2c: 01 07 00 21 1B 00 00 00 00 00 FF 0F 51 [22:07:50]RasterBufferAndPrint [22:07:50]line Счет N : (1)1963381 [22:07:50]line ИНН: 02508201610067 [22:07:50]line Контрольно-Кассовый Чек [22:07:50]line ПРОДАЖА [22:07:50]line ТРК (МРК, ГНК) : 43 [22:07:50]line Товар: 2710124130 [22:07:50]line Аи-92-К-5 [22:07:50]line 7.480 * 66.90 [22:07:50]line = 500.41 [22:07:50]line НДС 12% НСП 1% [22:07:50]line > о реализуемом товаре [22:07:50]line ОКРУГЛЕНИЕ: -0.41 [22:07:50]line ИТОГО: 500.00 [22:07:50]line Внесено: 500.00 [22:07:50]line СДАЧА: 0.00 [22:07:50]line НСП 1% : 4.43 [22:07:50]line НДС 12% : 53.14 [22:07:50]line Наличными: 500.00 [22:07:50]line Безнал.: 0.00 [22:07:50]line Место: АЗС № 133 "Партнер Нефть" [22:07:50]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [22:07:50]line СНО: Общий режим [22:07:50]line Чек 560 20.10.2024 22:07 [22:07:50]line Смена: 533 ФФД: 1.0 [22:07:50]line ЗНМ: 0300000091 [22:07:50]line РНМ: 0000000000091685 [22:07:50]line Версия ККМ: 001 [22:07:50]line ФМ: 0000000000871839 [22:07:50]line ФД: 227712 [22:07:50]line ФПД: 158857752727228 [22:07:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T220749&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227712&fm=158857752727228&tin=02508201610067®Number=0000000000091685&sum=50000 [22:07:50]written 0, free lines is 4095 [22:07:50]Write to MH i2c: 01 00 00 4B 1B 66 [22:07:50]Write i2c OK [22:07:50]MH_I2C_Read... [22:07:50]Read from MH i2c: 01 [22:07:50]MH_I2C_Read... [22:07:50]Read from MH i2c: 01 07 00 [22:07:50]MH_I2C_Read... [22:07:50]Read from MH i2c: 01 07 00 4B 1B 00 00 00 00 00 AB 0C 24 [22:07:50]RasterBufferAndPrint [22:07:50]line [22:07:50]line [22:07:50]line [22:07:50]line [22:07:50]line [22:07:50]written 0, free lines is 3250 [22:07:50]MH_Cut [22:07:50]Write to MH i2c: D1 01 00 52 1B 01 3F [22:07:50]Write i2c OK [22:07:50]MH_I2C_Read... [22:07:50]Read from MH i2c: D1 [22:07:50]MH_I2C_Read... [22:07:50]Read from MH i2c: D1 01 00 [22:07:50]MH_I2C_Read... [22:07:50]Read from MH i2c: D1 01 00 52 1B 00 3E [22:07:50]Write to MH i2c: 01 00 00 53 1B 6E [22:07:50]Write i2c OK [22:07:50]MH_I2C_Read... [22:07:51]*** Cut start [22:07:51]*** Partial cut [22:07:51]*** CUTSNS_PIN = 1 [22:07:51]*** CUTSNS_PIN = 0 [22:07:51]*** Brake cut motor [22:07:52]Read from MH i2c: 01 [22:07:52]MH_I2C_Read... [22:07:52]*** Stop cut motor [22:07:52]*** Cut end [22:07:52]Read from MH i2c: 01 07 00 [22:07:52]MH_I2C_Read... [22:07:52]Read from MH i2c: 01 07 00 53 1B 00 00 00 00 00 FF 0F 83 [22:07:52]process_action close_receipt done [22:07:52]requested_data is exist [22:07:52]produce_requested_data [22:07:52]requested_item fm.sn is exist - process it [22:07:52]wFMCommunicate request_size=4 [22:07:52]MH_SAM_APDU [22:07:52]CAPDU: 80 11 00 00 [22:07:52]Write to MH i2c: E2 08 00 54 1B 80 11 00 00 00 00 00 00 E9 [22:07:52]Write i2c OK [22:07:52]MH_I2C_Read... [22:07:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:07:52]Read from MH i2c: E2 [22:07:52]MH_I2C_Read... [22:07:52]Read from MH i2c: E2 17 00 [22:07:52]MH_I2C_Read... [22:07:52]Read from MH i2c: E2 17 00 54 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 40 [22:07:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [22:07:52]wFMCommunicate OK [22:07:52]requested_item fd.num is exist - process it [22:07:52]SAM_PROTO_GetFieldsCounters [22:07:52]wFMCommunicate request_size=4 [22:07:52]MH_SAM_APDU [22:07:52]CAPDU: 80 13 00 00 [22:07:52]Write to MH i2c: E2 08 00 55 1B 80 13 00 00 00 00 00 00 EC [22:07:52]Write i2c OK [22:07:52]MH_I2C_Read... [22:07:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:07:52]Read from MH i2c: E2 [22:07:52]MH_I2C_Read... [22:07:52]Read from MH i2c: E2 62 00 [22:07:52]MH_I2C_Read... [22:07:52]Read from MH i2c: E2 62 00 55 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 80 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 30 02 00 00 5E 04 04 00 30 02 00 00 57 04 04 00 31 02 00 00 19 04 04 00 00 00 00 00 90 00 BE [22:07: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 80 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 30 02 00 00 5E 04 04 00 30 02 00 00 57 04 04 00 31 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:07:52]wFMCommunicate OK [22:07:52]SAM_PROTO_GetFieldsCounters done [22:07:52]requested_item shift.num is exist - process it [22:07:52]requested_item shift.opened is exist - process it [22:07:52]req_shift_opened [22:07:52]FM_GetShiftState [22:07:52]SAM_PROTO_GetShiftState [22:07:52]wFMCommunicate request_size=4 [22:07:52]MH_SAM_APDU [22:07:52]CAPDU: 80 13 01 00 [22:07:52]Write to MH i2c: E2 08 00 56 1B 80 13 01 00 00 00 00 00 EE [22:07:52]Write i2c OK [22:07:52]MH_I2C_Read... [22:07:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:07:52]Read from MH i2c: E2 [22:07:52]MH_I2C_Read... [22:07:52]Read from MH i2c: E2 0E 00 [22:07:52]MH_I2C_Read... [22:07:52]Read from MH i2c: E2 0E 00 56 1B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 08 [22:07:52]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [22:07:52]wFMCommunicate OK [22:07:52]SAM_PROTO_GetShiftState done [22:07:52]FM_GetShiftState done [22:07:52]req_shift_opened done [22:07:52]requested_item shift.open_date is exist - process it [22:07:52]req_shift_open_date [22:07:52]req_shift_open_date done [22:07:52]produce_requested_data done [22:07:52]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227712,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [22:07:52]process_action_free close_receipt [22:07:52]json_value_free [22:07:52]json_value_free done [22:07:52]process_json_proto returns [22:07:52]Send response to host [22:07:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227712,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [22:07:52]free response buf [22:07:52]execute_script done [22:07:52]execute_script returns [22:07:52]free content buf [22:07:52]Sock 10.Close socket [22:07:52]Sock 10.Thread stoped [22:09:00]accept exits with 7 [22:09:00]New connection [22:09:00]New thread 3066666340 created [22:09:00]Thread 3066809700 joined [22:09:00]Waiting for new connection... [22:09:00] Sock 7.Parse request [22:09:00]Sock 7.Check first char [22:09:00]Sock 7.First char is OK [22:09:00]request: POST /json_proto HTTP/1.0 [22:09:00]Method: POST [22:09:00]URL: /json_proto [22:09:00]Method is POST - this is cgi request [22:09:00]url: /json_proto [22:09:00]query_string will be loaded in cgi processing [22:09:00]execute_cgi json_proto POST (null) [22:09:00]execute_cgi path=json_proto method=POST [22:09:00]POST find Content-Length [22:09:00]Host: 172.17.44.195:8080 [22:09:00]Content-Length: 680 [22:09:00]Content-Type: application/json [22:09:00] [22:09:00]POST finish read [22:09:00]Found Content-Length = 680 [22:09:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963382", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:09:00]execute_script... [22:09: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)1963382", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:09:00]POST & json_proto [22:09:00]process_json_proto [22:09:00]json parsed OK: [22:09:00]protocol is kg_v1.0 [22:09:00]action value=close_receipt [22:09:00]process_action close_receipt [22:09:00]cmd_close_receipt [22:09:00]MH_GetDate [22:09:00]Write to MH i2c: F0 00 00 57 1B 61 [22:09:00]Write i2c OK [22:09:00]MH_I2C_Read... [22:09:00]Read from MH i2c: F0 [22:09:00]MH_I2C_Read... [22:09:00]Read from MH i2c: F0 09 00 [22:09:00]MH_I2C_Read... [22:09:00]Read from MH i2c: F0 09 00 57 1B 00 7D 7F 15 67 82 C9 CF 66 62 [22:09:00]GetLastDocTimeStamp 1729462069 [22:09:00]current date 1729462141 [22:09:00]FM_GetShiftState [22:09:00]SAM_PROTO_GetShiftState [22:09:00]wFMCommunicate request_size=4 [22:09:00]MH_SAM_APDU [22:09:00]CAPDU: 80 13 01 00 [22:09:00]Write to MH i2c: E2 08 00 58 1B 80 13 01 00 00 00 00 00 F0 [22:09:00]Write i2c OK [22:09:00]MH_I2C_Read... [22:09:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:09:00]Read from MH i2c: E2 [22:09:00]MH_I2C_Read... [22:09:00]Read from MH i2c: E2 0E 00 [22:09:00]MH_I2C_Read... [22:09:00]Read from MH i2c: E2 0E 00 58 1B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 0A [22:09:00]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [22:09:00]wFMCommunicate OK [22:09:00]SAM_PROTO_GetShiftState done [22:09:00]FM_GetShiftState done [22:09:00]opened in 1729383750 [22:09:00]opened+sec_in_day 1729470150 [22:09:00]quantity*price = 100050 [22:09:00]sum+1 = 100052 [22:09:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 561 20.10.2024 22:09 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227713 ФПД: 218663342486924 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T220901&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227713&fm=218663342486924&tin=02508201610067®Number=0000000000091685&sum=100000 [22:09:01]StoreToDocumentArchive [22:09:01]shift 533 fd 227713 [22:09:01]save to /storage/0533/doc_00227713 [22:09:01]save last doc name /storage/0533/doc_00227713 to /storage/kkm_last_doc_name [22:09:01]save OK [22:09:01]Clear old archive folders... [22:09:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:09:01]tlvbuf is 00C49CB0 [22:09:01]SAM_PROTO_ClearQueue [22:09:01]wFMCommunicate request_size=4 [22:09:01]MH_SAM_APDU [22:09:01]CAPDU: 80 09 00 00 [22:09:01]Write to MH i2c: E2 08 00 65 1B 80 09 00 00 00 00 00 00 F2 [22:09:01]Write i2c OK [22:09:01]MH_I2C_Read... [22:09:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:09:01]Read from MH i2c: E2 [22:09:01]MH_I2C_Read... [22:09:01]Read from MH i2c: E2 03 00 [22:09:01]MH_I2C_Read... [22:09:01]Read from MH i2c: E2 03 00 65 1B 00 90 00 F4 [22:09:01]RAPDU: 90 00 [22:09:01]wFMCommunicate OK [22:09:01]SAM_PROTO_ClearQueue done [22:09:01]KKMCreateOFDPacket [22:09:01]OFDProtocolAddRootSTLVToBuf [22:09:01]FM_MakeSignedData [22:09:01]FM_MakeSignedData [22:09:01]SAM_PROTO_SignData [22:09:01]wFMCommunicate request_size=4 [22:09:01]MH_SAM_APDU [22:09:01]CAPDU: 80 0D 01 02 [22:09:01]Write to MH i2c: E2 08 00 66 1B 80 0D 01 02 00 00 00 00 FA [22:09:01]Write i2c OK [22:09:01]MH_I2C_Read... [22:09:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:09:01]Read from MH i2c: E2 [22:09:01]MH_I2C_Read... [22:09:01]Read from MH i2c: E2 03 00 [22:09:01]MH_I2C_Read... [22:09:01]Read from MH i2c: E2 03 00 66 1B 00 90 00 F5 [22:09:01]RAPDU: 90 00 [22:09:01]wFMCommunicate OK [22:09:01]wFMCommunicate request_size=255 [22:09:01]MH_SAM_APDU [22:09:01]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 02 00 00 F4 03 04 00 7D 7F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 81 79 03 00 35 04 06 00 C6 DF 86 DA [22:09:01]Write to MH i2c: E2 02 01 67 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 02 00 00 F4 03 04 00 7D 7F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 81 79 03 00 35 04 06 00 C6 DF 86 DA 00 00 4B [22:09:01]Write i2c OK [22:09:01]MH_I2C_Read... [22:09:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:09:01]Read from MH i2c: E2 [22:09:01]MH_I2C_Read... [22:09:01]Read from MH i2c: E2 03 00 [22:09:01]MH_I2C_Read... [22:09:01]Read from MH i2c: E2 03 00 67 1B 00 90 00 F6 [22:09:01]RAPDU: 90 00 [22:09:01]wFMCommunicate OK [22:09:01]wFMCommunicate request_size=7 [22:09:01]MH_SAM_APDU [22:09:01]CAPDU: 80 0D 02 02 02 B5 8C [22:09:01]Write to MH i2c: E2 0A 00 68 1B 80 0D 02 02 02 00 B5 8C 00 00 42 [22:09:01]Write i2c OK [22:09:01]MH_I2C_Read... [22:09:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:09:01]Read from MH i2c: E2 [22:09:01]MH_I2C_Read... [22:09:01]Read from MH i2c: E2 03 00 [22:09:01]MH_I2C_Read... [22:09:01]Read from MH i2c: E2 03 00 68 1B 00 90 00 F7 [22:09:01]RAPDU: 90 00 [22:09:01]wFMCommunicate OK [22:09:01]wFMCommunicate request_size=4 [22:09:01]MH_SAM_APDU [22:09:01]CAPDU: 80 0D 03 02 [22:09:01]Write to MH i2c: E2 08 00 69 1B 80 0D 03 02 00 00 00 00 FF [22:09:01]Write i2c OK [22:09:01]MH_I2C_Read... [22:09:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:09:01]Read from MH i2c: E2 [22:09:01]MH_I2C_Read... [22:09:01]Read from MH i2c: E2 0B 00 [22:09:01]MH_I2C_Read... [22:09:01]Read from MH i2c: E2 0B 00 69 1B 00 DC E8 D4 DD 61 68 23 35 90 00 96 [22:09:01]RAPDU: DC E8 D4 DD 61 68 23 35 90 00 [22:09:01]wFMCommunicate OK [22:09:01]SAM_PROTO_SignData done [22:09:01]FM_MakeSignedData done [22:09:01]CreateOFDProtocolMessage [22:09:01]wFMCommunicate request_size=4 [22:09:01]MH_SAM_APDU [22:09:01]CAPDU: 80 11 00 00 [22:09:01]Write to MH i2c: E2 08 00 6A 1B 80 11 00 00 00 00 00 00 FF [22:09:01]Write i2c OK [22:09:01]MH_I2C_Read... [22:09:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:09:01]Read from MH i2c: E2 [22:09:01]MH_I2C_Read... [22:09:01]Read from MH i2c: E2 17 00 [22:09:01]MH_I2C_Read... [22:09:01]Read from MH i2c: E2 17 00 6A 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 56 [22:09:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [22:09:01]wFMCommunicate OK [22:09:01]CreateOFDProtocolMessage done [22:09:01]OFDSenderStorePacket 227713 [22:09:01]StoreOFDPacket docnum=227713 [22:09:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 9D E0 04 01 7C 76 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 02 00 00 F4 03 04 00 7D 7F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 81 79 03 00 35 04 06 00 C6 DF 86 DA B5 8C DC E8 D4 DD 61 68 23 35 [22:09:01]CheckFolder [22:09:01]dirname=/storage/ofd_packets [22:09:01]CheckFolder done [22:09:01]ProducePacketName [22:09:01]name=ofd_packets/00227713 [22:09:01]NVStorageSaveData ofd_packets/00227713 [22:09:01]File name is /storage/ofd_packets/00227713 [22:09:01]Write 298 bytes [22:09:01]NVStorageSaveData done [22:09:01]OFDSenderStorePacket done [22:09:01]KKMCreateOFDPacket done [22:09:01]NVStorageSaveData kkm_last_timestamp [22:09:01]File name is /storage/kkm_last_timestamp [22:09:01]Write 4 bytes [22:09:01]NVStorageSaveData done [22:09:01]ExternCall_PrintAddStr [22:09:01]wPrintStart [22:09:01]Write to MH i2c: 01 00 00 6B 1B 86 [22:09:01]Write i2c OK [22:09:01]MH_I2C_Read... [22:09:01]Read from MH i2c: 01 [22:09:01]MH_I2C_Read... [22:09:01]Read from MH i2c: 01 07 00 [22:09:01]MH_I2C_Read... [22:09:01]Read from MH i2c: 01 07 00 6B 1B 00 00 00 00 00 FF 0F 9B [22:09:01]RasterBufferAndPrint [22:09:01]line Счет N : (1)1963382 [22:09:01]line ИНН: 02508201610067 [22:09:01]line Контрольно-Кассовый Чек [22:09:01]line ПРОДАЖА [22:09:01]line ТРК (МРК, ГНК) : 21 [22:09:01]line Товар: 2710194210 [22:09:01]line ДТ-К-5 [22:09:01]line 13.130 * 76.20 [22:09:01]line = 1000.51 [22:09:01]line НДС 12% НСП 1% [22:09:01]line > о реализуемом товаре [22:09:01]line ОКРУГЛЕНИЕ: -0.51 [22:09:01]line ИТОГО: 1000.00 [22:09:01]line Внесено: 1000.00 [22:09:01]line СДАЧА: 0.00 [22:09:01]line НСП 1% : 8.85 [22:09:01]line НДС 12% : 106.25 [22:09:01]line Наличными: 1000.00 [22:09:01]line Безнал.: 0.00 [22:09:01]line Место: АЗС № 133 "Партнер Нефть" [22:09:01]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [22:09:01]line СНО: Общий режим [22:09:01]line Чек 561 20.10.2024 22:09 [22:09:01]line Смена: 533 ФФД: 1.0 [22:09:01]line ЗНМ: 0300000091 [22:09:01]line РНМ: 0000000000091685 [22:09:01]line Версия ККМ: 001 [22:09:01]line ФМ: 0000000000871839 [22:09:01]line ФД: 227713 [22:09:01]line ФПД: 218663342486924 [22:09:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T220901&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227713&fm=218663342486924&tin=02508201610067®Number=0000000000091685&sum=100000 [22:09:02]written 0, free lines is 4095 [22:09:02]Write to MH i2c: 01 00 00 95 1B B0 [22:09:02]Write i2c OK [22:09:02]MH_I2C_Read... [22:09:02]Read from MH i2c: 01 [22:09:02]MH_I2C_Read... [22:09:02]Read from MH i2c: 01 07 00 [22:09:02]MH_I2C_Read... [22:09:02]Read from MH i2c: 01 07 00 95 1B 00 00 00 00 00 A7 0C 6A [22:09:02]RasterBufferAndPrint [22:09:02]line [22:09:02]line [22:09:02]line [22:09:02]line [22:09:02]line [22:09:02]written 0, free lines is 3243 [22:09:02]MH_Cut [22:09:02]Write to MH i2c: D1 01 00 9C 1B 01 89 [22:09:02]Write i2c OK [22:09:02]MH_I2C_Read... [22:09:02]Read from MH i2c: D1 [22:09:02]MH_I2C_Read... [22:09:02]Read from MH i2c: D1 01 00 [22:09:02]MH_I2C_Read... [22:09:02]Read from MH i2c: D1 01 00 9C 1B 00 88 [22:09:02]Write to MH i2c: 01 00 00 9D 1B B8 [22:09:02]Write i2c OK [22:09:02]MH_I2C_Read... [22:09:03]*** Cut start [22:09:03]*** Partial cut [22:09:03]*** CUTSNS_PIN = 1 [22:09:03]*** CUTSNS_PIN = 0 [22:09:03]*** Brake cut motor [22:09:04]Read from MH i2c: 01 [22:09:04]MH_I2C_Read... [22:09:04]Read from MH i2c: 01 07 00 [22:09:04]MH_I2C_Read... [22:09:04]*** Stop cut motor [22:09:04]*** Cut end [22:09:04]Read from MH i2c: 01 07 00 9D 1B 00 00 00 00 00 FF 0F CD [22:09:04]process_action close_receipt done [22:09:04]requested_data is exist [22:09:04]produce_requested_data [22:09:04]requested_item fm.sn is exist - process it [22:09:04]wFMCommunicate request_size=4 [22:09:04]MH_SAM_APDU [22:09:04]CAPDU: 80 11 00 00 [22:09:04]Write to MH i2c: E2 08 00 9E 1B 80 11 00 00 00 00 00 00 33 [22:09:04]Write i2c OK [22:09:04]MH_I2C_Read... [22:09:04]Read from MH i2c: E2 [22:09:04]MH_I2C_Read... [22:09:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:09:04]Read from MH i2c: E2 17 00 [22:09:04]MH_I2C_Read... [22:09:04]Read from MH i2c: E2 17 00 9E 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 8A [22:09:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [22:09:04]wFMCommunicate OK [22:09:04]requested_item fd.num is exist - process it [22:09:04]SAM_PROTO_GetFieldsCounters [22:09:04]wFMCommunicate request_size=4 [22:09:04]MH_SAM_APDU [22:09:04]CAPDU: 80 13 00 00 [22:09:04]Write to MH i2c: E2 08 00 9F 1B 80 13 00 00 00 00 00 00 36 [22:09:04]Write i2c OK [22:09:04]MH_I2C_Read... [22:09:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:09:04]Read from MH i2c: E2 [22:09:04]MH_I2C_Read... [22:09:04]Read from MH i2c: E2 62 00 [22:09:04]MH_I2C_Read... [22:09:04]Read from MH i2c: E2 62 00 9F 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 81 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 31 02 00 00 5E 04 04 00 31 02 00 00 57 04 04 00 32 02 00 00 19 04 04 00 00 00 00 00 90 00 0C [22:09: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 81 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 31 02 00 00 5E 04 04 00 31 02 00 00 57 04 04 00 32 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:09:04]wFMCommunicate OK [22:09:04]SAM_PROTO_GetFieldsCounters done [22:09:04]requested_item shift.num is exist - process it [22:09:04]requested_item shift.opened is exist - process it [22:09:04]req_shift_opened [22:09:04]FM_GetShiftState [22:09:04]SAM_PROTO_GetShiftState [22:09:04]wFMCommunicate request_size=4 [22:09:04]MH_SAM_APDU [22:09:04]CAPDU: 80 13 01 00 [22:09:04]Write to MH i2c: E2 08 00 A0 1B 80 13 01 00 00 00 00 00 38 [22:09:04]Write i2c OK [22:09:04]MH_I2C_Read... [22:09:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:09:04]Read from MH i2c: E2 [22:09:04]MH_I2C_Read... [22:09:04]Read from MH i2c: E2 0E 00 [22:09:04]MH_I2C_Read... [22:09:04]Read from MH i2c: E2 0E 00 A0 1B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 52 [22:09:04]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [22:09:04]wFMCommunicate OK [22:09:04]SAM_PROTO_GetShiftState done [22:09:04]FM_GetShiftState done [22:09:04]req_shift_opened done [22:09:04]requested_item shift.open_date is exist - process it [22:09:04]req_shift_open_date [22:09:04]req_shift_open_date done [22:09:04]produce_requested_data done [22:09:04]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227713,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [22:09:04]process_action_free close_receipt [22:09:04]json_value_free [22:09:04]json_value_free done [22:09:04]process_json_proto returns [22:09:04]Send response to host [22:09:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227713,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [22:09:04]free response buf [22:09:04]execute_script done [22:09:04]execute_script returns [22:09:04]free content buf [22:09:04]Sock 7.Close socket [22:09:04]Sock 7.Thread stoped [22:09:42]ConnectInit Can't connect to host [22:09:42]CommunicateWithHost connect error [22:09:42]CommunicateWithHost err = -1 [22:09:42]OFD Sender: Server communicate error [22:09:43]OFD Sender: Processing packet 227710 [packets to send 41, broken 37] [22:09:43]ProducePacketName [22:09:43]name=ofd_packets/00227710 [22:09:43]OFD Sender: To server: pG, [22:09:43]CommunicateWithHost lk.salyk.kg:30040 [22:09:43]ConnectInit lk.salyk.kg [22:09:43]Connected sock=7 [22:09: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 33 39 0F 01 00 00 C4 67 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 02 00 00 F4 03 04 00 21 7F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7E 79 03 00 35 04 06 00 B1 D0 E8 8E 38 62 76 B0 48 6D A3 50 7D EC [22:09: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 33 39 4F 00 00 00 44 8B 47 00 75 F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7E 79 03 00 F4 03 04 00 A4 2A 15 67 B6 04 01 00 00 0C C9 70 F1 00 A6 E4 C4 [22:09:43]CommunicateWithHost err = 0 [22:09:43]CheckOFDResponse [22:09:43]1017 (14) - 77093643461234 [22:09:43]1041 (16) - 0000000000871839 [22:09:43]1040 (4) - 227710 [22:09:43]1012 (4) - 20.10.2024 16:07 [22:09:43]1206 (1) - 0 [22:09:43]OFD Sender: Remove packet 227710 [22:09:43]ProducePacketName [22:09:43]name=ofd_packets/00227710 [22:09:43]NVStorageDeleteData [22:09:43]OFD Sender: Processing packet 227711 [packets to send 40, broken 37] [22:09:43]ProducePacketName [22:09:43]name=ofd_packets/00227711 [22:09:43]OFD Sender: To server: pG, [22:09:43]CommunicateWithHost lk.salyk.kg:30040 [22:09:43]ConnectInit lk.salyk.kg [22:09:43]Connected sock=9 [22:09: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 33 39 08 01 00 00 86 2E 00 01 78 E3 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 90 38 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 E3 82 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E3 82 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E3 82 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 02 00 00 F4 03 04 00 28 7F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 7F 79 03 00 35 04 06 00 BC 47 CC FE E9 4E DD 5C 25 1A 93 63 B9 49 [22:09:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 21 06 47 00 29 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 33 39 10 04 04 00 7F 79 03 00 F4 03 04 00 A4 2A 15 67 B6 04 01 00 00 DF 11 BC 17 27 5F BA 18 [22:09:44]CommunicateWithHost err = 0 [22:09:44]CheckOFDResponse [22:09:44]1017 (14) - 77093643461234 [22:09:44]1041 (16) - 0000000000871839 [22:09:44]1040 (4) - 227711 [22:09:44]1012 (4) - 20.10.2024 16:07 [22:09:44]1206 (1) - 0 [22:09:44]OFD Sender: Remove packet 227711 [22:09:44]ProducePacketName [22:09:44]name=ofd_packets/00227711 [22:09:44]NVStorageDeleteData [22:09:44]OFD Sender: Processing packet 227712 [packets to send 39, broken 37] [22:09:44]ProducePacketName [22:09:44]name=ofd_packets/00227712 [22:09:44]OFD Sender: To server: pG, [22:09:44]CommunicateWithHost lk.salyk.kg:30040 [22:09:44]ConnectInit lk.salyk.kg [22:09:44]Connected sock=7 [22:09:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 7B 5C 07 01 FE 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 02 00 00 F4 03 04 00 35 7F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 80 79 03 00 35 04 06 00 90 7A F3 EB CE BC 4E 80 F6 8C F7 55 12 CB [22:09:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 2E 53 47 00 D1 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 80 79 03 00 F4 03 04 00 A5 2A 15 67 B6 04 01 00 00 91 39 C1 CF CD D5 61 B6 [22:09:44]CommunicateWithHost err = 0 [22:09:44]CheckOFDResponse [22:09:44]1017 (14) - 77093643461234 [22:09:44]1041 (16) - 0000000000871839 [22:09:44]1040 (4) - 227712 [22:09:44]1012 (4) - 20.10.2024 16:07 [22:09:44]1206 (1) - 0 [22:09:44]OFD Sender: Remove packet 227712 [22:09:44]ProducePacketName [22:09:44]name=ofd_packets/00227712 [22:09:44]NVStorageDeleteData [22:09:45]OFD Sender: Processing packet 227713 [packets to send 38, broken 37] [22:09:45]ProducePacketName [22:09:45]name=ofd_packets/00227713 [22:09:45]OFD Sender: To server: pG, [22:09:45]CommunicateWithHost lk.salyk.kg:30040 [22:09:45]ConnectInit lk.salyk.kg [22:09:45]Connected sock=7 [22:09: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 33 39 0C 01 00 00 9D E0 04 01 7C 76 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 02 00 00 F4 03 04 00 7D 7F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 81 79 03 00 35 04 06 00 C6 DF 86 DA B5 8C DC E8 D4 DD 61 68 23 35 [22:09: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 33 39 4F 00 00 00 DF CE 47 00 BE 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 33 39 10 04 04 00 81 79 03 00 F4 03 04 00 A6 2A 15 67 B6 04 01 00 00 5A 19 F1 E0 B4 6D D4 2F [22:09:45]CommunicateWithHost err = 0 [22:09:45]CheckOFDResponse [22:09:45]1017 (14) - 77093643461234 [22:09:45]1041 (16) - 0000000000871839 [22:09:45]1040 (4) - 227713 [22:09:45]1012 (4) - 20.10.2024 16:07 [22:09:45]1206 (1) - 0 [22:09:45]OFD Sender: Remove packet 227713 [22:09:45]ProducePacketName [22:09:45]name=ofd_packets/00227713 [22:09:45]NVStorageDeleteData [22:09:46]OFD Sender: No OFD packet to send [22:09:51]OFD Sender: No OFD packet to send [22:09:56]OFD Sender: No OFD packet to send [22:10:01]OFD Sender: No OFD packet to send [22:10:06]OFD Sender: No OFD packet to send [22:10:11]OFD Sender: No OFD packet to send [22:10:16]OFD Sender: No OFD packet to send [22:10:21]OFD Sender: No OFD packet to send [22:10:26]OFD Sender: No OFD packet to send [22:10:31]OFD Sender: No OFD packet to send [22:10:36]OFD Sender: No OFD packet to send [22:10:41]OFD Sender: No OFD packet to send [22:10:46]OFD Sender: No OFD packet to send [22:10:51]OFD Sender: No OFD packet to send [22:10:56]OFD Sender: No OFD packet to send [22:11:01]OFD Sender: No OFD packet to send [22:11:06]OFD Sender: No OFD packet to send [22:11:11]OFD Sender: No OFD packet to send [22:11:16]OFD Sender: No OFD packet to send [22:11:21]OFD Sender: No OFD packet to send [22:11:26]OFD Sender: No OFD packet to send [22:11:31]OFD Sender: No OFD packet to send [22:11:36]OFD Sender: No OFD packet to send [22:11:41]OFD Sender: No OFD packet to send [22:11:46]OFD Sender: No OFD packet to send [22:11:51]OFD Sender: No OFD packet to send [22:11:56]OFD Sender: No OFD packet to send [22:12:01]OFD Sender: No OFD packet to send [22:12:06]OFD Sender: No OFD packet to send [22:12:11]OFD Sender: No OFD packet to send [22:12:16]OFD Sender: No OFD packet to send [22:12:21]OFD Sender: No OFD packet to send [22:12:26]OFD Sender: No OFD packet to send [22:12:31]OFD Sender: No OFD packet to send [22:12:36]OFD Sender: No OFD packet to send [22:12:37]accept exits with 10 [22:12:37]New connection [22:12:37]New thread 3066809700 created [22:12:37]Thread 3066666340 joined [22:12:37]Waiting for new connection... [22:12:37] Sock 10.Parse request [22:12:37]Sock 10.Check first char [22:12:37]Sock 10.First char is OK [22:12:37]request: POST /json_proto HTTP/1.0 [22:12:37]Method: POST [22:12:37]URL: /json_proto [22:12:37]Method is POST - this is cgi request [22:12:37]url: /json_proto [22:12:37]query_string will be loaded in cgi processing [22:12:37]execute_cgi json_proto POST (null) [22:12:37]execute_cgi path=json_proto method=POST [22:12:37]POST find Content-Length [22:12:37]Host: 172.17.44.195:8080 [22:12:37]Content-Length: 683 [22:12:37]Content-Type: application/json [22:12:37] [22:12:37]POST finish read [22:12:37]Found Content-Length = 683 [22:12:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963383", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:12:37]execute_script... [22:12: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)1963383", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:12:37]POST & json_proto [22:12:37]process_json_proto [22:12:37]json parsed OK: [22:12:37]protocol is kg_v1.0 [22:12:37]action value=close_receipt [22:12:37]process_action close_receipt [22:12:37]cmd_close_receipt [22:12:37]MH_GetDate [22:12:37]Write to MH i2c: F0 00 00 A1 1B AB [22:12:37]Write i2c OK [22:12:37]MH_I2C_Read... [22:12:37]Read from MH i2c: F0 [22:12:37]MH_I2C_Read... [22:12:37]Read from MH i2c: F0 09 00 [22:12:37]MH_I2C_Read... [22:12:37]Read from MH i2c: F0 09 00 A1 1B 00 57 80 15 67 82 C9 CF 66 87 [22:12:37]GetLastDocTimeStamp 1729462141 [22:12:37]current date 1729462359 [22:12:37]FM_GetShiftState [22:12:37]SAM_PROTO_GetShiftState [22:12:37]wFMCommunicate request_size=4 [22:12:37]MH_SAM_APDU [22:12:37]CAPDU: 80 13 01 00 [22:12:37]Write to MH i2c: E2 08 00 A2 1B 80 13 01 00 00 00 00 00 3A [22:12:37]Write i2c OK [22:12:37]MH_I2C_Read... [22:12:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:12:37]Read from MH i2c: E2 [22:12:37]MH_I2C_Read... [22:12:37]Read from MH i2c: E2 0E 00 [22:12:37]MH_I2C_Read... [22:12:37]Read from MH i2c: E2 0E 00 A2 1B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 54 [22:12:37]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [22:12:37]wFMCommunicate OK [22:12:37]SAM_PROTO_GetShiftState done [22:12:37]FM_GetShiftState done [22:12:37]opened in 1729383750 [22:12:37]opened+sec_in_day 1729470150 [22:12:37]quantity*price = 200031 [22:12:37]sum+1 = 200032 [22:12:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 562 20.10.2024 22:12 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227714 ФПД: 100959230184214 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T221239&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227714&fm=100959230184214&tin=02508201610067®Number=0000000000091685&sum=200000 [22:12:38]StoreToDocumentArchive [22:12:38]shift 533 fd 227714 [22:12:38]save to /storage/0533/doc_00227714 [22:12:38]save last doc name /storage/0533/doc_00227714 to /storage/kkm_last_doc_name [22:12:38]save OK [22:12:38]Clear old archive folders... [22:12:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:12:38]tlvbuf is B6EB7B00 [22:12:38]SAM_PROTO_ClearQueue [22:12:38]wFMCommunicate request_size=4 [22:12:38]MH_SAM_APDU [22:12:38]CAPDU: 80 09 00 00 [22:12:38]Write to MH i2c: E2 08 00 AF 1B 80 09 00 00 00 00 00 00 3C [22:12:38]Write i2c OK [22:12:38]MH_I2C_Read... [22:12:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:12:38]Read from MH i2c: E2 [22:12:38]MH_I2C_Read... [22:12:38]Read from MH i2c: E2 03 00 [22:12:38]MH_I2C_Read... [22:12:38]Read from MH i2c: E2 03 00 AF 1B 00 90 00 3E [22:12:38]RAPDU: 90 00 [22:12:38]wFMCommunicate OK [22:12:38]SAM_PROTO_ClearQueue done [22:12:38]KKMCreateOFDPacket [22:12:38]OFDProtocolAddRootSTLVToBuf [22:12:38]FM_MakeSignedData [22:12:38]FM_MakeSignedData [22:12:38]SAM_PROTO_SignData [22:12:38]wFMCommunicate request_size=4 [22:12:38]MH_SAM_APDU [22:12:38]CAPDU: 80 0D 01 02 [22:12:38]Write to MH i2c: E2 08 00 B0 1B 80 0D 01 02 00 00 00 00 44 [22:12:38]Write i2c OK [22:12:38]MH_I2C_Read... [22:12:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:12:38]Read from MH i2c: E2 [22:12:38]MH_I2C_Read... [22:12:38]Read from MH i2c: E2 03 00 [22:12:38]MH_I2C_Read... [22:12:38]Read from MH i2c: E2 03 00 B0 1B 00 90 00 3F [22:12:38]RAPDU: 90 00 [22:12:38]wFMCommunicate OK [22:12:39]wFMCommunicate request_size=255 [22:12:39]MH_SAM_APDU [22:12:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 02 00 00 F4 03 04 00 57 80 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 82 79 03 00 35 04 06 00 5B [22:12:39]Write to MH i2c: E2 02 01 B1 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 02 00 00 F4 03 04 00 57 80 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 82 79 03 00 35 04 06 00 5B 00 00 14 [22:12:39]Write i2c OK [22:12:39]MH_I2C_Read... [22:12:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:12:39]Read from MH i2c: E2 [22:12:39]MH_I2C_Read... [22:12:39]Read from MH i2c: E2 03 00 [22:12:39]MH_I2C_Read... [22:12:39]Read from MH i2c: E2 03 00 B1 1B 00 90 00 40 [22:12:39]RAPDU: 90 00 [22:12:39]wFMCommunicate OK [22:12:39]wFMCommunicate request_size=10 [22:12:39]MH_SAM_APDU [22:12:39]CAPDU: 80 0D 02 02 05 D2 67 0D 4B 16 [22:12:39]Write to MH i2c: E2 0D 00 B2 1B 80 0D 02 02 05 00 D2 67 0D 4B 16 00 00 F8 [22:12:39]Write i2c OK [22:12:39]MH_I2C_Read... [22:12:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:12:39]Read from MH i2c: E2 [22:12:39]MH_I2C_Read... [22:12:39]Read from MH i2c: E2 03 00 [22:12:39]MH_I2C_Read... [22:12:39]Read from MH i2c: E2 03 00 B2 1B 00 90 00 41 [22:12:39]RAPDU: 90 00 [22:12:39]wFMCommunicate OK [22:12:39]wFMCommunicate request_size=4 [22:12:39]MH_SAM_APDU [22:12:39]CAPDU: 80 0D 03 02 [22:12:39]Write to MH i2c: E2 08 00 B3 1B 80 0D 03 02 00 00 00 00 49 [22:12:39]Write i2c OK [22:12:39]MH_I2C_Read... [22:12:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:12:39]Read from MH i2c: E2 [22:12:39]MH_I2C_Read... [22:12:39]Read from MH i2c: E2 0B 00 [22:12:39]MH_I2C_Read... [22:12:39]Read from MH i2c: E2 0B 00 B3 1B 00 44 6E 25 33 D6 15 64 DF 90 00 82 [22:12:39]RAPDU: 44 6E 25 33 D6 15 64 DF 90 00 [22:12:39]wFMCommunicate OK [22:12:39]SAM_PROTO_SignData done [22:12:39]FM_MakeSignedData done [22:12:39]CreateOFDProtocolMessage [22:12:39]wFMCommunicate request_size=4 [22:12:39]MH_SAM_APDU [22:12:39]CAPDU: 80 11 00 00 [22:12:39]Write to MH i2c: E2 08 00 B4 1B 80 11 00 00 00 00 00 00 49 [22:12:39]Write i2c OK [22:12:39]MH_I2C_Read... [22:12:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:12:39]Read from MH i2c: E2 [22:12:39]MH_I2C_Read... [22:12:39]Read from MH i2c: E2 17 00 [22:12:39]MH_I2C_Read... [22:12:39]Read from MH i2c: E2 17 00 B4 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A0 [22:12:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [22:12:39]wFMCommunicate OK [22:12:39]CreateOFDProtocolMessage done [22:12:39]OFDSenderStorePacket 227714 [22:12:39]StoreOFDPacket docnum=227714 [22:12:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 43 01 07 01 96 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 02 00 00 F4 03 04 00 57 80 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 82 79 03 00 35 04 06 00 5B D2 67 0D 4B 16 44 6E 25 33 D6 15 64 DF [22:12:39]CheckFolder [22:12:39]dirname=/storage/ofd_packets [22:12:39]CheckFolder done [22:12:39]ProducePacketName [22:12:39]name=ofd_packets/00227714 [22:12:39]NVStorageSaveData ofd_packets/00227714 [22:12:39]File name is /storage/ofd_packets/00227714 [22:12:39]Write 301 bytes [22:12:39]NVStorageSaveData done [22:12:39]OFDSenderStorePacket done [22:12:39]KKMCreateOFDPacket done [22:12:39]NVStorageSaveData kkm_last_timestamp [22:12:39]File name is /storage/kkm_last_timestamp [22:12:39]Write 4 bytes [22:12:39]NVStorageSaveData done [22:12:39]ExternCall_PrintAddStr [22:12:39]wPrintStart [22:12:39]Write to MH i2c: 01 00 00 B5 1B D0 [22:12:39]Write i2c OK [22:12:39]MH_I2C_Read... [22:12:39]Read from MH i2c: 01 [22:12:39]MH_I2C_Read... [22:12:39]Read from MH i2c: 01 07 00 [22:12:39]MH_I2C_Read... [22:12:39]Read from MH i2c: 01 07 00 B5 1B 00 00 00 00 00 FF 0F E5 [22:12:39]RasterBufferAndPrint [22:12:39]line Счет N : (1)1963383 [22:12:39]line ИНН: 02508201610067 [22:12:39]line Контрольно-Кассовый Чек [22:12:39]line ПРОДАЖА [22:12:39]line ТРК (МРК, ГНК) : 63 [22:12:39]line Товар: 2710124130 [22:12:39]line Аи-92-К-5 [22:12:39]line 29.900 * 66.90 [22:12:39]line = 2000.31 [22:12:39]line НДС 12% НСП 1% [22:12:39]line > о реализуемом товаре [22:12:39]line ОКРУГЛЕНИЕ: -0.31 [22:12:39]line ИТОГО: 2000.00 [22:12:39]line Внесено: 2000.00 [22:12:39]line СДАЧА: 0.00 [22:12:39]line НСП 1% : 17.70 [22:12:39]line НДС 12% : 212.42 [22:12:39]line Наличными: 2000.00 [22:12:39]line Безнал.: 0.00 [22:12:39]line Место: АЗС № 133 "Партнер Нефть" [22:12:39]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [22:12:39]line СНО: Общий режим [22:12:39]line Чек 562 20.10.2024 22:12 [22:12:39]line Смена: 533 ФФД: 1.0 [22:12:39]line ЗНМ: 0300000091 [22:12:39]line РНМ: 0000000000091685 [22:12:39]line Версия ККМ: 001 [22:12:39]line ФМ: 0000000000871839 [22:12:39]line ФД: 227714 [22:12:39]line ФПД: 100959230184214 [22:12:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T221239&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227714&fm=100959230184214&tin=02508201610067®Number=0000000000091685&sum=200000 [22:12:39]OFD Sender: Processing packet 227714 [packets to send 38, broken 37] [22:12:39]ProducePacketName [22:12:39]name=ofd_packets/00227714 [22:12:39]OFD Sender: To server: pG, [22:12:39]CommunicateWithHost lk.salyk.kg:30040 [22:12:39]ConnectInit lk.salyk.kg [22:12:39]written 0, free lines is 4095 [22:12:39]Connected sock=9 [22:12: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 33 39 0F 01 00 00 43 01 07 01 96 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 02 00 00 F4 03 04 00 57 80 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 82 79 03 00 35 04 06 00 5B D2 67 0D 4B 16 44 6E 25 33 D6 15 64 DF [22:12: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 33 39 4F 00 00 00 8D 12 47 00 70 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 33 39 10 04 04 00 82 79 03 00 F4 03 04 00 54 2B 15 67 B6 04 01 00 00 47 88 9D E6 BC 6B AC 68 [22:12:40]CommunicateWithHost err = 0 [22:12:40]CheckOFDResponse [22:12:40]1017 (14) - 77093643461234 [22:12:40]1041 (16) - 0000000000871839 [22:12:40]1040 (4) - 227714 [22:12:40]1012 (4) - 20.10.2024 16:09 [22:12:40]1206 (1) - 0 [22:12:40]OFD Sender: Remove packet 227714 [22:12:40]ProducePacketName [22:12:40]name=ofd_packets/00227714 [22:12:40]NVStorageDeleteData [22:12:40]Write to MH i2c: 01 00 00 DF 1B FA [22:12:40]Write i2c OK [22:12:40]MH_I2C_Read... [22:12:40]Read from MH i2c: 01 [22:12:40]MH_I2C_Read... [22:12:40]Read from MH i2c: 01 07 00 [22:12:40]MH_I2C_Read... [22:12:40]Read from MH i2c: 01 07 00 DF 1B 00 00 00 00 00 A7 0C B4 [22:12:40]RasterBufferAndPrint [22:12:40]line [22:12:40]line [22:12:40]line [22:12:40]line [22:12:40]line [22:12:40]written 0, free lines is 3243 [22:12:40]MH_Cut [22:12:40]Write to MH i2c: D1 01 00 E6 1B 01 D3 [22:12:40]Write i2c OK [22:12:40]MH_I2C_Read... [22:12:40]Read from MH i2c: D1 [22:12:40]MH_I2C_Read... [22:12:40]Read from MH i2c: D1 01 00 [22:12:40]MH_I2C_Read... [22:12:40]Read from MH i2c: D1 01 00 E6 1B 00 D2 [22:12:40]Write to MH i2c: 01 00 00 E7 1B 02 [22:12:40]Write i2c OK [22:12:40]MH_I2C_Read... [22:12:40]OFD Sender: No OFD packet to send [22:12:41]*** Cut start [22:12:41]*** Partial cut [22:12:41]*** CUTSNS_PIN = 1 [22:12:41]*** CUTSNS_PIN = 0 [22:12:41]*** Brake cut motor [22:12:41]Read from MH i2c: 01 [22:12:41]MH_I2C_Read... [22:12:41]*** Stop cut motor [22:12:41]*** Cut end [22:12:41]Read from MH i2c: 01 07 00 [22:12:41]MH_I2C_Read... [22:12:41]Read from MH i2c: 01 07 00 E7 1B 00 00 00 00 00 FF 0F 17 [22:12:41]process_action close_receipt done [22:12:41]requested_data is exist [22:12:41]produce_requested_data [22:12:41]requested_item fm.sn is exist - process it [22:12:41]wFMCommunicate request_size=4 [22:12:41]MH_SAM_APDU [22:12:41]CAPDU: 80 11 00 00 [22:12:41]Write to MH i2c: E2 08 00 E8 1B 80 11 00 00 00 00 00 00 7D [22:12:41]Write i2c OK [22:12:41]MH_I2C_Read... [22:12:41]Read from MH i2c: E2 [22:12:41]MH_I2C_Read... [22:12:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:12:41]Read from MH i2c: E2 17 00 [22:12:41]MH_I2C_Read... [22:12:41]Read from MH i2c: E2 17 00 E8 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D4 [22:12:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [22:12:41]wFMCommunicate OK [22:12:41]requested_item fd.num is exist - process it [22:12:41]SAM_PROTO_GetFieldsCounters [22:12:41]wFMCommunicate request_size=4 [22:12:41]MH_SAM_APDU [22:12:41]CAPDU: 80 13 00 00 [22:12:41]Write to MH i2c: E2 08 00 E9 1B 80 13 00 00 00 00 00 00 80 [22:12:41]Write i2c OK [22:12:41]MH_I2C_Read... [22:12:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:12:42]Read from MH i2c: E2 [22:12:42]MH_I2C_Read... [22:12:42]Read from MH i2c: E2 62 00 [22:12:42]MH_I2C_Read... [22:12:42]Read from MH i2c: E2 62 00 E9 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 82 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 32 02 00 00 5E 04 04 00 32 02 00 00 57 04 04 00 33 02 00 00 19 04 04 00 00 00 00 00 90 00 5A [22:12:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 82 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 32 02 00 00 5E 04 04 00 32 02 00 00 57 04 04 00 33 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:12:42]wFMCommunicate OK [22:12:42]SAM_PROTO_GetFieldsCounters done [22:12:42]requested_item shift.num is exist - process it [22:12:42]requested_item shift.opened is exist - process it [22:12:42]req_shift_opened [22:12:42]FM_GetShiftState [22:12:42]SAM_PROTO_GetShiftState [22:12:42]wFMCommunicate request_size=4 [22:12:42]MH_SAM_APDU [22:12:42]CAPDU: 80 13 01 00 [22:12:42]Write to MH i2c: E2 08 00 EA 1B 80 13 01 00 00 00 00 00 82 [22:12:42]Write i2c OK [22:12:42]MH_I2C_Read... [22:12:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:12:42]Read from MH i2c: E2 [22:12:42]MH_I2C_Read... [22:12:42]Read from MH i2c: E2 0E 00 [22:12:42]MH_I2C_Read... [22:12:42]Read from MH i2c: E2 0E 00 EA 1B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 9C [22:12:42]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [22:12:42]wFMCommunicate OK [22:12:42]SAM_PROTO_GetShiftState done [22:12:42]FM_GetShiftState done [22:12:42]req_shift_opened done [22:12:42]requested_item shift.open_date is exist - process it [22:12:42]req_shift_open_date [22:12:42]req_shift_open_date done [22:12:42]produce_requested_data done [22:12:42]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227714,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [22:12:42]process_action_free close_receipt [22:12:42]json_value_free [22:12:42]json_value_free done [22:12:42]process_json_proto returns [22:12:42]Send response to host [22:12:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227714,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [22:12:42]free response buf [22:12:42]execute_script done [22:12:42]execute_script returns [22:12:42]free content buf [22:12:42]Sock 10.Close socket [22:12:42]Sock 10.Thread stoped [22:12:45]OFD Sender: No OFD packet to send [22:12:50]OFD Sender: No OFD packet to send [22:12:55]OFD Sender: No OFD packet to send [22:13:00]OFD Sender: No OFD packet to send [22:13:05]OFD Sender: No OFD packet to send [22:13:10]OFD Sender: No OFD packet to send [22:13:15]OFD Sender: No OFD packet to send [22:13:20]OFD Sender: No OFD packet to send [22:13:25]OFD Sender: No OFD packet to send [22:13:30]OFD Sender: No OFD packet to send [22:13:35]OFD Sender: No OFD packet to send [22:13:40]OFD Sender: No OFD packet to send [22:13:45]OFD Sender: No OFD packet to send [22:13:50]OFD Sender: No OFD packet to send [22:13:55]OFD Sender: No OFD packet to send [22:14:00]OFD Sender: No OFD packet to send [22:14:05]OFD Sender: No OFD packet to send [22:14:10]OFD Sender: No OFD packet to send [22:14:15]OFD Sender: No OFD packet to send [22:14:20]OFD Sender: No OFD packet to send [22:14:25]OFD Sender: No OFD packet to send [22:14:30]OFD Sender: No OFD packet to send [22:14:35]OFD Sender: No OFD packet to send [22:14:40]OFD Sender: No OFD packet to send [22:14:45]OFD Sender: No OFD packet to send [22:14:50]OFD Sender: No OFD packet to send [22:14:55]OFD Sender: No OFD packet to send [22:15:00]OFD Sender: No OFD packet to send [22:15:05]OFD Sender: No OFD packet to send [22:15:10]OFD Sender: No OFD packet to send [22:15:15]OFD Sender: No OFD packet to send [22:15:20]OFD Sender: No OFD packet to send [22:15:25]OFD Sender: No OFD packet to send [22:15:30]OFD Sender: No OFD packet to send [22:15:35]OFD Sender: No OFD packet to send [22:15:40]OFD Sender: No OFD packet to send [22:15:45]OFD Sender: No OFD packet to send [22:15:50]OFD Sender: No OFD packet to send [22:15:55]OFD Sender: No OFD packet to send [22:16:00]OFD Sender: No OFD packet to send [22:16:05]OFD Sender: No OFD packet to send [22:16:10]OFD Sender: No OFD packet to send [22:16:15]OFD Sender: No OFD packet to send [22:16:20]OFD Sender: No OFD packet to send [22:16:25]OFD Sender: No OFD packet to send [22:16:30]OFD Sender: No OFD packet to send [22:16:35]OFD Sender: No OFD packet to send [22:16:40]OFD Sender: No OFD packet to send [22:16:45]OFD Sender: No OFD packet to send [22:16:50]OFD Sender: No OFD packet to send [22:16:55]OFD Sender: No OFD packet to send [22:17:00]OFD Sender: No OFD packet to send [22:17:05]OFD Sender: No OFD packet to send [22:17:10]OFD Sender: No OFD packet to send [22:17:15]OFD Sender: No OFD packet to send [22:17:20]OFD Sender: No OFD packet to send [22:17:25]OFD Sender: No OFD packet to send [22:17:30]OFD Sender: No OFD packet to send [22:17:35]OFD Sender: No OFD packet to send [22:17:40]OFD Sender: No OFD packet to send [22:17:45]OFD Sender: No OFD packet to send [22:17:50]OFD Sender: No OFD packet to send [22:17:55]OFD Sender: No OFD packet to send [22:18:00]OFD Sender: No OFD packet to send [22:18:05]OFD Sender: No OFD packet to send [22:18:10]OFD Sender: No OFD packet to send [22:18:15]OFD Sender: No OFD packet to send [22:18:20]OFD Sender: No OFD packet to send [22:18:25]OFD Sender: No OFD packet to send [22:18:30]OFD Sender: No OFD packet to send [22:18:35]OFD Sender: No OFD packet to send [22:18:40]OFD Sender: No OFD packet to send [22:18:45]OFD Sender: No OFD packet to send [22:18:50]OFD Sender: No OFD packet to send [22:18:55]OFD Sender: No OFD packet to send [22:19:00]OFD Sender: No OFD packet to send [22:19:05]OFD Sender: No OFD packet to send [22:19:10]OFD Sender: No OFD packet to send [22:19:15]OFD Sender: No OFD packet to send [22:19:20]OFD Sender: No OFD packet to send [22:19:25]OFD Sender: No OFD packet to send [22:19:30]OFD Sender: No OFD packet to send [22:19:35]OFD Sender: No OFD packet to send [22:19:40]OFD Sender: No OFD packet to send [22:19:45]OFD Sender: No OFD packet to send [22:19:50]OFD Sender: No OFD packet to send [22:19:55]OFD Sender: No OFD packet to send [22:20:00]OFD Sender: No OFD packet to send [22:20:05]OFD Sender: No OFD packet to send [22:20:11]OFD Sender: No OFD packet to send [22:20:16]OFD Sender: No OFD packet to send [22:20:21]OFD Sender: No OFD packet to send [22:20:26]OFD Sender: No OFD packet to send [22:20:31]OFD Sender: No OFD packet to send [22:20:36]OFD Sender: No OFD packet to send [22:20:41]OFD Sender: No OFD packet to send [22:20:46]OFD Sender: No OFD packet to send [22:20:51]OFD Sender: No OFD packet to send [22:20:56]OFD Sender: No OFD packet to send [22:21:01]OFD Sender: No OFD packet to send [22:21:06]OFD Sender: No OFD packet to send [22:21:11]OFD Sender: No OFD packet to send [22:21:16]OFD Sender: No OFD packet to send [22:21:21]OFD Sender: No OFD packet to send [22:21:26]OFD Sender: No OFD packet to send [22:21:31]OFD Sender: No OFD packet to send [22:21:36]OFD Sender: No OFD packet to send [22:21:41]OFD Sender: No OFD packet to send [22:21:46]OFD Sender: No OFD packet to send [22:21:51]OFD Sender: No OFD packet to send [22:21:56]OFD Sender: No OFD packet to send [22:22:01]OFD Sender: No OFD packet to send [22:22:06]OFD Sender: No OFD packet to send [22:22:11]OFD Sender: No OFD packet to send [22:22:16]OFD Sender: No OFD packet to send [22:22:21]OFD Sender: No OFD packet to send [22:22:26]OFD Sender: No OFD packet to send [22:22:31]OFD Sender: No OFD packet to send [22:22:36]OFD Sender: No OFD packet to send [22:22:41]OFD Sender: No OFD packet to send [22:22:46]OFD Sender: No OFD packet to send [22:22:51]OFD Sender: No OFD packet to send [22:22:56]OFD Sender: No OFD packet to send [22:23:01]OFD Sender: No OFD packet to send [22:23:06]OFD Sender: No OFD packet to send [22:23:11]OFD Sender: No OFD packet to send [22:23:16]OFD Sender: No OFD packet to send [22:23:21]OFD Sender: No OFD packet to send [22:23:26]OFD Sender: No OFD packet to send [22:23:31]OFD Sender: No OFD packet to send [22:23:36]OFD Sender: No OFD packet to send [22:23:41]OFD Sender: No OFD packet to send [22:23:46]OFD Sender: No OFD packet to send [22:23:51]OFD Sender: No OFD packet to send [22:23:56]OFD Sender: No OFD packet to send [22:24:01]OFD Sender: No OFD packet to send [22:24:06]OFD Sender: No OFD packet to send [22:24:11]OFD Sender: No OFD packet to send [22:24:16]OFD Sender: No OFD packet to send [22:24:21]OFD Sender: No OFD packet to send [22:24:26]OFD Sender: No OFD packet to send [22:24:31]OFD Sender: No OFD packet to send [22:24:36]OFD Sender: No OFD packet to send [22:24:41]OFD Sender: No OFD packet to send [22:24:46]OFD Sender: No OFD packet to send [22:24:51]OFD Sender: No OFD packet to send [22:24:56]OFD Sender: No OFD packet to send [22:25:01]OFD Sender: No OFD packet to send [22:25:06]OFD Sender: No OFD packet to send [22:25:11]OFD Sender: No OFD packet to send [22:25:16]OFD Sender: No OFD packet to send [22:25:21]OFD Sender: No OFD packet to send [22:25:26]OFD Sender: No OFD packet to send [22:25:31]OFD Sender: No OFD packet to send [22:25:36]OFD Sender: No OFD packet to send [22:25:41]OFD Sender: No OFD packet to send [22:25:46]OFD Sender: No OFD packet to send [22:25:51]OFD Sender: No OFD packet to send [22:25:56]OFD Sender: No OFD packet to send [22:26:01]OFD Sender: No OFD packet to send [22:26:06]OFD Sender: No OFD packet to send [22:26:11]OFD Sender: No OFD packet to send [22:26:16]OFD Sender: No OFD packet to send [22:26:21]OFD Sender: No OFD packet to send [22:26:26]OFD Sender: No OFD packet to send [22:26:31]OFD Sender: No OFD packet to send [22:26:36]OFD Sender: No OFD packet to send [22:26:41]OFD Sender: No OFD packet to send [22:26:46]OFD Sender: No OFD packet to send [22:26:51]OFD Sender: No OFD packet to send [22:26:56]OFD Sender: No OFD packet to send [22:27:01]OFD Sender: No OFD packet to send [22:27:06]OFD Sender: No OFD packet to send [22:27:11]OFD Sender: No OFD packet to send [22:27:16]OFD Sender: No OFD packet to send [22:27:21]OFD Sender: No OFD packet to send [22:27:26]OFD Sender: No OFD packet to send [22:27:31]OFD Sender: No OFD packet to send [22:27:36]OFD Sender: No OFD packet to send [22:27:41]OFD Sender: No OFD packet to send [22:27:46]OFD Sender: No OFD packet to send [22:27:51]OFD Sender: No OFD packet to send [22:27:56]OFD Sender: No OFD packet to send [22:28:01]OFD Sender: No OFD packet to send [22:28:06]OFD Sender: No OFD packet to send [22:28:11]OFD Sender: No OFD packet to send [22:28:16]OFD Sender: No OFD packet to send [22:28:21]OFD Sender: No OFD packet to send [22:28:26]OFD Sender: No OFD packet to send [22:28:31]OFD Sender: No OFD packet to send [22:28:36]OFD Sender: No OFD packet to send [22:28:41]OFD Sender: No OFD packet to send [22:28:46]OFD Sender: No OFD packet to send [22:28:51]OFD Sender: No OFD packet to send [22:28:56]OFD Sender: No OFD packet to send [22:29:01]OFD Sender: No OFD packet to send [22:29:06]OFD Sender: No OFD packet to send [22:29:11]OFD Sender: No OFD packet to send [22:29:16]OFD Sender: No OFD packet to send [22:29:21]OFD Sender: No OFD packet to send [22:29:26]OFD Sender: No OFD packet to send [22:29:31]OFD Sender: No OFD packet to send [22:29:36]OFD Sender: No OFD packet to send [22:29:41]OFD Sender: No OFD packet to send [22:29:46]OFD Sender: No OFD packet to send [22:29:51]OFD Sender: No OFD packet to send [22:29:56]OFD Sender: No OFD packet to send [22:30:01]OFD Sender: No OFD packet to send [22:30:06]OFD Sender: No OFD packet to send [22:30:11]OFD Sender: No OFD packet to send [22:30:16]OFD Sender: No OFD packet to send [22:30:21]OFD Sender: No OFD packet to send [22:30:26]OFD Sender: No OFD packet to send [22:30:31]OFD Sender: No OFD packet to send [22:30:36]OFD Sender: No OFD packet to send [22:30:41]OFD Sender: No OFD packet to send [22:30:46]OFD Sender: No OFD packet to send [22:30:51]OFD Sender: No OFD packet to send [22:30:56]OFD Sender: No OFD packet to send [22:31:01]OFD Sender: No OFD packet to send [22:31:06]OFD Sender: No OFD packet to send [22:31:11]OFD Sender: No OFD packet to send [22:31:16]OFD Sender: No OFD packet to send [22:31:21]OFD Sender: No OFD packet to send [22:31:26]OFD Sender: No OFD packet to send [22:31:31]OFD Sender: No OFD packet to send [22:31:36]OFD Sender: No OFD packet to send [22:31:41]OFD Sender: No OFD packet to send [22:31:46]OFD Sender: No OFD packet to send [22:31:51]OFD Sender: No OFD packet to send [22:31:56]OFD Sender: No OFD packet to send [22:32:01]OFD Sender: No OFD packet to send [22:32:06]OFD Sender: No OFD packet to send [22:32:11]OFD Sender: No OFD packet to send [22:32:16]OFD Sender: No OFD packet to send [22:32:21]OFD Sender: No OFD packet to send [22:32:26]OFD Sender: No OFD packet to send [22:32:31]OFD Sender: No OFD packet to send [22:32:36]OFD Sender: No OFD packet to send [22:32:41]OFD Sender: No OFD packet to send [22:32:46]OFD Sender: No OFD packet to send [22:32:51]OFD Sender: No OFD packet to send [22:32:56]OFD Sender: No OFD packet to send [22:33:01]OFD Sender: No OFD packet to send [22:33:06]OFD Sender: No OFD packet to send [22:33:11]OFD Sender: No OFD packet to send [22:33:16]OFD Sender: No OFD packet to send [22:33:21]OFD Sender: No OFD packet to send [22:33:26]OFD Sender: No OFD packet to send [22:33:31]OFD Sender: No OFD packet to send [22:33:36]OFD Sender: No OFD packet to send [22:33:41]OFD Sender: No OFD packet to send [22:33:46]OFD Sender: No OFD packet to send [22:33:51]OFD Sender: No OFD packet to send [22:33:56]OFD Sender: No OFD packet to send [22:34:01]OFD Sender: No OFD packet to send [22:34:06]OFD Sender: No OFD packet to send [22:34:11]OFD Sender: No OFD packet to send [22:34:16]OFD Sender: No OFD packet to send [22:34:21]OFD Sender: No OFD packet to send [22:34:26]OFD Sender: No OFD packet to send [22:34:31]OFD Sender: No OFD packet to send [22:34:36]OFD Sender: No OFD packet to send [22:34:41]OFD Sender: No OFD packet to send [22:34:46]OFD Sender: No OFD packet to send [22:34:51]OFD Sender: No OFD packet to send [22:34:56]OFD Sender: No OFD packet to send [22:35:01]OFD Sender: No OFD packet to send [22:35:06]OFD Sender: No OFD packet to send [22:35:11]OFD Sender: No OFD packet to send [22:35:16]OFD Sender: No OFD packet to send [22:35:21]OFD Sender: No OFD packet to send [22:35:26]OFD Sender: No OFD packet to send [22:35:31]OFD Sender: No OFD packet to send [22:35:36]OFD Sender: No OFD packet to send [22:35:41]OFD Sender: No OFD packet to send [22:35:46]OFD Sender: No OFD packet to send [22:35:51]OFD Sender: No OFD packet to send [22:35:56]OFD Sender: No OFD packet to send [22:36:01]OFD Sender: No OFD packet to send [22:36:06]OFD Sender: No OFD packet to send [22:36:11]OFD Sender: No OFD packet to send [22:36:16]OFD Sender: No OFD packet to send [22:36:21]OFD Sender: No OFD packet to send [22:36:26]OFD Sender: No OFD packet to send [22:36:31]OFD Sender: No OFD packet to send [22:36:36]OFD Sender: No OFD packet to send [22:36:41]OFD Sender: No OFD packet to send [22:36:46]OFD Sender: No OFD packet to send [22:36:51]OFD Sender: No OFD packet to send [22:36:56]OFD Sender: No OFD packet to send [22:37:01]OFD Sender: No OFD packet to send [22:37:06]OFD Sender: No OFD packet to send [22:37:11]OFD Sender: No OFD packet to send [22:37:16]OFD Sender: No OFD packet to send [22:37:21]OFD Sender: No OFD packet to send [22:37:26]OFD Sender: No OFD packet to send [22:37:31]OFD Sender: No OFD packet to send [22:37:36]OFD Sender: No OFD packet to send [22:37:41]OFD Sender: No OFD packet to send [22:37:46]OFD Sender: No OFD packet to send [22:37:51]OFD Sender: No OFD packet to send [22:37:56]OFD Sender: No OFD packet to send [22:38:01]OFD Sender: No OFD packet to send [22:38:06]OFD Sender: No OFD packet to send [22:38:11]OFD Sender: No OFD packet to send [22:38:16]OFD Sender: No OFD packet to send [22:38:21]OFD Sender: No OFD packet to send [22:38:26]OFD Sender: No OFD packet to send [22:38:31]OFD Sender: No OFD packet to send [22:38:36]OFD Sender: No OFD packet to send [22:38:41]OFD Sender: No OFD packet to send [22:38:46]OFD Sender: No OFD packet to send [22:38:51]OFD Sender: No OFD packet to send [22:38:56]OFD Sender: No OFD packet to send [22:39:01]OFD Sender: No OFD packet to send [22:39:06]OFD Sender: No OFD packet to send [22:39:12]OFD Sender: No OFD packet to send [22:39:17]OFD Sender: No OFD packet to send [22:39:22]OFD Sender: No OFD packet to send [22:39:27]OFD Sender: No OFD packet to send [22:39:32]OFD Sender: No OFD packet to send [22:39:37]OFD Sender: No OFD packet to send [22:39:42]OFD Sender: No OFD packet to send [22:39:47]OFD Sender: No OFD packet to send [22:39:52]OFD Sender: No OFD packet to send [22:39:57]OFD Sender: No OFD packet to send [22:40:02]OFD Sender: No OFD packet to send [22:40:07]OFD Sender: No OFD packet to send [22:40:12]OFD Sender: No OFD packet to send [22:40:17]OFD Sender: No OFD packet to send [22:40:22]OFD Sender: No OFD packet to send [22:40:23]accept exits with 7 [22:40:23]New connection [22:40:23]New thread 3066666340 created [22:40:23]Thread 3066809700 joined [22:40:23]Waiting for new connection... [22:40:23] Sock 7.Parse request [22:40:23]Sock 7.Check first char [22:40:23]Sock 7.First char is OK [22:40:23]request: POST /json_proto HTTP/1.0 [22:40:23]Method: POST [22:40:23]URL: /json_proto [22:40:23]Method is POST - this is cgi request [22:40:23]url: /json_proto [22:40:23]query_string will be loaded in cgi processing [22:40:23]execute_cgi json_proto POST (null) [22:40:23]execute_cgi path=json_proto method=POST [22:40:23]POST find Content-Length [22:40:23]Host: 172.17.44.195:8080 [22:40:23]Content-Length: 764 [22:40:23]Content-Type: application/json [22:40:23] [22:40:23]POST finish read [22:40:23]Found Content-Length = 764 [22:40:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963385", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:40:23]execute_script... [22:40: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)1963385", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:40:23]POST & json_proto [22:40:23]process_json_proto [22:40:23]json parsed OK: [22:40:23]protocol is kg_v1.0 [22:40:23]action value=close_receipt [22:40:23]process_action close_receipt [22:40:23]cmd_close_receipt [22:40:23]MH_GetDate [22:40:23]Write to MH i2c: F0 00 00 EB 1B F5 [22:40:23]Write i2c OK [22:40:23]MH_I2C_Read... [22:40:23]Read from MH i2c: F0 [22:40:23]MH_I2C_Read... [22:40:23]Read from MH i2c: F0 09 00 [22:40:23]MH_I2C_Read... [22:40:23]Read from MH i2c: F0 09 00 EB 1B 00 D9 86 15 67 82 C9 CF 66 59 [22:40:23]GetLastDocTimeStamp 1729462359 [22:40:23]current date 1729464025 [22:40:23]FM_GetShiftState [22:40:23]SAM_PROTO_GetShiftState [22:40:23]wFMCommunicate request_size=4 [22:40:23]MH_SAM_APDU [22:40:23]CAPDU: 80 13 01 00 [22:40:23]Write to MH i2c: E2 08 00 EC 1B 80 13 01 00 00 00 00 00 84 [22:40:23]Write i2c OK [22:40:23]MH_I2C_Read... [22:40:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:40:23]Read from MH i2c: E2 [22:40:23]MH_I2C_Read... [22:40:23]Read from MH i2c: E2 0E 00 [22:40:23]MH_I2C_Read... [22:40:23]Read from MH i2c: E2 0E 00 EC 1B 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 9E [22:40:23]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [22:40:23]wFMCommunicate OK [22:40:23]SAM_PROTO_GetShiftState done [22:40:23]FM_GetShiftState done [22:40:23]opened in 1729383750 [22:40:23]opened+sec_in_day 1729470150 [22:40:23]quantity*price = 50063 [22:40:23]sum+1 = 50064 [22:40:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.63 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 0.00 Безнал.: 500.63 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 563 20.10.2024 22:40 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 227715 ФПД: 184886795878806 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T224025&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227715&fm=184886795878806&tin=02508201610067®Number=0000000000091685&sum=50063 [22:40:24]StoreToDocumentArchive [22:40:24]shift 533 fd 227715 [22:40:24]save to /storage/0533/doc_00227715 [22:40:24]save last doc name /storage/0533/doc_00227715 to /storage/kkm_last_doc_name [22:40:24]save OK [22:40:24]Clear old archive folders... [22:40:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:40:24]tlvbuf is 00CB2E80 [22:40:24]SAM_PROTO_ClearQueue [22:40:24]wFMCommunicate request_size=4 [22:40:24]MH_SAM_APDU [22:40:24]CAPDU: 80 09 00 00 [22:40:24]Write to MH i2c: E2 08 00 F9 1B 80 09 00 00 00 00 00 00 86 [22:40:24]Write i2c OK [22:40:24]MH_I2C_Read... [22:40:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:40:24]Read from MH i2c: E2 [22:40:24]MH_I2C_Read... [22:40:24]Read from MH i2c: E2 03 00 [22:40:24]MH_I2C_Read... [22:40:24]Read from MH i2c: E2 03 00 F9 1B 00 90 00 88 [22:40:24]RAPDU: 90 00 [22:40:24]wFMCommunicate OK [22:40:24]SAM_PROTO_ClearQueue done [22:40:24]KKMCreateOFDPacket [22:40:24]OFDProtocolAddRootSTLVToBuf [22:40:24]FM_MakeSignedData [22:40:24]FM_MakeSignedData [22:40:24]SAM_PROTO_SignData [22:40:24]wFMCommunicate request_size=4 [22:40:24]MH_SAM_APDU [22:40:24]CAPDU: 80 0D 01 02 [22:40:24]Write to MH i2c: E2 08 00 FA 1B 80 0D 01 02 00 00 00 00 8E [22:40:24]Write i2c OK [22:40:24]MH_I2C_Read... [22:40:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:40:24]Read from MH i2c: E2 [22:40:25]MH_I2C_Read... [22:40:25]Read from MH i2c: E2 03 00 [22:40:25]MH_I2C_Read... [22:40:25]Read from MH i2c: E2 03 00 FA 1B 00 90 00 89 [22:40:25]RAPDU: 90 00 [22:40:25]wFMCommunicate OK [22:40:25]wFMCommunicate request_size=255 [22:40:25]MH_SAM_APDU [22:40: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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 02 00 00 F4 03 04 00 D9 86 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 83 79 03 00 35 04 06 00 A8 27 4F CA [22:40:25]Write to MH i2c: E2 02 01 FB 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 02 00 00 F4 03 04 00 D9 86 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 83 79 03 00 35 04 06 00 A8 27 4F CA 00 00 2F [22:40:25]Write i2c OK [22:40:25]MH_I2C_Read... [22:40:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:40:25]Read from MH i2c: E2 [22:40:25]MH_I2C_Read... [22:40:25]Read from MH i2c: E2 03 00 [22:40:25]MH_I2C_Read... [22:40:25]Read from MH i2c: E2 03 00 FB 1B 00 90 00 8A [22:40:25]RAPDU: 90 00 [22:40:25]wFMCommunicate OK [22:40:25]wFMCommunicate request_size=7 [22:40:25]MH_SAM_APDU [22:40:25]CAPDU: 80 0D 02 02 02 C1 96 [22:40:25]Write to MH i2c: E2 0A 00 FC 1B 80 0D 02 02 02 00 C1 96 00 00 EC [22:40:25]Write i2c OK [22:40:25]MH_I2C_Read... [22:40:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:40:25]Read from MH i2c: E2 [22:40:25]MH_I2C_Read... [22:40:25]Read from MH i2c: E2 03 00 [22:40:25]MH_I2C_Read... [22:40:25]Read from MH i2c: E2 03 00 FC 1B 00 90 00 8B [22:40:25]RAPDU: 90 00 [22:40:25]wFMCommunicate OK [22:40:25]wFMCommunicate request_size=4 [22:40:25]MH_SAM_APDU [22:40:25]CAPDU: 80 0D 03 02 [22:40:25]Write to MH i2c: E2 08 00 FD 1B 80 0D 03 02 00 00 00 00 93 [22:40:25]Write i2c OK [22:40:25]MH_I2C_Read... [22:40:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:40:25]Read from MH i2c: E2 [22:40:25]MH_I2C_Read... [22:40:25]Read from MH i2c: E2 0B 00 [22:40:25]MH_I2C_Read... [22:40:25]Read from MH i2c: E2 0B 00 FD 1B 00 43 A6 9F 34 E5 EF AC D5 90 00 A5 [22:40:25]RAPDU: 43 A6 9F 34 E5 EF AC D5 90 00 [22:40:25]wFMCommunicate OK [22:40:25]SAM_PROTO_SignData done [22:40:25]FM_MakeSignedData done [22:40:25]CreateOFDProtocolMessage [22:40:25]wFMCommunicate request_size=4 [22:40:25]MH_SAM_APDU [22:40:25]CAPDU: 80 11 00 00 [22:40:25]Write to MH i2c: E2 08 00 FE 1B 80 11 00 00 00 00 00 00 93 [22:40:25]Write i2c OK [22:40:25]MH_I2C_Read... [22:40:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:40:25]Read from MH i2c: E2 [22:40:25]MH_I2C_Read... [22:40:25]Read from MH i2c: E2 17 00 [22:40:25]MH_I2C_Read... [22:40:25]Read from MH i2c: E2 17 00 FE 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 EA [22:40:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [22:40:25]wFMCommunicate OK [22:40:25]CreateOFDProtocolMessage done [22:40:25]OFDSenderStorePacket 227715 [22:40:25]StoreOFDPacket docnum=227715 [22:40:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 01 25 04 01 DB CF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 02 00 00 F4 03 04 00 D9 86 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 83 79 03 00 35 04 06 00 A8 27 4F CA C1 96 43 A6 9F 34 E5 EF AC D5 [22:40:25]CheckFolder [22:40:25]dirname=/storage/ofd_packets [22:40:25]CheckFolder done [22:40:25]ProducePacketName [22:40:25]name=ofd_packets/00227715 [22:40:25]NVStorageSaveData ofd_packets/00227715 [22:40:25]File name is /storage/ofd_packets/00227715 [22:40:25]Write 298 bytes [22:40:25]NVStorageSaveData done [22:40:25]OFDSenderStorePacket done [22:40:25]KKMCreateOFDPacket done [22:40:25]NVStorageSaveData kkm_last_timestamp [22:40:25]File name is /storage/kkm_last_timestamp [22:40:25]Write 4 bytes [22:40:25]NVStorageSaveData done [22:40:25]ExternCall_PrintAddStr [22:40:25]wPrintStart [22:40:25]Write to MH i2c: 01 00 00 FF 1B 1A [22:40:25]Write i2c OK [22:40:25]MH_I2C_Read... [22:40:25]Read from MH i2c: 01 [22:40:25]MH_I2C_Read... [22:40:25]Read from MH i2c: 01 07 00 [22:40:25]MH_I2C_Read... [22:40:25]Read from MH i2c: 01 07 00 FF 1B 00 00 00 00 00 FF 0F 2F [22:40:25]RasterBufferAndPrint [22:40:25]line Счет N : (1)1963385 [22:40:25]line ИНН: 02508201610067 [22:40:25]line Контрольно-Кассовый Чек [22:40:25]line ПРОДАЖА [22:40:25]line ТРК (МРК, ГНК) : 11 [22:40:25]line Товар: 2710194210 [22:40:25]line ДТ-К-5 [22:40:25]line 6.570 * 76.20 [22:40:25]line = 500.63 [22:40:25]line НДС 12% НСП 1% [22:40:25]line > о реализуемом товаре [22:40:25]line ИТОГО: 500.63 [22:40:25]line НСП 1% : 4.43 [22:40:25]line НДС 12% : 53.16 [22:40:25]line Наличными: 0.00 [22:40:25]line Безнал.: 500.63 [22:40:25]line Место: АЗС № 133 "Партнер Нефть" [22:40:25]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [22:40:25]line СНО: Общий режим [22:40:25]line Чек 563 20.10.2024 22:40 [22:40:25]line Смена: 533 ФФД: 1.0 [22:40:25]line ЗНМ: 0300000091 [22:40:25]line РНМ: 0000000000091685 [22:40:25]line Версия ККМ: 001 [22:40:25]line Платежная система: Mbank [22:40:25]line ФМ: 0000000000871839 [22:40:25]line ФД: 227715 [22:40:25]line ФПД: 184886795878806 [22:40:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T224025&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227715&fm=184886795878806&tin=02508201610067®Number=0000000000091685&sum=50063 [22:40:25]OFD Sender: Processing packet 227715 [packets to send 38, broken 37] [22:40:25]ProducePacketName [22:40:25]name=ofd_packets/00227715 [22:40:25]OFD Sender: To server: pG, [22:40:25]CommunicateWithHost lk.salyk.kg:30040 [22:40:25]ConnectInit lk.salyk.kg [22:40:25]written 0, free lines is 4095 [22:40:25]Connected sock=10 [22:40: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 33 39 0C 01 00 00 01 25 04 01 DB CF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 02 00 00 F4 03 04 00 D9 86 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 83 79 03 00 35 04 06 00 A8 27 4F CA C1 96 43 A6 9F 34 E5 EF AC D5 [22:40: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 33 39 4F 00 00 00 60 B4 47 00 F3 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 83 79 03 00 F4 03 04 00 D6 31 15 67 B6 04 01 00 00 82 1A 7C 5B 2C AC 4F F7 [22:40:26]CommunicateWithHost err = 0 [22:40:26]CheckOFDResponse [22:40:26]1017 (14) - 77093643461234 [22:40:26]1041 (16) - 0000000000871839 [22:40:26]1040 (4) - 227715 [22:40:26]1012 (4) - 20.10.2024 16:37 [22:40:26]1206 (1) - 0 [22:40:26]OFD Sender: Remove packet 227715 [22:40:26]ProducePacketName [22:40:26]name=ofd_packets/00227715 [22:40:26]NVStorageDeleteData [22:40:26]Write to MH i2c: 01 00 00 27 1C 43 [22:40:26]Write i2c OK [22:40:26]MH_I2C_Read... [22:40:26]Read from MH i2c: 01 [22:40:26]MH_I2C_Read... [22:40:26]Read from MH i2c: 01 07 00 [22:40:26]MH_I2C_Read... [22:40:26]Read from MH i2c: 01 07 00 27 1C 00 00 00 00 00 CD 0C 23 [22:40:26]RasterBufferAndPrint [22:40:26]line [22:40:26]line [22:40:26]line [22:40:26]line [22:40:26]line [22:40:26]written 0, free lines is 3281 [22:40:26]MH_Cut [22:40:26]Write to MH i2c: D1 01 00 2E 1C 01 1C [22:40:26]Write i2c OK [22:40:26]MH_I2C_Read... [22:40:26]Read from MH i2c: D1 [22:40:26]MH_I2C_Read... [22:40:26]Read from MH i2c: D1 01 00 [22:40:26]MH_I2C_Read... [22:40:26]Read from MH i2c: D1 01 00 2E 1C 00 1B [22:40:26]Write to MH i2c: 01 00 00 2F 1C 4B [22:40:26]Write i2c OK [22:40:26]MH_I2C_Read... [22:40:26]OFD Sender: No OFD packet to send [22:40:27]*** Cut start [22:40:27]*** Partial cut [22:40:27]*** CUTSNS_PIN = 1 [22:40:27]*** CUTSNS_PIN = 0 [22:40:27]*** Brake cut motor [22:40:27]Read from MH i2c: 01 [22:40:27]MH_I2C_Read... [22:40:27]*** Stop cut motor [22:40:27]*** Cut end [22:40:27]Read from MH i2c: 01 07 00 [22:40:27]MH_I2C_Read... [22:40:27]Read from MH i2c: 01 07 00 2F 1C 00 00 00 00 00 FF 0F 60 [22:40:27]process_action close_receipt done [22:40:27]requested_data is exist [22:40:27]produce_requested_data [22:40:27]requested_item fm.sn is exist - process it [22:40:27]wFMCommunicate request_size=4 [22:40:27]MH_SAM_APDU [22:40:27]CAPDU: 80 11 00 00 [22:40:27]Write to MH i2c: E2 08 00 30 1C 80 11 00 00 00 00 00 00 C6 [22:40:27]Write i2c OK [22:40:27]MH_I2C_Read... [22:40:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:40:27]Read from MH i2c: E2 [22:40:27]MH_I2C_Read... [22:40:27]Read from MH i2c: E2 17 00 [22:40:27]MH_I2C_Read... [22:40:27]Read from MH i2c: E2 17 00 30 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 1D [22:40:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [22:40:27]wFMCommunicate OK [22:40:27]requested_item fd.num is exist - process it [22:40:27]SAM_PROTO_GetFieldsCounters [22:40:27]wFMCommunicate request_size=4 [22:40:27]MH_SAM_APDU [22:40:27]CAPDU: 80 13 00 00 [22:40:27]Write to MH i2c: E2 08 00 31 1C 80 13 00 00 00 00 00 00 C9 [22:40:27]Write i2c OK [22:40:27]MH_I2C_Read... [22:40:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:40:27]Read from MH i2c: E2 [22:40:27]MH_I2C_Read... [22:40:27]Read from MH i2c: E2 62 00 [22:40:27]MH_I2C_Read... [22:40:27]Read from MH i2c: E2 62 00 31 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 83 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 33 02 00 00 5E 04 04 00 33 02 00 00 57 04 04 00 34 02 00 00 19 04 04 00 00 00 00 00 90 00 A7 [22:40: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 83 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 33 02 00 00 5E 04 04 00 33 02 00 00 57 04 04 00 34 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:40:27]wFMCommunicate OK [22:40:27]SAM_PROTO_GetFieldsCounters done [22:40:27]requested_item shift.num is exist - process it [22:40:27]requested_item shift.opened is exist - process it [22:40:27]req_shift_opened [22:40:27]FM_GetShiftState [22:40:27]SAM_PROTO_GetShiftState [22:40:27]wFMCommunicate request_size=4 [22:40:27]MH_SAM_APDU [22:40:27]CAPDU: 80 13 01 00 [22:40:27]Write to MH i2c: E2 08 00 32 1C 80 13 01 00 00 00 00 00 CB [22:40:27]Write i2c OK [22:40:27]MH_I2C_Read... [22:40:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:40:27]Read from MH i2c: E2 [22:40:27]MH_I2C_Read... [22:40:27]Read from MH i2c: E2 0E 00 [22:40:27]MH_I2C_Read... [22:40:27]Read from MH i2c: E2 0E 00 32 1C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 E5 [22:40:27]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [22:40:27]wFMCommunicate OK [22:40:27]SAM_PROTO_GetShiftState done [22:40:27]FM_GetShiftState done [22:40:27]req_shift_opened done [22:40:27]requested_item shift.open_date is exist - process it [22:40:27]req_shift_open_date [22:40:27]req_shift_open_date done [22:40:27]produce_requested_data done [22:40:27]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227715,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [22:40:27]process_action_free close_receipt [22:40:27]json_value_free [22:40:27]json_value_free done [22:40:27]process_json_proto returns [22:40:27]Send response to host [22:40:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227715,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [22:40:27]free response buf [22:40:27]execute_script done [22:40:27]execute_script returns [22:40:27]free content buf [22:40:27]Sock 7.Close socket [22:40:27]Sock 7.Thread stoped [22:40:31]OFD Sender: No OFD packet to send [22:40:36]OFD Sender: No OFD packet to send [22:40:41]OFD Sender: No OFD packet to send [22:40:46]OFD Sender: No OFD packet to send [22:40:51]OFD Sender: No OFD packet to send [22:40:56]OFD Sender: No OFD packet to send [22:41:01]OFD Sender: No OFD packet to send [22:41:06]OFD Sender: No OFD packet to send [22:41:11]OFD Sender: No OFD packet to send [22:41:16]OFD Sender: No OFD packet to send [22:41:21]OFD Sender: No OFD packet to send [22:41:26]OFD Sender: No OFD packet to send [22:41:31]OFD Sender: No OFD packet to send [22:41:36]OFD Sender: No OFD packet to send [22:41:41]OFD Sender: No OFD packet to send [22:41:46]OFD Sender: No OFD packet to send [22:41:51]OFD Sender: No OFD packet to send [22:41:56]OFD Sender: No OFD packet to send [22:42:01]OFD Sender: No OFD packet to send [22:42:06]OFD Sender: No OFD packet to send [22:42:11]OFD Sender: No OFD packet to send [22:42:16]OFD Sender: No OFD packet to send [22:42:21]OFD Sender: No OFD packet to send [22:42:26]OFD Sender: No OFD packet to send [22:42:31]OFD Sender: No OFD packet to send [22:42:36]OFD Sender: No OFD packet to send [22:42:41]OFD Sender: No OFD packet to send [22:42:46]OFD Sender: No OFD packet to send [22:42:51]OFD Sender: No OFD packet to send [22:42:56]OFD Sender: No OFD packet to send [22:43:01]OFD Sender: No OFD packet to send [22:43:06]OFD Sender: No OFD packet to send [22:43:11]OFD Sender: No OFD packet to send [22:43:16]OFD Sender: No OFD packet to send [22:43:21]OFD Sender: No OFD packet to send [22:43:26]OFD Sender: No OFD packet to send [22:43:31]OFD Sender: No OFD packet to send [22:43:36]OFD Sender: No OFD packet to send [22:43:41]OFD Sender: No OFD packet to send [22:43:46]OFD Sender: No OFD packet to send [22:43:51]OFD Sender: No OFD packet to send [22:43:56]OFD Sender: No OFD packet to send [22:44:01]OFD Sender: No OFD packet to send [22:44:06]OFD Sender: No OFD packet to send [22:44:11]OFD Sender: No OFD packet to send [22:44:16]OFD Sender: No OFD packet to send [22:44:21]OFD Sender: No OFD packet to send [22:44:26]OFD Sender: No OFD packet to send [22:44:31]OFD Sender: No OFD packet to send [22:44:36]OFD Sender: No OFD packet to send [22:44:41]OFD Sender: No OFD packet to send [22:44:46]OFD Sender: No OFD packet to send [22:44:51]OFD Sender: No OFD packet to send [22:44:56]OFD Sender: No OFD packet to send [22:45:01]OFD Sender: No OFD packet to send [22:45:06]OFD Sender: No OFD packet to send [22:45:11]OFD Sender: No OFD packet to send [22:45:16]OFD Sender: No OFD packet to send [22:45:21]OFD Sender: No OFD packet to send [22:45:26]OFD Sender: No OFD packet to send [22:45:31]OFD Sender: No OFD packet to send [22:45:36]OFD Sender: No OFD packet to send [22:45:41]OFD Sender: No OFD packet to send [22:45:46]OFD Sender: No OFD packet to send [22:45:51]OFD Sender: No OFD packet to send [22:45:56]OFD Sender: No OFD packet to send [22:46:01]OFD Sender: No OFD packet to send [22:46:06]OFD Sender: No OFD packet to send [22:46:11]OFD Sender: No OFD packet to send [22:46:16]OFD Sender: No OFD packet to send [22:46:21]OFD Sender: No OFD packet to send [22:46:26]OFD Sender: No OFD packet to send [22:46:31]OFD Sender: No OFD packet to send [22:46:36]OFD Sender: No OFD packet to send [22:46:41]OFD Sender: No OFD packet to send [22:46:46]OFD Sender: No OFD packet to send [22:46:51]OFD Sender: No OFD packet to send [22:46:56]OFD Sender: No OFD packet to send [22:47:01]OFD Sender: No OFD packet to send [22:47:06]OFD Sender: No OFD packet to send [22:47:11]OFD Sender: No OFD packet to send [22:47:16]OFD Sender: No OFD packet to send [22:47:21]OFD Sender: No OFD packet to send [22:47:26]OFD Sender: No OFD packet to send [22:47:31]OFD Sender: No OFD packet to send [22:47:36]OFD Sender: No OFD packet to send [22:47:41]OFD Sender: No OFD packet to send [22:47:46]OFD Sender: No OFD packet to send [22:47:51]OFD Sender: No OFD packet to send [22:47:56]OFD Sender: No OFD packet to send [22:48:01]OFD Sender: No OFD packet to send [22:48:06]OFD Sender: No OFD packet to send [22:48:11]OFD Sender: No OFD packet to send [22:48:16]OFD Sender: No OFD packet to send [22:48:21]OFD Sender: No OFD packet to send [22:48:26]OFD Sender: No OFD packet to send [22:48:31]OFD Sender: No OFD packet to send [22:48:36]OFD Sender: No OFD packet to send [22:48:41]OFD Sender: No OFD packet to send [22:48:46]OFD Sender: No OFD packet to send [22:48:51]OFD Sender: No OFD packet to send [22:48:57]OFD Sender: No OFD packet to send [22:49:02]OFD Sender: No OFD packet to send [22:49:07]OFD Sender: No OFD packet to send [22:49:12]OFD Sender: No OFD packet to send [22:49:17]OFD Sender: No OFD packet to send [22:49:22]OFD Sender: No OFD packet to send [22:49:27]OFD Sender: No OFD packet to send [22:49:28]accept exits with 9 [22:49:28]New connection [22:49:28]New thread 3066809700 created [22:49:28]Thread 3066666340 joined [22:49:28]Waiting for new connection... [22:49:28] Sock 9.Parse request [22:49:28]Sock 9.Check first char [22:49:28]Sock 9.First char is OK [22:49:28]request: POST /json_proto HTTP/1.0 [22:49:28]Method: POST [22:49:28]URL: /json_proto [22:49:28]Method is POST - this is cgi request [22:49:28]url: /json_proto [22:49:28]query_string will be loaded in cgi processing [22:49:28]execute_cgi json_proto POST (null) [22:49:28]execute_cgi path=json_proto method=POST [22:49:28]POST find Content-Length [22:49:28]Host: 172.17.44.195:8080 [22:49:28]Content-Length: 644 [22:49:28]Content-Type: application/json [22:49:28] [22:49:28]POST finish read [22:49:28]Found Content-Length = 644 [22:49:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963387", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 100.000, "sum" : 7420.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 7420.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:49:28]execute_script... [22:49: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)1963387", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 100.000, "sum" : 7420.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 7420.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:49:28]POST & json_proto [22:49:28]process_json_proto [22:49:28]json parsed OK: [22:49:28]protocol is kg_v1.0 [22:49:28]action value=close_receipt [22:49:28]process_action close_receipt [22:49:28]cmd_close_receipt [22:49:28]MH_GetDate [22:49:28]Write to MH i2c: F0 00 00 33 1C 3E [22:49:28]Write i2c OK [22:49:28]MH_I2C_Read... [22:49:28]Read from MH i2c: F0 [22:49:28]MH_I2C_Read... [22:49:28]Read from MH i2c: F0 09 00 [22:49:28]MH_I2C_Read... [22:49:28]Read from MH i2c: F0 09 00 33 1C 00 FA 88 15 67 82 C9 CF 66 C5 [22:49:28]GetLastDocTimeStamp 1729464025 [22:49:28]current date 1729464570 [22:49:28]FM_GetShiftState [22:49:28]SAM_PROTO_GetShiftState [22:49:28]wFMCommunicate request_size=4 [22:49:28]MH_SAM_APDU [22:49:28]CAPDU: 80 13 01 00 [22:49:28]Write to MH i2c: E2 08 00 34 1C 80 13 01 00 00 00 00 00 CD [22:49:28]Write i2c OK [22:49:28]MH_I2C_Read... [22:49:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:49:28]Read from MH i2c: E2 [22:49:28]MH_I2C_Read... [22:49:28]Read from MH i2c: E2 0E 00 [22:49:28]MH_I2C_Read... [22:49:28]Read from MH i2c: E2 0E 00 34 1C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 E7 [22:49:28]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [22:49:28]wFMCommunicate OK [22:49:28]SAM_PROTO_GetShiftState done [22:49:28]FM_GetShiftState done [22:49:28]opened in 1729383750 [22:49:28]opened+sec_in_day 1729470150 [22:49:28]quantity*price = 742000 [22:49:28]sum+1 = 742001 [22:49:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 7420.00 НСП 1% : 65.66 НДС 12% : 787.96 Наличными: 7420.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 564 20.10.2024 22:49 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227716 ФПД: 122620144323252 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T224930&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227716&fm=122620144323252&tin=02508201610067®Number=0000000000091685&sum=742000 [22:49:29]StoreToDocumentArchive [22:49:29]shift 533 fd 227716 [22:49:29]save to /storage/0533/doc_00227716 [22:49:29]save last doc name /storage/0533/doc_00227716 to /storage/kkm_last_doc_name [22:49:29]save OK [22:49:29]Clear old archive folders... [22:49:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:49:29]tlvbuf is 00C45E70 [22:49:29]SAM_PROTO_ClearQueue [22:49:29]wFMCommunicate request_size=4 [22:49:29]MH_SAM_APDU [22:49:29]CAPDU: 80 09 00 00 [22:49:29]Write to MH i2c: E2 08 00 41 1C 80 09 00 00 00 00 00 00 CF [22:49:29]Write i2c OK [22:49:29]MH_I2C_Read... [22:49:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:49:29]Read from MH i2c: E2 [22:49:29]MH_I2C_Read... [22:49:29]Read from MH i2c: E2 03 00 [22:49:29]MH_I2C_Read... [22:49:29]Read from MH i2c: E2 03 00 41 1C 00 90 00 D1 [22:49:29]RAPDU: 90 00 [22:49:29]wFMCommunicate OK [22:49:29]SAM_PROTO_ClearQueue done [22:49:29]KKMCreateOFDPacket [22:49:29]OFDProtocolAddRootSTLVToBuf [22:49:29]FM_MakeSignedData [22:49:29]FM_MakeSignedData [22:49:29]SAM_PROTO_SignData [22:49:29]wFMCommunicate request_size=4 [22:49:29]MH_SAM_APDU [22:49:29]CAPDU: 80 0D 01 02 [22:49:29]Write to MH i2c: E2 08 00 42 1C 80 0D 01 02 00 00 00 00 D7 [22:49:29]Write i2c OK [22:49:29]MH_I2C_Read... [22:49:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:49:29]Read from MH i2c: E2 [22:49:29]MH_I2C_Read... [22:49:29]Read from MH i2c: E2 03 00 [22:49:29]MH_I2C_Read... [22:49:29]Read from MH i2c: E2 03 00 42 1C 00 90 00 D2 [22:49:29]RAPDU: 90 00 [22:49:29]wFMCommunicate OK [22:49:29]wFMCommunicate request_size=255 [22:49:29]MH_SAM_APDU [22:49: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 70 52 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 52 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A6 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 33 01 00 00 00 07 04 06 00 70 52 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 02 00 00 F4 03 04 00 FA 88 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 84 79 03 00 35 04 06 00 6F [22:49:30]Write to MH i2c: E2 02 01 43 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 A0 86 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 70 52 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 52 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A6 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 33 01 00 00 00 07 04 06 00 70 52 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 02 00 00 F4 03 04 00 FA 88 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 84 79 03 00 35 04 06 00 6F 00 00 0C [22:49:30]Write i2c OK [22:49:30]MH_I2C_Read... [22:49:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:49:30]Read from MH i2c: E2 [22:49:30]MH_I2C_Read... [22:49:30]Read from MH i2c: E2 03 00 [22:49:30]MH_I2C_Read... [22:49:30]Read from MH i2c: E2 03 00 43 1C 00 90 00 D3 [22:49:30]RAPDU: 90 00 [22:49:30]wFMCommunicate OK [22:49:30]wFMCommunicate request_size=10 [22:49:30]MH_SAM_APDU [22:49:30]CAPDU: 80 0D 02 02 05 85 BA 25 0A B4 [22:49:30]Write to MH i2c: E2 0D 00 44 1C 80 0D 02 02 05 00 85 BA 25 0A B4 00 00 06 [22:49:30]Write i2c OK [22:49:30]MH_I2C_Read... [22:49:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:49:30]Read from MH i2c: E2 [22:49:30]MH_I2C_Read... [22:49:30]Read from MH i2c: E2 03 00 [22:49:30]MH_I2C_Read... [22:49:30]Read from MH i2c: E2 03 00 44 1C 00 90 00 D4 [22:49:30]RAPDU: 90 00 [22:49:30]wFMCommunicate OK [22:49:30]wFMCommunicate request_size=4 [22:49:30]MH_SAM_APDU [22:49:30]CAPDU: 80 0D 03 02 [22:49:30]Write to MH i2c: E2 08 00 45 1C 80 0D 03 02 00 00 00 00 DC [22:49:30]Write i2c OK [22:49:30]MH_I2C_Read... [22:49:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:49:30]Read from MH i2c: E2 [22:49:30]MH_I2C_Read... [22:49:30]Read from MH i2c: E2 0B 00 [22:49:30]MH_I2C_Read... [22:49:30]Read from MH i2c: E2 0B 00 45 1C 00 54 EC 71 51 7B 44 32 D6 90 00 A6 [22:49:30]RAPDU: 54 EC 71 51 7B 44 32 D6 90 00 [22:49:30]wFMCommunicate OK [22:49:30]SAM_PROTO_SignData done [22:49:30]FM_MakeSignedData done [22:49:30]CreateOFDProtocolMessage [22:49:30]wFMCommunicate request_size=4 [22:49:30]MH_SAM_APDU [22:49:30]CAPDU: 80 11 00 00 [22:49:30]Write to MH i2c: E2 08 00 46 1C 80 11 00 00 00 00 00 00 DC [22:49:30]Write i2c OK [22:49:30]MH_I2C_Read... [22:49:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:49:30]Read from MH i2c: E2 [22:49:30]MH_I2C_Read... [22:49:30]Read from MH i2c: E2 17 00 [22:49:30]MH_I2C_Read... [22:49:30]Read from MH i2c: E2 17 00 46 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 33 [22:49:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [22:49:30]wFMCommunicate OK [22:49:30]CreateOFDProtocolMessage done [22:49:30]OFDSenderStorePacket 227716 [22:49:30]StoreOFDPacket docnum=227716 [22:49:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 F2 B5 07 01 E3 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 70 52 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 52 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A6 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 33 01 00 00 00 07 04 06 00 70 52 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 02 00 00 F4 03 04 00 FA 88 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 84 79 03 00 35 04 06 00 6F 85 BA 25 0A B4 54 EC 71 51 7B 44 32 D6 [22:49:30]CheckFolder [22:49:30]dirname=/storage/ofd_packets [22:49:30]CheckFolder done [22:49:30]ProducePacketName [22:49:30]name=ofd_packets/00227716 [22:49:30]NVStorageSaveData ofd_packets/00227716 [22:49:30]File name is /storage/ofd_packets/00227716 [22:49:30]Write 301 bytes [22:49:30]NVStorageSaveData done [22:49:30]OFDSenderStorePacket done [22:49:30]KKMCreateOFDPacket done [22:49:30]NVStorageSaveData kkm_last_timestamp [22:49:30]File name is /storage/kkm_last_timestamp [22:49:30]Write 4 bytes [22:49:30]NVStorageSaveData done [22:49:30]ExternCall_PrintAddStr [22:49:30]wPrintStart [22:49:30]Write to MH i2c: 01 00 00 47 1C 63 [22:49:30]Write i2c OK [22:49:30]MH_I2C_Read... [22:49:30]Read from MH i2c: 01 [22:49:30]MH_I2C_Read... [22:49:30]Read from MH i2c: 01 07 00 [22:49:30]MH_I2C_Read... [22:49:30]Read from MH i2c: 01 07 00 47 1C 00 00 00 00 00 FF 0F 78 [22:49:30]RasterBufferAndPrint [22:49:30]line Счет N : (1)1963387 [22:49:30]line ИНН: 02508201610067 [22:49:30]line Контрольно-Кассовый Чек [22:49:30]line ПРОДАЖА [22:49:30]line ТРК (МРК, ГНК) : 54 [22:49:30]line Товар: 2710124500 [22:49:30]line Аи-95-К-5 [22:49:30]line 100.000 * 74.20 [22:49:30]line = 7420.00 [22:49:30]line НДС 12% НСП 1% [22:49:30]line > о реализуемом товаре [22:49:30]line ИТОГО: 7420.00 [22:49:30]line НСП 1% : 65.66 [22:49:30]line НДС 12% : 787.96 [22:49:30]line Наличными: 7420.00 [22:49:30]line Безнал.: 0.00 [22:49:30]line Место: АЗС № 133 "Партнер Нефть" [22:49:30]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [22:49:30]line СНО: Общий режим [22:49:30]line Чек 564 20.10.2024 22:49 [22:49:30]line Смена: 533 ФФД: 1.0 [22:49:30]line ЗНМ: 0300000091 [22:49:30]line РНМ: 0000000000091685 [22:49:30]line Версия ККМ: 001 [22:49:30]line ФМ: 0000000000871839 [22:49:30]line ФД: 227716 [22:49:30]line ФПД: 122620144323252 [22:49:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T224930&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227716&fm=122620144323252&tin=02508201610067®Number=0000000000091685&sum=742000 [22:49:30]written 0, free lines is 4095 [22:49:30]OFD Sender: Processing packet 227716 [packets to send 38, broken 37] [22:49:30]ProducePacketName [22:49:30]name=ofd_packets/00227716 [22:49:30]OFD Sender: To server: pG, [22:49:30]CommunicateWithHost lk.salyk.kg:30040 [22:49:30]ConnectInit lk.salyk.kg [22:49:30]Connected sock=10 [22:49: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 33 39 0F 01 00 00 F2 B5 07 01 E3 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 70 52 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 52 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A6 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 33 01 00 00 00 07 04 06 00 70 52 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 02 00 00 F4 03 04 00 FA 88 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 84 79 03 00 35 04 06 00 6F 85 BA 25 0A B4 54 EC 71 51 7B 44 32 D6 [22:49: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 33 39 4F 00 00 00 B9 64 47 00 D0 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 33 39 10 04 04 00 84 79 03 00 F4 03 04 00 F7 33 15 67 B6 04 01 00 00 00 E5 CF 56 C2 4B 9F 09 [22:49:30]CommunicateWithHost err = 0 [22:49:30]CheckOFDResponse [22:49:30]1017 (14) - 77093643461234 [22:49:30]1041 (16) - 0000000000871839 [22:49:30]1040 (4) - 227716 [22:49:30]1012 (4) - 20.10.2024 16:46 [22:49:30]1206 (1) - 0 [22:49:30]OFD Sender: Remove packet 227716 [22:49:30]ProducePacketName [22:49:30]name=ofd_packets/00227716 [22:49:30]NVStorageDeleteData [22:49:30]Write to MH i2c: 01 00 00 6E 1C 8A [22:49:30]Write i2c OK [22:49:30]MH_I2C_Read... [22:49:30]Read from MH i2c: 01 [22:49:30]MH_I2C_Read... [22:49:30]Read from MH i2c: 01 07 00 [22:49:30]MH_I2C_Read... [22:49:30]Read from MH i2c: 01 07 00 6E 1C 00 00 00 00 00 EC 0C 89 [22:49:30]RasterBufferAndPrint [22:49:30]line [22:49:30]line [22:49:30]line [22:49:30]line [22:49:30]line [22:49:30]written 0, free lines is 3312 [22:49:30]MH_Cut [22:49:30]Write to MH i2c: D1 01 00 75 1C 01 63 [22:49:30]Write i2c OK [22:49:30]MH_I2C_Read... [22:49:30]Read from MH i2c: D1 [22:49:30]MH_I2C_Read... [22:49:30]Read from MH i2c: D1 01 00 [22:49:31]MH_I2C_Read... [22:49:31]Read from MH i2c: D1 01 00 75 1C 00 62 [22:49:31]Write to MH i2c: 01 00 00 76 1C 92 [22:49:31]Write i2c OK [22:49:31]MH_I2C_Read... [22:49:31]OFD Sender: No OFD packet to send [22:49:31]*** Cut start [22:49:31]*** Partial cut [22:49:31]*** CUTSNS_PIN = 1 [22:49:31]*** CUTSNS_PIN = 0 [22:49:32]*** Brake cut motor [22:49:32]Read from MH i2c: 01 [22:49:32]MH_I2C_Read... [22:49:32]*** Stop cut motor [22:49:32]*** Cut end [22:49:32]Read from MH i2c: 01 07 00 [22:49:32]MH_I2C_Read... [22:49:32]Read from MH i2c: 01 07 00 76 1C 00 00 00 00 00 FF 0F A7 [22:49:32]process_action close_receipt done [22:49:32]requested_data is exist [22:49:32]produce_requested_data [22:49:32]requested_item fm.sn is exist - process it [22:49:32]wFMCommunicate request_size=4 [22:49:32]MH_SAM_APDU [22:49:32]CAPDU: 80 11 00 00 [22:49:32]Write to MH i2c: E2 08 00 77 1C 80 11 00 00 00 00 00 00 0D [22:49:32]Write i2c OK [22:49:32]MH_I2C_Read... [22:49:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:49:32]Read from MH i2c: E2 [22:49:32]MH_I2C_Read... [22:49:32]Read from MH i2c: E2 17 00 [22:49:32]MH_I2C_Read... [22:49:32]Read from MH i2c: E2 17 00 77 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 64 [22:49:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [22:49:32]wFMCommunicate OK [22:49:32]requested_item fd.num is exist - process it [22:49:32]SAM_PROTO_GetFieldsCounters [22:49:32]wFMCommunicate request_size=4 [22:49:32]MH_SAM_APDU [22:49:32]CAPDU: 80 13 00 00 [22:49:32]Write to MH i2c: E2 08 00 78 1C 80 13 00 00 00 00 00 00 10 [22:49:32]Write i2c OK [22:49:32]MH_I2C_Read... [22:49:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:49:32]Read from MH i2c: E2 [22:49:32]MH_I2C_Read... [22:49:32]Read from MH i2c: E2 62 00 [22:49:32]MH_I2C_Read... [22:49:32]Read from MH i2c: E2 62 00 78 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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 84 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 34 02 00 00 5E 04 04 00 34 02 00 00 57 04 04 00 35 02 00 00 19 04 04 00 00 00 00 00 90 00 F2 [22:49: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 84 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 34 02 00 00 5E 04 04 00 34 02 00 00 57 04 04 00 35 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:49:32]wFMCommunicate OK [22:49:32]SAM_PROTO_GetFieldsCounters done [22:49:32]requested_item shift.num is exist - process it [22:49:32]requested_item shift.opened is exist - process it [22:49:32]req_shift_opened [22:49:32]FM_GetShiftState [22:49:32]SAM_PROTO_GetShiftState [22:49:32]wFMCommunicate request_size=4 [22:49:32]MH_SAM_APDU [22:49:32]CAPDU: 80 13 01 00 [22:49:32]Write to MH i2c: E2 08 00 79 1C 80 13 01 00 00 00 00 00 12 [22:49:32]Write i2c OK [22:49:32]MH_I2C_Read... [22:49:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:49:32]Read from MH i2c: E2 [22:49:32]MH_I2C_Read... [22:49:32]Read from MH i2c: E2 0E 00 [22:49:32]MH_I2C_Read... [22:49:32]Read from MH i2c: E2 0E 00 79 1C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 2C [22:49:32]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [22:49:32]wFMCommunicate OK [22:49:32]SAM_PROTO_GetShiftState done [22:49:32]FM_GetShiftState done [22:49:32]req_shift_opened done [22:49:32]requested_item shift.open_date is exist - process it [22:49:32]req_shift_open_date [22:49:32]req_shift_open_date done [22:49:32]produce_requested_data done [22:49:32]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227716,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [22:49:32]process_action_free close_receipt [22:49:32]json_value_free [22:49:32]json_value_free done [22:49:32]process_json_proto returns [22:49:32]Send response to host [22:49:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227716,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [22:49:32]free response buf [22:49:32]execute_script done [22:49:32]execute_script returns [22:49:32]free content buf [22:49:32]Sock 9.Close socket [22:49:32]Sock 9.Thread stoped [22:49:36]OFD Sender: No OFD packet to send [22:49:41]OFD Sender: No OFD packet to send [22:49:46]OFD Sender: No OFD packet to send [22:49:51]OFD Sender: No OFD packet to send [22:49:56]OFD Sender: No OFD packet to send [22:50:01]OFD Sender: No OFD packet to send [22:50:06]OFD Sender: No OFD packet to send [22:50:11]OFD Sender: No OFD packet to send [22:50:16]OFD Sender: No OFD packet to send [22:50:21]OFD Sender: No OFD packet to send [22:50:26]OFD Sender: No OFD packet to send [22:50:31]OFD Sender: No OFD packet to send [22:50:36]OFD Sender: No OFD packet to send [22:50:41]OFD Sender: No OFD packet to send [22:50:46]OFD Sender: No OFD packet to send [22:50:51]OFD Sender: No OFD packet to send [22:50:56]OFD Sender: No OFD packet to send [22:51:01]OFD Sender: No OFD packet to send [22:51:06]OFD Sender: No OFD packet to send [22:51:11]OFD Sender: No OFD packet to send [22:51:16]OFD Sender: No OFD packet to send [22:51:21]OFD Sender: No OFD packet to send [22:51:26]OFD Sender: No OFD packet to send [22:51:31]OFD Sender: No OFD packet to send [22:51:36]OFD Sender: No OFD packet to send [22:51:41]OFD Sender: No OFD packet to send [22:51:46]OFD Sender: No OFD packet to send [22:51:51]OFD Sender: No OFD packet to send [22:51:56]OFD Sender: No OFD packet to send [22:52:01]OFD Sender: No OFD packet to send [22:52:06]OFD Sender: No OFD packet to send [22:52:11]OFD Sender: No OFD packet to send [22:52:16]OFD Sender: No OFD packet to send [22:52:21]OFD Sender: No OFD packet to send [22:52:26]OFD Sender: No OFD packet to send [22:52:31]OFD Sender: No OFD packet to send [22:52:36]OFD Sender: No OFD packet to send [22:52:41]OFD Sender: No OFD packet to send [22:52:46]OFD Sender: No OFD packet to send [22:52:51]OFD Sender: No OFD packet to send [22:52:56]OFD Sender: No OFD packet to send [22:53:01]OFD Sender: No OFD packet to send [22:53:06]OFD Sender: No OFD packet to send [22:53:11]OFD Sender: No OFD packet to send [22:53:16]OFD Sender: No OFD packet to send [22:53:21]OFD Sender: No OFD packet to send [22:53:26]OFD Sender: No OFD packet to send [22:53:31]OFD Sender: No OFD packet to send [22:53:36]OFD Sender: No OFD packet to send [22:53:41]OFD Sender: No OFD packet to send [22:53:46]OFD Sender: No OFD packet to send [22:53:51]OFD Sender: No OFD packet to send [22:53:56]OFD Sender: No OFD packet to send [22:54:01]OFD Sender: No OFD packet to send [22:54:06]OFD Sender: No OFD packet to send [22:54:11]OFD Sender: No OFD packet to send [22:54:16]OFD Sender: No OFD packet to send [22:54:21]OFD Sender: No OFD packet to send [22:54:26]OFD Sender: No OFD packet to send [22:54:31]OFD Sender: No OFD packet to send [22:54:36]OFD Sender: No OFD packet to send [22:54:41]OFD Sender: No OFD packet to send [22:54:46]OFD Sender: No OFD packet to send [22:54:51]OFD Sender: No OFD packet to send [22:54:56]OFD Sender: No OFD packet to send [22:55:01]OFD Sender: No OFD packet to send [22:55:06]OFD Sender: No OFD packet to send [22:55:11]OFD Sender: No OFD packet to send [22:55:16]OFD Sender: No OFD packet to send [22:55:21]OFD Sender: No OFD packet to send [22:55:26]OFD Sender: No OFD packet to send [22:55:31]OFD Sender: No OFD packet to send [22:55:36]OFD Sender: No OFD packet to send [22:55:41]OFD Sender: No OFD packet to send [22:55:46]OFD Sender: No OFD packet to send [22:55:51]OFD Sender: No OFD packet to send [22:55:56]OFD Sender: No OFD packet to send [22:56:01]OFD Sender: No OFD packet to send [22:56:06]OFD Sender: No OFD packet to send [22:56:11]OFD Sender: No OFD packet to send [22:56:16]OFD Sender: No OFD packet to send [22:56:21]OFD Sender: No OFD packet to send [22:56:26]OFD Sender: No OFD packet to send [22:56:31]OFD Sender: No OFD packet to send [22:56:36]OFD Sender: No OFD packet to send [22:56:41]OFD Sender: No OFD packet to send [22:56:46]OFD Sender: No OFD packet to send [22:56:51]OFD Sender: No OFD packet to send [22:56:56]OFD Sender: No OFD packet to send [22:57:01]OFD Sender: No OFD packet to send [22:57:06]OFD Sender: No OFD packet to send [22:57:11]OFD Sender: No OFD packet to send [22:57:16]OFD Sender: No OFD packet to send [22:57:21]OFD Sender: No OFD packet to send [22:57:26]OFD Sender: No OFD packet to send [22:57:31]OFD Sender: No OFD packet to send [22:57:36]OFD Sender: No OFD packet to send [22:57:41]OFD Sender: No OFD packet to send [22:57:46]OFD Sender: No OFD packet to send [22:57:51]OFD Sender: No OFD packet to send [22:57:56]OFD Sender: No OFD packet to send [22:58:01]OFD Sender: No OFD packet to send [22:58:06]OFD Sender: No OFD packet to send [22:58:11]OFD Sender: No OFD packet to send [22:58:16]OFD Sender: No OFD packet to send [22:58:21]OFD Sender: No OFD packet to send [22:58:26]OFD Sender: No OFD packet to send [22:58:31]OFD Sender: No OFD packet to send [22:58:33]accept exits with 7 [22:58:33]New connection [22:58:33]New thread 3066666340 created [22:58:33]Thread 3066809700 joined [22:58:33]Waiting for new connection... [22:58:33] Sock 7.Parse request [22:58:33]Sock 7.Check first char [22:58:33]Sock 7.First char is OK [22:58:33]request: POST /json_proto HTTP/1.0 [22:58:33]Method: POST [22:58:33]URL: /json_proto [22:58:33]Method is POST - this is cgi request [22:58:33]url: /json_proto [22:58:33]query_string will be loaded in cgi processing [22:58:33]execute_cgi json_proto POST (null) [22:58:33]execute_cgi path=json_proto method=POST [22:58:33]POST find Content-Length [22:58:33]Host: 172.17.44.195:8080 [22:58:33]Content-Length: 683 [22:58:33]Content-Type: application/json [22:58:33] [22:58:33]POST finish read [22:58:33]Found Content-Length = 683 [22:58:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963388", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 18.540, "sum" : 1375.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1375.00, "total" : 1375.00, "payments": [ { "type": 0, "sum" : 1375.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:58:33]execute_script... [22:58: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)1963388", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 18.540, "sum" : 1375.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1375.00, "total" : 1375.00, "payments": [ { "type": 0, "sum" : 1375.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:58:33]POST & json_proto [22:58:33]process_json_proto [22:58:33]json parsed OK: [22:58:33]protocol is kg_v1.0 [22:58:33]action value=close_receipt [22:58:33]process_action close_receipt [22:58:33]cmd_close_receipt [22:58:33]MH_GetDate [22:58:33]Write to MH i2c: F0 00 00 7A 1C 85 [22:58:33]Write i2c OK [22:58:33]MH_I2C_Read... [22:58:33]Read from MH i2c: F0 [22:58:33]MH_I2C_Read... [22:58:33]Read from MH i2c: F0 09 00 [22:58:33]MH_I2C_Read... [22:58:33]Read from MH i2c: F0 09 00 7A 1C 00 1A 8B 15 67 82 C9 CF 66 2F [22:58:33]GetLastDocTimeStamp 1729464570 [22:58:33]current date 1729465114 [22:58:33]FM_GetShiftState [22:58:33]SAM_PROTO_GetShiftState [22:58:33]wFMCommunicate request_size=4 [22:58:33]MH_SAM_APDU [22:58:33]CAPDU: 80 13 01 00 [22:58:33]Write to MH i2c: E2 08 00 7B 1C 80 13 01 00 00 00 00 00 14 [22:58:33]Write i2c OK [22:58:33]MH_I2C_Read... [22:58:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:58:33]Read from MH i2c: E2 [22:58:33]MH_I2C_Read... [22:58:33]Read from MH i2c: E2 0E 00 [22:58:33]MH_I2C_Read... [22:58:33]Read from MH i2c: E2 0E 00 7B 1C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 2E [22:58:33]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [22:58:33]wFMCommunicate OK [22:58:33]SAM_PROTO_GetShiftState done [22:58:33]FM_GetShiftState done [22:58:33]opened in 1729383750 [22:58:33]opened+sec_in_day 1729470150 [22:58:33]quantity*price = 137566 [22:58:33]sum+1 = 137568 [22:58:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.67 ИТОГО: 1375.00 Внесено: 1375.00 СДАЧА: 0.00 НСП 1% : 12.17 НДС 12% : 146.09 Наличными: 1375.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 565 20.10.2024 22:58 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227717 ФПД: 73829808320807 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T225834&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227717&fm=73829808320807&tin=02508201610067®Number=0000000000091685&sum=137500 [22:58:34]StoreToDocumentArchive [22:58:34]shift 533 fd 227717 [22:58:34]save to /storage/0533/doc_00227717 [22:58:34]save last doc name /storage/0533/doc_00227717 to /storage/kkm_last_doc_name [22:58:34]save OK [22:58:34]Clear old archive folders... [22:58:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:58:34]tlvbuf is 00C45C10 [22:58:34]SAM_PROTO_ClearQueue [22:58:34]wFMCommunicate request_size=4 [22:58:34]MH_SAM_APDU [22:58:34]CAPDU: 80 09 00 00 [22:58:34]Write to MH i2c: E2 08 00 88 1C 80 09 00 00 00 00 00 00 16 [22:58:34]Write i2c OK [22:58:34]MH_I2C_Read... [22:58:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:58:34]Read from MH i2c: E2 [22:58:34]MH_I2C_Read... [22:58:34]Read from MH i2c: E2 03 00 [22:58:34]MH_I2C_Read... [22:58:34]Read from MH i2c: E2 03 00 88 1C 00 90 00 18 [22:58:34]RAPDU: 90 00 [22:58:34]wFMCommunicate OK [22:58:34]SAM_PROTO_ClearQueue done [22:58:34]KKMCreateOFDPacket [22:58:34]OFDProtocolAddRootSTLVToBuf [22:58:34]FM_MakeSignedData [22:58:34]FM_MakeSignedData [22:58:34]SAM_PROTO_SignData [22:58:34]wFMCommunicate request_size=4 [22:58:34]MH_SAM_APDU [22:58:34]CAPDU: 80 0D 01 02 [22:58:34]Write to MH i2c: E2 08 00 89 1C 80 0D 01 02 00 00 00 00 1E [22:58:34]Write i2c OK [22:58:34]MH_I2C_Read... [22:58:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:58:34]Read from MH i2c: E2 [22:58:34]MH_I2C_Read... [22:58:34]Read from MH i2c: E2 03 00 [22:58:34]MH_I2C_Read... [22:58:34]Read from MH i2c: E2 03 00 89 1C 00 90 00 19 [22:58:34]RAPDU: 90 00 [22:58:34]wFMCommunicate OK [22:58:34]wFMCommunicate request_size=255 [22:58:34]MH_SAM_APDU [22:58: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 6C 48 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5F 19 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 19 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 39 00 00 00 00 07 04 06 00 1C 19 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 02 00 00 F4 03 04 00 1A 8B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 85 79 03 00 35 04 06 00 43 [22:58:34]Write to MH i2c: E2 02 01 8A 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 6C 48 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5F 19 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 19 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 39 00 00 00 00 07 04 06 00 1C 19 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 02 00 00 F4 03 04 00 1A 8B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 85 79 03 00 35 04 06 00 43 00 00 AA [22:58:34]Write i2c OK [22:58:34]MH_I2C_Read... [22:58:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:58:34]Read from MH i2c: E2 [22:58:34]MH_I2C_Read... [22:58:34]Read from MH i2c: E2 03 00 [22:58:34]MH_I2C_Read... [22:58:34]Read from MH i2c: E2 03 00 8A 1C 00 90 00 1A [22:58:34]RAPDU: 90 00 [22:58:34]wFMCommunicate OK [22:58:34]wFMCommunicate request_size=10 [22:58:34]MH_SAM_APDU [22:58:34]CAPDU: 80 0D 02 02 05 25 D7 7F B1 27 [22:58:34]Write to MH i2c: E2 0D 00 8B 1C 80 0D 02 02 05 00 25 D7 7F B1 27 00 00 7E [22:58:34]Write i2c OK [22:58:34]MH_I2C_Read... [22:58:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:58:34]Read from MH i2c: E2 [22:58:34]MH_I2C_Read... [22:58:34]Read from MH i2c: E2 03 00 [22:58:34]MH_I2C_Read... [22:58:34]Read from MH i2c: E2 03 00 8B 1C 00 90 00 1B [22:58:34]RAPDU: 90 00 [22:58:34]wFMCommunicate OK [22:58:34]wFMCommunicate request_size=4 [22:58:34]MH_SAM_APDU [22:58:34]CAPDU: 80 0D 03 02 [22:58:34]Write to MH i2c: E2 08 00 8C 1C 80 0D 03 02 00 00 00 00 23 [22:58:34]Write i2c OK [22:58:34]MH_I2C_Read... [22:58:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:58:34]Read from MH i2c: E2 [22:58:34]MH_I2C_Read... [22:58:34]Read from MH i2c: E2 0B 00 [22:58:34]MH_I2C_Read... [22:58:34]Read from MH i2c: E2 0B 00 8C 1C 00 93 55 B9 B0 84 0C 68 D6 90 00 43 [22:58:34]RAPDU: 93 55 B9 B0 84 0C 68 D6 90 00 [22:58:34]wFMCommunicate OK [22:58:34]SAM_PROTO_SignData done [22:58:34]FM_MakeSignedData done [22:58:34]CreateOFDProtocolMessage [22:58:34]wFMCommunicate request_size=4 [22:58:34]MH_SAM_APDU [22:58:34]CAPDU: 80 11 00 00 [22:58:34]Write to MH i2c: E2 08 00 8D 1C 80 11 00 00 00 00 00 00 23 [22:58:34]Write i2c OK [22:58:34]MH_I2C_Read... [22:58:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:58:35]Read from MH i2c: E2 [22:58:35]MH_I2C_Read... [22:58:35]Read from MH i2c: E2 17 00 [22:58:35]MH_I2C_Read... [22:58:35]Read from MH i2c: E2 17 00 8D 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 7A [22:58:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [22:58:35]wFMCommunicate OK [22:58:35]CreateOFDProtocolMessage done [22:58:35]OFDSenderStorePacket 227717 [22:58:35]StoreOFDPacket docnum=227717 [22:58:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 F5 24 07 01 AE EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6C 48 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5F 19 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 19 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 39 00 00 00 00 07 04 06 00 1C 19 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 02 00 00 F4 03 04 00 1A 8B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 85 79 03 00 35 04 06 00 43 25 D7 7F B1 27 93 55 B9 B0 84 0C 68 D6 [22:58:35]CheckFolder [22:58:35]dirname=/storage/ofd_packets [22:58:35]CheckFolder done [22:58:35]ProducePacketName [22:58:35]name=ofd_packets/00227717 [22:58:35]NVStorageSaveData ofd_packets/00227717 [22:58:35]File name is /storage/ofd_packets/00227717 [22:58:35]Write 301 bytes [22:58:35]NVStorageSaveData done [22:58:35]OFDSenderStorePacket done [22:58:35]KKMCreateOFDPacket done [22:58:35]NVStorageSaveData kkm_last_timestamp [22:58:35]File name is /storage/kkm_last_timestamp [22:58:35]Write 4 bytes [22:58:35]NVStorageSaveData done [22:58:35]ExternCall_PrintAddStr [22:58:35]wPrintStart [22:58:35]Write to MH i2c: 01 00 00 8E 1C AA [22:58:35]Write i2c OK [22:58:35]MH_I2C_Read... [22:58:35]Read from MH i2c: 01 [22:58:35]MH_I2C_Read... [22:58:35]Read from MH i2c: 01 07 00 [22:58:35]MH_I2C_Read... [22:58:35]Read from MH i2c: 01 07 00 8E 1C 00 00 00 00 00 FF 0F BF [22:58:35]RasterBufferAndPrint [22:58:35]line Счет N : (1)1963388 [22:58:35]line ИНН: 02508201610067 [22:58:35]line Контрольно-Кассовый Чек [22:58:35]line ПРОДАЖА [22:58:35]line ТРК (МРК, ГНК) : 44 [22:58:35]line Товар: 2710124500 [22:58:35]line Аи-95-К-5 [22:58:35]line 18.540 * 74.20 [22:58:35]line = 1375.67 [22:58:35]line НДС 12% НСП 1% [22:58:35]line > о реализуемом товаре [22:58:35]line ОКРУГЛЕНИЕ: -0.67 [22:58:35]line ИТОГО: 1375.00 [22:58:35]line Внесено: 1375.00 [22:58:35]line СДАЧА: 0.00 [22:58:35]line НСП 1% : 12.17 [22:58:35]line НДС 12% : 146.09 [22:58:35]line Наличными: 1375.00 [22:58:35]line Безнал.: 0.00 [22:58:35]line Место: АЗС № 133 "Партнер Нефть" [22:58:35]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [22:58:35]line СНО: Общий режим [22:58:35]line Чек 565 20.10.2024 22:58 [22:58:35]line Смена: 533 ФФД: 1.0 [22:58:35]line ЗНМ: 0300000091 [22:58:35]line РНМ: 0000000000091685 [22:58:35]line Версия ККМ: 001 [22:58:35]line ФМ: 0000000000871839 [22:58:35]line ФД: 227717 [22:58:35]line ФПД: 73829808320807 [22:58:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T225834&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227717&fm=73829808320807&tin=02508201610067®Number=0000000000091685&sum=137500 [22:58:35]written 0, free lines is 4095 [22:58:35]OFD Sender: Processing packet 227717 [packets to send 38, broken 37] [22:58:35]ProducePacketName [22:58:35]name=ofd_packets/00227717 [22:58:35]OFD Sender: To server: pG, [22:58:35]CommunicateWithHost lk.salyk.kg:30040 [22:58:35]ConnectInit lk.salyk.kg [22:58:35]Connected sock=9 [22:58: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 33 39 0F 01 00 00 F5 24 07 01 AE EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6C 48 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5F 19 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 19 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 39 00 00 00 00 07 04 06 00 1C 19 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 02 00 00 F4 03 04 00 1A 8B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 85 79 03 00 35 04 06 00 43 25 D7 7F B1 27 93 55 B9 B0 84 0C 68 D6 [22:58: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 33 39 4F 00 00 00 87 87 47 00 D4 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 85 79 03 00 F4 03 04 00 18 36 15 67 B6 04 01 00 00 D9 53 13 EC A3 B3 C9 09 [22:58:35]CommunicateWithHost err = 0 [22:58:35]CheckOFDResponse [22:58:35]1017 (14) - 77093643461234 [22:58:35]1041 (16) - 0000000000871839 [22:58:35]1040 (4) - 227717 [22:58:35]1012 (4) - 20.10.2024 16:55 [22:58:35]1206 (1) - 0 [22:58:35]OFD Sender: Remove packet 227717 [22:58:35]ProducePacketName [22:58:35]name=ofd_packets/00227717 [22:58:35]NVStorageDeleteData [22:58:35]Write to MH i2c: 01 00 00 B8 1C D4 [22:58:35]Write i2c OK [22:58:35]MH_I2C_Read... [22:58:35]Read from MH i2c: 01 [22:58:35]MH_I2C_Read... [22:58:35]Read from MH i2c: 01 07 00 [22:58:35]MH_I2C_Read... [22:58:35]Read from MH i2c: 01 07 00 B8 1C 00 00 00 00 00 A5 0C 8C [22:58:35]RasterBufferAndPrint [22:58:35]line [22:58:35]line [22:58:35]line [22:58:35]line [22:58:35]line [22:58:35]written 0, free lines is 3242 [22:58:35]MH_Cut [22:58:35]Write to MH i2c: D1 01 00 BF 1C 01 AD [22:58:35]Write i2c OK [22:58:35]MH_I2C_Read... [22:58:35]Read from MH i2c: D1 [22:58:35]MH_I2C_Read... [22:58:35]Read from MH i2c: D1 01 00 [22:58:35]MH_I2C_Read... [22:58:35]Read from MH i2c: D1 01 00 BF 1C 00 AC [22:58:35]Write to MH i2c: 01 00 00 C0 1C DC [22:58:35]Write i2c OK [22:58:35]MH_I2C_Read... [22:58:36]OFD Sender: No OFD packet to send [22:58:36]*** Cut start [22:58:36]*** Partial cut [22:58:36]*** CUTSNS_PIN = 1 [22:58:36]*** CUTSNS_PIN = 0 [22:58:37]*** Brake cut motor [22:58:37]Read from MH i2c: 01 [22:58:37]MH_I2C_Read... [22:58:37]*** Stop cut motor [22:58:37]*** Cut end [22:58:37]Read from MH i2c: 01 07 00 [22:58:37]MH_I2C_Read... [22:58:37]Read from MH i2c: 01 07 00 C0 1C 00 00 00 00 00 FF 0F F1 [22:58:37]process_action close_receipt done [22:58:37]requested_data is exist [22:58:37]produce_requested_data [22:58:37]requested_item fm.sn is exist - process it [22:58:37]wFMCommunicate request_size=4 [22:58:37]MH_SAM_APDU [22:58:37]CAPDU: 80 11 00 00 [22:58:37]Write to MH i2c: E2 08 00 C1 1C 80 11 00 00 00 00 00 00 57 [22:58:37]Write i2c OK [22:58:37]MH_I2C_Read... [22:58:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:58:37]Read from MH i2c: E2 [22:58:37]MH_I2C_Read... [22:58:37]Read from MH i2c: E2 17 00 [22:58:37]MH_I2C_Read... [22:58:37]Read from MH i2c: E2 17 00 C1 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 AE [22:58:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [22:58:37]wFMCommunicate OK [22:58:37]requested_item fd.num is exist - process it [22:58:37]SAM_PROTO_GetFieldsCounters [22:58:37]wFMCommunicate request_size=4 [22:58:37]MH_SAM_APDU [22:58:37]CAPDU: 80 13 00 00 [22:58:37]Write to MH i2c: E2 08 00 C2 1C 80 13 00 00 00 00 00 00 5A [22:58:37]Write i2c OK [22:58:37]MH_I2C_Read... [22:58:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:58:37]Read from MH i2c: E2 [22:58:37]MH_I2C_Read... [22:58:37]Read from MH i2c: E2 62 00 [22:58:37]MH_I2C_Read... [22:58:37]Read from MH i2c: E2 62 00 C2 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 85 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 35 02 00 00 5E 04 04 00 35 02 00 00 57 04 04 00 36 02 00 00 19 04 04 00 00 00 00 00 90 00 40 [22:58: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 85 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 35 02 00 00 5E 04 04 00 35 02 00 00 57 04 04 00 36 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:58:37]wFMCommunicate OK [22:58:37]SAM_PROTO_GetFieldsCounters done [22:58:37]requested_item shift.num is exist - process it [22:58:37]requested_item shift.opened is exist - process it [22:58:37]req_shift_opened [22:58:37]FM_GetShiftState [22:58:37]SAM_PROTO_GetShiftState [22:58:37]wFMCommunicate request_size=4 [22:58:37]MH_SAM_APDU [22:58:37]CAPDU: 80 13 01 00 [22:58:37]Write to MH i2c: E2 08 00 C3 1C 80 13 01 00 00 00 00 00 5C [22:58:37]Write i2c OK [22:58:37]MH_I2C_Read... [22:58:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:58:37]Read from MH i2c: E2 [22:58:37]MH_I2C_Read... [22:58:37]Read from MH i2c: E2 0E 00 [22:58:37]MH_I2C_Read... [22:58:37]Read from MH i2c: E2 0E 00 C3 1C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 76 [22:58:37]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [22:58:37]wFMCommunicate OK [22:58:37]SAM_PROTO_GetShiftState done [22:58:37]FM_GetShiftState done [22:58:37]req_shift_opened done [22:58:37]requested_item shift.open_date is exist - process it [22:58:37]req_shift_open_date [22:58:37]req_shift_open_date done [22:58:37]produce_requested_data done [22:58:37]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227717,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [22:58:37]process_action_free close_receipt [22:58:37]json_value_free [22:58:37]json_value_free done [22:58:37]process_json_proto returns [22:58:37]Send response to host [22:58:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227717,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [22:58:37]free response buf [22:58:37]execute_script done [22:58:37]execute_script returns [22:58:37]free content buf [22:58:37]Sock 7.Close socket [22:58:37]Sock 7.Thread stoped [22:58:41]OFD Sender: No OFD packet to send [22:58:46]OFD Sender: No OFD packet to send [22:58:51]OFD Sender: No OFD packet to send [22:58:56]OFD Sender: No OFD packet to send [22:59:01]OFD Sender: No OFD packet to send [22:59:06]OFD Sender: No OFD packet to send [22:59:11]OFD Sender: No OFD packet to send [22:59:16]OFD Sender: No OFD packet to send [22:59:21]OFD Sender: No OFD packet to send [22:59:26]OFD Sender: No OFD packet to send [22:59:31]OFD Sender: No OFD packet to send [22:59:36]OFD Sender: No OFD packet to send [22:59:41]OFD Sender: No OFD packet to send [22:59:46]OFD Sender: No OFD packet to send [22:59:51]OFD Sender: No OFD packet to send [22:59:56]OFD Sender: No OFD packet to send [23:00:01]OFD Sender: No OFD packet to send [23:00:06]OFD Sender: No OFD packet to send [23:00:11]OFD Sender: No OFD packet to send [23:00:16]OFD Sender: No OFD packet to send [23:00:21]OFD Sender: No OFD packet to send [23:00:26]OFD Sender: No OFD packet to send [23:00:31]OFD Sender: No OFD packet to send [23:00:36]OFD Sender: No OFD packet to send [23:00:41]OFD Sender: No OFD packet to send [23:00:46]OFD Sender: No OFD packet to send [23:00:51]OFD Sender: No OFD packet to send [23:00:56]OFD Sender: No OFD packet to send [23:01:01]OFD Sender: No OFD packet to send [23:01:06]OFD Sender: No OFD packet to send [23:01:11]OFD Sender: No OFD packet to send [23:01:16]OFD Sender: No OFD packet to send [23:01:21]OFD Sender: No OFD packet to send [23:01:26]OFD Sender: No OFD packet to send [23:01:31]OFD Sender: No OFD packet to send [23:01:36]OFD Sender: No OFD packet to send [23:01:41]OFD Sender: No OFD packet to send [23:01:46]OFD Sender: No OFD packet to send [23:01:51]OFD Sender: No OFD packet to send [23:01:56]OFD Sender: No OFD packet to send [23:02:01]OFD Sender: No OFD packet to send [23:02:06]OFD Sender: No OFD packet to send [23:02:11]OFD Sender: No OFD packet to send [23:02:13]accept exits with 10 [23:02:13]New connection [23:02:13]New thread 3066809700 created [23:02:13]Thread 3066666340 joined [23:02:13]Waiting for new connection... [23:02:13] Sock 10.Parse request [23:02:13]Sock 10.Check first char [23:02:13]Sock 10.First char is OK [23:02:13]request: POST /json_proto HTTP/1.0 [23:02:13]Method: POST [23:02:13]URL: /json_proto [23:02:13]Method is POST - this is cgi request [23:02:13]url: /json_proto [23:02:13]query_string will be loaded in cgi processing [23:02:13]execute_cgi json_proto POST (null) [23:02:13]execute_cgi path=json_proto method=POST [23:02:13]POST find Content-Length [23:02:13]Host: 172.17.44.195:8080 [23:02:13]Content-Length: 660 [23:02:13]Content-Type: application/json [23:02:13] [23:02:13]POST finish read [23:02:13]Found Content-Length = 660 [23:02:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963389", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 13.160, "sum" : 900.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:02:13]execute_script... [23:02:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963389", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 13.160, "sum" : 900.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:02:13]POST & json_proto [23:02:13]process_json_proto [23:02:13]json parsed OK: [23:02:13]protocol is kg_v1.0 [23:02:13]action value=close_receipt [23:02:13]process_action close_receipt [23:02:13]cmd_close_receipt [23:02:13]MH_GetDate [23:02:13]Write to MH i2c: F0 00 00 C4 1C CF [23:02:13]Write i2c OK [23:02:13]MH_I2C_Read... [23:02:13]Read from MH i2c: F0 [23:02:13]MH_I2C_Read... [23:02:13]Read from MH i2c: F0 09 00 [23:02:13]MH_I2C_Read... [23:02:13]Read from MH i2c: F0 09 00 C4 1C 00 F7 8B 15 67 82 C9 CF 66 56 [23:02:13]GetLastDocTimeStamp 1729465114 [23:02:13]current date 1729465335 [23:02:13]FM_GetShiftState [23:02:13]SAM_PROTO_GetShiftState [23:02:13]wFMCommunicate request_size=4 [23:02:13]MH_SAM_APDU [23:02:13]CAPDU: 80 13 01 00 [23:02:13]Write to MH i2c: E2 08 00 C5 1C 80 13 01 00 00 00 00 00 5E [23:02:13]Write i2c OK [23:02:13]MH_I2C_Read... [23:02:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:02:13]Read from MH i2c: E2 [23:02:13]MH_I2C_Read... [23:02:13]Read from MH i2c: E2 0E 00 [23:02:13]MH_I2C_Read... [23:02:13]Read from MH i2c: E2 0E 00 C5 1C 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 78 [23:02:13]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [23:02:13]wFMCommunicate OK [23:02:13]SAM_PROTO_GetShiftState done [23:02:13]FM_GetShiftState done [23:02:13]opened in 1729383750 [23:02:13]opened+sec_in_day 1729470150 [23:02:13]quantity*price = 90014 [23:02:13]sum+1 = 90015 [23:02:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.59 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 566 20.10.2024 23:02 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227718 ФПД: 272509734867078 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T230215&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227718&fm=272509734867078&tin=02508201610067®Number=0000000000091685&sum=90000 [23:02:14]StoreToDocumentArchive [23:02:14]shift 533 fd 227718 [23:02:14]save to /storage/0533/doc_00227718 [23:02:14]save last doc name /storage/0533/doc_00227718 to /storage/kkm_last_doc_name [23:02:14]save OK [23:02:14]Clear old archive folders... [23:02:14]ProcessDocumentItem done err = 0, tmpTLVsize=244 [23:02:14]tlvbuf is B6F35C10 [23:02:14]SAM_PROTO_ClearQueue [23:02:14]wFMCommunicate request_size=4 [23:02:14]MH_SAM_APDU [23:02:14]CAPDU: 80 09 00 00 [23:02:14]Write to MH i2c: E2 08 00 D2 1C 80 09 00 00 00 00 00 00 60 [23:02:14]Write i2c OK [23:02:14]MH_I2C_Read... [23:02:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:02:14]Read from MH i2c: E2 [23:02:14]MH_I2C_Read... [23:02:14]Read from MH i2c: E2 03 00 [23:02:14]MH_I2C_Read... [23:02:14]Read from MH i2c: E2 03 00 D2 1C 00 90 00 62 [23:02:14]RAPDU: 90 00 [23:02:14]wFMCommunicate OK [23:02:14]SAM_PROTO_ClearQueue done [23:02:14]KKMCreateOFDPacket [23:02:14]OFDProtocolAddRootSTLVToBuf [23:02:14]FM_MakeSignedData [23:02:14]FM_MakeSignedData [23:02:14]SAM_PROTO_SignData [23:02:14]wFMCommunicate request_size=4 [23:02:14]MH_SAM_APDU [23:02:14]CAPDU: 80 0D 01 02 [23:02:14]Write to MH i2c: E2 08 00 D3 1C 80 0D 01 02 00 00 00 00 68 [23:02:14]Write i2c OK [23:02:14]MH_I2C_Read... [23:02:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:02:14]Read from MH i2c: E2 [23:02:14]MH_I2C_Read... [23:02:14]Read from MH i2c: E2 03 00 [23:02:14]MH_I2C_Read... [23:02:14]Read from MH i2c: E2 03 00 D3 1C 00 90 00 63 [23:02:14]RAPDU: 90 00 [23:02:14]wFMCommunicate OK [23:02:14]wFMCommunicate request_size=253 [23:02:14]MH_SAM_APDU [23:02:14]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 68 33 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9E 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 02 00 00 F4 03 04 00 F7 8B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 86 79 03 00 35 04 06 00 F7 D8 9D F1 D0 86 [23:02:14]Write to MH i2c: E2 00 01 D4 1C 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 68 33 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9E 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 02 00 00 F4 03 04 00 F7 8B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 86 79 03 00 35 04 06 00 F7 D8 9D F1 D0 86 00 00 11 [23:02:14]Write i2c OK [23:02:14]MH_I2C_Read... [23:02:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:02:15]Read from MH i2c: E2 [23:02:15]MH_I2C_Read... [23:02:15]Read from MH i2c: E2 03 00 [23:02:15]MH_I2C_Read... [23:02:15]Read from MH i2c: E2 03 00 D4 1C 00 90 00 64 [23:02:15]RAPDU: 90 00 [23:02:15]wFMCommunicate OK [23:02:15]wFMCommunicate request_size=4 [23:02:15]MH_SAM_APDU [23:02:15]CAPDU: 80 0D 03 02 [23:02:15]Write to MH i2c: E2 08 00 D5 1C 80 0D 03 02 00 00 00 00 6C [23:02:15]Write i2c OK [23:02:15]MH_I2C_Read... [23:02:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:02:15]Read from MH i2c: E2 [23:02:15]MH_I2C_Read... [23:02:15]Read from MH i2c: E2 0B 00 [23:02:15]MH_I2C_Read... [23:02:15]Read from MH i2c: E2 0B 00 D5 1C 00 AF 60 9B B1 C1 05 52 85 90 00 65 [23:02:15]RAPDU: AF 60 9B B1 C1 05 52 85 90 00 [23:02:15]wFMCommunicate OK [23:02:15]SAM_PROTO_SignData done [23:02:15]FM_MakeSignedData done [23:02:15]CreateOFDProtocolMessage [23:02:15]wFMCommunicate request_size=4 [23:02:15]MH_SAM_APDU [23:02:15]CAPDU: 80 11 00 00 [23:02:15]Write to MH i2c: E2 08 00 D6 1C 80 11 00 00 00 00 00 00 6C [23:02:15]Write i2c OK [23:02:15]MH_I2C_Read... [23:02:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:02:15]Read from MH i2c: E2 [23:02:15]MH_I2C_Read... [23:02:15]Read from MH i2c: E2 17 00 [23:02:15]MH_I2C_Read... [23:02:15]Read from MH i2c: E2 17 00 D6 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C3 [23:02:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [23:02:15]wFMCommunicate OK [23:02:15]CreateOFDProtocolMessage done [23:02:15]OFDSenderStorePacket 227718 [23:02:15]StoreOFDPacket docnum=227718 [23:02:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 DF 11 00 01 F2 67 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 68 33 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9E 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 02 00 00 F4 03 04 00 F7 8B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 86 79 03 00 35 04 06 00 F7 D8 9D F1 D0 86 AF 60 9B B1 C1 05 52 85 [23:02:15]CheckFolder [23:02:15]dirname=/storage/ofd_packets [23:02:15]CheckFolder done [23:02:15]ProducePacketName [23:02:15]name=ofd_packets/00227718 [23:02:15]NVStorageSaveData ofd_packets/00227718 [23:02:15]File name is /storage/ofd_packets/00227718 [23:02:15]Write 294 bytes [23:02:15]NVStorageSaveData done [23:02:15]OFDSenderStorePacket done [23:02:15]KKMCreateOFDPacket done [23:02:15]NVStorageSaveData kkm_last_timestamp [23:02:15]File name is /storage/kkm_last_timestamp [23:02:15]Write 4 bytes [23:02:15]NVStorageSaveData done [23:02:15]ExternCall_PrintAddStr [23:02:15]wPrintStart [23:02:15]Write to MH i2c: 01 00 00 D7 1C F3 [23:02:15]Write i2c OK [23:02:15]MH_I2C_Read... [23:02:15]Read from MH i2c: 01 [23:02:15]MH_I2C_Read... [23:02:15]Read from MH i2c: 01 07 00 [23:02:15]MH_I2C_Read... [23:02:15]Read from MH i2c: 01 07 00 D7 1C 00 00 00 00 00 FF 0F 08 [23:02:15]RasterBufferAndPrint [23:02:15]line Счет N : (1)1963389 [23:02:15]line ИНН: 02508201610067 [23:02:15]line Контрольно-Кассовый Чек [23:02:15]line ПРОДАЖА [23:02:15]line ТРК (МРК, ГНК) : 42 [23:02:15]line Товар: 2710124130 [23:02:15]line SU-92 [23:02:15]line 13.160 * 68.40 [23:02:15]line = 900.14 [23:02:15]line НДС 12% НСП 1% [23:02:15]line > о реализуемом товаре [23:02:15]line ОКРУГЛЕНИЕ: -0.14 [23:02:15]line ИТОГО: 900.00 [23:02:15]line Внесено: 900.00 [23:02:15]line СДАЧА: 0.00 [23:02:15]line НСП 1% : 7.97 [23:02:15]line НДС 12% : 95.59 [23:02:15]line Наличными: 900.00 [23:02:15]line Безнал.: 0.00 [23:02:15]line Место: АЗС № 133 "Партнер Нефть" [23:02:15]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [23:02:15]line СНО: Общий режим [23:02:15]line Чек 566 20.10.2024 23:02 [23:02:15]line Смена: 533 ФФД: 1.0 [23:02:15]line ЗНМ: 0300000091 [23:02:15]line РНМ: 0000000000091685 [23:02:15]line Версия ККМ: 001 [23:02:15]line ФМ: 0000000000871839 [23:02:15]line ФД: 227718 [23:02:15]line ФПД: 272509734867078 [23:02:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T230215&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227718&fm=272509734867078&tin=02508201610067®Number=0000000000091685&sum=90000 [23:02:15]OFD Sender: Processing packet 227718 [packets to send 38, broken 37] [23:02:15]ProducePacketName [23:02:15]name=ofd_packets/00227718 [23:02:15]OFD Sender: To server: pG, [23:02:15]CommunicateWithHost lk.salyk.kg:30040 [23:02:15]ConnectInit lk.salyk.kg [23:02:15]written 0, free lines is 4095 [23:02:15]Connected sock=9 [23:02:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 DF 11 00 01 F2 67 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 68 33 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9E 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 02 00 00 F4 03 04 00 F7 8B 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 86 79 03 00 35 04 06 00 F7 D8 9D F1 D0 86 AF 60 9B B1 C1 05 52 85 [23:02:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 A6 5F 47 00 BB 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 86 79 03 00 F4 03 04 00 F4 36 15 67 B6 04 01 00 00 7F 84 E2 3C 91 2D 83 C8 [23:02:15]CommunicateWithHost err = 0 [23:02:15]CheckOFDResponse [23:02:15]1017 (14) - 77093643461234 [23:02:15]1041 (16) - 0000000000871839 [23:02:15]1040 (4) - 227718 [23:02:15]1012 (4) - 20.10.2024 16:59 [23:02:15]1206 (1) - 0 [23:02:15]OFD Sender: Remove packet 227718 [23:02:15]ProducePacketName [23:02:15]name=ofd_packets/00227718 [23:02:15]NVStorageDeleteData [23:02:15]Write to MH i2c: 01 00 00 01 1D 1E [23:02:15]Write i2c OK [23:02:15]MH_I2C_Read... [23:02:15]Read from MH i2c: 01 [23:02:15]MH_I2C_Read... [23:02:15]Read from MH i2c: 01 07 00 [23:02:15]MH_I2C_Read... [23:02:15]Read from MH i2c: 01 07 00 01 1D 00 00 00 00 00 AA 0C DB [23:02:15]RasterBufferAndPrint [23:02:15]line [23:02:15]line [23:02:15]line [23:02:15]line [23:02:15]line [23:02:15]written 0, free lines is 3245 [23:02:16]MH_Cut [23:02:16]Write to MH i2c: D1 01 00 08 1D 01 F7 [23:02:16]Write i2c OK [23:02:16]MH_I2C_Read... [23:02:16]Read from MH i2c: D1 [23:02:16]MH_I2C_Read... [23:02:16]Read from MH i2c: D1 01 00 [23:02:16]MH_I2C_Read... [23:02:16]Read from MH i2c: D1 01 00 08 1D 00 F6 [23:02:16]Write to MH i2c: 01 00 00 09 1D 26 [23:02:16]Write i2c OK [23:02:16]MH_I2C_Read... [23:02:16]OFD Sender: No OFD packet to send [23:02:16]*** Cut start [23:02:16]*** Partial cut [23:02:16]*** CUTSNS_PIN = 1 [23:02:16]*** CUTSNS_PIN = 0 [23:02:17]*** Brake cut motor [23:02:17]Read from MH i2c: 01 [23:02:17]MH_I2C_Read... [23:02:17]*** Stop cut motor [23:02:17]*** Cut end [23:02:17]Read from MH i2c: 01 07 00 [23:02:17]MH_I2C_Read... [23:02:17]Read from MH i2c: 01 07 00 09 1D 00 00 00 00 00 FF 0F 3B [23:02:17]process_action close_receipt done [23:02:17]requested_data is exist [23:02:17]produce_requested_data [23:02:17]requested_item fm.sn is exist - process it [23:02:17]wFMCommunicate request_size=4 [23:02:17]MH_SAM_APDU [23:02:17]CAPDU: 80 11 00 00 [23:02:17]Write to MH i2c: E2 08 00 0A 1D 80 11 00 00 00 00 00 00 A1 [23:02:17]Write i2c OK [23:02:17]MH_I2C_Read... [23:02:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:02:17]Read from MH i2c: E2 [23:02:17]MH_I2C_Read... [23:02:17]Read from MH i2c: E2 17 00 [23:02:17]MH_I2C_Read... [23:02:17]Read from MH i2c: E2 17 00 0A 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F8 [23:02:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [23:02:17]wFMCommunicate OK [23:02:17]requested_item fd.num is exist - process it [23:02:17]SAM_PROTO_GetFieldsCounters [23:02:17]wFMCommunicate request_size=4 [23:02:17]MH_SAM_APDU [23:02:17]CAPDU: 80 13 00 00 [23:02:17]Write to MH i2c: E2 08 00 0B 1D 80 13 00 00 00 00 00 00 A4 [23:02:17]Write i2c OK [23:02:17]MH_I2C_Read... [23:02:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:02:17]Read from MH i2c: E2 [23:02:17]MH_I2C_Read... [23:02:17]Read from MH i2c: E2 62 00 [23:02:17]MH_I2C_Read... [23:02:17]Read from MH i2c: E2 62 00 0B 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 86 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 36 02 00 00 5E 04 04 00 36 02 00 00 57 04 04 00 37 02 00 00 19 04 04 00 00 00 00 00 90 00 8E [23:02:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 86 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 36 02 00 00 5E 04 04 00 36 02 00 00 57 04 04 00 37 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:02:17]wFMCommunicate OK [23:02:17]SAM_PROTO_GetFieldsCounters done [23:02:17]requested_item shift.num is exist - process it [23:02:17]requested_item shift.opened is exist - process it [23:02:17]req_shift_opened [23:02:17]FM_GetShiftState [23:02:17]SAM_PROTO_GetShiftState [23:02:17]wFMCommunicate request_size=4 [23:02:17]MH_SAM_APDU [23:02:17]CAPDU: 80 13 01 00 [23:02:17]Write to MH i2c: E2 08 00 0C 1D 80 13 01 00 00 00 00 00 A6 [23:02:17]Write i2c OK [23:02:17]MH_I2C_Read... [23:02:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:02:17]Read from MH i2c: E2 [23:02:17]MH_I2C_Read... [23:02:17]Read from MH i2c: E2 0E 00 [23:02:17]MH_I2C_Read... [23:02:17]Read from MH i2c: E2 0E 00 0C 1D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 C0 [23:02:17]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [23:02:17]wFMCommunicate OK [23:02:17]SAM_PROTO_GetShiftState done [23:02:17]FM_GetShiftState done [23:02:17]req_shift_opened done [23:02:17]requested_item shift.open_date is exist - process it [23:02:17]req_shift_open_date [23:02:17]req_shift_open_date done [23:02:17]produce_requested_data done [23:02:17]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227718,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [23:02:17]process_action_free close_receipt [23:02:17]json_value_free [23:02:17]json_value_free done [23:02:17]process_json_proto returns [23:02:17]Send response to host [23:02:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227718,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [23:02:17]free response buf [23:02:17]execute_script done [23:02:17]execute_script returns [23:02:17]free content buf [23:02:17]Sock 10.Close socket [23:02:17]Sock 10.Thread stoped [23:02:21]OFD Sender: No OFD packet to send [23:02:26]OFD Sender: No OFD packet to send [23:02:31]OFD Sender: No OFD packet to send [23:02:36]OFD Sender: No OFD packet to send [23:02:41]OFD Sender: No OFD packet to send [23:02:46]OFD Sender: No OFD packet to send [23:02:51]OFD Sender: No OFD packet to send [23:02:56]OFD Sender: No OFD packet to send [23:03:01]OFD Sender: No OFD packet to send [23:03:06]OFD Sender: No OFD packet to send [23:03:11]OFD Sender: No OFD packet to send [23:03:16]OFD Sender: No OFD packet to send [23:03:21]OFD Sender: No OFD packet to send [23:03:26]OFD Sender: No OFD packet to send [23:03:31]OFD Sender: No OFD packet to send [23:03:36]OFD Sender: No OFD packet to send [23:03:41]OFD Sender: No OFD packet to send [23:03:46]OFD Sender: No OFD packet to send [23:03:51]OFD Sender: No OFD packet to send [23:03:56]OFD Sender: No OFD packet to send [23:04:01]OFD Sender: No OFD packet to send [23:04:06]OFD Sender: No OFD packet to send [23:04:11]OFD Sender: No OFD packet to send [23:04:16]OFD Sender: No OFD packet to send [23:04:21]OFD Sender: No OFD packet to send [23:04:26]OFD Sender: No OFD packet to send [23:04:31]OFD Sender: No OFD packet to send [23:04:36]OFD Sender: No OFD packet to send [23:04:41]OFD Sender: No OFD packet to send [23:04:46]OFD Sender: No OFD packet to send [23:04:51]OFD Sender: No OFD packet to send [23:04:56]OFD Sender: No OFD packet to send [23:05:01]OFD Sender: No OFD packet to send [23:05:06]OFD Sender: No OFD packet to send [23:05:08]accept exits with 7 [23:05:08]New connection [23:05:08]New thread 3066666340 created [23:05:08]Thread 3066809700 joined [23:05:08]Waiting for new connection... [23:05:08] Sock 7.Parse request [23:05:08]Sock 7.Check first char [23:05:08]Sock 7.First char is OK [23:05:08]request: POST /json_proto HTTP/1.0 [23:05:08]Method: POST [23:05:08]URL: /json_proto [23:05:08]Method is POST - this is cgi request [23:05:08]url: /json_proto [23:05:08]query_string will be loaded in cgi processing [23:05:08]execute_cgi json_proto POST (null) [23:05:08]execute_cgi path=json_proto method=POST [23:05:08]POST find Content-Length [23:05:08]Host: 172.17.44.195:8080 [23:05:08]Content-Length: 767 [23:05:08]Content-Type: application/json [23:05:08] [23:05:08]POST finish read [23:05:08]Found Content-Length = 767 [23:05:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963390", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.68 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:05:08]execute_script... [23:05: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)1963390", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.68 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:05:08]POST & json_proto [23:05:08]process_json_proto [23:05:08]json parsed OK: [23:05:08]protocol is kg_v1.0 [23:05:08]action value=close_receipt [23:05:08]process_action close_receipt [23:05:08]cmd_close_receipt [23:05:08]MH_GetDate [23:05:08]Write to MH i2c: F0 00 00 0D 1D 19 [23:05:08]Write i2c OK [23:05:08]MH_I2C_Read... [23:05:08]Read from MH i2c: F0 [23:05:08]MH_I2C_Read... [23:05:08]Read from MH i2c: F0 09 00 [23:05:08]MH_I2C_Read... [23:05:08]Read from MH i2c: F0 09 00 0D 1D 00 A6 8C 15 67 82 C9 CF 66 50 [23:05:08]GetLastDocTimeStamp 1729465335 [23:05:08]current date 1729465510 [23:05:08]FM_GetShiftState [23:05:08]SAM_PROTO_GetShiftState [23:05:08]wFMCommunicate request_size=4 [23:05:08]MH_SAM_APDU [23:05:08]CAPDU: 80 13 01 00 [23:05:08]Write to MH i2c: E2 08 00 0E 1D 80 13 01 00 00 00 00 00 A8 [23:05:08]Write i2c OK [23:05:08]MH_I2C_Read... [23:05:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:05:08]Read from MH i2c: E2 [23:05:08]MH_I2C_Read... [23:05:08]Read from MH i2c: E2 0E 00 [23:05:08]MH_I2C_Read... [23:05:08]Read from MH i2c: E2 0E 00 0E 1D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 C2 [23:05:08]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [23:05:08]wFMCommunicate OK [23:05:08]SAM_PROTO_GetShiftState done [23:05:08]FM_GetShiftState done [23:05:08]opened in 1729383750 [23:05:08]opened+sec_in_day 1729470150 [23:05:08]quantity*price = 40068 [23:05:08]sum+1 = 40069 [23:05:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.68 НСП 1% : 3.55 НДС 12% : 42.55 Наличными: 0.00 Безнал.: 400.68 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 567 20.10.2024 23:05 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 227719 ФПД: 260201506395568 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T230510&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227719&fm=260201506395568&tin=02508201610067®Number=0000000000091685&sum=40068 [23:05:09]StoreToDocumentArchive [23:05:09]shift 533 fd 227719 [23:05:09]save to /storage/0533/doc_00227719 [23:05:09]save last doc name /storage/0533/doc_00227719 to /storage/kkm_last_doc_name [23:05:09]save OK [23:05:09]Clear old archive folders... [23:05:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:05:09]tlvbuf is 00C4A690 [23:05:09]SAM_PROTO_ClearQueue [23:05:09]wFMCommunicate request_size=4 [23:05:09]MH_SAM_APDU [23:05:09]CAPDU: 80 09 00 00 [23:05:09]Write to MH i2c: E2 08 00 1B 1D 80 09 00 00 00 00 00 00 AA [23:05:10]Write i2c OK [23:05:10]MH_I2C_Read... [23:05:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:05:10]Read from MH i2c: E2 [23:05:10]MH_I2C_Read... [23:05:10]Read from MH i2c: E2 03 00 [23:05:10]MH_I2C_Read... [23:05:10]Read from MH i2c: E2 03 00 1B 1D 00 90 00 AC [23:05:10]RAPDU: 90 00 [23:05:10]wFMCommunicate OK [23:05:10]SAM_PROTO_ClearQueue done [23:05:10]KKMCreateOFDPacket [23:05:10]OFDProtocolAddRootSTLVToBuf [23:05:10]FM_MakeSignedData [23:05:10]FM_MakeSignedData [23:05:10]SAM_PROTO_SignData [23:05:10]wFMCommunicate request_size=4 [23:05:10]MH_SAM_APDU [23:05:10]CAPDU: 80 0D 01 02 [23:05:10]Write to MH i2c: E2 08 00 1C 1D 80 0D 01 02 00 00 00 00 B2 [23:05:10]Write i2c OK [23:05:10]MH_I2C_Read... [23:05:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:05:10]Read from MH i2c: E2 [23:05:10]MH_I2C_Read... [23:05:10]Read from MH i2c: E2 03 00 [23:05:10]MH_I2C_Read... [23:05:10]Read from MH i2c: E2 03 00 1C 1D 00 90 00 AD [23:05:10]RAPDU: 90 00 [23:05:10]wFMCommunicate OK [23:05:10]wFMCommunicate request_size=255 [23:05:10]MH_SAM_APDU [23:05: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 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 02 00 00 F4 03 04 00 A6 8C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 87 79 03 00 35 04 06 00 EC [23:05:10]Write to MH i2c: E2 02 01 1D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 02 00 00 F4 03 04 00 A6 8C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 87 79 03 00 35 04 06 00 EC 00 00 6D [23:05:10]Write i2c OK [23:05:10]MH_I2C_Read... [23:05:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:05:10]Read from MH i2c: E2 [23:05:10]MH_I2C_Read... [23:05:10]Read from MH i2c: E2 03 00 [23:05:10]MH_I2C_Read... [23:05:10]Read from MH i2c: E2 03 00 1D 1D 00 90 00 AE [23:05:10]RAPDU: 90 00 [23:05:10]wFMCommunicate OK [23:05:10]wFMCommunicate request_size=10 [23:05:10]MH_SAM_APDU [23:05:10]CAPDU: 80 0D 02 02 05 A6 E2 5B D5 B0 [23:05:10]Write to MH i2c: E2 0D 00 1E 1D 80 0D 02 02 05 00 A6 E2 5B D5 B0 00 00 27 [23:05:10]Write i2c OK [23:05:10]MH_I2C_Read... [23:05:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:05:10]Read from MH i2c: E2 [23:05:10]MH_I2C_Read... [23:05:10]Read from MH i2c: E2 03 00 [23:05:10]MH_I2C_Read... [23:05:10]Read from MH i2c: E2 03 00 1E 1D 00 90 00 AF [23:05:10]RAPDU: 90 00 [23:05:10]wFMCommunicate OK [23:05:10]wFMCommunicate request_size=4 [23:05:10]MH_SAM_APDU [23:05:10]CAPDU: 80 0D 03 02 [23:05:10]Write to MH i2c: E2 08 00 1F 1D 80 0D 03 02 00 00 00 00 B7 [23:05:10]Write i2c OK [23:05:10]MH_I2C_Read... [23:05:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:05:10]Read from MH i2c: E2 [23:05:10]MH_I2C_Read... [23:05:10]Read from MH i2c: E2 0B 00 [23:05:10]MH_I2C_Read... [23:05:10]Read from MH i2c: E2 0B 00 1F 1D 00 72 17 73 DA 31 E7 2B E1 90 00 B2 [23:05:10]RAPDU: 72 17 73 DA 31 E7 2B E1 90 00 [23:05:10]wFMCommunicate OK [23:05:10]SAM_PROTO_SignData done [23:05:10]FM_MakeSignedData done [23:05:10]CreateOFDProtocolMessage [23:05:10]wFMCommunicate request_size=4 [23:05:10]MH_SAM_APDU [23:05:10]CAPDU: 80 11 00 00 [23:05:10]Write to MH i2c: E2 08 00 20 1D 80 11 00 00 00 00 00 00 B7 [23:05:10]Write i2c OK [23:05:10]MH_I2C_Read... [23:05:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:05:10]Read from MH i2c: E2 [23:05:10]MH_I2C_Read... [23:05:10]Read from MH i2c: E2 17 00 [23:05:10]MH_I2C_Read... [23:05:10]Read from MH i2c: E2 17 00 20 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 0E [23:05:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [23:05:10]wFMCommunicate OK [23:05:10]CreateOFDProtocolMessage done [23:05:10]OFDSenderStorePacket 227719 [23:05:10]StoreOFDPacket docnum=227719 [23:05:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 A9 14 07 01 4A D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 02 00 00 F4 03 04 00 A6 8C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 87 79 03 00 35 04 06 00 EC A6 E2 5B D5 B0 72 17 73 DA 31 E7 2B E1 [23:05:10]CheckFolder [23:05:10]dirname=/storage/ofd_packets [23:05:10]CheckFolder done [23:05:10]ProducePacketName [23:05:10]name=ofd_packets/00227719 [23:05:10]NVStorageSaveData ofd_packets/00227719 [23:05:10]File name is /storage/ofd_packets/00227719 [23:05:10]Write 301 bytes [23:05:10]NVStorageSaveData done [23:05:10]OFDSenderStorePacket done [23:05:10]KKMCreateOFDPacket done [23:05:10]NVStorageSaveData kkm_last_timestamp [23:05:10]File name is /storage/kkm_last_timestamp [23:05:10]Write 4 bytes [23:05:10]NVStorageSaveData done [23:05:10]ExternCall_PrintAddStr [23:05:10]wPrintStart [23:05:10]Write to MH i2c: 01 00 00 21 1D 3E [23:05:10]Write i2c OK [23:05:10]MH_I2C_Read... [23:05:10]Read from MH i2c: 01 [23:05:10]MH_I2C_Read... [23:05:10]Read from MH i2c: 01 07 00 [23:05:10]MH_I2C_Read... [23:05:10]Read from MH i2c: 01 07 00 21 1D 00 00 00 00 00 FF 0F 53 [23:05:10]RasterBufferAndPrint [23:05:10]line Счет N : (1)1963390 [23:05:10]line ИНН: 02508201610067 [23:05:10]line Контрольно-Кассовый Чек [23:05:10]line ПРОДАЖА [23:05:10]line ТРК (МРК, ГНК) : 64 [23:05:10]line Товар: 2710124500 [23:05:10]line Аи-95-К-5 [23:05:10]line 5.400 * 74.20 [23:05:10]line = 400.68 [23:05:10]line НДС 12% НСП 1% [23:05:10]line > о реализуемом товаре [23:05:10]line ИТОГО: 400.68 [23:05:10]line НСП 1% : 3.55 [23:05:10]line НДС 12% : 42.55 [23:05:10]line Наличными: 0.00 [23:05:10]line Безнал.: 400.68 [23:05:10]line Место: АЗС № 133 "Партнер Нефть" [23:05:10]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [23:05:10]line СНО: Общий режим [23:05:10]line Чек 567 20.10.2024 23:05 [23:05:10]line Смена: 533 ФФД: 1.0 [23:05:10]line ЗНМ: 0300000091 [23:05:10]line РНМ: 0000000000091685 [23:05:10]line Версия ККМ: 001 [23:05:10]line Платежная система: Mbank [23:05:10]line ФМ: 0000000000871839 [23:05:10]line ФД: 227719 [23:05:10]line ФПД: 260201506395568 [23:05:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T230510&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227719&fm=260201506395568&tin=02508201610067®Number=0000000000091685&sum=40068 [23:05:10]written 0, free lines is 4095 [23:05:10]OFD Sender: Processing packet 227719 [packets to send 38, broken 37] [23:05:10]ProducePacketName [23:05:10]name=ofd_packets/00227719 [23:05:10]OFD Sender: To server: pG, [23:05:10]CommunicateWithHost lk.salyk.kg:30040 [23:05:10]ConnectInit lk.salyk.kg [23:05:10]Connected sock=10 [23:05: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 33 39 0F 01 00 00 A9 14 07 01 4A D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 02 00 00 F4 03 04 00 A6 8C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 87 79 03 00 35 04 06 00 EC A6 E2 5B D5 B0 72 17 73 DA 31 E7 2B E1 [23:05:10]Write to MH i2c: 01 00 00 49 1D 66 [23:05:10]Write i2c OK [23:05:10]MH_I2C_Read... [23:05:10]Read from MH i2c: 01 [23:05:10]MH_I2C_Read... [23:05:10]Read from MH i2c: 01 07 00 [23:05:10]MH_I2C_Read... [23:05:10]Read from MH i2c: 01 07 00 49 1D 00 00 00 00 00 DB 0C 54 [23:05:10]RasterBufferAndPrint [23:05:10]line [23:05:10]line [23:05:10]line [23:05:10]line [23:05:10]line [23:05:10]written 0, free lines is 3295 [23:05:10]MH_Cut [23:05:10]Write to MH i2c: D1 01 00 50 1D 01 3F [23:05:11]Write i2c OK [23:05:11]MH_I2C_Read... [23:05:11]Read from MH i2c: D1 [23:05:11]MH_I2C_Read... [23:05:11]Read from MH i2c: D1 01 00 [23:05:11]MH_I2C_Read... [23:05:11]Read from MH i2c: D1 01 00 50 1D 00 3E [23:05:11]Write to MH i2c: 01 00 00 51 1D 6E [23:05:11]Write i2c OK [23:05:11]MH_I2C_Read... [23:05: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 33 39 4F 00 00 00 49 7A 47 00 4E 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 87 79 03 00 F4 03 04 00 A4 37 15 67 B6 04 01 00 00 90 3A 54 05 09 8B 90 3F [23:05:11]CommunicateWithHost err = 0 [23:05:11]CheckOFDResponse [23:05:11]1017 (14) - 77093643461234 [23:05:11]1041 (16) - 0000000000871839 [23:05:11]1040 (4) - 227719 [23:05:11]1012 (4) - 20.10.2024 17:02 [23:05:11]1206 (1) - 0 [23:05:11]OFD Sender: Remove packet 227719 [23:05:11]ProducePacketName [23:05:11]name=ofd_packets/00227719 [23:05:11]NVStorageDeleteData [23:05:11]OFD Sender: No OFD packet to send [23:05:11]*** Cut start [23:05:11]*** Partial cut [23:05:11]*** CUTSNS_PIN = 1 [23:05:11]*** CUTSNS_PIN = 0 [23:05:12]*** Brake cut motor [23:05:12]Read from MH i2c: 01 [23:05:12]MH_I2C_Read... [23:05:12]*** Stop cut motor [23:05:12]*** Cut end [23:05:12]Read from MH i2c: 01 07 00 [23:05:12]MH_I2C_Read... [23:05:12]Read from MH i2c: 01 07 00 51 1D 00 00 00 00 00 FF 0F 83 [23:05:12]process_action close_receipt done [23:05:12]requested_data is exist [23:05:12]produce_requested_data [23:05:12]requested_item fm.sn is exist - process it [23:05:12]wFMCommunicate request_size=4 [23:05:12]MH_SAM_APDU [23:05:12]CAPDU: 80 11 00 00 [23:05:12]Write to MH i2c: E2 08 00 52 1D 80 11 00 00 00 00 00 00 E9 [23:05:12]Write i2c OK [23:05:12]MH_I2C_Read... [23:05:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:05:12]Read from MH i2c: E2 [23:05:12]MH_I2C_Read... [23:05:12]Read from MH i2c: E2 17 00 [23:05:12]MH_I2C_Read... [23:05:12]Read from MH i2c: E2 17 00 52 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 40 [23:05:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [23:05:12]wFMCommunicate OK [23:05:12]requested_item fd.num is exist - process it [23:05:12]SAM_PROTO_GetFieldsCounters [23:05:12]wFMCommunicate request_size=4 [23:05:12]MH_SAM_APDU [23:05:12]CAPDU: 80 13 00 00 [23:05:12]Write to MH i2c: E2 08 00 53 1D 80 13 00 00 00 00 00 00 EC [23:05:12]Write i2c OK [23:05:12]MH_I2C_Read... [23:05:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:05:12]Read from MH i2c: E2 [23:05:12]MH_I2C_Read... [23:05:12]Read from MH i2c: E2 62 00 [23:05:12]MH_I2C_Read... [23:05:12]Read from MH i2c: E2 62 00 53 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 87 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 37 02 00 00 5E 04 04 00 37 02 00 00 57 04 04 00 38 02 00 00 19 04 04 00 00 00 00 00 90 00 DA [23:05: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 87 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 37 02 00 00 5E 04 04 00 37 02 00 00 57 04 04 00 38 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:05:12]wFMCommunicate OK [23:05:12]SAM_PROTO_GetFieldsCounters done [23:05:12]requested_item shift.num is exist - process it [23:05:12]requested_item shift.opened is exist - process it [23:05:12]req_shift_opened [23:05:12]FM_GetShiftState [23:05:12]SAM_PROTO_GetShiftState [23:05:12]wFMCommunicate request_size=4 [23:05:12]MH_SAM_APDU [23:05:12]CAPDU: 80 13 01 00 [23:05:12]Write to MH i2c: E2 08 00 54 1D 80 13 01 00 00 00 00 00 EE [23:05:12]Write i2c OK [23:05:12]MH_I2C_Read... [23:05:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:05:12]Read from MH i2c: E2 [23:05:12]MH_I2C_Read... [23:05:12]Read from MH i2c: E2 0E 00 [23:05:12]MH_I2C_Read... [23:05:12]Read from MH i2c: E2 0E 00 54 1D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 08 [23:05:12]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [23:05:12]wFMCommunicate OK [23:05:12]SAM_PROTO_GetShiftState done [23:05:12]FM_GetShiftState done [23:05:12]req_shift_opened done [23:05:12]requested_item shift.open_date is exist - process it [23:05:12]req_shift_open_date [23:05:12]req_shift_open_date done [23:05:12]produce_requested_data done [23:05:12]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227719,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [23:05:12]process_action_free close_receipt [23:05:12]json_value_free [23:05:12]json_value_free done [23:05:12]process_json_proto returns [23:05:12]Send response to host [23:05:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227719,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [23:05:12]free response buf [23:05:12]execute_script done [23:05:12]execute_script returns [23:05:12]free content buf [23:05:12]Sock 7.Close socket [23:05:12]Sock 7.Thread stoped [23:05:16]OFD Sender: No OFD packet to send [23:05:21]OFD Sender: No OFD packet to send [23:05:26]OFD Sender: No OFD packet to send [23:05:31]OFD Sender: No OFD packet to send [23:05:36]OFD Sender: No OFD packet to send [23:05:41]OFD Sender: No OFD packet to send [23:05:46]OFD Sender: No OFD packet to send [23:05:51]OFD Sender: No OFD packet to send [23:05:56]OFD Sender: No OFD packet to send [23:06:01]OFD Sender: No OFD packet to send [23:06:06]OFD Sender: No OFD packet to send [23:06:09]accept exits with 9 [23:06:09]New connection [23:06:09]New thread 3066809700 created [23:06:09]Thread 3066666340 joined [23:06:09]Waiting for new connection... [23:06:09] Sock 9.Parse request [23:06:09]Sock 9.Check first char [23:06:09]Sock 9.First char is OK [23:06:09]request: POST /json_proto HTTP/1.0 [23:06:09]Method: POST [23:06:09]URL: /json_proto [23:06:09]Method is POST - this is cgi request [23:06:09]url: /json_proto [23:06:09]query_string will be loaded in cgi processing [23:06:09]execute_cgi json_proto POST (null) [23:06:09]execute_cgi path=json_proto method=POST [23:06:09]POST find Content-Length [23:06:09]Host: 172.17.44.195:8080 [23:06:09]Content-Length: 767 [23:06:09]Content-Type: application/json [23:06:09] [23:06:09]POST finish read [23:06:09]Found Content-Length = 767 [23:06:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963392", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 4.050, "sum" : 300.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:06:09]execute_script... [23:06:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963392", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 4.050, "sum" : 300.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:06:09]POST & json_proto [23:06:09]process_json_proto [23:06:09]json parsed OK: [23:06:09]protocol is kg_v1.0 [23:06:09]action value=close_receipt [23:06:09]process_action close_receipt [23:06:09]cmd_close_receipt [23:06:09]MH_GetDate [23:06:09]Write to MH i2c: F0 00 00 55 1D 61 [23:06:09]Write i2c OK [23:06:09]MH_I2C_Read... [23:06:09]Read from MH i2c: F0 [23:06:09]MH_I2C_Read... [23:06:09]Read from MH i2c: F0 09 00 [23:06:09]MH_I2C_Read... [23:06:09]Read from MH i2c: F0 09 00 55 1D 00 E2 8C 15 67 82 C9 CF 66 D4 [23:06:09]GetLastDocTimeStamp 1729465510 [23:06:09]current date 1729465570 [23:06:09]FM_GetShiftState [23:06:09]SAM_PROTO_GetShiftState [23:06:09]wFMCommunicate request_size=4 [23:06:09]MH_SAM_APDU [23:06:09]CAPDU: 80 13 01 00 [23:06:09]Write to MH i2c: E2 08 00 56 1D 80 13 01 00 00 00 00 00 F0 [23:06:09]Write i2c OK [23:06:09]MH_I2C_Read... [23:06:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:06:09]Read from MH i2c: E2 [23:06:09]MH_I2C_Read... [23:06:09]Read from MH i2c: E2 0E 00 [23:06:09]MH_I2C_Read... [23:06:09]Read from MH i2c: E2 0E 00 56 1D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 0A [23:06:09]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [23:06:09]wFMCommunicate OK [23:06:09]SAM_PROTO_GetShiftState done [23:06:09]FM_GetShiftState done [23:06:09]opened in 1729383750 [23:06:09]opened+sec_in_day 1729470150 [23:06:09]quantity*price = 30051 [23:06:09]sum+1 = 30052 [23:06:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.51 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 0.00 Безнал.: 300.51 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 568 20.10.2024 23:06 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 227720 ФПД: 245162237309677 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T230610&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227720&fm=245162237309677&tin=02508201610067®Number=0000000000091685&sum=30051 [23:06:10]StoreToDocumentArchive [23:06:10]shift 533 fd 227720 [23:06:10]save to /storage/0533/doc_00227720 [23:06:10]save last doc name /storage/0533/doc_00227720 to /storage/kkm_last_doc_name [23:06:10]save OK [23:06:10]Clear old archive folders... [23:06:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:06:10]tlvbuf is 00CBFBD0 [23:06:10]SAM_PROTO_ClearQueue [23:06:10]wFMCommunicate request_size=4 [23:06:10]MH_SAM_APDU [23:06:10]CAPDU: 80 09 00 00 [23:06:10]Write to MH i2c: E2 08 00 63 1D 80 09 00 00 00 00 00 00 F2 [23:06:10]Write i2c OK [23:06:10]MH_I2C_Read... [23:06:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:06:10]Read from MH i2c: E2 [23:06:10]MH_I2C_Read... [23:06:10]Read from MH i2c: E2 03 00 [23:06:10]MH_I2C_Read... [23:06:10]Read from MH i2c: E2 03 00 63 1D 00 90 00 F4 [23:06:10]RAPDU: 90 00 [23:06:10]wFMCommunicate OK [23:06:10]SAM_PROTO_ClearQueue done [23:06:10]KKMCreateOFDPacket [23:06:10]OFDProtocolAddRootSTLVToBuf [23:06:10]FM_MakeSignedData [23:06:10]FM_MakeSignedData [23:06:10]SAM_PROTO_SignData [23:06:10]wFMCommunicate request_size=4 [23:06:10]MH_SAM_APDU [23:06:10]CAPDU: 80 0D 01 02 [23:06:10]Write to MH i2c: E2 08 00 64 1D 80 0D 01 02 00 00 00 00 FA [23:06:10]Write i2c OK [23:06:10]MH_I2C_Read... [23:06:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:06:10]Read from MH i2c: E2 [23:06:10]MH_I2C_Read... [23:06:10]Read from MH i2c: E2 03 00 [23:06:10]MH_I2C_Read... [23:06:10]Read from MH i2c: E2 03 00 64 1D 00 90 00 F5 [23:06:10]RAPDU: 90 00 [23:06:10]wFMCommunicate OK [23:06:10]wFMCommunicate request_size=255 [23:06:10]MH_SAM_APDU [23:06: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 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 02 00 00 F4 03 04 00 E2 8C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 88 79 03 00 35 04 06 00 DE [23:06:10]Write to MH i2c: E2 02 01 65 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 02 00 00 F4 03 04 00 E2 8C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 88 79 03 00 35 04 06 00 DE 00 00 3C [23:06:10]Write i2c OK [23:06:10]MH_I2C_Read... [23:06:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:06:10]Read from MH i2c: E2 [23:06:10]MH_I2C_Read... [23:06:10]Read from MH i2c: E2 03 00 [23:06:10]MH_I2C_Read... [23:06:10]Read from MH i2c: E2 03 00 65 1D 00 90 00 F6 [23:06:10]RAPDU: 90 00 [23:06:10]wFMCommunicate OK [23:06:10]wFMCommunicate request_size=10 [23:06:10]MH_SAM_APDU [23:06:10]CAPDU: 80 0D 02 02 05 F9 48 11 32 ED [23:06:10]Write to MH i2c: E2 0D 00 66 1D 80 0D 02 02 05 00 F9 48 11 32 ED 00 00 78 [23:06:10]Write i2c OK [23:06:10]MH_I2C_Read... [23:06:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:06:10]Read from MH i2c: E2 [23:06:10]MH_I2C_Read... [23:06:10]Read from MH i2c: E2 03 00 [23:06:10]MH_I2C_Read... [23:06:10]Read from MH i2c: E2 03 00 66 1D 00 90 00 F7 [23:06:10]RAPDU: 90 00 [23:06:10]wFMCommunicate OK [23:06:10]wFMCommunicate request_size=4 [23:06:10]MH_SAM_APDU [23:06:10]CAPDU: 80 0D 03 02 [23:06:10]Write to MH i2c: E2 08 00 67 1D 80 0D 03 02 00 00 00 00 FF [23:06:10]Write i2c OK [23:06:10]MH_I2C_Read... [23:06:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:06:10]Read from MH i2c: E2 [23:06:10]MH_I2C_Read... [23:06:10]Read from MH i2c: E2 0B 00 [23:06:10]MH_I2C_Read... [23:06:10]Read from MH i2c: E2 0B 00 67 1D 00 B2 BD 71 44 AC 2B 7E 69 90 00 E2 [23:06:10]RAPDU: B2 BD 71 44 AC 2B 7E 69 90 00 [23:06:10]wFMCommunicate OK [23:06:10]SAM_PROTO_SignData done [23:06:10]FM_MakeSignedData done [23:06:10]CreateOFDProtocolMessage [23:06:10]wFMCommunicate request_size=4 [23:06:10]MH_SAM_APDU [23:06:10]CAPDU: 80 11 00 00 [23:06:10]Write to MH i2c: E2 08 00 68 1D 80 11 00 00 00 00 00 00 FF [23:06:10]Write i2c OK [23:06:10]MH_I2C_Read... [23:06:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:06:10]Read from MH i2c: E2 [23:06:10]MH_I2C_Read... [23:06:10]Read from MH i2c: E2 17 00 [23:06:10]MH_I2C_Read... [23:06:10]Read from MH i2c: E2 17 00 68 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 56 [23:06:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [23:06:10]wFMCommunicate OK [23:06:10]CreateOFDProtocolMessage done [23:06:10]OFDSenderStorePacket 227720 [23:06:10]StoreOFDPacket docnum=227720 [23:06:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 CB 76 07 01 74 E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 02 00 00 F4 03 04 00 E2 8C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 88 79 03 00 35 04 06 00 DE F9 48 11 32 ED B2 BD 71 44 AC 2B 7E 69 [23:06:10]CheckFolder [23:06:10]dirname=/storage/ofd_packets [23:06:10]CheckFolder done [23:06:10]ProducePacketName [23:06:10]name=ofd_packets/00227720 [23:06:10]NVStorageSaveData ofd_packets/00227720 [23:06:10]File name is /storage/ofd_packets/00227720 [23:06:10]Write 301 bytes [23:06:10]NVStorageSaveData done [23:06:10]OFDSenderStorePacket done [23:06:10]KKMCreateOFDPacket done [23:06:10]NVStorageSaveData kkm_last_timestamp [23:06:10]File name is /storage/kkm_last_timestamp [23:06:10]Write 4 bytes [23:06:10]NVStorageSaveData done [23:06:10]ExternCall_PrintAddStr [23:06:10]wPrintStart [23:06:10]Write to MH i2c: 01 00 00 69 1D 86 [23:06:10]Write i2c OK [23:06:10]MH_I2C_Read... [23:06:10]Read from MH i2c: 01 [23:06:10]MH_I2C_Read... [23:06:10]Read from MH i2c: 01 07 00 [23:06:10]MH_I2C_Read... [23:06:10]Read from MH i2c: 01 07 00 69 1D 00 00 00 00 00 FF 0F 9B [23:06:10]RasterBufferAndPrint [23:06:10]line Счет N : (1)1963392 [23:06:10]line ИНН: 02508201610067 [23:06:10]line Контрольно-Кассовый Чек [23:06:10]line ПРОДАЖА [23:06:10]line ТРК (МРК, ГНК) : 54 [23:06:10]line Товар: 2710124500 [23:06:10]line Аи-95-К-5 [23:06:10]line 4.050 * 74.20 [23:06:10]line = 300.51 [23:06:10]line НДС 12% НСП 1% [23:06:10]line > о реализуемом товаре [23:06:10]line ИТОГО: 300.51 [23:06:10]line НСП 1% : 2.66 [23:06:10]line НДС 12% : 31.91 [23:06:10]line Наличными: 0.00 [23:06:10]line Безнал.: 300.51 [23:06:10]line Место: АЗС № 133 "Партнер Нефть" [23:06:10]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [23:06:10]line СНО: Общий режим [23:06:10]line Чек 568 20.10.2024 23:06 [23:06:10]line Смена: 533 ФФД: 1.0 [23:06:10]line ЗНМ: 0300000091 [23:06:10]line РНМ: 0000000000091685 [23:06:10]line Версия ККМ: 001 [23:06:10]line Платежная система: Mbank [23:06:10]line ФМ: 0000000000871839 [23:06:10]line ФД: 227720 [23:06:10]line ФПД: 245162237309677 [23:06:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T230610&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227720&fm=245162237309677&tin=02508201610067®Number=0000000000091685&sum=30051 [23:06:10]written 0, free lines is 4095 [23:06:10]OFD Sender: Processing packet 227720 [packets to send 38, broken 37] [23:06:10]ProducePacketName [23:06:10]name=ofd_packets/00227720 [23:06:11]OFD Sender: To server: pG, [23:06:11]CommunicateWithHost lk.salyk.kg:30040 [23:06:11]ConnectInit lk.salyk.kg [23:06:11]Connected sock=10 [23:06:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 CB 76 07 01 74 E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 02 00 00 F4 03 04 00 E2 8C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 88 79 03 00 35 04 06 00 DE F9 48 11 32 ED B2 BD 71 44 AC 2B 7E 69 [23:06:11]Write to MH i2c: 01 00 00 91 1D AE [23:06:11]Write i2c OK [23:06:11]MH_I2C_Read... [23:06:11]Read from MH i2c: 01 [23:06:11]MH_I2C_Read... [23:06:11]Read from MH i2c: 01 07 00 [23:06:11]MH_I2C_Read... [23:06:11]Read from MH i2c: 01 07 00 91 1D 00 00 00 00 00 E3 0C A4 [23:06:11]RasterBufferAndPrint [23:06:11]line [23:06:11]line [23:06:11]line [23:06:11]line [23:06:11]line [23:06:11]written 0, free lines is 3302 [23:06:11]MH_Cut [23:06:11]Write to MH i2c: D1 01 00 98 1D 01 87 [23:06:11]Write i2c OK [23:06:11]MH_I2C_Read... [23:06:11]Read from MH i2c: D1 [23:06:11]MH_I2C_Read... [23:06:11]Read from MH i2c: D1 01 00 [23:06:11]MH_I2C_Read... [23:06:11]Read from MH i2c: D1 01 00 98 1D 00 86 [23:06:11]Write to MH i2c: 01 00 00 99 1D B6 [23:06:11]Write i2c OK [23:06:11]MH_I2C_Read... [23: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 33 39 4F 00 00 00 E5 8F 47 00 D9 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 33 39 10 04 04 00 88 79 03 00 F4 03 04 00 E0 37 15 67 B6 04 01 00 00 17 BD 0A 3F 0D 72 F9 D6 [23:06:11]CommunicateWithHost err = 0 [23:06:11]CheckOFDResponse [23:06:11]1017 (14) - 77093643461234 [23:06:11]1041 (16) - 0000000000871839 [23:06:11]1040 (4) - 227720 [23:06:11]1012 (4) - 20.10.2024 17:03 [23:06:11]1206 (1) - 0 [23:06:11]OFD Sender: Remove packet 227720 [23:06:11]ProducePacketName [23:06:11]name=ofd_packets/00227720 [23:06:11]NVStorageDeleteData [23:06:12]OFD Sender: No OFD packet to send [23:06:12]*** Cut start [23:06:12]*** Partial cut [23:06:12]*** CUTSNS_PIN = 1 [23:06:12]*** CUTSNS_PIN = 0 [23:06:12]*** Brake cut motor [23:06:12]Read from MH i2c: 01 [23:06:12]MH_I2C_Read... [23:06:12]*** Stop cut motor [23:06:12]*** Cut end [23:06:12]Read from MH i2c: 01 07 00 [23:06:12]MH_I2C_Read... [23:06:12]Read from MH i2c: 01 07 00 99 1D 00 00 00 00 00 FF 0F CB [23:06:12]process_action close_receipt done [23:06:12]requested_data is exist [23:06:12]produce_requested_data [23:06:12]requested_item fm.sn is exist - process it [23:06:12]wFMCommunicate request_size=4 [23:06:12]MH_SAM_APDU [23:06:12]CAPDU: 80 11 00 00 [23:06:12]Write to MH i2c: E2 08 00 9A 1D 80 11 00 00 00 00 00 00 31 [23:06:12]Write i2c OK [23:06:12]MH_I2C_Read... [23:06:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:06:12]Read from MH i2c: E2 [23:06:12]MH_I2C_Read... [23:06:12]Read from MH i2c: E2 17 00 [23:06:12]MH_I2C_Read... [23:06:12]Read from MH i2c: E2 17 00 9A 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 88 [23:06:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [23:06:12]wFMCommunicate OK [23:06:12]requested_item fd.num is exist - process it [23:06:12]SAM_PROTO_GetFieldsCounters [23:06:12]wFMCommunicate request_size=4 [23:06:12]MH_SAM_APDU [23:06:12]CAPDU: 80 13 00 00 [23:06:12]Write to MH i2c: E2 08 00 9B 1D 80 13 00 00 00 00 00 00 34 [23:06:12]Write i2c OK [23:06:12]MH_I2C_Read... [23:06:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:06:13]Read from MH i2c: E2 [23:06:13]MH_I2C_Read... [23:06:13]Read from MH i2c: E2 62 00 [23:06:13]MH_I2C_Read... [23:06:13]Read from MH i2c: E2 62 00 9B 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 88 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 38 02 00 00 5E 04 04 00 38 02 00 00 57 04 04 00 39 02 00 00 19 04 04 00 00 00 00 00 90 00 26 [23:06:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 88 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 38 02 00 00 5E 04 04 00 38 02 00 00 57 04 04 00 39 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:06:13]wFMCommunicate OK [23:06:13]SAM_PROTO_GetFieldsCounters done [23:06:13]requested_item shift.num is exist - process it [23:06:13]requested_item shift.opened is exist - process it [23:06:13]req_shift_opened [23:06:13]FM_GetShiftState [23:06:13]SAM_PROTO_GetShiftState [23:06:13]wFMCommunicate request_size=4 [23:06:13]MH_SAM_APDU [23:06:13]CAPDU: 80 13 01 00 [23:06:13]Write to MH i2c: E2 08 00 9C 1D 80 13 01 00 00 00 00 00 36 [23:06:13]Write i2c OK [23:06:13]MH_I2C_Read... [23:06:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:06:13]Read from MH i2c: E2 [23:06:13]MH_I2C_Read... [23:06:13]Read from MH i2c: E2 0E 00 [23:06:13]MH_I2C_Read... [23:06:13]Read from MH i2c: E2 0E 00 9C 1D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 50 [23:06:13]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [23:06:13]wFMCommunicate OK [23:06:13]SAM_PROTO_GetShiftState done [23:06:13]FM_GetShiftState done [23:06:13]req_shift_opened done [23:06:13]requested_item shift.open_date is exist - process it [23:06:13]req_shift_open_date [23:06:13]req_shift_open_date done [23:06:13]produce_requested_data done [23:06:13]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227720,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [23:06:13]process_action_free close_receipt [23:06:13]json_value_free [23:06:13]json_value_free done [23:06:13]process_json_proto returns [23:06:13]Send response to host [23:06:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227720,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [23:06:13]free response buf [23:06:13]execute_script done [23:06:13]execute_script returns [23:06:13]free content buf [23:06:13]Sock 9.Close socket [23:06:13]Sock 9.Thread stoped [23:06:13]accept exits with 7 [23:06:13]New connection [23:06:13]New thread 3066666340 created [23:06:13]Thread 3066809700 joined [23:06:13]Waiting for new connection... [23:06:13] Sock 7.Parse request [23:06:13]Sock 7.Check first char [23:06:13]Sock 7.First char is OK [23:06:13]request: POST /json_proto HTTP/1.0 [23:06:13]Method: POST [23:06:13]URL: /json_proto [23:06:13]Method is POST - this is cgi request [23:06:13]url: /json_proto [23:06:13]query_string will be loaded in cgi processing [23:06:13]execute_cgi json_proto POST (null) [23:06:13]execute_cgi path=json_proto method=POST [23:06:13]POST find Content-Length [23:06:13]Host: 172.17.44.195:8080 [23:06:13]Content-Length: 765 [23:06:13]Content-Type: application/json [23:06:13] [23:06:13]POST finish read [23:06:13]Found Content-Length = 765 [23:06:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963391", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 11.820, "sum" : 900.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 900.68 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:06:13]execute_script... [23:06:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963391", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 11.820, "sum" : 900.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 900.68 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:06:13]POST & json_proto [23:06:13]process_json_proto [23:06:13]json parsed OK: [23:06:13]protocol is kg_v1.0 [23:06:13]action value=close_receipt [23:06:13]process_action close_receipt [23:06:13]cmd_close_receipt [23:06:13]MH_GetDate [23:06:13]Write to MH i2c: F0 00 00 9D 1D A9 [23:06:13]Write i2c OK [23:06:13]MH_I2C_Read... [23:06:13]Read from MH i2c: F0 [23:06:13]MH_I2C_Read... [23:06:13]Read from MH i2c: F0 09 00 [23:06:13]MH_I2C_Read... [23:06:13]Read from MH i2c: F0 09 00 9D 1D 00 E7 8C 15 67 82 C9 CF 66 21 [23:06:13]GetLastDocTimeStamp 1729465570 [23:06:13]current date 1729465575 [23:06:13]FM_GetShiftState [23:06:13]SAM_PROTO_GetShiftState [23:06:13]wFMCommunicate request_size=4 [23:06:13]MH_SAM_APDU [23:06:13]CAPDU: 80 13 01 00 [23:06:13]Write to MH i2c: E2 08 00 9E 1D 80 13 01 00 00 00 00 00 38 [23:06:13]Write i2c OK [23:06:13]MH_I2C_Read... [23:06:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:06:13]Read from MH i2c: E2 [23:06:13]MH_I2C_Read... [23:06:13]Read from MH i2c: E2 0E 00 [23:06:13]MH_I2C_Read... [23:06:13]Read from MH i2c: E2 0E 00 9E 1D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 52 [23:06:13]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [23:06:13]wFMCommunicate OK [23:06:13]SAM_PROTO_GetShiftState done [23:06:13]FM_GetShiftState done [23:06:13]opened in 1729383750 [23:06:13]opened+sec_in_day 1729470150 [23:06:13]quantity*price = 90068 [23:06:13]sum+1 = 90069 [23:06:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 900.68 НСП 1% : 7.97 НДС 12% : 95.65 Наличными: 0.00 Безнал.: 900.68 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 569 20.10.2024 23:06 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 227721 ФПД: 222975265347168 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T230615&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227721&fm=222975265347168&tin=02508201610067®Number=0000000000091685&sum=90068 [23:06:14]StoreToDocumentArchive [23:06:14]shift 533 fd 227721 [23:06:14]save to /storage/0533/doc_00227721 [23:06:14]save last doc name /storage/0533/doc_00227721 to /storage/kkm_last_doc_name [23:06:14]save OK [23:06:14]Clear old archive folders... [23:06:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:06:14]tlvbuf is 00CF1F20 [23:06:14]SAM_PROTO_ClearQueue [23:06:14]wFMCommunicate request_size=4 [23:06:14]MH_SAM_APDU [23:06:14]CAPDU: 80 09 00 00 [23:06:14]Write to MH i2c: E2 08 00 AB 1D 80 09 00 00 00 00 00 00 3A [23:06:14]Write i2c OK [23:06:14]MH_I2C_Read... [23:06:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:06:15]Read from MH i2c: E2 [23:06:15]MH_I2C_Read... [23:06:15]Read from MH i2c: E2 03 00 [23:06:15]MH_I2C_Read... [23:06:15]Read from MH i2c: E2 03 00 AB 1D 00 90 00 3C [23:06:15]RAPDU: 90 00 [23:06:15]wFMCommunicate OK [23:06:15]SAM_PROTO_ClearQueue done [23:06:15]KKMCreateOFDPacket [23:06:15]OFDProtocolAddRootSTLVToBuf [23:06:15]FM_MakeSignedData [23:06:15]FM_MakeSignedData [23:06:15]SAM_PROTO_SignData [23:06:15]wFMCommunicate request_size=4 [23:06:15]MH_SAM_APDU [23:06:15]CAPDU: 80 0D 01 02 [23:06:15]Write to MH i2c: E2 08 00 AC 1D 80 0D 01 02 00 00 00 00 42 [23:06:15]Write i2c OK [23:06:15]MH_I2C_Read... [23:06:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:06:15]Read from MH i2c: E2 [23:06:15]MH_I2C_Read... [23:06:15]Read from MH i2c: E2 03 00 [23:06:15]MH_I2C_Read... [23:06:15]Read from MH i2c: E2 03 00 AC 1D 00 90 00 3D [23:06:15]RAPDU: 90 00 [23:06:15]wFMCommunicate OK [23:06:15]wFMCommunicate request_size=255 [23:06:15]MH_SAM_APDU [23:06:15]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 02 00 00 F4 03 04 00 E7 8C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 89 79 03 00 35 04 06 00 CA CB 79 7C [23:06:15]Write to MH i2c: E2 02 01 AD 1D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 02 00 00 F4 03 04 00 E7 8C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 89 79 03 00 35 04 06 00 CA CB 79 7C 00 00 F0 [23:06:15]Write i2c OK [23:06:15]MH_I2C_Read... [23:06:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:06:15]Read from MH i2c: E2 [23:06:15]MH_I2C_Read... [23:06:15]Read from MH i2c: E2 03 00 [23:06:15]MH_I2C_Read... [23:06:15]Read from MH i2c: E2 03 00 AD 1D 00 90 00 3E [23:06:15]RAPDU: 90 00 [23:06:15]wFMCommunicate OK [23:06:15]wFMCommunicate request_size=7 [23:06:15]MH_SAM_APDU [23:06:15]CAPDU: 80 0D 02 02 02 16 60 [23:06:15]Write to MH i2c: E2 0A 00 AE 1D 80 0D 02 02 02 00 16 60 00 00 BF [23:06:15]Write i2c OK [23:06:15]MH_I2C_Read... [23:06:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:06:15]Read from MH i2c: E2 [23:06:15]MH_I2C_Read... [23:06:15]Read from MH i2c: E2 03 00 [23:06:15]MH_I2C_Read... [23:06:15]Read from MH i2c: E2 03 00 AE 1D 00 90 00 3F [23:06:15]RAPDU: 90 00 [23:06:15]wFMCommunicate OK [23:06:15]wFMCommunicate request_size=4 [23:06:15]MH_SAM_APDU [23:06:15]CAPDU: 80 0D 03 02 [23:06:15]Write to MH i2c: E2 08 00 AF 1D 80 0D 03 02 00 00 00 00 47 [23:06:15]Write i2c OK [23:06:15]MH_I2C_Read... [23:06:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:06:15]Read from MH i2c: E2 [23:06:15]MH_I2C_Read... [23:06:15]Read from MH i2c: E2 0B 00 [23:06:15]MH_I2C_Read... [23:06:15]Read from MH i2c: E2 0B 00 AF 1D 00 CD 5F D5 AD 2A 58 D5 02 90 00 4F [23:06:15]RAPDU: CD 5F D5 AD 2A 58 D5 02 90 00 [23:06:15]wFMCommunicate OK [23:06:15]SAM_PROTO_SignData done [23:06:15]FM_MakeSignedData done [23:06:15]CreateOFDProtocolMessage [23:06:15]wFMCommunicate request_size=4 [23:06:15]MH_SAM_APDU [23:06:15]CAPDU: 80 11 00 00 [23:06:15]Write to MH i2c: E2 08 00 B0 1D 80 11 00 00 00 00 00 00 47 [23:06:15]Write i2c OK [23:06:15]MH_I2C_Read... [23:06:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:06:15]Read from MH i2c: E2 [23:06:15]MH_I2C_Read... [23:06:15]Read from MH i2c: E2 17 00 [23:06:15]MH_I2C_Read... [23:06:15]Read from MH i2c: E2 17 00 B0 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 9E [23:06:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [23:06:15]wFMCommunicate OK [23:06:15]CreateOFDProtocolMessage done [23:06:15]OFDSenderStorePacket 227721 [23:06:15]StoreOFDPacket docnum=227721 [23:06:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 9E 15 04 01 02 B5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 02 00 00 F4 03 04 00 E7 8C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 89 79 03 00 35 04 06 00 CA CB 79 7C 16 60 CD 5F D5 AD 2A 58 D5 02 [23:06:15]CheckFolder [23:06:15]dirname=/storage/ofd_packets [23:06:15]CheckFolder done [23:06:15]ProducePacketName [23:06:15]name=ofd_packets/00227721 [23:06:15]NVStorageSaveData ofd_packets/00227721 [23:06:15]File name is /storage/ofd_packets/00227721 [23:06:15]Write 298 bytes [23:06:15]NVStorageSaveData done [23:06:15]OFDSenderStorePacket done [23:06:15]KKMCreateOFDPacket done [23:06:15]NVStorageSaveData kkm_last_timestamp [23:06:15]File name is /storage/kkm_last_timestamp [23:06:15]Write 4 bytes [23:06:15]NVStorageSaveData done [23:06:15]ExternCall_PrintAddStr [23:06:15]wPrintStart [23:06:15]Write to MH i2c: 01 00 00 B1 1D CE [23:06:15]Write i2c OK [23:06:15]MH_I2C_Read... [23:06:15]Read from MH i2c: 01 [23:06:15]MH_I2C_Read... [23:06:15]Read from MH i2c: 01 07 00 [23:06:15]MH_I2C_Read... [23:06:15]Read from MH i2c: 01 07 00 B1 1D 00 00 00 00 00 FF 0F E3 [23:06:15]RasterBufferAndPrint [23:06:15]line Счет N : (1)1963391 [23:06:15]line ИНН: 02508201610067 [23:06:15]line Контрольно-Кассовый Чек [23:06:15]line ПРОДАЖА [23:06:15]line ТРК (МРК, ГНК) : 31 [23:06:15]line Товар: 2710194210 [23:06:15]line ДТ-К-5 [23:06:15]line 11.820 * 76.20 [23:06:15]line = 900.68 [23:06:15]line НДС 12% НСП 1% [23:06:15]line > о реализуемом товаре [23:06:15]line ИТОГО: 900.68 [23:06:15]line НСП 1% : 7.97 [23:06:15]line НДС 12% : 95.65 [23:06:15]line Наличными: 0.00 [23:06:15]line Безнал.: 900.68 [23:06:15]line Место: АЗС № 133 "Партнер Нефть" [23:06:15]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [23:06:15]line СНО: Общий режим [23:06:15]line Чек 569 20.10.2024 23:06 [23:06:15]line Смена: 533 ФФД: 1.0 [23:06:15]line ЗНМ: 0300000091 [23:06:15]line РНМ: 0000000000091685 [23:06:15]line Версия ККМ: 001 [23:06:15]line Платежная система: Mbank [23:06:15]line ФМ: 0000000000871839 [23:06:15]line ФД: 227721 [23:06:15]line ФПД: 222975265347168 [23:06:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T230615&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227721&fm=222975265347168&tin=02508201610067®Number=0000000000091685&sum=90068 [23:06:15]OFD Sender: Processing packet 227721 [packets to send 38, broken 37] [23:06:15]ProducePacketName [23:06:15]name=ofd_packets/00227721 [23:06:15]OFD Sender: To server: pG, [23:06:15]CommunicateWithHost lk.salyk.kg:30040 [23:06:15]ConnectInit lk.salyk.kg [23:06:15]written 0, free lines is 4095 [23:06:16]Connected sock=10 [23:06: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 33 39 0C 01 00 00 9E 15 04 01 02 B5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 02 00 00 F4 03 04 00 E7 8C 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 89 79 03 00 35 04 06 00 CA CB 79 7C 16 60 CD 5F D5 AD 2A 58 D5 02 [23:06: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 33 39 4F 00 00 00 B9 91 47 00 10 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 33 39 10 04 04 00 89 79 03 00 F4 03 04 00 E5 37 15 67 B6 04 01 00 00 09 7F 76 BA 9D 38 84 DC [23:06:16]CommunicateWithHost err = 0 [23:06:16]CheckOFDResponse [23:06:16]1017 (14) - 77093643461234 [23:06:16]1041 (16) - 0000000000871839 [23:06:16]1040 (4) - 227721 [23:06:16]1012 (4) - 20.10.2024 17:03 [23:06:16]1206 (1) - 0 [23:06:16]OFD Sender: Remove packet 227721 [23:06:16]ProducePacketName [23:06:16]name=ofd_packets/00227721 [23:06:16]NVStorageDeleteData [23:06:16]Write to MH i2c: 01 00 00 D9 1D F6 [23:06:16]Write i2c OK [23:06:16]MH_I2C_Read... [23:06:16]Read from MH i2c: 01 [23:06:16]MH_I2C_Read... [23:06:16]Read from MH i2c: 01 07 00 [23:06:16]MH_I2C_Read... [23:06:16]Read from MH i2c: 01 07 00 D9 1D 00 00 00 00 00 EA 0C F3 [23:06:16]RasterBufferAndPrint [23:06:16]line [23:06:16]line [23:06:16]line [23:06:16]line [23:06:16]line [23:06:16]written 0, free lines is 3317 [23:06:16]MH_Cut [23:06:16]Write to MH i2c: D1 01 00 E0 1D 01 CF [23:06:16]Write i2c OK [23:06:16]MH_I2C_Read... [23:06:16]Read from MH i2c: D1 [23:06:16]MH_I2C_Read... [23:06:16]Read from MH i2c: D1 01 00 [23:06:16]MH_I2C_Read... [23:06:16]Read from MH i2c: D1 01 00 E0 1D 00 CE [23:06:16]Write to MH i2c: 01 00 00 E1 1D FE [23:06:16]Write i2c OK [23:06:16]MH_I2C_Read... [23:06:16]OFD Sender: No OFD packet to send [23:06:17]*** Cut start [23:06:17]*** Partial cut [23:06:17]*** CUTSNS_PIN = 1 [23:06:17]*** CUTSNS_PIN = 0 [23:06:17]*** Brake cut motor [23:06:17]Read from MH i2c: 01 [23:06:17]MH_I2C_Read... [23:06:17]*** Stop cut motor [23:06:17]*** Cut end [23:06:17]Read from MH i2c: 01 07 00 [23:06:17]MH_I2C_Read... [23:06:17]Read from MH i2c: 01 07 00 E1 1D 00 00 00 00 00 FF 0F 13 [23:06:17]process_action close_receipt done [23:06:17]requested_data is exist [23:06:17]produce_requested_data [23:06:17]requested_item fm.sn is exist - process it [23:06:17]wFMCommunicate request_size=4 [23:06:17]MH_SAM_APDU [23:06:17]CAPDU: 80 11 00 00 [23:06:17]Write to MH i2c: E2 08 00 E2 1D 80 11 00 00 00 00 00 00 79 [23:06:17]Write i2c OK [23:06:17]MH_I2C_Read... [23:06:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:06:18]Read from MH i2c: E2 [23:06:18]MH_I2C_Read... [23:06:18]Read from MH i2c: E2 17 00 [23:06:18]MH_I2C_Read... [23:06:18]Read from MH i2c: E2 17 00 E2 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D0 [23:06:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [23:06:18]wFMCommunicate OK [23:06:18]requested_item fd.num is exist - process it [23:06:18]SAM_PROTO_GetFieldsCounters [23:06:18]wFMCommunicate request_size=4 [23:06:18]MH_SAM_APDU [23:06:18]CAPDU: 80 13 00 00 [23:06:18]Write to MH i2c: E2 08 00 E3 1D 80 13 00 00 00 00 00 00 7C [23:06:18]Write i2c OK [23:06:18]MH_I2C_Read... [23:06:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:06:18]Read from MH i2c: E2 [23:06:18]MH_I2C_Read... [23:06:18]Read from MH i2c: E2 62 00 [23:06:18]MH_I2C_Read... [23:06:18]Read from MH i2c: E2 62 00 E3 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 89 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 39 02 00 00 5E 04 04 00 39 02 00 00 57 04 04 00 3A 02 00 00 19 04 04 00 00 00 00 00 90 00 72 [23: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 89 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 39 02 00 00 5E 04 04 00 39 02 00 00 57 04 04 00 3A 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:06:18]wFMCommunicate OK [23:06:18]SAM_PROTO_GetFieldsCounters done [23:06:18]requested_item shift.num is exist - process it [23:06:18]requested_item shift.opened is exist - process it [23:06:18]req_shift_opened [23:06:18]FM_GetShiftState [23:06:18]SAM_PROTO_GetShiftState [23:06:18]wFMCommunicate request_size=4 [23:06:18]MH_SAM_APDU [23:06:18]CAPDU: 80 13 01 00 [23:06:18]Write to MH i2c: E2 08 00 E4 1D 80 13 01 00 00 00 00 00 7E [23:06:18]Write i2c OK [23:06:18]MH_I2C_Read... [23:06:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:06:18]Read from MH i2c: E2 [23:06:18]MH_I2C_Read... [23:06:18]Read from MH i2c: E2 0E 00 [23:06:18]MH_I2C_Read... [23:06:18]Read from MH i2c: E2 0E 00 E4 1D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 98 [23:06:18]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [23:06:18]wFMCommunicate OK [23:06:18]SAM_PROTO_GetShiftState done [23:06:18]FM_GetShiftState done [23:06:18]req_shift_opened done [23:06:18]requested_item shift.open_date is exist - process it [23:06:18]req_shift_open_date [23:06:18]req_shift_open_date done [23:06:18]produce_requested_data done [23:06:18]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227721,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [23:06:18]process_action_free close_receipt [23:06:18]json_value_free [23:06:18]json_value_free done [23:06:18]process_json_proto returns [23:06:18]Send response to host [23:06:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227721,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [23:06:18]free response buf [23:06:18]execute_script done [23:06:18]execute_script returns [23:06:18]free content buf [23:06:18]Sock 7.Close socket [23:06:18]Sock 7.Thread stoped [23:06:21]OFD Sender: No OFD packet to send [23:06:26]OFD Sender: No OFD packet to send [23:06:31]OFD Sender: No OFD packet to send [23:06:36]OFD Sender: No OFD packet to send [23:06:41]OFD Sender: No OFD packet to send [23:06:46]OFD Sender: No OFD packet to send [23:06:51]OFD Sender: No OFD packet to send [23:06:56]OFD Sender: No OFD packet to send [23:07:01]OFD Sender: No OFD packet to send [23:07:06]OFD Sender: No OFD packet to send [23:07:11]OFD Sender: No OFD packet to send [23:07:16]OFD Sender: No OFD packet to send [23:07:21]OFD Sender: No OFD packet to send [23:07:26]OFD Sender: No OFD packet to send [23:07:31]OFD Sender: No OFD packet to send [23:07:36]OFD Sender: No OFD packet to send [23:07:41]OFD Sender: No OFD packet to send [23:07:46]OFD Sender: No OFD packet to send [23:07:51]OFD Sender: No OFD packet to send [23:07:56]OFD Sender: No OFD packet to send [23:08:01]OFD Sender: No OFD packet to send [23:08:06]OFD Sender: No OFD packet to send [23:08:11]OFD Sender: No OFD packet to send [23:08:16]OFD Sender: No OFD packet to send [23:08:22]OFD Sender: No OFD packet to send [23:08:27]OFD Sender: No OFD packet to send [23:08:32]OFD Sender: No OFD packet to send [23:08:37]OFD Sender: No OFD packet to send [23:08:42]OFD Sender: No OFD packet to send [23:08:47]OFD Sender: No OFD packet to send [23:08:52]OFD Sender: No OFD packet to send [23:08:57]OFD Sender: No OFD packet to send [23:09:02]OFD Sender: No OFD packet to send [23:09:07]OFD Sender: No OFD packet to send [23:09:12]OFD Sender: No OFD packet to send [23:09:17]OFD Sender: No OFD packet to send [23:09:22]OFD Sender: No OFD packet to send [23:09:27]OFD Sender: No OFD packet to send [23:09:32]OFD Sender: No OFD packet to send [23:09:37]OFD Sender: No OFD packet to send [23:09:42]OFD Sender: No OFD packet to send [23:09:47]OFD Sender: No OFD packet to send [23:09:52]OFD Sender: No OFD packet to send [23:09:57]OFD Sender: No OFD packet to send [23:10:02]OFD Sender: No OFD packet to send [23:10:07]OFD Sender: No OFD packet to send [23:10:12]OFD Sender: No OFD packet to send [23:10:17]OFD Sender: No OFD packet to send [23:10:22]OFD Sender: No OFD packet to send [23:10:27]OFD Sender: No OFD packet to send [23:10:32]OFD Sender: No OFD packet to send [23:10:37]OFD Sender: No OFD packet to send [23:10:42]OFD Sender: No OFD packet to send [23:10:47]OFD Sender: No OFD packet to send [23:10:52]OFD Sender: No OFD packet to send [23:10:57]OFD Sender: No OFD packet to send [23:11:02]OFD Sender: No OFD packet to send [23:11:07]OFD Sender: No OFD packet to send [23:11:12]OFD Sender: No OFD packet to send [23:11:17]OFD Sender: No OFD packet to send [23:11:22]OFD Sender: No OFD packet to send [23:11:27]OFD Sender: No OFD packet to send [23:11:32]OFD Sender: No OFD packet to send [23:11:37]OFD Sender: No OFD packet to send [23:11:42]OFD Sender: No OFD packet to send [23:11:47]OFD Sender: No OFD packet to send [23:11:52]OFD Sender: No OFD packet to send [23:11:57]OFD Sender: No OFD packet to send [23:12:02]OFD Sender: No OFD packet to send [23:12:07]OFD Sender: No OFD packet to send [23:12:12]OFD Sender: No OFD packet to send [23:12:17]OFD Sender: No OFD packet to send [23:12:22]OFD Sender: No OFD packet to send [23:12:27]OFD Sender: No OFD packet to send [23:12:32]OFD Sender: No OFD packet to send [23:12:37]OFD Sender: No OFD packet to send [23:12:42]OFD Sender: No OFD packet to send [23:12:47]OFD Sender: No OFD packet to send [23:12:52]OFD Sender: No OFD packet to send [23:12:57]OFD Sender: No OFD packet to send [23:13:02]OFD Sender: No OFD packet to send [23:13:07]OFD Sender: No OFD packet to send [23:13:12]OFD Sender: No OFD packet to send [23:13:17]OFD Sender: No OFD packet to send [23:13:22]OFD Sender: No OFD packet to send [23:13:27]OFD Sender: No OFD packet to send [23:13:32]OFD Sender: No OFD packet to send [23:13:37]OFD Sender: No OFD packet to send [23:13:42]OFD Sender: No OFD packet to send [23:13:47]OFD Sender: No OFD packet to send [23:13:52]OFD Sender: No OFD packet to send [23:13:57]OFD Sender: No OFD packet to send [23:14:02]OFD Sender: No OFD packet to send [23:14:07]OFD Sender: No OFD packet to send [23:14:12]OFD Sender: No OFD packet to send [23:14:17]OFD Sender: No OFD packet to send [23:14:22]OFD Sender: No OFD packet to send [23:14:27]OFD Sender: No OFD packet to send [23:14:32]OFD Sender: No OFD packet to send [23:14:37]OFD Sender: No OFD packet to send [23:14:42]OFD Sender: No OFD packet to send [23:14:47]OFD Sender: No OFD packet to send [23:14:52]OFD Sender: No OFD packet to send [23:14:57]OFD Sender: No OFD packet to send [23:15:02]OFD Sender: No OFD packet to send [23:15:07]OFD Sender: No OFD packet to send [23:15:12]OFD Sender: No OFD packet to send [23:15:17]OFD Sender: No OFD packet to send [23:15:22]OFD Sender: No OFD packet to send [23:15:27]OFD Sender: No OFD packet to send [23:15:32]OFD Sender: No OFD packet to send [23:15:37]OFD Sender: No OFD packet to send [23:15:42]OFD Sender: No OFD packet to send [23:15:47]OFD Sender: No OFD packet to send [23:15:52]OFD Sender: No OFD packet to send [23:15:57]OFD Sender: No OFD packet to send [23:16:02]OFD Sender: No OFD packet to send [23:16:07]OFD Sender: No OFD packet to send [23:16:12]OFD Sender: No OFD packet to send [23:16:17]OFD Sender: No OFD packet to send [23:16:22]OFD Sender: No OFD packet to send [23:16:27]OFD Sender: No OFD packet to send [23:16:32]OFD Sender: No OFD packet to send [23:16:37]OFD Sender: No OFD packet to send [23:16:42]OFD Sender: No OFD packet to send [23:16:47]OFD Sender: No OFD packet to send [23:16:52]OFD Sender: No OFD packet to send [23:16:57]OFD Sender: No OFD packet to send [23:17:02]OFD Sender: No OFD packet to send [23:17:07]OFD Sender: No OFD packet to send [23:17:12]OFD Sender: No OFD packet to send [23:17:17]OFD Sender: No OFD packet to send [23:17:22]OFD Sender: No OFD packet to send [23:17:27]OFD Sender: No OFD packet to send [23:17:32]OFD Sender: No OFD packet to send [23:17:37]OFD Sender: No OFD packet to send [23:17:42]OFD Sender: No OFD packet to send [23:17:47]OFD Sender: No OFD packet to send [23:17:52]OFD Sender: No OFD packet to send [23:17:57]OFD Sender: No OFD packet to send [23:18:02]OFD Sender: No OFD packet to send [23:18:07]OFD Sender: No OFD packet to send [23:18:12]OFD Sender: No OFD packet to send [23:18:17]OFD Sender: No OFD packet to send [23:18:22]OFD Sender: No OFD packet to send [23:18:27]OFD Sender: No OFD packet to send [23:18:32]OFD Sender: No OFD packet to send [23:18:37]OFD Sender: No OFD packet to send [23:18:42]OFD Sender: No OFD packet to send [23:18:47]OFD Sender: No OFD packet to send [23:18:52]OFD Sender: No OFD packet to send [23:18:54]accept exits with 9 [23:18:54]New connection [23:18:54]New thread 3066809700 created [23:18:54]Thread 3066666340 joined [23:18:54]Waiting for new connection... [23:18:54] Sock 9.Parse request [23:18:54]Sock 9.Check first char [23:18:54]Sock 9.First char is OK [23:18:54]request: POST /json_proto HTTP/1.0 [23:18:54]Method: POST [23:18:54]URL: /json_proto [23:18:54]Method is POST - this is cgi request [23:18:54]url: /json_proto [23:18:54]query_string will be loaded in cgi processing [23:18:54]execute_cgi json_proto POST (null) [23:18:54]execute_cgi path=json_proto method=POST [23:18:54]POST find Content-Length [23:18:54]Host: 172.17.44.195:8080 [23:18:54]Content-Length: 678 [23:18:54]Content-Type: application/json [23:18:54] [23:18:54]POST finish read [23:18:54]Found Content-Length = 678 [23:18:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963393", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.400, "sum" : 160.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 160.00, "total" : 160.00, "payments": [ { "type": 0, "sum" : 160.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:18:54]execute_script... [23:18: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)1963393", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.400, "sum" : 160.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 160.00, "total" : 160.00, "payments": [ { "type": 0, "sum" : 160.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:18:54]POST & json_proto [23:18:54]process_json_proto [23:18:54]json parsed OK: [23:18:54]protocol is kg_v1.0 [23:18:54]action value=close_receipt [23:18:54]process_action close_receipt [23:18:54]cmd_close_receipt [23:18:54]MH_GetDate [23:18:54]Write to MH i2c: F0 00 00 E5 1D F1 [23:18:54]Write i2c OK [23:18:54]MH_I2C_Read... [23:18:54]Read from MH i2c: F0 [23:18:54]MH_I2C_Read... [23:18:54]Read from MH i2c: F0 09 00 [23:18:54]MH_I2C_Read... [23:18:54]Read from MH i2c: F0 09 00 E5 1D 00 DF 8F 15 67 82 C9 CF 66 64 [23:18:54]GetLastDocTimeStamp 1729465575 [23:18:54]current date 1729466335 [23:18:54]FM_GetShiftState [23:18:54]SAM_PROTO_GetShiftState [23:18:54]wFMCommunicate request_size=4 [23:18:54]MH_SAM_APDU [23:18:54]CAPDU: 80 13 01 00 [23:18:54]Write to MH i2c: E2 08 00 E6 1D 80 13 01 00 00 00 00 00 80 [23:18:54]Write i2c OK [23:18:54]MH_I2C_Read... [23:18:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:18:54]Read from MH i2c: E2 [23:18:54]MH_I2C_Read... [23:18:54]Read from MH i2c: E2 0E 00 [23:18:54]MH_I2C_Read... [23:18:54]Read from MH i2c: E2 0E 00 E6 1D 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 9A [23:18:54]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [23:18:54]wFMCommunicate OK [23:18:54]SAM_PROTO_GetShiftState done [23:18:54]FM_GetShiftState done [23:18:54]opened in 1729383750 [23:18:54]opened+sec_in_day 1729470150 [23:18:54]quantity*price = 16056 [23:18:54]sum+1 = 16057 [23:18:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 160.00 Внесено: 160.00 СДАЧА: 0.00 НСП 1% : 1.42 НДС 12% : 17.05 Наличными: 160.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 570 20.10.2024 23:18 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227722 ФПД: 69895492995923 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T231855&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227722&fm=69895492995923&tin=02508201610067®Number=0000000000091685&sum=16000 [23:18:55]StoreToDocumentArchive [23:18:55]shift 533 fd 227722 [23:18:55]save to /storage/0533/doc_00227722 [23:18:55]save last doc name /storage/0533/doc_00227722 to /storage/kkm_last_doc_name [23:18:55]save OK [23:18:55]Clear old archive folders... [23:18:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:18:55]tlvbuf is B6F329B0 [23:18:55]SAM_PROTO_ClearQueue [23:18:55]wFMCommunicate request_size=4 [23:18:55]MH_SAM_APDU [23:18:55]CAPDU: 80 09 00 00 [23:18:55]Write to MH i2c: E2 08 00 F3 1D 80 09 00 00 00 00 00 00 82 [23:18:55]Write i2c OK [23:18:55]MH_I2C_Read... [23:18:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:18:55]Read from MH i2c: E2 [23:18:55]MH_I2C_Read... [23:18:55]Read from MH i2c: E2 03 00 [23:18:55]MH_I2C_Read... [23:18:55]Read from MH i2c: E2 03 00 F3 1D 00 90 00 84 [23:18:55]RAPDU: 90 00 [23:18:55]wFMCommunicate OK [23:18:55]SAM_PROTO_ClearQueue done [23:18:55]KKMCreateOFDPacket [23:18:55]OFDProtocolAddRootSTLVToBuf [23:18:55]FM_MakeSignedData [23:18:55]FM_MakeSignedData [23:18:55]SAM_PROTO_SignData [23:18:55]wFMCommunicate request_size=4 [23:18:55]MH_SAM_APDU [23:18:55]CAPDU: 80 0D 01 02 [23:18:55]Write to MH i2c: E2 08 00 F4 1D 80 0D 01 02 00 00 00 00 8A [23:18:55]Write i2c OK [23:18:55]MH_I2C_Read... [23:18:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:18:55]Read from MH i2c: E2 [23:18:55]MH_I2C_Read... [23:18:55]Read from MH i2c: E2 03 00 [23:18:55]MH_I2C_Read... [23:18:55]Read from MH i2c: E2 03 00 F4 1D 00 90 00 85 [23:18:55]RAPDU: 90 00 [23:18:55]wFMCommunicate OK [23:18:55]wFMCommunicate request_size=255 [23:18:55]MH_SAM_APDU [23:18:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 09 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B8 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 02 00 00 F4 03 04 00 DF 8F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8A 79 03 00 35 04 06 00 3F [23:18:55]Write to MH i2c: E2 02 01 F5 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 09 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B8 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 02 00 00 F4 03 04 00 DF 8F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8A 79 03 00 35 04 06 00 3F 00 00 72 [23:18:55]Write i2c OK [23:18:55]MH_I2C_Read... [23:18:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:18:55]Read from MH i2c: E2 [23:18:55]MH_I2C_Read... [23:18:55]Read from MH i2c: E2 03 00 [23:18:55]MH_I2C_Read... [23:18:55]Read from MH i2c: E2 03 00 F5 1D 00 90 00 86 [23:18:55]RAPDU: 90 00 [23:18:55]wFMCommunicate OK [23:18:55]wFMCommunicate request_size=10 [23:18:55]MH_SAM_APDU [23:18:55]CAPDU: 80 0D 02 02 05 91 D0 08 0B 53 [23:18:55]Write to MH i2c: E2 0D 00 F6 1D 80 0D 02 02 05 00 91 D0 08 0B 53 00 00 5E [23:18:55]Write i2c OK [23:18:55]MH_I2C_Read... [23:18:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:18:55]Read from MH i2c: E2 [23:18:55]MH_I2C_Read... [23:18:55]Read from MH i2c: E2 03 00 [23:18:55]MH_I2C_Read... [23:18:55]Read from MH i2c: E2 03 00 F6 1D 00 90 00 87 [23:18:55]RAPDU: 90 00 [23:18:55]wFMCommunicate OK [23:18:55]wFMCommunicate request_size=4 [23:18:55]MH_SAM_APDU [23:18:55]CAPDU: 80 0D 03 02 [23:18:55]Write to MH i2c: E2 08 00 F7 1D 80 0D 03 02 00 00 00 00 8F [23:18:55]Write i2c OK [23:18:55]MH_I2C_Read... [23:18:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:18:55]Read from MH i2c: E2 [23:18:55]MH_I2C_Read... [23:18:55]Read from MH i2c: E2 0B 00 [23:18:55]MH_I2C_Read... [23:18:55]Read from MH i2c: E2 0B 00 F7 1D 00 59 20 72 98 57 4E 5B 83 90 00 96 [23:18:55]RAPDU: 59 20 72 98 57 4E 5B 83 90 00 [23:18:55]wFMCommunicate OK [23:18:55]SAM_PROTO_SignData done [23:18:55]FM_MakeSignedData done [23:18:55]CreateOFDProtocolMessage [23:18:55]wFMCommunicate request_size=4 [23:18:55]MH_SAM_APDU [23:18:55]CAPDU: 80 11 00 00 [23:18:55]Write to MH i2c: E2 08 00 F8 1D 80 11 00 00 00 00 00 00 8F [23:18:55]Write i2c OK [23:18:55]MH_I2C_Read... [23:18:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:18:55]Read from MH i2c: E2 [23:18:55]MH_I2C_Read... [23:18:55]Read from MH i2c: E2 17 00 [23:18:55]MH_I2C_Read... [23:18:55]Read from MH i2c: E2 17 00 F8 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E6 [23:18:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [23:18:55]wFMCommunicate OK [23:18:55]CreateOFDProtocolMessage done [23:18:55]OFDSenderStorePacket 227722 [23:18:55]StoreOFDPacket docnum=227722 [23:18:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 7E 2D 07 01 6C A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 09 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B8 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 02 00 00 F4 03 04 00 DF 8F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8A 79 03 00 35 04 06 00 3F 91 D0 08 0B 53 59 20 72 98 57 4E 5B 83 [23:18:55]CheckFolder [23:18:55]dirname=/storage/ofd_packets [23:18:55]CheckFolder done [23:18:55]ProducePacketName [23:18:55]name=ofd_packets/00227722 [23:18:55]NVStorageSaveData ofd_packets/00227722 [23:18:55]File name is /storage/ofd_packets/00227722 [23:18:55]Write 301 bytes [23:18:55]NVStorageSaveData done [23:18:55]OFDSenderStorePacket done [23:18:55]KKMCreateOFDPacket done [23:18:55]NVStorageSaveData kkm_last_timestamp [23:18:55]File name is /storage/kkm_last_timestamp [23:18:55]Write 4 bytes [23:18:55]NVStorageSaveData done [23:18:55]ExternCall_PrintAddStr [23:18:55]wPrintStart [23:18:55]Write to MH i2c: 01 00 00 F9 1D 16 [23:18:55]Write i2c OK [23:18:55]MH_I2C_Read... [23:18:55]Read from MH i2c: 01 [23:18:55]MH_I2C_Read... [23:18:55]Read from MH i2c: 01 07 00 [23:18:55]MH_I2C_Read... [23:18:55]Read from MH i2c: 01 07 00 F9 1D 00 00 00 00 00 FF 0F 2B [23:18:55]RasterBufferAndPrint [23:18:55]line Счет N : (1)1963393 [23:18:55]line ИНН: 02508201610067 [23:18:55]line Контрольно-Кассовый Чек [23:18:55]line ПРОДАЖА [23:18:55]line ТРК (МРК, ГНК) : 63 [23:18:55]line Товар: 2710124130 [23:18:55]line Аи-92-К-5 [23:18:55]line 2.400 * 66.90 [23:18:55]line = 160.56 [23:18:55]line НДС 12% НСП 1% [23:18:55]line > о реализуемом товаре [23:18:55]line ОКРУГЛЕНИЕ: -0.56 [23:18:55]line ИТОГО: 160.00 [23:18:55]line Внесено: 160.00 [23:18:55]line СДАЧА: 0.00 [23:18:55]line НСП 1% : 1.42 [23:18:55]line НДС 12% : 17.05 [23:18:55]line Наличными: 160.00 [23:18:55]line Безнал.: 0.00 [23:18:55]line Место: АЗС № 133 "Партнер Нефть" [23:18:55]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [23:18:55]line СНО: Общий режим [23:18:55]line Чек 570 20.10.2024 23:18 [23:18:55]line Смена: 533 ФФД: 1.0 [23:18:55]line ЗНМ: 0300000091 [23:18:55]line РНМ: 0000000000091685 [23:18:55]line Версия ККМ: 001 [23:18:55]line ФМ: 0000000000871839 [23:18:55]line ФД: 227722 [23:18:55]line ФПД: 69895492995923 [23:18:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T231855&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227722&fm=69895492995923&tin=02508201610067®Number=0000000000091685&sum=16000 [23:18:55]written 0, free lines is 4095 [23:18:55]OFD Sender: Processing packet 227722 [packets to send 38, broken 37] [23:18:55]ProducePacketName [23:18:55]name=ofd_packets/00227722 [23:18:55]OFD Sender: To server: pG, [23:18:55]CommunicateWithHost lk.salyk.kg:30040 [23:18:55]ConnectInit lk.salyk.kg [23:18:55]Connected sock=10 [23:18: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 33 39 0F 01 00 00 7E 2D 07 01 6C A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 09 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B8 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 02 00 00 F4 03 04 00 DF 8F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8A 79 03 00 35 04 06 00 3F 91 D0 08 0B 53 59 20 72 98 57 4E 5B 83 [23:18: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 33 39 4F 00 00 00 B1 E7 47 00 1A 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 33 39 10 04 04 00 8A 79 03 00 F4 03 04 00 DD 3A 15 67 B6 04 01 00 00 39 E2 55 34 C8 8E 70 43 [23:18:56]CommunicateWithHost err = 0 [23:18:56]CheckOFDResponse [23:18:56]1017 (14) - 77093643461234 [23:18:56]1041 (16) - 0000000000871839 [23:18:56]1040 (4) - 227722 [23:18:56]1012 (4) - 20.10.2024 17:16 [23:18:56]1206 (1) - 0 [23:18:56]OFD Sender: Remove packet 227722 [23:18:56]ProducePacketName [23:18:56]name=ofd_packets/00227722 [23:18:56]NVStorageDeleteData [23:18:56]Write to MH i2c: 01 00 00 23 1E 41 [23:18:56]Write i2c OK [23:18:56]MH_I2C_Read... [23:18:56]Read from MH i2c: 01 [23:18:56]MH_I2C_Read... [23:18:56]Read from MH i2c: 01 07 00 [23:18:56]MH_I2C_Read... [23:18:56]Read from MH i2c: 01 07 00 23 1E 00 00 00 00 00 A6 0C FA [23:18:56]RasterBufferAndPrint [23:18:56]line [23:18:56]line [23:18:56]line [23:18:56]line [23:18:56]line [23:18:56]written 0, free lines is 3242 [23:18:56]MH_Cut [23:18:56]Write to MH i2c: D1 01 00 2A 1E 01 1A [23:18:56]Write i2c OK [23:18:56]MH_I2C_Read... [23:18:56]Read from MH i2c: D1 [23:18:56]MH_I2C_Read... [23:18:56]Read from MH i2c: D1 01 00 [23:18:56]MH_I2C_Read... [23:18:56]Read from MH i2c: D1 01 00 2A 1E 00 19 [23:18:56]Write to MH i2c: 01 00 00 2B 1E 49 [23:18:56]Write i2c OK [23:18:56]MH_I2C_Read... [23:18:56]OFD Sender: No OFD packet to send [23:18:57]*** Cut start [23:18:57]*** Partial cut [23:18:57]*** CUTSNS_PIN = 1 [23:18:57]*** CUTSNS_PIN = 0 [23:18:57]*** Brake cut motor [23:18:57]Read from MH i2c: 01 [23:18:57]MH_I2C_Read... [23:18:57]*** Stop cut motor [23:18:57]*** Cut end [23:18:57]Read from MH i2c: 01 07 00 [23:18:57]MH_I2C_Read... [23:18:57]Read from MH i2c: 01 07 00 2B 1E 00 00 00 00 00 FF 0F 5E [23:18:57]process_action close_receipt done [23:18:57]requested_data is exist [23:18:57]produce_requested_data [23:18:57]requested_item fm.sn is exist - process it [23:18:57]wFMCommunicate request_size=4 [23:18:57]MH_SAM_APDU [23:18:57]CAPDU: 80 11 00 00 [23:18:57]Write to MH i2c: E2 08 00 2C 1E 80 11 00 00 00 00 00 00 C4 [23:18:57]Write i2c OK [23:18:57]MH_I2C_Read... [23:18:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:18:57]Read from MH i2c: E2 [23:18:57]MH_I2C_Read... [23:18:57]Read from MH i2c: E2 17 00 [23:18:57]MH_I2C_Read... [23:18:57]Read from MH i2c: E2 17 00 2C 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 1B [23:18:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [23:18:57]wFMCommunicate OK [23:18:57]requested_item fd.num is exist - process it [23:18:57]SAM_PROTO_GetFieldsCounters [23:18:57]wFMCommunicate request_size=4 [23:18:57]MH_SAM_APDU [23:18:57]CAPDU: 80 13 00 00 [23:18:57]Write to MH i2c: E2 08 00 2D 1E 80 13 00 00 00 00 00 00 C7 [23:18:57]Write i2c OK [23:18:57]MH_I2C_Read... [23:18:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:18:58]Read from MH i2c: E2 [23:18:58]MH_I2C_Read... [23:18:58]Read from MH i2c: E2 62 00 [23:18:58]MH_I2C_Read... [23:18:58]Read from MH i2c: E2 62 00 2D 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 8A 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 3A 02 00 00 5E 04 04 00 3A 02 00 00 57 04 04 00 3B 02 00 00 19 04 04 00 00 00 00 00 90 00 C1 [23:18:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 8A 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 3A 02 00 00 5E 04 04 00 3A 02 00 00 57 04 04 00 3B 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:18:58]wFMCommunicate OK [23:18:58]SAM_PROTO_GetFieldsCounters done [23:18:58]requested_item shift.num is exist - process it [23:18:58]requested_item shift.opened is exist - process it [23:18:58]req_shift_opened [23:18:58]FM_GetShiftState [23:18:58]SAM_PROTO_GetShiftState [23:18:58]wFMCommunicate request_size=4 [23:18:58]MH_SAM_APDU [23:18:58]CAPDU: 80 13 01 00 [23:18:58]Write to MH i2c: E2 08 00 2E 1E 80 13 01 00 00 00 00 00 C9 [23:18:58]Write i2c OK [23:18:58]MH_I2C_Read... [23:18:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:18:58]Read from MH i2c: E2 [23:18:58]MH_I2C_Read... [23:18:58]Read from MH i2c: E2 0E 00 [23:18:58]MH_I2C_Read... [23:18:58]Read from MH i2c: E2 0E 00 2E 1E 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 E3 [23:18:58]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [23:18:58]wFMCommunicate OK [23:18:58]SAM_PROTO_GetShiftState done [23:18:58]FM_GetShiftState done [23:18:58]req_shift_opened done [23:18:58]requested_item shift.open_date is exist - process it [23:18:58]req_shift_open_date [23:18:58]req_shift_open_date done [23:18:58]produce_requested_data done [23:18:58]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227722,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [23:18:58]process_action_free close_receipt [23:18:58]json_value_free [23:18:58]json_value_free done [23:18:58]process_json_proto returns [23:18:58]Send response to host [23:18:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227722,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [23:18:58]free response buf [23:18:58]execute_script done [23:18:58]execute_script returns [23:18:58]free content buf [23:18:58]Sock 9.Close socket [23:18:58]Sock 9.Thread stoped [23:19:01]OFD Sender: No OFD packet to send [23:19:02]accept exits with 7 [23:19:02]New connection [23:19:02]New thread 3066666340 created [23:19:02]Thread 3066809700 joined [23:19:02]Waiting for new connection... [23:19:02] Sock 7.Parse request [23:19:02]Sock 7.Check first char [23:19:02]Sock 7.First char is OK [23:19:02]request: POST /json_proto HTTP/1.0 [23:19:02]Method: POST [23:19:02]URL: /json_proto [23:19:02]Method is POST - this is cgi request [23:19:02]url: /json_proto [23:19:02]query_string will be loaded in cgi processing [23:19:02]execute_cgi json_proto POST (null) [23:19:02]execute_cgi path=json_proto method=POST [23:19:02]POST find Content-Length [23:19:02]Host: 172.17.44.195:8080 [23:19:02]Content-Length: 678 [23:19:02]Content-Type: application/json [23:19:02] [23:19:02]POST finish read [23:19:02]Found Content-Length = 678 [23:19:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963394", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:19:02]execute_script... [23:19:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963394", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:19:02]POST & json_proto [23:19:02]process_json_proto [23:19:02]json parsed OK: [23:19:02]protocol is kg_v1.0 [23:19:02]action value=close_receipt [23:19:02]process_action close_receipt [23:19:02]cmd_close_receipt [23:19:02]MH_GetDate [23:19:02]Write to MH i2c: F0 00 00 2F 1E 3C [23:19:02]Write i2c OK [23:19:02]MH_I2C_Read... [23:19:02]Read from MH i2c: F0 [23:19:02]MH_I2C_Read... [23:19:02]Read from MH i2c: F0 09 00 [23:19:02]MH_I2C_Read... [23:19:02]Read from MH i2c: F0 09 00 2F 1E 00 E8 8F 15 67 82 C9 CF 66 B8 [23:19:02]GetLastDocTimeStamp 1729466335 [23:19:02]current date 1729466344 [23:19:02]FM_GetShiftState [23:19:02]SAM_PROTO_GetShiftState [23:19:02]wFMCommunicate request_size=4 [23:19:02]MH_SAM_APDU [23:19:02]CAPDU: 80 13 01 00 [23:19:02]Write to MH i2c: E2 08 00 30 1E 80 13 01 00 00 00 00 00 CB [23:19:02]Write i2c OK [23:19:02]MH_I2C_Read... [23:19:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:19:02]Read from MH i2c: E2 [23:19:02]MH_I2C_Read... [23:19:02]Read from MH i2c: E2 0E 00 [23:19:02]MH_I2C_Read... [23:19:02]Read from MH i2c: E2 0E 00 30 1E 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 E5 [23:19:02]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [23:19:02]wFMCommunicate OK [23:19:02]SAM_PROTO_GetShiftState done [23:19:02]FM_GetShiftState done [23:19:02]opened in 1729383750 [23:19:02]opened+sec_in_day 1729470150 [23:19:02]quantity*price = 50041 [23:19:02]sum+1 = 50042 [23:19:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 571 20.10.2024 23:19 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227723 ФПД: 146524704040710 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T231904&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227723&fm=146524704040710&tin=02508201610067®Number=0000000000091685&sum=50000 [23:19:03]StoreToDocumentArchive [23:19:03]shift 533 fd 227723 [23:19:03]save to /storage/0533/doc_00227723 [23:19:03]save last doc name /storage/0533/doc_00227723 to /storage/kkm_last_doc_name [23:19:03]save OK [23:19:03]Clear old archive folders... [23:19:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:19:03]tlvbuf is 00CEA330 [23:19:03]SAM_PROTO_ClearQueue [23:19:03]wFMCommunicate request_size=4 [23:19:03]MH_SAM_APDU [23:19:03]CAPDU: 80 09 00 00 [23:19:03]Write to MH i2c: E2 08 00 3D 1E 80 09 00 00 00 00 00 00 CD [23:19:03]Write i2c OK [23:19:03]MH_I2C_Read... [23:19:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:19:03]Read from MH i2c: E2 [23:19:03]MH_I2C_Read... [23:19:03]Read from MH i2c: E2 03 00 [23:19:03]MH_I2C_Read... [23:19:03]Read from MH i2c: E2 03 00 3D 1E 00 90 00 CF [23:19:03]RAPDU: 90 00 [23:19:03]wFMCommunicate OK [23:19:03]SAM_PROTO_ClearQueue done [23:19:03]KKMCreateOFDPacket [23:19:03]OFDProtocolAddRootSTLVToBuf [23:19:03]FM_MakeSignedData [23:19:03]FM_MakeSignedData [23:19:03]SAM_PROTO_SignData [23:19:03]wFMCommunicate request_size=4 [23:19:03]MH_SAM_APDU [23:19:03]CAPDU: 80 0D 01 02 [23:19:03]Write to MH i2c: E2 08 00 3E 1E 80 0D 01 02 00 00 00 00 D5 [23:19:03]Write i2c OK [23:19:03]MH_I2C_Read... [23:19:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:19:03]Read from MH i2c: E2 [23:19:03]MH_I2C_Read... [23:19:03]Read from MH i2c: E2 03 00 [23:19:03]MH_I2C_Read... [23:19:03]Read from MH i2c: E2 03 00 3E 1E 00 90 00 D0 [23:19:03]RAPDU: 90 00 [23:19:03]wFMCommunicate OK [23:19:03]wFMCommunicate request_size=255 [23:19:03]MH_SAM_APDU [23:19:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 02 00 00 F4 03 04 00 E8 8F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8B 79 03 00 35 04 06 00 85 [23:19:03]Write to MH i2c: E2 02 01 3F 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 02 00 00 F4 03 04 00 E8 8F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8B 79 03 00 35 04 06 00 85 00 00 3F [23:19:03]Write i2c OK [23:19:03]MH_I2C_Read... [23:19:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:19:04]Read from MH i2c: E2 [23:19:04]MH_I2C_Read... [23:19:04]Read from MH i2c: E2 03 00 [23:19:04]MH_I2C_Read... [23:19:04]Read from MH i2c: E2 03 00 3F 1E 00 90 00 D1 [23:19:04]RAPDU: 90 00 [23:19:04]wFMCommunicate OK [23:19:04]wFMCommunicate request_size=10 [23:19:04]MH_SAM_APDU [23:19:04]CAPDU: 80 0D 02 02 05 43 70 EF 67 06 [23:19:04]Write to MH i2c: E2 0D 00 40 1E 80 0D 02 02 05 00 43 70 EF 67 06 00 00 F1 [23:19:04]Write i2c OK [23:19:04]MH_I2C_Read... [23:19:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:19:04]Read from MH i2c: E2 [23:19:04]MH_I2C_Read... [23:19:04]Read from MH i2c: E2 03 00 [23:19:04]MH_I2C_Read... [23:19:04]Read from MH i2c: E2 03 00 40 1E 00 90 00 D2 [23:19:04]RAPDU: 90 00 [23:19:04]wFMCommunicate OK [23:19:04]wFMCommunicate request_size=4 [23:19:04]MH_SAM_APDU [23:19:04]CAPDU: 80 0D 03 02 [23:19:04]Write to MH i2c: E2 08 00 41 1E 80 0D 03 02 00 00 00 00 DA [23:19:04]Write i2c OK [23:19:04]MH_I2C_Read... [23:19:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:19:04]Read from MH i2c: E2 [23:19:04]MH_I2C_Read... [23:19:04]Read from MH i2c: E2 0B 00 [23:19:04]MH_I2C_Read... [23:19:04]Read from MH i2c: E2 0B 00 41 1E 00 A9 EF 2A 9C FA FB 08 D8 90 00 0E [23:19:04]RAPDU: A9 EF 2A 9C FA FB 08 D8 90 00 [23:19:04]wFMCommunicate OK [23:19:04]SAM_PROTO_SignData done [23:19:04]FM_MakeSignedData done [23:19:04]CreateOFDProtocolMessage [23:19:04]wFMCommunicate request_size=4 [23:19:04]MH_SAM_APDU [23:19:04]CAPDU: 80 11 00 00 [23:19:04]Write to MH i2c: E2 08 00 42 1E 80 11 00 00 00 00 00 00 DA [23:19:04]Write i2c OK [23:19:04]MH_I2C_Read... [23:19:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:19:04]Read from MH i2c: E2 [23:19:04]MH_I2C_Read... [23:19:04]Read from MH i2c: E2 17 00 [23:19:04]MH_I2C_Read... [23:19:04]Read from MH i2c: E2 17 00 42 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 31 [23:19:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [23:19:04]wFMCommunicate OK [23:19:04]CreateOFDProtocolMessage done [23:19:04]OFDSenderStorePacket 227723 [23:19:04]StoreOFDPacket docnum=227723 [23:19:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 A7 25 07 01 80 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 02 00 00 F4 03 04 00 E8 8F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8B 79 03 00 35 04 06 00 85 43 70 EF 67 06 A9 EF 2A 9C FA FB 08 D8 [23:19:04]CheckFolder [23:19:04]dirname=/storage/ofd_packets [23:19:04]CheckFolder done [23:19:04]ProducePacketName [23:19:04]name=ofd_packets/00227723 [23:19:04]NVStorageSaveData ofd_packets/00227723 [23:19:04]File name is /storage/ofd_packets/00227723 [23:19:04]Write 301 bytes [23:19:04]NVStorageSaveData done [23:19:04]OFDSenderStorePacket done [23:19:04]KKMCreateOFDPacket done [23:19:04]NVStorageSaveData kkm_last_timestamp [23:19:04]File name is /storage/kkm_last_timestamp [23:19:04]Write 4 bytes [23:19:04]NVStorageSaveData done [23:19:04]ExternCall_PrintAddStr [23:19:04]wPrintStart [23:19:04]Write to MH i2c: 01 00 00 43 1E 61 [23:19:04]Write i2c OK [23:19:04]MH_I2C_Read... [23:19:04]Read from MH i2c: 01 [23:19:04]MH_I2C_Read... [23:19:04]Read from MH i2c: 01 07 00 [23:19:04]MH_I2C_Read... [23:19:04]Read from MH i2c: 01 07 00 43 1E 00 00 00 00 00 FF 0F 76 [23:19:04]RasterBufferAndPrint [23:19:04]line Счет N : (1)1963394 [23:19:04]line ИНН: 02508201610067 [23:19:04]line Контрольно-Кассовый Чек [23:19:04]line ПРОДАЖА [23:19:04]line ТРК (МРК, ГНК) : 43 [23:19:04]line Товар: 2710124130 [23:19:04]line Аи-92-К-5 [23:19:04]line 7.480 * 66.90 [23:19:04]line = 500.41 [23:19:04]line НДС 12% НСП 1% [23:19:04]line > о реализуемом товаре [23:19:04]line ОКРУГЛЕНИЕ: -0.41 [23:19:04]line ИТОГО: 500.00 [23:19:04]line Внесено: 500.00 [23:19:04]line СДАЧА: 0.00 [23:19:04]line НСП 1% : 4.43 [23:19:04]line НДС 12% : 53.14 [23:19:04]line Наличными: 500.00 [23:19:04]line Безнал.: 0.00 [23:19:04]line Место: АЗС № 133 "Партнер Нефть" [23:19:04]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [23:19:04]line СНО: Общий режим [23:19:04]line Чек 571 20.10.2024 23:19 [23:19:04]line Смена: 533 ФФД: 1.0 [23:19:04]line ЗНМ: 0300000091 [23:19:04]line РНМ: 0000000000091685 [23:19:04]line Версия ККМ: 001 [23:19:04]line ФМ: 0000000000871839 [23:19:04]line ФД: 227723 [23:19:04]line ФПД: 146524704040710 [23:19:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T231904&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227723&fm=146524704040710&tin=02508201610067®Number=0000000000091685&sum=50000 [23:19:04]written 0, free lines is 4095 [23:19:04]OFD Sender: Processing packet 227723 [packets to send 38, broken 37] [23:19:04]ProducePacketName [23:19:04]name=ofd_packets/00227723 [23:19:04]OFD Sender: To server: pG, [23:19:04]CommunicateWithHost lk.salyk.kg:30040 [23:19:04]ConnectInit lk.salyk.kg [23:19:04]Connected sock=10 [23:19:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 A7 25 07 01 80 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 02 00 00 F4 03 04 00 E8 8F 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8B 79 03 00 35 04 06 00 85 43 70 EF 67 06 A9 EF 2A 9C FA FB 08 D8 [23:19:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 5C 36 47 00 FD 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 33 39 10 04 04 00 8B 79 03 00 F4 03 04 00 E5 3A 15 67 B6 04 01 00 00 3A 84 EC 09 90 06 6C 28 [23:19:04]CommunicateWithHost err = 0 [23:19:04]CheckOFDResponse [23:19:04]1017 (14) - 77093643461234 [23:19:04]1041 (16) - 0000000000871839 [23:19:04]1040 (4) - 227723 [23:19:04]1012 (4) - 20.10.2024 17:16 [23:19:04]1206 (1) - 0 [23:19:04]OFD Sender: Remove packet 227723 [23:19:04]ProducePacketName [23:19:04]name=ofd_packets/00227723 [23:19:04]NVStorageDeleteData [23:19:04]Write to MH i2c: 01 00 00 6D 1E 8B [23:19:04]Write i2c OK [23:19:04]MH_I2C_Read... [23:19:04]Read from MH i2c: 01 [23:19:04]MH_I2C_Read... [23:19:04]Read from MH i2c: 01 07 00 [23:19:04]MH_I2C_Read... [23:19:04]Read from MH i2c: 01 07 00 6D 1E 00 00 00 00 00 AA 0C 48 [23:19:04]RasterBufferAndPrint [23:19:04]line [23:19:04]line [23:19:04]line [23:19:04]line [23:19:04]line [23:19:04]written 0, free lines is 3248 [23:19:04]MH_Cut [23:19:04]Write to MH i2c: D1 01 00 74 1E 01 64 [23:19:04]Write i2c OK [23:19:04]MH_I2C_Read... [23:19:04]Read from MH i2c: D1 [23:19:04]MH_I2C_Read... [23:19:04]Read from MH i2c: D1 01 00 [23:19:04]MH_I2C_Read... [23:19:04]Read from MH i2c: D1 01 00 74 1E 00 63 [23:19:04]Write to MH i2c: 01 00 00 75 1E 93 [23:19:04]Write i2c OK [23:19:04]MH_I2C_Read... [23:19:05]OFD Sender: No OFD packet to send [23:19:05]*** Cut start [23:19:05]*** Partial cut [23:19:05]*** CUTSNS_PIN = 1 [23:19:05]*** CUTSNS_PIN = 0 [23:19:05]*** Brake cut motor [23:19:06]Read from MH i2c: 01 [23:19:06]MH_I2C_Read... [23:19:06]*** Stop cut motor [23:19:06]*** Cut end [23:19:06]Read from MH i2c: 01 07 00 [23:19:06]MH_I2C_Read... [23:19:06]Read from MH i2c: 01 07 00 75 1E 00 00 00 00 00 FF 0F A8 [23:19:06]process_action close_receipt done [23:19:06]requested_data is exist [23:19:06]produce_requested_data [23:19:06]requested_item fm.sn is exist - process it [23:19:06]wFMCommunicate request_size=4 [23:19:06]MH_SAM_APDU [23:19:06]CAPDU: 80 11 00 00 [23:19:06]Write to MH i2c: E2 08 00 76 1E 80 11 00 00 00 00 00 00 0E [23:19:06]Write i2c OK [23:19:06]MH_I2C_Read... [23:19:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:19:06]Read from MH i2c: E2 [23:19:06]MH_I2C_Read... [23:19:06]Read from MH i2c: E2 17 00 [23:19:06]MH_I2C_Read... [23:19:06]Read from MH i2c: E2 17 00 76 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 65 [23:19:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [23:19:06]wFMCommunicate OK [23:19:06]requested_item fd.num is exist - process it [23:19:06]SAM_PROTO_GetFieldsCounters [23:19:06]wFMCommunicate request_size=4 [23:19:06]MH_SAM_APDU [23:19:06]CAPDU: 80 13 00 00 [23:19:06]Write to MH i2c: E2 08 00 77 1E 80 13 00 00 00 00 00 00 11 [23:19:06]Write i2c OK [23:19:06]MH_I2C_Read... [23:19:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:19:06]Read from MH i2c: E2 [23:19:06]MH_I2C_Read... [23:19:06]Read from MH i2c: E2 62 00 [23:19:06]MH_I2C_Read... [23:19:06]Read from MH i2c: E2 62 00 77 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 8B 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 3B 02 00 00 5E 04 04 00 3B 02 00 00 57 04 04 00 3C 02 00 00 19 04 04 00 00 00 00 00 90 00 0F [23:19:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 8B 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 3B 02 00 00 5E 04 04 00 3B 02 00 00 57 04 04 00 3C 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:19:06]wFMCommunicate OK [23:19:06]SAM_PROTO_GetFieldsCounters done [23:19:06]requested_item shift.num is exist - process it [23:19:06]requested_item shift.opened is exist - process it [23:19:06]req_shift_opened [23:19:06]FM_GetShiftState [23:19:06]SAM_PROTO_GetShiftState [23:19:06]wFMCommunicate request_size=4 [23:19:06]MH_SAM_APDU [23:19:06]CAPDU: 80 13 01 00 [23:19:06]Write to MH i2c: E2 08 00 78 1E 80 13 01 00 00 00 00 00 13 [23:19:06]Write i2c OK [23:19:06]MH_I2C_Read... [23:19:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:19:06]Read from MH i2c: E2 [23:19:06]MH_I2C_Read... [23:19:06]Read from MH i2c: E2 0E 00 [23:19:06]MH_I2C_Read... [23:19:06]Read from MH i2c: E2 0E 00 78 1E 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 2D [23:19:06]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [23:19:06]wFMCommunicate OK [23:19:06]SAM_PROTO_GetShiftState done [23:19:06]FM_GetShiftState done [23:19:06]req_shift_opened done [23:19:06]requested_item shift.open_date is exist - process it [23:19:06]req_shift_open_date [23:19:06]req_shift_open_date done [23:19:06]produce_requested_data done [23:19:06]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227723,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [23:19:06]process_action_free close_receipt [23:19:06]json_value_free [23:19:06]json_value_free done [23:19:06]process_json_proto returns [23:19:06]Send response to host [23:19:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227723,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [23:19:06]free response buf [23:19:06]execute_script done [23:19:06]execute_script returns [23:19:06]free content buf [23:19:06]Sock 7.Close socket [23:19:06]Sock 7.Thread stoped [23:19:10]OFD Sender: No OFD packet to send [23:19:15]OFD Sender: No OFD packet to send [23:19:20]OFD Sender: No OFD packet to send [23:19:25]OFD Sender: No OFD packet to send [23:19:30]OFD Sender: No OFD packet to send [23:19:35]OFD Sender: No OFD packet to send [23:19:40]OFD Sender: No OFD packet to send [23:19:45]OFD Sender: No OFD packet to send [23:19:50]OFD Sender: No OFD packet to send [23:19:55]OFD Sender: No OFD packet to send [23:20:00]OFD Sender: No OFD packet to send [23:20:05]OFD Sender: No OFD packet to send [23:20:10]OFD Sender: No OFD packet to send [23:20:15]OFD Sender: No OFD packet to send [23:20:20]OFD Sender: No OFD packet to send [23:20:25]OFD Sender: No OFD packet to send [23:20:30]OFD Sender: No OFD packet to send [23:20:35]OFD Sender: No OFD packet to send [23:20:40]OFD Sender: No OFD packet to send [23:20:45]OFD Sender: No OFD packet to send [23:20:50]OFD Sender: No OFD packet to send [23:20:55]OFD Sender: No OFD packet to send [23:21:00]OFD Sender: No OFD packet to send [23:21:05]OFD Sender: No OFD packet to send [23:21:10]OFD Sender: No OFD packet to send [23:21:15]OFD Sender: No OFD packet to send [23:21:20]OFD Sender: No OFD packet to send [23:21:25]OFD Sender: No OFD packet to send [23:21:30]OFD Sender: No OFD packet to send [23:21:35]OFD Sender: No OFD packet to send [23:21:40]OFD Sender: No OFD packet to send [23:21:45]OFD Sender: No OFD packet to send [23:21:50]OFD Sender: No OFD packet to send [23:21:55]OFD Sender: No OFD packet to send [23:22:00]OFD Sender: No OFD packet to send [23:22:00]accept exits with 9 [23:22:00]New connection [23:22:00]New thread 3066809700 created [23:22:00]Thread 3066666340 joined [23:22:00]Waiting for new connection... [23:22:00] Sock 9.Parse request [23:22:00]Sock 9.Check first char [23:22:00]Sock 9.First char is OK [23:22:00]request: POST /json_proto HTTP/1.0 [23:22:00]Method: POST [23:22:00]URL: /json_proto [23:22:00]Method is POST - this is cgi request [23:22:00]url: /json_proto [23:22:00]query_string will be loaded in cgi processing [23:22:00]execute_cgi json_proto POST (null) [23:22:00]execute_cgi path=json_proto method=POST [23:22:00]POST find Content-Length [23:22:00]Host: 172.17.44.195:8080 [23:22:00]Content-Length: 770 [23:22:00]Content-Type: application/json [23:22:00] [23:22:00]POST finish read [23:22:00]Found Content-Length = 770 [23:22:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963395", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 36.390, "sum" : 2700.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: Mbank", "payments": [ { "type": 1, "sum" : 2700.14 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:22:00]execute_script... [23:22: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)1963395", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 36.390, "sum" : 2700.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: Mbank", "payments": [ { "type": 1, "sum" : 2700.14 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:22:00]POST & json_proto [23:22:00]process_json_proto [23:22:00]json parsed OK: [23:22:00]protocol is kg_v1.0 [23:22:00]action value=close_receipt [23:22:00]process_action close_receipt [23:22:00]cmd_close_receipt [23:22:00]MH_GetDate [23:22:00]Write to MH i2c: F0 00 00 79 1E 86 [23:22:00]Write i2c OK [23:22:00]MH_I2C_Read... [23:22:00]Read from MH i2c: F0 [23:22:00]MH_I2C_Read... [23:22:00]Read from MH i2c: F0 09 00 [23:22:00]MH_I2C_Read... [23:22:00]Read from MH i2c: F0 09 00 79 1E 00 9A 90 15 67 82 C9 CF 66 B5 [23:22:00]GetLastDocTimeStamp 1729466344 [23:22:00]current date 1729466522 [23:22:00]FM_GetShiftState [23:22:00]SAM_PROTO_GetShiftState [23:22:00]wFMCommunicate request_size=4 [23:22:00]MH_SAM_APDU [23:22:00]CAPDU: 80 13 01 00 [23:22:00]Write to MH i2c: E2 08 00 7A 1E 80 13 01 00 00 00 00 00 15 [23:22:00]Write i2c OK [23:22:00]MH_I2C_Read... [23:22:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:22:00]Read from MH i2c: E2 [23:22:00]MH_I2C_Read... [23:22:00]Read from MH i2c: E2 0E 00 [23:22:00]MH_I2C_Read... [23:22:00]Read from MH i2c: E2 0E 00 7A 1E 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 2F [23:22:00]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [23:22:00]wFMCommunicate OK [23:22:00]SAM_PROTO_GetShiftState done [23:22:00]FM_GetShiftState done [23:22:00]opened in 1729383750 [23:22:00]opened+sec_in_day 1729470150 [23:22:00]quantity*price = 270013 [23:22:00]sum+1 = 270015 [23:22:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2700.14 НСП 1% : 23.89 НДС 12% : 286.74 Наличными: 0.00 Безнал.: 2700.14 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 572 20.10.2024 23:22 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 227724 ФПД: 273525487271525 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T232202&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227724&fm=273525487271525&tin=02508201610067®Number=0000000000091685&sum=270014 [23:22:02]StoreToDocumentArchive [23:22:02]shift 533 fd 227724 [23:22:02]save to /storage/0533/doc_00227724 [23:22:02]save last doc name /storage/0533/doc_00227724 to /storage/kkm_last_doc_name [23:22:02]save OK [23:22:02]Clear old archive folders... [23:22:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:22:02]tlvbuf is 00C83DB0 [23:22:02]SAM_PROTO_ClearQueue [23:22:02]wFMCommunicate request_size=4 [23:22:02]MH_SAM_APDU [23:22:02]CAPDU: 80 09 00 00 [23:22:02]Write to MH i2c: E2 08 00 87 1E 80 09 00 00 00 00 00 00 17 [23:22:02]Write i2c OK [23:22:02]MH_I2C_Read... [23:22:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:22:02]Read from MH i2c: E2 [23:22:02]MH_I2C_Read... [23:22:02]Read from MH i2c: E2 03 00 [23:22:02]MH_I2C_Read... [23:22:02]Read from MH i2c: E2 03 00 87 1E 00 90 00 19 [23:22:02]RAPDU: 90 00 [23:22:02]wFMCommunicate OK [23:22:02]SAM_PROTO_ClearQueue done [23:22:02]KKMCreateOFDPacket [23:22:02]OFDProtocolAddRootSTLVToBuf [23:22:02]FM_MakeSignedData [23:22:02]FM_MakeSignedData [23:22:02]SAM_PROTO_SignData [23:22:02]wFMCommunicate request_size=4 [23:22:02]MH_SAM_APDU [23:22:02]CAPDU: 80 0D 01 02 [23:22:02]Write to MH i2c: E2 08 00 88 1E 80 0D 01 02 00 00 00 00 1F [23:22:02]Write i2c OK [23:22:02]MH_I2C_Read... [23:22:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:22:02]Read from MH i2c: E2 [23:22:02]MH_I2C_Read... [23:22:02]Read from MH i2c: E2 03 00 [23:22:02]MH_I2C_Read... [23:22:02]Read from MH i2c: E2 03 00 88 1E 00 90 00 1A [23:22:02]RAPDU: 90 00 [23:22:02]wFMCommunicate OK [23:22:02]wFMCommunicate request_size=255 [23:22:02]MH_SAM_APDU [23:22:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 8E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 1E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 1E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 70 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 1E 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 02 00 00 F4 03 04 00 9A 90 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8C 79 03 00 35 04 06 00 F8 [23:22:02]Write to MH i2c: E2 02 01 89 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 8E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 1E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 1E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 70 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 1E 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 02 00 00 F4 03 04 00 9A 90 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8C 79 03 00 35 04 06 00 F8 00 00 6C [23:22:02]Write i2c OK [23:22:02]MH_I2C_Read... [23:22:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:22:02]Read from MH i2c: E2 [23:22:02]MH_I2C_Read... [23:22:02]Read from MH i2c: E2 03 00 [23:22:02]MH_I2C_Read... [23:22:02]Read from MH i2c: E2 03 00 89 1E 00 90 00 1B [23:22:02]RAPDU: 90 00 [23:22:02]wFMCommunicate OK [23:22:02]wFMCommunicate request_size=10 [23:22:02]MH_SAM_APDU [23:22:02]CAPDU: 80 0D 02 02 05 C5 1D 81 7E 65 [23:22:02]Write to MH i2c: E2 0D 00 8A 1E 80 0D 02 02 05 00 C5 1D 81 7E 65 00 00 72 [23:22:02]Write i2c OK [23:22:02]MH_I2C_Read... [23:22:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:22:02]Read from MH i2c: E2 [23:22:02]MH_I2C_Read... [23:22:02]Read from MH i2c: E2 03 00 [23:22:02]MH_I2C_Read... [23:22:02]Read from MH i2c: E2 03 00 8A 1E 00 90 00 1C [23:22:02]RAPDU: 90 00 [23:22:02]wFMCommunicate OK [23:22:02]wFMCommunicate request_size=4 [23:22:02]MH_SAM_APDU [23:22:02]CAPDU: 80 0D 03 02 [23:22:02]Write to MH i2c: E2 08 00 8B 1E 80 0D 03 02 00 00 00 00 24 [23:22:02]Write i2c OK [23:22:02]MH_I2C_Read... [23:22:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:22:02]Read from MH i2c: E2 [23:22:02]MH_I2C_Read... [23:22:02]Read from MH i2c: E2 0B 00 [23:22:02]MH_I2C_Read... [23:22:02]Read from MH i2c: E2 0B 00 8B 1E 00 AD 48 29 E8 87 5D 8D 73 90 00 0F [23:22:02]RAPDU: AD 48 29 E8 87 5D 8D 73 90 00 [23:22:02]wFMCommunicate OK [23:22:02]SAM_PROTO_SignData done [23:22:02]FM_MakeSignedData done [23:22:02]CreateOFDProtocolMessage [23:22:02]wFMCommunicate request_size=4 [23:22:02]MH_SAM_APDU [23:22:02]CAPDU: 80 11 00 00 [23:22:02]Write to MH i2c: E2 08 00 8C 1E 80 11 00 00 00 00 00 00 24 [23:22:02]Write i2c OK [23:22:02]MH_I2C_Read... [23:22:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:22:02]Read from MH i2c: E2 [23:22:02]MH_I2C_Read... [23:22:02]Read from MH i2c: E2 17 00 [23:22:02]MH_I2C_Read... [23:22:02]Read from MH i2c: E2 17 00 8C 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 7B [23:22:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [23:22:02]wFMCommunicate OK [23:22:02]CreateOFDProtocolMessage done [23:22:02]OFDSenderStorePacket 227724 [23:22:02]StoreOFDPacket docnum=227724 [23:22:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 D3 19 07 01 04 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 8E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 1E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 1E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 70 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 1E 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 02 00 00 F4 03 04 00 9A 90 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8C 79 03 00 35 04 06 00 F8 C5 1D 81 7E 65 AD 48 29 E8 87 5D 8D 73 [23:22:02]CheckFolder [23:22:02]dirname=/storage/ofd_packets [23:22:02]CheckFolder done [23:22:02]ProducePacketName [23:22:02]name=ofd_packets/00227724 [23:22:02]NVStorageSaveData ofd_packets/00227724 [23:22:02]File name is /storage/ofd_packets/00227724 [23:22:02]Write 301 bytes [23:22:02]NVStorageSaveData done [23:22:02]OFDSenderStorePacket done [23:22:02]KKMCreateOFDPacket done [23:22:02]NVStorageSaveData kkm_last_timestamp [23:22:02]File name is /storage/kkm_last_timestamp [23:22:02]Write 4 bytes [23:22:02]NVStorageSaveData done [23:22:02]ExternCall_PrintAddStr [23:22:02]wPrintStart [23:22:02]Write to MH i2c: 01 00 00 8D 1E AB [23:22:02]Write i2c OK [23:22:02]MH_I2C_Read... [23:22:02]Read from MH i2c: 01 [23:22:02]MH_I2C_Read... [23:22:02]Read from MH i2c: 01 07 00 [23:22:02]MH_I2C_Read... [23:22:02]Read from MH i2c: 01 07 00 8D 1E 00 00 00 00 00 FF 0F C0 [23:22:02]RasterBufferAndPrint [23:22:02]line Счет N : (1)1963395 [23:22:02]line ИНН: 02508201610067 [23:22:02]line Контрольно-Кассовый Чек [23:22:02]line ПРОДАЖА [23:22:02]line ТРК (МРК, ГНК) : 54 [23:22:02]line Товар: 2710124500 [23:22:02]line Аи-95-К-5 [23:22:02]line 36.390 * 74.20 [23:22:02]line = 2700.14 [23:22:02]line НДС 12% НСП 1% [23:22:02]line > о реализуемом товаре [23:22:02]line ИТОГО: 2700.14 [23:22:02]line НСП 1% : 23.89 [23:22:02]line НДС 12% : 286.74 [23:22:02]line Наличными: 0.00 [23:22:02]line Безнал.: 2700.14 [23:22:02]line Место: АЗС № 133 "Партнер Нефть" [23:22:02]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [23:22:02]line СНО: Общий режим [23:22:02]line Чек 572 20.10.2024 23:22 [23:22:02]line Смена: 533 ФФД: 1.0 [23:22:02]line ЗНМ: 0300000091 [23:22:02]line РНМ: 0000000000091685 [23:22:02]line Версия ККМ: 001 [23:22:02]line Платежная система: Mbank [23:22:02]line ФМ: 0000000000871839 [23:22:02]line ФД: 227724 [23:22:02]line ФПД: 273525487271525 [23:22:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T232202&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227724&fm=273525487271525&tin=02508201610067®Number=0000000000091685&sum=270014 [23:22:02]written 0, free lines is 4095 [23:22:02]OFD Sender: Processing packet 227724 [packets to send 38, broken 37] [23:22:02]ProducePacketName [23:22:02]name=ofd_packets/00227724 [23:22:02]OFD Sender: To server: pG, [23:22:02]CommunicateWithHost lk.salyk.kg:30040 [23:22:02]ConnectInit lk.salyk.kg [23:22:02]Connected sock=10 [23:22: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 33 39 0F 01 00 00 D3 19 07 01 04 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 8E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 1E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 1E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 70 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 1E 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 02 00 00 F4 03 04 00 9A 90 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8C 79 03 00 35 04 06 00 F8 C5 1D 81 7E 65 AD 48 29 E8 87 5D 8D 73 [23:22: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 33 39 4F 00 00 00 48 99 47 00 67 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8C 79 03 00 F4 03 04 00 97 3B 15 67 B6 04 01 00 00 A4 E0 E2 D0 79 79 64 B9 [23:22:02]CommunicateWithHost err = 0 [23:22:02]CheckOFDResponse [23:22:02]1017 (14) - 77093643461234 [23:22:02]1041 (16) - 0000000000871839 [23:22:02]1040 (4) - 227724 [23:22:02]1012 (4) - 20.10.2024 17:19 [23:22:02]1206 (1) - 0 [23:22:02]OFD Sender: Remove packet 227724 [23:22:02]ProducePacketName [23:22:02]name=ofd_packets/00227724 [23:22:02]NVStorageDeleteData [23:22:03]Write to MH i2c: 01 00 00 B5 1E D3 [23:22:03]Write i2c OK [23:22:03]MH_I2C_Read... [23:22:03]Read from MH i2c: 01 [23:22:03]MH_I2C_Read... [23:22:03]Read from MH i2c: 01 07 00 [23:22:03]MH_I2C_Read... [23:22:03]Read from MH i2c: 01 07 00 B5 1E 00 00 00 00 00 DE 0C C4 [23:22:03]RasterBufferAndPrint [23:22:03]line [23:22:03]line [23:22:03]line [23:22:03]line [23:22:03]line [23:22:03]written 0, free lines is 3299 [23:22:03]MH_Cut [23:22:03]Write to MH i2c: D1 01 00 BC 1E 01 AC [23:22:03]Write i2c OK [23:22:03]MH_I2C_Read... [23:22:03]Read from MH i2c: D1 [23:22:03]MH_I2C_Read... [23:22:03]Read from MH i2c: D1 01 00 [23:22:03]MH_I2C_Read... [23:22:03]Read from MH i2c: D1 01 00 BC 1E 00 AB [23:22:03]Write to MH i2c: 01 00 00 BD 1E DB [23:22:03]Write i2c OK [23:22:03]MH_I2C_Read... [23:22:03]OFD Sender: No OFD packet to send [23:22:03]*** Cut start [23:22:03]*** Partial cut [23:22:03]*** CUTSNS_PIN = 1 [23:22:04]*** CUTSNS_PIN = 0 [23:22:04]*** Brake cut motor [23:22:04]Read from MH i2c: 01 [23:22:04]MH_I2C_Read... [23:22:04]*** Stop cut motor [23:22:04]*** Cut end [23:22:04]Read from MH i2c: 01 07 00 [23:22:04]MH_I2C_Read... [23:22:04]Read from MH i2c: 01 07 00 BD 1E 00 00 00 00 00 FF 0F F0 [23:22:04]process_action close_receipt done [23:22:04]requested_data is exist [23:22:04]produce_requested_data [23:22:04]requested_item fm.sn is exist - process it [23:22:04]wFMCommunicate request_size=4 [23:22:04]MH_SAM_APDU [23:22:04]CAPDU: 80 11 00 00 [23:22:04]Write to MH i2c: E2 08 00 BE 1E 80 11 00 00 00 00 00 00 56 [23:22:04]Write i2c OK [23:22:04]MH_I2C_Read... [23:22:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:22:04]Read from MH i2c: E2 [23:22:04]MH_I2C_Read... [23:22:04]Read from MH i2c: E2 17 00 [23:22:04]MH_I2C_Read... [23:22:04]Read from MH i2c: E2 17 00 BE 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 AD [23:22:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [23:22:04]wFMCommunicate OK [23:22:04]requested_item fd.num is exist - process it [23:22:04]SAM_PROTO_GetFieldsCounters [23:22:04]wFMCommunicate request_size=4 [23:22:04]MH_SAM_APDU [23:22:04]CAPDU: 80 13 00 00 [23:22:04]Write to MH i2c: E2 08 00 BF 1E 80 13 00 00 00 00 00 00 59 [23:22:04]Write i2c OK [23:22:04]MH_I2C_Read... [23:22:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:22:04]Read from MH i2c: E2 [23:22:04]MH_I2C_Read... [23:22:04]Read from MH i2c: E2 62 00 [23:22:04]MH_I2C_Read... [23:22:04]Read from MH i2c: E2 62 00 BF 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 8C 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 3C 02 00 00 5E 04 04 00 3C 02 00 00 57 04 04 00 3D 02 00 00 19 04 04 00 00 00 00 00 90 00 5B [23:22: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 8C 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 3C 02 00 00 5E 04 04 00 3C 02 00 00 57 04 04 00 3D 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:22:04]wFMCommunicate OK [23:22:04]SAM_PROTO_GetFieldsCounters done [23:22:04]requested_item shift.num is exist - process it [23:22:04]requested_item shift.opened is exist - process it [23:22:04]req_shift_opened [23:22:04]FM_GetShiftState [23:22:04]SAM_PROTO_GetShiftState [23:22:04]wFMCommunicate request_size=4 [23:22:04]MH_SAM_APDU [23:22:04]CAPDU: 80 13 01 00 [23:22:04]Write to MH i2c: E2 08 00 C0 1E 80 13 01 00 00 00 00 00 5B [23:22:04]Write i2c OK [23:22:04]MH_I2C_Read... [23:22:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:22:04]Read from MH i2c: E2 [23:22:04]MH_I2C_Read... [23:22:04]Read from MH i2c: E2 0E 00 [23:22:04]MH_I2C_Read... [23:22:04]Read from MH i2c: E2 0E 00 C0 1E 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 75 [23:22:04]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [23:22:04]wFMCommunicate OK [23:22:04]SAM_PROTO_GetShiftState done [23:22:04]FM_GetShiftState done [23:22:04]req_shift_opened done [23:22:04]requested_item shift.open_date is exist - process it [23:22:04]req_shift_open_date [23:22:04]req_shift_open_date done [23:22:04]produce_requested_data done [23:22:04]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227724,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [23:22:04]process_action_free close_receipt [23:22:04]json_value_free [23:22:04]json_value_free done [23:22:04]process_json_proto returns [23:22:04]Send response to host [23:22:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227724,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [23:22:04]free response buf [23:22:04]execute_script done [23:22:04]execute_script returns [23:22:04]free content buf [23:22:04]Sock 9.Close socket [23:22:04]Sock 9.Thread stoped [23:22:05]accept exits with 7 [23:22:05]New connection [23:22:05]New thread 3066666340 created [23:22:05]Thread 3066809700 joined [23:22:05]Waiting for new connection... [23:22:05] Sock 7.Parse request [23:22:05]Sock 7.Check first char [23:22:05]Sock 7.First char is OK [23:22:05]request: POST /json_proto HTTP/1.0 [23:22:05]Method: POST [23:22:05]URL: /json_proto [23:22:05]Method is POST - this is cgi request [23:22:05]url: /json_proto [23:22:05]query_string will be loaded in cgi processing [23:22:05]execute_cgi json_proto POST (null) [23:22:05]execute_cgi path=json_proto method=POST [23:22:05]POST find Content-Length [23:22:05]Host: 172.17.44.195:8080 [23:22:05]Content-Length: 664 [23:22:05]Content-Type: application/json [23:22:05] [23:22:05]POST finish read [23:22:05]Found Content-Length = 664 [23:22:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963396", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:22:05]execute_script... [23:22:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963396", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:22:05]POST & json_proto [23:22:05]process_json_proto [23:22:05]json parsed OK: [23:22:05]protocol is kg_v1.0 [23:22:05]action value=close_receipt [23:22:05]process_action close_receipt [23:22:05]cmd_close_receipt [23:22:05]MH_GetDate [23:22:05]Write to MH i2c: F0 00 00 C1 1E CE [23:22:05]Write i2c OK [23:22:05]MH_I2C_Read... [23:22:05]Read from MH i2c: F0 [23:22:05]MH_I2C_Read... [23:22:05]Read from MH i2c: F0 09 00 [23:22:05]MH_I2C_Read... [23:22:05]Read from MH i2c: F0 09 00 C1 1E 00 9F 90 15 67 82 C9 CF 66 02 [23:22:05]GetLastDocTimeStamp 1729466522 [23:22:05]current date 1729466527 [23:22:05]FM_GetShiftState [23:22:05]SAM_PROTO_GetShiftState [23:22:05]wFMCommunicate request_size=4 [23:22:05]MH_SAM_APDU [23:22:05]CAPDU: 80 13 01 00 [23:22:05]Write to MH i2c: E2 08 00 C2 1E 80 13 01 00 00 00 00 00 5D [23:22:05]Write i2c OK [23:22:05]MH_I2C_Read... [23:22:05]Read from MH i2c: E2 [23:22:05]MH_I2C_Read... [23:22:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:22:05]Read from MH i2c: E2 0E 00 [23:22:05]MH_I2C_Read... [23:22:05]Read from MH i2c: E2 0E 00 C2 1E 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 77 [23:22:05]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [23:22:05]wFMCommunicate OK [23:22:05]SAM_PROTO_GetShiftState done [23:22:05]FM_GetShiftState done [23:22:05]opened in 1729383750 [23:22:05]opened+sec_in_day 1729470150 [23:22:05]quantity*price = 100000 [23:22:05]sum+1 = 100002 [23:22:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 573 20.10.2024 23:22 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227725 ФПД: 84011397647458 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T232207&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227725&fm=84011397647458&tin=02508201610067®Number=0000000000091685&sum=100000 [23:22:07]StoreToDocumentArchive [23:22:07]shift 533 fd 227725 [23:22:07]save to /storage/0533/doc_00227725 [23:22:07]save last doc name /storage/0533/doc_00227725 to /storage/kkm_last_doc_name [23:22:07]save OK [23:22:07]Clear old archive folders... [23:22:07]ProcessDocumentItem done err = 0, tmpTLVsize=244 [23:22:07]tlvbuf is 00CE9C70 [23:22:07]SAM_PROTO_ClearQueue [23:22:07]wFMCommunicate request_size=4 [23:22:07]MH_SAM_APDU [23:22:07]CAPDU: 80 09 00 00 [23:22:07]Write to MH i2c: E2 08 00 CF 1E 80 09 00 00 00 00 00 00 5F [23:22:07]Write i2c OK [23:22:07]MH_I2C_Read... [23:22:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:22:07]Read from MH i2c: E2 [23:22:07]MH_I2C_Read... [23:22:07]Read from MH i2c: E2 03 00 [23:22:07]MH_I2C_Read... [23:22:07]Read from MH i2c: E2 03 00 CF 1E 00 90 00 61 [23:22:07]RAPDU: 90 00 [23:22:07]wFMCommunicate OK [23:22:07]SAM_PROTO_ClearQueue done [23:22:07]KKMCreateOFDPacket [23:22:07]OFDProtocolAddRootSTLVToBuf [23:22:07]FM_MakeSignedData [23:22:07]FM_MakeSignedData [23:22:07]SAM_PROTO_SignData [23:22:07]wFMCommunicate request_size=4 [23:22:07]MH_SAM_APDU [23:22:07]CAPDU: 80 0D 01 02 [23:22:07]Write to MH i2c: E2 08 00 D0 1E 80 0D 01 02 00 00 00 00 67 [23:22:07]Write i2c OK [23:22:07]MH_I2C_Read... [23:22:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:22:07]Read from MH i2c: E2 [23:22:07]MH_I2C_Read... [23:22:07]Read from MH i2c: E2 03 00 [23:22:07]MH_I2C_Read... [23:22:07]Read from MH i2c: E2 03 00 D0 1E 00 90 00 62 [23:22:07]RAPDU: 90 00 [23:22:07]wFMCommunicate OK [23:22:07]wFMCommunicate request_size=253 [23:22:07]MH_SAM_APDU [23:22:07]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 02 00 00 F4 03 04 00 9F 90 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8D 79 03 00 35 04 06 00 4C 68 6D 83 8C 62 [23:22:07]Write to MH i2c: E2 00 01 D1 1E 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 02 00 00 F4 03 04 00 9F 90 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8D 79 03 00 35 04 06 00 4C 68 6D 83 8C 62 00 00 7D [23:22:07]Write i2c OK [23:22:07]MH_I2C_Read... [23:22:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:22:07]Read from MH i2c: E2 [23:22:07]MH_I2C_Read... [23:22:07]Read from MH i2c: E2 03 00 [23:22:07]MH_I2C_Read... [23:22:07]Read from MH i2c: E2 03 00 D1 1E 00 90 00 63 [23:22:07]RAPDU: 90 00 [23:22:07]wFMCommunicate OK [23:22:07]wFMCommunicate request_size=4 [23:22:07]MH_SAM_APDU [23:22:07]CAPDU: 80 0D 03 02 [23:22:07]Write to MH i2c: E2 08 00 D2 1E 80 0D 03 02 00 00 00 00 6B [23:22:07]Write i2c OK [23:22:07]MH_I2C_Read... [23:22:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:22:07]Read from MH i2c: E2 [23:22:07]MH_I2C_Read... [23:22:07]Read from MH i2c: E2 0B 00 [23:22:07]MH_I2C_Read... [23:22:07]Read from MH i2c: E2 0B 00 D2 1E 00 A5 B2 D0 32 F5 DE 56 B5 90 00 A3 [23:22:07]RAPDU: A5 B2 D0 32 F5 DE 56 B5 90 00 [23:22:07]wFMCommunicate OK [23:22:07]SAM_PROTO_SignData done [23:22:07]FM_MakeSignedData done [23:22:07]CreateOFDProtocolMessage [23:22:07]wFMCommunicate request_size=4 [23:22:07]MH_SAM_APDU [23:22:07]CAPDU: 80 11 00 00 [23:22:07]Write to MH i2c: E2 08 00 D3 1E 80 11 00 00 00 00 00 00 6B [23:22:07]Write i2c OK [23:22:07]MH_I2C_Read... [23:22:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:22:07]Read from MH i2c: E2 [23:22:07]MH_I2C_Read... [23:22:07]Read from MH i2c: E2 17 00 [23:22:07]MH_I2C_Read... [23:22:07]Read from MH i2c: E2 17 00 D3 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 C2 [23:22:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [23:22:07]wFMCommunicate OK [23:22:07]CreateOFDProtocolMessage done [23:22:07]OFDSenderStorePacket 227725 [23:22:07]StoreOFDPacket docnum=227725 [23:22:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 BE FE 00 01 0F 40 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 02 00 00 F4 03 04 00 9F 90 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8D 79 03 00 35 04 06 00 4C 68 6D 83 8C 62 A5 B2 D0 32 F5 DE 56 B5 [23:22:07]CheckFolder [23:22:07]dirname=/storage/ofd_packets [23:22:07]CheckFolder done [23:22:07]ProducePacketName [23:22:07]name=ofd_packets/00227725 [23:22:07]NVStorageSaveData ofd_packets/00227725 [23:22:07]File name is /storage/ofd_packets/00227725 [23:22:07]Write 294 bytes [23:22:07]NVStorageSaveData done [23:22:07]OFDSenderStorePacket done [23:22:07]KKMCreateOFDPacket done [23:22:07]NVStorageSaveData kkm_last_timestamp [23:22:07]File name is /storage/kkm_last_timestamp [23:22:07]Write 4 bytes [23:22:07]NVStorageSaveData done [23:22:07]ExternCall_PrintAddStr [23:22:07]wPrintStart [23:22:07]Write to MH i2c: 01 00 00 D4 1E F2 [23:22:07]Write i2c OK [23:22:07]MH_I2C_Read... [23:22:07]Read from MH i2c: 01 [23:22:07]MH_I2C_Read... [23:22:07]Read from MH i2c: 01 07 00 [23:22:07]MH_I2C_Read... [23:22:07]Read from MH i2c: 01 07 00 D4 1E 00 00 00 00 00 FF 0F 07 [23:22:07]RasterBufferAndPrint [23:22:07]line Счет N : (1)1963396 [23:22:07]line ИНН: 02508201610067 [23:22:07]line Контрольно-Кассовый Чек [23:22:07]line ПРОДАЖА [23:22:07]line ТРК (МРК, ГНК) : 32 [23:22:07]line Товар: 2710124130 [23:22:07]line SU-92 [23:22:07]line 14.620 * 68.40 [23:22:07]line = 1000.01 [23:22:07]line НДС 12% НСП 1% [23:22:07]line > о реализуемом товаре [23:22:07]line ОКРУГЛЕНИЕ: -0.01 [23:22:07]line ИТОГО: 1000.00 [23:22:07]line Внесено: 1000.00 [23:22:07]line СДАЧА: 0.00 [23:22:07]line НСП 1% : 8.85 [23:22:07]line НДС 12% : 106.20 [23:22:07]line Наличными: 1000.00 [23:22:07]line Безнал.: 0.00 [23:22:07]line Место: АЗС № 133 "Партнер Нефть" [23:22:07]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [23:22:07]line СНО: Общий режим [23:22:07]line Чек 573 20.10.2024 23:22 [23:22:07]line Смена: 533 ФФД: 1.0 [23:22:07]line ЗНМ: 0300000091 [23:22:07]line РНМ: 0000000000091685 [23:22:07]line Версия ККМ: 001 [23:22:07]line ФМ: 0000000000871839 [23:22:07]line ФД: 227725 [23:22:07]line ФПД: 84011397647458 [23:22:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T232207&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227725&fm=84011397647458&tin=02508201610067®Number=0000000000091685&sum=100000 [23:22:07]OFD Sender: Processing packet 227725 [packets to send 38, broken 37] [23:22:07]ProducePacketName [23:22:07]name=ofd_packets/00227725 [23:22:07]OFD Sender: To server: pG, [23:22:07]CommunicateWithHost lk.salyk.kg:30040 [23:22:07]ConnectInit lk.salyk.kg [23:22:07]written 0, free lines is 4095 [23:22:07]Connected sock=10 [23:22: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 33 39 08 01 00 00 BE FE 00 01 0F 40 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 02 00 00 F4 03 04 00 9F 90 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8D 79 03 00 35 04 06 00 4C 68 6D 83 8C 62 A5 B2 D0 32 F5 DE 56 B5 [23:22: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 33 39 4F 00 00 00 C4 73 47 00 92 ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8D 79 03 00 F4 03 04 00 9C 3B 15 67 B6 04 01 00 00 F5 87 B1 7E D3 D3 93 46 [23:22:07]CommunicateWithHost err = 0 [23:22:07]CheckOFDResponse [23:22:07]1017 (14) - 77093643461234 [23:22:07]1041 (16) - 0000000000871839 [23:22:07]1040 (4) - 227725 [23:22:07]1012 (4) - 20.10.2024 17:19 [23:22:07]1206 (1) - 0 [23:22:07]OFD Sender: Remove packet 227725 [23:22:07]ProducePacketName [23:22:07]name=ofd_packets/00227725 [23:22:07]NVStorageDeleteData [23:22:08]Write to MH i2c: 01 00 00 FE 1E 1C [23:22:08]Write i2c OK [23:22:08]MH_I2C_Read... [23:22:08]Read from MH i2c: 01 [23:22:08]MH_I2C_Read... [23:22:08]Read from MH i2c: 01 07 00 [23:22:08]MH_I2C_Read... [23:22:08]Read from MH i2c: 01 07 00 FE 1E 00 00 00 00 00 B5 0C E4 [23:22:08]RasterBufferAndPrint [23:22:08]line [23:22:08]line [23:22:08]line [23:22:08]line [23:22:08]line [23:22:08]written 0, free lines is 3263 [23:22:08]MH_Cut [23:22:08]Write to MH i2c: D1 01 00 05 1F 01 F6 [23:22:08]Write i2c OK [23:22:08]MH_I2C_Read... [23:22:08]Read from MH i2c: D1 [23:22:08]MH_I2C_Read... [23:22:08]Read from MH i2c: D1 01 00 [23:22:08]MH_I2C_Read... [23:22:08]Read from MH i2c: D1 01 00 05 1F 00 F5 [23:22:08]Write to MH i2c: 01 00 00 06 1F 25 [23:22:08]Write i2c OK [23:22:08]MH_I2C_Read... [23:22:08]OFD Sender: No OFD packet to send [23:22:09]*** Cut start [23:22:09]*** Partial cut [23:22:09]*** CUTSNS_PIN = 1 [23:22:09]*** CUTSNS_PIN = 0 [23:22:09]*** Brake cut motor [23:22:09]Read from MH i2c: 01 [23:22:09]MH_I2C_Read... [23:22:09]*** Stop cut motor [23:22:09]*** Cut end [23:22:09]Read from MH i2c: 01 07 00 [23:22:09]MH_I2C_Read... [23:22:09]Read from MH i2c: 01 07 00 06 1F 00 00 00 00 00 FF 0F 3A [23:22:09]process_action close_receipt done [23:22:09]requested_data is exist [23:22:09]produce_requested_data [23:22:09]requested_item fm.sn is exist - process it [23:22:09]wFMCommunicate request_size=4 [23:22:09]MH_SAM_APDU [23:22:09]CAPDU: 80 11 00 00 [23:22:09]Write to MH i2c: E2 08 00 07 1F 80 11 00 00 00 00 00 00 A0 [23:22:09]Write i2c OK [23:22:09]MH_I2C_Read... [23:22:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:22:09]Read from MH i2c: E2 [23:22:09]MH_I2C_Read... [23:22:09]Read from MH i2c: E2 17 00 [23:22:09]MH_I2C_Read... [23:22:09]Read from MH i2c: E2 17 00 07 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F7 [23:22:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [23:22:09]wFMCommunicate OK [23:22:09]requested_item fd.num is exist - process it [23:22:09]SAM_PROTO_GetFieldsCounters [23:22:09]wFMCommunicate request_size=4 [23:22:09]MH_SAM_APDU [23:22:09]CAPDU: 80 13 00 00 [23:22:09]Write to MH i2c: E2 08 00 08 1F 80 13 00 00 00 00 00 00 A3 [23:22:09]Write i2c OK [23:22:09]MH_I2C_Read... [23:22:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:22:09]Read from MH i2c: E2 [23:22:09]MH_I2C_Read... [23:22:09]Read from MH i2c: E2 62 00 [23:22:09]MH_I2C_Read... [23:22:09]Read from MH i2c: E2 62 00 08 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 8D 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 3D 02 00 00 5E 04 04 00 3D 02 00 00 57 04 04 00 3E 02 00 00 19 04 04 00 00 00 00 00 90 00 A9 [23:22: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 8D 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 3D 02 00 00 5E 04 04 00 3D 02 00 00 57 04 04 00 3E 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:22:09]wFMCommunicate OK [23:22:09]SAM_PROTO_GetFieldsCounters done [23:22:09]requested_item shift.num is exist - process it [23:22:09]requested_item shift.opened is exist - process it [23:22:09]req_shift_opened [23:22:09]FM_GetShiftState [23:22:09]SAM_PROTO_GetShiftState [23:22:09]wFMCommunicate request_size=4 [23:22:09]MH_SAM_APDU [23:22:09]CAPDU: 80 13 01 00 [23:22:09]Write to MH i2c: E2 08 00 09 1F 80 13 01 00 00 00 00 00 A5 [23:22:09]Write i2c OK [23:22:09]MH_I2C_Read... [23:22:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:22:09]Read from MH i2c: E2 [23:22:09]MH_I2C_Read... [23:22:09]Read from MH i2c: E2 0E 00 [23:22:09]MH_I2C_Read... [23:22:09]Read from MH i2c: E2 0E 00 09 1F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 BF [23:22:09]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [23:22:09]wFMCommunicate OK [23:22:09]SAM_PROTO_GetShiftState done [23:22:09]FM_GetShiftState done [23:22:09]req_shift_opened done [23:22:09]requested_item shift.open_date is exist - process it [23:22:09]req_shift_open_date [23:22:09]req_shift_open_date done [23:22:09]produce_requested_data done [23:22:09]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227725,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [23:22:09]process_action_free close_receipt [23:22:09]json_value_free [23:22:09]json_value_free done [23:22:09]process_json_proto returns [23:22:09]Send response to host [23:22:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227725,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [23:22:09]free response buf [23:22:09]execute_script done [23:22:09]execute_script returns [23:22:09]free content buf [23:22:09]Sock 7.Close socket [23:22:09]Sock 7.Thread stoped [23:22:13]OFD Sender: No OFD packet to send [23:22:18]OFD Sender: No OFD packet to send [23:22:23]OFD Sender: No OFD packet to send [23:22:28]OFD Sender: No OFD packet to send [23:22:33]OFD Sender: No OFD packet to send [23:22:38]OFD Sender: No OFD packet to send [23:22:43]OFD Sender: No OFD packet to send [23:22:48]OFD Sender: No OFD packet to send [23:22:53]OFD Sender: No OFD packet to send [23:22:58]OFD Sender: No OFD packet to send [23:23:03]OFD Sender: No OFD packet to send [23:23:08]OFD Sender: No OFD packet to send [23:23:13]OFD Sender: No OFD packet to send [23:23:18]OFD Sender: No OFD packet to send [23:23:23]OFD Sender: No OFD packet to send [23:23:28]OFD Sender: No OFD packet to send [23:23:33]OFD Sender: No OFD packet to send [23:23:38]OFD Sender: No OFD packet to send [23:23:43]OFD Sender: No OFD packet to send [23:23:48]OFD Sender: No OFD packet to send [23:23:53]OFD Sender: No OFD packet to send [23:23:58]OFD Sender: No OFD packet to send [23:24:03]OFD Sender: No OFD packet to send [23:24:08]OFD Sender: No OFD packet to send [23:24:13]OFD Sender: No OFD packet to send [23:24:18]OFD Sender: No OFD packet to send [23:24:23]OFD Sender: No OFD packet to send [23:24:28]OFD Sender: No OFD packet to send [23:24:33]OFD Sender: No OFD packet to send [23:24:38]OFD Sender: No OFD packet to send [23:24:43]OFD Sender: No OFD packet to send [23:24:48]OFD Sender: No OFD packet to send [23:24:53]OFD Sender: No OFD packet to send [23:24:58]OFD Sender: No OFD packet to send [23:25:03]OFD Sender: No OFD packet to send [23:25:08]OFD Sender: No OFD packet to send [23:25:13]OFD Sender: No OFD packet to send [23:25:18]OFD Sender: No OFD packet to send [23:25:23]OFD Sender: No OFD packet to send [23:25:28]OFD Sender: No OFD packet to send [23:25:33]OFD Sender: No OFD packet to send [23:25:38]OFD Sender: No OFD packet to send [23:25:43]OFD Sender: No OFD packet to send [23:25:48]OFD Sender: No OFD packet to send [23:25:53]OFD Sender: No OFD packet to send [23:25:58]OFD Sender: No OFD packet to send [23:26:03]OFD Sender: No OFD packet to send [23:26:08]OFD Sender: No OFD packet to send [23:26:13]OFD Sender: No OFD packet to send [23:26:18]OFD Sender: No OFD packet to send [23:26:23]OFD Sender: No OFD packet to send [23:26:28]OFD Sender: No OFD packet to send [23:26:33]OFD Sender: No OFD packet to send [23:26:38]OFD Sender: No OFD packet to send [23:26:43]OFD Sender: No OFD packet to send [23:26:48]OFD Sender: No OFD packet to send [23:26:53]OFD Sender: No OFD packet to send [23:26:58]OFD Sender: No OFD packet to send [23:27:03]OFD Sender: No OFD packet to send [23:27:08]OFD Sender: No OFD packet to send [23:27:13]OFD Sender: No OFD packet to send [23:27:18]OFD Sender: No OFD packet to send [23:27:23]OFD Sender: No OFD packet to send [23:27:28]OFD Sender: No OFD packet to send [23:27:33]OFD Sender: No OFD packet to send [23:27:38]OFD Sender: No OFD packet to send [23:27:43]OFD Sender: No OFD packet to send [23:27:48]OFD Sender: No OFD packet to send [23:27:53]OFD Sender: No OFD packet to send [23:27:58]OFD Sender: No OFD packet to send [23:28:03]OFD Sender: No OFD packet to send [23:28:08]OFD Sender: No OFD packet to send [23:28:13]OFD Sender: No OFD packet to send [23:28:18]OFD Sender: No OFD packet to send [23:28:23]OFD Sender: No OFD packet to send [23:28:28]OFD Sender: No OFD packet to send [23:28:33]OFD Sender: No OFD packet to send [23:28:38]OFD Sender: No OFD packet to send [23:28:43]OFD Sender: No OFD packet to send [23:28:48]OFD Sender: No OFD packet to send [23:28:53]OFD Sender: No OFD packet to send [23:28:58]OFD Sender: No OFD packet to send [23:29:03]OFD Sender: No OFD packet to send [23:29:08]OFD Sender: No OFD packet to send [23:29:13]OFD Sender: No OFD packet to send [23:29:18]OFD Sender: No OFD packet to send [23:29:23]OFD Sender: No OFD packet to send [23:29:28]OFD Sender: No OFD packet to send [23:29:33]OFD Sender: No OFD packet to send [23:29:38]OFD Sender: No OFD packet to send [23:29:43]OFD Sender: No OFD packet to send [23:29:48]OFD Sender: No OFD packet to send [23:29:53]OFD Sender: No OFD packet to send [23:29:58]OFD Sender: No OFD packet to send [23:30:03]OFD Sender: No OFD packet to send [23:30:08]OFD Sender: No OFD packet to send [23:30:13]OFD Sender: No OFD packet to send [23:30:18]OFD Sender: No OFD packet to send [23:30:23]OFD Sender: No OFD packet to send [23:30:28]OFD Sender: No OFD packet to send [23:30:33]OFD Sender: No OFD packet to send [23:30:38]OFD Sender: No OFD packet to send [23:30:43]OFD Sender: No OFD packet to send [23:30:48]OFD Sender: No OFD packet to send [23:30:53]OFD Sender: No OFD packet to send [23:30:58]OFD Sender: No OFD packet to send [23:31:03]OFD Sender: No OFD packet to send [23:31:08]OFD Sender: No OFD packet to send [23:31:13]OFD Sender: No OFD packet to send [23:31:18]OFD Sender: No OFD packet to send [23:31:23]OFD Sender: No OFD packet to send [23:31:28]OFD Sender: No OFD packet to send [23:31:33]OFD Sender: No OFD packet to send [23:31:38]OFD Sender: No OFD packet to send [23:31:43]OFD Sender: No OFD packet to send [23:31:48]OFD Sender: No OFD packet to send [23:31:53]OFD Sender: No OFD packet to send [23:31:58]OFD Sender: No OFD packet to send [23:32:03]OFD Sender: No OFD packet to send [23:32:08]OFD Sender: No OFD packet to send [23:32:13]OFD Sender: No OFD packet to send [23:32:18]OFD Sender: No OFD packet to send [23:32:23]OFD Sender: No OFD packet to send [23:32:28]OFD Sender: No OFD packet to send [23:32:33]OFD Sender: No OFD packet to send [23:32:38]OFD Sender: No OFD packet to send [23:32:44]OFD Sender: No OFD packet to send [23:32:49]OFD Sender: No OFD packet to send [23:32:54]OFD Sender: No OFD packet to send [23:32:59]OFD Sender: No OFD packet to send [23:33:04]OFD Sender: No OFD packet to send [23:33:09]OFD Sender: No OFD packet to send [23:33:14]OFD Sender: No OFD packet to send [23:33:19]OFD Sender: No OFD packet to send [23:33:24]OFD Sender: No OFD packet to send [23:33:29]OFD Sender: No OFD packet to send [23:33:34]OFD Sender: No OFD packet to send [23:33:39]OFD Sender: No OFD packet to send [23:33:44]OFD Sender: No OFD packet to send [23:33:49]OFD Sender: No OFD packet to send [23:33:54]OFD Sender: No OFD packet to send [23:33:59]OFD Sender: No OFD packet to send [23:34:04]OFD Sender: No OFD packet to send [23:34:09]OFD Sender: No OFD packet to send [23:34:14]OFD Sender: No OFD packet to send [23:34:19]OFD Sender: No OFD packet to send [23:34:24]OFD Sender: No OFD packet to send [23:34:29]OFD Sender: No OFD packet to send [23:34:34]OFD Sender: No OFD packet to send [23:34:39]OFD Sender: No OFD packet to send [23:34:44]OFD Sender: No OFD packet to send [23:34:49]OFD Sender: No OFD packet to send [23:34:54]OFD Sender: No OFD packet to send [23:34:59]OFD Sender: No OFD packet to send [23:35:04]OFD Sender: No OFD packet to send [23:35:09]OFD Sender: No OFD packet to send [23:35:14]OFD Sender: No OFD packet to send [23:35:19]OFD Sender: No OFD packet to send [23:35:24]OFD Sender: No OFD packet to send [23:35:29]OFD Sender: No OFD packet to send [23:35:34]OFD Sender: No OFD packet to send [23:35:39]OFD Sender: No OFD packet to send [23:35:44]OFD Sender: No OFD packet to send [23:35:49]OFD Sender: No OFD packet to send [23:35:54]OFD Sender: No OFD packet to send [23:35:59]OFD Sender: No OFD packet to send [23:36:04]OFD Sender: No OFD packet to send [23:36:09]OFD Sender: No OFD packet to send [23:36:14]OFD Sender: No OFD packet to send [23:36:19]OFD Sender: No OFD packet to send [23:36:24]OFD Sender: No OFD packet to send [23:36:29]OFD Sender: No OFD packet to send [23:36:34]OFD Sender: No OFD packet to send [23:36:39]OFD Sender: No OFD packet to send [23:36:44]OFD Sender: No OFD packet to send [23:36:49]OFD Sender: No OFD packet to send [23:36:54]OFD Sender: No OFD packet to send [23:36:59]OFD Sender: No OFD packet to send [23:37:04]OFD Sender: No OFD packet to send [23:37:09]OFD Sender: No OFD packet to send [23:37:14]OFD Sender: No OFD packet to send [23:37:19]OFD Sender: No OFD packet to send [23:37:24]OFD Sender: No OFD packet to send [23:37:29]OFD Sender: No OFD packet to send [23:37:34]OFD Sender: No OFD packet to send [23:37:39]OFD Sender: No OFD packet to send [23:37:44]OFD Sender: No OFD packet to send [23:37:49]OFD Sender: No OFD packet to send [23:37:54]OFD Sender: No OFD packet to send [23:37:59]OFD Sender: No OFD packet to send [23:38:04]OFD Sender: No OFD packet to send [23:38:09]OFD Sender: No OFD packet to send [23:38:14]OFD Sender: No OFD packet to send [23:38:19]OFD Sender: No OFD packet to send [23:38:24]OFD Sender: No OFD packet to send [23:38:29]OFD Sender: No OFD packet to send [23:38:34]OFD Sender: No OFD packet to send [23:38:39]OFD Sender: No OFD packet to send [23:38:44]OFD Sender: No OFD packet to send [23:38:48]accept exits with 9 [23:38:48]New connection [23:38:48]New thread 3066809700 created [23:38:48]Thread 3066666340 joined [23:38:48]Waiting for new connection... [23:38:48] Sock 9.Parse request [23:38:48]Sock 9.Check first char [23:38:48]Sock 9.First char is OK [23:38:48]request: POST /json_proto HTTP/1.0 [23:38:48]Method: POST [23:38:48]URL: /json_proto [23:38:48]Method is POST - this is cgi request [23:38:48]url: /json_proto [23:38:48]query_string will be loaded in cgi processing [23:38:48]execute_cgi json_proto POST (null) [23:38:48]execute_cgi path=json_proto method=POST [23:38:48]POST find Content-Length [23:38:48]Host: 172.17.44.195:8080 [23:38:48]Content-Length: 678 [23:38:48]Content-Type: application/json [23:38:48] [23:38:48]POST finish read [23:38:48]Found Content-Length = 678 [23:38:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963397", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:38:48]execute_script... [23:38: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)1963397", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:38:48]POST & json_proto [23:38:48]process_json_proto [23:38:48]json parsed OK: [23:38:48]protocol is kg_v1.0 [23:38:48]action value=close_receipt [23:38:48]process_action close_receipt [23:38:48]cmd_close_receipt [23:38:48]MH_GetDate [23:38:48]Write to MH i2c: F0 00 00 0A 1F 18 [23:38:48]Write i2c OK [23:38:48]MH_I2C_Read... [23:38:48]Read from MH i2c: F0 [23:38:48]MH_I2C_Read... [23:38:48]Read from MH i2c: F0 09 00 [23:38:48]MH_I2C_Read... [23:38:48]Read from MH i2c: F0 09 00 0A 1F 00 8A 94 15 67 82 C9 CF 66 3B [23:38:48]GetLastDocTimeStamp 1729466527 [23:38:48]current date 1729467530 [23:38:48]FM_GetShiftState [23:38:48]SAM_PROTO_GetShiftState [23:38:48]wFMCommunicate request_size=4 [23:38:48]MH_SAM_APDU [23:38:48]CAPDU: 80 13 01 00 [23:38:48]Write to MH i2c: E2 08 00 0B 1F 80 13 01 00 00 00 00 00 A7 [23:38:48]Write i2c OK [23:38:48]MH_I2C_Read... [23:38:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:38:48]Read from MH i2c: E2 [23:38:48]MH_I2C_Read... [23:38:48]Read from MH i2c: E2 0E 00 [23:38:48]MH_I2C_Read... [23:38:48]Read from MH i2c: E2 0E 00 0B 1F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 C1 [23:38:48]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [23:38:48]wFMCommunicate OK [23:38:48]SAM_PROTO_GetShiftState done [23:38:48]FM_GetShiftState done [23:38:48]opened in 1729383750 [23:38:48]opened+sec_in_day 1729470150 [23:38:48]quantity*price = 40006 [23:38:48]sum+1 = 40007 [23:38:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 574 20.10.2024 23:38 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227726 ФПД: 222837383274351 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T233850&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227726&fm=222837383274351&tin=02508201610067®Number=0000000000091685&sum=40000 [23:38:50]StoreToDocumentArchive [23:38:50]shift 533 fd 227726 [23:38:50]save to /storage/0533/doc_00227726 [23:38:50]save last doc name /storage/0533/doc_00227726 to /storage/kkm_last_doc_name [23:38:50]save OK [23:38:50]Clear old archive folders... [23:38:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:38:50]tlvbuf is 00C25FE0 [23:38:50]SAM_PROTO_ClearQueue [23:38:50]wFMCommunicate request_size=4 [23:38:50]MH_SAM_APDU [23:38:50]CAPDU: 80 09 00 00 [23:38:50]Write to MH i2c: E2 08 00 18 1F 80 09 00 00 00 00 00 00 A9 [23:38:50]Write i2c OK [23:38:50]MH_I2C_Read... [23:38:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:38:50]Read from MH i2c: E2 [23:38:50]MH_I2C_Read... [23:38:50]Read from MH i2c: E2 03 00 [23:38:50]MH_I2C_Read... [23:38:50]Read from MH i2c: E2 03 00 18 1F 00 90 00 AB [23:38:50]RAPDU: 90 00 [23:38:50]wFMCommunicate OK [23:38:50]SAM_PROTO_ClearQueue done [23:38:50]KKMCreateOFDPacket [23:38:50]OFDProtocolAddRootSTLVToBuf [23:38:50]FM_MakeSignedData [23:38:50]FM_MakeSignedData [23:38:50]SAM_PROTO_SignData [23:38:50]wFMCommunicate request_size=4 [23:38:50]MH_SAM_APDU [23:38:50]CAPDU: 80 0D 01 02 [23:38:50]Write to MH i2c: E2 08 00 19 1F 80 0D 01 02 00 00 00 00 B1 [23:38:50]Write i2c OK [23:38:50]MH_I2C_Read... [23:38:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:38:50]Read from MH i2c: E2 [23:38:50]MH_I2C_Read... [23:38:50]Read from MH i2c: E2 03 00 [23:38:50]MH_I2C_Read... [23:38:50]Read from MH i2c: E2 03 00 19 1F 00 90 00 AC [23:38:50]RAPDU: 90 00 [23:38:50]wFMCommunicate OK [23:38:50]wFMCommunicate request_size=255 [23:38:50]MH_SAM_APDU [23:38:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 02 00 00 F4 03 04 00 8A 94 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8E 79 03 00 35 04 06 00 CA [23:38:50]Write to MH i2c: E2 02 01 1A 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 02 00 00 F4 03 04 00 8A 94 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8E 79 03 00 35 04 06 00 CA 00 00 DC [23:38:50]Write i2c OK [23:38:50]MH_I2C_Read... [23:38:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:38:50]Read from MH i2c: E2 [23:38:50]MH_I2C_Read... [23:38:50]Read from MH i2c: E2 03 00 [23:38:50]MH_I2C_Read... [23:38:50]Read from MH i2c: E2 03 00 1A 1F 00 90 00 AD [23:38:50]RAPDU: 90 00 [23:38:50]wFMCommunicate OK [23:38:50]wFMCommunicate request_size=10 [23:38:50]MH_SAM_APDU [23:38:50]CAPDU: 80 0D 02 02 05 AB 5F 12 9F 6F [23:38:50]Write to MH i2c: E2 0D 00 1B 1F 80 0D 02 02 05 00 AB 5F 12 9F 6F 00 00 E8 [23:38:50]Write i2c OK [23:38:50]MH_I2C_Read... [23:38:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:38:50]Read from MH i2c: E2 [23:38:50]MH_I2C_Read... [23:38:50]Read from MH i2c: E2 03 00 [23:38:50]MH_I2C_Read... [23:38:50]Read from MH i2c: E2 03 00 1B 1F 00 90 00 AE [23:38:50]RAPDU: 90 00 [23:38:50]wFMCommunicate OK [23:38:50]wFMCommunicate request_size=4 [23:38:50]MH_SAM_APDU [23:38:50]CAPDU: 80 0D 03 02 [23:38:50]Write to MH i2c: E2 08 00 1C 1F 80 0D 03 02 00 00 00 00 B6 [23:38:50]Write i2c OK [23:38:50]MH_I2C_Read... [23:38:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:38:50]Read from MH i2c: E2 [23:38:50]MH_I2C_Read... [23:38:50]Read from MH i2c: E2 0B 00 [23:38:50]MH_I2C_Read... [23:38:50]Read from MH i2c: E2 0B 00 1C 1F 00 B8 70 9D 56 77 4B 43 4D 90 00 24 [23:38:50]RAPDU: B8 70 9D 56 77 4B 43 4D 90 00 [23:38:50]wFMCommunicate OK [23:38:50]SAM_PROTO_SignData done [23:38:50]FM_MakeSignedData done [23:38:50]CreateOFDProtocolMessage [23:38:50]wFMCommunicate request_size=4 [23:38:50]MH_SAM_APDU [23:38:50]CAPDU: 80 11 00 00 [23:38:50]Write to MH i2c: E2 08 00 1D 1F 80 11 00 00 00 00 00 00 B6 [23:38:50]Write i2c OK [23:38:50]MH_I2C_Read... [23:38:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:38:50]Read from MH i2c: E2 [23:38:50]MH_I2C_Read... [23:38:50]Read from MH i2c: E2 17 00 [23:38:50]MH_I2C_Read... [23:38:50]Read from MH i2c: E2 17 00 1D 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 0D [23:38:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [23:38:50]wFMCommunicate OK [23:38:50]CreateOFDProtocolMessage done [23:38:50]OFDSenderStorePacket 227726 [23:38:50]StoreOFDPacket docnum=227726 [23:38:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 58 38 07 01 9B BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 02 00 00 F4 03 04 00 8A 94 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8E 79 03 00 35 04 06 00 CA AB 5F 12 9F 6F B8 70 9D 56 77 4B 43 4D [23:38:50]CheckFolder [23:38:50]dirname=/storage/ofd_packets [23:38:50]CheckFolder done [23:38:50]ProducePacketName [23:38:50]name=ofd_packets/00227726 [23:38:50]NVStorageSaveData ofd_packets/00227726 [23:38:50]File name is /storage/ofd_packets/00227726 [23:38:50]Write 301 bytes [23:38:50]NVStorageSaveData done [23:38:50]OFDSenderStorePacket done [23:38:50]KKMCreateOFDPacket done [23:38:50]NVStorageSaveData kkm_last_timestamp [23:38:50]File name is /storage/kkm_last_timestamp [23:38:50]Write 4 bytes [23:38:50]NVStorageSaveData done [23:38:50]ExternCall_PrintAddStr [23:38:50]wPrintStart [23:38:50]Write to MH i2c: 01 00 00 1E 1F 3D [23:38:50]Write i2c OK [23:38:50]MH_I2C_Read... [23:38:50]Read from MH i2c: 01 [23:38:50]MH_I2C_Read... [23:38:50]Read from MH i2c: 01 07 00 [23:38:50]MH_I2C_Read... [23:38:50]Read from MH i2c: 01 07 00 1E 1F 00 00 00 00 00 FF 0F 52 [23:38:50]RasterBufferAndPrint [23:38:50]line Счет N : (1)1963397 [23:38:50]line ИНН: 02508201610067 [23:38:50]line Контрольно-Кассовый Чек [23:38:50]line ПРОДАЖА [23:38:50]line ТРК (МРК, ГНК) : 43 [23:38:50]line Товар: 2710124130 [23:38:50]line Аи-92-К-5 [23:38:50]line 5.980 * 66.90 [23:38:50]line = 400.06 [23:38:50]line НДС 12% НСП 1% [23:38:50]line > о реализуемом товаре [23:38:50]line ОКРУГЛЕНИЕ: -0.06 [23:38:50]line ИТОГО: 400.00 [23:38:50]line Внесено: 400.00 [23:38:50]line СДАЧА: 0.00 [23:38:50]line НСП 1% : 3.54 [23:38:50]line НДС 12% : 42.48 [23:38:50]line Наличными: 400.00 [23:38:50]line Безнал.: 0.00 [23:38:50]line Место: АЗС № 133 "Партнер Нефть" [23:38:50]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [23:38:50]line СНО: Общий режим [23:38:50]line Чек 574 20.10.2024 23:38 [23:38:50]line Смена: 533 ФФД: 1.0 [23:38:50]line ЗНМ: 0300000091 [23:38:50]line РНМ: 0000000000091685 [23:38:50]line Версия ККМ: 001 [23:38:50]line ФМ: 0000000000871839 [23:38:50]line ФД: 227726 [23:38:50]line ФПД: 222837383274351 [23:38:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T233850&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227726&fm=222837383274351&tin=02508201610067®Number=0000000000091685&sum=40000 [23:38:50]OFD Sender: Processing packet 227726 [packets to send 38, broken 37] [23:38:50]ProducePacketName [23:38:50]name=ofd_packets/00227726 [23:38:50]OFD Sender: To server: pG, [23:38:50]CommunicateWithHost lk.salyk.kg:30040 [23:38:50]ConnectInit lk.salyk.kg [23:38:50]written 0, free lines is 4095 [23:38:50]Connected sock=10 [23:38: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 33 39 0F 01 00 00 58 38 07 01 9B BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 02 00 00 F4 03 04 00 8A 94 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8E 79 03 00 35 04 06 00 CA AB 5F 12 9F 6F B8 70 9D 56 77 4B 43 4D [23:38: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 33 39 4F 00 00 00 D2 CA 47 00 20 F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8E 79 03 00 F4 03 04 00 88 3F 15 67 B6 04 01 00 00 DC B9 12 8E 6E AA D3 2D [23:38:51]CommunicateWithHost err = 0 [23:38:51]CheckOFDResponse [23:38:51]1017 (14) - 77093643461234 [23:38:51]1041 (16) - 0000000000871839 [23:38:51]1040 (4) - 227726 [23:38:51]1012 (4) - 20.10.2024 17:36 [23:38:51]1206 (1) - 0 [23:38:51]OFD Sender: Remove packet 227726 [23:38:51]ProducePacketName [23:38:51]name=ofd_packets/00227726 [23:38:51]NVStorageDeleteData [23:38:51]Write to MH i2c: 01 00 00 48 1F 67 [23:38:51]Write i2c OK [23:38:51]MH_I2C_Read... [23:38:51]Read from MH i2c: 01 [23:38:51]MH_I2C_Read... [23:38:51]Read from MH i2c: 01 07 00 [23:38:51]MH_I2C_Read... [23:38:51]Read from MH i2c: 01 07 00 48 1F 00 00 00 00 00 BB 0C 35 [23:38:51]RasterBufferAndPrint [23:38:51]line [23:38:51]line [23:38:51]line [23:38:51]line [23:38:51]line [23:38:51]written 0, free lines is 3264 [23:38:51]MH_Cut [23:38:51]Write to MH i2c: D1 01 00 4F 1F 01 40 [23:38:51]Write i2c OK [23:38:51]MH_I2C_Read... [23:38:51]Read from MH i2c: D1 [23:38:51]MH_I2C_Read... [23:38:51]Read from MH i2c: D1 01 00 [23:38:51]MH_I2C_Read... [23:38:51]Read from MH i2c: D1 01 00 4F 1F 00 3F [23:38:51]Write to MH i2c: 01 00 00 50 1F 6F [23:38:51]Write i2c OK [23:38:51]MH_I2C_Read... [23:38:51]OFD Sender: No OFD packet to send [23:38:52]*** Cut start [23:38:52]*** Partial cut [23:38:52]*** CUTSNS_PIN = 1 [23:38:52]*** CUTSNS_PIN = 0 [23:38:52]*** Brake cut motor [23:38:52]Read from MH i2c: 01 [23:38:52]MH_I2C_Read... [23:38:52]*** Stop cut motor [23:38:52]*** Cut end [23:38:52]Read from MH i2c: 01 07 00 [23:38:52]MH_I2C_Read... [23:38:52]Read from MH i2c: 01 07 00 50 1F 00 00 00 00 00 FF 0F 84 [23:38:52]process_action close_receipt done [23:38:52]requested_data is exist [23:38:52]produce_requested_data [23:38:52]requested_item fm.sn is exist - process it [23:38:52]wFMCommunicate request_size=4 [23:38:52]MH_SAM_APDU [23:38:52]CAPDU: 80 11 00 00 [23:38:52]Write to MH i2c: E2 08 00 51 1F 80 11 00 00 00 00 00 00 EA [23:38:52]Write i2c OK [23:38:52]MH_I2C_Read... [23:38:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:38:52]Read from MH i2c: E2 [23:38:52]MH_I2C_Read... [23:38:52]Read from MH i2c: E2 17 00 [23:38:52]MH_I2C_Read... [23:38:52]Read from MH i2c: E2 17 00 51 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 41 [23:38:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [23:38:52]wFMCommunicate OK [23:38:52]requested_item fd.num is exist - process it [23:38:52]SAM_PROTO_GetFieldsCounters [23:38:52]wFMCommunicate request_size=4 [23:38:52]MH_SAM_APDU [23:38:52]CAPDU: 80 13 00 00 [23:38:52]Write to MH i2c: E2 08 00 52 1F 80 13 00 00 00 00 00 00 ED [23:38:52]Write i2c OK [23:38:52]MH_I2C_Read... [23:38:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:38:53]Read from MH i2c: E2 [23:38:53]MH_I2C_Read... [23:38:53]Read from MH i2c: E2 62 00 [23:38:53]MH_I2C_Read... [23:38:53]Read from MH i2c: E2 62 00 52 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 8E 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 3E 02 00 00 5E 04 04 00 3E 02 00 00 57 04 04 00 3F 02 00 00 19 04 04 00 00 00 00 00 90 00 F7 [23:38: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 8E 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 3E 02 00 00 5E 04 04 00 3E 02 00 00 57 04 04 00 3F 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:38:53]wFMCommunicate OK [23:38:53]SAM_PROTO_GetFieldsCounters done [23:38:53]requested_item shift.num is exist - process it [23:38:53]requested_item shift.opened is exist - process it [23:38:53]req_shift_opened [23:38:53]FM_GetShiftState [23:38:53]SAM_PROTO_GetShiftState [23:38:53]wFMCommunicate request_size=4 [23:38:53]MH_SAM_APDU [23:38:53]CAPDU: 80 13 01 00 [23:38:53]Write to MH i2c: E2 08 00 53 1F 80 13 01 00 00 00 00 00 EF [23:38:53]Write i2c OK [23:38:53]MH_I2C_Read... [23:38:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:38:53]Read from MH i2c: E2 [23:38:53]MH_I2C_Read... [23:38:53]Read from MH i2c: E2 0E 00 [23:38:53]MH_I2C_Read... [23:38:53]Read from MH i2c: E2 0E 00 53 1F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 09 [23:38:53]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [23:38:53]wFMCommunicate OK [23:38:53]SAM_PROTO_GetShiftState done [23:38:53]FM_GetShiftState done [23:38:53]req_shift_opened done [23:38:53]requested_item shift.open_date is exist - process it [23:38:53]req_shift_open_date [23:38:53]req_shift_open_date done [23:38:53]produce_requested_data done [23:38:53]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227726,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [23:38:53]process_action_free close_receipt [23:38:53]json_value_free [23:38:53]json_value_free done [23:38:53]process_json_proto returns [23:38:53]Send response to host [23:38:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227726,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [23:38:53]free response buf [23:38:53]execute_script done [23:38:53]execute_script returns [23:38:53]free content buf [23:38:53]Sock 9.Close socket [23:38:53]Sock 9.Thread stoped [23:38:56]OFD Sender: No OFD packet to send [23:39:01]OFD Sender: No OFD packet to send [23:39:06]OFD Sender: No OFD packet to send [23:39:11]OFD Sender: No OFD packet to send [23:39:16]OFD Sender: No OFD packet to send [23:39:21]OFD Sender: No OFD packet to send [23:39:26]OFD Sender: No OFD packet to send [23:39:31]OFD Sender: No OFD packet to send [23:39:36]OFD Sender: No OFD packet to send [23:39:41]OFD Sender: No OFD packet to send [23:39:46]OFD Sender: No OFD packet to send [23:39:51]OFD Sender: No OFD packet to send [23:39:56]OFD Sender: No OFD packet to send [23:40:01]OFD Sender: No OFD packet to send [23:40:06]OFD Sender: No OFD packet to send [23:40:11]OFD Sender: No OFD packet to send [23:40:16]OFD Sender: No OFD packet to send [23:40:21]OFD Sender: No OFD packet to send [23:40:26]OFD Sender: No OFD packet to send [23:40:31]OFD Sender: No OFD packet to send [23:40:36]OFD Sender: No OFD packet to send [23:40:41]OFD Sender: No OFD packet to send [23:40:46]OFD Sender: No OFD packet to send [23:40:47]accept exits with 7 [23:40:47]New connection [23:40:47]New thread 3066666340 created [23:40:47]Thread 3066809700 joined [23:40:47]Waiting for new connection... [23:40:47] Sock 7.Parse request [23:40:47]Sock 7.Check first char [23:40:47]Sock 7.First char is OK [23:40:47]request: POST /json_proto HTTP/1.0 [23:40:47]Method: POST [23:40:47]URL: /json_proto [23:40:47]Method is POST - this is cgi request [23:40:47]url: /json_proto [23:40:47]query_string will be loaded in cgi processing [23:40:47]execute_cgi json_proto POST (null) [23:40:47]execute_cgi path=json_proto method=POST [23:40:47]POST find Content-Length [23:40:47]Host: 172.17.44.195:8080 [23:40:47]Content-Length: 683 [23:40:47]Content-Type: application/json [23:40:47] [23:40:47]POST finish read [23:40:47]Found Content-Length = 683 [23:40:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963398", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:40:47]execute_script... [23: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)1963398", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:40:47]POST & json_proto [23:40:47]process_json_proto [23:40:47]json parsed OK: [23:40:47]protocol is kg_v1.0 [23:40:47]action value=close_receipt [23:40:47]process_action close_receipt [23:40:47]cmd_close_receipt [23:40:47]MH_GetDate [23:40:47]Write to MH i2c: F0 00 00 54 1F 62 [23:40:47]Write i2c OK [23:40:47]MH_I2C_Read... [23:40:47]Read from MH i2c: F0 [23:40:47]MH_I2C_Read... [23:40:47]Read from MH i2c: F0 09 00 [23:40:47]MH_I2C_Read... [23:40:47]Read from MH i2c: F0 09 00 54 1F 00 01 95 15 67 82 C9 CF 66 FD [23:40:47]GetLastDocTimeStamp 1729467530 [23:40:47]current date 1729467649 [23:40:47]FM_GetShiftState [23:40:47]SAM_PROTO_GetShiftState [23:40:47]wFMCommunicate request_size=4 [23:40:47]MH_SAM_APDU [23:40:47]CAPDU: 80 13 01 00 [23:40:47]Write to MH i2c: E2 08 00 55 1F 80 13 01 00 00 00 00 00 F1 [23:40:47]Write i2c OK [23:40:47]MH_I2C_Read... [23:40:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:40:47]Read from MH i2c: E2 [23:40:47]MH_I2C_Read... [23:40:47]Read from MH i2c: E2 0E 00 [23:40:47]MH_I2C_Read... [23:40:47]Read from MH i2c: E2 0E 00 55 1F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 0B [23:40:47]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [23:40:47]wFMCommunicate OK [23:40:47]SAM_PROTO_GetShiftState done [23:40:47]FM_GetShiftState done [23:40:47]opened in 1729383750 [23:40:47]opened+sec_in_day 1729470150 [23:40:47]quantity*price = 100021 [23:40:47]sum+1 = 100023 [23:40:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 575 20.10.2024 23:40 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227727 ФПД: 27841521606922 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T234049&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227727&fm=27841521606922&tin=02508201610067®Number=0000000000091685&sum=100000 [23:40:48]StoreToDocumentArchive [23:40:48]shift 533 fd 227727 [23:40:48]save to /storage/0533/doc_00227727 [23:40:48]save last doc name /storage/0533/doc_00227727 to /storage/kkm_last_doc_name [23:40:48]save OK [23:40:48]Clear old archive folders... [23:40:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:40:48]tlvbuf is 00CBF540 [23:40:48]SAM_PROTO_ClearQueue [23:40:48]wFMCommunicate request_size=4 [23:40:48]MH_SAM_APDU [23:40:48]CAPDU: 80 09 00 00 [23:40:48]Write to MH i2c: E2 08 00 62 1F 80 09 00 00 00 00 00 00 F3 [23:40:48]Write i2c OK [23:40:48]MH_I2C_Read... [23:40:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:40:48]Read from MH i2c: E2 [23:40:48]MH_I2C_Read... [23:40:48]Read from MH i2c: E2 03 00 [23:40:48]MH_I2C_Read... [23:40:48]Read from MH i2c: E2 03 00 62 1F 00 90 00 F5 [23:40:48]RAPDU: 90 00 [23:40:48]wFMCommunicate OK [23:40:48]SAM_PROTO_ClearQueue done [23:40:48]KKMCreateOFDPacket [23:40:48]OFDProtocolAddRootSTLVToBuf [23:40:48]FM_MakeSignedData [23:40:48]FM_MakeSignedData [23:40:48]SAM_PROTO_SignData [23:40:48]wFMCommunicate request_size=4 [23:40:48]MH_SAM_APDU [23:40:48]CAPDU: 80 0D 01 02 [23:40:48]Write to MH i2c: E2 08 00 63 1F 80 0D 01 02 00 00 00 00 FB [23:40:48]Write i2c OK [23:40:48]MH_I2C_Read... [23:40:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:40:48]Read from MH i2c: E2 [23:40:48]MH_I2C_Read... [23:40:48]Read from MH i2c: E2 03 00 [23:40:48]MH_I2C_Read... [23:40:48]Read from MH i2c: E2 03 00 63 1F 00 90 00 F6 [23:40:48]RAPDU: 90 00 [23:40:48]wFMCommunicate OK [23:40:48]wFMCommunicate request_size=255 [23:40:48]MH_SAM_APDU [23: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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 02 00 00 F4 03 04 00 01 95 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8F 79 03 00 35 04 06 00 19 [23:40:48]Write to MH i2c: E2 02 01 64 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 02 00 00 F4 03 04 00 01 95 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8F 79 03 00 35 04 06 00 19 00 00 3D [23:40:48]Write i2c OK [23:40:48]MH_I2C_Read... [23:40:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:40:48]Read from MH i2c: E2 [23:40:48]MH_I2C_Read... [23:40:48]Read from MH i2c: E2 03 00 [23:40:48]MH_I2C_Read... [23:40:48]Read from MH i2c: E2 03 00 64 1F 00 90 00 F7 [23:40:48]RAPDU: 90 00 [23:40:48]wFMCommunicate OK [23:40:48]wFMCommunicate request_size=10 [23:40:48]MH_SAM_APDU [23:40:48]CAPDU: 80 0D 02 02 05 52 5C 01 61 0A [23:40:48]Write to MH i2c: E2 0D 00 65 1F 80 0D 02 02 05 00 52 5C 01 61 0A 00 00 22 [23:40:48]Write i2c OK [23:40:48]MH_I2C_Read... [23:40:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:40:48]Read from MH i2c: E2 [23:40:48]MH_I2C_Read... [23:40:48]Read from MH i2c: E2 03 00 [23:40:48]MH_I2C_Read... [23:40:48]Read from MH i2c: E2 03 00 65 1F 00 90 00 F8 [23:40:48]RAPDU: 90 00 [23:40:48]wFMCommunicate OK [23:40:48]wFMCommunicate request_size=4 [23:40:48]MH_SAM_APDU [23:40:48]CAPDU: 80 0D 03 02 [23:40:48]Write to MH i2c: E2 08 00 66 1F 80 0D 03 02 00 00 00 00 00 [23:40:48]Write i2c OK [23:40:48]MH_I2C_Read... [23:40:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:40:48]Read from MH i2c: E2 [23:40:48]MH_I2C_Read... [23:40:48]Read from MH i2c: E2 0B 00 [23:40:48]MH_I2C_Read... [23:40:48]Read from MH i2c: E2 0B 00 66 1F 00 D1 0E 43 FD BC 7F 0B D6 90 00 3C [23:40:48]RAPDU: D1 0E 43 FD BC 7F 0B D6 90 00 [23:40:48]wFMCommunicate OK [23:40:48]SAM_PROTO_SignData done [23:40:48]FM_MakeSignedData done [23:40:48]CreateOFDProtocolMessage [23:40:48]wFMCommunicate request_size=4 [23:40:48]MH_SAM_APDU [23:40:48]CAPDU: 80 11 00 00 [23:40:48]Write to MH i2c: E2 08 00 67 1F 80 11 00 00 00 00 00 00 00 [23:40:48]Write i2c OK [23:40:48]MH_I2C_Read... [23:40:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:40:48]Read from MH i2c: E2 [23:40:48]MH_I2C_Read... [23:40:48]Read from MH i2c: E2 17 00 [23:40:48]MH_I2C_Read... [23:40:48]Read from MH i2c: E2 17 00 67 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 57 [23:40:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [23:40:49]wFMCommunicate OK [23:40:49]CreateOFDProtocolMessage done [23:40:49]OFDSenderStorePacket 227727 [23:40:49]StoreOFDPacket docnum=227727 [23:40:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 26 C2 07 01 97 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 02 00 00 F4 03 04 00 01 95 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8F 79 03 00 35 04 06 00 19 52 5C 01 61 0A D1 0E 43 FD BC 7F 0B D6 [23:40:49]CheckFolder [23:40:49]dirname=/storage/ofd_packets [23:40:49]CheckFolder done [23:40:49]ProducePacketName [23:40:49]name=ofd_packets/00227727 [23:40:49]NVStorageSaveData ofd_packets/00227727 [23:40:49]File name is /storage/ofd_packets/00227727 [23:40:49]Write 301 bytes [23:40:49]NVStorageSaveData done [23:40:49]OFDSenderStorePacket done [23:40:49]KKMCreateOFDPacket done [23:40:49]NVStorageSaveData kkm_last_timestamp [23:40:49]File name is /storage/kkm_last_timestamp [23:40:49]Write 4 bytes [23:40:49]NVStorageSaveData done [23:40:49]ExternCall_PrintAddStr [23:40:49]wPrintStart [23:40:49]Write to MH i2c: 01 00 00 68 1F 87 [23:40:49]Write i2c OK [23:40:49]MH_I2C_Read... [23:40:49]Read from MH i2c: 01 [23:40:49]MH_I2C_Read... [23:40:49]Read from MH i2c: 01 07 00 [23:40:49]MH_I2C_Read... [23:40:49]Read from MH i2c: 01 07 00 68 1F 00 00 00 00 00 FF 0F 9C [23:40:49]RasterBufferAndPrint [23:40:49]line Счет N : (1)1963398 [23:40:49]line ИНН: 02508201610067 [23:40:49]line Контрольно-Кассовый Чек [23:40:49]line ПРОДАЖА [23:40:49]line ТРК (МРК, ГНК) : 54 [23:40:49]line Товар: 2710124500 [23:40:49]line Аи-95-К-5 [23:40:49]line 13.480 * 74.20 [23:40:49]line = 1000.22 [23:40:49]line НДС 12% НСП 1% [23:40:49]line > о реализуемом товаре [23:40:49]line ОКРУГЛЕНИЕ: -0.22 [23:40:49]line ИТОГО: 1000.00 [23:40:49]line Внесено: 1000.00 [23:40:49]line СДАЧА: 0.00 [23:40:49]line НСП 1% : 8.85 [23:40:49]line НДС 12% : 106.22 [23:40:49]line Наличными: 1000.00 [23:40:49]line Безнал.: 0.00 [23:40:49]line Место: АЗС № 133 "Партнер Нефть" [23:40:49]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [23:40:49]line СНО: Общий режим [23:40:49]line Чек 575 20.10.2024 23:40 [23:40:49]line Смена: 533 ФФД: 1.0 [23:40:49]line ЗНМ: 0300000091 [23:40:49]line РНМ: 0000000000091685 [23:40:49]line Версия ККМ: 001 [23:40:49]line ФМ: 0000000000871839 [23:40:49]line ФД: 227727 [23:40:49]line ФПД: 27841521606922 [23:40:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T234049&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227727&fm=27841521606922&tin=02508201610067®Number=0000000000091685&sum=100000 [23:40:49]written 0, free lines is 4095 [23:40:49]OFD Sender: Processing packet 227727 [packets to send 38, broken 37] [23:40:49]ProducePacketName [23:40:49]name=ofd_packets/00227727 [23:40:49]OFD Sender: To server: pG, [23:40:49]CommunicateWithHost lk.salyk.kg:30040 [23:40:49]ConnectInit lk.salyk.kg [23:40:49]Connected sock=10 [23: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 33 39 0F 01 00 00 26 C2 07 01 97 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 02 00 00 F4 03 04 00 01 95 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 8F 79 03 00 35 04 06 00 19 52 5C 01 61 0A D1 0E 43 FD BC 7F 0B D6 [23: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 33 39 4F 00 00 00 06 7D 47 00 92 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 33 39 10 04 04 00 8F 79 03 00 F4 03 04 00 FE 3F 15 67 B6 04 01 00 00 FE FF DF AA 36 29 BC EC [23:40:49]CommunicateWithHost err = 0 [23:40:49]CheckOFDResponse [23:40:49]1017 (14) - 77093643461234 [23:40:49]1041 (16) - 0000000000871839 [23:40:49]1040 (4) - 227727 [23:40:49]1012 (4) - 20.10.2024 17:38 [23:40:49]1206 (1) - 0 [23:40:49]OFD Sender: Remove packet 227727 [23:40:49]ProducePacketName [23:40:49]name=ofd_packets/00227727 [23:40:49]NVStorageDeleteData [23:40:49]Write to MH i2c: 01 00 00 92 1F B1 [23:40:49]Write i2c OK [23:40:49]MH_I2C_Read... [23:40:49]Read from MH i2c: 01 [23:40:49]MH_I2C_Read... [23:40:49]Read from MH i2c: 01 07 00 [23:40:49]MH_I2C_Read... [23:40:49]Read from MH i2c: 01 07 00 92 1F 00 00 00 00 00 A4 0C 68 [23:40:49]RasterBufferAndPrint [23:40:49]line [23:40:49]line [23:40:49]line [23:40:49]line [23:40:49]line [23:40:49]written 0, free lines is 3241 [23:40:49]MH_Cut [23:40:49]Write to MH i2c: D1 01 00 99 1F 01 8A [23:40:49]Write i2c OK [23:40:49]MH_I2C_Read... [23:40:49]Read from MH i2c: D1 [23:40:49]MH_I2C_Read... [23:40:49]Read from MH i2c: D1 01 00 [23:40:49]MH_I2C_Read... [23:40:49]Read from MH i2c: D1 01 00 99 1F 00 89 [23:40:49]Write to MH i2c: 01 00 00 9A 1F B9 [23:40:49]Write i2c OK [23:40:49]MH_I2C_Read... [23:40:50]OFD Sender: No OFD packet to send [23:40:50]*** Cut start [23:40:50]*** Partial cut [23:40:50]*** CUTSNS_PIN = 1 [23:40:50]*** CUTSNS_PIN = 0 [23:40:51]*** Brake cut motor [23:40:51]Read from MH i2c: 01 [23:40:51]MH_I2C_Read... [23:40:51]*** Stop cut motor [23:40:51]*** Cut end [23:40:51]Read from MH i2c: 01 07 00 [23:40:51]MH_I2C_Read... [23:40:51]Read from MH i2c: 01 07 00 9A 1F 00 00 00 00 00 FF 0F CE [23:40:51]process_action close_receipt done [23:40:51]requested_data is exist [23:40:51]produce_requested_data [23:40:51]requested_item fm.sn is exist - process it [23:40:51]wFMCommunicate request_size=4 [23:40:51]MH_SAM_APDU [23:40:51]CAPDU: 80 11 00 00 [23:40:51]Write to MH i2c: E2 08 00 9B 1F 80 11 00 00 00 00 00 00 34 [23:40:51]Write i2c OK [23:40:51]MH_I2C_Read... [23:40:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:40:51]Read from MH i2c: E2 [23:40:51]MH_I2C_Read... [23:40:51]Read from MH i2c: E2 17 00 [23:40:51]MH_I2C_Read... [23:40:51]Read from MH i2c: E2 17 00 9B 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 8B [23:40:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [23:40:51]wFMCommunicate OK [23:40:51]requested_item fd.num is exist - process it [23:40:51]SAM_PROTO_GetFieldsCounters [23:40:51]wFMCommunicate request_size=4 [23:40:51]MH_SAM_APDU [23:40:51]CAPDU: 80 13 00 00 [23:40:51]Write to MH i2c: E2 08 00 9C 1F 80 13 00 00 00 00 00 00 37 [23:40:51]Write i2c OK [23:40:51]MH_I2C_Read... [23:40:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:40:51]Read from MH i2c: E2 [23:40:51]MH_I2C_Read... [23:40:51]Read from MH i2c: E2 62 00 [23:40:51]MH_I2C_Read... [23:40:51]Read from MH i2c: E2 62 00 9C 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 8F 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 3F 02 00 00 5E 04 04 00 3F 02 00 00 57 04 04 00 40 02 00 00 19 04 04 00 00 00 00 00 90 00 45 [23: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 8F 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 3F 02 00 00 5E 04 04 00 3F 02 00 00 57 04 04 00 40 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:40:51]wFMCommunicate OK [23:40:51]SAM_PROTO_GetFieldsCounters done [23:40:51]requested_item shift.num is exist - process it [23:40:51]requested_item shift.opened is exist - process it [23:40:51]req_shift_opened [23:40:51]FM_GetShiftState [23:40:51]SAM_PROTO_GetShiftState [23:40:51]wFMCommunicate request_size=4 [23:40:51]MH_SAM_APDU [23:40:51]CAPDU: 80 13 01 00 [23:40:51]Write to MH i2c: E2 08 00 9D 1F 80 13 01 00 00 00 00 00 39 [23:40:51]Write i2c OK [23:40:51]MH_I2C_Read... [23:40:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:40:51]Read from MH i2c: E2 [23:40:51]MH_I2C_Read... [23:40:51]Read from MH i2c: E2 0E 00 [23:40:51]MH_I2C_Read... [23:40:51]Read from MH i2c: E2 0E 00 9D 1F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 53 [23:40:51]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [23:40:51]wFMCommunicate OK [23:40:51]SAM_PROTO_GetShiftState done [23:40:51]FM_GetShiftState done [23:40:51]req_shift_opened done [23:40:51]requested_item shift.open_date is exist - process it [23:40:51]req_shift_open_date [23:40:51]req_shift_open_date done [23:40:51]produce_requested_data done [23:40:51]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227727,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [23:40:51]process_action_free close_receipt [23:40:51]json_value_free [23:40:51]json_value_free done [23:40:51]process_json_proto returns [23:40:51]Send response to host [23:40:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227727,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [23:40:51]free response buf [23:40:51]execute_script done [23:40:51]execute_script returns [23:40:51]free content buf [23:40:51]Sock 7.Close socket [23:40:51]Sock 7.Thread stoped [23:40:55]OFD Sender: No OFD packet to send [23:41:00]OFD Sender: No OFD packet to send [23:41:05]OFD Sender: No OFD packet to send [23:41:10]OFD Sender: No OFD packet to send [23:41:15]OFD Sender: No OFD packet to send [23:41:20]OFD Sender: No OFD packet to send [23:41:25]OFD Sender: No OFD packet to send [23:41:30]OFD Sender: No OFD packet to send [23:41:35]OFD Sender: No OFD packet to send [23:41:40]OFD Sender: No OFD packet to send [23:41:45]OFD Sender: No OFD packet to send [23:41:50]OFD Sender: No OFD packet to send [23:41:55]OFD Sender: No OFD packet to send [23:42:00]OFD Sender: No OFD packet to send [23:42:05]OFD Sender: No OFD packet to send [23:42:10]OFD Sender: No OFD packet to send [23:42:15]OFD Sender: No OFD packet to send [23:42:20]OFD Sender: No OFD packet to send [23:42:25]OFD Sender: No OFD packet to send [23:42:30]OFD Sender: No OFD packet to send [23:42:35]OFD Sender: No OFD packet to send [23:42:40]OFD Sender: No OFD packet to send [23:42:45]OFD Sender: No OFD packet to send [23:42:50]OFD Sender: No OFD packet to send [23:42:55]OFD Sender: No OFD packet to send [23:43:00]OFD Sender: No OFD packet to send [23:43:01]accept exits with 9 [23:43:01]New connection [23:43:01]New thread 3066809700 created [23:43:01]Thread 3066666340 joined [23:43:01]Waiting for new connection... [23:43:01] Sock 9.Parse request [23:43:01]Sock 9.Check first char [23:43:01]Sock 9.First char is OK [23:43:01]request: POST /json_proto HTTP/1.0 [23:43:01]Method: POST [23:43:01]URL: /json_proto [23:43:01]Method is POST - this is cgi request [23:43:01]url: /json_proto [23:43:01]query_string will be loaded in cgi processing [23:43:01]execute_cgi json_proto POST (null) [23:43:01]execute_cgi path=json_proto method=POST [23:43:01]POST find Content-Length [23:43:01]Host: 172.17.44.195:8080 [23:43:01]Content-Length: 621 [23:43:01]Content-Type: application/json [23:43:01] [23:43:01]POST finish read [23:43:01]Found Content-Length = 621 [23:43:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963399", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:43:01]execute_script... [23:43: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)1963399", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:43:01]POST & json_proto [23:43:01]process_json_proto [23:43:01]json parsed OK: [23:43:01]protocol is kg_v1.0 [23:43:01]action value=close_receipt [23:43:01]process_action close_receipt [23:43:01]cmd_close_receipt [23:43:01]MH_GetDate [23:43:01]Write to MH i2c: F0 00 00 9E 1F AC [23:43:01]Write i2c OK [23:43:01]MH_I2C_Read... [23:43:01]Read from MH i2c: F0 [23:43:01]MH_I2C_Read... [23:43:01]Read from MH i2c: F0 09 00 [23:43:01]MH_I2C_Read... [23:43:01]Read from MH i2c: F0 09 00 9E 1F 00 86 95 15 67 82 C9 CF 66 CC [23:43:01]GetLastDocTimeStamp 1729467649 [23:43:01]current date 1729467782 [23:43:01]FM_GetShiftState [23:43:01]SAM_PROTO_GetShiftState [23:43:01]wFMCommunicate request_size=4 [23:43:01]MH_SAM_APDU [23:43:01]CAPDU: 80 13 01 00 [23:43:01]Write to MH i2c: E2 08 00 9F 1F 80 13 01 00 00 00 00 00 3B [23:43:01]Write i2c OK [23:43:01]MH_I2C_Read... [23:43:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:43:01]Read from MH i2c: E2 [23:43:01]MH_I2C_Read... [23:43:01]Read from MH i2c: E2 0E 00 [23:43:01]MH_I2C_Read... [23:43:01]Read from MH i2c: E2 0E 00 9F 1F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 55 [23:43:01]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [23:43:01]wFMCommunicate OK [23:43:01]SAM_PROTO_GetShiftState done [23:43:01]FM_GetShiftState done [23:43:01]opened in 1729383750 [23:43:01]opened+sec_in_day 1729470150 [23:43:01]quantity*price = 50000 [23:43:01]sum+1 = 50001 [23:43:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 576 20.10.2024 23:43 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227728 ФПД: 40135649052643 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T234302&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227728&fm=40135649052643&tin=02508201610067®Number=0000000000091685&sum=50000 [23:43:02]StoreToDocumentArchive [23:43:02]shift 533 fd 227728 [23:43:02]save to /storage/0533/doc_00227728 [23:43:02]save last doc name /storage/0533/doc_00227728 to /storage/kkm_last_doc_name [23:43:02]save OK [23:43:02]Clear old archive folders... [23:43:02]ProcessDocumentItem done err = 0, tmpTLVsize=244 [23:43:02]tlvbuf is 00CBFC80 [23:43:02]SAM_PROTO_ClearQueue [23:43:02]wFMCommunicate request_size=4 [23:43:02]MH_SAM_APDU [23:43:02]CAPDU: 80 09 00 00 [23:43:02]Write to MH i2c: E2 08 00 AC 1F 80 09 00 00 00 00 00 00 3D [23:43:02]Write i2c OK [23:43:02]MH_I2C_Read... [23:43:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:43:02]Read from MH i2c: E2 [23:43:02]MH_I2C_Read... [23:43:02]Read from MH i2c: E2 03 00 [23:43:02]MH_I2C_Read... [23:43:02]Read from MH i2c: E2 03 00 AC 1F 00 90 00 3F [23:43:02]RAPDU: 90 00 [23:43:02]wFMCommunicate OK [23:43:02]SAM_PROTO_ClearQueue done [23:43:02]KKMCreateOFDPacket [23:43:02]OFDProtocolAddRootSTLVToBuf [23:43:02]FM_MakeSignedData [23:43:02]FM_MakeSignedData [23:43:02]SAM_PROTO_SignData [23:43:02]wFMCommunicate request_size=4 [23:43:02]MH_SAM_APDU [23:43:02]CAPDU: 80 0D 01 02 [23:43:02]Write to MH i2c: E2 08 00 AD 1F 80 0D 01 02 00 00 00 00 45 [23:43:02]Write i2c OK [23:43:02]MH_I2C_Read... [23:43:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:43:02]Read from MH i2c: E2 [23:43:02]MH_I2C_Read... [23:43:02]Read from MH i2c: E2 03 00 [23:43:02]MH_I2C_Read... [23:43:02]Read from MH i2c: E2 03 00 AD 1F 00 90 00 40 [23:43:02]RAPDU: 90 00 [23:43:02]wFMCommunicate OK [23:43:02]wFMCommunicate request_size=253 [23:43:02]MH_SAM_APDU [23:43:02]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 02 00 00 F4 03 04 00 86 95 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 90 79 03 00 35 04 06 00 24 80 CF 1A C7 E3 [23:43:02]Write to MH i2c: E2 00 01 AE 1F 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 02 00 00 F4 03 04 00 86 95 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 90 79 03 00 35 04 06 00 24 80 CF 1A C7 E3 00 00 7A [23:43:02]Write i2c OK [23:43:02]MH_I2C_Read... [23:43:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:43:02]Read from MH i2c: E2 [23:43:02]MH_I2C_Read... [23:43:02]Read from MH i2c: E2 03 00 [23:43:02]MH_I2C_Read... [23:43:02]Read from MH i2c: E2 03 00 AE 1F 00 90 00 41 [23:43:02]RAPDU: 90 00 [23:43:02]wFMCommunicate OK [23:43:02]wFMCommunicate request_size=4 [23:43:02]MH_SAM_APDU [23:43:02]CAPDU: 80 0D 03 02 [23:43:02]Write to MH i2c: E2 08 00 AF 1F 80 0D 03 02 00 00 00 00 49 [23:43:02]Write i2c OK [23:43:02]MH_I2C_Read... [23:43:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:43:02]Read from MH i2c: E2 [23:43:02]MH_I2C_Read... [23:43:02]Read from MH i2c: E2 0B 00 [23:43:02]MH_I2C_Read... [23:43:02]Read from MH i2c: E2 0B 00 AF 1F 00 76 37 10 99 5D 48 2D FA 90 00 6C [23:43:02]RAPDU: 76 37 10 99 5D 48 2D FA 90 00 [23:43:02]wFMCommunicate OK [23:43:02]SAM_PROTO_SignData done [23:43:02]FM_MakeSignedData done [23:43:02]CreateOFDProtocolMessage [23:43:02]wFMCommunicate request_size=4 [23:43:02]MH_SAM_APDU [23:43:02]CAPDU: 80 11 00 00 [23:43:02]Write to MH i2c: E2 08 00 B0 1F 80 11 00 00 00 00 00 00 49 [23:43:02]Write i2c OK [23:43:02]MH_I2C_Read... [23:43:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:43:02]Read from MH i2c: E2 [23:43:02]MH_I2C_Read... [23:43:02]Read from MH i2c: E2 17 00 [23:43:02]MH_I2C_Read... [23:43:02]Read from MH i2c: E2 17 00 B0 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A0 [23:43:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [23:43:02]wFMCommunicate OK [23:43:02]CreateOFDProtocolMessage done [23:43:02]OFDSenderStorePacket 227728 [23:43:02]StoreOFDPacket docnum=227728 [23:43:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 38 1D 00 01 A8 4B 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 02 00 00 F4 03 04 00 86 95 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 90 79 03 00 35 04 06 00 24 80 CF 1A C7 E3 76 37 10 99 5D 48 2D FA [23:43:02]CheckFolder [23:43:02]dirname=/storage/ofd_packets [23:43:02]CheckFolder done [23:43:02]ProducePacketName [23:43:02]name=ofd_packets/00227728 [23:43:02]NVStorageSaveData ofd_packets/00227728 [23:43:02]File name is /storage/ofd_packets/00227728 [23:43:02]Write 294 bytes [23:43:02]NVStorageSaveData done [23:43:02]OFDSenderStorePacket done [23:43:02]KKMCreateOFDPacket done [23:43:02]NVStorageSaveData kkm_last_timestamp [23:43:02]File name is /storage/kkm_last_timestamp [23:43:02]Write 4 bytes [23:43:02]NVStorageSaveData done [23:43:02]ExternCall_PrintAddStr [23:43:02]wPrintStart [23:43:02]Write to MH i2c: 01 00 00 B1 1F D0 [23:43:02]Write i2c OK [23:43:02]MH_I2C_Read... [23:43:02]Read from MH i2c: 01 [23:43:02]MH_I2C_Read... [23:43:02]Read from MH i2c: 01 07 00 [23:43:02]MH_I2C_Read... [23:43:02]Read from MH i2c: 01 07 00 B1 1F 00 00 00 00 00 FF 0F E5 [23:43:02]RasterBufferAndPrint [23:43:02]line Счет N : (1)1963399 [23:43:02]line ИНН: 02508201610067 [23:43:02]line Контрольно-Кассовый Чек [23:43:02]line ПРОДАЖА [23:43:02]line ТРК (МРК, ГНК) : 32 [23:43:02]line Товар: 2710124130 [23:43:02]line SU-92 [23:43:02]line 7.310 * 68.40 [23:43:02]line = 500.00 [23:43:02]line НДС 12% НСП 1% [23:43:02]line > о реализуемом товаре [23:43:02]line ИТОГО: 500.00 [23:43:02]line НСП 1% : 4.42 [23:43:02]line НДС 12% : 53.10 [23:43:02]line Наличными: 500.00 [23:43:02]line Безнал.: 0.00 [23:43:02]line Место: АЗС № 133 "Партнер Нефть" [23:43:02]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [23:43:02]line СНО: Общий режим [23:43:02]line Чек 576 20.10.2024 23:43 [23:43:02]line Смена: 533 ФФД: 1.0 [23:43:02]line ЗНМ: 0300000091 [23:43:02]line РНМ: 0000000000091685 [23:43:02]line Версия ККМ: 001 [23:43:02]line ФМ: 0000000000871839 [23:43:02]line ФД: 227728 [23:43:02]line ФПД: 40135649052643 [23:43:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T234302&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227728&fm=40135649052643&tin=02508201610067®Number=0000000000091685&sum=50000 [23:43:02]written 0, free lines is 4095 [23:43:02]OFD Sender: Processing packet 227728 [packets to send 38, broken 37] [23:43:02]ProducePacketName [23:43:02]name=ofd_packets/00227728 [23:43:02]OFD Sender: To server: pG, [23:43:02]CommunicateWithHost lk.salyk.kg:30040 [23:43:02]ConnectInit lk.salyk.kg [23:43:02]Connected sock=10 [23:43:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 38 1D 00 01 A8 4B 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 02 00 00 F4 03 04 00 86 95 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 90 79 03 00 35 04 06 00 24 80 CF 1A C7 E3 76 37 10 99 5D 48 2D FA [23:43:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 C8 E3 47 00 62 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 33 39 10 04 04 00 90 79 03 00 F4 03 04 00 84 40 15 67 B6 04 01 00 00 D0 74 9D 50 86 B1 95 53 [23:43:03]CommunicateWithHost err = 0 [23:43:03]CheckOFDResponse [23:43:03]1017 (14) - 77093643461234 [23:43:03]1041 (16) - 0000000000871839 [23:43:03]1040 (4) - 227728 [23:43:03]1012 (4) - 20.10.2024 17:40 [23:43:03]1206 (1) - 0 [23:43:03]OFD Sender: Remove packet 227728 [23:43:03]ProducePacketName [23:43:03]name=ofd_packets/00227728 [23:43:03]NVStorageDeleteData [23:43:03]Write to MH i2c: 01 00 00 D8 1F F7 [23:43:03]Write i2c OK [23:43:03]MH_I2C_Read... [23:43:03]Read from MH i2c: 01 [23:43:03]MH_I2C_Read... [23:43:03]Read from MH i2c: 01 07 00 [23:43:03]MH_I2C_Read... [23:43:03]Read from MH i2c: 01 07 00 D8 1F 00 00 00 00 00 E3 0C ED [23:43:03]RasterBufferAndPrint [23:43:03]line [23:43:03]line [23:43:03]line [23:43:03]line [23:43:03]line [23:43:03]written 0, free lines is 3303 [23:43:03]MH_Cut [23:43:03]Write to MH i2c: D1 01 00 DF 1F 01 D0 [23:43:03]Write i2c OK [23:43:03]MH_I2C_Read... [23:43:03]Read from MH i2c: D1 [23:43:03]MH_I2C_Read... [23:43:03]Read from MH i2c: D1 01 00 [23:43:03]MH_I2C_Read... [23:43:03]Read from MH i2c: D1 01 00 DF 1F 00 CF [23:43:03]Write to MH i2c: 01 00 00 E0 1F FF [23:43:03]Write i2c OK [23:43:03]MH_I2C_Read... [23:43:03]OFD Sender: No OFD packet to send [23:43:04]*** Cut start [23:43:04]*** Partial cut [23:43:04]*** CUTSNS_PIN = 1 [23:43:04]*** CUTSNS_PIN = 0 [23:43:04]*** Brake cut motor [23:43:04]Read from MH i2c: 01 [23:43:04]MH_I2C_Read... [23:43:04]*** Stop cut motor [23:43:04]*** Cut end [23:43:04]Read from MH i2c: 01 07 00 [23:43:04]MH_I2C_Read... [23:43:04]Read from MH i2c: 01 07 00 E0 1F 00 00 00 00 00 FF 0F 14 [23:43:04]process_action close_receipt done [23:43:04]requested_data is exist [23:43:04]produce_requested_data [23:43:04]requested_item fm.sn is exist - process it [23:43:04]wFMCommunicate request_size=4 [23:43:04]MH_SAM_APDU [23:43:04]CAPDU: 80 11 00 00 [23:43:04]Write to MH i2c: E2 08 00 E1 1F 80 11 00 00 00 00 00 00 7A [23:43:04]Write i2c OK [23:43:04]MH_I2C_Read... [23:43:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:43:04]Read from MH i2c: E2 [23:43:04]MH_I2C_Read... [23:43:04]Read from MH i2c: E2 17 00 [23:43:04]MH_I2C_Read... [23:43:04]Read from MH i2c: E2 17 00 E1 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D1 [23:43:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [23:43:04]wFMCommunicate OK [23:43:04]requested_item fd.num is exist - process it [23:43:04]SAM_PROTO_GetFieldsCounters [23:43:04]wFMCommunicate request_size=4 [23:43:04]MH_SAM_APDU [23:43:04]CAPDU: 80 13 00 00 [23:43:04]Write to MH i2c: E2 08 00 E2 1F 80 13 00 00 00 00 00 00 7D [23:43:04]Write i2c OK [23:43:04]MH_I2C_Read... [23:43:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:43:04]Read from MH i2c: E2 [23:43:04]MH_I2C_Read... [23:43:04]Read from MH i2c: E2 62 00 [23:43:04]MH_I2C_Read... [23:43:04]Read from MH i2c: E2 62 00 E2 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 90 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 40 02 00 00 5E 04 04 00 40 02 00 00 57 04 04 00 41 02 00 00 19 04 04 00 00 00 00 00 90 00 8F [23:43:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 90 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 40 02 00 00 5E 04 04 00 40 02 00 00 57 04 04 00 41 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:43:04]wFMCommunicate OK [23:43:04]SAM_PROTO_GetFieldsCounters done [23:43:04]requested_item shift.num is exist - process it [23:43:04]requested_item shift.opened is exist - process it [23:43:04]req_shift_opened [23:43:04]FM_GetShiftState [23:43:04]SAM_PROTO_GetShiftState [23:43:04]wFMCommunicate request_size=4 [23:43:04]MH_SAM_APDU [23:43:04]CAPDU: 80 13 01 00 [23:43:04]Write to MH i2c: E2 08 00 E3 1F 80 13 01 00 00 00 00 00 7F [23:43:04]Write i2c OK [23:43:04]MH_I2C_Read... [23:43:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:43:04]Read from MH i2c: E2 [23:43:04]MH_I2C_Read... [23:43:04]Read from MH i2c: E2 0E 00 [23:43:04]MH_I2C_Read... [23:43:04]Read from MH i2c: E2 0E 00 E3 1F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 99 [23:43:04]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [23:43:04]wFMCommunicate OK [23:43:04]SAM_PROTO_GetShiftState done [23:43:04]FM_GetShiftState done [23:43:04]req_shift_opened done [23:43:04]requested_item shift.open_date is exist - process it [23:43:04]req_shift_open_date [23:43:04]req_shift_open_date done [23:43:04]produce_requested_data done [23:43:04]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227728,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [23:43:04]process_action_free close_receipt [23:43:04]json_value_free [23:43:04]json_value_free done [23:43:04]process_json_proto returns [23:43:04]Send response to host [23:43:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227728,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [23:43:04]free response buf [23:43:04]execute_script done [23:43:04]execute_script returns [23:43:04]free content buf [23:43:04]Sock 9.Close socket [23:43:04]Sock 9.Thread stoped [23:43:08]OFD Sender: No OFD packet to send [23:43:13]OFD Sender: No OFD packet to send [23:43:18]OFD Sender: No OFD packet to send [23:43:23]OFD Sender: No OFD packet to send [23:43:28]OFD Sender: No OFD packet to send [23:43:33]OFD Sender: No OFD packet to send [23:43:38]OFD Sender: No OFD packet to send [23:43:43]OFD Sender: No OFD packet to send [23:43:48]OFD Sender: No OFD packet to send [23:43:53]OFD Sender: No OFD packet to send [23:43:58]OFD Sender: No OFD packet to send [23:44:03]OFD Sender: No OFD packet to send [23:44:08]OFD Sender: No OFD packet to send [23:44:13]OFD Sender: No OFD packet to send [23:44:18]OFD Sender: No OFD packet to send [23:44:23]OFD Sender: No OFD packet to send [23:44:28]OFD Sender: No OFD packet to send [23:44:33]OFD Sender: No OFD packet to send [23:44:38]OFD Sender: No OFD packet to send [23:44:43]OFD Sender: No OFD packet to send [23:44:48]OFD Sender: No OFD packet to send [23:44:53]OFD Sender: No OFD packet to send [23:44:58]OFD Sender: No OFD packet to send [23:45:03]OFD Sender: No OFD packet to send [23:45:08]OFD Sender: No OFD packet to send [23:45:13]OFD Sender: No OFD packet to send [23:45:18]OFD Sender: No OFD packet to send [23:45:23]OFD Sender: No OFD packet to send [23:45:28]OFD Sender: No OFD packet to send [23:45:33]OFD Sender: No OFD packet to send [23:45:38]OFD Sender: No OFD packet to send [23:45:43]OFD Sender: No OFD packet to send [23:45:48]OFD Sender: No OFD packet to send [23:45:53]OFD Sender: No OFD packet to send [23:45:58]OFD Sender: No OFD packet to send [23:46:03]OFD Sender: No OFD packet to send [23:46:08]OFD Sender: No OFD packet to send [23:46:13]OFD Sender: No OFD packet to send [23:46:18]OFD Sender: No OFD packet to send [23:46:23]OFD Sender: No OFD packet to send [23:46:28]OFD Sender: No OFD packet to send [23:46:33]OFD Sender: No OFD packet to send [23:46:38]OFD Sender: No OFD packet to send [23:46:43]OFD Sender: No OFD packet to send [23:46:48]OFD Sender: No OFD packet to send [23:46:53]OFD Sender: No OFD packet to send [23:46:58]OFD Sender: No OFD packet to send [23:47:03]OFD Sender: No OFD packet to send [23:47:08]OFD Sender: No OFD packet to send [23:47:13]OFD Sender: No OFD packet to send [23:47:18]OFD Sender: No OFD packet to send [23:47:23]OFD Sender: No OFD packet to send [23:47:28]OFD Sender: No OFD packet to send [23:47:33]OFD Sender: No OFD packet to send [23:47:38]OFD Sender: No OFD packet to send [23:47:43]OFD Sender: No OFD packet to send [23:47:48]OFD Sender: No OFD packet to send [23:47:53]OFD Sender: No OFD packet to send [23:47:58]OFD Sender: No OFD packet to send [23:48:03]OFD Sender: No OFD packet to send [23:48:08]OFD Sender: No OFD packet to send [23:48:13]OFD Sender: No OFD packet to send [23:48:18]OFD Sender: No OFD packet to send [23:48:23]OFD Sender: No OFD packet to send [23:48:28]OFD Sender: No OFD packet to send [23:48:33]OFD Sender: No OFD packet to send [23:48:38]OFD Sender: No OFD packet to send [23:48:43]OFD Sender: No OFD packet to send [23:48:48]OFD Sender: No OFD packet to send [23:48:53]OFD Sender: No OFD packet to send [23:48:58]OFD Sender: No OFD packet to send [23:49:03]OFD Sender: No OFD packet to send [23:49:08]OFD Sender: No OFD packet to send [23:49:13]OFD Sender: No OFD packet to send [23:49:18]OFD Sender: No OFD packet to send [23:49:23]OFD Sender: No OFD packet to send [23:49:28]OFD Sender: No OFD packet to send [23:49:33]OFD Sender: No OFD packet to send [23:49:38]OFD Sender: No OFD packet to send [23:49:43]OFD Sender: No OFD packet to send [23:49:48]OFD Sender: No OFD packet to send [23:49:53]OFD Sender: No OFD packet to send [23:49:58]OFD Sender: No OFD packet to send [23:50:03]OFD Sender: No OFD packet to send [23:50:08]OFD Sender: No OFD packet to send [23:50:14]OFD Sender: No OFD packet to send [23:50:19]OFD Sender: No OFD packet to send [23:50:24]OFD Sender: No OFD packet to send [23:50:29]OFD Sender: No OFD packet to send [23:50:34]OFD Sender: No OFD packet to send [23:50:39]OFD Sender: No OFD packet to send [23:50:44]OFD Sender: No OFD packet to send [23:50:49]OFD Sender: No OFD packet to send [23:50:54]OFD Sender: No OFD packet to send [23:50:59]OFD Sender: No OFD packet to send [23:51:04]OFD Sender: No OFD packet to send [23:51:09]OFD Sender: No OFD packet to send [23:51:14]OFD Sender: No OFD packet to send [23:51:19]OFD Sender: No OFD packet to send [23:51:24]OFD Sender: No OFD packet to send [23:51:29]OFD Sender: No OFD packet to send [23:51:34]OFD Sender: No OFD packet to send [23:51:39]OFD Sender: No OFD packet to send [23:51:44]OFD Sender: No OFD packet to send [23:51:49]OFD Sender: No OFD packet to send [23:51:54]OFD Sender: No OFD packet to send [23:51:59]OFD Sender: No OFD packet to send [23:52:04]OFD Sender: No OFD packet to send [23:52:09]OFD Sender: No OFD packet to send [23:52:14]OFD Sender: No OFD packet to send [23:52:19]OFD Sender: No OFD packet to send [23:52:24]OFD Sender: No OFD packet to send [23:52:29]OFD Sender: No OFD packet to send [23:52:34]OFD Sender: No OFD packet to send [23:52:39]OFD Sender: No OFD packet to send [23:52:44]OFD Sender: No OFD packet to send [23:52:49]OFD Sender: No OFD packet to send [23:52:54]OFD Sender: No OFD packet to send [23:52:59]OFD Sender: No OFD packet to send [23:53:04]OFD Sender: No OFD packet to send [23:53:09]OFD Sender: No OFD packet to send [23:53:14]OFD Sender: No OFD packet to send [23:53:19]OFD Sender: No OFD packet to send [23:53:24]OFD Sender: No OFD packet to send [23:53:29]OFD Sender: No OFD packet to send [23:53:34]OFD Sender: No OFD packet to send [23:53:39]OFD Sender: No OFD packet to send [23:53:44]OFD Sender: No OFD packet to send [23:53:49]OFD Sender: No OFD packet to send [23:53:54]OFD Sender: No OFD packet to send [23:53:59]OFD Sender: No OFD packet to send [23:54:04]OFD Sender: No OFD packet to send [23:54:09]OFD Sender: No OFD packet to send [23:54:14]OFD Sender: No OFD packet to send [23:54:19]OFD Sender: No OFD packet to send [23:54:24]OFD Sender: No OFD packet to send [23:54:29]OFD Sender: No OFD packet to send [23:54:34]OFD Sender: No OFD packet to send [23:54:36]accept exits with 7 [23:54:36]New connection [23:54:36]New thread 3066666340 created [23:54:36]Thread 3066809700 joined [23:54:36]Waiting for new connection... [23:54:36] Sock 7.Parse request [23:54:36]Sock 7.Check first char [23:54:36]Sock 7.First char is OK [23:54:36]request: POST /json_proto HTTP/1.0 [23:54:36]Method: POST [23:54:36]URL: /json_proto [23:54:36]Method is POST - this is cgi request [23:54:36]url: /json_proto [23:54:36]query_string will be loaded in cgi processing [23:54:36]execute_cgi json_proto POST (null) [23:54:36]execute_cgi path=json_proto method=POST [23:54:36]POST find Content-Length [23:54:36]Host: 172.17.44.195:8080 [23:54:36]Content-Length: 841 [23:54:36]Content-Type: application/json [23:54:36] [23:54:36]POST finish read [23:54:36]Found Content-Length = 841 [23:54:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963400", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:54:36]execute_script... [23: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)1963400", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:54:36]POST & json_proto [23:54:36]process_json_proto [23:54:36]json parsed OK: [23:54:36]protocol is kg_v1.0 [23:54:36]action value=close_receipt [23:54:36]process_action close_receipt [23:54:36]cmd_close_receipt [23:54:36]MH_GetDate [23:54:36]Write to MH i2c: F0 00 00 E4 1F F2 [23:54:36]Write i2c OK [23:54:36]MH_I2C_Read... [23:54:36]Read from MH i2c: F0 [23:54:36]MH_I2C_Read... [23:54:36]Read from MH i2c: F0 09 00 [23:54:36]MH_I2C_Read... [23:54:36]Read from MH i2c: F0 09 00 E4 1F 00 3E 98 15 67 82 C9 CF 66 CD [23:54:36]GetLastDocTimeStamp 1729467782 [23:54:36]current date 1729468478 [23:54:36]FM_GetShiftState [23:54:36]SAM_PROTO_GetShiftState [23:54:36]wFMCommunicate request_size=4 [23:54:36]MH_SAM_APDU [23:54:36]CAPDU: 80 13 01 00 [23:54:36]Write to MH i2c: E2 08 00 E5 1F 80 13 01 00 00 00 00 00 81 [23:54:36]Write i2c OK [23:54:36]MH_I2C_Read... [23:54:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:54:36]Read from MH i2c: E2 [23:54:36]MH_I2C_Read... [23:54:36]Read from MH i2c: E2 0E 00 [23:54:36]MH_I2C_Read... [23:54:36]Read from MH i2c: E2 0E 00 E5 1F 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 9B [23:54:36]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [23:54:36]wFMCommunicate OK [23:54:36]SAM_PROTO_GetShiftState done [23:54:36]FM_GetShiftState done [23:54:36]opened in 1729383750 [23:54:36]opened+sec_in_day 1729470150 [23:54:36]quantity*price = 50010 [23:54:36]sum+1 = 50012 [23:54:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.11 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.11 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 577 20.10.2024 23:54 Смена: 533 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000871839 ФД: 227729 ФПД: 197666651914615 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T235438&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227729&fm=197666651914615&tin=02508201610067®Number=0000000000091685&sum=50011 [23:54:37]StoreToDocumentArchive [23:54:37]shift 533 fd 227729 [23:54:37]save to /storage/0533/doc_00227729 [23:54:37]save last doc name /storage/0533/doc_00227729 to /storage/kkm_last_doc_name [23:54:37]save OK [23:54:37]Clear old archive folders... [23:54:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:54:37]tlvbuf is 00D0C640 [23:54:37]SAM_PROTO_ClearQueue [23:54:37]wFMCommunicate request_size=4 [23:54:37]MH_SAM_APDU [23:54:37]CAPDU: 80 09 00 00 [23:54:37]Write to MH i2c: E2 08 00 F2 1F 80 09 00 00 00 00 00 00 83 [23:54:37]Write i2c OK [23:54:37]MH_I2C_Read... [23:54:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:54:37]Read from MH i2c: E2 [23:54:37]MH_I2C_Read... [23:54:37]Read from MH i2c: E2 03 00 [23:54:37]MH_I2C_Read... [23:54:37]Read from MH i2c: E2 03 00 F2 1F 00 90 00 85 [23:54:37]RAPDU: 90 00 [23:54:37]wFMCommunicate OK [23:54:37]SAM_PROTO_ClearQueue done [23:54:37]KKMCreateOFDPacket [23:54:37]OFDProtocolAddRootSTLVToBuf [23:54:37]FM_MakeSignedData [23:54:37]FM_MakeSignedData [23:54:37]SAM_PROTO_SignData [23:54:37]wFMCommunicate request_size=4 [23:54:37]MH_SAM_APDU [23:54:37]CAPDU: 80 0D 01 02 [23:54:37]Write to MH i2c: E2 08 00 F3 1F 80 0D 01 02 00 00 00 00 8B [23:54:37]Write i2c OK [23:54:37]MH_I2C_Read... [23:54:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:54:37]Read from MH i2c: E2 [23:54:37]MH_I2C_Read... [23:54:37]Read from MH i2c: E2 03 00 [23:54:37]MH_I2C_Read... [23:54:37]Read from MH i2c: E2 03 00 F3 1F 00 90 00 86 [23:54:37]RAPDU: 90 00 [23:54:37]wFMCommunicate OK [23:54:37]wFMCommunicate request_size=255 [23:54:37]MH_SAM_APDU [23: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 02 00 00 F4 03 04 00 3E 98 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 91 79 03 00 35 04 06 00 B3 [23:54:37]Write to MH i2c: E2 02 01 F4 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 02 00 00 F4 03 04 00 3E 98 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 91 79 03 00 35 04 06 00 B3 00 00 7C [23:54:37]Write i2c OK [23:54:37]MH_I2C_Read... [23:54:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:54:38]Read from MH i2c: E2 [23:54:38]MH_I2C_Read... [23:54:38]Read from MH i2c: E2 03 00 [23:54:38]MH_I2C_Read... [23:54:38]Read from MH i2c: E2 03 00 F4 1F 00 90 00 87 [23:54:38]RAPDU: 90 00 [23:54:38]wFMCommunicate OK [23:54:38]wFMCommunicate request_size=10 [23:54:38]MH_SAM_APDU [23:54:38]CAPDU: 80 0D 02 02 05 C6 DA 92 41 77 [23:54:38]Write to MH i2c: E2 0D 00 F5 1F 80 0D 02 02 05 00 C6 DA 92 41 77 00 00 82 [23:54:38]Write i2c OK [23:54:38]MH_I2C_Read... [23:54:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:54:38]Read from MH i2c: E2 [23:54:38]MH_I2C_Read... [23:54:38]Read from MH i2c: E2 03 00 [23:54:38]MH_I2C_Read... [23:54:38]Read from MH i2c: E2 03 00 F5 1F 00 90 00 88 [23:54:38]RAPDU: 90 00 [23:54:38]wFMCommunicate OK [23:54:38]wFMCommunicate request_size=4 [23:54:38]MH_SAM_APDU [23:54:38]CAPDU: 80 0D 03 02 [23:54:38]Write to MH i2c: E2 08 00 F6 1F 80 0D 03 02 00 00 00 00 90 [23:54:38]Write i2c OK [23:54:38]MH_I2C_Read... [23:54:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:54:38]Read from MH i2c: E2 [23:54:38]MH_I2C_Read... [23:54:38]Read from MH i2c: E2 0B 00 [23:54:38]MH_I2C_Read... [23:54:38]Read from MH i2c: E2 0B 00 F6 1F 00 B1 AA BF 32 13 09 F2 1E 90 00 09 [23:54:38]RAPDU: B1 AA BF 32 13 09 F2 1E 90 00 [23:54:38]wFMCommunicate OK [23:54:38]SAM_PROTO_SignData done [23:54:38]FM_MakeSignedData done [23:54:38]CreateOFDProtocolMessage [23:54:38]wFMCommunicate request_size=4 [23:54:38]MH_SAM_APDU [23:54:38]CAPDU: 80 11 00 00 [23:54:38]Write to MH i2c: E2 08 00 F7 1F 80 11 00 00 00 00 00 00 90 [23:54:38]Write i2c OK [23:54:38]MH_I2C_Read... [23:54:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:54:38]Read from MH i2c: E2 [23:54:38]MH_I2C_Read... [23:54:38]Read from MH i2c: E2 17 00 [23:54:38]MH_I2C_Read... [23:54:38]Read from MH i2c: E2 17 00 F7 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E7 [23:54:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [23:54:38]wFMCommunicate OK [23:54:38]CreateOFDProtocolMessage done [23:54:38]OFDSenderStorePacket 227729 [23:54:38]StoreOFDPacket docnum=227729 [23:54:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 AF B4 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 02 00 00 F4 03 04 00 3E 98 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 91 79 03 00 35 04 06 00 B3 C6 DA 92 41 77 B1 AA BF 32 13 09 F2 1E [23:54:38]CheckFolder [23:54:38]dirname=/storage/ofd_packets [23:54:38]CheckFolder done [23:54:38]ProducePacketName [23:54:38]name=ofd_packets/00227729 [23:54:38]NVStorageSaveData ofd_packets/00227729 [23:54:38]File name is /storage/ofd_packets/00227729 [23:54:38]Write 301 bytes [23:54:38]NVStorageSaveData done [23:54:38]OFDSenderStorePacket done [23:54:38]KKMCreateOFDPacket done [23:54:38]NVStorageSaveData kkm_last_timestamp [23:54:38]File name is /storage/kkm_last_timestamp [23:54:38]Write 4 bytes [23:54:38]NVStorageSaveData done [23:54:38]ExternCall_PrintAddStr [23:54:38]wPrintStart [23:54:38]Write to MH i2c: 01 00 00 F8 1F 17 [23:54:38]Write i2c OK [23:54:38]MH_I2C_Read... [23:54:38]Read from MH i2c: 01 [23:54:38]MH_I2C_Read... [23:54:38]Read from MH i2c: 01 07 00 [23:54:38]MH_I2C_Read... [23:54:38]Read from MH i2c: 01 07 00 F8 1F 00 00 00 00 00 FF 0F 2C [23:54:38]RasterBufferAndPrint [23:54:38]line Счет N : (1)1963400 [23:54:38]line ИНН: 02508201610067 [23:54:38]line Контрольно-Кассовый Чек [23:54:38]line ПРОДАЖА [23:54:38]line ТРК (МРК, ГНК) : 34 [23:54:38]line Товар: 2710124500 [23:54:38]line Аи-95-К-5 [23:54:38]line 6.740 * 74.20 [23:54:38]line = 500.11 [23:54:38]line НДС 12% НСП 1% [23:54:38]line > о реализуемом товаре [23:54:38]line ИТОГО: 500.11 [23:54:38]line НСП 1% : 4.43 [23:54:38]line НДС 12% : 53.11 [23:54:38]line Наличными: 0.00 [23:54:38]line Безнал.: 500.11 [23:54:38]line Место: АЗС № 133 "Партнер Нефть" [23:54:38]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [23:54:38]line СНО: Общий режим [23:54:38]line Чек 577 20.10.2024 23:54 [23:54:38]line Смена: 533 ФФД: 1.0 [23:54:38]line ЗНМ: 0300000091 [23:54:38]line РНМ: 0000000000091685 [23:54:38]line Версия ККМ: 001 [23:54:38]line Платежная система: АКБ Кыргызстан [23:54:38]line ФМ: 0000000000871839 [23:54:38]line ФД: 227729 [23:54:38]line ФПД: 197666651914615 [23:54:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T235438&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227729&fm=197666651914615&tin=02508201610067®Number=0000000000091685&sum=50011 [23:54:38]written 0, free lines is 4095 [23:54:38]OFD Sender: Processing packet 227729 [packets to send 38, broken 37] [23:54:38]ProducePacketName [23:54:38]name=ofd_packets/00227729 [23:54:38]OFD Sender: To server: pG, [23:54:38]CommunicateWithHost lk.salyk.kg:30040 [23:54:38]ConnectInit lk.salyk.kg [23:54:38]Connected sock=10 [23: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 33 39 0F 01 00 00 AF B4 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 02 00 00 F4 03 04 00 3E 98 15 67 0E 04 04 00 15 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 91 79 03 00 35 04 06 00 B3 C6 DA 92 41 77 B1 AA BF 32 13 09 F2 1E [23: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 33 39 4F 00 00 00 70 CE 47 00 4D A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 91 79 03 00 F4 03 04 00 3B 43 15 67 B6 04 01 00 00 A8 CE DC 63 DB B5 C5 BC [23:54:38]CommunicateWithHost err = 0 [23:54:38]CheckOFDResponse [23:54:38]1017 (14) - 77093643461234 [23:54:38]1041 (16) - 0000000000871839 [23:54:38]1040 (4) - 227729 [23:54:38]1012 (4) - 20.10.2024 17:51 [23:54:38]1206 (1) - 0 [23:54:38]OFD Sender: Remove packet 227729 [23:54:38]ProducePacketName [23:54:38]name=ofd_packets/00227729 [23:54:38]NVStorageDeleteData [23:54:39]Write to MH i2c: 01 00 00 21 20 41 [23:54:39]Write i2c OK [23:54:39]MH_I2C_Read... [23:54:39]Read from MH i2c: 01 [23:54:39]MH_I2C_Read... [23:54:39]Read from MH i2c: 01 07 00 [23:54:39]MH_I2C_Read... [23:54:39]Read from MH i2c: 01 07 00 21 20 00 00 00 00 00 B2 0C 06 [23:54:39]RasterBufferAndPrint [23:54:39]line [23:54:39]line [23:54:39]line [23:54:39]line [23:54:39]line [23:54:39]written 0, free lines is 3254 [23:54:39]MH_Cut [23:54:39]Write to MH i2c: D1 01 00 28 20 01 1A [23:54:39]Write i2c OK [23:54:39]MH_I2C_Read... [23:54:39]Read from MH i2c: D1 [23:54:39]MH_I2C_Read... [23:54:39]Read from MH i2c: D1 01 00 [23:54:39]MH_I2C_Read... [23:54:39]Read from MH i2c: D1 01 00 28 20 00 19 [23:54:39]Write to MH i2c: 01 00 00 29 20 49 [23:54:39]Write i2c OK [23:54:39]MH_I2C_Read... [23:54:39]OFD Sender: No OFD packet to send [23:54:39]*** Cut start [23:54:39]*** Partial cut [23:54:39]*** CUTSNS_PIN = 1 [23:54:40]*** CUTSNS_PIN = 0 [23:54:40]*** Brake cut motor [23:54:40]Read from MH i2c: 01 [23:54:40]MH_I2C_Read... [23:54:40]*** Stop cut motor [23:54:40]*** Cut end [23:54:40]Read from MH i2c: 01 07 00 [23:54:40]MH_I2C_Read... [23:54:40]Read from MH i2c: 01 07 00 29 20 00 00 00 00 00 FF 0F 5E [23:54:40]process_action close_receipt done [23:54:40]requested_data is exist [23:54:40]produce_requested_data [23:54:40]requested_item fm.sn is exist - process it [23:54:40]wFMCommunicate request_size=4 [23:54:40]MH_SAM_APDU [23:54:40]CAPDU: 80 11 00 00 [23:54:40]Write to MH i2c: E2 08 00 2A 20 80 11 00 00 00 00 00 00 C4 [23:54:40]Write i2c OK [23:54:40]MH_I2C_Read... [23:54:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:54:40]Read from MH i2c: E2 [23:54:40]MH_I2C_Read... [23:54:40]Read from MH i2c: E2 17 00 [23:54:40]MH_I2C_Read... [23:54:40]Read from MH i2c: E2 17 00 2A 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 1B [23:54:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [23:54:40]wFMCommunicate OK [23:54:40]requested_item fd.num is exist - process it [23:54:40]SAM_PROTO_GetFieldsCounters [23:54:40]wFMCommunicate request_size=4 [23:54:40]MH_SAM_APDU [23:54:40]CAPDU: 80 13 00 00 [23:54:40]Write to MH i2c: E2 08 00 2B 20 80 13 00 00 00 00 00 00 C7 [23:54:40]Write i2c OK [23:54:40]MH_I2C_Read... [23:54:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:54:40]Read from MH i2c: E2 [23:54:40]MH_I2C_Read... [23:54:40]Read from MH i2c: E2 62 00 [23:54:40]MH_I2C_Read... [23:54:40]Read from MH i2c: E2 62 00 2B 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 91 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 41 02 00 00 5E 04 04 00 41 02 00 00 57 04 04 00 42 02 00 00 19 04 04 00 00 00 00 00 90 00 DD [23: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 91 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 41 02 00 00 5E 04 04 00 41 02 00 00 57 04 04 00 42 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:54:40]wFMCommunicate OK [23:54:40]SAM_PROTO_GetFieldsCounters done [23:54:40]requested_item shift.num is exist - process it [23:54:40]requested_item shift.opened is exist - process it [23:54:40]req_shift_opened [23:54:40]FM_GetShiftState [23:54:40]SAM_PROTO_GetShiftState [23:54:40]wFMCommunicate request_size=4 [23:54:40]MH_SAM_APDU [23:54:40]CAPDU: 80 13 01 00 [23:54:40]Write to MH i2c: E2 08 00 2C 20 80 13 01 00 00 00 00 00 C9 [23:54:40]Write i2c OK [23:54:40]MH_I2C_Read... [23:54:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:54:40]Read from MH i2c: E2 [23:54:40]MH_I2C_Read... [23:54:40]Read from MH i2c: E2 0E 00 [23:54:40]MH_I2C_Read... [23:54:40]Read from MH i2c: E2 0E 00 2C 20 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 E3 [23:54:40]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [23:54:40]wFMCommunicate OK [23:54:40]SAM_PROTO_GetShiftState done [23:54:40]FM_GetShiftState done [23:54:40]req_shift_opened done [23:54:40]requested_item shift.open_date is exist - process it [23:54:40]req_shift_open_date [23:54:40]req_shift_open_date done [23:54:40]produce_requested_data done [23:54:40]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227729,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [23:54:40]process_action_free close_receipt [23:54:40]json_value_free [23:54:40]json_value_free done [23:54:40]process_json_proto returns [23:54:40]Send response to host [23:54:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227729,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [23:54:40]free response buf [23:54:40]execute_script done [23:54:40]execute_script returns [23:54:40]free content buf [23:54:40]Sock 7.Close socket [23:54:40]Sock 7.Thread stoped [23:54:44]OFD Sender: No OFD packet to send [23:54:49]OFD Sender: No OFD packet to send [23:54:54]OFD Sender: No OFD packet to send [23:54:59]OFD Sender: No OFD packet to send [23:55:04]OFD Sender: No OFD packet to send [23:55:09]OFD Sender: No OFD packet to send [23:55:14]OFD Sender: No OFD packet to send [23:55:19]OFD Sender: No OFD packet to send [23:55:24]OFD Sender: No OFD packet to send [23:55:29]OFD Sender: No OFD packet to send [23:55:34]OFD Sender: No OFD packet to send [23:55:39]OFD Sender: No OFD packet to send [23:55:44]OFD Sender: No OFD packet to send [23:55:49]OFD Sender: No OFD packet to send [23:55:54]OFD Sender: No OFD packet to send [23:55:59]OFD Sender: No OFD packet to send [23:56:04]OFD Sender: No OFD packet to send [23:56:09]OFD Sender: No OFD packet to send [23:56:14]OFD Sender: No OFD packet to send [23:56:19]OFD Sender: No OFD packet to send [23:56:24]OFD Sender: No OFD packet to send [23:56:29]OFD Sender: No OFD packet to send [23:56:34]OFD Sender: No OFD packet to send [23:56:39]OFD Sender: No OFD packet to send [23:56:44]OFD Sender: No OFD packet to send [23:56:49]OFD Sender: No OFD packet to send [23:56:54]OFD Sender: No OFD packet to send [23:56:59]OFD Sender: No OFD packet to send [23:57:04]OFD Sender: No OFD packet to send [23:57:09]OFD Sender: No OFD packet to send [23:57:14]OFD Sender: No OFD packet to send [23:57:19]OFD Sender: No OFD packet to send [23:57:24]OFD Sender: No OFD packet to send [23:57:29]OFD Sender: No OFD packet to send [23:57:34]OFD Sender: No OFD packet to send [23:57:39]OFD Sender: No OFD packet to send [23:57:44]OFD Sender: No OFD packet to send [23:57:49]OFD Sender: No OFD packet to send [23:57:54]OFD Sender: No OFD packet to send [23:57:59]OFD Sender: No OFD packet to send [23:58:04]OFD Sender: No OFD packet to send [23:58:09]OFD Sender: No OFD packet to send [23:58:14]OFD Sender: No OFD packet to send [23:58:19]OFD Sender: No OFD packet to send [23:58:24]OFD Sender: No OFD packet to send [23:58:29]OFD Sender: No OFD packet to send [23:58:34]OFD Sender: No OFD packet to send [23:58:39]OFD Sender: No OFD packet to send [23:58:44]OFD Sender: No OFD packet to send [23:58:49]OFD Sender: No OFD packet to send [23:58:54]OFD Sender: No OFD packet to send [23:58:59]OFD Sender: No OFD packet to send [23:59:04]OFD Sender: No OFD packet to send [23:59:09]OFD Sender: No OFD packet to send [23:59:14]OFD Sender: No OFD packet to send [23:59:19]OFD Sender: No OFD packet to send [23:59:24]OFD Sender: No OFD packet to send [23:59:29]OFD Sender: No OFD packet to send [23:59:34]OFD Sender: No OFD packet to send [23:59:39]OFD Sender: No OFD packet to send [23:59:44]OFD Sender: No OFD packet to send [23:59:49]OFD Sender: No OFD packet to send [23:59:54]OFD Sender: No OFD packet to send [23:59:59]OFD Sender: No OFD packet to send [00:00:04]OFD Sender: No OFD packet to send [00:00:09]OFD Sender: No OFD packet to send [00:00:14]OFD Sender: No OFD packet to send [00:00:19]OFD Sender: No OFD packet to send [00:00:24]OFD Sender: No OFD packet to send [00:00:29]OFD Sender: No OFD packet to send [00:00:34]OFD Sender: No OFD packet to send [00:00:39]OFD Sender: No OFD packet to send [00:00:44]OFD Sender: No OFD packet to send [00:00:49]OFD Sender: No OFD packet to send [00:00:54]OFD Sender: No OFD packet to send [00:00:59]OFD Sender: No OFD packet to send [00:01:04]OFD Sender: No OFD packet to send [00:01:09]OFD Sender: No OFD packet to send [00:01:14]OFD Sender: No OFD packet to send [00:01:19]OFD Sender: No OFD packet to send [00:01:24]OFD Sender: No OFD packet to send [00:01:29]OFD Sender: No OFD packet to send [00:01:34]OFD Sender: No OFD packet to send [00:01:39]OFD Sender: No OFD packet to send [00:01:44]OFD Sender: No OFD packet to send [00:01:49]OFD Sender: No OFD packet to send [00:01:54]OFD Sender: No OFD packet to send [00:01:59]OFD Sender: No OFD packet to send [00:02:04]OFD Sender: No OFD packet to send [00:02:09]OFD Sender: No OFD packet to send [00:02:14]OFD Sender: No OFD packet to send [00:02:19]OFD Sender: No OFD packet to send [00:02:24]OFD Sender: No OFD packet to send [00:02:29]OFD Sender: No OFD packet to send [00:02:34]OFD Sender: No OFD packet to send [00:02:39]OFD Sender: No OFD packet to send [00:02:44]OFD Sender: No OFD packet to send [00:02:49]OFD Sender: No OFD packet to send [00:02:54]OFD Sender: No OFD packet to send [00:02:59]OFD Sender: No OFD packet to send [00:03:04]OFD Sender: No OFD packet to send [00:03:09]OFD Sender: No OFD packet to send [00:03:14]OFD Sender: No OFD packet to send [00:03:19]OFD Sender: No OFD packet to send [00:03:24]OFD Sender: No OFD packet to send [00:03:29]OFD Sender: No OFD packet to send [00:03:34]OFD Sender: No OFD packet to send [00:03:39]OFD Sender: No OFD packet to send [00:03:44]OFD Sender: No OFD packet to send [00:03:49]OFD Sender: No OFD packet to send [00:03:54]OFD Sender: No OFD packet to send [00:03:59]OFD Sender: No OFD packet to send [00:04:04]OFD Sender: No OFD packet to send [00:04:09]OFD Sender: No OFD packet to send [00:04:14]OFD Sender: No OFD packet to send [00:04:19]OFD Sender: No OFD packet to send [00:04:24]OFD Sender: No OFD packet to send [00:04:29]OFD Sender: No OFD packet to send [00:04:34]OFD Sender: No OFD packet to send [00:04:39]OFD Sender: No OFD packet to send [00:04:44]OFD Sender: No OFD packet to send [00:04:49]OFD Sender: No OFD packet to send [00:04:54]OFD Sender: No OFD packet to send [00:04:59]OFD Sender: No OFD packet to send [00:05:04]OFD Sender: No OFD packet to send [00:05:09]OFD Sender: No OFD packet to send [00:05:14]OFD Sender: No OFD packet to send [00:05:19]OFD Sender: No OFD packet to send [00:05:24]OFD Sender: No OFD packet to send [00:05:29]OFD Sender: No OFD packet to send [00:05:34]OFD Sender: No OFD packet to send [00:05:39]OFD Sender: No OFD packet to send [00:05:44]OFD Sender: No OFD packet to send [00:05:49]OFD Sender: No OFD packet to send [00:05:54]OFD Sender: No OFD packet to send [00:05:59]OFD Sender: No OFD packet to send [00:06:04]OFD Sender: No OFD packet to send [00:06:09]OFD Sender: No OFD packet to send [00:06:14]OFD Sender: No OFD packet to send [00:06:19]OFD Sender: No OFD packet to send [00:06:24]OFD Sender: No OFD packet to send [00:06:30]OFD Sender: No OFD packet to send [00:06:35]OFD Sender: No OFD packet to send [00:06:40]OFD Sender: No OFD packet to send [00:06:45]OFD Sender: No OFD packet to send [00:06:50]OFD Sender: No OFD packet to send [00:06:55]OFD Sender: No OFD packet to send [00:07:00]OFD Sender: No OFD packet to send [00:07:00]accept exits with 9 [00:07:00]New connection [00:07:00]New thread 3066809700 created [00:07:00]Thread 3066666340 joined [00:07:00]Waiting for new connection... [00:07:00] Sock 9.Parse request [00:07:00]Sock 9.Check first char [00:07:00]Sock 9.First char is OK [00:07:00]request: POST /json_proto HTTP/1.0 [00:07:00]Method: POST [00:07:00]URL: /json_proto [00:07:00]Method is POST - this is cgi request [00:07:00]url: /json_proto [00:07:00]query_string will be loaded in cgi processing [00:07:00]execute_cgi json_proto POST (null) [00:07:00]execute_cgi path=json_proto method=POST [00:07:00]POST find Content-Length [00:07:00]Host: 172.17.44.195:8080 [00:07:00]Content-Length: 215 [00:07:00]Content-Type: application/json [00:07:00] [00:07:00]POST finish read [00:07:00]Found Content-Length = 215 [00:07:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:00]execute_script... [00:07:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:00]POST & json_proto [00:07:00]process_json_proto [00:07:00]json parsed OK: [00:07:00]protocol is kg_v1.0 [00:07:00]action value=get_value [00:07:00]process_action get_value [00:07:00]cmd_get_value [00:07:00]process_action get_value done [00:07:00]requested_data is exist [00:07:00]produce_requested_data [00:07:00]requested_item kkm.sn is exist - process it [00:07:00]requested_item kkm.ver is exist - process it [00:07:00]requested_item fm.sn is exist - process it [00:07:00]wFMCommunicate request_size=4 [00:07:00]MH_SAM_APDU [00:07:00]CAPDU: 80 11 00 00 [00:07:00]Write to MH i2c: E2 08 00 2D 20 80 11 00 00 00 00 00 00 C7 [00:07:00]Write i2c OK [00:07:00]MH_I2C_Read... [00:07:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:07:00]Read from MH i2c: E2 [00:07:00]MH_I2C_Read... [00:07:00]Read from MH i2c: E2 17 00 [00:07:00]MH_I2C_Read... [00:07:00]Read from MH i2c: E2 17 00 2D 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 1E [00:07:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [00:07:00]wFMCommunicate OK [00:07:00]requested_item fd.num is exist - process it [00:07:00]SAM_PROTO_GetFieldsCounters [00:07:00]wFMCommunicate request_size=4 [00:07:00]MH_SAM_APDU [00:07:00]CAPDU: 80 13 00 00 [00:07:00]Write to MH i2c: E2 08 00 2E 20 80 13 00 00 00 00 00 00 CA [00:07:00]Write i2c OK [00:07:00]MH_I2C_Read... [00:07:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:07:00]Read from MH i2c: E2 [00:07:00]MH_I2C_Read... [00:07:00]Read from MH i2c: E2 62 00 [00:07:00]MH_I2C_Read... [00:07:00]Read from MH i2c: E2 62 00 2E 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 91 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 41 02 00 00 5E 04 04 00 41 02 00 00 57 04 04 00 42 02 00 00 19 04 04 00 00 00 00 00 90 00 E0 [00:07: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 91 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 41 02 00 00 5E 04 04 00 41 02 00 00 57 04 04 00 42 02 00 00 19 04 04 00 00 00 00 00 90 00 [00:07:00]wFMCommunicate OK [00:07:00]SAM_PROTO_GetFieldsCounters done [00:07:00]requested_item shift.num is exist - process it [00:07:00]requested_item shift.opened is exist - process it [00:07:00]req_shift_opened [00:07:00]FM_GetShiftState [00:07:00]SAM_PROTO_GetShiftState [00:07:00]wFMCommunicate request_size=4 [00:07:00]MH_SAM_APDU [00:07:00]CAPDU: 80 13 01 00 [00:07:00]Write to MH i2c: E2 08 00 2F 20 80 13 01 00 00 00 00 00 CC [00:07:00]Write i2c OK [00:07:00]MH_I2C_Read... [00:07:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:00]Read from MH i2c: E2 [00:07:00]MH_I2C_Read... [00:07:00]Read from MH i2c: E2 0E 00 [00:07:00]MH_I2C_Read... [00:07:00]Read from MH i2c: E2 0E 00 2F 20 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 E6 [00:07:00]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [00:07:00]wFMCommunicate OK [00:07:00]SAM_PROTO_GetShiftState done [00:07:00]FM_GetShiftState done [00:07:00]req_shift_opened done [00:07:00]requested_item shift.open_date is exist - process it [00:07:00]req_shift_open_date [00:07:00]req_shift_open_date done [00:07:00]produce_requested_data done [00:07:00]produce_requested_data return {"kkm.sn":"0300000091","kkm.ver":"001","fm.sn":"0000000000871839","fd.num":227729,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [00:07:00]process_action_free get_value [00:07:00]json_value_free [00:07:00]json_value_free done [00:07:00]process_json_proto returns [00:07:00]Send response to host [00:07:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000091","kkm.ver":"001","fm.sn":"0000000000871839","fd.num":227729,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [00:07:00]free response buf [00:07:00]execute_script done [00:07:00]execute_script returns [00:07:00]free content buf [00:07:00]Sock 9.Close socket [00:07:00]Sock 9.Thread stoped [00:07:00]accept exits with 7 [00:07:00]New connection [00:07:00]New thread 3066666340 created [00:07:00]Thread 3066809700 joined [00:07:00]Waiting for new connection... [00:07:00] Sock 7.Parse request [00:07:00]Sock 7.Check first char [00:07:00]Sock 7.First char is OK [00:07:00]request: POST /json_proto HTTP/1.0 [00:07:00]Method: POST [00:07:00]URL: /json_proto [00:07:00]Method is POST - this is cgi request [00:07:00]url: /json_proto [00:07:00]query_string will be loaded in cgi processing [00:07:00]execute_cgi json_proto POST (null) [00:07:00]execute_cgi path=json_proto method=POST [00:07:00]POST find Content-Length [00:07:00]Host: 172.17.44.195:8080 [00:07:00]Content-Length: 331 [00:07:00]Content-Type: application/json [00:07:00] [00:07:00]POST finish read [00:07:00]Found Content-Length = 331 [00:07:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:07:00]execute_script... [00:07:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:07:00]POST & json_proto [00:07:00]process_json_proto [00:07:00]json parsed OK: [00:07:00]protocol is kg_v1.0 [00:07:00]action value=get_value [00:07:00]process_action get_value [00:07:00]cmd_get_value [00:07:00]process_action get_value done [00:07:00]requested_data is exist [00:07:00]produce_requested_data [00:07:00]requested_item fm.sale.total is exist - process it [00:07:00]SAM_PROTO_GetFMData [00:07:00]wFMCommunicate request_size=4 [00:07:00]MH_SAM_APDU [00:07:00]CAPDU: 80 13 03 00 [00:07:00]Write to MH i2c: E2 08 00 30 20 80 13 03 00 00 00 00 00 CF [00:07:00]Write i2c OK [00:07:00]MH_I2C_Read... [00:07:01]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:07:01]Read from MH i2c: E2 [00:07:01]MH_I2C_Read... [00:07:01]Read from MH i2c: E2 FD 00 [00:07:01]MH_I2C_Read... [00:07:01]Read from MH i2c: E2 FD 00 30 20 00 C5 04 85 04 C1 04 6E 04 04 00 67 75 03 00 69 04 A3 00 6F 04 04 00 77 6E 03 00 B1 04 05 00 82 A3 B5 C5 04 70 04 05 00 8C 28 2D 4C 04 72 04 04 00 F6 7A 88 79 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 80 F2 C7 81 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 2D 7D D0 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 F0 06 00 00 B1 04 04 00 D8 C0 CF 1E 70 04 04 00 D8 C0 CF 1E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A5 B8 45 03 EF 03 09 90 00 E2 [00:07:01]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 67 75 03 00 69 04 A3 00 6F 04 04 00 77 6E 03 00 B1 04 05 00 82 A3 B5 C5 04 70 04 05 00 8C 28 2D 4C 04 72 04 04 00 F6 7A 88 79 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 80 F2 C7 81 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 2D 7D D0 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 F0 06 00 00 B1 04 04 00 D8 C0 CF 1E 70 04 04 00 D8 C0 CF 1E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A5 B8 45 03 EF 03 09 90 00 [00:07:01]wFMCommunicate OK [00:07:01]wFMCommunicate request_size=4 [00:07:01]MH_SAM_APDU [00:07:01]CAPDU: 80 17 00 00 [00:07:01]Write to MH i2c: E2 08 00 31 20 80 17 00 00 00 00 00 00 D1 [00:07:01]Write i2c OK [00:07:01]MH_I2C_Read... [00:07:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:01]Read from MH i2c: E2 [00:07:01]MH_I2C_Read... [00:07:01]Read from MH i2c: E2 FD 00 [00:07:01]MH_I2C_Read... [00:07:01]Read from MH i2c: E2 FD 00 31 20 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 CE 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 81 [00:07:01]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 CE 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:07:01]wFMCommunicate OK [00:07:01]wFMCommunicate request_size=4 [00:07:01]MH_SAM_APDU [00:07:01]CAPDU: 80 17 00 00 [00:07:01]Write to MH i2c: E2 08 00 32 20 80 17 00 00 00 00 00 00 D2 [00:07:01]Write i2c OK [00:07:01]MH_I2C_Read... [00:07:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:01]Read from MH i2c: E2 [00:07:01]MH_I2C_Read... [00:07:01]Read from MH i2c: E2 FD 00 [00:07:01]MH_I2C_Read... [00:07:01]Read from MH i2c: E2 FD 00 32 20 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 E4 [00:07:01]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:07:01]wFMCommunicate OK [00:07:01]wFMCommunicate request_size=4 [00:07:01]MH_SAM_APDU [00:07:01]CAPDU: 80 17 00 00 [00:07:01]Write to MH i2c: E2 08 00 33 20 80 17 00 00 00 00 00 00 D3 [00:07:01]Write i2c OK [00:07:01]MH_I2C_Read... [00:07:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:01]Read from MH i2c: E2 [00:07:01]MH_I2C_Read... [00:07:01]Read from MH i2c: E2 FD 00 [00:07:01]MH_I2C_Read... [00:07:01]Read from MH i2c: E2 FD 00 33 20 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 5F [00:07:01]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:07:01]wFMCommunicate OK [00:07:01]wFMCommunicate request_size=4 [00:07:01]MH_SAM_APDU [00:07:01]CAPDU: 80 17 00 00 [00:07:01]Write to MH i2c: E2 08 00 34 20 80 17 00 00 00 00 00 00 D4 [00:07:01]Write i2c OK [00:07:01]MH_I2C_Read... [00:07:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:07:02]Read from MH i2c: E2 [00:07:02]MH_I2C_Read... [00:07:02]Read from MH i2c: E2 E2 00 [00:07:02]MH_I2C_Read... [00:07:02]Read from MH i2c: E2 E2 00 34 20 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 B2 [00:07:02]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:07:02]wFMCommunicate OK [00:07:02]SAM_PROTO_GetFMData done [00:07:02]requested_item fm.sale_refund.total is exist - process it [00:07:02]requested_item fm.buy.total is exist - process it [00:07:02]requested_item shift.sale.total is exist - process it [00:07:02]SAM_PROTO_GetShiftData [00:07:02]wFMCommunicate request_size=4 [00:07:02]MH_SAM_APDU [00:07:02]CAPDU: 80 13 02 00 [00:07:02]Write to MH i2c: E2 08 00 35 20 80 13 02 00 00 00 00 00 D3 [00:07:02]Write i2c OK [00:07:02]MH_I2C_Read... [00:07:02]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:07:02]Read from MH i2c: E2 [00:07:02]MH_I2C_Read... [00:07:02]Read from MH i2c: E2 FD 00 [00:07:02]MH_I2C_Read... [00:07:02]Read from MH i2c: E2 FD 00 35 20 00 B8 04 AA 04 B4 04 6E 04 04 00 41 02 00 00 69 04 9E 00 6F 04 04 00 40 02 00 00 B1 04 04 00 EC 19 C0 03 70 04 04 00 BC 87 40 03 72 04 03 00 30 92 7F 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 71 FB 65 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8D 7F 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 10 27 70 04 02 00 10 27 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 2C 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 5C [00:07:02]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 41 02 00 00 69 04 9E 00 6F 04 04 00 40 02 00 00 B1 04 04 00 EC 19 C0 03 70 04 04 00 BC 87 40 03 72 04 03 00 30 92 7F 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 71 FB 65 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8D 7F 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 10 27 70 04 02 00 10 27 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 2C 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:07:02]wFMCommunicate OK [00:07:02]wFMCommunicate request_size=4 [00:07:02]MH_SAM_APDU [00:07:02]CAPDU: 80 17 00 00 [00:07:02]Write to MH i2c: E2 08 00 36 20 80 17 00 00 00 00 00 00 D6 [00:07:02]Write i2c OK [00:07:02]MH_I2C_Read... [00:07:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:02]Read from MH i2c: E2 [00:07:02]MH_I2C_Read... [00:07:02]Read from MH i2c: E2 FD 00 [00:07:02]MH_I2C_Read... [00:07:02]Read from MH i2c: E2 FD 00 36 20 00 03 0A 00 F6 03 01 00 01 F7 03 01 00 59 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 61 [00:07:02]RAPDU: 03 0A 00 F6 03 01 00 01 F7 03 01 00 59 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:02]wFMCommunicate OK [00:07:02]wFMCommunicate request_size=4 [00:07:02]MH_SAM_APDU [00:07:02]CAPDU: 80 17 00 00 [00:07:02]Write to MH i2c: E2 08 00 37 20 80 17 00 00 00 00 00 00 D7 [00:07:02]Write i2c OK [00:07:02]MH_I2C_Read... [00:07:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:03]Read from MH i2c: E2 [00:07:03]MH_I2C_Read... [00:07:03]Read from MH i2c: E2 FD 00 [00:07:03]MH_I2C_Read... [00:07:03]Read from MH i2c: E2 FD 00 37 20 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 79 [00:07:03]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:03]wFMCommunicate OK [00:07:03]wFMCommunicate request_size=4 [00:07:03]MH_SAM_APDU [00:07:03]CAPDU: 80 17 00 00 [00:07:03]Write to MH i2c: E2 08 00 38 20 80 17 00 00 00 00 00 00 D8 [00:07:03]Write i2c OK [00:07:03]MH_I2C_Read... [00:07:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:03]Read from MH i2c: E2 [00:07:03]MH_I2C_Read... [00:07:03]Read from MH i2c: E2 FD 00 [00:07:03]MH_I2C_Read... [00:07:03]Read from MH i2c: E2 FD 00 38 20 00 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 61 [00:07:03]RAPDU: 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 [00:07:03]wFMCommunicate OK [00:07:03]wFMCommunicate request_size=4 [00:07:03]MH_SAM_APDU [00:07:03]CAPDU: 80 17 00 00 [00:07:03]Write to MH i2c: E2 08 00 39 20 80 17 00 00 00 00 00 00 D9 [00:07:03]Write i2c OK [00:07:03]MH_I2C_Read... [00:07:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [00:07:03]Read from MH i2c: E2 [00:07:03]MH_I2C_Read... [00:07:03]Read from MH i2c: E2 D5 00 [00:07:03]MH_I2C_Read... [00:07:03]Read from MH i2c: E2 D5 00 39 20 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 BA [00:07:03]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:07:03]wFMCommunicate OK [00:07:03]SAM_PROTO_GetShiftData done [00:07:03]requested_item shift.sale.total_cash is exist - process it [00:07:03]requested_item shift.sale_refund.total is exist - process it [00:07:03]requested_item shift.sale_refund.total_cash is exist - process it [00:07:03]requested_item shift.buy.total is exist - process it [00:07:03]requested_item shift.buy.total_cash is exist - process it [00:07:03]produce_requested_data done [00:07:03]produce_requested_data return {"fm.sale.total":204968846.10,"fm.sale_refund.total":5169318.00,"fm.buy.total":0.00,"shift.sale.total":629211.96,"shift.sale.total_cash":545607.00,"shift.sale_refund.total":100.00,"shift.sale_refund.total_cash":100.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:07:03]process_action_free get_value [00:07:03]json_value_free [00:07:03]json_value_free done [00:07:03]process_json_proto returns [00:07:03]Send response to host [00:07:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":204968846.10,"fm.sale_refund.total":5169318.00,"fm.buy.total":0.00,"shift.sale.total":629211.96,"shift.sale.total_cash":545607.00,"shift.sale_refund.total":100.00,"shift.sale_refund.total_cash":100.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:07:03]free response buf [00:07:03]execute_script done [00:07:03]execute_script returns [00:07:03]free content buf [00:07:03]Sock 7.Close socket [00:07:03]Sock 7.Thread stoped [00:07:03]accept exits with 9 [00:07:03]New connection [00:07:03]New thread 3066809700 created [00:07:03]Thread 3066666340 joined [00:07:03]Waiting for new connection... [00:07:03] Sock 9.Parse request [00:07:03]Sock 9.Check first char [00:07:03]Sock 9.First char is OK [00:07:03]request: POST /json_proto HTTP/1.0 [00:07:03]Method: POST [00:07:03]URL: /json_proto [00:07:03]Method is POST - this is cgi request [00:07:03]url: /json_proto [00:07:03]query_string will be loaded in cgi processing [00:07:03]execute_cgi json_proto POST (null) [00:07:03]execute_cgi path=json_proto method=POST [00:07:03]POST find Content-Length [00:07:03]Host: 172.17.44.195:8080 [00:07:03]Content-Length: 331 [00:07:03]Content-Type: application/json [00:07:03] [00:07:03]POST finish read [00:07:03]Found Content-Length = 331 [00:07:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:07:03]execute_script... [00:07:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:07:03]POST & json_proto [00:07:03]process_json_proto [00:07:03]json parsed OK: [00:07:03]protocol is kg_v1.0 [00:07:03]action value=get_value [00:07:03]process_action get_value [00:07:03]cmd_get_value [00:07:03]process_action get_value done [00:07:03]requested_data is exist [00:07:03]produce_requested_data [00:07:03]requested_item fm.sale.total is exist - process it [00:07:03]SAM_PROTO_GetFMData [00:07:03]wFMCommunicate request_size=4 [00:07:03]MH_SAM_APDU [00:07:03]CAPDU: 80 13 03 00 [00:07:03]Write to MH i2c: E2 08 00 3A 20 80 13 03 00 00 00 00 00 D9 [00:07:03]Write i2c OK [00:07:03]MH_I2C_Read... [00:07:04]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:07:04]Read from MH i2c: E2 [00:07:04]MH_I2C_Read... [00:07:04]Read from MH i2c: E2 FD 00 [00:07:04]MH_I2C_Read... [00:07:04]Read from MH i2c: E2 FD 00 3A 20 00 C5 04 85 04 C1 04 6E 04 04 00 67 75 03 00 69 04 A3 00 6F 04 04 00 77 6E 03 00 B1 04 05 00 82 A3 B5 C5 04 70 04 05 00 8C 28 2D 4C 04 72 04 04 00 F6 7A 88 79 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 80 F2 C7 81 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 2D 7D D0 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 F0 06 00 00 B1 04 04 00 D8 C0 CF 1E 70 04 04 00 D8 C0 CF 1E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A5 B8 45 03 EF 03 09 90 00 EC [00:07:04]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 67 75 03 00 69 04 A3 00 6F 04 04 00 77 6E 03 00 B1 04 05 00 82 A3 B5 C5 04 70 04 05 00 8C 28 2D 4C 04 72 04 04 00 F6 7A 88 79 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 80 F2 C7 81 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 2D 7D D0 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 F0 06 00 00 B1 04 04 00 D8 C0 CF 1E 70 04 04 00 D8 C0 CF 1E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A5 B8 45 03 EF 03 09 90 00 [00:07:04]wFMCommunicate OK [00:07:04]wFMCommunicate request_size=4 [00:07:04]MH_SAM_APDU [00:07:04]CAPDU: 80 17 00 00 [00:07:04]Write to MH i2c: E2 08 00 3B 20 80 17 00 00 00 00 00 00 DB [00:07:04]Write i2c OK [00:07:04]MH_I2C_Read... [00:07:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:04]Read from MH i2c: E2 [00:07:04]MH_I2C_Read... [00:07:04]Read from MH i2c: E2 FD 00 [00:07:04]MH_I2C_Read... [00:07:04]Read from MH i2c: E2 FD 00 3B 20 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 CE 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 8B [00:07:04]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 CE 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:07:04]wFMCommunicate OK [00:07:04]wFMCommunicate request_size=4 [00:07:04]MH_SAM_APDU [00:07:04]CAPDU: 80 17 00 00 [00:07:04]Write to MH i2c: E2 08 00 3C 20 80 17 00 00 00 00 00 00 DC [00:07:04]Write i2c OK [00:07:04]MH_I2C_Read... [00:07:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:04]Read from MH i2c: E2 [00:07:04]MH_I2C_Read... [00:07:04]Read from MH i2c: E2 FD 00 [00:07:04]MH_I2C_Read... [00:07:04]Read from MH i2c: E2 FD 00 3C 20 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 EE [00:07:04]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:07:05]wFMCommunicate OK [00:07:05]wFMCommunicate request_size=4 [00:07:05]MH_SAM_APDU [00:07:05]CAPDU: 80 17 00 00 [00:07:05]Write to MH i2c: E2 08 00 3D 20 80 17 00 00 00 00 00 00 DD [00:07:05]Write i2c OK [00:07:05]MH_I2C_Read... [00:07:05]OFD Sender: No OFD packet to send [00:07:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:05]Read from MH i2c: E2 [00:07:05]MH_I2C_Read... [00:07:05]Read from MH i2c: E2 FD 00 [00:07:05]MH_I2C_Read... [00:07:05]Read from MH i2c: E2 FD 00 3D 20 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 69 [00:07:05]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:07:05]wFMCommunicate OK [00:07:05]wFMCommunicate request_size=4 [00:07:05]MH_SAM_APDU [00:07:05]CAPDU: 80 17 00 00 [00:07:05]Write to MH i2c: E2 08 00 3E 20 80 17 00 00 00 00 00 00 DE [00:07:05]Write i2c OK [00:07:05]MH_I2C_Read... [00:07:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:07:05]Read from MH i2c: E2 [00:07:05]MH_I2C_Read... [00:07:05]Read from MH i2c: E2 E2 00 [00:07:05]MH_I2C_Read... [00:07:05]Read from MH i2c: E2 E2 00 3E 20 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 BC [00:07:05]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:07:05]wFMCommunicate OK [00:07:05]SAM_PROTO_GetFMData done [00:07:05]requested_item fm.sale_refund.total is exist - process it [00:07:05]requested_item fm.buy.total is exist - process it [00:07:05]requested_item shift.sale.total is exist - process it [00:07:05]SAM_PROTO_GetShiftData [00:07:05]wFMCommunicate request_size=4 [00:07:05]MH_SAM_APDU [00:07:05]CAPDU: 80 13 02 00 [00:07:05]Write to MH i2c: E2 08 00 3F 20 80 13 02 00 00 00 00 00 DD [00:07:05]Write i2c OK [00:07:05]MH_I2C_Read... [00:07:06]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:07:06]Read from MH i2c: E2 [00:07:06]MH_I2C_Read... [00:07:06]Read from MH i2c: E2 FD 00 [00:07:06]MH_I2C_Read... [00:07:06]Read from MH i2c: E2 FD 00 3F 20 00 B8 04 AA 04 B4 04 6E 04 04 00 41 02 00 00 69 04 9E 00 6F 04 04 00 40 02 00 00 B1 04 04 00 EC 19 C0 03 70 04 04 00 BC 87 40 03 72 04 03 00 30 92 7F 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 71 FB 65 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8D 7F 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 10 27 70 04 02 00 10 27 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 2C 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 66 [00:07:06]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 41 02 00 00 69 04 9E 00 6F 04 04 00 40 02 00 00 B1 04 04 00 EC 19 C0 03 70 04 04 00 BC 87 40 03 72 04 03 00 30 92 7F 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 71 FB 65 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8D 7F 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 10 27 70 04 02 00 10 27 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 2C 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:07:06]wFMCommunicate OK [00:07:06]wFMCommunicate request_size=4 [00:07:06]MH_SAM_APDU [00:07:06]CAPDU: 80 17 00 00 [00:07:06]Write to MH i2c: E2 08 00 40 20 80 17 00 00 00 00 00 00 E0 [00:07:06]Write i2c OK [00:07:06]MH_I2C_Read... [00:07:06]Read from MH i2c: E2 [00:07:06]MH_I2C_Read... [00:07:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:06]Read from MH i2c: E2 FD 00 [00:07:06]MH_I2C_Read... [00:07:06]Read from MH i2c: E2 FD 00 40 20 00 03 0A 00 F6 03 01 00 01 F7 03 01 00 59 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6B [00:07:06]RAPDU: 03 0A 00 F6 03 01 00 01 F7 03 01 00 59 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:06]wFMCommunicate OK [00:07:06]wFMCommunicate request_size=4 [00:07:06]MH_SAM_APDU [00:07:06]CAPDU: 80 17 00 00 [00:07:06]Write to MH i2c: E2 08 00 41 20 80 17 00 00 00 00 00 00 E1 [00:07:06]Write i2c OK [00:07:06]MH_I2C_Read... [00:07:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:07]Read from MH i2c: E2 [00:07:07]MH_I2C_Read... [00:07:07]Read from MH i2c: E2 FD 00 [00:07:07]MH_I2C_Read... [00:07:07]Read from MH i2c: E2 FD 00 41 20 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 83 [00:07:07]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:07]wFMCommunicate OK [00:07:07]wFMCommunicate request_size=4 [00:07:07]MH_SAM_APDU [00:07:07]CAPDU: 80 17 00 00 [00:07:07]Write to MH i2c: E2 08 00 42 20 80 17 00 00 00 00 00 00 E2 [00:07:07]Write i2c OK [00:07:07]MH_I2C_Read... [00:07:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:07]Read from MH i2c: E2 [00:07:07]MH_I2C_Read... [00:07:07]Read from MH i2c: E2 FD 00 [00:07:07]MH_I2C_Read... [00:07:07]Read from MH i2c: E2 FD 00 42 20 00 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 6B [00:07:07]RAPDU: 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 [00:07:07]wFMCommunicate OK [00:07:07]wFMCommunicate request_size=4 [00:07:07]MH_SAM_APDU [00:07:07]CAPDU: 80 17 00 00 [00:07:07]Write to MH i2c: E2 08 00 43 20 80 17 00 00 00 00 00 00 E3 [00:07:07]Write i2c OK [00:07:07]MH_I2C_Read... [00:07:07]Read from MH i2c: E2 [00:07:07]MH_I2C_Read... [00:07:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [00:07:07]Read from MH i2c: E2 D5 00 [00:07:07]MH_I2C_Read... [00:07:07]Read from MH i2c: E2 D5 00 43 20 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C4 [00:07:07]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:07:07]wFMCommunicate OK [00:07:07]SAM_PROTO_GetShiftData done [00:07:07]requested_item shift.sale.total_cash is exist - process it [00:07:07]requested_item shift.sale_refund.total is exist - process it [00:07:07]requested_item shift.sale_refund.total_cash is exist - process it [00:07:07]requested_item shift.buy.total is exist - process it [00:07:07]requested_item shift.buy.total_cash is exist - process it [00:07:07]produce_requested_data done [00:07:07]produce_requested_data return {"fm.sale.total":204968846.10,"fm.sale_refund.total":5169318.00,"fm.buy.total":0.00,"shift.sale.total":629211.96,"shift.sale.total_cash":545607.00,"shift.sale_refund.total":100.00,"shift.sale_refund.total_cash":100.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:07:07]process_action_free get_value [00:07:07]json_value_free [00:07:07]json_value_free done [00:07:07]process_json_proto returns [00:07:07]Send response to host [00:07:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":204968846.10,"fm.sale_refund.total":5169318.00,"fm.buy.total":0.00,"shift.sale.total":629211.96,"shift.sale.total_cash":545607.00,"shift.sale_refund.total":100.00,"shift.sale_refund.total_cash":100.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:07:07]free response buf [00:07:07]execute_script done [00:07:07]execute_script returns [00:07:07]free content buf [00:07:07]Sock 9.Close socket [00:07:07]Sock 9.Thread stoped [00:07:07]accept exits with 7 [00:07:07]New connection [00:07:07]New thread 3066666340 created [00:07:07]Thread 3066809700 joined [00:07:07]Waiting for new connection... [00:07:07] Sock 7.Parse request [00:07:07]Sock 7.Check first char [00:07:07]Sock 7.First char is OK [00:07:07]request: POST /json_proto HTTP/1.0 [00:07:07]Method: POST [00:07:07]URL: /json_proto [00:07:07]Method is POST - this is cgi request [00:07:07]url: /json_proto [00:07:07]query_string will be loaded in cgi processing [00:07:07]execute_cgi json_proto POST (null) [00:07:07]execute_cgi path=json_proto method=POST [00:07:07]POST find Content-Length [00:07:07]Host: 172.17.44.195:8080 [00:07:07]Content-Length: 257 [00:07:07]Content-Type: application/json [00:07:07] [00:07:07]POST finish read [00:07:07]Found Content-Length = 257 [00:07:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041E\u0440\u043C\u043E\u043D\u043E\u0432\u0430 \u0414. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:07]execute_script... [00:07:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041E\u0440\u043C\u043E\u043D\u043E\u0432\u0430 \u0414. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:07]POST & json_proto [00:07:07]process_json_proto [00:07:07]json parsed OK: [00:07:07]protocol is kg_v1.0 [00:07:07]action value=x_report [00:07:07]process_action x_report [00:07:07]cmd_x_report [00:07:07]MH_GetDate [00:07:07]Write to MH i2c: F0 00 00 44 20 53 [00:07:07]Write i2c OK [00:07:07]MH_I2C_Read... [00:07:07]Read from MH i2c: F0 [00:07:07]MH_I2C_Read... [00:07:07]Read from MH i2c: F0 09 00 [00:07:07]MH_I2C_Read... [00:07:07]Read from MH i2c: F0 09 00 44 20 00 2D 9B 15 67 82 C9 CF 66 20 [00:07:07]GetLastDocTimeStamp 1729468478 [00:07:07]current date 1729469229 [00:07:07]FM_GetShiftState [00:07:07]SAM_PROTO_GetShiftState [00:07:07]wFMCommunicate request_size=4 [00:07:07]MH_SAM_APDU [00:07:07]CAPDU: 80 13 01 00 [00:07:07]Write to MH i2c: E2 08 00 45 20 80 13 01 00 00 00 00 00 E2 [00:07:07]Write i2c OK [00:07:07]MH_I2C_Read... [00:07:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:07]Read from MH i2c: E2 [00:07:07]MH_I2C_Read... [00:07:07]Read from MH i2c: E2 0E 00 [00:07:07]MH_I2C_Read... [00:07:07]Read from MH i2c: E2 0E 00 45 20 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 FC [00:07:07]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [00:07:07]wFMCommunicate OK [00:07:07]SAM_PROTO_GetShiftState done [00:07:07]FM_GetShiftState done [00:07:07]KKMCreateXReportDocument [00:07:07]Load OK [00:07:07]Malloc new data [00:07:07]MH_GetDate [00:07:07]Write to MH i2c: F0 00 00 46 20 55 [00:07:07]Write i2c OK [00:07:07]MH_I2C_Read... [00:07:07]Read from MH i2c: F0 [00:07:07]MH_I2C_Read... [00:07:07]Read from MH i2c: F0 09 00 [00:07:07]MH_I2C_Read... [00:07:07]Read from MH i2c: F0 09 00 46 20 00 2D 9B 15 67 82 C9 CF 66 22 [00:07:07]Malloc new data [00:07:08]Malloc new data [00:07:08]wFMCommunicate request_size=4 [00:07:08]MH_SAM_APDU [00:07:08]CAPDU: 80 11 00 00 [00:07:08]Write to MH i2c: E2 08 00 47 20 80 11 00 00 00 00 00 00 E1 [00:07:08]Write i2c OK [00:07:08]MH_I2C_Read... [00:07:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:07:08]Read from MH i2c: E2 [00:07:08]MH_I2C_Read... [00:07:08]Read from MH i2c: E2 17 00 [00:07:08]MH_I2C_Read... [00:07:08]Read from MH i2c: E2 17 00 47 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 38 [00:07:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [00:07:08]wFMCommunicate OK [00:07:08]SAM_PROTO_GetFieldsCounters [00:07:08]wFMCommunicate request_size=4 [00:07:08]MH_SAM_APDU [00:07:08]CAPDU: 80 13 00 00 [00:07:08]Write to MH i2c: E2 08 00 48 20 80 13 00 00 00 00 00 00 E4 [00:07:08]Write i2c OK [00:07:08]MH_I2C_Read... [00:07:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:07:08]Read from MH i2c: E2 [00:07:08]MH_I2C_Read... [00:07:08]Read from MH i2c: E2 62 00 [00:07:08]MH_I2C_Read... [00:07:08]Read from MH i2c: E2 62 00 48 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 91 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 41 02 00 00 5E 04 04 00 41 02 00 00 57 04 04 00 42 02 00 00 19 04 04 00 00 00 00 00 90 00 FA [00:07: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 91 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 41 02 00 00 5E 04 04 00 41 02 00 00 57 04 04 00 42 02 00 00 19 04 04 00 00 00 00 00 90 00 [00:07:08]wFMCommunicate OK [00:07:08]SAM_PROTO_GetFieldsCounters done [00:07:08]Malloc new data [00:07:08]Malloc new data [00:07:08]Malloc new data [00:07:08]KKMCreateXReportDocument OK [00:07:08]KKMSetXReportData OK [00:07:08]KKMPrepareXReportFMData [00:07:08]SAM_PROTO_GetShiftData [00:07:08]wFMCommunicate request_size=4 [00:07:08]MH_SAM_APDU [00:07:08]CAPDU: 80 13 02 00 [00:07:08]Write to MH i2c: E2 08 00 49 20 80 13 02 00 00 00 00 00 E7 [00:07:08]Write i2c OK [00:07:08]MH_I2C_Read... [00:07:08]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:07:08]Read from MH i2c: E2 [00:07:08]MH_I2C_Read... [00:07:08]Read from MH i2c: E2 FD 00 [00:07:08]MH_I2C_Read... [00:07:08]Read from MH i2c: E2 FD 00 49 20 00 B8 04 AA 04 B4 04 6E 04 04 00 41 02 00 00 69 04 9E 00 6F 04 04 00 40 02 00 00 B1 04 04 00 EC 19 C0 03 70 04 04 00 BC 87 40 03 72 04 03 00 30 92 7F 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 71 FB 65 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8D 7F 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 10 27 70 04 02 00 10 27 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 2C 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 70 [00:07:08]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 41 02 00 00 69 04 9E 00 6F 04 04 00 40 02 00 00 B1 04 04 00 EC 19 C0 03 70 04 04 00 BC 87 40 03 72 04 03 00 30 92 7F 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 71 FB 65 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8D 7F 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 10 27 70 04 02 00 10 27 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 2C 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:07:08]wFMCommunicate OK [00:07:08]wFMCommunicate request_size=4 [00:07:08]MH_SAM_APDU [00:07:08]CAPDU: 80 17 00 00 [00:07:08]Write to MH i2c: E2 08 00 4A 20 80 17 00 00 00 00 00 00 EA [00:07:08]Write i2c OK [00:07:08]MH_I2C_Read... [00:07:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:09]Read from MH i2c: E2 [00:07:09]MH_I2C_Read... [00:07:09]Read from MH i2c: E2 FD 00 [00:07:09]MH_I2C_Read... [00:07:09]Read from MH i2c: E2 FD 00 4A 20 00 03 0A 00 F6 03 01 00 01 F7 03 01 00 59 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 75 [00:07:09]RAPDU: 03 0A 00 F6 03 01 00 01 F7 03 01 00 59 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:09]wFMCommunicate OK [00:07:09]wFMCommunicate request_size=4 [00:07:09]MH_SAM_APDU [00:07:09]CAPDU: 80 17 00 00 [00:07:09]Write to MH i2c: E2 08 00 4B 20 80 17 00 00 00 00 00 00 EB [00:07:09]Write i2c OK [00:07:09]MH_I2C_Read... [00:07:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:09]Read from MH i2c: E2 [00:07:09]MH_I2C_Read... [00:07:09]Read from MH i2c: E2 FD 00 [00:07:09]MH_I2C_Read... [00:07:09]Read from MH i2c: E2 FD 00 4B 20 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 8D [00:07:09]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:09]wFMCommunicate OK [00:07:09]wFMCommunicate request_size=4 [00:07:09]MH_SAM_APDU [00:07:09]CAPDU: 80 17 00 00 [00:07:09]Write to MH i2c: E2 08 00 4C 20 80 17 00 00 00 00 00 00 EC [00:07:09]Write i2c OK [00:07:09]MH_I2C_Read... [00:07:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:10]Read from MH i2c: E2 [00:07:10]MH_I2C_Read... [00:07:10]Read from MH i2c: E2 FD 00 [00:07:10]MH_I2C_Read... [00:07:10]Read from MH i2c: E2 FD 00 4C 20 00 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 75 [00:07:10]RAPDU: 03 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 OFD Sender: No OFD packet to send [00:07:10]00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:10]wFMCommunicate OK [00:07:10]wFMCommunicate request_size=4 [00:07:10]MH_SAM_APDU [00:07:10]CAPDU: 80 17 00 00 [00:07:10]Write to MH i2c: E2 08 00 4D 20 80 17 00 00 00 00 00 00 ED [00:07:10]Write i2c OK [00:07:10]MH_I2C_Read... [00:07:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [00:07:10]Read from MH i2c: E2 [00:07:10]MH_I2C_Read... [00:07:10]Read from MH i2c: E2 D5 00 [00:07:10]MH_I2C_Read... [00:07:10]Read from MH i2c: E2 D5 00 4D 20 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 CE [00:07:10]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:07:10]wFMCommunicate OK [00:07:10]SAM_PROTO_GetShiftData done [00:07:10]1194 (1204) - счетчики итогов смены [00:07:10] 1134 (4) - 577 - количество чеков со всеми признаками расчетов [00:07:10] 1129 (158) - счетчики операций «приход» [00:07:10] 1135 (4) - 576 - количество чеков по признаку расчетов [00:07:10] 1201 (4) - 629211.96 - общая итоговая сумма в чеках [00:07:10] 1136 (4) - 545607.00 - итоговая сумма в чеках наличными [00:07:10] 1138 (3) - 83604.96 - итоговая сумма в чеках безналичными [00:07:10] 1024 (123) - суммы налогов [00:07:10] 1006 (9) - суммы НДС [00:07:10] 1010 (1) - 0% - код ставки НДС [00:07:10] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:10] 1006 (12) - суммы НДС [00:07:10] 1010 (1) - 12% - код ставки НДС [00:07:10] 1011 (3) - 66835.05 - сумма НДС по ставке [00:07:10] 1007 (9) - суммы НСП [00:07:10] 1014 (1) - 0% - код ставки НСП [00:07:10] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:10] 1007 (12) - суммы НСП [00:07:10] 1014 (1) - 1% - код ставки НСП [00:07:10] 1015 (3) - 5569.41 - сумма НСП по ставке [00:07:10] 1007 (9) - суммы НСП [00:07:10] 1014 (1) - 2% - код ставки НСП [00:07:10] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:10] 1007 (9) - суммы НСП [00:07:10] 1014 (1) - 3% - код ставки НСП [00:07:10] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:10] 1007 (9) - суммы НСП [00:07:10] 1014 (1) - 5% - код ставки НСП [00:07:10] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:10] 1007 (9) - суммы НСП [00:07:10] 1014 (1) - 0,50% - код ставки НСП [00:07:10] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:10] 1007 (9) - суммы НСП [00:07:10] 1014 (1) - 1,50% - код ставки НСП [00:07:10] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:10] 1130 (148) - счетчики операций «возврат прихода» [00:07:10] 1135 (4) - 1 - количество чеков по признаку расчетов [00:07:10] 1201 (2) - 100.00 - общая итоговая сумма в чеках [00:07:10] 1136 (2) - 100.00 - итоговая сумма в чеках наличными [00:07:10] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:07:10] 1024 (120) - суммы налогов [00:07:10] 1006 (9) - суммы НДС [00:07:10] 1010 (1) - 0% - код ставки НДС [00:07:10] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:10] 1006 (11) - суммы НДС [00:07:10] 1010 (1) - 12% - код ставки НДС [00:07:10] 1011 (2) - 10.68 - сумма НДС по ставке [00:07:10] 1007 (9) - суммы НСП [00:07:10] 1014 (1) - 0% - код ставки НСП [00:07:10] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:10] 1007 (10) - суммы НСП [00:07:10] 1014 (1) - 1% - код ставки НСП [00:07:10] 1015 (1) - 0.89 - сумма НСП по ставке [00:07:10] 1007 (9) - суммы НСП [00:07:10] 1014 (1) - 2% - код ставки НСП [00:07:10] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:10] 1007 (9) - суммы НСП [00:07:10] 1014 (1) - 3% - код ставки НСП [00:07:10] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:10] 1007 (9) - суммы НСП [00:07:10] 1014 (1) - 5% - код ставки НСП [00:07:10] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:10] 1007 (9) - суммы НСП [00:07:10] 1014 (1) - 0,50% - код ставки НСП [00:07:10] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:10] 1007 (9) - суммы НСП [00:07:10] 1014 (1) - 1,50% - код ставки НСП [00:07:10] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:10] 1131 (141) - счетчики операций «расход» [00:07:10] 1135 (4) - 0 - количество чеков по признаку расчетов [00:07:10] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:07:10] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:07:10] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:07:10] 1024 (117) - суммы налогов [00:07:10] 1006 (9) - суммы НДС [00:07:10] 1010 (1) - 0% - код ставки НДС [00:07:10] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:10] 1006 (9) - суммы НДС [00:07:10] 1010 (1) - 12% - код ставки НДС [00:07:10] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:10] 1007 (9) - суммы НСП [00:07:10] 1014 (1) - 0% - код ставки НСП [00:07:10] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:10] 1007 (9) - суммы НСП [00:07:10] 1014 (1) - 1% - код ставки НСП [00:07:10] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:10] 1007 (9) - суммы НСП [00:07:10] 1014 (1) - 2% - код ставки НСП [00:07:10] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:10] 1007 (9) - суммы НСП [00:07:10] 1014 (1) - 3% - код ставки НСП [00:07:10] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:10] 1007 (9) - суммы НСП [00:07:10] 1014 (1) - 5% - код ставки НСП [00:07:10] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:10] 1007 (9) - суммы НСП [00:07:10] 1014 (1) - 0,50% - код ставки НСП [00:07:10] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:10] 1007 (9) - суммы НСП [00:07:10] 1014 (1) - 1,50% - код ставки НСП [00:07:10] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:10] 1132 (141) - счетчики операций «возврат расхода» [00:07:10] 1135 (4) - 0 - количество чеков по признаку расчетов [00:07:10] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:07:10] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:07:10] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:07:10] 1024 (117) - суммы налогов [00:07:10] 1006 (9) - суммы НДС [00:07:10] 1010 (1) - 0% - код ставки НДС [00:07:10] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:10] 1006 (9) - суммы НДС [00:07:10] 1010 (1) - 12% - код ставки НДС [00:07:10] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:10] 1007 (9) - суммы НСП [00:07:10] 1014 (1) - 0% - код ставки НСП [00:07:10] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:10] 1007 (9) - суммы НСП [00:07:10] 1014 (1) - 1% - код ставки НСП [00:07:10] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:10] 1007 (9) - суммы НСП [00:07:10] 1014 (1) - 2% - код ставки НСП [00:07:10] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:10] 1007 (9) - суммы НСП [00:07:10] 1014 (1) - 3% - код ставки НСП [00:07:10] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:10] 1007 (9) - суммы НСП [00:07:10] 1014 (1) - 5% - код ставки НСП [00:07:10] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:10] 1007 (9) - суммы НСП [00:07:10] 1014 (1) - 0,50% - код ставки НСП [00:07:10] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:10] 1007 (9) - суммы НСП [00:07:10] 1014 (1) - 1,50% - код ставки НСП [00:07:10] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:10] 1133 (588) - - счетчики коррекции - не используются [00:07:10]SetTLVBufToDocument [00:07:10]Processing tag 1194 (04AA) [00:07:10]Load OK [00:07:10]SetTLVBufToDocument [00:07:10]Processing tag 1134 (046E) [00:07:10]Malloc new data [00:07:10]Processing tag 1129 (0469) [00:07:10]Load OK [00:07:10]SetTLVBufToDocument [00:07:11]Processing tag 1135 (046F) [00:07:11]Malloc new data [00:07:11]Processing tag 1201 (04B1) [00:07:11]Malloc new data [00:07:11]Processing tag 1136 (0470) [00:07:11]Malloc new data [00:07:11]Processing tag 1138 (0472) [00:07:11]Malloc new data [00:07:11]Processing tag 1024 (0400) [00:07:11]Load OK [00:07:11]SetTLVBufToDocument [00:07:11]Processing tag 1006 (03EE) [00:07:11]Load OK [00:07:11]SetTLVBufToDocument [00:07:11]Processing tag 1010 (03F2) [00:07:11]Malloc new data [00:07:11]Processing tag 1011 (03F3) [00:07:11]Malloc new data [00:07:11]SetTLVBufToDocument err=0 [00:07:11]Processing tag 1006 (03EE) [00:07:11]Load OK [00:07:11]SetTLVBufToDocument [00:07:11]Processing tag 1010 (03F2) [00:07:11]Malloc new data [00:07:11]Processing tag 1011 (03F3) [00:07:11]Malloc new data [00:07:11]SetTLVBufToDocument err=0 [00:07:11]Processing tag 1007 (03EF) [00:07:11]Load OK [00:07:11]SetTLVBufToDocument [00:07:11]Processing tag 1014 (03F6) [00:07:11]Malloc new data [00:07:11]Processing tag 1015 (03F7) [00:07:11]Malloc new data [00:07:11]SetTLVBufToDocument err=0 [00:07:11]Processing tag 1007 (03EF) [00:07:11]Load OK [00:07:11]SetTLVBufToDocument [00:07:11]Processing tag 1014 (03F6) [00:07:11]Malloc new data [00:07:11]Processing tag 1015 (03F7) [00:07:11]Malloc new data [00:07:11]SetTLVBufToDocument err=0 [00:07:11]Processing tag 1007 (03EF) [00:07:11]Load OK [00:07:11]SetTLVBufToDocument [00:07:11]Processing tag 1014 (03F6) [00:07:11]Malloc new data [00:07:11]Processing tag 1015 (03F7) [00:07:11]Malloc new data [00:07:11]SetTLVBufToDocument err=0 [00:07:11]Processing tag 1007 (03EF) [00:07:11]Load OK [00:07:11]SetTLVBufToDocument [00:07:11]Processing tag 1014 (03F6) [00:07:11]Malloc new data [00:07:11]Processing tag 1015 (03F7) [00:07:11]Malloc new data [00:07:11]SetTLVBufToDocument err=0 [00:07:11]Processing tag 1007 (03EF) [00:07:11]Load OK [00:07:11]SetTLVBufToDocument [00:07:11]Processing tag 1014 (03F6) [00:07:11]Malloc new data [00:07:11]Processing tag 1015 (03F7) [00:07:11]Malloc new data [00:07:11]SetTLVBufToDocument err=0 [00:07:11]Processing tag 1007 (03EF) [00:07:11]Load OK [00:07:11]SetTLVBufToDocument [00:07:11]Processing tag 1014 (03F6) [00:07:11]Malloc new data [00:07:11]Processing tag 1015 (03F7) [00:07:11]Malloc new data [00:07:11]SetTLVBufToDocument err=0 [00:07:11]Processing tag 1007 (03EF) [00:07:11]Load OK [00:07:11]SetTLVBufToDocument [00:07:11]Processing tag 1014 (03F6) [00:07:11]Malloc new data [00:07:11]Processing tag 1015 (03F7) [00:07:11]Malloc new data [00:07:11]SetTLVBufToDocument err=0 [00:07:11]SetTLVBufToDocument err=0 [00:07:11]SetTLVBufToDocument err=0 [00:07:11]Processing tag 1130 (046A) [00:07:11]Load OK [00:07:11]SetTLVBufToDocument [00:07:11]Processing tag 1135 (046F) [00:07:11]Malloc new data [00:07:11]Processing tag 1201 (04B1) [00:07:11]Malloc new data [00:07:11]Processing tag 1136 (0470) [00:07:11]Malloc new data [00:07:11]Processing tag 1138 (0472) [00:07:11]Malloc new data [00:07:11]Processing tag 1024 (0400) [00:07:11]Load OK [00:07:11]SetTLVBufToDocument [00:07:11]Processing tag 1006 (03EE) [00:07:11]Load OK [00:07:11]SetTLVBufToDocument [00:07:11]Processing tag 1010 (03F2) [00:07:11]Malloc new data [00:07:11]Processing tag 1011 (03F3) [00:07:11]Malloc new data [00:07:11]SetTLVBufToDocument err=0 [00:07:11]Processing tag 1006 (03EE) [00:07:11]Load OK [00:07:11]SetTLVBufToDocument [00:07:11]Processing tag 1010 (03F2) [00:07:11]Malloc new data [00:07:11]Processing tag 1011 (03F3) [00:07:11]Malloc new data [00:07:11]SetTLVBufToDocument err=0 [00:07:11]Processing tag 1007 (03EF) [00:07:11]Load OK [00:07:11]SetTLVBufToDocument [00:07:11]Processing tag 1014 (03F6) [00:07:11]Malloc new data [00:07:11]Processing tag 1015 (03F7) [00:07:11]Malloc new data [00:07:11]SetTLVBufToDocument err=0 [00:07:11]Processing tag 1007 (03EF) [00:07:11]Load OK [00:07:11]SetTLVBufToDocument [00:07:11]Processing tag 1014 (03F6) [00:07:11]Malloc new data [00:07:11]Processing tag 1015 (03F7) [00:07:11]Malloc new data [00:07:11]SetTLVBufToDocument err=0 [00:07:11]Processing tag 1007 (03EF) [00:07:11]Load OK [00:07:11]SetTLVBufToDocument [00:07:11]Processing tag 1014 (03F6) [00:07:11]Malloc new data [00:07:11]Processing tag 1015 (03F7) [00:07:11]Malloc new data [00:07:11]SetTLVBufToDocument err=0 [00:07:11]Processing tag 1007 (03EF) [00:07:11]Load OK [00:07:11]SetTLVBufToDocument [00:07:11]Processing tag 1014 (03F6) [00:07:11]Malloc new data [00:07:11]Processing tag 1015 (03F7) [00:07:11]Malloc new data [00:07:11]SetTLVBufToDocument err=0 [00:07:11]Processing tag 1007 (03EF) [00:07:11]Load OK [00:07:11]SetTLVBufToDocument [00:07:11]Processing tag 1014 (03F6) [00:07:11]Malloc new data [00:07:11]Processing tag 1015 (03F7) [00:07:11]Malloc new data [00:07:11]SetTLVBufToDocument err=0 [00:07:11]Processing tag 1007 (03EF) [00:07:11]Load OK [00:07:11]SetTLVBufToDocument [00:07:11]Processing tag 1014 (03F6) [00:07:11]Malloc new data [00:07:11]Processing tag 1015 (03F7) [00:07:11]Malloc new data [00:07:11]SetTLVBufToDocument err=0 [00:07:11]Processing tag 1007 (03EF) [00:07:11]Load OK [00:07:11]SetTLVBufToDocument [00:07:11]Processing tag 1014 (03F6) [00:07:11]Malloc new data [00:07:11]Processing tag 1015 (03F7) [00:07:11]Malloc new data [00:07:11]SetTLVBufToDocument err=0 [00:07:11]SetTLVBufToDocument err=0 [00:07:11]SetTLVBufToDocument err=0 [00:07:11]Processing tag 1131 (046B) [00:07:11]Load OK [00:07:11]SetTLVBufToDocument [00:07:11]Processing tag 1135 (046F) [00:07:11]Malloc new data [00:07:11]Processing tag 1201 (04B1) [00:07:11]Malloc new data [00:07:11]Processing tag 1136 (0470) [00:07:11]Malloc new data [00:07:11]Processing tag 1138 (0472) [00:07:11]Malloc new data [00:07:11]Processing tag 1024 (0400) [00:07:11]Load OK [00:07:11]SetTLVBufToDocument [00:07:11]Processing tag 1006 (03EE) [00:07:11]Load OK [00:07:11]SetTLVBufToDocument [00:07:11]Processing tag 1010 (03F2) [00:07:11]Malloc new data [00:07:11]Processing tag 1011 (03F3) [00:07:11]Malloc new data [00:07:11]SetTLVBufToDocument err=0 [00:07:11]Processing tag 1006 (03EE) [00:07:11]Load OK [00:07:11]SetTLVBufToDocument [00:07:11]Processing tag 1010 (03F2) [00:07:11]Malloc new data [00:07:11]Processing tag 1011 (03F3) [00:07:11]Malloc new data [00:07:11]SetTLVBufToDocument err=0 [00:07:11]Processing tag 1007 (03EF) [00:07:11]Load OK [00:07:11]SetTLVBufToDocument [00:07:11]Processing tag 1014 (03F6) [00:07:11]Malloc new data [00:07:11]Processing tag 1015 (03F7) [00:07:11]Malloc new data [00:07:11]SetTLVBufToDocument err=0 [00:07:11]Processing tag 1007 (03EF) [00:07:11]Load OK [00:07:11]SetTLVBufToDocument [00:07:11]Processing tag 1014 (03F6) [00:07:11]Malloc new data [00:07:11]Processing tag 1015 (03F7) [00:07:11]Malloc new data [00:07:11]SetTLVBufToDocument err=0 [00:07:11]Processing tag 1007 (03EF) [00:07:11]Load OK [00:07:11]SetTLVBufToDocument [00:07:11]Processing tag 1014 (03F6) [00:07:11]Malloc new data [00:07:11]Processing tag 1015 (03F7) [00:07:11]Malloc new data [00:07:11]SetTLVBufToDocument err=0 [00:07:11]Processing tag 1007 (03EF) [00:07:11]Load OK [00:07:11]SetTLVBufToDocument [00:07:11]Processing tag 1014 (03F6) [00:07:11]Malloc new data [00:07:11]Processing tag 1015 (03F7) [00:07:11]Malloc new data [00:07:11]SetTLVBufToDocument err=0 [00:07:11]Processing tag 1007 (03EF) [00:07:11]Load OK [00:07:11]SetTLVBufToDocument [00:07:11]Processing tag 1014 (03F6) [00:07:11]Malloc new data [00:07:11]Processing tag 1015 (03F7) [00:07:11]Malloc new data [00:07:11]SetTLVBufToDocument err=0 [00:07:11]Processing tag 1007 (03EF) [00:07:11]Load OK [00:07:11]SetTLVBufToDocument [00:07:11]Processing tag 1014 (03F6) [00:07:11]Malloc new data [00:07:11]Processing tag 1015 (03F7) [00:07:11]Malloc new data [00:07:11]SetTLVBufToDocument err=0 [00:07:11]Processing tag 1007 (03EF) [00:07:11]Load OK [00:07:11]SetTLVBufToDocument [00:07:11]Processing tag 1014 (03F6) [00:07:11]Malloc new data [00:07:11]Processing tag 1015 (03F7) [00:07:11]Malloc new data [00:07:11]SetTLVBufToDocument err=0 [00:07:11]SetTLVBufToDocument err=0 [00:07:11]SetTLVBufToDocument err=0 [00:07:11]Processing tag 1132 (046C) [00:07:11]Load OK [00:07:11]SetTLVBufToDocument [00:07:11]Processing tag 1135 (046F) [00:07:11]Malloc new data [00:07:11]Processing tag 1201 (04B1) [00:07:11]Malloc new data [00:07:11]Processing tag 1136 (0470) [00:07:11]Malloc new data [00:07:11]Processing tag 1138 (0472) [00:07:11]Malloc new data [00:07:11]Processing tag 1024 (0400) [00:07:11]Load OK [00:07:11]SetTLVBufToDocument [00:07:11]Processing tag 1006 (03EE) [00:07:11]Load OK [00:07:11]SetTLVBufToDocument [00:07:11]Processing tag 1010 (03F2) [00:07:11]Malloc new data [00:07:11]Processing tag 1011 (03F3) [00:07:11]Malloc new data [00:07:11]SetTLVBufToDocument err=0 [00:07:11]Processing tag 1006 (03EE) [00:07:11]Load OK [00:07:11]SetTLVBufToDocument [00:07:11]Processing tag 1010 (03F2) [00:07:11]Malloc new data [00:07:11]Processing tag 1011 (03F3) [00:07:11]Malloc new data [00:07:11]SetTLVBufToDocument err=0 [00:07:11]Processing tag 1007 (03EF) [00:07:11]Load OK [00:07:11]SetTLVBufToDocument [00:07:11]Processing tag 1014 (03F6) [00:07:11]Malloc new data [00:07:11]Processing tag 1015 (03F7) [00:07:11]Malloc new data [00:07:11]SetTLVBufToDocument err=0 [00:07:11]Processing tag 1007 (03EF) [00:07:11]Load OK [00:07:11]SetTLVBufToDocument [00:07:11]Processing tag 1014 (03F6) [00:07:11]Malloc new data [00:07:11]Processing tag 1015 (03F7) [00:07:11]Malloc new data [00:07:11]SetTLVBufToDocument err=0 [00:07:11]Processing tag 1007 (03EF) [00:07:11]Load OK [00:07:11]SetTLVBufToDocument [00:07:11]Processing tag 1014 (03F6) [00:07:11]Malloc new data [00:07:11]Processing tag 1015 (03F7) [00:07:11]Malloc new data [00:07:11]SetTLVBufToDocument err=0 [00:07:11]Processing tag 1007 (03EF) [00:07:11]Load OK [00:07:11]SetTLVBufToDocument [00:07:11]Processing tag 1014 (03F6) [00:07:11]Malloc new data [00:07:11]Processing tag 1015 (03F7) [00:07:11]Malloc new data [00:07:11]SetTLVBufToDocument err=0 [00:07:11]Processing tag 1007 (03EF) [00:07:11]Load OK [00:07:11]SetTLVBufToDocument [00:07:11]Processing tag 1014 (03F6) [00:07:11]Malloc new data [00:07:11]Processing tag 1015 (03F7) [00:07:11]Malloc new data [00:07:11]SetTLVBufToDocument err=0 [00:07:11]Processing tag 1007 (03EF) [00:07:11]Load OK [00:07:11]SetTLVBufToDocument [00:07:11]Processing tag 1014 (03F6) [00:07:11]Malloc new data [00:07:11]Processing tag 1015 (03F7) [00:07:11]Malloc new data [00:07:11]SetTLVBufToDocument err=0 [00:07:11]Processing tag 1007 (03EF) [00:07:11]Load OK [00:07:11]SetTLVBufToDocument [00:07:11]Processing tag 1014 (03F6) [00:07:11]Malloc new data [00:07:11]Processing tag 1015 (03F7) [00:07:11]Malloc new data [00:07:11]SetTLVBufToDocument err=0 [00:07:11]SetTLVBufToDocument err=0 [00:07:11]SetTLVBufToDocument err=0 [00:07:11]Processing tag 1133 (046D) [00:07:11]Malloc new data [00:07:11]SetTLVBufToDocument err=0 [00:07:11]SetTLVBufToDocument err=0 [00:07:11]Malloc new data [00:07:11]SAM_PROTO_GetFMData [00:07:11]wFMCommunicate request_size=4 [00:07:11]MH_SAM_APDU [00:07:11]CAPDU: 80 13 03 00 [00:07:11]Write to MH i2c: E2 08 00 4E 20 80 13 03 00 00 00 00 00 ED [00:07:11]Write i2c OK [00:07:11]MH_I2C_Read... [00:07:12]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:07:12]Read from MH i2c: E2 [00:07:12]MH_I2C_Read... [00:07:12]Read from MH i2c: E2 FD 00 [00:07:12]MH_I2C_Read... [00:07:12]Read from MH i2c: E2 FD 00 4E 20 00 C5 04 85 04 C1 04 6E 04 04 00 67 75 03 00 69 04 A3 00 6F 04 04 00 77 6E 03 00 B1 04 05 00 82 A3 B5 C5 04 70 04 05 00 8C 28 2D 4C 04 72 04 04 00 F6 7A 88 79 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 80 F2 C7 81 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 2D 7D D0 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 F0 06 00 00 B1 04 04 00 D8 C0 CF 1E 70 04 04 00 D8 C0 CF 1E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A5 B8 45 03 EF 03 09 90 00 00 [00:07:12]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 67 75 03 00 69 04 A3 00 6F 04 04 00 77 6E 03 00 B1 04 05 00 82 A3 B5 C5 04 70 04 05 00 8C 28 2D 4C 04 72 04 04 00 F6 7A 88 79 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 80 F2 C7 81 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 2D 7D D0 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 F0 06 00 00 B1 04 04 00 D8 C0 CF 1E 70 04 04 00 D8 C0 CF 1E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A5 B8 45 03 EF 03 09 90 00 [00:07:12]wFMCommunicate OK [00:07:12]wFMCommunicate request_size=4 [00:07:12]MH_SAM_APDU [00:07:12]CAPDU: 80 17 00 00 [00:07:12]Write to MH i2c: E2 08 00 4F 20 80 17 00 00 00 00 00 00 EF [00:07:12]Write i2c OK [00:07:12]MH_I2C_Read... [00:07:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:13]Read from MH i2c: E2 [00:07:13]MH_I2C_Read... [00:07:13]Read from MH i2c: E2 FD 00 [00:07:13]MH_I2C_Read... [00:07:13]Read from MH i2c: E2 FD 00 4F 20 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 CE 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 9F [00:07:13]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 CE 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:07:13]wFMCommunicate OK [00:07:13]wFMCommunicate request_size=4 [00:07:13]MH_SAM_APDU [00:07:13]CAPDU: 80 17 00 00 [00:07:13]Write to MH i2c: E2 08 00 50 20 80 17 00 00 00 00 00 00 F0 [00:07:13]Write i2c OK [00:07:13]MH_I2C_Read... [00:07:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:13]Read from MH i2c: E2 [00:07:13]MH_I2C_Read... [00:07:13]Read from MH i2c: E2 FD 00 [00:07:13]MH_I2C_Read... [00:07:13]Read from MH i2c: E2 FD 00 50 20 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 02 [00:07:13]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:07:13]wFMCommunicate OK [00:07:13]wFMCommunicate request_size=4 [00:07:13]MH_SAM_APDU [00:07:13]CAPDU: 80 17 00 00 [00:07:13]Write to MH i2c: E2 08 00 51 20 80 17 00 00 00 00 00 00 F1 [00:07:13]Write i2c OK [00:07:13]MH_I2C_Read... [00:07:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:14]Read from MH i2c: E2 [00:07:14]MH_I2C_Read... [00:07:14]Read from MH i2c: E2 FD 00 [00:07:14]MH_I2C_Read... [00:07:14]Read from MH i2c: E2 FD 00 51 20 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 7D [00:07:14]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:07:14]wFMCommunicate OK [00:07:14]wFMCommunicate request_size=4 [00:07:14]MH_SAM_APDU [00:07:14]CAPDU: 80 17 00 00 [00:07:14]Write to MH i2c: E2 08 00 52 20 80 17 00 00 00 00 00 00 F2 [00:07:14]Write i2c OK [00:07:14]MH_I2C_Read... [00:07:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:07:14]Read from MH i2c: E2 [00:07:14]MH_I2C_Read... [00:07:14]Read from MH i2c: E2 E2 00 [00:07:14]MH_I2C_Read... [00:07:14]Read from MH i2c: E2 E2 00 52 20 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D0 [00:07:14]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:07:14]wFMCommunicate OK [00:07:14]SAM_PROTO_GetFMData done [00:07:14]FM_GetFMData:85 04 C1 04 6E 04 04 00 67 75 03 00 69 04 A3 00 6F 04 04 00 77 6E 03 00 B1 04 05 00 82 A3 B5 C5 04 70 04 05 00 8C 28 2D 4C 04 72 04 04 00 F6 7A 88 79 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 80 F2 C7 81 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 2D 7D D0 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 F0 06 00 00 B1 04 04 00 D8 C0 CF 1E 70 04 04 00 D8 C0 CF 1E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A5 B8 45 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 CE 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 OFD Sender: No OFD packet to send [00:07:15]01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:07:15]oper:6F 04 04 00 77 6E 03 00 B1 04 05 00 82 A3 B5 C5 04 70 04 05 00 8C 28 2D 4C 04 72 04 04 00 F6 7A 88 79 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 80 F2 C7 81 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 2D 7D D0 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:07:15]total:82 A3 B5 C5 04 [00:07:15]Malloc new data [00:07:15]oper:6F 04 04 00 F0 06 00 00 B1 04 04 00 D8 C0 CF 1E 70 04 04 00 D8 C0 CF 1E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A5 B8 45 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 CE 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:07:15]total:D8 C0 CF 1E [00:07:15]Malloc new data [00:07:15]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:07:15]total: [00:07:15]Malloc new data [00:07:15]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:07:15]total: [00:07:15]Malloc new data [00:07:15]KKMPrepareXReportFMData err=0 [00:07:15]Х отчет ИНН: 02508201610067 Кассир: Ормонова Д. 21.10.2024 00:07 Смена: 522 РНМ: 0000000000091685 ЗНМ: 0300000091 СНО: Общий режим Всего чеков: 577 ИТОГИ ПРИХОД Чеков: 576 Общий итог: 629211.96 Итого наличными: 545607.00 Итого безнал.: 83604.96 НДС 0% : 0.00 НДС 12% : 66835.05 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 5569.41 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 1 Общий итог: 100.00 Итого наличными: 100.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 10.68 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.89 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 545507.00 НС Приход: 204968846.10 НС Возвр.Прихода: 5169318.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000871839 [00:07:15]StoreToDocumentArchive [00:07:15]MH_GetDate [00:07:15]Write to MH i2c: F0 00 00 53 20 62 [00:07:15]Write i2c OK [00:07:15]MH_I2C_Read... [00:07:15]Read from MH i2c: F0 [00:07:15]MH_I2C_Read... [00:07:15]Read from MH i2c: F0 09 00 [00:07:15]MH_I2C_Read... [00:07:15]Read from MH i2c: F0 09 00 53 20 00 35 9B 15 67 82 C9 CF 66 37 [00:07:15]shift 522 fd 1729469237 [00:07:15]Create dir for shift 0522 [00:07:15]save to /storage/0522/doc_1729469237 [00:07:15]save last doc name /storage/0522/doc_1729469237 to /storage/kkm_last_doc_name [00:07:15]save OK [00:07:15]Clear old archive folders... [00:07:15]NVStorageSaveData kkm_last_timestamp [00:07:15]File name is /storage/kkm_last_timestamp [00:07:15]Write 4 bytes [00:07:15]NVStorageSaveData done [00:07:15]ExternCall_PrintAddStr [00:07:15]wPrintStart [00:07:15]Write to MH i2c: 01 00 00 54 20 74 [00:07:15]Write i2c OK [00:07:15]MH_I2C_Read... [00:07:15]Read from MH i2c: 01 [00:07:15]MH_I2C_Read... [00:07:15]Read from MH i2c: 01 07 00 [00:07:15]MH_I2C_Read... [00:07:15]Read from MH i2c: 01 07 00 54 20 00 00 00 00 00 FF 0F 89 [00:07:15]RasterBufferAndPrint [00:07:15]line Х отчет [00:07:15]line ИНН: 02508201610067 [00:07:15]line Кассир: Ормонова Д. [00:07:15]line 21.10.2024 00:07 [00:07:15]line Смена: 522 [00:07:15]line РНМ: 0000000000091685 [00:07:15]line ЗНМ: 0300000091 [00:07:15]line СНО: Общий режим [00:07:15]line Всего чеков: 577 [00:07:15]line ИТОГИ ПРИХОД [00:07:15]line Чеков: 576 [00:07:15]line Общий итог: 629211.96 [00:07:15]line Итого наличными: 545607.00 [00:07:15]line Итого безнал.: 83604.96 [00:07:15]line НДС 0% : 0.00 [00:07:15]line НДС 12% : 66835.05 [00:07:15]line НСП 0% : 0.00 [00:07:15]line НСП 1,50% : 0.00 [00:07:15]line НСП 0,50% : 0.00 [00:07:15]line НСП 5% : 0.00 [00:07:15]line НСП 3% : 0.00 [00:07:15]line НСП 2% : 0.00 [00:07:15]line НСП 1% : 5569.41 [00:07:15]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:07:15]line Чеков: 1 [00:07:15]line Общий итог: 100.00 [00:07:15]line Итого наличными: 100.00 [00:07:15]line Итого безнал.: 0.00 [00:07:15]line НДС 0% : 0.00 [00:07:15]line НДС 12% : 10.68 [00:07:15]line НСП 0% : 0.00 [00:07:15]line НСП 1,50% : 0.00 [00:07:15]line НСП 0,50% : 0.00 [00:07:15]line НСП 5% : 0.00 [00:07:15]line НСП 3% : 0.00 [00:07:15]line НСП 2% : 0.00 [00:07:15]line НСП 1% : 0.89 [00:07:15]line ИТОГИ РАСХОД [00:07:15]line Чеков: 0 [00:07:15]line Общий итог: 0.00 [00:07:15]line Итого наличными: 0.00 [00:07:15]line Итого безнал.: 0.00 [00:07:15]line НДС 0% : 0.00 [00:07:15]line НДС 12% : 0.00 [00:07:15]line НСП 0% : 0.00 [00:07:15]line НСП 1,50% : 0.00 [00:07:15]line НСП 0,50% : 0.00 [00:07:15]line НСП 5% : 0.00 [00:07:15]line НСП 3% : 0.00 [00:07:15]line НСП 2% : 0.00 [00:07:15]line НСП 1% : 0.00 [00:07:15]line ИТОГИ ВОЗВРАТ РАСХОДА [00:07:15]line Чеков: 0 [00:07:15]line Общий итог: 0.00 [00:07:15]line Итого наличными: 0.00 [00:07:15]line Итого безнал.: 0.00 [00:07:15]line НДС 0% : 0.00 [00:07:15]line НДС 12% : 0.00 [00:07:15]line НСП 0% : 0.00 [00:07:15]line НСП 1,50% : 0.00 [00:07:15]line НСП 0,50% : 0.00 [00:07:15]line НСП 5% : 0.00 [00:07:15]line НСП 3% : 0.00 [00:07:15]line НСП 2% : 0.00 [00:07:15]line НСП 1% : 0.00 [00:07:15]line Сумма внесений: 0.00 [00:07:15]line Сумма выплат: 0.00 [00:07:15]line Нал. в кассе: 545507.00 [00:07:15]line НС Приход: 204968846.10 [00:07:15]line НС Возвр.Прихода: 5169318.00 [00:07:15]line НС Расход: 0.00 [00:07:15]line НС Возвр.Расхода: 0.00 [00:07:15]line ФМ: 0000000000871839 [00:07:15]written 0, free lines is 4095 [00:07:16]Write to MH i2c: 01 00 00 9F 20 BF [00:07:16]Write i2c OK [00:07:16]MH_I2C_Read... [00:07:16]Read from MH i2c: 01 [00:07:16]MH_I2C_Read... [00:07:16]Read from MH i2c: 01 07 00 [00:07:16]MH_I2C_Read... [00:07:16]Read from MH i2c: 01 07 00 9F 20 00 00 00 00 00 23 0A F3 [00:07:16]RasterBufferAndPrint [00:07:16]line [00:07:16]line [00:07:16]line [00:07:16]line [00:07:16]line [00:07:16]written 0, free lines is 2613 [00:07:16]MH_Cut [00:07:16]Write to MH i2c: D1 01 00 A6 20 01 98 [00:07:16]Write i2c OK [00:07:16]MH_I2C_Read... [00:07:16]Read from MH i2c: D1 [00:07:16]MH_I2C_Read... [00:07:16]Read from MH i2c: D1 01 00 [00:07:16]MH_I2C_Read... [00:07:16]Read from MH i2c: D1 01 00 A6 20 00 97 [00:07:16]Write to MH i2c: 01 00 00 A7 20 C7 [00:07:16]Write i2c OK [00:07:16]MH_I2C_Read... [00:07:18]*** Cut start [00:07:18]*** Partial cut [00:07:18]*** CUTSNS_PIN = 1 [00:07:18]*** CUTSNS_PIN = 0 [00:07:18]*** Brake cut motor [00:07:18]Read from MH i2c: 01 [00:07:18]MH_I2C_Read... [00:07:18]*** Stop cut motor [00:07:18]*** Cut end [00:07:18]Read from MH i2c: 01 07 00 [00:07:18]MH_I2C_Read... [00:07:18]Read from MH i2c: 01 07 00 A7 20 00 00 00 00 00 FF 0F DC [00:07:18]process_action x_report done [00:07:18]requested_data is exist [00:07:18]produce_requested_data [00:07:18]requested_item fd.num is exist - process it [00:07:18]SAM_PROTO_GetFieldsCounters [00:07:18]wFMCommunicate request_size=4 [00:07:18]MH_SAM_APDU [00:07:18]CAPDU: 80 13 00 00 [00:07:18]Write to MH i2c: E2 08 00 A8 20 80 13 00 00 00 00 00 00 44 [00:07:18]Write i2c OK [00:07:18]MH_I2C_Read... [00:07:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:07:18]Read from MH i2c: E2 [00:07:18]MH_I2C_Read... [00:07:18]Read from MH i2c: E2 62 00 [00:07:18]MH_I2C_Read... [00:07:18]Read from MH i2c: E2 62 00 A8 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 91 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 41 02 00 00 5E 04 04 00 41 02 00 00 57 04 04 00 42 02 00 00 19 04 04 00 00 00 00 00 90 00 5A [00:07:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 91 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 41 02 00 00 5E 04 04 00 41 02 00 00 57 04 04 00 42 02 00 00 19 04 04 00 00 00 00 00 90 00 [00:07:19]wFMCommunicate OK [00:07:19]SAM_PROTO_GetFieldsCounters done [00:07:19]requested_item shift.num is exist - process it [00:07:19]requested_item shift.opened is exist - process it [00:07:19]req_shift_opened [00:07:19]FM_GetShiftState [00:07:19]SAM_PROTO_GetShiftState [00:07:19]wFMCommunicate request_size=4 [00:07:19]MH_SAM_APDU [00:07:19]CAPDU: 80 13 01 00 [00:07:19]Write to MH i2c: E2 08 00 A9 20 80 13 01 00 00 00 00 00 46 [00:07:19]Write i2c OK [00:07:19]MH_I2C_Read... [00:07:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:19]Read from MH i2c: E2 [00:07:19]MH_I2C_Read... [00:07:19]Read from MH i2c: E2 0E 00 [00:07:19]MH_I2C_Read... [00:07:19]Read from MH i2c: E2 0E 00 A9 20 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 60 [00:07:19]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [00:07:19]wFMCommunicate OK [00:07:19]SAM_PROTO_GetShiftState done [00:07:19]FM_GetShiftState done [00:07:19]req_shift_opened done [00:07:19]requested_item shift.open_date is exist - process it [00:07:19]req_shift_open_date [00:07:19]req_shift_open_date done [00:07:19]produce_requested_data done [00:07:19]produce_requested_data return {"fd.num":227729,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [00:07:19]process_action_free x_report [00:07:19]json_value_free [00:07:19]json_value_free done [00:07:19]process_json_proto returns [00:07:19]Send response to host [00:07:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":227729,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [00:07:19]free response buf [00:07:19]execute_script done [00:07:19]execute_script returns [00:07:19]free content buf [00:07:19]Sock 7.Close socket [00:07:19]Sock 7.Thread stoped [00:07:20]OFD Sender: No OFD packet to send [00:07:25]OFD Sender: No OFD packet to send [00:07:30]OFD Sender: No OFD packet to send [00:07:35]OFD Sender: No OFD packet to send [00:07:40]OFD Sender: No OFD packet to send [00:07:42]accept exits with 9 [00:07:42]New connection [00:07:42]New thread 3066809700 created [00:07:42]Thread 3066666340 joined [00:07:42]Waiting for new connection... [00:07:42] Sock 9.Parse request [00:07:42]Sock 9.Check first char [00:07:42]Sock 9.First char is OK [00:07:42]request: POST /json_proto HTTP/1.0 [00:07:42]Method: POST [00:07:42]URL: /json_proto [00:07:42]Method is POST - this is cgi request [00:07:42]url: /json_proto [00:07:42]query_string will be loaded in cgi processing [00:07:42]execute_cgi json_proto POST (null) [00:07:42]execute_cgi path=json_proto method=POST [00:07:42]POST find Content-Length [00:07:42]Host: 172.17.44.195:8080 [00:07:42]Content-Length: 215 [00:07:42]Content-Type: application/json [00:07:42] [00:07:42]POST finish read [00:07:42]Found Content-Length = 215 [00:07:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:42]execute_script... [00:07:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:42]POST & json_proto [00:07:42]process_json_proto [00:07:42]json parsed OK: [00:07:42]protocol is kg_v1.0 [00:07:42]action value=get_value [00:07:42]process_action get_value [00:07:42]cmd_get_value [00:07:42]process_action get_value done [00:07:42]requested_data is exist [00:07:42]produce_requested_data [00:07:42]requested_item kkm.sn is exist - process it [00:07:42]requested_item kkm.ver is exist - process it [00:07:42]requested_item fm.sn is exist - process it [00:07:42]wFMCommunicate request_size=4 [00:07:42]MH_SAM_APDU [00:07:42]CAPDU: 80 11 00 00 [00:07:42]Write to MH i2c: E2 08 00 AA 20 80 11 00 00 00 00 00 00 44 [00:07:42]Write i2c OK [00:07:42]MH_I2C_Read... [00:07:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:07:42]Read from MH i2c: E2 [00:07:42]MH_I2C_Read... [00:07:42]Read from MH i2c: E2 17 00 [00:07:42]MH_I2C_Read... [00:07:42]Read from MH i2c: E2 17 00 AA 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 9B [00:07:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [00:07:42]wFMCommunicate OK [00:07:42]requested_item fd.num is exist - process it [00:07:42]SAM_PROTO_GetFieldsCounters [00:07:42]wFMCommunicate request_size=4 [00:07:42]MH_SAM_APDU [00:07:42]CAPDU: 80 13 00 00 [00:07:42]Write to MH i2c: E2 08 00 AB 20 80 13 00 00 00 00 00 00 47 [00:07:42]Write i2c OK [00:07:42]MH_I2C_Read... [00:07:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:07:42]Read from MH i2c: E2 [00:07:42]MH_I2C_Read... [00:07:42]Read from MH i2c: E2 62 00 [00:07:42]MH_I2C_Read... [00:07:42]Read from MH i2c: E2 62 00 AB 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 91 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 41 02 00 00 5E 04 04 00 41 02 00 00 57 04 04 00 42 02 00 00 19 04 04 00 00 00 00 00 90 00 5D [00:07:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 91 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 41 02 00 00 5E 04 04 00 41 02 00 00 57 04 04 00 42 02 00 00 19 04 04 00 00 00 00 00 90 00 [00:07:42]wFMCommunicate OK [00:07:42]SAM_PROTO_GetFieldsCounters done [00:07:42]requested_item shift.num is exist - process it [00:07:42]requested_item shift.opened is exist - process it [00:07:42]req_shift_opened [00:07:42]FM_GetShiftState [00:07:42]SAM_PROTO_GetShiftState [00:07:42]wFMCommunicate request_size=4 [00:07:42]MH_SAM_APDU [00:07:42]CAPDU: 80 13 01 00 [00:07:42]Write to MH i2c: E2 08 00 AC 20 80 13 01 00 00 00 00 00 49 [00:07:42]Write i2c OK [00:07:42]MH_I2C_Read... [00:07:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:42]Read from MH i2c: E2 [00:07:42]MH_I2C_Read... [00:07:42]Read from MH i2c: E2 0E 00 [00:07:42]MH_I2C_Read... [00:07:42]Read from MH i2c: E2 0E 00 AC 20 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 63 [00:07:42]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [00:07:42]wFMCommunicate OK [00:07:42]SAM_PROTO_GetShiftState done [00:07:42]FM_GetShiftState done [00:07:42]req_shift_opened done [00:07:42]requested_item shift.open_date is exist - process it [00:07:42]req_shift_open_date [00:07:42]req_shift_open_date done [00:07:42]produce_requested_data done [00:07:42]produce_requested_data return {"kkm.sn":"0300000091","kkm.ver":"001","fm.sn":"0000000000871839","fd.num":227729,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750} [00:07:42]process_action_free get_value [00:07:42]json_value_free [00:07:42]json_value_free done [00:07:42]process_json_proto returns [00:07:42]Send response to host [00:07:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000091","kkm.ver":"001","fm.sn":"0000000000871839","fd.num":227729,"shift.num":533,"shift.opened":1,"shift.open_date":1729383750}}} [00:07:42]free response buf [00:07:42]execute_script done [00:07:42]execute_script returns [00:07:42]free content buf [00:07:42]Sock 9.Close socket [00:07:42]Sock 9.Thread stoped [00:07:42]accept exits with 7 [00:07:42]New connection [00:07:42]New thread 3066666340 created [00:07:42]Thread 3066809700 joined [00:07:42]Waiting for new connection... [00:07:42] Sock 7.Parse request [00:07:42]Sock 7.Check first char [00:07:42]Sock 7.First char is OK [00:07:42]request: POST /json_proto HTTP/1.0 [00:07:42]Method: POST [00:07:42]URL: /json_proto [00:07:42]Method is POST - this is cgi request [00:07:42]url: /json_proto [00:07:42]query_string will be loaded in cgi processing [00:07:42]execute_cgi json_proto POST (null) [00:07:42]execute_cgi path=json_proto method=POST [00:07:42]POST find Content-Length [00:07:42]Host: 172.17.44.195:8080 [00:07:42]Content-Length: 331 [00:07:42]Content-Type: application/json [00:07:42] [00:07:42]POST finish read [00:07:42]Found Content-Length = 331 [00:07:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:07:42]execute_script... [00:07:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:07:42]POST & json_proto [00:07:42]process_json_proto [00:07:42]json parsed OK: [00:07:42]protocol is kg_v1.0 [00:07:42]action value=get_value [00:07:42]process_action get_value [00:07:42]cmd_get_value [00:07:42]process_action get_value done [00:07:42]requested_data is exist [00:07:42]produce_requested_data [00:07:42]requested_item fm.sale.total is exist - process it [00:07:42]SAM_PROTO_GetFMData [00:07:42]wFMCommunicate request_size=4 [00:07:42]MH_SAM_APDU [00:07:42]CAPDU: 80 13 03 00 [00:07:42]Write to MH i2c: E2 08 00 AD 20 80 13 03 00 00 00 00 00 4C [00:07:42]Write i2c OK [00:07:42]MH_I2C_Read... [00:07:43]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:07:43]Read from MH i2c: E2 [00:07:43]MH_I2C_Read... [00:07:43]Read from MH i2c: E2 FD 00 [00:07:43]MH_I2C_Read... [00:07:43]Read from MH i2c: E2 FD 00 AD 20 00 C5 04 85 04 C1 04 6E 04 04 00 67 75 03 00 69 04 A3 00 6F 04 04 00 77 6E 03 00 B1 04 05 00 82 A3 B5 C5 04 70 04 05 00 8C 28 2D 4C 04 72 04 04 00 F6 7A 88 79 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 80 F2 C7 81 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 2D 7D D0 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 F0 06 00 00 B1 04 04 00 D8 C0 CF 1E 70 04 04 00 D8 C0 CF 1E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A5 B8 45 03 EF 03 09 90 00 5F [00:07:43]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 67 75 03 00 69 04 A3 00 6F 04 04 00 77 6E 03 00 B1 04 05 00 82 A3 B5 C5 04 70 04 05 00 8C 28 2D 4C 04 72 04 04 00 F6 7A 88 79 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 80 F2 C7 81 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 2D 7D D0 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 F0 06 00 00 B1 04 04 00 D8 C0 CF 1E 70 04 04 00 D8 C0 CF 1E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A5 B8 45 03 EF 03 09 90 00 [00:07:43]wFMCommunicate OK [00:07:43]wFMCommunicate request_size=4 [00:07:43]MH_SAM_APDU [00:07:43]CAPDU: 80 17 00 00 [00:07:43]Write to MH i2c: E2 08 00 AE 20 80 17 00 00 00 00 00 00 4E [00:07:43]Write i2c OK [00:07:43]MH_I2C_Read... [00:07:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:43]Read from MH i2c: E2 [00:07:43]MH_I2C_Read... [00:07:43]Read from MH i2c: E2 FD 00 [00:07:43]MH_I2C_Read... [00:07:43]Read from MH i2c: E2 FD 00 AE 20 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 CE 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 FE [00:07:43]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 CE 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:07:43]wFMCommunicate OK [00:07:43]wFMCommunicate request_size=4 [00:07:43]MH_SAM_APDU [00:07:43]CAPDU: 80 17 00 00 [00:07:43]Write to MH i2c: E2 08 00 AF 20 80 17 00 00 00 00 00 00 4F [00:07:43]Write i2c OK [00:07:43]MH_I2C_Read... [00:07:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:43]Read from MH i2c: E2 [00:07:43]MH_I2C_Read... [00:07:43]Read from MH i2c: E2 FD 00 [00:07:43]MH_I2C_Read... [00:07:43]Read from MH i2c: E2 FD 00 AF 20 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 61 [00:07:44]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:07:44]wFMCommunicate OK [00:07:44]wFMCommunicate request_size=4 [00:07:44]MH_SAM_APDU [00:07:44]CAPDU: 80 17 00 00 [00:07:44]Write to MH i2c: E2 08 00 B0 20 80 17 00 00 00 00 00 00 50 [00:07:44]Write i2c OK [00:07:44]MH_I2C_Read... [00:07:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:44]Read from MH i2c: E2 [00:07:44]MH_I2C_Read... [00:07:44]Read from MH i2c: E2 FD 00 [00:07:44]MH_I2C_Read... [00:07:44]Read from MH i2c: E2 FD 00 B0 20 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 DC [00:07:44]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:07:44]wFMCommunicate OK [00:07:44]wFMCommunicate request_size=4 [00:07:44]MH_SAM_APDU [00:07:44]CAPDU: 80 17 00 00 [00:07:44]Write to MH i2c: E2 08 00 B1 20 80 17 00 00 00 00 00 00 51 [00:07:44]Write i2c OK [00:07:44]MH_I2C_Read... [00:07:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:07:44]Read from MH i2c: E2 [00:07:44]MH_I2C_Read... [00:07:44]Read from MH i2c: E2 E2 00 [00:07:44]MH_I2C_Read... [00:07:44]Read from MH i2c: E2 E2 00 B1 20 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2F [00:07:44]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:07:45]wFMCommunicate OK [00:07:45]SAM_PROTO_GetFMData done [00:07:45]requested_item fm.sale_refund.total is exist - process it [00:07:45]requested_item fm.buy.total is exist - process it [00:07:45]requested_item shift.sale.total is exist - process it [00:07:45]SAM_PROTO_GetShiftData [00:07:45]wFMCommunicate request_size=4 [00:07:45]MH_SAM_APDU [00:07:45]CAPDU: 80 13 02 00 [00:07:45]Write to MH i2c: E2 08 00 B2 20 80 13 02 00 00 00 00 00 50 [00:07:45]Write i2c OK [00:07:45]MH_I2C_Read... [00:07:45]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:07:45]Read from MH i2c: E2 [00:07:45]MH_I2C_Read... [00:07:45]OFD Sender: No OFD packet to send [00:07:45]Read from MH i2c: E2 FD 00 [00:07:45]MH_I2C_Read... [00:07:45]Read from MH i2c: E2 FD 00 B2 20 00 B8 04 AA 04 B4 04 6E 04 04 00 41 02 00 00 69 04 9E 00 6F 04 04 00 40 02 00 00 B1 04 04 00 EC 19 C0 03 70 04 04 00 BC 87 40 03 72 04 03 00 30 92 7F 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 71 FB 65 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8D 7F 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 10 27 70 04 02 00 10 27 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 2C 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 D9 [00:07:45]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 41 02 00 00 69 04 9E 00 6F 04 04 00 40 02 00 00 B1 04 04 00 EC 19 C0 03 70 04 04 00 BC 87 40 03 72 04 03 00 30 92 7F 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 71 FB 65 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8D 7F 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 10 27 70 04 02 00 10 27 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 2C 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:07:45]wFMCommunicate OK [00:07:45]wFMCommunicate request_size=4 [00:07:45]MH_SAM_APDU [00:07:45]CAPDU: 80 17 00 00 [00:07:45]Write to MH i2c: E2 08 00 B3 20 80 17 00 00 00 00 00 00 53 [00:07:45]Write i2c OK [00:07:45]MH_I2C_Read... [00:07:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:45]Read from MH i2c: E2 [00:07:45]MH_I2C_Read... [00:07:45]Read from MH i2c: E2 FD 00 [00:07:45]MH_I2C_Read... [00:07:45]Read from MH i2c: E2 FD 00 B3 20 00 03 0A 00 F6 03 01 00 01 F7 03 01 00 59 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 DE [00:07:46]RAPDU: 03 0A 00 F6 03 01 00 01 F7 03 01 00 59 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:46]wFMCommunicate OK [00:07:46]wFMCommunicate request_size=4 [00:07:46]MH_SAM_APDU [00:07:46]CAPDU: 80 17 00 00 [00:07:46]Write to MH i2c: E2 08 00 B4 20 80 17 00 00 00 00 00 00 54 [00:07:46]Write i2c OK [00:07:46]MH_I2C_Read... [00:07:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:46]Read from MH i2c: E2 [00:07:46]MH_I2C_Read... [00:07:46]Read from MH i2c: E2 FD 00 [00:07:46]MH_I2C_Read... [00:07:46]Read from MH i2c: E2 FD 00 B4 20 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F6 [00:07:46]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:46]wFMCommunicate OK [00:07:46]wFMCommunicate request_size=4 [00:07:46]MH_SAM_APDU [00:07:46]CAPDU: 80 17 00 00 [00:07:46]Write to MH i2c: E2 08 00 B5 20 80 17 00 00 00 00 00 00 55 [00:07:46]Write i2c OK [00:07:46]MH_I2C_Read... [00:07:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:46]Read from MH i2c: E2 [00:07:46]MH_I2C_Read... [00:07:46]Read from MH i2c: E2 FD 00 [00:07:46]MH_I2C_Read... [00:07:46]Read from MH i2c: E2 FD 00 B5 20 00 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 DE [00:07:47]RAPDU: 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 [00:07:47]wFMCommunicate OK [00:07:47]wFMCommunicate request_size=4 [00:07:47]MH_SAM_APDU [00:07:47]CAPDU: 80 17 00 00 [00:07:47]Write to MH i2c: E2 08 00 B6 20 80 17 00 00 00 00 00 00 56 [00:07:47]Write i2c OK [00:07:47]MH_I2C_Read... [00:07:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [00:07:47]Read from MH i2c: E2 [00:07:47]MH_I2C_Read... [00:07:47]Read from MH i2c: E2 D5 00 [00:07:47]MH_I2C_Read... [00:07:47]Read from MH i2c: E2 D5 00 B6 20 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 37 [00:07:47]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:07:47]wFMCommunicate OK [00:07:47]SAM_PROTO_GetShiftData done [00:07:47]requested_item shift.sale.total_cash is exist - process it [00:07:47]requested_item shift.sale_refund.total is exist - process it [00:07:47]requested_item shift.sale_refund.total_cash is exist - process it [00:07:47]requested_item shift.buy.total is exist - process it [00:07:47]requested_item shift.buy.total_cash is exist - process it [00:07:47]produce_requested_data done [00:07:47]produce_requested_data return {"fm.sale.total":204968846.10,"fm.sale_refund.total":5169318.00,"fm.buy.total":0.00,"shift.sale.total":629211.96,"shift.sale.total_cash":545607.00,"shift.sale_refund.total":100.00,"shift.sale_refund.total_cash":100.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:07:47]process_action_free get_value [00:07:47]json_value_free [00:07:47]json_value_free done [00:07:47]process_json_proto returns [00:07:47]Send response to host [00:07:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":204968846.10,"fm.sale_refund.total":5169318.00,"fm.buy.total":0.00,"shift.sale.total":629211.96,"shift.sale.total_cash":545607.00,"shift.sale_refund.total":100.00,"shift.sale_refund.total_cash":100.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:07:47]free response buf [00:07:47]execute_script done [00:07:47]execute_script returns [00:07:47]free content buf [00:07:47]Sock 7.Close socket [00:07:47]Sock 7.Thread stoped [00:07:47]accept exits with 9 [00:07:47]New connection [00:07:47]New thread 3066809700 created [00:07:47]Thread 3066666340 joined [00:07:47]Waiting for new connection... [00:07:47] Sock 9.Parse request [00:07:47]Sock 9.Check first char [00:07:47]Sock 9.First char is OK [00:07:47]request: POST /json_proto HTTP/1.0 [00:07:47]Method: POST [00:07:47]URL: /json_proto [00:07:47]Method is POST - this is cgi request [00:07:47]url: /json_proto [00:07:47]query_string will be loaded in cgi processing [00:07:47]execute_cgi json_proto POST (null) [00:07:47]execute_cgi path=json_proto method=POST [00:07:47]POST find Content-Length [00:07:47]Host: 172.17.44.195:8080 [00:07:47]Content-Length: 331 [00:07:47]Content-Type: application/json [00:07:47] [00:07:47]POST finish read [00:07:47]Found Content-Length = 331 [00:07:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:07:47]execute_script... [00:07:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:07:47]POST & json_proto [00:07:47]process_json_proto [00:07:47]json parsed OK: [00:07:47]protocol is kg_v1.0 [00:07:47]action value=get_value [00:07:47]process_action get_value [00:07:47]cmd_get_value [00:07:47]process_action get_value done [00:07:47]requested_data is exist [00:07:47]produce_requested_data [00:07:47]requested_item fm.sale.total is exist - process it [00:07:47]SAM_PROTO_GetFMData [00:07:47]wFMCommunicate request_size=4 [00:07:47]MH_SAM_APDU [00:07:47]CAPDU: 80 13 03 00 [00:07:47]Write to MH i2c: E2 08 00 B7 20 80 13 03 00 00 00 00 00 56 [00:07:47]Write i2c OK [00:07:47]MH_I2C_Read... [00:07:48]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:07:48]Read from MH i2c: E2 [00:07:48]MH_I2C_Read... [00:07:48]Read from MH i2c: E2 FD 00 [00:07:48]MH_I2C_Read... [00:07:48]Read from MH i2c: E2 FD 00 B7 20 00 C5 04 85 04 C1 04 6E 04 04 00 67 75 03 00 69 04 A3 00 6F 04 04 00 77 6E 03 00 B1 04 05 00 82 A3 B5 C5 04 70 04 05 00 8C 28 2D 4C 04 72 04 04 00 F6 7A 88 79 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 80 F2 C7 81 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 2D 7D D0 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 F0 06 00 00 B1 04 04 00 D8 C0 CF 1E 70 04 04 00 D8 C0 CF 1E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A5 B8 45 03 EF 03 09 90 00 69 [00:07:48]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 67 75 03 00 69 04 A3 00 6F 04 04 00 77 6E 03 00 B1 04 05 00 82 A3 B5 C5 04 70 04 05 00 8C 28 2D 4C 04 72 04 04 00 F6 7A 88 79 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 80 F2 C7 81 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 2D 7D D0 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 F0 06 00 00 B1 04 04 00 D8 C0 CF 1E 70 04 04 00 D8 C0 CF 1E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A5 B8 45 03 EF 03 09 90 00 [00:07:48]wFMCommunicate OK [00:07:48]wFMCommunicate request_size=4 [00:07:48]MH_SAM_APDU [00:07:48]CAPDU: 80 17 00 00 [00:07:48]Write to MH i2c: E2 08 00 B8 20 80 17 00 00 00 00 00 00 58 [00:07:48]Write i2c OK [00:07:48]MH_I2C_Read... [00:07:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:48]Read from MH i2c: E2 [00:07:48]MH_I2C_Read... [00:07:48]Read from MH i2c: E2 FD 00 [00:07:48]MH_I2C_Read... [00:07:48]Read from MH i2c: E2 FD 00 B8 20 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 CE 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 08 [00:07:48]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 CE 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:07:48]wFMCommunicate OK [00:07:48]wFMCommunicate request_size=4 [00:07:48]MH_SAM_APDU [00:07:48]CAPDU: 80 17 00 00 [00:07:48]Write to MH i2c: E2 08 00 B9 20 80 17 00 00 00 00 00 00 59 [00:07:48]Write i2c OK [00:07:48]MH_I2C_Read... [00:07:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:49]Read from MH i2c: E2 [00:07:49]MH_I2C_Read... [00:07:49]Read from MH i2c: E2 FD 00 [00:07:49]MH_I2C_Read... [00:07:49]Read from MH i2c: E2 FD 00 B9 20 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 6B [00:07:49]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:07:49]wFMCommunicate OK [00:07:49]wFMCommunicate request_size=4 [00:07:49]MH_SAM_APDU [00:07:49]CAPDU: 80 17 00 00 [00:07:49]Write to MH i2c: E2 08 00 BA 20 80 17 00 00 00 00 00 00 5A [00:07:49]Write i2c OK [00:07:49]MH_I2C_Read... [00:07:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:49]Read from MH i2c: E2 [00:07:49]MH_I2C_Read... [00:07:49]Read from MH i2c: E2 FD 00 [00:07:49]MH_I2C_Read... [00:07:49]Read from MH i2c: E2 FD 00 BA 20 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 E6 [00:07:49]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:07:49]wFMCommunicate OK [00:07:49]wFMCommunicate request_size=4 [00:07:49]MH_SAM_APDU [00:07:49]CAPDU: 80 17 00 00 [00:07:50]Write to MH i2c: E2 08 00 BB 20 80 17 00 00 00 00 00 00 5B [00:07:50]Write i2c OK [00:07:50]MH_I2C_Read... [00:07:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:07:50]Read from MH i2c: E2 [00:07:50]MH_I2C_Read... [00:07:50]Read from MH i2c: E2 E2 00 [00:07:50]MH_I2C_Read... [00:07:50]Read from MH i2c: E2 E2 00 BB 20 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 39 [00:07:50]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:07:50]wFMCommunicate OK [00:07:50]SAM_PROTO_GetFMData done [00:07:50]requested_item fm.sale_refund.total is exist - process it [00:07:50]requested_item fm.buy.total is exist - process it [00:07:50]requested_item shift.sale.total is exist - process it [00:07:50]SAM_PROTO_GetShiftData [00:07:50]wFMCommunicate request_size=4 [00:07:50]MH_SAM_APDU [00:07:50]CAPDU: 80 13 02 00 [00:07:50]Write to MH i2c: E2 08 00 BC 20 80 13 02 00 00 00 00 00 5A [00:07:50]Write i2c OK [00:07:50]MH_I2C_Read... [00:07:50]OFD Sender: No OFD packet to send [00:07:50]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:07:50]Read from MH i2c: E2 [00:07:50]MH_I2C_Read... [00:07:50]Read from MH i2c: E2 FD 00 [00:07:50]MH_I2C_Read... [00:07:50]Read from MH i2c: E2 FD 00 BC 20 00 B8 04 AA 04 B4 04 6E 04 04 00 41 02 00 00 69 04 9E 00 6F 04 04 00 40 02 00 00 B1 04 04 00 EC 19 C0 03 70 04 04 00 BC 87 40 03 72 04 03 00 30 92 7F 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 71 FB 65 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8D 7F 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 10 27 70 04 02 00 10 27 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 2C 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 E3 [00:07:51]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 41 02 00 00 69 04 9E 00 6F 04 04 00 40 02 00 00 B1 04 04 00 EC 19 C0 03 70 04 04 00 BC 87 40 03 72 04 03 00 30 92 7F 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 71 FB 65 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8D 7F 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 10 27 70 04 02 00 10 27 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 2C 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:07:51]wFMCommunicate OK [00:07:51]wFMCommunicate request_size=4 [00:07:51]MH_SAM_APDU [00:07:51]CAPDU: 80 17 00 00 [00:07:51]Write to MH i2c: E2 08 00 BD 20 80 17 00 00 00 00 00 00 5D [00:07:51]Write i2c OK [00:07:51]MH_I2C_Read... [00:07:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:51]Read from MH i2c: E2 [00:07:51]MH_I2C_Read... [00:07:51]Read from MH i2c: E2 FD 00 [00:07:51]MH_I2C_Read... [00:07:51]Read from MH i2c: E2 FD 00 BD 20 00 03 0A 00 F6 03 01 00 01 F7 03 01 00 59 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E8 [00:07:51]RAPDU: 03 0A 00 F6 03 01 00 01 F7 03 01 00 59 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:51]wFMCommunicate OK [00:07:51]wFMCommunicate request_size=4 [00:07:51]MH_SAM_APDU [00:07:51]CAPDU: 80 17 00 00 [00:07:51]Write to MH i2c: E2 08 00 BE 20 80 17 00 00 00 00 00 00 5E [00:07:51]Write i2c OK [00:07:51]MH_I2C_Read... [00:07:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:51]Read from MH i2c: E2 [00:07:51]MH_I2C_Read... [00:07:51]Read from MH i2c: E2 FD 00 [00:07:51]MH_I2C_Read... [00:07:51]Read from MH i2c: E2 FD 00 BE 20 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 00 [00:07:52]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:52]wFMCommunicate OK [00:07:52]wFMCommunicate request_size=4 [00:07:52]MH_SAM_APDU [00:07:52]CAPDU: 80 17 00 00 [00:07:52]Write to MH i2c: E2 08 00 BF 20 80 17 00 00 00 00 00 00 5F [00:07:52]Write i2c OK [00:07:52]MH_I2C_Read... [00:07:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:52]Read from MH i2c: E2 [00:07:52]MH_I2C_Read... [00:07:52]Read from MH i2c: E2 FD 00 [00:07:52]MH_I2C_Read... [00:07:52]Read from MH i2c: E2 FD 00 BF 20 00 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 E8 [00:07:52]RAPDU: 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 [00:07:52]wFMCommunicate OK [00:07:52]wFMCommunicate request_size=4 [00:07:52]MH_SAM_APDU [00:07:52]CAPDU: 80 17 00 00 [00:07:52]Write to MH i2c: E2 08 00 C0 20 80 17 00 00 00 00 00 00 60 [00:07:52]Write i2c OK [00:07:52]MH_I2C_Read... [00:07:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [00:07:52]Read from MH i2c: E2 [00:07:52]MH_I2C_Read... [00:07:52]Read from MH i2c: E2 D5 00 [00:07:52]MH_I2C_Read... [00:07:52]Read from MH i2c: E2 D5 00 C0 20 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 41 [00:07:53]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:07:53]wFMCommunicate OK [00:07:53]SAM_PROTO_GetShiftData done [00:07:53]requested_item shift.sale.total_cash is exist - process it [00:07:53]requested_item shift.sale_refund.total is exist - process it [00:07:53]requested_item shift.sale_refund.total_cash is exist - process it [00:07:53]requested_item shift.buy.total is exist - process it [00:07:53]requested_item shift.buy.total_cash is exist - process it [00:07:53]produce_requested_data done [00:07:53]produce_requested_data return {"fm.sale.total":204968846.10,"fm.sale_refund.total":5169318.00,"fm.buy.total":0.00,"shift.sale.total":629211.96,"shift.sale.total_cash":545607.00,"shift.sale_refund.total":100.00,"shift.sale_refund.total_cash":100.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:07:53]process_action_free get_value [00:07:53]json_value_free [00:07:53]json_value_free done [00:07:53]process_json_proto returns [00:07:53]Send response to host [00:07:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":204968846.10,"fm.sale_refund.total":5169318.00,"fm.buy.total":0.00,"shift.sale.total":629211.96,"shift.sale.total_cash":545607.00,"shift.sale_refund.total":100.00,"shift.sale_refund.total_cash":100.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:07:53]free response buf [00:07:53]execute_script done [00:07:53]execute_script returns [00:07:53]free content buf [00:07:53]Sock 9.Close socket [00:07:53]Sock 9.Thread stoped [00:07:53]accept exits with 7 [00:07:53]New connection [00:07:53]New thread 3066666340 created [00:07:53]Thread 3066809700 joined [00:07:53]Waiting for new connection... [00:07:53] Sock 7.Parse request [00:07:53]Sock 7.Check first char [00:07:53]Sock 7.First char is OK [00:07:53]request: POST /json_proto HTTP/1.0 [00:07:53]Method: POST [00:07:53]URL: /json_proto [00:07:53]Method is POST - this is cgi request [00:07:53]url: /json_proto [00:07:53]query_string will be loaded in cgi processing [00:07:53]execute_cgi json_proto POST (null) [00:07:53]execute_cgi path=json_proto method=POST [00:07:53]POST find Content-Length [00:07:53]Host: 172.17.44.195:8080 [00:07:53]Content-Length: 260 [00:07:53]Content-Type: application/json [00:07:53] [00:07:53]POST finish read [00:07:53]Found Content-Length = 260 [00:07:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041E\u0440\u043C\u043E\u043D\u043E\u0432\u0430 \u0414. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:53]execute_script... [00:07:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041E\u0440\u043C\u043E\u043D\u043E\u0432\u0430 \u0414. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:53]POST & json_proto [00:07:53]process_json_proto [00:07:53]json parsed OK: [00:07:53]protocol is kg_v1.0 [00:07:53]action value=close_shift [00:07:53]process_action close_shift [00:07:53]cmd_close_shift [00:07:53]MH_GetDate [00:07:53]Write to MH i2c: F0 00 00 C1 20 D0 [00:07:53]Write i2c OK [00:07:53]MH_I2C_Read... [00:07:53]Read from MH i2c: F0 [00:07:53]MH_I2C_Read... [00:07:53]Read from MH i2c: F0 09 00 [00:07:53]MH_I2C_Read... [00:07:53]Read from MH i2c: F0 09 00 C1 20 00 5B 9B 15 67 82 C9 CF 66 CB [00:07:53]GetLastDocTimeStamp 1729469229 [00:07:53]current date 1729469275 [00:07:53]FM_GetShiftState [00:07:53]SAM_PROTO_GetShiftState [00:07:53]wFMCommunicate request_size=4 [00:07:53]MH_SAM_APDU [00:07:53]CAPDU: 80 13 01 00 [00:07:53]Write to MH i2c: E2 08 00 C2 20 80 13 01 00 00 00 00 00 5F [00:07:53]Write i2c OK [00:07:53]MH_I2C_Read... [00:07:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:53]Read from MH i2c: E2 [00:07:53]MH_I2C_Read... [00:07:53]Read from MH i2c: E2 0E 00 [00:07:53]MH_I2C_Read... [00:07:53]Read from MH i2c: E2 0E 00 C2 20 00 09 00 01 46 4D 14 67 00 00 00 00 90 00 79 [00:07:53]RAPDU: 09 00 01 46 4D 14 67 00 00 00 00 90 00 [00:07:53]wFMCommunicate OK [00:07:53]SAM_PROTO_GetShiftState done [00:07:53]FM_GetShiftState done [00:07:53]KKMCreateCloseShiftDocument [00:07:53]Load OK [00:07:53]Malloc new data [00:07:53]MH_GetDate [00:07:53]Write to MH i2c: F0 00 00 C3 20 D2 [00:07:53]Write i2c OK [00:07:53]MH_I2C_Read... [00:07:53]Read from MH i2c: F0 [00:07:53]MH_I2C_Read... [00:07:53]Read from MH i2c: F0 09 00 [00:07:53]MH_I2C_Read... [00:07:53]Read from MH i2c: F0 09 00 C3 20 00 5B 9B 15 67 82 C9 CF 66 CD [00:07:53]Malloc new data [00:07:53]Malloc new data [00:07:53]Malloc new data [00:07:53]Malloc new data [00:07:53]KKMCreateCloseShiftDocument OK [00:07:53]KKMSetCloseShiftData OK [00:07:53]ProcessDocumentItem done err = 0, tmpTLVsize=71 [00:07:53]tlvbuf is 00DC5830 [00:07:53]KKMLoadAndSignCloseShiftData [00:07:53]SAM_PROTO_ProcessDocument [00:07:53]wFMCommunicate request_size=9 [00:07:53]MH_SAM_APDU [00:07:53]CAPDU: 80 15 01 00 04 05 00 47 00 [00:07:53]Write to MH i2c: E2 0C 00 C4 20 80 15 01 00 04 00 05 00 47 00 00 00 B7 [00:07:53]Write i2c OK [00:07:53]MH_I2C_Read... [00:07:53]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:07:53]Read from MH i2c: E2 [00:07:53]MH_I2C_Read... [00:07:53]Read from MH i2c: E2 03 00 [00:07:53]MH_I2C_Read... [00:07:53]Read from MH i2c: E2 03 00 C4 20 00 90 00 58 [00:07:53]RAPDU: 90 00 [00:07:53]wFMCommunicate OK [00:07:53]wFMCommunicate request_size=23 [00:07:53]MH_SAM_APDU [00:07:53]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:07:53]Write to MH i2c: E2 1A 00 C5 20 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 5A [00:07:53]Write i2c OK [00:07:53]MH_I2C_Read... [00:07:53]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:07:53]Read from MH i2c: E2 [00:07:53]MH_I2C_Read... [00:07:53]Read from MH i2c: E2 03 00 [00:07:53]MH_I2C_Read... [00:07:53]Read from MH i2c: E2 03 00 C5 20 00 90 00 59 [00:07:53]RAPDU: 90 00 [00:07:53]wFMCommunicate OK [00:07:53]wFMCommunicate request_size=30 [00:07:53]MH_SAM_APDU [00:07:53]CAPDU: 80 15 02 00 19 FD 03 15 00 D0 9E D1 80 D0 BC D0 BE D0 BD D0 BE D0 B2 D0 B0 20 D0 94 2E 20 [00:07:53]Write to MH i2c: E2 21 00 C6 20 80 15 02 00 19 00 FD 03 15 00 D0 9E D1 80 D0 BC D0 BE D0 BD D0 BE D0 B2 D0 B0 20 D0 94 2E 20 00 00 75 [00:07:53]Write i2c OK [00:07:53]MH_I2C_Read... [00:07:53]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:07:53]Read from MH i2c: E2 [00:07:53]MH_I2C_Read... [00:07:53]Read from MH i2c: E2 03 00 [00:07:53]MH_I2C_Read... [00:07:53]Read from MH i2c: E2 03 00 C6 20 00 90 00 5A [00:07:53]RAPDU: 90 00 [00:07:53]wFMCommunicate OK [00:07:53]wFMCommunicate request_size=13 [00:07:53]MH_SAM_APDU [00:07:53]CAPDU: 80 15 02 00 08 F4 03 04 00 5B 9B 15 67 [00:07:53]Write to MH i2c: E2 10 00 C7 20 80 15 02 00 08 00 F4 03 04 00 5B 9B 15 67 00 00 E4 [00:07:53]Write i2c OK [00:07:53]MH_I2C_Read... [00:07:53]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:07:53]Read from MH i2c: E2 [00:07:53]MH_I2C_Read... [00:07:53]Read from MH i2c: E2 03 00 [00:07:53]MH_I2C_Read... [00:07:53]Read from MH i2c: E2 03 00 C7 20 00 90 00 5B [00:07:53]RAPDU: 90 00 [00:07:53]wFMCommunicate OK [00:07:53]wFMCommunicate request_size=25 [00:07:53]MH_SAM_APDU [00:07:53]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 [00:07:53]Write to MH i2c: E2 1C 00 C8 20 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 00 00 CE [00:07:53]Write i2c OK [00:07:53]MH_I2C_Read... [00:07:53]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:07:53]Read from MH i2c: E2 [00:07:53]MH_I2C_Read... [00:07:53]Read from MH i2c: E2 03 00 [00:07:53]MH_I2C_Read... [00:07:53]Read from MH i2c: E2 03 00 C8 20 00 90 00 5C [00:07:53]RAPDU: 90 00 [00:07:53]wFMCommunicate OK [00:07:53]wFMCommunicate request_size=4 [00:07:53]MH_SAM_APDU [00:07:53]CAPDU: 80 15 03 00 [00:07:53]Write to MH i2c: E2 08 00 C9 20 80 15 03 00 00 00 00 00 6A [00:07:53]Write i2c OK [00:07:53]MH_I2C_Read... [00:07:54]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:07:54]Read from MH i2c: E2 [00:07:54]MH_I2C_Read... [00:07:54]Read from MH i2c: E2 FD 00 [00:07:54]MH_I2C_Read... [00:07:54]Read from MH i2c: E2 FD 00 C9 20 00 FB 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 92 79 03 00 0E 04 04 00 15 02 00 00 5E 04 04 00 41 02 00 00 57 04 04 00 43 02 00 00 AA 04 B4 04 6E 04 04 00 41 02 00 00 69 04 9E 00 6F 04 04 00 40 02 00 00 B1 04 04 00 EC 19 C0 03 70 04 04 00 BC 87 40 03 72 04 03 00 30 92 7F 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 71 FB 65 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8D 7F 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 10 90 00 36 [00:07:54]RAPDU: FB 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 92 79 03 00 0E 04 04 00 15 02 00 00 5E 04 04 00 41 02 00 00 57 04 04 00 43 02 00 00 AA 04 B4 04 6E 04 04 00 41 02 00 00 69 04 9E 00 6F 04 04 00 40 02 00 00 B1 04 04 00 EC 19 C0 03 70 04 04 00 BC 87 40 03 72 04 03 00 30 92 7F 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 71 FB 65 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8D 7F 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 10 90 00 [00:07:54]wFMCommunicate OK [00:07:54]SAM_PROTO_ProcessDocument answer len = 1275 [00:07:54]SAM_PROTO_ProcessDocument remain to read = 1027 [00:07:54]wFMCommunicate request_size=4 [00:07:54]MH_SAM_APDU [00:07:54]CAPDU: 80 17 00 00 [00:07:54]Write to MH i2c: E2 08 00 CA 20 80 17 00 00 00 00 00 00 6A [00:07:54]Write i2c OK [00:07:54]MH_I2C_Read... [00:07:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:54]Read from MH i2c: E2 [00:07:54]MH_I2C_Read... [00:07:54]Read from MH i2c: E2 FD 00 [00:07:55]MH_I2C_Read... [00:07:55]Read from MH i2c: E2 FD 00 CA 20 00 27 70 04 02 00 10 27 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 2C 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 59 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2B [00:07:55]RAPDU: 27 70 04 02 00 10 27 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 2C 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 59 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:55]wFMCommunicate OK [00:07:55]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:07:55]SAM_PROTO_ProcessDocument remain to read = 777 [00:07:55]wFMCommunicate request_size=4 [00:07:55]MH_SAM_APDU [00:07:55]CAPDU: 80 17 00 00 [00:07:55]Write to MH i2c: E2 08 00 CB 20 80 17 00 00 00 00 00 00 6B [00:07:55]Write i2c OK [00:07:55]MH_I2C_Read... [00:07:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:55]Read from MH i2c: E2 [00:07:55]MH_I2C_Read... [00:07:55]Read from MH i2c: E2 FD 00 [00:07:55]MH_I2C_Read... [00:07:55]Read from MH i2c: E2 FD 00 CB 20 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF OFD Sender: No OFD packet to send [00:07:55]03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 CD [00:07:55]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 90 00 [00:07:55]wFMCommunicate OK [00:07:55]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:07:55]SAM_PROTO_ProcessDocument remain to read = 527 [00:07:55]wFMCommunicate request_size=4 [00:07:55]MH_SAM_APDU [00:07:55]CAPDU: 80 17 00 00 [00:07:55]Write to MH i2c: E2 08 00 CC 20 80 17 00 00 00 00 00 00 6C [00:07:56]Write i2c OK [00:07:56]MH_I2C_Read... [00:07:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:56]Read from MH i2c: E2 [00:07:56]MH_I2C_Read... [00:07:56]Read from MH i2c: E2 FD 00 [00:07:56]MH_I2C_Read... [00:07:56]Read from MH i2c: E2 FD 00 CC 20 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 7F [00:07:56]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:56]wFMCommunicate OK [00:07:56]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:07:56]SAM_PROTO_ProcessDocument remain to read = 277 [00:07:56]wFMCommunicate request_size=4 [00:07:56]MH_SAM_APDU [00:07:56]CAPDU: 80 17 00 00 [00:07:56]Write to MH i2c: E2 08 00 CD 20 80 17 00 00 00 00 00 00 6D [00:07:56]Write i2c OK [00:07:56]MH_I2C_Read... [00:07:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:56]Read from MH i2c: E2 [00:07:56]MH_I2C_Read... [00:07:56]Read from MH i2c: E2 FD 00 [00:07:56]MH_I2C_Read... [00:07:56]Read from MH i2c: E2 FD 00 CD 20 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AC [00:07:56]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:57]wFMCommunicate OK [00:07:57]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:07:57]SAM_PROTO_ProcessDocument remain to read = 27 [00:07:57]wFMCommunicate request_size=4 [00:07:57]MH_SAM_APDU [00:07:57]CAPDU: 80 17 00 00 [00:07:57]Write to MH i2c: E2 08 00 CE 20 80 17 00 00 00 00 00 00 6E [00:07:57]Write i2c OK [00:07:57]MH_I2C_Read... [00:07:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 27! [00:07:57]Read from MH i2c: E2 [00:07:57]MH_I2C_Read... [00:07:57]Read from MH i2c: E2 1E 00 [00:07:57]MH_I2C_Read... [00:07:57]Read from MH i2c: E2 1E 00 CE 20 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 2C 77 9E 00 BA 54 90 00 FA [00:07:57]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 2C 77 9E 00 BA 54 90 00 [00:07:57]wFMCommunicate OK [00:07:57]SAM_PROTO_ProcessDocument received (without SW) 27 bytes [00:07:57]SAM_PROTO_ProcessDocument done [00:07:57]1209 (1) - 1.0 - номер версии ФФД [00:07:57]1041 (16) - 0000000000871839 - номер ФМ [00:07:57]1040 (4) - 227730 - номер ФД [00:07:57]1038 (4) - 533 - номер смены [00:07:57]1118 (4) - 577 - количество кассовых чеков за смену [00:07:57]1111 (4) - 579 - общее количество ФД за смену [00:07:57]1194 (1204) - счетчики итогов смены [00:07:57] 1134 (4) - 577 - количество чеков со всеми признаками расчетов [00:07:57] 1129 (158) - счетчики операций «приход» [00:07:57] 1135 (4) - 576 - количество чеков по признаку расчетов [00:07:57] 1201 (4) - 629211.96 - общая итоговая сумма в чеках [00:07:57] 1136 (4) - 545607.00 - итоговая сумма в чеках наличными [00:07:57] 1138 (3) - 83604.96 - итоговая сумма в чеках безналичными [00:07:57] 1024 (123) - суммы налогов [00:07:57] 1006 (9) - суммы НДС [00:07:57] 1010 (1) - 0% - код ставки НДС [00:07:57] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:57] 1006 (12) - суммы НДС [00:07:57] 1010 (1) - 12% - код ставки НДС [00:07:57] 1011 (3) - 66835.05 - сумма НДС по ставке [00:07:57] 1007 (9) - суммы НСП [00:07:57] 1014 (1) - 0% - код ставки НСП [00:07:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:57] 1007 (12) - суммы НСП [00:07:57] 1014 (1) - 1% - код ставки НСП [00:07:57] 1015 (3) - 5569.41 - сумма НСП по ставке [00:07:57] 1007 (9) - суммы НСП [00:07:57] 1014 (1) - 2% - код ставки НСП [00:07:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:57] 1007 (9) - суммы НСП [00:07:57] 1014 (1) - 3% - код ставки НСП [00:07:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:57] 1007 (9) - суммы НСП [00:07:57] 1014 (1) - 5% - код ставки НСП [00:07:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:57] 1007 (9) - суммы НСП [00:07:57] 1014 (1) - 0,50% - код ставки НСП [00:07:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:57] 1007 (9) - суммы НСП [00:07:57] 1014 (1) - 1,50% - код ставки НСП [00:07:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:57] 1130 (148) - счетчики операций «возврат прихода» [00:07:57] 1135 (4) - 1 - количество чеков по признаку расчетов [00:07:57] 1201 (2) - 100.00 - общая итоговая сумма в чеках [00:07:57] 1136 (2) - 100.00 - итоговая сумма в чеках наличными [00:07:57] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:07:57] 1024 (120) - суммы налогов [00:07:57] 1006 (9) - суммы НДС [00:07:57] 1010 (1) - 0% - код ставки НДС [00:07:57] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:57] 1006 (11) - суммы НДС [00:07:57] 1010 (1) - 12% - код ставки НДС [00:07:57] 1011 (2) - 10.68 - сумма НДС по ставке [00:07:57] 1007 (9) - суммы НСП [00:07:57] 1014 (1) - 0% - код ставки НСП [00:07:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:57] 1007 (10) - суммы НСП [00:07:57] 1014 (1) - 1% - код ставки НСП [00:07:57] 1015 (1) - 0.89 - сумма НСП по ставке [00:07:57] 1007 (9) - суммы НСП [00:07:57] 1014 (1) - 2% - код ставки НСП [00:07:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:57] 1007 (9) - суммы НСП [00:07:57] 1014 (1) - 3% - код ставки НСП [00:07:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:57] 1007 (9) - суммы НСП [00:07:57] 1014 (1) - 5% - код ставки НСП [00:07:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:57] 1007 (9) - суммы НСП [00:07:57] 1014 (1) - 0,50% - код ставки НСП [00:07:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:57] 1007 (9) - суммы НСП [00:07:57] 1014 (1) - 1,50% - код ставки НСП [00:07:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:57] 1131 (141) - счетчики операций «расход» [00:07:57] 1135 (4) - 0 - количество чеков по признаку расчетов [00:07:57] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:07:57] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:07:57] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:07:57] 1024 (117) - суммы налогов [00:07:57] 1006 (9) - суммы НДС [00:07:57] 1010 (1) - 0% - код ставки НДС [00:07:57] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:57] 1006 (9) - суммы НДС [00:07:57] 1010 (1) - 12% - код ставки НДС [00:07:57] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:57] 1007 (9) - суммы НСП [00:07:57] 1014 (1) - 0% - код ставки НСП [00:07:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:57] 1007 (9) - суммы НСП [00:07:57] 1014 (1) - 1% - код ставки НСП [00:07:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:57] 1007 (9) - суммы НСП [00:07:57] 1014 (1) - 2% - код ставки НСП [00:07:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:57] 1007 (9) - суммы НСП [00:07:57] 1014 (1) - 3% - код ставки НСП [00:07:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:57] 1007 (9) - суммы НСП [00:07:57] 1014 (1) - 5% - код ставки НСП [00:07:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:57] 1007 (9) - суммы НСП [00:07:57] 1014 (1) - 0,50% - код ставки НСП [00:07:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:57] 1007 (9) - суммы НСП [00:07:57] 1014 (1) - 1,50% - код ставки НСП [00:07:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:57] 1132 (141) - счетчики операций «возврат расхода» [00:07:57] 1135 (4) - 0 - количество чеков по признаку расчетов [00:07:57] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:07:57] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:07:57] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:07:57] 1024 (117) - суммы налогов [00:07:57] 1006 (9) - суммы НДС [00:07:57] 1010 (1) - 0% - код ставки НДС [00:07:57] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:57] 1006 (9) - суммы НДС [00:07:57] 1010 (1) - 12% - код ставки НДС [00:07:57] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:57] 1007 (9) - суммы НСП [00:07:57] 1014 (1) - 0% - код ставки НСП [00:07:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:57] 1007 (9) - суммы НСП [00:07:57] 1014 (1) - 1% - код ставки НСП [00:07:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:57] 1007 (9) - суммы НСП [00:07:57] 1014 (1) - 2% - код ставки НСП [00:07:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:57] 1007 (9) - суммы НСП [00:07:57] 1014 (1) - 3% - код ставки НСП [00:07:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:57] 1007 (9) - суммы НСП [00:07:57] 1014 (1) - 5% - код ставки НСП [00:07:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:57] 1007 (9) - суммы НСП [00:07:57] 1014 (1) - 0,50% - код ставки НСП [00:07:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:57] 1007 (9) - суммы НСП [00:07:57] 1014 (1) - 1,50% - код ставки НСП [00:07:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:57] 1133 (588) - - счетчики коррекции - не используются [00:07:57]1077 (6) - 48892263578196 - ФПД [00:07:57]SetTLVBufToDocument [00:07:57]Processing tag 1209 (04B9) [00:07:57]Malloc new data [00:07:57]Processing tag 1041 (0411) [00:07:57]Processing tag 1040 (0410) [00:07:57]Malloc new data [00:07:57]Processing tag 1038 (040E) [00:07:57]Malloc new data [00:07:57]Processing tag 1118 (045E) [00:07:57]Malloc new data [00:07:57]Processing tag 1111 (0457) [00:07:57]Malloc new data [00:07:57]Processing tag 1194 (04AA) [00:07:57]Load OK [00:07:57]SetTLVBufToDocument [00:07:57]Processing tag 1134 (046E) [00:07:57]Malloc new data [00:07:57]Processing tag 1129 (0469) [00:07:57]Load OK [00:07:57]SetTLVBufToDocument [00:07:57]Processing tag 1135 (046F) [00:07:57]Malloc new data [00:07:57]Processing tag 1201 (04B1) [00:07:57]Malloc new data [00:07:57]Processing tag 1136 (0470) [00:07:57]Malloc new data [00:07:57]Processing tag 1138 (0472) [00:07:57]Malloc new data [00:07:57]Processing tag 1024 (0400) [00:07:57]Load OK [00:07:57]SetTLVBufToDocument [00:07:57]Processing tag 1006 (03EE) [00:07:57]Load OK [00:07:57]SetTLVBufToDocument [00:07:57]Processing tag 1010 (03F2) [00:07:57]Malloc new data [00:07:57]Processing tag 1011 (03F3) [00:07:57]Malloc new data [00:07:57]SetTLVBufToDocument err=0 [00:07:57]Processing tag 1006 (03EE) [00:07:57]Load OK [00:07:57]SetTLVBufToDocument [00:07:57]Processing tag 1010 (03F2) [00:07:57]Malloc new data [00:07:57]Processing tag 1011 (03F3) [00:07:57]Malloc new data [00:07:57]SetTLVBufToDocument err=0 [00:07:57]Processing tag 1007 (03EF) [00:07:57]Load OK [00:07:57]SetTLVBufToDocument [00:07:57]Processing tag 1014 (03F6) [00:07:57]Malloc new data [00:07:57]Processing tag 1015 (03F7) [00:07:57]Malloc new data [00:07:57]SetTLVBufToDocument err=0 [00:07:57]Processing tag 1007 (03EF) [00:07:57]Load OK [00:07:57]SetTLVBufToDocument [00:07:57]Processing tag 1014 (03F6) [00:07:57]Malloc new data [00:07:57]Processing tag 1015 (03F7) [00:07:57]Malloc new data [00:07:57]SetTLVBufToDocument err=0 [00:07:57]Processing tag 1007 (03EF) [00:07:57]Load OK [00:07:57]SetTLVBufToDocument [00:07:57]Processing tag 1014 (03F6) [00:07:57]Malloc new data [00:07:57]Processing tag 1015 (03F7) [00:07:57]Malloc new data [00:07:57]SetTLVBufToDocument err=0 [00:07:57]Processing tag 1007 (03EF) [00:07:57]Load OK [00:07:57]SetTLVBufToDocument [00:07:57]Processing tag 1014 (03F6) [00:07:57]Malloc new data [00:07:57]Processing tag 1015 (03F7) [00:07:57]Malloc new data [00:07:57]SetTLVBufToDocument err=0 [00:07:57]Processing tag 1007 (03EF) [00:07:57]Load OK [00:07:57]SetTLVBufToDocument [00:07:57]Processing tag 1014 (03F6) [00:07:57]Malloc new data [00:07:57]Processing tag 1015 (03F7) [00:07:57]Malloc new data [00:07:57]SetTLVBufToDocument err=0 [00:07:57]Processing tag 1007 (03EF) [00:07:57]Load OK [00:07:57]SetTLVBufToDocument [00:07:57]Processing tag 1014 (03F6) [00:07:57]Malloc new data [00:07:57]Processing tag 1015 (03F7) [00:07:57]Malloc new data [00:07:57]SetTLVBufToDocument err=0 [00:07:57]Processing tag 1007 (03EF) [00:07:57]Load OK [00:07:57]SetTLVBufToDocument [00:07:57]Processing tag 1014 (03F6) [00:07:57]Malloc new data [00:07:57]Processing tag 1015 (03F7) [00:07:57]Malloc new data [00:07:57]SetTLVBufToDocument err=0 [00:07:57]SetTLVBufToDocument err=0 [00:07:57]SetTLVBufToDocument err=0 [00:07:57]Processing tag 1130 (046A) [00:07:57]Load OK [00:07:57]SetTLVBufToDocument [00:07:57]Processing tag 1135 (046F) [00:07:57]Malloc new data [00:07:57]Processing tag 1201 (04B1) [00:07:57]Malloc new data [00:07:57]Processing tag 1136 (0470) [00:07:57]Malloc new data [00:07:57]Processing tag 1138 (0472) [00:07:57]Malloc new data [00:07:57]Processing tag 1024 (0400) [00:07:57]Load OK [00:07:57]SetTLVBufToDocument [00:07:57]Processing tag 1006 (03EE) [00:07:57]Load OK [00:07:57]SetTLVBufToDocument [00:07:57]Processing tag 1010 (03F2) [00:07:57]Malloc new data [00:07:57]Processing tag 1011 (03F3) [00:07:57]Malloc new data [00:07:57]SetTLVBufToDocument err=0 [00:07:57]Processing tag 1006 (03EE) [00:07:57]Load OK [00:07:57]SetTLVBufToDocument [00:07:57]Processing tag 1010 (03F2) [00:07:57]Malloc new data [00:07:57]Processing tag 1011 (03F3) [00:07:57]Malloc new data [00:07:57]SetTLVBufToDocument err=0 [00:07:57]Processing tag 1007 (03EF) [00:07:57]Load OK [00:07:57]SetTLVBufToDocument [00:07:57]Processing tag 1014 (03F6) [00:07:57]Malloc new data [00:07:57]Processing tag 1015 (03F7) [00:07:57]Malloc new data [00:07:57]SetTLVBufToDocument err=0 [00:07:57]Processing tag 1007 (03EF) [00:07:57]Load OK [00:07:57]SetTLVBufToDocument [00:07:57]Processing tag 1014 (03F6) [00:07:57]Malloc new data [00:07:57]Processing tag 1015 (03F7) [00:07:57]Malloc new data [00:07:57]SetTLVBufToDocument err=0 [00:07:57]Processing tag 1007 (03EF) [00:07:57]Load OK [00:07:57]SetTLVBufToDocument [00:07:57]Processing tag 1014 (03F6) [00:07:57]Malloc new data [00:07:57]Processing tag 1015 (03F7) [00:07:57]Malloc new data [00:07:57]SetTLVBufToDocument err=0 [00:07:57]Processing tag 1007 (03EF) [00:07:57]Load OK [00:07:57]SetTLVBufToDocument [00:07:57]Processing tag 1014 (03F6) [00:07:57]Malloc new data [00:07:57]Processing tag 1015 (03F7) [00:07:58]Malloc new data [00:07:58]SetTLVBufToDocument err=0 [00:07:58]Processing tag 1007 (03EF) [00:07:58]Load OK [00:07:58]SetTLVBufToDocument [00:07:58]Processing tag 1014 (03F6) [00:07:58]Malloc new data [00:07:58]Processing tag 1015 (03F7) [00:07:58]Malloc new data [00:07:58]SetTLVBufToDocument err=0 [00:07:58]Processing tag 1007 (03EF) [00:07:58]Load OK [00:07:58]SetTLVBufToDocument [00:07:58]Processing tag 1014 (03F6) [00:07:58]Malloc new data [00:07:58]Processing tag 1015 (03F7) [00:07:58]Malloc new data [00:07:58]SetTLVBufToDocument err=0 [00:07:58]Processing tag 1007 (03EF) [00:07:58]Load OK [00:07:58]SetTLVBufToDocument [00:07:58]Processing tag 1014 (03F6) [00:07:58]Malloc new data [00:07:58]Processing tag 1015 (03F7) [00:07:58]Malloc new data [00:07:58]SetTLVBufToDocument err=0 [00:07:58]SetTLVBufToDocument err=0 [00:07:58]SetTLVBufToDocument err=0 [00:07:58]Processing tag 1131 (046B) [00:07:58]Load OK [00:07:58]SetTLVBufToDocument [00:07:58]Processing tag 1135 (046F) [00:07:58]Malloc new data [00:07:58]Processing tag 1201 (04B1) [00:07:58]Malloc new data [00:07:58]Processing tag 1136 (0470) [00:07:58]Malloc new data [00:07:58]Processing tag 1138 (0472) [00:07:58]Malloc new data [00:07:58]Processing tag 1024 (0400) [00:07:58]Load OK [00:07:58]SetTLVBufToDocument [00:07:58]Processing tag 1006 (03EE) [00:07:58]Load OK [00:07:58]SetTLVBufToDocument [00:07:58]Processing tag 1010 (03F2) [00:07:58]Malloc new data [00:07:58]Processing tag 1011 (03F3) [00:07:58]Malloc new data [00:07:58]SetTLVBufToDocument err=0 [00:07:58]Processing tag 1006 (03EE) [00:07:58]Load OK [00:07:58]SetTLVBufToDocument [00:07:58]Processing tag 1010 (03F2) [00:07:58]Malloc new data [00:07:58]Processing tag 1011 (03F3) [00:07:58]Malloc new data [00:07:58]SetTLVBufToDocument err=0 [00:07:58]Processing tag 1007 (03EF) [00:07:58]Load OK [00:07:58]SetTLVBufToDocument [00:07:58]Processing tag 1014 (03F6) [00:07:58]Malloc new data [00:07:58]Processing tag 1015 (03F7) [00:07:58]Malloc new data [00:07:58]SetTLVBufToDocument err=0 [00:07:58]Processing tag 1007 (03EF) [00:07:58]Load OK [00:07:58]SetTLVBufToDocument [00:07:58]Processing tag 1014 (03F6) [00:07:58]Malloc new data [00:07:58]Processing tag 1015 (03F7) [00:07:58]Malloc new data [00:07:58]SetTLVBufToDocument err=0 [00:07:58]Processing tag 1007 (03EF) [00:07:58]Load OK [00:07:58]SetTLVBufToDocument [00:07:58]Processing tag 1014 (03F6) [00:07:58]Malloc new data [00:07:58]Processing tag 1015 (03F7) [00:07:58]Malloc new data [00:07:58]SetTLVBufToDocument err=0 [00:07:58]Processing tag 1007 (03EF) [00:07:58]Load OK [00:07:58]SetTLVBufToDocument [00:07:58]Processing tag 1014 (03F6) [00:07:58]Malloc new data [00:07:58]Processing tag 1015 (03F7) [00:07:58]Malloc new data [00:07:58]SetTLVBufToDocument err=0 [00:07:58]Processing tag 1007 (03EF) [00:07:58]Load OK [00:07:58]SetTLVBufToDocument [00:07:58]Processing tag 1014 (03F6) [00:07:58]Malloc new data [00:07:58]Processing tag 1015 (03F7) [00:07:58]Malloc new data [00:07:58]SetTLVBufToDocument err=0 [00:07:58]Processing tag 1007 (03EF) [00:07:58]Load OK [00:07:58]SetTLVBufToDocument [00:07:58]Processing tag 1014 (03F6) [00:07:58]Malloc new data [00:07:58]Processing tag 1015 (03F7) [00:07:58]Malloc new data [00:07:58]SetTLVBufToDocument err=0 [00:07:58]Processing tag 1007 (03EF) [00:07:58]Load OK [00:07:58]SetTLVBufToDocument [00:07:58]Processing tag 1014 (03F6) [00:07:58]Malloc new data [00:07:58]Processing tag 1015 (03F7) [00:07:58]Malloc new data [00:07:58]SetTLVBufToDocument err=0 [00:07:58]SetTLVBufToDocument err=0 [00:07:58]SetTLVBufToDocument err=0 [00:07:58]Processing tag 1132 (046C) [00:07:58]Load OK [00:07:58]SetTLVBufToDocument [00:07:58]Processing tag 1135 (046F) [00:07:58]Malloc new data [00:07:58]Processing tag 1201 (04B1) [00:07:58]Malloc new data [00:07:58]Processing tag 1136 (0470) [00:07:58]Malloc new data [00:07:58]Processing tag 1138 (0472) [00:07:58]Malloc new data [00:07:58]Processing tag 1024 (0400) [00:07:58]Load OK [00:07:58]SetTLVBufToDocument [00:07:58]Processing tag 1006 (03EE) [00:07:58]Load OK [00:07:58]SetTLVBufToDocument [00:07:58]Processing tag 1010 (03F2) [00:07:58]Malloc new data [00:07:58]Processing tag 1011 (03F3) [00:07:58]Malloc new data [00:07:58]SetTLVBufToDocument err=0 [00:07:58]Processing tag 1006 (03EE) [00:07:58]Load OK [00:07:58]SetTLVBufToDocument [00:07:58]Processing tag 1010 (03F2) [00:07:58]Malloc new data [00:07:58]Processing tag 1011 (03F3) [00:07:58]Malloc new data [00:07:58]SetTLVBufToDocument err=0 [00:07:58]Processing tag 1007 (03EF) [00:07:58]Load OK [00:07:58]SetTLVBufToDocument [00:07:58]Processing tag 1014 (03F6) [00:07:58]Malloc new data [00:07:58]Processing tag 1015 (03F7) [00:07:58]Malloc new data [00:07:58]SetTLVBufToDocument err=0 [00:07:58]Processing tag 1007 (03EF) [00:07:58]Load OK [00:07:58]SetTLVBufToDocument [00:07:58]Processing tag 1014 (03F6) [00:07:58]Malloc new data [00:07:58]Processing tag 1015 (03F7) [00:07:58]Malloc new data [00:07:58]SetTLVBufToDocument err=0 [00:07:58]Processing tag 1007 (03EF) [00:07:58]Load OK [00:07:58]SetTLVBufToDocument [00:07:58]Processing tag 1014 (03F6) [00:07:58]Malloc new data [00:07:58]Processing tag 1015 (03F7) [00:07:58]Malloc new data [00:07:58]SetTLVBufToDocument err=0 [00:07:58]Processing tag 1007 (03EF) [00:07:58]Load OK [00:07:58]SetTLVBufToDocument [00:07:58]Processing tag 1014 (03F6) [00:07:58]Malloc new data [00:07:58]Processing tag 1015 (03F7) [00:07:58]Malloc new data [00:07:58]SetTLVBufToDocument err=0 [00:07:58]Processing tag 1007 (03EF) [00:07:58]Load OK [00:07:58]SetTLVBufToDocument [00:07:58]Processing tag 1014 (03F6) [00:07:58]Malloc new data [00:07:58]Processing tag 1015 (03F7) [00:07:58]Malloc new data [00:07:58]SetTLVBufToDocument err=0 [00:07:58]Processing tag 1007 (03EF) [00:07:58]Load OK [00:07:58]SetTLVBufToDocument [00:07:58]Processing tag 1014 (03F6) [00:07:58]Malloc new data [00:07:58]Processing tag 1015 (03F7) [00:07:58]Malloc new data [00:07:58]SetTLVBufToDocument err=0 [00:07:58]Processing tag 1007 (03EF) [00:07:58]Load OK [00:07:58]SetTLVBufToDocument [00:07:58]Processing tag 1014 (03F6) [00:07:58]Malloc new data [00:07:58]Processing tag 1015 (03F7) [00:07:58]Malloc new data [00:07:58]SetTLVBufToDocument err=0 [00:07:58]SetTLVBufToDocument err=0 [00:07:58]SetTLVBufToDocument err=0 [00:07:58]Processing tag 1133 (046D) [00:07:58]Malloc new data [00:07:58]SetTLVBufToDocument err=0 [00:07:58]Processing tag 1077 (0435) [00:07:58]Malloc new data [00:07:58]SetTLVBufToDocument err=0 [00:07:58]Malloc new data [00:07:58]SAM_PROTO_GetFMData [00:07:58]wFMCommunicate request_size=4 [00:07:58]MH_SAM_APDU [00:07:58]CAPDU: 80 13 03 00 [00:07:58]Write to MH i2c: E2 08 00 CF 20 80 13 03 00 00 00 00 00 6E [00:07:58]Write i2c OK [00:07:58]MH_I2C_Read... [00:07:58]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:07:58]Read from MH i2c: E2 [00:07:58]MH_I2C_Read... [00:07:58]Read from MH i2c: E2 FD 00 [00:07:58]MH_I2C_Read... [00:07:58]Read from MH i2c: E2 FD 00 CF 20 00 C5 04 85 04 C1 04 6E 04 04 00 67 75 03 00 69 04 A3 00 6F 04 04 00 77 6E 03 00 B1 04 05 00 82 A3 B5 C5 04 70 04 05 00 8C 28 2D 4C 04 72 04 04 00 F6 7A 88 79 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 80 F2 C7 81 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 2D 7D D0 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 F0 06 00 00 B1 04 04 00 D8 C0 CF 1E 70 04 04 00 D8 C0 CF 1E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A5 B8 45 03 EF 03 09 90 00 81 [00:07:59]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 67 75 03 00 69 04 A3 00 6F 04 04 00 77 6E 03 00 B1 04 05 00 82 A3 B5 C5 04 70 04 05 00 8C 28 2D 4C 04 72 04 04 00 F6 7A 88 79 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 80 F2 C7 81 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 2D 7D D0 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 F0 06 00 00 B1 04 04 00 D8 C0 CF 1E 70 04 04 00 D8 C0 CF 1E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A5 B8 45 03 EF 03 09 90 00 [00:07:59]wFMCommunicate OK [00:07:59]wFMCommunicate request_size=4 [00:07:59]MH_SAM_APDU [00:07:59]CAPDU: 80 17 00 00 [00:07:59]Write to MH i2c: E2 08 00 D0 20 80 17 00 00 00 00 00 00 70 [00:07:59]Write i2c OK [00:07:59]MH_I2C_Read... [00:07:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:59]Read from MH i2c: E2 [00:07:59]MH_I2C_Read... [00:07:59]Read from MH i2c: E2 FD 00 [00:07:59]MH_I2C_Read... [00:07:59]Read from MH i2c: E2 FD 00 D0 20 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 CE 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 20 [00:07:59]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 CE 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:07:59]wFMCommunicate OK [00:07:59]wFMCommunicate request_size=4 [00:07:59]MH_SAM_APDU [00:07:59]CAPDU: 80 17 00 00 [00:07:59]Write to MH i2c: E2 08 00 D1 20 80 17 00 00 00 00 00 00 71 [00:07:59]Write i2c OK [00:07:59]MH_I2C_Read... [00:08:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:00]Read from MH i2c: E2 [00:08:00]MH_I2C_Read... [00:08:00]Read from MH i2c: E2 FD 00 [00:08:00]MH_I2C_Read... [00:08:00]Read from MH i2c: E2 FD 00 D1 20 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 83 [00:08:00]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:08:00]wFMCommunicate OK [00:08:00]wFMCommunicate request_size=4 [00:08:00]MH_SAM_APDU [00:08:00]CAPDU: 80 17 00 00 [00:08:00]Write to MH i2c: E2 08 00 D2 20 80 17 00 00 00 00 00 00 72 [00:08:00]Write i2c OK [00:08:00]MH_I2C_Read... [00:08:00]OFD Sender: No OFD packet to send [00:08:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:00]Read from MH i2c: E2 [00:08:00]MH_I2C_Read... [00:08:00]Read from MH i2c: E2 FD 00 [00:08:00]MH_I2C_Read... [00:08:00]Read from MH i2c: E2 FD 00 D2 20 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 FE [00:08:00]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:08:01]wFMCommunicate OK [00:08:01]wFMCommunicate request_size=4 [00:08:01]MH_SAM_APDU [00:08:01]CAPDU: 80 17 00 00 [00:08:01]Write to MH i2c: E2 08 00 D3 20 80 17 00 00 00 00 00 00 73 [00:08:01]Write i2c OK [00:08:01]MH_I2C_Read... [00:08:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:08:01]Read from MH i2c: E2 [00:08:01]MH_I2C_Read... [00:08:01]Read from MH i2c: E2 E2 00 [00:08:01]MH_I2C_Read... [00:08:01]Read from MH i2c: E2 E2 00 D3 20 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 51 [00:08:01]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:08:01]wFMCommunicate OK [00:08:01]SAM_PROTO_GetFMData done [00:08:01]Malloc new data [00:08:01]Malloc new data [00:08:01]Malloc new data [00:08:01]Malloc new data [00:08:01]KKMLoadAndSignCloseShiftData err=0 [00:08:01]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Ормонова Д. 21.10.2024 00:07 Смена: 533 РНМ: 0000000000091685 ЗНМ: 0300000091 СНО: Общий режим Чеков за смену: 577 ФД за смену: 579 Всего чеков: 577 ИТОГИ ПРИХОД Чеков: 576 Общий итог: 629211.96 Итого наличными: 545607.00 Итого безнал.: 83604.96 НДС 0% : 0.00 НДС 12% : 66835.05 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 5569.41 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 1 Общий итог: 100.00 Итого наличными: 100.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 10.68 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.89 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 545507.00 НС Приход: 204968846.10 НС Возвр.Прихода: 5169318.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 227730 ФМ: 0000000000871839 ФПД: 48892263578196 [00:08:01]StoreToDocumentArchive [00:08:01]shift 533 fd 227730 [00:08:01]save to /storage/0533/doc_00227730 [00:08:01]save last doc name /storage/0533/doc_00227730 to /storage/kkm_last_doc_name [00:08:01]save OK [00:08:01]Clear old archive folders... [00:08:01]Remove dir /storage/0522 [00:08:01]opendir ok [00:08:01]file . [00:08:01]file .. [00:08:01]file doc_1729469237 [00:08:01]remove file /storage/0522/doc_1729469237 [00:08:01]remove dir /storage/0522 [00:08:01]NVStorageSaveData kkm_registers [00:08:01]File name is /storage/kkm_registers [00:08:01]Write 24 bytes [00:08:01]NVStorageSaveData done [00:08:01]NVStorageSaveData kkm_registers [00:08:01]File name is /storage/kkm_registers [00:08:01]Write 24 bytes [00:08:01]NVStorageSaveData done [00:08:01]ProcessDocumentItem done err = 0, tmpTLVsize=1385 [00:08:01]tlvbuf is 00D3D120 [00:08:01]SAM_PROTO_ClearQueue [00:08:01]wFMCommunicate request_size=4 [00:08:01]MH_SAM_APDU [00:08:01]CAPDU: 80 09 00 00 [00:08:01]Write to MH i2c: E2 08 00 D4 20 80 09 00 00 00 00 00 00 66 [00:08:01]Write i2c OK [00:08:01]MH_I2C_Read... [00:08:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:08:01]Read from MH i2c: E2 [00:08:01]MH_I2C_Read... [00:08:01]Read from MH i2c: E2 03 00 [00:08:01]MH_I2C_Read... [00:08:01]Read from MH i2c: E2 03 00 D4 20 00 90 00 68 [00:08:01]RAPDU: 90 00 [00:08:01]wFMCommunicate OK [00:08:01]SAM_PROTO_ClearQueue done [00:08:01]KKMCreateOFDPacket [00:08:01]OFDProtocolAddRootSTLVToBuf [00:08:01]FM_MakeSignedData [00:08:01]FM_MakeSignedData [00:08:01]SAM_PROTO_SignData [00:08:01]wFMCommunicate request_size=4 [00:08:01]MH_SAM_APDU [00:08:01]CAPDU: 80 0D 01 02 [00:08:01]Write to MH i2c: E2 08 00 D5 20 80 0D 01 02 00 00 00 00 6E [00:08:01]Write i2c OK [00:08:01]MH_I2C_Read... [00:08:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:08:01]Read from MH i2c: E2 [00:08:01]MH_I2C_Read... [00:08:01]Read from MH i2c: E2 03 00 [00:08:02]MH_I2C_Read... [00:08:02]Read from MH i2c: E2 03 00 D5 20 00 90 00 69 [00:08:02]RAPDU: 90 00 [00:08:02]wFMCommunicate OK [00:08:02]wFMCommunicate request_size=255 [00:08:02]MH_SAM_APDU [00:08:02]CAPDU: 80 0D 02 02 FA 05 00 69 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 9E D1 80 D0 BC D0 BE D0 BD D0 BE D0 B2 D0 B0 20 D0 94 2E 20 F4 03 04 00 5B 9B 15 67 0E 04 04 00 15 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 5E 04 04 00 41 02 00 00 57 04 04 00 43 02 00 00 AA 04 DB 04 6E 04 04 00 41 02 00 00 69 04 A5 00 6F 04 04 00 40 02 00 00 B1 04 04 00 EC 19 C0 03 70 04 04 00 BC 87 40 03 72 04 03 00 30 92 7F 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 71 FB 65 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 [00:08:02]Write to MH i2c: E2 02 01 D6 20 80 0D 02 02 FA 00 05 00 69 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 9E D1 80 D0 BC D0 BE D0 BD D0 BE D0 B2 D0 B0 20 D0 94 2E 20 F4 03 04 00 5B 9B 15 67 0E 04 04 00 15 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 5E 04 04 00 41 02 00 00 57 04 04 00 43 02 00 00 AA 04 DB 04 6E 04 04 00 41 02 00 00 69 04 A5 00 6F 04 04 00 40 02 00 00 B1 04 04 00 EC 19 C0 03 70 04 04 00 BC 87 40 03 72 04 03 00 30 92 7F 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 71 FB 65 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 00 00 AC [00:08:02]Write i2c OK [00:08:02]MH_I2C_Read... [00:08:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:08:02]Read from MH i2c: E2 [00:08:02]MH_I2C_Read... [00:08:02]Read from MH i2c: E2 03 00 [00:08:02]MH_I2C_Read... [00:08:02]Read from MH i2c: E2 03 00 D6 20 00 90 00 6A [00:08:02]RAPDU: 90 00 [00:08:02]wFMCommunicate OK [00:08:02]wFMCommunicate request_size=255 [00:08:02]MH_SAM_APDU [00:08:02]CAPDU: 80 0D 02 02 FA F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8D 7F 08 6A 04 9C 00 6F 04 04 00 01 00 00 00 B1 04 02 00 10 27 70 04 02 00 10 27 72 04 01 00 00 00 04 7F 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 2C 04 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 59 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 [00:08:02]Write to MH i2c: E2 02 01 D7 20 80 0D 02 02 FA 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8D 7F 08 6A 04 9C 00 6F 04 04 00 01 00 00 00 B1 04 02 00 10 27 70 04 02 00 10 27 72 04 01 00 00 00 04 7F 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 2C 04 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 59 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 00 00 ED [00:08:03]Write i2c OK [00:08:03]MH_I2C_Read... [00:08:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:08:03]Read from MH i2c: E2 [00:08:03]MH_I2C_Read... [00:08:03]Read from MH i2c: E2 03 00 [00:08:03]MH_I2C_Read... [00:08:03]Read from MH i2c: E2 03 00 D7 20 00 90 00 6B [00:08:03]RAPDU: 90 00 [00:08:03]wFMCommunicate OK [00:08:03]wFMCommunicate request_size=255 [00:08:03]MH_SAM_APDU [00:08:03]CAPDU: 80 0D 02 02 FA 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 [00:08:03]Write to MH i2c: E2 02 01 D8 20 80 0D 02 02 FA 00 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 00 00 38 [00:08:03]Write i2c OK [00:08:03]MH_I2C_Read... [00:08:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:08:04]Read from MH i2c: E2 [00:08:04]MH_I2C_Read... [00:08:04]Read from MH i2c: E2 03 00 [00:08:04]MH_I2C_Read... [00:08:04]Read from MH i2c: E2 03 00 D8 20 00 90 00 6C [00:08:04]RAPDU: 90 00 [00:08:04]wFMCommunicate OK [00:08:04]wFMCommunicate request_size=255 [00:08:04]MH_SAM_APDU [00:08:04]CAPDU: 80 0D 02 02 FA 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 [00:08:04]Write to MH i2c: E2 02 01 D9 20 80 0D 02 02 FA 00 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 00 00 42 [00:08:04]Write i2c OK [00:08:04]MH_I2C_Read... [00:08:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:08:04]Read from MH i2c: E2 [00:08:04]MH_I2C_Read... [00:08:04]Read from MH i2c: E2 03 00 [00:08:04]MH_I2C_Read... [00:08:04]Read from MH i2c: E2 03 00 D9 20 00 90 00 6D [00:08:04]RAPDU: 90 00 [00:08:04]wFMCommunicate OK [00:08:04]wFMCommunicate request_size=255 [00:08:04]MH_SAM_APDU [00:08:04]CAPDU: 80 0D 02 02 FA F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 [00:08:05]Write to MH i2c: E2 02 01 DA 20 80 0D 02 02 FA 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 00 03 [00:08:05]Write i2c OK [00:08:05]MH_I2C_Read... [00:08:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:08:05]Read from MH i2c: E2 [00:08:05]MH_I2C_Read... [00:08:05]Read from MH i2c: E2 03 00 [00:08:05]MH_I2C_Read... [00:08:05]Read from MH i2c: E2 03 00 DA 20 00 90 00 6E [00:08:05]RAPDU: 90 00 [00:08:05]wFMCommunicate OK [00:08:05]wFMCommunicate request_size=144 [00:08:05]MH_SAM_APDU [00:08:05]CAPDU: 80 0D 02 02 8B 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 92 79 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 35 04 06 00 2C 77 9E 00 BA 54 [00:08:05]Write to MH i2c: E2 93 00 DB 20 80 0D 02 02 8B 00 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 92 79 03 00 11 04 10 00 30 30 30 30 OFD Sender: No OFD packet to send [00:08:05]30 30 30 30 30 30 38 37 31 38 33 39 35 04 06 00 2C 77 9E 00 BA 54 00 00 13 [00:08:05]Write i2c OK [00:08:05]MH_I2C_Read... [00:08:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:08:06]Read from MH i2c: E2 [00:08:06]MH_I2C_Read... [00:08:06]Read from MH i2c: E2 03 00 [00:08:06]MH_I2C_Read... [00:08:06]Read from MH i2c: E2 03 00 DB 20 00 90 00 6F [00:08:06]RAPDU: 90 00 [00:08:06]wFMCommunicate OK [00:08:06]wFMCommunicate request_size=4 [00:08:06]MH_SAM_APDU [00:08:06]CAPDU: 80 0D 03 02 [00:08:06]Write to MH i2c: E2 08 00 DC 20 80 0D 03 02 00 00 00 00 77 [00:08:06]Write i2c OK [00:08:06]MH_I2C_Read... [00:08:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:08:06]Read from MH i2c: E2 [00:08:06]MH_I2C_Read... [00:08:06]Read from MH i2c: E2 0B 00 [00:08:06]MH_I2C_Read... [00:08:06]Read from MH i2c: E2 0B 00 DC 20 00 DC FC 9E 3F 4F 6E 50 6B 90 00 A5 [00:08:06]RAPDU: DC FC 9E 3F 4F 6E 50 6B 90 00 [00:08:06]wFMCommunicate OK [00:08:06]SAM_PROTO_SignData done [00:08:06]FM_MakeSignedData done [00:08:06]CreateOFDProtocolMessage [00:08:06]wFMCommunicate request_size=4 [00:08:06]MH_SAM_APDU [00:08:06]CAPDU: 80 11 00 00 [00:08:06]Write to MH i2c: E2 08 00 DD 20 80 11 00 00 00 00 00 00 77 [00:08:06]Write i2c OK [00:08:06]MH_I2C_Read... [00:08:06]Read from MH i2c: E2 [00:08:06]MH_I2C_Read... [00:08:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:08:06]Read from MH i2c: E2 17 00 [00:08:06]MH_I2C_Read... [00:08:06]Read from MH i2c: E2 17 00 DD 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 CE [00:08:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [00:08:06]wFMCommunicate OK [00:08:06]CreateOFDProtocolMessage done [00:08:06]OFDSenderStorePacket 227730 [00:08:06]StoreOFDPacket docnum=227730 [00:08:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 7D 05 00 00 0E E7 75 05 23 DB 5A 05 01 00 05 00 69 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 9E D1 80 D0 BC D0 BE D0 BD D0 BE D0 B2 D0 B0 20 D0 94 2E 20 F4 03 04 00 5B 9B 15 67 0E 04 04 00 15 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 5E 04 04 00 41 02 00 00 57 04 04 00 43 02 00 00 AA 04 DB 04 6E 04 04 00 41 02 00 00 69 04 A5 00 6F 04 04 00 40 02 00 00 B1 04 04 00 EC 19 C0 03 70 04 04 00 BC 87 40 03 72 04 03 00 30 92 7F 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 71 FB 65 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8D 7F 08 6A 04 9C 00 6F 04 04 00 01 00 00 00 B1 04 02 00 10 27 70 04 02 00 10 27 72 04 01 00 00 00 04 7F 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 2C 04 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 59 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 92 79 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 35 04 06 00 2C 77 9E 00 BA 54 DC FC 9E 3F 4F 6E 50 6B [00:08:06]CheckFolder [00:08:06]dirname=/storage/ofd_packets [00:08:06]CheckFolder done [00:08:06]ProducePacketName [00:08:06]name=ofd_packets/00227730 [00:08:06]NVStorageSaveData ofd_packets/00227730 [00:08:06]File name is /storage/ofd_packets/00227730 [00:08:06]Write 1435 bytes [00:08:06]NVStorageSaveData done [00:08:06]OFDSenderStorePacket done [00:08:06]KKMCreateOFDPacket done [00:08:06]NVStorageSaveData kkm_last_timestamp [00:08:06]File name is /storage/kkm_last_timestamp [00:08:06]Write 4 bytes [00:08:06]NVStorageSaveData done [00:08:06]ExternCall_PrintAddStr [00:08:06]wPrintStart [00:08:06]Write to MH i2c: 01 00 00 DE 20 FE [00:08:06]Write i2c OK [00:08:06]MH_I2C_Read... [00:08:06]Read from MH i2c: 01 [00:08:06]MH_I2C_Read... [00:08:06]Read from MH i2c: 01 07 00 [00:08:06]MH_I2C_Read... [00:08:06]OFD Sender: Processing packet 227730 [packets to send 38, broken 37] [00:08:06]ProducePacketName [00:08:06]name=ofd_packets/00227730 [00:08:06]OFD Sender: To server: pG, [00:08:06]CommunicateWithHost lk.salyk.kg:30040 [00:08:06]ConnectInit lk.salyk.kg [00:08:06]Read from MH i2c: 01 07 00 DE 20 00 00 00 00 00 FF 0F 13 [00:08:06]RasterBufferAndPrint [00:08:06]line Отчет о закрытии смены [00:08:06]line ФФД: 1.0 [00:08:06]line ИНН: 02508201610067 [00:08:06]line Кассир: Ормонова Д. [00:08:06]line 21.10.2024 00:07 [00:08:06]line Смена: 533 [00:08:06]line РНМ: 0000000000091685 [00:08:06]line ЗНМ: 0300000091 [00:08:06]line СНО: Общий режим [00:08:06]line Чеков за смену: 577 [00:08:06]line ФД за смену: 579 [00:08:06]line Всего чеков: 577 [00:08:06]line ИТОГИ ПРИХОД [00:08:06]line Чеков: 576 [00:08:06]line Общий итог: 629211.96 [00:08:06]line Итого наличными: 545607.00 [00:08:06]line Итого безнал.: 83604.96 [00:08:06]line НДС 0% : 0.00 [00:08:06]line НДС 12% : 66835.05 [00:08:06]line НСП 0% : 0.00 [00:08:06]line НСП 1,50% : 0.00 [00:08:06]line НСП 0,50% : 0.00 [00:08:06]line НСП 5% : 0.00 [00:08:06]line НСП 3% : 0.00 [00:08:06]line НСП 2% : 0.00 [00:08:06]line НСП 1% : 5569.41 [00:08:06]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:08:06]line Чеков: 1 [00:08:06]line Общий итог: 100.00 [00:08:06]line Итого наличными: 100.00 [00:08:06]line Итого безнал.: 0.00 [00:08:06]line НДС 0% : 0.00 [00:08:06]line НДС 12% : 10.68 [00:08:06]line НСП 0% : 0.00 [00:08:06]line НСП 1,50% : 0.00 [00:08:06]line НСП 0,50% : 0.00 [00:08:06]line НСП 5% : 0.00 [00:08:06]line НСП 3% : 0.00 [00:08:06]line НСП 2% : 0.00 [00:08:06]line НСП 1% : 0.89 [00:08:06]line ИТОГИ РАСХОД [00:08:06]line Чеков: 0 [00:08:06]line Общий итог: 0.00 [00:08:06]line Итого наличными: 0.00 [00:08:06]line Итого безнал.: 0.00 [00:08:06]line НДС 0% : 0.00 [00:08:06]line НДС 12% : 0.00 [00:08:06]line НСП 0% : 0.00 [00:08:06]line НСП 1,50% : 0.00 [00:08:06]line НСП 0,50% : 0.00 [00:08:06]line НСП 5% : 0.00 [00:08:06]line НСП 3% : 0.00 [00:08:06]line НСП 2% : 0.00 [00:08:06]line НСП 1% : 0.00 [00:08:06]line ИТОГИ ВОЗВРАТ РАСХОДА [00:08:06]line Чеков: 0 [00:08:06]line Общий итог: 0.00 [00:08:06]line Итого наличными: 0.00 [00:08:06]line Итого безнал.: 0.00 [00:08:06]line НДС 0% : 0.00 [00:08:06]line НДС 12% : 0.00 [00:08:06]line НСП 0% : 0.00 [00:08:06]line НСП 1,50% : 0.00 [00:08:06]line НСП 0,50% : 0.00 [00:08:06]line НСП 5% : 0.00 [00:08:06]line НСП 3% : 0.00 [00:08:06]line НСП 2% : 0.00 [00:08:06]line НСП 1% : 0.00 [00:08:06]line Сумма внесений: 0.00 [00:08:06]line Сумма выплат: 0.00 [00:08:06]line Нал. в кассе: 545507.00 [00:08:06]line НС Приход: 204968846.10 [00:08:06]line НС Возвр.Прихода: 5169318.00 [00:08:06]line НС Расход: 0.00 [00:08:06]line НС Возвр.Расхода: 0.00 [00:08:06]line ФД: 227730 [00:08:06]line ФМ: 0000000000871839 [00:08:06]line ФПД: 48892263578196 [00:08:06]Connected sock=10 [00:08: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 33 39 7D 05 00 00 0E E7 75 05 23 DB 5A 05 01 00 05 00 69 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 9E D1 80 D0 BC D0 BE D0 BD D0 BE D0 B2 D0 B0 20 D0 94 2E 20 F4 03 04 00 5B 9B 15 67 0E 04 04 00 15 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 5E 04 04 00 41 02 00 00 57 04 04 00 43 02 00 00 AA 04 DB 04 6E 04 04 00 41 02 00 00 69 04 A5 00 6F 04 04 00 40 02 00 00 B1 04 04 00 EC 19 C0 03 70 04 04 00 BC 87 40 03 72 04 03 00 30 92 7F 00 written 0, free lines is 4095 [00:08:07]04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 71 FB 65 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8D 7F 08 6A 04 9C 00 6F 04 04 00 01 00 00 00 B1 04 02 00 10 27 70 04 02 00 10 27 72 04 01 00 00 00 04 7F 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 2C 04 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 59 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF Write to MH i2c: 03 01 09 00 00 00 F6 2E 03 21 01 4F 00 [00:08:07]01 Write i2c OK [00:08:07]F7 MH_I2C_Read... [00:08:07]03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 Read from MH i2c: 00 01 00 [00:08:07]EF MH_I2C_Read... [00:08:07]03 Read from MH i2c: 09 01 00 07 F6 00 03 [00:08:07]01 MH_I2C_Read... [00:08:07]00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 Read from MH i2c: F7 01 03 07 00 00 00 2E EF 21 00 03 00 09 00 00 00 F6 00 03 F5 01 09 00 54 05 [00:08:08]F7 RasterBufferAndPrint [00:08:08]03 line [00:08:08]00 line [00:08:08]00 line [00:08:08]EF line [00:08:08]03 line [00:08:08]09 00 written 0, free lines is 2671 [00:08:08]F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 MH_Cut [00:08:08]04 Write to MH i2c: 00 D1 00 01 00 00 00 35 00 B1 04 00 00 70 04 00 00 72 04 00 00 21 00 01 04 28 75 [00:08:08]00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 Write i2c OK [00:08:08]00 MH_I2C_Read... [00:08:08]F2 Read from MH i2c: 03 D1 01 [00:08:08]00 MH_I2C_Read... [00:08:08]01 Read from MH i2c: F3 D1 03 01 00 00 00 [00:08:08]EF 03 09 00 F6 03 01 00 00 F7 03 00 00 MH_I2C_Read... [00:08:08]EF Read from MH i2c: 03 D1 09 01 00 00 F6 35 03 01 00 01 F7 03 00 00 EF 03 09 00 21 F6 00 03 27 01 [00:08:08]00 Write to MH i2c: 02 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 00 03 00 F7 36 03 21 00 57 00 [00:08:08]EF 03 09 00 F6 03 01 00 04 F7 03 00 00 Write i2c OK [00:08:08]EF MH_I2C_Read... [00:08:08]03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 92 79 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 35 04 06 00 2C 77 9E 00 BA 54 DC FC 9E 3F 4F 6E 50 6B [00:08: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 33 39 4F 00 00 00 53 18 47 00 59 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 92 79 03 00 F4 03 04 00 65 46 15 67 B6 04 01 00 00 6C 8F A3 14 3F 88 19 C5 [00:08:08]CommunicateWithHost err = 0 [00:08:08]CheckOFDResponse [00:08:08]1017 (14) - 77093643461234 [00:08:08]1041 (16) - 0000000000871839 [00:08:08]1040 (4) - 227730 [00:08:08]1012 (4) - 20.10.2024 18:05 [00:08:08]1206 (1) - 0 [00:08:08]OFD Sender: Remove packet 227730 [00:08:08]ProducePacketName [00:08:08]name=ofd_packets/00227730 [00:08:08]NVStorageDeleteData [00:08:09]OFD Sender: No OFD packet to send [00:08:09]*** Cut start [00:08:09]*** Partial cut [00:08:09]*** CUTSNS_PIN = 1 [00:08:09]*** CUTSNS_PIN = 0 [00:08:09]*** Brake cut motor [00:08:09]Read from MH i2c: 01 [00:08:09]MH_I2C_Read... [00:08:09]*** Stop cut motor [00:08:09]*** Cut end [00:08:09]Read from MH i2c: 01 07 00 [00:08:09]MH_I2C_Read... [00:08:09]Read from MH i2c: 01 07 00 36 21 00 00 00 00 00 FF 0F 6C [00:08:09]process_action close_shift done [00:08:09]requested_data is exist [00:08:09]produce_requested_data [00:08:10]requested_item fd.num is exist - process it [00:08:10]SAM_PROTO_GetFieldsCounters [00:08:10]wFMCommunicate request_size=4 [00:08:10]MH_SAM_APDU [00:08:10]CAPDU: 80 13 00 00 [00:08:10]Write to MH i2c: E2 08 00 37 21 80 13 00 00 00 00 00 00 D4 [00:08:10]Write i2c OK [00:08:10]MH_I2C_Read... [00:08:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:08:10]Read from MH i2c: E2 [00:08:10]MH_I2C_Read... [00:08:10]Read from MH i2c: E2 62 00 [00:08:10]MH_I2C_Read... [00:08:10]Read from MH i2c: E2 62 00 37 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 92 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 41 02 00 00 5E 04 04 00 41 02 00 00 57 04 04 00 43 02 00 00 19 04 04 00 00 00 00 00 90 00 EC [00:08: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 92 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 41 02 00 00 5E 04 04 00 41 02 00 00 57 04 04 00 43 02 00 00 19 04 04 00 00 00 00 00 90 00 [00:08:10]wFMCommunicate OK [00:08:10]SAM_PROTO_GetFieldsCounters done [00:08:10]requested_item shift.num is exist - process it [00:08:10]requested_item shift.opened is exist - process it [00:08:10]req_shift_opened [00:08:10]FM_GetShiftState [00:08:10]SAM_PROTO_GetShiftState [00:08:10]wFMCommunicate request_size=4 [00:08:10]MH_SAM_APDU [00:08:10]CAPDU: 80 13 01 00 [00:08:10]Write to MH i2c: E2 08 00 38 21 80 13 01 00 00 00 00 00 D6 [00:08:10]Write i2c OK [00:08:10]MH_I2C_Read... [00:08:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:08:10]Read from MH i2c: E2 [00:08:10]MH_I2C_Read... [00:08:10]Read from MH i2c: E2 0E 00 [00:08:10]MH_I2C_Read... [00:08:10]Read from MH i2c: E2 0E 00 38 21 00 09 00 00 00 00 00 00 00 00 00 00 90 00 E1 [00:08:10]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:08:10]wFMCommunicate OK [00:08:10]SAM_PROTO_GetShiftState done [00:08:10]FM_GetShiftState done [00:08:10]req_shift_opened done [00:08:10]requested_item shift.open_date is exist - process it [00:08:10]req_shift_open_date [00:08:10]FM_GetShiftState [00:08:10]SAM_PROTO_GetShiftState [00:08:10]wFMCommunicate request_size=4 [00:08:10]MH_SAM_APDU [00:08:10]CAPDU: 80 13 01 00 [00:08:10]Write to MH i2c: E2 08 00 39 21 80 13 01 00 00 00 00 00 D7 [00:08:10]Write i2c OK [00:08:10]MH_I2C_Read... [00:08:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:08:10]Read from MH i2c: E2 [00:08:10]MH_I2C_Read... [00:08:10]Read from MH i2c: E2 0E 00 [00:08:10]MH_I2C_Read... [00:08:10]Read from MH i2c: E2 0E 00 39 21 00 09 00 00 00 00 00 00 00 00 00 00 90 00 E2 [00:08:10]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:08:10]wFMCommunicate OK [00:08:10]SAM_PROTO_GetShiftState done [00:08:10]FM_GetShiftState done [00:08:10]req_shift_open_date done [00:08:10]produce_requested_data done [00:08:10]produce_requested_data return {"fd.num":227730,"shift.num":533,"shift.opened":0,"shift.open_date":0} [00:08:10]process_action_free close_shift [00:08:10]json_value_free [00:08:10]json_value_free done [00:08:10]process_json_proto returns [00:08:10]Send response to host [00:08:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":227730,"shift.num":533,"shift.opened":0,"shift.open_date":0}}} [00:08:10]free response buf [00:08:10]execute_script done [00:08:10]execute_script returns [00:08:10]free content buf [00:08:10]Sock 7.Close socket [00:08:10]Sock 7.Thread stoped [00:08:14]OFD Sender: No OFD packet to send [00:08:19]OFD Sender: No OFD packet to send [00:08:24]OFD Sender: No OFD packet to send [00:08:29]OFD Sender: No OFD packet to send [00:08:34]OFD Sender: No OFD packet to send [00:08:39]OFD Sender: No OFD packet to send [00:08:44]OFD Sender: No OFD packet to send [00:08:49]OFD Sender: No OFD packet to send [00:08:54]OFD Sender: No OFD packet to send [00:08:59]OFD Sender: No OFD packet to send [00:09:04]OFD Sender: No OFD packet to send [00:09:09]OFD Sender: No OFD packet to send [00:09:14]OFD Sender: No OFD packet to send [00:09:19]OFD Sender: No OFD packet to send [00:09:24]OFD Sender: No OFD packet to send [00:09:29]OFD Sender: No OFD packet to send [00:09:34]OFD Sender: No OFD packet to send [00:09:39]OFD Sender: No OFD packet to send [00:09:44]OFD Sender: No OFD packet to send [00:09:49]OFD Sender: No OFD packet to send [00:09:54]OFD Sender: No OFD packet to send [00:09:59]OFD Sender: No OFD packet to send [00:10:04]OFD Sender: No OFD packet to send [00:10:09]OFD Sender: No OFD packet to send [00:10:14]OFD Sender: No OFD packet to send [00:10:19]OFD Sender: No OFD packet to send [00:10:22]accept exits with 9 [00:10:22]New connection [00:10:22]New thread 3066809700 created [00:10:22]Thread 3066666340 joined [00:10:22]Waiting for new connection... [00:10:22] Sock 9.Parse request [00:10:22]Sock 9.Check first char [00:10:22]Sock 9.First char is OK [00:10:22]request: POST /json_proto HTTP/1.0 [00:10:22]Method: POST [00:10:22]URL: /json_proto [00:10:22]Method is POST - this is cgi request [00:10:22]url: /json_proto [00:10:22]query_string will be loaded in cgi processing [00:10:22]execute_cgi json_proto POST (null) [00:10:22]execute_cgi path=json_proto method=POST [00:10:22]POST find Content-Length [00:10:22]Host: 172.17.44.195:8080 [00:10:22]Content-Length: 215 [00:10:22]Content-Type: application/json [00:10:22] [00:10:22]POST finish read [00:10:22]Found Content-Length = 215 [00:10:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:10:22]execute_script... [00:10:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:10:22]POST & json_proto [00:10:22]process_json_proto [00:10:22]json parsed OK: [00:10:22]protocol is kg_v1.0 [00:10:22]action value=get_value [00:10:22]process_action get_value [00:10:22]cmd_get_value [00:10:22]process_action get_value done [00:10:22]requested_data is exist [00:10:22]produce_requested_data [00:10:22]requested_item kkm.sn is exist - process it [00:10:22]requested_item kkm.ver is exist - process it [00:10:22]requested_item fm.sn is exist - process it [00:10:22]wFMCommunicate request_size=4 [00:10:22]MH_SAM_APDU [00:10:22]CAPDU: 80 11 00 00 [00:10:22]Write to MH i2c: E2 08 00 3A 21 80 11 00 00 00 00 00 00 D5 [00:10:22]Write i2c OK [00:10:22]MH_I2C_Read... [00:10:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:10:22]Read from MH i2c: E2 [00:10:22]MH_I2C_Read... [00:10:22]Read from MH i2c: E2 17 00 [00:10:22]MH_I2C_Read... [00:10:22]Read from MH i2c: E2 17 00 3A 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 2C [00:10:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [00:10:22]wFMCommunicate OK [00:10:22]requested_item fd.num is exist - process it [00:10:22]SAM_PROTO_GetFieldsCounters [00:10:22]wFMCommunicate request_size=4 [00:10:22]MH_SAM_APDU [00:10:22]CAPDU: 80 13 00 00 [00:10:22]Write to MH i2c: E2 08 00 3B 21 80 13 00 00 00 00 00 00 D8 [00:10:22]Write i2c OK [00:10:22]MH_I2C_Read... [00:10:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:10:22]Read from MH i2c: E2 [00:10:22]MH_I2C_Read... [00:10:22]Read from MH i2c: E2 62 00 [00:10:22]MH_I2C_Read... [00:10:22]Read from MH i2c: E2 62 00 3B 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 92 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 41 02 00 00 5E 04 04 00 41 02 00 00 57 04 04 00 43 02 00 00 19 04 04 00 00 00 00 00 90 00 F0 [00:10: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 92 79 03 00 0E 04 04 00 15 02 00 00 12 04 04 00 41 02 00 00 5E 04 04 00 41 02 00 00 57 04 04 00 43 02 00 00 19 04 04 00 00 00 00 00 90 00 [00:10:22]wFMCommunicate OK [00:10:22]SAM_PROTO_GetFieldsCounters done [00:10:22]requested_item shift.num is exist - process it [00:10:22]requested_item shift.opened is exist - process it [00:10:22]req_shift_opened [00:10:22]FM_GetShiftState [00:10:22]SAM_PROTO_GetShiftState [00:10:22]wFMCommunicate request_size=4 [00:10:22]MH_SAM_APDU [00:10:22]CAPDU: 80 13 01 00 [00:10:22]Write to MH i2c: E2 08 00 3C 21 80 13 01 00 00 00 00 00 DA [00:10:22]Write i2c OK [00:10:22]MH_I2C_Read... [00:10:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:10:22]Read from MH i2c: E2 [00:10:22]MH_I2C_Read... [00:10:22]Read from MH i2c: E2 0E 00 [00:10:22]MH_I2C_Read... [00:10:22]Read from MH i2c: E2 0E 00 3C 21 00 09 00 00 00 00 00 00 00 00 00 00 90 00 E5 [00:10:22]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:10:22]wFMCommunicate OK [00:10:22]SAM_PROTO_GetShiftState done [00:10:22]FM_GetShiftState done [00:10:22]req_shift_opened done [00:10:22]requested_item shift.open_date is exist - process it [00:10:22]req_shift_open_date [00:10:22]FM_GetShiftState [00:10:22]SAM_PROTO_GetShiftState [00:10:22]wFMCommunicate request_size=4 [00:10:22]MH_SAM_APDU [00:10:22]CAPDU: 80 13 01 00 [00:10:22]Write to MH i2c: E2 08 00 3D 21 80 13 01 00 00 00 00 00 DB [00:10:22]Write i2c OK [00:10:22]MH_I2C_Read... [00:10:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:10:22]Read from MH i2c: E2 [00:10:22]MH_I2C_Read... [00:10:22]Read from MH i2c: E2 0E 00 [00:10:22]MH_I2C_Read... [00:10:22]Read from MH i2c: E2 0E 00 3D 21 00 09 00 00 00 00 00 00 00 00 00 00 90 00 E6 [00:10:22]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:10:22]wFMCommunicate OK [00:10:22]SAM_PROTO_GetShiftState done [00:10:22]FM_GetShiftState done [00:10:22]req_shift_open_date done [00:10:22]produce_requested_data done [00:10:22]produce_requested_data return {"kkm.sn":"0300000091","kkm.ver":"001","fm.sn":"0000000000871839","fd.num":227730,"shift.num":533,"shift.opened":0,"shift.open_date":0} [00:10:22]process_action_free get_value [00:10:22]json_value_free [00:10:22]json_value_free done [00:10:22]process_json_proto returns [00:10:22]Send response to host [00:10:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000091","kkm.ver":"001","fm.sn":"0000000000871839","fd.num":227730,"shift.num":533,"shift.opened":0,"shift.open_date":0}}} [00:10:22]free response buf [00:10:22]execute_script done [00:10:22]execute_script returns [00:10:22]free content buf [00:10:22]Sock 9.Close socket [00:10:22]Sock 9.Thread stoped [00:10:22]accept exits with 7 [00:10:22]New connection [00:10:22]New thread 3066666340 created [00:10:22]Thread 3066809700 joined [00:10:22]Waiting for new connection... [00:10:22] Sock 7.Parse request [00:10:22]Sock 7.Check first char [00:10:22]Sock 7.First char is OK [00:10:22]request: POST /json_proto HTTP/1.0 [00:10:22]Method: POST [00:10:22]URL: /json_proto [00:10:22]Method is POST - this is cgi request [00:10:22]url: /json_proto [00:10:22]query_string will be loaded in cgi processing [00:10:22]execute_cgi json_proto POST (null) [00:10:22]execute_cgi path=json_proto method=POST [00:10:22]POST find Content-Length [00:10:22]Host: 172.17.44.195:8080 [00:10:22]Content-Length: 331 [00:10:22]Content-Type: application/json [00:10:22] [00:10:22]POST finish read [00:10:22]Found Content-Length = 331 [00:10:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:10:22]execute_script... [00:10:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:10:22]POST & json_proto [00:10:22]process_json_proto [00:10:22]json parsed OK: [00:10:22]protocol is kg_v1.0 [00:10:22]action value=get_value [00:10:22]process_action get_value [00:10:22]cmd_get_value [00:10:22]process_action get_value done [00:10:22]requested_data is exist [00:10:22]produce_requested_data [00:10:22]requested_item fm.sale.total is exist - process it [00:10:22]SAM_PROTO_GetFMData [00:10:22]wFMCommunicate request_size=4 [00:10:22]MH_SAM_APDU [00:10:22]CAPDU: 80 13 03 00 [00:10:22]Write to MH i2c: E2 08 00 3E 21 80 13 03 00 00 00 00 00 DE [00:10:22]Write i2c OK [00:10:22]MH_I2C_Read... [00:10:23]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:10:23]Read from MH i2c: E2 [00:10:23]MH_I2C_Read... [00:10:23]Read from MH i2c: E2 FD 00 [00:10:23]MH_I2C_Read... [00:10:23]Read from MH i2c: E2 FD 00 3E 21 00 C5 04 85 04 C1 04 6E 04 04 00 67 75 03 00 69 04 A3 00 6F 04 04 00 77 6E 03 00 B1 04 05 00 82 A3 B5 C5 04 70 04 05 00 8C 28 2D 4C 04 72 04 04 00 F6 7A 88 79 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 80 F2 C7 81 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 2D 7D D0 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 F0 06 00 00 B1 04 04 00 D8 C0 CF 1E 70 04 04 00 D8 C0 CF 1E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A5 B8 45 03 EF 03 09 90 00 F1 [00:10:23]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 67 75 03 00 69 04 A3 00 6F 04 04 00 77 6E 03 00 B1 04 05 00 82 A3 B5 C5 04 70 04 05 00 8C 28 2D 4C 04 72 04 04 00 F6 7A 88 79 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 80 F2 C7 81 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 2D 7D D0 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 F0 06 00 00 B1 04 04 00 D8 C0 CF 1E 70 04 04 00 D8 C0 CF 1E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A5 B8 45 03 EF 03 09 90 00 [00:10:23]wFMCommunicate OK [00:10:23]wFMCommunicate request_size=4 [00:10:23]MH_SAM_APDU [00:10:23]CAPDU: 80 17 00 00 [00:10:23]Write to MH i2c: E2 08 00 3F 21 80 17 00 00 00 00 00 00 E0 [00:10:23]Write i2c OK [00:10:23]MH_I2C_Read... [00:10:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:23]Read from MH i2c: E2 [00:10:23]MH_I2C_Read... [00:10:23]Read from MH i2c: E2 FD 00 [00:10:23]MH_I2C_Read... [00:10:23]Read from MH i2c: E2 FD 00 3F 21 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 CE 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 90 [00:10:23]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 CE 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:10:23]wFMCommunicate OK [00:10:23]wFMCommunicate request_size=4 [00:10:23]MH_SAM_APDU [00:10:23]CAPDU: 80 17 00 00 [00:10:23]Write to MH i2c: E2 08 00 40 21 80 17 00 00 00 00 00 00 E1 [00:10:23]Write i2c OK [00:10:23]MH_I2C_Read... [00:10:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:23]Read from MH i2c: E2 [00:10:23]MH_I2C_Read... [00:10:23]Read from MH i2c: E2 FD 00 [00:10:23]MH_I2C_Read... [00:10:23]Read from MH i2c: E2 FD 00 40 21 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 F3 [00:10:23]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:10:23]wFMCommunicate OK [00:10:23]wFMCommunicate request_size=4 [00:10:23]MH_SAM_APDU [00:10:23]CAPDU: 80 17 00 00 [00:10:23]Write to MH i2c: E2 08 00 41 21 80 17 00 00 00 00 00 00 E2 [00:10:23]Write i2c OK [00:10:23]MH_I2C_Read... [00:10:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:24]Read from MH i2c: E2 [00:10:24]MH_I2C_Read... [00:10:24]Read from MH i2c: E2 FD 00 [00:10:24]MH_I2C_Read... [00:10:24]Read from MH i2c: E2 FD 00 41 21 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 6E [00:10:24]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:10:24]wFMCommunicate OK [00:10:24]wFMCommunicate request_size=4 [00:10:24]MH_SAM_APDU [00:10:24]CAPDU: 80 17 00 00 [00:10:24]Write to MH i2c: E2 08 00 42 21 80 17 00 00 00 00 00 00 E3 [00:10:24]Write i2c OK [00:10:24]MH_I2C_Read... [00:10:24]OFD Sender: No OFD packet to send [00:10:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:10:24]Read from MH i2c: E2 [00:10:24]MH_I2C_Read... [00:10:24]Read from MH i2c: E2 E2 00 [00:10:24]MH_I2C_Read... [00:10:24]Read from MH i2c: E2 E2 00 42 21 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C1 [00:10:24]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:10:24]wFMCommunicate OK [00:10:24]SAM_PROTO_GetFMData done [00:10:24]requested_item fm.sale_refund.total is exist - process it [00:10:24]requested_item fm.buy.total is exist - process it [00:10:24]requested_item shift.sale.total is exist - process it [00:10:24]SAM_PROTO_GetShiftData [00:10:24]wFMCommunicate request_size=4 [00:10:24]MH_SAM_APDU [00:10:24]CAPDU: 80 13 02 00 [00:10:24]Write to MH i2c: E2 08 00 43 21 80 13 02 00 00 00 00 00 E2 [00:10:24]Write i2c OK [00:10:24]MH_I2C_Read... [00:10:24]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:10:24]Read from MH i2c: E2 [00:10:24]MH_I2C_Read... [00:10:24]Read from MH i2c: E2 FD 00 [00:10:24]MH_I2C_Read... [00:10:24]Read from MH i2c: E2 FD 00 43 21 00 B8 04 AA 04 B4 04 6E 04 04 00 41 02 00 00 69 04 9E 00 6F 04 04 00 40 02 00 00 B1 04 04 00 EC 19 C0 03 70 04 04 00 BC 87 40 03 72 04 03 00 30 92 7F 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 71 FB 65 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8D 7F 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 10 27 70 04 02 00 10 27 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 2C 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 6B [00:10:24]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 41 02 00 00 69 04 9E 00 6F 04 04 00 40 02 00 00 B1 04 04 00 EC 19 C0 03 70 04 04 00 BC 87 40 03 72 04 03 00 30 92 7F 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 71 FB 65 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8D 7F 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 10 27 70 04 02 00 10 27 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 2C 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:10:24]wFMCommunicate OK [00:10:24]wFMCommunicate request_size=4 [00:10:24]MH_SAM_APDU [00:10:24]CAPDU: 80 17 00 00 [00:10:24]Write to MH i2c: E2 08 00 44 21 80 17 00 00 00 00 00 00 E5 [00:10:24]Write i2c OK [00:10:24]MH_I2C_Read... [00:10:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:25]Read from MH i2c: E2 [00:10:25]MH_I2C_Read... [00:10:25]Read from MH i2c: E2 FD 00 [00:10:25]MH_I2C_Read... [00:10:25]Read from MH i2c: E2 FD 00 44 21 00 03 0A 00 F6 03 01 00 01 F7 03 01 00 59 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 70 [00:10:25]RAPDU: 03 0A 00 F6 03 01 00 01 F7 03 01 00 59 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:10:25]wFMCommunicate OK [00:10:25]wFMCommunicate request_size=4 [00:10:25]MH_SAM_APDU [00:10:25]CAPDU: 80 17 00 00 [00:10:25]Write to MH i2c: E2 08 00 45 21 80 17 00 00 00 00 00 00 E6 [00:10:25]Write i2c OK [00:10:25]MH_I2C_Read... [00:10:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:25]Read from MH i2c: E2 [00:10:25]MH_I2C_Read... [00:10:25]Read from MH i2c: E2 FD 00 [00:10:25]MH_I2C_Read... [00:10:25]Read from MH i2c: E2 FD 00 45 21 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 88 [00:10:25]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:10:25]wFMCommunicate OK [00:10:25]wFMCommunicate request_size=4 [00:10:25]MH_SAM_APDU [00:10:25]CAPDU: 80 17 00 00 [00:10:25]Write to MH i2c: E2 08 00 46 21 80 17 00 00 00 00 00 00 E7 [00:10:25]Write i2c OK [00:10:25]MH_I2C_Read... [00:10:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:25]Read from MH i2c: E2 [00:10:25]MH_I2C_Read... [00:10:25]Read from MH i2c: E2 FD 00 [00:10:25]MH_I2C_Read... [00:10:25]Read from MH i2c: E2 FD 00 46 21 00 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 70 [00:10:25]RAPDU: 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 [00:10:25]wFMCommunicate OK [00:10:25]wFMCommunicate request_size=4 [00:10:25]MH_SAM_APDU [00:10:25]CAPDU: 80 17 00 00 [00:10:25]Write to MH i2c: E2 08 00 47 21 80 17 00 00 00 00 00 00 E8 [00:10:25]Write i2c OK [00:10:25]MH_I2C_Read... [00:10:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [00:10:25]Read from MH i2c: E2 [00:10:25]MH_I2C_Read... [00:10:25]Read from MH i2c: E2 D5 00 [00:10:25]MH_I2C_Read... [00:10:25]Read from MH i2c: E2 D5 00 47 21 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C9 [00:10:26]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:10:26]wFMCommunicate OK [00:10:26]SAM_PROTO_GetShiftData done [00:10:26]requested_item shift.sale.total_cash is exist - process it [00:10:26]requested_item shift.sale_refund.total is exist - process it [00:10:26]requested_item shift.sale_refund.total_cash is exist - process it [00:10:26]requested_item shift.buy.total is exist - process it [00:10:26]requested_item shift.buy.total_cash is exist - process it [00:10:26]produce_requested_data done [00:10:26]produce_requested_data return {"fm.sale.total":204968846.10,"fm.sale_refund.total":5169318.00,"fm.buy.total":0.00,"shift.sale.total":629211.96,"shift.sale.total_cash":545607.00,"shift.sale_refund.total":100.00,"shift.sale_refund.total_cash":100.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:10:26]process_action_free get_value [00:10:26]json_value_free [00:10:26]json_value_free done [00:10:26]process_json_proto returns [00:10:26]Send response to host [00:10:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":204968846.10,"fm.sale_refund.total":5169318.00,"fm.buy.total":0.00,"shift.sale.total":629211.96,"shift.sale.total_cash":545607.00,"shift.sale_refund.total":100.00,"shift.sale_refund.total_cash":100.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:10:26]free response buf [00:10:26]execute_script done [00:10:26]execute_script returns [00:10:26]free content buf [00:10:26]Sock 7.Close socket [00:10:26]Sock 7.Thread stoped [00:10:26]accept exits with 9 [00:10:26]New connection [00:10:26]New thread 3066809700 created [00:10:26]Thread 3066666340 joined [00:10:26]Waiting for new connection... [00:10:26] Sock 9.Parse request [00:10:26]Sock 9.Check first char [00:10:26]Sock 9.First char is OK [00:10:26]request: POST /json_proto HTTP/1.0 [00:10:26]Method: POST [00:10:26]URL: /json_proto [00:10:26]Method is POST - this is cgi request [00:10:26]url: /json_proto [00:10:26]query_string will be loaded in cgi processing [00:10:26]execute_cgi json_proto POST (null) [00:10:26]execute_cgi path=json_proto method=POST [00:10:26]POST find Content-Length [00:10:26]Host: 172.17.44.195:8080 [00:10:26]Content-Length: 277 [00:10:26]Content-Type: application/json [00:10:26] [00:10:26]POST finish read [00:10:26]Found Content-Length = 277 [00:10:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0422\u043E\u043A\u0442\u043E\u0441\u0443\u043D\u043E\u0432\u0430 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:10:26]execute_script... [00:10:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0422\u043E\u043A\u0442\u043E\u0441\u0443\u043D\u043E\u0432\u0430 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:10:26]POST & json_proto [00:10:26]process_json_proto [00:10:26]json parsed OK: [00:10:26]protocol is kg_v1.0 [00:10:26]action value=open_shift [00:10:26]process_action open_shift [00:10:26]cmd_open_shift [00:10:26]MH_GetDate [00:10:26]Write to MH i2c: F0 00 00 48 21 58 [00:10:26]Write i2c OK [00:10:26]MH_I2C_Read... [00:10:26]Read from MH i2c: F0 [00:10:26]MH_I2C_Read... [00:10:26]Read from MH i2c: F0 09 00 [00:10:26]MH_I2C_Read... [00:10:26]Read from MH i2c: F0 09 00 48 21 00 F4 9B 15 67 82 C9 CF 66 EC [00:10:26]GetLastDocTimeStamp 1729469275 [00:10:26]current date 1729469428 [00:10:26]FM_GetShiftState [00:10:26]SAM_PROTO_GetShiftState [00:10:26]wFMCommunicate request_size=4 [00:10:26]MH_SAM_APDU [00:10:26]CAPDU: 80 13 01 00 [00:10:26]Write to MH i2c: E2 08 00 49 21 80 13 01 00 00 00 00 00 E7 [00:10:26]Write i2c OK [00:10:26]MH_I2C_Read... [00:10:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:10:26]Read from MH i2c: E2 [00:10:26]MH_I2C_Read... [00:10:26]Read from MH i2c: E2 0E 00 [00:10:26]MH_I2C_Read... [00:10:26]Read from MH i2c: E2 0E 00 49 21 00 09 00 00 00 00 00 00 00 00 00 00 90 00 F2 [00:10:26]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:10:26]wFMCommunicate OK [00:10:26]SAM_PROTO_GetShiftState done [00:10:26]FM_GetShiftState done [00:10:26]KKMCreateOpenShiftDocument [00:10:26]Load OK [00:10:26]Malloc new data [00:10:26]MH_GetDate [00:10:26]Write to MH i2c: F0 00 00 4A 21 5A [00:10:26]Write i2c OK [00:10:26]MH_I2C_Read... [00:10:26]Read from MH i2c: F0 [00:10:26]MH_I2C_Read... [00:10:26]Read from MH i2c: F0 09 00 [00:10:26]MH_I2C_Read... [00:10:26]Read from MH i2c: F0 09 00 4A 21 00 F4 9B 15 67 82 C9 CF 66 EE [00:10:26]Malloc new data [00:10:26]KKMCreateOpenShiftDocument OK [00:10:26]KKMSetOpenShiftData OK [00:10:26]ProcessDocumentItem done err = 0, tmpTLVsize=192 [00:10:26]tlvbuf is 00CF66D0 [00:10:26]KKMLoadAndSignOpenShiftData [00:10:26]SAM_PROTO_ProcessDocument [00:10:26]wFMCommunicate request_size=9 [00:10:26]MH_SAM_APDU [00:10:26]CAPDU: 80 15 01 00 04 02 00 C0 00 [00:10:26]Write to MH i2c: E2 0C 00 4B 21 80 15 01 00 04 00 02 00 C0 00 00 00 B5 [00:10:26]Write i2c OK [00:10:26]MH_I2C_Read... [00:10:26]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:10:26]Read from MH i2c: E2 [00:10:26]MH_I2C_Read... [00:10:26]Read from MH i2c: E2 03 00 [00:10:26]MH_I2C_Read... [00:10:26]Read from MH i2c: E2 03 00 4B 21 00 90 00 E0 [00:10:26]RAPDU: 90 00 [00:10:26]wFMCommunicate OK [00:10:26]wFMCommunicate request_size=23 [00:10:26]MH_SAM_APDU [00:10:26]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:10:26]Write to MH i2c: E2 1A 00 4C 21 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 E2 [00:10:26]Write i2c OK [00:10:26]MH_I2C_Read... [00:10:26]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:10:26]Read from MH i2c: E2 [00:10:26]MH_I2C_Read... [00:10:26]Read from MH i2c: E2 03 00 [00:10:26]MH_I2C_Read... [00:10:26]Read from MH i2c: E2 03 00 4C 21 00 90 00 E1 [00:10:26]RAPDU: 90 00 [00:10:26]wFMCommunicate OK [00:10:26]wFMCommunicate request_size=36 [00:10:26]MH_SAM_APDU [00:10:26]CAPDU: 80 15 02 00 1F FD 03 1B 00 D0 A2 D0 BE D0 BA D1 82 D0 BE D1 81 D1 83 D0 BD D0 BE D0 B2 D0 B0 20 D0 90 2E 20 [00:10:26]Write to MH i2c: E2 27 00 4D 21 80 15 02 00 1F 00 FD 03 1B 00 D0 A2 D0 BE D0 BA D1 82 D0 BE D1 81 D1 83 D0 BD D0 BE D0 B2 D0 B0 20 D0 90 2E 20 00 00 43 [00:10:26]Write i2c OK [00:10:26]MH_I2C_Read... [00:10:26]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:10:26]Read from MH i2c: E2 [00:10:26]MH_I2C_Read... [00:10:26]Read from MH i2c: E2 03 00 [00:10:26]MH_I2C_Read... [00:10:26]Read from MH i2c: E2 03 00 4D 21 00 90 00 E2 [00:10:26]RAPDU: 90 00 [00:10:26]wFMCommunicate OK [00:10:26]wFMCommunicate request_size=74 [00:10:26]MH_SAM_APDU [00:10:26]CAPDU: 80 15 02 00 45 F1 03 41 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9C D0 B0 D1 81 D1 8B 2C 20 D1 83 D0 BB 2E 20 D0 9B D0 B5 D0 BD D0 B8 D0 BD D0 B0 20 35 30 2C 20 34 31 2E 30 36 34 36 37 33 2C 20 37 32 2E 36 34 39 31 36 31 [00:10:26]Write to MH i2c: E2 4D 00 4E 21 80 15 02 00 45 00 F1 03 41 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9C D0 B0 D1 81 D1 8B 2C 20 D1 83 D0 BB 2E 20 D0 9B D0 B5 D0 BD D0 B8 D0 BD D0 B0 20 35 30 2C 20 34 31 2E 30 36 34 36 37 33 2C 20 37 32 2E 36 34 39 31 36 31 00 00 A5 [00:10:26]Write i2c OK [00:10:26]MH_I2C_Read... [00:10:26]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:10:26]Read from MH i2c: E2 [00:10:26]MH_I2C_Read... [00:10:26]Read from MH i2c: E2 03 00 [00:10:26]MH_I2C_Read... [00:10:26]Read from MH i2c: E2 03 00 4E 21 00 90 00 E3 [00:10:26]RAPDU: 90 00 [00:10:26]wFMCommunicate OK [00:10:26]wFMCommunicate request_size=51 [00:10:26]MH_SAM_APDU [00:10:26]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 33 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 [00:10:26]Write to MH i2c: E2 36 00 4F 21 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 33 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 00 00 99 [00:10:26]Write i2c OK [00:10:26]MH_I2C_Read... [00:10:26]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:10:26]Read from MH i2c: E2 [00:10:26]MH_I2C_Read... [00:10:26]Read from MH i2c: E2 03 00 [00:10:26]MH_I2C_Read... [00:10:26]Read from MH i2c: E2 03 00 4F 21 00 90 00 E4 [00:10:26]RAPDU: 90 00 [00:10:26]wFMCommunicate OK [00:10:26]wFMCommunicate request_size=13 [00:10:26]MH_SAM_APDU [00:10:26]CAPDU: 80 15 02 00 08 F4 03 04 00 F4 9B 15 67 [00:10:26]Write to MH i2c: E2 10 00 50 21 80 15 02 00 08 00 F4 03 04 00 F4 9B 15 67 00 00 07 [00:10:26]Write i2c OK [00:10:26]MH_I2C_Read... [00:10:26]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:10:26]Read from MH i2c: E2 [00:10:26]MH_I2C_Read... [00:10:26]Read from MH i2c: E2 03 00 [00:10:26]MH_I2C_Read... [00:10:26]Read from MH i2c: E2 03 00 50 21 00 90 00 E5 [00:10:26]RAPDU: 90 00 [00:10:26]wFMCommunicate OK [00:10:26]wFMCommunicate request_size=25 [00:10:26]MH_SAM_APDU [00:10:26]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 [00:10:26]Write to MH i2c: E2 1C 00 51 21 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 00 00 58 [00:10:26]Write i2c OK [00:10:26]MH_I2C_Read... [00:10:26]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:10:26]Read from MH i2c: E2 [00:10:26]MH_I2C_Read... [00:10:26]Read from MH i2c: E2 03 00 [00:10:26]MH_I2C_Read... [00:10:26]Read from MH i2c: E2 03 00 51 21 00 90 00 E6 [00:10:26]RAPDU: 90 00 [00:10:26]wFMCommunicate OK [00:10:26]wFMCommunicate request_size=4 [00:10:26]MH_SAM_APDU [00:10:26]CAPDU: 80 15 03 00 [00:10:26]Write to MH i2c: E2 08 00 52 21 80 15 03 00 00 00 00 00 F4 [00:10:26]Write i2c OK [00:10:26]MH_I2C_Read... [00:10:27]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:10:27]Read from MH i2c: E2 [00:10:27]MH_I2C_Read... [00:10:27]Read from MH i2c: E2 38 00 [00:10:27]MH_I2C_Read... [00:10:27]Read from MH i2c: E2 38 00 52 21 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 93 79 03 00 0E 04 04 00 16 02 00 00 35 04 06 00 EC 84 94 1A 78 38 90 00 B9 [00:10:27]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 93 79 03 00 0E 04 04 00 16 02 00 00 35 04 06 00 EC 84 94 1A 78 38 90 00 [00:10:27]wFMCommunicate OK [00:10:27]SAM_PROTO_ProcessDocument answer len = 51 [00:10:27]SAM_PROTO_ProcessDocument done [00:10:27]SetTLVBufToDocument [00:10:27]Processing tag 1209 (04B9) [00:10:27]Malloc new data [00:10:27]Processing tag 1041 (0411) [00:10:27]Processing tag 1040 (0410) [00:10:27]Malloc new data [00:10:27]Processing tag 1038 (040E) [00:10:27]Malloc new data [00:10:27]Processing tag 1077 (0435) [00:10:27]Malloc new data [00:10:27]SetTLVBufToDocument err=0 [00:10:27]KKMLoadAndSignOpenShiftData store KKM data [00:10:27]KKMLoadAndSignOpenShiftData err=0 [00:10:27]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Токтосунова А. Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 Место: АЗС № 133 "Партнер Нефть" 21.10.2024 00:10 Смена: 534 РНМ: 0000000000091685 ЗНМ: 0300000091 ФД: 227731 ФМ: 0000000000871839 ФПД: 260054164600888 [00:10:27]StoreToDocumentArchive [00:10:27]shift 534 fd 227731 [00:10:27]Create dir for shift 0534 [00:10:27]save to /storage/0534/doc_00227731 [00:10:27]save last doc name /storage/0534/doc_00227731 to /storage/kkm_last_doc_name [00:10:27]save OK [00:10:27]Clear old archive folders... [00:10:27]Remove dir /storage/0533 [00:10:27]opendir ok [00:10:27]file . [00:10:27]file .. [00:10:27]file doc_00227152 [00:10:27]remove file /storage/0533/doc_00227152 [00:10:27]file doc_00227153 [00:10:27]remove file /storage/0533/doc_00227153 [00:10:27]file doc_00227154 [00:10:27]remove file /storage/0533/doc_00227154 [00:10:27]file doc_00227155 [00:10:27]remove file /storage/0533/doc_00227155 [00:10:27]file doc_00227156 [00:10:27]remove file /storage/0533/doc_00227156 [00:10:27]file doc_00227157 [00:10:27]remove file /storage/0533/doc_00227157 [00:10:27]file doc_00227158 [00:10:27]remove file /storage/0533/doc_00227158 [00:10:27]file doc_00227159 [00:10:27]remove file /storage/0533/doc_00227159 [00:10:27]file doc_00227160 [00:10:27]remove file /storage/0533/doc_00227160 [00:10:27]file doc_00227161 [00:10:27]remove file /storage/0533/doc_00227161 [00:10:27]file doc_00227162 [00:10:27]remove file /storage/0533/doc_00227162 [00:10:27]file doc_00227163 [00:10:27]remove file /storage/0533/doc_00227163 [00:10:27]file doc_00227164 [00:10:27]remove file /storage/0533/doc_00227164 [00:10:27]file doc_00227165 [00:10:27]remove file /storage/0533/doc_00227165 [00:10:27]file doc_00227166 [00:10:27]remove file /storage/0533/doc_00227166 [00:10:27]file doc_00227167 [00:10:27]remove file /storage/0533/doc_00227167 [00:10:27]file doc_00227168 [00:10:27]remove file /storage/0533/doc_00227168 [00:10:27]file doc_00227169 [00:10:27]remove file /storage/0533/doc_00227169 [00:10:27]file doc_00227170 [00:10:27]remove file /storage/0533/doc_00227170 [00:10:27]file doc_00227171 [00:10:27]remove file /storage/0533/doc_00227171 [00:10:27]file doc_00227172 [00:10:27]remove file /storage/0533/doc_00227172 [00:10:27]file doc_00227173 [00:10:27]remove file /storage/0533/doc_00227173 [00:10:27]file doc_00227174 [00:10:27]remove file /storage/0533/doc_00227174 [00:10:27]file doc_00227175 [00:10:27]remove file /storage/0533/doc_00227175 [00:10:27]file doc_00227176 [00:10:27]remove file /storage/0533/doc_00227176 [00:10:27]file doc_00227177 [00:10:27]remove file /storage/0533/doc_00227177 [00:10:27]file doc_00227178 [00:10:27]remove file /storage/0533/doc_00227178 [00:10:27]file doc_00227179 [00:10:27]remove file /storage/0533/doc_00227179 [00:10:27]file doc_00227180 [00:10:27]remove file /storage/0533/doc_00227180 [00:10:27]file doc_00227181 [00:10:27]remove file /storage/0533/doc_00227181 [00:10:27]file doc_00227182 [00:10:27]remove file /storage/0533/doc_00227182 [00:10:27]file doc_00227183 [00:10:27]remove file /storage/0533/doc_00227183 [00:10:27]file doc_00227184 [00:10:27]remove file /storage/0533/doc_00227184 [00:10:27]file doc_00227185 [00:10:27]remove file /storage/0533/doc_00227185 [00:10:27]file doc_00227186 [00:10:27]remove file /storage/0533/doc_00227186 [00:10:27]file doc_00227187 [00:10:27]remove file /storage/0533/doc_00227187 [00:10:27]file doc_00227188 [00:10:27]remove file /storage/0533/doc_00227188 [00:10:27]file doc_00227189 [00:10:27]remove file /storage/0533/doc_00227189 [00:10:27]file doc_00227190 [00:10:27]remove file /storage/0533/doc_00227190 [00:10:27]file doc_00227191 [00:10:27]remove file /storage/0533/doc_00227191 [00:10:27]file doc_00227192 [00:10:27]remove file /storage/0533/doc_00227192 [00:10:27]file doc_00227193 [00:10:27]remove file /storage/0533/doc_00227193 [00:10:27]file doc_00227194 [00:10:27]remove file /storage/0533/doc_00227194 [00:10:27]file doc_00227195 [00:10:27]remove file /storage/0533/doc_00227195 [00:10:27]file doc_00227196 [00:10:27]remove file /storage/0533/doc_00227196 [00:10:27]file doc_00227197 [00:10:27]remove file /storage/0533/doc_00227197 [00:10:27]file doc_00227198 [00:10:27]remove file /storage/0533/doc_00227198 [00:10:27]file doc_00227199 [00:10:27]remove file /storage/0533/doc_00227199 [00:10:27]file doc_00227200 [00:10:27]remove file /storage/0533/doc_00227200 [00:10:27]file doc_00227201 [00:10:27]remove file /storage/0533/doc_00227201 [00:10:27]file doc_00227202 [00:10:27]remove file /storage/0533/doc_00227202 [00:10:27]file doc_00227203 [00:10:27]remove file /storage/0533/doc_00227203 [00:10:27]file doc_00227204 [00:10:27]remove file /storage/0533/doc_00227204 [00:10:27]file doc_00227205 [00:10:27]remove file /storage/0533/doc_00227205 [00:10:27]file doc_00227206 [00:10:27]remove file /storage/0533/doc_00227206 [00:10:27]file doc_00227207 [00:10:27]remove file /storage/0533/doc_00227207 [00:10:27]file doc_00227208 [00:10:27]remove file /storage/0533/doc_00227208 [00:10:27]file doc_00227209 [00:10:27]remove file /storage/0533/doc_00227209 [00:10:27]file doc_00227210 [00:10:27]remove file /storage/0533/doc_00227210 [00:10:27]file doc_00227211 [00:10:27]remove file /storage/0533/doc_00227211 [00:10:27]file doc_00227212 [00:10:27]remove file /storage/0533/doc_00227212 [00:10:27]file doc_00227213 [00:10:27]remove file /storage/0533/doc_00227213 [00:10:27]file doc_00227214 [00:10:27]remove file /storage/0533/doc_00227214 [00:10:27]file doc_00227215 [00:10:27]remove file /storage/0533/doc_00227215 [00:10:27]file doc_00227216 [00:10:27]remove file /storage/0533/doc_00227216 [00:10:27]file doc_00227217 [00:10:27]remove file /storage/0533/doc_00227217 [00:10:27]file doc_00227218 [00:10:27]remove file /storage/0533/doc_00227218 [00:10:27]file doc_00227219 [00:10:27]remove file /storage/0533/doc_00227219 [00:10:27]file doc_00227220 [00:10:27]remove file /storage/0533/doc_00227220 [00:10:27]file doc_00227221 [00:10:27]remove file /storage/0533/doc_00227221 [00:10:27]file doc_00227222 [00:10:27]remove file /storage/0533/doc_00227222 [00:10:27]file doc_00227223 [00:10:27]remove file /storage/0533/doc_00227223 [00:10:27]file doc_00227224 [00:10:27]remove file /storage/0533/doc_00227224 [00:10:27]file doc_00227225 [00:10:27]remove file /storage/0533/doc_00227225 [00:10:27]file doc_00227226 [00:10:27]remove file /storage/0533/doc_00227226 [00:10:27]file doc_00227227 [00:10:27]remove file /storage/0533/doc_00227227 [00:10:27]file doc_00227228 [00:10:27]remove file /storage/0533/doc_00227228 [00:10:27]file doc_00227229 [00:10:27]remove file /storage/0533/doc_00227229 [00:10:27]file doc_00227230 [00:10:27]remove file /storage/0533/doc_00227230 [00:10:27]file doc_00227231 [00:10:27]remove file /storage/0533/doc_00227231 [00:10:27]file doc_00227232 [00:10:27]remove file /storage/0533/doc_00227232 [00:10:27]file doc_00227233 [00:10:27]remove file /storage/0533/doc_00227233 [00:10:27]file doc_00227234 [00:10:27]remove file /storage/0533/doc_00227234 [00:10:27]file doc_00227235 [00:10:27]remove file /storage/0533/doc_00227235 [00:10:27]file doc_00227236 [00:10:27]remove file /storage/0533/doc_00227236 [00:10:27]file doc_00227237 [00:10:27]remove file /storage/0533/doc_00227237 [00:10:27]file doc_00227238 [00:10:27]remove file /storage/0533/doc_00227238 [00:10:27]file doc_00227239 [00:10:27]remove file /storage/0533/doc_00227239 [00:10:27]file doc_00227240 [00:10:27]remove file /storage/0533/doc_00227240 [00:10:27]file doc_00227241 [00:10:27]remove file /storage/0533/doc_00227241 [00:10:27]file doc_00227242 [00:10:27]remove file /storage/0533/doc_00227242 [00:10:27]file doc_00227243 [00:10:27]remove file /storage/0533/doc_00227243 [00:10:27]file doc_00227244 [00:10:27]remove file /storage/0533/doc_00227244 [00:10:27]file doc_00227245 [00:10:27]remove file /storage/0533/doc_00227245 [00:10:27]file doc_00227246 [00:10:27]remove file /storage/0533/doc_00227246 [00:10:27]file doc_00227247 [00:10:27]remove file /storage/0533/doc_00227247 [00:10:27]file doc_00227248 [00:10:27]remove file /storage/0533/doc_00227248 [00:10:27]file doc_00227249 [00:10:27]remove file /storage/0533/doc_00227249 [00:10:27]file doc_00227250 [00:10:27]remove file /storage/0533/doc_00227250 [00:10:27]file doc_00227251 [00:10:27]remove file /storage/0533/doc_00227251 [00:10:27]file doc_00227252 [00:10:27]remove file /storage/0533/doc_00227252 [00:10:27]file doc_00227253 [00:10:27]remove file /storage/0533/doc_00227253 [00:10:27]file doc_00227254 [00:10:27]remove file /storage/0533/doc_00227254 [00:10:27]file doc_00227255 [00:10:27]remove file /storage/0533/doc_00227255 [00:10:27]file doc_00227256 [00:10:27]remove file /storage/0533/doc_00227256 [00:10:27]file doc_00227257 [00:10:27]remove file /storage/0533/doc_00227257 [00:10:27]file doc_00227258 [00:10:27]remove file /storage/0533/doc_00227258 [00:10:27]file doc_00227259 [00:10:27]remove file /storage/0533/doc_00227259 [00:10:27]file doc_00227260 [00:10:27]remove file /storage/0533/doc_00227260 [00:10:27]file doc_00227261 [00:10:27]remove file /storage/0533/doc_00227261 [00:10:27]file doc_00227262 [00:10:27]remove file /storage/0533/doc_00227262 [00:10:27]file doc_00227263 [00:10:27]remove file /storage/0533/doc_00227263 [00:10:27]file doc_00227264 [00:10:27]remove file /storage/0533/doc_00227264 [00:10:27]file doc_00227265 [00:10:27]remove file /storage/0533/doc_00227265 [00:10:27]file doc_00227266 [00:10:27]remove file /storage/0533/doc_00227266 [00:10:27]file doc_00227267 [00:10:27]remove file /storage/0533/doc_00227267 [00:10:27]file doc_00227268 [00:10:27]remove file /storage/0533/doc_00227268 [00:10:27]file doc_00227269 [00:10:27]remove file /storage/0533/doc_00227269 [00:10:27]file doc_00227270 [00:10:27]remove file /storage/0533/doc_00227270 [00:10:27]file doc_00227271 [00:10:27]remove file /storage/0533/doc_00227271 [00:10:27]file doc_00227272 [00:10:27]remove file /storage/0533/doc_00227272 [00:10:27]file doc_00227273 [00:10:27]remove file /storage/0533/doc_00227273 [00:10:27]file doc_00227274 [00:10:27]remove file /storage/0533/doc_00227274 [00:10:27]file doc_00227275 [00:10:27]remove file /storage/0533/doc_00227275 [00:10:27]file doc_00227276 [00:10:27]remove file /storage/0533/doc_00227276 [00:10:27]file doc_00227277 [00:10:27]remove file /storage/0533/doc_00227277 [00:10:27]file doc_00227278 [00:10:27]remove file /storage/0533/doc_00227278 [00:10:27]file doc_00227279 [00:10:27]remove file /storage/0533/doc_00227279 [00:10:27]file doc_00227280 [00:10:27]remove file /storage/0533/doc_00227280 [00:10:27]file doc_00227281 [00:10:27]remove file /storage/0533/doc_00227281 [00:10:27]file doc_00227282 [00:10:27]remove file /storage/0533/doc_00227282 [00:10:27]file doc_00227283 [00:10:27]remove file /storage/0533/doc_00227283 [00:10:27]file doc_00227284 [00:10:27]remove file /storage/0533/doc_00227284 [00:10:27]file doc_00227285 [00:10:27]remove file /storage/0533/doc_00227285 [00:10:27]file doc_00227286 [00:10:27]remove file /storage/0533/doc_00227286 [00:10:27]file doc_00227287 [00:10:27]remove file /storage/0533/doc_00227287 [00:10:27]file doc_00227288 [00:10:27]remove file /storage/0533/doc_00227288 [00:10:27]file doc_00227289 [00:10:27]remove file /storage/0533/doc_00227289 [00:10:27]file doc_00227290 [00:10:27]remove file /storage/0533/doc_00227290 [00:10:27]file doc_00227291 [00:10:27]remove file /storage/0533/doc_00227291 [00:10:27]file doc_00227292 [00:10:27]remove file /storage/0533/doc_00227292 [00:10:27]file doc_00227293 [00:10:27]remove file /storage/0533/doc_00227293 [00:10:27]file doc_00227294 [00:10:27]remove file /storage/0533/doc_00227294 [00:10:27]file doc_00227295 [00:10:27]remove file /storage/0533/doc_00227295 [00:10:27]file doc_00227296 [00:10:27]remove file /storage/0533/doc_00227296 [00:10:27]file doc_00227297 [00:10:27]remove file /storage/0533/doc_00227297 [00:10:27]file doc_00227298 [00:10:27]remove file /storage/0533/doc_00227298 [00:10:27]file doc_00227299 [00:10:27]remove file /storage/0533/doc_00227299 [00:10:27]file doc_00227300 [00:10:27]remove file /storage/0533/doc_00227300 [00:10:27]file doc_00227301 [00:10:27]remove file /storage/0533/doc_00227301 [00:10:27]file doc_00227302 [00:10:27]remove file /storage/0533/doc_00227302 [00:10:27]file doc_00227303 [00:10:27]remove file /storage/0533/doc_00227303 [00:10:27]file doc_00227304 [00:10:27]remove file /storage/0533/doc_00227304 [00:10:27]file doc_00227305 [00:10:27]remove file /storage/0533/doc_00227305 [00:10:27]file doc_00227306 [00:10:27]remove file /storage/0533/doc_00227306 [00:10:27]file doc_00227307 [00:10:27]remove file /storage/0533/doc_00227307 [00:10:27]file doc_00227308 [00:10:27]remove file /storage/0533/doc_00227308 [00:10:27]file doc_00227309 [00:10:27]remove file /storage/0533/doc_00227309 [00:10:27]file doc_00227310 [00:10:27]remove file /storage/0533/doc_00227310 [00:10:27]file doc_00227311 [00:10:27]remove file /storage/0533/doc_00227311 [00:10:27]file doc_00227312 [00:10:27]remove file /storage/0533/doc_00227312 [00:10:27]file doc_00227313 [00:10:27]remove file /storage/0533/doc_00227313 [00:10:27]file doc_00227314 [00:10:27]remove file /storage/0533/doc_00227314 [00:10:27]file doc_00227315 [00:10:27]remove file /storage/0533/doc_00227315 [00:10:27]file doc_00227316 [00:10:27]remove file /storage/0533/doc_00227316 [00:10:28]file doc_00227317 [00:10:28]remove file /storage/0533/doc_00227317 [00:10:28]file doc_00227318 [00:10:28]remove file /storage/0533/doc_00227318 [00:10:28]file doc_00227319 [00:10:28]remove file /storage/0533/doc_00227319 [00:10:28]file doc_00227320 [00:10:28]remove file /storage/0533/doc_00227320 [00:10:28]file doc_00227321 [00:10:28]remove file /storage/0533/doc_00227321 [00:10:28]file doc_00227322 [00:10:28]remove file /storage/0533/doc_00227322 [00:10:28]file doc_00227323 [00:10:28]remove file /storage/0533/doc_00227323 [00:10:28]file doc_00227324 [00:10:28]remove file /storage/0533/doc_00227324 [00:10:28]file doc_00227325 [00:10:28]remove file /storage/0533/doc_00227325 [00:10:28]file doc_00227326 [00:10:28]remove file /storage/0533/doc_00227326 [00:10:28]file doc_00227327 [00:10:28]remove file /storage/0533/doc_00227327 [00:10:28]file doc_00227328 [00:10:28]remove file /storage/0533/doc_00227328 [00:10:28]file doc_00227329 [00:10:28]remove file /storage/0533/doc_00227329 [00:10:28]file doc_00227330 [00:10:28]remove file /storage/0533/doc_00227330 [00:10:28]file doc_00227331 [00:10:28]remove file /storage/0533/doc_00227331 [00:10:28]file doc_00227332 [00:10:28]remove file /storage/0533/doc_00227332 [00:10:28]file doc_00227333 [00:10:28]remove file /storage/0533/doc_00227333 [00:10:28]file doc_00227334 [00:10:28]remove file /storage/0533/doc_00227334 [00:10:28]file doc_00227335 [00:10:28]remove file /storage/0533/doc_00227335 [00:10:28]file doc_00227336 [00:10:28]remove file /storage/0533/doc_00227336 [00:10:28]file doc_00227337 [00:10:28]remove file /storage/0533/doc_00227337 [00:10:28]file doc_00227338 [00:10:28]remove file /storage/0533/doc_00227338 [00:10:28]file doc_00227339 [00:10:28]remove file /storage/0533/doc_00227339 [00:10:28]file doc_00227340 [00:10:28]remove file /storage/0533/doc_00227340 [00:10:28]file doc_00227341 [00:10:28]remove file /storage/0533/doc_00227341 [00:10:28]file doc_00227342 [00:10:28]remove file /storage/0533/doc_00227342 [00:10:28]file doc_00227343 [00:10:28]remove file /storage/0533/doc_00227343 [00:10:28]file doc_00227344 [00:10:28]remove file /storage/0533/doc_00227344 [00:10:28]file doc_00227345 [00:10:28]remove file /storage/0533/doc_00227345 [00:10:28]file doc_00227346 [00:10:28]remove file /storage/0533/doc_00227346 [00:10:28]file doc_00227347 [00:10:28]remove file /storage/0533/doc_00227347 [00:10:28]file doc_00227348 [00:10:28]remove file /storage/0533/doc_00227348 [00:10:28]file doc_00227349 [00:10:28]remove file /storage/0533/doc_00227349 [00:10:28]file doc_00227350 [00:10:28]remove file /storage/0533/doc_00227350 [00:10:28]file doc_00227351 [00:10:28]remove file /storage/0533/doc_00227351 [00:10:28]file doc_00227352 [00:10:28]remove file /storage/0533/doc_00227352 [00:10:28]file doc_00227353 [00:10:28]remove file /storage/0533/doc_00227353 [00:10:28]file doc_00227354 [00:10:28]remove file /storage/0533/doc_00227354 [00:10:28]file doc_00227355 [00:10:28]remove file /storage/0533/doc_00227355 [00:10:28]file doc_00227356 [00:10:28]remove file /storage/0533/doc_00227356 [00:10:28]file doc_00227357 [00:10:28]remove file /storage/0533/doc_00227357 [00:10:28]file doc_00227358 [00:10:28]remove file /storage/0533/doc_00227358 [00:10:28]file doc_00227359 [00:10:28]remove file /storage/0533/doc_00227359 [00:10:28]file doc_00227360 [00:10:28]remove file /storage/0533/doc_00227360 [00:10:28]file doc_00227361 [00:10:28]remove file /storage/0533/doc_00227361 [00:10:28]file doc_00227362 [00:10:28]remove file /storage/0533/doc_00227362 [00:10:28]file doc_00227363 [00:10:28]remove file /storage/0533/doc_00227363 [00:10:28]file doc_00227364 [00:10:28]remove file /storage/0533/doc_00227364 [00:10:28]file doc_00227365 [00:10:28]remove file /storage/0533/doc_00227365 [00:10:28]file doc_00227366 [00:10:28]remove file /storage/0533/doc_00227366 [00:10:28]file doc_00227367 [00:10:28]remove file /storage/0533/doc_00227367 [00:10:28]file doc_00227368 [00:10:28]remove file /storage/0533/doc_00227368 [00:10:28]file doc_00227369 [00:10:28]remove file /storage/0533/doc_00227369 [00:10:28]file doc_00227370 [00:10:28]remove file /storage/0533/doc_00227370 [00:10:28]file doc_00227371 [00:10:28]remove file /storage/0533/doc_00227371 [00:10:28]file doc_00227372 [00:10:28]remove file /storage/0533/doc_00227372 [00:10:28]file doc_00227373 [00:10:28]remove file /storage/0533/doc_00227373 [00:10:28]file doc_00227374 [00:10:28]remove file /storage/0533/doc_00227374 [00:10:28]file doc_00227375 [00:10:28]remove file /storage/0533/doc_00227375 [00:10:28]file doc_00227376 [00:10:28]remove file /storage/0533/doc_00227376 [00:10:28]file doc_00227377 [00:10:28]remove file /storage/0533/doc_00227377 [00:10:28]file doc_00227378 [00:10:28]remove file /storage/0533/doc_00227378 [00:10:28]file doc_00227379 [00:10:28]remove file /storage/0533/doc_00227379 [00:10:28]file doc_00227380 [00:10:28]remove file /storage/0533/doc_00227380 [00:10:28]file doc_00227381 [00:10:28]remove file /storage/0533/doc_00227381 [00:10:28]file doc_00227382 [00:10:28]remove file /storage/0533/doc_00227382 [00:10:28]file doc_00227383 [00:10:28]remove file /storage/0533/doc_00227383 [00:10:28]file doc_00227384 [00:10:28]remove file /storage/0533/doc_00227384 [00:10:28]file doc_00227385 [00:10:28]remove file /storage/0533/doc_00227385 [00:10:28]file doc_00227386 [00:10:28]remove file /storage/0533/doc_00227386 [00:10:28]file doc_00227387 [00:10:28]remove file /storage/0533/doc_00227387 [00:10:28]file doc_00227388 [00:10:28]remove file /storage/0533/doc_00227388 [00:10:28]file doc_00227389 [00:10:28]remove file /storage/0533/doc_00227389 [00:10:28]file doc_00227390 [00:10:28]remove file /storage/0533/doc_00227390 [00:10:28]file doc_00227391 [00:10:28]remove file /storage/0533/doc_00227391 [00:10:28]file doc_00227392 [00:10:28]remove file /storage/0533/doc_00227392 [00:10:28]file doc_00227393 [00:10:28]remove file /storage/0533/doc_00227393 [00:10:28]file doc_00227394 [00:10:28]remove file /storage/0533/doc_00227394 [00:10:28]file doc_00227395 [00:10:28]remove file /storage/0533/doc_00227395 [00:10:28]file doc_00227396 [00:10:28]remove file /storage/0533/doc_00227396 [00:10:28]file doc_00227397 [00:10:28]remove file /storage/0533/doc_00227397 [00:10:28]file doc_00227398 [00:10:28]remove file /storage/0533/doc_00227398 [00:10:28]file doc_00227399 [00:10:28]remove file /storage/0533/doc_00227399 [00:10:28]file doc_00227400 [00:10:28]remove file /storage/0533/doc_00227400 [00:10:28]file doc_00227401 [00:10:28]remove file /storage/0533/doc_00227401 [00:10:28]file doc_00227402 [00:10:28]remove file /storage/0533/doc_00227402 [00:10:28]file doc_00227403 [00:10:28]remove file /storage/0533/doc_00227403 [00:10:28]file doc_00227404 [00:10:28]remove file /storage/0533/doc_00227404 [00:10:28]file doc_00227405 [00:10:28]remove file /storage/0533/doc_00227405 [00:10:28]file doc_00227406 [00:10:28]remove file /storage/0533/doc_00227406 [00:10:28]file doc_00227407 [00:10:28]remove file /storage/0533/doc_00227407 [00:10:28]file doc_00227408 [00:10:28]remove file /storage/0533/doc_00227408 [00:10:28]file doc_00227409 [00:10:28]remove file /storage/0533/doc_00227409 [00:10:28]file doc_00227410 [00:10:28]remove file /storage/0533/doc_00227410 [00:10:28]file doc_00227411 [00:10:28]remove file /storage/0533/doc_00227411 [00:10:28]file doc_00227412 [00:10:28]remove file /storage/0533/doc_00227412 [00:10:28]file doc_00227413 [00:10:28]remove file /storage/0533/doc_00227413 [00:10:28]file doc_00227414 [00:10:28]remove file /storage/0533/doc_00227414 [00:10:28]file doc_00227415 [00:10:28]remove file /storage/0533/doc_00227415 [00:10:28]file doc_00227416 [00:10:28]remove file /storage/0533/doc_00227416 [00:10:28]file doc_00227417 [00:10:28]remove file /storage/0533/doc_00227417 [00:10:28]file doc_00227418 [00:10:28]remove file /storage/0533/doc_00227418 [00:10:28]file doc_00227419 [00:10:28]remove file /storage/0533/doc_00227419 [00:10:28]file doc_00227420 [00:10:28]remove file /storage/0533/doc_00227420 [00:10:28]file doc_00227421 [00:10:28]remove file /storage/0533/doc_00227421 [00:10:28]file doc_00227422 [00:10:28]remove file /storage/0533/doc_00227422 [00:10:28]file doc_00227423 [00:10:28]remove file /storage/0533/doc_00227423 [00:10:28]file doc_00227424 [00:10:28]remove file /storage/0533/doc_00227424 [00:10:28]file doc_00227425 [00:10:28]remove file /storage/0533/doc_00227425 [00:10:28]file doc_00227426 [00:10:28]remove file /storage/0533/doc_00227426 [00:10:28]file doc_00227427 [00:10:28]remove file /storage/0533/doc_00227427 [00:10:28]file doc_00227428 [00:10:28]remove file /storage/0533/doc_00227428 [00:10:28]file doc_00227429 [00:10:28]remove file /storage/0533/doc_00227429 [00:10:28]file doc_00227430 [00:10:28]remove file /storage/0533/doc_00227430 [00:10:28]file doc_00227431 [00:10:28]remove file /storage/0533/doc_00227431 [00:10:28]file doc_00227432 [00:10:28]remove file /storage/0533/doc_00227432 [00:10:28]file doc_00227433 [00:10:28]remove file /storage/0533/doc_00227433 [00:10:28]file doc_00227434 [00:10:28]remove file /storage/0533/doc_00227434 [00:10:28]file doc_00227435 [00:10:28]remove file /storage/0533/doc_00227435 [00:10:28]file doc_00227436 [00:10:28]remove file /storage/0533/doc_00227436 [00:10:28]file doc_00227437 [00:10:28]remove file /storage/0533/doc_00227437 [00:10:28]file doc_00227438 [00:10:28]remove file /storage/0533/doc_00227438 [00:10:28]file doc_00227439 [00:10:28]remove file /storage/0533/doc_00227439 [00:10:28]file doc_00227440 [00:10:28]remove file /storage/0533/doc_00227440 [00:10:28]file doc_00227441 [00:10:28]remove file /storage/0533/doc_00227441 [00:10:28]file doc_00227442 [00:10:28]remove file /storage/0533/doc_00227442 [00:10:28]file doc_00227443 [00:10:28]remove file /storage/0533/doc_00227443 [00:10:28]file doc_00227444 [00:10:28]remove file /storage/0533/doc_00227444 [00:10:28]file doc_00227445 [00:10:28]remove file /storage/0533/doc_00227445 [00:10:28]file doc_00227446 [00:10:28]remove file /storage/0533/doc_00227446 [00:10:28]file doc_00227447 [00:10:28]remove file /storage/0533/doc_00227447 [00:10:28]file doc_00227448 [00:10:28]remove file /storage/0533/doc_00227448 [00:10:28]file doc_00227449 [00:10:28]remove file /storage/0533/doc_00227449 [00:10:28]file doc_00227450 [00:10:28]remove file /storage/0533/doc_00227450 [00:10:28]file doc_00227451 [00:10:28]remove file /storage/0533/doc_00227451 [00:10:28]file doc_00227452 [00:10:28]remove file /storage/0533/doc_00227452 [00:10:28]file doc_00227453 [00:10:28]remove file /storage/0533/doc_00227453 [00:10:28]file doc_00227454 [00:10:28]remove file /storage/0533/doc_00227454 [00:10:28]file doc_00227455 [00:10:28]remove file /storage/0533/doc_00227455 [00:10:28]file doc_00227456 [00:10:28]remove file /storage/0533/doc_00227456 [00:10:28]file doc_00227457 [00:10:28]remove file /storage/0533/doc_00227457 [00:10:28]file doc_00227458 [00:10:28]remove file /storage/0533/doc_00227458 [00:10:28]file doc_00227459 [00:10:28]remove file /storage/0533/doc_00227459 [00:10:28]file doc_00227460 [00:10:28]remove file /storage/0533/doc_00227460 [00:10:28]file doc_00227461 [00:10:28]remove file /storage/0533/doc_00227461 [00:10:28]file doc_00227462 [00:10:28]remove file /storage/0533/doc_00227462 [00:10:28]file doc_00227463 [00:10:28]remove file /storage/0533/doc_00227463 [00:10:28]file doc_00227464 [00:10:28]remove file /storage/0533/doc_00227464 [00:10:28]file doc_00227465 [00:10:28]remove file /storage/0533/doc_00227465 [00:10:28]file doc_00227466 [00:10:28]remove file /storage/0533/doc_00227466 [00:10:28]file doc_00227467 [00:10:28]remove file /storage/0533/doc_00227467 [00:10:28]file doc_00227468 [00:10:28]remove file /storage/0533/doc_00227468 [00:10:28]file doc_00227469 [00:10:28]remove file /storage/0533/doc_00227469 [00:10:28]file doc_00227470 [00:10:28]remove file /storage/0533/doc_00227470 [00:10:28]file doc_00227471 [00:10:28]remove file /storage/0533/doc_00227471 [00:10:28]file doc_00227472 [00:10:28]remove file /storage/0533/doc_00227472 [00:10:28]file doc_00227473 [00:10:28]remove file /storage/0533/doc_00227473 [00:10:28]file doc_00227474 [00:10:28]remove file /storage/0533/doc_00227474 [00:10:28]file doc_00227475 [00:10:28]remove file /storage/0533/doc_00227475 [00:10:28]file doc_00227476 [00:10:28]remove file /storage/0533/doc_00227476 [00:10:28]file doc_00227477 [00:10:28]remove file /storage/0533/doc_00227477 [00:10:28]file doc_00227478 [00:10:28]remove file /storage/0533/doc_00227478 [00:10:28]file doc_00227479 [00:10:28]remove file /storage/0533/doc_00227479 [00:10:28]file doc_00227480 [00:10:28]remove file /storage/0533/doc_00227480 [00:10:28]file doc_00227481 [00:10:28]remove file /storage/0533/doc_00227481 [00:10:28]file doc_00227482 [00:10:28]remove file /storage/0533/doc_00227482 [00:10:28]file doc_00227483 [00:10:28]remove file /storage/0533/doc_00227483 [00:10:28]file doc_00227484 [00:10:28]remove file /storage/0533/doc_00227484 [00:10:28]file doc_00227485 [00:10:28]remove file /storage/0533/doc_00227485 [00:10:28]file doc_00227486 [00:10:28]remove file /storage/0533/doc_00227486 [00:10:28]file doc_00227487 [00:10:28]remove file /storage/0533/doc_00227487 [00:10:28]file doc_00227488 [00:10:28]remove file /storage/0533/doc_00227488 [00:10:28]file doc_00227489 [00:10:28]remove file /storage/0533/doc_00227489 [00:10:28]file doc_00227490 [00:10:28]remove file /storage/0533/doc_00227490 [00:10:28]file doc_00227491 [00:10:28]remove file /storage/0533/doc_00227491 [00:10:28]file doc_00227492 [00:10:28]remove file /storage/0533/doc_00227492 [00:10:28]file doc_00227493 [00:10:28]remove file /storage/0533/doc_00227493 [00:10:28]file doc_00227494 [00:10:28]remove file /storage/0533/doc_00227494 [00:10:28]file doc_00227495 [00:10:28]remove file /storage/0533/doc_00227495 [00:10:28]file doc_00227496 [00:10:28]remove file /storage/0533/doc_00227496 [00:10:28]file doc_00227497 [00:10:28]remove file /storage/0533/doc_00227497 [00:10:28]file doc_00227498 [00:10:28]remove file /storage/0533/doc_00227498 [00:10:28]file doc_00227499 [00:10:28]remove file /storage/0533/doc_00227499 [00:10:28]file doc_00227500 [00:10:28]remove file /storage/0533/doc_00227500 [00:10:28]file doc_00227501 [00:10:29]remove file /storage/0533/doc_00227501 [00:10:29]file doc_00227502 [00:10:29]remove file /storage/0533/doc_00227502 [00:10:29]file doc_00227503 [00:10:29]remove file /storage/0533/doc_00227503 [00:10:29]file doc_00227504 [00:10:29]remove file /storage/0533/doc_00227504 [00:10:29]file doc_00227505 [00:10:29]remove file /storage/0533/doc_00227505 [00:10:29]file doc_00227506 [00:10:29]remove file /storage/0533/doc_00227506 [00:10:29]file doc_00227507 [00:10:29]remove file /storage/0533/doc_00227507 [00:10:29]file doc_00227508 [00:10:29]remove file /storage/0533/doc_00227508 [00:10:29]file doc_00227509 [00:10:29]remove file /storage/0533/doc_00227509 [00:10:29]file doc_00227510 [00:10:29]remove file /storage/0533/doc_00227510 [00:10:29]file doc_00227511 [00:10:29]remove file /storage/0533/doc_00227511 [00:10:29]file doc_00227512 [00:10:29]remove file /storage/0533/doc_00227512 [00:10:29]file doc_00227513 [00:10:29]remove file /storage/0533/doc_00227513 [00:10:29]file doc_00227514 [00:10:29]remove file /storage/0533/doc_00227514 [00:10:29]file doc_00227515 [00:10:29]remove file /storage/0533/doc_00227515 [00:10:29]file doc_00227516 [00:10:29]remove file /storage/0533/doc_00227516 [00:10:29]file doc_00227517 [00:10:29]remove file /storage/0533/doc_00227517 [00:10:29]file doc_00227518 [00:10:29]remove file /storage/0533/doc_00227518 [00:10:29]file doc_00227519 [00:10:29]remove file /storage/0533/doc_00227519 [00:10:29]file doc_00227520 [00:10:29]remove file /storage/0533/doc_00227520 [00:10:29]file doc_00227521 [00:10:29]remove file /storage/0533/doc_00227521 [00:10:29]file doc_00227522 [00:10:29]remove file /storage/0533/doc_00227522 [00:10:29]file doc_00227523 [00:10:29]remove file /storage/0533/doc_00227523 [00:10:29]file doc_00227524 [00:10:29]remove file /storage/0533/doc_00227524 [00:10:29]file doc_00227525 [00:10:29]remove file /storage/0533/doc_00227525 [00:10:29]file doc_00227526 [00:10:29]remove file /storage/0533/doc_00227526 [00:10:29]file doc_00227527 [00:10:29]remove file /storage/0533/doc_00227527 [00:10:29]file doc_00227528 [00:10:29]remove file /storage/0533/doc_00227528 [00:10:29]file doc_00227529 [00:10:29]remove file /storage/0533/doc_00227529 [00:10:29]file doc_00227530 [00:10:29]remove file /storage/0533/doc_00227530 [00:10:29]file doc_00227531 [00:10:29]remove file /storage/0533/doc_00227531 [00:10:29]file doc_00227532 [00:10:29]remove file /storage/0533/doc_00227532 [00:10:29]file doc_00227533 [00:10:29]remove file /storage/0533/doc_00227533 [00:10:29]file doc_00227534 [00:10:29]remove file /storage/0533/doc_00227534 [00:10:29]file doc_00227535 [00:10:29]remove file /storage/0533/doc_00227535 [00:10:29]file doc_00227536 [00:10:29]remove file /storage/0533/doc_00227536 [00:10:29]file doc_00227537 [00:10:29]remove file /storage/0533/doc_00227537 [00:10:29]file doc_00227538 [00:10:29]remove file /storage/0533/doc_00227538 [00:10:29]file doc_00227539 [00:10:29]remove file /storage/0533/doc_00227539 [00:10:29]file doc_00227540 [00:10:29]remove file /storage/0533/doc_00227540 [00:10:29]file doc_00227541 [00:10:29]remove file /storage/0533/doc_00227541 [00:10:29]file doc_00227542 [00:10:29]remove file /storage/0533/doc_00227542 [00:10:29]file doc_00227543 [00:10:29]remove file /storage/0533/doc_00227543 [00:10:29]file doc_00227544 [00:10:29]remove file /storage/0533/doc_00227544 [00:10:29]file doc_00227545 [00:10:29]remove file /storage/0533/doc_00227545 [00:10:29]file doc_00227546 [00:10:29]remove file /storage/0533/doc_00227546 [00:10:29]file doc_00227547 [00:10:29]remove file /storage/0533/doc_00227547 [00:10:29]file doc_00227548 [00:10:29]remove file /storage/0533/doc_00227548 [00:10:29]file doc_00227549 [00:10:29]remove file /storage/0533/doc_00227549 [00:10:29]file doc_00227550 [00:10:29]remove file /storage/0533/doc_00227550 [00:10:29]file doc_00227551 [00:10:29]remove file /storage/0533/doc_00227551 [00:10:29]file doc_00227552 [00:10:29]remove file /storage/0533/doc_00227552 [00:10:29]file doc_00227553 [00:10:29]remove file /storage/0533/doc_00227553 [00:10:29]OFD Sender: No OFD packet to send [00:10:29]file doc_00227554 [00:10:29]remove file /storage/0533/doc_00227554 [00:10:29]file doc_00227555 [00:10:29]remove file /storage/0533/doc_00227555 [00:10:29]file doc_00227556 [00:10:29]remove file /storage/0533/doc_00227556 [00:10:29]file doc_00227557 [00:10:29]remove file /storage/0533/doc_00227557 [00:10:29]file doc_00227558 [00:10:29]remove file /storage/0533/doc_00227558 [00:10:29]file doc_00227559 [00:10:29]remove file /storage/0533/doc_00227559 [00:10:29]file doc_00227560 [00:10:29]remove file /storage/0533/doc_00227560 [00:10:29]file doc_00227561 [00:10:29]remove file /storage/0533/doc_00227561 [00:10:29]file doc_00227562 [00:10:29]remove file /storage/0533/doc_00227562 [00:10:29]file doc_00227563 [00:10:29]remove file /storage/0533/doc_00227563 [00:10:29]file doc_00227564 [00:10:29]remove file /storage/0533/doc_00227564 [00:10:29]file doc_00227565 [00:10:29]remove file /storage/0533/doc_00227565 [00:10:29]file doc_00227566 [00:10:29]remove file /storage/0533/doc_00227566 [00:10:29]file doc_00227567 [00:10:29]remove file /storage/0533/doc_00227567 [00:10:29]file doc_00227568 [00:10:29]remove file /storage/0533/doc_00227568 [00:10:29]file doc_00227569 [00:10:29]remove file /storage/0533/doc_00227569 [00:10:29]file doc_00227570 [00:10:29]remove file /storage/0533/doc_00227570 [00:10:29]file doc_00227571 [00:10:29]remove file /storage/0533/doc_00227571 [00:10:29]file doc_00227572 [00:10:29]remove file /storage/0533/doc_00227572 [00:10:29]file doc_00227573 [00:10:29]remove file /storage/0533/doc_00227573 [00:10:29]file doc_00227574 [00:10:29]remove file /storage/0533/doc_00227574 [00:10:29]file doc_00227575 [00:10:29]remove file /storage/0533/doc_00227575 [00:10:29]file doc_00227576 [00:10:29]remove file /storage/0533/doc_00227576 [00:10:29]file doc_00227577 [00:10:29]remove file /storage/0533/doc_00227577 [00:10:29]file doc_00227578 [00:10:29]remove file /storage/0533/doc_00227578 [00:10:29]file doc_00227579 [00:10:29]remove file /storage/0533/doc_00227579 [00:10:29]file doc_00227580 [00:10:29]remove file /storage/0533/doc_00227580 [00:10:29]file doc_00227581 [00:10:29]remove file /storage/0533/doc_00227581 [00:10:29]file doc_00227582 [00:10:29]remove file /storage/0533/doc_00227582 [00:10:29]file doc_00227583 [00:10:29]remove file /storage/0533/doc_00227583 [00:10:29]file doc_00227584 [00:10:29]remove file /storage/0533/doc_00227584 [00:10:29]file doc_00227585 [00:10:29]remove file /storage/0533/doc_00227585 [00:10:29]file doc_00227586 [00:10:29]remove file /storage/0533/doc_00227586 [00:10:29]file doc_00227587 [00:10:29]remove file /storage/0533/doc_00227587 [00:10:29]file doc_00227588 [00:10:29]remove file /storage/0533/doc_00227588 [00:10:29]file doc_00227589 [00:10:29]remove file /storage/0533/doc_00227589 [00:10:29]file doc_00227590 [00:10:29]remove file /storage/0533/doc_00227590 [00:10:29]file doc_00227591 [00:10:29]remove file /storage/0533/doc_00227591 [00:10:29]file doc_00227592 [00:10:29]remove file /storage/0533/doc_00227592 [00:10:29]file doc_00227593 [00:10:29]remove file /storage/0533/doc_00227593 [00:10:29]file doc_00227594 [00:10:29]remove file /storage/0533/doc_00227594 [00:10:29]file doc_00227595 [00:10:29]remove file /storage/0533/doc_00227595 [00:10:29]file doc_00227596 [00:10:29]remove file /storage/0533/doc_00227596 [00:10:29]file doc_00227597 [00:10:29]remove file /storage/0533/doc_00227597 [00:10:29]file doc_00227598 [00:10:29]remove file /storage/0533/doc_00227598 [00:10:29]file doc_00227599 [00:10:29]remove file /storage/0533/doc_00227599 [00:10:29]file doc_00227600 [00:10:29]remove file /storage/0533/doc_00227600 [00:10:29]file doc_00227601 [00:10:29]remove file /storage/0533/doc_00227601 [00:10:29]file doc_00227602 [00:10:29]remove file /storage/0533/doc_00227602 [00:10:29]file doc_00227603 [00:10:29]remove file /storage/0533/doc_00227603 [00:10:29]file doc_00227604 [00:10:29]remove file /storage/0533/doc_00227604 [00:10:29]file doc_00227605 [00:10:29]remove file /storage/0533/doc_00227605 [00:10:29]file doc_00227606 [00:10:29]remove file /storage/0533/doc_00227606 [00:10:29]file doc_00227607 [00:10:29]remove file /storage/0533/doc_00227607 [00:10:29]file doc_00227608 [00:10:29]remove file /storage/0533/doc_00227608 [00:10:29]file doc_00227609 [00:10:29]remove file /storage/0533/doc_00227609 [00:10:29]file doc_00227610 [00:10:29]remove file /storage/0533/doc_00227610 [00:10:29]file doc_00227611 [00:10:29]remove file /storage/0533/doc_00227611 [00:10:29]file doc_00227612 [00:10:29]remove file /storage/0533/doc_00227612 [00:10:29]file doc_00227613 [00:10:29]remove file /storage/0533/doc_00227613 [00:10:29]file doc_00227614 [00:10:29]remove file /storage/0533/doc_00227614 [00:10:29]file doc_00227615 [00:10:29]remove file /storage/0533/doc_00227615 [00:10:29]file doc_00227616 [00:10:29]remove file /storage/0533/doc_00227616 [00:10:29]file doc_00227617 [00:10:29]remove file /storage/0533/doc_00227617 [00:10:29]file doc_00227618 [00:10:29]remove file /storage/0533/doc_00227618 [00:10:29]file doc_00227619 [00:10:29]remove file /storage/0533/doc_00227619 [00:10:29]file doc_00227620 [00:10:29]remove file /storage/0533/doc_00227620 [00:10:29]file doc_00227621 [00:10:29]remove file /storage/0533/doc_00227621 [00:10:29]file doc_00227622 [00:10:29]remove file /storage/0533/doc_00227622 [00:10:29]file doc_00227623 [00:10:29]remove file /storage/0533/doc_00227623 [00:10:29]file doc_00227624 [00:10:29]remove file /storage/0533/doc_00227624 [00:10:29]file doc_00227625 [00:10:29]remove file /storage/0533/doc_00227625 [00:10:29]file doc_00227626 [00:10:29]remove file /storage/0533/doc_00227626 [00:10:29]file doc_00227627 [00:10:29]remove file /storage/0533/doc_00227627 [00:10:29]file doc_00227628 [00:10:29]remove file /storage/0533/doc_00227628 [00:10:29]file doc_00227629 [00:10:29]remove file /storage/0533/doc_00227629 [00:10:29]file doc_00227630 [00:10:29]remove file /storage/0533/doc_00227630 [00:10:29]file doc_00227631 [00:10:29]remove file /storage/0533/doc_00227631 [00:10:29]file doc_00227632 [00:10:29]remove file /storage/0533/doc_00227632 [00:10:29]file doc_00227633 [00:10:29]remove file /storage/0533/doc_00227633 [00:10:29]file doc_00227634 [00:10:29]remove file /storage/0533/doc_00227634 [00:10:29]file doc_00227635 [00:10:29]remove file /storage/0533/doc_00227635 [00:10:29]file doc_00227636 [00:10:29]remove file /storage/0533/doc_00227636 [00:10:29]file doc_00227637 [00:10:29]remove file /storage/0533/doc_00227637 [00:10:29]file doc_00227638 [00:10:29]remove file /storage/0533/doc_00227638 [00:10:29]file doc_00227639 [00:10:29]remove file /storage/0533/doc_00227639 [00:10:29]file doc_00227640 [00:10:29]remove file /storage/0533/doc_00227640 [00:10:29]file doc_00227641 [00:10:29]remove file /storage/0533/doc_00227641 [00:10:29]file doc_00227642 [00:10:29]remove file /storage/0533/doc_00227642 [00:10:29]file doc_00227643 [00:10:29]remove file /storage/0533/doc_00227643 [00:10:29]file doc_00227644 [00:10:29]remove file /storage/0533/doc_00227644 [00:10:29]file doc_00227645 [00:10:29]remove file /storage/0533/doc_00227645 [00:10:29]file doc_00227646 [00:10:29]remove file /storage/0533/doc_00227646 [00:10:29]file doc_00227647 [00:10:29]remove file /storage/0533/doc_00227647 [00:10:29]file doc_00227648 [00:10:29]remove file /storage/0533/doc_00227648 [00:10:29]file doc_00227649 [00:10:29]remove file /storage/0533/doc_00227649 [00:10:29]file doc_00227650 [00:10:29]remove file /storage/0533/doc_00227650 [00:10:29]file doc_00227651 [00:10:29]remove file /storage/0533/doc_00227651 [00:10:29]file doc_00227652 [00:10:29]remove file /storage/0533/doc_00227652 [00:10:29]file doc_00227653 [00:10:29]remove file /storage/0533/doc_00227653 [00:10:29]file doc_00227654 [00:10:29]remove file /storage/0533/doc_00227654 [00:10:29]file doc_00227655 [00:10:29]remove file /storage/0533/doc_00227655 [00:10:29]file doc_00227656 [00:10:29]remove file /storage/0533/doc_00227656 [00:10:29]file doc_00227657 [00:10:29]remove file /storage/0533/doc_00227657 [00:10:29]file doc_00227658 [00:10:29]remove file /storage/0533/doc_00227658 [00:10:29]file doc_00227659 [00:10:29]remove file /storage/0533/doc_00227659 [00:10:29]file doc_00227660 [00:10:29]remove file /storage/0533/doc_00227660 [00:10:29]file doc_00227661 [00:10:29]remove file /storage/0533/doc_00227661 [00:10:29]file doc_00227662 [00:10:29]remove file /storage/0533/doc_00227662 [00:10:29]file doc_00227663 [00:10:29]remove file /storage/0533/doc_00227663 [00:10:29]file doc_00227664 [00:10:29]remove file /storage/0533/doc_00227664 [00:10:29]file doc_00227665 [00:10:29]remove file /storage/0533/doc_00227665 [00:10:29]file doc_00227666 [00:10:29]remove file /storage/0533/doc_00227666 [00:10:29]file doc_00227667 [00:10:29]remove file /storage/0533/doc_00227667 [00:10:29]file doc_00227668 [00:10:29]remove file /storage/0533/doc_00227668 [00:10:29]file doc_00227669 [00:10:29]remove file /storage/0533/doc_00227669 [00:10:29]file doc_00227670 [00:10:29]remove file /storage/0533/doc_00227670 [00:10:29]file doc_00227671 [00:10:29]remove file /storage/0533/doc_00227671 [00:10:29]file doc_00227672 [00:10:29]remove file /storage/0533/doc_00227672 [00:10:29]file doc_00227673 [00:10:29]remove file /storage/0533/doc_00227673 [00:10:29]file doc_00227674 [00:10:29]remove file /storage/0533/doc_00227674 [00:10:29]file doc_00227675 [00:10:29]remove file /storage/0533/doc_00227675 [00:10:29]file doc_00227676 [00:10:29]remove file /storage/0533/doc_00227676 [00:10:29]file doc_00227677 [00:10:29]remove file /storage/0533/doc_00227677 [00:10:29]file doc_00227678 [00:10:29]remove file /storage/0533/doc_00227678 [00:10:29]file doc_00227679 [00:10:29]remove file /storage/0533/doc_00227679 [00:10:29]file doc_00227680 [00:10:29]remove file /storage/0533/doc_00227680 [00:10:29]file doc_00227681 [00:10:29]remove file /storage/0533/doc_00227681 [00:10:29]file doc_00227682 [00:10:29]remove file /storage/0533/doc_00227682 [00:10:29]file doc_00227683 [00:10:29]remove file /storage/0533/doc_00227683 [00:10:29]file doc_00227684 [00:10:29]remove file /storage/0533/doc_00227684 [00:10:29]file doc_00227685 [00:10:29]remove file /storage/0533/doc_00227685 [00:10:29]file doc_00227686 [00:10:29]remove file /storage/0533/doc_00227686 [00:10:29]file doc_00227687 [00:10:29]remove file /storage/0533/doc_00227687 [00:10:29]file doc_00227688 [00:10:29]remove file /storage/0533/doc_00227688 [00:10:29]file doc_00227689 [00:10:29]remove file /storage/0533/doc_00227689 [00:10:29]file doc_00227690 [00:10:29]remove file /storage/0533/doc_00227690 [00:10:29]file doc_00227691 [00:10:29]remove file /storage/0533/doc_00227691 [00:10:29]file doc_00227692 [00:10:29]remove file /storage/0533/doc_00227692 [00:10:29]file doc_00227693 [00:10:29]remove file /storage/0533/doc_00227693 [00:10:29]file doc_00227694 [00:10:29]remove file /storage/0533/doc_00227694 [00:10:29]file doc_00227695 [00:10:29]remove file /storage/0533/doc_00227695 [00:10:29]file doc_00227696 [00:10:29]remove file /storage/0533/doc_00227696 [00:10:29]file doc_00227697 [00:10:29]remove file /storage/0533/doc_00227697 [00:10:29]file doc_00227698 [00:10:29]remove file /storage/0533/doc_00227698 [00:10:29]file doc_00227699 [00:10:29]remove file /storage/0533/doc_00227699 [00:10:29]file doc_00227700 [00:10:29]remove file /storage/0533/doc_00227700 [00:10:29]file doc_00227701 [00:10:29]remove file /storage/0533/doc_00227701 [00:10:29]file doc_00227702 [00:10:29]remove file /storage/0533/doc_00227702 [00:10:29]file doc_00227703 [00:10:29]remove file /storage/0533/doc_00227703 [00:10:29]file doc_00227704 [00:10:29]remove file /storage/0533/doc_00227704 [00:10:29]file doc_00227705 [00:10:29]remove file /storage/0533/doc_00227705 [00:10:29]file doc_00227706 [00:10:29]remove file /storage/0533/doc_00227706 [00:10:29]file doc_00227707 [00:10:29]remove file /storage/0533/doc_00227707 [00:10:29]file doc_00227708 [00:10:30]remove file /storage/0533/doc_00227708 [00:10:30]file doc_00227709 [00:10:30]remove file /storage/0533/doc_00227709 [00:10:30]file doc_00227710 [00:10:30]remove file /storage/0533/doc_00227710 [00:10:30]file doc_00227711 [00:10:30]remove file /storage/0533/doc_00227711 [00:10:30]file doc_00227712 [00:10:30]remove file /storage/0533/doc_00227712 [00:10:30]file doc_00227713 [00:10:30]remove file /storage/0533/doc_00227713 [00:10:30]file doc_00227714 [00:10:30]remove file /storage/0533/doc_00227714 [00:10:30]file doc_00227715 [00:10:30]remove file /storage/0533/doc_00227715 [00:10:30]file doc_00227716 [00:10:30]remove file /storage/0533/doc_00227716 [00:10:30]file doc_00227717 [00:10:30]remove file /storage/0533/doc_00227717 [00:10:30]file doc_00227718 [00:10:30]remove file /storage/0533/doc_00227718 [00:10:30]file doc_00227719 [00:10:30]remove file /storage/0533/doc_00227719 [00:10:30]file doc_00227720 [00:10:30]remove file /storage/0533/doc_00227720 [00:10:30]file doc_00227721 [00:10:30]remove file /storage/0533/doc_00227721 [00:10:30]file doc_00227722 [00:10:30]remove file /storage/0533/doc_00227722 [00:10:30]file doc_00227723 [00:10:30]remove file /storage/0533/doc_00227723 [00:10:30]file doc_00227724 [00:10:30]remove file /storage/0533/doc_00227724 [00:10:30]file doc_00227725 [00:10:30]remove file /storage/0533/doc_00227725 [00:10:30]file doc_00227726 [00:10:30]remove file /storage/0533/doc_00227726 [00:10:30]file doc_00227727 [00:10:30]remove file /storage/0533/doc_00227727 [00:10:30]file doc_00227728 [00:10:30]remove file /storage/0533/doc_00227728 [00:10:30]file doc_00227729 [00:10:30]remove file /storage/0533/doc_00227729 [00:10:30]file doc_00227730 [00:10:30]remove file /storage/0533/doc_00227730 [00:10:30]remove dir /storage/0533 [00:10:30]ProcessDocumentItem done err = 0, tmpTLVsize=243 [00:10:30]tlvbuf is 00C4A750 [00:10:30]SAM_PROTO_ClearQueue [00:10:30]wFMCommunicate request_size=4 [00:10:30]MH_SAM_APDU [00:10:30]CAPDU: 80 09 00 00 [00:10:30]Write to MH i2c: E2 08 00 53 21 80 09 00 00 00 00 00 00 E6 [00:10:30]Write i2c OK [00:10:30]MH_I2C_Read... [00:10:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:10:30]Read from MH i2c: E2 [00:10:30]MH_I2C_Read... [00:10:30]Read from MH i2c: E2 03 00 [00:10:30]MH_I2C_Read... [00:10:30]Read from MH i2c: E2 03 00 53 21 00 90 00 E8 [00:10:30]RAPDU: 90 00 [00:10:30]wFMCommunicate OK [00:10:30]SAM_PROTO_ClearQueue done [00:10:30]KKMCreateOFDPacket [00:10:30]OFDProtocolAddRootSTLVToBuf [00:10:30]FM_MakeSignedData [00:10:30]FM_MakeSignedData [00:10:30]SAM_PROTO_SignData [00:10:30]wFMCommunicate request_size=4 [00:10:30]MH_SAM_APDU [00:10:30]CAPDU: 80 0D 01 02 [00:10:30]Write to MH i2c: E2 08 00 54 21 80 0D 01 02 00 00 00 00 EE [00:10:30]Write i2c OK [00:10:30]MH_I2C_Read... [00:10:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:10:30]Read from MH i2c: E2 [00:10:30]MH_I2C_Read... [00:10:30]Read from MH i2c: E2 03 00 [00:10:30]MH_I2C_Read... [00:10:30]Read from MH i2c: E2 03 00 54 21 00 90 00 E9 [00:10:30]RAPDU: 90 00 [00:10:30]wFMCommunicate OK [00:10:30]wFMCommunicate request_size=252 [00:10:30]MH_SAM_APDU [00:10:30]CAPDU: 80 0D 02 02 F7 02 00 F3 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1B 00 D0 A2 D0 BE D0 BA D1 82 D0 BE D1 81 D1 83 D0 BD D0 BE D0 B2 D0 B0 20 D0 90 2E 20 F1 03 41 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9C D0 B0 D1 81 D1 8B 2C 20 D1 83 D0 BB 2E 20 D0 9B D0 B5 D0 BD D0 B8 D0 BD D0 B0 20 35 30 2C 20 34 31 2E 30 36 34 36 37 33 2C 20 37 32 2E 36 34 39 31 36 31 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 33 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 F4 9B 15 67 0E 04 04 00 16 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 93 79 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 35 04 06 00 EC 84 94 1A 78 38 [00:10:30]Write to MH i2c: E2 FF 00 55 21 80 0D 02 02 F7 00 02 00 F3 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1B 00 D0 A2 D0 BE D0 BA D1 82 D0 BE D1 81 D1 83 D0 BD D0 BE D0 B2 D0 B0 20 D0 90 2E 20 F1 03 41 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9C D0 B0 D1 81 D1 8B 2C 20 D1 83 D0 BB 2E 20 D0 9B D0 B5 D0 BD D0 B8 D0 BD D0 B0 20 35 30 2C 20 34 31 2E 30 36 34 36 37 33 2C 20 37 32 2E 36 34 39 31 36 31 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 33 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 F4 9B 15 67 0E 04 04 00 16 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 93 79 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 35 04 06 00 EC 84 94 1A 78 38 00 00 E2 [00:10:30]Write i2c OK [00:10:30]MH_I2C_Read... [00:10:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:10:30]Read from MH i2c: E2 [00:10:30]MH_I2C_Read... [00:10:30]Read from MH i2c: E2 03 00 [00:10:30]MH_I2C_Read... [00:10:30]Read from MH i2c: E2 03 00 55 21 00 90 00 EA [00:10:30]RAPDU: 90 00 [00:10:30]wFMCommunicate OK [00:10:30]wFMCommunicate request_size=4 [00:10:30]MH_SAM_APDU [00:10:30]CAPDU: 80 0D 03 02 [00:10:30]Write to MH i2c: E2 08 00 56 21 80 0D 03 02 00 00 00 00 F2 [00:10:30]Write i2c OK [00:10:30]MH_I2C_Read... [00:10:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:10:30]Read from MH i2c: E2 [00:10:30]MH_I2C_Read... [00:10:30]Read from MH i2c: E2 0B 00 [00:10:30]MH_I2C_Read... [00:10:30]Read from MH i2c: E2 0B 00 56 21 00 98 7C 60 0D D7 E3 84 57 90 00 09 [00:10:30]RAPDU: 98 7C 60 0D D7 E3 84 57 90 00 [00:10:30]wFMCommunicate OK [00:10:30]SAM_PROTO_SignData done [00:10:30]FM_MakeSignedData done [00:10:30]CreateOFDProtocolMessage [00:10:30]wFMCommunicate request_size=4 [00:10:30]MH_SAM_APDU [00:10:30]CAPDU: 80 11 00 00 [00:10:30]Write to MH i2c: E2 08 00 57 21 80 11 00 00 00 00 00 00 F2 [00:10:30]Write i2c OK [00:10:30]MH_I2C_Read... [00:10:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:10:30]Read from MH i2c: E2 [00:10:30]MH_I2C_Read... [00:10:30]Read from MH i2c: E2 17 00 [00:10:30]MH_I2C_Read... [00:10:30]Read from MH i2c: E2 17 00 57 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 49 [00:10:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [00:10:30]wFMCommunicate OK [00:10:30]CreateOFDProtocolMessage done [00:10:30]OFDSenderStorePacket 227731 [00:10:30]StoreOFDPacket docnum=227731 [00:10:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 07 01 00 00 B6 C0 FF 00 5D F5 5A 02 01 00 02 00 F3 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1B 00 D0 A2 D0 BE D0 BA D1 82 D0 BE D1 81 D1 83 D0 BD D0 BE D0 B2 D0 B0 20 D0 90 2E 20 F1 03 41 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9C D0 B0 D1 81 D1 8B 2C 20 D1 83 D0 BB 2E 20 D0 9B D0 B5 D0 BD D0 B8 D0 BD D0 B0 20 35 30 2C 20 34 31 2E 30 36 34 36 37 33 2C 20 37 32 2E 36 34 39 31 36 31 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 33 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 F4 9B 15 67 0E 04 04 00 16 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 93 79 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 35 04 06 00 EC 84 94 1A 78 38 98 7C 60 0D D7 E3 84 57 [00:10:30]CheckFolder [00:10:30]dirname=/storage/ofd_packets [00:10:30]CheckFolder done [00:10:30]ProducePacketName [00:10:30]name=ofd_packets/00227731 [00:10:30]NVStorageSaveData ofd_packets/00227731 [00:10:30]File name is /storage/ofd_packets/00227731 [00:10:30]Write 293 bytes [00:10:30]NVStorageSaveData done [00:10:30]OFDSenderStorePacket done [00:10:30]KKMCreateOFDPacket done [00:10:30]NVStorageSaveData kkm_last_timestamp [00:10:30]File name is /storage/kkm_last_timestamp [00:10:30]Write 4 bytes [00:10:30]NVStorageSaveData done [00:10:30]ExternCall_PrintAddStr [00:10:30]wPrintStart [00:10:30]Write to MH i2c: 01 00 00 58 21 79 [00:10:30]Write i2c OK [00:10:30]MH_I2C_Read... [00:10:30]Read from MH i2c: 01 [00:10:30]MH_I2C_Read... [00:10:30]Read from MH i2c: 01 07 00 [00:10:30]MH_I2C_Read... [00:10:30]Read from MH i2c: 01 07 00 58 21 00 00 00 00 00 FF 0F 8E [00:10:30]RasterBufferAndPrint [00:10:30]line Отчет об открытии смены [00:10:30]line ФФД: 1.0 [00:10:30]line ИНН: 02508201610067 [00:10:30]line Кассир: Токтосунова А. [00:10:30]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [00:10:30]line Место: АЗС № 133 "Партнер Нефть" [00:10:30]line 21.10.2024 00:10 [00:10:30]line Смена: 534 [00:10:30]line РНМ: 0000000000091685 [00:10:30]line ЗНМ: 0300000091 [00:10:30]line ФД: 227731 [00:10:30]line ФМ: 0000000000871839 [00:10:30]line ФПД: 260054164600888 [00:10:30]written 0, free lines is 4095 [00:10:31]OFD Sender: Processing packet 227731 [packets to send 38, broken 37] [00:10:31]ProducePacketName [00:10:31]name=ofd_packets/00227731 [00:10:31]OFD Sender: To server: pG, [00:10:31]CommunicateWithHost lk.salyk.kg:30040 [00:10:31]ConnectInit lk.salyk.kg [00:10:31]Connected sock=10 [00:10: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 33 39 07 01 00 00 B6 C0 FF 00 5D F5 5A 02 01 00 02 00 F3 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1B 00 D0 A2 D0 BE D0 BA D1 82 D0 BE D1 81 D1 83 D0 BD D0 BE D0 B2 D0 B0 20 D0 90 2E 20 F1 03 41 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9C D0 B0 D1 81 D1 8B 2C 20 D1 83 D0 BB 2E 20 D0 9B D0 B5 D0 BD D0 B8 D0 BD D0 B0 20 35 30 2C 20 34 31 2E 30 36 34 36 37 33 2C 20 37 32 2E 36 34 39 31 36 31 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 33 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 F4 9B 15 67 0E 04 04 00 16 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 93 79 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 35 04 06 00 EC 84 94 1A 78 38 98 7C 60 0D D7 E3 84 57 [00:10:31]Write to MH i2c: 01 00 00 69 21 8A [00:10:31]Write i2c OK [00:10:31]MH_I2C_Read... [00:10:31]Read from MH i2c: 01 [00:10:31]MH_I2C_Read... [00:10:31]Read from MH i2c: 01 07 00 [00:10:31]MH_I2C_Read... [00:10:31]Read from MH i2c: 01 07 00 69 21 00 00 00 00 00 B2 0E 51 [00:10:31]RasterBufferAndPrint [00:10:31]line [00:10:31]line [00:10:31]line [00:10:31]line [00:10:31]line [00:10:31]written 0, free lines is 3776 [00:10:31]MH_Cut [00:10:31]Write to MH i2c: D1 01 00 70 21 01 63 [00:10:31]Write i2c OK [00:10:31]MH_I2C_Read... [00:10:31]Read from MH i2c: D1 [00:10:31]MH_I2C_Read... [00:10:31]Read from MH i2c: D1 01 00 [00:10:31]MH_I2C_Read... [00:10:31]Read from MH i2c: D1 01 00 70 21 00 62 [00:10:31]Write to MH i2c: 01 00 00 71 21 92 [00:10:31]Write i2c OK [00:10:31]MH_I2C_Read... [00:10: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 33 39 4F 00 00 00 40 F7 47 00 78 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 93 79 03 00 F4 03 04 00 F4 46 15 67 B6 04 01 00 00 3B 75 98 03 51 C5 F3 99 [00:10:31]CommunicateWithHost err = 0 [00:10:31]CheckOFDResponse [00:10:31]1017 (14) - 77093643461234 [00:10:31]1041 (16) - 0000000000871839 [00:10:31]1040 (4) - 227731 [00:10:31]1012 (4) - 20.10.2024 18:07 [00:10:31]1206 (1) - 0 [00:10:31]OFD Sender: Remove packet 227731 [00:10:31]ProducePacketName [00:10:31]name=ofd_packets/00227731 [00:10:31]NVStorageDeleteData [00:10:31]*** Cut start [00:10:31]*** Partial cut [00:10:31]*** CUTSNS_PIN = 1 [00:10:31]*** CUTSNS_PIN = 0 [00:10:31]OFD Sender: No OFD packet to send [00:10:32]*** Brake cut motor [00:10:32]Read from MH i2c: 01 [00:10:32]MH_I2C_Read... [00:10:32]*** Stop cut motor [00:10:32]*** Cut end [00:10:32]Read from MH i2c: 01 07 00 [00:10:32]MH_I2C_Read... [00:10:32]Read from MH i2c: 01 07 00 71 21 00 00 00 00 00 FF 0F A7 [00:10:32]process_action open_shift done [00:10:32]requested_data is exist [00:10:32]produce_requested_data [00:10:32]requested_item fd.num is exist - process it [00:10:32]SAM_PROTO_GetFieldsCounters [00:10:32]wFMCommunicate request_size=4 [00:10:32]MH_SAM_APDU [00:10:32]CAPDU: 80 13 00 00 [00:10:32]Write to MH i2c: E2 08 00 72 21 80 13 00 00 00 00 00 00 0F [00:10:32]Write i2c OK [00:10:32]MH_I2C_Read... [00:10:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:10:32]Read from MH i2c: E2 [00:10:32]MH_I2C_Read... [00:10:32]Read from MH i2c: E2 62 00 [00:10:32]MH_I2C_Read... [00:10:32]Read from MH i2c: E2 62 00 72 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 93 79 03 00 0E 04 04 00 16 02 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [00: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 93 79 03 00 0E 04 04 00 16 02 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:10:32]wFMCommunicate OK [00:10:32]SAM_PROTO_GetFieldsCounters done [00:10:32]requested_item shift.num is exist - process it [00:10:32]requested_item shift.opened is exist - process it [00:10:32]req_shift_opened [00:10:32]FM_GetShiftState [00:10:32]SAM_PROTO_GetShiftState [00:10:32]wFMCommunicate request_size=4 [00:10:32]MH_SAM_APDU [00:10:32]CAPDU: 80 13 01 00 [00:10:32]Write to MH i2c: E2 08 00 73 21 80 13 01 00 00 00 00 00 11 [00:10:32]Write i2c OK [00:10:32]MH_I2C_Read... [00:10:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:10:32]Read from MH i2c: E2 [00:10:32]MH_I2C_Read... [00:10:32]Read from MH i2c: E2 0E 00 [00:10:32]MH_I2C_Read... [00:10:32]Read from MH i2c: E2 0E 00 73 21 00 09 00 01 F4 9B 15 67 00 00 00 00 90 00 28 [00:10:32]RAPDU: 09 00 01 F4 9B 15 67 00 00 00 00 90 00 [00:10:32]wFMCommunicate OK [00:10:32]SAM_PROTO_GetShiftState done [00:10:32]FM_GetShiftState done [00:10:32]req_shift_opened done [00:10:32]requested_item shift.open_date is exist - process it [00:10:32]req_shift_open_date [00:10:32]req_shift_open_date done [00:10:32]produce_requested_data done [00:10:32]produce_requested_data return {"fd.num":227731,"shift.num":534,"shift.opened":1,"shift.open_date":1729469428} [00:10:32]process_action_free open_shift [00:10:32]json_value_free [00:10:32]json_value_free done [00:10:32]process_json_proto returns [00:10:32]Send response to host [00:10:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":227731,"shift.num":534,"shift.opened":1,"shift.open_date":1729469428}}} [00:10:32]free response buf [00:10:32]execute_script done [00:10:32]execute_script returns [00:10:32]free content buf [00:10:32]Sock 9.Close socket [00:10:32]Sock 9.Thread stoped [00:10:32]accept exits with 7 [00:10:32]New connection [00:10:32]New thread 3066666340 created [00:10:32]Thread 3066809700 joined [00:10:32]Waiting for new connection... [00:10:32] Sock 7.Parse request [00:10:32]Sock 7.Check first char [00:10:32]Sock 7.First char is OK [00:10:32]request: POST /json_proto HTTP/1.0 [00:10:32]Method: POST [00:10:32]URL: /json_proto [00:10:32]Method is POST - this is cgi request [00:10:32]url: /json_proto [00:10:32]query_string will be loaded in cgi processing [00:10:32]execute_cgi json_proto POST (null) [00:10:32]execute_cgi path=json_proto method=POST [00:10:32]POST find Content-Length [00:10:32]Host: 172.17.44.195:8080 [00:10:32]Content-Length: 331 [00:10:32]Content-Type: application/json [00:10:32] [00:10:32]POST finish read [00:10:32]Found Content-Length = 331 [00:10:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:10:32]execute_script... [00:10:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:10:32]POST & json_proto [00:10:32]process_json_proto [00:10:32]json parsed OK: [00:10:32]protocol is kg_v1.0 [00:10:32]action value=get_value [00:10:32]process_action get_value [00:10:32]cmd_get_value [00:10:32]process_action get_value done [00:10:32]requested_data is exist [00:10:32]produce_requested_data [00:10:32]requested_item fm.sale.total is exist - process it [00:10:32]SAM_PROTO_GetFMData [00:10:32]wFMCommunicate request_size=4 [00:10:32]MH_SAM_APDU [00:10:32]CAPDU: 80 13 03 00 [00:10:32]Write to MH i2c: E2 08 00 74 21 80 13 03 00 00 00 00 00 14 [00:10:32]Write i2c OK [00:10:32]MH_I2C_Read... [00:10:33]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:10:33]Read from MH i2c: E2 [00:10:33]MH_I2C_Read... [00:10:33]Read from MH i2c: E2 FD 00 [00:10:33]MH_I2C_Read... [00:10:33]Read from MH i2c: E2 FD 00 74 21 00 C5 04 85 04 C1 04 6E 04 04 00 67 75 03 00 69 04 A3 00 6F 04 04 00 77 6E 03 00 B1 04 05 00 82 A3 B5 C5 04 70 04 05 00 8C 28 2D 4C 04 72 04 04 00 F6 7A 88 79 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 80 F2 C7 81 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 2D 7D D0 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 F0 06 00 00 B1 04 04 00 D8 C0 CF 1E 70 04 04 00 D8 C0 CF 1E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A5 B8 45 03 EF 03 09 90 00 27 [00:10:33]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 67 75 03 00 69 04 A3 00 6F 04 04 00 77 6E 03 00 B1 04 05 00 82 A3 B5 C5 04 70 04 05 00 8C 28 2D 4C 04 72 04 04 00 F6 7A 88 79 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 80 F2 C7 81 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 2D 7D D0 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 F0 06 00 00 B1 04 04 00 D8 C0 CF 1E 70 04 04 00 D8 C0 CF 1E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A5 B8 45 03 EF 03 09 90 00 [00:10:33]wFMCommunicate OK [00:10:33]wFMCommunicate request_size=4 [00:10:33]MH_SAM_APDU [00:10:33]CAPDU: 80 17 00 00 [00:10:33]Write to MH i2c: E2 08 00 75 21 80 17 00 00 00 00 00 00 16 [00:10:33]Write i2c OK [00:10:33]MH_I2C_Read... [00:10:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:33]Read from MH i2c: E2 [00:10:33]MH_I2C_Read... [00:10:33]Read from MH i2c: E2 FD 00 [00:10:33]MH_I2C_Read... [00:10:33]Read from MH i2c: E2 FD 00 75 21 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 CE 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 C6 [00:10:33]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 CE 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:10:33]wFMCommunicate OK [00:10:33]wFMCommunicate request_size=4 [00:10:33]MH_SAM_APDU [00:10:33]CAPDU: 80 17 00 00 [00:10:33]Write to MH i2c: E2 08 00 76 21 80 17 00 00 00 00 00 00 17 [00:10:33]Write i2c OK [00:10:33]MH_I2C_Read... [00:10:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:33]Read from MH i2c: E2 [00:10:33]MH_I2C_Read... [00:10:33]Read from MH i2c: E2 FD 00 [00:10:33]MH_I2C_Read... [00:10:33]Read from MH i2c: E2 FD 00 76 21 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 29 [00:10:34]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:10:34]wFMCommunicate OK [00:10:34]wFMCommunicate request_size=4 [00:10:34]MH_SAM_APDU [00:10:34]CAPDU: 80 17 00 00 [00:10:34]Write to MH i2c: E2 08 00 77 21 80 17 00 00 00 00 00 00 18 [00:10:34]Write i2c OK [00:10:34]MH_I2C_Read... [00:10:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:34]Read from MH i2c: E2 [00:10:34]MH_I2C_Read... [00:10:34]Read from MH i2c: E2 FD 00 [00:10:34]MH_I2C_Read... [00:10:34]Read from MH i2c: E2 FD 00 77 21 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 A4 [00:10:34]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:10:34]wFMCommunicate OK [00:10:34]wFMCommunicate request_size=4 [00:10:34]MH_SAM_APDU [00:10:34]CAPDU: 80 17 00 00 [00:10:34]Write to MH i2c: E2 08 00 78 21 80 17 00 00 00 00 00 00 19 [00:10:34]Write i2c OK [00:10:34]MH_I2C_Read... [00:10:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:10:34]Read from MH i2c: E2 [00:10:34]MH_I2C_Read... [00:10:34]Read from MH i2c: E2 E2 00 [00:10:34]MH_I2C_Read... [00:10:34]Read from MH i2c: E2 E2 00 78 21 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F7 [00:10:34]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:10:34]wFMCommunicate OK [00:10:34]SAM_PROTO_GetFMData done [00:10:34]requested_item fm.sale_refund.total is exist - process it [00:10:34]requested_item fm.buy.total is exist - process it [00:10:34]requested_item shift.sale.total is exist - process it [00:10:34]SAM_PROTO_GetShiftData [00:10:34]wFMCommunicate request_size=4 [00:10:34]MH_SAM_APDU [00:10:34]CAPDU: 80 13 02 00 [00:10:34]Write to MH i2c: E2 08 00 79 21 80 13 02 00 00 00 00 00 18 [00:10:34]Write i2c OK [00:10:34]MH_I2C_Read... [00:10:35]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:10:35]Read from MH i2c: E2 [00:10:35]MH_I2C_Read... [00:10:35]Read from MH i2c: E2 FD 00 [00:10:35]MH_I2C_Read... [00:10:35]Read from MH i2c: E2 FD 00 79 21 00 A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 8B [00:10:35]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [00:10:35]wFMCommunicate OK [00:10:35]wFMCommunicate request_size=4 [00:10:35]MH_SAM_APDU [00:10:35]CAPDU: 80 17 00 00 [00:10:35]Write to MH i2c: E2 08 00 7A 21 80 17 00 00 00 00 00 00 1B [00:10:35]Write i2c OK [00:10:35]MH_I2C_Read... [00:10:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:35]Read from MH i2c: E2 [00:10:35]MH_I2C_Read... [00:10:35]Read from MH i2c: E2 FD 00 [00:10:35]MH_I2C_Read... [00:10:35]Read from MH i2c: E2 FD 00 7A 21 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 23 [00:10:35]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [00:10:35]wFMCommunicate OK [00:10:35]wFMCommunicate request_size=4 [00:10:35]MH_SAM_APDU [00:10:35]CAPDU: 80 17 00 00 [00:10:35]Write to MH i2c: E2 08 00 7B 21 80 17 00 00 00 00 00 00 1C [00:10:35]Write i2c OK [00:10:35]MH_I2C_Read... [00:10:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:36]Read from MH i2c: E2 [00:10:36]MH_I2C_Read... [00:10:36]Read from MH i2c: E2 FD 00 [00:10:36]MH_I2C_Read... [00:10:36]Read from MH i2c: E2 FD 00 7B 21 00 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 EE [00:10:36]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [00:10:36]wFMCommunicate OK [00:10:36]wFMCommunicate request_size=4 [00:10:36]MH_SAM_APDU [00:10:36]CAPDU: 80 17 00 00 [00:10:36]Write to MH i2c: E2 08 00 7C 21 80 17 00 00 00 00 00 00 1D [00:10:36]Write i2c OK [00:10:36]MH_I2C_Read... [00:10:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:36]Read from MH i2c: E2 [00:10:36]MH_I2C_Read... [00:10:36]Read from MH i2c: E2 FD 00 [00:10:36]MH_I2C_Read... [00:10:36]Read from MH i2c: E2 FD 00 7C 21 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 8F [00:10:36]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:10:36]wFMCommunicate OK [00:10:36]wFMCommunicate request_size=4 [00:10:36]MH_SAM_APDU [00:10:36]CAPDU: 80 17 00 00 [00:10:36]Write to MH i2c: E2 08 00 7D 21 80 17 00 00 00 00 00 00 1E [00:10:36]Write i2c OK [00:10:36]MH_I2C_Read... [00:10:37]OFD Sender: No OFD packet to send [00:10:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:10:37]Read from MH i2c: E2 [00:10:37]MH_I2C_Read... [00:10:37]Read from MH i2c: E2 BD 00 [00:10:37]MH_I2C_Read... [00:10:37]Read from MH i2c: E2 BD 00 7D 21 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 04 [00:10:37]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:10:37]wFMCommunicate OK [00:10:37]SAM_PROTO_GetShiftData done [00:10:37]requested_item shift.sale.total_cash is exist - process it [00:10:37]requested_item shift.sale_refund.total is exist - process it [00:10:37]requested_item shift.sale_refund.total_cash is exist - process it [00:10:37]requested_item shift.buy.total is exist - process it [00:10:37]requested_item shift.buy.total_cash is exist - process it [00:10:37]produce_requested_data done [00:10:37]produce_requested_data return {"fm.sale.total":204968846.10,"fm.sale_refund.total":5169318.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:10:37]process_action_free get_value [00:10:37]json_value_free [00:10:37]json_value_free done [00:10:37]process_json_proto returns [00:10:37]Send response to host [00:10:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":204968846.10,"fm.sale_refund.total":5169318.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:10:37]free response buf [00:10:37]execute_script done [00:10:37]execute_script returns [00:10:37]free content buf [00:10:37]Sock 7.Close socket [00:10:37]Sock 7.Thread stoped [00:10:42]OFD Sender: No OFD packet to send [00:10:47]OFD Sender: No OFD packet to send [00:10:52]OFD Sender: No OFD packet to send [00:10:57]OFD Sender: No OFD packet to send [00:11:02]OFD Sender: No OFD packet to send [00:11:07]OFD Sender: No OFD packet to send [00:11:12]OFD Sender: No OFD packet to send [00:11:17]OFD Sender: No OFD packet to send [00:11:22]OFD Sender: No OFD packet to send [00:11:27]OFD Sender: No OFD packet to send [00:11:32]OFD Sender: No OFD packet to send [00:11:37]OFD Sender: No OFD packet to send [00:11:42]OFD Sender: No OFD packet to send [00:11:47]OFD Sender: No OFD packet to send [00:11:52]OFD Sender: No OFD packet to send [00:11:57]OFD Sender: No OFD packet to send [00:12:02]OFD Sender: No OFD packet to send [00:12:07]OFD Sender: No OFD packet to send [00:12:12]OFD Sender: No OFD packet to send [00:12:17]OFD Sender: No OFD packet to send [00:12:22]OFD Sender: No OFD packet to send [00:12:27]OFD Sender: No OFD packet to send [00:12:32]OFD Sender: No OFD packet to send [00:12:37]OFD Sender: No OFD packet to send [00:12:42]OFD Sender: No OFD packet to send [00:12:47]OFD Sender: No OFD packet to send [00:12:52]OFD Sender: No OFD packet to send [00:12:57]OFD Sender: No OFD packet to send [00:13:02]OFD Sender: No OFD packet to send [00:13:07]OFD Sender: No OFD packet to send [00:13:12]OFD Sender: No OFD packet to send [00:13:17]OFD Sender: No OFD packet to send [00:13:22]OFD Sender: No OFD packet to send [00:13:27]OFD Sender: No OFD packet to send [00:13:32]OFD Sender: No OFD packet to send [00:13:37]OFD Sender: No OFD packet to send [00:13:42]OFD Sender: No OFD packet to send [00:13:47]OFD Sender: No OFD packet to send [00:13:52]OFD Sender: No OFD packet to send [00:13:57]OFD Sender: No OFD packet to send [00:14:02]OFD Sender: No OFD packet to send [00:14:07]OFD Sender: No OFD packet to send [00:14:12]OFD Sender: No OFD packet to send [00:14:17]OFD Sender: No OFD packet to send [00:14:22]OFD Sender: No OFD packet to send [00:14:27]OFD Sender: No OFD packet to send [00:14:32]OFD Sender: No OFD packet to send [00:14:37]OFD Sender: No OFD packet to send [00:14:42]OFD Sender: No OFD packet to send [00:14:47]OFD Sender: No OFD packet to send [00:14:52]OFD Sender: No OFD packet to send [00:14:57]OFD Sender: No OFD packet to send [00:15:02]OFD Sender: No OFD packet to send [00:15:07]OFD Sender: No OFD packet to send [00:15:12]OFD Sender: No OFD packet to send [00:15:17]OFD Sender: No OFD packet to send [00:15:22]OFD Sender: No OFD packet to send [00:15:27]OFD Sender: No OFD packet to send [00:15:32]OFD Sender: No OFD packet to send [00:15:37]OFD Sender: No OFD packet to send [00:15:42]OFD Sender: No OFD packet to send [00:15:47]OFD Sender: No OFD packet to send [00:15:52]OFD Sender: No OFD packet to send [00:15:57]OFD Sender: No OFD packet to send [00:16:02]OFD Sender: No OFD packet to send [00:16:07]OFD Sender: No OFD packet to send [00:16:12]OFD Sender: No OFD packet to send [00:16:17]OFD Sender: No OFD packet to send [00:16:22]OFD Sender: No OFD packet to send [00:16:27]OFD Sender: No OFD packet to send [00:16:31]accept exits with 9 [00:16:31]New connection [00:16:31]New thread 3066809700 created [00:16:31]Thread 3066666340 joined [00:16:31]Waiting for new connection... [00:16:31] Sock 9.Parse request [00:16:31]Sock 9.Check first char [00:16:31]Sock 9.First char is OK [00:16:31]request: POST /json_proto HTTP/1.0 [00:16:31]Method: POST [00:16:31]URL: /json_proto [00:16:31]Method is POST - this is cgi request [00:16:31]url: /json_proto [00:16:31]query_string will be loaded in cgi processing [00:16:31]execute_cgi json_proto POST (null) [00:16:31]execute_cgi path=json_proto method=POST [00:16:31]POST find Content-Length [00:16:31]Host: 172.17.44.195:8080 [00:16:31]Content-Length: 767 [00:16:31]Content-Type: application/json [00:16:31] [00:16:31]POST finish read [00:16:31]Found Content-Length = 767 [00:16:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963404", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:16:31]execute_script... [00:16:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963404", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:16:31]POST & json_proto [00:16:31]process_json_proto [00:16:31]json parsed OK: [00:16:31]protocol is kg_v1.0 [00:16:31]action value=close_receipt [00:16:31]process_action close_receipt [00:16:31]cmd_close_receipt [00:16:31]MH_GetDate [00:16:31]Write to MH i2c: F0 00 00 7E 21 8E [00:16:31]Write i2c OK [00:16:31]MH_I2C_Read... [00:16:31]Read from MH i2c: F0 [00:16:31]MH_I2C_Read... [00:16:31]Read from MH i2c: F0 09 00 [00:16:31]MH_I2C_Read... [00:16:31]Read from MH i2c: F0 09 00 7E 21 00 61 9D 15 67 82 C9 CF 66 91 [00:16:31]GetLastDocTimeStamp 1729469428 [00:16:31]current date 1729469793 [00:16:31]FM_GetShiftState [00:16:31]SAM_PROTO_GetShiftState [00:16:31]wFMCommunicate request_size=4 [00:16:31]MH_SAM_APDU [00:16:31]CAPDU: 80 13 01 00 [00:16:31]Write to MH i2c: E2 08 00 7F 21 80 13 01 00 00 00 00 00 1D [00:16:31]Write i2c OK [00:16:31]MH_I2C_Read... [00:16:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:16:31]Read from MH i2c: E2 [00:16:31]MH_I2C_Read... [00:16:31]Read from MH i2c: E2 0E 00 [00:16:31]MH_I2C_Read... [00:16:31]Read from MH i2c: E2 0E 00 7F 21 00 09 00 01 F4 9B 15 67 00 00 00 00 90 00 34 [00:16:31]RAPDU: 09 00 01 F4 9B 15 67 00 00 00 00 90 00 [00:16:31]wFMCommunicate OK [00:16:31]SAM_PROTO_GetShiftState done [00:16:31]FM_GetShiftState done [00:16:31]opened in 1729469428 [00:16:31]opened+sec_in_day 1729555828 [00:16:31]quantity*price = 150037 [00:16:31]sum+1 = 150039 [00:16:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.38 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.38 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 1 21.10.2024 00:16 Смена: 534 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 227732 ФПД: 257671872025535 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T001633&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227732&fm=257671872025535&tin=02508201610067®Number=0000000000091685&sum=150038 [00:16:32]StoreToDocumentArchive [00:16:32]shift 534 fd 227732 [00:16:32]save to /storage/0534/doc_00227732 [00:16:32]save last doc name /storage/0534/doc_00227732 to /storage/kkm_last_doc_name [00:16:32]save OK [00:16:32]Clear old archive folders... [00:16:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:16:32]tlvbuf is 00CADB40 [00:16:32]SAM_PROTO_ClearQueue [00:16:32]wFMCommunicate request_size=4 [00:16:32]MH_SAM_APDU [00:16:32]CAPDU: 80 09 00 00 [00:16:32]Write to MH i2c: E2 08 00 8C 21 80 09 00 00 00 00 00 00 1F [00:16:32]Write i2c OK [00:16:32]MH_I2C_Read... [00:16:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:16:32]Read from MH i2c: E2 [00:16:32]MH_I2C_Read... [00:16:32]Read from MH i2c: E2 03 00 [00:16:32]MH_I2C_Read... [00:16:32]Read from MH i2c: E2 03 00 8C 21 00 90 00 21 [00:16:32]RAPDU: 90 00 [00:16:32]wFMCommunicate OK [00:16:32]SAM_PROTO_ClearQueue done [00:16:32]KKMCreateOFDPacket [00:16:32]OFDProtocolAddRootSTLVToBuf [00:16:32]FM_MakeSignedData [00:16:32]FM_MakeSignedData [00:16:32]SAM_PROTO_SignData [00:16:32]wFMCommunicate request_size=4 [00:16:32]MH_SAM_APDU [00:16:32]CAPDU: 80 0D 01 02 [00:16:32]Write to MH i2c: E2 08 00 8D 21 80 0D 01 02 00 00 00 00 27 [00:16:32]Write i2c OK [00:16:32]MH_I2C_Read... [00:16:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:16:32]Read from MH i2c: E2 [00:16:32]MH_I2C_Read... [00:16:32]Read from MH i2c: E2 03 00 [00:16:32]MH_I2C_Read... [00:16:32]Read from MH i2c: E2 03 00 8D 21 00 90 00 22 [00:16:32]RAPDU: 90 00 [00:16:32]wFMCommunicate OK [00:16:32]wFMCommunicate request_size=255 [00:16:32]MH_SAM_APDU [00:16:32]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 61 9D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 94 79 03 00 35 04 06 00 EA 59 E8 66 [00:16:32]Write to MH i2c: E2 02 01 8E 21 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 61 9D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 94 79 03 00 35 04 06 00 EA 59 E8 66 00 00 AD [00:16:32]Write i2c OK [00:16:32]MH_I2C_Read... [00:16:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:16:33]Read from MH i2c: E2 [00:16:33]MH_I2C_Read... [00:16:33]Read from MH i2c: E2 03 00 [00:16:33]MH_I2C_Read... [00:16:33]Read from MH i2c: E2 03 00 8E 21 00 90 00 23 [00:16:33]RAPDU: 90 00 [00:16:33]wFMCommunicate OK [00:16:33]wFMCommunicate request_size=7 [00:16:33]MH_SAM_APDU [00:16:33]CAPDU: 80 0D 02 02 02 93 BF [00:16:33]Write to MH i2c: E2 0A 00 8F 21 80 0D 02 02 02 00 93 BF 00 00 80 [00:16:33]Write i2c OK [00:16:33]MH_I2C_Read... [00:16:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:16:33]Read from MH i2c: E2 [00:16:33]MH_I2C_Read... [00:16:33]Read from MH i2c: E2 03 00 [00:16:33]MH_I2C_Read... [00:16:33]Read from MH i2c: E2 03 00 8F 21 00 90 00 24 [00:16:33]RAPDU: 90 00 [00:16:33]wFMCommunicate OK [00:16:33]wFMCommunicate request_size=4 [00:16:33]MH_SAM_APDU [00:16:33]CAPDU: 80 0D 03 02 [00:16:33]Write to MH i2c: E2 08 00 90 21 80 0D 03 02 00 00 00 00 2C [00:16:33]Write i2c OK [00:16:33]MH_I2C_Read... [00:16:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:16:33]Read from MH i2c: E2 [00:16:33]MH_I2C_Read... [00:16:33]Read from MH i2c: E2 0B 00 [00:16:33]MH_I2C_Read... [00:16:33]Read from MH i2c: E2 0B 00 90 21 00 9D 6E EF AE 1A EA 79 FB 90 00 4D [00:16:33]RAPDU: 9D 6E EF AE 1A EA 79 FB 90 00 [00:16:33]wFMCommunicate OK [00:16:33]SAM_PROTO_SignData done [00:16:33]FM_MakeSignedData done [00:16:33]CreateOFDProtocolMessage [00:16:33]wFMCommunicate request_size=4 [00:16:33]MH_SAM_APDU [00:16:33]CAPDU: 80 11 00 00 [00:16:33]Write to MH i2c: E2 08 00 91 21 80 11 00 00 00 00 00 00 2C [00:16:33]Write i2c OK [00:16:33]MH_I2C_Read... [00:16:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:16:33]Read from MH i2c: E2 [00:16:33]MH_I2C_Read... [00:16:33]Read from MH i2c: E2 17 00 [00:16:33]MH_I2C_Read... [00:16:33]Read from MH i2c: E2 17 00 91 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 83 [00:16:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [00:16:33]wFMCommunicate OK [00:16:33]CreateOFDProtocolMessage done [00:16:33]OFDSenderStorePacket 227732 [00:16:33]StoreOFDPacket docnum=227732 [00:16:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 BE 1E 04 01 E9 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 61 9D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 94 79 03 00 35 04 06 00 EA 59 E8 66 93 BF 9D 6E EF AE 1A EA 79 FB [00:16:33]CheckFolder [00:16:33]dirname=/storage/ofd_packets [00:16:33]CheckFolder done [00:16:33]ProducePacketName [00:16:33]name=ofd_packets/00227732 [00:16:33]NVStorageSaveData ofd_packets/00227732 [00:16:33]File name is /storage/ofd_packets/00227732 [00:16:33]Write 298 bytes [00:16:33]NVStorageSaveData done [00:16:33]OFDSenderStorePacket done [00:16:33]KKMCreateOFDPacket done [00:16:33]NVStorageSaveData kkm_last_timestamp [00:16:33]File name is /storage/kkm_last_timestamp [00:16:33]Write 4 bytes [00:16:33]NVStorageSaveData done [00:16:33]ExternCall_PrintAddStr [00:16:33]wPrintStart [00:16:33]Write to MH i2c: 01 00 00 92 21 B3 [00:16:33]Write i2c OK [00:16:33]MH_I2C_Read... [00:16:33]Read from MH i2c: 01 [00:16:33]MH_I2C_Read... [00:16:33]Read from MH i2c: 01 07 00 [00:16:33]MH_I2C_Read... [00:16:33]Read from MH i2c: 01 07 00 92 21 00 00 00 00 00 FF 0F C8 [00:16:33]RasterBufferAndPrint [00:16:33]line Счет N : (1)1963404 [00:16:33]line ИНН: 02508201610067 [00:16:33]line Контрольно-Кассовый Чек [00:16:33]line ПРОДАЖА [00:16:33]line ТРК (МРК, ГНК) : 31 [00:16:33]line Товар: 2710194210 [00:16:33]line ДТ-К-5 [00:16:33]line 19.690 * 76.20 [00:16:33]line = 1500.38 [00:16:33]line НДС 12% НСП 1% [00:16:33]line > о реализуемом товаре [00:16:33]line ИТОГО: 1500.38 [00:16:33]line НСП 1% : 13.28 [00:16:33]line НДС 12% : 159.33 [00:16:33]line Наличными: 0.00 [00:16:33]line Безнал.: 1500.38 [00:16:33]line Место: АЗС № 133 "Партнер Нефть" [00:16:33]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [00:16:33]line СНО: Общий режим [00:16:33]line Чек 1 21.10.2024 00:16 [00:16:33]line Смена: 534 ФФД: 1.0 [00:16:33]line ЗНМ: 0300000091 [00:16:33]line РНМ: 0000000000091685 [00:16:33]line Версия ККМ: 001 [00:16:33]line Платежная система: Mbank [00:16:33]line ФМ: 0000000000871839 [00:16:33]line ФД: 227732 [00:16:33]line ФПД: 257671872025535 [00:16:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T001633&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227732&fm=257671872025535&tin=02508201610067®Number=0000000000091685&sum=150038 [00:16:33]OFD Sender: Processing packet 227732 [packets to send 38, broken 37] [00:16:33]ProducePacketName [00:16:33]name=ofd_packets/00227732 [00:16:33]OFD Sender: To server: pG, [00:16:33]CommunicateWithHost lk.salyk.kg:30040 [00:16:33]ConnectInit lk.salyk.kg [00:16:33]written 0, free lines is 4095 [00:16:33]Connected sock=10 [00:16:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 BE 1E 04 01 E9 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 61 9D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 94 79 03 00 35 04 06 00 EA 59 E8 66 93 BF 9D 6E EF AE 1A EA 79 FB [00:16: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 33 39 4F 00 00 00 36 30 47 00 52 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 33 39 10 04 04 00 94 79 03 00 F4 03 04 00 5E 48 15 67 B6 04 01 00 00 74 49 5B 7D 3D 0B E0 29 [00:16:33]CommunicateWithHost err = 0 [00:16:33]CheckOFDResponse [00:16:33]1017 (14) - 77093643461234 [00:16:33]1041 (16) - 0000000000871839 [00:16:33]1040 (4) - 227732 [00:16:33]1012 (4) - 20.10.2024 18:13 [00:16:33]1206 (1) - 0 [00:16:33]OFD Sender: Remove packet 227732 [00:16:33]ProducePacketName [00:16:33]name=ofd_packets/00227732 [00:16:33]NVStorageDeleteData [00:16:33]Write to MH i2c: 01 00 00 BA 21 DB [00:16:33]Write i2c OK [00:16:33]MH_I2C_Read... [00:16:33]Read from MH i2c: 01 [00:16:33]MH_I2C_Read... [00:16:33]Read from MH i2c: 01 07 00 [00:16:33]MH_I2C_Read... [00:16:33]Read from MH i2c: 01 07 00 BA 21 00 00 00 00 00 CB 0C B9 [00:16:33]RasterBufferAndPrint [00:16:33]line [00:16:33]line [00:16:33]line [00:16:33]line [00:16:33]line [00:16:33]written 0, free lines is 3278 [00:16:33]MH_Cut [00:16:33]Write to MH i2c: D1 01 00 C1 21 01 B4 [00:16:33]Write i2c OK [00:16:33]MH_I2C_Read... [00:16:33]Read from MH i2c: D1 [00:16:33]MH_I2C_Read... [00:16:33]Read from MH i2c: D1 01 00 [00:16:33]MH_I2C_Read... [00:16:33]Read from MH i2c: D1 01 00 C1 21 00 B3 [00:16:33]Write to MH i2c: 01 00 00 C2 21 E3 [00:16:33]Write i2c OK [00:16:33]MH_I2C_Read... [00:16:34]OFD Sender: No OFD packet to send [00:16:34]*** Cut start [00:16:34]*** Partial cut [00:16:34]*** CUTSNS_PIN = 1 [00:16:34]*** CUTSNS_PIN = 0 [00:16:35]*** Brake cut motor [00:16:35]Read from MH i2c: 01 [00:16:35]MH_I2C_Read... [00:16:35]*** Stop cut motor [00:16:35]*** Cut end [00:16:35]Read from MH i2c: 01 07 00 [00:16:35]MH_I2C_Read... [00:16:35]Read from MH i2c: 01 07 00 C2 21 00 00 00 00 00 FF 0F F8 [00:16:35]process_action close_receipt done [00:16:35]requested_data is exist [00:16:35]produce_requested_data [00:16:35]requested_item fm.sn is exist - process it [00:16:35]wFMCommunicate request_size=4 [00:16:35]MH_SAM_APDU [00:16:35]CAPDU: 80 11 00 00 [00:16:35]Write to MH i2c: E2 08 00 C3 21 80 11 00 00 00 00 00 00 5E [00:16:35]Write i2c OK [00:16:35]MH_I2C_Read... [00:16:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:16:35]Read from MH i2c: E2 [00:16:35]MH_I2C_Read... [00:16:35]Read from MH i2c: E2 17 00 [00:16:35]MH_I2C_Read... [00:16:35]Read from MH i2c: E2 17 00 C3 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B5 [00:16:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [00:16:35]wFMCommunicate OK [00:16:35]requested_item fd.num is exist - process it [00:16:35]SAM_PROTO_GetFieldsCounters [00:16:35]wFMCommunicate request_size=4 [00:16:35]MH_SAM_APDU [00:16:35]CAPDU: 80 13 00 00 [00:16:35]Write to MH i2c: E2 08 00 C4 21 80 13 00 00 00 00 00 00 61 [00:16:35]Write i2c OK [00:16:35]MH_I2C_Read... [00:16:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:16:35]Read from MH i2c: E2 [00:16:35]MH_I2C_Read... [00:16:35]Read from MH i2c: E2 62 00 [00:16:35]MH_I2C_Read... [00:16:35]Read from MH i2c: E2 62 00 C4 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 94 79 03 00 0E 04 04 00 16 02 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 B5 [00:16:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 94 79 03 00 0E 04 04 00 16 02 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:16:35]wFMCommunicate OK [00:16:35]SAM_PROTO_GetFieldsCounters done [00:16:35]requested_item shift.num is exist - process it [00:16:35]requested_item shift.opened is exist - process it [00:16:35]req_shift_opened [00:16:35]FM_GetShiftState [00:16:35]SAM_PROTO_GetShiftState [00:16:35]wFMCommunicate request_size=4 [00:16:35]MH_SAM_APDU [00:16:35]CAPDU: 80 13 01 00 [00:16:35]Write to MH i2c: E2 08 00 C5 21 80 13 01 00 00 00 00 00 63 [00:16:35]Write i2c OK [00:16:35]MH_I2C_Read... [00:16:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:16:35]Read from MH i2c: E2 [00:16:35]MH_I2C_Read... [00:16:35]Read from MH i2c: E2 0E 00 [00:16:35]MH_I2C_Read... [00:16:35]Read from MH i2c: E2 0E 00 C5 21 00 09 00 01 F4 9B 15 67 00 00 00 00 90 00 7A [00:16:35]RAPDU: 09 00 01 F4 9B 15 67 00 00 00 00 90 00 [00:16:35]wFMCommunicate OK [00:16:35]SAM_PROTO_GetShiftState done [00:16:35]FM_GetShiftState done [00:16:35]req_shift_opened done [00:16:35]requested_item shift.open_date is exist - process it [00:16:35]req_shift_open_date [00:16:35]req_shift_open_date done [00:16:35]produce_requested_data done [00:16:35]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227732,"shift.num":534,"shift.opened":1,"shift.open_date":1729469428} [00:16:35]process_action_free close_receipt [00:16:35]json_value_free [00:16:35]json_value_free done [00:16:35]process_json_proto returns [00:16:35]Send response to host [00:16:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227732,"shift.num":534,"shift.opened":1,"shift.open_date":1729469428}}} [00:16:35]free response buf [00:16:35]execute_script done [00:16:35]execute_script returns [00:16:35]free content buf [00:16:35]Sock 9.Close socket [00:16:35]Sock 9.Thread stoped [00:16:39]OFD Sender: No OFD packet to send [00:16:44]OFD Sender: No OFD packet to send [00:16:49]OFD Sender: No OFD packet to send [00:16:54]OFD Sender: No OFD packet to send [00:16:59]OFD Sender: No OFD packet to send [00:17:04]OFD Sender: No OFD packet to send [00:17:09]OFD Sender: No OFD packet to send [00:17:14]OFD Sender: No OFD packet to send [00:17:19]OFD Sender: No OFD packet to send [00:17:24]OFD Sender: No OFD packet to send [00:17:29]OFD Sender: No OFD packet to send [00:17:34]OFD Sender: No OFD packet to send [00:17:39]OFD Sender: No OFD packet to send [00:17:44]OFD Sender: No OFD packet to send [00:17:49]OFD Sender: No OFD packet to send [00:17:54]OFD Sender: No OFD packet to send [00:17:59]OFD Sender: No OFD packet to send [00:18:04]OFD Sender: No OFD packet to send [00:18:09]OFD Sender: No OFD packet to send [00:18:14]OFD Sender: No OFD packet to send [00:18:19]OFD Sender: No OFD packet to send [00:18:24]OFD Sender: No OFD packet to send [00:18:29]OFD Sender: No OFD packet to send [00:18:34]OFD Sender: No OFD packet to send [00:18:39]OFD Sender: No OFD packet to send [00:18:44]OFD Sender: No OFD packet to send [00:18:49]OFD Sender: No OFD packet to send [00:18:54]OFD Sender: No OFD packet to send [00:18:59]OFD Sender: No OFD packet to send [00:19:04]OFD Sender: No OFD packet to send [00:19:09]OFD Sender: No OFD packet to send [00:19:14]OFD Sender: No OFD packet to send [00:19:19]OFD Sender: No OFD packet to send [00:19:24]OFD Sender: No OFD packet to send [00:19:29]OFD Sender: No OFD packet to send [00:19:34]OFD Sender: No OFD packet to send [00:19:39]OFD Sender: No OFD packet to send [00:19:44]OFD Sender: No OFD packet to send [00:19:46]accept exits with 7 [00:19:46]New connection [00:19:46]New thread 3066666340 created [00:19:46]Thread 3066809700 joined [00:19:46]Waiting for new connection... [00:19:46] Sock 7.Parse request [00:19:46]Sock 7.Check first char [00:19:46]Sock 7.First char is OK [00:19:46]request: POST /json_proto HTTP/1.0 [00:19:46]Method: POST [00:19:46]URL: /json_proto [00:19:46]Method is POST - this is cgi request [00:19:46]url: /json_proto [00:19:46]query_string will be loaded in cgi processing [00:19:46]execute_cgi json_proto POST (null) [00:19:46]execute_cgi path=json_proto method=POST [00:19:46]POST find Content-Length [00:19:46]Host: 172.17.44.195:8080 [00:19:46]Content-Length: 768 [00:19:46]Content-Type: application/json [00:19:46] [00:19:46]POST finish read [00:19:46]Found Content-Length = 768 [00:19:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963403", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 100.000, "sum" : 7620.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 7620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:19:46]execute_script... [00:19:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963403", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 100.000, "sum" : 7620.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 7620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:19:46]POST & json_proto [00:19:46]process_json_proto [00:19:46]json parsed OK: [00:19:46]protocol is kg_v1.0 [00:19:46]action value=close_receipt [00:19:46]process_action close_receipt [00:19:46]cmd_close_receipt [00:19:46]MH_GetDate [00:19:46]Write to MH i2c: F0 00 00 C6 21 D6 [00:19:46]Write i2c OK [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: F0 [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: F0 09 00 [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: F0 09 00 C6 21 00 24 9E 15 67 82 C9 CF 66 9D [00:19:46]GetLastDocTimeStamp 1729469793 [00:19:46]current date 1729469988 [00:19:46]FM_GetShiftState [00:19:46]SAM_PROTO_GetShiftState [00:19:46]wFMCommunicate request_size=4 [00:19:46]MH_SAM_APDU [00:19:46]CAPDU: 80 13 01 00 [00:19:46]Write to MH i2c: E2 08 00 C7 21 80 13 01 00 00 00 00 00 65 [00:19:46]Write i2c OK [00:19:46]MH_I2C_Read... [00:19:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:46]Read from MH i2c: E2 [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: E2 0E 00 [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: E2 0E 00 C7 21 00 09 00 01 F4 9B 15 67 00 00 00 00 90 00 7C [00:19:46]RAPDU: 09 00 01 F4 9B 15 67 00 00 00 00 90 00 [00:19:46]wFMCommunicate OK [00:19:46]SAM_PROTO_GetShiftState done [00:19:46]FM_GetShiftState done [00:19:46]opened in 1729469428 [00:19:46]opened+sec_in_day 1729555828 [00:19:46]quantity*price = 762000 [00:19:46]sum+1 = 762001 [00:19:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 7620.00 НСП 1% : 67.43 НДС 12% : 809.20 Наличными: 0.00 Безнал.: 7620.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 2 21.10.2024 00:19 Смена: 534 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 227733 ФПД: 276290226346063 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T001948&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227733&fm=276290226346063&tin=02508201610067®Number=0000000000091685&sum=762000 [00:19:47]StoreToDocumentArchive [00:19:47]shift 534 fd 227733 [00:19:47]save to /storage/0534/doc_00227733 [00:19:47]save last doc name /storage/0534/doc_00227733 to /storage/kkm_last_doc_name [00:19:47]save OK [00:19:47]Clear old archive folders... [00:19:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:19:47]tlvbuf is B6F35B40 [00:19:47]SAM_PROTO_ClearQueue [00:19:47]wFMCommunicate request_size=4 [00:19:47]MH_SAM_APDU [00:19:47]CAPDU: 80 09 00 00 [00:19:47]Write to MH i2c: E2 08 00 D4 21 80 09 00 00 00 00 00 00 67 [00:19:47]Write i2c OK [00:19:47]MH_I2C_Read... [00:19:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:19:47]Read from MH i2c: E2 [00:19:47]MH_I2C_Read... [00:19:47]Read from MH i2c: E2 03 00 [00:19:47]MH_I2C_Read... [00:19:47]Read from MH i2c: E2 03 00 D4 21 00 90 00 69 [00:19:47]RAPDU: 90 00 [00:19:47]wFMCommunicate OK [00:19:47]SAM_PROTO_ClearQueue done [00:19:47]KKMCreateOFDPacket [00:19:47]OFDProtocolAddRootSTLVToBuf [00:19:47]FM_MakeSignedData [00:19:47]FM_MakeSignedData [00:19:47]SAM_PROTO_SignData [00:19:47]wFMCommunicate request_size=4 [00:19:47]MH_SAM_APDU [00:19:47]CAPDU: 80 0D 01 02 [00:19:47]Write to MH i2c: E2 08 00 D5 21 80 0D 01 02 00 00 00 00 6F [00:19:47]Write i2c OK [00:19:47]MH_I2C_Read... [00:19:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:19:47]Read from MH i2c: E2 [00:19:47]MH_I2C_Read... [00:19:47]Read from MH i2c: E2 03 00 [00:19:47]MH_I2C_Read... [00:19:47]Read from MH i2c: E2 03 00 D5 21 00 90 00 6A [00:19:47]RAPDU: 90 00 [00:19:47]wFMCommunicate OK [00:19:47]wFMCommunicate request_size=255 [00:19:47]MH_SAM_APDU [00:19: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 A0 86 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 A0 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A0 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3C 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 A0 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 24 9E 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 95 79 03 00 35 04 06 00 FB 48 D4 CB [00:19:47]Write to MH i2c: E2 02 01 D6 21 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 A0 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A0 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3C 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 A0 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 24 9E 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 95 79 03 00 35 04 06 00 FB 48 D4 CB 00 00 9E [00:19:47]Write i2c OK [00:19:47]MH_I2C_Read... [00:19:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:19:48]Read from MH i2c: E2 [00:19:48]MH_I2C_Read... [00:19:48]Read from MH i2c: E2 03 00 [00:19:48]MH_I2C_Read... [00:19:48]Read from MH i2c: E2 03 00 D6 21 00 90 00 6B [00:19:48]RAPDU: 90 00 [00:19:48]wFMCommunicate OK [00:19:48]wFMCommunicate request_size=7 [00:19:48]MH_SAM_APDU [00:19:48]CAPDU: 80 0D 02 02 02 D8 4F [00:19:48]Write to MH i2c: E2 0A 00 D7 21 80 0D 02 02 02 00 D8 4F 00 00 9D [00:19:48]Write i2c OK [00:19:48]MH_I2C_Read... [00:19:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:19:48]Read from MH i2c: E2 [00:19:48]MH_I2C_Read... [00:19:48]Read from MH i2c: E2 03 00 [00:19:48]MH_I2C_Read... [00:19:48]Read from MH i2c: E2 03 00 D7 21 00 90 00 6C [00:19:48]RAPDU: 90 00 [00:19:48]wFMCommunicate OK [00:19:48]wFMCommunicate request_size=4 [00:19:48]MH_SAM_APDU [00:19:48]CAPDU: 80 0D 03 02 [00:19:48]Write to MH i2c: E2 08 00 D8 21 80 0D 03 02 00 00 00 00 74 [00:19:48]Write i2c OK [00:19:48]MH_I2C_Read... [00:19:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:19:48]Read from MH i2c: E2 [00:19:48]MH_I2C_Read... [00:19:48]Read from MH i2c: E2 0B 00 [00:19:48]MH_I2C_Read... [00:19:48]Read from MH i2c: E2 0B 00 D8 21 00 C6 BE E6 F2 99 67 3E 4B 90 00 5A [00:19:48]RAPDU: C6 BE E6 F2 99 67 3E 4B 90 00 [00:19:48]wFMCommunicate OK [00:19:48]SAM_PROTO_SignData done [00:19:48]FM_MakeSignedData done [00:19:48]CreateOFDProtocolMessage [00:19:48]wFMCommunicate request_size=4 [00:19:48]MH_SAM_APDU [00:19:48]CAPDU: 80 11 00 00 [00:19:48]Write to MH i2c: E2 08 00 D9 21 80 11 00 00 00 00 00 00 74 [00:19:48]Write i2c OK [00:19:48]MH_I2C_Read... [00:19:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:19:48]Read from MH i2c: E2 [00:19:48]MH_I2C_Read... [00:19:48]Read from MH i2c: E2 17 00 [00:19:48]MH_I2C_Read... [00:19:48]Read from MH i2c: E2 17 00 D9 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 CB [00:19:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [00:19:48]wFMCommunicate OK [00:19:48]CreateOFDProtocolMessage done [00:19:48]OFDSenderStorePacket 227733 [00:19:48]StoreOFDPacket docnum=227733 [00:19:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 53 D7 04 01 00 7A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 A0 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A0 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3C 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 A0 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 24 9E 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 95 79 03 00 35 04 06 00 FB 48 D4 CB D8 4F C6 BE E6 F2 99 67 3E 4B [00:19:48]CheckFolder [00:19:48]dirname=/storage/ofd_packets [00:19:48]CheckFolder done [00:19:48]ProducePacketName [00:19:48]name=ofd_packets/00227733 [00:19:48]NVStorageSaveData ofd_packets/00227733 [00:19:48]File name is /storage/ofd_packets/00227733 [00:19:48]Write 298 bytes [00:19:48]NVStorageSaveData done [00:19:48]OFDSenderStorePacket done [00:19:48]KKMCreateOFDPacket done [00:19:48]NVStorageSaveData kkm_last_timestamp [00:19:48]File name is /storage/kkm_last_timestamp [00:19:48]Write 4 bytes [00:19:48]NVStorageSaveData done [00:19:48]ExternCall_PrintAddStr [00:19:48]wPrintStart [00:19:48]Write to MH i2c: 01 00 00 DA 21 FB [00:19:48]Write i2c OK [00:19:48]MH_I2C_Read... [00:19:48]Read from MH i2c: 01 [00:19:48]MH_I2C_Read... [00:19:48]Read from MH i2c: 01 07 00 [00:19:48]MH_I2C_Read... [00:19:48]Read from MH i2c: 01 07 00 DA 21 00 00 00 00 00 FF 0F 10 [00:19:48]RasterBufferAndPrint [00:19:48]line Счет N : (1)1963403 [00:19:48]line ИНН: 02508201610067 [00:19:48]line Контрольно-Кассовый Чек [00:19:48]line ПРОДАЖА [00:19:48]line ТРК (МРК, ГНК) : 11 [00:19:48]line Товар: 2710194210 [00:19:48]line ДТ-К-5 [00:19:48]line 100.000 * 76.20 [00:19:48]line = 7620.00 [00:19:48]line НДС 12% НСП 1% [00:19:48]line > о реализуемом товаре [00:19:48]line ИТОГО: 7620.00 [00:19:48]line НСП 1% : 67.43 [00:19:48]line НДС 12% : 809.20 [00:19:48]line Наличными: 0.00 [00:19:48]line Безнал.: 7620.00 [00:19:48]line Место: АЗС № 133 "Партнер Нефть" [00:19:48]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [00:19:48]line СНО: Общий режим [00:19:48]line Чек 2 21.10.2024 00:19 [00:19:48]line Смена: 534 ФФД: 1.0 [00:19:48]line ЗНМ: 0300000091 [00:19:48]line РНМ: 0000000000091685 [00:19:48]line Версия ККМ: 001 [00:19:48]line Платежная система: Mbank [00:19:48]line ФМ: 0000000000871839 [00:19:48]line ФД: 227733 [00:19:48]line ФПД: 276290226346063 [00:19:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T001948&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227733&fm=276290226346063&tin=02508201610067®Number=0000000000091685&sum=762000 [00:19:48]OFD Sender: Processing packet 227733 [packets to send 38, broken 37] [00:19:48]ProducePacketName [00:19:48]name=ofd_packets/00227733 [00:19:48]OFD Sender: To server: pG, [00:19:48]CommunicateWithHost lk.salyk.kg:30040 [00:19:48]ConnectInit lk.salyk.kg [00:19:48]written 0, free lines is 4095 [00:19:48]Connected sock=10 [00:19: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 33 39 0C 01 00 00 53 D7 04 01 00 7A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 A0 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A0 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3C 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 A0 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 24 9E 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 95 79 03 00 35 04 06 00 FB 48 D4 CB D8 4F C6 BE E6 F2 99 67 3E 4B [00:19: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 33 39 4F 00 00 00 4E D8 47 00 89 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 33 39 10 04 04 00 95 79 03 00 F4 03 04 00 21 49 15 67 B6 04 01 00 00 B0 E1 57 BF D2 2E 64 BA [00:19:48]CommunicateWithHost err = 0 [00:19:48]CheckOFDResponse [00:19:48]1017 (14) - 77093643461234 [00:19:48]1041 (16) - 0000000000871839 [00:19:48]1040 (4) - 227733 [00:19:48]1012 (4) - 20.10.2024 18:17 [00:19:48]1206 (1) - 0 [00:19:48]OFD Sender: Remove packet 227733 [00:19:48]ProducePacketName [00:19:48]name=ofd_packets/00227733 [00:19:48]NVStorageDeleteData [00:19:49]Write to MH i2c: 01 00 00 02 22 24 [00:19:49]Write i2c OK [00:19:49]MH_I2C_Read... [00:19:49]Read from MH i2c: 01 [00:19:49]MH_I2C_Read... [00:19:49]Read from MH i2c: 01 07 00 [00:19:49]MH_I2C_Read... [00:19:49]Read from MH i2c: 01 07 00 02 22 00 00 00 00 00 D4 0C 0B [00:19:49]RasterBufferAndPrint [00:19:49]line [00:19:49]line [00:19:49]line [00:19:49]line [00:19:49]line [00:19:49]written 0, free lines is 3287 [00:19:49]MH_Cut [00:19:49]Write to MH i2c: D1 01 00 09 22 01 FD [00:19:49]Write i2c OK [00:19:49]MH_I2C_Read... [00:19:49]Read from MH i2c: D1 [00:19:49]MH_I2C_Read... [00:19:49]Read from MH i2c: D1 01 00 [00:19:49]MH_I2C_Read... [00:19:49]Read from MH i2c: D1 01 00 09 22 00 FC [00:19:49]Write to MH i2c: 01 00 00 0A 22 2C [00:19:49]Write i2c OK [00:19:49]MH_I2C_Read... [00:19:49]OFD Sender: No OFD packet to send [00:19:49]*** Cut start [00:19:49]*** Partial cut [00:19:49]*** CUTSNS_PIN = 1 [00:19:50]*** CUTSNS_PIN = 0 [00:19:50]*** Brake cut motor [00:19:50]Read from MH i2c: 01 [00:19:50]MH_I2C_Read... [00:19:50]*** Stop cut motor [00:19:50]*** Cut end [00:19:50]Read from MH i2c: 01 07 00 [00:19:50]MH_I2C_Read... [00:19:50]Read from MH i2c: 01 07 00 0A 22 00 00 00 00 00 FF 0F 41 [00:19:50]process_action close_receipt done [00:19:50]requested_data is exist [00:19:50]produce_requested_data [00:19:50]requested_item fm.sn is exist - process it [00:19:50]wFMCommunicate request_size=4 [00:19:50]MH_SAM_APDU [00:19:50]CAPDU: 80 11 00 00 [00:19:50]Write to MH i2c: E2 08 00 0B 22 80 11 00 00 00 00 00 00 A7 [00:19:50]Write i2c OK [00:19:50]MH_I2C_Read... [00:19:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:19:50]Read from MH i2c: E2 [00:19:50]MH_I2C_Read... [00:19:50]Read from MH i2c: E2 17 00 [00:19:50]MH_I2C_Read... [00:19:50]Read from MH i2c: E2 17 00 0B 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 FE [00:19:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [00:19:50]wFMCommunicate OK [00:19:50]requested_item fd.num is exist - process it [00:19:50]SAM_PROTO_GetFieldsCounters [00:19:50]wFMCommunicate request_size=4 [00:19:50]MH_SAM_APDU [00:19:50]CAPDU: 80 13 00 00 [00:19:50]Write to MH i2c: E2 08 00 0C 22 80 13 00 00 00 00 00 00 AA [00:19:50]Write i2c OK [00:19:50]MH_I2C_Read... [00:19:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:19:50]Read from MH i2c: E2 [00:19:50]MH_I2C_Read... [00:19:50]Read from MH i2c: E2 62 00 [00:19:50]MH_I2C_Read... [00:19:50]Read from MH i2c: E2 62 00 0C 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 95 79 03 00 0E 04 04 00 16 02 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [00:19: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 95 79 03 00 0E 04 04 00 16 02 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:19:50]wFMCommunicate OK [00:19:50]SAM_PROTO_GetFieldsCounters done [00:19:50]requested_item shift.num is exist - process it [00:19:50]requested_item shift.opened is exist - process it [00:19:50]req_shift_opened [00:19:50]FM_GetShiftState [00:19:50]SAM_PROTO_GetShiftState [00:19:50]wFMCommunicate request_size=4 [00:19:50]MH_SAM_APDU [00:19:50]CAPDU: 80 13 01 00 [00:19:50]Write to MH i2c: E2 08 00 0D 22 80 13 01 00 00 00 00 00 AC [00:19:50]Write i2c OK [00:19:50]MH_I2C_Read... [00:19:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:50]Read from MH i2c: E2 [00:19:50]MH_I2C_Read... [00:19:50]Read from MH i2c: E2 0E 00 [00:19:50]MH_I2C_Read... [00:19:50]Read from MH i2c: E2 0E 00 0D 22 00 09 00 01 F4 9B 15 67 00 00 00 00 90 00 C3 [00:19:50]RAPDU: 09 00 01 F4 9B 15 67 00 00 00 00 90 00 [00:19:50]wFMCommunicate OK [00:19:50]SAM_PROTO_GetShiftState done [00:19:50]FM_GetShiftState done [00:19:50]req_shift_opened done [00:19:50]requested_item shift.open_date is exist - process it [00:19:50]req_shift_open_date [00:19:50]req_shift_open_date done [00:19:50]produce_requested_data done [00:19:50]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227733,"shift.num":534,"shift.opened":1,"shift.open_date":1729469428} [00:19:50]process_action_free close_receipt [00:19:50]json_value_free [00:19:50]json_value_free done [00:19:50]process_json_proto returns [00:19:50]Send response to host [00:19:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227733,"shift.num":534,"shift.opened":1,"shift.open_date":1729469428}}} [00:19:50]free response buf [00:19:50]execute_script done [00:19:50]execute_script returns [00:19:50]free content buf [00:19:50]Sock 7.Close socket [00:19:50]Sock 7.Thread stoped [00:19:54]OFD Sender: No OFD packet to send [00:19:59]OFD Sender: No OFD packet to send [00:20:04]OFD Sender: No OFD packet to send [00:20:09]accept exits with 9 [00:20:09]New connection [00:20:09]New thread 3066809700 created [00:20:09]Thread 3066666340 joined [00:20:09]Waiting for new connection... [00:20:09] Sock 9.Parse request [00:20:09]Sock 9.Check first char [00:20:09]Sock 9.First char is OK [00:20:09]request: POST /json_proto HTTP/1.0 [00:20:09]Method: POST [00:20:09]URL: /json_proto [00:20:09]Method is POST - this is cgi request [00:20:09]url: /json_proto [00:20:09]query_string will be loaded in cgi processing [00:20:09]execute_cgi json_proto POST (null) [00:20:09]execute_cgi path=json_proto method=POST [00:20:09]POST find Content-Length [00:20:09]Host: 172.17.44.195:8080 [00:20:09]Content-Length: 768 [00:20:09]Content-Type: application/json [00:20:09] [00:20:09]POST finish read [00:20:09]Found Content-Length = 768 [00:20:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963402", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 125.000, "sum" : 9525.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 9525.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:20:09]execute_script... [00:20: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)1963402", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 125.000, "sum" : 9525.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 9525.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:20:09]POST & json_proto [00:20:09]process_json_proto [00:20:09]json parsed OK: [00:20:09]protocol is kg_v1.0 [00:20:09]action value=close_receipt [00:20:09]process_action close_receipt [00:20:09]cmd_close_receipt [00:20:09]MH_GetDate [00:20:09]Write to MH i2c: F0 00 00 0E 22 1F [00:20:09]Write i2c OK [00:20:09]MH_I2C_Read... [00:20:09]Read from MH i2c: F0 [00:20:09]MH_I2C_Read... [00:20:09]Read from MH i2c: F0 09 00 [00:20:09]MH_I2C_Read... [00:20:09]Read from MH i2c: F0 09 00 0E 22 00 3A 9E 15 67 82 C9 CF 66 FC [00:20:09]GetLastDocTimeStamp 1729469988 [00:20:09]current date 1729470010 [00:20:09]FM_GetShiftState [00:20:09]SAM_PROTO_GetShiftState [00:20:09]wFMCommunicate request_size=4 [00:20:09]MH_SAM_APDU [00:20:09]CAPDU: 80 13 01 00 [00:20:09]Write to MH i2c: E2 08 00 0F 22 80 13 01 00 00 00 00 00 AE [00:20:09]Write i2c OK [00:20:09]MH_I2C_Read... [00:20:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:20:09]Read from MH i2c: E2 [00:20:09]MH_I2C_Read... [00:20:09]Read from MH i2c: E2 0E 00 [00:20:09]MH_I2C_Read... [00:20:09]Read from MH i2c: E2 0E 00 0F 22 00 09 00 01 F4 9B 15 67 00 00 00 00 90 00 C5 [00:20:09]RAPDU: 09 00 01 F4 9B 15 67 00 00 00 00 90 00 [00:20:09]wFMCommunicate OK [00:20:09]SAM_PROTO_GetShiftState done [00:20:09]FM_GetShiftState done [00:20:09]opened in 1729469428 [00:20:09]opened+sec_in_day 1729555828 [00:20:09]quantity*price = 952500 [00:20:09]sum+1 = 952501 [00:20:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 9525.00 НСП 1% : 84.29 НДС 12% : 1011.50 Наличными: 0.00 Безнал.: 9525.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 3 21.10.2024 00:20 Смена: 534 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 227734 ФПД: 79530181745703 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T002011&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227734&fm=79530181745703&tin=02508201610067®Number=0000000000091685&sum=952500 [00:20:10]StoreToDocumentArchive [00:20:10]shift 534 fd 227734 [00:20:10]save to /storage/0534/doc_00227734 [00:20:10]save last doc name /storage/0534/doc_00227734 to /storage/kkm_last_doc_name [00:20:10]save OK [00:20:10]Clear old archive folders... [00:20:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:20:10]tlvbuf is 00C457F0 [00:20:10]SAM_PROTO_ClearQueue [00:20:10]wFMCommunicate request_size=4 [00:20:10]MH_SAM_APDU [00:20:10]CAPDU: 80 09 00 00 [00:20:10]Write to MH i2c: E2 08 00 1C 22 80 09 00 00 00 00 00 00 B0 [00:20:10]Write i2c OK [00:20:10]MH_I2C_Read... [00:20:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:20:10]Read from MH i2c: E2 [00:20:10]MH_I2C_Read... [00:20:10]Read from MH i2c: E2 03 00 [00:20:10]MH_I2C_Read... [00:20:10]Read from MH i2c: E2 03 00 1C 22 00 90 00 B2 [00:20:10]RAPDU: 90 00 [00:20:10]wFMCommunicate OK [00:20:10]SAM_PROTO_ClearQueue done [00:20:10]KKMCreateOFDPacket [00:20:10]OFDProtocolAddRootSTLVToBuf [00:20:10]FM_MakeSignedData [00:20:10]FM_MakeSignedData [00:20:10]SAM_PROTO_SignData [00:20:10]wFMCommunicate request_size=4 [00:20:10]MH_SAM_APDU [00:20:10]CAPDU: 80 0D 01 02 [00:20:10]Write to MH i2c: E2 08 00 1D 22 80 0D 01 02 00 00 00 00 B8 [00:20:10]Write i2c OK [00:20:10]MH_I2C_Read... [00:20:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:20:10]Read from MH i2c: E2 [00:20:10]MH_I2C_Read... [00:20:10]Read from MH i2c: E2 03 00 [00:20:10]MH_I2C_Read... [00:20:10]Read from MH i2c: E2 03 00 1D 22 00 90 00 B3 [00:20:10]RAPDU: 90 00 [00:20:10]wFMCommunicate OK [00:20:10]wFMCommunicate request_size=255 [00:20:10]MH_SAM_APDU [00:20:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 48 E8 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B4 88 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 88 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 8B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 88 0E 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 3B 9E 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 96 79 03 00 35 04 06 00 48 55 10 3B [00:20:10]Write to MH i2c: E2 02 01 1E 22 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 48 E8 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B4 88 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 88 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 8B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 88 0E 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 3B 9E 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 96 79 03 00 35 04 06 00 48 55 10 3B 00 00 2E [00:20:10]Write i2c OK [00:20:10]MH_I2C_Read... [00:20:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:20:10]Read from MH i2c: E2 [00:20:10]MH_I2C_Read... [00:20:10]Read from MH i2c: E2 03 00 [00:20:10]MH_I2C_Read... [00:20:10]Read from MH i2c: E2 03 00 1E 22 00 90 00 B4 [00:20:10]RAPDU: 90 00 [00:20:10]wFMCommunicate OK [00:20:10]wFMCommunicate request_size=7 [00:20:10]MH_SAM_APDU [00:20:10]CAPDU: 80 0D 02 02 02 5C 27 [00:20:10]Write to MH i2c: E2 0A 00 1F 22 80 0D 02 02 02 00 5C 27 00 00 42 [00:20:10]Write i2c OK [00:20:10]MH_I2C_Read... [00:20:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:20:10]Read from MH i2c: E2 [00:20:10]MH_I2C_Read... [00:20:10]Read from MH i2c: E2 03 00 [00:20:10]MH_I2C_Read... [00:20:10]Read from MH i2c: E2 03 00 1F 22 00 90 00 B5 [00:20:10]RAPDU: 90 00 [00:20:10]wFMCommunicate OK [00:20:10]wFMCommunicate request_size=4 [00:20:10]MH_SAM_APDU [00:20:10]CAPDU: 80 0D 03 02 [00:20:10]Write to MH i2c: E2 08 00 20 22 80 0D 03 02 00 00 00 00 BD [00:20:10]Write i2c OK [00:20:10]MH_I2C_Read... [00:20:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:20:10]Read from MH i2c: E2 [00:20:10]MH_I2C_Read... [00:20:10]Read from MH i2c: E2 0B 00 [00:20:10]MH_I2C_Read... [00:20:10]Read from MH i2c: E2 0B 00 20 22 00 4E 88 98 30 84 F3 BF B9 90 00 4B [00:20:10]RAPDU: 4E 88 98 30 84 F3 BF B9 90 00 [00:20:10]wFMCommunicate OK [00:20:10]SAM_PROTO_SignData done [00:20:10]FM_MakeSignedData done [00:20:10]CreateOFDProtocolMessage [00:20:10]wFMCommunicate request_size=4 [00:20:10]MH_SAM_APDU [00:20:10]CAPDU: 80 11 00 00 [00:20:10]Write to MH i2c: E2 08 00 21 22 80 11 00 00 00 00 00 00 BD [00:20:10]Write i2c OK [00:20:10]MH_I2C_Read... [00:20:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:20:10]Read from MH i2c: E2 [00:20:10]MH_I2C_Read... [00:20:10]Read from MH i2c: E2 17 00 [00:20:10]MH_I2C_Read... [00:20:10]Read from MH i2c: E2 17 00 21 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 14 [00:20:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [00:20:10]wFMCommunicate OK [00:20:10]CreateOFDProtocolMessage done [00:20:10]OFDSenderStorePacket 227734 [00:20:10]StoreOFDPacket docnum=227734 [00:20:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 FC 2B 04 01 2E 07 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 48 E8 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B4 88 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 88 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 8B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 88 0E 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 3B 9E 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 96 79 03 00 35 04 06 00 48 55 10 3B 5C 27 4E 88 98 30 84 F3 BF B9 [00:20:10]CheckFolder [00:20:10]dirname=/storage/ofd_packets [00:20:10]CheckFolder done [00:20:10]ProducePacketName [00:20:10]name=ofd_packets/00227734 [00:20:10]NVStorageSaveData ofd_packets/00227734 [00:20:10]File name is /storage/ofd_packets/00227734 [00:20:10]Write 298 bytes [00:20:10]NVStorageSaveData done [00:20:10]OFDSenderStorePacket done [00:20:10]KKMCreateOFDPacket done [00:20:10]NVStorageSaveData kkm_last_timestamp [00:20:10]File name is /storage/kkm_last_timestamp [00:20:10]Write 4 bytes [00:20:10]NVStorageSaveData done [00:20:10]ExternCall_PrintAddStr [00:20:10]wPrintStart [00:20:10]Write to MH i2c: 01 00 00 22 22 44 [00:20:10]Write i2c OK [00:20:10]MH_I2C_Read... [00:20:10]Read from MH i2c: 01 [00:20:10]MH_I2C_Read... [00:20:10]Read from MH i2c: 01 07 00 [00:20:10]MH_I2C_Read... [00:20:10]Read from MH i2c: 01 07 00 22 22 00 00 00 00 00 FF 0F 59 [00:20:10]RasterBufferAndPrint [00:20:10]line Счет N : (1)1963402 [00:20:10]line ИНН: 02508201610067 [00:20:10]line Контрольно-Кассовый Чек [00:20:10]line ПРОДАЖА [00:20:10]line ТРК (МРК, ГНК) : 21 [00:20:10]line Товар: 2710194210 [00:20:10]line ДТ-К-5 [00:20:10]line 125.000 * 76.20 [00:20:10]line = 9525.00 [00:20:10]line НДС 12% НСП 1% [00:20:10]line > о реализуемом товаре [00:20:10]line ИТОГО: 9525.00 [00:20:10]line НСП 1% : 84.29 [00:20:10]line НДС 12% : 1011.50 [00:20:10]line Наличными: 0.00 [00:20:10]line Безнал.: 9525.00 [00:20:10]line Место: АЗС № 133 "Партнер Нефть" [00:20:10]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [00:20:10]line СНО: Общий режим [00:20:10]line Чек 3 21.10.2024 00:20 [00:20:10]line Смена: 534 ФФД: 1.0 [00:20:10]line ЗНМ: 0300000091 [00:20:10]line РНМ: 0000000000091685 [00:20:10]line Версия ККМ: 001 [00:20:10]line Платежная система: Mbank [00:20:10]line ФМ: 0000000000871839 [00:20:10]line ФД: 227734 [00:20:10]line ФПД: 79530181745703 [00:20:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T002011&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227734&fm=79530181745703&tin=02508201610067®Number=0000000000091685&sum=952500 [00:20:11]OFD Sender: Processing packet 227734 [packets to send 38, broken 37] [00:20:11]ProducePacketName [00:20:11]name=ofd_packets/00227734 [00:20:11]OFD Sender: To server: pG, [00:20:11]CommunicateWithHost lk.salyk.kg:30040 [00:20:11]ConnectInit lk.salyk.kg [00:20:11]written 0, free lines is 4095 [00:20:11]Connected sock=10 [00:20: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 33 39 0C 01 00 00 FC 2B 04 01 2E 07 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 48 E8 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B4 88 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 88 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 8B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 88 0E 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 3B 9E 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 96 79 03 00 35 04 06 00 48 55 10 3B 5C 27 4E 88 98 30 84 F3 BF B9 [00:20:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 8F E5 47 00 D0 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 33 39 10 04 04 00 96 79 03 00 F4 03 04 00 38 49 15 67 B6 04 01 00 00 65 3C 6F 07 11 21 4D 75 [00:20:11]CommunicateWithHost err = 0 [00:20:11]CheckOFDResponse [00:20:11]1017 (14) - 77093643461234 [00:20:11]1041 (16) - 0000000000871839 [00:20:11]1040 (4) - 227734 [00:20:11]1012 (4) - 20.10.2024 18:17 [00:20:11]1206 (1) - 0 [00:20:11]OFD Sender: Remove packet 227734 [00:20:11]ProducePacketName [00:20:11]name=ofd_packets/00227734 [00:20:11]NVStorageDeleteData [00:20:11]Write to MH i2c: 01 00 00 4A 22 6C [00:20:11]Write i2c OK [00:20:11]MH_I2C_Read... [00:20:11]Read from MH i2c: 01 [00:20:11]MH_I2C_Read... [00:20:11]Read from MH i2c: 01 07 00 [00:20:11]MH_I2C_Read... [00:20:11]Read from MH i2c: 01 07 00 4A 22 00 00 00 00 00 CD 0C 4C [00:20:11]RasterBufferAndPrint [00:20:11]line [00:20:11]line [00:20:11]line [00:20:11]line [00:20:11]line [00:20:11]written 0, free lines is 3281 [00:20:11]MH_Cut [00:20:11]Write to MH i2c: D1 01 00 51 22 01 45 [00:20:11]Write i2c OK [00:20:11]MH_I2C_Read... [00:20:11]Read from MH i2c: D1 [00:20:11]MH_I2C_Read... [00:20:11]Read from MH i2c: D1 01 00 [00:20:11]MH_I2C_Read... [00:20:11]Read from MH i2c: D1 01 00 51 22 00 44 [00:20:11]Write to MH i2c: 01 00 00 52 22 74 [00:20:11]Write i2c OK [00:20:11]MH_I2C_Read... [00:20:11]OFD Sender: No OFD packet to send [00:20:12]*** Cut start [00:20:12]*** Partial cut [00:20:12]*** CUTSNS_PIN = 1 [00:20:12]*** CUTSNS_PIN = 0 [00:20:12]*** Brake cut motor [00:20:13]Read from MH i2c: 01 [00:20:13]MH_I2C_Read... [00:20:13]*** Stop cut motor [00:20:13]*** Cut end [00:20:13]Read from MH i2c: 01 07 00 [00:20:13]MH_I2C_Read... [00:20:13]Read from MH i2c: 01 07 00 52 22 00 00 00 00 00 FF 0F 89 [00:20:13]process_action close_receipt done [00:20:13]requested_data is exist [00:20:13]produce_requested_data [00:20:13]requested_item fm.sn is exist - process it [00:20:13]wFMCommunicate request_size=4 [00:20:13]MH_SAM_APDU [00:20:13]CAPDU: 80 11 00 00 [00:20:13]Write to MH i2c: E2 08 00 53 22 80 11 00 00 00 00 00 00 EF [00:20:13]Write i2c OK [00:20:13]MH_I2C_Read... [00:20:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:20:13]Read from MH i2c: E2 [00:20:13]MH_I2C_Read... [00:20:13]Read from MH i2c: E2 17 00 [00:20:13]MH_I2C_Read... [00:20:13]Read from MH i2c: E2 17 00 53 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 46 [00:20:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [00:20:13]wFMCommunicate OK [00:20:13]requested_item fd.num is exist - process it [00:20:13]SAM_PROTO_GetFieldsCounters [00:20:13]wFMCommunicate request_size=4 [00:20:13]MH_SAM_APDU [00:20:13]CAPDU: 80 13 00 00 [00:20:13]Write to MH i2c: E2 08 00 54 22 80 13 00 00 00 00 00 00 F2 [00:20:13]Write i2c OK [00:20:13]MH_I2C_Read... [00:20:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:20:13]Read from MH i2c: E2 [00:20:13]MH_I2C_Read... [00:20:13]Read from MH i2c: E2 62 00 [00:20:13]MH_I2C_Read... [00:20:13]Read from MH i2c: E2 62 00 54 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 96 79 03 00 0E 04 04 00 16 02 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 4E [00:20: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 96 79 03 00 0E 04 04 00 16 02 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:20:13]wFMCommunicate OK [00:20:13]SAM_PROTO_GetFieldsCounters done [00:20:13]requested_item shift.num is exist - process it [00:20:13]requested_item shift.opened is exist - process it [00:20:13]req_shift_opened [00:20:13]FM_GetShiftState [00:20:13]SAM_PROTO_GetShiftState [00:20:13]wFMCommunicate request_size=4 [00:20:13]MH_SAM_APDU [00:20:13]CAPDU: 80 13 01 00 [00:20:13]Write to MH i2c: E2 08 00 55 22 80 13 01 00 00 00 00 00 F4 [00:20:13]Write i2c OK [00:20:13]MH_I2C_Read... [00:20:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:20:13]Read from MH i2c: E2 [00:20:13]MH_I2C_Read... [00:20:13]Read from MH i2c: E2 0E 00 [00:20:13]MH_I2C_Read... [00:20:13]Read from MH i2c: E2 0E 00 55 22 00 09 00 01 F4 9B 15 67 00 00 00 00 90 00 0B [00:20:13]RAPDU: 09 00 01 F4 9B 15 67 00 00 00 00 90 00 [00:20:13]wFMCommunicate OK [00:20:13]SAM_PROTO_GetShiftState done [00:20:13]FM_GetShiftState done [00:20:13]req_shift_opened done [00:20:13]requested_item shift.open_date is exist - process it [00:20:13]req_shift_open_date [00:20:13]req_shift_open_date done [00:20:13]produce_requested_data done [00:20:13]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227734,"shift.num":534,"shift.opened":1,"shift.open_date":1729469428} [00:20:13]process_action_free close_receipt [00:20:13]json_value_free [00:20:13]json_value_free done [00:20:13]process_json_proto returns [00:20:13]Send response to host [00:20:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227734,"shift.num":534,"shift.opened":1,"shift.open_date":1729469428}}} [00:20:13]free response buf [00:20:13]execute_script done [00:20:13]execute_script returns [00:20:13]free content buf [00:20:13]Sock 9.Close socket [00:20:13]Sock 9.Thread stoped [00:20:16]OFD Sender: No OFD packet to send [00:20:21]OFD Sender: No OFD packet to send [00:20:26]OFD Sender: No OFD packet to send [00:20:31]OFD Sender: No OFD packet to send [00:20:36]OFD Sender: No OFD packet to send [00:20:41]OFD Sender: No OFD packet to send [00:20:46]OFD Sender: No OFD packet to send [00:20:51]OFD Sender: No OFD packet to send [00:20:56]OFD Sender: No OFD packet to send [00:20:58]accept exits with 7 [00:20:58]New connection [00:20:58]New thread 3066666340 created [00:20:58]Thread 3066809700 joined [00:20:58]Waiting for new connection... [00:20:58] Sock 7.Parse request [00:20:58]Sock 7.Check first char [00:20:58]Sock 7.First char is OK [00:20:58]request: POST /json_proto HTTP/1.0 [00:20:58]Method: POST [00:20:58]URL: /json_proto [00:20:58]Method is POST - this is cgi request [00:20:58]url: /json_proto [00:20:58]query_string will be loaded in cgi processing [00:20:58]execute_cgi json_proto POST (null) [00:20:58]execute_cgi path=json_proto method=POST [00:20:58]POST find Content-Length [00:20:58]Host: 172.17.44.195:8080 [00:20:58]Content-Length: 678 [00:20:58]Content-Type: application/json [00:20:58] [00:20:58]POST finish read [00:20:58]Found Content-Length = 678 [00:20:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963405", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:20:58]execute_script... [00:20: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)1963405", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:20:58]POST & json_proto [00:20:58]process_json_proto [00:20:58]json parsed OK: [00:20:58]protocol is kg_v1.0 [00:20:58]action value=close_receipt [00:20:58]process_action close_receipt [00:20:58]cmd_close_receipt [00:20:58]MH_GetDate [00:20:58]Write to MH i2c: F0 00 00 56 22 67 [00:20:58]Write i2c OK [00:20:58]MH_I2C_Read... [00:20:58]Read from MH i2c: F0 [00:20:58]MH_I2C_Read... [00:20:58]Read from MH i2c: F0 09 00 [00:20:58]MH_I2C_Read... [00:20:58]Read from MH i2c: F0 09 00 56 22 00 6C 9E 15 67 82 C9 CF 66 76 [00:20:58]GetLastDocTimeStamp 1729470011 [00:20:58]current date 1729470060 [00:20:58]FM_GetShiftState [00:20:58]SAM_PROTO_GetShiftState [00:20:58]wFMCommunicate request_size=4 [00:20:58]MH_SAM_APDU [00:20:58]CAPDU: 80 13 01 00 [00:20:58]Write to MH i2c: E2 08 00 57 22 80 13 01 00 00 00 00 00 F6 [00:20:58]Write i2c OK [00:20:58]MH_I2C_Read... [00:20:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:20:58]Read from MH i2c: E2 [00:20:58]MH_I2C_Read... [00:20:58]Read from MH i2c: E2 0E 00 [00:20:58]MH_I2C_Read... [00:20:58]Read from MH i2c: E2 0E 00 57 22 00 09 00 01 F4 9B 15 67 00 00 00 00 90 00 0D [00:20:58]RAPDU: 09 00 01 F4 9B 15 67 00 00 00 00 90 00 [00:20:58]wFMCommunicate OK [00:20:58]SAM_PROTO_GetShiftState done [00:20:58]FM_GetShiftState done [00:20:58]opened in 1729469428 [00:20:58]opened+sec_in_day 1729555828 [00:20:58]quantity*price = 30038 [00:20:58]sum+1 = 30039 [00:20:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 4 21.10.2024 00:21 Смена: 534 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227735 ФПД: 248263086661558 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T002100&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227735&fm=248263086661558&tin=02508201610067®Number=0000000000091685&sum=30000 [00:20:59]StoreToDocumentArchive [00:20:59]shift 534 fd 227735 [00:20:59]save to /storage/0534/doc_00227735 [00:20:59]save last doc name /storage/0534/doc_00227735 to /storage/kkm_last_doc_name [00:20:59]save OK [00:20:59]Clear old archive folders... [00:20:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:20:59]tlvbuf is 00C236C0 [00:20:59]SAM_PROTO_ClearQueue [00:20:59]wFMCommunicate request_size=4 [00:20:59]MH_SAM_APDU [00:20:59]CAPDU: 80 09 00 00 [00:20:59]Write to MH i2c: E2 08 00 64 22 80 09 00 00 00 00 00 00 F8 [00:21:00]Write i2c OK [00:21:00]MH_I2C_Read... [00:21:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:21:00]Read from MH i2c: E2 [00:21:00]MH_I2C_Read... [00:21:00]Read from MH i2c: E2 03 00 [00:21:00]MH_I2C_Read... [00:21:00]Read from MH i2c: E2 03 00 64 22 00 90 00 FA [00:21:00]RAPDU: 90 00 [00:21:00]wFMCommunicate OK [00:21:00]SAM_PROTO_ClearQueue done [00:21:00]KKMCreateOFDPacket [00:21:00]OFDProtocolAddRootSTLVToBuf [00:21:00]FM_MakeSignedData [00:21:00]FM_MakeSignedData [00:21:00]SAM_PROTO_SignData [00:21:00]wFMCommunicate request_size=4 [00:21:00]MH_SAM_APDU [00:21:00]CAPDU: 80 0D 01 02 [00:21:00]Write to MH i2c: E2 08 00 65 22 80 0D 01 02 00 00 00 00 00 [00:21:00]Write i2c OK [00:21:00]MH_I2C_Read... [00:21:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:21:00]Read from MH i2c: E2 [00:21:00]MH_I2C_Read... [00:21:00]Read from MH i2c: E2 03 00 [00:21:00]MH_I2C_Read... [00:21:00]Read from MH i2c: E2 03 00 65 22 00 90 00 FB [00:21:00]RAPDU: 90 00 [00:21:00]wFMCommunicate OK [00:21:00]wFMCommunicate request_size=255 [00:21:00]MH_SAM_APDU [00:21:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 6C 9E 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 97 79 03 00 35 04 06 00 E1 [00:21:00]Write to MH i2c: E2 02 01 66 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 6C 9E 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 97 79 03 00 35 04 06 00 E1 00 00 21 [00:21:00]Write i2c OK [00:21:00]MH_I2C_Read... [00:21:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:21:00]Read from MH i2c: E2 [00:21:00]MH_I2C_Read... [00:21:00]Read from MH i2c: E2 03 00 [00:21:00]MH_I2C_Read... [00:21:00]Read from MH i2c: E2 03 00 66 22 00 90 00 FC [00:21:00]RAPDU: 90 00 [00:21:00]wFMCommunicate OK [00:21:00]wFMCommunicate request_size=10 [00:21:00]MH_SAM_APDU [00:21:00]CAPDU: 80 0D 02 02 05 CB 41 17 5F B6 [00:21:00]Write to MH i2c: E2 0D 00 67 22 80 0D 02 02 05 00 CB 41 17 5F B6 00 00 45 [00:21:00]Write i2c OK [00:21:00]MH_I2C_Read... [00:21:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:21:00]Read from MH i2c: E2 [00:21:00]MH_I2C_Read... [00:21:00]Read from MH i2c: E2 03 00 [00:21:00]MH_I2C_Read... [00:21:00]Read from MH i2c: E2 03 00 67 22 00 90 00 FD [00:21:00]RAPDU: 90 00 [00:21:00]wFMCommunicate OK [00:21:00]wFMCommunicate request_size=4 [00:21:00]MH_SAM_APDU [00:21:00]CAPDU: 80 0D 03 02 [00:21:00]Write to MH i2c: E2 08 00 68 22 80 0D 03 02 00 00 00 00 05 [00:21:00]Write i2c OK [00:21:00]MH_I2C_Read... [00:21:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:21:00]Read from MH i2c: E2 [00:21:00]MH_I2C_Read... [00:21:00]Read from MH i2c: E2 0B 00 [00:21:00]MH_I2C_Read... [00:21:00]Read from MH i2c: E2 0B 00 68 22 00 0F 3E 70 5C 02 16 F1 FE 90 00 26 [00:21:00]RAPDU: 0F 3E 70 5C 02 16 F1 FE 90 00 [00:21:00]wFMCommunicate OK [00:21:00]SAM_PROTO_SignData done [00:21:00]FM_MakeSignedData done [00:21:00]CreateOFDProtocolMessage [00:21:00]wFMCommunicate request_size=4 [00:21:00]MH_SAM_APDU [00:21:00]CAPDU: 80 11 00 00 [00:21:00]Write to MH i2c: E2 08 00 69 22 80 11 00 00 00 00 00 00 05 [00:21:00]Write i2c OK [00:21:00]MH_I2C_Read... [00:21:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:21:00]Read from MH i2c: E2 [00:21:00]MH_I2C_Read... [00:21:00]Read from MH i2c: E2 17 00 [00:21:00]MH_I2C_Read... [00:21:00]Read from MH i2c: E2 17 00 69 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 5C [00:21:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [00:21:00]wFMCommunicate OK [00:21:00]CreateOFDProtocolMessage done [00:21:00]OFDSenderStorePacket 227735 [00:21:00]StoreOFDPacket docnum=227735 [00:21:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 B5 AE 07 01 CA 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 6C 9E 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 97 79 03 00 35 04 06 00 E1 CB 41 17 5F B6 0F 3E 70 5C 02 16 F1 FE [00:21:00]CheckFolder [00:21:00]dirname=/storage/ofd_packets [00:21:00]CheckFolder done [00:21:00]ProducePacketName [00:21:00]name=ofd_packets/00227735 [00:21:00]NVStorageSaveData ofd_packets/00227735 [00:21:00]File name is /storage/ofd_packets/00227735 [00:21:00]Write 301 bytes [00:21:00]NVStorageSaveData done [00:21:00]OFDSenderStorePacket done [00:21:00]KKMCreateOFDPacket done [00:21:00]NVStorageSaveData kkm_last_timestamp [00:21:00]File name is /storage/kkm_last_timestamp [00:21:00]Write 4 bytes [00:21:00]NVStorageSaveData done [00:21:00]ExternCall_PrintAddStr [00:21:00]wPrintStart [00:21:00]Write to MH i2c: 01 00 00 6A 22 8C [00:21:00]Write i2c OK [00:21:00]MH_I2C_Read... [00:21:00]Read from MH i2c: 01 [00:21:00]MH_I2C_Read... [00:21:00]Read from MH i2c: 01 07 00 [00:21:00]MH_I2C_Read... [00:21:00]Read from MH i2c: 01 07 00 6A 22 00 00 00 00 00 FF 0F A1 [00:21:00]RasterBufferAndPrint [00:21:00]line Счет N : (1)1963405 [00:21:00]line ИНН: 02508201610067 [00:21:00]line Контрольно-Кассовый Чек [00:21:00]line ПРОДАЖА [00:21:00]line ТРК (МРК, ГНК) : 63 [00:21:00]line Товар: 2710124130 [00:21:00]line Аи-92-К-5 [00:21:00]line 4.490 * 66.90 [00:21:00]line = 300.38 [00:21:00]line НДС 12% НСП 1% [00:21:00]line > о реализуемом товаре [00:21:00]line ОКРУГЛЕНИЕ: -0.38 [00:21:00]line ИТОГО: 300.00 [00:21:00]line Внесено: 300.00 [00:21:00]line СДАЧА: 0.00 [00:21:00]line НСП 1% : 2.66 [00:21:00]line НДС 12% : 31.90 [00:21:00]line Наличными: 300.00 [00:21:00]line Безнал.: 0.00 [00:21:00]line Место: АЗС № 133 "Партнер Нефть" [00:21:00]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [00:21:00]line СНО: Общий режим [00:21:00]line Чек 4 21.10.2024 00:21 [00:21:00]line Смена: 534 ФФД: 1.0 [00:21:00]line ЗНМ: 0300000091 [00:21:00]line РНМ: 0000000000091685 [00:21:00]line Версия ККМ: 001 [00:21:00]line ФМ: 0000000000871839 [00:21:00]line ФД: 227735 [00:21:00]line ФПД: 248263086661558 [00:21:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T002100&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227735&fm=248263086661558&tin=02508201610067®Number=0000000000091685&sum=30000 [00:21:00]written 0, free lines is 4095 [00:21:00]OFD Sender: Processing packet 227735 [packets to send 38, broken 37] [00:21:00]ProducePacketName [00:21:00]name=ofd_packets/00227735 [00:21:00]OFD Sender: To server: pG, [00:21:00]CommunicateWithHost lk.salyk.kg:30040 [00:21:00]ConnectInit lk.salyk.kg [00:21:00]Connected sock=10 [00:21: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 33 39 0F 01 00 00 B5 AE 07 01 CA 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 6C 9E 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 97 79 03 00 35 04 06 00 E1 CB 41 17 5F B6 0F 3E 70 5C 02 16 F1 FE [00:21: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 33 39 4F 00 00 00 3B E6 47 00 FF 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 33 39 10 04 04 00 97 79 03 00 F4 03 04 00 6A 49 15 67 B6 04 01 00 00 5B 8D 1A 95 47 A1 C8 98 [00:21:01]CommunicateWithHost err = 0 [00:21:01]CheckOFDResponse [00:21:01]1017 (14) - 77093643461234 [00:21:01]1041 (16) - 0000000000871839 [00:21:01]1040 (4) - 227735 [00:21:01]1012 (4) - 20.10.2024 18:18 [00:21:01]1206 (1) - 0 [00:21:01]OFD Sender: Remove packet 227735 [00:21:01]ProducePacketName [00:21:01]name=ofd_packets/00227735 [00:21:01]NVStorageDeleteData [00:21:01]Write to MH i2c: 01 00 00 94 22 B6 [00:21:01]Write i2c OK [00:21:01]MH_I2C_Read... [00:21:01]Read from MH i2c: 01 [00:21:01]MH_I2C_Read... [00:21:01]Read from MH i2c: 01 07 00 [00:21:01]MH_I2C_Read... [00:21:01]Read from MH i2c: 01 07 00 94 22 00 00 00 00 00 A5 0C 6E [00:21:01]RasterBufferAndPrint [00:21:01]line [00:21:01]line [00:21:01]line [00:21:01]line [00:21:01]line [00:21:01]written 0, free lines is 3242 [00:21:01]MH_Cut [00:21:01]Write to MH i2c: D1 01 00 9B 22 01 8F [00:21:01]Write i2c OK [00:21:01]MH_I2C_Read... [00:21:01]Read from MH i2c: D1 [00:21:01]MH_I2C_Read... [00:21:01]Read from MH i2c: D1 01 00 [00:21:01]MH_I2C_Read... [00:21:01]Read from MH i2c: D1 01 00 9B 22 00 8E [00:21:01]Write to MH i2c: 01 00 00 9C 22 BE [00:21:01]Write i2c OK [00:21:01]MH_I2C_Read... [00:21:01]OFD Sender: No OFD packet to send [00:21:02]*** Cut start [00:21:02]*** Partial cut [00:21:02]*** CUTSNS_PIN = 1 [00:21:02]*** CUTSNS_PIN = 0 [00:21:02]*** Brake cut motor [00:21:02]Read from MH i2c: 01 [00:21:02]MH_I2C_Read... [00:21:02]*** Stop cut motor [00:21:02]*** Cut end [00:21:02]Read from MH i2c: 01 07 00 [00:21:02]MH_I2C_Read... [00:21:02]Read from MH i2c: 01 07 00 9C 22 00 00 00 00 00 FF 0F D3 [00:21:02]process_action close_receipt done [00:21:02]requested_data is exist [00:21:02]produce_requested_data [00:21:02]requested_item fm.sn is exist - process it [00:21:02]wFMCommunicate request_size=4 [00:21:02]MH_SAM_APDU [00:21:02]CAPDU: 80 11 00 00 [00:21:02]Write to MH i2c: E2 08 00 9D 22 80 11 00 00 00 00 00 00 39 [00:21:02]Write i2c OK [00:21:02]MH_I2C_Read... [00:21:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:21:02]Read from MH i2c: E2 [00:21:02]MH_I2C_Read... [00:21:02]Read from MH i2c: E2 17 00 [00:21:02]MH_I2C_Read... [00:21:02]Read from MH i2c: E2 17 00 9D 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 90 [00:21:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [00:21:02]wFMCommunicate OK [00:21:02]requested_item fd.num is exist - process it [00:21:02]SAM_PROTO_GetFieldsCounters [00:21:02]wFMCommunicate request_size=4 [00:21:02]MH_SAM_APDU [00:21:02]CAPDU: 80 13 00 00 [00:21:02]Write to MH i2c: E2 08 00 9E 22 80 13 00 00 00 00 00 00 3C [00:21:02]Write i2c OK [00:21:02]MH_I2C_Read... [00:21:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:21:03]Read from MH i2c: E2 [00:21:03]MH_I2C_Read... [00:21:03]Read from MH i2c: E2 62 00 [00:21:03]MH_I2C_Read... [00:21:03]Read from MH i2c: E2 62 00 9E 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 97 79 03 00 0E 04 04 00 16 02 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [00:21:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 97 79 03 00 0E 04 04 00 16 02 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:21:03]wFMCommunicate OK [00:21:03]SAM_PROTO_GetFieldsCounters done [00:21:03]requested_item shift.num is exist - process it [00:21:03]requested_item shift.opened is exist - process it [00:21:03]req_shift_opened [00:21:03]FM_GetShiftState [00:21:03]SAM_PROTO_GetShiftState [00:21:03]wFMCommunicate request_size=4 [00:21:03]MH_SAM_APDU [00:21:03]CAPDU: 80 13 01 00 [00:21:03]Write to MH i2c: E2 08 00 9F 22 80 13 01 00 00 00 00 00 3E [00:21:03]Write i2c OK [00:21:03]MH_I2C_Read... [00:21:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:21:03]Read from MH i2c: E2 [00:21:03]MH_I2C_Read... [00:21:03]Read from MH i2c: E2 0E 00 [00:21:03]MH_I2C_Read... [00:21:03]Read from MH i2c: E2 0E 00 9F 22 00 09 00 01 F4 9B 15 67 00 00 00 00 90 00 55 [00:21:03]RAPDU: 09 00 01 F4 9B 15 67 00 00 00 00 90 00 [00:21:03]wFMCommunicate OK [00:21:03]SAM_PROTO_GetShiftState done [00:21:03]FM_GetShiftState done [00:21:03]req_shift_opened done [00:21:03]requested_item shift.open_date is exist - process it [00:21:03]req_shift_open_date [00:21:03]req_shift_open_date done [00:21:03]produce_requested_data done [00:21:03]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227735,"shift.num":534,"shift.opened":1,"shift.open_date":1729469428} [00:21:03]process_action_free close_receipt [00:21:03]json_value_free [00:21:03]json_value_free done [00:21:03]process_json_proto returns [00:21:03]Send response to host [00:21:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227735,"shift.num":534,"shift.opened":1,"shift.open_date":1729469428}}} [00:21:03]free response buf [00:21:03]execute_script done [00:21:03]execute_script returns [00:21:03]free content buf [00:21:03]Sock 7.Close socket [00:21:03]Sock 7.Thread stoped [00:21:06]OFD Sender: No OFD packet to send [00:21:11]OFD Sender: No OFD packet to send [00:21:16]OFD Sender: No OFD packet to send [00:21:21]OFD Sender: No OFD packet to send [00:21:26]OFD Sender: No OFD packet to send [00:21:31]OFD Sender: No OFD packet to send [00:21:36]OFD Sender: No OFD packet to send [00:21:41]OFD Sender: No OFD packet to send [00:21:46]OFD Sender: No OFD packet to send [00:21:51]OFD Sender: No OFD packet to send [00:21:56]OFD Sender: No OFD packet to send [00:22:01]OFD Sender: No OFD packet to send [00:22:06]OFD Sender: No OFD packet to send [00:22:11]OFD Sender: No OFD packet to send [00:22:16]OFD Sender: No OFD packet to send [00:22:21]OFD Sender: No OFD packet to send [00:22:26]OFD Sender: No OFD packet to send [00:22:31]OFD Sender: No OFD packet to send [00:22:36]OFD Sender: No OFD packet to send [00:22:41]OFD Sender: No OFD packet to send [00:22:46]OFD Sender: No OFD packet to send [00:22:51]OFD Sender: No OFD packet to send [00:22:56]OFD Sender: No OFD packet to send [00:23:01]OFD Sender: No OFD packet to send [00:23:06]OFD Sender: No OFD packet to send [00:23:11]OFD Sender: No OFD packet to send [00:23:16]OFD Sender: No OFD packet to send [00:23:21]OFD Sender: No OFD packet to send [00:23:26]OFD Sender: No OFD packet to send [00:23:31]OFD Sender: No OFD packet to send [00:23:36]OFD Sender: No OFD packet to send [00:23:41]OFD Sender: No OFD packet to send [00:23:46]OFD Sender: No OFD packet to send [00:23:51]OFD Sender: No OFD packet to send [00:23:56]OFD Sender: No OFD packet to send [00:24:01]OFD Sender: No OFD packet to send [00:24:06]OFD Sender: No OFD packet to send [00:24:11]OFD Sender: No OFD packet to send [00:24:16]OFD Sender: No OFD packet to send [00:24:21]OFD Sender: No OFD packet to send [00:24:26]OFD Sender: No OFD packet to send [00:24:31]OFD Sender: No OFD packet to send [00:24:36]OFD Sender: No OFD packet to send [00:24:41]OFD Sender: No OFD packet to send [00:24:46]OFD Sender: No OFD packet to send [00:24:51]OFD Sender: No OFD packet to send [00:24:56]OFD Sender: No OFD packet to send [00:25:01]OFD Sender: No OFD packet to send [00:25:06]OFD Sender: No OFD packet to send [00:25:11]accept exits with 9 [00:25:11]New connection [00:25:11]New thread 3066809700 created [00:25:11]Thread 3066666340 joined [00:25:11]Waiting for new connection... [00:25:11] Sock 9.Parse request [00:25:11]Sock 9.Check first char [00:25:11]Sock 9.First char is OK [00:25:11]request: POST /json_proto HTTP/1.0 [00:25:11]Method: POST [00:25:11]URL: /json_proto [00:25:11]Method is POST - this is cgi request [00:25:11]url: /json_proto [00:25:11]query_string will be loaded in cgi processing [00:25:11]execute_cgi json_proto POST (null) [00:25:11]execute_cgi path=json_proto method=POST [00:25:11]POST find Content-Length [00:25:11]Host: 172.17.44.195:8080 [00:25:11]Content-Length: 678 [00:25:11]Content-Type: application/json [00:25:11] [00:25:11]POST finish read [00:25:11]Found Content-Length = 678 [00:25:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963406", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:25:11]execute_script... [00:25:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963406", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:25:11]POST & json_proto [00:25:11]process_json_proto [00:25:11]json parsed OK: [00:25:11]protocol is kg_v1.0 [00:25:11]action value=close_receipt [00:25:11]process_action close_receipt [00:25:11]cmd_close_receipt [00:25:11]MH_GetDate [00:25:11]Write to MH i2c: F0 00 00 A0 22 B1 [00:25:11]Write i2c OK [00:25:11]MH_I2C_Read... [00:25:11]Read from MH i2c: F0 [00:25:11]MH_I2C_Read... [00:25:11]Read from MH i2c: F0 09 00 [00:25:11]MH_I2C_Read... [00:25:11]Read from MH i2c: F0 09 00 A0 22 00 69 9F 15 67 82 C9 CF 66 BE [00:25:11]GetLastDocTimeStamp 1729470060 [00:25:11]current date 1729470313 [00:25:11]FM_GetShiftState [00:25:11]SAM_PROTO_GetShiftState [00:25:11]wFMCommunicate request_size=4 [00:25:11]MH_SAM_APDU [00:25:11]CAPDU: 80 13 01 00 [00:25:11]Write to MH i2c: E2 08 00 A1 22 80 13 01 00 00 00 00 00 40 [00:25:11]Write i2c OK [00:25:11]MH_I2C_Read... [00:25:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:25:11]Read from MH i2c: E2 [00:25:11]MH_I2C_Read... [00:25:11]Read from MH i2c: E2 0E 00 [00:25:11]MH_I2C_Read... [00:25:11]Read from MH i2c: E2 0E 00 A1 22 00 09 00 01 F4 9B 15 67 00 00 00 00 90 00 57 [00:25:11]RAPDU: 09 00 01 F4 9B 15 67 00 00 00 00 90 00 [00:25:11]wFMCommunicate OK [00:25:11]SAM_PROTO_GetShiftState done [00:25:11]FM_GetShiftState done [00:25:11]opened in 1729469428 [00:25:11]opened+sec_in_day 1729555828 [00:25:11]quantity*price = 30038 [00:25:11]sum+1 = 30039 [00:25:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 5 21.10.2024 00:25 Смена: 534 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227736 ФПД: 180116160788 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T002513&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227736&fm=180116160788&tin=02508201610067®Number=0000000000091685&sum=30000 [00:25:12]StoreToDocumentArchive [00:25:12]shift 534 fd 227736 [00:25:12]save to /storage/0534/doc_00227736 [00:25:12]save last doc name /storage/0534/doc_00227736 to /storage/kkm_last_doc_name [00:25:12]save OK [00:25:12]Clear old archive folders... [00:25:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:25:12]tlvbuf is 00C4DD20 [00:25:12]SAM_PROTO_ClearQueue [00:25:12]wFMCommunicate request_size=4 [00:25:12]MH_SAM_APDU [00:25:12]CAPDU: 80 09 00 00 [00:25:12]Write to MH i2c: E2 08 00 AE 22 80 09 00 00 00 00 00 00 42 [00:25:12]Write i2c OK [00:25:12]MH_I2C_Read... [00:25:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:25:12]Read from MH i2c: E2 [00:25:12]MH_I2C_Read... [00:25:12]Read from MH i2c: E2 03 00 [00:25:12]MH_I2C_Read... [00:25:12]Read from MH i2c: E2 03 00 AE 22 00 90 00 44 [00:25:12]RAPDU: 90 00 [00:25:12]wFMCommunicate OK [00:25:12]SAM_PROTO_ClearQueue done [00:25:12]KKMCreateOFDPacket [00:25:12]OFDProtocolAddRootSTLVToBuf [00:25:12]FM_MakeSignedData [00:25:12]FM_MakeSignedData [00:25:12]SAM_PROTO_SignData [00:25:12]wFMCommunicate request_size=4 [00:25:12]MH_SAM_APDU [00:25:12]CAPDU: 80 0D 01 02 [00:25:12]Write to MH i2c: E2 08 00 AF 22 80 0D 01 02 00 00 00 00 4A [00:25:12]Write i2c OK [00:25:12]MH_I2C_Read... [00:25:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:25:12]Read from MH i2c: E2 [00:25:12]MH_I2C_Read... [00:25:12]Read from MH i2c: E2 03 00 [00:25:12]MH_I2C_Read... [00:25:12]Read from MH i2c: E2 03 00 AF 22 00 90 00 45 [00:25:12]RAPDU: 90 00 [00:25:12]wFMCommunicate OK [00:25:12]wFMCommunicate request_size=255 [00:25:12]MH_SAM_APDU [00:25:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 69 9F 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 98 79 03 00 35 04 06 00 00 [00:25:12]Write to MH i2c: E2 02 01 B0 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 69 9F 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 98 79 03 00 35 04 06 00 00 00 00 8A [00:25:12]Write i2c OK [00:25:12]MH_I2C_Read... [00:25:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:25:13]Read from MH i2c: E2 [00:25:13]MH_I2C_Read... [00:25:13]Read from MH i2c: E2 03 00 [00:25:13]MH_I2C_Read... [00:25:13]Read from MH i2c: E2 03 00 B0 22 00 90 00 46 [00:25:13]RAPDU: 90 00 [00:25:13]wFMCommunicate OK [00:25:13]wFMCommunicate request_size=10 [00:25:13]MH_SAM_APDU [00:25:13]CAPDU: 80 0D 02 02 05 29 EF C2 81 14 [00:25:13]Write to MH i2c: E2 0D 00 B1 22 80 0D 02 02 05 00 29 EF C2 81 14 00 00 C6 [00:25:13]Write i2c OK [00:25:13]MH_I2C_Read... [00:25:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:25:13]Read from MH i2c: E2 [00:25:13]MH_I2C_Read... [00:25:13]Read from MH i2c: E2 03 00 [00:25:13]MH_I2C_Read... [00:25:13]Read from MH i2c: E2 03 00 B1 22 00 90 00 47 [00:25:13]RAPDU: 90 00 [00:25:13]wFMCommunicate OK [00:25:13]wFMCommunicate request_size=4 [00:25:13]MH_SAM_APDU [00:25:13]CAPDU: 80 0D 03 02 [00:25:13]Write to MH i2c: E2 08 00 B2 22 80 0D 03 02 00 00 00 00 4F [00:25:13]Write i2c OK [00:25:13]MH_I2C_Read... [00:25:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:25:13]Read from MH i2c: E2 [00:25:13]MH_I2C_Read... [00:25:13]Read from MH i2c: E2 0B 00 [00:25:13]MH_I2C_Read... [00:25:13]Read from MH i2c: E2 0B 00 B2 22 00 C9 A6 33 BB F8 E4 87 36 90 00 46 [00:25:13]RAPDU: C9 A6 33 BB F8 E4 87 36 90 00 [00:25:13]wFMCommunicate OK [00:25:13]SAM_PROTO_SignData done [00:25:13]FM_MakeSignedData done [00:25:13]CreateOFDProtocolMessage [00:25:13]wFMCommunicate request_size=4 [00:25:13]MH_SAM_APDU [00:25:13]CAPDU: 80 11 00 00 [00:25:13]Write to MH i2c: E2 08 00 B3 22 80 11 00 00 00 00 00 00 4F [00:25:13]Write i2c OK [00:25:13]MH_I2C_Read... [00:25:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:25:13]Read from MH i2c: E2 [00:25:13]MH_I2C_Read... [00:25:13]Read from MH i2c: E2 17 00 [00:25:13]MH_I2C_Read... [00:25:13]Read from MH i2c: E2 17 00 B3 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 A6 [00:25:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [00:25:13]wFMCommunicate OK [00:25:13]CreateOFDProtocolMessage done [00:25:13]OFDSenderStorePacket 227736 [00:25:13]StoreOFDPacket docnum=227736 [00:25:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 02 4F 07 01 58 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 69 9F 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 98 79 03 00 35 04 06 00 00 29 EF C2 81 14 C9 A6 33 BB F8 E4 87 36 [00:25:13]CheckFolder [00:25:13]dirname=/storage/ofd_packets [00:25:13]CheckFolder done [00:25:13]ProducePacketName [00:25:13]name=ofd_packets/00227736 [00:25:13]NVStorageSaveData ofd_packets/00227736 [00:25:13]File name is /storage/ofd_packets/00227736 [00:25:13]Write 301 bytes [00:25:13]NVStorageSaveData done [00:25:13]OFDSenderStorePacket done [00:25:13]KKMCreateOFDPacket done [00:25:13]NVStorageSaveData kkm_last_timestamp [00:25:13]File name is /storage/kkm_last_timestamp [00:25:13]Write 4 bytes [00:25:13]NVStorageSaveData done [00:25:13]ExternCall_PrintAddStr [00:25:13]wPrintStart [00:25:13]Write to MH i2c: 01 00 00 B4 22 D6 [00:25:13]Write i2c OK [00:25:13]MH_I2C_Read... [00:25:13]Read from MH i2c: 01 [00:25:13]MH_I2C_Read... [00:25:13]Read from MH i2c: 01 07 00 [00:25:13]MH_I2C_Read... [00:25:13]Read from MH i2c: 01 07 00 B4 22 00 00 00 00 00 FF 0F EB [00:25:13]RasterBufferAndPrint [00:25:13]line Счет N : (1)1963406 [00:25:13]line ИНН: 02508201610067 [00:25:13]line Контрольно-Кассовый Чек [00:25:13]line ПРОДАЖА [00:25:13]line ТРК (МРК, ГНК) : 43 [00:25:13]line Товар: 2710124130 [00:25:13]line Аи-92-К-5 [00:25:13]line 4.490 * 66.90 [00:25:13]line = 300.38 [00:25:13]line НДС 12% НСП 1% [00:25:13]line > о реализуемом товаре [00:25:13]line ОКРУГЛЕНИЕ: -0.38 [00:25:13]line ИТОГО: 300.00 [00:25:13]line Внесено: 300.00 [00:25:13]line СДАЧА: 0.00 [00:25:13]line НСП 1% : 2.66 [00:25:13]line НДС 12% : 31.90 [00:25:13]line Наличными: 300.00 [00:25:13]line Безнал.: 0.00 [00:25:13]line Место: АЗС № 133 "Партнер Нефть" [00:25:13]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [00:25:13]line СНО: Общий режим [00:25:13]line Чек 5 21.10.2024 00:25 [00:25:13]line Смена: 534 ФФД: 1.0 [00:25:13]line ЗНМ: 0300000091 [00:25:13]line РНМ: 0000000000091685 [00:25:13]line Версия ККМ: 001 [00:25:13]line ФМ: 0000000000871839 [00:25:13]line ФД: 227736 [00:25:13]line ФПД: 180116160788 [00:25:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T002513&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227736&fm=180116160788&tin=02508201610067®Number=0000000000091685&sum=30000 [00:25:13]written 0, free lines is 4095 [00:25:13]OFD Sender: Processing packet 227736 [packets to send 38, broken 37] [00:25:13]ProducePacketName [00:25:13]name=ofd_packets/00227736 [00:25:13]OFD Sender: To server: pG, [00:25:13]CommunicateWithHost lk.salyk.kg:30040 [00:25:13]ConnectInit lk.salyk.kg [00:25:13]Connected sock=10 [00:25:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 02 4F 07 01 58 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 69 9F 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 98 79 03 00 35 04 06 00 00 29 EF C2 81 14 C9 A6 33 BB F8 E4 87 36 [00:25: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 33 39 4F 00 00 00 94 D6 47 00 43 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 33 39 10 04 04 00 98 79 03 00 F4 03 04 00 66 4A 15 67 B6 04 01 00 00 D7 EC 51 36 2F 91 2B 6D [00:25:13]CommunicateWithHost err = 0 [00:25:13]CheckOFDResponse [00:25:13]1017 (14) - 77093643461234 [00:25:13]1041 (16) - 0000000000871839 [00:25:13]1040 (4) - 227736 [00:25:13]1012 (4) - 20.10.2024 18:22 [00:25:13]1206 (1) - 0 [00:25:13]OFD Sender: Remove packet 227736 [00:25:13]ProducePacketName [00:25:13]name=ofd_packets/00227736 [00:25:13]NVStorageDeleteData [00:25:13]Write to MH i2c: 01 00 00 DE 22 00 [00:25:13]Write i2c OK [00:25:13]MH_I2C_Read... [00:25:13]Read from MH i2c: 01 [00:25:13]MH_I2C_Read... [00:25:13]Read from MH i2c: 01 07 00 [00:25:13]MH_I2C_Read... [00:25:13]Read from MH i2c: 01 07 00 DE 22 00 00 00 00 00 9B 0C AE [00:25:13]RasterBufferAndPrint [00:25:13]line [00:25:13]line [00:25:13]line [00:25:13]line [00:25:13]line [00:25:13]written 0, free lines is 3232 [00:25:13]MH_Cut [00:25:13]Write to MH i2c: D1 01 00 E5 22 01 D9 [00:25:13]Write i2c OK [00:25:13]MH_I2C_Read... [00:25:13]Read from MH i2c: D1 [00:25:13]MH_I2C_Read... [00:25:13]Read from MH i2c: D1 01 00 [00:25:13]MH_I2C_Read... [00:25:13]Read from MH i2c: D1 01 00 E5 22 00 D8 [00:25:13]Write to MH i2c: 01 00 00 E6 22 08 [00:25:13]Write i2c OK [00:25:13]MH_I2C_Read... [00:25:14]OFD Sender: No OFD packet to send [00:25:14]*** Cut start [00:25:14]*** Partial cut [00:25:14]*** CUTSNS_PIN = 1 [00:25:14]*** CUTSNS_PIN = 0 [00:25:15]*** Brake cut motor [00:25:15]Read from MH i2c: 01 [00:25:15]MH_I2C_Read... [00:25:15]*** Stop cut motor [00:25:15]*** Cut end [00:25:15]Read from MH i2c: 01 07 00 [00:25:15]MH_I2C_Read... [00:25:15]Read from MH i2c: 01 07 00 E6 22 00 00 00 00 00 FF 0F 1D [00:25:15]process_action close_receipt done [00:25:15]requested_data is exist [00:25:15]produce_requested_data [00:25:15]requested_item fm.sn is exist - process it [00:25:15]wFMCommunicate request_size=4 [00:25:15]MH_SAM_APDU [00:25:15]CAPDU: 80 11 00 00 [00:25:15]Write to MH i2c: E2 08 00 E7 22 80 11 00 00 00 00 00 00 83 [00:25:15]Write i2c OK [00:25:15]MH_I2C_Read... [00:25:15]Read from MH i2c: E2 [00:25:15]MH_I2C_Read... [00:25:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:25:15]Read from MH i2c: E2 17 00 [00:25:15]MH_I2C_Read... [00:25:15]Read from MH i2c: E2 17 00 E7 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 DA [00:25:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [00:25:15]wFMCommunicate OK [00:25:15]requested_item fd.num is exist - process it [00:25:15]SAM_PROTO_GetFieldsCounters [00:25:15]wFMCommunicate request_size=4 [00:25:15]MH_SAM_APDU [00:25:15]CAPDU: 80 13 00 00 [00:25:15]Write to MH i2c: E2 08 00 E8 22 80 13 00 00 00 00 00 00 86 [00:25:15]Write i2c OK [00:25:15]MH_I2C_Read... [00:25:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:25:15]Read from MH i2c: E2 [00:25:15]MH_I2C_Read... [00:25:15]Read from MH i2c: E2 62 00 [00:25:15]MH_I2C_Read... [00:25:15]Read from MH i2c: E2 62 00 E8 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 98 79 03 00 0E 04 04 00 16 02 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 EA [00:25:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 98 79 03 00 0E 04 04 00 16 02 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:25:15]wFMCommunicate OK [00:25:15]SAM_PROTO_GetFieldsCounters done [00:25:15]requested_item shift.num is exist - process it [00:25:15]requested_item shift.opened is exist - process it [00:25:15]req_shift_opened [00:25:15]FM_GetShiftState [00:25:15]SAM_PROTO_GetShiftState [00:25:15]wFMCommunicate request_size=4 [00:25:15]MH_SAM_APDU [00:25:15]CAPDU: 80 13 01 00 [00:25:15]Write to MH i2c: E2 08 00 E9 22 80 13 01 00 00 00 00 00 88 [00:25:15]Write i2c OK [00:25:15]MH_I2C_Read... [00:25:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:25:15]Read from MH i2c: E2 [00:25:15]MH_I2C_Read... [00:25:15]Read from MH i2c: E2 0E 00 [00:25:15]MH_I2C_Read... [00:25:15]Read from MH i2c: E2 0E 00 E9 22 00 09 00 01 F4 9B 15 67 00 00 00 00 90 00 9F [00:25:15]RAPDU: 09 00 01 F4 9B 15 67 00 00 00 00 90 00 [00:25:15]wFMCommunicate OK [00:25:15]SAM_PROTO_GetShiftState done [00:25:15]FM_GetShiftState done [00:25:15]req_shift_opened done [00:25:15]requested_item shift.open_date is exist - process it [00:25:15]req_shift_open_date [00:25:15]req_shift_open_date done [00:25:15]produce_requested_data done [00:25:15]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227736,"shift.num":534,"shift.opened":1,"shift.open_date":1729469428} [00:25:15]process_action_free close_receipt [00:25:15]json_value_free [00:25:15]json_value_free done [00:25:15]process_json_proto returns [00:25:15]Send response to host [00:25:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227736,"shift.num":534,"shift.opened":1,"shift.open_date":1729469428}}} [00:25:15]free response buf [00:25:15]execute_script done [00:25:15]execute_script returns [00:25:15]free content buf [00:25:15]Sock 9.Close socket [00:25:15]Sock 9.Thread stoped [00:25:19]OFD Sender: No OFD packet to send [00:25:24]OFD Sender: No OFD packet to send [00:25:29]OFD Sender: No OFD packet to send [00:25:34]OFD Sender: No OFD packet to send [00:25:39]OFD Sender: No OFD packet to send [00:25:44]OFD Sender: No OFD packet to send [00:25:49]OFD Sender: No OFD packet to send [00:25:54]OFD Sender: No OFD packet to send [00:25:59]OFD Sender: No OFD packet to send [00:26:04]OFD Sender: No OFD packet to send [00:26:09]OFD Sender: No OFD packet to send [00:26:14]OFD Sender: No OFD packet to send [00:26:19]OFD Sender: No OFD packet to send [00:26:24]OFD Sender: No OFD packet to send [00:26:29]OFD Sender: No OFD packet to send [00:26:34]OFD Sender: No OFD packet to send [00:26:39]OFD Sender: No OFD packet to send [00:26:44]OFD Sender: No OFD packet to send [00:26:49]OFD Sender: No OFD packet to send [00:26:54]OFD Sender: No OFD packet to send [00:26:59]OFD Sender: No OFD packet to send [00:27:04]OFD Sender: No OFD packet to send [00:27:09]OFD Sender: No OFD packet to send [00:27:14]OFD Sender: No OFD packet to send [00:27:19]OFD Sender: No OFD packet to send [00:27:24]OFD Sender: No OFD packet to send [00:27:26]accept exits with 7 [00:27:26]New connection [00:27:26]New thread 3066666340 created [00:27:26]Thread 3066809700 joined [00:27:26]Waiting for new connection... [00:27:26] Sock 7.Parse request [00:27:26]Sock 7.Check first char [00:27:26]Sock 7.First char is OK [00:27:26]request: POST /json_proto HTTP/1.0 [00:27:26]Method: POST [00:27:26]URL: /json_proto [00:27:26]Method is POST - this is cgi request [00:27:26]url: /json_proto [00:27:26]query_string will be loaded in cgi processing [00:27:26]execute_cgi json_proto POST (null) [00:27:26]execute_cgi path=json_proto method=POST [00:27:26]POST find Content-Length [00:27:26]Host: 172.17.44.195:8080 [00:27:26]Content-Length: 678 [00:27:26]Content-Type: application/json [00:27:26] [00:27:26]POST finish read [00:27:26]Found Content-Length = 678 [00:27:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963407", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:27:26]execute_script... [00:27: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)1963407", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:27:26]POST & json_proto [00:27:26]process_json_proto [00:27:26]json parsed OK: [00:27:26]protocol is kg_v1.0 [00:27:26]action value=close_receipt [00:27:26]process_action close_receipt [00:27:26]cmd_close_receipt [00:27:26]MH_GetDate [00:27:26]Write to MH i2c: F0 00 00 EA 22 FB [00:27:26]Write i2c OK [00:27:26]MH_I2C_Read... [00:27:26]Read from MH i2c: F0 [00:27:26]MH_I2C_Read... [00:27:26]Read from MH i2c: F0 09 00 [00:27:26]MH_I2C_Read... [00:27:26]Read from MH i2c: F0 09 00 EA 22 00 F0 9F 15 67 82 C9 CF 66 8F [00:27:26]GetLastDocTimeStamp 1729470313 [00:27:26]current date 1729470448 [00:27:26]FM_GetShiftState [00:27:26]SAM_PROTO_GetShiftState [00:27:26]wFMCommunicate request_size=4 [00:27:26]MH_SAM_APDU [00:27:26]CAPDU: 80 13 01 00 [00:27:26]Write to MH i2c: E2 08 00 EB 22 80 13 01 00 00 00 00 00 8A [00:27:26]Write i2c OK [00:27:26]MH_I2C_Read... [00:27:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:27:26]Read from MH i2c: E2 [00:27:26]MH_I2C_Read... [00:27:26]Read from MH i2c: E2 0E 00 [00:27:26]MH_I2C_Read... [00:27:26]Read from MH i2c: E2 0E 00 EB 22 00 09 00 01 F4 9B 15 67 00 00 00 00 90 00 A1 [00:27:26]RAPDU: 09 00 01 F4 9B 15 67 00 00 00 00 90 00 [00:27:26]wFMCommunicate OK [00:27:26]SAM_PROTO_GetShiftState done [00:27:26]FM_GetShiftState done [00:27:26]opened in 1729469428 [00:27:26]opened+sec_in_day 1729555828 [00:27:26]quantity*price = 50010 [00:27:26]sum+1 = 50012 [00:27:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 6 21.10.2024 00:27 Смена: 534 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227737 ФПД: 23590468450520 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T002728&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227737&fm=23590468450520&tin=02508201610067®Number=0000000000091685&sum=50000 [00:27:27]StoreToDocumentArchive [00:27:27]shift 534 fd 227737 [00:27:27]save to /storage/0534/doc_00227737 [00:27:27]save last doc name /storage/0534/doc_00227737 to /storage/kkm_last_doc_name [00:27:27]save OK [00:27:27]Clear old archive folders... [00:27:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:27:27]tlvbuf is 00C43650 [00:27:27]SAM_PROTO_ClearQueue [00:27:27]wFMCommunicate request_size=4 [00:27:27]MH_SAM_APDU [00:27:27]CAPDU: 80 09 00 00 [00:27:27]Write to MH i2c: E2 08 00 F8 22 80 09 00 00 00 00 00 00 8C [00:27:27]Write i2c OK [00:27:27]MH_I2C_Read... [00:27:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:27:27]Read from MH i2c: E2 [00:27:27]MH_I2C_Read... [00:27:27]Read from MH i2c: E2 03 00 [00:27:27]MH_I2C_Read... [00:27:27]Read from MH i2c: E2 03 00 F8 22 00 90 00 8E [00:27:27]RAPDU: 90 00 [00:27:27]wFMCommunicate OK [00:27:27]SAM_PROTO_ClearQueue done [00:27:27]KKMCreateOFDPacket [00:27:27]OFDProtocolAddRootSTLVToBuf [00:27:27]FM_MakeSignedData [00:27:27]FM_MakeSignedData [00:27:27]SAM_PROTO_SignData [00:27:27]wFMCommunicate request_size=4 [00:27:27]MH_SAM_APDU [00:27:27]CAPDU: 80 0D 01 02 [00:27:27]Write to MH i2c: E2 08 00 F9 22 80 0D 01 02 00 00 00 00 94 [00:27:27]Write i2c OK [00:27:27]MH_I2C_Read... [00:27:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:27:27]Read from MH i2c: E2 [00:27:27]MH_I2C_Read... [00:27:27]Read from MH i2c: E2 03 00 [00:27:27]MH_I2C_Read... [00:27:27]Read from MH i2c: E2 03 00 F9 22 00 90 00 8F [00:27:27]RAPDU: 90 00 [00:27:27]wFMCommunicate OK [00:27:27]wFMCommunicate request_size=255 [00:27:27]MH_SAM_APDU [00:27: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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 F0 9F 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 99 79 03 00 35 04 06 00 15 [00:27:27]Write to MH i2c: E2 02 01 FA 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 F0 9F 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 99 79 03 00 35 04 06 00 15 00 00 56 [00:27:27]Write i2c OK [00:27:27]MH_I2C_Read... [00:27:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:27:27]Read from MH i2c: E2 [00:27:27]MH_I2C_Read... [00:27:27]Read from MH i2c: E2 03 00 [00:27:27]MH_I2C_Read... [00:27:27]Read from MH i2c: E2 03 00 FA 22 00 90 00 90 [00:27:27]RAPDU: 90 00 [00:27:27]wFMCommunicate OK [00:27:27]wFMCommunicate request_size=10 [00:27:27]MH_SAM_APDU [00:27:27]CAPDU: 80 0D 02 02 05 74 95 7D F8 D8 [00:27:27]Write to MH i2c: E2 0D 00 FB 22 80 0D 02 02 05 00 74 95 7D F8 D8 00 00 F7 [00:27:27]Write i2c OK [00:27:27]MH_I2C_Read... [00:27:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:27:27]Read from MH i2c: E2 [00:27:27]MH_I2C_Read... [00:27:27]Read from MH i2c: E2 03 00 [00:27:27]MH_I2C_Read... [00:27:27]Read from MH i2c: E2 03 00 FB 22 00 90 00 91 [00:27:27]RAPDU: 90 00 [00:27:27]wFMCommunicate OK [00:27:27]wFMCommunicate request_size=4 [00:27:27]MH_SAM_APDU [00:27:27]CAPDU: 80 0D 03 02 [00:27:27]Write to MH i2c: E2 08 00 FC 22 80 0D 03 02 00 00 00 00 99 [00:27:27]Write i2c OK [00:27:27]MH_I2C_Read... [00:27:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:27:27]Read from MH i2c: E2 [00:27:27]MH_I2C_Read... [00:27:27]Read from MH i2c: E2 0B 00 [00:27:27]MH_I2C_Read... [00:27:27]Read from MH i2c: E2 0B 00 FC 22 00 19 68 49 C4 C7 88 15 78 90 00 04 [00:27:27]RAPDU: 19 68 49 C4 C7 88 15 78 90 00 [00:27:27]wFMCommunicate OK [00:27:27]SAM_PROTO_SignData done [00:27:27]FM_MakeSignedData done [00:27:27]CreateOFDProtocolMessage [00:27:27]wFMCommunicate request_size=4 [00:27:27]MH_SAM_APDU [00:27:27]CAPDU: 80 11 00 00 [00:27:27]Write to MH i2c: E2 08 00 FD 22 80 11 00 00 00 00 00 00 99 [00:27:27]Write i2c OK [00:27:27]MH_I2C_Read... [00:27:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:27:27]Read from MH i2c: E2 [00:27:27]MH_I2C_Read... [00:27:27]Read from MH i2c: E2 17 00 [00:27:27]MH_I2C_Read... [00:27:27]Read from MH i2c: E2 17 00 FD 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F0 [00:27:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [00:27:27]wFMCommunicate OK [00:27:27]CreateOFDProtocolMessage done [00:27:27]OFDSenderStorePacket 227737 [00:27:27]StoreOFDPacket docnum=227737 [00:27:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 50 F6 07 01 A4 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 F0 9F 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 99 79 03 00 35 04 06 00 15 74 95 7D F8 D8 19 68 49 C4 C7 88 15 78 [00:27:27]CheckFolder [00:27:27]dirname=/storage/ofd_packets [00:27:27]CheckFolder done [00:27:27]ProducePacketName [00:27:27]name=ofd_packets/00227737 [00:27:27]NVStorageSaveData ofd_packets/00227737 [00:27:27]File name is /storage/ofd_packets/00227737 [00:27:27]Write 301 bytes [00:27:27]NVStorageSaveData done [00:27:27]OFDSenderStorePacket done [00:27:27]KKMCreateOFDPacket done [00:27:27]NVStorageSaveData kkm_last_timestamp [00:27:27]File name is /storage/kkm_last_timestamp [00:27:27]Write 4 bytes [00:27:27]NVStorageSaveData done [00:27:27]ExternCall_PrintAddStr [00:27:27]wPrintStart [00:27:27]Write to MH i2c: 01 00 00 FE 22 20 [00:27:27]Write i2c OK [00:27:27]MH_I2C_Read... [00:27:27]Read from MH i2c: 01 [00:27:27]MH_I2C_Read... [00:27:27]Read from MH i2c: 01 07 00 [00:27:27]MH_I2C_Read... [00:27:27]Read from MH i2c: 01 07 00 FE 22 00 00 00 00 00 FF 0F 35 [00:27:27]RasterBufferAndPrint [00:27:27]line Счет N : (1)1963407 [00:27:27]line ИНН: 02508201610067 [00:27:27]line Контрольно-Кассовый Чек [00:27:27]line ПРОДАЖА [00:27:27]line ТРК (МРК, ГНК) : 34 [00:27:27]line Товар: 2710124500 [00:27:27]line Аи-95-К-5 [00:27:27]line 6.740 * 74.20 [00:27:27]line = 500.11 [00:27:27]line НДС 12% НСП 1% [00:27:27]line > о реализуемом товаре [00:27:27]line ОКРУГЛЕНИЕ: -0.11 [00:27:27]line ИТОГО: 500.00 [00:27:27]line Внесено: 500.00 [00:27:27]line СДАЧА: 0.00 [00:27:27]line НСП 1% : 4.43 [00:27:27]line НДС 12% : 53.11 [00:27:27]line Наличными: 500.00 [00:27:27]line Безнал.: 0.00 [00:27:27]line Место: АЗС № 133 "Партнер Нефть" [00:27:27]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [00:27:27]line СНО: Общий режим [00:27:27]line Чек 6 21.10.2024 00:27 [00:27:27]line Смена: 534 ФФД: 1.0 [00:27:27]line ЗНМ: 0300000091 [00:27:27]line РНМ: 0000000000091685 [00:27:27]line Версия ККМ: 001 [00:27:27]line ФМ: 0000000000871839 [00:27:27]line ФД: 227737 [00:27:27]line ФПД: 23590468450520 [00:27:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T002728&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227737&fm=23590468450520&tin=02508201610067®Number=0000000000091685&sum=50000 [00:27:28]written 0, free lines is 4095 [00:27:28]OFD Sender: Processing packet 227737 [packets to send 38, broken 37] [00:27:28]ProducePacketName [00:27:28]name=ofd_packets/00227737 [00:27:28]OFD Sender: To server: pG, [00:27:28]CommunicateWithHost lk.salyk.kg:30040 [00:27:28]ConnectInit lk.salyk.kg [00:27:28]Connected sock=10 [00:27: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 33 39 0F 01 00 00 50 F6 07 01 A4 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 F0 9F 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 99 79 03 00 35 04 06 00 15 74 95 7D F8 D8 19 68 49 C4 C7 88 15 78 [00:27: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 33 39 4F 00 00 00 E0 2C 47 00 EF 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 99 79 03 00 F4 03 04 00 ED 4A 15 67 B6 04 01 00 00 54 86 C6 BD 7B F0 10 90 [00:27:28]CommunicateWithHost err = 0 [00:27:28]CheckOFDResponse [00:27:28]1017 (14) - 77093643461234 [00:27:28]1041 (16) - 0000000000871839 [00:27:28]1040 (4) - 227737 [00:27:28]1012 (4) - 20.10.2024 18:24 [00:27:28]1206 (1) - 0 [00:27:28]OFD Sender: Remove packet 227737 [00:27:28]ProducePacketName [00:27:28]name=ofd_packets/00227737 [00:27:28]NVStorageDeleteData [00:27:28]Write to MH i2c: 01 00 00 28 23 4B [00:27:28]Write i2c OK [00:27:28]MH_I2C_Read... [00:27:28]Read from MH i2c: 01 [00:27:28]MH_I2C_Read... [00:27:28]Read from MH i2c: 01 07 00 [00:27:28]MH_I2C_Read... [00:27:28]Read from MH i2c: 01 07 00 28 23 00 00 00 00 00 97 0C F5 [00:27:28]RasterBufferAndPrint [00:27:28]line [00:27:28]line [00:27:28]line [00:27:28]line [00:27:28]line [00:27:28]written 0, free lines is 3227 [00:27:28]MH_Cut [00:27:28]Write to MH i2c: D1 01 00 2F 23 01 24 [00:27:28]Write i2c OK [00:27:28]MH_I2C_Read... [00:27:28]Read from MH i2c: D1 [00:27:28]MH_I2C_Read... [00:27:28]Read from MH i2c: D1 01 00 [00:27:28]MH_I2C_Read... [00:27:28]Read from MH i2c: D1 01 00 2F 23 00 23 [00:27:28]Write to MH i2c: 01 00 00 30 23 53 [00:27:28]Write i2c OK [00:27:28]MH_I2C_Read... [00:27:29]OFD Sender: No OFD packet to send [00:27:29]*** Cut start [00:27:29]*** Partial cut [00:27:29]*** CUTSNS_PIN = 1 [00:27:29]*** CUTSNS_PIN = 0 [00:27:29]*** Brake cut motor [00:27:30]Read from MH i2c: 01 [00:27:30]MH_I2C_Read... [00:27:30]*** Stop cut motor [00:27:30]*** Cut end [00:27:30]Read from MH i2c: 01 07 00 [00:27:30]MH_I2C_Read... [00:27:30]Read from MH i2c: 01 07 00 30 23 00 00 00 00 00 FF 0F 68 [00:27:30]process_action close_receipt done [00:27:30]requested_data is exist [00:27:30]produce_requested_data [00:27:30]requested_item fm.sn is exist - process it [00:27:30]wFMCommunicate request_size=4 [00:27:30]MH_SAM_APDU [00:27:30]CAPDU: 80 11 00 00 [00:27:30]Write to MH i2c: E2 08 00 31 23 80 11 00 00 00 00 00 00 CE [00:27:30]Write i2c OK [00:27:30]MH_I2C_Read... [00:27:30]Read from MH i2c: E2 [00:27:30]MH_I2C_Read... [00:27:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:27:30]Read from MH i2c: E2 17 00 [00:27:30]MH_I2C_Read... [00:27:30]Read from MH i2c: E2 17 00 31 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 25 [00:27:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [00:27:30]wFMCommunicate OK [00:27:30]requested_item fd.num is exist - process it [00:27:30]SAM_PROTO_GetFieldsCounters [00:27:30]wFMCommunicate request_size=4 [00:27:30]MH_SAM_APDU [00:27:30]CAPDU: 80 13 00 00 [00:27:30]Write to MH i2c: E2 08 00 32 23 80 13 00 00 00 00 00 00 D1 [00:27:30]Write i2c OK [00:27:30]MH_I2C_Read... [00:27:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:27:30]Read from MH i2c: E2 [00:27:30]MH_I2C_Read... [00:27:30]Read from MH i2c: E2 62 00 [00:27:30]MH_I2C_Read... [00:27:30]Read from MH i2c: E2 62 00 32 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 99 79 03 00 0E 04 04 00 16 02 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 39 [00:27: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 99 79 03 00 0E 04 04 00 16 02 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:27:30]wFMCommunicate OK [00:27:30]SAM_PROTO_GetFieldsCounters done [00:27:30]requested_item shift.num is exist - process it [00:27:30]requested_item shift.opened is exist - process it [00:27:30]req_shift_opened [00:27:30]FM_GetShiftState [00:27:30]SAM_PROTO_GetShiftState [00:27:30]wFMCommunicate request_size=4 [00:27:30]MH_SAM_APDU [00:27:30]CAPDU: 80 13 01 00 [00:27:30]Write to MH i2c: E2 08 00 33 23 80 13 01 00 00 00 00 00 D3 [00:27:30]Write i2c OK [00:27:30]MH_I2C_Read... [00:27:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:27:30]Read from MH i2c: E2 [00:27:30]MH_I2C_Read... [00:27:30]Read from MH i2c: E2 0E 00 [00:27:30]MH_I2C_Read... [00:27:30]Read from MH i2c: E2 0E 00 33 23 00 09 00 01 F4 9B 15 67 00 00 00 00 90 00 EA [00:27:30]RAPDU: 09 00 01 F4 9B 15 67 00 00 00 00 90 00 [00:27:30]wFMCommunicate OK [00:27:30]SAM_PROTO_GetShiftState done [00:27:30]FM_GetShiftState done [00:27:30]req_shift_opened done [00:27:30]requested_item shift.open_date is exist - process it [00:27:30]req_shift_open_date [00:27:30]req_shift_open_date done [00:27:30]produce_requested_data done [00:27:30]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227737,"shift.num":534,"shift.opened":1,"shift.open_date":1729469428} [00:27:30]process_action_free close_receipt [00:27:30]json_value_free [00:27:30]json_value_free done [00:27:30]process_json_proto returns [00:27:30]Send response to host [00:27:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227737,"shift.num":534,"shift.opened":1,"shift.open_date":1729469428}}} [00:27:30]free response buf [00:27:30]execute_script done [00:27:30]execute_script returns [00:27:30]free content buf [00:27:30]Sock 7.Close socket [00:27:30]Sock 7.Thread stoped [00:27:34]OFD Sender: No OFD packet to send [00:27:39]OFD Sender: No OFD packet to send [00:27:44]OFD Sender: No OFD packet to send [00:27:49]OFD Sender: No OFD packet to send [00:27:54]OFD Sender: No OFD packet to send [00:27:59]OFD Sender: No OFD packet to send [00:28:04]OFD Sender: No OFD packet to send [00:28:08]accept exits with 9 [00:28:08]New connection [00:28:08]New thread 3066809700 created [00:28:08]Thread 3066666340 joined [00:28:08]Waiting for new connection... [00:28:08] Sock 9.Parse request [00:28:08]Sock 9.Check first char [00:28:08]Sock 9.First char is OK [00:28:08]request: POST /json_proto HTTP/1.0 [00:28:08]Method: POST [00:28:08]URL: /json_proto [00:28:08]Method is POST - this is cgi request [00:28:08]url: /json_proto [00:28:08]query_string will be loaded in cgi processing [00:28:08]execute_cgi json_proto POST (null) [00:28:08]execute_cgi path=json_proto method=POST [00:28:08]POST find Content-Length [00:28:08]Host: 172.17.44.195:8080 [00:28:08]Content-Length: 678 [00:28:08]Content-Type: application/json [00:28:08] [00:28:08]POST finish read [00:28:08]Found Content-Length = 678 [00:28:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963408", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:28:08]execute_script... [00:28: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)1963408", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:28:08]POST & json_proto [00:28:08]process_json_proto [00:28:08]json parsed OK: [00:28:08]protocol is kg_v1.0 [00:28:08]action value=close_receipt [00:28:08]process_action close_receipt [00:28:08]cmd_close_receipt [00:28:08]MH_GetDate [00:28:08]Write to MH i2c: F0 00 00 34 23 46 [00:28:08]Write i2c OK [00:28:08]MH_I2C_Read... [00:28:08]Read from MH i2c: F0 [00:28:08]MH_I2C_Read... [00:28:08]Read from MH i2c: F0 09 00 [00:28:08]MH_I2C_Read... [00:28:08]Read from MH i2c: F0 09 00 34 23 00 1A A0 15 67 82 C9 CF 66 05 [00:28:08]GetLastDocTimeStamp 1729470448 [00:28:08]current date 1729470490 [00:28:08]FM_GetShiftState [00:28:08]SAM_PROTO_GetShiftState [00:28:08]wFMCommunicate request_size=4 [00:28:08]MH_SAM_APDU [00:28:08]CAPDU: 80 13 01 00 [00:28:08]Write to MH i2c: E2 08 00 35 23 80 13 01 00 00 00 00 00 D5 [00:28:08]Write i2c OK [00:28:08]MH_I2C_Read... [00:28:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:28:08]Read from MH i2c: E2 [00:28:08]MH_I2C_Read... [00:28:08]Read from MH i2c: E2 0E 00 [00:28:08]MH_I2C_Read... [00:28:08]Read from MH i2c: E2 0E 00 35 23 00 09 00 01 F4 9B 15 67 00 00 00 00 90 00 EC [00:28:08]RAPDU: 09 00 01 F4 9B 15 67 00 00 00 00 90 00 [00:28:08]wFMCommunicate OK [00:28:08]SAM_PROTO_GetShiftState done [00:28:08]FM_GetShiftState done [00:28:08]opened in 1729469428 [00:28:08]opened+sec_in_day 1729555828 [00:28:08]quantity*price = 50041 [00:28:08]sum+1 = 50042 [00:28:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 7 21.10.2024 00:28 Смена: 534 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227738 ФПД: 240265656507374 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T002810&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227738&fm=240265656507374&tin=02508201610067®Number=0000000000091685&sum=50000 [00:28:09]StoreToDocumentArchive [00:28:09]shift 534 fd 227738 [00:28:09]save to /storage/0534/doc_00227738 [00:28:09]save last doc name /storage/0534/doc_00227738 to /storage/kkm_last_doc_name [00:28:09]save OK [00:28:09]Clear old archive folders... [00:28:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:28:09]tlvbuf is 00C9DE30 [00:28:09]SAM_PROTO_ClearQueue [00:28:09]wFMCommunicate request_size=4 [00:28:09]MH_SAM_APDU [00:28:09]CAPDU: 80 09 00 00 [00:28:09]Write to MH i2c: E2 08 00 42 23 80 09 00 00 00 00 00 00 D7 [00:28:09]Write i2c OK [00:28:09]MH_I2C_Read... [00:28:09]Read from MH i2c: E2 [00:28:09]MH_I2C_Read... [00:28:09]Read from MH i2c: E2 03 00 [00:28:09]MH_I2C_Read... [00:28:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:28:09]Read from MH i2c: E2 03 00 42 23 00 90 00 D9 [00:28:09]RAPDU: 90 00 [00:28:09]wFMCommunicate OK [00:28:09]SAM_PROTO_ClearQueue done [00:28:09]KKMCreateOFDPacket [00:28:09]OFDProtocolAddRootSTLVToBuf [00:28:09]FM_MakeSignedData [00:28:09]FM_MakeSignedData [00:28:09]SAM_PROTO_SignData [00:28:09]wFMCommunicate request_size=4 [00:28:09]MH_SAM_APDU [00:28:09]CAPDU: 80 0D 01 02 [00:28:09]Write to MH i2c: E2 08 00 43 23 80 0D 01 02 00 00 00 00 DF [00:28:09]Write i2c OK [00:28:09]MH_I2C_Read... [00:28:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:28:09]Read from MH i2c: E2 [00:28:09]MH_I2C_Read... [00:28:09]Read from MH i2c: E2 03 00 [00:28:09]MH_I2C_Read... [00:28:09]Read from MH i2c: E2 03 00 43 23 00 90 00 DA [00:28:09]RAPDU: 90 00 [00:28:09]wFMCommunicate OK [00:28:09]wFMCommunicate request_size=255 [00:28:09]MH_SAM_APDU [00:28:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 1A A0 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9A 79 03 00 35 04 06 00 DA [00:28:09]Write to MH i2c: E2 02 01 44 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 1A A0 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9A 79 03 00 35 04 06 00 DA 00 00 BB [00:28:09]Write i2c OK [00:28:09]MH_I2C_Read... [00:28:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:28:10]Read from MH i2c: E2 [00:28:10]MH_I2C_Read... [00:28:10]Read from MH i2c: E2 03 00 [00:28:10]MH_I2C_Read... [00:28:10]Read from MH i2c: E2 03 00 44 23 00 90 00 DB [00:28:10]RAPDU: 90 00 [00:28:10]wFMCommunicate OK [00:28:10]wFMCommunicate request_size=10 [00:28:10]MH_SAM_APDU [00:28:10]CAPDU: 80 0D 02 02 05 85 35 1B 9B EE [00:28:10]Write to MH i2c: E2 0D 00 45 23 80 0D 02 02 05 00 85 35 1B 9B EE 00 00 4A [00:28:10]Write i2c OK [00:28:10]MH_I2C_Read... [00:28:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:28:10]Read from MH i2c: E2 [00:28:10]MH_I2C_Read... [00:28:10]Read from MH i2c: E2 03 00 [00:28:10]MH_I2C_Read... [00:28:10]Read from MH i2c: E2 03 00 45 23 00 90 00 DC [00:28:10]RAPDU: 90 00 [00:28:10]wFMCommunicate OK [00:28:10]wFMCommunicate request_size=4 [00:28:10]MH_SAM_APDU [00:28:10]CAPDU: 80 0D 03 02 [00:28:10]Write to MH i2c: E2 08 00 46 23 80 0D 03 02 00 00 00 00 E4 [00:28:10]Write i2c OK [00:28:10]MH_I2C_Read... [00:28:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:28:10]Read from MH i2c: E2 [00:28:10]MH_I2C_Read... [00:28:10]Read from MH i2c: E2 0B 00 [00:28:10]MH_I2C_Read... [00:28:10]Read from MH i2c: E2 0B 00 46 23 00 C2 6C 68 BF 8F 0E 00 03 90 00 DA [00:28:10]RAPDU: C2 6C 68 BF 8F 0E 00 03 90 00 [00:28:10]wFMCommunicate OK [00:28:10]SAM_PROTO_SignData done [00:28:10]FM_MakeSignedData done [00:28:10]CreateOFDProtocolMessage [00:28:10]wFMCommunicate request_size=4 [00:28:10]MH_SAM_APDU [00:28:10]CAPDU: 80 11 00 00 [00:28:10]Write to MH i2c: E2 08 00 47 23 80 11 00 00 00 00 00 00 E4 [00:28:10]Write i2c OK [00:28:10]MH_I2C_Read... [00:28:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:28:10]Read from MH i2c: E2 [00:28:10]MH_I2C_Read... [00:28:10]Read from MH i2c: E2 17 00 [00:28:10]MH_I2C_Read... [00:28:10]Read from MH i2c: E2 17 00 47 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 3B [00:28:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [00:28:10]wFMCommunicate OK [00:28:10]CreateOFDProtocolMessage done [00:28:10]OFDSenderStorePacket 227738 [00:28:10]StoreOFDPacket docnum=227738 [00:28:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 5C 7D 07 01 E4 C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 1A A0 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9A 79 03 00 35 04 06 00 DA 85 35 1B 9B EE C2 6C 68 BF 8F 0E 00 03 [00:28:10]CheckFolder [00:28:10]dirname=/storage/ofd_packets [00:28:10]CheckFolder done [00:28:10]ProducePacketName [00:28:10]name=ofd_packets/00227738 [00:28:10]NVStorageSaveData ofd_packets/00227738 [00:28:10]File name is /storage/ofd_packets/00227738 [00:28:10]Write 301 bytes [00:28:10]NVStorageSaveData done [00:28:10]OFDSenderStorePacket done [00:28:10]KKMCreateOFDPacket done [00:28:10]NVStorageSaveData kkm_last_timestamp [00:28:10]File name is /storage/kkm_last_timestamp [00:28:10]Write 4 bytes [00:28:10]NVStorageSaveData done [00:28:10]ExternCall_PrintAddStr [00:28:10]wPrintStart [00:28:10]Write to MH i2c: 01 00 00 48 23 6B [00:28:10]Write i2c OK [00:28:10]MH_I2C_Read... [00:28:10]Read from MH i2c: 01 [00:28:10]MH_I2C_Read... [00:28:10]Read from MH i2c: 01 07 00 [00:28:10]MH_I2C_Read... [00:28:10]Read from MH i2c: 01 07 00 48 23 00 00 00 00 00 FF 0F 80 [00:28:10]RasterBufferAndPrint [00:28:10]line Счет N : (1)1963408 [00:28:10]line ИНН: 02508201610067 [00:28:10]line Контрольно-Кассовый Чек [00:28:10]line ПРОДАЖА [00:28:10]line ТРК (МРК, ГНК) : 43 [00:28:10]line Товар: 2710124130 [00:28:10]line Аи-92-К-5 [00:28:10]line 7.480 * 66.90 [00:28:10]line = 500.41 [00:28:10]line НДС 12% НСП 1% [00:28:10]line > о реализуемом товаре [00:28:10]line ОКРУГЛЕНИЕ: -0.41 [00:28:10]line ИТОГО: 500.00 [00:28:10]line Внесено: 500.00 [00:28:10]line СДАЧА: 0.00 [00:28:10]line НСП 1% : 4.43 [00:28:10]line НДС 12% : 53.14 [00:28:10]line Наличными: 500.00 [00:28:10]line Безнал.: 0.00 [00:28:10]line Место: АЗС № 133 "Партнер Нефть" [00:28:10]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [00:28:10]line СНО: Общий режим [00:28:10]line Чек 7 21.10.2024 00:28 [00:28:10]line Смена: 534 ФФД: 1.0 [00:28:10]line ЗНМ: 0300000091 [00:28:10]line РНМ: 0000000000091685 [00:28:10]line Версия ККМ: 001 [00:28:10]line ФМ: 0000000000871839 [00:28:10]line ФД: 227738 [00:28:10]line ФПД: 240265656507374 [00:28:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T002810&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227738&fm=240265656507374&tin=02508201610067®Number=0000000000091685&sum=50000 [00:28:10]OFD Sender: Processing packet 227738 [packets to send 38, broken 37] [00:28:10]ProducePacketName [00:28:10]name=ofd_packets/00227738 [00:28:10]OFD Sender: To server: pG, [00:28:10]CommunicateWithHost lk.salyk.kg:30040 [00:28:10]ConnectInit lk.salyk.kg [00:28:10]written 0, free lines is 4095 [00:28:10]Connected sock=10 [00:28: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 33 39 0F 01 00 00 5C 7D 07 01 E4 C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 1A A0 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9A 79 03 00 35 04 06 00 DA 85 35 1B 9B EE C2 6C 68 BF 8F 0E 00 03 [00:28: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 33 39 4F 00 00 00 F3 41 47 00 49 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 33 39 10 04 04 00 9A 79 03 00 F4 03 04 00 17 4B 15 67 B6 04 01 00 00 67 16 C7 D2 A8 F7 73 26 [00:28:10]CommunicateWithHost err = 0 [00:28:10]CheckOFDResponse [00:28:10]1017 (14) - 77093643461234 [00:28:10]1041 (16) - 0000000000871839 [00:28:10]1040 (4) - 227738 [00:28:10]1012 (4) - 20.10.2024 18:25 [00:28:10]1206 (1) - 0 [00:28:10]OFD Sender: Remove packet 227738 [00:28:10]ProducePacketName [00:28:10]name=ofd_packets/00227738 [00:28:10]NVStorageDeleteData [00:28:11]Write to MH i2c: 01 00 00 72 23 95 [00:28:11]Write i2c OK [00:28:11]MH_I2C_Read... [00:28:11]Read from MH i2c: 01 [00:28:11]MH_I2C_Read... [00:28:11]Read from MH i2c: 01 07 00 [00:28:11]MH_I2C_Read... [00:28:11]Read from MH i2c: 01 07 00 72 23 00 00 00 00 00 A1 0C 49 [00:28:11]RasterBufferAndPrint [00:28:11]line [00:28:11]line [00:28:11]line [00:28:11]line [00:28:11]line [00:28:11]written 0, free lines is 3237 [00:28:11]MH_Cut [00:28:11]Write to MH i2c: D1 01 00 79 23 01 6E [00:28:11]Write i2c OK [00:28:11]MH_I2C_Read... [00:28:11]Read from MH i2c: D1 [00:28:11]MH_I2C_Read... [00:28:11]Read from MH i2c: D1 01 00 [00:28:11]MH_I2C_Read... [00:28:11]Read from MH i2c: D1 01 00 79 23 00 6D [00:28:11]Write to MH i2c: 01 00 00 7A 23 9D [00:28:11]Write i2c OK [00:28:11]MH_I2C_Read... [00:28:11]OFD Sender: No OFD packet to send [00:28:12]*** Cut start [00:28:12]*** Partial cut [00:28:12]*** CUTSNS_PIN = 1 [00:28:12]*** CUTSNS_PIN = 0 [00:28:12]*** Brake cut motor [00:28:12]Read from MH i2c: 01 [00:28:12]MH_I2C_Read... [00:28:12]*** Stop cut motor [00:28:12]*** Cut end [00:28:12]Read from MH i2c: 01 07 00 [00:28:12]MH_I2C_Read... [00:28:12]Read from MH i2c: 01 07 00 7A 23 00 00 00 00 00 FF 0F B2 [00:28:12]process_action close_receipt done [00:28:12]requested_data is exist [00:28:12]produce_requested_data [00:28:12]requested_item fm.sn is exist - process it [00:28:12]wFMCommunicate request_size=4 [00:28:12]MH_SAM_APDU [00:28:12]CAPDU: 80 11 00 00 [00:28:12]Write to MH i2c: E2 08 00 7B 23 80 11 00 00 00 00 00 00 18 [00:28:12]Write i2c OK [00:28:12]MH_I2C_Read... [00:28:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:28:12]Read from MH i2c: E2 [00:28:12]MH_I2C_Read... [00:28:12]Read from MH i2c: E2 17 00 [00:28:12]MH_I2C_Read... [00:28:12]Read from MH i2c: E2 17 00 7B 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 6F [00:28:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [00:28:12]wFMCommunicate OK [00:28:12]requested_item fd.num is exist - process it [00:28:12]SAM_PROTO_GetFieldsCounters [00:28:12]wFMCommunicate request_size=4 [00:28:12]MH_SAM_APDU [00:28:12]CAPDU: 80 13 00 00 [00:28:12]Write to MH i2c: E2 08 00 7C 23 80 13 00 00 00 00 00 00 1B [00:28:12]Write i2c OK [00:28:12]MH_I2C_Read... [00:28:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:28:12]Read from MH i2c: E2 [00:28:12]MH_I2C_Read... [00:28:12]Read from MH i2c: E2 62 00 [00:28:12]MH_I2C_Read... [00:28:12]Read from MH i2c: E2 62 00 7C 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 9A 79 03 00 0E 04 04 00 16 02 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [00:28: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 9A 79 03 00 0E 04 04 00 16 02 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:28:12]wFMCommunicate OK [00:28:12]SAM_PROTO_GetFieldsCounters done [00:28:12]requested_item shift.num is exist - process it [00:28:12]requested_item shift.opened is exist - process it [00:28:12]req_shift_opened [00:28:12]FM_GetShiftState [00:28:12]SAM_PROTO_GetShiftState [00:28:12]wFMCommunicate request_size=4 [00:28:12]MH_SAM_APDU [00:28:12]CAPDU: 80 13 01 00 [00:28:12]Write to MH i2c: E2 08 00 7D 23 80 13 01 00 00 00 00 00 1D [00:28:12]Write i2c OK [00:28:12]MH_I2C_Read... [00:28:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:28:12]Read from MH i2c: E2 [00:28:12]MH_I2C_Read... [00:28:12]Read from MH i2c: E2 0E 00 [00:28:12]MH_I2C_Read... [00:28:12]Read from MH i2c: E2 0E 00 7D 23 00 09 00 01 F4 9B 15 67 00 00 00 00 90 00 34 [00:28:12]RAPDU: 09 00 01 F4 9B 15 67 00 00 00 00 90 00 [00:28:12]wFMCommunicate OK [00:28:12]SAM_PROTO_GetShiftState done [00:28:12]FM_GetShiftState done [00:28:12]req_shift_opened done [00:28:12]requested_item shift.open_date is exist - process it [00:28:12]req_shift_open_date [00:28:12]req_shift_open_date done [00:28:12]produce_requested_data done [00:28:12]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227738,"shift.num":534,"shift.opened":1,"shift.open_date":1729469428} [00:28:12]process_action_free close_receipt [00:28:12]json_value_free [00:28:12]json_value_free done [00:28:12]process_json_proto returns [00:28:12]Send response to host [00:28:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227738,"shift.num":534,"shift.opened":1,"shift.open_date":1729469428}}} [00:28:12]free response buf [00:28:12]execute_script done [00:28:12]execute_script returns [00:28:12]free content buf [00:28:12]Sock 9.Close socket [00:28:12]Sock 9.Thread stoped [00:28:16]OFD Sender: No OFD packet to send [00:28:21]OFD Sender: No OFD packet to send [00:28:26]OFD Sender: No OFD packet to send [00:28:31]OFD Sender: No OFD packet to send [00:28:36]OFD Sender: No OFD packet to send [00:28:41]OFD Sender: No OFD packet to send [00:28:46]OFD Sender: No OFD packet to send [00:28:51]OFD Sender: No OFD packet to send [00:28:56]OFD Sender: No OFD packet to send [00:29:01]OFD Sender: No OFD packet to send [00:29:06]OFD Sender: No OFD packet to send [00:29:11]OFD Sender: No OFD packet to send [00:29:16]OFD Sender: No OFD packet to send [00:29:21]OFD Sender: No OFD packet to send [00:29:26]OFD Sender: No OFD packet to send [00:29:31]OFD Sender: No OFD packet to send [00:29:36]OFD Sender: No OFD packet to send [00:29:41]OFD Sender: No OFD packet to send [00:29:46]OFD Sender: No OFD packet to send [00:29:51]OFD Sender: No OFD packet to send [00:29:56]OFD Sender: No OFD packet to send [00:30:01]OFD Sender: No OFD packet to send [00:30:06]OFD Sender: No OFD packet to send [00:30:11]OFD Sender: No OFD packet to send [00:30:16]OFD Sender: No OFD packet to send [00:30:21]OFD Sender: No OFD packet to send [00:30:26]OFD Sender: No OFD packet to send [00:30:31]OFD Sender: No OFD packet to send [00:30:36]OFD Sender: No OFD packet to send [00:30:41]OFD Sender: No OFD packet to send [00:30:46]OFD Sender: No OFD packet to send [00:30:51]OFD Sender: No OFD packet to send [00:30:56]OFD Sender: No OFD packet to send [00:31:01]OFD Sender: No OFD packet to send [00:31:06]OFD Sender: No OFD packet to send [00:31:11]OFD Sender: No OFD packet to send [00:31:16]OFD Sender: No OFD packet to send [00:31:21]OFD Sender: No OFD packet to send [00:31:26]OFD Sender: No OFD packet to send [00:31:31]OFD Sender: No OFD packet to send [00:31:36]OFD Sender: No OFD packet to send [00:31:41]OFD Sender: No OFD packet to send [00:31:46]OFD Sender: No OFD packet to send [00:31:51]OFD Sender: No OFD packet to send [00:31:56]OFD Sender: No OFD packet to send [00:32:01]OFD Sender: No OFD packet to send [00:32:06]OFD Sender: No OFD packet to send [00:32:11]OFD Sender: No OFD packet to send [00:32:16]OFD Sender: No OFD packet to send [00:32:21]OFD Sender: No OFD packet to send [00:32:26]OFD Sender: No OFD packet to send [00:32:31]OFD Sender: No OFD packet to send [00:32:36]OFD Sender: No OFD packet to send [00:32:41]OFD Sender: No OFD packet to send [00:32:46]OFD Sender: No OFD packet to send [00:32:51]OFD Sender: No OFD packet to send [00:32:56]OFD Sender: No OFD packet to send [00:33:01]OFD Sender: No OFD packet to send [00:33:06]OFD Sender: No OFD packet to send [00:33:11]OFD Sender: No OFD packet to send [00:33:16]OFD Sender: No OFD packet to send [00:33:21]OFD Sender: No OFD packet to send [00:33:26]OFD Sender: No OFD packet to send [00:33:31]OFD Sender: No OFD packet to send [00:33:36]OFD Sender: No OFD packet to send [00:33:41]OFD Sender: No OFD packet to send [00:33:46]OFD Sender: No OFD packet to send [00:33:51]OFD Sender: No OFD packet to send [00:33:56]OFD Sender: No OFD packet to send [00:34:01]OFD Sender: No OFD packet to send [00:34:06]OFD Sender: No OFD packet to send [00:34:11]accept exits with 7 [00:34:11]New connection [00:34:11]New thread 3066666340 created [00:34:11]Thread 3066809700 joined [00:34:11]Waiting for new connection... [00:34:11] Sock 7.Parse request [00:34:11]Sock 7.Check first char [00:34:11]Sock 7.First char is OK [00:34:11]request: POST /json_proto HTTP/1.0 [00:34:11]Method: POST [00:34:11]URL: /json_proto [00:34:11]Method is POST - this is cgi request [00:34:11]url: /json_proto [00:34:11]query_string will be loaded in cgi processing [00:34:11]execute_cgi json_proto POST (null) [00:34:11]execute_cgi path=json_proto method=POST [00:34:11]POST find Content-Length [00:34:11]Host: 172.17.44.195:8080 [00:34:11]Content-Length: 678 [00:34:11]Content-Type: application/json [00:34:11] [00:34:11]POST finish read [00:34:11]Found Content-Length = 678 [00:34:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963409", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:34:11]execute_script... [00:34: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)1963409", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:34:11]POST & json_proto [00:34:11]process_json_proto [00:34:11]json parsed OK: [00:34:11]protocol is kg_v1.0 [00:34:11]action value=close_receipt [00:34:11]process_action close_receipt [00:34:11]cmd_close_receipt [00:34:11]MH_GetDate [00:34:11]Write to MH i2c: F0 00 00 7E 23 90 [00:34:11]Write i2c OK [00:34:11]MH_I2C_Read... [00:34:11]Read from MH i2c: F0 [00:34:11]MH_I2C_Read... [00:34:11]Read from MH i2c: F0 09 00 [00:34:11]MH_I2C_Read... [00:34:11]Read from MH i2c: F0 09 00 7E 23 00 85 A1 15 67 82 C9 CF 66 BB [00:34:11]GetLastDocTimeStamp 1729470490 [00:34:11]current date 1729470853 [00:34:11]FM_GetShiftState [00:34:11]SAM_PROTO_GetShiftState [00:34:11]wFMCommunicate request_size=4 [00:34:11]MH_SAM_APDU [00:34:11]CAPDU: 80 13 01 00 [00:34:11]Write to MH i2c: E2 08 00 7F 23 80 13 01 00 00 00 00 00 1F [00:34:11]Write i2c OK [00:34:11]MH_I2C_Read... [00:34:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:34:11]Read from MH i2c: E2 [00:34:11]MH_I2C_Read... [00:34:11]Read from MH i2c: E2 0E 00 [00:34:11]MH_I2C_Read... [00:34:11]Read from MH i2c: E2 0E 00 7F 23 00 09 00 01 F4 9B 15 67 00 00 00 00 90 00 36 [00:34:11]RAPDU: 09 00 01 F4 9B 15 67 00 00 00 00 90 00 [00:34:11]wFMCommunicate OK [00:34:11]SAM_PROTO_GetShiftState done [00:34:11]FM_GetShiftState done [00:34:11]opened in 1729469428 [00:34:11]opened+sec_in_day 1729555828 [00:34:11]quantity*price = 50041 [00:34:11]sum+1 = 50042 [00:34:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 8 21.10.2024 00:34 Смена: 534 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227739 ФПД: 212035609572954 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T003413&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227739&fm=212035609572954&tin=02508201610067®Number=0000000000091685&sum=50000 [00:34:12]StoreToDocumentArchive [00:34:12]shift 534 fd 227739 [00:34:12]save to /storage/0534/doc_00227739 [00:34:12]save last doc name /storage/0534/doc_00227739 to /storage/kkm_last_doc_name [00:34:12]save OK [00:34:12]Clear old archive folders... [00:34:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:34:12]tlvbuf is 00C45850 [00:34:12]SAM_PROTO_ClearQueue [00:34:12]wFMCommunicate request_size=4 [00:34:12]MH_SAM_APDU [00:34:12]CAPDU: 80 09 00 00 [00:34:12]Write to MH i2c: E2 08 00 8C 23 80 09 00 00 00 00 00 00 21 [00:34:12]Write i2c OK [00:34:12]MH_I2C_Read... [00:34:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:34:12]Read from MH i2c: E2 [00:34:12]MH_I2C_Read... [00:34:12]Read from MH i2c: E2 03 00 [00:34:12]MH_I2C_Read... [00:34:12]Read from MH i2c: E2 03 00 8C 23 00 90 00 23 [00:34:12]RAPDU: 90 00 [00:34:12]wFMCommunicate OK [00:34:12]SAM_PROTO_ClearQueue done [00:34:12]KKMCreateOFDPacket [00:34:12]OFDProtocolAddRootSTLVToBuf [00:34:12]FM_MakeSignedData [00:34:12]FM_MakeSignedData [00:34:12]SAM_PROTO_SignData [00:34:12]wFMCommunicate request_size=4 [00:34:12]MH_SAM_APDU [00:34:12]CAPDU: 80 0D 01 02 [00:34:12]Write to MH i2c: E2 08 00 8D 23 80 0D 01 02 00 00 00 00 29 [00:34:12]Write i2c OK [00:34:12]MH_I2C_Read... [00:34:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:34:12]Read from MH i2c: E2 [00:34:12]MH_I2C_Read... [00:34:12]Read from MH i2c: E2 03 00 [00:34:12]MH_I2C_Read... [00:34:12]Read from MH i2c: E2 03 00 8D 23 00 90 00 24 [00:34:12]RAPDU: 90 00 [00:34:12]wFMCommunicate OK [00:34:12]wFMCommunicate request_size=255 [00:34:12]MH_SAM_APDU [00:34:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 85 A1 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9B 79 03 00 35 04 06 00 C0 [00:34:12]Write to MH i2c: E2 02 01 8E 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 85 A1 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9B 79 03 00 35 04 06 00 C0 00 00 59 [00:34:12]Write i2c OK [00:34:12]MH_I2C_Read... [00:34:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:34:12]Read from MH i2c: E2 [00:34:12]MH_I2C_Read... [00:34:12]Read from MH i2c: E2 03 00 [00:34:12]MH_I2C_Read... [00:34:12]Read from MH i2c: E2 03 00 8E 23 00 90 00 25 [00:34:12]RAPDU: 90 00 [00:34:12]wFMCommunicate OK [00:34:12]wFMCommunicate request_size=10 [00:34:12]MH_SAM_APDU [00:34:12]CAPDU: 80 0D 02 02 05 D8 63 30 36 5A [00:34:12]Write to MH i2c: E2 0D 00 8F 23 80 0D 02 02 05 00 D8 63 30 36 5A 00 00 31 [00:34:12]Write i2c OK [00:34:12]MH_I2C_Read... [00:34:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:34:12]Read from MH i2c: E2 [00:34:12]MH_I2C_Read... [00:34:12]Read from MH i2c: E2 03 00 [00:34:12]MH_I2C_Read... [00:34:12]Read from MH i2c: E2 03 00 8F 23 00 90 00 26 [00:34:12]RAPDU: 90 00 [00:34:12]wFMCommunicate OK [00:34:12]wFMCommunicate request_size=4 [00:34:12]MH_SAM_APDU [00:34:12]CAPDU: 80 0D 03 02 [00:34:12]Write to MH i2c: E2 08 00 90 23 80 0D 03 02 00 00 00 00 2E [00:34:12]Write i2c OK [00:34:12]MH_I2C_Read... [00:34:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:34:12]Read from MH i2c: E2 [00:34:12]MH_I2C_Read... [00:34:12]Read from MH i2c: E2 0B 00 [00:34:12]MH_I2C_Read... [00:34:12]Read from MH i2c: E2 0B 00 90 23 00 D6 16 A7 78 BA 63 D5 51 90 00 7D [00:34:12]RAPDU: D6 16 A7 78 BA 63 D5 51 90 00 [00:34:12]wFMCommunicate OK [00:34:12]SAM_PROTO_SignData done [00:34:12]FM_MakeSignedData done [00:34:12]CreateOFDProtocolMessage [00:34:12]wFMCommunicate request_size=4 [00:34:12]MH_SAM_APDU [00:34:12]CAPDU: 80 11 00 00 [00:34:12]Write to MH i2c: E2 08 00 91 23 80 11 00 00 00 00 00 00 2E [00:34:12]Write i2c OK [00:34:12]MH_I2C_Read... [00:34:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:34:12]Read from MH i2c: E2 [00:34:12]MH_I2C_Read... [00:34:12]Read from MH i2c: E2 17 00 [00:34:12]MH_I2C_Read... [00:34:12]Read from MH i2c: E2 17 00 91 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 85 [00:34:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [00:34:12]wFMCommunicate OK [00:34:12]CreateOFDProtocolMessage done [00:34:12]OFDSenderStorePacket 227739 [00:34:12]StoreOFDPacket docnum=227739 [00:34:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 92 58 07 01 07 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 85 A1 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9B 79 03 00 35 04 06 00 C0 D8 63 30 36 5A D6 16 A7 78 BA 63 D5 51 [00:34:12]CheckFolder [00:34:12]dirname=/storage/ofd_packets [00:34:12]CheckFolder done [00:34:12]ProducePacketName [00:34:12]name=ofd_packets/00227739 [00:34:12]NVStorageSaveData ofd_packets/00227739 [00:34:12]File name is /storage/ofd_packets/00227739 [00:34:12]Write 301 bytes [00:34:12]NVStorageSaveData done [00:34:12]OFDSenderStorePacket done [00:34:12]KKMCreateOFDPacket done [00:34:12]NVStorageSaveData kkm_last_timestamp [00:34:12]File name is /storage/kkm_last_timestamp [00:34:12]Write 4 bytes [00:34:12]NVStorageSaveData done [00:34:12]OFD Sender: Processing packet 227739 [packets to send 38, broken 37] [00:34:12]ProducePacketName [00:34:12]name=ofd_packets/00227739 [00:34:12]OFD Sender: To server: pG, [00:34:12]CommunicateWithHost lk.salyk.kg:30040 [00:34:12]ConnectInit lk.salyk.kg [00:34:12]ExternCall_PrintAddStr [00:34:12]wPrintStart [00:34:12]Write to MH i2c: 01 00 00 92 23 B5 [00:34:12]Write i2c OK [00:34:12]MH_I2C_Read... [00:34:12]Read from MH i2c: 01 [00:34:12]MH_I2C_Read... [00:34:12]Read from MH i2c: 01 07 00 [00:34:12]MH_I2C_Read... [00:34:12]Read from MH i2c: 01 07 00 92 23 00 00 00 00 00 FF 0F CA [00:34:12]RasterBufferAndPrint [00:34:12]line Счет N : (1)1963409 [00:34:13]line ИНН: 02508201610067 [00:34:13]line Контрольно-Кассовый Чек [00:34:13]line ПРОДАЖА [00:34:13]line ТРК (МРК, ГНК) : 33 [00:34:13]line Товар: 2710124130 [00:34:13]line Аи-92-К-5 [00:34:13]line 7.480 * 66.90 [00:34:13]line = 500.41 [00:34:13]line НДС 12% НСП 1% [00:34:13]line > о реализуемом товаре [00:34:13]line ОКРУГЛЕНИЕ: -0.41 [00:34:13]line ИТОГО: 500.00 [00:34:13]line Внесено: 500.00 [00:34:13]line СДАЧА: 0.00 [00:34:13]line НСП 1% : 4.43 [00:34:13]line НДС 12% : 53.14 [00:34:13]line Наличными: 500.00 [00:34:13]line Безнал.: 0.00 [00:34:13]line Место: АЗС № 133 "Партнер Нефть" [00:34:13]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [00:34:13]line СНО: Общий режим [00:34:13]line Чек 8 21.10.2024 00:34 [00:34:13]line Смена: 534 ФФД: 1.0 [00:34:13]line ЗНМ: 0300000091 [00:34:13]line РНМ: 0000000000091685 [00:34:13]line Версия ККМ: 001 [00:34:13]line ФМ: 0000000000871839 [00:34:13]line ФД: 227739 [00:34:13]line ФПД: 212035609572954 [00:34:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T003413&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227739&fm=212035609572954&tin=02508201610067®Number=0000000000091685&sum=50000 [00:34:13]Connected sock=11 [00:34: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 33 39 0F 01 00 00 92 58 07 01 07 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 85 A1 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9B 79 03 00 35 04 06 00 C0 D8 63 30 36 5A D6 16 A7 78 BA 63 D5 51 [00:34:13]written 0, free lines is 4095 [00:34: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 33 39 4F 00 00 00 93 6C 47 00 D7 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9B 79 03 00 F4 03 04 00 82 4C 15 67 B6 04 01 00 00 5A 78 D0 45 74 C2 75 23 [00:34:13]CommunicateWithHost err = 0 [00:34:13]CheckOFDResponse [00:34:13]1017 (14) - 77093643461234 [00:34:13]1041 (16) - 0000000000871839 [00:34:13]1040 (4) - 227739 [00:34:13]1012 (4) - 20.10.2024 18:31 [00:34:13]1206 (1) - 0 [00:34:13]OFD Sender: Remove packet 227739 [00:34:13]ProducePacketName [00:34:13]name=ofd_packets/00227739 [00:34:13]NVStorageDeleteData [00:34:13]Write to MH i2c: 01 00 00 BC 23 DF [00:34:13]Write i2c OK [00:34:13]MH_I2C_Read... [00:34:13]Read from MH i2c: 01 [00:34:13]MH_I2C_Read... [00:34:13]Read from MH i2c: 01 07 00 [00:34:13]MH_I2C_Read... [00:34:13]Read from MH i2c: 01 07 00 BC 23 00 00 00 00 00 99 0C 8B [00:34:13]RasterBufferAndPrint [00:34:13]line [00:34:13]line [00:34:13]line [00:34:13]line [00:34:13]line [00:34:13]written 0, free lines is 3230 [00:34:13]MH_Cut [00:34:13]Write to MH i2c: D1 01 00 C3 23 01 B8 [00:34:13]Write i2c OK [00:34:13]MH_I2C_Read... [00:34:13]Read from MH i2c: D1 [00:34:13]MH_I2C_Read... [00:34:13]Read from MH i2c: D1 01 00 [00:34:13]MH_I2C_Read... [00:34:13]Read from MH i2c: D1 01 00 C3 23 00 B7 [00:34:13]Write to MH i2c: 01 00 00 C4 23 E7 [00:34:13]Write i2c OK [00:34:13]MH_I2C_Read... [00:34:14]OFD Sender: No OFD packet to send [00:34:14]*** Cut start [00:34:14]*** Partial cut [00:34:14]*** CUTSNS_PIN = 1 [00:34:14]*** CUTSNS_PIN = 0 [00:34:15]*** Brake cut motor [00:34:15]Read from MH i2c: 01 [00:34:15]MH_I2C_Read... [00:34:15]*** Stop cut motor [00:34:15]*** Cut end [00:34:15]Read from MH i2c: 01 07 00 [00:34:15]MH_I2C_Read... [00:34:15]Read from MH i2c: 01 07 00 C4 23 00 00 00 00 00 FF 0F FC [00:34:15]process_action close_receipt done [00:34:15]requested_data is exist [00:34:15]produce_requested_data [00:34:15]requested_item fm.sn is exist - process it [00:34:15]wFMCommunicate request_size=4 [00:34:15]MH_SAM_APDU [00:34:15]CAPDU: 80 11 00 00 [00:34:15]Write to MH i2c: E2 08 00 C5 23 80 11 00 00 00 00 00 00 62 [00:34:15]Write i2c OK [00:34:15]MH_I2C_Read... [00:34:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:34:15]Read from MH i2c: E2 [00:34:15]MH_I2C_Read... [00:34:15]Read from MH i2c: E2 17 00 [00:34:15]MH_I2C_Read... [00:34:15]Read from MH i2c: E2 17 00 C5 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 B9 [00:34:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [00:34:15]wFMCommunicate OK [00:34:15]requested_item fd.num is exist - process it [00:34:15]SAM_PROTO_GetFieldsCounters [00:34:15]wFMCommunicate request_size=4 [00:34:15]MH_SAM_APDU [00:34:15]CAPDU: 80 13 00 00 [00:34:15]Write to MH i2c: E2 08 00 C6 23 80 13 00 00 00 00 00 00 65 [00:34:15]Write i2c OK [00:34:15]MH_I2C_Read... [00:34:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:34:15]Read from MH i2c: E2 [00:34:15]MH_I2C_Read... [00:34:15]Read from MH i2c: E2 62 00 [00:34:15]MH_I2C_Read... [00:34:15]Read from MH i2c: E2 62 00 C6 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 9B 79 03 00 0E 04 04 00 16 02 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 D5 [00:34: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 9B 79 03 00 0E 04 04 00 16 02 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:34:15]wFMCommunicate OK [00:34:15]SAM_PROTO_GetFieldsCounters done [00:34:15]requested_item shift.num is exist - process it [00:34:15]requested_item shift.opened is exist - process it [00:34:15]req_shift_opened [00:34:15]FM_GetShiftState [00:34:15]SAM_PROTO_GetShiftState [00:34:15]wFMCommunicate request_size=4 [00:34:15]MH_SAM_APDU [00:34:15]CAPDU: 80 13 01 00 [00:34:15]Write to MH i2c: E2 08 00 C7 23 80 13 01 00 00 00 00 00 67 [00:34:15]Write i2c OK [00:34:15]MH_I2C_Read... [00:34:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:34:15]Read from MH i2c: E2 [00:34:15]MH_I2C_Read... [00:34:15]Read from MH i2c: E2 0E 00 [00:34:15]MH_I2C_Read... [00:34:15]Read from MH i2c: E2 0E 00 C7 23 00 09 00 01 F4 9B 15 67 00 00 00 00 90 00 7E [00:34:15]RAPDU: 09 00 01 F4 9B 15 67 00 00 00 00 90 00 [00:34:15]wFMCommunicate OK [00:34:15]SAM_PROTO_GetShiftState done [00:34:15]FM_GetShiftState done [00:34:15]req_shift_opened done [00:34:15]requested_item shift.open_date is exist - process it [00:34:15]req_shift_open_date [00:34:15]req_shift_open_date done [00:34:15]produce_requested_data done [00:34:15]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227739,"shift.num":534,"shift.opened":1,"shift.open_date":1729469428} [00:34:15]process_action_free close_receipt [00:34:15]json_value_free [00:34:15]json_value_free done [00:34:15]process_json_proto returns [00:34:15]Send response to host [00:34:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227739,"shift.num":534,"shift.opened":1,"shift.open_date":1729469428}}} [00:34:15]free response buf [00:34:15]execute_script done [00:34:15]execute_script returns [00:34:15]free content buf [00:34:15]Sock 7.Close socket [00:34:15]Sock 7.Thread stoped [00:34:19]OFD Sender: No OFD packet to send [00:34:24]OFD Sender: No OFD packet to send [00:34:29]OFD Sender: No OFD packet to send [00:34:34]OFD Sender: No OFD packet to send [00:34:39]OFD Sender: No OFD packet to send [00:34:44]OFD Sender: No OFD packet to send [00:34:49]OFD Sender: No OFD packet to send [00:34:54]OFD Sender: No OFD packet to send [00:34:59]OFD Sender: No OFD packet to send [00:35:04]OFD Sender: No OFD packet to send [00:35:09]OFD Sender: No OFD packet to send [00:35:14]OFD Sender: No OFD packet to send [00:35:19]OFD Sender: No OFD packet to send [00:35:24]OFD Sender: No OFD packet to send [00:35:29]OFD Sender: No OFD packet to send [00:35:34]OFD Sender: No OFD packet to send [00:35:39]OFD Sender: No OFD packet to send [00:35:44]OFD Sender: No OFD packet to send [00:35:49]OFD Sender: No OFD packet to send [00:35:54]OFD Sender: No OFD packet to send [00:35:59]OFD Sender: No OFD packet to send [00:36:04]OFD Sender: No OFD packet to send [00:36:09]OFD Sender: No OFD packet to send [00:36:14]OFD Sender: No OFD packet to send [00:36:19]OFD Sender: No OFD packet to send [00:36:24]OFD Sender: No OFD packet to send [00:36:29]OFD Sender: No OFD packet to send [00:36:34]OFD Sender: No OFD packet to send [00:36:39]OFD Sender: No OFD packet to send [00:36:44]OFD Sender: No OFD packet to send [00:36:49]OFD Sender: No OFD packet to send [00:36:54]OFD Sender: No OFD packet to send [00:36:59]OFD Sender: No OFD packet to send [00:37:04]OFD Sender: No OFD packet to send [00:37:09]OFD Sender: No OFD packet to send [00:37:14]OFD Sender: No OFD packet to send [00:37:19]OFD Sender: No OFD packet to send [00:37:24]OFD Sender: No OFD packet to send [00:37:29]OFD Sender: No OFD packet to send [00:37:34]OFD Sender: No OFD packet to send [00:37:39]OFD Sender: No OFD packet to send [00:37:44]OFD Sender: No OFD packet to send [00:37:49]OFD Sender: No OFD packet to send [00:37:54]OFD Sender: No OFD packet to send [00:37:59]OFD Sender: No OFD packet to send [00:38:04]OFD Sender: No OFD packet to send [00:38:09]OFD Sender: No OFD packet to send [00:38:14]OFD Sender: No OFD packet to send [00:38:19]OFD Sender: No OFD packet to send [00:38:24]OFD Sender: No OFD packet to send [00:38:29]OFD Sender: No OFD packet to send [00:38:34]OFD Sender: No OFD packet to send [00:38:39]OFD Sender: No OFD packet to send [00:38:44]OFD Sender: No OFD packet to send [00:38:49]OFD Sender: No OFD packet to send [00:38:54]OFD Sender: No OFD packet to send [00:38:59]OFD Sender: No OFD packet to send [00:39:04]OFD Sender: No OFD packet to send [00:39:09]OFD Sender: No OFD packet to send [00:39:14]OFD Sender: No OFD packet to send [00:39:19]OFD Sender: No OFD packet to send [00:39:24]OFD Sender: No OFD packet to send [00:39:29]OFD Sender: No OFD packet to send [00:39:34]OFD Sender: No OFD packet to send [00:39:39]OFD Sender: No OFD packet to send [00:39:44]OFD Sender: No OFD packet to send [00:39:49]OFD Sender: No OFD packet to send [00:39:54]OFD Sender: No OFD packet to send [00:39:59]OFD Sender: No OFD packet to send [00:40:04]OFD Sender: No OFD packet to send [00:40:09]OFD Sender: No OFD packet to send [00:40:14]OFD Sender: No OFD packet to send [00:40:19]OFD Sender: No OFD packet to send [00:40:24]OFD Sender: No OFD packet to send [00:40:29]OFD Sender: No OFD packet to send [00:40:34]OFD Sender: No OFD packet to send [00:40:39]OFD Sender: No OFD packet to send [00:40:44]OFD Sender: No OFD packet to send [00:40:49]OFD Sender: No OFD packet to send [00:40:54]OFD Sender: No OFD packet to send [00:40:59]OFD Sender: No OFD packet to send [00:41:04]OFD Sender: No OFD packet to send [00:41:09]OFD Sender: No OFD packet to send [00:41:14]OFD Sender: No OFD packet to send [00:41:19]OFD Sender: No OFD packet to send [00:41:24]OFD Sender: No OFD packet to send [00:41:29]OFD Sender: No OFD packet to send [00:41:34]OFD Sender: No OFD packet to send [00:41:39]OFD Sender: No OFD packet to send [00:41:44]OFD Sender: No OFD packet to send [00:41:49]OFD Sender: No OFD packet to send [00:41:54]OFD Sender: No OFD packet to send [00:41:59]OFD Sender: No OFD packet to send [00:42:04]OFD Sender: No OFD packet to send [00:42:09]OFD Sender: No OFD packet to send [00:42:14]OFD Sender: No OFD packet to send [00:42:19]OFD Sender: No OFD packet to send [00:42:24]OFD Sender: No OFD packet to send [00:42:29]OFD Sender: No OFD packet to send [00:42:34]OFD Sender: No OFD packet to send [00:42:39]OFD Sender: No OFD packet to send [00:42:44]OFD Sender: No OFD packet to send [00:42:49]OFD Sender: No OFD packet to send [00:42:54]OFD Sender: No OFD packet to send [00:42:59]OFD Sender: No OFD packet to send [00:43:04]OFD Sender: No OFD packet to send [00:43:09]OFD Sender: No OFD packet to send [00:43:14]OFD Sender: No OFD packet to send [00:43:19]OFD Sender: No OFD packet to send [00:43:24]OFD Sender: No OFD packet to send [00:43:29]OFD Sender: No OFD packet to send [00:43:34]OFD Sender: No OFD packet to send [00:43:39]OFD Sender: No OFD packet to send [00:43:44]OFD Sender: No OFD packet to send [00:43:49]OFD Sender: No OFD packet to send [00:43:54]OFD Sender: No OFD packet to send [00:43:59]OFD Sender: No OFD packet to send [00:44:04]OFD Sender: No OFD packet to send [00:44:09]OFD Sender: No OFD packet to send [00:44:14]OFD Sender: No OFD packet to send [00:44:19]OFD Sender: No OFD packet to send [00:44:20]accept exits with 9 [00:44:20]New connection [00:44:20]New thread 3066809700 created [00:44:20]Thread 3066666340 joined [00:44:20]Waiting for new connection... [00:44:20] Sock 9.Parse request [00:44:20]Sock 9.Check first char [00:44:20]Sock 9.First char is OK [00:44:20]request: POST /json_proto HTTP/1.0 [00:44:20]Method: POST [00:44:20]URL: /json_proto [00:44:20]Method is POST - this is cgi request [00:44:20]url: /json_proto [00:44:20]query_string will be loaded in cgi processing [00:44:20]execute_cgi json_proto POST (null) [00:44:20]execute_cgi path=json_proto method=POST [00:44:20]POST find Content-Length [00:44:20]Host: 172.17.44.195:8080 [00:44:20]Content-Length: 683 [00:44:20]Content-Type: application/json [00:44:20] [00:44:20]POST finish read [00:44:20]Found Content-Length = 683 [00:44:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963410", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:44:20]execute_script... [00:44: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)1963410", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:44:20]POST & json_proto [00:44:20]process_json_proto [00:44:20]json parsed OK: [00:44:20]protocol is kg_v1.0 [00:44:20]action value=close_receipt [00:44:20]process_action close_receipt [00:44:20]cmd_close_receipt [00:44:20]MH_GetDate [00:44:20]Write to MH i2c: F0 00 00 C8 23 DA [00:44:20]Write i2c OK [00:44:20]MH_I2C_Read... [00:44:20]Read from MH i2c: F0 [00:44:20]MH_I2C_Read... [00:44:20]Read from MH i2c: F0 09 00 [00:44:20]MH_I2C_Read... [00:44:20]Read from MH i2c: F0 09 00 C8 23 00 E6 A3 15 67 82 C9 CF 66 68 [00:44:20]GetLastDocTimeStamp 1729470853 [00:44:20]current date 1729471462 [00:44:20]FM_GetShiftState [00:44:20]SAM_PROTO_GetShiftState [00:44:20]wFMCommunicate request_size=4 [00:44:20]MH_SAM_APDU [00:44:20]CAPDU: 80 13 01 00 [00:44:20]Write to MH i2c: E2 08 00 C9 23 80 13 01 00 00 00 00 00 69 [00:44:20]Write i2c OK [00:44:20]MH_I2C_Read... [00:44:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:44:20]Read from MH i2c: E2 [00:44:20]MH_I2C_Read... [00:44:20]Read from MH i2c: E2 0E 00 [00:44:20]MH_I2C_Read... [00:44:20]Read from MH i2c: E2 0E 00 C9 23 00 09 00 01 F4 9B 15 67 00 00 00 00 90 00 80 [00:44:20]RAPDU: 09 00 01 F4 9B 15 67 00 00 00 00 90 00 [00:44:20]wFMCommunicate OK [00:44:20]SAM_PROTO_GetShiftState done [00:44:20]FM_GetShiftState done [00:44:20]opened in 1729469428 [00:44:20]opened+sec_in_day 1729555828 [00:44:20]quantity*price = 200031 [00:44:20]sum+1 = 200032 [00:44:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 9 21.10.2024 00:44 Смена: 534 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227740 ФПД: 107830579511194 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T004422&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227740&fm=107830579511194&tin=02508201610067®Number=0000000000091685&sum=200000 [00:44:21]StoreToDocumentArchive [00:44:21]shift 534 fd 227740 [00:44:21]save to /storage/0534/doc_00227740 [00:44:21]save last doc name /storage/0534/doc_00227740 to /storage/kkm_last_doc_name [00:44:21]save OK [00:44:21]Clear old archive folders... [00:44:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:44:21]tlvbuf is 00C1D800 [00:44:21]SAM_PROTO_ClearQueue [00:44:21]wFMCommunicate request_size=4 [00:44:21]MH_SAM_APDU [00:44:21]CAPDU: 80 09 00 00 [00:44:21]Write to MH i2c: E2 08 00 D6 23 80 09 00 00 00 00 00 00 6B [00:44:21]Write i2c OK [00:44:21]MH_I2C_Read... [00:44:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:44:21]Read from MH i2c: E2 [00:44:21]MH_I2C_Read... [00:44:21]Read from MH i2c: E2 03 00 [00:44:21]MH_I2C_Read... [00:44:21]Read from MH i2c: E2 03 00 D6 23 00 90 00 6D [00:44:21]RAPDU: 90 00 [00:44:21]wFMCommunicate OK [00:44:21]SAM_PROTO_ClearQueue done [00:44:21]KKMCreateOFDPacket [00:44:21]OFDProtocolAddRootSTLVToBuf [00:44:21]FM_MakeSignedData [00:44:21]FM_MakeSignedData [00:44:21]SAM_PROTO_SignData [00:44:21]wFMCommunicate request_size=4 [00:44:21]MH_SAM_APDU [00:44:21]CAPDU: 80 0D 01 02 [00:44:21]Write to MH i2c: E2 08 00 D7 23 80 0D 01 02 00 00 00 00 73 [00:44:21]Write i2c OK [00:44:21]MH_I2C_Read... [00:44:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:44:21]Read from MH i2c: E2 [00:44:21]MH_I2C_Read... [00:44:21]Read from MH i2c: E2 03 00 [00:44:21]MH_I2C_Read... [00:44:21]Read from MH i2c: E2 03 00 D7 23 00 90 00 6E [00:44:21]RAPDU: 90 00 [00:44:21]wFMCommunicate OK [00:44:21]wFMCommunicate request_size=255 [00:44:21]MH_SAM_APDU [00:44:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 E6 A3 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9C 79 03 00 35 04 06 00 62 [00:44:21]Write to MH i2c: E2 02 01 D8 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 E6 A3 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9C 79 03 00 35 04 06 00 62 00 00 EC [00:44:21]Write i2c OK [00:44:21]MH_I2C_Read... [00:44:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:44:21]Read from MH i2c: E2 [00:44:21]MH_I2C_Read... [00:44:21]Read from MH i2c: E2 03 00 [00:44:21]MH_I2C_Read... [00:44:21]Read from MH i2c: E2 03 00 D8 23 00 90 00 6F [00:44:21]RAPDU: 90 00 [00:44:21]wFMCommunicate OK [00:44:21]wFMCommunicate request_size=10 [00:44:21]MH_SAM_APDU [00:44:21]CAPDU: 80 0D 02 02 05 12 43 63 3F 9A [00:44:21]Write to MH i2c: E2 0D 00 D9 23 80 0D 02 02 05 00 12 43 63 3F 9A 00 00 11 [00:44:21]Write i2c OK [00:44:21]MH_I2C_Read... [00:44:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:44:22]Read from MH i2c: E2 [00:44:22]MH_I2C_Read... [00:44:22]Read from MH i2c: E2 03 00 [00:44:22]MH_I2C_Read... [00:44:22]Read from MH i2c: E2 03 00 D9 23 00 90 00 70 [00:44:22]RAPDU: 90 00 [00:44:22]wFMCommunicate OK [00:44:22]wFMCommunicate request_size=4 [00:44:22]MH_SAM_APDU [00:44:22]CAPDU: 80 0D 03 02 [00:44:22]Write to MH i2c: E2 08 00 DA 23 80 0D 03 02 00 00 00 00 78 [00:44:22]Write i2c OK [00:44:22]MH_I2C_Read... [00:44:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:44:22]Read from MH i2c: E2 [00:44:22]MH_I2C_Read... [00:44:22]Read from MH i2c: E2 0B 00 [00:44:22]MH_I2C_Read... [00:44:22]Read from MH i2c: E2 0B 00 DA 23 00 36 27 EE D9 3E 1A 41 BD 90 00 F3 [00:44:22]RAPDU: 36 27 EE D9 3E 1A 41 BD 90 00 [00:44:22]wFMCommunicate OK [00:44:22]SAM_PROTO_SignData done [00:44:22]FM_MakeSignedData done [00:44:22]CreateOFDProtocolMessage [00:44:22]wFMCommunicate request_size=4 [00:44:22]MH_SAM_APDU [00:44:22]CAPDU: 80 11 00 00 [00:44:22]Write to MH i2c: E2 08 00 DB 23 80 11 00 00 00 00 00 00 78 [00:44:22]Write i2c OK [00:44:22]MH_I2C_Read... [00:44:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:44:22]Read from MH i2c: E2 [00:44:22]MH_I2C_Read... [00:44:22]Read from MH i2c: E2 17 00 [00:44:22]MH_I2C_Read... [00:44:22]Read from MH i2c: E2 17 00 DB 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 CF [00:44:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [00:44:22]wFMCommunicate OK [00:44:22]CreateOFDProtocolMessage done [00:44:22]OFDSenderStorePacket 227740 [00:44:22]StoreOFDPacket docnum=227740 [00:44:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 1C AE 07 01 CB 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 E6 A3 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9C 79 03 00 35 04 06 00 62 12 43 63 3F 9A 36 27 EE D9 3E 1A 41 BD [00:44:22]CheckFolder [00:44:22]dirname=/storage/ofd_packets [00:44:22]CheckFolder done [00:44:22]ProducePacketName [00:44:22]name=ofd_packets/00227740 [00:44:22]NVStorageSaveData ofd_packets/00227740 [00:44:22]File name is /storage/ofd_packets/00227740 [00:44:22]Write 301 bytes [00:44:22]NVStorageSaveData done [00:44:22]OFDSenderStorePacket done [00:44:22]KKMCreateOFDPacket done [00:44:22]NVStorageSaveData kkm_last_timestamp [00:44:22]File name is /storage/kkm_last_timestamp [00:44:22]Write 4 bytes [00:44:22]NVStorageSaveData done [00:44:22]ExternCall_PrintAddStr [00:44:22]wPrintStart [00:44:22]Write to MH i2c: 01 00 00 DC 23 FF [00:44:22]Write i2c OK [00:44:22]MH_I2C_Read... [00:44:22]Read from MH i2c: 01 [00:44:22]MH_I2C_Read... [00:44:22]Read from MH i2c: 01 07 00 [00:44:22]MH_I2C_Read... [00:44:22]Read from MH i2c: 01 07 00 DC 23 00 00 00 00 00 FF 0F 14 [00:44:22]RasterBufferAndPrint [00:44:22]line Счет N : (1)1963410 [00:44:22]line ИНН: 02508201610067 [00:44:22]line Контрольно-Кассовый Чек [00:44:22]line ПРОДАЖА [00:44:22]line ТРК (МРК, ГНК) : 33 [00:44:22]line Товар: 2710124130 [00:44:22]line Аи-92-К-5 [00:44:22]line 29.900 * 66.90 [00:44:22]line = 2000.31 [00:44:22]line НДС 12% НСП 1% [00:44:22]line > о реализуемом товаре [00:44:22]line ОКРУГЛЕНИЕ: -0.31 [00:44:22]line ИТОГО: 2000.00 [00:44:22]line Внесено: 2000.00 [00:44:22]line СДАЧА: 0.00 [00:44:22]line НСП 1% : 17.70 [00:44:22]line НДС 12% : 212.42 [00:44:22]line Наличными: 2000.00 [00:44:22]line Безнал.: 0.00 [00:44:22]line Место: АЗС № 133 "Партнер Нефть" [00:44:22]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [00:44:22]line СНО: Общий режим [00:44:22]line Чек 9 21.10.2024 00:44 [00:44:22]line Смена: 534 ФФД: 1.0 [00:44:22]line ЗНМ: 0300000091 [00:44:22]line РНМ: 0000000000091685 [00:44:22]line Версия ККМ: 001 [00:44:22]line ФМ: 0000000000871839 [00:44:22]line ФД: 227740 [00:44:22]line ФПД: 107830579511194 [00:44:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T004422&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227740&fm=107830579511194&tin=02508201610067®Number=0000000000091685&sum=200000 [00:44:22]OFD Sender: Processing packet 227740 [packets to send 38, broken 37] [00:44:22]ProducePacketName [00:44:22]name=ofd_packets/00227740 [00:44:22]OFD Sender: To server: pG, [00:44:22]CommunicateWithHost lk.salyk.kg:30040 [00:44:22]ConnectInit lk.salyk.kg [00:44:22]written 0, free lines is 4095 [00:44:22]Connected sock=10 [00:44:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 1C AE 07 01 CB 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 E6 A3 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9C 79 03 00 35 04 06 00 62 12 43 63 3F 9A 36 27 EE D9 3E 1A 41 BD [00:44: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 33 39 4F 00 00 00 56 A0 47 00 AD 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 33 39 10 04 04 00 9C 79 03 00 F4 03 04 00 E3 4E 15 67 B6 04 01 00 00 0B CF FC AB 66 8E F1 C0 [00:44:22]CommunicateWithHost err = 0 [00:44:22]CheckOFDResponse [00:44:22]1017 (14) - 77093643461234 [00:44:22]1041 (16) - 0000000000871839 [00:44:22]1040 (4) - 227740 [00:44:22]1012 (4) - 20.10.2024 18:41 [00:44:22]1206 (1) - 0 [00:44:22]OFD Sender: Remove packet 227740 [00:44:22]ProducePacketName [00:44:22]name=ofd_packets/00227740 [00:44:22]NVStorageDeleteData [00:44:22]Write to MH i2c: 01 00 00 06 24 2A [00:44:22]Write i2c OK [00:44:22]MH_I2C_Read... [00:44:22]Read from MH i2c: 01 [00:44:22]MH_I2C_Read... [00:44:22]Read from MH i2c: 01 07 00 [00:44:22]MH_I2C_Read... [00:44:22]Read from MH i2c: 01 07 00 06 24 00 00 00 00 00 A3 0C E0 [00:44:22]RasterBufferAndPrint [00:44:22]line [00:44:22]line [00:44:22]line [00:44:22]line [00:44:22]line [00:44:22]written 0, free lines is 3239 [00:44:22]MH_Cut [00:44:22]Write to MH i2c: D1 01 00 0D 24 01 03 [00:44:22]Write i2c OK [00:44:22]MH_I2C_Read... [00:44:22]Read from MH i2c: D1 [00:44:22]MH_I2C_Read... [00:44:22]Read from MH i2c: D1 01 00 [00:44:22]MH_I2C_Read... [00:44:22]Read from MH i2c: D1 01 00 0D 24 00 02 [00:44:22]Write to MH i2c: 01 00 00 0E 24 32 [00:44:22]Write i2c OK [00:44:22]MH_I2C_Read... [00:44:23]OFD Sender: No OFD packet to send [00:44:23]*** Cut start [00:44:23]*** Partial cut [00:44:23]*** CUTSNS_PIN = 1 [00:44:23]*** CUTSNS_PIN = 0 [00:44:24]*** Brake cut motor [00:44:24]Read from MH i2c: 01 [00:44:24]MH_I2C_Read... [00:44:24]*** Stop cut motor [00:44:24]*** Cut end [00:44:24]Read from MH i2c: 01 07 00 [00:44:24]MH_I2C_Read... [00:44:24]Read from MH i2c: 01 07 00 0E 24 00 00 00 00 00 FF 0F 47 [00:44:24]process_action close_receipt done [00:44:24]requested_data is exist [00:44:24]produce_requested_data [00:44:24]requested_item fm.sn is exist - process it [00:44:24]wFMCommunicate request_size=4 [00:44:24]MH_SAM_APDU [00:44:24]CAPDU: 80 11 00 00 [00:44:24]Write to MH i2c: E2 08 00 0F 24 80 11 00 00 00 00 00 00 AD [00:44:24]Write i2c OK [00:44:24]MH_I2C_Read... [00:44:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:44:24]Read from MH i2c: E2 [00:44:24]MH_I2C_Read... [00:44:24]Read from MH i2c: E2 17 00 [00:44:24]MH_I2C_Read... [00:44:24]Read from MH i2c: E2 17 00 0F 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 04 [00:44:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [00:44:24]wFMCommunicate OK [00:44:24]requested_item fd.num is exist - process it [00:44:24]SAM_PROTO_GetFieldsCounters [00:44:24]wFMCommunicate request_size=4 [00:44:24]MH_SAM_APDU [00:44:24]CAPDU: 80 13 00 00 [00:44:24]Write to MH i2c: E2 08 00 10 24 80 13 00 00 00 00 00 00 B0 [00:44:24]Write i2c OK [00:44:24]MH_I2C_Read... [00:44:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:44:24]Read from MH i2c: E2 [00:44:24]MH_I2C_Read... [00:44:24]Read from MH i2c: E2 62 00 [00:44:24]MH_I2C_Read... [00:44:24]Read from MH i2c: E2 62 00 10 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 9C 79 03 00 0E 04 04 00 16 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 24 [00:44:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 9C 79 03 00 0E 04 04 00 16 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 [00:44:24]wFMCommunicate OK [00:44:24]SAM_PROTO_GetFieldsCounters done [00:44:24]requested_item shift.num is exist - process it [00:44:24]requested_item shift.opened is exist - process it [00:44:24]req_shift_opened [00:44:24]FM_GetShiftState [00:44:24]SAM_PROTO_GetShiftState [00:44:24]wFMCommunicate request_size=4 [00:44:24]MH_SAM_APDU [00:44:24]CAPDU: 80 13 01 00 [00:44:24]Write to MH i2c: E2 08 00 11 24 80 13 01 00 00 00 00 00 B2 [00:44:24]Write i2c OK [00:44:24]MH_I2C_Read... [00:44:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:44:24]Read from MH i2c: E2 [00:44:24]MH_I2C_Read... [00:44:24]Read from MH i2c: E2 0E 00 [00:44:24]MH_I2C_Read... [00:44:24]Read from MH i2c: E2 0E 00 11 24 00 09 00 01 F4 9B 15 67 00 00 00 00 90 00 C9 [00:44:24]RAPDU: 09 00 01 F4 9B 15 67 00 00 00 00 90 00 [00:44:24]wFMCommunicate OK [00:44:24]SAM_PROTO_GetShiftState done [00:44:24]FM_GetShiftState done [00:44:24]req_shift_opened done [00:44:24]requested_item shift.open_date is exist - process it [00:44:24]req_shift_open_date [00:44:24]req_shift_open_date done [00:44:24]produce_requested_data done [00:44:24]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227740,"shift.num":534,"shift.opened":1,"shift.open_date":1729469428} [00:44:24]process_action_free close_receipt [00:44:24]json_value_free [00:44:24]json_value_free done [00:44:24]process_json_proto returns [00:44:24]Send response to host [00:44:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227740,"shift.num":534,"shift.opened":1,"shift.open_date":1729469428}}} [00:44:24]free response buf [00:44:24]execute_script done [00:44:24]execute_script returns [00:44:24]free content buf [00:44:24]Sock 9.Close socket [00:44:24]Sock 9.Thread stoped [00:44:28]OFD Sender: No OFD packet to send [00:44:33]OFD Sender: No OFD packet to send [00:44:38]OFD Sender: No OFD packet to send [00:44:43]OFD Sender: No OFD packet to send [00:44:48]OFD Sender: No OFD packet to send [00:44:53]OFD Sender: No OFD packet to send [00:44:58]OFD Sender: No OFD packet to send [00:45:03]OFD Sender: No OFD packet to send [00:45:08]OFD Sender: No OFD packet to send [00:45:13]OFD Sender: No OFD packet to send [00:45:18]OFD Sender: No OFD packet to send [00:45:23]OFD Sender: No OFD packet to send [00:45:28]OFD Sender: No OFD packet to send [00:45:33]OFD Sender: No OFD packet to send [00:45:38]OFD Sender: No OFD packet to send [00:45:43]OFD Sender: No OFD packet to send [00:45:48]OFD Sender: No OFD packet to send [00:45:53]OFD Sender: No OFD packet to send [00:45:58]OFD Sender: No OFD packet to send [00:46:03]OFD Sender: No OFD packet to send [00:46:08]OFD Sender: No OFD packet to send [00:46:13]OFD Sender: No OFD packet to send [00:46:18]OFD Sender: No OFD packet to send [00:46:23]OFD Sender: No OFD packet to send [00:46:28]OFD Sender: No OFD packet to send [00:46:33]OFD Sender: No OFD packet to send [00:46:38]OFD Sender: No OFD packet to send [00:46:43]OFD Sender: No OFD packet to send [00:46:48]OFD Sender: No OFD packet to send [00:46:53]OFD Sender: No OFD packet to send [00:46:58]OFD Sender: No OFD packet to send [00:47:03]OFD Sender: No OFD packet to send [00:47:08]OFD Sender: No OFD packet to send [00:47:13]OFD Sender: No OFD packet to send [00:47:18]OFD Sender: No OFD packet to send [00:47:23]OFD Sender: No OFD packet to send [00:47:28]OFD Sender: No OFD packet to send [00:47:33]OFD Sender: No OFD packet to send [00:47:38]OFD Sender: No OFD packet to send [00:47:43]OFD Sender: No OFD packet to send [00:47:48]OFD Sender: No OFD packet to send [00:47:53]OFD Sender: No OFD packet to send [00:47:58]OFD Sender: No OFD packet to send [00:48:03]OFD Sender: No OFD packet to send [00:48:08]OFD Sender: No OFD packet to send [00:48:13]OFD Sender: No OFD packet to send [00:48:18]OFD Sender: No OFD packet to send [00:48:23]OFD Sender: No OFD packet to send [00:48:28]OFD Sender: No OFD packet to send [00:48:33]OFD Sender: No OFD packet to send [00:48:38]accept exits with 7 [00:48:38]New connection [00:48:38]New thread 3066666340 created [00:48:38]Thread 3066809700 joined [00:48:38]Waiting for new connection... [00:48:38] Sock 7.Parse request [00:48:38]Sock 7.Check first char [00:48:38]Sock 7.First char is OK [00:48:38]request: POST /json_proto HTTP/1.0 [00:48:38]Method: POST [00:48:38]URL: /json_proto [00:48:38]Method is POST - this is cgi request [00:48:38]url: /json_proto [00:48:38]query_string will be loaded in cgi processing [00:48:38]execute_cgi json_proto POST (null) [00:48:38]execute_cgi path=json_proto method=POST [00:48:38]POST find Content-Length [00:48:38]Host: 172.17.44.195:8080 [00:48:38]Content-Length: 678 [00:48:38]Content-Type: application/json [00:48:38] [00:48:38]POST finish read [00:48:38]Found Content-Length = 678 [00:48:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963413", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:48:38]execute_script... [00:48: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)1963413", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:48:38]POST & json_proto [00:48:38]process_json_proto [00:48:38]json parsed OK: [00:48:38]protocol is kg_v1.0 [00:48:38]action value=close_receipt [00:48:38]process_action close_receipt [00:48:38]cmd_close_receipt [00:48:38]MH_GetDate [00:48:38]Write to MH i2c: F0 00 00 12 24 25 [00:48:38]Write i2c OK [00:48:38]MH_I2C_Read... [00:48:38]Read from MH i2c: F0 [00:48:38]MH_I2C_Read... [00:48:38]Read from MH i2c: F0 09 00 [00:48:38]MH_I2C_Read... [00:48:38]Read from MH i2c: F0 09 00 12 24 00 E8 A4 15 67 82 C9 CF 66 B6 [00:48:38]GetLastDocTimeStamp 1729471462 [00:48:38]current date 1729471720 [00:48:38]FM_GetShiftState [00:48:38]SAM_PROTO_GetShiftState [00:48:38]wFMCommunicate request_size=4 [00:48:38]MH_SAM_APDU [00:48:38]CAPDU: 80 13 01 00 [00:48:38]Write to MH i2c: E2 08 00 13 24 80 13 01 00 00 00 00 00 B4 [00:48:38]Write i2c OK [00:48:38]MH_I2C_Read... [00:48:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:48:38]Read from MH i2c: E2 [00:48:38]MH_I2C_Read... [00:48:38]Read from MH i2c: E2 0E 00 [00:48:38]MH_I2C_Read... [00:48:38]Read from MH i2c: E2 0E 00 13 24 00 09 00 01 F4 9B 15 67 00 00 00 00 90 00 CB [00:48:38]RAPDU: 09 00 01 F4 9B 15 67 00 00 00 00 90 00 [00:48:38]wFMCommunicate OK [00:48:38]SAM_PROTO_GetShiftState done [00:48:38]FM_GetShiftState done [00:48:38]opened in 1729469428 [00:48:38]opened+sec_in_day 1729555828 [00:48:38]quantity*price = 35055 [00:48:38]sum+1 = 35057 [00:48:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 10 21.10.2024 00:48 Смена: 534 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227741 ФПД: 200445532229029 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T004840&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227741&fm=200445532229029&tin=02508201610067®Number=0000000000091685&sum=35000 [00:48:39]StoreToDocumentArchive [00:48:39]shift 534 fd 227741 [00:48:39]save to /storage/0534/doc_00227741 [00:48:39]save last doc name /storage/0534/doc_00227741 to /storage/kkm_last_doc_name [00:48:39]save OK [00:48:39]Clear old archive folders... [00:48:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:48:39]tlvbuf is 00C4E5D0 [00:48:39]SAM_PROTO_ClearQueue [00:48:39]wFMCommunicate request_size=4 [00:48:39]MH_SAM_APDU [00:48:39]CAPDU: 80 09 00 00 [00:48:39]Write to MH i2c: E2 08 00 20 24 80 09 00 00 00 00 00 00 B6 [00:48:39]Write i2c OK [00:48:39]MH_I2C_Read... [00:48:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:48:39]Read from MH i2c: E2 [00:48:39]MH_I2C_Read... [00:48:39]Read from MH i2c: E2 03 00 [00:48:39]MH_I2C_Read... [00:48:39]Read from MH i2c: E2 03 00 20 24 00 90 00 B8 [00:48:39]RAPDU: 90 00 [00:48:39]wFMCommunicate OK [00:48:39]SAM_PROTO_ClearQueue done [00:48:39]KKMCreateOFDPacket [00:48:39]OFDProtocolAddRootSTLVToBuf [00:48:39]FM_MakeSignedData [00:48:39]FM_MakeSignedData [00:48:39]SAM_PROTO_SignData [00:48:39]wFMCommunicate request_size=4 [00:48:39]MH_SAM_APDU [00:48:39]CAPDU: 80 0D 01 02 [00:48:39]Write to MH i2c: E2 08 00 21 24 80 0D 01 02 00 00 00 00 BE [00:48:39]Write i2c OK [00:48:39]MH_I2C_Read... [00:48:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:48:39]Read from MH i2c: E2 [00:48:39]MH_I2C_Read... [00:48:39]Read from MH i2c: E2 03 00 [00:48:39]MH_I2C_Read... [00:48:39]Read from MH i2c: E2 03 00 21 24 00 90 00 B9 [00:48:39]RAPDU: 90 00 [00:48:39]wFMCommunicate OK [00:48:39]wFMCommunicate request_size=255 [00:48:39]MH_SAM_APDU [00:48:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 E8 A4 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9D 79 03 00 35 04 06 00 B6 [00:48:39]Write to MH i2c: E2 02 01 22 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 E8 A4 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9D 79 03 00 35 04 06 00 B6 00 00 59 [00:48:39]Write i2c OK [00:48:39]MH_I2C_Read... [00:48:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:48:39]Read from MH i2c: E2 [00:48:39]MH_I2C_Read... [00:48:39]Read from MH i2c: E2 03 00 [00:48:39]MH_I2C_Read... [00:48:39]Read from MH i2c: E2 03 00 22 24 00 90 00 BA [00:48:39]RAPDU: 90 00 [00:48:39]wFMCommunicate OK [00:48:39]wFMCommunicate request_size=10 [00:48:39]MH_SAM_APDU [00:48:39]CAPDU: 80 0D 02 02 05 4D DC BE CD A5 [00:48:39]Write to MH i2c: E2 0D 00 23 24 80 0D 02 02 05 00 4D DC BE CD A5 00 00 24 [00:48:39]Write i2c OK [00:48:39]MH_I2C_Read... [00:48:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:48:39]Read from MH i2c: E2 [00:48:39]MH_I2C_Read... [00:48:39]Read from MH i2c: E2 03 00 [00:48:39]MH_I2C_Read... [00:48:39]Read from MH i2c: E2 03 00 23 24 00 90 00 BB [00:48:39]RAPDU: 90 00 [00:48:39]wFMCommunicate OK [00:48:39]wFMCommunicate request_size=4 [00:48:39]MH_SAM_APDU [00:48:39]CAPDU: 80 0D 03 02 [00:48:39]Write to MH i2c: E2 08 00 24 24 80 0D 03 02 00 00 00 00 C3 [00:48:39]Write i2c OK [00:48:39]MH_I2C_Read... [00:48:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:48:39]Read from MH i2c: E2 [00:48:39]MH_I2C_Read... [00:48:39]Read from MH i2c: E2 0B 00 [00:48:39]MH_I2C_Read... [00:48:39]Read from MH i2c: E2 0B 00 24 24 00 31 7D 5D A1 F2 75 25 0A 90 00 06 [00:48:39]RAPDU: 31 7D 5D A1 F2 75 25 0A 90 00 [00:48:39]wFMCommunicate OK [00:48:39]SAM_PROTO_SignData done [00:48:39]FM_MakeSignedData done [00:48:39]CreateOFDProtocolMessage [00:48:39]wFMCommunicate request_size=4 [00:48:39]MH_SAM_APDU [00:48:39]CAPDU: 80 11 00 00 [00:48:39]Write to MH i2c: E2 08 00 25 24 80 11 00 00 00 00 00 00 C3 [00:48:39]Write i2c OK [00:48:39]MH_I2C_Read... [00:48:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:48:39]Read from MH i2c: E2 [00:48:39]MH_I2C_Read... [00:48:39]Read from MH i2c: E2 17 00 [00:48:39]MH_I2C_Read... [00:48:39]Read from MH i2c: E2 17 00 25 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 1A [00:48:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [00:48:39]wFMCommunicate OK [00:48:39]CreateOFDProtocolMessage done [00:48:39]OFDSenderStorePacket 227741 [00:48:39]StoreOFDPacket docnum=227741 [00:48:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 E3 4A 07 01 E1 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 E8 A4 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9D 79 03 00 35 04 06 00 B6 4D DC BE CD A5 31 7D 5D A1 F2 75 25 0A [00:48:39]CheckFolder [00:48:39]dirname=/storage/ofd_packets [00:48:39]CheckFolder done [00:48:39]ProducePacketName [00:48:39]name=ofd_packets/00227741 [00:48:39]NVStorageSaveData ofd_packets/00227741 [00:48:39]File name is /storage/ofd_packets/00227741 [00:48:39]Write 301 bytes [00:48:39]NVStorageSaveData done [00:48:39]OFDSenderStorePacket done [00:48:39]KKMCreateOFDPacket done [00:48:39]NVStorageSaveData kkm_last_timestamp [00:48:39]File name is /storage/kkm_last_timestamp [00:48:39]Write 4 bytes [00:48:39]NVStorageSaveData done [00:48:39]ExternCall_PrintAddStr [00:48:39]wPrintStart [00:48:39]Write to MH i2c: 01 00 00 26 24 4A [00:48:39]Write i2c OK [00:48:39]MH_I2C_Read... [00:48:39]Read from MH i2c: 01 [00:48:39]MH_I2C_Read... [00:48:39]Read from MH i2c: 01 07 00 [00:48:39]MH_I2C_Read... [00:48:39]Read from MH i2c: 01 07 00 26 24 00 00 00 00 00 FF 0F 5F [00:48:39]RasterBufferAndPrint [00:48:39]line Счет N : (1)1963413 [00:48:39]line ИНН: 02508201610067 [00:48:39]line Контрольно-Кассовый Чек [00:48:39]line ПРОДАЖА [00:48:39]line ТРК (МРК, ГНК) : 33 [00:48:39]line Товар: 2710124130 [00:48:39]line Аи-92-К-5 [00:48:39]line 5.240 * 66.90 [00:48:39]line = 350.56 [00:48:39]line НДС 12% НСП 1% [00:48:39]line > о реализуемом товаре [00:48:39]line ОКРУГЛЕНИЕ: -0.56 [00:48:39]line ИТОГО: 350.00 [00:48:39]line Внесено: 350.00 [00:48:39]line СДАЧА: 0.00 [00:48:39]line НСП 1% : 3.10 [00:48:39]line НДС 12% : 37.23 [00:48:39]line Наличными: 350.00 [00:48:39]line Безнал.: 0.00 [00:48:39]line Место: АЗС № 133 "Партнер Нефть" [00:48:39]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [00:48:39]line СНО: Общий режим [00:48:39]line Чек 10 21.10.2024 00:48 [00:48:39]line Смена: 534 ФФД: 1.0 [00:48:39]line ЗНМ: 0300000091 [00:48:39]line РНМ: 0000000000091685 [00:48:39]line Версия ККМ: 001 [00:48:39]line ФМ: 0000000000871839 [00:48:39]line ФД: 227741 [00:48:39]line ФПД: 200445532229029 [00:48:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T004840&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227741&fm=200445532229029&tin=02508201610067®Number=0000000000091685&sum=35000 [00:48:40]written 0, free lines is 4095 [00:48:40]OFD Sender: Processing packet 227741 [packets to send 38, broken 37] [00:48:40]ProducePacketName [00:48:40]name=ofd_packets/00227741 [00:48:40]OFD Sender: To server: pG, [00:48:40]CommunicateWithHost lk.salyk.kg:30040 [00:48:40]ConnectInit lk.salyk.kg [00:48:40]Connected sock=11 [00:48:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 E3 4A 07 01 E1 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 E8 A4 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9D 79 03 00 35 04 06 00 B6 4D DC BE CD A5 31 7D 5D A1 F2 75 25 0A [00:48:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 BC 52 47 00 9B AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9D 79 03 00 F4 03 04 00 E5 4F 15 67 B6 04 01 00 00 AC FB 78 08 05 AC DE 38 [00:48:40]CommunicateWithHost err = 0 [00:48:40]CheckOFDResponse [00:48:40]1017 (14) - 77093643461234 [00:48:40]1041 (16) - 0000000000871839 [00:48:40]1040 (4) - 227741 [00:48:40]1012 (4) - 20.10.2024 18:45 [00:48:40]1206 (1) - 0 [00:48:40]OFD Sender: Remove packet 227741 [00:48:40]ProducePacketName [00:48:40]name=ofd_packets/00227741 [00:48:40]NVStorageDeleteData [00:48:40]Write to MH i2c: 01 00 00 50 24 74 [00:48:40]Write i2c OK [00:48:40]MH_I2C_Read... [00:48:40]Read from MH i2c: 01 [00:48:40]MH_I2C_Read... [00:48:40]Read from MH i2c: 01 07 00 [00:48:40]MH_I2C_Read... [00:48:40]Read from MH i2c: 01 07 00 50 24 00 00 00 00 00 A0 0C 27 [00:48:40]RasterBufferAndPrint [00:48:40]line [00:48:40]line [00:48:40]line [00:48:40]line [00:48:40]line [00:48:40]written 0, free lines is 3236 [00:48:40]MH_Cut [00:48:40]Write to MH i2c: D1 01 00 57 24 01 4D [00:48:40]Write i2c OK [00:48:40]MH_I2C_Read... [00:48:40]Read from MH i2c: D1 [00:48:40]MH_I2C_Read... [00:48:40]Read from MH i2c: D1 01 00 [00:48:40]MH_I2C_Read... [00:48:40]Read from MH i2c: D1 01 00 57 24 00 4C [00:48:40]Write to MH i2c: 01 00 00 58 24 7C [00:48:40]Write i2c OK [00:48:40]MH_I2C_Read... [00:48:40]OFD Sender: No OFD packet to send [00:48:41]*** Cut start [00:48:41]*** Partial cut [00:48:41]*** CUTSNS_PIN = 1 [00:48:41]*** CUTSNS_PIN = 0 [00:48:41]*** Brake cut motor [00:48:42]Read from MH i2c: 01 [00:48:42]MH_I2C_Read... [00:48:42]*** Stop cut motor [00:48:42]*** Cut end [00:48:42]Read from MH i2c: 01 07 00 [00:48:42]MH_I2C_Read... [00:48:42]Read from MH i2c: 01 07 00 58 24 00 00 00 00 00 FF 0F 91 [00:48:42]process_action close_receipt done [00:48:42]requested_data is exist [00:48:42]produce_requested_data [00:48:42]requested_item fm.sn is exist - process it [00:48:42]wFMCommunicate request_size=4 [00:48:42]MH_SAM_APDU [00:48:42]CAPDU: 80 11 00 00 [00:48:42]Write to MH i2c: E2 08 00 59 24 80 11 00 00 00 00 00 00 F7 [00:48:42]Write i2c OK [00:48:42]MH_I2C_Read... [00:48:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:48:42]Read from MH i2c: E2 [00:48:42]MH_I2C_Read... [00:48:42]Read from MH i2c: E2 17 00 [00:48:42]MH_I2C_Read... [00:48:42]Read from MH i2c: E2 17 00 59 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 4E [00:48:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [00:48:42]wFMCommunicate OK [00:48:42]requested_item fd.num is exist - process it [00:48:42]SAM_PROTO_GetFieldsCounters [00:48:42]wFMCommunicate request_size=4 [00:48:42]MH_SAM_APDU [00:48:42]CAPDU: 80 13 00 00 [00:48:42]Write to MH i2c: E2 08 00 5A 24 80 13 00 00 00 00 00 00 FA [00:48:42]Write i2c OK [00:48:42]MH_I2C_Read... [00:48:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:48:42]Read from MH i2c: E2 [00:48:42]MH_I2C_Read... [00:48:42]Read from MH i2c: E2 62 00 [00:48:42]MH_I2C_Read... [00:48:42]Read from MH i2c: E2 62 00 5A 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 9D 79 03 00 0E 04 04 00 16 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 72 [00:48: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 9D 79 03 00 0E 04 04 00 16 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 [00:48:42]wFMCommunicate OK [00:48:42]SAM_PROTO_GetFieldsCounters done [00:48:42]requested_item shift.num is exist - process it [00:48:42]requested_item shift.opened is exist - process it [00:48:42]req_shift_opened [00:48:42]FM_GetShiftState [00:48:42]SAM_PROTO_GetShiftState [00:48:42]wFMCommunicate request_size=4 [00:48:42]MH_SAM_APDU [00:48:42]CAPDU: 80 13 01 00 [00:48:42]Write to MH i2c: E2 08 00 5B 24 80 13 01 00 00 00 00 00 FC [00:48:42]Write i2c OK [00:48:42]MH_I2C_Read... [00:48:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:48:42]Read from MH i2c: E2 [00:48:42]MH_I2C_Read... [00:48:42]Read from MH i2c: E2 0E 00 [00:48:42]MH_I2C_Read... [00:48:42]Read from MH i2c: E2 0E 00 5B 24 00 09 00 01 F4 9B 15 67 00 00 00 00 90 00 13 [00:48:42]RAPDU: 09 00 01 F4 9B 15 67 00 00 00 00 90 00 [00:48:42]wFMCommunicate OK [00:48:42]SAM_PROTO_GetShiftState done [00:48:42]FM_GetShiftState done [00:48:42]req_shift_opened done [00:48:42]requested_item shift.open_date is exist - process it [00:48:42]req_shift_open_date [00:48:42]req_shift_open_date done [00:48:42]produce_requested_data done [00:48:42]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227741,"shift.num":534,"shift.opened":1,"shift.open_date":1729469428} [00:48:42]process_action_free close_receipt [00:48:42]json_value_free [00:48:42]json_value_free done [00:48:42]process_json_proto returns [00:48:42]Send response to host [00:48:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227741,"shift.num":534,"shift.opened":1,"shift.open_date":1729469428}}} [00:48:42]free response buf [00:48:42]execute_script done [00:48:42]execute_script returns [00:48:42]free content buf [00:48:42]Sock 7.Close socket [00:48:42]Sock 7.Thread stoped [00:48:45]OFD Sender: No OFD packet to send [00:48:50]OFD Sender: No OFD packet to send [00:48:55]OFD Sender: No OFD packet to send [00:49:00]OFD Sender: No OFD packet to send [00:49:04]accept exits with 9 [00:49:04]New connection [00:49:04]New thread 3066809700 created [00:49:04]Thread 3066666340 joined [00:49:04]Waiting for new connection... [00:49:04] Sock 9.Parse request [00:49:04]Sock 9.Check first char [00:49:04]Sock 9.First char is OK [00:49:04]request: POST /json_proto HTTP/1.0 [00:49:04]Method: POST [00:49:04]URL: /json_proto [00:49:04]Method is POST - this is cgi request [00:49:04]url: /json_proto [00:49:04]query_string will be loaded in cgi processing [00:49:04]execute_cgi json_proto POST (null) [00:49:04]execute_cgi path=json_proto method=POST [00:49:04]POST find Content-Length [00:49:04]Host: 172.17.44.195:8080 [00:49:04]Content-Length: 680 [00:49:04]Content-Type: application/json [00:49:04] [00:49:04]POST finish read [00:49:04]Found Content-Length = 680 [00:49:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963412", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:49:04]execute_script... [00:49: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)1963412", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:49:04]POST & json_proto [00:49:04]process_json_proto [00:49:04]json parsed OK: [00:49:04]protocol is kg_v1.0 [00:49:04]action value=close_receipt [00:49:04]process_action close_receipt [00:49:04]cmd_close_receipt [00:49:04]MH_GetDate [00:49:04]Write to MH i2c: F0 00 00 5C 24 6F [00:49:04]Write i2c OK [00:49:04]MH_I2C_Read... [00:49:04]Read from MH i2c: F0 [00:49:04]MH_I2C_Read... [00:49:04]Read from MH i2c: F0 09 00 [00:49:04]MH_I2C_Read... [00:49:04]Read from MH i2c: F0 09 00 5C 24 00 02 A5 15 67 82 C9 CF 66 1B [00:49:04]GetLastDocTimeStamp 1729471720 [00:49:04]current date 1729471746 [00:49:04]FM_GetShiftState [00:49:04]SAM_PROTO_GetShiftState [00:49:04]wFMCommunicate request_size=4 [00:49:04]MH_SAM_APDU [00:49:04]CAPDU: 80 13 01 00 [00:49:04]Write to MH i2c: E2 08 00 5D 24 80 13 01 00 00 00 00 00 FE [00:49:04]Write i2c OK [00:49:04]MH_I2C_Read... [00:49:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:49:04]Read from MH i2c: E2 [00:49:04]MH_I2C_Read... [00:49:04]Read from MH i2c: E2 0E 00 [00:49:04]MH_I2C_Read... [00:49:04]Read from MH i2c: E2 0E 00 5D 24 00 09 00 01 F4 9B 15 67 00 00 00 00 90 00 15 [00:49:04]RAPDU: 09 00 01 F4 9B 15 67 00 00 00 00 90 00 [00:49:04]wFMCommunicate OK [00:49:04]SAM_PROTO_GetShiftState done [00:49:04]FM_GetShiftState done [00:49:04]opened in 1729469428 [00:49:04]opened+sec_in_day 1729555828 [00:49:04]quantity*price = 300075 [00:49:04]sum+1 = 300077 [00:49:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 11 21.10.2024 00:49 Смена: 534 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227742 ФПД: 225250908429149 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T004906&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227742&fm=225250908429149&tin=02508201610067®Number=0000000000091685&sum=300000 [00:49:05]StoreToDocumentArchive [00:49:05]shift 534 fd 227742 [00:49:05]save to /storage/0534/doc_00227742 [00:49:05]save last doc name /storage/0534/doc_00227742 to /storage/kkm_last_doc_name [00:49:05]save OK [00:49:05]Clear old archive folders... [00:49:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:49:05]tlvbuf is 00D0C580 [00:49:05]SAM_PROTO_ClearQueue [00:49:05]wFMCommunicate request_size=4 [00:49:05]MH_SAM_APDU [00:49:05]CAPDU: 80 09 00 00 [00:49:05]Write to MH i2c: E2 08 00 6A 24 80 09 00 00 00 00 00 00 00 [00:49:05]Write i2c OK [00:49:05]MH_I2C_Read... [00:49:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:49:05]Read from MH i2c: E2 [00:49:05]MH_I2C_Read... [00:49:05]Read from MH i2c: E2 03 00 [00:49:05]MH_I2C_Read... [00:49:05]Read from MH i2c: E2 03 00 6A 24 00 90 00 02 [00:49:05]RAPDU: 90 00 [00:49:05]wFMCommunicate OK [00:49:05]SAM_PROTO_ClearQueue done [00:49:05]KKMCreateOFDPacket [00:49:05]OFDProtocolAddRootSTLVToBuf [00:49:05]FM_MakeSignedData [00:49:05]FM_MakeSignedData [00:49:05]SAM_PROTO_SignData [00:49:05]wFMCommunicate request_size=4 [00:49:05]MH_SAM_APDU [00:49:05]CAPDU: 80 0D 01 02 [00:49:05]Write to MH i2c: E2 08 00 6B 24 80 0D 01 02 00 00 00 00 08 [00:49:05]Write i2c OK [00:49:05]MH_I2C_Read... [00:49:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:49:05]Read from MH i2c: E2 [00:49:05]MH_I2C_Read... [00:49:05]Read from MH i2c: E2 03 00 [00:49:05]MH_I2C_Read... [00:49:05]Read from MH i2c: E2 03 00 6B 24 00 90 00 03 [00:49:05]RAPDU: 90 00 [00:49:05]wFMCommunicate OK [00:49:05]wFMCommunicate request_size=255 [00:49:05]MH_SAM_APDU [00:49: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 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 02 A5 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9E 79 03 00 35 04 06 00 CC DD 50 61 [00:49:05]Write to MH i2c: E2 02 01 6C 24 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 02 A5 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9E 79 03 00 35 04 06 00 CC DD 50 61 00 00 86 [00:49:05]Write i2c OK [00:49:05]MH_I2C_Read... [00:49:05]OFD Sender: No OFD packet to send [00:49:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:49:06]Read from MH i2c: E2 [00:49:06]MH_I2C_Read... [00:49:06]Read from MH i2c: E2 03 00 [00:49:06]MH_I2C_Read... [00:49:06]Read from MH i2c: E2 03 00 6C 24 00 90 00 04 [00:49:06]RAPDU: 90 00 [00:49:06]wFMCommunicate OK [00:49:06]wFMCommunicate request_size=7 [00:49:06]MH_SAM_APDU [00:49:06]CAPDU: 80 0D 02 02 02 DB 5D [00:49:06]Write to MH i2c: E2 0A 00 6D 24 80 0D 02 02 02 00 DB 5D 00 00 47 [00:49:06]Write i2c OK [00:49:06]MH_I2C_Read... [00:49:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:49:06]Read from MH i2c: E2 [00:49:06]MH_I2C_Read... [00:49:06]Read from MH i2c: E2 03 00 [00:49:06]MH_I2C_Read... [00:49:06]Read from MH i2c: E2 03 00 6D 24 00 90 00 05 [00:49:06]RAPDU: 90 00 [00:49:06]wFMCommunicate OK [00:49:06]wFMCommunicate request_size=4 [00:49:06]MH_SAM_APDU [00:49:06]CAPDU: 80 0D 03 02 [00:49:06]Write to MH i2c: E2 08 00 6E 24 80 0D 03 02 00 00 00 00 0D [00:49:06]Write i2c OK [00:49:06]MH_I2C_Read... [00:49:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:49:06]Read from MH i2c: E2 [00:49:06]MH_I2C_Read... [00:49:06]Read from MH i2c: E2 0B 00 [00:49:06]MH_I2C_Read... [00:49:06]Read from MH i2c: E2 0B 00 6E 24 00 C6 21 14 7D 10 90 7D EC 90 00 8F [00:49:06]RAPDU: C6 21 14 7D 10 90 7D EC 90 00 [00:49:06]wFMCommunicate OK [00:49:06]SAM_PROTO_SignData done [00:49:06]FM_MakeSignedData done [00:49:06]CreateOFDProtocolMessage [00:49:06]wFMCommunicate request_size=4 [00:49:06]MH_SAM_APDU [00:49:06]CAPDU: 80 11 00 00 [00:49:06]Write to MH i2c: E2 08 00 6F 24 80 11 00 00 00 00 00 00 0D [00:49:06]Write i2c OK [00:49:06]MH_I2C_Read... [00:49:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:49:06]Read from MH i2c: E2 [00:49:06]MH_I2C_Read... [00:49:06]Read from MH i2c: E2 17 00 [00:49:06]MH_I2C_Read... [00:49:06]Read from MH i2c: E2 17 00 6F 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 64 [00:49:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [00:49:06]wFMCommunicate OK [00:49:06]CreateOFDProtocolMessage done [00:49:06]OFDSenderStorePacket 227742 [00:49:06]StoreOFDPacket docnum=227742 [00:49:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 A3 8B 04 01 0F A9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 02 A5 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9E 79 03 00 35 04 06 00 CC DD 50 61 DB 5D C6 21 14 7D 10 90 7D EC [00:49:06]CheckFolder [00:49:06]dirname=/storage/ofd_packets [00:49:06]CheckFolder done [00:49:06]ProducePacketName [00:49:06]name=ofd_packets/00227742 [00:49:06]NVStorageSaveData ofd_packets/00227742 [00:49:06]File name is /storage/ofd_packets/00227742 [00:49:06]Write 298 bytes [00:49:06]NVStorageSaveData done [00:49:06]OFDSenderStorePacket done [00:49:06]KKMCreateOFDPacket done [00:49:06]NVStorageSaveData kkm_last_timestamp [00:49:06]File name is /storage/kkm_last_timestamp [00:49:06]Write 4 bytes [00:49:06]NVStorageSaveData done [00:49:06]ExternCall_PrintAddStr [00:49:06]wPrintStart [00:49:06]Write to MH i2c: 01 00 00 70 24 94 [00:49:06]Write i2c OK [00:49:06]MH_I2C_Read... [00:49:06]Read from MH i2c: 01 [00:49:06]MH_I2C_Read... [00:49:06]Read from MH i2c: 01 07 00 [00:49:06]MH_I2C_Read... [00:49:06]Read from MH i2c: 01 07 00 70 24 00 00 00 00 00 FF 0F A9 [00:49:06]RasterBufferAndPrint [00:49:06]line Счет N : (1)1963412 [00:49:06]line ИНН: 02508201610067 [00:49:06]line Контрольно-Кассовый Чек [00:49:06]line ПРОДАЖА [00:49:06]line ТРК (МРК, ГНК) : 21 [00:49:06]line Товар: 2710194210 [00:49:06]line ДТ-К-5 [00:49:06]line 39.380 * 76.20 [00:49:06]line = 3000.76 [00:49:06]line НДС 12% НСП 1% [00:49:06]line > о реализуемом товаре [00:49:06]line ОКРУГЛЕНИЕ: -0.76 [00:49:06]line ИТОГО: 3000.00 [00:49:06]line Внесено: 3000.00 [00:49:06]line СДАЧА: 0.00 [00:49:06]line НСП 1% : 26.55 [00:49:06]line НДС 12% : 318.66 [00:49:06]line Наличными: 3000.00 [00:49:06]line Безнал.: 0.00 [00:49:06]line Место: АЗС № 133 "Партнер Нефть" [00:49:06]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [00:49:06]line СНО: Общий режим [00:49:06]line Чек 11 21.10.2024 00:49 [00:49:06]line Смена: 534 ФФД: 1.0 [00:49:06]line ЗНМ: 0300000091 [00:49:06]line РНМ: 0000000000091685 [00:49:06]line Версия ККМ: 001 [00:49:06]line ФМ: 0000000000871839 [00:49:06]line ФД: 227742 [00:49:06]line ФПД: 225250908429149 [00:49:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T004906&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227742&fm=225250908429149&tin=02508201610067®Number=0000000000091685&sum=300000 [00:49:06]OFD Sender: Processing packet 227742 [packets to send 38, broken 37] [00:49:06]ProducePacketName [00:49:06]name=ofd_packets/00227742 [00:49:06]OFD Sender: To server: pG, [00:49:06]CommunicateWithHost lk.salyk.kg:30040 [00:49:06]ConnectInit lk.salyk.kg [00:49:06]written 0, free lines is 4095 [00:49:06]Connected sock=11 [00:49: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 33 39 0C 01 00 00 A3 8B 04 01 0F A9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 02 A5 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9E 79 03 00 35 04 06 00 CC DD 50 61 DB 5D C6 21 14 7D 10 90 7D EC [00:49: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 33 39 4F 00 00 00 84 69 47 00 51 EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9E 79 03 00 F4 03 04 00 FF 4F 15 67 B6 04 01 00 00 2D FA A9 28 91 82 FB 98 [00:49:06]CommunicateWithHost err = 0 [00:49:06]CheckOFDResponse [00:49:06]1017 (14) - 77093643461234 [00:49:06]1041 (16) - 0000000000871839 [00:49:06]1040 (4) - 227742 [00:49:06]1012 (4) - 20.10.2024 18:46 [00:49:06]1206 (1) - 0 [00:49:06]OFD Sender: Remove packet 227742 [00:49:06]ProducePacketName [00:49:06]name=ofd_packets/00227742 [00:49:06]NVStorageDeleteData [00:49:07]Write to MH i2c: 01 00 00 9A 24 BE [00:49:07]Write i2c OK [00:49:07]MH_I2C_Read... [00:49:07]Read from MH i2c: 01 [00:49:07]MH_I2C_Read... [00:49:07]Read from MH i2c: 01 07 00 [00:49:07]MH_I2C_Read... [00:49:07]Read from MH i2c: 01 07 00 9A 24 00 00 00 00 00 A9 0C 7A [00:49:07]RasterBufferAndPrint [00:49:07]line [00:49:07]line [00:49:07]line [00:49:07]line [00:49:07]line [00:49:07]written 0, free lines is 3245 [00:49:07]MH_Cut [00:49:07]Write to MH i2c: D1 01 00 A1 24 01 97 [00:49:07]Write i2c OK [00:49:07]MH_I2C_Read... [00:49:07]Read from MH i2c: D1 [00:49:07]MH_I2C_Read... [00:49:07]Read from MH i2c: D1 01 00 [00:49:07]MH_I2C_Read... [00:49:07]Read from MH i2c: D1 01 00 A1 24 00 96 [00:49:07]Write to MH i2c: 01 00 00 A2 24 C6 [00:49:07]Write i2c OK [00:49:07]MH_I2C_Read... [00:49:07]OFD Sender: No OFD packet to send [00:49:07]*** Cut start [00:49:07]*** Partial cut [00:49:07]*** CUTSNS_PIN = 1 [00:49:08]*** CUTSNS_PIN = 0 [00:49:08]*** Brake cut motor [00:49:08]Read from MH i2c: 01 [00:49:08]MH_I2C_Read... [00:49:08]*** Stop cut motor [00:49:08]*** Cut end [00:49:08]Read from MH i2c: 01 07 00 [00:49:08]MH_I2C_Read... [00:49:08]Read from MH i2c: 01 07 00 A2 24 00 00 00 00 00 FF 0F DB [00:49:08]process_action close_receipt done [00:49:08]requested_data is exist [00:49:08]produce_requested_data [00:49:08]requested_item fm.sn is exist - process it [00:49:08]wFMCommunicate request_size=4 [00:49:08]MH_SAM_APDU [00:49:08]CAPDU: 80 11 00 00 [00:49:08]Write to MH i2c: E2 08 00 A3 24 80 11 00 00 00 00 00 00 41 [00:49:08]Write i2c OK [00:49:08]MH_I2C_Read... [00:49:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:49:08]Read from MH i2c: E2 [00:49:08]MH_I2C_Read... [00:49:08]Read from MH i2c: E2 17 00 [00:49:08]MH_I2C_Read... [00:49:08]Read from MH i2c: E2 17 00 A3 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 98 [00:49:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [00:49:08]wFMCommunicate OK [00:49:08]requested_item fd.num is exist - process it [00:49:08]SAM_PROTO_GetFieldsCounters [00:49:08]wFMCommunicate request_size=4 [00:49:08]MH_SAM_APDU [00:49:08]CAPDU: 80 13 00 00 [00:49:08]Write to MH i2c: E2 08 00 A4 24 80 13 00 00 00 00 00 00 44 [00:49:08]Write i2c OK [00:49:08]MH_I2C_Read... [00:49:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:49:08]Read from MH i2c: E2 [00:49:08]MH_I2C_Read... [00:49:08]Read from MH i2c: E2 62 00 [00:49:08]MH_I2C_Read... [00:49:08]Read from MH i2c: E2 62 00 A4 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 9E 79 03 00 0E 04 04 00 16 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 C0 [00:49: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 9E 79 03 00 0E 04 04 00 16 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 [00:49:08]wFMCommunicate OK [00:49:08]SAM_PROTO_GetFieldsCounters done [00:49:08]requested_item shift.num is exist - process it [00:49:08]requested_item shift.opened is exist - process it [00:49:08]req_shift_opened [00:49:08]FM_GetShiftState [00:49:08]SAM_PROTO_GetShiftState [00:49:08]wFMCommunicate request_size=4 [00:49:08]MH_SAM_APDU [00:49:08]CAPDU: 80 13 01 00 [00:49:08]Write to MH i2c: E2 08 00 A5 24 80 13 01 00 00 00 00 00 46 [00:49:08]Write i2c OK [00:49:08]MH_I2C_Read... [00:49:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:49:08]Read from MH i2c: E2 [00:49:08]MH_I2C_Read... [00:49:08]Read from MH i2c: E2 0E 00 [00:49:08]MH_I2C_Read... [00:49:08]Read from MH i2c: E2 0E 00 A5 24 00 09 00 01 F4 9B 15 67 00 00 00 00 90 00 5D [00:49:08]RAPDU: 09 00 01 F4 9B 15 67 00 00 00 00 90 00 [00:49:08]wFMCommunicate OK [00:49:08]SAM_PROTO_GetShiftState done [00:49:08]FM_GetShiftState done [00:49:08]req_shift_opened done [00:49:08]requested_item shift.open_date is exist - process it [00:49:08]req_shift_open_date [00:49:08]req_shift_open_date done [00:49:08]produce_requested_data done [00:49:08]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227742,"shift.num":534,"shift.opened":1,"shift.open_date":1729469428} [00:49:08]process_action_free close_receipt [00:49:08]json_value_free [00:49:08]json_value_free done [00:49:08]process_json_proto returns [00:49:08]Send response to host [00:49:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227742,"shift.num":534,"shift.opened":1,"shift.open_date":1729469428}}} [00:49:08]free response buf [00:49:08]execute_script done [00:49:08]execute_script returns [00:49:08]free content buf [00:49:08]Sock 9.Close socket [00:49:08]Sock 9.Thread stoped [00:49:12]OFD Sender: No OFD packet to send [00:49:17]OFD Sender: No OFD packet to send [00:49:22]OFD Sender: No OFD packet to send [00:49:27]OFD Sender: No OFD packet to send [00:49:32]OFD Sender: No OFD packet to send [00:49:37]OFD Sender: No OFD packet to send [00:49:42]OFD Sender: No OFD packet to send [00:49:47]OFD Sender: No OFD packet to send [00:49:52]OFD Sender: No OFD packet to send [00:49:57]OFD Sender: No OFD packet to send [00:50:02]OFD Sender: No OFD packet to send [00:50:07]OFD Sender: No OFD packet to send [00:50:12]OFD Sender: No OFD packet to send [00:50:14]accept exits with 7 [00:50:14]New connection [00:50:14]New thread 3066666340 created [00:50:14]Thread 3066809700 joined [00:50:14]Waiting for new connection... [00:50:14] Sock 7.Parse request [00:50:14]Sock 7.Check first char [00:50:14]Sock 7.First char is OK [00:50:14]request: POST /json_proto HTTP/1.0 [00:50:14]Method: POST [00:50:14]URL: /json_proto [00:50:14]Method is POST - this is cgi request [00:50:14]url: /json_proto [00:50:14]query_string will be loaded in cgi processing [00:50:14]execute_cgi json_proto POST (null) [00:50:14]execute_cgi path=json_proto method=POST [00:50:14]POST find Content-Length [00:50:14]Host: 172.17.44.195:8080 [00:50:14]Content-Length: 680 [00:50:14]Content-Type: application/json [00:50:14] [00:50:14]POST finish read [00:50:14]Found Content-Length = 680 [00:50:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963411", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 27.560, "sum" : 2100.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2100.00, "total" : 2100.00, "payments": [ { "type": 0, "sum" : 2100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:50:14]execute_script... [00:50:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963411", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 27.560, "sum" : 2100.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2100.00, "total" : 2100.00, "payments": [ { "type": 0, "sum" : 2100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:50:14]POST & json_proto [00:50:14]process_json_proto [00:50:14]json parsed OK: [00:50:14]protocol is kg_v1.0 [00:50:14]action value=close_receipt [00:50:14]process_action close_receipt [00:50:14]cmd_close_receipt [00:50:14]MH_GetDate [00:50:14]Write to MH i2c: F0 00 00 A6 24 B9 [00:50:14]Write i2c OK [00:50:14]MH_I2C_Read... [00:50:14]Read from MH i2c: F0 [00:50:14]MH_I2C_Read... [00:50:14]Read from MH i2c: F0 09 00 [00:50:14]MH_I2C_Read... [00:50:14]Read from MH i2c: F0 09 00 A6 24 00 48 A5 15 67 82 C9 CF 66 AB [00:50:14]GetLastDocTimeStamp 1729471746 [00:50:14]current date 1729471816 [00:50:14]FM_GetShiftState [00:50:14]SAM_PROTO_GetShiftState [00:50:14]wFMCommunicate request_size=4 [00:50:14]MH_SAM_APDU [00:50:14]CAPDU: 80 13 01 00 [00:50:14]Write to MH i2c: E2 08 00 A7 24 80 13 01 00 00 00 00 00 48 [00:50:14]Write i2c OK [00:50:14]MH_I2C_Read... [00:50:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:50:14]Read from MH i2c: E2 [00:50:14]MH_I2C_Read... [00:50:14]Read from MH i2c: E2 0E 00 [00:50:14]MH_I2C_Read... [00:50:14]Read from MH i2c: E2 0E 00 A7 24 00 09 00 01 F4 9B 15 67 00 00 00 00 90 00 5F [00:50:14]RAPDU: 09 00 01 F4 9B 15 67 00 00 00 00 90 00 [00:50:14]wFMCommunicate OK [00:50:14]SAM_PROTO_GetShiftState done [00:50:14]FM_GetShiftState done [00:50:14]opened in 1729469428 [00:50:14]opened+sec_in_day 1729555828 [00:50:14]quantity*price = 210007 [00:50:14]sum+1 = 210008 [00:50:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 2100.00 Внесено: 2100.00 СДАЧА: 0.00 НСП 1% : 18.58 НДС 12% : 223.02 Наличными: 2100.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 12 21.10.2024 00:50 Смена: 534 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227743 ФПД: 130293721169522 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T005016&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227743&fm=130293721169522&tin=02508201610067®Number=0000000000091685&sum=210000 [00:50:15]StoreToDocumentArchive [00:50:15]shift 534 fd 227743 [00:50:15]save to /storage/0534/doc_00227743 [00:50:15]save last doc name /storage/0534/doc_00227743 to /storage/kkm_last_doc_name [00:50:15]save OK [00:50:15]Clear old archive folders... [00:50:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:50:15]tlvbuf is 00C7CA80 [00:50:15]SAM_PROTO_ClearQueue [00:50:15]wFMCommunicate request_size=4 [00:50:15]MH_SAM_APDU [00:50:15]CAPDU: 80 09 00 00 [00:50:15]Write to MH i2c: E2 08 00 B4 24 80 09 00 00 00 00 00 00 4A [00:50:15]Write i2c OK [00:50:15]MH_I2C_Read... [00:50:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:50:15]Read from MH i2c: E2 [00:50:15]MH_I2C_Read... [00:50:15]Read from MH i2c: E2 03 00 [00:50:15]MH_I2C_Read... [00:50:15]Read from MH i2c: E2 03 00 B4 24 00 90 00 4C [00:50:15]RAPDU: 90 00 [00:50:15]wFMCommunicate OK [00:50:15]SAM_PROTO_ClearQueue done [00:50:15]KKMCreateOFDPacket [00:50:15]OFDProtocolAddRootSTLVToBuf [00:50:15]FM_MakeSignedData [00:50:15]FM_MakeSignedData [00:50:15]SAM_PROTO_SignData [00:50:15]wFMCommunicate request_size=4 [00:50:15]MH_SAM_APDU [00:50:15]CAPDU: 80 0D 01 02 [00:50:15]Write to MH i2c: E2 08 00 B5 24 80 0D 01 02 00 00 00 00 52 [00:50:15]Write i2c OK [00:50:15]MH_I2C_Read... [00:50:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:50:15]Read from MH i2c: E2 [00:50:15]MH_I2C_Read... [00:50:15]Read from MH i2c: E2 03 00 [00:50:15]MH_I2C_Read... [00:50:15]Read from MH i2c: E2 03 00 B5 24 00 90 00 4D [00:50:15]RAPDU: 90 00 [00:50:15]wFMCommunicate OK [00:50:15]wFMCommunicate request_size=255 [00:50:15]MH_SAM_APDU [00:50:15]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A8 6B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 57 34 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 34 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 57 00 00 00 00 07 04 06 00 50 34 03 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 48 A5 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9F 79 03 00 35 04 06 00 76 80 5E F7 [00:50:15]Write to MH i2c: E2 02 01 B6 24 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A8 6B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 57 34 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 34 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 57 00 00 00 00 07 04 06 00 50 34 03 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 48 A5 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9F 79 03 00 35 04 06 00 76 80 5E F7 00 00 F8 [00:50:15]Write i2c OK [00:50:15]MH_I2C_Read... [00:50:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:50:15]Read from MH i2c: E2 [00:50:15]MH_I2C_Read... [00:50:15]Read from MH i2c: E2 03 00 [00:50:15]MH_I2C_Read... [00:50:15]Read from MH i2c: E2 03 00 B6 24 00 90 00 4E [00:50:15]RAPDU: 90 00 [00:50:15]wFMCommunicate OK [00:50:15]wFMCommunicate request_size=7 [00:50:15]MH_SAM_APDU [00:50:15]CAPDU: 80 0D 02 02 02 7E 72 [00:50:15]Write to MH i2c: E2 0A 00 B7 24 80 0D 02 02 02 00 7E 72 00 00 49 [00:50:16]Write i2c OK [00:50:16]MH_I2C_Read... [00:50:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:50:16]Read from MH i2c: E2 [00:50:16]MH_I2C_Read... [00:50:16]Read from MH i2c: E2 03 00 [00:50:16]MH_I2C_Read... [00:50:16]Read from MH i2c: E2 03 00 B7 24 00 90 00 4F [00:50:16]RAPDU: 90 00 [00:50:16]wFMCommunicate OK [00:50:16]wFMCommunicate request_size=4 [00:50:16]MH_SAM_APDU [00:50:16]CAPDU: 80 0D 03 02 [00:50:16]Write to MH i2c: E2 08 00 B8 24 80 0D 03 02 00 00 00 00 57 [00:50:16]Write i2c OK [00:50:16]MH_I2C_Read... [00:50:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:50:16]Read from MH i2c: E2 [00:50:16]MH_I2C_Read... [00:50:16]Read from MH i2c: E2 0B 00 [00:50:16]MH_I2C_Read... [00:50:16]Read from MH i2c: E2 0B 00 B8 24 00 A0 3A 9F 71 80 9B E6 C9 90 00 0C [00:50:16]RAPDU: A0 3A 9F 71 80 9B E6 C9 90 00 [00:50:16]wFMCommunicate OK [00:50:16]SAM_PROTO_SignData done [00:50:16]FM_MakeSignedData done [00:50:16]CreateOFDProtocolMessage [00:50:16]wFMCommunicate request_size=4 [00:50:16]MH_SAM_APDU [00:50:16]CAPDU: 80 11 00 00 [00:50:16]Write to MH i2c: E2 08 00 B9 24 80 11 00 00 00 00 00 00 57 [00:50:16]Write i2c OK [00:50:16]MH_I2C_Read... [00:50:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:50:16]Read from MH i2c: E2 [00:50:16]MH_I2C_Read... [00:50:16]Read from MH i2c: E2 17 00 [00:50:16]MH_I2C_Read... [00:50:16]Read from MH i2c: E2 17 00 B9 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 AE [00:50:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [00:50:16]wFMCommunicate OK [00:50:16]CreateOFDProtocolMessage done [00:50:16]OFDSenderStorePacket 227743 [00:50:16]StoreOFDPacket docnum=227743 [00:50:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 D0 5B 04 01 0D 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 A8 6B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 57 34 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 34 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 57 00 00 00 00 07 04 06 00 50 34 03 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 48 A5 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9F 79 03 00 35 04 06 00 76 80 5E F7 7E 72 A0 3A 9F 71 80 9B E6 C9 [00:50:16]CheckFolder [00:50:16]dirname=/storage/ofd_packets [00:50:16]CheckFolder done [00:50:16]ProducePacketName [00:50:16]name=ofd_packets/00227743 [00:50:16]NVStorageSaveData ofd_packets/00227743 [00:50:16]File name is /storage/ofd_packets/00227743 [00:50:16]Write 298 bytes [00:50:16]NVStorageSaveData done [00:50:16]OFDSenderStorePacket done [00:50:16]KKMCreateOFDPacket done [00:50:16]NVStorageSaveData kkm_last_timestamp [00:50:16]File name is /storage/kkm_last_timestamp [00:50:16]Write 4 bytes [00:50:16]NVStorageSaveData done [00:50:16]ExternCall_PrintAddStr [00:50:16]wPrintStart [00:50:16]Write to MH i2c: 01 00 00 BA 24 DE [00:50:16]Write i2c OK [00:50:16]MH_I2C_Read... [00:50:16]Read from MH i2c: 01 [00:50:16]MH_I2C_Read... [00:50:16]Read from MH i2c: 01 07 00 [00:50:16]MH_I2C_Read... [00:50:16]Read from MH i2c: 01 07 00 BA 24 00 00 00 00 00 FF 0F F3 [00:50:16]RasterBufferAndPrint [00:50:16]line Счет N : (1)1963411 [00:50:16]line ИНН: 02508201610067 [00:50:16]line Контрольно-Кассовый Чек [00:50:16]line ПРОДАЖА [00:50:16]line ТРК (МРК, ГНК) : 41 [00:50:16]line Товар: 2710194210 [00:50:16]line ДТ-К-5 [00:50:16]line 27.560 * 76.20 [00:50:16]line = 2100.07 [00:50:16]line НДС 12% НСП 1% [00:50:16]line > о реализуемом товаре [00:50:16]line ОКРУГЛЕНИЕ: -0.07 [00:50:16]line ИТОГО: 2100.00 [00:50:16]line Внесено: 2100.00 [00:50:16]line СДАЧА: 0.00 [00:50:16]line НСП 1% : 18.58 [00:50:16]line НДС 12% : 223.02 [00:50:16]line Наличными: 2100.00 [00:50:16]line Безнал.: 0.00 [00:50:16]line Место: АЗС № 133 "Партнер Нефть" [00:50:16]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [00:50:16]line СНО: Общий режим [00:50:16]line Чек 12 21.10.2024 00:50 [00:50:16]line Смена: 534 ФФД: 1.0 [00:50:16]line ЗНМ: 0300000091 [00:50:16]line РНМ: 0000000000091685 [00:50:16]line Версия ККМ: 001 [00:50:16]line ФМ: 0000000000871839 [00:50:16]line ФД: 227743 [00:50:16]line ФПД: 130293721169522 [00:50:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T005016&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227743&fm=130293721169522&tin=02508201610067®Number=0000000000091685&sum=210000 [00:50:16]OFD Sender: Processing packet 227743 [packets to send 38, broken 37] [00:50:16]ProducePacketName [00:50:16]name=ofd_packets/00227743 [00:50:16]OFD Sender: To server: pG, [00:50:16]CommunicateWithHost lk.salyk.kg:30040 [00:50:16]ConnectInit lk.salyk.kg [00:50:16]written 0, free lines is 4095 [00:50:16]Connected sock=10 [00:50:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 D0 5B 04 01 0D 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 A8 6B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 57 34 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 34 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 57 00 00 00 00 07 04 06 00 50 34 03 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 48 A5 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 9F 79 03 00 35 04 06 00 76 80 5E F7 7E 72 A0 3A 9F 71 80 9B E6 C9 [00:50:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 FF C6 47 00 26 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 33 39 10 04 04 00 9F 79 03 00 F4 03 04 00 45 50 15 67 B6 04 01 00 00 3E 90 3F C8 CE C9 5D 33 [00:50:16]CommunicateWithHost err = 0 [00:50:16]CheckOFDResponse [00:50:16]1017 (14) - 77093643461234 [00:50:16]1041 (16) - 0000000000871839 [00:50:16]1040 (4) - 227743 [00:50:16]1012 (4) - 20.10.2024 18:47 [00:50:16]1206 (1) - 0 [00:50:16]OFD Sender: Remove packet 227743 [00:50:16]ProducePacketName [00:50:16]name=ofd_packets/00227743 [00:50:16]NVStorageDeleteData [00:50:16]Write to MH i2c: 01 00 00 E4 24 08 [00:50:16]Write i2c OK [00:50:16]MH_I2C_Read... [00:50:16]Read from MH i2c: 01 [00:50:16]MH_I2C_Read... [00:50:16]Read from MH i2c: 01 07 00 [00:50:16]MH_I2C_Read... [00:50:16]Read from MH i2c: 01 07 00 E4 24 00 00 00 00 00 B5 0C D0 [00:50:16]RasterBufferAndPrint [00:50:16]line [00:50:16]line [00:50:16]line [00:50:16]line [00:50:16]line [00:50:16]written 0, free lines is 3256 [00:50:16]MH_Cut [00:50:16]Write to MH i2c: D1 01 00 EB 24 01 E1 [00:50:16]Write i2c OK [00:50:16]MH_I2C_Read... [00:50:16]Read from MH i2c: D1 [00:50:16]MH_I2C_Read... [00:50:16]Read from MH i2c: D1 01 00 [00:50:16]MH_I2C_Read... [00:50:16]Read from MH i2c: D1 01 00 EB 24 00 E0 [00:50:16]Write to MH i2c: 01 00 00 EC 24 10 [00:50:16]Write i2c OK [00:50:16]MH_I2C_Read... [00:50:17]OFD Sender: No OFD packet to send [00:50:17]*** Cut start [00:50:17]*** Partial cut [00:50:17]*** CUTSNS_PIN = 1 [00:50:17]*** CUTSNS_PIN = 0 [00:50:18]*** Brake cut motor [00:50:18]Read from MH i2c: 01 [00:50:18]MH_I2C_Read... [00:50:18]*** Stop cut motor [00:50:18]*** Cut end [00:50:18]Read from MH i2c: 01 07 00 [00:50:18]MH_I2C_Read... [00:50:18]Read from MH i2c: 01 07 00 EC 24 00 00 00 00 00 FF 0F 25 [00:50:18]process_action close_receipt done [00:50:18]requested_data is exist [00:50:18]produce_requested_data [00:50:18]requested_item fm.sn is exist - process it [00:50:18]wFMCommunicate request_size=4 [00:50:18]MH_SAM_APDU [00:50:18]CAPDU: 80 11 00 00 [00:50:18]Write to MH i2c: E2 08 00 ED 24 80 11 00 00 00 00 00 00 8B [00:50:18]Write i2c OK [00:50:18]MH_I2C_Read... [00:50:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:50:18]Read from MH i2c: E2 [00:50:18]MH_I2C_Read... [00:50:18]Read from MH i2c: E2 17 00 [00:50:18]MH_I2C_Read... [00:50:18]Read from MH i2c: E2 17 00 ED 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 E2 [00:50:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [00:50:18]wFMCommunicate OK [00:50:18]requested_item fd.num is exist - process it [00:50:18]SAM_PROTO_GetFieldsCounters [00:50:18]wFMCommunicate request_size=4 [00:50:18]MH_SAM_APDU [00:50:18]CAPDU: 80 13 00 00 [00:50:18]Write to MH i2c: E2 08 00 EE 24 80 13 00 00 00 00 00 00 8E [00:50:18]Write i2c OK [00:50:18]MH_I2C_Read... [00:50:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:50:18]Read from MH i2c: E2 [00:50:18]MH_I2C_Read... [00:50:18]Read from MH i2c: E2 62 00 [00:50:18]MH_I2C_Read... [00:50:18]Read from MH i2c: E2 62 00 EE 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 9F 79 03 00 0E 04 04 00 16 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 0E [00:50:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 9F 79 03 00 0E 04 04 00 16 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 [00:50:18]wFMCommunicate OK [00:50:18]SAM_PROTO_GetFieldsCounters done [00:50:18]requested_item shift.num is exist - process it [00:50:18]requested_item shift.opened is exist - process it [00:50:18]req_shift_opened [00:50:18]FM_GetShiftState [00:50:18]SAM_PROTO_GetShiftState [00:50:18]wFMCommunicate request_size=4 [00:50:18]MH_SAM_APDU [00:50:18]CAPDU: 80 13 01 00 [00:50:18]Write to MH i2c: E2 08 00 EF 24 80 13 01 00 00 00 00 00 90 [00:50:18]Write i2c OK [00:50:18]MH_I2C_Read... [00:50:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:50:18]Read from MH i2c: E2 [00:50:18]MH_I2C_Read... [00:50:18]Read from MH i2c: E2 0E 00 [00:50:18]MH_I2C_Read... [00:50:18]Read from MH i2c: E2 0E 00 EF 24 00 09 00 01 F4 9B 15 67 00 00 00 00 90 00 A7 [00:50:18]RAPDU: 09 00 01 F4 9B 15 67 00 00 00 00 90 00 [00:50:18]wFMCommunicate OK [00:50:18]SAM_PROTO_GetShiftState done [00:50:18]FM_GetShiftState done [00:50:18]req_shift_opened done [00:50:18]requested_item shift.open_date is exist - process it [00:50:18]req_shift_open_date [00:50:18]req_shift_open_date done [00:50:18]produce_requested_data done [00:50:18]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227743,"shift.num":534,"shift.opened":1,"shift.open_date":1729469428} [00:50:18]process_action_free close_receipt [00:50:18]json_value_free [00:50:18]json_value_free done [00:50:18]process_json_proto returns [00:50:18]Send response to host [00:50:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227743,"shift.num":534,"shift.opened":1,"shift.open_date":1729469428}}} [00:50:18]free response buf [00:50:18]execute_script done [00:50:18]execute_script returns [00:50:18]free content buf [00:50:18]Sock 7.Close socket [00:50:18]Sock 7.Thread stoped [00:50:22]OFD Sender: No OFD packet to send [00:50:27]OFD Sender: No OFD packet to send [00:50:32]OFD Sender: No OFD packet to send [00:50:37]OFD Sender: No OFD packet to send [00:50:42]OFD Sender: No OFD packet to send [00:50:47]OFD Sender: No OFD packet to send [00:50:52]OFD Sender: No OFD packet to send [00:50:57]OFD Sender: No OFD packet to send [00:51:02]OFD Sender: No OFD packet to send [00:51:07]OFD Sender: No OFD packet to send [00:51:12]OFD Sender: No OFD packet to send [00:51:17]OFD Sender: No OFD packet to send [00:51:22]OFD Sender: No OFD packet to send [00:51:27]OFD Sender: No OFD packet to send [00:51:32]OFD Sender: No OFD packet to send [00:51:37]OFD Sender: No OFD packet to send [00:51:42]OFD Sender: No OFD packet to send [00:51:47]OFD Sender: No OFD packet to send [00:51:52]OFD Sender: No OFD packet to send [00:51:57]OFD Sender: No OFD packet to send [00:52:02]OFD Sender: No OFD packet to send [00:52:07]OFD Sender: No OFD packet to send [00:52:12]OFD Sender: No OFD packet to send [00:52:17]OFD Sender: No OFD packet to send [00:52:22]OFD Sender: No OFD packet to send [00:52:27]OFD Sender: No OFD packet to send [00:52:32]OFD Sender: No OFD packet to send [00:52:37]OFD Sender: No OFD packet to send [00:52:42]OFD Sender: No OFD packet to send [00:52:47]OFD Sender: No OFD packet to send [00:52:52]OFD Sender: No OFD packet to send [00:52:57]OFD Sender: No OFD packet to send [00:53:02]OFD Sender: No OFD packet to send [00:53:07]OFD Sender: No OFD packet to send [00:53:12]OFD Sender: No OFD packet to send [00:53:17]OFD Sender: No OFD packet to send [00:53:22]OFD Sender: No OFD packet to send [00:53:27]OFD Sender: No OFD packet to send [00:53:32]OFD Sender: No OFD packet to send [00:53:37]OFD Sender: No OFD packet to send [00:53:42]OFD Sender: No OFD packet to send [00:53:47]OFD Sender: No OFD packet to send [00:53:52]OFD Sender: No OFD packet to send [00:53:57]OFD Sender: No OFD packet to send [00:54:02]OFD Sender: No OFD packet to send [00:54:07]OFD Sender: No OFD packet to send [00:54:12]OFD Sender: No OFD packet to send [00:54:17]OFD Sender: No OFD packet to send [00:54:22]OFD Sender: No OFD packet to send [00:54:27]OFD Sender: No OFD packet to send [00:54:32]OFD Sender: No OFD packet to send [00:54:37]OFD Sender: No OFD packet to send [00:54:42]OFD Sender: No OFD packet to send [00:54:47]OFD Sender: No OFD packet to send [00:54:52]OFD Sender: No OFD packet to send [00:54:57]OFD Sender: No OFD packet to send [00:55:02]OFD Sender: No OFD packet to send [00:55:07]OFD Sender: No OFD packet to send [00:55:12]OFD Sender: No OFD packet to send [00:55:17]OFD Sender: No OFD packet to send [00:55:22]OFD Sender: No OFD packet to send [00:55:27]OFD Sender: No OFD packet to send [00:55:32]OFD Sender: No OFD packet to send [00:55:37]OFD Sender: No OFD packet to send [00:55:42]OFD Sender: No OFD packet to send [00:55:47]OFD Sender: No OFD packet to send [00:55:52]OFD Sender: No OFD packet to send [00:55:57]OFD Sender: No OFD packet to send [00:56:02]OFD Sender: No OFD packet to send [00:56:07]OFD Sender: No OFD packet to send [00:56:12]OFD Sender: No OFD packet to send [00:56:17]OFD Sender: No OFD packet to send [00:56:22]OFD Sender: No OFD packet to send [00:56:27]OFD Sender: No OFD packet to send [00:56:32]OFD Sender: No OFD packet to send [00:56:37]OFD Sender: No OFD packet to send [00:56:42]OFD Sender: No OFD packet to send [00:56:47]OFD Sender: No OFD packet to send [00:56:52]OFD Sender: No OFD packet to send [00:56:57]OFD Sender: No OFD packet to send [00:57:02]OFD Sender: No OFD packet to send [00:57:07]OFD Sender: No OFD packet to send [00:57:12]OFD Sender: No OFD packet to send [00:57:17]OFD Sender: No OFD packet to send [00:57:22]OFD Sender: No OFD packet to send [00:57:27]OFD Sender: No OFD packet to send [00:57:32]OFD Sender: No OFD packet to send [00:57:37]OFD Sender: No OFD packet to send [00:57:42]OFD Sender: No OFD packet to send [00:57:47]OFD Sender: No OFD packet to send [00:57:52]OFD Sender: No OFD packet to send [00:57:57]OFD Sender: No OFD packet to send [00:58:02]OFD Sender: No OFD packet to send [00:58:07]OFD Sender: No OFD packet to send [00:58:12]OFD Sender: No OFD packet to send [00:58:17]OFD Sender: No OFD packet to send [00:58:22]OFD Sender: No OFD packet to send [00:58:27]OFD Sender: No OFD packet to send [00:58:32]OFD Sender: No OFD packet to send [00:58:37]OFD Sender: No OFD packet to send [00:58:42]OFD Sender: No OFD packet to send [00:58:47]OFD Sender: No OFD packet to send [00:58:52]OFD Sender: No OFD packet to send [00:58:57]OFD Sender: No OFD packet to send [00:59:02]OFD Sender: No OFD packet to send [00:59:07]OFD Sender: No OFD packet to send [00:59:12]OFD Sender: No OFD packet to send [00:59:17]OFD Sender: No OFD packet to send [00:59:22]OFD Sender: No OFD packet to send [00:59:27]OFD Sender: No OFD packet to send [00:59:32]OFD Sender: No OFD packet to send [00:59:37]OFD Sender: No OFD packet to send [00:59:42]OFD Sender: No OFD packet to send [00:59:47]OFD Sender: No OFD packet to send [00:59:52]OFD Sender: No OFD packet to send [00:59:57]OFD Sender: No OFD packet to send [01:00:02]OFD Sender: No OFD packet to send [01:00:07]OFD Sender: No OFD packet to send [01:00:12]OFD Sender: No OFD packet to send [01:00:17]OFD Sender: No OFD packet to send [01:00:22]OFD Sender: No OFD packet to send [01:00:27]OFD Sender: No OFD packet to send [01:00:32]OFD Sender: No OFD packet to send [01:00:37]OFD Sender: No OFD packet to send [01:00:42]OFD Sender: No OFD packet to send [01:00:47]OFD Sender: No OFD packet to send [01:00:52]OFD Sender: No OFD packet to send [01:00:57]OFD Sender: No OFD packet to send [01:01:02]OFD Sender: No OFD packet to send [01:01:07]OFD Sender: No OFD packet to send [01:01:12]OFD Sender: No OFD packet to send [01:01:17]OFD Sender: No OFD packet to send [01:01:22]OFD Sender: No OFD packet to send [01:01:27]OFD Sender: No OFD packet to send [01:01:32]OFD Sender: No OFD packet to send [01:01:37]OFD Sender: No OFD packet to send [01:01:42]OFD Sender: No OFD packet to send [01:01:47]OFD Sender: No OFD packet to send [01:01:52]OFD Sender: No OFD packet to send [01:01:57]OFD Sender: No OFD packet to send [01:02:02]OFD Sender: No OFD packet to send [01:02:07]OFD Sender: No OFD packet to send [01:02:12]OFD Sender: No OFD packet to send [01:02:17]OFD Sender: No OFD packet to send [01:02:22]OFD Sender: No OFD packet to send [01:02:27]OFD Sender: No OFD packet to send [01:02:32]OFD Sender: No OFD packet to send [01:02:37]OFD Sender: No OFD packet to send [01:02:42]OFD Sender: No OFD packet to send [01:02:47]OFD Sender: No OFD packet to send [01:02:52]OFD Sender: No OFD packet to send [01:02:57]OFD Sender: No OFD packet to send [01:03:02]OFD Sender: No OFD packet to send [01:03:07]OFD Sender: No OFD packet to send [01:03:12]OFD Sender: No OFD packet to send [01:03:18]OFD Sender: No OFD packet to send [01:03:23]OFD Sender: No OFD packet to send [01:03:28]OFD Sender: No OFD packet to send [01:03:33]OFD Sender: No OFD packet to send [01:03:38]OFD Sender: No OFD packet to send [01:03:43]OFD Sender: No OFD packet to send [01:03:48]OFD Sender: No OFD packet to send [01:03:53]OFD Sender: No OFD packet to send [01:03:58]OFD Sender: No OFD packet to send [01:04:03]OFD Sender: No OFD packet to send [01:04:08]OFD Sender: No OFD packet to send [01:04:13]OFD Sender: No OFD packet to send [01:04:18]OFD Sender: No OFD packet to send [01:04:23]OFD Sender: No OFD packet to send [01:04:28]OFD Sender: No OFD packet to send [01:04:33]OFD Sender: No OFD packet to send [01:04:38]OFD Sender: No OFD packet to send [01:04:43]OFD Sender: No OFD packet to send [01:04:48]OFD Sender: No OFD packet to send [01:04:53]OFD Sender: No OFD packet to send [01:04:58]OFD Sender: No OFD packet to send [01:05:03]OFD Sender: No OFD packet to send [01:05:08]OFD Sender: No OFD packet to send [01:05:13]OFD Sender: No OFD packet to send [01:05:18]OFD Sender: No OFD packet to send [01:05:23]OFD Sender: No OFD packet to send [01:05:28]OFD Sender: No OFD packet to send [01:05:33]OFD Sender: No OFD packet to send [01:05:38]OFD Sender: No OFD packet to send [01:05:43]OFD Sender: No OFD packet to send [01:05:48]OFD Sender: No OFD packet to send [01:05:53]OFD Sender: No OFD packet to send [01:05:58]OFD Sender: No OFD packet to send [01:06:03]OFD Sender: No OFD packet to send [01:06:08]OFD Sender: No OFD packet to send [01:06:13]OFD Sender: No OFD packet to send [01:06:18]OFD Sender: No OFD packet to send [01:06:23]OFD Sender: No OFD packet to send [01:06:28]OFD Sender: No OFD packet to send [01:06:33]OFD Sender: No OFD packet to send [01:06:38]OFD Sender: No OFD packet to send [01:06:43]OFD Sender: No OFD packet to send [01:06:48]OFD Sender: No OFD packet to send [01:06:53]OFD Sender: No OFD packet to send [01:06:58]OFD Sender: No OFD packet to send [01:07:03]OFD Sender: No OFD packet to send [01:07:08]OFD Sender: No OFD packet to send [01:07:13]OFD Sender: No OFD packet to send [01:07:18]OFD Sender: No OFD packet to send [01:07:23]OFD Sender: No OFD packet to send [01:07:28]OFD Sender: No OFD packet to send [01:07:33]OFD Sender: No OFD packet to send [01:07:38]OFD Sender: No OFD packet to send [01:07:43]OFD Sender: No OFD packet to send [01:07:48]OFD Sender: No OFD packet to send [01:07:53]OFD Sender: No OFD packet to send [01:07:58]OFD Sender: No OFD packet to send [01:08:03]OFD Sender: No OFD packet to send [01:08:08]OFD Sender: No OFD packet to send [01:08:13]OFD Sender: No OFD packet to send [01:08:18]OFD Sender: No OFD packet to send [01:08:23]OFD Sender: No OFD packet to send [01:08:28]OFD Sender: No OFD packet to send [01:08:33]OFD Sender: No OFD packet to send [01:08:38]OFD Sender: No OFD packet to send [01:08:43]OFD Sender: No OFD packet to send [01:08:48]OFD Sender: No OFD packet to send [01:08:53]OFD Sender: No OFD packet to send [01:08:58]OFD Sender: No OFD packet to send [01:09:03]OFD Sender: No OFD packet to send [01:09:08]OFD Sender: No OFD packet to send [01:09:13]OFD Sender: No OFD packet to send [01:09:18]OFD Sender: No OFD packet to send [01:09:23]OFD Sender: No OFD packet to send [01:09:28]OFD Sender: No OFD packet to send [01:09:33]OFD Sender: No OFD packet to send [01:09:38]OFD Sender: No OFD packet to send [01:09:43]OFD Sender: No OFD packet to send [01:09:48]OFD Sender: No OFD packet to send [01:09:53]OFD Sender: No OFD packet to send [01:09:58]OFD Sender: No OFD packet to send [01:10:03]OFD Sender: No OFD packet to send [01:10:08]OFD Sender: No OFD packet to send [01:10:13]OFD Sender: No OFD packet to send [01:10:18]OFD Sender: No OFD packet to send [01:10:23]OFD Sender: No OFD packet to send [01:10:28]OFD Sender: No OFD packet to send [01:10:33]OFD Sender: No OFD packet to send [01:10:38]OFD Sender: No OFD packet to send [01:10:43]OFD Sender: No OFD packet to send [01:10:48]OFD Sender: No OFD packet to send [01:10:53]OFD Sender: No OFD packet to send [01:10:58]OFD Sender: No OFD packet to send [01:11:03]OFD Sender: No OFD packet to send [01:11:08]OFD Sender: No OFD packet to send [01:11:13]OFD Sender: No OFD packet to send [01:11:18]OFD Sender: No OFD packet to send [01:11:23]OFD Sender: No OFD packet to send [01:11:28]OFD Sender: No OFD packet to send [01:11:33]OFD Sender: No OFD packet to send [01:11:38]OFD Sender: No OFD packet to send [01:11:43]OFD Sender: No OFD packet to send [01:11:48]OFD Sender: No OFD packet to send [01:11:53]OFD Sender: No OFD packet to send [01:11:58]OFD Sender: No OFD packet to send [01:12:03]OFD Sender: No OFD packet to send [01:12:08]OFD Sender: No OFD packet to send [01:12:13]OFD Sender: No OFD packet to send [01:12:18]OFD Sender: No OFD packet to send [01:12:23]OFD Sender: No OFD packet to send [01:12:28]OFD Sender: No OFD packet to send [01:12:33]OFD Sender: No OFD packet to send [01:12:38]OFD Sender: No OFD packet to send [01:12:43]OFD Sender: No OFD packet to send [01:12:48]OFD Sender: No OFD packet to send [01:12:53]OFD Sender: No OFD packet to send [01:12:58]OFD Sender: No OFD packet to send [01:13:03]OFD Sender: No OFD packet to send [01:13:08]OFD Sender: No OFD packet to send [01:13:13]OFD Sender: No OFD packet to send [01:13:18]OFD Sender: No OFD packet to send [01:13:23]OFD Sender: No OFD packet to send [01:13:28]OFD Sender: No OFD packet to send [01:13:33]OFD Sender: No OFD packet to send [01:13:38]OFD Sender: No OFD packet to send [01:13:43]OFD Sender: No OFD packet to send [01:13:48]OFD Sender: No OFD packet to send [01:13:53]OFD Sender: No OFD packet to send [01:13:58]OFD Sender: No OFD packet to send [01:14:03]OFD Sender: No OFD packet to send [01:14:08]OFD Sender: No OFD packet to send [01:14:13]OFD Sender: No OFD packet to send [01:14:18]OFD Sender: No OFD packet to send [01:14:23]OFD Sender: No OFD packet to send [01:14:28]OFD Sender: No OFD packet to send [01:14:33]OFD Sender: No OFD packet to send [01:14:38]OFD Sender: No OFD packet to send [01:14:43]OFD Sender: No OFD packet to send [01:14:48]OFD Sender: No OFD packet to send [01:14:53]OFD Sender: No OFD packet to send [01:14:58]OFD Sender: No OFD packet to send [01:15:03]OFD Sender: No OFD packet to send [01:15:08]OFD Sender: No OFD packet to send [01:15:13]OFD Sender: No OFD packet to send [01:15:18]OFD Sender: No OFD packet to send [01:15:23]OFD Sender: No OFD packet to send [01:15:28]OFD Sender: No OFD packet to send [01:15:33]OFD Sender: No OFD packet to send [01:15:38]OFD Sender: No OFD packet to send [01:15:43]OFD Sender: No OFD packet to send [01:15:48]OFD Sender: No OFD packet to send [01:15:53]OFD Sender: No OFD packet to send [01:15:58]OFD Sender: No OFD packet to send [01:16:03]OFD Sender: No OFD packet to send [01:16:08]OFD Sender: No OFD packet to send [01:16:13]OFD Sender: No OFD packet to send [01:16:18]OFD Sender: No OFD packet to send [01:16:23]OFD Sender: No OFD packet to send [01:16:28]OFD Sender: No OFD packet to send [01:16:33]OFD Sender: No OFD packet to send [01:16:38]OFD Sender: No OFD packet to send [01:16:43]OFD Sender: No OFD packet to send [01:16:48]OFD Sender: No OFD packet to send [01:16:53]OFD Sender: No OFD packet to send [01:16:58]OFD Sender: No OFD packet to send [01:17:03]OFD Sender: No OFD packet to send [01:17:08]OFD Sender: No OFD packet to send [01:17:13]OFD Sender: No OFD packet to send [01:17:18]OFD Sender: No OFD packet to send [01:17:23]OFD Sender: No OFD packet to send [01:17:28]OFD Sender: No OFD packet to send [01:17:33]OFD Sender: No OFD packet to send [01:17:38]OFD Sender: No OFD packet to send [01:17:43]OFD Sender: No OFD packet to send [01:17:48]OFD Sender: No OFD packet to send [01:17:53]OFD Sender: No OFD packet to send [01:17:58]OFD Sender: No OFD packet to send [01:18:03]OFD Sender: No OFD packet to send [01:18:08]OFD Sender: No OFD packet to send [01:18:13]OFD Sender: No OFD packet to send [01:18:18]OFD Sender: No OFD packet to send [01:18:23]OFD Sender: No OFD packet to send [01:18:28]OFD Sender: No OFD packet to send [01:18:33]OFD Sender: No OFD packet to send [01:18:38]OFD Sender: No OFD packet to send [01:18:43]OFD Sender: No OFD packet to send [01:18:48]OFD Sender: No OFD packet to send [01:18:53]OFD Sender: No OFD packet to send [01:18:58]OFD Sender: No OFD packet to send [01:19:03]OFD Sender: No OFD packet to send [01:19:08]OFD Sender: No OFD packet to send [01:19:13]OFD Sender: No OFD packet to send [01:19:18]OFD Sender: No OFD packet to send [01:19:23]OFD Sender: No OFD packet to send [01:19:28]OFD Sender: No OFD packet to send [01:19:33]OFD Sender: No OFD packet to send [01:19:38]OFD Sender: No OFD packet to send [01:19:43]OFD Sender: No OFD packet to send [01:19:48]OFD Sender: No OFD packet to send [01:19:53]OFD Sender: No OFD packet to send [01:19:58]OFD Sender: No OFD packet to send [01:20:03]OFD Sender: No OFD packet to send [01:20:08]OFD Sender: No OFD packet to send [01:20:13]OFD Sender: No OFD packet to send [01:20:18]OFD Sender: No OFD packet to send [01:20:23]OFD Sender: No OFD packet to send [01:20:28]OFD Sender: No OFD packet to send [01:20:33]OFD Sender: No OFD packet to send [01:20:38]OFD Sender: No OFD packet to send [01:20:43]OFD Sender: No OFD packet to send [01:20:48]OFD Sender: No OFD packet to send [01:20:53]OFD Sender: No OFD packet to send [01:20:58]OFD Sender: No OFD packet to send [01:21:03]OFD Sender: No OFD packet to send [01:21:08]OFD Sender: No OFD packet to send [01:21:13]OFD Sender: No OFD packet to send [01:21:18]OFD Sender: No OFD packet to send [01:21:23]OFD Sender: No OFD packet to send [01:21:28]OFD Sender: No OFD packet to send [01:21:33]OFD Sender: No OFD packet to send [01:21:38]OFD Sender: No OFD packet to send [01:21:43]OFD Sender: No OFD packet to send [01:21:48]OFD Sender: No OFD packet to send [01:21:53]OFD Sender: No OFD packet to send [01:21:58]OFD Sender: No OFD packet to send [01:22:03]OFD Sender: No OFD packet to send [01:22:08]OFD Sender: No OFD packet to send [01:22:14]OFD Sender: No OFD packet to send [01:22:19]OFD Sender: No OFD packet to send [01:22:24]OFD Sender: No OFD packet to send [01:22:29]OFD Sender: No OFD packet to send [01:22:34]OFD Sender: No OFD packet to send [01:22:39]OFD Sender: No OFD packet to send [01:22:44]OFD Sender: No OFD packet to send [01:22:49]OFD Sender: No OFD packet to send [01:22:54]OFD Sender: No OFD packet to send [01:22:59]OFD Sender: No OFD packet to send [01:23:04]OFD Sender: No OFD packet to send [01:23:09]OFD Sender: No OFD packet to send [01:23:14]OFD Sender: No OFD packet to send [01:23:19]OFD Sender: No OFD packet to send [01:23:24]OFD Sender: No OFD packet to send [01:23:29]OFD Sender: No OFD packet to send [01:23:34]OFD Sender: No OFD packet to send [01:23:39]OFD Sender: No OFD packet to send [01:23:44]OFD Sender: No OFD packet to send [01:23:49]OFD Sender: No OFD packet to send [01:23:54]OFD Sender: No OFD packet to send [01:23:59]OFD Sender: No OFD packet to send [01:24:04]OFD Sender: No OFD packet to send [01:24:09]OFD Sender: No OFD packet to send [01:24:14]OFD Sender: No OFD packet to send [01:24:19]OFD Sender: No OFD packet to send [01:24:24]OFD Sender: No OFD packet to send [01:24:29]OFD Sender: No OFD packet to send [01:24:34]OFD Sender: No OFD packet to send [01:24:39]OFD Sender: No OFD packet to send [01:24:44]OFD Sender: No OFD packet to send [01:24:49]OFD Sender: No OFD packet to send [01:24:54]OFD Sender: No OFD packet to send [01:24:59]OFD Sender: No OFD packet to send [01:25:04]OFD Sender: No OFD packet to send [01:25:09]OFD Sender: No OFD packet to send [01:25:14]OFD Sender: No OFD packet to send [01:25:19]OFD Sender: No OFD packet to send [01:25:24]OFD Sender: No OFD packet to send [01:25:29]OFD Sender: No OFD packet to send [01:25:34]OFD Sender: No OFD packet to send [01:25:39]OFD Sender: No OFD packet to send [01:25:44]OFD Sender: No OFD packet to send [01:25:49]OFD Sender: No OFD packet to send [01:25:54]OFD Sender: No OFD packet to send [01:25:59]OFD Sender: No OFD packet to send [01:26:04]OFD Sender: No OFD packet to send [01:26:09]OFD Sender: No OFD packet to send [01:26:14]OFD Sender: No OFD packet to send [01:26:19]OFD Sender: No OFD packet to send [01:26:24]OFD Sender: No OFD packet to send [01:26:29]OFD Sender: No OFD packet to send [01:26:34]OFD Sender: No OFD packet to send [01:26:39]OFD Sender: No OFD packet to send [01:26:44]OFD Sender: No OFD packet to send [01:26:49]OFD Sender: No OFD packet to send [01:26:54]OFD Sender: No OFD packet to send [01:26:59]OFD Sender: No OFD packet to send [01:27:04]OFD Sender: No OFD packet to send [01:27:09]OFD Sender: No OFD packet to send [01:27:14]OFD Sender: No OFD packet to send [01:27:19]OFD Sender: No OFD packet to send [01:27:24]OFD Sender: No OFD packet to send [01:27:29]OFD Sender: No OFD packet to send [01:27:34]OFD Sender: No OFD packet to send [01:27:39]OFD Sender: No OFD packet to send [01:27:44]OFD Sender: No OFD packet to send [01:27:49]OFD Sender: No OFD packet to send [01:27:54]OFD Sender: No OFD packet to send [01:27:59]OFD Sender: No OFD packet to send [01:28:04]OFD Sender: No OFD packet to send [01:28:09]OFD Sender: No OFD packet to send [01:28:14]OFD Sender: No OFD packet to send [01:28:19]OFD Sender: No OFD packet to send [01:28:24]OFD Sender: No OFD packet to send [01:28:29]OFD Sender: No OFD packet to send [01:28:34]OFD Sender: No OFD packet to send [01:28:39]OFD Sender: No OFD packet to send [01:28:44]OFD Sender: No OFD packet to send [01:28:49]OFD Sender: No OFD packet to send [01:28:54]OFD Sender: No OFD packet to send [01:28:59]OFD Sender: No OFD packet to send [01:29:04]OFD Sender: No OFD packet to send [01:29:09]OFD Sender: No OFD packet to send [01:29:14]OFD Sender: No OFD packet to send [01:29:19]OFD Sender: No OFD packet to send [01:29:24]OFD Sender: No OFD packet to send [01:29:29]OFD Sender: No OFD packet to send [01:29:34]OFD Sender: No OFD packet to send [01:29:39]OFD Sender: No OFD packet to send [01:29:44]OFD Sender: No OFD packet to send [01:29:49]OFD Sender: No OFD packet to send [01:29:54]OFD Sender: No OFD packet to send [01:29:59]OFD Sender: No OFD packet to send [01:30:04]OFD Sender: No OFD packet to send [01:30:09]OFD Sender: No OFD packet to send [01:30:14]OFD Sender: No OFD packet to send [01:30:19]OFD Sender: No OFD packet to send [01:30:24]OFD Sender: No OFD packet to send [01:30:29]OFD Sender: No OFD packet to send [01:30:34]OFD Sender: No OFD packet to send [01:30:39]OFD Sender: No OFD packet to send [01:30:44]OFD Sender: No OFD packet to send [01:30:49]OFD Sender: No OFD packet to send [01:30:54]OFD Sender: No OFD packet to send [01:30:59]OFD Sender: No OFD packet to send [01:31:04]OFD Sender: No OFD packet to send [01:31:09]OFD Sender: No OFD packet to send [01:31:14]OFD Sender: No OFD packet to send [01:31:19]OFD Sender: No OFD packet to send [01:31:24]OFD Sender: No OFD packet to send [01:31:29]OFD Sender: No OFD packet to send [01:31:34]OFD Sender: No OFD packet to send [01:31:39]OFD Sender: No OFD packet to send [01:31:44]OFD Sender: No OFD packet to send [01:31:49]OFD Sender: No OFD packet to send [01:31:54]OFD Sender: No OFD packet to send [01:31:59]OFD Sender: No OFD packet to send [01:32:04]OFD Sender: No OFD packet to send [01:32:09]OFD Sender: No OFD packet to send [01:32:14]OFD Sender: No OFD packet to send [01:32:19]OFD Sender: No OFD packet to send [01:32:24]OFD Sender: No OFD packet to send [01:32:29]OFD Sender: No OFD packet to send [01:32:34]OFD Sender: No OFD packet to send [01:32:39]OFD Sender: No OFD packet to send [01:32:44]OFD Sender: No OFD packet to send [01:32:49]OFD Sender: No OFD packet to send [01:32:54]OFD Sender: No OFD packet to send [01:32:59]OFD Sender: No OFD packet to send [01:33:04]OFD Sender: No OFD packet to send [01:33:09]OFD Sender: No OFD packet to send [01:33:14]OFD Sender: No OFD packet to send [01:33:19]OFD Sender: No OFD packet to send [01:33:24]OFD Sender: No OFD packet to send [01:33:29]OFD Sender: No OFD packet to send [01:33:34]OFD Sender: No OFD packet to send [01:33:39]OFD Sender: No OFD packet to send [01:33:44]OFD Sender: No OFD packet to send [01:33:49]OFD Sender: No OFD packet to send [01:33:54]OFD Sender: No OFD packet to send [01:33:59]OFD Sender: No OFD packet to send [01:34:04]OFD Sender: No OFD packet to send [01:34:09]OFD Sender: No OFD packet to send [01:34:14]OFD Sender: No OFD packet to send [01:34:19]OFD Sender: No OFD packet to send [01:34:24]OFD Sender: No OFD packet to send [01:34:29]OFD Sender: No OFD packet to send [01:34:34]accept exits with 9 [01:34:34]New connection [01:34:34]New thread 3066809700 created [01:34:34]Thread 3066666340 joined [01:34:34]Waiting for new connection... [01:34:34] Sock 9.Parse request [01:34:34]Sock 9.Check first char [01:34:34]Sock 9.First char is OK [01:34:34]request: POST /json_proto HTTP/1.0 [01:34:34]Method: POST [01:34:34]URL: /json_proto [01:34:34]Method is POST - this is cgi request [01:34:34]url: /json_proto [01:34:34]query_string will be loaded in cgi processing [01:34:34]execute_cgi json_proto POST (null) [01:34:34]execute_cgi path=json_proto method=POST [01:34:34]POST find Content-Length [01:34:34]Host: 172.17.44.195:8080 [01:34:34]Content-Length: 683 [01:34:34]Content-Type: application/json [01:34:34] [01:34:34]POST finish read [01:34:34]Found Content-Length = 683 [01:34:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963414", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:34:34]execute_script... [01:34: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)1963414", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:34:34]POST & json_proto [01:34:34]process_json_proto [01:34:34]json parsed OK: [01:34:34]protocol is kg_v1.0 [01:34:34]action value=close_receipt [01:34:34]process_action close_receipt [01:34:34]cmd_close_receipt [01:34:34]MH_GetDate [01:34:34]Write to MH i2c: F0 00 00 F0 24 03 [01:34:34]Write i2c OK [01:34:34]MH_I2C_Read... [01:34:34]Read from MH i2c: F0 [01:34:34]MH_I2C_Read... [01:34:34]Read from MH i2c: F0 09 00 [01:34:34]MH_I2C_Read... [01:34:34]Read from MH i2c: F0 09 00 F0 24 00 AC AF 15 67 82 C9 CF 66 63 [01:34:34]GetLastDocTimeStamp 1729471816 [01:34:34]current date 1729474476 [01:34:34]FM_GetShiftState [01:34:34]SAM_PROTO_GetShiftState [01:34:34]wFMCommunicate request_size=4 [01:34:34]MH_SAM_APDU [01:34:34]CAPDU: 80 13 01 00 [01:34:34]Write to MH i2c: E2 08 00 F1 24 80 13 01 00 00 00 00 00 92 [01:34:34]Write i2c OK [01:34:34]MH_I2C_Read... [01:34:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:34:34]Read from MH i2c: E2 [01:34:34]MH_I2C_Read... [01:34:34]Read from MH i2c: E2 0E 00 [01:34:34]MH_I2C_Read... [01:34:34]Read from MH i2c: E2 0E 00 F1 24 00 09 00 01 F4 9B 15 67 00 00 00 00 90 00 A9 [01:34:34]RAPDU: 09 00 01 F4 9B 15 67 00 00 00 00 90 00 [01:34:34]wFMCommunicate OK [01:34:34]SAM_PROTO_GetShiftState done [01:34:34]FM_GetShiftState done [01:34:34]opened in 1729469428 [01:34:34]opened+sec_in_day 1729555828 [01:34:34]quantity*price = 100021 [01:34:34]sum+1 = 100023 [01:34:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 13 21.10.2024 01:34 Смена: 534 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227744 ФПД: 34622570450072 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T013436&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227744&fm=34622570450072&tin=02508201610067®Number=0000000000091685&sum=100000 [01:34:35]StoreToDocumentArchive [01:34:35]shift 534 fd 227744 [01:34:35]save to /storage/0534/doc_00227744 [01:34:35]save last doc name /storage/0534/doc_00227744 to /storage/kkm_last_doc_name [01:34:35]save OK [01:34:35]Clear old archive folders... [01:34:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:34:35]tlvbuf is 00C8CEE0 [01:34:35]SAM_PROTO_ClearQueue [01:34:35]wFMCommunicate request_size=4 [01:34:35]MH_SAM_APDU [01:34:35]CAPDU: 80 09 00 00 [01:34:35]Write to MH i2c: E2 08 00 FE 24 80 09 00 00 00 00 00 00 94 [01:34:35]Write i2c OK [01:34:35]MH_I2C_Read... [01:34:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:34:35]Read from MH i2c: E2 [01:34:35]MH_I2C_Read... [01:34:35]Read from MH i2c: E2 03 00 [01:34:35]MH_I2C_Read... [01:34:35]Read from MH i2c: E2 03 00 FE 24 00 90 00 96 [01:34:35]RAPDU: 90 00 [01:34:35]wFMCommunicate OK [01:34:35]SAM_PROTO_ClearQueue done [01:34:35]KKMCreateOFDPacket [01:34:35]OFDProtocolAddRootSTLVToBuf [01:34:35]FM_MakeSignedData [01:34:35]FM_MakeSignedData [01:34:35]SAM_PROTO_SignData [01:34:35]wFMCommunicate request_size=4 [01:34:35]MH_SAM_APDU [01:34:35]CAPDU: 80 0D 01 02 [01:34:35]Write to MH i2c: E2 08 00 FF 24 80 0D 01 02 00 00 00 00 9C [01:34:35]Write i2c OK [01:34:35]MH_I2C_Read... [01:34:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:34:35]Read from MH i2c: E2 [01:34:35]MH_I2C_Read... [01:34:35]Read from MH i2c: E2 03 00 [01:34:35]MH_I2C_Read... [01:34:35]Read from MH i2c: E2 03 00 FF 24 00 90 00 97 [01:34:35]RAPDU: 90 00 [01:34:35]wFMCommunicate OK [01:34:35]wFMCommunicate request_size=255 [01:34:35]MH_SAM_APDU [01:34:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 AC AF 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A0 79 03 00 35 04 06 00 1F [01:34:35]Write to MH i2c: E2 02 01 00 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 AC AF 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A0 79 03 00 35 04 06 00 1F 00 00 88 [01:34:35]Write i2c OK [01:34:35]MH_I2C_Read... [01:34:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:34:35]Read from MH i2c: E2 [01:34:35]MH_I2C_Read... [01:34:35]Read from MH i2c: E2 03 00 [01:34:35]MH_I2C_Read... [01:34:35]Read from MH i2c: E2 03 00 00 25 00 90 00 99 [01:34:35]RAPDU: 90 00 [01:34:35]wFMCommunicate OK [01:34:35]wFMCommunicate request_size=10 [01:34:35]MH_SAM_APDU [01:34:35]CAPDU: 80 0D 02 02 05 7D 32 03 4C 98 [01:34:35]Write to MH i2c: E2 0D 00 01 25 80 0D 02 02 05 00 7D 32 03 4C 98 00 00 40 [01:34:35]Write i2c OK [01:34:35]MH_I2C_Read... [01:34:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:34:35]Read from MH i2c: E2 [01:34:35]MH_I2C_Read... [01:34:35]Read from MH i2c: E2 03 00 [01:34:35]MH_I2C_Read... [01:34:35]Read from MH i2c: E2 03 00 01 25 00 90 00 9A [01:34:35]RAPDU: 90 00 [01:34:35]wFMCommunicate OK [01:34:35]wFMCommunicate request_size=4 [01:34:35]MH_SAM_APDU [01:34:35]CAPDU: 80 0D 03 02 [01:34:35]Write to MH i2c: E2 08 00 02 25 80 0D 03 02 00 00 00 00 A2 [01:34:35]Write i2c OK [01:34:35]MH_I2C_Read... [01:34:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:34:35]Read from MH i2c: E2 [01:34:35]MH_I2C_Read... [01:34:35]Read from MH i2c: E2 0B 00 [01:34:35]MH_I2C_Read... [01:34:35]Read from MH i2c: E2 0B 00 02 25 00 1D B2 DE 46 27 FD 70 57 90 00 81 [01:34:35]RAPDU: 1D B2 DE 46 27 FD 70 57 90 00 [01:34:35]wFMCommunicate OK [01:34:35]SAM_PROTO_SignData done [01:34:35]FM_MakeSignedData done [01:34:35]CreateOFDProtocolMessage [01:34:35]wFMCommunicate request_size=4 [01:34:35]MH_SAM_APDU [01:34:35]CAPDU: 80 11 00 00 [01:34:35]Write to MH i2c: E2 08 00 03 25 80 11 00 00 00 00 00 00 A2 [01:34:35]Write i2c OK [01:34:35]MH_I2C_Read... [01:34:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:34:35]Read from MH i2c: E2 [01:34:35]MH_I2C_Read... [01:34:35]Read from MH i2c: E2 17 00 [01:34:35]MH_I2C_Read... [01:34:35]Read from MH i2c: E2 17 00 03 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 F9 [01:34:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [01:34:35]wFMCommunicate OK [01:34:35]CreateOFDProtocolMessage done [01:34:35]OFDSenderStorePacket 227744 [01:34:35]StoreOFDPacket docnum=227744 [01:34:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 0B 46 07 01 54 BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 AC AF 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A0 79 03 00 35 04 06 00 1F 7D 32 03 4C 98 1D B2 DE 46 27 FD 70 57 [01:34:35]CheckFolder [01:34:35]dirname=/storage/ofd_packets [01:34:35]CheckFolder done [01:34:35]ProducePacketName [01:34:35]name=ofd_packets/00227744 [01:34:35]NVStorageSaveData ofd_packets/00227744 [01:34:35]File name is /storage/ofd_packets/00227744 [01:34:35]Write 301 bytes [01:34:35]NVStorageSaveData done [01:34:35]OFDSenderStorePacket done [01:34:35]KKMCreateOFDPacket done [01:34:35]NVStorageSaveData kkm_last_timestamp [01:34:35]File name is /storage/kkm_last_timestamp [01:34:35]Write 4 bytes [01:34:35]NVStorageSaveData done [01:34:35]ExternCall_PrintAddStr [01:34:35]wPrintStart [01:34:35]Write to MH i2c: 01 00 00 04 25 29 [01:34:35]Write i2c OK [01:34:35]MH_I2C_Read... [01:34:35]Read from MH i2c: 01 [01:34:35]MH_I2C_Read... [01:34:35]Read from MH i2c: 01 07 00 [01:34:35]MH_I2C_Read... [01:34:35]Read from MH i2c: 01 07 00 04 25 00 00 00 00 00 FF 0F 3E [01:34:35]RasterBufferAndPrint [01:34:35]line Счет N : (1)1963414 [01:34:35]line ИНН: 02508201610067 [01:34:35]line Контрольно-Кассовый Чек [01:34:35]line ПРОДАЖА [01:34:35]line ТРК (МРК, ГНК) : 64 [01:34:35]line Товар: 2710124500 [01:34:35]line Аи-95-К-5 [01:34:35]line 13.480 * 74.20 [01:34:35]line = 1000.22 [01:34:35]line НДС 12% НСП 1% [01:34:35]line > о реализуемом товаре [01:34:35]line ОКРУГЛЕНИЕ: -0.22 [01:34:35]line ИТОГО: 1000.00 [01:34:35]line Внесено: 1000.00 [01:34:35]line СДАЧА: 0.00 [01:34:35]line НСП 1% : 8.85 [01:34:35]line НДС 12% : 106.22 [01:34:35]line Наличными: 1000.00 [01:34:35]line Безнал.: 0.00 [01:34:35]line Место: АЗС № 133 "Партнер Нефть" [01:34:35]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [01:34:35]line СНО: Общий режим [01:34:35]line Чек 13 21.10.2024 01:34 [01:34:35]line Смена: 534 ФФД: 1.0 [01:34:35]line ЗНМ: 0300000091 [01:34:35]line РНМ: 0000000000091685 [01:34:35]line Версия ККМ: 001 [01:34:35]line ФМ: 0000000000871839 [01:34:35]line ФД: 227744 [01:34:35]line ФПД: 34622570450072 [01:34:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T013436&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227744&fm=34622570450072&tin=02508201610067®Number=0000000000091685&sum=100000 [01:34:36]OFD Sender: Processing packet 227744 [packets to send 38, broken 37] [01:34:36]ProducePacketName [01:34:36]name=ofd_packets/00227744 [01:34:36]OFD Sender: To server: pG, [01:34:36]CommunicateWithHost lk.salyk.kg:30040 [01:34:36]ConnectInit lk.salyk.kg [01:34:36]written 0, free lines is 4095 [01:34:36]Connected sock=10 [01:34: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 33 39 0F 01 00 00 0B 46 07 01 54 BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 AC AF 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A0 79 03 00 35 04 06 00 1F 7D 32 03 4C 98 1D B2 DE 46 27 FD 70 57 [01:34: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 33 39 4F 00 00 00 0C 55 47 00 11 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A0 79 03 00 F4 03 04 00 A9 5A 15 67 B6 04 01 00 00 E0 8A 6B DF 3C 35 1F B7 [01:34:36]CommunicateWithHost err = 0 [01:34:36]CheckOFDResponse [01:34:36]1017 (14) - 77093643461234 [01:34:36]1041 (16) - 0000000000871839 [01:34:36]1040 (4) - 227744 [01:34:36]1012 (4) - 20.10.2024 19:31 [01:34:36]1206 (1) - 0 [01:34:36]OFD Sender: Remove packet 227744 [01:34:36]ProducePacketName [01:34:36]name=ofd_packets/00227744 [01:34:36]NVStorageDeleteData [01:34:36]Write to MH i2c: 01 00 00 2E 25 53 [01:34:36]Write i2c OK [01:34:36]MH_I2C_Read... [01:34:36]Read from MH i2c: 01 [01:34:36]MH_I2C_Read... [01:34:36]Read from MH i2c: 01 07 00 [01:34:36]MH_I2C_Read... [01:34:36]Read from MH i2c: 01 07 00 2E 25 00 00 00 00 00 9D 0C 03 [01:34:36]RasterBufferAndPrint [01:34:36]line [01:34:36]line [01:34:36]line [01:34:36]line [01:34:36]line [01:34:36]written 0, free lines is 3233 [01:34:36]MH_Cut [01:34:36]Write to MH i2c: D1 01 00 35 25 01 2C [01:34:36]Write i2c OK [01:34:36]MH_I2C_Read... [01:34:36]Read from MH i2c: D1 [01:34:36]MH_I2C_Read... [01:34:36]Read from MH i2c: D1 01 00 [01:34:36]MH_I2C_Read... [01:34:36]Read from MH i2c: D1 01 00 35 25 00 2B [01:34:36]Write to MH i2c: 01 00 00 36 25 5B [01:34:36]Write i2c OK [01:34:36]MH_I2C_Read... [01:34:37]OFD Sender: No OFD packet to send [01:34:37]*** Cut start [01:34:37]*** Partial cut [01:34:37]*** CUTSNS_PIN = 1 [01:34:37]*** CUTSNS_PIN = 0 [01:34:38]*** Brake cut motor [01:34:38]Read from MH i2c: 01 [01:34:38]MH_I2C_Read... [01:34:38]*** Stop cut motor [01:34:38]*** Cut end [01:34:38]Read from MH i2c: 01 07 00 [01:34:38]MH_I2C_Read... [01:34:38]Read from MH i2c: 01 07 00 36 25 00 00 00 00 00 FF 0F 70 [01:34:38]process_action close_receipt done [01:34:38]requested_data is exist [01:34:38]produce_requested_data [01:34:38]requested_item fm.sn is exist - process it [01:34:38]wFMCommunicate request_size=4 [01:34:38]MH_SAM_APDU [01:34:38]CAPDU: 80 11 00 00 [01:34:38]Write to MH i2c: E2 08 00 37 25 80 11 00 00 00 00 00 00 D6 [01:34:38]Write i2c OK [01:34:38]MH_I2C_Read... [01:34:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:34:38]Read from MH i2c: E2 [01:34:38]MH_I2C_Read... [01:34:38]Read from MH i2c: E2 17 00 [01:34:38]MH_I2C_Read... [01:34:38]Read from MH i2c: E2 17 00 37 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 2D [01:34:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [01:34:38]wFMCommunicate OK [01:34:38]requested_item fd.num is exist - process it [01:34:38]SAM_PROTO_GetFieldsCounters [01:34:38]wFMCommunicate request_size=4 [01:34:38]MH_SAM_APDU [01:34:38]CAPDU: 80 13 00 00 [01:34:38]Write to MH i2c: E2 08 00 38 25 80 13 00 00 00 00 00 00 D9 [01:34:38]Write i2c OK [01:34:38]MH_I2C_Read... [01:34:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:34:38]Read from MH i2c: E2 [01:34:38]MH_I2C_Read... [01:34:38]Read from MH i2c: E2 62 00 [01:34:38]MH_I2C_Read... [01:34:38]Read from MH i2c: E2 62 00 38 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A0 79 03 00 0E 04 04 00 16 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 5D [01:34: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A0 79 03 00 0E 04 04 00 16 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 [01:34:38]wFMCommunicate OK [01:34:38]SAM_PROTO_GetFieldsCounters done [01:34:38]requested_item shift.num is exist - process it [01:34:38]requested_item shift.opened is exist - process it [01:34:38]req_shift_opened [01:34:38]FM_GetShiftState [01:34:38]SAM_PROTO_GetShiftState [01:34:38]wFMCommunicate request_size=4 [01:34:38]MH_SAM_APDU [01:34:38]CAPDU: 80 13 01 00 [01:34:38]Write to MH i2c: E2 08 00 39 25 80 13 01 00 00 00 00 00 DB [01:34:38]Write i2c OK [01:34:38]MH_I2C_Read... [01:34:38]Read from MH i2c: E2 [01:34:38]MH_I2C_Read... [01:34:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:34:38]Read from MH i2c: E2 0E 00 [01:34:38]MH_I2C_Read... [01:34:38]Read from MH i2c: E2 0E 00 39 25 00 09 00 01 F4 9B 15 67 00 00 00 00 90 00 F2 [01:34:38]RAPDU: 09 00 01 F4 9B 15 67 00 00 00 00 90 00 [01:34:38]wFMCommunicate OK [01:34:38]SAM_PROTO_GetShiftState done [01:34:38]FM_GetShiftState done [01:34:38]req_shift_opened done [01:34:38]requested_item shift.open_date is exist - process it [01:34:38]req_shift_open_date [01:34:38]req_shift_open_date done [01:34:38]produce_requested_data done [01:34:38]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227744,"shift.num":534,"shift.opened":1,"shift.open_date":1729469428} [01:34:38]process_action_free close_receipt [01:34:38]json_value_free [01:34:38]json_value_free done [01:34:38]process_json_proto returns [01:34:38]Send response to host [01:34:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227744,"shift.num":534,"shift.opened":1,"shift.open_date":1729469428}}} [01:34:38]free response buf [01:34:38]execute_script done [01:34:38]execute_script returns [01:34:38]free content buf [01:34:38]Sock 9.Close socket [01:34:38]Sock 9.Thread stoped [01:34:42]OFD Sender: No OFD packet to send [01:34:47]OFD Sender: No OFD packet to send [01:34:52]OFD Sender: No OFD packet to send [01:34:57]OFD Sender: No OFD packet to send [01:35:02]OFD Sender: No OFD packet to send [01:35:07]OFD Sender: No OFD packet to send [01:35:12]OFD Sender: No OFD packet to send [01:35:17]OFD Sender: No OFD packet to send [01:35:22]OFD Sender: No OFD packet to send [01:35:27]OFD Sender: No OFD packet to send [01:35:32]OFD Sender: No OFD packet to send [01:35:37]OFD Sender: No OFD packet to send [01:35:42]OFD Sender: No OFD packet to send [01:35:47]OFD Sender: No OFD packet to send [01:35:52]OFD Sender: No OFD packet to send [01:35:57]OFD Sender: No OFD packet to send [01:36:02]OFD Sender: No OFD packet to send [01:36:07]OFD Sender: No OFD packet to send [01:36:12]OFD Sender: No OFD packet to send [01:36:17]OFD Sender: No OFD packet to send [01:36:22]OFD Sender: No OFD packet to send [01:36:27]OFD Sender: No OFD packet to send [01:36:32]OFD Sender: No OFD packet to send [01:36:37]OFD Sender: No OFD packet to send [01:36:42]OFD Sender: No OFD packet to send [01:36:47]OFD Sender: No OFD packet to send [01:36:52]OFD Sender: No OFD packet to send [01:36:57]OFD Sender: No OFD packet to send [01:37:02]OFD Sender: No OFD packet to send [01:37:07]OFD Sender: No OFD packet to send [01:37:12]OFD Sender: No OFD packet to send [01:37:17]OFD Sender: No OFD packet to send [01:37:22]OFD Sender: No OFD packet to send [01:37:27]OFD Sender: No OFD packet to send [01:37:32]OFD Sender: No OFD packet to send [01:37:37]OFD Sender: No OFD packet to send [01:37:42]OFD Sender: No OFD packet to send [01:37:47]OFD Sender: No OFD packet to send [01:37:52]OFD Sender: No OFD packet to send [01:37:57]OFD Sender: No OFD packet to send [01:38:02]OFD Sender: No OFD packet to send [01:38:07]OFD Sender: No OFD packet to send [01:38:12]OFD Sender: No OFD packet to send [01:38:17]OFD Sender: No OFD packet to send [01:38:22]OFD Sender: No OFD packet to send [01:38:27]OFD Sender: No OFD packet to send [01:38:32]OFD Sender: No OFD packet to send [01:38:37]OFD Sender: No OFD packet to send [01:38:42]OFD Sender: No OFD packet to send [01:38:47]OFD Sender: No OFD packet to send [01:38:52]OFD Sender: No OFD packet to send [01:38:57]OFD Sender: No OFD packet to send [01:39:02]OFD Sender: No OFD packet to send [01:39:07]OFD Sender: No OFD packet to send [01:39:12]OFD Sender: No OFD packet to send [01:39:17]OFD Sender: No OFD packet to send [01:39:22]OFD Sender: No OFD packet to send [01:39:27]OFD Sender: No OFD packet to send [01:39:32]OFD Sender: No OFD packet to send [01:39:32]accept exits with 7 [01:39:32]New connection [01:39:32]New thread 3066666340 created [01:39:32]Thread 3066809700 joined [01:39:32]Waiting for new connection... [01:39:32] Sock 7.Parse request [01:39:32]Sock 7.Check first char [01:39:32]Sock 7.First char is OK [01:39:32]request: POST /json_proto HTTP/1.0 [01:39:32]Method: POST [01:39:32]URL: /json_proto [01:39:32]Method is POST - this is cgi request [01:39:32]url: /json_proto [01:39:32]query_string will be loaded in cgi processing [01:39:32]execute_cgi json_proto POST (null) [01:39:32]execute_cgi path=json_proto method=POST [01:39:32]POST find Content-Length [01:39:32]Host: 172.17.44.195:8080 [01:39:32]Content-Length: 748 [01:39:32]Content-Type: application/json [01:39:32] [01:39:32]POST finish read [01:39:32]Found Content-Length = 748 [01:39:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963416", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 4.390, "sum" : 300.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:39:32]execute_script... [01:39: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)1963416", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 4.390, "sum" : 300.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:39:32]POST & json_proto [01:39:32]process_json_proto [01:39:32]json parsed OK: [01:39:32]protocol is kg_v1.0 [01:39:32]action value=close_receipt [01:39:32]process_action close_receipt [01:39:32]cmd_close_receipt [01:39:32]MH_GetDate [01:39:32]Write to MH i2c: F0 00 00 3A 25 4E [01:39:32]Write i2c OK [01:39:32]MH_I2C_Read... [01:39:32]Read from MH i2c: F0 [01:39:32]MH_I2C_Read... [01:39:32]Read from MH i2c: F0 09 00 [01:39:32]MH_I2C_Read... [01:39:32]Read from MH i2c: F0 09 00 3A 25 00 D6 B0 15 67 82 C9 CF 66 D9 [01:39:32]GetLastDocTimeStamp 1729474476 [01:39:32]current date 1729474774 [01:39:32]FM_GetShiftState [01:39:32]SAM_PROTO_GetShiftState [01:39:32]wFMCommunicate request_size=4 [01:39:32]MH_SAM_APDU [01:39:32]CAPDU: 80 13 01 00 [01:39:32]Write to MH i2c: E2 08 00 3B 25 80 13 01 00 00 00 00 00 DD [01:39:32]Write i2c OK [01:39:32]MH_I2C_Read... [01:39:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:39:32]Read from MH i2c: E2 [01:39:32]MH_I2C_Read... [01:39:32]Read from MH i2c: E2 0E 00 [01:39:32]MH_I2C_Read... [01:39:32]Read from MH i2c: E2 0E 00 3B 25 00 09 00 01 F4 9B 15 67 00 00 00 00 90 00 F4 [01:39:32]RAPDU: 09 00 01 F4 9B 15 67 00 00 00 00 90 00 [01:39:32]wFMCommunicate OK [01:39:32]SAM_PROTO_GetShiftState done [01:39:32]FM_GetShiftState done [01:39:32]opened in 1729469428 [01:39:32]opened+sec_in_day 1729555828 [01:39:32]quantity*price = 30027 [01:39:32]sum+1 = 30029 [01:39:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.28 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 0.00 Безнал.: 300.28 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 14 21.10.2024 01:39 Смена: 534 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 227745 ФПД: 140327209166224 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T013934&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227745&fm=140327209166224&tin=02508201610067®Number=0000000000091685&sum=30028 [01:39:33]StoreToDocumentArchive [01:39:33]shift 534 fd 227745 [01:39:33]save to /storage/0534/doc_00227745 [01:39:33]save last doc name /storage/0534/doc_00227745 to /storage/kkm_last_doc_name [01:39:33]save OK [01:39:33]Clear old archive folders... [01:39:33]ProcessDocumentItem done err = 0, tmpTLVsize=244 [01:39:33]tlvbuf is 00CAD920 [01:39:33]SAM_PROTO_ClearQueue [01:39:33]wFMCommunicate request_size=4 [01:39:33]MH_SAM_APDU [01:39:33]CAPDU: 80 09 00 00 [01:39:33]Write to MH i2c: E2 08 00 48 25 80 09 00 00 00 00 00 00 DF [01:39:33]Write i2c OK [01:39:33]MH_I2C_Read... [01:39:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:39:33]Read from MH i2c: E2 [01:39:33]MH_I2C_Read... [01:39:33]Read from MH i2c: E2 03 00 [01:39:33]MH_I2C_Read... [01:39:33]Read from MH i2c: E2 03 00 48 25 00 90 00 E1 [01:39:33]RAPDU: 90 00 [01:39:33]wFMCommunicate OK [01:39:33]SAM_PROTO_ClearQueue done [01:39:33]KKMCreateOFDPacket [01:39:33]OFDProtocolAddRootSTLVToBuf [01:39:33]FM_MakeSignedData [01:39:33]FM_MakeSignedData [01:39:33]SAM_PROTO_SignData [01:39:33]wFMCommunicate request_size=4 [01:39:33]MH_SAM_APDU [01:39:33]CAPDU: 80 0D 01 02 [01:39:33]Write to MH i2c: E2 08 00 49 25 80 0D 01 02 00 00 00 00 E7 [01:39:33]Write i2c OK [01:39:33]MH_I2C_Read... [01:39:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:39:33]Read from MH i2c: E2 [01:39:33]MH_I2C_Read... [01:39:33]Read from MH i2c: E2 03 00 [01:39:33]MH_I2C_Read... [01:39:33]Read from MH i2c: E2 03 00 49 25 00 90 00 E2 [01:39:33]RAPDU: 90 00 [01:39:33]wFMCommunicate OK [01:39:33]wFMCommunicate request_size=253 [01:39:33]MH_SAM_APDU [01:39:33]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 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 75 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 D6 B0 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A1 79 03 00 35 04 06 00 7F A0 79 74 65 90 [01:39:33]Write to MH i2c: E2 00 01 4A 25 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 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 75 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 D6 B0 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A1 79 03 00 35 04 06 00 7F A0 79 74 65 90 00 00 C5 [01:39:33]Write i2c OK [01:39:33]MH_I2C_Read... [01:39:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:39:34]Read from MH i2c: E2 [01:39:34]MH_I2C_Read... [01:39:34]Read from MH i2c: E2 03 00 [01:39:34]MH_I2C_Read... [01:39:34]Read from MH i2c: E2 03 00 4A 25 00 90 00 E3 [01:39:34]RAPDU: 90 00 [01:39:34]wFMCommunicate OK [01:39:34]wFMCommunicate request_size=4 [01:39:34]MH_SAM_APDU [01:39:34]CAPDU: 80 0D 03 02 [01:39:34]Write to MH i2c: E2 08 00 4B 25 80 0D 03 02 00 00 00 00 EB [01:39:34]Write i2c OK [01:39:34]MH_I2C_Read... [01:39:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:39:34]Read from MH i2c: E2 [01:39:34]MH_I2C_Read... [01:39:34]Read from MH i2c: E2 0B 00 [01:39:34]MH_I2C_Read... [01:39:34]Read from MH i2c: E2 0B 00 4B 25 00 3B F5 93 C1 F5 37 BD FF 90 00 58 [01:39:34]RAPDU: 3B F5 93 C1 F5 37 BD FF 90 00 [01:39:34]wFMCommunicate OK [01:39:34]SAM_PROTO_SignData done [01:39:34]FM_MakeSignedData done [01:39:34]CreateOFDProtocolMessage [01:39:34]wFMCommunicate request_size=4 [01:39:34]MH_SAM_APDU [01:39:34]CAPDU: 80 11 00 00 [01:39:34]Write to MH i2c: E2 08 00 4C 25 80 11 00 00 00 00 00 00 EB [01:39:34]Write i2c OK [01:39:34]MH_I2C_Read... [01:39:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:39:34]Read from MH i2c: E2 [01:39:34]MH_I2C_Read... [01:39:34]Read from MH i2c: E2 17 00 [01:39:34]MH_I2C_Read... [01:39:34]Read from MH i2c: E2 17 00 4C 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 42 [01:39:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [01:39:34]wFMCommunicate OK [01:39:34]CreateOFDProtocolMessage done [01:39:34]OFDSenderStorePacket 227745 [01:39:34]StoreOFDPacket docnum=227745 [01:39:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 1C 5C 00 01 44 1A 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 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 75 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 D6 B0 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A1 79 03 00 35 04 06 00 7F A0 79 74 65 90 3B F5 93 C1 F5 37 BD FF [01:39:34]CheckFolder [01:39:34]dirname=/storage/ofd_packets [01:39:34]CheckFolder done [01:39:34]ProducePacketName [01:39:34]name=ofd_packets/00227745 [01:39:34]NVStorageSaveData ofd_packets/00227745 [01:39:34]File name is /storage/ofd_packets/00227745 [01:39:34]Write 294 bytes [01:39:34]NVStorageSaveData done [01:39:34]OFDSenderStorePacket done [01:39:34]KKMCreateOFDPacket done [01:39:34]NVStorageSaveData kkm_last_timestamp [01:39:34]File name is /storage/kkm_last_timestamp [01:39:34]Write 4 bytes [01:39:34]NVStorageSaveData done [01:39:34]ExternCall_PrintAddStr [01:39:34]wPrintStart [01:39:34]Write to MH i2c: 01 00 00 4D 25 72 [01:39:34]Write i2c OK [01:39:34]MH_I2C_Read... [01:39:34]Read from MH i2c: 01 [01:39:34]MH_I2C_Read... [01:39:34]Read from MH i2c: 01 07 00 [01:39:34]MH_I2C_Read... [01:39:34]Read from MH i2c: 01 07 00 4D 25 00 00 00 00 00 FF 0F 87 [01:39:34]RasterBufferAndPrint [01:39:34]line Счет N : (1)1963416 [01:39:34]line ИНН: 02508201610067 [01:39:34]line Контрольно-Кассовый Чек [01:39:34]line ПРОДАЖА [01:39:34]line ТРК (МРК, ГНК) : 42 [01:39:34]line Товар: 2710124130 [01:39:34]line SU-92 [01:39:34]line 4.390 * 68.40 [01:39:34]line = 300.28 [01:39:34]line НДС 12% НСП 1% [01:39:34]line > о реализуемом товаре [01:39:34]line ИТОГО: 300.28 [01:39:34]line НСП 1% : 2.66 [01:39:34]line НДС 12% : 31.89 [01:39:34]line Наличными: 0.00 [01:39:34]line Безнал.: 300.28 [01:39:34]line Место: АЗС № 133 "Партнер Нефть" [01:39:34]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [01:39:34]line СНО: Общий режим [01:39:34]line Чек 14 21.10.2024 01:39 [01:39:34]line Смена: 534 ФФД: 1.0 [01:39:34]line ЗНМ: 0300000091 [01:39:34]line РНМ: 0000000000091685 [01:39:34]line Версия ККМ: 001 [01:39:34]line Платежная система: Mbank [01:39:34]line ФМ: 0000000000871839 [01:39:34]line ФД: 227745 [01:39:34]line ФПД: 140327209166224 [01:39:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T013934&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227745&fm=140327209166224&tin=02508201610067®Number=0000000000091685&sum=30028 [01:39:34]OFD Sender: Processing packet 227745 [packets to send 38, broken 37] [01:39:34]ProducePacketName [01:39:34]name=ofd_packets/00227745 [01:39:34]OFD Sender: To server: pG, [01:39:34]CommunicateWithHost lk.salyk.kg:30040 [01:39:34]ConnectInit lk.salyk.kg [01:39:34]written 0, free lines is 4095 [01:39:34]Connected sock=10 [01: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 33 39 08 01 00 00 1C 5C 00 01 44 1A 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 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 75 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 D6 B0 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A1 79 03 00 35 04 06 00 7F A0 79 74 65 90 3B F5 93 C1 F5 37 BD FF [01: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 33 39 4F 00 00 00 DE 6A 47 00 D9 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A1 79 03 00 F4 03 04 00 D4 5B 15 67 B6 04 01 00 00 11 69 66 D0 C8 CB 8E 81 [01:39:35]CommunicateWithHost err = 0 [01:39:35]CheckOFDResponse [01:39:35]1017 (14) - 77093643461234 [01:39:35]1041 (16) - 0000000000871839 [01:39:35]1040 (4) - 227745 [01:39:35]1012 (4) - 20.10.2024 19:36 [01:39:35]1206 (1) - 0 [01:39:35]OFD Sender: Remove packet 227745 [01:39:35]ProducePacketName [01:39:35]name=ofd_packets/00227745 [01:39:35]NVStorageDeleteData [01:39:35]Write to MH i2c: 01 00 00 75 25 9A [01:39:35]Write i2c OK [01:39:35]MH_I2C_Read... [01:39:35]Read from MH i2c: 01 [01:39:35]MH_I2C_Read... [01:39:35]Read from MH i2c: 01 07 00 [01:39:35]MH_I2C_Read... [01:39:35]Read from MH i2c: 01 07 00 75 25 00 00 00 00 00 DA 0C 87 [01:39:35]RasterBufferAndPrint [01:39:35]line [01:39:35]line [01:39:35]line [01:39:35]line [01:39:35]line [01:39:35]written 0, free lines is 3295 [01:39:35]MH_Cut [01:39:35]Write to MH i2c: D1 01 00 7C 25 01 73 [01:39:35]Write i2c OK [01:39:35]MH_I2C_Read... [01:39:35]Read from MH i2c: D1 [01:39:35]MH_I2C_Read... [01:39:35]Read from MH i2c: D1 01 00 [01:39:35]MH_I2C_Read... [01:39:35]Read from MH i2c: D1 01 00 7C 25 00 72 [01:39:35]Write to MH i2c: 01 00 00 7D 25 A2 [01:39:35]Write i2c OK [01:39:35]MH_I2C_Read... [01:39:35]OFD Sender: No OFD packet to send [01:39:36]*** Cut start [01:39:36]*** Partial cut [01:39:36]*** CUTSNS_PIN = 1 [01:39:36]*** CUTSNS_PIN = 0 [01:39:36]*** Brake cut motor [01:39:36]Read from MH i2c: 01 [01:39:36]MH_I2C_Read... [01:39:36]*** Stop cut motor [01:39:36]*** Cut end [01:39:36]Read from MH i2c: 01 07 00 [01:39:36]MH_I2C_Read... [01:39:36]Read from MH i2c: 01 07 00 7D 25 00 00 00 00 00 FF 0F B7 [01:39:36]process_action close_receipt done [01:39:36]requested_data is exist [01:39:36]produce_requested_data [01:39:36]requested_item fm.sn is exist - process it [01:39:36]wFMCommunicate request_size=4 [01:39:36]MH_SAM_APDU [01:39:36]CAPDU: 80 11 00 00 [01:39:36]Write to MH i2c: E2 08 00 7E 25 80 11 00 00 00 00 00 00 1D [01:39:36]Write i2c OK [01:39:36]MH_I2C_Read... [01:39:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:39:36]Read from MH i2c: E2 [01:39:36]MH_I2C_Read... [01:39:36]Read from MH i2c: E2 17 00 [01:39:36]MH_I2C_Read... [01:39:36]Read from MH i2c: E2 17 00 7E 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 74 [01:39:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [01:39:36]wFMCommunicate OK [01:39:36]requested_item fd.num is exist - process it [01:39:36]SAM_PROTO_GetFieldsCounters [01:39:36]wFMCommunicate request_size=4 [01:39:36]MH_SAM_APDU [01:39:36]CAPDU: 80 13 00 00 [01:39:36]Write to MH i2c: E2 08 00 7F 25 80 13 00 00 00 00 00 00 20 [01:39:36]Write i2c OK [01:39:36]MH_I2C_Read... [01:39:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:39:36]Read from MH i2c: E2 [01:39:36]MH_I2C_Read... [01:39:36]Read from MH i2c: E2 62 00 [01:39:36]MH_I2C_Read... [01:39:36]Read from MH i2c: E2 62 00 7F 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A1 79 03 00 0E 04 04 00 16 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 A8 [01:39: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A1 79 03 00 0E 04 04 00 16 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 [01:39:36]wFMCommunicate OK [01:39:36]SAM_PROTO_GetFieldsCounters done [01:39:36]requested_item shift.num is exist - process it [01:39:36]requested_item shift.opened is exist - process it [01:39:36]req_shift_opened [01:39:36]FM_GetShiftState [01:39:36]SAM_PROTO_GetShiftState [01:39:36]wFMCommunicate request_size=4 [01:39:36]MH_SAM_APDU [01:39:36]CAPDU: 80 13 01 00 [01:39:36]Write to MH i2c: E2 08 00 80 25 80 13 01 00 00 00 00 00 22 [01:39:36]Write i2c OK [01:39:36]MH_I2C_Read... [01:39:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:39:36]Read from MH i2c: E2 [01:39:36]MH_I2C_Read... [01:39:36]Read from MH i2c: E2 0E 00 [01:39:36]MH_I2C_Read... [01:39:36]Read from MH i2c: E2 0E 00 80 25 00 09 00 01 F4 9B 15 67 00 00 00 00 90 00 39 [01:39:36]RAPDU: 09 00 01 F4 9B 15 67 00 00 00 00 90 00 [01:39:36]wFMCommunicate OK [01:39:36]SAM_PROTO_GetShiftState done [01:39:36]FM_GetShiftState done [01:39:36]req_shift_opened done [01:39:36]requested_item shift.open_date is exist - process it [01:39:36]req_shift_open_date [01:39:36]req_shift_open_date done [01:39:36]produce_requested_data done [01:39:36]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227745,"shift.num":534,"shift.opened":1,"shift.open_date":1729469428} [01:39:36]process_action_free close_receipt [01:39:36]json_value_free [01:39:36]json_value_free done [01:39:36]process_json_proto returns [01:39:36]Send response to host [01:39:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227745,"shift.num":534,"shift.opened":1,"shift.open_date":1729469428}}} [01:39:36]free response buf [01:39:36]execute_script done [01:39:36]execute_script returns [01:39:36]free content buf [01:39:36]Sock 7.Close socket [01:39:36]Sock 7.Thread stoped [01:39:40]OFD Sender: No OFD packet to send [01:39:45]OFD Sender: No OFD packet to send [01:39:50]OFD Sender: No OFD packet to send [01:39:55]OFD Sender: No OFD packet to send [01:40:00]OFD Sender: No OFD packet to send [01:40:05]OFD Sender: No OFD packet to send [01:40:10]OFD Sender: No OFD packet to send [01:40:15]OFD Sender: No OFD packet to send [01:40:20]OFD Sender: No OFD packet to send [01:40:25]OFD Sender: No OFD packet to send [01:40:30]OFD Sender: No OFD packet to send [01:40:35]OFD Sender: No OFD packet to send [01:40:40]OFD Sender: No OFD packet to send [01:40:45]OFD Sender: No OFD packet to send [01:40:50]OFD Sender: No OFD packet to send [01:40:55]OFD Sender: No OFD packet to send [01:41:00]OFD Sender: No OFD packet to send [01:41:05]OFD Sender: No OFD packet to send [01:41:10]OFD Sender: No OFD packet to send [01:41:15]OFD Sender: No OFD packet to send [01:41:20]OFD Sender: No OFD packet to send [01:41:25]OFD Sender: No OFD packet to send [01:41:30]OFD Sender: No OFD packet to send [01:41:35]OFD Sender: No OFD packet to send [01:41:40]OFD Sender: No OFD packet to send [01:41:45]OFD Sender: No OFD packet to send [01:41:50]OFD Sender: No OFD packet to send [01:41:55]OFD Sender: No OFD packet to send [01:42:00]OFD Sender: No OFD packet to send [01:42:05]OFD Sender: No OFD packet to send [01:42:10]OFD Sender: No OFD packet to send [01:42:15]OFD Sender: No OFD packet to send [01:42:20]OFD Sender: No OFD packet to send [01:42:25]OFD Sender: No OFD packet to send [01:42:30]OFD Sender: No OFD packet to send [01:42:35]OFD Sender: No OFD packet to send [01:42:40]OFD Sender: No OFD packet to send [01:42:45]OFD Sender: No OFD packet to send [01:42:50]OFD Sender: No OFD packet to send [01:42:55]OFD Sender: No OFD packet to send [01:43:00]OFD Sender: No OFD packet to send [01:43:05]OFD Sender: No OFD packet to send [01:43:10]OFD Sender: No OFD packet to send [01:43:15]OFD Sender: No OFD packet to send [01:43:20]OFD Sender: No OFD packet to send [01:43:25]OFD Sender: No OFD packet to send [01:43:30]OFD Sender: No OFD packet to send [01:43:35]OFD Sender: No OFD packet to send [01:43:40]OFD Sender: No OFD packet to send [01:43:45]OFD Sender: No OFD packet to send [01:43:50]OFD Sender: No OFD packet to send [01:43:55]OFD Sender: No OFD packet to send [01:44:00]OFD Sender: No OFD packet to send [01:44:05]OFD Sender: No OFD packet to send [01:44:10]OFD Sender: No OFD packet to send [01:44:15]OFD Sender: No OFD packet to send [01:44:20]OFD Sender: No OFD packet to send [01:44:25]OFD Sender: No OFD packet to send [01:44:30]OFD Sender: No OFD packet to send [01:44:35]OFD Sender: No OFD packet to send [01:44:40]OFD Sender: No OFD packet to send [01:44:45]OFD Sender: No OFD packet to send [01:44:49]accept exits with 9 [01:44:49]New connection [01:44:49]New thread 3066809700 created [01:44:49]Thread 3066666340 joined [01:44:49]Waiting for new connection... [01:44:49] Sock 9.Parse request [01:44:49]Sock 9.Check first char [01:44:49]Sock 9.First char is OK [01:44:49]request: POST /json_proto HTTP/1.0 [01:44:49]Method: POST [01:44:49]URL: /json_proto [01:44:49]Method is POST - this is cgi request [01:44:49]url: /json_proto [01:44:49]query_string will be loaded in cgi processing [01:44:49]execute_cgi json_proto POST (null) [01:44:49]execute_cgi path=json_proto method=POST [01:44:49]POST find Content-Length [01:44:49]Host: 172.17.44.195:8080 [01:44:49]Content-Length: 748 [01:44:49]Content-Type: application/json [01:44:49] [01:44:49]POST finish read [01:44:49]Found Content-Length = 748 [01:44:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963417", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:44:49]execute_script... [01:44:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963417", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:44:49]POST & json_proto [01:44:49]process_json_proto [01:44:49]json parsed OK: [01:44:49]protocol is kg_v1.0 [01:44:49]action value=close_receipt [01:44:49]process_action close_receipt [01:44:49]cmd_close_receipt [01:44:49]MH_GetDate [01:44:49]Write to MH i2c: F0 00 00 81 25 95 [01:44:49]Write i2c OK [01:44:49]MH_I2C_Read... [01:44:49]Read from MH i2c: F0 [01:44:49]MH_I2C_Read... [01:44:49]Read from MH i2c: F0 09 00 [01:44:49]MH_I2C_Read... [01:44:49]Read from MH i2c: F0 09 00 81 25 00 13 B2 15 67 82 C9 CF 66 5F [01:44:49]GetLastDocTimeStamp 1729474774 [01:44:49]current date 1729475091 [01:44:49]FM_GetShiftState [01:44:49]SAM_PROTO_GetShiftState [01:44:49]wFMCommunicate request_size=4 [01:44:49]MH_SAM_APDU [01:44:49]CAPDU: 80 13 01 00 [01:44:49]Write to MH i2c: E2 08 00 82 25 80 13 01 00 00 00 00 00 24 [01:44:49]Write i2c OK [01:44:49]MH_I2C_Read... [01:44:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:44:49]Read from MH i2c: E2 [01:44:49]MH_I2C_Read... [01:44:49]Read from MH i2c: E2 0E 00 [01:44:49]MH_I2C_Read... [01:44:49]Read from MH i2c: E2 0E 00 82 25 00 09 00 01 F4 9B 15 67 00 00 00 00 90 00 3B [01:44:49]RAPDU: 09 00 01 F4 9B 15 67 00 00 00 00 90 00 [01:44:49]wFMCommunicate OK [01:44:49]SAM_PROTO_GetShiftState done [01:44:49]FM_GetShiftState done [01:44:49]opened in 1729469428 [01:44:49]opened+sec_in_day 1729555828 [01:44:49]quantity*price = 50000 [01:44:49]sum+1 = 50001 [01:44:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 0.00 Безнал.: 500.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 15 21.10.2024 01:44 Смена: 534 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871839 ФД: 227746 ФПД: 32899971452737 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T014451&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227746&fm=32899971452737&tin=02508201610067®Number=0000000000091685&sum=50000 [01:44:50]StoreToDocumentArchive [01:44:50]shift 534 fd 227746 [01:44:50]save to /storage/0534/doc_00227746 [01:44:50]save last doc name /storage/0534/doc_00227746 to /storage/kkm_last_doc_name [01:44:50]save OK [01:44:50]Clear old archive folders... [01:44:50]ProcessDocumentItem done err = 0, tmpTLVsize=244 [01:44:50]tlvbuf is 00C43060 [01:44:50]SAM_PROTO_ClearQueue [01:44:50]wFMCommunicate request_size=4 [01:44:50]MH_SAM_APDU [01:44:50]CAPDU: 80 09 00 00 [01:44:50]Write to MH i2c: E2 08 00 8F 25 80 09 00 00 00 00 00 00 26 [01:44:50]Write i2c OK [01:44:50]MH_I2C_Read... [01:44:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:44:50]Read from MH i2c: E2 [01:44:50]MH_I2C_Read... [01:44:50]Read from MH i2c: E2 03 00 [01:44:50]MH_I2C_Read... [01:44:50]Read from MH i2c: E2 03 00 8F 25 00 90 00 28 [01:44:50]RAPDU: 90 00 [01:44:50]wFMCommunicate OK [01:44:50]SAM_PROTO_ClearQueue done [01:44:50]KKMCreateOFDPacket [01:44:50]OFDProtocolAddRootSTLVToBuf [01:44:50]FM_MakeSignedData [01:44:50]FM_MakeSignedData [01:44:50]SAM_PROTO_SignData [01:44:50]wFMCommunicate request_size=4 [01:44:50]MH_SAM_APDU [01:44:50]CAPDU: 80 0D 01 02 [01:44:50]Write to MH i2c: E2 08 00 90 25 80 0D 01 02 00 00 00 00 2E [01:44:50]Write i2c OK [01:44:50]MH_I2C_Read... [01:44:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:44:50]Read from MH i2c: E2 [01:44:50]MH_I2C_Read... [01:44:50]Read from MH i2c: E2 03 00 [01:44:50]MH_I2C_Read... [01:44:50]Read from MH i2c: E2 03 00 90 25 00 90 00 29 [01:44:50]RAPDU: 90 00 [01:44:50]wFMCommunicate OK [01:44:50]wFMCommunicate request_size=253 [01:44:50]MH_SAM_APDU [01:44:50]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 13 B2 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A2 79 03 00 35 04 06 00 1D EC 1F 1C 8F 41 [01:44:50]Write to MH i2c: E2 00 01 91 25 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 13 B2 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A2 79 03 00 35 04 06 00 1D EC 1F 1C 8F 41 00 00 CA [01:44:50]Write i2c OK [01:44:50]MH_I2C_Read... [01:44:50]OFD Sender: No OFD packet to send [01:44:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:44:50]Read from MH i2c: E2 [01:44:50]MH_I2C_Read... [01:44:50]Read from MH i2c: E2 03 00 [01:44:50]MH_I2C_Read... [01:44:50]Read from MH i2c: E2 03 00 91 25 00 90 00 2A [01:44:50]RAPDU: 90 00 [01:44:50]wFMCommunicate OK [01:44:50]wFMCommunicate request_size=4 [01:44:50]MH_SAM_APDU [01:44:50]CAPDU: 80 0D 03 02 [01:44:50]Write to MH i2c: E2 08 00 92 25 80 0D 03 02 00 00 00 00 32 [01:44:50]Write i2c OK [01:44:50]MH_I2C_Read... [01:44:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:44:50]Read from MH i2c: E2 [01:44:50]MH_I2C_Read... [01:44:50]Read from MH i2c: E2 0B 00 [01:44:50]MH_I2C_Read... [01:44:50]Read from MH i2c: E2 0B 00 92 25 00 E7 D9 9A 65 AC AC 8C 85 90 00 5B [01:44:50]RAPDU: E7 D9 9A 65 AC AC 8C 85 90 00 [01:44:50]wFMCommunicate OK [01:44:50]SAM_PROTO_SignData done [01:44:50]FM_MakeSignedData done [01:44:50]CreateOFDProtocolMessage [01:44:50]wFMCommunicate request_size=4 [01:44:50]MH_SAM_APDU [01:44:50]CAPDU: 80 11 00 00 [01:44:50]Write to MH i2c: E2 08 00 93 25 80 11 00 00 00 00 00 00 32 [01:44:50]Write i2c OK [01:44:50]MH_I2C_Read... [01:44:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:44:50]Read from MH i2c: E2 [01:44:50]MH_I2C_Read... [01:44:50]Read from MH i2c: E2 17 00 [01:44:50]MH_I2C_Read... [01:44:50]Read from MH i2c: E2 17 00 93 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 89 [01:44:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [01:44:50]wFMCommunicate OK [01:44:50]CreateOFDProtocolMessage done [01:44:50]OFDSenderStorePacket 227746 [01:44:50]StoreOFDPacket docnum=227746 [01:44:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 8D B9 00 01 5A 75 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 13 B2 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A2 79 03 00 35 04 06 00 1D EC 1F 1C 8F 41 E7 D9 9A 65 AC AC 8C 85 [01:44:50]CheckFolder [01:44:50]dirname=/storage/ofd_packets [01:44:50]CheckFolder done [01:44:50]ProducePacketName [01:44:50]name=ofd_packets/00227746 [01:44:50]NVStorageSaveData ofd_packets/00227746 [01:44:50]File name is /storage/ofd_packets/00227746 [01:44:50]Write 294 bytes [01:44:50]NVStorageSaveData done [01:44:50]OFDSenderStorePacket done [01:44:50]KKMCreateOFDPacket done [01:44:50]NVStorageSaveData kkm_last_timestamp [01:44:50]File name is /storage/kkm_last_timestamp [01:44:50]Write 4 bytes [01:44:50]NVStorageSaveData done [01:44:50]ExternCall_PrintAddStr [01:44:50]wPrintStart [01:44:50]Write to MH i2c: 01 00 00 94 25 B9 [01:44:50]Write i2c OK [01:44:50]MH_I2C_Read... [01:44:50]Read from MH i2c: 01 [01:44:50]MH_I2C_Read... [01:44:50]Read from MH i2c: 01 07 00 [01:44:50]MH_I2C_Read... [01:44:50]Read from MH i2c: 01 07 00 94 25 00 00 00 00 00 FF 0F CE [01:44:50]RasterBufferAndPrint [01:44:50]line Счет N : (1)1963417 [01:44:50]line ИНН: 02508201610067 [01:44:50]line Контрольно-Кассовый Чек [01:44:50]line ПРОДАЖА [01:44:50]line ТРК (МРК, ГНК) : 52 [01:44:50]line Товар: 2710124130 [01:44:50]line SU-92 [01:44:50]line 7.310 * 68.40 [01:44:50]line = 500.00 [01:44:50]line НДС 12% НСП 1% [01:44:50]line > о реализуемом товаре [01:44:50]line ИТОГО: 500.00 [01:44:50]line НСП 1% : 4.42 [01:44:50]line НДС 12% : 53.10 [01:44:50]line Наличными: 0.00 [01:44:50]line Безнал.: 500.00 [01:44:50]line Место: АЗС № 133 "Партнер Нефть" [01:44:50]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [01:44:50]line СНО: Общий режим [01:44:50]line Чек 15 21.10.2024 01:44 [01:44:50]line Смена: 534 ФФД: 1.0 [01:44:50]line ЗНМ: 0300000091 [01:44:50]line РНМ: 0000000000091685 [01:44:50]line Версия ККМ: 001 [01:44:50]line Платежная система: Mbank [01:44:50]line ФМ: 0000000000871839 [01:44:50]line ФД: 227746 [01:44:50]line ФПД: 32899971452737 [01:44:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T014451&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227746&fm=32899971452737&tin=02508201610067®Number=0000000000091685&sum=50000 [01:44:50]written 0, free lines is 4095 [01:44:51]OFD Sender: Processing packet 227746 [packets to send 38, broken 37] [01:44:51]ProducePacketName [01:44:51]name=ofd_packets/00227746 [01:44:51]OFD Sender: To server: pG, [01:44:51]CommunicateWithHost lk.salyk.kg:30040 [01:44:51]ConnectInit lk.salyk.kg [01:44:51]Connected sock=10 [01:44:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 08 01 00 00 8D B9 00 01 5A 75 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 13 B2 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A2 79 03 00 35 04 06 00 1D EC 1F 1C 8F 41 E7 D9 9A 65 AC AC 8C 85 [01:44:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 49 6D 47 00 97 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 33 39 10 04 04 00 A2 79 03 00 F4 03 04 00 10 5D 15 67 B6 04 01 00 00 F5 C4 0A 4E D9 E6 28 DD [01:44:51]CommunicateWithHost err = 0 [01:44:51]CheckOFDResponse [01:44:51]1017 (14) - 77093643461234 [01:44:51]1041 (16) - 0000000000871839 [01:44:51]1040 (4) - 227746 [01:44:51]1012 (4) - 20.10.2024 19:42 [01:44:51]1206 (1) - 0 [01:44:51]OFD Sender: Remove packet 227746 [01:44:51]ProducePacketName [01:44:51]name=ofd_packets/00227746 [01:44:51]NVStorageDeleteData [01:44:51]Write to MH i2c: 01 00 00 BC 25 E1 [01:44:51]Write i2c OK [01:44:51]MH_I2C_Read... [01:44:51]Read from MH i2c: 01 [01:44:51]MH_I2C_Read... [01:44:51]Read from MH i2c: 01 07 00 [01:44:51]MH_I2C_Read... [01:44:51]Read from MH i2c: 01 07 00 BC 25 00 00 00 00 00 CC 0C C0 [01:44:51]RasterBufferAndPrint [01:44:51]line [01:44:51]line [01:44:51]line [01:44:51]line [01:44:51]line [01:44:51]written 0, free lines is 3280 [01:44:51]MH_Cut [01:44:51]Write to MH i2c: D1 01 00 C3 25 01 BA [01:44:51]Write i2c OK [01:44:51]MH_I2C_Read... [01:44:51]Read from MH i2c: D1 [01:44:51]MH_I2C_Read... [01:44:51]Read from MH i2c: D1 01 00 [01:44:51]MH_I2C_Read... [01:44:51]Read from MH i2c: D1 01 00 C3 25 00 B9 [01:44:51]Write to MH i2c: 01 00 00 C4 25 E9 [01:44:51]Write i2c OK [01:44:51]MH_I2C_Read... [01:44:51]OFD Sender: No OFD packet to send [01:44:52]*** Cut start [01:44:52]*** Partial cut [01:44:52]*** CUTSNS_PIN = 1 [01:44:52]*** CUTSNS_PIN = 0 [01:44:52]*** Brake cut motor [01:44:52]Read from MH i2c: 01 [01:44:52]MH_I2C_Read... [01:44:52]*** Stop cut motor [01:44:52]*** Cut end [01:44:52]Read from MH i2c: 01 07 00 [01:44:52]MH_I2C_Read... [01:44:52]Read from MH i2c: 01 07 00 C4 25 00 00 00 00 00 FF 0F FE [01:44:52]process_action close_receipt done [01:44:52]requested_data is exist [01:44:52]produce_requested_data [01:44:53]requested_item fm.sn is exist - process it [01:44:53]wFMCommunicate request_size=4 [01:44:53]MH_SAM_APDU [01:44:53]CAPDU: 80 11 00 00 [01:44:53]Write to MH i2c: E2 08 00 C5 25 80 11 00 00 00 00 00 00 64 [01:44:53]Write i2c OK [01:44:53]MH_I2C_Read... [01:44:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:44:53]Read from MH i2c: E2 [01:44:53]MH_I2C_Read... [01:44:53]Read from MH i2c: E2 17 00 [01:44:53]MH_I2C_Read... [01:44:53]Read from MH i2c: E2 17 00 C5 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 BB [01:44:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [01:44:53]wFMCommunicate OK [01:44:53]requested_item fd.num is exist - process it [01:44:53]SAM_PROTO_GetFieldsCounters [01:44:53]wFMCommunicate request_size=4 [01:44:53]MH_SAM_APDU [01:44:53]CAPDU: 80 13 00 00 [01:44:53]Write to MH i2c: E2 08 00 C6 25 80 13 00 00 00 00 00 00 67 [01:44:53]Write i2c OK [01:44:53]MH_I2C_Read... [01:44:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:44:53]Read from MH i2c: E2 [01:44:53]MH_I2C_Read... [01:44:53]Read from MH i2c: E2 62 00 [01:44:53]MH_I2C_Read... [01:44:53]Read from MH i2c: E2 62 00 C6 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A2 79 03 00 0E 04 04 00 16 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 F3 [01:44:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A2 79 03 00 0E 04 04 00 16 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 [01:44:53]wFMCommunicate OK [01:44:53]SAM_PROTO_GetFieldsCounters done [01:44:53]requested_item shift.num is exist - process it [01:44:53]requested_item shift.opened is exist - process it [01:44:53]req_shift_opened [01:44:53]FM_GetShiftState [01:44:53]SAM_PROTO_GetShiftState [01:44:53]wFMCommunicate request_size=4 [01:44:53]MH_SAM_APDU [01:44:53]CAPDU: 80 13 01 00 [01:44:53]Write to MH i2c: E2 08 00 C7 25 80 13 01 00 00 00 00 00 69 [01:44:53]Write i2c OK [01:44:53]MH_I2C_Read... [01:44:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:44:53]Read from MH i2c: E2 [01:44:53]MH_I2C_Read... [01:44:53]Read from MH i2c: E2 0E 00 [01:44:53]MH_I2C_Read... [01:44:53]Read from MH i2c: E2 0E 00 C7 25 00 09 00 01 F4 9B 15 67 00 00 00 00 90 00 80 [01:44:53]RAPDU: 09 00 01 F4 9B 15 67 00 00 00 00 90 00 [01:44:53]wFMCommunicate OK [01:44:53]SAM_PROTO_GetShiftState done [01:44:53]FM_GetShiftState done [01:44:53]req_shift_opened done [01:44:53]requested_item shift.open_date is exist - process it [01:44:53]req_shift_open_date [01:44:53]req_shift_open_date done [01:44:53]produce_requested_data done [01:44:53]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227746,"shift.num":534,"shift.opened":1,"shift.open_date":1729469428} [01:44:53]process_action_free close_receipt [01:44:53]json_value_free [01:44:53]json_value_free done [01:44:53]process_json_proto returns [01:44:53]Send response to host [01:44:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227746,"shift.num":534,"shift.opened":1,"shift.open_date":1729469428}}} [01:44:53]free response buf [01:44:53]execute_script done [01:44:53]execute_script returns [01:44:53]free content buf [01:44:53]Sock 9.Close socket [01:44:53]Sock 9.Thread stoped [01:44:56]OFD Sender: No OFD packet to send [01:45:01]OFD Sender: No OFD packet to send [01:45:06]OFD Sender: No OFD packet to send [01:45:11]OFD Sender: No OFD packet to send [01:45:16]OFD Sender: No OFD packet to send [01:45:21]OFD Sender: No OFD packet to send [01:45:26]OFD Sender: No OFD packet to send [01:45:31]OFD Sender: No OFD packet to send [01:45:36]OFD Sender: No OFD packet to send [01:45:41]OFD Sender: No OFD packet to send [01:45:46]OFD Sender: No OFD packet to send [01:45:51]OFD Sender: No OFD packet to send [01:45:56]OFD Sender: No OFD packet to send [01:46:01]OFD Sender: No OFD packet to send [01:46:06]OFD Sender: No OFD packet to send [01:46:11]OFD Sender: No OFD packet to send [01:46:16]OFD Sender: No OFD packet to send [01:46:21]OFD Sender: No OFD packet to send [01:46:26]OFD Sender: No OFD packet to send [01:46:31]OFD Sender: No OFD packet to send [01:46:36]OFD Sender: No OFD packet to send [01:46:41]OFD Sender: No OFD packet to send [01:46:46]OFD Sender: No OFD packet to send [01:46:51]OFD Sender: No OFD packet to send [01:46:56]OFD Sender: No OFD packet to send [01:47:01]OFD Sender: No OFD packet to send [01:47:06]OFD Sender: No OFD packet to send [01:47:11]OFD Sender: No OFD packet to send [01:47:17]OFD Sender: No OFD packet to send [01:47:22]OFD Sender: No OFD packet to send [01:47:27]OFD Sender: No OFD packet to send [01:47:32]OFD Sender: No OFD packet to send [01:47:37]OFD Sender: No OFD packet to send [01:47:42]OFD Sender: No OFD packet to send [01:47:47]OFD Sender: No OFD packet to send [01:47:52]OFD Sender: No OFD packet to send [01:47:57]OFD Sender: No OFD packet to send [01:48:02]OFD Sender: No OFD packet to send [01:48:07]OFD Sender: No OFD packet to send [01:48:12]OFD Sender: No OFD packet to send [01:48:17]OFD Sender: No OFD packet to send [01:48:22]OFD Sender: No OFD packet to send [01:48:27]OFD Sender: No OFD packet to send [01:48:32]OFD Sender: No OFD packet to send [01:48:37]OFD Sender: No OFD packet to send [01:48:42]OFD Sender: No OFD packet to send [01:48:47]OFD Sender: No OFD packet to send [01:48:52]OFD Sender: No OFD packet to send [01:48:57]OFD Sender: No OFD packet to send [01:49:02]OFD Sender: No OFD packet to send [01:49:07]OFD Sender: No OFD packet to send [01:49:12]OFD Sender: No OFD packet to send [01:49:17]OFD Sender: No OFD packet to send [01:49:22]OFD Sender: No OFD packet to send [01:49:27]OFD Sender: No OFD packet to send [01:49:32]OFD Sender: No OFD packet to send [01:49:37]OFD Sender: No OFD packet to send [01:49:42]OFD Sender: No OFD packet to send [01:49:47]OFD Sender: No OFD packet to send [01:49:52]OFD Sender: No OFD packet to send [01:49:57]OFD Sender: No OFD packet to send [01:50:02]OFD Sender: No OFD packet to send [01:50:07]OFD Sender: No OFD packet to send [01:50:12]OFD Sender: No OFD packet to send [01:50:17]OFD Sender: No OFD packet to send [01:50:22]OFD Sender: No OFD packet to send [01:50:27]OFD Sender: No OFD packet to send [01:50:32]OFD Sender: No OFD packet to send [01:50:37]OFD Sender: No OFD packet to send [01:50:42]OFD Sender: No OFD packet to send [01:50:47]OFD Sender: No OFD packet to send [01:50:52]OFD Sender: No OFD packet to send [01:50:57]OFD Sender: No OFD packet to send [01:51:02]OFD Sender: No OFD packet to send [01:51:07]OFD Sender: No OFD packet to send [01:51:12]OFD Sender: No OFD packet to send [01:51:17]OFD Sender: No OFD packet to send [01:51:22]OFD Sender: No OFD packet to send [01:51:27]OFD Sender: No OFD packet to send [01:51:32]OFD Sender: No OFD packet to send [01:51:37]OFD Sender: No OFD packet to send [01:51:42]OFD Sender: No OFD packet to send [01:51:47]OFD Sender: No OFD packet to send [01:51:52]OFD Sender: No OFD packet to send [01:51:57]OFD Sender: No OFD packet to send [01:52:02]OFD Sender: No OFD packet to send [01:52:07]OFD Sender: No OFD packet to send [01:52:12]OFD Sender: No OFD packet to send [01:52:17]OFD Sender: No OFD packet to send [01:52:22]OFD Sender: No OFD packet to send [01:52:27]OFD Sender: No OFD packet to send [01:52:32]OFD Sender: No OFD packet to send [01:52:37]OFD Sender: No OFD packet to send [01:52:42]OFD Sender: No OFD packet to send [01:52:47]OFD Sender: No OFD packet to send [01:52:52]OFD Sender: No OFD packet to send [01:52:57]OFD Sender: No OFD packet to send [01:53:02]OFD Sender: No OFD packet to send [01:53:07]OFD Sender: No OFD packet to send [01:53:12]OFD Sender: No OFD packet to send [01:53:17]OFD Sender: No OFD packet to send [01:53:22]OFD Sender: No OFD packet to send [01:53:27]OFD Sender: No OFD packet to send [01:53:32]OFD Sender: No OFD packet to send [01:53:37]OFD Sender: No OFD packet to send [01:53:42]OFD Sender: No OFD packet to send [01:53:47]OFD Sender: No OFD packet to send [01:53:52]OFD Sender: No OFD packet to send [01:53:57]OFD Sender: No OFD packet to send [01:54:02]OFD Sender: No OFD packet to send [01:54:07]OFD Sender: No OFD packet to send [01:54:12]OFD Sender: No OFD packet to send [01:54:17]OFD Sender: No OFD packet to send [01:54:22]OFD Sender: No OFD packet to send [01:54:27]OFD Sender: No OFD packet to send [01:54:32]OFD Sender: No OFD packet to send [01:54:37]OFD Sender: No OFD packet to send [01:54:42]OFD Sender: No OFD packet to send [01:54:47]OFD Sender: No OFD packet to send [01:54:52]OFD Sender: No OFD packet to send [01:54:57]OFD Sender: No OFD packet to send [01:55:02]OFD Sender: No OFD packet to send [01:55:07]OFD Sender: No OFD packet to send [01:55:12]OFD Sender: No OFD packet to send [01:55:17]OFD Sender: No OFD packet to send [01:55:22]OFD Sender: No OFD packet to send [01:55:27]OFD Sender: No OFD packet to send [01:55:32]OFD Sender: No OFD packet to send [01:55:37]OFD Sender: No OFD packet to send [01:55:42]OFD Sender: No OFD packet to send [01:55:47]OFD Sender: No OFD packet to send [01:55:52]OFD Sender: No OFD packet to send [01:55:57]OFD Sender: No OFD packet to send [01:56:02]OFD Sender: No OFD packet to send [01:56:07]OFD Sender: No OFD packet to send [01:56:12]OFD Sender: No OFD packet to send [01:56:17]OFD Sender: No OFD packet to send [01:56:22]OFD Sender: No OFD packet to send [01:56:27]OFD Sender: No OFD packet to send [01:56:32]OFD Sender: No OFD packet to send [01:56:37]OFD Sender: No OFD packet to send [01:56:42]OFD Sender: No OFD packet to send [01:56:47]OFD Sender: No OFD packet to send [01:56:52]OFD Sender: No OFD packet to send [01:56:57]OFD Sender: No OFD packet to send [01:57:02]OFD Sender: No OFD packet to send [01:57:07]OFD Sender: No OFD packet to send [01:57:12]OFD Sender: No OFD packet to send [01:57:17]OFD Sender: No OFD packet to send [01:57:22]OFD Sender: No OFD packet to send [01:57:27]OFD Sender: No OFD packet to send [01:57:32]OFD Sender: No OFD packet to send [01:57:37]OFD Sender: No OFD packet to send [01:57:42]OFD Sender: No OFD packet to send [01:57:47]OFD Sender: No OFD packet to send [01:57:52]OFD Sender: No OFD packet to send [01:57:57]OFD Sender: No OFD packet to send [01:58:02]OFD Sender: No OFD packet to send [01:58:07]OFD Sender: No OFD packet to send [01:58:12]OFD Sender: No OFD packet to send [01:58:17]OFD Sender: No OFD packet to send [01:58:22]OFD Sender: No OFD packet to send [01:58:27]OFD Sender: No OFD packet to send [01:58:32]OFD Sender: No OFD packet to send [01:58:37]OFD Sender: No OFD packet to send [01:58:42]OFD Sender: No OFD packet to send [01:58:47]OFD Sender: No OFD packet to send [01:58:52]OFD Sender: No OFD packet to send [01:58:57]OFD Sender: No OFD packet to send [01:59:02]OFD Sender: No OFD packet to send [01:59:07]OFD Sender: No OFD packet to send [01:59:12]OFD Sender: No OFD packet to send [01:59:17]OFD Sender: No OFD packet to send [01:59:22]OFD Sender: No OFD packet to send [01:59:27]OFD Sender: No OFD packet to send [01:59:32]OFD Sender: No OFD packet to send [01:59:37]OFD Sender: No OFD packet to send [01:59:42]OFD Sender: No OFD packet to send [01:59:47]OFD Sender: No OFD packet to send [01:59:52]OFD Sender: No OFD packet to send [01:59:57]OFD Sender: No OFD packet to send [02:00:02]OFD Sender: No OFD packet to send [02:00:07]OFD Sender: No OFD packet to send [02:00:12]OFD Sender: No OFD packet to send [02:00:17]OFD Sender: No OFD packet to send [02:00:22]OFD Sender: No OFD packet to send [02:00:27]OFD Sender: No OFD packet to send [02:00:32]OFD Sender: No OFD packet to send [02:00:37]OFD Sender: No OFD packet to send [02:00:42]OFD Sender: No OFD packet to send [02:00:47]OFD Sender: No OFD packet to send [02:00:52]OFD Sender: No OFD packet to send [02:00:57]OFD Sender: No OFD packet to send [02:01:02]OFD Sender: No OFD packet to send [02:01:07]OFD Sender: No OFD packet to send [02:01:12]OFD Sender: No OFD packet to send [02:01:17]OFD Sender: No OFD packet to send [02:01:22]OFD Sender: No OFD packet to send [02:01:27]OFD Sender: No OFD packet to send [02:01:32]OFD Sender: No OFD packet to send [02:01:37]OFD Sender: No OFD packet to send [02:01:42]OFD Sender: No OFD packet to send [02:01:47]OFD Sender: No OFD packet to send [02:01:52]OFD Sender: No OFD packet to send [02:01:57]OFD Sender: No OFD packet to send [02:02:02]OFD Sender: No OFD packet to send [02:02:07]OFD Sender: No OFD packet to send [02:02:12]OFD Sender: No OFD packet to send [02:02:17]OFD Sender: No OFD packet to send [02:02:22]OFD Sender: No OFD packet to send [02:02:27]OFD Sender: No OFD packet to send [02:02:32]OFD Sender: No OFD packet to send [02:02:37]OFD Sender: No OFD packet to send [02:02:42]OFD Sender: No OFD packet to send [02:02:47]OFD Sender: No OFD packet to send [02:02:52]OFD Sender: No OFD packet to send [02:02:57]OFD Sender: No OFD packet to send [02:03:02]OFD Sender: No OFD packet to send [02:03:07]OFD Sender: No OFD packet to send [02:03:12]OFD Sender: No OFD packet to send [02:03:17]OFD Sender: No OFD packet to send [02:03:22]OFD Sender: No OFD packet to send [02:03:27]OFD Sender: No OFD packet to send [02:03:32]OFD Sender: No OFD packet to send [02:03:37]OFD Sender: No OFD packet to send [02:03:42]OFD Sender: No OFD packet to send [02:03:47]OFD Sender: No OFD packet to send [02:03:52]OFD Sender: No OFD packet to send [02:03:57]OFD Sender: No OFD packet to send [02:04:02]OFD Sender: No OFD packet to send [02:04:07]OFD Sender: No OFD packet to send [02:04:12]OFD Sender: No OFD packet to send [02:04:17]OFD Sender: No OFD packet to send [02:04:22]OFD Sender: No OFD packet to send [02:04:27]OFD Sender: No OFD packet to send [02:04:32]OFD Sender: No OFD packet to send [02:04:37]OFD Sender: No OFD packet to send [02:04:42]OFD Sender: No OFD packet to send [02:04:47]OFD Sender: No OFD packet to send [02:04:52]OFD Sender: No OFD packet to send [02:04:57]OFD Sender: No OFD packet to send [02:05:02]OFD Sender: No OFD packet to send [02:05:07]OFD Sender: No OFD packet to send [02:05:12]OFD Sender: No OFD packet to send [02:05:17]OFD Sender: No OFD packet to send [02:05:22]OFD Sender: No OFD packet to send [02:05:27]OFD Sender: No OFD packet to send [02:05:32]OFD Sender: No OFD packet to send [02:05:37]OFD Sender: No OFD packet to send [02:05:42]OFD Sender: No OFD packet to send [02:05:47]OFD Sender: No OFD packet to send [02:05:52]OFD Sender: No OFD packet to send [02:05:57]OFD Sender: No OFD packet to send [02:06:03]OFD Sender: No OFD packet to send [02:06:08]OFD Sender: No OFD packet to send [02:06:13]OFD Sender: No OFD packet to send [02:06:18]OFD Sender: No OFD packet to send [02:06:23]OFD Sender: No OFD packet to send [02:06:28]OFD Sender: No OFD packet to send [02:06:33]OFD Sender: No OFD packet to send [02:06:38]OFD Sender: No OFD packet to send [02:06:43]OFD Sender: No OFD packet to send [02:06:48]OFD Sender: No OFD packet to send [02:06:53]OFD Sender: No OFD packet to send [02:06:58]OFD Sender: No OFD packet to send [02:07:03]OFD Sender: No OFD packet to send [02:07:08]OFD Sender: No OFD packet to send [02:07:13]OFD Sender: No OFD packet to send [02:07:18]OFD Sender: No OFD packet to send [02:07:23]OFD Sender: No OFD packet to send [02:07:28]OFD Sender: No OFD packet to send [02:07:33]OFD Sender: No OFD packet to send [02:07:38]OFD Sender: No OFD packet to send [02:07:43]OFD Sender: No OFD packet to send [02:07:48]OFD Sender: No OFD packet to send [02:07:53]OFD Sender: No OFD packet to send [02:07:58]OFD Sender: No OFD packet to send [02:08:03]OFD Sender: No OFD packet to send [02:08:08]OFD Sender: No OFD packet to send [02:08:13]OFD Sender: No OFD packet to send [02:08:18]OFD Sender: No OFD packet to send [02:08:23]OFD Sender: No OFD packet to send [02:08:28]OFD Sender: No OFD packet to send [02:08:33]OFD Sender: No OFD packet to send [02:08:38]OFD Sender: No OFD packet to send [02:08:43]OFD Sender: No OFD packet to send [02:08:48]OFD Sender: No OFD packet to send [02:08:53]OFD Sender: No OFD packet to send [02:08:58]OFD Sender: No OFD packet to send [02:09:03]OFD Sender: No OFD packet to send [02:09:08]OFD Sender: No OFD packet to send [02:09:13]OFD Sender: No OFD packet to send [02:09:18]OFD Sender: No OFD packet to send [02:09:23]OFD Sender: No OFD packet to send [02:09:28]OFD Sender: No OFD packet to send [02:09:33]OFD Sender: No OFD packet to send [02:09:38]OFD Sender: No OFD packet to send [02:09:43]OFD Sender: No OFD packet to send [02:09:48]OFD Sender: No OFD packet to send [02:09:53]OFD Sender: No OFD packet to send [02:09:58]OFD Sender: No OFD packet to send [02:10:03]OFD Sender: No OFD packet to send [02:10:08]OFD Sender: No OFD packet to send [02:10:13]OFD Sender: No OFD packet to send [02:10:18]OFD Sender: No OFD packet to send [02:10:23]OFD Sender: No OFD packet to send [02:10:28]OFD Sender: No OFD packet to send [02:10:33]OFD Sender: No OFD packet to send [02:10:38]OFD Sender: No OFD packet to send [02:10:43]OFD Sender: No OFD packet to send [02:10:48]OFD Sender: No OFD packet to send [02:10:53]OFD Sender: No OFD packet to send [02:10:58]OFD Sender: No OFD packet to send [02:11:03]OFD Sender: No OFD packet to send [02:11:08]OFD Sender: No OFD packet to send [02:11:13]OFD Sender: No OFD packet to send [02:11:18]OFD Sender: No OFD packet to send [02:11:23]OFD Sender: No OFD packet to send [02:11:28]OFD Sender: No OFD packet to send [02:11:33]OFD Sender: No OFD packet to send [02:11:38]OFD Sender: No OFD packet to send [02:11:43]OFD Sender: No OFD packet to send [02:11:48]OFD Sender: No OFD packet to send [02:11:53]OFD Sender: No OFD packet to send [02:11:58]OFD Sender: No OFD packet to send [02:12:03]OFD Sender: No OFD packet to send [02:12:08]OFD Sender: No OFD packet to send [02:12:13]OFD Sender: No OFD packet to send [02:12:18]OFD Sender: No OFD packet to send [02:12:23]OFD Sender: No OFD packet to send [02:12:28]OFD Sender: No OFD packet to send [02:12:33]OFD Sender: No OFD packet to send [02:12:38]OFD Sender: No OFD packet to send [02:12:43]OFD Sender: No OFD packet to send [02:12:48]OFD Sender: No OFD packet to send [02:12:53]OFD Sender: No OFD packet to send [02:12:58]OFD Sender: No OFD packet to send [02:13:03]OFD Sender: No OFD packet to send [02:13:08]OFD Sender: No OFD packet to send [02:13:13]OFD Sender: No OFD packet to send [02:13:18]OFD Sender: No OFD packet to send [02:13:23]OFD Sender: No OFD packet to send [02:13:28]OFD Sender: No OFD packet to send [02:13:33]OFD Sender: No OFD packet to send [02:13:38]OFD Sender: No OFD packet to send [02:13:43]OFD Sender: No OFD packet to send [02:13:48]OFD Sender: No OFD packet to send [02:13:53]OFD Sender: No OFD packet to send [02:13:58]OFD Sender: No OFD packet to send [02:14:03]OFD Sender: No OFD packet to send [02:14:08]OFD Sender: No OFD packet to send [02:14:13]OFD Sender: No OFD packet to send [02:14:18]OFD Sender: No OFD packet to send [02:14:23]OFD Sender: No OFD packet to send [02:14:28]OFD Sender: No OFD packet to send [02:14:33]OFD Sender: No OFD packet to send [02:14:38]OFD Sender: No OFD packet to send [02:14:43]OFD Sender: No OFD packet to send [02:14:48]OFD Sender: No OFD packet to send [02:14:53]OFD Sender: No OFD packet to send [02:14:58]OFD Sender: No OFD packet to send [02:15:03]OFD Sender: No OFD packet to send [02:15:08]OFD Sender: No OFD packet to send [02:15:13]OFD Sender: No OFD packet to send [02:15:18]OFD Sender: No OFD packet to send [02:15:23]OFD Sender: No OFD packet to send [02:15:28]OFD Sender: No OFD packet to send [02:15:33]OFD Sender: No OFD packet to send [02:15:38]OFD Sender: No OFD packet to send [02:15:43]OFD Sender: No OFD packet to send [02:15:48]OFD Sender: No OFD packet to send [02:15:53]OFD Sender: No OFD packet to send [02:15:58]OFD Sender: No OFD packet to send [02:16:03]OFD Sender: No OFD packet to send [02:16:08]OFD Sender: No OFD packet to send [02:16:13]OFD Sender: No OFD packet to send [02:16:18]OFD Sender: No OFD packet to send [02:16:23]OFD Sender: No OFD packet to send [02:16:28]OFD Sender: No OFD packet to send [02:16:33]OFD Sender: No OFD packet to send [02:16:38]OFD Sender: No OFD packet to send [02:16:43]OFD Sender: No OFD packet to send [02:16:48]OFD Sender: No OFD packet to send [02:16:53]OFD Sender: No OFD packet to send [02:16:58]OFD Sender: No OFD packet to send [02:17:03]OFD Sender: No OFD packet to send [02:17:08]OFD Sender: No OFD packet to send [02:17:13]OFD Sender: No OFD packet to send [02:17:18]OFD Sender: No OFD packet to send [02:17:23]OFD Sender: No OFD packet to send [02:17:28]OFD Sender: No OFD packet to send [02:17:33]OFD Sender: No OFD packet to send [02:17:38]OFD Sender: No OFD packet to send [02:17:43]OFD Sender: No OFD packet to send [02:17:48]OFD Sender: No OFD packet to send [02:17:53]OFD Sender: No OFD packet to send [02:17:58]OFD Sender: No OFD packet to send [02:18:03]OFD Sender: No OFD packet to send [02:18:08]OFD Sender: No OFD packet to send [02:18:13]OFD Sender: No OFD packet to send [02:18:18]OFD Sender: No OFD packet to send [02:18:23]OFD Sender: No OFD packet to send [02:18:28]OFD Sender: No OFD packet to send [02:18:33]OFD Sender: No OFD packet to send [02:18:38]OFD Sender: No OFD packet to send [02:18:43]OFD Sender: No OFD packet to send [02:18:48]OFD Sender: No OFD packet to send [02:18:53]OFD Sender: No OFD packet to send [02:18:58]OFD Sender: No OFD packet to send [02:19:03]OFD Sender: No OFD packet to send [02:19:08]OFD Sender: No OFD packet to send [02:19:13]OFD Sender: No OFD packet to send [02:19:18]OFD Sender: No OFD packet to send [02:19:23]OFD Sender: No OFD packet to send [02:19:28]OFD Sender: No OFD packet to send [02:19:33]OFD Sender: No OFD packet to send [02:19:38]OFD Sender: No OFD packet to send [02:19:43]OFD Sender: No OFD packet to send [02:19:48]OFD Sender: No OFD packet to send [02:19:53]OFD Sender: No OFD packet to send [02:19:58]OFD Sender: No OFD packet to send [02:20:03]OFD Sender: No OFD packet to send [02:20:08]OFD Sender: No OFD packet to send [02:20:13]OFD Sender: No OFD packet to send [02:20:18]OFD Sender: No OFD packet to send [02:20:23]OFD Sender: No OFD packet to send [02:20:28]OFD Sender: No OFD packet to send [02:20:33]OFD Sender: No OFD packet to send [02:20:38]OFD Sender: No OFD packet to send [02:20:43]OFD Sender: No OFD packet to send [02:20:48]OFD Sender: No OFD packet to send [02:20:53]OFD Sender: No OFD packet to send [02:20:58]OFD Sender: No OFD packet to send [02:21:03]OFD Sender: No OFD packet to send [02:21:08]OFD Sender: No OFD packet to send [02:21:13]OFD Sender: No OFD packet to send [02:21:18]OFD Sender: No OFD packet to send [02:21:23]OFD Sender: No OFD packet to send [02:21:28]OFD Sender: No OFD packet to send [02:21:33]OFD Sender: No OFD packet to send [02:21:38]OFD Sender: No OFD packet to send [02:21:43]OFD Sender: No OFD packet to send [02:21:48]OFD Sender: No OFD packet to send [02:21:53]OFD Sender: No OFD packet to send [02:21:58]OFD Sender: No OFD packet to send [02:22:03]OFD Sender: No OFD packet to send [02:22:08]OFD Sender: No OFD packet to send [02:22:13]OFD Sender: No OFD packet to send [02:22:18]OFD Sender: No OFD packet to send [02:22:23]OFD Sender: No OFD packet to send [02:22:28]OFD Sender: No OFD packet to send [02:22:33]OFD Sender: No OFD packet to send [02:22:38]OFD Sender: No OFD packet to send [02:22:43]OFD Sender: No OFD packet to send [02:22:48]OFD Sender: No OFD packet to send [02:22:53]OFD Sender: No OFD packet to send [02:22:58]OFD Sender: No OFD packet to send [02:23:03]OFD Sender: No OFD packet to send [02:23:08]OFD Sender: No OFD packet to send [02:23:13]OFD Sender: No OFD packet to send [02:23:18]OFD Sender: No OFD packet to send [02:23:23]OFD Sender: No OFD packet to send [02:23:28]OFD Sender: No OFD packet to send [02:23:33]OFD Sender: No OFD packet to send [02:23:38]OFD Sender: No OFD packet to send [02:23:43]OFD Sender: No OFD packet to send [02:23:48]OFD Sender: No OFD packet to send [02:23:53]OFD Sender: No OFD packet to send [02:23:58]OFD Sender: No OFD packet to send [02:24:03]OFD Sender: No OFD packet to send [02:24:08]OFD Sender: No OFD packet to send [02:24:13]OFD Sender: No OFD packet to send [02:24:18]OFD Sender: No OFD packet to send [02:24:23]OFD Sender: No OFD packet to send [02:24:28]OFD Sender: No OFD packet to send [02:24:33]OFD Sender: No OFD packet to send [02:24:38]OFD Sender: No OFD packet to send [02:24:43]OFD Sender: No OFD packet to send [02:24:49]OFD Sender: No OFD packet to send [02:24:54]OFD Sender: No OFD packet to send [02:24:59]OFD Sender: No OFD packet to send [02:25:04]OFD Sender: No OFD packet to send [02:25:09]OFD Sender: No OFD packet to send [02:25:14]OFD Sender: No OFD packet to send [02:25:19]OFD Sender: No OFD packet to send [02:25:24]OFD Sender: No OFD packet to send [02:25:29]OFD Sender: No OFD packet to send [02:25:34]OFD Sender: No OFD packet to send [02:25:39]OFD Sender: No OFD packet to send [02:25:44]OFD Sender: No OFD packet to send [02:25:49]OFD Sender: No OFD packet to send [02:25:54]OFD Sender: No OFD packet to send [02:25:59]OFD Sender: No OFD packet to send [02:26:04]OFD Sender: No OFD packet to send [02:26:09]OFD Sender: No OFD packet to send [02:26:14]OFD Sender: No OFD packet to send [02:26:19]OFD Sender: No OFD packet to send [02:26:24]OFD Sender: No OFD packet to send [02:26:29]OFD Sender: No OFD packet to send [02:26:34]OFD Sender: No OFD packet to send [02:26:39]OFD Sender: No OFD packet to send [02:26:44]OFD Sender: No OFD packet to send [02:26:49]OFD Sender: No OFD packet to send [02:26:54]OFD Sender: No OFD packet to send [02:26:59]OFD Sender: No OFD packet to send [02:27:04]OFD Sender: No OFD packet to send [02:27:09]OFD Sender: No OFD packet to send [02:27:14]OFD Sender: No OFD packet to send [02:27:19]OFD Sender: No OFD packet to send [02:27:24]OFD Sender: No OFD packet to send [02:27:29]OFD Sender: No OFD packet to send [02:27:34]OFD Sender: No OFD packet to send [02:27:39]OFD Sender: No OFD packet to send [02:27:44]OFD Sender: No OFD packet to send [02:27:49]OFD Sender: No OFD packet to send [02:27:54]OFD Sender: No OFD packet to send [02:27:59]OFD Sender: No OFD packet to send [02:28:04]OFD Sender: No OFD packet to send [02:28:09]OFD Sender: No OFD packet to send [02:28:14]OFD Sender: No OFD packet to send [02:28:19]OFD Sender: No OFD packet to send [02:28:24]OFD Sender: No OFD packet to send [02:28:29]OFD Sender: No OFD packet to send [02:28:34]OFD Sender: No OFD packet to send [02:28:39]OFD Sender: No OFD packet to send [02:28:44]OFD Sender: No OFD packet to send [02:28:49]OFD Sender: No OFD packet to send [02:28:54]OFD Sender: No OFD packet to send [02:28:59]OFD Sender: No OFD packet to send [02:29:04]OFD Sender: No OFD packet to send [02:29:09]OFD Sender: No OFD packet to send [02:29:14]OFD Sender: No OFD packet to send [02:29:19]OFD Sender: No OFD packet to send [02:29:24]OFD Sender: No OFD packet to send [02:29:29]OFD Sender: No OFD packet to send [02:29:34]OFD Sender: No OFD packet to send [02:29:39]OFD Sender: No OFD packet to send [02:29:44]OFD Sender: No OFD packet to send [02:29:49]OFD Sender: No OFD packet to send [02:29:54]OFD Sender: No OFD packet to send [02:29:59]OFD Sender: No OFD packet to send [02:30:04]OFD Sender: No OFD packet to send [02:30:09]OFD Sender: No OFD packet to send [02:30:14]OFD Sender: No OFD packet to send [02:30:19]OFD Sender: No OFD packet to send [02:30:24]OFD Sender: No OFD packet to send [02:30:29]OFD Sender: No OFD packet to send [02:30:34]OFD Sender: No OFD packet to send [02:30:39]OFD Sender: No OFD packet to send [02:30:44]OFD Sender: No OFD packet to send [02:30:49]OFD Sender: No OFD packet to send [02:30:54]OFD Sender: No OFD packet to send [02:30:59]OFD Sender: No OFD packet to send [02:31:04]OFD Sender: No OFD packet to send [02:31:09]OFD Sender: No OFD packet to send [02:31:14]OFD Sender: No OFD packet to send [02:31:19]OFD Sender: No OFD packet to send [02:31:24]OFD Sender: No OFD packet to send [02:31:29]OFD Sender: No OFD packet to send [02:31:34]OFD Sender: No OFD packet to send [02:31:39]OFD Sender: No OFD packet to send [02:31:44]OFD Sender: No OFD packet to send [02:31:49]OFD Sender: No OFD packet to send [02:31:54]OFD Sender: No OFD packet to send [02:31:59]OFD Sender: No OFD packet to send [02:32:04]OFD Sender: No OFD packet to send [02:32:09]OFD Sender: No OFD packet to send [02:32:14]OFD Sender: No OFD packet to send [02:32:19]OFD Sender: No OFD packet to send [02:32:24]OFD Sender: No OFD packet to send [02:32:29]OFD Sender: No OFD packet to send [02:32:34]OFD Sender: No OFD packet to send [02:32:39]OFD Sender: No OFD packet to send [02:32:44]OFD Sender: No OFD packet to send [02:32:49]OFD Sender: No OFD packet to send [02:32:54]OFD Sender: No OFD packet to send [02:32:59]OFD Sender: No OFD packet to send [02:33:04]OFD Sender: No OFD packet to send [02:33:09]OFD Sender: No OFD packet to send [02:33:14]OFD Sender: No OFD packet to send [02:33:19]OFD Sender: No OFD packet to send [02:33:24]OFD Sender: No OFD packet to send [02:33:29]OFD Sender: No OFD packet to send [02:33:34]OFD Sender: No OFD packet to send [02:33:39]OFD Sender: No OFD packet to send [02:33:44]OFD Sender: No OFD packet to send [02:33:49]OFD Sender: No OFD packet to send [02:33:54]OFD Sender: No OFD packet to send [02:33:59]OFD Sender: No OFD packet to send [02:34:04]OFD Sender: No OFD packet to send [02:34:09]OFD Sender: No OFD packet to send [02:34:14]OFD Sender: No OFD packet to send [02:34:19]OFD Sender: No OFD packet to send [02:34:24]OFD Sender: No OFD packet to send [02:34:29]OFD Sender: No OFD packet to send [02:34:34]OFD Sender: No OFD packet to send [02:34:39]OFD Sender: No OFD packet to send [02:34:44]OFD Sender: No OFD packet to send [02:34:49]OFD Sender: No OFD packet to send [02:34:54]OFD Sender: No OFD packet to send [02:34:59]OFD Sender: No OFD packet to send [02:35:04]OFD Sender: No OFD packet to send [02:35:09]OFD Sender: No OFD packet to send [02:35:14]OFD Sender: No OFD packet to send [02:35:19]OFD Sender: No OFD packet to send [02:35:24]OFD Sender: No OFD packet to send [02:35:29]OFD Sender: No OFD packet to send [02:35:34]OFD Sender: No OFD packet to send [02:35:36]accept exits with 7 [02:35:36]New connection [02:35:36]New thread 3066666340 created [02:35:36]Thread 3066809700 joined [02:35:36]Waiting for new connection... [02:35:36] Sock 7.Parse request [02:35:36]Sock 7.Check first char [02:35:36]Sock 7.First char is OK [02:35:36]request: POST /json_proto HTTP/1.0 [02:35:36]Method: POST [02:35:36]URL: /json_proto [02:35:36]Method is POST - this is cgi request [02:35:36]url: /json_proto [02:35:36]query_string will be loaded in cgi processing [02:35:36]execute_cgi json_proto POST (null) [02:35:36]execute_cgi path=json_proto method=POST [02:35:36]POST find Content-Length [02:35:36]Host: 172.17.44.195:8080 [02:35:36]Content-Length: 680 [02:35:36]Content-Type: application/json [02:35:36] [02:35:36]POST finish read [02:35:36]Found Content-Length = 680 [02:35:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963418", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 61.680, "sum" : 4700.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4700.00, "total" : 4700.00, "payments": [ { "type": 0, "sum" : 4700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:35:36]execute_script... [02:35: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)1963418", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 61.680, "sum" : 4700.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4700.00, "total" : 4700.00, "payments": [ { "type": 0, "sum" : 4700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:35:36]POST & json_proto [02:35:36]process_json_proto [02:35:36]json parsed OK: [02:35:36]protocol is kg_v1.0 [02:35:36]action value=close_receipt [02:35:36]process_action close_receipt [02:35:36]cmd_close_receipt [02:35:36]MH_GetDate [02:35:36]Write to MH i2c: F0 00 00 C8 25 DC [02:35:36]Write i2c OK [02:35:36]MH_I2C_Read... [02:35:36]Read from MH i2c: F0 [02:35:36]MH_I2C_Read... [02:35:36]Read from MH i2c: F0 09 00 [02:35:36]MH_I2C_Read... [02:35:36]Read from MH i2c: F0 09 00 C8 25 00 FB BD 15 67 82 C9 CF 66 99 [02:35:36]GetLastDocTimeStamp 1729475091 [02:35:36]current date 1729478139 [02:35:36]FM_GetShiftState [02:35:36]SAM_PROTO_GetShiftState [02:35:36]wFMCommunicate request_size=4 [02:35:36]MH_SAM_APDU [02:35:36]CAPDU: 80 13 01 00 [02:35:36]Write to MH i2c: E2 08 00 C9 25 80 13 01 00 00 00 00 00 6B [02:35:36]Write i2c OK [02:35:36]MH_I2C_Read... [02:35:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:35:36]Read from MH i2c: E2 [02:35:36]MH_I2C_Read... [02:35:36]Read from MH i2c: E2 0E 00 [02:35:36]MH_I2C_Read... [02:35:36]Read from MH i2c: E2 0E 00 C9 25 00 09 00 01 F4 9B 15 67 00 00 00 00 90 00 82 [02:35:36]RAPDU: 09 00 01 F4 9B 15 67 00 00 00 00 90 00 [02:35:36]wFMCommunicate OK [02:35:36]SAM_PROTO_GetShiftState done [02:35:36]FM_GetShiftState done [02:35:36]opened in 1729469428 [02:35:36]opened+sec_in_day 1729555828 [02:35:36]quantity*price = 470001 [02:35:36]sum+1 = 470003 [02:35:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 4700.00 Внесено: 4700.00 СДАЧА: 0.00 НСП 1% : 41.59 НДС 12% : 499.12 Наличными: 4700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 16 21.10.2024 02:35 Смена: 534 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227747 ФПД: 251055787185516 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T023539&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227747&fm=251055787185516&tin=02508201610067®Number=0000000000091685&sum=470000 [02:35:37]StoreToDocumentArchive [02:35:37]shift 534 fd 227747 [02:35:37]save to /storage/0534/doc_00227747 [02:35:37]save last doc name /storage/0534/doc_00227747 to /storage/kkm_last_doc_name [02:35:37]save OK [02:35:37]Clear old archive folders... [02:35:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [02:35:37]tlvbuf is 00C49DD0 [02:35:37]SAM_PROTO_ClearQueue [02:35:37]wFMCommunicate request_size=4 [02:35:37]MH_SAM_APDU [02:35:37]CAPDU: 80 09 00 00 [02:35:37]Write to MH i2c: E2 08 00 D6 25 80 09 00 00 00 00 00 00 6D [02:35:37]Write i2c OK [02:35:37]MH_I2C_Read... [02:35:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:35:37]Read from MH i2c: E2 [02:35:37]MH_I2C_Read... [02:35:37]Read from MH i2c: E2 03 00 [02:35:37]MH_I2C_Read... [02:35:37]Read from MH i2c: E2 03 00 D6 25 00 90 00 6F [02:35:37]RAPDU: 90 00 [02:35:37]wFMCommunicate OK [02:35:37]SAM_PROTO_ClearQueue done [02:35:37]KKMCreateOFDPacket [02:35:37]OFDProtocolAddRootSTLVToBuf [02:35:37]FM_MakeSignedData [02:35:37]FM_MakeSignedData [02:35:37]SAM_PROTO_SignData [02:35:37]wFMCommunicate request_size=4 [02:35:37]MH_SAM_APDU [02:35:37]CAPDU: 80 0D 01 02 [02:35:37]Write to MH i2c: E2 08 00 D7 25 80 0D 01 02 00 00 00 00 75 [02:35:37]Write i2c OK [02:35:37]MH_I2C_Read... [02:35:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:35:37]Read from MH i2c: E2 [02:35:37]MH_I2C_Read... [02:35:37]Read from MH i2c: E2 03 00 [02:35:37]MH_I2C_Read... [02:35:37]Read from MH i2c: E2 03 00 D7 25 00 90 00 70 [02:35:37]RAPDU: 90 00 [02:35:37]wFMCommunicate OK [02:35:37]wFMCommunicate request_size=255 [02:35:37]MH_SAM_APDU [02:35:37]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 F0 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F2 2B 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 2B 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 C2 00 00 00 00 07 04 06 00 F0 2B 07 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 FB BD 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A3 79 03 00 35 04 06 00 E4 55 7B 03 [02:35:37]Write to MH i2c: E2 02 01 D8 25 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 F0 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F2 2B 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 2B 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 C2 00 00 00 00 07 04 06 00 F0 2B 07 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 FB BD 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A3 79 03 00 35 04 06 00 E4 55 7B 03 00 00 3E [02:35:37]Write i2c OK [02:35:37]MH_I2C_Read... [02:35:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:35:38]Read from MH i2c: E2 [02:35:38]MH_I2C_Read... [02:35:38]Read from MH i2c: E2 03 00 [02:35:38]MH_I2C_Read... [02:35:38]Read from MH i2c: E2 03 00 D8 25 00 90 00 71 [02:35:38]RAPDU: 90 00 [02:35:38]wFMCommunicate OK [02:35:38]wFMCommunicate request_size=7 [02:35:38]MH_SAM_APDU [02:35:38]CAPDU: 80 0D 02 02 02 95 6C [02:35:38]Write to MH i2c: E2 0A 00 D9 25 80 0D 02 02 02 00 95 6C 00 00 7D [02:35:38]Write i2c OK [02:35:38]MH_I2C_Read... [02:35:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:35:38]Read from MH i2c: E2 [02:35:38]MH_I2C_Read... [02:35:38]Read from MH i2c: E2 03 00 [02:35:38]MH_I2C_Read... [02:35:38]Read from MH i2c: E2 03 00 D9 25 00 90 00 72 [02:35:38]RAPDU: 90 00 [02:35:38]wFMCommunicate OK [02:35:38]wFMCommunicate request_size=4 [02:35:38]MH_SAM_APDU [02:35:38]CAPDU: 80 0D 03 02 [02:35:38]Write to MH i2c: E2 08 00 DA 25 80 0D 03 02 00 00 00 00 7A [02:35:38]Write i2c OK [02:35:38]MH_I2C_Read... [02:35:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:35:38]Read from MH i2c: E2 [02:35:38]MH_I2C_Read... [02:35:38]Read from MH i2c: E2 0B 00 [02:35:38]MH_I2C_Read... [02:35:38]Read from MH i2c: E2 0B 00 DA 25 00 A8 D0 75 9F 32 AE 33 BF 90 00 D9 [02:35:38]RAPDU: A8 D0 75 9F 32 AE 33 BF 90 00 [02:35:38]wFMCommunicate OK [02:35:38]SAM_PROTO_SignData done [02:35:38]FM_MakeSignedData done [02:35:38]CreateOFDProtocolMessage [02:35:38]wFMCommunicate request_size=4 [02:35:38]MH_SAM_APDU [02:35:38]CAPDU: 80 11 00 00 [02:35:38]Write to MH i2c: E2 08 00 DB 25 80 11 00 00 00 00 00 00 7A [02:35:38]Write i2c OK [02:35:38]MH_I2C_Read... [02:35:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:35:38]Read from MH i2c: E2 [02:35:38]MH_I2C_Read... [02:35:38]Read from MH i2c: E2 17 00 [02:35:38]MH_I2C_Read... [02:35:38]Read from MH i2c: E2 17 00 DB 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 D1 [02:35:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [02:35:38]wFMCommunicate OK [02:35:38]CreateOFDProtocolMessage done [02:35:38]OFDSenderStorePacket 227747 [02:35:38]StoreOFDPacket docnum=227747 [02:35:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0C 01 00 00 2E 4E 04 01 F0 04 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 F0 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F2 2B 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 2B 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 C2 00 00 00 00 07 04 06 00 F0 2B 07 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 FB BD 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A3 79 03 00 35 04 06 00 E4 55 7B 03 95 6C A8 D0 75 9F 32 AE 33 BF [02:35:38]CheckFolder [02:35:38]dirname=/storage/ofd_packets [02:35:38]CheckFolder done [02:35:38]ProducePacketName [02:35:38]name=ofd_packets/00227747 [02:35:38]NVStorageSaveData ofd_packets/00227747 [02:35:38]File name is /storage/ofd_packets/00227747 [02:35:38]Write 298 bytes [02:35:38]NVStorageSaveData done [02:35:38]OFDSenderStorePacket done [02:35:38]KKMCreateOFDPacket done [02:35:38]NVStorageSaveData kkm_last_timestamp [02:35:38]File name is /storage/kkm_last_timestamp [02:35:38]Write 4 bytes [02:35:38]NVStorageSaveData done [02:35:38]ExternCall_PrintAddStr [02:35:38]wPrintStart [02:35:38]Write to MH i2c: 01 00 00 DC 25 01 [02:35:38]Write i2c OK [02:35:38]MH_I2C_Read... [02:35:38]Read from MH i2c: 01 [02:35:38]MH_I2C_Read... [02:35:38]Read from MH i2c: 01 07 00 [02:35:38]MH_I2C_Read... [02:35:38]Read from MH i2c: 01 07 00 DC 25 00 00 00 00 00 FF 0F 16 [02:35:38]RasterBufferAndPrint [02:35:38]line Счет N : (1)1963418 [02:35:38]line ИНН: 02508201610067 [02:35:38]line Контрольно-Кассовый Чек [02:35:38]line ПРОДАЖА [02:35:38]line ТРК (МРК, ГНК) : 31 [02:35:38]line Товар: 2710194210 [02:35:38]line ДТ-К-5 [02:35:38]line 61.680 * 76.20 [02:35:38]line = 4700.02 [02:35:38]line НДС 12% НСП 1% [02:35:38]line > о реализуемом товаре [02:35:38]line ОКРУГЛЕНИЕ: -0.02 [02:35:38]line ИТОГО: 4700.00 [02:35:38]line Внесено: 4700.00 [02:35:38]line СДАЧА: 0.00 [02:35:38]line НСП 1% : 41.59 [02:35:38]line НДС 12% : 499.12 [02:35:38]line Наличными: 4700.00 [02:35:38]line Безнал.: 0.00 [02:35:38]line Место: АЗС № 133 "Партнер Нефть" [02:35:38]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [02:35:38]line СНО: Общий режим [02:35:38]line Чек 16 21.10.2024 02:35 [02:35:38]line Смена: 534 ФФД: 1.0 [02:35:38]line ЗНМ: 0300000091 [02:35:38]line РНМ: 0000000000091685 [02:35:38]line Версия ККМ: 001 [02:35:38]line ФМ: 0000000000871839 [02:35:38]line ФД: 227747 [02:35:38]line ФПД: 251055787185516 [02:35:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T023539&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227747&fm=251055787185516&tin=02508201610067®Number=0000000000091685&sum=470000 [02:35:38]OFD Sender: Processing packet 227747 [packets to send 38, broken 37] [02:35:38]ProducePacketName [02:35:38]name=ofd_packets/00227747 [02:35:38]OFD Sender: To server: pG, [02:35:38]CommunicateWithHost lk.salyk.kg:30040 [02:35:38]ConnectInit lk.salyk.kg [02:35:38]written 0, free lines is 4095 [02:35:38]Connected sock=10 [02:35: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 33 39 0C 01 00 00 2E 4E 04 01 F0 04 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 F0 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F2 2B 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 2B 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 C2 00 00 00 00 07 04 06 00 F0 2B 07 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 FB BD 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A3 79 03 00 35 04 06 00 E4 55 7B 03 95 6C A8 D0 75 9F 32 AE 33 BF [02:35: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 33 39 4F 00 00 00 94 5B 47 00 4E 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 33 39 10 04 04 00 A3 79 03 00 F4 03 04 00 F8 68 15 67 B6 04 01 00 00 FE 15 3D C7 F4 71 E3 EB [02:35:38]CommunicateWithHost err = 0 [02:35:38]CheckOFDResponse [02:35:38]1017 (14) - 77093643461234 [02:35:38]1041 (16) - 0000000000871839 [02:35:38]1040 (4) - 227747 [02:35:38]1012 (4) - 20.10.2024 20:32 [02:35:38]1206 (1) - 0 [02:35:38]OFD Sender: Remove packet 227747 [02:35:38]ProducePacketName [02:35:38]name=ofd_packets/00227747 [02:35:38]NVStorageDeleteData [02:35:39]Write to MH i2c: 01 00 00 06 26 2C [02:35:39]Write i2c OK [02:35:39]MH_I2C_Read... [02:35:39]Read from MH i2c: 01 [02:35:39]MH_I2C_Read... [02:35:39]Read from MH i2c: 01 07 00 [02:35:39]MH_I2C_Read... [02:35:39]Read from MH i2c: 01 07 00 06 26 00 00 00 00 00 A7 0C E6 [02:35:39]RasterBufferAndPrint [02:35:39]line [02:35:39]line [02:35:39]line [02:35:39]line [02:35:39]line [02:35:39]written 0, free lines is 3242 [02:35:39]MH_Cut [02:35:39]Write to MH i2c: D1 01 00 0D 26 01 05 [02:35:39]Write i2c OK [02:35:39]MH_I2C_Read... [02:35:39]Read from MH i2c: D1 [02:35:39]MH_I2C_Read... [02:35:39]Read from MH i2c: D1 01 00 [02:35:39]MH_I2C_Read... [02:35:39]Read from MH i2c: D1 01 00 0D 26 00 04 [02:35:39]Write to MH i2c: 01 00 00 0E 26 34 [02:35:39]Write i2c OK [02:35:39]MH_I2C_Read... [02:35:39]OFD Sender: No OFD packet to send [02:35:39]*** Cut start [02:35:39]*** Partial cut [02:35:39]*** CUTSNS_PIN = 1 [02:35:40]*** CUTSNS_PIN = 0 [02:35:40]*** Brake cut motor [02:35:40]Read from MH i2c: 01 [02:35:40]MH_I2C_Read... [02:35:40]*** Stop cut motor [02:35:40]*** Cut end [02:35:40]Read from MH i2c: 01 07 00 [02:35:40]MH_I2C_Read... [02:35:40]Read from MH i2c: 01 07 00 0E 26 00 00 00 00 00 FF 0F 49 [02:35:40]process_action close_receipt done [02:35:40]requested_data is exist [02:35:40]produce_requested_data [02:35:40]requested_item fm.sn is exist - process it [02:35:40]wFMCommunicate request_size=4 [02:35:40]MH_SAM_APDU [02:35:40]CAPDU: 80 11 00 00 [02:35:40]Write to MH i2c: E2 08 00 0F 26 80 11 00 00 00 00 00 00 AF [02:35:40]Write i2c OK [02:35:40]MH_I2C_Read... [02:35:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:35:40]Read from MH i2c: E2 [02:35:40]MH_I2C_Read... [02:35:40]Read from MH i2c: E2 17 00 [02:35:40]MH_I2C_Read... [02:35:40]Read from MH i2c: E2 17 00 0F 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 06 [02:35:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [02:35:40]wFMCommunicate OK [02:35:40]requested_item fd.num is exist - process it [02:35:40]SAM_PROTO_GetFieldsCounters [02:35:40]wFMCommunicate request_size=4 [02:35:40]MH_SAM_APDU [02:35:40]CAPDU: 80 13 00 00 [02:35:40]Write to MH i2c: E2 08 00 10 26 80 13 00 00 00 00 00 00 B2 [02:35:40]Write i2c OK [02:35:40]MH_I2C_Read... [02:35:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:35:40]Read from MH i2c: E2 [02:35:40]MH_I2C_Read... [02:35:40]Read from MH i2c: E2 62 00 [02:35:40]MH_I2C_Read... [02:35:40]Read from MH i2c: E2 62 00 10 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A3 79 03 00 0E 04 04 00 16 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 42 [02:35: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A3 79 03 00 0E 04 04 00 16 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 [02:35:40]wFMCommunicate OK [02:35:40]SAM_PROTO_GetFieldsCounters done [02:35:40]requested_item shift.num is exist - process it [02:35:40]requested_item shift.opened is exist - process it [02:35:40]req_shift_opened [02:35:40]FM_GetShiftState [02:35:40]SAM_PROTO_GetShiftState [02:35:40]wFMCommunicate request_size=4 [02:35:40]MH_SAM_APDU [02:35:40]CAPDU: 80 13 01 00 [02:35:40]Write to MH i2c: E2 08 00 11 26 80 13 01 00 00 00 00 00 B4 [02:35:40]Write i2c OK [02:35:40]MH_I2C_Read... [02:35:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:35:40]Read from MH i2c: E2 [02:35:40]MH_I2C_Read... [02:35:40]Read from MH i2c: E2 0E 00 [02:35:40]MH_I2C_Read... [02:35:40]Read from MH i2c: E2 0E 00 11 26 00 09 00 01 F4 9B 15 67 00 00 00 00 90 00 CB [02:35:40]RAPDU: 09 00 01 F4 9B 15 67 00 00 00 00 90 00 [02:35:40]wFMCommunicate OK [02:35:40]SAM_PROTO_GetShiftState done [02:35:40]FM_GetShiftState done [02:35:40]req_shift_opened done [02:35:40]requested_item shift.open_date is exist - process it [02:35:40]req_shift_open_date [02:35:40]req_shift_open_date done [02:35:40]produce_requested_data done [02:35:40]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227747,"shift.num":534,"shift.opened":1,"shift.open_date":1729469428} [02:35:40]process_action_free close_receipt [02:35:40]json_value_free [02:35:40]json_value_free done [02:35:40]process_json_proto returns [02:35:40]Send response to host [02:35:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227747,"shift.num":534,"shift.opened":1,"shift.open_date":1729469428}}} [02:35:40]free response buf [02:35:40]execute_script done [02:35:40]execute_script returns [02:35:40]free content buf [02:35:40]Sock 7.Close socket [02:35:40]Sock 7.Thread stoped [02:35:44]OFD Sender: No OFD packet to send [02:35:49]OFD Sender: No OFD packet to send [02:35:54]OFD Sender: No OFD packet to send [02:35:59]OFD Sender: No OFD packet to send [02:36:04]OFD Sender: No OFD packet to send [02:36:09]OFD Sender: No OFD packet to send [02:36:14]OFD Sender: No OFD packet to send [02:36:19]OFD Sender: No OFD packet to send [02:36:24]OFD Sender: No OFD packet to send [02:36:29]OFD Sender: No OFD packet to send [02:36:34]OFD Sender: No OFD packet to send [02:36:39]OFD Sender: No OFD packet to send [02:36:44]OFD Sender: No OFD packet to send [02:36:49]OFD Sender: No OFD packet to send [02:36:54]OFD Sender: No OFD packet to send [02:36:59]OFD Sender: No OFD packet to send [02:37:04]OFD Sender: No OFD packet to send [02:37:09]OFD Sender: No OFD packet to send [02:37:14]OFD Sender: No OFD packet to send [02:37:19]OFD Sender: No OFD packet to send [02:37:24]OFD Sender: No OFD packet to send [02:37:29]OFD Sender: No OFD packet to send [02:37:34]OFD Sender: No OFD packet to send [02:37:39]OFD Sender: No OFD packet to send [02:37:44]OFD Sender: No OFD packet to send [02:37:49]OFD Sender: No OFD packet to send [02:37:54]OFD Sender: No OFD packet to send [02:37:59]OFD Sender: No OFD packet to send [02:38:04]OFD Sender: No OFD packet to send [02:38:09]OFD Sender: No OFD packet to send [02:38:14]OFD Sender: No OFD packet to send [02:38:19]OFD Sender: No OFD packet to send [02:38:24]OFD Sender: No OFD packet to send [02:38:29]OFD Sender: No OFD packet to send [02:38:34]OFD Sender: No OFD packet to send [02:38:39]OFD Sender: No OFD packet to send [02:38:44]OFD Sender: No OFD packet to send [02:38:49]OFD Sender: No OFD packet to send [02:38:54]OFD Sender: No OFD packet to send [02:38:59]OFD Sender: No OFD packet to send [02:39:04]OFD Sender: No OFD packet to send [02:39:09]OFD Sender: No OFD packet to send [02:39:14]OFD Sender: No OFD packet to send [02:39:19]OFD Sender: No OFD packet to send [02:39:24]OFD Sender: No OFD packet to send [02:39:29]OFD Sender: No OFD packet to send [02:39:34]OFD Sender: No OFD packet to send [02:39:39]OFD Sender: No OFD packet to send [02:39:44]OFD Sender: No OFD packet to send [02:39:49]OFD Sender: No OFD packet to send [02:39:54]OFD Sender: No OFD packet to send [02:39:59]OFD Sender: No OFD packet to send [02:40:04]OFD Sender: No OFD packet to send [02:40:09]OFD Sender: No OFD packet to send [02:40:14]OFD Sender: No OFD packet to send [02:40:19]OFD Sender: No OFD packet to send [02:40:24]OFD Sender: No OFD packet to send [02:40:29]OFD Sender: No OFD packet to send [02:40:34]OFD Sender: No OFD packet to send [02:40:39]OFD Sender: No OFD packet to send [02:40:44]OFD Sender: No OFD packet to send [02:40:49]OFD Sender: No OFD packet to send [02:40:54]OFD Sender: No OFD packet to send [02:40:59]OFD Sender: No OFD packet to send [02:41:04]OFD Sender: No OFD packet to send [02:41:09]OFD Sender: No OFD packet to send [02:41:14]OFD Sender: No OFD packet to send [02:41:19]OFD Sender: No OFD packet to send [02:41:24]OFD Sender: No OFD packet to send [02:41:29]OFD Sender: No OFD packet to send [02:41:34]OFD Sender: No OFD packet to send [02:41:39]OFD Sender: No OFD packet to send [02:41:44]OFD Sender: No OFD packet to send [02:41:49]OFD Sender: No OFD packet to send [02:41:54]OFD Sender: No OFD packet to send [02:41:59]OFD Sender: No OFD packet to send [02:42:04]OFD Sender: No OFD packet to send [02:42:09]OFD Sender: No OFD packet to send [02:42:14]OFD Sender: No OFD packet to send [02:42:19]OFD Sender: No OFD packet to send [02:42:24]OFD Sender: No OFD packet to send [02:42:29]OFD Sender: No OFD packet to send [02:42:34]OFD Sender: No OFD packet to send [02:42:39]OFD Sender: No OFD packet to send [02:42:44]OFD Sender: No OFD packet to send [02:42:49]OFD Sender: No OFD packet to send [02:42:54]OFD Sender: No OFD packet to send [02:42:59]OFD Sender: No OFD packet to send [02:43:04]OFD Sender: No OFD packet to send [02:43:09]OFD Sender: No OFD packet to send [02:43:14]OFD Sender: No OFD packet to send [02:43:19]OFD Sender: No OFD packet to send [02:43:24]OFD Sender: No OFD packet to send [02:43:29]OFD Sender: No OFD packet to send [02:43:34]OFD Sender: No OFD packet to send [02:43:39]OFD Sender: No OFD packet to send [02:43:44]OFD Sender: No OFD packet to send [02:43:49]OFD Sender: No OFD packet to send [02:43:54]OFD Sender: No OFD packet to send [02:43:59]OFD Sender: No OFD packet to send [02:44:04]OFD Sender: No OFD packet to send [02:44:09]OFD Sender: No OFD packet to send [02:44:14]OFD Sender: No OFD packet to send [02:44:19]OFD Sender: No OFD packet to send [02:44:24]OFD Sender: No OFD packet to send [02:44:29]OFD Sender: No OFD packet to send [02:44:34]OFD Sender: No OFD packet to send [02:44:39]OFD Sender: No OFD packet to send [02:44:44]OFD Sender: No OFD packet to send [02:44:49]OFD Sender: No OFD packet to send [02:44:54]OFD Sender: No OFD packet to send [02:44:59]OFD Sender: No OFD packet to send [02:45:04]OFD Sender: No OFD packet to send [02:45:09]OFD Sender: No OFD packet to send [02:45:14]OFD Sender: No OFD packet to send [02:45:19]OFD Sender: No OFD packet to send [02:45:24]OFD Sender: No OFD packet to send [02:45:29]OFD Sender: No OFD packet to send [02:45:34]OFD Sender: No OFD packet to send [02:45:39]OFD Sender: No OFD packet to send [02:45:44]OFD Sender: No OFD packet to send [02:45:49]OFD Sender: No OFD packet to send [02:45:54]OFD Sender: No OFD packet to send [02:45:59]OFD Sender: No OFD packet to send [02:46:04]OFD Sender: No OFD packet to send [02:46:09]OFD Sender: No OFD packet to send [02:46:14]OFD Sender: No OFD packet to send [02:46:19]OFD Sender: No OFD packet to send [02:46:24]OFD Sender: No OFD packet to send [02:46:29]OFD Sender: No OFD packet to send [02:46:34]OFD Sender: No OFD packet to send [02:46:39]OFD Sender: No OFD packet to send [02:46:44]OFD Sender: No OFD packet to send [02:46:49]OFD Sender: No OFD packet to send [02:46:54]OFD Sender: No OFD packet to send [02:46:59]OFD Sender: No OFD packet to send [02:47:04]OFD Sender: No OFD packet to send [02:47:10]OFD Sender: No OFD packet to send [02:47:15]OFD Sender: No OFD packet to send [02:47:20]OFD Sender: No OFD packet to send [02:47:25]OFD Sender: No OFD packet to send [02:47:30]OFD Sender: No OFD packet to send [02:47:35]OFD Sender: No OFD packet to send [02:47:40]OFD Sender: No OFD packet to send [02:47:45]OFD Sender: No OFD packet to send [02:47:50]OFD Sender: No OFD packet to send [02:47:55]OFD Sender: No OFD packet to send [02:48:00]OFD Sender: No OFD packet to send [02:48:05]OFD Sender: No OFD packet to send [02:48:10]OFD Sender: No OFD packet to send [02:48:15]OFD Sender: No OFD packet to send [02:48:20]OFD Sender: No OFD packet to send [02:48:25]OFD Sender: No OFD packet to send [02:48:30]OFD Sender: No OFD packet to send [02:48:35]OFD Sender: No OFD packet to send [02:48:40]OFD Sender: No OFD packet to send [02:48:45]OFD Sender: No OFD packet to send [02:48:50]OFD Sender: No OFD packet to send [02:48:55]OFD Sender: No OFD packet to send [02:49:00]OFD Sender: No OFD packet to send [02:49:05]OFD Sender: No OFD packet to send [02:49:10]OFD Sender: No OFD packet to send [02:49:15]OFD Sender: No OFD packet to send [02:49:20]OFD Sender: No OFD packet to send [02:49:25]OFD Sender: No OFD packet to send [02:49:30]OFD Sender: No OFD packet to send [02:49:35]OFD Sender: No OFD packet to send [02:49:40]OFD Sender: No OFD packet to send [02:49:45]OFD Sender: No OFD packet to send [02:49:50]OFD Sender: No OFD packet to send [02:49:55]OFD Sender: No OFD packet to send [02:50:00]OFD Sender: No OFD packet to send [02:50:05]OFD Sender: No OFD packet to send [02:50:10]OFD Sender: No OFD packet to send [02:50:15]OFD Sender: No OFD packet to send [02:50:20]OFD Sender: No OFD packet to send [02:50:25]OFD Sender: No OFD packet to send [02:50:30]OFD Sender: No OFD packet to send [02:50:35]OFD Sender: No OFD packet to send [02:50:40]OFD Sender: No OFD packet to send [02:50:45]OFD Sender: No OFD packet to send [02:50:50]OFD Sender: No OFD packet to send [02:50:55]OFD Sender: No OFD packet to send [02:51:00]OFD Sender: No OFD packet to send [02:51:05]OFD Sender: No OFD packet to send [02:51:10]OFD Sender: No OFD packet to send [02:51:15]OFD Sender: No OFD packet to send [02:51:20]OFD Sender: No OFD packet to send [02:51:25]OFD Sender: No OFD packet to send [02:51:30]OFD Sender: No OFD packet to send [02:51:35]OFD Sender: No OFD packet to send [02:51:40]OFD Sender: No OFD packet to send [02:51:45]OFD Sender: No OFD packet to send [02:51:50]OFD Sender: No OFD packet to send [02:51:55]OFD Sender: No OFD packet to send [02:52:00]OFD Sender: No OFD packet to send [02:52:05]OFD Sender: No OFD packet to send [02:52:10]OFD Sender: No OFD packet to send [02:52:15]OFD Sender: No OFD packet to send [02:52:20]OFD Sender: No OFD packet to send [02:52:25]OFD Sender: No OFD packet to send [02:52:30]OFD Sender: No OFD packet to send [02:52:35]OFD Sender: No OFD packet to send [02:52:40]OFD Sender: No OFD packet to send [02:52:45]OFD Sender: No OFD packet to send [02:52:50]OFD Sender: No OFD packet to send [02:52:55]OFD Sender: No OFD packet to send [02:53:00]OFD Sender: No OFD packet to send [02:53:05]OFD Sender: No OFD packet to send [02:53:10]OFD Sender: No OFD packet to send [02:53:15]OFD Sender: No OFD packet to send [02:53:20]OFD Sender: No OFD packet to send [02:53:25]OFD Sender: No OFD packet to send [02:53:30]OFD Sender: No OFD packet to send [02:53:35]OFD Sender: No OFD packet to send [02:53:40]OFD Sender: No OFD packet to send [02:53:45]OFD Sender: No OFD packet to send [02:53:50]OFD Sender: No OFD packet to send [02:53:55]OFD Sender: No OFD packet to send [02:54:00]OFD Sender: No OFD packet to send [02:54:05]OFD Sender: No OFD packet to send [02:54:10]OFD Sender: No OFD packet to send [02:54:15]OFD Sender: No OFD packet to send [02:54:20]OFD Sender: No OFD packet to send [02:54:25]OFD Sender: No OFD packet to send [02:54:30]OFD Sender: No OFD packet to send [02:54:35]OFD Sender: No OFD packet to send [02:54:40]OFD Sender: No OFD packet to send [02:54:45]OFD Sender: No OFD packet to send [02:54:50]OFD Sender: No OFD packet to send [02:54:55]OFD Sender: No OFD packet to send [02:55:00]OFD Sender: No OFD packet to send [02:55:05]OFD Sender: No OFD packet to send [02:55:10]OFD Sender: No OFD packet to send [02:55:15]OFD Sender: No OFD packet to send [02:55:20]OFD Sender: No OFD packet to send [02:55:25]OFD Sender: No OFD packet to send [02:55:30]OFD Sender: No OFD packet to send [02:55:35]OFD Sender: No OFD packet to send [02:55:40]OFD Sender: No OFD packet to send [02:55:45]OFD Sender: No OFD packet to send [02:55:50]OFD Sender: No OFD packet to send [02:55:55]OFD Sender: No OFD packet to send [02:56:00]OFD Sender: No OFD packet to send [02:56:05]OFD Sender: No OFD packet to send [02:56:10]OFD Sender: No OFD packet to send [02:56:15]OFD Sender: No OFD packet to send [02:56:20]OFD Sender: No OFD packet to send [02:56:25]OFD Sender: No OFD packet to send [02:56:30]OFD Sender: No OFD packet to send [02:56:35]OFD Sender: No OFD packet to send [02:56:40]OFD Sender: No OFD packet to send [02:56:45]OFD Sender: No OFD packet to send [02:56:50]OFD Sender: No OFD packet to send [02:56:55]OFD Sender: No OFD packet to send [02:57:00]OFD Sender: No OFD packet to send [02:57:05]OFD Sender: No OFD packet to send [02:57:10]OFD Sender: No OFD packet to send [02:57:15]OFD Sender: No OFD packet to send [02:57:20]OFD Sender: No OFD packet to send [02:57:25]OFD Sender: No OFD packet to send [02:57:30]OFD Sender: No OFD packet to send [02:57:35]OFD Sender: No OFD packet to send [02:57:40]OFD Sender: No OFD packet to send [02:57:45]OFD Sender: No OFD packet to send [02:57:50]OFD Sender: No OFD packet to send [02:57:55]OFD Sender: No OFD packet to send [02:58:00]OFD Sender: No OFD packet to send [02:58:05]OFD Sender: No OFD packet to send [02:58:09]accept exits with 9 [02:58:09]New connection [02:58:09]New thread 3066809700 created [02:58:09]Thread 3066666340 joined [02:58:09]Waiting for new connection... [02:58:09] Sock 9.Parse request [02:58:09]Sock 9.Check first char [02:58:09]Sock 9.First char is OK [02:58:09]request: POST /json_proto HTTP/1.0 [02:58:09]Method: POST [02:58:09]URL: /json_proto [02:58:09]Method is POST - this is cgi request [02:58:09]url: /json_proto [02:58:09]query_string will be loaded in cgi processing [02:58:09]execute_cgi json_proto POST (null) [02:58:09]execute_cgi path=json_proto method=POST [02:58:09]POST find Content-Length [02:58:09]Host: 172.17.44.195:8080 [02:58:09]Content-Length: 683 [02:58:09]Content-Type: application/json [02:58:09] [02:58:09]POST finish read [02:58:09]Found Content-Length = 683 [02:58:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963419", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 26.910, "sum" : 1800.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:58:09]execute_script... [02:58: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)1963419", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 26.910, "sum" : 1800.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:58:09]POST & json_proto [02:58:09]process_json_proto [02:58:09]json parsed OK: [02:58:09]protocol is kg_v1.0 [02:58:09]action value=close_receipt [02:58:09]process_action close_receipt [02:58:09]cmd_close_receipt [02:58:09]MH_GetDate [02:58:09]Write to MH i2c: F0 00 00 12 26 27 [02:58:09]Write i2c OK [02:58:09]MH_I2C_Read... [02:58:09]Read from MH i2c: F0 [02:58:09]MH_I2C_Read... [02:58:09]Read from MH i2c: F0 09 00 [02:58:09]MH_I2C_Read... [02:58:09]Read from MH i2c: F0 09 00 12 26 00 44 C3 15 67 82 C9 CF 66 33 [02:58:09]GetLastDocTimeStamp 1729478139 [02:58:09]current date 1729479492 [02:58:09]FM_GetShiftState [02:58:09]SAM_PROTO_GetShiftState [02:58:09]wFMCommunicate request_size=4 [02:58:09]MH_SAM_APDU [02:58:09]CAPDU: 80 13 01 00 [02:58:09]Write to MH i2c: E2 08 00 13 26 80 13 01 00 00 00 00 00 B6 [02:58:09]Write i2c OK [02:58:09]MH_I2C_Read... [02:58:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:58:09]Read from MH i2c: E2 [02:58:09]MH_I2C_Read... [02:58:09]Read from MH i2c: E2 0E 00 [02:58:09]MH_I2C_Read... [02:58:09]Read from MH i2c: E2 0E 00 13 26 00 09 00 01 F4 9B 15 67 00 00 00 00 90 00 CD [02:58:09]RAPDU: 09 00 01 F4 9B 15 67 00 00 00 00 90 00 [02:58:09]wFMCommunicate OK [02:58:09]SAM_PROTO_GetShiftState done [02:58:09]FM_GetShiftState done [02:58:09]opened in 1729469428 [02:58:09]opened+sec_in_day 1729555828 [02:58:09]quantity*price = 180027 [02:58:09]sum+1 = 180029 [02:58:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 1800.00 Внесено: 1800.00 СДАЧА: 0.00 НСП 1% : 15.93 НДС 12% : 191.18 Наличными: 1800.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 СНО: Общий режим Чек 17 21.10.2024 02:58 Смена: 534 ФФД: 1.0 ЗНМ: 0300000091 РНМ: 0000000000091685 Версия ККМ: 001 ФМ: 0000000000871839 ФД: 227748 ФПД: 255564317479783 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T025812&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227748&fm=255564317479783&tin=02508201610067®Number=0000000000091685&sum=180000 [02:58:11]StoreToDocumentArchive [02:58:11]shift 534 fd 227748 [02:58:11]save to /storage/0534/doc_00227748 [02:58:11]save last doc name /storage/0534/doc_00227748 to /storage/kkm_last_doc_name [02:58:11]save OK [02:58:11]Clear old archive folders... [02:58:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:58:11]tlvbuf is 00D0C650 [02:58:11]SAM_PROTO_ClearQueue [02:58:11]wFMCommunicate request_size=4 [02:58:11]MH_SAM_APDU [02:58:11]CAPDU: 80 09 00 00 [02:58:11]Write to MH i2c: E2 08 00 20 26 80 09 00 00 00 00 00 00 B8 [02:58:11]Write i2c OK [02:58:11]MH_I2C_Read... [02:58:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:58:11]Read from MH i2c: E2 [02:58:11]MH_I2C_Read... [02:58:11]Read from MH i2c: E2 03 00 [02:58:11]MH_I2C_Read... [02:58:11]Read from MH i2c: E2 03 00 20 26 00 90 00 BA [02:58:11]RAPDU: 90 00 [02:58:11]wFMCommunicate OK [02:58:11]SAM_PROTO_ClearQueue done [02:58:11]KKMCreateOFDPacket [02:58:11]OFDProtocolAddRootSTLVToBuf [02:58:11]FM_MakeSignedData [02:58:11]FM_MakeSignedData [02:58:11]SAM_PROTO_SignData [02:58:11]wFMCommunicate request_size=4 [02:58:11]MH_SAM_APDU [02:58:11]CAPDU: 80 0D 01 02 [02:58:11]Write to MH i2c: E2 08 00 21 26 80 0D 01 02 00 00 00 00 C0 [02:58:11]Write i2c OK [02:58:11]MH_I2C_Read... [02:58:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:58:11]Read from MH i2c: E2 [02:58:11]MH_I2C_Read... [02:58:11]Read from MH i2c: E2 03 00 [02:58:11]MH_I2C_Read... [02:58:11]Read from MH i2c: E2 03 00 21 26 00 90 00 BB [02:58:11]RAPDU: 90 00 [02:58:11]wFMCommunicate OK [02:58:11]wFMCommunicate request_size=255 [02:58:11]MH_SAM_APDU [02:58:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 69 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3C BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 44 C3 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A4 79 03 00 35 04 06 00 E8 [02:58:11]Write to MH i2c: E2 02 01 22 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 69 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3C BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 44 C3 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A4 79 03 00 35 04 06 00 E8 00 00 3F [02:58:11]Write i2c OK [02:58:11]MH_I2C_Read... [02:58:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:58:11]Read from MH i2c: E2 [02:58:11]MH_I2C_Read... [02:58:11]Read from MH i2c: E2 03 00 [02:58:11]MH_I2C_Read... [02:58:11]Read from MH i2c: E2 03 00 22 26 00 90 00 BC [02:58:11]RAPDU: 90 00 [02:58:11]wFMCommunicate OK [02:58:11]wFMCommunicate request_size=10 [02:58:11]MH_SAM_APDU [02:58:11]CAPDU: 80 0D 02 02 05 6F 34 5C 53 67 [02:58:11]Write to MH i2c: E2 0D 00 23 26 80 0D 02 02 05 00 6F 34 5C 53 67 00 00 86 [02:58:11]Write i2c OK [02:58:11]MH_I2C_Read... [02:58:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:58:11]Read from MH i2c: E2 [02:58:11]MH_I2C_Read... [02:58:11]Read from MH i2c: E2 03 00 [02:58:11]MH_I2C_Read... [02:58:11]Read from MH i2c: E2 03 00 23 26 00 90 00 BD [02:58:11]RAPDU: 90 00 [02:58:11]wFMCommunicate OK [02:58:11]wFMCommunicate request_size=4 [02:58:11]MH_SAM_APDU [02:58:11]CAPDU: 80 0D 03 02 [02:58:11]Write to MH i2c: E2 08 00 24 26 80 0D 03 02 00 00 00 00 C5 [02:58:11]Write i2c OK [02:58:11]MH_I2C_Read... [02:58:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:58:11]Read from MH i2c: E2 [02:58:11]MH_I2C_Read... [02:58:11]Read from MH i2c: E2 0B 00 [02:58:11]MH_I2C_Read... [02:58:11]Read from MH i2c: E2 0B 00 24 26 00 8D C7 E3 8B EB 1B 73 94 90 00 95 [02:58:11]RAPDU: 8D C7 E3 8B EB 1B 73 94 90 00 [02:58:11]wFMCommunicate OK [02:58:11]SAM_PROTO_SignData done [02:58:11]FM_MakeSignedData done [02:58:11]CreateOFDProtocolMessage [02:58:11]wFMCommunicate request_size=4 [02:58:11]MH_SAM_APDU [02:58:11]CAPDU: 80 11 00 00 [02:58:11]Write to MH i2c: E2 08 00 25 26 80 11 00 00 00 00 00 00 C5 [02:58:11]Write i2c OK [02:58:11]MH_I2C_Read... [02:58:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:58:11]Read from MH i2c: E2 [02:58:11]MH_I2C_Read... [02:58:11]Read from MH i2c: E2 17 00 [02:58:11]MH_I2C_Read... [02:58:11]Read from MH i2c: E2 17 00 25 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 1C [02:58:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [02:58:11]wFMCommunicate OK [02:58:11]CreateOFDProtocolMessage done [02:58:11]OFDSenderStorePacket 227748 [02:58:11]StoreOFDPacket docnum=227748 [02:58:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0F 01 00 00 27 F5 07 01 64 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 69 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3C BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 44 C3 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A4 79 03 00 35 04 06 00 E8 6F 34 5C 53 67 8D C7 E3 8B EB 1B 73 94 [02:58:11]CheckFolder [02:58:11]dirname=/storage/ofd_packets [02:58:11]CheckFolder done [02:58:11]ProducePacketName [02:58:11]name=ofd_packets/00227748 [02:58:11]NVStorageSaveData ofd_packets/00227748 [02:58:11]File name is /storage/ofd_packets/00227748 [02:58:11]Write 301 bytes [02:58:11]NVStorageSaveData done [02:58:11]OFDSenderStorePacket done [02:58:11]KKMCreateOFDPacket done [02:58:11]NVStorageSaveData kkm_last_timestamp [02:58:11]File name is /storage/kkm_last_timestamp [02:58:11]Write 4 bytes [02:58:11]NVStorageSaveData done [02:58:11]ExternCall_PrintAddStr [02:58:11]wPrintStart [02:58:11]Write to MH i2c: 01 00 00 26 26 4C [02:58:11]Write i2c OK [02:58:11]MH_I2C_Read... [02:58:11]Read from MH i2c: 01 [02:58:11]MH_I2C_Read... [02:58:11]Read from MH i2c: 01 07 00 [02:58:11]MH_I2C_Read... [02:58:11]Read from MH i2c: 01 07 00 26 26 00 00 00 00 00 FF 0F 61 [02:58:11]RasterBufferAndPrint [02:58:11]line Счет N : (1)1963419 [02:58:11]line ИНН: 02508201610067 [02:58:11]line Контрольно-Кассовый Чек [02:58:11]line ПРОДАЖА [02:58:11]line ТРК (МРК, ГНК) : 43 [02:58:11]line Товар: 2710124130 [02:58:11]line Аи-92-К-5 [02:58:11]line 26.910 * 66.90 [02:58:11]line = 1800.28 [02:58:11]line НДС 12% НСП 1% [02:58:11]line > о реализуемом товаре [02:58:11]line ОКРУГЛЕНИЕ: -0.28 [02:58:11]line ИТОГО: 1800.00 [02:58:11]line Внесено: 1800.00 [02:58:11]line СДАЧА: 0.00 [02:58:11]line НСП 1% : 15.93 [02:58:11]line НДС 12% : 191.18 [02:58:11]line Наличными: 1800.00 [02:58:11]line Безнал.: 0.00 [02:58:11]line Место: АЗС № 133 "Партнер Нефть" [02:58:11]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673, 72.649161 [02:58:11]line СНО: Общий режим [02:58:11]line Чек 17 21.10.2024 02:58 [02:58:11]line Смена: 534 ФФД: 1.0 [02:58:11]line ЗНМ: 0300000091 [02:58:11]line РНМ: 0000000000091685 [02:58:11]line Версия ККМ: 001 [02:58:11]line ФМ: 0000000000871839 [02:58:11]line ФД: 227748 [02:58:11]line ФПД: 255564317479783 [02:58:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T025812&type=1&operation_type=1&fn_number=0000000000871839&fd_number=227748&fm=255564317479783&tin=02508201610067®Number=0000000000091685&sum=180000 [02:58:11]written 0, free lines is 4095 [02:58:11]OFD Sender: Processing packet 227748 [packets to send 38, broken 37] [02:58:11]ProducePacketName [02:58:11]name=ofd_packets/00227748 [02:58:11]OFD Sender: To server: pG, [02:58:11]CommunicateWithHost lk.salyk.kg:30040 [02:58:11]ConnectInit lk.salyk.kg [02:58:11]Connected sock=10 [02:58: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 33 39 0F 01 00 00 27 F5 07 01 64 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 69 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3C BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 44 C3 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 10 04 04 00 A4 79 03 00 35 04 06 00 E8 6F 34 5C 53 67 8D C7 E3 8B EB 1B 73 94 [02:58:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 4F 00 00 00 71 E7 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 33 39 10 04 04 00 A4 79 03 00 F4 03 04 00 41 6E 15 67 B6 04 01 00 00 78 AB 06 B5 33 D9 09 33 [02:58:12]CommunicateWithHost err = 0 [02:58:12]CheckOFDResponse [02:58:12]1017 (14) - 77093643461234 [02:58:12]1041 (16) - 0000000000871839 [02:58:12]1040 (4) - 227748 [02:58:12]1012 (4) - 20.10.2024 20:55 [02:58:12]1206 (1) - 0 [02:58:12]OFD Sender: Remove packet 227748 [02:58:12]ProducePacketName [02:58:12]name=ofd_packets/00227748 [02:58:12]NVStorageDeleteData [02:58:12]Write to MH i2c: 01 00 00 50 26 76 [02:58:12]Write i2c OK [02:58:12]MH_I2C_Read... [02:58:12]Read from MH i2c: 01 [02:58:12]MH_I2C_Read... [02:58:12]Read from MH i2c: 01 07 00 [02:58:12]MH_I2C_Read... [02:58:12]Read from MH i2c: 01 07 00 50 26 00 00 00 00 00 9D 0C 26 [02:58:12]RasterBufferAndPrint [02:58:12]line [02:58:12]line [02:58:12]line [02:58:12]line [02:58:12]line [02:58:12]written 0, free lines is 3233 [02:58:12]MH_Cut [02:58:12]Write to MH i2c: D1 01 00 57 26 01 4F [02:58:12]Write i2c OK [02:58:12]MH_I2C_Read... [02:58:12]Read from MH i2c: D1 [02:58:12]MH_I2C_Read... [02:58:12]Read from MH i2c: D1 01 00 [02:58:12]MH_I2C_Read... [02:58:12]Read from MH i2c: D1 01 00 57 26 00 4E [02:58:12]Write to MH i2c: 01 00 00 58 26 7E [02:58:12]Write i2c OK [02:58:12]MH_I2C_Read... [02:58:12]OFD Sender: No OFD packet to send [02:58:13]*** Cut start [02:58:13]*** Partial cut [02:58:13]*** CUTSNS_PIN = 1 [02:58:13]*** CUTSNS_PIN = 0 [02:58:13]*** Brake cut motor [02:58:13]Read from MH i2c: 01 [02:58:13]MH_I2C_Read... [02:58:13]*** Stop cut motor [02:58:13]*** Cut end [02:58:13]Read from MH i2c: 01 07 00 [02:58:13]MH_I2C_Read... [02:58:13]Read from MH i2c: 01 07 00 58 26 00 00 00 00 00 FF 0F 93 [02:58:13]process_action close_receipt done [02:58:13]requested_data is exist [02:58:13]produce_requested_data [02:58:13]requested_item fm.sn is exist - process it [02:58:13]wFMCommunicate request_size=4 [02:58:13]MH_SAM_APDU [02:58:13]CAPDU: 80 11 00 00 [02:58:13]Write to MH i2c: E2 08 00 59 26 80 11 00 00 00 00 00 00 F9 [02:58:13]Write i2c OK [02:58:13]MH_I2C_Read... [02:58:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:58:14]Read from MH i2c: E2 [02:58:14]MH_I2C_Read... [02:58:14]Read from MH i2c: E2 17 00 [02:58:14]MH_I2C_Read... [02:58:14]Read from MH i2c: E2 17 00 59 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 50 [02:58:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 90 00 [02:58:14]wFMCommunicate OK [02:58:14]requested_item fd.num is exist - process it [02:58:14]SAM_PROTO_GetFieldsCounters [02:58:14]wFMCommunicate request_size=4 [02:58:14]MH_SAM_APDU [02:58:14]CAPDU: 80 13 00 00 [02:58:14]Write to MH i2c: E2 08 00 5A 26 80 13 00 00 00 00 00 00 FC [02:58:14]Write i2c OK [02:58:14]MH_I2C_Read... [02:58:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:58:14]Read from MH i2c: E2 [02:58:14]MH_I2C_Read... [02:58:14]Read from MH i2c: E2 62 00 [02:58:14]MH_I2C_Read... [02:58:14]Read from MH i2c: E2 62 00 5A 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A4 79 03 00 0E 04 04 00 16 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 90 [02:58: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 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 35 10 04 04 00 A4 79 03 00 0E 04 04 00 16 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 [02:58:14]wFMCommunicate OK [02:58:14]SAM_PROTO_GetFieldsCounters done [02:58:14]requested_item shift.num is exist - process it [02:58:14]requested_item shift.opened is exist - process it [02:58:14]req_shift_opened [02:58:14]FM_GetShiftState [02:58:14]SAM_PROTO_GetShiftState [02:58:14]wFMCommunicate request_size=4 [02:58:14]MH_SAM_APDU [02:58:14]CAPDU: 80 13 01 00 [02:58:14]Write to MH i2c: E2 08 00 5B 26 80 13 01 00 00 00 00 00 FE [02:58:14]Write i2c OK [02:58:14]MH_I2C_Read... [02:58:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:58:14]Read from MH i2c: E2 [02:58:14]MH_I2C_Read... [02:58:14]Read from MH i2c: E2 0E 00 [02:58:14]MH_I2C_Read... [02:58:14]Read from MH i2c: E2 0E 00 5B 26 00 09 00 01 F4 9B 15 67 00 00 00 00 90 00 15 [02:58:14]RAPDU: 09 00 01 F4 9B 15 67 00 00 00 00 90 00 [02:58:14]wFMCommunicate OK [02:58:14]SAM_PROTO_GetShiftState done [02:58:14]FM_GetShiftState done [02:58:14]req_shift_opened done [02:58:14]requested_item shift.open_date is exist - process it [02:58:14]req_shift_open_date [02:58:14]req_shift_open_date done [02:58:14]produce_requested_data done [02:58:14]produce_requested_data return {"fm.sn":"0000000000871839","fd.num":227748,"shift.num":534,"shift.opened":1,"shift.open_date":1729469428} [02:58:14]process_action_free close_receipt [02:58:14]json_value_free [02:58:14]json_value_free done [02:58:14]process_json_proto returns [02:58:14]Send response to host [02:58:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871839","fd.num":227748,"shift.num":534,"shift.opened":1,"shift.open_date":1729469428}}} [02:58:14]free response buf [02:58:14]execute_script done [02:58:14]execute_script returns [02:58:14]free content buf [02:58:14]Sock 9.Close socket [02:58:14]Sock 9.Thread stoped [02:58:17]OFD Sender: No OFD packet to send [02:58:22]OFD Sender: No OFD packet to send [02:58:27]OFD Sender: No OFD packet to send [02:58:32]OFD Sender: No OFD packet to send [02:58:37]OFD Sender: No OFD packet to send [02:58:42]OFD Sender: No OFD packet to send [02:58:47]OFD Sender: No OFD packet to send [02:58:52]OFD Sender: No OFD packet to send [02:58:57]OFD Sender: No OFD packet to send [02:59:02]OFD Sender: No OFD packet to send [02:59:07]OFD Sender: No OFD packet to send [02:59:12]OFD Sender: No OFD packet to send [02:59:17]OFD Sender: No OFD packet to send [02:59:22]OFD Sender: No OFD packet to send [02:59:27]OFD Sender: No OFD packet to send [02:59:32]OFD Sender: No OFD packet to send [02:59:37]OFD Sender: No OFD packet to send [02:59:42]OFD Sender: No OFD packet to send [02:59:47]OFD Sender: No OFD packet to send [02:59:52]OFD Sender: No OFD packet to send [02:59:57]OFD Sender: No OFD packet to send [03:00:02]OFD Sender: No OFD packet to send [03:00:07]OFD Sender: No OFD packet to send [03:00:12]OFD Sender: No OFD packet to send [03:00:17]OFD Sender: No OFD packet to send [03:00:22]OFD Sender: No OFD packet to send [03:00:27]OFD Sender: No OFD packet to send [03:00:32]OFD Sender: No OFD packet to send [03:00:37]OFD Sender: No OFD packet to send [03:00:42]OFD Sender: No OFD packet to send [03:00:47]OFD Sender: No OFD packet to send [03:00:52]OFD Sender: No OFD packet to send [03:00:57]OFD Sender: No OFD packet to send [03:01:02]OFD Sender: No OFD packet to send [03:01:07]OFD Sender: No OFD packet to send [03:01:12]OFD Sender: No OFD packet to send [03:01:17]OFD Sender: No OFD packet to send [03:01:22]OFD Sender: No OFD packet to send [03:01:27]OFD Sender: No OFD packet to send [03:01:32]OFD Sender: No OFD packet to send [03:01:37]OFD Sender: No OFD packet to send [03:01:42]OFD Sender: No OFD packet to send [03:01:47]OFD Sender: No OFD packet to send [03:01:52]OFD Sender: No OFD packet to send [03:01:57]OFD Sender: No OFD packet to send [03:02:02]OFD Sender: No OFD packet to send [03:02:07]OFD Sender: No OFD packet to send [03:02:12]OFD Sender: No OFD packet to send [03:02:17]OFD Sender: No OFD packet to send [03:02:22]OFD Sender: No OFD packet to send [03:02:27]OFD Sender: No OFD packet to send [03:02:32]OFD Sender: No OFD packet to send [03:02:37]OFD Sender: No OFD packet to send